@arcgis/core 5.2.0-next.88 → 5.2.0-next.89

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 (129) hide show
  1. package/Graphic.js +1 -1
  2. package/arcade/Dictionary.js +1 -1
  3. package/arcade/Pixel.js +1 -1
  4. package/arcade/Voxel.js +1 -1
  5. package/arcade/debug.js +1 -1
  6. package/arcade/functions/featuresetstats.js +1 -1
  7. package/arcade/functions/stats.js +1 -1
  8. package/assets/esri/core/workers/RemoteClient.js +1 -1
  9. package/assets/esri/core/workers/chunks/07613ecf13c38ad58b79.js +1 -0
  10. package/assets/esri/core/workers/chunks/090ea7a131f8f60203ed.js +1 -0
  11. package/assets/esri/core/workers/chunks/159b16f47665f94a0305.js +1 -0
  12. package/assets/esri/core/workers/chunks/15f4f7e34e14e3cf52e6.js +1 -0
  13. package/assets/esri/core/workers/chunks/1bf967c68d0c795d3fb4.js +1 -0
  14. package/assets/esri/core/workers/chunks/{304a36e862947fdb05c0.js → 20f6e681ccd8bf884b77.js} +1 -1
  15. package/assets/esri/core/workers/chunks/23addf8b11938e0c96e9.js +1 -0
  16. package/assets/esri/core/workers/chunks/30d816bdeea00f6fa1ca.js +1 -0
  17. package/assets/esri/core/workers/chunks/{b6f67302d0d5d57add66.js → 31a0620a6028e94c7532.js} +2 -2
  18. package/assets/esri/core/workers/chunks/39b6a5222f45cb8dbc94.js +1 -0
  19. package/assets/esri/core/workers/chunks/3aceedec9abfb2fdfa18.js +1 -0
  20. package/assets/esri/core/workers/chunks/3f82410d9f701e7ad8eb.js +1 -0
  21. package/assets/esri/core/workers/chunks/45858d1c6487f4a98e40.js +1 -0
  22. package/assets/esri/core/workers/chunks/45c1c90ac6c14657f3ff.js +1 -0
  23. package/assets/esri/core/workers/chunks/46f8c7ae7fb356c3410d.js +1 -0
  24. package/assets/esri/core/workers/chunks/486f1a3b7269ce6c3911.js +1 -0
  25. package/assets/esri/core/workers/chunks/4c7264e3f4156f92d613.js +1 -0
  26. package/assets/esri/core/workers/chunks/{a7727a2377470d586ff9.js → 51c9bd7c03d780fadebc.js} +1 -1
  27. package/assets/esri/core/workers/chunks/5bf65dbfd9c7a5ea187d.js +1 -0
  28. package/assets/esri/core/workers/chunks/607acd9f615f87e14075.js +1 -0
  29. package/assets/esri/core/workers/chunks/62ee6c247f783acabb74.js +1 -0
  30. package/assets/esri/core/workers/chunks/680557b8832fbdab7f46.js +1 -0
  31. package/assets/esri/core/workers/chunks/6b84982dfaf084a61b93.js +1 -0
  32. package/assets/esri/core/workers/chunks/777f2fdf1f4b9f243893.js +1 -0
  33. package/assets/esri/core/workers/chunks/{4d4ebb4e4d83c1123b63.js → 7e41cee4a0ae75e1490d.js} +1 -1
  34. package/assets/esri/core/workers/chunks/86c3d3c7015f1cd55fac.js +1 -0
  35. package/assets/esri/core/workers/chunks/87e0ceb1a64ab08e679a.js +1 -0
  36. package/assets/esri/core/workers/chunks/{dceaa6b68eee090073b1.js → 94453d075ce02eff4844.js} +1 -1
  37. package/assets/esri/core/workers/chunks/a176727a1148ca4fb432.js +1 -0
  38. package/assets/esri/core/workers/chunks/a6d4132a16c51323a38a.js +1 -0
  39. package/assets/esri/core/workers/chunks/a7e6382ecc91c876117f.js +1 -0
  40. package/assets/esri/core/workers/chunks/a88bf8ae93077e1b48cf.js +1 -0
  41. package/assets/esri/core/workers/chunks/bd1a7e95a797e1ed4a7b.js +1 -0
  42. package/assets/esri/core/workers/chunks/{70dc25f721c0ac5f3660.js → bdfffa5f88b559a4b42d.js} +1 -1
  43. package/assets/esri/core/workers/chunks/bf11319138facf44752c.js +1 -0
  44. package/assets/esri/core/workers/chunks/{0b7860a3f18d252b774a.js → c23943e51734254d31e8.js} +1 -1
  45. package/assets/esri/core/workers/chunks/c88bfa51d2a8a024fc24.js +1 -0
  46. package/assets/esri/core/workers/chunks/{fc4a5996fc03f6c32030.js → d58d6b55b2749a535eb3.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{60f490afdbe299f89669.js → d871572997600930e017.js} +1 -1
  48. package/assets/esri/core/workers/chunks/e50adcfb392adfb3f79c.js +1 -0
  49. package/assets/esri/core/workers/chunks/eda04911553cf99fb99b.js +1 -0
  50. package/assets/esri/core/workers/chunks/f3716ce04d09af31cfb1.js +1 -0
  51. package/assets/esri/core/workers/chunks/f3e53be08ab9dbdf17ae.js +1 -0
  52. package/assets/esri/core/workers/chunks/{9eb3e6800f5034f1593f.js → f83c3597e9332bd991eb.js} +1 -1
  53. package/assets/esri/core/workers/chunks/f8a6d8cdcabcd1d511b6.js +1 -0
  54. package/chunks/array.js +1 -1
  55. package/chunks/boundedPlane.js +1 -1
  56. package/chunks/cameraUtilsSpherical.js +1 -1
  57. package/config.js +1 -1
  58. package/core/accessorSupport/Property.js +1 -1
  59. package/geometry/operators/support/projectionTransformation.js +1 -1
  60. package/geometry/support/convexPolyhedron.js +1 -1
  61. package/geometry/support/frustum.js +1 -1
  62. package/geometry/support/plane.js +1 -1
  63. package/kernel.js +1 -1
  64. package/layers/graphics/data/FlatFeatureStore.js +1 -1
  65. package/layers/graphics/data/QueryEngine.js +1 -1
  66. package/package.json +3 -3
  67. package/support/revision.js +1 -1
  68. package/views/2d/engine/vectorTiles/TileManager.js +1 -1
  69. package/views/2d/engine/webgl/util/Fader.js +1 -1
  70. package/views/3d/layers/I3SMeshView3D.js +1 -1
  71. package/views/3d/layers/IntegratedMeshNormals.js +1 -1
  72. package/views/3d/layers/i3s/SweptSphereVolume.js +1 -1
  73. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  74. package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +1 -1
  75. package/views/3d/state/Frustum.js +1 -1
  76. package/views/3d/support/sphericalTileUtils.js +1 -1
  77. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  78. package/views/3d/webgl-engine/lib/LineMaterial.js +2 -0
  79. package/views/3d/webgl-engine/lib/Material.js +1 -1
  80. package/views/3d/webgl-engine/lib/PointMaterial.js +2 -0
  81. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  82. package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
  83. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  84. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  85. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  86. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  87. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  88. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  89. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  90. package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
  91. package/views/interactive/sketch/constraints.js +1 -1
  92. package/views/popupAdapter.js +1 -1
  93. package/views/support/geometry3dUtils.js +1 -1
  94. package/widgets/FeatureTable/support/types.d.ts +3 -1
  95. package/assets/esri/core/workers/chunks/0439d4f4dfd6e78be97e.js +0 -1
  96. package/assets/esri/core/workers/chunks/12a3b55195ce3244259d.js +0 -1
  97. package/assets/esri/core/workers/chunks/19aa4072764937743bd8.js +0 -1
  98. package/assets/esri/core/workers/chunks/2724900f7992a79fc442.js +0 -1
  99. package/assets/esri/core/workers/chunks/35d3e60d15294f268992.js +0 -1
  100. package/assets/esri/core/workers/chunks/37a2be4380796f14fe4e.js +0 -1
  101. package/assets/esri/core/workers/chunks/414093fa4957d17bf551.js +0 -1
  102. package/assets/esri/core/workers/chunks/466bb1b69aabaeabad6a.js +0 -1
  103. package/assets/esri/core/workers/chunks/47e60b2acec18ef37b6c.js +0 -1
  104. package/assets/esri/core/workers/chunks/4849849fc8330d05a8e6.js +0 -1
  105. package/assets/esri/core/workers/chunks/4f0804429d8989aa4c51.js +0 -1
  106. package/assets/esri/core/workers/chunks/55572cefc752b755cf0a.js +0 -1
  107. package/assets/esri/core/workers/chunks/59cf23cc8f91b5bea31a.js +0 -1
  108. package/assets/esri/core/workers/chunks/6a4f007f87d9f2a6fbc4.js +0 -1
  109. package/assets/esri/core/workers/chunks/7c1f989ee3d13dfe7ebd.js +0 -1
  110. package/assets/esri/core/workers/chunks/7ce9c84f90e9dd1deb38.js +0 -1
  111. package/assets/esri/core/workers/chunks/7fc3231768ce79e375ae.js +0 -1
  112. package/assets/esri/core/workers/chunks/7febb434f2de2436435f.js +0 -1
  113. package/assets/esri/core/workers/chunks/909a85cb6e0e9a3c8567.js +0 -1
  114. package/assets/esri/core/workers/chunks/922c24b9bb68f4201b03.js +0 -1
  115. package/assets/esri/core/workers/chunks/9407db0584c730591161.js +0 -1
  116. package/assets/esri/core/workers/chunks/a0300fac6a06e7d89a52.js +0 -1
  117. package/assets/esri/core/workers/chunks/ab9927a32350063cb5f0.js +0 -1
  118. package/assets/esri/core/workers/chunks/adc2620cbe735532004d.js +0 -1
  119. package/assets/esri/core/workers/chunks/c4f582dec07895d3bb93.js +0 -1
  120. package/assets/esri/core/workers/chunks/cd8b3c2fc27c239f9954.js +0 -1
  121. package/assets/esri/core/workers/chunks/d04a01dc1b4947478264.js +0 -1
  122. package/assets/esri/core/workers/chunks/d6b87134e0d120c68d2f.js +0 -1
  123. package/assets/esri/core/workers/chunks/db4c9a9103e979292948.js +0 -1
  124. package/assets/esri/core/workers/chunks/e32a14770e036fce79d9.js +0 -1
  125. package/assets/esri/core/workers/chunks/eacf216dcd6397c7bd7f.js +0 -1
  126. package/assets/esri/core/workers/chunks/eff359210893239ecec3.js +0 -1
  127. package/assets/esri/core/workers/chunks/f210cd8afb86b6eaf7a2.js +0 -1
  128. package/assets/esri/core/workers/chunks/f250a7aa571889c5ad4b.js +0 -1
  129. package/assets/esri/core/workers/chunks/f31330d628d7e741bf5b.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7214],{29242(t,e,r){function n(){return[1,0,0,0,1,0,0,0,1]}function s(t,e,r,n,s,i,u,o,a){return[t,e,r,n,s,i,u,o,a]}r.d(e,{fA:()=>s,vt:()=>n});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,fromValues:s},Symbol.toStringTag,{value:"Module"})),r.d(e,["zK",0,i])},82534(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,{o8:()=>s,vt:()=>n});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:s,create:n,fromValues:function(t,e,r,n){return[t,e,r,n]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["zK",0,i])},48163(t,e,r){function n(){return[0,0]}function s(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function u(){return i(1,1)}function o(){return i(-1,-1)}function a(){return i(1,0)}function f(){return i(0,1)}r.d(e,{fA:()=>i,o8:()=>s,vt:()=>n});const c=u(),l=o(),h=a(),d=f();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:l,ONES:c,UNIT_X:h,UNIT_Y:d,ZEROS:[0,0],clone:s,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){const r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,negativeOnes:o,ones:u,unitX:a,unitY:f,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["IA",0,l,"Un",0,c])},51850(t,e,r){function n(){return[0,0,0]}function s(t){return[t[0],t[1],t[2]]}function i(t,e,r){return[t,e,r]}function u(t,e,r){return[t,e,r]}function o(t,e=[0,0,0]){const r=Math.min(3,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e}function a(){return i(1,1,1)}function f(){return i(1,0,0)}function c(){return i(0,1,0)}function l(){return i(0,0,1)}r.d(e,{CN:()=>u,ci:()=>o,fA:()=>i,o8:()=>s,vt:()=>n});const h=[0,0,0],d=a(),p=f(),y=c(),m=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:p,UNIT_Y:y,UNIT_Z:m,ZEROS:h,clone:s,create:n,freeze:u,fromArray:o,fromValues:i,ones:a,unitX:f,unitY:c,unitZ:l,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Cb",0,m,"Cw",0,p,"JP",0,y,"Un",0,d,"uY",0,h])},91829(t,e,r){function n(){return[0,0,0,0]}function s(t,e,r,n){return[t,e,r,n]}function i(){return s(1,1,1,1)}function u(){return s(1,0,0,0)}function o(){return s(0,1,0,0)}function a(){return s(0,0,1,0)}function f(){return s(0,0,0,1)}r.d(e,{_Y:()=>f,fA:()=>s,vt:()=>n});const c=[0,0,0,0],l=i(),h=u(),d=o(),p=a(),y=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_W:y,UNIT_X:h,UNIT_Y:d,UNIT_Z:p,ZEROS:c,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:n,freeze:function(t,e,r,n){return[t,e,r,n]},fromArray:function(t,e=[0,0,0,0]){const r=Math.min(4,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:s,ones:i,unitW:f,unitX:u,unitY:o,unitZ:a,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Un",0,l,"uY",0,c])},34304(t,e,r){r.d(e,{DF:()=>a,FD:()=>s,ct:()=>f});let n=1e-6;function s(){return n}const i=Math.random,u=Math.PI/180,o=180/Math.PI;function a(t){return t*u}function f(t){return t*o}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(t,e){return Math.abs(t-e)<=n*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:s,setEpsilon:function(t){n=t},toDegree:f,toRadian:a},Symbol.toStringTag,{value:"Module"})),r.d(e,["Ov",0,i])},77690(t,e,r){r.d(e,{B8:()=>o,Ge:()=>d,I0:()=>h,KC:()=>a,a4:()=>f,hZ:()=>i,hs:()=>l,lw:()=>c,mg:()=>u,z0:()=>s});var n=r(34304);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,u,o,a,f){return t[0]=e,t[1]=r,t[2]=n,t[3]=s,t[4]=i,t[5]=u,t[6]=o,t[7]=a,t[8]=f,t}function u(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 o(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],u=e[4],o=e[5],a=e[6],f=e[7],c=e[8],l=c*u-o*f,h=-c*i+o*a,d=f*i-u*a;let p=r*l+n*h+s*d;return p?(p=1/p,t[0]=l*p,t[1]=(-c*n+s*f)*p,t[2]=(o*n-s*u)*p,t[3]=h*p,t[4]=(c*r-s*a)*p,t[5]=(-o*r+s*i)*p,t[6]=d*p,t[7]=(-f*r+n*a)*p,t[8]=(u*r-n*i)*p,t):null}function a(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],u=e[4],o=e[5],a=e[6],f=e[7],c=e[8];return t[0]=u*c-o*f,t[1]=s*f-n*c,t[2]=n*o-s*u,t[3]=o*a-i*c,t[4]=r*c-s*a,t[5]=s*i-r*o,t[6]=i*f-u*a,t[7]=n*a-r*f,t[8]=r*u-n*i,t}function f(t){const e=t[0],r=t[1],n=t[2],s=t[3],i=t[4],u=t[5],o=t[6],a=t[7],f=t[8];return e*(f*i-u*a)+r*(-f*s+u*o)+n*(a*s-i*o)}function c(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3],o=e[4],a=e[5],f=e[6],c=e[7],l=e[8],h=r[0],d=r[1],p=r[2],y=r[3],m=r[4],E=r[5],M=r[6],B=r[7],T=r[8];return t[0]=h*n+d*u+p*f,t[1]=h*s+d*o+p*c,t[2]=h*i+d*a+p*l,t[3]=y*n+m*u+E*f,t[4]=y*s+m*o+E*c,t[5]=y*i+m*a+E*l,t[6]=M*n+B*u+T*f,t[7]=M*s+B*o+T*c,t[8]=M*i+B*a+T*l,t}function l(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 h(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],u=r+r,o=n+n,a=s+s,f=r*u,c=n*u,l=n*o,h=s*u,d=s*o,p=s*a,y=i*u,m=i*o,E=i*a;return t[0]=1-l-p,t[3]=c-E,t[6]=h+m,t[1]=c+E,t[4]=1-f-p,t[7]=d-y,t[2]=h-m,t[5]=d+y,t[8]=1-f-l,t}function d(t,e){const r=e[0],n=e[1],s=e[2],i=e[3],u=e[4],o=e[5],a=e[6],f=e[7],c=e[8],l=e[9],h=e[10],d=e[11],p=e[12],y=e[13],m=e[14],E=e[15],M=r*o-n*u,B=r*a-s*u,T=r*f-i*u,_=n*a-s*o,b=n*f-i*o,S=s*f-i*a,A=c*y-l*p,g=c*m-h*p,v=c*E-d*p,x=l*m-h*y,N=l*E-d*y,R=h*E-d*m;let I=M*R-B*N+T*x+_*v-b*g+S*A;return I?(I=1/I,t[0]=(o*R-a*N+f*x)*I,t[1]=(a*v-u*R-f*g)*I,t[2]=(u*N-o*v+f*A)*I,t[3]=(s*N-n*R-i*x)*I,t[4]=(r*R-s*v+i*g)*I,t[5]=(n*v-r*N-i*A)*I,t[6]=(y*S-m*b+E*_)*I,t[7]=(m*T-p*S-E*B)*I,t[8]=(p*b-y*T+E*M)*I,t):null}function p(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}const y=c,m=p;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:a,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:f,equals:function(t,e){const r=t[0],s=t[1],i=t[2],u=t[3],o=t[4],a=t[5],f=t[6],c=t[7],l=t[8],h=e[0],d=e[1],p=e[2],y=e[3],m=e[4],E=e[5],M=e[6],B=e[7],T=e[8],_=(0,n.FD)();return Math.abs(r-h)<=_*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(s-d)<=_*Math.max(1,Math.abs(s),Math.abs(d))&&Math.abs(i-p)<=_*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(u-y)<=_*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(o-m)<=_*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(a-E)<=_*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(f-M)<=_*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(c-B)<=_*Math.max(1,Math.abs(c),Math.abs(B))&&Math.abs(l-T)<=_*Math.max(1,Math.abs(l),Math.abs(T))},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:h,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:o,isOrthoNormal:function(t){const e=(0,n.FD)(),r=t[0],s=t[1],i=t[2],u=t[3],o=t[4],a=t[5],f=t[6],c=t[7],l=t[8];return Math.abs(1-(r*r+u*u+f*f))<=e&&Math.abs(1-(s*s+o*o+c*c))<=e&&Math.abs(1-(i*i+a*a+l*l))<=e},mul:y,multiply:c,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:d,normalFromMat4Legacy:function(t,e){const r=e[0],n=e[1],s=e[2],i=e[4],u=e[5],o=e[6],a=e[8],f=e[9],c=e[10],l=c*u-o*f,h=-c*i+o*a,d=f*i-u*a,p=r*l+n*h+s*d;if(!p)return null;const y=1/p;return t[0]=l*y,t[1]=(-c*n+s*f)*y,t[2]=(o*n-s*u)*y,t[3]=h*y,t[4]=(c*r-s*a)*y,t[5]=(-o*r+s*i)*y,t[6]=d*y,t[7]=(-f*r+n*a)*y,t[8]=(u*r-n*i)*y,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],u=e[3],o=e[4],a=e[5],f=e[6],c=e[7],l=e[8],h=Math.sin(r),d=Math.cos(r);return t[0]=d*n+h*u,t[1]=d*s+h*o,t[2]=d*i+h*a,t[3]=d*u-h*n,t[4]=d*o-h*s,t[5]=d*a-h*i,t[6]=f,t[7]=c,t[8]=l,t},scale:l,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:p,translate:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3],o=e[4],a=e[5],f=e[6],c=e[7],l=e[8],h=r[0],d=r[1];return t[0]=n,t[1]=s,t[2]=i,t[3]=u,t[4]=o,t[5]=a,t[6]=h*n+d*u+f,t[7]=h*s+d*o+c,t[8]=h*i+d*a+l,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},37585(t,e,r){r.d(e,{C:()=>i,Cc:()=>b,Io:()=>m,LI:()=>d,Ln:()=>y,Om:()=>_,Re:()=>a,S8:()=>T,T9:()=>l,WQ:()=>o,aI:()=>v,e$:()=>A,hG:()=>E,hZ:()=>u,hs:()=>p,l0:()=>S,qE:()=>h,t2:()=>g});var n=r(34727),s=r(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t}function u(t,e,r){return t[0]=e,t[1]=r,t}function o(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function a(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 c(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function l(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}function h(t,e,r,s){return t[0]=(0,n.qE)(e[0],r[0],s[0]),t[1]=(0,n.qE)(e[1],r[1],s[1]),t}function d(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function p(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function y(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function m(t,e){const r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function E(t,e){const r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function M(t){const e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function B(t){const e=t[0],r=t[1];return e*e+r*r}function T(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}function _(t,e){return t[0]*e[0]+t[1]*e[1]}function b(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 S(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 A(t,e,r,n){const s=e[0]-r[0],i=e[1]-r[1],u=Math.sin(n),o=Math.cos(n);return t[0]=s*o-i*u+r[0],t[1]=s*u+i*o+r[1],t}function g(t,e){return t[0]===e[0]&&t[1]===e[1]}function v(t,e){const r=t[0],n=t[1],i=e[0],u=e[1],o=(0,s.FD)();return Math.abs(r-i)<=o*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(n-u)<=o*Math.max(1,Math.abs(n),Math.abs(u))}const x=M,N=a,R=f,I=c,O=m,C=E,w=B;Object.freeze(Object.defineProperty({__proto__:null,add:o,angle:function(t,e){const r=t[0],n=t[1],s=e[0],i=e[1];let u=r*r+n*n;u>0&&(u=1/Math.sqrt(u));let o=s*s+i*i;o>0&&(o=1/Math.sqrt(o));const a=(r*s+n*i)*u*o;return a>1?0:a<-1?Math.PI:Math.acos(a)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},clamp:h,copy:i,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:O,distance:m,div:I,divide:c,dot:_,equals:v,exactEquals:g,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:x,length:M,lerp:b,max:l,min:function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t},mul:R,multiply:f,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:T,projectAndScale:function(t,e,r,n,s){let i=e[0]-r[0],u=e[1]-r[1];const o=(n[0]*i+n[1]*u)*(s-1);return i=n[0]*o,u=n[1]*o,t[0]=e[0]+i,t[1]=e[1]+u,t},random:function(t,e=1){const r=2*(0,s.Ov)()*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t},rotate:A,round:d,scale:p,scaleAndAdd:y,set:u,sqrDist:C,sqrLen:w,squaredDistance:E,squaredLength:B,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:N,subtract:a,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:S,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"})),r.d(e,["Il",0,x,"jb",0,N,"xg",0,O])},35522(t,e,r){r.d(e,{$A:()=>g,Bw:()=>i,C:()=>u,Cc:()=>v,DI:()=>b,Io:()=>M,Ln:()=>E,Om:()=>A,Qr:()=>l,Re:()=>f,S8:()=>S,T9:()=>y,WQ:()=>a,Z0:()=>x,_S:()=>d,aI:()=>F,ei:()=>N,fw:()=>I,gL:()=>R,hG:()=>B,hZ:()=>o,hs:()=>m,jk:()=>p,lw:()=>c,m3:()=>T,oW:()=>U,t2:()=>w,tn:()=>h,ze:()=>_});var n=r(51850),s=r(34304);function i(t){const e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function a(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function f(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function c(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function l(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function p(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function y(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function m(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function E(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}function M(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(r*r+n*n+s*s)}function B(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2];return r*r+n*n+s*s}function T(t){const e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function _(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function b(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){const r=e[0],n=e[1],s=e[2];let i=r*r+n*n+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function g(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],a=r[2];return t[0]=s*a-i*o,t[1]=i*u-n*a,t[2]=n*o-s*u,t}function v(t,e,r,n){const s=e[0],i=e[1],u=e[2];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=u+n*(r[2]-u),t}function x(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12],t[1]=r[1]*n+r[5]*s+r[9]*i+r[13],t[2]=r[2]*n+r[6]*s+r[10]*i+r[14],t}function N(t,e,r){const n=e[0],s=e[1],i=e[2];return t[0]=n*r[0]+s*r[3]+i*r[6],t[1]=n*r[1]+s*r[4]+i*r[7],t[2]=n*r[2]+s*r[5]+i*r[8],t}function R(t,e,r){return I(t,e,r[0],r[1],r[2],r[3])}function I(t,e,r,n,s,i){const u=e[0],o=e[1],a=e[2],f=n*a-s*o,c=s*u-r*a,l=r*o-n*u,h=n*l-s*c,d=s*f-r*l,p=r*c-n*f,y=2*i;return t[0]=u+f*y+2*h,t[1]=o+c*y+2*d,t[2]=a+l*y+2*p,t}const O=(0,n.vt)(),C=(0,n.vt)();function w(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function F(t,e){if(t===e)return!0;const r=t[0],n=t[1],i=t[2],u=e[0],o=e[1],a=e[2],f=(0,s.FD)();return Math.abs(r-u)<=f*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(n-o)<=f*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=f*Math.max(1,Math.abs(i),Math.abs(a))}function U(t,e,r){const n=r[0]-e[0],s=r[1]-e[1],i=r[2]-e[2];let u=n*n+s*s+i*i;return u>0?(u=1/Math.sqrt(u),t[0]=n*u,t[1]=s*u,t[2]=i*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const L=f,D=c,G=l,P=M,V=B,q=i,Y=T;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:a,angle:function(t,e){S(O,t),S(C,e);const r=A(O,C);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,e,r,n,s,i){const u=1-i,o=u*u,a=i*i,f=o*u,c=3*i*o,l=3*a*u,h=a*i;return t[0]=e[0]*f+r[0]*c+n[0]*l+s[0]*h,t[1]=e[1]*f+r[1]*c+n[1]*l+s[1]*h,t[2]=e[2]*f+r[2]*c+n[2]*l+s[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,r=1){return t[0]=Math.min(Math.max(t[0],e),r),t[1]=Math.min(Math.max(t[1],e),r),t[2]=Math.min(Math.max(t[2],e),r),t},copy:u,cross:g,crossAndNormalize:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],a=r[2],f=s*a-i*o,c=i*u-n*a,l=n*o-s*u,h=Math.sqrt(f*f+c*c+l*l);return t[0]=f/h,t[1]=c/h,t[2]=l/h,t},direction:U,dist:P,distance:M,div:G,divide:l,dot:A,equals:F,exactEquals:w,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,r,n,s,i){const u=i*i,o=u*(2*i-3)+1,a=u*(i-2)+i,f=u*(i-1),c=u*(3-2*i);return t[0]=e[0]*o+r[0]*a+n[0]*f+s[0]*c,t[1]=e[1]*o+r[1]*a+n[1]*f+s[1]*c,t[2]=e[2]*o+r[2]*a+n[2]*f+s[2]*c,t},inverse:b,len:q,length:i,lerp:v,max:y,min:p,mul:D,multiply:c,negate:_,normalize:S,random:function(t,e=1){const r=s.Ov,n=2*r()*Math.PI,i=2*r()-1,u=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*u,t[1]=Math.sin(n)*u,t[2]=i*e,t},rotateX:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0],i[1]=s[1]*Math.cos(n)-s[2]*Math.sin(n),i[2]=s[1]*Math.sin(n)+s[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateY:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[2]*Math.sin(n)+s[0]*Math.cos(n),i[1]=s[1],i[2]=s[2]*Math.cos(n)-s[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},rotateZ:function(t,e,r,n){const s=[],i=[];return s[0]=e[0]-r[0],s[1]=e[1]-r[1],s[2]=e[2]-r[2],i[0]=s[0]*Math.cos(n)-s[1]*Math.sin(n),i[1]=s[0]*Math.sin(n)+s[1]*Math.cos(n),i[2]=s[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:E,scaleTo:function(t,e){return m(t,t,e/q(t))},set:o,sign:d,sqrDist:V,sqrLen:Y,squaredDistance:B,squaredLength:T,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:L,subtract:f,transformMat3:N,transformMat4:x,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:R,transformQuatValues:I},Symbol.toStringTag,{value:"Module"})),r.d(e,["Il",0,q,"jb",0,L,"lo",0,V,"uE",0,Y])},78955(t,e,r){r.d(e,{Bw:()=>m,C:()=>s,Cc:()=>T,LI:()=>h,Om:()=>B,S8:()=>M,T9:()=>l,WQ:()=>u,Z0:()=>_,aI:()=>S,hG:()=>y,hZ:()=>i,hs:()=>d,jk:()=>c,m3:()=>E,t2:()=>b});var n=r(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function i(t,e,r,n,s){return t[0]=e,t[1]=r,t[2]=n,t[3]=s,t}function u(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}function o(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}function a(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}function f(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}function c(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}function l(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}function h(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function d(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}function p(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return Math.sqrt(r*r+n*n+s*s+i*i)}function y(t,e){const r=e[0]-t[0],n=e[1]-t[1],s=e[2]-t[2],i=e[3]-t[3];return r*r+n*n+s*s+i*i}function m(t){const e=t[0],r=t[1],n=t[2],s=t[3];return Math.sqrt(e*e+r*r+n*n+s*s)}function E(t){const e=t[0],r=t[1],n=t[2],s=t[3];return e*e+r*r+n*n+s*s}function M(t,e){const r=e[0],n=e[1],s=e[2],i=e[3];let u=r*r+n*n+s*s+i*i;return u>0&&(u=1/Math.sqrt(u),t[0]=r*u,t[1]=n*u,t[2]=s*u,t[3]=i*u),t}function B(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function T(t,e,r,n){const s=e[0],i=e[1],u=e[2],o=e[3];return t[0]=s+n*(r[0]-s),t[1]=i+n*(r[1]-i),t[2]=u+n*(r[2]-u),t[3]=o+n*(r[3]-o),t}function _(t,e,r){const n=e[0],s=e[1],i=e[2],u=e[3];return t[0]=r[0]*n+r[4]*s+r[8]*i+r[12]*u,t[1]=r[1]*n+r[5]*s+r[9]*i+r[13]*u,t[2]=r[2]*n+r[6]*s+r[10]*i+r[14]*u,t[3]=r[3]*n+r[7]*s+r[11]*i+r[15]*u,t}function b(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function S(t,e){const r=t[0],s=t[1],i=t[2],u=t[3],o=e[0],a=e[1],f=e[2],c=e[3],l=(0,n.FD)();return Math.abs(r-o)<=l*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(s-a)<=l*Math.max(1,Math.abs(s),Math.abs(a))&&Math.abs(i-f)<=l*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(u-c)<=l*Math.max(1,Math.abs(u),Math.abs(c))}const A=o,g=a,v=f,x=p,N=y,R=m,I=E;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:s,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:x,distance:p,div:v,divide:f,dot:B,equals:S,exactEquals:b,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:R,length:m,lerp:T,max:l,min:c,mul:g,multiply:a,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:M,random:function(t,e=1){const r=n.Ov;let s,i,u,o,a,f;do{s=2*r()-1,i=2*r()-1,a=s*s+i*i}while(a>=1);do{u=2*r()-1,o=2*r()-1,f=u*u+o*o}while(f>=1);const c=Math.sqrt((1-a)/f);return t[0]=e*s,t[1]=e*i,t[2]=e*u*c,t[3]=e*o*c,t},round:h,scale:d,scaleAndAdd: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},set:i,sqrDist:N,sqrLen:I,squaredDistance:y,squaredLength:E,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:A,subtract:o,transformMat4:_,transformQuat:function(t,e,r){const n=e[0],s=e[1],i=e[2],u=r[0],o=r[1],a=r[2],f=r[3],c=f*n+o*i-a*s,l=f*s+a*n-u*i,h=f*i+u*s-o*n,d=-u*n-o*s-a*i;return t[0]=c*f+d*-u+l*-a-h*-o,t[1]=l*f+d*-o+h*-u-c*-a,t[2]=h*f+d*-a+c*-o-l*-u,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},34727(t,e,r){r.d(e,{$8:()=>A,Cc:()=>o,Hx:()=>m,Io:()=>b,KJ:()=>c,OS:()=>x,Sp:()=>d,XM:()=>l,YN:()=>h,ZH:()=>y,b6:()=>S,cU:()=>s,gg:()=>p,hs:()=>a,kU:()=>f,mP:()=>u,or:()=>v,pF:()=>R,qE:()=>i});const n=new Float32Array(1);function s(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function i(t,e,r){return Math.min(Math.max(t,e),r)}function u(t,e){return 0===e?0:Math.ceil(t/e)*e}function o(t,e,r){return t+(e-t)*r}function a(t,e,r,n,s){return o(n,s,(t-e)/(r-e))}function f(t){return t*Math.PI/180}function c(t){return 180*t/Math.PI}function l(t){return Math.acos(i(t,-1,1))}function h(t){return Math.asin(i(t,-1,1))}function d(t,e,r=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=r}function p(t,e,r=1e-6){return!d(t,e,r)&&t>e}function y(t,e,r=1e-6){return!d(t,e,r)&&t<e}function m(t,e,r=1e-6){return d(t,e,r)||t>e}const E=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function M(t){return E.setFloat64(0,t),E.getBigInt64(0)}const B=1000000n,T=_(1);function _(t){const e=M(t=Math.abs(t)),r=function(t){return E.setBigInt64(0,t),E.getFloat64(0)}(e<=B?B:e-B);return Math.abs(t-r)}function b(t,e,r=T){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=r&&_(Math.min(Math.abs(t),Math.abs(e)))<r)return Math.abs(t-e)<=r;const n=M(t),s=M(e);return n<0==s<0&&!((n<s?s-n:n-s)>B)}function S(t,e,r=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;const n=Math.abs(t-e),s=Math.abs(t),i=Math.abs(e);if(0===t||0===e||s<1e-12&&i<1e-12){if(n>.01*r)return!1}else if(n/(s+i)>r)return!1;return!0}function A(t){return g(Math.max(-N,Math.min(t,N)))}function g(t){return n[0]=t,n[0]}function v(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],r=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],n=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(d(e,1)&&d(r,1)&&d(n,1))}function x(t,e){return(t%e+e)%e}const N=g(34028234663852886e22);function R(t,e,r){if(void 0===r||0===+r)return Math[t](e);if(e=+e,r=+r,isNaN(e)||"number"!=typeof r||r%1!=0)return NaN;let n=e.toString().split("e");return n=(e=Math[t](+(n[0]+"e"+(n[1]?+n[1]-r:-r)))).toString().split("e"),+(n[0]+"e"+(n[1]?+n[1]+r:r))}r.d(e,["pq",0,N])},13030(t,e,r){r.d(e,{Y$:()=>M,XW:()=>E,qB:()=>R,Qt:()=>$,My:()=>K,bf:()=>H,jZ:()=>g,j0:()=>v,Sx:()=>x,E$:()=>N,Qy:()=>it,h:()=>D,P:()=>q,SL:()=>w,dy:()=>nt,ES:()=>ut,gH:()=>T,ZD:()=>B,si:()=>I,mJ:()=>Q,UL:()=>tt,D6:()=>X,Yi:()=>G,An:()=>Y,LC:()=>F,xs:()=>b,EC:()=>_,Xm:()=>O,Vp:()=>W,zD:()=>et,m8:()=>Z,nS:()=>P,H$:()=>z,eI:()=>U,td:()=>st,Eq:()=>A,jz:()=>S,Aj:()=>C,E7:()=>J,Y4:()=>rt,TX:()=>k,Uz:()=>V,ml:()=>j,XP:()=>L});var n=r(34727),s=r(37585),i=r(48163),u=r(78955),o=r(91829),a=r(20498);class f{static{this.ElementCount=9}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 u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(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,u=r*e.typedBufferStride;for(let t=0;t<9;++t)n[i++]=s[u++]}get buffer(){return this.typedBuffer.buffer}}class c{static{this.ElementCount=16}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 u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(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){this.copyFromTypedBuffer(t,e.typedBuffer,r*e.typedBufferStride)}copyFromTypedBuffer(t,e,r){const n=this.typedBuffer;let s=t*this.typedBufferStride;for(let t=0;t<16;++t)n[s++]=e[r++]}get buffer(){return this.typedBuffer.buffer}}class l{static{this.ElementCount=1}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 u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(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}}class h{static{this.ElementCount=2}constructor(t,e,r=0,n,s){this.TypedArrayConstructor=t,this.start=r,this.elementCount=2;const i=this.TypedArrayConstructor;void 0===n&&(n=2*i.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(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,s.hZ)(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,u=r*e.typedBufferStride;n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var d=r(35522);class p{static{this.ElementCount=3}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 u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(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,d.hZ)(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,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}class y{static{this.ElementCount=4}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 u=0===e.byteLength?0:r;this.typedBuffer=null==s?new i(e,u):new i(e,u,(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.hZ)(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,u=r*e.typedBufferStride;n[i++]=s[u++],n[i++]=s[u++],n[i++]=s[u++],n[i]=s[u]}get buffer(){return this.typedBuffer.buffer}}var m=r(620);class E extends l{constructor(t,e=0,r,n){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,r,n),this.elementType="f16"}static{this.ElementType="f16"}}class M extends l{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class B extends h{constructor(t,e=0,r,n){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(B,t,e)}static{this.ElementType="f16"}}class T extends h{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(T,t,e)}static{this.ElementType="f32"}}class _ extends p{constructor(t,e=0,r,n){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f16"}}class b extends p{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)}static{this.ElementType="f32"}}class S extends y{constructor(t,e=0,r,n){(0,m.vA)(a.SX),super((0,a.pX)(),t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(S,t,e)}static{this.ElementType="f16"}}class A extends y{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f32"}}class g extends f{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{this.ElementType="f32"}}class v extends f{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="f64"}}class x extends c{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="f32"}}class N extends c{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(N,t,e)}static{this.ElementType="f64"}}class R extends l{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(R,t,e)}static{this.ElementType="f64"}}class I extends h{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(I,t,e)}static{this.ElementType="f64"}}class O extends p{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}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)}static{this.ElementType="f64"}}class C extends y{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="f64"}}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{this.ElementType="u8"}}class F extends h{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(F,t,e)}static{this.ElementType="u8"}}class U extends p{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}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)}static{this.ElementType="u8"}}class L extends y{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(L,t,e)}static{this.ElementType="u8"}}class D extends l{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="u16"}}class G extends h{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="u16"}}class P extends p{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{this.ElementType="u16"}}class V extends y{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{this.ElementType="u16"}}class q extends l{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="u32"}}class Y extends h{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{this.ElementType="u32"}}class z extends p{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="u32"}}class j extends y{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="u32"}}class H extends l{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="i8"}}class X extends h{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{this.ElementType="i8"}}class Z extends p{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="i8"}}class k extends y{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="i8"}}class $ extends l{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i16"}}class Q extends h{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i16"}}class W extends p{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{this.ElementType="i16"}}class J extends y{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{this.ElementType="i16"}}class K extends l{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{this.ElementType="i32"}}class tt extends h{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(tt,t,e)}static{this.ElementType="i32"}}class et extends p{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(et,t,e)}static{this.ElementType="i32"}}class rt extends y{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(rt,t,e)}static{this.ElementType="i32"}}class nt extends w{constructor(t,e=0,r,n){super(t,e,r,n)}get(t){return this.typedBuffer[t*this.typedBufferStride]/255}set(t,e){this.typedBuffer[t*this.typedBufferStride]=Math.round(255*(0,n.qE)(e,0,1))}slice(t,e){return this.sliceBuffer(nt,t,e)}}class st extends L{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,u.hs)(e,super.getVec(t,e),1/255)}setVec(t,e){(0,u.jk)(at,(0,u.T9)(at,e,o.uY),o.Un),(0,u.hs)(at,at,255),(0,u.LI)(at,at),super.setVec(t,at)}get(t,e){return super.get(t,e)/255}set(t,e,r){super.set(t,e,Math.round(255*(0,n.qE)(r,0,1)))}setValues(t,e,r,n,s){(0,u.hZ)(at,e,r,n,s),this.setVec(t,at)}slice(t,e){return this.sliceBuffer(st,t,e)}}class it extends ${constructor(t,e=0,r,n){super(t,e,r,n)}get(t){return Math.max(super.get(t)/32767,-1)}set(t,e){super.set(t,Math.round(32767*(0,n.qE)(e,-1,1)))}slice(t,e){return this.sliceBuffer(it,t,e)}}class ut extends Q{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,s.hZ)(ot,-1,-1),(0,s.T9)(e,(0,s.hs)(e,super.getVec(t,e),1/32767),ot)}setVec(t,e){(0,s.qE)(ot,e,i.IA,i.Un),(0,s.hs)(ot,ot,32767),(0,s.LI)(ot,ot),super.setVec(t,ot)}get(t,e){return Math.max(super.get(t,e)/32767,-1)}set(t,e,r){super.set(t,e,Math.round(32767*(0,n.qE)(r,-1,1)))}setValues(t,e,r){(0,s.hZ)(ot,e,r),this.setVec(t,ot)}slice(t,e){return this.sliceBuffer(ut,t,e)}}const ot=(0,i.vt)(),at=(0,o.vt)()},90239(t,e,r){function n(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":case"f16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(e,{GJ:()=>n})},20498(t,e,r){r.d(e,{SX:()=>i,pX:()=>s});let n=globalThis.Float16Array;function s(){return n}let i=!!n},77214(t,e,r){r.r(e),r.d(e,{destroyContext:()=>b,initialize:()=>B,processVertices:()=>_});var n=r(82534),s=r(51850),i=r(13030),u=r(77690),o=r(29242),a=r(35522),f=r(89606);class c{constructor(t=1/0,e=-1/0){this.minElevation=t,this.maxElevation=e}get elevationRangeValid(){return!Number.isNaN(this.minElevation)}get isEmpty(){return!(this.minElevation<=this.maxElevation)}contains(t){return this.minElevation<=t.minElevation&&this.maxElevation>=t.maxElevation}invalidateElevationRange(){this.minElevation=NaN}initializeEmpty(){this.minElevation=1/0,this.maxElevation=-1/0}expandElevationRange(t){const e=Math.min(this.minElevation,t.minElevation),r=Math.max(this.maxElevation,t.maxElevation),n=e!==this.minElevation||r!==this.maxElevation;return this.minElevation=e,this.maxElevation=r,n}expandElevationRangeValues(t,e){const r=Math.min(this.minElevation,t),n=Math.max(this.maxElevation,e),s=r!==this.minElevation||n!==this.maxElevation;return this.minElevation=r,this.maxElevation=n,s}setElevationRange(t){this.minElevation=t.minElevation,this.maxElevation=t.maxElevation}setElevationRangeValues(t,e){this.minElevation=t,this.maxElevation=e}equals(t){return this.minElevation===t.minElevation&&this.maxElevation===t.maxElevation}}var l=r(1843),h=r(65786);h.Y;class d extends h.Y{constructor(t,e,r){super(),this.hasVertexColors=t,this.hasNormals=e,this.textureCoordinateType=r}}function p(t){const e=(0,l.BP)().vec3f("position");return t.hasNormals&&e.vec2i16("normalCompressed",{glNormalized:!0}),1===t.textureCoordinateType?e.vec2f("uv0"):2===t.textureCoordinateType&&(e.vec2f("uv0"),e.vec4u16("uvRegion",{glNormalized:!0})),t.hasVertexColors&&e.vec4u8("color",{glNormalized:!0}),e.freeze()}function y(t,e,r,n,i,u,o){const a=new Array,l=(0,s.fA)(0,0,0),h=new c,y={origin:e,ellipsoidRadius:r,isGlobal:n,ecefRotation:i};for(const e of t){const{componentIndex:t,positionView:r,indicesView:n,texCoord0Data:s,colorView:i,normalsData:c}=e,E=r.count,M=s?1:0,B=new d(null!=i,null!=c||o,M),T=o&&null==c?(0,f.GN)(n.typedBuffer,r.typedBuffer,r.typedBufferStride):null,_=T?.outputVertexCount??E,b=p(B),S=b.createBuffer(_),A=T?b.fields.get("normalCompressed"):null;if(null!=T&&null==A)throw new Error("computeNormals requires a reserved NORMALCOMPRESSED attribute in layout");let g;if(m(y,{texCoord0Data:s,colorView:i,packedNormalsSource:T?T.packedNormals:c??null},S,{positionView:r,tileObb:u,obbHalfSizeAccumulator:l,elevationRange:h}),null!=T){const t=b.stride/4,e=A.offset/4,r=E,n=new Uint32Array(S.buffer);(0,f.yf)(n,t,e,n,t,r,_,T.appendedVertexToOriginal,T.packedNormals,!1),g=T.indices}else g=n.typedBuffer;a.push({componentIndex:t,positionView:r,indicesView:n,layout:b,textureCoordinateType:M,interleavedVertexData:S.buffer,indices:g})}return{vertexProcessingOutputs:a,obbHalfSizeAccumulator:l,elevationRange:h}}function m(t,e,r,n){const{origin:s,ellipsoidRadius:f,isGlobal:c,ecefRotation:l}=t,{texCoord0Data:h,colorView:d,packedNormalsSource:p}=e,{positionView:y,tileObb:m,obbHalfSizeAccumulator:B,elevationRange:T}=n,_=r.getField("position",i.xs),b=_.typedBuffer,S=_.typedBufferStride,A=null!=h?r.getField("uv0",i.gH):null,g=A?.typedBuffer,v=A?.typedBufferStride??0,x=d?.typedBuffer,N=d?.elementCount??0,R=null!=d?r.getField("color",i.XP):null,I=R?.typedBuffer,O=R?.typedBufferStride??0,C=null!=p?r.getField("normalCompressed",i.mJ):null,w=null!=C?new Uint32Array(C.typedBuffer.buffer,C.typedBuffer.byteOffset,C.typedBuffer.length/2):null,F=null!=C?C.typedBufferStride/2:0,U=(0,u.I0)(M,m.quaternionConjugate),L=(0,a.ei)(E,m.center,U),D=U[0],G=U[1],P=U[2],V=U[3],q=U[4],Y=U[5],z=U[6],j=U[7],H=U[8],X=L[0],Z=L[1],k=L[2],$=l[0],Q=l[1],W=l[2],J=l[3],K=l[4],tt=l[5],et=l[6],rt=l[7],nt=l[8],st=l!==o.zK,it=s[0],ut=s[1],ot=s[2],at=y.count,ft=y.typedBufferStride,ct=y.typedBuffer,lt=null!=g&&null!=h,ht=null!=I&&null!=x&&(3===N||4===N),dt=4===N,pt=null!=w&&null!=p;let yt=B[0],mt=B[1],Et=B[2];for(let t=0;t<at;++t){const e=t*ft,r=ct[e],n=ct[e+1],s=ct[e+2],i=r+it,u=n+ut,o=s+ot,a=c?Math.sqrt(i*i+u*u+o*o)-f:o;T.expandElevationRangeValues(a,a);const l=Math.abs(i*D+u*V+o*z-X),d=Math.abs(i*G+u*q+o*j-Z),y=Math.abs(i*P+u*Y+o*H-k);yt=Math.max(yt,l),mt=Math.max(mt,d),Et=Math.max(Et,y),st&&(ct[e]=r*$+n*J+s*et,ct[e+1]=r*Q+n*K+s*rt,ct[e+2]=r*W+n*tt+s*nt);const m=t*S;if(b[m]=r,b[m+1]=n,b[m+2]=s,lt){const e=2*t,r=t*v;g[r]=h[e],g[r+1]=h[e+1]}if(ht){const e=t*O;if(dt){const r=4*t;I[e]=x[r],I[e+1]=x[r+1],I[e+2]=x[r+2],I[e+3]=x[r+3]}else{const r=3*t;I[e]=x[r],I[e+1]=x[r+1],I[e+2]=x[r+2],I[e+3]=255}}pt&&(w[t*F]=p[t])}B[0]=yt,B[1]=mt,B[2]=Et}const E=(0,s.vt)(),M=(0,o.vt)();function B(){}function T(t){const{colorData:e,colorElementCount:r}=t;if(null==e||0===r)return;const n=e.byteOffset,s=n+e.byteLength;return 3===r?e instanceof Float32Array?new i.xs(e.buffer,n,void 0,s):e instanceof Uint8Array?new i.eI(e.buffer,n,void 0,s):new i.nS(e.buffer,n,void 0,s):e instanceof Float32Array?new i.Eq(e.buffer,n,void 0,s):e instanceof Uint8Array?new i.XP(e.buffer,n,void 0,s):new i.Uz(e.buffer,n,void 0,s)}async function _(t){const e={center:(0,s.o8)(t.tileObbCenter),quaternionConjugate:(0,n.o8)(t.tileObbQuaternionConjugate)},{vertexProcessingOutputs:r,obbHalfSizeAccumulator:u,elevationRange:o}=y(t.inputs.map((t,e)=>{const{indicesData:r}=t,n=t.positionData.byteOffset,s=n+t.positionData.byteLength,u=t.positionStride*Float32Array.BYTES_PER_ELEMENT,o=r.byteOffset,a=o+r.byteLength;return{componentIndex:e,positionView:new i.xs(t.positionData.buffer,n,u,s),indicesView:r instanceof Uint16Array?new i.h(r.buffer,o,void 0,a):new i.P(r.buffer,o,void 0,a),texCoord0Data:t.texCoord0Data??void 0,colorView:T(t),normalsData:t.normalsData??void 0}}),t.origin,t.ellipsoidRadius,t.isGlobal,t.ecefRotation,e,t.imVertexNormals),a=(c=r,l=t.isGlobal,c.map(t=>({positionData:l?t.positionView.typedBuffer:null,interleavedVertexData:t.interleavedVertexData,renderIndices:t.indices===t.indicesView.typedBuffer?null:t.indices}))),f=function(t){const e=[];for(const r of t)null!=r.positionData&&e.push(r.positionData.buffer),e.push(r.interleavedVertexData),null!=r.renderIndices&&e.push(r.renderIndices.buffer);return e}(a);var c,l;return{result:{outputs:a,obbHalfSizeAccumulator:(0,s.o8)(u),minElevation:o.minElevation,maxElevation:o.maxElevation},transferList:f}}function b(t){}},89606(t,e,r){r.d(e,{GN:()=>l,MU:()=>c,yf:()=>d});var n=r(35522),s=r(51850),i=r(10614),u=r(63907),o=r(74038);class a{constructor(t,e){this.data=t,this.indices=e}}class f{constructor(t,e,r,n,s){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=r,this.outputVertexCount=n,this.appendedVertexCount=s}}function c(t,e,r,f,c){return!f||r.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,r,u){const o=new a(t.slice().buffer,e);if(!u)return o;const f=r[0].stride,c=o.data.byteLength/f;for(const t of r)if("normalCompressed"===t.name){const{offset:e}=t,r=new Int16Array(o.data),a=(0,s.vt)();for(let t=0;t<c;++t)(0,i.Tz)(a,r,t,f/2,e/2),(0,n.ei)(a,a,u),(0,i.aT)(r,t,a[0],a[1],a[2],f/2,e/2)}else if("normal"===t.name){const{offset:e}=t,r=new Float32Array(o.data),i=(0,s.vt)();for(let t=0;t<c;++t){const s=(t*f+e)/4;i[0]=r[s],i[1]=r[s+1],i[2]=r[s+2],(0,n.ei)(i,i,u),r[s]=i[0],r[s+1]=i[1],r[s+2]=i[2]}}return o}(t,e,r,c):function(t,e,r,n){const s=r[0].stride,i=s/4,a=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),f=t.byteLength/s,c=1<r.length?r[1].offset/4:i,d=s+4;r.forEach((t,e)=>{t.stride=d,e>=1&&(t.offset+=4)}),r.splice(1,0,new o._("normalCompressed",2,u.pe.SHORT,12,d,!0));const p=l(e,a,i,n);return h(a,f,c,s,d,p)}(t,e,r,c)}function l(t,e,r,n){const s=t.length/3,i=e.length/r,{faceNormals:u,faceAreas:o,faceEdges:a,edgeFaces:f,vertexFaces:c,vertexFaceCountAndOffset:l}=function(t,e,r,n,s,i){const u=new Float32Array(3*s),o=new Float32Array(s),a=new Uint32Array(3*s),f=new Int32Array(3*s*2),c=3*s,l=new Uint32Array(c),h=new Uint32Array(2*r);for(let t=0;t<s;++t){const e=3*t;for(let t=0;t<3;++t)++h[2*n[e+t]]}{let t=0;for(let e=0;e<r;++e){const r=2*e;h[r+1]=t,t+=h[r]}for(let t=0;t<s;++t){const e=3*t;for(let r=0;r<3;++r)l[h[2*n[e+r]+1]++]=t}for(let t=0;t<r;++t)h[2*t+1]-=h[2*t]}let d=0;const p=new Uint32Array(2*c*2),y=new Uint32Array(2*r);for(let t=0;t<r;++t){const e=2*t,r=4*h[e+1];y[e]=r,y[e+1]=r}function m(t,e,r){const n=Math.min(t,e),s=Math.max(t,e),i=t<e?0:1,u=2*n,o=y[u],a=y[u+1];let c=-1;for(let t=o;t<a;t+=2)if(p[t]===s){c=p[t+1];break}return-1===c&&(c=d++,p[a]=s,p[a+1]=c,y[u+1]=a+2,f[2*c+(1-i)]=-1),f[2*c+i]=r,c}for(let r=0;r<n.length;r+=3){const s=n[r],f=s*e,c=t[f],l=t[f+1],h=t[f+2],d=n[r+1],p=d*e,y=t[p],E=t[p+1],M=t[p+2],B=n[r+2],T=B*e,_=c-y,b=l-E,S=h-M,A=c-t[T],g=l-t[T+1],v=h-t[T+2],x=b*v-S*g,N=S*A-_*v,R=_*g-b*A,I=Math.sqrt(x*x+N*N+R*R)||1,O=r/3;o[O]=.5*I;const C=1/I;if(i){const t=i[0]*x+i[3]*N+i[6]*R,e=i[1]*x+i[4]*N+i[7]*R,r=i[2]*x+i[5]*N+i[8]*R;u[3*O]=t*C,u[3*O+1]=e*C,u[3*O+2]=r*C}else u[3*O]=x*C,u[3*O+1]=N*C,u[3*O+2]=R*C;const w=m(s,d,O),F=m(d,B,O),U=m(B,s,O);a[3*O]=w,a[3*O+1]=F,a[3*O+2]=U}return{faceNormals:u,faceAreas:o,faceEdges:a,vertexFaces:l,vertexFaceCountAndOffset:h,edgeFaces:f}}(e,r,i,t,s,n);return function(t,e,r,n,s,i){const u=new Uint8Array(e),o=new Uint32Array(e),a=new Uint32Array(3*e);let f=0;const c=new Uint32Array(e);let l=0;for(let e=0;e<t.length;e+=3){const t=e/3;if(1===u[t])continue;u[t]=1;const h=r[3*t],d=r[3*t+1],p=r[3*t+2];for(l=0,c[l++]=t,a[0]=s[3*t],a[1]=s[3*t+1],a[2]=s[3*t+2],f=3,o[t]=t+1;f>0;){const e=a[--f];for(let n=0;n<2;++n){const m=i[2*e+n];if(-1===m||o[m]===t+1)continue;o[m]=t+1;const E=r[3*m],M=r[3*m+1],B=r[3*m+2];if(Math.abs(1-(h*E+d*M+p*B))<y){c[l++]=m,u[m]=1;for(let t=0;t<3;++t){const r=s[3*m+t];r!==e&&(a[f++]=r)}}}}if(l>1){let t=0,e=0,s=0,i=0;for(let u=0;u<l;++u){const o=c[u],a=n[o];t+=a,e+=r[3*o]*a,s+=r[3*o+1]*a,i+=r[3*o+2]*a}const u=Math.sqrt(e*e+s*s+i*i)||1;e/=u,s/=u,i/=u;for(let u=0;u<l;++u){const o=c[u];r[3*o]=e,r[3*o+1]=s,r[3*o+2]=i,n[o]=t}}}}(t,s,u,o,a,f),p(s,i,t,u,o,c,l)}function h(t,e,r,n,s,i){const u=n/4,o=s/4,f=i.outputVertexCount,c=new Float32Array(f*o),l=new Uint32Array(c.buffer),h=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,r,n,s,i,u){for(let o=0;o<i;++o){const i=o*s,a=o*e;for(let e=0;e<r;++e)t[a+e]=n[i+e];t[a+r]=u[o];for(let e=r;e<s;++e)t[a+e+1]=n[i+e]}}(l,o,r,h,u,e,i.packedNormals),d(l,o,r,h,u,e,f,i.appendedVertexToOriginal,i.packedNormals,!0),new a(c.buffer,i.indices)}function d(t,e,r,n,s,i,u,o,a,f){for(let c=i;c<u;++c){const u=o[c-i]*s,l=c*e;for(let e=0;e<s;++e)t[l+e+(f&&e>=r?1:0)]=n[u+e];t[l+r]=a[c]}}function p(t,e,r,n,s,i,u){const o=3*t,a=new(o<256?Uint8Array:o<65536?Uint16Array:Uint32Array)(r);let c=e;const l=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(o-e),h=new ArrayBuffer(4*o),d=new Int16Array(h),p=new Uint32Array(h);let y=0,E=0;const M=new Uint32Array(t);let B=0;const T=1-m;for(let t=0;t<e;++t){y=u[2*t+1],E=y+u[2*t];let r=t;for(;y<E;){{const t=i[--E],e=3*t,u=n[e],o=n[e+1],a=n[e+2];B=0,M[B++]=t;let f=y;for(;f<E;){const t=i[f],e=3*t;if(u*n[e]+o*n[e+1]+a*n[e+2]>T){M[B++]=t;const e=--E;if(f<e){i[f]=i[e];continue}}++f}let c=0,l=0,h=0;if(1===B)c=u,l=o,h=a;else{for(let t=0;t<B;++t){const e=M[t],r=s[e],i=3*e;c+=n[i]*r,l+=n[i+1]*r,h+=n[i+2]*r}const t=Math.sqrt(c*c+l*l+h*h)||1;c/=t,l/=t,h/=t}{const t=1/(Math.abs(c)+Math.abs(l)+Math.abs(h)),e=c*t,n=l*t;let s=e,i=n;h<=0&&(s=(e>=0?1:-1)*(1-Math.abs(n)),i=(n>=0?1:-1)*(1-Math.abs(e)));const u=2*r,o=Math.round(32767*s),a=Math.round(32767*i);d[u]=o<-32767?-32767:o>32767?32767:o,d[u+1]=a<-32767?-32767:a>32767?32767:a}}if(r!==t)for(let e=0;e<B;++e){const n=3*M[e];a[n]===t&&(a[n]=r),a[n+1]===t&&(a[n+1]=r),a[n+2]===t&&(a[n+2]=r)}if(y>=E)break;r=c++,l[r-e]=t}}return new f(a,p,l,c,c-e)}const y=.04,m=.8},1843(t,e,r){r.d(e,{BP:()=>l,l5:()=>h});var n=r(20498),s=r(13030),i=r(90239),u=r(4431),o=r(620),a=r(85079);class f{constructor(t,e,r=0){this.layout=t,this.byteOffset=r,this.buffer="number"==typeof e?new ArrayBuffer(e*t.stride):e;for(const e of t.fields.keys()){const n=t.fields.get(e);this[e]=new n.constructor(this.buffer,r+n.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.byteLength/this.stride}get byteLength(){return this.buffer.byteLength-this.byteOffset}getField(t,e){const r=this[t];return r&&r.elementCount===e.ElementCount&&r.elementType===e.ElementType?r:null}slice(t,e){return new f(this.layout,this.buffer.slice(t*this.stride,e*this.stride))}copyFrom(t,e=0,r=0,n=t.count){const s=this.stride;if(s%4==0){const i=new Uint32Array(t.buffer,e*s,n*s/4);new Uint32Array(this.buffer,r*s,n*s/4).set(i)}else{const i=new Uint8Array(t.buffer,e*s,n*s);new Uint8Array(this.buffer,r*s,n*s).set(i)}return this}get usedMemory(){return this.byteLength}dispose(){}}class c{constructor(t){this._stride=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach(t=>this._fields.set(t[0],{...t[1],constructor:y(t[1].constructor)})))}freeze(){return this}get locations(){return(0,a.Xk)((0,u.U)(this))}vec2f16(t,e){return this._appendField(t,n.SX?s.ZD:s.gH,e),this}vec2f(t,e){return this._appendField(t,s.gH,e),this}vec2f64(t,e){return this._appendField(t,s.si,e),this}vec3f16(t,e){return this._appendField(t,n.SX?s.EC:s.xs,e),this}vec3f(t,e){return this._appendField(t,s.xs,e),this}vec3f64(t,e){return this._appendField(t,s.Xm,e),this}vec4f16(t,e){return this._appendField(t,n.SX?s.jz:s.Eq,e),this}vec4f(t,e){return this._appendField(t,s.Eq,e),this}vec4f64(t,e){return this._appendField(t,s.Aj,e),this}mat3f(t,e){return this._appendField(t,s.jZ,e),this}mat3f64(t,e){return this._appendField(t,s.j0,e),this}mat4f(t,e){return this._appendField(t,s.Sx,e),this}mat4f64(t,e){return this._appendField(t,s.E$,e),this}vec4u8(t,e){return this._appendField(t,s.XP,e),this}f16(t,e){return this._appendField(t,n.SX?s.XW:s.Y$,e),this}f32(t,e){return this._appendField(t,s.Y$,e),this}f64(t,e){return this._appendField(t,s.qB,e),this}u8(t,e){return this._appendField(t,s.SL,e),this}u16(t,e){return this._appendField(t,s.h,e),this}i8(t,e){return this._appendField(t,s.bf,e),this}vec2i8(t,e){return this._appendField(t,s.D6,e),this}vec2i16(t,e){return this._appendField(t,s.mJ,e),this}vec2u8(t,e){return this._appendField(t,s.LC,e),this}vec2u16(t,e){return this._appendField(t,s.Yi,e),this}vec4u16(t,e){return this._appendField(t,s.Uz,e),this}vec4i16(t,e){return this._appendField(t,s.E7,e),this}u32(t,e){return this._appendField(t,s.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,o.vA)(!1,`${t} already added to vertex buffer layout`);const n=e.ElementCount*(0,i.GJ)(e.ElementType),s=this._stride;this._fields.set(t,{constructor:e,size:n,offset:s,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const n=(0,i.GJ)(r.constructor.ElementType);t=Math.floor((t+n-1)/n)*n,r.offset=t,t+=r.size,e=Math.max(e,n)}),t=Math.floor((t+e-1)/e)*e,this._stride=t}createBuffer(t){return new f(this,t)}createView(t,e){return new f(this,t,e)}clone(){const t=new c;return t._stride=this._stride,t._fields=new Map,this._fields.forEach((e,r)=>t._fields.set(r,e)),t.BufferType=this.BufferType,t}get stride(){return this._stride}get fields(){return this._fields}}function l(){return new c}class h{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:p(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const d=[s.Y$,s.gH,s.xs,s.Eq,s.jZ,s.Sx,s.qB,s.si,s.Xm,s.Aj,s.j0,s.E$,s.SL,s.LC,s.eI,s.XP,s.h,s.Yi,s.nS,s.Uz,s.P,s.An,s.H$,s.ml,s.bf,s.D6,s.m8,s.TX,s.Qt,s.mJ,s.Vp,s.E7,s.My,s.UL,s.zD,s.Y4];function p(t){return`${t.ElementType}_${t.ElementCount}`}function y(t){return m.get(t)}const m=new Map;d.forEach(t=>m.set(p(t),t))},4431(t,e,r){r.d(e,{U:()=>i});var n=r(63907),s=r(74038);function i(t,e=0){const r=t.stride;return t.fields.entries().map(([t,i])=>{const u=i.constructor.ElementCount,o=function(t){switch(t){case"u8":return n.pe.UNSIGNED_BYTE;case"u16":return n.pe.UNSIGNED_SHORT;case"u32":return n.pe.UNSIGNED_INT;case"i8":return n.pe.BYTE;case"i16":return n.pe.SHORT;case"i32":return n.pe.INT;case"f16":return n.pe.HALF_FLOAT;case"f32":return n.pe.FLOAT;default:throw new Error("BufferType not supported in WebGL")}}(i.constructor.ElementType),a=i.offset,f=i.optional?.glNormalized??!1,c=i.optional?.integer??!1;return new s._(t,u,o,a,r,f,e,c)}).toArray()}},10614(t,e,r){r.d(e,{Tz:()=>u,aT:()=>i});var n=r(34727),s=r(35522);function i(t,e,r,n,s,i=2,u=0){const a=1/(Math.abs(r)+Math.abs(n)+Math.abs(s)),f=r*a,c=n*a,l=s<=0?(f>=0?1:-1)*(1-Math.abs(c)):f,h=s<=0?(c>=0?1:-1)*(1-Math.abs(f)):c,d=e*i+u;t[d]=o(l),t[d+1]=o(h)}function u(t,e,r,n=2,i=0){const u=r*n+i,o=a(e[u]),f=a(e[u+1]),c=1-Math.abs(o)-Math.abs(f);return t[2]=c,c<0?(t[0]=(o>=0?1:-1)*(1-Math.abs(f)),t[1]=(f>=0?1:-1)*(1-Math.abs(o))):(t[0]=o,t[1]=f),(0,s.S8)(t,t)}function o(t){return(0,n.qE)(Math.round(32767*t),-32767,32767)}function a(t){return(0,n.qE)(t/32767,-1,1)}r(51850)},620(t,e,r){r.d(e,{O_:()=>i,vA:()=>s}),r(48163),r(78955),(0,r(91829).vt)();class n{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function s(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new n(`${e} at ${t}`)}}function i(t,e,r,n){let s,i=(r[0]-t[0])/e[0],u=(n[0]-t[0])/e[0];i>u&&(s=i,i=u,u=s);let o=(r[1]-t[1])/e[1],a=(n[1]-t[1])/e[1];if(o>a&&(s=o,o=a,a=s),i>a||o>u)return!1;o>i&&(i=o),a<u&&(u=a);let f=(r[2]-t[2])/e[2],c=(n[2]-t[2])/e[2];return f>c&&(s=f,f=c,c=s),!(i>c||f>u||(c<u&&(u=c),u<0))}},65786(t,e,r){const n=class{};new n,r.d(e,["Y",0,n])},85079(t,e,r){r.d(e,{Sk:()=>u,Xk:()=>s,_u:()=>i});var n=r(21818);function s(t){let e=0;return(0,n.z)(new Map(t.map(({name:t,count:r})=>{const n=[t,e];return 16===r?e+=4:9===r?e+=3:++e,n})))}function i(t){const e=new Map;let r=0;return t.forEach(t=>t.forEach(({name:t,count:n})=>{e.set(t,r),16===n?r+=4:9===n?r+=3:++r})),e}function u(t){return i(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,r){r.d(e,{_:()=>n});class n{constructor(t,e,r,n,s,i=!1,u=0,o=!1){this.name=t,this.count=e,this.type=r,this.offset=n,this.stride=s,this.normalized=i,this.divisor=u,this.integer=o}}},63907(t,e,r){const n={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},s={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},i=Object.values(s),u={FLOAT:n.FLOAT,UNSIGNED_BYTE:n.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:n.BYTE,UNSIGNED_SHORT:n.UNSIGNED_SHORT,SHORT:n.SHORT,UNSIGNED_INT:n.UNSIGNED_INT,INT:n.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};r.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,s,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,i,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,u,"pe",0,n,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3331],{52106(e,t,r){r.d(t,{A:()=>S});var i,o,n=r(32198),s=r(37838),l=r(69540),a=r(51447),p=r(25482),u=r(53966),c=r(36708),y=r(24326),d=r(91429),g=r(12195),h=r(65864),f=r(50498),m=r(55156),b=r(60950),v=r(54339),w=r(94128),C=r(33910);const M=Symbol("meshGeometryHandles");function x(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let S=class extends((0,l.OU)(p.o)){static{i=w.Z}static{o=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,y.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new o({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,m.I)(this.origin);if(e)return(0,v.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){const e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:x(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const o={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(o.action=i),"attributes"===e&&(o.attributeName=i),this.layer.graphicChanged(o)}_watchMeshGeometryChanges(){this.removeHandles(M);const e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,c.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],M)}};(0,n.Cg)([(0,d.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,h.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],S.prototype,"aggregateGeometries",null),(0,n.Cg)([(0,d.MZ)({value:null})],S.prototype,"attributes",null),(0,n.Cg)([(0,d.MZ)({value:null,types:f.yR,json:{read:h.rS}})],S.prototype,"geometry",null),(0,n.Cg)([(0,d.MZ)()],S.prototype,"distance",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean})],S.prototype,"isAggregate",void 0),(0,n.Cg)([(0,d.MZ)({clonable:!1})],S.prototype,"layer",void 0),(0,n.Cg)([(0,d.MZ)({clonable:"reference"})],S.prototype,"origin",void 0),(0,n.Cg)([(0,d.MZ)({type:s.A,value:null})],S.prototype,"popupTemplate",null),(0,n.Cg)([(0,d.MZ)({clonable:"reference"})],S.prototype,"sourceLayer",void 0),(0,n.Cg)([(0,d.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],S.prototype,"statisticsAggregatedIds",void 0),(0,n.Cg)([(0,d.MZ)({value:null,types:C.Es})],S.prototype,"symbol",null),(0,n.Cg)([(0,d.MZ)({clonable:!1,json:{read:!1,write:!1}})],S.prototype,"_version",void 0),(0,n.Cg)([(0,d.MZ)({type:Boolean,value:!0})],S.prototype,"visible",null),S=o=(0,n.Cg)([(0,d.$K)("esri.Graphic")],S)},4902(e,t,r){var i=r(32198),o=r(64108);let n=0;const s=e=>{const t=e;let r=class extends t{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return r=(0,i.Cg)([(0,o.$)("esri.core.Identifiable")],r),r};s(class{}),r.d(t,["s",0,s])},55156(e,t,r){r.d(t,{I:()=>o});const i=Symbol("idFieldsProviderSymbol");function o(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},4146(e,t,r){r.d(t,{A:()=>b});var i=r(32198),o=r(11254),n=r(49186),s=r(65529),l=r(4902),a=r(92474),p=r(53966),u=r(17676),c=r(84952),y=r(91429),d=r(5443),g=r(16930),h=r(92602),f=r(79677);let m=0,b=class extends((0,s.Zt)((0,l.s)(a.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new d.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+m++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await Promise.all([r.e(812),r.e(7982)]).then(r.bind(r,27982))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await Promise.all([r.e(9917),r.e(812),r.e(8559)]).then(r.bind(r,45613));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",o=r?.portal?.url||h.A.portalUrl;throw p.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch(e=>{(0,u.zf)(e)||p.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})})}destroy(){const{parent:e}=this;e&&(this.parent=null,e.removeChildLayer?.(this))}get effectiveVisible(){return this.visible&&(this.parent?.effectiveVisible??!0)}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}removeFromParent(){const{parent:e}=this;e&&(e.removeChildLayer?.(this),this.parent=null)}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(e,t){return Promise.reject(new n.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,o.A)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i.Cg)([(0,y.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,i.Cg)([(0,y.MZ)({type:d.A})],b.prototype,"fullExtent",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,i.Cg)([(0,y.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,i.Cg)([(0,y.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,i.Cg)([(0,y.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,i.Cg)([(0,y.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,i.Cg)([(0,y.MZ)({type:g.A})],b.prototype,"spatialReference",void 0),(0,i.Cg)([(0,y.MZ)({type:String})],b.prototype,"title",void 0),(0,i.Cg)([(0,y.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,i.Cg)([(0,y.MZ)()],b.prototype,"url",void 0),(0,i.Cg)([(0,y.MZ)({type:f.A})],b.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,y.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,i.Cg)([(0,y.$K)("esri.layers.Layer")],b)},52136(e,t,r){var i=r(32198),o=r(91429);r.d(t,["p",0,e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i.Cg)([(0,o.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>l});var i=r(32198),o=r(93637),n=r(91429),s=r(91880);function l(e,t,r){if(!e)return null;const i=e.find(e=>!!e.field);if(!i)return null;const o=new s.A;return o.read(i,r),[o]}const a={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,r,i){const n=e.find(e=>!!e.field);n&&(0,o.sM)(r,[n.toJSON()],t)}}}};r.d(t,["fY",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,n.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},28032(e,t,r){r.d(t,{A:()=>a});var i=r(32198),o=r(69540),n=r(25482),s=r(91429),l=r(56400);let a=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,s.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,s.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,s.MZ)((0,l.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,s.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>p});var i=r(32198),o=r(69540),n=r(66552),s=r(25482),l=r(91429);const a=new n.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"drawingTool",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureTemplate")],p)},33143(e,t,r){r.d(t,{A:()=>c});var i=r(32198),o=r(69540),n=r(25482),s=r(91429),l=r(8631),a=r(29005),p=r(36005),u=r(43937);let c=class extends((0,o.OU)(n.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,l.r)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,i.Cg)([(0,p.w)("domains")],c.prototype,"readDomains",null),(0,i.Cg)([(0,u.K)("domains")],c.prototype,"writeDomains",null),(0,i.Cg)([(0,s.MZ)({type:[a.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureType")],c)},46499(e,t,r){r.d(t,{A:()=>x});var i,o,n=r(32198),s=(r(44208),r(66552)),l=r(25482),a=r(4718),p=r(90629),u=r(91429),c=r(73913),y=r(32730),d=r(77548),g=r(59868),h=r(73838),f=r(33910),m=r(36005),b=r(43937);const v=new s.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function w(e,t,r){return{enabled:!(0,d.TU)(r?.layer)}}function C(e){return!e||"service"!==e.origin&&!("map-image"===e.layer?.type)}function M(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let x=class extends l.o{static{i=y.vK}static{o=this}static evaluateWhere(e,t){const r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;const i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){const e=r(t[i[0]],i[1],i[2]),o=i[3],n=r(t[i[4]],i[5],i[6]);switch(o){case"AND":return e&&n;case"OR":return e||n}}return!1}catch(e){}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=g.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,y.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,y.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&C(i))e=new c.A({expression:this.getLabelExpressionArcade()});else if(!e)return;const o=e.toJSON(i);o.expression&&(t[r]=o)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,y.XJ)(this)}getLabelExpressionArcade(){return(0,y.BI)(this)}getLabelExpressionSingleField(){return(0,y.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new o({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"name",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:w}}}}})],x.prototype,"allowOverrun",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:w}}}}})],x.prototype,"deconflictionStrategy",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&M(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],x.prototype,"labelExpression",void 0),(0,n.Cg)([(0,m.w)("labelExpression")],x.prototype,"readLabelExpression",null),(0,n.Cg)([(0,b.K)("labelExpression")],x.prototype,"writeLabelExpression",null),(0,n.Cg)([(0,u.MZ)({type:c.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return C(e)||M(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],x.prototype,"labelExpressionInfo",void 0),(0,n.Cg)([(0,b.K)("labelExpressionInfo")],x.prototype,"writeLabelExpressionInfo",null),(0,n.Cg)([(0,u.MZ)({type:v.apiValues,json:{type:v.jsonValues,read:v.read,write:v.write}})],x.prototype,"labelPlacement",void 0),(0,n.Cg)([(0,u.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],x.prototype,"labelPosition",void 0),(0,n.Cg)([(0,u.MZ)({type:Number})],x.prototype,"maxScale",void 0),(0,n.Cg)([(0,b.K)("maxScale")],x.prototype,"writeMaxScale",null),(0,n.Cg)([(0,u.MZ)({type:Number})],x.prototype,"minScale",void 0),(0,n.Cg)([(0,b.K)("minScale")],x.prototype,"writeMinScale",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:w}}}}})],x.prototype,"repeatLabel",void 0),(0,n.Cg)([(0,u.MZ)({type:Number,cast:p.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:w}}}}})],x.prototype,"repeatLabelDistance",null),(0,n.Cg)([(0,u.MZ)({types:f.em,json:{origins:{"web-scene":{types:f.Rv,write:h.oO,default:null}},write:h.oO,default:null}})],x.prototype,"symbol",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"useCodedValues",void 0),(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],x.prototype,"where",void 0),x=o=(0,n.Cg)([(0,u.$K)("esri.layers.support.LabelClass")],x)},73913(e,t,r){r.d(t,{A:()=>u});var i,o=r(32198),n=r(25482),s=r(91429),l=r(32730),a=r(36005),p=r(43937);let u=class extends n.o{static{i=this}constructor(e){super(e),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,l.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,l.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({expression:this.expression,title:this.title,value:this.value})}};(0,o.Cg)([(0,s.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],u.prototype,"expression",void 0),(0,o.Cg)([(0,a.w)("expression",["expression","value"])],u.prototype,"readExpression",null),(0,o.Cg)([(0,p.K)("expression")],u.prototype,"writeExpression",null),(0,o.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"title",void 0),(0,o.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],u.prototype,"value",void 0),u=i=(0,o.Cg)([(0,s.$K)("esri.layers.support.LabelExpressionInfo")],u)},37352(e,t,r){r.d(t,{A:()=>a});var i,o=r(32198),n=r(7762),s=r(25482),l=r(91429);let a=i=class extends s.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,o.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>p});var i,o=r(32198),n=r(66552),s=r(25482),l=r(91429);const a=new n.J({asc:"ascending",desc:"descending"});let p=class extends s.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],p.prototype,"field",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],p.prototype,"valueExpression",void 0),(0,o.Cg)([(0,l.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],p.prototype,"order",void 0),p=i=(0,o.Cg)([(0,l.$K)("esri.layers.support.OrderByInfo")],p)},45067(e,t,r){r.d(t,{A:()=>u});var i=r(32198),o=r(69540),n=r(66552),s=r(25482),l=r(91429);const a=new n.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new n.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let u=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,l.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"cardinality",void 0),(0,i.Cg)([(0,l.MZ)({json:{name:"catalogID"}})],u.prototype,"catalogId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"composite",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyField",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:!0,write:!0}})],u.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,l.MZ)({json:{read:p.read,write:p.write}})],u.prototype,"role",void 0),u=(0,i.Cg)([(0,l.$K)("esri.layers.support.Relationship")],u)},39383(e,t,r){r.d(t,{w:()=>a,z:()=>c});var i=r(49186),o=r(53966),n=r(46499);const s=()=>o.A.getLogger("esri.layers.support.labelingInfo"),l=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{const i=new n.A;if(i.read(e,r),i.labelExpression){const e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(l,(t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const p=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],u={esriGeometryPoint:p,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:p,esriGeometryEnvelope:null};function c(e,t){const r=[];for(const o of e){const e=o.labelPlacement,n=u[t];if(!o.symbol)return s().warn("No ILabelClass symbol specified."),[];if(!n)return s().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(n.includes(e))r.push(o);else{const i=n[0];e&&s().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);const l=o.clone();l.labelPlacement=i,r.push(l)}}return r}},77548(e,t,r){r.d(t,{Gh:()=>j,tk:()=>Z,BR:()=>A,p2:()=>x,qd:()=>L,wI:()=>S,G$:()=>E,$x:()=>P,Ov:()=>v,cM:()=>y,UC:()=>d,Qz:()=>g,OP:()=>T,TU:()=>b,F2:()=>h,XX:()=>m,Qi:()=>w,jy:()=>C});var i=r(70333),o=r(11254),n=r(7762),s=(r(84952),r(36563)),l=r(36708),a=r(4146);const p=new WeakMap;function u(e){return!e.destroyed&&(p.has(e)||e.addHandles([(0,l.wB)(()=>{const{parent:t}=e;return!!(t&&t instanceof a.A)&&("catalog-dynamic-group"===t.type||u(t))},t=>p.set(e,t),l.pc),(0,s.hA)(()=>p.delete(e))]),p.get(e))}function c(e,t){return null!=e&&"object"==typeof e&&"type"in e&&e.type===t}function y(e){return c(e,"knowledge-graph")&&"layers"in e}function d(e){return c(e,"knowledge-graph-sublayer")}function g(e){return c(e,"link-chart")&&"layers"in e}function h(e){return c(e,"subtype-group")&&"sublayers"in e}function f(e){const t=e.parent;return function(e){return"group"===e?.type}(t)&&t.tables.includes(e)}r(16215);const m={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function b(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function v(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function w(e){return null!=e&&"object"==typeof e&&"featureReduction"in e}function C(e){return function(e){return c(e,"catalog-footprint")}(e)||function(e){return c(e,"feature")}(e)&&function(e){return"feature"===e?.type&&"feature-layer"===e.source?.type}(e)||function(e){return c(e,"oriented-imagery")}(e)||function(e){return"subtype-sublayer"===e?.type}(e)}function M(e){const t=e?.type;return"binning"===t||"cluster"===t}function x(e,t){if(!C(e))return;const r=t?.graphic,i="featureReduction"in e?e.featureReduction:null;if(r){if(r.isAggregate){const e=r.origin;return e&&"featureReductionProvider"in e&&i?M(i)?i:null:void 0}return e}return t?.checkFeatureReduction&&i?M(i)?i:null:e}async function S(e,t){const r=i.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const n=e.toLowerCase().indexOf("/rest/services");if(-1===n)return null;const s=`${e.slice(0,n)}/rest/info`,l=null!=t?t.signal:null,{data:a}=await(0,o.A)(s,{query:{f:"json"},responseType:"json",signal:l});return a?.owningSystemUrl||null}function A(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"catalog":case"catalog-footprint":case"csv":case"dimension-feature":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"parquet":case"scene":case"sublayer":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function Z(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"knowledge-graph-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}function L(e){const t=new n.A;for(const r of e.allLayers.concat(e.allTables))u(r)||f(r)||"annotation-feature"===r.type||"dimension-feature"===r.type||("charts"in r&&t.push(r),"subtype-group"===r.type&&t.push(...r.sublayers));return t}function P(e,t){return null}function E(e){return null}function T(e){return!e||"Feature Service"===e.type&&!e.sourceUrl}function j(e,t){if(!t||!T(e))return;const r=(e.url,null);r&&(e.url=r)}},98205(e,t,r){r.d(t,{KZ:()=>l,eh:()=>s,gf:()=>n,of:()=>o});const i=Symbol("SizeVariableInstance");function o(e){return null!=e&&"object"==typeof e&&i in e}function n(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function l(e,t){const r=t||s(e),i=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}r.d(t,["uY",0,i])},22671(e,t,r){r.d(t,{A:()=>b});var i,o=r(32198),n=r(52106),s=r(66552),l=r(25482),a=r(4718),p=r(91429),u=r(16930),c=r(60408),y=r(65864),d=r(50498),g=r(20437),h=r(36005),f=r(43937);const m=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=i=class extends l.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,y.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=u.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e?.[r];i.geometry=t?.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,o]}=e,n=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((o-e)/r));for(let e=0,t=n.length;e<t;e++)s?.(n[e].geometry)||(n.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,o],scale:[n,s]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,e=>e*n+i,e=>o-e*s,l,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const i=u.A.fromJSON(t.spatialReference),o=[];for(let t=0;t<e.length;t++){const n=e[t],s=r.fromJSON(n),l=n.geometry?.spatialReference;null==s.geometry||l||(s.geometry.spatialReference=i);const a=n.aggregateGeometries,p=s.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],r=a[e],o=r?.spatialReference;null==t||o||(t.spatialReference=i)}o.push(s)}return o}_quantizePoints(e,t,r){let i,o;const n=[];for(let s=0,l=e.length;s<l;s++){const l=e[s];if(s>0){const e=t(l[0]),s=r(l[1]);e===i&&s===o||(n.push([e-i,s-o]),i=e,o=s)}else i=t(l[0]),o=r(l[1]),n.push([i,o])}return n.length>0?n:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,c.Bi)(e)?e.rings:e.paths,o=[];for(let e=0,n=i.length;e<n;e++){const n=i[e],s=this._quantizePoints(n,t,r);s&&o.push(s)}return o.length>0?((0,c.Bi)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,c.Bi)(e)?e.rings:e.paths;let s,l;for(let e=0,i=n.length;e<i;e++){const i=n[e];for(let e=0,o=i.length;e<o;e++){const o=i[e];e>0?(s+=o[0],l+=o[1]):(s=o[0],l=o[1]),o[0]=t(s),o[1]=r(l)}}if(i&&o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2]),r[3]=o(r[3])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let s,l;for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],l+=i[1]):(s=i[0],l=i[1]),i[0]=t(s),i[1]=r(l)}if(i&&o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2]),t[3]=o(t[3])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=o(t[2])}}:null}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,o.Cg)([(0,p.MZ)({type:[n.A],json:{write:!0}})],b.prototype,"features",void 0),(0,o.Cg)([(0,h.w)("features")],b.prototype,"readFeatures",null),(0,o.Cg)([(0,p.MZ)({type:[g.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,o.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],b.prototype,"geometryType",void 0),(0,o.Cg)([(0,f.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,o.Cg)([(0,p.MZ)({types:d.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,o.Cg)([(0,h.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,o.Cg)([(0,p.MZ)({type:u.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,o.Cg)([(0,f.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=i=(0,o.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},16215(e,t,r){r.d(t,{S:()=>o});const i=Symbol("BasemapInstance");function o(e){return null!=e&&"object"==typeof e&&i in e}r.d(t,["Y",0,i])}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6963],{40876(t,e,n){n.d(e,{Eq:()=>p,G1:()=>d,TS:()=>i,V6:()=>a,Vm:()=>m,ay:()=>u,c1:()=>g,c4:()=>o,j5:()=>l,lT:()=>h,oW:()=>c,xV:()=>w});const r={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function a(t){return!!r[t]||!!r[t.toLowerCase()]}function i(t){return r[t]??r[t.toLowerCase()]}function o(t){return[...i(t)]}function s(t,e,n){n<0&&++n,n>1&&--n;const r=6*n;return r<1?t+(e-t)*r:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function u(t,e,n,r=1){const a=(t%360+360)%360/360,i=n<=.5?n*(e+1):n+e-n*e,o=2*n-i;return[Math.round(255*s(o,i,a+1/3)),Math.round(255*s(o,i,a)),Math.round(255*s(o,i,a-1/3)),r]}function l(t){const e=t.length>5,n=e?8:4,r=(1<<n)-1,a=e?1:17,i=e?9===t.length:5===t.length;let o=Number("0x"+t.slice(1));if(isNaN(o))return null;const s=[0,0,0,1];let u;return i&&(u=o&r,o>>=n,s[3]=a*u/255),u=o&r,o>>=n,s[2]=a*u,u=o&r,o>>=n,s[1]=a*u,u=o&r,o>>=n,s[0]=a*u,s}function c(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const e=parseInt(t.slice(1,2),16),n=parseInt(t.slice(2,3),16),r=parseInt(t.slice(3,4),16),a=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,n+16*n,r+16*r,(a+16*a)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function h(t){const e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){const t=e[2].split(/\s*,\s*/),n=e[1];if("rgb"===n&&3===t.length||"rgba"===n&&4===t.length){if(t[0].endsWith("%")){const e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),f(e)}return f(t.map(t=>parseFloat(t)))}if("hsl"===n&&3===t.length||"hsla"===n&&4===t.length)return u(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function f(t){return t[0]=g(t[0]),t[1]=g(t[1]),t[2]=g(t[2]),t[3]=4===t.length?d(t[3]):1,t}function p(t){let e=a(t)?i(t):null;return e??=h(t),e??=c(t),e}function m(t){const e=p(t);return null!=e?[e[0]/255,e[1]/255,e[2]/255,e[3]]:null}function d(t){return y(t,0,1)}function g(t){return Math.round(y(t,0,255))}function y(t,e,n){return t=Number(t),isNaN(t)?n:t<e?e:t>n?n:t}const v=1/2.2;function w(t){return t**v}n.d(e,["iw",0,v])},60999(t,e,n){n.d(e,{DZ:()=>m,Ke:()=>p,Tj:()=>c,UT:()=>d,aD:()=>y,jJ:()=>l});var r=n(32198),a=n(69622),i=n(97768),o=n(17676),s=n(10107),u=n(64108);function l(t,e,n){return(0,o.Lx)(t.map((t,r)=>e.apply(n,[t,r])))}async function c(t,e,n){return(await(0,o.Lx)(t.map((t,r)=>e.apply(n,[t,r])))).map(t=>t.value)}function h(t){return{ok:!0,value:t}}function f(t){return{ok:!1,error:t}}async function p(t){if(null==t)return{ok:!1,error:new Error("no promise provided")};try{return h(await t)}catch(t){return f(t)}}async function m(t){try{return h(await t)}catch(t){return(0,o.QP)(t),f(t)}}function d(t,e){return new g(t,e)}let g=class extends a.A{get value(){return null!=(t=this._result)&&!0===t.ok?t.value:null;var t}get error(){return null!=(t=this._result)&&!1===t.ok?t.error:null;var t}get finished(){return null!=this._result}constructor(t,e){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,i.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:n}=this._abortController;this.promise=t(n),this.promise.then(t=>{this._result=h(t),this._cleanup()},t=>{this._result=f(t),this._cleanup()}),this._abortHandle=(0,o.u7)(e,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,i.xt)(this._abortHandle),this._abortController=null}};(0,r.Cg)([(0,s.MZ)()],g.prototype,"value",null),(0,r.Cg)([(0,s.MZ)()],g.prototype,"error",null),(0,r.Cg)([(0,s.MZ)()],g.prototype,"finished",null),(0,r.Cg)([(0,s.MZ)()],g.prototype,"promise",void 0),(0,r.Cg)([(0,s.MZ)()],g.prototype,"_result",void 0),g=(0,r.Cg)([(0,u.$)("esri.core.asyncUtils.ReactiveTask")],g);class y{constructor(){this._sequence=Promise.resolve()}async acquire(){let t;this._sequence=new Promise(e=>{t=this._sequence.then(()=>e,()=>e)});const e=await t;return{[Symbol.dispose]:e}}async run(t){const e={stack:[],error:void 0,hasError:!1};try{return(0,r.mS)(e,await this.acquire(),!1),await t()}catch(t){e.error=t,e.hasError=!0}finally{(0,r.hk)(e)}}}},35522(t,e,n){n.d(e,{$A:()=>k,Bw:()=>i,C:()=>o,Cc:()=>P,DI:()=>x,Io:()=>v,Ln:()=>y,Om:()=>C,Qr:()=>h,Re:()=>l,S8:()=>A,T9:()=>d,WQ:()=>u,Z0:()=>S,_S:()=>p,aI:()=>N,ei:()=>R,fw:()=>Z,gL:()=>$,hG:()=>w,hZ:()=>s,hs:()=>g,jk:()=>m,lw:()=>c,m3:()=>b,oW:()=>I,t2:()=>F,tn:()=>f,ze:()=>M});var r=n(51850),a=n(34304);function i(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function s(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function p(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function m(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function d(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function g(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function v(t,e){const n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return Math.sqrt(n*n+r*r+a*a)}function w(t,e){const n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return n*n+r*r+a*a}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function M(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function A(t,e){const n=e[0],r=e[1],a=e[2];let i=n*n+r*r+a*a;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t}function C(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,n){const r=e[0],a=e[1],i=e[2],o=n[0],s=n[1],u=n[2];return t[0]=a*u-i*s,t[1]=i*o-r*u,t[2]=r*s-a*o,t}function P(t,e,n,r){const a=e[0],i=e[1],o=e[2];return t[0]=a+r*(n[0]-a),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function S(t,e,n){const r=e[0],a=e[1],i=e[2];return t[0]=n[0]*r+n[4]*a+n[8]*i+n[12],t[1]=n[1]*r+n[5]*a+n[9]*i+n[13],t[2]=n[2]*r+n[6]*a+n[10]*i+n[14],t}function R(t,e,n){const r=e[0],a=e[1],i=e[2];return t[0]=r*n[0]+a*n[3]+i*n[6],t[1]=r*n[1]+a*n[4]+i*n[7],t[2]=r*n[2]+a*n[5]+i*n[8],t}function $(t,e,n){return Z(t,e,n[0],n[1],n[2],n[3])}function Z(t,e,n,r,a,i){const o=e[0],s=e[1],u=e[2],l=r*u-a*s,c=a*o-n*u,h=n*s-r*o,f=r*h-a*c,p=a*l-n*h,m=n*c-r*l,d=2*i;return t[0]=o+l*d+2*f,t[1]=s+c*d+2*p,t[2]=u+h*d+2*m,t}const _=(0,r.vt)(),q=(0,r.vt)();function F(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function N(t,e){if(t===e)return!0;const n=t[0],r=t[1],i=t[2],o=e[0],s=e[1],u=e[2],l=(0,a.FD)();return Math.abs(n-o)<=l*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=l*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(i-u)<=l*Math.max(1,Math.abs(i),Math.abs(u))}function I(t,e,n){const r=n[0]-e[0],a=n[1]-e[1],i=n[2]-e[2];let o=r*r+a*a+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=a*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const j=l,E=c,O=h,L=v,z=w,T=i,K=b;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:function(t,e){A(_,t),A(q,e);const n=C(_,q);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,a,i){const o=1-i,s=o*o,u=i*i,l=s*o,c=3*i*s,h=3*u*o,f=u*i;return t[0]=e[0]*l+n[0]*c+r[0]*h+a[0]*f,t[1]=e[1]*l+n[1]*c+r[1]*h+a[1]*f,t[2]=e[2]*l+n[2]*c+r[2]*h+a[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:o,cross:k,crossAndNormalize:function(t,e,n){const r=e[0],a=e[1],i=e[2],o=n[0],s=n[1],u=n[2],l=a*u-i*s,c=i*o-r*u,h=r*s-a*o,f=Math.sqrt(l*l+c*c+h*h);return t[0]=l/f,t[1]=c/f,t[2]=h/f,t},direction:I,dist:L,distance:v,div:O,divide:h,dot:C,equals:N,exactEquals:F,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,a,i){const o=i*i,s=o*(2*i-3)+1,u=o*(i-2)+i,l=o*(i-1),c=o*(3-2*i);return t[0]=e[0]*s+n[0]*u+r[0]*l+a[0]*c,t[1]=e[1]*s+n[1]*u+r[1]*l+a[1]*c,t[2]=e[2]*s+n[2]*u+r[2]*l+a[2]*c,t},inverse:x,len:T,length:i,lerp:P,max:d,min:m,mul:E,multiply:c,negate:M,normalize:A,random:function(t,e=1){const n=a.Ov,r=2*n()*Math.PI,i=2*n()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*e,t},rotateX:function(t,e,n,r){const a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[0],i[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),i[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateY:function(t,e,n,r){const a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),i[1]=a[1],i[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},rotateZ:function(t,e,n,r){const a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),i[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),i[2]=a[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:g,scaleAndAdd:y,scaleTo:function(t,e){return g(t,t,e/T(t))},set:s,sign:p,sqrDist:z,sqrLen:K,squaredDistance:w,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:j,subtract:l,transformMat3:R,transformMat4:S,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:$,transformQuatValues:Z},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,T,"jb",0,j,"lo",0,z,"uE",0,K])},90629(t,e,n){n.d(e,{Lz:()=>a,PN:()=>i,cr:()=>o,gs:()=>u,r_:()=>l,tc:()=>s}),n(39829);const r=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i;function a(t){return t?t/72*96:0}function i(t){return t?72*t/96:0}function o(t){if("string"==typeof t){const e=t.match(r);if(e){const n=Number(e[1]),r=e[3]&&e[3].toLowerCase(),a=t.startsWith("-"),o="px"===r?i(n):n;return a?-o:o}return console.warn("screenUtils.toPt: input not recognized!"),null}return t}function s(t=0,e=0){return{x:t,y:e}}function u(t=0,e=0){return[t,e]}function l(t=0,e=0,n=0){return[t,e,n]}},48526(t,e,n){n.d(e,{A:()=>g});var r,a=n(32198),i=n(4576),o=n(4718),s=n(91429),u=n(5443),l=n(91075),c=n(86738),h=n(16930),f=n(90634),p=n(47610),m=n(56993),d=n(43937);let g=r=class extends l.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:a}=t;switch(e??=[],e?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return a??=h.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:a}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new u.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,o.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:n,hasZ:a}=this;return new r({points:(0,o.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:a})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;return null!=e==(null!=n)&&!(null!=e&&null!=n&&!e.equals(n))&&(0,i.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,m.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new c.A(n)}removePoint(t){if(!this._validateInputs(t))return null;const e=new c.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,m.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,a.Cg)([(0,s.MZ)({readOnly:!0})],g.prototype,"cache",null),(0,a.Cg)([(0,s.MZ)({readOnly:!0})],g.prototype,"extent",null),(0,a.Cg)([(0,s.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],g.prototype,"points",void 0),(0,a.Cg)([(0,d.K)("points")],g.prototype,"writePoints",null),g=r=(0,a.Cg)([(0,s.$K)("esri.geometry.Multipoint")],g),g.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>m});var r,a=n(32198),i=n(4718),o=n(91429),s=n(5443),u=n(91075),l=n(86738),c=n(16930),h=n(90634),f=n(56993),p=n(43937);let m=r=class extends u.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:a}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return a??=c.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:a}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,i.o8)(t)}get extent(){const t=(0,h.Z3)(this),{spatialReference:e}=this;return t?new s.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,i.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,i.o8)(this.paths),t.curvePaths=(0,i.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const n=this.paths[t][e],r=this.hasZ,a=this.hasM;return r&&!a?new l.A(n[0],n[1],n[2],void 0,this.spatialReference):a&&!r?new l.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&a?new l.A(n[0],n[1],n[2],n[3],this.spatialReference):new l.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new l.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;const n=new l.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(t,e,n){return this._validateInputs(t,e)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths"),this):this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const r=this.paths[t];if(n&&(e<0||e>r.length))return!1;if(!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,a.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"cache",null),(0,a.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],m.prototype,"curvePaths",void 0),(0,a.Cg)([(0,p.K)("curvePaths")],m.prototype,"writeCurvePaths",null),(0,a.Cg)([(0,o.MZ)({readOnly:!0})],m.prototype,"extent",null),(0,a.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],m.prototype,"paths",void 0),(0,a.Cg)([(0,p.K)("paths")],m.prototype,"writePaths",null),m=r=(0,a.Cg)([(0,o.$K)("esri.geometry.Polyline")],m),m.prototype.toJSON.isDefaultToJSON=!0},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function a(t){return void 0!==t.points}function i(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function s(t){return void 0!==t.rings||void 0!==t.curveRings}function u(t){return"object"==typeof t&&"vertexAttributes"in t}function l(t){return t?i(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":s(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":a(t)?"esriGeometryMultipoint":null:null}function c(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function h(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>l,Bi:()=>s,Pv:()=>c,Rg:()=>o,U9:()=>a,W0:()=>h,ZC:()=>r,fT:()=>i,uW:()=>u})},76369(t,e,n){n.d(e,{LF:()=>x,M9:()=>A});var r=n(49186),a=n(93637),i=n(40876),o=n(59247),s=n(27865);class u extends SyntaxError{constructor(t,e,n,r){super(t),this.expected=e,this.found=n,this.location=r,this.name="SyntaxError"}format(t){let e="Error: "+this.message;if(this.location){let n=null;const r=t.find(t=>t.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));const a=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(a):a,o=this.location.source+":"+i.line+":"+i.column;if(n){const t=this.location.end,r="".padEnd(i.line.toString().length," "),s=n[a.line-1],u=(a.line===t.line?t.column:s.length+1)-a.column||1;e+="\n --\x3e "+o+"\n"+r+" |\n"+i.line+" | "+s+"\n"+r+" | "+"".padEnd(a.column-1," ")+"".padEnd(u,"^")}else e+="\n at "+o}return e}static buildMessage(t,e){function n(t){return t.codePointAt(0).toString(16).toUpperCase()}const r=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function a(t){return r?t.replace(r,t=>"\\u{"+n(t)+"}"):t}function i(t){return a(t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,t=>"\\x0"+n(t)).replace(/[\x10-\x1F\x7F-\x9F]/g,t=>"\\x"+n(t)))}function o(t){return a(t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,t=>"\\x0"+n(t)).replace(/[\x10-\x1F\x7F-\x9F]/g,t=>"\\x"+n(t)))}const s={literal:t=>'"'+i(t.text)+'"',class(t){const e=t.parts.map(t=>Array.isArray(t)?o(t[0])+"-"+o(t[1]):o(t));return"["+(t.inverted?"^":"")+e.join("")+"]"+(t.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:t=>t.description};function u(t){return s[t.type](t)}return"Expected "+function(t){const e=t.map(u);if(e.sort(),e.length>0){let t=1;for(let n=1;n<e.length;n++)e[n-1]!==e[n]&&(e[t]=e[n],t++);e.length=t}switch(e.length){case 1:return e[0];case 2:return e[0]+" or "+e[1];default:return e.slice(0,-1).join(", ")+", or "+e[e.length-1]}}(t)+" but "+function(t){return t?'"'+i(t)+'"':"end of input"}(e)+" found."}}function l(t){if(!t||0===t.length)return null;if("string"==typeof t){const e=c(t);return e&&0!==e.length?e:null}const e=t.map(t=>{if(!Number.isFinite(t.scale)||t.scale<=0)throw new r.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:t});return{scale:t.scale,effects:c(t.value)}});e.sort((t,e)=>e.effects.length-t.effects.length);for(let t=0;t<e.length-1;t++){if(!(0,s.mj)(e[t].effects,e[t+1].effects))throw new r.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:e[t].effects,b:e[t+1].effects});(0,s.O9)(e[t].effects,e[t+1].effects)}return e.sort((t,e)=>e.scale-t.scale),e}function c(t){let e;if(!t)return[];try{e=function(t,e){const n={},r=(e=void 0!==e?e:{}).grammarSource,a={start:Mt};let i=Mt;const o="none",s=")",l=",",c="(",h="%",f="px",p="cm",m="mm",d="in",g="pt",y="pc",v="deg",w="rad",b="grad",M="turn",x="#",A=".",C="e",k=/^[ \t\n\r]/,P=/^[a-z\-]/,S=/^[0-9a-fA-F]/,R=/^[+\-]/,$=/^[0-9]/,Z=yt("none"),_=dt("none",!1),q=dt(")",!1),F=dt(",",!1),N=gt([" ","\t","\n","\r"],!1,!1,!1),I=yt("function"),j=dt("(",!1),E=yt("identifier"),O=gt([["a","z"],"-"],!1,!1,!1),L=yt("percentage"),z=dt("%",!1),T=yt("length"),K=dt("px",!1),D=dt("cm",!1),G=dt("mm",!1),W=dt("in",!1),J=dt("pt",!1),U=dt("pc",!1),V=yt("angle"),B=dt("deg",!1),Q=dt("rad",!1),H=dt("grad",!1),X=dt("turn",!1),Y=yt("number"),tt=yt("color"),et=dt("#",!1),nt=gt([["0","9"],["a","f"],["A","F"]],!1,!1,!1),rt=gt(["+","-"],!1,!1,!1),at=gt([["0","9"]],!1,!1,!1),it=dt(".",!1),ot=dt("e",!1);let st=0|e.peg$currPos,ut=st;const lt=[{line:1,column:1}];let ct,ht=st,ft=e.peg$maxFailExpected||[],pt=0|e.peg$silentFails;if(e.startRule){if(!(e.startRule in a))throw new Error("Can't start parsing from rule \""+e.startRule+'".');i=a[e.startRule]}function mt(){return t.substring(ut,st)}function dt(t,e){return{type:"literal",text:t,ignoreCase:e}}function gt(t,e,n,r){return{type:"class",parts:t,inverted:e,ignoreCase:n,unicode:r}}function yt(t){return{type:"other",description:t}}function vt(e){let n,r=lt[e];if(r)return r;if(e>=lt.length)n=lt.length-1;else for(n=e;!lt[--n];);for(r=lt[n],r={line:r.line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return lt[e]=r,r}function wt(t,e,n){const a=vt(t),i=vt(e);return{source:r,start:{offset:t,line:a.line,column:a.column},end:{offset:e,line:i.line,column:i.column}}}function bt(t){st<ht||(st>ht&&(ht=st,ft=[]),ft.push(t))}function Mt(){let t;return t=xt(),t===n&&(t=function(){let t,e;if(t=[],e=At(),e!==n)for(;e!==n;)t.push(e),e=At();else t=n;return t}()),t}function xt(){let e,r;return pt++,e=st,kt(),t.substr(st,4)===o?(r=o,st+=4):(r=n,0===pt&&bt(_)),r!==n?(kt(),ut=e,e=[]):(st=e,e=n),pt--,e===n&&0===pt&&bt(Z),e}function At(){let e,r,a,i;return e=st,kt(),r=function(){let e,r,a;return pt++,e=st,r=Pt(),r!==n?(40===t.charCodeAt(st)?(a=c,st++):(a=n,0===pt&&bt(j)),a!==n?(ut=e,e=r):(st=e,e=n)):(st=e,e=n),pt--,e===n&&(r=n,0===pt&&bt(I)),e}(),r!==n?(kt(),a=function(){let e,r,a,i,o,s,u,c;if(e=st,r=Ct(),r!==n){for(a=[],i=st,o=kt(),44===t.charCodeAt(st)?(s=l,st++):(s=n,0===pt&&bt(F)),s===n&&(s=null),u=kt(),c=Ct(),c!==n?(o=[o,s,u,c],i=o):(st=i,i=n);i!==n;)a.push(i),i=st,o=kt(),44===t.charCodeAt(st)?(s=l,st++):(s=n,0===pt&&bt(F)),s===n&&(s=null),u=kt(),c=Ct(),c!==n?(o=[o,s,u,c],i=o):(st=i,i=n);ut=e,e=function(t,e){return e.length>0?function(t,e){return[t].concat(function(t){return t.map(function(t){return t[3]})}(e))}(t,e):[t]}(r,a)}else st=e,e=n;return e}(),a===n&&(a=null),kt(),41===t.charCodeAt(st)?(i=s,st++):(i=n,0===pt&&bt(q)),i!==n?(kt(),ut=e,e=function(t,e){return{type:"function",name:t,parameters:e||[]}}(r,a)):(st=e,e=n)):(st=e,e=n),e}function Ct(){let t,e;return t=st,e=St(),e===n&&(e=Rt(),e===n&&(e=$t(),e===n&&(e=function(){let t,e;return pt++,t=st,kt(),e=_t(),e!==n?(ut=t,t=function(t){return{value:t,unit:null}}(e)):(st=t,t=n),pt--,t===n&&0===pt&&bt(Y),t}()))),e!==n&&(ut=t,e=function(t){return{type:"quantity",value:t.value,unit:t.unit}}(e)),t=e,t===n&&(t=st,e=Zt(),e!==n&&(ut=t,e=function(t){return{type:"color",colorType:t.type,value:t.value}}(e)),t=e),t}function kt(){let e,r;for(pt++,e=[],r=t.charAt(st),k.test(r)?st++:(r=n,0===pt&&bt(N));r!==n;)e.push(r),r=t.charAt(st),k.test(r)?st++:(r=n,0===pt&&bt(N));return pt--,e}function Pt(){let e,r,a;if(pt++,e=st,r=[],a=t.charAt(st),P.test(a)?st++:(a=n,0===pt&&bt(O)),a!==n)for(;a!==n;)r.push(a),a=t.charAt(st),P.test(a)?st++:(a=n,0===pt&&bt(O));else r=n;return r!==n&&(ut=e,r=mt()),e=r,pt--,e===n&&(r=n,0===pt&&bt(E)),e}function St(){let e,r,a;return pt++,e=st,kt(),r=_t(),r!==n?(37===t.charCodeAt(st)?(a=h,st++):(a=n,0===pt&&bt(z)),a!==n?(ut=e,e=function(t){return{value:t,unit:"%"}}(r)):(st=e,e=n)):(st=e,e=n),pt--,e===n&&0===pt&&bt(L),e}function Rt(){let e,r,a;return pt++,e=st,kt(),r=_t(),r!==n?(t.substr(st,2)===f?(a=f,st+=2):(a=n,0===pt&&bt(K)),a!==n?(ut=e,e=function(t){return{value:t,unit:"px"}}(r)):(st=e,e=n)):(st=e,e=n),e===n&&(e=st,kt(),r=_t(),r!==n?(t.substr(st,2)===p?(a=p,st+=2):(a=n,0===pt&&bt(D)),a!==n?(ut=e,e=function(t){return{value:t,unit:"cm"}}(r)):(st=e,e=n)):(st=e,e=n),e===n&&(e=st,kt(),r=_t(),r!==n?(t.substr(st,2)===m?(a=m,st+=2):(a=n,0===pt&&bt(G)),a!==n?(ut=e,e=function(t){return{value:t,unit:"mm"}}(r)):(st=e,e=n)):(st=e,e=n),e===n&&(e=st,kt(),r=_t(),r!==n?(t.substr(st,2)===d?(a=d,st+=2):(a=n,0===pt&&bt(W)),a!==n?(ut=e,e=function(t){return{value:t,unit:"in"}}(r)):(st=e,e=n)):(st=e,e=n),e===n&&(e=st,kt(),r=_t(),r!==n?(t.substr(st,2)===g?(a=g,st+=2):(a=n,0===pt&&bt(J)),a!==n?(ut=e,e=function(t){return{value:t,unit:"pt"}}(r)):(st=e,e=n)):(st=e,e=n),e===n&&(e=st,kt(),r=_t(),r!==n?(t.substr(st,2)===y?(a=y,st+=2):(a=n,0===pt&&bt(U)),a!==n?(ut=e,e=function(t){return{value:t,unit:"pc"}}(r)):(st=e,e=n)):(st=e,e=n)))))),pt--,e===n&&0===pt&&bt(T),e}function $t(){let e,r,a;return pt++,e=st,r=_t(),r!==n?(t.substr(st,3)===v?(a=v,st+=3):(a=n,0===pt&&bt(B)),a!==n?(ut=e,e=function(t){return{value:t,unit:"deg"}}(r)):(st=e,e=n)):(st=e,e=n),e===n&&(e=st,r=_t(),r!==n?(t.substr(st,3)===w?(a=w,st+=3):(a=n,0===pt&&bt(Q)),a!==n?(ut=e,e=function(t){return{value:t,unit:"rad"}}(r)):(st=e,e=n)):(st=e,e=n),e===n&&(e=st,r=_t(),r!==n?(t.substr(st,4)===b?(a=b,st+=4):(a=n,0===pt&&bt(H)),a!==n?(ut=e,e=function(t){return{value:t,unit:"grad"}}(r)):(st=e,e=n)):(st=e,e=n),e===n&&(e=st,r=_t(),r!==n?(t.substr(st,4)===M?(a=M,st+=4):(a=n,0===pt&&bt(X)),a!==n?(ut=e,e=function(t){return{value:t,unit:"turn"}}(r)):(st=e,e=n)):(st=e,e=n)))),pt--,e===n&&(r=n,0===pt&&bt(V)),e}function Zt(){let e,r,a,i;if(pt++,e=st,35===t.charCodeAt(st)?(r=x,st++):(r=n,0===pt&&bt(et)),r!==n){if(a=[],i=t.charAt(st),S.test(i)?st++:(i=n,0===pt&&bt(nt)),i!==n)for(;i!==n;)a.push(i),i=t.charAt(st),S.test(i)?st++:(i=n,0===pt&&bt(nt));else a=n;a!==n?(ut=e,e={type:"hex",value:mt()}):(st=e,e=n)}else st=e,e=n;return e===n&&(e=st,r=At(),r!==n&&(ut=e,r=function(t){return{type:"function",value:t}}(r)),e=r,e===n&&(e=st,r=Pt(),r!==n&&(ut=e,r={type:"named",value:mt()}),e=r)),pt--,e===n&&(r=n,0===pt&&bt(tt)),e}function _t(){let e,r,a,i,o,s,u,l;for(e=st,r=t.charAt(st),R.test(r)?st++:(r=n,0===pt&&bt(rt)),r===n&&(r=null),a=st,i=[],o=t.charAt(st),$.test(o)?st++:(o=n,0===pt&&bt(at));o!==n;)i.push(o),o=t.charAt(st),$.test(o)?st++:(o=n,0===pt&&bt(at));if(46===t.charCodeAt(st)?(o=A,st++):(o=n,0===pt&&bt(it)),o!==n){if(s=[],u=t.charAt(st),$.test(u)?st++:(u=n,0===pt&&bt(at)),u!==n)for(;u!==n;)s.push(u),u=t.charAt(st),$.test(u)?st++:(u=n,0===pt&&bt(at));else s=n;s!==n?(i=[i,o,s],a=i):(st=a,a=n)}else st=a,a=n;if(a===n)if(a=[],i=t.charAt(st),$.test(i)?st++:(i=n,0===pt&&bt(at)),i!==n)for(;i!==n;)a.push(i),i=t.charAt(st),$.test(i)?st++:(i=n,0===pt&&bt(at));else a=n;if(a!==n){if(i=st,101===t.charCodeAt(st)?(o=C,st++):(o=n,0===pt&&bt(ot)),o!==n){if(s=t.charAt(st),R.test(s)?st++:(s=n,0===pt&&bt(rt)),s===n&&(s=null),u=[],l=t.charAt(st),$.test(l)?st++:(l=n,0===pt&&bt(at)),l!==n)for(;l!==n;)u.push(l),l=t.charAt(st),$.test(l)?st++:(l=n,0===pt&&bt(at));else u=n;u!==n?(o=[o,s,u],i=o):(st=i,i=n)}else st=i,i=n;i===n&&(i=null),ut=e,e=parseFloat(mt())}else st=e,e=n;return e}ct=i();const qt=ct!==n&&st===t.length;function Ft(){throw ct!==n&&st<t.length&&bt({type:"end"}),function(t,e,n){return new u(u.buildMessage(t,e),t,e,n)}(ft,ht<t.length?function(e=st){const n=t.codePointAt(e);return void 0===n?"":String.fromCodePoint(n)}(ht):null,ht<t.length?wt(ht,ht+1):wt(ht,ht))}return e.peg$library?{peg$result:ct,peg$currPos:st,peg$FAILED:n,peg$maxFailExpected:ft,peg$maxFailPos:ht,peg$success:qt,peg$throw:qt?void 0:Ft}:qt?ct:void Ft()}(t)}catch(e){throw new r.A("effect:invalid-syntax","Invalid effect syntax",{value:t,error:e})}return e.map(t=>function(t){try{switch(t.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(t){let e=1;return h(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new o.yG(t.name,e)}(t);case"opacity":return function(t){let e=1;return h(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new o.jm(e)}(t);case"hue-rotate":return function(t){let e=0;return h(t.parameters,1),1===t.parameters.length&&(e=function(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=m[t.unit]))throw new r.A("effect:type-error",`Expected <angle>, Actual: ${f(t)}`,{term:t})}(t),t.value*m[t.unit]||0}(t.parameters[0])),new o.Nd(e)}(t);case"blur":return function(t){let e=0;return h(t.parameters,1),1===t.parameters.length&&(e=y(t.parameters[0]),p(e,t.parameters[0])),new o.Fk(e)}(t);case"drop-shadow":return function(t){const e=[];let n=null;for(const a of t.parameters)if("color"===a.type){if(e.length&&Object.freeze(e),n)throw new r.A("effect:type-error","Accepts only one color",{});n=v(a)}else{const t=y(a);if(Object.isFrozen(e))throw new r.A("effect:type-error","<length> parameters not consecutive",{lengths:e});e.push(t),3===e.length&&p(t,a)}if(e.length<2||e.length>3)throw new r.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${e.length}}`,{lengths:e});return new o.$b(e[0],e[1],e[2]||0,n||w("black"))}(t);case"bloom":return function(t){let e=1,n=0,r=0;return h(t.parameters,3),t.parameters[0]&&(e=g(t.parameters[0])),t.parameters[1]&&(n=y(t.parameters[1]),p(n,t.parameters[1])),t.parameters[2]&&(r=g(t.parameters[2])),new o.bv(e,n,r)}(t)}}catch(e){throw e.details.filter=t,e}throw new r.A("effect:unknown-effect",`Effect '${t.name}' is not supported`,{effect:t})}(t))}function h(t,e){if(t.length>e)throw new r.A("effect:type-error",`Function supports up to ${e} parameters, Actual: ${t.length}`,{parameters:t})}function f(t){if("color"===t.type)return"<color>";if(t.unit){if(t.unit in d)return"<length>";if(t.unit in m)return"<angle>";if("%"===t.unit)return"<percentage>"}return"<double>"}function p(t,e){if(t<0)throw new r.A("effect:type-error",`Negative values are not allowed, Actual: ${t}`,{term:e})}const m={deg:1,grad:.9,rad:180/Math.PI,turn:360},d={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(t){!function(t){if("quantity"!==t.type||null!==t.unit&&"%"!==t.unit)throw new r.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${f(t)}`,{term:t})}(t);const e=t.value;return p(e,t),"%"===t.unit?.01*e:e}function y(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=d[t.unit]))throw new r.A("effect:type-error",`Expected <length>, Actual: ${f(t)}`,{term:t})}(t),t.value*d[t.unit]||0}function v(t){switch(t.colorType){case"hex":return(0,i.j5)(t.value);case"named":return w(t.value);case"function":return function(t){if(h(t.parameters,4),b.test(t.name))return[g(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1];if(M.test(t.name))return(0,i.ay)(function(t){return function(t){if("quantity"!==t.type||null!==t.unit)throw new r.A("effect:type-error",`Expected <double>, Actual: ${f(t)}`,{term:t})}(t),p(t.value,t),t.value}(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1);throw new r.A("effect:syntax-error",`Invalid color function '${t.name}'`,{colorFunction:t})}(t.value)}}function w(t){if(!(0,i.V6)(t))throw new r.A("effect:unknown-color",`color '${t}' isn't valid`,{namedColor:t});return(0,i.c4)(t)}const b=/^rgba?/i,M=/^hsla?/i;function x(t,e,n){try{return function(t){if(!t||0===t.length)return null;if(function(t){const e=t[0];return!!e&&"scale"in e}(t)){const e=[];for(const n of t)e.push({scale:n.scale,value:C(n.value)});return e}return C(t)}(t)}catch(t){n?.messages?.push(t)}return null}function A(t,e,n,r){try{const r=function(t){const e=l(t);return e?(0,s.dw)(e)?e.map(t=>t.toJSON()):e.map(({scale:t,effects:e})=>({scale:t,value:e.map(t=>t.toJSON())})):null}(t);(0,a.sM)(n,r,e)}catch(t){r.messages&&r.messages.push(t)}}function C(t){if(!t?.length)return"";const e=[];for(const n of t){let t=[];switch(n.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":t=[k(n,"amount")];break;case"blur":t=[k(n,"radius","pt")];break;case"hue-rotate":t=[k(n,"angle","deg")];break;case"drop-shadow":t=[k(n,"xoffset","pt"),k(n,"yoffset","pt"),k(n,"blurRadius","pt"),P(n,"color")];break;case"bloom":t=[k(n,"strength"),k(n,"radius","pt"),k(n,"threshold")]}const r=`${n.type}(${t.filter(Boolean).join(" ")})`;l(r),e.push(r)}return e.join(" ")}function k(t,e,n){if(null==t[e])throw new r.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});return n?t[e]+n:""+t[e]}function P(t,e){if(null==t[e])throw new r.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});const n=t[e];return`rgba(${n[0]||0}, ${n[1]||0}, ${n[2]||0}, ${n[3]/255||0})`}},63074(t,e,n){var r=n(32198),a=n(91429),i=n(89317),o=n(76369);const s={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:i.K}},"portal-item":{read:!0,write:{layerContainerTypes:i.K}}}}},u={read:{reader:o.LF},write:{allowNull:!0,writer:o.M9,layerContainerTypes:i.K}},l={json:{read:!1,write:!1,origins:{"web-map":u,"portal-item":u}}};n.d(e,["LF",0,l,"dM",0,t=>{const e=t;let n=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,r.Cg)([(0,a.MZ)(s)],n.prototype,"blendMode",void 0),(0,r.Cg)([(0,a.MZ)(l)],n.prototype,"effect",void 0),n=(0,r.Cg)([(0,a.$K)("esri.layers.mixins.BlendLayer")],n),n},"sU",0,s])},25036(t,e,n){var r=n(32198),a=n(91429);n.d(e,["j",0,t=>{const e=t;let n=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const t={minScale:this.minScale,maxScale:this.maxScale},e=this.parent;void 0!==e?.effectiveScaleRange&&function(t,e){t.minScale=t.minScale>0?e.minScale>0?Math.min(t.minScale,e.minScale):t.minScale:e.minScale,t.maxScale=t.maxScale>0?e.maxScale>0?Math.max(t.maxScale,e.maxScale):t.maxScale:e.maxScale}(t,e.effectiveScaleRange);const n=this._get("effectiveScaleRange");return n&&n.minScale===t.minScale&&n.maxScale===t.maxScale?n:t}};return(0,r.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"minScale",void 0),(0,r.Cg)([(0,a.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"maxScale",void 0),(0,r.Cg)([(0,a.MZ)({readOnly:!0})],n.prototype,"effectiveScaleRange",null),n=(0,r.Cg)([(0,a.$K)("esri.layers.mixins.ScaleRangeLayer")],n),n}])},56560(t,e,n){n.d(e,{A:()=>s});var r=n(32198),a=n(69540),i=n(91429),o=n(86738);let s=class extends a.Pw{constructor(t){super(t),this.sourcePoint=null,this.mapPoint=null}};(0,r.Cg)([(0,i.MZ)()],s.prototype,"sourcePoint",void 0),(0,r.Cg)([(0,i.MZ)({type:o.A})],s.prototype,"mapPoint",void 0),s=(0,r.Cg)([(0,i.$K)("esri.layers.support.ControlPoint")],s)},78553(t,e,n){n.d(e,{D:()=>i,p:()=>a});var r=n(56507);function a(t){const e=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function i(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);