@arcgis/core 5.2.0-next.93 → 5.2.0-next.95

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 (190) hide show
  1. package/arcade/arcadeAsyncRuntime.js +1 -1
  2. package/arcade/arcadeCompiler.js +1 -1
  3. package/arcade/functions/portal.js +2 -0
  4. package/arcade/treeAnalysis.js +1 -1
  5. package/assets/esri/core/workers/RemoteClient.js +1 -1
  6. package/assets/esri/core/workers/chunks/{c4a0d3149947a1d2c484.js → 05662a663f761dd3dea5.js} +1 -1
  7. package/assets/esri/core/workers/chunks/0be98adfef79fc5036f0.js +1 -0
  8. package/assets/esri/core/workers/chunks/0df9864ecebe6a2b973f.js +1 -0
  9. package/assets/esri/core/workers/chunks/10c13c36c42c5ac41d12.js +1 -0
  10. package/assets/esri/core/workers/chunks/{e50adcfb392adfb3f79c.js → 1b311ff39dede07865df.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js → 1c803eef9a8fdabc61e3.js} +2 -2
  12. package/assets/esri/core/workers/chunks/1d7f633f158062eb3f64.js +1 -0
  13. package/assets/esri/core/workers/chunks/1f047dd747e7c1916dc7.js +1684 -0
  14. package/assets/esri/core/workers/chunks/2524e2385f61a6898411.js +1 -0
  15. package/assets/esri/core/workers/chunks/26737d061c7cfbbab95c.js +1 -0
  16. package/assets/esri/core/workers/chunks/{91de343844ac578e7c93.js → 2b6d261fe79fe186fb22.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{8a87e1a89a0d8c6203a7.js → 2e51764c8aa31096cb2a.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{da8a314800944706511b.js → 36e35a8067b18f59cc05.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{d270b49c037085503016.js → 3a9435569ba460ff7e3d.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{5d9c92c4e60a4696fdad.js → 471027e4280bd51167b0.js} +1 -1
  21. package/assets/esri/core/workers/chunks/4c088c26d5d546c95c90.js +1 -0
  22. package/assets/esri/core/workers/chunks/{e594b6db9caee1f7b9fc.js → 4d700cb028f6306b163e.js} +1 -1
  23. package/assets/esri/core/workers/chunks/5168bd8ab6233dc9c32a.js +1 -0
  24. package/assets/esri/core/workers/chunks/{cd02a6078443b8f63927.js → 5b8591486f33627f5389.js} +1 -1
  25. package/assets/esri/core/workers/chunks/5d6733dcee9c2ef00072.js +1 -0
  26. package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js → 5edf77618ca51819d7c4.js} +2 -2
  27. package/assets/esri/core/workers/chunks/6057a79c68c33ee4a193.js +1 -0
  28. package/assets/esri/core/workers/chunks/{48726010778d6004e347.js → 63127e3b22e7eac6003d.js} +2 -2
  29. package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js → 678585509706755c0434.js} +2 -2
  30. package/assets/esri/core/workers/chunks/{2754ba5cc094028a7a3c.js → 691e9cc541cfaebe1776.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{32f11b4aeae1ef00e466.js → 6baae3e856d904fef9b1.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{aed7b80145b22c246098.js → 6cbc30b31f0bb39c73ca.js} +1 -1
  33. package/assets/esri/core/workers/chunks/6cc03ef97d7731153b9a.js +1 -0
  34. package/assets/esri/core/workers/chunks/{d44338bf5edafa3ca926.js → 6f01bd01b13662eb3bd7.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{76e7d3cde2da4bdd7820.js → 74cd9df85c4560bb8e52.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{97e41500fc2d24a88938.js → 7b70d6fdfa7a19ffffb0.js} +1 -1
  37. package/assets/esri/core/workers/chunks/7bb3411a86cdd736d555.js +1 -0
  38. package/assets/esri/core/workers/chunks/7ddb5800777fbecee3a8.js +1 -0
  39. package/assets/esri/core/workers/chunks/7eae9053065d3d38e54e.js +1 -0
  40. package/assets/esri/core/workers/chunks/7efc51324cfc8e08c756.js +1 -0
  41. package/assets/esri/core/workers/chunks/{e90076ac1cf88a83a7f9.js → 80f38ab2b7ae61e6f301.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{5aa23b0f4521ba9a07ad.js → 854f42f16fdb40000aae.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js → 87094044458b0ea5cb0f.js} +2 -2
  44. package/assets/esri/core/workers/chunks/909ee7d2a0eec773037a.js +1 -0
  45. package/assets/esri/core/workers/chunks/92a6559a6999b26362d7.js +1 -0
  46. package/assets/esri/core/workers/chunks/{3a65693964e3976d8035.js → 9df38cadebf8e6fd746c.js} +1 -1
  47. package/assets/esri/core/workers/chunks/a0eb882a5a81d25b9153.js +1 -0
  48. package/assets/esri/core/workers/chunks/{20f6e681ccd8bf884b77.js → a72983c3621810d4b1af.js} +1 -1
  49. package/assets/esri/core/workers/chunks/{9226205850e35b7fc610.js → a8aa8cb60b30f0983e7e.js} +1 -1
  50. package/assets/esri/core/workers/chunks/a8e9aa5461c71c88e2e5.js +1 -0
  51. package/assets/esri/core/workers/chunks/{1ab8307ba9981124f669.js → af6b9fd77b1792fbb66e.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{19e93d4d37018e3ee849.js → b102ae764c14d8b32ace.js} +1 -1
  53. package/assets/esri/core/workers/chunks/{1554feab934e8e1bcd28.js → b333de4dea14c5db0a4d.js} +1 -1
  54. package/assets/esri/core/workers/chunks/{d7d5275d8b3c9430de1f.js → b7c0da9d255d5e48320d.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{6b9dbf43c0659e55c539.js → be0417df35a7d99af675.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{a46ac0be9aabc4cfedc7.js → cc3186dcbbf5edff8b9e.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{6fd0d9431b141f2a3252.js → cefb70d633c220cbedf9.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{69c9a12c97ead8963817.js → d1304d414b1fa725168a.js} +1 -1
  59. package/assets/esri/core/workers/chunks/d453627894e6e5b02023.js +1 -0
  60. package/assets/esri/core/workers/chunks/e4380706b629729f2212.js +1 -0
  61. package/assets/esri/core/workers/chunks/e5b6fa57cc4028fbd401.js +1 -0
  62. package/assets/esri/core/workers/chunks/e7fdad0c07beb3614b60.js +1 -0
  63. package/assets/esri/core/workers/chunks/ea1877ce00da3b585a30.js +1 -0
  64. package/assets/esri/core/workers/chunks/{0336f4f8498a22347720.js → ea5ee1b12b43594592a0.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{c4fef90cf08bbe4f0bb5.js → eafc591e1a98000d54ef.js} +1 -1
  66. package/assets/esri/core/workers/chunks/f331c24247d132589859.js +1 -0
  67. package/assets/esri/core/workers/chunks/f5867d8ba73c67ac27d2.js +1 -0
  68. package/assets/esri/core/workers/chunks/{b7ed5f130661e9ca00b9.js → f5a058a0ce006bce2a2a.js} +1 -1
  69. package/assets/esri/libs/parquet/pkg/bundle_bg.wasm +0 -0
  70. package/chunks/{GlowBlur.glsl.js → BlurEmission.glsl.js} +3 -3
  71. package/chunks/EmissionComposite.glsl.js +3 -3
  72. package/chunks/Fog.glsl.js +8 -6
  73. package/chunks/RibbonLine.glsl.js +52 -52
  74. package/chunks/bundle.js +1 -1
  75. package/chunks/portal.js +2 -0
  76. package/config.js +1 -1
  77. package/core/timeUtils.d.ts +62 -0
  78. package/core/timeUtils.js +1 -1
  79. package/kernel.js +1 -1
  80. package/layers/AnnotationFeatureLayer.d.ts +0 -1
  81. package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
  82. package/layers/support/AnnotationFeatureSublayer.js +1 -1
  83. package/libs/parquet/parquet.js +1 -1
  84. package/package.json +3 -3
  85. package/rest/imageService/fetchRasterInfo.js +1 -1
  86. package/support/revision.js +1 -1
  87. package/symbols/cim/types.d.ts +2 -1
  88. package/views/2d/engine/Stage.js +1 -1
  89. package/views/2d/engine/vectorTiles/SpriteMosaic.js +1 -1
  90. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  91. package/views/2d/engine/webgl/Painter.js +1 -1
  92. package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
  93. package/views/2d/engine/webgl/shaderGraph/techniques/Technique.js +1 -1
  94. package/views/2d/engine/webgl/shaderGraph/techniques/heatmap/HeatmapTechnique.js +1 -1
  95. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  96. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileDebugInfoTechnique.js +1 -1
  97. package/views/2d/engine/webgl/shaderGraph/techniques/tile/TileStencilTechnique.js +1 -1
  98. package/views/2d/layers/AnnotationFeatureLayerView2D.js +1 -1
  99. package/views/2d/layers/features/FeatureContainer.js +1 -1
  100. package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
  101. package/views/2d/layers/features/support/FeatureSetReaderParquet.js +1 -1
  102. package/views/2d/layers/graphics/GraphicContainer.js +1 -1
  103. package/views/2d/layers/graphics/HighlightGraphicContainer.js +1 -1
  104. package/views/3d/environment/CloudyWeather.js +1 -1
  105. package/views/3d/environment/SunnyWeather.js +1 -1
  106. package/views/3d/layers/I3SMeshView3D.js +1 -1
  107. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  108. package/views/3d/state/ViewStateManager.js +1 -1
  109. package/views/3d/support/GaussianSplatSortWorker.js +1 -1
  110. package/views/3d/support/buffer/InterleavedLayout.js +1 -1
  111. package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
  112. package/views/3d/terrain/TileCompositor.js +1 -1
  113. package/views/3d/webgl/RenderCamera.js +1 -1
  114. package/views/3d/webgl-engine/core/shaderLibrary/ShaderOutput.js +1 -1
  115. package/views/3d/webgl-engine/core/shaderLibrary/shading/NormalUtils.glsl.js +1 -5
  116. package/views/3d/webgl-engine/effects/clouds/CloudsParameters.js +1 -1
  117. package/views/3d/webgl-engine/effects/clouds/CloudsPresets.js +1 -1
  118. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  119. package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
  120. package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
  121. package/views/3d/webgl-engine/effects/fog/FogTechnique.js +1 -1
  122. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  123. package/views/3d/webgl-engine/effects/glow/{GlowBlur.glsl.js → BlurEmission.glsl.js} +1 -1
  124. package/views/3d/webgl-engine/effects/glow/BlurEmission.js +2 -0
  125. package/views/3d/webgl-engine/effects/glow/BlurEmissionTechnique.js +2 -0
  126. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +37 -0
  127. package/views/3d/webgl-engine/effects/shadowAccumulation/ShadowAccumulator.js +1 -1
  128. package/views/3d/webgl-engine/lib/BindParameters.js +1 -1
  129. package/views/3d/webgl-engine/lib/BufferGeometry.js +2 -0
  130. package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
  131. package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
  132. package/views/3d/webgl-engine/lib/EmissionCompositeTechnique.js +1 -1
  133. package/views/3d/webgl-engine/lib/Geometry.js +1 -1
  134. package/views/3d/webgl-engine/lib/GeometryBaseInstance.js +1 -1
  135. package/views/3d/webgl-engine/lib/MainFramebuffer.js +1 -1
  136. package/views/3d/webgl-engine/lib/RenderContext.js +1 -1
  137. package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
  138. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  139. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  140. package/views/3d/webgl-engine/lib/rendererUtils.js +1 -1
  141. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  142. package/views/3d/webgl-engine/materials/renderers/Instance.js +1 -1
  143. package/views/3d/webgl-engine/materials/renderers/MergedBuffer.js +1 -1
  144. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  145. package/views/3d/webgl-engine/materials/renderers/VaoWriter.js +1 -1
  146. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  147. package/views/3d/webgl-engine/shaders/EmissiveTechniqueConfiguration.js +1 -1
  148. package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
  149. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  150. package/views/3d/webgl-engine/shaders/floatBlendScale.glsl.js +1 -1
  151. package/views/SceneView.d.ts +1 -0
  152. package/views/SceneView.js +1 -1
  153. package/views/popupAdapter.js +1 -1
  154. package/assets/esri/core/workers/chunks/0846855843f85661e974.js +0 -1
  155. package/assets/esri/core/workers/chunks/15f4f7e34e14e3cf52e6.js +0 -1
  156. package/assets/esri/core/workers/chunks/19ab024f6f732fd6c69b.js +0 -1
  157. package/assets/esri/core/workers/chunks/22c94f9a69b2157f8dbd.js +0 -1
  158. package/assets/esri/core/workers/chunks/2ec44ebc48beeba11201.js +0 -1
  159. package/assets/esri/core/workers/chunks/30376f00cda1165a2504.js +0 -1
  160. package/assets/esri/core/workers/chunks/349b0c7febc46267441d.js +0 -1684
  161. package/assets/esri/core/workers/chunks/423c2692df662b3dddd4.js +0 -1
  162. package/assets/esri/core/workers/chunks/46f8c7ae7fb356c3410d.js +0 -1
  163. package/assets/esri/core/workers/chunks/4bf7c0c874d30b1c0760.js +0 -1
  164. package/assets/esri/core/workers/chunks/5bf2ce280ea35ea4c96b.js +0 -1
  165. package/assets/esri/core/workers/chunks/7253a439c98200e3e748.js +0 -1
  166. package/assets/esri/core/workers/chunks/75b90fb05e4a2d32b7bb.js +0 -1
  167. package/assets/esri/core/workers/chunks/7e41cee4a0ae75e1490d.js +0 -1
  168. package/assets/esri/core/workers/chunks/848a9f0e5373bbf289a5.js +0 -1
  169. package/assets/esri/core/workers/chunks/95a3f09751bff63f4fab.js +0 -1
  170. package/assets/esri/core/workers/chunks/98d614d6fc9de8ebaf94.js +0 -1
  171. package/assets/esri/core/workers/chunks/b2e2234fdf8e05bc3312.js +0 -1
  172. package/assets/esri/core/workers/chunks/bb23e670736bcace8b6f.js +0 -1
  173. package/assets/esri/core/workers/chunks/bdfffa5f88b559a4b42d.js +0 -1
  174. package/assets/esri/core/workers/chunks/c352696478b48a2090d5.js +0 -1
  175. package/assets/esri/core/workers/chunks/c91042f8bf886056a29c.js +0 -1
  176. package/assets/esri/core/workers/chunks/d58d6b55b2749a535eb3.js +0 -1
  177. package/assets/esri/core/workers/chunks/ec69dd546c312ba97110.js +0 -1
  178. package/assets/esri/core/workers/chunks/f247f3c5148fa0237a7c.js +0 -1
  179. package/assets/esri/core/workers/chunks/f4d351b4cd9d1aa10632.js +0 -1
  180. package/assets/esri/core/workers/chunks/fbc7576ed12964059da6.js +0 -1
  181. package/chunks/GlowComposite.glsl.js +0 -37
  182. package/views/3d/webgl-engine/effects/glow/Glow.js +0 -2
  183. package/views/3d/webgl-engine/effects/glow/GlowBlurTechnique.js +0 -2
  184. package/views/3d/webgl-engine/effects/glow/GlowComposite.glsl.js +0 -2
  185. package/views/3d/webgl-engine/effects/glow/GlowCompositeTechnique.js +0 -2
  186. /package/assets/esri/core/workers/chunks/{188c6ff5f4664827c254.js.LICENSE.txt → 1c803eef9a8fdabc61e3.js.LICENSE.txt} +0 -0
  187. /package/assets/esri/core/workers/chunks/{a89dbef8155d7c4354da.js.LICENSE.txt → 5edf77618ca51819d7c4.js.LICENSE.txt} +0 -0
  188. /package/assets/esri/core/workers/chunks/{48726010778d6004e347.js.LICENSE.txt → 63127e3b22e7eac6003d.js.LICENSE.txt} +0 -0
  189. /package/assets/esri/core/workers/chunks/{ff83d0337ac489ab08de.js.LICENSE.txt → 678585509706755c0434.js.LICENSE.txt} +0 -0
  190. /package/assets/esri/core/workers/chunks/{24c44541046576fee7e0.js.LICENSE.txt → 87094044458b0ea5cb0f.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4406],{48163(n,t,r){function e(){return[0,0]}function o(n){return[n[0],n[1]]}function u(n,t){return[n,t]}function i(){return u(1,1)}function a(){return u(-1,-1)}function l(){return u(1,0)}function c(){return u(0,1)}r.d(t,{fA:()=>u,o8:()=>o,vt:()=>e});const s=i(),f=a(),p=l(),g=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:s,UNIT_X:p,UNIT_Y:g,ZEROS:[0,0],clone:o,create:e,freeze:function(n,t){return[n,t]},fromArray:function(n,t=[0,0]){const r=Math.min(2,n.length);for(let e=0;e<r;++e)t[e]=n[e];return t},fromValues:u,negativeOnes:a,ones:i,unitX:l,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["IA",0,f,"Un",0,s])},91829(n,t,r){function e(){return[0,0,0,0]}function o(n,t,r,e){return[n,t,r,e]}function u(){return o(1,1,1,1)}function i(){return o(1,0,0,0)}function a(){return o(0,1,0,0)}function l(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}r.d(t,{_Y:()=>c,fA:()=>o,vt:()=>e});const s=[0,0,0,0],f=u(),p=i(),g=a(),m=l(),h=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:h,UNIT_X:p,UNIT_Y:g,UNIT_Z:m,ZEROS:s,clone:function(n){return[n[0],n[1],n[2],n[3]]},create:e,freeze:function(n,t,r,e){return[n,t,r,e]},fromArray:function(n,t=[0,0,0,0]){const r=Math.min(4,n.length);for(let e=0;e<r;++e)t[e]=n[e];return t},fromValues:o,ones:u,unitW:c,unitX:i,unitY:a,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["Un",0,f,"uY",0,s])},78955(n,t,r){r.d(t,{Bw:()=>d,C:()=>o,Cc:()=>v,LI:()=>p,Om:()=>A,S8:()=>M,T9:()=>f,WQ:()=>i,Z0:()=>x,aI:()=>b,hG:()=>h,hZ:()=>u,hs:()=>g,jk:()=>s,m3:()=>y,t2:()=>w});var e=r(34304);function o(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n}function u(n,t,r,e,o){return n[0]=t,n[1]=r,n[2]=e,n[3]=o,n}function i(n,t,r){return n[0]=t[0]+r[0],n[1]=t[1]+r[1],n[2]=t[2]+r[2],n[3]=t[3]+r[3],n}function a(n,t,r){return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],n[3]=t[3]-r[3],n}function l(n,t,r){return n[0]=t[0]*r[0],n[1]=t[1]*r[1],n[2]=t[2]*r[2],n[3]=t[3]*r[3],n}function c(n,t,r){return n[0]=t[0]/r[0],n[1]=t[1]/r[1],n[2]=t[2]/r[2],n[3]=t[3]/r[3],n}function s(n,t,r){return n[0]=Math.min(t[0],r[0]),n[1]=Math.min(t[1],r[1]),n[2]=Math.min(t[2],r[2]),n[3]=Math.min(t[3],r[3]),n}function f(n,t,r){return n[0]=Math.max(t[0],r[0]),n[1]=Math.max(t[1],r[1]),n[2]=Math.max(t[2],r[2]),n[3]=Math.max(t[3],r[3]),n}function p(n,t){return n[0]=Math.round(t[0]),n[1]=Math.round(t[1]),n[2]=Math.round(t[2]),n[3]=Math.round(t[3]),n}function g(n,t,r){return n[0]=t[0]*r,n[1]=t[1]*r,n[2]=t[2]*r,n[3]=t[3]*r,n}function m(n,t){const r=t[0]-n[0],e=t[1]-n[1],o=t[2]-n[2],u=t[3]-n[3];return Math.sqrt(r*r+e*e+o*o+u*u)}function h(n,t){const r=t[0]-n[0],e=t[1]-n[1],o=t[2]-n[2],u=t[3]-n[3];return r*r+e*e+o*o+u*u}function d(n){const t=n[0],r=n[1],e=n[2],o=n[3];return Math.sqrt(t*t+r*r+e*e+o*o)}function y(n){const t=n[0],r=n[1],e=n[2],o=n[3];return t*t+r*r+e*e+o*o}function M(n,t){const r=t[0],e=t[1],o=t[2],u=t[3];let i=r*r+e*e+o*o+u*u;return i>0&&(i=1/Math.sqrt(i),n[0]=r*i,n[1]=e*i,n[2]=o*i,n[3]=u*i),n}function A(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]+n[3]*t[3]}function v(n,t,r,e){const o=t[0],u=t[1],i=t[2],a=t[3];return n[0]=o+e*(r[0]-o),n[1]=u+e*(r[1]-u),n[2]=i+e*(r[2]-i),n[3]=a+e*(r[3]-a),n}function x(n,t,r){const e=t[0],o=t[1],u=t[2],i=t[3];return n[0]=r[0]*e+r[4]*o+r[8]*u+r[12]*i,n[1]=r[1]*e+r[5]*o+r[9]*u+r[13]*i,n[2]=r[2]*e+r[6]*o+r[10]*u+r[14]*i,n[3]=r[3]*e+r[7]*o+r[11]*u+r[15]*i,n}function w(n,t){return n[0]===t[0]&&n[1]===t[1]&&n[2]===t[2]&&n[3]===t[3]}function b(n,t){const r=n[0],o=n[1],u=n[2],i=n[3],a=t[0],l=t[1],c=t[2],s=t[3],f=(0,e.FD)();return Math.abs(r-a)<=f*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=f*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(u-c)<=f*Math.max(1,Math.abs(u),Math.abs(c))&&Math.abs(i-s)<=f*Math.max(1,Math.abs(i),Math.abs(s))}const T=a,S=l,_=c,N=m,R=h,C=d,E=y;Object.freeze(Object.defineProperty({__proto__:null,add:i,ceil:function(n,t){return n[0]=Math.ceil(t[0]),n[1]=Math.ceil(t[1]),n[2]=Math.ceil(t[2]),n[3]=Math.ceil(t[3]),n},copy:o,copyVec3:function(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n},dist:N,distance:m,div:_,divide:c,dot:A,equals:b,exactEquals:w,floor:function(n,t){return n[0]=Math.floor(t[0]),n[1]=Math.floor(t[1]),n[2]=Math.floor(t[2]),n[3]=Math.floor(t[3]),n},inverse:function(n,t){return n[0]=1/t[0],n[1]=1/t[1],n[2]=1/t[2],n[3]=1/t[3],n},len:C,length:d,lerp:v,max:f,min:s,mul:S,multiply:l,negate:function(n,t){return n[0]=-t[0],n[1]=-t[1],n[2]=-t[2],n[3]=-t[3],n},normalize:M,random:function(n,t=1){const r=e.Ov;let o,u,i,a,l,c;do{o=2*r()-1,u=2*r()-1,l=o*o+u*u}while(l>=1);do{i=2*r()-1,a=2*r()-1,c=i*i+a*a}while(c>=1);const s=Math.sqrt((1-l)/c);return n[0]=t*o,n[1]=t*u,n[2]=t*i*s,n[3]=t*a*s,n},round:p,scale:g,scaleAndAdd:function(n,t,r,e){return n[0]=t[0]+r[0]*e,n[1]=t[1]+r[1]*e,n[2]=t[2]+r[2]*e,n[3]=t[3]+r[3]*e,n},set:u,sqrDist:R,sqrLen:E,squaredDistance:h,squaredLength:y,str:function(n){return"vec4("+n[0]+", "+n[1]+", "+n[2]+", "+n[3]+")"},sub:T,subtract:a,transformMat4:x,transformQuat:function(n,t,r){const e=t[0],o=t[1],u=t[2],i=r[0],a=r[1],l=r[2],c=r[3],s=c*e+a*u-l*o,f=c*o+l*e-i*u,p=c*u+i*o-a*e,g=-i*e-a*o-l*u;return n[0]=s*c+g*-i+f*-l-p*-a,n[1]=f*c+g*-a+p*-i-s*-l,n[2]=p*c+g*-l+s*-a-f*-i,n[3]=t[3],n}},Symbol.toStringTag,{value:"Module"}))},48353(n,t,r){r.d(t,{l:()=>c});var e=r(34727),o=r(58083),u=r(51850);function i(n,t,r){const e=Math.sin(n),o=Math.cos(n),u=Math.sin(t),i=Math.cos(t),a=r;return a[0]=-e,a[4]=-u*o,a[8]=i*o,a[12]=0,a[1]=o,a[5]=-u*e,a[9]=i*e,a[13]=0,a[2]=0,a[6]=i,a[10]=u,a[14]=0,a[3]=0,a[7]=0,a[11]=0,a[15]=1,a}var a=r(49208),l=r(21325);function c(n,t,r,e){const u=(0,a.Tp)(n,e);if(null==u)return!1;const c=u.source.spatialReferenceId,m=u.dest.spatialReferenceId;if(c===m&&!s(m)&&(0!==c||(0,l.aI)(n,e)))return(0,o.kN)(r,t),!0;if(s(m)){const n=a.w5[c][10],e=a.w5[10][m];return null!=n&&null!=e&&(n(t,0,p,0),e(p,0,g,0),i(f*p[0],f*p[1],r),r[12]=g[0],r[13]=g[1],r[14]=g[2],!0)}const h=s(c);if((3===m||11===m||2===m||5===m)&&(2===c||h||3===c||5===c)){const n=a.w5[c][10],e=a.w5[10][m];return null!=n&&null!=e&&(n(t,0,p,0),e(p,0,g,0),h?function(n,t,r){i(n,t,r),(0,o.mg)(r,r)}(f*p[0],f*p[1],r):(0,o.D_)(r),r[12]=g[0],r[13]=g[1],r[14]=g[2],!0)}return!1}function s(n){return 1===n||6===n||8===n||4===n}const f=(0,e.kU)(1),p=(0,u.vt)(),g=(0,u.vt)()},74594(n,t,r){r.d(t,{projectMeshVertexPositions:()=>a});var e=r(9762),o=r(95696),u=r(21325),i=r(72258);function a(n,t){const r=(0,i.UR)(n,o.A.absolute);if(!r)return null;let a=r.position;return(0,u.aI)(n.spatialReference,t)||(a=new Float64Array(r.position.length),(0,e.projectBuffer)(r.position,n.spatialReference,0,a,t,0))?a:null}},22141(n,t,r){r.d(t,{$5:()=>w,CN:()=>M,KM:()=>T,Mv:()=>_,X4:()=>A,gr:()=>x,qs:()=>b,si:()=>v,xA:()=>S});var e=r(34727),o=r(77690),u=r(29242),i=r(58083),a=r(9093),l=r(35522),c=r(51850),s=r(73941),f=r(48353),p=r(9762),g=(r(79258),r(21325)),m=r(28735),h=r(13030),d=r(73354),y=r(50867);function M(n,t,r,e){n.error(`Failed to project from (wkid:${t.wkid}) to (wkid:${r.wkid}).${e?" ":""}${e}`)}function A(n,t,r,e,o,u){return R(0,h.xs.fromTypedArray(n),0,h.Xm.fromTypedArray(t),r,h.Xm.fromTypedArray(e),o,h.xs.fromTypedArray(u))?u:null}function v(n,t,r,e,o,u){return R(1,h.xs.fromTypedArray(n),0,h.Xm.fromTypedArray(t),r,h.Xm.fromTypedArray(e),o,h.xs.fromTypedArray(u))?u:null}function x(n,t,r,e){return(0,p.projectBuffer)(n,t,0,r,e,0)?r:null}function w(n,t,r,e){return(0,p.projectBuffer)(n,t,0,r,e,0)?r:null}function b(n,t,r){return(0,o.Ge)(q,r),(0,d.b)(t,n,q),(0,e.or)(q)&&(0,d.n)(t,t),t}function T(n,t,r){return(0,o.z0)(q,r),(0,y.t)(t,n,q),(0,e.or)(q)&&(0,d.n)(t,t,4),t}function S(n,t,r,e,o,u){if(!R(0,h.xs.fromTypedArray(n,4*Float32Array.BYTES_PER_ELEMENT),1,h.Xm.fromTypedArray(t),r,h.Xm.fromTypedArray(e),o,h.xs.fromTypedArray(u,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let t=3;t<n.length;t+=4)u[t]=n[t];return u}function _(n,t,r,e,o,u){if(!R(1,h.xs.fromTypedArray(n,16),1,h.Xm.fromTypedArray(t),r,h.Xm.fromTypedArray(e),o,h.xs.fromTypedArray(u,16)))return null;for(let t=3;t<n.length;t+=4)u[t]=n[t];return u}function N(n,t,r,e,u){switch((0,f.l)(e,r,F,e),1===n&&(0,i.B8)(F,F),t){case 0:return(0,o.Ge)(u,F);case 1:return(0,o.z0)(u,F)}}function R(n,t,r,e,o,u,i,a){if(!t)return;const c=e.count;if(function(n){return n.isWGS84||(0,g.x1)(n)||(0,s.q8)(n)||(0,s.KQ)(n)}(o))for(let e=0;e<c;e++)u.getVec(e,C),t.getVec(e,E),(0,l.ei)(E,E,N(n,r,C,i,q)),a.setVec(e,E);else for(let o=0;o<c;o++){u.getVec(o,C),t.getVec(o,E);const c=(0,m.jg)(e.get(o,1));let s=Math.cos(c);1===r!=(0===n)&&(s=1/s),N(n,r,C,i,q),0===n?(q[0]*=s,q[1]*=s,q[2]*=s,q[3]*=s,q[4]*=s,q[5]*=s):(q[0]*=s,q[3]*=s,q[6]*=s,q[1]*=s,q[4]*=s,q[7]*=s),(0,l.ei)(E,E,q),(0,l.S8)(E,E),a.setVec(o,E)}return a}const C=(0,c.vt)(),E=(0,c.vt)(),F=(0,a.vt)(),q=(0,u.vt)();r.d(t,["JP",0,"Projection may be possible after calling projection.load()."])},72258(n,t,r){r.d(t,{UR:()=>x,p5:()=>v,xK:()=>N});var e=r(53966),o=r(34727),u=r(86211),i=r(77690),a=r(29242),l=r(58083),c=r(9093),s=r(35522),f=r(51850),p=r(73941),g=r(98764),m=r(48353),h=r(65806),d=r(27615),y=r(73354),M=r(22141);const A=()=>e.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function v(n,t,{vertexSpace:r,spatialReference:e}){if("georeferenced"===r.type){const o=n;if(!(0,h.g)(t,o,e))return!1;const{origin:u}=r;return(0,s.Re)(n,o,u),!0}const o=(0,g.lO)(e),u=n;if(!(0,h.g)(t,u,o))return!1;const{origin:i}=r,a=q;if(!(0,m.l)(e,i,a,o))return!1;const c=(0,l.B8)(q,a);return null!=c&&((0,s.Z0)(n,u,c),!0)}function x(n,t,r){const{vertexSpace:e,transform:o,vertexAttributes:u}=n,a=(0,d.Hq)(e)?o:null,f=S(n.spatialReference,r,3);if((0,d.yJ)(e,t)&&(!a||(0,l.t2)(a.localMatrix,c.zK))&&_(f)){const{position:n,normal:t,tangent:e}=u,o=r?.allowBufferReuse;return{position:o?n:n.slice(),normal:o?t:t?.slice(),tangent:o?e:e?.slice()}}switch(n.vertexSpace.type){case"local":return"local"===t.type?function({vertexAttributes:n,spatialReference:t,transform:r},{origin:e},o,u){const i=w(t,u);if(!(0,m.l)(t,e,R,i))return(0,M.CN)(A(),t,i),null;if(r&&(0,l.lw)(R,R,r.localMatrix),!(0,m.l)(t,o,C,i))return(0,M.CN)(A(),i,t),null;(0,l.B8)(C,C);const a=(0,l.lw)(R,C,R);return T(a,t,u,3),b(n,a)}(n,n.vertexSpace,t.origin,r):function({spatialReference:n,vertexAttributes:t,transform:r},{origin:e},o,u){const i=w(n,u);if(!(0,m.l)(n,e,R,i))return(0,M.CN)(A(),n,i),null;r&&(0,l.lw)(R,R,r.localMatrix),T(R,n,u,1);const a=new Float64Array(t.position.length),c=function(n,t,r,e,o){(0,y.t)(e,n,t);const u=new Float64Array(n.length);return(0,M.$5)(e,o,u,r)?u:((0,M.CN)(A(),o,r),null)}(t.position,R,n,a,i);if(!c)return null;const f=function(n,t,r,e,o,u){if(null==o)return null;const i=new Float32Array(o.length);return(0,M.qs)(o,i,u),(0,M.si)(i,n,t,r,e,i)?i:((0,M.CN)(A(),e,t),null)}(c,n,a,i,t.normal,R);if(t.normal&&!f)return null;const p=function(n,t,r,e,o,u){if(null==o)return null;const i=new Float32Array(o.length);return(0,M.KM)(o,i,u),(0,M.Mv)(i,n,t,r,e,i)?i:((0,M.CN)(A(),e,t),null)}(c,n,a,i,t.tangent,R);if(t.tangent&&!p)return null;if(o){const n=(0,s.ze)(F,o);(0,y.a)(c,c,n)}return{position:c,normal:f,tangent:p}}(n,n.vertexSpace,t.origin,r);case"georeferenced":return"local"===t.type?function({vertexAttributes:n,spatialReference:t,transform:r},{origin:e},o,u){const a=w(t,u);if(!(0,m.l)(t,o,R,a))return(0,M.CN)(A(),t,a),null;const c=1/S(t,u,2);(0,l.hs)(R,R,[c,c,c]);const s=(0,l.B8)(C,R),{position:f,normal:p,tangent:g}=function(n,t,r){if(!t)return n;if(!r){const{position:r,normal:e,tangent:o}=n;return{position:(0,y.a)(new Float64Array(r.length),r,t),tangent:o,normal:e}}const e=b(n,r.localMatrix);return(0,y.a)(e.position,e.position,t),e}(n,e,r),h=new Float64Array(f.length),d=function(n,t,r,e,o){const u=(0,M.gr)(n,t,e,o);if(!u)return(0,M.CN)(A(),t,o),null;const i=new Float64Array(u.length);return(0,y.t)(i,u,r),i}(f,t,s,h,a);if(!d)return null;const v=(0,i.Ge)(E,s),x=function(n,t,r,e,o,u,i){if(null==n)return null;const a=i??new Float32Array(n.length);return(0,M.X4)(n,t,r,e,o,a)?((0,y.b)(a,a,u),a):((0,M.CN)(A(),r,o),null)}(p,f,t,h,a,v,p!==n.normal?p:void 0);if(!x&&p)return null;const T=function(n,t,r,e,o,u,i){if(null==n)return null;const a=i??new Float32Array(n.length);return(0,M.xA)(n,t,r,e,o,a)?((0,y.b)(a,a,u,4),a):((0,M.CN)(A(),r,o),null)}(g,f,t,h,a,v,g!==n.tangent?g:void 0);return!T&&g?null:{position:d,normal:x,tangent:T}}(n,n.vertexSpace,t.origin,r):function({vertexAttributes:n,transform:t,spatialReference:r},{origin:e},o,u){const i=S(r,u,3),a=e||!_(i)?(0,l.C)(R,t?.localMatrix??c.zK):null;a&&T(a,r,u,3);const{position:f,normal:p,tangent:g}=a?b(n,a):n,m=u?.allowBufferReuse,h=m?f:new Float64Array(f.length);let d=f;if(e&&(d=(0,y.a)(h,d,e)),o){const n=(0,s.ze)(F,o);d=(0,y.a)(h,d,n)}return{position:d!==n.position||m?d:d.slice(),normal:p!==n.normal||m?p:p?.slice(),tangent:g!==n.tangent||m?g:g?.slice()}}(n,n.vertexSpace,t.origin,r)}}function w(n,t){return t?.useEllipsoid&&(0,p.B3)(n)?g.Y0:(0,g.lO)(n)}function b(n,t){const r=new Float64Array(n.position.length);(0,y.t)(r,n.position,t);const e=n.normal?new Float32Array(n.normal.length):null,o=n.tangent?new Float32Array(n.tangent.length):null;return e&&n.normal&&(0,M.qs)(n.normal,e,t),o&&n.tangent&&(0,M.KM)(n.tangent,o,t),{position:r,normal:e,tangent:o}}function T(n,t,r,e){const o=S(t,r,e);_(o)||(0,l.hs)(n,n,[o,o,o])}function S(n,t,r){const e=!!(1&r),o=!!(2&r),u=t?.sourceUnit,i=t?.targetUnit;if(!u&&!i)return 1;let a=N(u,n);e||!u||_(a)||(A().warn("source unit conversion not supported"),a=1);let l=1/N(i,n);return o||!i||_(l)||(A().warn("target unit conversion not supported"),l=1),a*l}function _(n){return(0,o.Io)(n,1)}function N(n,t){if(null==n)return 1;const r=(0,u.KX)(t);return 1/(0,u.oU)(r,"meters",n)}const R=(0,c.vt)(),C=(0,c.vt)(),E=(0,a.vt)(),F=(0,f.vt)(),q=(0,c.vt)()},27615(n,t,r){r.d(t,{CK:()=>l,Hq:()=>a,MW:()=>c,TE:()=>s,yJ:()=>f});var e=r(35522),o=r(86738),u=r(95696),i=r(18251);function a(n){return null!=n.origin}function l(n){return a(n.vertexSpace)}function c(n,t){if(!a(n))return null;const[r,e,u]=n.origin;return new o.A({x:r,y:e,z:u,spatialReference:t})}function s(n,t){const{x:r,y:e,z:o,spatialReference:a}=n,l=[r,e,o??0];return"local"===(t?.vertexSpace??function(n){return n.isGeographic||n.isWebMercator?"local":"georeferenced"}(a))?new i.A({origin:l}):new u.A({origin:l})}function f(n,t){return n.type===t.type&&(n.origin===t.origin||null!=n.origin&&null!=t.origin&&(0,e.t2)(n.origin,t.origin))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5856],{35856(t,e,n){n.r(e),n.d(e,{SplatSortWorkerInput:()=>s,SplatSortWorkerOutput:()=>r,clear:()=>M,destroy:()=>k,sort:()=>m});class s{constructor(t,e,n,s,r,i,o,l,a=!1){this.addedTiles=t,this.removedTileHandles=e,this.visibleTileHandles=n,this.sortedAtlasIndices=s,this.numGaussians=r,this.directionX=i,this.directionY=o,this.directionZ=l,this.preciseSort=a}}class r{constructor(t){this.sortedAtlasIndices=t}}let i=null,o=0,l=null,a=0,c=null,u=0;const d=new Map;function f(t,e){let n=Math.max(1,t);for(;n<e;)n=Math.ceil(1.5*n);return n}function h(t){t>o&&(o=f(o,t),i=new Uint32Array(o)),i.fill(0,0,t)}function w(t){t<=a||(a=f(a,t),l=new Float64Array(a))}function g(t){return t>u&&(u=f(u,t),c=new Uint32Array(u)),c}function p(t,e,n,s,r){const o=t.length,l=Math.max(10,Math.min(20,Math.round(Math.log2(o/.25)))),a=1+(1<<l);h(a);const c=i,u=r-s,f=u>=1e-6,w=f?(1<<l)/u:0;if(f)for(let e=0;e<o;e++)c[(t[e]-s)*w>>>0]++;else c[0]=o;let g=c[0];for(let t=1;t<a;t++)g+=c[t],c[t]=g;let p=0;for(let r=0;r<e.length;r++){const i=d.get(e[r]);if(null==i)throw new Error("Gaussian splat sort worker is missing resident tile data");const o=p+i.gaussianCount;for(let e=0;e<i.pageIds.length&&p<o;e++){const r=1024*i.pageIds[e],l=Math.min(o-p,1024);for(let e=0;e<l;e++,p++)n[--c[f?(t[p]-s)*w>>>0:0]]=r+e}}if(p!==o)throw new Error("Gaussian splat sort worker received inconsistent resident tile data")}async function m(t){const{addedTiles:e,removedTileHandles:n,visibleTileHandles:s,sortedAtlasIndices:i,numGaussians:o,directionX:a,directionY:c,directionZ:u,preciseSort:f}=t;for(let t=0;t<n.length;t++)d.delete(n[t]);for(let t=0;t<e.length;t++){const n=e[t];d.set(n.handle,n)}if(0===o)return{result:new r(i),transferList:[i.buffer]};w(o);const h=l.subarray(0,o),m=i.subarray(0,o);let k=0,M=1/0,b=-1/0;for(let t=0;t<s.length;t++){const e=d.get(s[t]);if(null==e)throw new Error("Gaussian splat sort worker is missing resident tile data");const{relativePositions:n,gaussianCount:r,originX:i,originY:o,originZ:l}=e,f=k+r,w=a*i+c*o+u*l;for(let t=0;k<f;k++,t+=3){const e=n[t]*a+n[t+1]*c+n[t+2]*u+w;h[k]=e,M=Math.min(M,e),b=Math.max(b,e)}}if(k!==o)throw new Error("Gaussian splat sort worker received inconsistent resident tile data");if(f){const t=g(o).subarray(0,o);!function(t,e){let n=0;for(let s=0;s<t.length;s++){const r=d.get(t[s]);if(null==r)throw new Error("Gaussian splat sort worker is missing resident tile data");const i=n+r.gaussianCount;for(let t=0;t<r.pageIds.length&&n<i;t++){const s=1024*r.pageIds[t],o=Math.min(i-n,1024);for(let t=0;t<o;t++,n++)e[n]=s+t}}if(n!==e.length)throw new Error("Gaussian splat sort worker received inconsistent resident tile data")}(s,t);const e=new Array(o);for(let t=0;t<o;t++)e[t]=t;e.sort((t,e)=>h[t]-h[e]||t-e);for(let n=0;n<o;n++)m[n]=t[e[n]]}else o>0&&p(h,s,m,M,b);return{result:new r(i),transferList:[i.buffer]}}function k(){M()}function M(){d.clear(),l=null,a=0,c=null,u=0,i=null,o=0}}}]);
@@ -1 +0,0 @@
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,F=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:F,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:()=>w,ei:()=>N,fw:()=>I,gL:()=>R,hG:()=>B,hZ:()=>o,hs:()=>m,jk:()=>p,lw:()=>c,m3:()=>T,oW:()=>U,t2:()=>F,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 F(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function w(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:w,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,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:()=>y,qB:()=>x,Qt:()=>Z,My:()=>W,bf:()=>z,jZ:()=>S,j0:()=>A,Sx:()=>g,E$:()=>v,Qy:()=>nt,h:()=>U,P:()=>P,SL:()=>O,dy:()=>et,ES:()=>st,gH:()=>M,ZD:()=>E,si:()=>N,mJ:()=>k,UL:()=>J,D6:()=>j,Yi:()=>L,An:()=>V,LC:()=>C,xs:()=>T,EC:()=>B,Xm:()=>R,Vp:()=>$,zD:()=>K,m8:()=>H,nS:()=>D,H$:()=>q,eI:()=>F,td:()=>rt,Eq:()=>b,jz:()=>_,Aj:()=>I,E7:()=>Q,Y4:()=>tt,TX:()=>X,Uz:()=>G,ml:()=>Y,XP:()=>w});var n=r(34727),s=r(37585),i=r(48163),u=r(78955),o=r(91829);class a{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 f{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 c{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 l{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 h=r(35522);class d{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,h.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 p{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}}class y extends c{constructor(t,e=0,r,n){super(Float16Array,t,e,r,n),this.elementType="f16"}static{this.ElementType="f16"}}class m extends c{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}static{this.ElementType="f32"}}class E extends l{constructor(t,e=0,r,n){super(Float16Array,t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(E,t,e)}static{this.ElementType="f16"}}class M extends l{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(M,t,e)}static{this.ElementType="f32"}}class B extends d{constructor(t,e=0,r,n){super(Float16Array,t,e,r,n),this.elementType="f16"}slice(t,e){return this.sliceBuffer(B,t,e)}static{this.ElementType="f16"}}class T extends d{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 fromTypedArray(t,e){return new T(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class _ extends p{constructor(t,e=0,r,n){super(Float16Array,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{this.ElementType="f32"}}class S extends a{constructor(t,e=0,r,n){super(Float32Array,t,e,r,n),this.elementType="f32"}slice(t,e){return this.sliceBuffer(S,t,e)}static{this.ElementType="f32"}}class A extends a{constructor(t,e=0,r,n){super(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f64"}}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(Float64Array,t,e,r,n),this.elementType="f64"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="f64"}}class N extends l{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 d{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 fromTypedArray(t,e){return new R(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class I extends p{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 c{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(O,t,e)}static{this.ElementType="u8"}}class C extends l{constructor(t,e=0,r,n){super(Uint8Array,t,e,r,n),this.elementType="u8"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="u8"}}class F extends d{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 fromTypedArray(t,e){return new F(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class w extends p{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 U extends c{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(U,t,e)}static{this.ElementType="u16"}}class L extends l{constructor(t,e=0,r,n){super(Uint16Array,t,e,r,n),this.elementType="u16"}slice(t,e){return this.sliceBuffer(L,t,e)}static{this.ElementType="u16"}}class D extends d{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 p{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 c{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(P,t,e)}static{this.ElementType="u32"}}class V extends l{constructor(t,e=0,r,n){super(Uint32Array,t,e,r,n),this.elementType="u32"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="u32"}}class q extends d{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 p{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 c{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 j extends l{constructor(t,e=0,r,n){super(Int8Array,t,e,r,n),this.elementType="i8"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="i8"}}class H extends d{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 p{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 c{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="i16"}}class k extends l{constructor(t,e=0,r,n){super(Int16Array,t,e,r,n),this.elementType="i16"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="i16"}}class $ extends d{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 p{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 c{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i32"}}class J extends l{constructor(t,e=0,r,n){super(Int32Array,t,e,r,n),this.elementType="i32"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i32"}}class K extends d{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 p{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 O{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(et,t,e)}}class rt extends w{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)(ut,(0,u.T9)(ut,e,o.uY),o.Un),(0,u.hs)(ut,ut,255),(0,u.LI)(ut,ut),super.setVec(t,ut)}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)(ut,e,r,n,s),this.setVec(t,ut)}slice(t,e){return this.sliceBuffer(rt,t,e)}}class nt extends Z{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(nt,t,e)}}class st extends k{constructor(t,e=0,r,n){super(t,e,r,n)}getVec(t,e){return(0,s.hZ)(it,-1,-1),(0,s.T9)(e,(0,s.hs)(e,super.getVec(t,e),1/32767),it)}setVec(t,e){(0,s.qE)(it,e,i.IA,i.Un),(0,s.hs)(it,it,32767),(0,s.LI)(it,it),super.setVec(t,it)}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)(it,e,r),this.setVec(t,it)}slice(t,e){return this.sliceBuffer(st,t,e)}}const it=(0,i.vt)(),ut=(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})},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,F=null!=C?new Uint32Array(C.typedBuffer.buffer,C.typedBuffer.byteOffset,C.typedBuffer.length/2):null,w=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!=F&&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&&(F[t*w]=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 F=m(s,d,O),w=m(d,B,O),U=m(B,s,O);a[3*O]=F,a[3*O+1]=w,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:()=>c,l5:()=>l});var n=r(13030),s=r(90239),i=r(4431),u=r(620),o=r(85079);class a{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 a(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 f{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:p(t[1].constructor)})))}freeze(){return this}get locations(){return(0,o.Xk)((0,i.U)(this))}vec2f16(t,e){return this._appendField(t,n.ZD,e),this}vec2f(t,e){return this._appendField(t,n.gH,e),this}vec2f64(t,e){return this._appendField(t,n.si,e),this}vec3f16(t,e){return this._appendField(t,n.EC,e),this}vec3f(t,e){return this._appendField(t,n.xs,e),this}vec3f64(t,e){return this._appendField(t,n.Xm,e),this}vec4f16(t,e){return this._appendField(t,n.jz,e),this}vec4f(t,e){return this._appendField(t,n.Eq,e),this}vec4f64(t,e){return this._appendField(t,n.Aj,e),this}mat3f(t,e){return this._appendField(t,n.jZ,e),this}mat3f64(t,e){return this._appendField(t,n.j0,e),this}mat4f(t,e){return this._appendField(t,n.Sx,e),this}mat4f64(t,e){return this._appendField(t,n.E$,e),this}vec4u8(t,e){return this._appendField(t,n.XP,e),this}f16(t,e){return this._appendField(t,n.XW,e),this}f32(t,e){return this._appendField(t,n.Y$,e),this}f64(t,e){return this._appendField(t,n.qB,e),this}u8(t,e){return this._appendField(t,n.SL,e),this}u16(t,e){return this._appendField(t,n.h,e),this}i8(t,e){return this._appendField(t,n.bf,e),this}vec2i8(t,e){return this._appendField(t,n.D6,e),this}vec2i16(t,e){return this._appendField(t,n.mJ,e),this}vec2u8(t,e){return this._appendField(t,n.LC,e),this}vec2u16(t,e){return this._appendField(t,n.Yi,e),this}vec4u16(t,e){return this._appendField(t,n.Uz,e),this}vec4i16(t,e){return this._appendField(t,n.E7,e),this}u32(t,e){return this._appendField(t,n.P,e),this}_appendField(t,e,r){this._fields.has(t)&&(0,u.vA)(!1,`${t} already added to vertex buffer layout`);const n=e.ElementCount*(0,s.GJ)(e.ElementType),i=this._stride;this._fields.set(t,{constructor:e,size:n,offset:i,optional:r}),this._alignFields()}_alignFields(){let t=0,e=1;this._fields.forEach(r=>{const n=(0,s.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 a(this,t)}createView(t,e){return new a(this,t,e)}clone(){const t=new f;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 c(){return new f}class l{constructor(t){this.fields=new Array,t.fields.forEach((t,e)=>{const r={...t,constructor:d(t.constructor)};this.fields.push([e,r])}),this.stride=t.stride}}const h=[n.Y$,n.gH,n.xs,n.Eq,n.jZ,n.Sx,n.qB,n.si,n.Xm,n.Aj,n.j0,n.E$,n.SL,n.LC,n.eI,n.XP,n.h,n.Yi,n.nS,n.Uz,n.P,n.An,n.H$,n.ml,n.bf,n.D6,n.m8,n.TX,n.Qt,n.mJ,n.Vp,n.E7,n.My,n.UL,n.zD,n.Y4];function d(t){return`${t.ElementType}_${t.ElementCount}`}function p(t){return y.get(t)}const y=new Map;h.forEach(t=>y.set(d(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}])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3730],{79608(t,n,e){e.d(n,{A:()=>f});var r=e(32198),i=e(69540),s=e(91429);let o=class extends i.Pw{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,r.Cg)([(0,s.MZ)()],o.prototype,"type",void 0),o=(0,r.Cg)([(0,s.$K)("esri.analysis.support.AnalysisOriginWebScene")],o);const a=o;var u=e(69622),c=e(4902),h=e(25482);let l=0,f=class extends((0,h.T)((0,i.OU)((0,c.s)(u.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${l++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){const n=this.parent;if(null!=n)switch(n.type){case"line-of-sight":case"dimension":case"viewshed":n.releaseAnalysis(this);break;case"2d":case"3d":n.analyses.includes(this)&&n.analyses.remove(this)}this._set("parent",t)}equals(t){return this.type===t.type}};(0,r.Cg)([(0,s.MZ)({type:String,constructOnly:!0,clonable:!1})],f.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({clonable:!1,value:null})],f.prototype,"parent",null),(0,r.Cg)([(0,s.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":a}}})],f.prototype,"origin",void 0),f=(0,r.Cg)([(0,s.$K)("esri.analysis.Analysis")],f)},91715(t,n,e){e.d(n,{xH:()=>s,N1:()=>a}),e(35522);var r=e(51850),i=e(71351);function s(t,n){return o(t)===o(n)}function o(t){if(null==t)return null;const n=null!=t.layer?t.layer.id:"";let e=null;return e=null!=t.objectId?t.objectId:null!=t.layer&&"objectIdField"in t.layer&&null!=t.layer.objectIdField&&null!=t.attributes?t.attributes[t.layer.objectIdField]:t.uid,null==e?null:`o-${n}-${e}`}e(58083),e(70328),e(77548),e(6867),e(49718),(0,r.vt)();const a={json:{write:{writer:function(t,n){null!=t?.layer?.objectIdField&&null!=t.attributes&&(n.feature={layerId:t.layer.id,objectId:t.attributes[t.layer.objectIdField]})},target:{"feature.layerId":{type:[Number,String],isRequired:!0},"feature.objectId":{type:[Number,String],isRequired:!0}}},origins:{"web-scene":{read:function(t){if(null!=t.layerId&&null!=t.objectId)return{uid:null,layer:{id:t.layerId,objectIdField:"ObjectId"},attributes:{ObjectId:t.objectId}}}}}},clonable:"reference"};(0,i.vt)(),(0,r.vt)()},80200(t,n,e){e.d(n,{d:()=>l});const r={Base64:0,Hex:1,String:2,Raw:3};function i(t,n){const e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}function s(t,n,e,r,s,o){return i(function(t,n){return t<<n|t>>>32-n}(i(i(n,t),i(r,o)),s),e)}function o(t,n,e,r,i,o,a){return s(n&e|~n&r,t,n,i,o,a)}function a(t,n,e,r,i,o,a){return s(n&r|e&~r,t,n,i,o,a)}function u(t,n,e,r,i,o,a){return s(n^e^r,t,n,i,o,a)}function c(t,n,e,r,i,o,a){return s(e^(n|~r),t,n,i,o,a)}function h(t,n){t[n>>5]|=128<<n%32,t[14+(n+64>>>9<<4)]=n;let e=1732584193,r=-271733879,s=-1732584194,h=271733878;for(let n=0;n<t.length;n+=16){const l=e,f=r,p=s,d=h;e=o(e,r,s,h,t[n],7,-680876936),h=o(h,e,r,s,t[n+1],12,-389564586),s=o(s,h,e,r,t[n+2],17,606105819),r=o(r,s,h,e,t[n+3],22,-1044525330),e=o(e,r,s,h,t[n+4],7,-176418897),h=o(h,e,r,s,t[n+5],12,1200080426),s=o(s,h,e,r,t[n+6],17,-1473231341),r=o(r,s,h,e,t[n+7],22,-45705983),e=o(e,r,s,h,t[n+8],7,1770035416),h=o(h,e,r,s,t[n+9],12,-1958414417),s=o(s,h,e,r,t[n+10],17,-42063),r=o(r,s,h,e,t[n+11],22,-1990404162),e=o(e,r,s,h,t[n+12],7,1804603682),h=o(h,e,r,s,t[n+13],12,-40341101),s=o(s,h,e,r,t[n+14],17,-1502002290),r=o(r,s,h,e,t[n+15],22,1236535329),e=a(e,r,s,h,t[n+1],5,-165796510),h=a(h,e,r,s,t[n+6],9,-1069501632),s=a(s,h,e,r,t[n+11],14,643717713),r=a(r,s,h,e,t[n],20,-373897302),e=a(e,r,s,h,t[n+5],5,-701558691),h=a(h,e,r,s,t[n+10],9,38016083),s=a(s,h,e,r,t[n+15],14,-660478335),r=a(r,s,h,e,t[n+4],20,-405537848),e=a(e,r,s,h,t[n+9],5,568446438),h=a(h,e,r,s,t[n+14],9,-1019803690),s=a(s,h,e,r,t[n+3],14,-187363961),r=a(r,s,h,e,t[n+8],20,1163531501),e=a(e,r,s,h,t[n+13],5,-1444681467),h=a(h,e,r,s,t[n+2],9,-51403784),s=a(s,h,e,r,t[n+7],14,1735328473),r=a(r,s,h,e,t[n+12],20,-1926607734),e=u(e,r,s,h,t[n+5],4,-378558),h=u(h,e,r,s,t[n+8],11,-2022574463),s=u(s,h,e,r,t[n+11],16,1839030562),r=u(r,s,h,e,t[n+14],23,-35309556),e=u(e,r,s,h,t[n+1],4,-1530992060),h=u(h,e,r,s,t[n+4],11,1272893353),s=u(s,h,e,r,t[n+7],16,-155497632),r=u(r,s,h,e,t[n+10],23,-1094730640),e=u(e,r,s,h,t[n+13],4,681279174),h=u(h,e,r,s,t[n],11,-358537222),s=u(s,h,e,r,t[n+3],16,-722521979),r=u(r,s,h,e,t[n+6],23,76029189),e=u(e,r,s,h,t[n+9],4,-640364487),h=u(h,e,r,s,t[n+12],11,-421815835),s=u(s,h,e,r,t[n+15],16,530742520),r=u(r,s,h,e,t[n+2],23,-995338651),e=c(e,r,s,h,t[n],6,-198630844),h=c(h,e,r,s,t[n+7],10,1126891415),s=c(s,h,e,r,t[n+14],15,-1416354905),r=c(r,s,h,e,t[n+5],21,-57434055),e=c(e,r,s,h,t[n+12],6,1700485571),h=c(h,e,r,s,t[n+3],10,-1894986606),s=c(s,h,e,r,t[n+10],15,-1051523),r=c(r,s,h,e,t[n+1],21,-2054922799),e=c(e,r,s,h,t[n+8],6,1873313359),h=c(h,e,r,s,t[n+15],10,-30611744),s=c(s,h,e,r,t[n+6],15,-1560198380),r=c(r,s,h,e,t[n+13],21,1309151649),e=c(e,r,s,h,t[n+4],6,-145523070),h=c(h,e,r,s,t[n+11],10,-1120210379),s=c(s,h,e,r,t[n+2],15,718787259),r=c(r,s,h,e,t[n+9],21,-343485551),e=i(e,l),r=i(r,f),s=i(s,p),h=i(h,d)}return[e,r,s,h]}function l(t,n=r.Hex){const e=n||r.Base64,i=h(function(t){const n=[];for(let e=0,r=8*t.length;e<r;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}(t),8*t.length);switch(e){case r.Raw:return i;case r.Hex:return function(t){const n="0123456789abcdef",e=[];for(let r=0,i=4*t.length;r<i;r++)e.push(n.charAt(t[r>>2]>>r%4*8+4&15)+n.charAt(t[r>>2]>>r%4*8&15));return e.join("")}(i);case r.String:return function(t){const n=[];for(let e=0,r=32*t.length;e<r;e+=8)n.push(String.fromCharCode(t[e>>5]>>>e%32&255));return n.join("")}(i);case r.Base64:return function(t){const n=[];for(let e=0,r=4*t.length;e<r;e+=3){const r=(t[e>>2]>>e%4*8&255)<<16|(t[e+1>>2]>>(e+1)%4*8&255)<<8|t[e+2>>2]>>(e+2)%4*8&255;for(let i=0;i<4;i++)8*e+6*i>32*t.length?n.push("="):n.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-i)&63))}return n.join("")}(i)}}e.d(n,["T",0,r])},4341(t,n,e){e.d(n,{I:()=>i});var r=e(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,s));t++)this._items.push(this._allocator())}}const s=1024},87024(t,n,e){e.d(n,{P:()=>p});var r=e(49186),i=e(80200),s=e(76553),o=e(84952),a=e(13069),u=e(96156),c=e(35666),h=e(10107),l=e(85648),f=e(97159);function p(t){const n=t?.origins??[void 0];return(e,r)=>{const i=function(t,n,e){if("resource"===t?.type)return function(t,n,e){const r=(0,u.z4)(n,e);return{type:String,read:(t,n,e)=>{const i=(0,f.r)(t,n,e);return r.type===String?i:"function"==typeof r.type?new r.type({url:i}):void 0},write:{isRequired:r.json?.write?.isRequired,writer(n,i,a,u){if(!u?.resources)return"string"==typeof n?void(i[a]=(0,f.t)(n,u)):void(i[a]=n.write({},u));const h=function(t){return null==t?null:"string"==typeof t?t:t.url}(n),p=(0,f.t)(h,{...u,verifyItemRelativeUrls:u?.verifyItemRelativeUrls?{writtenUrls:u.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),y=r.type!==String&&(!(0,s.H)(this)||u?.origin&&this.originIdOf(e)>(0,c.aB)(u.origin)),g={object:this,propertyName:e,value:n,targetUrl:p,dest:i,targetPropertyName:a,context:u,params:t};u?.portalItem&&p&&!(0,o.oP)(p)?y&&t?.contentAddressed?d(g):y?function(t){const{context:n,targetUrl:e,params:r,value:i,dest:s,targetPropertyName:a}=t;if(!n.portalItem)return;const u=n.portalItem.resourceFromPath(e),c=M(i,e,n),h=(0,l.n)(c),f=(0,o.Zo)(u.path),p=r?.compress??!1;h===f?(n.resources&&m({...t,resource:u,content:c,compress:p,updates:n.resources.toUpdate}),s[a]=e):d(t)}(g):function({context:t,targetUrl:n,dest:e,targetPropertyName:r}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),e[r]=n)}(g):u?.portalItem&&(null==p||null!=(0,f.i)(p)||(0,o.w8)(p)||y)?d(g):i[a]=p}}}}(t,n,e);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:n}=f.b;return{read:t,write:n}}}}(t,e,r);for(const t of n){const n=(0,h.rM)(e,t,r);for(const t in i)n[t]=i[t]}}}function d(t){const{targetUrl:n,params:e,value:s,context:u,dest:c,targetPropertyName:h}=t;if(!u.portalItem)return;const p=(0,f.p)(n),d=M(s,n,u);if(e?.contentAddressed&&"json"!==d.type)return void u.messages?.push(new r.A("persistable:contentAddressingUnsupported",`Property "${h}" is trying to serializing a resource with content of type ${d.type} with content addressing. Content addressing is only supported for json resources.`,{content:d}));const y=e?.contentAddressed&&"json"===d.type?(0,i.d)(d.jsonString):p?.filename??(0,a.lk)(),g=(0,o.fj)(e?.prefix??p?.prefix,y),b=`${g}.${(0,l.n)(d)}`;if(e?.contentAddressed&&u.resources&&"json"===d.type){const t=u.resources.toKeep.find(({resource:t})=>t.path===b)??u.resources.toAdd.find(({resource:t})=>t.path===b);if(t)return void(c[h]=t.resource.itemRelativeUrl)}const v=u.portalItem.resourceFromPath(b);(0,o.w8)(n)&&u.resources&&u.resources.pendingOperations.push((0,o.tk)(n).then(t=>{v.path=`${g}.${(0,l.n)({type:"blob",blob:t})}`,c[h]=v.itemRelativeUrl}).catch(()=>{}));const _=e?.compress??!1;u.resources&&m({...t,resource:v,content:d,compress:_,updates:u.resources.toAdd}),c[h]=v.itemRelativeUrl}function m({object:t,propertyName:n,updates:e,resource:r,content:i,compress:s}){e.push({resource:r,content:i,compress:s,finish:e=>{!function(t,n,e){"string"==typeof t[n]?t[n]=e.url:t[n].url=e.url}(t,n,e)}})}function M(t,n,e){return"string"==typeof t?{type:"url",url:n}:{type:"json",jsonString:JSON.stringify(t.toJSON(e))}}},62885(t,n,e){e.d(n,{H:()=>s,V:()=>i});var r=e(7762);function i(t,n,e=r.A){return n||(n=new e),n===t||n.destroyed||(n.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?n.addMany(t):t&&n.add(t)),n;var i}function s(t){return t}},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>i,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r,i,s,o,a,u,c,h,l,f,p,d,m){return[t,n,e,r,i,s,o,a,u,c,h,l,f,p,d,m]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,s])},82534(t,n,e){function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>i,vt:()=>r});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,s])},48163(t,n,e){function r(){return[0,0]}function i(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function o(){return s(1,1)}function a(){return s(-1,-1)}function u(){return s(1,0)}function c(){return s(0,1)}e.d(n,{fA:()=>s,o8:()=>i,vt:()=>r});const h=o(),l=a(),f=u(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:l,ONES:h,UNIT_X:f,UNIT_Y:p,ZEROS:[0,0],clone:i,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:s,negativeOnes:a,ones:o,unitX:u,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,l,"Un",0,h])},91829(t,n,e){function r(){return[0,0,0,0]}function i(t,n,e,r){return[t,n,e,r]}function s(){return i(1,1,1,1)}function o(){return i(1,0,0,0)}function a(){return i(0,1,0,0)}function u(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>i,vt:()=>r});const h=[0,0,0,0],l=s(),f=o(),p=a(),d=u(),m=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_W:m,UNIT_X:f,UNIT_Y:p,UNIT_Z:d,ZEROS:h,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,ones:s,unitW:c,unitX:o,unitY:a,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,l,"uY",0,h])},58083(t,n,e){e.d(n,{$0:()=>y,$h:()=>j,B8:()=>h,C:()=>s,D_:()=>a,N9:()=>b,O7:()=>P,Qw:()=>c,Tl:()=>f,X_:()=>x,e$:()=>d,eL:()=>m,hM:()=>g,hZ:()=>o,hs:()=>p,kN:()=>M,l:()=>w,lw:()=>l,mg:()=>u,o1:()=>A,sC:()=>I,t2:()=>S,t5:()=>R,tZ:()=>q,ut:()=>O});var r=e(51850),i=e(34304);function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function o(t,n,e,r,i,s,o,a,u,c,h,l,f,p,d,m,M){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=s,t[5]=o,t[6]=a,t[7]=u,t[8]=c,t[9]=h,t[10]=l,t[11]=f,t[12]=p,t[13]=d,t[14]=m,t[15]=M,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function u(t,n){if(t===n){const e=n[1],r=n[2],i=n[3],s=n[6],o=n[7],a=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=s,t[11]=n[14],t[12]=i,t[13]=o,t[14]=a}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function c(t,n){return h(t,n)||a(t),t}function h(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],u=n[6],c=n[7],h=n[8],l=n[9],f=n[10],p=n[11],d=n[12],m=n[13],M=n[14],y=n[15],g=e*a-r*o,b=e*u-i*o,v=e*c-s*o,_=r*u-i*a,I=r*c-s*a,x=i*c-s*u,w=h*m-l*d,A=h*M-f*d,P=h*y-p*d,j=l*M-f*m,R=l*y-p*m,C=f*y-p*M;let S=g*C-b*R+v*j+_*P-I*A+x*w;return S?(S=1/S,t[0]=(a*C-u*R+c*j)*S,t[1]=(i*R-r*C-s*j)*S,t[2]=(m*x-M*I+y*_)*S,t[3]=(f*I-l*x-p*_)*S,t[4]=(u*P-o*C-c*A)*S,t[5]=(e*C-i*P+s*A)*S,t[6]=(M*v-d*x-y*b)*S,t[7]=(h*x-f*v+p*b)*S,t[8]=(o*R-a*P+c*w)*S,t[9]=(r*P-e*R-s*w)*S,t[10]=(d*I-m*v+y*g)*S,t[11]=(l*v-h*I-p*g)*S,t[12]=(a*A-o*j-u*w)*S,t[13]=(e*j-r*A+i*w)*S,t[14]=(m*b-d*_-M*g)*S,t[15]=(h*_-l*b+f*g)*S,t):null}function l(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=n[9],p=n[10],d=n[11],m=n[12],M=n[13],y=n[14],g=n[15];let b=e[0],v=e[1],_=e[2],I=e[3];return t[0]=b*r+v*a+_*l+I*m,t[1]=b*i+v*u+_*f+I*M,t[2]=b*s+v*c+_*p+I*y,t[3]=b*o+v*h+_*d+I*g,b=e[4],v=e[5],_=e[6],I=e[7],t[4]=b*r+v*a+_*l+I*m,t[5]=b*i+v*u+_*f+I*M,t[6]=b*s+v*c+_*p+I*y,t[7]=b*o+v*h+_*d+I*g,b=e[8],v=e[9],_=e[10],I=e[11],t[8]=b*r+v*a+_*l+I*m,t[9]=b*i+v*u+_*f+I*M,t[10]=b*s+v*c+_*p+I*y,t[11]=b*o+v*h+_*d+I*g,b=e[12],v=e[13],_=e[14],I=e[15],t[12]=b*r+v*a+_*l+I*m,t[13]=b*i+v*u+_*f+I*M,t[14]=b*s+v*c+_*p+I*y,t[15]=b*o+v*h+_*d+I*g,t}function f(t,n,e){const r=e[0],i=e[1],s=e[2];if(n===t)t[12]=n[0]*r+n[4]*i+n[8]*s+n[12],t[13]=n[1]*r+n[5]*i+n[9]*s+n[13],t[14]=n[2]*r+n[6]*i+n[10]*s+n[14],t[15]=n[3]*r+n[7]*i+n[11]*s+n[15];else{const e=n[0],o=n[1],a=n[2],u=n[3],c=n[4],h=n[5],l=n[6],f=n[7],p=n[8],d=n[9],m=n[10],M=n[11];t[0]=e,t[1]=o,t[2]=a,t[3]=u,t[4]=c,t[5]=h,t[6]=l,t[7]=f,t[8]=p,t[9]=d,t[10]=m,t[11]=M,t[12]=e*r+c*i+p*s+n[12],t[13]=o*r+h*i+d*s+n[13],t[14]=a*r+l*i+m*s+n[14],t[15]=u*r+f*i+M*s+n[15]}return t}function p(t,n,e){const r=e[0],i=e[1],s=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=n[7]*i,t[8]=n[8]*s,t[9]=n[9]*s,t[10]=n[10]*s,t[11]=n[11]*s,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function d(t,n,e,r){let o=r[0],a=r[1],u=r[2],c=Math.sqrt(o*o+a*a+u*u);if(c<=(0,i.FD)())return void s(t,n);c=1/c,o*=c,a*=c,u*=c;const h=Math.sin(e),l=Math.cos(e),f=1-l,p=n[0],d=n[1],m=n[2],M=n[3],y=n[4],g=n[5],b=n[6],v=n[7],_=n[8],I=n[9],x=n[10],w=n[11],A=o*o*f+l,P=a*o*f+u*h,j=u*o*f-a*h,R=o*a*f-u*h,C=a*a*f+l,S=u*a*f+o*h,O=o*u*f+a*h,q=a*u*f-o*h,N=u*u*f+l;t[0]=p*A+y*P+_*j,t[1]=d*A+g*P+I*j,t[2]=m*A+b*P+x*j,t[3]=M*A+v*P+w*j,t[4]=p*R+y*C+_*S,t[5]=d*R+g*C+I*S,t[6]=m*R+b*C+x*S,t[7]=M*R+v*C+w*S,t[8]=p*O+y*q+_*N,t[9]=d*O+g*q+I*N,t[10]=m*O+b*q+x*N,t[11]=M*O+v*q+w*N,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function m(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[4],o=n[5],a=n[6],u=n[7],c=n[8],h=n[9],l=n[10],f=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=s*i+c*r,t[5]=o*i+h*r,t[6]=a*i+l*r,t[7]=u*i+f*r,t[8]=c*i-s*r,t[9]=h*i-o*r,t[10]=l*i-a*r,t[11]=f*i-u*r,t}function M(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function y(t,n,e){if(0===n)return a(t);let r=e[0],s=e[1],o=e[2],u=Math.sqrt(r*r+s*s+o*o);if(u<=(0,i.FD)())return null;u=1/u,r*=u,s*=u,o*=u;const c=Math.sin(n),h=Math.cos(n),l=1-h;return t[0]=r*r*l+h,t[1]=s*r*l+o*c,t[2]=o*r*l-s*c,t[3]=0,t[4]=r*s*l-o*c,t[5]=s*s*l+h,t[6]=o*s*l+r*c,t[7]=0,t[8]=r*o*l+s*c,t[9]=s*o*l-r*c,t[10]=o*o*l+h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function v(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=r+r,u=i+i,c=s+s,h=r*a,l=r*u,f=r*c,p=i*u,d=i*c,m=s*c,M=o*a,y=o*u,g=o*c;return t[0]=1-(p+m),t[1]=l+g,t[2]=f-y,t[3]=0,t[4]=l-g,t[5]=1-(h+m),t[6]=d+M,t[7]=0,t[8]=f+y,t[9]=d-M,t[10]=1-(h+p),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}const _=(0,r.vt)();function I(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function x(t,n){const e=n[0],r=n[1],i=n[2],s=n[4],o=n[5],a=n[6],u=n[8],c=n[9],h=n[10];return t[0]=Math.sqrt(e*e+r*r+i*i),t[1]=Math.sqrt(s*s+o*o+a*a),t[2]=Math.sqrt(u*u+c*c+h*h),t}function w(t,n){const e=n[0]+n[5]+n[10];let r=0;return e>0?(r=2*Math.sqrt(e+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t}function A(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=n[3],u=i+i,c=s+s,h=o+o,l=i*u,f=i*c,p=i*h,d=s*c,m=s*h,M=o*h,y=a*u,g=a*c,b=a*h,v=r[0],_=r[1],I=r[2];return t[0]=(1-(d+M))*v,t[1]=(f+b)*v,t[2]=(p-g)*v,t[3]=0,t[4]=(f-b)*_,t[5]=(1-(l+M))*_,t[6]=(m+y)*_,t[7]=0,t[8]=(p+g)*I,t[9]=(m-y)*I,t[10]=(1-(l+d))*I,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function P(t,n,e,r,i){const s=n[0],o=n[1],a=n[2],u=n[3],c=s+s,h=o+o,l=a+a,f=s*c,p=s*h,d=s*l,m=o*h,M=o*l,y=a*l,g=u*c,b=u*h,v=u*l,_=r[0],I=r[1],x=r[2],w=i[0],A=i[1],P=i[2],j=(1-(m+y))*_,R=(p+v)*_,C=(d-b)*_,S=(p-v)*I,O=(1-(f+y))*I,q=(M+g)*I,N=(d+b)*x,Z=(M-g)*x,T=(1-(f+m))*x;return t[0]=j,t[1]=R,t[2]=C,t[3]=0,t[4]=S,t[5]=O,t[6]=q,t[7]=0,t[8]=N,t[9]=Z,t[10]=T,t[11]=0,t[12]=e[0]+w-(j*w+S*A+N*P),t[13]=e[1]+A-(R*w+O*A+Z*P),t[14]=e[2]+P-(C*w+q*A+T*P),t[15]=1,t}function j(t,n,e,r,i,s,o){const a=1/(e-n),u=1/(i-r),c=1/(s-o);return t[0]=2*s*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*u,t[6]=0,t[7]=0,t[8]=(e+n)*a,t[9]=(i+r)*u,t[10]=(o+s)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*s*2*c,t[15]=0,t}function R(t,n,e,r){const s=n[0],o=n[1],u=n[2];let c=s-e[0],h=o-e[1],l=u-e[2];const f=(0,i.FD)();if(Math.abs(c)<f&&Math.abs(h)<f&&Math.abs(l)<f)return void a(t);let p=1/Math.sqrt(c*c+h*h+l*l);c*=p,h*=p,l*=p;const d=r[0],m=r[1],M=r[2];let y=m*l-M*h,g=M*c-d*l,b=d*h-m*c;p=Math.sqrt(y*y+g*g+b*b),p?(p=1/p,y*=p,g*=p,b*=p):(y=0,g=0,b=0);let v=h*b-l*g,_=l*y-c*b,I=c*g-h*y;p=Math.sqrt(v*v+_*_+I*I),p?(p=1/p,v*=p,_*=p,I*=p):(v=0,_=0,I=0),t[0]=y,t[1]=v,t[2]=c,t[3]=0,t[4]=g,t[5]=_,t[6]=h,t[7]=0,t[8]=b,t[9]=I,t[10]=l,t[11]=0,t[12]=-(y*s+g*o+b*u),t[13]=-(v*s+_*o+I*u),t[14]=-(c*s+h*o+l*u),t[15]=1}function C(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function S(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function O(t){const n=(0,i.FD)(),e=t[0],r=t[1],s=t[2],o=t[4],a=t[5],u=t[6],c=t[8],h=t[9],l=t[10];return Math.abs(1-(e*e+o*o+c*c))<=n&&Math.abs(1-(r*r+a*a+h*h))<=n&&Math.abs(1-(s*s+u*u+l*l))<=n}function q(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const N=l,Z=C;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t},adjoint:function(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],u=n[6],c=n[7],h=n[8],l=n[9],f=n[10],p=n[11],d=n[12],m=n[13],M=n[14],y=n[15];return t[0]=a*(f*y-p*M)-l*(u*y-c*M)+m*(u*p-c*f),t[1]=-(r*(f*y-p*M)-l*(i*y-s*M)+m*(i*p-s*f)),t[2]=r*(u*y-c*M)-a*(i*y-s*M)+m*(i*c-s*u),t[3]=-(r*(u*p-c*f)-a*(i*p-s*f)+l*(i*c-s*u)),t[4]=-(o*(f*y-p*M)-h*(u*y-c*M)+d*(u*p-c*f)),t[5]=e*(f*y-p*M)-h*(i*y-s*M)+d*(i*p-s*f),t[6]=-(e*(u*y-c*M)-o*(i*y-s*M)+d*(i*c-s*u)),t[7]=e*(u*p-c*f)-o*(i*p-s*f)+h*(i*c-s*u),t[8]=o*(l*y-p*m)-h*(a*y-c*m)+d*(a*p-c*l),t[9]=-(e*(l*y-p*m)-h*(r*y-s*m)+d*(r*p-s*l)),t[10]=e*(a*y-c*m)-o*(r*y-s*m)+d*(r*c-s*a),t[11]=-(e*(a*p-c*l)-o*(r*p-s*l)+h*(r*c-s*a)),t[12]=-(o*(l*M-f*m)-h*(a*M-u*m)+d*(a*f-u*l)),t[13]=e*(l*M-f*m)-h*(r*M-i*m)+d*(r*f-i*l),t[14]=-(e*(a*M-u*m)-o*(r*M-i*m)+d*(r*u-i*a)),t[15]=e*(a*f-u*l)-o*(r*f-i*l)+h*(r*u-i*a),t},copy:s,determinant:function(t){const n=t[0],e=t[1],r=t[2],i=t[3],s=t[4],o=t[5],a=t[6],u=t[7],c=t[8],h=t[9],l=t[10],f=t[11],p=t[12],d=t[13],m=t[14],M=t[15];return(n*o-e*s)*(l*M-f*m)-(n*a-r*s)*(h*M-f*d)+(n*u-i*s)*(h*m-l*d)+(e*a-r*o)*(c*M-f*p)-(e*u-i*o)*(c*m-l*p)+(r*u-i*a)*(c*d-h*p)},equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],o=t[3],a=t[4],u=t[5],c=t[6],h=t[7],l=t[8],f=t[9],p=t[10],d=t[11],m=t[12],M=t[13],y=t[14],g=t[15],b=n[0],v=n[1],_=n[2],I=n[3],x=n[4],w=n[5],A=n[6],P=n[7],j=n[8],R=n[9],C=n[10],S=n[11],O=n[12],q=n[13],N=n[14],Z=n[15],T=(0,i.FD)();return Math.abs(e-b)<=T*Math.max(1,Math.abs(e),Math.abs(b))&&Math.abs(r-v)<=T*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(s-_)<=T*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(o-I)<=T*Math.max(1,Math.abs(o),Math.abs(I))&&Math.abs(a-x)<=T*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(u-w)<=T*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(c-A)<=T*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(h-P)<=T*Math.max(1,Math.abs(h),Math.abs(P))&&Math.abs(l-j)<=T*Math.max(1,Math.abs(l),Math.abs(j))&&Math.abs(f-R)<=T*Math.max(1,Math.abs(f),Math.abs(R))&&Math.abs(p-C)<=T*Math.max(1,Math.abs(p),Math.abs(C))&&Math.abs(d-S)<=T*Math.max(1,Math.abs(d),Math.abs(S))&&Math.abs(m-O)<=T*Math.max(1,Math.abs(m),Math.abs(O))&&Math.abs(M-q)<=T*Math.max(1,Math.abs(M),Math.abs(q))&&Math.abs(y-N)<=T*Math.max(1,Math.abs(y),Math.abs(N))&&Math.abs(g-Z)<=T*Math.max(1,Math.abs(g),Math.abs(Z))},exactEquals:S,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+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=e+e,a=r+r,u=i+i,c=e*o,h=r*o,l=r*a,f=i*o,p=i*a,d=i*u,m=s*o,M=s*a,y=s*u;return t[0]=1-l-d,t[1]=h+y,t[2]=f-M,t[3]=0,t[4]=h-y,t[5]=1-c-d,t[6]=p+m,t[7]=0,t[8]=f+M,t[9]=p-m,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const e=_,r=-n[0],i=-n[1],s=-n[2],o=n[3],a=n[4],u=n[5],c=n[6],h=n[7],l=r*r+i*i+s*s+o*o;return l>0?(e[0]=2*(a*o+h*r+u*s-c*i)/l,e[1]=2*(u*o+h*i+c*r-a*s)/l,e[2]=2*(c*o+h*s+a*i-u*r)/l):(e[0]=2*(a*o+h*r+u*s-c*i),e[1]=2*(u*o+h*i+c*r-a*s),e[2]=2*(c*o+h*s+a*i-u*r)),v(t,n,e),t},fromRotation:y,fromRotationTranslation:v,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:P,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:M,fromXRotation:g,fromYRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:b,frustum:j,getRotation:w,getScale:x,getTranslation:I,hasIdentityRotation:q,identity:a,invert:h,invertOrIdentity:c,isOrthoNormal:O,lookAt:R,mul:N,multiply:l,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t},ortho:function(t,n,e,r,i,s,o){const a=1/(n-e),u=1/(r-i),c=1/(s-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+e)*a,t[13]=(i+r)*u,t[14]=(o+s)*c,t[15]=1,t},perspective:function(t,n,e,r,i){const s=1/Math.tan(n/2);let o;return t[0]=s/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){const i=Math.tan(n.upDegrees*Math.PI/180),s=Math.tan(n.downDegrees*Math.PI/180),o=Math.tan(n.leftDegrees*Math.PI/180),a=Math.tan(n.rightDegrees*Math.PI/180),u=2/(o+a),c=2/(i+s);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-a)*u*.5,t[9]=(i-s)*c*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t},rotate:d,rotateX:m,rotateY:function(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[0],o=n[1],a=n[2],u=n[3],c=n[8],h=n[9],l=n[10],f=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*i-c*r,t[1]=o*i-h*r,t[2]=a*i-l*r,t[3]=u*i-f*r,t[8]=s*r+c*i,t[9]=o*r+h*i,t[10]=a*r+l*i,t[11]=u*r+f*i,t},rotateZ:function(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[0],o=n[1],a=n[2],u=n[3],c=n[4],h=n[5],l=n[6],f=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*i+c*r,t[1]=o*i+h*r,t[2]=a*i+l*r,t[3]=u*i+f*r,t[4]=c*i-s*r,t[5]=h*i-o*r,t[6]=l*i-a*r,t[7]=f*i-u*r,t},scale:p,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:Z,subtract:C,targetTo:function(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=r[0],u=r[1],c=r[2];let h=i-e[0],l=s-e[1],f=o-e[2],p=h*h+l*l+f*f;p>0&&(p=1/Math.sqrt(p),h*=p,l*=p,f*=p);let d=u*f-c*l,m=c*h-a*f,M=a*l-u*h;return p=d*d+m*m+M*M,p>0&&(p=1/Math.sqrt(p),d*=p,m*=p,M*=p),t[0]=d,t[1]=m,t[2]=M,t[3]=0,t[4]=l*M-f*m,t[5]=f*d-h*M,t[6]=h*m-l*d,t[7]=0,t[8]=h,t[9]=l,t[10]=f,t[11]=0,t[12]=i,t[13]=s,t[14]=o,t[15]=1,t},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>A,Bw:()=>s,C:()=>o,Cc:()=>P,DI:()=>I,Io:()=>g,Ln:()=>y,Om:()=>w,Qr:()=>l,Re:()=>c,S8:()=>x,T9:()=>m,WQ:()=>u,Z0:()=>j,_S:()=>p,aI:()=>Z,ei:()=>R,fw:()=>S,gL:()=>C,hG:()=>b,hZ:()=>a,hs:()=>M,jk:()=>d,lw:()=>h,m3:()=>v,oW:()=>T,t2:()=>N,tn:()=>f,ze:()=>_});var r=e(51850),i=e(34304);function s(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function a(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function c(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function h(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function l(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function p(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function d(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function m(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function M(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function y(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return Math.sqrt(e*e+r*r+i*i)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}function v(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function _(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function I(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const e=n[0],r=n[1],i=n[2];let s=e*e+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function w(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function A(t,n,e){const r=n[0],i=n[1],s=n[2],o=e[0],a=e[1],u=e[2];return t[0]=i*u-s*a,t[1]=s*o-r*u,t[2]=r*a-i*o,t}function P(t,n,e,r){const i=n[0],s=n[1],o=n[2];return t[0]=i+r*(e[0]-i),t[1]=s+r*(e[1]-s),t[2]=o+r*(e[2]-o),t}function j(t,n,e){const r=n[0],i=n[1],s=n[2];return t[0]=e[0]*r+e[4]*i+e[8]*s+e[12],t[1]=e[1]*r+e[5]*i+e[9]*s+e[13],t[2]=e[2]*r+e[6]*i+e[10]*s+e[14],t}function R(t,n,e){const r=n[0],i=n[1],s=n[2];return t[0]=r*e[0]+i*e[3]+s*e[6],t[1]=r*e[1]+i*e[4]+s*e[7],t[2]=r*e[2]+i*e[5]+s*e[8],t}function C(t,n,e){return S(t,n,e[0],e[1],e[2],e[3])}function S(t,n,e,r,i,s){const o=n[0],a=n[1],u=n[2],c=r*u-i*a,h=i*o-e*u,l=e*a-r*o,f=r*l-i*h,p=i*c-e*l,d=e*h-r*c,m=2*s;return t[0]=o+c*m+2*f,t[1]=a+h*m+2*p,t[2]=u+l*m+2*d,t}const O=(0,r.vt)(),q=(0,r.vt)();function N(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function Z(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],o=n[0],a=n[1],u=n[2],c=(0,i.FD)();return Math.abs(e-o)<=c*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-u)<=c*Math.max(1,Math.abs(s),Math.abs(u))}function T(t,n,e){const r=e[0]-n[0],i=e[1]-n[1],s=e[2]-n[2];let o=r*r+i*i+s*s;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=i*o,t[2]=s*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const D=c,U=h,z=l,F=g,$=b,E=s,V=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:function(t,n){x(O,t),x(q,n);const e=w(O,q);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,i,s){const o=1-s,a=o*o,u=s*s,c=a*o,h=3*s*a,l=3*u*o,f=u*s;return t[0]=n[0]*c+e[0]*h+r[0]*l+i[0]*f,t[1]=n[1]*c+e[1]*h+r[1]*l+i[1]*f,t[2]=n[2]*c+e[2]*h+r[2]*l+i[2]*f,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:o,cross:A,crossAndNormalize:function(t,n,e){const r=n[0],i=n[1],s=n[2],o=e[0],a=e[1],u=e[2],c=i*u-s*a,h=s*o-r*u,l=r*a-i*o,f=Math.sqrt(c*c+h*h+l*l);return t[0]=c/f,t[1]=h/f,t[2]=l/f,t},direction:T,dist:F,distance:g,div:z,divide:l,dot:w,equals:Z,exactEquals:N,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,i,s){const o=s*s,a=o*(2*s-3)+1,u=o*(s-2)+s,c=o*(s-1),h=o*(3-2*s);return t[0]=n[0]*a+e[0]*u+r[0]*c+i[0]*h,t[1]=n[1]*a+e[1]*u+r[1]*c+i[1]*h,t[2]=n[2]*a+e[2]*u+r[2]*c+i[2]*h,t},inverse:I,len:E,length:s,lerp:P,max:m,min:d,mul:U,multiply:h,negate:_,normalize:x,random:function(t,n=1){const e=i.Ov,r=2*e()*Math.PI,s=2*e()-1,o=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=s*n,t},rotateX:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateY:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateZ:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:M,scaleAndAdd:y,scaleTo:function(t,n){return M(t,t,n/E(t))},set:a,sign:p,sqrDist:$,sqrLen:V,squaredDistance:b,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:D,subtract:c,transformMat3:R,transformMat4:j,transformMat4Z:function(t,n){return n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]},transformQuat:C,transformQuatValues:S},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,E,"jb",0,D,"lo",0,$,"uE",0,V])},78955(t,n,e){e.d(n,{Bw:()=>M,C:()=>i,Cc:()=>v,LI:()=>f,Om:()=>b,S8:()=>g,T9:()=>l,WQ:()=>o,Z0:()=>_,aI:()=>x,hG:()=>m,hZ:()=>s,hs:()=>p,jk:()=>h,m3:()=>y,t2:()=>I});var r=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function s(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t}function o(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function a(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function u(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function h(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t}function l(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t}function f(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function d(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2],s=n[3]-t[3];return Math.sqrt(e*e+r*r+i*i+s*s)}function m(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2],s=n[3]-t[3];return e*e+r*r+i*i+s*s}function M(t){const n=t[0],e=t[1],r=t[2],i=t[3];return Math.sqrt(n*n+e*e+r*r+i*i)}function y(t){const n=t[0],e=t[1],r=t[2],i=t[3];return n*n+e*e+r*r+i*i}function g(t,n){const e=n[0],r=n[1],i=n[2],s=n[3];let o=e*e+r*r+i*i+s*s;return o>0&&(o=1/Math.sqrt(o),t[0]=e*o,t[1]=r*o,t[2]=i*o,t[3]=s*o),t}function b(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function v(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=n[3];return t[0]=i+r*(e[0]-i),t[1]=s+r*(e[1]-s),t[2]=o+r*(e[2]-o),t[3]=a+r*(e[3]-a),t}function _(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3];return t[0]=e[0]*r+e[4]*i+e[8]*s+e[12]*o,t[1]=e[1]*r+e[5]*i+e[9]*s+e[13]*o,t[2]=e[2]*r+e[6]*i+e[10]*s+e[14]*o,t[3]=e[3]*r+e[7]*i+e[11]*s+e[15]*o,t}function I(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function x(t,n){const e=t[0],i=t[1],s=t[2],o=t[3],a=n[0],u=n[1],c=n[2],h=n[3],l=(0,r.FD)();return Math.abs(e-a)<=l*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(i-u)<=l*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(s-c)<=l*Math.max(1,Math.abs(s),Math.abs(c))&&Math.abs(o-h)<=l*Math.max(1,Math.abs(o),Math.abs(h))}const w=a,A=u,P=c,j=d,R=m,C=M,S=y;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:i,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:j,distance:d,div:P,divide:c,dot:b,equals:x,exactEquals:I,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:C,length:M,lerp:v,max:l,min:h,mul:A,multiply:u,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:g,random:function(t,n=1){const e=r.Ov;let i,s,o,a,u,c;do{i=2*e()-1,s=2*e()-1,u=i*i+s*s}while(u>=1);do{o=2*e()-1,a=2*e()-1,c=o*o+a*a}while(c>=1);const h=Math.sqrt((1-u)/c);return t[0]=n*i,t[1]=n*s,t[2]=n*o*h,t[3]=n*a*h,t},round:f,scale:p,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:s,sqrDist:R,sqrLen:S,squaredDistance:m,squaredLength:y,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:w,subtract:a,transformMat4:_,transformQuat:function(t,n,e){const r=n[0],i=n[1],s=n[2],o=e[0],a=e[1],u=e[2],c=e[3],h=c*r+a*s-u*i,l=c*i+u*r-o*s,f=c*s+o*i-a*r,p=-o*r-a*i-u*s;return t[0]=h*c+p*-o+l*-u-f*-a,t[1]=l*c+p*-a+f*-o-h*-u,t[2]=f*c+p*-u+h*-a-l*-o,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},56512(t,n,e){function r(t){let n,e,r=[],i=!1;return function(...s){return i&&n===this&&function(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(t[e]!==n[e])return!1;return!0}(s,r)||(e=t.apply(this,s),n=this,r=s,i=!0),e}}e.d(n,{B:()=>r})},76553(t,n,e){function r(t){return t&&"getAtOrigin"in t&&"originOf"in t}e.d(n,{H:()=>r})},13069(t,n,e){e.d(n,{AG:()=>a,lk:()=>i,vD:()=>o,yS:()=>s});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const n=n=>t[n].toString(16).padStart(4,"0");return n(0)+n(1)+"-"+n(2)+"-"+n(3)+"-"+n(4)+"-"+n(5)+n(6)+n(7)}function s(){return`{${i().toUpperCase()}}`}function o(){return`{${i()}}`}function a(t){const n=t.toUpperCase();return t.startsWith("{")?n:`{${n}}`}},48526(t,n,e){e.d(n,{A:()=>M});var r,i=e(32198),s=e(4576),o=e(4718),a=e(91429),u=e(5443),c=e(91075),h=e(86738),l=e(16930),f=e(90634),p=e(47610),d=e(56993),m=e(43937);let M=r=class extends c.A{constructor(t){super(function(t){if(!t)return;let{points:n,hasM:e,hasZ:r,spatialReference:i}=t;switch(n??=[],n?.at(0)?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return i??=l.A.WGS84,{...t,hasM:e,hasZ:r,points:n,spatialReference:i}}(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,n){n.points=(0,o.o8)(this.points)}clone(){const{points:t,spatialReference:n,hasM:e,hasZ:i}=this;return new r({points:(0,o.o8)(t),spatialReference:n.clone(),hasM:e,hasZ:i})}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;return null!=n==(null!=e)&&!(null!=n&&null!=e&&!n.equals(e))&&(0,s.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,d.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 n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(e.z=n[2],r=3),this.hasM&&(e.m=n[r]),new h.A(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new h.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,d.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],M.prototype,"points",void 0),(0,i.Cg)([(0,m.K)("points")],M.prototype,"writePoints",null),M=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],M),M.prototype.toJSON.isDefaultToJSON=!0},82799(t,n,e){e.d(n,{A:()=>d});var r,i=e(32198),s=e(4718),o=e(91429),a=e(5443),u=e(91075),c=e(86738),h=e(16930),l=e(90634),f=e(56993),p=e(43937);let d=r=class extends u.A{constructor(t){super(function(t){if(!t)return;let{paths:n,hasM:e,hasZ:r,spatialReference:i}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return i??=h.A.WGS84,{...t,hasM:e,hasZ:r,paths:n,spatialReference:i}}(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,n){n.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,l.Z3)(this),{spatialReference:n}=this;return t?new a.A({...t,spatialReference:n}):null}writePaths(t,n){n.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let n=0,e=t.length;n<e;n++)r[n]=t[n].toArray();n[e]=r}else n[e]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],r=this.hasZ,i=this.hasM;return r&&!i?new c.A(e[0],e[1],e[2],void 0,this.spatialReference):i&&!r?new c.A(e[0],e[1],void 0,e[2],this.spatialReference):r&&i?new c.A(e[0],e[1],e[2],e[3],this.spatialReference):new c.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,r=n.map(t=>new c.A(t,e));return this.notifyChange("paths"),r}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new c.A(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const r=this.paths[t];if(e&&(n<0||n>r.length))return!1;if(!e&&(n<0||n>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,i.Cg)([(0,p.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,i.Cg)([(0,p.K)("paths")],d.prototype,"writePaths",null),d=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},4197(t,n,e){e.d(n,{Vj:()=>h,cj:()=>c,jh:()=>s,l5:()=>a,yH:()=>u});var r=e(34275),i=e(9093);function s(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function u(t,n){if(0===n.length)return o(t);if(0===t.length)return o(n);const e=s(t.length+n.length);for(let n=0;n<t.length;++n)e[n]=t[n];for(let r=0;r<n.length;++r)e[t.length+r]=n[r];return e}function c(t){return[...t]}function h(t){const n=(0,i.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},70328(t,n,e){e.d(n,{BI:()=>j,C:()=>o,DC:()=>f,Ej:()=>b,Ie:()=>A,Jt:()=>P,Lu:()=>_,Ne:()=>I,RF:()=>l,TF:()=>y,VL:()=>d,aI:()=>C,fA:()=>a,gE:()=>c,gX:()=>g,hZ:()=>w,iT:()=>p,is:()=>R,pg:()=>v,uJ:()=>M,vI:()=>x,vY:()=>u,vt:()=>s,w1:()=>h,yr:()=>m}),e(35522);var r=e(5443),i=(e(19419),e(4197));function s(t=O){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,n){for(let e=0;e<6;e++)t[e]=n[e];return t}function a(t,n,e,r,i,o,a=s()){return a[0]=t,a[1]=n,a[2]=e,a[3]=r,a[4]=i,a[5]=o,a}function u(t,n=s()){return function(t,n,e,r=s()){return w(r,S),function(t,n,e=0,r=n.length/3){let i=t[0],s=t[1],o=t[2],a=t[3],u=t[4],c=t[5];for(let t=0;t<r;t++)i=Math.min(i,n[e+3*t]),s=Math.min(s,n[e+3*t+1]),o=Math.min(o,n[e+3*t+2]),a=Math.max(a,n[e+3*t]),u=Math.max(u,n[e+3*t+1]),c=Math.max(c,n[e+3*t+2]);t[0]=i,t[1]=s,t[2]=o,t[3]=a,t[4]=u,t[5]=c}(r,t,n,e),r}(t,0,t.length/3,n)}function c(t,n=(0,i.jh)(24)){const[e,r,s,o,a,u]=t;return n[0]=e,n[1]=r,n[2]=s,n[3]=e,n[4]=r,n[5]=u,n[6]=e,n[7]=a,n[8]=s,n[9]=e,n[10]=a,n[11]=u,n[12]=o,n[13]=r,n[14]=s,n[15]=o,n[16]=r,n[17]=u,n[18]=o,n[19]=a,n[20]=s,n[21]=o,n[22]=a,n[23]=u,n}function h(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function l(t,n,e=t){e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e[4]=Math.max(t[4],n[4]),e[5]=Math.max(t[5],n[5])}function f(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function p(t,[n,e,r]){!function(t,n,e,r){t[0]=Math.min(t[0],n),t[1]=Math.min(t[1],e),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],n),t[4]=Math.max(t[4],e),t[5]=Math.max(t[5],r)}(t,n,e,r)}function d(t){return t[0]>=t[3]?0:t[3]-t[0]}function m(t){return t[1]>=t[4]?0:t[4]-t[1]}function M(t){return t[2]>=t[5]?0:t[5]-t[2]}function y(t){const n=d(t),e=M(t),r=m(t);return n*n+e*e+r*r}function g(t,n=[0,0,0]){return n[0]=t[0]+d(t)/2,n[1]=t[1]+m(t)/2,n[2]=t[2]+M(t)/2,n}function b(t,n=[0,0,0]){return n[0]=d(t),n[1]=m(t),n[2]=M(t),n}function v(t,n){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function _(t,n){return n[0]=t[3],n[1]=t[4],n[2]=t[5],n}function I(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function x(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function w(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function A(t){return t?w(t,S):s(S)}function P(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function j(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function R(t){return 6===t.length}function C(t,n,e){if(null==t||null==n)return t===n;if(!R(t)||!R(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const S=[1/0,1/0,1/0,-1/0,-1/0,-1/0],O=[0,0,0,0,0,0];s(),e.d(n,["qv",0,S,"v_",0,O])},60408(t,n,e){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function u(t){return"object"==typeof t&&"vertexAttributes"in t}function c(t){return t?s(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function h(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function l(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}e.d(n,{$B:()=>c,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>i,W0:()=>l,ZC:()=>r,fT:()=>s,uW:()=>u})},71351(t,n,e){e.d(n,{C:()=>h,Cr:()=>l,LV:()=>c,fA:()=>f,vt:()=>a}),e(4576);var r=e(4341),i=(e(77690),e(29242)),s=e(35522),o=e(51850);function a(t){return t?u((0,o.o8)(t.origin),(0,o.o8)(t.direction)):u((0,o.vt)(),(0,o.vt)())}function u(t,n){return{origin:t,direction:n}}function c(t,n){const e=p.get();return e.origin=t,e.direction=n,e}function h(t,n=a()){return f(t.origin,t.direction,n)}function l(t,n,e=a()){return(0,s.C)(e.origin,t),(0,s.Re)(e.direction,n,t),e}function f(t,n,e=a()){return(0,s.C)(e.origin,t),(0,s.C)(e.direction,n),e}e(32114);const p=new r.I(()=>a());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,i.vt)()},32114(t,n,e){e.d(n,{Rc:()=>p,rq:()=>l,Km:()=>f}),e(44208);var r=e(26390),i=e(29242),s=e(9093),o=e(82534),a=e(48163),u=e(51850),c=e(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(a.vt)}static createVec3f64(){return new h(u.vt)}static createVec4f64(){return new h(c.vt)}static createMat3f64(){return new h(i.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(o.vt)}get test(){}}h.createVec2f64();const l=h.createVec3f64(),f=h.createVec4f64(),p=(h.createMat3f64(),h.createMat4f64());h.createQuatf64()},85648(t,n,e){e.d(n,{n:()=>i});var r=e(84952);function i(t){return s[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const n=(0,r.Zo)(t);return u[n]||o}(t.url)}(t)]||a}const s={},o="text/plain",a=s[o],u={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in u)s[u[t]]=t},24212(t,n,e){e.d(n,{$7:()=>u,B:()=>a,M7:()=>l,XF:()=>h,tW:()=>c,w7:()=>o});var r=e(56512),i=e(86211),s=e(16271);function o(t,n){return function(t,n){return n?.mode?n.mode:function(t){return t?f:p}(t).mode}(null==t||(t.hasZ??!1),n)}function a(t,n,e){return e&&e.mode!==n?`${t} only support ${n} elevation mode`:null}function u(t,n,e){return e?.mode===n?`${t} do not support ${n} elevation mode`:null}function c(t,n){return null!=n?.featureExpressionInfo&&"0"!==n.featureExpressionInfo.expression?`${t} do not support featureExpressionInfo`:null}function h(t,n){n&&t.warn(".elevationInfo=",n)}function l(t){return(t?.offset??0)*(0,s.Ao)(t?.unit)}(0,r.B)((t,n,e)=>{if(!t)return 0;if("decimal-degrees"===n)return 0;const r="unknown"!==n&&n?n:"meters",s=(0,i.mq)(e);return s?(0,i.oU)(t,r,s):0});const f={mode:"absolute-height",offset:0},p={mode:"on-the-ground",offset:null}},49718(t,n,e){e(51850),e(6867).w_},6867(t,n,e){e.d(n,{w_:()=>l});var r=e(58083),i=e(9093),s=e(35522),o=e(51850),a=e(78955),u=e(91829),c=e(71351);class h{constructor(){this.intersector=4}get distance(){return this._distance}get renderDistance(){return this._renderDistance}_init(){this._distance=this._renderDistance=this.target=this.drapedLayerOrder=this.renderPriority=null,this.intersector=4}_setBase(t,n,e,r=null,i=null,s=null){this.intersector=t,this._distance=e,this._renderDistance=r,this.target=n,this.drapedLayerOrder=i,this.renderPriority=s}}class l extends h{get ray(){return this._ray}get distanceInRenderSpace(){return null==this.distance?null:((0,s.hs)(p,this.ray.direction,this.distance),(0,s.Bw)(p))}withinDistance(t){return!!f(this)&&null!=this.distanceInRenderSpace&&this.distanceInRenderSpace<=t}getIntersectionPoint(t){return!!f(this)&&((0,s.hs)(p,this.ray.direction,this.distance),(0,s.WQ)(t,this.ray.origin,p),!0)}getTransformedNormal(t){return(0,s.C)(d,this.normal),d[3]=0,(0,a.Z0)(d,d,this.transformation),(0,s.C)(t,d),(0,s.S8)(t,t)}constructor(t){super(),this.normal=(0,o.vt)(),this.transformation=(0,i.vt)(),this._ray=(0,c.vt)(),this.init(t)}init(t){super._init(),t&&(0,c.C)(t,this._ray)}set(t,n,e,a,u,c,h,l){this._setBase(t,n,e,a,h,l),(0,s.C)(this.normal,u??o.Cb),(0,r.C)(this.transformation,c??i.zK)}copy(t){this._setBase(t.intersector,t.target,t.distance,t.renderDistance,t.drapedLayerOrder,t.renderPriority),(0,c.C)(t.ray,this._ray),(0,s.C)(this.normal,t.normal),(0,r.C)(this.transformation,t.transformation)}}function f(t){return null!=t?.distance&&null!=t?.renderDistance}const p=(0,o.vt)(),d=(0,u.vt)()},78553(t,n,e){e.d(n,{D:()=>s,p:()=>i});var r=e(56507);function i(t){const n=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(n,100))}function s(t){const n=1-t/100;return Math.max(0,Math.min(n,1))}}}]);