@arcgis/core 4.33.0-next.20250327 → 4.33.0-next.20250328

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 (185) hide show
  1. package/applications/KnowledgeStudio/layerInternalAccessUtils.d.ts +1 -0
  2. package/applications/KnowledgeStudio/layerInternalAccessUtils.js +1 -1
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/08ea652b7896c1da022d.js +1 -0
  5. package/assets/esri/core/workers/chunks/{66cae76da0582cfa8656.js → 0943695a1dcd21c45e83.js} +1 -1
  6. package/assets/esri/core/workers/chunks/09ca64184bed6abafcd9.js +1 -0
  7. package/assets/esri/core/workers/chunks/{c6bcfa99fb222894fa0e.js → 0a0e5d699ddb7052c5c0.js} +1 -1
  8. package/assets/esri/core/workers/chunks/0a675f9f69b8b13b7443.js +1 -0
  9. package/assets/esri/core/workers/chunks/0eed612e82a279ac8d1e.js +1 -0
  10. package/assets/esri/core/workers/chunks/{cbe22c58b3230b12b31a.js → 13ad4ee2e064d13ca34d.js} +1 -1
  11. package/assets/esri/core/workers/chunks/176e7c7c2a871bcb512e.js +1 -0
  12. package/assets/esri/core/workers/chunks/18d0fe269531b951e309.js +1 -0
  13. package/assets/esri/core/workers/chunks/201db423e3c6f947b77c.js +1 -0
  14. package/assets/esri/core/workers/chunks/213e82a7e3fa5b253ec1.js +1 -0
  15. package/assets/esri/core/workers/chunks/{22618753349eb9d8b3df.js → 222446da9cb58c3c3b7e.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{0f37b3a797d8a55439a4.js → 277b61af8982092a4c81.js} +1 -1
  17. package/assets/esri/core/workers/chunks/2b07bdb6c4c4a5b2f968.js +1 -0
  18. package/assets/esri/core/workers/chunks/2bda2cfc6e81818d7d33.js +1 -0
  19. package/assets/esri/core/workers/chunks/2cbab0c078d0b844934c.js +1 -0
  20. package/assets/esri/core/workers/chunks/{a68b48fd1a529f69705e.js → 2fcfc21ba38d9919730a.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{193b4fecdfee927d6200.js → 37e4f588a6896f98bce3.js} +1 -1
  22. package/assets/esri/core/workers/chunks/392e64a573f67817db02.js +1 -0
  23. package/assets/esri/core/workers/chunks/3a743653b786b010a57f.js +1 -0
  24. package/assets/esri/core/workers/chunks/3be007f32ea1e18b8b3b.js +1 -0
  25. package/assets/esri/core/workers/chunks/451555af283b32a10fef.js +1 -0
  26. package/assets/esri/core/workers/chunks/{835fa4484c58d9b31c78.js → 460afde071df9f35182d.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{26bedec014488e1fc5e4.js → 4816cf647eca2f4cecc2.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{09c9e4e94f09ba9f4c22.js → 4aa0a58ded4465ea28bd.js} +1 -1
  29. package/assets/esri/core/workers/chunks/4d02e211967384994e5e.js +1 -0
  30. package/assets/esri/core/workers/chunks/{82692bff98b4ec781544.js → 4d798da25a726f179089.js} +1 -1
  31. package/assets/esri/core/workers/chunks/51339193abddfe37745d.js +1 -0
  32. package/assets/esri/core/workers/chunks/{0a98dc3ea67ce97a6e7b.js → 5269793822e41dd07fe1.js} +1 -1
  33. package/assets/esri/core/workers/chunks/52d160cb7921ae7a4f57.js +1 -0
  34. package/assets/esri/core/workers/chunks/{630a9afdf0523c27ddb6.js → 555c95b149e3a82a4460.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{eab1e3c101158675abba.js → 5660f479c005149bce8d.js} +1 -1
  36. package/assets/esri/core/workers/chunks/5a51c75a2932d9da001a.js +1 -0
  37. package/assets/esri/core/workers/chunks/{37a3533f004bf2e888da.js → 5d01f0b86566d08ba29d.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{0576b035c1654a43ad5c.js → 5de3aee547113bfd59df.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{45eee326f7a649c5a15b.js → 626db8488f9d931cf55c.js} +2 -2
  40. package/assets/esri/core/workers/chunks/{5a6f7360183693f8490d.js → 6339a24874c698594101.js} +1 -1
  41. package/assets/esri/core/workers/chunks/63dade3e1cc7f5b76846.js +1 -0
  42. package/assets/esri/core/workers/chunks/6c378e7a6ca29d530880.js +1 -0
  43. package/assets/esri/core/workers/chunks/71e46e866c23372b0b58.js +1 -0
  44. package/assets/esri/core/workers/chunks/{c591527543fd75a917d4.js → 72c7126dbd27fa48fcdb.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{d459c790a3b89ac53d2d.js → 759c12b0715279e3c0f6.js} +1 -1
  46. package/assets/esri/core/workers/chunks/75fa861b5757551f8fdc.js +1 -0
  47. package/assets/esri/core/workers/chunks/7655be1470ce39f0e494.js +1 -0
  48. package/assets/esri/core/workers/chunks/796cf1c2ca9955595836.js +1 -0
  49. package/assets/esri/core/workers/chunks/79c4f10da8360ee60cd2.js +1 -0
  50. package/assets/esri/core/workers/chunks/{49c346d2fb8538990f45.js → 7d1c39c2a80e20a0595f.js} +1 -1
  51. package/assets/esri/core/workers/chunks/7f36cffc6ed984b7e467.js +1 -0
  52. package/assets/esri/core/workers/chunks/82353e59ac6d909dcf41.js +1 -0
  53. package/assets/esri/core/workers/chunks/84d301e1b6b0d0b48f51.js +1 -0
  54. package/assets/esri/core/workers/chunks/86931186095c23e47c0c.js +1 -0
  55. package/assets/esri/core/workers/chunks/{59e4e780dcdfed555ca5.js → 8ef5e6f1c606e5e41002.js} +1 -1
  56. package/assets/esri/core/workers/chunks/{55c7c51e56d72f507c22.js → 90afead317186b31b2f9.js} +1 -1
  57. package/assets/esri/core/workers/chunks/90c893959145827961ac.js +1 -0
  58. package/assets/esri/core/workers/chunks/931275cfa2c55eb0f504.js +1 -0
  59. package/assets/esri/core/workers/chunks/{7e0e9ca84490a0c67197.js → 98da74243df03e0cc70d.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{354117429b3a0a0794c9.js → 999e8dbe6f4d0665b3ab.js} +1 -1
  61. package/assets/esri/core/workers/chunks/a348ff2dd936c6bf9399.js +1 -0
  62. package/assets/esri/core/workers/chunks/a53e9f5092de715da025.js +1 -0
  63. package/assets/esri/core/workers/chunks/a9b6377f1fef5826f28d.js +1 -0
  64. package/assets/esri/core/workers/chunks/{8063e35dacf8f99471d8.js → aa404aaec843a4f46ab6.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{21016d58428b15f7427c.js → aa712f850fd129ca5ed8.js} +1 -1
  66. package/assets/esri/core/workers/chunks/ab0113d1269675dcd520.js +1 -0
  67. package/assets/esri/core/workers/chunks/aff7c4477e1f0c31fffa.js +1 -0
  68. package/assets/esri/core/workers/chunks/bf453744067267e84d1b.js +1 -0
  69. package/assets/esri/core/workers/chunks/c2f38c66fae2cdb57445.js +1 -0
  70. package/assets/esri/core/workers/chunks/c7aa4a8263e21f631004.js +1 -0
  71. package/assets/esri/core/workers/chunks/{3be465c653236d6d8c1f.js → d2c7067bb6654c0e2793.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{bc3f42401131a12fce9b.js → d2eb3802fa003c2d497e.js} +1 -1
  73. package/assets/esri/core/workers/chunks/da7c14ae1a25fc7163ce.js +1 -0
  74. package/assets/esri/core/workers/chunks/daa54c8a317c27881763.js +1 -0
  75. package/assets/esri/core/workers/chunks/e15c612caadf7bac4ab9.js +1 -0
  76. package/assets/esri/core/workers/chunks/{a2377969f76640f1d6fe.js → e2029267cddb8e2effab.js} +1 -1
  77. package/assets/esri/core/workers/chunks/e3ef0451dcdc2e966628.js +1 -0
  78. package/assets/esri/core/workers/chunks/e7e987558cf017c62458.js +1 -0
  79. package/assets/esri/core/workers/chunks/eabfab23246d4a052ea3.js +1 -0
  80. package/assets/esri/core/workers/chunks/ed3d1d0465f4a4d8df4a.js +1 -0
  81. package/assets/esri/core/workers/chunks/{ed4afafbcb31491c2049.js → f452ca61842dbe8de9af.js} +1 -1
  82. package/assets/esri/core/workers/chunks/f54546c155fba2fd3a7e.js +1 -0
  83. package/assets/esri/core/workers/chunks/{4c8164955f8d844c09ee.js → f8d1c7df671733c3325c.js} +1 -1
  84. package/assets/esri/core/workers/chunks/{e45404a982e173459990.js → f92d521ed3df3c9f737b.js} +1 -1
  85. package/assets/esri/core/workers/chunks/{b2289c18c02c868a2939.js → f9bedb421d4e115a888f.js} +1 -1
  86. package/assets/esri/core/workers/chunks/{55f7b1de8882569861c0.js → faed301a25252c619cff.js} +1 -1
  87. package/assets/esri/core/workers/chunks/fb22b2e4988ecf4d6376.js +1 -0
  88. package/assets/esri/core/workers/chunks/fb455fd89b74b70a6a2b.js +1 -0
  89. package/assets/esri/core/workers/chunks/{6d77c7e9dec323fc4145.js → fb603edd374e24f366ff.js} +1 -1
  90. package/core/Accessor.js +1 -1
  91. package/core/accessorSupport/utils.js +1 -1
  92. package/core/workers/registry.js +1 -1
  93. package/geometry/support/meshUtils/elevation.js +1 -1
  94. package/geometry/support/meshUtils.js +1 -1
  95. package/interfaces.d.ts +38 -3
  96. package/intl/locale.js +1 -1
  97. package/layers/support/RasterWorker.js +1 -1
  98. package/layers/support/VideoElement.js +1 -1
  99. package/layers/support/rasterDatasets/FunctionRaster.js +1 -1
  100. package/layers/support/rasterFunctions/clipUtils.js +1 -1
  101. package/layers/support/rasterFunctions/rasterProjectionHelper.js +1 -1
  102. package/package.json +2 -2
  103. package/rest/networks/queryAssociations.js +1 -1
  104. package/support/revision.js +1 -1
  105. package/symbols/WebStyleSymbol.js +1 -1
  106. package/symbols/support/symbolUtils.js +1 -1
  107. package/views/2d/LabelManager.js +1 -1
  108. package/views/2d/engine/webgl/Overlay.js +1 -1
  109. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  110. package/views/2d/layers/features/schema/processor/symbols/SymbolSchema.js +1 -1
  111. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  112. package/views/3d/layers/graphics/Graphics3DWebStyleSymbol.js +1 -1
  113. package/views/3d/terrain/TerrainSurface.js +1 -1
  114. package/views/3d/terrain/TileRenderer.js +1 -1
  115. package/views/DOMContainer.js +1 -1
  116. package/views/FocusArea.js +1 -1
  117. package/views/GroundView.js +1 -1
  118. package/views/PopupView.js +1 -1
  119. package/views/support/GroundViewElevationSampler.js +1 -1
  120. package/views/support/TextureCompressionHelper.js +1 -1
  121. package/views/support/TextureCompressionWorker.js +5 -0
  122. package/views/support/TextureCompressionWorkerHandle.js +5 -0
  123. package/views/support/imageReprojection.js +1 -1
  124. package/webscene/Slide.js +1 -1
  125. package/widgets/CatalogLayerList/CatalogLayerListViewModel.js +1 -1
  126. package/widgets/CatalogLayerList.js +1 -1
  127. package/widgets/Directions.js +1 -1
  128. package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
  129. package/widgets/LayerList/ListItem.js +1 -1
  130. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  131. package/widgets/Legend.js +1 -1
  132. package/widgets/TableList/ListItem.js +1 -1
  133. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  134. package/widgets/UtilityNetworkTrace.js +1 -1
  135. package/widgets/ValuePicker.js +1 -1
  136. package/widgets/support/uriUtils.js +1 -1
  137. package/assets/esri/core/workers/chunks/07910d16d1efae41d4bc.js +0 -1
  138. package/assets/esri/core/workers/chunks/0a3c1642cfabf9acd5c5.js +0 -1
  139. package/assets/esri/core/workers/chunks/0b7331613f91a3258352.js +0 -1
  140. package/assets/esri/core/workers/chunks/1a09dfb2c9fd7cd84cd4.js +0 -1
  141. package/assets/esri/core/workers/chunks/1dd6d68d23ba07587ae4.js +0 -1
  142. package/assets/esri/core/workers/chunks/2079f9d28e4199714f22.js +0 -1
  143. package/assets/esri/core/workers/chunks/29ba2022c2978e9bd53e.js +0 -1
  144. package/assets/esri/core/workers/chunks/29fe3e9a0ecab74bb729.js +0 -1
  145. package/assets/esri/core/workers/chunks/35f3eef81fac7924a487.js +0 -1
  146. package/assets/esri/core/workers/chunks/4539a802cba77a7a7cc7.js +0 -1
  147. package/assets/esri/core/workers/chunks/470cf066294b053c2732.js +0 -1
  148. package/assets/esri/core/workers/chunks/4d7bd2bbe9045a2fee7a.js +0 -1
  149. package/assets/esri/core/workers/chunks/50b6be13c270d7ac80d3.js +0 -1
  150. package/assets/esri/core/workers/chunks/54ace3e4802934f3f9f2.js +0 -1
  151. package/assets/esri/core/workers/chunks/5656cc44e3d4547668db.js +0 -1
  152. package/assets/esri/core/workers/chunks/597f450a57750637cb4d.js +0 -1
  153. package/assets/esri/core/workers/chunks/605eddec7aac891ed141.js +0 -1
  154. package/assets/esri/core/workers/chunks/6e7577cb6378ff34e722.js +0 -1
  155. package/assets/esri/core/workers/chunks/6eb8d7edafeafeb10cae.js +0 -1
  156. package/assets/esri/core/workers/chunks/71bd94cc789a55910f92.js +0 -1
  157. package/assets/esri/core/workers/chunks/762567124623f6d11e67.js +0 -1
  158. package/assets/esri/core/workers/chunks/77845cd5d824c1004bfa.js +0 -1
  159. package/assets/esri/core/workers/chunks/78683f1aadc1377be5fd.js +0 -1
  160. package/assets/esri/core/workers/chunks/7a4413a188a8f1affb2f.js +0 -1
  161. package/assets/esri/core/workers/chunks/7d3b2bdc75525d47389c.js +0 -1
  162. package/assets/esri/core/workers/chunks/81f2f1614ea27f4c2e65.js +0 -1
  163. package/assets/esri/core/workers/chunks/901c957c049f53318e87.js +0 -1
  164. package/assets/esri/core/workers/chunks/94f41ef15f6c61562e5e.js +0 -1
  165. package/assets/esri/core/workers/chunks/95f23bd17ce9e07fc8ef.js +0 -1
  166. package/assets/esri/core/workers/chunks/96d7f47ea8fbf345101c.js +0 -1
  167. package/assets/esri/core/workers/chunks/9f312f7284e506a84ed7.js +0 -1
  168. package/assets/esri/core/workers/chunks/ac86d0b31f6368bd1fb1.js +0 -1
  169. package/assets/esri/core/workers/chunks/ad9b3b83aa96db7b79ea.js +0 -1
  170. package/assets/esri/core/workers/chunks/b02ac03503bfff1ff922.js +0 -1
  171. package/assets/esri/core/workers/chunks/b2666b89755323a84fcb.js +0 -1
  172. package/assets/esri/core/workers/chunks/b948fe33b4d650eea796.js +0 -1
  173. package/assets/esri/core/workers/chunks/be002f24beb832a369ce.js +0 -1
  174. package/assets/esri/core/workers/chunks/bf3c4c1bff8b71bc0b13.js +0 -1
  175. package/assets/esri/core/workers/chunks/d45ff061bf71b73e9f26.js +0 -1
  176. package/assets/esri/core/workers/chunks/d8ddff920725acb99200.js +0 -1
  177. package/assets/esri/core/workers/chunks/db4c110ab4c26c4b768c.js +0 -1
  178. package/assets/esri/core/workers/chunks/dfa4be2e07cc4c0938b0.js +0 -1
  179. package/assets/esri/core/workers/chunks/e491daf73ab1264aa1b9.js +0 -1
  180. package/assets/esri/core/workers/chunks/f2a6287c8d28be24f71e.js +0 -1
  181. package/assets/esri/core/workers/chunks/f4861d73c62096f73e48.js +0 -1
  182. package/assets/esri/core/workers/chunks/f70dd16f14279bb7e60d.js +0 -1
  183. package/assets/esri/core/workers/chunks/fa011ad649c05201e92a.js +0 -1
  184. package/views/3d/webgl-engine/lib/TextureCompressionWorker.js +0 -5
  185. package/views/3d/webgl-engine/lib/TextureCompressionWorkerHandle.js +0 -5
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9013],{11053:(e,t,r)=>{r.d(t,{c:()=>a,g:()=>n});var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},29013:(e,t,r)=>{r.r(t),r.d(t,{a:()=>s});var a,n=r(11053),o={exports:{}};const i=(0,n.g)(function(){return a||(a=1,e=o,t="undefined"!=typeof document?document.currentScript?.src:void 0,r=function(e={}){var r,a,o,i=e,s=new Promise(((e,t)=>{r=e,a=t})),u=Object.assign({},i),f="./this.program",l="";"undefined"!=typeof document&&document.currentScript&&(l=document.currentScript.src),t&&(l=t),l=l.startsWith("blob:")?"":l.substr(0,l.replace(/[?#].*/,"").lastIndexOf("/")+1),o=async e=>{if((e=await fetch(e,{credentials:"same-origin"})).ok)return e.arrayBuffer();throw Error(e.status+" : "+e.url)};var c=i.print||console.log.bind(console),h=i.printErr||console.error.bind(console);Object.assign(i,u),u=null,i.thisProgram&&(f=i.thisProgram);var p,d,m,v,y,g,w,b,$,T,A,C,W=i.wasmBinary,j=!1;function P(){var e=p.buffer;i.HEAP8=m=new Int8Array(e),i.HEAP16=y=new Int16Array(e),i.HEAPU8=v=new Uint8Array(e),i.HEAPU16=g=new Uint16Array(e),i.HEAP32=w=new Int32Array(e),i.HEAPU32=b=new Uint32Array(e),i.HEAPF32=$=new Float32Array(e),i.HEAPF64=C=new Float64Array(e),i.HEAP64=T=new BigInt64Array(e),i.HEAPU64=A=new BigUint64Array(e)}var E=[],O=[],k=[];function S(){var e=i.preRun.shift();E.unshift(e)}var x=0,F=null;function R(e){throw i.onAbort?.(e),h(e="Aborted("+e+")"),j=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),a(e),e}var _,U=e=>e.startsWith("data:application/octet-stream;base64,");class I{name="ExitStatus";constructor(e){this.message=`Program terminated with exit(${e})`,this.status=e}}var M=e=>{for(;0<e.length;)e.shift()(i)},B=i.noExitRuntime||!0;class H{constructor(e){this.ga=e-24}}var D={},V=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function z(e){return this.fromWireType(b[e>>2])}var N,q,L,G={},J={},K={},Q=(e,t,r)=>{function a(t){if((t=r(t)).length!==e.length)throw new N("Mismatched type converter count");for(var a=0;a<e.length;++a)X(e[a],t[a])}e.forEach((e=>K[e]=t));var n=Array(t.length),o=[],i=0;t.forEach(((e,t)=>{J.hasOwnProperty(e)?n[t]=J[e]:(o.push(e),G.hasOwnProperty(e)||(G[e]=[]),G[e].push((()=>{n[t]=J[e],++i===o.length&&a(n)})))})),0===o.length&&a(n)},Y=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},Z=e=>{for(var t="";v[e];)t+=q[v[e++]];return t};function X(e,t,r={}){return function(e,t,r={}){var a=t.name;if(!e)throw new L(`type "${a}" must have a positive integer typeid pointer`);if(J.hasOwnProperty(e)){if(r.La)return;throw new L(`Cannot register type '${a}' twice`)}J[e]=t,delete K[e],G.hasOwnProperty(e)&&(t=G[e],delete G[e],t.forEach((e=>e())))}(e,t,r)}var ee=(e,t,r)=>{switch(t){case 1:return r?e=>m[e]:e=>v[e];case 2:return r?e=>y[e>>1]:e=>g[e>>1];case 4:return r?e=>w[e>>2]:e=>b[e>>2];case 8:return r?e=>T[e>>3]:e=>A[e>>3];default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},te=e=>{throw new L(e.ea.ha.fa.name+" instance already deleted")},re=!1,ae=()=>{},ne=(e,t,r)=>t===r?e:void 0===r.ka||null===(e=ne(e,t,r.ka))?null:r.Ea(e),oe={},ie={},se=(e,t)=>{if(!t.ha||!t.ga)throw new N("makeClassHandle requires ptr and ptrType");if(!!t.na!=!!t.ja)throw new N("Both smartPtrType and smartPtr must be specified");return t.count={value:1},ue(Object.create(e,{ea:{value:t,writable:!0}}))},ue=e=>"undefined"==typeof FinalizationRegistry?(ue=e=>e,e):(re=new FinalizationRegistry((e=>{--(e=e.ea).count.value,0===e.count.value&&(e.ja?e.na.oa(e.ja):e.ha.fa.oa(e.ga))})),ae=e=>{re.unregister(e)},(ue=e=>{var t=e.ea;return t.ja&&re.register(e,{ea:t},e),e})(e));function fe(){}var le=(e,t)=>Object.defineProperty(t,"name",{value:e}),ce=(e,t,r)=>{if(void 0===e[t].ia){var a=e[t];e[t]=function(...a){if(!e[t].ia.hasOwnProperty(a.length))throw new L(`Function '${r}' called with an invalid number of arguments (${a.length}) - expects one of (${e[t].ia})!`);return e[t].ia[a.length].apply(this,a)},e[t].ia=[],e[t].ia[a.qa]=a}},he=(e,t,r)=>{if(i.hasOwnProperty(e)){if(void 0===r||void 0!==i[e].ia&&void 0!==i[e].ia[r])throw new L(`Cannot register public name '${e}' twice`);if(ce(i,e,e),i[e].ia.hasOwnProperty(r))throw new L(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`);i[e].ia[r]=t}else i[e]=t,i[e].qa=r};function pe(e,t,r,a,n,o,i,s){this.name=e,this.constructor=t,this.pa=r,this.oa=a,this.ka=n,this.Ga=o,this.ua=i,this.Ea=s,this.Na=[]}var de=(e,t,r)=>{for(;t!==r;){if(!t.ua)throw new L(`Expected null or instance of ${r.name}, got an instance of ${t.name}`);e=t.ua(e),t=t.ka}return e};function me(e,t){if(null===t){if(this.ya)throw new L(`null is not a valid ${this.name}`);return 0}if(!t.ea)throw new L(`Cannot pass "${Y(t)}" as a ${this.name}`);if(!t.ea.ga)throw new L(`Cannot pass deleted object as a pointer of type ${this.name}`);return de(t.ea.ga,t.ea.ha.fa,this.fa)}function ve(e,t){if(null===t){if(this.ya)throw new L(`null is not a valid ${this.name}`);if(this.xa){var r=this.za();return null!==e&&e.push(this.oa,r),r}return 0}if(!t||!t.ea)throw new L(`Cannot pass "${Y(t)}" as a ${this.name}`);if(!t.ea.ga)throw new L(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.wa&&t.ea.ha.wa)throw new L(`Cannot convert argument of type ${t.ea.na?t.ea.na.name:t.ea.ha.name} to parameter type ${this.name}`);if(r=de(t.ea.ga,t.ea.ha.fa,this.fa),this.xa){if(void 0===t.ea.ja)throw new L("Passing raw pointer to smart pointer is illegal");switch(this.Sa){case 0:if(t.ea.na!==this)throw new L(`Cannot convert argument of type ${t.ea.na?t.ea.na.name:t.ea.ha.name} to parameter type ${this.name}`);r=t.ea.ja;break;case 1:r=t.ea.ja;break;case 2:if(t.ea.na===this)r=t.ea.ja;else{var a=t.clone();r=this.Oa(r,Ie((()=>a.delete()))),null!==e&&e.push(this.oa,r)}break;default:throw new L("Unsupporting sharing policy")}}return r}function ye(e,t){if(null===t){if(this.ya)throw new L(`null is not a valid ${this.name}`);return 0}if(!t.ea)throw new L(`Cannot pass "${Y(t)}" as a ${this.name}`);if(!t.ea.ga)throw new L(`Cannot pass deleted object as a pointer of type ${this.name}`);if(t.ea.ha.wa)throw new L(`Cannot convert argument of type ${t.ea.ha.name} to parameter type ${this.name}`);return de(t.ea.ga,t.ea.ha.fa,this.fa)}function ge(e,t,r,a,n,o,i,s,u,f,l){this.name=e,this.fa=t,this.ya=r,this.wa=a,this.xa=n,this.Ma=o,this.Sa=i,this.Ca=s,this.za=u,this.Oa=f,this.oa=l,n||void 0!==t.ka?this.toWireType=ve:(this.toWireType=a?me:ye,this.ma=null)}var we,be,$e=(e,t,r)=>{if(!i.hasOwnProperty(e))throw new N("Replacing nonexistent public symbol");void 0!==i[e].ia&&void 0!==r?i[e].ia[r]=t:(i[e]=t,i[e].qa=r)},Te=[],Ae=(e,t)=>{e=Z(e);var r=Te[t];if(r||(t>=Te.length&&(Te.length=t+1),Te[t]=r=we.get(t)),"function"!=typeof r)throw new L(`unknown function pointer with signature ${e}: ${t}`);return r},Ce=e=>{e=yt(e);var t=Z(e);return wt(e),t},We=(e,t)=>{var r=[],a={};throw t.forEach((function e(t){a[t]||J[t]||(K[t]?K[t].forEach(e):(r.push(t),a[t]=!0))})),new be(`${e}: `+r.map(Ce).join([", "]))};function je(e,t,r,a,n){var o=t.length;if(2>o)throw new L("argTypes array size mismatch! Must at least get return value and 'this' types!");var i=null!==t[1]&&null!==r,s=function(e){for(var t=1;t<e.length;++t)if(null!==e[t]&&void 0===e[t].ma)return!0;return!1}(t),u="void"!==t[0].name,f=o-2,l=Array(f),c=[],h=[];return le(e,(function(...e){if(h.length=0,c.length=i?2:1,c[0]=n,i){var r=t[1].toWireType(h,this);c[1]=r}for(var o=0;o<f;++o)l[o]=t[o+2].toWireType(h,e[o]),c.push(l[o]);if(e=a(...c),s)V(h);else for(o=i?1:2;o<t.length;o++){var p=1===o?r:l[o-2];null!==t[o].ma&&t[o].ma(p)}return u?t[0].fromWireType(e):void 0}))}var Pe,Ee,Oe,ke=(e,t)=>{for(var r=[],a=0;a<e;a++)r.push(b[t+4*a>>2]);return r},Se=e=>{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e},xe=(e,t,r)=>{if(!(e instanceof Object))throw new L(`${r} with invalid "this": ${e}`);if(!(e instanceof t.fa.constructor))throw new L(`${r} incompatible with "this" of type ${e.constructor.name}`);if(!e.ea.ga)throw new L(`cannot call emscripten binding method ${r} on deleted object`);return de(e.ea.ga,e.ea.ha.fa,t.fa)},Fe=[],Re=[],_e=e=>{9<e&&0==--Re[e+1]&&(Re[e]=void 0,Fe.push(e))},Ue=e=>{if(!e)throw new L("Cannot use deleted val. handle = "+e);return Re[e]},Ie=e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:const t=Fe.pop()||Re.length;return Re[t]=e,Re[t+1]=1,t}},Me={name:"emscripten::val",fromWireType:e=>{var t=Ue(e);return _e(e),t},toWireType:(e,t)=>Ie(t),la:8,readValueFromPointer:z,ma:null},Be=(e,t,r)=>{switch(t){case 1:return r?function(e){return this.fromWireType(m[e])}:function(e){return this.fromWireType(v[e])};case 2:return r?function(e){return this.fromWireType(y[e>>1])}:function(e){return this.fromWireType(g[e>>1])};case 4:return r?function(e){return this.fromWireType(w[e>>2])}:function(e){return this.fromWireType(b[e>>2])};default:throw new TypeError(`invalid integer width (${t}): ${e}`)}},He=(e,t)=>{var r=J[e];if(void 0===r)throw e=`${t} has unknown type ${Ce(e)}`,new L(e);return r},De=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType($[e>>2])};case 8:return function(e){return this.fromWireType(C[e>>3])};default:throw new TypeError(`invalid float width (${t}): ${e}`)}},Ve=Object.assign({optional:!0},Me),ze=(e,t,r)=>{var a=v;if(0<r){r=t+r-1;for(var n=0;n<e.length;++n){var o=e.charCodeAt(n);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++n)),127>=o){if(t>=r)break;a[t++]=o}else{if(2047>=o){if(t+1>=r)break;a[t++]=192|o>>6}else{if(65535>=o){if(t+2>=r)break;a[t++]=224|o>>12}else{if(t+3>=r)break;a[t++]=240|o>>18,a[t++]=128|o>>12&63}a[t++]=128|o>>6&63}a[t++]=128|63&o}}a[t]=0}},Ne="undefined"!=typeof TextDecoder?new TextDecoder:void 0,qe=(e,t=0,r=NaN)=>{var a=t+r;for(r=t;e[r]&&!(r>=a);)++r;if(16<r-t&&e.buffer&&Ne)return Ne.decode(e.subarray(t,r));for(a="";t<r;){var n=e[t++];if(128&n){var o=63&e[t++];if(192==(224&n))a+=String.fromCharCode((31&n)<<6|o);else{var i=63&e[t++];65536>(n=224==(240&n)?(15&n)<<12|o<<6|i:(7&n)<<18|o<<12|i<<6|63&e[t++])?a+=String.fromCharCode(n):(n-=65536,a+=String.fromCharCode(55296|n>>10,56320|1023&n))}}else a+=String.fromCharCode(n)}return a},Le="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Ge=(e,t)=>{for(var r=e>>1,a=r+t/2;!(r>=a)&&g[r];)++r;if(32<(r<<=1)-e&&Le)return Le.decode(v.subarray(e,r));for(r="",a=0;!(a>=t/2);++a){var n=y[e+2*a>>1];if(0==n)break;r+=String.fromCharCode(n)}return r},Je=(e,t,r)=>{if(r??=2147483647,2>r)return 0;var a=t;r=(r-=2)<2*e.length?r/2:e.length;for(var n=0;n<r;++n)y[t>>1]=e.charCodeAt(n),t+=2;return y[t>>1]=0,t-a},Ke=e=>2*e.length,Qe=(e,t)=>{for(var r=0,a="";!(r>=t/4);){var n=w[e+4*r>>2];if(0==n)break;++r,65536<=n?(n-=65536,a+=String.fromCharCode(55296|n>>10,56320|1023&n)):a+=String.fromCharCode(n)}return a},Ye=(e,t,r)=>{if(r??=2147483647,4>r)return 0;var a=t;r=a+r-4;for(var n=0;n<e.length;++n){var o=e.charCodeAt(n);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++n)),w[t>>2]=o,(t+=4)+4>r)break}return w[t>>2]=0,t-a},Ze=e=>{for(var t=0,r=0;r<e.length;++r){var a=e.charCodeAt(r);55296<=a&&57343>=a&&++r,t+=4}return t},Xe=0,et=(e,t,r)=>{var a=[];return e=e.toWireType(a,r),a.length&&(b[t>>2]=Ie(a)),e},tt=[],rt={},at=e=>{var t=rt[e];return void 0===t?Z(e):t},nt=()=>{function e(e){e.$$$embind_global$$$=e;var t="object"==typeof $$$embind_global$$$&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if("object"==typeof globalThis)return globalThis;if("object"==typeof $$$embind_global$$$)return $$$embind_global$$$;if("object"==typeof n.c&&e(n.c)?$$$embind_global$$$=n.c:"object"==typeof self&&e(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$)return $$$embind_global$$$;throw Error("unable to get global object.")},ot=Reflect.construct,it={},st=e=>{if(!(e instanceof I||"unwind"==e))throw e},ut=e=>{throw d=e,B||0<Xe||(i.onExit?.(e),j=!0),new I(e)},ft={},lt=()=>{if(!Pe){var e,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:f||"./this.program"};for(e in ft)void 0===ft[e]?delete t[e]:t[e]=ft[e];var r=[];for(e in t)r.push(`${e}=${t[e]}`);Pe=r}return Pe},ct=[null,[],[]];N=i.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}};for(var ht=Array(256),pt=0;256>pt;++pt)ht[pt]=String.fromCharCode(pt);q=ht,L=i.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(fe.prototype,{isAliasOf:function(e){if(!(this instanceof fe&&e instanceof fe))return!1;var t=this.ea.ha.fa,r=this.ea.ga;e.ea=e.ea;var a=e.ea.ha.fa;for(e=e.ea.ga;t.ka;)r=t.ua(r),t=t.ka;for(;a.ka;)e=a.ua(e),a=a.ka;return t===a&&r===e},clone:function(){if(this.ea.ga||te(this),this.ea.ta)return this.ea.count.value+=1,this;var e=ue,t=Object,r=t.create,a=Object.getPrototypeOf(this),n=this.ea;return(e=e(r.call(t,a,{ea:{value:{count:n.count,sa:n.sa,ta:n.ta,ga:n.ga,ha:n.ha,ja:n.ja,na:n.na}}}))).ea.count.value+=1,e.ea.sa=!1,e},delete(){if(this.ea.ga||te(this),this.ea.sa&&!this.ea.ta)throw new L("Object already scheduled for deletion");ae(this);var e=this.ea;--e.count.value,0===e.count.value&&(e.ja?e.na.oa(e.ja):e.ha.fa.oa(e.ga)),this.ea.ta||(this.ea.ja=void 0,this.ea.ga=void 0)},isDeleted:function(){return!this.ea.ga},deleteLater:function(){if(this.ea.ga||te(this),this.ea.sa&&!this.ea.ta)throw new L("Object already scheduled for deletion");return this.ea.sa=!0,this}}),Object.assign(ge.prototype,{Ha(e){return this.Ca&&(e=this.Ca(e)),e},Aa(e){this.oa?.(e)},la:8,readValueFromPointer:z,fromWireType:function(e){function t(){return this.xa?se(this.fa.pa,{ha:this.Ma,ga:r,na:this,ja:e}):se(this.fa.pa,{ha:this,ga:e})}var r=this.Ha(e);if(!r)return this.Aa(e),null;var a=((e,t)=>{if(void 0===t)throw new L("ptr should not be undefined");for(;e.ka;)t=e.ua(t),e=e.ka;return ie[t]})(this.fa,r);if(void 0!==a)return 0===a.ea.count.value?(a.ea.ga=r,a.ea.ja=e,a.clone()):(a=a.clone(),this.Aa(e),a);if(a=this.fa.Ga(r),!(a=oe[a]))return t.call(this);a=this.wa?a.Da:a.pointerType;var n=ne(r,this.fa,a.fa);return null===n?t.call(this):this.xa?se(a.fa.pa,{ha:a,ga:n,na:this,ja:e}):se(a.fa.pa,{ha:a,ga:n})}}),be=i.UnboundTypeError=(Ee=Error,(Oe=le("UnboundTypeError",(function(e){this.name="UnboundTypeError",this.message=e,void 0!==(e=Error(e).stack)&&(this.stack=this.toString()+"\n"+e.replace(/^Error(:[^\n]*)?\n/,""))}))).prototype=Object.create(Ee.prototype),Oe.prototype.constructor=Oe,Oe.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},Oe),Re.push(0,1,void 0,1,null,1,!0,1,!1,1),i.count_emval_handles=()=>Re.length/2-5-Fe.length;var dt,mt={m:(e,t,r)=>{var a=new H(e);throw b[a.ga+16>>2]=0,b[a.ga+4>>2]=t,b[a.ga+8>>2]=r,e},O:()=>R(""),r:e=>{var t=D[e];delete D[e];var r=t.za,a=t.oa,n=t.Ba,o=n.map((e=>e.Ka)).concat(n.map((e=>e.Qa)));Q([e],o,(e=>{var o={};return n.forEach(((t,r)=>{var a=e[r],i=t.Ia,s=t.Ja,u=e[r+n.length],f=t.Pa,l=t.Ra;o[t.Fa]={read:e=>a.fromWireType(i(s,e)),write:(e,t)=>{var r=[];f(l,e,u.toWireType(r,t)),V(r)}}})),[{name:t.name,fromWireType:e=>{var t,r={};for(t in o)r[t]=o[t].read(e);return a(e),r},toWireType:(e,t)=>{for(var n in o)if(!(n in t))throw new TypeError(`Missing field: "${n}"`);var i=r();for(n in o)o[n].write(i,t[n]);return null!==e&&e.push(a,i),i},la:8,readValueFromPointer:z,ma:a}]}))},E:(e,t,r)=>{X(e,{name:t=Z(t),fromWireType:e=>e,toWireType:function(e,t){if("bigint"!=typeof t&&"number"!=typeof t)throw new TypeError(`Cannot convert "${Y(t)}" to ${this.name}`);return"number"==typeof t&&(t=BigInt(t)),t},la:8,readValueFromPointer:ee(t,r,-1==t.indexOf("u")),ma:null})},V:(e,t,r,a)=>{X(e,{name:t=Z(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:a},la:8,readValueFromPointer:function(e){return this.fromWireType(v[e])},ma:null})},f:(e,t,r,a,n,o,i,s,u,f,l,c,h)=>{l=Z(l),o=Ae(n,o),s&&=Ae(i,s),f&&=Ae(u,f),h=Ae(c,h);var p=(e=>{var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?`_${e}`:e})(l);he(p,(function(){We(`Cannot construct ${l} due to unbound types`,[a])})),Q([e,t,r],a?[a]:[],(t=>{if(t=t[0],a)var r=t.fa,n=r.pa;else n=fe.prototype;t=le(l,(function(...e){if(Object.getPrototypeOf(this)!==i)throw new L("Use 'new' to construct "+l);if(void 0===c.ra)throw new L(l+" has no accessible constructor");var t=c.ra[e.length];if(void 0===t)throw new L(`Tried to invoke ctor of ${l} with invalid number of parameters (${e.length}) - expected (${Object.keys(c.ra).toString()}) parameters instead!`);return t.apply(this,e)}));var i=Object.create(n,{constructor:{value:t}});t.prototype=i;var u,c=new pe(l,t,i,h,r,o,s,f);return c.ka&&((u=c.ka).va??(u.va=[]),c.ka.va.push(c)),r=new ge(l,c,!0,!1,!1),u=new ge(l+"*",c,!1,!1,!1),n=new ge(l+" const*",c,!1,!0,!1),oe[e]={pointerType:u,Da:n},$e(p,t),[r,u,n]}))},v:(e,t,r,a,n,o,i)=>{var s=ke(r,a);t=Z(t),t=Se(t),o=Ae(n,o),Q([],[e],(e=>{function a(){We(`Cannot call ${n} due to unbound types`,s)}var n=`${(e=e[0]).name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var u=e.fa.constructor;return void 0===u[t]?(a.qa=r-1,u[t]=a):(ce(u,t,n),u[t].ia[r-1]=a),Q([],s,(a=>{if(a=je(n,[a[0],null].concat(a.slice(1)),null,o,i),void 0===u[t].ia?(a.qa=r-1,u[t]=a):u[t].ia[r-1]=a,e.fa.va)for(const r of e.fa.va)r.constructor.hasOwnProperty(t)||(r.constructor[t]=a);return[]})),[]}))},g:(e,t,r,a,n,o)=>{var i=ke(t,r);n=Ae(a,n),Q([],[e],(e=>{var r=`constructor ${(e=e[0]).name}`;if(void 0===e.fa.ra&&(e.fa.ra=[]),void 0!==e.fa.ra[t-1])throw new L(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.fa.ra[t-1]=()=>{We(`Cannot construct ${e.name} due to unbound types`,i)},Q([],i,(a=>(a.splice(1,0,null),e.fa.ra[t-1]=je(r,a,null,n,o),[]))),[]}))},a:(e,t,r,a,n,o,i,s)=>{var u=ke(r,a);t=Z(t),t=Se(t),o=Ae(n,o),Q([],[e],(e=>{function a(){We(`Cannot call ${n} due to unbound types`,u)}var n=`${(e=e[0]).name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.fa.Na.push(t);var f=e.fa.pa,l=f[t];return void 0===l||void 0===l.ia&&l.className!==e.name&&l.qa===r-2?(a.qa=r-2,a.className=e.name,f[t]=a):(ce(f,t,n),f[t].ia[r-2]=a),Q([],u,(a=>(a=je(n,a,e,o,i),void 0===f[t].ia?(a.qa=r-2,f[t]=a):f[t].ia[r-2]=a,[]))),[]}))},c:(e,t,r,a,n,o,i,s,u,f)=>{t=Z(t),n=Ae(a,n),Q([],[e],(e=>{var a=`${(e=e[0]).name}.${t}`,l={get(){We(`Cannot access ${a} due to unbound types`,[r,i])},enumerable:!0,configurable:!0};return l.set=u?()=>We(`Cannot access ${a} due to unbound types`,[r,i]):()=>{throw new L(a+" is a read-only property")},Object.defineProperty(e.fa.pa,t,l),Q([],u?[r,i]:[r],(r=>{var i=r[0],l={get(){var t=xe(this,e,a+" getter");return i.fromWireType(n(o,t))},enumerable:!0};if(u){u=Ae(s,u);var c=r[1];l.set=function(t){var r=xe(this,e,a+" setter"),n=[];u(f,r,c.toWireType(n,t)),V(n)}}return Object.defineProperty(e.fa.pa,t,l),[]})),[]}))},T:e=>X(e,Me),n:(e,t,r,a)=>{function n(){}t=Z(t),n.values={},X(e,{name:t,constructor:n,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,t)=>t.value,la:8,readValueFromPointer:Be(t,r,a),ma:null}),he(t,n)},e:(e,t,r)=>{var a=He(e,"enum");t=Z(t),e=a.constructor,a=Object.create(a.constructor.prototype,{value:{value:r},constructor:{value:le(`${a.name}_${t}`,(function(){}))}}),e.values[r]=a,e[t]=a},D:(e,t,r)=>{X(e,{name:t=Z(t),fromWireType:e=>e,toWireType:(e,t)=>t,la:8,readValueFromPointer:De(t,r),ma:null})},X:(e,t,r,a,n,o)=>{var i=ke(t,r);e=Z(e),e=Se(e),n=Ae(a,n),he(e,(function(){We(`Cannot call ${e} due to unbound types`,i)}),t-1),Q([],i,(r=>($e(e,je(e,[r[0],null].concat(r.slice(1)),null,n,o),t-1),[])))},w:(e,t,r,a,n)=>{if(t=Z(t),-1===n&&(n=4294967295),n=e=>e,0===a){var o=32-8*r;n=e=>e<<o>>>o}var i=t.includes("unsigned")?function(e,t){return t>>>0}:function(e,t){return t};X(e,{name:t,fromWireType:n,toWireType:i,la:8,readValueFromPointer:ee(t,r,0!==a),ma:null})},o:(e,t,r)=>{function a(e){return new n(m.buffer,b[e+4>>2],b[e>>2])}var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][t];X(e,{name:r=Z(r),fromWireType:a,la:8,readValueFromPointer:a},{La:!0})},t:e=>{X(e,Ve)},i:(e,t,r,a,n,o,i,s,u,f,l,c)=>{r=Z(r),o=Ae(n,o),s=Ae(i,s),f=Ae(u,f),c=Ae(l,c),Q([e],[t],(e=>(e=e[0],[new ge(r,e.fa,!1,!1,!0,e,a,o,s,f,c)])))},U:(e,t)=>{X(e,{name:t=Z(t),fromWireType:function(e){for(var t,r=b[e>>2],a=e+4,n=a,o=0;o<=r;++o){var i=a+o;o!=r&&0!=v[i]||(n=n?qe(v,n,i-n):"",void 0===t?t=n:(t+=String.fromCharCode(0),t+=n),n=i+1)}return wt(e),t},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var r,a="string"==typeof t;if(!(a||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array))throw new L("Cannot pass non-string to std::string");if(a)for(var n=r=0;n<t.length;++n){var o=t.charCodeAt(n);127>=o?r++:2047>=o?r+=2:55296<=o&&57343>=o?(r+=4,++n):r+=3}else r=t.length;if(o=(n=gt(4+r+1))+4,b[n>>2]=r,a)ze(t,o,r+1);else if(a)for(a=0;a<r;++a){var i=t.charCodeAt(a);if(255<i)throw wt(o),new L("String has UTF-16 code units that do not fit in 8 bits");v[o+a]=i}else for(a=0;a<r;++a)v[o+a]=t[a];return null!==e&&e.push(wt,n),n},la:8,readValueFromPointer:z,ma(e){wt(e)}})},C:(e,t,r)=>{if(r=Z(r),2===t)var a=Ge,n=Je,o=Ke,i=e=>g[e>>1];else 4===t&&(a=Qe,n=Ye,o=Ze,i=e=>b[e>>2]);X(e,{name:r,fromWireType:e=>{for(var r,n=b[e>>2],o=e+4,s=0;s<=n;++s){var u=e+4+s*t;s!=n&&0!=i(u)||(o=a(o,u-o),void 0===r?r=o:(r+=String.fromCharCode(0),r+=o),o=u+t)}return wt(e),r},toWireType:(e,a)=>{if("string"!=typeof a)throw new L(`Cannot pass non-string to C++ string type ${r}`);var i=o(a),s=gt(4+i+t);return b[s>>2]=i/t,n(a,s+4,i+t),null!==e&&e.push(wt,s),s},la:8,readValueFromPointer:z,ma(e){wt(e)}})},s:(e,t,r,a,n,o)=>{D[e]={name:Z(t),za:Ae(r,a),oa:Ae(n,o),Ba:[]}},j:(e,t,r,a,n,o,i,s,u,f)=>{D[e].Ba.push({Fa:Z(t),Ka:r,Ia:Ae(a,n),Ja:o,Qa:i,Pa:Ae(s,u),Ra:f})},W:(e,t)=>{X(e,{Ta:!0,name:t=Z(t),la:0,fromWireType:()=>{},toWireType:()=>{}})},J:()=>{B=!1,Xe=0},l:(e,t,r)=>(e=Ue(e),t=He(t,"emval::as"),et(t,r,e)),y:(e,t)=>(e=Ue(e),(t=He(t,"emval::as")).toWireType(null,e)),Y:(e,t,r,a)=>(e=tt[e])(null,t=Ue(t),r,a),B:(e,t,r,a,n)=>(e=tt[e])(t=Ue(t),t[r=at(r)],a,n),b:_e,G:e=>0===e?Ie(nt()):(e=at(e),Ie(nt()[e])),A:(e,t,r)=>{var a=((e,t)=>{for(var r=Array(e),a=0;a<e;++a)r[a]=He(b[t+4*a>>2],"parameter "+a);return r})(e,t),n=a.shift();e--;var o=Array(e);return t=`methodCaller<(${a.map((e=>e.name)).join(", ")}) => ${n.name}>`,(e=>{var t=tt.length;return tt.push(e),t})(le(t,((t,i,s,u)=>{for(var f=0,l=0;l<e;++l)o[l]=a[l].readValueFromPointer(u+f),f+=a[l].la;return t=1===r?ot(i,o):i.apply(t,o),et(n,s,t)})))},q:(e,t)=>(e=Ue(e),t=Ue(t),Ie(e[t])),h:e=>{9<e&&(Re[e+1]+=1)},I:(e,t)=>(e=Ue(e))instanceof Ue(t),u:e=>"number"==typeof(e=Ue(e)),x:e=>"string"==typeof(e=Ue(e)),F:()=>Ie([]),p:e=>Ie(at(e)),k:e=>{var t=Ue(e);V(t),_e(e)},d:(e,t)=>(e=(e=He(e,"_emval_take_value")).readValueFromPointer(t),Ie(e)),z:e=>(e=Ue(e),Ie(typeof e)),K:(e,t)=>{if(it[e]&&(clearTimeout(it[e].id),delete it[e]),!t)return 0;var r=setTimeout((()=>{delete it[e],(e=>{if(!j)try{if(e(),!(B||0<Xe))try{d=e=d,ut(e)}catch(e){st(e)}}catch(e){st(e)}})((()=>bt(e,performance.now())))}),t);return it[e]={id:r,Ua:t},0},L:(e,t,r,a)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1).getTimezoneOffset();n=new Date(n,6,1).getTimezoneOffset(),b[e>>2]=60*Math.max(o,n),w[t>>2]=Number(o!=n),e=(t=e=>{var t=Math.abs(e);return`UTC${0<=e?"-":"+"}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`})(o),t=t(n),n<o?(ze(e,r,17),ze(t,a,17)):(ze(e,a,17),ze(t,r,17))},P:e=>{var t=v.length;if(2147483648<(e>>>=0))return!1;for(var r=1;4>=r;r*=2){var a=t*(1+.2/r);a=Math.min(a,e+100663296);e:{a=(Math.min(2147483648,65536*Math.ceil(Math.max(e,a)/65536))-p.buffer.byteLength+65535)/65536|0;try{p.grow(a),P();var n=1;break e}catch(e){}n=void 0}if(n)return!0}return!1},M:(e,t)=>{var r=0;return lt().forEach(((a,n)=>{var o=t+r;for(n=b[e+4*n>>2]=o,o=0;o<a.length;++o)m[n++]=a.charCodeAt(o);m[n]=0,r+=a.length+1})),0},N:(e,t)=>{var r=lt();b[e>>2]=r.length;var a=0;return r.forEach((e=>a+=e.length+1)),b[t>>2]=a,0},S:()=>52,R:function(){return 70},Q:(e,t,r,a)=>{for(var n=0,o=0;o<r;o++){var i=b[t>>2],s=b[t+4>>2];t+=8;for(var u=0;u<s;u++){var f=v[i+u],l=ct[e];0===f||10===f?((1===e?c:h)(qe(l)),l.length=0):l.push(f)}n+=s}return b[a>>2]=n,0},H:ut};!async function(){function e(e){return dt=e.exports,p=dt.Z,P(),we=dt.ca,O.unshift(dt._),x--,i.monitorRunDependencies?.(x),0==x&&F&&(e=F,F=null,e()),dt}x++,i.monitorRunDependencies?.(x);var t={a:mt};if(i.instantiateWasm)try{return i.instantiateWasm(t,e)}catch(e){h(`Module.instantiateWasm callback failed with error: ${e}`),a(e)}_??=U("arcgis-knowledge-client-core.wasm")?"arcgis-knowledge-client-core.wasm":i.locateFile?i.locateFile("arcgis-knowledge-client-core.wasm",l):l+"arcgis-knowledge-client-core.wasm";try{var r=await async function(e){var t=_;if(!W&&"function"==typeof WebAssembly.instantiateStreaming&&!U(t)&&"function"==typeof fetch)try{var r=fetch(t,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(r,e)}catch(e){h(`wasm streaming compile failed: ${e}`),h("falling back to ArrayBuffer instantiation")}return async function(e,t){try{var r=await async function(e){if(!W)try{var t=await o(e);return new Uint8Array(t)}catch{}if(e!=_||!W)throw"both async and sync fetching of the wasm failed";return new Uint8Array(W)}(e);return await WebAssembly.instantiate(r,t)}catch(e){h(`failed to asynchronously prepare wasm: ${e}`),R(e)}}(t,e)}(t);return e(r.instance),r}catch(e){a(e)}}();var vt,yt=e=>(yt=dt.$)(e),gt=e=>(gt=dt.aa)(e),wt=e=>(wt=dt.ba)(e),bt=(e,t)=>(bt=dt.da)(e,t);function $t(){function e(){if(!vt&&(vt=!0,i.calledRun=!0,!j)){if(M(O),r(i),i.onRuntimeInitialized?.(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;){var e=i.postRun.shift();k.unshift(e)}M(k)}}if(!(0<x)){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)S();M(E),0<x||(i.setStatus?(i.setStatus("Running..."),setTimeout((()=>{setTimeout((()=>i.setStatus("")),1),e()}),1)):e())}}if(F=function e(){vt||$t(),vt||(F=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);0<i.preInit.length;)i.preInit.pop()();return $t(),s},e.exports=r,e.exports.default=r),o.exports;var e,t,r}()),s=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8887],{3209:(e,n,t)=>{t.d(n,{A:()=>T,B:()=>b,C:()=>A,D:()=>C,E:()=>L,F:()=>I,G:()=>V,H:()=>j,I:()=>k,J:()=>H,K:()=>O,L:()=>_,M:()=>q,N:()=>B,a:()=>c,b:()=>u,c:()=>s,d:()=>a,e:()=>o,f:()=>f,g:()=>X,h:()=>l,i:()=>h,j:()=>G,k:()=>x,l:()=>M,m:()=>y,n:()=>w,o:()=>d,p:()=>R,q:()=>Z,r:()=>m,s:()=>v,t:()=>g,u:()=>P,v:()=>z,w:()=>p,x:()=>E,y:()=>S,z:()=>D});var r=t(49930),i=t(7320);function o(e){return r.G.extendedSpatialReferenceInfo(e)}function s(e,n,t){return r.G.clip(i.g,e,n,t)}function c(e,n,t){return r.G.cut(i.g,e,n,t)}function u(e,n,t){return r.G.contains(i.g,e,n,t)}function a(e,n,t){return r.G.crosses(i.g,e,n,t)}function f(e,n,t,o){return r.G.distance(i.g,e,n,t,o)}function l(e,n,t){return r.G.equals(i.g,e,n,t)}function h(e,n,t){return r.G.intersects(i.g,e,n,t)}function g(e,n,t){return r.G.touches(i.g,e,n,t)}function p(e,n,t){return r.G.within(i.g,e,n,t)}function G(e,n,t){return r.G.disjoint(i.g,e,n,t)}function d(e,n,t){return r.G.overlaps(i.g,e,n,t)}function m(e,n,t,o){return r.G.relate(i.g,e,n,t,o)}function x(e,n){return r.G.isSimple(i.g,e,n)}function v(e,n){return r.G.simplify(i.g,e,n)}function M(e,n,t=!1){return r.G.convexHull(i.g,e,n,t)}function y(e,n,t){return r.G.difference(i.g,e,n,t)}function w(e,n,t){return r.G.symmetricDifference(i.g,e,n,t)}function R(e,n,t){return r.G.intersect(i.g,e,n,t)}function P(e,n,t=null){return r.G.union(i.g,e,n,t)}function Z(e,n,t,o,s,c,u){return r.G.offset(i.g,e,n,t,o,s,c,u)}function z(e,n,t,o,s=!1){return r.G.buffer(i.g,e,n,t,o,s)}function E(e,n,t,o,s,c,u){return r.G.geodesicBuffer(i.g,e,n,t,o,s,c,u)}function S(e,n,t,o=!0){return r.G.nearestCoordinate(i.g,e,n,t,o)}function D(e,n,t){return r.G.nearestVertex(i.g,e,n,t)}function T(e,n,t,o,s){return r.G.nearestVertices(i.g,e,n,t,o,s)}function b(e,n,t,i){if(null==n||null==i)throw new Error("Illegal Argument Exception");const o=r.G.rotate(n,t,i);return o.spatialReference=e,o}function A(e,n,t){if(null==n||null==t)throw new Error("Illegal Argument Exception");const i=r.G.flipHorizontal(n,t);return i.spatialReference=e,i}function C(e,n,t){if(null==n||null==t)throw new Error("Illegal Argument Exception");const i=r.G.flipVertical(n,t);return i.spatialReference=e,i}function L(e,n,t,o,s){return r.G.generalize(i.g,e,n,t,o,s)}function I(e,n,t,o){return r.G.densify(i.g,e,n,t,o)}function V(e,n,t,o,s=0){return r.G.geodesicDensify(i.g,e,n,t,o,s)}function j(e,n,t){return r.G.planarArea(i.g,e,n,t)}function k(e,n,t){return r.G.planarLength(i.g,e,n,t)}function H(e,n,t,o){return r.G.geodesicArea(i.g,e,n,t,o)}function O(e,n,t,o){return r.G.geodesicLength(i.g,e,n,t,o)}function _(e,n,t){return null==n||null==t?[]:r.G.intersectLinesToPoints(i.g,e,n,t)}function q(e,n){r.G.changeDefaultSpatialReferenceTolerance(e,n)}function B(e){r.G.clearDefaultSpatialReferenceTolerance(e)}const X=Object.freeze(Object.defineProperty({__proto__:null,buffer:z,changeDefaultSpatialReferenceTolerance:q,clearDefaultSpatialReferenceTolerance:B,clip:s,contains:u,convexHull:M,crosses:a,cut:c,densify:I,difference:y,disjoint:G,distance:f,equals:l,extendedSpatialReferenceInfo:o,flipHorizontal:A,flipVertical:C,generalize:L,geodesicArea:H,geodesicBuffer:E,geodesicDensify:V,geodesicLength:O,intersect:R,intersectLinesToPoints:_,intersects:h,isSimple:x,nearestCoordinate:S,nearestVertex:D,nearestVertices:T,offset:Z,overlaps:d,planarArea:j,planarLength:k,relate:m,rotate:b,simplify:v,symmetricDifference:w,touches:g,union:P,within:p},Symbol.toStringTag,{value:"Module"}))},7320:(e,n,t)=>{t.d(n,{g:()=>r});const r={convertToGEGeometry:function(e,n){return null==n?null:e.convertJSONToGeometry(n)},exportPoint:function(e,n,t){const r=new i(e.getPointX(n),e.getPointY(n),t),o=e.hasZ(n),s=e.hasM(n);return o&&(r.z=e.getPointZ(n)),s&&(r.m=e.getPointM(n)),r},exportPolygon:function(e,n,t){return new o(e.exportPaths(n),t,e.hasZ(n),e.hasM(n))},exportPolyline:function(e,n,t){return new s(e.exportPaths(n),t,e.hasZ(n),e.hasM(n))},exportMultipoint:function(e,n,t){return new c(e.exportPoints(n),t,e.hasZ(n),e.hasM(n))},exportExtent:function(e,n,t){const r=e.hasZ(n),i=e.hasM(n),o=new u(e.getXMin(n),e.getYMin(n),e.getXMax(n),e.getYMax(n),t);if(r){const t=e.getZExtent(n);o.zmin=t.vmin,o.zmax=t.vmax}if(i){const t=e.getMExtent(n);o.mmin=t.vmin,o.mmax=t.vmax}return o}};class i{constructor(e,n,t){this.x=e,this.y=n,this.spatialReference=t,this.z=void 0,this.m=void 0}}class o{constructor(e,n,t,r){this.rings=e,this.spatialReference=n,this.hasZ=void 0,this.hasM=void 0,t&&(this.hasZ=t),r&&(this.hasM=r)}}class s{constructor(e,n,t,r){this.paths=e,this.spatialReference=n,this.hasZ=void 0,this.hasM=void 0,t&&(this.hasZ=t),r&&(this.hasM=r)}}class c{constructor(e,n,t,r){this.points=e,this.spatialReference=n,this.hasZ=void 0,this.hasM=void 0,t&&(this.hasZ=t),r&&(this.hasM=r)}}class u{constructor(e,n,t,r,i){this.xmin=e,this.ymin=n,this.xmax=t,this.ymax=r,this.spatialReference=i,this.zmin=void 0,this.zmax=void 0,this.mmin=void 0,this.mmax=void 0}}},68887:(e,n,t)=>{t.r(n),t.d(n,{executeGEOperation:()=>i});var r=t(3209);function i(e){return(0,r.g[e.operation])(...e.parameters)}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3813,8256],{4146:(t,e,r)=>{r.d(e,{A:()=>v});var i=r(90237),n=r(78888),s=r(49186),o=r(65529),l=r(4902),a=r(92474),u=r(53966),p=r(74887),c=r(84952),h=r(10107),d=(r(44208),r(87811),r(40608)),y=r(5443),m=r(16930),g=r(92602),f=r(79677);let b=0,_=class extends(o.A.EventedMixin(l.A.IdentifiableMixin(a.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+b++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:i}=await r.e(5613).then(r.bind(r,45613));try{return await i(e)}catch(t){const r=e?.portalItem,i=r?.id||"unset",n=r?.portal?.url||g.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,p.zf)(t)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(t,e){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,n.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,h.MZ)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,i._)([(0,h.MZ)({readOnly:!0})],_.prototype,"effectiveVisible",null),(0,i._)([(0,h.MZ)({type:y.A})],_.prototype,"fullExtent",void 0),(0,i._)([(0,h.MZ)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,i._)([(0,h.MZ)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,i._)([(0,h.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,i._)([(0,h.MZ)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,i._)([(0,h.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,i._)([(0,h.MZ)({clonable:!1})],_.prototype,"parent",void 0),(0,i._)([(0,h.MZ)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],_.prototype,"persistenceEnabled",void 0),(0,i._)([(0,h.MZ)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,i._)([(0,h.MZ)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,i._)([(0,h.MZ)({type:m.A})],_.prototype,"spatialReference",void 0),(0,i._)([(0,h.MZ)({type:String})],_.prototype,"title",void 0),(0,i._)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,i._)([(0,h.MZ)()],_.prototype,"url",void 0),(0,i._)([(0,h.MZ)({type:f.A})],_.prototype,"visibilityTimeExtent",void 0),(0,i._)([(0,h.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,i._)([(0,d.$)("esri.layers.Layer")],_);const v=_},4902:(t,e,r)=>{r.d(e,{A:()=>u});var i=r(90237),n=r(40608);let s=0;const o=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return e=(0,i._)([(0,n.$)("esri.core.Identifiable")],e),e};let l=class extends(o(class{})){};var a;l=(0,i._)([(0,n.$)("esri.core.Identifiable")],l),(a=l||(l={})).IdentifiableMixin=o,a.NumericIdentifiableMixin=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return e=(0,i._)([(0,n.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};const u=l},36708:(t,e,r)=>{r.d(e,{C_:()=>h,OH:()=>m,Vh:()=>g,on:()=>c,pc:()=>f,wB:()=>a,z7:()=>u});var i=r(37955),n=r(36563),s=r(97768),o=r(74887),l=r(14012);function a(t,e,r={}){return p(t,e,r,d)}function u(t,e,r={}){return p(t,e,r,y)}function p(t,e,r={},i){let n=null;const o=r.once?(t,r)=>{i(t)&&((0,s.xt)(n),e(t,r))}:(t,r)=>{i(t)&&e(t,r)};if(n=(0,l.Cn)(t,o,r.sync,r.equals),r.initial){const e=t();o(e,e)}return n}function c(t,e,r,o={}){let l=null,u=null,p=null;function c(){l&&u&&(u.remove(),o.onListenerRemove?.(l),l=null,u=null)}function h(t){o.once&&o.once&&(0,s.xt)(p),r(t)}const d=a(t,((t,r)=>{c(),(0,i.wb)(t)&&(l=t,u=(0,i.on)(t,e,h),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return p=(0,n.hA)((()=>{d.remove(),c()})),p}function h(t,e){return function(t,e,r){if((0,o.G4)(r))return Promise.reject((0,o.NK)());const i=t();if(e?.(i))return Promise.resolve(i);let l=null;function a(){l=(0,s.xt)(l)}return new Promise(((i,s)=>{l=(0,n.vE)([(0,o.u7)(r,(()=>{a(),s((0,o.NK)())})),p(t,(t=>{a(),i(t)}),{sync:!1,once:!0},e??d)])}))}(t,y,e)}function d(t){return!0}function y(t){return!!t}r(80559);const m={sync:!0},g={initial:!0},f={sync:!0,initial:!0}},45475:(t,e,r)=>{r.d(e,{A:()=>d});var i=r(90237),n=r(69622),s=r(4576),o=r(69540),l=r(4902),a=r(25482),u=r(10107),p=(r(44208),r(53966),r(40608));let c=0,h=class extends(a.A.JSONSupportMixin(o.A.ClonableMixin(l.A.IdentifiableMixin(n.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${c++}`,this.title=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":case"viewshed":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}get isEditable(){return this.requiredPropertiesForEditing.every(s.Ru)}};(0,i._)([(0,u.MZ)({type:String,constructOnly:!0,clonable:!1})],h.prototype,"id",void 0),(0,i._)([(0,u.MZ)({type:String})],h.prototype,"title",void 0),(0,i._)([(0,u.MZ)({clonable:!1,value:null})],h.prototype,"parent",null),(0,i._)([(0,u.MZ)({readOnly:!0})],h.prototype,"isEditable",null),h=(0,i._)([(0,p.$)("esri.analysis.Analysis")],h);const d=h},62885:(t,e,r)=>{r.d(e,{H:()=>s,V:()=>n});var i=r(5503);function n(t,e,r=i.A){return e||(e=new r),e===t||(e.removeAll(),(n=t)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?e.addMany(t):t&&e.add(t)),e;var n}function s(t){return t}},68197:(t,e,r)=>{r.d(e,{A:()=>c});var i,n,s=r(40876),o=r(34727),l=r(56507);function a(t){return(0,o.qE)((0,l.Vr)(t),0,255)}function u(t,e,r){return t=Number(t),isNaN(t)?r:t<e?e:t>r?r:t}function p(t,e){const r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}class c{static blendColors(t,e,r,i=new c){return i.r=Math.round(t.r+(e.r-t.r)*r),i.g=Math.round(t.g+(e.g-t.g)*r),i.b=Math.round(t.b+(e.b-t.b)*r),i.a=t.a+(e.a-t.a)*r,i._sanitize()}static fromRgb(t,e){const r=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(r){const t=r[2].split(/\s*,\s*/),i=r[1];if("rgb"===i&&3===t.length||"rgba"===i&&4===t.length){const r=t[0];if("%"===r.charAt(r.length-1)){const r=t.map((t=>2.56*parseFloat(t)));return 4===t.length&&(r[3]=parseFloat(t[3])),c.fromArray(r,e)}return c.fromArray(t.map((t=>parseFloat(t))),e)}if("hsl"===i&&3===t.length||"hsla"===i&&4===t.length)return c.fromArray((0,s.z$)(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])),e)}return null}static fromHex(t,e=new c){if("#"!==t[0]||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const r=parseInt(t.slice(1,2),16),i=parseInt(t.slice(2,3),16),n=parseInt(t.slice(3,4),16),s=5===t.length?15:parseInt(t.slice(4),16);return c.fromArray([r+16*r,i+16*i,n+16*n,(s+16*s)/255],e)}case 7:case 9:{const r=parseInt(t.slice(1,3),16),i=parseInt(t.slice(3,5),16),n=parseInt(t.slice(5,7),16),s=7===t.length?255:parseInt(t.slice(7),16);return c.fromArray([r,i,n,s/255],e)}default:return null}}static fromArray(t,e=new c){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const r=(0,s.V6)(t)?(0,s.TS)(t):null;return r&&c.fromArray(r,e)||c.fromRgb(t,e)||c.fromHex(t,e)}static fromJSON(t){return null!=t?new c([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?c.fromString(t,this):Array.isArray(t)?c.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof c||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,r=t?.digits??6,i=3===r||4===r,n=4===r||8===r,s=`#${p(this.r,i)}${p(this.g,i)}${p(this.b,i)}${n?p(Math.round(255*this.a),i):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=c.AlphaMode.ALWAYS){const e=a(this.r),r=a(this.g),i=a(this.b);return t===c.AlphaMode.ALWAYS||1!==this.a?[e,r,i,a(255*this.a)]:[e,r,i]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(t,e,r,i){this.r=t,this.g=e,this.b=r,this.a=i}}c.prototype.declaredClass="esri.Color",(n=(i=c).AlphaMode||(i.AlphaMode={}))[n.ALWAYS=0]="ALWAYS",n[n.UNLESS_OPAQUE=1]="UNLESS_OPAQUE"},69052:(t,e,r)=>{r.d(e,{ie:()=>l});var i=r(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,r=!1){return s(this.range,this.min,this.max,t,e,r)}clamp(t,e=0){return(0,i.qE)(t-e,this.min,this.max)+e}monotonic(t,e,r){return t<e?e:e+o(this.range,t-e,r)}minimalMonotonic(t,e,r){return s(this.range,t,t+this.range,e,r)}center(t,e,r){return e=this.monotonic(t,e,r),this.normalize((t+e)/2,r)}diff(t,e,r){return this.monotonic(t,e,r)-t}shortestSignedDiff(t,e){t=this.normalize(t);const r=(e=this.normalize(e))-t,i=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(r)<Math.abs(i)?r:i}contains(t,e,r){return e=this.minimalMonotonic(t,e),(r=this.minimalMonotonic(t,r))>t&&r<e}}function s(t,e,r,i,n=0,s=!1){return(i-=n)<e?i+=o(t,e-i):i>r&&(i-=o(t,i-r)),s&&i===r&&(i=e),i+n}function o(t,e,r=0){return Math.ceil((e-r)/t)*t+r}new n(0,2*Math.PI),new n(-Math.PI,Math.PI);const l=new n(0,360)},69540:(t,e,r)=>{r.d(e,{A:()=>h});var i=r(90237),n=r(69622),s=(r(44208),r(4718)),o=(r(53966),r(97768)),l=r(35666),a=r(88620),u=r(40608);const p=t=>{let e=class extends t{clone(){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const e=t.metadata,r=t.store,i={},n=new Map;for(const t in e){const o=e[t],a=r?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||a!==l.Gr.USER&&a!==l.Gr.DEFAULTS&&a!==l.Gr.WEB_MAP&&a!==l.Gr.WEB_SCENE)continue;const p=this[t];let c=null;c="function"==typeof u?u(p):"reference"===u?p:(0,s.TU)(p),null!=p&&null==c||(a===l.Gr.DEFAULTS?n.set(t,c):i[t]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(n.size){const t=(0,a.oY)(u)?.store;if(t)for(const[e,r]of n)t.set(e,r,l.Gr.DEFAULTS)}return u}};return e=(0,i._)([(0,u.$)("esri.core.Clonable")],e),e};let c=class extends(p(n.A)){};c=(0,i._)([(0,u.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=p;const h=c},71493:(t,e,r)=>{r.r(e),r.d(e,{default:()=>L});var i=r(90237),n=r(45475),s=r(68197),o=r(69540),l=r(25482),a=r(90629),u=r(10107),p=r(56507),c=(r(44208),r(87811),r(40608));let h=class extends(l.A.JSONSupportMixin(o.A)){constructor(t){super(t),this.type="simple",this.color=new s.A("black"),this.lineSize=2,this.fontSize=10,this.textColor=new s.A("black"),this.textBackgroundColor=new s.A([255,255,255,.6])}};(0,i._)([(0,u.MZ)({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],h.prototype,"type",void 0),(0,i._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],h.prototype,"color",void 0),(0,i._)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,range:{min:(0,a.PN)(1)},json:{write:{isRequired:!0}}})],h.prototype,"lineSize",void 0),(0,i._)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,json:{write:{isRequired:!0}}})],h.prototype,"fontSize",void 0),(0,i._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],h.prototype,"textColor",void 0),(0,i._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],h.prototype,"textBackgroundColor",void 0),h=(0,i._)([(0,c.$)("esri.analysis.DimensionSimpleStyle")],h);const d=h;var y;!function(t){t.Horizontal="horizontal",t.Vertical="vertical",t.Direct="direct"}(y||(y={}));const m=[y.Horizontal,y.Vertical,y.Direct];var g=r(69052),f=r(79901),b=r(86738);let _=class extends(l.A.JSONSupportMixin(o.A)){constructor(t){super(t),this.type="length",this.startPoint=null,this.endPoint=null,this.measureType=y.Direct,this.offset=0,this.orientation=0}};(0,i._)([(0,u.MZ)({type:["length"],json:{write:{isRequired:!0}}})],_.prototype,"type",void 0),(0,i._)([(0,u.MZ)({type:b.A,json:{write:{isRequired:!0}}})],_.prototype,"startPoint",void 0),(0,i._)([(0,u.MZ)({type:b.A,json:{write:{isRequired:!0}}})],_.prototype,"endPoint",void 0),(0,i._)([(0,u.MZ)({type:m,nonNullable:!0,json:{write:{isRequired:!0}}})],_.prototype,"measureType",void 0),(0,i._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],_.prototype,"offset",void 0),(0,i._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,f.w)((t=>g.ie.normalize((0,p.GB)(t),0,!0)))],_.prototype,"orientation",void 0),_=(0,i._)([(0,c.$)("esri.analysis.LengthDimension")],_);const v=_;var A=r(5503),M=r(62885),w=r(36708),S=(r(53966),r(5443)),O=r(57251);const x=A.A.ofType(v);let E=class extends n.A{constructor(t){super(t),this.type="dimension",this.style=new d,this.extent=null}initialize(){this.addHandles((0,w.wB)((()=>this._computeExtent()),(t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)}),w.pc))}get dimensions(){return this._get("dimensions")||new x}set dimensions(t){this._set("dimensions",(0,M.V)(t,this.dimensions,x))}get spatialReference(){for(const t of this.dimensions){if(null!=t.startPoint)return t.startPoint.spatialReference;if(null!=t.endPoint)return t.endPoint.spatialReference}return null}get requiredPropertiesForEditing(){return this.dimensions.reduce(((t,e)=>(t.push(e.startPoint,e.endPoint),t)),[])}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==t)return{pending:null,extent:null};const e=[];for(const t of this.dimensions)null!=t.startPoint&&e.push(t.startPoint),null!=t.endPoint&&e.push(t.endPoint);const r=(0,O.projectOrLoadMany)(e,t);if(null!=r.pending)return{pending:r.pending,extent:null};let i=null;return null!=r.geometries&&(i=r.geometries.reduce(((t,e)=>null==t?null!=e?S.A.fromPoint(e):null:null!=e?t.union(S.A.fromPoint(e)):t),null)),{pending:null,extent:i}}clear(){this.dimensions.removeAll()}};(0,i._)([(0,u.MZ)({type:["dimension"]})],E.prototype,"type",void 0),(0,i._)([(0,u.MZ)({cast:M.H,type:x,nonNullable:!0})],E.prototype,"dimensions",null),(0,i._)([(0,u.MZ)({readOnly:!0})],E.prototype,"spatialReference",null),(0,i._)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:d}},nonNullable:!0})],E.prototype,"style",void 0),(0,i._)([(0,u.MZ)({value:null,readOnly:!0})],E.prototype,"extent",void 0),(0,i._)([(0,u.MZ)({readOnly:!0})],E.prototype,"requiredPropertiesForEditing",null),E=(0,i._)([(0,c.$)("esri.analysis.DimensionAnalysis")],E);const N=E;var Z=r(92071),T=r(43937),P=r(4146),D=r(16131);let R=class extends((0,D.q)((0,Z.P)(P.A))){constructor(t){if(super(t),this.type="dimension",this.operationalLayerType="ArcGISDimensionLayer",this.source=new N,this.opacity=1,t){const{source:e,style:r}=t;e&&r&&(e.style=r)}}initialize(){this.addHandles([(0,w.wB)((()=>this.source),((t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)}),w.pc)])}async load(){return this.addResolvingPromise(this.source.waitComputeExtent()),this}get spatialReference(){return this.source.spatialReference}get style(){return this.source.style}set style(t){this.source.style=t}get fullExtent(){return this.source.extent}releaseAnalysis(t){this.source===t&&(this.source=new N)}get analysis(){return this.source}set analysis(t){this.source=t}get dimensions(){return this.source.dimensions}set dimensions(t){this.source.dimensions=t}writeDimensions(t,e,r,i){e.dimensions=t.filter((({startPoint:t,endPoint:e})=>null!=t&&null!=e)).map((t=>t.toJSON(i))).toJSON()}};(0,i._)([(0,u.MZ)({json:{read:!1},readOnly:!0})],R.prototype,"type",void 0),(0,i._)([(0,u.MZ)({type:["ArcGISDimensionLayer"]})],R.prototype,"operationalLayerType",void 0),(0,i._)([(0,u.MZ)({nonNullable:!0})],R.prototype,"source",void 0),(0,i._)([(0,u.MZ)({readOnly:!0})],R.prototype,"spatialReference",null),(0,i._)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:d}},json:{write:{ignoreOrigin:!0}}})],R.prototype,"style",null),(0,i._)([(0,u.MZ)({readOnly:!0})],R.prototype,"fullExtent",null),(0,i._)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],R.prototype,"opacity",void 0),(0,i._)([(0,u.MZ)({type:["show","hide"]})],R.prototype,"listMode",void 0),(0,i._)([(0,u.MZ)({type:A.A.ofType(v),json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{ignoreOrigin:!0}}}}})],R.prototype,"dimensions",null),(0,i._)([(0,T.K)("web-scene","dimensions")],R.prototype,"writeDimensions",null),R=(0,i._)([(0,c.$)("esri.layers.DimensionLayer")],R);const L=R},78553:(t,e,r)=>{r.d(e,{D:()=>s,p:()=>n});var i=r(56507);function n(t){const e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},79677:(t,e,r)=>{r.d(e,{A:()=>d});var i,n=r(90237),s=r(25482),o=r(88930),l=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),p=r(43937),c=r(98623);let h=class extends s.A{static{i=this}static get allTime(){return y}static get empty(){return m}static fromArray(t){return new i({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=t.start?.getTime()??t.start,n=t.end?.getTime()??t.end;return e===i&&r===n}expandTo(t,e=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.lL)(r,t,e));let n=this.end;if(n){const r=(0,o.lL)(n,t,e);n=n.getTime()===r.getTime()?r:(0,o.S1)(r,1,t,e)}return new i({start:r,end:n})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return i.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=t.start?.getTime()??-1/0,s=t.end?.getTime()??1/0;let o,l;return n>=e&&n<=r?o=n:e>=n&&e<=s&&(o=e),r>=n&&r<=s?l=r:s>=e&&s<=r&&(l=s),null==o||null==l||isNaN(o)||isNaN(l)?i.empty:new i({start:o===-1/0?null:new Date(o),end:l===1/0?null:new Date(l)})}offset(t,e,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:l}=this;return null!=s&&(n.start=(0,o.S1)(s,t,e,r)),null!=l&&(n.end=(0,o.S1)(l,t,e,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return y.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,r=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new i({start:e,end:r})}};(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,n._)([(0,a.w)("end")],h.prototype,"readEnd",null),(0,n._)([(0,p.K)("end")],h.prototype,"writeEnd",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,n._)([(0,a.w)("start")],h.prototype,"readStart",null),(0,n._)([(0,p.K)("start")],h.prototype,"writeStart",null),h=i=(0,n._)([(0,u.$)("esri.time.TimeExtent")],h);const d=h,y=new h,m=new h({start:void 0,end:void 0})},92071:(t,e,r)=>{r.d(e,{P:()=>_,L:()=>v});var i=r(90237),n=r(69622),s=r(76953),o=r(4718),l=r(35666);class a{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new a,r=this._originStores[l.Gr.DEFAULTS];r&&r.forEach(((t,r)=>{e.set(r,(0,o.o8)(t),l.Gr.DEFAULTS)}));for(let r=l.Gr.SERVICE;r<l.AU;r++){const i=this._originStores[r];i&&i.forEach(((i,n)=>{t&&t.has(n)||e.set(n,(0,o.o8)(i),r)}))}return e}get(t,e){const r=void 0===e?this._values:this._originStores[e];return r?r.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,r=l.Gr.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=r){const i=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,r),i!==e}return!1}delete(t,e=l.Gr.USER){const r=this._originStores[e];if(!r)return;const i=r.get(t);if(r.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let r=e-1;r>=0;r--){const e=this._originStores[r];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,r);break}}}return i}has(t,e){const r=void 0===e?this._values:this._originStores[e];return!!r&&r.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const r=this._originStores[e],i=r?.get(t),n=this._values.get(t);return this._values.set(t,i),this._propertyOriginMap.set(t,e),n!==i}originOf(t){return this._propertyOriginMap.get(t)||l.Gr.DEFAULTS}forEach(t){this._values.forEach(t)}}var u=r(45917),p=r(88620),c=r(40608);const h=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,p.oY)(this),r=e.store,i=new a;e.store=i,(0,s.k)(e,r,i)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const r=d(this),i=(0,l.aB)(e);if("string"==typeof t)return r.get(t,i);const n={};return t.forEach((t=>{n[t]=r.get(t,i)})),n}originOf(t){return(0,l.OL)(this.originIdOf(t))}originIdOf(t){return d(this).originOf(t)}revert(t,e){const r=d(this),i=(0,l.aB)(e),n=(0,p.oY)(this);let s;s="string"==typeof t?"*"===t?r.keys(i):[t]:t,s.forEach((t=>{n.invalidate(t),r.revert(t,i),n.commit(t)}))}};return e=(0,i._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function d(t){return(0,p.oY)(t).store}let y=class extends(h(n.A)){};y=(0,i._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var m=r(16649),g=r(49422);const f=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){return b(this).delete(t,(0,l.aB)(e))}write(t,e){return(0,g.M)(this,t=t||{},e),t}setAtOrigin(t,e,r){(0,p.oY)(this).setAtOrigin(t,e,(0,l.aB)(r))}removeOrigin(t){const e=b(this),r=(0,l.aB)(t),i=e.keys(r);for(const t of i)e.originOf(t)===r&&e.set(t,e.get(t,r),l.Gr.USER)}updateOrigin(t,e){const r=b(this),i=(0,l.aB)(e),n=(0,m.Jt)(this,t);for(let e=i+1;e<l.AU;++e)r.delete(t,e);r.set(t,n,i)}toJSON(t){return this.write({},t)}};return e=(0,i._)([(0,c.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function b(t){return(0,p.oY)(t).store}const _=t=>{let e=class extends(f(h(t))){constructor(...t){super(...t)}};return e=(0,i._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],e),e};let v=class extends(_(n.A)){};v=(0,i._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],v)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3813,8256],{4146:(t,e,r)=>{r.d(e,{A:()=>v});var i=r(90237),n=r(78888),s=r(49186),o=r(65529),l=r(4902),a=r(92474),u=r(53966),p=r(74887),c=r(84952),h=r(10107),d=(r(44208),r(87811),r(40608)),y=r(5443),m=r(16930),g=r(92602),f=r(79677);let b=0,_=class extends(o.A.EventedMixin(l.A.IdentifiableMixin(a.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+b++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await r.e(7982).then(r.bind(r,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:i}=await r.e(5613).then(r.bind(r,45613));try{return await i(e)}catch(t){const r=e?.portalItem,i=r?.id||"unset",n=r?.portal?.url||g.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+i+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,p.zf)(t)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(t,e){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,n.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,h.MZ)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,i._)([(0,h.MZ)({readOnly:!0})],_.prototype,"effectiveVisible",null),(0,i._)([(0,h.MZ)({type:y.A})],_.prototype,"fullExtent",void 0),(0,i._)([(0,h.MZ)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,i._)([(0,h.MZ)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,i._)([(0,h.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,i._)([(0,h.MZ)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,i._)([(0,h.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,i._)([(0,h.MZ)({clonable:!1})],_.prototype,"parent",void 0),(0,i._)([(0,h.MZ)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,i._)([(0,h.MZ)({type:Boolean,readOnly:!0})],_.prototype,"persistenceEnabled",void 0),(0,i._)([(0,h.MZ)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,i._)([(0,h.MZ)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,i._)([(0,h.MZ)({type:m.A})],_.prototype,"spatialReference",void 0),(0,i._)([(0,h.MZ)({type:String})],_.prototype,"title",void 0),(0,i._)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,i._)([(0,h.MZ)()],_.prototype,"url",void 0),(0,i._)([(0,h.MZ)({type:f.A})],_.prototype,"visibilityTimeExtent",void 0),(0,i._)([(0,h.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,i._)([(0,d.$)("esri.layers.Layer")],_);const v=_},4902:(t,e,r)=>{r.d(e,{A:()=>u});var i=r(90237),n=r(40608);let s=0;const o=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return e=(0,i._)([(0,n.$)("esri.core.Identifiable")],e),e};let l=class extends(o(class{})){};var a;l=(0,i._)([(0,n.$)("esri.core.Identifiable")],l),(a=l||(l={})).IdentifiableMixin=o,a.NumericIdentifiableMixin=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return e=(0,i._)([(0,n.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};const u=l},36708:(t,e,r)=>{r.d(e,{C_:()=>h,OH:()=>m,Vh:()=>g,on:()=>c,pc:()=>f,wB:()=>a,z7:()=>u});var i=r(37955),n=r(36563),s=r(97768),o=r(74887),l=r(14012);function a(t,e,r={}){return p(t,e,r,d)}function u(t,e,r={}){return p(t,e,r,y)}function p(t,e,r={},i){let n=null;const o=r.once?(t,r)=>{i(t)&&((0,s.xt)(n),e(t,r))}:(t,r)=>{i(t)&&e(t,r)};if(n=(0,l.Cn)(t,o,r.sync,r.equals),r.initial){const e=t();o(e,e)}return n}function c(t,e,r,o={}){let l=null,u=null,p=null;function c(){l&&u&&(u.remove(),o.onListenerRemove?.(l),l=null,u=null)}function h(t){o.once&&o.once&&(0,s.xt)(p),r(t)}const d=a(t,((t,r)=>{c(),(0,i.wb)(t)&&(l=t,u=(0,i.on)(t,e,h),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return p=(0,n.hA)((()=>{d.remove(),c()})),p}function h(t,e){return function(t,e,r){if((0,o.G4)(r))return Promise.reject((0,o.NK)());const i=t();if(e?.(i))return Promise.resolve(i);let l=null;function a(){l=(0,s.xt)(l)}return new Promise(((i,s)=>{l=(0,n.vE)([(0,o.u7)(r,(()=>{a(),s((0,o.NK)())})),p(t,(t=>{a(),i(t)}),{sync:!1,once:!0},e??d)])}))}(t,y,e)}function d(t){return!0}function y(t){return!!t}r(80559);const m={sync:!0},g={initial:!0},f={sync:!0,initial:!0}},45475:(t,e,r)=>{r.d(e,{A:()=>d});var i=r(90237),n=r(69622),s=r(4576),o=r(69540),l=r(4902),a=r(25482),u=r(10107),p=(r(44208),r(53966),r(40608));let c=0,h=class extends(a.A.JSONSupportMixin(o.A.ClonableMixin(l.A.IdentifiableMixin(n.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${c++}`,this.title=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":case"viewshed":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}get isEditable(){return this.requiredPropertiesForEditing.every(s.Ru)}};(0,i._)([(0,u.MZ)({type:String,constructOnly:!0,clonable:!1})],h.prototype,"id",void 0),(0,i._)([(0,u.MZ)({type:String})],h.prototype,"title",void 0),(0,i._)([(0,u.MZ)({clonable:!1,value:null})],h.prototype,"parent",null),(0,i._)([(0,u.MZ)({readOnly:!0})],h.prototype,"isEditable",null),h=(0,i._)([(0,p.$)("esri.analysis.Analysis")],h);const d=h},62885:(t,e,r)=>{r.d(e,{H:()=>s,V:()=>n});var i=r(5503);function n(t,e,r=i.A){return e||(e=new r),e===t||(e.removeAll(),(n=t)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?e.addMany(t):t&&e.add(t)),e;var n}function s(t){return t}},68197:(t,e,r)=>{r.d(e,{A:()=>c});var i,n,s=r(40876),o=r(34727),l=r(56507);function a(t){return(0,o.qE)((0,l.Vr)(t),0,255)}function u(t,e,r){return t=Number(t),isNaN(t)?r:t<e?e:t>r?r:t}function p(t,e){const r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}class c{static blendColors(t,e,r,i=new c){return i.r=Math.round(t.r+(e.r-t.r)*r),i.g=Math.round(t.g+(e.g-t.g)*r),i.b=Math.round(t.b+(e.b-t.b)*r),i.a=t.a+(e.a-t.a)*r,i._sanitize()}static fromRgb(t,e){const r=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(r){const t=r[2].split(/\s*,\s*/),i=r[1];if("rgb"===i&&3===t.length||"rgba"===i&&4===t.length){const r=t[0];if("%"===r.charAt(r.length-1)){const r=t.map((t=>2.56*parseFloat(t)));return 4===t.length&&(r[3]=parseFloat(t[3])),c.fromArray(r,e)}return c.fromArray(t.map((t=>parseFloat(t))),e)}if("hsl"===i&&3===t.length||"hsla"===i&&4===t.length)return c.fromArray((0,s.z$)(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])),e)}return null}static fromHex(t,e=new c){if("#"!==t[0]||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{const r=parseInt(t.slice(1,2),16),i=parseInt(t.slice(2,3),16),n=parseInt(t.slice(3,4),16),s=5===t.length?15:parseInt(t.slice(4),16);return c.fromArray([r+16*r,i+16*i,n+16*n,(s+16*s)/255],e)}case 7:case 9:{const r=parseInt(t.slice(1,3),16),i=parseInt(t.slice(3,5),16),n=parseInt(t.slice(5,7),16),s=7===t.length?255:parseInt(t.slice(7),16);return c.fromArray([r,i,n,s/255],e)}default:return null}}static fromArray(t,e=new c){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const r=(0,s.V6)(t)?(0,s.TS)(t):null;return r&&c.fromArray(r,e)||c.fromRgb(t,e)||c.fromHex(t,e)}static fromJSON(t){return null!=t?new c([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?c.fromString(t,this):Array.isArray(t)?c.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof c||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,r=t?.digits??6,i=3===r||4===r,n=4===r||8===r,s=`#${p(this.r,i)}${p(this.g,i)}${p(this.b,i)}${n?p(Math.round(255*this.a),i):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=c.AlphaMode.ALWAYS){const e=a(this.r),r=a(this.g),i=a(this.b);return t===c.AlphaMode.ALWAYS||1!==this.a?[e,r,i,a(255*this.a)]:[e,r,i]}clone(){return new c(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=Math.round(u(this.r,0,255)),this.g=Math.round(u(this.g,0,255)),this.b=Math.round(u(this.b,0,255)),this.a=u(this.a,0,1),this}_set(t,e,r,i){this.r=t,this.g=e,this.b=r,this.a=i}}c.prototype.declaredClass="esri.Color",(n=(i=c).AlphaMode||(i.AlphaMode={}))[n.ALWAYS=0]="ALWAYS",n[n.UNLESS_OPAQUE=1]="UNLESS_OPAQUE"},69052:(t,e,r)=>{r.d(e,{ie:()=>l});var i=r(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,r=!1){return s(this.range,this.min,this.max,t,e,r)}clamp(t,e=0){return(0,i.qE)(t-e,this.min,this.max)+e}monotonic(t,e,r){return t<e?e:e+o(this.range,t-e,r)}minimalMonotonic(t,e,r){return s(this.range,t,t+this.range,e,r)}center(t,e,r){return e=this.monotonic(t,e,r),this.normalize((t+e)/2,r)}diff(t,e,r){return this.monotonic(t,e,r)-t}shortestSignedDiff(t,e){t=this.normalize(t);const r=(e=this.normalize(e))-t,i=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(r)<Math.abs(i)?r:i}contains(t,e,r){return e=this.minimalMonotonic(t,e),(r=this.minimalMonotonic(t,r))>t&&r<e}}function s(t,e,r,i,n=0,s=!1){return(i-=n)<e?i+=o(t,e-i):i>r&&(i-=o(t,i-r)),s&&i===r&&(i=e),i+n}function o(t,e,r=0){return Math.ceil((e-r)/t)*t+r}new n(0,2*Math.PI),new n(-Math.PI,Math.PI);const l=new n(0,360)},69540:(t,e,r)=>{r.d(e,{A:()=>h});var i=r(90237),n=r(69622),s=(r(44208),r(4718)),o=(r(53966),r(97768)),l=r(35666),a=r(88620),u=r(40608);const p=t=>{let e=class extends t{clone(){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const e=t.metadata,r=t.store,i={},n=new Map;for(const t in e){const o=e[t],a=r?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||a!==l.Gr.USER&&a!==l.Gr.DEFAULTS&&a!==l.Gr.WEB_MAP&&a!==l.Gr.WEB_SCENE)continue;const p=this[t];let c=null;c="function"==typeof u?u(p):"reference"===u?p:(0,s.TU)(p),null!=p&&null==c||(a===l.Gr.DEFAULTS?n.set(t,c):i[t]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(n.size){const t=(0,a.oY)(u)?.store;if(t)for(const[e,r]of n)t.set(e,r,l.Gr.DEFAULTS)}return u}};return e=(0,i._)([(0,u.$)("esri.core.Clonable")],e),e};let c=class extends(p(n.A)){};c=(0,i._)([(0,u.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=p;const h=c},71493:(t,e,r)=>{r.r(e),r.d(e,{default:()=>L});var i=r(90237),n=r(45475),s=r(68197),o=r(69540),l=r(25482),a=r(90629),u=r(10107),p=r(56507),c=(r(44208),r(87811),r(40608));let h=class extends(l.A.JSONSupportMixin(o.A)){constructor(t){super(t),this.type="simple",this.color=new s.A("black"),this.lineSize=2,this.fontSize=10,this.textColor=new s.A("black"),this.textBackgroundColor=new s.A([255,255,255,.6])}};(0,i._)([(0,u.MZ)({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],h.prototype,"type",void 0),(0,i._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],h.prototype,"color",void 0),(0,i._)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,range:{min:(0,a.PN)(1)},json:{write:{isRequired:!0}}})],h.prototype,"lineSize",void 0),(0,i._)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,json:{write:{isRequired:!0}}})],h.prototype,"fontSize",void 0),(0,i._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],h.prototype,"textColor",void 0),(0,i._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],h.prototype,"textBackgroundColor",void 0),h=(0,i._)([(0,c.$)("esri.analysis.DimensionSimpleStyle")],h);const d=h;var y;!function(t){t.Horizontal="horizontal",t.Vertical="vertical",t.Direct="direct"}(y||(y={}));const m=[y.Horizontal,y.Vertical,y.Direct];var g=r(69052),f=r(79901),b=r(86738);let _=class extends(l.A.JSONSupportMixin(o.A)){constructor(t){super(t),this.type="length",this.startPoint=null,this.endPoint=null,this.measureType=y.Direct,this.offset=0,this.orientation=0}};(0,i._)([(0,u.MZ)({type:["length"],json:{write:{isRequired:!0}}})],_.prototype,"type",void 0),(0,i._)([(0,u.MZ)({type:b.A,json:{write:{isRequired:!0}}})],_.prototype,"startPoint",void 0),(0,i._)([(0,u.MZ)({type:b.A,json:{write:{isRequired:!0}}})],_.prototype,"endPoint",void 0),(0,i._)([(0,u.MZ)({type:m,nonNullable:!0,json:{write:{isRequired:!0}}})],_.prototype,"measureType",void 0),(0,i._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],_.prototype,"offset",void 0),(0,i._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,f.w)((t=>g.ie.normalize((0,p.GB)(t),0,!0)))],_.prototype,"orientation",void 0),_=(0,i._)([(0,c.$)("esri.analysis.LengthDimension")],_);const v=_;var A=r(5503),M=r(62885),w=r(36708),S=(r(53966),r(5443)),O=r(80586);const x=A.A.ofType(v);let E=class extends n.A{constructor(t){super(t),this.type="dimension",this.style=new d,this.extent=null}initialize(){this.addHandles((0,w.wB)((()=>this._computeExtent()),(t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)}),w.pc))}get dimensions(){return this._get("dimensions")||new x}set dimensions(t){this._set("dimensions",(0,M.V)(t,this.dimensions,x))}get spatialReference(){for(const t of this.dimensions){if(null!=t.startPoint)return t.startPoint.spatialReference;if(null!=t.endPoint)return t.endPoint.spatialReference}return null}get requiredPropertiesForEditing(){return this.dimensions.reduce(((t,e)=>(t.push(e.startPoint,e.endPoint),t)),[])}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==t)return{pending:null,extent:null};const e=[];for(const t of this.dimensions)null!=t.startPoint&&e.push(t.startPoint),null!=t.endPoint&&e.push(t.endPoint);const r=(0,O.projectOrLoadMany)(e,t);if(null!=r.pending)return{pending:r.pending,extent:null};let i=null;return null!=r.geometries&&(i=r.geometries.reduce(((t,e)=>null==t?null!=e?S.A.fromPoint(e):null:null!=e?t.union(S.A.fromPoint(e)):t),null)),{pending:null,extent:i}}clear(){this.dimensions.removeAll()}};(0,i._)([(0,u.MZ)({type:["dimension"]})],E.prototype,"type",void 0),(0,i._)([(0,u.MZ)({cast:M.H,type:x,nonNullable:!0})],E.prototype,"dimensions",null),(0,i._)([(0,u.MZ)({readOnly:!0})],E.prototype,"spatialReference",null),(0,i._)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:d}},nonNullable:!0})],E.prototype,"style",void 0),(0,i._)([(0,u.MZ)({value:null,readOnly:!0})],E.prototype,"extent",void 0),(0,i._)([(0,u.MZ)({readOnly:!0})],E.prototype,"requiredPropertiesForEditing",null),E=(0,i._)([(0,c.$)("esri.analysis.DimensionAnalysis")],E);const N=E;var Z=r(92071),T=r(43937),P=r(4146),D=r(16131);let R=class extends((0,D.q)((0,Z.P)(P.A))){constructor(t){if(super(t),this.type="dimension",this.operationalLayerType="ArcGISDimensionLayer",this.source=new N,this.opacity=1,t){const{source:e,style:r}=t;e&&r&&(e.style=r)}}initialize(){this.addHandles([(0,w.wB)((()=>this.source),((t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)}),w.pc)])}async load(){return this.addResolvingPromise(this.source.waitComputeExtent()),this}get spatialReference(){return this.source.spatialReference}get style(){return this.source.style}set style(t){this.source.style=t}get fullExtent(){return this.source.extent}releaseAnalysis(t){this.source===t&&(this.source=new N)}get analysis(){return this.source}set analysis(t){this.source=t}get dimensions(){return this.source.dimensions}set dimensions(t){this.source.dimensions=t}writeDimensions(t,e,r,i){e.dimensions=t.filter((({startPoint:t,endPoint:e})=>null!=t&&null!=e)).map((t=>t.toJSON(i))).toJSON()}};(0,i._)([(0,u.MZ)({json:{read:!1},readOnly:!0})],R.prototype,"type",void 0),(0,i._)([(0,u.MZ)({type:["ArcGISDimensionLayer"]})],R.prototype,"operationalLayerType",void 0),(0,i._)([(0,u.MZ)({nonNullable:!0})],R.prototype,"source",void 0),(0,i._)([(0,u.MZ)({readOnly:!0})],R.prototype,"spatialReference",null),(0,i._)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:d}},json:{write:{ignoreOrigin:!0}}})],R.prototype,"style",null),(0,i._)([(0,u.MZ)({readOnly:!0})],R.prototype,"fullExtent",null),(0,i._)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],R.prototype,"opacity",void 0),(0,i._)([(0,u.MZ)({type:["show","hide"]})],R.prototype,"listMode",void 0),(0,i._)([(0,u.MZ)({type:A.A.ofType(v),json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{ignoreOrigin:!0}}}}})],R.prototype,"dimensions",null),(0,i._)([(0,T.K)("web-scene","dimensions")],R.prototype,"writeDimensions",null),R=(0,i._)([(0,c.$)("esri.layers.DimensionLayer")],R);const L=R},78553:(t,e,r)=>{r.d(e,{D:()=>s,p:()=>n});var i=r(56507);function n(t){const e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},79677:(t,e,r)=>{r.d(e,{A:()=>d});var i,n=r(90237),s=r(25482),o=r(88930),l=r(10107),a=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),p=r(43937),c=r(98623);let h=class extends s.A{static{i=this}static get allTime(){return y}static get empty(){return m}static fromArray(t){return new i({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=t.start?.getTime()??t.start,n=t.end?.getTime()??t.end;return e===i&&r===n}expandTo(t,e=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.lL)(r,t,e));let n=this.end;if(n){const r=(0,o.lL)(n,t,e);n=n.getTime()===r.getTime()?r:(0,o.S1)(r,1,t,e)}return new i({start:r,end:n})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return i.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=t.start?.getTime()??-1/0,s=t.end?.getTime()??1/0;let o,l;return n>=e&&n<=r?o=n:e>=n&&e<=s&&(o=e),r>=n&&r<=s?l=r:s>=e&&s<=r&&(l=s),null==o||null==l||isNaN(o)||isNaN(l)?i.empty:new i({start:o===-1/0?null:new Date(o),end:l===1/0?null:new Date(l)})}offset(t,e,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new i,{start:s,end:l}=this;return null!=s&&(n.start=(0,o.S1)(s,t,e,r)),null!=l&&(n.end=(0,o.S1)(l,t,e,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return y.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,r=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new i({start:e,end:r})}};(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,n._)([(0,a.w)("end")],h.prototype,"readEnd",null),(0,n._)([(0,p.K)("end")],h.prototype,"writeEnd",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,n._)([(0,a.w)("start")],h.prototype,"readStart",null),(0,n._)([(0,p.K)("start")],h.prototype,"writeStart",null),h=i=(0,n._)([(0,u.$)("esri.time.TimeExtent")],h);const d=h,y=new h,m=new h({start:void 0,end:void 0})},92071:(t,e,r)=>{r.d(e,{P:()=>_,L:()=>v});var i=r(90237),n=r(69622),s=r(76953),o=r(4718),l=r(35666);class a{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new a,r=this._originStores[l.Gr.DEFAULTS];r&&r.forEach(((t,r)=>{e.set(r,(0,o.o8)(t),l.Gr.DEFAULTS)}));for(let r=l.Gr.SERVICE;r<l.AU;r++){const i=this._originStores[r];i&&i.forEach(((i,n)=>{t&&t.has(n)||e.set(n,(0,o.o8)(i),r)}))}return e}get(t,e){const r=void 0===e?this._values:this._originStores[e];return r?r.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,r=l.Gr.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=r){const i=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,r),i!==e}return!1}delete(t,e=l.Gr.USER){const r=this._originStores[e];if(!r)return;const i=r.get(t);if(r.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let r=e-1;r>=0;r--){const e=this._originStores[r];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,r);break}}}return i}has(t,e){const r=void 0===e?this._values:this._originStores[e];return!!r&&r.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const r=this._originStores[e],i=r?.get(t),n=this._values.get(t);return this._values.set(t,i),this._propertyOriginMap.set(t,e),n!==i}originOf(t){return this._propertyOriginMap.get(t)||l.Gr.DEFAULTS}forEach(t){this._values.forEach(t)}}var u=r(45917),p=r(88620),c=r(40608);const h=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,p.oY)(this),r=e.store,i=new a;e.store=i,(0,s.k)(e,r,i)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const r=d(this),i=(0,l.aB)(e);if("string"==typeof t)return r.get(t,i);const n={};return t.forEach((t=>{n[t]=r.get(t,i)})),n}originOf(t){return(0,l.OL)(this.originIdOf(t))}originIdOf(t){return d(this).originOf(t)}revert(t,e){const r=d(this),i=(0,l.aB)(e),n=(0,p.oY)(this);let s;s="string"==typeof t?"*"===t?r.keys(i):[t]:t,s.forEach((t=>{n.invalidate(t),r.revert(t,i),n.commit(t)}))}};return e=(0,i._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function d(t){return(0,p.oY)(t).store}let y=class extends(h(n.A)){};y=(0,i._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var m=r(16649),g=r(49422);const f=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){return b(this).delete(t,(0,l.aB)(e))}write(t,e){return(0,g.M)(this,t=t||{},e),t}setAtOrigin(t,e,r){(0,p.oY)(this).setAtOrigin(t,e,(0,l.aB)(r))}removeOrigin(t){const e=b(this),r=(0,l.aB)(t),i=e.keys(r);for(const t of i)e.originOf(t)===r&&e.set(t,e.get(t,r),l.Gr.USER)}updateOrigin(t,e){const r=b(this),i=(0,l.aB)(e),n=(0,m.Jt)(this,t);for(let e=i+1;e<l.AU;++e)r.delete(t,e);r.set(t,n,i)}toJSON(t){return this.write({},t)}};return e=(0,i._)([(0,c.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function b(t){return(0,p.oY)(t).store}const _=t=>{let e=class extends(f(h(t))){constructor(...t){super(...t)}};return e=(0,i._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],e),e};let v=class extends(_(n.A)){};v=(0,i._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],v)}}]);