@arcgis/core 6.0.0-next.30 → 6.0.0-next.32

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 (147) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/0694c7bcfe71692e2ccf.js +1 -0
  3. package/assets/esri/core/workers/chunks/{e2c6cd8dac01e129ccfe.js → 0e445ec3523de9f2dfa2.js} +1 -1
  4. package/assets/esri/core/workers/chunks/0f6c0d42100c21367e5c.js +1 -0
  5. package/assets/esri/core/workers/chunks/{242a77066ac5cdb5b7d7.js → 14d81280807a3d3c1b7e.js} +1 -1
  6. package/assets/esri/core/workers/chunks/16cda273927ab0a39544.js +1 -0
  7. package/assets/esri/core/workers/chunks/1a3f71c4d97c36050030.js +1 -0
  8. package/assets/esri/core/workers/chunks/{ba4520ddcb6a49988da6.js → 1a8d8274df292d65f82e.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{0b4481b57a611b15f65c.js → 1eaf8bfdd3765a90ccc2.js} +1 -1
  10. package/assets/esri/core/workers/chunks/29cc6b1705418b1be5d7.js +1 -0
  11. package/assets/esri/core/workers/chunks/2de077c7b971f2c215a6.js +1 -0
  12. package/assets/esri/core/workers/chunks/{fefdd10bdd5a4c8d8ed0.js → 360c944c610efa2051fc.js} +3 -3
  13. package/assets/esri/core/workers/chunks/{8ca2bb3c0551bb1898b6.js → 3fdcc383bbd9cf0d274c.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{cc97e4fd0dacad970a23.js → 46453ebfee17b5421d9d.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{64b360625c68cb863a08.js → 487c46d5245cfb35c4bb.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{ad21757d78e372fa2ed6.js → 4a979fce1c971b614a18.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{b5eff28cf482d920b9ea.js → 4d18b48d4a282a0f341c.js} +1 -1
  18. package/assets/esri/core/workers/chunks/4d8833f48348cbbcc947.js +1 -0
  19. package/assets/esri/core/workers/chunks/52a0aa2d19a495e48ab1.js +1 -0
  20. package/assets/esri/core/workers/chunks/{865cebc5c982c040ab6f.js → 55a9eaeb152a3abada67.js} +1 -1
  21. package/assets/esri/core/workers/chunks/572aec57593a08b8045b.js +1 -0
  22. package/assets/esri/core/workers/chunks/{9d40786c5ceface786ba.js → 601e1d020b8115497944.js} +1 -1
  23. package/assets/esri/core/workers/chunks/6029773458ab98600f67.js +1 -0
  24. package/assets/esri/core/workers/chunks/6b5c073dddd89d06ed80.js +1 -0
  25. package/assets/esri/core/workers/chunks/{7030a4d0714a35995a58.js → 6bb191b19ce43a27f205.js} +1 -1
  26. package/assets/esri/core/workers/chunks/6f6d1873753a9c6994aa.js +1 -0
  27. package/assets/esri/core/workers/chunks/7084dd6e10c6c1393e92.js +1 -0
  28. package/assets/esri/core/workers/chunks/7cc9d7a88b64e25fce14.js +1 -0
  29. package/assets/esri/core/workers/chunks/7e211d8a8ad6c6a7cf3e.js +1 -0
  30. package/assets/esri/core/workers/chunks/853563c66ecf58d53d36.js +1 -0
  31. package/assets/esri/core/workers/chunks/{c90388932a7825d9d933.js → 85de980c5b296ec69323.js} +1 -1
  32. package/assets/esri/core/workers/chunks/89dc49e784f7ba3b93ea.js +1 -0
  33. package/assets/esri/core/workers/chunks/8da2a10318f49d0dc73a.js +1 -0
  34. package/assets/esri/core/workers/chunks/8e6276ddd8d094c61f08.js +1 -0
  35. package/assets/esri/core/workers/chunks/{71f792a20077aa739f87.js → a607541959169741a943.js} +1 -1
  36. package/assets/esri/core/workers/chunks/b2d6b1ac9fbb50c7c8ab.js +1 -0
  37. package/assets/esri/core/workers/chunks/b657363113f4a37e634b.js +1 -0
  38. package/assets/esri/core/workers/chunks/b9cb92858a576eb6aa06.js +1 -0
  39. package/assets/esri/core/workers/chunks/{12b84262dedc6b393136.js → d9a240a3c6bf85124474.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{8f008eedb11685ee2048.js → e096c1d9d53af74d3207.js} +1 -1
  41. package/assets/esri/core/workers/chunks/e4e2edfdc85dd14e66d4.js +1 -0
  42. package/assets/esri/core/workers/chunks/f4d91d470ca5fea0bd26.js +1 -0
  43. package/assets/esri/core/workers/chunks/f717005e14a7e9141df7.js +1 -0
  44. package/assets/esri/core/workers/chunks/f75eec2cbc541eec9712.js +1 -0
  45. package/assets/esri/core/workers/chunks/fcc3902d6d9eda6f09f5.js +1 -0
  46. package/assets/esri/core/workers/chunks/{28a821de9dbf10324033.js → fd031150d3a7f896e6b3.js} +1 -1
  47. package/config.js +1 -1
  48. package/core/scheduling.js +1 -1
  49. package/geometry/Mesh.d.ts +2 -125
  50. package/geometry/Mesh.js +1 -1
  51. package/geometry/support/GlobalCoordinateSystem.js +2 -0
  52. package/geometry/support/LocalCoordinateSystem.js +2 -0
  53. package/geometry/support/boundedPlane.js +1 -1
  54. package/geometry/support/coordinateSystem.js +1 -1
  55. package/geometry/support/meshErrors.js +1 -1
  56. package/geometry/support/plane.js +1 -1
  57. package/geometry/support/polygonUtils.js +1 -1
  58. package/geometry/support/ray.js +1 -1
  59. package/geometry/support/sphere.js +1 -1
  60. package/interfaces.d.ts +0 -3
  61. package/kernel.js +1 -1
  62. package/layers/SceneLayer.js +1 -1
  63. package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
  64. package/layers/knowledgeGraph/KnowledgeGraphLayerDataManager.js +1 -1
  65. package/layers/mixins/ArcGISImageService.js +1 -1
  66. package/layers/raster/functions/rasterProjectionHelper.js +1 -1
  67. package/layers/support/featureLayerUtils.js +1 -1
  68. package/package.json +2 -2
  69. package/support/arcadeUtils.js +1 -1
  70. package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
  71. package/views/2d/interactive/editingTools/TransformTool.js +1 -1
  72. package/views/2d/interactive/editingTools/manipulations/ScaleManipulation.js +1 -1
  73. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  74. package/views/3d/analysis/LineOfSight/LineOfSightConfiguration.js +1 -1
  75. package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
  76. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  77. package/views/3d/analysis/LineOfSight/LineOfSightManipulators.js +1 -1
  78. package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
  79. package/views/3d/analysis/Slice/SliceController.js +1 -1
  80. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  81. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  82. package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
  83. package/views/3d/analysis/Viewshed/ViewshedScaleOrientManipulation.js +1 -1
  84. package/views/3d/environment/SunLighting.d.ts +10 -8
  85. package/views/3d/environment/VirtualLighting.d.ts +10 -8
  86. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentRotate.js +1 -1
  87. package/views/3d/interactive/editingTools/transform/extentTransform/ExtentScale.js +1 -1
  88. package/views/3d/interactive/editingTools/transform/extentTransform/extentUtils.js +1 -1
  89. package/views/3d/layers/graphics/Deconflictor.js +1 -1
  90. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  91. package/views/3d/layers/graphics/GraphicsDeconflictor.js +1 -1
  92. package/views/3d/state/ScreenSizePerspective.js +1 -1
  93. package/views/3d/support/RenderCoordsHelper.js +1 -1
  94. package/views/3d/support/ViewSlice.js +1 -1
  95. package/views/3d/support/hitTest.js +1 -1
  96. package/views/3d/support/renderInfoUtils/polygon.js +1 -1
  97. package/views/3d/terrain/PatchGeometryFactory.js +1 -1
  98. package/views/3d/terrain/PlanarPatch.js +1 -1
  99. package/views/3d/terrain/SphericalPatch.js +1 -1
  100. package/views/3d/webgl-engine/lib/Path.js +1 -1
  101. package/views/3d/webgl-engine/lib/PathBuilder.js +1 -1
  102. package/views/3d/webgl-engine/lib/PathExtruder.js +1 -1
  103. package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
  104. package/views/3d/webgl-engine/lib/SliceHelper.js +1 -1
  105. package/views/3d/webgl-engine/lib/intersectorUtils.js +1 -1
  106. package/views/3d/webgl-engine/lib/pathGeometryUtils.js +1 -1
  107. package/views/interactive/editGeometry/support/editPlaneUtils.js +1 -1
  108. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  109. package/views/interactive/snapping/featureSources/featureServiceSource/tileUtils.js +1 -1
  110. package/views/support/TextureCompressionWorker.js +1 -1
  111. package/views/webgl/Texture.js +1 -1
  112. package/webscene/Environment.d.ts +1 -1
  113. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  114. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  115. package/widgets/BatchAttributeForm/inputs/RelationshipElementInput.js +1 -1
  116. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  117. package/widgets/BatchAttributeForm.js +1 -1
  118. package/widgets/FeatureForm.js +1 -1
  119. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  120. package/assets/esri/core/workers/chunks/02335385b1476fe322eb.js +0 -1
  121. package/assets/esri/core/workers/chunks/07b726a46864501b90a0.js +0 -1
  122. package/assets/esri/core/workers/chunks/189321d88026bd7e6d3e.js +0 -1
  123. package/assets/esri/core/workers/chunks/18d47ab571b613fbe719.js +0 -1
  124. package/assets/esri/core/workers/chunks/1967b9c96045a5802d08.js +0 -1
  125. package/assets/esri/core/workers/chunks/199a7f97916679e0257c.js +0 -1
  126. package/assets/esri/core/workers/chunks/1d96fbad881a7d14a950.js +0 -1
  127. package/assets/esri/core/workers/chunks/1dc6f093028530a492e6.js +0 -1
  128. package/assets/esri/core/workers/chunks/2cd60fd062d954322c1f.js +0 -1
  129. package/assets/esri/core/workers/chunks/2d3e0e4442dbc6ec6def.js +0 -1
  130. package/assets/esri/core/workers/chunks/2f5d014d6a72108b0b3a.js +0 -1
  131. package/assets/esri/core/workers/chunks/3105336a05f38a95ebea.js +0 -1
  132. package/assets/esri/core/workers/chunks/4419732baf3459a80e6d.js +0 -1
  133. package/assets/esri/core/workers/chunks/4fb2fcc95f852bf8f86c.js +0 -1
  134. package/assets/esri/core/workers/chunks/59bc55880e6fd8ce20c0.js +0 -1
  135. package/assets/esri/core/workers/chunks/5f787809b74eed7b9a91.js +0 -1
  136. package/assets/esri/core/workers/chunks/6a7de221cea4426cb490.js +0 -1
  137. package/assets/esri/core/workers/chunks/7a0b4dc0cda190367a39.js +0 -1
  138. package/assets/esri/core/workers/chunks/7d3f7940815fa5dc244e.js +0 -1
  139. package/assets/esri/core/workers/chunks/999c23da883eb11cb29e.js +0 -1
  140. package/assets/esri/core/workers/chunks/9bc3afe7013ef4ae737b.js +0 -1
  141. package/assets/esri/core/workers/chunks/bab1d010970d98c25470.js +0 -1
  142. package/assets/esri/core/workers/chunks/c4f78a481f43cfae7b63.js +0 -1
  143. package/assets/esri/core/workers/chunks/dcf6024dc19428ff2b9d.js +0 -1
  144. package/assets/esri/core/workers/chunks/e04fb83ab2634bc15cc7.js +0 -1
  145. package/assets/esri/core/workers/chunks/ee0dc906cc7979080329.js +0 -1
  146. package/assets/esri/core/workers/chunks/f0d0ed155275c2e6d3da.js +0 -1
  147. package/chunks/boundedPlane.js +0 -2
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[491],{32198(t,e,n){function r(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function i(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>a,mS:()=>i}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function a(t){function e(e){t.error=t.hasError?new o(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function i(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,function(t){return e(t),i()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},4341(t,e,n){n.d(e,{I:()=>i});var r=n(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(){let t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);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,o));t++)this._items.push(this._allocator())}}const o=1024},29242(t,e,n){function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,e,n,r,i,o,a,s,u){return[t,e,n,r,i,o,a,s,u]}n.d(e,{fA:()=>i,vt:()=>r});const o=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:i},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,o])},9093(t,e,n){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]]}n.d(e,{o8:()=>i,vt:()=>r});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,e,n,r,i,o,a,s,u,h,c,l,f,d,m,M){return[t,e,n,r,i,o,a,s,u,h,c,l,f,d,m,M]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,o])},82534(t,e,n){function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>i,vt:()=>r});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,o])},77690(t,e,n){n.d(e,{B8:()=>s,Ge:()=>d,I0:()=>f,KC:()=>u,a4:()=>h,hZ:()=>o,hs:()=>l,lw:()=>c,mg:()=>a,z0:()=>i});var r=n(34304);function i(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 o(t,e,n,r,i,o,a,s,u,h){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=h,t}function a(t,e){if(t===e){let n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}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 s(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],h=e[7],c=e[8],l=c*a-s*h,f=-c*o+s*u,d=h*o-a*u,m=n*l+r*f+i*d;return m?(m=1/m,t[0]=l*m,t[1]=(-c*r+i*h)*m,t[2]=(s*r-i*a)*m,t[3]=f*m,t[4]=(c*n-i*u)*m,t[5]=(-s*n+i*o)*m,t[6]=d*m,t[7]=(-h*n+r*u)*m,t[8]=(a*n-r*o)*m,t):null}function u(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],h=e[7],c=e[8];return t[0]=a*c-s*h,t[1]=i*h-r*c,t[2]=r*s-i*a,t[3]=s*u-o*c,t[4]=n*c-i*u,t[5]=i*o-n*s,t[6]=o*h-a*u,t[7]=r*u-n*h,t[8]=n*a-r*o,t}function h(t){let e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],h=t[8];return e*(h*o-a*u)+n*(-h*i+a*s)+r*(u*i-o*s)}function c(t,e,n){let r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],h=e[6],c=e[7],l=e[8],f=n[0],d=n[1],m=n[2],M=n[3],b=n[4],g=n[5],_=n[6],p=n[7],v=n[8];return t[0]=f*r+d*a+m*h,t[1]=f*i+d*s+m*c,t[2]=f*o+d*u+m*l,t[3]=M*r+b*a+g*h,t[4]=M*i+b*s+g*c,t[5]=M*o+b*u+g*l,t[6]=_*r+p*a+v*h,t[7]=_*i+p*s+v*c,t[8]=_*o+p*u+v*l,t}function l(t,e,n){let r=n[0],i=n[1],o=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=o*e[6],t[7]=o*e[7],t[8]=o*e[8],t}function f(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,h=n*a,c=r*a,l=r*s,f=i*a,d=i*s,m=i*u,M=o*a,b=o*s,g=o*u;return t[0]=1-l-m,t[3]=c-g,t[6]=f+b,t[1]=c+g,t[4]=1-h-m,t[7]=d-M,t[2]=f-b,t[5]=d+M,t[8]=1-h-l,t}function d(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],h=e[7],c=e[8],l=e[9],f=e[10],d=e[11],m=e[12],M=e[13],b=e[14],g=e[15],_=n*s-r*a,p=n*u-i*a,v=n*h-o*a,x=r*u-i*s,y=r*h-o*s,S=i*h-o*u,w=c*M-l*m,A=c*b-f*m,j=c*g-d*m,O=l*b-f*M,T=l*g-d*M,q=f*g-d*b,C=_*q-p*T+v*O+x*j-y*A+S*w;return C?(C=1/C,t[0]=(s*q-u*T+h*O)*C,t[1]=(u*j-a*q-h*A)*C,t[2]=(a*T-s*j+h*w)*C,t[3]=(i*T-r*q-o*O)*C,t[4]=(n*q-i*j+o*A)*C,t[5]=(r*j-n*T-o*w)*C,t[6]=(M*S-b*y+g*x)*C,t[7]=(b*v-m*S-g*p)*C,t[8]=(m*y-M*v+g*_)*C,t):null}function m(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}const M=c,b=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:u,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:h,equals:function(t,e){let n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],h=t[6],c=t[7],l=t[8],f=e[0],d=e[1],m=e[2],M=e[3],b=e[4],g=e[5],_=e[6],p=e[7],v=e[8],x=(0,r.FD)();return Math.abs(n-f)<=x*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-d)<=x*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-m)<=x*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(a-M)<=x*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(s-b)<=x*Math.max(1,Math.abs(s),Math.abs(b))&&Math.abs(u-g)<=x*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(h-_)<=x*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(c-p)<=x*Math.max(1,Math.abs(c),Math.abs(p))&&Math.abs(l-v)<=x*Math.max(1,Math.abs(l),Math.abs(v))},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:i,fromQuat:f,fromRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,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:s,isOrthoNormal:function(t){let e=(0,r.FD)(),n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],h=t[6],c=t[7],l=t[8];return Math.abs(1-(n*n+a*a+h*h))<=e&&Math.abs(1-(i*i+s*s+c*c))<=e&&Math.abs(1-(o*o+u*u+l*l))<=e},mul:M,multiply:c,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:d,normalFromMat4Legacy:function(t,e){let n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],u=e[8],h=e[9],c=e[10],l=c*a-s*h,f=-c*o+s*u,d=h*o-a*u,m=n*l+r*f+i*d;if(!m)return null;let M=1/m;return t[0]=l*M,t[1]=(-c*r+i*h)*M,t[2]=(s*r-i*a)*M,t[3]=f*M,t[4]=(c*n-i*u)*M,t[5]=(-s*n+i*o)*M,t[6]=d*M,t[7]=(-h*n+r*u)*M,t[8]=(a*n-r*o)*M,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){let r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],h=e[6],c=e[7],l=e[8],f=Math.sin(n),d=Math.cos(n);return t[0]=d*r+f*a,t[1]=d*i+f*s,t[2]=d*o+f*u,t[3]=d*a-f*r,t[4]=d*s-f*i,t[5]=d*u-f*o,t[6]=h,t[7]=c,t[8]=l,t},scale:l,scaleByVec2:function(t,e,n){let r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t},set:o,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:b,subtract:m,translate:function(t,e,n){let r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],h=e[6],c=e[7],l=e[8],f=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=f*r+d*a+h,t[7]=f*i+d*s+c,t[8]=f*o+d*u+l,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>O,B8:()=>c,C:()=>o,D_:()=>s,N9:()=>p,O7:()=>j,Qw:()=>h,Tl:()=>f,X_:()=>S,e$:()=>m,eL:()=>M,hM:()=>_,hZ:()=>a,hs:()=>d,kN:()=>b,l:()=>w,lw:()=>l,mg:()=>u,o1:()=>A,sC:()=>y,t2:()=>C,t5:()=>T,tZ:()=>E,ut:()=>R});var r=n(51850),i=n(34304);function o(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[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function a(t,e,n,r,i,o,a,s,u,h,c,l,f,d,m,M,b){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=h,t[9]=c,t[10]=l,t[11]=f,t[12]=d,t[13]=m,t[14]=M,t[15]=b,t}function s(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,e){if(t===e){let n=e[1],r=e[2],i=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function h(t,e){return c(t,e)||s(t),t}function c(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],h=e[7],c=e[8],l=e[9],f=e[10],d=e[11],m=e[12],M=e[13],b=e[14],g=e[15],_=n*s-r*a,p=n*u-i*a,v=n*h-o*a,x=r*u-i*s,y=r*h-o*s,S=i*h-o*u,w=c*M-l*m,A=c*b-f*m,j=c*g-d*m,O=l*b-f*M,T=l*g-d*M,q=f*g-d*b,C=_*q-p*T+v*O+x*j-y*A+S*w;return C?(C=1/C,t[0]=(s*q-u*T+h*O)*C,t[1]=(i*T-r*q-o*O)*C,t[2]=(M*S-b*y+g*x)*C,t[3]=(f*y-l*S-d*x)*C,t[4]=(u*j-a*q-h*A)*C,t[5]=(n*q-i*j+o*A)*C,t[6]=(b*v-m*S-g*p)*C,t[7]=(c*S-f*v+d*p)*C,t[8]=(a*T-s*j+h*w)*C,t[9]=(r*j-n*T-o*w)*C,t[10]=(m*y-M*v+g*_)*C,t[11]=(l*v-c*y-d*_)*C,t[12]=(s*A-a*O-u*w)*C,t[13]=(n*O-r*A+i*w)*C,t[14]=(M*p-m*x-b*_)*C,t[15]=(c*x-l*p+f*_)*C,t):null}function l(t,e,n){let r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],h=e[6],c=e[7],l=e[8],f=e[9],d=e[10],m=e[11],M=e[12],b=e[13],g=e[14],_=e[15],p=n[0],v=n[1],x=n[2],y=n[3];return t[0]=p*r+v*s+x*l+y*M,t[1]=p*i+v*u+x*f+y*b,t[2]=p*o+v*h+x*d+y*g,t[3]=p*a+v*c+x*m+y*_,p=n[4],v=n[5],x=n[6],y=n[7],t[4]=p*r+v*s+x*l+y*M,t[5]=p*i+v*u+x*f+y*b,t[6]=p*o+v*h+x*d+y*g,t[7]=p*a+v*c+x*m+y*_,p=n[8],v=n[9],x=n[10],y=n[11],t[8]=p*r+v*s+x*l+y*M,t[9]=p*i+v*u+x*f+y*b,t[10]=p*o+v*h+x*d+y*g,t[11]=p*a+v*c+x*m+y*_,p=n[12],v=n[13],x=n[14],y=n[15],t[12]=p*r+v*s+x*l+y*M,t[13]=p*i+v*u+x*f+y*b,t[14]=p*o+v*h+x*d+y*g,t[15]=p*a+v*c+x*m+y*_,t}function f(t,e,n){let r=n[0],i=n[1],o=n[2];if(e===t)t[12]=e[0]*r+e[4]*i+e[8]*o+e[12],t[13]=e[1]*r+e[5]*i+e[9]*o+e[13],t[14]=e[2]*r+e[6]*i+e[10]*o+e[14],t[15]=e[3]*r+e[7]*i+e[11]*o+e[15];else{let n=e[0],a=e[1],s=e[2],u=e[3],h=e[4],c=e[5],l=e[6],f=e[7],d=e[8],m=e[9],M=e[10],b=e[11];t[0]=n,t[1]=a,t[2]=s,t[3]=u,t[4]=h,t[5]=c,t[6]=l,t[7]=f,t[8]=d,t[9]=m,t[10]=M,t[11]=b,t[12]=n*r+h*i+d*o+e[12],t[13]=a*r+c*i+m*o+e[13],t[14]=s*r+l*i+M*o+e[14],t[15]=u*r+f*i+b*o+e[15]}return t}function d(t,e,n){let r=n[0],i=n[1],o=n[2];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]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function m(t,e,n,r){let a=r[0],s=r[1],u=r[2],h=Math.sqrt(a*a+s*s+u*u);if(h<=(0,i.FD)())return void o(t,e);h=1/h,a*=h,s*=h,u*=h;let c=Math.sin(n),l=Math.cos(n),f=1-l,d=e[0],m=e[1],M=e[2],b=e[3],g=e[4],_=e[5],p=e[6],v=e[7],x=e[8],y=e[9],S=e[10],w=e[11],A=a*a*f+l,j=s*a*f+u*c,O=u*a*f-s*c,T=a*s*f-u*c,q=s*s*f+l,C=u*s*f+a*c,R=a*u*f+s*c,E=s*u*f-a*c,P=u*u*f+l;t[0]=d*A+g*j+x*O,t[1]=m*A+_*j+y*O,t[2]=M*A+p*j+S*O,t[3]=b*A+v*j+w*O,t[4]=d*T+g*q+x*C,t[5]=m*T+_*q+y*C,t[6]=M*T+p*q+S*C,t[7]=b*T+v*q+w*C,t[8]=d*R+g*E+x*P,t[9]=m*R+_*E+y*P,t[10]=M*R+p*E+S*P,t[11]=b*R+v*E+w*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function M(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[4],a=e[5],s=e[6],u=e[7],h=e[8],c=e[9],l=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+h*r,t[5]=a*i+c*r,t[6]=s*i+l*r,t[7]=u*i+f*r,t[8]=h*i-o*r,t[9]=c*i-a*r,t[10]=l*i-s*r,t[11]=f*i-u*r,t}function b(t,e){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]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function g(t,e,n){if(0===e)return s(t);let r=n[0],o=n[1],a=n[2],u=Math.sqrt(r*r+o*o+a*a);if(u<=(0,i.FD)())return null;u=1/u,r*=u,o*=u,a*=u;let h=Math.sin(e),c=Math.cos(e),l=1-c;return t[0]=r*r*l+c,t[1]=o*r*l+a*h,t[2]=a*r*l-o*h,t[3]=0,t[4]=r*o*l-a*h,t[5]=o*o*l+c,t[6]=a*o*l+r*h,t[7]=0,t[8]=r*a*l+o*h,t[9]=o*a*l-r*h,t[10]=a*a*l+c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function p(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,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,e,n){let r=e[0],i=e[1],o=e[2],a=e[3],s=r+r,u=i+i,h=o+o,c=r*s,l=r*u,f=r*h,d=i*u,m=i*h,M=o*h,b=a*s,g=a*u,_=a*h;return t[0]=1-(d+M),t[1]=l+_,t[2]=f-g,t[3]=0,t[4]=l-_,t[5]=1-(c+M),t[6]=m+b,t[7]=0,t[8]=f+g,t[9]=m-b,t[10]=1-(c+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const x=(0,r.vt)();function y(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){let n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],u=e[8],h=e[9],c=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(o*o+a*a+s*s),t[2]=Math.sqrt(u*u+h*h+c*c),t}function w(t,e){let n=e[0]+e[5]+e[10],r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function A(t,e,n,r){let i=e[0],o=e[1],a=e[2],s=e[3],u=i+i,h=o+o,c=a+a,l=i*u,f=i*h,d=i*c,m=o*h,M=o*c,b=a*c,g=s*u,_=s*h,p=s*c,v=r[0],x=r[1],y=r[2];return t[0]=(1-(m+b))*v,t[1]=(f+p)*v,t[2]=(d-_)*v,t[3]=0,t[4]=(f-p)*x,t[5]=(1-(l+b))*x,t[6]=(M+g)*x,t[7]=0,t[8]=(d+_)*y,t[9]=(M-g)*y,t[10]=(1-(l+m))*y,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function j(t,e,n,r,i){let o=e[0],a=e[1],s=e[2],u=e[3],h=o+o,c=a+a,l=s+s,f=o*h,d=o*c,m=o*l,M=a*c,b=a*l,g=s*l,_=u*h,p=u*c,v=u*l,x=r[0],y=r[1],S=r[2],w=i[0],A=i[1],j=i[2],O=(1-(M+g))*x,T=(d+v)*x,q=(m-p)*x,C=(d-v)*y,R=(1-(f+g))*y,E=(b+_)*y,P=(m+p)*S,I=(b-_)*S,z=(1-(f+M))*S;return t[0]=O,t[1]=T,t[2]=q,t[3]=0,t[4]=C,t[5]=R,t[6]=E,t[7]=0,t[8]=P,t[9]=I,t[10]=z,t[11]=0,t[12]=n[0]+w-(O*w+C*A+P*j),t[13]=n[1]+A-(T*w+R*A+I*j),t[14]=n[2]+j-(q*w+E*A+z*j),t[15]=1,t}function O(t,e,n,r,i,o,a){let s=1/(n-e),u=1/(i-r),h=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(a+o)*h,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*h,t[15]=0,t}function T(t,e,n,r){let o=e[0],a=e[1],u=e[2],h=o-n[0],c=a-n[1],l=u-n[2],f=(0,i.FD)();if(Math.abs(h)<f&&Math.abs(c)<f&&Math.abs(l)<f)return void s(t);let d=1/Math.sqrt(h*h+c*c+l*l);h*=d,c*=d,l*=d;let m=r[0],M=r[1],b=r[2],g=M*l-b*c,_=b*h-m*l,p=m*c-M*h;d=Math.sqrt(g*g+_*_+p*p),d?(d=1/d,g*=d,_*=d,p*=d):(g=0,_=0,p=0);let v=c*p-l*_,x=l*g-h*p,y=h*_-c*g;d=Math.sqrt(v*v+x*x+y*y),d?(d=1/d,v*=d,x*=d,y*=d):(v=0,x=0,y=0),t[0]=g,t[1]=v,t[2]=h,t[3]=0,t[4]=_,t[5]=x,t[6]=c,t[7]=0,t[8]=p,t[9]=y,t[10]=l,t[11]=0,t[12]=-(g*o+_*a+p*u),t[13]=-(v*o+x*a+y*u),t[14]=-(h*o+c*a+l*u),t[15]=1}function q(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function C(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[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function R(t){let e=(0,i.FD)(),n=t[0],r=t[1],o=t[2],a=t[4],s=t[5],u=t[6],h=t[8],c=t[9],l=t[10];return Math.abs(1-(n*n+a*a+h*h))<=e&&Math.abs(1-(r*r+s*s+c*c))<=e&&Math.abs(1-(o*o+u*u+l*l))<=e}function E(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 P=l,I=q;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],h=e[7],c=e[8],l=e[9],f=e[10],d=e[11],m=e[12],M=e[13],b=e[14],g=e[15];return t[0]=s*(f*g-d*b)-l*(u*g-h*b)+M*(u*d-h*f),t[1]=-(r*(f*g-d*b)-l*(i*g-o*b)+M*(i*d-o*f)),t[2]=r*(u*g-h*b)-s*(i*g-o*b)+M*(i*h-o*u),t[3]=-(r*(u*d-h*f)-s*(i*d-o*f)+l*(i*h-o*u)),t[4]=-(a*(f*g-d*b)-c*(u*g-h*b)+m*(u*d-h*f)),t[5]=n*(f*g-d*b)-c*(i*g-o*b)+m*(i*d-o*f),t[6]=-(n*(u*g-h*b)-a*(i*g-o*b)+m*(i*h-o*u)),t[7]=n*(u*d-h*f)-a*(i*d-o*f)+c*(i*h-o*u),t[8]=a*(l*g-d*M)-c*(s*g-h*M)+m*(s*d-h*l),t[9]=-(n*(l*g-d*M)-c*(r*g-o*M)+m*(r*d-o*l)),t[10]=n*(s*g-h*M)-a*(r*g-o*M)+m*(r*h-o*s),t[11]=-(n*(s*d-h*l)-a*(r*d-o*l)+c*(r*h-o*s)),t[12]=-(a*(l*b-f*M)-c*(s*b-u*M)+m*(s*f-u*l)),t[13]=n*(l*b-f*M)-c*(r*b-i*M)+m*(r*f-i*l),t[14]=-(n*(s*b-u*M)-a*(r*b-i*M)+m*(r*u-i*s)),t[15]=n*(s*f-u*l)-a*(r*f-i*l)+c*(r*u-i*s),t},copy:o,determinant:function(t){let e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],h=t[8],c=t[9],l=t[10],f=t[11],d=t[12],m=t[13],M=t[14],b=t[15];return(e*a-n*o)*(l*b-f*M)-(e*s-r*o)*(c*b-f*m)+(e*u-i*o)*(c*M-l*m)+(n*s-r*a)*(h*b-f*d)-(n*u-i*a)*(h*M-l*d)+(r*u-i*s)*(h*m-c*d)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],o=t[2],a=t[3],s=t[4],u=t[5],h=t[6],c=t[7],l=t[8],f=t[9],d=t[10],m=t[11],M=t[12],b=t[13],g=t[14],_=t[15],p=e[0],v=e[1],x=e[2],y=e[3],S=e[4],w=e[5],A=e[6],j=e[7],O=e[8],T=e[9],q=e[10],C=e[11],R=e[12],E=e[13],P=e[14],I=e[15],z=(0,i.FD)();return Math.abs(n-p)<=z*Math.max(1,Math.abs(n),Math.abs(p))&&Math.abs(r-v)<=z*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(o-x)<=z*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(a-y)<=z*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(s-S)<=z*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(u-w)<=z*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(h-A)<=z*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(c-j)<=z*Math.max(1,Math.abs(c),Math.abs(j))&&Math.abs(l-O)<=z*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(f-T)<=z*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(d-q)<=z*Math.max(1,Math.abs(d),Math.abs(q))&&Math.abs(m-C)<=z*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(M-R)<=z*Math.max(1,Math.abs(M),Math.abs(R))&&Math.abs(b-E)<=z*Math.max(1,Math.abs(b),Math.abs(E))&&Math.abs(g-P)<=z*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(_-I)<=z*Math.max(1,Math.abs(_),Math.abs(I))},exactEquals:C,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,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,h=n*a,c=r*a,l=r*s,f=i*a,d=i*s,m=i*u,M=o*a,b=o*s,g=o*u;return t[0]=1-l-m,t[1]=c+g,t[2]=f-b,t[3]=0,t[4]=c-g,t[5]=1-h-m,t[6]=d+M,t[7]=0,t[8]=f+b,t[9]=d-M,t[10]=1-h-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=x,r=-e[0],i=-e[1],o=-e[2],a=e[3],s=e[4],u=e[5],h=e[6],c=e[7],l=r*r+i*i+o*o+a*a;return l>0?(n[0]=2*(s*a+c*r+u*o-h*i)/l,n[1]=2*(u*a+c*i+h*r-s*o)/l,n[2]=2*(h*a+c*o+s*i-u*r)/l):(n[0]=2*(s*a+c*r+u*o-h*i),n[1]=2*(u*a+c*i+h*r-s*o),n[2]=2*(h*a+c*o+s*i-u*r)),v(t,e,n),t},fromRotation:g,fromRotationTranslation:v,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:j,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:b,fromXRotation:_,fromYRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:p,frustum:O,getRotation:w,getScale:S,getTranslation:y,hasIdentityRotation:E,identity:s,invert:c,invertOrIdentity:h,isOrthoNormal:R,lookAt:T,mul:P,multiply:l,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,i,o,a){let s=1/(e-n),u=1/(r-i),h=1/(o-a);return t[0]=-2*s,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*h,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(a+o)*h,t[15]=1,t},perspective:function(t,e,n,r,i){let o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,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,e,n,r){let i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(a+s),h=2/(i+o);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=h,t[6]=0,t[7]=0,t[8]=-(a-s)*u*.5,t[9]=(i-o)*h*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:m,rotateX:M,rotateY:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],h=e[8],c=e[9],l=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-h*r,t[1]=a*i-c*r,t[2]=s*i-l*r,t[3]=u*i-f*r,t[8]=o*r+h*i,t[9]=a*r+c*i,t[10]=s*r+l*i,t[11]=u*r+f*i,t},rotateZ:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],h=e[4],c=e[5],l=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+h*r,t[1]=a*i+c*r,t[2]=s*i+l*r,t[3]=u*i+f*r,t[4]=h*i-o*r,t[5]=c*i-a*r,t[6]=l*i-s*r,t[7]=f*i-u*r,t},scale:d,set:a,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:I,subtract:q,targetTo:function(t,e,n,r){let i=e[0],o=e[1],a=e[2],s=r[0],u=r[1],h=r[2],c=i-n[0],l=o-n[1],f=a-n[2],d=c*c+l*l+f*f;d>0&&(d=1/Math.sqrt(d),c*=d,l*=d,f*=d);let m=u*f-h*l,M=h*c-s*f,b=s*l-u*c;return d=m*m+M*M+b*b,d>0&&(d=1/Math.sqrt(d),m*=d,M*=d,b*=d),t[0]=m,t[1]=M,t[2]=b,t[3]=0,t[4]=l*b-f*M,t[5]=f*m-c*b,t[6]=c*M-l*m,t[7]=0,t[8]=c,t[9]=l,t[10]=f,t[11]=0,t[12]=i,t[13]=o,t[14]=a,t[15]=1,t},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},4197(t,e,n){n.d(e,{Vj:()=>c,cj:()=>h,jh:()=>o,l5:()=>s,yH:()=>u});var r=n(34275),i=n(9093);function o(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function a(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function s(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function u(t,e){if(0===e.length)return a(t);if(0===t.length)return a(e);let n=o(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function h(t){return[...t]}function c(t){let e=(0,i.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>O,C:()=>a,DC:()=>f,Ej:()=>p,Ie:()=>A,Jt:()=>j,Lu:()=>x,Ne:()=>y,RF:()=>l,TF:()=>g,VL:()=>m,aI:()=>q,fA:()=>s,gE:()=>h,gX:()=>_,hZ:()=>w,iT:()=>d,is:()=>T,pg:()=>v,uJ:()=>b,vI:()=>S,vY:()=>u,vt:()=>o,w1:()=>c,yr:()=>M}),n(35522);var r=n(5443),i=(n(19419),n(4197));function o(t=R){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e){for(let n=0;n<6;n++)t[n]=e[n];return t}function s(t,e,n,r,i,a,s=o()){return s[0]=t,s[1]=e,s[2]=n,s[3]=r,s[4]=i,s[5]=a,s}function u(t,e=o()){return function(t,e,n,r=o()){return w(r,C),function(t,e,n=0,r=e.length/3){let i=t[0],o=t[1],a=t[2],s=t[3],u=t[4],h=t[5];for(let t=0;t<r;t++)i=Math.min(i,e[n+3*t]),o=Math.min(o,e[n+3*t+1]),a=Math.min(a,e[n+3*t+2]),s=Math.max(s,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),h=Math.max(h,e[n+3*t+2]);t[0]=i,t[1]=o,t[2]=a,t[3]=s,t[4]=u,t[5]=h}(r,t,e,n),r}(t,0,t.length/3,e)}function h(t,e=(0,i.jh)(24)){let[n,r,o,a,s,u]=t;return e[0]=n,e[1]=r,e[2]=o,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=s,e[8]=o,e[9]=n,e[10]=s,e[11]=u,e[12]=a,e[13]=r,e[14]=o,e[15]=a,e[16]=r,e[17]=u,e[18]=a,e[19]=s,e[20]=o,e[21]=a,e[22]=s,e[23]=u,e}function c(t,e){return isFinite(t[2])||isFinite(t[5])?new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}):new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function l(t,e,n=t){n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.min(t[2],e[2]),n[3]=Math.max(t[3],e[3]),n[4]=Math.max(t[4],e[4]),n[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function d(t,[e,n,r]){!function(t,e,n,r){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],e),t[4]=Math.max(t[4],n),t[5]=Math.max(t[5],r)}(t,e,n,r)}function m(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 b(t){return t[2]>=t[5]?0:t[5]-t[2]}function g(t){let e=m(t),n=b(t),r=M(t);return e*e+n*n+r*r}function _(t,e=[0,0,0]){return e[0]=t[0]+m(t)/2,e[1]=t[1]+M(t)/2,e[2]=t[2]+b(t)/2,e}function p(t,e=[0,0,0]){return e[0]=m(t),e[1]=M(t),e[2]=b(t),e}function v(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function x(t,e){return e[0]=t[3],e[1]=t[4],e[2]=t[5],e}function y(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function S(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function w(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}function A(t){return t?w(t,C):o(C)}function j(t,e){return t[0]=e[0],t[1]=e[1],t[2]=-1/0,t[3]=e[2],t[4]=e[3],t[5]=1/0,t}function O(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=-1/0,t[3]=r,t[4]=i,t[5]=1/0,t}function T(t){return 6===t.length}function q(t,e,n){if(null==t||null==e)return t===e;if(!T(t)||!T(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],R=[0,0,0,0,0,0];o(),n.d(e,["qv",0,C,"v_",0,R])},19419(t,e,n){n.d(e,{$9:()=>S,C:()=>o,DC:()=>m,HY:()=>y,IO:()=>l,Ie:()=>A,Rj:()=>x,Uc:()=>v,VL:()=>M,VY:()=>s,Wc:()=>g,aI:()=>O,bx:()=>f,fA:()=>a,fT:()=>d,gR:()=>w,gX:()=>_,ib:()=>p,nw:()=>c,pJ:()=>T,tK:()=>h,uJ:()=>b,vt:()=>i,w1:()=>u}),n(34727);var r=n(5443);function i(t=C){return[t[0],t[1],t[2],t[3]]}function o(t,e){return t!==e&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]),t}function a(t,e,n,r,o=i()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}function s(t,e=i()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function u(t,e,n=new r.A){return n.xmin=t[0],n.ymin=t[1],n.xmax=t[2],n.ymax=t[3],n.spatialReference=e,n}function h(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function c(t,e){e<t[0]&&(t[0]=e),e>t[2]&&(t[2]=e)}function l(t,e){e<t[1]&&(t[1]=e),e>t[3]&&(t[3]=e)}function f(t,{xmin:e,ymin:n,xmax:r,ymax:i}){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],r),t[3]=Math.max(t[3],i)}function d(t,e,n){if(null==e)o(n,t);else if("length"in e)j(e)?(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[2]),n[3]=Math.max(t[3],e[3])):(2===e.length||3===e.length)&&(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[0]),n[3]=Math.max(t[3],e[1]));else switch(e.type){case"extent":n[0]=Math.min(t[0],e.xmin),n[1]=Math.min(t[1],e.ymin),n[2]=Math.max(t[2],e.xmax),n[3]=Math.max(t[3],e.ymax);break;case"point":n[0]=Math.min(t[0],e.x),n[1]=Math.min(t[1],e.y),n[2]=Math.max(t[2],e.x),n[3]=Math.max(t[3],e.y)}}function m(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3])}function M(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}function b(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}function g(t){return M(t)*b(t)}function _(t,e=[0,0]){return e[0]=(t[0]+t[2])/2,e[1]=(t[1]+t[3])/2,e}function p(t){let e=M(t),n=b(t);return Math.sqrt(e*e+n*n)}function v(t,e){return x(t,e[0],e[1])}function x(t,e,n){return e>=t[0]&&n>=t[1]&&e<=t[2]&&n<=t[3]}function y(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function S(t,e,n){return Math.max(e[0],t[0])-n<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])-n<=Math.min(e[3],t[3])}function w(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}function A(t){return t?o(t,q):i(q)}function j(t){return null!=t&&4===t.length}function O(t,e){return j(t)&&j(e)?t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]:null==t&&null==e||t===e}function T(t,e){if(4!==e.length||t[0]===t[2]||t[1]===t[3])return!1;for(let n=0;n<e.length;n++){let r=e[n],i=e[(n+1)%e.length];if(r[0]!==t[0]&&r[0]!==t[2]||r[1]!==t[1]&&r[1]!==t[3])return!1;let o=r[1]===i[1]&&r[0]!==i[0],a=r[0]===i[0]&&r[1]!==i[1];if(!o&&!a)return!1}return!0}const q=[1/0,1/0,-1/0,-1/0],C=[0,0,0,0];n.d(e,["qv",0,q])},65720(t,e,n){n.d(e,{C:()=>g,vt:()=>M,Qy:()=>b,ui:()=>_,ST:()=>w,bU:()=>j,pw:()=>S,m7:()=>p,ZU:()=>v,GH:()=>y,Pi:()=>x,LJ:()=>A,c8:()=>q});var r=n(4341),i=n(58083),o=n(35522),a=n(51850),s=n(78955),u=n(91829),h=n(70328),c=n(71351);function l(t){return t?{ray:(0,c.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,c.vt)(),c0:0,c1:Number.MAX_VALUE}}new r.I(()=>l());var f=n(27921);function d(t,e,n,r){let{t0:i,t1:o}=r,a=(0,f.mN)(t,e),s=(0,f.mN)(t,n);if(a>=0&&s>=0)return!1;if(a<0&&s>=0){let t=-a/(s-a);if(t<i)return!1;t<o&&(o=t)}else if(a>=0&&s<0){let t=a/(a-s);if(t>o)return!1;t>i&&(i=t)}return r.t0=i,r.t1=o,!0}var m=n(32114);function M(t){return t?[(0,f.vt)(t[0]),(0,f.vt)(t[1]),(0,f.vt)(t[2]),(0,f.vt)(t[3]),(0,f.vt)(t[4]),(0,f.vt)(t[5])]:[(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)()]}function b(){return[(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)()]}function g(t,e){for(let n=0;n<C;n++)(0,f.C)(t[n],e[n]);return t}function _(t,e,n,r=I){let a=(0,i.lw)(m.Rc.get(),e,t);(0,i.B8)(a,a);for(let t=0;t<R;++t){let e=(0,s.Z0)(m.Km.get(),E[t],a);(0,o.hZ)(r[t],e[0]/e[3],e[1]/e[3],e[2]/e[3])}!function(t,e){(0,f.Cr)(e[4],e[0],e[3],t[0]),(0,f.Cr)(e[1],e[5],e[6],t[1]),(0,f.Cr)(e[4],e[5],e[1],t[2]),(0,f.Cr)(e[3],e[2],e[6],t[3]),(0,f.Cr)(e[0],e[1],e[2],t[4]),(0,f.Cr)(e[5],e[4],e[7],t[5])}(n,r)}function p(t,e){return v(t,e.center,e.radius)}function v(t,e,n){for(let r=0;r<C;r++){let i=t[r];if(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]+i[3]>=n)return!1}return!0}function x(t,e,n){for(let r of T)if((0,f.wE)(t[r],e,n))return!0;return!1}function y(t,e,n){let r=(0,h.gX)(e,z),i=(0,h.VL)(e)/2,a=(0,h.yr)(e)/2,s=(0,h.uJ)(e)/2;return n?function(t,e,n,r,i,a){let s=(0,o.Z0)(F,e,a);for(let e=0;e<C;e++){let o=t[e];if(o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]-(Math.abs(o[0]*a[0]+o[1]*a[1]+o[2]*a[2])*n+Math.abs(o[0]*a[4]+o[1]*a[5]+o[2]*a[6])*r+Math.abs(o[0]*a[8]+o[1]*a[9]+o[2]*a[10])*i)>0)return!1}return!0}(t,r,i,a,s,n):function(t,e,n,r,i){for(let o=0;o<C;o++){let a=t[o];if(a[0]*e[0]+a[1]*e[1]+a[2]*e[2]+a[3]-(Math.abs(a[0])*n+Math.abs(a[1])*r+Math.abs(a[2])*i)>0)return!1}return!0}(t,r,i,a,s)}function S(t,e){return O(t,function(t,e=l()){return(0,c.C)(t,e.ray),e.c0=0,e.c1=Number.MAX_VALUE,e}(e,P.get()))}function w(t,e,n){return O(t,function(t,e,n=l()){let r=(0,o.Bw)(t.vector);return(0,c.fA)(t.origin,e,n.ray),n.c0=0,n.c1=r,n}(e,n,P.get()))}function A(t,e,n){return function(t,e,n,r){let i={t0:0,t1:1};for(let o of e)if(!d(t[o],n,r,i))return!1;return i.t0<i.t1}(t,T,e,n)}function j(t,e){for(let n=0;n<C;n++)if((0,f.mN)(t[n],e)>0)return!1;return!0}function O(t,e){for(let n=0;n<C;n++)if(!(0,f.$Q)(t[n],e))return!1;return!0}const T=[0,1,2,3,5],q={bottom:[5,1,0,4],near:[0,1,2,3],far:[5,4,7,6],right:[1,5,6,2],left:[4,0,3,7],top:[7,3,2,6]},C=6,R=8,E=[(0,u.fA)(-1,-1,-1,1),(0,u.fA)(1,-1,-1,1),(0,u.fA)(1,1,-1,1),(0,u.fA)(-1,1,-1,1),(0,u.fA)(-1,-1,1,1),(0,u.fA)(1,-1,1,1),(0,u.fA)(1,1,1,1),(0,u.fA)(-1,1,1,1)],P=new r.I(l),I=b(),z=(0,a.vt)(),F=(0,a.vt)()},11964(t,e,n){n.d(e,{Cr:()=>c,H6:()=>d,LV:()=>h,_I:()=>f,kb:()=>l,vt:()=>u});var r=n(34727),i=n(4341),o=n(35522),a=n(51850),s=n(32114);function u(t){return t?{origin:(0,a.o8)(t.origin),vector:(0,a.o8)(t.vector)}:{origin:(0,a.vt)(),vector:(0,a.vt)()}}function h(t,e){let n=m.get();return n.origin=t,n.vector=e,n}function c(t,e,n=u()){return(0,o.C)(n.origin,t),(0,o.Re)(n.vector,e,t),n}function l(t,e){let n=(0,o.Re)(s.rq.get(),e,t.origin),i=(0,o.Om)(t.vector,n),a=(0,o.Om)(t.vector,t.vector);if(Math.abs(a)<M)return(0,o.hG)(t.origin,e);let u=(0,r.qE)(i/a,0,1),h=(0,o.Re)(s.rq.get(),(0,o.hs)(s.rq.get(),t.vector,u),n);return(0,o.Om)(h,h)}function f(t,e,n){return d(t,e,0,1,n)}function d(t,e,n,i,a){let{vector:u,origin:h}=t,c=(0,o.Re)(s.rq.get(),e,h),l=(0,o.Om)(u,c)/(0,o.m3)(u);return(0,o.hs)(a,u,(0,r.qE)(l,n,i)),(0,o.WQ)(a,a,t.origin)}(0,a.vt)(),(0,a.vt)();const m=new i.I(()=>u()),M=1e-9},27921(t,e,n){n.d(e,{$Q:()=>T,BX:()=>O,C:()=>h,Cr:()=>d,H:()=>C,LV:()=>u,O_:()=>f,Qj:()=>c,T7:()=>w,Ui:()=>S,_I:()=>R,fA:()=>l,gv:()=>A,lU:()=>m,mN:()=>E,mP:()=>x,mR:()=>y,vE:()=>z,vt:()=>s,wE:()=>P});var r=n(34727),i=n(35522),o=n(51850),a=(n(78955),n(44280),n(32114));function s(t=F){return[t[0],t[1],t[2],t[3]]}function u(t=F[0],e=F[1],n=F[2],r=F[3]){return l(t,e,n,r,a.Km.get())}function h(t,e){return l(e[0],e[1],e[2],e[3],t)}function c(t){return t}function l(t,e,n,r,i=s()){return i[0]=t,i[1]=e,i[2]=n,i[3]=r,i}function f(t,e,n){let r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function d(t,e,n,r=s()){let i=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2],u=t[0]-e[0],h=t[1]-e[1],c=t[2]-e[2],l=o*c-a*h,f=a*u-i*c,d=i*h-o*u,m=l*l+f*f+d*d,M=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return r[0]=l*M,r[1]=f*M,r[2]=d*M,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function m(t,e,n,r=0,o=Math.floor(1/3*n),a=Math.floor(2/3*n)){if(n<3)return!1;e(b,r);let s=o,u=!1;for(;s<n-1&&!u;)e(g,s),s++,u=!(0,i.t2)(b,g);if(!u)return!1;for(s=Math.max(s,a),u=!1;s<n&&!u;)e(_,s),s++,(0,i.Re)(p,b,g),(0,i.S8)(p,p),(0,i.Re)(v,g,_),(0,i.S8)(v,v),u=!(0,i.t2)(b,_)&&!(0,i.t2)(g,_)&&Math.abs((0,i.Om)(p,v))<M;return u?(d(b,g,_,t),!0):(0!==r||1!==o||2!==a)&&m(t,e,n,0,1,2)}n(32728);const M=.99619469809,b=(0,o.vt)(),g=(0,o.vt)(),_=(0,o.vt)(),p=(0,o.vt)(),v=(0,o.vt)();function x(t,e,n){return e!==t&&h(t,e),t[3]=-(0,i.Om)(t,n),t}function y(t,e,n,r){return(0,i.$A)(_,e,t),f(n,_,r)}function S(t,e,n){return null!=e&&I(z(t,e.origin,e.direction,V,n))}function w(t,e,n){return I(z(t,e.origin,e.vector,0,n))}function A(t,e,n){return I(z(t,e.origin,e.vector,1,n))}function j(t,e){return E(t,e)<=0}function O(t,e){return E(t,e)>=0}function T(t,e){return function(t,e,n,r,o,a,s,u){let h=(0,i.Om)(t,n),c=E(t,e);if(h>=-u&&h<=u)return q(c,o,a);let l=-c/h,f=q(h,o,!1);return!(s&&!f&&!q(c,o,a))&&(f?l>r.c0&&(r.c0=l):l<r.c1&&(r.c1=l),r.c0<=r.c1)}(t,e.ray.origin,e.ray.direction,e,!1,!1,!0,1e-6)}function q(t,e,n){return n?e?t>=0:t<=0:e?t>0:t<0}function C(t,e,n,r=!1){let o=e.at(-1),a=E(t,o),s=r?a>0:a<=0;for(let u=0;u<e.length;u++){let h=e.at(u),c=E(t,h),l=r?c>0:c<=0;s!==l&&(0,i.Cc)(n(),o,h,a/(a-c)),l&&(0,i.C)(n(),h),o=h,a=c,s=l}}function R(t,e,n){let r=(0,i.hs)(a.rq.get(),t,-t[3]),o=function(t,e,n){let r=(0,i.hs)(a.rq.get(),t,(0,i.Om)(t,e));return(0,i.Re)(n,e,r),n}(t,(0,i.Re)(a.rq.get(),e,r),a.rq.get());return(0,i.WQ)(n,o,r),n}function E(t,e){return(0,i.Om)(t,e)+t[3]}function P(t,e,n){for(let r=0;r<n;++r)if(j(t,e[r]))return!1;return!0}function I(t){return 0===t||1===t}function z(t,e,n,o,a){let s=(0,i.Om)(t,n),u=E(t,e);if(0===s)return u>=0?2:3;let h=-u/s;return 1&o&&(h=(0,r.qE)(h,0,1)),!(4&o)&&h<0||!(8&o)&&h>1?u>=0?2:3:((0,i.WQ)(a,e,(0,i.hs)(a,n,h)),u>=0?0:1)}const F=[0,0,1,0],V=8;(0,o.vt)()},71351(t,e,n){n.d(e,{C:()=>l,Cr:()=>f,LV:()=>c,fA:()=>d,kb:()=>m,vt:()=>u});var r=n(4341),i=(n(77690),n(29242)),o=n(35522),a=n(51850),s=n(32114);function u(t){return t?h((0,a.o8)(t.origin),(0,a.o8)(t.direction)):h((0,a.vt)(),(0,a.vt)())}function h(t,e){return{origin:t,direction:e}}function c(t,e){let n=M.get();return n.origin=t,n.direction=e,n}function l(t,e=u()){return d(t.origin,t.direction,e)}function f(t,e,n=u()){return(0,o.C)(n.origin,t),(0,o.Re)(n.direction,e,t),n}function d(t,e,n=u()){return(0,o.C)(n.origin,t),(0,o.C)(n.direction,e),n}function m(t,e){let n=(0,o.$A)(s.rq.get(),(0,o.S8)(s.rq.get(),t.direction),(0,o.Re)(s.rq.get(),e,t.origin));return(0,o.Om)(n,n)}const M=new r.I(()=>u());(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,i.vt)()},94008(t,e,n){n.d(e,{iy:()=>d}),n(44208),n(53966);var r=n(34727),i=n(34304),o=n(58083),a=n(35522),s=n(51850),u=n(91829),h=n(34275);var c=n(71351),l=n(44280),f=n(32114);class d{constructor(t=0,e=0,n=0,r=0){this.radius=r,"number"==typeof t?this._center=(0,s.fA)(t,e,n):function(t){return e=t,(0,h.vZ)(e)&&e.length>=3||function(t){return((0,h.aI)(t)||Array.isArray(t))&&t.length>=3}(t);var e}(t)||function(t){return(e=t)instanceof Float32Array&&e.length>=4||function(t){return Array.isArray(t)&&t.length>=4}(t);var e}(t)?(this._center=(0,s.ci)(t),this.radius=4===t.length?t[3]:e):(this._center=(0,s.o8)(t.center),this.radius=t.radius)}get isValid(){return this.radius>=0}invalidate(){this.radius=-1}get center(){return this._center}set center(t){(0,a.C)(this.center,t)}exactEquals(t){return(0,a.aI)(this._center,t.center)&&this.radius===t.radius}copyFrom(t){return t!==this&&((0,a.C)(this._center,t.center),this.radius=t.radius),this}clone(){return new d(this.center,this.radius)}toVec4(){return(0,u.fA)(this.center[0],this.center[1],this.center[2],this.radius)}contains(t){return(0,a.hG)(this.center,t)<=this.radius**2}intersects(t){let e=this.radius+t.radius;return(0,a.hG)(this.center,t.center)<=e*e}intersectRay(t,e){if(null==t||!this._intersect(t,m))return!1;let{t0:n,t1:r}=m;if((n<0||r<n&&r>0)&&(n=r),n<0)return!1;if(e){let{origin:r,direction:i}=t;e[0]=r[0]+i[0]*n,e[1]=r[1]+i[1]*n,e[2]=r[2]+i[2]*n}return!0}intersectLine(t,e){let n=(0,c.Cr)(t,e);if(!this._intersect(n,m))return[];let{origin:r,direction:o}=n,{t0:u,t1:h}=m,l=t=>{let e=(0,s.vt)();return(0,a.Ln)(e,r,o,t),this.projectPoint(e,e)};return Math.abs(u-h)<(0,i.FD)()?[l(u)]:[l(u),l(h)]}_intersect(t,e){let{origin:n,direction:r}=t,i=M;i[0]=n[0]-this.center[0],i[1]=n[1]-this.center[1],i[2]=n[2]-this.center[2];let o=r[0]*r[0]+r[1]*r[1]+r[2]*r[2];if(0===o)return!1;let a=2*(r[0]*i[0]+r[1]*i[1]+r[2]*i[2]),s=a*a-4*o*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-this.radius**2);if(s<0)return!1;let u=Math.sqrt(s);return e.t0=(-a-u)/(2*o),e.t1=(-a+u)/(2*o),!0}projectPoint(t,e){let n=(0,a.Re)(f.rq.get(),t,this.center),r=(0,a.hs)(f.rq.get(),n,this.radius/(0,a.Bw)(n));return(0,a.WQ)(e,r,this.center)}closestPointOnSilhouette(t,e){let n=f.rq.get(),r=f.Rc.get();(0,a.$A)(n,t.origin,t.direction),(0,a.$A)(e,n,t.origin),(0,a.hs)(e,e,1/(0,a.Bw)(e)*this.radius);let i=this._angleToSilhouette(t.origin),s=(0,l.g7)(t.origin,e);return(0,o.$0)(r,s+i,n),(0,a.Z0)(e,e,r),e}frustumCoverage(t,e,n){let r=this.radius,i=r*r,o=t+.5*Math.PI,a=e*e+i-2*Math.cos(o)*e*r,s=Math.sqrt(a),u=a-i;if(u<=0)return.5;let h=Math.acos(Math.sqrt(u)/s)-Math.asin(r/(s/Math.sin(o)));return Math.min(1,(h+.5*n)/n)}_angleToSilhouette(t){let e=(0,a.Re)(f.rq.get(),t,this.center),n=(0,a.Bw)(e),i=this.radius,o=i+Math.abs(i-n);return(0,r.XM)(i/o)}union(t){let e=(0,a.Io)(this._center,t.center),n=this.radius,r=t.radius;return e+r<n?this:e+n<r?(this.copyFrom(t),this):((0,a.Cc)(this._center,this._center,t.center,(e+r-n)/(2*e)),this.radius=(e+n+r)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}signedDistanceToPlane(t){let{center:e,radius:n}=this,r=t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3];return r<0?Math.min(r+n,0):Math.max(r-n,0)}}new d;const m={t0:0,t1:0},M=(0,s.vt)();(0,s.vt)(),(0,s.vt)()},44280(t,e,n){n.d(e,{g7:()=>s,gr:()=>a});var r=n(34727),i=n(35522),o=n(51850);function a(t,e){return(0,i.Om)(t,e)/(0,i.Bw)(t)}function s(t,e){let n=(0,i.Om)(t,e)/((0,i.Bw)(t)*(0,i.Bw)(e));return-(0,r.XM)(n)}(0,o.vt)(),(0,o.vt)()},32114(t,e,n){n.d(e,{Rc:()=>d,rq:()=>l,Km:()=>f}),n(44208);var r=n(26390),i=n(29242),o=n(9093),a=n(82534),s=n(48163),u=n(51850),h=n(91829);class c{constructor(t){this._create=t,this._items=[],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(){let t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new c(s.vt)}static createVec3f64(){return new c(u.vt)}static createVec4f64(){return new c(h.vt)}static createMat3f64(){return new c(i.vt)}static createMat4f64(){return new c(o.vt)}static createQuatf64(){return new c(a.vt)}get test(){}}c.createVec2f64();const l=c.createVec3f64(),f=c.createVec4f64(),d=(c.createMat3f64(),c.createMat4f64());c.createQuatf64()},32728(t,e,n){n.d(e,{YH:()=>a,nu:()=>s,wp:()=>o}),n(34727);var r=n(35522),i=n(51850);function o(t,e){let n=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),i=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),o=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,r.hZ)(t,n,i,o),t}function a(t,e,n){n||=t;let i=(0,r.Om)(t,e);(0,r.hZ)(n,t[0]-i*e[0],t[1]-i*e[1],t[2]-i*e[2]),(0,r.S8)(n,n)}function s(t,e,n,o=(0,i.vt)()){let a=(0,r.Bw)(t),s=(0,r.Bw)(e),c=(0,r.Om)(t,e)/(a*s);if(c<.9999999999999999){let i=Math.acos(c),l=((1-n)*a+n*s)/Math.sin(i),f=l/a*Math.sin((1-n)*i),d=l/s*Math.sin(n*i);return(0,r.hs)(u,t,f),(0,r.hs)(h,e,d),(0,r.WQ)(o,u,h)}return(0,r.Cc)(o,t,e,n)}(0,i.vt)(),(0,i.vt)(),(0,i.vt)();const u=(0,i.vt)(),h=(0,i.vt)()},70491(t,e,n){n.r(e),n.d(e,{default:()=>K});var r=n(32198),i=n(17676),o=n(24326),a=n(91429),s=n(35522),u=n(51850),h=n(11964),c=n(94008),l=n(93687),f=n(15142),d=n(65720),m=n(71351),M=n(620);class b{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new g,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),g.clearPool(),I[0]=null,N.prune(),W.prune()}add(t){let e=Array.from(t);this._grow(e);let n=g.acquire();for(let t of e)++this._objectCount,this._isDegenerate(t)?this._degenerateObjects.add(t):(n.init(this._root),this._add(t,n));g.release(n)}remove(t,e=null){this._objectCount-=t.length;let n=g.acquire();for(let r of t){let t=e??this.objectToBoundingSphere(r);C(t.radius)?(n.init(this._root),x(r,t,n)):this._degenerateObjects.delete(r)}g.release(n),this._shrink()}update(t,e){if(!C(e.radius)&&this._isDegenerate(t))return;let n=function(t){return I[0]=t,I}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){let r=(0,m.LV)(t,e);p(this._root,t=>{if(!function(t,e){return j(e.bounds.center,2*-e.halfSize,V),j(e.bounds.center,2*e.halfSize,D),(0,M.O_)(t.origin,t.direction,V,D)}(r,t))return!1;let e=t.node;return e.terminals.forAll(t=>{this._intersectsObject(r,t)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObject(r,t)&&n(t)}),!0})}forEachAlongRayWithVerticalOffset(t,e,n,r){let i=(0,m.LV)(t,e);p(this._root,t=>{if(!function(t,e,n){return j(e.bounds.center,2*-e.halfSize,V),j(e.bounds.center,2*e.halfSize,D),n.applyToMinMax(V,D),(0,M.O_)(t.origin,t.direction,V,D)}(i,t,r))return!1;let e=t.node;return e.terminals.forAll(t=>{this._intersectsObjectWithOffset(i,t,r)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObjectWithOffset(i,t,r)&&n(t)}),!0})}forEach(t){for(let e of this.values())t(e)}*values(){for(let t of this._nodeIteratorValues()){let e=t.node;yield*e.terminals,null!==e.residents&&(yield*e.residents)}yield*this.degenerateObjectValues()}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}*degenerateObjectValues(){yield*this._degenerateObjects.values()}findClosest(t,e,n,r=()=>!0,i=1/0){let o=1/0,a=1/0,u=null,h=T(t,e),c=s=>{if(--i,!r(s))return;let h=this.objectToBoundingSphere(s);if(!(0,d.m7)(n,h))return;let c=q(t,e,h.center),l=c-h.radius,f=c+h.radius;l<o&&(o=l,a=f,u=s)};return v(this._root,r=>{if(i<=0||!(0,d.ZU)(n,r.bounds.center,2*r.bounds.radius)||((0,s.hs)(F,h,2*r.halfSize),(0,s.WQ)(F,F,r.bounds.center),q(t,e,F)>a))return!1;let o=r.node;return o.terminals.forAll(t=>c(t)),null!==o.residents&&o.residents.forAll(t=>c(t)),!0},t,e),u}forEachInDepthRange(t,e,n,r,i,o,a){let u=-1/0,h=1/0,c={setRange:t=>{1===n?(u=Math.max(u,t.near),h=Math.min(h,t.far)):(u=Math.max(u,-t.far),h=Math.min(h,-t.near))}};c.setRange(r);let l=q(e,n,t),f=T(e,n),m=T(e,-n),M=t=>{if(!a(t))return;let r=this.objectToBoundingSphere(t),s=q(e,n,r.center)-l,f=s-r.radius,m=s+r.radius;f>h||m<u||!(0,d.m7)(o,r)||i(t,c)};v(this._root,t=>{if(!(0,d.ZU)(o,t.bounds.center,2*t.bounds.radius)||((0,s.hs)(F,f,2*t.halfSize),(0,s.WQ)(F,F,t.bounds.center),q(e,n,F)-l>h)||((0,s.hs)(F,m,2*t.halfSize),(0,s.WQ)(F,F,t.bounds.center),q(e,n,F)-l<u))return!1;let r=t.node;return r.terminals.forAll(t=>M(t)),null!==r.residents&&r.residents.forAll(t=>M(t)),!0},e,n)}forEachNode(t){p(this._root,e=>t(e.node,e.bounds,e.halfSize,e.depth))}forEachIntersectingFrustum(t,e,n=()=>!0){for(let r of this.intersectingFrustumValues(t,n))e(r)}*intersectingFrustumValues(t,e=()=>!0){for(let n of this._nodeIteratorValues(e=>(0,d.ZU)(t,e.bounds.center,2*e.bounds.radius))){let r=n.node;for(let n of r.terminals)e(n)&&(0,d.m7)(t,this.objectToBoundingSphere(n))&&(yield n);if(null!==r.residents)for(let n of r.residents)e(n)&&(0,d.m7)(t,this.objectToBoundingSphere(n))&&(yield n)}}*_nodeIteratorValues(t=()=>!0){yield*_(this._root,t)}forEachNeighbor(t,e){let n=e.radius,r=e.center,i=n=>{let r=this.objectToBoundingSphere(n);return!e.intersects(r)||t(n)},o=!0,a=t=>{o&&=i(t)};p(this._root,t=>{let e=2*t.bounds.radius,i=n+e;if((0,s.hG)(t.bounds.center,r)-i*i>0)return!1;let u=t.node;return u.terminals.forAll(a),o&&null!==u.residents&&u.residents.forAll(a),o}),o&&this.forEachDegenerateObject(a)}_intersectsObject(t,e){let n=this.objectToBoundingSphere(e);return!(n.radius>0)||n.intersectRay(t)}_intersectsObjectWithOffset(t,e,n){let r=this.objectToBoundingSphere(e);return!(r.radius>0)||n.applyToBoundingSphere(r).intersectRay(t)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){let e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){let r=g.acquire().init(t);this._add(e.at(n),r),g.release(r)}}_grow(t){if(O(t,t=>this.objectToBoundingSphere(t),B),C(B.radius)&&!this._fitsInsideTree(B))if(S(this._root.node))this._root.bounds.copyFrom(B),this._root.halfSize=1.25*this._root.bounds.radius,this._root.updateBoundsRadiusFromHalfSize();else{let t=this._rootBoundsForRootAsSubNode(B);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(B,t):this._growRootAsSubNode(t),g.release(t)}}_rebuildTree(t,e){L.center=e.bounds.center,L.radius=e.halfSize,O([t,L],t=>t,k);let n=g.acquire().init(this._root);this._root.initFrom(null,k,k.radius),this._root.increaseHalfSize(1.25),p(n,t=>(this.add(t.node.terminals.data),null!==t.node.residents&&this.add(t.node.residents.data),!0)),g.release(n)}_placingRootViolatesMaxDepth(t){let e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E,n=0;return p(this._root,t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth)),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){let e=t.radius,n=t.center,r=-1/0,i=this._root.bounds.center,o=this._root.halfSize;for(let t=0;t<3;t++){let a=i[t]-o-(n[t]-e),s=n[t]+e-(i[t]+o),u=Math.max(0,Math.ceil(a/(2*o))),h=Math.max(0,Math.ceil(s/(2*o)))+1,c=2**Math.ceil(Math.log(u+h)*Math.LOG2E);r=Math.max(r,c),Q[t].min=u,Q[t].max=h}for(let t=0;t<3;t++){let e=Q[t].min,n=Q[t].max,a=(r-(e+n))/2;e+=Math.ceil(a),n+=Math.floor(a);let s=i[t]-o-e*o*2;z.center[t]=s+(n+e)*o}let a=r*o;return z.radius=a*P,g.acquire().initFrom(null,z,a,0)}_growRootAsSubNode(t){let e=this._root.node;B.center=this._root.bounds.center,B.radius=this._root.halfSize,this._root.init(t),t.advanceTo(B,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){let t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null,e=this._root.node.children,n=0,r=0;for(;r<e.length&&null==t;)n=r++,t=e[n];for(;r<e.length;)if(e[r++])return-1;return n}_isDegenerate(t){return!C(this.objectToBoundingSphere(t).radius)}_fitsInsideTree(t){let e=this._root.bounds,n=this._root.halfSize;return t.radius<=n&&t.center[0]>=e.center[0]-n&&t.center[0]<=e.center[0]+n&&t.center[1]>=e.center[1]-n&&t.center[1]<=e.center[1]+n&&t.center[2]>=e.center[2]-n&&t.center[2]<=e.center[2]+n}_nodeToJSON(t){return{children:t.children.map(t=>t?this._nodeToJSON(t):null),residents:t.residents?.map(t=>this.objectToBoundingSphere(t)),terminals:t.terminals?.map(t=>this.objectToBoundingSphere(t))}}}class g{constructor(){this.bounds=new c.iy,this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,r=this.depth){return this.node=t??g.createEmptyNode(),e&&this.bounds.copyFrom(e),this.halfSize=n,this.depth=r,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds.radius=this.halfSize*P}advance(t){let e=this.node.children[t];e||(e=g.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;let n=R[t];return this.bounds.center[0]+=n[0]*this.halfSize,this.bounds.center[1]+=n[1]*this.halfSize,this.bounds.center[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e?.(this,-1),!0;if(this.isLeaf()){if(!n)return e?.(this,-1),!1;this.node.residents=null}let r=this._childIndex(t);e?.(this,r),this.advance(r)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t.radius>this.halfSize/2}_childIndex(t){let e=this.bounds.center;return+(e[0]<t.center[0])+(e[1]<t.center[1]?2:0)+(e[2]<t.center[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new f.A({shrink:!0}),residents:new f.A({shrink:!0})}}static{this._pool=new l.A(()=>new g)}static acquire(){return g._pool.acquire()}static release(t){g._pool.release(t)}static clearPool(){g._pool.prune()}}function*_(t,e=()=>!0){let n=[g.acquire().init(t)];for(;0!==n.length;){let t=n.pop();if(e(t)){if(yield t,!t.isLeaf())for(let e=0;e<t.node.children.length;e++)t.node.children[e]&&n.push(g.acquire().init(t).advance(e));g.release(t)}}}function p(t,e){let n=_(t,e);for(let t of n);}function v(t,e,n,r=1){let i=g.acquire().init(t),o=[i];for(function(t,e,n){if(!W.length)for(let t=0;t<8;++t)W.push({index:0,distance:0});for(let n=0;n<8;++n){let r=R[n];W.data[n].index=n,W.data[n].distance=q(t,e,r)}W.sort((t,e)=>t.distance-e.distance);for(let t=0;t<8;++t)n[t]=W.data[t].index}(n,r,Z);0!==o.length;){if(i=o.pop(),e(i)&&!i.isLeaf())for(let t=7;t>=0;--t){let e=Z[t];i.node.children[e]&&o.push(g.acquire().init(i).advance(e))}g.release(i)}}function x(t,e,n){N.clear();let r=n.advanceTo(e,(t,e)=>{N.push(t.node),N.push(e)})?n.node.terminals:n.node.residents;if(r.removeUnordered(t),0===r.length)for(let t=N.length-2;t>=0&&y(N.data[t],N.data[t+1]);t-=2);}function y(t,e){return e>=0&&(t.children[e]=null),!!S(t)&&(null===t.residents&&(t.residents=new f.A({shrink:!0})),!0)}function S(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}function w(t,e){t[0]=Math.min(t[0],e.center[0]-e.radius),t[1]=Math.min(t[1],e.center[1]-e.radius),t[2]=Math.min(t[2],e.center[2]-e.radius)}function A(t,e){t[0]=Math.max(t[0],e.center[0]+e.radius),t[1]=Math.max(t[1],e.center[1]+e.radius),t[2]=Math.max(t[2],e.center[2]+e.radius)}function j(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function O(t,e,n){V[0]=1/0,V[1]=1/0,V[2]=1/0,D[0]=-1/0,D[1]=-1/0,D[2]=-1/0;for(let n of t){let t=e(n);C(t.radius)&&(w(V,t),A(D,t))}(0,s.Cc)(n.center,V,D,.5),n.radius=Math.max(D[0]-V[0],D[1]-V[1],D[2]-V[2])/2}function T(t,e){let n,r=1/0;for(let i=0;i<8;++i){let o=q(t,e,E[i]);o<r&&(r=o,n=E[i])}return n}function q(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function C(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}const R=[(0,u.fA)(-1,-1,-1),(0,u.fA)(1,-1,-1),(0,u.fA)(-1,1,-1),(0,u.fA)(1,1,-1),(0,u.fA)(-1,-1,1),(0,u.fA)(1,-1,1),(0,u.fA)(-1,1,1),(0,u.fA)(1,1,1)],E=[(0,u.fA)(-1,-1,-1),(0,u.fA)(-1,-1,1),(0,u.fA)(-1,1,-1),(0,u.fA)(-1,1,1),(0,u.fA)(1,-1,-1),(0,u.fA)(1,-1,1),(0,u.fA)(1,1,-1),(0,u.fA)(1,1,1)],P=Math.sqrt(3),I=[null],z=new c.iy,F=(0,u.vt)(),V=(0,u.vt)(),D=(0,u.vt)(),N=new f.A,B=new c.iy,L=new c.iy,k=new c.iy,Q=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],W=new f.A,Z=[0,0,0,0,0,0,0,0];var H=n(44801);function $(t,e,n){let r=new c.iy;return(0,s.hs)(r.center,t,.5),(0,s.Ln)(r.center,r.center,e,.5),r.radius=(0,s.Io)(r.center,t),(0,s.WQ)(r.center,r.center,n),r}class U{constructor(t,e,n){this.objectId=t,this.target=e,this.distance=n}}class X extends U{constructor(t,e,n){super(t,e,n),this.type="vertex"}}class J extends U{constructor(t,e,n,r,i){super(t,e,n),this.start=r,this.end=i,this.type="edge"}}let Y=class{constructor(){this._idToComponent=new Map,this._components=new b(t=>t.bounds),this._edges=new b(t=>t.bounds),this._tmpLineSegment=(0,h.vt)(),this._tmpP1=(0,u.vt)(),this._tmpP2=(0,u.vt)(),this._tmpP3=(0,u.vt)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,i.Te)(e);let n=t;n.mbs=new c.iy(t.mbsJSON),await this._ensureEdgeLocations(n,e);let r=[];return this._edges.forEachNeighbor(t=>(this._addCandidates(n,t,r),r.length<1e3),n.mbs),{result:{candidates:r}}}async _ensureEdgeLocations(t,e){let n=[];if(this._components.forEachNeighbor(t=>{if(null==t.info){let{id:e,uid:r}=t;n.push({id:e,uid:r})}return!0},t.mbs),!n.length)return;let r={components:n},i=await this.remoteClient.invoke("fetchAllEdgeLocations",r,e??{});for(let t of i.components)this._setFetchEdgeLocations(t)}async add(t){let e=new tt(t.id,new c.iy(t.bounds));return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){let e=this._idToComponent.get(t.id);if(e){let t=[];this._edges.forEachNeighbor(n=>(n.component===e&&t.push(n),!0),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){let e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;let n=H.HY.createView(t.locations),r=Array(n.count),i=(0,u.vt)(),o=(0,u.vt)();for(let a=0;a<n.count;a++){n.position0.getVec(a,i),n.position1.getVec(a,o);let s=$(i,o,t.origin),u=new et(e,a,s);r[a]=u}this._edges.add(r);let{objectIds:a,origin:s}=t;e.info={locations:n,objectIds:a,origin:s}}_addCandidates(t,e,n){let{info:r}=e.component,{origin:i,objectIds:o}=r,a=r.locations,u=a.position0.getVec(e.index,this._tmpP1),h=a.position1.getVec(e.index,this._tmpP2);(0,s.WQ)(u,u,i),(0,s.WQ)(h,h,i);let c=o[a.componentIndex.get(e.index)];this._addEdgeCandidate(t,c,u,h,n),G(t,c,u,n),G(t,c,h,n)}_addEdgeCandidate(t,e,n,r,i){if(!t.returnEdge)return;let o=t.mbs.center,a=(0,h.Cr)(n,r,this._tmpLineSegment),c=(0,h._I)(a,o,this._tmpP3);t.mbs.contains(c)&&i.push(new J(e,(0,u.o8)(c),(0,s.Io)(o,c),(0,u.o8)(n),(0,u.o8)(r)))}};Y=(0,r.Cg)([(0,a.$K)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],Y);const K=Y;function G(t,e,n,r){t.returnVertex&&t.mbs.contains(n)&&r.push(new X(e,(0,u.o8)(n),(0,s.Io)(t.mbs.center,n)))}class tt{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=(0,o.c)()}}class et{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1484],{66344(t,e,i){i.d(e,{q:()=>o});const r=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class s{get size(){return this._size}constructor(t=10485760,e=.3){this._maxSize=t,this._maxClientSizeRatio=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._clients=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._clients.clear(),this._db.clear()}register(t){this._clients.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._clients.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}get _maxClientSize(){return this._maxSize*this._maxClientSizeRatio}getSize(t,e){return this._db.get(t.id+e)?.size??0}put(t,e,i,s,a){e=t.id+e;let o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==i&&this._notifyRemove(e,o.entry,o.size,0)),s>this._maxSize)return void this._notifyRemove(e,i,s,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return r||console.warn(`Refusing to cache entry with size ${s} for key ${e}`),void this._notifyRemove(e,i,0,0);let u=1+Math.max(a,-4)- -3;this._db.set(e,new n(i,s,u)),this._size+=s,t.size+=s,this._checkSize()}updateSize(t,e){e=t.id+e;let i=this._db.get(e);if(!i)return;this._size-=i.size,t.size-=i.size;let r=i.entry.usedMemory;for(;r>this._maxSize;){let t=this._notifyRemove(e,i.entry,r,1);if(!(null!=t&&t>0))return void this._db.delete(e);r=t}i.size=r,this._size+=r,t.size+=r,this._checkSize()}pop(t,e){e=t.id+e;let i=this._db.get(e);if(i)return this._size-=i.size,t.size-=i.size,this._db.delete(e),++this._hit,i.entry;++this._miss}get(t,e){e=t.id+e;let i=this._db.get(e);if(void 0!==i)return this._db.delete(e),i.lives=i.lifetime,this._db.set(e,i),++this._hit,i.entry;++this._miss}peek(t,e){let i=this._db.get(t.id+e);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){let t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},i=[];this._db.forEach((t,r)=>{let s=t.lifetime;i[s]=(i[s]||0)+t.size,this._clients.forEach(i=>{let{id:s,name:n}=i;if(r.startsWith(s)){let i=e[n]||0;e[n]=i+t.size}})});let r={};this._clients.forEach(t=>{let i=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){let s=e[i]||0;e[i]=s,r[i]=Math.round(100*t.hitRate)+"%"}else r[i]="0%"});let s=Object.keys(e);s.sort((t,i)=>e[i]-e[t]),s.forEach(i=>t[i]=Math.round(e[i]/2**20)+"MB / "+r[i]);for(let e=i.length-1;e>=0;--e){let r=i[e];r&&(t["Priority "+(e+-3-1)]=Math.round(r/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._clients.forEach(t=>t.resetHitRate())}clear(t){let e=t.id;this._db.forEach((t,i)=>{i.startsWith(e)&&(this._size-=t.size,this._db.delete(i),this._notifyRemove(i,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._clients.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(let[e,i]of this._db)e.startsWith(t.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,i,r){let s=this._clients.get(t.split(a)[0])?.removeFunc,n=s?.(e,r,i);return"number"==typeof n?n:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._clients.forEach(t=>this._checkSizeLimits(this._maxClientSize,t)),this._checkSizeLimits(this.maxSize)}setMaxClientSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){let i=e??this;if(i.size<=t)return;let r=e?.id,s=!0;for(;s;){s=!1;for(let[n,o]of this._db)if(0===o.lifetime&&(!r||n.startsWith(r))){let r=e??this._clients.get(n.split(a)[0]);if(this._purgeItem(n,o,r),i.size<=.9*t)return;s||=this._db.has(n)}}for(let[s,n]of this._db)if(!r||s.startsWith(r)){let r=e??this._clients.get(s.split(a)[0]);if(this._purgeItem(s,n,r),i.size<=.9*t)return}}_purgeItem(t,e,i){if(this._db.delete(t),e.lives<=1){this._size-=e.size,i&&(i.size-=e.size);let r=this._notifyRemove(t,e.entry,e.size,1);null!=r&&r>0&&(this._size+=r,i&&(i.size+=r),e.lives=e.lifetime,e.size=r,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}new s(0);class n{constructor(t,e,i){this.entry=t,this.size=e,this.lifetime=i,this.lives=i}}const a=":";class o{constructor(t,e){this.removeFunc=e,this.id="",this.name="",this.size=0,this._storage=new s(t,1),this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(t,e,i=1){this._storage.put(this,t,e,i,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}},9093(t,e,i){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}i.d(e,{o8:()=>s,vt:()=>r});const n=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:n,clone:s,create:r,fromValues:function(t,e,i,r,s,n,a,o,u,l,h,c,f,d,p,m){return[t,e,i,r,s,n,a,o,u,l,h,c,f,d,p,m]}},Symbol.toStringTag,{value:"Module"})),i.d(e,["zK",0,n])},35522(t,e,i){i.d(e,{$A:()=>P,Bw:()=>n,C:()=>a,Cc:()=>v,DI:()=>M,Io:()=>g,Ln:()=>y,Om:()=>S,Qr:()=>c,Re:()=>l,S8:()=>I,T9:()=>m,WQ:()=>u,Z0:()=>F,_S:()=>d,aI:()=>A,ei:()=>b,fw:()=>C,gL:()=>R,hG:()=>x,hZ:()=>o,hs:()=>_,jk:()=>p,lw:()=>h,m3:()=>w,oW:()=>E,t2:()=>O,tn:()=>f,ze:()=>z});var r=i(51850),s=i(34304);function n(t){let e=t[0],i=t[1],r=t[2];return Math.sqrt(e*e+i*i+r*r)}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function o(t,e,i,r){return t[0]=e,t[1]=i,t[2]=r,t}function u(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t[2]=e[2]+i[2],t}function l(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t[2]=e[2]-i[2],t}function h(t,e,i){return t[0]=e[0]*i[0],t[1]=e[1]*i[1],t[2]=e[2]*i[2],t}function c(t,e,i){return t[0]=e[0]/i[0],t[1]=e[1]/i[1],t[2]=e[2]/i[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function 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,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t[2]=Math.min(e[2],i[2]),t}function m(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t[2]=Math.max(e[2],i[2]),t}function _(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function y(t,e,i,r){return t[0]=e[0]+i[0]*r,t[1]=e[1]+i[1]*r,t[2]=e[2]+i[2]*r,t}function g(t,e){let i=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return Math.sqrt(i*i+r*r+s*s)}function x(t,e){let i=e[0]-t[0],r=e[1]-t[1],s=e[2]-t[2];return i*i+r*r+s*s}function w(t){let e=t[0],i=t[1],r=t[2];return e*e+i*i+r*r}function z(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function M(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function I(t,e=t){let i=e[0],r=e[1],s=e[2],n=i*i+r*r+s*s;return n>0&&(n=1/Math.sqrt(n),t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n),t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function P(t,e,i){let r=e[0],s=e[1],n=e[2],a=i[0],o=i[1],u=i[2];return t[0]=s*u-n*o,t[1]=n*a-r*u,t[2]=r*o-s*a,t}function v(t,e,i,r){let s=e[0],n=e[1],a=e[2];return t[0]=s+r*(i[0]-s),t[1]=n+r*(i[1]-n),t[2]=a+r*(i[2]-a),t}function F(t,e,i){let r=e[0],s=e[1],n=e[2];return t[0]=i[0]*r+i[4]*s+i[8]*n+i[12],t[1]=i[1]*r+i[5]*s+i[9]*n+i[13],t[2]=i[2]*r+i[6]*s+i[10]*n+i[14],t}function b(t,e,i){let r=e[0],s=e[1],n=e[2];return t[0]=r*i[0]+s*i[3]+n*i[6],t[1]=r*i[1]+s*i[4]+n*i[7],t[2]=r*i[2]+s*i[5]+n*i[8],t}function R(t,e,i){return C(t,e,i[0],i[1],i[2],i[3])}function C(t,e,i,r,s,n){let a=e[0],o=e[1],u=e[2],l=r*u-s*o,h=s*a-i*u,c=i*o-r*a,f=r*c-s*h,d=s*l-i*c,p=i*h-r*l,m=2*n;return t[0]=a+l*m+2*f,t[1]=o+h*m+2*d,t[2]=u+c*m+2*p,t}const N=(0,r.vt)(),q=(0,r.vt)();function O(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function A(t,e){if(t===e)return!0;let i=t[0],r=t[1],n=t[2],a=e[0],o=e[1],u=e[2],l=(0,s.FD)();return Math.abs(i-a)<=l*Math.max(1,Math.abs(i),Math.abs(a))&&Math.abs(r-o)<=l*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-u)<=l*Math.max(1,Math.abs(n),Math.abs(u))}function E(t,e,i){let r=i[0]-e[0],s=i[1]-e[1],n=i[2]-e[2],a=r*r+s*s+n*n;return a>0?(a=1/Math.sqrt(a),t[0]=r*a,t[1]=s*a,t[2]=n*a,t):(t[0]=0,t[1]=0,t[2]=0,t)}const T=l,G=h,k=c,Q=g,D=x,Z=n,B=w;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:function(t,e){I(N,t),I(q,e);let i=S(N,q);return i>1?0:i<-1?Math.PI:Math.acos(i)},bezier:function(t,e,i,r,s,n){let a=1-n,o=a*a,u=n*n,l=o*a,h=3*n*o,c=3*u*a,f=u*n;return t[0]=e[0]*l+i[0]*h+r[0]*c+s[0]*f,t[1]=e[1]*l+i[1]*h+r[1]*c+s[1]*f,t[2]=e[2]*l+i[2]*h+r[2]*c+s[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,i=1){return t[0]=Math.min(Math.max(t[0],e),i),t[1]=Math.min(Math.max(t[1],e),i),t[2]=Math.min(Math.max(t[2],e),i),t},copy:a,cross:P,crossAndNormalize:function(t,e,i){let r=e[0],s=e[1],n=e[2],a=i[0],o=i[1],u=i[2],l=s*u-n*o,h=n*a-r*u,c=r*o-s*a,f=Math.sqrt(l*l+h*h+c*c);return t[0]=l/f,t[1]=h/f,t[2]=c/f,t},direction:E,dist:Q,distance:g,div:k,divide:c,dot:S,equals:A,exactEquals:O,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,i,r,s,n){let a=n*n,o=a*(2*n-3)+1,u=a*(n-2)+n,l=a*(n-1),h=a*(3-2*n);return t[0]=e[0]*o+i[0]*u+r[0]*l+s[0]*h,t[1]=e[1]*o+i[1]*u+r[1]*l+s[1]*h,t[2]=e[2]*o+i[2]*u+r[2]*l+s[2]*h,t},inverse:M,len:Z,length:n,lerp:v,max:m,min:p,mul:G,multiply:h,negate:z,normalize:I,random:function(t,e=1){let i=s.Ov,r=2*i()*Math.PI,n=2*i()-1,a=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=n*e,t},rotateX:function(t,e,i,r){let s=[],n=[];return s[0]=e[0]-i[0],s[1]=e[1]-i[1],s[2]=e[2]-i[2],n[0]=s[0],n[1]=s[1]*Math.cos(r)-s[2]*Math.sin(r),n[2]=s[1]*Math.sin(r)+s[2]*Math.cos(r),t[0]=n[0]+i[0],t[1]=n[1]+i[1],t[2]=n[2]+i[2],t},rotateY:function(t,e,i,r){let s=[],n=[];return s[0]=e[0]-i[0],s[1]=e[1]-i[1],s[2]=e[2]-i[2],n[0]=s[2]*Math.sin(r)+s[0]*Math.cos(r),n[1]=s[1],n[2]=s[2]*Math.cos(r)-s[0]*Math.sin(r),t[0]=n[0]+i[0],t[1]=n[1]+i[1],t[2]=n[2]+i[2],t},rotateZ:function(t,e,i,r){let s=[],n=[];return s[0]=e[0]-i[0],s[1]=e[1]-i[1],s[2]=e[2]-i[2],n[0]=s[0]*Math.cos(r)-s[1]*Math.sin(r),n[1]=s[0]*Math.sin(r)+s[1]*Math.cos(r),n[2]=s[2],t[0]=n[0]+i[0],t[1]=n[1]+i[1],t[2]=n[2]+i[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:_,scaleAndAdd:y,scaleTo:function(t,e){return _(t,t,e/Z(t))},set:o,sign:d,sqrDist:D,sqrLen:B,squaredDistance:x,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:T,subtract:l,transformMat3:b,transformMat4:F,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:R,transformQuatValues:C},Symbol.toStringTag,{value:"Module"})),i.d(e,["Il",0,Z,"jb",0,T,"lo",0,D,"uE",0,B])},69397(t,e,i){i.d(e,{Qf:()=>u,Qh:()=>a,lM:()=>n,ro:()=>l,rq:()=>h});var r=i(44208),s=i(34275);function n(t){if(!t)return 0;let e=c;for(let i in t)t.hasOwnProperty(i)&&(e+=o(t[i],!1));return e}function a(t){if(!t)return 0;if("number"==typeof t[0])return u(t);if(Array.isArray(t))return function(t){let e=t.length;if(0===e||"number"==typeof t[0])return h(t,8);let i=f;for(let r=0;r<e;r++)i+=o(t[r]);return i}(t);let e=c;for(let i in t)t.hasOwnProperty(i)&&(e+=o(t[i]));return e}function o(t,e=!0){switch(typeof t){case"object":return e?a(t):c;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function u(...t){return t.reduce((t,e)=>t+l(e),0)}function l(t,e=16){return t?(0,s.iu)(t)?t.byteLength+p:Array.isArray(t)?h(t,e):0:0}function h(t,e){return f+t.length*e}const c=32,f=16,d=(0,r.A)("ios")||!(0,r.A)("chrome")&&!(0,r.A)("opr")?8:4,p=145;i.d(e,["JY",0,d])},36745(t,e,i){i.d(e,{z:()=>o});var r=i(4718),s=i(51118),n=i(60408),a=i(92722);class o{static fromOptimized(t,e,i=1){return(new u).initialize(t,e,i)}static fromJSON(t){let[e,i]=h(t),r=(0,n.Pv)(t),s=(0,n.W0)(t);return(new c).initialize(e,i,r,s,1)}static fromOptimizedCIM(t,e,i=1){return(new f).initialize(t,e,i)}static fromJSONCIM(t,e=1){let[i,r]=h(t),s=(0,n.Pv)(t),a=(0,n.W0)(t);return(new d).initialize(i,r,s,a,e)}static fromFeatureSetReader(t){let e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimized(e,i):null}static fromFeatureSetReaderCIM(t){let e=t.readGeometryForDisplay(),i=t.geometryType;return e&&i?this.fromOptimizedCIM(e,i):null}static createEmptyOptimized(t,e=!1,i=!1,r=1){return(new f).initialize(new a.A([],[],e,i),t,r)}static createEmptyJSON(t,e=!1,i=!1){return(new c).initialize([],t,e,i,1)}static createEmptyOptimizedCIM(t,e=!1,i=!1,r=1){return(new f).initialize(new a.A([],[],e,i),t,r)}static createEmptyJSONCIM(t,e=!1,i=!1,r=1){return(new d).initialize([],t,e,i,r)}asJSON(){let t=(0,s.x)(this),{hasZ:e,hasM:i}=this;return"esriGeometryEnvelope"===this.geometryType?{xmin:t[0][0][0],ymin:t[0][0][1],xmax:t[0][2][0],ymax:t[0][2][1]}:"esriGeometryMultipoint"===this.geometryType?{points:t.flat(),hasZ:e,hasM:i}:"esriGeometryPoint"===this.geometryType?{x:t[0][0][0],y:t[0][0][1],z:e?t[0][0][2]:void 0,m:i?t[0][0][e?3:2]:void 0}:"esriGeometryPolygon"===this.geometryType?{rings:t,hasZ:e,hasM:i}:{paths:t,hasZ:e,hasM:i}}getCurrentRingArea(){if(this.pathSize<3)return 0;let t,e,i=0;if(this.seekPathStart(),!this.nextPoint())return 0;t=this.x,e=this.y;let r=t,s=e;for(;this.nextPoint();)i+=(t-this.x)*(e+this.y),t=this.x,e=this.y;return i+=(t-r)*(e+s),-.5*i}invertY(){this.yFactor*=-1}}class u extends o{constructor(){super(...arguments),this._end=-1}get hasZ(){return this._geometry?.hasZ}get hasM(){return this._geometry?.hasM}initialize(t,e,i){return this.geometryType=e,this._stride=t.stride,this._geometry=t,this._pathIndex=-1,this._pathOffset=0,this._pointOffset=-this._stride,this._end=-1,this.yFactor=i,this}reset(){this.initialize(this._geometry,this.geometryType,this.yFactor)}seekPath(t){if(t>=0&&t<this.totalSize){if(this._pathIndex<t)for(;this._pathIndex<t&&this.nextPath(););else if(this._pathIndex>t)for(;this._pathIndex>t&&this.prevPath(););return!0}return!1}seekPathStart(){this._pointOffset=this._pathOffset-this._stride}seekPathEnd(){this._pointOffset=this._end}seekInPath(t){let e=this._pathOffset+t*this._stride;return e>=0&&e<this._end&&(this._pointOffset=e,!0)}nextPoint(){return(this._pointOffset+=this._stride)<this._end}prevPoint(){return(this._pointOffset-=this._stride)>=this._pathOffset}nextPath(){return!(this.pathIndex>=this.totalSize-1||(this._pathIndex>=0&&(this._pathOffset+=this._stride*this.pathSize),this._pathIndex++,this._pointOffset=this._pathOffset-this._stride,this._end=this._pointOffset+this._stride+this._stride*this.pathSize,0))}prevPath(){return!(this.pathIndex<=0||(this._pathIndex--,this._end=this._pathOffset,this._pathOffset-=this._stride*this.pathSize,this._pointOffset=this._pathOffset-this._stride,0))}getCurrentPath(){let t=this._end,e=this._geometry.coords,i=this._pathOffset;return(new u).initialize(new a.A([this.pathSize],e.slice(i,t),this.hasZ,this.hasM),this.geometryType,this.yFactor)}pathLength(){let t=this._end,e=this._stride,i=this._geometry.coords,r=0;for(let s=this._pathOffset+e;s<t;s+=e){let t=i[s-e],n=i[s-e+1],a=i[s]-t,o=i[s+1]-n;r+=Math.sqrt(a*a+o*o)}return r}startPath(){this._geometry.lengths.push(0)}pushPath(t){this.startPath(),this.pushPoints(t)}pushPoint(t){for(let e=0;e<this._stride;++e)this._geometry.coords.push(t[e]);this._geometry.lengths[this.totalSize-1]++}pushXY(t,e){this._geometry.coords.push(t,e),this._geometry.lengths[this.totalSize-1]++}pushPoints(t){for(let e of t)for(let t=0;t<this._stride;++t)this._geometry.coords.push(e[t]);this._geometry.lengths[this.totalSize-1]+=t.length}pushCursor(t){let e=t.asOptimized();this._geometry.coords.push(...e.coords),this._geometry.lengths.push(...e.lengths)}asOptimized(){let t=this._geometry.clone();if(1!==this.yFactor)for(let e=1;e<t.coords.length;e+=this._stride)t.coords[e]*=this.yFactor;return"esriGeometryPoint"===this.geometryType&&(t.lengths.length=0),t}isClosed(){let t=this._geometry.coords,e=this._pathOffset,i=this._end-this._stride;for(let r=0;r<this._stride;r++)if(t[e+r]!==t[i+r])return!1;return!0}clone(){return(new u).initialize(this._geometry.clone(),this.geometryType,this.yFactor)}get totalPoints(){return this._geometry.isPoint?1:this._geometry.lengths.reduce((t,e)=>t+e)}get pathSize(){let{lengths:t}=this._geometry;return this._geometry.isPoint?1:this._pathIndex<0||this._pathIndex>t.length-1?0:t[this._pathIndex]}get totalSize(){return this._geometry.isPoint?1:this._geometry.lengths.length}get x(){return this._geometry.coords[this._pointOffset]}set x(t){this._geometry.coords[this._pointOffset]=t}get y(){return this.yFactor*this._geometry.coords[this._pointOffset+1]}set y(t){this._geometry.coords[this._pointOffset+1]=this.yFactor*t}get z(){return this._geometry.coords[this._pointOffset+2]}set z(t){this._geometry.coords[this._pointOffset+2]=t}get m(){let t=this.hasZ?3:2;return this._geometry.coords[this._pointOffset+t]}set m(t){this._geometry.coords[this._pointOffset+3]=t}get pathIndex(){return this._pathIndex}get _coordIndex(){return this._pointOffset/this._stride}}function l(t){let e=[t.x,t.y];return t.z&&e.push(t.z),t.m&&e.push(t.m),e}function h(t){return(0,n.Bi)(t)?[t.rings,"esriGeometryPolygon"]:(0,n.Rg)(t)?[t.paths,"esriGeometryPolyline"]:(0,n.U9)(t)?[[t.points],"esriGeometryMultipoint"]:(0,n.ZC)(t)?[[[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]],"esriGeometryEnvelope"]:(0,n.fT)(t)?[[[l(t)]],"esriGeometryPoint"]:[[],"esriGeometryPolyline"]}class c extends o{initialize(t,e,i,r,s){return this._paths=t,this.geometryType=e,this.hasZ=i,this.hasM=r,this._pathIndex=this._pointIndex=-1,this.yFactor=s,this._mIndex=this.hasZ?3:2,this}reset(){this._pathIndex=this._pointIndex=-1}seekPath(t){return this._pathIndex=t,this._pointIndex=-1,t>=0&&t<this.totalSize&&(this._currentPath=this._paths[t],!0)}seekPathStart(){this._pointIndex=-1}seekPathEnd(){this._pointIndex=this._currentPath.length}seekInPath(t){return t>=0&&t<this._currentPath.length&&(this._pointIndex=t,this._currentPoint=this._currentPath[this._pointIndex],!0)}nextPoint(){return this._currentPoint=this._currentPath[++this._pointIndex],this._pointIndex<this._currentPath.length}prevPoint(){return this._currentPoint=this._currentPath[--this._pointIndex],this._pointIndex>=0}nextPath(){return this._pointIndex=-1,this._currentPath=this._paths[++this._pathIndex],this._pathIndex<this.totalSize}prevPath(){return this.pathIndex>0&&(this._pointIndex=-1,this._pathIndex--,this._currentPath=this._paths[this._pathIndex],!0)}pathLength(){let t=this._currentPath.length,e=this._currentPath,i=0;for(let r=1;r<t;r++){let t=e[r-1],s=e[r],n=t[0],a=t[1],o=s[0]-n,u=s[1]-a;i+=Math.sqrt(o*o+u*u)}return i}startPath(){this._paths.push([])}getCurrentPath(){return(new c).initialize([this._currentPath],this.geometryType,this.hasZ,this.hasM,this.yFactor)}pushPath(t){this._paths.push(t)}pushPoint(t){this._paths[this.totalSize-1].push(t)}pushXY(t,e){this._paths[this.totalSize-1].push([t,e])}pushPoints(t){this._paths[this.totalSize-1].push(...t)}pushCursor(t){let e=(0,s.x)(t);for(let t of e)this.pushPath(t)}asOptimized(){let{hasZ:t,hasM:e}=this,i=new a.A([],[],t,e),{coords:r,lengths:s}=i;if("esriGeometryPoint"===this.geometryType)r.push(...this._paths[0][0]),s.length=0;else for(let i of this._paths){for(let s of i)r.push(s[0]),r.push(s[1]*this.yFactor),t&&r.push(s[2]),e&&r.push(s[this._mIndex]);s.push(i.length)}return i}isClosed(){let t=this._currentPath[0],e=this._currentPath[this._currentPath.length-1];for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}clone(){return(new c).initialize((0,r.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}get totalPoints(){return this._paths.map(t=>t.length).reduce((t,e)=>t+e)}get pathSize(){return this._pathIndex<0||this._pathIndex>this.totalSize-1?-1:this._paths[this._pathIndex].length}get totalSize(){return this._paths.length}get x(){return this._currentPoint[0]}set x(t){this._currentPoint[0]=t}get y(){return this.yFactor*this._currentPoint[1]}set y(t){this._currentPoint[1]=this.yFactor*t}get z(){return this._currentPoint[2]}set z(t){this._currentPoint[2]=t}get m(){return this._currentPoint[this._mIndex]}set m(t){this._currentPoint[this._mIndex]=t}get pathIndex(){return this._pathIndex}}class f extends u{initialize(t,e,i){return super.initialize(t,e,i),this._controlPoints||=this._controlPoints=Array(this.totalSize).fill(void 0).map(t=>new Set),this}startPath(){super.startPath(),this._controlPoints.push(new Set)}clone(){let t=(new f).initialize(this._geometry.clone(),this.geometryType,this.yFactor);return t._controlPoints=this._controlPoints,t}setControlPoint(){this._controlPoints[this.pathIndex].add(this._coordIndex)}getControlPoint(){return this._controlPoints[this.pathIndex].has(this._coordIndex)}setControlPointAt(t){this._controlPoints[this.pathIndex].add(t)}getControlPointAt(t){return this._controlPoints[this.pathIndex].has(t)}}class d extends c{initialize(t,e,i,r,s){return super.initialize(t,e,i,r,s)}clone(){return(new d).initialize((0,r.o8)(this._paths),this.geometryType,this.hasZ,this.hasM,this.yFactor)}setControlPoint(){this._paths[this.pathIndex][this._pointIndex][4]=1}getControlPoint(){return 1===this._paths[this.pathIndex][this._pointIndex][4]}setControlPointAt(t){this._paths[this.pathIndex][t][4]=1}getControlPointAt(t){return 1===this._paths[this.pathIndex][t][4]}}},4197(t,e,i){i.d(e,{Vj:()=>h,cj:()=>l,jh:()=>n,l5:()=>o,yH:()=>u});var r=i(34275),s=i(9093);function n(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function a(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function o(t,e,i){return Array.isArray(t)?t.slice(e,e+i):t.subarray(e,e+i)}function u(t,e){if(0===e.length)return a(t);if(0===t.length)return a(e);let i=n(t.length+e.length);for(let e=0;e<t.length;++e)i[e]=t[e];for(let r=0;r<e.length;++r)i[t.length+r]=e[r];return i}function l(t){return[...t]}function h(t){let e=(0,s.vt)();for(let i=0;i<16;++i)e[i]=t[i];return e}},70328(t,e,i){i.d(e,{BI:()=>F,C:()=>a,DC:()=>f,Ej:()=>x,Ie:()=>P,Jt:()=>v,Lu:()=>z,Ne:()=>M,RF:()=>c,TF:()=>y,VL:()=>p,aI:()=>R,fA:()=>o,gE:()=>l,gX:()=>g,hZ:()=>S,iT:()=>d,is:()=>b,pg:()=>w,uJ:()=>_,vI:()=>I,vY:()=>u,vt:()=>n,w1:()=>h,yr:()=>m}),i(35522);var r=i(5443),s=(i(19419),i(4197));function n(t=N){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e){for(let i=0;i<6;i++)t[i]=e[i];return t}function o(t,e,i,r,s,a,o=n()){return o[0]=t,o[1]=e,o[2]=i,o[3]=r,o[4]=s,o[5]=a,o}function u(t,e=n()){return function(t,e,i,r=n()){return S(r,C),function(t,e,i=0,r=e.length/3){let s=t[0],n=t[1],a=t[2],o=t[3],u=t[4],l=t[5];for(let t=0;t<r;t++)s=Math.min(s,e[i+3*t]),n=Math.min(n,e[i+3*t+1]),a=Math.min(a,e[i+3*t+2]),o=Math.max(o,e[i+3*t]),u=Math.max(u,e[i+3*t+1]),l=Math.max(l,e[i+3*t+2]);t[0]=s,t[1]=n,t[2]=a,t[3]=o,t[4]=u,t[5]=l}(r,t,e,i),r}(t,0,t.length/3,e)}function l(t,e=(0,s.jh)(24)){let[i,r,n,a,o,u]=t;return e[0]=i,e[1]=r,e[2]=n,e[3]=i,e[4]=r,e[5]=u,e[6]=i,e[7]=o,e[8]=n,e[9]=i,e[10]=o,e[11]=u,e[12]=a,e[13]=r,e[14]=n,e[15]=a,e[16]=r,e[17]=u,e[18]=a,e[19]=o,e[20]=n,e[21]=a,e[22]=o,e[23]=u,e}function h(t,e){return isFinite(t[2])||isFinite(t[5])?new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}):new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function c(t,e,i=t){i[0]=Math.min(t[0],e[0]),i[1]=Math.min(t[1],e[1]),i[2]=Math.min(t[2],e[2]),i[3]=Math.max(t[3],e[3]),i[4]=Math.max(t[4],e[4]),i[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function d(t,[e,i,r]){!function(t,e,i,r){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],e),t[4]=Math.max(t[4],i),t[5]=Math.max(t[5],r)}(t,e,i,r)}function p(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 _(t){return t[2]>=t[5]?0:t[5]-t[2]}function y(t){let e=p(t),i=_(t),r=m(t);return e*e+i*i+r*r}function g(t,e=[0,0,0]){return e[0]=t[0]+p(t)/2,e[1]=t[1]+m(t)/2,e[2]=t[2]+_(t)/2,e}function x(t,e=[0,0,0]){return e[0]=p(t),e[1]=m(t),e[2]=_(t),e}function w(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function z(t,e){return e[0]=t[3],e[1]=t[4],e[2]=t[5],e}function M(t,e,i=t){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i!==t&&(i[3]=t[3],i[4]=t[4],i[5]=t[5]),i}function I(t,e,i=t){return i[3]=e[0],i[4]=e[1],i[5]=e[2],i!==t&&(i[0]=t[0],i[1]=t[1],i[2]=t[2]),t}function S(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}function P(t){return t?S(t,C):n(C)}function v(t,e){return t[0]=e[0],t[1]=e[1],t[2]=-1/0,t[3]=e[2],t[4]=e[3],t[5]=1/0,t}function F(t,e,i,r,s){return t[0]=e,t[1]=i,t[2]=-1/0,t[3]=r,t[4]=s,t[5]=1/0,t}function b(t){return 6===t.length}function R(t,e,i){if(null==t||null==e)return t===e;if(!b(t)||!b(e))return!1;if(i){for(let r=0;r<t.length;r++)if(!i(t[r],e[r]))return!1}else for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],N=[0,0,0,0,0,0];n(),i.d(e,["qv",0,C,"v_",0,N])},78957(t,e,i){i.d(e,{d:()=>h,R:()=>z});class r{constructor(t=s){this._data=[],this._compare=t}get size(){return this._data.length}enqueue(t){if(null==t)return;let{_data:e,_compare:i}=this;e.push(t);let r=e.length-1>>>0,s=e[r];for(;r>0;){let t=r-1>>1,n=e[t];if(!(i(n,s)<=0))break;e[t]=s,e[r]=n,r=t}}dequeue(){let{_data:t,_compare:e}=this,i=t[0],r=t.pop();if(0===t.length)return i;t[0]=r;let s,n,a=0,o=t.length,u=t[0],l=null;for(;;){let i=2*a+1,r=2*a+2;if(l=null,i<o&&(s=t[i],e(s,u)>0&&(l=i)),r<o&&(n=t[r],(null===l&&e(n,u)<=0||null!==l&&e(n,s)<=0)&&(l=r)),null===l)break;t[a]=t[l],t[l]=u,a=l}return i}}const s=(t,e)=>t<e?-1:+(t>e);var n=i(19419),a=i(537),o=i(12359),u=i(95108),l=i(12176);function h(t){if(0===t.totalSize)return null;let e=(0,a.z8)(t);if(!e)return null;let i=4*(Math.abs(e[0])+Math.abs(e[2])+Math.abs(e[1])+Math.abs(e[3])+1)*222045e-19,r=0,s=0;t.reset();for(let e=0;t.nextPath();e++){let i=t.getCurrentRingArea();i>s&&(s=i,r=e)}if(t.seekPath(r),0===t.pathSize)return null;t.seekPathStart();let u=(0,a.B$)(t);if(Math.abs(s)<=2*i*i)return[(u[0]+u[2])/2,(u[1]+u[3])/2];t.seekPathStart();let l=(0,o.w2)(t,(0,n.vt)());if(null===l)return null;if(t.totalPoints<4)return l;let h=[[NaN,NaN],[NaN,NaN],[NaN,NaN],[NaN,NaN]],p=[NaN,NaN,NaN,NaN],m=[NaN,NaN,NaN,NaN],_=!1,w=f(l,t,!0);0===w.distance&&(_=!0,h[0][0]=l[0],h[0][1]=l[1],w=f(l,t,!1)),p[0]=w.distance,m[0]=0;let z=[NaN,NaN],M=!1,I=.25,S=-1,P=NaN;do{if(P=NaN,h[1]=d(t,y(u[0],u[2],I),0,e),!isNaN(h[1][0])&&!isNaN(h[1][1])&&(w=f(h[1],t,!1),P=w.distance),!isNaN(P)&&P>i&&c(h[1],t))M=!0,p[1]=P,m[1]=g(h[1],l);else if(!isNaN(P)&&P>S&&(S=P,z[0]=h[1][0],z[1]=h[1][1]),I-=.01,I<.1){if(!(S>=0))break;M=!0,p[1]=S,h[1][0]=z[0],h[1][1]=z[1],m[1]=g(h[1],l)}}while(!M);M=!1,I=.5,S=-1;let v=.01,F=1;do{if(P=NaN,h[2]=d(t,y(u[0],u[2],I),0,e),!isNaN(h[2][0])&&!isNaN(h[2][1])&&(w=f(h[2],t,!1),P=w.distance),!isNaN(P)&&P>i&&c(h[2],t))M=!0,p[2]=P,m[2]=g(h[2],l);else if(!isNaN(P)&&P>S)S=P,z[0]=h[2][0],z[1]=h[2][1];else if(P>S&&(S=P,z[0]=h[2][0],z[1]=h[2][1]),I=.5+v*F,v+=.01,F*=-1,I<.3||I>.7){if(!(S>=0))break;M=!0,p[2]=S,h[2][0]=z[0],h[2][1]=z[1],m[2]=g(h[2],l)}}while(!M);M=!1,I=.75,S=-1;do{if(P=NaN,h[3]=d(t,y(u[0],u[2],I),0,e),!isNaN(h[3][0])&&!isNaN(h[3][1])&&(w=f(h[3],t,!1),P=w.distance),!isNaN(P)&&P>i&&c(h[3],t))M=!0,p[3]=P,m[3]=g(h[3],l);else if(P>S&&(S=P,z[0]=h[3][0],z[1]=h[3][1]),I+=.01,I>.9){if(!(S>=0))break;M=!0,p[3]=S,h[3][0]=z[0],h[3][1]=z[1],m[3]=g(h[3],l)}}while(!M);let b,R=[0,1,2,3],C=+!_;for(let t=C;t<4;t++)for(let t=C;t<3;t++){let e=m[t],i=m[t+1];x(e,i)>0&&(b=R[t],R[t]=R[t+1],R[t+1]=b,m[t]=i,m[t+1]=e)}let N=C,q=0,O=0;for(let t=C;t<4;t++){switch(t){case 0:O=2*p[R[t]];break;case 1:O=1.66666666*p[R[t]];break;case 2:O=1.33333333*p[R[t]];break;case 3:O=p[R[t]]}O>q&&(q=O,N=R[t])}return h[N]}function c(t,e){let i,r,s,n,a=0;for(e.reset();e.nextPath()&&e.nextPoint();)for(i=e.x,r=e.y;e.nextPoint();i=s,r=n)s=e.x,n=e.y,r>t[1]!=n>t[1]&&((s-i)*(t[1]-r)-(n-r)*(t[0]-i)>0?a++:a--);return 0!==a}function f(t,e,i){if(i&&c(t,e))return{coord:t,distance:0};let r=1/0,s=0,n=0,a=[0,0],o=[0,0],l=[0,0];for(e.reset();e.nextPath()&&e.nextPoint();)if(!(e.pathSize<2))for(a[0]=e.x,a[1]=e.y;e.nextPoint();a=o){o=[e.x,e.y],(0,u.gR)(l,t,a,o);let i=g(t,l);i<r&&(r=i,s=l[0],n=l[1])}return{coord:[s,n],distance:Math.sqrt(r)}}function d(t,e,i,r){let s=[e,0],a=1/0,o=1/0,u=!1,h=!1,c=[[e,r[1]-1],[e,r[3]+1]],f=[0,0],d=[0,0],_=[0,0],y=[[0,0],[0,0]],g=(0,n.vt)();for(t.reset();t.nextPath()&&t.nextPoint();)if(!(t.pathSize<2))for(y[0][0]=t.x,y[0][1]=t.y;t.nextPoint();y[0][0]=y[1][0],y[0][1]=y[1][1]){if(y[1][0]=t.x,y[1][1]=t.y,null===p(g,y)||(d[0]=c[0][0],d[1]=c[0][1],_[0]=c[1][0],_[1]=c[1][1],0===m(g,d,_))||!(0,l.Ql)(c[0],c[1],y[0],y[1],f))continue;let e=f[1];a>o?e<a&&(a=e,u=!0):e<o&&(o=e,h=!0)}return u&&h?s[1]=(a+o)/2:s[0]=s[1]=NaN,s}function p(t,e){if(e.length<2)return null;t||=(0,n.vt)();let[i,r]=e[0],[s,a]=e[1];return t[0]=Math.min(i,s),t[1]=Math.min(r,a),t[2]=Math.max(i,s),t[3]=Math.max(r,a),t}function m(t,e,i){let r=_(e,t),s=_(i,t),n=t[0],a=t[1],o=t[2],u=t[3];if(r&s)return 0;if(!(r|s))return 4;let l=!!r|(s?2:0);do{let l=i[0]-e[0],h=i[1]-e[1];if(l>h)3&r?(1&r?(e[1]+=h*(n-e[0])/l,e[0]=n):(e[1]+=h*(o-e[0])/l,e[0]=o),r=_(e,t)):3&s?(1&s?(i[1]+=h*(n-i[0])/l,i[0]=n):(i[1]+=h*(o-i[0])/l,i[0]=o),s=_(i,t)):r?(4&r?(e[0]+=l*(a-e[1])/h,e[1]=a):(e[0]+=l*(u-e[1])/h,e[1]=u),r=_(e,t)):(4&s?(i[0]+=l*(a-i[1])/h,i[1]=a):(i[0]+=l*(u-i[1])/h,i[1]=u),s=_(i,t));else if(12&r?(4&r?(e[0]+=l*(a-e[1])/h,e[1]=a):(e[0]+=l*(u-e[1])/h,e[1]=u),r=_(e,t)):12&s?(4&s?(i[0]+=l*(a-i[1])/h,i[1]=a):(i[0]+=l*(u-i[1])/h,i[1]=u),s=_(i,t)):r?(1&r?(e[1]+=h*(n-e[0])/l,e[0]=n):(e[1]+=h*(o-e[0])/l,e[0]=o),r=_(e,t)):(1&s?(i[1]+=h*(n-i[0])/l,i[0]=n):(i[1]+=h*(o-i[0])/l,i[0]=o),s=_(i,t)),r&s)return 0}while(r|s);return l}function _(t,e){return+(t[0]<e[0])|(t[0]>e[2])<<1|(t[1]<e[1])<<2|(t[1]>e[3])<<3}function y(t,e,i){return t+(e-t)*i}function g(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function x(t,e){if(t<e)return-1;if(t>e)return 1;if(t===e)return 0;let i=isNaN(t),r=isNaN(e);return i<r?-1:+(i>r)}class w{constructor(t,e,i,r){this.x=t,this.y=e,this.cellSize=i,this.distancefromCellCenter=(0,u.Xf)(t,e,r),this.maxDistanceToPolygon=this.distancefromCellCenter+this.cellSize*Math.SQRT2}}function z(t){if(!t.nextPath()||!t.pathSize)return null;let e=(0,a.B$)(t),i=e[2]-e[0],s=e[3]-e[1];if(0===i||0===s)return[e[0]+i/2,e[1]+s/2];let n=Math.max(Math.min(i,s)/100,1),u=new r((t,e)=>e.maxDistanceToPolygon-t.maxDistanceToPolygon),l=Math.min(i,s),h=l/2,c=0,f=0;for(c=e[0];c<e[2];c+=l)for(f=e[1];f<e[3];f+=l)u.enqueue(new w(c+h,f+h,h,t));t.reset(),t.nextPath();let d=(0,o.IK)(t);if(null===d)return null;let p,m=new w(d[0],d[1],0,t);for(;u.size>0;)p=u.dequeue(),p.distancefromCellCenter>m.distancefromCellCenter&&(m=p),p.maxDistanceToPolygon-m.distancefromCellCenter<=n||(h=p.cellSize/2,u.enqueue(new w(p.x-h,p.y-h,h,t)),u.enqueue(new w(p.x+h,p.y-h,h,t)),u.enqueue(new w(p.x-h,p.y+h,h,t)),u.enqueue(new w(p.x+h,p.y+h,h,t)));return[m.x,m.y]}},62815(t,e,i){i.d(e,{N:()=>o,d:()=>u});var r=i(86211),s=i(73941),n=i(21325),a=i(52006);function o(t,e,i){let r=u(e,i);if(1!==r)switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){null!=t?.z&&(t.z*=e)}(t,r);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t){if(t.curvePaths)for(let i of t.curvePaths)for(let t of i){let i=(0,a.yP)(t);i.length>2&&(i[2]*=e)}if(t.paths)for(let i of t.paths)for(let t of i)t.length>2&&(t[2]*=e)}}(t,r);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t){if(t.curveRings)for(let i of t.curveRings)for(let t of i){let i=(0,a.yP)(t);i.length>2&&(i[2]*=e)}if(t.rings)for(let i of t.rings)for(let t of i)t.length>2&&(t[2]*=e)}}(t,r);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(let i of t.points)i.length>2&&(i[2]*=e)}(t,r);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,r);default:return}}function u(t,e){return null==t||null==e||(0,n.aI)(t,e)||(0,s.xP)(t)||(0,s.xP)(e)?1:(0,r.G9)(t)/(0,r.G9)(e)}},6557(t,e,i){i.r(e),i.d(e,{default:()=>j});var r=i(32198),s=i(21818),n=i(49186),a=i(71511),o=i(44208),u=i(53966),l=i(17676),h=i(563),c=i(39516),f=i(86211),d=i(16930),p=i(70328),m=i(19419),_=i(21325),y=i(53929),g=i(90708),x=i(29441),w=i(75752),z=i(99352),M=i(8384),I=i(58727),S=i(95031),P=i(24460),v=i(64714),F=i(17754),b=i(20437),R=i(95466),C=i(30524),N=i(50639),q=i(42760),O=i(76248),A=(i(98623),i(30661)),E=i(28923),T=i(44320),G=i(35258),k=i(16630);const Q=new A.Z,D="__OBJECTID",Z=8e3;class B{constructor(t,e){this._files=t,this._createFileStream=e,this._fileIndex=0,this._streamIndex=0,this._streams=[],this._pending=new Set,this._resolvedCount=0}async next(t){for(await this._fill(t);this._pending.size>0;){(0,l.Te)(t),await this._fill(t);let e=await W(this._pending);if(this._pending.delete(e.read),this._resolvedCount++,null!=e.chunk)return e.chunk}return null}async _fill(t){for(this._removeDone();this._pending.size<8;){let e=this._getOrCreateNextStream(t);if(null==e)return;this._pending.add(e.read(t))}}_getOrCreateNextStream(t){let e=this._resolvedCount>=8?8:2;if(this._fileIndex<this._files.length&&this._streams.length<e){let e=this._files[this._fileIndex++],i=new V(e.id,this._createFileStream(e,t));return this._streams.push(i),i}return this._getNextStream()}_getNextStream(){let t=this._streams.length;for(let e=0;e<t;e++){let i=(this._streamIndex+e)%t,r=this._streams[i];if(r.canRead)return this._streamIndex=(i+1)%t,r}return null}_removeDone(){let t=this._streamIndex;for(let e=this._streams.length-1;e>=0;e--)this._streams[e].done&&(this._streams.splice(e,1),e<t&&t--);this._streamIndex=this._streams.length>0?t%this._streams.length:0}}function W(t){return Promise.race(Array.from(t,async t=>({read:t,chunk:await t})))}class V{constructor(t,e){this._fileId=t,this._stream=e,this._readCount=0,this._reachedEnd=!1}get canRead(){return!this._reachedEnd}get done(){return this._reachedEnd&&0===this._readCount}async read(t){this._readCount++;try{let e=await(await this._stream).next(t);return null==e?(this._reachedEnd=!0,null):{fileId:this._fileId,chunk:e}}finally{this._readCount--}}}class j{constructor(){this._hasZ=!1,this._hasM=!1,this._queue=new h.QueueProcessor({concurrency:4,process:(t,e)=>this._executeQuery(t,e)}),this._streams=new Map,this._streamIdCounter=0,this._indexMap={},this._handles=new a.A}async load(t){let e=t.spatialReference?d.A.fromJSON(t.spatialReference):void 0;if(e&&!e.isWGS84&&!e.isWebMercator)throw new n.A("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");this._customParameters=t.customParameters,this._loadParameters=t,await this._updateProvider((0,S.M)(t.provider,null,()=>this._customParameters));let i,r=await this._provider.getMetadata(),s=await(0,q.nc)(r,{fields:t.fields?.map(t=>b.A.fromJSON(t)),geometryEncoding:t.geometryEncoding?(0,N.G)(t.geometryEncoding):null,geometryType:t.geometryType?(0,q.hG)(t.geometryType):null,displayOptimization:t.displayOptimization,spatialReference:e});if(this._hasZ=!!r?.hasZ,this._hasM=!!r?.hasM,!s.fields)throw new n.A("parquet:unsupported","Fields must be defined");if(s.spatialReference&&s.geometryType){if(!s.spatialReference)throw new n.A("parquet:unsupported","SpatialReference must be defined");if(!s.spatialReference.isGeographic&&!s.spatialReference.isWebMercator)throw new n.A("parquet:unsupported-projection","Only WGS84 and Web Mercator are supported");s.spatialReference.isGeographic&&!s.spatialReference.isWGS84&&(u.A.getLogger("parquet:unsupported-projection").warn("Found a geographic projection that is not WGS84. Handling as WGS84.",{spatialReference:s.spatialReference}),s.spatialReference=d.A.WGS84),i={geometry:s.geometryEncoding?{geometryType:(0,q.sA)(s.geometryType),spatialReference:s.spatialReference.toJSON(),encoding:s.geometryEncoding.toJSON()}:null,displayOptimization:s.displayOptimization}}this.setCustomParameters(t.customParameters),this._displayOptimization=s.displayOptimization,await this._provider.updateGeometryInfo(i),this._capabilities=rt(await this._getFileStatistics(),this._hasZ,this._hasM);let a=await this._provider.getFiles();if(!a.length)return{layerDefinition:{},capabilities:rt(null,this._hasZ,this._hasM)};let o=await a[0].file;s.file=o;let{fields:l}=s;if(null==l)throw new n.A("parquet-layer:missing-metadata","Unable to create parquet source: cannot infer fields",l);l.push(new b.A({name:D,type:"oid",alias:D}));for(let t of l){let e=o.getColumnId(t.name);null!=e&&(this._indexMap[t.name]=e)}let h=R.A.fromLayerJSON({fields:l.map(t=>t.toJSON()),dateFieldsTimeReference:{timeZoneIANA:"UTC"}});this._fieldsIndex=h;let c=(0,q.sA)(s.geometryType??"point");return this._metadata=G.i.createFeature({fieldsIndex:h.toJSON(),geometryType:c,hasZ:this._hasZ,hasM:this._hasM,featureIdInfo:{type:"object-id",fieldName:D},subtypes:null,subtypeField:null,types:null,typeIdField:null,globalIdField:null,spatialReference:s.spatialReference,outSpatialReference:null,attributeSpatialReference:null,timeInfo:null,timeReferenceUnknownClient:null,dateFieldsTimeZone:"UTC"}),this._queryEngineParams={fieldsIndex:this._metadata.fieldsIndex,geometryType:c,featureIdInfo:{type:"object-id",fieldName:D},hasM:this._hasM,hasZ:this._hasZ,spatialReference:s.spatialReference?.toJSON()??{wkid:4326},aggregateAdapter:null,timeInfo:null,definitionExpression:null},this._fullExtent=r?.extent?r.extent:await this._tryDeriveParquetFullExtent(s),{capabilities:this._capabilities,layerDefinition:{fields:s.fields?.map(t=>t.toJSON()),drawingInfo:(0,v.F0)(c),extent:this._fullExtent??void 0,geometryType:c,hasZ:this._hasZ,hasM:this._hasM,geometryEncoding:s.geometryEncoding?.toJSON(),displayOptimization:s.displayOptimization}}}destroy(){this._provider.destroy(),this._queue.destroy();for(let{handle:t}of this._streams.values())t.remove();this._streams.clear(),this._indexMap={},this._handles.removeAll()}async reload(t){this.destroy(),await this.load(t)}set remoteClient(t){this._source=t.createInvokeProxy("")}setCustomParameters(t){this._customParameters=t}getIndexMap(){return this._indexMap}async updateFileProvider(t){this._loadParameters={...this._loadParameters,provider:t};let e=(0,S.M)(t,this._provider.getGeometryInfo(),()=>this._customParameters);await this._updateProvider(e)}async getDiagnosticsSnapshot(){let t=await this._provider.getFiles();return{files:await Promise.all(t.map(t=>t.getDiagnosticsSnapshot()))}}async getColumnIndex(t){return(await this._getFileInfoById(t.fileId)).getColumnIndex(t.rowGroupIndex,t.columnIndex)}async getOffsetIndex(t){return(await this._getFileInfoById(t.fileId)).getOffsetIndex(t.rowGroupIndex,t.columnIndex)}async queryFeatures(t,e){let i=await(0,I.T2)(t,null,this._queryEngineParams.spatialReference);return this._validateQuery(i),function(t){return!!(t.objectIds?.length||t.outStatistics||t.orderByFields?.length||t.returnDistinctValues)}(i)||(i.resultRecordCount=i.resultRecordCount?Math.min(i.resultRecordCount,Z):Z,i.resultOffset=i.resultOffset??0),i.outStatistics?this._queryStatistics(i,e):(i.returnDistinctValues&&(i.returnGeometry=void 0),(await this._enqueueQuery(i,e)).createQueryResponse())}async queryFeatureCount(t,e){let i=await(0,I.T2)(t,null,this._queryEngineParams.spatialReference);return this._validateQuery(i),H(i)||i.returnDistinctValues||i.groupByFieldsForStatistics?.length||i.outStatistics?.length?(i.returnDistinctValues||(i.outFields=void 0),i.returnGeometry=void 0,(await this._enqueueQuery(i,e)).createQueryResponseForCount()):this._getFeatureCount()}async queryObjectIds(t,e){let i=await(0,I.T2)(t,null,this._queryEngineParams.spatialReference);return this._validateQuery(i),H(i)?(i.resultRecordCount=i.resultRecordCount?Math.min(i.resultRecordCount,8e3):8e3,i.resultOffset=i.resultOffset??0,i.returnGeometry=void 0,i.outFields=void 0,i.returnDistinctValues=void 0,(await this._enqueueQuery(i,e)).items.map(t=>t.getObjectId())):Array.from({length:await this._getFeatureCount()},(t,e)=>e)}async queryAttributeBins(t,e={}){throw new n.A("parquet:unsupported","queryAttributeBins not supported.")}async queryExtent(t,e){let i=await(0,I.T2)(t,null,this._queryEngineParams.spatialReference);if(this._validateQuery(i),this._fullExtent&&!H(i))return{count:await this._getFeatureCount(),extent:this._fullExtent};let r=(0,s.z)(this._metadata.spatialReference);i.returnGeometry=!0,i.outFields=void 0;let n=(0,p.hZ)((0,p.vt)(),p.qv),a=(0,p.vt)(),o=await this._enqueueQuery(i,e),u=0;for(let t of o.items)t.getBounds(a)&&((0,p.RF)(n,a),u+=1);return{count:u,extent:(0,w.Wc)(n,r,i.outSR?(0,s.z)(i.outSR):r.toJSON(),r,!1)}}async queryStream(t,e){if(!e.signal)throw Error("InternalError: AbortSignal must be passed");let i=await this._getCandidateFiles(t),r=new B(i,async(e,i)=>{let r=await e.file,s=await this._createParquetDisplayQuery(r,e.id,t);return r.executeQuery(s,Z,i)}),s=this._streamIdCounter++,n=(0,l.NY)(e.signal,t=>{let e=this._streams.get(s);null!=e&&(e.handle.remove(),this._streams.delete(s))});return this._streams.set(s,{stream:r,handle:n}),s}async getStreamNext(t,e){if(!e.signal)throw Error("InternalError: AbortSignal must be passed");let i=this._streams.get(t);if(!i)return{result:null};let r=await i.stream.next(e.signal);if(null==r)return i.handle.remove(),this._streams.delete(t),{result:null};let s=r.chunk.serialize().buffer,n={fileId:r.fileId,buffer:s};return s instanceof ArrayBuffer?{result:n,transferList:[s]}:{result:n}}async getStreamNextFeatures(t,e){let{result:i}=await this.getStreamNext(t,e);if(null==i)return null;let r=(await(0,O.N)()).ParquetChunk.deserialize(new Uint8Array(i.buffer)),s=new k.s(this._metadata,this._indexMap,r,i.fileId),n=[];for(;s.next();){let t=(0,g.zv)(s.readGeometryWorldSpace(),s.geometryType,s.hasZ,s.hasM),e=s.readAttributes();n.push({attributes:e,geometry:t})}return{features:n}}async createPatch(t,e,i,r,s){if(!s.signal)throw Error("InternalError: AbortSignal must be passed");return(await(await(await this._getFileInfoById(t)).file).createChunkPatch(e,i,r,s.signal)).serialize().buffer}async _updateProvider(t){let e=this._provider;this._handles.removeAll(),this._provider=t,this._handles.add([t.events.on("rangeRead",t=>{this._source.onRangeRead(t)}),t.events.on("sourceChanged",async()=>{await this.reload(this._loadParameters),await this._source.onSourceChange()})]),await(e?.destroy())}async _getCandidateFiles(t){let e=await this._provider.getFiles(),i=await this._getSpatialFilePruning(t);if(null==i)return e;let r=e.filter(t=>this._mayIncludeFileForSpatialPruning(t,i));return"xz"===i.type?function(t,e){return t.slice().sort((t,i)=>{let r=it(t,e),s=it(i,e);return r===s?0:r<s?-1:1})}(r,i):r}async _queryStatistics(t,e){let i=await(0,I.T2)({...t},null,this._queryEngineParams.spatialReference);if(i.returnGeometry=void 0,function(t,e){return!!t.outStatistics?.length&&!H(t)&&!t.groupByFieldsForStatistics?.length&&!t.orderByFields?.length&&!t.returnDistinctValues&&!t.returnAggIds&&t.outStatistics.every(t=>function(t,e){switch(t.statisticType){case"count":return"1"===t.onStatisticField||null!=e.get(t.onStatisticField);case"min":case"max":{let i=e.get(t.onStatisticField);return null!=i&&(0,C.WA)(i)}default:return!1}}(t,e))}(i,this._fieldsIndex)){let t=await this._getStatisticsFromFiles(i);if(t)return t}return(await this._enqueueQuery(i,e)).createQueryResponse()}async _getStatisticsFromFiles(t){let e=await this._provider.getFiles(),i={},r=[];for(let s of t.outStatistics??[]){let t=X(s,e);if(!t.available)return null;i[s.outStatisticFieldName]=t.value,r.push(Y(s,this._fieldsIndex))}return{fields:r,features:[{attributes:i}]}}async _getSpatialFilePruning(t){if("tile"!==t.type&&("arcade"!==t.type||null==t.extent))return null;let e=this._displayOptimization?.index;if(null==e)return null;let i=t.outSpatialReference.wkid;if(null==e.wkid||null==i)return null;let r=e.wkid,s=await(0,O.N)();switch(e.type){case"xz":return{type:"xz",fieldName:(0,y.FG)(e.code),intersects:(n,a)=>s.queryIntersectsXZStatistics(e.fullExtent,t.extent,i,r,e.maxLevel,n,a)};case"z":return{type:"xy",xFieldName:(0,y.FG)(e.xColumn),yFieldName:(0,y.FG)(e.yColumn),intersects:(e,n,a,o)=>s.queryIntersectsXYStatistics(t.extent,i,r,e,n,a,o)}}}_mayIncludeFileForSpatialPruning(t,e){switch(e.type){case"xz":{let i=et(t,e);return"null-only"!==i?.type&&("bounds"!==i?.type||e.intersects(i.minValue,i.maxValue))}case"xy":{let i=t.statistics.statistics.get(e.xFieldName),r=t.statistics.statistics.get(e.yFieldName);return"null-only"!==i?.type&&"null-only"!==r?.type&&("bounds"!==i?.type||"bounds"!==r?.type||e.intersects(i.minValue,i.maxValue,r.minValue,r.maxValue))}}}async _tryDeriveParquetFullExtent(t){if(!t.spatialReference)return null;if(null==this._fullExtent&&"location"===t.geometryEncoding?.type){let e=await this._provider.getFiles(),{xField:i,yField:s}=t.geometryEncoding,n=(0,p.hZ)((0,p.vt)(),p.qv),a=!1;for(let t of e){let e=await t.file;for(let t of e.rowGroups()){let e={stack:[],error:void 0,hasError:!1};try{let o=(0,r.mS)(e,t.columnDescriptorForAttribute(i),!1),u=(0,r.mS)(e,t.columnDescriptorForAttribute(s),!1),l=(0,P.Hk)(o),h=(0,P.Hk)(u);if("bounds"===l?.type&&"bounds"===h?.type){let t=[l.minValue,h.minValue,l.maxValue,h.maxValue];(0,p.DC)(n,t),a=!0}t.free()}catch(t){e.error=t,e.hasError=!0}finally{(0,r.hk)(e)}}}return a?{xmin:n[0],ymin:n[1],xmax:n[3],ymax:n[4],spatialReference:t.spatialReference?.toJSON()}:null}return null}async _getFileInfoById(t){let e=await this._provider.getFiles();for(let i of e)if(i.id===t)return i;throw Error(`InternalError: File ${t} does not exist`)}async _getFileStatistics(){return{featureCount:await this._getFeatureCount(),byteLength:await this._getByteLength()}}async _getFile(t){return(await this._getFileInfoById(t)).file}async _createParquetQuery(t,e,i,r,s){let n=(await(0,O.N)()).Query.new();null!=i&&n.setPreFilterStart(i),null!=r&&n.setPreFilterCount(r),null!=s&&n.setPostFilterCount(s);let a=await this._getRequiredFields(t);n.setOutFields(a),(t.geometry||t.returnGeometry)&&n.setReturnGeometry(!0),n.setReturnZ(!!t.returnZ),n.setReturnM(!!t.returnM);let o=this._tryGetGeneralizedGeometryResolution(t);null!=o&&n.setSourceResolution(o);let u=t.geometry?.spatialReference??this._queryEngineParams.spatialReference,l=u.wkid;if(t.geometry&&((0,_.K8)(u)||(0,_.oT)(u))){let e=(0,m.C)((0,m.vt)(),m.qv);for(let i of(0,w.qo)(t.geometry))(0,m.DC)(e,i);n.setOutSpatialReference(l),n.setExtent({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3]})}if(t.where){let{id:i,file:r}=e;await this._setWhereClause(n,await r,i,t.where)}return n}async _createParquetDisplayQuery(t,e,i){let r=(await(0,O.N)()).Query.new();if("tile"===i.type){r.setExtent(i.extent),r.setQuantizationTransform(i.transform);let t=this._sourceResolution(i.resolution,i.outSpatialReference);null!=t&&r.setSourceResolution(t)}else"arcade"===i.type&&null!=i.extent&&r.setExtent(i.extent);return r.setOutFields(i.outFields.filter(t=>null!=this._indexMap[t])),r.setOutSpatialReference(i.outSpatialReference.wkid),r.setReturnGeometry(i.returnGeometry),r.setReturnZ(i.returnZ),r.setReturnM(i.returnM),i.where&&await this._setWhereClause(r,t,e,i.where),r}async _getFeatureCount(){return(await this._provider.getFiles()).map(t=>t.statistics.rowCount).reduce((t,e)=>t+e,0)}async _getByteLength(){return(await this._provider.getFiles()).map(t=>t.statistics.byteSize).reduce((t,e)=>t+e,0)}_validateQuery(t){if(!this._capabilities.query.supportsStatistics&&t.outStatistics)throw new n.A("parquet:unsupported","Statistics queries are not supported",{query:t});if(!this._capabilities.query.supportsOrderBy&&t.orderByFields?.length)throw new n.A("parquet:unsupported","Queries using orderBy are not supported",{query:t});if(!this._capabilities.query.supportsDistinct&&t.returnDistinctValues)throw new n.A("parquet:unsupported","Queries using returnDistinctValues are not supported",{query:t})}async _setWhereClause(t,e,i,r){let s=this._indexMap,a=this._fieldsIndex,o={getAttribute(t,r){let n=s[r];if(null==n){if("__OBJECTID"===a.get(r)?.name){let e=t.row+t.rowGroupStart;return(0,F.xb)(i,e)}return null}let o=a.get(r);return(0,y.LC)(e,t.rowGroup,t.row,n,o.type)}},u=await(0,c.GP)(r,this._fieldsIndex);if(!u.isStandardized)throw new n.A("sql-parse-error","expression is not standardized");let l=u.fieldNames.map(t=>a.get(t)).filter(t=>t&&null!=this._indexMap[t?.name]);t.setWhere(r),t.setWhereEvaluator((t,e,i)=>u.testFeatureCompiled({rowGroup:t,row:e,rowGroupStart:i},o,null)),t.setWhereFields(l.map(t=>t.name))}async*_streamFeatures(t,e,i,r,s){let n=await this._provider.getFiles(),a=0;for(let o of n){let n=a,u=a+o.statistics.rowCount;if(a+=o.statistics.rowCount,null!=e&&e>=u)continue;let l=null==e?null:Math.max(e-n,0),h=i;if(null!=i){let t=e??0,r=t+i;h=Math.max(Math.min(r,u)-Math.max(t,n),0)}if(0===h)continue;let c=await this._createParquetQuery(t,o,l,h,r),f=await(await o.file).executeQuery(c,Z),d=async()=>{let t=await f.next(s);if(!t)return null;let e=new k.s(this._metadata,this._indexMap,t,o.id);return tt([new E.j(e,null,0,!1)],this._queryEngineParams)},p=await d();for(;null!=p;)yield p,p=await d()}}async _queryFeaturesWithQueryEnginePagination(t,e){let i=[],r=this._streamFeatures(t,null,null,null,e),s=await r.next();for(;!s.done;){let n=await s.value.executeQueryForOpaqueFeatures({...t,where:void 0},e);for(let t of n)i.push(t);s=await r.next()}return i}async _queryFeaturesWithUpfrontPagination(t,e){let i,r,s,n=t.resultOffset??0,a=t.resultRecordCount??Z;!function(t){for(let e in t){let i=e;if(J(i)&&null!==t[i])return!0}return!1}(t)?(n&&=(i=n,0),r=t.resultRecordCount):function(t){for(let e in t){let i=e;if(U(i)&&null!==t[i])return!0}return!1}(t)||(s=n+a);let o=[],u=this._streamFeatures(t,i,r,s,e),l=await u.next();for(;!l.done&&a>0;){let i=await l.value.executeQueryForOpaqueFeatures({...t,where:void 0},e);for(let t of i)if(n>0)n--;else if(o.push(t),--a<=0)return o;l=await u.next()}return o}_enqueueQuery(t,e){return this._queue.push(t,e)}async _executeQuery(t,e){if(t.objectIds?.length){let i=new Map;for(let e of t.objectIds){let t=(0,F.wY)(e),r=(0,F.gE)(e),s=i.get(t);s||(s=[],i.set(t,s)),s.push(r)}let r=[];for(let[s,n]of i.entries()){let i=await this._executeFileIdQuery(t,s,n,e);for(let t of i)r.push(t)}return new M.G(r,t,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,hasM:this._hasM,hasZ:this._hasZ,featureAdapter:Q,featureIdInfo:this._queryEngineParams.featureIdInfo})}if("1=1"===t.where&&(t.where=null),t.resultOffset??=0,t.resultRecordCount??=await this._getFeatureCount(),t.resultRecordCount>2e7&&(!this._displayOptimization||!t.geometry))throw new n.A("parquet:cannot-execute-query","Unable to execute query, dataset is too large.");let i=!!t.orderByFields?.length||!!t.outStatistics?.length||!!t.returnDistinctValues,r=i?await this._queryFeaturesWithQueryEnginePagination(t,e):await this._queryFeaturesWithUpfrontPagination(t,e);return i||(t.resultOffset=0),new M.G(r,t,{fieldsIndex:this._fieldsIndex,geometryType:this._metadata.geometryType,spatialReference:this._queryEngineParams.spatialReference,hasM:this._hasM,hasZ:this._hasZ,featureAdapter:Q,featureIdInfo:this._queryEngineParams.featureIdInfo})}async _executeFileIdQuery(t,e,i,r){let s=new Set(await this._getRequiredFields(t));if(t.where){let e=await(0,c.GP)(t.where,this._fieldsIndex);for(let t of e.fieldNames){let e=this._fieldsIndex.get(t);e&&null!=this._indexMap[e.name]&&s.add(e.name)}}let n=(await(0,O.N)()).Query.new();n.setOutFields(Array.from(s)),n.setReturnGeometry(!!t.returnGeometry),n.setReturnZ(!!t.returnZ),n.setReturnM(!!t.returnM),n.setIds(new Uint32Array(i));let a=await(await this._getFile(e)).executeQuery(n,Z,r),o=await a.next(r),u=0,l=[];for(;null!=o;){let t=new k.s(this._metadata,this._indexMap,o,e),i=new E.j(t,null,u++,!1);l.push(i),o=await a.next(r)}return tt(l,this._queryEngineParams).executeQueryForOpaqueFeatures(t,r)}async _getRequiredFields(t){let e=new Set;if(t.outStatistics)for(let i of(0,x.g9)(this._fieldsIndex,t.outStatistics,t.groupByFieldsForStatistics))e.add(i);else if(t.outFields)for(let i of t.outFields)e.add(i);return(e.has("*")?this._fieldsIndex.fields.map(t=>t.name):Array.from(e)).filter(t=>null!=this._indexMap[t])}_tryGetGeneralizedGeometryResolution(t){if(!this._displayOptimization)return null;let e=t.outSR??this._queryEngineParams.spatialReference;if(!(0,_.K8)(e)&&!(0,_.oT)(e))return null;let i=t.quantizationParameters?.tolerance??t.maxAllowableOffset;return i?this._sourceResolution(i,e):null}_sourceResolution(t,e){let i=this._queryEngineParams.spatialReference,r=(0,f.GA)(e)/(0,f.GA)(i)*t;return!Number.isFinite(r)||r<=0?null:r}}function L(t){switch(t){case"fullText":case"having":case"timeExtent":case"historicMoment":case"aggregateIds":case"uniqueIds":case"gdbVersion":case"objectIds":case"where":case"geometry":case"resultOffset":case"resultRecordCount":return!0;default:return!1}}function J(t){switch(t){case"fullText":case"having":case"timeExtent":case"historicMoment":case"aggregateIds":case"uniqueIds":case"gdbVersion":case"objectIds":case"where":case"geometry":return!0;default:return!1}}function U(t){switch(t){case"fullText":case"having":case"timeExtent":return!0;case"historicMoment":case"aggregateIds":case"uniqueIds":case"gdbVersion":case"objectIds":case"where":case"resultOffset":case"geometry":case"resultRecordCount":return!1}return!1}function H(t){for(let e in t){let i=e;if(L(i)&&null!==t[i])return!0}return!1}function Y(t,e){let i="exceedslimit"===t.statisticType?null:e.get(t.onStatisticField),r="min"!==t.statisticType&&"max"!==t.statisticType||"esriFieldTypeDate"!==i?.type?"esriFieldTypeDouble":i.type;return{name:t.outStatisticFieldName,alias:t.outStatisticFieldName,type:r}}function X(t,e){switch(t.statisticType){case"count":return function(t,e){if("count"!==t.statisticType)return{available:!1,value:null};if("1"===t.onStatisticField)return{available:!0,value:e.reduce((t,e)=>t+e.statistics.rowCount,0)};let i=0;for(let r of e){let e=r.statistics.statistics.get(t.onStatisticField);if(null==e||null==e.nullCount)return{available:!1,value:null};i+=r.statistics.rowCount-e.nullCount}return{available:!0,value:i}}(t,e);case"min":return $(t,e,Math.min);case"max":return $(t,e,Math.max);default:return{available:!1,value:null}}}function $(t,e,i){if("min"!==t.statisticType&&"max"!==t.statisticType)return{available:!1,value:null};let r=null,s="min"===t.statisticType?"minValue":"maxValue";for(let n of e){let e=n.statistics.statistics.get(t.onStatisticField);if(null==e)return{available:!1,value:null};switch(e.type){case"null-only":continue;case"unknown":return{available:!1,value:null};case"bounds":{let t=K(e[s]);if(null==t)return{available:!1,value:null};r=null==r?t:i(r,t);break}}}return{available:!0,value:r}}function K(t){return"number"==typeof t&&Number.isFinite(t)?t:null}function tt(t,e){let i=new T.I;for(let e of t)i.insert(e);return new w.do({...e,featureStore:i})}function et(t,e){return t.statistics.statistics.get(e.fieldName)??null}function it(t,e){let i=et(t,e);return"bounds"===i?.type?i.maxValue-i.minValue:1/0}function rt(t,e,i){let r=t?.featureCount,s=!1;return null!=r&&r<(0,o.A)("parquetlayer-full-query-feature-count")&&(s=!0),{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:i,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},query:{...z.F,maxRecordCount:Z,supportsOrderBy:s,supportsDistinct:!0,supportsStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1}},queryAttributeBins:{supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportsStackBy:!1,supportsSplitBy:!1,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsTrueCurveUpdate:!1,supportsTrueCurveUpdateByTrueCurveClientsOnly:!0,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUploadWithItemId:!1,supportsUpdateWithoutM:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7235],{32198(t,e,n){function r(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function i(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>a,mS:()=>i}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function a(t){function e(e){t.error=t.hasError?new o(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function i(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,function(t){return e(t),i()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69052(t,e,n){n.d(e,{hr:()=>i});var r=n(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return o(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+a(this.range,t-e,n)}minimalMonotonic(t,e,n){return o(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);let n=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(r)?n:r}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function o(t,e,n,r,i=0,o=!1){return(r-=i)<e?r+=a(t,e-r):r>n&&(r-=a(t,r-n)),o&&r===n&&(r=e),r+i}function a(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const u=new i(0,2*Math.PI),l=(new i(-Math.PI,Math.PI),new i(0,360));n.d(e,["ie",0,l,"uC",0,u])},34727(t,e,n){n.d(e,{$8:()=>E,Cc:()=>u,Hx:()=>M,Io:()=>v,KJ:()=>h,OS:()=>D,Sp:()=>m,XM:()=>f,YN:()=>c,ZH:()=>p,b6:()=>S,cU:()=>i,gg:()=>d,hs:()=>l,kU:()=>s,mP:()=>a,or:()=>P,pF:()=>A,qE:()=>o});const r=new Float32Array(1);function i(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function o(t,e,n){return Math.min(Math.max(t,e),n)}function a(t,e){return 0===e?0:Math.ceil(t/e)*e}function u(t,e,n){return t+(e-t)*n}function l(t,e,n,r,i){return u(r,i,(t-e)/(n-e))}function s(t){return t*Math.PI/180}function h(t){return 180*t/Math.PI}function f(t){return Math.acos(o(t,-1,1))}function c(t){return Math.asin(o(t,-1,1))}function m(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}function d(t,e,n=1e-6){return!m(t,e,n)&&t>e}function p(t,e,n=1e-6){return!m(t,e,n)&&t<e}function M(t,e,n=1e-6){return m(t,e,n)||t>e}const g=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function y(t){return g.setFloat64(0,t),g.getBigInt64(0)}const w=1000000n,x=b(1);function b(t){let e=y(t=Math.abs(t)),n=function(t){return g.setBigInt64(0,t),g.getFloat64(0)}(e<=w?w:e-w);return Math.abs(t-n)}function v(t,e,n=x){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=n&&b(Math.min(Math.abs(t),Math.abs(e)))<n)return Math.abs(t-e)<=n;let r=y(t),i=y(e);return!(r<0!=i<0||(r<i?i-r:r-i)>w)}function S(t,e,n=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;let r=Math.abs(t-e),i=Math.abs(t),o=Math.abs(e);if(0===t||0===e||i<1e-12&&o<1e-12){if(r>.01*n)return!1}else if(r/(i+o)>n)return!1;return!0}function E(t){return F(Math.max(-k,Math.min(t,k)))}function F(t){return r[0]=t,r[0]}function P(t){let e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(m(e,1)&&m(n,1)&&m(r,1))}function D(t,e){return(t%e+e)%e}const k=F(34028234663852886e22);function A(t,e,n){if(void 0===n||0==+n)return Math[t](e);if(e=+e,n=+n,isNaN(e)||"number"!=typeof n||n%1!=0)return NaN;let r=e.toString().split("e");return r=(e=Math[t](+(r[0]+"e"+(r[1]?+r[1]-n:-n)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+n:n))}n.d(e,["pq",0,k])},19419(t,e,n){n.d(e,{$9:()=>S,C:()=>o,DC:()=>d,HY:()=>v,IO:()=>f,Ie:()=>F,Rj:()=>b,Uc:()=>x,VL:()=>p,VY:()=>u,Wc:()=>g,aI:()=>D,bx:()=>c,fA:()=>a,fT:()=>m,gR:()=>E,gX:()=>y,ib:()=>w,nw:()=>h,pJ:()=>k,tK:()=>s,uJ:()=>M,vt:()=>i,w1:()=>l}),n(34727);var r=n(5443);function i(t=j){return[t[0],t[1],t[2],t[3]]}function o(t,e){return t!==e&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]),t}function a(t,e,n,r,o=i()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}function u(t,e=i()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function l(t,e,n=new r.A){return n.xmin=t[0],n.ymin=t[1],n.xmax=t[2],n.ymax=t[3],n.spatialReference=e,n}function s(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function h(t,e){e<t[0]&&(t[0]=e),e>t[2]&&(t[2]=e)}function f(t,e){e<t[1]&&(t[1]=e),e>t[3]&&(t[3]=e)}function c(t,{xmin:e,ymin:n,xmax:r,ymax:i}){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],r),t[3]=Math.max(t[3],i)}function m(t,e,n){if(null==e)o(n,t);else if("length"in e)P(e)?(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[2]),n[3]=Math.max(t[3],e[3])):(2===e.length||3===e.length)&&(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[0]),n[3]=Math.max(t[3],e[1]));else switch(e.type){case"extent":n[0]=Math.min(t[0],e.xmin),n[1]=Math.min(t[1],e.ymin),n[2]=Math.max(t[2],e.xmax),n[3]=Math.max(t[3],e.ymax);break;case"point":n[0]=Math.min(t[0],e.x),n[1]=Math.min(t[1],e.y),n[2]=Math.max(t[2],e.x),n[3]=Math.max(t[3],e.y)}}function d(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3])}function p(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}function M(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}function g(t){return p(t)*M(t)}function y(t,e=[0,0]){return e[0]=(t[0]+t[2])/2,e[1]=(t[1]+t[3])/2,e}function w(t){let e=p(t),n=M(t);return Math.sqrt(e*e+n*n)}function x(t,e){return b(t,e[0],e[1])}function b(t,e,n){return e>=t[0]&&n>=t[1]&&e<=t[2]&&n<=t[3]}function v(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function S(t,e,n){return Math.max(e[0],t[0])-n<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])-n<=Math.min(e[3],t[3])}function E(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}function F(t){return t?o(t,A):i(A)}function P(t){return null!=t&&4===t.length}function D(t,e){return P(t)&&P(e)?t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]:null==t&&null==e||t===e}function k(t,e){if(4!==e.length||t[0]===t[2]||t[1]===t[3])return!1;for(let n=0;n<e.length;n++){let r=e[n],i=e[(n+1)%e.length];if(r[0]!==t[0]&&r[0]!==t[2]||r[1]!==t[1]&&r[1]!==t[3])return!1;let o=r[1]===i[1]&&r[0]!==i[0],a=r[0]===i[0]&&r[1]!==i[1];if(!o&&!a)return!1}return!0}const A=[1/0,1/0,-1/0,-1/0],j=[0,0,0,0];n.d(e,["qv",0,A])},49616(t,e,n){n.r(e),n.d(e,{default:()=>h});var r=n(32198),i=n(91429),o=n(19419),a=n(69052);n(21325);var u=n(97441);function l(t,e,n){let[r,i]=n.modelSize,l=null,s=new Map;e.forEach(e=>{s.set(e.lij,(0,u.DE)(t,e))});let h=(t,e,n)=>(0,o.Rj)(t.extent,e,n);return(u,f)=>{let c=Math.round(u),m=Math.round(f);if(!t.wrapAround&&(c<0||c>=r||m<0||m>=i))return[0,0];let[d,p]=function(t,e,n,r){let{extent:i,modelSize:u,valid:l}=t,[s,h,f]=i,c=function(t,e,n){if(null!=n&&t>e){let[r,i]=n;return i-t+(e-r)}return e-t}(s,f,l),m=e/u[0]*c+s;return null!=l&&r&&(m=new a.hr(l[0],l[1]).normalize(m)),[m,(u[1]-n)/u[1]*(0,o.uJ)(i)+h]}(n,u,f,!0);if(!function(t,e,n){let{extent:r,valid:i}=t,[o,a,u,l]=r;return!(n<a||n>l)&&(null!=i&&o>u?e>=u||e<=o:e>=o&&e<=u)}(n,d,p))return[0,0];if(null==l||!h(l,d,p)){l=null;for(let[t,n]of e)if(h(n,d,p)){l=n;break}}if(null==l?.data)return[0,0];let M=s.get(l.lij);if(null==M)return[0,0];let{width:g,height:y,extent:w}=l;return M((d-w[0])/(0,o.VL)(w)*g,y-(p-w[1])/(0,o.uJ)(w)*y)}}let s=class{constructor(){this._tileData=new Map}async generateStreamlines(t){let{flowData:e,flowExtentInfo:n,needsMagnitude:r,simulationSettings:i,startPositions:o}=t,a=f((0,u.DE)(i,e),i,n.modelSize,r,o);return{result:{streamlines:a},transferList:a?.map(t=>t.vertices.buffer)}}async generateTiledStreamlines(t){let{flowDataTiles:e,flowExtentInfo:n,needsMagnitude:r,reset:i,simulationSettings:o,startPositions:a}=t;this._updateTileData(e,i);let u=f(l(o,this._tileData,n),o,n.modelSize,r,a);return{result:{streamlines:u},transferList:u?.map(t=>t.vertices.buffer)??[]}}_updateTileData(t,e){if(e)for(let e of this._tileData.keys())t.has(e)||this._tileData.delete(e);t.forEach((t,e)=>{"delete"===t.type?this._tileData.delete(e):"on-worker"!==t.type&&"invalid"!==t.type&&this._tileData.set(e,t.data)})}};s=(0,r.Cg)([(0,i.$K)("esri.views.3d.support.flow.FlowWorker")],s);const h=s;function f(t,e,n,r,i){if(null==t)return;let o=(0,u.S1)(e,t,n[0],n[1],{positions:i}),a=[],l=function(t){return t?4:3}(r);for(let{vertices:t,stage:e}of o){let n=new Float32Array(t.length*l);for(let e=0;e<t.length;e++)n[e*l]=t[e].x,n[e*l+1]=t[e].y,n[e*l+2]=t[e].time,r&&(n[e*l+3]=t[e].speed);a.push({vertices:n,stage:e,hasMagnitude:r})}return a}},97441(t,e,n){n.d(e,{DE:()=>l,S1:()=>a,dF:()=>u}),n(44208),n(53966);var r=n(34727),i=n(87811),o=n(78659);function a(t,e,n,r,o){if(t.density<=0)return[];let{positions:a}=o,u=[],l=new i.A,f=1/Math.max(t.lineCollisionWidth,1),c=Math.round(n*f),m=Math.round(r*f),d=new Int32Array(c*m);for(let t=0;t<d.length;t++)d[t]=-1;let p={raster:d,width:c,height:m,resolutionFactor:f},M={},g=t.lineSpacing/Math.sqrt(t.density),y=Math.floor(r/g),w=Math.floor(n/g);for(let t=0;t<y;t++){let e=t*g;for(let n=0;n<w;n++){let r=n*g;M[`${n}-${t}`]={x:r,y:e,positions:[]}}}for(let{x:t,y:e}of a){let n=M[`${Math.floor(t/g)}-${Math.floor(e/g)}`];n&&n.positions.push([t,e])}let x=[];for(let t in M){let e=M[t];if(0===e.positions.length)x.push({x:e.x+g/2,y:e.y+g/2,sort:.66+.33*l.getFloat(),stage:0});else{let[t]=e.positions.splice(0,1);x.push({x:t[0],y:t[1],sort:.33*l.getFloat(),stage:1});for(let[t,n]of e.positions)x.push({x:t,y:n,sort:.33+.33*l.getFloat(),stage:2})}}x.sort((t,e)=>t.sort-e.sort);for(let{x:i,y:o,stage:a}of x){if(u.length>=t.maxNumberOfStreamlines)break;let f=t.onlyForwardTracing?s(1,t,e,i,o,[n,r],u.length,p):h(t,e,i,o,[n,r],u.length,l,p);f.length<2||u.push({stage:a,vertices:f})}return u}function u(t){for(let e=0;e<t.mask.length;e++)0===t.mask[e]&&(t.data[2*e]=0,t.data[2*e+1]=0)}function l(t,e){let n=function(t,e,n,r){if(0===r)return t;let i=Math.round(3*r),o=Array(2*i+1),a=0;for(let t=-i;t<=i;t++){let e=Math.exp(-t*t/(r*r));o[t+i]=e,a+=e}for(let t=-i;t<=i;t++)o[t+i]/=a;let u=new Float32Array(t.length);for(let r=0;r<n;r++)for(let n=0;n<e;n++){let a=0,l=0;for(let u=-i;u<=i;u++){if(n+u<0||n+u>=e)continue;let s=o[u+i];a+=s*t[2*(r*e+(n+u))],l+=s*t[2*(r*e+(n+u))+1]}u[2*(r*e+n)]=a,u[2*(r*e+n)+1]=l}let l=new Float32Array(t.length);for(let t=0;t<e;t++)for(let r=0;r<n;r++){let a=0,s=0;for(let l=-i;l<=i;l++){if(r+l<0||r+l>=n)continue;let h=o[l+i];a+=h*u[2*((r+l)*e+t)],s+=h*u[2*((r+l)*e+t)+1]}l[2*(r*e+t)]=a,l[2*(r*e+t)+1]=s}return l}(e.data,e.width,e.height,t.smoothing);return t.interpolate?(t,r)=>{let i=Math.floor(t),o=Math.floor(r);if(i<0||i>=e.width||o<0||o>=e.height)return[0,0];let a=t-i,u=r-o,l=i,s=o,h=i<e.width-1?i+1:i,f=o<e.height-1?o+1:o,c=n[2*(s*e.width+l)],m=n[2*(s*e.width+h)],d=n[2*(f*e.width+l)],p=n[2*(f*e.width+h)],M=n[2*(s*e.width+l)+1],g=n[2*(s*e.width+h)+1];return[(c*(1-u)+d*u)*(1-a)+(m*(1-u)+p*u)*a,(M*(1-u)+n[2*(f*e.width+l)+1]*u)*(1-a)+(g*(1-u)+n[2*(f*e.width+h)+1]*u)*a]}:(t,r)=>{let i=Math.round(t),o=Math.round(r);return i<0||i>=e.width||o<0||o>=e.height?[0,0]:[n[2*(o*e.width+i)],n[2*(o*e.width+i)+1]]}}function s(t,e,n,i,a,u,l,s){let h=[],{raster:f,width:c,height:m,resolutionFactor:d}=s,p=i,M=a,g=(0,o.Kp)(0),[y,w]=n(p,M);y*=e.velocityScale,w*=e.velocityScale;let x,b,v=Math.sqrt(y*y+w*w);h.push({x:p,y:M,time:g,speed:v});for(let i=0;i<e.verticesPerLine;i++){let[i,a]=n(p,M);i*=e.velocityScale,a*=e.velocityScale;let s=Math.sqrt(i*i+a*a);if(s<e.minSpeedThreshold)return h;let y=t*i/s,w=t*a/s;p+=y*e.segmentLength,M+=w*e.segmentLength,e.wrapAround&&(p=(0,r.OS)(p,u[0]));let v=t*e.segmentLength/s;if(g=(0,o.Kp)(g+v),Math.acos(y*x+w*b)>e.maxTurnAngle)return h;if(e.collisions){let t=Math.round(p*d),n=Math.round(M*d);if(e.wrapAround&&(t=(0,r.OS)(t,c)),t<0||t>c-1||n<0||n>m-1)return h;let i=f[n*c+t];if(-1!==i&&i!==l)return h;f[n*c+t]=l}h.push({x:p,y:M,time:g,speed:s}),x=y,b=w}return h}function h(t,e,n,r,i,o,a,u){let l=Math.round((.2+.6*a.getFloat())*t.verticesPerLine),h=t.verticesPerLine-l,f=s(-1,{...t,verticesPerLine:h},e,n,r,i,o,u),c=s(1,{...t,verticesPerLine:l},e,n,r,i,o,u),m=f.reverse();return m.splice(-1,1),m.concat(c)}n(5443),n(21325)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5902],{95902(e,t,n){n.r(t),n.d(t,{TextureCompressionWorkerOutput:()=>T,compress:()=>S,compressRGBADataToKTX2:()=>I,createTextureDataKTX2:()=>N,destroy:()=>u,initializeBasisEncoder:()=>G,initializeDXTEncoder:()=>C});var r=n(2741);let l,a;var _=n(63907);let i,R,E=null,s=null;class T{constructor(e,t){this.internalFormat=e,this.compressedTexture=t}}function u(){E=null,i=null,s=null,R=null,l=null,a=null}async function S(e){let t,n=e.data instanceof ImageBitmap?e.data:null;t=e.data instanceof ImageBitmap?function(e){let t=new OffscreenCanvas(e.width,e.height),n=t.getContext("2d");return n.drawImage(e,0,0),n.getImageData(0,0,t.width,t.height).data}(e.data):function(e,t,n,r,l){let a=new Uint8ClampedArray(e).subarray(0,t*n*r);if(!l)return a;let _=new Uint8ClampedArray(a.length),i=t*r;for(let e=0;e<n;e++){let t=e*i,r=(n-e-1)*i;_.set(a.subarray(t,t+i),r)}return _}(e.data,e.width,e.height,e.components,e.needsFlip);try{let n=e.preMultiplyAlpha&&!e.isOpaque;if(e.hasS3TC){s||await C();let r=s?.encode(t,e.width,e.height,n);if(r){let e=function(e){let t,n,r=new Int32Array(e.buffer,e.byteOffset,31);switch(r[21]){case A:t=8,n=_.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case c:t=16,n=_.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case f:t=16,n=_.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return null}let l=1,a=r[4],i=r[3];(3&a||3&i)&&(a=a+3&-4,i=i+3&-4);let R=a,E=i;131072&r[2]&&(l=Math.max(1,r[7]));let s,T,u=e.byteOffset+r[1]+4,S=[];for(let n=0;n<l;++n)T=(a+3>>2)*(i+3>>2)*t,s=new Uint8Array(e.buffer,u,T),S.push(s),u+=T,a=Math.max(1,a>>1),i=Math.max(1,i>>1);return{textureData:{type:"compressed",levels:S},internalFormat:n,width:R,height:E}}(r),t=[r.buffer];return{result:new T(e?.internalFormat??null,e?.textureData??null),transferList:t}}return{result:new T(null,null)}}if(e.hasETC){if(E||await G(),n&&!s&&await C(),n){let n=new Uint8ClampedArray(t.length);s?.premultiply(new Uint8Array(t),e.width,e.height,n),t=n}let r=I(t,e.width,e.height,e.hasMipmap,void 0,void 0,!1,!1,e.isOpaque),l=r?N(r):null,a=l?.compressedTexture?.levels.map(e=>e.buffer)||[];return{result:new T(l?.internalFormat??null,l?.compressedTexture??null),transferList:a}}return{result:new T(null,null)}}finally{n?.close()}}async function G(){E||(E=await(i??=(l??=(async()=>{let e=await(await n.e(2372).then(()=>n(62372))).default({locateFile:e=>(0,r.s)(`esri/libs/basisu/${e}`)});return e.initializeBasis(),e})(),l)),i=null)}async function C(){s||(s=await(R??=(a??=(async()=>await(await n.e(8714).then(()=>n(98714))).default({locateFile:e=>(0,r.s)(`esri/libs/dxtEncoder/${e}`)}))(),a)),R=null)}function I(e,t,n,r,l=255,a=0,_=!1,i=!1,R=!1){if(!E)return null;let s=new E.BasisEncoder;s.setPerceptual(!i),s.setCheckForAlpha(!R),s.setForceAlpha(!1),s.setRenormalize(i),s.setMipGen(r),s.setMipSRGB(!i),s.setCreateKTX2File(!0),s.setKTX2AndBasisSRGBTransferFunc(!i),s.setQualityLevel(l),s.setETC1SCompressionLevel(a);let T=new Uint8Array(e.byteLength);try{s.setSliceSourceImage(0,new Uint8Array(e),t,n,_);let r=s.encode(T);if(!r)return null;let l=new Uint8Array(T.buffer,0,r),a=new E.KTX2File(new Uint8Array(l));try{if(!a.isValid())return null}finally{a.close(),a.delete()}return l}finally{s.delete()}}function N(e){if(!E)return new T(null,null);let t=new E.KTX2File(new Uint8Array(e));try{if(!t.startTranscoding())return new T(null,null);let[e,n]=t.getHasAlpha()?[1,_.CQ.COMPRESSED_RGBA8_ETC2_EAC]:[0,_.CQ.COMPRESSED_RGB8_ETC2],r=t.getLevels(),l=[];for(let n=0;n<r;n++){let r=new Uint8Array(t.getImageTranscodedSizeInBytes(n,0,0,e));if(!t.transcodeImage(r,n,0,0,e,0,-1,-1))return new T(null,null);l.push(r)}return{internalFormat:n,compressedTexture:{type:"compressed",levels:l}}}finally{t.close(),t.delete()}}function o(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}const A=o("DXT1"),c=o("DXT3"),f=o("DXT5")},63907(e,t,n){const r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},l={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},a=Object.values(l),_={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.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:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.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};n.d(t,["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,l,"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,a,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,_,"pe",0,r,"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}])}}]);