@mapgis/cesium 17.6.4 → 17.6.7
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/Build/Cesium/Cesium.js +16 -16
- package/Build/Cesium/index.cjs +16 -16
- package/Build/Cesium/index.js +15 -15
- package/Documentation/Model.html +49 -49
- package/README.md +24 -0
- package/package.json +1 -1
package/Build/Cesium/index.js
CHANGED
|
@@ -9609,7 +9609,7 @@ void main()
|
|
|
9609
9609
|
}
|
|
9610
9610
|
return clipAmount;
|
|
9611
9611
|
}
|
|
9612
|
-
`}mi.prototype.destroy=function(){this._clipFillCommandMap.clear()};function cZe(e,t){return mi._clipFillDiffuseUrl!==e&&(mi._clipFillDiffuseUrl=e,mi._clipFillDiffuseImage=new Image,mi._clipFillDiffuseImage.crossOrigin="anonymous",mi._clipFillDiffuseImage.onload=function(n){mi._clipFillDiffuseTexture=new nt({context:t,width:mi._clipFillDiffuseImage.width,height:mi._clipFillDiffuseImage.height,pixelFormat:He.RGBA,pixelDatatype:ze.UNSIGNED_BYTE,source:mi._clipFillDiffuseImage})},mi._clipFillDiffuseImage.src=e,mi._clipFillDiffuseTexture=new nt({context:t,width:1,height:1,pixelFormat:He.RGBA,pixelDatatype:ze.UNSIGNED_BYTE,source:{arrayBufferView:new Uint8Array([200,200,200,255])}})),function(){return mi._clipFillDiffuseTexture}}var EV=mi;function lZe(e,t){let n={},i=e.primitive?.attributes,r;for(let s=0;s<i.length;s++)i[s].name==="TEXCOORD_0"&&(r={vertexCoordDisAC:1,texCoordDisAC:1});let o=t.content?.tileset._version;if(o==="2.0"){let s;for(let l=0;l<i.length;l++)i[l].name==="_OID"&&(s=i[l].typedArray);let a=new Uint32Array(s.length/4);a.fill(s[0]);let c={};for(let l=0;l<a.length;l++){let f=uZe(a[l]),d=new z(f[3]/255,f[2]/255,f[1]/255,f[0]/255);c[a[l]]={pickID:d,textureParam:r}}n=c}else if(o==="2.1"||o==="2.2"){let s;for(let c=0;c<i.length;c++)i[c].name==="_BATCHID"&&(s=i[c].typedArray);let a={};for(let c=0;c<s.length;c++)a[s[c]]={textureParam:r};n=a}return n}function uZe(e){let t=new ArrayBuffer(4);return new DataView(t).setUint32(0,e),new Uint8Array(t)}var SV=lZe;function Ef(e){e=y(e,y.EMPTY_OBJECT);let t=e.modelComponents;this._model=e.model,this._components=t,this._pipelineStages=[],this._updateStages=[],this._runtimeNodes=[],this._rootNodes=[],this._skinnedNodes=[],this._runtimeSkins=[],this.modelPipelineStages=[],this._boundingSphere=void 0,this._boundingSphere2D=void 0,this._computedModelMatrix=M.clone(M.IDENTITY),this._computedModelMatrix2D=M.clone(M.IDENTITY),this._axisCorrectionMatrix=hn.getAxisCorrectionMatrix(t.upAxis,t.forwardAxis,new M),this._runtimeArticulations={},fZe(this)}Object.defineProperties(Ef.prototype,{components:{get:function(){return this._components}},computedModelMatrix:{get:function(){return this._computedModelMatrix}},axisCorrectionMatrix:{get:function(){return this._axisCorrectionMatrix}},boundingSphere:{get:function(){return this._boundingSphere}}});function fZe(e){let t=e._components,n=t.scene,r=e._model.modelMatrix;Nme(e,r);let o=t.articulations,s=o.length,a=e._runtimeArticulations;for(let C=0;C<s;C++){let A=o[C],E=new U4({articulation:A,sceneGraph:e}),v=E.name;a[v]=E}let c=t.nodes,l=c.length;e._runtimeNodes=new Array(l);let d=n.nodes.length,p=M.IDENTITY;for(let C=0;C<d;C++){let A=n.nodes[C],E=Fme(e,A,p);e._rootNodes.push(E)}let _=t.skins,m=e._runtimeSkins,x=_.length;for(let C=0;C<x;C++){let A=_[C];m.push(new $k({skin:A,sceneGraph:e}))}let b=e._skinnedNodes,T=b.length;for(let C=0;C<T;C++){let A=b[C],E=e._runtimeNodes[A],D=c[A].skin.index;E._runtimeSkin=m[D],E.updateJointMatrices()}e.applyArticulations()}function Nme(e,t){let n=e._components,i=e._model;e._computedModelMatrix=M.multiplyTransformation(t,n.transform,e._computedModelMatrix),e._computedModelMatrix=M.multiplyTransformation(e._computedModelMatrix,e._axisCorrectionMatrix,e._computedModelMatrix),e._computedModelMatrix=M.multiplyByUniformScale(e._computedModelMatrix,i.computedScale,e._computedModelMatrix)}var dZe=new h;function hZe(e,t){let n=e._computedModelMatrix,i=M.getTranslation(n,dZe);if(!h.equals(i,h.ZERO))e._computedModelMatrix2D=St.basisTo2D(t.mapProjection,n,e._computedModelMatrix2D);else{let r=e.boundingSphere.center,o=St.ellipsoidTo2DModelMatrix(t.mapProjection,r,e._computedModelMatrix2D);e._computedModelMatrix2D=M.multiply(o,n,e._computedModelMatrix2D)}e._boundingSphere2D=ce.transform(e._boundingSphere,e._computedModelMatrix2D,e._boundingSphere2D)}function Fme(e,t,n){let i=[],r=hn.getNodeTransform(t),o=t.children.length;for(let f=0;f<o;f++){let d=t.children[f],p=M.multiplyTransformation(n,r,new M),_=Fme(e,d,p);i.push(_)}let s=new ik({node:t,transform:r,transformToRoot:n,children:i,sceneGraph:e}),a=t.primitives.length;for(let f=0;f<a;f++)s.runtimePrimitives.push(new Zk({primitive:t.primitives[f],node:t,model:e._model}));let c=t.index;e._runtimeNodes[c]=s,u(t.skin)&&e._skinnedNodes.push(c);let l=t.name;if(u(l)){let f=e._model,d=new K4(f,s);f._nodesByName[l]=d}return c}var mZe=new h,pZe=new h,_Ze=new h,gZe=new h;Ef.prototype.buildDrawCommands=function(e){let t=this._model,n=new tV(t);t.statistics.clear(),this.configurePipeline(e);let i=this.modelPipelineStages,r,o,s;for(r=0;r<i.length;r++)i[r].process(n,t,e);let a=h.fromElements(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE,mZe),c=h.fromElements(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE,pZe),l=[];for(r=0;r<this._runtimeNodes.length;r++){let f=this._runtimeNodes[r];if(!u(f))continue;f.configurePipeline();let d=f.pipelineStages,p=new lV(n,f);for(o=0;o<d.length;o++)d[o].process(p,f.node,e);let _=f.computedTransform;for(o=0;o<f.runtimePrimitives.length;o++){let m=f.runtimePrimitives[o];m.configurePipeline(e);let x=m.pipelineStages,b=new fV(p,m);for(s=0;s<x.length;s++)x[s].process(b,m.primitive,e);m.boundingSphere=ce.clone(b.boundingSphere,new ce);let T=M.multiplyByPoint(_,b.positionMin,_Ze),C=M.multiplyByPoint(_,b.positionMax,gZe);h.minimumByComponent(a,T,a),h.maximumByComponent(c,C,c);let A=gV.buildModelDrawCommand(b,e);m.drawCommand=A,u(t._clipFillUtil)&&t._clipFillUtil.destroy(),t._fillClip&&(u(t._clipFillUtil)||(t._clipFillUtil=new EV({model:t})),t._clipFillUtil.parsePrimitiveInfo(m,A,!1)),t._hasSectionGeometry&&(A.primitiveInfo=SV(m,t)),l.push(A)}}t._nodeCommands=l,this._boundingSphere=ce.fromCornerPoints(a,c,new ce),this._boundingSphere=ce.transformWithoutScale(this._boundingSphere,this._axisCorrectionMatrix,this._boundingSphere),this._boundingSphere=ce.transform(this._boundingSphere,this._components.transform,this._boundingSphere),t._boundingSphere=ce.transform(this._boundingSphere,t.modelMatrix,t._boundingSphere),t._initialRadius=t._boundingSphere.radius,t._boundingSphere.radius*=t._clampedScale};Ef.prototype.configurePipeline=function(e){let t=this.modelPipelineStages;t.length=0;let n=this._model,i=e.fog.enabled&&e.fog.renderable;u(n.color)&&t.push(FT),!u(n.classificationType)&&(n.imageBasedLighting.enabled&&t.push(B4),n.isClippingEnabled()&&t.push(G4),n.isGeometryClipEnabled()&&t.push(j4),n.isClippingPolygonsEnabled()&&t.push(X4),n.hasSilhouette(e)&&t.push(oV),u(n.splitDirection)&&n.splitDirection!==us.NONE&&t.push(cV),u(n.swiper)&&n.swiper.swipeEnabled===!0&&t.push(xV),Co.is3DTiles(n.type)&&t.push(O4),i&&t.push(N4))};Ef.prototype.update=function(e,t){let n,i,r;for(n=0;n<this._runtimeNodes.length;n++){let o=this._runtimeNodes[n];if(!u(o))continue;for(i=0;i<o.updateStages.length;i++)o.updateStages[i].update(o,this,e);let s=e.mode!==oe.SCENE3D&&this._model._projectTo2D;for(t&&!s&&this.updateJointMatrices(),i=0;i<o.runtimePrimitives.length;i++){let a=o.runtimePrimitives[i];for(r=0;r<a.updateStages.length;r++)a.updateStages[r].update(a,this)}}};Ef.prototype.updateModelMatrix=function(e,t){Nme(this,e),t.mode!==oe.SCENE3D&&hZe(this,t);let n=this._rootNodes;for(let i=0;i<n.length;i++){let r=this._runtimeNodes[n[i]];r._transformDirty=!0}};Ef.prototype.updateJointMatrices=function(){let e=this._skinnedNodes,t=e.length;for(let n=0;n<t;n++){let i=e[n];this._runtimeNodes[i].updateJointMatrices()}};function Bme(e,t,n,i,r){if(n&&!t.show)return;let o=t.children.length;for(let c=0;c<o;c++){let l=t.getChild(c);Bme(e,l,n,i,r)}let s=t.runtimePrimitives,a=s.length;for(let c=0;c<a;c++){let l=s[c];i(l,r)}}function vV(e,t,n,i){let r=e._rootNodes,o=r.length;for(let s=0;s<o;s++){let a=r[s],c=e._runtimeNodes[a];Bme(e,c,t,n,i)}}var yZe={backFaceCulling:void 0};Ef.prototype.updateBackFaceCulling=function(e){let t=yZe;t.backFaceCulling=e,vV(this,!1,xZe,t)};function xZe(e,t){let n=e.drawCommand;n.backFaceCulling=t.backFaceCulling}var bZe={shadowMode:void 0};Ef.prototype.updateShadows=function(e){let t=bZe;t.shadowMode=e,vV(this,!1,TZe,t)};function TZe(e,t){let n=e.drawCommand;n.shadows=t.shadowMode}var CZe={debugShowBoundingVolume:void 0};Ef.prototype.updateShowBoundingVolume=function(e){let t=CZe;t.debugShowBoundingVolume=e,vV(this,!1,AZe,t)};function AZe(e,t){let n=e.drawCommand;n.debugShowBoundingVolume=t.debugShowBoundingVolume}var kme=[],EZe={frameState:void 0,hasSilhouette:void 0};Ef.prototype.pushDrawCommands=function(e){let t=kme;t.length=0;let n=EZe;n.hasSilhouette=this._model.hasSilhouette(e),n.frameState=e,vV(this,!0,SZe,n),e.commandList.push.apply(e.commandList,t)};function SZe(e,t){let n=t.frameState,i=t.hasSilhouette,r=n.passes,o=kme,s=e.drawCommand;s.pushCommands(n,n.commandList),i&&!r.pick&&s.pushSilhouetteCommands(n,o)}Ef.prototype.setArticulationStage=function(e,t){let n=e.split(" ");if(n.length!==2)return;let i=n[0],r=n[1],o=this._runtimeArticulations[i];u(o)&&o.setArticulationStage(r,t)};Ef.prototype.applyArticulations=function(){let e=this._runtimeArticulations;for(let t in e)e.hasOwnProperty(t)&&e[t].apply()};var wV=Ef;function kS(){this.pointsLength=0,this.trianglesLength=0,this.geometryByteLength=0,this.texturesByteLength=0,this.propertyTablesByteLength=0,this._bufferIdSet={},this._textureIdSet={},this._batchTextureIdMap=new Ut}Object.defineProperties(kS.prototype,{batchTexturesByteLength:{get:function(){let e=this._batchTextureIdMap.length,t=this._batchTextureIdMap.values,n=0;for(let i=0;i<e;i++)n+=t[i].byteLength;return n}}});kS.prototype.clear=function(){this.pointsLength=0,this.trianglesLength=0,this.geometryByteLength=0,this.texturesByteLength=0,this.propertyTablesByteLength=0,this._bufferIdSet={},this._textureIdSet={},this._batchTextureIdMap.removeAll()};kS.prototype.addBuffer=function(e,t){if(!this._bufferIdSet.hasOwnProperty(e._id)){let n=t?2:1;this.geometryByteLength+=e.sizeInBytes*n}this._bufferIdSet[e._id]=!0};kS.prototype.addTexture=function(e){this._textureIdSet.hasOwnProperty(e._id)||(this.texturesByteLength+=e.sizeInBytes),this._textureIdSet[e._id]=!0};kS.prototype.addBatchTexture=function(e){this._batchTextureIdMap.contains(e._id)||this._batchTextureIdMap.set(e._id,e)};var DV=kS;var Hme=xo(L1(),1);var Vme={},zT=Uint32Array.BYTES_PER_ELEMENT;Vme.parse=function(e,t){t=y(t,0);let n=new Uint8Array(e),i=new DataView(e);t+=zT;let r=i.getUint32(t,!0);if(r!==1)throw new ae(`Only Point Cloud tile version 1 is supported. Version ${r} is not.`);t+=zT,t+=zT;let o=i.getUint32(t,!0);if(o===0)throw new ae("Feature table must have a byte length greater than zero");t+=zT;let s=i.getUint32(t,!0);t+=zT;let a=i.getUint32(t,!0);t+=zT;let c=i.getUint32(t,!0);t+=zT;let l=dr(n,t,o);t+=o;let f=new Uint8Array(e,t,s);t+=s;let d,p;a>0&&(d=dr(n,t,a),t+=a,c>0&&(p=new Uint8Array(e,t,c),t+=c));let _=new Ta(l,f),m=_.getGlobalProperty("POINTS_LENGTH");if(_.featuresLength=m,!u(m))throw new ae("Feature table global property: POINTS_LENGTH must be defined");let x=_.getGlobalProperty("RTC_CENTER",q.FLOAT,3);u(x)&&(x=h.unpack(x));let b=vZe(_,d);if(b.rtcCenter=x,b.pointsLength=m,!b.hasPositions){let T=wZe(_);b.positions=T,b.hasPositions=b.hasPositions||u(T)}if(!b.hasPositions)throw new ae("Either POSITION or POSITION_QUANTIZED must be defined.");if(!b.hasNormals){let T=PZe(_);b.normals=T,b.hasNormals=b.hasNormals||u(T)}if(!b.hasColors){let T=DZe(_);b.colors=T,b.hasColors=b.hasColors||u(T),b.hasConstantColor=u(b.constantColor),b.isTranslucent=u(T)&&T.isTranslucent}if(!b.hasBatchIds){let T=IZe(_);b.batchIds=T,b.hasBatchIds=b.hasBatchIds||u(T)}if(b.hasBatchIds){let T=_.getGlobalProperty("BATCH_LENGTH");if(!u(T))throw new ae("Global property: BATCH_LENGTH must be defined when BATCH_ID is defined.");b.batchLength=T}return u(p)&&(p=new Uint8Array(p),b.batchTableJson=d,b.batchTableBinary=p),b};function vZe(e,t){let n=e.json,i,r,o,s=u(n.extensions)?n.extensions["3DTILES_draco_point_compression"]:void 0,a=u(t)&&u(t.extensions)?t.extensions["3DTILES_draco_point_compression"]:void 0;u(a)&&(o=a.properties);let c,l,f,d,p;if(u(s)){r=s.properties;let m=s.byteOffset,x=s.byteLength;if(!u(r)||!u(m)||!u(x))throw new ae("Draco properties, byteOffset, and byteLength must be defined");i=e.buffer.slice(m,m+x),c=u(r.POSITION),l=u(r.RGB)||u(r.RGBA),f=u(r.NORMAL),d=u(r.BATCH_ID),p=u(r.RGBA)}let _;return u(i)&&(_={buffer:i,featureTableProperties:r,batchTableProperties:o,properties:xt(r,o),dequantizeInShader:!0}),{draco:_,hasPositions:c,hasColors:l,isTranslucent:p,hasNormals:f,hasBatchIds:d}}function wZe(e){let t=e.json,n;if(u(t.POSITION))return n=e.getPropertyArray("POSITION",q.FLOAT,3),{name:lt.POSITION,semantic:lt.POSITION,typedArray:n,isQuantized:!1,componentDatatype:q.FLOAT,type:Gt.VEC3};if(u(t.POSITION_QUANTIZED)){n=e.getPropertyArray("POSITION_QUANTIZED",q.UNSIGNED_SHORT,3);let i=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",q.FLOAT,3);if(!u(i))throw new ae("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let r=65535,o=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",q.FLOAT,3);if(!u(o))throw new ae("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");return{name:lt.POSITION,semantic:lt.POSITION,typedArray:n,isQuantized:!0,componentDatatype:q.FLOAT,type:Gt.VEC3,quantizedRange:r,quantizedVolumeOffset:h.unpack(o),quantizedVolumeScale:h.unpack(i),quantizedComponentDatatype:q.UNSIGNED_SHORT,quantizedType:Gt.VEC3}}}function DZe(e){let t=e.json,n;if(u(t.RGBA))return n=e.getPropertyArray("RGBA",q.UNSIGNED_BYTE,4),{name:lt.COLOR,semantic:lt.COLOR,setIndex:0,typedArray:n,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC4,normalized:!0,isRGB565:!1,isTranslucent:!0};if(u(t.RGB))return n=e.getPropertyArray("RGB",q.UNSIGNED_BYTE,3),{name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC3,normalized:!0,isRGB565:!1,isTranslucent:!1};if(u(t.RGB565))return n=e.getPropertyArray("RGB565",q.UNSIGNED_SHORT,1),{name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n,componentDatatype:q.FLOAT,type:Gt.VEC3,normalized:!1,isRGB565:!0,isTranslucent:!1};if(u(t.CONSTANT_RGBA)){let i=e.getGlobalProperty("CONSTANT_RGBA",q.UNSIGNED_BYTE,4),r=i[3],o=z.fromBytes(i[0],i[1],i[2],r),s=r<255;return{name:lt.COLOR,semantic:lt.COLOR,setIndex:0,constantColor:o,componentDatatype:q.FLOAT,type:Gt.VEC4,isQuantized:!1,isTranslucent:s}}}function PZe(e){let t=e.json,n;if(u(t.NORMAL))return n=e.getPropertyArray("NORMAL",q.FLOAT,3),{name:lt.NORMAL,semantic:lt.NORMAL,typedArray:n,octEncoded:!1,octEncodedZXY:!1,componentDatatype:q.FLOAT,type:Gt.VEC3};if(u(t.NORMAL_OCT16P))return n=e.getPropertyArray("NORMAL_OCT16P",q.UNSIGNED_BYTE,2),{name:lt.NORMAL,semantic:lt.NORMAL,typedArray:n,octEncoded:!0,octEncodedZXY:!1,quantizedRange:(1<<8)-1,quantizedType:Gt.VEC2,quantizedComponentDatatype:q.UNSIGNED_BYTE,componentDatatype:q.FLOAT,type:Gt.VEC3}}function IZe(e){let t=e.json;if(u(t.BATCH_ID)){let n=e.getPropertyArray("BATCH_ID",q.UNSIGNED_SHORT,1);return{name:lt.FEATURE_ID,semantic:lt.FEATURE_ID,setIndex:0,typedArray:n,componentDatatype:q.fromTypedArray(n),type:Gt.SCALAR}}}var VS=Vme;var RZe=fn.Components,OZe=fn.Scene,MZe=fn.Node,LZe=fn.Primitive,NZe=fn.Attribute,Ume=fn.Quantization,FZe=fn.FeatureIdAttribute,BZe=fn.Material,kZe=fn.MetallicRoughness;function ky(e){e=y(e,y.EMPTY_OBJECT);let t=e.arrayBuffer,n=y(e.byteOffset,0);this._arrayBuffer=t,this._byteOffset=n,this._loadAttributesFor2D=y(e.loadAttributesFor2D,!1),this._parsedContent=void 0,this._decodePromise=void 0,this._decodedAttributes=void 0,this._promise=void 0,this._error=void 0,this._state=It.UNLOADED,this._buffers=[],this._components=void 0,this._transform=M.IDENTITY,this._generateUniqueId=e.generateUniqueId}u(Object.create)&&(ky.prototype=Object.create(Li.prototype),ky.prototype.constructor=ky);Object.defineProperties(ky.prototype,{cacheKey:{get:function(){}},components:{get:function(){return this._components}},transform:{get:function(){return this._transform}}});ky.prototype.load=function(){if(u(this._promise))return this._promise;this._parsedContent=VS.parse(this._arrayBuffer,this._byteOffset),this._state=It.PROCESSING,this._promise=Promise.resolve(this)};ky.prototype.process=function(e){if(u(this._error)){let t=this._error;throw this._error=void 0,t}if(this._state===It.READY)return!0;if(this._state===It.PROCESSING){if(u(this._decodePromise))return!1;this._decodePromise=VZe(this,e.context)}return!1};function VZe(e,t){let i=e._parsedContent.draco,r;if(u(i)?r=Sp.decodePointCloud(i,t):r=Promise.resolve(),!!u(r))return e._decodePromise=r,r.then(function(o){if(!e.isDestroyed())return u(o)&&UZe(e,i,o),$Ze(e,t),e._state=It.READY,e}).catch(function(o){e.unload(),e._state=It.FAILED;let s="Failed to load Draco pnts";e._error=e.getError(s,o)})}function UZe(e,t,n){e._state=It.READY;let i=e._parsedContent,r;if(u(n.POSITION)){if(r={name:"POSITION",semantic:lt.POSITION,typedArray:n.POSITION.array,componentDatatype:q.FLOAT,type:Gt.VEC3,isQuantized:!1},u(n.POSITION.data.quantization)){let a=n.POSITION.data.quantization,c=a.range,l=h.fromElements(c,c,c),f=h.unpack(a.minValues),d=(1<<a.quantizationBits)-1;r.isQuantized=!0,r.quantizedRange=d,r.quantizedVolumeOffset=f,r.quantizedVolumeScale=l,r.quantizedComponentDatatype=d<=255?q.UNSIGNED_BYTE:q.UNSIGNED_SHORT,r.quantizedType=Gt.VEC3}i.positions=r}if(u(n.NORMAL)){if(r={name:"NORMAL",semantic:lt.NORMAL,typedArray:n.NORMAL.array,componentDatatype:q.FLOAT,type:Gt.VEC3,isQuantized:!1,octEncoded:!1,octEncodedZXY:!1},u(n.NORMAL.data.quantization)){let a=(1<<n.NORMAL.data.quantization.quantizationBits)-1;r.quantizedRange=a,r.octEncoded=!0,r.octEncodedZXY=!0,r.quantizedComponentDatatype=q.UNSIGNED_BYTE,r.quantizedType=Gt.VEC2}i.normals=r}if(u(n.RGBA)?i.colors={name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n.RGBA.array,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC4,normalized:!0,isTranslucent:!0}:u(n.RGB)&&(i.colors={name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n.RGB.array,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC3,normalized:!0,isTranslucent:!1}),u(n.BATCH_ID)){let a=n.BATCH_ID.array;i.batchIds={name:"_FEATURE_ID",semantic:lt.FEATURE_ID,setIndex:0,typedArray:a,componentDatatype:q.fromTypedArray(a),type:Gt.SCALAR}}let o=i.batchTableJson,s=t.batchTableProperties;for(let a in s)if(s.hasOwnProperty(a)){let c=n[a];u(o)||(o={}),i.hasDracoBatchTable=!0;let l=c.data;o[a]={byteOffset:l.byteOffset,type:zZe(l.componentsPerAttribute),componentType:HZe(l.componentDatatype),typedArray:c.array}}i.batchTableJson=o}function zZe(e){switch(e){case 1:return"SCALAR";case 2:return"VEC2";case 3:return"VEC3";case 4:return"VEC4"}}function HZe(e){switch(e){case J.BYTE:return"BYTE";case J.UNSIGNED_BYTE:return"UNSIGNED_BYTE";case J.SHORT:return"SHORT";case J.UNSIGNED_SHORT:return"UNSIGNED_SHORT";case J.INT:return"INT";case J.UNSIGNED_INT:return"UNSIGNED_INT";case J.DOUBLE:return"DOUBLE";case J.FLOAT:return"FLOAT"}}function PP(e,t,n){let i=t.typedArray,r;if(t.octEncoded&&(r=new Ume,r.octEncoded=t.octEncoded,r.octEncodedZXY=t.octEncodedZXY,r.normalizationRange=t.quantizedRange,r.type=t.quantizedType,r.componentDatatype=t.quantizedComponentDatatype),t.isQuantized){r=new Ume;let a=t.quantizedRange;r.normalizationRange=a,r.quantizedVolumeOffset=h.ZERO;let c=t.quantizedVolumeScale;r.quantizedVolumeDimensions=c,r.quantizedVolumeStepSize=h.divideByScalar(c,a,new h),r.componentDatatype=t.quantizedComponentDatatype,r.type=t.quantizedType}let o=new NZe;if(o.name=t.name,o.semantic=t.semantic,o.setIndex=t.setIndex,o.componentDatatype=t.componentDatatype,o.type=t.type,o.normalized=y(t.normalized,!1),o.min=t.min,o.max=t.max,o.quantization=r,t.isRGB565&&(i=xn.decodeRGB565(i)),u(t.constantColor)){let a=new Array(4);o.constant=z.pack(t.constantColor,a)}else{let a=et.createVertexBuffer({typedArray:i,context:n,usage:Oe.STATIC_DRAW});a.vertexArrayDestroyable=!1,e._buffers.push(a),o.buffer=a}let s=e._loadAttributesFor2D;return o.semantic===lt.POSITION&&s&&(o.typedArray=i),o}var zme,PV;function GZe(e){if(!u(PV)){zme=new Hme.default(0),PV=new Array(e);for(let t=0;t<e;++t)PV[t]=zme.random()}return PV}var WZe=new h,jZe=new h,qZe=new h;function YZe(e){let t=e.typedArray,n=20,i=t.length/3,r=Math.min(i,n),o=GZe(n),s=Number.MAX_VALUE,a=-Number.MAX_VALUE,c=h.fromElements(s,s,s,WZe),l=h.fromElements(a,a,a,jZe),f,d,p;if(e.isQuantized)c=h.ZERO,l=e.quantizedVolumeScale;else for(f=0;f<r;++f)d=Math.floor(o[f]*i),p=h.unpack(t,d*3,qZe),h.minimumByComponent(c,p,c),h.maximumByComponent(l,p,l);e.min=h.clone(c),e.max=h.clone(l)}var XZe={name:lt.COLOR,semantic:lt.COLOR,setIndex:0,constantColor:z.DARKGRAY,componentDatatype:q.FLOAT,type:Gt.VEC4,isQuantized:!1,isTranslucent:!1};function KZe(e,t,n){let i=[],r,o=t.positions;return u(o)&&(YZe(o),r=PP(e,o,n),r.count=t.pointsLength,i.push(r)),u(t.normals)&&(r=PP(e,t.normals,n),i.push(r)),u(t.colors)?(r=PP(e,t.colors,n),i.push(r)):(r=PP(e,XZe,n),i.push(r)),u(t.batchIds)&&(r=PP(e,t.batchIds,n),i.push(r)),i}function ZZe(e,t,n){let i=e.batchLength,r=e.pointsLength,o=e.batchTableBinary,s=!u(e.batchIds);if(u(o)||e.hasDracoBatchTable){let a=y(i,r);return Pp({count:a,batchTable:e.batchTableJson,binaryBody:o,parseAsPropertyAttributes:s,customAttributeOutput:t,generateUniqueId:n})}return new ho({schema:{},propertyTables:[]})}function $Ze(e,t){let n=e._parsedContent,i=new kZe;i.metallicFactor=0,i.roughnessFactor=.9;let r=new BZe;r.metallicRoughness=i;let o=n.colors;u(o)&&o.isTranslucent&&(r.alphaMode=Bh.BLEND);let s=!u(n.normals);r.unlit=s;let a=new LZe;if(a.attributes=KZe(e,n,t),a.primitiveType=Fe.POINTS,a.material=r,u(n.batchIds)){let _=new FZe;_.propertyTableId=0,_.setIndex=0,_.positionalLabel="featureId_0",a.featureIds.push(_)}let c=new MZe;c.index=0,c.primitives=[a];let l=new OZe;l.nodes=[c],l.upAxis=wn.Z,l.forwardAxis=wn.X;let f=new RZe;f.scene=l,f.nodes=[c];let d=[];f.structuralMetadata=ZZe(n,d,e._generateUniqueId),d.length>0&&QZe(e,a,d,t),u(n.rtcCenter)&&(f.transform=M.multiplyByTranslation(f.transform,n.rtcCenter,f.transform));let p=n.positions;u(p)&&p.isQuantized&&(f.transform=M.multiplyByTranslation(f.transform,p.quantizedVolumeOffset,f.transform)),e._components=f,e._parsedContent=void 0,e._arrayBuffer=void 0}function QZe(e,t,n,i){let r=t.attributes,o=n.length;for(let s=0;s<o;s++){let a=n[s],c=et.createVertexBuffer({typedArray:a.typedArray,context:i,usage:Oe.STATIC_DRAW});c.vertexArrayDestroyable=!1,e._buffers.push(c),a.buffer=c,a.typedArray=void 0,r.push(a)}t.propertyAttributeIds=[0]}ky.prototype.unload=function(){let e=this._buffers;for(let t=0;t<e.length;t++)e[t].destroy();e.length=0,this._components=void 0,this._parsedContent=void 0,this._arrayBuffer=void 0};var IV=ky;var JZe=new h,e$e=new h,t$e=new h,n$e=new M,i$e=new M,r$e=new M,o$e=new ue,s$e=new ce;function IP(e,t,n,i,r,o,s){if(!e._ready||n.mode===oe.MORPHING)return;let a=Number.MAX_VALUE,c=e.sceneGraph,l=c._runtimeNodes;for(let f=0;f<l.length;f++){let d=l[f],p=d.node,_=M.clone(d.computedTransform,n$e),m=M.clone(c.computedModelMatrix,i$e),x=p.instances;u(x)&&x.transformInWorldSpace&&(m=M.multiplyTransformation(e.modelMatrix,c.components.transform,m),_=M.multiplyTransformation(c.axisCorrectionMatrix,d.computedTransform,_));let b=M.multiplyTransformation(m,_,r$e);n.mode!==oe.SCENE3D&&(b=St.basisTo2D(n.mapProjection,b,b));let T=[];if(u(x)){let A=x.attributes[0].count,E=x.attributes[0].componentDatatype,v=12,D=d.transformsTypedArray;if(!u(D)){let R=d.instancingTransformsBuffer;u(R)&&n.context.webgl2&&(D=q.createTypedArray(E,A*v),R.getBufferData(D))}if(u(D))for(let R=0;R<A;R++){let O=R*v,L=new M(D[O],D[O+1],D[O+2],D[O+3],D[O+4],D[O+5],D[O+6],D[O+7],D[O+8],D[O+9],D[O+10],D[O+11],0,0,0,1);x.transformInWorldSpace?(M.multiplyTransformation(L,_,L),M.multiplyTransformation(m,L,L)):M.multiplyTransformation(L,b,L),T.push(L)}}T.length===0&&T.push(b);let C=d.runtimePrimitives.length;for(let A=0;A<C;A++){let E=d.runtimePrimitives[A],v=E.primitive;if(u(E.boundingSphere)&&!u(x)){let j=ce.transform(E.boundingSphere,b,s$e),K=Mi.raySphere(t,j);if(!u(K))continue}let D=hn.getAttributeBySemantic(v,lt.POSITION),R=D.byteOffset,O=D.byteStride,L=D.count;if(!u(v.indices))continue;let N=v.indices.typedArray;if(!u(N)){let j=v.indices.buffer,K=v.indices.count,Y=v.indices.indexDatatype;u(j)&&n.context.webgl2&&(Y===Ze.UNSIGNED_BYTE?N=new Uint8Array(K):Y===Ze.UNSIGNED_SHORT?N=new Uint16Array(K):Y===Ze.UNSIGNED_INT&&(N=new Uint32Array(K)),j.getBufferData(N))}let g=D.typedArray,S=D.componentDatatype,w=D.type,P=D.quantization;u(P)&&(S=D.quantization.componentDatatype,w=D.quantization.type);let F=Gt.getNumberOfComponents(w),B=q.getSizeInBytes(S),H=!u(g)&&u(O)&&O!==F*B,V=F,U=0;H&&(V=O/B,U=R/B);let k=L*V;if(!u(g)){let j=D.buffer;u(j)&&n.context.webgl2&&(g=q.createTypedArray(S,k),j.getBufferData(g,H?0:R,0,k)),P&&D.normalized&&(g=xn.dequantize(g,S,w,L))}if(!u(N)||!u(g))return;o=y(o,ne.default),i=y(i,1),r=y(r,0);let W=N.length;for(let j=0;j<W;j+=3){let K=N[j],Y=N[j+1],ee=N[j+2];for(let Z of T){let pe=gK(g,K,U,V,P,Z,i,r,o,JZe),xe=gK(g,Y,U,V,P,Z,i,r,o,e$e),le=gK(g,ee,U,V,P,Z,i,r,o,t$e),Te=Mi.rayTriangleParametric(t,pe,xe,le,y(e.backFaceCulling,!0));u(Te)&&Te<a&&Te>=0&&(a=Te)}}}}if(a!==Number.MAX_VALUE){if(s=kn.getPoint(t,a,s),n.mode!==oe.SCENE3D){h.fromElements(s.y,s.z,s.x,s);let f=n.mapProjection,d=f.ellipsoid,p=f.unproject(s,o$e);d.cartographicToCartesian(p,s)}return s}}function gK(e,t,n,i,r,o,s,a,c,l){let f=n+t*i;if(l.x=e[f],l.y=e[f+1],l.z=e[f+2],u(r))if(r.octEncoded){if(l=xn.octDecodeInRange(l,r.normalizationRange,l),r.octEncodedZXY){let d=l.x;l.x=l.z,l.z=l.y,l.y=d}}else l=h.multiplyComponents(l,r.quantizedVolumeStepSize,l),l=h.add(l,r.quantizedVolumeOffset,l);return l=M.multiplyByPoint(o,l,l),s!==1&&no.getPosition(l,c,s,a,l),l}var US={};US._deprecationWarning=uo;var Gme=Uint32Array.BYTES_PER_ELEMENT;US.parse=function(e,t){t=y(t,0);let i=0,r=0,o=0,s=0,a;o>=570425344?(t-=Gme*2,a=i,o=r,s=0,i=0,r=0,US._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchLength] [batchTableByteLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel.")):s>=570425344&&(t-=Gme,a=o,o=i,s=r,i=0,r=0,US._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchTableJsonByteLength] [batchTableBinaryByteLength] [batchLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel."));let c;i===0?c={BATCH_LENGTH:y(a,0)}:(c=dr(uint8Array,t,i),t+=i);let l=new Uint8Array(e,t,r);t+=r;let f,d;o>0&&(f=dr(uint8Array,t,o),t+=o,s>0&&(d=new Uint8Array(e,t,s),d=new Uint8Array(d),t+=s));let p=e.byteLength,_;return t%4===0?_=new Uint8Array(e,t,p):(US._deprecationWarning("b3dm-glb-unaligned","The embedded glb is not aligned to a 4-byte boundary."),_=new Uint8Array(uint8Array.subarray(t,t+p))),{batchLength:a,featureTableJson:c,featureTableBinary:l,batchTableJson:f,batchTableBinary:d,gltf:_}};var RV=US;var a$e={};function RP(e){this._count=e.count,this._properties=e.properties,this._batchTableJson=e.batchTableJson}RP.prototype.hasProperty=function(e){return ai.hasProperty(e,this._properties,a$e)};RP.prototype.getPropertyIds=function(e,t){e=u(e)?e:[],e.length=0;let n=Object.keys(this._properties);return e.push.apply(e,n),e};RP.prototype.getProperty=function(e,t){let n=this._properties[t];if(u(n))return Ve(n[e],!0)};RP.prototype.setProperty=function(e,t,n){let i=this._properties[t];u(i)||(i=new Array(this._count),this._properties[t]=i),i[e]=Ve(n,!0)};var OV=RP;var c$e={};function OP(e){this._count=e.count,this._properties=e.properties,this._batchTableJson=e.batchTableJson}OP.prototype.hasProperty=function(e){return ai.hasProperty(e,this._properties,c$e)};OP.prototype.getPropertyIds=function(e,t){e=u(e)?e:[],e.length=0;let n=Object.keys(this._properties);return e.push.apply(e,n),e};OP.prototype.getProperty=function(e,t){let n=this._properties[t];if(u(n))return Ve(n[e],!0)};OP.prototype.setProperty=function(e,t,n){let i=this._properties[t];u(i)||(i=new Array(this._count),this._properties[t]=i),i[e]=Ve(n,!0)};var MV=OP;function LV(e){let t=e.count,n=e.binaryBody,i=e.batchTable,r=e.binaryBody,o=e.tilesetVersion,s=y(e.parseAsPropertyAttributes,!1),a=e.customAttributeOutput,c={jsonProperties:i,binaryProperties:r},l;(o==="2.1"||o==="2.2")&&u(c.jsonProperties)?l=new lT({count:t,properties:i,batchTableJson:i,batchTableBinary:r}):o==="2.0"&&u(c.jsonProperties)?l=new OV({count:t,properties:i,batchTableJson:i}):o==="1.0"&&u(c.jsonProperties)&&(l=new MV({count:t,properties:i,batchTableJson:i}));let f;u(c.hierarchy)&&(f=new iy({extension:c.hierarchy,binaryBody:n}));let d=xa.BATCH_TABLE_CLASS_NAME,p=c.binaryProperties,_,m,x;if(s){let C=u$e(t,d,p,n,a);x=C.transcodedSchema,m=[new Sy({propertyAttribute:C.propertyAttributeJson,class:C.transcodedClass})]}else{let C=l$e(t,d,p,n);x=C.transcodedSchema;let A=C.featureTableJson;_=new Gl({count:A.count,properties:A.properties,class:C.transcodedClass,bufferViews:C.bufferViewsTypedArrays}),m=[]}let b=[];if(u(_)||u(l)||u(f)){let C=new ms({id:0,name:"Batch Table",count:t,metadataTable:_,jsonMetadataTable:l,batchTableHierarchy:f});b.push(C)}let T={schema:x,propertyTables:b,propertyAttributes:m,extensions:c.extensions,extras:c.extras};return new ho(T)}function l$e(e,t,n,i){let r={},o={},s={},a=0;for(let d in n){if(!n.hasOwnProperty(d))continue;if(!u(i))throw new ae(`Property ${d} requires a batch table binary.`);let p=n[d],_=Bl(p);o[d]={bufferView:a},r[d]=Wme(p),s[a]=_.createArrayBufferView(i.buffer,i.byteOffset+p.byteOffset,e),a++}let c={classes:{}};c.classes[t]={properties:r};let l=Wl.fromJson(c);return{featureTableJson:{class:t,count:e,properties:o},bufferViewsTypedArrays:s,transcodedSchema:l,transcodedClass:l.classes[t]}}function u$e(e,t,n,i,r){let o={},s={},a=0;for(let d in n){if(!n.hasOwnProperty(d))continue;let p=n[d];if(!u(i)&&!u(p.typedArray))throw new ae(`Property ${d} requires a batch table binary.`);let _=hn.sanitizeGlslIdentifier(d);(_===""||o.hasOwnProperty(_))&&(_=`property_${a}`,a++);let m=Wme(p);m.name=d,o[_]=m;let x=_.toUpperCase();x.startsWith("_")||(x=`_${x}`);let b=p.typedArray;u(b)||(b=Bl(p).createArrayBufferView(i.buffer,i.byteOffset+p.byteOffset,e));let T=new fn.Attribute;T.name=x,T.count=e,T.type=p.type;let C=q.fromTypedArray(b);(C===q.INT||C===q.UNSIGNED_INT||C===q.DOUBLE)&&(LV._oneTimeWarning("Cast pnts property to floats",`Point cloud property "${x}" will be cast to a float array because INT, UNSIGNED_INT, and DOUBLE are not valid WebGL vertex attribute types. Some precision may be lost.`),b=new Float32Array(b)),T.componentDatatype=q.fromTypedArray(b),T.typedArray=b,r.push(T),s[_]={attribute:x}}let c={classes:{}};c.classes[t]={properties:o};let l=Wl.fromJson(c);return{class:t,propertyAttributeJson:{properties:s},transcodedSchema:l,transcodedClass:l.classes[t]}}function Wme(e){let t=f$e(e.componentType);return{type:e.type,componentType:t}}function f$e(e){switch(e){case"BYTE":return"INT8";case"UNSIGNED_BYTE":return"UINT8";case"SHORT":return"INT16";case"UNSIGNED_SHORT":return"UINT16";case"INT":return"INT32";case"UNSIGNED_INT":return"UINT32";case"FLOAT":return"FLOAT32";case"DOUBLE":return"FLOAT64"}}LV._deprecationWarning=uo;LV._oneTimeWarning=Bt;var Id=LV;var HT={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},d$e=fn.FeatureIdAttribute;function Vy(e){e=y(e,y.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,r=y(e.byteOffset,0),o=y(e.releaseGltfJson,!1),s=y(e.asynchronous,!0),a=y(e.incrementallyLoadTextures,!0),c=y(e.upAxis,wn.Y),l=y(e.forwardAxis,wn.X),f=y(e.loadAttributesAsTypedArray,!1),d=y(e.loadAttributesFor2D,!1),p=y(e.enablePick,!1),_=y(e.loadIndicesForWireframe,!1),m=y(e.loadPrimitiveOutline,!0),x=y(e.loadForClassification,!1);n=u(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=r,this._releaseGltfJson=o,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=f,this._loadAttributesFor2D=d,this._enablePick=p,this._loadIndicesForWireframe=_,this._loadPrimitiveOutline=m,this._loadForClassification=x,this._state=HT.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=M.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}u(Object.create)&&(Vy.prototype=Object.create(Li.prototype),Vy.prototype.constructor=Vy);Object.defineProperties(Vy.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});Vy.prototype.load=function(){if(u(this._promise))return this._promise;let e=RV.parse(this._arrayBuffer,this._byteOffset),t=e.featureTableJson,n=e.featureTableBinary,i=new Ta(t,n);this._tilesetVersion==="2.1"||this._tilesetVersion==="2.2"?this._batchLength=this._attBatchTable?.batchTableJson?.tid?.tidsLength:this._tilesetVersion==="2.0"&&u(this._attBatchTable)&&(this._batchLength=this._attBatchTable?.batchTableJson?.OID?.length),u(this._batchLength)||(this._batchLength=0);let r=i.getGlobalProperty("RTC_CENTER",q.FLOAT,3);u(r)&&(this._transform=M.fromTranslation(h.fromArray(r))),u(this._attBatchTable)&&(this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary});let o=new il({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,tilesetVersion:this._tilesetVersion,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=o,this._state=HT.LOADING;let s=this;return this._promise=o.load().then(function(){if(!s.isDestroyed())return s._state=HT.PROCESSING,s}).catch(function(a){if(!s.isDestroyed())return h$e(s,a)}),this._promise};function h$e(e,t){return e.unload(),e._state=HT.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}Vy.prototype.process=function(e){if(this._state===HT.READY)return!0;if(this._state!==HT.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=M.multiplyTransformation(this._transform,n.transform,n.transform),m$e(this,n),this._components=n,this._arrayBuffer=void 0,this._state=HT.READY,!0};function m$e(e,t){let n=e._batchTable,i=e._batchLength,r=e._tilesetVersion;if(i===0)return;let o;if(u(n?.json))o=Id({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:r});else{let c=new ms({name:xa.BATCH_TABLE_CLASS_NAME,count:i});o=new ho({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)jme(s[c]);t.structuralMetadata=o}function jme(e){let t=e.children.length;for(let i=0;i<t;i++)jme(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let r=e.primitives[i],o=hn.getAttributeBySemantic(r,lt.FEATURE_ID);if(u(o)){o.setIndex=0;let s=new d$e;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",r.featureIds.push(s)}}}Vy.prototype.unload=function(){u(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var NV=Vy;var GT={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},p$e=fn.FeatureIdAttribute;function Uy(e){e=y(e,y.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,r=y(e.byteOffset,0),o=y(e.releaseGltfJson,!1),s=y(e.asynchronous,!0),a=y(e.incrementallyLoadTextures,!0),c=y(e.upAxis,wn.Y),l=y(e.forwardAxis,wn.X),f=y(e.loadAttributesAsTypedArray,!1),d=y(e.loadAttributesFor2D,!1),p=y(e.enablePick,!1),_=y(e.loadIndicesForWireframe,!1),m=y(e.loadPrimitiveOutline,!0),x=y(e.loadForClassification,!1);n=u(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=r,this._releaseGltfJson=o,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=f,this._loadAttributesFor2D=d,this._enablePick=p,this._loadIndicesForWireframe=_,this._loadPrimitiveOutline=m,this._loadForClassification=x,this._state=GT.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=M.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}u(Object.create)&&(Uy.prototype=Object.create(Li.prototype),Uy.prototype.constructor=Uy);Object.defineProperties(Uy.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});Uy.prototype.load=function(){if(u(this._promise))return this._promise;let e=TS.parse(this._arrayBuffer,this._byteOffset),t=e.batchLength,n=e.featureTableJson,i=e.featureTableBinary,r=new Ta(n,i);t=r.getGlobalProperty("BATCH_LENGTH"),this._batchLength=t;let o=r.getGlobalProperty("RTC_CENTER",q.FLOAT,3);u(o)&&(this._transform=M.fromTranslation(h.fromArray(o))),this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary};let s=new il({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=s,this._state=GT.LOADING;let a=this;return this._promise=s.load().then(function(){if(!a.isDestroyed())return a._state=GT.PROCESSING,a}).catch(function(c){if(!a.isDestroyed())return _$e(a,c)}),this._promise};function _$e(e,t){return e.unload(),e._state=GT.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}Uy.prototype.process=function(e){if(this._state===GT.READY)return!0;if(this._state!==GT.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=M.multiplyTransformation(this._transform,n.transform,n.transform),g$e(this,n),this._components=n,this._arrayBuffer=void 0,this._state=GT.READY,!0};function g$e(e,t){let n=e._batchTable,i=e._batchLength,r=e._tilesetVersion;if(i===0)return;let o;if(u(n.json))o=Id({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:r});else{let c=new ms({name:xa.BATCH_TABLE_CLASS_NAME,count:i});o=new ho({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)qme(s[c]);t.structuralMetadata=o}function qme(e){let t=e.children.length;for(let i=0;i<t;i++)qme(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let r=e.primitives[i],o=hn.getAttributeBySemantic(r,lt.FEATURE_ID);if(u(o)){o.setIndex=0;let s=new p$e;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",r.featureIds.push(s)}}}Uy.prototype.unload=function(){u(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var FV=Uy;var wg={NOT_LOADED:0,LOADING:1,PROCESSING:2,POST_PROCESSING:3,READY:4,FAILED:5,UNLOADED:6},BV=fn.Attribute,y$e=fn.FeatureIdAttribute,Xme=fn.Instances;function Dg(e){e=y(e,y.EMPTY_OBJECT);let t=e.i3dmResource,n=e.arrayBuffer,i=e.baseResource,r=y(e.byteOffset,0),o=y(e.releaseGltfJson,!1),s=y(e.asynchronous,!0),a=y(e.incrementallyLoadTextures,!0),c=y(e.upAxis,wn.Y),l=y(e.forwardAxis,wn.X),f=y(e.loadAttributesAsTypedArray,!1),d=y(e.loadIndicesForWireframe,!1),p=y(e.loadPrimitiveOutline,!0),_=y(e.enablePick,!1);i=u(i)?i:t.clone(),this._i3dmResource=t,this._baseResource=i,this._arrayBuffer=n,this._byteOffset=r,this._releaseGltfJson=o,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=f,this._loadIndicesForWireframe=d,this._loadPrimitiveOutline=p,this._enablePick=_,this._state=wg.NOT_LOADED,this._promise=void 0,this._gltfLoader=void 0,this._buffers=[],this._components=void 0,this._transform=M.IDENTITY,this._batchTable=void 0,this._featureTable=void 0,this._instancesLength=0,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}u(Object.create)&&(Dg.prototype=Object.create(Li.prototype),Dg.prototype.constructor=Dg);Object.defineProperties(Dg.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});Dg.prototype.load=function(){if(u(this._promise))return this._promise;let e=CS.parse(this._arrayBuffer,this._byteOffset),t=e.featureTableJson,n=e.featureTableBinary,i=e.gltfFormat,r=new Ta(t,n);this._featureTable=r;let o=r.getGlobalProperty("INSTANCES_LENGTH");if(r.featuresLength=o,!u(o))throw new ae("Feature table global property: INSTANCES_LENGTH must be defined");this._instancesLength=o;let s=r.getGlobalProperty("RTC_CENTER",q.FLOAT,3);u(s)&&(this._transform=M.fromTranslation(h.fromArray(s))),this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary};let a={upAxis:this._upAxis,forwardAxis:this._forwardAxis,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry};if(i===0){let l=Vo(e.gltf);l=l.replace(/[\s\0]+$/,"");let f=this._baseResource.getDerivedResource({url:l});a.gltfResource=f,a.baseResource=f}else a.gltfResource=this._i3dmResource,a.typedArray=e.gltf;let c=new il(a);return this._gltfLoader=c,this._state=wg.LOADING,this._promise=c.load().then(()=>{if(!this.isDestroyed())return this._state=wg.PROCESSING,this}).catch(l=>{if(!this.isDestroyed())throw x$e(this,l)}),this._promise};function x$e(e,t){return e.unload(),e._state=wg.FAILED,e.getError("Failed to load i3dm",t)}Dg.prototype.process=function(e){if(this._state===wg.READY)return!0;let t=this._gltfLoader,n=!1;if(this._state===wg.PROCESSING&&(n=t.process(e)),!n)return!1;let i=t.components;return i.transform=M.multiplyTransformation(this._transform,i.transform,i.transform),C$e(this,i,e),b$e(this,i),this._components=i,this._arrayBuffer=void 0,this._state=wg.READY,!0};function b$e(e,t){let n=e._batchTable,i=e._instancesLength,r=e._tilesetVersion;if(i===0)return;let o;if(u(n.json))o=Id({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:r});else{let s=new ms({name:xa.BATCH_TABLE_CLASS_NAME,count:i});o=new ho({schema:{},propertyTables:[s]})}t.structuralMetadata=o}var kV=new h,yK=new Array(4),T$e=new M;function C$e(e,t,n){let i,r=e._featureTable,o=e._instancesLength;if(o===0)return;let s=r.getGlobalProperty("RTC_CENTER",q.FLOAT,3),a=r.getGlobalProperty("EAST_NORTH_UP"),c=r.hasProperty("NORMAL_UP")||r.hasProperty("NORMAL_UP_OCT32P")||a,l=r.hasProperty("SCALE")||r.hasProperty("SCALE_NON_UNIFORM"),f=E$e(r,o),d;c&&(d=new Float32Array(4*o));let p;l&&(p=new Float32Array(3*o));let _=new Float32Array(o),m=h.unpackArray(f),x=new h,b=new h,T=new h,C=new h,A=new $,E=new Ge,v=new Array(4),D=new h,R=new Array(3),O=new M;if(!u(s)||h.equals(h.unpack(s),h.ZERO)){let V=ce.fromPoints(m);for(i=0;i<m.length;i++)h.subtract(m[i],V.center,kV),f[3*i+0]=kV.x,f[3*i+1]=kV.y,f[3*i+2]=kV.z;let U=M.fromTranslation(V.center,T$e);t.transform=M.multiplyTransformation(U,t.transform,t.transform)}for(i=0;i<o;i++){x=h.clone(m[i]),u(s)&&h.add(x,h.unpack(s),x),c&&(S$e(r,a,i,E,x,T,b,C,A,O),Ge.pack(E,v,0),d[4*i+0]=v[0],d[4*i+1]=v[1],d[4*i+2]=v[2],d[4*i+3]=v[3]),l&&(v$e(r,i,D),h.pack(D,R,0),p[3*i+0]=R[0],p[3*i+1]=R[1],p[3*i+2]=R[2]);let V=r.getProperty("BATCH_ID",q.UNSIGNED_SHORT,1,i);u(V)||(V=i),_[i]=V}let L=new Xme;L.transformInWorldSpace=!0;let N=e._buffers,g=new BV;if(g.name="Instance Translation",g.semantic=qo.TRANSLATION,g.componentDatatype=q.FLOAT,g.type=Gt.VEC3,g.count=o,g.typedArray=f,!c){let V=et.createVertexBuffer({context:n.context,typedArray:f,usage:Oe.STATIC_DRAW});V.vertexArrayDestroyable=!1,N.push(V),g.buffer=V}if(L.attributes.push(g),c){let V=new BV;V.name="Instance Rotation",V.semantic=qo.ROTATION,V.componentDatatype=q.FLOAT,V.type=Gt.VEC4,V.count=o,V.typedArray=d,L.attributes.push(V)}if(l){let V=new BV;if(V.name="Instance Scale",V.semantic=qo.SCALE,V.componentDatatype=q.FLOAT,V.type=Gt.VEC3,V.count=o,c)V.typedArray=p;else{let U=et.createVertexBuffer({context:n.context,typedArray:p,usage:Oe.STATIC_DRAW});U.vertexArrayDestroyable=!1,N.push(U),V.buffer=U}L.attributes.push(V)}let S=new BV;S.name="Instance Feature ID",S.setIndex=0,S.semantic=qo.FEATURE_ID,S.componentDatatype=q.FLOAT,S.type=Gt.SCALAR,S.count=o;let w=et.createVertexBuffer({context:n.context,typedArray:_,usage:Oe.STATIC_DRAW});w.vertexArrayDestroyable=!1,N.push(w),S.buffer=w,L.attributes.push(S);let P=new y$e;P.propertyTableId=0,P.setIndex=0,P.positionalLabel="instanceFeatureId_0",L.featureIds.push(P);let F=t.nodes,B=F.length,H=!1;for(i=0;i<B;i++){let V=F[i];V.primitives.length>0&&(V.instances=H?A$e(L):L,H=!0)}}function A$e(e){let t=new Xme;t.transformInWorldSpace=e.transformInWorldSpace;let n=e.attributes,i=n.length;for(let r=0;r<i;r++){let o=Ve(n[r],!1);t.attributes.push(o)}return t.featureIds=e.featureIds,t}function E$e(e,t){if(e.hasProperty("POSITION"))return e.getPropertyArray("POSITION",q.FLOAT,3);if(e.hasProperty("POSITION_QUANTIZED")){let n=e.getPropertyArray("POSITION_QUANTIZED",q.UNSIGNED_SHORT,3),i=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",q.FLOAT,3);if(!u(i))throw new ae("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");let r=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",q.FLOAT,3);if(!u(r))throw new ae("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let o=new Float32Array(n.length);for(let s=0;s<n.length/3;s++)for(let a=0;a<3;a++){let c=3*s+a;o[c]=n[c]/65535*r[a]+i[a]}return o}else throw new ae("Either POSITION or POSITION_QUANTIZED must be defined for each instance.")}var Yme=new Array(4);function S$e(e,t,n,i,r,o,s,a,c,l){let f=e.getProperty("NORMAL_UP",q.FLOAT,3,n,yK),d=e.getProperty("NORMAL_RIGHT",q.FLOAT,3,n,Yme),p=!1;if(u(f)){if(!u(d))throw new ae("To define a custom orientation, both NORMAL_UP and NORMAL_RIGHT must be defined.");h.unpack(f,0,o),h.unpack(d,0,s),p=!0}else{let _=e.getProperty("NORMAL_UP_OCT32P",q.UNSIGNED_SHORT,2,n,yK),m=e.getProperty("NORMAL_RIGHT_OCT32P",q.UNSIGNED_SHORT,2,n,Yme);if(u(_)){if(!u(m))throw new ae("To define a custom orientation with oct-encoded vectors, both NORMAL_UP_OCT32P and NORMAL_RIGHT_OCT32P must be defined.");xn.octDecodeInRange(_[0],_[1],65535,o),xn.octDecodeInRange(m[0],m[1],65535,s),p=!0}else t?(St.eastNorthUpToFixedFrame(r,ne.WGS84,l),M.getMatrix3(l,c)):$.clone($.IDENTITY,c)}p&&(h.cross(s,o,a),h.normalize(a,a),$.setColumn(c,0,s,c),$.setColumn(c,1,o,c),$.setColumn(c,2,a,c)),Ge.fromRotationMatrix(c,i)}function v$e(e,t,n){n=h.fromElements(1,1,1,n);let i=e.getProperty("SCALE",q.FLOAT,1,t);u(i)&&h.multiplyByScalar(n,i,n);let r=e.getProperty("SCALE_NON_UNIFORM",q.FLOAT,3,t,yK);u(r)&&(n.x*=r[0],n.y*=r[1],n.z*=r[2])}function w$e(e){let t=e._buffers,n=t.length;for(let i=0;i<n;i++){let r=t[i];r.isDestroyed()||r.destroy()}t.length=0}Dg.prototype.isUnloaded=function(){return this._state===wg.UNLOADED};Dg.prototype.unload=function(){u(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),w$e(this),this._components=void 0,this._arrayBuffer=void 0,this._state=wg.UNLOADED};var VV=Dg;var Qme=xo(L1(),1);var Kme={},jh=Uint32Array.BYTES_PER_ELEMENT;Kme.parse=function(e,t,n,i,r){t=y(t,0);let o=new Uint8Array(e),s=new DataView(e),a=0,c=0,l,f;if(n.version==="1.0"||n.version==="0.0"){let T=s.getUint32(t,!0);t+=jh;let C=s.getUint32(t,!0);if(C===0)throw new ae("Feature table must have a byte length greater than zero");t+=jh;let A=s.getUint32(t,!0);if(t+=jh,c=s.getUint32(t,!0),t+=jh,T>0){let v=Vo(o,t,T),D=JSON.parse(v);n.loadChildTileSet(r,D,i)}t+=T;let E=Vo(o,t,C);l=JSON.parse(E),t+=C,f=new Uint8Array(e,t,A),t+=A}else{t+=jh;let T=s.getUint32(t,!0);if(T!==1)throw new ae(`Only Point Cloud tile version 1 is supported. Version ${T} is not.`);t+=jh,t+=jh;let C=s.getUint32(t,!0);if(C===0)throw new ae("Feature table must have a byte length greater than zero");t+=jh;let A=s.getUint32(t,!0);t+=jh,a=s.getUint32(t,!0),t+=jh,c=s.getUint32(t,!0),t+=jh,l=dr(o,t,C),t+=C,f=new Uint8Array(e,t,A),t+=A}let d,p;a>0&&(d=dr(o,t,a),t+=a,c>0&&(p=new Uint8Array(e,t,c),t+=c));let _=new Ta(l,f),m=_.getGlobalProperty("POINTS_LENGTH");if(_.featuresLength=m,!u(m))throw new ae("Feature table global property: POINTS_LENGTH must be defined");let x=_.getGlobalProperty("RTC_CENTER",q.FLOAT,3);u(x)&&(x=h.unpack(x));let b=D$e(_,d);if(b.rtcCenter=x,b.pointsLength=m,!b.hasPositions){let T=P$e(_);b.positions=T,b.hasPositions=b.hasPositions||u(T)}if(!b.hasPositions)throw new ae("Either POSITION or POSITION_QUANTIZED must be defined.");if(!b.hasNormals){let T=R$e(_);b.normals=T,b.hasNormals=b.hasNormals||u(T)}if(!b.hasColors){let T=I$e(_);b.colors=T,b.hasColors=b.hasColors||u(T),b.hasConstantColor=u(b.constantColor),b.isTranslucent=u(T)&&T.isTranslucent}if(!b.hasBatchIds){let T=O$e(_);b.batchIds=T,b.hasBatchIds=b.hasBatchIds||u(T)}if(b.hasBatchIds){let T=_.getGlobalProperty("BATCH_LENGTH");if(!u(T))throw new ae("Global property: BATCH_LENGTH must be defined when BATCH_ID is defined.");b.batchLength=T}return u(p)&&(p=new Uint8Array(p),b.batchTableJson=d,b.batchTableBinary=p),b.batchTableJson=d,b};function D$e(e,t){let n=e.json,i,r,o,s=u(n.extensions)?n.extensions["3DTILES_draco_point_compression"]:void 0,a=u(t)&&u(t.extensions)?t.extensions["3DTILES_draco_point_compression"]:void 0;u(a)&&(o=a.properties);let c,l,f,d,p;if(u(s)){r=s.properties;let m=s.byteOffset,x=s.byteLength;if(!u(r)||!u(m)||!u(x))throw new ae("Draco properties, byteOffset, and byteLength must be defined");i=e.buffer.slice(m,m+x),c=u(r.POSITION),l=u(r.RGB)||u(r.RGBA),f=u(r.NORMAL),d=u(r.BATCH_ID),p=u(r.RGBA)}let _;return u(i)&&(_={buffer:i,featureTableProperties:r,batchTableProperties:o,properties:xt(r,o),dequantizeInShader:!0}),{draco:_,hasPositions:c,hasColors:l,isTranslucent:p,hasNormals:f,hasBatchIds:d}}function P$e(e){let t=e.json,n;if(u(t.POSITION))return n=e.getPropertyArray("POSITION",q.FLOAT,3),{name:lt.POSITION,semantic:lt.POSITION,typedArray:n,isQuantized:!1,componentDatatype:q.FLOAT,type:Gt.VEC3};if(u(t.POSITION_QUANTIZED)){n=e.getPropertyArray("POSITION_QUANTIZED",q.UNSIGNED_SHORT,3);let i=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",q.FLOAT,3);if(!u(i))throw new ae("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let r=65535,o=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",q.FLOAT,3);if(!u(o))throw new ae("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");return{name:lt.POSITION,semantic:lt.POSITION,typedArray:n,isQuantized:!0,componentDatatype:q.FLOAT,type:Gt.VEC3,quantizedRange:r,quantizedVolumeOffset:h.unpack(o),quantizedVolumeScale:h.unpack(i),quantizedComponentDatatype:q.UNSIGNED_SHORT,quantizedType:Gt.VEC3}}}function I$e(e){let t=e.json,n;if(u(t.RGBA))return n=e.getPropertyArray("RGBA",q.UNSIGNED_BYTE,4),{name:lt.COLOR,semantic:lt.COLOR,setIndex:0,typedArray:n,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC4,normalized:!0,isRGB565:!1,isTranslucent:!0};if(u(t.RGB))return n=e.getPropertyArray("RGB",q.UNSIGNED_BYTE,3),{name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC3,normalized:!0,isRGB565:!1,isTranslucent:!1};if(u(t.RGB565))return n=e.getPropertyArray("RGB565",q.UNSIGNED_SHORT,1),{name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n,componentDatatype:q.FLOAT,type:Gt.VEC3,normalized:!1,isRGB565:!0,isTranslucent:!1};if(u(t.CONSTANT_RGBA)){let i=e.getGlobalProperty("CONSTANT_RGBA",q.UNSIGNED_BYTE,4),r=i[3],o=z.fromBytes(i[0],i[1],i[2],r),s=r<255;return{name:lt.COLOR,semantic:lt.COLOR,setIndex:0,constantColor:o,componentDatatype:q.FLOAT,type:Gt.VEC4,isQuantized:!1,isTranslucent:s}}}function R$e(e){let t=e.json,n;if(u(t.NORMAL))return n=e.getPropertyArray("NORMAL",q.FLOAT,3),{name:lt.NORMAL,semantic:lt.NORMAL,typedArray:n,octEncoded:!1,octEncodedZXY:!1,componentDatatype:q.FLOAT,type:Gt.VEC3};if(u(t.NORMAL_OCT16P))return n=e.getPropertyArray("NORMAL_OCT16P",q.UNSIGNED_BYTE,2),{name:lt.NORMAL,semantic:lt.NORMAL,typedArray:n,octEncoded:!0,octEncodedZXY:!1,quantizedRange:(1<<8)-1,quantizedType:Gt.VEC2,quantizedComponentDatatype:q.UNSIGNED_BYTE,componentDatatype:q.FLOAT,type:Gt.VEC3}}function O$e(e){let t=e.json;if(u(t.BATCH_ID)){let n=e.getPropertyArray("BATCH_ID",q.UNSIGNED_SHORT,1);return{name:lt.FEATURE_ID,semantic:lt.FEATURE_ID,setIndex:0,typedArray:n,componentDatatype:q.fromTypedArray(n),type:Gt.SCALAR}}}var UV=Kme;var M$e=fn.Components,L$e=fn.Scene,N$e=fn.Node,F$e=fn.Primitive,B$e=fn.Attribute,Zme=fn.Quantization,k$e=fn.FeatureIdAttribute,V$e=fn.Material,U$e=fn.MetallicRoughness;function zy(e){e=y(e,y.EMPTY_OBJECT);let t=e.arrayBuffer,n=y(e.byteOffset,0);this._arrayBuffer=t,this._byteOffset=n,this._loadAttributesFor2D=y(e.loadAttributesFor2D,!1),this._parsedContent=void 0,this._decodePromise=void 0,this._decodedAttributes=void 0,this._promise=void 0,this._error=void 0,this._state=It.UNLOADED,this._buffers=[],this._components=void 0,this._transform=M.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._tileset=e.tileset,this._tile=e.tile,this._resource=e.resource}u(Object.create)&&(zy.prototype=Object.create(Li.prototype),zy.prototype.constructor=zy);Object.defineProperties(zy.prototype,{cacheKey:{get:function(){}},components:{get:function(){return this._components}},transform:{get:function(){return this._transform}}});zy.prototype.load=function(){if(u(this._promise))return this._promise;this._parsedContent=UV.parse(this._arrayBuffer,this._byteOffset,this._tileset,this._tile,this._resource),(this._tilesetVersion==="2.1"||this._tilesetVersion==="2.2")&&(this._parsedContent.batchTableJson=this._attBatchTable?.batchTableJson,this._parsedContent.batchTableBinary=this._attBatchTable?.batchTableBinary),this._state=It.PROCESSING,this._promise=Promise.resolve(this)};zy.prototype.process=function(e){if(u(this._error)){let t=this._error;throw this._error=void 0,t}if(this._state===It.READY)return!0;if(this._state===It.PROCESSING){if(u(this._decodePromise))return!1;this._decodePromise=z$e(this,e.context)}return!1};function z$e(e,t){let i=e._parsedContent.draco,r;if(u(i)?r=Sp.decodePointCloud(i,t):r=Promise.resolve(),!!u(r))return e._decodePromise=r,r.then(function(o){if(!e.isDestroyed())return u(o)&&H$e(e,i,o),J$e(e,t),e._state=It.READY,e}).catch(function(o){e.unload(),e._state=It.FAILED;let s="Failed to load Draco pnts";e._error=e.getError(s,o)})}function H$e(e,t,n){e._state=It.READY;let i=e._parsedContent,r;if(u(n.POSITION)){if(r={name:"POSITION",semantic:lt.POSITION,typedArray:n.POSITION.array,componentDatatype:q.FLOAT,type:Gt.VEC3,isQuantized:!1},u(n.POSITION.data.quantization)){let a=n.POSITION.data.quantization,c=a.range,l=h.fromElements(c,c,c),f=h.unpack(a.minValues),d=(1<<a.quantizationBits)-1;r.isQuantized=!0,r.quantizedRange=d,r.quantizedVolumeOffset=f,r.quantizedVolumeScale=l,r.quantizedComponentDatatype=d<=255?q.UNSIGNED_BYTE:q.UNSIGNED_SHORT,r.quantizedType=Gt.VEC3}i.positions=r}if(u(n.NORMAL)){if(r={name:"NORMAL",semantic:lt.NORMAL,typedArray:n.NORMAL.array,componentDatatype:q.FLOAT,type:Gt.VEC3,isQuantized:!1,octEncoded:!1,octEncodedZXY:!1},u(n.NORMAL.data.quantization)){let a=(1<<n.NORMAL.data.quantization.quantizationBits)-1;r.quantizedRange=a,r.octEncoded=!0,r.octEncodedZXY=!0,r.quantizedComponentDatatype=q.UNSIGNED_BYTE,r.quantizedType=Gt.VEC2}i.normals=r}if(u(n.RGBA)?i.colors={name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n.RGBA.array,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC4,normalized:!0,isTranslucent:!0}:u(n.RGB)&&(i.colors={name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n.RGB.array,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC3,normalized:!0,isTranslucent:!1}),u(n.BATCH_ID)){let a=n.BATCH_ID.array;i.batchIds={name:"_FEATURE_ID",semantic:lt.FEATURE_ID,setIndex:0,typedArray:a,componentDatatype:q.fromTypedArray(a),type:Gt.SCALAR}}let o=i.batchTableJson,s=t.batchTableProperties;for(let a in s)if(s.hasOwnProperty(a)){let c=n[a];u(o)||(o={}),i.hasDracoBatchTable=!0;let l=c.data;o[a]={byteOffset:l.byteOffset,type:G$e(l.componentsPerAttribute),componentType:W$e(l.componentDatatype),typedArray:c.array}}i.batchTableJson=o}function G$e(e){switch(e){case 1:return"SCALAR";case 2:return"VEC2";case 3:return"VEC3";case 4:return"VEC4"}}function W$e(e){switch(e){case J.BYTE:return"BYTE";case J.UNSIGNED_BYTE:return"UNSIGNED_BYTE";case J.SHORT:return"SHORT";case J.UNSIGNED_SHORT:return"UNSIGNED_SHORT";case J.INT:return"INT";case J.UNSIGNED_INT:return"UNSIGNED_INT";case J.DOUBLE:return"DOUBLE";case J.FLOAT:return"FLOAT"}}function MP(e,t,n){let i=t.typedArray,r;if(t.octEncoded&&(r=new Zme,r.octEncoded=t.octEncoded,r.octEncodedZXY=t.octEncodedZXY,r.normalizationRange=t.quantizedRange,r.type=t.quantizedType,r.componentDatatype=t.quantizedComponentDatatype),t.isQuantized){r=new Zme;let a=t.quantizedRange;r.normalizationRange=a,r.quantizedVolumeOffset=h.ZERO;let c=t.quantizedVolumeScale;r.quantizedVolumeDimensions=c,r.quantizedVolumeStepSize=h.divideByScalar(c,a,new h),r.componentDatatype=t.quantizedComponentDatatype,r.type=t.quantizedType}let o=new B$e;if(o.name=t.name,o.semantic=t.semantic,o.setIndex=t.setIndex,o.componentDatatype=t.componentDatatype,o.type=t.type,o.normalized=y(t.normalized,!1),o.min=t.min,o.max=t.max,o.quantization=r,t.isRGB565&&(i=xn.decodeRGB565(i)),u(t.constantColor)){let a=new Array(4);o.constant=z.pack(t.constantColor,a)}else{let a=et.createVertexBuffer({typedArray:i,context:n,usage:Oe.STATIC_DRAW});a.vertexArrayDestroyable=!1,e._buffers.push(a),o.buffer=a}let s=e._loadAttributesFor2D;return o.semantic===lt.POSITION&&s&&(o.typedArray=i),o}var $me,zV;function j$e(e){if(!u(zV)){$me=new Qme.default(0),zV=new Array(e);for(let t=0;t<e;++t)zV[t]=$me.random()}return zV}var q$e=new h,Y$e=new h,X$e=new h;function K$e(e){let t=e.typedArray,n=20,i=t.length/3,r=Math.min(i,n),o=j$e(n),s=Number.MAX_VALUE,a=-Number.MAX_VALUE,c=h.fromElements(s,s,s,q$e),l=h.fromElements(a,a,a,Y$e),f,d,p;if(e.isQuantized)c=h.ZERO,l=e.quantizedVolumeScale;else for(f=0;f<r;++f)d=Math.floor(o[f]*i),p=h.unpack(t,d*3,X$e),h.minimumByComponent(c,p,c),h.maximumByComponent(l,p,l);e.min=h.clone(c),e.max=h.clone(l)}var Z$e={name:lt.COLOR,semantic:lt.COLOR,setIndex:0,constantColor:z.DARKGRAY,componentDatatype:q.FLOAT,type:Gt.VEC4,isQuantized:!1,isTranslucent:!1};function $$e(e,t,n){let i=[],r,o=t.positions;return u(o)&&(K$e(o),r=MP(e,o,n),r.count=t.pointsLength,i.push(r)),u(t.normals)&&(r=MP(e,t.normals,n),i.push(r)),u(t.colors)?(r=MP(e,t.colors,n),i.push(r)):(r=MP(e,Z$e,n),i.push(r)),u(t.batchIds)&&(r=MP(e,t.batchIds,n),i.push(r)),i}function Q$e(e,t,n){let i=e.batchLength,r=e.pointsLength,o=e.batchTableBinary,s=!u(e.batchIds);if(u(o)||e.hasDracoBatchTable||e.batchTableJson){let a=y(i,r);if(n==="2.1"||n==="2.2")return Id({count:a,batchTable:e.batchTableJson,binaryBody:o,parseAsPropertyAttributes:s,customAttributeOutput:t,tilesetVersion:n});if(n==="2.0")return Pp({count:a,batchTable:e.batchTableJson,binaryBody:o,parseAsPropertyAttributes:s,customAttributeOutput:t})}return new ho({schema:{},propertyTables:[]})}function J$e(e,t){let n=e._parsedContent,i=e._tilesetVersion,r=new U$e;r.metallicFactor=0,r.roughnessFactor=.9;let o=new V$e;o.metallicRoughness=r;let s=n.colors;u(s)&&s.isTranslucent&&(o.alphaMode=Bh.BLEND);let a=!u(n.normals);o.unlit=a;let c=new F$e;if(c.attributes=$$e(e,n,t),c.primitiveType=Fe.POINTS,c.material=o,u(n.batchIds)){let m=new k$e;m.propertyTableId=0,m.setIndex=0,m.positionalLabel="featureId_0",c.featureIds.push(m)}let l=new N$e;l.index=0,l.primitives=[c];let f=new L$e;f.nodes=[l],f.upAxis=wn.Z,f.forwardAxis=wn.X;let d=new M$e;d.scene=f,d.nodes=[l];let p=[];d.structuralMetadata=Q$e(n,p,i),p.length>0&&eQe(e,c,p,t),u(n.rtcCenter)&&(d.transform=M.multiplyByTranslation(d.transform,n.rtcCenter,d.transform));let _=n.positions;u(_)&&_.isQuantized&&(d.transform=M.multiplyByTranslation(d.transform,_.quantizedVolumeOffset,d.transform)),e._components=d,e._parsedContent=void 0,e._arrayBuffer=void 0}function eQe(e,t,n,i){let r=t.attributes,o=n.length;for(let s=0;s<o;s++){let a=n[s],c=et.createVertexBuffer({typedArray:a.typedArray,context:i,usage:Oe.STATIC_DRAW});c.vertexArrayDestroyable=!1,e._buffers.push(c),a.buffer=c,a.typedArray=void 0,r.push(a)}t.propertyAttributeIds=[0]}zy.prototype.unload=function(){let e=this._buffers;for(let t=0;t<e.length;t++)e[t].destroy();e.length=0,this._components=void 0,this._parsedContent=void 0,this._arrayBuffer=void 0};var HV=zy;var zS={};zS._deprecationWarning=uo;var Hy=Uint32Array.BYTES_PER_ELEMENT;zS.parse=function(e,t,n,i){t=y(t,0);let o=new DataView(e),s=new Uint8Array(e),a=0,c=0,l=0,f=0,d=o.getUint32(t,!0);t+=Hy;let p;if(d>0){let E=Vo(s,t,d);t+=d,p=JSON.parse(E),i.tileset.loadChildTileSet(n,p,i)}t+=Hy,a=o.getUint32(t,!0),t+=Hy,c=o.getUint32(t,!0),t+=Hy,l=o.getUint32(t,!0),t+=Hy,f=o.getUint32(t,!0),t+=Hy;let _;d=o.getUint32(t,!0),l>=570425344?(t-=Hy*2,_=a,l=c,f=0,a=0,c=0,zS._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchLength] [batchTableByteLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel.")):f>=570425344&&(t-=Hy,_=l,l=a,f=c,a=0,c=0,zS._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchTableJsonByteLength] [batchTableBinaryByteLength] [batchLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel."));let m;a===0?m={BATCH_LENGTH:y(_,0)}:(m=dr(s,t,a),t+=a);let x=new Uint8Array(e,t,c);t+=c;let b,T;l>0&&(b=dr(s,t,l),t+=l,f>0&&(T=new Uint8Array(e,t,f),T=new Uint8Array(T),t+=f));let C=e.byteLength-t,A;return t%4===0?A=new Uint8Array(e,t,C):(zS._deprecationWarning("b3dm-glb-unaligned","The embedded glb is not aligned to a 4-byte boundary."),A=new Uint8Array(s.subarray(t,t+C))),{batchLength:_,featureTableJson:m,featureTableBinary:x,batchTableJson:b,batchTableBinary:T,gltf:A}};var GV=zS;var WT={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},tQe=fn.FeatureIdAttribute;function Gy(e){e=y(e,y.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,r=y(e.byteOffset,0),o=y(e.releaseGltfJson,!1),s=y(e.asynchronous,!0),a=y(e.incrementallyLoadTextures,!0),c=y(e.upAxis,wn.Y),l=y(e.forwardAxis,wn.X),f=y(e.loadAttributesAsTypedArray,!1),d=y(e.loadAttributesFor2D,!1),p=y(e.enablePick,!1),_=y(e.loadIndicesForWireframe,!1),m=y(e.loadPrimitiveOutline,!0),x=y(e.loadForClassification,!1);n=u(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=r,this._releaseGltfJson=o,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=f,this._loadAttributesFor2D=d,this._enablePick=p,this._loadIndicesForWireframe=_,this._loadPrimitiveOutline=m,this._loadForClassification=x,this._state=WT.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=M.IDENTITY,this._tilesetVersion=e.tilesetVersion,this._tile=e.tile,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}u(Object.create)&&(Gy.prototype=Object.create(Li.prototype),Gy.prototype.constructor=Gy);Object.defineProperties(Gy.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});Gy.prototype.load=function(){if(u(this._promise))return this._promise;let e=GV.parse(this._arrayBuffer,this._byteOffset,this._baseResource,this._tile),t=e.featureTableJson,n=e.featureTableBinary,i=e.batchTableJson,r=e.batchTableBinary,o=new Ta(t,n);this._tilesetVersion==="1.0"&&(this._batchLength=o.getGlobalProperty("BATCH_LENGTH"));let s=o.getGlobalProperty("RTC_CENTER",q.FLOAT,3);if(u(s)&&(this._transform=M.fromTranslation(h.fromArray(s))),u(i)){if(i.hasOwnProperty("name")){i.OID=[];let l=i.name;for(let f=0;f<l.length;f++){let d=l[f].split("_"),p=parseInt(d[2]);i.OID.push(p)}}this._batchTable={json:i,binary:r}}let a=new il({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=a,this._state=WT.LOADING;let c=this;return this._promise=a.load().then(function(){if(!c.isDestroyed())return c._state=WT.PROCESSING,c}).catch(function(l){if(!c.isDestroyed())return nQe(c,l)}),this._promise};function nQe(e,t){return e.unload(),e._state=WT.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}Gy.prototype.process=function(e){if(this._state===WT.READY)return!0;if(this._state!==WT.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=M.multiplyTransformation(this._transform,n.transform,n.transform),iQe(this,n),this._components=n,this._arrayBuffer=void 0,this._state=WT.READY,!0};function iQe(e,t){let n=e._batchTable,i=e._batchLength,r=e._tilesetVersion;if(i===0)return;let o;if(u(n?.json))o=Id({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:r});else{let c=new ms({name:xa.BATCH_TABLE_CLASS_NAME,count:i});o=new ho({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)Jme(s[c]);t.structuralMetadata=o}function Jme(e){let t=e.children.length;for(let i=0;i<t;i++)Jme(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let r=e.primitives[i],o=hn.getAttributeBySemantic(r,lt.FEATURE_ID);if(u(o)){o.setIndex=0;let s=new tQe;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",r.featureIds.push(s)}}}Gy.prototype.unload=function(){u(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var WV=Gy;var rQe={FILL:0,SILHOUETTE:1,ALL:2},Op=Object.freeze(rQe);function ki(e){e=y(e,y.EMPTY_OBJECT),this._loader=e.loader,this._resource=e.resource,this.type=y(e.type,Co.GLTF),this.modelMatrix=M.clone(y(e.modelMatrix,M.IDENTITY)),this._modelMatrix=M.clone(this.modelMatrix),this._scale=y(e.scale,1),this._minimumPixelSize=y(e.minimumPixelSize,0),this._maximumScale=e.maximumScale,this._clampedScale=u(this._maximumScale)?Math.min(this._scale,this._maximumScale):this._scale,this._computedScale=this._clampedScale,this._updateModelMatrix=!1,this.referenceMatrix=void 0,this._iblReferenceFrameMatrix=$.clone($.IDENTITY),this._resourcesLoaded=!1,this._drawCommandsBuilt=!1,this._ready=!1,this._customShader=e.customShader,this._content=e.content,this._texturesLoaded=!1,this._defaultTexture=void 0,this._activeAnimations=new P4(this),this._clampAnimations=y(e.clampAnimations,!0),this._userAnimationDirty=!1,this._id=e.id,this._idDirty=!1,this._color=z.clone(e.color),this._backupColor=z.clone(e.color),this._colorBlendMode=y(e.colorBlendMode,zl.HIGHLIGHT),this._colorBlendAmount=y(e.colorBlendAmount,.5);let t=y(e.silhouetteColor,z.RED);this._silhouetteColor=z.clone(t),this._silhouetteSize=y(e.silhouetteSize,0),this._silhouetteDirty=!1,this._silhouetteId=void 0,this._cull=y(e.cull,!0),this._opaquePass=y(e.opaquePass,Ee.OPAQUE),this._allowPicking=y(e.allowPicking,!0),this._show=y(e.show,!0),this._style=void 0,this._styleDirty=!1,this._styleCommandsNeeded=void 0;let n=y(e.featureIdLabel,"featureId_0");typeof n=="number"&&(n=`featureId_${n}`),this._featureIdLabel=n;let i=y(e.instanceFeatureIdLabel,"instanceFeatureId_0");typeof i=="number"&&(i=`instanceFeatureId_${i}`),this._instanceFeatureIdLabel=i,this._featureTables=[],this._featureTableId=void 0,this._featureTableIdDirty=!0,this._pipelineResources=[],this._modelResources=[],this._pickIds=[],this._boundingSphere=new ce,this._initialRadius=void 0,this._heightReference=y(e.heightReference,rt.NONE),this._heightDirty=this._heightReference!==rt.NONE,this._removeUpdateHeightCallback=void 0,this._enableVerticalExaggeration=y(e.enableVerticalExaggeration,!0),this._hasVerticalExaggeration=!1,this._clampedModelMatrix=void 0;let r=e.scene;u(r)&&u(r.terrainProviderChanged)&&(this._terrainProviderChangedCallback=r.terrainProviderChanged.addEventListener(()=>{this._heightDirty=!0})),this._scene=r,this._distanceDisplayCondition=e.distanceDisplayCondition;let o=new Gh(e.pointCloudShading);this._pointCloudShading=o,this._attenuation=o.attenuation,this._pointCloudBackFaceCulling=o.backFaceCulling;let s=e.clippingPlanes;u(s)&&s.owner===void 0?So.setOwner(s,this,"_clippingPlanes"):this._clippingPlanes=s,this._clippingPlanesState=0,this._clippingPlanesMatrix=M.clone(M.IDENTITY);let a=e.clippingPolygons;u(a)&&a.owner===void 0?xf.setOwner(a,this,"_clippingPolygons"):this._clippingPolygons=a,this._clippingPolygonsState=0,this._lightColor=h.clone(e.lightColor),this._imageBasedLighting=u(e.imageBasedLighting)?e.imageBasedLighting:new Q0,this._shouldDestroyImageBasedLighting=!u(e.imageBasedLighting),this._backFaceCulling=y(e.backFaceCulling,!0),this._backFaceCullingDirty=!1,this._shadows=y(e.shadows,Wn.ENABLED),this._shadowsDirty=!1,this._debugShowBoundingVolumeDirty=!1,this._debugShowBoundingVolume=y(e.debugShowBoundingVolume,!1),this._enableDebugWireframe=y(e.enableDebugWireframe,!1),this._enableShowOutline=y(e.enableShowOutline,!0),this._debugWireframe=y(e.debugWireframe,!1),this._debugWireframe===!0&&this._enableDebugWireframe===!1&&this.type===Co.GLTF&&Bt("model-debug-wireframe-ignored","enableDebugWireframe must be set to true in Model.fromGltf, otherwise debugWireframe will be ignored.");let c=e.credit;typeof c=="string"&&(c=new Wt(c)),this._credits=[],this._credit=c,this._resourceCredits=[],this._gltfCredits=[],this._showCreditsOnScreen=y(e.showCreditsOnScreen,!1),this._showCreditsOnScreenDirty=!0,this._splitDirection=y(e.splitDirection,us.NONE),this._swipeInverse=!1,this._swiper={},this._enableShowOutline=y(e.enableShowOutline,!0),this.showOutline=y(e.showOutline,!0),this.outlineColor=y(e.outlineColor,z.BLACK),this._classificationType=e.classificationType,this._statistics=new DV,this._sceneMode=void 0,this._projectTo2D=y(e.projectTo2D,!1),this._enablePick=y(e.enablePick,!1),this._fogRenderable=void 0,this._skipLevelOfDetail=!1,this._ignoreCommands=y(e.ignoreCommands,!1),this._errorEvent=new be,this._readyEvent=new be,this._texturesReadyEvent=new be,this._sceneGraph=void 0,this._nodesByName={},this.pickObject=e.pickObject,this._fillClip=y(e.fillClip,!1),this._hasSectionGeometry=y(e.hasSectionGeometry,!1),this._clippingFillImage=y(e.clippingFillImage,void 0),this._lightState={pointLightNum:0,directionalLigthNum:0,spotLightNum:0},this._renderMode=y(e.renderMode,Op.FILL),this._deleteVerticalPlane=y(e.deleteVerticalPlane,!1),this._hasSectionGeometry=this.content?.tileset._hasSectionGeometry,this._clippingGeometries=e.clippingGeometries,this._brightness=0,this._modelUpAxis=wn.Y,this._exposure=0,this._contrast=1,this._hue=0,this._saturation=0,this._gamma=1}function xK(e,t){if(e._errorEvent.numberOfListeners>0){e._errorEvent.raiseEvent(t);return}console.log(t)}function oQe(e,t){let n=e._featureTables,i=t.propertyTables,r=i.length;for(let o=0;o<r;o++){let s=i[o],a=new R4({model:e,propertyTable:s});n.push(a)}return n}function sQe(e,t){let n=t._featureIdLabel,i=t._instanceFeatureIdLabel,r,o,s,a;for(r=0;r<e.nodes.length;r++)if(a=e.nodes[r],u(a.instances)&&(s=hn.getFeatureIdsByLabel(a.instances.featureIds,i),u(s)&&u(s.propertyTableId)))return s.propertyTableId;for(r=0;r<e.nodes.length;r++)for(a=e.nodes[r],o=0;o<a.primitives.length;o++){let c=a.primitives[o],l=hn.getFeatureIdsByLabel(c.featureIds,n);if(u(l))return l.propertyTableId}if(t._featureTables.length===1)return 0}function CK(e,t){if(!u(e)&&!u(t))return!1;if(u(e)!==u(t))return!0;let n=e.alpha,i=t.alpha;return Math.floor(n)!==Math.floor(i)||Math.ceil(n)!==Math.ceil(i)}Object.defineProperties(ki.prototype,{ready:{get:function(){return this._ready}},errorEvent:{get:function(){return this._errorEvent}},readyEvent:{get:function(){return this._readyEvent}},incrementallyLoadTextures:{get:function(){return y(this._loader.incrementallyLoadTextures,!1)}},texturesReadyEvent:{get:function(){return this._texturesReadyEvent}},loader:{get:function(){return this._loader}},statistics:{get:function(){return this._statistics}},activeAnimations:{get:function(){return this._activeAnimations}},clampAnimations:{get:function(){return this._clampAnimations},set:function(e){this._clampAnimations=e}},cull:{get:function(){return this._cull}},opaquePass:{get:function(){return this._opaquePass}},pointCloudShading:{get:function(){return this._pointCloudShading},set:function(e){e!==this._pointCloudShading&&this.resetDrawCommands(),this._pointCloudShading=e}},customShader:{get:function(){return this._customShader},set:function(e){e!==this._customShader&&this.resetDrawCommands(),this._customShader=e}},sceneGraph:{get:function(){return this._sceneGraph}},content:{get:function(){return this._content}},heightReference:{get:function(){return this._heightReference},set:function(e){e!==this._heightReference&&(this._heightDirty=!0),this._heightReference=e}},distanceDisplayCondition:{get:function(){return this._distanceDisplayCondition},set:function(e){this._distanceDisplayCondition=en.clone(e,this._distanceDisplayCondition)}},structuralMetadata:{get:function(){return this._sceneGraph.components.structuralMetadata}},featureTableId:{get:function(){return this._featureTableId},set:function(e){this._featureTableId=e}},featureTables:{get:function(){return this._featureTables},set:function(e){this._featureTables=e}},id:{get:function(){return this._id},set:function(e){e!==this._id&&(this._idDirty=!0),this._id=e}},allowPicking:{get:function(){return this._allowPicking}},style:{get:function(){return this._style},set:function(e){this._style=e,this._styleDirty=!0}},color:{get:function(){return this._color},set:function(e){CK(e,this._color)&&this.resetDrawCommands(),this._color=z.clone(e,this._color)}},colorBlendMode:{get:function(){return this._colorBlendMode},set:function(e){this._colorBlendMode=e}},colorBlendAmount:{get:function(){return this._colorBlendAmount},set:function(e){this._colorBlendAmount=e}},silhouetteColor:{get:function(){return this._silhouetteColor},set:function(e){if(!z.equals(e,this._silhouetteColor)){let t=CK(e,this._silhouetteColor);this._silhouetteDirty=this._silhouetteDirty||t}this._silhouetteColor=z.clone(e,this._silhouetteColor)}},silhouetteSize:{get:function(){return this._silhouetteSize},set:function(e){if(e!==this._silhouetteSize){let t=this._silhouetteSize,n=e>0&&t===0||e===0&&t>0;this._silhouetteDirty=this._silhouetteDirty||n,this._backFaceCullingDirty=this._backFaceCullingDirty||n}this._silhouetteSize=e}},boundingSphere:{get:function(){let e=u(this._clampedModelMatrix)?this._clampedModelMatrix:this.modelMatrix;return npe(this,e),this._boundingSphere}},localBoundingSphere:{get:function(){let e=u(this._maximumScale)?Math.min(this._scale,this._maximumScale):this._scale,t=this._boundingSphere.clone();return t.center=h.multiplyByScalar(this._sceneGraph.boundingSphere.center,e,t.center),t.radius=this._initialRadius*this._clampedScale,t}},debugShowBoundingVolume:{get:function(){return this._debugShowBoundingVolume},set:function(e){this._debugShowBoundingVolume!==e&&(this._debugShowBoundingVolumeDirty=!0),this._debugShowBoundingVolume=e}},debugWireframe:{get:function(){return this._debugWireframe},set:function(e){this._debugWireframe!==e&&this.resetDrawCommands(),this._debugWireframe=e,this._debugWireframe===!0&&this._enableDebugWireframe===!1&&this.type===Co.GLTF&&Bt("model-debug-wireframe-ignored","enableDebugWireframe must be set to true in Model.fromGltfAsync, otherwise debugWireframe will be ignored.")}},show:{get:function(){return this._show},set:function(e){this._show=e}},featureIdLabel:{get:function(){return this._featureIdLabel},set:function(e){typeof e=="number"&&(e=`featureId_${e}`),e!==this._featureIdLabel&&(this._featureTableIdDirty=!0),this._featureIdLabel=e}},instanceFeatureIdLabel:{get:function(){return this._instanceFeatureIdLabel},set:function(e){typeof e=="number"&&(e=`instanceFeatureId_${e}`),e!==this._instanceFeatureIdLabel&&(this._featureTableIdDirty=!0),this._instanceFeatureIdLabel=e}},clippingPlanes:{get:function(){return this._clippingPlanes},set:function(e){e!==this._clippingPlanes&&(So.setOwner(e,this,"_clippingPlanes"),this.resetDrawCommands())}},clippingGeometries:{get:function(){return this._clippingGeometries},set:function(e){this._clippingGeometries!==e&&(this._clippingGeometries=e,this.resetDrawCommands())}},clippingPolygons:{get:function(){return this._clippingPolygons},set:function(e){e!==this._clippingPolygons&&(xf.setOwner(e,this,"_clippingPolygons"),this.resetDrawCommands())}},enableVerticalExaggeration:{get:function(){return this._enableVerticalExaggeration},set:function(e){e!==this._enableVerticalExaggeration&&this.resetDrawCommands(),this._enableVerticalExaggeration=e}},hasVerticalExaggeration:{get:function(){return this._hasVerticalExaggeration}},lightColor:{get:function(){return this._lightColor},set:function(e){u(e)!==u(this._lightColor)&&this.resetDrawCommands(),this._lightColor=h.clone(e,this._lightColor)}},imageBasedLighting:{get:function(){return this._imageBasedLighting},set:function(e){e!==this._imageBasedLighting&&(this._shouldDestroyImageBasedLighting&&!this._imageBasedLighting.isDestroyed()&&this._imageBasedLighting.destroy(),this._imageBasedLighting=e,this._shouldDestroyImageBasedLighting=!1,this.resetDrawCommands())}},backFaceCulling:{get:function(){return this._backFaceCulling},set:function(e){e!==this._backFaceCulling&&(this._backFaceCullingDirty=!0),this._backFaceCulling=e}},scale:{get:function(){return this._scale},set:function(e){e!==this._scale&&(this._updateModelMatrix=!0),this._scale=e}},computedScale:{get:function(){return this._computedScale}},renderMode:{get:function(){return this._renderMode},set:function(e){this._renderMode=e}},minimumPixelSize:{get:function(){return this._minimumPixelSize},set:function(e){e!==this._minimumPixelSize&&(this._updateModelMatrix=!0),this._minimumPixelSize=e}},maximumScale:{get:function(){return this._maximumScale},set:function(e){e!==this._maximumScale&&(this._updateModelMatrix=!0),this._maximumScale=e}},shadows:{get:function(){return this._shadows},set:function(e){e!==this._shadows&&(this._shadowsDirty=!0),this._shadows=e}},credit:{get:function(){return this._credit}},showCreditsOnScreen:{get:function(){return this._showCreditsOnScreen},set:function(e){this._showCreditsOnScreen!==e&&(this._showCreditsOnScreenDirty=!0),this._showCreditsOnScreen=e}},splitDirection:{get:function(){return this._splitDirection},set:function(e){this._splitDirection!==e&&this.resetDrawCommands(),this._splitDirection=e}},rollerShutterRegion:{get:function(){return this._rollerShutterRegion},set:function(e){this._rollerShutterRegion=e}},rollerShutterSpyglassRegion:{get:function(){return this._rollerShutterSpyglassRegion},set:function(e){this._rollerShutterSpyglassRegion=e}},rollerShutterPolygonRegion:{get:function(){return this._rollerShutterPolygonRegion},set:function(e){this._rollerShutterPolygonRegion=e}},swipeInverse:{get:function(){return this._swipeInverse},set:function(e){this._swipeInverse=e}},swiper:{get:function(){return this._swiper},set:function(e){this._swiper=e}},classificationType:{get:function(){return this._classificationType}},pickIds:{get:function(){return this._pickIds}},styleCommandsNeeded:{get:function(){return this._styleCommandsNeeded}}});ki.prototype.getNode=function(e){return this._nodesByName[e]};ki.prototype.setArticulationStage=function(e,t){this._sceneGraph.setArticulationStage(e,t)};ki.prototype.applyArticulations=function(){this._sceneGraph.applyArticulations()};ki.prototype.getExtension=function(e){return this._loader.components.extensions[e]};ki.prototype.makeStyleDirty=function(){this._styleDirty=!0};ki.prototype.resetDrawCommands=function(){this._drawCommandsBuilt=!1};var aQe=new M,cQe=new $,lQe=new M;ki.prototype.update=function(e){let t=!1;try{t=uQe(this,e)}catch(n){if(!this._loader.incrementallyLoadTextures&&n.name==="TextureError")xK(this,n);else{let i=hn.getError("model",this._resource,n);xK(this,i)}}if(fQe(this,e),dQe(this,e),!this._resourcesLoaded&&t){this._resourcesLoaded=!0;let n=this._loader.components;if(!u(n)){if(this._loader.isUnloaded())return;let o=hn.getError("model",this._resource,new ae("Failed to load model."));xK(o),this._rejectLoad=this._rejectLoad&&this._rejectLoad(o)}let i=n.structuralMetadata;u(i)&&i.propertyTableCount>0&&oQe(this,i);let r=new wV({model:this,modelComponents:n});this._sceneGraph=r,this._gltfCredits=r.components.asset.credits}if(!(!this._resourcesLoaded||e.mode===oe.MORPHING)){if(hQe(this),mQe(this),pQe(this,e),_Qe(this),gQe(this,e),yQe(this,e),xQe(this,e),bQe(this,e),TQe(this,e),CQe(this,e),AQe(this,e),vQe(this,e),wQe(this,e),DQe(this,e),IQe(this,e),PQe(this,e),RQe(this,e),OQe(this,e),this._defaultTexture=e.context.defaultTexture,MQe(this,e),LQe(this,e),NQe(this),FQe(this,e),UQe(this,e),SQe(this,e),!this._ready){e.afterRender.push(()=>{this._ready=!0,this._readyEvent.raiseEvent(this)});return}this._loader.incrementallyLoadTextures&&!this._texturesLoaded&&this._loader.texturesLoaded&&(this.resetDrawCommands(),this._texturesLoaded=!0,this._texturesReadyEvent.raiseEvent(this)),kQe(this),zQe(this,e),HQe(this),EQe(this,e),GQe(this,e)}};function uQe(e,t){return!e._resourcesLoaded||e._loader.incrementallyLoadTextures&&!e._texturesLoaded?(t.afterRender.push(()=>!0),e._loader.process(t)):!0}function fQe(e,t){u(e._customShader)&&e._customShader.update(t)}function dQe(e,t){e._imageBasedLighting.update(t),e._imageBasedLighting.shouldRegenerateShaders&&e.resetDrawCommands()}function hQe(e){if(!e._featureTableIdDirty)return;e._featureTableIdDirty=!1;let t=e._sceneGraph.components,n=t.structuralMetadata;u(n)&&n.propertyTableCount>0&&(e.featureTableId=sQe(t,e),e._styleDirty=!0,e.resetDrawCommands())}function mQe(e){e._styleDirty&&(e.applyStyle(e._style),e._styleDirty=!1)}function pQe(e,t){let n=e._featureTables,i=n.length,r=!1;for(let o=0;o<i;o++)e._content&&e._content.tileset&&e.isFlatten&&n[o].applyFlatten(e._content.tileset._flattenOIds,e._content.tileset.version,t),n[o].update(t),n[o].styleCommandsNeededDirty&&(r=!0);r&&tpe(e)}function tpe(e){let t=e.featureTables[e.featureTableId];e._styleCommandsNeeded=Rp.getStyleCommandsNeeded(t.featuresLength,t.batchTexture.translucentFeaturesLength)}function _Qe(e){let t=e.pointCloudShading;t.attenuation!==e._attenuation&&(e.resetDrawCommands(),e._attenuation=t.attenuation),t.backFaceCulling!==e._pointCloudBackFaceCulling&&(e.resetDrawCommands(),e._pointCloudBackFaceCulling=t.backFaceCulling)}function gQe(e,t){e._silhouetteDirty&&(ipe(t)&&e.resetDrawCommands(),e._silhouetteDirty=!1)}function yQe(e,t){let n=e.hasSkipLevelOfDetail(t);n!==e._skipLevelOfDetail&&(e.resetDrawCommands(),e._skipLevelOfDetail=n)}function xQe(e,t){let n=0;e.isClippingEnabled()&&(e._clippingPlanes.owner===e&&e._clippingPlanes.update(t),n=e._clippingPlanes.clippingPlanesState),n!==e._clippingPlanesState&&(e.resetDrawCommands(),e._clippingPlanesState=n,e._clipFillUtil=void 0)}function bQe(e,t){let n=0;e.isClippingPolygonsEnabled()&&(e._clippingPolygons.owner===e&&(e._clippingPolygons.update(t),e._clippingPolygons.queueCommands(t)),n=e._clippingPolygons.clippingPolygonsState),n!==e._clippingPolygonsState&&(e.resetDrawCommands(),e._clippingPolygonsState=n)}function TQe(e,t){t.mode!==e._sceneMode&&(e._projectTo2D?e.resetDrawCommands():e._updateModelMatrix=!0,e._sceneMode=t.mode)}function CQe(e,t){let n=t.fog.enabled&&t.fog.renderable;n!==e._fogRenderable&&(e.resetDrawCommands(),e._fogRenderable=n)}function AQe(e,t){if(e.enableVerticalExaggeration){let n=t.verticalExaggeration!==1;e.hasVerticalExaggeration!==n&&(e.resetDrawCommands(),e._hasVerticalExaggeration=n)}else e.hasVerticalExaggeration&&(e.resetDrawCommands(),e._hasVerticalExaggeration=!1)}function EQe(e,t){e._clippingFillImage=e?.content?.tileset?.clippingFillImage,e._fillClip&&u(e._clipFillUtil)&&(e.isClippingEnabled()||e.isGeometryClipEnabled())&&e._clipFillUtil.update(t)}function SQe(e,t){let n=e?.content?.tileset?._sectionRenders;if(u(n))for(let i=0;i<n.length;i++)n[i].updateModel(t,e)}function vQe(e,t){let n=e?.content?.tileset;u(n)&&u(n._explosionTextureData)&&u(n._explosionIdTexture)&&u(n._explosionDirectionTexture)&&e.resetDrawCommands()}function wQe(e,t){let n=t.lightManager,i=!1;e._lightState.pointLightNum!==n.pointLights.length&&(i=!0,e._lightState.pointLightNum=n.pointLights.length),e._lightState.directionalLigthNum!==n.directionalLights.length&&(i=!0,e._lightState.directionalLigthNum=n.directionalLights.length),e._lightState.spotLightNum!==n.spotLights.length&&(i=!0,e._lightState.spotLightNum=n.spotLights.length),i&&e.resetDrawCommands()}function DQe(e,t){let n=e?.content?.tileset;u(n)&&n._enableStretch&&n._stretchFactor!==1&&e.resetDrawCommands()}function PQe(e,t){let n=e?.content?.tileset;u(n)&&n._deleteVerticalPlane&&(e._deleteVerticalPlane=n._deleteVerticalPlane,e.resetDrawCommands(),n._deleteVerticalPlaneChanged=!1)}function IQe(e,t){let n=e?.content?.tileset;u(n)&&n.swipeEnabled&&e.resetDrawCommands()}function RQe(e,t){let n=e?.content?.tileset;u(n)&&n.isFlatten&&(e._flattenWithId=!!(n._flattenOIds&&n._flattenOIds.length>0),e._modelUpAxis=n._modelUpAxis,e.resetDrawCommands())}function OQe(e,t){let n=e?.content?.tileset;if(n?.version==="2.0"){let r=e?.content?.tile;u(r.nodeColor)&&n._changeNodeColor?z.equals(e._color,r.nodeColor)||(e._color=r.nodeColor,e.resetDrawCommands()):u(e._color)&&!n._changeNodeColor&&!u(e._style)&&(e._color=void 0,e.resetDrawCommands())}}function MQe(e,t){e._drawCommandsBuilt||(e.destroyPipelineResources(),e._sceneGraph.buildDrawCommands(t),e._drawCommandsBuilt=!0)}function LQe(e,t){M.equals(e.modelMatrix,e._modelMatrix)||(e._updateModelMatrix=!0,e._modelMatrix=M.clone(e.modelMatrix,e._modelMatrix))}var Wy=new h,bK=new ue;function NQe(e){if(!e._updateModelMatrix&&!e._heightDirty&&e._minimumPixelSize===0)return;u(e._removeUpdateHeightCallback)&&(e._removeUpdateHeightCallback(),e._removeUpdateHeightCallback=void 0);let t=e._scene;if(!u(t)||e.heightReference===rt.NONE){e._clampedModelMatrix=void 0;return}let n=y(t.ellipsoid,ne.default),i=e.modelMatrix;Wy.x=i[12],Wy.y=i[13],Wy.z=i[14];let r=n.cartesianToCartographic(Wy);u(e._clampedModelMatrix)||(e._clampedModelMatrix=M.clone(i,new M)),e._removeUpdateHeightCallback=t.updateHeight(r,epe(e,n,r),e.heightReference);let o=t.getHeight(r,e.heightReference);if(u(o)){let s=epe(e,n,r);ue.clone(r,bK),bK.height=o,s(bK)}e._heightDirty=!1,e._updateModelMatrix=!0}function FQe(e,t){if(!e._updateModelMatrix&&e._minimumPixelSize===0)return;let n=u(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix;npe(e,n),BQe(e,n,t)}function npe(e,t){e._clampedScale=u(e._maximumScale)?Math.min(e._scale,e._maximumScale):e._scale,e._boundingSphere.center=h.multiplyByScalar(e._sceneGraph.boundingSphere.center,e._clampedScale,e._boundingSphere.center),e._boundingSphere.radius=e._initialRadius*e._clampedScale,e._boundingSphere=ce.transform(e._boundingSphere,t,e._boundingSphere)}function BQe(e,t,n){let i=e.scale;if(e.minimumPixelSize!==0&&!e._projectTo2D){let r=n.context,o=Math.max(r.drawingBufferWidth,r.drawingBufferHeight);M.getTranslation(t,Wy),e._sceneMode!==oe.SCENE3D&&xr.computeActualEllipsoidPosition(n,Wy,Wy);let s=e._boundingSphere.radius,a=WQe(Wy,s,n),c=1/a;Math.min(c*(2*s),o)<e.minimumPixelSize&&(i=e.minimumPixelSize*a/(2*e._initialRadius))}e._computedScale=u(e.maximumScale)?Math.min(e.maximumScale,i):i}function kQe(e){if(!e._idDirty)return;e._idDirty=!1;let t=e._id,n=e._pickIds,i=n.length;for(let r=0;r<i;++r)n[r].object.id=t}var VQe=new $(1,0,0,0,0,1,0,-1,0);function UQe(e,t){let n=u(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix,i=y(e.referenceMatrix,n),r=t.context,o=e._imageBasedLighting;if(o.useSphericalHarmonicCoefficients||o.useSpecularEnvironmentMaps){let s=cQe,a=aQe;a=M.multiply(r.uniformState.view3D,i,a),s=M.getRotation(a,s),s=$.transpose(s,s),e._iblReferenceFrameMatrix=$.multiply(VQe,s,e._iblReferenceFrameMatrix)}if(e.isClippingEnabled()){let s=lQe;s=M.multiply(r.uniformState.view3D,i,s),s=M.multiply(s,e._clippingPlanes.modelMatrix,s),e._clippingPlanesMatrix=M.inverseTranspose(s,e._clippingPlanesMatrix)}}function zQe(e,t){let n=e._sceneGraph;if(e._updateModelMatrix||e._minimumPixelSize!==0){let r=u(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix;n.updateModelMatrix(r,t),e._updateModelMatrix=!1}e._backFaceCullingDirty&&(n.updateBackFaceCulling(e._backFaceCulling),e._backFaceCullingDirty=!1),e._shadowsDirty&&(n.updateShadows(e._shadows),e._shadowsDirty=!1),e._debugShowBoundingVolumeDirty&&(n.updateShowBoundingVolume(e._debugShowBoundingVolume),e._debugShowBoundingVolumeDirty=!1);let i=!1;u(e.classificationType)||(i=e._userAnimationDirty||e._activeAnimations.update(t)),n.update(t,i),e._userAnimationDirty=!1}function HQe(e){if(!e._showCreditsOnScreenDirty)return;e._showCreditsOnScreenDirty=!1,e._credits.length=0;let t=e._showCreditsOnScreen;if(u(e._credit)){let s=Wt.clone(e._credit);s.showOnScreen=s.showOnScreen||t,e._credits.push(s)}let n=e._resourceCredits,i=n.length;for(let s=0;s<i;s++){let a=Wt.clone(n[s]);a.showOnScreen=a.showOnScreen||t,e._credits.push(a)}let r=e._gltfCredits,o=r.length;for(let s=0;s<o;s++){let a=Wt.clone(r[s]);a.showOnScreen=a.showOnScreen||t,e._credits.push(a)}}function GQe(e,t){let n=qQe(e,t),i=e.isInvisible(),r=e.hasSilhouette(t),o=e._show&&e._computedScale!==0&&n&&(!i||r),s=t.passes,a=s.render||s.pick&&e.allowPicking,c=e.content?.tileset._sectionOnly;o&&!e._ignoreCommands&&a&&!c&&(YQe(e,t),e._sceneGraph.pushDrawCommands(t))}var TK=new ce;function WQe(e,t,n){return TK.center=e,TK.radius=t,n.camera.getPixelSize(TK,n.context.drawingBufferWidth,n.context.drawingBufferHeight)}var jV=new h;function epe(e,t,n){return function(i){oE(e.heightReference)&&(i.height+=n.height),t.cartographicToCartesian(i,jV);let r=e._clampedModelMatrix;M.clone(e.modelMatrix,r),r[12]=jV.x,r[13]=jV.y,r[14]=jV.z,e._heightDirty=!0}}var jQe=new h;function qQe(e,t){let n=e.distanceDisplayCondition;if(!u(n))return!0;let i=n.near*n.near,r=n.far*n.far,o;if(t.mode===oe.SCENE2D){let a=(t.camera.frustum.right-t.camera.frustum.left)*.5;o=a*a}else{let s=M.getTranslation(e.modelMatrix,jQe);xr.computeActualEllipsoidPosition(t,s,s),o=h.distanceSquared(s,t.camera.positionWC)}return o>=i&&o<=r}function YQe(e,t){let n=t.creditDisplay,i=e._credits,r=i.length;for(let o=0;o<r;o++)n.addCreditToNextFrame(i[o])}ki.prototype.isTranslucent=function(){let e=this.color;return u(e)&&e.alpha>0&&e.alpha<1};ki.prototype.isInvisible=function(){let e=this.color;return u(e)&&e.alpha===0};function ipe(e){return e.context.stencilBuffer}ki.prototype.hasSilhouette=function(e){return ipe(e)&&this._silhouetteSize>0&&this._silhouetteColor.alpha>0&&!u(this._classificationType)};ki.prototype.hasSkipLevelOfDetail=function(e){if(!Co.is3DTiles(this.type))return!1;let t=e.context.stencilBuffer,n=this._content.tileset;return t&&n.isSkippingLevelOfDetail};ki.prototype.isClippingEnabled=function(){let e=this._clippingPlanes;return u(e)&&e.enabled&&e.length!==0};ki.prototype.isGeometryClipEnabled=function(){let e=this._clippingGeometries;return u(e)};ki.prototype.pick=function(e,t,n,i,r){return IP(this,e,t,n,i,r)};ki.prototype.isClippingPolygonsEnabled=function(){let e=this._clippingPolygons;return u(e)&&e.enabled&&e.length!==0};ki.prototype.isDestroyed=function(){return!1};ki.prototype.destroy=function(){let e=this._loader;u(e)&&e.destroy();let t=this._featureTables;if(u(t)){let o=t.length;for(let s=0;s<o;s++)t[s].destroy()}this.destroyPipelineResources(),this.destroyModelResources(),u(this._removeUpdateHeightCallback)&&(this._removeUpdateHeightCallback(),this._removeUpdateHeightCallback=void 0),u(this._terrainProviderChangedCallback)&&(this._terrainProviderChangedCallback(),this._terrainProviderChangedCallback=void 0);let n=this._clippingPlanes;u(n)&&!n.isDestroyed()&&n.owner===this&&n.destroy(),this._clippingPlanes=void 0;let i=this._clippingPolygons;u(i)&&!i.isDestroyed()&&i.owner===this&&i.destroy(),this._clippingPolygons=void 0,this._shouldDestroyImageBasedLighting&&!this._imageBasedLighting.isDestroyed()&&this._imageBasedLighting.destroy(),this._imageBasedLighting=void 0;let r=this._nodeCommands;for(let o=0;o<r.length;++o){let s=r[o],a=s.stencilCommand;u(a)&&u(a.shaderProgram)&&!a.shaderProgram.isDestroyed()&&(a.shaderProgram=a.shaderProgram.destroy()),a=s.sectionCommand,u(a)&&u(a.shaderProgram)&&!a.shaderProgram.isDestroyed()&&(a.shaderProgram=a.shaderProgram.destroy())}he(this)};ki.prototype.destroyPipelineResources=function(){let e=this._pipelineResources;for(let t=0;t<e.length;t++)e[t].destroy();this._pipelineResources.length=0,this._pickIds.length=0};ki.prototype.destroyModelResources=function(){let e=this._modelResources;for(let t=0;t<e.length;t++)e[t].destroy();this._modelResources.length=0};ki.fromGltfAsync=async function(e){e=y(e,y.EMPTY_OBJECT);let t=y(e.url,e.gltf),n={releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:u(e.classificationType),generateUniqueId:e.generateUniqueId},i=y(e.basePath,""),r=Pe.createIfNeeded(i);u(t.asset)?(n.gltfJson=t,n.baseResource=r,n.gltfResource=r):t instanceof Uint8Array?(n.typedArray=t,n.baseResource=r,n.gltfResource=r):n.gltfResource=Pe.createIfNeeded(t);let o=new il(n),a=u(e.content)?Co.TILE_GLTF:Co.GLTF,c=n.gltfResource,l=Mp(o,a,e);l.resource=c;try{await o.load()}catch(_){throw o.destroy(),hn.getError("model",c,_)}let f=e.gltfCallback;u(f)&&f(o.gltfJson);let d=new ki(l),p=d._resource.credits;if(u(p)){let _=p.length;for(let m=0;m<_;m++)d._resourceCredits.push(Wt.clone(p[m]))}return d};ki.fromM3DData=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:u(e.classificationType),tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,tile:e.tile,hasSectionGeometry:e.hasSectionGeometry},n=new WV(t);try{await n.load();let i=Mp(n,Co.TILE_B3DM,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromM3DGltf=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:u(e.classificationType),attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new NV(t);try{await n.load();let i=Mp(n,Co.TILE_B3DM,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromM3DB3dm=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:u(e.classificationType),attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new FV(t);try{await n.load();let i=Mp(n,Co.TILE_B3DM,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromM3DI3dm=async function(e){let t={i3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new VV(t);try{await n.load();let i=Mp(n,Co.TILE_I3DM,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromM3DPnts=async function(e){let t={arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,loadAttributesFor2D:e.projectTo2D,attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,tileset:e.tileset,tile:e.tile,resource:e.resource},n=new HV(t);try{await n.load();let i=Mp(n,Co.TILE_PNTS,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromB3dm=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:u(e.classificationType),generateUniqueId:e.generateUniqueId},n=new _4(t);try{await n.load();let i=Mp(n,Co.TILE_B3DM,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromPnts=async function(e){let t={arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,loadAttributesFor2D:e.projectTo2D,generateUniqueId:e.generateUniqueId},n=new IV(t);try{await n.load();let i=Mp(n,Co.TILE_PNTS,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromI3dm=async function(e){let t={i3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,generateUniqueId:e.generateUniqueId},n=new C4(t);try{await n.load();let i=Mp(n,Co.TILE_I3DM,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromGeoJson=async function(e){let t={geoJson:e.geoJson},n=new y4(t),i=Mp(n,Co.TILE_GEOJSON,e);return new ki(i)};var XQe=new z;ki.prototype.applyColorAndShow=function(e){let t=z.clone(this._color,XQe),n=u(e)&&u(e.color),i=u(e)&&u(e.show);this._color=n?e.color.evaluateColor(void 0,this._color):z.clone(z.WHITE,this._color),this._show=i?e.show.evaluate(void 0):!0,CK(t,this._color)&&this.resetDrawCommands()};ki.prototype.applyStyle=function(e){let t=this.type===Co.TILE_PNTS,n=u(this.featureTableId)&&this.featureTables[this.featureTableId].featuresLength>0,i=u(this.structuralMetadata)?this.structuralMetadata.propertyAttributes:void 0,r=u(i)&&u(i[0]);if(t&&(!n||r)){this.resetDrawCommands();return}n?(this.featureTables[this.featureTableId].applyStyle(e),tpe(this,e)):(this.applyColorAndShow(e),this._styleCommandsNeeded=void 0)};function Mp(e,t,n){return{loader:e,type:t,resource:n.resource,show:n.show,modelMatrix:n.modelMatrix,scale:n.scale,enableVerticalExaggeration:n.enableVerticalExaggeration,minimumPixelSize:n.minimumPixelSize,maximumScale:n.maximumScale,id:n.id,allowPicking:n.allowPicking,clampAnimations:n.clampAnimations,shadows:n.shadows,debugShowBoundingVolume:n.debugShowBoundingVolume,enableDebugWireframe:n.enableDebugWireframe,debugWireframe:n.debugWireframe,cull:n.cull,opaquePass:n.opaquePass,customShader:n.customShader,content:n.content,heightReference:n.heightReference,scene:n.scene,distanceDisplayCondition:n.distanceDisplayCondition,color:n.color,colorBlendAmount:n.colorBlendAmount,colorBlendMode:n.colorBlendMode,silhouetteColor:n.silhouetteColor,silhouetteSize:n.silhouetteSize,enableShowOutline:n.enableShowOutline,showOutline:n.showOutline,outlineColor:n.outlineColor,clippingPlanes:n.clippingPlanes,clippingPolygons:n.clippingPolygons,lightColor:n.lightColor,imageBasedLighting:n.imageBasedLighting,backFaceCulling:n.backFaceCulling,credit:n.credit,showCreditsOnScreen:n.showCreditsOnScreen,splitDirection:n.splitDirection,projectTo2D:n.projectTo2D,enablePick:n.enablePick,featureIdLabel:n.featureIdLabel,instanceFeatureIdLabel:n.instanceFeatureIdLabel,pointCloudShading:n.pointCloudShading,classificationType:n.classificationType,pickObject:n.pickObject,fillClip:n.fillClip,clippingFillImage:n.clippingFillImage}}var rc=ki;function ro(e,t,n){this._tileset=e,this._tile=t,this._resource=n,this._model=void 0,this._metadata=void 0,this._group=void 0,this._ready=!1}Object.defineProperties(ro.prototype,{featuresLength:{get:function(){let e=this._model,t=e.featureTables,n=e.featureTableId;return u(t)&&u(t[n])?t[n].featuresLength:0}},pointsLength:{get:function(){return this._model.statistics.pointsLength}},trianglesLength:{get:function(){return this._model.statistics.trianglesLength}},geometryByteLength:{get:function(){return this._model.statistics.geometryByteLength}},texturesByteLength:{get:function(){return this._model.statistics.texturesByteLength}},batchTableByteLength:{get:function(){let e=this._model.statistics;return e.propertyTablesByteLength+e.batchTexturesByteLength}},innerContents:{get:function(){}},ready:{get:function(){return this._ready}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){return this._resource.getUrlComponent(!0)}},batchTable:{get:function(){let e=this._model,t=e.featureTables,n=e.featureTableId;if(u(t)&&u(t[n]))return t[n]}},metadata:{get:function(){return this._metadata},set:function(e){this._metadata=e}},group:{get:function(){return this._group},set:function(e){this._group=e}}});ro.prototype.getExtension=function(e){return this._model.getExtension(e)};ro.prototype.getFeature=function(e){let t=this._model,n=t.featureTableId;return t.featureTables[n].getFeature(e)};ro.prototype.hasProperty=function(e,t){let n=this._model,i=n.featureTableId;return u(i)?n.featureTables[i].hasProperty(e,t):!1};ro.prototype.applyDebugSettings=function(e,t){t=e?t:z.WHITE,this.featuresLength===0?this._model.color=t:u(this.batchTable)&&this.batchTable.setAllColor(t)};ro.prototype.applyStyle=function(e){this._model.style=e};ro.prototype.update=function(e,t){let n=this._model,i=this._tile;if(n.colorBlendAmount=e.colorBlendAmount,n.colorBlendMode=e.colorBlendMode,n.modelMatrix=i.computedTransform,n.customShader=e.customShader,n.featureIdLabel=e.featureIdLabel,n.instanceFeatureIdLabel=e.instanceFeatureIdLabel,n.lightColor=e.lightColor,n.imageBasedLighting=e.imageBasedLighting,n.backFaceCulling=e.backFaceCulling,n.shadows=e.shadows,n.showCreditsOnScreen=e.showCreditsOnScreen,n.splitDirection=e.splitDirection,n.debugWireframe=e.debugWireframe,n.rollerShutterRegion=new ie(0,0,0,0),n.rollerShutterSpyglassRegion=void 0,n.rollerShutterPolygonRegion=void 0,(n.swiper.type!==t.swiper.type||n.swiper.swipeEnabled!==e.swipeEnabled)&&(n._shouldRegenerateShaders=!0),n.swiper=Ve(t.swiper),n.swiper.swipeEnabled=e.swipeEnabled,e.swipeEnabled){let s=t.swiper.type;s===jn.HORIZONTAL||s===jn.VERTICAL||s===jn.RECTANGLE?n.rollerShutterRegion=t.context.uniformState._swipeRegion:s===jn.SPYGLASS?n.rollerShutterSpyglassRegion=t.context.uniformState._swipeRegion:s===jn.POLYGON&&(n.rollerShutterPolygonRegion=t.context.uniformState._swipeRegion),n.swipeInverse=e.swipeInverse===0?t.swiper.inverse:e.swipeInverse}n.showOutline=e.showOutline,n.outlineColor=e.outlineColor,n.pointCloudShading=e.pointCloudShading,n.textureCoordScale=e.textureCoordScale,n.clippingGeometries=e._clippingGeometries;let r=e.clippingPlanes;n.referenceMatrix=e.clippingPlanesOriginMatrix,u(r)&&i.clippingPlanesDirty&&(n._clippingPlanes=r.enabled&&i._isClipped?r:void 0,r.enabled&&i._isClipped&&(n._clippingPlanesState=0)),u(r)&&u(n._clippingPlanes)&&n._clippingPlanes!==r&&(n._clippingPlanes=r,n._clippingPlanesState=0);let o=e.clippingPolygons;if(u(o)&&i.clippingPolygonsDirty&&(n._clippingPolygons=o.enabled&&i._isClippedByPolygon?o:void 0),u(o)&&u(n._clippingPolygons)&&n._clippingPolygons!==o&&(n._clippingPolygons=o,n._clippingPolygonsState=0),n.enableExplosion=e.enableExplosion,n.enableCuttingFilter=e.enableCuttingFilter,n.enableExplosion||n.enableCuttingFilter){n.explosionIdTexture=e._explosionIdTexture,n.explosionDirectionTexture=e._explosionDirectionTexture,u(e._explosionTextureData)&&Array.isArray(e._explosionTextureData)?n.explosionTextureDataLength=e._explosionTextureData.length:n.explosionTextureDataLength=0;let s=0;if(e._version==="2.0"){let a=n.content.batchTable?._propertyTable._jsonMetadataTable._batchTableJson.OID;u(a)&&(s=a.length)}else if(e._version==="2.1"||e._version==="2.2"){let a=n.content.batchTable?._propertyTable._jsonMetadataTable._batchTableJson.tid;if(u(a)&&(s=a.tids.length,!u(n.explosionIdTableTexture))){let c=a.tids.map(f=>[f,0,0]),l=Float32Array.from(c.flat());n.explosionIdTableTexture=new nt({context:t.context,source:{arrayBufferView:l,width:l.length/3,height:1},pixelFormat:He.RGB,pixelDatatype:ze.FLOAT})}}n.explosionIdCount=s}n.deleteVerticalPlane=e._deleteVerticalPlane,n.isFlatten=e._isFlatten,n.flattenHeight=e._flattenHeight,n.positionArray=e._positionArray,n.arrayLength=e._positionArray?.length,u(e._brightness)&&(n._brightness=e._brightness),u(e._exposure)&&(n._exposure=e._exposure),u(e._contrast)&&(n._contrast=e._contrast),u(e._hue)&&(n._hue=e._hue),u(e._saturation)&&(n._saturation=e._saturation),u(e._gamma)&&(n._gamma=e._gamma),n.update(t),!this._ready&&n.ready&&(n.activeAnimations.addAll({loop:yf.REPEAT}),this._ready=!0)};ro.prototype.isDestroyed=function(){return!1};ro.prototype.destroy=function(){return this._model=this._model&&this._model.destroy(),he(this)};ro.fromGltf=async function(e,t,n,i){let r=new ro(e,t,n),s=Lp(e,t,r,{gltf:i,basePath:n}),a=e.vectorClassificationOnly?void 0:e.classificationType;s.classificationType=a,s.generateUniqueId=e._generateUniqueId;let c=await rc.fromGltfAsync(s);return r._model=c,r};ro.fromM3DData=async function(e,t,n,i,r){let o=new ro(e,t,n),a=Lp(e,t,o,{arrayBuffer:i,byteOffset:r,resource:n}),c=e.vectorClassificationOnly?void 0:e.classificationType;a.classificationType=c,a.tilesetVersion=e._version,a.tile=t,a.fillClip=e._fillClip,a.hasSectionGeometry=e._hasSectionGeometry,a.clippingFillImage=e._clippingFillImage,a.clippingGeometries=e._clippingGeometries;let l=await rc.fromM3DData(a);return o._model=l,o};ro.fromM3DGltf=async function(e,t,n,i,r,o){let s=new ro(e,t,n),c=Lp(e,t,s,{arrayBuffer:i,byteOffset:r,resource:n}),l=e.vectorClassificationOnly?void 0:e.classificationType;c.classificationType=l,c.attBatchTable=o,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let f=await rc.fromM3DGltf(c);return s._model=f,s};ro.fromM3DB3dm=async function(e,t,n,i,r,o){let s=new ro(e,t,n),c=Lp(e,t,s,{arrayBuffer:i,byteOffset:r,resource:n}),l=e.vectorClassificationOnly?void 0:e.classificationType;c.classificationType=l,c.attBatchTable=o,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let f=await rc.fromM3DB3dm(c);return s._model=f,s};ro.fromM3DI3dm=async function(e,t,n,i,r,o){let s=new ro(e,t,n),c=Lp(e,t,s,{arrayBuffer:i,byteOffset:r,resource:n});c.attBatchTable=o,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let l=await rc.fromM3DI3dm(c);return s._model=l,s};ro.fromM3DPnts=async function(e,t,n,i,r,o){let s=new ro(e,t,n),c=Lp(e,t,s,{arrayBuffer:i,byteOffset:r,resource:n});c.attBatchTable=o,c.tilesetVersion=e._version,c.tileset=e,c.tile=t,c.resource=s._resource;let l=await rc.fromM3DPnts(c);return s._model=l,s};ro.fromB3dm=async function(e,t,n,i,r){let o=new ro(e,t,n),a=Lp(e,t,o,{arrayBuffer:i,byteOffset:r,resource:n}),c=e.vectorClassificationOnly?void 0:e.classificationType;a.classificationType=c,a.generateUniqueId=e._generateUniqueId;let l=await rc.fromB3dm(a);return o._model=l,o};ro.fromI3dm=async function(e,t,n,i,r){let o=new ro(e,t,n),a=Lp(e,t,o,{arrayBuffer:i,byteOffset:r,resource:n});a.generateUniqueId=e._generateUniqueId;let c=await rc.fromI3dm(a);return o._model=c,o};ro.fromPnts=async function(e,t,n,i,r){let o=new ro(e,t,n),a=Lp(e,t,o,{arrayBuffer:i,byteOffset:r,resource:n});a.generateUniqueId=e._generateUniqueId;let c=await rc.fromPnts(a);return o._model=c,o};ro.fromGeoJson=async function(e,t,n,i){let r=new ro(e,t,n),s=Lp(e,t,r,{geoJson:i,resource:n}),a=await rc.fromGeoJson(s);return r._model=a,r};ro.prototype.pick=function(e,t,n){if(!u(this._model)||!this._ready)return;let i=t.verticalExaggeration,r=t.verticalExaggerationRelativeHeight;return this._model.pick(e,t,i,r,ne.WGS84,n)};function Lp(e,t,n,i){let r={cull:!1,releaseGltfJson:!0,opaquePass:Ee.CESIUM_3D_TILE,modelMatrix:t.computedTransform,upAxis:e._modelUpAxis,forwardAxis:e._modelForwardAxis,incrementallyLoadTextures:!1,customShader:e.customShader,content:n,colorBlendMode:e.colorBlendMode,colorBlendAmount:e.colorBlendAmount,lightColor:e.lightColor,imageBasedLighting:e.imageBasedLighting,featureIdLabel:e.featureIdLabel,instanceFeatureIdLabel:e.instanceFeatureIdLabel,pointCloudShading:e.pointCloudShading,clippingPlanes:e.clippingPlanes,backFaceCulling:e.backFaceCulling,shadows:e.shadows,showCreditsOnScreen:e.showCreditsOnScreen,splitDirection:e.splitDirection,enableDebugWireframe:e._enableDebugWireframe,debugWireframe:e.debugWireframe,projectTo2D:e._projectTo2D,enablePick:e._enablePick,enableShowOutline:e._enableShowOutline,showOutline:e.showOutline,outlineColor:e.outlineColor};return xt(i,r)}var Xl=ro;var rpe={M3DData:function(e,t,n,i,r){return Xl.fromM3DData(e,t,n,i,r)},M3DGltf:function(e,t,n,i,r,o){return Xl.fromM3DGltf(e,t,n,i,r,o)},M3DCmpt:function(e,t,n,i,r,o){return xp.fromM3DTileType(e,t,n,i,r,rpe,o)},M3DB3dm:function(e,t,n,i,r,o){return Xl.fromM3DB3dm(e,t,n,i,r,o)},M3DI3dm:function(e,t,n,i,r,o){return Xl.fromM3DI3dm(e,t,n,i,r,o)},M3DPnts:function(e,t,n,i,r,o){return Xl.fromM3DPnts(e,t,n,i,r,o)}},jT=rpe;var ope={JSON:`{
|
|
9612
|
+
`}mi.prototype.destroy=function(){this._clipFillCommandMap.clear()};function cZe(e,t){return mi._clipFillDiffuseUrl!==e&&(mi._clipFillDiffuseUrl=e,mi._clipFillDiffuseImage=new Image,mi._clipFillDiffuseImage.crossOrigin="anonymous",mi._clipFillDiffuseImage.onload=function(n){mi._clipFillDiffuseTexture=new nt({context:t,width:mi._clipFillDiffuseImage.width,height:mi._clipFillDiffuseImage.height,pixelFormat:He.RGBA,pixelDatatype:ze.UNSIGNED_BYTE,source:mi._clipFillDiffuseImage})},mi._clipFillDiffuseImage.src=e,mi._clipFillDiffuseTexture=new nt({context:t,width:1,height:1,pixelFormat:He.RGBA,pixelDatatype:ze.UNSIGNED_BYTE,source:{arrayBufferView:new Uint8Array([200,200,200,255])}})),function(){return mi._clipFillDiffuseTexture}}var EV=mi;function lZe(e,t){let n={},i=e.primitive?.attributes,r;for(let s=0;s<i.length;s++)i[s].name==="TEXCOORD_0"&&(r={vertexCoordDisAC:1,texCoordDisAC:1});let o=t.content?.tileset._version;if(o==="2.0"){let s;for(let l=0;l<i.length;l++)i[l].name==="_OID"&&(s=i[l].typedArray);let a=new Uint32Array(s.length/4);a.fill(s[0]);let c={};for(let l=0;l<a.length;l++){let f=uZe(a[l]),d=new z(f[3]/255,f[2]/255,f[1]/255,f[0]/255);c[a[l]]={pickID:d,textureParam:r}}n=c}else if(o==="2.1"||o==="2.2"){let s;for(let c=0;c<i.length;c++)i[c].name==="_BATCHID"&&(s=i[c].typedArray);let a={};for(let c=0;c<s.length;c++)a[s[c]]={textureParam:r};n=a}return n}function uZe(e){let t=new ArrayBuffer(4);return new DataView(t).setUint32(0,e),new Uint8Array(t)}var SV=lZe;function Ef(e){e=y(e,y.EMPTY_OBJECT);let t=e.modelComponents;this._model=e.model,this._components=t,this._pipelineStages=[],this._updateStages=[],this._runtimeNodes=[],this._rootNodes=[],this._skinnedNodes=[],this._runtimeSkins=[],this.modelPipelineStages=[],this._boundingSphere=void 0,this._boundingSphere2D=void 0,this._computedModelMatrix=M.clone(M.IDENTITY),this._computedModelMatrix2D=M.clone(M.IDENTITY),this._axisCorrectionMatrix=hn.getAxisCorrectionMatrix(t.upAxis,t.forwardAxis,new M),this._runtimeArticulations={},fZe(this)}Object.defineProperties(Ef.prototype,{components:{get:function(){return this._components}},computedModelMatrix:{get:function(){return this._computedModelMatrix}},axisCorrectionMatrix:{get:function(){return this._axisCorrectionMatrix}},boundingSphere:{get:function(){return this._boundingSphere}}});function fZe(e){let t=e._components,n=t.scene,r=e._model.modelMatrix;Nme(e,r);let o=t.articulations,s=o.length,a=e._runtimeArticulations;for(let C=0;C<s;C++){let A=o[C],E=new U4({articulation:A,sceneGraph:e}),v=E.name;a[v]=E}let c=t.nodes,l=c.length;e._runtimeNodes=new Array(l);let d=n.nodes.length,p=M.IDENTITY;for(let C=0;C<d;C++){let A=n.nodes[C],E=Fme(e,A,p);e._rootNodes.push(E)}let _=t.skins,m=e._runtimeSkins,x=_.length;for(let C=0;C<x;C++){let A=_[C];m.push(new $k({skin:A,sceneGraph:e}))}let b=e._skinnedNodes,T=b.length;for(let C=0;C<T;C++){let A=b[C],E=e._runtimeNodes[A],D=c[A].skin.index;E._runtimeSkin=m[D],E.updateJointMatrices()}e.applyArticulations()}function Nme(e,t){let n=e._components,i=e._model;e._computedModelMatrix=M.multiplyTransformation(t,n.transform,e._computedModelMatrix),e._computedModelMatrix=M.multiplyTransformation(e._computedModelMatrix,e._axisCorrectionMatrix,e._computedModelMatrix),e._computedModelMatrix=M.multiplyByUniformScale(e._computedModelMatrix,i.computedScale,e._computedModelMatrix)}var dZe=new h;function hZe(e,t){let n=e._computedModelMatrix,i=M.getTranslation(n,dZe);if(!h.equals(i,h.ZERO))e._computedModelMatrix2D=St.basisTo2D(t.mapProjection,n,e._computedModelMatrix2D);else{let r=e.boundingSphere.center,o=St.ellipsoidTo2DModelMatrix(t.mapProjection,r,e._computedModelMatrix2D);e._computedModelMatrix2D=M.multiply(o,n,e._computedModelMatrix2D)}e._boundingSphere2D=ce.transform(e._boundingSphere,e._computedModelMatrix2D,e._boundingSphere2D)}function Fme(e,t,n){let i=[],r=hn.getNodeTransform(t),o=t.children.length;for(let f=0;f<o;f++){let d=t.children[f],p=M.multiplyTransformation(n,r,new M),_=Fme(e,d,p);i.push(_)}let s=new ik({node:t,transform:r,transformToRoot:n,children:i,sceneGraph:e}),a=t.primitives.length;for(let f=0;f<a;f++)s.runtimePrimitives.push(new Zk({primitive:t.primitives[f],node:t,model:e._model}));let c=t.index;e._runtimeNodes[c]=s,u(t.skin)&&e._skinnedNodes.push(c);let l=t.name;if(u(l)){let f=e._model,d=new K4(f,s);f._nodesByName[l]=d}return c}var mZe=new h,pZe=new h,_Ze=new h,gZe=new h;Ef.prototype.buildDrawCommands=function(e){let t=this._model,n=new tV(t);t.statistics.clear(),this.configurePipeline(e);let i=this.modelPipelineStages,r,o,s;for(r=0;r<i.length;r++)i[r].process(n,t,e);let a=h.fromElements(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE,mZe),c=h.fromElements(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE,pZe),l=[];for(r=0;r<this._runtimeNodes.length;r++){let f=this._runtimeNodes[r];if(!u(f))continue;f.configurePipeline();let d=f.pipelineStages,p=new lV(n,f);for(o=0;o<d.length;o++)d[o].process(p,f.node,e);let _=f.computedTransform;for(o=0;o<f.runtimePrimitives.length;o++){let m=f.runtimePrimitives[o];m.configurePipeline(e);let x=m.pipelineStages,b=new fV(p,m);for(s=0;s<x.length;s++)x[s].process(b,m.primitive,e);m.boundingSphere=ce.clone(b.boundingSphere,new ce);let T=M.multiplyByPoint(_,b.positionMin,_Ze),C=M.multiplyByPoint(_,b.positionMax,gZe);h.minimumByComponent(a,T,a),h.maximumByComponent(c,C,c);let A=gV.buildModelDrawCommand(b,e);m.drawCommand=A,u(t._clipFillUtil)&&t._clipFillUtil.destroy(),t._fillClip&&(u(t._clipFillUtil)||(t._clipFillUtil=new EV({model:t})),t._clipFillUtil.parsePrimitiveInfo(m,A,!1)),t._hasSectionGeometry&&(A.primitiveInfo=SV(m,t)),l.push(A)}}t._nodeCommands=l,this._boundingSphere=ce.fromCornerPoints(a,c,new ce),this._boundingSphere=ce.transformWithoutScale(this._boundingSphere,this._axisCorrectionMatrix,this._boundingSphere),this._boundingSphere=ce.transform(this._boundingSphere,this._components.transform,this._boundingSphere),t._boundingSphere=ce.transform(this._boundingSphere,t.modelMatrix,t._boundingSphere),t._initialRadius=t._boundingSphere.radius,t._boundingSphere.radius*=t._clampedScale};Ef.prototype.configurePipeline=function(e){let t=this.modelPipelineStages;t.length=0;let n=this._model,i=e.fog.enabled&&e.fog.renderable;u(n.color)&&t.push(FT),!u(n.classificationType)&&(n.imageBasedLighting.enabled&&t.push(B4),n.isClippingEnabled()&&t.push(G4),n.isGeometryClipEnabled()&&t.push(j4),n.isClippingPolygonsEnabled()&&t.push(X4),n.hasSilhouette(e)&&t.push(oV),u(n.splitDirection)&&n.splitDirection!==us.NONE&&t.push(cV),u(n.swiper)&&n.swiper.swipeEnabled===!0&&t.push(xV),Co.is3DTiles(n.type)&&t.push(O4),i&&t.push(N4))};Ef.prototype.update=function(e,t){let n,i,r;for(n=0;n<this._runtimeNodes.length;n++){let o=this._runtimeNodes[n];if(!u(o))continue;for(i=0;i<o.updateStages.length;i++)o.updateStages[i].update(o,this,e);let s=e.mode!==oe.SCENE3D&&this._model._projectTo2D;for(t&&!s&&this.updateJointMatrices(),i=0;i<o.runtimePrimitives.length;i++){let a=o.runtimePrimitives[i];for(r=0;r<a.updateStages.length;r++)a.updateStages[r].update(a,this)}}};Ef.prototype.updateModelMatrix=function(e,t){Nme(this,e),t.mode!==oe.SCENE3D&&hZe(this,t);let n=this._rootNodes;for(let i=0;i<n.length;i++){let r=this._runtimeNodes[n[i]];r._transformDirty=!0}};Ef.prototype.updateJointMatrices=function(){let e=this._skinnedNodes,t=e.length;for(let n=0;n<t;n++){let i=e[n];this._runtimeNodes[i].updateJointMatrices()}};function Bme(e,t,n,i,r){if(n&&!t.show)return;let o=t.children.length;for(let c=0;c<o;c++){let l=t.getChild(c);Bme(e,l,n,i,r)}let s=t.runtimePrimitives,a=s.length;for(let c=0;c<a;c++){let l=s[c];i(l,r)}}function vV(e,t,n,i){let r=e._rootNodes,o=r.length;for(let s=0;s<o;s++){let a=r[s],c=e._runtimeNodes[a];Bme(e,c,t,n,i)}}var yZe={backFaceCulling:void 0};Ef.prototype.updateBackFaceCulling=function(e){let t=yZe;t.backFaceCulling=e,vV(this,!1,xZe,t)};function xZe(e,t){let n=e.drawCommand;n.backFaceCulling=t.backFaceCulling}var bZe={shadowMode:void 0};Ef.prototype.updateShadows=function(e){let t=bZe;t.shadowMode=e,vV(this,!1,TZe,t)};function TZe(e,t){let n=e.drawCommand;n.shadows=t.shadowMode}var CZe={debugShowBoundingVolume:void 0};Ef.prototype.updateShowBoundingVolume=function(e){let t=CZe;t.debugShowBoundingVolume=e,vV(this,!1,AZe,t)};function AZe(e,t){let n=e.drawCommand;n.debugShowBoundingVolume=t.debugShowBoundingVolume}var kme=[],EZe={frameState:void 0,hasSilhouette:void 0};Ef.prototype.pushDrawCommands=function(e){let t=kme;t.length=0;let n=EZe;n.hasSilhouette=this._model.hasSilhouette(e),n.frameState=e,vV(this,!0,SZe,n),e.commandList.push.apply(e.commandList,t)};function SZe(e,t){let n=t.frameState,i=t.hasSilhouette,r=n.passes,o=kme,s=e.drawCommand;s.pushCommands(n,n.commandList),i&&!r.pick&&s.pushSilhouetteCommands(n,o)}Ef.prototype.setArticulationStage=function(e,t){let n=e.split(" ");if(n.length!==2)return;let i=n[0],r=n[1],o=this._runtimeArticulations[i];u(o)&&o.setArticulationStage(r,t)};Ef.prototype.applyArticulations=function(){let e=this._runtimeArticulations;for(let t in e)e.hasOwnProperty(t)&&e[t].apply()};var wV=Ef;function kS(){this.pointsLength=0,this.trianglesLength=0,this.geometryByteLength=0,this.texturesByteLength=0,this.propertyTablesByteLength=0,this._bufferIdSet={},this._textureIdSet={},this._batchTextureIdMap=new Ut}Object.defineProperties(kS.prototype,{batchTexturesByteLength:{get:function(){let e=this._batchTextureIdMap.length,t=this._batchTextureIdMap.values,n=0;for(let i=0;i<e;i++)n+=t[i].byteLength;return n}}});kS.prototype.clear=function(){this.pointsLength=0,this.trianglesLength=0,this.geometryByteLength=0,this.texturesByteLength=0,this.propertyTablesByteLength=0,this._bufferIdSet={},this._textureIdSet={},this._batchTextureIdMap.removeAll()};kS.prototype.addBuffer=function(e,t){if(!this._bufferIdSet.hasOwnProperty(e._id)){let n=t?2:1;this.geometryByteLength+=e.sizeInBytes*n}this._bufferIdSet[e._id]=!0};kS.prototype.addTexture=function(e){this._textureIdSet.hasOwnProperty(e._id)||(this.texturesByteLength+=e.sizeInBytes),this._textureIdSet[e._id]=!0};kS.prototype.addBatchTexture=function(e){this._batchTextureIdMap.contains(e._id)||this._batchTextureIdMap.set(e._id,e)};var DV=kS;var Hme=xo(L1(),1);var Vme={},zT=Uint32Array.BYTES_PER_ELEMENT;Vme.parse=function(e,t){t=y(t,0);let n=new Uint8Array(e),i=new DataView(e);t+=zT;let r=i.getUint32(t,!0);if(r!==1)throw new ae(`Only Point Cloud tile version 1 is supported. Version ${r} is not.`);t+=zT,t+=zT;let o=i.getUint32(t,!0);if(o===0)throw new ae("Feature table must have a byte length greater than zero");t+=zT;let s=i.getUint32(t,!0);t+=zT;let a=i.getUint32(t,!0);t+=zT;let c=i.getUint32(t,!0);t+=zT;let l=dr(n,t,o);t+=o;let f=new Uint8Array(e,t,s);t+=s;let d,p;a>0&&(d=dr(n,t,a),t+=a,c>0&&(p=new Uint8Array(e,t,c),t+=c));let _=new Ta(l,f),m=_.getGlobalProperty("POINTS_LENGTH");if(_.featuresLength=m,!u(m))throw new ae("Feature table global property: POINTS_LENGTH must be defined");let x=_.getGlobalProperty("RTC_CENTER",q.FLOAT,3);u(x)&&(x=h.unpack(x));let b=vZe(_,d);if(b.rtcCenter=x,b.pointsLength=m,!b.hasPositions){let T=wZe(_);b.positions=T,b.hasPositions=b.hasPositions||u(T)}if(!b.hasPositions)throw new ae("Either POSITION or POSITION_QUANTIZED must be defined.");if(!b.hasNormals){let T=PZe(_);b.normals=T,b.hasNormals=b.hasNormals||u(T)}if(!b.hasColors){let T=DZe(_);b.colors=T,b.hasColors=b.hasColors||u(T),b.hasConstantColor=u(b.constantColor),b.isTranslucent=u(T)&&T.isTranslucent}if(!b.hasBatchIds){let T=IZe(_);b.batchIds=T,b.hasBatchIds=b.hasBatchIds||u(T)}if(b.hasBatchIds){let T=_.getGlobalProperty("BATCH_LENGTH");if(!u(T))throw new ae("Global property: BATCH_LENGTH must be defined when BATCH_ID is defined.");b.batchLength=T}return u(p)&&(p=new Uint8Array(p),b.batchTableJson=d,b.batchTableBinary=p),b};function vZe(e,t){let n=e.json,i,r,o,s=u(n.extensions)?n.extensions["3DTILES_draco_point_compression"]:void 0,a=u(t)&&u(t.extensions)?t.extensions["3DTILES_draco_point_compression"]:void 0;u(a)&&(o=a.properties);let c,l,f,d,p;if(u(s)){r=s.properties;let m=s.byteOffset,x=s.byteLength;if(!u(r)||!u(m)||!u(x))throw new ae("Draco properties, byteOffset, and byteLength must be defined");i=e.buffer.slice(m,m+x),c=u(r.POSITION),l=u(r.RGB)||u(r.RGBA),f=u(r.NORMAL),d=u(r.BATCH_ID),p=u(r.RGBA)}let _;return u(i)&&(_={buffer:i,featureTableProperties:r,batchTableProperties:o,properties:xt(r,o),dequantizeInShader:!0}),{draco:_,hasPositions:c,hasColors:l,isTranslucent:p,hasNormals:f,hasBatchIds:d}}function wZe(e){let t=e.json,n;if(u(t.POSITION))return n=e.getPropertyArray("POSITION",q.FLOAT,3),{name:lt.POSITION,semantic:lt.POSITION,typedArray:n,isQuantized:!1,componentDatatype:q.FLOAT,type:Gt.VEC3};if(u(t.POSITION_QUANTIZED)){n=e.getPropertyArray("POSITION_QUANTIZED",q.UNSIGNED_SHORT,3);let i=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",q.FLOAT,3);if(!u(i))throw new ae("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let r=65535,o=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",q.FLOAT,3);if(!u(o))throw new ae("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");return{name:lt.POSITION,semantic:lt.POSITION,typedArray:n,isQuantized:!0,componentDatatype:q.FLOAT,type:Gt.VEC3,quantizedRange:r,quantizedVolumeOffset:h.unpack(o),quantizedVolumeScale:h.unpack(i),quantizedComponentDatatype:q.UNSIGNED_SHORT,quantizedType:Gt.VEC3}}}function DZe(e){let t=e.json,n;if(u(t.RGBA))return n=e.getPropertyArray("RGBA",q.UNSIGNED_BYTE,4),{name:lt.COLOR,semantic:lt.COLOR,setIndex:0,typedArray:n,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC4,normalized:!0,isRGB565:!1,isTranslucent:!0};if(u(t.RGB))return n=e.getPropertyArray("RGB",q.UNSIGNED_BYTE,3),{name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC3,normalized:!0,isRGB565:!1,isTranslucent:!1};if(u(t.RGB565))return n=e.getPropertyArray("RGB565",q.UNSIGNED_SHORT,1),{name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n,componentDatatype:q.FLOAT,type:Gt.VEC3,normalized:!1,isRGB565:!0,isTranslucent:!1};if(u(t.CONSTANT_RGBA)){let i=e.getGlobalProperty("CONSTANT_RGBA",q.UNSIGNED_BYTE,4),r=i[3],o=z.fromBytes(i[0],i[1],i[2],r),s=r<255;return{name:lt.COLOR,semantic:lt.COLOR,setIndex:0,constantColor:o,componentDatatype:q.FLOAT,type:Gt.VEC4,isQuantized:!1,isTranslucent:s}}}function PZe(e){let t=e.json,n;if(u(t.NORMAL))return n=e.getPropertyArray("NORMAL",q.FLOAT,3),{name:lt.NORMAL,semantic:lt.NORMAL,typedArray:n,octEncoded:!1,octEncodedZXY:!1,componentDatatype:q.FLOAT,type:Gt.VEC3};if(u(t.NORMAL_OCT16P))return n=e.getPropertyArray("NORMAL_OCT16P",q.UNSIGNED_BYTE,2),{name:lt.NORMAL,semantic:lt.NORMAL,typedArray:n,octEncoded:!0,octEncodedZXY:!1,quantizedRange:(1<<8)-1,quantizedType:Gt.VEC2,quantizedComponentDatatype:q.UNSIGNED_BYTE,componentDatatype:q.FLOAT,type:Gt.VEC3}}function IZe(e){let t=e.json;if(u(t.BATCH_ID)){let n=e.getPropertyArray("BATCH_ID",q.UNSIGNED_SHORT,1);return{name:lt.FEATURE_ID,semantic:lt.FEATURE_ID,setIndex:0,typedArray:n,componentDatatype:q.fromTypedArray(n),type:Gt.SCALAR}}}var VS=Vme;var RZe=fn.Components,OZe=fn.Scene,MZe=fn.Node,LZe=fn.Primitive,NZe=fn.Attribute,Ume=fn.Quantization,FZe=fn.FeatureIdAttribute,BZe=fn.Material,kZe=fn.MetallicRoughness;function ky(e){e=y(e,y.EMPTY_OBJECT);let t=e.arrayBuffer,n=y(e.byteOffset,0);this._arrayBuffer=t,this._byteOffset=n,this._loadAttributesFor2D=y(e.loadAttributesFor2D,!1),this._parsedContent=void 0,this._decodePromise=void 0,this._decodedAttributes=void 0,this._promise=void 0,this._error=void 0,this._state=It.UNLOADED,this._buffers=[],this._components=void 0,this._transform=M.IDENTITY,this._generateUniqueId=e.generateUniqueId}u(Object.create)&&(ky.prototype=Object.create(Li.prototype),ky.prototype.constructor=ky);Object.defineProperties(ky.prototype,{cacheKey:{get:function(){}},components:{get:function(){return this._components}},transform:{get:function(){return this._transform}}});ky.prototype.load=function(){if(u(this._promise))return this._promise;this._parsedContent=VS.parse(this._arrayBuffer,this._byteOffset),this._state=It.PROCESSING,this._promise=Promise.resolve(this)};ky.prototype.process=function(e){if(u(this._error)){let t=this._error;throw this._error=void 0,t}if(this._state===It.READY)return!0;if(this._state===It.PROCESSING){if(u(this._decodePromise))return!1;this._decodePromise=VZe(this,e.context)}return!1};function VZe(e,t){let i=e._parsedContent.draco,r;if(u(i)?r=Sp.decodePointCloud(i,t):r=Promise.resolve(),!!u(r))return e._decodePromise=r,r.then(function(o){if(!e.isDestroyed())return u(o)&&UZe(e,i,o),$Ze(e,t),e._state=It.READY,e}).catch(function(o){e.unload(),e._state=It.FAILED;let s="Failed to load Draco pnts";e._error=e.getError(s,o)})}function UZe(e,t,n){e._state=It.READY;let i=e._parsedContent,r;if(u(n.POSITION)){if(r={name:"POSITION",semantic:lt.POSITION,typedArray:n.POSITION.array,componentDatatype:q.FLOAT,type:Gt.VEC3,isQuantized:!1},u(n.POSITION.data.quantization)){let a=n.POSITION.data.quantization,c=a.range,l=h.fromElements(c,c,c),f=h.unpack(a.minValues),d=(1<<a.quantizationBits)-1;r.isQuantized=!0,r.quantizedRange=d,r.quantizedVolumeOffset=f,r.quantizedVolumeScale=l,r.quantizedComponentDatatype=d<=255?q.UNSIGNED_BYTE:q.UNSIGNED_SHORT,r.quantizedType=Gt.VEC3}i.positions=r}if(u(n.NORMAL)){if(r={name:"NORMAL",semantic:lt.NORMAL,typedArray:n.NORMAL.array,componentDatatype:q.FLOAT,type:Gt.VEC3,isQuantized:!1,octEncoded:!1,octEncodedZXY:!1},u(n.NORMAL.data.quantization)){let a=(1<<n.NORMAL.data.quantization.quantizationBits)-1;r.quantizedRange=a,r.octEncoded=!0,r.octEncodedZXY=!0,r.quantizedComponentDatatype=q.UNSIGNED_BYTE,r.quantizedType=Gt.VEC2}i.normals=r}if(u(n.RGBA)?i.colors={name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n.RGBA.array,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC4,normalized:!0,isTranslucent:!0}:u(n.RGB)&&(i.colors={name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n.RGB.array,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC3,normalized:!0,isTranslucent:!1}),u(n.BATCH_ID)){let a=n.BATCH_ID.array;i.batchIds={name:"_FEATURE_ID",semantic:lt.FEATURE_ID,setIndex:0,typedArray:a,componentDatatype:q.fromTypedArray(a),type:Gt.SCALAR}}let o=i.batchTableJson,s=t.batchTableProperties;for(let a in s)if(s.hasOwnProperty(a)){let c=n[a];u(o)||(o={}),i.hasDracoBatchTable=!0;let l=c.data;o[a]={byteOffset:l.byteOffset,type:zZe(l.componentsPerAttribute),componentType:HZe(l.componentDatatype),typedArray:c.array}}i.batchTableJson=o}function zZe(e){switch(e){case 1:return"SCALAR";case 2:return"VEC2";case 3:return"VEC3";case 4:return"VEC4"}}function HZe(e){switch(e){case J.BYTE:return"BYTE";case J.UNSIGNED_BYTE:return"UNSIGNED_BYTE";case J.SHORT:return"SHORT";case J.UNSIGNED_SHORT:return"UNSIGNED_SHORT";case J.INT:return"INT";case J.UNSIGNED_INT:return"UNSIGNED_INT";case J.DOUBLE:return"DOUBLE";case J.FLOAT:return"FLOAT"}}function PP(e,t,n){let i=t.typedArray,r;if(t.octEncoded&&(r=new Ume,r.octEncoded=t.octEncoded,r.octEncodedZXY=t.octEncodedZXY,r.normalizationRange=t.quantizedRange,r.type=t.quantizedType,r.componentDatatype=t.quantizedComponentDatatype),t.isQuantized){r=new Ume;let a=t.quantizedRange;r.normalizationRange=a,r.quantizedVolumeOffset=h.ZERO;let c=t.quantizedVolumeScale;r.quantizedVolumeDimensions=c,r.quantizedVolumeStepSize=h.divideByScalar(c,a,new h),r.componentDatatype=t.quantizedComponentDatatype,r.type=t.quantizedType}let o=new NZe;if(o.name=t.name,o.semantic=t.semantic,o.setIndex=t.setIndex,o.componentDatatype=t.componentDatatype,o.type=t.type,o.normalized=y(t.normalized,!1),o.min=t.min,o.max=t.max,o.quantization=r,t.isRGB565&&(i=xn.decodeRGB565(i)),u(t.constantColor)){let a=new Array(4);o.constant=z.pack(t.constantColor,a)}else{let a=et.createVertexBuffer({typedArray:i,context:n,usage:Oe.STATIC_DRAW});a.vertexArrayDestroyable=!1,e._buffers.push(a),o.buffer=a}let s=e._loadAttributesFor2D;return o.semantic===lt.POSITION&&s&&(o.typedArray=i),o}var zme,PV;function GZe(e){if(!u(PV)){zme=new Hme.default(0),PV=new Array(e);for(let t=0;t<e;++t)PV[t]=zme.random()}return PV}var WZe=new h,jZe=new h,qZe=new h;function YZe(e){let t=e.typedArray,n=20,i=t.length/3,r=Math.min(i,n),o=GZe(n),s=Number.MAX_VALUE,a=-Number.MAX_VALUE,c=h.fromElements(s,s,s,WZe),l=h.fromElements(a,a,a,jZe),f,d,p;if(e.isQuantized)c=h.ZERO,l=e.quantizedVolumeScale;else for(f=0;f<r;++f)d=Math.floor(o[f]*i),p=h.unpack(t,d*3,qZe),h.minimumByComponent(c,p,c),h.maximumByComponent(l,p,l);e.min=h.clone(c),e.max=h.clone(l)}var XZe={name:lt.COLOR,semantic:lt.COLOR,setIndex:0,constantColor:z.DARKGRAY,componentDatatype:q.FLOAT,type:Gt.VEC4,isQuantized:!1,isTranslucent:!1};function KZe(e,t,n){let i=[],r,o=t.positions;return u(o)&&(YZe(o),r=PP(e,o,n),r.count=t.pointsLength,i.push(r)),u(t.normals)&&(r=PP(e,t.normals,n),i.push(r)),u(t.colors)?(r=PP(e,t.colors,n),i.push(r)):(r=PP(e,XZe,n),i.push(r)),u(t.batchIds)&&(r=PP(e,t.batchIds,n),i.push(r)),i}function ZZe(e,t,n){let i=e.batchLength,r=e.pointsLength,o=e.batchTableBinary,s=!u(e.batchIds);if(u(o)||e.hasDracoBatchTable){let a=y(i,r);return Pp({count:a,batchTable:e.batchTableJson,binaryBody:o,parseAsPropertyAttributes:s,customAttributeOutput:t,generateUniqueId:n})}return new ho({schema:{},propertyTables:[]})}function $Ze(e,t){let n=e._parsedContent,i=new kZe;i.metallicFactor=0,i.roughnessFactor=.9;let r=new BZe;r.metallicRoughness=i;let o=n.colors;u(o)&&o.isTranslucent&&(r.alphaMode=Bh.BLEND);let s=!u(n.normals);r.unlit=s;let a=new LZe;if(a.attributes=KZe(e,n,t),a.primitiveType=Fe.POINTS,a.material=r,u(n.batchIds)){let _=new FZe;_.propertyTableId=0,_.setIndex=0,_.positionalLabel="featureId_0",a.featureIds.push(_)}let c=new MZe;c.index=0,c.primitives=[a];let l=new OZe;l.nodes=[c],l.upAxis=wn.Z,l.forwardAxis=wn.X;let f=new RZe;f.scene=l,f.nodes=[c];let d=[];f.structuralMetadata=ZZe(n,d,e._generateUniqueId),d.length>0&&QZe(e,a,d,t),u(n.rtcCenter)&&(f.transform=M.multiplyByTranslation(f.transform,n.rtcCenter,f.transform));let p=n.positions;u(p)&&p.isQuantized&&(f.transform=M.multiplyByTranslation(f.transform,p.quantizedVolumeOffset,f.transform)),e._components=f,e._parsedContent=void 0,e._arrayBuffer=void 0}function QZe(e,t,n,i){let r=t.attributes,o=n.length;for(let s=0;s<o;s++){let a=n[s],c=et.createVertexBuffer({typedArray:a.typedArray,context:i,usage:Oe.STATIC_DRAW});c.vertexArrayDestroyable=!1,e._buffers.push(c),a.buffer=c,a.typedArray=void 0,r.push(a)}t.propertyAttributeIds=[0]}ky.prototype.unload=function(){let e=this._buffers;for(let t=0;t<e.length;t++)e[t].destroy();e.length=0,this._components=void 0,this._parsedContent=void 0,this._arrayBuffer=void 0};var IV=ky;var JZe=new h,e$e=new h,t$e=new h,n$e=new M,i$e=new M,r$e=new M,o$e=new ue,s$e=new ce;function IP(e,t,n,i,r,o,s){if(!e._ready||n.mode===oe.MORPHING)return;let a=Number.MAX_VALUE,c=e.sceneGraph,l=c._runtimeNodes;for(let f=0;f<l.length;f++){let d=l[f],p=d.node,_=M.clone(d.computedTransform,n$e),m=M.clone(c.computedModelMatrix,i$e),x=p.instances;u(x)&&x.transformInWorldSpace&&(m=M.multiplyTransformation(e.modelMatrix,c.components.transform,m),_=M.multiplyTransformation(c.axisCorrectionMatrix,d.computedTransform,_));let b=M.multiplyTransformation(m,_,r$e);n.mode!==oe.SCENE3D&&(b=St.basisTo2D(n.mapProjection,b,b));let T=[];if(u(x)){let A=x.attributes[0].count,E=x.attributes[0].componentDatatype,v=12,D=d.transformsTypedArray;if(!u(D)){let R=d.instancingTransformsBuffer;u(R)&&n.context.webgl2&&(D=q.createTypedArray(E,A*v),R.getBufferData(D))}if(u(D))for(let R=0;R<A;R++){let O=R*v,L=new M(D[O],D[O+1],D[O+2],D[O+3],D[O+4],D[O+5],D[O+6],D[O+7],D[O+8],D[O+9],D[O+10],D[O+11],0,0,0,1);x.transformInWorldSpace?(M.multiplyTransformation(L,_,L),M.multiplyTransformation(m,L,L)):M.multiplyTransformation(L,b,L),T.push(L)}}T.length===0&&T.push(b);let C=d.runtimePrimitives.length;for(let A=0;A<C;A++){let E=d.runtimePrimitives[A],v=E.primitive;if(u(E.boundingSphere)&&!u(x)){let j=ce.transform(E.boundingSphere,b,s$e),K=Mi.raySphere(t,j);if(!u(K))continue}let D=hn.getAttributeBySemantic(v,lt.POSITION),R=D.byteOffset,O=D.byteStride,L=D.count;if(!u(v.indices))continue;let N=v.indices.typedArray;if(!u(N)){let j=v.indices.buffer,K=v.indices.count,Y=v.indices.indexDatatype;u(j)&&n.context.webgl2&&(Y===Ze.UNSIGNED_BYTE?N=new Uint8Array(K):Y===Ze.UNSIGNED_SHORT?N=new Uint16Array(K):Y===Ze.UNSIGNED_INT&&(N=new Uint32Array(K)),j.getBufferData(N))}let g=D.typedArray,S=D.componentDatatype,w=D.type,P=D.quantization;u(P)&&(S=D.quantization.componentDatatype,w=D.quantization.type);let F=Gt.getNumberOfComponents(w),B=q.getSizeInBytes(S),H=!u(g)&&u(O)&&O!==F*B,V=F,U=0;H&&(V=O/B,U=R/B);let k=L*V;if(!u(g)){let j=D.buffer;u(j)&&n.context.webgl2&&(g=q.createTypedArray(S,k),j.getBufferData(g,H?0:R,0,k)),P&&D.normalized&&(g=xn.dequantize(g,S,w,L))}if(!u(N)||!u(g))return;o=y(o,ne.default),i=y(i,1),r=y(r,0);let W=N.length;for(let j=0;j<W;j+=3){let K=N[j],Y=N[j+1],ee=N[j+2];for(let Z of T){let pe=gK(g,K,U,V,P,Z,i,r,o,JZe),xe=gK(g,Y,U,V,P,Z,i,r,o,e$e),le=gK(g,ee,U,V,P,Z,i,r,o,t$e),Te=Mi.rayTriangleParametric(t,pe,xe,le,y(e.backFaceCulling,!0));u(Te)&&Te<a&&Te>=0&&(a=Te)}}}}if(a!==Number.MAX_VALUE){if(s=kn.getPoint(t,a,s),n.mode!==oe.SCENE3D){h.fromElements(s.y,s.z,s.x,s);let f=n.mapProjection,d=f.ellipsoid,p=f.unproject(s,o$e);d.cartographicToCartesian(p,s)}return s}}function gK(e,t,n,i,r,o,s,a,c,l){let f=n+t*i;if(l.x=e[f],l.y=e[f+1],l.z=e[f+2],u(r))if(r.octEncoded){if(l=xn.octDecodeInRange(l,r.normalizationRange,l),r.octEncodedZXY){let d=l.x;l.x=l.z,l.z=l.y,l.y=d}}else l=h.multiplyComponents(l,r.quantizedVolumeStepSize,l),l=h.add(l,r.quantizedVolumeOffset,l);return l=M.multiplyByPoint(o,l,l),s!==1&&no.getPosition(l,c,s,a,l),l}var US={};US._deprecationWarning=uo;var Gme=Uint32Array.BYTES_PER_ELEMENT;US.parse=function(e,t){t=y(t,0);let i=0,r=0,o=0,s=0,a;o>=570425344?(t-=Gme*2,a=i,o=r,s=0,i=0,r=0,US._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchLength] [batchTableByteLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel.")):s>=570425344&&(t-=Gme,a=o,o=i,s=r,i=0,r=0,US._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchTableJsonByteLength] [batchTableBinaryByteLength] [batchLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel."));let c;i===0?c={BATCH_LENGTH:y(a,0)}:(c=dr(uint8Array,t,i),t+=i);let l=new Uint8Array(e,t,r);t+=r;let f,d;o>0&&(f=dr(uint8Array,t,o),t+=o,s>0&&(d=new Uint8Array(e,t,s),d=new Uint8Array(d),t+=s));let p=e.byteLength,_;return t%4===0?_=new Uint8Array(e,t,p):(US._deprecationWarning("b3dm-glb-unaligned","The embedded glb is not aligned to a 4-byte boundary."),_=new Uint8Array(uint8Array.subarray(t,t+p))),{batchLength:a,featureTableJson:c,featureTableBinary:l,batchTableJson:f,batchTableBinary:d,gltf:_}};var RV=US;var a$e={};function RP(e){this._count=e.count,this._properties=e.properties,this._batchTableJson=e.batchTableJson}RP.prototype.hasProperty=function(e){return ai.hasProperty(e,this._properties,a$e)};RP.prototype.getPropertyIds=function(e,t){e=u(e)?e:[],e.length=0;let n=Object.keys(this._properties);return e.push.apply(e,n),e};RP.prototype.getProperty=function(e,t){let n=this._properties[t];if(u(n))return Ve(n[e],!0)};RP.prototype.setProperty=function(e,t,n){let i=this._properties[t];u(i)||(i=new Array(this._count),this._properties[t]=i),i[e]=Ve(n,!0)};var OV=RP;var c$e={};function OP(e){this._count=e.count,this._properties=e.properties,this._batchTableJson=e.batchTableJson}OP.prototype.hasProperty=function(e){return ai.hasProperty(e,this._properties,c$e)};OP.prototype.getPropertyIds=function(e,t){e=u(e)?e:[],e.length=0;let n=Object.keys(this._properties);return e.push.apply(e,n),e};OP.prototype.getProperty=function(e,t){let n=this._properties[t];if(u(n))return Ve(n[e],!0)};OP.prototype.setProperty=function(e,t,n){let i=this._properties[t];u(i)||(i=new Array(this._count),this._properties[t]=i),i[e]=Ve(n,!0)};var MV=OP;function LV(e){let t=e.count,n=e.binaryBody,i=e.batchTable,r=e.binaryBody,o=e.tilesetVersion,s=y(e.parseAsPropertyAttributes,!1),a=e.customAttributeOutput,c={jsonProperties:i,binaryProperties:r},l;(o==="2.1"||o==="2.2")&&u(c.jsonProperties)?l=new lT({count:t,properties:i,batchTableJson:i,batchTableBinary:r}):o==="2.0"&&u(c.jsonProperties)?l=new OV({count:t,properties:i,batchTableJson:i}):o==="1.0"&&u(c.jsonProperties)&&(l=new MV({count:t,properties:i,batchTableJson:i}));let f;u(c.hierarchy)&&(f=new iy({extension:c.hierarchy,binaryBody:n}));let d=xa.BATCH_TABLE_CLASS_NAME,p=c.binaryProperties,_,m,x;if(s){let C=u$e(t,d,p,n,a);x=C.transcodedSchema,m=[new Sy({propertyAttribute:C.propertyAttributeJson,class:C.transcodedClass})]}else{let C=l$e(t,d,p,n);x=C.transcodedSchema;let A=C.featureTableJson;_=new Gl({count:A.count,properties:A.properties,class:C.transcodedClass,bufferViews:C.bufferViewsTypedArrays}),m=[]}let b=[];if(u(_)||u(l)||u(f)){let C=new ms({id:0,name:"Batch Table",count:t,metadataTable:_,jsonMetadataTable:l,batchTableHierarchy:f});b.push(C)}let T={schema:x,propertyTables:b,propertyAttributes:m,extensions:c.extensions,extras:c.extras};return new ho(T)}function l$e(e,t,n,i){let r={},o={},s={},a=0;for(let d in n){if(!n.hasOwnProperty(d))continue;if(!u(i))throw new ae(`Property ${d} requires a batch table binary.`);let p=n[d],_=Bl(p);o[d]={bufferView:a},r[d]=Wme(p),s[a]=_.createArrayBufferView(i.buffer,i.byteOffset+p.byteOffset,e),a++}let c={classes:{}};c.classes[t]={properties:r};let l=Wl.fromJson(c);return{featureTableJson:{class:t,count:e,properties:o},bufferViewsTypedArrays:s,transcodedSchema:l,transcodedClass:l.classes[t]}}function u$e(e,t,n,i,r){let o={},s={},a=0;for(let d in n){if(!n.hasOwnProperty(d))continue;let p=n[d];if(!u(i)&&!u(p.typedArray))throw new ae(`Property ${d} requires a batch table binary.`);let _=hn.sanitizeGlslIdentifier(d);(_===""||o.hasOwnProperty(_))&&(_=`property_${a}`,a++);let m=Wme(p);m.name=d,o[_]=m;let x=_.toUpperCase();x.startsWith("_")||(x=`_${x}`);let b=p.typedArray;u(b)||(b=Bl(p).createArrayBufferView(i.buffer,i.byteOffset+p.byteOffset,e));let T=new fn.Attribute;T.name=x,T.count=e,T.type=p.type;let C=q.fromTypedArray(b);(C===q.INT||C===q.UNSIGNED_INT||C===q.DOUBLE)&&(LV._oneTimeWarning("Cast pnts property to floats",`Point cloud property "${x}" will be cast to a float array because INT, UNSIGNED_INT, and DOUBLE are not valid WebGL vertex attribute types. Some precision may be lost.`),b=new Float32Array(b)),T.componentDatatype=q.fromTypedArray(b),T.typedArray=b,r.push(T),s[_]={attribute:x}}let c={classes:{}};c.classes[t]={properties:o};let l=Wl.fromJson(c);return{class:t,propertyAttributeJson:{properties:s},transcodedSchema:l,transcodedClass:l.classes[t]}}function Wme(e){let t=f$e(e.componentType);return{type:e.type,componentType:t}}function f$e(e){switch(e){case"BYTE":return"INT8";case"UNSIGNED_BYTE":return"UINT8";case"SHORT":return"INT16";case"UNSIGNED_SHORT":return"UINT16";case"INT":return"INT32";case"UNSIGNED_INT":return"UINT32";case"FLOAT":return"FLOAT32";case"DOUBLE":return"FLOAT64"}}LV._deprecationWarning=uo;LV._oneTimeWarning=Bt;var Id=LV;var HT={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},d$e=fn.FeatureIdAttribute;function Vy(e){e=y(e,y.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,r=y(e.byteOffset,0),o=y(e.releaseGltfJson,!1),s=y(e.asynchronous,!0),a=y(e.incrementallyLoadTextures,!0),c=y(e.upAxis,wn.Y),l=y(e.forwardAxis,wn.X),f=y(e.loadAttributesAsTypedArray,!1),d=y(e.loadAttributesFor2D,!1),p=y(e.enablePick,!1),_=y(e.loadIndicesForWireframe,!1),m=y(e.loadPrimitiveOutline,!0),x=y(e.loadForClassification,!1);n=u(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=r,this._releaseGltfJson=o,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=f,this._loadAttributesFor2D=d,this._enablePick=p,this._loadIndicesForWireframe=_,this._loadPrimitiveOutline=m,this._loadForClassification=x,this._state=HT.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=M.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}u(Object.create)&&(Vy.prototype=Object.create(Li.prototype),Vy.prototype.constructor=Vy);Object.defineProperties(Vy.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});Vy.prototype.load=function(){if(u(this._promise))return this._promise;let e=RV.parse(this._arrayBuffer,this._byteOffset),t=e.featureTableJson,n=e.featureTableBinary,i=new Ta(t,n);this._tilesetVersion==="2.1"||this._tilesetVersion==="2.2"?this._batchLength=this._attBatchTable?.batchTableJson?.tid?.tidsLength:this._tilesetVersion==="2.0"&&u(this._attBatchTable)&&(this._batchLength=this._attBatchTable?.batchTableJson?.OID?.length),u(this._batchLength)||(this._batchLength=0);let r=i.getGlobalProperty("RTC_CENTER",q.FLOAT,3);u(r)&&(this._transform=M.fromTranslation(h.fromArray(r))),u(this._attBatchTable)&&(this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary});let o=new il({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,tilesetVersion:this._tilesetVersion,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=o,this._state=HT.LOADING;let s=this;return this._promise=o.load().then(function(){if(!s.isDestroyed())return s._state=HT.PROCESSING,s}).catch(function(a){if(!s.isDestroyed())return h$e(s,a)}),this._promise};function h$e(e,t){return e.unload(),e._state=HT.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}Vy.prototype.process=function(e){if(this._state===HT.READY)return!0;if(this._state!==HT.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=M.multiplyTransformation(this._transform,n.transform,n.transform),m$e(this,n),this._components=n,this._arrayBuffer=void 0,this._state=HT.READY,!0};function m$e(e,t){let n=e._batchTable,i=e._batchLength,r=e._tilesetVersion;if(i===0)return;let o;if(u(n?.json))o=Id({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:r});else{let c=new ms({name:xa.BATCH_TABLE_CLASS_NAME,count:i});o=new ho({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)jme(s[c]);t.structuralMetadata=o}function jme(e){let t=e.children.length;for(let i=0;i<t;i++)jme(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let r=e.primitives[i],o=hn.getAttributeBySemantic(r,lt.FEATURE_ID);if(u(o)){o.setIndex=0;let s=new d$e;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",r.featureIds.push(s)}}}Vy.prototype.unload=function(){u(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var NV=Vy;var GT={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},p$e=fn.FeatureIdAttribute;function Uy(e){e=y(e,y.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,r=y(e.byteOffset,0),o=y(e.releaseGltfJson,!1),s=y(e.asynchronous,!0),a=y(e.incrementallyLoadTextures,!0),c=y(e.upAxis,wn.Y),l=y(e.forwardAxis,wn.X),f=y(e.loadAttributesAsTypedArray,!1),d=y(e.loadAttributesFor2D,!1),p=y(e.enablePick,!1),_=y(e.loadIndicesForWireframe,!1),m=y(e.loadPrimitiveOutline,!0),x=y(e.loadForClassification,!1);n=u(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=r,this._releaseGltfJson=o,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=f,this._loadAttributesFor2D=d,this._enablePick=p,this._loadIndicesForWireframe=_,this._loadPrimitiveOutline=m,this._loadForClassification=x,this._state=GT.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=M.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}u(Object.create)&&(Uy.prototype=Object.create(Li.prototype),Uy.prototype.constructor=Uy);Object.defineProperties(Uy.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});Uy.prototype.load=function(){if(u(this._promise))return this._promise;let e=TS.parse(this._arrayBuffer,this._byteOffset),t=e.batchLength,n=e.featureTableJson,i=e.featureTableBinary,r=new Ta(n,i);t=r.getGlobalProperty("BATCH_LENGTH"),this._batchLength=t;let o=r.getGlobalProperty("RTC_CENTER",q.FLOAT,3);u(o)&&(this._transform=M.fromTranslation(h.fromArray(o))),this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary};let s=new il({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=s,this._state=GT.LOADING;let a=this;return this._promise=s.load().then(function(){if(!a.isDestroyed())return a._state=GT.PROCESSING,a}).catch(function(c){if(!a.isDestroyed())return _$e(a,c)}),this._promise};function _$e(e,t){return e.unload(),e._state=GT.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}Uy.prototype.process=function(e){if(this._state===GT.READY)return!0;if(this._state!==GT.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=M.multiplyTransformation(this._transform,n.transform,n.transform),g$e(this,n),this._components=n,this._arrayBuffer=void 0,this._state=GT.READY,!0};function g$e(e,t){let n=e._batchTable,i=e._batchLength,r=e._tilesetVersion;if(i===0)return;let o;if(u(n.json))o=Id({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:r});else{let c=new ms({name:xa.BATCH_TABLE_CLASS_NAME,count:i});o=new ho({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)qme(s[c]);t.structuralMetadata=o}function qme(e){let t=e.children.length;for(let i=0;i<t;i++)qme(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let r=e.primitives[i],o=hn.getAttributeBySemantic(r,lt.FEATURE_ID);if(u(o)){o.setIndex=0;let s=new p$e;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",r.featureIds.push(s)}}}Uy.prototype.unload=function(){u(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var FV=Uy;var wg={NOT_LOADED:0,LOADING:1,PROCESSING:2,POST_PROCESSING:3,READY:4,FAILED:5,UNLOADED:6},BV=fn.Attribute,y$e=fn.FeatureIdAttribute,Xme=fn.Instances;function Dg(e){e=y(e,y.EMPTY_OBJECT);let t=e.i3dmResource,n=e.arrayBuffer,i=e.baseResource,r=y(e.byteOffset,0),o=y(e.releaseGltfJson,!1),s=y(e.asynchronous,!0),a=y(e.incrementallyLoadTextures,!0),c=y(e.upAxis,wn.Y),l=y(e.forwardAxis,wn.X),f=y(e.loadAttributesAsTypedArray,!1),d=y(e.loadIndicesForWireframe,!1),p=y(e.loadPrimitiveOutline,!0),_=y(e.enablePick,!1);i=u(i)?i:t.clone(),this._i3dmResource=t,this._baseResource=i,this._arrayBuffer=n,this._byteOffset=r,this._releaseGltfJson=o,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=f,this._loadIndicesForWireframe=d,this._loadPrimitiveOutline=p,this._enablePick=_,this._state=wg.NOT_LOADED,this._promise=void 0,this._gltfLoader=void 0,this._buffers=[],this._components=void 0,this._transform=M.IDENTITY,this._batchTable=void 0,this._featureTable=void 0,this._instancesLength=0,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}u(Object.create)&&(Dg.prototype=Object.create(Li.prototype),Dg.prototype.constructor=Dg);Object.defineProperties(Dg.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});Dg.prototype.load=function(){if(u(this._promise))return this._promise;let e=CS.parse(this._arrayBuffer,this._byteOffset),t=e.featureTableJson,n=e.featureTableBinary,i=e.gltfFormat,r=new Ta(t,n);this._featureTable=r;let o=r.getGlobalProperty("INSTANCES_LENGTH");if(r.featuresLength=o,!u(o))throw new ae("Feature table global property: INSTANCES_LENGTH must be defined");this._instancesLength=o;let s=r.getGlobalProperty("RTC_CENTER",q.FLOAT,3);u(s)&&(this._transform=M.fromTranslation(h.fromArray(s))),this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary};let a={upAxis:this._upAxis,forwardAxis:this._forwardAxis,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry};if(i===0){let l=Vo(e.gltf);l=l.replace(/[\s\0]+$/,"");let f=this._baseResource.getDerivedResource({url:l});a.gltfResource=f,a.baseResource=f}else a.gltfResource=this._i3dmResource,a.typedArray=e.gltf;let c=new il(a);return this._gltfLoader=c,this._state=wg.LOADING,this._promise=c.load().then(()=>{if(!this.isDestroyed())return this._state=wg.PROCESSING,this}).catch(l=>{if(!this.isDestroyed())throw x$e(this,l)}),this._promise};function x$e(e,t){return e.unload(),e._state=wg.FAILED,e.getError("Failed to load i3dm",t)}Dg.prototype.process=function(e){if(this._state===wg.READY)return!0;let t=this._gltfLoader,n=!1;if(this._state===wg.PROCESSING&&(n=t.process(e)),!n)return!1;let i=t.components;return i.transform=M.multiplyTransformation(this._transform,i.transform,i.transform),C$e(this,i,e),b$e(this,i),this._components=i,this._arrayBuffer=void 0,this._state=wg.READY,!0};function b$e(e,t){let n=e._batchTable,i=e._instancesLength,r=e._tilesetVersion;if(i===0)return;let o;if(u(n.json))o=Id({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:r});else{let s=new ms({name:xa.BATCH_TABLE_CLASS_NAME,count:i});o=new ho({schema:{},propertyTables:[s]})}t.structuralMetadata=o}var kV=new h,yK=new Array(4),T$e=new M;function C$e(e,t,n){let i,r=e._featureTable,o=e._instancesLength;if(o===0)return;let s=r.getGlobalProperty("RTC_CENTER",q.FLOAT,3),a=r.getGlobalProperty("EAST_NORTH_UP"),c=r.hasProperty("NORMAL_UP")||r.hasProperty("NORMAL_UP_OCT32P")||a,l=r.hasProperty("SCALE")||r.hasProperty("SCALE_NON_UNIFORM"),f=E$e(r,o),d;c&&(d=new Float32Array(4*o));let p;l&&(p=new Float32Array(3*o));let _=new Float32Array(o),m=h.unpackArray(f),x=new h,b=new h,T=new h,C=new h,A=new $,E=new Ge,v=new Array(4),D=new h,R=new Array(3),O=new M;if(!u(s)||h.equals(h.unpack(s),h.ZERO)){let V=ce.fromPoints(m);for(i=0;i<m.length;i++)h.subtract(m[i],V.center,kV),f[3*i+0]=kV.x,f[3*i+1]=kV.y,f[3*i+2]=kV.z;let U=M.fromTranslation(V.center,T$e);t.transform=M.multiplyTransformation(U,t.transform,t.transform)}for(i=0;i<o;i++){x=h.clone(m[i]),u(s)&&h.add(x,h.unpack(s),x),c&&(S$e(r,a,i,E,x,T,b,C,A,O),Ge.pack(E,v,0),d[4*i+0]=v[0],d[4*i+1]=v[1],d[4*i+2]=v[2],d[4*i+3]=v[3]),l&&(v$e(r,i,D),h.pack(D,R,0),p[3*i+0]=R[0],p[3*i+1]=R[1],p[3*i+2]=R[2]);let V=r.getProperty("BATCH_ID",q.UNSIGNED_SHORT,1,i);u(V)||(V=i),_[i]=V}let L=new Xme;L.transformInWorldSpace=!0;let N=e._buffers,g=new BV;if(g.name="Instance Translation",g.semantic=qo.TRANSLATION,g.componentDatatype=q.FLOAT,g.type=Gt.VEC3,g.count=o,g.typedArray=f,!c){let V=et.createVertexBuffer({context:n.context,typedArray:f,usage:Oe.STATIC_DRAW});V.vertexArrayDestroyable=!1,N.push(V),g.buffer=V}if(L.attributes.push(g),c){let V=new BV;V.name="Instance Rotation",V.semantic=qo.ROTATION,V.componentDatatype=q.FLOAT,V.type=Gt.VEC4,V.count=o,V.typedArray=d,L.attributes.push(V)}if(l){let V=new BV;if(V.name="Instance Scale",V.semantic=qo.SCALE,V.componentDatatype=q.FLOAT,V.type=Gt.VEC3,V.count=o,c)V.typedArray=p;else{let U=et.createVertexBuffer({context:n.context,typedArray:p,usage:Oe.STATIC_DRAW});U.vertexArrayDestroyable=!1,N.push(U),V.buffer=U}L.attributes.push(V)}let S=new BV;S.name="Instance Feature ID",S.setIndex=0,S.semantic=qo.FEATURE_ID,S.componentDatatype=q.FLOAT,S.type=Gt.SCALAR,S.count=o;let w=et.createVertexBuffer({context:n.context,typedArray:_,usage:Oe.STATIC_DRAW});w.vertexArrayDestroyable=!1,N.push(w),S.buffer=w,L.attributes.push(S);let P=new y$e;P.propertyTableId=0,P.setIndex=0,P.positionalLabel="instanceFeatureId_0",L.featureIds.push(P);let F=t.nodes,B=F.length,H=!1;for(i=0;i<B;i++){let V=F[i];V.primitives.length>0&&(V.instances=H?A$e(L):L,H=!0)}}function A$e(e){let t=new Xme;t.transformInWorldSpace=e.transformInWorldSpace;let n=e.attributes,i=n.length;for(let r=0;r<i;r++){let o=Ve(n[r],!1);t.attributes.push(o)}return t.featureIds=e.featureIds,t}function E$e(e,t){if(e.hasProperty("POSITION"))return e.getPropertyArray("POSITION",q.FLOAT,3);if(e.hasProperty("POSITION_QUANTIZED")){let n=e.getPropertyArray("POSITION_QUANTIZED",q.UNSIGNED_SHORT,3),i=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",q.FLOAT,3);if(!u(i))throw new ae("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");let r=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",q.FLOAT,3);if(!u(r))throw new ae("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let o=new Float32Array(n.length);for(let s=0;s<n.length/3;s++)for(let a=0;a<3;a++){let c=3*s+a;o[c]=n[c]/65535*r[a]+i[a]}return o}else throw new ae("Either POSITION or POSITION_QUANTIZED must be defined for each instance.")}var Yme=new Array(4);function S$e(e,t,n,i,r,o,s,a,c,l){let f=e.getProperty("NORMAL_UP",q.FLOAT,3,n,yK),d=e.getProperty("NORMAL_RIGHT",q.FLOAT,3,n,Yme),p=!1;if(u(f)){if(!u(d))throw new ae("To define a custom orientation, both NORMAL_UP and NORMAL_RIGHT must be defined.");h.unpack(f,0,o),h.unpack(d,0,s),p=!0}else{let _=e.getProperty("NORMAL_UP_OCT32P",q.UNSIGNED_SHORT,2,n,yK),m=e.getProperty("NORMAL_RIGHT_OCT32P",q.UNSIGNED_SHORT,2,n,Yme);if(u(_)){if(!u(m))throw new ae("To define a custom orientation with oct-encoded vectors, both NORMAL_UP_OCT32P and NORMAL_RIGHT_OCT32P must be defined.");xn.octDecodeInRange(_[0],_[1],65535,o),xn.octDecodeInRange(m[0],m[1],65535,s),p=!0}else t?(St.eastNorthUpToFixedFrame(r,ne.WGS84,l),M.getMatrix3(l,c)):$.clone($.IDENTITY,c)}p&&(h.cross(s,o,a),h.normalize(a,a),$.setColumn(c,0,s,c),$.setColumn(c,1,o,c),$.setColumn(c,2,a,c)),Ge.fromRotationMatrix(c,i)}function v$e(e,t,n){n=h.fromElements(1,1,1,n);let i=e.getProperty("SCALE",q.FLOAT,1,t);u(i)&&h.multiplyByScalar(n,i,n);let r=e.getProperty("SCALE_NON_UNIFORM",q.FLOAT,3,t,yK);u(r)&&(n.x*=r[0],n.y*=r[1],n.z*=r[2])}function w$e(e){let t=e._buffers,n=t.length;for(let i=0;i<n;i++){let r=t[i];r.isDestroyed()||r.destroy()}t.length=0}Dg.prototype.isUnloaded=function(){return this._state===wg.UNLOADED};Dg.prototype.unload=function(){u(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),w$e(this),this._components=void 0,this._arrayBuffer=void 0,this._state=wg.UNLOADED};var VV=Dg;var Qme=xo(L1(),1);var Kme={},jh=Uint32Array.BYTES_PER_ELEMENT;Kme.parse=function(e,t,n,i,r){t=y(t,0);let o=new Uint8Array(e),s=new DataView(e),a=0,c=0,l,f;if(n.version==="1.0"||n.version==="0.0"){let T=s.getUint32(t,!0);t+=jh;let C=s.getUint32(t,!0);if(C===0)throw new ae("Feature table must have a byte length greater than zero");t+=jh;let A=s.getUint32(t,!0);if(t+=jh,c=s.getUint32(t,!0),t+=jh,T>0){let v=Vo(o,t,T),D=JSON.parse(v);n.loadChildTileSet(r,D,i)}t+=T;let E=Vo(o,t,C);l=JSON.parse(E),t+=C,f=new Uint8Array(e,t,A),t+=A}else{t+=jh;let T=s.getUint32(t,!0);if(T!==1)throw new ae(`Only Point Cloud tile version 1 is supported. Version ${T} is not.`);t+=jh,t+=jh;let C=s.getUint32(t,!0);if(C===0)throw new ae("Feature table must have a byte length greater than zero");t+=jh;let A=s.getUint32(t,!0);t+=jh,a=s.getUint32(t,!0),t+=jh,c=s.getUint32(t,!0),t+=jh,l=dr(o,t,C),t+=C,f=new Uint8Array(e,t,A),t+=A}let d,p;a>0&&(d=dr(o,t,a),t+=a,c>0&&(p=new Uint8Array(e,t,c),t+=c));let _=new Ta(l,f),m=_.getGlobalProperty("POINTS_LENGTH");if(_.featuresLength=m,!u(m))throw new ae("Feature table global property: POINTS_LENGTH must be defined");let x=_.getGlobalProperty("RTC_CENTER",q.FLOAT,3);u(x)&&(x=h.unpack(x));let b=D$e(_,d);if(b.rtcCenter=x,b.pointsLength=m,!b.hasPositions){let T=P$e(_);b.positions=T,b.hasPositions=b.hasPositions||u(T)}if(!b.hasPositions)throw new ae("Either POSITION or POSITION_QUANTIZED must be defined.");if(!b.hasNormals){let T=R$e(_);b.normals=T,b.hasNormals=b.hasNormals||u(T)}if(!b.hasColors){let T=I$e(_);b.colors=T,b.hasColors=b.hasColors||u(T),b.hasConstantColor=u(b.constantColor),b.isTranslucent=u(T)&&T.isTranslucent}if(!b.hasBatchIds){let T=O$e(_);b.batchIds=T,b.hasBatchIds=b.hasBatchIds||u(T)}if(b.hasBatchIds){let T=_.getGlobalProperty("BATCH_LENGTH");if(!u(T))throw new ae("Global property: BATCH_LENGTH must be defined when BATCH_ID is defined.");b.batchLength=T}return u(p)&&(p=new Uint8Array(p),b.batchTableJson=d,b.batchTableBinary=p),b.batchTableJson=d,b};function D$e(e,t){let n=e.json,i,r,o,s=u(n.extensions)?n.extensions["3DTILES_draco_point_compression"]:void 0,a=u(t)&&u(t.extensions)?t.extensions["3DTILES_draco_point_compression"]:void 0;u(a)&&(o=a.properties);let c,l,f,d,p;if(u(s)){r=s.properties;let m=s.byteOffset,x=s.byteLength;if(!u(r)||!u(m)||!u(x))throw new ae("Draco properties, byteOffset, and byteLength must be defined");i=e.buffer.slice(m,m+x),c=u(r.POSITION),l=u(r.RGB)||u(r.RGBA),f=u(r.NORMAL),d=u(r.BATCH_ID),p=u(r.RGBA)}let _;return u(i)&&(_={buffer:i,featureTableProperties:r,batchTableProperties:o,properties:xt(r,o),dequantizeInShader:!0}),{draco:_,hasPositions:c,hasColors:l,isTranslucent:p,hasNormals:f,hasBatchIds:d}}function P$e(e){let t=e.json,n;if(u(t.POSITION))return n=e.getPropertyArray("POSITION",q.FLOAT,3),{name:lt.POSITION,semantic:lt.POSITION,typedArray:n,isQuantized:!1,componentDatatype:q.FLOAT,type:Gt.VEC3};if(u(t.POSITION_QUANTIZED)){n=e.getPropertyArray("POSITION_QUANTIZED",q.UNSIGNED_SHORT,3);let i=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",q.FLOAT,3);if(!u(i))throw new ae("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let r=65535,o=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",q.FLOAT,3);if(!u(o))throw new ae("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");return{name:lt.POSITION,semantic:lt.POSITION,typedArray:n,isQuantized:!0,componentDatatype:q.FLOAT,type:Gt.VEC3,quantizedRange:r,quantizedVolumeOffset:h.unpack(o),quantizedVolumeScale:h.unpack(i),quantizedComponentDatatype:q.UNSIGNED_SHORT,quantizedType:Gt.VEC3}}}function I$e(e){let t=e.json,n;if(u(t.RGBA))return n=e.getPropertyArray("RGBA",q.UNSIGNED_BYTE,4),{name:lt.COLOR,semantic:lt.COLOR,setIndex:0,typedArray:n,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC4,normalized:!0,isRGB565:!1,isTranslucent:!0};if(u(t.RGB))return n=e.getPropertyArray("RGB",q.UNSIGNED_BYTE,3),{name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC3,normalized:!0,isRGB565:!1,isTranslucent:!1};if(u(t.RGB565))return n=e.getPropertyArray("RGB565",q.UNSIGNED_SHORT,1),{name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n,componentDatatype:q.FLOAT,type:Gt.VEC3,normalized:!1,isRGB565:!0,isTranslucent:!1};if(u(t.CONSTANT_RGBA)){let i=e.getGlobalProperty("CONSTANT_RGBA",q.UNSIGNED_BYTE,4),r=i[3],o=z.fromBytes(i[0],i[1],i[2],r),s=r<255;return{name:lt.COLOR,semantic:lt.COLOR,setIndex:0,constantColor:o,componentDatatype:q.FLOAT,type:Gt.VEC4,isQuantized:!1,isTranslucent:s}}}function R$e(e){let t=e.json,n;if(u(t.NORMAL))return n=e.getPropertyArray("NORMAL",q.FLOAT,3),{name:lt.NORMAL,semantic:lt.NORMAL,typedArray:n,octEncoded:!1,octEncodedZXY:!1,componentDatatype:q.FLOAT,type:Gt.VEC3};if(u(t.NORMAL_OCT16P))return n=e.getPropertyArray("NORMAL_OCT16P",q.UNSIGNED_BYTE,2),{name:lt.NORMAL,semantic:lt.NORMAL,typedArray:n,octEncoded:!0,octEncodedZXY:!1,quantizedRange:(1<<8)-1,quantizedType:Gt.VEC2,quantizedComponentDatatype:q.UNSIGNED_BYTE,componentDatatype:q.FLOAT,type:Gt.VEC3}}function O$e(e){let t=e.json;if(u(t.BATCH_ID)){let n=e.getPropertyArray("BATCH_ID",q.UNSIGNED_SHORT,1);return{name:lt.FEATURE_ID,semantic:lt.FEATURE_ID,setIndex:0,typedArray:n,componentDatatype:q.fromTypedArray(n),type:Gt.SCALAR}}}var UV=Kme;var M$e=fn.Components,L$e=fn.Scene,N$e=fn.Node,F$e=fn.Primitive,B$e=fn.Attribute,Zme=fn.Quantization,k$e=fn.FeatureIdAttribute,V$e=fn.Material,U$e=fn.MetallicRoughness;function zy(e){e=y(e,y.EMPTY_OBJECT);let t=e.arrayBuffer,n=y(e.byteOffset,0);this._arrayBuffer=t,this._byteOffset=n,this._loadAttributesFor2D=y(e.loadAttributesFor2D,!1),this._parsedContent=void 0,this._decodePromise=void 0,this._decodedAttributes=void 0,this._promise=void 0,this._error=void 0,this._state=It.UNLOADED,this._buffers=[],this._components=void 0,this._transform=M.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._tileset=e.tileset,this._tile=e.tile,this._resource=e.resource}u(Object.create)&&(zy.prototype=Object.create(Li.prototype),zy.prototype.constructor=zy);Object.defineProperties(zy.prototype,{cacheKey:{get:function(){}},components:{get:function(){return this._components}},transform:{get:function(){return this._transform}}});zy.prototype.load=function(){if(u(this._promise))return this._promise;this._parsedContent=UV.parse(this._arrayBuffer,this._byteOffset,this._tileset,this._tile,this._resource),(this._tilesetVersion==="2.1"||this._tilesetVersion==="2.2")&&(this._parsedContent.batchTableJson=this._attBatchTable?.batchTableJson,this._parsedContent.batchTableBinary=this._attBatchTable?.batchTableBinary),this._state=It.PROCESSING,this._promise=Promise.resolve(this)};zy.prototype.process=function(e){if(u(this._error)){let t=this._error;throw this._error=void 0,t}if(this._state===It.READY)return!0;if(this._state===It.PROCESSING){if(u(this._decodePromise))return!1;this._decodePromise=z$e(this,e.context)}return!1};function z$e(e,t){let i=e._parsedContent.draco,r;if(u(i)?r=Sp.decodePointCloud(i,t):r=Promise.resolve(),!!u(r))return e._decodePromise=r,r.then(function(o){if(!e.isDestroyed())return u(o)&&H$e(e,i,o),J$e(e,t),e._state=It.READY,e}).catch(function(o){e.unload(),e._state=It.FAILED;let s="Failed to load Draco pnts";e._error=e.getError(s,o)})}function H$e(e,t,n){e._state=It.READY;let i=e._parsedContent,r;if(u(n.POSITION)){if(r={name:"POSITION",semantic:lt.POSITION,typedArray:n.POSITION.array,componentDatatype:q.FLOAT,type:Gt.VEC3,isQuantized:!1},u(n.POSITION.data.quantization)){let a=n.POSITION.data.quantization,c=a.range,l=h.fromElements(c,c,c),f=h.unpack(a.minValues),d=(1<<a.quantizationBits)-1;r.isQuantized=!0,r.quantizedRange=d,r.quantizedVolumeOffset=f,r.quantizedVolumeScale=l,r.quantizedComponentDatatype=d<=255?q.UNSIGNED_BYTE:q.UNSIGNED_SHORT,r.quantizedType=Gt.VEC3}i.positions=r}if(u(n.NORMAL)){if(r={name:"NORMAL",semantic:lt.NORMAL,typedArray:n.NORMAL.array,componentDatatype:q.FLOAT,type:Gt.VEC3,isQuantized:!1,octEncoded:!1,octEncodedZXY:!1},u(n.NORMAL.data.quantization)){let a=(1<<n.NORMAL.data.quantization.quantizationBits)-1;r.quantizedRange=a,r.octEncoded=!0,r.octEncodedZXY=!0,r.quantizedComponentDatatype=q.UNSIGNED_BYTE,r.quantizedType=Gt.VEC2}i.normals=r}if(u(n.RGBA)?i.colors={name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n.RGBA.array,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC4,normalized:!0,isTranslucent:!0}:u(n.RGB)&&(i.colors={name:"COLOR",semantic:lt.COLOR,setIndex:0,typedArray:n.RGB.array,componentDatatype:q.UNSIGNED_BYTE,type:Gt.VEC3,normalized:!0,isTranslucent:!1}),u(n.BATCH_ID)){let a=n.BATCH_ID.array;i.batchIds={name:"_FEATURE_ID",semantic:lt.FEATURE_ID,setIndex:0,typedArray:a,componentDatatype:q.fromTypedArray(a),type:Gt.SCALAR}}let o=i.batchTableJson,s=t.batchTableProperties;for(let a in s)if(s.hasOwnProperty(a)){let c=n[a];u(o)||(o={}),i.hasDracoBatchTable=!0;let l=c.data;o[a]={byteOffset:l.byteOffset,type:G$e(l.componentsPerAttribute),componentType:W$e(l.componentDatatype),typedArray:c.array}}i.batchTableJson=o}function G$e(e){switch(e){case 1:return"SCALAR";case 2:return"VEC2";case 3:return"VEC3";case 4:return"VEC4"}}function W$e(e){switch(e){case J.BYTE:return"BYTE";case J.UNSIGNED_BYTE:return"UNSIGNED_BYTE";case J.SHORT:return"SHORT";case J.UNSIGNED_SHORT:return"UNSIGNED_SHORT";case J.INT:return"INT";case J.UNSIGNED_INT:return"UNSIGNED_INT";case J.DOUBLE:return"DOUBLE";case J.FLOAT:return"FLOAT"}}function MP(e,t,n){let i=t.typedArray,r;if(t.octEncoded&&(r=new Zme,r.octEncoded=t.octEncoded,r.octEncodedZXY=t.octEncodedZXY,r.normalizationRange=t.quantizedRange,r.type=t.quantizedType,r.componentDatatype=t.quantizedComponentDatatype),t.isQuantized){r=new Zme;let a=t.quantizedRange;r.normalizationRange=a,r.quantizedVolumeOffset=h.ZERO;let c=t.quantizedVolumeScale;r.quantizedVolumeDimensions=c,r.quantizedVolumeStepSize=h.divideByScalar(c,a,new h),r.componentDatatype=t.quantizedComponentDatatype,r.type=t.quantizedType}let o=new B$e;if(o.name=t.name,o.semantic=t.semantic,o.setIndex=t.setIndex,o.componentDatatype=t.componentDatatype,o.type=t.type,o.normalized=y(t.normalized,!1),o.min=t.min,o.max=t.max,o.quantization=r,t.isRGB565&&(i=xn.decodeRGB565(i)),u(t.constantColor)){let a=new Array(4);o.constant=z.pack(t.constantColor,a)}else{let a=et.createVertexBuffer({typedArray:i,context:n,usage:Oe.STATIC_DRAW});a.vertexArrayDestroyable=!1,e._buffers.push(a),o.buffer=a}let s=e._loadAttributesFor2D;return o.semantic===lt.POSITION&&s&&(o.typedArray=i),o}var $me,zV;function j$e(e){if(!u(zV)){$me=new Qme.default(0),zV=new Array(e);for(let t=0;t<e;++t)zV[t]=$me.random()}return zV}var q$e=new h,Y$e=new h,X$e=new h;function K$e(e){let t=e.typedArray,n=20,i=t.length/3,r=Math.min(i,n),o=j$e(n),s=Number.MAX_VALUE,a=-Number.MAX_VALUE,c=h.fromElements(s,s,s,q$e),l=h.fromElements(a,a,a,Y$e),f,d,p;if(e.isQuantized)c=h.ZERO,l=e.quantizedVolumeScale;else for(f=0;f<r;++f)d=Math.floor(o[f]*i),p=h.unpack(t,d*3,X$e),h.minimumByComponent(c,p,c),h.maximumByComponent(l,p,l);e.min=h.clone(c),e.max=h.clone(l)}var Z$e={name:lt.COLOR,semantic:lt.COLOR,setIndex:0,constantColor:z.DARKGRAY,componentDatatype:q.FLOAT,type:Gt.VEC4,isQuantized:!1,isTranslucent:!1};function $$e(e,t,n){let i=[],r,o=t.positions;return u(o)&&(K$e(o),r=MP(e,o,n),r.count=t.pointsLength,i.push(r)),u(t.normals)&&(r=MP(e,t.normals,n),i.push(r)),u(t.colors)?(r=MP(e,t.colors,n),i.push(r)):(r=MP(e,Z$e,n),i.push(r)),u(t.batchIds)&&(r=MP(e,t.batchIds,n),i.push(r)),i}function Q$e(e,t,n){let i=e.batchLength,r=e.pointsLength,o=e.batchTableBinary,s=!u(e.batchIds);if(u(o)||e.hasDracoBatchTable||e.batchTableJson){let a=y(i,r);if(n==="2.1"||n==="2.2")return Id({count:a,batchTable:e.batchTableJson,binaryBody:o,parseAsPropertyAttributes:s,customAttributeOutput:t,tilesetVersion:n});if(n==="2.0")return Pp({count:a,batchTable:e.batchTableJson,binaryBody:o,parseAsPropertyAttributes:s,customAttributeOutput:t})}return new ho({schema:{},propertyTables:[]})}function J$e(e,t){let n=e._parsedContent,i=e._tilesetVersion,r=new U$e;r.metallicFactor=0,r.roughnessFactor=.9;let o=new V$e;o.metallicRoughness=r;let s=n.colors;u(s)&&s.isTranslucent&&(o.alphaMode=Bh.BLEND);let a=!u(n.normals);o.unlit=a;let c=new F$e;if(c.attributes=$$e(e,n,t),c.primitiveType=Fe.POINTS,c.material=o,u(n.batchIds)){let m=new k$e;m.propertyTableId=0,m.setIndex=0,m.positionalLabel="featureId_0",c.featureIds.push(m)}let l=new N$e;l.index=0,l.primitives=[c];let f=new L$e;f.nodes=[l],f.upAxis=wn.Z,f.forwardAxis=wn.X;let d=new M$e;d.scene=f,d.nodes=[l];let p=[];d.structuralMetadata=Q$e(n,p,i),p.length>0&&eQe(e,c,p,t),u(n.rtcCenter)&&(d.transform=M.multiplyByTranslation(d.transform,n.rtcCenter,d.transform));let _=n.positions;u(_)&&_.isQuantized&&(d.transform=M.multiplyByTranslation(d.transform,_.quantizedVolumeOffset,d.transform)),e._components=d,e._parsedContent=void 0,e._arrayBuffer=void 0}function eQe(e,t,n,i){let r=t.attributes,o=n.length;for(let s=0;s<o;s++){let a=n[s],c=et.createVertexBuffer({typedArray:a.typedArray,context:i,usage:Oe.STATIC_DRAW});c.vertexArrayDestroyable=!1,e._buffers.push(c),a.buffer=c,a.typedArray=void 0,r.push(a)}t.propertyAttributeIds=[0]}zy.prototype.unload=function(){let e=this._buffers;for(let t=0;t<e.length;t++)e[t].destroy();e.length=0,this._components=void 0,this._parsedContent=void 0,this._arrayBuffer=void 0};var HV=zy;var zS={};zS._deprecationWarning=uo;var Hy=Uint32Array.BYTES_PER_ELEMENT;zS.parse=function(e,t,n,i){t=y(t,0);let o=new DataView(e),s=new Uint8Array(e),a=0,c=0,l=0,f=0,d=o.getUint32(t,!0);t+=Hy;let p;if(d>0){let E=Vo(s,t,d);t+=d,p=JSON.parse(E),i.tileset.loadChildTileSet(n,p,i)}t+=Hy,a=o.getUint32(t,!0),t+=Hy,c=o.getUint32(t,!0),t+=Hy,l=o.getUint32(t,!0),t+=Hy,f=o.getUint32(t,!0),t+=Hy;let _;d=o.getUint32(t,!0),l>=570425344?(t-=Hy*2,_=a,l=c,f=0,a=0,c=0,zS._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchLength] [batchTableByteLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel.")):f>=570425344&&(t-=Hy,_=l,l=a,f=c,a=0,c=0,zS._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchTableJsonByteLength] [batchTableBinaryByteLength] [batchLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel."));let m;a===0?m={BATCH_LENGTH:y(_,0)}:(m=dr(s,t,a),t+=a);let x=new Uint8Array(e,t,c);t+=c;let b,T;l>0&&(b=dr(s,t,l),t+=l,f>0&&(T=new Uint8Array(e,t,f),T=new Uint8Array(T),t+=f));let C=e.byteLength-t,A;return t%4===0?A=new Uint8Array(e,t,C):(zS._deprecationWarning("b3dm-glb-unaligned","The embedded glb is not aligned to a 4-byte boundary."),A=new Uint8Array(s.subarray(t,t+C))),{batchLength:_,featureTableJson:m,featureTableBinary:x,batchTableJson:b,batchTableBinary:T,gltf:A}};var GV=zS;var WT={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},tQe=fn.FeatureIdAttribute;function Gy(e){e=y(e,y.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,r=y(e.byteOffset,0),o=y(e.releaseGltfJson,!1),s=y(e.asynchronous,!0),a=y(e.incrementallyLoadTextures,!0),c=y(e.upAxis,wn.Y),l=y(e.forwardAxis,wn.X),f=y(e.loadAttributesAsTypedArray,!1),d=y(e.loadAttributesFor2D,!1),p=y(e.enablePick,!1),_=y(e.loadIndicesForWireframe,!1),m=y(e.loadPrimitiveOutline,!0),x=y(e.loadForClassification,!1);n=u(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=r,this._releaseGltfJson=o,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=f,this._loadAttributesFor2D=d,this._enablePick=p,this._loadIndicesForWireframe=_,this._loadPrimitiveOutline=m,this._loadForClassification=x,this._state=WT.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=M.IDENTITY,this._tilesetVersion=e.tilesetVersion,this._tile=e.tile,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}u(Object.create)&&(Gy.prototype=Object.create(Li.prototype),Gy.prototype.constructor=Gy);Object.defineProperties(Gy.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});Gy.prototype.load=function(){if(u(this._promise))return this._promise;let e=GV.parse(this._arrayBuffer,this._byteOffset,this._baseResource,this._tile),t=e.featureTableJson,n=e.featureTableBinary,i=e.batchTableJson,r=e.batchTableBinary,o=new Ta(t,n);this._tilesetVersion==="1.0"&&(this._batchLength=o.getGlobalProperty("BATCH_LENGTH"));let s=o.getGlobalProperty("RTC_CENTER",q.FLOAT,3);if(u(s)&&(this._transform=M.fromTranslation(h.fromArray(s))),u(i)){if(i.hasOwnProperty("name")){i.OID=[];let l=i.name;for(let f=0;f<l.length;f++){let d=l[f].split("_"),p=parseInt(d[2]);i.OID.push(p)}}this._batchTable={json:i,binary:r}}let a=new il({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=a,this._state=WT.LOADING;let c=this;return this._promise=a.load().then(function(){if(!c.isDestroyed())return c._state=WT.PROCESSING,c}).catch(function(l){if(!c.isDestroyed())return nQe(c,l)}),this._promise};function nQe(e,t){return e.unload(),e._state=WT.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}Gy.prototype.process=function(e){if(this._state===WT.READY)return!0;if(this._state!==WT.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=M.multiplyTransformation(this._transform,n.transform,n.transform),iQe(this,n),this._components=n,this._arrayBuffer=void 0,this._state=WT.READY,!0};function iQe(e,t){let n=e._batchTable,i=e._batchLength,r=e._tilesetVersion;if(i===0)return;let o;if(u(n?.json))o=Id({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:r});else{let c=new ms({name:xa.BATCH_TABLE_CLASS_NAME,count:i});o=new ho({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)Jme(s[c]);t.structuralMetadata=o}function Jme(e){let t=e.children.length;for(let i=0;i<t;i++)Jme(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let r=e.primitives[i],o=hn.getAttributeBySemantic(r,lt.FEATURE_ID);if(u(o)){o.setIndex=0;let s=new tQe;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",r.featureIds.push(s)}}}Gy.prototype.unload=function(){u(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var WV=Gy;var rQe={FILL:0,SILHOUETTE:1,ALL:2},Op=Object.freeze(rQe);function ki(e){e=y(e,y.EMPTY_OBJECT),this._loader=e.loader,this._resource=e.resource,this.type=y(e.type,Co.GLTF),this.modelMatrix=M.clone(y(e.modelMatrix,M.IDENTITY)),this._modelMatrix=M.clone(this.modelMatrix),this._scale=y(e.scale,1),this._minimumPixelSize=y(e.minimumPixelSize,0),this._maximumScale=e.maximumScale,this._clampedScale=u(this._maximumScale)?Math.min(this._scale,this._maximumScale):this._scale,this._computedScale=this._clampedScale,this._updateModelMatrix=!1,this.referenceMatrix=void 0,this._iblReferenceFrameMatrix=$.clone($.IDENTITY),this._resourcesLoaded=!1,this._drawCommandsBuilt=!1,this._ready=!1,this._customShader=e.customShader,this._content=e.content,this._texturesLoaded=!1,this._defaultTexture=void 0,this._activeAnimations=new P4(this),this._clampAnimations=y(e.clampAnimations,!0),this._userAnimationDirty=!1,this._id=e.id,this._idDirty=!1,this._color=z.clone(e.color),this._backupColor=z.clone(e.color),this._colorBlendMode=y(e.colorBlendMode,zl.HIGHLIGHT),this._colorBlendAmount=y(e.colorBlendAmount,.5);let t=y(e.silhouetteColor,z.RED);this._silhouetteColor=z.clone(t),this._silhouetteSize=y(e.silhouetteSize,0),this._silhouetteDirty=!1,this._silhouetteId=void 0,this._cull=y(e.cull,!0),this._opaquePass=y(e.opaquePass,Ee.OPAQUE),this._allowPicking=y(e.allowPicking,!0),this._show=y(e.show,!0),this._style=void 0,this._styleDirty=!1,this._styleCommandsNeeded=void 0;let n=y(e.featureIdLabel,"featureId_0");typeof n=="number"&&(n=`featureId_${n}`),this._featureIdLabel=n;let i=y(e.instanceFeatureIdLabel,"instanceFeatureId_0");typeof i=="number"&&(i=`instanceFeatureId_${i}`),this._instanceFeatureIdLabel=i,this._featureTables=[],this._featureTableId=void 0,this._featureTableIdDirty=!0,this._pipelineResources=[],this._modelResources=[],this._pickIds=[],this._boundingSphere=new ce,this._initialRadius=void 0,this._heightReference=y(e.heightReference,rt.NONE),this._heightDirty=this._heightReference!==rt.NONE,this._removeUpdateHeightCallback=void 0,this._enableVerticalExaggeration=y(e.enableVerticalExaggeration,!0),this._hasVerticalExaggeration=!1,this._clampedModelMatrix=void 0;let r=e.scene;u(r)&&u(r.terrainProviderChanged)&&(this._terrainProviderChangedCallback=r.terrainProviderChanged.addEventListener(()=>{this._heightDirty=!0})),this._scene=r,this._distanceDisplayCondition=e.distanceDisplayCondition;let o=new Gh(e.pointCloudShading);this._pointCloudShading=o,this._attenuation=o.attenuation,this._pointCloudBackFaceCulling=o.backFaceCulling;let s=e.clippingPlanes;u(s)&&s.owner===void 0?So.setOwner(s,this,"_clippingPlanes"):this._clippingPlanes=s,this._clippingPlanesState=0,this._clippingPlanesMatrix=M.clone(M.IDENTITY);let a=e.clippingPolygons;u(a)&&a.owner===void 0?xf.setOwner(a,this,"_clippingPolygons"):this._clippingPolygons=a,this._clippingPolygonsState=0,this._lightColor=h.clone(e.lightColor),this._imageBasedLighting=u(e.imageBasedLighting)?e.imageBasedLighting:new Q0,this._shouldDestroyImageBasedLighting=!u(e.imageBasedLighting),this._backFaceCulling=y(e.backFaceCulling,!0),this._backFaceCullingDirty=!1,this._shadows=y(e.shadows,Wn.ENABLED),this._shadowsDirty=!1,this._debugShowBoundingVolumeDirty=!1,this._debugShowBoundingVolume=y(e.debugShowBoundingVolume,!1),this._enableDebugWireframe=y(e.enableDebugWireframe,!1),this._enableShowOutline=y(e.enableShowOutline,!0),this._debugWireframe=y(e.debugWireframe,!1),this._debugWireframe===!0&&this._enableDebugWireframe===!1&&this.type===Co.GLTF&&Bt("model-debug-wireframe-ignored","enableDebugWireframe must be set to true in Model.fromGltf, otherwise debugWireframe will be ignored.");let c=e.credit;typeof c=="string"&&(c=new Wt(c)),this._credits=[],this._credit=c,this._resourceCredits=[],this._gltfCredits=[],this._showCreditsOnScreen=y(e.showCreditsOnScreen,!1),this._showCreditsOnScreenDirty=!0,this._splitDirection=y(e.splitDirection,us.NONE),this._swipeInverse=!1,this._swiper={},this._enableShowOutline=y(e.enableShowOutline,!0),this.showOutline=y(e.showOutline,!0),this.outlineColor=y(e.outlineColor,z.BLACK),this._classificationType=e.classificationType,this._statistics=new DV,this._sceneMode=void 0,this._projectTo2D=y(e.projectTo2D,!1),this._enablePick=y(e.enablePick,!1),this._fogRenderable=void 0,this._skipLevelOfDetail=!1,this._ignoreCommands=y(e.ignoreCommands,!1),this._errorEvent=new be,this._readyEvent=new be,this._texturesReadyEvent=new be,this._sceneGraph=void 0,this._nodesByName={},this.pickObject=e.pickObject,this._fillClip=y(e.fillClip,!1),this._hasSectionGeometry=y(e.hasSectionGeometry,!1),this._clippingFillImage=y(e.clippingFillImage,void 0),this._lightState={pointLightNum:0,directionalLigthNum:0,spotLightNum:0},this._renderMode=y(e.renderMode,Op.FILL),this._deleteVerticalPlane=y(e.deleteVerticalPlane,!1),this._hasSectionGeometry=this.content?.tileset._hasSectionGeometry,this._clippingGeometries=e.clippingGeometries,this._brightness=0,this._modelUpAxis=wn.Y,this._exposure=0,this._contrast=1,this._hue=0,this._saturation=0,this._gamma=1,this._nodeCommands=[]}function xK(e,t){if(e._errorEvent.numberOfListeners>0){e._errorEvent.raiseEvent(t);return}console.log(t)}function oQe(e,t){let n=e._featureTables,i=t.propertyTables,r=i.length;for(let o=0;o<r;o++){let s=i[o],a=new R4({model:e,propertyTable:s});n.push(a)}return n}function sQe(e,t){let n=t._featureIdLabel,i=t._instanceFeatureIdLabel,r,o,s,a;for(r=0;r<e.nodes.length;r++)if(a=e.nodes[r],u(a.instances)&&(s=hn.getFeatureIdsByLabel(a.instances.featureIds,i),u(s)&&u(s.propertyTableId)))return s.propertyTableId;for(r=0;r<e.nodes.length;r++)for(a=e.nodes[r],o=0;o<a.primitives.length;o++){let c=a.primitives[o],l=hn.getFeatureIdsByLabel(c.featureIds,n);if(u(l))return l.propertyTableId}if(t._featureTables.length===1)return 0}function CK(e,t){if(!u(e)&&!u(t))return!1;if(u(e)!==u(t))return!0;let n=e.alpha,i=t.alpha;return Math.floor(n)!==Math.floor(i)||Math.ceil(n)!==Math.ceil(i)}Object.defineProperties(ki.prototype,{ready:{get:function(){return this._ready}},errorEvent:{get:function(){return this._errorEvent}},readyEvent:{get:function(){return this._readyEvent}},incrementallyLoadTextures:{get:function(){return y(this._loader.incrementallyLoadTextures,!1)}},texturesReadyEvent:{get:function(){return this._texturesReadyEvent}},loader:{get:function(){return this._loader}},statistics:{get:function(){return this._statistics}},activeAnimations:{get:function(){return this._activeAnimations}},clampAnimations:{get:function(){return this._clampAnimations},set:function(e){this._clampAnimations=e}},cull:{get:function(){return this._cull}},opaquePass:{get:function(){return this._opaquePass}},pointCloudShading:{get:function(){return this._pointCloudShading},set:function(e){e!==this._pointCloudShading&&this.resetDrawCommands(),this._pointCloudShading=e}},customShader:{get:function(){return this._customShader},set:function(e){e!==this._customShader&&this.resetDrawCommands(),this._customShader=e}},sceneGraph:{get:function(){return this._sceneGraph}},content:{get:function(){return this._content}},heightReference:{get:function(){return this._heightReference},set:function(e){e!==this._heightReference&&(this._heightDirty=!0),this._heightReference=e}},distanceDisplayCondition:{get:function(){return this._distanceDisplayCondition},set:function(e){this._distanceDisplayCondition=en.clone(e,this._distanceDisplayCondition)}},structuralMetadata:{get:function(){return this._sceneGraph.components.structuralMetadata}},featureTableId:{get:function(){return this._featureTableId},set:function(e){this._featureTableId=e}},featureTables:{get:function(){return this._featureTables},set:function(e){this._featureTables=e}},id:{get:function(){return this._id},set:function(e){e!==this._id&&(this._idDirty=!0),this._id=e}},allowPicking:{get:function(){return this._allowPicking}},style:{get:function(){return this._style},set:function(e){this._style=e,this._styleDirty=!0}},color:{get:function(){return this._color},set:function(e){CK(e,this._color)&&this.resetDrawCommands(),this._color=z.clone(e,this._color)}},colorBlendMode:{get:function(){return this._colorBlendMode},set:function(e){this._colorBlendMode=e}},colorBlendAmount:{get:function(){return this._colorBlendAmount},set:function(e){this._colorBlendAmount=e}},silhouetteColor:{get:function(){return this._silhouetteColor},set:function(e){if(!z.equals(e,this._silhouetteColor)){let t=CK(e,this._silhouetteColor);this._silhouetteDirty=this._silhouetteDirty||t}this._silhouetteColor=z.clone(e,this._silhouetteColor)}},silhouetteSize:{get:function(){return this._silhouetteSize},set:function(e){if(e!==this._silhouetteSize){let t=this._silhouetteSize,n=e>0&&t===0||e===0&&t>0;this._silhouetteDirty=this._silhouetteDirty||n,this._backFaceCullingDirty=this._backFaceCullingDirty||n}this._silhouetteSize=e}},boundingSphere:{get:function(){let e=u(this._clampedModelMatrix)?this._clampedModelMatrix:this.modelMatrix;return npe(this,e),this._boundingSphere}},localBoundingSphere:{get:function(){let e=u(this._maximumScale)?Math.min(this._scale,this._maximumScale):this._scale,t=this._boundingSphere.clone();return t.center=h.multiplyByScalar(this._sceneGraph.boundingSphere.center,e,t.center),t.radius=this._initialRadius*this._clampedScale,t}},debugShowBoundingVolume:{get:function(){return this._debugShowBoundingVolume},set:function(e){this._debugShowBoundingVolume!==e&&(this._debugShowBoundingVolumeDirty=!0),this._debugShowBoundingVolume=e}},debugWireframe:{get:function(){return this._debugWireframe},set:function(e){this._debugWireframe!==e&&this.resetDrawCommands(),this._debugWireframe=e,this._debugWireframe===!0&&this._enableDebugWireframe===!1&&this.type===Co.GLTF&&Bt("model-debug-wireframe-ignored","enableDebugWireframe must be set to true in Model.fromGltfAsync, otherwise debugWireframe will be ignored.")}},show:{get:function(){return this._show},set:function(e){this._show=e}},featureIdLabel:{get:function(){return this._featureIdLabel},set:function(e){typeof e=="number"&&(e=`featureId_${e}`),e!==this._featureIdLabel&&(this._featureTableIdDirty=!0),this._featureIdLabel=e}},instanceFeatureIdLabel:{get:function(){return this._instanceFeatureIdLabel},set:function(e){typeof e=="number"&&(e=`instanceFeatureId_${e}`),e!==this._instanceFeatureIdLabel&&(this._featureTableIdDirty=!0),this._instanceFeatureIdLabel=e}},clippingPlanes:{get:function(){return this._clippingPlanes},set:function(e){e!==this._clippingPlanes&&(So.setOwner(e,this,"_clippingPlanes"),this.resetDrawCommands())}},clippingGeometries:{get:function(){return this._clippingGeometries},set:function(e){this._clippingGeometries!==e&&(this._clippingGeometries=e,this.resetDrawCommands())}},clippingPolygons:{get:function(){return this._clippingPolygons},set:function(e){e!==this._clippingPolygons&&(xf.setOwner(e,this,"_clippingPolygons"),this.resetDrawCommands())}},enableVerticalExaggeration:{get:function(){return this._enableVerticalExaggeration},set:function(e){e!==this._enableVerticalExaggeration&&this.resetDrawCommands(),this._enableVerticalExaggeration=e}},hasVerticalExaggeration:{get:function(){return this._hasVerticalExaggeration}},lightColor:{get:function(){return this._lightColor},set:function(e){u(e)!==u(this._lightColor)&&this.resetDrawCommands(),this._lightColor=h.clone(e,this._lightColor)}},imageBasedLighting:{get:function(){return this._imageBasedLighting},set:function(e){e!==this._imageBasedLighting&&(this._shouldDestroyImageBasedLighting&&!this._imageBasedLighting.isDestroyed()&&this._imageBasedLighting.destroy(),this._imageBasedLighting=e,this._shouldDestroyImageBasedLighting=!1,this.resetDrawCommands())}},backFaceCulling:{get:function(){return this._backFaceCulling},set:function(e){e!==this._backFaceCulling&&(this._backFaceCullingDirty=!0),this._backFaceCulling=e}},scale:{get:function(){return this._scale},set:function(e){e!==this._scale&&(this._updateModelMatrix=!0),this._scale=e}},computedScale:{get:function(){return this._computedScale}},renderMode:{get:function(){return this._renderMode},set:function(e){this._renderMode=e}},minimumPixelSize:{get:function(){return this._minimumPixelSize},set:function(e){e!==this._minimumPixelSize&&(this._updateModelMatrix=!0),this._minimumPixelSize=e}},maximumScale:{get:function(){return this._maximumScale},set:function(e){e!==this._maximumScale&&(this._updateModelMatrix=!0),this._maximumScale=e}},shadows:{get:function(){return this._shadows},set:function(e){e!==this._shadows&&(this._shadowsDirty=!0),this._shadows=e}},credit:{get:function(){return this._credit}},showCreditsOnScreen:{get:function(){return this._showCreditsOnScreen},set:function(e){this._showCreditsOnScreen!==e&&(this._showCreditsOnScreenDirty=!0),this._showCreditsOnScreen=e}},splitDirection:{get:function(){return this._splitDirection},set:function(e){this._splitDirection!==e&&this.resetDrawCommands(),this._splitDirection=e}},rollerShutterRegion:{get:function(){return this._rollerShutterRegion},set:function(e){this._rollerShutterRegion=e}},rollerShutterSpyglassRegion:{get:function(){return this._rollerShutterSpyglassRegion},set:function(e){this._rollerShutterSpyglassRegion=e}},rollerShutterPolygonRegion:{get:function(){return this._rollerShutterPolygonRegion},set:function(e){this._rollerShutterPolygonRegion=e}},swipeInverse:{get:function(){return this._swipeInverse},set:function(e){this._swipeInverse=e}},swiper:{get:function(){return this._swiper},set:function(e){this._swiper=e}},classificationType:{get:function(){return this._classificationType}},pickIds:{get:function(){return this._pickIds}},styleCommandsNeeded:{get:function(){return this._styleCommandsNeeded}}});ki.prototype.getNode=function(e){return this._nodesByName[e]};ki.prototype.setArticulationStage=function(e,t){this._sceneGraph.setArticulationStage(e,t)};ki.prototype.applyArticulations=function(){this._sceneGraph.applyArticulations()};ki.prototype.getExtension=function(e){return this._loader.components.extensions[e]};ki.prototype.makeStyleDirty=function(){this._styleDirty=!0};ki.prototype.resetDrawCommands=function(){this._drawCommandsBuilt=!1};var aQe=new M,cQe=new $,lQe=new M;ki.prototype.update=function(e){let t=!1;try{t=uQe(this,e)}catch(n){if(!this._loader.incrementallyLoadTextures&&n.name==="TextureError")xK(this,n);else{let i=hn.getError("model",this._resource,n);xK(this,i)}}if(fQe(this,e),dQe(this,e),!this._resourcesLoaded&&t){this._resourcesLoaded=!0;let n=this._loader.components;if(!u(n)){if(this._loader.isUnloaded())return;let o=hn.getError("model",this._resource,new ae("Failed to load model."));xK(o),this._rejectLoad=this._rejectLoad&&this._rejectLoad(o)}let i=n.structuralMetadata;u(i)&&i.propertyTableCount>0&&oQe(this,i);let r=new wV({model:this,modelComponents:n});this._sceneGraph=r,this._gltfCredits=r.components.asset.credits}if(!(!this._resourcesLoaded||e.mode===oe.MORPHING)){if(hQe(this),mQe(this),pQe(this,e),_Qe(this),gQe(this,e),yQe(this,e),xQe(this,e),bQe(this,e),TQe(this,e),CQe(this,e),AQe(this,e),vQe(this,e),wQe(this,e),DQe(this,e),IQe(this,e),PQe(this,e),RQe(this,e),OQe(this,e),this._defaultTexture=e.context.defaultTexture,MQe(this,e),LQe(this,e),NQe(this),FQe(this,e),UQe(this,e),SQe(this,e),!this._ready){e.afterRender.push(()=>{this._ready=!0,this._readyEvent.raiseEvent(this)});return}this._loader.incrementallyLoadTextures&&!this._texturesLoaded&&this._loader.texturesLoaded&&(this.resetDrawCommands(),this._texturesLoaded=!0,this._texturesReadyEvent.raiseEvent(this)),kQe(this),zQe(this,e),HQe(this),EQe(this,e),GQe(this,e)}};function uQe(e,t){return!e._resourcesLoaded||e._loader.incrementallyLoadTextures&&!e._texturesLoaded?(t.afterRender.push(()=>!0),e._loader.process(t)):!0}function fQe(e,t){u(e._customShader)&&e._customShader.update(t)}function dQe(e,t){e._imageBasedLighting.update(t),e._imageBasedLighting.shouldRegenerateShaders&&e.resetDrawCommands()}function hQe(e){if(!e._featureTableIdDirty)return;e._featureTableIdDirty=!1;let t=e._sceneGraph.components,n=t.structuralMetadata;u(n)&&n.propertyTableCount>0&&(e.featureTableId=sQe(t,e),e._styleDirty=!0,e.resetDrawCommands())}function mQe(e){e._styleDirty&&(e.applyStyle(e._style),e._styleDirty=!1)}function pQe(e,t){let n=e._featureTables,i=n.length,r=!1;for(let o=0;o<i;o++)e._content&&e._content.tileset&&e.isFlatten&&n[o].applyFlatten(e._content.tileset._flattenOIds,e._content.tileset.version,t),n[o].update(t),n[o].styleCommandsNeededDirty&&(r=!0);r&&tpe(e)}function tpe(e){let t=e.featureTables[e.featureTableId];e._styleCommandsNeeded=Rp.getStyleCommandsNeeded(t.featuresLength,t.batchTexture.translucentFeaturesLength)}function _Qe(e){let t=e.pointCloudShading;t.attenuation!==e._attenuation&&(e.resetDrawCommands(),e._attenuation=t.attenuation),t.backFaceCulling!==e._pointCloudBackFaceCulling&&(e.resetDrawCommands(),e._pointCloudBackFaceCulling=t.backFaceCulling)}function gQe(e,t){e._silhouetteDirty&&(ipe(t)&&e.resetDrawCommands(),e._silhouetteDirty=!1)}function yQe(e,t){let n=e.hasSkipLevelOfDetail(t);n!==e._skipLevelOfDetail&&(e.resetDrawCommands(),e._skipLevelOfDetail=n)}function xQe(e,t){let n=0;e.isClippingEnabled()&&(e._clippingPlanes.owner===e&&e._clippingPlanes.update(t),n=e._clippingPlanes.clippingPlanesState),n!==e._clippingPlanesState&&(e.resetDrawCommands(),e._clippingPlanesState=n,e._clipFillUtil=void 0)}function bQe(e,t){let n=0;e.isClippingPolygonsEnabled()&&(e._clippingPolygons.owner===e&&(e._clippingPolygons.update(t),e._clippingPolygons.queueCommands(t)),n=e._clippingPolygons.clippingPolygonsState),n!==e._clippingPolygonsState&&(e.resetDrawCommands(),e._clippingPolygonsState=n)}function TQe(e,t){t.mode!==e._sceneMode&&(e._projectTo2D?e.resetDrawCommands():e._updateModelMatrix=!0,e._sceneMode=t.mode)}function CQe(e,t){let n=t.fog.enabled&&t.fog.renderable;n!==e._fogRenderable&&(e.resetDrawCommands(),e._fogRenderable=n)}function AQe(e,t){if(e.enableVerticalExaggeration){let n=t.verticalExaggeration!==1;e.hasVerticalExaggeration!==n&&(e.resetDrawCommands(),e._hasVerticalExaggeration=n)}else e.hasVerticalExaggeration&&(e.resetDrawCommands(),e._hasVerticalExaggeration=!1)}function EQe(e,t){e._clippingFillImage=e?.content?.tileset?.clippingFillImage,e._fillClip&&u(e._clipFillUtil)&&(e.isClippingEnabled()||e.isGeometryClipEnabled())&&e._clipFillUtil.update(t)}function SQe(e,t){let n=e?.content?.tileset?._sectionRenders;if(u(n))for(let i=0;i<n.length;i++)n[i].updateModel(t,e)}function vQe(e,t){let n=e?.content?.tileset;u(n)&&u(n._explosionTextureData)&&u(n._explosionIdTexture)&&u(n._explosionDirectionTexture)&&e.resetDrawCommands()}function wQe(e,t){let n=t.lightManager,i=!1;e._lightState.pointLightNum!==n.pointLights.length&&(i=!0,e._lightState.pointLightNum=n.pointLights.length),e._lightState.directionalLigthNum!==n.directionalLights.length&&(i=!0,e._lightState.directionalLigthNum=n.directionalLights.length),e._lightState.spotLightNum!==n.spotLights.length&&(i=!0,e._lightState.spotLightNum=n.spotLights.length),i&&e.resetDrawCommands()}function DQe(e,t){let n=e?.content?.tileset;u(n)&&n._enableStretch&&n._stretchFactor!==1&&e.resetDrawCommands()}function PQe(e,t){let n=e?.content?.tileset;u(n)&&n._deleteVerticalPlane&&(e._deleteVerticalPlane=n._deleteVerticalPlane,e.resetDrawCommands(),n._deleteVerticalPlaneChanged=!1)}function IQe(e,t){let n=e?.content?.tileset;u(n)&&n.swipeEnabled&&e.resetDrawCommands()}function RQe(e,t){let n=e?.content?.tileset;u(n)&&n.isFlatten&&(e._flattenWithId=!!(n._flattenOIds&&n._flattenOIds.length>0),e._modelUpAxis=n._modelUpAxis,e.resetDrawCommands())}function OQe(e,t){let n=e?.content?.tileset;if(n?.version==="2.0"){let r=e?.content?.tile;u(r.nodeColor)&&n._changeNodeColor?z.equals(e._color,r.nodeColor)||(e._color=r.nodeColor,e.resetDrawCommands()):u(e._color)&&!n._changeNodeColor&&!u(e._style)&&(e._color=void 0,e.resetDrawCommands())}}function MQe(e,t){e._drawCommandsBuilt||(e.destroyPipelineResources(),e._sceneGraph.buildDrawCommands(t),e._drawCommandsBuilt=!0)}function LQe(e,t){M.equals(e.modelMatrix,e._modelMatrix)||(e._updateModelMatrix=!0,e._modelMatrix=M.clone(e.modelMatrix,e._modelMatrix))}var Wy=new h,bK=new ue;function NQe(e){if(!e._updateModelMatrix&&!e._heightDirty&&e._minimumPixelSize===0)return;u(e._removeUpdateHeightCallback)&&(e._removeUpdateHeightCallback(),e._removeUpdateHeightCallback=void 0);let t=e._scene;if(!u(t)||e.heightReference===rt.NONE){e._clampedModelMatrix=void 0;return}let n=y(t.ellipsoid,ne.default),i=e.modelMatrix;Wy.x=i[12],Wy.y=i[13],Wy.z=i[14];let r=n.cartesianToCartographic(Wy);u(e._clampedModelMatrix)||(e._clampedModelMatrix=M.clone(i,new M)),e._removeUpdateHeightCallback=t.updateHeight(r,epe(e,n,r),e.heightReference);let o=t.getHeight(r,e.heightReference);if(u(o)){let s=epe(e,n,r);ue.clone(r,bK),bK.height=o,s(bK)}e._heightDirty=!1,e._updateModelMatrix=!0}function FQe(e,t){if(!e._updateModelMatrix&&e._minimumPixelSize===0)return;let n=u(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix;npe(e,n),BQe(e,n,t)}function npe(e,t){e._clampedScale=u(e._maximumScale)?Math.min(e._scale,e._maximumScale):e._scale,e._boundingSphere.center=h.multiplyByScalar(e._sceneGraph.boundingSphere.center,e._clampedScale,e._boundingSphere.center),e._boundingSphere.radius=e._initialRadius*e._clampedScale,e._boundingSphere=ce.transform(e._boundingSphere,t,e._boundingSphere)}function BQe(e,t,n){let i=e.scale;if(e.minimumPixelSize!==0&&!e._projectTo2D){let r=n.context,o=Math.max(r.drawingBufferWidth,r.drawingBufferHeight);M.getTranslation(t,Wy),e._sceneMode!==oe.SCENE3D&&xr.computeActualEllipsoidPosition(n,Wy,Wy);let s=e._boundingSphere.radius,a=WQe(Wy,s,n),c=1/a;Math.min(c*(2*s),o)<e.minimumPixelSize&&(i=e.minimumPixelSize*a/(2*e._initialRadius))}e._computedScale=u(e.maximumScale)?Math.min(e.maximumScale,i):i}function kQe(e){if(!e._idDirty)return;e._idDirty=!1;let t=e._id,n=e._pickIds,i=n.length;for(let r=0;r<i;++r)n[r].object.id=t}var VQe=new $(1,0,0,0,0,1,0,-1,0);function UQe(e,t){let n=u(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix,i=y(e.referenceMatrix,n),r=t.context,o=e._imageBasedLighting;if(o.useSphericalHarmonicCoefficients||o.useSpecularEnvironmentMaps){let s=cQe,a=aQe;a=M.multiply(r.uniformState.view3D,i,a),s=M.getRotation(a,s),s=$.transpose(s,s),e._iblReferenceFrameMatrix=$.multiply(VQe,s,e._iblReferenceFrameMatrix)}if(e.isClippingEnabled()){let s=lQe;s=M.multiply(r.uniformState.view3D,i,s),s=M.multiply(s,e._clippingPlanes.modelMatrix,s),e._clippingPlanesMatrix=M.inverseTranspose(s,e._clippingPlanesMatrix)}}function zQe(e,t){let n=e._sceneGraph;if(e._updateModelMatrix||e._minimumPixelSize!==0){let r=u(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix;n.updateModelMatrix(r,t),e._updateModelMatrix=!1}e._backFaceCullingDirty&&(n.updateBackFaceCulling(e._backFaceCulling),e._backFaceCullingDirty=!1),e._shadowsDirty&&(n.updateShadows(e._shadows),e._shadowsDirty=!1),e._debugShowBoundingVolumeDirty&&(n.updateShowBoundingVolume(e._debugShowBoundingVolume),e._debugShowBoundingVolumeDirty=!1);let i=!1;u(e.classificationType)||(i=e._userAnimationDirty||e._activeAnimations.update(t)),n.update(t,i),e._userAnimationDirty=!1}function HQe(e){if(!e._showCreditsOnScreenDirty)return;e._showCreditsOnScreenDirty=!1,e._credits.length=0;let t=e._showCreditsOnScreen;if(u(e._credit)){let s=Wt.clone(e._credit);s.showOnScreen=s.showOnScreen||t,e._credits.push(s)}let n=e._resourceCredits,i=n.length;for(let s=0;s<i;s++){let a=Wt.clone(n[s]);a.showOnScreen=a.showOnScreen||t,e._credits.push(a)}let r=e._gltfCredits,o=r.length;for(let s=0;s<o;s++){let a=Wt.clone(r[s]);a.showOnScreen=a.showOnScreen||t,e._credits.push(a)}}function GQe(e,t){let n=qQe(e,t),i=e.isInvisible(),r=e.hasSilhouette(t),o=e._show&&e._computedScale!==0&&n&&(!i||r),s=t.passes,a=s.render||s.pick&&e.allowPicking,c=e.content?.tileset._sectionOnly;o&&!e._ignoreCommands&&a&&!c&&(YQe(e,t),e._sceneGraph.pushDrawCommands(t))}var TK=new ce;function WQe(e,t,n){return TK.center=e,TK.radius=t,n.camera.getPixelSize(TK,n.context.drawingBufferWidth,n.context.drawingBufferHeight)}var jV=new h;function epe(e,t,n){return function(i){oE(e.heightReference)&&(i.height+=n.height),t.cartographicToCartesian(i,jV);let r=e._clampedModelMatrix;M.clone(e.modelMatrix,r),r[12]=jV.x,r[13]=jV.y,r[14]=jV.z,e._heightDirty=!0}}var jQe=new h;function qQe(e,t){let n=e.distanceDisplayCondition;if(!u(n))return!0;let i=n.near*n.near,r=n.far*n.far,o;if(t.mode===oe.SCENE2D){let a=(t.camera.frustum.right-t.camera.frustum.left)*.5;o=a*a}else{let s=M.getTranslation(e.modelMatrix,jQe);xr.computeActualEllipsoidPosition(t,s,s),o=h.distanceSquared(s,t.camera.positionWC)}return o>=i&&o<=r}function YQe(e,t){let n=t.creditDisplay,i=e._credits,r=i.length;for(let o=0;o<r;o++)n.addCreditToNextFrame(i[o])}ki.prototype.isTranslucent=function(){let e=this.color;return u(e)&&e.alpha>0&&e.alpha<1};ki.prototype.isInvisible=function(){let e=this.color;return u(e)&&e.alpha===0};function ipe(e){return e.context.stencilBuffer}ki.prototype.hasSilhouette=function(e){return ipe(e)&&this._silhouetteSize>0&&this._silhouetteColor.alpha>0&&!u(this._classificationType)};ki.prototype.hasSkipLevelOfDetail=function(e){if(!Co.is3DTiles(this.type))return!1;let t=e.context.stencilBuffer,n=this._content.tileset;return t&&n.isSkippingLevelOfDetail};ki.prototype.isClippingEnabled=function(){let e=this._clippingPlanes;return u(e)&&e.enabled&&e.length!==0};ki.prototype.isGeometryClipEnabled=function(){let e=this._clippingGeometries;return u(e)};ki.prototype.pick=function(e,t,n,i,r){return IP(this,e,t,n,i,r)};ki.prototype.isClippingPolygonsEnabled=function(){let e=this._clippingPolygons;return u(e)&&e.enabled&&e.length!==0};ki.prototype.isDestroyed=function(){return!1};ki.prototype.destroy=function(){let e=this._loader;u(e)&&e.destroy();let t=this._featureTables;if(u(t)){let o=t.length;for(let s=0;s<o;s++)t[s].destroy()}this.destroyPipelineResources(),this.destroyModelResources(),u(this._removeUpdateHeightCallback)&&(this._removeUpdateHeightCallback(),this._removeUpdateHeightCallback=void 0),u(this._terrainProviderChangedCallback)&&(this._terrainProviderChangedCallback(),this._terrainProviderChangedCallback=void 0);let n=this._clippingPlanes;u(n)&&!n.isDestroyed()&&n.owner===this&&n.destroy(),this._clippingPlanes=void 0;let i=this._clippingPolygons;u(i)&&!i.isDestroyed()&&i.owner===this&&i.destroy(),this._clippingPolygons=void 0,this._shouldDestroyImageBasedLighting&&!this._imageBasedLighting.isDestroyed()&&this._imageBasedLighting.destroy(),this._imageBasedLighting=void 0;let r=this._nodeCommands;for(let o=0;o<r.length;++o){let s=r[o],a=s.stencilCommand;u(a)&&u(a.shaderProgram)&&!a.shaderProgram.isDestroyed()&&(a.shaderProgram=a.shaderProgram.destroy()),a=s.sectionCommand,u(a)&&u(a.shaderProgram)&&!a.shaderProgram.isDestroyed()&&(a.shaderProgram=a.shaderProgram.destroy())}he(this)};ki.prototype.destroyPipelineResources=function(){let e=this._pipelineResources;for(let t=0;t<e.length;t++)e[t].destroy();this._pipelineResources.length=0,this._pickIds.length=0};ki.prototype.destroyModelResources=function(){let e=this._modelResources;for(let t=0;t<e.length;t++)e[t].destroy();this._modelResources.length=0};ki.fromGltfAsync=async function(e){e=y(e,y.EMPTY_OBJECT);let t=y(e.url,e.gltf),n={releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:u(e.classificationType),generateUniqueId:e.generateUniqueId},i=y(e.basePath,""),r=Pe.createIfNeeded(i);u(t.asset)?(n.gltfJson=t,n.baseResource=r,n.gltfResource=r):t instanceof Uint8Array?(n.typedArray=t,n.baseResource=r,n.gltfResource=r):n.gltfResource=Pe.createIfNeeded(t);let o=new il(n),a=u(e.content)?Co.TILE_GLTF:Co.GLTF,c=n.gltfResource,l=Mp(o,a,e);l.resource=c;try{await o.load()}catch(_){throw o.destroy(),hn.getError("model",c,_)}let f=e.gltfCallback;u(f)&&f(o.gltfJson);let d=new ki(l),p=d._resource.credits;if(u(p)){let _=p.length;for(let m=0;m<_;m++)d._resourceCredits.push(Wt.clone(p[m]))}return d};ki.fromM3DData=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:u(e.classificationType),tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,tile:e.tile,hasSectionGeometry:e.hasSectionGeometry},n=new WV(t);try{await n.load();let i=Mp(n,Co.TILE_B3DM,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromM3DGltf=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:u(e.classificationType),attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new NV(t);try{await n.load();let i=Mp(n,Co.TILE_B3DM,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromM3DB3dm=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:u(e.classificationType),attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new FV(t);try{await n.load();let i=Mp(n,Co.TILE_B3DM,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromM3DI3dm=async function(e){let t={i3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new VV(t);try{await n.load();let i=Mp(n,Co.TILE_I3DM,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromM3DPnts=async function(e){let t={arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,loadAttributesFor2D:e.projectTo2D,attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,tileset:e.tileset,tile:e.tile,resource:e.resource},n=new HV(t);try{await n.load();let i=Mp(n,Co.TILE_PNTS,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromB3dm=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:u(e.classificationType),generateUniqueId:e.generateUniqueId},n=new _4(t);try{await n.load();let i=Mp(n,Co.TILE_B3DM,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromPnts=async function(e){let t={arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,loadAttributesFor2D:e.projectTo2D,generateUniqueId:e.generateUniqueId},n=new IV(t);try{await n.load();let i=Mp(n,Co.TILE_PNTS,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromI3dm=async function(e){let t={i3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,generateUniqueId:e.generateUniqueId},n=new C4(t);try{await n.load();let i=Mp(n,Co.TILE_I3DM,e);return new ki(i)}catch(i){throw n.destroy(),i}};ki.fromGeoJson=async function(e){let t={geoJson:e.geoJson},n=new y4(t),i=Mp(n,Co.TILE_GEOJSON,e);return new ki(i)};var XQe=new z;ki.prototype.applyColorAndShow=function(e){let t=z.clone(this._color,XQe),n=u(e)&&u(e.color),i=u(e)&&u(e.show);this._color=n?e.color.evaluateColor(void 0,this._color):z.clone(z.WHITE,this._color),this._show=i?e.show.evaluate(void 0):!0,CK(t,this._color)&&this.resetDrawCommands()};ki.prototype.applyStyle=function(e){let t=this.type===Co.TILE_PNTS,n=u(this.featureTableId)&&this.featureTables[this.featureTableId].featuresLength>0,i=u(this.structuralMetadata)?this.structuralMetadata.propertyAttributes:void 0,r=u(i)&&u(i[0]);if(t&&(!n||r)){this.resetDrawCommands();return}n?(this.featureTables[this.featureTableId].applyStyle(e),tpe(this,e)):(this.applyColorAndShow(e),this._styleCommandsNeeded=void 0)};function Mp(e,t,n){return{loader:e,type:t,resource:n.resource,show:n.show,modelMatrix:n.modelMatrix,scale:n.scale,enableVerticalExaggeration:n.enableVerticalExaggeration,minimumPixelSize:n.minimumPixelSize,maximumScale:n.maximumScale,id:n.id,allowPicking:n.allowPicking,clampAnimations:n.clampAnimations,shadows:n.shadows,debugShowBoundingVolume:n.debugShowBoundingVolume,enableDebugWireframe:n.enableDebugWireframe,debugWireframe:n.debugWireframe,cull:n.cull,opaquePass:n.opaquePass,customShader:n.customShader,content:n.content,heightReference:n.heightReference,scene:n.scene,distanceDisplayCondition:n.distanceDisplayCondition,color:n.color,colorBlendAmount:n.colorBlendAmount,colorBlendMode:n.colorBlendMode,silhouetteColor:n.silhouetteColor,silhouetteSize:n.silhouetteSize,enableShowOutline:n.enableShowOutline,showOutline:n.showOutline,outlineColor:n.outlineColor,clippingPlanes:n.clippingPlanes,clippingPolygons:n.clippingPolygons,lightColor:n.lightColor,imageBasedLighting:n.imageBasedLighting,backFaceCulling:n.backFaceCulling,credit:n.credit,showCreditsOnScreen:n.showCreditsOnScreen,splitDirection:n.splitDirection,projectTo2D:n.projectTo2D,enablePick:n.enablePick,featureIdLabel:n.featureIdLabel,instanceFeatureIdLabel:n.instanceFeatureIdLabel,pointCloudShading:n.pointCloudShading,classificationType:n.classificationType,pickObject:n.pickObject,fillClip:n.fillClip,clippingFillImage:n.clippingFillImage}}var rc=ki;function ro(e,t,n){this._tileset=e,this._tile=t,this._resource=n,this._model=void 0,this._metadata=void 0,this._group=void 0,this._ready=!1}Object.defineProperties(ro.prototype,{featuresLength:{get:function(){let e=this._model,t=e.featureTables,n=e.featureTableId;return u(t)&&u(t[n])?t[n].featuresLength:0}},pointsLength:{get:function(){return this._model.statistics.pointsLength}},trianglesLength:{get:function(){return this._model.statistics.trianglesLength}},geometryByteLength:{get:function(){return this._model.statistics.geometryByteLength}},texturesByteLength:{get:function(){return this._model.statistics.texturesByteLength}},batchTableByteLength:{get:function(){let e=this._model.statistics;return e.propertyTablesByteLength+e.batchTexturesByteLength}},innerContents:{get:function(){}},ready:{get:function(){return this._ready}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){return this._resource.getUrlComponent(!0)}},batchTable:{get:function(){let e=this._model,t=e.featureTables,n=e.featureTableId;if(u(t)&&u(t[n]))return t[n]}},metadata:{get:function(){return this._metadata},set:function(e){this._metadata=e}},group:{get:function(){return this._group},set:function(e){this._group=e}}});ro.prototype.getExtension=function(e){return this._model.getExtension(e)};ro.prototype.getFeature=function(e){let t=this._model,n=t.featureTableId;return t.featureTables[n].getFeature(e)};ro.prototype.hasProperty=function(e,t){let n=this._model,i=n.featureTableId;return u(i)?n.featureTables[i].hasProperty(e,t):!1};ro.prototype.applyDebugSettings=function(e,t){t=e?t:z.WHITE,this.featuresLength===0?this._model.color=t:u(this.batchTable)&&this.batchTable.setAllColor(t)};ro.prototype.applyStyle=function(e){this._model.style=e};ro.prototype.update=function(e,t){let n=this._model,i=this._tile;if(n.colorBlendAmount=e.colorBlendAmount,n.colorBlendMode=e.colorBlendMode,n.modelMatrix=i.computedTransform,n.customShader=e.customShader,n.featureIdLabel=e.featureIdLabel,n.instanceFeatureIdLabel=e.instanceFeatureIdLabel,n.lightColor=e.lightColor,n.imageBasedLighting=e.imageBasedLighting,n.backFaceCulling=e.backFaceCulling,n.shadows=e.shadows,n.showCreditsOnScreen=e.showCreditsOnScreen,n.splitDirection=e.splitDirection,n.debugWireframe=e.debugWireframe,n.rollerShutterRegion=new ie(0,0,0,0),n.rollerShutterSpyglassRegion=void 0,n.rollerShutterPolygonRegion=void 0,(n.swiper.type!==t.swiper.type||n.swiper.swipeEnabled!==e.swipeEnabled)&&(n._shouldRegenerateShaders=!0),n.swiper=Ve(t.swiper),n.swiper.swipeEnabled=e.swipeEnabled,e.swipeEnabled){let s=t.swiper.type;s===jn.HORIZONTAL||s===jn.VERTICAL||s===jn.RECTANGLE?n.rollerShutterRegion=t.context.uniformState._swipeRegion:s===jn.SPYGLASS?n.rollerShutterSpyglassRegion=t.context.uniformState._swipeRegion:s===jn.POLYGON&&(n.rollerShutterPolygonRegion=t.context.uniformState._swipeRegion),n.swipeInverse=e.swipeInverse===0?t.swiper.inverse:e.swipeInverse}n.showOutline=e.showOutline,n.outlineColor=e.outlineColor,n.pointCloudShading=e.pointCloudShading,n.textureCoordScale=e.textureCoordScale,n.clippingGeometries=e._clippingGeometries;let r=e.clippingPlanes;n.referenceMatrix=e.clippingPlanesOriginMatrix,u(r)&&i.clippingPlanesDirty&&(n._clippingPlanes=r.enabled&&i._isClipped?r:void 0,r.enabled&&i._isClipped&&(n._clippingPlanesState=0)),u(r)&&u(n._clippingPlanes)&&n._clippingPlanes!==r&&(n._clippingPlanes=r,n._clippingPlanesState=0);let o=e.clippingPolygons;if(u(o)&&i.clippingPolygonsDirty&&(n._clippingPolygons=o.enabled&&i._isClippedByPolygon?o:void 0),u(o)&&u(n._clippingPolygons)&&n._clippingPolygons!==o&&(n._clippingPolygons=o,n._clippingPolygonsState=0),n.enableExplosion=e.enableExplosion,n.enableCuttingFilter=e.enableCuttingFilter,n.enableExplosion||n.enableCuttingFilter){n.explosionIdTexture=e._explosionIdTexture,n.explosionDirectionTexture=e._explosionDirectionTexture,u(e._explosionTextureData)&&Array.isArray(e._explosionTextureData)?n.explosionTextureDataLength=e._explosionTextureData.length:n.explosionTextureDataLength=0;let s=0;if(e._version==="2.0"){let a=n.content.batchTable?._propertyTable._jsonMetadataTable._batchTableJson.OID;u(a)&&(s=a.length)}else if(e._version==="2.1"||e._version==="2.2"){let a=n.content.batchTable?._propertyTable._jsonMetadataTable._batchTableJson.tid;if(u(a)&&(s=a.tids.length,!u(n.explosionIdTableTexture))){let c=a.tids.map(f=>[f,0,0]),l=Float32Array.from(c.flat());n.explosionIdTableTexture=new nt({context:t.context,source:{arrayBufferView:l,width:l.length/3,height:1},pixelFormat:He.RGB,pixelDatatype:ze.FLOAT})}}n.explosionIdCount=s}n.deleteVerticalPlane=e._deleteVerticalPlane,n.isFlatten=e._isFlatten,n.flattenHeight=e._flattenHeight,n.positionArray=e._positionArray,n.arrayLength=e._positionArray?.length,u(e._brightness)&&(n._brightness=e._brightness),u(e._exposure)&&(n._exposure=e._exposure),u(e._contrast)&&(n._contrast=e._contrast),u(e._hue)&&(n._hue=e._hue),u(e._saturation)&&(n._saturation=e._saturation),u(e._gamma)&&(n._gamma=e._gamma),n.update(t),!this._ready&&n.ready&&(n.activeAnimations.addAll({loop:yf.REPEAT}),this._ready=!0)};ro.prototype.isDestroyed=function(){return!1};ro.prototype.destroy=function(){return this._model=this._model&&this._model.destroy(),he(this)};ro.fromGltf=async function(e,t,n,i){let r=new ro(e,t,n),s=Lp(e,t,r,{gltf:i,basePath:n}),a=e.vectorClassificationOnly?void 0:e.classificationType;s.classificationType=a,s.generateUniqueId=e._generateUniqueId;let c=await rc.fromGltfAsync(s);return r._model=c,r};ro.fromM3DData=async function(e,t,n,i,r){let o=new ro(e,t,n),a=Lp(e,t,o,{arrayBuffer:i,byteOffset:r,resource:n}),c=e.vectorClassificationOnly?void 0:e.classificationType;a.classificationType=c,a.tilesetVersion=e._version,a.tile=t,a.fillClip=e._fillClip,a.hasSectionGeometry=e._hasSectionGeometry,a.clippingFillImage=e._clippingFillImage,a.clippingGeometries=e._clippingGeometries;let l=await rc.fromM3DData(a);return o._model=l,o};ro.fromM3DGltf=async function(e,t,n,i,r,o){let s=new ro(e,t,n),c=Lp(e,t,s,{arrayBuffer:i,byteOffset:r,resource:n}),l=e.vectorClassificationOnly?void 0:e.classificationType;c.classificationType=l,c.attBatchTable=o,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let f=await rc.fromM3DGltf(c);return s._model=f,s};ro.fromM3DB3dm=async function(e,t,n,i,r,o){let s=new ro(e,t,n),c=Lp(e,t,s,{arrayBuffer:i,byteOffset:r,resource:n}),l=e.vectorClassificationOnly?void 0:e.classificationType;c.classificationType=l,c.attBatchTable=o,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let f=await rc.fromM3DB3dm(c);return s._model=f,s};ro.fromM3DI3dm=async function(e,t,n,i,r,o){let s=new ro(e,t,n),c=Lp(e,t,s,{arrayBuffer:i,byteOffset:r,resource:n});c.attBatchTable=o,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let l=await rc.fromM3DI3dm(c);return s._model=l,s};ro.fromM3DPnts=async function(e,t,n,i,r,o){let s=new ro(e,t,n),c=Lp(e,t,s,{arrayBuffer:i,byteOffset:r,resource:n});c.attBatchTable=o,c.tilesetVersion=e._version,c.tileset=e,c.tile=t,c.resource=s._resource;let l=await rc.fromM3DPnts(c);return s._model=l,s};ro.fromB3dm=async function(e,t,n,i,r){let o=new ro(e,t,n),a=Lp(e,t,o,{arrayBuffer:i,byteOffset:r,resource:n}),c=e.vectorClassificationOnly?void 0:e.classificationType;a.classificationType=c,a.generateUniqueId=e._generateUniqueId;let l=await rc.fromB3dm(a);return o._model=l,o};ro.fromI3dm=async function(e,t,n,i,r){let o=new ro(e,t,n),a=Lp(e,t,o,{arrayBuffer:i,byteOffset:r,resource:n});a.generateUniqueId=e._generateUniqueId;let c=await rc.fromI3dm(a);return o._model=c,o};ro.fromPnts=async function(e,t,n,i,r){let o=new ro(e,t,n),a=Lp(e,t,o,{arrayBuffer:i,byteOffset:r,resource:n});a.generateUniqueId=e._generateUniqueId;let c=await rc.fromPnts(a);return o._model=c,o};ro.fromGeoJson=async function(e,t,n,i){let r=new ro(e,t,n),s=Lp(e,t,r,{geoJson:i,resource:n}),a=await rc.fromGeoJson(s);return r._model=a,r};ro.prototype.pick=function(e,t,n){if(!u(this._model)||!this._ready)return;let i=t.verticalExaggeration,r=t.verticalExaggerationRelativeHeight;return this._model.pick(e,t,i,r,ne.WGS84,n)};function Lp(e,t,n,i){let r={cull:!1,releaseGltfJson:!0,opaquePass:Ee.CESIUM_3D_TILE,modelMatrix:t.computedTransform,upAxis:e._modelUpAxis,forwardAxis:e._modelForwardAxis,incrementallyLoadTextures:!1,customShader:e.customShader,content:n,colorBlendMode:e.colorBlendMode,colorBlendAmount:e.colorBlendAmount,lightColor:e.lightColor,imageBasedLighting:e.imageBasedLighting,featureIdLabel:e.featureIdLabel,instanceFeatureIdLabel:e.instanceFeatureIdLabel,pointCloudShading:e.pointCloudShading,clippingPlanes:e.clippingPlanes,backFaceCulling:e.backFaceCulling,shadows:e.shadows,showCreditsOnScreen:e.showCreditsOnScreen,splitDirection:e.splitDirection,enableDebugWireframe:e._enableDebugWireframe,debugWireframe:e.debugWireframe,projectTo2D:e._projectTo2D,enablePick:e._enablePick,enableShowOutline:e._enableShowOutline,showOutline:e.showOutline,outlineColor:e.outlineColor};return xt(i,r)}var Xl=ro;var rpe={M3DData:function(e,t,n,i,r){return Xl.fromM3DData(e,t,n,i,r)},M3DGltf:function(e,t,n,i,r,o){return Xl.fromM3DGltf(e,t,n,i,r,o)},M3DCmpt:function(e,t,n,i,r,o){return xp.fromM3DTileType(e,t,n,i,r,rpe,o)},M3DB3dm:function(e,t,n,i,r,o){return Xl.fromM3DB3dm(e,t,n,i,r,o)},M3DI3dm:function(e,t,n,i,r,o){return Xl.fromM3DI3dm(e,t,n,i,r,o)},M3DPnts:function(e,t,n,i,r,o){return Xl.fromM3DPnts(e,t,n,i,r,o)}},jT=rpe;var ope={JSON:`{
|
|
9613
9613
|
`,M3D20:"PK",M3D21:"PK",M3D10_M3D:"m3d\0",M3D10_ZIPX:"zipx"};ope.isBinaryFormat=function(e){return!e.includes("{")};var jy=Object.freeze(ope);function KQe(e){let t=new Uint8Array(e),n=Kc(t);if(jy.isBinaryFormat(n))return{contentType:n,binaryPayload:t};let i=ZQe(t);if(u(i))return{contentType:n,binaryPayload:t};throw new ae("Invalid tile content.")}function ZQe(e){let t;try{t=dr(e)}catch{throw new ae("Invalid tile content.")}return t}var qV=KQe;function Rd(){this._length=0,this._obj={}}Object.defineProperties(Rd.prototype,{length:{get:function(){return this._length}}});Rd.prototype.isEmpty=function(){return this.length===0};Rd.prototype.containsKey=function(e){return e in this._obj};Rd.prototype.containsValue=function(e){for(let t in this._obj)if(this._obj[t]===e)return!0;return!1};Rd.prototype.put=function(e,t){this.containsKey(e)||this._length++,this._obj[e]=t};Rd.prototype.get=function(e){return this.containsKey(e)?this._obj[e]:null};Rd.prototype.remove=function(e){this.containsKey(e)&&delete this._obj[e]&&this._length--};Rd.prototype.values=function(){let e=[];for(let t in this._obj)Object.prototype.hasOwnProperty.call(this._obj,t)&&e.push(this._obj[t]);return e};Rd.prototype.keySet=function(){let e=[];for(let t in this._obj)Object.prototype.hasOwnProperty.call(this._obj,t)&&e.push(t);return e};Rd.prototype.size=function(){return this._length};Rd.prototype.clear=function(){this._length=0,this._obj={}};var qh=Rd;var YV=`in vec3 position3DHigh;
|
|
9614
9614
|
in vec3 position3DLow;
|
|
9615
9615
|
in float batchId;
|
|
@@ -18999,8 +18999,8 @@ void main()
|
|
|
18999
18999
|
float scale = pow(z_ndc * 0.5 + 0.5, 8.0);
|
|
19000
19000
|
out_FragColor = vec4(mix(vec3(0.0), vec3(1.0), scale), 1.0);
|
|
19001
19001
|
}
|
|
19002
|
-
`;function zm(e,t){e=y(e,{}),this._options=y(t,{}),this._url=y(e.url,void 0),this._depth=0,this._index=void 0,this._indexHashMap=new qh,this._resourse=Pe.createIfNeeded(this._url),this._m3dtreeChildren=[],this._m3dtreeParent=y(e.m3dtreeParent,void 0),this._queryResult=void 0,this._attMap=void 0,this._nodeName=void 0,this._init=!1}Object.defineProperties(zm.prototype,{depth:{get:function(){return this._depth},set:function(e){this._depth=e}},index:{get:function(){return this._index},set:function(e){this._index=e}},indexHashMap:{get:function(){return this._indexHashMap},set:function(e){this._indexHashMap=e}},m3dtreeParent:{get:function(){return this._m3dtreeParent},set:function(e){this._m3dtreeParent=e}},m3dtreeChildren:{get:function(){return this._m3dtreeChildren},set:function(e){this._m3dtreeChildren=e}},attMap:{get:function(){return this._attMap},set:function(e){this._attMap=e}},nodeName:{get:function(){return this._nodeName},set:function(e){this._nodeName=e}}});function _2e(e,t,n){let i=[];if(i=t.children,u(i))for(let r=0;r<i.length;r++){let o=i[r];if(u(o._header.name)){let s=new zm;if(u(o._content)&&u(o._content._attMap)&&(s.attMap=o._content._attMap),u(n)){if(o._depth<n){let c=o._header.name;s.indexHashMap.containsKey(c)||s.indexHashMap.put(c,o)}}else{let a=o._header.name,c=e.index+"-",l=a.replace(c,"");s.indexHashMap.containsKey(a)||s.indexHashMap.put(a,o),s.depth=o._depth,s.index=a,s.nodeName=l,s.m3dtreeParent=e,e.m3dtreeChildren.push(s),e=s}}_2e(e,o,n)}}zm.prototype.createM3DTreeByTileset=function(e,t){if(!this._init){if(!u(e))return!1;let n=e.root,i=n._header,r="";return u(i)&&(u(i.dataName)?r=i.dataName:u(i.name)&&(r=i.name)),this.depth=n._depth,this.index=r,this.indexHashMap.containsKey(r)||this.indexHashMap.put(r,n),_2e(this,n,t),this._init=!0,!0}};var H7=!1,g2e;function y2e(e,t){let n=e.indexHashMap;if(n.containsKey(t)){let i=n.get(t);H7=!0,g2e=i}else if(!n.containsKey(t)){let i=e.m3dtreeChildren;if(u(i))for(let r=0;r<i.length;r++)if(H7){if(H7)break}else{let o=i[r];y2e(o,t)}}}zm.prototype.getM3DByName=function(e){return y2e(this,e),H7=!1,g2e};zm.prototype.createChildByParentNode=function(e){};zm.prototype.createM3DTreeByRequest=function(e){Lne(this,e)};zm.createM3DTree=function(e,t){let n=new zm(e,t);if(u(n._options.createType)){let i=n._options.createType;i==="ModelLoaded"?n.createM3DTreeByTileset(e):(i==="ModelUrl"||i==="")&&u(n._options.url)&&n.createM3DTreeByRequest(n._options.url)}return n};function Lne(e,t,n,i){let r="";if(u(n)){n=n.replace("./","");let s=t.split("/");for(let a=0;a<s.length-1;a++)r+=s[a]+"/";r+=n}else r=t;new Pe({url:r}).fetchJson().then(function(s){let a;if(u(s.dataName)?a=s.dataName:u(s.name)&&(a=s.name),e.index=a,u(i)){let l=i.index+"-",f=e.index.replace(l,"");e.nodeName=f,e.depth=i.depth+1}else e.nodeName=a;let c="";if(u(s.rootNode)){let l=new zm;c=s.rootNode.uri,u(i)?l._m3dtreeParent=i:l._m3dtreeParent=e,e._m3dtreeChildren.push(l),Lne(l,r,c,e)}else if(u(s.childrenNode))for(let l=0;l<s.childrenNode.length;l++){let f=new zm,d=s.childrenNode[l];u(i)&&(e._m3dtreeParent=i),e._m3dtreeChildren.push(f),c=d.uri,Lne(f,r,c,e)}else!u(s.rootNode)&&!u(s.childrenNode)&&u(i)&&(e._m3dtreeParent=i)})}var x2e=zm;function G7(e){this._viewer=e,this._scene=this._viewer.scene,this._intervalId=void 0,this._preRenderHandler=void 0}Object.defineProperties(G7.prototype,{models:{get:function(){return this._models},set:function(e){this._models=e}}});G7.prototype.resetExplosionByField=function(e){if(!Array.isArray(e))throw new ae("tilesets\u5FC5\u987B\u662F\u4E00\u4E2A\u6570\u7EC4");for(let t=0;t<e.length;t++)e[t].enableExplosion=!1};function Nne(e,t){if(!Array.isArray(e))throw new ae("tilesets\u5FC5\u987B\u662F\u4E00\u4E2A\u6570\u7EC4");for(let n=0;n<e.length;n++){let i=e[n],r;i._version==="2.1"||i._version==="2.2"?r="tid":i._version==="2.0"&&(r="OID"),i.enableExplosion=!0;let o=[],s=y(t.valueGroups,[]),a=y(t.moveDirection,new h(0,0,0)),c=y(t.field,Number.NaN),l=y(t.type,"unique");for(let f=0;f<s.length;f++){let d=s[f];if(d.moveDirection=a,l==="unique")if(c===r)o=XR(d.value,d.value,d,o);else{let p=Fne(d.value,d.value,i,c,l);for(let _=0;_<p.length;_++)o=XR(p[_],p[_],d,o)}else if(l==="range")if(c===r)o=XR(d.start,d.end,d,o);else{let p=Fne(d.start,d.end,i,c,l);for(let _=0;_<p.length;_++)o=XR(p[_],p[_],d,o)}else if(l==="contain"){let p=Fne(d.value,d.value,i,c,l);for(let _=0;_<p.length;_++)o=XR(p[_],p[_],d,o)}}i.explosionTextureData=o}}function B3t(e,t,n){if(t<0||t>n)return;let i=e.x*t/n,r=e.y*t/n,o=e.z*t/n;return new h(i,r,o)}function k3t(e,t,n){if(!(t<0||t>n))return e/n*t}G7.prototype.explosionByField=function(e,t){if(t=y(t,y.EMPTY_OBJECT),t.duration>0){let n=0,i=t.valueGroups,r=t.duration;u(this._preRenderHandler)&&this._scene.preRender.removeEventListener(this._preRenderHandler),this._preRenderTime=new Date().getTime(),this._preRenderHandler=()=>{if(n<=r){let o=[];if(u(t.moveDirection)){for(let a=0;a<i.length;a++)o.push({value:i[a].value,distance:k3t(i[a].distance,n,r)});Nne(e,{valueGroups:o,moveDirection:t.moveDirection,type:t.type,field:t.field})}else{for(let a=0;a<i.length;a++)o.push({value:i[a].value,direction:B3t(i[a].direction,n,r)});Nne(e,{valueGroups:o,type:t.type,field:t.field})}let s=new Date().getTime();n+=s-this._preRenderTime,this._preRenderTime=s}else{this._scene.preRender.removeEventListener(this._preRenderHandler),this._preRenderHandler=void 0;return}},this._scene.preRender.addEventListener(this._preRenderHandler)}else Nne(e,t)};function XR(e,t,n,i){if(i.push(e,t),u(n.distance)){let r=n.moveDirection.x*n.distance,o=n.moveDirection.y*n.distance,s=n.moveDirection.z*n.distance;i.push(r,o,s)}else if(u(n.direction)){let r=n.direction,o=r.x,s=r.y,a=r.z;i.push(o,s,a)}return i}function Fne(e,t,n,i,r){let s=[n.root],a=[],c=[],l;for(n._version==="2.1"||n._version==="2.2"?l="tid":n._version==="2.0"&&(l="OID");s.length>0;){let f=s.pop();if(f.children.length>0)for(let d=0;d<f.children.length;d++)s.push(f.children[d]);if(!(f.content instanceof Td||f.content instanceof bT)){f.content instanceof xp?a=f.content._contents:a=[f.content];for(let d=0;d<a.length;d++){let p=a[d]?.batchTable?._features;if(u(p))for(let _=0;_<p.length;_++){let m=p[_].getProperty(i),x=p[_].getProperty(l);if(r==="unique")m===e&&c.push(x);else if(r==="range")m>=e&&m<=t&&c.push(x);else if(r==="contain"){if(typeof m!="string"){console.warn(`\u5F53\u524D\u83B7\u53D6\u5230\u7684\u5C5E\u6027\u503C\u7C7B\u578B\u4E3A${typeof m}, \u5305\u542B\u5173\u7CFB\u4EC5\u652F\u6301\u5B57\u7B26\u4E32\u7C7B\u578B\u503C\u7684\u6BD4\u8F83`);continue}m.includes(e)&&c.push(x)}}}}}return c}var b2e=G7;var V3t={SIGX:"SIGX",SIGY:"SIGY",SIGZ:"SIGZ",VARX:"VARX",VARY:"VARY",VARZ:"VARZ",SIGR:"VARZ"},T2e=Object.freeze(V3t);function U3t(e){async function t({data:i}){let r=[],o={id:i.id,result:void 0,error:void 0};self.CESIUM_BASE_URL=i.baseUrl;try{let s=await e(i.parameters,r);o.result=s}catch(s){s instanceof Error?o.error={name:s.name,message:s.message,stack:s.stack}:o.error=s}i.canTransferArrayBuffer||(r.length=0);try{postMessage(o,r)}catch(s){o.result=void 0,o.error=`postMessage failed with error: ${c0(s)}
|
|
19003
|
-
with responseMessage: ${JSON.stringify(o)}`,postMessage(o)}}function n(i){postMessage({id:i.data?.id,error:`postMessage failed with error: ${JSON.stringify(i)}`})}return self.onmessage=t,self.onmessageerror=n,self}var C2e=U3t;globalThis.CESIUM_VERSION="1.122.0";globalThis.MAPGIS_VERSION="17.6.
|
|
19002
|
+
`;function zm(e,t){e=y(e,{}),this._options=y(t,{}),this._url=y(e.url,void 0),this._depth=0,this._index=void 0,this._indexHashMap=new qh,this._resourse=Pe.createIfNeeded(this._url),this._m3dtreeChildren=[],this._m3dtreeParent=y(e.m3dtreeParent,void 0),this._queryResult=void 0,this._attMap=void 0,this._nodeName=void 0,this._init=!1}Object.defineProperties(zm.prototype,{depth:{get:function(){return this._depth},set:function(e){this._depth=e}},index:{get:function(){return this._index},set:function(e){this._index=e}},indexHashMap:{get:function(){return this._indexHashMap},set:function(e){this._indexHashMap=e}},m3dtreeParent:{get:function(){return this._m3dtreeParent},set:function(e){this._m3dtreeParent=e}},m3dtreeChildren:{get:function(){return this._m3dtreeChildren},set:function(e){this._m3dtreeChildren=e}},attMap:{get:function(){return this._attMap},set:function(e){this._attMap=e}},nodeName:{get:function(){return this._nodeName},set:function(e){this._nodeName=e}}});function _2e(e,t,n){let i=[];if(i=t.children,u(i))for(let r=0;r<i.length;r++){let o=i[r];if(u(o._header.name)){let s=new zm;if(u(o._content)&&u(o._content._attMap)&&(s.attMap=o._content._attMap),u(n)){if(o._depth<n){let c=o._header.name;s.indexHashMap.containsKey(c)||s.indexHashMap.put(c,o)}}else{let a=o._header.name,c=e.index+"-",l=a.replace(c,"");s.indexHashMap.containsKey(a)||s.indexHashMap.put(a,o),s.depth=o._depth,s.index=a,s.nodeName=l,s.m3dtreeParent=e,e.m3dtreeChildren.push(s),e=s}}_2e(e,o,n)}}zm.prototype.createM3DTreeByTileset=function(e,t){if(!this._init){if(!u(e))return!1;let n=e.root,i=n._header,r="";return u(i)&&(u(i.dataName)?r=i.dataName:u(i.name)&&(r=i.name)),this.depth=n._depth,this.index=r,this.indexHashMap.containsKey(r)||this.indexHashMap.put(r,n),_2e(this,n,t),this._init=!0,!0}};var H7=!1,g2e;function y2e(e,t){let n=e.indexHashMap;if(n.containsKey(t)){let i=n.get(t);H7=!0,g2e=i}else if(!n.containsKey(t)){let i=e.m3dtreeChildren;if(u(i))for(let r=0;r<i.length;r++)if(H7){if(H7)break}else{let o=i[r];y2e(o,t)}}}zm.prototype.getM3DByName=function(e){return y2e(this,e),H7=!1,g2e};zm.prototype.createChildByParentNode=function(e){};zm.prototype.createM3DTreeByRequest=function(e){Lne(this,e)};zm.createM3DTree=function(e,t){let n=new zm(e,t);if(u(n._options.createType)){let i=n._options.createType;i==="ModelLoaded"?n.createM3DTreeByTileset(e):(i==="ModelUrl"||i==="")&&u(n._options.url)&&n.createM3DTreeByRequest(n._options.url)}return n};function Lne(e,t,n,i){let r="";if(u(n)){n=n.replace("./","");let s=t.split("/");for(let a=0;a<s.length-1;a++)r+=s[a]+"/";r+=n}else r=t;new Pe({url:r}).fetchJson().then(function(s){let a;if(u(s.dataName)?a=s.dataName:u(s.name)&&(a=s.name),e.index=a,u(i)){let l=i.index+"-",f=e.index.replace(l,"");e.nodeName=f,e.depth=i.depth+1}else e.nodeName=a;let c="";if(u(s.rootNode)){let l=new zm;c=s.rootNode.uri,u(i)?l._m3dtreeParent=i:l._m3dtreeParent=e,e._m3dtreeChildren.push(l),Lne(l,r,c,e)}else if(u(s.childrenNode))for(let l=0;l<s.childrenNode.length;l++){let f=new zm,d=s.childrenNode[l];u(i)&&(e._m3dtreeParent=i),e._m3dtreeChildren.push(f),c=d.uri,Lne(f,r,c,e)}else!u(s.rootNode)&&!u(s.childrenNode)&&u(i)&&(e._m3dtreeParent=i)})}var x2e=zm;function G7(e){this._viewer=e,this._scene=this._viewer.scene,this._intervalId=void 0,this._preRenderHandler=void 0}Object.defineProperties(G7.prototype,{models:{get:function(){return this._models},set:function(e){this._models=e}}});G7.prototype.resetExplosionByField=function(e){if(!Array.isArray(e))throw new ae("tilesets\u5FC5\u987B\u662F\u4E00\u4E2A\u6570\u7EC4");for(let t=0;t<e.length;t++)e[t].enableExplosion=!1};function Nne(e,t){if(!Array.isArray(e))throw new ae("tilesets\u5FC5\u987B\u662F\u4E00\u4E2A\u6570\u7EC4");for(let n=0;n<e.length;n++){let i=e[n],r;i._version==="2.1"||i._version==="2.2"?r="tid":i._version==="2.0"&&(r="OID"),i.enableExplosion=!0;let o=[],s=y(t.valueGroups,[]),a=y(t.moveDirection,new h(0,0,0)),c=y(t.field,Number.NaN),l=y(t.type,"unique");for(let f=0;f<s.length;f++){let d=s[f];if(d.moveDirection=a,l==="unique")if(c===r)o=XR(d.value,d.value,d,o);else{let p=Fne(d.value,d.value,i,c,l);for(let _=0;_<p.length;_++)o=XR(p[_],p[_],d,o)}else if(l==="range")if(c===r)o=XR(d.start,d.end,d,o);else{let p=Fne(d.start,d.end,i,c,l);for(let _=0;_<p.length;_++)o=XR(p[_],p[_],d,o)}else if(l==="contain"){let p=Fne(d.value,d.value,i,c,l);for(let _=0;_<p.length;_++)o=XR(p[_],p[_],d,o)}}i.explosionTextureData=o}}function B3t(e,t,n){if(t<0||t>n)return;let i=e.x*t/n,r=e.y*t/n,o=e.z*t/n;return new h(i,r,o)}function k3t(e,t,n){if(!(t<0||t>n))return e/n*t}G7.prototype.explosionByField=function(e,t){if(t=y(t,y.EMPTY_OBJECT),t.duration>0){let n=0,i=t.valueGroups,r=t.duration;u(this._preRenderHandler)&&this._scene.preRender.removeEventListener(this._preRenderHandler),this._preRenderTime=new Date().getTime(),this._preRenderHandler=()=>{if(n<=r){let o=[];if(u(t.moveDirection)){for(let a=0;a<i.length;a++)o.push({value:i[a].value,distance:k3t(i[a].distance,n,r)});Nne(e,{valueGroups:o,moveDirection:t.moveDirection,type:t.type,field:t.field})}else{for(let a=0;a<i.length;a++)o.push({value:i[a].value,direction:B3t(i[a].direction,n,r)});Nne(e,{valueGroups:o,type:t.type,field:t.field})}let s=new Date().getTime();n+=s-this._preRenderTime,this._preRenderTime=s}else{this._scene.preRender.removeEventListener(this._preRenderHandler),this._preRenderHandler=void 0;return}},this._scene.preRender.addEventListener(this._preRenderHandler)}else Nne(e,t)};function XR(e,t,n,i){if(i.push(e,t),u(n.distance)){let r=n.moveDirection.x*n.distance,o=n.moveDirection.y*n.distance,s=n.moveDirection.z*n.distance;i.push(r,o,s)}else if(u(n.direction)){let r=n.direction,o=r.x,s=r.y,a=r.z;i.push(o,s,a)}return i}function Fne(e,t,n,i,r){let s=[n.root],a=[],c=[],l;for(n._version==="2.1"||n._version==="2.2"?l="tid":n._version==="2.0"&&(l="OID");s.length>0;){let f=s.pop();if(f.children.length>0)for(let d=0;d<f.children.length;d++)s.push(f.children[d]);if(!(f.content instanceof Td||f.content instanceof bT)){f.content instanceof xp?a=f.content._contents:a=[f.content];for(let d=0;d<a.length;d++){let p=a[d]?.batchTable?._features;if(u(p))for(let _=0;_<p.length;_++){let m=p[_].getProperty(i),x=p[_].getProperty(l);if(r==="unique")m===e&&c.indexOf(x)===-1&&c.push(x);else if(r==="range")m>=e&&m<=t&&c.indexOf(x)===-1&&c.push(x);else if(r==="contain"){if(typeof m!="string"){console.warn(`\u5F53\u524D\u83B7\u53D6\u5230\u7684\u5C5E\u6027\u503C\u7C7B\u578B\u4E3A${typeof m}, \u5305\u542B\u5173\u7CFB\u4EC5\u652F\u6301\u5B57\u7B26\u4E32\u7C7B\u578B\u503C\u7684\u6BD4\u8F83`);continue}m.includes(e)&&c.indexOf(x)===-1&&c.push(x)}}}}}return c}var b2e=G7;var V3t={SIGX:"SIGX",SIGY:"SIGY",SIGZ:"SIGZ",VARX:"VARX",VARY:"VARY",VARZ:"VARZ",SIGR:"VARZ"},T2e=Object.freeze(V3t);function U3t(e){async function t({data:i}){let r=[],o={id:i.id,result:void 0,error:void 0};self.CESIUM_BASE_URL=i.baseUrl;try{let s=await e(i.parameters,r);o.result=s}catch(s){s instanceof Error?o.error={name:s.name,message:s.message,stack:s.stack}:o.error=s}i.canTransferArrayBuffer||(r.length=0);try{postMessage(o,r)}catch(s){o.result=void 0,o.error=`postMessage failed with error: ${c0(s)}
|
|
19003
|
+
with responseMessage: ${JSON.stringify(o)}`,postMessage(o)}}function n(i){postMessage({id:i.data?.id,error:`postMessage failed with error: ${JSON.stringify(i)}`})}return self.onmessage=t,self.onmessageerror=n,self}var C2e=U3t;globalThis.CESIUM_VERSION="1.122.0";globalThis.MAPGIS_VERSION="17.6.7";var KR;typeof ko<"u"&&(KR=ko);(function(){/*!
|
|
19004
19004
|
* Knockout JavaScript library v3.5.1
|
|
19005
19005
|
* (c) The Knockout.js team - http://knockoutjs.com/
|
|
19006
19006
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
@@ -19014,8 +19014,15 @@ Message: `+ht.message,ht}})}return Me=Qe===e,{shouldBindDescendants:Me,bindingCo
|
|
|
19014
19014
|
* Knockout ES5 plugin - https://github.com/SteveSanderson/knockout-es5
|
|
19015
19015
|
* Copyright (c) Steve Sanderson
|
|
19016
19016
|
* MIT license
|
|
19017
|
-
*/var Bne="__knockoutObservables",kne="__knockoutSubscribable";function A2e(e,t){if(!e)throw new Error("When calling ko.track, you must pass an object as the first parameter.");var n=this,i=E2e(e,!0);return t=t||Object.getOwnPropertyNames(e),t.forEach(function(r){if(!(r===Bne||r===kne)&&!(r in i)){var o=e[r],s=o instanceof Array,a=n.isObservable(o)?o:s?n.observableArray(o):n.observable(o);Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:a,set:n.isWriteableObservable(a)?a:void 0}),i[r]=a,s&&G3t(n,a)}}),e}function E2e(e,t){var n=e[Bne];return!n&&t&&(n={},Object.defineProperty(e,Bne,{value:n})),n}function H3t(e,t,n){var i=this,r={owner:e,deferEvaluation:!0};if(typeof n=="function")r.read=n;else{if("value"in n)throw new Error('For ko.defineProperty, you must not specify a "value" for the property. You must provide a "get" function.');if(typeof n.get!="function")throw new Error('For ko.defineProperty, the third parameter must be either an evaluator function, or an options object containing a function called "get".');r.read=n.get,r.write=n.set}return e[t]=i.computed(r),A2e.call(i,e,[t]),e}function G3t(e,t){var n=null;e.computed(function(){n&&(n.dispose(),n=null);var i=t();i instanceof Array&&(n=W3t(e,t,i))})}function W3t(e,t,n){var i=j3t(e,n);return i.subscribe(t)}function j3t(e,t){var n=t[kne];if(!n){n=new e.subscribable,Object.defineProperty(t,kne,{value:n});var i={};q3t(t,n,i),Y3t(e,t,n,i)}return n}function q3t(e,t,n){["pop","push","reverse","shift","sort","splice","unshift"].forEach(function(i){var r=e[i];e[i]=function(){var o=r.apply(this,arguments);return n.pause!==!0&&t.notifySubscribers(this),o}})}function Y3t(e,t,n,i){["remove","removeAll","destroy","destroyAll","replace"].forEach(function(r){Object.defineProperty(t,r,{enumerable:!1,value:function(){var o;i.pause=!0;try{o=e.observableArray.fn[r].apply(e.observableArray(t),arguments)}finally{i.pause=!1}return n.notifySubscribers(t),o}})})}function S2e(e,t){if(!e)return null;var n=E2e(e,!1);return n&&n[t]||null}function X3t(e,t){var n=S2e(e,t);n&&n.valueHasMutated()}function K3t(e){e.track=A2e,e.getObservable=S2e,e.valueHasMutated=X3t,e.defineProperty=H3t}var W7={attachToKo:K3t};var v2e="http://www.w3.org/2000/svg",w2e="cesium-svgPath-svg",Z3t={register:function(e){e.bindingHandlers.cesiumSvgPath={init:function(t,n){let i=document.createElementNS(v2e,"svg:svg");i.setAttribute("class",w2e);let r=document.createElementNS(v2e,"path");return i.appendChild(r),e.virtualElements.setDomNodeChildren(t,[i]),e.computed({read:function(){let o=e.unwrap(n());r.setAttribute("d",e.unwrap(o.path));let s=e.unwrap(o.width),a=e.unwrap(o.height);i.setAttribute("width",s),i.setAttribute("height",a),i.setAttribute("viewBox",`0 0 ${s} ${a}`),o.css&&i.setAttribute("class",`${w2e} ${e.unwrap(o.css)}`)},disposeWhenNodeIsRemoved:t}),{controlsDescendantBindings:!0}}},e.virtualElements.allowedBindings.cesiumSvgPath=!0}},j7=Z3t;W7.attachToKo(D1);j7.register(D1);var Se=D1;function ZR(e){u(e)||(e=new jp),this._clock=e,this._eventHelper=new Gs,this._eventHelper.add(e.onTick,this.synchronize,this),this.systemTime=Se.observable(Q.now()),this.systemTime.equalityComparer=Q.equals,this.startTime=Se.observable(e.startTime),this.startTime.equalityComparer=Q.equals,this.startTime.subscribe(function(t){e.startTime=t,this.synchronize()},this),this.stopTime=Se.observable(e.stopTime),this.stopTime.equalityComparer=Q.equals,this.stopTime.subscribe(function(t){e.stopTime=t,this.synchronize()},this),this.currentTime=Se.observable(e.currentTime),this.currentTime.equalityComparer=Q.equals,this.currentTime.subscribe(function(t){e.currentTime=t,this.synchronize()},this),this.multiplier=Se.observable(e.multiplier),this.multiplier.subscribe(function(t){e.multiplier=t,this.synchronize()},this),this.clockStep=Se.observable(e.clockStep),this.clockStep.subscribe(function(t){e.clockStep=t,this.synchronize()},this),this.clockRange=Se.observable(e.clockRange),this.clockRange.subscribe(function(t){e.clockRange=t,this.synchronize()},this),this.canAnimate=Se.observable(e.canAnimate),this.canAnimate.subscribe(function(t){e.canAnimate=t,this.synchronize()},this),this.shouldAnimate=Se.observable(e.shouldAnimate),this.shouldAnimate.subscribe(function(t){e.shouldAnimate=t,this.synchronize()},this),Se.track(this,["systemTime","startTime","stopTime","currentTime","multiplier","clockStep","clockRange","canAnimate","shouldAnimate"])}Object.defineProperties(ZR.prototype,{clock:{get:function(){return this._clock}}});ZR.prototype.synchronize=function(){let e=this._clock;this.systemTime=Q.now(),this.startTime=e.startTime,this.stopTime=e.stopTime,this.currentTime=e.currentTime,this.multiplier=e.multiplier,this.clockStep=e.clockStep,this.clockRange=e.clockRange,this.canAnimate=e.canAnimate,this.shouldAnimate=e.shouldAnimate};ZR.prototype.isDestroyed=function(){return!1};ZR.prototype.destroy=function(){this._eventHelper.removeAll(),he(this)};var q7=ZR;function $3t(){this.canExecute=void 0,this.beforeExecute=void 0,this.afterExecute=void 0,me.throwInstantiationError()}var D2e=$3t;function Q3t(e,t){t=y(t,!0);let n=new be,i=new be;function r(){let o={args:arguments,cancel:!1},s;return n.raiseEvent(o),o.cancel||(s=e.apply(null,arguments),i.raiseEvent(s)),s}return r.canExecute=t,Se.track(r,["canExecute"]),Object.defineProperties(r,{beforeExecute:{value:n},afterExecute:{value:i}}),r}var ni=Q3t;var $R={};$R.createCheckbox=function(e,t,n){let i=document.createElement("div"),r=document.createElement("label"),o=document.createElement("input");o.type="checkbox";let s=`checked: ${t}`;return u(n)&&(s+=`, enable: ${n}`),o.setAttribute("data-bind",s),r.appendChild(o),r.appendChild(document.createTextNode(e)),i.appendChild(r),i};$R.createSection=function(e,t,n,i){let r=document.createElement("div");r.className="cesium-cesiumInspector-section",r.setAttribute("data-bind",`css: { "cesium-cesiumInspector-section-collapsed": !${n} }`),e.appendChild(r);let o=document.createElement("h3");o.className="cesium-cesiumInspector-sectionHeader",o.appendChild(document.createTextNode(t)),o.setAttribute("data-bind",`click: ${i}`),r.appendChild(o);let s=document.createElement("div");return s.className="cesium-cesiumInspector-sectionContent",r.appendChild(s),s};$R.createRangeInput=function(e,t,n,i,r,o){o=y(o,t);let s=document.createElement("input");s.setAttribute("data-bind",`value: ${o}`),s.type="number";let a=document.createElement("input");a.type="range",a.min=n,a.max=i,a.step=y(r,"any"),a.setAttribute("data-bind",`valueUpdate: "input", value: ${t}`);let c=document.createElement("div");c.appendChild(a);let l=document.createElement("div");return l.className="cesium-cesiumInspector-slider",l.appendChild(document.createTextNode(e)),l.appendChild(s),l.appendChild(c),l};$R.createButton=function(e,t,n){let i=document.createElement("button");i.type="button",i.textContent=e,i.className="cesium-cesiumInspector-pickButton";let r=`click: ${t}`;return u(n)&&(r+=`, css: {"cesium-cesiumInspector-pickButtonHighlight" : ${n}}`),i.setAttribute("data-bind",r),i};var xl=$R;function J3t(e,t,n,i,r){return n.call(i,e[t]),Se.getObservable(e,t).subscribe(n,i,r)}var Bc=J3t;function P2e(e,t){this._command=e,t=y(t,y.EMPTY_OBJECT),this.toggled=y(t.toggled,!1),this.tooltip=y(t.tooltip,""),Se.track(this,["toggled","tooltip"])}Object.defineProperties(P2e.prototype,{command:{get:function(){return this._command}}});var DA=P2e;var PA="http://www.w3.org/2000/svg",O2e="http://www.w3.org/1999/xlink",Y7,QR=z.fromCssColorString("rgba(247,250,255,0.384)"),X7=z.fromCssColorString("rgba(143,191,255,0.216)"),Vne=z.fromCssColorString("rgba(153,197,255,0.098)"),K7=z.fromCssColorString("rgba(255,255,255,0.086)"),eBt=z.fromCssColorString("rgba(255,255,255,0.267)"),tBt=z.fromCssColorString("rgba(255,255,255,0)"),I2e=z.fromCssColorString("rgba(66,67,68,0.3)"),R2e=z.fromCssColorString("rgba(0,0,0,0.5)");function vb(e){return z.fromCssColorString(window.getComputedStyle(e).getPropertyValue("color"))}var JR={animation_pathReset:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M24.316,5.318,9.833,13.682,9.833,5.5,5.5,5.5,5.5,25.5,9.833,25.5,9.833,17.318,24.316,25.682z"},animation_pathPause:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M13,5.5,7.5,5.5,7.5,25.5,13,25.5zM24.5,5.5,19,5.5,19,25.5,24.5,25.5z"},animation_pathPlay:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z"},animation_pathPlayReverse:{tagName:"path",transform:"translate(16,16) scale(-0.85,0.85) translate(-16,-16)",d:"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z"},animation_pathLoop:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M24.249,15.499c-0.009,4.832-3.918,8.741-8.75,8.75c-2.515,0-4.768-1.064-6.365-2.763l2.068-1.442l-7.901-3.703l0.744,8.694l2.193-1.529c2.244,2.594,5.562,4.242,9.26,4.242c6.767,0,12.249-5.482,12.249-12.249H24.249zM15.499,6.75c2.516,0,4.769,1.065,6.367,2.764l-2.068,1.443l7.901,3.701l-0.746-8.693l-2.192,1.529c-2.245-2.594-5.562-4.245-9.262-4.245C8.734,3.25,3.25,8.734,3.249,15.499H6.75C6.758,10.668,10.668,6.758,15.499,6.75z"},animation_pathClock:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-15.5)",d:"M15.5,2.374C8.251,2.375,2.376,8.251,2.374,15.5C2.376,22.748,8.251,28.623,15.5,28.627c7.249-0.004,13.124-5.879,13.125-13.127C28.624,8.251,22.749,2.375,15.5,2.374zM15.5,25.623C9.909,25.615,5.385,21.09,5.375,15.5C5.385,9.909,9.909,5.384,15.5,5.374c5.59,0.01,10.115,4.535,10.124,10.125C25.615,21.09,21.091,25.615,15.5,25.623zM8.625,15.5c-0.001-0.552-0.448-0.999-1.001-1c-0.553,0-1,0.448-1,1c0,0.553,0.449,1,1,1C8.176,16.5,8.624,16.053,8.625,15.5zM8.179,18.572c-0.478,0.277-0.642,0.889-0.365,1.367c0.275,0.479,0.889,0.641,1.365,0.365c0.479-0.275,0.643-0.887,0.367-1.367C9.27,18.461,8.658,18.297,8.179,18.572zM9.18,10.696c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,11.584,9.657,10.973,9.18,10.696zM22.822,12.428c0.478-0.275,0.643-0.888,0.366-1.366c-0.275-0.478-0.89-0.642-1.366-0.366c-0.479,0.278-0.642,0.89-0.366,1.367C21.732,12.54,22.344,12.705,22.822,12.428zM12.062,21.455c-0.478-0.275-1.089-0.111-1.366,0.367c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.277,1.091,0.111,1.365-0.365C12.704,22.344,12.54,21.732,12.062,21.455zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM22.823,18.572c-0.48-0.275-1.092-0.111-1.367,0.365c-0.275,0.479-0.112,1.092,0.367,1.367c0.477,0.275,1.089,0.113,1.365-0.365C23.464,19.461,23.3,18.848,22.823,18.572zM19.938,7.813c-0.477-0.276-1.091-0.111-1.365,0.366c-0.275,0.48-0.111,1.091,0.366,1.367s1.089,0.112,1.366-0.366C20.581,8.702,20.418,8.089,19.938,7.813zM23.378,14.5c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1c0.551,0,1-0.447,1-1C24.378,14.949,23.929,14.5,23.378,14.5zM15.501,6.624c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.889-0.365,1.365c0.275,0.479,0.889,0.643,1.365,0.367l3.305-1.676C15.39,16.99,15.444,17,15.501,17c0.828,0,1.5-0.671,1.5-1.5l-0.5-7.876C16.501,7.072,16.053,6.624,15.501,6.624zM15.501,22.377c-0.552,0-1,0.447-1,1s0.448,1,1,1s1-0.447,1-1S16.053,22.377,15.501,22.377zM18.939,21.455c-0.479,0.277-0.643,0.889-0.366,1.367c0.275,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.889,0.366-1.365C20.028,21.344,19.417,21.18,18.939,21.455z"},animation_pathWingButton:{tagName:"path",d:"m 4.5,0.5 c -2.216,0 -4,1.784 -4,4 l 0,24 c 0,2.216 1.784,4 4,4 l 13.71875,0 C 22.478584,27.272785 27.273681,22.511272 32.5,18.25 l 0,-13.75 c 0,-2.216 -1.784,-4 -4,-4 l -24,0 z"},animation_pathPointer:{tagName:"path",d:"M-15,-65,-15,-55,15,-55,15,-65,0,-95z"},animation_pathSwooshFX:{tagName:"path",d:"m 85,0 c 0,16.617 -4.813944,35.356 -13.131081,48.4508 h 6.099803 c 8.317138,-13.0948 13.13322,-28.5955 13.13322,-45.2124 0,-46.94483 -38.402714,-85.00262 -85.7743869,-85.00262 -1.0218522,0 -2.0373001,0.0241 -3.0506131,0.0589 45.958443,1.59437 82.723058,35.77285 82.723058,81.70532 z"}};function Hm(e){let t=document.createElementNS(PA,e.tagName);for(let n in e)if(e.hasOwnProperty(n)&&n!=="tagName")if(n==="children"){let i=e.children.length;for(let r=0;r<i;++r)t.appendChild(Hm(e.children[r]))}else n.indexOf("xlink:")===0?t.setAttributeNS(O2e,n.substring(6),e[n]):n==="textContent"?t.textContent=e[n]:t.setAttribute(n,e[n]);return t}function Une(e,t,n){let i=document.createElementNS(PA,"text");i.setAttribute("x",e),i.setAttribute("y",t),i.setAttribute("class","cesium-animation-svgText");let r=document.createElementNS(PA,"tspan");return r.textContent=n,i.appendChild(r),i}function nBt(e,t,n){e.setAttribute("transform",`translate(100,100) rotate(${n})`),t.setAttribute("transform",`rotate(${n})`)}var Z7=new z;function Qs(e,t){let n=t.alpha,i=1-n;return Z7.red=e.red*i+t.red*n,Z7.green=e.green*i+t.green*n,Z7.blue=e.blue*i+t.blue*n,Z7.toCssColorString()}function zne(e,t,n){let i=JR[n],r={tagName:"g",class:"cesium-animation-rectButton",transform:`translate(${e},${t})`,children:[{tagName:"rect",class:"cesium-animation-buttonGlow",width:32,height:32,rx:2,ry:2},{tagName:"rect",class:"cesium-animation-buttonMain",width:32,height:32,rx:4,ry:4},{class:"cesium-animation-buttonPath",id:n,tagName:i.tagName,transform:i.transform,d:i.d},{tagName:"title",textContent:""}]};return Hm(r)}function iBt(e,t,n){let i=JR[n],r=JR.animation_pathWingButton,o={tagName:"g",class:"cesium-animation-rectButton",transform:`translate(${e},${t})`,children:[{class:"cesium-animation-buttonGlow",id:"animation_pathWingButton",tagName:r.tagName,d:r.d},{class:"cesium-animation-buttonMain",id:"animation_pathWingButton",tagName:r.tagName,d:r.d},{class:"cesium-animation-buttonPath",id:n,tagName:i.tagName,transform:i.transform,d:i.d},{tagName:"title",textContent:""}]};return Hm(o)}function rBt(e,t){let n=e._viewModel,i=n.shuttleRingDragging;if(!(i&&Y7!==e))if(t.type==="mousedown"||i&&t.type==="mousemove"||t.type==="touchstart"&&t.touches.length===1||i&&t.type==="touchmove"&&t.touches.length===1){let r=e._centerX,o=e._centerY,a=e._svgNode.getBoundingClientRect(),c,l;if(t.type==="touchstart"||t.type==="touchmove"?(c=t.touches[0].clientX,l=t.touches[0].clientY):(c=t.clientX,l=t.clientY),!i&&(c>a.right||c<a.left||l<a.top||l>a.bottom))return;let f=e._shuttleRingPointer.getBoundingClientRect(),d=c-r-a.left,p=l-o-a.top,_=Math.atan2(p,d)*180/Math.PI+90;_>180&&(_-=360);let m=n.shuttleRingAngle;i||c<f.right&&c>f.left&&l>f.top&&l<f.bottom?(Y7=e,n.shuttleRingDragging=!0,n.shuttleRingAngle=_):_<m?n.slower():_>m&&n.faster(),t.preventDefault()}else e===Y7&&(Y7=void 0),n.shuttleRingDragging=!1}function S0(e,t){this._viewModel=t,this.svgElement=e,this._enabled=void 0,this._toggled=void 0;let n=this;this._clickFunction=function(){let i=n._viewModel.command;i.canExecute&&i()},e.addEventListener("click",this._clickFunction,!0),this._subscriptions=[Bc(t,"toggled",this.setToggled,this),Bc(t,"tooltip",this.setTooltip,this),Bc(t.command,"canExecute",this.setEnabled,this)]}S0.prototype.destroy=function(){this.svgElement.removeEventListener("click",this._clickFunction,!0);let e=this._subscriptions;for(let t=0,n=e.length;t<n;t++)e[t].dispose();he(this)};S0.prototype.isDestroyed=function(){return!1};S0.prototype.setEnabled=function(e){if(this._enabled!==e){if(this._enabled=e,!e){this.svgElement.setAttribute("class","cesium-animation-buttonDisabled");return}if(this._toggled){this.svgElement.setAttribute("class","cesium-animation-rectButton cesium-animation-buttonToggled");return}this.svgElement.setAttribute("class","cesium-animation-rectButton")}};S0.prototype.setToggled=function(e){this._toggled!==e&&(this._toggled=e,this._enabled&&(e?this.svgElement.setAttribute("class","cesium-animation-rectButton cesium-animation-buttonToggled"):this.svgElement.setAttribute("class","cesium-animation-rectButton")))};S0.prototype.setTooltip=function(e){this.svgElement.getElementsByTagName("title")[0].textContent=e};function P1(e,t){e=li(e),this._viewModel=t,this._container=e,this._centerX=0,this._centerY=0,this._defsElement=void 0,this._svgNode=void 0,this._topG=void 0,this._lastHeight=void 0,this._lastWidth=void 0;let n=e.ownerDocument,i=document.createElement("style");i.textContent=".cesium-animation-rectButton .cesium-animation-buttonGlow { filter: url(#animation_blurred); }.cesium-animation-rectButton .cesium-animation-buttonMain { fill: url(#animation_buttonNormal); }.cesium-animation-buttonToggled .cesium-animation-buttonMain { fill: url(#animation_buttonToggled); }.cesium-animation-rectButton:hover .cesium-animation-buttonMain { fill: url(#animation_buttonHovered); }.cesium-animation-buttonDisabled .cesium-animation-buttonMain { fill: url(#animation_buttonDisabled); }.cesium-animation-shuttleRingG .cesium-animation-shuttleRingSwoosh { fill: url(#animation_shuttleRingSwooshGradient); }.cesium-animation-shuttleRingG:hover .cesium-animation-shuttleRingSwoosh { fill: url(#animation_shuttleRingSwooshHovered); }.cesium-animation-shuttleRingPointer { fill: url(#animation_shuttleRingPointerGradient); }.cesium-animation-shuttleRingPausePointer { fill: url(#animation_shuttleRingPointerPaused); }.cesium-animation-knobOuter { fill: url(#animation_knobOuter); }.cesium-animation-knobInner { fill: url(#animation_knobInner); }",n.head.insertBefore(i,n.head.childNodes[0]);let r=document.createElement("div");r.className="cesium-animation-theme",r.innerHTML='<div class="cesium-animation-themeNormal"></div><div class="cesium-animation-themeHover"></div><div class="cesium-animation-themeSelect"></div><div class="cesium-animation-themeDisabled"></div><div class="cesium-animation-themeKnob"></div><div class="cesium-animation-themePointer"></div><div class="cesium-animation-themeSwoosh"></div><div class="cesium-animation-themeSwooshHover"></div>',this._theme=r,this._themeNormal=r.childNodes[0],this._themeHover=r.childNodes[1],this._themeSelect=r.childNodes[2],this._themeDisabled=r.childNodes[3],this._themeKnob=r.childNodes[4],this._themePointer=r.childNodes[5],this._themeSwoosh=r.childNodes[6],this._themeSwooshHover=r.childNodes[7];let o=document.createElementNS(PA,"svg:svg");this._svgNode=o,o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",O2e);let s=document.createElementNS(PA,"g");this._topG=s,this._realtimeSVG=new S0(iBt(3,4,"animation_pathClock"),t.playRealtimeViewModel),this._playReverseSVG=new S0(zne(44,99,"animation_pathPlayReverse"),t.playReverseViewModel),this._playForwardSVG=new S0(zne(124,99,"animation_pathPlay"),t.playForwardViewModel),this._pauseSVG=new S0(zne(84,99,"animation_pathPause"),t.pauseViewModel);let a=document.createElementNS(PA,"g");a.appendChild(this._realtimeSVG.svgElement),a.appendChild(this._playReverseSVG.svgElement),a.appendChild(this._playForwardSVG.svgElement),a.appendChild(this._pauseSVG.svgElement);let c=Hm({tagName:"circle",class:"cesium-animation-shuttleRingBack",cx:100,cy:100,r:99});this._shuttleRingBackPanel=c;let l=JR.animation_pathSwooshFX,f=JR.animation_pathPointer,d=Hm({tagName:"g",class:"cesium-animation-shuttleRingSwoosh",children:[{tagName:l.tagName,transform:"translate(100,97) scale(-1,1)",id:"animation_pathSwooshFX",d:l.d},{tagName:l.tagName,transform:"translate(100,97)",id:"animation_pathSwooshFX",d:l.d},{tagName:"line",x1:100,y1:8,x2:100,y2:22}]});this._shuttleRingSwooshG=d,this._shuttleRingPointer=Hm({class:"cesium-animation-shuttleRingPointer",id:"animation_pathPointer",tagName:f.tagName,d:f.d});let p=Hm({tagName:"g",transform:"translate(100,100)"});this._knobOuter=Hm({tagName:"circle",class:"cesium-animation-knobOuter",cx:0,cy:0,r:71});let _=61,m=Hm({tagName:"circle",class:"cesium-animation-knobInner",cx:0,cy:0,r:_});this._knobDate=Une(0,-24,""),this._knobTime=Une(0,-7,""),this._knobStatus=Une(0,-41,"");let x=Hm({tagName:"circle",class:"cesium-animation-blank",cx:0,cy:0,r:_}),b=document.createElementNS(PA,"g");b.setAttribute("class","cesium-animation-shuttleRingG"),e.appendChild(r),s.appendChild(b),s.appendChild(p),s.appendChild(a),b.appendChild(c),b.appendChild(d),b.appendChild(this._shuttleRingPointer),p.appendChild(this._knobOuter),p.appendChild(m),p.appendChild(this._knobDate),p.appendChild(this._knobTime),p.appendChild(this._knobStatus),p.appendChild(x),o.appendChild(s),e.appendChild(o);let T=this;function C(R){rBt(T,R)}this._mouseCallback=C,c.addEventListener("mousedown",C,!0),c.addEventListener("touchstart",C,!0),d.addEventListener("mousedown",C,!0),d.addEventListener("touchstart",C,!0),n.addEventListener("mousemove",C,!0),n.addEventListener("touchmove",C,!0),n.addEventListener("mouseup",C,!0),n.addEventListener("touchend",C,!0),n.addEventListener("touchcancel",C,!0),this._shuttleRingPointer.addEventListener("mousedown",C,!0),this._shuttleRingPointer.addEventListener("touchstart",C,!0),this._knobOuter.addEventListener("mousedown",C,!0),this._knobOuter.addEventListener("touchstart",C,!0);let A=this._knobTime.childNodes[0],E=this._knobDate.childNodes[0],v=this._knobStatus.childNodes[0],D;this._subscriptions=[Bc(t.pauseViewModel,"toggled",function(R){D!==R&&(D=R,D?T._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPausePointer"):T._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPointer"))}),Bc(t,"shuttleRingAngle",function(R){nBt(T._shuttleRingPointer,T._knobOuter,R)}),Bc(t,"dateLabel",function(R){E.textContent!==R&&(E.textContent=R)}),Bc(t,"timeLabel",function(R){A.textContent!==R&&(A.textContent=R)}),Bc(t,"multiplierLabel",function(R){v.textContent!==R&&(v.textContent=R)})],this.applyThemeChanges(),this.resize()}Object.defineProperties(P1.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});P1.prototype.isDestroyed=function(){return!1};P1.prototype.destroy=function(){u(this._observer)&&(this._observer.disconnect(),this._observer=void 0);let e=this._container.ownerDocument,t=this._mouseCallback;this._shuttleRingBackPanel.removeEventListener("mousedown",t,!0),this._shuttleRingBackPanel.removeEventListener("touchstart",t,!0),this._shuttleRingSwooshG.removeEventListener("mousedown",t,!0),this._shuttleRingSwooshG.removeEventListener("touchstart",t,!0),e.removeEventListener("mousemove",t,!0),e.removeEventListener("touchmove",t,!0),e.removeEventListener("mouseup",t,!0),e.removeEventListener("touchend",t,!0),e.removeEventListener("touchcancel",t,!0),this._shuttleRingPointer.removeEventListener("mousedown",t,!0),this._shuttleRingPointer.removeEventListener("touchstart",t,!0),this._knobOuter.removeEventListener("mousedown",t,!0),this._knobOuter.removeEventListener("touchstart",t,!0),this._container.removeChild(this._svgNode),this._container.removeChild(this._theme),this._realtimeSVG.destroy(),this._playReverseSVG.destroy(),this._playForwardSVG.destroy(),this._pauseSVG.destroy();let n=this._subscriptions;for(let i=0,r=n.length;i<r;i++)n[i].dispose();return he(this)};P1.prototype.resize=function(){let e=this._container.clientWidth,t=this._container.clientHeight;if(e===this._lastWidth&&t===this._lastHeight)return;let n=this._svgNode,i=200,r=132,o=e,s=t;e===0&&t===0?(o=i,s=r):e===0?(s=t,o=i*(t/r)):t===0&&(o=e,s=r*(e/i));let a=o/i,c=s/r;n.style.cssText=`width: ${o}px; height: ${s}px; position: absolute; bottom: 0; left: 0; overflow: hidden;`,n.setAttribute("width",o),n.setAttribute("height",s),n.setAttribute("viewBox",`0 0 ${o} ${s}`),this._topG.setAttribute("transform",`scale(${a},${c})`),this._centerX=Math.max(1,100*a),this._centerY=Math.max(1,100*c),this._lastHeight=e,this._lastWidth=t};P1.prototype.applyThemeChanges=function(){let e=this._container.ownerDocument;if(!e.body.contains(this._container)){if(u(this._observer))return;let f=this;f._observer=new MutationObserver(function(){e.body.contains(f._container)&&(f._observer.disconnect(),f._observer=void 0,f.applyThemeChanges())}),f._observer.observe(e,{childList:!0,subtree:!0});return}let t=vb(this._themeNormal),n=vb(this._themeHover),i=vb(this._themeSelect),r=vb(this._themeDisabled),o=vb(this._themeKnob),s=vb(this._themePointer),a=vb(this._themeSwoosh),c=vb(this._themeSwooshHover),l=Hm({tagName:"defs",children:[{id:"animation_buttonNormal",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":Qs(t,QR)},{tagName:"stop",offset:"12%","stop-color":Qs(t,X7)},{tagName:"stop",offset:"46%","stop-color":Qs(t,Vne)},{tagName:"stop",offset:"81%","stop-color":Qs(t,K7)}]},{id:"animation_buttonHovered",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":Qs(n,QR)},{tagName:"stop",offset:"12%","stop-color":Qs(n,X7)},{tagName:"stop",offset:"46%","stop-color":Qs(n,Vne)},{tagName:"stop",offset:"81%","stop-color":Qs(n,K7)}]},{id:"animation_buttonToggled",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":Qs(i,QR)},{tagName:"stop",offset:"12%","stop-color":Qs(i,X7)},{tagName:"stop",offset:"46%","stop-color":Qs(i,Vne)},{tagName:"stop",offset:"81%","stop-color":Qs(i,K7)}]},{id:"animation_buttonDisabled",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":Qs(r,eBt)},{tagName:"stop",offset:"75%","stop-color":Qs(r,tBt)}]},{id:"animation_blurred",tagName:"filter",width:"200%",height:"200%",x:"-50%",y:"-50%",children:[{tagName:"feGaussianBlur",stdDeviation:4,in:"SourceGraphic"}]},{id:"animation_shuttleRingSwooshGradient",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-opacity":.2,"stop-color":a.toCssColorString()},{tagName:"stop",offset:"85%","stop-opacity":.85,"stop-color":a.toCssColorString()},{tagName:"stop",offset:"95%","stop-opacity":.05,"stop-color":a.toCssColorString()}]},{id:"animation_shuttleRingSwooshHovered",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-opacity":.2,"stop-color":c.toCssColorString()},{tagName:"stop",offset:"85%","stop-opacity":.85,"stop-color":c.toCssColorString()},{tagName:"stop",offset:"95%","stop-opacity":.05,"stop-color":c.toCssColorString()}]},{id:"animation_shuttleRingPointerGradient",tagName:"linearGradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%",children:[{tagName:"stop",offset:"0%","stop-color":s.toCssColorString()},{tagName:"stop",offset:"40%","stop-color":s.toCssColorString()},{tagName:"stop",offset:"60%","stop-color":Qs(s,R2e)},{tagName:"stop",offset:"100%","stop-color":Qs(s,R2e)}]},{id:"animation_shuttleRingPointerPaused",tagName:"linearGradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%",children:[{tagName:"stop",offset:"0%","stop-color":"#CCC"},{tagName:"stop",offset:"40%","stop-color":"#CCC"},{tagName:"stop",offset:"60%","stop-color":"#555"},{tagName:"stop",offset:"100%","stop-color":"#555"}]},{id:"animation_knobOuter",tagName:"linearGradient",x1:"20%",y1:"0%",x2:"90%",y2:"100%",children:[{tagName:"stop",offset:"5%","stop-color":Qs(o,QR)},{tagName:"stop",offset:"60%","stop-color":Qs(o,I2e)},{tagName:"stop",offset:"85%","stop-color":Qs(o,X7)}]},{id:"animation_knobInner",tagName:"linearGradient",x1:"20%",y1:"0%",x2:"90%",y2:"100%",children:[{tagName:"stop",offset:"5%","stop-color":Qs(o,I2e)},{tagName:"stop",offset:"60%","stop-color":Qs(o,QR)},{tagName:"stop",offset:"85%","stop-color":Qs(o,K7)}]}]});u(this._defsElement)?this._svgNode.replaceChild(l,this._defsElement):this._svgNode.appendChild(l),this._defsElement=l};var $7=P1;var oBt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wb=15,I1=105;function M2e(e,t){return e-t}function Hne(e,t){let n=Lo(t,e,M2e);return n<0?~n:n}function sBt(e,t){if(Math.abs(e)<=wb)return e/wb;let n=wb,i=I1,r,o=0,s;return e>0?(r=Math.log(t[t.length-1]),s=(r-o)/(i-n),Math.exp(o+s*(e-n))):(r=Math.log(-t[0]),s=(r-o)/(i-n),-Math.exp(o+s*(Math.abs(e)-n)))}function aBt(e,t,n){if(n.clockStep===mo.SYSTEM_CLOCK)return wb;if(Math.abs(e)<=1)return e*wb;let i=t[t.length-1];e>i?e=i:e<-i&&(e=-i);let r=wb,o=I1,s,a=0,c;return e>0?(s=Math.log(i),c=(s-a)/(o-r),(Math.log(e)-a)/c+r):(s=Math.log(-t[0]),c=(s-a)/(o-r),-((Math.log(Math.abs(e))-a)/c+r))}function xh(e){let t=this;this._clockViewModel=e,this._allShuttleRingTicks=[],this._dateFormatter=xh.defaultDateFormatter,this._timeFormatter=xh.defaultTimeFormatter,this.shuttleRingDragging=!1,this.snapToTicks=!1,Se.track(this,["_allShuttleRingTicks","_dateFormatter","_timeFormatter","shuttleRingDragging","snapToTicks"]),this._sortedFilteredPositiveTicks=[],this.setShuttleRingTicks(xh.defaultTicks),this.timeLabel=void 0,Se.defineProperty(this,"timeLabel",function(){return t._timeFormatter(t._clockViewModel.currentTime,t)}),this.dateLabel=void 0,Se.defineProperty(this,"dateLabel",function(){return t._dateFormatter(t._clockViewModel.currentTime,t)}),this.multiplierLabel=void 0,Se.defineProperty(this,"multiplierLabel",function(){let s=t._clockViewModel;if(s.clockStep===mo.SYSTEM_CLOCK)return"Today";let a=s.multiplier;return a%1===0?`${a.toFixed(0)}x`:`${a.toFixed(3).replace(/0{0,3}$/,"")}x`}),this.shuttleRingAngle=void 0,Se.defineProperty(this,"shuttleRingAngle",{get:function(){return aBt(e.multiplier,t._allShuttleRingTicks,e)},set:function(s){s=Math.max(Math.min(s,I1),-I1);let a=t._allShuttleRingTicks,c=t._clockViewModel;if(c.clockStep=mo.SYSTEM_CLOCK_MULTIPLIER,Math.abs(s)===I1){c.multiplier=s>0?a[a.length-1]:a[0];return}let l=sBt(s,a);if(t.snapToTicks)l=a[Hne(l,a)];else if(l!==0){let f=Math.abs(l);if(f>100){let d=f.toFixed(0).length-2,p=Math.pow(10,d);l=Math.round(l/p)*p|0}else f>wb?l=Math.round(l):f>1?l=+l.toFixed(1):f>0&&(l=+l.toFixed(2))}c.multiplier=l}}),this._canAnimate=void 0,Se.defineProperty(this,"_canAnimate",function(){let s=t._clockViewModel,a=s.clockRange;if(t.shuttleRingDragging||a===qs.UNBOUNDED)return!0;let c=s.multiplier,l=s.currentTime,f=s.startTime,d=!1;if(a===qs.LOOP_STOP)d=Q.greaterThan(l,f)||l.equals(f)&&c>0;else{let p=s.stopTime;d=Q.greaterThan(l,f)&&Q.lessThan(l,p)||l.equals(f)&&c>0||l.equals(p)&&c<0}return d||(s.shouldAnimate=!1),d}),this._isSystemTimeAvailable=void 0,Se.defineProperty(this,"_isSystemTimeAvailable",function(){let s=t._clockViewModel;if(s.clockRange===qs.UNBOUNDED)return!0;let c=s.systemTime;return Q.greaterThanOrEquals(c,s.startTime)&&Q.lessThanOrEquals(c,s.stopTime)}),this._isAnimating=void 0,Se.defineProperty(this,"_isAnimating",function(){return t._clockViewModel.shouldAnimate&&(t._canAnimate||t.shuttleRingDragging)});let n=ni(function(){let s=t._clockViewModel;s.shouldAnimate?s.shouldAnimate=!1:t._canAnimate&&(s.shouldAnimate=!0)});this._pauseViewModel=new DA(n,{toggled:Se.computed(function(){return!t._isAnimating}),tooltip:"Pause"});let i=ni(function(){let s=t._clockViewModel,a=s.multiplier;a>0&&(s.multiplier=-a),s.shouldAnimate=!0});this._playReverseViewModel=new DA(i,{toggled:Se.computed(function(){return t._isAnimating&&e.multiplier<0}),tooltip:"Play Reverse"});let r=ni(function(){let s=t._clockViewModel,a=s.multiplier;a<0&&(s.multiplier=-a),s.shouldAnimate=!0});this._playForwardViewModel=new DA(r,{toggled:Se.computed(function(){return t._isAnimating&&e.multiplier>0&&e.clockStep!==mo.SYSTEM_CLOCK}),tooltip:"Play Forward"});let o=ni(function(){t._clockViewModel.clockStep=mo.SYSTEM_CLOCK},Se.getObservable(this,"_isSystemTimeAvailable"));this._playRealtimeViewModel=new DA(o,{toggled:Se.computed(function(){return e.clockStep===mo.SYSTEM_CLOCK}),tooltip:Se.computed(function(){return t._isSystemTimeAvailable?"Today (real-time)":"Current time not in range"})}),this._slower=ni(function(){let s=t._clockViewModel,a=t._allShuttleRingTicks,c=s.multiplier,l=Hne(c,a)-1;l>=0&&(s.multiplier=a[l])}),this._faster=ni(function(){let s=t._clockViewModel,a=t._allShuttleRingTicks,c=s.multiplier,l=Hne(c,a)+1;l<a.length&&(s.multiplier=a[l])})}xh.defaultDateFormatter=function(e,t){let n=Q.toGregorianDate(e);return`${oBt[n.month-1]} ${n.day} ${n.year}`};xh.defaultTicks=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800];xh.defaultTimeFormatter=function(e,t){let n=Q.toGregorianDate(e),i=Math.round(n.millisecond);return Math.abs(t._clockViewModel.multiplier)<1?`${n.hour.toString().padStart(2,"0")}:${n.minute.toString().padStart(2,"0")}:${n.second.toString().padStart(2,"0")}.${i.toString().padStart(3,"0")}`:`${n.hour.toString().padStart(2,"0")}:${n.minute.toString().padStart(2,"0")}:${n.second.toString().padStart(2,"0")} UTC`};xh.prototype.getShuttleRingTicks=function(){return this._sortedFilteredPositiveTicks.slice(0)};xh.prototype.setShuttleRingTicks=function(e){let t,n,i,r={},o=this._sortedFilteredPositiveTicks;for(o.length=0,t=0,n=e.length;t<n;++t)i=e[t],r.hasOwnProperty(i)||(r[i]=!0,o.push(i));o.sort(M2e);let s=[];for(n=o.length,t=n-1;t>=0;--t)i=o[t],i!==0&&s.push(-i);Array.prototype.push.apply(s,o),this._allShuttleRingTicks=s};Object.defineProperties(xh.prototype,{slower:{get:function(){return this._slower}},faster:{get:function(){return this._faster}},clockViewModel:{get:function(){return this._clockViewModel}},pauseViewModel:{get:function(){return this._pauseViewModel}},playReverseViewModel:{get:function(){return this._playReverseViewModel}},playForwardViewModel:{get:function(){return this._playForwardViewModel}},playRealtimeViewModel:{get:function(){return this._playRealtimeViewModel}},dateFormatter:{get:function(){return this._dateFormatter},set:function(e){this._dateFormatter=e}},timeFormatter:{get:function(){return this._timeFormatter},set:function(e){this._timeFormatter=e}}});xh._maxShuttleRingAngle=I1;xh._realtimeShuttleRingAngle=wb;var Q7=xh;function L2e(e){e=y(e,y.EMPTY_OBJECT);let t=e.globe,n=y(e.imageryProviderViewModels,[]),i=y(e.terrainProviderViewModels,[]);this._globe=t,this.imageryProviderViewModels=n.slice(0),this.terrainProviderViewModels=i.slice(0),this.dropDownVisible=!1,Se.track(this,["imageryProviderViewModels","terrainProviderViewModels","dropDownVisible"]);let r=Se.getObservable(this,"imageryProviderViewModels"),o=Se.pureComputed(function(){let d=r(),p={},_;for(_=0;_<d.length;_++){let b=d[_],T=b.category;u(p[T])?p[T].push(b):p[T]=[b]}let m=Object.keys(p),x=[];for(_=0;_<m.length;_++){let b=m[_];x.push({name:b,providers:p[b]})}return x});this._imageryProviders=o;let s=Se.getObservable(this,"terrainProviderViewModels"),a=Se.pureComputed(function(){let d=s(),p={},_;for(_=0;_<d.length;_++){let b=d[_],T=b.category;u(p[T])?p[T].push(b):p[T]=[b]}let m=Object.keys(p),x=[];for(_=0;_<m.length;_++){let b=m[_];x.push({name:b,providers:p[b]})}return x});this._terrainProviders=a,this.buttonTooltip=void 0,Se.defineProperty(this,"buttonTooltip",function(){let d=this.selectedImagery,p=this.selectedTerrain,_=u(d)?d.name:void 0,m=u(p)?p.name:void 0;return u(_)&&u(m)?`${_}
|
|
19018
|
-
|
|
19017
|
+
*/var Bne="__knockoutObservables",kne="__knockoutSubscribable";function A2e(e,t){if(!e)throw new Error("When calling ko.track, you must pass an object as the first parameter.");var n=this,i=E2e(e,!0);return t=t||Object.getOwnPropertyNames(e),t.forEach(function(r){if(!(r===Bne||r===kne)&&!(r in i)){var o=e[r],s=o instanceof Array,a=n.isObservable(o)?o:s?n.observableArray(o):n.observable(o);Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get:a,set:n.isWriteableObservable(a)?a:void 0}),i[r]=a,s&&G3t(n,a)}}),e}function E2e(e,t){var n=e[Bne];return!n&&t&&(n={},Object.defineProperty(e,Bne,{value:n})),n}function H3t(e,t,n){var i=this,r={owner:e,deferEvaluation:!0};if(typeof n=="function")r.read=n;else{if("value"in n)throw new Error('For ko.defineProperty, you must not specify a "value" for the property. You must provide a "get" function.');if(typeof n.get!="function")throw new Error('For ko.defineProperty, the third parameter must be either an evaluator function, or an options object containing a function called "get".');r.read=n.get,r.write=n.set}return e[t]=i.computed(r),A2e.call(i,e,[t]),e}function G3t(e,t){var n=null;e.computed(function(){n&&(n.dispose(),n=null);var i=t();i instanceof Array&&(n=W3t(e,t,i))})}function W3t(e,t,n){var i=j3t(e,n);return i.subscribe(t)}function j3t(e,t){var n=t[kne];if(!n){n=new e.subscribable,Object.defineProperty(t,kne,{value:n});var i={};q3t(t,n,i),Y3t(e,t,n,i)}return n}function q3t(e,t,n){["pop","push","reverse","shift","sort","splice","unshift"].forEach(function(i){var r=e[i];e[i]=function(){var o=r.apply(this,arguments);return n.pause!==!0&&t.notifySubscribers(this),o}})}function Y3t(e,t,n,i){["remove","removeAll","destroy","destroyAll","replace"].forEach(function(r){Object.defineProperty(t,r,{enumerable:!1,value:function(){var o;i.pause=!0;try{o=e.observableArray.fn[r].apply(e.observableArray(t),arguments)}finally{i.pause=!1}return n.notifySubscribers(t),o}})})}function S2e(e,t){if(!e)return null;var n=E2e(e,!1);return n&&n[t]||null}function X3t(e,t){var n=S2e(e,t);n&&n.valueHasMutated()}function K3t(e){e.track=A2e,e.getObservable=S2e,e.valueHasMutated=X3t,e.defineProperty=H3t}var W7={attachToKo:K3t};var v2e="http://www.w3.org/2000/svg",w2e="cesium-svgPath-svg",Z3t={register:function(e){e.bindingHandlers.cesiumSvgPath={init:function(t,n){let i=document.createElementNS(v2e,"svg:svg");i.setAttribute("class",w2e);let r=document.createElementNS(v2e,"path");return i.appendChild(r),e.virtualElements.setDomNodeChildren(t,[i]),e.computed({read:function(){let o=e.unwrap(n());r.setAttribute("d",e.unwrap(o.path));let s=e.unwrap(o.width),a=e.unwrap(o.height);i.setAttribute("width",s),i.setAttribute("height",a),i.setAttribute("viewBox",`0 0 ${s} ${a}`),o.css&&i.setAttribute("class",`${w2e} ${e.unwrap(o.css)}`)},disposeWhenNodeIsRemoved:t}),{controlsDescendantBindings:!0}}},e.virtualElements.allowedBindings.cesiumSvgPath=!0}},j7=Z3t;W7.attachToKo(D1);j7.register(D1);var Se=D1;function ZR(e){u(e)||(e=new jp),this._clock=e,this._eventHelper=new Gs,this._eventHelper.add(e.onTick,this.synchronize,this),this.systemTime=Se.observable(Q.now()),this.systemTime.equalityComparer=Q.equals,this.startTime=Se.observable(e.startTime),this.startTime.equalityComparer=Q.equals,this.startTime.subscribe(function(t){e.startTime=t,this.synchronize()},this),this.stopTime=Se.observable(e.stopTime),this.stopTime.equalityComparer=Q.equals,this.stopTime.subscribe(function(t){e.stopTime=t,this.synchronize()},this),this.currentTime=Se.observable(e.currentTime),this.currentTime.equalityComparer=Q.equals,this.currentTime.subscribe(function(t){e.currentTime=t,this.synchronize()},this),this.multiplier=Se.observable(e.multiplier),this.multiplier.subscribe(function(t){e.multiplier=t,this.synchronize()},this),this.clockStep=Se.observable(e.clockStep),this.clockStep.subscribe(function(t){e.clockStep=t,this.synchronize()},this),this.clockRange=Se.observable(e.clockRange),this.clockRange.subscribe(function(t){e.clockRange=t,this.synchronize()},this),this.canAnimate=Se.observable(e.canAnimate),this.canAnimate.subscribe(function(t){e.canAnimate=t,this.synchronize()},this),this.shouldAnimate=Se.observable(e.shouldAnimate),this.shouldAnimate.subscribe(function(t){e.shouldAnimate=t,this.synchronize()},this),Se.track(this,["systemTime","startTime","stopTime","currentTime","multiplier","clockStep","clockRange","canAnimate","shouldAnimate"])}Object.defineProperties(ZR.prototype,{clock:{get:function(){return this._clock}}});ZR.prototype.synchronize=function(){let e=this._clock;this.systemTime=Q.now(),this.startTime=e.startTime,this.stopTime=e.stopTime,this.currentTime=e.currentTime,this.multiplier=e.multiplier,this.clockStep=e.clockStep,this.clockRange=e.clockRange,this.canAnimate=e.canAnimate,this.shouldAnimate=e.shouldAnimate};ZR.prototype.isDestroyed=function(){return!1};ZR.prototype.destroy=function(){this._eventHelper.removeAll(),he(this)};var q7=ZR;function $3t(){this.canExecute=void 0,this.beforeExecute=void 0,this.afterExecute=void 0,me.throwInstantiationError()}var D2e=$3t;function Q3t(e,t){t=y(t,!0);let n=new be,i=new be;function r(){let o={args:arguments,cancel:!1},s;return n.raiseEvent(o),o.cancel||(s=e.apply(null,arguments),i.raiseEvent(s)),s}return r.canExecute=t,Se.track(r,["canExecute"]),Object.defineProperties(r,{beforeExecute:{value:n},afterExecute:{value:i}}),r}var ni=Q3t;var $R={};$R.createCheckbox=function(e,t,n){let i=document.createElement("div"),r=document.createElement("label"),o=document.createElement("input");o.type="checkbox";let s=`checked: ${t}`;return u(n)&&(s+=`, enable: ${n}`),o.setAttribute("data-bind",s),r.appendChild(o),r.appendChild(document.createTextNode(e)),i.appendChild(r),i};$R.createSection=function(e,t,n,i){let r=document.createElement("div");r.className="cesium-cesiumInspector-section",r.setAttribute("data-bind",`css: { "cesium-cesiumInspector-section-collapsed": !${n} }`),e.appendChild(r);let o=document.createElement("h3");o.className="cesium-cesiumInspector-sectionHeader",o.appendChild(document.createTextNode(t)),o.setAttribute("data-bind",`click: ${i}`),r.appendChild(o);let s=document.createElement("div");return s.className="cesium-cesiumInspector-sectionContent",r.appendChild(s),s};$R.createRangeInput=function(e,t,n,i,r,o){o=y(o,t);let s=document.createElement("input");s.setAttribute("data-bind",`value: ${o}`),s.type="number";let a=document.createElement("input");a.type="range",a.min=n,a.max=i,a.step=y(r,"any"),a.setAttribute("data-bind",`valueUpdate: "input", value: ${t}`);let c=document.createElement("div");c.appendChild(a);let l=document.createElement("div");return l.className="cesium-cesiumInspector-slider",l.appendChild(document.createTextNode(e)),l.appendChild(s),l.appendChild(c),l};$R.createButton=function(e,t,n){let i=document.createElement("button");i.type="button",i.textContent=e,i.className="cesium-cesiumInspector-pickButton";let r=`click: ${t}`;return u(n)&&(r+=`, css: {"cesium-cesiumInspector-pickButtonHighlight" : ${n}}`),i.setAttribute("data-bind",r),i};var xl=$R;function J3t(e,t,n,i,r){return n.call(i,e[t]),Se.getObservable(e,t).subscribe(n,i,r)}var Bc=J3t;function P2e(e,t){this._command=e,t=y(t,y.EMPTY_OBJECT),this.toggled=y(t.toggled,!1),this.tooltip=y(t.tooltip,""),Se.track(this,["toggled","tooltip"])}Object.defineProperties(P2e.prototype,{command:{get:function(){return this._command}}});var DA=P2e;var PA="http://www.w3.org/2000/svg",O2e="http://www.w3.org/1999/xlink",Y7,QR=z.fromCssColorString("rgba(247,250,255,0.384)"),X7=z.fromCssColorString("rgba(143,191,255,0.216)"),Vne=z.fromCssColorString("rgba(153,197,255,0.098)"),K7=z.fromCssColorString("rgba(255,255,255,0.086)"),eBt=z.fromCssColorString("rgba(255,255,255,0.267)"),tBt=z.fromCssColorString("rgba(255,255,255,0)"),I2e=z.fromCssColorString("rgba(66,67,68,0.3)"),R2e=z.fromCssColorString("rgba(0,0,0,0.5)");function vb(e){return z.fromCssColorString(window.getComputedStyle(e).getPropertyValue("color"))}var JR={animation_pathReset:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M24.316,5.318,9.833,13.682,9.833,5.5,5.5,5.5,5.5,25.5,9.833,25.5,9.833,17.318,24.316,25.682z"},animation_pathPause:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M13,5.5,7.5,5.5,7.5,25.5,13,25.5zM24.5,5.5,19,5.5,19,25.5,24.5,25.5z"},animation_pathPlay:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z"},animation_pathPlayReverse:{tagName:"path",transform:"translate(16,16) scale(-0.85,0.85) translate(-16,-16)",d:"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z"},animation_pathLoop:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M24.249,15.499c-0.009,4.832-3.918,8.741-8.75,8.75c-2.515,0-4.768-1.064-6.365-2.763l2.068-1.442l-7.901-3.703l0.744,8.694l2.193-1.529c2.244,2.594,5.562,4.242,9.26,4.242c6.767,0,12.249-5.482,12.249-12.249H24.249zM15.499,6.75c2.516,0,4.769,1.065,6.367,2.764l-2.068,1.443l7.901,3.701l-0.746-8.693l-2.192,1.529c-2.245-2.594-5.562-4.245-9.262-4.245C8.734,3.25,3.25,8.734,3.249,15.499H6.75C6.758,10.668,10.668,6.758,15.499,6.75z"},animation_pathClock:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-15.5)",d:"M15.5,2.374C8.251,2.375,2.376,8.251,2.374,15.5C2.376,22.748,8.251,28.623,15.5,28.627c7.249-0.004,13.124-5.879,13.125-13.127C28.624,8.251,22.749,2.375,15.5,2.374zM15.5,25.623C9.909,25.615,5.385,21.09,5.375,15.5C5.385,9.909,9.909,5.384,15.5,5.374c5.59,0.01,10.115,4.535,10.124,10.125C25.615,21.09,21.091,25.615,15.5,25.623zM8.625,15.5c-0.001-0.552-0.448-0.999-1.001-1c-0.553,0-1,0.448-1,1c0,0.553,0.449,1,1,1C8.176,16.5,8.624,16.053,8.625,15.5zM8.179,18.572c-0.478,0.277-0.642,0.889-0.365,1.367c0.275,0.479,0.889,0.641,1.365,0.365c0.479-0.275,0.643-0.887,0.367-1.367C9.27,18.461,8.658,18.297,8.179,18.572zM9.18,10.696c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,11.584,9.657,10.973,9.18,10.696zM22.822,12.428c0.478-0.275,0.643-0.888,0.366-1.366c-0.275-0.478-0.89-0.642-1.366-0.366c-0.479,0.278-0.642,0.89-0.366,1.367C21.732,12.54,22.344,12.705,22.822,12.428zM12.062,21.455c-0.478-0.275-1.089-0.111-1.366,0.367c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.277,1.091,0.111,1.365-0.365C12.704,22.344,12.54,21.732,12.062,21.455zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM22.823,18.572c-0.48-0.275-1.092-0.111-1.367,0.365c-0.275,0.479-0.112,1.092,0.367,1.367c0.477,0.275,1.089,0.113,1.365-0.365C23.464,19.461,23.3,18.848,22.823,18.572zM19.938,7.813c-0.477-0.276-1.091-0.111-1.365,0.366c-0.275,0.48-0.111,1.091,0.366,1.367s1.089,0.112,1.366-0.366C20.581,8.702,20.418,8.089,19.938,7.813zM23.378,14.5c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1c0.551,0,1-0.447,1-1C24.378,14.949,23.929,14.5,23.378,14.5zM15.501,6.624c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.889-0.365,1.365c0.275,0.479,0.889,0.643,1.365,0.367l3.305-1.676C15.39,16.99,15.444,17,15.501,17c0.828,0,1.5-0.671,1.5-1.5l-0.5-7.876C16.501,7.072,16.053,6.624,15.501,6.624zM15.501,22.377c-0.552,0-1,0.447-1,1s0.448,1,1,1s1-0.447,1-1S16.053,22.377,15.501,22.377zM18.939,21.455c-0.479,0.277-0.643,0.889-0.366,1.367c0.275,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.889,0.366-1.365C20.028,21.344,19.417,21.18,18.939,21.455z"},animation_pathWingButton:{tagName:"path",d:"m 4.5,0.5 c -2.216,0 -4,1.784 -4,4 l 0,24 c 0,2.216 1.784,4 4,4 l 13.71875,0 C 22.478584,27.272785 27.273681,22.511272 32.5,18.25 l 0,-13.75 c 0,-2.216 -1.784,-4 -4,-4 l -24,0 z"},animation_pathPointer:{tagName:"path",d:"M-15,-65,-15,-55,15,-55,15,-65,0,-95z"},animation_pathSwooshFX:{tagName:"path",d:"m 85,0 c 0,16.617 -4.813944,35.356 -13.131081,48.4508 h 6.099803 c 8.317138,-13.0948 13.13322,-28.5955 13.13322,-45.2124 0,-46.94483 -38.402714,-85.00262 -85.7743869,-85.00262 -1.0218522,0 -2.0373001,0.0241 -3.0506131,0.0589 45.958443,1.59437 82.723058,35.77285 82.723058,81.70532 z"}};function Hm(e){let t=document.createElementNS(PA,e.tagName);for(let n in e)if(e.hasOwnProperty(n)&&n!=="tagName")if(n==="children"){let i=e.children.length;for(let r=0;r<i;++r)t.appendChild(Hm(e.children[r]))}else n.indexOf("xlink:")===0?t.setAttributeNS(O2e,n.substring(6),e[n]):n==="textContent"?t.textContent=e[n]:t.setAttribute(n,e[n]);return t}function Une(e,t,n){let i=document.createElementNS(PA,"text");i.setAttribute("x",e),i.setAttribute("y",t),i.setAttribute("class","cesium-animation-svgText");let r=document.createElementNS(PA,"tspan");return r.textContent=n,i.appendChild(r),i}function nBt(e,t,n){e.setAttribute("transform",`translate(100,100) rotate(${n})`),t.setAttribute("transform",`rotate(${n})`)}var Z7=new z;function Qs(e,t){let n=t.alpha,i=1-n;return Z7.red=e.red*i+t.red*n,Z7.green=e.green*i+t.green*n,Z7.blue=e.blue*i+t.blue*n,Z7.toCssColorString()}function zne(e,t,n){let i=JR[n],r={tagName:"g",class:"cesium-animation-rectButton",transform:`translate(${e},${t})`,children:[{tagName:"rect",class:"cesium-animation-buttonGlow",width:32,height:32,rx:2,ry:2},{tagName:"rect",class:"cesium-animation-buttonMain",width:32,height:32,rx:4,ry:4},{class:"cesium-animation-buttonPath",id:n,tagName:i.tagName,transform:i.transform,d:i.d},{tagName:"title",textContent:""}]};return Hm(r)}function iBt(e,t,n){let i=JR[n],r=JR.animation_pathWingButton,o={tagName:"g",class:"cesium-animation-rectButton",transform:`translate(${e},${t})`,children:[{class:"cesium-animation-buttonGlow",id:"animation_pathWingButton",tagName:r.tagName,d:r.d},{class:"cesium-animation-buttonMain",id:"animation_pathWingButton",tagName:r.tagName,d:r.d},{class:"cesium-animation-buttonPath",id:n,tagName:i.tagName,transform:i.transform,d:i.d},{tagName:"title",textContent:""}]};return Hm(o)}function rBt(e,t){let n=e._viewModel,i=n.shuttleRingDragging;if(!(i&&Y7!==e))if(t.type==="mousedown"||i&&t.type==="mousemove"||t.type==="touchstart"&&t.touches.length===1||i&&t.type==="touchmove"&&t.touches.length===1){let r=e._centerX,o=e._centerY,a=e._svgNode.getBoundingClientRect(),c,l;if(t.type==="touchstart"||t.type==="touchmove"?(c=t.touches[0].clientX,l=t.touches[0].clientY):(c=t.clientX,l=t.clientY),!i&&(c>a.right||c<a.left||l<a.top||l>a.bottom))return;let f=e._shuttleRingPointer.getBoundingClientRect(),d=c-r-a.left,p=l-o-a.top,_=Math.atan2(p,d)*180/Math.PI+90;_>180&&(_-=360);let m=n.shuttleRingAngle;i||c<f.right&&c>f.left&&l>f.top&&l<f.bottom?(Y7=e,n.shuttleRingDragging=!0,n.shuttleRingAngle=_):_<m?n.slower():_>m&&n.faster(),t.preventDefault()}else e===Y7&&(Y7=void 0),n.shuttleRingDragging=!1}function S0(e,t){this._viewModel=t,this.svgElement=e,this._enabled=void 0,this._toggled=void 0;let n=this;this._clickFunction=function(){let i=n._viewModel.command;i.canExecute&&i()},e.addEventListener("click",this._clickFunction,!0),this._subscriptions=[Bc(t,"toggled",this.setToggled,this),Bc(t,"tooltip",this.setTooltip,this),Bc(t.command,"canExecute",this.setEnabled,this)]}S0.prototype.destroy=function(){this.svgElement.removeEventListener("click",this._clickFunction,!0);let e=this._subscriptions;for(let t=0,n=e.length;t<n;t++)e[t].dispose();he(this)};S0.prototype.isDestroyed=function(){return!1};S0.prototype.setEnabled=function(e){if(this._enabled!==e){if(this._enabled=e,!e){this.svgElement.setAttribute("class","cesium-animation-buttonDisabled");return}if(this._toggled){this.svgElement.setAttribute("class","cesium-animation-rectButton cesium-animation-buttonToggled");return}this.svgElement.setAttribute("class","cesium-animation-rectButton")}};S0.prototype.setToggled=function(e){this._toggled!==e&&(this._toggled=e,this._enabled&&(e?this.svgElement.setAttribute("class","cesium-animation-rectButton cesium-animation-buttonToggled"):this.svgElement.setAttribute("class","cesium-animation-rectButton")))};S0.prototype.setTooltip=function(e){this.svgElement.getElementsByTagName("title")[0].textContent=e};function P1(e,t){e=li(e),this._viewModel=t,this._container=e,this._centerX=0,this._centerY=0,this._defsElement=void 0,this._svgNode=void 0,this._topG=void 0,this._lastHeight=void 0,this._lastWidth=void 0;let n=e.ownerDocument,i=document.createElement("style");i.textContent=".cesium-animation-rectButton .cesium-animation-buttonGlow { filter: url(#animation_blurred); }.cesium-animation-rectButton .cesium-animation-buttonMain { fill: url(#animation_buttonNormal); }.cesium-animation-buttonToggled .cesium-animation-buttonMain { fill: url(#animation_buttonToggled); }.cesium-animation-rectButton:hover .cesium-animation-buttonMain { fill: url(#animation_buttonHovered); }.cesium-animation-buttonDisabled .cesium-animation-buttonMain { fill: url(#animation_buttonDisabled); }.cesium-animation-shuttleRingG .cesium-animation-shuttleRingSwoosh { fill: url(#animation_shuttleRingSwooshGradient); }.cesium-animation-shuttleRingG:hover .cesium-animation-shuttleRingSwoosh { fill: url(#animation_shuttleRingSwooshHovered); }.cesium-animation-shuttleRingPointer { fill: url(#animation_shuttleRingPointerGradient); }.cesium-animation-shuttleRingPausePointer { fill: url(#animation_shuttleRingPointerPaused); }.cesium-animation-knobOuter { fill: url(#animation_knobOuter); }.cesium-animation-knobInner { fill: url(#animation_knobInner); }",n.head.insertBefore(i,n.head.childNodes[0]);let r=document.createElement("div");r.className="cesium-animation-theme",r.innerHTML='<div class="cesium-animation-themeNormal"></div><div class="cesium-animation-themeHover"></div><div class="cesium-animation-themeSelect"></div><div class="cesium-animation-themeDisabled"></div><div class="cesium-animation-themeKnob"></div><div class="cesium-animation-themePointer"></div><div class="cesium-animation-themeSwoosh"></div><div class="cesium-animation-themeSwooshHover"></div>',this._theme=r,this._themeNormal=r.childNodes[0],this._themeHover=r.childNodes[1],this._themeSelect=r.childNodes[2],this._themeDisabled=r.childNodes[3],this._themeKnob=r.childNodes[4],this._themePointer=r.childNodes[5],this._themeSwoosh=r.childNodes[6],this._themeSwooshHover=r.childNodes[7];let o=document.createElementNS(PA,"svg:svg");this._svgNode=o,o.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",O2e);let s=document.createElementNS(PA,"g");this._topG=s,this._realtimeSVG=new S0(iBt(3,4,"animation_pathClock"),t.playRealtimeViewModel),this._playReverseSVG=new S0(zne(44,99,"animation_pathPlayReverse"),t.playReverseViewModel),this._playForwardSVG=new S0(zne(124,99,"animation_pathPlay"),t.playForwardViewModel),this._pauseSVG=new S0(zne(84,99,"animation_pathPause"),t.pauseViewModel);let a=document.createElementNS(PA,"g");a.appendChild(this._realtimeSVG.svgElement),a.appendChild(this._playReverseSVG.svgElement),a.appendChild(this._playForwardSVG.svgElement),a.appendChild(this._pauseSVG.svgElement);let c=Hm({tagName:"circle",class:"cesium-animation-shuttleRingBack",cx:100,cy:100,r:99});this._shuttleRingBackPanel=c;let l=JR.animation_pathSwooshFX,f=JR.animation_pathPointer,d=Hm({tagName:"g",class:"cesium-animation-shuttleRingSwoosh",children:[{tagName:l.tagName,transform:"translate(100,97) scale(-1,1)",id:"animation_pathSwooshFX",d:l.d},{tagName:l.tagName,transform:"translate(100,97)",id:"animation_pathSwooshFX",d:l.d},{tagName:"line",x1:100,y1:8,x2:100,y2:22}]});this._shuttleRingSwooshG=d,this._shuttleRingPointer=Hm({class:"cesium-animation-shuttleRingPointer",id:"animation_pathPointer",tagName:f.tagName,d:f.d});let p=Hm({tagName:"g",transform:"translate(100,100)"});this._knobOuter=Hm({tagName:"circle",class:"cesium-animation-knobOuter",cx:0,cy:0,r:71});let _=61,m=Hm({tagName:"circle",class:"cesium-animation-knobInner",cx:0,cy:0,r:_});this._knobDate=Une(0,-24,""),this._knobTime=Une(0,-7,""),this._knobStatus=Une(0,-41,"");let x=Hm({tagName:"circle",class:"cesium-animation-blank",cx:0,cy:0,r:_}),b=document.createElementNS(PA,"g");b.setAttribute("class","cesium-animation-shuttleRingG"),e.appendChild(r),s.appendChild(b),s.appendChild(p),s.appendChild(a),b.appendChild(c),b.appendChild(d),b.appendChild(this._shuttleRingPointer),p.appendChild(this._knobOuter),p.appendChild(m),p.appendChild(this._knobDate),p.appendChild(this._knobTime),p.appendChild(this._knobStatus),p.appendChild(x),o.appendChild(s),e.appendChild(o);let T=this;function C(R){rBt(T,R)}this._mouseCallback=C,c.addEventListener("mousedown",C,!0),c.addEventListener("touchstart",C,!0),d.addEventListener("mousedown",C,!0),d.addEventListener("touchstart",C,!0),n.addEventListener("mousemove",C,!0),n.addEventListener("touchmove",C,!0),n.addEventListener("mouseup",C,!0),n.addEventListener("touchend",C,!0),n.addEventListener("touchcancel",C,!0),this._shuttleRingPointer.addEventListener("mousedown",C,!0),this._shuttleRingPointer.addEventListener("touchstart",C,!0),this._knobOuter.addEventListener("mousedown",C,!0),this._knobOuter.addEventListener("touchstart",C,!0);let A=this._knobTime.childNodes[0],E=this._knobDate.childNodes[0],v=this._knobStatus.childNodes[0],D;this._subscriptions=[Bc(t.pauseViewModel,"toggled",function(R){D!==R&&(D=R,D?T._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPausePointer"):T._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPointer"))}),Bc(t,"shuttleRingAngle",function(R){nBt(T._shuttleRingPointer,T._knobOuter,R)}),Bc(t,"dateLabel",function(R){E.textContent!==R&&(E.textContent=R)}),Bc(t,"timeLabel",function(R){A.textContent!==R&&(A.textContent=R)}),Bc(t,"multiplierLabel",function(R){v.textContent!==R&&(v.textContent=R)})],this.applyThemeChanges(),this.resize()}Object.defineProperties(P1.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});P1.prototype.isDestroyed=function(){return!1};P1.prototype.destroy=function(){u(this._observer)&&(this._observer.disconnect(),this._observer=void 0);let e=this._container.ownerDocument,t=this._mouseCallback;this._shuttleRingBackPanel.removeEventListener("mousedown",t,!0),this._shuttleRingBackPanel.removeEventListener("touchstart",t,!0),this._shuttleRingSwooshG.removeEventListener("mousedown",t,!0),this._shuttleRingSwooshG.removeEventListener("touchstart",t,!0),e.removeEventListener("mousemove",t,!0),e.removeEventListener("touchmove",t,!0),e.removeEventListener("mouseup",t,!0),e.removeEventListener("touchend",t,!0),e.removeEventListener("touchcancel",t,!0),this._shuttleRingPointer.removeEventListener("mousedown",t,!0),this._shuttleRingPointer.removeEventListener("touchstart",t,!0),this._knobOuter.removeEventListener("mousedown",t,!0),this._knobOuter.removeEventListener("touchstart",t,!0),this._container.removeChild(this._svgNode),this._container.removeChild(this._theme),this._realtimeSVG.destroy(),this._playReverseSVG.destroy(),this._playForwardSVG.destroy(),this._pauseSVG.destroy();let n=this._subscriptions;for(let i=0,r=n.length;i<r;i++)n[i].dispose();return he(this)};P1.prototype.resize=function(){let e=this._container.clientWidth,t=this._container.clientHeight;if(e===this._lastWidth&&t===this._lastHeight)return;let n=this._svgNode,i=200,r=132,o=e,s=t;e===0&&t===0?(o=i,s=r):e===0?(s=t,o=i*(t/r)):t===0&&(o=e,s=r*(e/i));let a=o/i,c=s/r;n.style.cssText=`width: ${o}px; height: ${s}px; position: absolute; bottom: 0; left: 0; overflow: hidden;`,n.setAttribute("width",o),n.setAttribute("height",s),n.setAttribute("viewBox",`0 0 ${o} ${s}`),this._topG.setAttribute("transform",`scale(${a},${c})`),this._centerX=Math.max(1,100*a),this._centerY=Math.max(1,100*c),this._lastHeight=e,this._lastWidth=t};P1.prototype.applyThemeChanges=function(){let e=this._container.ownerDocument;if(!e.body.contains(this._container)){if(u(this._observer))return;let f=this;f._observer=new MutationObserver(function(){e.body.contains(f._container)&&(f._observer.disconnect(),f._observer=void 0,f.applyThemeChanges())}),f._observer.observe(e,{childList:!0,subtree:!0});return}let t=vb(this._themeNormal),n=vb(this._themeHover),i=vb(this._themeSelect),r=vb(this._themeDisabled),o=vb(this._themeKnob),s=vb(this._themePointer),a=vb(this._themeSwoosh),c=vb(this._themeSwooshHover),l=Hm({tagName:"defs",children:[{id:"animation_buttonNormal",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":Qs(t,QR)},{tagName:"stop",offset:"12%","stop-color":Qs(t,X7)},{tagName:"stop",offset:"46%","stop-color":Qs(t,Vne)},{tagName:"stop",offset:"81%","stop-color":Qs(t,K7)}]},{id:"animation_buttonHovered",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":Qs(n,QR)},{tagName:"stop",offset:"12%","stop-color":Qs(n,X7)},{tagName:"stop",offset:"46%","stop-color":Qs(n,Vne)},{tagName:"stop",offset:"81%","stop-color":Qs(n,K7)}]},{id:"animation_buttonToggled",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":Qs(i,QR)},{tagName:"stop",offset:"12%","stop-color":Qs(i,X7)},{tagName:"stop",offset:"46%","stop-color":Qs(i,Vne)},{tagName:"stop",offset:"81%","stop-color":Qs(i,K7)}]},{id:"animation_buttonDisabled",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":Qs(r,eBt)},{tagName:"stop",offset:"75%","stop-color":Qs(r,tBt)}]},{id:"animation_blurred",tagName:"filter",width:"200%",height:"200%",x:"-50%",y:"-50%",children:[{tagName:"feGaussianBlur",stdDeviation:4,in:"SourceGraphic"}]},{id:"animation_shuttleRingSwooshGradient",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-opacity":.2,"stop-color":a.toCssColorString()},{tagName:"stop",offset:"85%","stop-opacity":.85,"stop-color":a.toCssColorString()},{tagName:"stop",offset:"95%","stop-opacity":.05,"stop-color":a.toCssColorString()}]},{id:"animation_shuttleRingSwooshHovered",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-opacity":.2,"stop-color":c.toCssColorString()},{tagName:"stop",offset:"85%","stop-opacity":.85,"stop-color":c.toCssColorString()},{tagName:"stop",offset:"95%","stop-opacity":.05,"stop-color":c.toCssColorString()}]},{id:"animation_shuttleRingPointerGradient",tagName:"linearGradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%",children:[{tagName:"stop",offset:"0%","stop-color":s.toCssColorString()},{tagName:"stop",offset:"40%","stop-color":s.toCssColorString()},{tagName:"stop",offset:"60%","stop-color":Qs(s,R2e)},{tagName:"stop",offset:"100%","stop-color":Qs(s,R2e)}]},{id:"animation_shuttleRingPointerPaused",tagName:"linearGradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%",children:[{tagName:"stop",offset:"0%","stop-color":"#CCC"},{tagName:"stop",offset:"40%","stop-color":"#CCC"},{tagName:"stop",offset:"60%","stop-color":"#555"},{tagName:"stop",offset:"100%","stop-color":"#555"}]},{id:"animation_knobOuter",tagName:"linearGradient",x1:"20%",y1:"0%",x2:"90%",y2:"100%",children:[{tagName:"stop",offset:"5%","stop-color":Qs(o,QR)},{tagName:"stop",offset:"60%","stop-color":Qs(o,I2e)},{tagName:"stop",offset:"85%","stop-color":Qs(o,X7)}]},{id:"animation_knobInner",tagName:"linearGradient",x1:"20%",y1:"0%",x2:"90%",y2:"100%",children:[{tagName:"stop",offset:"5%","stop-color":Qs(o,I2e)},{tagName:"stop",offset:"60%","stop-color":Qs(o,QR)},{tagName:"stop",offset:"85%","stop-color":Qs(o,K7)}]}]});u(this._defsElement)?this._svgNode.replaceChild(l,this._defsElement):this._svgNode.appendChild(l),this._defsElement=l};var $7=P1;var oBt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wb=15,I1=105;function M2e(e,t){return e-t}function Hne(e,t){let n=Lo(t,e,M2e);return n<0?~n:n}function sBt(e,t){if(Math.abs(e)<=wb)return e/wb;let n=wb,i=I1,r,o=0,s;return e>0?(r=Math.log(t[t.length-1]),s=(r-o)/(i-n),Math.exp(o+s*(e-n))):(r=Math.log(-t[0]),s=(r-o)/(i-n),-Math.exp(o+s*(Math.abs(e)-n)))}function aBt(e,t,n){if(n.clockStep===mo.SYSTEM_CLOCK)return wb;if(Math.abs(e)<=1)return e*wb;let i=t[t.length-1];e>i?e=i:e<-i&&(e=-i);let r=wb,o=I1,s,a=0,c;return e>0?(s=Math.log(i),c=(s-a)/(o-r),(Math.log(e)-a)/c+r):(s=Math.log(-t[0]),c=(s-a)/(o-r),-((Math.log(Math.abs(e))-a)/c+r))}function xh(e){let t=this;this._clockViewModel=e,this._allShuttleRingTicks=[],this._dateFormatter=xh.defaultDateFormatter,this._timeFormatter=xh.defaultTimeFormatter,this.shuttleRingDragging=!1,this.snapToTicks=!1,Se.track(this,["_allShuttleRingTicks","_dateFormatter","_timeFormatter","shuttleRingDragging","snapToTicks"]),this._sortedFilteredPositiveTicks=[],this.setShuttleRingTicks(xh.defaultTicks),this.timeLabel=void 0,Se.defineProperty(this,"timeLabel",function(){return t._timeFormatter(t._clockViewModel.currentTime,t)}),this.dateLabel=void 0,Se.defineProperty(this,"dateLabel",function(){return t._dateFormatter(t._clockViewModel.currentTime,t)}),this.multiplierLabel=void 0,Se.defineProperty(this,"multiplierLabel",function(){let s=t._clockViewModel;if(s.clockStep===mo.SYSTEM_CLOCK)return"Today";let a=s.multiplier;return a%1===0?`${a.toFixed(0)}x`:`${a.toFixed(3).replace(/0{0,3}$/,"")}x`}),this.shuttleRingAngle=void 0,Se.defineProperty(this,"shuttleRingAngle",{get:function(){return aBt(e.multiplier,t._allShuttleRingTicks,e)},set:function(s){s=Math.max(Math.min(s,I1),-I1);let a=t._allShuttleRingTicks,c=t._clockViewModel;if(c.clockStep=mo.SYSTEM_CLOCK_MULTIPLIER,Math.abs(s)===I1){c.multiplier=s>0?a[a.length-1]:a[0];return}let l=sBt(s,a);if(t.snapToTicks)l=a[Hne(l,a)];else if(l!==0){let f=Math.abs(l);if(f>100){let d=f.toFixed(0).length-2,p=Math.pow(10,d);l=Math.round(l/p)*p|0}else f>wb?l=Math.round(l):f>1?l=+l.toFixed(1):f>0&&(l=+l.toFixed(2))}c.multiplier=l}}),this._canAnimate=void 0,Se.defineProperty(this,"_canAnimate",function(){let s=t._clockViewModel,a=s.clockRange;if(t.shuttleRingDragging||a===qs.UNBOUNDED)return!0;let c=s.multiplier,l=s.currentTime,f=s.startTime,d=!1;if(a===qs.LOOP_STOP)d=Q.greaterThan(l,f)||l.equals(f)&&c>0;else{let p=s.stopTime;d=Q.greaterThan(l,f)&&Q.lessThan(l,p)||l.equals(f)&&c>0||l.equals(p)&&c<0}return d||(s.shouldAnimate=!1),d}),this._isSystemTimeAvailable=void 0,Se.defineProperty(this,"_isSystemTimeAvailable",function(){let s=t._clockViewModel;if(s.clockRange===qs.UNBOUNDED)return!0;let c=s.systemTime;return Q.greaterThanOrEquals(c,s.startTime)&&Q.lessThanOrEquals(c,s.stopTime)}),this._isAnimating=void 0,Se.defineProperty(this,"_isAnimating",function(){return t._clockViewModel.shouldAnimate&&(t._canAnimate||t.shuttleRingDragging)});let n=ni(function(){let s=t._clockViewModel;s.shouldAnimate?s.shouldAnimate=!1:t._canAnimate&&(s.shouldAnimate=!0)});this._pauseViewModel=new DA(n,{toggled:Se.computed(function(){return!t._isAnimating}),tooltip:"Pause"});let i=ni(function(){let s=t._clockViewModel,a=s.multiplier;a>0&&(s.multiplier=-a),s.shouldAnimate=!0});this._playReverseViewModel=new DA(i,{toggled:Se.computed(function(){return t._isAnimating&&e.multiplier<0}),tooltip:"Play Reverse"});let r=ni(function(){let s=t._clockViewModel,a=s.multiplier;a<0&&(s.multiplier=-a),s.shouldAnimate=!0});this._playForwardViewModel=new DA(r,{toggled:Se.computed(function(){return t._isAnimating&&e.multiplier>0&&e.clockStep!==mo.SYSTEM_CLOCK}),tooltip:"Play Forward"});let o=ni(function(){t._clockViewModel.clockStep=mo.SYSTEM_CLOCK},Se.getObservable(this,"_isSystemTimeAvailable"));this._playRealtimeViewModel=new DA(o,{toggled:Se.computed(function(){return e.clockStep===mo.SYSTEM_CLOCK}),tooltip:Se.computed(function(){return t._isSystemTimeAvailable?"Today (real-time)":"Current time not in range"})}),this._slower=ni(function(){let s=t._clockViewModel,a=t._allShuttleRingTicks,c=s.multiplier,l=Hne(c,a)-1;l>=0&&(s.multiplier=a[l])}),this._faster=ni(function(){let s=t._clockViewModel,a=t._allShuttleRingTicks,c=s.multiplier,l=Hne(c,a)+1;l<a.length&&(s.multiplier=a[l])})}xh.defaultDateFormatter=function(e,t){let n=Q.toGregorianDate(e);return`${oBt[n.month-1]} ${n.day} ${n.year}`};xh.defaultTicks=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800];xh.defaultTimeFormatter=function(e,t){let n=Q.toGregorianDate(e),i=Math.round(n.millisecond);return Math.abs(t._clockViewModel.multiplier)<1?`${n.hour.toString().padStart(2,"0")}:${n.minute.toString().padStart(2,"0")}:${n.second.toString().padStart(2,"0")}.${i.toString().padStart(3,"0")}`:`${n.hour.toString().padStart(2,"0")}:${n.minute.toString().padStart(2,"0")}:${n.second.toString().padStart(2,"0")} UTC`};xh.prototype.getShuttleRingTicks=function(){return this._sortedFilteredPositiveTicks.slice(0)};xh.prototype.setShuttleRingTicks=function(e){let t,n,i,r={},o=this._sortedFilteredPositiveTicks;for(o.length=0,t=0,n=e.length;t<n;++t)i=e[t],r.hasOwnProperty(i)||(r[i]=!0,o.push(i));o.sort(M2e);let s=[];for(n=o.length,t=n-1;t>=0;--t)i=o[t],i!==0&&s.push(-i);Array.prototype.push.apply(s,o),this._allShuttleRingTicks=s};Object.defineProperties(xh.prototype,{slower:{get:function(){return this._slower}},faster:{get:function(){return this._faster}},clockViewModel:{get:function(){return this._clockViewModel}},pauseViewModel:{get:function(){return this._pauseViewModel}},playReverseViewModel:{get:function(){return this._playReverseViewModel}},playForwardViewModel:{get:function(){return this._playForwardViewModel}},playRealtimeViewModel:{get:function(){return this._playRealtimeViewModel}},dateFormatter:{get:function(){return this._dateFormatter},set:function(e){this._dateFormatter=e}},timeFormatter:{get:function(){return this._timeFormatter},set:function(e){this._timeFormatter=e}}});xh._maxShuttleRingAngle=I1;xh._realtimeShuttleRingAngle=wb;var Q7=xh;function cBt(e){return function(t){let n=e._scene.pick(t.position);u(n)&&(n.primitive instanceof oa||n.primitive instanceof Kl)&&(e.tileset=n.primitive),e.pickActive=!1}}function N2e(e,t){t?e._eventHandler.setInputAction(function(n){let i=e._scene.pick(n.endPosition);u(i)&&(i.primitive instanceof oa||i.primitive instanceof Kl)&&(e.tileset=i.primitive)},Zn.MOUSE_MOVE):(e._eventHandler.removeInputAction(Zn.MOUSE_MOVE),e.picking=e.picking)}var lBt={maximumFractionDigits:3};function eO(e){let t=e/1048576;return t<1?t.toLocaleString(void 0,lBt):Math.round(t).toLocaleString()}function tO(e,t){if(!u(e))return"";let n=t?e._statisticsPerPass[sr.PICK]:e._statisticsPerPass[sr.RENDER],i='<ul class="cesium-cesiumInspector-statistics">';return i+=`<li><strong>Visited: </strong>${n.visited.toLocaleString()}</li><li><strong>Selected: </strong>${n.selected.toLocaleString()}</li><li><strong>Commands: </strong>${n.numberOfCommands.toLocaleString()}</li>`,i+="</ul>",t||(i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Requests: </strong>${n.numberOfPendingRequests.toLocaleString()}</li><li><strong>Attempted: </strong>${n.numberOfAttemptedRequests.toLocaleString()}</li><li><strong>Processing: </strong>${n.numberOfTilesProcessing.toLocaleString()}</li><li><strong>Content Ready: </strong>${n.numberOfTilesWithContentReady.toLocaleString()}</li><li><strong>Total: </strong>${n.numberOfTilesTotal.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Features Selected: </strong>${n.numberOfFeaturesSelected.toLocaleString()}</li><li><strong>Features Loaded: </strong>${n.numberOfFeaturesLoaded.toLocaleString()}</li><li><strong>Points Selected: </strong>${n.numberOfPointsSelected.toLocaleString()}</li><li><strong>Points Loaded: </strong>${n.numberOfPointsLoaded.toLocaleString()}</li><li><strong>Triangles Selected: </strong>${n.numberOfTrianglesSelected.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Tiles styled: </strong>${n.numberOfTilesStyled.toLocaleString()}</li><li><strong>Features styled: </strong>${n.numberOfFeaturesStyled.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Children Union Culled: </strong>${n.numberOfTilesCulledWithChildrenUnion.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Geometry Memory (MB): </strong>${eO(n.geometryByteLength)}</li><li><strong>Texture Memory (MB): </strong>${eO(n.texturesByteLength)}</li><li><strong>Batch Table Memory (MB): </strong>${eO(n.batchTableByteLength)}</li>`,i+="</ul>"),i}function F2e(){let e=er.statistics;return`
|
|
19018
|
+
<ul class="cesium-cesiumInspector-statistics">
|
|
19019
|
+
<li><strong>Geometry Memory (MB): </strong>${eO(e.geometryByteLength)}</li>
|
|
19020
|
+
<li><strong>Texture Memory (MB): </strong>${eO(e.texturesByteLength)}</li>
|
|
19021
|
+
</ul>
|
|
19022
|
+
`}var uBt=[{text:"Highlight",value:kl.HIGHLIGHT},{text:"Replace",value:kl.REPLACE},{text:"Mix",value:kl.MIX}],L2e=new z(1,1,0,.4),fBt=new z,J7=new z;function bc(e,t){let n=this,i=e.canvas;this._eventHandler=new ch(i),this._scene=e,this._performanceContainer=t,this._canvas=i,this._performanceDisplay=new yb({container:t}),this._statisticsText="",this._pickStatisticsText="",this._resourceCacheStatisticsText="",this._editorError="",this.performance=!1,this.showStatistics=!0,this.showPickStatistics=!0,this.showResourceCacheStatistics=!1,this.inspectorVisible=!0,this.tilesetVisible=!1,this.displayVisible=!1,this.updateVisible=!1,this.loggingVisible=!1,this.styleVisible=!1,this.tileDebugLabelsVisible=!1,this.optimizationVisible=!1,this.styleString="{}",this.hasEnabledWireframe=!1,this._tileset=void 0,this._feature=void 0,this._tile=void 0,Se.track(this,["performance","inspectorVisible","_statisticsText","_pickStatisticsText","_resourceCacheStatisticsText","_editorError","showPickStatistics","showStatistics","showResourceCacheStatistics","tilesetVisible","displayVisible","updateVisible","loggingVisible","styleVisible","optimizationVisible","tileDebugLabelsVisible","styleString","_feature","_tile","_tileset","hasEnabledWireframe"]),this._properties=Se.observable({}),this.properties=[],Se.defineProperty(this,"properties",function(){let k=[],W=n._properties();for(let j in W)W.hasOwnProperty(j)&&k.push(j);return k});let r=Se.observable();Se.defineProperty(this,"dynamicScreenSpaceError",{get:function(){return r()},set:function(k){r(k),u(n._tileset)&&(n._tileset.dynamicScreenSpaceError=k)}}),this.dynamicScreenSpaceError=!1;let o=Se.observable();Se.defineProperty(this,"colorBlendMode",{get:function(){return o()},set:function(k){o(k),u(n._tileset)&&(n._tileset.colorBlendMode=k,n._scene.requestRender())}}),this.colorBlendMode=kl.HIGHLIGHT;let s=Se.observable(),a=Se.observable();Se.defineProperty(this,"picking",{get:function(){return a()},set:function(k){a(k),k?n._eventHandler.setInputAction(function(W){let j=e.pick(W.endPosition);if(j instanceof nc?(n.feature=j,n.tile=j.content.tile):u(j)&&u(j.content)?(n.feature=void 0,n.tile=j.content.tile):(n.feature=void 0,n.tile=void 0),!!u(n._tileset)){if(s&&u(j)&&u(j.content)){let K;e.pickPositionSupported&&(K=e.pickPosition(W.endPosition),u(K)&&(n._tileset.debugPickPosition=K)),n._tileset.debugPickedTile=j.content.tile}else n._tileset.debugPickedTile=void 0;n._scene.requestRender()}},Zn.MOUSE_MOVE):(n.feature=void 0,n.tile=void 0,n._eventHandler.removeInputAction(Zn.MOUSE_MOVE))}}),this.picking=!0;let c=Se.observable();Se.defineProperty(this,"colorize",{get:function(){return c()},set:function(k){c(k),u(n._tileset)&&(n._tileset.debugColorizeTiles=k,n._scene.requestRender())}}),this.colorize=!1;let l=Se.observable();Se.defineProperty(this,"wireframe",{get:function(){return l()},set:function(k){l(k),u(n._tileset)&&(n._tileset.debugWireframe=k,n._scene.requestRender())}}),this.wireframe=!1;let f=Se.observable();Se.defineProperty(this,"showBoundingVolumes",{get:function(){return f()},set:function(k){f(k),u(n._tileset)&&(n._tileset.debugShowBoundingVolume=k,n._scene.requestRender())}}),this.showBoundingVolumes=!1;let d=Se.observable();Se.defineProperty(this,"showContentBoundingVolumes",{get:function(){return d()},set:function(k){d(k),u(n._tileset)&&(n._tileset.debugShowContentBoundingVolume=k,n._scene.requestRender())}}),this.showContentBoundingVolumes=!1;let p=Se.observable();Se.defineProperty(this,"showRequestVolumes",{get:function(){return p()},set:function(k){p(k),u(n._tileset)&&(n._tileset.debugShowViewerRequestVolume=k,n._scene.requestRender())}}),this.showRequestVolumes=!1;let _=Se.observable();Se.defineProperty(this,"freezeFrame",{get:function(){return _()},set:function(k){_(k),u(n._tileset)&&(n._tileset.debugFreezeFrame=k,n._scene.debugShowFrustumPlanes=k,n._scene.requestRender())}}),this.freezeFrame=!1,Se.defineProperty(this,"showOnlyPickedTileDebugLabel",{get:function(){return s()},set:function(k){s(k),u(n._tileset)&&(n._tileset.debugPickedTileLabelOnly=k,n._scene.requestRender())}}),this.showOnlyPickedTileDebugLabel=!1;let m=Se.observable();Se.defineProperty(this,"showGeometricError",{get:function(){return m()},set:function(k){m(k),u(n._tileset)&&(n._tileset.debugShowGeometricError=k,n._scene.requestRender())}}),this.showGeometricError=!1;let x=Se.observable();Se.defineProperty(this,"showRenderingStatistics",{get:function(){return x()},set:function(k){x(k),u(n._tileset)&&(n._tileset.debugShowRenderingStatistics=k,n._scene.requestRender())}}),this.showRenderingStatistics=!1;let b=Se.observable();Se.defineProperty(this,"showMemoryUsage",{get:function(){return b()},set:function(k){b(k),u(n._tileset)&&(n._tileset.debugShowMemoryUsage=k,n._scene.requestRender())}}),this.showMemoryUsage=!1;let T=Se.observable();Se.defineProperty(this,"showUrl",{get:function(){return T()},set:function(k){T(k),u(n._tileset)&&(n._tileset.debugShowUrl=k,n._scene.requestRender())}}),this.showUrl=!1;let C=Se.observable();Se.defineProperty(this,"maximumScreenSpaceError",{get:function(){return C()},set:function(k){k=Number(k),isNaN(k)||(C(k),u(n._tileset)&&(n._tileset.maximumScreenSpaceError=k))}}),this.maximumScreenSpaceError=16;let A=Se.observable();Se.defineProperty(this,"dynamicScreenSpaceErrorDensity",{get:function(){return A()},set:function(k){k=Number(k),isNaN(k)||(A(k),u(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorDensity=k))}}),this.dynamicScreenSpaceErrorDensity=2e-4,this.dynamicScreenSpaceErrorDensitySliderValue=void 0,Se.defineProperty(this,"dynamicScreenSpaceErrorDensitySliderValue",{get:function(){return Math.pow(A(),1/6)},set:function(k){let W=Math.pow(k,6);A(W),u(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorDensity=W)}});let E=Se.observable();Se.defineProperty(this,"dynamicScreenSpaceErrorFactor",{get:function(){return E()},set:function(k){k=Number(k),isNaN(k)||(E(k),u(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorFactor=k))}}),this.dynamicScreenSpaceErrorFactor=24;let v=cBt(this),D=Se.observable();Se.defineProperty(this,"pickActive",{get:function(){return D()},set:function(k){D(k),k?n._eventHandler.setInputAction(v,Zn.LEFT_CLICK):n._eventHandler.removeInputAction(Zn.LEFT_CLICK)}});let R=Se.observable();Se.defineProperty(this,"pointCloudShading",{get:function(){return R()},set:function(k){R(k),u(n._tileset)&&(n._tileset.pointCloudShading.attenuation=k)}}),this.pointCloudShading=!1;let O=Se.observable();Se.defineProperty(this,"geometricErrorScale",{get:function(){return O()},set:function(k){k=Number(k),isNaN(k)||(O(k),u(n._tileset)&&(n._tileset.pointCloudShading.geometricErrorScale=k))}}),this.geometricErrorScale=1;let L=Se.observable();Se.defineProperty(this,"maximumAttenuation",{get:function(){return L()},set:function(k){k=Number(k),isNaN(k)||(L(k),u(n._tileset)&&(n._tileset.pointCloudShading.maximumAttenuation=k===0?void 0:k))}}),this.maximumAttenuation=0;let N=Se.observable();Se.defineProperty(this,"baseResolution",{get:function(){return N()},set:function(k){k=Number(k),isNaN(k)||(N(k),u(n._tileset)&&(n._tileset.pointCloudShading.baseResolution=k===0?void 0:k))}}),this.baseResolution=0;let g=Se.observable();Se.defineProperty(this,"eyeDomeLighting",{get:function(){return g()},set:function(k){g(k),u(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLighting=k)}}),this.eyeDomeLighting=!1;let S=Se.observable();Se.defineProperty(this,"eyeDomeLightingStrength",{get:function(){return S()},set:function(k){k=Number(k),isNaN(k)||(S(k),u(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLightingStrength=k))}}),this.eyeDomeLightingStrength=1;let w=Se.observable();Se.defineProperty(this,"eyeDomeLightingRadius",{get:function(){return w()},set:function(k){k=Number(k),isNaN(k)||(w(k),u(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLightingRadius=k))}}),this.eyeDomeLightingRadius=1,this.pickActive=!1;let P=Se.observable();Se.defineProperty(this,"skipLevelOfDetail",{get:function(){return P()},set:function(k){P(k),u(n._tileset)&&(n._tileset.skipLevelOfDetail=k)}}),this.skipLevelOfDetail=!0;let F=Se.observable();Se.defineProperty(this,"skipScreenSpaceErrorFactor",{get:function(){return F()},set:function(k){k=Number(k),isNaN(k)||(F(k),u(n._tileset)&&(n._tileset.skipScreenSpaceErrorFactor=k))}}),this.skipScreenSpaceErrorFactor=16;let B=Se.observable();Se.defineProperty(this,"baseScreenSpaceError",{get:function(){return B()},set:function(k){k=Number(k),isNaN(k)||(B(k),u(n._tileset)&&(n._tileset.baseScreenSpaceError=k))}}),this.baseScreenSpaceError=1024;let H=Se.observable();Se.defineProperty(this,"skipLevels",{get:function(){return H()},set:function(k){k=Number(k),isNaN(k)||(H(k),u(n._tileset)&&(n._tileset.skipLevels=k))}}),this.skipLevels=1;let V=Se.observable();Se.defineProperty(this,"immediatelyLoadDesiredLevelOfDetail",{get:function(){return V()},set:function(k){V(k),u(n._tileset)&&(n._tileset.immediatelyLoadDesiredLevelOfDetail=k)}}),this.immediatelyLoadDesiredLevelOfDetail=!1;let U=Se.observable();Se.defineProperty(this,"loadSiblings",{get:function(){return U()},set:function(k){U(k),u(n._tileset)&&(n._tileset.loadSiblings=k)}}),this.loadSiblings=!1,this._style=void 0,this._shouldStyle=!1,this._definedProperties=["properties","dynamicScreenSpaceError","colorBlendMode","picking","colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","maximumScreenSpaceError","dynamicScreenSpaceErrorDensity","baseScreenSpaceError","skipScreenSpaceErrorFactor","skipLevelOfDetail","skipLevels","immediatelyLoadDesiredLevelOfDetail","loadSiblings","dynamicScreenSpaceErrorDensitySliderValue","dynamicScreenSpaceErrorFactor","pickActive","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl","pointCloudShading","geometricErrorScale","maximumAttenuation","baseResolution","eyeDomeLighting","eyeDomeLightingStrength","eyeDomeLightingRadius"],this._removePostRenderEvent=e.postRender.addEventListener(function(){n._update()}),u(this._tileset)||N2e(this,!0)}Object.defineProperties(bc.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},statisticsText:{get:function(){return this._statisticsText}},pickStatisticsText:{get:function(){return this._pickStatisticsText}},resourceCacheStatisticsText:{get:function(){return this._resourceCacheStatisticsText}},colorBlendModes:{get:function(){return uBt}},editorError:{get:function(){return this._editorError}},tileset:{get:function(){return this._tileset},set:function(e){if(this._tileset=e,this._style=void 0,this.styleString="{}",this.feature=void 0,this.tile=void 0,u(e)){this._properties(e.properties);let t=["colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl"],n=t.length;for(let r=0;r<n;++r){let o=t[r];this[o]=this[o]}this.maximumScreenSpaceError=e.maximumScreenSpaceError,this.dynamicScreenSpaceError=e.dynamicScreenSpaceError,this.dynamicScreenSpaceErrorDensity=e.dynamicScreenSpaceErrorDensity,this.dynamicScreenSpaceErrorFactor=e.dynamicScreenSpaceErrorFactor,this.colorBlendMode=e.colorBlendMode,this.skipLevelOfDetail=e.skipLevelOfDetail,this.skipScreenSpaceErrorFactor=e.skipScreenSpaceErrorFactor,this.baseScreenSpaceError=e.baseScreenSpaceError,this.skipLevels=e.skipLevels,this.immediatelyLoadDesiredLevelOfDetail=e.immediatelyLoadDesiredLevelOfDetail,this.loadSiblings=e.loadSiblings,this.hasEnabledWireframe=e._enableDebugWireframe;let i=e.pointCloudShading;this.pointCloudShading=i.attenuation,this.geometricErrorScale=i.geometricErrorScale,this.maximumAttenuation=i.maximumAttenuation?i.maximumAttenuation:0,this.baseResolution=i.baseResolution?i.baseResolution:0,this.eyeDomeLighting=i.eyeDomeLighting,this.eyeDomeLightingStrength=i.eyeDomeLightingStrength,this.eyeDomeLightingRadius=i.eyeDomeLightingRadius,this._scene.requestRender()}else this._properties({});this._statisticsText=tO(e,!1),this._pickStatisticsText=tO(e,!0),this._resourceCacheStatisticsText=F2e(),N2e(this,!1)}},feature:{get:function(){return this._feature},set:function(e){if(this._feature===e)return;let t=this._feature;u(t)&&!t.content.isDestroyed()&&(!this.colorize&&u(this._style)?t.color=u(this._style.color)?this._style.color.evaluateColor(t,fBt):z.WHITE:t.color=J7,this._scene.requestRender()),u(e)&&(z.clone(e.color,J7),e.color=L2e,this._scene.requestRender()),this._feature=e}},tile:{get:function(){return this._tile},set:function(e){if(this._tile===e)return;let t=this._tile;u(t)&&!t.isDestroyed()&&!Gne(t.content)&&(t.color=J7,this._scene.requestRender()),u(e)&&!Gne(e.content)&&(z.clone(e.color,J7),e.color=L2e,this._scene.requestRender()),this._tile=e}}});function Gne(e){if(!u(e))return!1;if(e.featuresLength>0)return!0;let t=e.innerContents;if(u(t)){let n=t.length;for(let i=0;i<n;++i)if(!Gne(t[i]))return!1;return!0}return!1}bc.prototype.togglePickTileset=function(){this.pickActive=!this.pickActive};bc.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};bc.prototype.toggleTileset=function(){this.tilesetVisible=!this.tilesetVisible};bc.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};bc.prototype.toggleUpdate=function(){this.updateVisible=!this.updateVisible};bc.prototype.toggleLogging=function(){this.loggingVisible=!this.loggingVisible};bc.prototype.toggleStyle=function(){this.styleVisible=!this.styleVisible};bc.prototype.toggleTileDebugLabels=function(){this.tileDebugLabelsVisible=!this.tileDebugLabelsVisible};bc.prototype.toggleOptimization=function(){this.optimizationVisible=!this.optimizationVisible};bc.prototype.trimTilesCache=function(){u(this._tileset)&&this._tileset.trimLoadedTiles()};bc.prototype.compileStyle=function(){let e=this._tileset;if(!(!u(e)||this.styleString===JSON.stringify(e.style))){this._editorError="";try{this.styleString.length===0&&(this.styleString="{}"),this._style=new Gw(JSON.parse(this.styleString)),this._shouldStyle=!0,this._scene.requestRender()}catch(t){this._editorError=t.toString()}this.feature=this._feature,this.tile=this._tile}};bc.prototype.styleEditorKeyPress=function(e,t){if(t.keyCode===9){t.preventDefault();let n=t.target,i=n.selectionStart,r=n.selectionEnd,o=r,a=n.value.slice(i,r).split(`
|
|
19023
|
+
`),c=a.length,l;if(t.shiftKey)for(l=0;l<c;++l)a[l][0]===" "&&(a[l][1]===" "?(a[l]=a[l].substr(2),o-=2):(a[l]=a[l].substr(1),o-=1));else for(l=0;l<c;++l)a[l]=` ${a[l]}`,o+=2;let f=a.join(`
|
|
19024
|
+
`);n.value=n.value.slice(0,i)+f+n.value.slice(r),n.selectionStart=i!==r?i:o,n.selectionEnd=o}else t.ctrlKey&&(t.keyCode===10||t.keyCode===13)&&this.compileStyle();return!0};bc.prototype._update=function(){let e=this._tileset;if(this.performance&&this._performanceDisplay.update(),u(e)){if(e.isDestroyed()){this.tile=void 0,this.feature=void 0,this.tileset=void 0;return}let t=e.style;this._style!==e.style&&(this._shouldStyle?(e.style=this._style,this._shouldStyle=!1):(this._style=t,this.styleString=JSON.stringify(t.style,null," ")))}this.showStatistics&&(this._statisticsText=tO(e,!1),this._pickStatisticsText=tO(e,!0),this._resourceCacheStatisticsText=F2e())};bc.prototype.isDestroyed=function(){return!1};bc.prototype.destroy=function(){this._eventHandler.destroy(),this._removePostRenderEvent();let e=this;return this._definedProperties.forEach(function(t){Se.getObservable(e,t).dispose()}),he(this)};bc.getStatistics=tO;var eW=bc;function tW(e,t){e=li(e);let n=document.createElement("div"),i=document.createElement("div");i.setAttribute("data-bind","visible: performance");let r=new eW(t,i);this._viewModel=r,this._container=e,this._element=n;let o=document.createElement("div");o.textContent="3D Tiles / M3D Inspector",o.className="cesium-cesiumInspector-button",o.setAttribute("data-bind","click: toggleInspector"),n.appendChild(o),n.className="cesium-cesiumInspector cesium-3DTilesInspector",n.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),e.appendChild(n);let s=document.createElement("div");s.className="cesium-cesiumInspector-dropDown",n.appendChild(s);let a=xl.createSection,c=xl.createCheckbox,l=xl.createRangeInput,f=xl.createButton,d=a(s,"Tileset","tilesetVisible","toggleTileset"),p=a(s,"Display","displayVisible","toggleDisplay"),_=a(s,"Update","updateVisible","toggleUpdate"),m=a(s,"Logging","loggingVisible","toggleLogging"),x=a(s,"Tile Debug Labels","tileDebugLabelsVisible","toggleTileDebugLabels"),b=a(s,"Style","styleVisible","toggleStyle"),T=a(s,"Optimization","optimizationVisible","toggleOptimization"),C=document.createElement("div");C.className="field-group";let A=document.createElement("label");A.className="field-label",A.appendChild(document.createTextNode("Properties: "));let E=document.createElement("div");E.setAttribute("data-bind","text: properties"),C.appendChild(A),C.appendChild(E),d.appendChild(C),d.appendChild(f("Pick Tileset","togglePickTileset","pickActive")),d.appendChild(f("Trim Tiles Cache","trimTilesCache")),d.appendChild(c("Enable Picking","picking")),p.appendChild(c("Colorize","colorize"));let v=p.appendChild(c("Wireframe","wireframe","_tileset === undefined || hasEnabledWireframe")),D=document.createElement("p");D.setAttribute("data-bind","visible: _tileset !== undefined && !hasEnabledWireframe"),D.setAttribute("class","cesium-3DTilesInspector-disabledElementsInfo"),D.innerText="Set enableDebugWireframe to true in the tileset constructor to enable this option.",v.appendChild(D),p.appendChild(c("Bounding Volumes","showBoundingVolumes")),p.appendChild(c("Content Volumes","showContentBoundingVolumes")),p.appendChild(c("Request Volumes","showRequestVolumes")),p.appendChild(c("Point Cloud Shading","pointCloudShading"));let R=document.createElement("div");R.setAttribute("data-bind","visible: pointCloudShading"),R.appendChild(l("Geometric Error Scale","geometricErrorScale",0,2,.01)),R.appendChild(l("Maximum Attenuation","maximumAttenuation",0,32,1)),R.appendChild(l("Base Resolution","baseResolution",0,1,.01)),R.appendChild(c("Eye Dome Lighting (EDL)","eyeDomeLighting")),p.appendChild(R);let O=document.createElement("div");O.setAttribute("data-bind","visible: eyeDomeLighting"),O.appendChild(l("EDL Strength","eyeDomeLightingStrength",0,2,.1)),O.appendChild(l("EDL Radius","eyeDomeLightingRadius",0,4,.1)),R.appendChild(O),_.appendChild(c("Freeze Frame","freezeFrame")),_.appendChild(c("Dynamic Screen Space Error","dynamicScreenSpaceError"));let L=document.createElement("div");L.appendChild(l("Maximum Screen Space Error","maximumScreenSpaceError",0,128,1)),_.appendChild(L);let N=document.createElement("div");N.setAttribute("data-bind","visible: dynamicScreenSpaceError"),N.appendChild(l("Screen Space Error Density","dynamicScreenSpaceErrorDensitySliderValue",0,1,.005,"dynamicScreenSpaceErrorDensity")),N.appendChild(l("Screen Space Error Factor","dynamicScreenSpaceErrorFactor",1,32,.1)),_.appendChild(N),m.appendChild(c("Performance","performance")),m.appendChild(i),m.appendChild(c("Statistics","showStatistics"));let g=document.createElement("div");g.className="cesium-3dTilesInspector-statistics",g.setAttribute("data-bind","html: statisticsText, visible: showStatistics"),m.appendChild(g),m.appendChild(c("Pick Statistics","showPickStatistics"));let S=document.createElement("div");S.className="cesium-3dTilesInspector-statistics",S.setAttribute("data-bind","html: pickStatisticsText, visible: showPickStatistics"),m.appendChild(S),m.appendChild(c("Resource Cache Statistics","showResourceCacheStatistics"));let w=document.createElement("div");w.className="cesium-3dTilesInspector-statistics",w.setAttribute("data-bind","html: resourceCacheStatisticsText, visible: showResourceCacheStatistics"),m.appendChild(w);let P=document.createElement("div");b.appendChild(P),P.appendChild(document.createTextNode("Color Blend Mode: "));let F=document.createElement("select");F.setAttribute("data-bind",'options: colorBlendModes, optionsText: "text", optionsValue: "value", value: colorBlendMode'),P.appendChild(F);let B=document.createElement("textarea");B.setAttribute("data-bind","textInput: styleString, event: { keydown: styleEditorKeyPress }"),P.className="cesium-cesiumInspector-styleEditor",P.appendChild(B);let H=f("Compile (Ctrl+Enter)","compileStyle");P.appendChild(H);let V=document.createElement("div");V.className="cesium-cesiumInspector-error",V.setAttribute("data-bind","text: editorError"),P.appendChild(V),x.appendChild(c("Show Picked Only","showOnlyPickedTileDebugLabel")),x.appendChild(c("Geometric Error","showGeometricError")),x.appendChild(c("Rendering Statistics","showRenderingStatistics")),x.appendChild(c("Memory Usage (MB)","showMemoryUsage")),x.appendChild(c("Url","showUrl")),T.appendChild(c("Skip Tile LODs","skipLevelOfDetail"));let U=document.createElement("div");U.appendChild(l("Skip SSE Factor","skipScreenSpaceErrorFactor",1,50,1)),T.appendChild(U);let k=document.createElement("div");k.appendChild(l("SSE before skipping LOD","baseScreenSpaceError",0,4096,1)),T.appendChild(k);let W=document.createElement("div");W.appendChild(l("Min. levels to skip","skipLevels",0,10,1)),T.appendChild(W),T.appendChild(c("Load only tiles that meet the max SSE.","immediatelyLoadDesiredLevelOfDetail")),T.appendChild(c("Load siblings of visible tiles","loadSiblings")),Se.applyBindings(r,n)}Object.defineProperties(tW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});tW.prototype.isDestroyed=function(){return!1};tW.prototype.destroy=function(){return Se.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),he(this)};var nW=tW;function B2e(e){e=y(e,y.EMPTY_OBJECT);let t=e.globe,n=y(e.imageryProviderViewModels,[]),i=y(e.terrainProviderViewModels,[]);this._globe=t,this.imageryProviderViewModels=n.slice(0),this.terrainProviderViewModels=i.slice(0),this.dropDownVisible=!1,Se.track(this,["imageryProviderViewModels","terrainProviderViewModels","dropDownVisible"]);let r=Se.getObservable(this,"imageryProviderViewModels"),o=Se.pureComputed(function(){let d=r(),p={},_;for(_=0;_<d.length;_++){let b=d[_],T=b.category;u(p[T])?p[T].push(b):p[T]=[b]}let m=Object.keys(p),x=[];for(_=0;_<m.length;_++){let b=m[_];x.push({name:b,providers:p[b]})}return x});this._imageryProviders=o;let s=Se.getObservable(this,"terrainProviderViewModels"),a=Se.pureComputed(function(){let d=s(),p={},_;for(_=0;_<d.length;_++){let b=d[_],T=b.category;u(p[T])?p[T].push(b):p[T]=[b]}let m=Object.keys(p),x=[];for(_=0;_<m.length;_++){let b=m[_];x.push({name:b,providers:p[b]})}return x});this._terrainProviders=a,this.buttonTooltip=void 0,Se.defineProperty(this,"buttonTooltip",function(){let d=this.selectedImagery,p=this.selectedTerrain,_=u(d)?d.name:void 0,m=u(p)?p.name:void 0;return u(_)&&u(m)?`${_}
|
|
19025
|
+
${m}`:u(_)?_:m}),this.buttonImageUrl=void 0,Se.defineProperty(this,"buttonImageUrl",function(){let d=this.selectedImagery;if(u(d))return d.iconUrl}),this.selectedImagery=void 0;let c=Se.observable();this._currentImageryLayers=[],Se.defineProperty(this,"selectedImagery",{get:function(){return c()},set:function(d){if(c()===d){this.dropDownVisible=!1;return}let p,_=this._currentImageryLayers,m=_.length,x=this._globe.imageryLayers,b=!1;for(p=0;p<m;p++){let T=x.length;for(let C=0;C<T;C++){let A=x.get(C);if(A===_[p]){x.remove(A),b=!0;break}}}if(u(d)){let T=d.creationCommand();if(Array.isArray(T)){let C=T.length;for(this._currentImageryLayers=[],p=C-1;p>=0;p--){let A=Zs.fromProviderAsync(T[p]);x.add(A,0),this._currentImageryLayers.push(A)}}else{this._currentImageryLayers=[];let C=Zs.fromProviderAsync(T);if(C.name=d.name,b)x.add(C,0);else{let A=x.get(0);u(A)&&x.remove(A),x.add(C,0)}this._currentImageryLayers.push(C)}}c(d),this.dropDownVisible=!1}}),this.selectedTerrain=void 0;let l=Se.observable();Se.defineProperty(this,"selectedTerrain",{get:function(){return l()},set:function(d){if(l()===d){this.dropDownVisible=!1;return}let p;if(u(d)&&(p=d.creationCommand()),u(p)&&!u(p.then))this._globe.depthTestAgainstTerrain=!(p instanceof u0),this._globe.terrainProvider=p;else if(u(p)){let _=!1,m=this._globe.terrainProviderChanged.addEventListener(()=>{_=!0,m()}),b=new M7(p).readyEvent.addEventListener(T=>{_||(this._globe.depthTestAgainstTerrain=!(T instanceof u0),this._globe.terrainProvider=T,b())})}l(d),this.dropDownVisible=!1}});let f=this;this._toggleDropDown=ni(function(){f.dropDownVisible=!f.dropDownVisible}),this.selectedImagery=y(e.selectedImageryProviderViewModel,n[0]),this.selectedTerrain=e.selectedTerrainProviderViewModel}Object.defineProperties(B2e.prototype,{toggleDropDown:{get:function(){return this._toggleDropDown}},globe:{get:function(){return this._globe}}});var iW=B2e;function rW(e,t){e=li(e);let n=new iW(t),i=document.createElement("button");i.type="button",i.className="cesium-button cesium-toolbar-button",i.setAttribute("data-bind","attr: { title: buttonTooltip },click: toggleDropDown"),e.appendChild(i);let r=document.createElement("img");r.setAttribute("draggable","false"),r.className="cesium-baseLayerPicker-selected",r.setAttribute("data-bind","attr: { src: buttonImageUrl }, visible: !!buttonImageUrl"),i.appendChild(r);let o=document.createElement("div");o.className="cesium-baseLayerPicker-dropDown",o.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-dropDown-visible" : dropDownVisible }'),e.appendChild(o);let s=document.createElement("div");s.className="cesium-baseLayerPicker-sectionTitle",s.setAttribute("data-bind","visible: imageryProviderViewModels.length > 0"),s.innerHTML="Imagery",o.appendChild(s);let a=document.createElement("div");a.className="cesium-baseLayerPicker-section",a.setAttribute("data-bind","foreach: _imageryProviders"),o.appendChild(a);let c=document.createElement("div");c.className="cesium-baseLayerPicker-category",a.appendChild(c);let l=document.createElement("div");l.className="cesium-baseLayerPicker-categoryTitle",l.setAttribute("data-bind","text: name"),c.appendChild(l);let f=document.createElement("div");f.className="cesium-baseLayerPicker-choices",f.setAttribute("data-bind","foreach: providers"),c.appendChild(f);let d=document.createElement("div");d.className="cesium-baseLayerPicker-item",d.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-selectedItem" : $data === $parents[1].selectedImagery },attr: { title: tooltip },visible: creationCommand.canExecute,click: function($data) { $parents[1].selectedImagery = $data; }'),f.appendChild(d);let p=document.createElement("img");p.className="cesium-baseLayerPicker-itemIcon",p.setAttribute("data-bind","attr: { src: iconUrl }"),p.setAttribute("draggable","false"),d.appendChild(p);let _=document.createElement("div");_.className="cesium-baseLayerPicker-itemLabel",_.setAttribute("data-bind","text: name"),d.appendChild(_);let m=document.createElement("div");m.className="cesium-baseLayerPicker-sectionTitle",m.setAttribute("data-bind","visible: terrainProviderViewModels.length > 0"),m.innerHTML="Terrain",o.appendChild(m);let x=document.createElement("div");x.className="cesium-baseLayerPicker-section",x.setAttribute("data-bind","foreach: _terrainProviders"),o.appendChild(x);let b=document.createElement("div");b.className="cesium-baseLayerPicker-category",x.appendChild(b);let T=document.createElement("div");T.className="cesium-baseLayerPicker-categoryTitle",T.setAttribute("data-bind","text: name"),b.appendChild(T);let C=document.createElement("div");C.className="cesium-baseLayerPicker-choices",C.setAttribute("data-bind","foreach: providers"),b.appendChild(C);let A=document.createElement("div");A.className="cesium-baseLayerPicker-item",A.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-selectedItem" : $data === $parents[1].selectedTerrain },attr: { title: tooltip },visible: creationCommand.canExecute,click: function($data) { $parents[1].selectedTerrain = $data; }'),C.appendChild(A);let E=document.createElement("img");E.className="cesium-baseLayerPicker-itemIcon",E.setAttribute("data-bind","attr: { src: iconUrl }"),E.setAttribute("draggable","false"),A.appendChild(E);let v=document.createElement("div");v.className="cesium-baseLayerPicker-itemLabel",v.setAttribute("data-bind","text: name"),A.appendChild(v),Se.applyBindings(n,i),Se.applyBindings(n,o),this._viewModel=n,this._container=e,this._element=i,this._dropPanel=o,this._closeDropDown=function(D){i.contains(D.target)||o.contains(D.target)||(n.dropDownVisible=!1)},mn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(rW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});rW.prototype.isDestroyed=function(){return!1};rW.prototype.destroy=function(){return mn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Se.cleanNode(this._element),Se.cleanNode(this._dropPanel),this._container.removeChild(this._element),this._container.removeChild(this._dropPanel),he(this)};var oW=rW;function k2e(e){let t=e.creationFunction;u(t.canExecute)||(t=ni(t)),this._creationCommand=t,this.name=e.name,this.tooltip=e.tooltip,this.iconUrl=e.iconUrl,this._category=y(e.category,""),Se.track(this,["name","tooltip","iconUrl"])}Object.defineProperties(k2e.prototype,{creationCommand:{get:function(){return this._creationCommand}},category:{get:function(){return this._category}}});var ma=k2e;function dBt(){let e=[],t=devicePixelRatio>=2;return e.push(new ma({name:"Bing Maps Aerial",iconUrl:Cn("Widgets/Images/ImageryProviders/bingAerial.png"),tooltip:"Bing Maps aerial imagery, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return db({style:fb.AERIAL})}})),e.push(new ma({name:"Bing Maps Aerial with Labels",iconUrl:Cn("Widgets/Images/ImageryProviders/bingAerialLabels.png"),tooltip:"Bing Maps aerial imagery with labels, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return db({style:fb.AERIAL_WITH_LABELS})}})),e.push(new ma({name:"Bing Maps Roads",iconUrl:Cn("Widgets/Images/ImageryProviders/bingRoads.png"),tooltip:"Bing Maps standard road maps, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return db({style:fb.ROAD})}})),e.push(new ma({name:"ArcGIS World Imagery",iconUrl:Cn("Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png"),tooltip:`ArcGIS World Imagery provides one meter or better satellite and aerial imagery in many parts of the world and lower resolution satellite imagery worldwide. The map includes 15m TerraColor imagery at small and mid-scales (~1:591M down to ~1:288k) for the world. The map features Maxar imagery at 0.3m resolution for select metropolitan areas around the world, 0.5m resolution across the United States and parts of Western Europe, and 1m resolution imagery across the rest of the world. In addition to commercial sources, the World Imagery map features high-resolution aerial photography contributed by the GIS User Community. This imagery ranges from 0.3m to 0.03m resolution (down to ~1:280 nin select communities). For more information on this map, including the terms of use, visit us online at
|
|
19019
19026
|
https://www.arcgis.com/home/item.html?id=10df2279f9684e4a9f6a7f08febac2a9`,category:"Other",creationFunction:function(){return sb.fromBasemapType(g_.SATELLITE,{enablePickFeatures:!1})}})),e.push(new ma({name:"ArcGIS World Hillshade",iconUrl:Cn("Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png"),tooltip:`ArcGIS World Hillshade map portrays elevation as an artistic hillshade. This map is designed to be used as a backdrop for topographical, soil, hydro, landcover or other outdoor recreational maps. The map was compiled from a variety of sources from several data providers. The basemap has global coverage down to a scale of ~1:72k. In select areas of the United States and Europe, coverage is available down to ~1:9k. For more information on this map, including the terms of use, visit us online at
|
|
19020
19027
|
https://www.arcgis.com/home/item.html?id=1b243539f4514b6ba35e7d995890db1d`,category:"Other",creationFunction:function(){return sb.fromBasemapType(g_.HILLSHADE,{enablePickFeatures:!1})}})),e.push(new ma({name:"Esri World Ocean",iconUrl:Cn("Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png"),tooltip:`ArcGIS World Ocean map is designed to be used as a base map by marine GIS professionals and as a reference map by anyone interested in ocean data. The base map features marine bathymetry. Land features include inland waters and roads overlaid on land cover and shaded relief imagery. The map was compiled from a variety of best available sources from several data providers, including General Bathymetric Chart of the Oceans GEBCO_08 Grid, National Oceanic and Atmospheric Administration (NOAA), and National Geographic, Garmin, HERE, Geonames.org, and Esri, and various other contributors. The base map currently provides coverage for the world down to a scale of ~1:577k, and coverage down to 1:72k in US coastal areas, and various other areas. Coverage down to ~ 1:9k is available limited areas based on regional hydrographic survey data. The base map was designed and developed by Esri. For more information on this map, including our terms of use, visit us online at
|
|
19021
19028
|
https://www.arcgis.com/home/item.html?id=1e126e7520f9466c9ca28b8f28b5e500`,category:"Other",creationFunction:function(){return sb.fromBasemapType(g_.OCEANS,{enablePickFeatures:!1})}})),e.push(new ma({name:"Open\xADStreet\xADMap",iconUrl:Cn("Widgets/Images/ImageryProviders/openStreetMap.png"),tooltip:`OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world.
|
|
@@ -19034,14 +19041,7 @@ https://docs.stadiamaps.com/map-styles/alidade-smooth/`,category:"Other",creatio
|
|
|
19034
19041
|
https://docs.stadiamaps.com/map-styles/alidade-smooth-dark/`,category:"Other",creationFunction:function(){return new gb({url:"https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/",retinaTiles:t,credit:`© <a href="https://www.stadiamaps.com/" target="_blank">Stadia Maps</a>
|
|
19035
19042
|
© <a href="https://openmaptiles.org/" target="_blank">OpenMapTiles</a>
|
|
19036
19043
|
© <a href="https://www.openstreetmap.org/about/" target="_blank">OpenStreetMap contributors</a>`})}})),e.push(new ma({name:"Sentinel-2",iconUrl:Cn("Widgets/Images/ImageryProviders/sentinel-2.png"),tooltip:"Sentinel-2 cloudless by EOX IT Services GmbH (Contains modified Copernicus Sentinel data 2016 and 2017).",category:"Cesium ion",creationFunction:function(){return ub.fromAssetId(3954)}})),e.push(new ma({name:"Blue Marble",iconUrl:Cn("Widgets/Images/ImageryProviders/blueMarble.png"),tooltip:"Blue Marble Next Generation July, 2004 imagery from NASA.",category:"Cesium ion",creationFunction:function(){return ub.fromAssetId(3845)}})),e.push(new ma({name:"Earth at night",iconUrl:Cn("Widgets/Images/ImageryProviders/earthAtNight.png"),tooltip:"The Earth at night, also known as The Black Marble, is a 500 meter resolution global composite imagery layer released by NASA.",category:"Cesium ion",creationFunction:function(){return ub.fromAssetId(3812)}})),e.push(new ma({name:"Natural Earth\xA0II",iconUrl:Cn("Widgets/Images/ImageryProviders/naturalEarthII.png"),tooltip:`Natural Earth II, darkened for contrast.
|
|
19037
|
-
http://www.naturalearthdata.com/`,category:"Cesium ion",creationFunction:function(){return KC.fromUrl(Cn("Assets/Textures/NaturalEarthII"))}})),e}var nW=cBt;function lBt(){let e=[];return e.push(new ma({name:"WGS84 Ellipsoid",iconUrl:Cn("Widgets/Images/TerrainProviders/Ellipsoid.png"),tooltip:"WGS84 standard ellipsoid, also known as EPSG:4326",category:"Cesium ion",creationFunction:function(){return new u0({ellipsoid:ne.WGS84})}})),e.push(new ma({name:"Cesium World Terrain",iconUrl:Cn("Widgets/Images/TerrainProviders/CesiumWorldTerrain.png"),tooltip:"High-resolution global terrain tileset curated from several datasources and hosted by Cesium ion",category:"Cesium ion",creationFunction:function(){return Sw({requestWaterMask:!0,requestVertexNormals:!0})}})),e}var iW=lBt;function uBt(e){return function(t){let n=e._scene.pick(t.position);u(n)&&(n.primitive instanceof oa||n.primitive instanceof Kl)&&(e.tileset=n.primitive),e.pickActive=!1}}function B2e(e,t){t?e._eventHandler.setInputAction(function(n){let i=e._scene.pick(n.endPosition);u(i)&&(i.primitive instanceof oa||i.primitive instanceof Kl)&&(e.tileset=i.primitive)},Zn.MOUSE_MOVE):(e._eventHandler.removeInputAction(Zn.MOUSE_MOVE),e.picking=e.picking)}var fBt={maximumFractionDigits:3};function eO(e){let t=e/1048576;return t<1?t.toLocaleString(void 0,fBt):Math.round(t).toLocaleString()}function tO(e,t){if(!u(e))return"";let n=t?e._statisticsPerPass[sr.PICK]:e._statisticsPerPass[sr.RENDER],i='<ul class="cesium-cesiumInspector-statistics">';return i+=`<li><strong>Visited: </strong>${n.visited.toLocaleString()}</li><li><strong>Selected: </strong>${n.selected.toLocaleString()}</li><li><strong>Commands: </strong>${n.numberOfCommands.toLocaleString()}</li>`,i+="</ul>",t||(i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Requests: </strong>${n.numberOfPendingRequests.toLocaleString()}</li><li><strong>Attempted: </strong>${n.numberOfAttemptedRequests.toLocaleString()}</li><li><strong>Processing: </strong>${n.numberOfTilesProcessing.toLocaleString()}</li><li><strong>Content Ready: </strong>${n.numberOfTilesWithContentReady.toLocaleString()}</li><li><strong>Total: </strong>${n.numberOfTilesTotal.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Features Selected: </strong>${n.numberOfFeaturesSelected.toLocaleString()}</li><li><strong>Features Loaded: </strong>${n.numberOfFeaturesLoaded.toLocaleString()}</li><li><strong>Points Selected: </strong>${n.numberOfPointsSelected.toLocaleString()}</li><li><strong>Points Loaded: </strong>${n.numberOfPointsLoaded.toLocaleString()}</li><li><strong>Triangles Selected: </strong>${n.numberOfTrianglesSelected.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Tiles styled: </strong>${n.numberOfTilesStyled.toLocaleString()}</li><li><strong>Features styled: </strong>${n.numberOfFeaturesStyled.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Children Union Culled: </strong>${n.numberOfTilesCulledWithChildrenUnion.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Geometry Memory (MB): </strong>${eO(n.geometryByteLength)}</li><li><strong>Texture Memory (MB): </strong>${eO(n.texturesByteLength)}</li><li><strong>Batch Table Memory (MB): </strong>${eO(n.batchTableByteLength)}</li>`,i+="</ul>"),i}function k2e(){let e=er.statistics;return`
|
|
19038
|
-
<ul class="cesium-cesiumInspector-statistics">
|
|
19039
|
-
<li><strong>Geometry Memory (MB): </strong>${eO(e.geometryByteLength)}</li>
|
|
19040
|
-
<li><strong>Texture Memory (MB): </strong>${eO(e.texturesByteLength)}</li>
|
|
19041
|
-
</ul>
|
|
19042
|
-
`}var dBt=[{text:"Highlight",value:kl.HIGHLIGHT},{text:"Replace",value:kl.REPLACE},{text:"Mix",value:kl.MIX}],F2e=new z(1,1,0,.4),hBt=new z,rW=new z;function bc(e,t){let n=this,i=e.canvas;this._eventHandler=new ch(i),this._scene=e,this._performanceContainer=t,this._canvas=i,this._performanceDisplay=new yb({container:t}),this._statisticsText="",this._pickStatisticsText="",this._resourceCacheStatisticsText="",this._editorError="",this.performance=!1,this.showStatistics=!0,this.showPickStatistics=!0,this.showResourceCacheStatistics=!1,this.inspectorVisible=!0,this.tilesetVisible=!1,this.displayVisible=!1,this.updateVisible=!1,this.loggingVisible=!1,this.styleVisible=!1,this.tileDebugLabelsVisible=!1,this.optimizationVisible=!1,this.styleString="{}",this.hasEnabledWireframe=!1,this._tileset=void 0,this._feature=void 0,this._tile=void 0,Se.track(this,["performance","inspectorVisible","_statisticsText","_pickStatisticsText","_resourceCacheStatisticsText","_editorError","showPickStatistics","showStatistics","showResourceCacheStatistics","tilesetVisible","displayVisible","updateVisible","loggingVisible","styleVisible","optimizationVisible","tileDebugLabelsVisible","styleString","_feature","_tile","_tileset","hasEnabledWireframe"]),this._properties=Se.observable({}),this.properties=[],Se.defineProperty(this,"properties",function(){let k=[],W=n._properties();for(let j in W)W.hasOwnProperty(j)&&k.push(j);return k});let r=Se.observable();Se.defineProperty(this,"dynamicScreenSpaceError",{get:function(){return r()},set:function(k){r(k),u(n._tileset)&&(n._tileset.dynamicScreenSpaceError=k)}}),this.dynamicScreenSpaceError=!1;let o=Se.observable();Se.defineProperty(this,"colorBlendMode",{get:function(){return o()},set:function(k){o(k),u(n._tileset)&&(n._tileset.colorBlendMode=k,n._scene.requestRender())}}),this.colorBlendMode=kl.HIGHLIGHT;let s=Se.observable(),a=Se.observable();Se.defineProperty(this,"picking",{get:function(){return a()},set:function(k){a(k),k?n._eventHandler.setInputAction(function(W){let j=e.pick(W.endPosition);if(j instanceof nc?(n.feature=j,n.tile=j.content.tile):u(j)&&u(j.content)?(n.feature=void 0,n.tile=j.content.tile):(n.feature=void 0,n.tile=void 0),!!u(n._tileset)){if(s&&u(j)&&u(j.content)){let K;e.pickPositionSupported&&(K=e.pickPosition(W.endPosition),u(K)&&(n._tileset.debugPickPosition=K)),n._tileset.debugPickedTile=j.content.tile}else n._tileset.debugPickedTile=void 0;n._scene.requestRender()}},Zn.MOUSE_MOVE):(n.feature=void 0,n.tile=void 0,n._eventHandler.removeInputAction(Zn.MOUSE_MOVE))}}),this.picking=!0;let c=Se.observable();Se.defineProperty(this,"colorize",{get:function(){return c()},set:function(k){c(k),u(n._tileset)&&(n._tileset.debugColorizeTiles=k,n._scene.requestRender())}}),this.colorize=!1;let l=Se.observable();Se.defineProperty(this,"wireframe",{get:function(){return l()},set:function(k){l(k),u(n._tileset)&&(n._tileset.debugWireframe=k,n._scene.requestRender())}}),this.wireframe=!1;let f=Se.observable();Se.defineProperty(this,"showBoundingVolumes",{get:function(){return f()},set:function(k){f(k),u(n._tileset)&&(n._tileset.debugShowBoundingVolume=k,n._scene.requestRender())}}),this.showBoundingVolumes=!1;let d=Se.observable();Se.defineProperty(this,"showContentBoundingVolumes",{get:function(){return d()},set:function(k){d(k),u(n._tileset)&&(n._tileset.debugShowContentBoundingVolume=k,n._scene.requestRender())}}),this.showContentBoundingVolumes=!1;let p=Se.observable();Se.defineProperty(this,"showRequestVolumes",{get:function(){return p()},set:function(k){p(k),u(n._tileset)&&(n._tileset.debugShowViewerRequestVolume=k,n._scene.requestRender())}}),this.showRequestVolumes=!1;let _=Se.observable();Se.defineProperty(this,"freezeFrame",{get:function(){return _()},set:function(k){_(k),u(n._tileset)&&(n._tileset.debugFreezeFrame=k,n._scene.debugShowFrustumPlanes=k,n._scene.requestRender())}}),this.freezeFrame=!1,Se.defineProperty(this,"showOnlyPickedTileDebugLabel",{get:function(){return s()},set:function(k){s(k),u(n._tileset)&&(n._tileset.debugPickedTileLabelOnly=k,n._scene.requestRender())}}),this.showOnlyPickedTileDebugLabel=!1;let m=Se.observable();Se.defineProperty(this,"showGeometricError",{get:function(){return m()},set:function(k){m(k),u(n._tileset)&&(n._tileset.debugShowGeometricError=k,n._scene.requestRender())}}),this.showGeometricError=!1;let x=Se.observable();Se.defineProperty(this,"showRenderingStatistics",{get:function(){return x()},set:function(k){x(k),u(n._tileset)&&(n._tileset.debugShowRenderingStatistics=k,n._scene.requestRender())}}),this.showRenderingStatistics=!1;let b=Se.observable();Se.defineProperty(this,"showMemoryUsage",{get:function(){return b()},set:function(k){b(k),u(n._tileset)&&(n._tileset.debugShowMemoryUsage=k,n._scene.requestRender())}}),this.showMemoryUsage=!1;let T=Se.observable();Se.defineProperty(this,"showUrl",{get:function(){return T()},set:function(k){T(k),u(n._tileset)&&(n._tileset.debugShowUrl=k,n._scene.requestRender())}}),this.showUrl=!1;let C=Se.observable();Se.defineProperty(this,"maximumScreenSpaceError",{get:function(){return C()},set:function(k){k=Number(k),isNaN(k)||(C(k),u(n._tileset)&&(n._tileset.maximumScreenSpaceError=k))}}),this.maximumScreenSpaceError=16;let A=Se.observable();Se.defineProperty(this,"dynamicScreenSpaceErrorDensity",{get:function(){return A()},set:function(k){k=Number(k),isNaN(k)||(A(k),u(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorDensity=k))}}),this.dynamicScreenSpaceErrorDensity=2e-4,this.dynamicScreenSpaceErrorDensitySliderValue=void 0,Se.defineProperty(this,"dynamicScreenSpaceErrorDensitySliderValue",{get:function(){return Math.pow(A(),1/6)},set:function(k){let W=Math.pow(k,6);A(W),u(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorDensity=W)}});let E=Se.observable();Se.defineProperty(this,"dynamicScreenSpaceErrorFactor",{get:function(){return E()},set:function(k){k=Number(k),isNaN(k)||(E(k),u(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorFactor=k))}}),this.dynamicScreenSpaceErrorFactor=24;let v=uBt(this),D=Se.observable();Se.defineProperty(this,"pickActive",{get:function(){return D()},set:function(k){D(k),k?n._eventHandler.setInputAction(v,Zn.LEFT_CLICK):n._eventHandler.removeInputAction(Zn.LEFT_CLICK)}});let R=Se.observable();Se.defineProperty(this,"pointCloudShading",{get:function(){return R()},set:function(k){R(k),u(n._tileset)&&(n._tileset.pointCloudShading.attenuation=k)}}),this.pointCloudShading=!1;let O=Se.observable();Se.defineProperty(this,"geometricErrorScale",{get:function(){return O()},set:function(k){k=Number(k),isNaN(k)||(O(k),u(n._tileset)&&(n._tileset.pointCloudShading.geometricErrorScale=k))}}),this.geometricErrorScale=1;let L=Se.observable();Se.defineProperty(this,"maximumAttenuation",{get:function(){return L()},set:function(k){k=Number(k),isNaN(k)||(L(k),u(n._tileset)&&(n._tileset.pointCloudShading.maximumAttenuation=k===0?void 0:k))}}),this.maximumAttenuation=0;let N=Se.observable();Se.defineProperty(this,"baseResolution",{get:function(){return N()},set:function(k){k=Number(k),isNaN(k)||(N(k),u(n._tileset)&&(n._tileset.pointCloudShading.baseResolution=k===0?void 0:k))}}),this.baseResolution=0;let g=Se.observable();Se.defineProperty(this,"eyeDomeLighting",{get:function(){return g()},set:function(k){g(k),u(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLighting=k)}}),this.eyeDomeLighting=!1;let S=Se.observable();Se.defineProperty(this,"eyeDomeLightingStrength",{get:function(){return S()},set:function(k){k=Number(k),isNaN(k)||(S(k),u(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLightingStrength=k))}}),this.eyeDomeLightingStrength=1;let w=Se.observable();Se.defineProperty(this,"eyeDomeLightingRadius",{get:function(){return w()},set:function(k){k=Number(k),isNaN(k)||(w(k),u(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLightingRadius=k))}}),this.eyeDomeLightingRadius=1,this.pickActive=!1;let P=Se.observable();Se.defineProperty(this,"skipLevelOfDetail",{get:function(){return P()},set:function(k){P(k),u(n._tileset)&&(n._tileset.skipLevelOfDetail=k)}}),this.skipLevelOfDetail=!0;let F=Se.observable();Se.defineProperty(this,"skipScreenSpaceErrorFactor",{get:function(){return F()},set:function(k){k=Number(k),isNaN(k)||(F(k),u(n._tileset)&&(n._tileset.skipScreenSpaceErrorFactor=k))}}),this.skipScreenSpaceErrorFactor=16;let B=Se.observable();Se.defineProperty(this,"baseScreenSpaceError",{get:function(){return B()},set:function(k){k=Number(k),isNaN(k)||(B(k),u(n._tileset)&&(n._tileset.baseScreenSpaceError=k))}}),this.baseScreenSpaceError=1024;let H=Se.observable();Se.defineProperty(this,"skipLevels",{get:function(){return H()},set:function(k){k=Number(k),isNaN(k)||(H(k),u(n._tileset)&&(n._tileset.skipLevels=k))}}),this.skipLevels=1;let V=Se.observable();Se.defineProperty(this,"immediatelyLoadDesiredLevelOfDetail",{get:function(){return V()},set:function(k){V(k),u(n._tileset)&&(n._tileset.immediatelyLoadDesiredLevelOfDetail=k)}}),this.immediatelyLoadDesiredLevelOfDetail=!1;let U=Se.observable();Se.defineProperty(this,"loadSiblings",{get:function(){return U()},set:function(k){U(k),u(n._tileset)&&(n._tileset.loadSiblings=k)}}),this.loadSiblings=!1,this._style=void 0,this._shouldStyle=!1,this._definedProperties=["properties","dynamicScreenSpaceError","colorBlendMode","picking","colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","maximumScreenSpaceError","dynamicScreenSpaceErrorDensity","baseScreenSpaceError","skipScreenSpaceErrorFactor","skipLevelOfDetail","skipLevels","immediatelyLoadDesiredLevelOfDetail","loadSiblings","dynamicScreenSpaceErrorDensitySliderValue","dynamicScreenSpaceErrorFactor","pickActive","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl","pointCloudShading","geometricErrorScale","maximumAttenuation","baseResolution","eyeDomeLighting","eyeDomeLightingStrength","eyeDomeLightingRadius"],this._removePostRenderEvent=e.postRender.addEventListener(function(){n._update()}),u(this._tileset)||B2e(this,!0)}Object.defineProperties(bc.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},statisticsText:{get:function(){return this._statisticsText}},pickStatisticsText:{get:function(){return this._pickStatisticsText}},resourceCacheStatisticsText:{get:function(){return this._resourceCacheStatisticsText}},colorBlendModes:{get:function(){return dBt}},editorError:{get:function(){return this._editorError}},tileset:{get:function(){return this._tileset},set:function(e){if(this._tileset=e,this._style=void 0,this.styleString="{}",this.feature=void 0,this.tile=void 0,u(e)){this._properties(e.properties);let t=["colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl"],n=t.length;for(let r=0;r<n;++r){let o=t[r];this[o]=this[o]}this.maximumScreenSpaceError=e.maximumScreenSpaceError,this.dynamicScreenSpaceError=e.dynamicScreenSpaceError,this.dynamicScreenSpaceErrorDensity=e.dynamicScreenSpaceErrorDensity,this.dynamicScreenSpaceErrorFactor=e.dynamicScreenSpaceErrorFactor,this.colorBlendMode=e.colorBlendMode,this.skipLevelOfDetail=e.skipLevelOfDetail,this.skipScreenSpaceErrorFactor=e.skipScreenSpaceErrorFactor,this.baseScreenSpaceError=e.baseScreenSpaceError,this.skipLevels=e.skipLevels,this.immediatelyLoadDesiredLevelOfDetail=e.immediatelyLoadDesiredLevelOfDetail,this.loadSiblings=e.loadSiblings,this.hasEnabledWireframe=e._enableDebugWireframe;let i=e.pointCloudShading;this.pointCloudShading=i.attenuation,this.geometricErrorScale=i.geometricErrorScale,this.maximumAttenuation=i.maximumAttenuation?i.maximumAttenuation:0,this.baseResolution=i.baseResolution?i.baseResolution:0,this.eyeDomeLighting=i.eyeDomeLighting,this.eyeDomeLightingStrength=i.eyeDomeLightingStrength,this.eyeDomeLightingRadius=i.eyeDomeLightingRadius,this._scene.requestRender()}else this._properties({});this._statisticsText=tO(e,!1),this._pickStatisticsText=tO(e,!0),this._resourceCacheStatisticsText=k2e(),B2e(this,!1)}},feature:{get:function(){return this._feature},set:function(e){if(this._feature===e)return;let t=this._feature;u(t)&&!t.content.isDestroyed()&&(!this.colorize&&u(this._style)?t.color=u(this._style.color)?this._style.color.evaluateColor(t,hBt):z.WHITE:t.color=rW,this._scene.requestRender()),u(e)&&(z.clone(e.color,rW),e.color=F2e,this._scene.requestRender()),this._feature=e}},tile:{get:function(){return this._tile},set:function(e){if(this._tile===e)return;let t=this._tile;u(t)&&!t.isDestroyed()&&!Gne(t.content)&&(t.color=rW,this._scene.requestRender()),u(e)&&!Gne(e.content)&&(z.clone(e.color,rW),e.color=F2e,this._scene.requestRender()),this._tile=e}}});function Gne(e){if(!u(e))return!1;if(e.featuresLength>0)return!0;let t=e.innerContents;if(u(t)){let n=t.length;for(let i=0;i<n;++i)if(!Gne(t[i]))return!1;return!0}return!1}bc.prototype.togglePickTileset=function(){this.pickActive=!this.pickActive};bc.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};bc.prototype.toggleTileset=function(){this.tilesetVisible=!this.tilesetVisible};bc.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};bc.prototype.toggleUpdate=function(){this.updateVisible=!this.updateVisible};bc.prototype.toggleLogging=function(){this.loggingVisible=!this.loggingVisible};bc.prototype.toggleStyle=function(){this.styleVisible=!this.styleVisible};bc.prototype.toggleTileDebugLabels=function(){this.tileDebugLabelsVisible=!this.tileDebugLabelsVisible};bc.prototype.toggleOptimization=function(){this.optimizationVisible=!this.optimizationVisible};bc.prototype.trimTilesCache=function(){u(this._tileset)&&this._tileset.trimLoadedTiles()};bc.prototype.compileStyle=function(){let e=this._tileset;if(!(!u(e)||this.styleString===JSON.stringify(e.style))){this._editorError="";try{this.styleString.length===0&&(this.styleString="{}"),this._style=new Gw(JSON.parse(this.styleString)),this._shouldStyle=!0,this._scene.requestRender()}catch(t){this._editorError=t.toString()}this.feature=this._feature,this.tile=this._tile}};bc.prototype.styleEditorKeyPress=function(e,t){if(t.keyCode===9){t.preventDefault();let n=t.target,i=n.selectionStart,r=n.selectionEnd,o=r,a=n.value.slice(i,r).split(`
|
|
19043
|
-
`),c=a.length,l;if(t.shiftKey)for(l=0;l<c;++l)a[l][0]===" "&&(a[l][1]===" "?(a[l]=a[l].substr(2),o-=2):(a[l]=a[l].substr(1),o-=1));else for(l=0;l<c;++l)a[l]=` ${a[l]}`,o+=2;let f=a.join(`
|
|
19044
|
-
`);n.value=n.value.slice(0,i)+f+n.value.slice(r),n.selectionStart=i!==r?i:o,n.selectionEnd=o}else t.ctrlKey&&(t.keyCode===10||t.keyCode===13)&&this.compileStyle();return!0};bc.prototype._update=function(){let e=this._tileset;if(this.performance&&this._performanceDisplay.update(),u(e)){if(e.isDestroyed()){this.tile=void 0,this.feature=void 0,this.tileset=void 0;return}let t=e.style;this._style!==e.style&&(this._shouldStyle?(e.style=this._style,this._shouldStyle=!1):(this._style=t,this.styleString=JSON.stringify(t.style,null," ")))}this.showStatistics&&(this._statisticsText=tO(e,!1),this._pickStatisticsText=tO(e,!0),this._resourceCacheStatisticsText=k2e())};bc.prototype.isDestroyed=function(){return!1};bc.prototype.destroy=function(){this._eventHandler.destroy(),this._removePostRenderEvent();let e=this;return this._definedProperties.forEach(function(t){Se.getObservable(e,t).dispose()}),he(this)};bc.getStatistics=tO;var oW=bc;function sW(e,t){e=li(e);let n=document.createElement("div"),i=document.createElement("div");i.setAttribute("data-bind","visible: performance");let r=new oW(t,i);this._viewModel=r,this._container=e,this._element=n;let o=document.createElement("div");o.textContent="3D Tiles / M3D Inspector",o.className="cesium-cesiumInspector-button",o.setAttribute("data-bind","click: toggleInspector"),n.appendChild(o),n.className="cesium-cesiumInspector cesium-3DTilesInspector",n.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),e.appendChild(n);let s=document.createElement("div");s.className="cesium-cesiumInspector-dropDown",n.appendChild(s);let a=xl.createSection,c=xl.createCheckbox,l=xl.createRangeInput,f=xl.createButton,d=a(s,"Tileset","tilesetVisible","toggleTileset"),p=a(s,"Display","displayVisible","toggleDisplay"),_=a(s,"Update","updateVisible","toggleUpdate"),m=a(s,"Logging","loggingVisible","toggleLogging"),x=a(s,"Tile Debug Labels","tileDebugLabelsVisible","toggleTileDebugLabels"),b=a(s,"Style","styleVisible","toggleStyle"),T=a(s,"Optimization","optimizationVisible","toggleOptimization"),C=document.createElement("div");C.className="field-group";let A=document.createElement("label");A.className="field-label",A.appendChild(document.createTextNode("Properties: "));let E=document.createElement("div");E.setAttribute("data-bind","text: properties"),C.appendChild(A),C.appendChild(E),d.appendChild(C),d.appendChild(f("Pick Tileset","togglePickTileset","pickActive")),d.appendChild(f("Trim Tiles Cache","trimTilesCache")),d.appendChild(c("Enable Picking","picking")),p.appendChild(c("Colorize","colorize"));let v=p.appendChild(c("Wireframe","wireframe","_tileset === undefined || hasEnabledWireframe")),D=document.createElement("p");D.setAttribute("data-bind","visible: _tileset !== undefined && !hasEnabledWireframe"),D.setAttribute("class","cesium-3DTilesInspector-disabledElementsInfo"),D.innerText="Set enableDebugWireframe to true in the tileset constructor to enable this option.",v.appendChild(D),p.appendChild(c("Bounding Volumes","showBoundingVolumes")),p.appendChild(c("Content Volumes","showContentBoundingVolumes")),p.appendChild(c("Request Volumes","showRequestVolumes")),p.appendChild(c("Point Cloud Shading","pointCloudShading"));let R=document.createElement("div");R.setAttribute("data-bind","visible: pointCloudShading"),R.appendChild(l("Geometric Error Scale","geometricErrorScale",0,2,.01)),R.appendChild(l("Maximum Attenuation","maximumAttenuation",0,32,1)),R.appendChild(l("Base Resolution","baseResolution",0,1,.01)),R.appendChild(c("Eye Dome Lighting (EDL)","eyeDomeLighting")),p.appendChild(R);let O=document.createElement("div");O.setAttribute("data-bind","visible: eyeDomeLighting"),O.appendChild(l("EDL Strength","eyeDomeLightingStrength",0,2,.1)),O.appendChild(l("EDL Radius","eyeDomeLightingRadius",0,4,.1)),R.appendChild(O),_.appendChild(c("Freeze Frame","freezeFrame")),_.appendChild(c("Dynamic Screen Space Error","dynamicScreenSpaceError"));let L=document.createElement("div");L.appendChild(l("Maximum Screen Space Error","maximumScreenSpaceError",0,128,1)),_.appendChild(L);let N=document.createElement("div");N.setAttribute("data-bind","visible: dynamicScreenSpaceError"),N.appendChild(l("Screen Space Error Density","dynamicScreenSpaceErrorDensitySliderValue",0,1,.005,"dynamicScreenSpaceErrorDensity")),N.appendChild(l("Screen Space Error Factor","dynamicScreenSpaceErrorFactor",1,32,.1)),_.appendChild(N),m.appendChild(c("Performance","performance")),m.appendChild(i),m.appendChild(c("Statistics","showStatistics"));let g=document.createElement("div");g.className="cesium-3dTilesInspector-statistics",g.setAttribute("data-bind","html: statisticsText, visible: showStatistics"),m.appendChild(g),m.appendChild(c("Pick Statistics","showPickStatistics"));let S=document.createElement("div");S.className="cesium-3dTilesInspector-statistics",S.setAttribute("data-bind","html: pickStatisticsText, visible: showPickStatistics"),m.appendChild(S),m.appendChild(c("Resource Cache Statistics","showResourceCacheStatistics"));let w=document.createElement("div");w.className="cesium-3dTilesInspector-statistics",w.setAttribute("data-bind","html: resourceCacheStatisticsText, visible: showResourceCacheStatistics"),m.appendChild(w);let P=document.createElement("div");b.appendChild(P),P.appendChild(document.createTextNode("Color Blend Mode: "));let F=document.createElement("select");F.setAttribute("data-bind",'options: colorBlendModes, optionsText: "text", optionsValue: "value", value: colorBlendMode'),P.appendChild(F);let B=document.createElement("textarea");B.setAttribute("data-bind","textInput: styleString, event: { keydown: styleEditorKeyPress }"),P.className="cesium-cesiumInspector-styleEditor",P.appendChild(B);let H=f("Compile (Ctrl+Enter)","compileStyle");P.appendChild(H);let V=document.createElement("div");V.className="cesium-cesiumInspector-error",V.setAttribute("data-bind","text: editorError"),P.appendChild(V),x.appendChild(c("Show Picked Only","showOnlyPickedTileDebugLabel")),x.appendChild(c("Geometric Error","showGeometricError")),x.appendChild(c("Rendering Statistics","showRenderingStatistics")),x.appendChild(c("Memory Usage (MB)","showMemoryUsage")),x.appendChild(c("Url","showUrl")),T.appendChild(c("Skip Tile LODs","skipLevelOfDetail"));let U=document.createElement("div");U.appendChild(l("Skip SSE Factor","skipScreenSpaceErrorFactor",1,50,1)),T.appendChild(U);let k=document.createElement("div");k.appendChild(l("SSE before skipping LOD","baseScreenSpaceError",0,4096,1)),T.appendChild(k);let W=document.createElement("div");W.appendChild(l("Min. levels to skip","skipLevels",0,10,1)),T.appendChild(W),T.appendChild(c("Load only tiles that meet the max SSE.","immediatelyLoadDesiredLevelOfDetail")),T.appendChild(c("Load siblings of visible tiles","loadSiblings")),Se.applyBindings(r,n)}Object.defineProperties(sW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});sW.prototype.isDestroyed=function(){return!1};sW.prototype.destroy=function(){return Se.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),he(this)};var aW=sW;function mBt(e){let t;if(u(e)){t="Command Statistics";let n=e.commandsInFrustums;for(let i in n)if(n.hasOwnProperty(i)){let r=parseInt(i,10),o;if(r===7)o="1, 2 and 3";else{let s=[];for(let a=2;a>=0;a--){let c=Math.pow(2,a);r>=c&&(s.push(a+1),r-=c)}o=s.reverse().join(" and ")}t+=`<br> ${n[i]} in frustum ${o}`}t+=`<br>Total: ${e.totalCommands}`}return t}function Wne(e,t,n){let i=Math.min(n,t);return i=Math.max(i,e),i}var pBt=new kn,_Bt=new h;function nO(e,t){let n=this,i=e.canvas,r=new ch(i);this._eventHandler=r,this._scene=e,this._canvas=i,this._primitive=void 0,this._tile=void 0,this._modelMatrixPrimitive=void 0,this._performanceDisplay=void 0,this._performanceContainer=t;let o=this._scene.globe;o.depthTestAgainstTerrain=!0,this.frustums=!1,this.frustumPlanes=!1,this.performance=!1,this.shaderCacheText="",this.primitiveBoundingSphere=!1,this.primitiveReferenceFrame=!1,this.filterPrimitive=!1,this.tileBoundingSphere=!1,this.filterTile=!1,this.wireframe=!1,this.depthFrustum=1,this._numberOfFrustums=1,this.suspendUpdates=!1,this.tileCoordinates=!1,this.frustumStatisticText=!1,this.tileText="",this.hasPickedPrimitive=!1,this.hasPickedTile=!1,this.pickPrimitiveActive=!1,this.pickTileActive=!1,this.dropDownVisible=!0,this.generalVisible=!0,this.primitivesVisible=!1,this.terrainVisible=!1,this.depthFrustumText="",Se.track(this,["frustums","frustumPlanes","performance","shaderCacheText","primitiveBoundingSphere","primitiveReferenceFrame","filterPrimitive","tileBoundingSphere","filterTile","wireframe","depthFrustum","suspendUpdates","tileCoordinates","frustumStatisticText","tileText","hasPickedPrimitive","hasPickedTile","pickPrimitiveActive","pickTileActive","dropDownVisible","generalVisible","primitivesVisible","terrainVisible","depthFrustumText"]),this._toggleDropDown=ni(function(){n.dropDownVisible=!n.dropDownVisible}),this._toggleGeneral=ni(function(){n.generalVisible=!n.generalVisible}),this._togglePrimitives=ni(function(){n.primitivesVisible=!n.primitivesVisible}),this._toggleTerrain=ni(function(){n.terrainVisible=!n.terrainVisible}),this._frustumsSubscription=Se.getObservable(this,"frustums").subscribe(function(l){n._scene.debugShowFrustums=l,n._scene.requestRender()}),this._frustumPlanesSubscription=Se.getObservable(this,"frustumPlanes").subscribe(function(l){n._scene.debugShowFrustumPlanes=l,n._scene.requestRender()}),this._performanceSubscription=Se.getObservable(this,"performance").subscribe(function(l){l?n._performanceDisplay=new yb({container:n._performanceContainer}):n._performanceContainer.innerHTML=""}),this._showPrimitiveBoundingSphere=ni(function(){return n._primitive.debugShowBoundingVolume=n.primitiveBoundingSphere,n._scene.requestRender(),!0}),this._primitiveBoundingSphereSubscription=Se.getObservable(this,"primitiveBoundingSphere").subscribe(function(){n._showPrimitiveBoundingSphere()}),this._showPrimitiveReferenceFrame=ni(function(){if(n.primitiveReferenceFrame){let l=n._primitive.modelMatrix;n._modelMatrixPrimitive=new zH({modelMatrix:l}),n._scene.primitives.add(n._modelMatrixPrimitive)}else u(n._modelMatrixPrimitive)&&(n._scene.primitives.remove(n._modelMatrixPrimitive),n._modelMatrixPrimitive=void 0);return n._scene.requestRender(),!0}),this._primitiveReferenceFrameSubscription=Se.getObservable(this,"primitiveReferenceFrame").subscribe(function(){n._showPrimitiveReferenceFrame()}),this._doFilterPrimitive=ni(function(){return n.filterPrimitive?n._scene.debugCommandFilter=function(l){return u(n._modelMatrixPrimitive)&&l.owner===n._modelMatrixPrimitive._primitive?!0:u(n._primitive)?l.owner===n._primitive||l.owner===n._primitive._billboardCollection||l.owner.primitive===n._primitive:!1}:n._scene.debugCommandFilter=void 0,!0}),this._filterPrimitiveSubscription=Se.getObservable(this,"filterPrimitive").subscribe(function(){n._doFilterPrimitive(),n._scene.requestRender()}),this._wireframeSubscription=Se.getObservable(this,"wireframe").subscribe(function(l){o._surface.tileProvider._debug.wireframe=l,n._scene.requestRender()}),this._depthFrustumSubscription=Se.getObservable(this,"depthFrustum").subscribe(function(l){n._scene.debugShowDepthFrustum=l,n._scene.requestRender()}),this._incrementDepthFrustum=ni(function(){let l=n.depthFrustum+1;return n.depthFrustum=Wne(1,n._numberOfFrustums,l),n._scene.requestRender(),!0}),this._decrementDepthFrustum=ni(function(){let l=n.depthFrustum-1;return n.depthFrustum=Wne(1,n._numberOfFrustums,l),n._scene.requestRender(),!0}),this._suspendUpdatesSubscription=Se.getObservable(this,"suspendUpdates").subscribe(function(l){o._surface._debug.suspendLodUpdate=l,l||(n.filterTile=!1)});let s;this._showTileCoordinates=ni(function(){return n.tileCoordinates&&!u(s)?s=e.imageryLayers.addImageryProvider(new L7({tilingScheme:e.terrainProvider.tilingScheme})):!n.tileCoordinates&&u(s)&&(e.imageryLayers.remove(s),s=void 0),!0}),this._tileCoordinatesSubscription=Se.getObservable(this,"tileCoordinates").subscribe(function(){n._showTileCoordinates(),n._scene.requestRender()}),this._tileBoundingSphereSubscription=Se.getObservable(this,"tileBoundingSphere").subscribe(function(){n._showTileBoundingSphere(),n._scene.requestRender()}),this._showTileBoundingSphere=ni(function(){return n.tileBoundingSphere?o._surface.tileProvider._debug.boundingSphereTile=n._tile:o._surface.tileProvider._debug.boundingSphereTile=void 0,n._scene.requestRender(),!0}),this._doFilterTile=ni(function(){return n.filterTile?(n.suspendUpdates=!0,o._surface._tilesToRender=[],u(n._tile)&&n._tile.renderable&&o._surface._tilesToRender.push(n._tile)):n.suspendUpdates=!1,!0}),this._filterTileSubscription=Se.getObservable(this,"filterTile").subscribe(function(){n.doFilterTile(),n._scene.requestRender()});function a(l){let f=n._scene.pick({x:l.position.x,y:l.position.y});u(f)&&(n.primitive=u(f.collection)?f.collection:f.primitive),n._scene.requestRender(),n.pickPrimitiveActive=!1}this._pickPrimitive=ni(function(){n.pickPrimitiveActive=!n.pickPrimitiveActive}),this._pickPrimitiveActiveSubscription=Se.getObservable(this,"pickPrimitiveActive").subscribe(function(l){l?r.setInputAction(a,Zn.LEFT_CLICK):r.removeInputAction(Zn.LEFT_CLICK)});function c(l){let f,d=o.ellipsoid,p=n._scene.camera.getPickRay(l.position,pBt),_=o.pick(p,n._scene,_Bt);if(u(_)){let m=d.cartesianToCartographic(_),x=o._surface.tileProvider._tilesToRenderByTextureCount;for(let b=0;!f&&b<x.length;++b){let T=x[b];if(u(T))for(let C=0;!f&&C<T.length;++C){let A=T[C];fe.contains(A.rectangle,m)&&(f=A)}}}n.tile=f,n.pickTileActive=!1}this._pickTile=ni(function(){n.pickTileActive=!n.pickTileActive}),this._pickTileActiveSubscription=Se.getObservable(this,"pickTileActive").subscribe(function(l){l?r.setInputAction(c,Zn.LEFT_CLICK):r.removeInputAction(Zn.LEFT_CLICK)}),this._removePostRenderEvent=e.postRender.addEventListener(function(){n._update()})}Object.defineProperties(nO.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},toggleDropDown:{get:function(){return this._toggleDropDown}},showPrimitiveBoundingSphere:{get:function(){return this._showPrimitiveBoundingSphere}},showPrimitiveReferenceFrame:{get:function(){return this._showPrimitiveReferenceFrame}},doFilterPrimitive:{get:function(){return this._doFilterPrimitive}},incrementDepthFrustum:{get:function(){return this._incrementDepthFrustum}},decrementDepthFrustum:{get:function(){return this._decrementDepthFrustum}},showTileCoordinates:{get:function(){return this._showTileCoordinates}},showTileBoundingSphere:{get:function(){return this._showTileBoundingSphere}},doFilterTile:{get:function(){return this._doFilterTile}},toggleGeneral:{get:function(){return this._toggleGeneral}},togglePrimitives:{get:function(){return this._togglePrimitives}},toggleTerrain:{get:function(){return this._toggleTerrain}},pickPrimitive:{get:function(){return this._pickPrimitive}},pickTile:{get:function(){return this._pickTile}},selectParent:{get:function(){let e=this;return ni(function(){e.tile=e.tile.parent})}},selectNW:{get:function(){let e=this;return ni(function(){e.tile=e.tile.northwestChild})}},selectNE:{get:function(){let e=this;return ni(function(){e.tile=e.tile.northeastChild})}},selectSW:{get:function(){let e=this;return ni(function(){e.tile=e.tile.southwestChild})}},selectSE:{get:function(){let e=this;return ni(function(){e.tile=e.tile.southeastChild})}},primitive:{get:function(){return this._primitive},set:function(e){let t=this._primitive;e!==t&&(this.hasPickedPrimitive=!0,u(t)&&(t.debugShowBoundingVolume=!1),this._scene.debugCommandFilter=void 0,u(this._modelMatrixPrimitive)&&(this._scene.primitives.remove(this._modelMatrixPrimitive),this._modelMatrixPrimitive=void 0),this._primitive=e,e.show=!1,setTimeout(function(){e.show=!0},50),this.showPrimitiveBoundingSphere(),this.showPrimitiveReferenceFrame(),this.doFilterPrimitive())}},tile:{get:function(){return this._tile},set:function(e){if(u(e)){this.hasPickedTile=!0;let t=this._tile;if(e!==t){this.tileText=`L: ${e.level} X: ${e.x} Y: ${e.y}`,this.tileText+=`<br>SW corner: ${e.rectangle.west}, ${e.rectangle.south}`,this.tileText+=`<br>NE corner: ${e.rectangle.east}, ${e.rectangle.north}`;let n=e.data;u(n)&&u(n.tileBoundingRegion)?this.tileText+=`<br>Min: ${n.tileBoundingRegion.minimumHeight} Max: ${n.tileBoundingRegion.maximumHeight}`:this.tileText+="<br>(Tile is not loaded)"}this._tile=e,this.showTileBoundingSphere(),this.doFilterTile()}else this.hasPickedTile=!1,this._tile=void 0}}});nO.prototype._update=function(){this.frustums&&(this.frustumStatisticText=mBt(this._scene.debugFrustumStatistics));let e=this._scene.numberOfFrustums;this._numberOfFrustums=e,this.depthFrustum=Wne(1,e,this.depthFrustum),this.depthFrustumText=`${this.depthFrustum} of ${e}`,this.performance&&this._performanceDisplay.update(),this.primitiveReferenceFrame&&(this._modelMatrixPrimitive.modelMatrix=this._primitive.modelMatrix),this.shaderCacheText=`Cached shaders: ${this._scene.context.shaderCache.numberOfShaders}`};nO.prototype.isDestroyed=function(){return!1};nO.prototype.destroy=function(){return this._eventHandler.destroy(),this._removePostRenderEvent(),this._frustumsSubscription.dispose(),this._frustumPlanesSubscription.dispose(),this._performanceSubscription.dispose(),this._primitiveBoundingSphereSubscription.dispose(),this._primitiveReferenceFrameSubscription.dispose(),this._filterPrimitiveSubscription.dispose(),this._wireframeSubscription.dispose(),this._depthFrustumSubscription.dispose(),this._suspendUpdatesSubscription.dispose(),this._tileCoordinatesSubscription.dispose(),this._tileBoundingSphereSubscription.dispose(),this._filterTileSubscription.dispose(),this._pickPrimitiveActiveSubscription.dispose(),this._pickTileActiveSubscription.dispose(),he(this)};var cW=nO;function lW(e,t){e=li(e);let n=document.createElement("div"),i=new cW(t,n);this._viewModel=i,this._container=e;let r=document.createElement("div");this._element=r;let o=document.createElement("div");o.textContent="Cesium Inspector",o.className="cesium-cesiumInspector-button",o.setAttribute("data-bind","click: toggleDropDown"),r.appendChild(o),r.className="cesium-cesiumInspector",r.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : dropDownVisible, "cesium-cesiumInspector-hidden" : !dropDownVisible }'),e.appendChild(this._element);let s=document.createElement("div");s.className="cesium-cesiumInspector-dropDown",r.appendChild(s);let a=xl.createSection,c=xl.createCheckbox,l=a(s,"General","generalVisible","toggleGeneral"),f=c("Show Frustums","frustums"),d=document.createElement("div");d.className="cesium-cesiumInspector-frustumStatistics",d.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),f.appendChild(d),l.appendChild(f),l.appendChild(c("Show Frustum Planes","frustumPlanes")),l.appendChild(c("Performance Display","performance")),n.className="cesium-cesiumInspector-performanceDisplay",l.appendChild(n);let p=document.createElement("div");p.className="cesium-cesiumInspector-shaderCache",p.setAttribute("data-bind","html: shaderCacheText"),l.appendChild(p);let _=document.createElement("div");l.appendChild(_);let m=document.createElement("span");m.setAttribute("data-bind",'html: " Frustum:"'),_.appendChild(m);let x=document.createElement("span");x.setAttribute("data-bind","text: depthFrustumText"),_.appendChild(x);let b=document.createElement("input");b.type="button",b.value="-",b.className="cesium-cesiumInspector-pickButton",b.setAttribute("data-bind","click: decrementDepthFrustum"),_.appendChild(b);let T=document.createElement("input");T.type="button",T.value="+",T.className="cesium-cesiumInspector-pickButton",T.setAttribute("data-bind","click: incrementDepthFrustum"),_.appendChild(T);let C=a(s,"Primitives","primitivesVisible","togglePrimitives"),A=document.createElement("div");A.className="cesium-cesiumInspector-pickSection",C.appendChild(A);let E=document.createElement("input");E.type="button",E.value="Pick a primitive",E.className="cesium-cesiumInspector-pickButton",E.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let v=document.createElement("div");v.className="cesium-cesiumInspector-center",v.appendChild(E),A.appendChild(v),A.appendChild(c("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),A.appendChild(c("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=c("Show only selected","filterPrimitive","hasPickedPrimitive"),A.appendChild(this._primitiveOnly);let D=a(s,"Terrain","terrainVisible","toggleTerrain"),R=document.createElement("div");R.className="cesium-cesiumInspector-pickSection",D.appendChild(R);let O=document.createElement("input");O.type="button",O.value="Pick a tile",O.className="cesium-cesiumInspector-pickButton",O.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickTileActive}, click: pickTile'),v=document.createElement("div"),v.appendChild(O),v.className="cesium-cesiumInspector-center",R.appendChild(v);let L=document.createElement("div");R.appendChild(L);let N=document.createElement("input");N.type="button",N.value="Parent",N.className="cesium-cesiumInspector-pickButton",N.setAttribute("data-bind","click: selectParent");let g=document.createElement("input");g.type="button",g.value="NW",g.className="cesium-cesiumInspector-pickButton",g.setAttribute("data-bind","click: selectNW");let S=document.createElement("input");S.type="button",S.value="NE",S.className="cesium-cesiumInspector-pickButton",S.setAttribute("data-bind","click: selectNE");let w=document.createElement("input");w.type="button",w.value="SW",w.className="cesium-cesiumInspector-pickButton",w.setAttribute("data-bind","click: selectSW");let P=document.createElement("input");P.type="button",P.value="SE",P.className="cesium-cesiumInspector-pickButton",P.setAttribute("data-bind","click: selectSE");let F=document.createElement("div");F.className="cesium-cesiumInspector-tileText",L.className="cesium-cesiumInspector-frustumStatistics",L.appendChild(F),L.setAttribute("data-bind","visible: hasPickedTile"),F.setAttribute("data-bind","html: tileText");let B=document.createElement("div");B.className="cesium-cesiumInspector-relativeText",B.textContent="Select relative:",L.appendChild(B);let H=document.createElement("table"),V=document.createElement("tr"),U=document.createElement("tr"),k=document.createElement("td");k.appendChild(N);let W=document.createElement("td");W.appendChild(g);let j=document.createElement("td");j.appendChild(S),V.appendChild(k),V.appendChild(W),V.appendChild(j);let K=document.createElement("td"),Y=document.createElement("td");Y.appendChild(w);let ee=document.createElement("td");ee.appendChild(P),U.appendChild(K),U.appendChild(Y),U.appendChild(ee),H.appendChild(V),H.appendChild(U),L.appendChild(H),R.appendChild(c("Show bounding volume","tileBoundingSphere","hasPickedTile")),R.appendChild(c("Show only selected","filterTile","hasPickedTile")),D.appendChild(c("Wireframe","wireframe")),D.appendChild(c("Suspend LOD update","suspendUpdates")),D.appendChild(c("Show tile coordinates","tileCoordinates")),Se.applyBindings(i,this._element)}Object.defineProperties(lW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});lW.prototype.isDestroyed=function(){return!1};lW.prototype.destroy=function(){return Se.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),he(this)};var uW=lW;function fW(e,t){u(t)||(t=document.body),t=li(t);let n=this,i=Se.observable(As.fullscreen),r=Se.observable(As.enabled),o=t.ownerDocument;this.isFullscreen=void 0,Se.defineProperty(this,"isFullscreen",{get:function(){return i()}}),this.isFullscreenEnabled=void 0,Se.defineProperty(this,"isFullscreenEnabled",{get:function(){return r()},set:function(s){r(s&&As.enabled)}}),this.tooltip=void 0,Se.defineProperty(this,"tooltip",function(){return this.isFullscreenEnabled?i()?"Exit full screen":"Full screen":"Full screen unavailable"}),this._command=ni(function(){As.fullscreen?As.exitFullscreen():As.requestFullscreen(n._fullscreenElement)},Se.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=y(li(e),o.body),this._callback=function(){i(As.fullscreen)},o.addEventListener(As.changeEventName,this._callback)}Object.defineProperties(fW.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(e){this._fullscreenElement=e}},command:{get:function(){return this._command}}});fW.prototype.isDestroyed=function(){return!1};fW.prototype.destroy=function(){document.removeEventListener(As.changeEventName,this._callback),he(this)};var dW=fW;var gBt="M 83.96875 17.5625 L 83.96875 17.59375 L 76.65625 24.875 L 97.09375 24.96875 L 76.09375 45.96875 L 81.9375 51.8125 L 102.78125 30.9375 L 102.875 51.15625 L 110.15625 43.875 L 110.1875 17.59375 L 83.96875 17.5625 z M 44.125 17.59375 L 17.90625 17.625 L 17.9375 43.90625 L 25.21875 51.1875 L 25.3125 30.96875 L 46.15625 51.8125 L 52 45.96875 L 31 25 L 51.4375 24.90625 L 44.125 17.59375 z M 46.0625 76.03125 L 25.1875 96.875 L 25.09375 76.65625 L 17.8125 83.9375 L 17.8125 110.21875 L 44 110.25 L 51.3125 102.9375 L 30.90625 102.84375 L 51.875 81.875 L 46.0625 76.03125 z M 82 76.15625 L 76.15625 82 L 97.15625 103 L 76.71875 103.0625 L 84.03125 110.375 L 110.25 110.34375 L 110.21875 84.0625 L 102.9375 76.8125 L 102.84375 97 L 82 76.15625 z",yBt="M 104.34375 17.5625 L 83.5 38.4375 L 83.40625 18.21875 L 76.125 25.5 L 76.09375 51.78125 L 102.3125 51.8125 L 102.3125 51.78125 L 109.625 44.5 L 89.1875 44.40625 L 110.1875 23.40625 L 104.34375 17.5625 z M 23.75 17.59375 L 17.90625 23.4375 L 38.90625 44.4375 L 18.5 44.53125 L 25.78125 51.8125 L 52 51.78125 L 51.96875 25.53125 L 44.6875 18.25 L 44.625 38.46875 L 23.75 17.59375 z M 25.6875 76.03125 L 18.375 83.3125 L 38.78125 83.40625 L 17.8125 104.40625 L 23.625 110.25 L 44.5 89.375 L 44.59375 109.59375 L 51.875 102.3125 L 51.875 76.0625 L 25.6875 76.03125 z M 102.375 76.15625 L 76.15625 76.1875 L 76.1875 102.4375 L 83.46875 109.71875 L 83.5625 89.53125 L 104.40625 110.375 L 110.25 104.53125 L 89.25 83.53125 L 109.6875 83.46875 L 102.375 76.15625 z";function hW(e,t){e=li(e);let n=new dW(t,e);n._exitFullScreenPath=yBt,n._enterFullScreenPath=gBt;let i=document.createElement("button");i.type="button",i.className="cesium-button cesium-fullscreenButton",i.setAttribute("data-bind","attr: { title: tooltip },click: command,enable: isFullscreenEnabled,cesiumSvgPath: { path: isFullscreen ? _exitFullScreenPath : _enterFullScreenPath, width: 128, height: 128 }"),e.appendChild(i),Se.applyBindings(n,i),this._container=e,this._viewModel=n,this._element=i}Object.defineProperties(hW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});hW.prototype.isDestroyed=function(){return!1};hW.prototype.destroy=function(){return this._viewModel.destroy(),Se.cleanNode(this._element),this._container.removeChild(this._element),he(this)};var mW=hW;var V2e=1e3;function bh(e){u(e.geocoderServices)?this._geocoderServices=e.geocoderServices:this._geocoderServices=[new p6({scene:e.scene})],this._viewContainer=e.container,this._scene=e.scene,this._flightDuration=e.flightDuration,this._searchText="",this._isSearchInProgress=!1,this._wasGeocodeCancelled=!1,this._previousCredits=[],this._complete=new be,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=z2e,this._handleArrowUp=U2e;let t=this;this._suggestionsVisible=Se.pureComputed(function(){let r=Se.getObservable(t,"_suggestions")().length>0,o=Se.getObservable(t,"_showSuggestions")();return r&&o}),this._searchCommand=ni(function(i){if(i=y(i,GC.SEARCH),t._focusTextbox=!1,u(t._selectedSuggestion))return t.activateSuggestion(t._selectedSuggestion),!1;if(t.hideSuggestions(),t.isSearchInProgress)EBt(t);else return CBt(t,t._geocoderServices,i)}),this.deselectSuggestion=function(){t._selectedSuggestion=void 0},this.handleKeyDown=function(i,r){let o=r.key==="ArrowDown"||r.key==="Down"||r.keyCode===40,s=r.key==="ArrowUp"||r.key==="Up"||r.keyCode===38;return(o||s)&&r.preventDefault(),!0},this.handleKeyUp=function(i,r){let o=r.key==="ArrowDown"||r.key==="Down"||r.keyCode===40,s=r.key==="ArrowUp"||r.key==="Up"||r.keyCode===38,a=r.key==="Enter"||r.keyCode===13;return s?U2e(t):o?z2e(t):a&&t._searchCommand(),!0},this.activateSuggestion=function(i){t.hideSuggestions(),t._searchText=i.displayName;let r=i.destination;W2e(t),t.destinationFound(t,r)},this.hideSuggestions=function(){t._showSuggestions=!1,t._selectedSuggestion=void 0},this.showSuggestions=function(){t._showSuggestions=!0},this.handleMouseover=function(i,r){i!==t._selectedSuggestion&&(t._selectedSuggestion=i)},this.keepExpanded=!1,this.autoComplete=y(e.autocomplete,!0),this.destinationFound=y(e.destinationFound,bh.flyToDestination),this._focusTextbox=!1,Se.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let n=Se.getObservable(this,"_searchText");n.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=n.subscribe(function(){bh._updateSearchSuggestions(t)}),this.isSearchInProgress=void 0,Se.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,Se.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(i){this._searchText=i}}),this.flightDuration=void 0,Se.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(i){this._flightDuration=i}})}Object.defineProperties(bh.prototype,{complete:{get:function(){return this._complete}},scene:{get:function(){return this._scene}},search:{get:function(){return this._searchCommand}},selectedSuggestion:{get:function(){return this._selectedSuggestion}},suggestions:{get:function(){return this._suggestions}}});bh.prototype.destroy=function(){this._suggestionSubscription.dispose()};function U2e(e){if(e._suggestions.length===0)return;let t=e._suggestions.indexOf(e._selectedSuggestion);if(t===-1||t===0){e._selectedSuggestion=void 0;return}let n=t-1;e._selectedSuggestion=e._suggestions[n],bh._adjustSuggestionsScroll(e,n)}function z2e(e){if(e._suggestions.length===0)return;let t=e._suggestions.length,i=(e._suggestions.indexOf(e._selectedSuggestion)+1)%t;e._selectedSuggestion=e._suggestions[i],bh._adjustSuggestionsScroll(e,i)}function xBt(e,t){let n=u(t)?t.availability:void 0;return u(n)?Mw(t,[e]).then(function(i){return e=i[0],e.height+=V2e,e}):(e.height+=V2e,Promise.resolve(e))}function bBt(e,t){let n=e._scene,i=n.ellipsoid,r=n.camera,o=n.terrainProvider,s=t,a;return t instanceof fe?I.equalsEpsilon(t.south,t.north,I.EPSILON7)&&I.equalsEpsilon(t.east,t.west,I.EPSILON7)?t=fe.center(t):a=jw(t,n):t=i.cartesianToCartographic(t),u(a)||(a=xBt(t,o)),a.then(function(c){s=i.cartographicToCartesian(c)}).finally(function(){r.flyTo({destination:s,complete:function(){e._complete.raiseEvent()},duration:e._flightDuration,endTransform:M.IDENTITY})})}async function TBt(e,t,n){try{return{state:"fulfilled",value:await e.geocode(t,n),credits:e.credit}}catch(i){return{state:"rejected",reason:i}}}async function CBt(e,t,n){let i=e._searchText;if(G2e(i)){e.showSuggestions();return}e._isSearchInProgress=!0,e._wasGeocodeCancelled=!1;let r,o;for(r=0;r<t.length;r++){if(e._wasGeocodeCancelled)return;if(o=await TBt(t[r],i,n),u(o)&&o.state==="fulfilled"&&o.value.length>0)break}if(e._wasGeocodeCancelled)return;e._isSearchInProgress=!1,qne(e);let s=o.value;if(o.state==="fulfilled"&&u(s)&&s.length>0){e._searchText=s[0].displayName,e.destinationFound(e,s[0].destination);let a=H2e(e,v2.getCreditsFromResult(s[0]));u(a)||jne(e,t[r].credit);return}e._searchText=`${i} (not found)`}function jne(e,t){u(t)&&!e._scene.isDestroyed()&&!e._scene.frameState.creditDisplay.isDestroyed()&&(e._scene.frameState.creditDisplay.addStaticCredit(t),e._previousCredits.push(t))}function H2e(e,t){return u(t)&&t.forEach(n=>jne(e,n)),t}function qne(e){!e._scene.isDestroyed()&&!e._scene.frameState.creditDisplay.isDestroyed()&&e._previousCredits.forEach(t=>{e._scene.frameState.creditDisplay.removeStaticCredit(t)}),e._previousCredits.length=0}function ABt(e,t){let n=li(e._viewContainer),i=n.getElementsByClassName("search-results")[0],o=n.getElementsByTagName("li")[t];if(t===0){i.scrollTop=0;return}let s=o.offsetTop;s+o.clientHeight>i.clientHeight?i.scrollTop=s+o.clientHeight:s<i.scrollTop&&(i.scrollTop=s)}function EBt(e){e._isSearchInProgress&&(e._isSearchInProgress=!1,e._wasGeocodeCancelled=!0)}function G2e(e){return/^\s*$/.test(e)}function W2e(e){Se.getObservable(e,"_suggestions").removeAll()}async function SBt(e){if(!e.autoComplete)return;let t=e._searchText;if(W2e(e),qne(e),!G2e(t))for(let n of e._geocoderServices){let i=await n.geocode(t,GC.AUTOCOMPLETE);if(e._suggestions=e._suggestions.concat(i),i.length>0){let r=!0;i.forEach(o=>{let s=v2.getCreditsFromResult(o);r=r&&!u(s),H2e(e,s)}),r&&jne(e,n.credit)}if(e._suggestions.length>=5)return}}bh.flyToDestination=bBt;bh._updateSearchSuggestions=SBt;bh._adjustSuggestionsScroll=ABt;bh.prototype.isDestroyed=function(){return!1};bh.prototype.destroy=function(){return qne(this),he(this)};var pW=bh;var vBt="M29.772,26.433l-7.126-7.126c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127L29.772,26.433zM7.203,13.885c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486c-0.007,3.58-2.905,6.476-6.484,6.484C10.106,20.361,7.209,17.465,7.203,13.885z",wBt="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z";function _W(e){let t=li(e.container),n=new pW(e);n._startSearchPath=vBt,n._stopSearchPath=wBt;let i=document.createElement("form");i.setAttribute("data-bind","submit: search");let r=document.createElement("input");r.type="search",r.className="cesium-geocoder-input",r.setAttribute("placeholder","Enter an address or landmark..."),r.setAttribute("data-bind",'textInput: searchText,disable: isSearchInProgress,event: { keyup: handleKeyUp, keydown: handleKeyDown, mouseover: deselectSuggestion },css: { "cesium-geocoder-input-wide" : keepExpanded || searchText.length > 0 },hasFocus: _focusTextbox'),this._onTextBoxFocus=function(){setTimeout(function(){r.select()},0)},r.addEventListener("focus",this._onTextBoxFocus,!1),i.appendChild(r),this._textBox=r;let o=document.createElement("span");o.className="cesium-geocoder-searchButton",o.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),i.appendChild(o),t.appendChild(i);let s=document.createElement("div");s.className="search-results",s.setAttribute("data-bind","visible: _suggestionsVisible");let a=document.createElement("ul");a.setAttribute("data-bind","foreach: _suggestions");let c=document.createElement("li");a.appendChild(c),c.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),s.appendChild(a),t.appendChild(s),Se.applyBindings(n,i),Se.applyBindings(n,s),this._container=t,this._searchSuggestionsContainer=s,this._viewModel=n,this._form=i,this._onInputBegin=function(l){let f=l.target;typeof l.composedPath=="function"&&(f=l.composedPath()[0]),t.contains(f)||(n._focusTextbox=!1,n.hideSuggestions())},this._onInputEnd=function(l){n._focusTextbox=!0,n.showSuggestions()},mn.supportsPointerEvents()?(document.addEventListener("pointerdown",this._onInputBegin,!0),t.addEventListener("pointerup",this._onInputEnd,!0),t.addEventListener("pointercancel",this._onInputEnd,!0)):(document.addEventListener("mousedown",this._onInputBegin,!0),t.addEventListener("mouseup",this._onInputEnd,!0),document.addEventListener("touchstart",this._onInputBegin,!0),t.addEventListener("touchend",this._onInputEnd,!0),t.addEventListener("touchcancel",this._onInputEnd,!0))}Object.defineProperties(_W.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}});_W.prototype.isDestroyed=function(){return!1};_W.prototype.destroy=function(){let e=this._container;return mn.supportsPointerEvents()?(document.removeEventListener("pointerdown",this._onInputBegin,!0),e.removeEventListener("pointerup",this._onInputEnd,!0)):(document.removeEventListener("mousedown",this._onInputBegin,!0),e.removeEventListener("mouseup",this._onInputEnd,!0),document.removeEventListener("touchstart",this._onInputBegin,!0),e.removeEventListener("touchend",this._onInputEnd,!0)),this._viewModel.destroy(),Se.cleanNode(this._form),Se.cleanNode(this._searchSuggestionsContainer),e.removeChild(this._form),e.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),he(this)};var gW=_W;function j2e(e,t){this._scene=e,this._duration=t;let n=this;this._command=ni(function(){n._scene.camera.flyHome(n._duration)}),this.tooltip="View Home",Se.track(this,["tooltip"])}Object.defineProperties(j2e.prototype,{scene:{get:function(){return this._scene}},command:{get:function(){return this._command}},duration:{get:function(){return this._duration},set:function(e){this._duration=e}}});var yW=j2e;function xW(e,t,n){e=li(e);let i=new yW(t,n);i._svgPath="M14,4l-10,8.75h20l-4.25-3.7188v-4.6562h-2.812v2.1875l-2.938-2.5625zm-7.0938,9.906v10.094h14.094v-10.094h-14.094zm2.1876,2.313h3.3122v4.25h-3.3122v-4.25zm5.8442,1.281h3.406v6.438h-3.406v-6.438z";let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button cesium-home-button",r.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),e.appendChild(r),Se.applyBindings(i,r),this._container=e,this._viewModel=i,this._element=r}Object.defineProperties(xW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});xW.prototype.isDestroyed=function(){return!1};xW.prototype.destroy=function(){return Se.cleanNode(this._element),this._container.removeChild(this._element),he(this)};var bW=xW;function DBt(e,t){t.currentTarget.parentElement.parentElement.querySelector(`#${e.name}-expander`).classList.toggle("active"),t.currentTarget.textContent=t.currentTarget.textContent==="+"?"-":"+"}function Y2e(e,t){Se.track(e);for(let n=0;n<e.sublayers.length;n++)Y2e(e.sublayers[n],t)}function TW(e){return e.modelName==="FullModel"}function X2e(e){return e.modelName==="Overview"}function K2e(e){return X2e(e)||TW(e)}function q2e(e,t){if(K2e(e)){e.visibility=!1;for(let i=0;i<e.sublayers.length;i++)e.sublayers[i].visibility=!0;let n={name:e.name,modelName:e.modelName,disable:Se.observable(!1),index:t.sublayers.length};return t.topLayers.push(n),t.sublayers.push(e),n}}function PBt(e,t){if(K2e(e)){t.sublayers.forEach(i=>i.visibility=!1),t.sublayers[e.index].visibility=!0;let n=document.getElementById("bsl-wrapper");TW(e)?(t.currentLevel=t.selectedLevel,n.style.display="block"):(t.selectedLevel=t.currentLevel,t.currentLevel="All",n.style.display="none")}}async function IBt(e,t){try{let n=e.getAttributeNames();for(let i=0;i<n.length;i++)if(n[i]==="BldgLevel"){let r=e.getAttributeValues(n[i]);for(let o=0;o<r.length;o++)t.push(r[o])}t.sort((i,r)=>i-r),t.unshift("All")}catch(n){console.log(`There was an error getting attributes: ${n}`)}}function RBt(e){let t=this;this.levels=[],this.viewModel={sublayers:[],levels:this.levels,currentLevel:Se.observable(),selectedLevel:"All",topLayers:[{name:"Select a layer to explore...",disable:Se.observable(!0),index:-1}],currentLayer:Se.observable(),expandClickHandler:DBt,setOptionDisable:function(i,r){Se.applyBindingsToNode(i,{disable:r.disable},r)},defaultLayer:void 0},this.viewModel.currentLayer.subscribe(function(i){PBt(i,t.viewModel)});let n=e.sublayers;for(let i=0;i<n.length;i++){Y2e(n[i],this.viewModel);let r=q2e(n[i],this.viewModel);u(r)&&(X2e(r)||!u(this.viewModel.defaultLayer)&&TW(r))&&(this.viewModel.defaultLayer=r)}if(this.viewModel.topLayers.length===1&&n.length>0){e.show=!1;let i={name:"Full Model",modelName:"FullModel",visibility:e.show,sublayers:e.sublayers};this.viewModel.defaultLayer=q2e(i,this.viewModel),this.viewModel.currentLayer.subscribe(function(r){e.show=TW(r)})}else this.viewModel.topLayers.length===1&&(this.viewModel.topLayers[0].name="Building layers not found");return IBt(e,this.levels),this.viewModel.currentLevel.subscribe(function(i){i!=="All"?e.filterByAttributes([{name:"BldgLevel",values:[i]}]):e.filterByAttributes()}),this.viewModel}var CW=RBt;function OBt(e,t){let n=document.getElementById(e),i=document.createElement("div");i.classList.add("cesium-viewer-i3s-explorer"),i.innerHTML=`
|
|
19044
|
+
http://www.naturalearthdata.com/`,category:"Cesium ion",creationFunction:function(){return KC.fromUrl(Cn("Assets/Textures/NaturalEarthII"))}})),e}var sW=dBt;function hBt(){let e=[];return e.push(new ma({name:"WGS84 Ellipsoid",iconUrl:Cn("Widgets/Images/TerrainProviders/Ellipsoid.png"),tooltip:"WGS84 standard ellipsoid, also known as EPSG:4326",category:"Cesium ion",creationFunction:function(){return new u0({ellipsoid:ne.WGS84})}})),e.push(new ma({name:"Cesium World Terrain",iconUrl:Cn("Widgets/Images/TerrainProviders/CesiumWorldTerrain.png"),tooltip:"High-resolution global terrain tileset curated from several datasources and hosted by Cesium ion",category:"Cesium ion",creationFunction:function(){return Sw({requestWaterMask:!0,requestVertexNormals:!0})}})),e}var aW=hBt;function mBt(e){let t;if(u(e)){t="Command Statistics";let n=e.commandsInFrustums;for(let i in n)if(n.hasOwnProperty(i)){let r=parseInt(i,10),o;if(r===7)o="1, 2 and 3";else{let s=[];for(let a=2;a>=0;a--){let c=Math.pow(2,a);r>=c&&(s.push(a+1),r-=c)}o=s.reverse().join(" and ")}t+=`<br> ${n[i]} in frustum ${o}`}t+=`<br>Total: ${e.totalCommands}`}return t}function Wne(e,t,n){let i=Math.min(n,t);return i=Math.max(i,e),i}var pBt=new kn,_Bt=new h;function nO(e,t){let n=this,i=e.canvas,r=new ch(i);this._eventHandler=r,this._scene=e,this._canvas=i,this._primitive=void 0,this._tile=void 0,this._modelMatrixPrimitive=void 0,this._performanceDisplay=void 0,this._performanceContainer=t;let o=this._scene.globe;o.depthTestAgainstTerrain=!0,this.frustums=!1,this.frustumPlanes=!1,this.performance=!1,this.shaderCacheText="",this.primitiveBoundingSphere=!1,this.primitiveReferenceFrame=!1,this.filterPrimitive=!1,this.tileBoundingSphere=!1,this.filterTile=!1,this.wireframe=!1,this.depthFrustum=1,this._numberOfFrustums=1,this.suspendUpdates=!1,this.tileCoordinates=!1,this.frustumStatisticText=!1,this.tileText="",this.hasPickedPrimitive=!1,this.hasPickedTile=!1,this.pickPrimitiveActive=!1,this.pickTileActive=!1,this.dropDownVisible=!0,this.generalVisible=!0,this.primitivesVisible=!1,this.terrainVisible=!1,this.depthFrustumText="",Se.track(this,["frustums","frustumPlanes","performance","shaderCacheText","primitiveBoundingSphere","primitiveReferenceFrame","filterPrimitive","tileBoundingSphere","filterTile","wireframe","depthFrustum","suspendUpdates","tileCoordinates","frustumStatisticText","tileText","hasPickedPrimitive","hasPickedTile","pickPrimitiveActive","pickTileActive","dropDownVisible","generalVisible","primitivesVisible","terrainVisible","depthFrustumText"]),this._toggleDropDown=ni(function(){n.dropDownVisible=!n.dropDownVisible}),this._toggleGeneral=ni(function(){n.generalVisible=!n.generalVisible}),this._togglePrimitives=ni(function(){n.primitivesVisible=!n.primitivesVisible}),this._toggleTerrain=ni(function(){n.terrainVisible=!n.terrainVisible}),this._frustumsSubscription=Se.getObservable(this,"frustums").subscribe(function(l){n._scene.debugShowFrustums=l,n._scene.requestRender()}),this._frustumPlanesSubscription=Se.getObservable(this,"frustumPlanes").subscribe(function(l){n._scene.debugShowFrustumPlanes=l,n._scene.requestRender()}),this._performanceSubscription=Se.getObservable(this,"performance").subscribe(function(l){l?n._performanceDisplay=new yb({container:n._performanceContainer}):n._performanceContainer.innerHTML=""}),this._showPrimitiveBoundingSphere=ni(function(){return n._primitive.debugShowBoundingVolume=n.primitiveBoundingSphere,n._scene.requestRender(),!0}),this._primitiveBoundingSphereSubscription=Se.getObservable(this,"primitiveBoundingSphere").subscribe(function(){n._showPrimitiveBoundingSphere()}),this._showPrimitiveReferenceFrame=ni(function(){if(n.primitiveReferenceFrame){let l=n._primitive.modelMatrix;n._modelMatrixPrimitive=new zH({modelMatrix:l}),n._scene.primitives.add(n._modelMatrixPrimitive)}else u(n._modelMatrixPrimitive)&&(n._scene.primitives.remove(n._modelMatrixPrimitive),n._modelMatrixPrimitive=void 0);return n._scene.requestRender(),!0}),this._primitiveReferenceFrameSubscription=Se.getObservable(this,"primitiveReferenceFrame").subscribe(function(){n._showPrimitiveReferenceFrame()}),this._doFilterPrimitive=ni(function(){return n.filterPrimitive?n._scene.debugCommandFilter=function(l){return u(n._modelMatrixPrimitive)&&l.owner===n._modelMatrixPrimitive._primitive?!0:u(n._primitive)?l.owner===n._primitive||l.owner===n._primitive._billboardCollection||l.owner.primitive===n._primitive:!1}:n._scene.debugCommandFilter=void 0,!0}),this._filterPrimitiveSubscription=Se.getObservable(this,"filterPrimitive").subscribe(function(){n._doFilterPrimitive(),n._scene.requestRender()}),this._wireframeSubscription=Se.getObservable(this,"wireframe").subscribe(function(l){o._surface.tileProvider._debug.wireframe=l,n._scene.requestRender()}),this._depthFrustumSubscription=Se.getObservable(this,"depthFrustum").subscribe(function(l){n._scene.debugShowDepthFrustum=l,n._scene.requestRender()}),this._incrementDepthFrustum=ni(function(){let l=n.depthFrustum+1;return n.depthFrustum=Wne(1,n._numberOfFrustums,l),n._scene.requestRender(),!0}),this._decrementDepthFrustum=ni(function(){let l=n.depthFrustum-1;return n.depthFrustum=Wne(1,n._numberOfFrustums,l),n._scene.requestRender(),!0}),this._suspendUpdatesSubscription=Se.getObservable(this,"suspendUpdates").subscribe(function(l){o._surface._debug.suspendLodUpdate=l,l||(n.filterTile=!1)});let s;this._showTileCoordinates=ni(function(){return n.tileCoordinates&&!u(s)?s=e.imageryLayers.addImageryProvider(new L7({tilingScheme:e.terrainProvider.tilingScheme})):!n.tileCoordinates&&u(s)&&(e.imageryLayers.remove(s),s=void 0),!0}),this._tileCoordinatesSubscription=Se.getObservable(this,"tileCoordinates").subscribe(function(){n._showTileCoordinates(),n._scene.requestRender()}),this._tileBoundingSphereSubscription=Se.getObservable(this,"tileBoundingSphere").subscribe(function(){n._showTileBoundingSphere(),n._scene.requestRender()}),this._showTileBoundingSphere=ni(function(){return n.tileBoundingSphere?o._surface.tileProvider._debug.boundingSphereTile=n._tile:o._surface.tileProvider._debug.boundingSphereTile=void 0,n._scene.requestRender(),!0}),this._doFilterTile=ni(function(){return n.filterTile?(n.suspendUpdates=!0,o._surface._tilesToRender=[],u(n._tile)&&n._tile.renderable&&o._surface._tilesToRender.push(n._tile)):n.suspendUpdates=!1,!0}),this._filterTileSubscription=Se.getObservable(this,"filterTile").subscribe(function(){n.doFilterTile(),n._scene.requestRender()});function a(l){let f=n._scene.pick({x:l.position.x,y:l.position.y});u(f)&&(n.primitive=u(f.collection)?f.collection:f.primitive),n._scene.requestRender(),n.pickPrimitiveActive=!1}this._pickPrimitive=ni(function(){n.pickPrimitiveActive=!n.pickPrimitiveActive}),this._pickPrimitiveActiveSubscription=Se.getObservable(this,"pickPrimitiveActive").subscribe(function(l){l?r.setInputAction(a,Zn.LEFT_CLICK):r.removeInputAction(Zn.LEFT_CLICK)});function c(l){let f,d=o.ellipsoid,p=n._scene.camera.getPickRay(l.position,pBt),_=o.pick(p,n._scene,_Bt);if(u(_)){let m=d.cartesianToCartographic(_),x=o._surface.tileProvider._tilesToRenderByTextureCount;for(let b=0;!f&&b<x.length;++b){let T=x[b];if(u(T))for(let C=0;!f&&C<T.length;++C){let A=T[C];fe.contains(A.rectangle,m)&&(f=A)}}}n.tile=f,n.pickTileActive=!1}this._pickTile=ni(function(){n.pickTileActive=!n.pickTileActive}),this._pickTileActiveSubscription=Se.getObservable(this,"pickTileActive").subscribe(function(l){l?r.setInputAction(c,Zn.LEFT_CLICK):r.removeInputAction(Zn.LEFT_CLICK)}),this._removePostRenderEvent=e.postRender.addEventListener(function(){n._update()})}Object.defineProperties(nO.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},toggleDropDown:{get:function(){return this._toggleDropDown}},showPrimitiveBoundingSphere:{get:function(){return this._showPrimitiveBoundingSphere}},showPrimitiveReferenceFrame:{get:function(){return this._showPrimitiveReferenceFrame}},doFilterPrimitive:{get:function(){return this._doFilterPrimitive}},incrementDepthFrustum:{get:function(){return this._incrementDepthFrustum}},decrementDepthFrustum:{get:function(){return this._decrementDepthFrustum}},showTileCoordinates:{get:function(){return this._showTileCoordinates}},showTileBoundingSphere:{get:function(){return this._showTileBoundingSphere}},doFilterTile:{get:function(){return this._doFilterTile}},toggleGeneral:{get:function(){return this._toggleGeneral}},togglePrimitives:{get:function(){return this._togglePrimitives}},toggleTerrain:{get:function(){return this._toggleTerrain}},pickPrimitive:{get:function(){return this._pickPrimitive}},pickTile:{get:function(){return this._pickTile}},selectParent:{get:function(){let e=this;return ni(function(){e.tile=e.tile.parent})}},selectNW:{get:function(){let e=this;return ni(function(){e.tile=e.tile.northwestChild})}},selectNE:{get:function(){let e=this;return ni(function(){e.tile=e.tile.northeastChild})}},selectSW:{get:function(){let e=this;return ni(function(){e.tile=e.tile.southwestChild})}},selectSE:{get:function(){let e=this;return ni(function(){e.tile=e.tile.southeastChild})}},primitive:{get:function(){return this._primitive},set:function(e){let t=this._primitive;e!==t&&(this.hasPickedPrimitive=!0,u(t)&&(t.debugShowBoundingVolume=!1),this._scene.debugCommandFilter=void 0,u(this._modelMatrixPrimitive)&&(this._scene.primitives.remove(this._modelMatrixPrimitive),this._modelMatrixPrimitive=void 0),this._primitive=e,e.show=!1,setTimeout(function(){e.show=!0},50),this.showPrimitiveBoundingSphere(),this.showPrimitiveReferenceFrame(),this.doFilterPrimitive())}},tile:{get:function(){return this._tile},set:function(e){if(u(e)){this.hasPickedTile=!0;let t=this._tile;if(e!==t){this.tileText=`L: ${e.level} X: ${e.x} Y: ${e.y}`,this.tileText+=`<br>SW corner: ${e.rectangle.west}, ${e.rectangle.south}`,this.tileText+=`<br>NE corner: ${e.rectangle.east}, ${e.rectangle.north}`;let n=e.data;u(n)&&u(n.tileBoundingRegion)?this.tileText+=`<br>Min: ${n.tileBoundingRegion.minimumHeight} Max: ${n.tileBoundingRegion.maximumHeight}`:this.tileText+="<br>(Tile is not loaded)"}this._tile=e,this.showTileBoundingSphere(),this.doFilterTile()}else this.hasPickedTile=!1,this._tile=void 0}}});nO.prototype._update=function(){this.frustums&&(this.frustumStatisticText=mBt(this._scene.debugFrustumStatistics));let e=this._scene.numberOfFrustums;this._numberOfFrustums=e,this.depthFrustum=Wne(1,e,this.depthFrustum),this.depthFrustumText=`${this.depthFrustum} of ${e}`,this.performance&&this._performanceDisplay.update(),this.primitiveReferenceFrame&&(this._modelMatrixPrimitive.modelMatrix=this._primitive.modelMatrix),this.shaderCacheText=`Cached shaders: ${this._scene.context.shaderCache.numberOfShaders}`};nO.prototype.isDestroyed=function(){return!1};nO.prototype.destroy=function(){return this._eventHandler.destroy(),this._removePostRenderEvent(),this._frustumsSubscription.dispose(),this._frustumPlanesSubscription.dispose(),this._performanceSubscription.dispose(),this._primitiveBoundingSphereSubscription.dispose(),this._primitiveReferenceFrameSubscription.dispose(),this._filterPrimitiveSubscription.dispose(),this._wireframeSubscription.dispose(),this._depthFrustumSubscription.dispose(),this._suspendUpdatesSubscription.dispose(),this._tileCoordinatesSubscription.dispose(),this._tileBoundingSphereSubscription.dispose(),this._filterTileSubscription.dispose(),this._pickPrimitiveActiveSubscription.dispose(),this._pickTileActiveSubscription.dispose(),he(this)};var cW=nO;function lW(e,t){e=li(e);let n=document.createElement("div"),i=new cW(t,n);this._viewModel=i,this._container=e;let r=document.createElement("div");this._element=r;let o=document.createElement("div");o.textContent="Cesium Inspector",o.className="cesium-cesiumInspector-button",o.setAttribute("data-bind","click: toggleDropDown"),r.appendChild(o),r.className="cesium-cesiumInspector",r.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : dropDownVisible, "cesium-cesiumInspector-hidden" : !dropDownVisible }'),e.appendChild(this._element);let s=document.createElement("div");s.className="cesium-cesiumInspector-dropDown",r.appendChild(s);let a=xl.createSection,c=xl.createCheckbox,l=a(s,"General","generalVisible","toggleGeneral"),f=c("Show Frustums","frustums"),d=document.createElement("div");d.className="cesium-cesiumInspector-frustumStatistics",d.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),f.appendChild(d),l.appendChild(f),l.appendChild(c("Show Frustum Planes","frustumPlanes")),l.appendChild(c("Performance Display","performance")),n.className="cesium-cesiumInspector-performanceDisplay",l.appendChild(n);let p=document.createElement("div");p.className="cesium-cesiumInspector-shaderCache",p.setAttribute("data-bind","html: shaderCacheText"),l.appendChild(p);let _=document.createElement("div");l.appendChild(_);let m=document.createElement("span");m.setAttribute("data-bind",'html: " Frustum:"'),_.appendChild(m);let x=document.createElement("span");x.setAttribute("data-bind","text: depthFrustumText"),_.appendChild(x);let b=document.createElement("input");b.type="button",b.value="-",b.className="cesium-cesiumInspector-pickButton",b.setAttribute("data-bind","click: decrementDepthFrustum"),_.appendChild(b);let T=document.createElement("input");T.type="button",T.value="+",T.className="cesium-cesiumInspector-pickButton",T.setAttribute("data-bind","click: incrementDepthFrustum"),_.appendChild(T);let C=a(s,"Primitives","primitivesVisible","togglePrimitives"),A=document.createElement("div");A.className="cesium-cesiumInspector-pickSection",C.appendChild(A);let E=document.createElement("input");E.type="button",E.value="Pick a primitive",E.className="cesium-cesiumInspector-pickButton",E.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let v=document.createElement("div");v.className="cesium-cesiumInspector-center",v.appendChild(E),A.appendChild(v),A.appendChild(c("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),A.appendChild(c("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=c("Show only selected","filterPrimitive","hasPickedPrimitive"),A.appendChild(this._primitiveOnly);let D=a(s,"Terrain","terrainVisible","toggleTerrain"),R=document.createElement("div");R.className="cesium-cesiumInspector-pickSection",D.appendChild(R);let O=document.createElement("input");O.type="button",O.value="Pick a tile",O.className="cesium-cesiumInspector-pickButton",O.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickTileActive}, click: pickTile'),v=document.createElement("div"),v.appendChild(O),v.className="cesium-cesiumInspector-center",R.appendChild(v);let L=document.createElement("div");R.appendChild(L);let N=document.createElement("input");N.type="button",N.value="Parent",N.className="cesium-cesiumInspector-pickButton",N.setAttribute("data-bind","click: selectParent");let g=document.createElement("input");g.type="button",g.value="NW",g.className="cesium-cesiumInspector-pickButton",g.setAttribute("data-bind","click: selectNW");let S=document.createElement("input");S.type="button",S.value="NE",S.className="cesium-cesiumInspector-pickButton",S.setAttribute("data-bind","click: selectNE");let w=document.createElement("input");w.type="button",w.value="SW",w.className="cesium-cesiumInspector-pickButton",w.setAttribute("data-bind","click: selectSW");let P=document.createElement("input");P.type="button",P.value="SE",P.className="cesium-cesiumInspector-pickButton",P.setAttribute("data-bind","click: selectSE");let F=document.createElement("div");F.className="cesium-cesiumInspector-tileText",L.className="cesium-cesiumInspector-frustumStatistics",L.appendChild(F),L.setAttribute("data-bind","visible: hasPickedTile"),F.setAttribute("data-bind","html: tileText");let B=document.createElement("div");B.className="cesium-cesiumInspector-relativeText",B.textContent="Select relative:",L.appendChild(B);let H=document.createElement("table"),V=document.createElement("tr"),U=document.createElement("tr"),k=document.createElement("td");k.appendChild(N);let W=document.createElement("td");W.appendChild(g);let j=document.createElement("td");j.appendChild(S),V.appendChild(k),V.appendChild(W),V.appendChild(j);let K=document.createElement("td"),Y=document.createElement("td");Y.appendChild(w);let ee=document.createElement("td");ee.appendChild(P),U.appendChild(K),U.appendChild(Y),U.appendChild(ee),H.appendChild(V),H.appendChild(U),L.appendChild(H),R.appendChild(c("Show bounding volume","tileBoundingSphere","hasPickedTile")),R.appendChild(c("Show only selected","filterTile","hasPickedTile")),D.appendChild(c("Wireframe","wireframe")),D.appendChild(c("Suspend LOD update","suspendUpdates")),D.appendChild(c("Show tile coordinates","tileCoordinates")),Se.applyBindings(i,this._element)}Object.defineProperties(lW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});lW.prototype.isDestroyed=function(){return!1};lW.prototype.destroy=function(){return Se.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),he(this)};var uW=lW;function fW(e,t){u(t)||(t=document.body),t=li(t);let n=this,i=Se.observable(As.fullscreen),r=Se.observable(As.enabled),o=t.ownerDocument;this.isFullscreen=void 0,Se.defineProperty(this,"isFullscreen",{get:function(){return i()}}),this.isFullscreenEnabled=void 0,Se.defineProperty(this,"isFullscreenEnabled",{get:function(){return r()},set:function(s){r(s&&As.enabled)}}),this.tooltip=void 0,Se.defineProperty(this,"tooltip",function(){return this.isFullscreenEnabled?i()?"Exit full screen":"Full screen":"Full screen unavailable"}),this._command=ni(function(){As.fullscreen?As.exitFullscreen():As.requestFullscreen(n._fullscreenElement)},Se.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=y(li(e),o.body),this._callback=function(){i(As.fullscreen)},o.addEventListener(As.changeEventName,this._callback)}Object.defineProperties(fW.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(e){this._fullscreenElement=e}},command:{get:function(){return this._command}}});fW.prototype.isDestroyed=function(){return!1};fW.prototype.destroy=function(){document.removeEventListener(As.changeEventName,this._callback),he(this)};var dW=fW;var gBt="M 83.96875 17.5625 L 83.96875 17.59375 L 76.65625 24.875 L 97.09375 24.96875 L 76.09375 45.96875 L 81.9375 51.8125 L 102.78125 30.9375 L 102.875 51.15625 L 110.15625 43.875 L 110.1875 17.59375 L 83.96875 17.5625 z M 44.125 17.59375 L 17.90625 17.625 L 17.9375 43.90625 L 25.21875 51.1875 L 25.3125 30.96875 L 46.15625 51.8125 L 52 45.96875 L 31 25 L 51.4375 24.90625 L 44.125 17.59375 z M 46.0625 76.03125 L 25.1875 96.875 L 25.09375 76.65625 L 17.8125 83.9375 L 17.8125 110.21875 L 44 110.25 L 51.3125 102.9375 L 30.90625 102.84375 L 51.875 81.875 L 46.0625 76.03125 z M 82 76.15625 L 76.15625 82 L 97.15625 103 L 76.71875 103.0625 L 84.03125 110.375 L 110.25 110.34375 L 110.21875 84.0625 L 102.9375 76.8125 L 102.84375 97 L 82 76.15625 z",yBt="M 104.34375 17.5625 L 83.5 38.4375 L 83.40625 18.21875 L 76.125 25.5 L 76.09375 51.78125 L 102.3125 51.8125 L 102.3125 51.78125 L 109.625 44.5 L 89.1875 44.40625 L 110.1875 23.40625 L 104.34375 17.5625 z M 23.75 17.59375 L 17.90625 23.4375 L 38.90625 44.4375 L 18.5 44.53125 L 25.78125 51.8125 L 52 51.78125 L 51.96875 25.53125 L 44.6875 18.25 L 44.625 38.46875 L 23.75 17.59375 z M 25.6875 76.03125 L 18.375 83.3125 L 38.78125 83.40625 L 17.8125 104.40625 L 23.625 110.25 L 44.5 89.375 L 44.59375 109.59375 L 51.875 102.3125 L 51.875 76.0625 L 25.6875 76.03125 z M 102.375 76.15625 L 76.15625 76.1875 L 76.1875 102.4375 L 83.46875 109.71875 L 83.5625 89.53125 L 104.40625 110.375 L 110.25 104.53125 L 89.25 83.53125 L 109.6875 83.46875 L 102.375 76.15625 z";function hW(e,t){e=li(e);let n=new dW(t,e);n._exitFullScreenPath=yBt,n._enterFullScreenPath=gBt;let i=document.createElement("button");i.type="button",i.className="cesium-button cesium-fullscreenButton",i.setAttribute("data-bind","attr: { title: tooltip },click: command,enable: isFullscreenEnabled,cesiumSvgPath: { path: isFullscreen ? _exitFullScreenPath : _enterFullScreenPath, width: 128, height: 128 }"),e.appendChild(i),Se.applyBindings(n,i),this._container=e,this._viewModel=n,this._element=i}Object.defineProperties(hW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});hW.prototype.isDestroyed=function(){return!1};hW.prototype.destroy=function(){return this._viewModel.destroy(),Se.cleanNode(this._element),this._container.removeChild(this._element),he(this)};var mW=hW;var V2e=1e3;function bh(e){u(e.geocoderServices)?this._geocoderServices=e.geocoderServices:this._geocoderServices=[new p6({scene:e.scene})],this._viewContainer=e.container,this._scene=e.scene,this._flightDuration=e.flightDuration,this._searchText="",this._isSearchInProgress=!1,this._wasGeocodeCancelled=!1,this._previousCredits=[],this._complete=new be,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=z2e,this._handleArrowUp=U2e;let t=this;this._suggestionsVisible=Se.pureComputed(function(){let r=Se.getObservable(t,"_suggestions")().length>0,o=Se.getObservable(t,"_showSuggestions")();return r&&o}),this._searchCommand=ni(function(i){if(i=y(i,GC.SEARCH),t._focusTextbox=!1,u(t._selectedSuggestion))return t.activateSuggestion(t._selectedSuggestion),!1;if(t.hideSuggestions(),t.isSearchInProgress)EBt(t);else return CBt(t,t._geocoderServices,i)}),this.deselectSuggestion=function(){t._selectedSuggestion=void 0},this.handleKeyDown=function(i,r){let o=r.key==="ArrowDown"||r.key==="Down"||r.keyCode===40,s=r.key==="ArrowUp"||r.key==="Up"||r.keyCode===38;return(o||s)&&r.preventDefault(),!0},this.handleKeyUp=function(i,r){let o=r.key==="ArrowDown"||r.key==="Down"||r.keyCode===40,s=r.key==="ArrowUp"||r.key==="Up"||r.keyCode===38,a=r.key==="Enter"||r.keyCode===13;return s?U2e(t):o?z2e(t):a&&t._searchCommand(),!0},this.activateSuggestion=function(i){t.hideSuggestions(),t._searchText=i.displayName;let r=i.destination;W2e(t),t.destinationFound(t,r)},this.hideSuggestions=function(){t._showSuggestions=!1,t._selectedSuggestion=void 0},this.showSuggestions=function(){t._showSuggestions=!0},this.handleMouseover=function(i,r){i!==t._selectedSuggestion&&(t._selectedSuggestion=i)},this.keepExpanded=!1,this.autoComplete=y(e.autocomplete,!0),this.destinationFound=y(e.destinationFound,bh.flyToDestination),this._focusTextbox=!1,Se.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let n=Se.getObservable(this,"_searchText");n.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=n.subscribe(function(){bh._updateSearchSuggestions(t)}),this.isSearchInProgress=void 0,Se.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,Se.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(i){this._searchText=i}}),this.flightDuration=void 0,Se.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(i){this._flightDuration=i}})}Object.defineProperties(bh.prototype,{complete:{get:function(){return this._complete}},scene:{get:function(){return this._scene}},search:{get:function(){return this._searchCommand}},selectedSuggestion:{get:function(){return this._selectedSuggestion}},suggestions:{get:function(){return this._suggestions}}});bh.prototype.destroy=function(){this._suggestionSubscription.dispose()};function U2e(e){if(e._suggestions.length===0)return;let t=e._suggestions.indexOf(e._selectedSuggestion);if(t===-1||t===0){e._selectedSuggestion=void 0;return}let n=t-1;e._selectedSuggestion=e._suggestions[n],bh._adjustSuggestionsScroll(e,n)}function z2e(e){if(e._suggestions.length===0)return;let t=e._suggestions.length,i=(e._suggestions.indexOf(e._selectedSuggestion)+1)%t;e._selectedSuggestion=e._suggestions[i],bh._adjustSuggestionsScroll(e,i)}function xBt(e,t){let n=u(t)?t.availability:void 0;return u(n)?Mw(t,[e]).then(function(i){return e=i[0],e.height+=V2e,e}):(e.height+=V2e,Promise.resolve(e))}function bBt(e,t){let n=e._scene,i=n.ellipsoid,r=n.camera,o=n.terrainProvider,s=t,a;return t instanceof fe?I.equalsEpsilon(t.south,t.north,I.EPSILON7)&&I.equalsEpsilon(t.east,t.west,I.EPSILON7)?t=fe.center(t):a=jw(t,n):t=i.cartesianToCartographic(t),u(a)||(a=xBt(t,o)),a.then(function(c){s=i.cartographicToCartesian(c)}).finally(function(){r.flyTo({destination:s,complete:function(){e._complete.raiseEvent()},duration:e._flightDuration,endTransform:M.IDENTITY})})}async function TBt(e,t,n){try{return{state:"fulfilled",value:await e.geocode(t,n),credits:e.credit}}catch(i){return{state:"rejected",reason:i}}}async function CBt(e,t,n){let i=e._searchText;if(G2e(i)){e.showSuggestions();return}e._isSearchInProgress=!0,e._wasGeocodeCancelled=!1;let r,o;for(r=0;r<t.length;r++){if(e._wasGeocodeCancelled)return;if(o=await TBt(t[r],i,n),u(o)&&o.state==="fulfilled"&&o.value.length>0)break}if(e._wasGeocodeCancelled)return;e._isSearchInProgress=!1,qne(e);let s=o.value;if(o.state==="fulfilled"&&u(s)&&s.length>0){e._searchText=s[0].displayName,e.destinationFound(e,s[0].destination);let a=H2e(e,v2.getCreditsFromResult(s[0]));u(a)||jne(e,t[r].credit);return}e._searchText=`${i} (not found)`}function jne(e,t){u(t)&&!e._scene.isDestroyed()&&!e._scene.frameState.creditDisplay.isDestroyed()&&(e._scene.frameState.creditDisplay.addStaticCredit(t),e._previousCredits.push(t))}function H2e(e,t){return u(t)&&t.forEach(n=>jne(e,n)),t}function qne(e){!e._scene.isDestroyed()&&!e._scene.frameState.creditDisplay.isDestroyed()&&e._previousCredits.forEach(t=>{e._scene.frameState.creditDisplay.removeStaticCredit(t)}),e._previousCredits.length=0}function ABt(e,t){let n=li(e._viewContainer),i=n.getElementsByClassName("search-results")[0],o=n.getElementsByTagName("li")[t];if(t===0){i.scrollTop=0;return}let s=o.offsetTop;s+o.clientHeight>i.clientHeight?i.scrollTop=s+o.clientHeight:s<i.scrollTop&&(i.scrollTop=s)}function EBt(e){e._isSearchInProgress&&(e._isSearchInProgress=!1,e._wasGeocodeCancelled=!0)}function G2e(e){return/^\s*$/.test(e)}function W2e(e){Se.getObservable(e,"_suggestions").removeAll()}async function SBt(e){if(!e.autoComplete)return;let t=e._searchText;if(W2e(e),qne(e),!G2e(t))for(let n of e._geocoderServices){let i=await n.geocode(t,GC.AUTOCOMPLETE);if(e._suggestions=e._suggestions.concat(i),i.length>0){let r=!0;i.forEach(o=>{let s=v2.getCreditsFromResult(o);r=r&&!u(s),H2e(e,s)}),r&&jne(e,n.credit)}if(e._suggestions.length>=5)return}}bh.flyToDestination=bBt;bh._updateSearchSuggestions=SBt;bh._adjustSuggestionsScroll=ABt;bh.prototype.isDestroyed=function(){return!1};bh.prototype.destroy=function(){return qne(this),he(this)};var pW=bh;var vBt="M29.772,26.433l-7.126-7.126c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127L29.772,26.433zM7.203,13.885c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486c-0.007,3.58-2.905,6.476-6.484,6.484C10.106,20.361,7.209,17.465,7.203,13.885z",wBt="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z";function _W(e){let t=li(e.container),n=new pW(e);n._startSearchPath=vBt,n._stopSearchPath=wBt;let i=document.createElement("form");i.setAttribute("data-bind","submit: search");let r=document.createElement("input");r.type="search",r.className="cesium-geocoder-input",r.setAttribute("placeholder","Enter an address or landmark..."),r.setAttribute("data-bind",'textInput: searchText,disable: isSearchInProgress,event: { keyup: handleKeyUp, keydown: handleKeyDown, mouseover: deselectSuggestion },css: { "cesium-geocoder-input-wide" : keepExpanded || searchText.length > 0 },hasFocus: _focusTextbox'),this._onTextBoxFocus=function(){setTimeout(function(){r.select()},0)},r.addEventListener("focus",this._onTextBoxFocus,!1),i.appendChild(r),this._textBox=r;let o=document.createElement("span");o.className="cesium-geocoder-searchButton",o.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),i.appendChild(o),t.appendChild(i);let s=document.createElement("div");s.className="search-results",s.setAttribute("data-bind","visible: _suggestionsVisible");let a=document.createElement("ul");a.setAttribute("data-bind","foreach: _suggestions");let c=document.createElement("li");a.appendChild(c),c.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),s.appendChild(a),t.appendChild(s),Se.applyBindings(n,i),Se.applyBindings(n,s),this._container=t,this._searchSuggestionsContainer=s,this._viewModel=n,this._form=i,this._onInputBegin=function(l){let f=l.target;typeof l.composedPath=="function"&&(f=l.composedPath()[0]),t.contains(f)||(n._focusTextbox=!1,n.hideSuggestions())},this._onInputEnd=function(l){n._focusTextbox=!0,n.showSuggestions()},mn.supportsPointerEvents()?(document.addEventListener("pointerdown",this._onInputBegin,!0),t.addEventListener("pointerup",this._onInputEnd,!0),t.addEventListener("pointercancel",this._onInputEnd,!0)):(document.addEventListener("mousedown",this._onInputBegin,!0),t.addEventListener("mouseup",this._onInputEnd,!0),document.addEventListener("touchstart",this._onInputBegin,!0),t.addEventListener("touchend",this._onInputEnd,!0),t.addEventListener("touchcancel",this._onInputEnd,!0))}Object.defineProperties(_W.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}});_W.prototype.isDestroyed=function(){return!1};_W.prototype.destroy=function(){let e=this._container;return mn.supportsPointerEvents()?(document.removeEventListener("pointerdown",this._onInputBegin,!0),e.removeEventListener("pointerup",this._onInputEnd,!0)):(document.removeEventListener("mousedown",this._onInputBegin,!0),e.removeEventListener("mouseup",this._onInputEnd,!0),document.removeEventListener("touchstart",this._onInputBegin,!0),e.removeEventListener("touchend",this._onInputEnd,!0)),this._viewModel.destroy(),Se.cleanNode(this._form),Se.cleanNode(this._searchSuggestionsContainer),e.removeChild(this._form),e.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),he(this)};var gW=_W;function j2e(e,t){this._scene=e,this._duration=t;let n=this;this._command=ni(function(){n._scene.camera.flyHome(n._duration)}),this.tooltip="View Home",Se.track(this,["tooltip"])}Object.defineProperties(j2e.prototype,{scene:{get:function(){return this._scene}},command:{get:function(){return this._command}},duration:{get:function(){return this._duration},set:function(e){this._duration=e}}});var yW=j2e;function xW(e,t,n){e=li(e);let i=new yW(t,n);i._svgPath="M14,4l-10,8.75h20l-4.25-3.7188v-4.6562h-2.812v2.1875l-2.938-2.5625zm-7.0938,9.906v10.094h14.094v-10.094h-14.094zm2.1876,2.313h3.3122v4.25h-3.3122v-4.25zm5.8442,1.281h3.406v6.438h-3.406v-6.438z";let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button cesium-home-button",r.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),e.appendChild(r),Se.applyBindings(i,r),this._container=e,this._viewModel=i,this._element=r}Object.defineProperties(xW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});xW.prototype.isDestroyed=function(){return!1};xW.prototype.destroy=function(){return Se.cleanNode(this._element),this._container.removeChild(this._element),he(this)};var bW=xW;function DBt(e,t){t.currentTarget.parentElement.parentElement.querySelector(`#${e.name}-expander`).classList.toggle("active"),t.currentTarget.textContent=t.currentTarget.textContent==="+"?"-":"+"}function Y2e(e,t){Se.track(e);for(let n=0;n<e.sublayers.length;n++)Y2e(e.sublayers[n],t)}function TW(e){return e.modelName==="FullModel"}function X2e(e){return e.modelName==="Overview"}function K2e(e){return X2e(e)||TW(e)}function q2e(e,t){if(K2e(e)){e.visibility=!1;for(let i=0;i<e.sublayers.length;i++)e.sublayers[i].visibility=!0;let n={name:e.name,modelName:e.modelName,disable:Se.observable(!1),index:t.sublayers.length};return t.topLayers.push(n),t.sublayers.push(e),n}}function PBt(e,t){if(K2e(e)){t.sublayers.forEach(i=>i.visibility=!1),t.sublayers[e.index].visibility=!0;let n=document.getElementById("bsl-wrapper");TW(e)?(t.currentLevel=t.selectedLevel,n.style.display="block"):(t.selectedLevel=t.currentLevel,t.currentLevel="All",n.style.display="none")}}async function IBt(e,t){try{let n=e.getAttributeNames();for(let i=0;i<n.length;i++)if(n[i]==="BldgLevel"){let r=e.getAttributeValues(n[i]);for(let o=0;o<r.length;o++)t.push(r[o])}t.sort((i,r)=>i-r),t.unshift("All")}catch(n){console.log(`There was an error getting attributes: ${n}`)}}function RBt(e){let t=this;this.levels=[],this.viewModel={sublayers:[],levels:this.levels,currentLevel:Se.observable(),selectedLevel:"All",topLayers:[{name:"Select a layer to explore...",disable:Se.observable(!0),index:-1}],currentLayer:Se.observable(),expandClickHandler:DBt,setOptionDisable:function(i,r){Se.applyBindingsToNode(i,{disable:r.disable},r)},defaultLayer:void 0},this.viewModel.currentLayer.subscribe(function(i){PBt(i,t.viewModel)});let n=e.sublayers;for(let i=0;i<n.length;i++){Y2e(n[i],this.viewModel);let r=q2e(n[i],this.viewModel);u(r)&&(X2e(r)||!u(this.viewModel.defaultLayer)&&TW(r))&&(this.viewModel.defaultLayer=r)}if(this.viewModel.topLayers.length===1&&n.length>0){e.show=!1;let i={name:"Full Model",modelName:"FullModel",visibility:e.show,sublayers:e.sublayers};this.viewModel.defaultLayer=q2e(i,this.viewModel),this.viewModel.currentLayer.subscribe(function(r){e.show=TW(r)})}else this.viewModel.topLayers.length===1&&(this.viewModel.topLayers[0].name="Building layers not found");return IBt(e,this.levels),this.viewModel.currentLevel.subscribe(function(i){i!=="All"?e.filterByAttributes([{name:"BldgLevel",values:[i]}]):e.filterByAttributes()}),this.viewModel}var CW=RBt;function OBt(e,t){let n=document.getElementById(e),i=document.createElement("div");i.classList.add("cesium-viewer-i3s-explorer"),i.innerHTML=`
|
|
19045
19045
|
<h3>Building explorer</h3>
|
|
19046
19046
|
<select
|
|
19047
19047
|
data-bind="options: topLayers, optionsText: 'name', optionsAfterRender: setOptionDisable, value: currentLayer"
|
|
@@ -19083,8 +19083,8 @@ http://www.naturalearthdata.com/`,category:"Cesium ion",creationFunction:functio
|
|
|
19083
19083
|
</li>
|
|
19084
19084
|
</ul>
|
|
19085
19085
|
</ul>
|
|
19086
|
-
</div>`,n.appendChild(i);let r=new CW(t);Se.track(r),Se.applyBindings(r,n),u(r.defaultLayer)&&(r.currentLayer=r.defaultLayer)}var Z2e=OBt;var MBt="M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4853444 22.104033 11.423165 24.0625 13.84375 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 8.975298 28.305952 7.03125 25.875 7.03125 L 13.84375 7.03125 z",LBt="M 27.34375 1.65625 L 5.28125 27.9375 L 8.09375 30.3125 L 30.15625 4.03125 L 27.34375 1.65625 z M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4724893 20.232036 9.5676108 20.7379 9.75 21.21875 L 21.65625 7.03125 L 13.84375 7.03125 z M 28.21875 7.71875 L 14.53125 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 9.8371439 29.456025 8.4902779 28.21875 7.71875 z";function Yne(){this._cameraClicked=new be,this._closeClicked=new be,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",Se.track(this,["showInfo","titleText","description","maxHeight","enableCamera","isCameraTracking"]),this._loadingIndicatorHtml='<div class="cesium-infoBox-loadingContainer"><span class="cesium-infoBox-loading"></span></div>',this.cameraIconPath=void 0,Se.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?LBt:MBt}}),Se.defineProperty(this,"_bodyless",{get:function(){return!u(this.description)||this.description.length===0}})}Yne.prototype.maxHeightOffset=function(e){return`${this.maxHeight-e}px`};Object.defineProperties(Yne.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var AW=Yne;function EW(e){e=li(e);let t=document.createElement("div");t.className="cesium-infoBox",t.setAttribute("data-bind",'css: { "cesium-infoBox-visible" : showInfo, "cesium-infoBox-bodyless" : _bodyless }'),e.appendChild(t);let n=document.createElement("div");n.className="cesium-infoBox-title",n.setAttribute("data-bind","text: titleText"),t.appendChild(n);let i=document.createElement("button");i.type="button",i.className="cesium-button cesium-infoBox-camera",i.setAttribute("data-bind",'attr: { title: "Focus camera on object" },click: function () { cameraClicked.raiseEvent(this); },enable: enableCamera,cesiumSvgPath: { path: cameraIconPath, width: 32, height: 32 }'),t.appendChild(i);let r=document.createElement("button");r.type="button",r.className="cesium-infoBox-close",r.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),r.innerHTML="×",t.appendChild(r);let o=document.createElement("iframe");o.className="cesium-infoBox-iframe",o.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),o.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),o.setAttribute("allowfullscreen",!0),t.appendChild(o);let s=new AW;Se.applyBindings(s,t),this._container=e,this._element=t,this._frame=o,this._viewModel=s,this._descriptionSubscription=void 0;let a=this;o.addEventListener("load",function(){let c=o.contentDocument,l=c.createElement("link");l.href=Cn("Widgets/InfoBox/InfoBoxDescription.css"),l.rel="stylesheet",l.type="text/css";let f=c.createElement("div");f.className="cesium-infoBox-description",c.head.appendChild(l),c.body.appendChild(f),a._descriptionSubscription=Bc(s,"description",function(d){o.style.height="5px",f.innerHTML=d;let p=null,_=f.firstElementChild;if(_!==null&&f.childNodes.length===1){let x=window.getComputedStyle(_);if(x!==null){let b=x["background-color"],T=z.fromCssColorString(b);u(T)&&T.alpha!==0&&(p=x["background-color"])}}t.style["background-color"]=p;let m=f.getBoundingClientRect().height;o.style.height=`${m}px`})}),o.setAttribute("src","about:blank")}Object.defineProperties(EW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}});EW.prototype.isDestroyed=function(){return!1};EW.prototype.destroy=function(){let e=this._container;return Se.cleanNode(this._element),e.removeChild(this._element),u(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),he(this)};var SW=EW;function $2e(){this.showInstructions=!1;let e=this;this._command=ni(function(){e.showInstructions=!e.showInstructions}),this._showClick=ni(function(){e._touch=!1}),this._showTouch=ni(function(){e._touch=!0}),this._touch=!1,this.tooltip="Navigation Instructions",Se.track(this,["tooltip","showInstructions","_touch"])}Object.defineProperties($2e.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var vW=$2e;function wW(e){let t=li(e.container),n=new vW,i=y(e.instructionsInitiallyVisible,!1);n.showInstructions=i,n._svgPath="M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466z M17.328,24.371h-2.707v-2.596h2.707V24.371zM17.328,19.003v0.858h-2.707v-1.057c0-3.19,3.63-3.696,3.63-5.963c0-1.034-0.924-1.826-2.134-1.826c-1.254,0-2.354,0.924-2.354,0.924l-1.541-1.915c0,0,1.519-1.584,4.137-1.584c2.487,0,4.796,1.54,4.796,4.136C21.156,16.208,17.328,16.627,17.328,19.003z";let r=document.createElement("span");r.className="cesium-navigationHelpButton-wrapper",t.appendChild(r);let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",o.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),r.appendChild(o);let s=document.createElement("div");s.className="cesium-navigation-help",s.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),r.appendChild(s);let a=document.createElement("button");a.type="button",a.className="cesium-navigation-button cesium-navigation-button-left",a.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let c=document.createElement("img");c.src=Cn("Widgets/Images/NavigationHelp/Mouse.svg"),c.className="cesium-navigation-button-icon",c.style.width="25px",c.style.height="25px",a.appendChild(c),a.appendChild(document.createTextNode("Mouse"));let l=document.createElement("button");l.type="button",l.className="cesium-navigation-button cesium-navigation-button-right",l.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let f=document.createElement("img");f.src=Cn("Widgets/Images/NavigationHelp/Touch.svg"),f.className="cesium-navigation-button-icon",f.style.width="25px",f.style.height="25px",l.appendChild(f),l.appendChild(document.createTextNode("Touch")),s.appendChild(a),s.appendChild(l);let d=document.createElement("div");d.className="cesium-click-navigation-help cesium-navigation-help-instructions",d.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),d.innerHTML=` <table> <tr> <td><img src="${Cn("Widgets/Images/NavigationHelp/MouseLeft.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-pan">Pan view</div> <div class="cesium-navigation-help-details">Left click + drag</div> </td> </tr> <tr> <td><img src="${Cn("Widgets/Images/NavigationHelp/MouseRight.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-zoom">Zoom view</div> <div class="cesium-navigation-help-details">Right click + drag, or</div> <div class="cesium-navigation-help-details">Mouse wheel scroll</div> </td> </tr> <tr> <td><img src="${Cn("Widgets/Images/NavigationHelp/MouseMiddle.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-rotate">Rotate view</div> <div class="cesium-navigation-help-details">Middle click + drag, or</div> <div class="cesium-navigation-help-details">CTRL + Left/Right click + drag</div> </td> </tr> </table>`,s.appendChild(d);let p=document.createElement("div");p.className="cesium-touch-navigation-help cesium-navigation-help-instructions",p.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),p.innerHTML=` <table> <tr> <td><img src="${Cn("Widgets/Images/NavigationHelp/TouchDrag.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-pan">Pan view</div> <div class="cesium-navigation-help-details">One finger drag</div> </td> </tr> <tr> <td><img src="${Cn("Widgets/Images/NavigationHelp/TouchZoom.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-zoom">Zoom view</div> <div class="cesium-navigation-help-details">Two finger pinch</div> </td> </tr> <tr> <td><img src="${Cn("Widgets/Images/NavigationHelp/TouchTilt.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-rotate">Tilt view</div> <div class="cesium-navigation-help-details">Two finger drag, same direction</div> </td> </tr> <tr> <td><img src="${Cn("Widgets/Images/NavigationHelp/TouchRotate.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-tilt">Rotate view</div> <div class="cesium-navigation-help-details">Two finger drag, opposite direction</div> </td> </tr> </table>`,s.appendChild(p),Se.applyBindings(n,r),this._container=t,this._viewModel=n,this._wrapper=r,this._closeInstructions=function(_){r.contains(_.target)||(n.showInstructions=!1)},mn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(wW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});wW.prototype.isDestroyed=function(){return!1};wW.prototype.destroy=function(){return mn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),Se.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),he(this)};var DW=wW;function Xne(e){this._scene=e.scene,this.lowFrameRateMessage=y(e.lowFrameRateMessage,"This application appears to be performing poorly on your system. Please try using a different web browser or updating your video drivers."),this.lowFrameRateMessageDismissed=!1,this.showingLowFrameRateMessage=!1,Se.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let t=this;this._dismissMessage=ni(function(){t.showingLowFrameRateMessage=!1,t.lowFrameRateMessageDismissed=!0});let n=tG.fromScene(e.scene);this._unsubscribeLowFrameRate=n.lowFrameRate.addEventListener(function(){t.lowFrameRateMessageDismissed||(t.showingLowFrameRateMessage=!0)}),this._unsubscribeNominalFrameRate=n.nominalFrameRate.addEventListener(function(){t.showingLowFrameRateMessage=!1})}Object.defineProperties(Xne.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}});Xne.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),he(this)};var PW=Xne;function IW(e){let t=li(e.container),n=new PW(e),i=document.createElement("div");i.className="cesium-performance-watchdog-message-area",i.setAttribute("data-bind","visible: showingLowFrameRateMessage");let r=document.createElement("button");r.setAttribute("type","button"),r.className="cesium-performance-watchdog-message-dismiss",r.innerHTML="×",r.setAttribute("data-bind","click: dismissMessage"),i.appendChild(r);let o=document.createElement("div");o.className="cesium-performance-watchdog-message",o.setAttribute("data-bind","html: lowFrameRateMessage"),i.appendChild(o),t.appendChild(i),Se.applyBindings(n,i),this._container=t,this._viewModel=n,this._element=i}Object.defineProperties(IW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});IW.prototype.isDestroyed=function(){return!1};IW.prototype.destroy=function(){return this._viewModel.destroy(),Se.cleanNode(this._element),this._container.removeChild(this._element),he(this)};var RW=IW;function OW(e){this._scene=e,this._orthographic=e.camera.frustum instanceof Dn,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=e.mode,Se.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let t=this;Se.defineProperty(this,"selectedTooltip",function(){return t._orthographic?t.tooltipOrthographic:t.tooltipPerspective}),this._toggleDropDown=ni(function(){t.sceneMode===oe.SCENE2D||t._flightInProgress||(t.dropDownVisible=!t.dropDownVisible)}),this._eventHelper=new Gs,this._eventHelper.add(e.morphComplete,function(n,i,r,o){t.sceneMode=r,t._orthographic=r===oe.SCENE2D||t._scene.camera.frustum instanceof Dn}),this._eventHelper.add(e.preRender,function(){t._flightInProgress=u(e.camera._currentFlight)}),this._switchToPerspective=ni(function(){t.sceneMode!==oe.SCENE2D&&(t._scene.camera.switchToPerspectiveFrustum(),t._orthographic=!1,t.dropDownVisible=!1)}),this._switchToOrthographic=ni(function(){t.sceneMode!==oe.SCENE2D&&(t._scene.camera.switchToOrthographicFrustum(),t._orthographic=!0,t.dropDownVisible=!1)}),this._sceneMode=oe}Object.defineProperties(OW.prototype,{scene:{get:function(){return this._scene}},toggleDropDown:{get:function(){return this._toggleDropDown}},switchToPerspective:{get:function(){return this._switchToPerspective}},switchToOrthographic:{get:function(){return this._switchToOrthographic}},isOrthographicProjection:{get:function(){return this._orthographic}}});OW.prototype.isDestroyed=function(){return!1};OW.prototype.destroy=function(){this._eventHelper.removeAll(),he(this)};var MW=OW;var NBt="M 28.15625,10.4375 9.125,13.21875 13.75,43.25 41.75,55.09375 50.8125,37 54.5,11.9375 z m 0.125,3 19.976451,0.394265 L 43.03125,16.875 22.6875,14.28125 z M 50.971746,15.705477 47.90625,36.03125 42.53125,46 44.84375,19.3125 z M 12.625,16.03125 l 29.15625,3.6875 -2.65625,31 L 16.4375,41.125 z",FBt="m 31.560594,6.5254438 -20.75,12.4687502 0.1875,24.5625 22.28125,11.8125 19.5,-12 0.65625,-0.375 0,-0.75 0.0312,-23.21875 z m 0.0625,3.125 16.65625,9.5000002 -16.125,10.28125 -17.34375,-9.71875 z m 18.96875,11.1875002 0.15625,20.65625 -17.46875,10.59375 0.15625,-20.28125 z m -37.0625,1.25 17.21875,9.625 -0.15625,19.21875 -16.9375,-9 z";function LW(e,t){e=li(e);let n=new MW(t);n._perspectivePath=NBt,n._orthographicPath=FBt;let i=document.createElement("span");i.className="cesium-projectionPicker-wrapper cesium-toolbar-button",e.appendChild(i);let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button",r.setAttribute("data-bind",'css: { "cesium-projectionPicker-buttonPerspective": !_orthographic, "cesium-projectionPicker-buttonOrthographic": _orthographic, "cesium-button-disabled" : sceneMode === _sceneMode.SCENE2D || _flightInProgress, "cesium-projectionPicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),r.innerHTML='<!-- ko cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64, css: "cesium-projectionPicker-iconPerspective" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64, css: "cesium-projectionPicker-iconOrthographic" } --><!-- /ko -->',i.appendChild(r);let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",o.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && _orthographic), "cesium-projectionPicker-none" : !_orthographic, "cesium-projectionPicker-hidden" : !dropDownVisible },attr: { title: tooltipPerspective },click: switchToPerspective,cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64 }'),i.appendChild(o);let s=document.createElement("button");s.type="button",s.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",s.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && !_orthographic), "cesium-projectionPicker-none" : _orthographic, "cesium-projectionPicker-hidden" : !dropDownVisible},attr: { title: tooltipOrthographic },click: switchToOrthographic,cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64 }'),i.appendChild(s),Se.applyBindings(n,i),this._viewModel=n,this._container=e,this._wrapper=i,this._closeDropDown=function(a){i.contains(a.target)||(n.dropDownVisible=!1)},mn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(LW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});LW.prototype.isDestroyed=function(){return!1};LW.prototype.destroy=function(){return this._viewModel.destroy(),mn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Se.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),he(this)};var NW=LW;function FW(e,t){this._scene=e;let n=this,i=function(r,o,s,a){n.sceneMode=s,n.dropDownVisible=!1};this._eventHelper=new Gs,this._eventHelper.add(e.morphStart,i),this._duration=y(t,2),this.sceneMode=e.mode,this.dropDownVisible=!1,this.tooltip2D="2D",this.tooltip3D="3D",this.tooltipColumbusView="Columbus View",Se.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,Se.defineProperty(this,"selectedTooltip",function(){let r=n.sceneMode;return r===oe.SCENE2D?n.tooltip2D:r===oe.SCENE3D?n.tooltip3D:n.tooltipColumbusView}),this._toggleDropDown=ni(function(){n.dropDownVisible=!n.dropDownVisible}),this._morphTo2D=ni(function(){e.morphTo2D(n._duration)}),this._morphTo3D=ni(function(){e.morphTo3D(n._duration)}),this._morphToColumbusView=ni(function(){e.morphToColumbusView(n._duration)}),this._sceneMode=oe}Object.defineProperties(FW.prototype,{scene:{get:function(){return this._scene}},duration:{get:function(){return this._duration},set:function(e){this._duration=e}},toggleDropDown:{get:function(){return this._toggleDropDown}},morphTo2D:{get:function(){return this._morphTo2D}},morphTo3D:{get:function(){return this._morphTo3D}},morphToColumbusView:{get:function(){return this._morphToColumbusView}}});FW.prototype.isDestroyed=function(){return!1};FW.prototype.destroy=function(){this._eventHelper.removeAll(),he(this)};var BW=FW;var BBt="m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878 -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132 -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285 11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201 5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461 -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z",kBt="m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z",VBt="m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z";function kW(e,t,n){e=li(e);let i=new BW(t,n);i._globePath=BBt,i._flatMapPath=kBt,i._columbusViewPath=VBt;let r=document.createElement("span");r.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",e.appendChild(r);let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-toolbar-button",o.setAttribute("data-bind",'css: { "cesium-sceneModePicker-button2D": sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-button3D": sceneMode === _sceneMode.SCENE3D, "cesium-sceneModePicker-buttonColumbusView": sceneMode === _sceneMode.COLUMBUS_VIEW, "cesium-sceneModePicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),o.innerHTML='<!-- ko cesiumSvgPath: { path: _globePath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon3D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon2D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-iconColumbusView" } --><!-- /ko -->',r.appendChild(o);let s=document.createElement("button");s.type="button",s.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",s.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE3D)) || (!dropDownVisible && (sceneMode === _sceneMode.SCENE3D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE3D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip3D },click: morphTo3D,cesiumSvgPath: { path: _globePath, width: 64, height: 64 }'),r.appendChild(s);let a=document.createElement("button");a.type="button",a.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",a.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE2D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip2D },click: morphTo2D,cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64 }'),r.appendChild(a);let c=document.createElement("button");c.type="button",c.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",c.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.COLUMBUS_VIEW)) || (!dropDownVisible && (sceneMode === _sceneMode.COLUMBUS_VIEW)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.COLUMBUS_VIEW, "cesium-sceneModePicker-hidden" : !dropDownVisible},attr: { title: tooltipColumbusView },click: morphToColumbusView,cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64 }'),r.appendChild(c),Se.applyBindings(i,r),this._viewModel=i,this._container=e,this._wrapper=r,this._closeDropDown=function(l){r.contains(l.target)||(i.dropDownVisible=!1)},mn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(kW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});kW.prototype.isDestroyed=function(){return!1};kW.prototype.destroy=function(){return this._viewModel.destroy(),mn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Se.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),he(this)};var VW=kW;var UBt=new G,UW="-1000px";function iO(e,t,n){this._scene=e,this._screenPositionX=UW,this._screenPositionY=UW,this._tweens=e.tweens,this._container=y(n,document.body),this._selectionIndicatorElement=t,this._scale=1,this.position=void 0,this.showSelection=!1,Se.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,Se.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&u(this.position)}}),Se.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(i,r){return xr.worldToWindowCoordinates(e,i,r)}}iO.prototype.update=function(){if(this.showSelection&&u(this.position)){let e=this.computeScreenSpacePosition(this.position,UBt);if(!u(e))this._screenPositionX=UW,this._screenPositionY=UW;else{let t=this._container,n=t.parentNode.clientWidth,i=t.parentNode.clientHeight,r=this._selectionIndicatorElement.clientWidth,o=r*.5;e.x=Math.min(Math.max(e.x,-r),n+r)-o,e.y=Math.min(Math.max(e.y,-r),i+r)-o,this._screenPositionX=`${Math.floor(e.x+.25)}px`,this._screenPositionY=`${Math.floor(e.y+.25)}px`}}};iO.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:Xs.EXPONENTIAL_OUT})};iO.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:Xs.EXPONENTIAL_OUT})};Object.defineProperties(iO.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var zW=iO;function HW(e,t){e=li(e),this._container=e;let n=document.createElement("div");n.className="cesium-selection-wrapper",n.setAttribute("data-bind",'style: { "top" : _screenPositionY, "left" : _screenPositionX },css: { "cesium-selection-wrapper-visible" : isVisible }'),e.appendChild(n),this._element=n;let i="http://www.w3.org/2000/svg",r="M -34 -34 L -34 -11.25 L -30 -15.25 L -30 -30 L -15.25 -30 L -11.25 -34 L -34 -34 z M 11.25 -34 L 15.25 -30 L 30 -30 L 30 -15.25 L 34 -11.25 L 34 -34 L 11.25 -34 z M -34 11.25 L -34 34 L -11.25 34 L -15.25 30 L -30 30 L -30 15.25 L -34 11.25 z M 34 11.25 L 30 15.25 L 30 30 L 15.25 30 L 11.25 34 L 34 34 L 34 11.25 z",o=document.createElementNS(i,"svg:svg");o.setAttribute("width",160),o.setAttribute("height",160),o.setAttribute("viewBox","0 0 160 160");let s=document.createElementNS(i,"g");s.setAttribute("transform","translate(80,80)"),o.appendChild(s);let a=document.createElementNS(i,"path");a.setAttribute("data-bind","attr: { transform: _transform }"),a.setAttribute("d",r),s.appendChild(a),n.appendChild(o);let c=new zW(t,this._element,this._container);this._viewModel=c,Se.applyBindings(this._viewModel,this._element)}Object.defineProperties(HW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});HW.prototype.isDestroyed=function(){return!1};HW.prototype.destroy=function(){let e=this._container;return Se.cleanNode(this._element),e.removeChild(this._element),he(this)};var GW=HW;function IA(e,t,n){this._color=e,this._height=t,this._base=y(n,0)}IA.prototype.getHeight=function(){return this._height};IA.prototype.getBase=function(){return this._base};IA.prototype.getStartTime=function(){return this._start};IA.prototype.getStopTime=function(){return this._stop};IA.prototype.setRange=function(e,t){this._start=e,this._stop=t};IA.prototype.render=function(e){let t="";if(this._start&&this._stop&&this._color){let n=Q.secondsDifference(this._start,e.epochJulian),i=Math.round(e.timeBarWidth*e.getAlpha(n)),r=Q.secondsDifference(this._stop,e.epochJulian),o=Math.round(e.timeBarWidth*e.getAlpha(r))-i;i<0&&(o+=i,i=0),i+o>e.timeBarWidth&&(o=e.timeBarWidth-i),o>0&&(t=`<span class="cesium-timeline-highlight" style="left: ${i.toString()}px; width: ${o.toString()}px; bottom: ${this._base.toString()}px; height: ${this._height}px; background-color: ${this._color};"></span>`)}return t};var WW=IA;function Q2e(e,t,n,i){this.interval=e,this.height=t,this.color=n||new z(.5,.5,.5,1),this.backgroundColor=i||new z(0,0,0,0)}Q2e.prototype.render=function(e,t){let n=this.interval.start,i=this.interval.stop,r=t.startJulian,o=Q.addSeconds(t.startJulian,t.duration,new Q);if(Q.lessThan(n,r)&&Q.greaterThan(i,o))e.fillStyle=this.color.toCssColorString(),e.fillRect(0,t.y,t.timeBarWidth,this.height);else if(Q.lessThanOrEquals(n,o)&&Q.greaterThanOrEquals(i,r)){let s,a,c;for(s=0;s<t.timeBarWidth;++s){let l=Q.addSeconds(t.startJulian,s/t.timeBarWidth*t.duration,new Q);!u(a)&&Q.greaterThanOrEquals(l,n)?a=s:!u(c)&&Q.greaterThanOrEquals(l,i)&&(c=s)}e.fillStyle=this.backgroundColor.toCssColorString(),e.fillRect(0,t.y,t.timeBarWidth,this.height),u(a)&&(u(c)||(c=t.timeBarWidth),e.fillStyle=this.color.toCssColorString(),e.fillRect(a,t.y,Math.max(c-a,1),this.height))}};var jW=Q2e;var Kne=1e12,Th={none:0,scrub:1,slide:2,zoom:3,touchOnly:4},pu={none:0,scrub:1,slideZoom:2,singleTap:3,ignore:4},Db=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800,1296e3,2592e3,5184e3,7776e3,15552e3,31536e3,63072e3,126144e3,15768e4,31536e4,63072e4,126144e4,15768e5,31536e5,63072e5,126144e5,15768e6,31536e6],zBt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _u(e,t){e=li(e);let n=e.ownerDocument;this.container=e;let i=n.createElement("div");i.className="cesium-timeline-main",e.appendChild(i),this._topDiv=i,this._endJulian=void 0,this._epochJulian=void 0,this._lastXPos=void 0,this._scrubElement=void 0,this._startJulian=void 0,this._timeBarSecondsSpan=void 0,this._clock=t,this._scrubJulian=t.currentTime,this._mainTicSpan=-1,this._mouseMode=Th.none,this._touchMode=pu.none,this._touchState={centerX:0,spanX:0},this._mouseX=0,this._timelineDrag=0,this._timelineDragLocation=void 0,this._lastHeight=void 0,this._lastWidth=void 0,this._topDiv.innerHTML='<div class="cesium-timeline-bar"></div><div class="cesium-timeline-trackContainer"><canvas class="cesium-timeline-tracks" width="10" height="1"></canvas></div><div class="cesium-timeline-needle"></div><span class="cesium-timeline-ruler"></span>',this._timeBarEle=this._topDiv.childNodes[0],this._trackContainer=this._topDiv.childNodes[1],this._trackListEle=this._topDiv.childNodes[1].childNodes[0],this._needleEle=this._topDiv.childNodes[2],this._rulerEle=this._topDiv.childNodes[3],this._context=this._trackListEle.getContext("2d"),this._trackList=[],this._highlightRanges=[],this.zoomTo(t.startTime,t.stopTime),this._onMouseDown=HBt(this),this._onMouseUp=GBt(this),this._onMouseMove=WBt(this),this._onMouseWheel=jBt(this),this._onTouchStart=qBt(this),this._onTouchMove=XBt(this),this._onTouchEnd=YBt(this);let r=this._timeBarEle;n.addEventListener("mouseup",this._onMouseUp,!1),n.addEventListener("mousemove",this._onMouseMove,!1),r.addEventListener("mousedown",this._onMouseDown,!1),r.addEventListener("DOMMouseScroll",this._onMouseWheel,!1),r.addEventListener("mousewheel",this._onMouseWheel,!1),r.addEventListener("touchstart",this._onTouchStart,!1),r.addEventListener("touchmove",this._onTouchMove,!1),r.addEventListener("touchend",this._onTouchEnd,!1),r.addEventListener("touchcancel",this._onTouchEnd,!1),this._topDiv.oncontextmenu=function(){return!1},t.onTick.addEventListener(this.updateFromClock,this),this.updateFromClock()}_u.prototype.addEventListener=function(e,t,n){this._topDiv.addEventListener(e,t,n)};_u.prototype.removeEventListener=function(e,t,n){this._topDiv.removeEventListener(e,t,n)};_u.prototype.isDestroyed=function(){return!1};_u.prototype.destroy=function(){this._clock.onTick.removeEventListener(this.updateFromClock,this);let e=this.container.ownerDocument;e.removeEventListener("mouseup",this._onMouseUp,!1),e.removeEventListener("mousemove",this._onMouseMove,!1);let t=this._timeBarEle;t.removeEventListener("mousedown",this._onMouseDown,!1),t.removeEventListener("DOMMouseScroll",this._onMouseWheel,!1),t.removeEventListener("mousewheel",this._onMouseWheel,!1),t.removeEventListener("touchstart",this._onTouchStart,!1),t.removeEventListener("touchmove",this._onTouchMove,!1),t.removeEventListener("touchend",this._onTouchEnd,!1),t.removeEventListener("touchcancel",this._onTouchEnd,!1),this.container.removeChild(this._topDiv),he(this)};_u.prototype.addHighlightRange=function(e,t,n){let i=new WW(e,t,n);return this._highlightRanges.push(i),this.resize(),i};_u.prototype.addTrack=function(e,t,n,i){let r=new jW(e,t,n,i);return this._trackList.push(r),this._lastHeight=void 0,this.resize(),r};_u.prototype.zoomTo=function(e,t){if(this._startJulian=e,this._endJulian=t,this._timeBarSecondsSpan=Q.secondsDifference(t,e),this._clock&&this._clock.clockRange!==qs.UNBOUNDED){let i=this._clock.startTime,r=this._clock.stopTime,o=Q.secondsDifference(r,i),s=Q.secondsDifference(i,this._startJulian),a=Q.secondsDifference(r,this._endJulian);this._timeBarSecondsSpan>=o?(this._timeBarSecondsSpan=o,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):s>0?(this._endJulian=Q.addSeconds(this._endJulian,s,new Q),this._startJulian=i,this._timeBarSecondsSpan=Q.secondsDifference(this._endJulian,this._startJulian)):a<0&&(this._startJulian=Q.addSeconds(this._startJulian,a,new Q),this._endJulian=r,this._timeBarSecondsSpan=Q.secondsDifference(this._endJulian,this._startJulian))}this._makeTics();let n=document.createEvent("Event");n.initEvent("setzoom",!0,!0),n.startJulian=this._startJulian,n.endJulian=this._endJulian,n.epochJulian=this._epochJulian,n.totalSpan=this._timeBarSecondsSpan,n.mainTicSpan=this._mainTicSpan,this._topDiv.dispatchEvent(n)};_u.prototype.zoomFrom=function(e){let t=Q.secondsDifference(this._scrubJulian,this._startJulian);e>1||t<0||t>this._timeBarSecondsSpan?t=this._timeBarSecondsSpan*.5:t+=t-this._timeBarSecondsSpan*.5;let n=this._timeBarSecondsSpan-t;this.zoomTo(Q.addSeconds(this._startJulian,t-t*e,new Q),Q.addSeconds(this._endJulian,n*e-n,new Q))};function Zne(e){return e<10?`0${e.toString()}`:e.toString()}_u.prototype.makeLabel=function(e){let t=Q.toGregorianDate(e),n=t.millisecond,i=" UTC";if(n>0&&this._timeBarSecondsSpan<3600){for(i=Math.floor(n).toString();i.length<3;)i=`0${i}`;i=`.${i}`}return`${zBt[t.month-1]} ${t.day} ${t.year} ${Zne(t.hour)}:${Zne(t.minute)}:${Zne(t.second)}${i}`};_u.prototype.smallestTicInPixels=7;_u.prototype._makeTics=function(){let e=this._timeBarEle,t=Q.secondsDifference(this._scrubJulian,this._startJulian),n=Math.round(t*this._topDiv.clientWidth/this._timeBarSecondsSpan),i=n-8,r,o=this;this._needleEle.style.left=`${n.toString()}px`;let s="",a=.01,c=31536e6,l=1e-10,f=0,d=this._timeBarSecondsSpan;d<a?(d=a,this._timeBarSecondsSpan=a,this._endJulian=Q.addSeconds(this._startJulian,a,new Q)):d>c&&(d=c,this._timeBarSecondsSpan=c,this._endJulian=Q.addSeconds(this._startJulian,c,new Q));let p=this._timeBarEle.clientWidth;p<10&&(p=10);let _=this._startJulian,m=Math.min(d/p*1e-5,.4),x,b=Q.toGregorianDate(_);d>31536e4?x=Q.fromDate(new Date(Date.UTC(Math.floor(b.year/100)*100,0))):d>31536e3?x=Q.fromDate(new Date(Date.UTC(Math.floor(b.year/10)*10,0))):d>86400?x=Q.fromDate(new Date(Date.UTC(b.year,0))):x=Q.fromDate(new Date(Date.UTC(b.year,b.month,b.day)));let T=Q.secondsDifference(this._startJulian,Q.addSeconds(x,m,new Q)),C=T+d;this._epochJulian=x;function A(k){return Math.floor(T/k)*k}function E(k,W){return Math.ceil(k/W+.5)*W}function v(k){return(k-T)/d}function D(k,W){return k-W*Math.round(k/W)}this._rulerEle.innerHTML=this.makeLabel(Q.addSeconds(this._endJulian,-a,new Q));let R=this._rulerEle.offsetWidth+20;R<30&&(R=180);let O=f;f-=l;let L={startTime:T,startJulian:_,epochJulian:x,duration:d,timeBarWidth:p,getAlpha:v};this._highlightRanges.forEach(function(k){s+=k.render(L)});let N=0,g=0,S=0,w=R/p;w>1&&(w=1),w*=this._timeBarSecondsSpan;let P=-1,F=-1,B=Db.length,H;for(H=0;H<B;++H){let k=Db[H];if(++P,N=k,k>w&&k>f)break;F<0&&p*(k/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(F=P)}if(P>0){for(;P>0;)if(--P,Math.abs(D(N,Db[P]))<1e-5){Db[P]>=f&&(g=Db[P]);break}if(F>=0)for(;F<P;){if(Math.abs(D(g,Db[F]))<1e-5&&Db[F]>=f){S=Db[F];break}++F}}f=O,f>l&&S<1e-5&&Math.abs(f-N)>l&&(S=f,f<=N+l&&(g=0));let V=-999999,U;if(p*(S/this._timeBarSecondsSpan)>=3)for(r=A(S);r<=C;r=E(r,S))s+=`<span class="cesium-timeline-ticTiny" style="left: ${Math.round(p*v(r)).toString()}px;"></span>`;if(p*(g/this._timeBarSecondsSpan)>=3)for(r=A(g);r<=C;r=E(r,g))s+=`<span class="cesium-timeline-ticSub" style="left: ${Math.round(p*v(r)).toString()}px;"></span>`;if(p*(N/this._timeBarSecondsSpan)>=2){this._mainTicSpan=N,C+=N,r=A(N);let k=Q.computeTaiMinusUtc(x);for(;r<=C;){let W=Q.addSeconds(_,r-T,new Q);if(N>2.1){let ee=Q.computeTaiMinusUtc(W);Math.abs(ee-k)>.1&&(r+=ee-k,W=Q.addSeconds(_,r-T,new Q))}let j=Math.round(p*v(r)),K=this.makeLabel(W);this._rulerEle.innerHTML=K,U=this._rulerEle.offsetWidth,U<10&&(U=R);let Y=j-(U/2-1);Y>V?(V=Y+U+5,s+=`<span class="cesium-timeline-ticMain" style="left: ${j.toString()}px;"></span><span class="cesium-timeline-ticLabel" style="left: ${Y.toString()}px;">${K}</span>`):s+=`<span class="cesium-timeline-ticSub" style="left: ${j.toString()}px;"></span>`,r=E(r,N)}}else this._mainTicSpan=-1;s+=`<span class="cesium-timeline-icon16" style="left:${i}px;bottom:0;background-position: 0 0;"></span>`,e.innerHTML=s,this._scrubElement=e.lastChild,this._context.clearRect(0,0,this._trackListEle.width,this._trackListEle.height),L.y=0,this._trackList.forEach(function(k){k.render(o._context,L),L.y+=k.height})};_u.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let e=this._scrubElement;if(u(this._scrubElement)){let t=Q.secondsDifference(this._scrubJulian,this._startJulian),n=Math.round(t*this._topDiv.clientWidth/this._timeBarSecondsSpan);this._lastXPos!==n&&(this._lastXPos=n,e.style.left=`${n-8}px`,this._needleEle.style.left=`${n}px`)}u(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo(Q.addSeconds(this._startJulian,this._timelineDrag,new Q),Q.addSeconds(this._endJulian,this._timelineDrag,new Q)))};_u.prototype._setTimeBarTime=function(e,t){if(e=Math.round(e),this._scrubJulian=Q.addSeconds(this._startJulian,t,new Q),this._scrubElement){let i=e-8;this._scrubElement.style.left=`${i.toString()}px`,this._needleEle.style.left=`${e.toString()}px`}let n=document.createEvent("Event");n.initEvent("settime",!0,!0),n.clientX=e,n.timeSeconds=t,n.timeJulian=this._scrubJulian,n.clock=this._clock,this._topDiv.dispatchEvent(n)};function HBt(e){return function(t){e._mouseMode!==Th.touchOnly&&(t.button===0?(e._mouseMode=Th.scrub,e._scrubElement&&(e._scrubElement.style.backgroundPosition="-16px 0"),e._onMouseMove(t)):(e._mouseX=t.clientX,t.button===2?e._mouseMode=Th.zoom:e._mouseMode=Th.slide)),t.preventDefault()}}function GBt(e){return function(t){e._mouseMode=Th.none,e._scrubElement&&(e._scrubElement.style.backgroundPosition="0 0"),e._timelineDrag=0,e._timelineDragLocation=void 0}}function WBt(e){return function(t){let n;if(e._mouseMode===Th.scrub){t.preventDefault();let i=t.clientX-e._topDiv.getBoundingClientRect().left;i<0?(e._timelineDragLocation=0,e._timelineDrag=-.01*e._timeBarSecondsSpan):i>e._topDiv.clientWidth?(e._timelineDragLocation=e._topDiv.clientWidth,e._timelineDrag=.01*e._timeBarSecondsSpan):(e._timelineDragLocation=void 0,e._setTimeBarTime(i,i*e._timeBarSecondsSpan/e._topDiv.clientWidth))}else if(e._mouseMode===Th.slide){if(n=e._mouseX-t.clientX,e._mouseX=t.clientX,n!==0){let i=n*e._timeBarSecondsSpan/e._topDiv.clientWidth;e.zoomTo(Q.addSeconds(e._startJulian,i,new Q),Q.addSeconds(e._endJulian,i,new Q))}}else e._mouseMode===Th.zoom&&(n=e._mouseX-t.clientX,e._mouseX=t.clientX,n!==0&&e.zoomFrom(Math.pow(1.01,n)))}}function jBt(e){return function(t){let n=t.wheelDeltaY||t.wheelDelta||-t.detail;Kne=Math.max(Math.min(Math.abs(n),Kne),1),n/=Kne,e.zoomFrom(Math.pow(1.05,-n))}}function qBt(e){return function(t){let n=t.touches.length,i,r,o=e._topDiv.getBoundingClientRect().left;t.preventDefault(),e._mouseMode=Th.touchOnly,n===1?(i=Q.secondsDifference(e._scrubJulian,e._startJulian),r=Math.round(i*e._topDiv.clientWidth/e._timeBarSecondsSpan+o),Math.abs(t.touches[0].clientX-r)<50?(e._touchMode=pu.scrub,e._scrubElement&&(e._scrubElement.style.backgroundPosition=n===1?"-16px 0":"0 0")):(e._touchMode=pu.singleTap,e._touchState.centerX=t.touches[0].clientX-o)):n===2?(e._touchMode=pu.slideZoom,e._touchState.centerX=(t.touches[0].clientX+t.touches[1].clientX)*.5-o,e._touchState.spanX=Math.abs(t.touches[0].clientX-t.touches[1].clientX)):e._touchMode=pu.ignore}}function YBt(e){return function(t){let n=t.touches.length,i=e._topDiv.getBoundingClientRect().left;e._touchMode===pu.singleTap?(e._touchMode=pu.scrub,e._onTouchMove(t)):e._touchMode===pu.scrub&&e._onTouchMove(t),e._mouseMode=Th.touchOnly,n!==1?e._touchMode=n>0?pu.ignore:pu.none:e._touchMode===pu.slideZoom&&(e._touchState.centerX=t.touches[0].clientX-i),e._scrubElement&&(e._scrubElement.style.backgroundPosition="0 0")}}function XBt(e){return function(t){let n,i,r,o,s,a,c=1,l=e._topDiv.getBoundingClientRect().left;e._touchMode===pu.singleTap&&(e._touchMode=pu.slideZoom),e._mouseMode=Th.touchOnly,e._touchMode===pu.scrub?(t.preventDefault(),t.changedTouches.length===1&&(i=t.changedTouches[0].clientX-l,i>=0&&i<=e._topDiv.clientWidth&&e._setTimeBarTime(i,i*e._timeBarSecondsSpan/e._topDiv.clientWidth))):e._touchMode===pu.slideZoom&&(r=t.touches.length,r===2?(o=(t.touches[0].clientX+t.touches[1].clientX)*.5-l,s=Math.abs(t.touches[0].clientX-t.touches[1].clientX)):r===1&&(o=t.touches[0].clientX-l,s=0),u(o)&&(s>0&&e._touchState.spanX>0?(c=e._touchState.spanX/s,a=Q.addSeconds(e._startJulian,(e._touchState.centerX*e._timeBarSecondsSpan-o*e._timeBarSecondsSpan*c)/e._topDiv.clientWidth,new Q)):(n=e._touchState.centerX-o,a=Q.addSeconds(e._startJulian,n*e._timeBarSecondsSpan/e._topDiv.clientWidth,new Q)),e.zoomTo(a,Q.addSeconds(a,e._timeBarSecondsSpan*c,new Q)),e._touchState.centerX=o,e._touchState.spanX=s))}}_u.prototype.resize=function(){let e=this.container.clientWidth,t=this.container.clientHeight;if(e===this._lastWidth&&t===this._lastHeight)return;this._trackContainer.style.height=`${t}px`;let n=1;this._trackList.forEach(function(i){n+=i.height}),this._trackListEle.style.height=`${n.toString()}px`,this._trackListEle.width=this._trackListEle.clientWidth,this._trackListEle.height=n,this._makeTics(),this._lastXPos=void 0,this._lastWidth=e,this._lastHeight=t};var qW=_u;var iRe=xo(nRe(),1);function $Bt(e){let t=!1,n=window.screen;return u(n)&&(u(n.lockOrientation)?t=n.lockOrientation(e):u(n.mozLockOrientation)?t=n.mozLockOrientation(e):u(n.msLockOrientation)?t=n.msLockOrientation(e):u(n.orientation&&n.orientation.lock)&&(t=n.orientation.lock(e))),t}function rRe(){let e=window.screen;u(e)&&(u(e.unlockOrientation)?e.unlockOrientation():u(e.mozUnlockOrientation)?e.mozUnlockOrientation():u(e.msUnlockOrientation)?e.msUnlockOrientation():u(e.orientation&&e.orientation.unlock)&&e.orientation.unlock())}function QBt(e,t,n,i){i()||(n()?(t.useWebVR=!1,e._locked&&(rRe(),e._locked=!1),e._noSleep.disable(),As.exitFullscreen(),n(!1)):(As.fullscreen||As.requestFullscreen(e._vrElement),e._noSleep.enable(),e._locked||(e._locked=$Bt("landscape")),t.useWebVR=!0,n(!0)))}function YW(e,t){let n=this,i=Se.observable(As.enabled),r=Se.observable(!1);this.isVRMode=void 0,Se.defineProperty(this,"isVRMode",{get:function(){return r()}}),this.isVREnabled=void 0,Se.defineProperty(this,"isVREnabled",{get:function(){return i()},set:function(s){i(s&&As.enabled)}}),this.tooltip=void 0,Se.defineProperty(this,"tooltip",function(){return i()?r()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"});let o=Se.observable(!1);this._isOrthographic=void 0,Se.defineProperty(this,"_isOrthographic",{get:function(){return o()}}),this._eventHelper=new Gs,this._eventHelper.add(e.preRender,function(){o(e.camera.frustum instanceof Dn)}),this._locked=!1,this._noSleep=new iRe.default,this._command=ni(function(){QBt(n,e,r,o)},Se.getObservable(this,"isVREnabled")),this._vrElement=y(li(t),document.body),this._callback=function(){!As.fullscreen&&r()&&(e.useWebVR=!1,n._locked&&(rRe(),n._locked=!1),n._noSleep.disable(),r(!1))},document.addEventListener(As.changeEventName,this._callback)}Object.defineProperties(YW.prototype,{vrElement:{get:function(){return this._vrElement},set:function(e){this._vrElement=e}},command:{get:function(){return this._command}}});YW.prototype.isDestroyed=function(){return!1};YW.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(As.changeEventName,this._callback),he(this)};var XW=YW;var JBt="M 5.3125 6.375 C 4.008126 6.375 2.96875 7.4141499 2.96875 8.71875 L 2.96875 19.5 C 2.96875 20.8043 4.008126 21.875 5.3125 21.875 L 13.65625 21.875 C 13.71832 20.0547 14.845166 18.59375 16.21875 18.59375 C 17.592088 18.59375 18.71881 20.0552 18.78125 21.875 L 27.09375 21.875 C 28.398125 21.875 29.4375 20.8043 29.4375 19.5 L 29.4375 8.71875 C 29.4375 7.4141499 28.398125 6.375 27.09375 6.375 L 5.3125 6.375 z M 9.625 10.4375 C 11.55989 10.4375 13.125 12.03385 13.125 13.96875 C 13.125 15.90365 11.55989 17.46875 9.625 17.46875 C 7.69011 17.46875 6.125 15.90365 6.125 13.96875 C 6.125 12.03385 7.69011 10.4375 9.625 10.4375 z M 22.46875 10.4375 C 24.40364 10.4375 25.96875 12.03385 25.96875 13.96875 C 25.96875 15.90365 24.40364 17.46875 22.46875 17.46875 C 20.53386 17.46875 18.96875 15.90365 18.96875 13.96875 C 18.96875 12.03385 20.53386 10.4375 22.46875 10.4375 z",e4t="M 25.770585,2.4552065 C 15.72282,13.962707 10.699956,19.704407 8.1768352,22.580207 c -1.261561,1.4379 -1.902282,2.1427 -2.21875,2.5 -0.141624,0.1599 -0.208984,0.2355 -0.25,0.2813 l 0.6875,0.75 c 10e-5,-10e-5 0.679191,0.727 0.6875,0.7187 0.01662,-0.016 0.02451,-0.024 0.03125,-0.031 0.01348,-0.014 0.04013,-0.038 0.0625,-0.062 0.04474,-0.05 0.120921,-0.1315 0.28125,-0.3126 0.320657,-0.3619 0.956139,-1.0921 2.2187499,-2.5312 2.5252219,-2.8781 7.5454589,-8.6169 17.5937499,-20.1250005 l -1.5,-1.3125 z m -20.5624998,3.9063 c -1.304375,0 -2.34375,1.0391 -2.34375,2.3437 l 0,10.8125005 c 0,1.3043 1.039375,2.375 2.34375,2.375 l 2.25,0 c 1.9518039,-2.2246 7.4710958,-8.5584 13.5624998,-15.5312005 l -15.8124998,0 z m 21.1249998,0 c -1.855467,2.1245 -2.114296,2.4005 -3.59375,4.0936995 1.767282,0.1815 3.15625,1.685301 3.15625,3.500001 0,1.9349 -1.56511,3.5 -3.5,3.5 -1.658043,0 -3.043426,-1.1411 -3.40625,-2.6875 -1.089617,1.2461 -2.647139,2.9988 -3.46875,3.9375 0.191501,-0.062 0.388502,-0.094 0.59375,-0.094 1.373338,0 2.50006,1.4614 2.5625,3.2812 l 8.3125,0 c 1.304375,0 2.34375,-1.0707 2.34375,-2.375 l 0,-10.8125005 c 0,-1.3046 -1.039375,-2.3437 -2.34375,-2.3437 l -0.65625,0 z M 9.5518351,10.423906 c 1.9348899,0 3.4999999,1.596401 3.4999999,3.531301 0,1.9349 -1.56511,3.5 -3.4999999,3.5 -1.9348899,0 -3.4999999,-1.5651 -3.4999999,-3.5 0,-1.9349 1.56511,-3.531301 3.4999999,-3.531301 z m 4.2187499,10.312601 c -0.206517,0.2356 -0.844218,0.9428 -1.03125,1.1562 l 0.8125,0 c 0.01392,-0.4081 0.107026,-0.7968 0.21875,-1.1562 z";function KW(e,t,n){e=li(e);let i=new XW(t,n);i._exitVRPath=e4t,i._enterVRPath=JBt;let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-vrButton",r.setAttribute("data-bind",'css: { "cesium-button-disabled" : _isOrthographic }, attr: { title: tooltip },click: command,enable: isVREnabled,cesiumSvgPath: { path: isVRMode ? _exitVRPath : _enterVRPath, width: 32, height: 32 }'),e.appendChild(r),Se.applyBindings(i,r),this._container=e,this._viewModel=i,this._element=r}Object.defineProperties(KW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});KW.prototype.isDestroyed=function(){return!1};KW.prototype.destroy=function(){return this._viewModel.destroy(),Se.cleanNode(this._element),this._container.removeChild(this._element),he(this)};var ZW=KW;var Pb=new ce;function aRe(e){let t=e.clock;t.currentTime=e.timeJulian,t.shouldAnimate=!1}function t4t(e){let t=e.getPropertyIds(),n="";return Array.isArray(t)&&(t.forEach(function(i){let r=e.getProperty(i);u(r)&&(n+=`<tr><th>${i}</th><td>${r}</td></tr>`)}),n.length>0&&(n=`<table class="cesium-infoBox-defaultTable"><tbody>${n}</tbody></table>`)),n}function n4t(e){let t,n=[],i=e.getPropertyIds();for(t=0;t<i.length;t++){let o=i[t];/^name$/i.test(o)?n[0]=e.getProperty(o):/name/i.test(o)?n[1]=e.getProperty(o):/^title$/i.test(o)?n[2]=e.getProperty(o):/^(id|identifier)$/i.test(o)?n[3]=e.getProperty(o):/element/i.test(o)?n[4]=e.getProperty(o):/(id|identifier)$/i.test(o)&&(n[5]=e.getProperty(o))}let r=n.length;for(t=0;t<r;t++){let o=n[t];if(u(o)&&o!=="")return o}return"Unnamed Feature"}function oRe(e,t){let n=e.scene.pick(t.position);if(u(n)){let i=y(n.id,n.primitive.id);if(i instanceof is)return i;if(n instanceof nc)return new is({name:n4t(n),description:t4t(n),feature:n})}if(u(e.scene.globe))return o4t(e,t.position)}var i4t=new Q;function cRe(e,t,n){if(u(n)){let i=n.clock;if(u(i)&&(i.getValue(t),u(e))){let r=i.startTime,o=i.stopTime;Q.equals(r,o)&&(o=Q.addSeconds(r,I.EPSILON2,i4t)),e.updateFromClock(),e.zoomTo(r,o)}}}var r4t=new h;function o4t(e,t){let n=e.scene,i=n.camera.getPickRay(t),r=n.imageryLayers.pickImageryLayerFeatures(i,n);if(!u(r))return;let o=new is({id:"Loading...",description:"Loading feature information..."});return r.then(function(s){if(e.selectedEntity!==o)return;if(!u(s)||s.length===0){e.selectedEntity=sRe();return}let a=s[0],c=new is({id:a.name,description:a.description});if(u(a.position)){let l=e.scene.ellipsoid.cartographicToCartesian(a.position,r4t);c.position=new Su(l)}e.selectedEntity=c},function(){e.selectedEntity===o&&(e.selectedEntity=sRe())}),o}function sRe(){return new is({id:"None",description:"No features found."})}function s4t(e,t){let n=e._geocoder,i=e._homeButton,r=e._sceneModePicker,o=e._projectionPicker,s=e._baseLayerPicker,a=e._animation,c=e._timeline,l=e._fullscreenButton,f=e._infoBox,d=e._selectionIndicator,p=t?"hidden":"visible";if(u(n)&&(n.container.style.visibility=p),u(i)&&(i.container.style.visibility=p),u(r)&&(r.container.style.visibility=p),u(o)&&(o.container.style.visibility=p),u(s)&&(s.container.style.visibility=p),u(a)&&(a.container.style.visibility=p),u(c)&&(c.container.style.visibility=p),u(l)&&l.viewModel.isFullscreenEnabled&&(l.container.style.visibility=p),u(f)&&(f.container.style.visibility=p),u(d)&&(d.container.style.visibility=p),e._container){let _=t||!u(l)?0:l.container.clientWidth;e._vrButton.container.style.right=`${_}px`,e.forceResize()}}function _r(e,t){e=li(e),t=y(t,{}),t.selectionIndicator=y(t.selectionIndicator,!1),t.infoBox=y(t.selectionIndicator,!1),t.geocoder=y(t.geocoder,!1),t.homeButton=y(t.homeButton,!1),t.sceneModePicker=y(t.sceneModePicker,!1),t.baseLayerPicker=y(t.baseLayerPicker,!1),t.navigationHelpButton=y(t.navigationHelpButton,!1),t.timeline=y(t.timeline,!1),t.animation=y(t.animation,!1),t.fullscreenButton=y(t.fullscreenButton,!1);let n=(!u(t.globe)||t.globe!==!1)&&(!u(t.baseLayerPicker)||t.baseLayerPicker!==!1),i=this,r=document.createElement("div");r.className="cesium-viewer",e.appendChild(r);let o=document.createElement("div");o.className="cesium-viewer-cesiumWidgetContainer",r.appendChild(o);let s=document.createElement("div");s.className="cesium-viewer-bottom";let a=y(t.scene3DOnly,!1),c,l,f=!1;u(t.clockViewModel)?(l=t.clockViewModel,c=l.clock):(c=new jp,l=new q7(c),f=!0),u(t.shouldAnimate)&&(c.shouldAnimate=t.shouldAnimate);let d=1;if(u(t.logoScale)){let K=parseFloat(t.logoScale);u(K)&&K>=.2&&(d=K)}let p=new N7(o,{baseLayer:n&&u(t.selectedImageryProviderViewModel)||u(t.baseLayer)||u(t.imageryProvider)?!1:void 0,clock:c,skyBox:t.skyBox,skyAtmosphere:t.skyAtmosphere,sceneMode:t.sceneMode,ellipsoid:t.ellipsoid,mapProjection:t.mapProjection,globe:t.globe,orderIndependentTranslucency:t.orderIndependentTranslucency,contextOptions:t.contextOptions,useDefaultRenderLoop:t.useDefaultRenderLoop,targetFrameRate:t.targetFrameRate,showRenderLoopErrors:t.showRenderLoopErrors,useBrowserRecommendedResolution:t.useBrowserRecommendedResolution,creditContainer:u(t.creditContainer)?t.creditContainer:s,creditViewport:t.creditViewport,scene3DOnly:a,logoScale:d,shadows:t.shadows,terrainShadows:t.terrainShadows,mapMode2D:t.mapMode2D,blurActiveElementOnCanvasFocus:t.blurActiveElementOnCanvasFocus,requestRenderMode:t.requestRenderMode,maximumRenderTimeChange:t.maximumRenderTimeChange,depthPlaneEllipsoidOffset:t.depthPlaneEllipsoidOffset,msaaSamples:t.msaaSamples}),_=t.dataSources,m=!1;u(_)||(_=new P8,m=!0);let x=p.scene,b=new dz({scene:x,dataSourceCollection:_}),T=new Gs;T.add(c.onTick,_r.prototype._onTick,this),T.add(x.morphStart,_r.prototype._clearTrackedObject,this);let C;if(!u(t.selectionIndicator)||t.selectionIndicator!==!1){let K=document.createElement("div");K.className="cesium-viewer-selectionIndicatorContainer",r.appendChild(K),C=new GW(K,x)}let A;if(!u(t.infoBox)||t.infoBox!==!1){let K=document.createElement("div");K.className="cesium-viewer-infoBoxContainer",r.appendChild(K),A=new SW(K);let Y=A.viewModel;T.add(Y.cameraClicked,_r.prototype._onInfoBoxCameraClicked,this),T.add(Y.closeClicked,_r.prototype._onInfoBoxClockClicked,this)}let E=document.createElement("div");E.className="cesium-viewer-toolbar",r.appendChild(E);let v;if(!u(t.geocoder)||t.geocoder!==!1){let K=document.createElement("div");K.className="cesium-viewer-geocoderContainer",E.appendChild(K);let Y;u(t.geocoder)&&typeof t.geocoder!="boolean"&&(Y=Array.isArray(t.geocoder)?t.geocoder:[t.geocoder]),v=new gW({container:K,geocoderServices:Y,scene:x}),T.add(v.viewModel.search.beforeExecute,_r.prototype._clearObjects,this)}let D;(!u(t.homeButton)||t.homeButton!==!1)&&(D=new bW(E,x),u(v)&&T.add(D.viewModel.command.afterExecute,function(){let K=v.viewModel;K.searchText="",K.isSearchInProgress&&K.search()}),T.add(D.viewModel.command.beforeExecute,_r.prototype._clearTrackedObject,this));let R;!a&&(!u(t.sceneModePicker)||t.sceneModePicker!==!1)&&(R=new VW(E,x));let O;t.projectionPicker&&(O=new NW(E,x));let L,N;if(n){let K=y(t.imageryProviderViewModels,nW()),Y=y(t.terrainProviderViewModels,iW());L=new tW(E,{globe:x.globe,imageryProviderViewModels:K,selectedImageryProviderViewModel:t.selectedImageryProviderViewModel,terrainProviderViewModels:Y,selectedTerrainProviderViewModel:t.selectedTerrainProviderViewModel}),N=E.getElementsByClassName("cesium-baseLayerPicker-dropDown")[0]}u(t.baseLayer)&&t.baseLayer!==!1&&(n&&(L.viewModel.selectedImagery=void 0),x.imageryLayers.removeAll(),x.imageryLayers.add(t.baseLayer)),u(t.terrainProvider)&&(n&&(L.viewModel.selectedTerrain=void 0),x.terrainProvider=t.terrainProvider),u(t.terrain)&&(n&&(x.globe.depthTestAgainstTerrain=!0),x.setTerrain(t.terrain));let g;if(!u(t.navigationHelpButton)||t.navigationHelpButton!==!1){let K=!0;try{if(u(window.localStorage)){let Y=window.localStorage.getItem("cesium-hasSeenNavHelp");u(Y)&&Y?K=!1:window.localStorage.setItem("cesium-hasSeenNavHelp","true")}}catch{}g=new DW({container:E,instructionsInitiallyVisible:y(t.navigationInstructionsInitiallyVisible,K)})}let S;if(!u(t.animation)||t.animation!==!1){let K=document.createElement("div");K.className="cesium-viewer-animationContainer",r.appendChild(K),S=new $7(K,new Q7(l))}let w;if(!u(t.timeline)||t.timeline!==!1){let K=document.createElement("div");K.className="cesium-viewer-timelineContainer",r.appendChild(K),w=new qW(K,c),w.addEventListener("settime",aRe,!1),w.zoomTo(c.startTime,c.stopTime)}let P,F,B;(!u(t.fullscreenButton)||t.fullscreenButton!==!1)&&(B=document.createElement("div"),B.className="cesium-viewer-fullscreenContainer",r.appendChild(B),P=new mW(B,t.fullscreenElement),F=Bc(P.viewModel,"isFullscreenEnabled",function(K){B.style.display=K?"block":"none",u(w)&&(w.container.style.right=`${B.clientWidth}px`,w.resize())}));let H,V,U;if(t.vrButton){let K=document.createElement("div");K.className="cesium-viewer-vrContainer",r.appendChild(K),H=new ZW(K,x,t.fullScreenElement),V=Bc(H.viewModel,"isVREnabled",function(Y){K.style.display=Y?"block":"none",u(P)&&(K.style.right=`${B.clientWidth}px`),u(w)&&(w.container.style.right=`${K.clientWidth}px`,w.resize())}),U=Bc(H.viewModel,"isVRMode",function(Y){s4t(i,Y)})}this._baseLayerPickerDropDown=N,this._fullscreenSubscription=F,this._vrSubscription=V,this._vrModeSubscription=U,this._dataSourceChangedListeners={},this._automaticallyTrackDataSourceClocks=y(t.automaticallyTrackDataSourceClocks,!0),this._container=e,this._bottomContainer=s,this._element=r,this._cesiumWidget=p,this._selectionIndicator=C,this._infoBox=A,this._dataSourceCollection=_,this._destroyDataSourceCollection=m,this._dataSourceDisplay=b,this._clockViewModel=l,this._destroyClockViewModel=f,this._toolbar=E,this._homeButton=D,this._sceneModePicker=R,this._projectionPicker=O,this._baseLayerPicker=L,this._navigationHelpButton=g,this._animation=S,this._timeline=w,this._fullscreenButton=P,this._vrButton=H,this._geocoder=v,this._eventHelper=T,this._lastWidth=0,this._lastHeight=0,this._allowDataSourcesToSuspendAnimation=!0,this._entityView=void 0,this._enableInfoOrSelection=u(A)||u(C),this._clockTrackedDataSource=void 0,this._trackedEntity=void 0,this._needTrackedEntityUpdate=!1,this._selectedEntity=void 0,this._zoomIsFlight=!1,this._zoomTarget=void 0,this._zoomPromise=void 0,this._zoomOptions=void 0,this._selectedEntityChanged=new be,this._trackedEntityChanged=new be,Se.track(this,["_trackedEntity","_selectedEntity","_clockTrackedDataSource"]),T.add(_.dataSourceAdded,_r.prototype._onDataSourceAdded,this),T.add(_.dataSourceRemoved,_r.prototype._onDataSourceRemoved,this),T.add(x.postUpdate,_r.prototype.resize,this),T.add(x.postRender,_r.prototype._postRender,this);let k=_.length;for(let K=0;K<k;K++)this._dataSourceAdded(_,_.get(K));this._dataSourceAdded(void 0,b.defaultDataSource),T.add(_.dataSourceAdded,_r.prototype._dataSourceAdded,this),T.add(_.dataSourceRemoved,_r.prototype._dataSourceRemoved,this);function W(K){let Y=oRe(i,K);u(Y)?X.getValueOrUndefined(Y.position,i.clock.currentTime)?i.trackedEntity=Y:i.zoomTo(Y):u(i.trackedEntity)&&(i.trackedEntity=void 0)}function j(K){i.selectedEntity=oRe(i,K)}p.screenSpaceEventHandler.setInputAction(j,Zn.LEFT_CLICK),p.screenSpaceEventHandler.setInputAction(W,Zn.LEFT_DOUBLE_CLICK)}Object.defineProperties(_r.prototype,{container:{get:function(){return this._container}},creditDisplay:{get:function(){return this._cesiumWidget.creditDisplay}},bottomContainer:{get:function(){return this._bottomContainer}},cesiumWidget:{get:function(){return this._cesiumWidget}},selectionIndicator:{get:function(){return this._selectionIndicator}},infoBox:{get:function(){return this._infoBox}},geocoder:{get:function(){return this._geocoder}},homeButton:{get:function(){return this._homeButton}},sceneModePicker:{get:function(){return this._sceneModePicker}},projectionPicker:{get:function(){return this._projectionPicker}},baseLayerPicker:{get:function(){return this._baseLayerPicker}},navigationHelpButton:{get:function(){return this._navigationHelpButton}},animation:{get:function(){return this._animation}},timeline:{get:function(){return this._timeline}},fullscreenButton:{get:function(){return this._fullscreenButton}},vrButton:{get:function(){return this._vrButton}},dataSourceDisplay:{get:function(){return this._dataSourceDisplay}},entities:{get:function(){return this._dataSourceDisplay.defaultDataSource.entities}},dataSources:{get:function(){return this._dataSourceCollection}},canvas:{get:function(){return this._cesiumWidget.canvas}},scene:{get:function(){return this._cesiumWidget.scene}},shadows:{get:function(){return this.scene.shadowMap.enabled},set:function(e){this.scene.shadowMap.enabled=e}},terrainShadows:{get:function(){return this.scene.globe.shadows},set:function(e){this.scene.globe.shadows=e}},shadowMap:{get:function(){return this.scene.shadowMap}},imageryLayers:{get:function(){return this.scene.imageryLayers}},terrainProvider:{get:function(){return this.scene.terrainProvider},set:function(e){this.scene.terrainProvider=e}},camera:{get:function(){return this.scene.camera}},ellipsoid:{get:function(){return this._scene.ellipsoid}},postProcessStages:{get:function(){return this.scene.postProcessStages}},clock:{get:function(){return this._clockViewModel.clock}},clockViewModel:{get:function(){return this._clockViewModel}},screenSpaceEventHandler:{get:function(){return this._cesiumWidget.screenSpaceEventHandler}},targetFrameRate:{get:function(){return this._cesiumWidget.targetFrameRate},set:function(e){this._cesiumWidget.targetFrameRate=e}},useDefaultRenderLoop:{get:function(){return this._cesiumWidget.useDefaultRenderLoop},set:function(e){this._cesiumWidget.useDefaultRenderLoop=e}},resolutionScale:{get:function(){return this._cesiumWidget.resolutionScale},set:function(e){this._cesiumWidget.resolutionScale=e}},useBrowserRecommendedResolution:{get:function(){return this._cesiumWidget.useBrowserRecommendedResolution},set:function(e){this._cesiumWidget.useBrowserRecommendedResolution=e}},allowDataSourcesToSuspendAnimation:{get:function(){return this._allowDataSourcesToSuspendAnimation},set:function(e){this._allowDataSourcesToSuspendAnimation=e}},trackedEntity:{get:function(){return this._trackedEntity},set:function(e){if(this._trackedEntity!==e){this._trackedEntity=e,eie(this);let t=this.scene,n=t.mode;!u(e)||!u(e.position)?(this._needTrackedEntityUpdate=!1,(n===oe.COLUMBUS_VIEW||n===oe.SCENE2D)&&(t.screenSpaceCameraController.enableTranslate=!0),(n===oe.COLUMBUS_VIEW||n===oe.SCENE3D)&&(t.screenSpaceCameraController.enableTilt=!0),this._entityView=void 0,this.camera.lookAtTransform(M.IDENTITY)):this._needTrackedEntityUpdate=!0,this._trackedEntityChanged.raiseEvent(e),this.scene.requestRender()}}},selectedEntity:{get:function(){return this._selectedEntity},set:function(e){if(this._selectedEntity!==e){this._selectedEntity=e;let t=u(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;u(e)?u(t)&&t.animateAppear():u(t)&&t.animateDepart(),this._selectedEntityChanged.raiseEvent(e)}}},selectedEntityChanged:{get:function(){return this._selectedEntityChanged}},trackedEntityChanged:{get:function(){return this._trackedEntityChanged}},clockTrackedDataSource:{get:function(){return this._clockTrackedDataSource},set:function(e){this._clockTrackedDataSource!==e&&(this._clockTrackedDataSource=e,cRe(this._timeline,this.clock,e))}}});_r.prototype.getCurrentTilesLevels=function(){this.scene._globe.depthTestAgainstTerrain=!0;let e=this.scene._globe._surface._tilesToRender,t=this.camera.positionWC,n=this.camera.directionWC,i=new Ray(t,n),r=this.scene.pickFromRay(i,[]);if(r===void 0||r.position===void 0)return;let o=r.position,s=h.distance(o,t),a={};a.centerTileLevel=0,a.maxTileLevel=0,a.minTileLevel=Number.POSITIVE_INFINITY;let c=Number.POSITIVE_INFINITY;for(let l=0,f=e.length;l<f;l++){e[l].level>a.maxTileLevel&&(a.maxTileLevel=e[l].level),e[l].level<a.minTileLevel&&(a.minTileLevel=e[l].level);let d=Math.abs(e[l]._distance-s)<c;d<c&&(c=d,a.centerTileLevel=e[l].level)}return a};_r.prototype.extend=function(e,t){e(this,t)};_r.prototype.resize=function(){let e=this._cesiumWidget,t=this._container,n=t.clientWidth,i=t.clientHeight,r=u(this._animation),o=u(this._timeline);if(e.resize(),n===this._lastWidth&&i===this._lastHeight)return;let s=i-125,a=this._baseLayerPickerDropDown;if(u(a)&&(a.style.maxHeight=`${s}px`),u(this._geocoder)){let m=this._geocoder.searchSuggestionsContainer;m.style.maxHeight=`${s}px`}u(this._infoBox)&&(this._infoBox.viewModel.maxHeight=s);let c=this._timeline,l,f=0,d=5,p=3,_=0;if(r&&window.getComputedStyle(this._animation.container).visibility!=="hidden"){let m=this._lastWidth;l=this._animation.container,n>900?(f=169,m<=900&&(l.style.width="169px",l.style.height="112px",this._animation.resize())):n>=600?(f=136,(m<600||m>900)&&(l.style.width="136px",l.style.height="90px",this._animation.resize())):(f=106,(m>600||m===0)&&(l.style.width="106px",l.style.height="70px",this._animation.resize())),d=f+5}if(o&&window.getComputedStyle(this._timeline.container).visibility!=="hidden"){let m=this._fullscreenButton,x=this._vrButton,b=c.container,T=b.style;p=b.clientHeight+3,T.left=`${f}px`;let C=0;u(m)&&(C+=m.container.clientWidth),u(x)&&(C+=x.container.clientWidth),T.right=`${C}px`,c.resize()}!o&&u(this._fullscreenButton)&&(_=this._fullscreenButton.container.clientWidth),this._bottomContainer.style.left=`${d}px`,this._bottomContainer.style.bottom=`${p}px`,this._bottomContainer.style.right=`${_}px`,this._lastWidth=n,this._lastHeight=i};_r.prototype.forceResize=function(){this._lastWidth=0,this.resize()};_r.prototype.render=function(){this._cesiumWidget.render()};_r.prototype.isDestroyed=function(){return!1};_r.prototype.destroy=function(){let e;u(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(Zn.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(Zn.LEFT_DOUBLE_CLICK));let t=this.dataSources,n=t.length;for(e=0;e<n;e++)this._dataSourceRemoved(t,t.get(e));return this._dataSourceRemoved(void 0,this._dataSourceDisplay.defaultDataSource),this._container.removeChild(this._element),this._element.removeChild(this._toolbar),this._eventHelper.removeAll(),u(this._geocoder)&&(this._geocoder=this._geocoder.destroy()),u(this._homeButton)&&(this._homeButton=this._homeButton.destroy()),u(this._sceneModePicker)&&(this._sceneModePicker=this._sceneModePicker.destroy()),u(this._projectionPicker)&&(this._projectionPicker=this._projectionPicker.destroy()),u(this._baseLayerPicker)&&(this._baseLayerPicker=this._baseLayerPicker.destroy()),u(this._animation)&&(this._element.removeChild(this._animation.container),this._animation=this._animation.destroy()),u(this._timeline)&&(this._timeline.removeEventListener("settime",aRe,!1),this._element.removeChild(this._timeline.container),this._timeline=this._timeline.destroy()),u(this._fullscreenButton)&&(this._fullscreenSubscription.dispose(),this._element.removeChild(this._fullscreenButton.container),this._fullscreenButton=this._fullscreenButton.destroy()),u(this._vrButton)&&(this._vrSubscription.dispose(),this._vrModeSubscription.dispose(),this._element.removeChild(this._vrButton.container),this._vrButton=this._vrButton.destroy()),u(this._infoBox)&&(this._element.removeChild(this._infoBox.container),this._infoBox=this._infoBox.destroy()),u(this._selectionIndicator)&&(this._element.removeChild(this._selectionIndicator.container),this._selectionIndicator=this._selectionIndicator.destroy()),this._destroyClockViewModel&&(this._clockViewModel=this._clockViewModel.destroy()),this._dataSourceDisplay=this._dataSourceDisplay.destroy(),this._cesiumWidget=this._cesiumWidget.destroy(),this._destroyDataSourceCollection&&(this._dataSourceCollection=this._dataSourceCollection.destroy()),he(this)};_r.prototype._dataSourceAdded=function(e,t){t.entities.collectionChanged.addEventListener(_r.prototype._onEntityCollectionChanged,this)};_r.prototype._dataSourceRemoved=function(e,t){let n=t.entities;n.collectionChanged.removeEventListener(_r.prototype._onEntityCollectionChanged,this),u(this.trackedEntity)&&n.getById(this.trackedEntity.id)===this.trackedEntity&&(this.trackedEntity=void 0),u(this.selectedEntity)&&n.getById(this.selectedEntity.id)===this.selectedEntity&&(this.selectedEntity=void 0)};_r.prototype._onTick=function(e){let t=e.currentTime,n=this._dataSourceDisplay.update(t);this._allowDataSourcesToSuspendAnimation&&(this._clockViewModel.canAnimate=n);let i=this._entityView;if(u(i)){let f=this._trackedEntity;this._dataSourceDisplay.getBoundingSphere(f,!0,Pb)===Mt.DONE&&i.update(t,Pb)}let r,o=!1,s=this.selectedEntity,a=u(s)&&this._enableInfoOrSelection;a&&s.isShowing&&s.isAvailable(t)&&(this._dataSourceDisplay.getBoundingSphere(s,!0,Pb)!==Mt.FAILED?r=Pb.center:u(s.position)&&(r=s.position.getValue(t,r)),o=u(r));let c=u(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;u(c)&&(c.position=h.clone(r,c.position),c.showSelection=a&&o,c.update());let l=u(this._infoBox)?this._infoBox.viewModel:void 0;u(l)&&(l.showInfo=a,l.enableCamera=o,l.isCameraTracking=this.trackedEntity===this.selectedEntity,a?(l.titleText=y(s.name,s.id),l.description=X.getValueOrDefault(s.description,t,"")):(l.titleText="",l.description=""))};_r.prototype._onEntityCollectionChanged=function(e,t,n){let i=n.length;for(let r=0;r<i;r++){let o=n[r];this.trackedEntity===o&&(this.trackedEntity=void 0),this.selectedEntity===o&&(this.selectedEntity=void 0)}};_r.prototype._onInfoBoxCameraClicked=function(e){if(e.isCameraTracking&&this.trackedEntity===this.selectedEntity)this.trackedEntity=void 0;else{let n=this.selectedEntity.position;u(n)?this.trackedEntity=this.selectedEntity:this.zoomTo(this.selectedEntity)}};_r.prototype._clearTrackedObject=function(){this.trackedEntity=void 0};_r.prototype._onInfoBoxClockClicked=function(e){this.selectedEntity=void 0};_r.prototype._clearObjects=function(){this.trackedEntity=void 0,this.selectedEntity=void 0};_r.prototype._onDataSourceChanged=function(e){this.clockTrackedDataSource===e&&cRe(this.timeline,this.clock,e)};_r.prototype._onDataSourceAdded=function(e,t){this._automaticallyTrackDataSourceClocks&&(this.clockTrackedDataSource=t);let n=t.entities.id,i=this._eventHelper.add(t.changedEvent,_r.prototype._onDataSourceChanged,this);this._dataSourceChangedListeners[n]=i};_r.prototype._onDataSourceRemoved=function(e,t){let n=this.clockTrackedDataSource===t,i=t.entities.id;if(this._dataSourceChangedListeners[i](),this._dataSourceChangedListeners[i]=void 0,n){let r=e.length;this._automaticallyTrackDataSourceClocks&&r>0?this.clockTrackedDataSource=e.get(r-1):this.clockTrackedDataSource=void 0}};_r.prototype.zoomTo=function(e,t){return lRe(this,e,{offset:t},!1)};_r.prototype.flyTo=function(e,t){return lRe(this,e,t,!0)};function lRe(e,t,n,i){eie(e);let r=new Promise(o=>{e._completeZoom=function(s){o(s)}});return e._zoomPromise=r,e._zoomIsFlight=i,e._zoomOptions=n,Promise.resolve(t).then(function(o){if(e._zoomPromise===r){if(o instanceof Zs){let s;u(o.imageryProvider)?s=Promise.resolve(o.getImageryRectangle()):s=new Promise(a=>{let c=o.readyEvent.addEventListener(()=>{c(),a(o.getImageryRectangle())})}),s.then(function(a){return jw(a,e.scene)}).then(function(a){e._zoomPromise===r&&(e._zoomTarget=a)});return}if(o instanceof oa||o instanceof HR||o instanceof bA||o instanceof Kl){e._zoomTarget=o;return}if(o.isLoading&&u(o.loadingEvent)){let s=o.loadingEvent.addEventListener(function(){s(),e._zoomPromise===r&&(e._zoomTarget=o.entities.values.slice(0))});return}if(Array.isArray(o)){e._zoomTarget=o.slice(0);return}o=y(o.values,o),u(o.entities)&&(o=o.entities.values),Array.isArray(o)?e._zoomTarget=o.slice(0):e._zoomTarget=[o]}}),e.scene.requestRender(),r}function rO(e){e._zoomPromise=void 0,e._zoomTarget=void 0,e._zoomOptions=void 0}function eie(e){let t=e._zoomPromise;u(t)&&(rO(e),e._completeZoom(!1))}_r.prototype._postRender=function(){a4t(this),c4t(this)};function a4t(e){let t=e._zoomTarget;if(!u(t)||e.scene.mode===oe.MORPHING)return;let n=e.scene,i=n.camera,r=y(e._zoomOptions,{}),o;function s(f){u(r.offset)||(r.offset=new ru(0,-.5,f.radius)),o={offset:r.offset,duration:r.duration,maximumHeight:r.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)}},e._zoomIsFlight?i.flyToBoundingSphere(t.boundingSphere,o):(i.viewBoundingSphere(f,r.offset),i.lookAtTransform(M.IDENTITY),e._completeZoom(!0)),rO(e)}if(t instanceof HR){if(u(t.boundingSphere)){s(t.boundingSphere);return}let f=t.frameChanged.addEventListener(function(d){s(d.boundingSphere),f()});return}if(t instanceof oa||t instanceof bA||t instanceof Kl){s(t.boundingSphere);return}if(t instanceof ue){o={destination:n.ellipsoid.cartographicToCartesian(t),duration:r.duration,maximumHeight:r.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)}},e._zoomIsFlight?i.flyTo(o):(i.setView(o),e._completeZoom(!0)),rO(e);return}let a=t,c=[];for(let f=0,d=a.length;f<d;f++){let p=e._dataSourceDisplay.getBoundingSphere(a[f],!1,Pb);if(p===Mt.PENDING)return;p!==Mt.FAILED&&c.push(ce.clone(Pb))}if(c.length===0){eie(e);return}e.trackedEntity=void 0;let l=ce.fromBoundingSpheres(c);e._zoomIsFlight?(rO(e),i.flyToBoundingSphere(l,{duration:r.duration,maximumHeight:r.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)},offset:r.offset})):(i.viewBoundingSphere(l,r.offset),i.lookAtTransform(M.IDENTITY),rO(e),e._completeZoom(!0))}function c4t(e){if(!e._needTrackedEntityUpdate)return;let t=e._trackedEntity,n=e.clock.currentTime,i=X.getValueOrUndefined(t.position,n);if(!u(i))return;let r=e.scene,o=e._dataSourceDisplay.getBoundingSphere(t,!1,Pb);if(o===Mt.PENDING)return;let s=r.mode;(s===oe.COLUMBUS_VIEW||s===oe.SCENE2D)&&(r.screenSpaceCameraController.enableTranslate=!1),(s===oe.COLUMBUS_VIEW||s===oe.SCENE3D)&&(r.screenSpaceCameraController.enableTilt=!1);let a=o!==Mt.FAILED?Pb:void 0;e._entityView=new pz(t,r,r.ellipsoid),e._entityView.update(n,a),e._needTrackedEntityUpdate=!1}var uRe=_r;function l4t(e){let t=document.createElement("div");t.className="cesium-viewer-cesium3DTilesInspectorContainer",e.container.appendChild(t);let n=new aW(t,e.scene);Object.defineProperties(e,{cesium3DTilesInspector:{get:function(){return n}}})}var fRe=l4t;function u4t(e){let t=document.createElement("div");t.className="cesium-viewer-cesiumInspectorContainer",e.container.appendChild(t);let n=new uW(t,e.scene);Object.defineProperties(e,{cesiumInspector:{get:function(){return n}}})}var dRe=u4t;function f4t(e,t){t=y(t,y.EMPTY_OBJECT);let n=!0,i=y(t.flyToOnDrop,!0),r=new be,o=y(t.clearOnDrop,!0),s=y(t.dropTarget,e.container),a=y(t.clampToGround,!0),c=t.proxy;s=li(s),Object.defineProperties(e,{dropTarget:{get:function(){return s},set:function(f){hRe(s,l),s=f,tie(s,l)}},dropEnabled:{get:function(){return n},set:function(f){f!==n&&(f?tie(s,l):hRe(s,l),n=f)}},dropError:{get:function(){return r}},clearOnDrop:{get:function(){return o},set:function(f){o=f}},flyToOnDrop:{get:function(){return i},set:function(f){i=f}},proxy:{get:function(){return c},set:function(f){c=f}},clampToGround:{get:function(){return a},set:function(f){a=f}}});function l(f){RA(f),o&&(e.entities.removeAll(),e.dataSources.removeAll());let d=f.dataTransfer.files,p=d.length;for(let _=0;_<p;_++){let m=d[_],x=new FileReader;x.onload=d4t(e,m,c,a),x.onerror=h4t(e,m),x.readAsText(m)}}tie(s,l),e.destroy=w6(e,e.destroy,function(){e.dropEnabled=!1}),e._handleDrop=l}function RA(e){e.stopPropagation(),e.preventDefault()}function hRe(e,t){let n=e;u(n)&&(n.removeEventListener("drop",t,!1),n.removeEventListener("dragenter",RA,!1),n.removeEventListener("dragover",RA,!1),n.removeEventListener("dragexit",RA,!1))}function tie(e,t){e.addEventListener("drop",t,!1),e.addEventListener("dragenter",RA,!1),e.addEventListener("dragover",RA,!1),e.addEventListener("dragexit",RA,!1)}function d4t(e,t,n,i){let r=e.scene;return function(o){let s=t.name;try{let a;if(/\.czml$/i.test(s))a=w8.load(JSON.parse(o.target.result),{sourceUri:s});else if(/\.geojson$/i.test(s)||/\.json$/i.test(s)||/\.topojson$/i.test(s))a=_5.load(JSON.parse(o.target.result),{sourceUri:s,clampToGround:i});else if(/\.(kml|kmz)$/i.test(s))a=G5.load(t,{sourceUri:s,proxy:n,camera:r.camera,canvas:r.canvas,clampToGround:i,screenOverlayContainer:e.container});else if(/\.gpx$/i.test(s))a=P5.load(t,{sourceUri:s,proxy:n});else{e.dropError.raiseEvent(e,s,`Unrecognized file: ${s}`);return}u(a)&&e.dataSources.add(a).then(function(c){e.flyToOnDrop&&e.flyTo(c)}).catch(function(c){e.dropError.raiseEvent(e,s,c)})}catch(a){e.dropError.raiseEvent(e,s,a)}}}function h4t(e,t){return function(n){e.dropError.raiseEvent(e,t.name,n.target.error)}}var mRe=f4t;function m4t(e,t){t=y(t,y.EMPTY_OBJECT);let n=new RW({scene:e.scene,container:e.bottomContainer,lowFrameRateMessage:t.lowFrameRateMessage});Object.defineProperties(e,{performanceWatchdog:{get:function(){return n}}})}var pRe=m4t;function _Re(e){let t=e.split(`
|
|
19086
|
+
</div>`,n.appendChild(i);let r=new CW(t);Se.track(r),Se.applyBindings(r,n),u(r.defaultLayer)&&(r.currentLayer=r.defaultLayer)}var Z2e=OBt;var MBt="M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4853444 22.104033 11.423165 24.0625 13.84375 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 8.975298 28.305952 7.03125 25.875 7.03125 L 13.84375 7.03125 z",LBt="M 27.34375 1.65625 L 5.28125 27.9375 L 8.09375 30.3125 L 30.15625 4.03125 L 27.34375 1.65625 z M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4724893 20.232036 9.5676108 20.7379 9.75 21.21875 L 21.65625 7.03125 L 13.84375 7.03125 z M 28.21875 7.71875 L 14.53125 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 9.8371439 29.456025 8.4902779 28.21875 7.71875 z";function Yne(){this._cameraClicked=new be,this._closeClicked=new be,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",Se.track(this,["showInfo","titleText","description","maxHeight","enableCamera","isCameraTracking"]),this._loadingIndicatorHtml='<div class="cesium-infoBox-loadingContainer"><span class="cesium-infoBox-loading"></span></div>',this.cameraIconPath=void 0,Se.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?LBt:MBt}}),Se.defineProperty(this,"_bodyless",{get:function(){return!u(this.description)||this.description.length===0}})}Yne.prototype.maxHeightOffset=function(e){return`${this.maxHeight-e}px`};Object.defineProperties(Yne.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var AW=Yne;function EW(e){e=li(e);let t=document.createElement("div");t.className="cesium-infoBox",t.setAttribute("data-bind",'css: { "cesium-infoBox-visible" : showInfo, "cesium-infoBox-bodyless" : _bodyless }'),e.appendChild(t);let n=document.createElement("div");n.className="cesium-infoBox-title",n.setAttribute("data-bind","text: titleText"),t.appendChild(n);let i=document.createElement("button");i.type="button",i.className="cesium-button cesium-infoBox-camera",i.setAttribute("data-bind",'attr: { title: "Focus camera on object" },click: function () { cameraClicked.raiseEvent(this); },enable: enableCamera,cesiumSvgPath: { path: cameraIconPath, width: 32, height: 32 }'),t.appendChild(i);let r=document.createElement("button");r.type="button",r.className="cesium-infoBox-close",r.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),r.innerHTML="×",t.appendChild(r);let o=document.createElement("iframe");o.className="cesium-infoBox-iframe",o.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),o.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),o.setAttribute("allowfullscreen",!0),t.appendChild(o);let s=new AW;Se.applyBindings(s,t),this._container=e,this._element=t,this._frame=o,this._viewModel=s,this._descriptionSubscription=void 0;let a=this;o.addEventListener("load",function(){let c=o.contentDocument,l=c.createElement("link");l.href=Cn("Widgets/InfoBox/InfoBoxDescription.css"),l.rel="stylesheet",l.type="text/css";let f=c.createElement("div");f.className="cesium-infoBox-description",c.head.appendChild(l),c.body.appendChild(f),a._descriptionSubscription=Bc(s,"description",function(d){o.style.height="5px",f.innerHTML=d;let p=null,_=f.firstElementChild;if(_!==null&&f.childNodes.length===1){let x=window.getComputedStyle(_);if(x!==null){let b=x["background-color"],T=z.fromCssColorString(b);u(T)&&T.alpha!==0&&(p=x["background-color"])}}t.style["background-color"]=p;let m=f.getBoundingClientRect().height;o.style.height=`${m}px`})}),o.setAttribute("src","about:blank")}Object.defineProperties(EW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}});EW.prototype.isDestroyed=function(){return!1};EW.prototype.destroy=function(){let e=this._container;return Se.cleanNode(this._element),e.removeChild(this._element),u(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),he(this)};var SW=EW;function $2e(){this.showInstructions=!1;let e=this;this._command=ni(function(){e.showInstructions=!e.showInstructions}),this._showClick=ni(function(){e._touch=!1}),this._showTouch=ni(function(){e._touch=!0}),this._touch=!1,this.tooltip="Navigation Instructions",Se.track(this,["tooltip","showInstructions","_touch"])}Object.defineProperties($2e.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var vW=$2e;function wW(e){let t=li(e.container),n=new vW,i=y(e.instructionsInitiallyVisible,!1);n.showInstructions=i,n._svgPath="M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466z M17.328,24.371h-2.707v-2.596h2.707V24.371zM17.328,19.003v0.858h-2.707v-1.057c0-3.19,3.63-3.696,3.63-5.963c0-1.034-0.924-1.826-2.134-1.826c-1.254,0-2.354,0.924-2.354,0.924l-1.541-1.915c0,0,1.519-1.584,4.137-1.584c2.487,0,4.796,1.54,4.796,4.136C21.156,16.208,17.328,16.627,17.328,19.003z";let r=document.createElement("span");r.className="cesium-navigationHelpButton-wrapper",t.appendChild(r);let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",o.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),r.appendChild(o);let s=document.createElement("div");s.className="cesium-navigation-help",s.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),r.appendChild(s);let a=document.createElement("button");a.type="button",a.className="cesium-navigation-button cesium-navigation-button-left",a.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let c=document.createElement("img");c.src=Cn("Widgets/Images/NavigationHelp/Mouse.svg"),c.className="cesium-navigation-button-icon",c.style.width="25px",c.style.height="25px",a.appendChild(c),a.appendChild(document.createTextNode("Mouse"));let l=document.createElement("button");l.type="button",l.className="cesium-navigation-button cesium-navigation-button-right",l.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let f=document.createElement("img");f.src=Cn("Widgets/Images/NavigationHelp/Touch.svg"),f.className="cesium-navigation-button-icon",f.style.width="25px",f.style.height="25px",l.appendChild(f),l.appendChild(document.createTextNode("Touch")),s.appendChild(a),s.appendChild(l);let d=document.createElement("div");d.className="cesium-click-navigation-help cesium-navigation-help-instructions",d.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),d.innerHTML=` <table> <tr> <td><img src="${Cn("Widgets/Images/NavigationHelp/MouseLeft.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-pan">Pan view</div> <div class="cesium-navigation-help-details">Left click + drag</div> </td> </tr> <tr> <td><img src="${Cn("Widgets/Images/NavigationHelp/MouseRight.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-zoom">Zoom view</div> <div class="cesium-navigation-help-details">Right click + drag, or</div> <div class="cesium-navigation-help-details">Mouse wheel scroll</div> </td> </tr> <tr> <td><img src="${Cn("Widgets/Images/NavigationHelp/MouseMiddle.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-rotate">Rotate view</div> <div class="cesium-navigation-help-details">Middle click + drag, or</div> <div class="cesium-navigation-help-details">CTRL + Left/Right click + drag</div> </td> </tr> </table>`,s.appendChild(d);let p=document.createElement("div");p.className="cesium-touch-navigation-help cesium-navigation-help-instructions",p.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),p.innerHTML=` <table> <tr> <td><img src="${Cn("Widgets/Images/NavigationHelp/TouchDrag.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-pan">Pan view</div> <div class="cesium-navigation-help-details">One finger drag</div> </td> </tr> <tr> <td><img src="${Cn("Widgets/Images/NavigationHelp/TouchZoom.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-zoom">Zoom view</div> <div class="cesium-navigation-help-details">Two finger pinch</div> </td> </tr> <tr> <td><img src="${Cn("Widgets/Images/NavigationHelp/TouchTilt.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-rotate">Tilt view</div> <div class="cesium-navigation-help-details">Two finger drag, same direction</div> </td> </tr> <tr> <td><img src="${Cn("Widgets/Images/NavigationHelp/TouchRotate.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-tilt">Rotate view</div> <div class="cesium-navigation-help-details">Two finger drag, opposite direction</div> </td> </tr> </table>`,s.appendChild(p),Se.applyBindings(n,r),this._container=t,this._viewModel=n,this._wrapper=r,this._closeInstructions=function(_){r.contains(_.target)||(n.showInstructions=!1)},mn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(wW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});wW.prototype.isDestroyed=function(){return!1};wW.prototype.destroy=function(){return mn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),Se.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),he(this)};var DW=wW;function Xne(e){this._scene=e.scene,this.lowFrameRateMessage=y(e.lowFrameRateMessage,"This application appears to be performing poorly on your system. Please try using a different web browser or updating your video drivers."),this.lowFrameRateMessageDismissed=!1,this.showingLowFrameRateMessage=!1,Se.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let t=this;this._dismissMessage=ni(function(){t.showingLowFrameRateMessage=!1,t.lowFrameRateMessageDismissed=!0});let n=tG.fromScene(e.scene);this._unsubscribeLowFrameRate=n.lowFrameRate.addEventListener(function(){t.lowFrameRateMessageDismissed||(t.showingLowFrameRateMessage=!0)}),this._unsubscribeNominalFrameRate=n.nominalFrameRate.addEventListener(function(){t.showingLowFrameRateMessage=!1})}Object.defineProperties(Xne.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}});Xne.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),he(this)};var PW=Xne;function IW(e){let t=li(e.container),n=new PW(e),i=document.createElement("div");i.className="cesium-performance-watchdog-message-area",i.setAttribute("data-bind","visible: showingLowFrameRateMessage");let r=document.createElement("button");r.setAttribute("type","button"),r.className="cesium-performance-watchdog-message-dismiss",r.innerHTML="×",r.setAttribute("data-bind","click: dismissMessage"),i.appendChild(r);let o=document.createElement("div");o.className="cesium-performance-watchdog-message",o.setAttribute("data-bind","html: lowFrameRateMessage"),i.appendChild(o),t.appendChild(i),Se.applyBindings(n,i),this._container=t,this._viewModel=n,this._element=i}Object.defineProperties(IW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});IW.prototype.isDestroyed=function(){return!1};IW.prototype.destroy=function(){return this._viewModel.destroy(),Se.cleanNode(this._element),this._container.removeChild(this._element),he(this)};var RW=IW;function OW(e){this._scene=e,this._orthographic=e.camera.frustum instanceof Dn,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=e.mode,Se.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let t=this;Se.defineProperty(this,"selectedTooltip",function(){return t._orthographic?t.tooltipOrthographic:t.tooltipPerspective}),this._toggleDropDown=ni(function(){t.sceneMode===oe.SCENE2D||t._flightInProgress||(t.dropDownVisible=!t.dropDownVisible)}),this._eventHelper=new Gs,this._eventHelper.add(e.morphComplete,function(n,i,r,o){t.sceneMode=r,t._orthographic=r===oe.SCENE2D||t._scene.camera.frustum instanceof Dn}),this._eventHelper.add(e.preRender,function(){t._flightInProgress=u(e.camera._currentFlight)}),this._switchToPerspective=ni(function(){t.sceneMode!==oe.SCENE2D&&(t._scene.camera.switchToPerspectiveFrustum(),t._orthographic=!1,t.dropDownVisible=!1)}),this._switchToOrthographic=ni(function(){t.sceneMode!==oe.SCENE2D&&(t._scene.camera.switchToOrthographicFrustum(),t._orthographic=!0,t.dropDownVisible=!1)}),this._sceneMode=oe}Object.defineProperties(OW.prototype,{scene:{get:function(){return this._scene}},toggleDropDown:{get:function(){return this._toggleDropDown}},switchToPerspective:{get:function(){return this._switchToPerspective}},switchToOrthographic:{get:function(){return this._switchToOrthographic}},isOrthographicProjection:{get:function(){return this._orthographic}}});OW.prototype.isDestroyed=function(){return!1};OW.prototype.destroy=function(){this._eventHelper.removeAll(),he(this)};var MW=OW;var NBt="M 28.15625,10.4375 9.125,13.21875 13.75,43.25 41.75,55.09375 50.8125,37 54.5,11.9375 z m 0.125,3 19.976451,0.394265 L 43.03125,16.875 22.6875,14.28125 z M 50.971746,15.705477 47.90625,36.03125 42.53125,46 44.84375,19.3125 z M 12.625,16.03125 l 29.15625,3.6875 -2.65625,31 L 16.4375,41.125 z",FBt="m 31.560594,6.5254438 -20.75,12.4687502 0.1875,24.5625 22.28125,11.8125 19.5,-12 0.65625,-0.375 0,-0.75 0.0312,-23.21875 z m 0.0625,3.125 16.65625,9.5000002 -16.125,10.28125 -17.34375,-9.71875 z m 18.96875,11.1875002 0.15625,20.65625 -17.46875,10.59375 0.15625,-20.28125 z m -37.0625,1.25 17.21875,9.625 -0.15625,19.21875 -16.9375,-9 z";function LW(e,t){e=li(e);let n=new MW(t);n._perspectivePath=NBt,n._orthographicPath=FBt;let i=document.createElement("span");i.className="cesium-projectionPicker-wrapper cesium-toolbar-button",e.appendChild(i);let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button",r.setAttribute("data-bind",'css: { "cesium-projectionPicker-buttonPerspective": !_orthographic, "cesium-projectionPicker-buttonOrthographic": _orthographic, "cesium-button-disabled" : sceneMode === _sceneMode.SCENE2D || _flightInProgress, "cesium-projectionPicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),r.innerHTML='<!-- ko cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64, css: "cesium-projectionPicker-iconPerspective" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64, css: "cesium-projectionPicker-iconOrthographic" } --><!-- /ko -->',i.appendChild(r);let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",o.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && _orthographic), "cesium-projectionPicker-none" : !_orthographic, "cesium-projectionPicker-hidden" : !dropDownVisible },attr: { title: tooltipPerspective },click: switchToPerspective,cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64 }'),i.appendChild(o);let s=document.createElement("button");s.type="button",s.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",s.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && !_orthographic), "cesium-projectionPicker-none" : _orthographic, "cesium-projectionPicker-hidden" : !dropDownVisible},attr: { title: tooltipOrthographic },click: switchToOrthographic,cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64 }'),i.appendChild(s),Se.applyBindings(n,i),this._viewModel=n,this._container=e,this._wrapper=i,this._closeDropDown=function(a){i.contains(a.target)||(n.dropDownVisible=!1)},mn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(LW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});LW.prototype.isDestroyed=function(){return!1};LW.prototype.destroy=function(){return this._viewModel.destroy(),mn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Se.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),he(this)};var NW=LW;function FW(e,t){this._scene=e;let n=this,i=function(r,o,s,a){n.sceneMode=s,n.dropDownVisible=!1};this._eventHelper=new Gs,this._eventHelper.add(e.morphStart,i),this._duration=y(t,2),this.sceneMode=e.mode,this.dropDownVisible=!1,this.tooltip2D="2D",this.tooltip3D="3D",this.tooltipColumbusView="Columbus View",Se.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,Se.defineProperty(this,"selectedTooltip",function(){let r=n.sceneMode;return r===oe.SCENE2D?n.tooltip2D:r===oe.SCENE3D?n.tooltip3D:n.tooltipColumbusView}),this._toggleDropDown=ni(function(){n.dropDownVisible=!n.dropDownVisible}),this._morphTo2D=ni(function(){e.morphTo2D(n._duration)}),this._morphTo3D=ni(function(){e.morphTo3D(n._duration)}),this._morphToColumbusView=ni(function(){e.morphToColumbusView(n._duration)}),this._sceneMode=oe}Object.defineProperties(FW.prototype,{scene:{get:function(){return this._scene}},duration:{get:function(){return this._duration},set:function(e){this._duration=e}},toggleDropDown:{get:function(){return this._toggleDropDown}},morphTo2D:{get:function(){return this._morphTo2D}},morphTo3D:{get:function(){return this._morphTo3D}},morphToColumbusView:{get:function(){return this._morphToColumbusView}}});FW.prototype.isDestroyed=function(){return!1};FW.prototype.destroy=function(){this._eventHelper.removeAll(),he(this)};var BW=FW;var BBt="m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878 -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132 -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285 11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201 5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461 -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z",kBt="m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z",VBt="m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z";function kW(e,t,n){e=li(e);let i=new BW(t,n);i._globePath=BBt,i._flatMapPath=kBt,i._columbusViewPath=VBt;let r=document.createElement("span");r.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",e.appendChild(r);let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-toolbar-button",o.setAttribute("data-bind",'css: { "cesium-sceneModePicker-button2D": sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-button3D": sceneMode === _sceneMode.SCENE3D, "cesium-sceneModePicker-buttonColumbusView": sceneMode === _sceneMode.COLUMBUS_VIEW, "cesium-sceneModePicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),o.innerHTML='<!-- ko cesiumSvgPath: { path: _globePath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon3D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon2D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-iconColumbusView" } --><!-- /ko -->',r.appendChild(o);let s=document.createElement("button");s.type="button",s.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",s.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE3D)) || (!dropDownVisible && (sceneMode === _sceneMode.SCENE3D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE3D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip3D },click: morphTo3D,cesiumSvgPath: { path: _globePath, width: 64, height: 64 }'),r.appendChild(s);let a=document.createElement("button");a.type="button",a.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",a.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE2D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip2D },click: morphTo2D,cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64 }'),r.appendChild(a);let c=document.createElement("button");c.type="button",c.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",c.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.COLUMBUS_VIEW)) || (!dropDownVisible && (sceneMode === _sceneMode.COLUMBUS_VIEW)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.COLUMBUS_VIEW, "cesium-sceneModePicker-hidden" : !dropDownVisible},attr: { title: tooltipColumbusView },click: morphToColumbusView,cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64 }'),r.appendChild(c),Se.applyBindings(i,r),this._viewModel=i,this._container=e,this._wrapper=r,this._closeDropDown=function(l){r.contains(l.target)||(i.dropDownVisible=!1)},mn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(kW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});kW.prototype.isDestroyed=function(){return!1};kW.prototype.destroy=function(){return this._viewModel.destroy(),mn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Se.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),he(this)};var VW=kW;var UBt=new G,UW="-1000px";function iO(e,t,n){this._scene=e,this._screenPositionX=UW,this._screenPositionY=UW,this._tweens=e.tweens,this._container=y(n,document.body),this._selectionIndicatorElement=t,this._scale=1,this.position=void 0,this.showSelection=!1,Se.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,Se.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&u(this.position)}}),Se.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(i,r){return xr.worldToWindowCoordinates(e,i,r)}}iO.prototype.update=function(){if(this.showSelection&&u(this.position)){let e=this.computeScreenSpacePosition(this.position,UBt);if(!u(e))this._screenPositionX=UW,this._screenPositionY=UW;else{let t=this._container,n=t.parentNode.clientWidth,i=t.parentNode.clientHeight,r=this._selectionIndicatorElement.clientWidth,o=r*.5;e.x=Math.min(Math.max(e.x,-r),n+r)-o,e.y=Math.min(Math.max(e.y,-r),i+r)-o,this._screenPositionX=`${Math.floor(e.x+.25)}px`,this._screenPositionY=`${Math.floor(e.y+.25)}px`}}};iO.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:Xs.EXPONENTIAL_OUT})};iO.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:Xs.EXPONENTIAL_OUT})};Object.defineProperties(iO.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var zW=iO;function HW(e,t){e=li(e),this._container=e;let n=document.createElement("div");n.className="cesium-selection-wrapper",n.setAttribute("data-bind",'style: { "top" : _screenPositionY, "left" : _screenPositionX },css: { "cesium-selection-wrapper-visible" : isVisible }'),e.appendChild(n),this._element=n;let i="http://www.w3.org/2000/svg",r="M -34 -34 L -34 -11.25 L -30 -15.25 L -30 -30 L -15.25 -30 L -11.25 -34 L -34 -34 z M 11.25 -34 L 15.25 -30 L 30 -30 L 30 -15.25 L 34 -11.25 L 34 -34 L 11.25 -34 z M -34 11.25 L -34 34 L -11.25 34 L -15.25 30 L -30 30 L -30 15.25 L -34 11.25 z M 34 11.25 L 30 15.25 L 30 30 L 15.25 30 L 11.25 34 L 34 34 L 34 11.25 z",o=document.createElementNS(i,"svg:svg");o.setAttribute("width",160),o.setAttribute("height",160),o.setAttribute("viewBox","0 0 160 160");let s=document.createElementNS(i,"g");s.setAttribute("transform","translate(80,80)"),o.appendChild(s);let a=document.createElementNS(i,"path");a.setAttribute("data-bind","attr: { transform: _transform }"),a.setAttribute("d",r),s.appendChild(a),n.appendChild(o);let c=new zW(t,this._element,this._container);this._viewModel=c,Se.applyBindings(this._viewModel,this._element)}Object.defineProperties(HW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});HW.prototype.isDestroyed=function(){return!1};HW.prototype.destroy=function(){let e=this._container;return Se.cleanNode(this._element),e.removeChild(this._element),he(this)};var GW=HW;function IA(e,t,n){this._color=e,this._height=t,this._base=y(n,0)}IA.prototype.getHeight=function(){return this._height};IA.prototype.getBase=function(){return this._base};IA.prototype.getStartTime=function(){return this._start};IA.prototype.getStopTime=function(){return this._stop};IA.prototype.setRange=function(e,t){this._start=e,this._stop=t};IA.prototype.render=function(e){let t="";if(this._start&&this._stop&&this._color){let n=Q.secondsDifference(this._start,e.epochJulian),i=Math.round(e.timeBarWidth*e.getAlpha(n)),r=Q.secondsDifference(this._stop,e.epochJulian),o=Math.round(e.timeBarWidth*e.getAlpha(r))-i;i<0&&(o+=i,i=0),i+o>e.timeBarWidth&&(o=e.timeBarWidth-i),o>0&&(t=`<span class="cesium-timeline-highlight" style="left: ${i.toString()}px; width: ${o.toString()}px; bottom: ${this._base.toString()}px; height: ${this._height}px; background-color: ${this._color};"></span>`)}return t};var WW=IA;function Q2e(e,t,n,i){this.interval=e,this.height=t,this.color=n||new z(.5,.5,.5,1),this.backgroundColor=i||new z(0,0,0,0)}Q2e.prototype.render=function(e,t){let n=this.interval.start,i=this.interval.stop,r=t.startJulian,o=Q.addSeconds(t.startJulian,t.duration,new Q);if(Q.lessThan(n,r)&&Q.greaterThan(i,o))e.fillStyle=this.color.toCssColorString(),e.fillRect(0,t.y,t.timeBarWidth,this.height);else if(Q.lessThanOrEquals(n,o)&&Q.greaterThanOrEquals(i,r)){let s,a,c;for(s=0;s<t.timeBarWidth;++s){let l=Q.addSeconds(t.startJulian,s/t.timeBarWidth*t.duration,new Q);!u(a)&&Q.greaterThanOrEquals(l,n)?a=s:!u(c)&&Q.greaterThanOrEquals(l,i)&&(c=s)}e.fillStyle=this.backgroundColor.toCssColorString(),e.fillRect(0,t.y,t.timeBarWidth,this.height),u(a)&&(u(c)||(c=t.timeBarWidth),e.fillStyle=this.color.toCssColorString(),e.fillRect(a,t.y,Math.max(c-a,1),this.height))}};var jW=Q2e;var Kne=1e12,Th={none:0,scrub:1,slide:2,zoom:3,touchOnly:4},pu={none:0,scrub:1,slideZoom:2,singleTap:3,ignore:4},Db=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800,1296e3,2592e3,5184e3,7776e3,15552e3,31536e3,63072e3,126144e3,15768e4,31536e4,63072e4,126144e4,15768e5,31536e5,63072e5,126144e5,15768e6,31536e6],zBt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function _u(e,t){e=li(e);let n=e.ownerDocument;this.container=e;let i=n.createElement("div");i.className="cesium-timeline-main",e.appendChild(i),this._topDiv=i,this._endJulian=void 0,this._epochJulian=void 0,this._lastXPos=void 0,this._scrubElement=void 0,this._startJulian=void 0,this._timeBarSecondsSpan=void 0,this._clock=t,this._scrubJulian=t.currentTime,this._mainTicSpan=-1,this._mouseMode=Th.none,this._touchMode=pu.none,this._touchState={centerX:0,spanX:0},this._mouseX=0,this._timelineDrag=0,this._timelineDragLocation=void 0,this._lastHeight=void 0,this._lastWidth=void 0,this._topDiv.innerHTML='<div class="cesium-timeline-bar"></div><div class="cesium-timeline-trackContainer"><canvas class="cesium-timeline-tracks" width="10" height="1"></canvas></div><div class="cesium-timeline-needle"></div><span class="cesium-timeline-ruler"></span>',this._timeBarEle=this._topDiv.childNodes[0],this._trackContainer=this._topDiv.childNodes[1],this._trackListEle=this._topDiv.childNodes[1].childNodes[0],this._needleEle=this._topDiv.childNodes[2],this._rulerEle=this._topDiv.childNodes[3],this._context=this._trackListEle.getContext("2d"),this._trackList=[],this._highlightRanges=[],this.zoomTo(t.startTime,t.stopTime),this._onMouseDown=HBt(this),this._onMouseUp=GBt(this),this._onMouseMove=WBt(this),this._onMouseWheel=jBt(this),this._onTouchStart=qBt(this),this._onTouchMove=XBt(this),this._onTouchEnd=YBt(this);let r=this._timeBarEle;n.addEventListener("mouseup",this._onMouseUp,!1),n.addEventListener("mousemove",this._onMouseMove,!1),r.addEventListener("mousedown",this._onMouseDown,!1),r.addEventListener("DOMMouseScroll",this._onMouseWheel,!1),r.addEventListener("mousewheel",this._onMouseWheel,!1),r.addEventListener("touchstart",this._onTouchStart,!1),r.addEventListener("touchmove",this._onTouchMove,!1),r.addEventListener("touchend",this._onTouchEnd,!1),r.addEventListener("touchcancel",this._onTouchEnd,!1),this._topDiv.oncontextmenu=function(){return!1},t.onTick.addEventListener(this.updateFromClock,this),this.updateFromClock()}_u.prototype.addEventListener=function(e,t,n){this._topDiv.addEventListener(e,t,n)};_u.prototype.removeEventListener=function(e,t,n){this._topDiv.removeEventListener(e,t,n)};_u.prototype.isDestroyed=function(){return!1};_u.prototype.destroy=function(){this._clock.onTick.removeEventListener(this.updateFromClock,this);let e=this.container.ownerDocument;e.removeEventListener("mouseup",this._onMouseUp,!1),e.removeEventListener("mousemove",this._onMouseMove,!1);let t=this._timeBarEle;t.removeEventListener("mousedown",this._onMouseDown,!1),t.removeEventListener("DOMMouseScroll",this._onMouseWheel,!1),t.removeEventListener("mousewheel",this._onMouseWheel,!1),t.removeEventListener("touchstart",this._onTouchStart,!1),t.removeEventListener("touchmove",this._onTouchMove,!1),t.removeEventListener("touchend",this._onTouchEnd,!1),t.removeEventListener("touchcancel",this._onTouchEnd,!1),this.container.removeChild(this._topDiv),he(this)};_u.prototype.addHighlightRange=function(e,t,n){let i=new WW(e,t,n);return this._highlightRanges.push(i),this.resize(),i};_u.prototype.addTrack=function(e,t,n,i){let r=new jW(e,t,n,i);return this._trackList.push(r),this._lastHeight=void 0,this.resize(),r};_u.prototype.zoomTo=function(e,t){if(this._startJulian=e,this._endJulian=t,this._timeBarSecondsSpan=Q.secondsDifference(t,e),this._clock&&this._clock.clockRange!==qs.UNBOUNDED){let i=this._clock.startTime,r=this._clock.stopTime,o=Q.secondsDifference(r,i),s=Q.secondsDifference(i,this._startJulian),a=Q.secondsDifference(r,this._endJulian);this._timeBarSecondsSpan>=o?(this._timeBarSecondsSpan=o,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):s>0?(this._endJulian=Q.addSeconds(this._endJulian,s,new Q),this._startJulian=i,this._timeBarSecondsSpan=Q.secondsDifference(this._endJulian,this._startJulian)):a<0&&(this._startJulian=Q.addSeconds(this._startJulian,a,new Q),this._endJulian=r,this._timeBarSecondsSpan=Q.secondsDifference(this._endJulian,this._startJulian))}this._makeTics();let n=document.createEvent("Event");n.initEvent("setzoom",!0,!0),n.startJulian=this._startJulian,n.endJulian=this._endJulian,n.epochJulian=this._epochJulian,n.totalSpan=this._timeBarSecondsSpan,n.mainTicSpan=this._mainTicSpan,this._topDiv.dispatchEvent(n)};_u.prototype.zoomFrom=function(e){let t=Q.secondsDifference(this._scrubJulian,this._startJulian);e>1||t<0||t>this._timeBarSecondsSpan?t=this._timeBarSecondsSpan*.5:t+=t-this._timeBarSecondsSpan*.5;let n=this._timeBarSecondsSpan-t;this.zoomTo(Q.addSeconds(this._startJulian,t-t*e,new Q),Q.addSeconds(this._endJulian,n*e-n,new Q))};function Zne(e){return e<10?`0${e.toString()}`:e.toString()}_u.prototype.makeLabel=function(e){let t=Q.toGregorianDate(e),n=t.millisecond,i=" UTC";if(n>0&&this._timeBarSecondsSpan<3600){for(i=Math.floor(n).toString();i.length<3;)i=`0${i}`;i=`.${i}`}return`${zBt[t.month-1]} ${t.day} ${t.year} ${Zne(t.hour)}:${Zne(t.minute)}:${Zne(t.second)}${i}`};_u.prototype.smallestTicInPixels=7;_u.prototype._makeTics=function(){let e=this._timeBarEle,t=Q.secondsDifference(this._scrubJulian,this._startJulian),n=Math.round(t*this._topDiv.clientWidth/this._timeBarSecondsSpan),i=n-8,r,o=this;this._needleEle.style.left=`${n.toString()}px`;let s="",a=.01,c=31536e6,l=1e-10,f=0,d=this._timeBarSecondsSpan;d<a?(d=a,this._timeBarSecondsSpan=a,this._endJulian=Q.addSeconds(this._startJulian,a,new Q)):d>c&&(d=c,this._timeBarSecondsSpan=c,this._endJulian=Q.addSeconds(this._startJulian,c,new Q));let p=this._timeBarEle.clientWidth;p<10&&(p=10);let _=this._startJulian,m=Math.min(d/p*1e-5,.4),x,b=Q.toGregorianDate(_);d>31536e4?x=Q.fromDate(new Date(Date.UTC(Math.floor(b.year/100)*100,0))):d>31536e3?x=Q.fromDate(new Date(Date.UTC(Math.floor(b.year/10)*10,0))):d>86400?x=Q.fromDate(new Date(Date.UTC(b.year,0))):x=Q.fromDate(new Date(Date.UTC(b.year,b.month,b.day)));let T=Q.secondsDifference(this._startJulian,Q.addSeconds(x,m,new Q)),C=T+d;this._epochJulian=x;function A(k){return Math.floor(T/k)*k}function E(k,W){return Math.ceil(k/W+.5)*W}function v(k){return(k-T)/d}function D(k,W){return k-W*Math.round(k/W)}this._rulerEle.innerHTML=this.makeLabel(Q.addSeconds(this._endJulian,-a,new Q));let R=this._rulerEle.offsetWidth+20;R<30&&(R=180);let O=f;f-=l;let L={startTime:T,startJulian:_,epochJulian:x,duration:d,timeBarWidth:p,getAlpha:v};this._highlightRanges.forEach(function(k){s+=k.render(L)});let N=0,g=0,S=0,w=R/p;w>1&&(w=1),w*=this._timeBarSecondsSpan;let P=-1,F=-1,B=Db.length,H;for(H=0;H<B;++H){let k=Db[H];if(++P,N=k,k>w&&k>f)break;F<0&&p*(k/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(F=P)}if(P>0){for(;P>0;)if(--P,Math.abs(D(N,Db[P]))<1e-5){Db[P]>=f&&(g=Db[P]);break}if(F>=0)for(;F<P;){if(Math.abs(D(g,Db[F]))<1e-5&&Db[F]>=f){S=Db[F];break}++F}}f=O,f>l&&S<1e-5&&Math.abs(f-N)>l&&(S=f,f<=N+l&&(g=0));let V=-999999,U;if(p*(S/this._timeBarSecondsSpan)>=3)for(r=A(S);r<=C;r=E(r,S))s+=`<span class="cesium-timeline-ticTiny" style="left: ${Math.round(p*v(r)).toString()}px;"></span>`;if(p*(g/this._timeBarSecondsSpan)>=3)for(r=A(g);r<=C;r=E(r,g))s+=`<span class="cesium-timeline-ticSub" style="left: ${Math.round(p*v(r)).toString()}px;"></span>`;if(p*(N/this._timeBarSecondsSpan)>=2){this._mainTicSpan=N,C+=N,r=A(N);let k=Q.computeTaiMinusUtc(x);for(;r<=C;){let W=Q.addSeconds(_,r-T,new Q);if(N>2.1){let ee=Q.computeTaiMinusUtc(W);Math.abs(ee-k)>.1&&(r+=ee-k,W=Q.addSeconds(_,r-T,new Q))}let j=Math.round(p*v(r)),K=this.makeLabel(W);this._rulerEle.innerHTML=K,U=this._rulerEle.offsetWidth,U<10&&(U=R);let Y=j-(U/2-1);Y>V?(V=Y+U+5,s+=`<span class="cesium-timeline-ticMain" style="left: ${j.toString()}px;"></span><span class="cesium-timeline-ticLabel" style="left: ${Y.toString()}px;">${K}</span>`):s+=`<span class="cesium-timeline-ticSub" style="left: ${j.toString()}px;"></span>`,r=E(r,N)}}else this._mainTicSpan=-1;s+=`<span class="cesium-timeline-icon16" style="left:${i}px;bottom:0;background-position: 0 0;"></span>`,e.innerHTML=s,this._scrubElement=e.lastChild,this._context.clearRect(0,0,this._trackListEle.width,this._trackListEle.height),L.y=0,this._trackList.forEach(function(k){k.render(o._context,L),L.y+=k.height})};_u.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let e=this._scrubElement;if(u(this._scrubElement)){let t=Q.secondsDifference(this._scrubJulian,this._startJulian),n=Math.round(t*this._topDiv.clientWidth/this._timeBarSecondsSpan);this._lastXPos!==n&&(this._lastXPos=n,e.style.left=`${n-8}px`,this._needleEle.style.left=`${n}px`)}u(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo(Q.addSeconds(this._startJulian,this._timelineDrag,new Q),Q.addSeconds(this._endJulian,this._timelineDrag,new Q)))};_u.prototype._setTimeBarTime=function(e,t){if(e=Math.round(e),this._scrubJulian=Q.addSeconds(this._startJulian,t,new Q),this._scrubElement){let i=e-8;this._scrubElement.style.left=`${i.toString()}px`,this._needleEle.style.left=`${e.toString()}px`}let n=document.createEvent("Event");n.initEvent("settime",!0,!0),n.clientX=e,n.timeSeconds=t,n.timeJulian=this._scrubJulian,n.clock=this._clock,this._topDiv.dispatchEvent(n)};function HBt(e){return function(t){e._mouseMode!==Th.touchOnly&&(t.button===0?(e._mouseMode=Th.scrub,e._scrubElement&&(e._scrubElement.style.backgroundPosition="-16px 0"),e._onMouseMove(t)):(e._mouseX=t.clientX,t.button===2?e._mouseMode=Th.zoom:e._mouseMode=Th.slide)),t.preventDefault()}}function GBt(e){return function(t){e._mouseMode=Th.none,e._scrubElement&&(e._scrubElement.style.backgroundPosition="0 0"),e._timelineDrag=0,e._timelineDragLocation=void 0}}function WBt(e){return function(t){let n;if(e._mouseMode===Th.scrub){t.preventDefault();let i=t.clientX-e._topDiv.getBoundingClientRect().left;i<0?(e._timelineDragLocation=0,e._timelineDrag=-.01*e._timeBarSecondsSpan):i>e._topDiv.clientWidth?(e._timelineDragLocation=e._topDiv.clientWidth,e._timelineDrag=.01*e._timeBarSecondsSpan):(e._timelineDragLocation=void 0,e._setTimeBarTime(i,i*e._timeBarSecondsSpan/e._topDiv.clientWidth))}else if(e._mouseMode===Th.slide){if(n=e._mouseX-t.clientX,e._mouseX=t.clientX,n!==0){let i=n*e._timeBarSecondsSpan/e._topDiv.clientWidth;e.zoomTo(Q.addSeconds(e._startJulian,i,new Q),Q.addSeconds(e._endJulian,i,new Q))}}else e._mouseMode===Th.zoom&&(n=e._mouseX-t.clientX,e._mouseX=t.clientX,n!==0&&e.zoomFrom(Math.pow(1.01,n)))}}function jBt(e){return function(t){let n=t.wheelDeltaY||t.wheelDelta||-t.detail;Kne=Math.max(Math.min(Math.abs(n),Kne),1),n/=Kne,e.zoomFrom(Math.pow(1.05,-n))}}function qBt(e){return function(t){let n=t.touches.length,i,r,o=e._topDiv.getBoundingClientRect().left;t.preventDefault(),e._mouseMode=Th.touchOnly,n===1?(i=Q.secondsDifference(e._scrubJulian,e._startJulian),r=Math.round(i*e._topDiv.clientWidth/e._timeBarSecondsSpan+o),Math.abs(t.touches[0].clientX-r)<50?(e._touchMode=pu.scrub,e._scrubElement&&(e._scrubElement.style.backgroundPosition=n===1?"-16px 0":"0 0")):(e._touchMode=pu.singleTap,e._touchState.centerX=t.touches[0].clientX-o)):n===2?(e._touchMode=pu.slideZoom,e._touchState.centerX=(t.touches[0].clientX+t.touches[1].clientX)*.5-o,e._touchState.spanX=Math.abs(t.touches[0].clientX-t.touches[1].clientX)):e._touchMode=pu.ignore}}function YBt(e){return function(t){let n=t.touches.length,i=e._topDiv.getBoundingClientRect().left;e._touchMode===pu.singleTap?(e._touchMode=pu.scrub,e._onTouchMove(t)):e._touchMode===pu.scrub&&e._onTouchMove(t),e._mouseMode=Th.touchOnly,n!==1?e._touchMode=n>0?pu.ignore:pu.none:e._touchMode===pu.slideZoom&&(e._touchState.centerX=t.touches[0].clientX-i),e._scrubElement&&(e._scrubElement.style.backgroundPosition="0 0")}}function XBt(e){return function(t){let n,i,r,o,s,a,c=1,l=e._topDiv.getBoundingClientRect().left;e._touchMode===pu.singleTap&&(e._touchMode=pu.slideZoom),e._mouseMode=Th.touchOnly,e._touchMode===pu.scrub?(t.preventDefault(),t.changedTouches.length===1&&(i=t.changedTouches[0].clientX-l,i>=0&&i<=e._topDiv.clientWidth&&e._setTimeBarTime(i,i*e._timeBarSecondsSpan/e._topDiv.clientWidth))):e._touchMode===pu.slideZoom&&(r=t.touches.length,r===2?(o=(t.touches[0].clientX+t.touches[1].clientX)*.5-l,s=Math.abs(t.touches[0].clientX-t.touches[1].clientX)):r===1&&(o=t.touches[0].clientX-l,s=0),u(o)&&(s>0&&e._touchState.spanX>0?(c=e._touchState.spanX/s,a=Q.addSeconds(e._startJulian,(e._touchState.centerX*e._timeBarSecondsSpan-o*e._timeBarSecondsSpan*c)/e._topDiv.clientWidth,new Q)):(n=e._touchState.centerX-o,a=Q.addSeconds(e._startJulian,n*e._timeBarSecondsSpan/e._topDiv.clientWidth,new Q)),e.zoomTo(a,Q.addSeconds(a,e._timeBarSecondsSpan*c,new Q)),e._touchState.centerX=o,e._touchState.spanX=s))}}_u.prototype.resize=function(){let e=this.container.clientWidth,t=this.container.clientHeight;if(e===this._lastWidth&&t===this._lastHeight)return;this._trackContainer.style.height=`${t}px`;let n=1;this._trackList.forEach(function(i){n+=i.height}),this._trackListEle.style.height=`${n.toString()}px`,this._trackListEle.width=this._trackListEle.clientWidth,this._trackListEle.height=n,this._makeTics(),this._lastXPos=void 0,this._lastWidth=e,this._lastHeight=t};var qW=_u;var iRe=xo(nRe(),1);function $Bt(e){let t=!1,n=window.screen;return u(n)&&(u(n.lockOrientation)?t=n.lockOrientation(e):u(n.mozLockOrientation)?t=n.mozLockOrientation(e):u(n.msLockOrientation)?t=n.msLockOrientation(e):u(n.orientation&&n.orientation.lock)&&(t=n.orientation.lock(e))),t}function rRe(){let e=window.screen;u(e)&&(u(e.unlockOrientation)?e.unlockOrientation():u(e.mozUnlockOrientation)?e.mozUnlockOrientation():u(e.msUnlockOrientation)?e.msUnlockOrientation():u(e.orientation&&e.orientation.unlock)&&e.orientation.unlock())}function QBt(e,t,n,i){i()||(n()?(t.useWebVR=!1,e._locked&&(rRe(),e._locked=!1),e._noSleep.disable(),As.exitFullscreen(),n(!1)):(As.fullscreen||As.requestFullscreen(e._vrElement),e._noSleep.enable(),e._locked||(e._locked=$Bt("landscape")),t.useWebVR=!0,n(!0)))}function YW(e,t){let n=this,i=Se.observable(As.enabled),r=Se.observable(!1);this.isVRMode=void 0,Se.defineProperty(this,"isVRMode",{get:function(){return r()}}),this.isVREnabled=void 0,Se.defineProperty(this,"isVREnabled",{get:function(){return i()},set:function(s){i(s&&As.enabled)}}),this.tooltip=void 0,Se.defineProperty(this,"tooltip",function(){return i()?r()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"});let o=Se.observable(!1);this._isOrthographic=void 0,Se.defineProperty(this,"_isOrthographic",{get:function(){return o()}}),this._eventHelper=new Gs,this._eventHelper.add(e.preRender,function(){o(e.camera.frustum instanceof Dn)}),this._locked=!1,this._noSleep=new iRe.default,this._command=ni(function(){QBt(n,e,r,o)},Se.getObservable(this,"isVREnabled")),this._vrElement=y(li(t),document.body),this._callback=function(){!As.fullscreen&&r()&&(e.useWebVR=!1,n._locked&&(rRe(),n._locked=!1),n._noSleep.disable(),r(!1))},document.addEventListener(As.changeEventName,this._callback)}Object.defineProperties(YW.prototype,{vrElement:{get:function(){return this._vrElement},set:function(e){this._vrElement=e}},command:{get:function(){return this._command}}});YW.prototype.isDestroyed=function(){return!1};YW.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(As.changeEventName,this._callback),he(this)};var XW=YW;var JBt="M 5.3125 6.375 C 4.008126 6.375 2.96875 7.4141499 2.96875 8.71875 L 2.96875 19.5 C 2.96875 20.8043 4.008126 21.875 5.3125 21.875 L 13.65625 21.875 C 13.71832 20.0547 14.845166 18.59375 16.21875 18.59375 C 17.592088 18.59375 18.71881 20.0552 18.78125 21.875 L 27.09375 21.875 C 28.398125 21.875 29.4375 20.8043 29.4375 19.5 L 29.4375 8.71875 C 29.4375 7.4141499 28.398125 6.375 27.09375 6.375 L 5.3125 6.375 z M 9.625 10.4375 C 11.55989 10.4375 13.125 12.03385 13.125 13.96875 C 13.125 15.90365 11.55989 17.46875 9.625 17.46875 C 7.69011 17.46875 6.125 15.90365 6.125 13.96875 C 6.125 12.03385 7.69011 10.4375 9.625 10.4375 z M 22.46875 10.4375 C 24.40364 10.4375 25.96875 12.03385 25.96875 13.96875 C 25.96875 15.90365 24.40364 17.46875 22.46875 17.46875 C 20.53386 17.46875 18.96875 15.90365 18.96875 13.96875 C 18.96875 12.03385 20.53386 10.4375 22.46875 10.4375 z",e4t="M 25.770585,2.4552065 C 15.72282,13.962707 10.699956,19.704407 8.1768352,22.580207 c -1.261561,1.4379 -1.902282,2.1427 -2.21875,2.5 -0.141624,0.1599 -0.208984,0.2355 -0.25,0.2813 l 0.6875,0.75 c 10e-5,-10e-5 0.679191,0.727 0.6875,0.7187 0.01662,-0.016 0.02451,-0.024 0.03125,-0.031 0.01348,-0.014 0.04013,-0.038 0.0625,-0.062 0.04474,-0.05 0.120921,-0.1315 0.28125,-0.3126 0.320657,-0.3619 0.956139,-1.0921 2.2187499,-2.5312 2.5252219,-2.8781 7.5454589,-8.6169 17.5937499,-20.1250005 l -1.5,-1.3125 z m -20.5624998,3.9063 c -1.304375,0 -2.34375,1.0391 -2.34375,2.3437 l 0,10.8125005 c 0,1.3043 1.039375,2.375 2.34375,2.375 l 2.25,0 c 1.9518039,-2.2246 7.4710958,-8.5584 13.5624998,-15.5312005 l -15.8124998,0 z m 21.1249998,0 c -1.855467,2.1245 -2.114296,2.4005 -3.59375,4.0936995 1.767282,0.1815 3.15625,1.685301 3.15625,3.500001 0,1.9349 -1.56511,3.5 -3.5,3.5 -1.658043,0 -3.043426,-1.1411 -3.40625,-2.6875 -1.089617,1.2461 -2.647139,2.9988 -3.46875,3.9375 0.191501,-0.062 0.388502,-0.094 0.59375,-0.094 1.373338,0 2.50006,1.4614 2.5625,3.2812 l 8.3125,0 c 1.304375,0 2.34375,-1.0707 2.34375,-2.375 l 0,-10.8125005 c 0,-1.3046 -1.039375,-2.3437 -2.34375,-2.3437 l -0.65625,0 z M 9.5518351,10.423906 c 1.9348899,0 3.4999999,1.596401 3.4999999,3.531301 0,1.9349 -1.56511,3.5 -3.4999999,3.5 -1.9348899,0 -3.4999999,-1.5651 -3.4999999,-3.5 0,-1.9349 1.56511,-3.531301 3.4999999,-3.531301 z m 4.2187499,10.312601 c -0.206517,0.2356 -0.844218,0.9428 -1.03125,1.1562 l 0.8125,0 c 0.01392,-0.4081 0.107026,-0.7968 0.21875,-1.1562 z";function KW(e,t,n){e=li(e);let i=new XW(t,n);i._exitVRPath=e4t,i._enterVRPath=JBt;let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-vrButton",r.setAttribute("data-bind",'css: { "cesium-button-disabled" : _isOrthographic }, attr: { title: tooltip },click: command,enable: isVREnabled,cesiumSvgPath: { path: isVRMode ? _exitVRPath : _enterVRPath, width: 32, height: 32 }'),e.appendChild(r),Se.applyBindings(i,r),this._container=e,this._viewModel=i,this._element=r}Object.defineProperties(KW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});KW.prototype.isDestroyed=function(){return!1};KW.prototype.destroy=function(){return this._viewModel.destroy(),Se.cleanNode(this._element),this._container.removeChild(this._element),he(this)};var ZW=KW;var Pb=new ce;function aRe(e){let t=e.clock;t.currentTime=e.timeJulian,t.shouldAnimate=!1}function t4t(e){let t=e.getPropertyIds(),n="";return Array.isArray(t)&&(t.forEach(function(i){let r=e.getProperty(i);u(r)&&(n+=`<tr><th>${i}</th><td>${r}</td></tr>`)}),n.length>0&&(n=`<table class="cesium-infoBox-defaultTable"><tbody>${n}</tbody></table>`)),n}function n4t(e){let t,n=[],i=e.getPropertyIds();for(t=0;t<i.length;t++){let o=i[t];/^name$/i.test(o)?n[0]=e.getProperty(o):/name/i.test(o)?n[1]=e.getProperty(o):/^title$/i.test(o)?n[2]=e.getProperty(o):/^(id|identifier)$/i.test(o)?n[3]=e.getProperty(o):/element/i.test(o)?n[4]=e.getProperty(o):/(id|identifier)$/i.test(o)&&(n[5]=e.getProperty(o))}let r=n.length;for(t=0;t<r;t++){let o=n[t];if(u(o)&&o!=="")return o}return"Unnamed Feature"}function oRe(e,t){let n=e.scene.pick(t.position);if(u(n)){let i=y(n.id,n.primitive.id);if(i instanceof is)return i;if(n instanceof nc)return new is({name:n4t(n),description:t4t(n),feature:n})}if(u(e.scene.globe))return o4t(e,t.position)}var i4t=new Q;function cRe(e,t,n){if(u(n)){let i=n.clock;if(u(i)&&(i.getValue(t),u(e))){let r=i.startTime,o=i.stopTime;Q.equals(r,o)&&(o=Q.addSeconds(r,I.EPSILON2,i4t)),e.updateFromClock(),e.zoomTo(r,o)}}}var r4t=new h;function o4t(e,t){let n=e.scene,i=n.camera.getPickRay(t),r=n.imageryLayers.pickImageryLayerFeatures(i,n);if(!u(r))return;let o=new is({id:"Loading...",description:"Loading feature information..."});return r.then(function(s){if(e.selectedEntity!==o)return;if(!u(s)||s.length===0){e.selectedEntity=sRe();return}let a=s[0],c=new is({id:a.name,description:a.description});if(u(a.position)){let l=e.scene.ellipsoid.cartographicToCartesian(a.position,r4t);c.position=new Su(l)}e.selectedEntity=c},function(){e.selectedEntity===o&&(e.selectedEntity=sRe())}),o}function sRe(){return new is({id:"None",description:"No features found."})}function s4t(e,t){let n=e._geocoder,i=e._homeButton,r=e._sceneModePicker,o=e._projectionPicker,s=e._baseLayerPicker,a=e._animation,c=e._timeline,l=e._fullscreenButton,f=e._infoBox,d=e._selectionIndicator,p=t?"hidden":"visible";if(u(n)&&(n.container.style.visibility=p),u(i)&&(i.container.style.visibility=p),u(r)&&(r.container.style.visibility=p),u(o)&&(o.container.style.visibility=p),u(s)&&(s.container.style.visibility=p),u(a)&&(a.container.style.visibility=p),u(c)&&(c.container.style.visibility=p),u(l)&&l.viewModel.isFullscreenEnabled&&(l.container.style.visibility=p),u(f)&&(f.container.style.visibility=p),u(d)&&(d.container.style.visibility=p),e._container){let _=t||!u(l)?0:l.container.clientWidth;e._vrButton.container.style.right=`${_}px`,e.forceResize()}}function _r(e,t){e=li(e),t=y(t,{}),t.selectionIndicator=y(t.selectionIndicator,!1),t.infoBox=y(t.selectionIndicator,!1),t.geocoder=y(t.geocoder,!1),t.homeButton=y(t.homeButton,!1),t.sceneModePicker=y(t.sceneModePicker,!1),t.baseLayerPicker=y(t.baseLayerPicker,!1),t.navigationHelpButton=y(t.navigationHelpButton,!1),t.timeline=y(t.timeline,!1),t.animation=y(t.animation,!1),t.fullscreenButton=y(t.fullscreenButton,!1);let n=(!u(t.globe)||t.globe!==!1)&&(!u(t.baseLayerPicker)||t.baseLayerPicker!==!1),i=this,r=document.createElement("div");r.className="cesium-viewer",e.appendChild(r);let o=document.createElement("div");o.className="cesium-viewer-cesiumWidgetContainer",r.appendChild(o);let s=document.createElement("div");s.className="cesium-viewer-bottom";let a=y(t.scene3DOnly,!1),c,l,f=!1;u(t.clockViewModel)?(l=t.clockViewModel,c=l.clock):(c=new jp,l=new q7(c),f=!0),u(t.shouldAnimate)&&(c.shouldAnimate=t.shouldAnimate);let d=1;if(u(t.logoScale)){let K=parseFloat(t.logoScale);u(K)&&K>=.2&&(d=K)}let p=new N7(o,{baseLayer:n&&u(t.selectedImageryProviderViewModel)||u(t.baseLayer)||u(t.imageryProvider)?!1:void 0,clock:c,skyBox:t.skyBox,skyAtmosphere:t.skyAtmosphere,sceneMode:t.sceneMode,ellipsoid:t.ellipsoid,mapProjection:t.mapProjection,globe:t.globe,orderIndependentTranslucency:t.orderIndependentTranslucency,contextOptions:t.contextOptions,useDefaultRenderLoop:t.useDefaultRenderLoop,targetFrameRate:t.targetFrameRate,showRenderLoopErrors:t.showRenderLoopErrors,useBrowserRecommendedResolution:t.useBrowserRecommendedResolution,creditContainer:u(t.creditContainer)?t.creditContainer:s,creditViewport:t.creditViewport,scene3DOnly:a,logoScale:d,shadows:t.shadows,terrainShadows:t.terrainShadows,mapMode2D:t.mapMode2D,blurActiveElementOnCanvasFocus:t.blurActiveElementOnCanvasFocus,requestRenderMode:t.requestRenderMode,maximumRenderTimeChange:t.maximumRenderTimeChange,depthPlaneEllipsoidOffset:t.depthPlaneEllipsoidOffset,msaaSamples:t.msaaSamples}),_=t.dataSources,m=!1;u(_)||(_=new P8,m=!0);let x=p.scene,b=new dz({scene:x,dataSourceCollection:_}),T=new Gs;T.add(c.onTick,_r.prototype._onTick,this),T.add(x.morphStart,_r.prototype._clearTrackedObject,this);let C;if(!u(t.selectionIndicator)||t.selectionIndicator!==!1){let K=document.createElement("div");K.className="cesium-viewer-selectionIndicatorContainer",r.appendChild(K),C=new GW(K,x)}let A;if(!u(t.infoBox)||t.infoBox!==!1){let K=document.createElement("div");K.className="cesium-viewer-infoBoxContainer",r.appendChild(K),A=new SW(K);let Y=A.viewModel;T.add(Y.cameraClicked,_r.prototype._onInfoBoxCameraClicked,this),T.add(Y.closeClicked,_r.prototype._onInfoBoxClockClicked,this)}let E=document.createElement("div");E.className="cesium-viewer-toolbar",r.appendChild(E);let v;if(!u(t.geocoder)||t.geocoder!==!1){let K=document.createElement("div");K.className="cesium-viewer-geocoderContainer",E.appendChild(K);let Y;u(t.geocoder)&&typeof t.geocoder!="boolean"&&(Y=Array.isArray(t.geocoder)?t.geocoder:[t.geocoder]),v=new gW({container:K,geocoderServices:Y,scene:x}),T.add(v.viewModel.search.beforeExecute,_r.prototype._clearObjects,this)}let D;(!u(t.homeButton)||t.homeButton!==!1)&&(D=new bW(E,x),u(v)&&T.add(D.viewModel.command.afterExecute,function(){let K=v.viewModel;K.searchText="",K.isSearchInProgress&&K.search()}),T.add(D.viewModel.command.beforeExecute,_r.prototype._clearTrackedObject,this));let R;!a&&(!u(t.sceneModePicker)||t.sceneModePicker!==!1)&&(R=new VW(E,x));let O;t.projectionPicker&&(O=new NW(E,x));let L,N;if(n){let K=y(t.imageryProviderViewModels,sW()),Y=y(t.terrainProviderViewModels,aW());L=new oW(E,{globe:x.globe,imageryProviderViewModels:K,selectedImageryProviderViewModel:t.selectedImageryProviderViewModel,terrainProviderViewModels:Y,selectedTerrainProviderViewModel:t.selectedTerrainProviderViewModel}),N=E.getElementsByClassName("cesium-baseLayerPicker-dropDown")[0]}u(t.baseLayer)&&t.baseLayer!==!1&&(n&&(L.viewModel.selectedImagery=void 0),x.imageryLayers.removeAll(),x.imageryLayers.add(t.baseLayer)),u(t.terrainProvider)&&(n&&(L.viewModel.selectedTerrain=void 0),x.terrainProvider=t.terrainProvider),u(t.terrain)&&(n&&(x.globe.depthTestAgainstTerrain=!0),x.setTerrain(t.terrain));let g;if(!u(t.navigationHelpButton)||t.navigationHelpButton!==!1){let K=!0;try{if(u(window.localStorage)){let Y=window.localStorage.getItem("cesium-hasSeenNavHelp");u(Y)&&Y?K=!1:window.localStorage.setItem("cesium-hasSeenNavHelp","true")}}catch{}g=new DW({container:E,instructionsInitiallyVisible:y(t.navigationInstructionsInitiallyVisible,K)})}let S;if(!u(t.animation)||t.animation!==!1){let K=document.createElement("div");K.className="cesium-viewer-animationContainer",r.appendChild(K),S=new $7(K,new Q7(l))}let w;if(!u(t.timeline)||t.timeline!==!1){let K=document.createElement("div");K.className="cesium-viewer-timelineContainer",r.appendChild(K),w=new qW(K,c),w.addEventListener("settime",aRe,!1),w.zoomTo(c.startTime,c.stopTime)}let P,F,B;(!u(t.fullscreenButton)||t.fullscreenButton!==!1)&&(B=document.createElement("div"),B.className="cesium-viewer-fullscreenContainer",r.appendChild(B),P=new mW(B,t.fullscreenElement),F=Bc(P.viewModel,"isFullscreenEnabled",function(K){B.style.display=K?"block":"none",u(w)&&(w.container.style.right=`${B.clientWidth}px`,w.resize())}));let H,V,U;if(t.vrButton){let K=document.createElement("div");K.className="cesium-viewer-vrContainer",r.appendChild(K),H=new ZW(K,x,t.fullScreenElement),V=Bc(H.viewModel,"isVREnabled",function(Y){K.style.display=Y?"block":"none",u(P)&&(K.style.right=`${B.clientWidth}px`),u(w)&&(w.container.style.right=`${K.clientWidth}px`,w.resize())}),U=Bc(H.viewModel,"isVRMode",function(Y){s4t(i,Y)})}this._baseLayerPickerDropDown=N,this._fullscreenSubscription=F,this._vrSubscription=V,this._vrModeSubscription=U,this._dataSourceChangedListeners={},this._automaticallyTrackDataSourceClocks=y(t.automaticallyTrackDataSourceClocks,!0),this._container=e,this._bottomContainer=s,this._element=r,this._cesiumWidget=p,this._selectionIndicator=C,this._infoBox=A,this._dataSourceCollection=_,this._destroyDataSourceCollection=m,this._dataSourceDisplay=b,this._clockViewModel=l,this._destroyClockViewModel=f,this._toolbar=E,this._homeButton=D,this._sceneModePicker=R,this._projectionPicker=O,this._baseLayerPicker=L,this._navigationHelpButton=g,this._animation=S,this._timeline=w,this._fullscreenButton=P,this._vrButton=H,this._geocoder=v,this._eventHelper=T,this._lastWidth=0,this._lastHeight=0,this._allowDataSourcesToSuspendAnimation=!0,this._entityView=void 0,this._enableInfoOrSelection=u(A)||u(C),this._clockTrackedDataSource=void 0,this._trackedEntity=void 0,this._needTrackedEntityUpdate=!1,this._selectedEntity=void 0,this._zoomIsFlight=!1,this._zoomTarget=void 0,this._zoomPromise=void 0,this._zoomOptions=void 0,this._selectedEntityChanged=new be,this._trackedEntityChanged=new be,Se.track(this,["_trackedEntity","_selectedEntity","_clockTrackedDataSource"]),T.add(_.dataSourceAdded,_r.prototype._onDataSourceAdded,this),T.add(_.dataSourceRemoved,_r.prototype._onDataSourceRemoved,this),T.add(x.postUpdate,_r.prototype.resize,this),T.add(x.postRender,_r.prototype._postRender,this);let k=_.length;for(let K=0;K<k;K++)this._dataSourceAdded(_,_.get(K));this._dataSourceAdded(void 0,b.defaultDataSource),T.add(_.dataSourceAdded,_r.prototype._dataSourceAdded,this),T.add(_.dataSourceRemoved,_r.prototype._dataSourceRemoved,this);function W(K){let Y=oRe(i,K);u(Y)?X.getValueOrUndefined(Y.position,i.clock.currentTime)?i.trackedEntity=Y:i.zoomTo(Y):u(i.trackedEntity)&&(i.trackedEntity=void 0)}function j(K){i.selectedEntity=oRe(i,K)}p.screenSpaceEventHandler.setInputAction(j,Zn.LEFT_CLICK),p.screenSpaceEventHandler.setInputAction(W,Zn.LEFT_DOUBLE_CLICK)}Object.defineProperties(_r.prototype,{container:{get:function(){return this._container}},creditDisplay:{get:function(){return this._cesiumWidget.creditDisplay}},bottomContainer:{get:function(){return this._bottomContainer}},cesiumWidget:{get:function(){return this._cesiumWidget}},selectionIndicator:{get:function(){return this._selectionIndicator}},infoBox:{get:function(){return this._infoBox}},geocoder:{get:function(){return this._geocoder}},homeButton:{get:function(){return this._homeButton}},sceneModePicker:{get:function(){return this._sceneModePicker}},projectionPicker:{get:function(){return this._projectionPicker}},baseLayerPicker:{get:function(){return this._baseLayerPicker}},navigationHelpButton:{get:function(){return this._navigationHelpButton}},animation:{get:function(){return this._animation}},timeline:{get:function(){return this._timeline}},fullscreenButton:{get:function(){return this._fullscreenButton}},vrButton:{get:function(){return this._vrButton}},dataSourceDisplay:{get:function(){return this._dataSourceDisplay}},entities:{get:function(){return this._dataSourceDisplay.defaultDataSource.entities}},dataSources:{get:function(){return this._dataSourceCollection}},canvas:{get:function(){return this._cesiumWidget.canvas}},scene:{get:function(){return this._cesiumWidget.scene}},shadows:{get:function(){return this.scene.shadowMap.enabled},set:function(e){this.scene.shadowMap.enabled=e}},terrainShadows:{get:function(){return this.scene.globe.shadows},set:function(e){this.scene.globe.shadows=e}},shadowMap:{get:function(){return this.scene.shadowMap}},imageryLayers:{get:function(){return this.scene.imageryLayers}},terrainProvider:{get:function(){return this.scene.terrainProvider},set:function(e){this.scene.terrainProvider=e}},camera:{get:function(){return this.scene.camera}},ellipsoid:{get:function(){return this._scene.ellipsoid}},postProcessStages:{get:function(){return this.scene.postProcessStages}},clock:{get:function(){return this._clockViewModel.clock}},clockViewModel:{get:function(){return this._clockViewModel}},screenSpaceEventHandler:{get:function(){return this._cesiumWidget.screenSpaceEventHandler}},targetFrameRate:{get:function(){return this._cesiumWidget.targetFrameRate},set:function(e){this._cesiumWidget.targetFrameRate=e}},useDefaultRenderLoop:{get:function(){return this._cesiumWidget.useDefaultRenderLoop},set:function(e){this._cesiumWidget.useDefaultRenderLoop=e}},resolutionScale:{get:function(){return this._cesiumWidget.resolutionScale},set:function(e){this._cesiumWidget.resolutionScale=e}},useBrowserRecommendedResolution:{get:function(){return this._cesiumWidget.useBrowserRecommendedResolution},set:function(e){this._cesiumWidget.useBrowserRecommendedResolution=e}},allowDataSourcesToSuspendAnimation:{get:function(){return this._allowDataSourcesToSuspendAnimation},set:function(e){this._allowDataSourcesToSuspendAnimation=e}},trackedEntity:{get:function(){return this._trackedEntity},set:function(e){if(this._trackedEntity!==e){this._trackedEntity=e,eie(this);let t=this.scene,n=t.mode;!u(e)||!u(e.position)?(this._needTrackedEntityUpdate=!1,(n===oe.COLUMBUS_VIEW||n===oe.SCENE2D)&&(t.screenSpaceCameraController.enableTranslate=!0),(n===oe.COLUMBUS_VIEW||n===oe.SCENE3D)&&(t.screenSpaceCameraController.enableTilt=!0),this._entityView=void 0,this.camera.lookAtTransform(M.IDENTITY)):this._needTrackedEntityUpdate=!0,this._trackedEntityChanged.raiseEvent(e),this.scene.requestRender()}}},selectedEntity:{get:function(){return this._selectedEntity},set:function(e){if(this._selectedEntity!==e){this._selectedEntity=e;let t=u(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;u(e)?u(t)&&t.animateAppear():u(t)&&t.animateDepart(),this._selectedEntityChanged.raiseEvent(e)}}},selectedEntityChanged:{get:function(){return this._selectedEntityChanged}},trackedEntityChanged:{get:function(){return this._trackedEntityChanged}},clockTrackedDataSource:{get:function(){return this._clockTrackedDataSource},set:function(e){this._clockTrackedDataSource!==e&&(this._clockTrackedDataSource=e,cRe(this._timeline,this.clock,e))}}});_r.prototype.getCurrentTilesLevels=function(){this.scene._globe.depthTestAgainstTerrain=!0;let e=this.scene._globe._surface._tilesToRender,t=this.camera.positionWC,n=this.camera.directionWC,i=new Ray(t,n),r=this.scene.pickFromRay(i,[]);if(r===void 0||r.position===void 0)return;let o=r.position,s=h.distance(o,t),a={};a.centerTileLevel=0,a.maxTileLevel=0,a.minTileLevel=Number.POSITIVE_INFINITY;let c=Number.POSITIVE_INFINITY;for(let l=0,f=e.length;l<f;l++){e[l].level>a.maxTileLevel&&(a.maxTileLevel=e[l].level),e[l].level<a.minTileLevel&&(a.minTileLevel=e[l].level);let d=Math.abs(e[l]._distance-s)<c;d<c&&(c=d,a.centerTileLevel=e[l].level)}return a};_r.prototype.extend=function(e,t){e(this,t)};_r.prototype.resize=function(){let e=this._cesiumWidget,t=this._container,n=t.clientWidth,i=t.clientHeight,r=u(this._animation),o=u(this._timeline);if(e.resize(),n===this._lastWidth&&i===this._lastHeight)return;let s=i-125,a=this._baseLayerPickerDropDown;if(u(a)&&(a.style.maxHeight=`${s}px`),u(this._geocoder)){let m=this._geocoder.searchSuggestionsContainer;m.style.maxHeight=`${s}px`}u(this._infoBox)&&(this._infoBox.viewModel.maxHeight=s);let c=this._timeline,l,f=0,d=5,p=3,_=0;if(r&&window.getComputedStyle(this._animation.container).visibility!=="hidden"){let m=this._lastWidth;l=this._animation.container,n>900?(f=169,m<=900&&(l.style.width="169px",l.style.height="112px",this._animation.resize())):n>=600?(f=136,(m<600||m>900)&&(l.style.width="136px",l.style.height="90px",this._animation.resize())):(f=106,(m>600||m===0)&&(l.style.width="106px",l.style.height="70px",this._animation.resize())),d=f+5}if(o&&window.getComputedStyle(this._timeline.container).visibility!=="hidden"){let m=this._fullscreenButton,x=this._vrButton,b=c.container,T=b.style;p=b.clientHeight+3,T.left=`${f}px`;let C=0;u(m)&&(C+=m.container.clientWidth),u(x)&&(C+=x.container.clientWidth),T.right=`${C}px`,c.resize()}!o&&u(this._fullscreenButton)&&(_=this._fullscreenButton.container.clientWidth),this._bottomContainer.style.left=`${d}px`,this._bottomContainer.style.bottom=`${p}px`,this._bottomContainer.style.right=`${_}px`,this._lastWidth=n,this._lastHeight=i};_r.prototype.forceResize=function(){this._lastWidth=0,this.resize()};_r.prototype.render=function(){this._cesiumWidget.render()};_r.prototype.isDestroyed=function(){return!1};_r.prototype.destroy=function(){let e;u(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(Zn.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(Zn.LEFT_DOUBLE_CLICK));let t=this.dataSources,n=t.length;for(e=0;e<n;e++)this._dataSourceRemoved(t,t.get(e));return this._dataSourceRemoved(void 0,this._dataSourceDisplay.defaultDataSource),this._container.removeChild(this._element),this._element.removeChild(this._toolbar),this._eventHelper.removeAll(),u(this._geocoder)&&(this._geocoder=this._geocoder.destroy()),u(this._homeButton)&&(this._homeButton=this._homeButton.destroy()),u(this._sceneModePicker)&&(this._sceneModePicker=this._sceneModePicker.destroy()),u(this._projectionPicker)&&(this._projectionPicker=this._projectionPicker.destroy()),u(this._baseLayerPicker)&&(this._baseLayerPicker=this._baseLayerPicker.destroy()),u(this._animation)&&(this._element.removeChild(this._animation.container),this._animation=this._animation.destroy()),u(this._timeline)&&(this._timeline.removeEventListener("settime",aRe,!1),this._element.removeChild(this._timeline.container),this._timeline=this._timeline.destroy()),u(this._fullscreenButton)&&(this._fullscreenSubscription.dispose(),this._element.removeChild(this._fullscreenButton.container),this._fullscreenButton=this._fullscreenButton.destroy()),u(this._vrButton)&&(this._vrSubscription.dispose(),this._vrModeSubscription.dispose(),this._element.removeChild(this._vrButton.container),this._vrButton=this._vrButton.destroy()),u(this._infoBox)&&(this._element.removeChild(this._infoBox.container),this._infoBox=this._infoBox.destroy()),u(this._selectionIndicator)&&(this._element.removeChild(this._selectionIndicator.container),this._selectionIndicator=this._selectionIndicator.destroy()),this._destroyClockViewModel&&(this._clockViewModel=this._clockViewModel.destroy()),this._dataSourceDisplay=this._dataSourceDisplay.destroy(),this._cesiumWidget=this._cesiumWidget.destroy(),this._destroyDataSourceCollection&&(this._dataSourceCollection=this._dataSourceCollection.destroy()),he(this)};_r.prototype._dataSourceAdded=function(e,t){t.entities.collectionChanged.addEventListener(_r.prototype._onEntityCollectionChanged,this)};_r.prototype._dataSourceRemoved=function(e,t){let n=t.entities;n.collectionChanged.removeEventListener(_r.prototype._onEntityCollectionChanged,this),u(this.trackedEntity)&&n.getById(this.trackedEntity.id)===this.trackedEntity&&(this.trackedEntity=void 0),u(this.selectedEntity)&&n.getById(this.selectedEntity.id)===this.selectedEntity&&(this.selectedEntity=void 0)};_r.prototype._onTick=function(e){let t=e.currentTime,n=this._dataSourceDisplay.update(t);this._allowDataSourcesToSuspendAnimation&&(this._clockViewModel.canAnimate=n);let i=this._entityView;if(u(i)){let f=this._trackedEntity;this._dataSourceDisplay.getBoundingSphere(f,!0,Pb)===Mt.DONE&&i.update(t,Pb)}let r,o=!1,s=this.selectedEntity,a=u(s)&&this._enableInfoOrSelection;a&&s.isShowing&&s.isAvailable(t)&&(this._dataSourceDisplay.getBoundingSphere(s,!0,Pb)!==Mt.FAILED?r=Pb.center:u(s.position)&&(r=s.position.getValue(t,r)),o=u(r));let c=u(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;u(c)&&(c.position=h.clone(r,c.position),c.showSelection=a&&o,c.update());let l=u(this._infoBox)?this._infoBox.viewModel:void 0;u(l)&&(l.showInfo=a,l.enableCamera=o,l.isCameraTracking=this.trackedEntity===this.selectedEntity,a?(l.titleText=y(s.name,s.id),l.description=X.getValueOrDefault(s.description,t,"")):(l.titleText="",l.description=""))};_r.prototype._onEntityCollectionChanged=function(e,t,n){let i=n.length;for(let r=0;r<i;r++){let o=n[r];this.trackedEntity===o&&(this.trackedEntity=void 0),this.selectedEntity===o&&(this.selectedEntity=void 0)}};_r.prototype._onInfoBoxCameraClicked=function(e){if(e.isCameraTracking&&this.trackedEntity===this.selectedEntity)this.trackedEntity=void 0;else{let n=this.selectedEntity.position;u(n)?this.trackedEntity=this.selectedEntity:this.zoomTo(this.selectedEntity)}};_r.prototype._clearTrackedObject=function(){this.trackedEntity=void 0};_r.prototype._onInfoBoxClockClicked=function(e){this.selectedEntity=void 0};_r.prototype._clearObjects=function(){this.trackedEntity=void 0,this.selectedEntity=void 0};_r.prototype._onDataSourceChanged=function(e){this.clockTrackedDataSource===e&&cRe(this.timeline,this.clock,e)};_r.prototype._onDataSourceAdded=function(e,t){this._automaticallyTrackDataSourceClocks&&(this.clockTrackedDataSource=t);let n=t.entities.id,i=this._eventHelper.add(t.changedEvent,_r.prototype._onDataSourceChanged,this);this._dataSourceChangedListeners[n]=i};_r.prototype._onDataSourceRemoved=function(e,t){let n=this.clockTrackedDataSource===t,i=t.entities.id;if(this._dataSourceChangedListeners[i](),this._dataSourceChangedListeners[i]=void 0,n){let r=e.length;this._automaticallyTrackDataSourceClocks&&r>0?this.clockTrackedDataSource=e.get(r-1):this.clockTrackedDataSource=void 0}};_r.prototype.zoomTo=function(e,t){return lRe(this,e,{offset:t},!1)};_r.prototype.flyTo=function(e,t){return lRe(this,e,t,!0)};function lRe(e,t,n,i){eie(e);let r=new Promise(o=>{e._completeZoom=function(s){o(s)}});return e._zoomPromise=r,e._zoomIsFlight=i,e._zoomOptions=n,Promise.resolve(t).then(function(o){if(e._zoomPromise===r){if(o instanceof Zs){let s;u(o.imageryProvider)?s=Promise.resolve(o.getImageryRectangle()):s=new Promise(a=>{let c=o.readyEvent.addEventListener(()=>{c(),a(o.getImageryRectangle())})}),s.then(function(a){return jw(a,e.scene)}).then(function(a){e._zoomPromise===r&&(e._zoomTarget=a)});return}if(o instanceof oa||o instanceof HR||o instanceof bA||o instanceof Kl){e._zoomTarget=o;return}if(o.isLoading&&u(o.loadingEvent)){let s=o.loadingEvent.addEventListener(function(){s(),e._zoomPromise===r&&(e._zoomTarget=o.entities.values.slice(0))});return}if(Array.isArray(o)){e._zoomTarget=o.slice(0);return}o=y(o.values,o),u(o.entities)&&(o=o.entities.values),Array.isArray(o)?e._zoomTarget=o.slice(0):e._zoomTarget=[o]}}),e.scene.requestRender(),r}function rO(e){e._zoomPromise=void 0,e._zoomTarget=void 0,e._zoomOptions=void 0}function eie(e){let t=e._zoomPromise;u(t)&&(rO(e),e._completeZoom(!1))}_r.prototype._postRender=function(){a4t(this),c4t(this)};function a4t(e){let t=e._zoomTarget;if(!u(t)||e.scene.mode===oe.MORPHING)return;let n=e.scene,i=n.camera,r=y(e._zoomOptions,{}),o;function s(f){u(r.offset)||(r.offset=new ru(0,-.5,f.radius)),o={offset:r.offset,duration:r.duration,maximumHeight:r.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)}},e._zoomIsFlight?i.flyToBoundingSphere(t.boundingSphere,o):(i.viewBoundingSphere(f,r.offset),i.lookAtTransform(M.IDENTITY),e._completeZoom(!0)),rO(e)}if(t instanceof HR){if(u(t.boundingSphere)){s(t.boundingSphere);return}let f=t.frameChanged.addEventListener(function(d){s(d.boundingSphere),f()});return}if(t instanceof oa||t instanceof bA||t instanceof Kl){s(t.boundingSphere);return}if(t instanceof ue){o={destination:n.ellipsoid.cartographicToCartesian(t),duration:r.duration,maximumHeight:r.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)}},e._zoomIsFlight?i.flyTo(o):(i.setView(o),e._completeZoom(!0)),rO(e);return}let a=t,c=[];for(let f=0,d=a.length;f<d;f++){let p=e._dataSourceDisplay.getBoundingSphere(a[f],!1,Pb);if(p===Mt.PENDING)return;p!==Mt.FAILED&&c.push(ce.clone(Pb))}if(c.length===0){eie(e);return}e.trackedEntity=void 0;let l=ce.fromBoundingSpheres(c);e._zoomIsFlight?(rO(e),i.flyToBoundingSphere(l,{duration:r.duration,maximumHeight:r.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)},offset:r.offset})):(i.viewBoundingSphere(l,r.offset),i.lookAtTransform(M.IDENTITY),rO(e),e._completeZoom(!0))}function c4t(e){if(!e._needTrackedEntityUpdate)return;let t=e._trackedEntity,n=e.clock.currentTime,i=X.getValueOrUndefined(t.position,n);if(!u(i))return;let r=e.scene,o=e._dataSourceDisplay.getBoundingSphere(t,!1,Pb);if(o===Mt.PENDING)return;let s=r.mode;(s===oe.COLUMBUS_VIEW||s===oe.SCENE2D)&&(r.screenSpaceCameraController.enableTranslate=!1),(s===oe.COLUMBUS_VIEW||s===oe.SCENE3D)&&(r.screenSpaceCameraController.enableTilt=!1);let a=o!==Mt.FAILED?Pb:void 0;e._entityView=new pz(t,r,r.ellipsoid),e._entityView.update(n,a),e._needTrackedEntityUpdate=!1}var uRe=_r;function l4t(e){let t=document.createElement("div");t.className="cesium-viewer-cesium3DTilesInspectorContainer",e.container.appendChild(t);let n=new nW(t,e.scene);Object.defineProperties(e,{cesium3DTilesInspector:{get:function(){return n}}})}var fRe=l4t;function u4t(e){let t=document.createElement("div");t.className="cesium-viewer-cesiumInspectorContainer",e.container.appendChild(t);let n=new uW(t,e.scene);Object.defineProperties(e,{cesiumInspector:{get:function(){return n}}})}var dRe=u4t;function f4t(e,t){t=y(t,y.EMPTY_OBJECT);let n=!0,i=y(t.flyToOnDrop,!0),r=new be,o=y(t.clearOnDrop,!0),s=y(t.dropTarget,e.container),a=y(t.clampToGround,!0),c=t.proxy;s=li(s),Object.defineProperties(e,{dropTarget:{get:function(){return s},set:function(f){hRe(s,l),s=f,tie(s,l)}},dropEnabled:{get:function(){return n},set:function(f){f!==n&&(f?tie(s,l):hRe(s,l),n=f)}},dropError:{get:function(){return r}},clearOnDrop:{get:function(){return o},set:function(f){o=f}},flyToOnDrop:{get:function(){return i},set:function(f){i=f}},proxy:{get:function(){return c},set:function(f){c=f}},clampToGround:{get:function(){return a},set:function(f){a=f}}});function l(f){RA(f),o&&(e.entities.removeAll(),e.dataSources.removeAll());let d=f.dataTransfer.files,p=d.length;for(let _=0;_<p;_++){let m=d[_],x=new FileReader;x.onload=d4t(e,m,c,a),x.onerror=h4t(e,m),x.readAsText(m)}}tie(s,l),e.destroy=w6(e,e.destroy,function(){e.dropEnabled=!1}),e._handleDrop=l}function RA(e){e.stopPropagation(),e.preventDefault()}function hRe(e,t){let n=e;u(n)&&(n.removeEventListener("drop",t,!1),n.removeEventListener("dragenter",RA,!1),n.removeEventListener("dragover",RA,!1),n.removeEventListener("dragexit",RA,!1))}function tie(e,t){e.addEventListener("drop",t,!1),e.addEventListener("dragenter",RA,!1),e.addEventListener("dragover",RA,!1),e.addEventListener("dragexit",RA,!1)}function d4t(e,t,n,i){let r=e.scene;return function(o){let s=t.name;try{let a;if(/\.czml$/i.test(s))a=w8.load(JSON.parse(o.target.result),{sourceUri:s});else if(/\.geojson$/i.test(s)||/\.json$/i.test(s)||/\.topojson$/i.test(s))a=_5.load(JSON.parse(o.target.result),{sourceUri:s,clampToGround:i});else if(/\.(kml|kmz)$/i.test(s))a=G5.load(t,{sourceUri:s,proxy:n,camera:r.camera,canvas:r.canvas,clampToGround:i,screenOverlayContainer:e.container});else if(/\.gpx$/i.test(s))a=P5.load(t,{sourceUri:s,proxy:n});else{e.dropError.raiseEvent(e,s,`Unrecognized file: ${s}`);return}u(a)&&e.dataSources.add(a).then(function(c){e.flyToOnDrop&&e.flyTo(c)}).catch(function(c){e.dropError.raiseEvent(e,s,c)})}catch(a){e.dropError.raiseEvent(e,s,a)}}}function h4t(e,t){return function(n){e.dropError.raiseEvent(e,t.name,n.target.error)}}var mRe=f4t;function m4t(e,t){t=y(t,y.EMPTY_OBJECT);let n=new RW({scene:e.scene,container:e.bottomContainer,lowFrameRateMessage:t.lowFrameRateMessage});Object.defineProperties(e,{performanceWatchdog:{get:function(){return n}}})}var pRe=m4t;function _Re(e){let t=e.split(`
|
|
19087
19087
|
`),n;for(n=0;n<t.length&&!t[n].match(/\S/);n++);if(n===t.length)return"";let i="",r=/^\s*/,s=t[n].match(r)[0].length;for(let a=n;a<t.length;a++){let c=t[a];c.match(r)[0].length>=s&&(c=c.slice(s)),i+=`${c}
|
|
19088
19088
|
`}return i}function Ch(e){this._scene=e,this._voxelPrimitive=void 0,this._customShaderCompilationRemoveCallback=void 0,this._definedProperties=[],this._getPrimitiveFunctions=[],this._modelMatrixReady=!1;let t=this;function n(r){let{name:o,initialValue:s}=r;t._definedProperties.push(o);let a=r.setPrimitiveFunction;a===!0&&(a=function(f){t._voxelPrimitive[o]=f});let c=r.getPrimitiveFunction;c===!0&&(c=function(){t[o]=t._voxelPrimitive[o]}),u(c)&&t._getPrimitiveFunctions.push(c);let l=Se.observable();return Se.defineProperty(t,o,{get:function(){return l()},set:function(f){typeof s=="number"&&typeof f=="string"&&(f=Number(f),isNaN(f)&&(f=s)),typeof s=="boolean"&&typeof f=="number"&&(f=f===1),l(f),u(a)&&u(t._voxelPrimitive)&&(a(f),e.requestRender())}}),t[o]=s,l}function i(r,o){return function(s){let a=t._voxelPrimitive[r].clone();a[o]=s,t._voxelPrimitive[r]=a}}n({name:"inspectorVisible",initialValue:!0}),n({name:"displayVisible",initialValue:!1}),n({name:"transformVisible",initialValue:!1}),n({name:"boundsVisible",initialValue:!1}),n({name:"clippingVisible",initialValue:!1}),n({name:"shaderVisible",initialValue:!1}),n({name:"shaderString",initialValue:"",getPrimitiveFunction:function(){let r=t._voxelPrimitive.customShader.fragmentShaderText;t.shaderString=_Re(r)}}),n({name:"shaderCompilationMessage",initialValue:""}),n({name:"shaderCompilationSuccess",initialValue:!0}),n({name:"depthTest",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"show",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"disableUpdate",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"debugDraw",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"jitter",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"nearestSampling",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"screenSpaceError",initialValue:4,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"stepSize",initialValue:1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"shapeIsBox",getPrimitiveFunction:function(){let r=t._voxelPrimitive.shape;t.shapeIsBox=r===Mr.BOX}}),n({name:"shapeIsEllipsoid",getPrimitiveFunction:function(){let r=t._voxelPrimitive.shape;t.shapeIsEllipsoid=r===Mr.ELLIPSOID}}),n({name:"shapeIsCylinder",getPrimitiveFunction:function(){let r=t._voxelPrimitive.shape;t.shapeIsCylinder=r===Mr.CYLINDER}}),n({name:"boundsBoxMaxX",initialValue:0,setPrimitiveFunction:i("maxBounds","x"),getPrimitiveFunction:function(){t.boundsBoxMaxX=t._voxelPrimitive.maxBounds.x}}),n({name:"boundsBoxMinX",initialValue:0,setPrimitiveFunction:i("minBounds","x"),getPrimitiveFunction:function(){t.boundsBoxMinX=t._voxelPrimitive.minBounds.x}}),n({name:"boundsBoxMaxY",initialValue:0,setPrimitiveFunction:i("maxBounds","y"),getPrimitiveFunction:function(){t.boundsBoxMaxY=t._voxelPrimitive.maxBounds.y}}),n({name:"boundsBoxMinY",initialValue:0,setPrimitiveFunction:i("minBounds","y"),getPrimitiveFunction:function(){t.boundsBoxMinY=t._voxelPrimitive.minBounds.y}}),n({name:"boundsBoxMaxZ",initialValue:0,setPrimitiveFunction:i("maxBounds","z"),getPrimitiveFunction:function(){t.boundsBoxMaxZ=t._voxelPrimitive.maxBounds.z}}),n({name:"boundsBoxMinZ",initialValue:0,setPrimitiveFunction:i("minBounds","z"),getPrimitiveFunction:function(){t.boundsBoxMinZ=t._voxelPrimitive.minBounds.z}}),n({name:"boundsEllipsoidMaxLongitude",initialValue:0,setPrimitiveFunction:i("maxBounds","x"),getPrimitiveFunction:function(){t.boundsEllipsoidMaxLongitude=t._voxelPrimitive.maxBounds.x}}),n({name:"boundsEllipsoidMinLongitude",initialValue:0,setPrimitiveFunction:i("minBounds","x"),getPrimitiveFunction:function(){t.boundsEllipsoidMinLongitude=t._voxelPrimitive.minBounds.x}}),n({name:"boundsEllipsoidMaxLatitude",initialValue:0,setPrimitiveFunction:i("maxBounds","y"),getPrimitiveFunction:function(){t.boundsEllipsoidMaxLatitude=t._voxelPrimitive.maxBounds.y}}),n({name:"boundsEllipsoidMinLatitude",initialValue:0,setPrimitiveFunction:i("minBounds","y"),getPrimitiveFunction:function(){t.boundsEllipsoidMinLatitude=t._voxelPrimitive.minBounds.y}}),n({name:"boundsEllipsoidMaxHeight",initialValue:0,setPrimitiveFunction:i("maxBounds","z"),getPrimitiveFunction:function(){t.boundsEllipsoidMaxHeight=t._voxelPrimitive.maxBounds.z}}),n({name:"boundsEllipsoidMinHeight",initialValue:0,setPrimitiveFunction:i("minBounds","z"),getPrimitiveFunction:function(){t.boundsEllipsoidMinHeight=t._voxelPrimitive.minBounds.z}}),n({name:"boundsCylinderMaxRadius",initialValue:0,setPrimitiveFunction:i("maxBounds","x"),getPrimitiveFunction:function(){t.boundsCylinderMaxRadius=t._voxelPrimitive.maxBounds.x}}),n({name:"boundsCylinderMinRadius",initialValue:0,setPrimitiveFunction:i("minBounds","x"),getPrimitiveFunction:function(){t.boundsCylinderMinRadius=t._voxelPrimitive.minBounds.x}}),n({name:"boundsCylinderMaxHeight",initialValue:0,setPrimitiveFunction:i("maxBounds","y"),getPrimitiveFunction:function(){t.boundsCylinderMaxHeight=t._voxelPrimitive.maxBounds.y}}),n({name:"boundsCylinderMinHeight",initialValue:0,setPrimitiveFunction:i("minBounds","y"),getPrimitiveFunction:function(){t.boundsCylinderMinHeight=t._voxelPrimitive.minBounds.y}}),n({name:"boundsCylinderMaxAngle",initialValue:0,setPrimitiveFunction:i("maxBounds","z"),getPrimitiveFunction:function(){t.boundsCylinderMaxAngle=t._voxelPrimitive.maxBounds.z}}),n({name:"boundsCylinderMinAngle",initialValue:0,setPrimitiveFunction:i("minBounds","z"),getPrimitiveFunction:function(){t.boundsCylinderMinAngle=t._voxelPrimitive.minBounds.z}}),n({name:"clippingBoxMaxX",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","x"),getPrimitiveFunction:function(){t.clippingBoxMaxX=t._voxelPrimitive.maxClippingBounds.x}}),n({name:"clippingBoxMinX",initialValue:0,setPrimitiveFunction:i("minClippingBounds","x"),getPrimitiveFunction:function(){t.clippingBoxMinX=t._voxelPrimitive.minClippingBounds.x}}),n({name:"clippingBoxMaxY",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","y"),getPrimitiveFunction:function(){t.clippingBoxMaxY=t._voxelPrimitive.maxClippingBounds.y}}),n({name:"clippingBoxMinY",initialValue:0,setPrimitiveFunction:i("minClippingBounds","y"),getPrimitiveFunction:function(){t.clippingBoxMinY=t._voxelPrimitive.minClippingBounds.y}}),n({name:"clippingBoxMaxZ",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","z"),getPrimitiveFunction:function(){t.clippingBoxMaxZ=t._voxelPrimitive.maxClippingBounds.z}}),n({name:"clippingBoxMinZ",initialValue:0,setPrimitiveFunction:i("minClippingBounds","z"),getPrimitiveFunction:function(){t.clippingBoxMinZ=t._voxelPrimitive.minClippingBounds.z}}),n({name:"clippingEllipsoidMaxLongitude",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","x"),getPrimitiveFunction:function(){t.clippingEllipsoidMaxLongitude=t._voxelPrimitive.maxClippingBounds.x}}),n({name:"clippingEllipsoidMinLongitude",initialValue:0,setPrimitiveFunction:i("minClippingBounds","x"),getPrimitiveFunction:function(){t.clippingEllipsoidMinLongitude=t._voxelPrimitive.minClippingBounds.x}}),n({name:"clippingEllipsoidMaxLatitude",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","y"),getPrimitiveFunction:function(){t.clippingEllipsoidMaxLatitude=t._voxelPrimitive.maxClippingBounds.y}}),n({name:"clippingEllipsoidMinLatitude",initialValue:0,setPrimitiveFunction:i("minClippingBounds","y"),getPrimitiveFunction:function(){t.clippingEllipsoidMinLatitude=t._voxelPrimitive.minClippingBounds.y}}),n({name:"clippingEllipsoidMaxHeight",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","z"),getPrimitiveFunction:function(){t.clippingEllipsoidMaxHeight=t._voxelPrimitive.maxClippingBounds.z}}),n({name:"clippingEllipsoidMinHeight",initialValue:0,setPrimitiveFunction:i("minClippingBounds","z"),getPrimitiveFunction:function(){t.clippingEllipsoidMinHeight=t._voxelPrimitive.minClippingBounds.z}}),n({name:"clippingCylinderMaxRadius",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","x"),getPrimitiveFunction:function(){t.clippingCylinderMaxRadius=t._voxelPrimitive.maxClippingBounds.x}}),n({name:"clippingCylinderMinRadius",initialValue:0,setPrimitiveFunction:i("minClippingBounds","x"),getPrimitiveFunction:function(){t.clippingCylinderMinRadius=t._voxelPrimitive.minClippingBounds.x}}),n({name:"clippingCylinderMaxHeight",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","y"),getPrimitiveFunction:function(){t.clippingCylinderMaxHeight=t._voxelPrimitive.maxClippingBounds.y}}),n({name:"clippingCylinderMinHeight",initialValue:0,setPrimitiveFunction:i("minClippingBounds","y"),getPrimitiveFunction:function(){t.clippingCylinderMinHeight=t._voxelPrimitive.minClippingBounds.y}}),n({name:"clippingCylinderMaxAngle",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","z"),getPrimitiveFunction:function(){t.clippingCylinderMaxAngle=t._voxelPrimitive.maxClippingBounds.z}}),n({name:"clippingCylinderMinAngle",initialValue:0,setPrimitiveFunction:i("minClippingBounds","z"),getPrimitiveFunction:function(){t.clippingCylinderMinAngle=t._voxelPrimitive.minClippingBounds.z}}),n({name:"translationX",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&L_(t)},getPrimitiveFunction:function(){t.translationX=M.getTranslation(t._voxelPrimitive.modelMatrix,new h).x}}),n({name:"translationY",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&L_(t)},getPrimitiveFunction:function(){t.translationY=M.getTranslation(t._voxelPrimitive.modelMatrix,new h).y}}),n({name:"translationZ",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&L_(t)},getPrimitiveFunction:function(){t.translationZ=M.getTranslation(t._voxelPrimitive.modelMatrix,new h).z}}),n({name:"scaleX",initialValue:1,setPrimitiveFunction:function(){t._modelMatrixReady&&L_(t)},getPrimitiveFunction:function(){t.scaleX=M.getScale(t._voxelPrimitive.modelMatrix,new h).x}}),n({name:"scaleY",initialValue:1,setPrimitiveFunction:function(){t._modelMatrixReady&&L_(t)},getPrimitiveFunction:function(){t.scaleY=M.getScale(t._voxelPrimitive.modelMatrix,new h).y}}),n({name:"scaleZ",initialValue:1,setPrimitiveFunction:function(){t._modelMatrixReady&&L_(t)},getPrimitiveFunction:function(){t.scaleZ=M.getScale(t._voxelPrimitive.modelMatrix,new h).z}}),n({name:"angleX",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&L_(t)}}),n({name:"angleY",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&L_(t)}}),n({name:"angleZ",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&L_(t)}})}var p4t=new h,_4t=new h,g4t=new ks,y4t=new $;function L_(e){let t=h.fromElements(e.translationX,e.translationY,e.translationZ,p4t),n=h.fromElements(e.scaleX,e.scaleY,e.scaleZ,_4t),i=g4t;i.heading=e.angleX,i.pitch=e.angleY,i.roll=e.angleZ;let r=$.fromHeadingPitchRoll(i,y4t),o=$.multiplyByScale(r,n,r);e._voxelPrimitive.modelMatrix=M.fromRotationTranslation(o,t,e._voxelPrimitive.modelMatrix)}Object.defineProperties(Ch.prototype,{scene:{get:function(){return this._scene}},voxelPrimitive:{get:function(){return this._voxelPrimitive},set:function(e){if(u(this._customShaderCompilationRemoveCallback)&&this._customShaderCompilationRemoveCallback(),u(e)){this._voxelPrimitive=e;let t=this;t._customShaderCompilationRemoveCallback=t._voxelPrimitive.customShaderCompilationEvent.addEventListener(function(n){let i=t._voxelPrimitive.customShader.fragmentShaderText;t.shaderString=_Re(i),u(n)?(t.shaderCompilationMessage=n.message,t.shaderCompilationSuccess=!1):(t.shaderCompilationMessage="Shader compiled successfully!",t.shaderCompilationSuccess=!0)}),t._modelMatrixReady=!1;for(let n=0;n<t._getPrimitiveFunctions.length;n++)t._getPrimitiveFunctions[n]();t._modelMatrixReady=!0,L_(t)}}}});Ch.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};Ch.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};Ch.prototype.toggleTransform=function(){this.transformVisible=!this.transformVisible};Ch.prototype.toggleBounds=function(){this.boundsVisible=!this.boundsVisible};Ch.prototype.toggleClipping=function(){this.clippingVisible=!this.clippingVisible};Ch.prototype.toggleShader=function(){this.shaderVisible=!this.shaderVisible};Ch.prototype.compileShader=function(){u(this._voxelPrimitive)&&(this._voxelPrimitive.customShader=new _1({fragmentShaderText:this.shaderString,uniforms:this._voxelPrimitive.customShader.uniforms}))};Ch.prototype.shaderEditorKeyPress=function(e,t){if(t.keyCode===9){t.preventDefault();let n=t.target,i=n.selectionStart,r=n.selectionEnd,o=r,a=n.value.slice(i,r).split(`
|
|
19089
19089
|
`),c=a.length,l;if(t.shiftKey)for(l=0;l<c;++l)a[l][0]===" "&&(a[l][1]===" "?(a[l]=a[l].substr(2),o-=2):(a[l]=a[l].substr(1),o-=1));else for(l=0;l<c;++l)a[l]=` ${a[l]}`,o+=2;let f=a.join(`
|
|
19090
|
-
`);n.value=n.value.slice(0,i)+f+n.value.slice(r),n.selectionStart=i!==r?i:o,n.selectionEnd=o}else t.ctrlKey&&(t.keyCode===10||t.keyCode===13)&&this.compileShader();return!0};Ch.prototype.isDestroyed=function(){return!1};Ch.prototype.destroy=function(){let e=this;return this._definedProperties.forEach(function(t){Se.getObservable(e,t).dispose()}),he(this)};var $W=Ch;function QW(e,t){e=li(e);let n=document.createElement("div"),i=new $W(t);this._viewModel=i,this._container=e,this._element=n;let r=document.createElement("div");r.textContent="Voxel Inspector",r.className="cesium-cesiumInspector-button",r.setAttribute("data-bind","click: toggleInspector"),n.appendChild(r),n.className="cesium-cesiumInspector cesium-VoxelInspector",n.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),e.appendChild(n);let o=document.createElement("div");o.className="cesium-cesiumInspector-dropDown",n.appendChild(o);let s=xl.createSection,a=xl.createCheckbox,c=xl.createRangeInput,l=xl.createButton,f=s(o,"Display","displayVisible","toggleDisplay"),d=s(o,"Transform","transformVisible","toggleTransform"),p=s(o,"Bounds","boundsVisible","toggleBounds"),_=s(o,"Clipping","clippingVisible","toggleClipping"),m=s(o,"Shader","shaderVisible","toggleShader");f.appendChild(a("Depth Test","depthTest")),f.appendChild(a("Show","show")),f.appendChild(a("Disable Update","disableUpdate")),f.appendChild(a("Debug Draw","debugDraw")),f.appendChild(a("Jitter","jitter")),f.appendChild(a("Nearest Sampling","nearestSampling")),f.appendChild(c("Screen Space Error","screenSpaceError",0,128)),f.appendChild(c("Step Size","stepSize",0,2));let x=10,b=10,T=I.PI;d.appendChild(c("Translation X","translationX",-x,+x)),d.appendChild(c("Translation Y","translationY",-x,+x)),d.appendChild(c("Translation Z","translationZ",-x,+x)),d.appendChild(c("Scale X","scaleX",0,+b)),d.appendChild(c("Scale Y","scaleY",0,+b)),d.appendChild(c("Scale Z","scaleZ",0,+b)),d.appendChild(c("Heading","angleX",-T,+T)),d.appendChild(c("Pitch","angleY",-T,+T)),d.appendChild(c("Roll","angleZ",-T,+T));let C=Mr.getMinBounds(Mr.BOX),A=Mr.getMaxBounds(Mr.BOX),E=h.fromElements(Mr.getMinBounds(Mr.ELLIPSOID).x,Mr.getMinBounds(Mr.ELLIPSOID).y,-ne.WGS84.maximumRadius,new h),v=h.fromElements(Mr.getMaxBounds(Mr.ELLIPSOID).x,Mr.getMaxBounds(Mr.ELLIPSOID).y,1e7,new h),D=Mr.getMinBounds(Mr.CYLINDER),R=Mr.getMaxBounds(Mr.CYLINDER);R1("Max X","Min X","Max Y","Min Y","Max Z","Min Z","boundsBoxMaxX","boundsBoxMinX","boundsBoxMaxY","boundsBoxMinY","boundsBoxMaxZ","boundsBoxMinZ",C,A,"shapeIsBox",p),R1("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","boundsEllipsoidMaxLongitude","boundsEllipsoidMinLongitude","boundsEllipsoidMaxLatitude","boundsEllipsoidMinLatitude","boundsEllipsoidMaxHeight","boundsEllipsoidMinHeight",E,v,"shapeIsEllipsoid",p),R1("Max Radius","Min Radius","Max Height","Min Height","Max Angle","Min Angle","boundsCylinderMaxRadius","boundsCylinderMinRadius","boundsCylinderMaxHeight","boundsCylinderMinHeight","boundsCylinderMaxAngle","boundsCylinderMinAngle",D,R,"shapeIsCylinder",p),R1("Max X","Min X","Max Y","Min Y","Max Z","Min Z","clippingBoxMaxX","clippingBoxMinX","clippingBoxMaxY","clippingBoxMinY","clippingBoxMaxZ","clippingBoxMinZ",C,A,"shapeIsBox",_),R1("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","clippingEllipsoidMaxLongitude","clippingEllipsoidMinLongitude","clippingEllipsoidMaxLatitude","clippingEllipsoidMinLatitude","clippingEllipsoidMaxHeight","clippingEllipsoidMinHeight",E,v,"shapeIsEllipsoid",_),R1("Max Radius","Min Radius","Max Height","Min Height","Max Angle","Min Angle","clippingCylinderMaxRadius","clippingCylinderMinRadius","clippingCylinderMaxHeight","clippingCylinderMinHeight","clippingCylinderMaxAngle","clippingCylinderMinAngle",D,R,"shapeIsCylinder",_);let O=document.createElement("div");m.appendChild(O);let L=document.createElement("textarea");L.setAttribute("data-bind","textInput: shaderString, event: { keydown: shaderEditorKeyPress }"),O.className="cesium-cesiumInspector-styleEditor",O.appendChild(L);let N=l("Compile (Ctrl+Enter)","compileShader");O.appendChild(N);let g=document.createElement("label");g.style.display="block",g.setAttribute("data-bind","text: shaderCompilationMessage, style: {color: shaderCompilationSuccess ? 'green' : 'red'}"),O.appendChild(g),Se.applyBindings(i,n)}Object.defineProperties(QW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});QW.prototype.isDestroyed=function(){return!1};QW.prototype.destroy=function(){return Se.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),he(this)};function R1(e,t,n,i,r,o,s,a,c,l,f,d,p,_,m,x){let b=xl.createRangeInput,T=p,C=_,A=x.appendChild(document.createElement("div"));A.setAttribute("data-bind",`if: ${m}`),A.appendChild(b(e,s,T.x,C.x)),A.appendChild(b(t,a,T.x,C.x)),A.appendChild(b(n,c,T.y,C.y)),A.appendChild(b(i,l,T.y,C.y)),A.appendChild(b(r,f,T.z,C.z)),A.appendChild(b(o,d,T.z,C.z))}var JW=QW;function x4t(e){let t=document.createElement("div");t.className="cesium-viewer-voxelInspectorContainer",e.container.appendChild(t);let n=new JW(t,e.scene);Object.defineProperties(e,{voxelInspector:{get:function(){return n}}})}var gRe=x4t;globalThis.CESIUM_VERSION="1.122.0";globalThis.MAPGIS_VERSION="17.6.4";var Hkr="1.122.0",Gkr="17.6.4";export{Bh as AlphaMode,rk as AlphaPipelineStage,n4 as AnchorPointDirect,i4 as AnchorPointIndirect,$7 as Animation,Q7 as AnimationViewModel,cr as Appearance,Hi as ApproximateTerrainHeights,JEe as ArcGISTiledElevationTerrainProvider,g_ as ArcGisBaseMapType,sb as ArcGisMapServerImageryProvider,lh as ArcGisMapService,Rn as ArcType,Hl as ArticulationStageType,Ut as AssociativeArray,M6 as Atmosphere,N4 as AtmospherePipelineStage,xn as AttributeCompression,n2e as AttributeSurfacePrimitive,Gt as AttributeType,L6 as AutoExposure,G0 as AutomaticUniforms,wn as Axis,jb as AxisAlignedBoundingBox,_4 as B3dmLoader,TS as B3dmParser,tW as BaseLayerPicker,J7 as BaseLayerPickerViewModel,mE as BatchTable,iy as BatchTableHierarchy,Pu as BatchTexture,ok as BatchTexturePipelineStage,so as Billboard,Fd as BillboardCollection,Cl as BillboardGraphics,YM as BillboardVisualizer,tSe as BingMapsGeocoderService,F6 as BingMapsImageryProvider,M2 as BingMapsStyle,Gc as BlendEquation,Eo as BlendFunction,Do as BlendOption,vn as BlendingState,$e as BoundingRectangle,ce as BoundingSphere,Mt as BoundingSphereState,ly as BoundingVolumeSemantics,Fve as BoxEmitter,Sl as BoxGeometry,Z3 as BoxGeometryUpdater,wE as BoxGraphics,ep as BoxOutlineGeometry,k6 as BrdfLutGenerator,et as Buffer,cS as BufferLoader,Oe as BufferUsage,lk as CPUStylingPipelineStage,$3 as CallbackPositionProperty,dp as CallbackProperty,Ui as Camera,fH as CameraEventAggregator,Or as CameraEventType,iH as CameraFlightPath,G as Cartesian2,h as Cartesian3,ie as Cartesian4,ue as Cartographic,nSe as CartographicGeocoderService,rSe as CatmullRomSpline,ty as Cesium3DContentGroup,nm as Cesium3DTile,oy as Cesium3DTileBatchTable,kl as Cesium3DTileColorBlendMode,pwe as Cesium3DTileContent,hg as Cesium3DTileContentFactory,gi as Cesium3DTileContentState,wr as Cesium3DTileContentType,A0e as Cesium3DTileCustomContent,nc as Cesium3DTileFeature,Ta as Cesium3DTileFeatureTable,gf as Cesium3DTileOptimizationHint,YT as Cesium3DTileOptimizations,sr as Cesium3DTilePass,Im as Cesium3DTilePassState,ix as Cesium3DTilePointFeature,Hr as Cesium3DTileRefine,Gw as Cesium3DTileStyle,QS as Cesium3DTileStyleEngine,aW as Cesium3DTilesInspector,oW as Cesium3DTilesInspectorViewModel,Pwe as Cesium3DTilesVoxelProvider,oa as Cesium3DTileset,iv as Cesium3DTilesetBaseTraversal,KS as Cesium3DTilesetCache,LE as Cesium3DTilesetGraphics,ZS as Cesium3DTilesetHeatmap,Xy as Cesium3DTilesetMetadata,nv as Cesium3DTilesetMostDetailedTraversal,rv as Cesium3DTilesetSkipTraversal,Nu as Cesium3DTilesetStatistics,sc as Cesium3DTilesetTraversal,JU as Cesium3DTilesetVisualizer,uW as CesiumInspector,cW as CesiumInspectorViewModel,Aw as CesiumTerrainProvider,N7 as CesiumWidget,ar as Check,cI as CheckerboardMaterialProperty,yH as CircleEmitter,hSe as CircleGeometry,mSe as CircleOutlineGeometry,dV as ClassificationModelDrawCommand,sk as ClassificationPipelineStage,uD as ClassificationPrimitive,ti as ClassificationType,oi as ClearCommand,EV as ClipFillUtil,r2e as ClippingGeometry,k7 as ClippingGeometryFS,O_ as ClippingGeometryType,V7 as ClippingGeometryVS,U7 as ClippingGltfFS,z7 as ClippingGltfVS,by as ClippingPlane,So as ClippingPlaneCollection,KD as ClippingPolygon,xf as ClippingPolygonCollection,_U as ClippingType,jp as Clock,qs as ClockRange,mo as ClockStep,q7 as ClockViewModel,Fwe as CloudCollection,H2 as CloudType,z as Color,zl as ColorBlendMode,y7 as ColorCorrection,B9 as ColorCurrection,cn as ColorGeometryInstanceAttribute,un as ColorMaterialProperty,D2e as Command,q as ComponentDatatype,xp as Composite3DTileContent,F0e as CompositeEntityCollection,dI as CompositeMaterialProperty,Ic as CompositePositionProperty,Ql as CompositeProperty,tL as CompressedTextureBuffer,Ap as ComputeCommand,I6 as ComputeEngine,dH as ConditionsExpression,Bwe as ConeEmitter,DO as Config,Su as ConstantPositionProperty,Bi as ConstantProperty,A4 as ConstantSpline,oB as ContentMetadata,CU as Context,Qt as ContextLimits,G8 as CoplanarPolygonGeometry,fy as CoplanarPolygonGeometryLibrary,Fh as CoplanarPolygonOutlineGeometry,Ir as CornerType,r4 as CorrelationGroup,Yg as CorridorGeometry,Br as CorridorGeometryLibrary,l8 as CorridorGeometryUpdater,PE as CorridorGraphics,c8 as CorridorOutlineGeometry,Wt as Credit,BH as CreditDisplay,jc as CubeMap,rL as CubeMapFace,dE as CubicRealPolynomial,xi as CullFace,rs as CullingVolume,fh as CumulusCloud,m8 as CustomDataSource,pSe as CustomHeightmapTerrainProvider,_1 as CustomShader,By as CustomShaderMode,_k as CustomShaderPipelineStage,kT as CustomShaderTranslucencyMode,SU as CuttingFilterUtil,Bg as CylinderGeometry,ov as CylinderGeometryLibrary,_8 as CylinderGeometryUpdater,IE as CylinderGraphics,p8 as CylinderOutlineGeometry,w8 as CzmlDataSource,js as DataSource,qp as DataSourceClock,P8 as DataSourceCollection,dz as DataSourceDisplay,m1e as DebugAppearance,m0 as DebugCameraPrimitive,VH as DebugInspector,zH as DebugModelMatrixPrimitive,gSe as DefaultProxy,wl as DepthFunction,jH as DepthPlane,gk as DequantizationPipelineStage,$f as DerivedCommand,me as DeveloperError,XH as DeviceOrientationCameraController,T1e as DirectionalLight,N2 as DiscardEmptyTileImagePolicy,O6 as DiscardMissingTileImagePolicy,en as DistanceDisplayCondition,Ti as DistanceDisplayConditionGeometryInstanceAttribute,ww as DoubleEndedPriorityQueue,iU as DoublyLinkedList,Sp as DracoLoader,Xe as DrawCommand,kw as DynamicAtmosphereLightingType,Fv as DynamicGeometryBatch,$i as DynamicGeometryUpdater,DM as EarthOrientationParameters,Ob as EarthOrientationParametersSample,Xs as EasingFunction,zu as EllipseGeometry,Mf as EllipseGeometryLibrary,k8 as EllipseGeometryUpdater,RE as EllipseGraphics,$d as EllipseOutlineGeometry,ne as Ellipsoid,j0 as EllipsoidGeodesic,Os as EllipsoidGeometry,V8 as EllipsoidGeometryUpdater,OE as EllipsoidGraphics,Vl as EllipsoidOutlineGeometry,ZH as EllipsoidPrimitive,Yc as EllipsoidRhumbLine,Lm as EllipsoidSurfaceAppearance,LP as EllipsoidSurfaceVoxelAppearance,XV as EllipsoidSurfaceVoxelAppearanceFS,YV as EllipsoidSurfaceVoxelAppearanceVS,Ss as EllipsoidTangentPlane,u0 as EllipsoidTerrainProvider,mx as EllipsoidalOccluder,Td as Empty3DTileContent,bi as EncodedCartesian3,is as Entity,Yd as EntityCluster,uc as EntityCollection,pz as EntityView,be as Event,Gs as EventHelper,Zh as Expression,Vt as ExpressionNodeType,Xd as ExtrapolationType,mn as FeatureDetection,BT as FeatureIdPipelineStage,l2e as FlattenTool,eG as Fog,ke as ForEach,Ng as FrameBufferType,tG as FrameRateMonitor,nG as FrameState,Zr as Framebuffer,Wi as FramebufferManager,iG as FrustumCommands,Iw as FrustumGeometry,r6 as FrustumOutlineGeometry,As as Fullscreen,mW as FullscreenButton,dW as FullscreenButtonViewModel,_5 as GeoJsonDataSource,y4 as GeoJsonLoader,GC as GeocodeType,gW as Geocoder,v2 as GeocoderService,pW as GeocoderViewModel,Ar as GeographicProjection,zr as GeographicTilingScheme,Dt as Geometry,LU as Geometry3DTileContent,De as GeometryAttribute,Bn as GeometryAttributes,SSe as GeometryFactory,Rt as GeometryInstance,Pl as GeometryInstanceAttribute,Ln as GeometryOffsetAttribute,_i as GeometryPipeline,Ck as GeometryPipelineStage,Ph as GeometryType,Qi as GeometryUpdater,Xv as GeometryUpdaterSet,iz as GeometryVisualizer,$w as GetFeatureInfoFormat,MG as Globe,LG as GlobeDepth,o2e as GlobeEffect,cG as GlobeSurfaceShaderSet,Nm as GlobeSurfaceTile,CG as GlobeSurfaceTileProvider,AG as GlobeTranslucency,NG as GlobeTranslucencyFramebuffer,FG as GlobeTranslucencyState,oP as GltfBufferViewLoader,sP as GltfDracoLoader,s4 as GltfGpmLoader,gP as GltfGpmLocal,aP as GltfImageLoader,cP as GltfIndexBufferLoader,uP as GltfJsonLoader,il as GltfLoader,Tf as GltfLoaderUtil,u4 as GltfMeshPrimitiveGpmLoader,QB as GltfStructuralMetadataLoader,fP as GltfTextureLoader,dP as GltfVertexBufferLoader,yDe as GoogleEarthEnterpriseImageryProvider,IH as GoogleEarthEnterpriseMapsProvider,Jx as GoogleEarthEnterpriseMetadata,w2 as GoogleEarthEnterpriseTerrainData,LSe as GoogleEarthEnterpriseTerrainProvider,a6 as GoogleEarthEnterpriseTileInformation,Rw as GoogleMaps,P5 as GpxDataSource,D0 as GregorianDate,xDe as GridImageryProvider,CI as GridMaterialProperty,vi as GroundGeometryUpdater,EE as GroundPolylineGeometry,ap as GroundPolylinePrimitive,ec as GroundPrimitive,s2e as GroundPrimitiveRectangleGenerater,NP as GroupMetadata,qh as HashMap,ru as HeadingPitchRange,ks as HeadingPitchRoll,SO as Heap,rt as HeightReference,Am as HeightmapEncoding,fl as HeightmapTerrainData,b2 as HeightmapTessellator,y8 as HermitePolynomialApproximation,MT as HermiteSpline,$P as HilbertOrder,bW as HomeButton,yW as HomeButtonViewModel,fr as HorizontalOrigin,Z2e as I3SBuildingSceneLayerExplorer,CW as I3SBuildingSceneLayerExplorerViewModel,E_ as I3SDataProvider,BG as I3SDecoder,kG as I3SFeature,UG as I3SField,uR as I3SGeometry,s1 as I3SLayer,fR as I3SNode,jG as I3SStatistics,qG as I3SSublayer,GG as I3SSymbology,C4 as I3dmLoader,CS as I3dmParser,d6 as Iau2000Orientation,RM as Iau2006XysData,JA as Iau2006XysSample,h6 as IauOrientationAxes,f6 as IauOrientationParameters,Q0 as ImageBasedLighting,B4 as ImageBasedLightingPipelineStage,iT as ImageMaterialProperty,nR as Imagery,Zs as ImageryLayer,SG as ImageryLayerCollection,y_ as ImageryLayerFeatureInfo,Zu as ImageryProvider,tr as ImageryState,eI as Implicit3DTileContent,QP as ImplicitAvailabilityBitstream,JP as ImplicitMetadataView,ia as ImplicitSubdivisionScheme,fv as ImplicitSubtree,hH as ImplicitSubtreeCache,NU as ImplicitSubtreeMetadata,Zy as ImplicitTileCoordinates,Ky as ImplicitTileset,Ze as IndexDatatype,SW as InfoBox,AW as InfoBoxViewModel,xl as InspectorShared,qo as InstanceAttributeSemantic,ek as InstancingPipelineStage,k1 as InterceptorsUtil,ZSe as InterpolationAlgorithm,Ep as InterpolationType,Xt as Intersect,Mi as IntersectionTests,Zx as Intersections2D,Za as Interval,hR as InvertClassification,pp as Ion,p6 as IonGeocoderService,ub as IonImageryProvider,vu as IonResource,fb as IonWorldImageryStyle,Je as Iso8601,KG as JobScheduler,tl as JobType,Cy as JsonMetadataTable,Q as JulianDate,nL as KTX2Transcoder,_c as KeyboardEventModifier,Qr as KeyframeNode,I5 as KmlCamera,G5 as KmlDataSource,R5 as KmlLookAt,M5 as KmlTour,N5 as KmlTourFlyTo,F5 as KmlTourWait,JT as Label,Yh as LabelCollection,lp as LabelGraphics,Yo as LabelStyle,rz as LabelVisualizer,x8 as LagrangePolynomialApproximation,Ur as LeapSecond,PDe as Light,A0 as LightManager,tf as LightingMode,Sg as LightingModel,Ek as LightingPipelineStage,vv as LinearApproximation,OT as LinearSpline,MV as M3D10MetadataTable,OV as M3D20MetadataTable,lT as M3D21MetadataTable,rB as M3DAttContentFactory,cg as M3DAttParser,FV as M3DB3dmLoader,jT as M3DContentFactory,jy as M3DContentType,WV as M3DDataLoader,GV as M3DDataParser,NV as M3DGltfLoader,RV as M3DGltfParser,VV as M3DI3dmLoader,HV as M3DPntsLoader,UV as M3DPntsParser,xB as M3DTidParser,x2e as M3DTree,Gkr as MAPGIS_VERSION,Xc as ManagedArray,XS as MapGISM3D,Kl as MapGISM3DSet,bT as MapGISM3DTileContent,QV as MapGISM3DVoxelContent,YS as MapGISVoxelPrimitive,Yf as MapMode2D,$Se as MapProjection,RH as MapboxImageryProvider,RDe as MapboxStyleImageryProvider,Oi as Material,to as MaterialAppearance,vk as MaterialPipelineStage,ns as MaterialProperty,I as Math,Lr as Matrix2,$ as Matrix3,M as Matrix4,mR as Megatexture,l4 as MeshPrimitiveGpmLocal,xa as MetadataClass,gg as MetadataClassProperty,dn as MetadataComponentType,ai as MetadataEntity,XB as MetadataEnum,qB as MetadataEnumValue,$G as MetadataPicking,Pd as MetadataPickingPipelineStage,Wh as MetadataPipelineStage,Wl as MetadataSchema,mP as MetadataSchemaLoader,dv as MetadataSemantic,Gl as MetadataTable,rP as MetadataTableProperty,Yt as MetadataType,Y_ as MipmapHint,rc as Model,Xl as Model3DTileContent,Qk as ModelAlphaOptions,w4 as ModelAnimation,v4 as ModelAnimationChannel,P4 as ModelAnimationCollection,yf as ModelAnimationLoop,Ip as ModelAnimationState,U4 as ModelArticulation,k4 as ModelArticulationStage,j4 as ModelClippingGeometryPipelineStage,G4 as ModelClippingPlanesPipelineStage,X4 as ModelClippingPolygonsPipelineStage,FT as ModelColorPipelineStage,fn as ModelComponents,mV as ModelDrawCommand,gV as ModelDrawCommands,b2e as ModelExplosion,qk as ModelExplosionPipelineStage,I4 as ModelFeature,R4 as ModelFeatureTable,Kk as ModelFlattenPipelineStage,X0 as ModelGraphics,uV as ModelLightingOptions,tk as ModelMatrixUpdateStage,K4 as ModelNode,Yk as ModelPMPipelineStage,tV as ModelRenderResources,ik as ModelRuntimeNode,Zk as ModelRuntimePrimitive,wV as ModelSceneGraph,oV as ModelSilhouettePipelineStage,$k as ModelSkin,cV as ModelSplitterPipelineStage,DV as ModelStatistics,Wk as ModelStretchPipelineStage,xV as ModelSwipePipelineStage,Co as ModelType,hn as ModelUtility,sz as ModelVisualizer,e9 as Moon,Dk as MorphTargetsPipelineStage,QSe as MorphWeightSpline,KT as MortonOrder,WE as Multiple3DTileContent,m4 as MultisampleFramebuffer,DW as NavigationHelpButton,vW as NavigationHelpButtonViewModel,rn as NearFarScalar,KV as NetCDFLoader,ODe as NeverTileDiscardPolicy,lV as NodeRenderResources,nk as NodeStatisticsPipelineStage,ME as NodeTransformationProperty,Hk as OIDTexturePipelineStage,n9 as OIT,b6 as Occluder,Xr as OffsetGeometryInstanceAttribute,tve as OpenCageGeocoderService,gb as OpenStreetMapImageryProvider,R8 as OrderedGroundPrimitiveCollection,qn as OrientedBoundingBox,Dn as OrthographicFrustum,Us as OrthographicOffCenterFrustum,W9 as OutlineForOid,j9 as OutlineForPrimitives,Op as OutlineRenderMode,nve as Packable,ive as PackableForInterpolation,LR as ParallelLight,gR as Particle,BDe as ParticleBurst,VDe as ParticleEmitter,HDe as ParticleSystem,Ee as Pass,Po as PassState,K0 as PathGraphics,az as PathVisualizer,m6 as PeliasGeocoderService,On as PerInstanceColorAppearance,yb as PerformanceDisplay,RW as PerformanceWatchdog,PW as PerformanceWatchdogViewModel,ji as PerspectiveFrustum,Xu as PerspectiveOffCenterFrustum,s9 as PickDepth,a9 as PickDepthFramebuffer,l9 as PickFramebuffer,c9 as PickedMetadataInfo,b9 as Picking,Pk as PickingPipelineStage,kx as PinBuilder,ze as PixelDatatype,He as PixelFormat,An as Plane,FS as PlaneGeometry,H8 as PlaneGeometryUpdater,K3 as PlaneGraphics,z8 as PlaneOutlineGeometry,IV as PntsLoader,VS as PntsParser,A9 as PointCloud,Dp as PointCloudEyeDomeLighting,Gh as PointCloudShading,Rk as PointCloudStylingPipelineStage,NE as PointGraphics,MR as PointLight,za as PointPrimitive,yI as PointPrimitiveCollection,cz as PointVisualizer,Jc as PolygonGeometry,Ei as PolygonGeometryLibrary,q8 as PolygonGeometryUpdater,up as PolygonGraphics,ya as PolygonHierarchy,j8 as PolygonOutlineGeometry,Ji as PolygonPipeline,m7 as PolygonSwiperCullingCommand,$h as Polyline,AI as PolylineArrowMaterialProperty,Hp as PolylineCollection,na as PolylineColorAppearance,EI as PolylineDashMaterialProperty,Px as PolylineGeometry,lz as PolylineGeometryUpdater,SI as PolylineGlowMaterialProperty,Rl as PolylineGraphics,Ac as PolylineMaterialAppearance,hC as PolylineOutlineMaterialProperty,Pr as PolylinePipeline,fz as PolylineVisualizer,GR as PolylineVolumeAnimationGeometry,Hu as PolylineVolumeGeometry,Gp as PolylineVolumeGeometryLibrary,X8 as PolylineVolumeGeometryUpdater,FE as PolylineVolumeGraphics,Y8 as PolylineVolumeOutlineGeometry,cp as PositionProperty,_x as PositionPropertyArray,Gr as PostProcessStage,X9 as PostProcessStageCollection,rf as PostProcessStageComposite,ed as PostProcessStageLibrary,_h as PostProcessStageSampleMode,d1 as PostProcessStageTextureCache,c4 as PpeMetadata,T2e as PpeSource,a4 as PpeTexture,Vn as Primitive,Uu as PrimitiveCollection,_S as PrimitiveLoadPlan,pS as PrimitiveOutlineGenerator,Lk as PrimitiveOutlinePipelineStage,bE as PrimitivePipeline,fV as PrimitiveRenderResources,vs as PrimitiveState,Nk as PrimitiveStatisticsPipelineStage,Fe as PrimitiveType,NW as ProjectionPicker,MW as ProjectionPickerViewModel,X as Property,vI as PropertyArray,Sy as PropertyAttribute,EB as PropertyAttributeProperty,mf as PropertyBag,ms as PropertyTable,Ey as PropertyTexture,AB as PropertyTextureProperty,ma as ProviderViewModel,sve as Proxy,Cu as QuadraticRealPolynomial,vG as QuadtreeOccluders,OG as QuadtreePrimitive,DG as QuadtreeTile,yc as QuadtreeTileLoadState,gPe as QuadtreeTileProvider,Cw as QuantizedMeshTerrainData,OL as QuarticRealPolynomial,Ge as Quaternion,S4 as QuaternionSpline,fT as Queue,kn as Ray,fe as Rectangle,Kv as RectangleCollisionChecker,Od as RectangleGeometry,Fa as RectangleGeometryLibrary,K8 as RectangleGeometryUpdater,fp as RectangleGraphics,KE as RectangleOutlineGeometry,Nr as ReferenceFrame,yx as ReferenceProperty,f2e as RenderDebug,Ne as RenderState,Dd as Renderbuffer,Ru as RenderbufferFormat,No as Request,k_ as RequestErrorEvent,Tc as RequestScheduler,Ii as RequestState,Bs as RequestType,Pe as Resource,er as ResourceCache,Cf as ResourceCacheKey,$B as ResourceCacheStatistics,Li as ResourceLoader,It as ResourceLoaderState,sm as Rotation,ae as RuntimeError,gy as S2Cell,oc as SDFSettings,Rc as SampledPositionProperty,Kd as SampledProperty,ln as Sampler,Jg as ScaledPositionProperty,A7 as Scene,c1 as SceneFramebuffer,oe as SceneMode,Fk as SceneMode2DPipelineStage,VW as SceneModePicker,BW as SceneModePickerViewModel,XIe as SceneProjectorEx,F7 as SceneProjectorExFS,$s as SceneProjectorSourceType,xr as SceneTransforms,Z9 as SceneTransitioner,s7 as ScreenSpaceCameraController,ch as ScreenSpaceEventHandler,Zn as ScreenSpaceEventType,lv as SectionCylinderGeometry,gU as SectionFrameBuffer,ac as SectionPlaneGeometry,Eb as SectionPolygonGeometry,EU as SectionRender,SV as SectionRenderUtil,VT as SelectedFeatureIdPipelineStage,GW as SelectionIndicator,zW as SelectionIndicatorViewModel,PI as SensorVolumePortionToDisplay,OS as ShaderBuilder,yU as ShaderCache,ye as ShaderDestination,eV as ShaderFunction,Ht as ShaderProgram,We as ShaderSource,Jk as ShaderStruct,P_ as ShadowMap,y0 as ShadowMapShader,Wn as ShadowMode,_d as ShadowVolumeAppearance,Xn as ShowGeometryInstanceAttribute,nC as Simon1994PlanetaryPositions,Tve as SimplePolylineGeometry,Zw as SingleTileImageryProvider,kk as SkinningPipelineStage,v7 as SkyAtmosphere,b1 as SkyBox,u7 as SpatialNode,o4 as Spdcf,mp as SpecularEnvironmentCubeMap,MIe as SphereEmitter,Cve as SphereGeometry,xy as SphereOutlineGeometry,b8 as Spherical,Jr as Spline,us as SplitDirection,bR as Splitter,NR as SpotLight,fm as StaticGeometryColorBatch,dm as StaticGeometryPerMaterialBatch,HI as StaticGroundGeometryColorBatch,nz as StaticGroundGeometryPerMaterialBatch,uz as StaticGroundPolylinePerMaterialBatch,GI as StaticOutlineGeometryBatch,on as StencilConstants,Ci as StencilFunction,Nt as StencilOperation,E4 as SteppedSpline,Ul as Stereographic,IT as StorageType,wI as StripeMaterialProperty,Yp as StripeOrientation,ho as StructuralMetadata,Rp as StyleCommandsNeeded,LIe as StyleExpression,O7 as Sun,Jy as SunLight,l7 as SunPostProcess,t4 as SupportedImageFormats,j7 as SvgPathBindingHandler,jn as SwipeModeType,p7 as SwiperCullingFramebuffer,rr as TaskProcessor,M7 as Terrain,d_ as TerrainData,au as TerrainEncoding,oR as TerrainFillMesh,Em as TerrainMesh,VE as TerrainOffsetProperty,ua as TerrainProvider,pc as TerrainQuantization,co as TerrainState,nt as Texture,ZV as Texture3D,$T as TextureAtlas,xU as TextureCache,Si as TextureMagnificationFilter,h7 as TextureManager,_n as TextureMinificationFilter,d2e as TextureUniform,Fn as TextureWrap,m_ as TileAvailability,Sc as TileBoundingRegion,eS as TileBoundingS2Cell,Zc as TileBoundingSphere,NIe as TileBoundingVolume,L7 as TileCoordinatesImageryProvider,FIe as TileDiscardPolicy,Yn as TileEdge,iR as TileImagery,KC as TileMapServiceImageryProvider,sB as TileMetadata,$c as TileOrientedBoundingBox,Ro as TileProviderError,IG as TileReplacementQueue,Ni as TileSelectionResult,BIe as TileState,BU as Tileset3DTileContent,nU as TilesetMetadata,O4 as TilesetPipelineStage,Ave as TilingScheme,Ri as TimeConstants,Qw as TimeDynamicImagery,HR as TimeDynamicPointCloud,ei as TimeInterval,Ws as TimeIntervalCollection,bx as TimeIntervalCollectionPositionProperty,Tx as TimeIntervalCollectionProperty,Di as TimeStandard,qW as Timeline,WW as TimelineHighlightRange,jW as TimelineTrack,v3 as Tipsify,DA as ToggleButtonViewModel,Tb as Tonemapper,St as Transforms,oT as TranslationRotationScale,d9 as TranslucentTileClassification,CP as TridiagonalSystemSolver,B1 as TrustedServers,h1 as TweenCollection,TU as UniformState,IR as UniformType,pl as UrlTemplateImageryProvider,kie as UrlUtil,rC as Util,Hkr as VERSION,ZW as VRButton,XW as VRButtonViewModel,wve as VRTheWorldTerrainProvider,h2e as VaryingType,ag as Vector3DTileBatch,XU as Vector3DTileClampedPolylines,ZU as Vector3DTileContent,nx as Vector3DTileGeometry,GU as Vector3DTilePoints,WU as Vector3DTilePolygons,gv as Vector3DTilePolylines,uv as Vector3DTilePrimitive,C8 as VelocityOrientationProperty,Lv as VelocityVectorProperty,Gn as VertexArray,$y as VertexArrayFacade,lt as VertexAttributeSemantic,Le as VertexFormat,no as VerticalExaggeration,Uk as VerticalExaggerationPipelineStage,fi as VerticalOrigin,Eve as VideoSynchronizer,u1 as View,uRe as Viewer,OR as ViewportQuad,t2e as ViewshedAnalysis,Ts as Visibility,D6 as VisualAnalysisManager,kEe as Visualizer,f0 as VoxelBoxShape,wR as VoxelCell,_H as VoxelContent,d0 as VoxelCylinderShape,Ww as VoxelEllipsoidShape,JW as VoxelInspector,$W as VoxelInspectorViewModel,bA as VoxelPrimitive,HIe as VoxelProvider,J6 as VoxelRenderResources,GIe as VoxelShape,Mr as VoxelShapeType,PR as VoxelTraversal,Dve as VulkanConstants,$8 as WallGeometry,qv as WallGeometryLibrary,J8 as WallGeometryUpdater,Z0 as WallGraphics,Q8 as WallOutlineGeometry,J as WebGLConstants,MH as WebMapServiceImageryProvider,LH as WebMapTileServiceImageryProvider,vr as WebMercatorProjection,fa as WebMercatorTilingScheme,ga as WindingOrder,wP as WireframeIndexGenerator,zk as WireframePipelineStage,E9 as _shadersAcesTonemappingStage,a7 as _shadersAdditiveBlend,_R as _shadersAdjustTranslucentFS,KM as _shadersAllMaterialAppearanceFS,ZM as _shadersAllMaterialAppearanceVS,S9 as _shadersAmbientOcclusionGenerate,v9 as _shadersAmbientOcclusionModulate,lL as _shadersAspectRampMaterial,hb as _shadersAtmosphereCommon,M4 as _shadersAtmosphereStageFS,L4 as _shadersAtmosphereStageVS,$M as _shadersBasicMaterialAppearanceFS,QM as _shadersBasicMaterialAppearanceVS,aU as _shadersBillboardCollectionFS,cU as _shadersBillboardCollectionVS,w9 as _shadersBlackAndWhite,D9 as _shadersBloomComposite,B6 as _shadersBrdfLutGeneratorFS,c7 as _shadersBrightPass,P9 as _shadersBrightness,uL as _shadersBumpMapMaterial,ck as _shadersCPUStylingStageFS,ak as _shadersCPUStylingStageVS,fL as _shadersCheckerboardMaterial,xH as _shadersCloudCollectionFS,bH as _shadersCloudCollectionVS,TH as _shadersCloudNoiseFS,CH as _shadersCloudNoiseVS,f9 as _shadersCompareAndPackTranslucentDepth,t9 as _shadersCompositeOITFS,l1 as _shadersCompositeTranslucentClassification,I9 as _shadersContrastBias,fk as _shadersCustomShaderStageFS,uk as _shadersCustomShaderStageVS,hE as _shadersCzmBuiltins,R9 as _shadersDepthOfField,HH as _shadersDepthPlaneFS,GH as _shadersDepthPlaneVS,O9 as _shadersDepthView,p2e as _shadersDepthViewPacked,dL as _shadersDotMaterial,M9 as _shadersEdgeDetection,hL as _shadersElevationBandMaterial,mL as _shadersElevationContourMaterial,pL as _shadersElevationRampMaterial,J2 as _shadersEllipsoidFS,$H as _shadersEllipsoidSurfaceAppearanceFS,QH as _shadersEllipsoidSurfaceAppearanceVS,eR as _shadersEllipsoidVS,F9 as _shadersFXAA,G9 as _shadersFXAA3_11,_L as _shadersFadeMaterial,dk as _shadersFeatureIdStageFS,hk as _shadersFeatureIdStageVS,L9 as _shadersFilmicTonemapping,hA as _shadersGaussianBlur1D,yk as _shadersGeometryStageFS,xk as _shadersGeometryStageVS,sG as _shadersGlobeFS,aG as _shadersGlobeVS,gL as _shadersGridMaterial,tR as _shadersGroundAtmosphere,yF as _shadersHSBToRGB,xF as _shadersHSLToRGB,F4 as _shadersImageBasedLightingStageFS,Z4 as _shadersInstancingStageCommon,$4 as _shadersInstancingStageVS,j6 as _shadersIntersectBox,W6 as _shadersIntersectClippingPlanes,q6 as _shadersIntersectCylinder,G6 as _shadersIntersectDepth,Y6 as _shadersIntersectEllipsoid,B2 as _shadersIntersectLongitude,Vw as _shadersIntersection,H6 as _shadersIntersectionUtils,Q4 as _shadersLegacyInstancingStageVS,k9 as _shadersLensFlare,Ak as _shadersLightingStageFS,Sk as _shadersMaterialStageFS,Q6 as _shadersMegatexture,mk as _shadersMetadataStageFS,pk as _shadersMetadataStageVS,W4 as _shadersModelClippingGeometryStageFS,H4 as _shadersModelClippingPlanesStageFS,Y4 as _shadersModelClippingPolygonsStageFS,q4 as _shadersModelClippingPolygonsStageVS,z4 as _shadersModelColorStageFS,jk as _shadersModelExplosionStageVS,_V as _shadersModelFS,Xk as _shadersModelFlattenStageVS,nV as _shadersModelSilhouetteStageFS,iV as _shadersModelSilhouetteStageVS,sV as _shadersModelSplitterStageFS,Gk as _shadersModelStretchStageVS,yV as _shadersModelSwipePipelineStageFS,pV as _shadersModelVS,V9 as _shadersModifiedReinhardTonemapping,wk as _shadersMorphTargetsStageVS,U9 as _shadersNightVision,yL as _shadersNormalMapMaterial,$6 as _shadersOctree,Jf as _shadersPassThrough,eA as _shadersPassThroughDepth,N9 as _shadersPbrNeutralTonemapping,DL as _shadersPerInstanceColorAppearanceFS,PL as _shadersPerInstanceColorAppearanceVS,uE as _shadersPerInstanceFlatColorAppearanceFS,IL as _shadersPerInstanceFlatColorAppearanceVS,p4 as _shadersPointCloudEyeDomeLighting,Ik as _shadersPointCloudStylingStageVS,uC as _shadersPointPrimitiveCollectionFS,d8 as _shadersPointPrimitiveCollectionVS,TB as _shadersPolygonSignedDistanceFS,xL as _shadersPolylineArrowMaterial,Y3 as _shadersPolylineColorAppearanceVS,gd as _shadersPolylineCommon,bL as _shadersPolylineDashMaterial,SE as _shadersPolylineFS,TL as _shadersPolylineGlowMaterial,X3 as _shadersPolylineMaterialAppearanceVS,CL as _shadersPolylineOutlineMaterial,G3 as _shadersPolylineShadowVolumeFS,W3 as _shadersPolylineShadowVolumeMorphFS,j3 as _shadersPolylineShadowVolumeMorphVS,q3 as _shadersPolylineShadowVolumeVS,kU as _shadersPolylineVS,Mk as _shadersPrimitiveOutlineStageFS,Ok as _shadersPrimitiveOutlineStageVS,jF as _shadersRGBToHSB,qF as _shadersRGBToHSL,YF as _shadersRGBToXYZ,z9 as _shadersReinhardTonemapping,lG as _shadersReprojectWebMercatorFS,uG as _shadersReprojectWebMercatorVS,AL as _shadersRimLightingMaterial,m2e as _shadersSelectedFeatureIdStageCommon,bk as _shadersSelectedFeatureIdStageFS,Tk as _shadersSelectedFeatureIdStageVS,lD as _shadersShadowVolumeAppearanceFS,C3 as _shadersShadowVolumeAppearanceVS,Xb as _shadersShadowVolumeFS,H9 as _shadersSilhouette,Bk as _shadersSkinningStageVS,BR as _shadersSkyAtmosphereCommon,E7 as _shadersSkyAtmosphereFS,S7 as _shadersSkyAtmosphereVS,w7 as _shadersSkyBoxFS,D7 as _shadersSkyBoxVS,EL as _shadersSlopeRampMaterial,SL as _shadersStripeMaterial,P7 as _shadersSunFS,I7 as _shadersSunTextureFS,R7 as _shadersSunVS,JM as _shadersTexturedMaterialAppearanceFS,eL as _shadersTexturedMaterialAppearanceVS,YU as _shadersVector3DTileClampedPolylinesFS,qU as _shadersVector3DTileClampedPolylinesVS,jU as _shadersVector3DTilePolylinesVS,VD as _shadersVectorTileVS,Vk as _shadersVerticalExaggerationStageVS,_7 as _shadersViewportQuadFS,av as _shadersViewportQuadVS,U6 as _shadersVoxelFS,V6 as _shadersVoxelUtils,z6 as _shadersVoxelVS,wL as _shadersWater,vL as _shadersWaterMaskMaterial,b3 as _shadersXYZToRGB,LN as _shadersacesTonemapping,NN as _shadersalphaWeight,FN as _shadersantialias,BN as _shadersapplyColorCorrection,kN as _shadersapplyHSBShift,VN as _shadersapproximateSphericalCoordinates,UN as _shadersapproximateTanh,zN as _shadersbackFacing,HN as _shadersbranchFreeTernary,GN as _shaderscascadeColor,WN as _shaderscascadeDistance,jN as _shaderscascadeMatrix,qN as _shaderscascadeWeights,YN as _shadersclipPolygons,XN as _shaderscolumbusViewMorph,KN as _shaderscomputeAtmosphereColor,ZN as _shaderscomputeGroundAtmosphereScattering,$N as _shaderscomputePosition,QN as _shaderscomputeScattering,X6 as _shadersconvertUvToBox,K6 as _shadersconvertUvToCylinder,Z6 as _shadersconvertUvToEllipsoid,JN as _shaderscosineAndSine,SN as _shaderscreateTranslationMatrix,eF as _shadersdecompressTextureCoordinates,zL as _shadersdegreesPerRadian,tF as _shadersdepthClamp,HL as _shadersdepthRange,vN as _shadersdepthRangeStruct,nF as _shaderseastNorthUpToEyeCoordinates,iF as _shadersellipsoidContainsPoint,rF as _shadersellipsoidTextureCoordinates,GL as _shadersepsilon1,WL as _shadersepsilon2,jL as _shadersepsilon3,qL as _shadersepsilon4,YL as _shadersepsilon5,XL as _shadersepsilon6,KL as _shadersepsilon7,oF as _shadersequalsEpsilon,sF as _shaderseyeOffset,aF as _shaderseyeToWindowCoordinates,cF as _shadersfastApproximateAtan,lF as _shadersfog,uF as _shadersgammaCorrect,fF as _shadersgeodeticSurfaceNormal,dF as _shadersgeometryClip,hF as _shadersgetDefaultMaterial,mF as _shadersgetDynamicAtmosphereLightDirection,pF as _shadersgetLambertDiffuse,_F as _shadersgetSpecular,gF as _shadersgetWaterNoise,bF as _shadershue,ZL as _shadersinfinity,TF as _shadersinverseGamma,CF as _shadersisEmpty,AF as _shadersisFull,EF as _shaderslatitudeToWebMercatorFraction,vF as _shaderslineDistance,SF as _shaderslinearToSrgb,wF as _shadersluminance,wN as _shadersmaterial,DN as _shadersmaterialInput,DF as _shadersmaximumComponent,PF as _shadersmetersPerPixel,PN as _shadersmodelMaterial,IF as _shadersmodelToWindowCoordinates,IN as _shadersmodelVertexOutput,RF as _shadersmultiplyWithColorBalance,OF as _shadersnearFarScalar,MF as _shadersoctDecode,$L as _shadersoneOverPi,QL as _shadersoneOverTwoPi,LF as _shaderspackDepth,JL as _shaderspassCesium3DTile,eN as _shaderspassCesium3DTileClassification,tN as _shaderspassCesium3DTileClassificationIgnoreShow,nN as _shaderspassClassification,iN as _shaderspassCompute,rN as _shaderspassEnvironment,oN as _shaderspassGlobe,sN as _shaderspassOpaque,aN as _shaderspassOverlay,cN as _shaderspassTerrainClassification,lN as _shaderspassTranslucent,uN as _shaderspassVoxels,NF as _shaderspbrLighting,FF as _shaderspbrNeutralTonemapping,BF as _shadersphong,fN as _shaderspi,dN as _shaderspiOverFour,hN as _shaderspiOverSix,mN as _shaderspiOverThree,pN as _shaderspiOverTwo,kF as _shadersplaneDistance,VF as _shaderspointAlongRay,_N as _shadersradiansPerDegree,RN as _shadersray,UF as _shadersrayEllipsoidIntersectionInterval,ON as _shadersraySegment,zF as _shadersraySphereIntersectionInterval,HF as _shadersreadDepth,GF as _shadersreadNonPerspective,WF as _shadersreverseLogDepth,XF as _shadersrollerShutter,KF as _shadersrollerShutterPolygon,ZF as _shadersrollerShutterSpyglass,$F as _shadersround,QF as _shaderssaturation,gN as _shaderssceneMode2D,yN as _shaderssceneMode3D,xN as _shaderssceneModeColumbusView,bN as _shaderssceneModeMorphing,JF as _shadersshadowDepthCompare,MN as _shadersshadowParameters,e3 as _shadersshadowVisibility,t3 as _shaderssignNotZero,TN as _shaderssolarRadius,n3 as _shaderssphericalHarmonics,i3 as _shaderssrgbToLinear,r3 as _shaderstangentToEyeSpaceMatrix,o3 as _shaderstextureCube,CN as _shadersthreePiOver2,s3 as _shaderstransformPlane,a3 as _shaderstranslateRelativeToEye,c3 as _shaderstranslucentPhong,l3 as _shaderstranspose,AN as _shaderstwoPi,u3 as _shadersunpackClippingExtents,f3 as _shadersunpackDepth,d3 as _shadersunpackFloat,h3 as _shadersunpackUint,m3 as _shadersvalueTransform,p3 as _shadersvertexLogDepth,EN as _shaderswebMercatorMaxLatitude,_3 as _shaderswindowToEyeCoordinates,g3 as _shaderswriteDepthClamp,y3 as _shaderswriteLogDepth,x3 as _shaderswriteNonPerspective,VB as addBuffer,PB as addDefaults,FB as addExtensionsRequired,Vh as addExtensionsUsed,wT as addPipelineExtras,Ba as addToArray,TO as appendForwardSlash,bo as arrayRemoveDuplicates,pE as barycentricCoordinates,Lo as binarySearch,Cn as buildModuleUrl,nH as buildVoxelDrawCommands,Ve as clone,xt as combine,jw as computeFlyToLocationForRectangle,hv as createBillboardPointCallback,ni as createCommand,nW as createDefaultImageryProviderViewModels,iW as createDefaultTerrainProviderViewModels,zwe as createElevationBandMaterial,Gwe as createGooglePhotorealistic3DTileset,Kn as createGuid,Bo as createMaterialPropertyDescriptor,Wwe as createOsmBuildingsAsync,_e as createPropertyDescriptor,hf as createRawPropertyDescriptor,jwe as createTangentSpaceDebugPrimitive,C2e as createTaskProcessorWorker,vB as createUUID,kL as createUniform,VL as createUniformArray,e6 as createWorldBathymetryAsync,db as createWorldImageryAsync,Sw as createWorldTerrainAsync,t6 as decodeGoogleEarthEnterpriseData,KU as decodeVectorPolylinePositions,y as defaultValue,cf as defer,u as defined,T3 as demodernizeShader,uo as deprecationWarning,he as destroyObject,XCe as exportKml,fS as findAccessorMinMax,ay as findContentMetadata,cy as findGroupMetadata,GE as findTileMetadata,lP as forEachTextureInMaterial,c0 as formatError,mae as freezeRenderState,B_ as getAbsoluteUri,bf as getAccessorByteStride,CO as getBaseUri,Bl as getBinaryAccessor,rG as getClipAndStyleCode,ab as getClippingFunction,Ty as getComponentReader,li as getElement,VA as getExtensionFromUri,px as getFilenameFromUri,s6 as getImageFromTypedArray,jm as getImagePixels,dr as getJsonFromTypedArray,Kc as getMagic,oG as getMetadataClassProperty,Vo as getStringFromTypedArray,pr as getTimestamp,Ai as hasExtension,$0 as heightReferenceOnEntityPropertyChanged,lu as isBitSet,UA as isBlobUri,Mb as isCrossOriginUrl,I0 as isDataUri,Wm as isLeapYear,Se as knockout,D1 as knockout_3_5_1,W7 as knockout_es5,zA as loadAndExecuteScript,R6 as loadCubeMap,lS as loadImageFromTypedArray,ff as loadKTX2,tb as mergeSort,NB as moveTechniqueRenderStates,BB as moveTechniquesToExtension,wd as numberOfComponentsForType,HA as objectToQuery,Bt as oneTimeWarning,zE as pako_inflate,Id as parseAttBatchTable,Pp as parseBatchTable,DB as parseFeatureMetadataLegacy,OB as parseGlb,EO as parseResponseHeaders,wB as parseStructuralMetadata,qT as parseVoxelStyles,IP as pickModel,rve as pointInsideTriangle,dg as preprocess3DTileContent,qV as preprocessM3DContent,tH as processVoxelProperties,ad as queryToObject,UB as readAccessorPacked,dS as removeExtension,RB as removeExtensionsRequired,uS as removeExtensionsUsed,LB as removePipelineExtras,kB as removeUnusedElements,DT as resizeImageToNextPowerOfTwo,T6 as sampleTerrain,Mw as sampleTerrainMostDetailed,NA as scaleToGeodeticSurface,Nw as srgbToLinear,A3 as subdivideArray,Bc as subscribeAndEvaluate,HB as updateAccessorComponentTypes,WB as updateVersion,ps as usesExtension,fRe as viewerCesium3DTilesInspectorMixin,dRe as viewerCesiumInspectorMixin,mRe as viewerDragDropMixin,pRe as viewerPerformanceWatchdogMixin,gRe as viewerVoxelInspectorMixin,Pve as webGLConstantToGlslType,w6 as wrapFunction,JS as writeTextToCanvas,c2e as zlib_min};
|
|
19090
|
+
`);n.value=n.value.slice(0,i)+f+n.value.slice(r),n.selectionStart=i!==r?i:o,n.selectionEnd=o}else t.ctrlKey&&(t.keyCode===10||t.keyCode===13)&&this.compileShader();return!0};Ch.prototype.isDestroyed=function(){return!1};Ch.prototype.destroy=function(){let e=this;return this._definedProperties.forEach(function(t){Se.getObservable(e,t).dispose()}),he(this)};var $W=Ch;function QW(e,t){e=li(e);let n=document.createElement("div"),i=new $W(t);this._viewModel=i,this._container=e,this._element=n;let r=document.createElement("div");r.textContent="Voxel Inspector",r.className="cesium-cesiumInspector-button",r.setAttribute("data-bind","click: toggleInspector"),n.appendChild(r),n.className="cesium-cesiumInspector cesium-VoxelInspector",n.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),e.appendChild(n);let o=document.createElement("div");o.className="cesium-cesiumInspector-dropDown",n.appendChild(o);let s=xl.createSection,a=xl.createCheckbox,c=xl.createRangeInput,l=xl.createButton,f=s(o,"Display","displayVisible","toggleDisplay"),d=s(o,"Transform","transformVisible","toggleTransform"),p=s(o,"Bounds","boundsVisible","toggleBounds"),_=s(o,"Clipping","clippingVisible","toggleClipping"),m=s(o,"Shader","shaderVisible","toggleShader");f.appendChild(a("Depth Test","depthTest")),f.appendChild(a("Show","show")),f.appendChild(a("Disable Update","disableUpdate")),f.appendChild(a("Debug Draw","debugDraw")),f.appendChild(a("Jitter","jitter")),f.appendChild(a("Nearest Sampling","nearestSampling")),f.appendChild(c("Screen Space Error","screenSpaceError",0,128)),f.appendChild(c("Step Size","stepSize",0,2));let x=10,b=10,T=I.PI;d.appendChild(c("Translation X","translationX",-x,+x)),d.appendChild(c("Translation Y","translationY",-x,+x)),d.appendChild(c("Translation Z","translationZ",-x,+x)),d.appendChild(c("Scale X","scaleX",0,+b)),d.appendChild(c("Scale Y","scaleY",0,+b)),d.appendChild(c("Scale Z","scaleZ",0,+b)),d.appendChild(c("Heading","angleX",-T,+T)),d.appendChild(c("Pitch","angleY",-T,+T)),d.appendChild(c("Roll","angleZ",-T,+T));let C=Mr.getMinBounds(Mr.BOX),A=Mr.getMaxBounds(Mr.BOX),E=h.fromElements(Mr.getMinBounds(Mr.ELLIPSOID).x,Mr.getMinBounds(Mr.ELLIPSOID).y,-ne.WGS84.maximumRadius,new h),v=h.fromElements(Mr.getMaxBounds(Mr.ELLIPSOID).x,Mr.getMaxBounds(Mr.ELLIPSOID).y,1e7,new h),D=Mr.getMinBounds(Mr.CYLINDER),R=Mr.getMaxBounds(Mr.CYLINDER);R1("Max X","Min X","Max Y","Min Y","Max Z","Min Z","boundsBoxMaxX","boundsBoxMinX","boundsBoxMaxY","boundsBoxMinY","boundsBoxMaxZ","boundsBoxMinZ",C,A,"shapeIsBox",p),R1("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","boundsEllipsoidMaxLongitude","boundsEllipsoidMinLongitude","boundsEllipsoidMaxLatitude","boundsEllipsoidMinLatitude","boundsEllipsoidMaxHeight","boundsEllipsoidMinHeight",E,v,"shapeIsEllipsoid",p),R1("Max Radius","Min Radius","Max Height","Min Height","Max Angle","Min Angle","boundsCylinderMaxRadius","boundsCylinderMinRadius","boundsCylinderMaxHeight","boundsCylinderMinHeight","boundsCylinderMaxAngle","boundsCylinderMinAngle",D,R,"shapeIsCylinder",p),R1("Max X","Min X","Max Y","Min Y","Max Z","Min Z","clippingBoxMaxX","clippingBoxMinX","clippingBoxMaxY","clippingBoxMinY","clippingBoxMaxZ","clippingBoxMinZ",C,A,"shapeIsBox",_),R1("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","clippingEllipsoidMaxLongitude","clippingEllipsoidMinLongitude","clippingEllipsoidMaxLatitude","clippingEllipsoidMinLatitude","clippingEllipsoidMaxHeight","clippingEllipsoidMinHeight",E,v,"shapeIsEllipsoid",_),R1("Max Radius","Min Radius","Max Height","Min Height","Max Angle","Min Angle","clippingCylinderMaxRadius","clippingCylinderMinRadius","clippingCylinderMaxHeight","clippingCylinderMinHeight","clippingCylinderMaxAngle","clippingCylinderMinAngle",D,R,"shapeIsCylinder",_);let O=document.createElement("div");m.appendChild(O);let L=document.createElement("textarea");L.setAttribute("data-bind","textInput: shaderString, event: { keydown: shaderEditorKeyPress }"),O.className="cesium-cesiumInspector-styleEditor",O.appendChild(L);let N=l("Compile (Ctrl+Enter)","compileShader");O.appendChild(N);let g=document.createElement("label");g.style.display="block",g.setAttribute("data-bind","text: shaderCompilationMessage, style: {color: shaderCompilationSuccess ? 'green' : 'red'}"),O.appendChild(g),Se.applyBindings(i,n)}Object.defineProperties(QW.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});QW.prototype.isDestroyed=function(){return!1};QW.prototype.destroy=function(){return Se.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),he(this)};function R1(e,t,n,i,r,o,s,a,c,l,f,d,p,_,m,x){let b=xl.createRangeInput,T=p,C=_,A=x.appendChild(document.createElement("div"));A.setAttribute("data-bind",`if: ${m}`),A.appendChild(b(e,s,T.x,C.x)),A.appendChild(b(t,a,T.x,C.x)),A.appendChild(b(n,c,T.y,C.y)),A.appendChild(b(i,l,T.y,C.y)),A.appendChild(b(r,f,T.z,C.z)),A.appendChild(b(o,d,T.z,C.z))}var JW=QW;function x4t(e){let t=document.createElement("div");t.className="cesium-viewer-voxelInspectorContainer",e.container.appendChild(t);let n=new JW(t,e.scene);Object.defineProperties(e,{voxelInspector:{get:function(){return n}}})}var gRe=x4t;globalThis.CESIUM_VERSION="1.122.0";globalThis.MAPGIS_VERSION="17.6.7";var Hkr="1.122.0",Gkr="17.6.7";export{Bh as AlphaMode,rk as AlphaPipelineStage,n4 as AnchorPointDirect,i4 as AnchorPointIndirect,$7 as Animation,Q7 as AnimationViewModel,cr as Appearance,Hi as ApproximateTerrainHeights,JEe as ArcGISTiledElevationTerrainProvider,g_ as ArcGisBaseMapType,sb as ArcGisMapServerImageryProvider,lh as ArcGisMapService,Rn as ArcType,Hl as ArticulationStageType,Ut as AssociativeArray,M6 as Atmosphere,N4 as AtmospherePipelineStage,xn as AttributeCompression,n2e as AttributeSurfacePrimitive,Gt as AttributeType,L6 as AutoExposure,G0 as AutomaticUniforms,wn as Axis,jb as AxisAlignedBoundingBox,_4 as B3dmLoader,TS as B3dmParser,oW as BaseLayerPicker,iW as BaseLayerPickerViewModel,mE as BatchTable,iy as BatchTableHierarchy,Pu as BatchTexture,ok as BatchTexturePipelineStage,so as Billboard,Fd as BillboardCollection,Cl as BillboardGraphics,YM as BillboardVisualizer,tSe as BingMapsGeocoderService,F6 as BingMapsImageryProvider,M2 as BingMapsStyle,Gc as BlendEquation,Eo as BlendFunction,Do as BlendOption,vn as BlendingState,$e as BoundingRectangle,ce as BoundingSphere,Mt as BoundingSphereState,ly as BoundingVolumeSemantics,Fve as BoxEmitter,Sl as BoxGeometry,Z3 as BoxGeometryUpdater,wE as BoxGraphics,ep as BoxOutlineGeometry,k6 as BrdfLutGenerator,et as Buffer,cS as BufferLoader,Oe as BufferUsage,lk as CPUStylingPipelineStage,$3 as CallbackPositionProperty,dp as CallbackProperty,Ui as Camera,fH as CameraEventAggregator,Or as CameraEventType,iH as CameraFlightPath,G as Cartesian2,h as Cartesian3,ie as Cartesian4,ue as Cartographic,nSe as CartographicGeocoderService,rSe as CatmullRomSpline,ty as Cesium3DContentGroup,nm as Cesium3DTile,oy as Cesium3DTileBatchTable,kl as Cesium3DTileColorBlendMode,pwe as Cesium3DTileContent,hg as Cesium3DTileContentFactory,gi as Cesium3DTileContentState,wr as Cesium3DTileContentType,A0e as Cesium3DTileCustomContent,nc as Cesium3DTileFeature,Ta as Cesium3DTileFeatureTable,gf as Cesium3DTileOptimizationHint,YT as Cesium3DTileOptimizations,sr as Cesium3DTilePass,Im as Cesium3DTilePassState,ix as Cesium3DTilePointFeature,Hr as Cesium3DTileRefine,Gw as Cesium3DTileStyle,QS as Cesium3DTileStyleEngine,nW as Cesium3DTilesInspector,eW as Cesium3DTilesInspectorViewModel,Pwe as Cesium3DTilesVoxelProvider,oa as Cesium3DTileset,iv as Cesium3DTilesetBaseTraversal,KS as Cesium3DTilesetCache,LE as Cesium3DTilesetGraphics,ZS as Cesium3DTilesetHeatmap,Xy as Cesium3DTilesetMetadata,nv as Cesium3DTilesetMostDetailedTraversal,rv as Cesium3DTilesetSkipTraversal,Nu as Cesium3DTilesetStatistics,sc as Cesium3DTilesetTraversal,JU as Cesium3DTilesetVisualizer,uW as CesiumInspector,cW as CesiumInspectorViewModel,Aw as CesiumTerrainProvider,N7 as CesiumWidget,ar as Check,cI as CheckerboardMaterialProperty,yH as CircleEmitter,hSe as CircleGeometry,mSe as CircleOutlineGeometry,dV as ClassificationModelDrawCommand,sk as ClassificationPipelineStage,uD as ClassificationPrimitive,ti as ClassificationType,oi as ClearCommand,EV as ClipFillUtil,r2e as ClippingGeometry,k7 as ClippingGeometryFS,O_ as ClippingGeometryType,V7 as ClippingGeometryVS,U7 as ClippingGltfFS,z7 as ClippingGltfVS,by as ClippingPlane,So as ClippingPlaneCollection,KD as ClippingPolygon,xf as ClippingPolygonCollection,_U as ClippingType,jp as Clock,qs as ClockRange,mo as ClockStep,q7 as ClockViewModel,Fwe as CloudCollection,H2 as CloudType,z as Color,zl as ColorBlendMode,y7 as ColorCorrection,B9 as ColorCurrection,cn as ColorGeometryInstanceAttribute,un as ColorMaterialProperty,D2e as Command,q as ComponentDatatype,xp as Composite3DTileContent,F0e as CompositeEntityCollection,dI as CompositeMaterialProperty,Ic as CompositePositionProperty,Ql as CompositeProperty,tL as CompressedTextureBuffer,Ap as ComputeCommand,I6 as ComputeEngine,dH as ConditionsExpression,Bwe as ConeEmitter,DO as Config,Su as ConstantPositionProperty,Bi as ConstantProperty,A4 as ConstantSpline,oB as ContentMetadata,CU as Context,Qt as ContextLimits,G8 as CoplanarPolygonGeometry,fy as CoplanarPolygonGeometryLibrary,Fh as CoplanarPolygonOutlineGeometry,Ir as CornerType,r4 as CorrelationGroup,Yg as CorridorGeometry,Br as CorridorGeometryLibrary,l8 as CorridorGeometryUpdater,PE as CorridorGraphics,c8 as CorridorOutlineGeometry,Wt as Credit,BH as CreditDisplay,jc as CubeMap,rL as CubeMapFace,dE as CubicRealPolynomial,xi as CullFace,rs as CullingVolume,fh as CumulusCloud,m8 as CustomDataSource,pSe as CustomHeightmapTerrainProvider,_1 as CustomShader,By as CustomShaderMode,_k as CustomShaderPipelineStage,kT as CustomShaderTranslucencyMode,SU as CuttingFilterUtil,Bg as CylinderGeometry,ov as CylinderGeometryLibrary,_8 as CylinderGeometryUpdater,IE as CylinderGraphics,p8 as CylinderOutlineGeometry,w8 as CzmlDataSource,js as DataSource,qp as DataSourceClock,P8 as DataSourceCollection,dz as DataSourceDisplay,m1e as DebugAppearance,m0 as DebugCameraPrimitive,VH as DebugInspector,zH as DebugModelMatrixPrimitive,gSe as DefaultProxy,wl as DepthFunction,jH as DepthPlane,gk as DequantizationPipelineStage,$f as DerivedCommand,me as DeveloperError,XH as DeviceOrientationCameraController,T1e as DirectionalLight,N2 as DiscardEmptyTileImagePolicy,O6 as DiscardMissingTileImagePolicy,en as DistanceDisplayCondition,Ti as DistanceDisplayConditionGeometryInstanceAttribute,ww as DoubleEndedPriorityQueue,iU as DoublyLinkedList,Sp as DracoLoader,Xe as DrawCommand,kw as DynamicAtmosphereLightingType,Fv as DynamicGeometryBatch,$i as DynamicGeometryUpdater,DM as EarthOrientationParameters,Ob as EarthOrientationParametersSample,Xs as EasingFunction,zu as EllipseGeometry,Mf as EllipseGeometryLibrary,k8 as EllipseGeometryUpdater,RE as EllipseGraphics,$d as EllipseOutlineGeometry,ne as Ellipsoid,j0 as EllipsoidGeodesic,Os as EllipsoidGeometry,V8 as EllipsoidGeometryUpdater,OE as EllipsoidGraphics,Vl as EllipsoidOutlineGeometry,ZH as EllipsoidPrimitive,Yc as EllipsoidRhumbLine,Lm as EllipsoidSurfaceAppearance,LP as EllipsoidSurfaceVoxelAppearance,XV as EllipsoidSurfaceVoxelAppearanceFS,YV as EllipsoidSurfaceVoxelAppearanceVS,Ss as EllipsoidTangentPlane,u0 as EllipsoidTerrainProvider,mx as EllipsoidalOccluder,Td as Empty3DTileContent,bi as EncodedCartesian3,is as Entity,Yd as EntityCluster,uc as EntityCollection,pz as EntityView,be as Event,Gs as EventHelper,Zh as Expression,Vt as ExpressionNodeType,Xd as ExtrapolationType,mn as FeatureDetection,BT as FeatureIdPipelineStage,l2e as FlattenTool,eG as Fog,ke as ForEach,Ng as FrameBufferType,tG as FrameRateMonitor,nG as FrameState,Zr as Framebuffer,Wi as FramebufferManager,iG as FrustumCommands,Iw as FrustumGeometry,r6 as FrustumOutlineGeometry,As as Fullscreen,mW as FullscreenButton,dW as FullscreenButtonViewModel,_5 as GeoJsonDataSource,y4 as GeoJsonLoader,GC as GeocodeType,gW as Geocoder,v2 as GeocoderService,pW as GeocoderViewModel,Ar as GeographicProjection,zr as GeographicTilingScheme,Dt as Geometry,LU as Geometry3DTileContent,De as GeometryAttribute,Bn as GeometryAttributes,SSe as GeometryFactory,Rt as GeometryInstance,Pl as GeometryInstanceAttribute,Ln as GeometryOffsetAttribute,_i as GeometryPipeline,Ck as GeometryPipelineStage,Ph as GeometryType,Qi as GeometryUpdater,Xv as GeometryUpdaterSet,iz as GeometryVisualizer,$w as GetFeatureInfoFormat,MG as Globe,LG as GlobeDepth,o2e as GlobeEffect,cG as GlobeSurfaceShaderSet,Nm as GlobeSurfaceTile,CG as GlobeSurfaceTileProvider,AG as GlobeTranslucency,NG as GlobeTranslucencyFramebuffer,FG as GlobeTranslucencyState,oP as GltfBufferViewLoader,sP as GltfDracoLoader,s4 as GltfGpmLoader,gP as GltfGpmLocal,aP as GltfImageLoader,cP as GltfIndexBufferLoader,uP as GltfJsonLoader,il as GltfLoader,Tf as GltfLoaderUtil,u4 as GltfMeshPrimitiveGpmLoader,QB as GltfStructuralMetadataLoader,fP as GltfTextureLoader,dP as GltfVertexBufferLoader,yDe as GoogleEarthEnterpriseImageryProvider,IH as GoogleEarthEnterpriseMapsProvider,Jx as GoogleEarthEnterpriseMetadata,w2 as GoogleEarthEnterpriseTerrainData,LSe as GoogleEarthEnterpriseTerrainProvider,a6 as GoogleEarthEnterpriseTileInformation,Rw as GoogleMaps,P5 as GpxDataSource,D0 as GregorianDate,xDe as GridImageryProvider,CI as GridMaterialProperty,vi as GroundGeometryUpdater,EE as GroundPolylineGeometry,ap as GroundPolylinePrimitive,ec as GroundPrimitive,s2e as GroundPrimitiveRectangleGenerater,NP as GroupMetadata,qh as HashMap,ru as HeadingPitchRange,ks as HeadingPitchRoll,SO as Heap,rt as HeightReference,Am as HeightmapEncoding,fl as HeightmapTerrainData,b2 as HeightmapTessellator,y8 as HermitePolynomialApproximation,MT as HermiteSpline,$P as HilbertOrder,bW as HomeButton,yW as HomeButtonViewModel,fr as HorizontalOrigin,Z2e as I3SBuildingSceneLayerExplorer,CW as I3SBuildingSceneLayerExplorerViewModel,E_ as I3SDataProvider,BG as I3SDecoder,kG as I3SFeature,UG as I3SField,uR as I3SGeometry,s1 as I3SLayer,fR as I3SNode,jG as I3SStatistics,qG as I3SSublayer,GG as I3SSymbology,C4 as I3dmLoader,CS as I3dmParser,d6 as Iau2000Orientation,RM as Iau2006XysData,JA as Iau2006XysSample,h6 as IauOrientationAxes,f6 as IauOrientationParameters,Q0 as ImageBasedLighting,B4 as ImageBasedLightingPipelineStage,iT as ImageMaterialProperty,nR as Imagery,Zs as ImageryLayer,SG as ImageryLayerCollection,y_ as ImageryLayerFeatureInfo,Zu as ImageryProvider,tr as ImageryState,eI as Implicit3DTileContent,QP as ImplicitAvailabilityBitstream,JP as ImplicitMetadataView,ia as ImplicitSubdivisionScheme,fv as ImplicitSubtree,hH as ImplicitSubtreeCache,NU as ImplicitSubtreeMetadata,Zy as ImplicitTileCoordinates,Ky as ImplicitTileset,Ze as IndexDatatype,SW as InfoBox,AW as InfoBoxViewModel,xl as InspectorShared,qo as InstanceAttributeSemantic,ek as InstancingPipelineStage,k1 as InterceptorsUtil,ZSe as InterpolationAlgorithm,Ep as InterpolationType,Xt as Intersect,Mi as IntersectionTests,Zx as Intersections2D,Za as Interval,hR as InvertClassification,pp as Ion,p6 as IonGeocoderService,ub as IonImageryProvider,vu as IonResource,fb as IonWorldImageryStyle,Je as Iso8601,KG as JobScheduler,tl as JobType,Cy as JsonMetadataTable,Q as JulianDate,nL as KTX2Transcoder,_c as KeyboardEventModifier,Qr as KeyframeNode,I5 as KmlCamera,G5 as KmlDataSource,R5 as KmlLookAt,M5 as KmlTour,N5 as KmlTourFlyTo,F5 as KmlTourWait,JT as Label,Yh as LabelCollection,lp as LabelGraphics,Yo as LabelStyle,rz as LabelVisualizer,x8 as LagrangePolynomialApproximation,Ur as LeapSecond,PDe as Light,A0 as LightManager,tf as LightingMode,Sg as LightingModel,Ek as LightingPipelineStage,vv as LinearApproximation,OT as LinearSpline,MV as M3D10MetadataTable,OV as M3D20MetadataTable,lT as M3D21MetadataTable,rB as M3DAttContentFactory,cg as M3DAttParser,FV as M3DB3dmLoader,jT as M3DContentFactory,jy as M3DContentType,WV as M3DDataLoader,GV as M3DDataParser,NV as M3DGltfLoader,RV as M3DGltfParser,VV as M3DI3dmLoader,HV as M3DPntsLoader,UV as M3DPntsParser,xB as M3DTidParser,x2e as M3DTree,Gkr as MAPGIS_VERSION,Xc as ManagedArray,XS as MapGISM3D,Kl as MapGISM3DSet,bT as MapGISM3DTileContent,QV as MapGISM3DVoxelContent,YS as MapGISVoxelPrimitive,Yf as MapMode2D,$Se as MapProjection,RH as MapboxImageryProvider,RDe as MapboxStyleImageryProvider,Oi as Material,to as MaterialAppearance,vk as MaterialPipelineStage,ns as MaterialProperty,I as Math,Lr as Matrix2,$ as Matrix3,M as Matrix4,mR as Megatexture,l4 as MeshPrimitiveGpmLocal,xa as MetadataClass,gg as MetadataClassProperty,dn as MetadataComponentType,ai as MetadataEntity,XB as MetadataEnum,qB as MetadataEnumValue,$G as MetadataPicking,Pd as MetadataPickingPipelineStage,Wh as MetadataPipelineStage,Wl as MetadataSchema,mP as MetadataSchemaLoader,dv as MetadataSemantic,Gl as MetadataTable,rP as MetadataTableProperty,Yt as MetadataType,Y_ as MipmapHint,rc as Model,Xl as Model3DTileContent,Qk as ModelAlphaOptions,w4 as ModelAnimation,v4 as ModelAnimationChannel,P4 as ModelAnimationCollection,yf as ModelAnimationLoop,Ip as ModelAnimationState,U4 as ModelArticulation,k4 as ModelArticulationStage,j4 as ModelClippingGeometryPipelineStage,G4 as ModelClippingPlanesPipelineStage,X4 as ModelClippingPolygonsPipelineStage,FT as ModelColorPipelineStage,fn as ModelComponents,mV as ModelDrawCommand,gV as ModelDrawCommands,b2e as ModelExplosion,qk as ModelExplosionPipelineStage,I4 as ModelFeature,R4 as ModelFeatureTable,Kk as ModelFlattenPipelineStage,X0 as ModelGraphics,uV as ModelLightingOptions,tk as ModelMatrixUpdateStage,K4 as ModelNode,Yk as ModelPMPipelineStage,tV as ModelRenderResources,ik as ModelRuntimeNode,Zk as ModelRuntimePrimitive,wV as ModelSceneGraph,oV as ModelSilhouettePipelineStage,$k as ModelSkin,cV as ModelSplitterPipelineStage,DV as ModelStatistics,Wk as ModelStretchPipelineStage,xV as ModelSwipePipelineStage,Co as ModelType,hn as ModelUtility,sz as ModelVisualizer,e9 as Moon,Dk as MorphTargetsPipelineStage,QSe as MorphWeightSpline,KT as MortonOrder,WE as Multiple3DTileContent,m4 as MultisampleFramebuffer,DW as NavigationHelpButton,vW as NavigationHelpButtonViewModel,rn as NearFarScalar,KV as NetCDFLoader,ODe as NeverTileDiscardPolicy,lV as NodeRenderResources,nk as NodeStatisticsPipelineStage,ME as NodeTransformationProperty,Hk as OIDTexturePipelineStage,n9 as OIT,b6 as Occluder,Xr as OffsetGeometryInstanceAttribute,tve as OpenCageGeocoderService,gb as OpenStreetMapImageryProvider,R8 as OrderedGroundPrimitiveCollection,qn as OrientedBoundingBox,Dn as OrthographicFrustum,Us as OrthographicOffCenterFrustum,W9 as OutlineForOid,j9 as OutlineForPrimitives,Op as OutlineRenderMode,nve as Packable,ive as PackableForInterpolation,LR as ParallelLight,gR as Particle,BDe as ParticleBurst,VDe as ParticleEmitter,HDe as ParticleSystem,Ee as Pass,Po as PassState,K0 as PathGraphics,az as PathVisualizer,m6 as PeliasGeocoderService,On as PerInstanceColorAppearance,yb as PerformanceDisplay,RW as PerformanceWatchdog,PW as PerformanceWatchdogViewModel,ji as PerspectiveFrustum,Xu as PerspectiveOffCenterFrustum,s9 as PickDepth,a9 as PickDepthFramebuffer,l9 as PickFramebuffer,c9 as PickedMetadataInfo,b9 as Picking,Pk as PickingPipelineStage,kx as PinBuilder,ze as PixelDatatype,He as PixelFormat,An as Plane,FS as PlaneGeometry,H8 as PlaneGeometryUpdater,K3 as PlaneGraphics,z8 as PlaneOutlineGeometry,IV as PntsLoader,VS as PntsParser,A9 as PointCloud,Dp as PointCloudEyeDomeLighting,Gh as PointCloudShading,Rk as PointCloudStylingPipelineStage,NE as PointGraphics,MR as PointLight,za as PointPrimitive,yI as PointPrimitiveCollection,cz as PointVisualizer,Jc as PolygonGeometry,Ei as PolygonGeometryLibrary,q8 as PolygonGeometryUpdater,up as PolygonGraphics,ya as PolygonHierarchy,j8 as PolygonOutlineGeometry,Ji as PolygonPipeline,m7 as PolygonSwiperCullingCommand,$h as Polyline,AI as PolylineArrowMaterialProperty,Hp as PolylineCollection,na as PolylineColorAppearance,EI as PolylineDashMaterialProperty,Px as PolylineGeometry,lz as PolylineGeometryUpdater,SI as PolylineGlowMaterialProperty,Rl as PolylineGraphics,Ac as PolylineMaterialAppearance,hC as PolylineOutlineMaterialProperty,Pr as PolylinePipeline,fz as PolylineVisualizer,GR as PolylineVolumeAnimationGeometry,Hu as PolylineVolumeGeometry,Gp as PolylineVolumeGeometryLibrary,X8 as PolylineVolumeGeometryUpdater,FE as PolylineVolumeGraphics,Y8 as PolylineVolumeOutlineGeometry,cp as PositionProperty,_x as PositionPropertyArray,Gr as PostProcessStage,X9 as PostProcessStageCollection,rf as PostProcessStageComposite,ed as PostProcessStageLibrary,_h as PostProcessStageSampleMode,d1 as PostProcessStageTextureCache,c4 as PpeMetadata,T2e as PpeSource,a4 as PpeTexture,Vn as Primitive,Uu as PrimitiveCollection,_S as PrimitiveLoadPlan,pS as PrimitiveOutlineGenerator,Lk as PrimitiveOutlinePipelineStage,bE as PrimitivePipeline,fV as PrimitiveRenderResources,vs as PrimitiveState,Nk as PrimitiveStatisticsPipelineStage,Fe as PrimitiveType,NW as ProjectionPicker,MW as ProjectionPickerViewModel,X as Property,vI as PropertyArray,Sy as PropertyAttribute,EB as PropertyAttributeProperty,mf as PropertyBag,ms as PropertyTable,Ey as PropertyTexture,AB as PropertyTextureProperty,ma as ProviderViewModel,sve as Proxy,Cu as QuadraticRealPolynomial,vG as QuadtreeOccluders,OG as QuadtreePrimitive,DG as QuadtreeTile,yc as QuadtreeTileLoadState,gPe as QuadtreeTileProvider,Cw as QuantizedMeshTerrainData,OL as QuarticRealPolynomial,Ge as Quaternion,S4 as QuaternionSpline,fT as Queue,kn as Ray,fe as Rectangle,Kv as RectangleCollisionChecker,Od as RectangleGeometry,Fa as RectangleGeometryLibrary,K8 as RectangleGeometryUpdater,fp as RectangleGraphics,KE as RectangleOutlineGeometry,Nr as ReferenceFrame,yx as ReferenceProperty,f2e as RenderDebug,Ne as RenderState,Dd as Renderbuffer,Ru as RenderbufferFormat,No as Request,k_ as RequestErrorEvent,Tc as RequestScheduler,Ii as RequestState,Bs as RequestType,Pe as Resource,er as ResourceCache,Cf as ResourceCacheKey,$B as ResourceCacheStatistics,Li as ResourceLoader,It as ResourceLoaderState,sm as Rotation,ae as RuntimeError,gy as S2Cell,oc as SDFSettings,Rc as SampledPositionProperty,Kd as SampledProperty,ln as Sampler,Jg as ScaledPositionProperty,A7 as Scene,c1 as SceneFramebuffer,oe as SceneMode,Fk as SceneMode2DPipelineStage,VW as SceneModePicker,BW as SceneModePickerViewModel,XIe as SceneProjectorEx,F7 as SceneProjectorExFS,$s as SceneProjectorSourceType,xr as SceneTransforms,Z9 as SceneTransitioner,s7 as ScreenSpaceCameraController,ch as ScreenSpaceEventHandler,Zn as ScreenSpaceEventType,lv as SectionCylinderGeometry,gU as SectionFrameBuffer,ac as SectionPlaneGeometry,Eb as SectionPolygonGeometry,EU as SectionRender,SV as SectionRenderUtil,VT as SelectedFeatureIdPipelineStage,GW as SelectionIndicator,zW as SelectionIndicatorViewModel,PI as SensorVolumePortionToDisplay,OS as ShaderBuilder,yU as ShaderCache,ye as ShaderDestination,eV as ShaderFunction,Ht as ShaderProgram,We as ShaderSource,Jk as ShaderStruct,P_ as ShadowMap,y0 as ShadowMapShader,Wn as ShadowMode,_d as ShadowVolumeAppearance,Xn as ShowGeometryInstanceAttribute,nC as Simon1994PlanetaryPositions,Tve as SimplePolylineGeometry,Zw as SingleTileImageryProvider,kk as SkinningPipelineStage,v7 as SkyAtmosphere,b1 as SkyBox,u7 as SpatialNode,o4 as Spdcf,mp as SpecularEnvironmentCubeMap,MIe as SphereEmitter,Cve as SphereGeometry,xy as SphereOutlineGeometry,b8 as Spherical,Jr as Spline,us as SplitDirection,bR as Splitter,NR as SpotLight,fm as StaticGeometryColorBatch,dm as StaticGeometryPerMaterialBatch,HI as StaticGroundGeometryColorBatch,nz as StaticGroundGeometryPerMaterialBatch,uz as StaticGroundPolylinePerMaterialBatch,GI as StaticOutlineGeometryBatch,on as StencilConstants,Ci as StencilFunction,Nt as StencilOperation,E4 as SteppedSpline,Ul as Stereographic,IT as StorageType,wI as StripeMaterialProperty,Yp as StripeOrientation,ho as StructuralMetadata,Rp as StyleCommandsNeeded,LIe as StyleExpression,O7 as Sun,Jy as SunLight,l7 as SunPostProcess,t4 as SupportedImageFormats,j7 as SvgPathBindingHandler,jn as SwipeModeType,p7 as SwiperCullingFramebuffer,rr as TaskProcessor,M7 as Terrain,d_ as TerrainData,au as TerrainEncoding,oR as TerrainFillMesh,Em as TerrainMesh,VE as TerrainOffsetProperty,ua as TerrainProvider,pc as TerrainQuantization,co as TerrainState,nt as Texture,ZV as Texture3D,$T as TextureAtlas,xU as TextureCache,Si as TextureMagnificationFilter,h7 as TextureManager,_n as TextureMinificationFilter,d2e as TextureUniform,Fn as TextureWrap,m_ as TileAvailability,Sc as TileBoundingRegion,eS as TileBoundingS2Cell,Zc as TileBoundingSphere,NIe as TileBoundingVolume,L7 as TileCoordinatesImageryProvider,FIe as TileDiscardPolicy,Yn as TileEdge,iR as TileImagery,KC as TileMapServiceImageryProvider,sB as TileMetadata,$c as TileOrientedBoundingBox,Ro as TileProviderError,IG as TileReplacementQueue,Ni as TileSelectionResult,BIe as TileState,BU as Tileset3DTileContent,nU as TilesetMetadata,O4 as TilesetPipelineStage,Ave as TilingScheme,Ri as TimeConstants,Qw as TimeDynamicImagery,HR as TimeDynamicPointCloud,ei as TimeInterval,Ws as TimeIntervalCollection,bx as TimeIntervalCollectionPositionProperty,Tx as TimeIntervalCollectionProperty,Di as TimeStandard,qW as Timeline,WW as TimelineHighlightRange,jW as TimelineTrack,v3 as Tipsify,DA as ToggleButtonViewModel,Tb as Tonemapper,St as Transforms,oT as TranslationRotationScale,d9 as TranslucentTileClassification,CP as TridiagonalSystemSolver,B1 as TrustedServers,h1 as TweenCollection,TU as UniformState,IR as UniformType,pl as UrlTemplateImageryProvider,kie as UrlUtil,rC as Util,Hkr as VERSION,ZW as VRButton,XW as VRButtonViewModel,wve as VRTheWorldTerrainProvider,h2e as VaryingType,ag as Vector3DTileBatch,XU as Vector3DTileClampedPolylines,ZU as Vector3DTileContent,nx as Vector3DTileGeometry,GU as Vector3DTilePoints,WU as Vector3DTilePolygons,gv as Vector3DTilePolylines,uv as Vector3DTilePrimitive,C8 as VelocityOrientationProperty,Lv as VelocityVectorProperty,Gn as VertexArray,$y as VertexArrayFacade,lt as VertexAttributeSemantic,Le as VertexFormat,no as VerticalExaggeration,Uk as VerticalExaggerationPipelineStage,fi as VerticalOrigin,Eve as VideoSynchronizer,u1 as View,uRe as Viewer,OR as ViewportQuad,t2e as ViewshedAnalysis,Ts as Visibility,D6 as VisualAnalysisManager,kEe as Visualizer,f0 as VoxelBoxShape,wR as VoxelCell,_H as VoxelContent,d0 as VoxelCylinderShape,Ww as VoxelEllipsoidShape,JW as VoxelInspector,$W as VoxelInspectorViewModel,bA as VoxelPrimitive,HIe as VoxelProvider,J6 as VoxelRenderResources,GIe as VoxelShape,Mr as VoxelShapeType,PR as VoxelTraversal,Dve as VulkanConstants,$8 as WallGeometry,qv as WallGeometryLibrary,J8 as WallGeometryUpdater,Z0 as WallGraphics,Q8 as WallOutlineGeometry,J as WebGLConstants,MH as WebMapServiceImageryProvider,LH as WebMapTileServiceImageryProvider,vr as WebMercatorProjection,fa as WebMercatorTilingScheme,ga as WindingOrder,wP as WireframeIndexGenerator,zk as WireframePipelineStage,E9 as _shadersAcesTonemappingStage,a7 as _shadersAdditiveBlend,_R as _shadersAdjustTranslucentFS,KM as _shadersAllMaterialAppearanceFS,ZM as _shadersAllMaterialAppearanceVS,S9 as _shadersAmbientOcclusionGenerate,v9 as _shadersAmbientOcclusionModulate,lL as _shadersAspectRampMaterial,hb as _shadersAtmosphereCommon,M4 as _shadersAtmosphereStageFS,L4 as _shadersAtmosphereStageVS,$M as _shadersBasicMaterialAppearanceFS,QM as _shadersBasicMaterialAppearanceVS,aU as _shadersBillboardCollectionFS,cU as _shadersBillboardCollectionVS,w9 as _shadersBlackAndWhite,D9 as _shadersBloomComposite,B6 as _shadersBrdfLutGeneratorFS,c7 as _shadersBrightPass,P9 as _shadersBrightness,uL as _shadersBumpMapMaterial,ck as _shadersCPUStylingStageFS,ak as _shadersCPUStylingStageVS,fL as _shadersCheckerboardMaterial,xH as _shadersCloudCollectionFS,bH as _shadersCloudCollectionVS,TH as _shadersCloudNoiseFS,CH as _shadersCloudNoiseVS,f9 as _shadersCompareAndPackTranslucentDepth,t9 as _shadersCompositeOITFS,l1 as _shadersCompositeTranslucentClassification,I9 as _shadersContrastBias,fk as _shadersCustomShaderStageFS,uk as _shadersCustomShaderStageVS,hE as _shadersCzmBuiltins,R9 as _shadersDepthOfField,HH as _shadersDepthPlaneFS,GH as _shadersDepthPlaneVS,O9 as _shadersDepthView,p2e as _shadersDepthViewPacked,dL as _shadersDotMaterial,M9 as _shadersEdgeDetection,hL as _shadersElevationBandMaterial,mL as _shadersElevationContourMaterial,pL as _shadersElevationRampMaterial,J2 as _shadersEllipsoidFS,$H as _shadersEllipsoidSurfaceAppearanceFS,QH as _shadersEllipsoidSurfaceAppearanceVS,eR as _shadersEllipsoidVS,F9 as _shadersFXAA,G9 as _shadersFXAA3_11,_L as _shadersFadeMaterial,dk as _shadersFeatureIdStageFS,hk as _shadersFeatureIdStageVS,L9 as _shadersFilmicTonemapping,hA as _shadersGaussianBlur1D,yk as _shadersGeometryStageFS,xk as _shadersGeometryStageVS,sG as _shadersGlobeFS,aG as _shadersGlobeVS,gL as _shadersGridMaterial,tR as _shadersGroundAtmosphere,yF as _shadersHSBToRGB,xF as _shadersHSLToRGB,F4 as _shadersImageBasedLightingStageFS,Z4 as _shadersInstancingStageCommon,$4 as _shadersInstancingStageVS,j6 as _shadersIntersectBox,W6 as _shadersIntersectClippingPlanes,q6 as _shadersIntersectCylinder,G6 as _shadersIntersectDepth,Y6 as _shadersIntersectEllipsoid,B2 as _shadersIntersectLongitude,Vw as _shadersIntersection,H6 as _shadersIntersectionUtils,Q4 as _shadersLegacyInstancingStageVS,k9 as _shadersLensFlare,Ak as _shadersLightingStageFS,Sk as _shadersMaterialStageFS,Q6 as _shadersMegatexture,mk as _shadersMetadataStageFS,pk as _shadersMetadataStageVS,W4 as _shadersModelClippingGeometryStageFS,H4 as _shadersModelClippingPlanesStageFS,Y4 as _shadersModelClippingPolygonsStageFS,q4 as _shadersModelClippingPolygonsStageVS,z4 as _shadersModelColorStageFS,jk as _shadersModelExplosionStageVS,_V as _shadersModelFS,Xk as _shadersModelFlattenStageVS,nV as _shadersModelSilhouetteStageFS,iV as _shadersModelSilhouetteStageVS,sV as _shadersModelSplitterStageFS,Gk as _shadersModelStretchStageVS,yV as _shadersModelSwipePipelineStageFS,pV as _shadersModelVS,V9 as _shadersModifiedReinhardTonemapping,wk as _shadersMorphTargetsStageVS,U9 as _shadersNightVision,yL as _shadersNormalMapMaterial,$6 as _shadersOctree,Jf as _shadersPassThrough,eA as _shadersPassThroughDepth,N9 as _shadersPbrNeutralTonemapping,DL as _shadersPerInstanceColorAppearanceFS,PL as _shadersPerInstanceColorAppearanceVS,uE as _shadersPerInstanceFlatColorAppearanceFS,IL as _shadersPerInstanceFlatColorAppearanceVS,p4 as _shadersPointCloudEyeDomeLighting,Ik as _shadersPointCloudStylingStageVS,uC as _shadersPointPrimitiveCollectionFS,d8 as _shadersPointPrimitiveCollectionVS,TB as _shadersPolygonSignedDistanceFS,xL as _shadersPolylineArrowMaterial,Y3 as _shadersPolylineColorAppearanceVS,gd as _shadersPolylineCommon,bL as _shadersPolylineDashMaterial,SE as _shadersPolylineFS,TL as _shadersPolylineGlowMaterial,X3 as _shadersPolylineMaterialAppearanceVS,CL as _shadersPolylineOutlineMaterial,G3 as _shadersPolylineShadowVolumeFS,W3 as _shadersPolylineShadowVolumeMorphFS,j3 as _shadersPolylineShadowVolumeMorphVS,q3 as _shadersPolylineShadowVolumeVS,kU as _shadersPolylineVS,Mk as _shadersPrimitiveOutlineStageFS,Ok as _shadersPrimitiveOutlineStageVS,jF as _shadersRGBToHSB,qF as _shadersRGBToHSL,YF as _shadersRGBToXYZ,z9 as _shadersReinhardTonemapping,lG as _shadersReprojectWebMercatorFS,uG as _shadersReprojectWebMercatorVS,AL as _shadersRimLightingMaterial,m2e as _shadersSelectedFeatureIdStageCommon,bk as _shadersSelectedFeatureIdStageFS,Tk as _shadersSelectedFeatureIdStageVS,lD as _shadersShadowVolumeAppearanceFS,C3 as _shadersShadowVolumeAppearanceVS,Xb as _shadersShadowVolumeFS,H9 as _shadersSilhouette,Bk as _shadersSkinningStageVS,BR as _shadersSkyAtmosphereCommon,E7 as _shadersSkyAtmosphereFS,S7 as _shadersSkyAtmosphereVS,w7 as _shadersSkyBoxFS,D7 as _shadersSkyBoxVS,EL as _shadersSlopeRampMaterial,SL as _shadersStripeMaterial,P7 as _shadersSunFS,I7 as _shadersSunTextureFS,R7 as _shadersSunVS,JM as _shadersTexturedMaterialAppearanceFS,eL as _shadersTexturedMaterialAppearanceVS,YU as _shadersVector3DTileClampedPolylinesFS,qU as _shadersVector3DTileClampedPolylinesVS,jU as _shadersVector3DTilePolylinesVS,VD as _shadersVectorTileVS,Vk as _shadersVerticalExaggerationStageVS,_7 as _shadersViewportQuadFS,av as _shadersViewportQuadVS,U6 as _shadersVoxelFS,V6 as _shadersVoxelUtils,z6 as _shadersVoxelVS,wL as _shadersWater,vL as _shadersWaterMaskMaterial,b3 as _shadersXYZToRGB,LN as _shadersacesTonemapping,NN as _shadersalphaWeight,FN as _shadersantialias,BN as _shadersapplyColorCorrection,kN as _shadersapplyHSBShift,VN as _shadersapproximateSphericalCoordinates,UN as _shadersapproximateTanh,zN as _shadersbackFacing,HN as _shadersbranchFreeTernary,GN as _shaderscascadeColor,WN as _shaderscascadeDistance,jN as _shaderscascadeMatrix,qN as _shaderscascadeWeights,YN as _shadersclipPolygons,XN as _shaderscolumbusViewMorph,KN as _shaderscomputeAtmosphereColor,ZN as _shaderscomputeGroundAtmosphereScattering,$N as _shaderscomputePosition,QN as _shaderscomputeScattering,X6 as _shadersconvertUvToBox,K6 as _shadersconvertUvToCylinder,Z6 as _shadersconvertUvToEllipsoid,JN as _shaderscosineAndSine,SN as _shaderscreateTranslationMatrix,eF as _shadersdecompressTextureCoordinates,zL as _shadersdegreesPerRadian,tF as _shadersdepthClamp,HL as _shadersdepthRange,vN as _shadersdepthRangeStruct,nF as _shaderseastNorthUpToEyeCoordinates,iF as _shadersellipsoidContainsPoint,rF as _shadersellipsoidTextureCoordinates,GL as _shadersepsilon1,WL as _shadersepsilon2,jL as _shadersepsilon3,qL as _shadersepsilon4,YL as _shadersepsilon5,XL as _shadersepsilon6,KL as _shadersepsilon7,oF as _shadersequalsEpsilon,sF as _shaderseyeOffset,aF as _shaderseyeToWindowCoordinates,cF as _shadersfastApproximateAtan,lF as _shadersfog,uF as _shadersgammaCorrect,fF as _shadersgeodeticSurfaceNormal,dF as _shadersgeometryClip,hF as _shadersgetDefaultMaterial,mF as _shadersgetDynamicAtmosphereLightDirection,pF as _shadersgetLambertDiffuse,_F as _shadersgetSpecular,gF as _shadersgetWaterNoise,bF as _shadershue,ZL as _shadersinfinity,TF as _shadersinverseGamma,CF as _shadersisEmpty,AF as _shadersisFull,EF as _shaderslatitudeToWebMercatorFraction,vF as _shaderslineDistance,SF as _shaderslinearToSrgb,wF as _shadersluminance,wN as _shadersmaterial,DN as _shadersmaterialInput,DF as _shadersmaximumComponent,PF as _shadersmetersPerPixel,PN as _shadersmodelMaterial,IF as _shadersmodelToWindowCoordinates,IN as _shadersmodelVertexOutput,RF as _shadersmultiplyWithColorBalance,OF as _shadersnearFarScalar,MF as _shadersoctDecode,$L as _shadersoneOverPi,QL as _shadersoneOverTwoPi,LF as _shaderspackDepth,JL as _shaderspassCesium3DTile,eN as _shaderspassCesium3DTileClassification,tN as _shaderspassCesium3DTileClassificationIgnoreShow,nN as _shaderspassClassification,iN as _shaderspassCompute,rN as _shaderspassEnvironment,oN as _shaderspassGlobe,sN as _shaderspassOpaque,aN as _shaderspassOverlay,cN as _shaderspassTerrainClassification,lN as _shaderspassTranslucent,uN as _shaderspassVoxels,NF as _shaderspbrLighting,FF as _shaderspbrNeutralTonemapping,BF as _shadersphong,fN as _shaderspi,dN as _shaderspiOverFour,hN as _shaderspiOverSix,mN as _shaderspiOverThree,pN as _shaderspiOverTwo,kF as _shadersplaneDistance,VF as _shaderspointAlongRay,_N as _shadersradiansPerDegree,RN as _shadersray,UF as _shadersrayEllipsoidIntersectionInterval,ON as _shadersraySegment,zF as _shadersraySphereIntersectionInterval,HF as _shadersreadDepth,GF as _shadersreadNonPerspective,WF as _shadersreverseLogDepth,XF as _shadersrollerShutter,KF as _shadersrollerShutterPolygon,ZF as _shadersrollerShutterSpyglass,$F as _shadersround,QF as _shaderssaturation,gN as _shaderssceneMode2D,yN as _shaderssceneMode3D,xN as _shaderssceneModeColumbusView,bN as _shaderssceneModeMorphing,JF as _shadersshadowDepthCompare,MN as _shadersshadowParameters,e3 as _shadersshadowVisibility,t3 as _shaderssignNotZero,TN as _shaderssolarRadius,n3 as _shaderssphericalHarmonics,i3 as _shaderssrgbToLinear,r3 as _shaderstangentToEyeSpaceMatrix,o3 as _shaderstextureCube,CN as _shadersthreePiOver2,s3 as _shaderstransformPlane,a3 as _shaderstranslateRelativeToEye,c3 as _shaderstranslucentPhong,l3 as _shaderstranspose,AN as _shaderstwoPi,u3 as _shadersunpackClippingExtents,f3 as _shadersunpackDepth,d3 as _shadersunpackFloat,h3 as _shadersunpackUint,m3 as _shadersvalueTransform,p3 as _shadersvertexLogDepth,EN as _shaderswebMercatorMaxLatitude,_3 as _shaderswindowToEyeCoordinates,g3 as _shaderswriteDepthClamp,y3 as _shaderswriteLogDepth,x3 as _shaderswriteNonPerspective,VB as addBuffer,PB as addDefaults,FB as addExtensionsRequired,Vh as addExtensionsUsed,wT as addPipelineExtras,Ba as addToArray,TO as appendForwardSlash,bo as arrayRemoveDuplicates,pE as barycentricCoordinates,Lo as binarySearch,Cn as buildModuleUrl,nH as buildVoxelDrawCommands,Ve as clone,xt as combine,jw as computeFlyToLocationForRectangle,hv as createBillboardPointCallback,ni as createCommand,sW as createDefaultImageryProviderViewModels,aW as createDefaultTerrainProviderViewModels,zwe as createElevationBandMaterial,Gwe as createGooglePhotorealistic3DTileset,Kn as createGuid,Bo as createMaterialPropertyDescriptor,Wwe as createOsmBuildingsAsync,_e as createPropertyDescriptor,hf as createRawPropertyDescriptor,jwe as createTangentSpaceDebugPrimitive,C2e as createTaskProcessorWorker,vB as createUUID,kL as createUniform,VL as createUniformArray,e6 as createWorldBathymetryAsync,db as createWorldImageryAsync,Sw as createWorldTerrainAsync,t6 as decodeGoogleEarthEnterpriseData,KU as decodeVectorPolylinePositions,y as defaultValue,cf as defer,u as defined,T3 as demodernizeShader,uo as deprecationWarning,he as destroyObject,XCe as exportKml,fS as findAccessorMinMax,ay as findContentMetadata,cy as findGroupMetadata,GE as findTileMetadata,lP as forEachTextureInMaterial,c0 as formatError,mae as freezeRenderState,B_ as getAbsoluteUri,bf as getAccessorByteStride,CO as getBaseUri,Bl as getBinaryAccessor,rG as getClipAndStyleCode,ab as getClippingFunction,Ty as getComponentReader,li as getElement,VA as getExtensionFromUri,px as getFilenameFromUri,s6 as getImageFromTypedArray,jm as getImagePixels,dr as getJsonFromTypedArray,Kc as getMagic,oG as getMetadataClassProperty,Vo as getStringFromTypedArray,pr as getTimestamp,Ai as hasExtension,$0 as heightReferenceOnEntityPropertyChanged,lu as isBitSet,UA as isBlobUri,Mb as isCrossOriginUrl,I0 as isDataUri,Wm as isLeapYear,Se as knockout,D1 as knockout_3_5_1,W7 as knockout_es5,zA as loadAndExecuteScript,R6 as loadCubeMap,lS as loadImageFromTypedArray,ff as loadKTX2,tb as mergeSort,NB as moveTechniqueRenderStates,BB as moveTechniquesToExtension,wd as numberOfComponentsForType,HA as objectToQuery,Bt as oneTimeWarning,zE as pako_inflate,Id as parseAttBatchTable,Pp as parseBatchTable,DB as parseFeatureMetadataLegacy,OB as parseGlb,EO as parseResponseHeaders,wB as parseStructuralMetadata,qT as parseVoxelStyles,IP as pickModel,rve as pointInsideTriangle,dg as preprocess3DTileContent,qV as preprocessM3DContent,tH as processVoxelProperties,ad as queryToObject,UB as readAccessorPacked,dS as removeExtension,RB as removeExtensionsRequired,uS as removeExtensionsUsed,LB as removePipelineExtras,kB as removeUnusedElements,DT as resizeImageToNextPowerOfTwo,T6 as sampleTerrain,Mw as sampleTerrainMostDetailed,NA as scaleToGeodeticSurface,Nw as srgbToLinear,A3 as subdivideArray,Bc as subscribeAndEvaluate,HB as updateAccessorComponentTypes,WB as updateVersion,ps as usesExtension,fRe as viewerCesium3DTilesInspectorMixin,dRe as viewerCesiumInspectorMixin,mRe as viewerDragDropMixin,pRe as viewerPerformanceWatchdogMixin,gRe as viewerVoxelInspectorMixin,Pve as webGLConstantToGlslType,w6 as wrapFunction,JS as writeTextToCanvas,c2e as zlib_min};
|