@arcgis/core 4.27.0-next.20230320 → 4.27.0-next.20230321

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 (200) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/29ee4f14602caf6967e4.js +1 -0
  3. package/assets/esri/core/workers/chunks/{c36efbdd0a84fe851bbb.js → 433686dfda9e2ff1f98b.js} +1 -1
  4. package/assets/esri/core/workers/chunks/70ea44365021b665c213.js +1 -0
  5. package/assets/esri/core/workers/chunks/{f150bd21c3b9e098da57.js → 92951b85676df776961f.js} +56 -56
  6. package/assets/esri/core/workers/chunks/{19355af765993931a7c0.js → 9b196a726c6d175ca60f.js} +1 -1
  7. package/assets/esri/core/workers/chunks/bc002e4dff8859571a7a.js +1 -0
  8. package/assets/esri/core/workers/chunks/c5dd23d11fa91b0f318e.js +1 -0
  9. package/assets/esri/core/workers/chunks/c8f019d13f6b22481f2e.js +1 -0
  10. package/assets/esri/core/workers/chunks/f1ab86dbbd5b04e2a96c.js +1 -0
  11. package/assets/esri/themes/base/widgets/_Editor.scss +18 -0
  12. package/assets/esri/themes/base/widgets/_ItemList.scss +13 -33
  13. package/assets/esri/themes/dark/main.css +1 -1
  14. package/assets/esri/themes/light/main.css +1 -1
  15. package/assets/esri/themes/light/view.css +1 -1
  16. package/assets/esri/widgets/Editor/t9n/Editor.json +1 -1
  17. package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
  18. package/assets/esri/widgets/Slice/t9n/Slice_ar.json +1 -1
  19. package/assets/esri/widgets/Slice/t9n/Slice_bg.json +1 -1
  20. package/assets/esri/widgets/Slice/t9n/Slice_bs.json +1 -1
  21. package/assets/esri/widgets/Slice/t9n/Slice_ca.json +1 -1
  22. package/assets/esri/widgets/Slice/t9n/Slice_cs.json +1 -1
  23. package/assets/esri/widgets/Slice/t9n/Slice_da.json +1 -1
  24. package/assets/esri/widgets/Slice/t9n/Slice_de.json +1 -1
  25. package/assets/esri/widgets/Slice/t9n/Slice_el.json +1 -1
  26. package/assets/esri/widgets/Slice/t9n/Slice_es.json +1 -1
  27. package/assets/esri/widgets/Slice/t9n/Slice_et.json +1 -1
  28. package/assets/esri/widgets/Slice/t9n/Slice_fi.json +1 -1
  29. package/assets/esri/widgets/Slice/t9n/Slice_fr.json +1 -1
  30. package/assets/esri/widgets/Slice/t9n/Slice_he.json +1 -1
  31. package/assets/esri/widgets/Slice/t9n/Slice_hr.json +1 -1
  32. package/assets/esri/widgets/Slice/t9n/Slice_hu.json +1 -1
  33. package/assets/esri/widgets/Slice/t9n/Slice_id.json +1 -1
  34. package/assets/esri/widgets/Slice/t9n/Slice_it.json +1 -1
  35. package/assets/esri/widgets/Slice/t9n/Slice_ja.json +1 -1
  36. package/assets/esri/widgets/Slice/t9n/Slice_ko.json +1 -1
  37. package/assets/esri/widgets/Slice/t9n/Slice_lt.json +1 -1
  38. package/assets/esri/widgets/Slice/t9n/Slice_lv.json +1 -1
  39. package/assets/esri/widgets/Slice/t9n/Slice_nb.json +1 -1
  40. package/assets/esri/widgets/Slice/t9n/Slice_nl.json +1 -1
  41. package/assets/esri/widgets/Slice/t9n/Slice_pl.json +1 -1
  42. package/assets/esri/widgets/Slice/t9n/Slice_pt-BR.json +1 -1
  43. package/assets/esri/widgets/Slice/t9n/Slice_pt-PT.json +1 -1
  44. package/assets/esri/widgets/Slice/t9n/Slice_ro.json +1 -1
  45. package/assets/esri/widgets/Slice/t9n/Slice_ru.json +1 -1
  46. package/assets/esri/widgets/Slice/t9n/Slice_sk.json +1 -1
  47. package/assets/esri/widgets/Slice/t9n/Slice_sl.json +1 -1
  48. package/assets/esri/widgets/Slice/t9n/Slice_sr.json +1 -1
  49. package/assets/esri/widgets/Slice/t9n/Slice_sv.json +1 -1
  50. package/assets/esri/widgets/Slice/t9n/Slice_th.json +1 -1
  51. package/assets/esri/widgets/Slice/t9n/Slice_tr.json +1 -1
  52. package/assets/esri/widgets/Slice/t9n/Slice_uk.json +1 -1
  53. package/assets/esri/widgets/Slice/t9n/Slice_vi.json +1 -1
  54. package/assets/esri/widgets/Slice/t9n/Slice_zh-CN.json +1 -1
  55. package/assets/esri/widgets/Slice/t9n/Slice_zh-HK.json +1 -1
  56. package/assets/esri/widgets/Slice/t9n/Slice_zh-TW.json +1 -1
  57. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ar.json +1 -1
  58. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bg.json +1 -1
  59. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_bs.json +1 -1
  60. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ca.json +1 -1
  61. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_cs.json +1 -1
  62. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_da.json +1 -1
  63. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_de.json +1 -1
  64. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_el.json +1 -1
  65. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_es.json +1 -1
  66. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_et.json +1 -1
  67. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fi.json +1 -1
  68. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_fr.json +1 -1
  69. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_he.json +1 -1
  70. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hr.json +1 -1
  71. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_hu.json +1 -1
  72. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_id.json +1 -1
  73. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_it.json +1 -1
  74. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ja.json +1 -1
  75. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ko.json +1 -1
  76. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lt.json +1 -1
  77. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_lv.json +1 -1
  78. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nb.json +1 -1
  79. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_nl.json +1 -1
  80. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pl.json +1 -1
  81. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-BR.json +1 -1
  82. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_pt-PT.json +1 -1
  83. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ro.json +1 -1
  84. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_ru.json +1 -1
  85. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sk.json +1 -1
  86. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sl.json +1 -1
  87. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sr.json +1 -1
  88. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_sv.json +1 -1
  89. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_th.json +1 -1
  90. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_tr.json +1 -1
  91. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_uk.json +1 -1
  92. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_vi.json +1 -1
  93. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-CN.json +1 -1
  94. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-HK.json +1 -1
  95. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_zh-TW.json +1 -1
  96. package/chunks/ColorMaterial.glsl.js +16 -14
  97. package/interfaces.d.ts +1 -1
  98. package/layers/SceneLayer.js +1 -1
  99. package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
  100. package/package.json +1 -1
  101. package/support/revision.js +1 -1
  102. package/views/3d/analysis/Slice/SliceTool.js +1 -1
  103. package/views/3d/analysis/Slice/sliceToolUtils.js +1 -1
  104. package/views/3d/environment/CloudsData.js +1 -1
  105. package/views/3d/environment/CloudsGenerator.js +1 -1
  106. package/views/3d/interactive/editingTools/transformGraphic/GraphicScaleRotateTransform.js +1 -1
  107. package/views/3d/interactive/editingTools/transformGraphic/GraphicTransformTool.js +1 -1
  108. package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateMeshAdapter.js +1 -1
  109. package/views/3d/interactive/editingTools/transformGraphic/ScaleRotateObjectSymbol3DAdapter.js +1 -1
  110. package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
  111. package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
  112. package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
  113. package/views/3d/layers/graphics/Graphics3DIconSymbolLayer.js +1 -1
  114. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  115. package/views/3d/layers/graphics/Graphics3DObjectSymbolLayer.js +1 -1
  116. package/views/3d/layers/graphics/Graphics3DPathSymbolLayer.js +1 -1
  117. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  118. package/views/3d/layers/graphics/Graphics3DSymbol.js +1 -1
  119. package/views/3d/layers/graphics/Graphics3DSymbolLayer.js +1 -1
  120. package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
  121. package/views/3d/layers/graphics/interfaces.js +1 -1
  122. package/views/3d/layers/graphics/polygonUtils.js +1 -1
  123. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  124. package/views/3d/support/buffer/InterleavedLayout.js +1 -1
  125. package/views/3d/support/buffer/glUtil.js +1 -1
  126. package/views/3d/support/buffer/workerHelper.js +1 -1
  127. package/views/3d/support/engineContent/line.js +1 -1
  128. package/views/3d/terrain/TerrainSurface.js +1 -1
  129. package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +2 -2
  130. package/views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js +1 -1
  131. package/views/3d/webgl-engine/lib/DefaultVertexAttributeLocations.js +1 -1
  132. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  133. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  134. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  135. package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
  136. package/views/3d/webgl-engine/shaders/ColorMaterial.glsl.js +1 -1
  137. package/views/3d/webgl-engine/shaders/ColorMaterialTechnique.js +1 -1
  138. package/views/3d/webgl-engine/shaders/ColorMaterialTechniqueConfiguration.js +1 -1
  139. package/views/interactive/tooltip/TransformTooltipInfos.js +1 -1
  140. package/views/interactive/tooltip/content/TooltipContentTransformRotate.js +1 -1
  141. package/views/interactive/tooltip/content/TooltipContentTransformScale.js +1 -1
  142. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  143. package/widgets/Editor/CreateFeaturesWorkflowData.js +1 -1
  144. package/widgets/Editor/EditorViewModel.js +1 -1
  145. package/widgets/Editor/Upload.js +5 -0
  146. package/widgets/Editor/UploadState.js +4 -0
  147. package/widgets/Editor/workflowUtils.js +1 -1
  148. package/widgets/Editor.js +1 -1
  149. package/widgets/FeatureTemplates/ItemList.js +1 -1
  150. package/widgets/FeatureTemplates/TemplateItem.js +1 -1
  151. package/widgets/FeatureTemplates.js +1 -1
  152. package/widgets/LayerList/LayerListViewModel.js +1 -1
  153. package/widgets/ScaleBar/ScaleBarViewModel.js +1 -1
  154. package/assets/esri/core/workers/chunks/1ee774c3f29d8074da12.js +0 -1
  155. package/assets/esri/core/workers/chunks/2883a59fc1fc9e4d71af.js +0 -1
  156. package/assets/esri/core/workers/chunks/4d4cbfe72835c0460b09.js +0 -1
  157. package/assets/esri/core/workers/chunks/5bded2588008117d0c35.js +0 -1
  158. package/assets/esri/core/workers/chunks/9f02a0670ad73718d8f9.js +0 -1
  159. package/assets/esri/core/workers/chunks/ec73d16ef169adfc34fb.js +0 -1
  160. package/assets/esri/widgets/Directions/t9n/Printout.json +0 -1
  161. package/assets/esri/widgets/Directions/t9n/Printout_ar.json +0 -1
  162. package/assets/esri/widgets/Directions/t9n/Printout_bg.json +0 -1
  163. package/assets/esri/widgets/Directions/t9n/Printout_bs.json +0 -1
  164. package/assets/esri/widgets/Directions/t9n/Printout_ca.json +0 -1
  165. package/assets/esri/widgets/Directions/t9n/Printout_cs.json +0 -1
  166. package/assets/esri/widgets/Directions/t9n/Printout_da.json +0 -1
  167. package/assets/esri/widgets/Directions/t9n/Printout_de.json +0 -1
  168. package/assets/esri/widgets/Directions/t9n/Printout_el.json +0 -1
  169. package/assets/esri/widgets/Directions/t9n/Printout_en.json +0 -1
  170. package/assets/esri/widgets/Directions/t9n/Printout_es.json +0 -1
  171. package/assets/esri/widgets/Directions/t9n/Printout_et.json +0 -1
  172. package/assets/esri/widgets/Directions/t9n/Printout_fi.json +0 -1
  173. package/assets/esri/widgets/Directions/t9n/Printout_fr.json +0 -1
  174. package/assets/esri/widgets/Directions/t9n/Printout_he.json +0 -1
  175. package/assets/esri/widgets/Directions/t9n/Printout_hr.json +0 -1
  176. package/assets/esri/widgets/Directions/t9n/Printout_hu.json +0 -1
  177. package/assets/esri/widgets/Directions/t9n/Printout_id.json +0 -1
  178. package/assets/esri/widgets/Directions/t9n/Printout_it.json +0 -1
  179. package/assets/esri/widgets/Directions/t9n/Printout_ja.json +0 -1
  180. package/assets/esri/widgets/Directions/t9n/Printout_ko.json +0 -1
  181. package/assets/esri/widgets/Directions/t9n/Printout_lt.json +0 -1
  182. package/assets/esri/widgets/Directions/t9n/Printout_lv.json +0 -1
  183. package/assets/esri/widgets/Directions/t9n/Printout_nb.json +0 -1
  184. package/assets/esri/widgets/Directions/t9n/Printout_nl.json +0 -1
  185. package/assets/esri/widgets/Directions/t9n/Printout_pl.json +0 -1
  186. package/assets/esri/widgets/Directions/t9n/Printout_pt-BR.json +0 -1
  187. package/assets/esri/widgets/Directions/t9n/Printout_pt-PT.json +0 -1
  188. package/assets/esri/widgets/Directions/t9n/Printout_ro.json +0 -1
  189. package/assets/esri/widgets/Directions/t9n/Printout_ru.json +0 -1
  190. package/assets/esri/widgets/Directions/t9n/Printout_sk.json +0 -1
  191. package/assets/esri/widgets/Directions/t9n/Printout_sl.json +0 -1
  192. package/assets/esri/widgets/Directions/t9n/Printout_sr.json +0 -1
  193. package/assets/esri/widgets/Directions/t9n/Printout_sv.json +0 -1
  194. package/assets/esri/widgets/Directions/t9n/Printout_th.json +0 -1
  195. package/assets/esri/widgets/Directions/t9n/Printout_tr.json +0 -1
  196. package/assets/esri/widgets/Directions/t9n/Printout_uk.json +0 -1
  197. package/assets/esri/widgets/Directions/t9n/Printout_vi.json +0 -1
  198. package/assets/esri/widgets/Directions/t9n/Printout_zh-CN.json +0 -1
  199. package/assets/esri/widgets/Directions/t9n/Printout_zh-HK.json +0 -1
  200. package/assets/esri/widgets/Directions/t9n/Printout_zh-TW.json +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9680],{93860:(e,t,r)=>{function n(e,t){const r=e.count;t||(t=new e.TypedArrayConstructor(r));for(let n=0;n<r;n++)t[n]=e.get(n);return t}r.d(t,{m:()=>n}),Object.freeze(Object.defineProperty({__proto__:null,makeDense:n},Symbol.toStringTag,{value:"Module"}))},10816:(e,t,r)=>{r.d(t,{a:()=>o,f:()=>a,n:()=>s});var n=r(1533);function o(e,t){s(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r=2,o=r){const s=t.length/2;let a=0,i=0;if((0,n.kJ)(t)||(0,n.Q7)(t)){for(let n=0;n<s;++n)e[a]=t[i],e[a+1]=t[i+1],a+=r,i+=o;return}const _=(0,n.Op)(t);if((0,n.B3)(t))for(let n=0;n<s;++n)e[a]=Math.max(t[i]/_,-1),e[a+1]=Math.max(t[i+1]/_,-1),a+=r,i+=o;else for(let n=0;n<s;++n)e[a]=t[i]/_,e[a+1]=t[i+1]/_,a+=r,i+=o}function a(e,t,r,n){const o=e.typedBuffer,s=e.typedBufferStride,a=n?.count??e.count;let i=(n?.dstIndex??0)*s;for(let e=0;e<a;++e)o[i]=t,o[i+1]=r,i+=s}Object.freeze(Object.defineProperty({__proto__:null,fill:a,normalizeIntegerBuffer:s,normalizeIntegerBufferView:o},Symbol.toStringTag,{value:"Module"}))},56067:(e,t,r)=>{function n(e,t){o(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function o(e,t,r=3,n=r){const o=t.length/n;let s=0,a=0;for(let i=0;i<o;++i)e[s]=t[a],e[s+1]=t[a+1],e[s+2]=t[a+2],s+=r,a+=n}function s(e,t,r,n,o){const s=e.typedBuffer,a=e.typedBufferStride,i=o?.count??e.count;let _=(o?.dstIndex??0)*a;for(let e=0;e<i;++e)s[_]=t,s[_+1]=r,s[_+2]=n,_+=a}r.d(t,{a:()=>n,c:()=>o,f:()=>s}),Object.freeze(Object.defineProperty({__proto__:null,copy:o,copyView:n,fill:s},Symbol.toStringTag,{value:"Module"}))},11077:(e,t,r)=>{r.d(t,{a:()=>o,b:()=>i,n:()=>a,s:()=>_,t:()=>s});var n=r(72220);function o(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,o=4,s=o){if(e.length/o!=t.length/s)return void n.c.error("source and destination buffers need to have the same number of elements");const a=e.length/o,i=r[0],_=r[1],u=r[2],E=r[3],T=r[4],R=r[5],c=r[6],A=r[7],f=r[8];let l=0,N=0;for(let r=0;r<a;r++){const r=t[l],n=t[l+1],a=t[l+2],d=t[l+3];e[N]=i*r+E*n+c*a,e[N+1]=_*r+T*n+A*a,e[N+2]=u*r+R*n+f*a,e[N+3]=d,l+=s,N+=o}}function a(e,t){const r=Math.min(e.count,t.count),n=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,a=t.typedBufferStride;for(let e=0;e<r;e++){const t=e*o,r=e*a,i=s[r],_=s[r+1],u=s[r+2],E=i*i+_*_+u*u;if(E>0){const e=1/Math.sqrt(E);n[t]=e*i,n[t+1]=e*_,n[t+2]=e*u}}}function i(e,t,r){_(e.typedBuffer,t,r,e.typedBufferStride)}function _(e,t,r,n=4){const o=Math.min(e.length/n,t.count),s=t.typedBuffer,a=t.typedBufferStride;let i=0,_=0;for(let t=0;t<o;t++)e[_]=r*s[i],e[_+1]=r*s[i+1],e[_+2]=r*s[i+2],e[_+3]=r*s[i+3],i+=a,_+=n}Object.freeze(Object.defineProperty({__proto__:null,normalize:a,scale:_,scaleView:i,shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),o=e.typedBuffer,s=e.typedBufferStride,a=t.typedBuffer,i=t.typedBufferStride;for(let e=0;e<n;e++){const t=e*s,n=e*i;o[t]=a[n]>>r,o[t+1]=a[n+1]>>r,o[t+2]=a[n+2]>>r,o[t+3]=a[n+3]>>r}},transformMat3:s,transformMat3View:o,transformMat4:function(e,t,r){if(e.count!==t.count)return void n.c.error("source and destination buffers need to have the same number of elements");const o=e.count,s=r[0],a=r[1],i=r[2],_=r[3],u=r[4],E=r[5],T=r[6],R=r[7],c=r[8],A=r[9],f=r[10],l=r[11],N=r[12],d=r[13],S=r[14],O=r[15],C=e.typedBuffer,I=e.typedBufferStride,p=t.typedBuffer,L=t.typedBufferStride;for(let e=0;e<o;e++){const t=e*I,r=e*L,n=p[r],o=p[r+1],h=p[r+2],M=p[r+3];C[t]=s*n+u*o+c*h+N*M,C[t+1]=a*n+E*o+A*h+d*M,C[t+2]=i*n+T*o+f*h+S*M,C[t+3]=_*n+R*o+l*h+O*M}}},Symbol.toStringTag,{value:"Module"}))},75488:(e,t,r)=>{function n(e,t){o(e.typedBuffer,t,e.typedBufferStride)}function o(e,t,r=4){const n=t.typedBuffer,o=t.typedBufferStride,s=t.count;let a=0,i=0;for(let t=0;t<s;++t)e[a]=n[i],e[a+1]=n[i+1],e[a+2]=n[i+2],e[a+3]=n[i+3],a+=r,i+=o}function s(e,t,r,n,o,s){const a=e.typedBuffer,i=e.typedBufferStride,_=s?.count??e.count;let u=(s?.dstIndex??0)*i;for(let e=0;e<_;++e)a[u]=t,a[u+1]=r,a[u+2]=n,a[u+3]=o,u+=i}r.d(t,{a:()=>n,c:()=>o,f:()=>s}),Object.freeze(Object.defineProperty({__proto__:null,copy:o,copyView:n,fill:s},Symbol.toStringTag,{value:"Module"}))},23670:(e,t,r)=>{r.d(t,{G:()=>o});var n=r(20102);let o=class{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}since(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.Z(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){const[r,s]=e.split("."),a=/^\s*\d+\s*$/;if(!r||!r.match||!r.match(a))throw new n.Z((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!s||!s.match||!s.match(a))throw new n.Z((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const i=parseInt(r,10),_=parseInt(s,10);return new o(i,_,t)}}},79583:(e,t,r)=>{function n(e){switch(e){case"u8":case"i8":return 1;case"u16":case"i16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}r.d(t,{n1:()=>n})},40270:(e,t,r)=>{r.d(t,{C:()=>_});var n=r(3172),o=r(66643),s=r(20102),a=r(95330),i=r(17452);class _{constructor(e){this._streamDataRequester=e}async loadJSON(e,t){return this._load("json",e,t)}async loadBinary(e,t){return(0,i.HK)(e)?((0,a.k_)(t),(0,i.AH)(e)):this._load("binary",e,t)}async loadImage(e,t){return this._load("image",e,t)}async _load(e,t,r){if(null==this._streamDataRequester)return(await(0,n.default)(t,{responseType:u[e]})).data;const i=await(0,o.q6)(this._streamDataRequester.request(t,e,r));if(!0===i.ok)return i.value;throw(0,a.r9)(i.error),new s.Z("",`Request for resource failed: ${i.error}`)}}const u={image:"image",binary:"array-buffer",json:"json"}},91911:(e,t,r)=>{r.d(t,{p:()=>a});var n=r(1533),o=r(24882),s=r(35371);function a(e,t){switch(t){case s.MX.TRIANGLES:return"number"==typeof(r=e)?(0,o.KF)(r):(0,n.lq)(r)?new Uint16Array(r):r;case s.MX.TRIANGLE_STRIP:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return[];const r=t-2,n=(0,o.$z)(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;t+=1)t%2==0?(n[e++]=t,n[e++]=t+1,n[e++]=t+2):(n[e++]=t+1,n[e++]=t,n[e++]=t+2)}else{let t=0;for(let o=0;o<r;o+=1)o%2==0?(n[t++]=e[o],n[t++]=e[o+1],n[t++]=e[o+2]):(n[t++]=e[o+1],n[t++]=e[o],n[t++]=e[o+2])}return n}(e);case s.MX.TRIANGLE_FAN:return function(e){const t="number"==typeof e?e:e.length;if(t<3)return new Uint16Array(0);const r=t-2,n=r<=65536?new Uint16Array(3*r):new Uint32Array(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;++t)n[e++]=0,n[e++]=t+1,n[e++]=t+2;return n}const o=e[0];let s=e[1],a=0;for(let t=0;t<r;++t){const r=e[t+2];n[a++]=o,n[a++]=s,n[a++]=r,s=r}return n}(e)}var r}},15317:(e,t,r)=>{r.d(t,{$A:()=>s,Ml:()=>i,NM:()=>o,i$:()=>a});var n=r(47026);class o{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding=n.Ti.KTX2_ENCODING}}function s(e){return"encoded-mesh-texture"===e?.type}async function a(e){return new Promise(((t,r)=>{const n=new Blob([e]),o=new FileReader;o.onload=()=>{const e=o.result;t(JSON.parse(e))},o.onerror=e=>{r(e)},o.readAsText(n)}))}async function i(e,t){return t===n.Ti.KTX2_ENCODING?new o(e):new Promise(((r,n)=>{const o=new Blob([e],{type:t}),s=URL.createObjectURL(o),a=new Image,i=()=>{URL.revokeObjectURL(s),"decode"in a?a.decode().then((()=>r(a)),(()=>r(a))).then(u):(r(a),u())},_=e=>{URL.revokeObjectURL(s),n(e),u()},u=()=>{a.removeEventListener("load",i),a.removeEventListener("error",_)};a.addEventListener("load",i),a.addEventListener("error",_),a.src=s}))}},91695:(e,t,r)=>{r.d(t,{Q:()=>y});var n,o,s=r(92604),a=r(13598),i=r(35371),_=r(20102),u=r(30175),E=r(95330),T=r(17452),R=r(23670),c=r(52138),A=r(51305),f=r(94961),l=r(56481),N=r(93860);r(80442);class d{constructor(e){this._data=e,this._offset4=0,this._dataUint32=new Uint32Array(this._data,0,Math.floor(this._data.byteLength/4))}readUint32(){const e=this._offset4;return this._offset4+=1,this._dataUint32[e]}readUint8Array(e){const t=4*this._offset4;return this._offset4+=e/4,new Uint8Array(this._data,t,e)}remainingBytes(){return this._data.byteLength-4*this._offset4}}!function(e){e.SCALAR="SCALAR",e.VEC2="VEC2",e.VEC3="VEC3",e.VEC4="VEC4",e.MAT2="MAT2",e.MAT3="MAT3",e.MAT4="MAT4"}(n||(n={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(o||(o={}));var S=r(74085);const O={baseColorFactor:[1,1,1,1],metallicFactor:1,roughnessFactor:1},C={pbrMetallicRoughness:O,emissiveFactor:[0,0,0],alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1},I={ESRI_externalColorMixMode:"tint"},p=(e={})=>{const t={...O,...e.pbrMetallicRoughness},r=function(e){switch(e.ESRI_externalColorMixMode){case"multiply":case"tint":case"ignore":case"replace":break;default:(0,S.Bg)(e.ESRI_externalColorMixMode),e.ESRI_externalColorMixMode="tint"}return e}({...I,...e.extras});return{...C,...e,pbrMetallicRoughness:t,extras:r}},L={magFilter:i.cw.LINEAR,minFilter:i.cw.LINEAR_MIPMAP_LINEAR,wrapS:i.e8.REPEAT,wrapT:i.e8.REPEAT},h=e=>({...L,...e});var M=r(15317);const m=1179937895;class D{constructor(e,t,r,n){if(this._context=e,this.uri=t,this.json=r,this._glbBuffer=n,this._bufferLoaders=new Map,this._textureLoaders=new Map,this._textureCache=new Map,this._materialCache=new Map,this._nodeParentMap=new Map,this._nodeTransformCache=new Map,this._supportedExtensions=["KHR_texture_basisu"],this._baseUri=function(e){let t,r;return e.replace(/^(.*\/)?([^/]*)$/,((e,n,o)=>(t=n||"",r=o||"",""))),{dirPart:t,filePart:r}}(this.uri).dirPart,this._checkVersionSupported(),this._checkRequiredExtensionsSupported(),null==r.scenes)throw new _.Z("gltf-loader-unsupported-feature","Scenes must be defined.");if(null==r.meshes)throw new _.Z("gltf-loader-unsupported-feature","Meshes must be defined");if(null==r.nodes)throw new _.Z("gltf-loader-unsupported-feature","Nodes must be defined.");this._computeNodeParents()}static async load(e,t,r){if((0,T.HK)(t)){const r=(0,T.sJ)(t);if(r&&"model/gltf-binary"!==r.mediaType)try{const n=JSON.parse(r.isBase64?atob(r.data):r.data);return new D(e,t,n)}catch{}const n=(0,T.AH)(t);if(D._isGLBData(n))return this._fromGLBData(e,t,n)}if(t.endsWith(".gltf")){const n=await e.loadJSON(t,r);return new D(e,t,n)}const n=await e.loadBinary(t,r);if(D._isGLBData(n))return this._fromGLBData(e,t,n);const o=await e.loadJSON(t,r);return new D(e,t,o)}static _isGLBData(e){if(null==e)return!1;const t=new d(e);return t.remainingBytes()>=4&&t.readUint32()===m}static async _fromGLBData(e,t,r){const n=await D._parseGLBData(r);return new D(e,t,n.json,n.binaryData)}static async _parseGLBData(e){const t=new d(e);if(t.remainingBytes()<12)throw new _.Z("gltf-loader-error","GLB binary data is insufficiently large.");const r=t.readUint32(),n=t.readUint32(),o=t.readUint32();if(r!==m)throw new _.Z("gltf-loader-error","Magic first 4 bytes do not fit to expected GLB value.");if(e.byteLength<o)throw new _.Z("gltf-loader-error","GLB binary data is smaller than header specifies.");if(2!==n)throw new _.Z("gltf-loader-unsupported-feature","An unsupported GLB container version was detected. Only version 2 is supported.");let a,i,u=0;for(;t.remainingBytes()>=8;){const e=t.readUint32(),r=t.readUint32();if(0===u){if(1313821514!==r)throw new _.Z("gltf-loader-error","First GLB chunk must be JSON.");if(e<0)throw new _.Z("gltf-loader-error","No JSON data found.");a=await(0,M.i$)(t.readUint8Array(e))}else if(1===u){if(5130562!==r)throw new _.Z("gltf-loader-unsupported-feature","Second GLB chunk expected to be BIN.");i=t.readUint8Array(e)}else s.Z.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] More than 2 GLB chunks detected. Skipping.");u+=1}if(!a)throw new _.Z("gltf-loader-error","No GLB JSON chunk detected.");return{json:a,binaryData:i}}async getBuffer(e,t){const r=this.json.buffers[e];if(null==r.uri){if(null==this._glbBuffer)throw new _.Z("gltf-loader-error","GLB buffer not present");return this._glbBuffer}const n=await this._getBufferLoader(e,t);if(n.byteLength!==r.byteLength)throw new _.Z("gltf-loader-error","Buffer byte lengths should match.");return n}async _getBufferLoader(e,t){const r=this._bufferLoaders.get(e);if(r)return r;const n=this.json.buffers[e].uri,o=this._context.loadBinary(this._resolveUri(n),t).then((e=>new Uint8Array(e)));return this._bufferLoaders.set(e,o),o}async getAccessor(e,t){if(!this.json.accessors)throw new _.Z("gltf-loader-unsupported-feature","Accessors missing.");const r=this.json.accessors[e];if(null==r?.bufferView)throw new _.Z("gltf-loader-unsupported-feature","Some accessor does not specify a bufferView.");if(r.type in[n.MAT2,n.MAT3,n.MAT4])throw new _.Z("gltf-loader-unsupported-feature",`AttributeType ${r.type} is not supported`);const o=this.json.bufferViews[r.bufferView],s=await this.getBuffer(o.buffer,t),a=P[r.type],i=g[r.componentType],u=a*i,E=o.byteStride||u;return{raw:s.buffer,byteStride:E,byteOffset:s.byteOffset+(o.byteOffset||0)+(r.byteOffset||0),entryCount:r.count,isDenselyPacked:E===u,componentCount:a,componentByteSize:i,componentType:r.componentType,min:r.min,max:r.max,normalized:!!r.normalized}}async getIndexData(e,t){if(null==e.indices)return;const r=await this.getAccessor(e.indices,t);if(r.isDenselyPacked)switch(r.componentType){case i.g.UNSIGNED_BYTE:return new Uint8Array(r.raw,r.byteOffset,r.entryCount);case i.g.UNSIGNED_SHORT:return new Uint16Array(r.raw,r.byteOffset,r.entryCount);case i.g.UNSIGNED_INT:return new Uint32Array(r.raw,r.byteOffset,r.entryCount)}else switch(r.componentType){case i.g.UNSIGNED_BYTE:return(0,N.m)(this._wrapAccessor(l.D_,r));case i.g.UNSIGNED_SHORT:return(0,N.m)(this._wrapAccessor(l.av,r));case i.g.UNSIGNED_INT:return(0,N.m)(this._wrapAccessor(l.Nu,r))}}async getPositionData(e,t){if(null==e.attributes.POSITION)throw new _.Z("gltf-loader-unsupported-feature","No POSITION vertex data found.");const r=await this.getAccessor(e.attributes.POSITION,t);if(r.componentType!==i.g.FLOAT)throw new _.Z("gltf-loader-unsupported-feature","Expected type FLOAT for POSITION vertex attribute, but found "+i.g[r.componentType]);if(3!==r.componentCount)throw new _.Z("gltf-loader-unsupported-feature","POSITION vertex attribute must have 3 components, but found "+r.componentCount.toFixed());return this._wrapAccessor(l.ct,r)}async getNormalData(e,t){if(null==e.attributes.NORMAL)throw new _.Z("gltf-loader-error","No NORMAL vertex data found.");const r=await this.getAccessor(e.attributes.NORMAL,t);if(r.componentType!==i.g.FLOAT)throw new _.Z("gltf-loader-unsupported-feature","Expected type FLOAT for NORMAL vertex attribute, but found "+i.g[r.componentType]);if(3!==r.componentCount)throw new _.Z("gltf-loader-unsupported-feature","NORMAL vertex attribute must have 3 components, but found "+r.componentCount.toFixed());return this._wrapAccessor(l.ct,r)}async getTangentData(e,t){if(null==e.attributes.TANGENT)throw new _.Z("gltf-loader-error","No TANGENT vertex data found.");const r=await this.getAccessor(e.attributes.TANGENT,t);if(r.componentType!==i.g.FLOAT)throw new _.Z("gltf-loader-unsupported-feature","Expected type FLOAT for TANGENT vertex attribute, but found "+i.g[r.componentType]);if(4!==r.componentCount)throw new _.Z("gltf-loader-unsupported-feature","TANGENT vertex attribute must have 4 components, but found "+r.componentCount.toFixed());return new l.ek(r.raw,r.byteOffset,r.byteStride,r.byteOffset+r.byteStride*r.entryCount)}async getTextureCoordinates(e,t){if(null==e.attributes.TEXCOORD_0)throw new _.Z("gltf-loader-error","No TEXCOORD_0 vertex data found.");const r=await this.getAccessor(e.attributes.TEXCOORD_0,t);if(2!==r.componentCount)throw new _.Z("gltf-loader-unsupported-feature","TEXCOORD_0 vertex attribute must have 2 components, but found "+r.componentCount.toFixed());if(r.componentType===i.g.FLOAT)return this._wrapAccessor(l.Eu,r);if(!r.normalized)throw new _.Z("gltf-loader-unsupported-feature","Integer component types are only supported for a normalized accessor for TEXCOORD_0.");return function(e){switch(e.componentType){case i.g.BYTE:return new l.Vs(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case i.g.UNSIGNED_BYTE:return new l.xA(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case i.g.SHORT:return new l.or(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case i.g.UNSIGNED_SHORT:return new l.TS(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case i.g.UNSIGNED_INT:return new l.qt(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case i.g.FLOAT:return new l.Eu(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount)}}(r)}async getVertexColors(e,t){if(null==e.attributes.COLOR_0)throw new _.Z("gltf-loader-error","No COLOR_0 vertex data found.");const r=await this.getAccessor(e.attributes.COLOR_0,t);if(4!==r.componentCount&&3!==r.componentCount)throw new _.Z("gltf-loader-unsupported-feature","COLOR_0 attribute must have 3 or 4 components, but found "+r.componentCount.toFixed());if(4===r.componentCount){if(r.componentType===i.g.FLOAT)return this._wrapAccessor(l.ek,r);if(r.componentType===i.g.UNSIGNED_BYTE)return this._wrapAccessor(l.mc,r);if(r.componentType===i.g.UNSIGNED_SHORT)return this._wrapAccessor(l.v6,r)}else if(3===r.componentCount){if(r.componentType===i.g.FLOAT)return this._wrapAccessor(l.ct,r);if(r.componentType===i.g.UNSIGNED_BYTE)return this._wrapAccessor(l.ne,r);if(r.componentType===i.g.UNSIGNED_SHORT)return this._wrapAccessor(l.mw,r)}throw new _.Z("gltf-loader-unsupported-feature","Unsupported component type for COLOR_0 attribute: "+i.g[r.componentType])}hasPositions(e){return void 0!==e.attributes.POSITION}hasNormals(e){return void 0!==e.attributes.NORMAL}hasVertexColors(e){return void 0!==e.attributes.COLOR_0}hasTextureCoordinates(e){return void 0!==e.attributes.TEXCOORD_0}hasTangents(e){return void 0!==e.attributes.TANGENT}async getMaterial(e,t,r){let n=e.material?this._materialCache.get(e.material):void 0;if(!n){const o=null!=e.material?p(this.json.materials[e.material]):p(),s=o.pbrMetallicRoughness,a=this.hasVertexColors(e),i=this.getTexture(s.baseColorTexture,t),_=this.getTexture(o.normalTexture,t),u=r?this.getTexture(o.occlusionTexture,t):void 0,E=r?this.getTexture(o.emissiveTexture,t):void 0,T=r?this.getTexture(s.metallicRoughnessTexture,t):void 0,R=null!=e.material?e.material:-1;n={alphaMode:o.alphaMode,alphaCutoff:o.alphaCutoff,color:s.baseColorFactor,doubleSided:!!o.doubleSided,colorTexture:await i,normalTexture:await _,name:o.name,id:R,occlusionTexture:await u,emissiveTexture:await E,emissiveFactor:o.emissiveFactor,metallicFactor:s.metallicFactor,roughnessFactor:s.roughnessFactor,metallicRoughnessTexture:await T,hasVertexColors:a,ESRI_externalColorMixMode:o.extras.ESRI_externalColorMixMode,colorTextureTransform:s?.baseColorTexture?.extensions?.KHR_texture_transform,normalTextureTransform:o.normalTexture?.extensions?.KHR_texture_transform,occlusionTextureTransform:o.occlusionTexture?.extensions?.KHR_texture_transform,emissiveTextureTransform:o.emissiveTexture?.extensions?.KHR_texture_transform,metallicRoughnessTextureTransform:s?.metallicRoughnessTexture?.extensions?.KHR_texture_transform}}return n}async getTexture(e,t){if(!e)return;if(0!==(e.texCoord||0))throw new _.Z("gltf-loader-unsupported-feature","Only TEXCOORD with index 0 is supported.");const r=e.index,n=this.json.textures[r],o=h(null!=n.sampler?this.json.samplers[n.sampler]:{}),s=this._getTextureSourceId(n),a=this.json.images[s],i=await this._loadTextureImageData(r,n,t);return(0,u.s1)(this._textureCache,r,(()=>{const e=e=>33071===e||33648===e||10497===e,t=e=>{throw new _.Z("gltf-loader-error",`Unexpected TextureSampler WrapMode: ${e}`)};return{data:i,wrapS:e(o.wrapS)?o.wrapS:t(o.wrapS),wrapT:e(o.wrapT)?o.wrapT:t(o.wrapT),minFilter:o.minFilter,name:a.name,id:r}}))}getNodeTransform(e){if(void 0===e)return B;let t=this._nodeTransformCache.get(e);if(!t){const r=this.getNodeTransform(this._getNodeParent(e)),n=this.json.nodes[e];n.matrix?t=(0,c.m)((0,a.c)(),r,n.matrix):n.translation||n.rotation||n.scale?(t=(0,a.b)(r),n.translation&&(0,c.w)(t,t,n.translation),n.rotation&&(G[3]=(0,A.g)(G,n.rotation),(0,c.e)(t,t,G[3],G)),n.scale&&(0,c.k)(t,t,n.scale)):t=(0,a.b)(r),this._nodeTransformCache.set(e,t)}return t}_wrapAccessor(e,t){return new e(t.raw,t.byteOffset,t.byteStride,t.byteOffset+t.byteStride*(t.entryCount-1)+t.componentByteSize*t.componentCount)}_resolveUri(e){return(0,T.hF)(e,this._baseUri)}_getNodeParent(e){return this._nodeParentMap.get(e)}_checkVersionSupported(){const e=R.G.parse(this.json.asset.version,"glTF");U.validate(e)}_checkRequiredExtensionsSupported(){const e=this.json;if(e.extensionsRequired&&!e.extensionsRequired.every((e=>this._supportedExtensions.includes(e))))throw new _.Z("gltf-loader-unsupported-feature","gltf loader was not able to load unsupported feature. Required extensions: "+e.extensionsRequired.join(", "))}_computeNodeParents(){this.json.nodes.forEach(((e,t)=>{e.children&&e.children.forEach((e=>{this._nodeParentMap.set(e,t)}))}))}async _loadTextureImageData(e,t,r){const n=this._textureLoaders.get(e);if(n)return n;const o=this._createTextureLoader(t,r);return this._textureLoaders.set(e,o),o}_getTextureSourceId(e){if(void 0!==e.extensions&&null!==e.extensions.KHR_texture_basisu)return e.extensions.KHR_texture_basisu.source;if(null!==e.source)return e.source;throw new _.Z("gltf-loader-unsupported-feature","Source is expected to be defined for a texture. It can also be omitted in favour of an KHR_texture_basisu extension tag.")}async _createTextureLoader(e,t){const r=this._getTextureSourceId(e),n=this.json.images[r];if(n.uri){if(n.uri.endsWith(".ktx2")){const e=await this._context.loadBinary(this._resolveUri(n.uri),t);return new M.NM(new Uint8Array(e))}return this._context.loadImage(this._resolveUri(n.uri),t)}if(null==n.bufferView)throw new _.Z("gltf-loader-unsupported-feature","Image bufferView must be defined.");if(null==n.mimeType)throw new _.Z("gltf-loader-unsupported-feature","Image mimeType must be defined.");const o=this.json.bufferViews[n.bufferView],s=await this.getBuffer(o.buffer,t);if(null!=o.byteStride)throw new _.Z("gltf-loader-unsupported-feature","byteStride not supported for image buffer");const a=s.byteOffset+(o.byteOffset||0);return(0,M.Ml)(new Uint8Array(s.buffer,a,o.byteLength),n.mimeType)}async getLoadedBuffersSize(){if(this._glbBuffer)return this._glbBuffer.byteLength;const e=await(0,E.WW)(Array.from(this._bufferLoaders.values())),t=await(0,E.WW)(Array.from(this._textureLoaders.values()));return e.reduce(((e,t)=>e+(t?.byteLength??0)),0)+t.reduce(((e,t)=>e+(t?(0,M.$A)(t)?t.data.byteLength:t.width*t.height*4:0)),0)}}const B=(0,c.A)((0,a.c)(),Math.PI/2),U=new R.G(2,0,"glTF"),G=(0,f.a)(),P={SCALAR:1,VEC2:2,VEC3:3,VEC4:4},g={[i.g.BYTE]:1,[i.g.UNSIGNED_BYTE]:1,[i.g.SHORT]:2,[i.g.UNSIGNED_SHORT]:2,[i.g.FLOAT]:4,[i.g.UNSIGNED_INT]:4};let w=0;async function y(e,t,r={},n=!0){const o=await D.load(e,t,r),_="gltf_"+w++,u={lods:[],materials:new Map,textures:new Map,meta:F(o)},E=!(!o.json.asset.extras||"symbolResource"!==o.json.asset.extras.ESRI_type),T=new Map;await x(o,(async(e,t,E,R)=>{const c=T.get(E)??0;T.set(E,c+1);const A=void 0!==e.mode?e.mode:i.MX.TRIANGLES,f=A===i.MX.TRIANGLES||A===i.MX.TRIANGLE_STRIP||A===i.MX.TRIANGLE_FAN?A:null;if(null==f)return void s.Z.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] Unsupported primitive mode ("+i.MX[A]+"). Skipping primitive.");if(!o.hasPositions(e))return void s.Z.getLogger("esri.views.3d.glTF").warn("Skipping primitive without POSITION vertex attribute.");const l=o.getPositionData(e,r),N=o.getMaterial(e,r,n),d=o.hasNormals(e)?o.getNormalData(e,r):null,S=o.hasTangents(e)?o.getTangentData(e,r):null,O=o.hasTextureCoordinates(e)?o.getTextureCoordinates(e,r):null,C=o.hasVertexColors(e)?o.getVertexColors(e,r):null,I=o.getIndexData(e,r),p={transform:(0,a.b)(t),attributes:{position:await l,normal:d?await d:null,texCoord0:O?await O:null,color:C?await C:null,tangent:S?await S:null},indices:await I,primitiveType:f,material:H(u,await N,_)};let L=null;null!=u.meta&&null!=u.meta.ESRI_lod&&"screenSpaceRadius"===u.meta.ESRI_lod.metric&&(L=u.meta.ESRI_lod.thresholds[E]),u.lods[E]=u.lods[E]||{parts:[],name:R,lodThreshold:L},u.lods[E].parts[c]=p}));for(const e of u.lods)e.parts=e.parts.filter((e=>!!e));const R=await o.getLoadedBuffersSize();return{model:u,meta:{isEsriSymbolResource:E,uri:o.uri},customMeta:{},size:R}}function F(e){const t=e.json;let r=null;return t.nodes.forEach((e=>{const t=e.extras;null!=t&&(t.ESRI_proxyEllipsoid||t.ESRI_lod)&&(r=t)})),r}async function x(e,t){const r=e.json,n=r.scenes[r.scene||0].nodes,o=n.length>1,a=[];for(const e of n){const t=r.nodes[e];a.push(i(e,0)),b(t)&&!o&&t.extensions.MSFT_lod.ids.forEach(((e,t)=>i(e,t+1)))}async function i(n,o){const _=r.nodes[n],u=e.getNodeTransform(n);if(null!=_.weights&&s.Z.getLogger("esri.views.3d.glTF").warn("[Unsupported Feature] Morph targets are not supported."),null!=_.mesh){const e=r.meshes[_.mesh];for(const r of e.primitives)a.push(t(r,u,o,e.name))}for(const e of _.children||[])a.push(i(e,o))}await Promise.all(a)}function b(e){return e.extensions&&e.extensions.MSFT_lod&&Array.isArray(e.extensions.MSFT_lod.ids)}function H(e,t,r){const n=t=>{const n=`${r}_tex_${t&&t.id}${t&&t.name?"_"+t.name:""}`;if(t&&!e.textures.has(n)){const r=function(e,t={}){return{data:e,parameters:{wrap:{s:i.e8.REPEAT,t:i.e8.REPEAT,...t.wrap},noUnpackFlip:!0,mipmap:!1,...t}}}(t.data,{wrap:{s:t.wrapS,t:t.wrapT},mipmap:v.includes(t.minFilter),noUnpackFlip:!0});e.textures.set(n,r)}return n},o=`${r}_mat_${t.id}_${t.name}`;if(!e.materials.has(o)){const r=function(e={}){return{color:[1,1,1],opacity:1,alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1,castShadows:!0,receiveShadows:!0,receiveAmbientOcclustion:!0,textureColor:null,textureNormal:null,textureOcclusion:null,textureEmissive:null,textureMetallicRoughness:null,colorTextureTransform:null,normalTextureTransform:null,occlusionTextureTransform:null,emissiveTextureTransform:null,metallicRoughnessTextureTransform:null,emissiveFactor:[0,0,0],metallicFactor:1,roughnessFactor:1,colorMixMode:"multiply",...e}}({color:[t.color[0],t.color[1],t.color[2]],opacity:t.color[3],alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,colorMixMode:t.ESRI_externalColorMixMode,textureColor:t.colorTexture?n(t.colorTexture):void 0,textureNormal:t.normalTexture?n(t.normalTexture):void 0,textureOcclusion:t.occlusionTexture?n(t.occlusionTexture):void 0,textureEmissive:t.emissiveTexture?n(t.emissiveTexture):void 0,textureMetallicRoughness:t.metallicRoughnessTexture?n(t.metallicRoughnessTexture):void 0,emissiveFactor:[t.emissiveFactor[0],t.emissiveFactor[1],t.emissiveFactor[2]],colorTextureTransform:t.colorTextureTransform,normalTextureTransform:t.normalTextureTransform,occlusionTextureTransform:t.occlusionTextureTransform,emissiveTextureTransform:t.emissiveTextureTransform,metallicRoughnessTextureTransform:t.metallicRoughnessTextureTransform,metallicFactor:t.metallicFactor,roughnessFactor:t.roughnessFactor});e.materials.set(o,r)}return o}const v=[i.cw.LINEAR_MIPMAP_LINEAR,i.cw.LINEAR_MIPMAP_NEAREST]},47026:(e,t,r)=>{var n,o,s,a,i,_,u,E,T,R,c;r.d(t,{CE:()=>u,Gv:()=>o,JJ:()=>T,Rw:()=>a,Ti:()=>c,V_:()=>_,Vr:()=>n,hU:()=>i}),function(e){e[e.None=0]="None",e[e.Front=1]="Front",e[e.Back=2]="Back",e[e.COUNT=3]="COUNT"}(n||(n={})),function(e){e[e.Less=0]="Less",e[e.Lequal=1]="Lequal",e[e.COUNT=2]="COUNT"}(o||(o={})),function(e){e[e.BACKGROUND=0]="BACKGROUND",e[e.UPDATE=1]="UPDATE"}(s||(s={})),function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(a||(a={})),function(e){e[e.IntegratedMeshMaskExcluded=1]="IntegratedMeshMaskExcluded",e[e.OutlineVisualElementMask=2]="OutlineVisualElementMask"}(i||(i={})),function(e){e[e.Highlight=0]="Highlight",e[e.MaskOccludee=1]="MaskOccludee",e[e.COUNT=2]="COUNT"}(_||(_={})),function(e){e[e.STRETCH=1]="STRETCH",e[e.PAD=2]="PAD"}(u||(u={})),function(e){e[e.CHANGED=0]="CHANGED",e[e.UNCHANGED=1]="UNCHANGED"}(E||(E={})),function(e){e[e.Blend=0]="Blend",e[e.Opaque=1]="Opaque",e[e.Mask=2]="Mask",e[e.MaskBlend=3]="MaskBlend",e[e.COUNT=4]="COUNT"}(T||(T={})),function(e){e[e.OFF=0]="OFF",e[e.ON=1]="ON"}(R||(R={})),function(e){e.DDS_ENCODING="image/vnd-ms.dds",e.KTX2_ENCODING="image/ktx2",e.BASIS_ENCODING="image/x.basis"}(c||(c={}))},57758:(e,t,r)=>{r.d(t,{K:()=>n});const n=2.1},35371:(e,t,r)=>{var n,o,s,a,i,_,u,E,T,R,c,A,f,l,N,d,S,O,C,I,p,L,h,M;r.d(t,{Br:()=>d,LR:()=>_,Lm:()=>p,Lu:()=>m,MX:()=>o,No:()=>f,OU:()=>L,Tg:()=>S,VI:()=>l,VY:()=>M,Wf:()=>u,_g:()=>h,cw:()=>c,db:()=>a,e8:()=>A,g:()=>E,l1:()=>O,lP:()=>N,q_:()=>D,qi:()=>I,w0:()=>i,wb:()=>T,xS:()=>R,zi:()=>s}),function(e){e[e.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",e[e.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",e[e.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(n||(n={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(o||(o={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(s||(s={})),function(e){e[e.ADD=32774]="ADD",e[e.MIN=32775]="MIN",e[e.MAX=32776]="MAX",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(a||(a={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(i||(i={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(_||(_={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(u||(u={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT"}(E||(E={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(T||(T={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(R||(R={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(c||(c={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(A||(A={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(f||(f={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(l||(l={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(N||(N={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(d||(d={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(S||(S={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(O||(O={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(C||(C={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(I||(I={})),function(e){e[e.TEXTURE=0]="TEXTURE",e[e.RENDER_BUFFER=1]="RENDER_BUFFER",e[e.CUBEMAP=2]="CUBEMAP"}(p||(p={})),function(e){e[e.NONE=0]="NONE",e[e.DEPTH_RENDER_BUFFER=1]="DEPTH_RENDER_BUFFER",e[e.STENCIL_RENDER_BUFFER=2]="STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_RENDER_BUFFER=3]="DEPTH_STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_TEXTURE=4]="DEPTH_STENCIL_TEXTURE"}(L||(L={})),function(e){e[e.Texture=0]="Texture",e[e.BufferObject=1]="BufferObject",e[e.VertexArrayObject=2]="VertexArrayObject",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.FramebufferObject=5]="FramebufferObject",e[e.Renderbuffer=6]="Renderbuffer",e[e.Sync=7]="Sync",e[e.COUNT=8]="COUNT"}(h||(h={})),function(e){e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(M||(M={}));const m=33306;var D,B,U,G,P,g,w;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(D||(D={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(B||(B={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(U||(U={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(G||(G={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(P||(P={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(g||(g={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(w||(w={}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2472],{5732:(t,e,n)=>{n.d(e,{c:()=>i});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}},46521:(t,e,n)=>{function i(){return[1,0,0,0,1,0,0,0,1]}function s(t,e,n,i,s,r,o,c,a){return[t,e,n,i,s,r,o,c,a]}function r(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>r,c:()=>i,f:()=>s}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:i,createView:r,fromValues:s},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function i(){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]]}function r(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>o,a:()=>r,b:()=>s,c:()=>i});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:s,create:i,createView:r,fromValues:function(t,e,n,i,s,r,o,c,a,h,u,l,f,d,_,m){return[t,e,n,i,s,r,o,c,a,h,u,l,f,d,_,m]}},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function i(){return[0,0,0,1]}function s(t){return[t[0],t[1],t[2],t[3]]}function r(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>o,a:()=>i,b:()=>s,c:()=>r});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:s,create:i,createView:r,fromValues:function(t,e,n,i){return[t,e,n,i]}},Symbol.toStringTag,{value:"Module"}))},29268:(t,e,n)=>{n.d(e,{c:()=>g,e:()=>T,g:()=>b,j:()=>p,k:()=>S,l:()=>z}),n(80442);var i,s,r=n(92604),o=n(22021),c=n(52138),a=n(17896),h=n(65617),u=n(98766),l=n(88669);(s=i||(i={}))[s.X=0]="X",s[s.Y=1]="Y",s[s.Z=2]="Z";var f=n(78341),d=n(61277),_=n(12981);const m=g();function g(){return(0,l.c)()}function p(t,e=g()){return(0,u.c)(e,t)}function T(t){return t[3]}function b(t){return t}function O(t,e,n){if(null==e)return!1;const{origin:i,direction:s}=e,r=y;r[0]=i[0]-t[0],r[1]=i[1]-t[1],r[2]=i[2]-t[2];const o=s[0]*s[0]+s[1]*s[1]+s[2]*s[2];if(0===o)return!1;const c=2*(s[0]*r[0]+s[1]*r[1]+s[2]*r[2]),a=c*c-4*o*(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]-t[3]*t[3]);if(a<0)return!1;const h=Math.sqrt(a);let u=(-c-h)/(2*o);const l=(-c+h)/(2*o);return(u<0||l<u&&l>0)&&(u=l),!(u<0||(n&&(n[0]=i[0]+s[0]*u,n[1]=i[1]+s[1]*u,n[2]=i[2]+s[2]*u),0))}const y=(0,h.c)();function S(t,e){return O(t,e,null)}function M(t,e,n){const i=_.WM.get(),s=_.MP.get();(0,a.f)(i,e.origin,e.direction);const r=T(t);(0,a.f)(n,i,e.origin),(0,a.g)(n,n,1/(0,a.l)(n)*r);const o=E(t,e.origin),h=(0,d.EU)(e.origin,n);return(0,c.d)(s,h+o,i),(0,a.m)(n,n,s),n}function R(t,e,n){const i=(0,a.b)(_.WM.get(),e,t),s=(0,a.g)(_.WM.get(),i,t[3]/(0,a.l)(i));return(0,a.a)(n,s,t)}function E(t,e){const n=(0,a.b)(_.WM.get(),e,t),i=(0,a.l)(n),s=T(t),r=s+Math.abs(s-i);return(0,o.ZF)(s/r)}const N=(0,h.c)();function A(t,e,n,s){const r=(0,a.b)(N,e,t);switch(n){case i.X:{const t=(0,o.jE)(r,N)[2];return(0,a.s)(s,-Math.sin(t),Math.cos(t),0)}case i.Y:{const t=(0,o.jE)(r,N),e=t[1],n=t[2],i=Math.sin(e);return(0,a.s)(s,-i*Math.cos(n),-i*Math.sin(n),Math.cos(e))}case i.Z:return(0,a.n)(s,r);default:return}}function x(t,e){const n=(0,a.b)(F,e,t);return(0,a.l)(n)-t[3]}function z(t,e){const n=(0,a.d)(t,e),i=T(t);return n<=i*i}const F=(0,h.c)(),v=g();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:m,altitudeAt:x,angleToSilhouette:E,axisAt:A,clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return O(t,e,n)?n:((0,f.JI)(e,t,n),R(t,n,n))},closestPointOnSilhouette:M,containsPoint:z,copy:p,create:g,distanceToSilhouette:function(t,e){const n=(0,a.b)(_.WM.get(),e,t),i=(0,a.p)(n),s=t[3]*t[3];return Math.sqrt(Math.abs(i-s))},elevate:function(t,e,n){return t!==n&&(0,a.c)(n,t),n[3]=t[3]+e,n},fromCenterAndRadius:function(t,e){return(0,l.f)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:function(t,e,n,i){return(0,l.f)(t,e,n,i)},getCenter:b,getRadius:T,intersectRay:O,intersectRayClosestSilhouette:function(t,e,n){if(O(t,e,n))return n;const i=M(t,e,_.WM.get());return(0,a.a)(n,e.origin,(0,a.g)(_.WM.get(),e.direction,(0,a.i)(e.origin,i)/(0,a.l)(e.direction))),n},intersectsRay:S,projectPoint:R,setAltitudeAt:function(t,e,n,s){const r=x(t,e),o=A(t,e,i.Z,F),c=(0,a.g)(F,o,n-r);return(0,a.a)(s,e,c)},setExtent:function(t,e,n){return r.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t===n?n:p(t,n)},tmpSphere:v,wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function i(){return[0,0]}function s(t,e){return[t,e]}function r(t,e){return new Float64Array(t,e,2)}function o(){return s(1,1)}function c(){return s(1,0)}function a(){return s(0,1)}n.d(e,{a:()=>i,c:()=>r,f:()=>s});const h=o(),u=c(),l=a();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_X:u,UNIT_Y:l,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:i,createView:r,fromArray:function(t){const e=[0,0],n=Math.min(2,t.length);for(let i=0;i<n;++i)e[i]=t[i];return e},fromValues:s,ones:o,unitX:c,unitY:a,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},88669:(t,e,n)=>{function i(){return[0,0,0,0]}function s(t,e,n,i){return[t,e,n,i]}function r(t,e){return new Float64Array(t,e,4)}function o(){return s(1,1,1,1)}function c(){return s(1,0,0,0)}function a(){return s(0,1,0,0)}function h(){return s(0,0,1,0)}function u(){return s(0,0,0,1)}n.d(e,{a:()=>r,c:()=>i,f:()=>s});const l=o(),f=c(),d=a(),_=h(),m=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_W:m,UNIT_X:f,UNIT_Y:d,UNIT_Z:_,ZEROS:[0,0,0,0],clone:function(t){return[t[0],t[1],t[2],t[3]]},create:i,createView:r,fromArray:function(t){const e=[0,0,0,0],n=Math.min(4,t.length);for(let i=0;i<n;++i)e[i]=t[i];return e},fromValues:s,ones:o,unitW:u,unitX:c,unitY:a,unitZ:h,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},69801:(t,e,n)=>{n.d(e,{WJ:()=>c,Xq:()=>o});var i,s,r=n(44553);(s=i||(i={}))[s.ALL=0]="ALL",s[s.SOME=1]="SOME";class o{constructor(t,e,n){this._namespace=t,this._storage=e,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),this._namespace+=":",n&&(this._storage.registerRemoveFunc(this._namespace,n),this._removeFunc=!0)}destroy(){this._storage.clear(this._namespace),this._removeFunc&&this._storage.deregisterRemoveFunc(this._namespace),this._storage.deregister(this),this._storage=null}get namespace(){return this._namespace.slice(0,-1)}get hitRate(){return this._hit/(this._hit+this._miss)}get size(){return this._storage.size}get maxSize(){return this._storage.maxSize}resetHitRate(){this._hit=this._miss=0}put(t,e,n,i=0){this._storage.put(this._namespace+t,e,n,i)}get(t){const e=this._storage.get(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}pop(t){const e=this._storage.pop(this._namespace+t);return void 0===e?++this._miss:++this._hit,e}updateSize(t,e,n){this._storage.updateSize(this._namespace+t,e,n)}clear(){this._storage.clear(this._namespace)}clearAll(){this._storage.clearAll()}getStats(){return this._storage.getStats()}resetStats(){this._storage.resetStats()}}class c{constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new r.Z,this._users=new r.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(t){this._users.push(t)}deregister(t){this._users.removeUnordered(t)}registerRemoveFunc(t,e){this._removeFuncs.push([t,e])}deregisterRemoveFunc(t){this._removeFuncs.filterInPlace((e=>e[0]!==t))}get size(){return this._size}get sizeMB(){return this._size/1024/1024}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,0),this._checkSizeLimit()}put(t,e,n,s){const r=this._db.get(t);if(r&&(this._size-=r.size,this._db.delete(t),r.entry!==e&&this._notifyRemove(t,r.entry,i.ALL)),n>this._maxSize)return void this._notifyRemove(t,e,i.ALL);if(void 0===e)return void console.warn("Refusing to cache undefined entry ");if(!n||n<0)return void console.warn("Refusing to cache entry with invalid size "+n);const o=1+Math.max(s,-3)- -3;this._db.set(t,{entry:e,size:n,lifetime:o,lives:o}),this._size+=n,this._checkSizeLimit()}updateSize(t,e,n){const s=this._db.get(t);if(s&&s.entry===e){for(this._size-=s.size;n>this._maxSize;){const s=this._notifyRemove(t,e,i.SOME);if(!(null!=s&&s>0))return void this._db.delete(t);n=s}s.size=n,this._size+=n,this._checkSizeLimit()}}pop(t){const e=this._db.get(t);if(e)return this._size-=e.size,this._db.delete(t),++this._hit,e.entry;++this._miss}get(t){const e=this._db.get(t);if(void 0!==e)return this._db.delete(t),e.lives=e.lifetime,this._db.set(t,e),++this._hit,e.entry;++this._miss}getStats(){const 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={},n=new Array;this._db.forEach(((t,i)=>{const s=t.lifetime;n[s]=(n[s]||0)+t.size,this._users.forAll((n=>{const s=n.namespace;if(i.startsWith(s)){const n=e[s]||0;e[s]=n+t.size}}))}));const i={};this._users.forAll((t=>{const n=t.namespace;if(!isNaN(t.hitRate)&&t.hitRate>0){const s=e[n]||0;e[n]=s,i[n]=Math.round(100*t.hitRate)+"%"}else i[n]="0%"}));const s=Object.keys(e);s.sort(((t,n)=>e[n]-e[t])),s.forEach((n=>t[n]=Math.round(e[n]/2**20)+"MB / "+i[n]));for(let e=n.length-1;e>=0;--e){const i=n[e];i&&(t["Priority "+(e+-3-1)]=Math.round(i/this.size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forAll((t=>t.resetHitRate()))}clear(t){this._db.forEach(((e,n)=>{n.startsWith(t)&&(this._size-=e.size,this._db.delete(n),this._notifyRemove(n,e.entry,i.ALL))}))}clearAll(){this._db.forEach(((t,e)=>this._notifyRemove(e,t.entry,i.ALL))),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,n){let i;return this._removeFuncs.some((s=>{if(t.startsWith(s[0])){const t=s[1](e,n);return"number"==typeof t&&(i=t),!0}return!1})),i}_checkSizeLimit(){if(!(this._size<=this._maxSize))for(const[t,e]of this._db){if(this._db.delete(t),e.lives<=1){this._size-=e.size;const n=this._notifyRemove(t,e.entry,i.SOME);null!=n&&n>0&&(this._size+=n,e.lives=e.lifetime,e.size=n,this._db.set(t,e))}else--e.lives,this._db.set(t,e);if(this._size<=.9*this.maxSize)return}}}},22807:(t,e,n)=>{n.d(e,{x:()=>s});var i=n(41213);class s{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*r);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,r));t++)this._items.push(this._allocator())}}const r=1024},43090:(t,e,n)=>{function i(t){return 32+t.length}function s(t){if(!t)return 0;let e=a;for(const n in t)if(t.hasOwnProperty(n)){const s=t[n];switch(typeof s){case"string":e+=i(s);break;case"number":e+=16;break;case"boolean":e+=4}}return e}function r(t){if(!t)return 0;if(Array.isArray(t))return function(t){const e=t.length;if(0===e||"number"==typeof t[0])return 32+8*e;let n=h;for(let i=0;i<e;i++)n+=o(t[i]);return n}(t);let e=a;for(const n in t)t.hasOwnProperty(n)&&(e+=o(t[n]));return e}function o(t){switch(typeof t){case"object":return r(t);case"string":return i(t);case"number":return 16;case"boolean":return 4;default:return 8}}function c(t,e){return h+t.length*e}n.d(e,{Ul:()=>r,Y8:()=>u,do:()=>c,f2:()=>s});const a=32,h=32;var u;!function(t){t[t.KILOBYTES=1024]="KILOBYTES",t[t.MEGABYTES=1048576]="MEGABYTES",t[t.GIGABYTES=1073741824]="GIGABYTES"}(u||(u={}))},16996:(t,e,n)=>{n.d(e,{Ue:()=>a,nF:()=>u,zk:()=>h});var i=n(22021),s=n(22807),r=n(17896),o=n(65617),c=n(12981);function a(t){return t?{origin:(0,o.a)(t.origin),vector:(0,o.a)(t.vector)}:{origin:(0,o.c)(),vector:(0,o.c)()}}function h(t,e,n=a()){return(0,r.c)(n.origin,t),(0,r.b)(n.vector,e,t),n}function u(t,e,n){return function(t,e,n,s,o){const{vector:a,origin:h}=t,u=(0,r.b)(c.WM.get(),e,h),l=(0,r.e)(a,u)/(0,r.p)(a);return(0,r.g)(o,a,(0,i.uZ)(l,0,1)),(0,r.a)(o,o,t.origin)}(t,e,0,0,n)}(0,o.c)(),(0,o.c)(),new s.x((()=>a()))},16306:(t,e,n)=>{n.d(e,{aX:()=>S});var i=n(68773),s=n(20102),r=n(92604),o=n(38913),c=n(58901),a=n(73913),h=n(8744),u=n(40488),l=(n(66577),n(3172)),f=n(33955),d=n(11282),_=n(17452);async function m(t,e,n){const i="string"==typeof t?(0,_.mN)(t):t,s=e[0].spatialReference,r=(0,f.Ji)(e[0]),o={...n,query:{...i.query,f:"json",sr:s.wkid??JSON.stringify(s),geometries:JSON.stringify((a=e,{geometryType:(0,f.Ji)(a[0]),geometries:a.map((t=>t.toJSON()))}))}},{data:c}=await(0,l.default)(i.path+"/simplify",o);var a;return function(t,e,n){const i=(0,f.q9)(e);return t.map((t=>{const e=i.fromJSON(t);return e.spatialReference=n,e}))}(c.geometries,r,s)}const g=r.Z.getLogger("esri.geometry.support.normalizeUtils");function p(t){return"polygon"===t[0].type}function T(t){return"polyline"===t[0].type}function b(t,e,n){if(e){const e=function(t,e){if(!(t instanceof c.Z||t instanceof o.Z)){const t="straightLineDensify: the input geometry is neither polyline nor polygon";throw g.error(t),new s.Z(t)}const n=(0,a.x3)(t),i=[];for(const t of n){const n=[];i.push(n),n.push([t[0][0],t[0][1]]);for(let i=0;i<t.length-1;i++){const s=t[i][0],r=t[i][1],o=t[i+1][0],c=t[i+1][1],a=Math.sqrt((o-s)*(o-s)+(c-r)*(c-r)),h=(c-r)/a,u=(o-s)/a,l=a/e;if(l>1){for(let t=1;t<=l-1;t++){const i=t*e,o=u*i+s,c=h*i+r;n.push([o,c])}const t=(a+Math.floor(l-1)*e)/2,i=u*t+s,o=h*t+r;n.push([i,o])}n.push([o,c])}}return function(t){return"polygon"===t.type}(t)?new o.Z({rings:i,spatialReference:t.spatialReference}):new c.Z({paths:i,spatialReference:t.spatialReference})}(t,1e6);t=(0,u.Sx)(e,!0)}return n&&(t=(0,a.Sy)(t,n)),t}function O(t,e,n){if(Array.isArray(t)){const i=t[0];if(i>e){const n=(0,a.XZ)(i,e);t[0]=i+n*(-2*e)}else if(i<n){const e=(0,a.XZ)(i,n);t[0]=i+e*(-2*n)}}else{const i=t.x;if(i>e){const n=(0,a.XZ)(i,e);t=t.clone().offset(n*(-2*e),0)}else if(i<n){const e=(0,a.XZ)(i,n);t=t.clone().offset(e*(-2*n),0)}}return t}function y(t,e){let n=-1;for(let i=0;i<e.cutIndexes.length;i++){const s=e.cutIndexes[i],r=e.geometries[i],o=(0,a.x3)(r);for(let t=0;t<o.length;t++){const e=o[t];e.some((n=>{if(n[0]<180)return!0;{let n=0;for(let t=0;t<e.length;t++){const i=e[t][0];n=i>n?i:n}n=Number(n.toFixed(9));const i=-360*(0,a.XZ)(n,180);for(let n=0;n<e.length;n++){const e=r.getPoint(t,n);r.setPoint(t,n,e.clone().offset(i,0))}return!0}}))}if(s===n){if(p(t))for(const e of(0,a.x3)(r))t[s]=t[s].addRing(e);else if(T(t))for(const e of(0,a.x3)(r))t[s]=t[s].addPath(e)}else n=s,t[s]=r}return t}async function S(t,e,n){if(!Array.isArray(t))return S([t],e);e&&"string"!=typeof e&&g.warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof e?e:e?.url??i.Z.geometryServiceUrl;let r,_,p,T,M,R,E,N,A=0;const x=[],z=[];for(const e of t)if(null!=e)if(r||(r=e.spatialReference,_=(0,h.C5)(r),p=r.isWebMercator,R=p?102100:4326,T=a.UZ[R].maxX,M=a.UZ[R].minX,E=a.UZ[R].plus180Line,N=a.UZ[R].minus180Line),_)if("mesh"===e.type)z.push(e);else if("point"===e.type)z.push(O(e.clone(),T,M));else if("multipoint"===e.type){const t=e.clone();t.points=t.points.map((t=>O(t,T,M))),z.push(t)}else if("extent"===e.type){const t=e.clone()._normalize(!1,!1,_);z.push(t.rings?new o.Z(t):t)}else if(e.extent){const t=e.extent,n=(0,a.XZ)(t.xmin,M)*(2*T);let i=0===n?e.clone():(0,a.Sy)(e.clone(),n);t.offset(n,0),t.intersects(E)&&t.xmax!==T?(A=t.xmax>A?t.xmax:A,i=b(i,p),x.push(i),z.push("cut")):t.intersects(N)&&t.xmin!==M?(A=t.xmax*(2*T)>A?t.xmax*(2*T):A,i=b(i,p,360),x.push(i),z.push("cut")):z.push(i)}else z.push(e.clone());else z.push(e);else z.push(e);let F=(0,a.XZ)(A,T),v=-90;const w=F,I=new c.Z;for(;F>0;){const t=360*F-180;I.addPath([[t,v],[t,-1*v]]),v*=-1,F--}if(x.length>0&&w>0){const e=y(x,await async function(t,e,n,i){const s=(0,d.en)(t),r=e[0].spatialReference,o={...i,query:{...s.query,f:"json",sr:JSON.stringify(r),target:JSON.stringify({geometryType:(0,f.Ji)(e[0]),geometries:e}),cutter:JSON.stringify(n)}},c=await(0,l.default)(s.path+"/cut",o),{cutIndexes:a,geometries:h=[]}=c.data;return{cutIndexes:a,geometries:h.map((t=>{const e=(0,f.im)(t);return e.spatialReference=r,e}))}}(s,x,I,n)),i=[],r=[];for(let n=0;n<z.length;n++){const s=z[n];if("cut"!==s)r.push(s);else{const s=e.shift(),o=t[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&s.rings.length>=o.rings.length?(i.push(s),r.push("simplify")):r.push(p?(0,u.$)(s):s)}}if(!i.length)return r;const o=await m(s,i,n),c=[];for(let t=0;t<r.length;t++){const e=r[t];"simplify"!==e?c.push(e):c.push(p?(0,u.$)(o.shift()):o.shift())}return c}const P=[];for(let t=0;t<z.length;t++){const e=z[t];if("cut"!==e)P.push(e);else{const t=x.shift();P.push(!0===p?(0,u.$)(t):t)}}return P}},73913:(t,e,n)=>{n.d(e,{Sy:()=>a,UZ:()=>o,XZ:()=>c,x3:()=>h});var i=n(58901),s=n(82971),r=n(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.Z.WebMercator}),minus180Line:new i.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.Z({paths:[[[180,-180],[180,180]]],spatialReference:s.Z.WGS84}),minus180Line:new i.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:s.Z.WGS84})}};function c(t,e){return Math.ceil((t-e)/(2*e))}function a(t,e){const n=h(t);for(const t of n)for(const n of t)n[0]+=e;return t}function h(t){return(0,r.oU)(t)?t.rings:t.paths}},62073:(t,e,n)=>{n(22021),n(17896);var i,s,r=n(65617);n(29268),n(61277),n(12981),(0,r.c)(),(0,r.c)(),(0,r.c)(),(0,r.c)(),(0,r.c)(),(0,r.c)(),(0,r.c)(),(0,r.c)(),(0,r.c)(),(0,r.c)(),(s=i||(i={}))[s.NONE=0]="NONE",s[s.CLAMP=1]="CLAMP",s[s.INFINITE_MIN=4]="INFINITE_MIN",s[s.INFINITE_MAX=8]="INFINITE_MAX",i.INFINITE_MIN,i.INFINITE_MAX,i.INFINITE_MAX},78341:(t,e,n)=>{n.d(e,{JI:()=>h,Ue:()=>o,re:()=>a}),n(67676);var i=n(22807),s=n(17896),r=n(65617);function o(t){return t?c((0,r.a)(t.origin),(0,r.a)(t.direction)):c((0,r.c)(),(0,r.c)())}function c(t,e){return{origin:t,direction:e}}function a(t,e){const n=u.get();return n.origin=t,n.direction=e,n}function h(t,e,n){const i=(0,s.e)(t.direction,(0,s.b)(n,e,t.origin));return(0,s.a)(n,t.origin,(0,s.g)(n,t.direction,i)),n}n(12981);const u=new i.x((()=>o()))},61277:(t,e,n)=>{n.d(e,{EU:()=>o});var i=n(22021),s=n(17896),r=n(65617);function o(t,e){const n=(0,s.e)(t,e)/((0,s.l)(t)*(0,s.l)(e));return-(0,i.ZF)(n)}(0,r.c)(),(0,r.c)()},12981:(t,e,n)=>{n.d(e,{MP:()=>_,WM:()=>d});var i=n(43090),s=n(41213),r=n(46521),o=n(13598),c=n(94961),a=n(97323),h=n(65617),u=n(88669);class l{constructor(t,e,n){this._itemByteSize=t,this._itemCreate=e,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(n/this._itemByteSize)}get(){0===this._itemsPtr&&(0,s.Y)((()=>this._reset()));const t=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=t;){const t=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let e=0;e<this._itemsPerBuffer;++e)this._items.push(this._itemCreate(t,e*this._itemByteSize));this._buffers.push(t)}return this._items[this._itemsPtr++]}_reset(){const t=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>t;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(t=f){return new l(16,a.c,t)}static createVec3f64(t=f){return new l(24,h.b,t)}static createVec4f64(t=f){return new l(32,u.a,t)}static createMat3f64(t=f){return new l(72,r.a,t)}static createMat4f64(t=f){return new l(128,o.a,t)}static createQuatf64(t=f){return new l(32,c.c,t)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const f=4*i.Y8.KILOBYTES,d=(l.createVec2f64(),l.createVec3f64()),_=(l.createVec4f64(),l.createMat3f64(),l.createMat4f64());l.createQuatf64()},11282:(t,e,n)=>{n.d(e,{cv:()=>c,en:()=>o,lA:()=>r}),n(68773),n(40330);var i=n(22974),s=n(17452);function r(t,e){return e?{...e,query:{...t??{},...e.query}}:{query:t}}function o(t){return"string"==typeof t?(0,s.mN)(t):(0,i.d9)(t)}function c(t,e,n){const i={};for(const s in t){if("declaredClass"===s)continue;const r=t[s];if(null!=r&&"function"!=typeof r)if(Array.isArray(r)){i[s]=[];for(let t=0;t<r.length;t++)i[s][t]=c(r[t])}else if("object"==typeof r)if(r.toJSON){const t=r.toJSON(n&&n[s]);i[s]=e?t:JSON.stringify(t)}else i[s]=e?r:JSON.stringify(r);else i[s]=r}return i}n(71058)},11726:(t,e,n)=>{n.d(e,{hu:()=>s,yK:()=>r}),n(97323),n(98766),(0,n(88669).c)();class i{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function s(t,e){if(!t){e=e||"Assertion";const t=new Error(e).stack;throw new i(`${e} at ${t}`)}}function r(t,e,n,i){let s,r=(n[0]-t[0])/e[0],o=(i[0]-t[0])/e[0];r>o&&(s=r,r=o,o=s);let c=(n[1]-t[1])/e[1],a=(i[1]-t[1])/e[1];if(c>a&&(s=c,c=a,a=s),r>a||c>o)return!1;c>r&&(r=c),a<o&&(o=a);let h=(n[2]-t[2])/e[2],u=(i[2]-t[2])/e[2];return h>u&&(s=h,h=u,u=s),!(r>u||h>o||(u<o&&(o=u),o<0))}},73248:(t,e,n)=>{n.r(e),n.d(e,{default:()=>tt});var i,s,r,o,c=n(43697),a=n(95330),h=(n(92604),n(75215),n(67676),n(80442),n(20102),n(52011)),u=n(17896),l=n(65617),f=n(16996),d=n(29268),_=n(26993),m=n(71143),g=n(44553),p=n(22807),T=(n(52138),n(98766),n(88669)),b=n(78341);function O(t){return t?{ray:(0,b.Ue)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,b.Ue)(),c0:0,c1:Number.MAX_VALUE}}function y(t,e){for(let n=0;n<r.NUM;n++){const i=t[n];if(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]+i[3]>=e[3])return!1}return!0}new p.x((()=>O())),n(62073),n(12981),function(t){t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT",t[t.BOTTOM=2]="BOTTOM",t[t.TOP=3]="TOP",t[t.NEAR=4]="NEAR",t[t.FAR=5]="FAR"}(i||(i={})),function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(s||(s={})),s.FAR_BOTTOM_RIGHT,s.NEAR_BOTTOM_RIGHT,s.NEAR_BOTTOM_LEFT,s.FAR_BOTTOM_LEFT,s.NEAR_BOTTOM_LEFT,s.NEAR_BOTTOM_RIGHT,s.NEAR_TOP_RIGHT,s.NEAR_TOP_LEFT,s.FAR_BOTTOM_RIGHT,s.FAR_BOTTOM_LEFT,s.FAR_TOP_LEFT,s.FAR_TOP_RIGHT,s.NEAR_BOTTOM_RIGHT,s.FAR_BOTTOM_RIGHT,s.FAR_TOP_RIGHT,s.NEAR_TOP_RIGHT,s.FAR_BOTTOM_LEFT,s.NEAR_BOTTOM_LEFT,s.NEAR_TOP_LEFT,s.FAR_TOP_LEFT,s.FAR_TOP_LEFT,s.NEAR_TOP_LEFT,s.NEAR_TOP_RIGHT,s.FAR_TOP_RIGHT,function(t){t[t.NUM=6]="NUM"}(r||(r={})),function(t){t[t.NUM=8]="NUM"}(o||(o={})),(0,T.f)(-1,-1,-1,1),(0,T.f)(1,-1,-1,1),(0,T.f)(1,1,-1,1),(0,T.f)(-1,1,-1,1),(0,T.f)(-1,-1,1,1),(0,T.f)(1,-1,1,1),(0,T.f)(1,1,1,1),(0,T.f)(-1,1,1,1),new p.x(O),(0,l.c)(),(0,l.c)(),(0,l.c)(),(0,l.c)(),(0,l.c)(),(0,l.c)(),(0,l.c)(),(0,l.c)();var S,M,R=n(11726);class E{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 N,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),N.clearPool(),L[0]=null,D.prune(),q.prune()}add(t,e=t.length){this._objectCount+=e,this._grow(t,e);const n=N.acquire();for(let i=0;i<e;i++){const e=t[i];this._isDegenerate(e)?this._degenerateObjects.add(e):(n.init(this._root),this._add(e,n))}N.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=N.acquire();for(const i of t){const t=null!=e?e:(0,d.j)(this.objectToBoundingSphere(i),k);I(t[3])?(n.init(this._root),this._remove(i,t,n)):this._degenerateObjects.delete(i)}N.release(n),this._shrink()}update(t,e){if(!I(e[3])&&this._isDegenerate(t))return;const n=function(t){return L[0]=t,L}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const i=(0,b.re)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNode(i,t))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObject(i,t)&&n(t)})),!0}))}forEachAlongRayWithVerticalOffset(t,e,n,i){const s=(0,b.re)(t,e);this._forEachNode(this._root,(t=>{if(!this._intersectsNodeWithOffset(s,t,i))return!1;const e=t.node;return e.terminals.forAll((t=>{this._intersectsObjectWithOffset(s,t,i)&&n(t)})),null!==e.residents&&e.residents.forAll((t=>{this._intersectsObjectWithOffset(s,t,i)&&n(t)})),!0}))}forEach(t){this._forEachNode(this._root,(e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0})),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,i=(()=>!0),s=1/0){let r=1/0,o=1/0,c=null;const a=v(t,e),h=a=>{if(--s,!i(a))return;const h=this.objectToBoundingSphere(a);if(!y(n,h))return;const u=w(t,e,(0,d.g)(h)),l=u-h[3],f=u+h[3];l<r&&(r=l,o=f,c=a)};return this._forEachNodeDepthOrdered(this._root,(i=>{if(s<=0||!y(n,i.bounds))return!1;if((0,u.g)(C,a,i.halfSize),(0,u.a)(C,C,i.bounds),w(t,e,C)>o)return!1;const r=i.node;return r.terminals.forAll((t=>h(t))),null!==r.residents&&r.residents.forAll((t=>h(t))),!0}),t,e),c}forEachInDepthRange(t,e,n,i,s,r,o){let c=-1/0,a=1/0;const h={setRange:t=>{n===E.DepthOrder.FRONT_TO_BACK?(c=Math.max(c,t.near),a=Math.min(a,t.far)):(c=Math.max(c,-t.far),a=Math.min(a,-t.near))}};h.setRange(i);const l=w(e,n,t),f=v(e,n),_=v(e,-n),m=t=>{if(!o(t))return;const i=this.objectToBoundingSphere(t),u=(0,d.g)(i),f=w(e,n,u)-l,_=f-i[3],m=f+i[3];_>a||m<c||!y(r,i)||s(t,h)};this._forEachNodeDepthOrdered(this._root,(t=>{if(!y(r,t.bounds))return!1;if((0,u.g)(C,f,t.halfSize),(0,u.a)(C,C,t.bounds),w(e,n,C)-l>a)return!1;if((0,u.g)(C,_,t.halfSize),(0,u.a)(C,C,t.bounds),w(e,n,C)-l<c)return!1;const i=t.node;return i.terminals.forAll((t=>m(t))),null!==i.residents&&i.residents.forAll((t=>m(t))),!0}),e,n)}forEachNode(t){this._forEachNode(this._root,(e=>t(e.node,e.bounds,e.halfSize,e.depth)))}forEachNeighbor(t,e){const n=(0,d.e)(e),i=(0,d.g)(e),s=e=>{const s=this.objectToBoundingSphere(e),r=(0,d.e)(s),o=n+r;return!((0,u.d)((0,d.g)(s),i)-o*o<=0)||t(e)};let r=!0;const o=t=>{r&&(r=s(t))};this._forEachNode(this._root,(t=>{const e=(0,d.e)(t.bounds),s=n+e;if((0,u.d)((0,d.g)(t.bounds),i)-s*s>0)return!1;const c=t.node;return c.terminals.forAll(o),r&&null!==c.residents&&c.residents.forAll(o),r})),r&&this.forEachDegenerateObject(o)}_intersectsNode(t,e){return z(e.bounds,2*-e.halfSize,G),z(e.bounds,2*e.halfSize,H),(0,R.yK)(t.origin,t.direction,G,H)}_intersectsNodeWithOffset(t,e,n){return z(e.bounds,2*-e.halfSize,G),z(e.bounds,2*e.halfSize,H),n.applyToMinMax(G,H),(0,R.yK)(t.origin,t.direction,G,H)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n[3]>0)||(0,d.k)(n,t)}_intersectsObjectWithOffset(t,e,n){const i=this.objectToBoundingSphere(e);return!(i[3]>0)||(0,d.k)(n.applyToBoundingSphere(i),t)}_forEachNode(t,e){let n=N.acquire().init(t);const i=[n];for(;0!==i.length;){if(n=i.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&i.push(N.acquire().init(n).advance(t));N.release(n)}}_forEachNodeDepthOrdered(t,e,n,i=E.DepthOrder.FRONT_TO_BACK){let s=N.acquire().init(t);const r=[s];for(function(t,e,n){if(!q.length)for(let t=0;t<8;++t)q.push({index:0,distance:0});for(let n=0;n<8;++n){const i=P[n];q.data[n].index=n,q.data[n].distance=w(t,e,i)}q.sort(((t,e)=>t.distance-e.distance));for(let t=0;t<8;++t)n[t]=q.data[t].index}(n,i,J);0!==r.length;){if(s=r.pop(),e(s)&&!s.isLeaf())for(let t=7;t>=0;--t){const e=J[t];s.node.children[e]&&r.push(N.acquire().init(s).advance(e))}N.release(s)}}_remove(t,e,n){D.clear();const i=n.advanceTo(e,((t,e)=>{D.push(t.node),D.push(e)}))?n.node.terminals:n.node.residents;if(i.removeUnordered(t),0===i.length)for(let t=D.length-2;t>=0;t-=2){const e=D.data[t],n=D.data[t+1];if(!this._purge(e,n))break}}_nodeIsEmpty(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}_purge(t,e){return e>=0&&(t.children[e]=null),!!this._nodeIsEmpty(t)&&(null===t.residents&&(t.residents=new g.Z({shrink:!0})),!0)}_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){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const i=N.acquire().init(t);this._add(e.getItemAt(n),i),N.release(i)}}_grow(t,e){if(0!==e&&(F(t,e,(t=>this.objectToBoundingSphere(t)),U),I(U[3])&&!this._fitsInsideTree(U)))if(this._nodeIsEmpty(this._root.node))(0,d.j)(U,this._root.bounds),this._root.halfSize=1.25*this._root.bounds[3],this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(U);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(U,t):this._growRootAsSubNode(t),N.release(t)}}_rebuildTree(t,e){(0,u.c)(V,e.bounds),V[3]=e.halfSize,F([t,V],2,(t=>t),X);const n=N.acquire().init(this._root);this._root.initFrom(null,X,X[3]),this._root.increaseHalfSize(1.25),this._forEachNode(n,(t=>(this.add(t.node.terminals.data,t.node.terminals.length),null!==t.node.residents&&this.add(t.node.residents.data,t.node.residents.length),!0))),N.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return this._forEachNode(this._root,(t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth))),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let i=-1/0;const s=this._root.bounds,r=this._root.halfSize;for(let t=0;t<3;t++){const o=s[t]-r-(n[t]-e),c=n[t]+e-(s[t]+r),a=Math.max(0,Math.ceil(o/(2*r))),h=Math.max(0,Math.ceil(c/(2*r)))+1,u=2**Math.ceil(Math.log(a+h)*Math.LOG2E);i=Math.max(i,u),W[t].min=a,W[t].max=h}for(let t=0;t<3;t++){let e=W[t].min,n=W[t].max;const o=(i-(e+n))/2;e+=Math.ceil(o),n+=Math.floor(o);const c=s[t]-r-e*r*2;Z[t]=c+(n+e)*r}const o=i*r;return Z[3]=o*B,N.acquire().initFrom(null,Z,o,0)}_growRootAsSubNode(t){const e=this._root.node;(0,u.c)(U,this._root.bounds),U[3]=this._root.halfSize,this._root.init(t),t.advanceTo(U,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const 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;const e=this._root.node.children;let n=0,i=0;for(;i<e.length&&null==t;)n=i++,t=e[n];for(;i<e.length;)if(e[i++])return-1;return n}_isDegenerate(t){return!I(this.objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,i=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:i}}}_nodeToJSON(t){const e=t.children.map((t=>t?this._nodeToJSON(t):null)),n=t.residents?.map((t=>this.objectToBoundingSphere(t))),i=t.terminals?.map((t=>this.objectToBoundingSphere(t)));return{children:e,residents:n,terminals:i}}static fromJSON(t){const e=new E((t=>t),{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class N{constructor(){this.bounds=(0,d.c)(),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,i=this.depth){return this.node=null!=t?t:N.createEmptyNode(),null!=e&&(0,d.j)(e,this.bounds),this.halfSize=n,this.depth=i,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds[3]=this.halfSize*B}advance(t){let e=this.node.children[t];e||(e=N.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=P[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const i=this._childIndex(t);e&&e(this,i),this.advance(i)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new g.Z({shrink:!0}),residents:new g.Z({shrink:!0})}}static acquire(){return N._pool.acquire()}static release(t){N._pool.release(t)}static clearPool(){N._pool.prune()}}function A(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function x(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function z(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function F(t,e,n,i){if(1===e){const e=n(t[0]);(0,d.j)(e,i)}else{G[0]=1/0,G[1]=1/0,G[2]=1/0,H[0]=-1/0,H[1]=-1/0,H[2]=-1/0;for(let i=0;i<e;i++){const e=n(t[i]);I(e[3])&&(A(G,e),x(H,e))}(0,u.h)(i,G,H,.5),i[3]=Math.max(H[0]-G[0],H[1]-G[1],H[2]-G[2])/2}}function v(t,e){let n,i=1/0;for(let s=0;s<8;++s){const r=w(t,e,j[s]);r<i&&(i=r,n=j[s])}return n}function w(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function I(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}N._pool=new m.Z(N),S=E||(E={}),(M=S.DepthOrder||(S.DepthOrder={}))[M.FRONT_TO_BACK=1]="FRONT_TO_BACK",M[M.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const P=[(0,l.f)(-1,-1,-1),(0,l.f)(1,-1,-1),(0,l.f)(-1,1,-1),(0,l.f)(1,1,-1),(0,l.f)(-1,-1,1),(0,l.f)(1,-1,1),(0,l.f)(-1,1,1),(0,l.f)(1,1,1)],j=[(0,l.f)(-1,-1,-1),(0,l.f)(-1,-1,1),(0,l.f)(-1,1,-1),(0,l.f)(-1,1,1),(0,l.f)(1,-1,-1),(0,l.f)(1,-1,1),(0,l.f)(1,1,-1),(0,l.f)(1,1,1)],B=Math.sqrt(3),L=[null],Z=(0,d.c)(),C=(0,l.c)(),G=(0,l.c)(),H=(0,l.c)(),D=new g.Z,k=(0,d.c)(),U=(0,d.c)(),V=(0,d.c)(),X=(0,d.c)(),W=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],q=new g.Z,J=[0,0,0,0,0,0,0,0],Y=E;var K=n(212);function $(t,e,n){const i=(0,d.c)(),s=(0,d.g)(i);return(0,u.A)(s,s,t,.5),(0,u.A)(s,s,e,.5),i[3]=(0,u.i)(s,t),(0,u.a)(s,s,n),i}let Q=class{constructor(){this._idToComponent=new Map,this._components=new Y((t=>t.bounds)),this._edges=new Y((t=>t.bounds)),this._tmpLineSegment=(0,f.Ue)(),this._tmpP1=(0,l.c)(),this._tmpP2=(0,l.c)(),this._tmpP3=(0,l.c)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,a.k_)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor((e=>(this._addCandidates(t,e,n),n.length<1e3)),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor((t=>{if(null==t.info){const{id:e,uid:i}=t;n.push({id:e,uid:i})}return!0}),t.bounds),!n.length)return;const i={components:n},s=await this.remoteClient.invoke("fetchAllEdgeLocations",i,e??{});for(const t of s.components)this._setFetchEdgeLocations(t)}async add(t){const e=new et(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const 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){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=K.n_.createView(t.locations),i=new Array(n.count),s=(0,l.c)(),r=(0,l.c)();for(let o=0;o<n.count;o++){n.position0.getVec(o,s),n.position1.getVec(o,r);const c=$(s,r,t.origin),a=new nt(e,o,c);i[o]=a}this._edges.add(i);const{objectIds:o,origin:c}=t;e.info={locations:n,objectIds:o,origin:c}}_addCandidates(t,e,n){const{info:i}=e.component,{origin:s,objectIds:r}=i,o=i.locations,c=o.position0.getVec(e.index,this._tmpP1),a=o.position1.getVec(e.index,this._tmpP2);(0,u.a)(c,c,s),(0,u.a)(a,a,s);const h=r[o.componentIndex.get(e.index)];this._addEdgeCandidate(t,h,c,a,n),this._addVertexCandidate(t,h,c,n),this._addVertexCandidate(t,h,a,n)}_addEdgeCandidate(t,e,n,i,s){if(!(t.types&_.r.EDGE))return;const r=(0,d.g)(t.bounds),o=(0,f.zk)(n,i,this._tmpLineSegment),c=(0,f.nF)(o,r,this._tmpP3);(0,d.l)(t.bounds,c)&&s.push({type:"edge",objectId:e,target:(0,l.a)(c),distance:(0,u.i)(r,c),start:(0,l.a)(n),end:(0,l.a)(i)})}_addVertexCandidate(t,e,n,i){if(!(t.types&_.r.VERTEX))return;const s=(0,d.g)(t.bounds);(0,d.l)(t.bounds,n)&&i.push({type:"vertex",objectId:e,target:(0,l.a)(n),distance:(0,u.i)(s,n)})}};Q=(0,c._)([(0,h.j)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],Q);const tt=Q;class et{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++et.uid}}et.uid=0;class nt{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[212],{24882:(E,t,e)=>{e.d(t,{$z:()=>n,KF:()=>N,mi:()=>T});var _=e(1533);function T(E){if((0,_.kJ)(E)){if(E.length<_.DB)return E;for(const t of E)if(t>=65536)return new Uint32Array(E);return new Uint16Array(E)}if(E.length<_.DB)return Array.from(E);if(E.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT)return E;for(const t of E)if(t>=65536)return E;return new Uint16Array(E)}function n(E){return E<=_.DB?new Array(E):E<=65536?new Uint16Array(E):new Uint32Array(E)}let A=(()=>{const E=new Uint32Array(131072);for(let t=0;t<E.length;++t)E[t]=t;return E})();const R=[0],r=(()=>{const E=new Uint16Array(65536);for(let t=0;t<E.length;++t)E[t]=t;return E})();function N(E){if(1===E)return R;if(E<_.DB)return Array.from(new Uint16Array(r.buffer,0,E));if(E<r.length)return new Uint16Array(r.buffer,0,E);if(E>A.length){const t=Math.max(2*A.length,E);A=new Uint32Array(t);for(let E=0;E<A.length;E++)A[E]=E}return new Uint32Array(A.buffer,0,E)}new Uint8Array(65536)},79583:(E,t,e)=>{function _(E){switch(E){case"u8":case"i8":return 1;case"u16":case"i16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}e.d(t,{n1:()=>_})},47545:(E,t,e)=>{e.d(t,{d:()=>n});var _=e(22021),T=e(24882);function n(E,t,e){const n=Array.isArray(E),i=n?E.length/t:E.byteLength/(4*t),o=n?E:new Uint32Array(E,0,i*t),O=e?.minReduction??0,I=e?.originalIndices||null,S=I?I.length:0,s=e?.componentOffsets||null;let C=0;if(s)for(let E=0;E<s.length-1;E++){const t=s[E+1]-s[E];t>C&&(C=t)}else C=i;const c=Math.floor(1.1*C)+1;(null==N||N.length<2*c)&&(N=new Uint32Array((0,_.Sf)(2*c)));for(let E=0;E<2*c;E++)N[E]=0;let a=0;const L=!!s&&!!I,f=L?S:i;let D=(0,T.$z)(i);const u=new Uint32Array(S),U=1.96;let M=0!==O?Math.ceil(4*U*U/(O*O)*O*(1-O)):f,l=1,P=s?s[1]:f;for(let E=0;E<f;E++){if(E===M){const t=1-a/E;if(t+U*Math.sqrt(t*(1-t)/E)<O)return null;M*=2}if(E===P){for(let E=0;E<2*c;E++)N[E]=0;if(I)for(let E=s[l-1];E<s[l];E++)u[E]=D[I[E]];P=s[++l]}const e=L?I[E]:E,_=e*t,T=r(o,_,t);let n=T%c,R=a;for(;0!==N[2*n+1];){if(N[2*n]===T){const E=N[2*n+1]-1;if(A(o,_,E*t,t)){R=D[E];break}}n++,n>=c&&(n-=c)}R===a&&(N[2*n]=T,N[2*n+1]=e+1,a++),D[e]=R}if(0!==O&&1-a/i<O)return null;if(L){for(let E=s[l-1];E<u.length;E++)u[E]=D[I[E]];D=(0,T.mi)(u)}const G=n?new Array(a):new Uint32Array(a*t);a=0;for(let E=0;E<f;E++)D[E]===a&&(R(o,(L?I[E]:E)*t,G,a*t,t),a++);if(I&&!L){const E=new Uint32Array(S);for(let t=0;t<E.length;t++)E[t]=D[I[t]];D=(0,T.mi)(E)}return{buffer:Array.isArray(G)?G:G.buffer,indices:D,uniqueCount:a}}function A(E,t,e,_){for(let T=0;T<_;T++)if(E[t+T]!==E[e+T])return!1;return!0}function R(E,t,e,_,T){for(let n=0;n<T;n++)e[_+n]=E[t+n]}function r(E,t,e){let _=0;for(let T=0;T<e;T++)_=E[t+T]+_|0,_=_+(_<<11)+(_>>>2)|0;return _>>>0}let N=null},65576:(E,t,e)=>{e.d(t,{U$:()=>R});var _=e(56481),T=e(79583);class n{constructor(E,t){this.layout=E,this.buffer="number"==typeof t?new ArrayBuffer(t*E.stride):t;for(const t of E.fieldNames){const e=E.fields.get(t);this[t]=new e.constructor(this.buffer,e.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.buffer.byteLength/this.stride}get byteLength(){return this.buffer.byteLength}getField(E,t){const e=this[E];return e&&e.elementCount===t.ElementCount&&e.elementType===t.ElementType?e:null}slice(E,t){return new n(this.layout,this.buffer.slice(E*this.stride,t*this.stride))}copyFrom(E,t,e,_){const T=this.stride;if(T%4==0){const n=new Uint32Array(E.buffer,t*T,_*T/4);new Uint32Array(this.buffer,e*T,_*T/4).set(n)}else{const n=new Uint8Array(E.buffer,t*T,_*T);new Uint8Array(this.buffer,e*T,_*T).set(n)}}}class A{constructor(){this.stride=0,this.fields=new Map,this.fieldNames=[]}vec2f(E,t){return this._appendField(E,_.Eu,t),this}vec2f64(E,t){return this._appendField(E,_.q6,t),this}vec3f(E,t){return this._appendField(E,_.ct,t),this}vec3f64(E,t){return this._appendField(E,_.fP,t),this}vec4f(E,t){return this._appendField(E,_.ek,t),this}vec4f64(E,t){return this._appendField(E,_.Cd,t),this}mat3f(E,t){return this._appendField(E,_.gK,t),this}mat3f64(E,t){return this._appendField(E,_.ey,t),this}mat4f(E,t){return this._appendField(E,_.bj,t),this}mat4f64(E,t){return this._appendField(E,_.O1,t),this}vec4u8(E,t){return this._appendField(E,_.mc,t),this}f32(E,t){return this._appendField(E,_.ly,t),this}f64(E,t){return this._appendField(E,_.oS,t),this}u8(E,t){return this._appendField(E,_.D_,t),this}u16(E,t){return this._appendField(E,_.av,t),this}i8(E,t){return this._appendField(E,_.Hz,t),this}vec2i8(E,t){return this._appendField(E,_.Vs,t),this}vec2i16(E,t){return this._appendField(E,_.or,t),this}vec2u8(E,t){return this._appendField(E,_.xA,t),this}vec4u16(E,t){return this._appendField(E,_.v6,t),this}u32(E,t){return this._appendField(E,_.Nu,t),this}_appendField(E,t,e){const _=t.ElementCount*(0,T.n1)(t.ElementType),n=this.stride;this.fields.set(E,{size:_,constructor:t,offset:n,optional:e}),this.stride+=_,this.fieldNames.push(E)}alignTo(E){return this.stride=Math.floor((this.stride+E-1)/E)*E,this}hasField(E){return this.fieldNames.includes(E)}createBuffer(E){return new n(this,E)}createView(E){return new n(this,E)}clone(){const E=new A;return E.stride=this.stride,E.fields=new Map,this.fields.forEach(((t,e)=>E.fields.set(e,t))),E.fieldNames=this.fieldNames.slice(),E.BufferType=this.BufferType,E}}function R(){return new A}},5329:(E,t,e)=>{e.d(t,{K:()=>n});var _=e(35371),T=e(21968);function n(E,t=0){const e=E.stride;return E.fieldNames.filter((t=>{const e=E.fields.get(t).optional;return!(e&&e.glPadding)})).map((_=>{const n=E.fields.get(_),R=n.constructor.ElementCount,r=A(n.constructor.ElementType),N=n.offset,i=!(!n.optional||!n.optional.glNormalized);return new T.G(_,R,r,N,e,i,t)}))}function A(E){const t=R[E];if(t)return t;throw new Error("BufferType not supported in WebGL")}const R={u8:_.g.UNSIGNED_BYTE,u16:_.g.UNSIGNED_SHORT,u32:_.g.UNSIGNED_INT,i8:_.g.BYTE,i16:_.g.SHORT,i32:_.g.INT,f32:_.g.FLOAT}},35065:(E,t,e)=>{var _;e.d(t,{T:()=>_}),function(E){E.POSITION="position",E.NORMAL="normal",E.NORMALCOMPRESSED="normalCompressed",E.UV0="uv0",E.AUXPOS1="auxpos1",E.AUXPOS2="auxpos2",E.COLOR="color",E.SYMBOLCOLOR="symbolColor",E.SIZE="size",E.TANGENT="tangent",E.OFFSET="offset",E.SUBDIVISIONFACTOR="subdivisionFactor",E.COLORFEATUREATTRIBUTE="colorFeatureAttribute",E.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",E.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",E.DISTANCETOSTART="distanceToStart",E.UVMAPSPACE="uvMapSpace",E.BOUNDINGRECT="boundingRect",E.UVREGION="uvRegion",E.PROFILERIGHT="profileRight",E.PROFILEUP="profileUp",E.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",E.FEATUREVALUE="featureValue",E.MODELORIGINHI="modelOriginHi",E.MODELORIGINLO="modelOriginLo",E.MODEL="model",E.MODELNORMAL="modelNormal",E.INSTANCECOLOR="instanceColor",E.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",E.LOCALTRANSFORM="localTransform",E.GLOBALTRANSFORM="globalTransform",E.BOUNDINGSPHERE="boundingSphere",E.MODELORIGIN="modelOrigin",E.MODELSCALEFACTORS="modelScaleFactors",E.FEATUREATTRIBUTE="featureAttribute",E.STATE="state",E.LODLEVEL="lodLevel",E.POSITION0="position0",E.POSITION1="position1",E.NORMALA="normalA",E.NORMALB="normalB",E.COMPONENTINDEX="componentIndex",E.VARIANTOFFSET="variantOffset",E.VARIANTSTROKE="variantStroke",E.VARIANTEXTENSION="variantExtension",E.U8PADDING="u8padding",E.U16PADDING="u16padding",E.SIDENESS="sideness",E.START="start",E.END="end",E.UP="up",E.EXTRUDE="extrude",E.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",E.OBJECTANDLAYERIDCOLOR_INSTANCED="objectAndLayerIdColor_instanced"}(_||(_={}))},17288:(E,t,e)=>{e.d(t,{Hr:()=>i,dG:()=>N,tf:()=>A});var _=e(5329),T=e(65576),n=e(35065);const A=(0,T.U$)().vec3f(n.T.POSITION).u16(n.T.COMPONENTINDEX).u16(n.T.U16PADDING),R=(0,T.U$)().vec2u8(n.T.SIDENESS),r=((0,_.K)(R),(0,T.U$)().vec3f(n.T.POSITION0).vec3f(n.T.POSITION1).u16(n.T.COMPONENTINDEX).u8(n.T.VARIANTOFFSET,{glNormalized:!0}).u8(n.T.VARIANTSTROKE).u8(n.T.VARIANTEXTENSION,{glNormalized:!0}).u8(n.T.U8PADDING,{glPadding:!0}).u16(n.T.U16PADDING,{glPadding:!0})),N=r.clone().vec3f(n.T.NORMAL),i=r.clone().vec3f(n.T.NORMALA).vec3f(n.T.NORMALB);new Map([[n.T.POSITION0,0],[n.T.POSITION1,1],[n.T.COMPONENTINDEX,2],[n.T.VARIANTOFFSET,3],[n.T.VARIANTSTROKE,4],[n.T.VARIANTEXTENSION,5],[n.T.NORMAL,6],[n.T.NORMALA,6],[n.T.NORMALB,7],[n.T.SIDENESS,8]])},97411:(E,t,e)=>{e.d(t,{n:()=>i});var _=e(67676),T=e(22021),n=e(17896),A=e(65617);const R=-1;var r,N;function i(E,t,e,A=c){const r=E.vertices.position,N=E.vertices.componentIndex,i=(0,T.Vl)(A.anglePlanar),C=(0,T.Vl)(A.angleSignificantEdge),a=Math.cos(C),L=Math.cos(i),f=s.edge,D=f.position0,u=f.position1,U=f.faceNormal0,M=f.faceNormal1,l=S(E),P=function(E){const t=E.faces.length/3,e=E.faces,_=E.neighbors;let T=0;for(let E=0;E<t;E++){const t=_[3*E],n=_[3*E+1],A=_[3*E+2],r=e[3*E],N=e[3*E+1],i=e[3*E+2];T+=t===R||r<N?1:0,T+=n===R||N<i?1:0,T+=A===R||i<r?1:0}const n=new Int32Array(4*T);let A=0;for(let E=0;E<t;E++){const t=_[3*E],T=_[3*E+1],r=_[3*E+2],N=e[3*E],i=e[3*E+1],o=e[3*E+2];(t===R||N<i)&&(n[A++]=N,n[A++]=i,n[A++]=E,n[A++]=t),(T===R||i<o)&&(n[A++]=i,n[A++]=o,n[A++]=E,n[A++]=T),(r===R||o<N)&&(n[A++]=o,n[A++]=N,n[A++]=E,n[A++]=r)}return n}(E),G=P.length/4,F=t.allocate(G);let B=0;const d=G,h=e.allocate(d);let H=0,g=0,p=0;const m=(0,_.w6)(0,G),V=new Float32Array(G);V.forEach(((E,t,e)=>{r.getVec(P[4*t],D),r.getVec(P[4*t+1],u),e[t]=(0,n.i)(D,u)})),m.sort(((E,t)=>V[t]-V[E]));const w=new Array,y=new Array;for(let E=0;E<G;E++){const _=m[E],T=V[_],A=P[4*_],S=P[4*_+1],s=P[4*_+2],C=P[4*_+3],c=C===R;if(r.getVec(A,D),r.getVec(S,u),c)(0,n.s)(U,l[3*s],l[3*s+1],l[3*s+2]),(0,n.c)(M,U),f.componentIndex=N.get(A),f.cosAngle=(0,n.e)(U,M);else{if((0,n.s)(U,l[3*s],l[3*s+1],l[3*s+2]),(0,n.s)(M,l[3*C],l[3*C+1],l[3*C+2]),f.componentIndex=N.get(A),f.cosAngle=(0,n.e)(U,M),O(f,L))continue;f.cosAngle<-.9999&&(0,n.c)(M,U)}g+=T,p++,c||o(f,a)?(t.write(F,B++,f),w.push(T)):I(f,i)&&(e.write(h,H++,f),y.push(T))}const X=new Float32Array(w.reverse()),Y=new Float32Array(y.reverse());return{regular:{instancesData:t.trim(F,B),lodInfo:{lengths:X}},silhouette:{instancesData:e.trim(h,H),lodInfo:{lengths:Y}},averageEdgeLength:g/p}}function o(E,t){return E.cosAngle<t}function O(E,t){return E.cosAngle>t}function I(E,t){const e=(0,T.ZF)(E.cosAngle),_=s.fwd,A=s.ortho;return(0,n.r)(_,E.position1,E.position0),e*((0,n.e)((0,n.f)(A,E.faceNormal0,E.faceNormal1),_)>0?-1:1)>t}function S(E){const t=E.faces.length/3,e=E.vertices.position,_=E.faces,T=C.v0,A=C.v1,R=C.v2,r=new Float32Array(3*t);for(let E=0;E<t;E++){const t=_[3*E],N=_[3*E+1],i=_[3*E+2];e.getVec(t,T),e.getVec(N,A),e.getVec(i,R),(0,n.b)(A,A,T),(0,n.b)(R,R,T),(0,n.f)(T,A,R),(0,n.n)(T,T),r[3*E]=T[0],r[3*E+1]=T[1],r[3*E+2]=T[2]}return r}(N=r||(r={}))[N.SOLID=0]="SOLID",N[N.SKETCH=1]="SKETCH";const s={edge:{position0:(0,A.c)(),position1:(0,A.c)(),faceNormal0:(0,A.c)(),faceNormal1:(0,A.c)(),componentIndex:0,cosAngle:0},ortho:(0,A.c)(),fwd:(0,A.c)()},C={v0:(0,A.c)(),v1:(0,A.c)(),v2:(0,A.c)()},c={anglePlanar:4,angleSignificantEdge:35}},212:(E,t,e)=>{e.d(t,{Kl:()=>l,n_:()=>h,kY:()=>P,Yr:()=>d});var _=e(47545);function T(E,t,e){const _=t/3,T=new Uint32Array(e+1),n=new Uint32Array(e+1),A=(E,t)=>{E<t?T[E+1]++:n[t+1]++};for(let t=0;t<_;t++){const e=E[3*t],_=E[3*t+1],T=E[3*t+2];A(e,_),A(_,T),A(T,e)}let R=0,r=0;for(let E=0;E<e;E++){const t=T[E+1],e=n[E+1];T[E+1]=R,n[E+1]=r,R+=t,r+=e}const N=new Uint32Array(6*_),i=T[e],o=(E,t,e)=>{if(E<t){const _=T[E+1]++;N[2*_]=t,N[2*_+1]=e}else{const _=n[t+1]++;N[2*i+2*_]=E,N[2*i+2*_+1]=e}};for(let t=0;t<_;t++){const e=E[3*t],_=E[3*t+1],T=E[3*t+2];o(e,_,t),o(_,T,t),o(T,e,t)}const O=(E,t)=>{const e=2*E,_=t-E;for(let E=1;E<_;E++){const t=N[e+2*E],_=N[e+2*E+1];let T=E-1;for(;T>=0&&N[e+2*T]>t;T--)N[e+2*T+2]=N[e+2*T],N[e+2*T+3]=N[e+2*T+1];N[e+2*T+2]=t,N[e+2*T+3]=_}};for(let E=0;E<e;E++)O(T[E],T[E+1]),O(i+n[E],i+n[E+1]);const I=new Int32Array(3*_),S=(t,e)=>t===E[3*e]?0:t===E[3*e+1]?1:t===E[3*e+2]?2:-1,s=(E,t)=>{const e=S(E,t);I[3*t+e]=-1},C=(E,t,e,_)=>{const T=S(E,t);I[3*t+T]=_;const n=S(e,_);I[3*_+n]=t};for(let E=0;E<e;E++){let t=T[E];const e=T[E+1];let _=n[E];const A=n[E+1];for(;t<e&&_<A;){const e=N[2*t],T=N[2*i+2*_];e===T?(C(E,N[2*t+1],T,N[2*i+2*_+1]),t++,_++):e<T?(s(E,N[2*t+1]),t++):(s(T,N[2*i+2*_+1]),_++)}for(;t<e;)s(E,N[2*t+1]),t++;for(;_<A;)s(N[2*i+2*_],N[2*i+2*_+1]),_++}return I}var n=e(65576),A=e(35065),R=e(17288),r=e(77734),N=e(17896),i=e(65617),o=e(5329);class O{updateSettings(E){this.settings=E,this._edgeHashFunction=E.reducedPrecision?c:C}write(E,t,e){const _=this._edgeHashFunction(e);U.seed=_;const T=U.getIntRange(0,255),n=U.getIntRange(0,this.settings.variants-1),A=U.getFloat(),R=255*(.5*function(E,t){const e=E<0?-1:1;return Math.abs(E)**1.2*e}(-(1-Math.min(A/.7,1))+Math.max(0,A-.7)/(1-.7))+.5);E.position0.setVec(t,e.position0),E.position1.setVec(t,e.position1),E.componentIndex.set(t,e.componentIndex),E.variantOffset.set(t,T),E.variantStroke.set(t,n),E.variantExtension.set(t,R)}trim(E,t){return E.slice(0,t)}}const I=new Float32Array(6),S=new Uint32Array(I.buffer),s=new Uint32Array(1);function C(E){const t=I;t[0]=E.position0[0],t[1]=E.position0[1],t[2]=E.position0[2],t[3]=E.position1[0],t[4]=E.position1[1],t[5]=E.position1[2],s[0]=5381;for(let E=0;E<S.length;E++)s[0]=31*s[0]+S[E];return s[0]}function c(E){const t=I;t[0]=L(E.position0[0]),t[1]=L(E.position0[1]),t[2]=L(E.position0[2]),t[3]=L(E.position1[0]),t[4]=L(E.position1[1]),t[5]=L(E.position1[2]),s[0]=5381;for(let E=0;E<S.length;E++)s[0]=31*s[0]+S[E];return s[0]}const a=1e4;function L(E){return Math.round(E*a)/a}class f{constructor(){this._commonWriter=new O}updateSettings(E){this._commonWriter.updateSettings(E)}allocate(E){return R.dG.createBuffer(E)}write(E,t,e){this._commonWriter.write(E,t,e),(0,N.a)(u,e.faceNormal0,e.faceNormal1),(0,N.n)(u,u),E.normal.setVec(t,u)}trim(E,t){return this._commonWriter.trim(E,t)}}f.Layout=R.dG,f.glLayout=(0,o.K)(R.dG,1);class D{constructor(){this._commonWriter=new O}updateSettings(E){this._commonWriter.updateSettings(E)}allocate(E){return R.Hr.createBuffer(E)}write(E,t,e){this._commonWriter.write(E,t,e),E.normalA.setVec(t,e.faceNormal0),E.normalB.setVec(t,e.faceNormal1)}trim(E,t){return this._commonWriter.trim(E,t)}}D.Layout=R.Hr,D.glLayout=(0,o.K)(R.Hr,1);const u=(0,i.c)(),U=new r.Z;var M=e(97411);function l(E){const t=P(E.data,E.skipDeduplicate,E.indices,E.indicesLength);return F.updateSettings(E.writerSettings),B.updateSettings(E.writerSettings),(0,M.n)(t,F,B)}function P(E,t,e,n){if(t){const t=T(e,n,E.count);return new G(e,n,t,E)}const A=(0,_.d)(E.buffer,E.stride/4,{originalIndices:e,originalIndicesLength:n}),r=T(A.indices,n,A.uniqueCount);return{faces:A.indices,facesLength:A.indices.length,neighbors:r,vertices:R.tf.createView(A.buffer)}}class G{constructor(E,t,e,_){this.faces=E,this.facesLength=t,this.neighbors=e,this.vertices=_}}const F=new f,B=new D,d=(0,n.U$)().vec3f(A.T.POSITION0).vec3f(A.T.POSITION1),h=(0,n.U$)().vec3f(A.T.POSITION0).vec3f(A.T.POSITION1).u16(A.T.COMPONENTINDEX).u16(A.T.U16PADDING,{glPadding:!0})},21968:(E,t,e)=>{e.d(t,{G:()=>_});class _{constructor(E,t,e,_,T,n=!1,A=0){this.name=E,this.count=t,this.type=e,this.offset=_,this.stride=T,this.normalized=n,this.divisor=A}}},35371:(E,t,e)=>{var _,T,n,A,R,r,N,i,o,O,I,S,s,C,c,a,L,f,D,u,U,M,l,P;e.d(t,{Br:()=>a,LR:()=>r,Lm:()=>U,Lu:()=>G,MX:()=>T,No:()=>s,OU:()=>M,Tg:()=>L,VI:()=>C,VY:()=>P,Wf:()=>N,_g:()=>l,cw:()=>I,db:()=>A,e8:()=>S,g:()=>i,l1:()=>f,lP:()=>c,q_:()=>F,qi:()=>u,w0:()=>R,wb:()=>o,xS:()=>O,zi:()=>n}),function(E){E[E.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",E[E.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",E[E.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(_||(_={})),function(E){E[E.POINTS=0]="POINTS",E[E.LINES=1]="LINES",E[E.LINE_LOOP=2]="LINE_LOOP",E[E.LINE_STRIP=3]="LINE_STRIP",E[E.TRIANGLES=4]="TRIANGLES",E[E.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",E[E.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(T||(T={})),function(E){E[E.ZERO=0]="ZERO",E[E.ONE=1]="ONE",E[E.SRC_COLOR=768]="SRC_COLOR",E[E.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",E[E.SRC_ALPHA=770]="SRC_ALPHA",E[E.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",E[E.DST_ALPHA=772]="DST_ALPHA",E[E.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",E[E.DST_COLOR=774]="DST_COLOR",E[E.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",E[E.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",E[E.CONSTANT_COLOR=32769]="CONSTANT_COLOR",E[E.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",E[E.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",E[E.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(n||(n={})),function(E){E[E.ADD=32774]="ADD",E[E.MIN=32775]="MIN",E[E.MAX=32776]="MAX",E[E.SUBTRACT=32778]="SUBTRACT",E[E.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(A||(A={})),function(E){E[E.ARRAY_BUFFER=34962]="ARRAY_BUFFER",E[E.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",E[E.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",E[E.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",E[E.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",E[E.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",E[E.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(R||(R={})),function(E){E[E.FRONT=1028]="FRONT",E[E.BACK=1029]="BACK",E[E.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(r||(r={})),function(E){E[E.CW=2304]="CW",E[E.CCW=2305]="CCW"}(N||(N={})),function(E){E[E.BYTE=5120]="BYTE",E[E.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",E[E.SHORT=5122]="SHORT",E[E.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",E[E.INT=5124]="INT",E[E.UNSIGNED_INT=5125]="UNSIGNED_INT",E[E.FLOAT=5126]="FLOAT"}(i||(i={})),function(E){E[E.NEVER=512]="NEVER",E[E.LESS=513]="LESS",E[E.EQUAL=514]="EQUAL",E[E.LEQUAL=515]="LEQUAL",E[E.GREATER=516]="GREATER",E[E.NOTEQUAL=517]="NOTEQUAL",E[E.GEQUAL=518]="GEQUAL",E[E.ALWAYS=519]="ALWAYS"}(o||(o={})),function(E){E[E.ZERO=0]="ZERO",E[E.KEEP=7680]="KEEP",E[E.REPLACE=7681]="REPLACE",E[E.INCR=7682]="INCR",E[E.DECR=7683]="DECR",E[E.INVERT=5386]="INVERT",E[E.INCR_WRAP=34055]="INCR_WRAP",E[E.DECR_WRAP=34056]="DECR_WRAP"}(O||(O={})),function(E){E[E.NEAREST=9728]="NEAREST",E[E.LINEAR=9729]="LINEAR",E[E.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",E[E.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",E[E.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",E[E.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(I||(I={})),function(E){E[E.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",E[E.REPEAT=10497]="REPEAT",E[E.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(S||(S={})),function(E){E[E.TEXTURE_2D=3553]="TEXTURE_2D",E[E.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",E[E.TEXTURE_3D=32879]="TEXTURE_3D",E[E.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",E[E.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",E[E.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",E[E.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",E[E.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",E[E.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",E[E.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(s||(s={})),function(E){E[E.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",E[E.DEPTH_STENCIL=34041]="DEPTH_STENCIL",E[E.ALPHA=6406]="ALPHA",E[E.RGB=6407]="RGB",E[E.RGBA=6408]="RGBA",E[E.LUMINANCE=6409]="LUMINANCE",E[E.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",E[E.RED=6403]="RED",E[E.RG=33319]="RG",E[E.RED_INTEGER=36244]="RED_INTEGER",E[E.RG_INTEGER=33320]="RG_INTEGER",E[E.RGB_INTEGER=36248]="RGB_INTEGER",E[E.RGBA_INTEGER=36249]="RGBA_INTEGER"}(C||(C={})),function(E){E[E.RGBA4=32854]="RGBA4",E[E.R16F=33325]="R16F",E[E.RG16F=33327]="RG16F",E[E.RGB32F=34837]="RGB32F",E[E.RGBA16F=34842]="RGBA16F",E[E.R32F=33326]="R32F",E[E.RG32F=33328]="RG32F",E[E.RGBA32F=34836]="RGBA32F",E[E.R11F_G11F_B10F=35898]="R11F_G11F_B10F",E[E.RGB8=32849]="RGB8",E[E.RGBA8=32856]="RGBA8",E[E.RGB5_A1=32855]="RGB5_A1",E[E.R8=33321]="R8",E[E.RG8=33323]="RG8",E[E.R8I=33329]="R8I",E[E.R8UI=33330]="R8UI",E[E.R16I=33331]="R16I",E[E.R16UI=33332]="R16UI",E[E.R32I=33333]="R32I",E[E.R32UI=33334]="R32UI",E[E.RG8I=33335]="RG8I",E[E.RG8UI=33336]="RG8UI",E[E.RG16I=33337]="RG16I",E[E.RG16UI=33338]="RG16UI",E[E.RG32I=33339]="RG32I",E[E.RG32UI=33340]="RG32UI",E[E.RGB16F=34843]="RGB16F",E[E.RGB9_E5=35901]="RGB9_E5",E[E.SRGB8=35905]="SRGB8",E[E.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",E[E.RGB565=36194]="RGB565",E[E.RGBA32UI=36208]="RGBA32UI",E[E.RGB32UI=36209]="RGB32UI",E[E.RGBA16UI=36214]="RGBA16UI",E[E.RGB16UI=36215]="RGB16UI",E[E.RGBA8UI=36220]="RGBA8UI",E[E.RGB8UI=36221]="RGB8UI",E[E.RGBA32I=36226]="RGBA32I",E[E.RGB32I=36227]="RGB32I",E[E.RGBA16I=36232]="RGBA16I",E[E.RGB16I=36233]="RGB16I",E[E.RGBA8I=36238]="RGBA8I",E[E.RGB8I=36239]="RGB8I",E[E.R8_SNORM=36756]="R8_SNORM",E[E.RG8_SNORM=36757]="RG8_SNORM",E[E.RGB8_SNORM=36758]="RGB8_SNORM",E[E.RGBA8_SNORM=36759]="RGBA8_SNORM",E[E.RGB10_A2=32857]="RGB10_A2",E[E.RGB10_A2UI=36975]="RGB10_A2UI"}(c||(c={})),function(E){E[E.FLOAT=5126]="FLOAT",E[E.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",E[E.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",E[E.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",E[E.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",E[E.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",E[E.BYTE=5120]="BYTE",E[E.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",E[E.SHORT=5122]="SHORT",E[E.UNSIGNED_INT=5125]="UNSIGNED_INT",E[E.INT=5124]="INT",E[E.HALF_FLOAT=5131]="HALF_FLOAT",E[E.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",E[E.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",E[E.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",E[E.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(a||(a={})),function(E){E[E.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",E[E.STENCIL_INDEX8=36168]="STENCIL_INDEX8",E[E.DEPTH_STENCIL=34041]="DEPTH_STENCIL",E[E.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",E[E.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",E[E.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",E[E.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(L||(L={})),function(E){E[E.STATIC_DRAW=35044]="STATIC_DRAW",E[E.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",E[E.STREAM_DRAW=35040]="STREAM_DRAW",E[E.STATIC_READ=35045]="STATIC_READ",E[E.DYNAMIC_READ=35049]="DYNAMIC_READ",E[E.STREAM_READ=35041]="STREAM_READ",E[E.STATIC_COPY=35046]="STATIC_COPY",E[E.DYNAMIC_COPY=35050]="DYNAMIC_COPY",E[E.STREAM_COPY=35042]="STREAM_COPY"}(f||(f={})),function(E){E[E.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",E[E.VERTEX_SHADER=35633]="VERTEX_SHADER"}(D||(D={})),function(E){E[E.FRAMEBUFFER=36160]="FRAMEBUFFER",E[E.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",E[E.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(u||(u={})),function(E){E[E.TEXTURE=0]="TEXTURE",E[E.RENDER_BUFFER=1]="RENDER_BUFFER",E[E.CUBEMAP=2]="CUBEMAP"}(U||(U={})),function(E){E[E.NONE=0]="NONE",E[E.DEPTH_RENDER_BUFFER=1]="DEPTH_RENDER_BUFFER",E[E.STENCIL_RENDER_BUFFER=2]="STENCIL_RENDER_BUFFER",E[E.DEPTH_STENCIL_RENDER_BUFFER=3]="DEPTH_STENCIL_RENDER_BUFFER",E[E.DEPTH_STENCIL_TEXTURE=4]="DEPTH_STENCIL_TEXTURE"}(M||(M={})),function(E){E[E.Texture=0]="Texture",E[E.BufferObject=1]="BufferObject",E[E.VertexArrayObject=2]="VertexArrayObject",E[E.Shader=3]="Shader",E[E.Program=4]="Program",E[E.FramebufferObject=5]="FramebufferObject",E[E.Renderbuffer=6]="Renderbuffer",E[E.Sync=7]="Sync",E[E.COUNT=8]="COUNT"}(l||(l={})),function(E){E[E.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",E[E.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",E[E.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",E[E.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",E[E.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",E[E.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",E[E.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",E[E.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",E[E.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",E[E.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",E[E.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",E[E.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",E[E.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",E[E.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",E[E.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",E[E.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(P||(P={}));const G=33306;var F,B,d,h,H,g,p;!function(E){E[E.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",E[E.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",E[E.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",E[E.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",E[E.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",E[E.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",E[E.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",E[E.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",E[E.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",E[E.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",E[E.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",E[E.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",E[E.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",E[E.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(F||(F={})),function(E){E[E.FLOAT=5126]="FLOAT",E[E.FLOAT_VEC2=35664]="FLOAT_VEC2",E[E.FLOAT_VEC3=35665]="FLOAT_VEC3",E[E.FLOAT_VEC4=35666]="FLOAT_VEC4",E[E.INT=5124]="INT",E[E.INT_VEC2=35667]="INT_VEC2",E[E.INT_VEC3=35668]="INT_VEC3",E[E.INT_VEC4=35669]="INT_VEC4",E[E.BOOL=35670]="BOOL",E[E.BOOL_VEC2=35671]="BOOL_VEC2",E[E.BOOL_VEC3=35672]="BOOL_VEC3",E[E.BOOL_VEC4=35673]="BOOL_VEC4",E[E.FLOAT_MAT2=35674]="FLOAT_MAT2",E[E.FLOAT_MAT3=35675]="FLOAT_MAT3",E[E.FLOAT_MAT4=35676]="FLOAT_MAT4",E[E.SAMPLER_2D=35678]="SAMPLER_2D",E[E.SAMPLER_CUBE=35680]="SAMPLER_CUBE",E[E.UNSIGNED_INT=5125]="UNSIGNED_INT",E[E.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",E[E.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",E[E.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",E[E.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",E[E.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",E[E.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",E[E.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",E[E.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",E[E.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",E[E.SAMPLER_3D=35679]="SAMPLER_3D",E[E.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",E[E.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",E[E.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",E[E.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",E[E.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",E[E.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",E[E.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",E[E.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",E[E.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",E[E.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",E[E.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",E[E.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(B||(B={})),function(E){E[E.OBJECT_TYPE=37138]="OBJECT_TYPE",E[E.SYNC_CONDITION=37139]="SYNC_CONDITION",E[E.SYNC_STATUS=37140]="SYNC_STATUS",E[E.SYNC_FLAGS=37141]="SYNC_FLAGS"}(d||(d={})),function(E){E[E.UNSIGNALED=37144]="UNSIGNALED",E[E.SIGNALED=37145]="SIGNALED"}(h||(h={})),function(E){E[E.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",E[E.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",E[E.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",E[E.WAIT_FAILED=37149]="WAIT_FAILED"}(H||(H={})),function(E){E[E.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(g||(g={})),function(E){E[E.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(p||(p={}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7476],{28576:(e,t,r)=>{r.d(t,{B:()=>u});var s=r(81153),i=r(17452),o=r(41123),n=r(7628),a=r(31263),l=r(5600),p=r(66094),d=r(25929);function u(e){const t=e?.origins??[void 0];return(r,o)=>{const u=function(e,t,r){if("resource"===e?.type)return function(e,t,r){const o=(0,n.Oe)(t,r);return{type:String,read:(e,t,r)=>{const s=(0,d.r)(e,t,r);return o.type===String?s:"function"==typeof o.type?new o.type({url:s}):void 0},write:{writer(t,n,l,u){if(!u||!u.resources)return"string"==typeof t?void(n[l]=(0,d.t)(t,u)):void(n[l]=t.write({},u));const f=function(e){return null==e?null:"string"==typeof e?e:e.url}(t),g=(0,d.t)(f,{...u,verifyItemRelativeUrls:u&&u.verifyItemRelativeUrls?{writtenUrls:u.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},d.M.NO),m=o.type!==String&&(!(0,s.l)(this)||u&&u.origin&&this.originIdOf(r)>(0,a.M9)(u.origin)),b={object:this,propertyName:r,value:t,targetUrl:g,dest:n,targetPropertyName:l,context:u,params:e};u&&u.portalItem&&g&&!(0,i.YP)(g)?m?function(e){const{context:t,targetUrl:r,params:s,value:o,dest:n,targetPropertyName:a}=e;if(!t.portalItem)return;const l=t.portalItem.resourceFromPath(r),d=h(o,r,t),u=(0,p.B)(d),f=(0,i.Ml)(l.path),g=s?.compress??!1;u===f?(t.resources&&y({...e,resource:l,content:d,compress:g,updates:t.resources.toUpdate}),n[a]=r):c(e)}(b):function({context:e,targetUrl:t,dest:r,targetPropertyName:s}){e.portalItem&&e.resources&&(e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(t),compress:!1}),r[s]=t)}(b):u&&u.portalItem&&(null==g||null!=(0,d.i)(g)||(0,i.jc)(g)||m)?c(b):n[l]=g}}}}(e,t,r);switch(e?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:e,write:t}=d.a;return{read:e,write:t}}}}(e,r,o);for(const e of t){const t=(0,l.CJ)(r,e,o);for(const e in u)t[e]=u[e]}}}function c(e){const{targetUrl:t,params:s,value:n,context:a,dest:l,targetPropertyName:u}=e;if(!a.portalItem)return;const c=(0,d.p)(t),f=c?.filename??(0,o.D)(),g=s?.prefix??c?.prefix,m=h(n,t,a),b=(0,i.v_)(g,f),v=`${b}.${(0,p.B)(m)}`,w=a.portalItem.resourceFromPath(v);(0,i.jc)(t)&&a.resources&&a.resources.pendingOperations.push(async function(e){const t=(await Promise.resolve().then(r.bind(r,3172))).default,{data:s}=await t(e,{responseType:"blob"});return s}(t).then((e=>{w.path=`${b}.${(0,p.B)(e)}`,l[u]=w.itemRelativeUrl})).catch((()=>{})));const I=s?.compress??!1;a.resources&&y({...e,resource:w,content:m,compress:I,updates:a.resources.toAdd}),l[u]=w.itemRelativeUrl}function y({object:e,propertyName:t,updates:r,resource:s,content:i,compress:o}){r.push({resource:s,content:i,compress:o,finish:r=>{!function(e,t,r){"string"==typeof e[t]?e[t]=r.url:e[t].url=r.url}(e,t,r)}})}function h(e,t,r){return"string"==typeof e?{url:t}:new Blob([JSON.stringify(e.toJSON(r))],{type:"application/json"})}},57476:(e,t,r)=>{r.r(t),r.d(t,{default:()=>he});var s=r(43697),i=r(38171),o=r(51773),n=(r(16050),r(12501),r(28756),r(92271),r(72529),r(5499),r(84382),r(81571),r(91423),r(32400)),a=r(3172),l=r(46791),p=r(20102),d=r(92604),u=r(16453),c=r(95330),y=r(17445),h=r(17452),f=r(5600),g=(r(75215),r(67676),r(80442),r(1153)),m=r(71715),b=r(52011),v=r(31263),w=r(87085),I=r(54295),_=r(17287),L=r(66361),S=r(38009),C=r(16859),F=r(72965),j=r(20559),x=r(15506),O=r(21506),P=r(61960),R=r(85857),E=r(14147),T=r(53518),A=r(99514),N=r(35671),Z=r(51161),D=r(54306),U=r(30707),q=r(56765),Q=r(96674);let k=class extends Q.wq{constructor(){super(...arguments),this.name=null,this.field=null,this.currentRangeExtent=null,this.fullRangeExtent=null,this.type="rangeInfo"}};(0,s._)([(0,f.Cb)({type:String,json:{read:!0,write:!0}})],k.prototype,"name",void 0),(0,s._)([(0,f.Cb)({type:String,json:{read:!0,write:!0}})],k.prototype,"field",void 0),(0,s._)([(0,f.Cb)({type:[Number],json:{read:!0,write:!0}})],k.prototype,"currentRangeExtent",void 0),(0,s._)([(0,f.Cb)({type:[Number],json:{read:!0,write:!0}})],k.prototype,"fullRangeExtent",void 0),(0,s._)([(0,f.Cb)({type:["rangeInfo"],readOnly:!0,json:{read:!1,write:!0}})],k.prototype,"type",void 0),k=(0,s._)([(0,b.j)("esri.layers.support.RangeInfo")],k);var G,V=r(61247),J=r(22974),M=r(70586),B=r(28576),$=r(20941),z=r(38913),K=r(44547);let W=G=class extends((0,Q.eC)(l.Z.ofType(z.Z))){constructor(e){super(e)}clone(){return new G(this.items.map((e=>e.clone())))}write(e,t){return this.toJSON(t)}toJSON(e){const t=e?.layer?.spatialReference;return t?this.toArray().map((r=>{if(!t.equals(r.spatialReference)){if(!(0,K.Up)(r.spatialReference,t))return e&&e.messages&&e.messages.push(new $.Z("scenefilter:unsupported","Scene filters with incompatible spatial references are not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),null;const s=new z.Z;(0,K.Wt)(r,s,t),r=s}const s=r.toJSON(e);return delete s.spatialReference,s})).filter((e=>null!=e)):(e?.messages&&e.messages.push(new $.Z("scenefilter:unsupported","Writing Scene filters without context layer is not supported",{modification:this,spatialReference:e.layer.spatialReference,context:e})),this.toArray().map((t=>t.toJSON(e))))}static fromJSON(e,t){const r=new G;return e.forEach((e=>r.add(z.Z.fromJSON(e,t)))),r}};W=G=(0,s._)([(0,b.j)("esri.layers.support.PolygonCollection")],W);const Y=W;var H,X=r(25929);let ee=H=class extends Q.wq{constructor(e){super(e),this.spatialRelationship="disjoint",this.geometries=new Y,this._geometriesSource=null,this._handles=new V.Z}initialize(){this._handles.add((0,y.on)((()=>this.geometries),"after-changes",(()=>this.geometries=this.geometries),y.Z_))}destroy(){this._handles.destroy()}readGeometries(e,t,r){this._geometriesSource={url:(0,X.f)(e,r),context:r}}async loadGeometries(e,t){if(null==this._geometriesSource)return;const{url:r,context:s}=this._geometriesSource,i=await(0,a.default)(r,{responseType:"json",signal:(0,M.U2)(t,"signal")}),o=e.toJSON(),n=i.data.map((e=>({...e,spatialReference:o})));this.geometries=Y.fromJSON(n,s),this._geometriesSource=null}clone(){return new H({geometries:(0,J.d9)(this.geometries),spatialRelationship:this.spatialRelationship})}};(0,s._)([(0,f.Cb)({type:["disjoint","contains"],nonNullable:!0,json:{write:!0}})],ee.prototype,"spatialRelationship",void 0),(0,s._)([(0,f.Cb)({type:Y,nonNullable:!0,json:{write:!0}}),(0,B.B)({origins:["web-scene","portal-item"],type:"resource",prefix:"geometries"})],ee.prototype,"geometries",void 0),(0,s._)([(0,m.r)(["web-scene","portal-item"],"geometries")],ee.prototype,"readGeometries",null),ee=H=(0,s._)([(0,b.j)("esri.layers.support.SceneFilter")],ee);const te=ee;var re=r(40555),se=r(14165),ie=r(72245),oe=r(32163),ne=r(77397),ae=r(19833),le=r(65242);const pe=["3DObject","Point"],de=(0,T.v)();let ue=class extends((0,L.o1)((0,j.Vt)((0,_.Y)((0,S.q)((0,C.I)((0,F.M)((0,u.R)((0,I.V)(w.Z))))))))){constructor(...e){super(...e),this.featureReduction=null,this.rangeInfos=null,this.operationalLayerType="ArcGISSceneServiceLayer",this.type="scene",this.fields=null,this.floorInfo=null,this.outFields=null,this.nodePages=null,this.materialDefinitions=null,this.textureSetDefinitions=null,this.geometryDefinitions=null,this.serviceUpdateTimeStamp=null,this.excludeObjectIds=new l.Z,this.definitionExpression=null,this.filter=null,this.path=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.priority=null,this.semantic=null,this.cachedDrawingInfo={color:!1},this.popupEnabled=!0,this.popupTemplate=null,this.objectIdField=null,this.globalIdField=null,this._fieldUsageInfo={},this.screenSizePerspectiveEnabled=!0}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getFeatureType(t?.feature)?.domains?.[e];return r&&"inherited"!==r.type?r:this.getField(e)?.domain??null}getFeatureType(e){return null!=e&&null!=this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return null!=this.associatedLayer?this.associatedLayer.types??[]:[]}get typeIdField(){return null!=this.associatedLayer?this.associatedLayer.typeIdField:null}get formTemplate(){return null!=this.associatedLayer?this.associatedLayer.formTemplate:null}get fieldsIndex(){return new A.Z(this.fields)}readNodePages(e,t,r){return"Point"===t.layerType&&(e=t.pointNodePages),null==e||"object"!=typeof e?null:Z.U4.fromJSON(e,r)}set elevationInfo(e){this._set("elevationInfo",e),this.loaded&&this._validateElevationInfo()}get geometryType(){return ye[this.profile]||"mesh"}set renderer(e){(0,N.YN)(e,this.fieldsIndex),this._set("renderer",e)}readCachedDrawingInfo(e){return null!=e&&"object"==typeof e||(e={}),null==e.color&&(e.color=!1),e}get capabilities(){const e=null!=this.associatedLayer&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:x.C,{query:t,editing:{supportsGlobalId:r,supportsRollbackOnFailure:s,supportsUploadWithItemId:i,supportsGeometryUpdate:o,supportsReturnServiceEditsInSourceSpatialReference:n},data:{supportsZ:a,supportsM:l,isVersioned:p,supportsAttachment:d},operations:{supportsEditing:u,supportsAdd:c,supportsUpdate:y,supportsDelete:h,supportsQuery:f,supportsQueryAttachments:g}}=e,m=e.operations.supportsChangeTracking,b=null!=this.associatedLayer&&null!=this.associatedLayer.infoFor3D&&(0,ie.Rx)();return{query:t,editing:{supportsGlobalId:r,supportsReturnServiceEditsInSourceSpatialReference:n,supportsRollbackOnFailure:s,supportsGeometryUpdate:b&&o,supportsUploadWithItemId:i},data:{supportsAttachment:d,supportsZ:a,supportsM:l,isVersioned:p},operations:{supportsQuery:f,supportsQueryAttachments:g,supportsEditing:u&&m,supportsAdd:b&&c&&m,supportsDelete:b&&h&&m,supportsUpdate:y&&m}}}get editingEnabled(){return this._isOverridden("editingEnabled")?this._get("editingEnabled"):this.userHasEditingPrivileges}set editingEnabled(e){this._overrideIfSome("editingEnabled",e)}get infoFor3D(){return null!=this.associatedLayer?this.associatedLayer.infoFor3D:null}get defaultPopupTemplate(){return null!=this.associatedLayer||this.attributeStorageInfo?this.createPopupTemplate():null}readObjectIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeOID"===t.type&&(e=t.name),!!e))),e||void 0}readGlobalIdField(e,t){return!e&&t.fields&&t.fields.some((t=>("esriFieldTypeGlobalID"===t.type&&(e=t.name),!!e))),e||void 0}get displayField(){return null!=this.associatedLayer?this.associatedLayer.displayField:null}readProfile(e,t){const r=t.store.profile;return null!=r&&ce[r]?ce[r]:(d.Z.getLogger(this.declaredClass).error("Unknown or missing profile",{profile:r,layer:this}),"mesh-pyramids")}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(c.r9).then((()=>this._fetchService(t))).then((()=>Promise.all([this._fetchIndexAndUpdateExtent(this.nodePages,t),this._setAssociatedFeatureLayer(t),null!=this.filter?this.filter.loadGeometries(this.spatialReference):null]))).then((()=>this._validateElevationInfo())).then((()=>this._applyAssociatedLayerOverrides())).then((()=>this._populateFieldUsageInfo())).then((()=>(0,re.y)(this,{origin:"service"},t))).then((()=>(0,N.YN)(this.renderer,this.fieldsIndex))).then((()=>this.finishLoadEditablePortalLayer(e)));return this.addResolvingPromise(r),Promise.resolve(this)}async beforeSave(){null!=this.filter&&await this.load()}createQuery(){const e=new se.Z;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e.outFields=["*"],e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=this,t.sourceLayer=this;return e}))}async queryCachedAttributes(e,t){const r=(0,N.Lk)(this.fieldsIndex,await(0,ae.e)(this,(0,ae.V)(this)));return(0,ne.xe)(this.parsedUrl.path,this.attributeStorageInfo??[],e,t,r)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new p.Z("scenelayer:feature-not-in-cached-data","Feature not found in cached data");const s=new i.Z;return s.attributes=r[0],s.layer=this,s.sourceLayer=this,s}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}queryAttachments(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryAttachments(e,t)))}getFieldUsageInfo(e){const t={supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1};return this.loaded?this._fieldUsageInfo[e]||t:(d.Z.getLogger(this.declaredClass).error("#getFieldUsageInfo()","Unavailable until layer is loaded"),t)}createPopupTemplate(e){return(0,oe.eZ)(this,e)}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return null!=e&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),null==this.associatedLayer)throw new p.Z("scenelayer:query-not-available","SceneLayer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new p.Z("scenelayer:query-not-available","SceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}hasCachedStatistics(e){return null!=this.statisticsInfo&&this.statisticsInfo.some((t=>t.name===e))}async queryCachedStatistics(e,t){if(await this.load(t),!this.statisticsInfo)throw new p.Z("scenelayer:no-cached-statistics","Cached statistics are not available for this layer");const r=this.fieldsIndex.get(e);if(!r)throw new p.Z("scenelayer:field-unexisting",`Field '${e}' does not exist on the layer`);for(const e of this.statisticsInfo)if(e.name===r.name){const r=(0,h.v_)(this.parsedUrl.path,e.href);return(0,a.default)(r,{query:{f:"json",token:this.apiKey},responseType:"json",signal:t?t.signal:null}).then((e=>e.data))}throw new p.Z("scenelayer:no-cached-statistics","Cached statistics for this attribute are not available")}async saveAs(e,t){return this._debouncedSaveOperations(j.xp.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"scene"};return this._debouncedSaveOperations(j.xp.SAVE,e)}async applyEdits(e,t){const s=await r.e(1444).then(r.bind(r,14720));if(await this.load(),null==this.associatedLayer)throw new p.Z(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),s.applyEdits(this,this.associatedLayer.source,e,t)}async uploadAssets(e,t){if(await this.load(),null==this.associatedLayer)throw new p.Z(`${this.type}-layer:not-editable`,"Service is not editable");return await this.associatedLayer.load(),this.associatedLayer.uploadAssets(e,t)}on(e,t){return super.on(e,t)}validateLayer(e){if(e.layerType&&!pe.includes(e.layerType))throw new p.Z("scenelayer:layer-type-not-supported","SceneLayer does not support this layer type",{layerType:e.layerType});if(isNaN(this.version.major)||isNaN(this.version.minor))throw new p.Z("layer:service-version-not-supported","Service version is not supported.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});if(this.version.major>2)throw new p.Z("layer:service-version-too-new","Service version is too new.",{serviceVersion:this.version.versionString,supportedVersions:"1.x, 2.x"});!function(e,t){let r=!1,s=!1;if(null==e)r=!0,s=!0;else{const i=t&&t.isGeographic;switch(e){case"east-north-up":case"earth-centered":r=!0,s=i;break;case"vertex-reference-frame":r=!0,s=!i;break;default:r=!1}}if(!r)throw new p.Z("scenelayer:unsupported-normal-reference-frame","Normal reference frame is invalid.");if(!s)throw new p.Z("scenelayer:incompatible-normal-reference-frame","Normal reference frame is incompatible with layer spatial reference.")}(this.normalReferenceFrame,this.spatialReference)}_getTypeKeywords(){const e=[];if("points"===this.profile)e.push("Point");else{if("mesh-pyramids"!==this.profile)throw new p.Z("scenelayer:unknown-profile","SceneLayer:save() encountered an unknown SceneLayer profile: "+this.profile);e.push("3DObject")}return e}_populateFieldUsageInfo(){if(this._fieldUsageInfo={},this.fields)for(const e of this.fields){const t=!(!this.attributeStorageInfo||!this.attributeStorageInfo.some((t=>t.name===e.name))),r=!(null==this.associatedLayer||!this.associatedLayer.fields||!this.associatedLayer.fields.some((t=>t&&e.name===t.name))),s={supportsLabelingInfo:t,supportsRenderer:t,supportsPopupTemplate:t||r,supportsLayerQuery:r};this._fieldUsageInfo[e.name]=s}}_applyAssociatedLayerOverrides(){this._applyAssociatedLayerFieldsOverrides(),this._applyAssociatedLayerPopupOverrides()}_applyAssociatedLayerFieldsOverrides(){if(null==this.associatedLayer||!this.associatedLayer.fields)return;let e=null;for(const t of this.associatedLayer.fields){const r=this.getField(t.name);r?(!r.domain&&t.domain&&(r.domain=t.domain.clone()),r.editable=t.editable,r.nullable=t.nullable,r.length=t.length):(e||(e=this.fields?this.fields.slice():[]),e.push(t.clone()))}e&&this._set("fields",e)}_applyAssociatedLayerPopupOverrides(){if(null==this.associatedLayer)return;const e=["popupTemplate","popupEnabled"],t=(0,g.vw)(this);for(let r=0;r<e.length;r++){const s=e[r],i=this.originIdOf(s),o=this.associatedLayer.originIdOf(s);i<o&&(o===v.s3.SERVICE||o===v.s3.PORTAL_ITEM)&&t.setAtOrigin(s,this.associatedLayer[s],o)}}async _setAssociatedFeatureLayer(e){if(!["mesh-pyramids","points"].includes(this.profile))return;const t=new E.W(this.parsedUrl,this.portalItem,this.apiKey,e);try{this.associatedLayer=await t.fetch()}catch(e){(0,c.D_)(e)||this._logWarningOnPopupEnabled()}}async _logWarningOnPopupEnabled(){await(0,y.N1)((()=>this.popupEnabled&&null!=this.popupTemplate));const e=`this SceneLayer: ${this.title}`;null==this.attributeStorageInfo?d.Z.getLogger(this.declaredClass).warn(`Associated FeatureLayer could not be loaded and no binary attributes found. Popups will not work on ${e}`):d.Z.getLogger(this.declaredClass).info(`Associated FeatureLayer could not be loaded. Falling back to binary attributes for Popups on ${e}`)}_validateElevationInfo(){const e=this.elevationInfo;e&&("mesh-pyramids"===this.profile&&"relative-to-scene"===e.mode&&d.Z.getLogger(this.declaredClass).warn(".elevationInfo=","Mesh scene layers don't support relative-to-scene elevation mode"),e.featureExpressionInfo&&"0"!==e.featureExpressionInfo.expression&&d.Z.getLogger(this.declaredClass).warn(".elevationInfo=","Scene layers do not support featureExpressionInfo"))}};(0,s._)([(0,f.Cb)({types:{key:"type",base:P.B,typeMap:{selection:R.Z}},json:{origins:{"web-scene":{name:"layerDefinition.featureReduction",write:!0},"portal-item":{name:"layerDefinition.featureReduction",write:!0}}}})],ue.prototype,"featureReduction",void 0),(0,s._)([(0,f.Cb)({type:[k],json:{read:!1,origins:{"web-scene":{name:"layerDefinition.rangeInfos",write:!0},"portal-item":{name:"layerDefinition.rangeInfos",write:!0}}}})],ue.prototype,"rangeInfos",void 0),(0,s._)([(0,f.Cb)({json:{read:!1}})],ue.prototype,"associatedLayer",void 0),(0,s._)([(0,f.Cb)({type:["show","hide"]})],ue.prototype,"listMode",void 0),(0,s._)([(0,f.Cb)({type:["ArcGISSceneServiceLayer"]})],ue.prototype,"operationalLayerType",void 0),(0,s._)([(0,f.Cb)({json:{read:!1},readOnly:!0})],ue.prototype,"type",void 0),(0,s._)([(0,f.Cb)({...de.fields,readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],ue.prototype,"fields",void 0),(0,s._)([(0,f.Cb)()],ue.prototype,"types",null),(0,s._)([(0,f.Cb)()],ue.prototype,"typeIdField",null),(0,s._)([(0,f.Cb)()],ue.prototype,"formTemplate",null),(0,s._)([(0,f.Cb)({readOnly:!0})],ue.prototype,"fieldsIndex",null),(0,s._)([(0,f.Cb)({type:q.Z,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],ue.prototype,"floorInfo",void 0),(0,s._)([(0,f.Cb)(de.outFields)],ue.prototype,"outFields",void 0),(0,s._)([(0,f.Cb)({type:Z.U4,readOnly:!0,json:{read:!1}})],ue.prototype,"nodePages",void 0),(0,s._)([(0,m.r)("service","nodePages",["nodePages","pointNodePages"])],ue.prototype,"readNodePages",null),(0,s._)([(0,f.Cb)({type:[Z.QI],readOnly:!0})],ue.prototype,"materialDefinitions",void 0),(0,s._)([(0,f.Cb)({type:[Z.Yh],readOnly:!0})],ue.prototype,"textureSetDefinitions",void 0),(0,s._)([(0,f.Cb)({type:[Z.H3],readOnly:!0})],ue.prototype,"geometryDefinitions",void 0),(0,s._)([(0,f.Cb)({readOnly:!0})],ue.prototype,"serviceUpdateTimeStamp",void 0),(0,s._)([(0,f.Cb)({readOnly:!0})],ue.prototype,"attributeStorageInfo",void 0),(0,s._)([(0,f.Cb)({readOnly:!0})],ue.prototype,"statisticsInfo",void 0),(0,s._)([(0,f.Cb)({type:l.Z.ofType(Number),nonNullable:!0,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.excludeObjectIds",write:{enabled:!0}}})],ue.prototype,"excludeObjectIds",void 0),(0,s._)([(0,f.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ue.prototype,"definitionExpression",void 0),(0,s._)([(0,f.Cb)({type:te,json:{name:"layerDefinition.polygonFilter",write:{enabled:!0,allowNull:!0},origins:{service:{read:!1,write:!1}}}})],ue.prototype,"filter",void 0),(0,s._)([(0,f.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],ue.prototype,"path",void 0),(0,s._)([(0,f.Cb)(O.PV)],ue.prototype,"elevationInfo",null),(0,s._)([(0,f.Cb)({type:String})],ue.prototype,"geometryType",null),(0,s._)([(0,f.Cb)(O.iR)],ue.prototype,"labelsVisible",void 0),(0,s._)([(0,f.Cb)({type:[D.Z],json:{origins:{service:{name:"drawingInfo.labelingInfo",read:{reader:U.r},write:!1}},name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:U.r},write:!0}})],ue.prototype,"labelingInfo",void 0),(0,s._)([(0,f.Cb)(O.rn)],ue.prototype,"legendEnabled",void 0),(0,s._)([(0,f.Cb)({type:Number,json:{origins:{"web-document":{default:1,write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}},read:{source:["opacity","layerDefinition.drawingInfo.transparency"],reader(e,t){if("number"==typeof e&&e>=0&&e<=1)return e;const r=t.layerDefinition?.drawingInfo?.transparency;return void 0!==r?(0,le.b)(r):void 0}}},"portal-item":{write:!0},service:{read:!1}}}})],ue.prototype,"opacity",void 0),(0,s._)([(0,f.Cb)({type:["Low","High"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],ue.prototype,"priority",void 0),(0,s._)([(0,f.Cb)({type:["Labels"],readOnly:!0,json:{read:!1,origins:{service:{read:!0}}}})],ue.prototype,"semantic",void 0),(0,s._)([(0,f.Cb)({types:n.o,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],ue.prototype,"renderer",null),(0,s._)([(0,f.Cb)({json:{read:!1}})],ue.prototype,"cachedDrawingInfo",void 0),(0,s._)([(0,m.r)("service","cachedDrawingInfo")],ue.prototype,"readCachedDrawingInfo",null),(0,s._)([(0,f.Cb)({readOnly:!0,json:{read:!1}})],ue.prototype,"capabilities",null),(0,s._)([(0,f.Cb)({type:Boolean,json:{read:!1}})],ue.prototype,"editingEnabled",null),(0,s._)([(0,f.Cb)({readOnly:!0,json:{write:!1,read:!1}})],ue.prototype,"infoFor3D",null),(0,s._)([(0,f.Cb)(O.C_)],ue.prototype,"popupEnabled",void 0),(0,s._)([(0,f.Cb)({type:o.Z,json:{name:"popupInfo",write:!0}})],ue.prototype,"popupTemplate",void 0),(0,s._)([(0,f.Cb)({readOnly:!0,json:{read:!1}})],ue.prototype,"defaultPopupTemplate",null),(0,s._)([(0,f.Cb)({type:String,json:{read:!1}})],ue.prototype,"objectIdField",void 0),(0,s._)([(0,m.r)("service","objectIdField",["objectIdField","fields"])],ue.prototype,"readObjectIdField",null),(0,s._)([(0,f.Cb)({type:String,json:{read:!1}})],ue.prototype,"globalIdField",void 0),(0,s._)([(0,m.r)("service","globalIdField",["globalIdField","fields"])],ue.prototype,"readGlobalIdField",null),(0,s._)([(0,f.Cb)({readOnly:!0,type:String,json:{read:!1}})],ue.prototype,"displayField",null),(0,s._)([(0,f.Cb)({type:String,json:{read:!1}})],ue.prototype,"profile",void 0),(0,s._)([(0,m.r)("service","profile",["store.profile"])],ue.prototype,"readProfile",null),(0,s._)([(0,f.Cb)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],ue.prototype,"normalReferenceFrame",void 0),(0,s._)([(0,f.Cb)(O.YI)],ue.prototype,"screenSizePerspectiveEnabled",void 0),ue=(0,s._)([(0,b.j)("esri.layers.SceneLayer")],ue);const ce={"mesh-pyramids":"mesh-pyramids",meshpyramids:"mesh-pyramids","features-meshes":"mesh-pyramids",points:"points","features-points":"points",lines:"lines","features-lines":"lines",polygons:"polygons","features-polygons":"polygons"},ye={"mesh-pyramids":"mesh",points:"point",lines:"polyline",polygons:"polygon"},he=ue},66094:(e,t,r)=>{r.d(t,{B:()=>i});var s=r(17452);function i(e){return o[function(e){return e instanceof Blob?e.type:function(e){const t=(0,s.Ml)(e);return l[t]||n}(e.url)}(e)]||a}const o={},n="text/plain",a=o[n],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const e in l)o[l[e]]=e}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8079],{78079:(e,t,n)=>{n.r(t),n.d(t,{loadGLTFMesh:()=>_});var r=n(22303),o=n(3172),l=n(30175),s=n(22021),u=n(70586),a=n(21787),c=n(46521),i=n(65617),f=n(88669),d=n(62540),m=n(60746),p=n(91024),x=n(71630),g=n(56481),y=n(20773),T=n(11077),b=n(79583);Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t,n){const r=e.typedBuffer,o=e.typedBufferStride,l=t.typedBuffer,s=t.typedBufferStride,u=n?n.count:t.count;let a=(n&&n.dstIndex?n.dstIndex:0)*o,c=(n&&n.srcIndex?n.srcIndex:0)*s;for(let e=0;e<u;++e){for(let e=0;e<9;++e)r[a+e]=l[c+e];a+=o,c+=s}}},Symbol.toStringTag,{value:"Module"})),Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t,n){const r=e.typedBuffer,o=e.typedBufferStride,l=t.typedBuffer,s=t.typedBufferStride,u=n?n.count:t.count;let a=(n&&n.dstIndex?n.dstIndex:0)*o,c=(n&&n.srcIndex?n.srcIndex:0)*s;for(let e=0;e<u;++e){for(let e=0;e<16;++e)r[a+e]=l[c+e];a+=o,c+=s}}},Symbol.toStringTag,{value:"Module"})),n(93860);var w=n(10816),v=n(56067),h=n(75488);function C(e,t){return new e(new ArrayBuffer(t*e.ElementCount*(0,b.n1)(e.ElementType)))}var B=n(66459),A=n(40270),E=n(91695),S=n(91911),M=n(15317),R=n(57758),I=n(35371);async function _(e,t,n){const l=new A.C(function(e){const t=e?.resolveFile;return t?{busy:!1,request:async(e,n,r)=>{const l=t(e),s="image"===n?"image":"binary"===n?"array-buffer":"json";return(await(0,o.default)(l,{responseType:s,signal:null!=r?r.signal:null})).data}}:null}(n)),s=(await(0,E.Q)(l,t,n,!0)).model,a=s.lods.shift(),c=new Map,d=new Map;s.textures.forEach(((e,t)=>c.set(t,function(e){return new p.Z({data:((0,M.$A)(e.data),e.data),wrap:j(e.parameters.wrap)})}(e)))),s.materials.forEach(((e,t)=>d.set(t,function(e,t){const n=new r.Z(function(e,t){return(0,f.f)(z(e[0]),z(e[1]),z(e[2]),t)}(e.color,e.opacity)),o=e.emissiveFactor?new r.Z(function(e){return(0,i.f)(z(e[0]),z(e[1]),z(e[2]))}(e.emissiveFactor)):null;return new m.Z({color:n,colorTexture:(0,u.yw)(e.textureColor,(e=>t.get(e))),normalTexture:(0,u.yw)(e.textureNormal,(e=>t.get(e))),emissiveColor:o,emissiveTexture:(0,u.yw)(e.textureEmissive,(e=>t.get(e))),occlusionTexture:(0,u.yw)(e.textureOcclusion,(e=>t.get(e))),alphaMode:F(e.alphaMode),alphaCutoff:e.alphaCutoff,doubleSided:e.doubleSided,metallic:e.metallicFactor,roughness:e.roughnessFactor,metallicRoughnessTexture:(0,u.yw)(e.textureMetallicRoughness,(e=>t.get(e))),colorTextureTransform:e.colorTextureTransform,normalTextureTransform:e.normalTextureTransform,occlusionTextureTransform:e.occlusionTextureTransform,emissiveTextureTransform:e.emissiveTextureTransform,metallicRoughnessTextureTransform:e.metallicRoughnessTextureTransform})}(e,c))));const g=k(a);for(const e of g.parts)P(g,e,d);const{position:y,normal:T,tangent:b,color:w,texCoord0:v}=g.vertexAttributes,h={position:y.typedBuffer,normal:null!=T?T.typedBuffer:null,tangent:null!=b?b.typedBuffer:null,uv:null!=v?v.typedBuffer:null,color:null!=w?w.typedBuffer:null},C=(0,B.w1)(h,e,n);return{transform:C.transform,components:g.components,spatialReference:e.spatialReference,vertexAttributes:new x.Q({position:C.vertexAttributes.position,normal:C.vertexAttributes.normal,tangent:C.vertexAttributes.tangent,color:h.color,uv:h.uv})}}function $(e,t){if(null==e)return"-";const n=e.typedBuffer;return`${(0,l.s1)(t,n.buffer,(()=>t.size))}/${n.byteOffset}/${n.byteLength}`}function O(e){return null!=e?e.toString():"-"}function k(e){let t=0;const n={color:!1,tangent:!1,normal:!1,texCoord0:!1},r=new Map,o=new Map,s=[];for(const u of e.parts){const{attributes:{position:e,normal:a,color:c,tangent:i,texCoord0:f}}=u,d=`\n ${$(e,r)}/\n ${$(a,r)}/\n ${$(c,r)}/\n ${$(i,r)}/\n ${$(f,r)}/\n ${O(u.transform)}\n `;let m=!1;const p=(0,l.s1)(o,d,(()=>(m=!0,{start:t,length:e.count})));m&&(t+=e.count),a&&(n.normal=!0),c&&(n.color=!0),i&&(n.tangent=!0),f&&(n.texCoord0=!0),s.push({gltf:u,writeVertices:m,region:p})}return{vertexAttributes:{position:C(g.fP,t),normal:n.normal?C(g.ct,t):null,tangent:n.tangent?C(g.ek,t):null,color:n.color?C(g.mc,t):null,texCoord0:n.texCoord0?C(g.Eu,t):null},parts:s,components:[]}}function P(e,t,n){t.writeVertices&&function(e,t){const{position:n,normal:r,tangent:o,color:l,texCoord0:u}=e.vertexAttributes,i=t.region.start,{attributes:f,transform:d}=t.gltf,m=f.position.count;if((0,y.c)(n.slice(i,m),f.position,d),null!=f.normal&&null!=r){const e=(0,a.b)((0,c.c)(),d),t=r.slice(i,m);(0,y.b)(t,f.normal,e),(0,s.oc)(e)&&(0,y.d)(t,t)}else null!=r&&(0,v.f)(r,0,0,1,{dstIndex:i,count:m});if(null!=f.tangent&&null!=o){const e=(0,a.b)((0,c.c)(),d),t=o.slice(i,m);(0,T.a)(t,f.tangent,e),(0,s.oc)(e)&&(0,T.n)(t,t)}else null!=o&&(0,h.f)(o,0,0,1,1,{dstIndex:i,count:m});if(null!=f.texCoord0&&null!=u?(0,w.a)(u.slice(i,m),f.texCoord0):null!=u&&(0,w.f)(u,0,0,{dstIndex:i,count:m}),null!=f.color&&null!=l){const e=f.color,t=l.slice(i,m);if(4===e.elementCount)e instanceof g.ek?(0,T.b)(t,e,255):e instanceof g.mc?(0,h.a)(t,e):e instanceof g.v6&&(0,T.b)(t,e,1/256);else{(0,h.f)(t,255,255,255,255);const n=g.ne.fromTypedArray(t.typedBuffer,t.typedBufferStride);e instanceof g.ct?(0,y.e)(n,e,255):e instanceof g.ne?(0,v.a)(n,e):e instanceof g.mw&&(0,y.e)(n,e,1/256)}}else null!=l&&(0,h.f)(l.slice(i,m),255,255,255,255)}(e,t);const{indices:r,attributes:o,primitiveType:l,material:u}=t.gltf;let i=(0,S.p)(r||o.position.count,l);const f=t.region.start;if(f){const e=i.slice();for(let t=0;t<i.length;t++)e[t]+=f;i=e}e.components.push(new d.Z({faces:i,material:n.get(u),trustSourceNormals:!0}))}function F(e){switch(e){case"OPAQUE":return"opaque";case"MASK":return"mask";case"BLEND":return"blend"}}function j(e){return{horizontal:Z(e.s),vertical:Z(e.t)}}function Z(e){switch(e){case I.e8.CLAMP_TO_EDGE:return"clamp";case I.e8.MIRRORED_REPEAT:return"mirror";case I.e8.REPEAT:return"repeat"}}function z(e){return e**(1/R.K)*255}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2062],{46851:(t,n,e)=>{e.d(n,{R:()=>o,a:()=>s,g:()=>a,t:()=>c});let r=1e-6;function a(){return r}const o=Math.random,u=Math.PI/180,i=180/Math.PI;function c(t){return t*u}function s(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:a,setEpsilon:function(t){r=t},toDegree:s,toRadian:c},Symbol.toStringTag,{value:"Module"}))},17896:(t,n,e)=>{e.d(n,{A:()=>M,C:()=>f,D:()=>h,a:()=>c,b:()=>s,c:()=>u,d:()=>m,e:()=>p,f:()=>y,g:()=>l,h:()=>x,i:()=>d,j:()=>P,k:()=>I,l:()=>o,m:()=>_,n:()=>g,p:()=>b,q:()=>w,r:()=>D,s:()=>i,t:()=>q,u:()=>T});var r=e(65617),a=e(46851);function o(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function u(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function i(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function c(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function s(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function f(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function h(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function l(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function M(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function d(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return Math.sqrt(e*e+r*r+a*a)}function m(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function b(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function g(t,n){const e=n[0],r=n[1],a=n[2];let o=e*e+r*r+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o,t[2]=n[2]*o),t}function p(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function y(t,n,e){const r=n[0],a=n[1],o=n[2],u=e[0],i=e[1],c=e[2];return t[0]=a*c-o*i,t[1]=o*u-r*c,t[2]=r*i-a*u,t}function x(t,n,e,r){const a=n[0],o=n[1],u=n[2];return t[0]=a+r*(e[0]-a),t[1]=o+r*(e[1]-o),t[2]=u+r*(e[2]-u),t}function _(t,n,e){const r=n[0],a=n[1],o=n[2];return t[0]=e[0]*r+e[4]*a+e[8]*o+e[12],t[1]=e[1]*r+e[5]*a+e[9]*o+e[13],t[2]=e[2]*r+e[6]*a+e[10]*o+e[14],t}function q(t,n,e){const r=n[0],a=n[1],o=n[2];return t[0]=r*e[0]+a*e[3]+o*e[6],t[1]=r*e[1]+a*e[4]+o*e[7],t[2]=r*e[2]+a*e[5]+o*e[8],t}function w(t,n,e){const r=e[0],a=e[1],o=e[2],u=e[3],i=n[0],c=n[1],s=n[2];let f=a*s-o*c,h=o*i-r*s,l=r*c-a*i,M=a*l-o*h,d=o*f-r*l,m=r*h-a*f;const b=2*u;return f*=b,h*=b,l*=b,M*=2,d*=2,m*=2,t[0]=i+f+M,t[1]=c+h+d,t[2]=s+l+m,t}const v=(0,r.c)(),E=(0,r.c)();function I(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function D(t,n,e){const r=e[0]-n[0],a=e[1]-n[1],o=e[2]-n[2];let u=r*r+a*a+o*o;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=a*u,t[2]=o*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const A=s,L=f,S=h,P=d,O=m,T=o,j=b;Object.freeze(Object.defineProperty({__proto__:null,abs:function(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t},add:c,angle:function(t,n){u(v,t),u(E,n),g(v,v),g(E,E);const e=p(v,E);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,a,o){const u=1-o,i=u*u,c=o*o,s=i*u,f=3*o*i,h=3*c*u,l=c*o;return t[0]=n[0]*s+e[0]*f+r[0]*h+a[0]*l,t[1]=n[1]*s+e[1]*f+r[1]*h+a[1]*l,t[2]=n[2]*s+e[2]*f+r[2]*h+a[2]*l,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},copy:u,cross:y,direction:D,dist:P,distance:d,div:S,divide:h,dot:p,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],o=t[2],u=n[0],i=n[1],c=n[2],s=(0,a.g)();return Math.abs(e-u)<=s*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(r-i)<=s*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(o-c)<=s*Math.max(1,Math.abs(o),Math.abs(c))},exactEquals:I,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,a,o){const u=o*o,i=u*(2*o-3)+1,c=u*(o-2)+o,s=u*(o-1),f=u*(3-2*o);return t[0]=n[0]*i+e[0]*c+r[0]*s+a[0]*f,t[1]=n[1]*i+e[1]*c+r[1]*s+a[1]*f,t[2]=n[2]*i+e[2]*c+r[2]*s+a[2]*f,t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t},len:T,length:o,lerp:x,max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t},mul:L,multiply:f,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},normalize:g,random:function(t,n){n=n||1;const e=a.R,r=2*e()*Math.PI,o=2*e()-1,u=Math.sqrt(1-o*o)*n;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=o*n,t},rotateX:function(t,n,e,r){const a=[],o=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],o[0]=a[0],o[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),o[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=o[0]+e[0],t[1]=o[1]+e[1],t[2]=o[2]+e[2],t},rotateY:function(t,n,e,r){const a=[],o=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],o[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),o[1]=a[1],o[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=o[0]+e[0],t[1]=o[1]+e[1],t[2]=o[2]+e[2],t},rotateZ:function(t,n,e,r){const a=[],o=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],o[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),o[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),o[2]=a[2],t[0]=o[0]+e[0],t[1]=o[1]+e[1],t[2]=o[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:l,scaleAndAdd:M,set:i,sign:function(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t},sqrDist:O,sqrLen:j,squaredDistance:m,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:A,subtract:s,transformMat3:q,transformMat4:_,transformQuat:w},Symbol.toStringTag,{value:"Module"}))},65617:(t,n,e)=>{function r(){return[0,0,0]}function a(t){return[t[0],t[1],t[2]]}function o(t,n,e){return[t,n,e]}function u(t){const n=[0,0,0],e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function i(t,n){return new Float64Array(t,n,3)}function c(){return o(1,1,1)}function s(){return o(1,0,0)}function f(){return o(0,1,0)}function h(){return o(0,0,1)}e.d(n,{O:()=>M,Z:()=>l,a:()=>a,b:()=>i,c:()=>r,d:()=>u,f:()=>o});const l=[0,0,0],M=c(),d=s(),m=f(),b=h();Object.freeze(Object.defineProperty({__proto__:null,ONES:M,UNIT_X:d,UNIT_Y:m,UNIT_Z:b,ZEROS:l,clone:a,create:r,createView:i,fromArray:u,fromValues:o,ones:c,unitX:s,unitY:f,unitZ:h,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},98766:(t,n,e)=>{e.d(n,{a:()=>u,b:()=>f,c:()=>a,d:()=>b,e:()=>M,f:()=>d,g:()=>p,h:()=>y,l:()=>g,n:()=>m,s:()=>o});var r=e(46851);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function o(t,n,e,r,a){return t[0]=n,t[1]=e,t[2]=r,t[3]=a,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function i(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function c(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function s(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function f(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function h(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2],o=n[3]-t[3];return Math.sqrt(e*e+r*r+a*a+o*o)}function l(t,n){const e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2],o=n[3]-t[3];return e*e+r*r+a*a+o*o}function M(t){const n=t[0],e=t[1],r=t[2],a=t[3];return Math.sqrt(n*n+e*e+r*r+a*a)}function d(t){const n=t[0],e=t[1],r=t[2],a=t[3];return n*n+e*e+r*r+a*a}function m(t,n){const e=n[0],r=n[1],a=n[2],o=n[3];let u=e*e+r*r+a*a+o*o;return u>0&&(u=1/Math.sqrt(u),t[0]=e*u,t[1]=r*u,t[2]=a*u,t[3]=o*u),t}function b(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function g(t,n,e,r){const a=n[0],o=n[1],u=n[2],i=n[3];return t[0]=a+r*(e[0]-a),t[1]=o+r*(e[1]-o),t[2]=u+r*(e[2]-u),t[3]=i+r*(e[3]-i),t}function p(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function y(t,n){const e=t[0],a=t[1],o=t[2],u=t[3],i=n[0],c=n[1],s=n[2],f=n[3],h=(0,r.g)();return Math.abs(e-i)<=h*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(a-c)<=h*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(o-s)<=h*Math.max(1,Math.abs(o),Math.abs(s))&&Math.abs(u-f)<=h*Math.max(1,Math.abs(u),Math.abs(f))}const x=i,_=c,q=s,w=h,v=l,E=M,I=d;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:a,dist:w,distance:h,div:q,divide:s,dot:b,equals:y,exactEquals:p,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:E,length:M,lerp:g,max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t},mul:_,multiply:c,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:m,random:function(t,n){const e=r.R;let a,o,u,i,c,s;n=n||1;do{a=2*e()-1,o=2*e()-1,c=a*a+o*o}while(c>=1);do{u=2*e()-1,i=2*e()-1,s=u*u+i*i}while(s>=1);const f=Math.sqrt((1-c)/s);return t[0]=n*a,t[1]=n*o,t[2]=n*u*f,t[3]=n*i*f,t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t},scale:f,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:o,sqrDist:v,sqrLen:I,squaredDistance:l,squaredLength:d,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:x,subtract:i,transformMat4:function(t,n,e){const r=n[0],a=n[1],o=n[2],u=n[3];return t[0]=e[0]*r+e[4]*a+e[8]*o+e[12]*u,t[1]=e[1]*r+e[5]*a+e[9]*o+e[13]*u,t[2]=e[2]*r+e[6]*a+e[10]*o+e[14]*u,t[3]=e[3]*r+e[7]*a+e[11]*o+e[15]*u,t},transformQuat:function(t,n,e){const r=n[0],a=n[1],o=n[2],u=e[0],i=e[1],c=e[2],s=e[3],f=s*r+i*o-c*a,h=s*a+c*r-u*o,l=s*o+u*a-i*r,M=-u*r-i*a-c*o;return t[0]=f*s+M*-u+h*-c-l*-i,t[1]=h*s+M*-i+l*-u-f*-c,t[2]=l*s+M*-c+f*-i-h*-u,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},22021:(t,n,e)=>{e.d(n,{BV:()=>f,Kt:()=>l,Sf:()=>o,Vl:()=>s,ZF:()=>h,_3:()=>x,jE:()=>p,oK:()=>b,oc:()=>y,t7:()=>c,uZ:()=>u,wt:()=>i});var r=e(17896);e(98766);const a=new Float32Array(1);function o(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function u(t,n,e){return Math.min(Math.max(t,n),e)}function i(t){return 0==(t&t-1)}function c(t,n,e){return t+(n-t)*e}function s(t){return t*Math.PI/180}function f(t){return 180*t/Math.PI}function h(t){return Math.acos(u(t,-1,1))}function l(t){return Math.asin(u(t,-1,1))}function M(t,n,e=1e-6){return t===n||!(!Number.isFinite(t)||!Number.isFinite(n))&&(t>n?t-n:n-t)<=e}const d=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));const m=BigInt("1000000");function b(t){return g(Math.max(-x,Math.min(t,x)))}function g(t){return a[0]=t,a[0]}function p(t,n){const e=(0,r.l)(t),a=l(t[2]/e),o=Math.atan2(t[1]/e,t[0]/e);return(0,r.s)(n,e,a,o),n}function y(t){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],e=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(n,1)&&M(e,1)&&M(r,1))}!function(t){const n=function(t){return d.setFloat64(0,t),d.getBigInt64(0)}(t=Math.abs(t)),e=function(t){return d.setBigInt64(0,t),d.getFloat64(0)}(n<=m?m:n-m);Math.abs(t-e)}(1);const x=g(34028234663852886e22)},49594:(t,n,e)=>{e.r(n),e.d(n,{default:()=>l});var r=e(56481);function a(t,n){return n.push(t.buffer),{buffer:t.buffer,layout:o(t.layout)}}function o(t){const n=new Array;return t.fields.forEach(((t,e)=>{const r={...t,constructor:i(t.constructor)};n.push([e,r])})),{stride:t.stride,fields:n,fieldNames:t.fieldNames}}e(65576);const u=[r.ly,r.Eu,r.ct,r.ek,r.gK,r.bj,r.oS,r.q6,r.fP,r.Cd,r.ey,r.O1,r.D_,r.xA,r.ne,r.mc,r.av,r.TS,r.mw,r.v6,r.Nu,r.qt,r.G5,r.hu,r.Hz,r.Vs,r.P_,r.ir,r.o7,r.or,r.n1,r.zO,r.Jj,r.wA,r.PP,r.TN];function i(t){return`${t.ElementType}_${t.ElementCount}`}const c=new Map;u.forEach((t=>c.set(i(t),t)));var s=e(17288),f=e(97411),h=e(212);class l{async extract(t){const n=M(t),e=(0,h.Kl)(n),r=[n.data.buffer];return{result:d(e,r),transferList:r}}async extractComponentsEdgeLocations(t){const n=M(t),e=(0,h.kY)(n.data,n.skipDeduplicate,n.indices,n.indicesLength),r=[];return{result:a((0,f.n)(e,b,g).regular.instancesData,r),transferList:r}}async extractEdgeLocations(t){const n=M(t),e=(0,h.kY)(n.data,n.skipDeduplicate,n.indices,n.indicesLength),r=[];return{result:a((0,f.n)(e,m,g).regular.instancesData,r),transferList:r}}}function M(t){return{data:s.tf.createView(t.dataBuffer),indices:"Uint32Array"===t.indicesType?new Uint32Array(t.indices):"Uint16Array"===t.indicesType?new Uint16Array(t.indices):t.indices,indicesLength:t.indicesLength,writerSettings:t.writerSettings,skipDeduplicate:t.skipDeduplicate}}function d(t,n){return n.push(t.regular.lodInfo.lengths.buffer),n.push(t.silhouette.lodInfo.lengths.buffer),{regular:{instancesData:a(t.regular.instancesData,n),lodInfo:{lengths:t.regular.lodInfo.lengths.buffer}},silhouette:{instancesData:a(t.silhouette.instancesData,n),lodInfo:{lengths:t.silhouette.lodInfo.lengths.buffer}},averageEdgeLength:t.averageEdgeLength}}const m=new class{allocate(t){return h.Yr.createBuffer(t)}trim(t,n){return t.slice(0,n)}write(t,n,e){t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1)}},b=new class{allocate(t){return h.n_.createBuffer(t)}trim(t,n){return t.slice(0,n)}write(t,n,e){t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex)}},g={allocate:()=>null,write:()=>{},trim:()=>null}}}]);
@@ -1 +0,0 @@
1
- {"printNotes":"Enter notes here","printDisclaimer":"Directions are provided for planning purposes only and are subject to <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esri's terms of use</a>. Dynamic road conditions can exist that cause accuracy to differ from your directions and must be taken into account along with signs and legal restrictions. You assume all risk of use.","printoutError":"There seems to have been an error."}
@@ -1 +0,0 @@
1
- {"printNotes":"إدخال ملاحظات هنا","printDisclaimer":"يتم توفير الاتجاهات لأغراض التخطيط فقط وتكون تابعة <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>لشروط استخدام Esri</a>. يمكن أن تتسبب أحوال الطريق الديناميكية في اختلاف دقة اتجاهاتك ويجب مراعاتها إضافة إلى العلامات الإرشادية والقيود القانونية. افترض كل مخاطر الاستخدام.","printoutError":"يبدوا أن هناك خطأ."}
@@ -1 +0,0 @@
1
- {"printNotes":"Въведете бележки тук","printDisclaimer":"Указанията са предоставени само за целите на планирането и са предмет на <a href='http://www.esri.com/legal/licensing-translations' target='_blank'> условията за ползване на Esri</a>. Могат да съществуват динамични пътни условия, които причиняват точността да се различава от посоките Ви и трябва да се вземат предвид заедно със знаците и законовите ограничения. Вие поемате целия риск при употреба.","printoutError":"Изглежда има грешка."}
@@ -1 +0,0 @@
1
- {"printNotes":"Ovdje unesite bilješke","printDisclaimer":"Upute su dane samo u svrhu planiranja i podložne su <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esrijevim uvjetima korištenja</a>. Mogu postojati dinamički uvjeti na cestama zbog kojih vaše upute za vožnju neće biti točne te se moraju uzeti u obzir zajedno sa znakovima i pravnim ograničenjima. Preuzimate sve rizike korištenja.","printoutError":"Čini se da je došlo do pogreške."}
@@ -1 +0,0 @@
1
- {"printNotes":"Introduïu les notes aquí","printDisclaimer":"Les indicacions es proporcionen només amb finalitats de planificació i estan subjectes a les <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Condicions d'ús d'Esri</a>. És possible que hi hagi condicions dinàmiques de la carretera que provoquin que la precisió sigui diferent que la de les indicacions i cal tenir-ho en compte juntament amb els senyals i les limitacions legals. Assumiu tot el risc d'utilitzar-les.","printoutError":"Sembla que s'ha produït un error."}
@@ -1 +0,0 @@
1
- {"printNotes":"Sem zadat poznámky","printDisclaimer":"Navigační pokyny jsou poskytnuty pouze pro účely plánování a vztahují se na ně <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>podmínky používání Esri</a>. Měnící se dopravní podmínky mohou způsobit nesrovnalosti vzhledem k naplánované trase a je nutné s nimi počítat. Platí to i pro značení a zákonná omezení. Přebíráte veškerá rizika užívání.","printoutError":"Vypadá to, že došlo k chybě."}
@@ -1 +0,0 @@
1
- {"printNotes":"Indtast noter her","printDisclaimer":"Kørselsvejledninger gives udelukkende med henblik på planlægning og er underlagt <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esris Vilkår for brug</a>. Dynamiske vejforhold kan forekomme og kan bevirke, at nøjagtigheden er forskellig fra dine kørselsvejledninger, hvilket du bør tage højde for sammen med signaler og juridiske restriktioner. Du påtager dig det fulde ansvar for anvendelsen.","printoutError":"Der ser ud til at have været en fejl."}
@@ -1 +0,0 @@
1
- {"printNotes":"Notizen hier eingeben","printDisclaimer":"Wegbeschreibungen werden lediglich zu Planungszwecken bereitgestellt und unterliegen den <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Nutzungsbedingungen von Esri</a>. Durch sich ändernde Straßenbedingungen kann die Genauigkeit der Wegbeschreibungen abweichen. Außerdem sind vorhandene Verkehrszeichen und gesetzliche Beschränkungen zu berücksichtigen. Die Nutzung erfolgt vollständig auf eigene Verantwortung.","printoutError":"Offenbar ist ein Fehler aufgetreten."}
@@ -1 +0,0 @@
1
- {"printNotes":"Εισαγάγετε σημειώσεις εδώ","printDisclaimer":"Οι οδηγίες παρέχονται για σκοπούς σχεδιασμού και διέπονται από τους <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Όρους χρήσης υπηρεσιών της Esri</a>. Ενδέχεται να υπάρχουν δυναμικές οδικές συνθήκες που επηρεάζουν την ακρίβεια των οδηγιών σας και πρέπει να ληφθούν υπόψη σε συνδυασμό με σήματα και νομικούς περιορισμούς. Η συνολική ευθύνη της χρήσης βαρύνει αποκλειστικά εσάς.","printoutError":"Φαίνεται να έχει προκύψει κάποιο σφάλμα."}
@@ -1 +0,0 @@
1
- {"printNotes":"Enter notes here","printDisclaimer":"Directions are provided for planning purposes only and are subject to <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esri's terms of use</a>. Dynamic road conditions can exist that cause accuracy to differ from your directions and must be taken into account along with signs and legal restrictions. You assume all risk of use.","printoutError":"There seems to have been an error."}
@@ -1 +0,0 @@
1
- {"printNotes":"Introducir notas aquí","printDisclaimer":"Las indicaciones se proporcionan exclusivamente a efectos de planificación y están sujetas a los <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>términos de uso de Esri</a>. Las condiciones reales de las carreteras pueden afectar a la precisión de las indicaciones y se deben tener en cuenta junto con la señalización y las restricciones legales. El usuario asume todos los riesgos derivados.","printoutError":"Parece que se ha producido un error."}
@@ -1 +0,0 @@
1
- {"printNotes":"Sisesta siia märkused","printDisclaimer":"Sõidujuhised on mõeldud ainult teekonna planeerimiseks ja neile kehtivad <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esri kasutustingimused</a>. Dünaamiliselt muutuvad olud koos märkide ja piirangutega võivad põhjustada eri aegadel tulemuste varieerumist. Sellest tulenevalt peate hindama kasutusest tekkivat võimalikku riski.","printoutError":"Ilmnes tõrge."}
@@ -1 +0,0 @@
1
- {"printNotes":"Syötä huomautukset","printDisclaimer":"Ajo-ohjeet ovat vain suunnittelua varten ja ne ovat <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esrin käyttöehtojen</a> alaisia. Ajo-ohjeiden tarkkuus voi vaihdella tieolojen vaihtelujen mukaan, mikä on otettava huomioon liikennemerkkien ja paikallisten määräysten ohella. Käyttäjä vastaa kaikista käyttöön liittyvistä riskeistä.","printoutError":"Näyttää siltä, että on ilmennyt virhe."}
@@ -1 +0,0 @@
1
- {"printNotes":"Saisir vos remarques ici","printDisclaimer":"L’itinéraire est fourni uniquement pour prévoir votre trajet et reste soumis aux <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>conditions d’utilisation d’Esri</a>. Le caractère fluctuant des conditions de circulation doit être pris en compte et peut affecter la précision des informations de l’itinéraire. Tenez-en compte, ainsi que de la signalisation routière et du code de la route. Tous les risques d’utilisation sont sous votre responsabilité.","printoutError":"Une erreur semble s’être produite."}
@@ -1 +0,0 @@
1
- {"printNotes":"הזן את ההערות כאן","printDisclaimer":"הוראות הנסיעה מסופקות למטרות תכנון בלבד והן כפופות ל<a href='http://www.esri.com/legal/licensing-translations' target='_blank'>תנאי השימוש של Esri</a>. תנאי הדרך עשויים להשתנות ולגרום להבדלים בהוראות הנסיעה שלך וחייבים להילקח בחשבון יחד עם שילוט הדרך והגבלות הכתובות בחוק. אתה נוטל על עצמך את מלוא האחריות לשימוש.","printoutError":"נראה שאירעה שגיאה."}
@@ -1 +0,0 @@
1
- {"printNotes":"Ovdje unesite bilješke","printDisclaimer":"Upute su dane samo u svrhu planiranja i podložne su <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esrijevim uvjetima korištenja</a>. Mogu postojati dinamički uvjeti na cestama zbog kojih vaše upute za vožnju neće biti točne te se moraju uzeti u obzir zajedno sa znakovima i pravnim ograničenjima. Preuzimate sve rizike korištenja.","printoutError":"Čini se da je došlo do pogreške."}
@@ -1 +0,0 @@
1
- {"printNotes":"Itt jegyzeteket írhat be","printDisclaimer":"Az irányok csak tervezési célokra szolgálnak, és vonatkoznak rájuk <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Az Esri használati feltételei</a>. Fennállhatnak olyan dinamikus útviszonyok, amelyek az útvonaltervtől történő eltérést okozhatnak, és amelyeket a közúti jelzésekkel, valamint a jogi korlátozásokkal együtt figyelembe kell venni. A felhasználás minden kockázatát Ön viseli.","printoutError":"Úgy néz ki, hogy hiba történt."}
@@ -1 +0,0 @@
1
- {"printNotes":"Masukkan catatan di sini","printDisclaimer":"Petunjuk arah diberikan hanya untuk tujuan perencanaan dan mematuhi <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>ketentuan penggunaan Esri</a>. Kondisi jalan yang dinamis dapat menyebabkan akurasi yang berbeda dari petunjuk arah Anda serta harus diperhitungkan juga rambu-rambu dan peraturan hukum. Anda menanggung semua risiko penggunaan.","printoutError":"Sepertinya ada kesalahan."}
@@ -1 +0,0 @@
1
- {"printNotes":"Immettere qui le note","printDisclaimer":"Le indicazioni vengono fornite solo per la pianificazione e sono soggette alle <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Condizioni d'uso Esri</a>. È necessario tenere conto delle condizioni effettive della strada, che potrebbero essere diverse da quelle delle indicazioni, nonché dei segnali stradali e delle limitazioni previste per legge. L'utente si assume tutti i rischi legati all'utilizzo delle indicazioni.","printoutError":"Probabilmente si è verificato un errore."}
@@ -1 +0,0 @@
1
- {"printNotes":"ここにメモを入力","printDisclaimer":"ルート案内は、目的を計画するために提供され、<a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esri の利用規約</a>に従います。 現在の道路状況により、ルート案内の結果と異なる場合があるということに加え、標識および法的な規制とともに考慮する必要があります。 ユーザーは、利用に際し一切の責任を負うものとします。","printoutError":"エラーが発生しているようです。"}
@@ -1 +0,0 @@
1
- {"printNotes":"여기에 노트 입력","printDisclaimer":"길찾기는 계획 목적으로만 제공되며 <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esri 사용 약관</a>을 따릅니다. 수시로 변경되는 도로 상황에 따라 실제 길찾기는 제시된 길찾기와 다를 수 있으므로 신호 및 법규와 함께 현재 도로 상황에 주의를 기울여야 합니다. 해당 소프트웨어 사용 시 발생하는 모든 위험의 책임은 사용자에게 있습니다.","printoutError":"오류가 발생한 것 같습니다."}
@@ -1 +0,0 @@
1
- {"printNotes":"Pastabas įrašykite čia","printDisclaimer":"Kryptys pateikiamos tik planavimo tikslais ir joms taikomos <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esri naudojimo sąlygos</a>. Dėl kintančių eismo sąlygų turimos kryptys gali nevisai atitikti realybę, be to, turi būti atsižvelgiama į kelio ženklus ir eismui taikomus apribojimus. Jūs prisiimate visą naudojimo riziką.","printoutError":"Berods įvyko klaida."}
@@ -1 +0,0 @@
1
- {"printNotes":"Ievadiet piezīmes šeit","printDisclaimer":"Norādes tiek sniegtas tikai plānošanas nolūkiem, un uz tām attiecas <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esri lietošanas noteikumi</a>. Dinamiskie satiksmes apstākļi saistībā ar norādēm var radīt precizitātes atšķirības, un šie apstākļi jāņem vērā, vienlaikus ievērojot arī ceļa zīmes un likuma ierobežojumus. Jums jāņem vērā visi izmantošanas riski.","printoutError":"Šķiet, ka ir radusies kļūda."}
@@ -1 +0,0 @@
1
- {"printNotes":"Angi merknader her","printDisclaimer":"Veibeskrivelser tilbys utelukkende for planleggingsformål og er underlagt <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esris bruksvilkår</a>. Veiforholdene kan variere, og dette kan påvirke nøyaktigheten i veibeskrivelsene dine. Ta alltid hensyn til dette samt skilting og juridiske restriksjoner. Du påtar deg all risiko i forbindelse med bruk av tjenesten.","printoutError":"Det virker som det har oppstått en feil."}
@@ -1 +0,0 @@
1
- {"printNotes":"Opmerkingen hier invoeren","printDisclaimer":"Een routebeschrijving dient alleen voor planningsdoeleinden en is onderhevig aan <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esri's gebruiksvoorwaarden</a>. Er kunnen dynamische wegomstandigheden bestaan waardoor uw routebeschrijving kan afwijken. U moet hiermee rekening houden, net als met verkeersborden en wettelijke beperkingen. Het gebruik is volledig op eigen risico.","printoutError":"Er lijkt een fout te zijn opgetreden."}
@@ -1 +0,0 @@
1
- {"printNotes":"Wprowadź notatki","printDisclaimer":"Wskazówki dojazdu służą wyłącznie do celów związanych z planowaniem podróży i podlegają <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>warunkom użytkowania określonym przez firmę Esri</a>. Na drogach mogą panować dynamiczne warunki, które mogą obniżać dokładność wskazówek i które należy wziąć pod uwagę wraz z ograniczeniami określonymi za pomocą znaków drogowych, a także w przepisach. Za korzystanie z tych wskazówek odpowiada użytkownik.","printoutError":"Najwyraźniej wystąpił błąd."}
@@ -1 +0,0 @@
1
- {"printNotes":"Insira anotações aqui","printDisclaimer":"As instruções são fornecidas somente para propósitos de planejamento e estão sujeitas aos <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>termos de uso da Esri</a>. Condições dinâmicas da estrada podem existir o que faz com que a precisão seja diferente de suas direções e devem ser levadas em consideração, juntamente com restrições de registros e legais. Você assume todos os riscos de uso.","printoutError":"Parece haver um erro."}
@@ -1 +0,0 @@
1
- {"printNotes":"Introduzir notas aqui","printDisclaimer":"As direções são facultadas apenas para fins relacionados com planeamento e encontram-se sujeitas aos <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>termos de utilização da Esri</a>. Podem existir condições dinâmicas de estradas que originem diferenças de precisão em relação às suas direções e estas têm de ser consideradas juntamente com sinais e restrições legais. O utilizador assume todos os riscos associados à utilização.","printoutError":"Parece ter ocorrido um erro."}
@@ -1 +0,0 @@
1
- {"printNotes":"Introduceţi note aici","printDisclaimer":"Instrucțiunile de deplasare sunt puse la dispoziție doar pentru planificare și sunt supuse <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Condițiilor de Utilizare ale Esri</a>. Este posibil să existe condiţii dinamice de trafic, care să influenţeze exactitatea acestor instrucţiuni şi care trebuie avute în vedere împreună cu semnele şi restricţiile de circulaţie. Dvs. vă asumaţi riscurile în totalitate.","printoutError":"Pare să fi avut loc o eroare."}
@@ -1 +0,0 @@
1
- {"printNotes":"Для заметок","printDisclaimer":"Путевой лист предоставляется только в целях планирования, на него распространяются <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Условия использования Esri</a>. Могут существовать динамические дорожные условия, отличающиеся от ваших маршрутов, что необходимо принимать во внимание, вместе с дорожными знаками и ограничениями. Риск их использования вы берете на себя.","printoutError":"Вероятно, имеется ошибка."}
@@ -1 +0,0 @@
1
- {"printNotes":"Zadať poznámky sem","printDisclaimer":"Smery sú poskytnuté iba pre účely plánovania a sú predmetom <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Podmienok používania Esri</a>. Môžu existovať dynamické podmienky na ceste, ktoré spôsobujú, že sa presnosť líši od vašich smerov, a je potrebné ich brať do úvahy spolu so značkami a zákonnými obmedzeniami. Preberáte na seba všetky riziká použitia.","printoutError":"Zdá sa, že sa vyskytla chyba."}
@@ -1 +0,0 @@
1
- {"printNotes":"Tukaj vnesite opombe","printDisclaimer":"Navodila za pot so zagotovljena samo za namene načrtovanja, za katere veljajo <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>pogoji uporabe podjetja Esri</a>. Na cestah lahko pride do dinamičnih razmer, kar lahko vpliva na pravilnost navodil za pot, pri čemer morate upoštevati znake in pravne omejitve. Prevzemate vsa tveganja uporabe.","printoutError":"Zdi se, da je prišlo do napake."}
@@ -1 +0,0 @@
1
- {"printNotes":"Unesite beleške ovde","printDisclaimer":"Imenici su dostavljeni za planiranje i spadaju u <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>uslove upotrebe kompanije Esri</a>. Dinamični uslovi na putu mogu da postoje i da dovedu do razlikovanja preciznosti za pravac i moraju se uzeti u obzir uz znake i pravne zakone. Preuzimate sve rizike upotrebe.","printoutError":"Izgleda da je došlo do greške."}
@@ -1 +0,0 @@
1
- {"printNotes":"Ange anteckningar här","printDisclaimer":"Vägbeskrivningar anges endast i planeringssyfte och lyder under <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esris användarvillkor</a>. Vägförhållandena kan förändras på ett sätt som gör att verkligheten inte stämmer med vägbeskrivningarna. Du måste ta hänsyn till både dessa förhållanden och till skyltar och lagstadgade begränsningar. Du är själv ansvarig för alla risker som hör samman med användningen.","printoutError":"Ett fel verkar ha uppstått."}
@@ -1 +0,0 @@
1
- {"printNotes":"เขียนตรงนี้","printDisclaimer":"คำแนะนำจัดไว้ให้สำหรับการวางแผนเท่านั้น และอยู่ภายใต้ Esri's <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>เงื่อนไขการใช้งานของ Esri</a>. สภาพท้องถนนที่มีปัจจัยต่าง ๆ มากมายอาจทำให้ความแม่นยำผิดเพี้ยนไปจากเส้นทางของคุณ และจะต้องพิจารณาร่วมกับป้ายสัญญาณและข้อกฎหมายที่มีกำหนดไว้ คุณจะต้องแบกรับความเสี่ยงจากการใช้งานด้วยตัวเอง","printoutError":"อาจจะมีข้อผิดพลาด"}
@@ -1 +0,0 @@
1
- {"printNotes":"Notları buraya girin","printDisclaimer":"Yol tarifleri yalnızca planlama amacıyla sunulmaktadır ve <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esri kullanım şartlarına tabidir</a>. Yol tariflerinizin doğruluğunda farklılık oluşmasına neden olabilecek dinamik yol koşulları mevcut olabilir ve bunlar yol işaretleri ve yasal sınırlamalarla birlikte ele alınmalıdır. Tüm kullanım risklerini üstlenmiş oluyorsunuz.","printoutError":"Bir hata oluşmuş gibi görünüyor."}
@@ -1 +0,0 @@
1
- {"printNotes":"Вводьте примітки тут","printDisclaimer":"Напрямки надаються лише для цілей планування та згідно з <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Умовами використання Esri</a>. Можуть існувати динамічні дорожні умови, у зв'язку з котрими точність відрізнятиметься від напрямків, та котрі потрібно враховувати разом зі знаками та законодавчими обмеженнями. Ви приймаєте на себе всі ризики використання.","printoutError":"Здається, виникла помилка."}
@@ -1 +0,0 @@
1
- {"printNotes":"Nhập ghi chú ở đây","printDisclaimer":"Chỉ đường chỉ được cung cấp cho mục đích lập kế hoạch và phải tuân theo <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>điều khoản sử dụng của Esri </a>. Điều kiện đường xá linh động có thể tồn tại, dẫn đến độ chính xác khác với chỉ đường của bạn và phải được xem xét cùng với các tín hiệu và giới hạn pháp lý. Bạn chịu mọi rủi ro khi sử dụng.","printoutError":"Dường như đã có lỗi."}
@@ -1 +0,0 @@
1
- {"printNotes":"在此处输入注释","printDisclaimer":"提供的方向仅供规划之用,受 <a href='http://www.esri.com/legal/licensing-translations' target='_blank'>Esri 使用条款</a>的限制。 可能存在动态路况,导致您的方向与实际方向有所偏差,您必须将实际交通标志和法律限制考虑在内。 您将自行承担所有的使用风险。","printoutError":"似乎存在一个错误。"}