@arcgis/core 4.29.0-next.20240210 → 4.29.0-next.20240213

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/05ebb9cec0e1826b283f.js +1 -0
  3. package/assets/esri/core/workers/chunks/18551a7eb5a9b88aa0dc.js +1 -0
  4. package/assets/esri/core/workers/chunks/24d19abc680b341d13bb.js +1 -0
  5. package/assets/esri/core/workers/chunks/{3f4d63436c3de04a6ebb.js → 254b4ee3621bbe345bb1.js} +1 -1
  6. package/assets/esri/core/workers/chunks/2d682ee6e5d66f2ea5cd.js +1 -0
  7. package/assets/esri/core/workers/chunks/{d5484d470121de2b403b.js → 36d091be859bbb1a149b.js} +1 -1
  8. package/assets/esri/core/workers/chunks/50b41f91be903a0977f9.js +1 -0
  9. package/assets/esri/core/workers/chunks/50bb67f2eeace5d50673.js +1 -0
  10. package/assets/esri/core/workers/chunks/6e135a5dd5223f24da90.js +1 -0
  11. package/assets/esri/core/workers/chunks/784b6a8216b97440b180.js +1 -0
  12. package/assets/esri/core/workers/chunks/{7f7a4de2cd4ab71b9aee.js → 8d119dc0a92ad3612daa.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{f13c4b9692dad5802a32.js → 968808e99f08677152cb.js} +84 -84
  14. package/assets/esri/core/workers/chunks/{0014635097a32ad38895.js → a854611d1a86b838c6ad.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{50a5abd75fa7dbb571a5.js → ccd53b81c2688dd11584.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{b2b8e6a0b3f70ada2799.js → e4da908079417cc2f495.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{af0314c2b5b7dc4f5bbd.js → e6dbf0a7b7b1cf64f23f.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{eba72ff1726ff6998204.js → f03d62ab7806b68d0b62.js} +1 -1
  19. package/assets/esri/libs/lyr3d/lyr3DMain.wasm +0 -0
  20. package/geometry/Mesh.js +1 -1
  21. package/geometry/support/meshVertexSpaceUtils.js +1 -1
  22. package/interfaces.d.ts +296 -73
  23. package/layers/Lyr3DWasmPerSceneView.js +1 -1
  24. package/layers/SceneLayer.js +1 -1
  25. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  26. package/layers/support/rasterDatasets/BaseRaster.js +1 -1
  27. package/package.json +2 -2
  28. package/portal/support/resourceUtils.js +1 -1
  29. package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
  30. package/rest/support/meshFeatureSet.js +1 -1
  31. package/support/revision.js +1 -1
  32. package/symbols/cim/constants.js +1 -1
  33. package/symbols/support/previewSymbol2D.js +1 -1
  34. package/versionManagement/support/versionManagementUtils.js +1 -1
  35. package/views/2d/engine/webgl/collisions/CollisionEngine.js +1 -1
  36. package/views/2d/engine/webgl/collisions/CollisionGrid.js +1 -1
  37. package/views/2d/engine/webgl/collisions/LabelMetric.js +1 -1
  38. package/views/2d/engine/webgl/mesh/templates/segmentUtils.js +1 -1
  39. package/views/2d/engine/webgl/shaderGraph/GLSLShaderModule.js +1 -1
  40. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  41. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  42. package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartMeshWriter.js +1 -1
  43. package/views/2d/engine/webgl/shaderGraph/techniques/shaders/constants.js +1 -1
  44. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  45. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
  46. package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
  47. package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
  48. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  49. package/views/3d/layers/I3SMeshView3D.js +1 -1
  50. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  51. package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
  52. package/views/3d/terrain/OverlayRenderer.js +1 -1
  53. package/views/3d/webgl/RenderNode.js +1 -1
  54. package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
  55. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  56. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  57. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  58. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  59. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  60. package/views/draw/DrawOperation.js +1 -1
  61. package/views/draw/support/Box.js +1 -1
  62. package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
  63. package/widgets/BasemapLayerList.js +1 -1
  64. package/widgets/Editor.js +1 -1
  65. package/widgets/FeatureForm.js +1 -1
  66. package/widgets/LayerList.js +1 -1
  67. package/widgets/Print/PrintViewModel.js +1 -1
  68. package/widgets/Sketch/SketchViewModel.js +1 -1
  69. package/widgets/TableList.js +1 -1
  70. package/assets/esri/core/workers/chunks/062629a9b4695dea8bf8.js +0 -1
  71. package/assets/esri/core/workers/chunks/37803888bd9a537481a7.js +0 -1
  72. package/assets/esri/core/workers/chunks/560f677a356c7ebde5d3.js +0 -1
  73. package/assets/esri/core/workers/chunks/5bfc5ffad705aaaafcd4.js +0 -1
  74. package/assets/esri/core/workers/chunks/655f4560fb36a0d9ff0b.js +0 -1
  75. package/assets/esri/core/workers/chunks/b927b655e955abe00d48.js +0 -1
  76. package/assets/esri/core/workers/chunks/d2417d179d015f1193a1.js +0 -1
  77. package/assets/esri/core/workers/chunks/f75ec599f53c66cab194.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6248,6147,4828],{8528:(t,e,r)=>{r.d(e,{c:()=>n,g:()=>s});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},85304:(t,e,r)=>{r.d(e,{q:()=>u});var n,s,i,o=r(8528),f={exports:{}};n=f,s=function(){function t(r,n,s,i,o){for(;i>s;){if(i-s>600){var f=i-s+1,u=n-s+1,a=Math.log(f),c=.5*Math.exp(2*a/3),l=.5*Math.sqrt(a*c*(f-c)/f)*(u-f/2<0?-1:1);t(r,n,Math.max(s,Math.floor(n-u*c/f+l)),Math.min(i,Math.floor(n+(f-u)*c/f+l)),o)}var h=r[n],y=s,p=i;for(e(r,s,n),o(r[i],h)>0&&e(r,s,i);y<p;){for(e(r,y,p),y++,p--;o(r[y],h)<0;)y++;for(;o(r[p],h)>0;)p--}0===o(r[s],h)?e(r,s,p):e(r,++p,i),p<=n&&(s=p+1),n<=p&&(i=p-1)}}function e(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function r(t,e){return t<e?-1:t>e?1:0}return function(e,n,s,i,o){t(e,n,s||0,i||e.length-1,o||r)}},void 0!==(i=s())&&(n.exports=i);const u=(0,o.g)(f.exports)},48952:(t,e,r)=>{r.d(e,{a:()=>i,b:()=>f,c:()=>o,d:()=>s,e:()=>l,f:()=>u,n:()=>h,s:()=>a,t:()=>c}),r(9456);var n=r(23704);function s(t,e,r){i(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function i(t,e,r,n=3,s=n){if(t.length/n!==Math.ceil(e.length/s))return t;const i=t.length/n,o=r[0],f=r[1],u=r[2],a=r[4],c=r[5],l=r[6],h=r[8],y=r[9],p=r[10],d=r[12],m=r[13],b=r[14];let g=0,M=0;for(let r=0;r<i;r++){const r=e[g],i=e[g+1],B=e[g+2];t[M]=o*r+a*i+h*B+d,t[M+1]=f*r+c*i+y*B+m,t[M+2]=u*r+l*i+p*B+b,g+=s,M+=n}return t}function o(t,e,r){f(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function f(t,e,r,s=3,i=s){if(t.length/s!==Math.ceil(e.length/i))return void(0,n.A)().error("source and destination buffers need to have the same number of elements");const o=t.length/s,f=r[0],u=r[1],a=r[2],c=r[3],l=r[4],h=r[5],y=r[6],p=r[7],d=r[8];let m=0,b=0;for(let r=0;r<o;r++){const r=e[m],n=e[m+1],o=e[m+2];t[b]=f*r+c*n+y*o,t[b+1]=u*r+l*n+p*o,t[b+2]=a*r+h*n+d*o,m+=i,b+=s}}function u(t,e,r){a(t.typedBuffer,e,r,t.typedBufferStride)}function a(t,e,r,n=3){const s=Math.min(t.length/n,e.count),i=e.typedBuffer,o=e.typedBufferStride;let f=0,u=0;for(let e=0;e<s;e++)t[u]=r*i[f],t[u+1]=r*i[f+1],t[u+2]=r*i[f+2],f+=o,u+=n}function c(t,e,r,n=3,s=n){const i=t.length/n;if(i!==Math.ceil(e.length/s))return t;let o=0,f=0;for(let u=0;u<i;u++)t[f]=e[o]+r[0],t[f+1]=e[o+1]+r[1],t[f+2]=e[o+2]+r[2],o+=s,f+=n;return t}function l(t,e){h(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function h(t,e,r=3,n=r){const s=Math.min(t.length/r,e.length/n);let i=0,o=0;for(let f=0;f<s;f++){const s=e[i],f=e[i+1],u=e[i+2],a=s*s+f*f+u*u;if(a>0){const e=1/Math.sqrt(a);t[o]=e*s,t[o+1]=e*f,t[o+2]=e*u}i+=n,o+=r}}Object.freeze(Object.defineProperty({__proto__:null,normalize:h,normalizeView:l,scale:a,scaleView:u,shiftRight:function(t,e,r){const n=Math.min(t.count,e.count),s=t.typedBuffer,i=t.typedBufferStride,o=e.typedBuffer,f=e.typedBufferStride;let u=0,a=0;for(let t=0;t<n;t++)s[a]=o[u]>>r,s[a+1]=o[u+1]>>r,s[a+2]=o[u+2]>>r,u+=f,a+=i},transformMat3:f,transformMat3View:o,transformMat4:i,transformMat4View:s,translate:c},Symbol.toStringTag,{value:"Module"}))},3856:(t,e,r)=>{r.d(e,{m:()=>l,q:()=>c});var n=r(41948),s=r(43780),i=(r(9456),r(62088)),o=(r(66360),r(70680)),f=r(71448),u=r(20916),a=r(12552);const c=t=>{let e=class extends t{clone(){const t=(0,u.m6)(this);(0,o.EN)(t,"unable to clone instance of non-accessor class");const e=t.metadata,r=t.store,n={},s=new Map;for(const t in e){const o=e[t],u=r?.originOf(t),a=o.clonable;if(o.readOnly||!1===a||u!==f.sT.USER&&u!==f.sT.DEFAULTS&&u!==f.sT.WEB_MAP&&u!==f.sT.WEB_SCENE)continue;const c=this[t];let l=null;l="function"==typeof a?a(c):"reference"===a?c:(0,i.gx)(c),null!=c&&null==l||(u===f.sT.DEFAULTS?s.set(t,l):n[t]=l)}const a=new(0,Object.getPrototypeOf(this).constructor)(n);if(s.size){const t=(0,u.m6)(a)?.store;if(t)for(const[e,r]of s)t.set(e,r,f.sT.DEFAULTS)}return a}};return e=(0,n._)([(0,a.c)("esri.core.Clonable")],e),e};let l=class extends(c(s.c)){};l=(0,n._)([(0,a.c)("esri.core.Clonable")],l)},9592:(t,e,r)=>{r.d(e,{n:()=>s});var n=r(50504);class s extends n.g{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},68612:(t,e,r)=>{function n(){return[1,0,0,0,1,0,0,0,1]}function s(t,e,r,n,s,i,o,f,u){return[t,e,r,n,s,i,o,f,u]}r.d(e,{IJ:()=>i,Su:()=>n,WK:()=>s});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:n,createView:function(t,e){return new Float64Array(t,e,9)},fromValues:s},Symbol.toStringTag,{value:"Module"}))},87104:(t,e,r)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(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]]}r.d(e,{IJ:()=>i,Su:()=>n,ct:()=>s});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:s,create:n,createView:function(t,e){return new Float64Array(t,e,16)},fromValues:function(t,e,r,n,s,i,o,f,u,a,c,l,h,y,p,d){return[t,e,r,n,s,i,o,f,u,a,c,l,h,y,p,d]}},Symbol.toStringTag,{value:"Module"}))},2620:(t,e,r)=>{function n(){return[0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3]]}r.d(e,{IJ:()=>i,Su:()=>n,ct:()=>s});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,createView:function(t,e){return new Float64Array(t,e,4)},fromValues:function(t,e,r,n){return[t,e,r,n]}},Symbol.toStringTag,{value:"Module"}))},77556:(t,e,r)=>{r.d(e,{KU:()=>l,QT:()=>p,S_:()=>f,WO:()=>i,_7:()=>u,aU:()=>c,iW:()=>a,kr:()=>s,oL:()=>o,yy:()=>h});var n=r(47364);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,r,n,s,i,o,f,u,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=s,t[4]=i,t[5]=o,t[6]=f,t[7]=u,t[8]=a,t}function o(t,e){if(t===e){const r=e[1],n=e[2],s=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=s}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function f(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=e[4],f=e[5],u=e[6],a=e[7],c=e[8],l=c*o-f*a,h=-c*i+f*u,y=a*i-o*u;let p=r*l+n*h+s*y;return p?(p=1/p,t[0]=l*p,t[1]=(-c*n+s*a)*p,t[2]=(f*n-s*o)*p,t[3]=h*p,t[4]=(c*r-s*u)*p,t[5]=(-f*r+s*i)*p,t[6]=y*p,t[7]=(-a*r+n*u)*p,t[8]=(o*r-n*i)*p,t):null}function u(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=e[4],f=e[5],u=e[6],a=e[7],c=e[8];return t[0]=o*c-f*a,t[1]=s*a-n*c,t[2]=n*f-s*o,t[3]=f*u-i*c,t[4]=r*c-s*u,t[5]=s*i-r*f,t[6]=i*a-o*u,t[7]=n*u-r*a,t[8]=r*o-n*i,t}function a(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=e[4],u=e[5],a=e[6],c=e[7],l=e[8],h=r[0],y=r[1],p=r[2],d=r[3],m=r[4],b=r[5],g=r[6],M=r[7],B=r[8];return t[0]=h*n+y*o+p*a,t[1]=h*s+y*f+p*c,t[2]=h*i+y*u+p*l,t[3]=d*n+m*o+b*a,t[4]=d*s+m*f+b*c,t[5]=d*i+m*u+b*l,t[6]=g*n+M*o+B*a,t[7]=g*s+M*f+B*c,t[8]=g*i+M*u+B*l,t}function c(t,e,r){const n=r[0],s=r[1],i=r[2];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t}function l(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=r+r,f=n+n,u=s+s,a=r*o,c=n*o,l=n*f,h=s*o,y=s*f,p=s*u,d=i*o,m=i*f,b=i*u;return t[0]=1-l-p,t[3]=c-b,t[6]=h+m,t[1]=c+b,t[4]=1-a-p,t[7]=y-d,t[2]=h-m,t[5]=y+d,t[8]=1-a-l,t}function h(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=e[4],f=e[5],u=e[6],a=e[7],c=e[8],l=e[9],h=e[10],y=e[11],p=e[12],d=e[13],m=e[14],b=e[15],g=r*f-n*o,M=r*u-s*o,B=r*a-i*o,T=n*u-s*f,_=n*a-i*f,E=s*a-i*u,A=c*d-l*p,x=c*m-h*p,S=c*b-y*p,w=l*m-h*d,O=l*b-y*d,v=h*b-y*m;let L=g*v-M*O+B*w+T*S-_*x+E*A;return L?(L=1/L,t[0]=(f*v-u*O+a*w)*L,t[1]=(u*S-o*v-a*x)*L,t[2]=(o*O-f*S+a*A)*L,t[3]=(s*O-n*v-i*w)*L,t[4]=(r*v-s*S+i*x)*L,t[5]=(n*S-r*O-i*A)*L,t[6]=(d*E-m*_+b*T)*L,t[7]=(m*B-p*E-b*M)*L,t[8]=(p*_-d*B+b*g)*L,t):null}function y(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t}function p(t){const e=(0,n.Au)(),r=t[0],s=t[1],i=t[2],o=t[3],f=t[4],u=t[5],a=t[6],c=t[7],l=t[8];return Math.abs(1-(r*r+o*o+a*a))<=e&&Math.abs(1-(s*s+f*f+c*c))<=e&&Math.abs(1-(i*i+u*u+l*l))<=e}const d=a,m=y;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t},adjoint:u,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],r=t[1],n=t[2],s=t[3],i=t[4],o=t[5],f=t[6],u=t[7],a=t[8];return e*(a*i-o*u)+r*(-a*s+o*f)+n*(u*s-i*f)},equals:function(t,e){const r=t[0],s=t[1],i=t[2],o=t[3],f=t[4],u=t[5],a=t[6],c=t[7],l=t[8],h=e[0],y=e[1],p=e[2],d=e[3],m=e[4],b=e[5],g=e[6],M=e[7],B=e[8],T=(0,n.Au)();return Math.abs(r-h)<=T*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(s-y)<=T*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(i-p)<=T*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(o-d)<=T*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(f-m)<=T*Math.max(1,Math.abs(f),Math.abs(m))&&Math.abs(u-b)<=T*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(a-g)<=T*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(c-M)<=T*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(l-B)<=T*Math.max(1,Math.abs(l),Math.abs(B))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[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,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:s,fromQuat:l,fromRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[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:f,isOrthoNormal:p,mul:d,multiply:a,multiplyScalar:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t},multiplyScalarAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t},normalFromMat4:h,normalFromMat4Legacy:function(t,e){const r=e[0],n=e[1],s=e[2],i=e[4],o=e[5],f=e[6],u=e[8],a=e[9],c=e[10],l=c*o-f*a,h=-c*i+f*u,y=a*i-o*u,p=r*l+n*h+s*y;if(!p)return null;const d=1/p;return t[0]=l*d,t[1]=(-c*n+s*a)*d,t[2]=(f*n-s*o)*d,t[3]=h*d,t[4]=(c*r-s*u)*d,t[5]=(-f*r+s*i)*d,t[6]=y*d,t[7]=(-a*r+n*u)*d,t[8]=(o*r-n*i)*d,t},projection:function(t,e,r){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=e[4],u=e[5],a=e[6],c=e[7],l=e[8],h=Math.sin(r),y=Math.cos(r);return t[0]=y*n+h*o,t[1]=y*s+h*f,t[2]=y*i+h*u,t[3]=y*o-h*n,t[4]=y*f-h*s,t[5]=y*u-h*i,t[6]=a,t[7]=c,t[8]=l,t},scale:c,scaleByVec2:function(t,e,r){const n=r[0],s=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[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:m,subtract:y,translate:function(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=e[4],u=e[5],a=e[6],c=e[7],l=e[8],h=r[0],y=r[1];return t[0]=n,t[1]=s,t[2]=i,t[3]=o,t[4]=f,t[5]=u,t[6]=h*n+y*o+a,t[7]=h*s+y*f+c,t[8]=h*i+y*u+l,t},transpose:o},Symbol.toStringTag,{value:"Module"}))},41512:(t,e,r)=>{r.d(e,{C0:()=>c,WO:()=>b,Wu:()=>d,fO:()=>y,iW:()=>l,sF:()=>O,yG:()=>a});var n=r(68612),s=r(2620),i=r(62484),o=r(47364),f=r(98472),u=r(74784);function a(t,e,r){r*=.5;const n=Math.sin(r);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(r),t}function c(t,e){const r=2*Math.acos(e[3]),n=Math.sin(r/2);return n>(0,o.Au)()?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r}function l(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=r[0],u=r[1],a=r[2],c=r[3];return t[0]=n*c+o*f+s*a-i*u,t[1]=s*c+o*u+i*f-n*a,t[2]=i*c+o*a+n*u-s*f,t[3]=o*c-n*f-s*u-i*a,t}function h(t,e,r,n){const s=e[0],i=e[1],f=e[2],u=e[3];let a,c,l,h,y,p=r[0],d=r[1],m=r[2],b=r[3];return c=s*p+i*d+f*m+u*b,c<0&&(c=-c,p=-p,d=-d,m=-m,b=-b),1-c>(0,o.Au)()?(a=Math.acos(c),l=Math.sin(a),h=Math.sin((1-n)*a)/l,y=Math.sin(n*a)/l):(h=1-n,y=n),t[0]=h*s+y*p,t[1]=h*i+y*d,t[2]=h*f+y*m,t[3]=h*u+y*b,t}function y(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function p(t,e){const r=e[0]+e[4]+e[8];let n;if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);const s=(r+1)%3,i=(r+2)%3;n=Math.sqrt(e[3*r+r]-e[3*s+s]-e[3*i+i]+1),t[r]=.5*n,n=.5/n,t[3]=(e[3*s+i]-e[3*i+s])*n,t[s]=(e[3*s+r]+e[3*r+s])*n,t[i]=(e[3*i+r]+e[3*r+i])*n}return t}function d(t,e,r,n){const s=.5*Math.PI/180;e*=s,r*=s,n*=s;const i=Math.sin(e),o=Math.cos(e),f=Math.sin(r),u=Math.cos(r),a=Math.sin(n),c=Math.cos(n);return t[0]=i*u*c-o*f*a,t[1]=o*f*c+i*u*a,t[2]=o*u*a-i*f*c,t[3]=o*u*c+i*f*a,t}const m=u.c,b=u.s,g=u.g,M=l,B=u.d,T=u.h,_=u.l,E=u.i,A=E,x=u.j,S=x,w=u.n,O=u.a,v=u.e,L=(0,i.Su)(),P=(0,i.WK)(1,0,0),C=(0,i.WK)(0,1,0),Y=(0,s.Su)(),F=(0,s.Su)(),R=(0,n.Su)();Object.freeze(Object.defineProperty({__proto__:null,add:g,calculateW:function(t,e){const r=e[0],n=e[1],s=e[2];return t[0]=r,t[1]=n,t[2]=s,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-s*s)),t},conjugate:y,copy:m,dot:T,equals:v,exactEquals:O,fromEuler:d,fromMat3:p,getAxisAngle:c,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=r*r+n*n+s*s+i*i,f=o?1/o:0;return t[0]=-r*f,t[1]=-n*f,t[2]=-s*f,t[3]=i*f,t},len:A,length:E,lerp:_,mul:M,multiply:l,normalize:w,random:function(t){const e=o.QR,r=e(),n=e(),s=e(),i=Math.sqrt(1-r),f=Math.sqrt(r);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=f*Math.sin(2*Math.PI*s),t[3]=f*Math.cos(2*Math.PI*s),t},rotateX:function(t,e,r){r*=.5;const n=e[0],s=e[1],i=e[2],o=e[3],f=Math.sin(r),u=Math.cos(r);return t[0]=n*u+o*f,t[1]=s*u+i*f,t[2]=i*u-s*f,t[3]=o*u-n*f,t},rotateY:function(t,e,r){r*=.5;const n=e[0],s=e[1],i=e[2],o=e[3],f=Math.sin(r),u=Math.cos(r);return t[0]=n*u-i*f,t[1]=s*u+o*f,t[2]=i*u+n*f,t[3]=o*u-s*f,t},rotateZ:function(t,e,r){r*=.5;const n=e[0],s=e[1],i=e[2],o=e[3],f=Math.sin(r),u=Math.cos(r);return t[0]=n*u+s*f,t[1]=s*u-n*f,t[2]=i*u+o*f,t[3]=o*u-i*f,t},rotationTo:function(t,e,r){const n=(0,f.j)(e,r);return n<-.999999?((0,f.b)(L,P,e),(0,f.C)(L)<1e-6&&(0,f.b)(L,C,e),(0,f.n)(L,L),a(t,L,Math.PI),t):n>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,f.b)(L,e,r),t[0]=L[0],t[1]=L[1],t[2]=L[2],t[3]=1+n,w(t,t))},scale:B,set:b,setAxes:function(t,e,r,n){const s=R;return s[0]=r[0],s[3]=r[1],s[6]=r[2],s[1]=n[0],s[4]=n[1],s[7]=n[2],s[2]=-e[0],s[5]=-e[1],s[8]=-e[2],w(t,p(t,s))},setAxisAngle:a,slerp:h,sqlerp:function(t,e,r,n,s,i){return h(Y,e,s,i),h(F,r,n,i),h(t,Y,F,2*i*(1-i)),t},sqrLen:S,squaredLength:x,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},37648:(t,e,r)=>{r.d(e,{Cq:()=>h,WO:()=>s,c9:()=>p,m4:()=>y,qy:()=>u});var n=r(47364);function s(t,e,r){return t[0]=e,t[1]=r,t}function i(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function o(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function f(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function u(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function a(t,e){const r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function c(t){const e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function l(t){const e=t[0],r=t[1];return e*e+r*r}function h(t,e,r,n){const s=e[0],i=e[1];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t}function y(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s+r[4],t[1]=r[1]*n+r[3]*s+r[5],t}function p(t,e,r,n){const s=e[0]-r[0],i=e[1]-r[1],o=Math.sin(n),f=Math.cos(n);return t[0]=s*f-i*o+r[0],t[1]=s*o+i*f+r[1],t}const d=c,m=i,b=o,g=f,M=u,B=a,T=l;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t},angle:function(t,e){const r=t[0],n=t[1],s=e[0],i=e[1];let o=r*r+n*n;o>0&&(o=1/Math.sqrt(o));let f=s*s+i*i;f>0&&(f=1/Math.sqrt(f));const u=(r*s+n*i)*o*f;return u>1?0:u<-1?Math.PI:Math.acos(u)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,r){const n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},dist:M,distance:u,div:g,divide:f,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const r=t[0],s=t[1],i=e[0],o=e[1],f=(0,n.Au)();return Math.abs(r-i)<=f*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(s-o)<=f*Math.max(1,Math.abs(s),Math.abs(o))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:d,length:c,lerp:h,max:function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t},min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},mul:b,multiply:o,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const r=e[0],n=e[1];let s=r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t},projectAndScale:function(t,e,r,n,s){let i=e[0]-r[0],o=e[1]-r[1];const f=(n[0]*i+n[1]*o)*(s-1);return i=n[0]*f,o=n[1]*f,t[0]=e[0]+i,t[1]=e[1]+o,t},random:function(t,e){e=e||1;const r=2*(0,n.QR)()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},rotate:p,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t},scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t},set:s,sqrDist:B,sqrLen:T,squaredDistance:a,squaredLength:l,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:m,subtract:i,transformMat2:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s,t[1]=r[1]*n+r[3]*s,t},transformMat2d:y,transformMat3:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[3]*s+r[6],t[1]=r[1]*n+r[4]*s+r[7],t},transformMat4:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[4]*s+r[12],t[1]=r[1]*n+r[5]*s+r[13],t}},Symbol.toStringTag,{value:"Module"}))},3024:(t,e,r)=>{r.d(e,{U:()=>o});var n=r(92400),s=r(24680),i=r(85304);class o{constructor(t=9,e){this._compareMinX=c,this._compareMinY=l,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),M.prune(),B.prune(),T.prune(),_.prune()}all(t){this._all(this._data,t)}search(t,e){let r=this._data;const n=this._toBBox;if(b(t,r))for(M.clear();r;){for(let s=0,i=r.children.length;s<i;s++){const i=r.children[s],o=r.leaf?n(i):i;b(t,o)&&(r.leaf?e(i):m(t,o)?this._all(i,e):M.push(i))}r=M.pop()}}collides(t){let e=this._data;const r=this._toBBox;if(!b(t,e))return!1;for(M.clear();e;){for(let n=0,s=e.children.length;n<s;n++){const s=e.children[n],i=e.leaf?r(s):s;if(b(t,i)){if(e.leaf||m(t,i))return!0;M.push(s)}}e=M.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,r=t.length;e<r;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new x([]),this}remove(t){if(!t)return this;let e,r=this._data,s=null,i=0,o=!1;const f=this._toBBox(t);for(T.clear(),_.clear();r||T.length>0;){if(r||(r=T.pop(),s=T.data[T.length-1],i=_.pop()??0,o=!0),r.leaf&&(e=(0,n.IP)(r.children,t,r.children.length,r.indexHint),-1!==e))return r.children.splice(e,1),T.push(r),this._condense(T),this;o||r.leaf||!m(r,f)?s?(i++,r=s.children[i],o=!1):r=null:(T.push(r),_.push(i),i=0,s=r,r=r.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let r=t;for(B.clear();r;){if(!0===r.leaf)for(const t of r.children)e(t);else B.pushArray(r.children);r=B.pop()??null}}_build(t,e,r,n){const s=r-e+1;let i=this._maxEntries;if(s<=i){const n=new x(t.slice(e,r+1));return f(n,this._toBBox),n}n||(n=Math.ceil(Math.log(s)/Math.log(i)),i=Math.ceil(s/i**(n-1)));const o=new S([]);o.height=n;const u=Math.ceil(s/i),a=u*Math.ceil(Math.sqrt(i));g(t,e,r,a,this._compareMinX);for(let s=e;s<=r;s+=a){const e=Math.min(s+a-1,r);g(t,s,e,u,this._compareMinY);for(let r=s;r<=e;r+=u){const s=Math.min(r+u-1,e);o.children.push(this._build(t,r,s,n-1))}}return f(o,this._toBBox),o}_chooseSubtree(t,e,r,n){for(;n.push(e),!0!==e.leaf&&n.length-1!==r;){let r,n=1/0,s=1/0;for(let i=0,o=e.children.length;i<o;i++){const o=e.children[i],f=h(o),u=p(t,o)-f;u<s?(s=u,n=f<n?f:n,r=o):u===s&&f<n&&(n=f,r=o)}e=r||e.children[0]}return e}_insert(t,e,r){const n=this._toBBox,s=r?t:n(t);T.clear();const i=this._chooseSubtree(s,this._data,e,T);for(i.children.push(t),a(i,s);e>=0&&T.data[e].children.length>this._maxEntries;)this._split(T,e),e--;this._adjustParentBBoxes(s,T,e)}_split(t,e){const r=t.data[e],n=r.children.length,s=this._minEntries;this._chooseSplitAxis(r,s,n);const i=this._chooseSplitIndex(r,s,n);if(!i)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=r.children.splice(i,r.children.length-i),u=r.leaf?new x(o):new S(o);u.height=r.height,f(r,this._toBBox),f(u,this._toBBox),e?t.data[e-1].children.push(u):this._splitRoot(r,u)}_splitRoot(t,e){this._data=new S([t,e]),this._data.height=t.height+1,f(this._data,this._toBBox)}_chooseSplitIndex(t,e,r){let n,s,i;n=s=1/0;for(let o=e;o<=r-e;o++){const e=u(t,0,o,this._toBBox),f=u(t,o,r,this._toBBox),a=d(e,f),c=h(e)+h(f);a<n?(n=a,i=o,s=c<s?c:s):a===n&&c<s&&(s=c,i=o)}return i}_chooseSplitAxis(t,e,r){const n=t.leaf?this._compareMinX:c,s=t.leaf?this._compareMinY:l;this._allDistMargin(t,e,r,n)<this._allDistMargin(t,e,r,s)&&t.children.sort(n)}_allDistMargin(t,e,r,n){t.children.sort(n);const s=this._toBBox,i=u(t,0,e,s),o=u(t,r-e,r,s);let f=y(i)+y(o);for(let n=e;n<r-e;n++){const e=t.children[n];a(i,t.leaf?s(e):e),f+=y(i)}for(let n=r-e-1;n>=e;n--){const e=t.children[n];a(o,t.leaf?s(e):e),f+=y(o)}return f}_adjustParentBBoxes(t,e,r){for(let n=r;n>=0;n--)a(e.data[n],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const r=t.data[e];if(0===r.children.length)if(e>0){const s=t.data[e-1],i=s.children;i.splice((0,n.IP)(i,r,i.length,s.indexHint),1)}else this.clear();else f(r,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.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 f(t,e){u(t,0,t.children.length,e,t)}function u(t,e,r,n,s){s||(s=new x([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let i,o=e;o<r;o++)i=t.children[o],a(s,t.leaf?n(i):i);return s}function a(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function l(t,e){return t.minY-e.minY}function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function y(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function d(t,e){const r=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,s-r)*Math.max(0,i-n)}function m(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function b(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function g(t,e,r,n,s){const o=[e,r];for(;o.length;){const e=o.pop(),r=o.pop();if(e-r<=n)continue;const f=r+Math.ceil((e-r)/n/2)*n;(0,i.q)(t,f,r,e,s),o.push(r,f,f,e)}}const M=new s.c,B=new s.c,T=new s.c,_=new s.c({deallocator:void 0});class E{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class A extends E{constructor(){super(...arguments),this.height=1,this.indexHint=new n.is}}class x extends A{constructor(t){super(),this.children=t,this.leaf=!0}}class S extends A{constructor(t){super(),this.children=t,this.leaf=!1}}},51120:(t,e,r)=>{r.d(e,{y:()=>a});var n=r(53648),s=r(15008),i=r(62484);function o(t,e,r){const n=Math.sin(t),s=Math.cos(t),i=Math.sin(e),o=Math.cos(e),f=r;return f[0]=-n,f[4]=-i*s,f[8]=o*s,f[12]=0,f[1]=s,f[5]=-i*n,f[9]=o*n,f[13]=0,f[2]=0,f[6]=o,f[10]=i,f[14]=0,f[3]=0,f[7]=0,f[11]=0,f[15]=1,f}var f=r(38380),u=r(60544);function a(t,e,r,n){if(null==t||null==n)return!1;const i=(0,f.Se)(t,f.Wy),a=(0,f.Se)(n,f.mq);if(i===a&&!c(a)&&(i!==f.o3.UNKNOWN||(0,u.yK)(t,n)))return(0,s.mu)(r,e),!0;if(c(a)){const t=f.yw[i][f.o3.LON_LAT],n=f.yw[f.o3.LON_LAT][a];return null!=t&&null!=n&&(t(e,0,h,0),n(h,0,y,0),o(l*h[0],l*h[1],r),r[12]=y[0],r[13]=y[1],r[14]=y[2],!0)}if((a===f.o3.WEB_MERCATOR||a===f.o3.PLATE_CARREE||a===f.o3.WGS84)&&(i===f.o3.WGS84||i===f.o3.CGCS2000&&a===f.o3.PLATE_CARREE||i===f.o3.SPHERICAL_ECEF||i===f.o3.WEB_MERCATOR)){const t=f.yw[i][f.o3.LON_LAT],n=f.yw[f.o3.LON_LAT][a];return null!=t&&null!=n&&(t(e,0,h,0),n(h,0,y,0),i===f.o3.SPHERICAL_ECEF?function(t,e,r){o(t,e,r),(0,s.oL)(r,r)}(l*h[0],l*h[1],r):(0,s.ZX)(r),r[12]=y[0],r[13]=y[1],r[14]=y[2],!0)}return!1}function c(t){return t===f.o3.SPHERICAL_ECEF||t===f.o3.SPHERICAL_MARS_PCPF||t===f.o3.SPHERICAL_MOON_PCPF}const l=(0,n.EF)(1),h=(0,i.Su)(),y=(0,i.Su)()},82448:(t,e,r)=>{r.d(e,{_s:()=>a});var n=r(22080),s=r(56156),i=r(60544);const o=new s.c(n._),f=new s.c(n.IP),u=new s.c(n.Om);function a(t){const e=c.get(t);if(e)return e;let r=o;if(t)if(t===f)r=f;else if(t===u)r=u;else{const e=t.wkid,n=t.latestWkid;if(null!=e||null!=n)(0,i.cJ)(e)||(0,i.cJ)(n)?r=f:((0,i.C_)(e)||(0,i.C_)(n))&&(r=u);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===l?r=f:t===h&&(r=u)}}}return c.set(t,r),r}new s.c(n.MJ);const c=new Map,l=f.wkt.toUpperCase(),h=u.wkt.toUpperCase()},15688:(t,e,r)=>{r.d(e,{Gg:()=>s,cp:()=>i,lL:()=>o,mw:()=>f,qW:()=>u});var n=r(72008);function s(t,e=!1){return t<=n._?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function i(t){return((0,n.c7)(t)?t.length:t.byteLength/8)<=n._?Array.from(t):new Float64Array(t)}function o(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function f(t,e){for(let r=0;r<e.length;++r)t[r]=e[r];return t}function u(t){return Array.isArray(t)?new Float64Array(t):t}},51232:(t,e,r)=>{r.d(e,{c:()=>c});var n=r(41948),s=r(3856),i=r(40504),o=r(1580),f=(r(9456),r(66360),r(72052),r(9968)),u=r(12552);let a=class extends((0,s.q)(i.am)){constructor(t){super(t),this.type="georeferenced",this.origin=null}};(0,n._)([(0,f.G)({georeferenced:"georeferenced"},{readOnly:!0})],a.prototype,"type",void 0),(0,n._)([(0,o.qq)({type:[Number],nonNullable:!1,json:{write:!0}})],a.prototype,"origin",void 0),a=(0,n._)([(0,u.c)("esri.geometry.support.MeshGeoreferencedVertexSpace")],a);const c=a},13708:(t,e,r)=>{r.d(e,{c:()=>l});var n=r(41948),s=r(3856),i=r(40504),o=r(1580),f=(r(9456),r(66360),r(72052),r(9968)),u=r(12552),a=r(62484);let c=class extends((0,s.q)(i.am)){constructor(t){super(t),this.type="local",this.origin=(0,a.Su)()}};(0,n._)([(0,f.G)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,n._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,n._)([(0,u.c)("esri.geometry.support.MeshLocalVertexSpace")],c);const l=c},41104:(t,e,r)=>{r.d(e,{c:()=>b});var n,s=r(41948),i=r(40504),o=r(1580),f=(r(9456),r(66360),r(72052),r(12552)),u=r(15008),a=r(87104),c=r(41512),l=r(2620),h=r(98472),y=r(62484),p=r(66952);let d=n=class extends i.am{constructor(t){super(t),this.translation=(0,y.Su)(),this.rotationAxis=(0,y.eu)(p.up),this.rotationAngle=0,this.scale=(0,y.WK)(1,1,1)}get rotation(){return(0,p.eE)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,y.ct)((0,p.Yz)(t)),this.rotationAngle=(0,p.i4)(t)}get localMatrix(){const t=(0,a.Su)();return(0,c.yG)(m,(0,p.Yz)(this.rotation),(0,p.kX)(this.rotation)),(0,u.um)(t,m,this.translation,this.scale),t}get localMatrixInverse(){return(0,u.S_)((0,a.Su)(),this.localMatrix)}applyLocal(t,e){return(0,h.e)(e,t,this.localMatrix)}applyLocalInverse(t,e){return(0,h.e)(e,t,this.localMatrixInverse)}equals(t){return this===t||null!=t&&(0,u.sF)(this.localMatrix,t.localMatrix)}clone(){const t={translation:(0,y.ct)(this.translation),rotationAxis:(0,y.ct)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,y.ct)(this.scale)};return new n(t)}};(0,s._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"translation",void 0),(0,s._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAxis",void 0),(0,s._)([(0,o.qq)({type:Number,nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAngle",void 0),(0,s._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"scale",void 0),(0,s._)([(0,o.qq)()],d.prototype,"rotation",null),(0,s._)([(0,o.qq)()],d.prototype,"localMatrix",null),(0,s._)([(0,o.qq)()],d.prototype,"localMatrixInverse",null),d=n=(0,s._)([(0,f.c)("esri.geometry.support.MeshTransform")],d);const m=(0,l.Su)(),b=d},66952:(t,e,r)=>{r.d(e,{GA:()=>l,Jn:()=>c,Su:()=>u,Yz:()=>h,eE:()=>a,i4:()=>y,kX:()=>p,up:()=>d});var n=r(53648),s=r(41512),i=r(2620),o=r(98472),f=r(62484);function u(t=d){return[t[0],t[1],t[2],t[3]]}function a(t,e,r=u()){return(0,o.c)(r,t),r[3]=e,r}function c(t,e,r=u()){return(0,s.yG)(m,t,p(t)),(0,s.yG)(b,e,p(e)),(0,s.iW)(m,b,m),function(t,e){return t[3]=e,t}(r,(0,n.UB)((0,s.C0)(r,m)))}function l(t,e,r,n=u()){return a(f.UV,t,g),a(f.IR,e,M),a(f.wx,r,B),c(g,M,g),c(g,B,n),n}function h(t){return t}function y(t){return t[3]}function p(t){return(0,n.EF)(t[3])}r(37008);const d=[0,0,1,0],m=(0,i.Su)(),b=(0,i.Su)(),g=(u(),u()),M=u(),B=u()},71004:(t,e,r)=>{r.d(e,{AZ:()=>h,oN:()=>B,Mt:()=>j,Ep:()=>k,kV:()=>q,Ko:()=>m,m_:()=>b,IL:()=>g,mF:()=>M,E_:()=>O,Ym:()=>C,Kg:()=>A,U7:()=>y,wT:()=>T,iN:()=>W,mI:()=>z,oR:()=>I,kg:()=>v,qZ:()=>Y,eS:()=>x,Yj:()=>p,Ax:()=>_,g7:()=>U,Yv:()=>G,Oq:()=>N,k5:()=>L,ER:()=>F,IN:()=>S,_5:()=>d,Ip:()=>E,OS:()=>V,i9:()=>J,mq:()=>X,Ig:()=>P,q$:()=>R,sb:()=>w});class n{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}n.ElementCount=9;class s{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;for(let t=0;t<16;++t)n[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}s.ElementCount=16;class i{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}i.ElementCount=1;var o=r(37648);class f{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,o.WO)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}f.ElementCount=2;var u=r(98472);class a{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,u.s)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t]=n}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}a.ElementCount=3;var c=r(74784);class l{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,c.s)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=s}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}l.ElementCount=4;class h extends i{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static fromTypedArray(t,e){return new h(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}h.ElementType="f32";class y extends f{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(y,t,e)}static fromTypedArray(t,e){return new y(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}y.ElementType="f32";class p extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(p,t,e)}static fromTypedArray(t,e){return new p(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}p.ElementType="f32";class d extends l{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(d,t,e)}static fromTypedArray(t,e){return new d(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}d.ElementType="f32";class m extends n{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(m,t,e)}static fromTypedArray(t,e){return new m(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}m.ElementType="f32";class b extends n{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(b,t,e)}static fromTypedArray(t,e){return new b(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}b.ElementType="f64";class g extends s{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(g,t,e)}static fromTypedArray(t,e){return new g(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}g.ElementType="f32";class M extends s{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(M,t,e)}static fromTypedArray(t,e){return new M(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}M.ElementType="f64";class B extends i{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(B,t,e)}static fromTypedArray(t,e){return new B(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}B.ElementType="f64";class T extends f{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(T,t,e)}static fromTypedArray(t,e){return new T(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}T.ElementType="f64";class _ extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(_,t,e)}static fromTypedArray(t,e){return new _(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}_.ElementType="f64";class E extends l{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(E,t,e)}static fromTypedArray(t,e){return new E(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}E.ElementType="f64";class A extends i{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(A,t,e)}static fromTypedArray(t,e){return new A(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}A.ElementType="u8";class x extends f{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(x,t,e)}static fromTypedArray(t,e){return new x(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}x.ElementType="u8";class S extends a{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(S,t,e)}static fromTypedArray(t,e){return new S(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}S.ElementType="u8";class w extends l{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(w,t,e)}static fromTypedArray(t,e){return new w(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}w.ElementType="u8";class O extends i{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(O,t,e)}static fromTypedArray(t,e){return new O(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}O.ElementType="u16";class v extends f{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(v,t,e)}static fromTypedArray(t,e){return new v(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}v.ElementType="u16";class L extends a{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(L,t,e)}static fromTypedArray(t,e){return new L(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}L.ElementType="u16";class P extends l{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(P,t,e)}static fromTypedArray(t,e){return new P(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}P.ElementType="u16";class C extends i{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(C,t,e)}static fromTypedArray(t,e){return new C(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}C.ElementType="u32";class Y extends f{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(Y,t,e)}static fromTypedArray(t,e){return new Y(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}Y.ElementType="u32";class F extends a{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(F,t,e)}static fromTypedArray(t,e){return new F(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}F.ElementType="u32";class R extends l{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(R,t,e)}static fromTypedArray(t,e){return new R(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}R.ElementType="u32";class q extends i{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(q,t,e)}static fromTypedArray(t,e){return new q(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}q.ElementType="i8";class I extends f{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(I,t,e)}static fromTypedArray(t,e){return new I(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}I.ElementType="i8";class N extends a{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(N,t,e)}static fromTypedArray(t,e){return new N(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}N.ElementType="i8";class X extends l{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(X,t,e)}static fromTypedArray(t,e){return new X(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}X.ElementType="i8";class j extends i{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(j,t,e)}static fromTypedArray(t,e){return new j(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}j.ElementType="i16";class W extends f{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(W,t,e)}static fromTypedArray(t,e){return new W(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}W.ElementType="i16";class U extends a{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(U,t,e)}static fromTypedArray(t,e){return new U(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}U.ElementType="i16";class V extends l{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(V,t,e)}static fromTypedArray(t,e){return new V(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}V.ElementType="i16";class k extends i{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(k,t,e)}static fromTypedArray(t,e){return new k(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}k.ElementType="i32";class z extends f{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(z,t,e)}static fromTypedArray(t,e){return new z(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}z.ElementType="i32";class G extends a{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(G,t,e)}static fromTypedArray(t,e){return new G(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}G.ElementType="i32";class J extends l{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(J,t,e)}static fromTypedArray(t,e){return new J(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}J.ElementType="i32"},23704:(t,e,r)=>{r.d(e,{A:()=>s});var n=r(66360);const s=()=>n.c.getLogger("esri.views.3d.support.buffer.math")},58584:(t,e,r)=>{r.r(e),r.d(e,{default:()=>f});var n=r(9456),s=r(3024),i=r(21136),o=r(54828);class f{async createIndex(t,e){const r=new Array;if(!t.vertexAttributes?.position)return new s.U;const n=this._createMeshData(t),i=null!=e?await e.invoke("createIndexThread",n,{transferList:r}):this.createIndexThread(n).result;return this._createPooledRBush().fromJSON(i)}createIndexThread(t){const e=new Float64Array(t.position),r=this._createPooledRBush();return t.components?this._createIndexComponentsThread(r,e,t.components.map((t=>new Uint32Array(t)))):this._createIndexAllThread(r,e)}_createIndexAllThread(t,e){const r=new Array(e.length/9);let n=0;for(let t=0;t<e.length;t+=9)r[n++]=u(e,t,t+3,t+6);return t.load(r),{result:t.toJSON()}}_createIndexComponentsThread(t,e,r){let n=0;for(const t of r)n+=t.length/3;const s=new Array(n);let i=0;for(const t of r)for(let r=0;r<t.length;r+=3)s[i++]=u(e,3*t[r],3*t[r+1],3*t[r+2]);return t.load(s),{result:t.toJSON()}}_createMeshData(t){const e=((0,i.k$)(t.vertexSpace)?(0,o._S)({position:t.vertexAttributes.position,normal:null,tangent:null},t.vertexSpace,t.transform,t.spatialReference).position:t.vertexAttributes.position).buffer;return!t.components||t.components.some((t=>!t.faces))?{position:e}:{position:e,components:t.components.map((t=>t.faces))}}_createPooledRBush(){return new s.U(9,(0,n.c)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}}function u(t,e,r,n){return{minX:Math.min(t[e],t[r],t[n]),maxX:Math.max(t[e],t[r],t[n]),minY:Math.min(t[e+1],t[r+1],t[n+1]),maxY:Math.max(t[e+1],t[r+1],t[n+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[r],t[r+1],t[r+2]],p2:[t[n],t[n+1],t[n+2]]}}},71488:(t,e,r)=>{r.d(e,{Kk:()=>f,QL:()=>u,yO:()=>o});var n=r(26832),s=r(66360),i=r(21136);function o(t,e){return t.isGeographic||t.isWebMercator&&(e??!0)}function f(t,e){switch(t.type){case"georeferenced":return e.isGeographic;case"local":return e.isGeographic||e.isWebMercator}}function u(t,e,r,o){if(void 0!==o){(0,n.O2)(s.c.getLogger(t),"option: geographic",{replacement:"use mesh vertexSpace and spatial reference to control how operations are performed",version:"4.29",warnOnce:!0});const f="local"===e.type;if(!(0,i.k$)(e)||o===f)return r.isGeographic||r.isWebMercator&&o;s.c.getLogger(t).warnOnce(`Specifying the 'geographic' parameter (${o}) for a Mesh vertex space of type "${e.type}" is not supported. This parameter will be ignored.`)}return f(e,r)}},54828:(t,e,r)=>{r.d(e,{CE:()=>T,EX:()=>E,_0:()=>Y,_S:()=>_,iS:()=>x,mC:()=>w,project:()=>S,qu:()=>v});var n=r(24296),s=r(68612),i=r(15008),o=r(87104),f=r(98472),u=r(62484),a=r(77556),c=r(60074),l=r(82448),h=r(51120),y=r(62880),p=r(15688),d=r(41104),m=r(21136),b=r(48952),g=r(71488),M=r(38496);function B(t,e,r){return(0,g.yO)(e.spatialReference,r?.geographic)?w(t,e,!1,r):function(t,e,r){const n=new Float64Array(t.position.length),s=t.position,i=e.x,o=e.y,f=e.z??0,u=Y(r?r.unit:null,e.spatialReference);for(let t=0;t<s.length;t+=3)n[t]=s[t]*u+i,n[t+1]=s[t+1]*u+o,n[t+2]=s[t+2]*u+f;return{position:n,normal:t.normal,tangent:t.tangent}}(t,e,r)}function T(t,e=o.IJ){const{position:r,normal:n,tangent:s}=t;return{position:(0,b.a)(new Float64Array(r.length),r,e),normal:null!=n?(0,M.W4)(n,new Float32Array(n.length),e):null,tangent:null!=s?(0,M.AT)(s,new Float32Array(s.length),e):null}}function _(t,e,r,n){const{position:s,normal:i,tangent:o}=t;if(!(0,m.k$)(e))return{position:s,normal:i,tangent:o};const f=(0,m.mA)(e,n);return B(T(t,r?.localMatrix),f,{geographic:"local"===e.type})}function E(t,e,r){const n=(0,m.Al)(e,r),s=e.spatialReference,i=(0,m.k$)(n);if(!i)return{vertexAttributes:B(t,e,r),vertexSpace:n,transform:null};const{position:o,normal:f,tangent:u}=t,a=(0,g.Kk)(n,s);switch(n.type){case"georeferenced":return a?{vertexAttributes:w(t,e,i,r),vertexSpace:n,transform:null}:{vertexAttributes:{position:o,normal:f,tangent:u},vertexSpace:n,transform:new d.c};case"local":return{vertexAttributes:{position:o,normal:f,tangent:u},vertexSpace:n,transform:new d.c}}}function A(t,e,r){return(0,g.yO)(e.spatialReference,r?.geographic)?v(t,e,r):O(t,e,r)}function x(t,e,r,n,s){if(!(0,m.k$)(e))return A(t,n,s);const{spatialReference:i}=n,o=_(t,e,r,i);return n.equals((0,m.mA)(e,i))?O(o,n,s):A(o,n,s)}function S({positions:t,transform:e,vertexSpace:r,inSpatialReference:n,outSpatialReference:s,outPositions:a,localMode:d}){const m=r.origin??u.cX,g=null!=r.origin?e?.localMatrix??o.IJ:o.IJ;if("georeferenced"===r.type){const e=a??(0,p.Gg)(t.length);if((0,i.yK)(g,o.IJ)?(0,p.mw)(e,t):(0,b.a)(e,t,g),!(0,f.h)(m,u.cX)){const[t,r,n]=m;for(let s=0;s<e.length;s+=3)e[s]+=t,e[s+1]+=r,e[s+2]+=n}return(0,y.projectBuffer)(e,n,0,e,s,0,e.length/3),e}let M=n;const B=(0,l._s)(n);M=s.isWebMercator&&d||!(0,c.canProjectWithoutEngine)(n,B)?M:B,(0,h.y)(n,m,F,M),(0,i.iW)(F,F,g);const T=a??(0,p.Gg)(t.length);return(0,b.a)(T,t,F),(0,y.projectBuffer)(T,M,0,T,s,0,T.length/3),T}function w(t,e,r,n){const s=e.spatialReference,i=L(e,n,F),o=new Float64Array(t.position.length),f=function(t,e,r,n){(0,b.a)(n,t,e);const s=new Float64Array(t.length);return(0,M.o$)(n,s,r)}(t.position,i,s,o),u=(0,a.yy)(q,i),c=function(t,e,r,n,s){if(null==r)return null;const i=new Float32Array(r.length);return(0,b.b)(i,r,n),(0,M.QP)(i,t,e,s,i),i}(f,o,t.normal,u,s),l=function(t,e,r,n,s){if(null==r)return null;const i=new Float32Array(r.length);(0,b.b)(i,r,n,4);for(let t=3;t<i.length;t+=4)i[t]=r[t];return(0,M.Cr)(i,t,e,s,i),i}(f,o,t.tangent,u,s);if(r){const{x:t,y:r,z:n}=e;(0,b.t)(f,f,[-t,-r,-(n??0)])}return{position:f,normal:c,tangent:l}}function O(t,e,r){const n=new Float64Array(t.position.length),s=t.position,i=e.x,o=e.y,f=e.z??0,u=Y(r?r.unit:null,e.spatialReference);for(let t=0;t<s.length;t+=3)n[t]=(s[t]-i)/u,n[t+1]=(s[t+1]-o)/u,n[t+2]=(s[t+2]-f)/u;return{position:n,normal:t.normal,tangent:t.tangent}}function v(t,e,r){const n=e.spatialReference;L(e,r,F);const s=(0,i.S_)(R,F),o=new Float64Array(t.position.length),f=function(t,e,r,n){const s=(0,M.K_)(t,e,n),i=new Float64Array(s.length);return(0,b.a)(i,s,r),i}(t.position,n,s,o),u=(0,a.yy)(q,s);return{position:f,normal:P(t.normal,t.position,o,n,u),tangent:C(t.tangent,t.position,o,n,u)}}function L(t,e,r){(0,h.y)(t.spatialReference,[t.x,t.y,t.z??0],r,(0,l._s)(t.spatialReference));const n=Y(e?e.unit:null,t.spatialReference);return(0,i.aU)(r,r,[n,n,n]),r}function P(t,e,r,n,s){if(null==t)return null;const i=(0,M.cH)(t,e,r,n,new Float32Array(t.length));return(0,b.b)(i,i,s),i}function C(t,e,r,n,s){if(null==t)return null;const i=(0,M.GW)(t,e,r,n,new Float32Array(t.length));return(0,b.b)(i,i,s,4),i}function Y(t,e){if(null==t)return 1;const r=(0,n.eg)(e);return 1/(0,n.ck)(r,"meters",t)}const F=(0,o.Su)(),R=(0,o.Su)(),q=(0,s.Su)()},38496:(t,e,r)=>{r.d(e,{AT:()=>_,Cr:()=>A,GW:()=>E,K_:()=>M,QP:()=>g,W4:()=>T,cH:()=>b,o$:()=>B});var n=r(66360),s=r(77556),i=r(68612),o=r(87104),f=r(98472),u=r(62484),a=r(82448),c=r(51120),l=r(62880),h=r(60544),y=r(29120),p=r(71004),d=r(48952);const m=()=>n.c.getLogger("esri.geometry.support.meshUtils.normalProjection");function b(t,e,r,n,s){return S(n)?(x(O.TO_PCPF,p.Yj.fromTypedArray(t),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s)),s):(m().error("Cannot convert spatial reference to PCPF"),s)}function g(t,e,r,n,s){return S(n)?(x(O.FROM_PCPF,p.Yj.fromTypedArray(t),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s)),s):(m().error("Cannot convert to spatial reference from PCPF"),s)}function M(t,e,r){return(0,l.projectBuffer)(t,e,0,r,(0,a._s)(e),0,t.length/3),r}function B(t,e,r){return(0,l.projectBuffer)(t,(0,a._s)(r),0,e,r,0,t.length/3),e}function T(t,e,r){return(0,s.yy)(Y,r),(0,d.b)(e,t,Y),(0,s.QT)(Y)||(0,d.n)(e,e),e}function _(t,e,r){if((0,s.yy)(Y,r),(0,d.b)(e,t,Y,4),(0,s.QT)(Y)||(0,d.n)(e,e,4),t!==e)for(let r=3;r<t.length;r+=4)e[r]=t[r];return e}function E(t,e,r,n,s){if(!S(n))return m().error("Cannot convert spatial reference to PCPF"),s;x(O.TO_PCPF,p.Yj.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s,4*Float32Array.BYTES_PER_ELEMENT));for(let e=3;e<t.length;e+=4)s[e]=t[e];return s}function A(t,e,r,n,s){if(!S(n))return m().error("Cannot convert to spatial reference from PCPF"),s;x(O.FROM_PCPF,p.Yj.fromTypedArray(t,16),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s,16));for(let e=3;e<t.length;e+=4)s[e]=t[e];return s}function x(t,e,r,n,i,o){if(!e)return;const u=r.count,l=(0,a._s)(i);if(w(i))for(let r=0;r<u;r++)n.getVec(r,L),e.getVec(r,P),(0,c.y)(l,L,C,l),(0,s.kr)(Y,C),t===O.FROM_PCPF&&(0,s.oL)(Y,Y),(0,f.t)(P,P,Y),o.setVec(r,P);else for(let i=0;i<u;i++){n.getVec(i,L),e.getVec(i,P),(0,c.y)(l,L,C,l),(0,s.kr)(Y,C);const u=(0,y.MB)(r.get(i,1));let a=Math.cos(u);t===O.TO_PCPF&&(a=1/a),Y[0]*=a,Y[1]*=a,Y[2]*=a,Y[3]*=a,Y[4]*=a,Y[5]*=a,t===O.FROM_PCPF&&(0,s.oL)(Y,Y),(0,f.t)(P,P,Y),(0,f.n)(P,P),o.setVec(i,P)}return o}function S(t){return w(t)||function(t){return t.isWebMercator}(t)}function w(t){return t.isWGS84||(0,h.Ub)(t)||(0,h.qg)(t)||(0,h.UB)(t)}var O,v;(v=O||(O={}))[v.TO_PCPF=0]="TO_PCPF",v[v.FROM_PCPF=1]="FROM_PCPF";const L=(0,u.Su)(),P=(0,u.Su)(),C=(0,o.Su)(),Y=(0,i.Su)()},21136:(t,e,r)=>{r.d(e,{Al:()=>y,k$:()=>l,mA:()=>h,wX:()=>c});var n=r(26832),s=r(66360),i=r(67776),o=r(51232),f=r(13708),u=r(48952);function a(){return s.c.getLogger("esri.geometry.Mesh")}function c(t){const{vertexSpace:e}=t;if(null!=e.origin)return t.clone();const{anchor:r}=t,n=r.clone(),s=new o.c({origin:[n.x,n.y,n.z]}),i=t.cloneWithVertexSpace(s),{position:f}=i.vertexAttributes;return i.vertexAttributes.position=(0,u.t)(new Float64Array(f.length),f,[-n.x,-n.y,-(n.z??0)]),i.vertexAttributesChanged(),i}function l(t){return null!=t.origin}function h(t,e){if(!l(t))return null;const[r,n,s]=t.origin;return new i.c({x:r,y:n,z:s,spatialReference:e})}function y(t,e){const{x:r,y:s,z:i,spatialReference:u}=t,c=[r,s,i??0];if(void 0!==e?.geographic){if((0,n.O2)(a(),"option: geographic",{replacement:"use vertexSpace option instead",version:"4.29",warnOnce:!0}),!e?.vertexSpace)return e?.geographic?new f.c({origin:c}):new o.c({origin:c});a().warn("Deprecated geographic flag ignored since vertexSpace option is provided.")}if(!e?.vertexSpace)return u.isGeographic||u.isWebMercator?new f.c({origin:c}):new o.c({origin:c});switch(e.vertexSpace){case"local":return new f.c({origin:c});case"georeferenced":return new o.c({origin:c});case"georeferenced-absolute":return new o.c}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6248,6147,4828],{8528:(t,e,r)=>{r.d(e,{c:()=>n,g:()=>s});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},85304:(t,e,r)=>{r.d(e,{q:()=>u});var n,s,i,o=r(8528),f={exports:{}};n=f,s=function(){function t(r,n,s,i,o){for(;i>s;){if(i-s>600){var f=i-s+1,u=n-s+1,a=Math.log(f),c=.5*Math.exp(2*a/3),l=.5*Math.sqrt(a*c*(f-c)/f)*(u-f/2<0?-1:1);t(r,n,Math.max(s,Math.floor(n-u*c/f+l)),Math.min(i,Math.floor(n+(f-u)*c/f+l)),o)}var h=r[n],y=s,p=i;for(e(r,s,n),o(r[i],h)>0&&e(r,s,i);y<p;){for(e(r,y,p),y++,p--;o(r[y],h)<0;)y++;for(;o(r[p],h)>0;)p--}0===o(r[s],h)?e(r,s,p):e(r,++p,i),p<=n&&(s=p+1),n<=p&&(i=p-1)}}function e(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function r(t,e){return t<e?-1:t>e?1:0}return function(e,n,s,i,o){t(e,n,s||0,i||e.length-1,o||r)}},void 0!==(i=s())&&(n.exports=i);const u=(0,o.g)(f.exports)},48952:(t,e,r)=>{r.d(e,{a:()=>i,b:()=>f,c:()=>o,d:()=>s,e:()=>l,f:()=>u,n:()=>h,s:()=>a,t:()=>c}),r(9456);var n=r(23704);function s(t,e,r){i(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function i(t,e,r,n=3,s=n){if(t.length/n!==Math.ceil(e.length/s))return t;const i=t.length/n,o=r[0],f=r[1],u=r[2],a=r[4],c=r[5],l=r[6],h=r[8],y=r[9],p=r[10],d=r[12],m=r[13],g=r[14];let b=0,M=0;for(let r=0;r<i;r++){const r=e[b],i=e[b+1],B=e[b+2];t[M]=o*r+a*i+h*B+d,t[M+1]=f*r+c*i+y*B+m,t[M+2]=u*r+l*i+p*B+g,b+=s,M+=n}return t}function o(t,e,r){f(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function f(t,e,r,s=3,i=s){if(t.length/s!==Math.ceil(e.length/i))return void(0,n.A)().error("source and destination buffers need to have the same number of elements");const o=t.length/s,f=r[0],u=r[1],a=r[2],c=r[3],l=r[4],h=r[5],y=r[6],p=r[7],d=r[8];let m=0,g=0;for(let r=0;r<o;r++){const r=e[m],n=e[m+1],o=e[m+2];t[g]=f*r+c*n+y*o,t[g+1]=u*r+l*n+p*o,t[g+2]=a*r+h*n+d*o,m+=i,g+=s}}function u(t,e,r){a(t.typedBuffer,e,r,t.typedBufferStride)}function a(t,e,r,n=3){const s=Math.min(t.length/n,e.count),i=e.typedBuffer,o=e.typedBufferStride;let f=0,u=0;for(let e=0;e<s;e++)t[u]=r*i[f],t[u+1]=r*i[f+1],t[u+2]=r*i[f+2],f+=o,u+=n}function c(t,e,r,n=3,s=n){const i=t.length/n;if(i!==Math.ceil(e.length/s))return t;let o=0,f=0;for(let u=0;u<i;u++)t[f]=e[o]+r[0],t[f+1]=e[o+1]+r[1],t[f+2]=e[o+2]+r[2],o+=s,f+=n;return t}function l(t,e){h(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function h(t,e,r=3,n=r){const s=Math.min(t.length/r,e.length/n);let i=0,o=0;for(let f=0;f<s;f++){const s=e[i],f=e[i+1],u=e[i+2],a=s*s+f*f+u*u;if(a>0){const e=1/Math.sqrt(a);t[o]=e*s,t[o+1]=e*f,t[o+2]=e*u}i+=n,o+=r}}Object.freeze(Object.defineProperty({__proto__:null,normalize:h,normalizeView:l,scale:a,scaleView:u,shiftRight:function(t,e,r){const n=Math.min(t.count,e.count),s=t.typedBuffer,i=t.typedBufferStride,o=e.typedBuffer,f=e.typedBufferStride;let u=0,a=0;for(let t=0;t<n;t++)s[a]=o[u]>>r,s[a+1]=o[u+1]>>r,s[a+2]=o[u+2]>>r,u+=f,a+=i},transformMat3:f,transformMat3View:o,transformMat4:i,transformMat4View:s,translate:c},Symbol.toStringTag,{value:"Module"}))},3856:(t,e,r)=>{r.d(e,{m:()=>l,q:()=>c});var n=r(41948),s=r(43780),i=(r(9456),r(62088)),o=(r(66360),r(70680)),f=r(71448),u=r(20916),a=r(12552);const c=t=>{let e=class extends t{clone(){const t=(0,u.m6)(this);(0,o.EN)(t,"unable to clone instance of non-accessor class");const e=t.metadata,r=t.store,n={},s=new Map;for(const t in e){const o=e[t],u=r?.originOf(t),a=o.clonable;if(o.readOnly||!1===a||u!==f.sT.USER&&u!==f.sT.DEFAULTS&&u!==f.sT.WEB_MAP&&u!==f.sT.WEB_SCENE)continue;const c=this[t];let l=null;l="function"==typeof a?a(c):"reference"===a?c:(0,i.gx)(c),null!=c&&null==l||(u===f.sT.DEFAULTS?s.set(t,l):n[t]=l)}const a=new(0,Object.getPrototypeOf(this).constructor)(n);if(s.size){const t=(0,u.m6)(a)?.store;if(t)for(const[e,r]of s)t.set(e,r,f.sT.DEFAULTS)}return a}};return e=(0,n._)([(0,a.c)("esri.core.Clonable")],e),e};let l=class extends(c(s.c)){};l=(0,n._)([(0,a.c)("esri.core.Clonable")],l)},9592:(t,e,r)=>{r.d(e,{n:()=>s});var n=r(50504);class s extends n.g{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},68612:(t,e,r)=>{function n(){return[1,0,0,0,1,0,0,0,1]}function s(t,e,r,n,s,i,o,f,u){return[t,e,r,n,s,i,o,f,u]}r.d(e,{IJ:()=>i,Su:()=>n,WK:()=>s});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:n,createView:function(t,e){return new Float64Array(t,e,9)},fromValues:s},Symbol.toStringTag,{value:"Module"}))},87104:(t,e,r)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(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]]}r.d(e,{IJ:()=>i,Su:()=>n,ct:()=>s});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:s,create:n,createView:function(t,e){return new Float64Array(t,e,16)},fromValues:function(t,e,r,n,s,i,o,f,u,a,c,l,h,y,p,d){return[t,e,r,n,s,i,o,f,u,a,c,l,h,y,p,d]}},Symbol.toStringTag,{value:"Module"}))},2620:(t,e,r)=>{function n(){return[0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3]]}r.d(e,{IJ:()=>i,Su:()=>n,ct:()=>s});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,createView:function(t,e){return new Float64Array(t,e,4)},fromValues:function(t,e,r,n){return[t,e,r,n]}},Symbol.toStringTag,{value:"Module"}))},77556:(t,e,r)=>{r.d(e,{KU:()=>l,QT:()=>p,S_:()=>f,WO:()=>i,_7:()=>u,aU:()=>c,iW:()=>a,kr:()=>s,oL:()=>o,yy:()=>h});var n=r(47364);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,r,n,s,i,o,f,u,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=s,t[4]=i,t[5]=o,t[6]=f,t[7]=u,t[8]=a,t}function o(t,e){if(t===e){const r=e[1],n=e[2],s=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=s}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function f(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=e[4],f=e[5],u=e[6],a=e[7],c=e[8],l=c*o-f*a,h=-c*i+f*u,y=a*i-o*u;let p=r*l+n*h+s*y;return p?(p=1/p,t[0]=l*p,t[1]=(-c*n+s*a)*p,t[2]=(f*n-s*o)*p,t[3]=h*p,t[4]=(c*r-s*u)*p,t[5]=(-f*r+s*i)*p,t[6]=y*p,t[7]=(-a*r+n*u)*p,t[8]=(o*r-n*i)*p,t):null}function u(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=e[4],f=e[5],u=e[6],a=e[7],c=e[8];return t[0]=o*c-f*a,t[1]=s*a-n*c,t[2]=n*f-s*o,t[3]=f*u-i*c,t[4]=r*c-s*u,t[5]=s*i-r*f,t[6]=i*a-o*u,t[7]=n*u-r*a,t[8]=r*o-n*i,t}function a(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=e[4],u=e[5],a=e[6],c=e[7],l=e[8],h=r[0],y=r[1],p=r[2],d=r[3],m=r[4],g=r[5],b=r[6],M=r[7],B=r[8];return t[0]=h*n+y*o+p*a,t[1]=h*s+y*f+p*c,t[2]=h*i+y*u+p*l,t[3]=d*n+m*o+g*a,t[4]=d*s+m*f+g*c,t[5]=d*i+m*u+g*l,t[6]=b*n+M*o+B*a,t[7]=b*s+M*f+B*c,t[8]=b*i+M*u+B*l,t}function c(t,e,r){const n=r[0],s=r[1],i=r[2];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t}function l(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=r+r,f=n+n,u=s+s,a=r*o,c=n*o,l=n*f,h=s*o,y=s*f,p=s*u,d=i*o,m=i*f,g=i*u;return t[0]=1-l-p,t[3]=c-g,t[6]=h+m,t[1]=c+g,t[4]=1-a-p,t[7]=y-d,t[2]=h-m,t[5]=y+d,t[8]=1-a-l,t}function h(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=e[4],f=e[5],u=e[6],a=e[7],c=e[8],l=e[9],h=e[10],y=e[11],p=e[12],d=e[13],m=e[14],g=e[15],b=r*f-n*o,M=r*u-s*o,B=r*a-i*o,T=n*u-s*f,_=n*a-i*f,E=s*a-i*u,A=c*d-l*p,x=c*m-h*p,S=c*g-y*p,w=l*m-h*d,O=l*g-y*d,v=h*g-y*m;let L=b*v-M*O+B*w+T*S-_*x+E*A;return L?(L=1/L,t[0]=(f*v-u*O+a*w)*L,t[1]=(u*S-o*v-a*x)*L,t[2]=(o*O-f*S+a*A)*L,t[3]=(s*O-n*v-i*w)*L,t[4]=(r*v-s*S+i*x)*L,t[5]=(n*S-r*O-i*A)*L,t[6]=(d*E-m*_+g*T)*L,t[7]=(m*B-p*E-g*M)*L,t[8]=(p*_-d*B+g*b)*L,t):null}function y(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t}function p(t){const e=(0,n.Au)(),r=t[0],s=t[1],i=t[2],o=t[3],f=t[4],u=t[5],a=t[6],c=t[7],l=t[8];return Math.abs(1-(r*r+o*o+a*a))<=e&&Math.abs(1-(s*s+f*f+c*c))<=e&&Math.abs(1-(i*i+u*u+l*l))<=e}const d=a,m=y;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t},adjoint:u,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],r=t[1],n=t[2],s=t[3],i=t[4],o=t[5],f=t[6],u=t[7],a=t[8];return e*(a*i-o*u)+r*(-a*s+o*f)+n*(u*s-i*f)},equals:function(t,e){const r=t[0],s=t[1],i=t[2],o=t[3],f=t[4],u=t[5],a=t[6],c=t[7],l=t[8],h=e[0],y=e[1],p=e[2],d=e[3],m=e[4],g=e[5],b=e[6],M=e[7],B=e[8],T=(0,n.Au)();return Math.abs(r-h)<=T*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(s-y)<=T*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(i-p)<=T*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(o-d)<=T*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(f-m)<=T*Math.max(1,Math.abs(f),Math.abs(m))&&Math.abs(u-g)<=T*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(a-b)<=T*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(c-M)<=T*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(l-B)<=T*Math.max(1,Math.abs(l),Math.abs(B))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[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,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:s,fromQuat:l,fromRotation:function(t,e){const r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[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:f,isOrthoNormal:p,mul:d,multiply:a,multiplyScalar:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t},multiplyScalarAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t},normalFromMat4:h,normalFromMat4Legacy:function(t,e){const r=e[0],n=e[1],s=e[2],i=e[4],o=e[5],f=e[6],u=e[8],a=e[9],c=e[10],l=c*o-f*a,h=-c*i+f*u,y=a*i-o*u,p=r*l+n*h+s*y;if(!p)return null;const d=1/p;return t[0]=l*d,t[1]=(-c*n+s*a)*d,t[2]=(f*n-s*o)*d,t[3]=h*d,t[4]=(c*r-s*u)*d,t[5]=(-f*r+s*i)*d,t[6]=y*d,t[7]=(-a*r+n*u)*d,t[8]=(o*r-n*i)*d,t},projection:function(t,e,r){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=e[4],u=e[5],a=e[6],c=e[7],l=e[8],h=Math.sin(r),y=Math.cos(r);return t[0]=y*n+h*o,t[1]=y*s+h*f,t[2]=y*i+h*u,t[3]=y*o-h*n,t[4]=y*f-h*s,t[5]=y*u-h*i,t[6]=a,t[7]=c,t[8]=l,t},scale:c,scaleByVec2:function(t,e,r){const n=r[0],s=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=s*e[3],t[4]=s*e[4],t[5]=s*e[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:m,subtract:y,translate:function(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=e[4],u=e[5],a=e[6],c=e[7],l=e[8],h=r[0],y=r[1];return t[0]=n,t[1]=s,t[2]=i,t[3]=o,t[4]=f,t[5]=u,t[6]=h*n+y*o+a,t[7]=h*s+y*f+c,t[8]=h*i+y*u+l,t},transpose:o},Symbol.toStringTag,{value:"Module"}))},41512:(t,e,r)=>{r.d(e,{C0:()=>c,WO:()=>g,Wu:()=>d,fO:()=>y,iW:()=>l,sF:()=>O,yG:()=>a});var n=r(68612),s=r(2620),i=r(62484),o=r(47364),f=r(98472),u=r(74784);function a(t,e,r){r*=.5;const n=Math.sin(r);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(r),t}function c(t,e){const r=2*Math.acos(e[3]),n=Math.sin(r/2);return n>(0,o.Au)()?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r}function l(t,e,r){const n=e[0],s=e[1],i=e[2],o=e[3],f=r[0],u=r[1],a=r[2],c=r[3];return t[0]=n*c+o*f+s*a-i*u,t[1]=s*c+o*u+i*f-n*a,t[2]=i*c+o*a+n*u-s*f,t[3]=o*c-n*f-s*u-i*a,t}function h(t,e,r,n){const s=e[0],i=e[1],f=e[2],u=e[3];let a,c,l,h,y,p=r[0],d=r[1],m=r[2],g=r[3];return c=s*p+i*d+f*m+u*g,c<0&&(c=-c,p=-p,d=-d,m=-m,g=-g),1-c>(0,o.Au)()?(a=Math.acos(c),l=Math.sin(a),h=Math.sin((1-n)*a)/l,y=Math.sin(n*a)/l):(h=1-n,y=n),t[0]=h*s+y*p,t[1]=h*i+y*d,t[2]=h*f+y*m,t[3]=h*u+y*g,t}function y(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function p(t,e){const r=e[0]+e[4]+e[8];let n;if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);const s=(r+1)%3,i=(r+2)%3;n=Math.sqrt(e[3*r+r]-e[3*s+s]-e[3*i+i]+1),t[r]=.5*n,n=.5/n,t[3]=(e[3*s+i]-e[3*i+s])*n,t[s]=(e[3*s+r]+e[3*r+s])*n,t[i]=(e[3*i+r]+e[3*r+i])*n}return t}function d(t,e,r,n){const s=.5*Math.PI/180;e*=s,r*=s,n*=s;const i=Math.sin(e),o=Math.cos(e),f=Math.sin(r),u=Math.cos(r),a=Math.sin(n),c=Math.cos(n);return t[0]=i*u*c-o*f*a,t[1]=o*f*c+i*u*a,t[2]=o*u*a-i*f*c,t[3]=o*u*c+i*f*a,t}const m=u.c,g=u.s,b=u.g,M=l,B=u.d,T=u.h,_=u.l,E=u.i,A=E,x=u.j,S=x,w=u.n,O=u.a,v=u.e,L=(0,i.Su)(),P=(0,i.WK)(1,0,0),C=(0,i.WK)(0,1,0),Y=(0,s.Su)(),F=(0,s.Su)(),R=(0,n.Su)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(t,e){const r=e[0],n=e[1],s=e[2];return t[0]=r,t[1]=n,t[2]=s,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-s*s)),t},conjugate:y,copy:m,dot:T,equals:v,exactEquals:O,fromEuler:d,fromMat3:p,getAxisAngle:c,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],o=r*r+n*n+s*s+i*i,f=o?1/o:0;return t[0]=-r*f,t[1]=-n*f,t[2]=-s*f,t[3]=i*f,t},len:A,length:E,lerp:_,mul:M,multiply:l,normalize:w,random:function(t){const e=o.QR,r=e(),n=e(),s=e(),i=Math.sqrt(1-r),f=Math.sqrt(r);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=f*Math.sin(2*Math.PI*s),t[3]=f*Math.cos(2*Math.PI*s),t},rotateX:function(t,e,r){r*=.5;const n=e[0],s=e[1],i=e[2],o=e[3],f=Math.sin(r),u=Math.cos(r);return t[0]=n*u+o*f,t[1]=s*u+i*f,t[2]=i*u-s*f,t[3]=o*u-n*f,t},rotateY:function(t,e,r){r*=.5;const n=e[0],s=e[1],i=e[2],o=e[3],f=Math.sin(r),u=Math.cos(r);return t[0]=n*u-i*f,t[1]=s*u+o*f,t[2]=i*u+n*f,t[3]=o*u-s*f,t},rotateZ:function(t,e,r){r*=.5;const n=e[0],s=e[1],i=e[2],o=e[3],f=Math.sin(r),u=Math.cos(r);return t[0]=n*u+s*f,t[1]=s*u-n*f,t[2]=i*u+o*f,t[3]=o*u-i*f,t},rotationTo:function(t,e,r){const n=(0,f.j)(e,r);return n<-.999999?((0,f.b)(L,P,e),(0,f.C)(L)<1e-6&&(0,f.b)(L,C,e),(0,f.n)(L,L),a(t,L,Math.PI),t):n>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,f.b)(L,e,r),t[0]=L[0],t[1]=L[1],t[2]=L[2],t[3]=1+n,w(t,t))},scale:B,set:g,setAxes:function(t,e,r,n){const s=R;return s[0]=r[0],s[3]=r[1],s[6]=r[2],s[1]=n[0],s[4]=n[1],s[7]=n[2],s[2]=-e[0],s[5]=-e[1],s[8]=-e[2],w(t,p(t,s))},setAxisAngle:a,slerp:h,sqlerp:function(t,e,r,n,s,i){return h(Y,e,s,i),h(F,r,n,i),h(t,Y,F,2*i*(1-i)),t},sqrLen:S,squaredLength:x,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},37648:(t,e,r)=>{r.d(e,{Cq:()=>h,WO:()=>s,c9:()=>p,m4:()=>y,qy:()=>u});var n=r(47364);function s(t,e,r){return t[0]=e,t[1]=r,t}function i(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function o(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function f(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function u(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function a(t,e){const r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function c(t){const e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function l(t){const e=t[0],r=t[1];return e*e+r*r}function h(t,e,r,n){const s=e[0],i=e[1];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t}function y(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s+r[4],t[1]=r[1]*n+r[3]*s+r[5],t}function p(t,e,r,n){const s=e[0]-r[0],i=e[1]-r[1],o=Math.sin(n),f=Math.cos(n);return t[0]=s*f-i*o+r[0],t[1]=s*o+i*f+r[1],t}const d=c,m=i,g=o,b=f,M=u,B=a,T=l;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t},angle:function(t,e){const r=t[0],n=t[1],s=e[0],i=e[1];let o=r*r+n*n;o>0&&(o=1/Math.sqrt(o));let f=s*s+i*i;f>0&&(f=1/Math.sqrt(f));const u=(r*s+n*i)*o*f;return u>1?0:u<-1?Math.PI:Math.acos(u)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,r){const n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t},dist:M,distance:u,div:b,divide:f,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const r=t[0],s=t[1],i=e[0],o=e[1],f=(0,n.Au)();return Math.abs(r-i)<=f*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(s-o)<=f*Math.max(1,Math.abs(s),Math.abs(o))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:d,length:c,lerp:h,max:function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t},min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},mul:g,multiply:o,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const r=e[0],n=e[1];let s=r*r+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s),t},projectAndScale:function(t,e,r,n,s){let i=e[0]-r[0],o=e[1]-r[1];const f=(n[0]*i+n[1]*o)*(s-1);return i=n[0]*f,o=n[1]*f,t[0]=e[0]+i,t[1]=e[1]+o,t},random:function(t,e){e=e||1;const r=2*(0,n.QR)()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},rotate:p,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t},scaleAndAdd:function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t},set:s,sqrDist:B,sqrLen:T,squaredDistance:a,squaredLength:l,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:m,subtract:i,transformMat2:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[2]*s,t[1]=r[1]*n+r[3]*s,t},transformMat2d:y,transformMat3:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[3]*s+r[6],t[1]=r[1]*n+r[4]*s+r[7],t},transformMat4:function(t,e,r){const n=e[0],s=e[1];return t[0]=r[0]*n+r[4]*s+r[12],t[1]=r[1]*n+r[5]*s+r[13],t}},Symbol.toStringTag,{value:"Module"}))},3024:(t,e,r)=>{r.d(e,{U:()=>o});var n=r(92400),s=r(24680),i=r(85304);class o{constructor(t=9,e){this._compareMinX=c,this._compareMinY=l,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),M.prune(),B.prune(),T.prune(),_.prune()}all(t){this._all(this._data,t)}search(t,e){let r=this._data;const n=this._toBBox;if(g(t,r))for(M.clear();r;){for(let s=0,i=r.children.length;s<i;s++){const i=r.children[s],o=r.leaf?n(i):i;g(t,o)&&(r.leaf?e(i):m(t,o)?this._all(i,e):M.push(i))}r=M.pop()}}collides(t){let e=this._data;const r=this._toBBox;if(!g(t,e))return!1;for(M.clear();e;){for(let n=0,s=e.children.length;n<s;n++){const s=e.children[n],i=e.leaf?r(s):s;if(g(t,i)){if(e.leaf||m(t,i))return!0;M.push(s)}}e=M.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,r=t.length;e<r;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new x([]),this}remove(t){if(!t)return this;let e,r=this._data,s=null,i=0,o=!1;const f=this._toBBox(t);for(T.clear(),_.clear();r||T.length>0;){if(r||(r=T.pop(),s=T.data[T.length-1],i=_.pop()??0,o=!0),r.leaf&&(e=(0,n.IP)(r.children,t,r.children.length,r.indexHint),-1!==e))return r.children.splice(e,1),T.push(r),this._condense(T),this;o||r.leaf||!m(r,f)?s?(i++,r=s.children[i],o=!1):r=null:(T.push(r),_.push(i),i=0,s=r,r=r.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let r=t;for(B.clear();r;){if(!0===r.leaf)for(const t of r.children)e(t);else B.pushArray(r.children);r=B.pop()??null}}_build(t,e,r,n){const s=r-e+1;let i=this._maxEntries;if(s<=i){const n=new x(t.slice(e,r+1));return f(n,this._toBBox),n}n||(n=Math.ceil(Math.log(s)/Math.log(i)),i=Math.ceil(s/i**(n-1)));const o=new S([]);o.height=n;const u=Math.ceil(s/i),a=u*Math.ceil(Math.sqrt(i));b(t,e,r,a,this._compareMinX);for(let s=e;s<=r;s+=a){const e=Math.min(s+a-1,r);b(t,s,e,u,this._compareMinY);for(let r=s;r<=e;r+=u){const s=Math.min(r+u-1,e);o.children.push(this._build(t,r,s,n-1))}}return f(o,this._toBBox),o}_chooseSubtree(t,e,r,n){for(;n.push(e),!0!==e.leaf&&n.length-1!==r;){let r,n=1/0,s=1/0;for(let i=0,o=e.children.length;i<o;i++){const o=e.children[i],f=h(o),u=p(t,o)-f;u<s?(s=u,n=f<n?f:n,r=o):u===s&&f<n&&(n=f,r=o)}e=r||e.children[0]}return e}_insert(t,e,r){const n=this._toBBox,s=r?t:n(t);T.clear();const i=this._chooseSubtree(s,this._data,e,T);for(i.children.push(t),a(i,s);e>=0&&T.data[e].children.length>this._maxEntries;)this._split(T,e),e--;this._adjustParentBBoxes(s,T,e)}_split(t,e){const r=t.data[e],n=r.children.length,s=this._minEntries;this._chooseSplitAxis(r,s,n);const i=this._chooseSplitIndex(r,s,n);if(!i)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=r.children.splice(i,r.children.length-i),u=r.leaf?new x(o):new S(o);u.height=r.height,f(r,this._toBBox),f(u,this._toBBox),e?t.data[e-1].children.push(u):this._splitRoot(r,u)}_splitRoot(t,e){this._data=new S([t,e]),this._data.height=t.height+1,f(this._data,this._toBBox)}_chooseSplitIndex(t,e,r){let n,s,i;n=s=1/0;for(let o=e;o<=r-e;o++){const e=u(t,0,o,this._toBBox),f=u(t,o,r,this._toBBox),a=d(e,f),c=h(e)+h(f);a<n?(n=a,i=o,s=c<s?c:s):a===n&&c<s&&(s=c,i=o)}return i}_chooseSplitAxis(t,e,r){const n=t.leaf?this._compareMinX:c,s=t.leaf?this._compareMinY:l;this._allDistMargin(t,e,r,n)<this._allDistMargin(t,e,r,s)&&t.children.sort(n)}_allDistMargin(t,e,r,n){t.children.sort(n);const s=this._toBBox,i=u(t,0,e,s),o=u(t,r-e,r,s);let f=y(i)+y(o);for(let n=e;n<r-e;n++){const e=t.children[n];a(i,t.leaf?s(e):e),f+=y(i)}for(let n=r-e-1;n>=e;n--){const e=t.children[n];a(o,t.leaf?s(e):e),f+=y(o)}return f}_adjustParentBBoxes(t,e,r){for(let n=r;n>=0;n--)a(e.data[n],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const r=t.data[e];if(0===r.children.length)if(e>0){const s=t.data[e-1],i=s.children;i.splice((0,n.IP)(i,r,i.length,s.indexHint),1)}else this.clear();else f(r,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.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 f(t,e){u(t,0,t.children.length,e,t)}function u(t,e,r,n,s){s||(s=new x([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let i,o=e;o<r;o++)i=t.children[o],a(s,t.leaf?n(i):i);return s}function a(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function l(t,e){return t.minY-e.minY}function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function y(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function d(t,e){const r=Math.max(t.minX,e.minX),n=Math.max(t.minY,e.minY),s=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,s-r)*Math.max(0,i-n)}function m(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function b(t,e,r,n,s){const o=[e,r];for(;o.length;){const e=o.pop(),r=o.pop();if(e-r<=n)continue;const f=r+Math.ceil((e-r)/n/2)*n;(0,i.q)(t,f,r,e,s),o.push(r,f,f,e)}}const M=new s.c,B=new s.c,T=new s.c,_=new s.c({deallocator:void 0});class E{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class A extends E{constructor(){super(...arguments),this.height=1,this.indexHint=new n.is}}class x extends A{constructor(t){super(),this.children=t,this.leaf=!0}}class S extends A{constructor(t){super(),this.children=t,this.leaf=!1}}},51120:(t,e,r)=>{r.d(e,{y:()=>a});var n=r(53648),s=r(15008),i=r(62484);function o(t,e,r){const n=Math.sin(t),s=Math.cos(t),i=Math.sin(e),o=Math.cos(e),f=r;return f[0]=-n,f[4]=-i*s,f[8]=o*s,f[12]=0,f[1]=s,f[5]=-i*n,f[9]=o*n,f[13]=0,f[2]=0,f[6]=o,f[10]=i,f[14]=0,f[3]=0,f[7]=0,f[11]=0,f[15]=1,f}var f=r(38380),u=r(60544);function a(t,e,r,n){if(null==t||null==n)return!1;const i=(0,f.Se)(t,f.Wy),a=(0,f.Se)(n,f.mq);if(i===a&&!c(a)&&(i!==f.o3.UNKNOWN||(0,u.yK)(t,n)))return(0,s.mu)(r,e),!0;if(c(a)){const t=f.yw[i][f.o3.LON_LAT],n=f.yw[f.o3.LON_LAT][a];return null!=t&&null!=n&&(t(e,0,h,0),n(h,0,y,0),o(l*h[0],l*h[1],r),r[12]=y[0],r[13]=y[1],r[14]=y[2],!0)}if((a===f.o3.WEB_MERCATOR||a===f.o3.PLATE_CARREE||a===f.o3.WGS84)&&(i===f.o3.WGS84||i===f.o3.CGCS2000&&a===f.o3.PLATE_CARREE||i===f.o3.SPHERICAL_ECEF||i===f.o3.WEB_MERCATOR)){const t=f.yw[i][f.o3.LON_LAT],n=f.yw[f.o3.LON_LAT][a];return null!=t&&null!=n&&(t(e,0,h,0),n(h,0,y,0),i===f.o3.SPHERICAL_ECEF?function(t,e,r){o(t,e,r),(0,s.oL)(r,r)}(l*h[0],l*h[1],r):(0,s.ZX)(r),r[12]=y[0],r[13]=y[1],r[14]=y[2],!0)}return!1}function c(t){return t===f.o3.SPHERICAL_ECEF||t===f.o3.SPHERICAL_MARS_PCPF||t===f.o3.SPHERICAL_MOON_PCPF}const l=(0,n.EF)(1),h=(0,i.Su)(),y=(0,i.Su)()},82448:(t,e,r)=>{r.d(e,{_s:()=>a});var n=r(22080),s=r(56156),i=r(60544);const o=new s.c(n._),f=new s.c(n.IP),u=new s.c(n.Om);function a(t){const e=c.get(t);if(e)return e;let r=o;if(t)if(t===f)r=f;else if(t===u)r=u;else{const e=t.wkid,n=t.latestWkid;if(null!=e||null!=n)(0,i.cJ)(e)||(0,i.cJ)(n)?r=f:((0,i.C_)(e)||(0,i.C_)(n))&&(r=u);else{const e=t.wkt2??t.wkt;if(e){const t=e.toUpperCase();t===l?r=f:t===h&&(r=u)}}}return c.set(t,r),r}new s.c(n.MJ);const c=new Map,l=f.wkt.toUpperCase(),h=u.wkt.toUpperCase()},15688:(t,e,r)=>{r.d(e,{Gg:()=>s,cp:()=>i,lL:()=>o,mw:()=>f,qW:()=>u});var n=r(72008);function s(t,e=!1){return t<=n._?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function i(t){return((0,n.c7)(t)?t.length:t.byteLength/8)<=n._?Array.from(t):new Float64Array(t)}function o(t,e,r){return Array.isArray(t)?t.slice(e,e+r):t.subarray(e,e+r)}function f(t,e){for(let r=0;r<e.length;++r)t[r]=e[r];return t}function u(t){return Array.isArray(t)?new Float64Array(t):t}},51232:(t,e,r)=>{r.d(e,{c:()=>c});var n=r(41948),s=r(3856),i=r(40504),o=r(1580),f=(r(9456),r(66360),r(72052),r(9968)),u=r(12552);let a=class extends((0,s.q)(i.am)){constructor(t){super(t),this.type="georeferenced",this.origin=null}};(0,n._)([(0,f.G)({georeferenced:"georeferenced"},{readOnly:!0})],a.prototype,"type",void 0),(0,n._)([(0,o.qq)({type:[Number],nonNullable:!1,json:{write:!0}})],a.prototype,"origin",void 0),a=(0,n._)([(0,u.c)("esri.geometry.support.MeshGeoreferencedVertexSpace")],a);const c=a},13708:(t,e,r)=>{r.d(e,{c:()=>l});var n=r(41948),s=r(3856),i=r(40504),o=r(1580),f=(r(9456),r(66360),r(72052),r(9968)),u=r(12552),a=r(62484);let c=class extends((0,s.q)(i.am)){constructor(t){super(t),this.type="local",this.origin=(0,a.Su)()}};(0,n._)([(0,f.G)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,n._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,n._)([(0,u.c)("esri.geometry.support.MeshLocalVertexSpace")],c);const l=c},41104:(t,e,r)=>{r.d(e,{c:()=>g});var n,s=r(41948),i=r(40504),o=r(1580),f=(r(9456),r(66360),r(72052),r(12552)),u=r(15008),a=r(87104),c=r(41512),l=r(2620),h=r(98472),y=r(62484),p=r(66952);let d=n=class extends i.am{constructor(t){super(t),this.translation=(0,y.Su)(),this.rotationAxis=(0,y.eu)(p.up),this.rotationAngle=0,this.scale=(0,y.WK)(1,1,1)}get rotation(){return(0,p.eE)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,y.ct)((0,p.Yz)(t)),this.rotationAngle=(0,p.i4)(t)}get localMatrix(){const t=(0,a.Su)();return(0,c.yG)(m,(0,p.Yz)(this.rotation),(0,p.kX)(this.rotation)),(0,u.um)(t,m,this.translation,this.scale),t}get localMatrixInverse(){return(0,u.S_)((0,a.Su)(),this.localMatrix)}applyLocal(t,e){return(0,h.e)(e,t,this.localMatrix)}applyLocalInverse(t,e){return(0,h.e)(e,t,this.localMatrixInverse)}equals(t){return this===t||null!=t&&(0,u.sF)(this.localMatrix,t.localMatrix)}clone(){const t={translation:(0,y.ct)(this.translation),rotationAxis:(0,y.ct)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,y.ct)(this.scale)};return new n(t)}};(0,s._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"translation",void 0),(0,s._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAxis",void 0),(0,s._)([(0,o.qq)({type:Number,nonNullable:!0,json:{write:!0}})],d.prototype,"rotationAngle",void 0),(0,s._)([(0,o.qq)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"scale",void 0),(0,s._)([(0,o.qq)()],d.prototype,"rotation",null),(0,s._)([(0,o.qq)()],d.prototype,"localMatrix",null),(0,s._)([(0,o.qq)()],d.prototype,"localMatrixInverse",null),d=n=(0,s._)([(0,f.c)("esri.geometry.support.MeshTransform")],d);const m=(0,l.Su)(),g=d},66952:(t,e,r)=>{r.d(e,{GA:()=>l,Jn:()=>c,Su:()=>u,Yz:()=>h,eE:()=>a,i4:()=>y,kX:()=>p,up:()=>d});var n=r(53648),s=r(41512),i=r(2620),o=r(98472),f=r(62484);function u(t=d){return[t[0],t[1],t[2],t[3]]}function a(t,e,r=u()){return(0,o.c)(r,t),r[3]=e,r}function c(t,e,r=u()){return(0,s.yG)(m,t,p(t)),(0,s.yG)(g,e,p(e)),(0,s.iW)(m,g,m),function(t,e){return t[3]=e,t}(r,(0,n.UB)((0,s.C0)(r,m)))}function l(t,e,r,n=u()){return a(f.UV,t,b),a(f.IR,e,M),a(f.wx,r,B),c(b,M,b),c(b,B,n),n}function h(t){return t}function y(t){return t[3]}function p(t){return(0,n.EF)(t[3])}r(37008);const d=[0,0,1,0],m=(0,i.Su)(),g=(0,i.Su)(),b=(u(),u()),M=u(),B=u()},71004:(t,e,r)=>{r.d(e,{AZ:()=>h,oN:()=>B,Mt:()=>j,Ep:()=>k,kV:()=>q,Ko:()=>m,m_:()=>g,IL:()=>b,mF:()=>M,E_:()=>O,Ym:()=>C,Kg:()=>A,U7:()=>y,wT:()=>T,iN:()=>W,mI:()=>G,oR:()=>I,kg:()=>v,qZ:()=>Y,eS:()=>x,Yj:()=>p,Ax:()=>_,g7:()=>U,Yv:()=>z,Oq:()=>N,k5:()=>L,ER:()=>F,IN:()=>S,_5:()=>d,Ip:()=>E,OS:()=>V,i9:()=>J,mq:()=>X,Ig:()=>P,q$:()=>R,sb:()=>w});class n{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=9;const i=this.TypedArrayConstructor;void 0===n&&(n=9*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}n.ElementCount=9;class s{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=16;const i=this.TypedArrayConstructor;void 0===n&&(n=16*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[r++];return e}setMat(t,e){let r=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[r++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;for(let t=0;t<16;++t)n[i++]=s[o++]}get buffer(){return this.typedBuffer.buffer}}s.ElementCount=16;class i{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=1;const i=this.TypedArrayConstructor;void 0===n&&(n=i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.stride=n,this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}i.ElementCount=1;var o=r(37648);class f{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,o.WO)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=r}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}f.ElementCount=2;var u=r(98472);class a{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.elementCount=3;const i=this.TypedArrayConstructor;void 0===n&&(n=3*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,u.s)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t]=n}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}a.ElementCount=3;var c=r(74784);class l{constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=4;const i=this.TypedArrayConstructor;void 0===n&&(n=4*i.BYTES_PER_ELEMENT);const o=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,o):new i(e,o,(s-r)/i.BYTES_PER_ELEMENT),this.typedBufferStride=n/i.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,r=this.count-e){const n=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,n,this.stride,n+r*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,c.s)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,r){this.typedBuffer[t*this.typedBufferStride+e]=r}setValues(t,e,r,n,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=r,this.typedBuffer[t++]=n,this.typedBuffer[t]=s}copyFrom(t,e,r){const n=this.typedBuffer,s=e.typedBuffer;let i=t*this.typedBufferStride,o=r*e.typedBufferStride;n[i++]=s[o++],n[i++]=s[o++],n[i++]=s[o++],n[i]=s[o]}get buffer(){return this.typedBuffer.buffer}}l.ElementCount=4;class h extends i{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static fromTypedArray(t,e){return new h(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}h.ElementType="f32";class y extends f{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(y,t,e)}static fromTypedArray(t,e){return new y(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}y.ElementType="f32";class p extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(p,t,e)}static fromTypedArray(t,e){return new p(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}p.ElementType="f32";class d extends l{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(d,t,e)}static fromTypedArray(t,e){return new d(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}d.ElementType="f32";class m extends n{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(m,t,e)}static fromTypedArray(t,e){return new m(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}m.ElementType="f32";class g extends n{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(g,t,e)}static fromTypedArray(t,e){return new g(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}g.ElementType="f64";class b extends s{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(b,t,e)}static fromTypedArray(t,e){return new b(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}b.ElementType="f32";class M extends s{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(M,t,e)}static fromTypedArray(t,e){return new M(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}M.ElementType="f64";class B extends i{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(B,t,e)}static fromTypedArray(t,e){return new B(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}B.ElementType="f64";class T extends f{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(T,t,e)}static fromTypedArray(t,e){return new T(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}T.ElementType="f64";class _ extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(_,t,e)}static fromTypedArray(t,e){return new _(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}_.ElementType="f64";class E extends l{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(E,t,e)}static fromTypedArray(t,e){return new E(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}E.ElementType="f64";class A extends i{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(A,t,e)}static fromTypedArray(t,e){return new A(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}A.ElementType="u8";class x extends f{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(x,t,e)}static fromTypedArray(t,e){return new x(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}x.ElementType="u8";class S extends a{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(S,t,e)}static fromTypedArray(t,e){return new S(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}S.ElementType="u8";class w extends l{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(w,t,e)}static fromTypedArray(t,e){return new w(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}w.ElementType="u8";class O extends i{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(O,t,e)}static fromTypedArray(t,e){return new O(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}O.ElementType="u16";class v extends f{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(v,t,e)}static fromTypedArray(t,e){return new v(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}v.ElementType="u16";class L extends a{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(L,t,e)}static fromTypedArray(t,e){return new L(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}L.ElementType="u16";class P extends l{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(P,t,e)}static fromTypedArray(t,e){return new P(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}P.ElementType="u16";class C extends i{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(C,t,e)}static fromTypedArray(t,e){return new C(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}C.ElementType="u32";class Y extends f{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(Y,t,e)}static fromTypedArray(t,e){return new Y(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}Y.ElementType="u32";class F extends a{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(F,t,e)}static fromTypedArray(t,e){return new F(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}F.ElementType="u32";class R extends l{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(R,t,e)}static fromTypedArray(t,e){return new R(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}R.ElementType="u32";class q extends i{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(q,t,e)}static fromTypedArray(t,e){return new q(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}q.ElementType="i8";class I extends f{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(I,t,e)}static fromTypedArray(t,e){return new I(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}I.ElementType="i8";class N extends a{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(N,t,e)}static fromTypedArray(t,e){return new N(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}N.ElementType="i8";class X extends l{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(X,t,e)}static fromTypedArray(t,e){return new X(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}X.ElementType="i8";class j extends i{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(j,t,e)}static fromTypedArray(t,e){return new j(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}j.ElementType="i16";class W extends f{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(W,t,e)}static fromTypedArray(t,e){return new W(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}W.ElementType="i16";class U extends a{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(U,t,e)}static fromTypedArray(t,e){return new U(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}U.ElementType="i16";class V extends l{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(V,t,e)}static fromTypedArray(t,e){return new V(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}V.ElementType="i16";class k extends i{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(k,t,e)}static fromTypedArray(t,e){return new k(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}k.ElementType="i32";class G extends f{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(G,t,e)}static fromTypedArray(t,e){return new G(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}G.ElementType="i32";class z extends a{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(z,t,e)}static fromTypedArray(t,e){return new z(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}z.ElementType="i32";class J extends l{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(J,t,e)}static fromTypedArray(t,e){return new J(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}}J.ElementType="i32"},23704:(t,e,r)=>{r.d(e,{A:()=>s});var n=r(66360);const s=()=>n.c.getLogger("esri.views.3d.support.buffer.math")},58584:(t,e,r)=>{r.r(e),r.d(e,{default:()=>f});var n=r(9456),s=r(3024),i=r(21136),o=r(54828);class f{async createIndex(t,e){const r=new Array;if(!t.vertexAttributes?.position)return new s.U;const n=this._createMeshData(t),i=null!=e?await e.invoke("createIndexThread",n,{transferList:r}):this.createIndexThread(n).result;return this._createPooledRBush().fromJSON(i)}createIndexThread(t){const e=new Float64Array(t.position),r=this._createPooledRBush();return t.components?this._createIndexComponentsThread(r,e,t.components.map((t=>new Uint32Array(t)))):this._createIndexAllThread(r,e)}_createIndexAllThread(t,e){const r=new Array(e.length/9);let n=0;for(let t=0;t<e.length;t+=9)r[n++]=u(e,t,t+3,t+6);return t.load(r),{result:t.toJSON()}}_createIndexComponentsThread(t,e,r){let n=0;for(const t of r)n+=t.length/3;const s=new Array(n);let i=0;for(const t of r)for(let r=0;r<t.length;r+=3)s[i++]=u(e,3*t[r],3*t[r+1],3*t[r+2]);return t.load(s),{result:t.toJSON()}}_createMeshData(t){const e=((0,i.k$)(t.vertexSpace)?(0,o._S)({position:t.vertexAttributes.position,normal:null,tangent:null},t.vertexSpace,t.transform,t.spatialReference).position:t.vertexAttributes.position).buffer;return!t.components||t.components.some((t=>!t.faces))?{position:e}:{position:e,components:t.components.map((t=>t.faces))}}_createPooledRBush(){return new s.U(9,(0,n.c)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}}function u(t,e,r,n){return{minX:Math.min(t[e],t[r],t[n]),maxX:Math.max(t[e],t[r],t[n]),minY:Math.min(t[e+1],t[r+1],t[n+1]),maxY:Math.max(t[e+1],t[r+1],t[n+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[r],t[r+1],t[r+2]],p2:[t[n],t[n+1],t[n+2]]}}},71488:(t,e,r)=>{r.d(e,{Kk:()=>f,QL:()=>u,yO:()=>o});var n=r(26832),s=r(66360),i=r(21136);function o(t,e){return t.isGeographic||t.isWebMercator&&(e??!0)}function f(t,e){switch(t.type){case"georeferenced":return e.isGeographic;case"local":return e.isGeographic||e.isWebMercator}}function u(t,e,r,o){if(void 0!==o){(0,n.O2)(s.c.getLogger(t),"option: geographic",{replacement:"use mesh vertexSpace and spatial reference to control how operations are performed",version:"4.29",warnOnce:!0});const f="local"===e.type;if(!(0,i.k$)(e)||o===f)return r.isGeographic||r.isWebMercator&&o;s.c.getLogger(t).warnOnce(`Specifying the 'geographic' parameter (${o}) for a Mesh vertex space of type "${e.type}" is not supported. This parameter will be ignored.`)}return f(e,r)}},54828:(t,e,r)=>{r.d(e,{CE:()=>T,EX:()=>E,_0:()=>Y,_S:()=>_,iS:()=>x,mC:()=>w,project:()=>S,qu:()=>v});var n=r(24296),s=r(68612),i=r(15008),o=r(87104),f=r(98472),u=r(62484),a=r(77556),c=r(60074),l=r(82448),h=r(51120),y=r(62880),p=r(15688),d=r(41104),m=r(21136),g=r(48952),b=r(71488),M=r(38496);function B(t,e,r){return(0,b.yO)(e.spatialReference,r?.geographic)?w(t,e,!1,r):function(t,e,r){const n=new Float64Array(t.position.length),s=t.position,i=e.x,o=e.y,f=e.z??0,u=Y(r?r.unit:null,e.spatialReference);for(let t=0;t<s.length;t+=3)n[t]=s[t]*u+i,n[t+1]=s[t+1]*u+o,n[t+2]=s[t+2]*u+f;return{position:n,normal:t.normal,tangent:t.tangent}}(t,e,r)}function T(t,e=o.IJ){const{position:r,normal:n,tangent:s}=t;return{position:(0,g.a)(new Float64Array(r.length),r,e),normal:null!=n?(0,M.W4)(n,new Float32Array(n.length),e):null,tangent:null!=s?(0,M.AT)(s,new Float32Array(s.length),e):null}}function _(t,e,r,n){const{position:s,normal:i,tangent:o}=t;if(!(0,m.k$)(e))return{position:s,normal:i,tangent:o};const f=(0,m.mA)(e,n);return B(T(t,r?.localMatrix),f,{geographic:"local"===e.type})}function E(t,e,r){const n=(0,m.Al)(e,r),s=e.spatialReference,i=(0,m.k$)(n);if(!i)return{vertexAttributes:B(t,e,r),vertexSpace:n,transform:null};const{position:o,normal:f,tangent:u}=t,a=(0,b.Kk)(n,s);switch(n.type){case"georeferenced":return a?{vertexAttributes:w(t,e,i,r),vertexSpace:n,transform:null}:{vertexAttributes:{position:o,normal:f,tangent:u},vertexSpace:n,transform:new d.c};case"local":return{vertexAttributes:{position:o,normal:f,tangent:u},vertexSpace:n,transform:new d.c}}}function A(t,e,r){return(0,b.yO)(e.spatialReference,r?.geographic)?v(t,e,r):O(t,e,r)}function x(t,e,r,n,s){if(!(0,m.k$)(e))return A(t,n,s);const{spatialReference:i}=n,o=_(t,e,r,i);return n.equals((0,m.mA)(e,i))?O(o,n,s):A(o,n,s)}function S({positions:t,transform:e,vertexSpace:r,inSpatialReference:n,outSpatialReference:s,outPositions:a,localMode:d}){const m=r.origin??u.cX,b=null!=r.origin?e?.localMatrix??o.IJ:o.IJ;if("georeferenced"===r.type){const e=a??(0,p.Gg)(t.length);if((0,i.yK)(b,o.IJ)?(0,p.mw)(e,t):(0,g.a)(e,t,b),!(0,f.h)(m,u.cX)){const[t,r,n]=m;for(let s=0;s<e.length;s+=3)e[s]+=t,e[s+1]+=r,e[s+2]+=n}return(0,y.projectBuffer)(e,n,0,e,s,0,e.length/3),e}let M=n;const B=(0,l._s)(n);M=s.isWebMercator&&d||!(0,c.canProjectWithoutEngine)(n,B)?M:B,(0,h.y)(n,m,F,M),(0,i.iW)(F,F,b);const T=a??(0,p.Gg)(t.length);return(0,g.a)(T,t,F),(0,y.projectBuffer)(T,M,0,T,s,0,T.length/3),T}function w(t,e,r,n){const s=e.spatialReference,i=L(e,n,F),o=new Float64Array(t.position.length),f=function(t,e,r,n){(0,g.a)(n,t,e);const s=new Float64Array(t.length);return(0,M.o$)(n,s,r)}(t.position,i,s,o),u=(0,a.yy)(q,i),c=function(t,e,r,n,s){if(null==r)return null;const i=new Float32Array(r.length);return(0,g.b)(i,r,n),(0,M.QP)(i,t,e,s,i),i}(f,o,t.normal,u,s),l=function(t,e,r,n,s){if(null==r)return null;const i=new Float32Array(r.length);(0,g.b)(i,r,n,4);for(let t=3;t<i.length;t+=4)i[t]=r[t];return(0,M.Cr)(i,t,e,s,i),i}(f,o,t.tangent,u,s);if(r){const{x:t,y:r,z:n}=e;(0,g.t)(f,f,[-t,-r,-(n??0)])}return{position:f,normal:c,tangent:l}}function O(t,e,r){const n=new Float64Array(t.position.length),s=t.position,i=e.x,o=e.y,f=e.z??0,u=Y(r?r.unit:null,e.spatialReference);for(let t=0;t<s.length;t+=3)n[t]=(s[t]-i)/u,n[t+1]=(s[t+1]-o)/u,n[t+2]=(s[t+2]-f)/u;return{position:n,normal:t.normal,tangent:t.tangent}}function v(t,e,r){const n=e.spatialReference;L(e,r,F);const s=(0,i.S_)(R,F),o=new Float64Array(t.position.length),f=function(t,e,r,n){const s=(0,M.K_)(t,e,n),i=new Float64Array(s.length);return(0,g.a)(i,s,r),i}(t.position,n,s,o),u=(0,a.yy)(q,s);return{position:f,normal:P(t.normal,t.position,o,n,u),tangent:C(t.tangent,t.position,o,n,u)}}function L(t,e,r){(0,h.y)(t.spatialReference,[t.x,t.y,t.z??0],r,(0,l._s)(t.spatialReference));const n=Y(e?e.unit:null,t.spatialReference);return(0,i.aU)(r,r,[n,n,n]),r}function P(t,e,r,n,s){if(null==t)return null;const i=(0,M.cH)(t,e,r,n,new Float32Array(t.length));return(0,g.b)(i,i,s),i}function C(t,e,r,n,s){if(null==t)return null;const i=(0,M.GW)(t,e,r,n,new Float32Array(t.length));return(0,g.b)(i,i,s,4),i}function Y(t,e){if(null==t)return 1;const r=(0,n.eg)(e);return 1/(0,n.ck)(r,"meters",t)}const F=(0,o.Su)(),R=(0,o.Su)(),q=(0,s.Su)()},38496:(t,e,r)=>{r.d(e,{AT:()=>_,Cr:()=>A,GW:()=>E,K_:()=>M,QP:()=>b,W4:()=>T,cH:()=>g,o$:()=>B});var n=r(66360),s=r(77556),i=r(68612),o=r(87104),f=r(98472),u=r(62484),a=r(82448),c=r(51120),l=r(62880),h=r(60544),y=r(29120),p=r(71004),d=r(48952);const m=()=>n.c.getLogger("esri.geometry.support.meshUtils.normalProjection");function g(t,e,r,n,s){return S(n)?(x(O.TO_PCPF,p.Yj.fromTypedArray(t),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s)),s):(m().error("Cannot convert spatial reference to PCPF"),s)}function b(t,e,r,n,s){return S(n)?(x(O.FROM_PCPF,p.Yj.fromTypedArray(t),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s)),s):(m().error("Cannot convert to spatial reference from PCPF"),s)}function M(t,e,r){return(0,l.projectBuffer)(t,e,0,r,(0,a._s)(e),0,t.length/3),r}function B(t,e,r){return(0,l.projectBuffer)(t,(0,a._s)(r),0,e,r,0,t.length/3),e}function T(t,e,r){return(0,s.yy)(Y,r),(0,d.b)(e,t,Y),(0,s.QT)(Y)||(0,d.n)(e,e),e}function _(t,e,r){if((0,s.yy)(Y,r),(0,d.b)(e,t,Y,4),(0,s.QT)(Y)||(0,d.n)(e,e,4),t!==e)for(let r=3;r<t.length;r+=4)e[r]=t[r];return e}function E(t,e,r,n,s){if(!S(n))return m().error("Cannot convert spatial reference to PCPF"),s;x(O.TO_PCPF,p.Yj.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s,4*Float32Array.BYTES_PER_ELEMENT));for(let e=3;e<t.length;e+=4)s[e]=t[e];return s}function A(t,e,r,n,s){if(!S(n))return m().error("Cannot convert to spatial reference from PCPF"),s;x(O.FROM_PCPF,p.Yj.fromTypedArray(t,16),p.Ax.fromTypedArray(e),p.Ax.fromTypedArray(r),n,p.Yj.fromTypedArray(s,16));for(let e=3;e<t.length;e+=4)s[e]=t[e];return s}function x(t,e,r,n,i,o){if(!e)return;const u=r.count,l=(0,a._s)(i);if(w(i))for(let r=0;r<u;r++)n.getVec(r,L),e.getVec(r,P),(0,c.y)(l,L,C,l),(0,s.kr)(Y,C),t===O.FROM_PCPF&&(0,s.oL)(Y,Y),(0,f.t)(P,P,Y),o.setVec(r,P);else for(let i=0;i<u;i++){n.getVec(i,L),e.getVec(i,P),(0,c.y)(l,L,C,l),(0,s.kr)(Y,C);const u=(0,y.MB)(r.get(i,1));let a=Math.cos(u);t===O.TO_PCPF&&(a=1/a),Y[0]*=a,Y[1]*=a,Y[2]*=a,Y[3]*=a,Y[4]*=a,Y[5]*=a,t===O.FROM_PCPF&&(0,s.oL)(Y,Y),(0,f.t)(P,P,Y),(0,f.n)(P,P),o.setVec(i,P)}return o}function S(t){return w(t)||function(t){return t.isWebMercator}(t)}function w(t){return t.isWGS84||(0,h.Ub)(t)||(0,h.qg)(t)||(0,h.UB)(t)}var O,v;(v=O||(O={}))[v.TO_PCPF=0]="TO_PCPF",v[v.FROM_PCPF=1]="FROM_PCPF";const L=(0,u.Su)(),P=(0,u.Su)(),C=(0,o.Su)(),Y=(0,i.Su)()},21136:(t,e,r)=>{r.d(e,{Al:()=>y,GF:()=>p,k$:()=>l,mA:()=>h,mm:()=>d,wX:()=>c});var n=r(26832),s=r(66360),i=r(67776),o=r(51232),f=r(13708),u=r(48952);function a(){return s.c.getLogger("esri.geometry.Mesh")}function c(t){const{vertexSpace:e}=t;if(null!=e.origin)return t.clone();const{anchor:r}=t,n=r.clone(),s=new o.c({origin:[n.x,n.y,n.z]}),i=t.cloneWithVertexSpace(s),{position:f}=i.vertexAttributes;return i.vertexAttributes.position=(0,u.t)(new Float64Array(f.length),f,[-n.x,-n.y,-(n.z??0)]),i.vertexAttributesChanged(),i}function l(t){return null!=t.origin}function h(t,e){if(!l(t))return null;const[r,n,s]=t.origin;return new i.c({x:r,y:n,z:s,spatialReference:e})}function y(t,e){const{x:r,y:s,z:i,spatialReference:u}=t,c=[r,s,i??0];if(void 0!==e?.geographic){if((0,n.O2)(a(),"option: geographic",{replacement:"use vertexSpace option instead",version:"4.29",warnOnce:!0}),!e?.vertexSpace)return e?.geographic?new f.c({origin:c}):new o.c({origin:c});a().warn("Deprecated geographic flag ignored since vertexSpace option is provided.")}if(!e?.vertexSpace)return u.isGeographic||u.isWebMercator?new f.c({origin:c}):new o.c({origin:c});switch(e.vertexSpace){case"local":return new f.c({origin:c});case"georeferenced":return new o.c({origin:c});case"georeferenced-absolute":return new o.c}}function p(t){return t.isGeographic||t.isWebMercator?"local":"georeferenced"}function d(t,e){return"local"===t?new f.c({origin:e}):new o.c({origin:e})}}}]);