@arcgis/core 4.32.0-next.20241111 → 4.32.0-next.20241113
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/10a2b8c562c56653b1e0.js +1 -0
- package/assets/esri/core/workers/chunks/310aedf8800cf7fbee23.js +1 -0
- package/assets/esri/core/workers/chunks/39accea1f8c9a75058fc.js +1 -0
- package/assets/esri/core/workers/chunks/{695e8174dc6bab4256e5.js → 3bc3a78ce8de37f5c546.js} +23 -23
- package/assets/esri/core/workers/chunks/3daf5edc6641d2fedac3.js +1 -0
- package/assets/esri/core/workers/chunks/48235ecd4923bba7a5ff.js +1 -0
- package/assets/esri/core/workers/chunks/4ac695f065f48009ff28.js +51 -0
- package/assets/esri/core/workers/chunks/54ec7ef66430cdbbfee3.js +1 -0
- package/assets/esri/core/workers/chunks/610d621a8296b77fb16c.js +1 -0
- package/assets/esri/core/workers/chunks/80d17e1e77e116319367.js +1 -0
- package/assets/esri/core/workers/chunks/8be3a985e9a9de39c4fa.js +1 -0
- package/assets/esri/core/workers/chunks/aa1af5e799697b876b7b.js +1 -0
- package/assets/esri/core/workers/chunks/{ab6dd330da1f058f7296.js → ad44b0f749e5ca5a9772.js} +1 -1
- package/assets/esri/core/workers/chunks/{7ef61b70338afa0b5573.js → e93f863337e1fedf1803.js} +1 -1
- package/assets/esri/core/workers/chunks/edcc00babfed0a80c0bd.js +1 -0
- package/assets/esri/core/workers/chunks/fb6f6093f16e9be1fcd0.js +1 -0
- package/chunks/BlendWeights.glsl.js +5 -8
- package/chunks/LineMarker.glsl.js +39 -39
- package/chunks/vec3.js +1 -1
- package/chunks/vec4.js +1 -1
- package/colorUtils.js +1 -1
- package/geometry/support/buffer/math/vec3.js +1 -1
- package/geometry/support/buffer/math/vec4.js +1 -1
- package/geometry/support/meshUtils/exporters/gltf/gltf.js +1 -1
- package/geometry/support/meshUtils/loadGLTFMesh.js +1 -1
- package/interfaces.d.ts +40685 -49782
- package/layers/WCSLayer.js +1 -1
- package/layers/mixins/ImageryTileMixin.js +1 -1
- package/package.json +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/ComputedMarkerParams.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +15 -15
- package/views/3d/webgl-engine/core/shaderLibrary/shading/TerrainDepthTest.glsl.js +4 -4
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/ReactiveGraphic.js +1 -1
- package/widgets/BatchAttributeForm/inputs/BatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm.js +1 -1
- package/widgets/Editor/Edits.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/FeatureForm/featureFormUtils.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/support/forms/formUtils.js +1 -1
- package/assets/esri/core/workers/chunks/03192a2af5707c30b5bb.js +0 -1
- package/assets/esri/core/workers/chunks/0da3cf883a2c00800f30.js +0 -1
- package/assets/esri/core/workers/chunks/2909b3a6b71b34e30695.js +0 -1
- package/assets/esri/core/workers/chunks/2a9667166327be968064.js +0 -1
- package/assets/esri/core/workers/chunks/40d98cab2a88dcdeb783.js +0 -1
- package/assets/esri/core/workers/chunks/434ae6a5db87b5364eed.js +0 -51
- package/assets/esri/core/workers/chunks/485907740fd791f9b307.js +0 -1
- package/assets/esri/core/workers/chunks/5cdc601c5e1769741105.js +0 -1
- package/assets/esri/core/workers/chunks/baafc01c75774103bbed.js +0 -1
- package/assets/esri/core/workers/chunks/bf83852bd12b6d157b15.js +0 -1
- package/assets/esri/core/workers/chunks/bfc0c262e5a1e81a7717.js +0 -1
- package/assets/esri/core/workers/chunks/c76174977ac5059e5cdd.js +0 -1
- package/assets/esri/core/workers/chunks/de1fcf2a928e8ccb270d.js +0 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial_COLOR_GAMMA.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5373],{68197:(e,t,r)=>{r.d(t,{A:()=>h});var n,o,i=r(40876),s=r(34727),a=r(56507);function l(e){return(0,s.qE)((0,a.Vr)(e),0,255)}function f(e,t,r){return e=Number(e),isNaN(e)?r:e<t?t:e>r?r:e}function c(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class u{static blendColors(e,t,r,n=new u){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=e.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(r){const e=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===e.length||"rgba"===n&&4===e.length){const r=e[0];if("%"===r.charAt(r.length-1)){const r=e.map((e=>2.56*parseFloat(e)));return 4===e.length&&(r[3]=parseFloat(e[3])),u.fromArray(r,t)}return u.fromArray(e.map((e=>parseFloat(e))),t)}if("hsl"===n&&3===e.length||"hsla"===n&&4===e.length)return u.fromArray((0,i.z$)(parseFloat(e[0]),parseFloat(e[1])/100,parseFloat(e[2])/100,parseFloat(e[3])),t)}return null}static fromHex(e,t=new u){if("#"!==e[0]||isNaN(Number(`0x${e.slice(1)}`)))return null;switch(e.length){case 4:case 5:{const r=parseInt(e.slice(1,2),16),n=parseInt(e.slice(2,3),16),o=parseInt(e.slice(3,4),16),i=5===e.length?15:parseInt(e.slice(4),16);return u.fromArray([r+16*r,n+16*n,o+16*o,(i+16*i)/255],t)}case 7:case 9:{const r=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),o=parseInt(e.slice(5,7),16),i=7===e.length?255:parseInt(e.slice(7),16);return u.fromArray([r,n,o,i/255],t)}default:return null}}static fromArray(e,t=new u){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,i.V6)(e)?(0,i.TS)(e):null;return r&&u.fromArray(r,t)||u.fromRgb(e,t)||u.fromHex(e,t)}static fromJSON(e){return null!=e?new u([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?u.fromString(e,this):Array.isArray(e)?u.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof u||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,o=4===r||8===r,i=`#${c(this.r,n)}${c(this.g,n)}${c(this.b,n)}${o?c(Math.round(255*this.a),n):""}`;return t?i.toUpperCase():i}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=u.AlphaMode.ALWAYS){const t=l(this.r),r=l(this.g),n=l(this.b);return e===u.AlphaMode.ALWAYS||1!==this.a?[t,r,n,l(255*this.a)]:[t,r,n]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=Math.round(f(this.r,0,255)),this.g=Math.round(f(this.g,0,255)),this.b=Math.round(f(this.b,0,255)),this.a=f(this.a,0,1),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}u.prototype.declaredClass="esri.Color",(o=(n=u||(u={})).AlphaMode||(n.AlphaMode={}))[o.ALWAYS=0]="ALWAYS",o[o.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const h=u},73354:(e,t,r)=>{r.d(t,{a:()=>u,b:()=>a,c:()=>s,d:()=>o,e:()=>h,f:()=>c,l:()=>f,n:()=>d,t:()=>i});var n=r(40876);function o(e,t,r){i(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function i(e,t,r,n=3,o=n){if(e.length/n!==Math.ceil(t.length/o))return e;const i=e.length/n,s=r[0],a=r[1],l=r[2],f=r[4],c=r[5],u=r[6],h=r[8],d=r[9],p=r[10],y=r[12],g=r[13],b=r[14];let m=0,w=0;for(let r=0;r<i;r++){const r=t[m],i=t[m+1],A=t[m+2];e[w]=s*r+f*i+h*A+y,e[w+1]=a*r+c*i+d*A+g,e[w+2]=l*r+u*i+p*A+b,m+=o,w+=n}return e}function s(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,n=3,o=n){if(e.length/n!==Math.ceil(t.length/o))return;const i=e.length/n,s=r[0],a=r[1],l=r[2],f=r[3],c=r[4],u=r[5],h=r[6],d=r[7],p=r[8];let y=0,g=0;for(let r=0;r<i;r++){const r=t[y],i=t[y+1],b=t[y+2];e[g]=s*r+f*i+h*b,e[g+1]=a*r+c*i+d*b,e[g+2]=l*r+u*i+p*b,y+=o,g+=n}}function l(e,t,r,n=3,o=n){const i=Math.min(e.length/n,t.length/o);let s=0,a=0;for(let l=0;l<i;l++)e[a]=r*t[s],e[a+1]=r*t[s+1],e[a+2]=r*t[s+2],s+=o,a+=n;return e}function f(e,t,r,n){c(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function c(e,t,r,o,i=3,s=i){const a=Math.min(e.length/i,t.length/s);let l=0,f=0;const c=1/n.Tf;for(let n=0;n<a;n++)e[f]=o*(r*t[l])**c,e[f+1]=o*(r*t[l+1])**c,e[f+2]=o*(r*t[l+2])**c,l+=s,f+=i}function u(e,t,r,n=3,o=n){const i=e.length/n;if(i!==Math.ceil(t.length/o))return e;let s=0,a=0;for(let l=0;l<i;l++)e[a]=t[s]+r[0],e[a+1]=t[s+1]+r[1],e[a+2]=t[s+2]+r[2],s+=o,a+=n;return e}function h(e,t){d(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function d(e,t,r=3,n=r){const o=Math.min(e.length/r,t.length/n);let i=0,s=0;for(let a=0;a<o;a++){const o=t[i],a=t[i+1],l=t[i+2],f=o*o+a*a+l*l;if(f>0){const t=1/Math.sqrt(f);e[s]=t*o,e[s+1]=t*a,e[s+2]=t*l}i+=n,s+=r}}r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:f,normalize:d,normalizeView:h,scale:l,scaleView:function(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),o=e.typedBuffer,i=e.typedBufferStride,s=t.typedBuffer,a=t.typedBufferStride;let l=0,f=0;for(let e=0;e<n;e++)o[f]=s[l]>>r,o[f+1]=s[l+1]>>r,o[f+2]=s[l+2]>>r,l+=a,f+=i},transformMat3:a,transformMat3View:s,transformMat4:i,transformMat4View:o,translate:u},Symbol.toStringTag,{value:"Module"}))},21818:(e,t,r)=>{function n(e){}r.d(t,{Xb:()=>n}),r(44208)},95696:(e,t,r)=>{r.d(t,{A:()=>u});var n,o=r(90237),i=r(69540),s=r(25482),a=r(10107),l=(r(44208),r(53966),r(87811),r(93223)),f=r(40608);let c=n=class extends((0,i.O)(s.oY)){constructor(e){super(e),this.type="georeferenced",this.origin=null}};c.absolute=new n,(0,o._)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,o._)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=n=(0,o._)([(0,f.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c);const u=c},18251:(e,t,r)=>{r.d(t,{A:()=>u});var n=r(90237),o=r(69540),i=r(25482),s=r(10107),a=(r(44208),r(53966),r(87811),r(93223)),l=r(40608),f=r(51850);let c=class extends((0,o.O)(i.oY)){constructor(e){super(e),this.type="local",this.origin=(0,f.vt)()}};(0,n._)([(0,a.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,n._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,n._)([(0,l.$)("esri.geometry.support.MeshLocalVertexSpace")],c);const u=c},2060:(e,t,r)=>{r.r(t),r.d(t,{destroyContext:()=>E,dracoDecompressPointCloudData:()=>w,filterObbsForModifications:()=>A,filterObbsForModificationsSync:()=>C,initialize:()=>O,interpretObbModificationResults:()=>v,process:()=>m,project:()=>N,setLegacySchema:()=>M,setModifications:()=>S,setModificationsSync:()=>L,test:()=>P,transformNormals:()=>B});var n,o,i=r(34727),s=r(16930),a=r(95696),l=r(18251),f=r(73354);!function(e){e[e.None=0]="None",e[e.Int16=1]="Int16",e[e.Int32=2]="Int32"}(n||(n={})),function(e){e[e.Replace=0]="Replace",e[e.Outside=1]="Outside",e[e.Inside=2]="Inside",e[e.Finished=3]="Finished"}(o||(o={}));var c=r(2741);function u(e){return(0,c.s)(`esri/libs/i3s/${e}`)}let h;var d,p,y,g,b;async function m(e){I=await x();const t=[e.geometryBuffer];return{result:R(I,e,t),transferList:t}}async function w(e){I=await x();const t=[e.geometryBuffer],{geometryBuffer:r}=e,n=r.byteLength,o=I._malloc(n),i=new Uint8Array(I.HEAPU8.buffer,o,n);i.set(new Uint8Array(r));const s=I.dracoDecompressPointCloudData(o,i.byteLength);if(I._free(o),s.error.length>0)throw new Error(`i3s.wasm: ${s.error}`);const a=s.featureIds?.length>0?s.featureIds.slice():null,l=s.positions.slice();return a&&t.push(a.buffer),t.push(l.buffer),{result:{positions:l,featureIds:a},transferList:t}}async function A(e){await x(),C(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function S(e){await x(),L(e)}async function M(e){I=await x(),I.setLegacySchema(e.context,e.jsonSchema)}async function N(e){const{localMatrix:t,origin:n,positions:o,vertexSpace:i}=e,f=s.A.fromJSON(e.inSpatialReference),c=s.A.fromJSON(e.outSpatialReference);let u;const[{projectBuffer:h},{initializeProjection:d}]=await Promise.all([Promise.resolve().then(r.bind(r,9762)),Promise.resolve().then(r.bind(r,57251))]);await d(f,c);const p=[0,0,0];if(!h(n,f,0,p,c,0))throw new Error("Failed to project");if("georeferenced"===i.type&&null==i.origin){if(u=new Float64Array(o.length),!h(o,f,0,u,c,0,u.length/3))throw new Error("Failed to project")}else{const e="georeferenced"===i.type?a.A.fromJSON(i):l.A.fromJSON(i),{projectMeshVertexPositions:n}=await Promise.all([r.e(3030),r.e(4594)]).then(r.bind(r,74594)),s=n({vertexAttributes:{position:o},transform:t?{localMatrix:t}:void 0,vertexSpace:e,spatialReference:f},c);if(!s)throw new Error("Failed to project");u=s}const y=u.length,[g,b,m]=p;for(let e=0;e<y;e+=3)u[e]-=g,u[e+1]-=b,u[e+2]-=m;return{result:{projected:u,original:o,projectedOrigin:p},transferList:[u.buffer,o.buffer]}}async function B({normalMatrix:e,normals:t}){const r=new Float32Array(t.length);return(0,f.b)(r,t,e),(0,i.or)(e)&&(0,f.n)(r,r),{result:{transformed:r,original:t},transferList:[r.buffer,t.buffer]}}function E(e){U(e)}let _,I;function L(e){if(!I)return;const t=e.modifications,r=I._malloc(8*t.length),n=new Float64Array(I.HEAPU8.buffer,r,t.length);for(let e=0;e<t.length;++e)n[e]=t[e];I.setModifications(e.context,r,t.length,e.isGeodetic),I._free(r)}function R(e,t,r){const{context:o,globalTrafo:i,mbs:s,obbData:a,elevationOffset:l,geometryBuffer:f,geometryDescriptor:c,indexToVertexProjector:u,vertexToRenderProjector:h}=t,d=e._malloc(f.byteLength),p=e._malloc(33*Float64Array.BYTES_PER_ELEMENT),y=new Uint8Array(e.HEAPU8.buffer,d,f.byteLength);y.set(new Uint8Array(f));const g=new Float64Array(e.HEAPU8.buffer,p,33);F(g,[NaN,NaN,NaN]);let b=g.byteOffset+3*g.BYTES_PER_ELEMENT,m=new Float64Array(g.buffer,b);F(m,i),b+=16*g.BYTES_PER_ELEMENT,m=new Float64Array(g.buffer,b),F(m,s),b+=4*g.BYTES_PER_ELEMENT,a&&(m=new Float64Array(g.buffer,b),F(m,a));const w=c,A={isDraco:!1,isLegacy:!1,color:t.layouts.some((e=>e.some((e=>"color"===e.name)))),normal:t.needNormals&&t.layouts.some((e=>e.some((e=>"normalCompressed"===e.name)))),uv0:t.layouts.some((e=>e.some((e=>"uv0"===e.name)))),uvRegion:t.layouts.some((e=>e.some((e=>"uvRegion"===e.name)))),featureIndex:w.featureIndex},S=e.process(o,!!t.obbData,d,y.byteLength,w,A,p,l,u,h,t.normalReferenceFrame);if(e._free(p),e._free(d),S.error.length>0)throw new Error(`i3s.wasm: ${S.error}`);if(S.discarded)return null;const M=S.componentOffsets.length>0?S.componentOffsets.slice():null,N=S.featureIds.length>0?S.featureIds.slice():null,B=S.anchorIds.length>0?Array.from(S.anchorIds):null,E=S.anchors.length>0?Array.from(S.anchors):null,_=S.interleavedVertedData.slice().buffer,I=S.indicesType===n.Int16?new Uint16Array(S.indices.buffer,S.indices.byteOffset,S.indices.byteLength/2).slice():new Uint32Array(S.indices.buffer,S.indices.byteOffset,S.indices.byteLength/4).slice(),L=S.positions.slice(),R=S.positionIndicesType===n.Int16?new Uint16Array(S.positionIndices.buffer,S.positionIndices.byteOffset,S.positionIndices.byteLength/2).slice():new Uint32Array(S.positionIndices.buffer,S.positionIndices.byteOffset,S.positionIndices.byteLength/4).slice(),v={layout:t.layouts[0],interleavedVertexData:_,indices:I,hasColors:S.hasColors,hasModifications:S.hasModifications,positionData:{data:L,indices:R}};return N&&r.push(N.buffer),M&&r.push(M.buffer),r.push(_),r.push(I.buffer),r.push(L.buffer),r.push(R.buffer),{componentOffsets:M,featureIds:N,anchorIds:B,anchors:E,transformedGeometry:v,obb:S.obb,globalTrafo:i}}function v(e){return 0===e?p.Unmodified:1===e?p.PotentiallyModified:2===e?p.Culled:p.Unknown}function C(e){if(!I)return;const{context:t,buffer:r}=e,n=I._malloc(r.byteLength),o=r.byteLength/Float64Array.BYTES_PER_ELEMENT,i=new Float64Array(I.HEAPU8.buffer,n,o),s=new Float64Array(r);i.set(s),I.filterOBBs(t,n,o),s.set(i),I._free(n)}function U(e){I&&0===I.destroy(e)&&(I=null)}function F(e,t){for(let r=0;r<t.length;++r)e[r]=t[r]}async function O(){I||await x()}function x(){return I?Promise.resolve(I):(_||(_=(h||(h=new Promise((e=>r.e(2980).then(r.bind(r,82980)).then((e=>e.i)).then((({default:t})=>{const r=t({locateFile:u,onRuntimeInitialized:()=>e(r)});delete r.then})))).catch((e=>{throw e}))),h).then((e=>(I=e,_=null,I)))),_)}r(91829),r(97937),r(4654),function(e){e[e.Unmodified=0]="Unmodified",e[e.Culled=1]="Culled",e[e.NotChecked=2]="NotChecked"}(d||(d={})),function(e){e[e.Unmodified=0]="Unmodified",e[e.PotentiallyModified=1]="PotentiallyModified",e[e.Culled=2]="Culled",e[e.Unknown=3]="Unknown",e[e.NotChecked=4]="NotChecked"}(p||(p={})),function(e){e[e.Unknown=0]="Unknown",e[e.Uncached=1]="Uncached",e[e.Cached=2]="Cached"}(y||(y={})),function(e){e[e.None=0]="None",e[e.MaxScreenThreshold=1]="MaxScreenThreshold",e[e.ScreenSpaceRelative=2]="ScreenSpaceRelative",e[e.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",e[e.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(g||(g={})),function(e){e[e.Hole=0]="Hole",e[e.Leaf=1]="Leaf"}(b||(b={}));const P={transform:(e,t)=>I&&R(I,e,t),destroy:U}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4594],{65686:(n,e,t)=>{t.d(e,{a:()=>i,b:()=>f,l:()=>c,n:()=>u,t:()=>l});var r=t(40876),o=(t(44208),t(53966));function i(n,e,t){l(n.typedBuffer,e.typedBuffer,t,n.typedBufferStride,e.typedBufferStride)}function l(n,e,t,r=4,o=r){if(n.length/r!=e.length/o)return;const i=n.length/r,l=t[0],u=t[1],a=t[2],c=t[3],f=t[4],s=t[5],p=t[6],g=t[7],d=t[8];let y=0,m=0;for(let t=0;t<i;t++){const t=e[y],i=e[y+1],A=e[y+2],T=e[y+3];n[m]=l*t+c*i+p*A,n[m+1]=u*t+f*i+g*A,n[m+2]=a*t+s*i+d*A,n[m+3]=T,y+=o,m+=r}}function u(n,e){const t=Math.min(n.count,e.count),r=n.typedBuffer,o=n.typedBufferStride,i=e.typedBuffer,l=e.typedBufferStride;for(let n=0;n<t;n++){const e=n*o,t=n*l,u=i[t],a=i[t+1],c=i[t+2],f=u*u+a*a+c*c;if(f>0){const n=1/Math.sqrt(f);r[e]=n*u,r[e+1]=n*a,r[e+2]=n*c}}}function a(n,e,t,r=4){const o=Math.min(n.length/r,e.count),i=e.typedBuffer,l=e.typedBufferStride;let u=0,a=0;for(let e=0;e<o;e++)n[a]=t*i[u],n[a+1]=t*i[u+1],n[a+2]=t*i[u+2],n[a+3]=t*i[u+3],u+=l,a+=r}function c(n,e,t,r){f(n.typedBuffer,e,t,r,n.typedBufferStride)}function f(n,e,t,o,i=4){const l=Math.min(n.length/i,e.count),u=e.typedBuffer,a=e.typedBufferStride;let c=0,f=0;const s=1/r.Tf;for(let e=0;e<l;e++)n[f]=o*(t*u[c])**s,n[f+1]=o*(t*u[c+1])**s,n[f+2]=o*(t*u[c+2])**s,n[f+3]=o*t*u[c+3],c+=a,f+=i}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:f,linearToSRGBView:c,normalize:u,scale:a,scaleView:function(n,e,t){a(n.typedBuffer,e,t,n.typedBufferStride)},transformMat3:l,transformMat3View:i,transformMat4:function(n,e,t,r=4,i=r){if(n.length/r!=e.length/i)return void o.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const l=n.length/r,u=t[0],a=t[1],c=t[2],f=t[3],s=t[4],p=t[5],g=t[6],d=t[7],y=t[8],m=t[9],A=t[10],T=t[11],v=t[12],R=t[13],h=t[14],w=t[15];let E=0,N=0;for(let t=0;t<l;t++){const t=e[E],o=e[E+1],l=e[E+2],S=e[E+3];n[N]=u*t+s*o+y*l+v*S,n[N+1]=a*t+p*o+m*l+R*S,n[N+2]=c*t+g*o+A*l+h*S,n[N+3]=f*t+d*o+T*l+w*S,E+=i,N+=r}},transformMat4View:function(n,e,t){if(n.count!==e.count)return;const r=n.count,o=t[0],i=t[1],l=t[2],u=t[3],a=t[4],c=t[5],f=t[6],s=t[7],p=t[8],g=t[9],d=t[10],y=t[11],m=t[12],A=t[13],T=t[14],v=t[15],R=n.typedBuffer,h=n.typedBufferStride,w=e.typedBuffer,E=e.typedBufferStride;for(let n=0;n<r;n++){const e=n*h,t=n*E,r=w[t],N=w[t+1],S=w[t+2],C=w[t+3];R[e]=o*r+a*N+p*S+m*C,R[e+1]=i*r+c*N+g*S+A*C,R[e+2]=l*r+f*N+d*S+T*C,R[e+3]=u*r+s*N+y*S+v*C}}},Symbol.toStringTag,{value:"Module"}))},51447:(n,e,t)=>{t.d(e,{Lx:()=>u,eF:()=>a,eO:()=>l,io:()=>c});var r=t(44208);const o=new WeakMap;function i(n,e,t=!1){const r=`🛑 DEPRECATED - ${e}`;if(!t)return void n.warn(r);let i=o.get(n);i||(i=new Set,o.set(n,i)),i.has(e)||(i.add(e),n.warn(r))}function l(n,e,t={}){if((0,r.A)("esri-deprecation-warnings")){const{moduleName:r}=t;c(n,"Function: "+(r?r+"::":"")+e+"()",t)}}function u(n,e,t={}){if((0,r.A)("esri-deprecation-warnings")){const{moduleName:r}=t;c(n,"Property: "+(r?r+"::":"")+e,t)}}function a(n,e,t={}){(0,r.A)("esri-deprecation-warnings")&&c(n,`Multiple argument constructor: ${e}`,{warnOnce:!0,replacement:`new ${e}({ <your properties here> })`,...t})}function c(n,e,t={}){if((0,r.A)("esri-deprecation-warnings")){const{replacement:r,version:o,see:l,warnOnce:u}=t;let a=e;r&&(a+=`\n\t🛠️ Replacement: ${r}`),o&&(a+=`\n\t⚙️ Version: ${o}`),l&&(a+=`\n\t🔗 See ${l} for more details.`),i(n,a,u)}}},74594:(n,e,t)=>{t.d(e,{projectMeshVertexPositions:()=>u});var r=t(9762),o=t(95696),i=t(21325),l=t(72258);function u(n,e){const t=(0,l.UR)(n,o.A.absolute);if(!t)return null;let u=t.position;return(0,i.aI)(n.spatialReference,e)||(u=new Float64Array(t.position.length),(0,r.projectBuffer)(t.position,n.spatialReference,0,u,e,0))?u:null}},22141:(n,e,t)=>{t.d(e,{$5:()=>w,CN:()=>T,JP:()=>A,KM:()=>N,Mv:()=>C,X4:()=>v,gr:()=>h,qs:()=>E,si:()=>R,xA:()=>S});var r=t(34727),o=t(77690),i=t(29242),l=t(58083),u=t(9093),a=t(38954),c=t(51850),f=t(48353),s=t(9762),p=(t(79258),t(21325)),g=t(28735),d=t(13030),y=t(73354),m=t(65686);const A="Projection may be possible after calling projection.load().";function T(n,e,t,r){n.error(`Failed to project from (wkid:${e.wkid}) to (wkid:${t.wkid}).${r?" ":""}${r}`)}function v(n,e,t,r,o,i){return B(M.TO_PCPF,d.xs.fromTypedArray(n),x.NORMAL,d.Xm.fromTypedArray(e),t,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function R(n,e,t,r,o,i){return B(M.FROM_PCPF,d.xs.fromTypedArray(n),x.NORMAL,d.Xm.fromTypedArray(e),t,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function h(n,e,t,r){return(0,s.projectBuffer)(n,e,0,t,r,0)?t:null}function w(n,e,t,r){return(0,s.projectBuffer)(n,e,0,t,r,0)?t:null}function E(n,e,t){return(0,o.Ge)(b,t),(0,y.b)(e,n,b),(0,r.or)(b)&&(0,y.n)(e,e),e}function N(n,e,t){return(0,o.z0)(b,t),(0,m.t)(e,n,b),(0,r.or)(b)&&(0,y.n)(e,e,4),e}function S(n,e,t,r,o,i){if(!B(M.TO_PCPF,d.xs.fromTypedArray(n,4*Float32Array.BYTES_PER_ELEMENT),x.TANGENT,d.Xm.fromTypedArray(e),t,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let e=3;e<n.length;e+=4)i[e]=n[e];return i}function C(n,e,t,r,o,i){if(!B(M.FROM_PCPF,d.xs.fromTypedArray(n,16),x.TANGENT,d.Xm.fromTypedArray(e),t,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let e=3;e<n.length;e+=4)i[e]=n[e];return i}var x,M,O;function F(n,e,t,r,i){switch((0,f.l)(r,t,G,r),n===M.FROM_PCPF&&(0,l.B8)(G,G),e){case x.NORMAL:return(0,o.Ge)(i,G);case x.TANGENT:return(0,o.z0)(i,G)}}function B(n,e,t,r,o,i,l,u){if(!e)return;const c=r.count;if(function(n){return n.isWGS84||(0,p.x1)(n)||(0,p.q8)(n)||(0,p.KQ)(n)}(o))for(let r=0;r<c;r++)i.getVec(r,_),e.getVec(r,P),(0,a.q)(P,P,F(n,t,_,l,b)),u.setVec(r,P);else for(let o=0;o<c;o++){i.getVec(o,_),e.getVec(o,P);const c=(0,g.jg)(r.get(o,1));let f=Math.cos(c);t===x.TANGENT!=(n===M.TO_PCPF)&&(f=1/f),F(n,t,_,l,b),n===M.TO_PCPF?(b[0]*=f,b[1]*=f,b[2]*=f,b[3]*=f,b[4]*=f,b[5]*=f):(b[0]*=f,b[3]*=f,b[6]*=f,b[1]*=f,b[4]*=f,b[7]*=f),(0,a.q)(P,P,b),(0,a.n)(P,P),u.setVec(o,P)}return u}(O=x||(x={}))[O.NORMAL=0]="NORMAL",O[O.TANGENT=1]="TANGENT",function(n){n[n.TO_PCPF=0]="TO_PCPF",n[n.FROM_PCPF=1]="FROM_PCPF"}(M||(M={}));const _=(0,c.vt)(),P=(0,c.vt)(),G=(0,u.vt)(),b=(0,i.vt)()},72258:(n,e,t)=>{t.d(e,{UR:()=>h,p5:()=>R,xK:()=>x});var r=t(53966),o=t(34727),i=t(83047),l=t(77690),u=t(29242),a=t(58083),c=t(9093),f=t(38954),s=t(51850),p=t(98764),g=t(48353),d=t(65806),y=t(27615),m=t(21325),A=t(73354),T=t(22141);const v=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function R(n,e,{vertexSpace:t,spatialReference:r}){if("georeferenced"===t.type){const o=n;if(!(0,d.g)(e,o,r))return!1;const{origin:i}=t;return(0,f.d)(n,o,i),!0}const o=(0,p.lO)(r),i=n;if(!(0,d.g)(e,i,o))return!1;const{origin:l}=t,u=_;if(!(0,g.l)(r,l,u,o))return!1;const c=(0,a.B8)(_,u);return null!=c&&((0,f.t)(n,i,c),!0)}function h(n,e,t){const{vertexSpace:r,transform:o,vertexAttributes:i}=n,u=(0,y.Hq)(r)?o:null,s=S(n.spatialReference,t,P.SOURCE_AND_TARGET);if((0,y.yJ)(r,e)&&(!u||(0,a.t2)(u.localMatrix,c.zK))&&C(s)){const{position:n,normal:e,tangent:r}=i,o=t?.allowBufferReuse;return{position:o?n:n.slice(),normal:o?e:e?.slice(),tangent:o?r:r?.slice()}}switch(n.vertexSpace.type){case"local":return"local"===e.type?function({vertexAttributes:n,spatialReference:e,transform:t},{origin:r},o,i){const l=w(e,i);if(!(0,g.l)(e,r,M,l))return(0,T.CN)(v(),e,l),null;if(t&&(0,a.lw)(M,M,t.localMatrix),!(0,g.l)(e,o,O,l))return(0,T.CN)(v(),l,e),null;(0,a.B8)(O,O);const u=(0,a.lw)(M,O,M);return N(u,e,i,P.SOURCE_AND_TARGET),E(n,u)}(n,n.vertexSpace,e.origin,t):function({spatialReference:n,vertexAttributes:e,transform:t},{origin:r},o,i){const l=w(n,i);if(!(0,g.l)(n,r,M,l))return(0,T.CN)(v(),n,l),null;t&&(0,a.lw)(M,M,t.localMatrix),N(M,n,i,P.SOURCE);const u=new Float64Array(e.position.length),c=function(n,e,t,r,o){(0,A.t)(r,n,e);const i=new Float64Array(n.length);return(0,T.$5)(r,o,i,t)?i:((0,T.CN)(v(),o,t),null)}(e.position,M,n,u,l);if(!c)return null;const s=function(n,e,t,r,o,i){if(null==o)return null;const l=new Float32Array(o.length);return(0,T.qs)(o,l,i),(0,T.si)(l,n,e,t,r,l)?l:((0,T.CN)(v(),r,e),null)}(c,n,u,l,e.normal,M);if(e.normal&&!s)return null;const p=function(n,e,t,r,o,i){if(null==o)return null;const l=new Float32Array(o.length);return(0,T.KM)(o,l,i),(0,T.Mv)(l,n,e,t,r,l)?l:((0,T.CN)(v(),r,e),null)}(c,n,u,l,e.tangent,M);if(e.tangent&&!p)return null;if(o){const n=(0,f.v)(B,o);(0,A.a)(c,c,n)}return{position:c,normal:s,tangent:p}}(n,n.vertexSpace,e.origin,t);case"georeferenced":return"local"===e.type?function({vertexAttributes:n,spatialReference:e,transform:t},{origin:r},o,i){const u=w(e,i);if(!(0,g.l)(e,o,M,u))return(0,T.CN)(v(),e,u),null;const c=1/S(e,i,P.TARGET);(0,a.hs)(M,M,[c,c,c]);const f=(0,a.B8)(O,M),{position:s,normal:p,tangent:d}=function(n,e,t){if(!e)return n;if(!t){const{position:t,normal:r,tangent:o}=n;return{position:(0,A.a)(new Float64Array(t.length),t,e),tangent:o,normal:r}}const r=E(n,t.localMatrix);return(0,A.a)(r.position,r.position,e),r}(n,r,t),y=new Float64Array(s.length),m=function(n,e,t,r,o){const i=(0,T.gr)(n,e,r,o);if(!i)return(0,T.CN)(v(),e,o),null;const l=new Float64Array(i.length);return(0,A.t)(l,i,t),l}(s,e,f,y,u);if(!m)return null;const R=(0,l.Ge)(F,f),h=function(n,e,t,r,o,i,l){if(null==n)return null;const u=l??new Float32Array(n.length);return(0,T.X4)(n,e,t,r,o,u)?((0,A.b)(u,u,i),u):((0,T.CN)(v(),t,o),null)}(p,s,e,y,u,R,p!==n.normal?p:void 0);if(!h&&p)return null;const N=function(n,e,t,r,o,i,l){if(null==n)return null;const u=l??new Float32Array(n.length);return(0,T.xA)(n,e,t,r,o,u)?((0,A.b)(u,u,i,4),u):((0,T.CN)(v(),t,o),null)}(d,s,e,y,u,R,d!==n.tangent?d:void 0);return!N&&d?null:{position:m,normal:h,tangent:N}}(n,n.vertexSpace,e.origin,t):function({vertexAttributes:n,transform:e,spatialReference:t},{origin:r},o,i){const l=S(t,i,P.SOURCE_AND_TARGET),u=r||!C(l)?(0,a.C)(M,e?.localMatrix??c.zK):null;u&&N(u,t,i,P.SOURCE_AND_TARGET);const{position:s,normal:p,tangent:g}=u?E(n,u):n,d=i?.allowBufferReuse,y=d?s:new Float64Array(s.length);let m=s;if(r&&(m=(0,A.a)(y,m,r)),o){const n=(0,f.v)(B,o);m=(0,A.a)(y,m,n)}return{position:m!==n.position||d?m:m.slice(),normal:p!==n.normal||d?p:p?.slice(),tangent:g!==n.tangent||d?g:g?.slice()}}(n,n.vertexSpace,e.origin,t)}}function w(n,e){return e?.useEllipsoid&&(0,m.B3)(n)?p.Y0:(0,p.lO)(n)}function E(n,e){const t=new Float64Array(n.position.length);(0,A.t)(t,n.position,e);const r=n.normal?new Float32Array(n.normal.length):null,o=n.tangent?new Float32Array(n.tangent.length):null;return r&&n.normal&&(0,T.qs)(n.normal,r,e),o&&n.tangent&&(0,T.KM)(n.tangent,o,e),{position:t,normal:r,tangent:o}}function N(n,e,t,r){const o=S(e,t,r);C(o)||(0,a.hs)(n,n,[o,o,o])}function S(n,e,t){const r=!!(t&P.SOURCE),o=!!(t&P.TARGET),i=e?.sourceUnit,l=e?.targetUnit;if(!i&&!l)return 1;let u=x(i,n);r||!i||C(u)||(v().warn("source unit conversion not supported"),u=1);let a=1/x(l,n);return o||!l||C(a)||(v().warn("target unit conversion not supported"),a=1),u*a}function C(n){return(0,o.Io)(n,1)}function x(n,e){if(null==n)return 1;const t=(0,i.KX)(e);return 1/(0,i.oU)(t,"meters",n)}const M=(0,c.vt)(),O=(0,c.vt)(),F=(0,u.vt)(),B=(0,s.vt)(),_=(0,c.vt)();var P,G;(G=P||(P={}))[G.NONE=0]="NONE",G[G.SOURCE=1]="SOURCE",G[G.TARGET=2]="TARGET",G[G.SOURCE_AND_TARGET=3]="SOURCE_AND_TARGET"},27615:(n,e,t)=>{t.d(e,{CK:()=>s,Hq:()=>f,MW:()=>p,TE:()=>g,yJ:()=>d});var r=t(51447),o=t(53966),i=t(38954),l=t(86738),u=t(95696),a=t(18251);function c(){return o.A.getLogger("esri.geometry.Mesh")}function f(n){return null!=n.origin}function s(n){return f(n.vertexSpace)}function p(n,e){if(!f(n))return null;const[t,r,o]=n.origin;return new l.A({x:t,y:r,z:o,spatialReference:e})}function g(n,e){const{x:t,y:o,z:i,spatialReference:l}=n,f=[t,o,i??0];return void 0!==e?.geographic&&((0,r.io)(c(),"option: geographic",{replacement:"Use the `vertexSpace` option instead.",version:"4.29",warnOnce:!0}),e.vertexSpace&&c().warn("Deprecated geographic flag ignored since vertexSpace option is provided.")),"local"===(e?.vertexSpace??(s=e?.geographic,null==s?void 0:s?"local":"georeferenced")??function(n){return n.isGeographic||n.isWebMercator?"local":"georeferenced"}(l))?new a.A({origin:f}):new u.A({origin:f});var s}function d(n,e){return n.type===e.type&&(n.origin===e.origin||null!=n.origin&&null!=e.origin&&(0,i.p)(n.origin,e.origin))}}}]);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4339],{97937:(e,t,r)=>{r.d(t,{a:()=>M,c:()=>g,e:()=>b,f:()=>A,g:()=>w,i:()=>_,o:()=>N,s:()=>j,w:()=>x}),r(44208),r(53966);var n=r(34727),o=r(58083),s=r(38954),i=r(51850),a=r(87317),u=r(91829),c=r(34304),l=r(88582),f=r(71351);function d(e,t){const r=(0,s.l)(e),o=(0,n.YN)(e[2]/r),i=Math.atan2(e[1]/r,e[0]/r);return(0,s.i)(t,r,o,i),t}var m=r(44280),h=r(32114);const p=g();function g(){return(0,u.vt)()}const y=a.e,v=a.e;function b(e,t){return(0,a.c)(t,e)}function x(e){return e}function w(e){return e[3]}function M(e){return e}function A(e,t,r,n){return(0,u.fA)(e,t,r,n)}function T(e,t,r){if(null==t)return!1;if(!S(e,t,B))return!1;let{t0:n,t1:o}=B;if((n<0||o<n&&o>0)&&(n=o),n<0)return!1;if(r){const{origin:e,direction:o}=t;r[0]=e[0]+o[0]*n,r[1]=e[1]+o[1]*n,r[2]=e[2]+o[2]*n}return!0}const B={t0:0,t1:0};function S(e,t,r){const{origin:n,direction:o}=t,s=R;s[0]=n[0]-e[0],s[1]=n[1]-e[1],s[2]=n[2]-e[2];const i=o[0]*o[0]+o[1]*o[1]+o[2]*o[2];if(0===i)return!1;const a=2*(o[0]*s[0]+o[1]*s[1]+o[2]*s[2]),u=a*a-4*i*(s[0]*s[0]+s[1]*s[1]+s[2]*s[2]-e[3]*e[3]);if(u<0)return!1;const c=Math.sqrt(u);return r.t0=(-a-c)/(2*i),r.t1=(-a+c)/(2*i),!0}const R=(0,i.vt)();function _(e,t){return T(e,t,null)}function C(e,t,r){const n=h.rq.get(),i=h.Rc.get();(0,s.e)(n,t.origin,t.direction);const a=w(e);(0,s.e)(r,n,t.origin),(0,s.h)(r,r,1/(0,s.l)(r)*a);const u=P(e,t.origin),c=(0,m.g7)(t.origin,r);return(0,o.$0)(i,c+u,n),(0,s.t)(r,r,i),r}function E(e,t,r){const n=(0,s.d)(h.rq.get(),t,e),o=(0,s.h)(h.rq.get(),n,e[3]/(0,s.l)(n));return(0,s.g)(r,o,e)}function P(e,t){const r=(0,s.d)(h.rq.get(),t,e),o=(0,s.l)(r),i=w(e),a=i+Math.abs(i-o);return(0,n.XM)(i/a)}const O=(0,i.vt)();function I(e,t,r,n){const o=(0,s.d)(O,t,e);switch(r){case l._.X:{const e=d(o,O)[2];return(0,s.i)(n,-Math.sin(e),Math.cos(e),0)}case l._.Y:{const e=d(o,O),t=e[1],r=e[2],i=Math.sin(t);return(0,s.i)(n,-i*Math.cos(r),-i*Math.sin(r),Math.cos(t))}case l._.Z:return(0,s.n)(n,o);default:return}}function q(e,t){const r=(0,s.d)(U,t,e);return(0,s.l)(r)-e[3]}function N(e,t){const r=(0,s.s)(e,t),n=w(e);return r<=n*n}const U=(0,i.vt)(),F=g(),j=Object.freeze(Object.defineProperty({__proto__:null,NullSphere:p,altitudeAt:q,angleToSilhouette:P,axisAt:I,cameraFrustumCoverage:function(e,t,r,n){const o=w(e),s=o*o,i=t+.5*Math.PI,a=r*r+s-2*Math.cos(i)*r*o,u=Math.sqrt(a),c=a-s;if(c<=0)return.5;const l=Math.sqrt(c),f=Math.acos(l/u)-Math.asin(o/(u/Math.sin(i)));return Math.min(1,(f+.5*n)/n)},clear:function(e){e[0]=e[1]=e[2]=e[3]=0},closestPoint:function(e,t,r){return T(e,t,r)?r:((0,f.oC)(t,e,r),E(e,r,r))},closestPointOnSilhouette:C,containsPoint:N,copy:b,create:g,distanceToSilhouette:function(e,t){const r=(0,s.d)(h.rq.get(),t,e),n=(0,s.k)(r),o=e[3]*e[3];return Math.sqrt(Math.abs(n-o))},elevate:function(e,t,r){return e!==r&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),r[3]=e[3]+t,r},equals:v,exactEquals:y,fromCenterAndRadius:function(e,t){return(0,u.fA)(e[0],e[1],e[2],t)},fromRadius:function(e,t){return e[0]=e[1]=e[2]=0,e[3]=t,e},fromValues:A,getCenter:M,getExtent:function(e,t){return t},getRadius:w,intersectLine:function(e,t,r){const n=(0,f.Cr)(t,r);if(!S(e,n,B))return[];const{origin:o,direction:a}=n,{t0:u,t1:l}=B,d=t=>{const r=(0,i.vt)();return(0,s.b)(r,o,a,t),E(e,r,r)};return Math.abs(u-l)<(0,c.FD)()?[d(u)]:[d(u),d(l)]},intersectRay:T,intersectRayClosestSilhouette:function(e,t,r){if(T(e,t,r))return r;const n=C(e,t,h.rq.get());return(0,s.g)(r,t.origin,(0,s.h)(h.rq.get(),t.direction,(0,s.j)(t.origin,n)/(0,s.l)(t.direction))),r},intersectsRay:_,projectPoint:E,setAltitudeAt:function(e,t,r,n){const o=q(e,t),i=I(e,t,l._.Z,U),a=(0,s.h)(U,i,r-o);return(0,s.g)(n,t,a)},setExtent:function(e,t,r){return e!==r&&b(e,r),r},tmpSphere:F,union:function(e,t,r=(0,u.vt)()){const n=(0,s.j)(e,t),o=e[3],i=t[3];return n+i<o?((0,a.c)(r,e),r):n+o<i?((0,a.c)(r,t),r):((0,s.m)(r,e,t,(n+i-o)/(2*n)),r[3]=(n+o+i)/2,r)},wrap:x},Symbol.toStringTag,{value:"Module"}))},43609:(e,t,r)=>{r.d(t,{a:()=>s,f:()=>i,n:()=>o});var n=r(34275);function o(e,t){s(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r=2,o=r){const s=t.length/2;let i=0,a=0;if(!(0,n.iu)(t)||(0,n.dk)(t)){for(let n=0;n<s;++n)e[i]=t[a],e[i+1]=t[a+1],i+=r,a+=o;return}const u=(0,n.a3)(t);if((0,n.JI)(t))for(let n=0;n<s;++n)e[i]=Math.max(t[a]/u,-1),e[i+1]=Math.max(t[a+1]/u,-1),i+=r,a+=o;else for(let n=0;n<s;++n)e[i]=t[a]/u,e[i+1]=t[a+1]/u,i+=r,a+=o}function i(e,t,r,n){const o=e.typedBuffer,s=e.typedBufferStride,i=n?.count??e.count;let a=(n?.dstIndex??0)*s;for(let e=0;e<i;++e)o[a]=t,o[a+1]=r,a+=s}Object.freeze(Object.defineProperty({__proto__:null,fill:i,normalizeIntegerBuffer:s,normalizeIntegerBufferView:o},Symbol.toStringTag,{value:"Module"}))},73354:(e,t,r)=>{r.d(t,{a:()=>f,b:()=>a,c:()=>i,d:()=>o,e:()=>d,f:()=>l,l:()=>c,n:()=>m,t:()=>s});var n=r(40876);function o(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,n=3,o=n){if(e.length/n!==Math.ceil(t.length/o))return e;const s=e.length/n,i=r[0],a=r[1],u=r[2],c=r[4],l=r[5],f=r[6],d=r[8],m=r[9],h=r[10],p=r[12],g=r[13],y=r[14];let v=0,b=0;for(let r=0;r<s;r++){const r=t[v],s=t[v+1],x=t[v+2];e[b]=i*r+c*s+d*x+p,e[b+1]=a*r+l*s+m*x+g,e[b+2]=u*r+f*s+h*x+y,v+=o,b+=n}return e}function i(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,n=3,o=n){if(e.length/n!==Math.ceil(t.length/o))return;const s=e.length/n,i=r[0],a=r[1],u=r[2],c=r[3],l=r[4],f=r[5],d=r[6],m=r[7],h=r[8];let p=0,g=0;for(let r=0;r<s;r++){const r=t[p],s=t[p+1],y=t[p+2];e[g]=i*r+c*s+d*y,e[g+1]=a*r+l*s+m*y,e[g+2]=u*r+f*s+h*y,p+=o,g+=n}}function u(e,t,r,n=3,o=n){const s=Math.min(e.length/n,t.length/o);let i=0,a=0;for(let u=0;u<s;u++)e[a]=r*t[i],e[a+1]=r*t[i+1],e[a+2]=r*t[i+2],i+=o,a+=n;return e}function c(e,t,r,n){l(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function l(e,t,r,o,s=3,i=s){const a=Math.min(e.length/s,t.length/i);let u=0,c=0;const l=1/n.Tf;for(let n=0;n<a;n++)e[c]=o*(r*t[u])**l,e[c+1]=o*(r*t[u+1])**l,e[c+2]=o*(r*t[u+2])**l,u+=i,c+=s}function f(e,t,r,n=3,o=n){const s=e.length/n;if(s!==Math.ceil(t.length/o))return e;let i=0,a=0;for(let u=0;u<s;u++)e[a]=t[i]+r[0],e[a+1]=t[i+1]+r[1],e[a+2]=t[i+2]+r[2],i+=o,a+=n;return e}function d(e,t){m(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function m(e,t,r=3,n=r){const o=Math.min(e.length/r,t.length/n);let s=0,i=0;for(let a=0;a<o;a++){const o=t[s],a=t[s+1],u=t[s+2],c=o*o+a*a+u*u;if(c>0){const t=1/Math.sqrt(c);e[i]=t*o,e[i+1]=t*a,e[i+2]=t*u}s+=n,i+=r}}r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:l,linearToSRGBView:c,normalize:m,normalizeView:d,scale:u,scaleView:function(e,t,r){u(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),o=e.typedBuffer,s=e.typedBufferStride,i=t.typedBuffer,a=t.typedBufferStride;let u=0,c=0;for(let e=0;e<n;e++)o[c]=i[u]>>r,o[c+1]=i[u+1]>>r,o[c+2]=i[u+2]>>r,u+=a,c+=s},transformMat3:a,transformMat3View:i,transformMat4:s,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},65686:(e,t,r)=>{r.d(t,{a:()=>s,b:()=>l,l:()=>c,n:()=>a,t:()=>i});var n=r(40876),o=(r(44208),r(53966));function s(e,t,r){i(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function i(e,t,r,n=4,o=n){if(e.length/n!=t.length/o)return;const s=e.length/n,i=r[0],a=r[1],u=r[2],c=r[3],l=r[4],f=r[5],d=r[6],m=r[7],h=r[8];let p=0,g=0;for(let r=0;r<s;r++){const r=t[p],s=t[p+1],y=t[p+2],v=t[p+3];e[g]=i*r+c*s+d*y,e[g+1]=a*r+l*s+m*y,e[g+2]=u*r+f*s+h*y,e[g+3]=v,p+=o,g+=n}}function a(e,t){const r=Math.min(e.count,t.count),n=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,i=t.typedBufferStride;for(let e=0;e<r;e++){const t=e*o,r=e*i,a=s[r],u=s[r+1],c=s[r+2],l=a*a+u*u+c*c;if(l>0){const e=1/Math.sqrt(l);n[t]=e*a,n[t+1]=e*u,n[t+2]=e*c}}}function u(e,t,r,n=4){const o=Math.min(e.length/n,t.count),s=t.typedBuffer,i=t.typedBufferStride;let a=0,u=0;for(let t=0;t<o;t++)e[u]=r*s[a],e[u+1]=r*s[a+1],e[u+2]=r*s[a+2],e[u+3]=r*s[a+3],a+=i,u+=n}function c(e,t,r,n){l(e.typedBuffer,t,r,n,e.typedBufferStride)}function l(e,t,r,o,s=4){const i=Math.min(e.length/s,t.count),a=t.typedBuffer,u=t.typedBufferStride;let c=0,l=0;const f=1/n.Tf;for(let t=0;t<i;t++)e[l]=o*(r*a[c])**f,e[l+1]=o*(r*a[c+1])**f,e[l+2]=o*(r*a[c+2])**f,e[l+3]=o*r*a[c+3],c+=u,l+=s}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:l,linearToSRGBView:c,normalize:a,scale:u,scaleView:function(e,t,r){u(e.typedBuffer,t,r,e.typedBufferStride)},transformMat3:i,transformMat3View:s,transformMat4:function(e,t,r,n=4,s=n){if(e.length/n!=t.length/s)return void o.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const i=e.length/n,a=r[0],u=r[1],c=r[2],l=r[3],f=r[4],d=r[5],m=r[6],h=r[7],p=r[8],g=r[9],y=r[10],v=r[11],b=r[12],x=r[13],w=r[14],M=r[15];let A=0,T=0;for(let r=0;r<i;r++){const r=t[A],o=t[A+1],i=t[A+2],B=t[A+3];e[T]=a*r+f*o+p*i+b*B,e[T+1]=u*r+d*o+g*i+x*B,e[T+2]=c*r+m*o+y*i+w*B,e[T+3]=l*r+h*o+v*i+M*B,A+=s,T+=n}},transformMat4View:function(e,t,r){if(e.count!==t.count)return;const n=e.count,o=r[0],s=r[1],i=r[2],a=r[3],u=r[4],c=r[5],l=r[6],f=r[7],d=r[8],m=r[9],h=r[10],p=r[11],g=r[12],y=r[13],v=r[14],b=r[15],x=e.typedBuffer,w=e.typedBufferStride,M=t.typedBuffer,A=t.typedBufferStride;for(let e=0;e<n;e++){const t=e*w,r=e*A,n=M[r],T=M[r+1],B=M[r+2],S=M[r+3];x[t]=o*n+u*T+d*B+g*S,x[t+1]=s*n+c*T+m*B+y*S,x[t+2]=i*n+l*T+h*B+v*S,x[t+3]=a*n+f*T+p*B+b*S}}},Symbol.toStringTag,{value:"Module"}))},4341:(e,t,r)=>{r.d(t,{I:()=>o});var n=r(26390);class o{constructor(e){this._allocator=e,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,n.d)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const e=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(e,this._items.length),this._itemsPtr=0}_grow(){for(let e=0;e<Math.max(8,Math.min(this._items.length,s));e++)this._items.push(this._allocator())}}const s=1024},46140:(e,t,r)=>{r.d(t,{R:()=>o});var n=r(49186);let o=class e{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,r=""){const[o,s]=t.split("."),i=/^\s*\d+\s*$/;if(!o?.match||!i.test(o))throw new n.A((r&&r+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!s?.match||!i.test(s))throw new n.A((r&&r+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const a=parseInt(o,10),u=parseInt(s,10);return new e(a,u,r)}}},61473:(e,t,r)=>{function n(e){return e=e||globalThis.location.hostname,c.some((t=>null!=e?.match(t)))}function o(e,t){return e?(t=t||globalThis.location.hostname)?null!=t.match(s)||null!=t.match(a)?e.replace("static.arcgis.com","staticdev.arcgis.com"):null!=t.match(i)||null!=t.match(u)?e.replace("static.arcgis.com","staticqa.arcgis.com"):e:e:null}r.d(t,{EM:()=>o,b5:()=>n});const s=/^devext\.arcgis\.com$/,i=/^qaext\.arcgis\.com$/,a=/^[\w-]*\.mapsdevext\.arcgis\.com$/,u=/^[\w-]*\.mapsqa\.arcgis\.com$/,c=[/^([\w-]*\.)?[\w-]*\.zrh-dev-local\.esri\.com$/,s,i,/^jsapps\.esri\.com$/,a,u]},88340:(e,t,r)=>{function n(){return new Float32Array(2)}function o(e,t){const r=new Float32Array(2);return r[0]=e,r[1]=t,r}function s(){return n()}function i(){return o(1,1)}function a(){return o(1,0)}function u(){return o(0,1)}r.d(t,{Un:()=>l,fA:()=>o,uY:()=>c,vt:()=>n});const c=s(),l=i(),f=a(),d=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:f,UNIT_Y:d,ZEROS:c,clone:function(e){const t=new Float32Array(2);return t[0]=e[0],t[1]=e[1],t},create:n,createView:function(e,t){return new Float32Array(e,t,2)},fromValues:o,ones:i,unitX:a,unitY:u,zeros:s},Symbol.toStringTag,{value:"Module"}))},69397:(e,t,r)=>{r.d(t,{Qf:()=>u,Qh:()=>i,i5:()=>d,lM:()=>s,qK:()=>l,rq:()=>c});var n=r(34275);const o=16;function s(e){if(!e)return 0;let t=l;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return u(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return c(e,8);let r=f;for(let n=0;n<t;n++)r+=a(e[n]);return r}(e);let t=l;for(const r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?i(e):l;case"string":return function(e){return 32+e.length}(e);case"number":return o;case"boolean":return 4;default:return 8}}function u(...e){return e.reduce(((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+d:Array.isArray(t)?c(t,o):0:0)),0)}function c(e,t){return f+e.length*t}const l=32,f=16,d=145},71351:(e,t,r)=>{r.d(t,{C:()=>f,Cr:()=>d,LV:()=>l,kb:()=>m,oC:()=>h,vt:()=>u}),r(4576);var n=r(4341),o=(r(77690),r(29242)),s=r(38954),i=r(51850),a=r(32114);function u(e){return e?c((0,i.o8)(e.origin),(0,i.o8)(e.direction)):c((0,i.vt)(),(0,i.vt)())}function c(e,t){return{origin:e,direction:t}}function l(e,t){const r=p.get();return r.origin=e,r.direction=t,r}function f(e,t=u()){return function(e,t,r=u()){return(0,s.c)(r.origin,e),(0,s.c)(r.direction,t),r}(e.origin,e.direction,t)}function d(e,t,r=u()){return(0,s.c)(r.origin,e),(0,s.d)(r.direction,t,e),r}function m(e,t){const r=(0,s.e)(a.rq.get(),(0,s.n)(a.rq.get(),e.direction),(0,s.d)(a.rq.get(),t,e.origin));return(0,s.f)(r,r)}function h(e,t,r){const n=(0,s.f)(e.direction,(0,s.d)(r,t,e.origin));return(0,s.g)(r,e.origin,(0,s.h)(r,e.direction,n)),r}const p=new n.I((()=>u()));(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,o.vt)()},21015:(e,t,r)=>{r.d(t,{R:()=>u});var n=r(78888),o=r(60999),s=r(49186),i=r(74887),a=r(84952);class u{constructor(e){this._streamDataRequester=e}async loadJSON(e,t){return this._load("json",e,t)}async loadBinary(e,t){return(0,a.DB)(e)?((0,i.Te)(t),(0,a.lJ)(e)):this._load("binary",e,t)}async loadImage(e,t){return this._load("image",e,t)}async _load(e,t,r){if(null==this._streamDataRequester)return(await(0,n.A)(t,{responseType:c[e]})).data;const a=await(0,o.Ke)(this._streamDataRequester.request(t,e,r));if(!0===a.ok)return a.value;throw(0,i.QP)(a.error),new s.A("glt-loader-request-error",`Request for resource failed: ${a.error}`)}}const c={image:"image",binary:"array-buffer",json:"json","image+type":void 0}},84498:(e,t,r)=>{r.d(t,{x:()=>i});var n=r(34275),o=r(97146),s=r(63907);function i(e,t){switch(t){case s.WR.TRIANGLES:return"number"==typeof(r=e)?(0,o.tM)(r):(0,n.mg)(r)?new Uint16Array(r):r;case s.WR.TRIANGLE_STRIP:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return[];const r=t-2,n=(0,o.my)(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;t+=1)t%2==0?(n[e++]=t,n[e++]=t+1,n[e++]=t+2):(n[e++]=t+1,n[e++]=t,n[e++]=t+2)}else{let t=0;for(let o=0;o<r;o+=1)o%2==0?(n[t++]=e[o],n[t++]=e[o+1],n[t++]=e[o+2]):(n[t++]=e[o+1],n[t++]=e[o],n[t++]=e[o+2])}return n}(e);case s.WR.TRIANGLE_FAN:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return new Uint16Array(0);const r=t-2,n=r<=65536?new Uint16Array(3*r):new Uint32Array(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;++t)n[e++]=0,n[e++]=t+1,n[e++]=t+2;return n}const o=e[0];let s=e[1],i=0;for(let t=0;t<r;++t){const r=e[t+2];n[i++]=o,n[i++]=s,n[i++]=r,s=r}return n}(e)}var r}},51530:(e,t,r)=>{r.d(t,{KB:()=>a,Xi:()=>s,pn:()=>u,x3:()=>i});var n=r(44208),o=r(89192);class s{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding=o.JS.KTX2_ENCODING}}function i(e){return"encoded-mesh-texture"===e?.type}async function a(e){const t=new Blob([e]),r=await t.text();return JSON.parse(r)}async function u(e,t){if(t===o.JS.KTX2_ENCODING)return new s(e);const r=new Blob([e],{type:t}),i=URL.createObjectURL(r),a=new Image;if((0,n.A)("esri-iPhone"))return new Promise(((e,t)=>{const r=()=>{o(),e(a)},n=e=>{o(),t(e)},o=()=>{URL.revokeObjectURL(i),a.removeEventListener("load",r),a.removeEventListener("error",n)};a.addEventListener("load",r),a.addEventListener("error",n),a.src=i}));try{a.src=i,await a.decode()}catch(e){console.warn("Failed decoding HTMLImageElement")}return URL.revokeObjectURL(i),a}},64304:(e,t,r)=>{r.d(t,{fetch:()=>Q});var n=r(40876),o=r(61473),s=r(34727),i=r(77690),a=r(29242),u=r(58083),c=r(9093),l=r(48163),f=r(38954),d=r(51850),m=r(70328),h=r(11868),p=r(13030),g=r(73354),y=r(65686),v=r(43609),b=r(21015),x=r(84498),w=r(51530),M=r(88340);function A(e){if(null==e)return null;const t=null!=e.offset?e.offset:M.uY,r=null!=e.rotation?e.rotation:0,n=null!=e.scale?e.scale:M.Un,o=(0,a.fA)(1,0,0,0,1,0,t[0],t[1],1),s=(0,a.fA)(Math.cos(r),-Math.sin(r),0,Math.sin(r),Math.cos(r),0,0,0,1),u=(0,a.fA)(n[0],0,0,0,n[1],0,0,0,1),c=(0,a.vt)();return(0,i.lw)(c,s,u),(0,i.lw)(c,o,c),c}class T{constructor(){this.geometries=new Array,this.materials=new Array,this.textures=new Array}}class B{constructor(e,t,r){this.name=e,this.lodThreshold=t,this.pivotOffset=r,this.stageResources=new T,this.numberOfVertices=0}}var S=r(78888),R=r(60999),_=r(49186),C=r(53966),E=r(69397);class P{constructor(){this._outer=new Map}clear(){this._outer.clear()}get empty(){return 0===this._outer.size}get(e,t){return this._outer.get(e)?.get(t)}getInner(e){return this._outer.get(e)}set(e,t,r){const n=this._outer.get(e);n?n.set(t,r):this._outer.set(e,new Map([[t,r]]))}delete(e,t){const r=this._outer.get(e);r&&(r.delete(t),0===r.size&&this._outer.delete(e))}forEach(e){this._outer.forEach(((t,r)=>e(t,r)))}forAll(e){for(const t of this._outer.values())for(const r of t.values())e(r)}}var O=r(74887),I=r(46140),q=r(97146),N=r(99677),U=r(46610),F=r(89192),j=r(87170),L=r(76844),k=r(46540),D=r(11787),V=r(63907);const $=()=>C.A.getLogger("esri.views.3d.layers.graphics.objectResourceUtils");function z(e){throw new _.A("",`Request for object resource failed: ${e}`)}function H(e){const t=e.params,r=t.topology;let n=!0;switch(t.vertexAttributes||($().warn("Geometry must specify vertex attributes"),n=!1),t.topology){case"PerAttributeArray":break;case"Indexed":case null:case void 0:{const e=t.faces;if(e){if(t.vertexAttributes)for(const r in t.vertexAttributes){const t=e[r];t?.values?(null!=t.valueType&&"UInt32"!==t.valueType&&($().warn(`Unsupported indexed geometry indices type '${t.valueType}', only UInt32 is currently supported`),n=!1),null!=t.valuesPerElement&&1!==t.valuesPerElement&&($().warn(`Unsupported indexed geometry values per element '${t.valuesPerElement}', only 1 is currently supported`),n=!1)):($().warn(`Indexed geometry does not specify face indices for '${r}' attribute`),n=!1)}}else $().warn("Indexed geometries must specify faces"),n=!1;break}default:$().warn(`Unsupported topology '${r}'`),n=!1}e.params.material||($().warn("Geometry requires material"),n=!1);const o=e.params.vertexAttributes;for(const e in o)o[e].values||($().warn("Geometries with externally defined attributes are not yet supported"),n=!1);return n}function G(e){const t=(0,m.Ie)();return e.forEach((e=>{const r=e.boundingInfo;null!=r&&((0,m.iT)(t,r.bbMin),(0,m.iT)(t,r.bbMax))})),t}function X(e){switch(e){case"mask":return F.sf.Mask;case"maskAndTransparency":return F.sf.MaskBlend;case"none":return F.sf.Opaque;default:return F.sf.Blend}}function W(e){const t=e.params;return{id:1,material:t.material,texture:t.texture,region:t.texture}}const Y=new I.R(1,2,"wosr");var J=r(96336),K=r(74810);async function Q(e,t){const a=function(e){const t=e.match(/(.*\.(gltf|glb))(\?lod=([0-9]+))?$/);return t?{fileType:"gltf",url:t[1],specifiedLodIndex:null!=t[4]?Number(t[4]):null}:e.match(/(.*\.(json|json\.gz))$/)?{fileType:"wosr",url:e,specifiedLodIndex:null}:{fileType:"unknown",url:e,specifiedLodIndex:null}}((0,o.EM)(e));if("wosr"===a.fileType){const e=await(t.cache?t.cache.loadWOSR(a.url,t):async function(e,t){const r=await async function(e,t){const r=t?.streamDataRequester;if(r)return async function(e,t,r){const n=await(0,R.Ke)(t.request(e,"json",r));if(!0===n.ok)return n.value;(0,O.QP)(n.error),z(n.error.details.url)}(e,r,t);const n=await(0,R.Ke)((0,S.A)(e,t));if(!0===n.ok)return n.value.data;(0,O.QP)(n.error),z(n.error)}(e,t),n=await async function(e,t){const r=new Array;for(const n in e){const o=e[n],s=o.images[0].data;if(!s){$().warn("Externally referenced texture data is not yet supported");continue}const i=o.encoding+";base64,"+s,a="/textureDefinitions/"+n,u="rgba"===o.channels?o.alphaChannelUsage||"transparency":"none",c={noUnpackFlip:!0,wrap:{s:V.pF.REPEAT,t:V.pF.REPEAT},preMultiplyAlpha:X(u)!==F.sf.Opaque},l=t?.disableTextures?Promise.resolve(null):(0,N.D)(i,t);r.push(l.then((e=>({refId:a,image:e,parameters:c,alphaChannelUsage:u}))))}const n=await Promise.all(r),o={};for(const e of n)o[e.refId]=e;return o}(r.textureDefinitions??{},t);let o=0;for(const e in n)if(n.hasOwnProperty(e)){const t=n[e];o+=t?.image?t.image.width*t.image.height*4:0}return{resource:r,textures:n,cachedMemory:o+(0,E.Qh)(r)}}(a.url,t)),{engineResources:r,referenceBoundingBox:n}=function(e,t){const r=new Array,n=new Array,o=new Array,s=new P,i=e.resource,a=I.R.parse(i.version||"1.0","wosr");Y.validate(a);const u=i.model.name,c=i.model.geometries,l=i.materialDefinitions??{},f=e.textures;let m=0;const h=new Map;for(let e=0;e<c.length;e++){const i=c[e];if(!H(i))continue;const a=W(i),u=i.params.vertexAttributes,p=[],g=e=>{if("PerAttributeArray"===i.params.topology)return null;const t=i.params.faces;for(const r in t)if(r===e)return t[r].values;return null},y=u[k.r.POSITION],v=y.values.length/y.valuesPerElement;for(const e in u){const t=u[e],r=t.values,n=g(e)??(0,q.tM)(v);p.push([e,new U.n(r,n,t.valuesPerElement,!0)])}const b=a.texture,x=f&&f[b];if(x&&!h.has(b)){const{image:e,parameters:t}=x,r=new L.g(e,t);n.push(r),h.set(b,r)}const w=h.get(b),M=w?w.id:void 0,A=a.material;let T=s.get(A,b);if(null==T){const e=l[A.slice(A.lastIndexOf("/")+1)].params;1===e.transparency&&(e.transparency=0);const r=x&&x.alphaChannelUsage,n=e.transparency>0||"transparency"===r||"maskAndTransparency"===r,o=x?X(x.alphaChannelUsage):void 0,i={ambient:(0,d.ci)(e.diffuse),diffuse:(0,d.ci)(e.diffuse),opacity:1-(e.transparency||0),transparent:n,textureAlphaMode:o,textureAlphaCutoff:.33,textureId:M,initTextureTransparent:!0,doubleSided:!0,cullFace:F.s2.None,colorMixMode:e.externalColorMixMode||"tint",textureAlphaPremultiplied:x?.parameters.preMultiplyAlpha??!1};t?.materialParameters&&Object.assign(i,t.materialParameters),T=new D.$U(i,t),s.set(A,b,T)}o.push(T);const B=new j.V(T,p);m+=p.find((e=>e[0]===k.r.POSITION))?.[1]?.indices.length??0,r.push(B)}return{engineResources:[{name:u,stageResources:{textures:n,materials:o,geometries:r},pivotOffset:i.model.pivotOffset,numberOfVertices:m,lodThreshold:null}],referenceBoundingBox:G(r)}}(e,t);return{lods:r,referenceBoundingBox:n,isEsriSymbolResource:!1,isWosr:!0}}let M;if(t.cache)M=await t.cache.loadGLTF(a.url,t,!!t.usePBR);else{const{loadGLTF:e}=await r.e(4399).then(r.bind(r,4399));M=await e(new b.R(t.streamDataRequester),a.url,t,t.usePBR)}const T=M.model.meta?.ESRI_proxyEllipsoid,_=M.meta.isEsriSymbolResource&&null!=T&&"EsriRealisticTreesStyle"===M.meta.ESRI_webstyle;_&&!M.customMeta.esriTreeRendering&&(M.customMeta.esriTreeRendering=!0,function(e,t){for(let r=0;r<e.model.lods.length;++r){const o=e.model.lods[r];for(const s of o.parts){const o=s.attributes.normal;if(null==o)return;const i=s.attributes.position,a=i.count,l=(0,d.vt)(),m=(0,d.vt)(),h=(0,d.vt)(),g=new Float32Array(4*a),y=new Float32Array(3*a),v=(0,u.B8)((0,c.vt)(),s.transform);let b=0,x=0;for(let u=0;u<a;u++){i.getVec(u,m),o.getVec(u,l),(0,f.t)(m,m,s.transform),(0,f.d)(h,m,t.center),(0,f.E)(h,h,t.radius);const a=h[2],c=(0,f.l)(h),d=Math.min(.45+.55*c*c,1)**n.Tf;(0,f.E)(h,h,t.radius),null!==v&&(0,f.t)(h,h,v),(0,f.n)(h,h),r+1!==e.model.lods.length&&e.model.lods.length>1&&(0,f.m)(h,h,l,a>-1?.2:Math.min(-4*a-3.8,1)),y[b]=h[0],y[b+1]=h[1],y[b+2]=h[2],b+=3,g[x]=d,g[x+1]=d,g[x+2]=d,g[x+3]=1,x+=4}s.attributes.normal=new p.xs(y),s.attributes.color=new p.Eq(g)}}}(M,T));const C=!!t.usePBR,Q=M.meta.isEsriSymbolResource?{usePBR:C,isSchematic:!1,treeRendering:_,mrrFactors:K.SY}:{usePBR:C,isSchematic:!1,treeRendering:!1,mrrFactors:K.mb},ee={...t.materialParameters,treeRendering:_},{engineResources:te,referenceBoundingBox:re}=function(e,t,r,o,a){const u=e.model,c=new Array,f=new Map,d=new Map,b=u.lods.length,M=(0,m.Ie)();return u.lods.forEach(((e,T)=>{const S=!0===o.skipHighLods&&(b>1&&0===T||b>3&&1===T)||!1===o.skipHighLods&&null!=a&&T!==a;if(S&&0!==T)return;const R=new B(e.name,e.lodThreshold,[0,0,0]);e.parts.forEach((e=>{const a=S?new D.$U({},o):function(e,t,r,o,s,i,a,u){const c=t.material+(t.attributes.normal?"_normal":"")+(t.attributes.color?"_color":"")+(t.attributes.texCoord0?"_texCoord0":"")+(t.attributes.tangent?"_tangent":""),f=e.materials.get(t.material),d=null!=t.attributes.texCoord0,m=null!=t.attributes.normal;if(null==f)return null;const h=function(e){switch(e){case"BLEND":return F.sf.Blend;case"MASK":return F.sf.Mask;case"OPAQUE":case null:case void 0:return F.sf.Opaque}}(f.alphaMode);if(!i.has(c)){if(d){const t=(t,r=!1)=>{if(null!=t&&!a.has(t)){const n=e.textures.get(t);if(null!=n){const e=n.data;a.set(t,new L.g((0,w.x3)(e)?e.data:e,{...n.parameters,preMultiplyAlpha:!(0,w.x3)(e)&&r,encoding:(0,w.x3)(e)&&null!=e.encoding?e.encoding:void 0}))}}};t(f.textureColor,h!==F.sf.Opaque),t(f.textureNormal),t(f.textureOcclusion),t(f.textureEmissive),t(f.textureMetallicRoughness)}const r=1/n.Tf,p=f.color[0]**r,g=f.color[1]**r,y=f.color[2]**r,v=f.emissiveFactor[0]**r,b=f.emissiveFactor[1]**r,x=f.emissiveFactor[2]**r,M=null!=f.textureColor&&d?a.get(f.textureColor):null,T=(0,K.Jr)({normalTexture:f.textureNormal,metallicRoughnessTexture:f.textureMetallicRoughness,metallicFactor:f.metallicFactor,roughnessFactor:f.roughnessFactor,emissiveTexture:f.textureEmissive,emissiveFactor:f.emissiveFactor,occlusionTexture:f.textureOcclusion}),B=null!=f.normalTextureTransform?.scale?f.normalTextureTransform?.scale:l.Un;i.set(c,new D.$U({...o,transparent:h===F.sf.Blend,customDepthTest:F.it.Lequal,textureAlphaMode:h,textureAlphaCutoff:f.alphaCutoff,diffuse:[p,g,y],ambient:[p,g,y],opacity:f.opacity,doubleSided:f.doubleSided,doubleSidedType:"winding-order",cullFace:f.doubleSided?F.s2.None:F.s2.Back,hasVertexColors:!!t.attributes.color,hasVertexTangents:!!t.attributes.tangent,normalType:m?J.W.Attribute:J.W.ScreenDerivative,castShadows:!0,receiveShadows:f.receiveShadows,receiveAmbientOcclusion:f.receiveAmbientOcclustion,textureId:null!=M?M.id:void 0,colorMixMode:f.colorMixMode,normalTextureId:null!=f.textureNormal&&d?a.get(f.textureNormal).id:void 0,textureAlphaPremultiplied:null!=M&&!!M.parameters.preMultiplyAlpha,occlusionTextureId:null!=f.textureOcclusion&&d?a.get(f.textureOcclusion).id:void 0,emissiveTextureId:null!=f.textureEmissive&&d?a.get(f.textureEmissive).id:void 0,metallicRoughnessTextureId:null!=f.textureMetallicRoughness&&d?a.get(f.textureMetallicRoughness).id:void 0,emissiveFactor:[v,b,x],mrrFactors:T?K.Bt:[f.metallicFactor,f.roughnessFactor,o.mrrFactors[2]],isSchematic:T,colorTextureTransformMatrix:A(f.colorTextureTransform),normalTextureTransformMatrix:A(f.normalTextureTransform),scale:[B[0],B[1]],occlusionTextureTransformMatrix:A(f.occlusionTextureTransform),emissiveTextureTransformMatrix:A(f.emissiveTextureTransform),metallicRoughnessTextureTransformMatrix:A(f.metallicRoughnessTextureTransform),...s},u))}const p=i.get(c);if(r.stageResources.materials.push(p),d){const e=e=>{null!=e&&r.stageResources.textures.push(a.get(e))};e(f.textureColor),e(f.textureNormal),e(f.textureOcclusion),e(f.textureEmissive),e(f.textureMetallicRoughness)}return p}(u,e,R,t,r,f,d,o),{geometry:c,vertexCount:b}=function(e,t){const r=e.attributes.position.count,n=(0,x.x)(e.indices||r,e.primitiveType),o=(0,h.oe)(3*r),{typedBuffer:a,typedBufferStride:u}=e.attributes.position;(0,g.t)(o,a,e.transform,3,u);const c=[[k.r.POSITION,new U.n(o,n,3,!0)]];if(null!=e.attributes.normal){const t=(0,h.oe)(3*r),{typedBuffer:o,typedBufferStride:a}=e.attributes.normal;(0,i.Ge)(Z,e.transform),(0,g.b)(t,o,Z,3,a),(0,s.or)(Z)&&(0,g.n)(t,t),c.push([k.r.NORMAL,new U.n(t,n,3,!0)])}if(null!=e.attributes.tangent){const t=(0,h.oe)(4*r),{typedBuffer:o,typedBufferStride:a}=e.attributes.tangent;(0,i.z0)(Z,e.transform),(0,y.t)(t,o,Z,4,a),(0,s.or)(Z)&&(0,g.n)(t,t,4),c.push([k.r.TANGENT,new U.n(t,n,4,!0)])}if(null!=e.attributes.texCoord0){const t=(0,h.oe)(2*r),{typedBuffer:o,typedBufferStride:s}=e.attributes.texCoord0;(0,v.a)(t,o,2,s),c.push([k.r.UV0,new U.n(t,n,2,!0)])}const l=e.attributes.color;if(null!=l){const t=new Uint8Array(4*r);4===l.elementCount?l instanceof p.Eq?(0,y.b)(t,l,1,255):(l instanceof p.XP||l instanceof p.Uz)&&(0,y.b)(t,l,1/255,255):(t.fill(255),l instanceof p.xs?(0,g.f)(t,l.typedBuffer,1,255,4,l.typedBufferStride):(e.attributes.color instanceof p.eI||e.attributes.color instanceof p.nS)&&(0,g.f)(t,l.typedBuffer,1/255,255,4,e.attributes.color.typedBufferStride)),c.push([k.r.COLOR,new U.n(t,n,4,!0)])}return{geometry:new j.V(t,c),vertexCount:r}}(e,a??new D.$U({},o)),B=c.boundingInfo;null!=B&&0===T&&((0,m.iT)(M,B.bbMin),(0,m.iT)(M,B.bbMax)),null!=a&&(R.stageResources.geometries.push(c),R.numberOfVertices+=b)})),S||c.push(R)})),{engineResources:c,referenceBoundingBox:M}}(M,Q,ee,t,a.specifiedLodIndex);return{lods:te,referenceBoundingBox:re,isEsriSymbolResource:M.meta.isEsriSymbolResource,isWosr:!1}}const Z=(0,a.vt)()},66104:(e,t,r)=>{var n,o;r.d(t,{k5:()=>n}),r(34727),(o=n||(n={}))[o.Multiply=1]="Multiply",o[o.Ignore=2]="Ignore",o[o.Replace=3]="Replace",o[o.Tint=4]="Tint"},42583:(e,t,r)=>{r.d(t,{A:()=>s});var n=r(66104),o=r(2597);function s(e){e.vertex.code.add(o.H`
|
|
2
|
+
vec4 decodeSymbolColor(vec4 symbolColor, out int colorMixMode) {
|
|
3
|
+
float symbolAlpha = 0.0;
|
|
4
|
+
|
|
5
|
+
const float maxTint = 85.0;
|
|
6
|
+
const float maxReplace = 170.0;
|
|
7
|
+
const float scaleAlpha = 3.0;
|
|
8
|
+
|
|
9
|
+
if (symbolColor.a > maxReplace) {
|
|
10
|
+
colorMixMode = ${o.H.int(n.k5.Multiply)};
|
|
11
|
+
symbolAlpha = scaleAlpha * (symbolColor.a - maxReplace);
|
|
12
|
+
} else if (symbolColor.a > maxTint) {
|
|
13
|
+
colorMixMode = ${o.H.int(n.k5.Replace)};
|
|
14
|
+
symbolAlpha = scaleAlpha * (symbolColor.a - maxTint);
|
|
15
|
+
} else if (symbolColor.a > 0.0) {
|
|
16
|
+
colorMixMode = ${o.H.int(n.k5.Tint)};
|
|
17
|
+
symbolAlpha = scaleAlpha * symbolColor.a;
|
|
18
|
+
} else {
|
|
19
|
+
colorMixMode = ${o.H.int(n.k5.Multiply)};
|
|
20
|
+
symbolAlpha = 0.0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
return vec4(symbolColor.r, symbolColor.g, symbolColor.b, symbolAlpha);
|
|
24
|
+
}
|
|
25
|
+
`)}},49255:(e,t,r)=>{var n;function o(e){return e===n.Shadow||e===n.ShadowHighlight||e===n.ShadowExcludeHighlight||e===n.ViewshedShadow}function s(e){return function(e){return l(e)||f(e)}(e)||e===n.Normal}function i(e){return function(e){return function(e){return c(e)||a(e)}(e)||f(e)}(e)||e===n.Normal}function a(e){return e===n.Highlight||e===n.ObjectAndLayerIdColor}function u(e){return e===n.Color}function c(e){return u(e)||d(e)}function l(e){return u(e)||a(e)}function f(e){return e===n.Depth}function d(e){return e===n.ColorEmission}r.d(t,{LG:()=>d,PJ:()=>o,RN:()=>c,V:()=>n,XY:()=>s,dX:()=>l,iq:()=>i}),function(e){e[e.Color=0]="Color",e[e.ColorEmission=1]="ColorEmission",e[e.Depth=2]="Depth",e[e.Normal=3]="Normal",e[e.Shadow=4]="Shadow",e[e.ShadowHighlight=5]="ShadowHighlight",e[e.ShadowExcludeHighlight=6]="ShadowExcludeHighlight",e[e.ViewshedShadow=7]="ViewshedShadow",e[e.Highlight=8]="Highlight",e[e.ObjectAndLayerIdColor=9]="ObjectAndLayerIdColor",e[e.COUNT=10]="COUNT"}(n||(n={}))},96336:(e,t,r)=>{r.d(t,{W:()=>n,Y:()=>u});var n,o,s=r(21818),i=r(2597),a=r(46540);function u(e,t){switch(t.normalType){case n.Compressed:e.attributes.add(a.r.NORMALCOMPRESSED,"vec2"),e.vertex.code.add(i.H`vec3 decompressNormal(vec2 normal) {
|
|
26
|
+
float z = 1.0 - abs(normal.x) - abs(normal.y);
|
|
27
|
+
return vec3(normal + sign(normal) * min(z, 0.0), z);
|
|
28
|
+
}
|
|
29
|
+
vec3 normalModel() {
|
|
30
|
+
return decompressNormal(normalCompressed);
|
|
31
|
+
}`);break;case n.Attribute:e.attributes.add(a.r.NORMAL,"vec3"),e.vertex.code.add(i.H`vec3 normalModel() {
|
|
32
|
+
return normal;
|
|
33
|
+
}`);break;case n.ScreenDerivative:e.fragment.code.add(i.H`vec3 screenDerivativeNormal(vec3 positionView) {
|
|
34
|
+
return normalize(cross(dFdx(positionView), dFdy(positionView)));
|
|
35
|
+
}`);break;default:(0,s.Xb)(t.normalType);case n.COUNT:}}(o=n||(n={}))[o.Attribute=0]="Attribute",o[o.Compressed=1]="Compressed",o[o.ScreenDerivative=2]="ScreenDerivative",o[o.COUNT=3]="COUNT"},26425:(e,t,r)=>{r.d(t,{u:()=>o});var n=r(2597);function o({code:e},t){t.doublePrecisionRequiresObfuscation?e.add(n.H`vec3 dpPlusFrc(vec3 a, vec3 b) {
|
|
36
|
+
return mix(a, a + b, vec3(notEqual(b, vec3(0))));
|
|
37
|
+
}
|
|
38
|
+
vec3 dpMinusFrc(vec3 a, vec3 b) {
|
|
39
|
+
return mix(vec3(0), a - b, vec3(notEqual(a, b)));
|
|
40
|
+
}
|
|
41
|
+
vec3 dpAdd(vec3 hiA, vec3 loA, vec3 hiB, vec3 loB) {
|
|
42
|
+
vec3 t1 = dpPlusFrc(hiA, hiB);
|
|
43
|
+
vec3 e = dpMinusFrc(t1, hiA);
|
|
44
|
+
vec3 t2 = dpMinusFrc(hiB, e) + dpMinusFrc(hiA, dpMinusFrc(t1, e)) + loA + loB;
|
|
45
|
+
return t1 + t2;
|
|
46
|
+
}`):e.add(n.H`vec3 dpAdd(vec3 hiA, vec3 loA, vec3 hiB, vec3 loB) {
|
|
47
|
+
vec3 t1 = hiA + hiB;
|
|
48
|
+
vec3 e = t1 - hiA;
|
|
49
|
+
vec3 t2 = ((hiB - e) + (hiA - (t1 - e))) + loA + loB;
|
|
50
|
+
return t1 + t2;
|
|
51
|
+
}`)}},40710:(e,t,r)=>{r.d(t,{W:()=>s});var n=r(39589),o=r(46263);class s extends n.n{constructor(e,t){super(e,"vec3",o.c.Draw,((r,n,o,s)=>r.setUniform3fv(e,t(n,o,s))))}}},33079:(e,t,r)=>{r.d(t,{t:()=>s});var n=r(39589),o=r(46263);class s extends n.n{constructor(e,t){super(e,"vec3",o.c.Pass,((r,n,o)=>r.setUniform3fv(e,t(n,o))))}}},98353:(e,t,r)=>{r.d(t,{h:()=>s});var n=r(39589),o=r(46263);class s extends n.n{constructor(e,t){super(e,"mat3",o.c.Draw,((r,n,o)=>r.setUniformMatrix3fv(e,t(n,o))))}}},35644:(e,t,r)=>{r.d(t,{k:()=>s});var n=r(39589),o=r(46263);class s extends n.n{constructor(e,t){super(e,"mat3",o.c.Pass,((r,n,o)=>r.setUniformMatrix3fv(e,t(n,o))))}}},40095:(e,t,r)=>{r.d(t,{X:()=>s});var n=r(39589),o=r(46263);class s extends n.n{constructor(e,t){super(e,"mat4",o.c.Pass,((r,n,o)=>r.setUniformMatrix4fv(e,t(n,o))))}}},15976:(e,t,r)=>{r.d(t,{o:()=>s});var n=r(39589),o=r(46263);class s extends n.n{constructor(e,t){super(e,"sampler2D",o.c.Draw,((r,n,o)=>r.bindTexture(e,t(n,o))))}}},39589:(e,t,r)=>{r.d(t,{n:()=>o});var n=r(46263);class o{constructor(e,t,r,o,s=null){if(this.name=e,this.type=t,this.arraySize=s,this.bind={[n.c.Pass]:null,[n.c.Draw]:null},o)switch(r){case n.c.Pass:this.bind[n.c.Pass]=o;break;case n.c.Draw:this.bind[n.c.Draw]=o}}equals(e){return this.type===e.type&&this.name===e.name&&this.arraySize===e.arraySize}}},2597:(e,t,r)=>{r.d(t,{H:()=>o,If:()=>s,Y:()=>n});const n=class{};function o(e,...t){let r="";for(let n=0;n<t.length;n++)r+=e[n]+t[n];return r+=e[e.length-1],r}function s(e,t,r=""){return e?t:r}var i;(i=o||(o={})).int=function(e){return Math.round(e).toString()},i.float=function(e){return e.toPrecision(8)}},46263:(e,t,r)=>{var n;r.d(t,{c:()=>n}),function(e){e[e.Pass=0]="Pass",e[e.Draw=1]="Draw"}(n||(n={}))},16943:(e,t,r)=>{r.d(t,{E:()=>o});var n=r(44208);function o(){return!!(0,n.A)("enable-feature:objectAndLayerId-rendering")}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8846],{73354:(t,n,e)=>{e.d(n,{a:()=>f,b:()=>l,c:()=>i,d:()=>o,e:()=>p,f:()=>c,l:()=>s,n:()=>g,t:()=>a});var r=e(40876);function o(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function a(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return t;const a=t.length/r,i=e[0],l=e[1],u=e[2],s=e[4],c=e[5],f=e[6],p=e[8],g=e[9],d=e[10],h=e[12],y=e[13],m=e[14];let A=0,M=0;for(let e=0;e<a;e++){const e=n[A],a=n[A+1],T=n[A+2];t[M]=i*e+s*a+p*T+h,t[M+1]=l*e+c*a+g*T+y,t[M+2]=u*e+f*a+d*T+m,A+=o,M+=r}return t}function i(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function l(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return;const a=t.length/r,i=e[0],l=e[1],u=e[2],s=e[3],c=e[4],f=e[5],p=e[6],g=e[7],d=e[8];let h=0,y=0;for(let e=0;e<a;e++){const e=n[h],a=n[h+1],m=n[h+2];t[y]=i*e+s*a+p*m,t[y+1]=l*e+c*a+g*m,t[y+2]=u*e+f*a+d*m,h+=o,y+=r}}function u(t,n,e,r=3,o=r){const a=Math.min(t.length/r,n.length/o);let i=0,l=0;for(let u=0;u<a;u++)t[l]=e*n[i],t[l+1]=e*n[i+1],t[l+2]=e*n[i+2],i+=o,l+=r;return t}function s(t,n,e,r){c(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function c(t,n,e,o,a=3,i=a){const l=Math.min(t.length/a,n.length/i);let u=0,s=0;const c=1/r.Tf;for(let r=0;r<l;r++)t[s]=o*(e*n[u])**c,t[s+1]=o*(e*n[u+1])**c,t[s+2]=o*(e*n[u+2])**c,u+=i,s+=a}function f(t,n,e,r=3,o=r){const a=t.length/r;if(a!==Math.ceil(n.length/o))return t;let i=0,l=0;for(let u=0;u<a;u++)t[l]=n[i]+e[0],t[l+1]=n[i+1]+e[1],t[l+2]=n[i+2]+e[2],i+=o,l+=r;return t}function p(t,n){g(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function g(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let a=0,i=0;for(let l=0;l<o;l++){const o=n[a],l=n[a+1],u=n[a+2],s=o*o+l*l+u*u;if(s>0){const n=1/Math.sqrt(s);t[i]=n*o,t[i+1]=n*l,t[i+2]=n*u}a+=r,i+=e}}e(44208),e(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:s,normalize:g,normalizeView:p,scale:u,scaleView:function(t,n,e){u(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,a=t.typedBufferStride,i=n.typedBuffer,l=n.typedBufferStride;let u=0,s=0;for(let t=0;t<r;t++)o[s]=i[u]>>e,o[s+1]=i[u+1]>>e,o[s+2]=i[u+2]>>e,u+=l,s+=a},transformMat3:l,transformMat3View:i,transformMat4:a,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},65686:(t,n,e)=>{e.d(n,{a:()=>a,b:()=>c,l:()=>s,n:()=>l,t:()=>i});var r=e(40876),o=(e(44208),e(53966));function a(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,r=4,o=r){if(t.length/r!=n.length/o)return;const a=t.length/r,i=e[0],l=e[1],u=e[2],s=e[3],c=e[4],f=e[5],p=e[6],g=e[7],d=e[8];let h=0,y=0;for(let e=0;e<a;e++){const e=n[h],a=n[h+1],m=n[h+2],A=n[h+3];t[y]=i*e+s*a+p*m,t[y+1]=l*e+c*a+g*m,t[y+2]=u*e+f*a+d*m,t[y+3]=A,h+=o,y+=r}}function l(t,n){const e=Math.min(t.count,n.count),r=t.typedBuffer,o=t.typedBufferStride,a=n.typedBuffer,i=n.typedBufferStride;for(let t=0;t<e;t++){const n=t*o,e=t*i,l=a[e],u=a[e+1],s=a[e+2],c=l*l+u*u+s*s;if(c>0){const t=1/Math.sqrt(c);r[n]=t*l,r[n+1]=t*u,r[n+2]=t*s}}}function u(t,n,e,r=4){const o=Math.min(t.length/r,n.count),a=n.typedBuffer,i=n.typedBufferStride;let l=0,u=0;for(let n=0;n<o;n++)t[u]=e*a[l],t[u+1]=e*a[l+1],t[u+2]=e*a[l+2],t[u+3]=e*a[l+3],l+=i,u+=r}function s(t,n,e,r){c(t.typedBuffer,n,e,r,t.typedBufferStride)}function c(t,n,e,o,a=4){const i=Math.min(t.length/a,n.count),l=n.typedBuffer,u=n.typedBufferStride;let s=0,c=0;const f=1/r.Tf;for(let n=0;n<i;n++)t[c]=o*(e*l[s])**f,t[c+1]=o*(e*l[s+1])**f,t[c+2]=o*(e*l[s+2])**f,t[c+3]=o*e*l[s+3],s+=u,c+=a}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:s,normalize:l,scale:u,scaleView:function(t,n,e){u(t.typedBuffer,n,e,t.typedBufferStride)},transformMat3:i,transformMat3View:a,transformMat4:function(t,n,e,r=4,a=r){if(t.length/r!=n.length/a)return void o.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const i=t.length/r,l=e[0],u=e[1],s=e[2],c=e[3],f=e[4],p=e[5],g=e[6],d=e[7],h=e[8],y=e[9],m=e[10],A=e[11],M=e[12],T=e[13],v=e[14],b=e[15];let w=0,B=0;for(let e=0;e<i;e++){const e=n[w],o=n[w+1],i=n[w+2],S=n[w+3];t[B]=l*e+f*o+h*i+M*S,t[B+1]=u*e+p*o+y*i+T*S,t[B+2]=s*e+g*o+m*i+v*S,t[B+3]=c*e+d*o+A*i+b*S,w+=a,B+=r}},transformMat4View:function(t,n,e){if(t.count!==n.count)return;const r=t.count,o=e[0],a=e[1],i=e[2],l=e[3],u=e[4],s=e[5],c=e[6],f=e[7],p=e[8],g=e[9],d=e[10],h=e[11],y=e[12],m=e[13],A=e[14],M=e[15],T=t.typedBuffer,v=t.typedBufferStride,b=n.typedBuffer,w=n.typedBufferStride;for(let t=0;t<r;t++){const n=t*v,e=t*w,r=b[e],B=b[e+1],S=b[e+2],R=b[e+3];T[n]=o*r+u*B+p*S+y*R,T[n+1]=a*r+s*B+g*S+m*R,T[n+2]=i*r+c*B+d*S+A*R,T[n+3]=l*r+f*B+h*S+M*R}}},Symbol.toStringTag,{value:"Module"}))},77690:(t,n,e)=>{e.d(n,{B8:()=>l,Ge:()=>p,I0:()=>f,KC:()=>u,hZ:()=>a,hs:()=>c,lw:()=>s,mg:()=>i,z0:()=>o});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,e,r,o,a,i,l,u,s){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=i,t[6]=l,t[7]=u,t[8]=s,t}function i(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function l(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=n[4],l=n[5],u=n[6],s=n[7],c=n[8],f=c*i-l*s,p=-c*a+l*u,g=s*a-i*u;let d=e*f+r*p+o*g;return d?(d=1/d,t[0]=f*d,t[1]=(-c*r+o*s)*d,t[2]=(l*r-o*i)*d,t[3]=p*d,t[4]=(c*e-o*u)*d,t[5]=(-l*e+o*a)*d,t[6]=g*d,t[7]=(-s*e+r*u)*d,t[8]=(i*e-r*a)*d,t):null}function u(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=n[4],l=n[5],u=n[6],s=n[7],c=n[8];return t[0]=i*c-l*s,t[1]=o*s-r*c,t[2]=r*l-o*i,t[3]=l*u-a*c,t[4]=e*c-o*u,t[5]=o*a-e*l,t[6]=a*s-i*u,t[7]=r*u-e*s,t[8]=e*i-r*a,t}function s(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],l=n[4],u=n[5],s=n[6],c=n[7],f=n[8],p=e[0],g=e[1],d=e[2],h=e[3],y=e[4],m=e[5],A=e[6],M=e[7],T=e[8];return t[0]=p*r+g*i+d*s,t[1]=p*o+g*l+d*c,t[2]=p*a+g*u+d*f,t[3]=h*r+y*i+m*s,t[4]=h*o+y*l+m*c,t[5]=h*a+y*u+m*f,t[6]=A*r+M*i+T*s,t[7]=A*o+M*l+T*c,t[8]=A*a+M*u+T*f,t}function c(t,n,e){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t}function f(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=e+e,l=r+r,u=o+o,s=e*i,c=r*i,f=r*l,p=o*i,g=o*l,d=o*u,h=a*i,y=a*l,m=a*u;return t[0]=1-f-d,t[3]=c-m,t[6]=p+y,t[1]=c+m,t[4]=1-s-d,t[7]=g-h,t[2]=p-y,t[5]=g+h,t[8]=1-s-f,t}function p(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],i=n[4],l=n[5],u=n[6],s=n[7],c=n[8],f=n[9],p=n[10],g=n[11],d=n[12],h=n[13],y=n[14],m=n[15],A=e*l-r*i,M=e*u-o*i,T=e*s-a*i,v=r*u-o*l,b=r*s-a*l,w=o*s-a*u,B=c*h-f*d,S=c*y-p*d,R=c*m-g*d,_=f*y-p*h,C=f*m-g*h,E=p*m-g*y;let F=A*E-M*C+T*_+v*R-b*S+w*B;return F?(F=1/F,t[0]=(l*E-u*C+s*_)*F,t[1]=(u*R-i*E-s*S)*F,t[2]=(i*C-l*R+s*B)*F,t[3]=(o*C-r*E-a*_)*F,t[4]=(e*E-o*R+a*S)*F,t[5]=(r*R-e*C-a*B)*F,t[6]=(h*w-y*b+m*v)*F,t[7]=(y*T-d*w-m*M)*F,t[8]=(d*b-h*T+m*A)*F,t):null}function g(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const d=s,h=g;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:u,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],i=t[5],l=t[6],u=t[7],s=t[8];return n*(s*a-i*u)+e*(-s*o+i*l)+r*(u*o-a*l)},equals:function(t,n){const e=t[0],o=t[1],a=t[2],i=t[3],l=t[4],u=t[5],s=t[6],c=t[7],f=t[8],p=n[0],g=n[1],d=n[2],h=n[3],y=n[4],m=n[5],A=n[6],M=n[7],T=n[8],v=(0,r.FD)();return Math.abs(e-p)<=v*Math.max(1,Math.abs(e),Math.abs(p))&&Math.abs(o-g)<=v*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(a-d)<=v*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(i-h)<=v*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(l-y)<=v*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-m)<=v*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(s-A)<=v*Math.max(1,Math.abs(s),Math.abs(A))&&Math.abs(c-M)<=v*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(f-T)<=v*Math.max(1,Math.abs(f),Math.abs(T))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:l,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],a=t[2],i=t[3],l=t[4],u=t[5],s=t[6],c=t[7],f=t[8];return Math.abs(1-(e*e+i*i+s*s))<=n&&Math.abs(1-(o*o+l*l+c*c))<=n&&Math.abs(1-(a*a+u*u+f*f))<=n},mul:d,multiply:s,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:p,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],i=n[5],l=n[6],u=n[8],s=n[9],c=n[10],f=c*i-l*s,p=-c*a+l*u,g=s*a-i*u,d=e*f+r*p+o*g;if(!d)return null;const h=1/d;return t[0]=f*h,t[1]=(-c*r+o*s)*h,t[2]=(l*r-o*i)*h,t[3]=p*h,t[4]=(c*e-o*u)*h,t[5]=(-l*e+o*a)*h,t[6]=g*h,t[7]=(-s*e+r*u)*h,t[8]=(i*e-r*a)*h,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],l=n[4],u=n[5],s=n[6],c=n[7],f=n[8],p=Math.sin(e),g=Math.cos(e);return t[0]=g*r+p*i,t[1]=g*o+p*l,t[2]=g*a+p*u,t[3]=g*i-p*r,t[4]=g*l-p*o,t[5]=g*u-p*a,t[6]=s,t[7]=c,t[8]=f,t},scale:c,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:h,subtract:g,translate:function(t,n,e){const r=n[0],o=n[1],a=n[2],i=n[3],l=n[4],u=n[5],s=n[6],c=n[7],f=n[8],p=e[0],g=e[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=i,t[4]=l,t[5]=u,t[6]=p*r+g*i+s,t[7]=p*o+g*l+c,t[8]=p*a+g*u+f,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,e)=>{e.d(n,{l:()=>s});var r=e(34727),o=e(58083),a=e(51850);function i(t,n,e){const r=Math.sin(t),o=Math.cos(t),a=Math.sin(n),i=Math.cos(n),l=e;return l[0]=-r,l[4]=-a*o,l[8]=i*o,l[12]=0,l[1]=o,l[5]=-a*r,l[9]=i*r,l[13]=0,l[2]=0,l[6]=i,l[10]=a,l[14]=0,l[3]=0,l[7]=0,l[11]=0,l[15]=1,l}var l=e(37539),u=e(21325);function s(t,n,e,r){const a=(0,l.Tp)(t,r);if(null==a)return!1;const s=a.source.spatialReferenceId,d=a.dest.spatialReferenceId;if(s===d&&!c(d)&&(s!==l.rz.UNKNOWN||(0,u.aI)(t,r)))return(0,o.kN)(e,n),!0;if(c(d)){const t=l.w5[s][l.rz.LON_LAT],r=l.w5[l.rz.LON_LAT][d];return null!=t&&null!=r&&(t(n,0,p,0),r(p,0,g,0),i(f*p[0],f*p[1],e),e[12]=g[0],e[13]=g[1],e[14]=g[2],!0)}const h=c(s);if((d===l.rz.WEB_MERCATOR||d===l.rz.PLATE_CARREE||d===l.rz.WGS84||d===l.rz.CGCS2000)&&(s===l.rz.WGS84||h||s===l.rz.WEB_MERCATOR||s===l.rz.CGCS2000)){const t=l.w5[s][l.rz.LON_LAT],r=l.w5[l.rz.LON_LAT][d];return null!=t&&null!=r&&(t(n,0,p,0),r(p,0,g,0),h?function(t,n,e){i(t,n,e),(0,o.mg)(e,e)}(f*p[0],f*p[1],e):(0,o.D_)(e),e[12]=g[0],e[13]=g[1],e[14]=g[2],!0)}return!1}function c(t){return t===l.rz.SPHERICAL_ECEF||t===l.rz.SPHERICAL_MARS_PCPF||t===l.rz.SPHERICAL_MOON_PCPF||t===l.rz.WGS84_ECEF}const f=(0,r.kU)(1),p=(0,a.vt)(),g=(0,a.vt)()},65806:(t,n,e)=>{e.d(n,{g:()=>i});var r=e(51850),o=e(57251),a=e(9762);function i(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e)){l[0]=t.x,l[1]=t.y;const o=t.z;return l[2]=o??r??0,(0,a.projectBuffer)(l,t.spatialReference,0,n,e,0)}const i=(0,o.tryProjectWithZConversion)(t,e);return!!i&&(n[0]=i?.x,n[1]=i?.y,n[2]=i?.z??r??0,!0)}const l=(0,r.vt)()},98764:(t,n,e)=>{e.d(n,{Y0:()=>s,lO:()=>c});var r=e(73941),o=e(16930),a=e(21325);const i=new o.A(r.fv),l=new o.A(r.FY),u=new o.A(r.LJ),s=new o.A(r.Ro);function c(t){const n=f.get(t);if(n)return n;let e=i;if(t)if(t===l)e=l;else if(t===u)e=u;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,a.tl)(n)||(0,a.tl)(r)?e=l:((0,a.ZL)(n)||(0,a.ZL)(r))&&(e=u);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===p?e=l:t===g&&(e=u)}}}return f.set(t,e),e}const f=new Map,p=l.wkt.toUpperCase(),g=u.wkt.toUpperCase()},1193:(t,n,e)=>{e.d(n,{H:()=>p});var r,o=e(90237),a=e(25482),i=e(4718),l=e(53966),u=e(10107),s=e(79901),c=e(40608),f=e(31199);let p=r=class extends a.oY{constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,f.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},l.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&l.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,f.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},l.A.getLogger(this))}castUv(t){return(0,f.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},l.A.getLogger(this))}castNormal(t){return(0,f.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},l.A.getLogger(this))}castTangent(t){return(0,f.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},l.A.getLogger(this))}clone(){const t={position:(0,i.o8)(this.position),uv:(0,i.o8)(this.uv),normal:(0,i.o8)(this.normal),tangent:(0,i.o8)(this.tangent),color:(0,i.o8)(this.color)};return new r(t)}clonePositional(){const t={position:(0,i.o8)(this.position),normal:(0,i.o8)(this.normal),tangent:(0,i.o8)(this.tangent),uv:this.uv,color:this.color};return new r(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o._)([(0,u.MZ)({json:{write:f.B}})],p.prototype,"color",void 0),(0,o._)([(0,s.w)("color")],p.prototype,"castColor",null),(0,o._)([(0,u.MZ)({nonNullable:!0,json:{write:f.B}})],p.prototype,"position",void 0),(0,o._)([(0,s.w)("position")],p.prototype,"castPosition",null),(0,o._)([(0,u.MZ)({json:{write:f.B}})],p.prototype,"uv",void 0),(0,o._)([(0,s.w)("uv")],p.prototype,"castUv",null),(0,o._)([(0,u.MZ)({json:{write:f.B}})],p.prototype,"normal",void 0),(0,o._)([(0,s.w)("normal")],p.prototype,"castNormal",null),(0,o._)([(0,u.MZ)({json:{write:f.B}})],p.prototype,"tangent",void 0),(0,o._)([(0,s.w)("tangent")],p.prototype,"castTangent",null),p=r=(0,o._)([(0,c.$)("esri.geometry.support.MeshVertexAttributes")],p)},31199:(t,n,e)=>{function r(t,n,e,r){const{loggerTag:o,stride:a}=n;return t.length%a!=0?(r.error(o,`Invalid array length, expected a multiple of ${a}`),new e([])):t}function o(t,n,e,o,a){if(!t)return t;if(t instanceof n)return r(t,o,n,a);for(const i of e)if(t instanceof i)return r(new n(t),o,n,a);if(Array.isArray(t))return r(new n(t),o,n,a);{const r=e.map((t=>`'${t.name}'`));return a.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new n([])}}function a(t,n,e){n[e]=function(t){const n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e];return n}(t)}e.d(n,{B:()=>a,b:()=>o})},28846:(t,n,e)=>{e.d(n,{convertMeshVertexSpace:()=>u});var r=e(49186),o=e(4718),a=e(74887),i=e(1193),l=e(72258);async function u(t,n,e){await Promise.resolve(),(0,a.Te)(e);const u=(0,l.UR)(t,n,{useEllipsoid:e?.useEllipsoid});if(!u)throw new r.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");const s=t.cloneAndModifyVertexAttributes(new i.H({...u,uv:(0,o.o8)(t.vertexAttributes.uv),color:(0,o.o8)(t.vertexAttributes.color)}),n);return s.transform=null,s}},22141:(t,n,e)=>{e.d(n,{$5:()=>b,CN:()=>A,JP:()=>m,KM:()=>B,Mv:()=>R,X4:()=>M,gr:()=>v,qs:()=>w,si:()=>T,xA:()=>S});var r=e(34727),o=e(77690),a=e(29242),i=e(58083),l=e(9093),u=e(38954),s=e(51850),c=e(48353),f=e(9762),p=(e(79258),e(21325)),g=e(28735),d=e(13030),h=e(73354),y=e(65686);const m="Projection may be possible after calling projection.load().";function A(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function M(t,n,e,r,o,a){return N(C.TO_PCPF,d.xs.fromTypedArray(t),_.NORMAL,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(a))?a:null}function T(t,n,e,r,o,a){return N(C.FROM_PCPF,d.xs.fromTypedArray(t),_.NORMAL,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(a))?a:null}function v(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function b(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function w(t,n,e){return(0,o.Ge)(L,e),(0,h.b)(n,t,L),(0,r.or)(L)&&(0,h.n)(n,n),n}function B(t,n,e){return(0,o.z0)(L,e),(0,y.t)(n,t,L),(0,r.or)(L)&&(0,h.n)(n,n,4),n}function S(t,n,e,r,o,a){if(!N(C.TO_PCPF,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),_.TANGENT,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(a,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)a[n]=t[n];return a}function R(t,n,e,r,o,a){if(!N(C.FROM_PCPF,d.xs.fromTypedArray(t,16),_.TANGENT,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(a,16)))return null;for(let n=3;n<t.length;n+=4)a[n]=t[n];return a}var _,C,E;function F(t,n,e,r,a){switch((0,c.l)(r,e,P,r),t===C.FROM_PCPF&&(0,i.B8)(P,P),n){case _.NORMAL:return(0,o.Ge)(a,P);case _.TANGENT:return(0,o.z0)(a,P)}}function N(t,n,e,r,o,a,i,l){if(!n)return;const s=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,p.q8)(t)||(0,p.KQ)(t)}(o))for(let r=0;r<s;r++)a.getVec(r,x),n.getVec(r,O),(0,u.q)(O,O,F(t,e,x,i,L)),l.setVec(r,O);else for(let o=0;o<s;o++){a.getVec(o,x),n.getVec(o,O);const s=(0,g.jg)(r.get(o,1));let c=Math.cos(s);e===_.TANGENT!=(t===C.TO_PCPF)&&(c=1/c),F(t,e,x,i,L),t===C.TO_PCPF?(L[0]*=c,L[1]*=c,L[2]*=c,L[3]*=c,L[4]*=c,L[5]*=c):(L[0]*=c,L[3]*=c,L[6]*=c,L[1]*=c,L[4]*=c,L[7]*=c),(0,u.q)(O,O,L),(0,u.n)(O,O),l.setVec(o,O)}return l}(E=_||(_={}))[E.NORMAL=0]="NORMAL",E[E.TANGENT=1]="TANGENT",function(t){t[t.TO_PCPF=0]="TO_PCPF",t[t.FROM_PCPF=1]="FROM_PCPF"}(C||(C={}));const x=(0,s.vt)(),O=(0,s.vt)(),P=(0,l.vt)(),L=(0,a.vt)()},72258:(t,n,e)=>{e.d(n,{UR:()=>v,p5:()=>T,xK:()=>_});var r=e(53966),o=e(34727),a=e(83047),i=e(77690),l=e(29242),u=e(58083),s=e(9093),c=e(38954),f=e(51850),p=e(98764),g=e(48353),d=e(65806),h=e(27615),y=e(21325),m=e(73354),A=e(22141);const M=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function T(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:a}=e;return(0,c.d)(t,o,a),!0}const o=(0,p.lO)(r),a=t;if(!(0,d.g)(n,a,o))return!1;const{origin:i}=e,l=x;if(!(0,g.l)(r,i,l,o))return!1;const s=(0,u.B8)(x,l);return null!=s&&((0,c.t)(t,a,s),!0)}function v(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:a}=t,l=(0,h.Hq)(r)?o:null,f=S(t.spatialReference,e,O.SOURCE_AND_TARGET);if((0,h.yJ)(r,n)&&(!l||(0,u.t2)(l.localMatrix,s.zK))&&R(f)){const{position:t,normal:n,tangent:r}=a,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,a){const i=b(n,a);if(!(0,g.l)(n,r,C,i))return(0,A.CN)(M(),n,i),null;if(e&&(0,u.lw)(C,C,e.localMatrix),!(0,g.l)(n,o,E,i))return(0,A.CN)(M(),i,n),null;(0,u.B8)(E,E);const l=(0,u.lw)(C,E,C);return B(l,n,a,O.SOURCE_AND_TARGET),w(t,l)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,a){const i=b(t,a);if(!(0,g.l)(t,r,C,i))return(0,A.CN)(M(),t,i),null;e&&(0,u.lw)(C,C,e.localMatrix),B(C,t,a,O.SOURCE);const l=new Float64Array(n.position.length),s=function(t,n,e,r,o){(0,m.t)(r,t,n);const a=new Float64Array(t.length);return(0,A.$5)(r,o,a,e)?a:((0,A.CN)(M(),o,e),null)}(n.position,C,t,l,i);if(!s)return null;const f=function(t,n,e,r,o,a){if(null==o)return null;const i=new Float32Array(o.length);return(0,A.qs)(o,i,a),(0,A.si)(i,t,n,e,r,i)?i:((0,A.CN)(M(),r,n),null)}(s,t,l,i,n.normal,C);if(n.normal&&!f)return null;const p=function(t,n,e,r,o,a){if(null==o)return null;const i=new Float32Array(o.length);return(0,A.KM)(o,i,a),(0,A.Mv)(i,t,n,e,r,i)?i:((0,A.CN)(M(),r,n),null)}(s,t,l,i,n.tangent,C);if(n.tangent&&!p)return null;if(o){const t=(0,c.v)(N,o);(0,m.a)(s,s,t)}return{position:s,normal:f,tangent:p}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,a){const l=b(n,a);if(!(0,g.l)(n,o,C,l))return(0,A.CN)(M(),n,l),null;const s=1/S(n,a,O.TARGET);(0,u.hs)(C,C,[s,s,s]);const c=(0,u.B8)(E,C),{position:f,normal:p,tangent:d}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,m.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=w(t,e.localMatrix);return(0,m.a)(r.position,r.position,n),r}(t,r,e),h=new Float64Array(f.length),y=function(t,n,e,r,o){const a=(0,A.gr)(t,n,r,o);if(!a)return(0,A.CN)(M(),n,o),null;const i=new Float64Array(a.length);return(0,m.t)(i,a,e),i}(f,n,c,h,l);if(!y)return null;const T=(0,i.Ge)(F,c),v=function(t,n,e,r,o,a,i){if(null==t)return null;const l=i??new Float32Array(t.length);return(0,A.X4)(t,n,e,r,o,l)?((0,m.b)(l,l,a),l):((0,A.CN)(M(),e,o),null)}(p,f,n,h,l,T,p!==t.normal?p:void 0);if(!v&&p)return null;const B=function(t,n,e,r,o,a,i){if(null==t)return null;const l=i??new Float32Array(t.length);return(0,A.xA)(t,n,e,r,o,l)?((0,m.b)(l,l,a,4),l):((0,A.CN)(M(),e,o),null)}(d,f,n,h,l,T,d!==t.tangent?d:void 0);return!B&&d?null:{position:y,normal:v,tangent:B}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,a){const i=S(e,a,O.SOURCE_AND_TARGET),l=r||!R(i)?(0,u.C)(C,n?.localMatrix??s.zK):null;l&&B(l,e,a,O.SOURCE_AND_TARGET);const{position:f,normal:p,tangent:g}=l?w(t,l):t,d=a?.allowBufferReuse,h=d?f:new Float64Array(f.length);let y=f;if(r&&(y=(0,m.a)(h,y,r)),o){const t=(0,c.v)(N,o);y=(0,m.a)(h,y,t)}return{position:y!==t.position||d?y:y.slice(),normal:p!==t.normal||d?p:p?.slice(),tangent:g!==t.tangent||d?g:g?.slice()}}(t,t.vertexSpace,n.origin,e)}}function b(t,n){return n?.useEllipsoid&&(0,y.B3)(t)?p.Y0:(0,p.lO)(t)}function w(t,n){const e=new Float64Array(t.position.length);(0,m.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,A.qs)(t.normal,r,n),o&&t.tangent&&(0,A.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function B(t,n,e,r){const o=S(n,e,r);R(o)||(0,u.hs)(t,t,[o,o,o])}function S(t,n,e){const r=!!(e&O.SOURCE),o=!!(e&O.TARGET),a=n?.sourceUnit,i=n?.targetUnit;if(!a&&!i)return 1;let l=_(a,t);r||!a||R(l)||(M().warn("source unit conversion not supported"),l=1);let u=1/_(i,t);return o||!i||R(u)||(M().warn("target unit conversion not supported"),u=1),l*u}function R(t){return(0,o.Io)(t,1)}function _(t,n){if(null==t)return 1;const e=(0,a.KX)(n);return 1/(0,a.oU)(e,"meters",t)}const C=(0,s.vt)(),E=(0,s.vt)(),F=(0,l.vt)(),N=(0,f.vt)(),x=(0,s.vt)();var O,P;(P=O||(O={}))[P.NONE=0]="NONE",P[P.SOURCE=1]="SOURCE",P[P.TARGET=2]="TARGET",P[P.SOURCE_AND_TARGET=3]="SOURCE_AND_TARGET"}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8096],{8096:(e,t,s)=>{s.r(t),s.d(t,{toBinaryGLTF:()=>Q});var n,i=s(74887);!function(e){e[e.JSON=1313821514]="JSON",e[e.BIN=5130562]="BIN"}(n||(n={}));class r{constructor(e,t){if(!e)throw new Error("GLB requires a JSON gltf chunk");this._length=r.HEADER_SIZE,this._length+=r.CHUNK_HEADER_SIZE;const s=function(e){return(new TextEncoder).encode(e).buffer}(e);if(this._length+=_(s.byteLength,4),t&&(this._length+=r.CHUNK_HEADER_SIZE,this._length+=t.byteLength,t.byteLength%4))throw new Error("Expected BIN chunk length to be divisible by 4 at this point");this.buffer=new ArrayBuffer(this._length),this._outView=new DataView(this.buffer),this._writeHeader();const i=this._writeChunk(s,12,n.JSON,32);t&&this._writeChunk(t,i,n.BIN)}_writeHeader(){this._outView.setUint32(0,r.MAGIC,!0),this._outView.setUint32(4,r.VERSION,!0),this._outView.setUint32(8,this._length,!0)}_writeChunk(e,t,s,n=0){const i=_(e.byteLength,4);for(this._outView.setUint32(t,i,!0),this._outView.setUint32(t+=4,s,!0),function(e,t,s,n,i){new Uint8Array(e,s,i).set(new Uint8Array(t,0,i),0)}(this._outView.buffer,e,t+=4,0,e.byteLength),t+=e.byteLength;t%4;)n&&this._outView.setUint8(t,n),t++;return t}}function _(e,t){return t*Math.ceil(e/t)}r.HEADER_SIZE=12,r.CHUNK_HEADER_SIZE=8,r.MAGIC=1179937895,r.VERSION=2;var E,a,o,T,A,R,c,N,u=s(40876),f=s(53966),h=s(91869),l=s(34727),O=s(67026),S=s(82534),C=s(38954),I=s(51850),d=s(80882),L=s(72258);(N=E||(E={}))[N.External=0]="External",N[N.DataURI=1]="DataURI",N[N.GLB=2]="GLB",function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(a||(a={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(o||(o={})),function(e){e.SCALAR="SCALAR",e.VEC2="VEC2",e.VEC3="VEC3",e.VEC4="VEC4",e.MAT2="MAT2",e.MAT3="MAT3",e.MAT4="MAT4"}(T||(T={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(A||(A={})),function(e){e.OPAQUE="OPAQUE",e.MASK="MASK",e.BLEND="BLEND"}(R||(R={})),function(e){e[e.NoColor=0]="NoColor",e[e.FaceColor=1]="FaceColor",e[e.VertexColor=2]="VertexColor"}(c||(c={}));var M=s(63907);class D{constructor(e,t,s,n,i){this._buffer=e,this._componentType=s,this._dataType=n,this._data=[],this._isFinalized=!1,this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,t.bufferViews||(t.bufferViews=[]),this.index=t.bufferViews.length,this._bufferView={buffer:e.index,byteLength:-1,target:i};const r=this._getElementSize();r>=4&&i!==o.ELEMENT_ARRAY_BUFFER&&(this._bufferView.byteStride=r),t.bufferViews.push(this._bufferView),this._numComponentsForDataType=this._calculateNumComponentsForDataType()}push(e){const t=this._data.length;if(this._data.push(e),this._accessorIndex>=0){const s=t%this._numComponentsForDataType,n=this._accessorMin[s];this._accessorMin[s]="number"!=typeof n?e:Math.min(n,e);const i=this._accessorMax[s];this._accessorMax[s]="number"!=typeof i?e:Math.max(i,e)}}get dataSize(){return this._data.length*this._sizeComponentType()}get byteSize(){return function(e){return 4*Math.ceil(e/4)}(this.dataSize)}getByteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}get byteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}_createTypedArray(e,t){switch(this._componentType){case M.pe.BYTE:return new Int8Array(e,t);case M.pe.FLOAT:return new Float32Array(e,t);case M.pe.SHORT:return new Int16Array(e,t);case M.pe.UNSIGNED_BYTE:return new Uint8Array(e,t);case M.pe.UNSIGNED_INT:return new Uint32Array(e,t);case M.pe.UNSIGNED_SHORT:return new Uint16Array(e,t)}}writeOutToBuffer(e,t){this._createTypedArray(e,t).set(this._data)}writeAsync(e){if(this._asyncWritePromise)throw new Error("Can't write multiple bufferView values asynchronously");return this._asyncWritePromise=e.then((e=>{const t=new Uint8Array(e);for(let e=0;e<t.length;++e)this._data.push(t[e]);delete this._asyncWritePromise})),this._asyncWritePromise}startAccessor(e){if(this._accessorIndex>=0)throw new Error("Accessor was started without ending the previous one");this._accessorIndex=this._data.length,this._accessorAttribute=e;const t=this._numComponentsForDataType;this._accessorMin=new Array(t),this._accessorMax=new Array(t)}endAccessor(){if(this._accessorIndex<0)throw new Error("An accessor was not started, but was attempted to be ended");const e=this._getElementSize(),t=this._numComponentsForDataType,s=(this._data.length-this._accessorIndex)/t;if(s%1)throw new Error("An accessor was ended with missing component values");for(let e=0;e<this._accessorMin.length;++e)"number"!=typeof this._accessorMin[e]&&(this._accessorMin[e]=0),"number"!=typeof this._accessorMax[e]&&(this._accessorMax[e]=0);const n={byteOffset:e*(this._accessorIndex/t),componentType:this._componentType,count:s,type:this._dataType,min:this._accessorMin,max:this._accessorMax,name:this._accessorAttribute};switch(this._accessorAttribute){case"TEXCOORD_0":case"TEXCOORD_1":case"COLOR_0":case"WEIGHTS_0":switch(this._componentType){case M.pe.UNSIGNED_BYTE:case M.pe.UNSIGNED_SHORT:n.normalized=!0}}return this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,n}get finalized(){return this._finalizedPromise?this._finalizedPromise:this._isFinalized?this._finalizedPromise=Promise.resolve():this._finalizedPromise=new Promise((e=>this._finalizedPromiseResolve=e))}async finalize(){const e=this._bufferView,t=this._buffer.getViewFinalizePromises(this);this._asyncWritePromise&&t.push(this._asyncWritePromise),await Promise.allSettled(t),this._isFinalized=!0,e.byteOffset=this.getByteOffset(),e.byteLength=this.dataSize,this._finalizedPromiseResolve&&this._finalizedPromiseResolve()}_getElementSize(){return this._sizeComponentType()*this._numComponentsForDataType}_sizeComponentType(){switch(this._componentType){case M.pe.BYTE:case M.pe.UNSIGNED_BYTE:return 1;case M.pe.SHORT:case M.pe.UNSIGNED_SHORT:return 2;case M.pe.UNSIGNED_INT:case M.pe.FLOAT:return 4}}_calculateNumComponentsForDataType(){switch(this._dataType){case T.SCALAR:return 1;case T.VEC2:return 2;case T.VEC3:return 3;case T.VEC4:case T.MAT2:return 4;case T.MAT3:return 9;case T.MAT4:return 16}}}class p{constructor(e){this._gltf=e,this._bufferViews=[],this._isFinalized=!1,e.buffers||(e.buffers=[]),this.index=e.buffers.length;const t={byteLength:-1};e.buffers.push(t),this._buffer=t}addBufferView(e,t,s){if(this._finalizePromise)throw new Error("Cannot add buffer view after fiinalizing buffer");const n=new D(this,this._gltf,e,t,s);return this._bufferViews.push(n),n}getByteOffset(e){let t=0;for(const s of this._bufferViews){if(s===e)return t;t+=s.byteSize}throw new Error("Given bufferView was not present in this buffer")}getViewFinalizePromises(e){const t=[];for(const s of this._bufferViews){if(e&&s===e)return t;t.push(s.finalized)}return t}getArrayBuffer(){if(!this._isFinalized)throw new Error("Cannot get ArrayBuffer from Buffer before it is finalized");const e=this._getTotalSize(),t=new ArrayBuffer(e);let s=0;for(const e of this._bufferViews)e.writeOutToBuffer(t,s),s+=e.byteSize;return t}finalize(){if(this._finalizePromise)throw new Error(`Buffer ${this.index} was already finalized`);return this._finalizePromise=Promise.allSettled(this.getViewFinalizePromises()).then((()=>{this._isFinalized=!0;const e=this.getArrayBuffer();this._buffer.byteLength=e.byteLength,this._buffer.uri=e})),this._gltf.extras.promises.push(this._finalizePromise),this._finalizePromise}_getTotalSize(){let e=0;for(const t of this._bufferViews)e+=t.byteSize;return e}}function U(e,t){if(e.components)for(const s of e.components)s.faces&&"smooth"===s.shading&&m(s,t)}function m(e,t){null==t.normal&&(t.normal=new Float32Array(t.position.length));const s=e.faces,{position:n,normal:i}=t,r=s.length/3;for(let e=0;e<r;++e){const t=3*s[3*e],r=3*s[3*e+1],_=3*s[3*e+2],E=(0,C.i)(G,n[t],n[t+1],n[t+2]),a=(0,C.i)(P,n[r],n[r+1],n[r+2]),o=(0,C.i)(B,n[_],n[_+1],n[_+2]),T=(0,C.d)(a,a,E),A=(0,C.d)(o,o,E),R=(0,C.e)(T,T,A);i[t]+=R[0],i[t+1]+=R[1],i[t+2]+=R[2],i[r]+=R[0],i[r+1]+=R[1],i[r+2]+=R[2],i[_]+=R[0],i[_+1]+=R[1],i[_+2]+=R[2]}for(let e=0;e<i.length;e+=3)(0,C.i)(g,i[e],i[e+1],i[e+2]),(0,C.n)(g,g),i[e]=g[0],i[e+1]=g[1],i[e+2]=g[2]}const G=(0,I.vt)(),P=(0,I.vt)(),B=(0,I.vt)(),g=(0,I.vt)();s(44208);var F=s(49186),w=s(84952);async function b(e,t){const s=H(e);if(null==s)throw new F.A("imageToArrayBuffer","Unsupported image type");const n=function(e){if(!(e instanceof HTMLImageElement))return"image/png";const t=e.src;if((0,w.DB)(t)){const e=(0,w.r$)(t);return"image/jpeg"===e?.mediaType?e.mediaType:"image/png"}return/\.png$/i.test(t)?"image/png":/\.(jpg|jpeg)$/i.test(t)?"image/jpeg":"image/png"}(e),r=await new Promise((e=>s.toBlob(e,n)));if((0,i.Te)(t),!r)throw new F.A("imageToArrayBuffer","Failed to encode image");const _=await r.arrayBuffer();return(0,i.Te)(t),{data:_,type:n}}function H(e){if(e instanceof HTMLCanvasElement)return e;if(e instanceof HTMLVideoElement)return null;const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");return e instanceof HTMLImageElement?s.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&s.putImageData(e,0,0),t}var x=s(51530);const y=()=>f.A.getLogger("esri.geometry.support.meshUtils.exporters.gltf.gltf");class V{constructor(e,t){this.options=t,this._materialMap=new Array,this._imageMap=new Map,this._textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{output:t.output,binChunkBuffer:null,promises:[]}},this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=t.output.buffer===E.GLB||t.output.image===a.GLB;s&&(t.binChunkBuffer=new p(this.gltf)),e.forEachScene((e=>{this._addScene(e)})),s&&t.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode((e=>{t.nodes||(t.nodes=[]),t.nodes.push(...this._addNodes(e))})),this.gltf.scenes.push(t)}_addNodes(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;(0,C.p)(s,I.uY)||(t.translation=(0,I.o8)(s));const n=e.rotation;(0,O.t2)(n,S.zK)||(t.rotation=(0,S.o8)(n));const i=e.scale;(0,C.p)(i,I.Un)||(t.scale=(0,I.o8)(i));const r=this.gltf.nodes.length;if(this.gltf.nodes.push(t),e.mesh&&e.mesh.vertexAttributes.position){const s=this._createMeshes(e.mesh),n=[r];if(1===s.length)this._addMesh(t,s[0]);else for(const e of s){const t={};this._addMesh(t,e),n.push(this.gltf.nodes.length),this.gltf.nodes.push(t)}return n}return e.forEachNode((e=>{t.children||(t.children=[]),t.children.push(...this._addNodes(e))})),[r]}_addMesh(e,t){this.gltf.meshes??=[];const s=this.gltf.meshes.length;this.gltf.meshes.push(t),e.mesh=s}_createMeshes(e){const t=this.gltf.extras,s=t.output.buffer===E.GLB;let n;n=s?t.binChunkBuffer:new p(this.gltf);const i=this.options.origin,r=e.vertexSpace.clone();r.origin=[i.x,i.y,i.z??0];const _=(0,L.UR)({vertexAttributes:e.vertexAttributes,vertexSpace:e.vertexSpace,transform:this.options?.ignoreLocalTransform?null:e.transform,spatialReference:e.spatialReference},r,{targetUnit:this.options.unitConversionDisabled?void 0:"meters"});if(!_)return[];U(e,_),Y(_);const{position:a,normal:A,tangent:R}=_,{uv:c,color:N}=e.vertexAttributes,u=n.addBufferView(M.pe.FLOAT,T.VEC3,o.ARRAY_BUFFER);let f,h,l,O;A&&(f=n.addBufferView(M.pe.FLOAT,T.VEC3,o.ARRAY_BUFFER)),c&&(h=n.addBufferView(M.pe.FLOAT,T.VEC2,o.ARRAY_BUFFER)),R&&(l=n.addBufferView(M.pe.FLOAT,T.VEC4,o.ARRAY_BUFFER)),N&&(O=n.addBufferView(M.pe.FLOAT,T.VEC4,o.ARRAY_BUFFER)),u.startAccessor("POSITION"),f&&f.startAccessor("NORMAL"),h&&h.startAccessor("TEXCOORD_0"),l&&l.startAccessor("TANGENT"),O&&O.startAccessor("COLOR_0");const S=_.position.length/3;for(let e=0;e<S;++e)u.push(a[3*e]),u.push(a[3*e+1]),u.push(a[3*e+2]),f&&null!=A&&(f.push(A[3*e]),f.push(A[3*e+1]),f.push(A[3*e+2])),h&&null!=c&&(h.push(c[2*e]),h.push(c[2*e+1])),l&&null!=R&&(l.push(R[4*e]),l.push(R[4*e+1]),l.push(R[4*e+2]),l.push(R[4*e+3])),O&&null!=N&&(O.push(z(N[4*e]/255)),O.push(z(N[4*e+1]/255)),O.push(z(N[4*e+2]/255)),O.push(N[4*e+3]/255));const C=u.endAccessor(),I=this._addAccessor(u.index,C);let d,D,m,G,P;if(f){const e=f.endAccessor();d=this._addAccessor(f.index,e)}if(h){const e=h.endAccessor();D=this._addAccessor(h.index,e)}if(l){const e=l.endAccessor();m=this._addAccessor(l.index,e)}if(O){const e=O.endAccessor();G=this._addAccessor(O.index,e)}const B=[];return e.components&&e.components.length>0&&e.components[0].faces?(P=n.addBufferView(M.pe.UNSIGNED_INT,T.SCALAR,o.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(P,e.components,B,I,d,D,m,G)):this._addMeshVertexNonIndexed(e.components,B,I,d,D,m,G),u.finalize(),f&&f.finalize(),h&&h.finalize(),l&&l.finalize(),P&&P.finalize(),O&&O.finalize(),s||n.finalize(),B}_addMaterial(e){if(null===e)return;const t=this._materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode=R.MASK;break;case"auto":case"blend":s.alphaMode=R.BLEND}s.alphaCutoff=e.alphaCutoff,e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const n=e=>{const t=e.toRgba();return t[0]=z(t[0]/255),t[1]=z(t[1]/255),t[2]=z(t[2]/255),t};if(null!=e.color&&(s.pbrMetallicRoughness.baseColorFactor=n(e.color)),null!=e.colorTexture&&(s.pbrMetallicRoughness.baseColorTexture=this._createTextureInfo(e.colorTexture,e.colorTextureTransform)),null!=e.normalTexture&&(s.normalTexture=this._createTextureInfo(e.normalTexture,e.normalTextureTransform)),e instanceof d.A){if(null!=e.emissiveTexture&&(s.emissiveTexture=this._createTextureInfo(e.emissiveTexture,e.emissiveTextureTransform)),null!=e.emissiveColor){const t=n(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}null!=e.occlusionTexture&&(s.occlusionTexture=this._createTextureInfo(e.occlusionTexture,e.occlusionTextureTransform)),null!=e.metallicRoughnessTexture&&(s.pbrMetallicRoughness.metallicRoughnessTexture=this._createTextureInfo(e.metallicRoughnessTexture,e.metallicRoughnessTextureTransform)),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1,y().warnOnce("Meshes exported to GLTF without MeshMaterialMetallicRoughness material will appear different when imported back.");const i=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),i}_createTextureInfo(e,t){const s={index:this._addTexture(e)};return t?(s.extensions||(s.extensions={}),s.extensions.KHR_texture_transform={scale:t.scale,offset:t.offset,rotation:(0,l.kU)(t.rotation)},s):s}_addTexture(e){const t=this.gltf.textures??[];return this.gltf.textures=t,(0,h.tE)(this._textureMap,e,(()=>{const s={sampler:this._addSampler(e),source:this._addImage(e)},n=t.length;return t.push(s),n}))}_addImage(e){const t=this._imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{const t=e.data;s.extras=t;for(let e=0;e<this.gltf.images.length;++e)if(t===this.gltf.images[e].extras)return e;const n=this.gltf.extras;switch(n.output.image){case a.GLB:{const e=n.binChunkBuffer.addBufferView(M.pe.UNSIGNED_BYTE,T.SCALAR);if((0,x.x3)(t))null!=t.data&&e.writeOutToBuffer(t.data,0);else{const i=b(t,this.options.signal).then((({data:e,type:t})=>(s.mimeType=t,e)));n.promises.push(e.writeAsync(i).then((()=>{e.finalize()})))}s.bufferView=e.index;break}case a.DataURI:if((0,x.x3)(t)){y().warnOnce("Image export for basis compressed textures not available.");break}s.uri=function(e){const t=H(e);return null!=t?t.toDataURL():""}(t);break;default:if((0,x.x3)(t)){y().warnOnce("Image export for basis compressed textures not available.");break}n.promises.push(b(t,this.options.signal).then((({data:e,type:t})=>{s.uri=e,s.mimeType=t})))}}const n=this.gltf.images.length;return this.gltf.images.push(s),this._imageMap.set(e,n),n}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=M.pF.REPEAT,s=M.pF.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=M.pF.CLAMP_TO_EDGE,s=M.pF.CLAMP_TO_EDGE;break;case"mirror":t=M.pF.MIRRORED_REPEAT,s=M.pF.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=M.pF.CLAMP_TO_EDGE;break;case"mirror":s=M.pF.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=M.pF.CLAMP_TO_EDGE;break;case"mirror":t=M.pF.MIRRORED_REPEAT}}const n={wrapS:t,wrapT:s};for(let e=0;e<this.gltf.samplers.length;++e)if(JSON.stringify(n)===JSON.stringify(this.gltf.samplers[e]))return e;const i=this.gltf.samplers.length;return this.gltf.samplers.push(n),i}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const n=this.gltf.accessors.length;return this.gltf.accessors.push(s),n}_addMeshVertexIndexed(e,t,s,n,i,r,_,E){const a=new Map;for(const o of t){e.startAccessor("INDICES");for(let t=0;t<o.faces.length;++t)e.push(o.faces[t]);const t=e.endAccessor(),T={attributes:{POSITION:n},indices:this._addAccessor(e.index,t),material:this._addMaterial(o.material)};i&&"flat"!==o.shading&&(T.attributes.NORMAL=i),r&&(T.attributes.TEXCOORD_0=r),_&&"flat"!==o.shading&&(T.attributes.TANGENT=_),E&&(T.attributes.COLOR_0=E);const A=a.get(o.name);if(A)A.primitives.push(T);else{const e={name:o.name,primitives:[T]};a.set(o.name,e),s.push(e)}}}_addMeshVertexNonIndexed(e,t,s,n,i,r,_){const E={primitives:[]};t.push(E);const a={attributes:{POSITION:s}};n&&(a.attributes.NORMAL=n),i&&(a.attributes.TEXCOORD_0=i),r&&(a.attributes.TANGENT=r),_&&(a.attributes.COLOR_0=_),e&&(a.material=this._addMaterial(e[0].material)),E.primitives.push(a)}}function Y({position:e,normal:t,tangent:s}){v(e,3),v(t,3),v(s,4)}function v(e,t){if(null!=e)for(let s=1,n=2;s<e.length;s+=t,n+=t){const t=e[s],i=e[n];e[s]=i,e[n]=-t}}function z(e){return e**u.Tf}var X=s(4576);class k{constructor(){this.copyright="",this.defaultScene=0,this.generator="",this._scenes=[]}addScene(e){if(this._scenes.includes(e))throw new Error("Scene already added");this._scenes.push(e)}removeScene(e){(0,X.TF)(this._scenes,e)}forEachScene(e){this._scenes.forEach(e)}}class W{constructor(e){this.mesh=e,this.name="",this.translation=(0,I.vt)(),this.rotation=(0,S.vt)(),this.scale=(0,I.o8)(I.Un),this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}set rotationAngles(e){(0,O.A6)(this.rotation,e[0],e[1],e[2])}}const K="model.gltf",j="model.glb";async function Z(e,t){const s=new V(e,t).gltf,n=s.extras.promises;let _=1,o=1,T=null;await Promise.allSettled(n),(0,i.Te)(t.signal);const A=t.jsonSpacing??4,R=new Map,c=JSON.stringify(s,((e,s)=>{if("extras"!==e){if(s instanceof ArrayBuffer){if(function(e){if(e.byteLength<8)return!1;const t=new Uint8Array(e);return 137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]&&13===t[4]&&10===t[5]&&26===t[6]&&10===t[7]}(s))switch(t.output?.image){case a.DataURI:case a.GLB:break;case a.External:default:{const e=`img${o}.png`;return o++,R.set(e,s),e}}switch(t.output?.buffer){case E.DataURI:return function(e){const t=[],s=new Uint8Array(e);for(let e=0;e<s.length;e++)t.push(String.fromCharCode(s[e]));return"data:application/octet-stream;base64,"+btoa(t.join(""))}(s);case E.GLB:if(T)throw new Error("Already encountered an ArrayBuffer, there should only be one in the GLB format.");return void(T=s);case E.External:default:{const e=`data${_}.bin`;return _++,R.set(e,s),e}}}return s}}),A);return t.output?.buffer===E.GLB||t.output?.image===a.GLB?R.set(j,new r(c,T).buffer):R.set(K,c),R}class J{constructor(){this.name="",this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}}async function Q(e,t){const s=new k,n=new J;return s.addScene(n),n.addNode(new W(e)),await async function(e,t){const s=(await Z(e,{output:{buffer:E.GLB,image:a.GLB},jsonSpacing:0,...t})).get(j);if(!(s&&s instanceof ArrayBuffer))throw new Error("failed to export to glb");return s}(s,{origin:e.origin,...t})}},51530:(e,t,s)=>{s.d(t,{KB:()=>E,Xi:()=>r,pn:()=>a,x3:()=>_});var n=s(44208),i=s(89192);class r{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding=i.JS.KTX2_ENCODING}}function _(e){return"encoded-mesh-texture"===e?.type}async function E(e){const t=new Blob([e]),s=await t.text();return JSON.parse(s)}async function a(e,t){if(t===i.JS.KTX2_ENCODING)return new r(e);const s=new Blob([e],{type:t}),_=URL.createObjectURL(s),E=new Image;if((0,n.A)("esri-iPhone"))return new Promise(((e,t)=>{const s=()=>{i(),e(E)},n=e=>{i(),t(e)},i=()=>{URL.revokeObjectURL(_),E.removeEventListener("load",s),E.removeEventListener("error",n)};E.addEventListener("load",s),E.addEventListener("error",n),E.src=_}));try{E.src=_,await E.decode()}catch(e){console.warn("Failed decoding HTMLImageElement")}return URL.revokeObjectURL(_),E}},89192:(e,t,s)=>{var n,i,r,_,E,a,o,T;s.d(t,{Am:()=>_,C7:()=>r,JS:()=>T,Mg:()=>a,dd:()=>E,it:()=>i,s2:()=>n,sf:()=>o}),function(e){e[e.None=0]="None",e[e.Front=1]="Front",e[e.Back=2]="Back",e[e.COUNT=3]="COUNT"}(n||(n={})),function(e){e[e.Less=0]="Less",e[e.Lequal=1]="Lequal",e[e.COUNT=2]="COUNT"}(i||(i={})),function(e){e[e.BACKGROUND=0]="BACKGROUND",e[e.UPDATE=1]="UPDATE"}(r||(r={})),function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(_||(_={})),function(e){e[e.IntegratedMeshMaskExcluded=1]="IntegratedMeshMaskExcluded",e[e.OutlineVisualElementMask=2]="OutlineVisualElementMask"}(E||(E={})),function(e){e[e.Highlight=0]="Highlight",e[e.MaskOccludee=1]="MaskOccludee"}(a||(a={})),function(e){e[e.Blend=0]="Blend",e[e.Opaque=1]="Opaque",e[e.Mask=2]="Mask",e[e.MaskBlend=3]="MaskBlend",e[e.COUNT=4]="COUNT"}(o||(o={})),function(e){e.DDS_ENCODING="image/vnd-ms.dds",e.KTX2_ENCODING="image/ktx2",e.BASIS_ENCODING="image/x.basis"}(T||(T={}))},63907:(e,t,s)=>{var n,i,r,_,E,a,o,T,A,R,c,N,u,f,h,l,O,S,C,I,d,L,M;s.d(t,{Ab:()=>f,Ac:()=>o,Ap:()=>u,CQ:()=>p,Cj:()=>c,Co:()=>C,H0:()=>h,Hr:()=>M,MT:()=>A,NV:()=>n,NZ:()=>E,Nm:()=>L,R:()=>I,Tb:()=>_,WR:()=>i,Y7:()=>a,_U:()=>S,dn:()=>r,eA:()=>R,ld:()=>l,nI:()=>D,pF:()=>N,pe:()=>T,vt:()=>d,yQ:()=>O}),function(e){e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e[e.COLOR=16384]="COLOR"}(n||(n={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(i||(i={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(r||(r={})),function(e){e[e.ADD=32774]="ADD",e[e.MIN=32775]="MIN",e[e.MAX=32776]="MAX",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(_||(_={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",e[e.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER"}(E||(E={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(a||(a={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(o||(o={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT",e[e.HALF_FLOAT=5131]="HALF_FLOAT"}(T||(T={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(A||(A={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(R||(R={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(c||(c={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(N||(N={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(u||(u={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(f||(f={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(h||(h={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(l||(l={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(O||(O={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(S||(S={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(C||(C={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(I||(I={})),function(e){e[e.Texture=0]="Texture",e[e.BufferObject=1]="BufferObject",e[e.VertexArrayObject=2]="VertexArrayObject",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.FramebufferObject=5]="FramebufferObject",e[e.Renderbuffer=6]="Renderbuffer",e[e.TransformFeedback=7]="TransformFeedback",e[e.Sync=8]="Sync",e[e.UNCOUNTED=9]="UNCOUNTED",e[e.LinesOfCode=9]="LinesOfCode",e[e.Uniform=10]="Uniform",e[e.COUNT=11]="COUNT"}(d||(d={})),function(e){e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(L||(L={})),function(e){e[e.NONE=0]="NONE",e[e.BACK=1029]="BACK"}(M||(M={}));const D=33306;var p,U,m,G,P,B,g;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(p||(p={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(U||(U={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(m||(m={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(G||(G={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(P||(P={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(B||(B={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(g||(g={}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2324],{11006:(t,n,e)=>{function r(t,n,e,r,i){o(t,n,e||0,r||t.length-1,i||a)}function o(t,n,e,r,a){for(;r>e;){if(r-e>600){var s=r-e+1,l=n-e+1,c=Math.log(s),u=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1);o(t,n,Math.max(e,Math.floor(n-l*u/s+f)),Math.min(r,Math.floor(n+(s-l)*u/s+f)),a)}var h=t[n],d=e,m=r;for(i(t,e,n),a(t[r],h)>0&&i(t,e,r);d<m;){for(i(t,d,m),d++,m--;a(t[d],h)<0;)d++;for(;a(t[m],h)>0;)m--}0===a(t[e],h)?i(t,e,m):i(t,++m,r),m<=n&&(e=m+1),n<=m&&(r=m-1)}}function i(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function a(t,n){return t<n?-1:t>n?1:0}e.d(n,{q:()=>r})},73354:(t,n,e)=>{e.d(n,{a:()=>f,b:()=>s,c:()=>a,d:()=>o,e:()=>h,f:()=>u,l:()=>c,n:()=>d,t:()=>i});var r=e(40876);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return t;const i=t.length/r,a=e[0],s=e[1],l=e[2],c=e[4],u=e[5],f=e[6],h=e[8],d=e[9],m=e[10],p=e[12],g=e[13],M=e[14];let y=0,x=0;for(let e=0;e<i;e++){const e=n[y],i=n[y+1],_=n[y+2];t[x]=a*e+c*i+h*_+p,t[x+1]=s*e+u*i+d*_+g,t[x+2]=l*e+f*i+m*_+M,y+=o,x+=r}return t}function a(t,n,e){s(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function s(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return;const i=t.length/r,a=e[0],s=e[1],l=e[2],c=e[3],u=e[4],f=e[5],h=e[6],d=e[7],m=e[8];let p=0,g=0;for(let e=0;e<i;e++){const e=n[p],i=n[p+1],M=n[p+2];t[g]=a*e+c*i+h*M,t[g+1]=s*e+u*i+d*M,t[g+2]=l*e+f*i+m*M,p+=o,g+=r}}function l(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let a=0,s=0;for(let l=0;l<i;l++)t[s]=e*n[a],t[s+1]=e*n[a+1],t[s+2]=e*n[a+2],a+=o,s+=r;return t}function c(t,n,e,r){u(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function u(t,n,e,o,i=3,a=i){const s=Math.min(t.length/i,n.length/a);let l=0,c=0;const u=1/r.Tf;for(let r=0;r<s;r++)t[c]=o*(e*n[l])**u,t[c+1]=o*(e*n[l+1])**u,t[c+2]=o*(e*n[l+2])**u,l+=a,c+=i}function f(t,n,e,r=3,o=r){const i=t.length/r;if(i!==Math.ceil(n.length/o))return t;let a=0,s=0;for(let l=0;l<i;l++)t[s]=n[a]+e[0],t[s+1]=n[a+1]+e[1],t[s+2]=n[a+2]+e[2],a+=o,s+=r;return t}function h(t,n){d(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function d(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,a=0;for(let s=0;s<o;s++){const o=n[i],s=n[i+1],l=n[i+2],c=o*o+s*s+l*l;if(c>0){const n=1/Math.sqrt(c);t[a]=n*o,t[a+1]=n*s,t[a+2]=n*l}i+=r,a+=e}}e(44208),e(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:c,normalize:d,normalizeView:h,scale:l,scaleView:function(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,a=n.typedBuffer,s=n.typedBufferStride;let l=0,c=0;for(let t=0;t<r;t++)o[c]=a[l]>>e,o[c+1]=a[l+1]>>e,o[c+2]=a[l+2]>>e,l+=s,c+=i},transformMat3:s,transformMat3View:a,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},38954:(t,n,e)=>{e.d(n,{A:()=>m,B:()=>d,C:()=>u,D:()=>p,E:()=>f,G:()=>P,H:()=>q,a:()=>X,b:()=>M,c:()=>a,d:()=>c,e:()=>B,f:()=>v,g:()=>l,h:()=>g,i:()=>s,j:()=>y,k:()=>_,l:()=>i,m:()=>S,n:()=>A,o:()=>F,p:()=>C,q:()=>E,s:()=>x,t:()=>T,u:()=>w,v:()=>b,w:()=>R,x:()=>h,y:()=>z,z:()=>G});var r=e(51850),o=e(34304);function i(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function s(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function l(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function c(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function u(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function f(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function h(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function p(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function g(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function M(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function y(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function x(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function _(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function b(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function w(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function A(t,n){const e=n[0],r=n[1],o=n[2];let i=e*e+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function v(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function B(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],l=e[2];return t[0]=o*l-i*s,t[1]=i*a-r*l,t[2]=r*s-o*a,t}function S(t,n,e,r){const o=n[0],i=n[1],a=n[2];return t[0]=o+r*(e[0]-o),t[1]=i+r*(e[1]-i),t[2]=a+r*(e[2]-a),t}function T(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*i+e[12],t[1]=e[1]*r+e[5]*o+e[9]*i+e[13],t[2]=e[2]*r+e[6]*o+e[10]*i+e[14],t}function E(t,n,e){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0]+o*e[3]+i*e[6],t[1]=r*e[1]+o*e[4]+i*e[7],t[2]=r*e[2]+o*e[5]+i*e[8],t}function R(t,n,e){const r=e[0],o=e[1],i=e[2],a=e[3],s=n[0],l=n[1],c=n[2],u=o*c-i*l,f=i*s-r*c,h=r*l-o*s,d=o*h-i*f,m=i*u-r*h,p=r*f-o*u,g=2*a;return t[0]=s+u*g+2*d,t[1]=l+f*g+2*m,t[2]=c+h*g+2*p,t}const O=(0,r.vt)(),N=(0,r.vt)();function C(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function F(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=e[2]-n[2];let a=r*r+o*o+i*i;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=o*a,t[2]=i*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const X=c,Y=u,k=f,P=y,z=x,q=i,G=_;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:l,angle:function(t,n){A(O,t),A(N,n);const e=v(O,N);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,o,i){const a=1-i,s=a*a,l=i*i,c=s*a,u=3*i*s,f=3*l*a,h=l*i;return t[0]=n[0]*c+e[0]*u+r[0]*f+o[0]*h,t[1]=n[1]*c+e[1]*u+r[1]*f+o[1]*h,t[2]=n[2]*c+e[2]*u+r[2]*f+o[2]*h,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:a,cross:B,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=e[0],s=e[1],l=e[2],c=o*l-i*s,u=i*a-r*l,f=r*s-o*a,h=Math.sqrt(c*c+u*u+f*f);return t[0]=c/h,t[1]=u/h,t[2]=f/h,t},direction:F,dist:P,distance:y,div:k,divide:f,dot:v,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],i=t[2],a=n[0],s=n[1],l=n[2],c=(0,o.FD)();return Math.abs(e-a)<=c*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(r-s)<=c*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-l)<=c*Math.max(1,Math.abs(i),Math.abs(l))},exactEquals:C,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,o,i){const a=i*i,s=a*(2*i-3)+1,l=a*(i-2)+i,c=a*(i-1),u=a*(3-2*i);return t[0]=n[0]*s+e[0]*l+r[0]*c+o[0]*u,t[1]=n[1]*s+e[1]*l+r[1]*c+o[1]*u,t[2]=n[2]*s+e[2]*l+r[2]*c+o[2]*u,t},inverse:w,len:q,length:i,lerp:S,max:p,min:m,mul:Y,multiply:u,negate:b,normalize:A,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,i=2*e()-1,a=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=i*n,t},rotateX:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],i=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:g,scaleAndAdd:M,set:s,sign:d,sqrDist:z,sqrLen:G,squaredDistance:x,squaredLength:_,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:X,subtract:c,transformMat3:E,transformMat4:T,transformQuat:R},Symbol.toStringTag,{value:"Module"}))},65686:(t,n,e)=>{e.d(n,{a:()=>i,b:()=>u,l:()=>c,n:()=>s,t:()=>a});var r=e(40876),o=(e(44208),e(53966));function i(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function a(t,n,e,r=4,o=r){if(t.length/r!=n.length/o)return;const i=t.length/r,a=e[0],s=e[1],l=e[2],c=e[3],u=e[4],f=e[5],h=e[6],d=e[7],m=e[8];let p=0,g=0;for(let e=0;e<i;e++){const e=n[p],i=n[p+1],M=n[p+2],y=n[p+3];t[g]=a*e+c*i+h*M,t[g+1]=s*e+u*i+d*M,t[g+2]=l*e+f*i+m*M,t[g+3]=y,p+=o,g+=r}}function s(t,n){const e=Math.min(t.count,n.count),r=t.typedBuffer,o=t.typedBufferStride,i=n.typedBuffer,a=n.typedBufferStride;for(let t=0;t<e;t++){const n=t*o,e=t*a,s=i[e],l=i[e+1],c=i[e+2],u=s*s+l*l+c*c;if(u>0){const t=1/Math.sqrt(u);r[n]=t*s,r[n+1]=t*l,r[n+2]=t*c}}}function l(t,n,e,r=4){const o=Math.min(t.length/r,n.count),i=n.typedBuffer,a=n.typedBufferStride;let s=0,l=0;for(let n=0;n<o;n++)t[l]=e*i[s],t[l+1]=e*i[s+1],t[l+2]=e*i[s+2],t[l+3]=e*i[s+3],s+=a,l+=r}function c(t,n,e,r){u(t.typedBuffer,n,e,r,t.typedBufferStride)}function u(t,n,e,o,i=4){const a=Math.min(t.length/i,n.count),s=n.typedBuffer,l=n.typedBufferStride;let c=0,u=0;const f=1/r.Tf;for(let n=0;n<a;n++)t[u]=o*(e*s[c])**f,t[u+1]=o*(e*s[c+1])**f,t[u+2]=o*(e*s[c+2])**f,t[u+3]=o*e*s[c+3],c+=l,u+=i}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:c,normalize:s,scale:l,scaleView:function(t,n,e){l(t.typedBuffer,n,e,t.typedBufferStride)},transformMat3:a,transformMat3View:i,transformMat4:function(t,n,e,r=4,i=r){if(t.length/r!=n.length/i)return void o.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const a=t.length/r,s=e[0],l=e[1],c=e[2],u=e[3],f=e[4],h=e[5],d=e[6],m=e[7],p=e[8],g=e[9],M=e[10],y=e[11],x=e[12],_=e[13],b=e[14],w=e[15];let A=0,v=0;for(let e=0;e<a;e++){const e=n[A],o=n[A+1],a=n[A+2],B=n[A+3];t[v]=s*e+f*o+p*a+x*B,t[v+1]=l*e+h*o+g*a+_*B,t[v+2]=c*e+d*o+M*a+b*B,t[v+3]=u*e+m*o+y*a+w*B,A+=i,v+=r}},transformMat4View:function(t,n,e){if(t.count!==n.count)return;const r=t.count,o=e[0],i=e[1],a=e[2],s=e[3],l=e[4],c=e[5],u=e[6],f=e[7],h=e[8],d=e[9],m=e[10],p=e[11],g=e[12],M=e[13],y=e[14],x=e[15],_=t.typedBuffer,b=t.typedBufferStride,w=n.typedBuffer,A=n.typedBufferStride;for(let t=0;t<r;t++){const n=t*b,e=t*A,r=w[e],v=w[e+1],B=w[e+2],S=w[e+3];_[n]=o*r+l*v+h*B+g*S,_[n+1]=i*r+c*v+d*B+M*S,_[n+2]=a*r+u*v+m*B+y*S,_[n+3]=s*r+f*v+p*B+x*S}}},Symbol.toStringTag,{value:"Module"}))},40876:(t,n,e)=>{e.d(n,{TS:()=>i,Tf:()=>u,V6:()=>o,c4:()=>a,qh:()=>c,z$:()=>l});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(t){return!!r[t]||!!r[t.toLowerCase()]}function i(t){return r[t]??r[t.toLowerCase()]}function a(t){return[...i(t)]}function s(t,n,e){e<0&&++e,e>1&&--e;const r=6*e;return r<1?t+(n-t)*r:2*e<1?n:3*e<2?t+(n-t)*(2/3-e)*6:t}function l(t,n,e,r=1){const o=(t%360+360)%360/360,i=e<=.5?e*(n+1):e+n-e*n,a=2*e-i;return[Math.round(255*s(a,i,o+1/3)),Math.round(255*s(a,i,o)),Math.round(255*s(a,i,o-1/3)),r]}function c(t){const n=t.length>5,e=n?8:4,r=(1<<e)-1,o=n?1:17,i=n?9===t.length:5===t.length;let a=Number("0x"+t.slice(1));if(isNaN(a))return null;const s=[0,0,0,1];let l;return i&&(l=a&r,a>>=e,s[3]=o*l/255),l=a&r,a>>=e,s[2]=o*l,l=a&r,a>>=e,s[1]=o*l,l=a&r,a>>=e,s[0]=o*l,s}const u=2.1},69540:(t,n,e)=>{e.d(n,{O:()=>u,P:()=>f});var r=e(90237),o=e(69622),i=(e(44208),e(4718)),a=(e(53966),e(97768)),s=e(35666),l=e(88620),c=e(40608);const u=t=>{let n=class extends t{clone(){const t=(0,l.oY)(this);(0,a.Lw)(t,"unable to clone instance of non-accessor class");const n=t.metadata,e=t.store,r={},o=new Map;for(const t in n){const a=n[t],l=e?.originOf(t),c=a.clonable;if(a.readOnly||!1===c||l!==s.Gr.USER&&l!==s.Gr.DEFAULTS&&l!==s.Gr.WEB_MAP&&l!==s.Gr.WEB_SCENE)continue;const u=this[t];let f=null;f="function"==typeof c?c(u):"reference"===c?u:(0,i.TU)(u),null!=u&&null==f||(l===s.Gr.DEFAULTS?o.set(t,f):r[t]=f)}const c=new(0,Object.getPrototypeOf(this).constructor)(r);if(o.size){const t=(0,l.oY)(c)?.store;if(t)for(const[n,e]of o)t.set(n,e,s.Gr.DEFAULTS)}return c}};return n=(0,r._)([(0,c.$)("esri.core.Clonable")],n),n};let f=class extends(u(o.A)){};f=(0,r._)([(0,c.$)("esri.core.Clonable")],f)},95488:(t,n,e)=>{e.d(n,{I:()=>o});var r=e(11406);class o extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const n=t.slice();for(const t of n)t.onInvalidated(),t.onCommitted()}}}},51447:(t,n,e)=>{e.d(n,{Lx:()=>s,eF:()=>l,eO:()=>a,io:()=>c});var r=e(44208);const o=new WeakMap;function i(t,n,e=!1){const r=`🛑 DEPRECATED - ${n}`;if(!e)return void t.warn(r);let i=o.get(t);i||(i=new Set,o.set(t,i)),i.has(n)||(i.add(n),t.warn(r))}function a(t,n,e={}){if((0,r.A)("esri-deprecation-warnings")){const{moduleName:r}=e;c(t,"Function: "+(r?r+"::":"")+n+"()",e)}}function s(t,n,e={}){if((0,r.A)("esri-deprecation-warnings")){const{moduleName:r}=e;c(t,"Property: "+(r?r+"::":"")+n,e)}}function l(t,n,e={}){(0,r.A)("esri-deprecation-warnings")&&c(t,`Multiple argument constructor: ${n}`,{warnOnce:!0,replacement:`new ${n}({ <your properties here> })`,...e})}function c(t,n,e={}){if((0,r.A)("esri-deprecation-warnings")){const{replacement:r,version:o,see:a,warnOnce:s}=e;let l=n;r&&(l+=`\n\t🛠️ Replacement: ${r}`),o&&(l+=`\n\t⚙️ Version: ${o}`),a&&(l+=`\n\t🔗 See ${a} for more details.`),i(t,l,s)}}},29242:(t,n,e)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,i,a,s,l){return[t,n,e,r,o,i,a,s,l]}e.d(n,{fA:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:function(t,n){return new Float64Array(t,n,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},9093:(t,n,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>o,vt:()=>r,zK:()=>i});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,createView:function(t,n){return new Float64Array(t,n,16)},fromValues:function(t,n,e,r,o,i,a,s,l,c,u,f,h,d,m,p){return[t,n,e,r,o,i,a,s,l,c,u,f,h,d,m,p]}},Symbol.toStringTag,{value:"Module"}))},77690:(t,n,e)=>{e.d(n,{B8:()=>s,Ge:()=>h,I0:()=>f,KC:()=>l,hZ:()=>i,hs:()=>u,lw:()=>c,mg:()=>a,z0:()=>o});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function i(t,n,e,r,o,i,a,s,l,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=s,t[7]=l,t[8]=c,t}function a(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function s(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],s=n[5],l=n[6],c=n[7],u=n[8],f=u*a-s*c,h=-u*i+s*l,d=c*i-a*l;let m=e*f+r*h+o*d;return m?(m=1/m,t[0]=f*m,t[1]=(-u*r+o*c)*m,t[2]=(s*r-o*a)*m,t[3]=h*m,t[4]=(u*e-o*l)*m,t[5]=(-s*e+o*i)*m,t[6]=d*m,t[7]=(-c*e+r*l)*m,t[8]=(a*e-r*i)*m,t):null}function l(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],s=n[5],l=n[6],c=n[7],u=n[8];return t[0]=a*u-s*c,t[1]=o*c-r*u,t[2]=r*s-o*a,t[3]=s*l-i*u,t[4]=e*u-o*l,t[5]=o*i-e*s,t[6]=i*c-a*l,t[7]=r*l-e*c,t[8]=e*a-r*i,t}function c(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],l=n[5],c=n[6],u=n[7],f=n[8],h=e[0],d=e[1],m=e[2],p=e[3],g=e[4],M=e[5],y=e[6],x=e[7],_=e[8];return t[0]=h*r+d*a+m*c,t[1]=h*o+d*s+m*u,t[2]=h*i+d*l+m*f,t[3]=p*r+g*a+M*c,t[4]=p*o+g*s+M*u,t[5]=p*i+g*l+M*f,t[6]=y*r+x*a+_*c,t[7]=y*o+x*s+_*u,t[8]=y*i+x*l+_*f,t}function u(t,n,e){const r=e[0],o=e[1],i=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=i*n[6],t[7]=i*n[7],t[8]=i*n[8],t}function f(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=e+e,s=r+r,l=o+o,c=e*a,u=r*a,f=r*s,h=o*a,d=o*s,m=o*l,p=i*a,g=i*s,M=i*l;return t[0]=1-f-m,t[3]=u-M,t[6]=h+g,t[1]=u+M,t[4]=1-c-m,t[7]=d-p,t[2]=h-g,t[5]=d+p,t[8]=1-c-f,t}function h(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],s=n[5],l=n[6],c=n[7],u=n[8],f=n[9],h=n[10],d=n[11],m=n[12],p=n[13],g=n[14],M=n[15],y=e*s-r*a,x=e*l-o*a,_=e*c-i*a,b=r*l-o*s,w=r*c-i*s,A=o*c-i*l,v=u*p-f*m,B=u*g-h*m,S=u*M-d*m,T=f*g-h*p,E=f*M-d*p,R=h*M-d*g;let O=y*R-x*E+_*T+b*S-w*B+A*v;return O?(O=1/O,t[0]=(s*R-l*E+c*T)*O,t[1]=(l*S-a*R-c*B)*O,t[2]=(a*E-s*S+c*v)*O,t[3]=(o*E-r*R-i*T)*O,t[4]=(e*R-o*S+i*B)*O,t[5]=(r*S-e*E-i*v)*O,t[6]=(p*A-g*w+M*b)*O,t[7]=(g*_-m*A-M*x)*O,t[8]=(m*w-p*_+M*y)*O,t):null}function d(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const m=c,p=d;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:l,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],a=t[5],s=t[6],l=t[7],c=t[8];return n*(c*i-a*l)+e*(-c*o+a*s)+r*(l*o-i*s)},equals:function(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],f=t[8],h=n[0],d=n[1],m=n[2],p=n[3],g=n[4],M=n[5],y=n[6],x=n[7],_=n[8],b=(0,r.FD)();return Math.abs(e-h)<=b*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-d)<=b*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(i-m)<=b*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(a-p)<=b*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(s-g)<=b*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(l-M)<=b*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(c-y)<=b*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(u-x)<=b*Math.max(1,Math.abs(u),Math.abs(x))&&Math.abs(f-_)<=b*Math.max(1,Math.abs(f),Math.abs(_))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],i=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],f=t[8];return Math.abs(1-(e*e+a*a+c*c))<=n&&Math.abs(1-(o*o+s*s+u*u))<=n&&Math.abs(1-(i*i+l*l+f*f))<=n},mul:m,multiply:c,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:h,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[4],a=n[5],s=n[6],l=n[8],c=n[9],u=n[10],f=u*a-s*c,h=-u*i+s*l,d=c*i-a*l,m=e*f+r*h+o*d;if(!m)return null;const p=1/m;return t[0]=f*p,t[1]=(-u*r+o*c)*p,t[2]=(s*r-o*a)*p,t[3]=h*p,t[4]=(u*e-o*l)*p,t[5]=(-s*e+o*i)*p,t[6]=d*p,t[7]=(-c*e+r*l)*p,t[8]=(a*e-r*i)*p,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],l=n[5],c=n[6],u=n[7],f=n[8],h=Math.sin(e),d=Math.cos(e);return t[0]=d*r+h*a,t[1]=d*o+h*s,t[2]=d*i+h*l,t[3]=d*a-h*r,t[4]=d*s-h*o,t[5]=d*l-h*i,t[6]=c,t[7]=u,t[8]=f,t},scale:u,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:p,subtract:d,translate:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],l=n[5],c=n[6],u=n[7],f=n[8],h=e[0],d=e[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=a,t[4]=s,t[5]=l,t[6]=h*r+d*a+c,t[7]=h*o+d*s+u,t[8]=h*i+d*l+f,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},75503:(t,n,e)=>{e.d(n,{E:()=>B,w:()=>s});var r=e(4576),o=(e(44208),e(4718)),i=e(3694),a=e(11006);class s{constructor(t=9,n){this._compareMinX=h,this._compareMinY=d,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),n&&("function"==typeof n?this._toBBox=n:this._initFormat(n)),this.clear()}destroy(){this.clear(),b.prune(),w.prune(),A.prune(),v.prune()}all(t){l(this._data,t)}search(t,n){let e=this._data;const r=this._toBBox;if(x(t,e))for(b.clear();e;){for(let o=0,i=e.children.length;o<i;o++){const i=e.children[o],a=e.leaf?r(i):i;x(t,a)&&(e.leaf?n(i):y(t,a)?l(i,n):b.push(i))}e=b.pop()}}collides(t){let n=this._data;const e=this._toBBox;if(!x(t,n))return!1;for(b.clear();n;){for(let r=0,o=n.children.length;r<o;r++){const o=n.children[r],i=n.leaf?e(o):o;if(x(t,i)){if(n.leaf||y(t,i))return!0;b.push(o)}}n=b.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let n=0,e=t.length;n<e;n++)this.insert(t[n]);return this}let n=this._build(t.slice(),0,t.length-1,0);if(this._data.children.length)if(this._data.height===n.height)this._splitRoot(this._data,n);else{if(this._data.height<n.height){const t=this._data;this._data=n,n=t}this._insert(n,this._data.height-n.height-1,!0)}else this._data=n;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new T([]),this}remove(t){if(!t)return this;let n,e=this._data,o=null,i=0,a=!1;const s=this._toBBox(t);for(A.clear(),v.clear();e||A.length>0;){if(e||(e=A.pop(),o=A.data[A.length-1],i=v.pop()??0,a=!0),e.leaf&&(n=(0,r.qh)(e.children,t,e.children.length,e.indexHint),-1!==n))return e.children.splice(n,1),A.push(e),this._condense(A),this;a||e.leaf||!y(e,s)?o?(i++,e=o.children[i],a=!1):e=null:(A.push(e),v.push(i),i=0,o=e,e=e.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,n,e,r){const o=e-n+1;let i=this._maxEntries;if(o<=i){const r=new T(t.slice(n,e+1));return c(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const a=new E([]);a.height=r;const s=Math.ceil(o/i),l=s*Math.ceil(Math.sqrt(i));_(t,n,e,l,this._compareMinX);for(let o=n;o<=e;o+=l){const n=Math.min(o+l-1,e);_(t,o,n,s,this._compareMinY);for(let e=o;e<=n;e+=s){const o=Math.min(e+s-1,n);a.children.push(this._build(t,e,o,r-1))}}return c(a,this._toBBox),a}_insert(t,n,e){const r=this._toBBox,o=e?t:r(t);A.clear();const i=function(t,n,e,r){for(;r.push(n),!0!==n.leaf&&r.length-1!==e;){let e,r=1/0,o=1/0;for(let i=0,a=n.children.length;i<a;i++){const a=n.children[i],s=m(a),l=g(t,a)-s;l<o?(o=l,r=s<r?s:r,e=a):l===o&&s<r&&(r=s,e=a)}n=e||n.children[0]}return n}(o,this._data,n,A);for(i.children.push(t),f(i,o);n>=0&&A.data[n].children.length>this._maxEntries;)this._split(A,n),n--;!function(t,n,e){for(let r=e;r>=0;r--)f(n.data[r],t)}(o,A,n)}_split(t,n){const e=t.data[n],r=e.children.length,o=this._minEntries;this._chooseSplitAxis(e,o,r);const i=this._chooseSplitIndex(e,o,r);if(!i)return;const a=e.children.splice(i,e.children.length-i),s=e.leaf?new T(a):new E(a);s.height=e.height,c(e,this._toBBox),c(s,this._toBBox),n?t.data[n-1].children.push(s):this._splitRoot(e,s)}_splitRoot(t,n){this._data=new E([t,n]),this._data.height=t.height+1,c(this._data,this._toBBox)}_chooseSplitIndex(t,n,e){let r,o,i;r=o=1/0;for(let a=n;a<=e-n;a++){const n=u(t,0,a,this._toBBox),s=u(t,a,e,this._toBBox),l=M(n,s),c=m(n)+m(s);l<r?(r=l,i=a,o=c<o?c:o):l===r&&c<o&&(o=c,i=a)}return i}_chooseSplitAxis(t,n,e){const r=t.leaf?this._compareMinX:h,o=t.leaf?this._compareMinY:d;this._allDistMargin(t,n,e,r)<this._allDistMargin(t,n,e,o)&&t.children.sort(r)}_allDistMargin(t,n,e,r){t.children.sort(r);const o=this._toBBox,i=u(t,0,n,o),a=u(t,e-n,e,o);let s=p(i)+p(a);for(let r=n;r<e-n;r++){const n=t.children[r];f(i,t.leaf?o(n):n),s+=p(i)}for(let r=e-n-1;r>=n;r--){const n=t.children[r];f(a,t.leaf?o(n):n),s+=p(a)}return s}_condense(t){for(let n=t.length-1;n>=0;n--){const e=t.data[n];if(0===e.children.length)if(n>0){const o=t.data[n-1],i=o.children;i.splice((0,r.qh)(i,e,i.length,o.indexHint),1)}else this.clear();else c(e,this._toBBox)}}_initFormat(t){const n=["return a"," - b",";"];this._compareMinX=new Function("a","b",n.join(t[0])),this._compareMinY=new Function("a","b",n.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function l(t,n){let e=t;for(w.clear();e;){if(!0===e.leaf)for(const t of e.children)n((0,o.zI)(t));else w.pushArray(e.children);e=w.pop()??null}}function c(t,n){u(t,0,t.children.length,n,t)}function u(t,n,e,r,o){o||(o=new T([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,a=n;a<e;a++)i=t.children[a],f(o,t.leaf?r(i):i);return o}function f(t,n){t.minX=Math.min(t.minX,n.minX),t.minY=Math.min(t.minY,n.minY),t.maxX=Math.max(t.maxX,n.maxX),t.maxY=Math.max(t.maxY,n.maxY)}function h(t,n){return t.minX-n.minX}function d(t,n){return t.minY-n.minY}function m(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function p(t){return t.maxX-t.minX+(t.maxY-t.minY)}function g(t,n){return(Math.max(n.maxX,t.maxX)-Math.min(n.minX,t.minX))*(Math.max(n.maxY,t.maxY)-Math.min(n.minY,t.minY))}function M(t,n){const e=Math.max(t.minX,n.minX),r=Math.max(t.minY,n.minY),o=Math.min(t.maxX,n.maxX),i=Math.min(t.maxY,n.maxY);return Math.max(0,o-e)*Math.max(0,i-r)}function y(t,n){return t.minX<=n.minX&&t.minY<=n.minY&&n.maxX<=t.maxX&&n.maxY<=t.maxY}function x(t,n){return n.minX<=t.maxX&&n.minY<=t.maxY&&n.maxX>=t.minX&&n.maxY>=t.minY}function _(t,n,e,r,o){const i=[n,e];for(;i.length;){const n=i.pop(),e=i.pop();if(n-e<=r)continue;const s=e+Math.ceil((n-e)/r/2)*r;(0,a.q)(t,s,e,n,o),i.push(e,s,s,n)}}const b=new i.A,w=new i.A,A=new i.A,v=new i.A({deallocator:void 0});class B{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends B{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class T extends S{constructor(t){super(),this.children=t,this.leaf=!0}}class E extends S{constructor(t){super(),this.children=t,this.leaf=!1}}},48353:(t,n,e)=>{e.d(n,{l:()=>c});var r=e(34727),o=e(58083),i=e(51850);function a(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),a=Math.cos(n),s=e;return s[0]=-r,s[4]=-i*o,s[8]=a*o,s[12]=0,s[1]=o,s[5]=-i*r,s[9]=a*r,s[13]=0,s[2]=0,s[6]=a,s[10]=i,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=e(37539),l=e(21325);function c(t,n,e,r){const i=(0,s.Tp)(t,r);if(null==i)return!1;const c=i.source.spatialReferenceId,m=i.dest.spatialReferenceId;if(c===m&&!u(m)&&(c!==s.rz.UNKNOWN||(0,l.aI)(t,r)))return(0,o.kN)(e,n),!0;if(u(m)){const t=s.w5[c][s.rz.LON_LAT],r=s.w5[s.rz.LON_LAT][m];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,d,0),a(f*h[0],f*h[1],e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}const p=u(c);if((m===s.rz.WEB_MERCATOR||m===s.rz.PLATE_CARREE||m===s.rz.WGS84||m===s.rz.CGCS2000)&&(c===s.rz.WGS84||p||c===s.rz.WEB_MERCATOR||c===s.rz.CGCS2000)){const t=s.w5[c][s.rz.LON_LAT],r=s.w5[s.rz.LON_LAT][m];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,d,0),p?function(t,n,e){a(t,n,e),(0,o.mg)(e,e)}(f*h[0],f*h[1],e):(0,o.D_)(e),e[12]=d[0],e[13]=d[1],e[14]=d[2],!0)}return!1}function u(t){return t===s.rz.SPHERICAL_ECEF||t===s.rz.SPHERICAL_MARS_PCPF||t===s.rz.SPHERICAL_MOON_PCPF||t===s.rz.WGS84_ECEF}const f=(0,r.kU)(1),h=(0,i.vt)(),d=(0,i.vt)()},65806:(t,n,e)=>{e.d(n,{g:()=>a});var r=e(51850),o=e(57251),i=e(9762);function a(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e)){s[0]=t.x,s[1]=t.y;const o=t.z;return s[2]=o??r??0,(0,i.projectBuffer)(s,t.spatialReference,0,n,e,0)}const a=(0,o.tryProjectWithZConversion)(t,e);return!!a&&(n[0]=a?.x,n[1]=a?.y,n[2]=a?.z??r??0,!0)}const s=(0,r.vt)()},98764:(t,n,e)=>{e.d(n,{Y0:()=>c,lO:()=>u});var r=e(73941),o=e(16930),i=e(21325);const a=new o.A(r.fv),s=new o.A(r.FY),l=new o.A(r.LJ),c=new o.A(r.Ro);function u(t){const n=f.get(t);if(n)return n;let e=a;if(t)if(t===s)e=s;else if(t===l)e=l;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,i.tl)(n)||(0,i.tl)(r)?e=s:((0,i.ZL)(n)||(0,i.ZL)(r))&&(e=l);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?e=s:t===d&&(e=l)}}}return f.set(t,e),e}const f=new Map,h=s.wkt.toUpperCase(),d=l.wkt.toUpperCase()},95696:(t,n,e)=>{e.d(n,{A:()=>f});var r,o=e(90237),i=e(69540),a=e(25482),s=e(10107),l=(e(44208),e(53966),e(87811),e(93223)),c=e(40608);let u=r=class extends((0,i.O)(a.oY)){constructor(t){super(t),this.type="georeferenced",this.origin=null}};u.absolute=new r,(0,o._)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],u.prototype,"type",void 0),(0,o._)([(0,s.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],u.prototype,"origin",void 0),u=r=(0,o._)([(0,c.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],u);const f=u},18251:(t,n,e)=>{e.d(n,{A:()=>f});var r=e(90237),o=e(69540),i=e(25482),a=e(10107),s=(e(44208),e(53966),e(87811),e(93223)),l=e(40608),c=e(51850);let u=class extends((0,o.O)(i.oY)){constructor(t){super(t),this.type="local",this.origin=(0,c.vt)()}};(0,r._)([(0,s.e)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r._)([(0,l.$)("esri.geometry.support.MeshLocalVertexSpace")],u);const f=u},38419:(t,n,e)=>{e.r(n),e.d(n,{default:()=>s});var r=e(44208),o=e(75503),i=e(95696),a=e(72258);class s{async createIndex(t,n){const e=new Array;if(!t.vertexAttributes?.position)return new o.w;const r=function(t){const{vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o}=t,s=(0,a.UR)({vertexAttributes:{position:n},vertexSpace:e,spatialReference:r,transform:o},i.A.absolute,{allowBufferReuse:!0})?.position;return s?!t.components||t.components.some((t=>!t.faces))?{position:s.buffer}:{position:s.buffer,components:t.components.map((t=>t.faces))}:null}(t),s=null!=n?await n.invoke("createIndexThread",r,{transferList:e}):this.createIndexThread(r).result;return l().fromJSON(s)}createIndexThread(t){const n=l();if(!t)return{result:n.toJSON()};const e=new Float64Array(t.position);return t.components?function(t,n,e){let r=0;for(const t of e)r+=t.length/3;const o=new Array(r);let i=0;for(const t of e)for(let e=0;e<t.length;e+=3)o[i++]=c(n,3*t[e],3*t[e+1],3*t[e+2]);return t.load(o),{result:t.toJSON()}}(n,e,t.components.map((t=>new Uint32Array(t)))):function(t,n){const e=new Array(n.length/9);let r=0;for(let t=0;t<n.length;t+=9)e[r++]=c(n,t,t+3,t+6);return t.load(e),{result:t.toJSON()}}(n,e)}}function l(){return new o.w(9,(0,r.A)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}function c(t,n,e,r){return{minX:Math.min(t[n],t[e],t[r]),maxX:Math.max(t[n],t[e],t[r]),minY:Math.min(t[n+1],t[e+1],t[r+1]),maxY:Math.max(t[n+1],t[e+1],t[r+1]),p0:[t[n],t[n+1],t[n+2]],p1:[t[e],t[e+1],t[e+2]],p2:[t[r],t[r+1],t[r+2]]}}},22141:(t,n,e)=>{e.d(n,{$5:()=>w,CN:()=>y,JP:()=>M,KM:()=>v,Mv:()=>S,X4:()=>x,gr:()=>b,qs:()=>A,si:()=>_,xA:()=>B});var r=e(34727),o=e(77690),i=e(29242),a=e(58083),s=e(9093),l=e(38954),c=e(51850),u=e(48353),f=e(9762),h=(e(79258),e(21325)),d=e(28735),m=e(13030),p=e(73354),g=e(65686);const M="Projection may be possible after calling projection.load().";function y(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function x(t,n,e,r,o,i){return N(E.TO_PCPF,m.xs.fromTypedArray(t),T.NORMAL,m.Xm.fromTypedArray(n),e,m.Xm.fromTypedArray(r),o,m.xs.fromTypedArray(i))?i:null}function _(t,n,e,r,o,i){return N(E.FROM_PCPF,m.xs.fromTypedArray(t),T.NORMAL,m.Xm.fromTypedArray(n),e,m.Xm.fromTypedArray(r),o,m.xs.fromTypedArray(i))?i:null}function b(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function w(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function A(t,n,e){return(0,o.Ge)(Y,e),(0,p.b)(n,t,Y),(0,r.or)(Y)&&(0,p.n)(n,n),n}function v(t,n,e){return(0,o.z0)(Y,e),(0,g.t)(n,t,Y),(0,r.or)(Y)&&(0,p.n)(n,n,4),n}function B(t,n,e,r,o,i){if(!N(E.TO_PCPF,m.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),T.TANGENT,m.Xm.fromTypedArray(n),e,m.Xm.fromTypedArray(r),o,m.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function S(t,n,e,r,o,i){if(!N(E.FROM_PCPF,m.xs.fromTypedArray(t,16),T.TANGENT,m.Xm.fromTypedArray(n),e,m.Xm.fromTypedArray(r),o,m.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}var T,E,R;function O(t,n,e,r,i){switch((0,u.l)(r,e,X,r),t===E.FROM_PCPF&&(0,a.B8)(X,X),n){case T.NORMAL:return(0,o.Ge)(i,X);case T.TANGENT:return(0,o.z0)(i,X)}}function N(t,n,e,r,o,i,a,s){if(!n)return;const c=r.count;if(function(t){return t.isWGS84||(0,h.x1)(t)||(0,h.q8)(t)||(0,h.KQ)(t)}(o))for(let r=0;r<c;r++)i.getVec(r,C),n.getVec(r,F),(0,l.q)(F,F,O(t,e,C,a,Y)),s.setVec(r,F);else for(let o=0;o<c;o++){i.getVec(o,C),n.getVec(o,F);const c=(0,d.jg)(r.get(o,1));let u=Math.cos(c);e===T.TANGENT!=(t===E.TO_PCPF)&&(u=1/u),O(t,e,C,a,Y),t===E.TO_PCPF?(Y[0]*=u,Y[1]*=u,Y[2]*=u,Y[3]*=u,Y[4]*=u,Y[5]*=u):(Y[0]*=u,Y[3]*=u,Y[6]*=u,Y[1]*=u,Y[4]*=u,Y[7]*=u),(0,l.q)(F,F,Y),(0,l.n)(F,F),s.setVec(o,F)}return s}(R=T||(T={}))[R.NORMAL=0]="NORMAL",R[R.TANGENT=1]="TANGENT",function(t){t[t.TO_PCPF=0]="TO_PCPF",t[t.FROM_PCPF=1]="FROM_PCPF"}(E||(E={}));const C=(0,c.vt)(),F=(0,c.vt)(),X=(0,s.vt)(),Y=(0,i.vt)()},72258:(t,n,e)=>{e.d(n,{UR:()=>b,p5:()=>_,xK:()=>T});var r=e(53966),o=e(34727),i=e(83047),a=e(77690),s=e(29242),l=e(58083),c=e(9093),u=e(38954),f=e(51850),h=e(98764),d=e(48353),m=e(65806),p=e(27615),g=e(21325),M=e(73354),y=e(22141);const x=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function _(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,m.g)(n,o,r))return!1;const{origin:i}=e;return(0,u.d)(t,o,i),!0}const o=(0,h.lO)(r),i=t;if(!(0,m.g)(n,i,o))return!1;const{origin:a}=e,s=C;if(!(0,d.l)(r,a,s,o))return!1;const c=(0,l.B8)(C,s);return null!=c&&((0,u.t)(t,i,c),!0)}function b(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,s=(0,p.Hq)(r)?o:null,f=B(t.spatialReference,e,F.SOURCE_AND_TARGET);if((0,p.yJ)(r,n)&&(!s||(0,l.t2)(s.localMatrix,c.zK))&&S(f)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const a=w(n,i);if(!(0,d.l)(n,r,E,a))return(0,y.CN)(x(),n,a),null;if(e&&(0,l.lw)(E,E,e.localMatrix),!(0,d.l)(n,o,R,a))return(0,y.CN)(x(),a,n),null;(0,l.B8)(R,R);const s=(0,l.lw)(E,R,E);return v(s,n,i,F.SOURCE_AND_TARGET),A(t,s)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const a=w(t,i);if(!(0,d.l)(t,r,E,a))return(0,y.CN)(x(),t,a),null;e&&(0,l.lw)(E,E,e.localMatrix),v(E,t,i,F.SOURCE);const s=new Float64Array(n.position.length),c=function(t,n,e,r,o){(0,M.t)(r,t,n);const i=new Float64Array(t.length);return(0,y.$5)(r,o,i,e)?i:((0,y.CN)(x(),o,e),null)}(n.position,E,t,s,a);if(!c)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,y.qs)(o,a,i),(0,y.si)(a,t,n,e,r,a)?a:((0,y.CN)(x(),r,n),null)}(c,t,s,a,n.normal,E);if(n.normal&&!f)return null;const h=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,y.KM)(o,a,i),(0,y.Mv)(a,t,n,e,r,a)?a:((0,y.CN)(x(),r,n),null)}(c,t,s,a,n.tangent,E);if(n.tangent&&!h)return null;if(o){const t=(0,u.v)(N,o);(0,M.a)(c,c,t)}return{position:c,normal:f,tangent:h}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const s=w(n,i);if(!(0,d.l)(n,o,E,s))return(0,y.CN)(x(),n,s),null;const c=1/B(n,i,F.TARGET);(0,l.hs)(E,E,[c,c,c]);const u=(0,l.B8)(R,E),{position:f,normal:h,tangent:m}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,M.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=A(t,e.localMatrix);return(0,M.a)(r.position,r.position,n),r}(t,r,e),p=new Float64Array(f.length),g=function(t,n,e,r,o){const i=(0,y.gr)(t,n,r,o);if(!i)return(0,y.CN)(x(),n,o),null;const a=new Float64Array(i.length);return(0,M.t)(a,i,e),a}(f,n,u,p,s);if(!g)return null;const _=(0,a.Ge)(O,u),b=function(t,n,e,r,o,i,a){if(null==t)return null;const s=a??new Float32Array(t.length);return(0,y.X4)(t,n,e,r,o,s)?((0,M.b)(s,s,i),s):((0,y.CN)(x(),e,o),null)}(h,f,n,p,s,_,h!==t.normal?h:void 0);if(!b&&h)return null;const v=function(t,n,e,r,o,i,a){if(null==t)return null;const s=a??new Float32Array(t.length);return(0,y.xA)(t,n,e,r,o,s)?((0,M.b)(s,s,i,4),s):((0,y.CN)(x(),e,o),null)}(m,f,n,p,s,_,m!==t.tangent?m:void 0);return!v&&m?null:{position:g,normal:b,tangent:v}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const a=B(e,i,F.SOURCE_AND_TARGET),s=r||!S(a)?(0,l.C)(E,n?.localMatrix??c.zK):null;s&&v(s,e,i,F.SOURCE_AND_TARGET);const{position:f,normal:h,tangent:d}=s?A(t,s):t,m=i?.allowBufferReuse,p=m?f:new Float64Array(f.length);let g=f;if(r&&(g=(0,M.a)(p,g,r)),o){const t=(0,u.v)(N,o);g=(0,M.a)(p,g,t)}return{position:g!==t.position||m?g:g.slice(),normal:h!==t.normal||m?h:h?.slice(),tangent:d!==t.tangent||m?d:d?.slice()}}(t,t.vertexSpace,n.origin,e)}}function w(t,n){return n?.useEllipsoid&&(0,g.B3)(t)?h.Y0:(0,h.lO)(t)}function A(t,n){const e=new Float64Array(t.position.length);(0,M.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,y.qs)(t.normal,r,n),o&&t.tangent&&(0,y.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function v(t,n,e,r){const o=B(n,e,r);S(o)||(0,l.hs)(t,t,[o,o,o])}function B(t,n,e){const r=!!(e&F.SOURCE),o=!!(e&F.TARGET),i=n?.sourceUnit,a=n?.targetUnit;if(!i&&!a)return 1;let s=T(i,t);r||!i||S(s)||(x().warn("source unit conversion not supported"),s=1);let l=1/T(a,t);return o||!a||S(l)||(x().warn("target unit conversion not supported"),l=1),s*l}function S(t){return(0,o.Io)(t,1)}function T(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const E=(0,c.vt)(),R=(0,c.vt)(),O=(0,s.vt)(),N=(0,f.vt)(),C=(0,c.vt)();var F,X;(X=F||(F={}))[X.NONE=0]="NONE",X[X.SOURCE=1]="SOURCE",X[X.TARGET=2]="TARGET",X[X.SOURCE_AND_TARGET=3]="SOURCE_AND_TARGET"},27615:(t,n,e)=>{e.d(n,{CK:()=>f,Hq:()=>u,MW:()=>h,TE:()=>d,yJ:()=>m});var r=e(51447),o=e(53966),i=e(38954),a=e(86738),s=e(95696),l=e(18251);function c(){return o.A.getLogger("esri.geometry.Mesh")}function u(t){return null!=t.origin}function f(t){return u(t.vertexSpace)}function h(t,n){if(!u(t))return null;const[e,r,o]=t.origin;return new a.A({x:e,y:r,z:o,spatialReference:n})}function d(t,n){const{x:e,y:o,z:i,spatialReference:a}=t,u=[e,o,i??0];return void 0!==n?.geographic&&((0,r.io)(c(),"option: geographic",{replacement:"Use the `vertexSpace` option instead.",version:"4.29",warnOnce:!0}),n.vertexSpace&&c().warn("Deprecated geographic flag ignored since vertexSpace option is provided.")),"local"===(n?.vertexSpace??(f=n?.geographic,null==f?void 0:f?"local":"georeferenced")??function(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}(a))?new l.A({origin:u}):new s.A({origin:u});var f}function m(t,n){return t.type===n.type&&(t.origin===n.origin||null!=t.origin&&null!=n.origin&&(0,i.p)(t.origin,n.origin))}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7375],{43609:(e,_,E)=>{E.d(_,{a:()=>R,f:()=>n,n:()=>T});var t=E(34275);function T(e,_){R(e.typedBuffer,_.typedBuffer,e.typedBufferStride,_.typedBufferStride)}function R(e,_,E=2,T=E){const R=_.length/2;let n=0,A=0;if(!(0,t.iu)(_)||(0,t.dk)(_)){for(let t=0;t<R;++t)e[n]=_[A],e[n+1]=_[A+1],n+=E,A+=T;return}const r=(0,t.a3)(_);if((0,t.JI)(_))for(let t=0;t<R;++t)e[n]=Math.max(_[A]/r,-1),e[n+1]=Math.max(_[A+1]/r,-1),n+=E,A+=T;else for(let t=0;t<R;++t)e[n]=_[A]/r,e[n+1]=_[A+1]/r,n+=E,A+=T}function n(e,_,E,t){const T=e.typedBuffer,R=e.typedBufferStride,n=t?.count??e.count;let A=(t?.dstIndex??0)*R;for(let e=0;e<n;++e)T[A]=_,T[A+1]=E,A+=R}Object.freeze(Object.defineProperty({__proto__:null,fill:n,normalizeIntegerBuffer:R,normalizeIntegerBufferView:T},Symbol.toStringTag,{value:"Module"}))},90239:(e,_,E)=>{function t(e){switch(e){case"u8":case"i8":return 1;case"u16":case"i16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}E.d(_,{GJ:()=>t})},97375:(e,_,E)=>{E.r(_),E.d(_,{loadGLTFMesh:()=>g});var t=E(68197),T=E(40876),R=E(78888),n=E(49186),A=E(91869),r=E(34727),o=E(77690),N=E(29242),S=E(51850),O=E(91829),C=E(16939),I=E(80882),u=E(35063),a=E(51147),c=E(1193),i=E(27615),s=E(13030),f=E(73354),l=E(65686),L=E(90239);Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,_,E){const t=e.typedBuffer,T=e.typedBufferStride,R=_.typedBuffer,n=_.typedBufferStride,A=E?E.count:_.count;let r=(E?.dstIndex??0)*T,o=(E?.srcIndex??0)*n;for(let e=0;e<A;++e){for(let e=0;e<9;++e)t[r+e]=R[o+e];r+=T,o+=n}}},Symbol.toStringTag,{value:"Module"})),Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,_,E){const t=e.typedBuffer,T=e.typedBufferStride,R=_.typedBuffer,n=_.typedBufferStride,A=E?E.count:_.count;let r=(E?.dstIndex??0)*T,o=(E?.srcIndex??0)*n;for(let e=0;e<A;++e){for(let e=0;e<16;++e)t[r+e]=R[o+e];r+=T,o+=n}}},Symbol.toStringTag,{value:"Module"})),E(24045);var M=E(43609);function D(e,_,E=3,t=E){const T=_.length/t;let R=0,n=0;for(let A=0;A<T;++A)e[R]=_[n],e[R+1]=_[n+1],e[R+2]=_[n+2],R+=E,n+=t}function G(e,_,E,t,T){const R=e.typedBuffer,n=e.typedBufferStride,A=T?.count??e.count;let r=(T?.dstIndex??0)*n;for(let e=0;e<A;++e)R[r]=_,R[r+1]=E,R[r+2]=t,r+=n}function U(e,_,E=4){const t=_.typedBuffer,T=_.typedBufferStride,R=_.count;let n=0,A=0;for(let _=0;_<R;++_)e[n]=t[A],e[n+1]=t[A+1],e[n+2]=t[A+2],e[n+3]=t[A+3],n+=E,A+=T}function P(e,_,E,t,T,R){const n=e.typedBuffer,A=e.typedBufferStride,r=R?.count??e.count;let o=(R?.dstIndex??0)*A;for(let e=0;e<r;++e)n[o]=_,n[o+1]=E,n[o+2]=t,n[o+3]=T,o+=A}function B(e,_){return new e(new ArrayBuffer(_*e.ElementCount*(0,L.GJ)(e.ElementType)))}Object.freeze(Object.defineProperty({__proto__:null,copy:D,copyView:function(e,_){D(e.typedBuffer,_.typedBuffer,e.typedBufferStride,_.typedBufferStride)},fill:G},Symbol.toStringTag,{value:"Module"})),Object.freeze(Object.defineProperty({__proto__:null,copy:U,copyView:function(e,_){U(e.typedBuffer,_,e.typedBufferStride)},fill:P},Symbol.toStringTag,{value:"Module"}));var d=E(72258),F=E(21015),H=E(4399),p=E(84498),m=E(51530),y=E(63907);async function g(e,_,E){const T=new F.R(function(e){const _=e?.resolveFile;return _?{busy:!1,request:async(e,E,t)=>{const T=_?.(e)??e,n="image"===E?"image":"binary"===E||"image+type"===E?"array-buffer":"json";return(await(0,R.A)(T,{responseType:n,signal:t?.signal,timeout:0})).data}}:null}(E)),o=(await(0,H.loadGLTF)(T,_,E,!0)).model,N=o.lods.shift(),C=new Map,f=new Map;o.textures.forEach(((e,_)=>C.set(_,function(e){return new u.A({data:((0,m.x3)(e.data),e.data),wrap:X(e.parameters.wrap)})}(e)))),o.materials.forEach(((e,_)=>f.set(_,function(e,_){const E=new t.A(function(e,_){return(0,O.fA)(v(e[0]),v(e[1]),v(e[2]),_)}(e.color,e.opacity)),T=e.emissiveFactor?new t.A(function(e){return(0,S.fA)(v(e[0]),v(e[1]),v(e[2]))}(e.emissiveFactor)):null,R=e=>e?new a.A({scale:e.scale?[e.scale[0],e.scale[1]]:[1,1],rotation:(0,r.KJ)(e.rotation??0),offset:e.offset?[e.offset[0],e.offset[1]]:[0,0]}):null;return new I.A({color:E,colorTexture:_.get(e.textureColor),normalTexture:_.get(e.textureNormal),emissiveColor:T,emissiveTexture:_.get(e.textureEmissive),occlusionTexture:_.get(e.textureOcclusion),alphaMode:h(e.alphaMode),alphaCutoff:e.alphaCutoff,doubleSided:e.doubleSided,metallic:e.metallicFactor,roughness:e.roughnessFactor,metallicRoughnessTexture:_.get(e.textureMetallicRoughness),colorTextureTransform:R(e.colorTextureTransform),normalTextureTransform:R(e.normalTextureTransform),occlusionTextureTransform:R(e.occlusionTextureTransform),emissiveTextureTransform:R(e.emissiveTextureTransform),metallicRoughnessTextureTransform:R(e.metallicRoughnessTextureTransform)})}(e,C))));const l=function(e){let _=0;const E={color:!1,tangent:!1,normal:!1,texCoord0:!1},t=new Map,T=new Map,R=[];for(const n of e.parts){const{attributes:{position:e,normal:r,color:o,tangent:N,texCoord0:S}}=n,O=`\n ${x(e,t)}/\n ${x(r,t)}/\n ${x(o,t)}/\n ${x(N,t)}/\n ${x(S,t)}/\n ${b(n.transform)}\n `;let C=!1;const I=(0,A.tE)(T,O,(()=>(C=!0,{start:_,length:e.count})));C&&(_+=e.count),r&&(E.normal=!0),o&&(E.color=!0),N&&(E.tangent=!0),S&&(E.texCoord0=!0),R.push({gltf:n,writeVertices:C,region:I})}return{vertexAttributes:{position:B(s.Xm,_),normal:E.normal?B(s.xs,_):null,tangent:E.tangent?B(s.Eq,_):null,color:E.color?B(s.XP,_):null,texCoord0:E.texCoord0?B(s.gH,_):null},parts:R,components:[]}}(N);for(const e of l.parts)V(l,e,f);const{position:L,normal:M,tangent:D,color:G,texCoord0:U}=l.vertexAttributes,P=(0,i.TE)(e,E),p=e.spatialReference.isGeographic?(0,i.TE)(e):P,y=(0,d.UR)({vertexAttributes:{position:L.typedBuffer,normal:M?.typedBuffer,tangent:D?.typedBuffer},vertexSpace:p,spatialReference:e.spatialReference},P,{allowBufferReuse:!0,sourceUnit:E?.unitConversionDisabled?void 0:"meters"});if(!y)throw new n.A("load-gltf-mesh:vertex-space-projection",`Failed to load mesh from glTF because we could not convert the vertex space from ${p.type} to ${P.type}`);return{transform:null,vertexSpace:P,components:l.components,spatialReference:e.spatialReference,vertexAttributes:new c.H({...y,color:G?.typedBuffer,uv:U?.typedBuffer})}}function x(e,_){if(null==e)return"-";const E=e.typedBuffer;return`${(0,A.tE)(_,E.buffer,(()=>_.size))}/${E.byteOffset}/${E.byteLength}`}function b(e){return null!=e?e.toString():"-"}function V(e,_,E){_.writeVertices&&function(e,_){const{position:E,normal:t,tangent:T,color:R,texCoord0:n}=e.vertexAttributes,A=_.region.start,{attributes:S,transform:O}=_.gltf,C=S.position.count;if((0,f.d)(E.slice(A,C),S.position,O),null!=S.normal&&null!=t){const e=(0,o.Ge)((0,N.vt)(),O),_=t.slice(A,C);(0,f.c)(_,S.normal,e),(0,r.or)(e)&&(0,f.e)(_,_)}else null!=t&&G(t,0,0,1,{dstIndex:A,count:C});if(null!=S.tangent&&null!=T){const e=(0,o.z0)((0,N.vt)(),O),_=T.slice(A,C);(0,l.a)(_,S.tangent,e),(0,r.or)(e)&&(0,l.n)(_,_)}else null!=T&&P(T,0,0,1,1,{dstIndex:A,count:C});if(null!=S.texCoord0&&null!=n?(0,M.n)(n.slice(A,C),S.texCoord0):null!=n&&(0,M.f)(n,0,0,{dstIndex:A,count:C}),null!=S.color&&null!=R){const e=S.color,_=R.slice(A,C);if(4===e.elementCount)e instanceof s.Eq?(0,l.l)(_,e,1,255):(e instanceof s.XP||e instanceof s.Uz)&&(0,l.l)(_,e,1/255,255);else{P(_,255,255,255,255);const E=s.eI.fromTypedArray(_.typedBuffer,_.typedBufferStride);e instanceof s.xs?(0,f.l)(E,e,1,255):(e instanceof s.eI||e instanceof s.nS)&&(0,f.l)(E,e,1/255,255)}}else null!=R&&P(R.slice(A,C),255,255,255,255)}(e,_);const{indices:t,attributes:T,primitiveType:R,material:n}=_.gltf;let A=(0,p.x)(t||T.position.count,R);const S=_.region.start;if(S){const e=new Uint32Array(A);for(let _=0;_<A.length;_++)e[_]+=S;A=e}e.components.push(new C.A({name:_.gltf.name,faces:A,material:E.get(n),shading:T.normal?"source":"flat",trustSourceNormals:!0}))}function h(e){switch(e){case"OPAQUE":return"opaque";case"MASK":return"mask";case"BLEND":return"blend"}}function X(e){return{horizontal:Y(e.s),vertical:Y(e.t)}}function Y(e){switch(e){case y.pF.CLAMP_TO_EDGE:return"clamp";case y.pF.MIRRORED_REPEAT:return"mirror";case y.pF.REPEAT:return"repeat"}}function v(e){return e**(1/T.Tf)*255}},21015:(e,_,E)=>{E.d(_,{R:()=>r});var t=E(78888),T=E(60999),R=E(49186),n=E(74887),A=E(84952);class r{constructor(e){this._streamDataRequester=e}async loadJSON(e,_){return this._load("json",e,_)}async loadBinary(e,_){return(0,A.DB)(e)?((0,n.Te)(_),(0,A.lJ)(e)):this._load("binary",e,_)}async loadImage(e,_){return this._load("image",e,_)}async _load(e,_,E){if(null==this._streamDataRequester)return(await(0,t.A)(_,{responseType:o[e]})).data;const A=await(0,T.Ke)(this._streamDataRequester.request(_,e,E));if(!0===A.ok)return A.value;throw(0,n.QP)(A.error),new R.A("glt-loader-request-error",`Request for resource failed: ${A.error}`)}}const o={image:"image",binary:"array-buffer",json:"json","image+type":void 0}},84498:(e,_,E)=>{E.d(_,{x:()=>n});var t=E(34275),T=E(97146),R=E(63907);function n(e,_){switch(_){case R.WR.TRIANGLES:return"number"==typeof(E=e)?(0,T.tM)(E):(0,t.mg)(E)?new Uint16Array(E):E;case R.WR.TRIANGLE_STRIP:return function(e){const _="number"==typeof e?e:e.length;if(_<3)return[];const E=_-2,t=(0,T.my)(3*E);if("number"==typeof e){let e=0;for(let _=0;_<E;_+=1)_%2==0?(t[e++]=_,t[e++]=_+1,t[e++]=_+2):(t[e++]=_+1,t[e++]=_,t[e++]=_+2)}else{let _=0;for(let T=0;T<E;T+=1)T%2==0?(t[_++]=e[T],t[_++]=e[T+1],t[_++]=e[T+2]):(t[_++]=e[T+1],t[_++]=e[T],t[_++]=e[T+2])}return t}(e);case R.WR.TRIANGLE_FAN:return function(e){const _="number"==typeof e?e:e.length;if(_<3)return new Uint16Array(0);const E=_-2,t=E<=65536?new Uint16Array(3*E):new Uint32Array(3*E);if("number"==typeof e){let e=0;for(let _=0;_<E;++_)t[e++]=0,t[e++]=_+1,t[e++]=_+2;return t}const T=e[0];let R=e[1],n=0;for(let _=0;_<E;++_){const E=e[_+2];t[n++]=T,t[n++]=R,t[n++]=E,R=E}return t}(e)}var E}},51530:(e,_,E)=>{E.d(_,{KB:()=>A,Xi:()=>R,pn:()=>r,x3:()=>n});var t=E(44208),T=E(89192);class R{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding=T.JS.KTX2_ENCODING}}function n(e){return"encoded-mesh-texture"===e?.type}async function A(e){const _=new Blob([e]),E=await _.text();return JSON.parse(E)}async function r(e,_){if(_===T.JS.KTX2_ENCODING)return new R(e);const E=new Blob([e],{type:_}),n=URL.createObjectURL(E),A=new Image;if((0,t.A)("esri-iPhone"))return new Promise(((e,_)=>{const E=()=>{T(),e(A)},t=e=>{T(),_(e)},T=()=>{URL.revokeObjectURL(n),A.removeEventListener("load",E),A.removeEventListener("error",t)};A.addEventListener("load",E),A.addEventListener("error",t),A.src=n}));try{A.src=n,await A.decode()}catch(e){console.warn("Failed decoding HTMLImageElement")}return URL.revokeObjectURL(n),A}},89192:(e,_,E)=>{var t,T,R,n,A,r,o,N;E.d(_,{Am:()=>n,C7:()=>R,JS:()=>N,Mg:()=>r,dd:()=>A,it:()=>T,s2:()=>t,sf:()=>o}),function(e){e[e.None=0]="None",e[e.Front=1]="Front",e[e.Back=2]="Back",e[e.COUNT=3]="COUNT"}(t||(t={})),function(e){e[e.Less=0]="Less",e[e.Lequal=1]="Lequal",e[e.COUNT=2]="COUNT"}(T||(T={})),function(e){e[e.BACKGROUND=0]="BACKGROUND",e[e.UPDATE=1]="UPDATE"}(R||(R={})),function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(n||(n={})),function(e){e[e.IntegratedMeshMaskExcluded=1]="IntegratedMeshMaskExcluded",e[e.OutlineVisualElementMask=2]="OutlineVisualElementMask"}(A||(A={})),function(e){e[e.Highlight=0]="Highlight",e[e.MaskOccludee=1]="MaskOccludee"}(r||(r={})),function(e){e[e.Blend=0]="Blend",e[e.Opaque=1]="Opaque",e[e.Mask=2]="Mask",e[e.MaskBlend=3]="MaskBlend",e[e.COUNT=4]="COUNT"}(o||(o={})),function(e){e.DDS_ENCODING="image/vnd-ms.dds",e.KTX2_ENCODING="image/ktx2",e.BASIS_ENCODING="image/x.basis"}(N||(N={}))},63907:(e,_,E)=>{var t,T,R,n,A,r,o,N,S,O,C,I,u,a,c,i,s,f,l,L,M,D,G;E.d(_,{Ab:()=>a,Ac:()=>o,Ap:()=>u,CQ:()=>P,Cj:()=>C,Co:()=>l,H0:()=>c,Hr:()=>G,MT:()=>S,NV:()=>t,NZ:()=>A,Nm:()=>D,R:()=>L,Tb:()=>n,WR:()=>T,Y7:()=>r,_U:()=>f,dn:()=>R,eA:()=>O,ld:()=>i,nI:()=>U,pF:()=>I,pe:()=>N,vt:()=>M,yQ:()=>s}),function(e){e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e[e.COLOR=16384]="COLOR"}(t||(t={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(T||(T={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(R||(R={})),function(e){e[e.ADD=32774]="ADD",e[e.MIN=32775]="MIN",e[e.MAX=32776]="MAX",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(n||(n={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",e[e.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER"}(A||(A={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(r||(r={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(o||(o={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT",e[e.HALF_FLOAT=5131]="HALF_FLOAT"}(N||(N={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(S||(S={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(O||(O={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(C||(C={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(I||(I={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(u||(u={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(a||(a={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(c||(c={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(i||(i={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(s||(s={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(f||(f={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(l||(l={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(L||(L={})),function(e){e[e.Texture=0]="Texture",e[e.BufferObject=1]="BufferObject",e[e.VertexArrayObject=2]="VertexArrayObject",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.FramebufferObject=5]="FramebufferObject",e[e.Renderbuffer=6]="Renderbuffer",e[e.TransformFeedback=7]="TransformFeedback",e[e.Sync=8]="Sync",e[e.UNCOUNTED=9]="UNCOUNTED",e[e.LinesOfCode=9]="LinesOfCode",e[e.Uniform=10]="Uniform",e[e.COUNT=11]="COUNT"}(M||(M={})),function(e){e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(D||(D={})),function(e){e[e.NONE=0]="NONE",e[e.BACK=1029]="BACK"}(G||(G={}));const U=33306;var P,B,d,F,H,p,m;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(P||(P={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(B||(B={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(d||(d={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(F||(F={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(H||(H={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(p||(p={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(m||(m={}))}}]);
|