@arcgis/core 4.28.0-next.20230819 → 4.28.0-next.20230821

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 (169) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/003744a45b07865f1be9.js +1 -0
  3. package/assets/esri/core/workers/chunks/034accc7cab6c88a3b31.js +1 -0
  4. package/assets/esri/core/workers/chunks/{a67e5b22adc91e850b4e.js → 05ab09713d599687afa3.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{3724f23b6f5ac8ec2568.js → 12b8fe0374fa9ab4ca09.js} +1 -1
  6. package/assets/esri/core/workers/chunks/16d1a72014074e87ecb9.js +1 -0
  7. package/assets/esri/core/workers/chunks/{e4b6565c16430b28ad93.js → 19857e5420cdf23c5f2e.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{1a804dea42c0fb5e5c07.js → 1bab408eaffd2c18976d.js} +1 -1
  9. package/assets/esri/core/workers/chunks/201365f53509e3f78e17.js +1 -0
  10. package/assets/esri/core/workers/chunks/{2031451b82ff70fb201a.js → 2f48f4a9a0a056ac5e1c.js} +1 -1
  11. package/assets/esri/core/workers/chunks/318b51fdee09c1fd750f.js +1 -0
  12. package/assets/esri/core/workers/chunks/{5b799dc155adeb728c74.js → 3361e3e8385f8de8820c.js} +1 -1
  13. package/assets/esri/core/workers/chunks/3ce1870c28ab6ac3648e.js +1 -0
  14. package/assets/esri/core/workers/chunks/41929e4531787389804b.js +1 -0
  15. package/assets/esri/core/workers/chunks/{55ac725127c5ea9fb942.js → 4e39252f40bc57be9d12.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{8ed83426ef88a3eccecd.js → 4e496b03ce24b1206f86.js} +1 -1
  17. package/assets/esri/core/workers/chunks/54513578f735d274a20e.js +1 -0
  18. package/assets/esri/core/workers/chunks/{d46f8ef92e79d12384c9.js → 587437526ea77f764986.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{ab720e2f0a35138564b2.js → 5ffabd1a90c5b08109aa.js} +1 -1
  20. package/assets/esri/core/workers/chunks/6108d72faf48a592c8ba.js +1 -0
  21. package/assets/esri/core/workers/chunks/6479439afae01f9bb5e6.js +1 -0
  22. package/assets/esri/core/workers/chunks/69306dfc89e877539223.js +1 -0
  23. package/assets/esri/core/workers/chunks/{ed499c328ae3a704791c.js → 6db4a6f9d25691830829.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{61393fd3376ea599a447.js → 76e27cece1559ae815df.js} +1 -1
  25. package/assets/esri/core/workers/chunks/81526909c0fa11639038.js +1 -0
  26. package/assets/esri/core/workers/chunks/873111ddf4813cdd4903.js +1 -0
  27. package/assets/esri/core/workers/chunks/8d4f1170394a8be15da9.js +1 -0
  28. package/assets/esri/core/workers/chunks/8d8bdfda09c24e363f78.js +1 -0
  29. package/assets/esri/core/workers/chunks/9b54b5bdb6367c36f6e9.js +1 -0
  30. package/assets/esri/core/workers/chunks/{88f0b5c0fe751bf35af2.js → b2752e038c5fa3c21e49.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{dd3b7cfc6f78552249a4.js → b78dc6cbe14e5817b4d9.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{e31d0c7363cbceeb5ac9.js → c35b850fbfcb28133235.js} +1 -1
  33. package/assets/esri/core/workers/chunks/c83e1be4ee64320cf2fe.js +1 -0
  34. package/assets/esri/core/workers/chunks/c88869d2a647c22dc3e6.js +1 -0
  35. package/assets/esri/core/workers/chunks/cb0a5bc6deaa98026bb5.js +1 -0
  36. package/assets/esri/core/workers/chunks/{767467738aeabec14abd.js → d0c4367a197b193e95d4.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{f113141e254505116b82.js → d1cc2c050423595e54e0.js} +1 -1
  38. package/assets/esri/core/workers/chunks/{7f34945036495ad7c3f8.js → d2a8bf2d090b94cb294b.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{08af7f7f1950a59a8e47.js → d6c96a20e9640b433719.js} +4 -4
  40. package/assets/esri/core/workers/chunks/da5453e67d00ff546640.js +1 -0
  41. package/assets/esri/core/workers/chunks/daa79c14150c12d8bc3d.js +1 -0
  42. package/assets/esri/core/workers/chunks/ef03b78659c72de93076.js +1 -0
  43. package/assets/esri/core/workers/chunks/{c3cace5b25b5170228ba.js → f2fe89b6ac6bf6817e71.js} +1 -1
  44. package/assets/esri/core/workers/chunks/f3554627664a419e00fa.js +1 -0
  45. package/assets/esri/themes/base/widgets/_Editor.scss +65 -4
  46. package/assets/esri/themes/base/widgets/_UtilityNetworkAssociations.scss +97 -39
  47. package/assets/esri/themes/dark/main.css +1 -1
  48. package/assets/esri/themes/light/main.css +1 -1
  49. package/assets/esri/themes/light/view.css +1 -1
  50. package/assets/esri/widgets/Editor/t9n/Editor.json +1 -1
  51. package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
  52. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-caps/butt.png +0 -0
  53. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-caps/round.png +0 -0
  54. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-caps/square.png +0 -0
  55. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/dash-dot.png +0 -0
  56. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/dash.png +0 -0
  57. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/dot.png +0 -0
  58. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/long-dash-dot-dot.png +0 -0
  59. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/long-dash-dot.png +0 -0
  60. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/long-dash.png +0 -0
  61. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/short-dash-dot-dot.png +0 -0
  62. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/short-dash-dot.png +0 -0
  63. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/short-dash.png +0 -0
  64. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/short-dot.png +0 -0
  65. package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/solid.png +0 -0
  66. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations.json +1 -1
  67. package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_en.json +1 -1
  68. package/chunks/HighlightBlur.glsl.js +3 -3
  69. package/chunks/HighlightDownsample.glsl.js +24 -6
  70. package/chunks/SSAO.glsl.js +2 -2
  71. package/core/timeUtils.js +1 -1
  72. package/intl/date.js +1 -1
  73. package/layers/FeatureLayer.js +1 -1
  74. package/layers/ImageryLayer.js +1 -1
  75. package/layers/ImageryTileLayer.js +1 -1
  76. package/layers/StreamLayer.js +1 -1
  77. package/layers/SubtypeGroupLayer.js +1 -1
  78. package/layers/VoxelWasmPerSceneView.js +1 -1
  79. package/layers/graphics/sources/support/uploads.js +1 -1
  80. package/layers/save/featureLayerUtils.js +1 -1
  81. package/layers/save/imageryUtils.js +1 -1
  82. package/layers/save/streamLayerUtils.js +1 -1
  83. package/package.json +1 -1
  84. package/popup/support/FieldInfoFormat.js +1 -1
  85. package/support/revision.js +1 -1
  86. package/views/3d/environment/EnvironmentRenderer.js +1 -1
  87. package/views/3d/externalRenderers/ExternalRendererStore.js +1 -1
  88. package/views/3d/layers/i3s/PointRenderer.js +1 -1
  89. package/views/3d/support/LaserLineRenderer.js +1 -1
  90. package/views/3d/terrain/OverlayRenderer.js +1 -1
  91. package/views/3d/terrain/TerrainRenderer.js +1 -1
  92. package/views/3d/terrain/TerrainSurface.js +1 -1
  93. package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
  94. package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
  95. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  96. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  97. package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
  98. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  99. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  100. package/views/3d/webgl-engine/lib/GLMaterialRepository.js +1 -1
  101. package/views/3d/webgl-engine/lib/GLMaterials.js +1 -1
  102. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  103. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  104. package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
  105. package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
  106. package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
  107. package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
  108. package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
  109. package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
  110. package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
  111. package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
  112. package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
  113. package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
  114. package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
  115. package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
  116. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  117. package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
  118. package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
  119. package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
  120. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  121. package/views/3d/webgl-engine/shaders/HighlightDownsample.glsl.js +1 -1
  122. package/views/draw/DrawGraphicTool.js +1 -1
  123. package/views/draw/DrawOperation.js +1 -1
  124. package/views/interactive/sketch/constraints.js +1 -1
  125. package/views/interactive/sketch/normalizedPoint.js +1 -1
  126. package/views/interactive/snapping/SnappingManager.js +1 -1
  127. package/views/interactive/snapping/candidates/IntersectionSnappingCandidate.js +1 -1
  128. package/views/interactive/tooltip/TooltipEditableField.js +1 -1
  129. package/views/interactive/tooltip/TooltipEditableFieldAngle.js +1 -1
  130. package/views/interactive/tooltip/constraintUtils.js +5 -0
  131. package/views/support/angularMeasurementUtils.js +1 -1
  132. package/widgets/Editor/EditorViewModel.js +1 -1
  133. package/widgets/Editor/Upload.js +1 -1
  134. package/widgets/Editor/components/CreateFeaturesPanelContent.js +1 -1
  135. package/widgets/Editor/components/UploadDetails.js +1 -1
  136. package/widgets/Editor/modelUploadUtils.js +1 -1
  137. package/widgets/Editor.js +1 -1
  138. package/widgets/ElevationProfile/support/chartUtils.js +1 -1
  139. package/widgets/ElevationProfile.js +1 -1
  140. package/widgets/Feature/FeatureViewModel.js +1 -1
  141. package/widgets/Feature/support/featureUtils.js +1 -1
  142. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsLineSymbolPicker.js +5 -0
  143. package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  144. package/widgets/UtilityNetworkAssociations/VisibleElements.js +5 -0
  145. package/widgets/UtilityNetworkAssociations/VisibleElementsSettingsPane.js +5 -0
  146. package/widgets/UtilityNetworkAssociations.js +1 -1
  147. package/assets/esri/core/workers/chunks/11abbbf97093b55e2417.js +0 -1
  148. package/assets/esri/core/workers/chunks/1b2a081f2c3b97ba7e00.js +0 -1
  149. package/assets/esri/core/workers/chunks/235f333177ed7ea21e01.js +0 -1
  150. package/assets/esri/core/workers/chunks/3725dd14c2da0f47198f.js +0 -1
  151. package/assets/esri/core/workers/chunks/42595c4870c673ed451c.js +0 -1
  152. package/assets/esri/core/workers/chunks/481cdd2a4bc40c6fef66.js +0 -1
  153. package/assets/esri/core/workers/chunks/54893132e70c515ea7e3.js +0 -1
  154. package/assets/esri/core/workers/chunks/6509a4198972b323d9b6.js +0 -1
  155. package/assets/esri/core/workers/chunks/68598d2806d4aa3d8acc.js +0 -1
  156. package/assets/esri/core/workers/chunks/718d2e8ea61f3b7b70c5.js +0 -1
  157. package/assets/esri/core/workers/chunks/7bce4b5eec630ef57f1e.js +0 -1
  158. package/assets/esri/core/workers/chunks/8706dc9f852df9b2095d.js +0 -1
  159. package/assets/esri/core/workers/chunks/8ef26aac0fe7feb8c324.js +0 -1
  160. package/assets/esri/core/workers/chunks/91e61da22f258d9e86c5.js +0 -1
  161. package/assets/esri/core/workers/chunks/9f039bf79b34d8fd75ae.js +0 -1
  162. package/assets/esri/core/workers/chunks/a20fd9e7db37b3c3b041.js +0 -1
  163. package/assets/esri/core/workers/chunks/aa83dce42d64034a0a13.js +0 -1
  164. package/assets/esri/core/workers/chunks/cdcf0a5e05283d37b3ac.js +0 -1
  165. package/assets/esri/core/workers/chunks/d4f9106bf2ea5d66d96a.js +0 -1
  166. package/assets/esri/core/workers/chunks/e6bfbc4347fa13db4df2.js +0 -1
  167. package/assets/esri/core/workers/chunks/f1d5487f2d828fb142ba.js +0 -1
  168. package/assets/esri/core/workers/chunks/f97f165d05439e668e05.js +0 -1
  169. package/assets/esri/core/workers/chunks/fe973d8155c22d73a4f9.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3529],{25929:(e,r,a)=>{a.d(r,{M:()=>m,a:()=>h,e:()=>d,f:()=>n,i:()=>c,p:()=>y,r:()=>s,t:()=>l,w:()=>i});var t=a(17452);function n(e,r){const a=r&&r.url&&r.url.path;if(e&&a&&(e=(0,t.hF)(e,a,{preserveProtocolRelative:!0}),r.portalItem&&r.readResourcePaths)){const a=(0,t.PF)(e,r.portalItem.itemUrl);null!=a&&u.test(a)&&r.readResourcePaths.push(r.portalItem.resourceFromPath(a).path)}return f(e,r&&r.portal)}function l(e,r,a=m.YES){if(null==e)return e;!(0,t.YP)(e)&&r&&r.blockedRelativeUrls&&r.blockedRelativeUrls.push(e);let n=(0,t.hF)(e);if(r){const a=r.verifyItemRelativeUrls&&r.verifyItemRelativeUrls.rootPath||r.url&&r.url.path;if(a){const l=f(a,r.portal),s=f(n,r.portal);n=(0,t.PF)(s,l,l),null!=n&&n!==s&&n!==e&&r.verifyItemRelativeUrls&&r.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=d(n,r?.portal),(0,t.YP)(n)&&(n=(0,t.Fv)(n)),r?.resources&&r?.portalItem&&!(0,t.YP)(n)&&!(0,t.HK)(n)&&a===m.YES&&r.resources.toKeep.push({resource:r.portalItem.resourceFromPath(n),compress:!1}),n}function s(e,r,a){return n(e,a)}function i(e,r,a,t){const n=l(e,t);void 0!==n&&(r[a]=n)}const o=/\/items\/([^\/]+)\/resources\/(.*)/,u=/^\.\/resources\//;function c(e){const r=e?.match(o)??null;return r?.[1]??null}function y(e){const r=e?.match(o)??null;if(null==r)return null;const a=r[2],n=a.lastIndexOf("/");if(-1===n){const{path:e,extension:r}=(0,t.fZ)(a);return{prefix:null,filename:e,extension:r}}const{path:l,extension:s}=(0,t.fZ)(a.slice(n+1));return{prefix:a.slice(0,n),filename:l,extension:s}}function d(e,r){return r&&!r.isPortal&&r.urlKey&&r.customBaseUrl?(0,t.Ie)(e,`${r.urlKey}.${r.customBaseUrl}`,r.portalHostname):e}function f(e,r){if(!r||r.isPortal||!r.urlKey||!r.customBaseUrl)return e;const a=`${r.urlKey}.${r.customBaseUrl}`,n=(0,t.TI)();return(0,t.D6)(n,`${n.scheme}://${a}`)?(0,t.Ie)(e,r.portalHostname,a):(0,t.Ie)(e,a,r.portalHostname)}var m,p;(p=m||(m={}))[p.YES=0]="YES",p[p.NO=1]="NO";const h=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return m},ensureMainOnlineDomain:d,fromJSON:n,itemIdFromResourceUrl:c,prefixAndFilenameFromResourceUrl:y,read:s,toJSON:l,write:i},Symbol.toStringTag,{value:"Module"}))},66677:(e,r,a)=>{a.d(r,{B5:()=>c,DR:()=>d,G:()=>v,M8:()=>p,Nm:()=>h,Qc:()=>y,XG:()=>b,a7:()=>m,ld:()=>f,wH:()=>w});var t=a(17452),n=a(25929);const l={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},s=Object.values(l),i=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${s.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),o=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${s.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),u=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function c(e){return!!i.test(e)}function y(e){if(null==e)return null;const r=(0,t.mN)(e),a=r.path.match(i)||r.path.match(o);if(!a)return null;const[,n,s,u,c]=a,y=s.indexOf("/");return{title:f(-1!==y?s.slice(y+1):s),serverType:l[u.toLowerCase()],sublayer:null!=c&&""!==c?parseInt(c,10):null,url:{path:n}}}function d(e){const r=(0,t.mN)(e).path.match(u);return r?{serviceUrl:r[1],sublayerId:Number(r[2])}:null}function f(e){return(e=e.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function m(e,r){const a=[];if(e){const r=y(e);null!=r&&r.title&&a.push(r.title)}if(r){const e=f(r);a.push(e)}if(2===a.length){if(a[0].toLowerCase().includes(a[1].toLowerCase()))return a[0];if(a[1].toLowerCase().includes(a[0].toLowerCase()))return a[1]}return a.join(" - ")}function p(e){if(!e)return!1;const r=(e=e.toLowerCase()).includes(".arcgis.com/"),a=e.includes("//services")||e.includes("//tiles")||e.includes("//features");return r&&a}function h(e,r){return e?(0,t.Qj)((0,t.Hu)(e,r)):e}function b(e){let{url:r}=e;if(!r)return{url:r};r=(0,t.Hu)(r,e.logger);const a=(0,t.mN)(r),n=y(a.path);let l;if(null!=n)null!=n.sublayer&&null==e.layer.layerId&&(l=n.sublayer),r=n.url.path;else if(e.nonStandardUrlAllowed){const e=d(a.path);null!=e&&(r=e.serviceUrl,l=e.sublayerId)}return{url:(0,t.Qj)(r),layerId:l}}function w(e,r,a,l,s){(0,n.w)(r,l,"url",s),l.url&&null!=e.layerId&&(l.url=(0,t.v_)(l.url,a,e.layerId.toString()))}function v(e){if(!e)return!1;const r=e.toLowerCase(),a=r.includes("/services/"),t=r.includes("/mapserver/wmsserver"),n=r.includes("/imageserver/wmsserver"),l=r.includes("/wmsserver");return a&&(t||n||l)}},63529:(e,r,a)=>{a.r(r),a.d(r,{fromUrl:()=>y});var t=a(20102),n=a(17452),l=a(66677),s=a(52104),i=a(84230),o=a(87344),u=a(96187);const c={FeatureLayer:!0,SceneLayer:!0};async function y(e){const r=e.properties?.customParameters,y=await async function(e,r){let a=(0,l.Qc)(e);if(null==a&&(a=await async function(e,r){const a=await(0,u.T)(e,{customParameters:r});let t=null,s=null;const i=a.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=a.id??null):"indexedVector"===i?t="VectorTileServer":a.hasOwnProperty("mapName")?t="MapServer":a.hasOwnProperty("bandCount")&&a.hasOwnProperty("pixelSizeX")?t="ImageServer":a.hasOwnProperty("maxRecordCount")&&a.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":a.hasOwnProperty("streamUrls")?t="StreamServer":f(a)?(t="SceneServer",s=a.id):a.hasOwnProperty("layers")&&f(a.layers?.[0])&&(t="SceneServer"),!t)return null;const o=null!=s?(0,l.DR)(e):null;return{title:null!=o&&a.name||(0,n.vt)(e),serverType:t,sublayer:s,url:{path:null!=o?o.serviceUrl:(0,n.mN)(e).path}}}(e,r)),null==a)throw new t.Z("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:y,sublayer:d}=a;let m;const p={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"};switch(y){case"MapServer":m=null!=d?"FeatureLayer":await async function(e,r){return(await(0,u.T)(e,{customParameters:r})).tileInfo}(e,r)?"TileLayer":"MapImageLayer";break;case"ImageServer":{const a=await(0,u.T)(e,{customParameters:r}),{tileInfo:t,cacheType:n}=a;m=t?"LERC"!==t?.format?.toUpperCase()||n&&"elevation"!==n.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{const e=await(0,u.T)(a.url.path,{customParameters:r});if(m="SceneLayer",e){const r=e?.layers;if("Voxel"===e?.layerType)m="VoxelLayer";else if(r?.length){const e=r[0]?.layerType;null!=e&&null!=i.fb[e]&&(m=i.fb[e])}}break}default:m=p[y]}const h="FeatureServer"===y,b={parsedUrl:a,Constructor:null,layerOrTableId:h?d:void 0,sublayerIds:null,tableIds:null};if(c[m]&&null==d){const a=await async function(e,r,a){let t,n=!1;if("FeatureServer"===r){const r=await(0,s.V)(e,{customParameters:a});n=!!r.layersJSON,t=r.layersJSON||r.serviceJSON}else t=await(0,u.T)(e,{customParameters:a});const l=t?.layers,i=t?.tables;return{layerIds:l?.map((e=>e.id)).reverse()||[],tableIds:i?.map((e=>e.id)).reverse()||[],layerInfos:n?l:[],tableInfos:n?i:[]}}(e,y,r);h&&(b.sublayerInfos=a.layerInfos,b.tableInfos=a.tableInfos),1!==a.layerIds.length+a.tableIds.length?(b.sublayerIds=a.layerIds,b.tableIds=a.tableIds):h&&(b.layerOrTableId=a.layerIds[0]??a.tableIds[0],b.sourceJSON=a.layerInfos?.[0]??a.tableInfos?.[0])}return b.Constructor=await async function(e){return(0,o.T[e])()}(m),b}(e.url,r),m={...e.properties,url:e.url};if(!y.sublayerIds)return null!=y.layerOrTableId&&(m.layerId=y.layerOrTableId,m.sourceJSON=y.sourceJSON),new y.Constructor(m);const p=new(0,(await Promise.all([a.e(163),a.e(4609),a.e(9059)]).then(a.bind(a,40504))).default)({title:y.parsedUrl.title});return function(e,r,a){function t(e,t){const n={...a,layerId:e,sublayerTitleMode:"service-name"};return null!=t&&(n.sourceJSON=t),new r.Constructor(n)}r.sublayerIds.forEach((a=>{const n=t(a,d(r.sublayerInfos,a));e.add(n)})),r.tableIds.forEach((a=>{const n=t(a,d(r.tableInfos,a));e.tables.add(n)}))}(p,y,m),p}function d(e,r){return e?e.find((e=>e.id===r)):null}function f(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}},52104:(e,r,a)=>{a.d(r,{V:()=>n});var t=a(96187);async function n(e,r){const a=await(0,t.T)(e,r);a.layers=a.layers.filter(l);const n={serviceJSON:a};if((a.currentVersion??0)<10.5)return n;const s=await(0,t.T)(e+"/layers",r);return n.layersJSON={layers:s.layers.filter(l),tables:s.tables},n}function l(e){return!e.type||"Feature Layer"===e.type||"Oriented Imagery Layer"===e.type}},87344:(e,r,a)=>{a.d(r,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(5625)]).then(a.bind(a,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(3712),a.e(9238),a.e(889),a.e(5243),a.e(9387),a.e(4202)]).then(a.bind(a,30223))).default,CSVLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(3712),a.e(9238),a.e(6240)]).then(a.bind(a,45425))).default,DimensionLayer:async()=>(await Promise.all([a.e(163),a.e(2115),a.e(81)]).then(a.bind(a,40081))).default,ElevationLayer:async()=>(await Promise.all([a.e(163),a.e(6569),a.e(223),a.e(2530)]).then(a.bind(a,65665))).default,FeatureLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(3712),a.e(9238),a.e(5697)]).then(a.bind(a,19238))).default,GeoJSONLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(3390)]).then(a.bind(a,23477))).default,GeoRSSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(1054)]).then(a.bind(a,3723))).default,GroupLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(1558)]).then(a.bind(a,40504))).default,ImageryLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(4165),a.e(4599),a.e(6610),a.e(4992),a.e(4608)]).then(a.bind(a,60590))).default,ImageryTileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(223),a.e(6610),a.e(4136),a.e(4992),a.e(5913)]).then(a.bind(a,74878))).default,IntegratedMeshLayer:async()=>(await Promise.all([a.e(163),a.e(889),a.e(1537)]).then(a.bind(a,9310))).default,KMLLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(1423),a.e(2756)]).then(a.bind(a,42756))).default,LineOfSightLayer:async()=>(await Promise.all([a.e(163),a.e(4998)]).then(a.bind(a,21786))).default,LinkChartLayer:async()=>(await Promise.all([a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(1534),a.e(3194),a.e(6822)]).then(a.bind(a,19087))).default,MapImageLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(1423),a.e(4165),a.e(3887),a.e(4599),a.e(4786),a.e(7374)]).then(a.bind(a,27374))).default,MapNotesLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(3712),a.e(9238),a.e(9435)]).then(a.bind(a,62128))).default,MediaLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4828)]).then(a.bind(a,57765))).default,OGCFeatureLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(191)]).then(a.bind(a,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4865),a.e(6237)]).then(a.bind(a,66237))).default,OrientedImageryLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(3712),a.e(9238),a.e(3859)]).then(a.bind(a,76604))).default,PointCloudLayer:async()=>(await Promise.all([a.e(163),a.e(8775),a.e(889),a.e(4266),a.e(6012)]).then(a.bind(a,10608))).default,RouteLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(1423),a.e(153)]).then(a.bind(a,40153))).default,SceneLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(3712),a.e(9238),a.e(889),a.e(5243),a.e(9387),a.e(7476)]).then(a.bind(a,57476))).default,StreamLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(1724)]).then(a.bind(a,88387))).default,SubtypeGroupLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(1423),a.e(4165),a.e(3887),a.e(3712),a.e(9111)]).then(a.bind(a,30359))).default,TileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(1423),a.e(4165),a.e(3887),a.e(4599),a.e(223),a.e(4786),a.e(8636)]).then(a.bind(a,98636))).default,UnknownLayer:async()=>(await a.e(4166).then(a.bind(a,44166))).default,UnsupportedLayer:async()=>(await a.e(9296).then(a.bind(a,39296))).default,VectorTileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(223),a.e(4325),a.e(9805),a.e(5481)]).then(a.bind(a,94756))).default,VoxelLayer:async()=>(await Promise.all([a.e(163),a.e(8775),a.e(889),a.e(2115),a.e(9493)]).then(a.bind(a,28865))).default,WFSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(5876)]).then(a.bind(a,12653))).default,WMSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(2462)]).then(a.bind(a,25906))).default,WMTSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4865),a.e(2594)]).then(a.bind(a,72594))).default,WebTileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4865)]).then(a.bind(a,16199))).default}},96187:(e,r,a)=>{a.d(r,{T:()=>n});var t=a(3172);async function n(e,r){const{data:a}=await(0,t.Z)(e,{responseType:"json",query:{f:"json",...r?.customParameters,token:r?.apiKey}});return a}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3529],{25929:(e,r,a)=>{a.d(r,{M:()=>m,a:()=>h,e:()=>d,f:()=>n,i:()=>c,p:()=>y,r:()=>s,t:()=>l,w:()=>i});var t=a(17452);function n(e,r){const a=r&&r.url&&r.url.path;if(e&&a&&(e=(0,t.hF)(e,a,{preserveProtocolRelative:!0}),r.portalItem&&r.readResourcePaths)){const a=(0,t.PF)(e,r.portalItem.itemUrl);null!=a&&u.test(a)&&r.readResourcePaths.push(r.portalItem.resourceFromPath(a).path)}return f(e,r&&r.portal)}function l(e,r,a=m.YES){if(null==e)return e;!(0,t.YP)(e)&&r&&r.blockedRelativeUrls&&r.blockedRelativeUrls.push(e);let n=(0,t.hF)(e);if(r){const a=r.verifyItemRelativeUrls&&r.verifyItemRelativeUrls.rootPath||r.url&&r.url.path;if(a){const l=f(a,r.portal),s=f(n,r.portal);n=(0,t.PF)(s,l,l),null!=n&&n!==s&&n!==e&&r.verifyItemRelativeUrls&&r.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=d(n,r?.portal),(0,t.YP)(n)&&(n=(0,t.Fv)(n)),r?.resources&&r?.portalItem&&!(0,t.YP)(n)&&!(0,t.HK)(n)&&a===m.YES&&r.resources.toKeep.push({resource:r.portalItem.resourceFromPath(n),compress:!1}),n}function s(e,r,a){return n(e,a)}function i(e,r,a,t){const n=l(e,t);void 0!==n&&(r[a]=n)}const o=/\/items\/([^\/]+)\/resources\/(.*)/,u=/^\.\/resources\//;function c(e){const r=e?.match(o)??null;return r?.[1]??null}function y(e){const r=e?.match(o)??null;if(null==r)return null;const a=r[2],n=a.lastIndexOf("/");if(-1===n){const{path:e,extension:r}=(0,t.fZ)(a);return{prefix:null,filename:e,extension:r}}const{path:l,extension:s}=(0,t.fZ)(a.slice(n+1));return{prefix:a.slice(0,n),filename:l,extension:s}}function d(e,r){return r&&!r.isPortal&&r.urlKey&&r.customBaseUrl?(0,t.Ie)(e,`${r.urlKey}.${r.customBaseUrl}`,r.portalHostname):e}function f(e,r){if(!r||r.isPortal||!r.urlKey||!r.customBaseUrl)return e;const a=`${r.urlKey}.${r.customBaseUrl}`,n=(0,t.TI)();return(0,t.D6)(n,`${n.scheme}://${a}`)?(0,t.Ie)(e,r.portalHostname,a):(0,t.Ie)(e,a,r.portalHostname)}var m,p;(p=m||(m={}))[p.YES=0]="YES",p[p.NO=1]="NO";const h=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return m},ensureMainOnlineDomain:d,fromJSON:n,itemIdFromResourceUrl:c,prefixAndFilenameFromResourceUrl:y,read:s,toJSON:l,write:i},Symbol.toStringTag,{value:"Module"}))},66677:(e,r,a)=>{a.d(r,{B5:()=>c,DR:()=>d,G:()=>v,M8:()=>p,Nm:()=>h,Qc:()=>y,XG:()=>b,a7:()=>m,ld:()=>f,wH:()=>w});var t=a(17452),n=a(25929);const l={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},s=Object.values(l),i=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${s.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),o=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${s.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),u=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function c(e){return!!i.test(e)}function y(e){if(null==e)return null;const r=(0,t.mN)(e),a=r.path.match(i)||r.path.match(o);if(!a)return null;const[,n,s,u,c]=a,y=s.indexOf("/");return{title:f(-1!==y?s.slice(y+1):s),serverType:l[u.toLowerCase()],sublayer:null!=c&&""!==c?parseInt(c,10):null,url:{path:n}}}function d(e){const r=(0,t.mN)(e).path.match(u);return r?{serviceUrl:r[1],sublayerId:Number(r[2])}:null}function f(e){return(e=e.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function m(e,r){const a=[];if(e){const r=y(e);null!=r&&r.title&&a.push(r.title)}if(r){const e=f(r);a.push(e)}if(2===a.length){if(a[0].toLowerCase().includes(a[1].toLowerCase()))return a[0];if(a[1].toLowerCase().includes(a[0].toLowerCase()))return a[1]}return a.join(" - ")}function p(e){if(!e)return!1;const r=(e=e.toLowerCase()).includes(".arcgis.com/"),a=e.includes("//services")||e.includes("//tiles")||e.includes("//features");return r&&a}function h(e,r){return e?(0,t.Qj)((0,t.Hu)(e,r)):e}function b(e){let{url:r}=e;if(!r)return{url:r};r=(0,t.Hu)(r,e.logger);const a=(0,t.mN)(r),n=y(a.path);let l;if(null!=n)null!=n.sublayer&&null==e.layer.layerId&&(l=n.sublayer),r=n.url.path;else if(e.nonStandardUrlAllowed){const e=d(a.path);null!=e&&(r=e.serviceUrl,l=e.sublayerId)}return{url:(0,t.Qj)(r),layerId:l}}function w(e,r,a,l,s){(0,n.w)(r,l,"url",s),l.url&&null!=e.layerId&&(l.url=(0,t.v_)(l.url,a,e.layerId.toString()))}function v(e){if(!e)return!1;const r=e.toLowerCase(),a=r.includes("/services/"),t=r.includes("/mapserver/wmsserver"),n=r.includes("/imageserver/wmsserver"),l=r.includes("/wmsserver");return a&&(t||n||l)}},63529:(e,r,a)=>{a.r(r),a.d(r,{fromUrl:()=>y});var t=a(20102),n=a(17452),l=a(66677),s=a(52104),i=a(84230),o=a(87344),u=a(96187);const c={FeatureLayer:!0,SceneLayer:!0};async function y(e){const r=e.properties?.customParameters,y=await async function(e,r){let a=(0,l.Qc)(e);if(null==a&&(a=await async function(e,r){const a=await(0,u.T)(e,{customParameters:r});let t=null,s=null;const i=a.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=a.id??null):"indexedVector"===i?t="VectorTileServer":a.hasOwnProperty("mapName")?t="MapServer":a.hasOwnProperty("bandCount")&&a.hasOwnProperty("pixelSizeX")?t="ImageServer":a.hasOwnProperty("maxRecordCount")&&a.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":a.hasOwnProperty("streamUrls")?t="StreamServer":f(a)?(t="SceneServer",s=a.id):a.hasOwnProperty("layers")&&f(a.layers?.[0])&&(t="SceneServer"),!t)return null;const o=null!=s?(0,l.DR)(e):null;return{title:null!=o&&a.name||(0,n.vt)(e),serverType:t,sublayer:s,url:{path:null!=o?o.serviceUrl:(0,n.mN)(e).path}}}(e,r)),null==a)throw new t.Z("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:y,sublayer:d}=a;let m;const p={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"};switch(y){case"MapServer":m=null!=d?"FeatureLayer":await async function(e,r){return(await(0,u.T)(e,{customParameters:r})).tileInfo}(e,r)?"TileLayer":"MapImageLayer";break;case"ImageServer":{const a=await(0,u.T)(e,{customParameters:r}),{tileInfo:t,cacheType:n}=a;m=t?"LERC"!==t?.format?.toUpperCase()||n&&"elevation"!==n.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{const e=await(0,u.T)(a.url.path,{customParameters:r});if(m="SceneLayer",e){const r=e?.layers;if("Voxel"===e?.layerType)m="VoxelLayer";else if(r?.length){const e=r[0]?.layerType;null!=e&&null!=i.fb[e]&&(m=i.fb[e])}}break}default:m=p[y]}const h="FeatureServer"===y,b={parsedUrl:a,Constructor:null,layerOrTableId:h?d:void 0,sublayerIds:null,tableIds:null};if(c[m]&&null==d){const a=await async function(e,r,a){let t,n=!1;if("FeatureServer"===r){const r=await(0,s.V)(e,{customParameters:a});n=!!r.layersJSON,t=r.layersJSON||r.serviceJSON}else t=await(0,u.T)(e,{customParameters:a});const l=t?.layers,i=t?.tables;return{layerIds:l?.map((e=>e.id)).reverse()||[],tableIds:i?.map((e=>e.id)).reverse()||[],layerInfos:n?l:[],tableInfos:n?i:[]}}(e,y,r);h&&(b.sublayerInfos=a.layerInfos,b.tableInfos=a.tableInfos),1!==a.layerIds.length+a.tableIds.length?(b.sublayerIds=a.layerIds,b.tableIds=a.tableIds):h&&(b.layerOrTableId=a.layerIds[0]??a.tableIds[0],b.sourceJSON=a.layerInfos?.[0]??a.tableInfos?.[0])}return b.Constructor=await async function(e){return(0,o.T[e])()}(m),b}(e.url,r),m={...e.properties,url:e.url};if(!y.sublayerIds)return null!=y.layerOrTableId&&(m.layerId=y.layerOrTableId,m.sourceJSON=y.sourceJSON),new y.Constructor(m);const p=new(0,(await Promise.all([a.e(163),a.e(4609),a.e(9059)]).then(a.bind(a,40504))).default)({title:y.parsedUrl.title});return function(e,r,a){function t(e,t){const n={...a,layerId:e,sublayerTitleMode:"service-name"};return null!=t&&(n.sourceJSON=t),new r.Constructor(n)}r.sublayerIds.forEach((a=>{const n=t(a,d(r.sublayerInfos,a));e.add(n)})),r.tableIds.forEach((a=>{const n=t(a,d(r.tableInfos,a));e.tables.add(n)}))}(p,y,m),p}function d(e,r){return e?e.find((e=>e.id===r)):null}function f(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}},52104:(e,r,a)=>{a.d(r,{V:()=>n});var t=a(96187);async function n(e,r){const a=await(0,t.T)(e,r);a.layers=a.layers.filter(l);const n={serviceJSON:a};if((a.currentVersion??0)<10.5)return n;const s=await(0,t.T)(e+"/layers",r);return n.layersJSON={layers:s.layers.filter(l),tables:s.tables},n}function l(e){return!e.type||"Feature Layer"===e.type||"Oriented Imagery Layer"===e.type}},87344:(e,r,a)=>{a.d(r,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(5625)]).then(a.bind(a,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(6079),a.e(9238),a.e(889),a.e(5243),a.e(9387),a.e(4202)]).then(a.bind(a,30223))).default,CSVLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(6079),a.e(9238),a.e(6240)]).then(a.bind(a,45425))).default,DimensionLayer:async()=>(await Promise.all([a.e(163),a.e(2115),a.e(81)]).then(a.bind(a,40081))).default,ElevationLayer:async()=>(await Promise.all([a.e(163),a.e(6569),a.e(223),a.e(2530)]).then(a.bind(a,65665))).default,FeatureLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(6079),a.e(9238),a.e(5697)]).then(a.bind(a,19238))).default,GeoJSONLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(3390)]).then(a.bind(a,23477))).default,GeoRSSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(1054)]).then(a.bind(a,3723))).default,GroupLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(1558)]).then(a.bind(a,40504))).default,ImageryLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(4165),a.e(4599),a.e(6610),a.e(8700),a.e(4608)]).then(a.bind(a,60590))).default,ImageryTileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(223),a.e(6610),a.e(4136),a.e(8700),a.e(5913)]).then(a.bind(a,74878))).default,IntegratedMeshLayer:async()=>(await Promise.all([a.e(163),a.e(889),a.e(1537)]).then(a.bind(a,9310))).default,KMLLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(1423),a.e(2756)]).then(a.bind(a,42756))).default,LineOfSightLayer:async()=>(await Promise.all([a.e(163),a.e(4998)]).then(a.bind(a,21786))).default,LinkChartLayer:async()=>(await Promise.all([a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(1534),a.e(3194),a.e(6822)]).then(a.bind(a,19087))).default,MapImageLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(1423),a.e(4165),a.e(3887),a.e(4599),a.e(4786),a.e(7374)]).then(a.bind(a,27374))).default,MapNotesLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(6079),a.e(9238),a.e(9435)]).then(a.bind(a,62128))).default,MediaLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4828)]).then(a.bind(a,57765))).default,OGCFeatureLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(191)]).then(a.bind(a,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4865),a.e(6237)]).then(a.bind(a,66237))).default,OrientedImageryLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(6079),a.e(9238),a.e(3859)]).then(a.bind(a,76604))).default,PointCloudLayer:async()=>(await Promise.all([a.e(163),a.e(8775),a.e(889),a.e(4266),a.e(6012)]).then(a.bind(a,10608))).default,RouteLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(1423),a.e(153)]).then(a.bind(a,40153))).default,SceneLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(6079),a.e(9238),a.e(889),a.e(5243),a.e(9387),a.e(7476)]).then(a.bind(a,57476))).default,StreamLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(1724)]).then(a.bind(a,88387))).default,SubtypeGroupLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(1423),a.e(4165),a.e(3887),a.e(6079),a.e(9111)]).then(a.bind(a,30359))).default,TileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(1423),a.e(4165),a.e(3887),a.e(4599),a.e(223),a.e(4786),a.e(8636)]).then(a.bind(a,98636))).default,UnknownLayer:async()=>(await a.e(4166).then(a.bind(a,44166))).default,UnsupportedLayer:async()=>(await a.e(9296).then(a.bind(a,39296))).default,VectorTileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(223),a.e(4325),a.e(9805),a.e(5481)]).then(a.bind(a,94756))).default,VoxelLayer:async()=>(await Promise.all([a.e(163),a.e(8775),a.e(889),a.e(2115),a.e(9493)]).then(a.bind(a,28865))).default,WFSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(7153),a.e(2601),a.e(6569),a.e(1423),a.e(4165),a.e(3887),a.e(6404),a.e(5876)]).then(a.bind(a,12653))).default,WMSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(2462)]).then(a.bind(a,25906))).default,WMTSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4865),a.e(2594)]).then(a.bind(a,72594))).default,WebTileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4865)]).then(a.bind(a,16199))).default}},96187:(e,r,a)=>{a.d(r,{T:()=>n});var t=a(3172);async function n(e,r){const{data:a}=await(0,t.Z)(e,{responseType:"json",query:{f:"json",...r?.customParameters,token:r?.apiKey}});return a}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5481],{92835:(e,t,r)=>{r.d(t,{Z:()=>y});var i,s=r(43697),o=r(96674),n=r(35463),l=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),u=r(52011),h=r(30556);let c=i=class extends o.wq{static get allTime(){return p}static get empty(){return d}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,s=e.end?.getTime()??e.end;return t===i&&r===s}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,n.JE)(r,e,t));let s=this.end;if(s){const r=(0,n.JE)(s,e,t);s=s.getTime()===r.getTime()?r:(0,n.Nm)(r,1,e,t)}return new i({start:r,end:s})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,s=e.start?.getTime()??-1/0,o=e.end?.getTime()??1/0;let n,l;if(s>=t&&s<=r?n=s:t>=s&&t<=o&&(n=t),r>=s&&r<=o?l=r:o>=t&&o<=r&&(l=o),null!=n&&null!=l&&!isNaN(n)&&!isNaN(l)){const e=new i;return e.start=n===-1/0?null:new Date(n),e.end=l===1/0?null:new Date(l),e}return i.empty}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime)return this.clone();const s=new i,{start:o,end:l}=this;return null!=o&&(s.start=(0,n.Nm)(o,e,t,r)),null!=l&&(s.end=(0,n.Nm)(l,e,t,r)),s}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return p.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,s._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,s._)([(0,a.r)("end")],c.prototype,"readEnd",null),(0,s._)([(0,h.c)("end")],c.prototype,"writeEnd",null),(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,s._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,s._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,s._)([(0,a.r)("start")],c.prototype,"readStart",null),(0,s._)([(0,h.c)("start")],c.prototype,"writeStart",null),c=i=(0,s._)([(0,u.j)("esri.TimeExtent")],c);const p=new c,d=new c({start:void 0,end:void 0}),y=c},25929:(e,t,r)=>{r.d(t,{M:()=>y,a:()=>f,e:()=>p,f:()=>s,i:()=>h,p:()=>c,r:()=>n,t:()=>o,w:()=>l});var i=r(17452);function s(e,t){const r=t&&t.url&&t.url.path;if(e&&r&&(e=(0,i.hF)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,i.PF)(e,t.portalItem.itemUrl);null!=r&&u.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return d(e,t&&t.portal)}function o(e,t,r=y.YES){if(null==e)return e;!(0,i.YP)(e)&&t&&t.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let s=(0,i.hF)(e);if(t){const r=t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.rootPath||t.url&&t.url.path;if(r){const o=d(r,t.portal),n=d(s,t.portal);s=(0,i.PF)(n,o,o),null!=s&&s!==n&&s!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=p(s,t?.portal),(0,i.YP)(s)&&(s=(0,i.Fv)(s)),t?.resources&&t?.portalItem&&!(0,i.YP)(s)&&!(0,i.HK)(s)&&r===y.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(s),compress:!1}),s}function n(e,t,r){return s(e,r)}function l(e,t,r,i){const s=o(e,i);void 0!==s&&(t[r]=s)}const a=/\/items\/([^\/]+)\/resources\/(.*)/,u=/^\.\/resources\//;function h(e){const t=e?.match(a)??null;return t?.[1]??null}function c(e){const t=e?.match(a)??null;if(null==t)return null;const r=t[2],s=r.lastIndexOf("/");if(-1===s){const{path:e,extension:t}=(0,i.fZ)(r);return{prefix:null,filename:e,extension:t}}const{path:o,extension:n}=(0,i.fZ)(r.slice(s+1));return{prefix:r.slice(0,s),filename:o,extension:n}}function p(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,i.Ie)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function d(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,s=(0,i.TI)();return(0,i.D6)(s,`${s.scheme}://${r}`)?(0,i.Ie)(e,t.portalHostname,r):(0,i.Ie)(e,r,t.portalHostname)}var y,m;(m=y||(y={}))[m.YES=0]="YES",m[m.NO=1]="NO";const f=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return y},ensureMainOnlineDomain:p,fromJSON:s,itemIdFromResourceUrl:h,prefixAndFilenameFromResourceUrl:c,read:n,toJSON:o,write:l},Symbol.toStringTag,{value:"Module"}))},10699:(e,t,r)=>{r.d(t,{IG:()=>n,iv:()=>l});var i=r(43697),s=r(52011);let o=0;const n=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return t=(0,i._)([(0,s.j)("esri.core.Identifiable")],t),t},l=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return t=(0,i._)([(0,s.j)("esri.core.NumericIdentifiable")],t),t};let a=class extends(n(class{})){};a=(0,i._)([(0,s.j)("esri.core.Identifiable")],a)},13867:(e,t,r)=>{r.d(t,{z:()=>s});var i=r(69801);class s{constructor(e,t){this._storage=new i.WJ,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this),t&&this._storage.registerRemoveFunc("",t)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,t,r=1){this._storage.put(this,e,t,r,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}},69801:(e,t,r)=>{r.d(t,{WJ:()=>l,Xq:()=>n});var i,s,o=r(44553);(s=i||(i={}))[s.ALL=0]="ALL",s[s.SOME=1]="SOME";class n{constructor(e,t,r){this.name=e,this._storage=t,this.id=a+++":",this.size=0,this.maxSize=0,this._removeFunc=!1,this._hit=0,this._miss=0,this._storage.register(this),r&&(this._storage.registerRemoveFunc(this.id,r),this._removeFunc=!0)}destroy(){this._storage.clear(this),this._removeFunc&&this._storage.deregisterRemoveFunc(this.id),this._storage.deregister(this),this._storage=null}get hitRate(){return this._hit/(this._hit+this._miss)}get sizeAll(){return this._storage.size}resetHitRate(){this._hit=this._miss=0}put(e,t,r,i=0){this._storage.put(this,e,t,r,i)}get(e){const t=this._storage.get(this,e);return void 0===t?++this._miss:++this._hit,t}peek(e){return this._storage.peek(this,e)}pop(e){const t=this._storage.pop(this,e);return void 0===t?++this._miss:++this._hit,t}updateSize(e,t,r){this._storage.updateSize(this,e,t,r)}clear(){this._storage.clear(this)}clearAll(){this._storage.clearAll()}get performanceInfo(){return this._storage.performanceInfo}resetStats(){this._storage.resetStats()}}class l{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._removeFuncs=new o.Z,this._users=new o.Z}destroy(){this.clearAll(),this._removeFuncs.clear(),this._users.clear(),this._db=null}register(e){this._users.push(e)}deregister(e){this._users.removeUnordered(e)}registerRemoveFunc(e,t){this._removeFuncs.push([e,t])}deregisterRemoveFunc(e){this._removeFuncs.filterInPlace((t=>t[0]!==e))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,0),this._checkSizeLimits()}put(e,t,r,s,o){t=e.id+t;const n=this._db.get(t);if(n&&(this._size-=n.size,e.size-=n.size,this._db.delete(t),n.entry!==r&&this._notifyRemove(t,n.entry,i.ALL)),s>this._maxSize)return void this._notifyRemove(t,r,i.ALL);if(void 0===r)return void console.warn("Refusing to cache undefined entry ");if(!s||s<0)return void console.warn("Refusing to cache entry with invalid size "+s);const l=1+Math.max(o,-3)- -3;this._db.set(t,{entry:r,size:s,lifetime:l,lives:l}),this._size+=s,e.size+=s,this._checkSizeLimits()}updateSize(e,t,r,s){t=e.id+t;const o=this._db.get(t);if(o&&o.entry===r){for(this._size-=o.size,e.size-=o.size;s>this._maxSize;){const e=this._notifyRemove(t,r,i.SOME);if(!(null!=e&&e>0))return void this._db.delete(t);s=e}o.size=s,this._size+=s,e.size+=s,this._checkSizeLimits()}}pop(e,t){t=e.id+t;const r=this._db.get(t);if(r)return this._size-=r.size,e.size-=r.size,this._db.delete(t),++this._hit,r.entry;++this._miss}get(e,t){t=e.id+t;const r=this._db.get(t);if(void 0!==r)return this._db.delete(t),r.lives=r.lifetime,this._db.set(t,r),++this._hit,r.entry;++this._miss}peek(e,t){const r=this._db.get(e.id+t);return r?++this._hit:++this._miss,r?.entry}get performanceInfo(){const e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},t={},r=new Array;this._db.forEach(((e,i)=>{const s=e.lifetime;r[s]=(r[s]||0)+e.size,this._users.forAll((r=>{const{id:s,name:o}=r;if(i.startsWith(s)){const r=t[o]||0;t[o]=r+e.size}}))}));const i={};this._users.forAll((e=>{const r=e.name;if("hitRate"in e&&"number"==typeof e.hitRate&&!isNaN(e.hitRate)&&e.hitRate>0){const s=t[r]||0;t[r]=s,i[r]=Math.round(100*e.hitRate)+"%"}else i[r]="0%"}));const s=Object.keys(t);s.sort(((e,r)=>t[r]-t[e])),s.forEach((r=>e[r]=Math.round(t[r]/2**20)+"MB / "+i[r]));for(let t=r.length-1;t>=0;--t){const i=r[t];i&&(e["Priority "+(t+-3-1)]=Math.round(i/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forAll((e=>e.resetHitRate()))}clear(e){const t=e.id;this._db.forEach(((e,r)=>{r.startsWith(t)&&(this._size-=e.size,this._db.delete(r),this._notifyRemove(r,e.entry,i.ALL))})),e.size=0}clearAll(){this._db.forEach(((e,t)=>this._notifyRemove(t,e.entry,i.ALL))),this._users.forEach((e=>e.size=0)),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,t,r){let i;return this._removeFuncs.some((s=>{if(e.startsWith(s[0])){const e=s[1](t,r);return"number"==typeof e&&(i=e),!0}return!1})),i}_checkSizeLimits(){if(this._size>this._maxSize)for(const[e,t]of this._db)if(this._purgeItem(e,t),this._size<=.9*this.maxSize)return;this._users.forEach((e=>{if(e.maxSize>0&&e.size>e.maxSize)for(const[t,r]of this._db)if(t.startsWith(e.id)&&(this._purgeItem(t,r,e),e.size<=.9*e.maxSize))return}))}_purgeItem(e,t,r=this._users.find((t=>e.startsWith(t.id)))){if(this._db.delete(e),t.lives<=1){this._size-=t.size,r&&(r.size-=t.size);const s=this._notifyRemove(e,t.entry,i.SOME);null!=s&&s>0&&(this._size+=s,r&&(r.size+=s),t.lives=t.lifetime,t.size=s,this._db.set(e,t))}else--t.lives,this._db.set(e,t)}}let a=0},17445:(e,t,r)=>{r.d(t,{N1:()=>p,YP:()=>a,Z_:()=>m,gx:()=>u,nn:()=>f,on:()=>c,tX:()=>g}),r(66643),r(46791);var i=r(91460),s=r(50758),o=r(70586),n=r(95330),l=r(26258);function a(e,t,r={}){return h(e,t,r,d)}function u(e,t,r={}){return h(e,t,r,y)}function h(e,t,r={},i){let s=null;const n=r.once?(e,r)=>{i(e)&&((0,o.hw)(s),t(e,r))}:(e,r)=>{i(e)&&t(e,r)};if(s=(0,l.aQ)(e,n,r.sync,r.equals),r.initial){const t=e();n(t,t)}return s}function c(e,t,r,n={}){let l=null,u=null,h=null;function c(){l&&u&&(u.remove(),n.onListenerRemove?.(l),l=null,u=null)}function p(e){n.once&&n.once&&(0,o.hw)(h),r(e)}const d=a(e,((e,r)=>{c(),(0,i.vT)(e)&&(l=e,u=(0,i.on)(e,t,p),n.onListenerAdd?.(e))}),{sync:n.sync,initial:!0});return h=(0,s.kB)((()=>{d.remove(),c()})),h}function p(e,t){return function(e,t,r){if((0,n.Hc)(r))return Promise.reject((0,n.zE)());const i=e();if(t?.(i))return Promise.resolve(i);let l=null;function a(){l=(0,o.hw)(l)}return new Promise(((i,o)=>{l=(0,s.AL)([(0,n.fu)(r,(()=>{a(),o((0,n.zE)())})),h(e,(e=>{a(),i(e)}),{sync:!1,once:!0},t??d)])}))}(e,y,t)}function d(e){return!0}function y(e){return!!e}r(87538);const m={sync:!0},f={initial:!0},g={sync:!0,initial:!0}},35463:(e,t,r)=>{r.d(t,{JE:()=>l,Nm:()=>n,rJ:()=>a});var i=r(90344),s=r(17126);const o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function n(e,t,r,o="system"){const n=new s.vF((0,i.f1)(o)),l=s.ou.fromJSDate(e,{zone:n}),a="decades"===r||"centuries"===r?"year":u(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[a]:t}).toJSDate()}function l(e,t,r="system"){const o=new s.vF((0,i.f1)(r)),n=s.ou.fromJSDate(e,{zone:o});if("decades"===t||"centuries"===t){const e=n.startOf("year"),{year:r}=e,i=r-r%("decades"===t?10:100);return e.set({year:i}).toJSDate()}const l=u(t);return n.startOf(l).toJSDate()}function a(e,t,r){return 0===e?0:e*o[t]/o[r]}function u(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},90344:(e,t,r)=>{r.d(t,{LJ:()=>A,Xr:()=>g,Ze:()=>w,f1:()=>E,i$:()=>I,o8:()=>x,p6:()=>b});var i=r(35454),s=r(70171),o=r(17126);const n={year:void 0,month:void 0,day:void 0,weekday:void 0},l={hour:void 0,minute:void 0,second:void 0},a=Intl.DateTimeFormat().resolvedOptions().timeZone,u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},p={year:"numeric",month:"short",day:"numeric"},d={year:"numeric",month:"long",weekday:"long",day:"numeric"},y={hour:"numeric",minute:"numeric"},m={...y,second:"numeric"},f={"short-date":h,"short-date-short-time":{...h,...y},"short-date-short-time-24":{...h,...y,hour12:!1},"short-date-long-time":{...h,...m},"short-date-long-time-24":{...h,...m,hour12:!1},"short-date-le":h,"short-date-le-short-time":{...h,...y},"short-date-le-short-time-24":{...h,...y,hour12:!1},"short-date-le-long-time":{...h,...m},"short-date-le-long-time-24":{...h,...m,hour12:!1},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...y},"long-month-day-year-short-time-24":{...c,...y,hour12:!1},"long-month-day-year-long-time":{...c,...m},"long-month-day-year-long-time-24":{...c,...m,hour12:!1},"day-short-month-year":p,"day-short-month-year-short-time":{...p,...y},"day-short-month-year-short-time-24":{...p,...y,hour12:!1},"day-short-month-year-long-time":{...p,...m},"day-short-month-year-long-time-24":{...p,...m,hour12:!1},"long-date":d,"long-date-short-time":{...d,...y},"long-date-short-time-24":{...d,...y,hour12:!1},"long-date-long-time":{...d,...m},"long-date-long-time-24":{...d,...m,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":y,"long-time":m},g=(0,i.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),_={ar:"ar-u-nu-latn-ca-gregory"};let v=new WeakMap;const S=f["short-date-short-time"];function w(e){return f[e]}function b(e,t=S){return function(e){let t=v.get(e);if(!t){const r=(0,s.Kd)(),i=_[r]||r,o=T(e);t=new Intl.DateTimeFormat(i,o),v.set(e,t)}return t}(t).format(e)}function x(e,t=S){return b(new Date(e),{...t,...u,...l})}function A(e,t=S){return b(new Date(`1970-01-01T${e}Z`),{...t,...u,...n})}function I(e,t=S){const r=o.ou.fromISO(e,{setZone:!0}),i=(0,s.Kd)(),n=_[i]??i,l=T(t);return r.toLocaleString(l,{locale:n})}function T(e){const t=E(e.timeZone??"system");return{...e,timeZone:t}}function E(e){switch(e){case"system":return a;case"unknown":return"UTC";default:return e}}(0,s.Ze)((()=>{v=new WeakMap}))},87085:(e,t,r)=>{r.d(t,{Z:()=>v});var i=r(43697),s=(r(66577),r(3172)),o=r(20102),n=r(32448),l=r(10699),a=r(83379),u=r(92604),h=r(95330),c=r(17452),p=r(5600),d=(r(75215),r(67676),r(80442),r(52011)),y=r(68773),m=r(6570),f=r(82971);let g=0,_=class extends(n.Z.EventedMixin((0,l.IG)(a.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.Z(-180,-90,180,90,f.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(3529).then(r.bind(r,63529))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(8008).then(r.bind(r,28008));try{return await i(t)}catch(e){const r=t&&t.portalItem,i=r&&r.id||"unset",s=r&&r.portal&&r.portal.url||y.default.portalUrl;throw u.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,h.D_)(e)||u.Z.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.mN)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.Z)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,p.Cb)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,i._)([(0,p.Cb)({type:m.Z})],_.prototype,"fullExtent",void 0),(0,i._)([(0,p.Cb)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,i._)([(0,p.Cb)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,i._)([(0,p.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,i._)([(0,p.Cb)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,i._)([(0,p.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,i._)([(0,p.Cb)({clonable:!1})],_.prototype,"parent",void 0),(0,i._)([(0,p.Cb)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,i._)([(0,p.Cb)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,i._)([(0,p.Cb)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,i._)([(0,p.Cb)({type:f.Z})],_.prototype,"spatialReference",void 0),(0,i._)([(0,p.Cb)({type:String})],_.prototype,"title",void 0),(0,i._)([(0,p.Cb)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,i._)([(0,p.Cb)()],_.prototype,"url",void 0),(0,i._)([(0,p.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,i._)([(0,d.j)("esri.layers.Layer")],_);const v=_},94756:(e,t,r)=>{r.r(t),r.d(t,{default:()=>ye});var i=r(43697),s=r(3172),o=r(66643),n=r(20102),l=r(22974),a=r(16453),u=r(95330),h=r(17452),c=r(5600),p=(r(75215),r(71715)),d=r(52011),y=r(30556),m=r(6570),f=r(82971),g=r(87085),_=r(54295),v=r(46486),S=r(17287),w=r(71612),b=r(17017),x=r(38009),A=r(16859),I=r(72965);let T=null;var E=r(92604),L=r(1533);class R{constructor(e,t){this._spriteSource=e,this._maxTextureSize=t,this.devicePixelRatio=1,this._spriteImageFormat="png",this._isRetina=!1,this._spritesData={},this.image=null,this.width=null,this.height=null,this.loadStatus="not-loaded","url"===e.type&&e.spriteFormat&&(this._spriteImageFormat=e.spriteFormat),e.pixelRatio&&(this.devicePixelRatio=e.pixelRatio),this.baseURL=e.spriteUrl}get spriteNames(){const e=[];for(const t in this._spritesData)e.push(t);return e.sort(),e}getSpriteInfo(e){return this._spritesData?this._spritesData[e]:null}async load(e){if(this.baseURL){this.loadStatus="loading";try{await this._loadSprites(e),this.loadStatus="loaded"}catch{this.loadStatus="failed"}}else this.loadStatus="failed"}async _loadSprites(e){this._isRetina=this.devicePixelRatio>1.15;const{width:t,height:r,data:i,json:s}=await this._getSpriteData(this._spriteSource,e),o=Object.keys(s);if(!o||0===o.length||!i)return this._spritesData=this.image=null,void(this.width=this.height=0);this._spritesData=s,this.width=t,this.height=r;const l=Math.max(this._maxTextureSize,4096);if(t>l||r>l){const e=`Sprite resource for style ${this.baseURL} is bigger than the maximum allowed of ${l} pixels}`;throw E.Z.getLogger("esri.layers.support.SpriteSource").error(e),new n.Z("SpriteSource",e)}let a;for(let e=0;e<i.length;e+=4)a=i[e+3]/255,i[e]=i[e]*a,i[e+1]=i[e+1]*a,i[e+2]=i[e+2]*a;this.image=i}async _getSpriteData(e,t){if("image"===e.type){let t,r;if(this.devicePixelRatio<1.15){if(!e.spriteSource1x)throw new n.Z("SpriteSource","no image data provided for low resolution sprites!");t=e.spriteSource1x.image,r=e.spriteSource1x.json}else{if(!e.spriteSource2x)throw new n.Z("SpriteSource","no image data provided for high resolution sprites!");t=e.spriteSource2x.image,r=e.spriteSource2x.json}return"width"in t&&"height"in t&&"data"in t&&((0,L.eP)(t.data)||(0,L.KZ)(t.data))?{width:t.width,height:t.height,data:new Uint8Array(t.data),json:r}:{...C(t),json:r}}const r=(0,h.mN)(this.baseURL),i=r.query?"?"+(0,h.B7)(r.query):"",o=this._isRetina?"@2x":"",l=`${r.path}${o}.${this._spriteImageFormat}${i}`,a=`${r.path}${o}.json${i}`,[u,c]=await Promise.all([(0,s.Z)(a,t),(0,s.Z)(l,{responseType:"image",...t})]);return{...C(c.data),json:u.data}}}function C(e){const t=document.createElement("canvas"),r=t.getContext("2d");t.width=e.width,t.height=e.height,r.drawImage(e,0,0,e.width,e.height);const i=r.getImageData(0,0,e.width,e.height);return{width:e.width,height:e.height,data:new Uint8Array(i.data)}}var D=r(11145),z=r(28589),O=r(8744),U=r(40488),P=r(55415);class M{constructor(e){this.url=e}destroy(){this._tileIndexPromise=null}async fetchTileIndex(){return this._tileIndexPromise||(this._tileIndexPromise=(0,s.Z)(this.url).then((e=>e.data.index))),this._tileIndexPromise}async dataKey(e,t){const r=await this.fetchTileIndex();return(0,u.k_)(t),this._getIndexedDataKey(r,e)}_getIndexedDataKey(e,t){const r=[t];if(t.level<0||t.row<0||t.col<0||t.row>>t.level>0||t.col>>t.level>0)return null;let i=t;for(;0!==i.level;)i=new P.Z(i.level-1,i.row>>1,i.col>>1,i.world),r.push(i);let s,o,n=e,l=r.pop();if(1===n)return l;for(;r.length;)if(s=r.pop(),o=(1&s.col)+((1&s.row)<<1),n){if(0===n[o]){l=null;break}if(1===n[o]){l=s;break}l=s,n=n[o]}return l}}var B=r(70586);class F{constructor(e,t){this._tilemap=e,this._tileIndexUrl=t}destroy(){this._tilemap=(0,B.SC)(this._tilemap),this._tileIndexPromise=null}async fetchTileIndex(e){return this._tileIndexPromise||(this._tileIndexPromise=(0,s.Z)(this._tileIndexUrl,{query:{...e?.query}}).then((e=>e.data.index))),this._tileIndexPromise}dataKey(e,t){const{level:r,row:i,col:s}=e,o=new P.Z(e);return this._tilemap.fetchAvailabilityUpsample(r,i,s,o,t).then((()=>(o.world=e.world,o))).catch((e=>{if((0,u.D_)(e))throw e;return null}))}}var Z=r(30175);class j{constructor(e){this._tileUrl=e,this._promise=null,this._abortController=null,this._abortOptions=[]}getData(e){null===this._promise&&(this._abortController=new AbortController,this._promise=this._makeRequest(this._tileUrl,this._abortController.signal));const t=this._abortOptions;return t.push(e),(0,u.fu)(e,(()=>{t.every((e=>(0,u.Hc)(e)))&&this._abortController.abort()})),this._promise.then((e=>(0,l.d9)(e)))}async _makeRequest(e,t){const{data:r}=await(0,s.Z)(e,{responseType:"array-buffer",signal:t});return r}}const N=new Map;function k(e,t){return(0,Z.s1)(N,e,(()=>new j(e))).getData(t).then((t=>(N.delete(e),t))).catch((t=>{throw N.delete(e),t}))}class W{constructor(e,t,r){this.tilemap=null,this.tileInfo=null,this.capabilities=null,this.fullExtent=null,this.initialExtent=null,this.name=e,this.sourceUrl=t;const i=(0,h.mN)(this.sourceUrl),s=(0,l.d9)(r),o=s.tiles;if(i)for(let e=0;e<o.length;e++){const t=(0,h.mN)(o[e]);t&&((0,h.YP)(t.path)||(t.path=(0,h.v_)(i.path,t.path)),o[e]=(0,h.fl)(t.path,{...i.query,...t.query}))}this.tileServers=o;const n=r.capabilities&&r.capabilities.split(",").map((e=>e.toLowerCase().trim())),a=!0===r?.exportTilesAllowed,u=!0===n?.includes("tilemap"),c=a&&r.hasOwnProperty("maxExportTilesCount")?r.maxExportTilesCount:0;this.capabilities={operations:{supportsExportTiles:a,supportsTileMap:u},exportTiles:a?{maxExportTilesCount:+c}:null},this.tileInfo=D.Z.fromJSON(s.tileInfo);const p=r.tileMap?(0,h.fl)((0,h.v_)(i.path,r.tileMap),i.query??{}):null;u?(this.type="vector-tile",this.tilemap=new F(new z.y({layer:{parsedUrl:i,tileInfo:this.tileInfo},minLOD:s.minLOD??this.tileInfo.lods[0].level,maxLOD:s.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}),p)):p&&(this.tilemap=new M(p)),this.fullExtent=m.Z.fromJSON(r.fullExtent),this.initialExtent=m.Z.fromJSON(r.initialExtent)}destroy(){this.tilemap?.destroy()}async getRefKey(e,t){return await(this.tilemap?.dataKey(e,t))??e}requestTile(e,t,r,i){return function(e,t,r,i,s){const o=(0,h.mN)(e),n=o.query;if(n)for(const[e,s]of Object.entries(n))switch(s){case"{x}":n[e]=i.toString();break;case"{y}":n[e]=r.toString();break;case"{z}":n[e]=t.toString()}const l=o.path;return k((0,h.fl)(l.replaceAll(/\{z\}/gi,t.toString()).replaceAll(/\{y\}/gi,r.toString()).replaceAll(/\{x\}/gi,i.toString()),{...o.query}),s)}(this.tileServers[t%this.tileServers.length],e,t,r,i)}isCompatibleWith(e){const t=this.tileInfo,r=e.tileInfo;if(!t.spatialReference.equals(r.spatialReference))return!1;if(!t.origin.equals(r.origin))return!1;if(Math.round(t.dpi)!==Math.round(r.dpi))return!1;const i=t.lods,s=r.lods,o=Math.min(i.length,s.length);for(let e=0;e<o;e++){const t=i[e],r=s[e];if(t.level!==r.level||Math.round(t.scale)!==Math.round(r.scale))return!1}return!0}}function G(...e){let t;for(const r of e)if(null!=r)if((0,h.oC)(r)){if(t){const e=t.split("://")[0];t=e+":"+r.trim()}}else t=(0,h.YP)(r)?r:(0,h.v_)(t,r);return t?(0,h.Qj)(t):void 0}async function $(e,t,r,i,o){let n,l,a;if((0,u.k_)(o),"string"==typeof r){const e=(0,h.Fv)(r);a=await(0,s.Z)(e,{...o,responseType:"json",query:{f:"json",...o?.query}}),a.ssl&&(n&&(n=n.replace(/^http:/i,"https:")),l&&(l=l.replace(/^http:/i,"https:"))),n=e,l=e}else null!=r&&(a={data:r},n=r.jsonUrl||null,l=i);const c=a?.data;if(q(c))return e.styleUrl=n||null,async function(e,t,r,i){const s=r?(0,h.Yd)(r):(0,h.L)();e.styleBase=s,e.style=t,t["sprite-format"]&&"webp"===t["sprite-format"].toLowerCase()&&(e.spriteFormat="webp");const o=[];if(t.sources&&t.sources.esri){const r=t.sources.esri;r.url?await $(e,"esri",G(s,r.url),void 0,i):o.push($(e,"esri",r,s,i))}for(const r of Object.keys(t.sources))"esri"!==r&&"vector"===t.sources[r].type&&(t.sources[r].url?o.push($(e,r,G(s,t.sources[r].url),void 0,i)):t.sources[r].tiles&&o.push($(e,r,t.sources[r],s,i)));await Promise.all(o)}(e,c,l,o);if(!q(c))return e.sourceUrl?Y(e,c,l,!1,t,o):(e.sourceUrl=n||null,Y(e,c,l,!0,t,o));throw new Error("You must specify the URL or the JSON for a service or for a style.")}function K(e){return"object"==typeof e&&!!e&&"tilejson"in e&&null!=e.tilejson}function q(e){return!!e&&"sources"in e&&!!e.sources}async function Y(e,t,r,i,s,o){const n=r?(0,h.Qj)(r)+"/":(0,h.L)(),a=function(e){if(e.hasOwnProperty("tileInfo"))return e;const t={xmin:-20037507.067161843,ymin:-20037507.067161843,xmax:20037507.067161843,ymax:20037507.067161843,spatialReference:{wkid:102100}};let r=null;if(K(e)){const{bounds:t}=e;if(t){const e=(0,U.$)({x:t[0],y:t[1],spatialReference:(0,l.d9)(O.Zn)}),i=(0,U.$)({x:t[2],y:t[3],spatialReference:(0,l.d9)(O.Zn)});r={xmin:e.x,ymin:e.y,xmax:i.x,ymax:i.y,spatialReference:(0,l.d9)(O.R_)}}}null===r&&(r=t);let i=78271.51696400007,s=295828763.7957775;const o=[],n=e.hasOwnProperty("minzoom")?+e.minzoom:0,a=e.hasOwnProperty("maxzoom")?+e.maxzoom:22;for(let e=0;e<=a;e++)e>=n&&o.push({level:e,scale:s,resolution:i}),i/=2,s/=2;return{capabilities:"TilesOnly",initialExtent:r,fullExtent:t,minScale:0,maxScale:0,tiles:e.tiles,tileInfo:{rows:512,cols:512,dpi:96,format:"pbf",origin:{x:-20037508.342787,y:20037508.342787},lods:o,spatialReference:(0,l.d9)(O.R_)}}}(t),u=new W(s,(0,h.fl)(n,o?.query??{}),a);if(!i&&e.primarySourceName in e.sourceNameToSource){const t=e.sourceNameToSource[e.primarySourceName];if(!t.isCompatibleWith(u))return;null!=u.fullExtent&&(null!=t.fullExtent?t.fullExtent.union(u.fullExtent):t.fullExtent=u.fullExtent.clone()),t.tileInfo&&u.tileInfo&&t.tileInfo.lods.length<u.tileInfo.lods.length&&(t.tileInfo=u.tileInfo)}if(i&&(e.sourceBase=n,e.source=t,e.validatedSource=a,e.primarySourceName=s),e.sourceNameToSource[s]=u,!K(e)&&"defaultStyles"in t&&!e.style){if(null==t.defaultStyles)throw new Error;return"string"==typeof t.defaultStyles?$(e,"",G(n,t.defaultStyles,"root.json"),void 0,o):$(e,"",t.defaultStyles,G(n,"root.json"),o)}}var J=r(33516),V=r(19745),H=r(25929),Q=r(94139),X=r(39450);const ee=1e-6;function te(e,t){if(e===t)return!0;if(null==e&&null!=t)return!1;if(null!=e&&null==t)return!1;if(null==e||null==t)return!1;if(!e.spatialReference.equals(t.spatialReference)||e.dpi!==t.dpi)return!1;const r=e.origin,i=t.origin;if(Math.abs(r.x-i.x)>=ee||Math.abs(r.y-i.y)>=ee)return!1;let s,o;e.lods[0].scale>t.lods[0].scale?(s=e,o=t):(o=e,s=t);for(let e=s.lods[0].scale;e>=o.lods[o.lods.length-1].scale-ee;e/=2)if(Math.abs(e-o.lods[0].scale)<ee)return!0;return!1}function re(e,t){if(e===t)return e;if(null==e&&null!=t)return t;if(null!=e&&null==t)return e;if(null==e||null==t)return null;const r=e.size[0],i=e.format,s=e.dpi,o=new Q.Z({x:e.origin.x,y:e.origin.y}),n=e.spatialReference,l=e.lods[0].scale>t.lods[0].scale?e.lods[0]:t.lods[0],a=e.lods[e.lods.length-1].scale<=t.lods[t.lods.length-1].scale?e.lods[e.lods.length-1]:t.lods[t.lods.length-1],u=l.scale,h=l.resolution,c=a.scale,p=[];let d=u,y=h,m=0;for(;d>c;)p.push(new X.Z({level:m,resolution:y,scale:d})),m++,d/=2,y/=2;return new D.Z({size:[r,r],dpi:s,format:i||"pbf",origin:o,lods:p,spatialReference:n})}var ie=r(51785),se=r(7575);let oe,ne;function le(e){const t=(0,se.Sh)(e);for(;t.length>1;){const e=ae(t.shift());if(e.available)return e}return ae(t.shift())}function ae(e){switch(e){case se.zO.WEBGL1:return oe||(oe=function(){const e=new he,t=pe(se.zO.WEBGL1,e);return null==t||(e.supportsElementIndexUint=null!==t.getExtension("OES_element_index_uint"),e.supportsStandardDerivatives=null!==t.getExtension("OES_standard_derivatives"),e.supportsInstancedArrays=null!==t.getExtension("ANGLE_instanced_arrays"),e.supportsTextureFloat=null!==t.getExtension("OES_texture_float"),e.supportsTextureHalfFloat=null!==t.getExtension("OES_texture_half_float"),e.supportsColorBufferFloat=null!==t.getExtension("WEBGL_color_buffer_float"),e.supportsColorBufferFloatBlend=null!==t.getExtension("EXT_float_blend"),e.supportsColorBufferHalfFloat=null!==t.getExtension("EXT_color_buffer_half_float")),e}()),oe;case se.zO.WEBGL2:return ne||(ne=function(){const e=new ce,t=pe(se.zO.WEBGL2,e);return null==t||(e.supportsColorBufferFloat=null!==t.getExtension("EXT_color_buffer_float"),e.supportsColorBufferFloatBlend=null!==t.getExtension("EXT_float_blend"),e.supportsColorBufferHalfFloat=e.supportsColorBufferFloat||null!==t.getExtension("EXT_color_buffer_half_float")),e}()),ne}}class ue{constructor(){this.available=!1,this.majorPerformanceCaveat=!1,this.maxTextureSize=0,this.supportsVertexShaderSamplers=!1,this.supportsHighPrecisionFragment=!1,this.supportsElementIndexUint=!1,this.supportsStandardDerivatives=!1,this.supportsInstancedArrays=!1,this.supportsTextureFloat=!1,this.supportsTextureHalfFloat=!1,this.supportsColorBufferFloat=!1,this.supportsColorBufferFloatBlend=!1,this.supportsColorBufferHalfFloat=!1}}class he extends ue{constructor(){super(...arguments),this.type=se.zO.WEBGL1}}class ce extends ue{constructor(){super(...arguments),this.type=se.zO.WEBGL2,this.supportsElementIndexUint=!0,this.supportsStandardDerivatives=!0,this.supportsInstancedArrays=!0,this.supportsTextureFloat=!0,this.supportsTextureHalfFloat=!0}}function pe(e,t){if(e===se.zO.WEBGL1&&"undefined"==typeof WebGLRenderingContext||e===se.zO.WEBGL2&&"undefined"==typeof WebGL2RenderingContext)return null;const r=document.createElement("canvas");if(!r)return null;let i=(0,se.kr)(r,e,{failIfMajorPerformanceCaveat:!0});if(null==i&&(i=(0,se.kr)(r,e),null!=i&&(t.majorPerformanceCaveat=!0)),null==i)return i;if(e===se.zO.WEBGL1){const e=i.getParameter(i.VERSION),r=e?.match(/^WebGL\s+([\d.]*)/);if(r){const e=parseFloat(r[1]);t.available=e>=.94}}else t.available=!0;t.maxTextureSize=i.getParameter(i.MAX_TEXTURE_SIZE),t.supportsVertexShaderSamplers=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS)>0;const s=i.getShaderPrecisionFormat(i.FRAGMENT_SHADER,i.HIGH_FLOAT);return s&&(t.supportsHighPrecisionFragment=s.precision>0),i}let de=class extends((0,w.h)((0,I.M)((0,v.Z)((0,S.Y)((0,x.q)((0,A.I)((0,b.N)((0,_.V)((0,a.R)(g.Z)))))))))){constructor(...e){super(...e),this._spriteSourceMap=new Map,this.currentStyleInfo=null,this.isReference=null,this.operationalLayerType="VectorTileLayer",this.style=null,this.tilemapCache=null,this.type="vector-tile",this.url=null,this.path=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){if(this.sourceNameToSource)for(const e of Object.values(this.sourceNameToSource))e?.destroy();this.primarySource?.destroy(),this._spriteSourceMap.clear()}async prefetchResources(e){await this.loadSpriteSource(globalThis.devicePixelRatio||1,e)}load(e){const t=this.loadFromPortal({supportedTypes:["Vector Tile Service"],supportsData:!1},e).catch(u.r9).then((async()=>{if(!this.portalItem||!this.portalItem.id)return;const t=`${this.portalItem.itemCdnUrl}/resources/styles/root.json`;(await(0,s.Z)(t,{...e,query:{f:"json",...this.customParameters,token:this.apiKey}})).data&&this.read({url:t},(0,J.h)(this.portalItem))})).catch(u.r9).then((()=>this._loadStyle(e)));return this.addResolvingPromise(t),Promise.resolve(this)}get attributionDataUrl(){const e=this.currentStyleInfo,t=e&&e.serviceUrl&&(0,h.mN)(e.serviceUrl);if(!t)return null;const r=this._getDefaultAttribution(t.path);return r?(0,h.fl)(r,{...this.customParameters,token:this.apiKey}):null}get capabilities(){const e=this.primarySource;return e?e.capabilities:{operations:{supportsExportTiles:!1,supportsTileMap:!1},exportTiles:null}}get fullExtent(){return this.primarySource?.fullExtent||null}get initialExtent(){return this.primarySource?.initialExtent||null}get parsedUrl(){return this.serviceUrl?(0,h.mN)(this.serviceUrl):null}get serviceUrl(){return this.currentStyleInfo&&this.currentStyleInfo.serviceUrl||null}get spatialReference(){return this.tileInfo?.spatialReference??null}get styleUrl(){return this.currentStyleInfo&&this.currentStyleInfo.styleUrl||null}writeStyleUrl(e,t){e&&(0,h.oC)(e)&&(e=`https:${e}`);const r=(0,V.a)(e);t.styleUrl=(0,H.e)(e,r)}get tileInfo(){const e=[];for(const t in this.sourceNameToSource)e.push(this.sourceNameToSource[t]);let t=this.primarySource?.tileInfo||new D.Z;if(e.length>1)for(let r=0;r<e.length;r++)te(t,e[r].tileInfo)&&(t=re(t,e[r].tileInfo));return t}readTilemapCache(e,t){const r=t.capabilities?.includes("Tilemap");return r?new z.y({layer:this}):null}readVersion(e,t){return t.version?parseFloat(t.version):parseFloat(t.currentVersion)}async loadSpriteSource(e=1,t){if(!this._spriteSourceMap.has(e)){const r=le("2d").maxTextureSize,i=this.currentStyleInfo?.spriteUrl?(0,h.fl)(this.currentStyleInfo.spriteUrl,{...this.customParameters,token:this.apiKey}):null,s=new R({type:"url",spriteUrl:i,pixelRatio:e,spriteFormat:this.currentStyleInfo?.spriteFormat},r);await s.load(t),this._spriteSourceMap.set(e,s)}return this._spriteSourceMap.get(e)}async setSpriteSource(e,t){if(!e)return null;const r=le("2d").maxTextureSize,i=e.spriteUrl,s=i?(0,h.fl)(i,{...this.customParameters,token:this.apiKey}):null;if(!s&&"url"===e.type)return null;const o=new R(e,r);try{await o.load(t);const r=e.pixelRatio||1;return this._spriteSourceMap.clear(),this._spriteSourceMap.set(r,o),s&&this.currentStyleInfo&&(this.currentStyleInfo.spriteUrl=s),this.emit("spriteSource-change",{spriteSource:o}),o}catch(e){(0,u.r9)(e)}return null}async loadStyle(e,t){const r=e||this.style||this.url;return this._loadingTask&&"string"==typeof r&&this.url===r||(this._loadingTask?.abort(),this._loadingTask=(0,o.vr)((e=>(this._spriteSourceMap.clear(),this._getSourceAndStyle(r,{signal:e}))),t)),this._loadingTask.promise}getStyleLayerId(e){return this.styleRepository.getStyleLayerId(e)}getStyleLayerIndex(e){return this.styleRepository.getStyleLayerIndex(e)}getPaintProperties(e){return(0,l.d9)(this.styleRepository.getPaintProperties(e))}setPaintProperties(e,t){const r=this.styleRepository.isPainterDataDriven(e);this.styleRepository.setPaintProperties(e,t);const i=this.styleRepository.isPainterDataDriven(e);this.emit("paint-change",{layer:e,paint:t,isDataDriven:r||i})}getStyleLayer(e){return(0,l.d9)(this.styleRepository.getStyleLayer(e))}setStyleLayer(e,t){this.styleRepository.setStyleLayer(e,t),this.emit("style-layer-change",{layer:e,index:t})}deleteStyleLayer(e){this.styleRepository.deleteStyleLayer(e),this.emit("delete-style-layer",{layer:e})}getLayoutProperties(e){return(0,l.d9)(this.styleRepository.getLayoutProperties(e))}setLayoutProperties(e,t){this.styleRepository.setLayoutProperties(e,t),this.emit("layout-change",{layer:e,layout:t})}setStyleLayerVisibility(e,t){this.styleRepository.setStyleLayerVisibility(e,t),this.emit("style-layer-visibility-change",{layer:e,visibility:t})}getStyleLayerVisibility(e){return this.styleRepository.getStyleLayerVisibility(e)}write(e,t){return t?.origin&&!this.styleUrl?(t.messages&&t.messages.push(new n.Z("vectortilelayer:unsupported",`VectorTileLayer (${this.title}, ${this.id}) with style defined by JSON only are not supported`,{layer:this})),null):super.write(e,t)}getTileUrl(e,t,r){return null}async _getSourceAndStyle(e,t){if(!e)throw new Error("invalid style!");const r=await async function(e,t){const r={source:null,sourceBase:null,sourceUrl:null,validatedSource:null,style:null,styleBase:null,styleUrl:null,sourceNameToSource:{},primarySourceName:"",spriteFormat:"png"},[i,s]="string"==typeof e?[e,null]:[null,e.jsonUrl];return await $(r,"esri",e,s,t),{layerDefinition:r.validatedSource,url:i,serviceUrl:r.sourceUrl,style:r.style,styleUrl:r.styleUrl,spriteUrl:r.style.sprite&&G(r.styleBase,r.style.sprite),spriteFormat:r.spriteFormat,glyphsUrl:r.style.glyphs&&G(r.styleBase,r.style.glyphs),sourceNameToSource:r.sourceNameToSource,primarySourceName:r.primarySourceName}}(e,{...t,query:{...this.customParameters,token:this.apiKey}});"webp"===r.spriteFormat&&(await function(e){if(T)return T;const t={lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};return T=new Promise((e=>{const r=new Image;r.onload=()=>{r.onload=r.onerror=null,e(r.width>0&&r.height>0)},r.onerror=()=>{r.onload=r.onerror=null,e(!1)},r.src="data:image/webp;base64,"+t.lossy})),T}()||(r.spriteFormat="png")),this._set("currentStyleInfo",{...r}),"string"==typeof e?(this.url=e,this.style=null):(this.url=null,this.style=e),this._set("sourceNameToSource",r.sourceNameToSource),this._set("primarySource",r.sourceNameToSource[r.primarySourceName]),this._set("styleRepository",new ie.Z(r.style)),this.read(r.layerDefinition,{origin:"service"}),this.emit("load-style")}_getDefaultAttribution(e){const t=e.match(/^https?:\/\/(?:basemaps|basemapsbeta|basemapsdev)(?:-api)?\.arcgis\.com(\/[^\/]+)?\/arcgis\/rest\/services\/([^\/]+(\/[^\/]+)*)\/vectortileserver/i),r=["OpenStreetMap_v2","OpenStreetMap_Daylight_v2","OpenStreetMap_Export_v2","OpenStreetMap_FTS_v2","OpenStreetMap_GCS_v2","World_Basemap","World_Basemap_v2","World_Basemap_Export_v2","World_Basemap_GCS_v2","World_Basemap_WGS84","World_Contours_v2"];if(!t)return;const i=t[2]&&t[2].toLowerCase();if(!i)return;const s=t[1]||"";for(const e of r)if(e.toLowerCase().includes(i))return(0,h.Fv)(`//static.arcgis.com/attribution/Vector${s}/${e}`)}async _loadStyle(e){return this._loadingTask?.promise??this.loadStyle(null,e)}};(0,i._)([(0,c.Cb)({readOnly:!0})],de.prototype,"attributionDataUrl",null),(0,i._)([(0,c.Cb)({type:["show","hide"]})],de.prototype,"listMode",void 0),(0,i._)([(0,c.Cb)({json:{read:!0,write:!0}})],de.prototype,"blendMode",void 0),(0,i._)([(0,c.Cb)({readOnly:!0,json:{read:!1}})],de.prototype,"capabilities",null),(0,i._)([(0,c.Cb)({readOnly:!0})],de.prototype,"currentStyleInfo",void 0),(0,i._)([(0,c.Cb)({json:{read:!1},readOnly:!0,type:m.Z})],de.prototype,"fullExtent",null),(0,i._)([(0,c.Cb)({json:{read:!1},readOnly:!0,type:m.Z})],de.prototype,"initialExtent",null),(0,i._)([(0,c.Cb)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],de.prototype,"isReference",void 0),(0,i._)([(0,c.Cb)({type:["VectorTileLayer"]})],de.prototype,"operationalLayerType",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],de.prototype,"parsedUrl",null),(0,i._)([(0,c.Cb)()],de.prototype,"style",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],de.prototype,"serviceUrl",null),(0,i._)([(0,c.Cb)({type:f.Z,readOnly:!0})],de.prototype,"spatialReference",null),(0,i._)([(0,c.Cb)({readOnly:!0})],de.prototype,"styleRepository",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],de.prototype,"sourceNameToSource",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],de.prototype,"primarySource",void 0),(0,i._)([(0,c.Cb)({type:String,readOnly:!0,json:{write:{ignoreOrigin:!0},origins:{"web-document":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],de.prototype,"styleUrl",null),(0,i._)([(0,y.c)(["portal-item","web-document"],"styleUrl")],de.prototype,"writeStyleUrl",null),(0,i._)([(0,c.Cb)({json:{read:!1,origins:{service:{read:!1}}},readOnly:!0,type:D.Z})],de.prototype,"tileInfo",null),(0,i._)([(0,c.Cb)()],de.prototype,"tilemapCache",void 0),(0,i._)([(0,p.r)("service","tilemapCache",["capabilities","tileInfo"])],de.prototype,"readTilemapCache",null),(0,i._)([(0,c.Cb)({json:{read:!1},readOnly:!0,value:"vector-tile"})],de.prototype,"type",void 0),(0,i._)([(0,c.Cb)({json:{origins:{"web-document":{read:{source:"styleUrl"}},"portal-item":{read:{source:"url"}}},write:!1,read:!1}})],de.prototype,"url",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],de.prototype,"version",void 0),(0,i._)([(0,p.r)("version",["version","currentVersion"])],de.prototype,"readVersion",null),(0,i._)([(0,c.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],de.prototype,"path",void 0),de=(0,i._)([(0,d.j)("esri.layers.VectorTileLayer")],de);const ye=de},54295:(e,t,r)=>{r.d(t,{V:()=>n});var i=r(43697),s=r(5600),o=(r(75215),r(67676),r(80442),r(52011));const n=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i._)([(0,s.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,i._)([(0,o.j)("esri.layers.mixins.APIKeyMixin")],t),t}},46486:(e,t,r)=>{r.d(t,{Z:()=>c});var i=r(43697),s=(r(66577),r(5600)),o=(r(75215),r(67676),r(80442),r(71715)),n=r(52011),l=r(11145),a=r(42238),u=r(28589),h=r(82971);const c=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}destroy(){this.tilemapCache?.destroy?.()}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t,r){const i=t.capabilities?.includes("Tilemap");let{minLOD:s,maxLOD:o,minScale:n,maxScale:h}=t;if(null==s&&null==o&&0!==n&&0!==h){const e=e=>Math.round(1e4*e)/1e4;n=e(n||t.tileInfo.lods[0].scale),h=e(h||t.tileInfo.lods[t.tileInfo.lods.length-1].scale);for(const r of t.tileInfo.lods){const t=e(r.scale);s=t>=n?r.level:s,o=t>=h?r.level:o}}if(i)return new u.y({layer:this,minLOD:s,maxLOD:o});if(t.tileInfo){const e=new l.Z;return e.read(t.tileInfo,r),new a.Z(e,s,o)}return null}};return(0,i._)([(0,s.Cb)({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,i._)([(0,s.Cb)()],t.prototype,"minScale",void 0),(0,i._)([(0,o.r)("service","minScale")],t.prototype,"readMinScale",null),(0,i._)([(0,s.Cb)()],t.prototype,"maxScale",void 0),(0,i._)([(0,o.r)("service","maxScale")],t.prototype,"readMaxScale",null),(0,i._)([(0,s.Cb)({type:h.Z})],t.prototype,"spatialReference",void 0),(0,i._)([(0,s.Cb)({readOnly:!0})],t.prototype,"supportsBlankTile",null),(0,i._)([(0,s.Cb)({type:l.Z})],t.prototype,"tileInfo",void 0),(0,i._)([(0,s.Cb)()],t.prototype,"tilemapCache",void 0),(0,i._)([(0,o.r)("service","tilemapCache",["capabilities","tileInfo"])],t.prototype,"readTilemapCache",null),(0,i._)([(0,s.Cb)()],t.prototype,"version",void 0),t=(0,i._)([(0,n.j)("esri.layers.mixins.ArcGISCachedService")],t),t}},17017:(e,t,r)=>{r.d(t,{N:()=>n});var i=r(43697),s=r(5600),o=(r(75215),r(67676),r(80442),r(52011));const n=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,s.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,o.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},42238:(e,t,r)=>{r.d(t,{Z:()=>o});var i=r(20102),s=r(95330);class o{constructor(e,t=0,r=e.lods[e.lods.length-1].level){this.tileInfo=e,this.minLOD=t,this.maxLOD=r,e.lodAt(t)||(this.minLOD=e.lods[0].level),e.lodAt(r)||(this.maxLOD=e.lods[e.lods.length-1].level)}get effectiveMinLOD(){return this.minLOD??this.tileInfo.lods[0].level}get effectiveMaxLOD(){return this.maxLOD??this.tileInfo.lods[this.tileInfo.lods.length-1].level}getAvailability(e,t,r){const i=this.tileInfo?.lodAt(e);return!i||e<this.minLOD||e>this.maxLOD?"unavailable":i.cols&&i.rows?r>=i.cols[0]&&r<=i.cols[1]&&t>=i.rows[0]&&t<=i.rows[1]?"unknown":"unavailable":"unknown"}async fetchAvailability(e,t,r,o){await(0,s.Yn)(o);const n=this.getAvailability(e,t,r);if("unavailable"===n)throw new i.Z("tile-map:tile-unavailable","Tile is not available",{level:e,row:t,col:r});return n}async fetchAvailabilityUpsample(e,t,r,i,o){await(0,s.Yn)(o),i.level=e,i.row=t,i.col=r;const n=this.tileInfo;return n.updateTileInfo(i),this.fetchAvailability(e,t,r,o).catch((e=>{if((0,s.D_)(e))throw e;if(n.upsampleTile(i))return this.fetchAvailabilityUpsample(i.level,i.row,i.col,i,o);throw e}))}}},33516:(e,t,r)=>{r.d(t,{Y:()=>n,h:()=>o});var i=r(17452),s=r(48522);function o(e){return{origin:"portal-item",url:(0,i.mN)(e.itemUrl),portal:e.portal||s.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function n(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,i.mN)(e.itemUrl):null,portal:e.portal||s.Z.getDefault(),portalItem:e}}},55415:(e,t,r)=>{r.d(t,{Z:()=>s});var i=r(71143);class s{static getId(e,t,r,i){return"object"==typeof e?`${e.level}/${e.row}/${e.col}/${e.world}`:`${e}/${t}/${r}/${i}`}constructor(e,t,r,i){this.set(e,t,r,i)}get key(){return this}get id(){return this.toString()}set id(e){this.set(e)}get hash(){const e=4095&this.row,t=4095&this.col,r=63&this.level;return(3&this.world)<<30|t<<22|e<<8|r}acquire(e,t,r,i){this.set(e,t,r,i)}contains(e){const t=e.level-this.level;return t>=0&&this.row===e.row>>t&&this.col===e.col>>t&&this.world===e.world}equals(e){return this.level===e.level&&this.row===e.row&&this.col===e.col&&this.world===e.world}clone(){return new s(this)}release(){this.level=0,this.row=0,this.col=0,this.world=0}set(e,t,r,i){if(null==e)this.level=0,this.row=0,this.col=0,this.world=0;else if("object"==typeof e)this.level=e.level||0,this.row=e.row||0,this.col=e.col||0,this.world=e.world||0;else if("string"==typeof e){const[t,r,i,s]=e.split("/");this.level=parseFloat(t),this.row=parseFloat(r),this.col=parseFloat(i),this.world=parseFloat(s)}else this.level=+e,this.row=+t,this.col=+r,this.world=+i||0;return this}toString(){return`${this.level}/${this.row}/${this.col}/${this.world}`}getParentKey(){return this.level<=0?null:new s(this.level-1,this.row>>1,this.col>>1,this.world)}getChildKeys(){const e=this.level+1,t=this.row<<1,r=this.col<<1,i=this.world;return[new s(e,t,r,i),new s(e,t,r+1,i),new s(e,t+1,r,i),new s(e,t+1,r+1,i)]}compareRowMajor(e){return this.row<e.row?-1:this.row>e.row?1:this.col<e.col?-1:this.col>e.col?1:0}}s.pool=new i.Z(s,null,null,25,50)},7575:(e,t,r)=>{r.d(t,{Sh:()=>n,kr:()=>o,zO:()=>i});var i,s=r(80442);function o(e,t,r={}){const s=t===i.WEBGL1?["webgl","experimental-webgl","webkit-3d","moz-webgl"]:["webgl2"];for(const t of s){const i=e.getContext(t,r);if(i)return i}return null}function n(e){if("3d"===e)return[i.WEBGL2];const t=(0,s.Z)("esri-force-webgl");return t===i.WEBGL1||t===i.WEBGL2?[t]:(0,s.Z)("mac")&&(0,s.Z)("chrome")?[i.WEBGL1,i.WEBGL2]:[i.WEBGL2,i.WEBGL1]}!function(e){e[e.WEBGL1=1]="WEBGL1",e[e.WEBGL2=2]="WEBGL2"}(i||(i={}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4330],{65845:(e,t,r)=>{r.d(t,{D:()=>n});var a=r(81153);function n(e){e&&e.writtenProperties&&e.writtenProperties.forEach((({target:e,propName:t,newOrigin:r})=>{(0,a.l)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)}))}},81153:(e,t,r)=>{function a(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{l:()=>a})},94330:(e,t,r)=>{r.d(t,{save:()=>c,saveAs:()=>m});var a=r(64383),n=r(14661);const o="Stream Service",i="stream-layer-save",l="stream-layer-save-as";function s(e){return{isValid:"stream"===e.type&&!!e.url&&!e.webSocketUrl,errorMessage:"Stream layer should be created using a url to a stream service"}}function u(e){const t=e.layerJSON;return Promise.resolve(t&&Object.keys(t).length?t:null)}async function p(e,t){const{parsedUrl:r,title:a,fullExtent:o}=e;t.url=r.path,t.title||=a,t.extent=null,null!=o&&(t.extent=await(0,n.$o)(o)),(0,n.qj)(t,n.Kz.SINGLE_LAYER)}async function c(e,t){return(0,a.a1)({layer:e,itemType:o,validateLayer:s,createItemData:u,errorNamePrefix:i},t)}async function m(e,t,r){return(0,a.po)({layer:e,itemType:o,validateLayer:s,createItemData:u,errorNamePrefix:l,newItem:t,setItemProperties:p},r)}},64383:(e,t,r)=>{r.d(t,{a1:()=>w,po:()=>g});var a=r(20102),n=r(65845),o=r(48522),i=r(15235),l=r(33516),s=r(14661);async function u(e){const{layer:t,errorNamePrefix:r,validateLayer:n}=e;await t.load(),function(e,t,r){const n=r(e);if(!n.isValid)throw new a.Z(`${t}:invalid-parameters`,n.errorMessage,{layer:e})}(t,r,n)}function p(e,t){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${t}`}function c(e,t,r,n){if(e.type!==r)throw new a.Z(`${t}:portal-item-wrong-type`,`Portal item type should be "${r}"`,{item:e,layer:n})}function m(e,t,r){const{portalItem:n}=e;if(!n)throw new a.Z(`${t}:portal-item-not-set`,p(e,"requires the portalItem property to be set"));if(!n.loaded)throw new a.Z(`${t}:portal-item-not-loaded`,p(e,"cannot be saved to a portal item that does not exist or is inaccessible"));c(n,t,r,e)}function d(e,t,r,a){let n=i.default.from(e);return n.id&&(n=n.clone(),n.id=null),n.type??=r,n.portal??=o.Z.getDefault(),c(n,t,r,a),n}async function f(e,t,r){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();const n=e.write({},t);return function(e,t){let r=(e.messages??[]).filter((({type:e})=>"error"===e)).map((({name:e,message:t,details:r})=>new a.Z(e,t,r)));if(t?.ignoreUnsupported&&(r=r.filter((({name:e})=>"layer:unsupported"!==e&&"symbol:unsupported"!==e&&"symbol-layer:unsupported"!==e&&"property:unsupported"!==e&&"url:unsupported"!==e))),r.length>0)throw new a.Z("layer-write:unsupported","Failed to save layer due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:r})}(t,r),n}function y(e){(0,s.qj)(e,s.Kz.JSAPI),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter(((e,t,r)=>r.indexOf(e)===t)))}async function w(e,t){const{layer:r,createItemData:a,errorNamePrefix:o,itemType:i}=e;await u(e),m(r,o,i);const s=r.portalItem,p=(0,l.Y)(s),c=await f(r,p,t),d=await a({layer:r,layerJSON:c},s);return y(s),await s.update({data:d}),(0,n.D)(p),s}async function g(e,t){const{layer:r,createItemData:a,setItemProperties:o,newItem:i,errorNamePrefix:s,itemType:p}=e;await u(e);const c=d(i,s,p,r),m=(0,l.Y)(c),w=await f(r,m,t),g=await a({layer:r,layerJSON:w},c);return await o(r,c),y(c),await async function(e,t,r){const a=e.portal;await a.signIn(),await(a.user?.addItem({item:e,data:t,folder:r?.folder}))}(c,g,t),r.portalItem=c,(0,n.D)(m),c}},33516:(e,t,r)=>{r.d(t,{Y:()=>i,h:()=>o});var a=r(17452),n=r(48522);function o(e){return{origin:"portal-item",url:(0,a.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function i(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,a.mN)(e.itemUrl):null,portal:e.portal||n.Z.getDefault(),portalItem:e}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4828,5732],{92835:(t,e,n)=>{n.d(e,{Z:()=>p});var r,o=n(43697),i=n(96674),s=n(35463),a=n(5600),l=(n(75215),n(67676),n(80442),n(71715)),u=n(52011),c=n(30556);let h=r=class extends i.wq{static get allTime(){return d}static get empty(){return m}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(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=t.start?.getTime()??t.start,o=t.end?.getTime()??t.end;return e===r&&n===o}expandTo(t,e="system"){if(this.isEmpty||this.isAllTime)return this.clone();let n=this.start;n&&(n=(0,s.JE)(n,t,e));let o=this.end;if(o){const n=(0,s.JE)(o,t,e);o=o.getTime()===n.getTime()?n:(0,s.Nm)(n,1,t,e)}return new r({start:n,end:o})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return r.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,o=t.start?.getTime()??-1/0,i=t.end?.getTime()??1/0;let s,a;if(o>=e&&o<=n?s=o:e>=o&&e<=i&&(s=e),n>=o&&n<=i?a=n:i>=e&&i<=n&&(a=i),null!=s&&null!=a&&!isNaN(s)&&!isNaN(a)){const t=new r;return t.start=s===-1/0?null:new Date(s),t.end=a===1/0?null:new Date(a),t}return r.empty}offset(t,e,n="system"){if(this.isEmpty||this.isAllTime)return this.clone();const o=new r,{start:i,end:a}=this;return null!=i&&(o.start=(0,s.Nm)(i,t,e,n)),null!=a&&(o.end=(0,s.Nm)(a,t,e,n)),o}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new r({start:e,end:n})}};(0,o._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,o._)([(0,l.r)("end")],h.prototype,"readEnd",null),(0,o._)([(0,c.c)("end")],h.prototype,"writeEnd",null),(0,o._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,o._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,o._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,o._)([(0,l.r)("start")],h.prototype,"readStart",null),(0,o._)([(0,c.c)("start")],h.prototype,"writeStart",null),h=r=(0,o._)([(0,u.j)("esri.TimeExtent")],h);const d=new h,m=new h({start:void 0,end:void 0}),p=h},5732:(t,e,n)=>{n.d(e,{c:()=>r,g:()=>o});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},21787:(t,e,n)=>{n.d(e,{b:()=>l,c:()=>i,d:()=>c,e:()=>a,f:()=>o,i:()=>d,m:()=>u,t:()=>s});var r=n(46851);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function i(t,e,n,r,o,i,s,a,l,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=s,t[6]=a,t[7]=l,t[8]=u,t}function s(t,e){if(t===e){const n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=c*s-a*u,d=-c*i+a*l,m=u*i-s*l;let p=n*h+r*d+o*m;return p?(p=1/p,t[0]=h*p,t[1]=(-c*r+o*u)*p,t[2]=(a*r-o*s)*p,t[3]=d*p,t[4]=(c*n-o*l)*p,t[5]=(-a*n+o*i)*p,t[6]=m*p,t[7]=(-u*n+r*l)*p,t[8]=(s*n-r*i)*p,t):null}function l(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8];return t[0]=s*c-a*u,t[1]=o*u-r*c,t[2]=r*a-o*s,t[3]=a*l-i*c,t[4]=n*c-o*l,t[5]=o*i-n*a,t[6]=i*u-s*l,t[7]=r*l-n*u,t[8]=n*s-r*i,t}function u(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],m=n[1],p=n[2],f=n[3],y=n[4],g=n[5],_=n[6],x=n[7],v=n[8];return t[0]=d*r+m*s+p*u,t[1]=d*o+m*a+p*c,t[2]=d*i+m*l+p*h,t[3]=f*r+y*s+g*u,t[4]=f*o+y*a+g*c,t[5]=f*i+y*l+g*h,t[6]=_*r+x*s+v*u,t[7]=_*o+x*a+v*c,t[8]=_*i+x*l+v*h,t}function c(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=e[4],a=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],m=e[11],p=e[12],f=e[13],y=e[14],g=e[15],_=n*a-r*s,x=n*l-o*s,v=n*u-i*s,b=r*l-o*a,M=r*u-i*a,w=o*u-i*l,P=c*f-h*p,I=c*y-d*p,R=c*g-m*p,S=h*y-d*f,C=h*g-m*f,T=d*g-m*y;let Z=_*T-x*C+v*S+b*R-M*I+w*P;return Z?(Z=1/Z,t[0]=(a*T-l*C+u*S)*Z,t[1]=(l*R-s*T-u*I)*Z,t[2]=(s*C-a*R+u*P)*Z,t[3]=(o*C-r*T-i*S)*Z,t[4]=(n*T-o*R+i*I)*Z,t[5]=(r*R-n*C-i*P)*Z,t[6]=(f*w-y*M+g*b)*Z,t[7]=(y*v-p*w-g*x)*Z,t[8]=(p*M-f*v+g*_)*Z,t):null}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function d(t){const e=(0,r.g)(),n=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8];return Math.abs(1-(n*n+s*s+u*u))<=e&&Math.abs(1-(o*o+a*a+c*c))<=e&&Math.abs(1-(i*i+l*l+h*h))<=e}const m=u,p=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],i=t[4],s=t[5],a=t[6],l=t[7],u=t[8];return e*(u*i-s*l)+n*(-u*o+s*a)+r*(l*o-i*a)},equals:function(t,e){const n=t[0],o=t[1],i=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8],d=e[0],m=e[1],p=e[2],f=e[3],y=e[4],g=e[5],_=e[6],x=e[7],v=e[8],b=(0,r.g)();return Math.abs(n-d)<=b*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(o-m)<=b*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(i-p)<=b*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(s-f)<=b*Math.max(1,Math.abs(s),Math.abs(f))&&Math.abs(a-y)<=b*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(l-g)<=b*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(u-_)<=b*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(c-x)<=b*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(h-v)<=b*Math.max(1,Math.abs(h),Math.abs(v))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:o,fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[3],s=n+n,a=r+r,l=o+o,u=n*s,c=r*s,h=r*a,d=o*s,m=o*a,p=o*l,f=i*s,y=i*a,g=i*l;return t[0]=1-h-p,t[3]=c-g,t[6]=d+y,t[1]=c+g,t[4]=1-u-p,t[7]=m-f,t[2]=d-y,t[5]=m+f,t[8]=1-u-h,t},fromRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:d,mul:m,multiply:u,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:c,normalFromMat4Legacy:function(t,e){const n=e[0],r=e[1],o=e[2],i=e[4],s=e[5],a=e[6],l=e[8],u=e[9],c=e[10],h=c*s-a*u,d=-c*i+a*l,m=u*i-s*l,p=n*h+r*d+o*m;if(!p)return null;const f=1/p;return t[0]=h*f,t[1]=(-c*r+o*u)*f,t[2]=(a*r-o*s)*f,t[3]=d*f,t[4]=(c*n-o*l)*f,t[5]=(-a*n+o*i)*f,t[6]=m*f,t[7]=(-u*n+r*l)*f,t[8]=(s*n-r*i)*f,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=Math.sin(n),m=Math.cos(n);return t[0]=m*r+d*s,t[1]=m*o+d*a,t[2]=m*i+d*l,t[3]=m*s-d*r,t[4]=m*a-d*o,t[5]=m*l-d*i,t[6]=u,t[7]=c,t[8]=h,t},scale:function(t,e,n){const r=n[0],o=n[1],i=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=i*e[6],t[7]=i*e[7],t[8]=i*e[8],t},scaleByVec2:function(t,e,n){const r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:p,subtract:h,translate:function(t,e,n){const r=e[0],o=e[1],i=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=n[0],m=n[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=s,t[4]=a,t[5]=l,t[6]=d*r+m*s+u,t[7]=d*o+m*a+c,t[8]=d*i+m*l+h,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,i,s,a,l){return[t,e,n,r,o,i,s,a,l]}function i(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>i,c:()=>r,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:i,fromValues:o},Symbol.toStringTag,{value:"Module"}))},25929:(t,e,n)=>{n.d(e,{M:()=>p,a:()=>y,e:()=>d,f:()=>o,i:()=>c,p:()=>h,r:()=>s,t:()=>i,w:()=>a});var r=n(17452);function o(t,e){const n=e&&e.url&&e.url.path;if(t&&n&&(t=(0,r.hF)(t,n,{preserveProtocolRelative:!0}),e.portalItem&&e.readResourcePaths)){const n=(0,r.PF)(t,e.portalItem.itemUrl);null!=n&&u.test(n)&&e.readResourcePaths.push(e.portalItem.resourceFromPath(n).path)}return m(t,e&&e.portal)}function i(t,e,n=p.YES){if(null==t)return t;!(0,r.YP)(t)&&e&&e.blockedRelativeUrls&&e.blockedRelativeUrls.push(t);let o=(0,r.hF)(t);if(e){const n=e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.rootPath||e.url&&e.url.path;if(n){const i=m(n,e.portal),s=m(o,e.portal);o=(0,r.PF)(s,i,i),null!=o&&o!==s&&o!==t&&e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.writtenUrls.push(o)}}return o=d(o,e?.portal),(0,r.YP)(o)&&(o=(0,r.Fv)(o)),e?.resources&&e?.portalItem&&!(0,r.YP)(o)&&!(0,r.HK)(o)&&n===p.YES&&e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(o),compress:!1}),o}function s(t,e,n){return o(t,n)}function a(t,e,n,r){const o=i(t,r);void 0!==o&&(e[n]=o)}const l=/\/items\/([^\/]+)\/resources\/(.*)/,u=/^\.\/resources\//;function c(t){const e=t?.match(l)??null;return e?.[1]??null}function h(t){const e=t?.match(l)??null;if(null==e)return null;const n=e[2],o=n.lastIndexOf("/");if(-1===o){const{path:t,extension:e}=(0,r.fZ)(n);return{prefix:null,filename:t,extension:e}}const{path:i,extension:s}=(0,r.fZ)(n.slice(o+1));return{prefix:n.slice(0,o),filename:i,extension:s}}function d(t,e){return e&&!e.isPortal&&e.urlKey&&e.customBaseUrl?(0,r.Ie)(t,`${e.urlKey}.${e.customBaseUrl}`,e.portalHostname):t}function m(t,e){if(!e||e.isPortal||!e.urlKey||!e.customBaseUrl)return t;const n=`${e.urlKey}.${e.customBaseUrl}`,o=(0,r.TI)();return(0,r.D6)(o,`${o.scheme}://${n}`)?(0,r.Ie)(t,e.portalHostname,n):(0,r.Ie)(t,n,e.portalHostname)}var p,f;(f=p||(p={}))[f.YES=0]="YES",f[f.NO=1]="NO";const y=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return p},ensureMainOnlineDomain:d,fromJSON:o,itemIdFromResourceUrl:c,prefixAndFilenameFromResourceUrl:h,read:s,toJSON:i,write:a},Symbol.toStringTag,{value:"Module"}))},88764:(t,e,n)=>{n.d(e,{q:()=>l});var r,o,i,s=n(5732),a={exports:{}};r=a,o=function(){function t(n,r,o,i,s){for(;i>o;){if(i-o>600){var a=i-o+1,l=r-o+1,u=Math.log(a),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1);t(n,r,Math.max(o,Math.floor(r-l*c/a+h)),Math.min(i,Math.floor(r+(a-l)*c/a+h)),s)}var d=n[r],m=o,p=i;for(e(n,o,r),s(n[i],d)>0&&e(n,o,i);m<p;){for(e(n,m,p),m++,p--;s(n[m],d)<0;)m++;for(;s(n[p],d)>0;)p--}0===s(n[o],d)?e(n,o,p):e(n,++p,i),p<=r&&(o=p+1),r<=p&&(i=p-1)}}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}return function(e,r,o,i,s){t(e,r,o||0,i||e.length-1,s||n)}},void 0!==(i=o())&&(r.exports=i);const l=(0,s.g)(a.exports)},4307:(t,e,n)=>{n.d(e,{d:()=>l,l:()=>d,r:()=>p,s:()=>o,t:()=>m});var r=n(46851);function o(t,e,n){return t[0]=e,t[1]=n,t}function i(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function a(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function l(t,e){const n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function u(t,e){const n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function c(t){const e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function h(t){const e=t[0],n=t[1];return e*e+n*n}function d(t,e,n,r){const o=e[0],i=e[1];return t[0]=o+r*(n[0]-o),t[1]=i+r*(n[1]-i),t}function m(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o+n[4],t[1]=n[1]*r+n[3]*o+n[5],t}function p(t,e,n,r){const o=e[0]-n[0],i=e[1]-n[1],s=Math.sin(r),a=Math.cos(r);return t[0]=o*a-i*s+n[0],t[1]=o*s+i*a+n[1],t}const f=c,y=i,g=s,_=a,x=l,v=u,b=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},angle:function(t,e){const n=t[0],r=t[1],o=e[0],i=e[1];let s=n*n+r*r;s>0&&(s=1/Math.sqrt(s));let a=o*o+i*i;a>0&&(a=1/Math.sqrt(a));const l=(n*o+r*i)*s*a;return l>1?0:l<-1?Math.PI:Math.acos(l)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,n){const r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},dist:x,distance:l,div:_,divide:a,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const n=t[0],o=t[1],i=e[0],s=e[1],a=(0,r.g)();return Math.abs(n-i)<=a*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(o-s)<=a*Math.max(1,Math.abs(o),Math.abs(s))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:f,length:c,lerp:d,max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},mul:g,multiply:s,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const n=e[0],r=e[1];let o=n*n+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o),t},projectAndScale:function(t,e,n,r,o){let i=e[0]-n[0],s=e[1]-n[1];const a=(r[0]*i+r[1]*s)*(o-1);return i=r[0]*a,s=r[1]*a,t[0]=e[0]+i,t[1]=e[1]+s,t},random:function(t,e){e=e||1;const n=2*(0,r.R)()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},rotate:p,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},set:o,sqrDist:v,sqrLen:b,squaredDistance:u,squaredLength:h,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:y,subtract:i,transformMat2:function(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o,t[1]=n[1]*r+n[3]*o,t},transformMat2d:m,transformMat3:function(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[3]*o+n[6],t[1]=n[1]*r+n[4]*o+n[7],t},transformMat4:function(t,e,n){const r=e[0],o=e[1];return t[0]=n[0]*r+n[4]*o+n[12],t[1]=n[1]*r+n[5]*o+n[13],t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function r(){return[0,0]}function o(t,e){return[t,e]}function i(t,e){return new Float64Array(t,e,2)}function s(){return o(1,1)}function a(){return o(1,0)}function l(){return o(0,1)}n.d(e,{a:()=>r,c:()=>i,f:()=>o});const u=s(),c=a(),h=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:h,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:i,fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:s,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},10699:(t,e,n)=>{n.d(e,{IG:()=>s,iv:()=>a});var r=n(43697),o=n(52011);let i=0;const s=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+i++})}};return e=(0,r._)([(0,o.j)("esri.core.Identifiable")],e),e},a=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:i++})}};return e=(0,r._)([(0,o.j)("esri.core.NumericIdentifiable")],e),e};let l=class extends(s(class{})){};l=(0,r._)([(0,o.j)("esri.core.Identifiable")],l)},70921:(t,e,n)=>{n.d(e,{R:()=>i,Z:()=>o});var r=n(46791);function o(t,e,n=r.Z){return e||(e=new n),e===t||(e.removeAll(),(o=t)&&(Array.isArray(o)||"items"in o&&Array.isArray(o.items))?e.addMany(t):t&&e.add(t)),e;var o}function i(t){return t}},70163:(t,e,n)=>{n.d(e,{Jl:()=>c,n$:()=>h});var r=n(3172),o=n(20102),i=n(95330),s=n(17452),a=n(49917);let l=null,u=!0;function c(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(t,e,n)}catch(t){u=!1}const o=function(t,e,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(t,e)}(e,n,r);return o.data.set(t,0),o}async function h(t,e){const{arrayBuffer:l,mediaType:u}=await async function(t,e){const n=(0,s.sJ)(t);if(n?.isBase64)return{arrayBuffer:(0,a.R)(n.data),mediaType:n.mediaType};const o=await(0,r.Z)(t,{responseType:"array-buffer",...e});return{arrayBuffer:o.data,mediaType:o.getHeader("Content-Type")}}(t,e),c="image/png"===u;if("image/gif"===u){const{isAnimatedGIF:t,parseGif:r}=await n.e(3310).then(n.bind(n,83310));if(t(l))return r(l,e)}if(c){const{isAnimatedPNG:t,parseApng:r}=await n.e(4492).then(n.bind(n,54492));if(t(l))return r(l,e)}return async function(t,e){const n=window.URL.createObjectURL(t);try{const{data:t}=await(0,r.Z)(n,{...e,responseType:"image"});return t}catch(t){if(!(0,i.D_)(t))throw new o.Z("invalid-image",`Could not fetch requested image at ${n}`);throw t}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:u}),e)}},24133:(t,e,n)=>{n.d(e,{Q:()=>s});var r=n(67676),o=n(44553),i=n(88764);class s{constructor(t=9,e){this._compareMinX=c,this._compareMinY=h,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),v.prune(),b.prune(),M.prune()}all(t){this._all(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(g(t,n))for(x.clear();n;){for(let o=0,i=n.children.length;o<i;o++){const i=n.children[o],s=n.leaf?r(i):i;g(t,s)&&(n.leaf?e(i):y(t,s)?this._all(i,e):x.push(i))}n=x.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!g(t,e))return!1;for(x.clear();e;){for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],i=e.leaf?n(o):o;if(g(t,i)){if(e.leaf||y(t,i))return!0;x.push(o)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new I([]),this}remove(t){if(!t)return this;let e,n=this._data,o=null,i=0,s=!1;const a=this._toBBox(t);for(b.clear(),M.clear();n||b.length>0;){if(n||(n=b.pop(),o=b.data[b.length-1],i=M.pop()??0,s=!0),n.leaf&&(e=(0,r.cq)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),b.push(n),this._condense(b),this;s||n.leaf||!y(n,a)?o?(i++,n=o.children[i],s=!1):n=null:(b.push(n),M.push(i),i=0,o=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(v.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else v.pushArray(n.children);n=v.pop()??null}}_build(t,e,n,r){const o=n-e+1;let i=this._maxEntries;if(o<=i){const r=new I(t.slice(e,n+1));return a(r,this._toBBox),r}r||(r=Math.ceil(Math.log(o)/Math.log(i)),i=Math.ceil(o/i**(r-1)));const s=new R([]);s.height=r;const l=Math.ceil(o/i),u=l*Math.ceil(Math.sqrt(i));_(t,e,n,u,this._compareMinX);for(let o=e;o<=n;o+=u){const e=Math.min(o+u-1,n);_(t,o,e,l,this._compareMinY);for(let n=o;n<=e;n+=l){const o=Math.min(n+l-1,e);s.children.push(this._build(t,n,o,r-1))}}return a(s,this._toBBox),s}_chooseSubtree(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,o=1/0;for(let i=0,s=e.children.length;i<s;i++){const s=e.children[i],a=d(s),l=p(t,s)-a;l<o?(o=l,r=a<r?a:r,n=s):l===o&&a<r&&(r=a,n=s)}e=n||e.children[0]}return e}_insert(t,e,n){const r=this._toBBox,o=n?t:r(t);b.clear();const i=this._chooseSubtree(o,this._data,e,b);for(i.children.push(t),u(i,o);e>=0&&b.data[e].children.length>this._maxEntries;)this._split(b,e),e--;this._adjustParentBBoxes(o,b,e)}_split(t,e){const n=t.data[e],r=n.children.length,o=this._minEntries;this._chooseSplitAxis(n,o,r);const i=this._chooseSplitIndex(n,o,r);if(!i)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const s=n.children.splice(i,n.children.length-i),l=n.leaf?new I(s):new R(s);l.height=n.height,a(n,this._toBBox),a(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(n,l)}_splitRoot(t,e){this._data=new R([t,e]),this._data.height=t.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,o,i;r=o=1/0;for(let s=e;s<=n-e;s++){const e=l(t,0,s,this._toBBox),a=l(t,s,n,this._toBBox),u=f(e,a),c=d(e)+d(a);u<r?(r=u,i=s,o=c<o?c:o):u===r&&c<o&&(o=c,i=s)}return i}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:c,o=t.leaf?this._compareMinY:h;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,o)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const o=this._toBBox,i=l(t,0,e,o),s=l(t,n-e,n,o);let a=m(i)+m(s);for(let r=e;r<n-e;r++){const e=t.children[r];u(i,t.leaf?o(e):e),a+=m(i)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];u(s,t.leaf?o(e):e),a+=m(s)}return a}_adjustParentBBoxes(t,e,n){for(let r=n;r>=0;r--)u(e.data[r],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const o=t.data[e-1],i=o.children;i.splice((0,r.cq)(i,n,i.length,o.indexHint),1)}else this.clear();else a(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){l(t,0,t.children.length,e,t)}function l(t,e,n,r,o){o||(o=new I([])),o.minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let i,s=e;s<n;s++)i=t.children[s],u(o,t.leaf?r(i):i);return o}function u(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function c(t,e){return t.minX-e.minX}function h(t,e){return t.minY-e.minY}function d(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function f(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),o=Math.min(t.maxX,e.maxX),i=Math.min(t.maxY,e.maxY);return Math.max(0,o-n)*Math.max(0,i-r)}function y(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function _(t,e,n,r,o){const s=[e,n];for(;s.length;){const e=s.pop(),n=s.pop();if(e-n<=r)continue;const a=n+Math.ceil((e-n)/r/2)*r;(0,i.q)(t,a,n,e,o),s.push(n,a,a,e)}}const x=new o.Z,v=new o.Z,b=new o.Z,M=new o.Z({deallocator:void 0});class w{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class P extends w{constructor(){super(...arguments),this.height=1,this.indexHint=new r.SO}}class I extends P{constructor(t){super(),this.children=t,this.leaf=!0}}class R extends P{constructor(t){super(),this.children=t,this.leaf=!1}}},17445:(t,e,n)=>{n.d(e,{N1:()=>d,YP:()=>l,Z_:()=>f,gx:()=>u,nn:()=>y,on:()=>h,tX:()=>g}),n(66643),n(46791);var r=n(91460),o=n(50758),i=n(70586),s=n(95330),a=n(26258);function l(t,e,n={}){return c(t,e,n,m)}function u(t,e,n={}){return c(t,e,n,p)}function c(t,e,n={},r){let o=null;const s=n.once?(t,n)=>{r(t)&&((0,i.hw)(o),e(t,n))}:(t,n)=>{r(t)&&e(t,n)};if(o=(0,a.aQ)(t,s,n.sync,n.equals),n.initial){const e=t();s(e,e)}return o}function h(t,e,n,s={}){let a=null,u=null,c=null;function h(){a&&u&&(u.remove(),s.onListenerRemove?.(a),a=null,u=null)}function d(t){s.once&&s.once&&(0,i.hw)(c),n(t)}const m=l(t,((t,n)=>{h(),(0,r.vT)(t)&&(a=t,u=(0,r.on)(t,e,d),s.onListenerAdd?.(t))}),{sync:s.sync,initial:!0});return c=(0,o.kB)((()=>{m.remove(),h()})),c}function d(t,e){return function(t,e,n){if((0,s.Hc)(n))return Promise.reject((0,s.zE)());const r=t();if(e?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,i.hw)(a)}return new Promise(((r,i)=>{a=(0,o.AL)([(0,s.fu)(n,(()=>{l(),i((0,s.zE)())})),c(t,(t=>{l(),r(t)}),{sync:!1,once:!0},e??m)])}))}(t,p,e)}function m(t){return!0}function p(t){return!!t}n(87538);const f={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},35463:(t,e,n)=>{n.d(e,{JE:()=>a,Nm:()=>s,rJ:()=>l});var r=n(90344),o=n(17126);const i={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function s(t,e,n,i="system"){const s=new o.vF((0,r.f1)(i)),a=o.ou.fromJSDate(t,{zone:s}),l="decades"===n||"centuries"===n?"year":u(n);return"decades"===n&&(e*=10),"centuries"===n&&(e*=100),a.plus({[l]:e}).toJSDate()}function a(t,e,n="system"){const i=new o.vF((0,r.f1)(n)),s=o.ou.fromJSDate(t,{zone:i});if("decades"===e||"centuries"===e){const t=s.startOf("year"),{year:n}=t,r=n-n%("decades"===e?10:100);return t.set({year:r}).toJSDate()}const a=u(e);return s.startOf(a).toJSDate()}function l(t,e,n){return 0===t?0:t*i[e]/i[n]}function u(t){switch(t){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},41123:(t,e,n)=>{n.d(e,{D:()=>o,z:()=>i});const r="randomUUID"in crypto;function o(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function i(){return`{${o()}}`}},73913:(t,e,n)=>{n.d(e,{Sy:()=>l,UZ:()=>s,XZ:()=>a,x3:()=>u});var r=n(58901),o=n(82971),i=n(33955);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.Z.WebMercator}),minus180Line:new r.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.Z({paths:[[[180,-180],[180,180]]],spatialReference:o.Z.WGS84}),minus180Line:new r.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:o.Z.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){const n=u(t);for(const t of n)for(const n of t)n[0]+=e;return t}function u(t){return(0,i.oU)(t)?t.rings:t.paths}},90344:(t,e,n)=>{n.d(e,{LJ:()=>P,Xr:()=>g,Ze:()=>b,f1:()=>S,i$:()=>I,o8:()=>w,p6:()=>M});var r=n(35454),o=n(70171),i=n(17126);const s={year:void 0,month:void 0,day:void 0,weekday:void 0},a={hour:void 0,minute:void 0,second:void 0},l=Intl.DateTimeFormat().resolvedOptions().timeZone,u={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},h={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},p={hour:"numeric",minute:"numeric"},f={...p,second:"numeric"},y={"short-date":c,"short-date-short-time":{...c,...p},"short-date-short-time-24":{...c,...p,hour12:!1},"short-date-long-time":{...c,...f},"short-date-long-time-24":{...c,...f,hour12:!1},"short-date-le":c,"short-date-le-short-time":{...c,...p},"short-date-le-short-time-24":{...c,...p,hour12:!1},"short-date-le-long-time":{...c,...f},"short-date-le-long-time-24":{...c,...f,hour12:!1},"long-month-day-year":h,"long-month-day-year-short-time":{...h,...p},"long-month-day-year-short-time-24":{...h,...p,hour12:!1},"long-month-day-year-long-time":{...h,...f},"long-month-day-year-long-time-24":{...h,...f,hour12:!1},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...p},"day-short-month-year-short-time-24":{...d,...p,hour12:!1},"day-short-month-year-long-time":{...d,...f},"day-short-month-year-long-time-24":{...d,...f,hour12:!1},"long-date":m,"long-date-short-time":{...m,...p},"long-date-short-time-24":{...m,...p,hour12:!1},"long-date-long-time":{...m,...f},"long-date-long-time-24":{...m,...f,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":p,"long-time":f},g=(0,r.w)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),_={ar:"ar-u-nu-latn-ca-gregory"};let x=new WeakMap;const v=y["short-date-short-time"];function b(t){return y[t]}function M(t,e=v){return function(t){let e=x.get(t);if(!e){const n=(0,o.Kd)(),r=_[n]||n,i=R(t);e=new Intl.DateTimeFormat(r,i),x.set(t,e)}return e}(e).format(t)}function w(t,e=v){return M(new Date(t),{...e,...u,...a})}function P(t,e=v){return M(new Date(`1970-01-01T${t}Z`),{...e,...u,...s})}function I(t,e=v){const n=i.ou.fromISO(t,{setZone:!0}),r=(0,o.Kd)(),s=_[r]??r,a=R(e);return n.toLocaleString(a,{locale:s})}function R(t){const e=S(t.timeZone??"system");return{...t,timeZone:e}}function S(t){switch(t){case"system":return l;case"unknown":return"UTC";default:return t}}(0,o.Ze)((()=>{x=new WeakMap}))},87085:(t,e,n)=>{n.d(e,{Z:()=>x});var r=n(43697),o=(n(66577),n(3172)),i=n(20102),s=n(32448),a=n(10699),l=n(83379),u=n(92604),c=n(95330),h=n(17452),d=n(5600),m=(n(75215),n(67676),n(80442),n(52011)),p=n(68773),f=n(6570),y=n(82971);let g=0,_=class extends(s.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.Z(-180,-90,180,90,y.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(3529).then(n.bind(n,63529))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await n.e(8008).then(n.bind(n,28008));try{return await r(e)}catch(t){const n=e&&e.portalItem,r=n&&n.id||"unset",o=n&&n.portal&&n.portal.url||p.default.portalUrl;throw u.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+r+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,c.D_)(t)||u.Z.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 hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,h.mN)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,o.Z)(t,{query:{f:"json"},responseType:"json"})).data;throw new i.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,d.Cb)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,r._)([(0,d.Cb)({type:f.Z})],_.prototype,"fullExtent",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,r._)([(0,d.Cb)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,r._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,r._)([(0,d.Cb)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,r._)([(0,d.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,r._)([(0,d.Cb)({clonable:!1})],_.prototype,"parent",void 0),(0,r._)([(0,d.Cb)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,r._)([(0,d.Cb)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,r._)([(0,d.Cb)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,r._)([(0,d.Cb)({type:y.Z})],_.prototype,"spatialReference",void 0),(0,r._)([(0,d.Cb)({type:String})],_.prototype,"title",void 0),(0,r._)([(0,d.Cb)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,r._)([(0,d.Cb)()],_.prototype,"url",void 0),(0,r._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,r._)([(0,m.j)("esri.layers.Layer")],_);const x=_},57765:(t,e,n)=>{n.r(e),n.d(e,{default:()=>ie});var r=n(43697),o=n(46791),i=n(20102),s=n(92604),a=n(16453),l=n(5600),u=n(90578),c=(n(67676),n(80442),n(71715)),h=n(52011),d=n(30556),m=n(87085),p=n(71612),f=n(38009),y=n(72965),g=n(3172),_=n(70163),x=n(17452),v=n(41123),b=(n(75215),n(10699)),M=n(96674),w=n(83379),P=n(92036),I=n(21787),R=n(46521),S=n(4307),C=n(17896);const T=(0,n(65617).c)(),Z=(0,R.c)(),B=(0,R.c)(),L=(0,R.c)();function O(t,e,n){return(0,C.s)(T,e[0],e[1],1),(0,C.t)(T,T,(0,I.t)(Z,n)),0===T[2]?(0,S.s)(t,T[0],T[1]):(0,S.s)(t,T[0]/T[2],T[1]/T[2])}function j(t,e,n){return E(B,e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]),E(L,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,I.m)(t,(0,I.b)(B,B),L),0!==t[8]&&(t[0]/=t[8],t[1]/=t[8],t[2]/=t[8],t[3]/=t[8],t[4]/=t[8],t[5]/=t[8],t[6]/=t[8],t[7]/=t[8],t[8]/=t[8]),t}function E(t,e,n,r,o,i,s,a,l){(0,I.c)(t,e,r,i,n,o,s,1,1,1),(0,C.s)(T,a,l,1),(0,I.b)(Z,t);const[u,c,h]=(0,C.t)(T,T,(0,I.t)(Z,Z));return(0,I.c)(Z,u,0,0,0,c,0,0,0,h),(0,I.m)(t,Z,t)}var Y=n(62357),D=n(97323),X=n(94139),A=n(38913),U=n(73615),N=n(82971),z=n(2368);let F=class extends z.j{projectOrWarn(t,e){if(null==t)return t;const{geometry:n,pending:r}=(0,U.projectOrLoad)(t,e);return r?null:r||n?n:(s.Z.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:t,sourceSpatialReference:t.spatialReference,targetSpatialReference:e}),null)}};F=(0,r._)([(0,h.j)("esri.layers.support.GeoreferenceBase")],F);const q=F,H=(0,R.c)(),V=(0,D.a)();let J=class extends P.Z{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,r._)([(0,l.Cb)()],J.prototype,"sourcePoint",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],J.prototype,"mapPoint",void 0),J=(0,r._)([(0,h.j)("esri.layers.support.ControlPoint")],J);let k=class extends((0,M.eC)(q)){constructor(t){super(t),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(t,e){const n=N.Z.fromJSON(e.spatialReference),r=(0,R.f)(...e.coefficients,1);return t.map((t=>((0,S.s)(V,t.x,t.y),O(V,V,r),{sourcePoint:t,mapPoint:new X.Z({x:V[0],y:V[1],spatialReference:n})})))}writeControlPoints(t,e,n,r){if(null!=this.transform)null!=t&&W(t[0])&&(e.controlPoints=t.map((t=>{const e=t.sourcePoint;return{x:e.x,y:e.y}})),e.spatialReference=t[0].mapPoint.spatialReference.toJSON(),e.coefficients=this.transform.slice(0,8));else{const t=new i.Z("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration.",{layer:r?.layer,georeference:this});r?.messages?r.messages.push(t):s.Z.getLogger(this).error(t.name,t.message)}}get coords(){if(null==this.controlPoints)return null;const t=this._updateTransform(H);if(null==t||!W(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return function(t,e,n,r){const o=(0,D.f)(0,n),i=(0,D.f)(0,0),s=(0,D.f)(e,0),a=(0,D.f)(e,n);return O(o,o,t),O(i,i,t),O(s,s,t),O(a,a,t),new A.Z({rings:[[o,i,s,a,o]],spatialReference:r})}(t,this.width,this.height,e)}set coords(t){if(null==this.controlPoints||!W(this.controlPoints[0]))return;const e=this.controlPoints[0].mapPoint.spatialReference;if(null==(t=this.projectOrWarn(t,e)))return;const{width:n,height:r}=this,{rings:[[o,i,s,a]]}=t,l={sourcePoint:(0,Y.vW)(0,r),mapPoint:new X.Z({x:o[0],y:o[1],spatialReference:e})},u={sourcePoint:(0,Y.vW)(0,0),mapPoint:new X.Z({x:i[0],y:i[1],spatialReference:e})},c={sourcePoint:(0,Y.vW)(n,0),mapPoint:new X.Z({x:s[0],y:s[1],spatialReference:e})},h={sourcePoint:(0,Y.vW)(n,r),mapPoint:new X.Z({x:a[0],y:a[1],spatialReference:e})};W(l)&&W(u)&&W(c)&&W(h)&&(st(H,l,u,c,h),this.controlPoints=this.controlPoints.map((({sourcePoint:t})=>((0,S.s)(V,t.x,t.y),O(V,V,H),{sourcePoint:t,mapPoint:new X.Z({x:V[0],y:V[1],spatialReference:e})}))))}get inverseTransform(){return null==this.transform?null:(0,I.e)((0,R.c)(),this.transform)}get transform(){return this._updateTransform()}toMap(t){if(null==t||null==this.transform||null==this.controlPoints||!W(this.controlPoints[0]))return null;(0,S.s)(V,t.x,t.y);const e=this.controlPoints[0].mapPoint.spatialReference;return O(V,V,this.transform),new X.Z({x:V[0],y:V[1],spatialReference:e})}toSource(t){if(null==t||null==this.inverseTransform||null==this.controlPoints||!W(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return t=t.normalize(),null==(t=(0,U.projectOrLoad)(t,e).geometry)?null:((0,S.s)(V,t.x,t.y),O(V,V,this.inverseTransform),(0,Y.vW)(V[0],V[1]))}_updateTransform(t){const{controlPoints:e,width:n,height:r}=this;if(!(null!=e&&n>0&&r>0))return null;const[o,i,s,a]=e;if(!W(o))return null;const l=o.mapPoint.spatialReference,u=this._projectControlPoint(i,l),c=this._projectControlPoint(s,l),h=this._projectControlPoint(a,l);if(!u.valid||!c.valid||!h.valid)return null;if(!W(u.controlPoint))return null;null==t&&(t=(0,R.c)());let d=null;return d=W(c.controlPoint)&&W(h.controlPoint)?st(t,o,u.controlPoint,c.controlPoint,h.controlPoint):W(c.controlPoint)?function(t,e,n,r){return it(G,tt,e),it($,et,n),it(K,nt,r),(0,S.l)(Q,G,$,.5),(0,S.r)(Q,K,Q,Math.PI),(0,S.l)(rt,tt,et,.5),(0,S.r)(rt,nt,rt,Math.PI),ct(t,G,$,K,Q,tt,et,nt,rt)}(t,o,u.controlPoint,c.controlPoint):function(t,e,n){return it(G,tt,e),it($,et,n),(0,S.r)(K,$,G,ot),(0,S.r)(Q,G,$,ot),(0,S.r)(nt,et,tt,-ot),(0,S.r)(rt,tt,et,-ot),ct(t,G,$,K,Q,tt,et,nt,rt)}(t,o,u.controlPoint),d.every((t=>0===t))?null:d}_projectControlPoint(t,e){if(!W(t))return{valid:!0,controlPoint:t};const{sourcePoint:n,mapPoint:r}=t,{geometry:o,pending:i}=(0,U.projectOrLoad)(r,e);return i?{valid:!1,controlPoint:null}:i||o?{valid:!0,controlPoint:{sourcePoint:n,mapPoint:o}}:(s.Z.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:t,sourceSpatialReference:r.spatialReference,targetSpatialReference:e}),{valid:!1,controlPoint:null})}};function W(t){return null!=t&&null!=t.sourcePoint&&null!=t.mapPoint}(0,r._)([(0,l.Cb)({type:[J],json:{write:{allowNull:!1,isRequired:!0}}})],k.prototype,"controlPoints",void 0),(0,r._)([(0,c.r)("controlPoints")],k.prototype,"readControlPoints",null),(0,r._)([(0,d.c)("controlPoints")],k.prototype,"writeControlPoints",null),(0,r._)([(0,l.Cb)()],k.prototype,"coords",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],k.prototype,"height",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],k.prototype,"inverseTransform",null),(0,r._)([(0,l.Cb)({readOnly:!0})],k.prototype,"transform",null),(0,r._)([(0,l.Cb)({json:{write:!0}})],k.prototype,"width",void 0),k=(0,r._)([(0,h.j)("esri.layers.support.ControlPointsGeoreference")],k);const G=(0,D.a)(),$=(0,D.a)(),K=(0,D.a)(),Q=(0,D.a)(),tt=(0,D.a)(),et=(0,D.a)(),nt=(0,D.a)(),rt=(0,D.a)(),ot=Math.PI/2;function it(t,e,n){(0,S.s)(t,n.sourcePoint.x,n.sourcePoint.y),(0,S.s)(e,n.mapPoint.x,n.mapPoint.y)}function st(t,e,n,r,o){return it(G,tt,e),it($,et,n),it(K,nt,r),it(Q,rt,o),ct(t,G,$,K,Q,tt,et,nt,rt)}const at=new Array(8).fill(0),lt=new Array(8).fill(0);function ut(t,e,n,r,o){return t[0]=e[0],t[1]=e[1],t[2]=n[0],t[3]=n[1],t[4]=r[0],t[5]=r[1],t[6]=o[0],t[7]=o[1],t}function ct(t,e,n,r,o,i,s,a,l){return j(t,ut(at,e,n,r,o),ut(lt,i,s,a,l))}const ht=k;let dt=class extends q{constructor(t){super(t),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:t,topRight:e,bottomLeft:n,bottomRight:r}=this;if(null==t||null==e||null==n||null==r)return null;const o=t.spatialReference;return e=this.projectOrWarn(e,o),n=this.projectOrWarn(n,o),r=this.projectOrWarn(r,o),null==e||null==n||null==r?null:new A.Z({rings:[[[n.x,n.y],[t.x,t.y],[e.x,e.y],[r.x,r.y],[n.x,n.y]]],spatialReference:o})}set coords(t){const{topLeft:e}=this;if(null==e)return;const n=e.spatialReference;if(null==(t=this.projectOrWarn(t,n)))return;const{rings:[[r,o,i,s]]}=t;this.bottomLeft=new X.Z({x:r[0],y:r[1],spatialReference:n}),this.topLeft=new X.Z({x:o[0],y:o[1],spatialReference:n}),this.topRight=new X.Z({x:i[0],y:i[1],spatialReference:n}),this.bottomRight=new X.Z({x:s[0],y:s[1],spatialReference:n})}};(0,r._)([(0,l.Cb)()],dt.prototype,"coords",null),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"bottomLeft",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"bottomRight",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"topLeft",void 0),(0,r._)([(0,l.Cb)({type:X.Z})],dt.prototype,"topRight",void 0),dt=(0,r._)([(0,h.j)("esri.layers.support.CornersGeoreference")],dt);const mt=dt;var pt=n(22021),ft=n(46851),yt=n(6570);let gt=class extends q{constructor(t){super(t),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;const{xmin:t,ymin:e,xmax:n,ymax:r,spatialReference:o}=this.extent;let i;if(this.rotation){const{x:o,y:s}=this.extent.center,a=_t(o,s,this.rotation);i=[a(t,e),a(t,r),a(n,r),a(n,e)],i.push(i[0])}else i=[[t,e],[t,r],[n,r],[n,e],[t,e]];return new A.Z({rings:[i],spatialReference:o})}set coords(t){if(null==t||null==this.extent)return;const e=this.extent.spatialReference;if(null==(t=this.projectOrWarn(t,e))||null==t.extent)return;const{rings:[[n,r,o]],extent:{center:{x:i,y:s}}}=t,a=(0,pt.BV)(Math.PI/2-Math.atan2(r[1]-n[1],r[0]-n[0])),l=_t(i,s,-a),[u,c]=l(n[0],n[1]),[h,d]=l(o[0],o[1]);this.extent=new yt.Z({xmin:u,ymin:c,xmax:h,ymax:d,spatialReference:e}),this.rotation=a}};function _t(t,e,n){const r=(0,ft.t)(n),o=Math.cos(r),i=Math.sin(r);return(n,r)=>[o*(n-t)+i*(r-e)+t,o*(r-e)-i*(n-t)+e]}(0,r._)([(0,l.Cb)()],gt.prototype,"coords",null),(0,r._)([(0,l.Cb)({type:yt.Z})],gt.prototype,"extent",void 0),(0,r._)([(0,l.Cb)({type:Number})],gt.prototype,"rotation",void 0),gt=(0,r._)([(0,h.j)("esri.layers.support.ExtentAndRotationGeoreference")],gt);const xt={key:"type",base:q,typeMap:{"control-points":ht,corners:mt,"extent-and-rotation":gt}};let vt=class extends((0,b.iv)((0,M.eC)(w.Z))){constructor(t){super(t),this.georeference=null,this.opacity=1}readGeoreference(t){return ht.fromJSON(t)}};(0,r._)([(0,l.Cb)({types:xt,json:{write:!0}})],vt.prototype,"georeference",void 0),(0,r._)([(0,c.r)("georeference")],vt.prototype,"readGeoreference",null),(0,r._)([(0,l.Cb)()],vt.prototype,"opacity",void 0),vt=(0,r._)([(0,h.j)("esri.layers.support.MediaElementBase")],vt);const bt=vt;var Mt=n(66094),wt=n(25929);let Pt=class extends bt{constructor(t){super(t),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this.image=null}load(){const t=this.image;if("string"==typeof t){const e=(0,_.n$)(t).then((t=>{this._set("content",t)}));this.addResolvingPromise(e)}else if(t instanceof HTMLImageElement){const e=t.decode().then((()=>{this._set("content",t)}));this.addResolvingPromise(e)}else t?this._set("content",t):this.addResolvingPromise(Promise.reject(new i.Z("image-element:invalid-image-type","Invalid image type",{image:t})));return Promise.resolve(this)}readImage(t,e,n){return(0,wt.f)(e.url,n)}writeImage(t,e,n,r){if(null==t)return;const o=r?.portalItem,i=r?.resources;if(!o||!i)return void("string"==typeof t&&(e[n]=(0,wt.t)(t,r)));const s="string"!=typeof t||(0,x.HK)(t)||(0,x.jc)(t)?null:t;if(s){if(null==(0,wt.i)(s))return void(e[n]=s);const t=(0,wt.t)(s,{...r,verifyItemRelativeUrls:r&&r.verifyItemRelativeUrls?{writtenUrls:r.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},wt.M.NO);if(o&&t&&!(0,x.YP)(t))return i.toKeep.push({resource:o.resourceFromPath(t),compress:!1}),void(e[n]=t)}e[n]="<pending>",i.pendingOperations.push(Rt(t).then((t=>{const r=function(t,e){const n=(0,v.D)(),r=`${(0,x.v_)("media",n)}.${(0,Mt.B)(t)}`;return e.resourceFromPath(r)}(t,o);e[n]=r.itemRelativeUrl,i.toAdd.push({resource:r,content:t,compress:!1,finish:t=>{this.image=t.url}})})))}};(0,r._)([(0,l.Cb)()],Pt.prototype,"animationOptions",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],Pt.prototype,"content",void 0),(0,r._)([(0,l.Cb)({json:{name:"url",type:String}})],Pt.prototype,"image",void 0),(0,r._)([(0,c.r)("image",["url"])],Pt.prototype,"readImage",null),(0,r._)([(0,d.c)("image")],Pt.prototype,"writeImage",null),(0,r._)([(0,l.Cb)({readOnly:!0,json:{name:"mediaType"}})],Pt.prototype,"type",void 0),Pt=(0,r._)([(0,h.j)("esri.layers.support.ImageElement")],Pt);const It=Pt;async function Rt(t){if("string"==typeof t){if((0,x.jc)(t)){const{data:e}=await(0,g.Z)(t,{responseType:"blob"});return e}return(0,x.HK)(t)?(0,x.fw)(t):Rt((await(0,g.Z)(t,{responseType:"image"})).data)}return new Promise((e=>function(t){if(t instanceof HTMLCanvasElement)return t;const e=t instanceof HTMLImageElement?t.naturalWidth:t.width,n=t instanceof HTMLImageElement?t.naturalHeight:t.height,r=document.createElement("canvas"),o=r.getContext("2d");return r.width=e,r.height=n,t instanceof HTMLImageElement?o.drawImage(t,0,0,t.width,t.height):t instanceof ImageData&&o.putImageData(t,0,0),r}(t).toBlob(e)))}n(66577);var St=n(70921),Ct=n(32448),Tt=n(609),Zt=n(95330),Bt=n(17445),Lt=n(24470),Ot=n(87416),jt=n(8744),Et=n(37549),Yt=n(20322),Dt=n(86662),Xt=n(33955),At=n(73913);function Ut(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,At.XZ)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,At.XZ)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,At.XZ)(r,e);t.x+=n*(-2*e)}else if(r<n){const e=(0,At.XZ)(r,n);t.x+=e*(-2*n)}}return t}function Nt(t,e){const n=[],{ymin:r,ymax:o,xmin:i,xmax:s}=t,a=t.xmax-t.xmin,[l,u]=e.valid,{x:c,frameId:h}=zt(t.xmin,e),{x:d,frameId:m}=zt(t.xmax,e),p=c===d&&a>0;if(a>2*u){const t={xmin:i<s?c:d,ymin:r,xmax:u,ymax:o},e={xmin:l,ymin:r,xmax:i<s?d:c,ymax:o},a={xmin:0,ymin:r,xmax:u,ymax:o},p={xmin:l,ymin:r,xmax:0,ymax:o},f=[],y=[];Ft(t,a)&&f.push(h),Ft(t,p)&&y.push(h),Ft(e,a)&&f.push(m),Ft(e,p)&&y.push(m);for(let t=h+1;t<m;t++)f.push(t),y.push(t);n.push(new Vt(t,[h]),new Vt(e,[m]),new Vt(a,f),new Vt(p,y))}else c>d||p?n.push(new Vt({xmin:c,ymin:r,xmax:u,ymax:o},[h]),new Vt({xmin:l,ymin:r,xmax:d,ymax:o},[m])):n.push(new Vt({xmin:c,ymin:r,xmax:d,ymax:o},[h]));return n}function zt(t,e){const[n,r]=e.valid,o=2*r;let i,s=0;return t>r?(i=Math.ceil(Math.abs(t-r)/o),t-=i*o,s=i):t<n&&(i=Math.ceil(Math.abs(t-n)/o),t+=i*o,s=-i),{x:t,frameId:s}}function Ft(t,e){const{xmin:n,ymin:r,xmax:o,ymax:i}=e;return qt(t,n,r)&&qt(t,n,i)&&qt(t,o,i)&&qt(t,o,r)}function qt(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function Ht(t,e,n=!0){const r=!(0,Xt.l9)(t);if(r&&(0,Dt.Zy)(t),n)return(new kt).cut(t,e);const o=r?t.rings:t.paths,i=r?4:2,s=o.length,a=-2*e;for(let t=0;t<s;t++){const e=o[t];if(e&&e.length>=i){const t=[];for(const n of e)t.push([n[0]+a,n[1]]);o.push(t)}}return r?t.rings=o:t.paths=o,t}class Vt{constructor(t,e){this.extent=t,this.frameIds=e}}const Jt=(0,Lt.Ue)();class kt{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const r=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t[0],t[1],this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide==-1){const n=this._intersect(this._prevPt,t);this._lineTo(this._xCut,n,0),this._prevSide=0,this._lineTo(t[0],t[1],e)}else this._lineTo(t[0],t[1],e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e,n){this._closed?(this._lineIn.push([n<=0?t:this._xCut,e]),this._lineOut.push([n>=0?t:this._xCut,e])):(n<=0&&this._lineIn.push([t,e]),n>=0&&this._lineOut.push([t,e]))}_lineTo(t,e,n){this._closed?(this._addPolyVertex(this._lineIn,n<=0?t:this._xCut,e),this._addPolyVertex(this._lineOut,n>=0?t:this._xCut,e)):n<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push([t,e])):n>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push([t,e])):this._prevSide<0?(this._lineIn.push([t,e]),this._lineOut.push([t,e])):this._prevSide>0&&(this._lineOut.push([t,e]),this._lineIn.push([t,e]))}_addPolyVertex(t,e,n){const r=t.length;r>1&&t[r-1][0]===e&&t[r-2][0]===e?t[r-1][1]=n:t.push([e,n])}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0][1]=t[e-2][1],t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]);return t[1]+n*(e[1]-t[1])}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}let Wt=class extends P.Z{constructor(t){super(t)}get bounds(){const t=this.coords;return null==t||null==t.extent?null:(0,Lt.oJ)(t.extent)}get coords(){const t=this.element.georeference?.coords;return(0,U.projectOrLoad)(t,this.spatialReference).geometry}get normalizedCoords(){return A.Z.fromJSON(function(t,e){if(null==t)return null;const n=t.spatialReference,r=(0,jt.C5)(n),o=(0,M.AK)(t)?t.toJSON():t;if(!r)return o;const i=(0,jt.sS)(n)?102100:4326,s=At.UZ[i].maxX,a=At.UZ[i].minX;if((0,Xt.wp)(o))return Ut(o,s,a);if((0,Xt.aW)(o))return o.points=o.points.map((t=>Ut(t,s,a))),o;if((0,Xt.YX)(o))return function(t,e){if(!e)return t;const n=Nt(t,e).map((t=>t.extent));return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map((t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]))}}(o,r);if((0,Xt.oU)(o)||(0,Xt.l9)(o)){const t=(0,Yt.$P)(Jt,o),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,At.XZ)(n.xmin,a)*(2*s),i=0===r?o:(0,At.Sy)(o,r);return n.xmin+=r,n.xmax+=r,n.xmax>s?Ht(i,s,e):n.xmin<a?Ht(i,a,e):i}return o}(this.coords,!0))}get normalizedBounds(){const t=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=t?(0,Lt.oJ)(t):null}};(0,r._)([(0,l.Cb)()],Wt.prototype,"spatialReference",void 0),(0,r._)([(0,l.Cb)()],Wt.prototype,"element",void 0),(0,r._)([(0,l.Cb)()],Wt.prototype,"bounds",null),(0,r._)([(0,l.Cb)()],Wt.prototype,"coords",null),(0,r._)([(0,l.Cb)()],Wt.prototype,"normalizedCoords",null),(0,r._)([(0,l.Cb)()],Wt.prototype,"normalizedBounds",null),Wt=(0,r._)([(0,h.j)("esri.layers.support.MediaElementView")],Wt);var Gt=n(91460);let $t=class extends bt{constructor(t){super(t),this.autoplay=!0,this.content=null,this.type="video"}load(){const t=this.video;if("string"==typeof t){const e=document.createElement("video");e.src=t,e.crossOrigin="anonymous",e.autoplay=!0,e.muted=!0,e.loop=!0,this.addResolvingPromise(this._loadVideo(e).then((()=>{this._set("content",e)})))}else t instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(t).then((()=>{this._set("content",t)}))):this.addResolvingPromise(Promise.reject(new i.Z("video-element:invalid-video-type","Invalid video type",{video:t})));return Promise.resolve(this)}set video(t){"not-loaded"===this.loadStatus?this._set("video",t):s.Z.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}_loadVideo(t){return new Promise(((e,n)=>{const r=(0,Gt.IH)(t,"canplay",(()=>{this.removeHandles("canplay"),this.autoplay?t.play().then(e,n):e()}));this.addHandles(r,"canplay"),"anonymous"!==t.crossOrigin&&(t.crossOrigin="anonymous",t.src?.includes("blob:")||(t.src=t.src))}))}};(0,r._)([(0,l.Cb)()],$t.prototype,"autoplay",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],$t.prototype,"content",void 0),(0,r._)([(0,l.Cb)()],$t.prototype,"video",null),$t=(0,r._)([(0,h.j)("esri.layers.support.VideoElement")],$t);const Kt=$t,Qt={key:"type",defaultKeyValue:"image",base:bt,typeMap:{image:It,video:Kt}},te=o.Z.ofType(Qt);let ee=class extends(w.Z.LoadableMixin((0,Tt.v)(Ct.Z.EventedAccessor))){constructor(t){super(t),this._index=new Et.H,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=t=>{for(const e of t.removed){const t=this._elementViewsMap.get(e);this._elementViewsMap.delete(e),this._index.delete(t),this.removeHandles(t),t.destroy(),this.notifyChange("fullExtent")}const{spatialReference:e}=this;for(const n of t.added){if(this._elementViewsMap.get(n))continue;const t=new Wt({spatialReference:e,element:n});this._elementViewsMap.set(n,t);const r=(0,Bt.YP)((()=>t.coords),(()=>this._updateIndexForElement(t,!1)));this._updateIndexForElement(t,!0),this.addHandles(r,t)}this._elementsIndexes.clear(),this.elements.forEach(((t,e)=>this._elementsIndexes.set(t,e))),this.emit("refresh")},this.elements=new te}async load(t){if((0,Zt.k_)(t),!this.spatialReference){const t=this.elements.find((t=>null!=t.georeference&&null!=t.georeference.coords));this._set("spatialReference",t?t.georeference.coords.spatialReference:N.Z.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}set elements(t){this._set("elements",(0,St.Z)(t,this._get("elements"),te))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const t=this._index.fullBounds;return null==t?null:new yt.Z({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:this.spatialReference})}set spatialReference(t){"not-loaded"===this.loadStatus?this._set("spatialReference",t):s.Z.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(t,e){await this.load(),await(0,U.initializeProjection)(t.spatialReference,this.spatialReference,null,e);const n=(0,jt.fS)(t.spatialReference,this.spatialReference)?t:(0,U.project)(t,this.spatialReference);if(!n)return[];const r=n.normalize(),o=[];for(const t of r)this._index.forEachInBounds((0,Lt.oJ)(t),(({normalizedCoords:e,element:n})=>{null!=e&&(0,Ot.Nl)(t,e)&&o.push(n)}));return o.sort(((t,e)=>this._elementsIndexes.get(t)-this._elementsIndexes.get(e))),o}_updateIndexForElement(t,e){const n=t.normalizedBounds,r=this._index.has(t),o=null!=n;this._index.delete(t),o&&this._index.set(t,n),this.notifyChange("fullExtent"),e||(r!==o?this.emit("refresh"):this.emit("change",{element:t.element}))}};(0,r._)([(0,l.Cb)()],ee.prototype,"elements",null),(0,r._)([(0,l.Cb)({readOnly:!0})],ee.prototype,"fullExtent",null),(0,r._)([(0,l.Cb)()],ee.prototype,"spatialReference",null),ee=(0,r._)([(0,h.j)("esri.layers.support.LocalMediaElementSource")],ee);const ne=ee;function re(t){return"object"==typeof t&&null!=t&&"type"in t}let oe=class extends((0,p.h)((0,y.M)((0,f.q)((0,a.R)(m.Z))))){constructor(t){super(t),this.effectiveSource=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this.source=new ne}load(t){const e=this.source;if(!e)return this.addResolvingPromise(Promise.reject(new i.Z("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer."))),Promise.resolve(this);const n=re(e)?new ne({elements:new o.Z([e])}):e;this._set("effectiveSource",n),this.spatialReference&&(n.spatialReference=this.spatialReference);const r=n.load(t).then((()=>{this.spatialReference=n.spatialReference}));return this.addResolvingPromise(r),Promise.resolve(this)}destroy(){this.effectiveSource?.destroy(),this.source?.destroy()}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}set source(t){"not-loaded"===this.loadStatus?this._set("source",t):s.Z.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(t){return t?Array.isArray(t)?new ne({elements:new o.Z(t)}):t instanceof o.Z?new ne({elements:t}):t:null}readSource(t,e,n){const r="image"===e.mediaType?new It:"video"===e.mediaType?new Kt:null;return r?.read(e,n),r}writeSource(t,e,n,r){t&&re(t)&&"image"===t.type?t.write(e,r):r?.messages&&r?.messages?.push(new i.Z("media-layer:unsupported-source","source must be an 'ImageElement'"))}};(0,r._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"effectiveSource",void 0),(0,r._)([(0,l.Cb)({type:String})],oe.prototype,"copyright",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"fullExtent",null),(0,r._)([(0,l.Cb)({type:["MediaLayer"]})],oe.prototype,"operationalLayerType",void 0),(0,r._)([(0,l.Cb)({type:["show","hide"]})],oe.prototype,"listMode",void 0),(0,r._)([(0,l.Cb)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1}}})],oe.prototype,"source",null),(0,r._)([(0,u.p)("source")],oe.prototype,"castSource",null),(0,r._)([(0,c.r)("source",["url"])],oe.prototype,"readSource",null),(0,r._)([(0,d.c)("source")],oe.prototype,"writeSource",null),(0,r._)([(0,l.Cb)()],oe.prototype,"spatialReference",void 0),(0,r._)([(0,l.Cb)({readOnly:!0})],oe.prototype,"type",void 0),oe=(0,r._)([(0,h.j)("esri.layers.MediaLayer")],oe);const ie=oe},37549:(t,e,n)=>{n.d(e,{H:()=>a});var r=n(80442),o=n(24133),i=n(24470);const s={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new o.Q(9,(0,r.Z)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((n,r)=>{t[e++]=r})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,i.cS)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,n){(function(t){s.minX=t[0],s.minY=t[1],s.maxX=t[2],s.maxY=t[3]})(e),t.search(s,n)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},66094:(t,e,n)=>{n.d(e,{B:()=>o});var r=n(17452);function o(t){return i[function(t){return t instanceof Blob?t.type:function(t){const e=(0,r.Ml)(t);return l[e]||s}(t.url)}(t)]||a}const i={},s="text/plain",a=i[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in l)i[l[t]]=t}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[24,8008,8062],{52104:(e,a,r)=>{r.d(a,{V:()=>n});var t=r(96187);async function n(e,a){const r=await(0,t.T)(e,a);r.layers=r.layers.filter(i);const n={serviceJSON:r};if((r.currentVersion??0)<10.5)return n;const l=await(0,t.T)(e+"/layers",a);return n.layersJSON={layers:l.layers.filter(i),tables:l.tables},n}function i(e){return!e.type||"Feature Layer"===e.type||"Oriented Imagery Layer"===e.type}},70024:(e,a,r)=>{r.d(a,{populateOperationalLayers:()=>o});var t=r(46791),n=(r(80442),r(87344)),i=r(15235);function l(e,a){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===a}var s=r(28008),y=r(40555);async function o(e,a,r){if(!a)return;const t=[];for(const e of a){const a=I(e,r);"GroupLayer"===e.layerType?t.push(h(a,e,r)):t.push(a)}const n=await Promise.allSettled(t);for(const a of n)"rejected"===a.status||a.value&&e.add(a.value)}const c={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",PointCloudLayer:"PointCloudLayer",ArcGISSceneServiceLayer:"SceneLayer",IntegratedMeshLayer:"IntegratedMeshLayer",OGCFeatureLayer:"OGCFeatureLayer",BuildingSceneLayer:"BuildingSceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",GroupLayer:"GroupLayer",GeoJSON:"GeoJSONLayer",WebTiledLayer:"WebTileLayer",CSV:"CSVLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer",KML:"KMLLayer",RasterDataLayer:"UnsupportedLayer",Voxel:"VoxelLayer",LineOfSightLayer:"LineOfSightLayer"},u={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},d={ArcGISTiledMapServiceLayer:"TileLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",OpenStreetMap:"OpenStreetMapLayer",WebTiledLayer:"WebTileLayer",VectorTileLayer:"VectorTileLayer",ArcGISImageServiceLayer:"UnsupportedLayer",WMS:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",DefaultTileLayer:"TileLayer"},p={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoRSS:"GeoRSSLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},L={ArcGISFeatureLayer:"FeatureLayer"},f={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WebTiledLayer:"WebTileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer"},m={...p,LinkChartLayer:"LinkChartLayer"},S={...L},w={...f};async function I(e,a){return async function(e,a,r){const t=new e;return t.read(a,r.context),"group"===t.type&&T(a)&&await async function(e,a,r){const t=n.T.FeatureLayer,i=await t(),l=a.featureCollection,s=l?.showLegend,y=l?.layers?.map(((t,n)=>{const l=new i;l.read(t,r);const y={...r,ignoreDefaults:!0};return l.read({id:`${e.id}-sublayer-${n}`,visibility:a.visibleLayers?.includes(n)??!0},y),null!=s&&l.read({showLegend:s},y),l}));e.layers.addMany(y??[])}(t,a,r.context),await(0,y.y)(t,r.context),t}(await async function(e,a){const r=a.context,t=b(r);let y=e.layerType||e.type;!y&&a&&a.defaultLayerType&&(y=a.defaultLayerType);const o=t[y];let c=o?n.T[o]:n.T.UnknownLayer;if(g(e)){const a=r?.portal;if(e.itemId){const r=new i.default({id:e.itemId,portal:a});await r.load();const t=(await(0,s.v)(r)).className||"UnknownLayer";c=n.T[t]}}else"ArcGISFeatureLayer"===y?function(e){return l(e,"notes")}(e)||function(e){return l(e,"markup")}(e)?c=n.T.MapNotesLayer:function(e){return l(e,"route")}(e)?c=n.T.RouteLayer:T(e)&&(c=n.T.GroupLayer):e.wmtsInfo&&e.wmtsInfo.url&&e.wmtsInfo.layerIdentifier?c=n.T.WMTSLayer:"WFS"===y&&"2.0.0"!==e.wfsInfo?.version&&(c=n.T.UnsupportedLayer);return c()}(e,a),e,a)}function T(e){return"ArcGISFeatureLayer"===e.layerType&&!g(e)&&(e.featureCollection?.layers?.length??0)>1}function g(e){return"Feature Collection"===e.type}function b(e){let a;switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap":a=d;break;case"ground":a=u;break;default:a=c}break;case"link-chart":switch(e.layerContainerType){case"basemap":a=w;break;case"tables":a=S;break;default:a=m}break;default:switch(e.layerContainerType){case"basemap":a=f;break;case"tables":a=L;break;default:a=p}}return a}async function h(e,a,r){const n=new t.Z,i=o(n,Array.isArray(a.layers)?a.layers:[],r);try{const a=await e;try{if(await i,"group"===a.type)return a.layers.addMany(n),a}catch(e){a.destroy();for(const e of n)e.destroy();throw e}}catch(e){throw e}}},87344:(e,a,r)=>{r.d(a,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(5625)]).then(r.bind(r,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(3712),r.e(9238),r.e(889),r.e(5243),r.e(9387),r.e(4202)]).then(r.bind(r,30223))).default,CSVLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(3712),r.e(9238),r.e(6240)]).then(r.bind(r,45425))).default,DimensionLayer:async()=>(await Promise.all([r.e(163),r.e(2115),r.e(81)]).then(r.bind(r,40081))).default,ElevationLayer:async()=>(await Promise.all([r.e(163),r.e(6569),r.e(223),r.e(2530)]).then(r.bind(r,65665))).default,FeatureLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(3712),r.e(9238),r.e(5697)]).then(r.bind(r,19238))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(3390)]).then(r.bind(r,23477))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1054)]).then(r.bind(r,3723))).default,GroupLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(1558)]).then(r.bind(r,40504))).default,ImageryLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(4165),r.e(4599),r.e(6610),r.e(4992),r.e(4608)]).then(r.bind(r,60590))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(223),r.e(6610),r.e(4136),r.e(4992),r.e(5913)]).then(r.bind(r,74878))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(163),r.e(889),r.e(1537)]).then(r.bind(r,9310))).default,KMLLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(1423),r.e(2756)]).then(r.bind(r,42756))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(163),r.e(4998)]).then(r.bind(r,21786))).default,LinkChartLayer:async()=>(await Promise.all([r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(1534),r.e(3194),r.e(6822)]).then(r.bind(r,19087))).default,MapImageLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(1423),r.e(4165),r.e(3887),r.e(4599),r.e(4786),r.e(7374)]).then(r.bind(r,27374))).default,MapNotesLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(3712),r.e(9238),r.e(9435)]).then(r.bind(r,62128))).default,MediaLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4828)]).then(r.bind(r,57765))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(191)]).then(r.bind(r,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4865),r.e(6237)]).then(r.bind(r,66237))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(3712),r.e(9238),r.e(3859)]).then(r.bind(r,76604))).default,PointCloudLayer:async()=>(await Promise.all([r.e(163),r.e(8775),r.e(889),r.e(4266),r.e(6012)]).then(r.bind(r,10608))).default,RouteLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(1423),r.e(153)]).then(r.bind(r,40153))).default,SceneLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(3712),r.e(9238),r.e(889),r.e(5243),r.e(9387),r.e(7476)]).then(r.bind(r,57476))).default,StreamLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(1724)]).then(r.bind(r,88387))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(1423),r.e(4165),r.e(3887),r.e(3712),r.e(9111)]).then(r.bind(r,30359))).default,TileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(1423),r.e(4165),r.e(3887),r.e(4599),r.e(223),r.e(4786),r.e(8636)]).then(r.bind(r,98636))).default,UnknownLayer:async()=>(await r.e(4166).then(r.bind(r,44166))).default,UnsupportedLayer:async()=>(await r.e(9296).then(r.bind(r,39296))).default,VectorTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(223),r.e(4325),r.e(9805),r.e(5481)]).then(r.bind(r,94756))).default,VoxelLayer:async()=>(await Promise.all([r.e(163),r.e(8775),r.e(889),r.e(2115),r.e(9493)]).then(r.bind(r,28865))).default,WFSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(5876)]).then(r.bind(r,12653))).default,WMSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(2462)]).then(r.bind(r,25906))).default,WMTSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4865),r.e(2594)]).then(r.bind(r,72594))).default,WebTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4865)]).then(r.bind(r,16199))).default}},33516:(e,a,r)=>{r.d(a,{Y:()=>l,h:()=>i});var t=r(17452),n=r(48522);function i(e){return{origin:"portal-item",url:(0,t.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function l(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,t.mN)(e.itemUrl):null,portal:e.portal||n.Z.getDefault(),portalItem:e}}},18062:(e,a,r)=>{r.d(a,{$O:()=>L,Ok:()=>f,Q4:()=>m,XX:()=>S,_Y:()=>w,load:()=>o});var t=r(20102),n=r(52104),i=r(48522),l=r(33516),s=r(40555),y=r(96187);async function o(e,a){const r=e.instance.portalItem;if(r&&r.id)return await r.load(a),function(e){const a=e.instance.portalItem;if(!a?.type||!e.supportedTypes.includes(a.type))throw new t.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:a?.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,a){const r=e.instance,i=r.portalItem;if(!i)return;const{url:o,title:d}=i,f=(0,l.h)(i);if("group"===r.type)return r.read({title:d},f),async function(e,a){let r;const{portalItem:i}=e;if(!i)return;const l=i.type,s=a.layerModuleTypeMap;switch(l){case"Feature Service":case"Feature Collection":r=s.FeatureLayer;break;case"Stream Service":r=s.StreamLayer;break;case"Scene Service":r=s.SceneLayer;break;default:throw new t.Z("portal:unsupported-item-type-as-group",`The item type '${l}' is not supported as a 'IGroupLayer'`)}let[o,d]=await Promise.all([r(),p(a)]),f=()=>o;if("Feature Service"===l){d=i.url?await L(d,i.url):{};const a=S(d),r=w(d),t=[];if(a.length||r?.length){a.length&&t.push("SubtypeGroupLayer"),r?.length&&t.push("OrientedImageryLayer");const e=[];for(const a of t){const r=s[a];e.push(r())}const n=await Promise.all(e),i=new Map;t.forEach(((e,a)=>{i.set(e,n[a])})),f=e=>e.layerType?i.get(e.layerType)??o:o}return u(e,f,d,await async function(e){const{layersJSON:a}=await(0,n.V)(e);if(!a)return null;const r=[...a.layers,...a.tables];return e=>r.find((a=>a.id===e.id))}(i.url))}return m(d)>0?u(e,f,d):async function(e,a){const{portalItem:r}=e;if(!r?.url)return;const t=await(0,y.T)(r.url);t&&u(e,a,{layers:t.layers?.map(c),tables:t.tables?.map(c)})}(e,f)}(r,e);o&&r.read({url:o},f);const I=await p(e,a);return I&&r.read(I,f),r.resourceReferences={portalItem:i,paths:f.readResourcePaths??[]},"subtype-group"!==r.type&&r.read({title:d},f),(0,s.y)(r,f)}(e,a)}function c(e){return{id:e.id,name:e.name}}function u(e,a,r,t){let n=r.layers||[];const i=r.tables||[];"Feature Collection"===e.portalItem?.type&&(n.forEach((e=>{"Table"===e?.layerDefinition?.type&&i.push(e)})),n=n.filter((e=>"Table"!==e?.layerDefinition?.type))),n.reverse().forEach((n=>{const i=t?.(n);if(i||!t){const t=d(e,a(n),r,n,i);e.add(t)}})),i.reverse().forEach((n=>{const i=t?.(n);if(i||!t){const t=d(e,a(n),r,n,i);e.tables.add(t)}}))}function d(e,a,r,t,n){const l=e.portalItem,s=new a({portalItem:l.clone(),layerId:t.id});if("sourceJSON"in s&&(s.sourceJSON=n),"subtype-group"!==s.type&&(s.sublayerTitleMode="service-name"),"Feature Collection"===l.type){const e={origin:"portal-item",portal:l.portal||i.Z.getDefault()};s.read(t,e);const a=r.showLegend;null!=a&&s.read({showLegend:a},e)}return s}async function p(e,a){if(!1===e.supportsData)return;const r=e.instance,t=r.portalItem;if(!t)return;let n=null;try{n=await t.fetchData("json",a)}catch(e){}if(function(e){return"stream"!==e.type&&"layerId"in e}(r)){let e=null,a=!0;if(n&&m(n)>0){if(null==r.layerId){const e=S(n);r.layerId="subtype-group"===r.type?e?.[0]:f(n)}e=function(e,a){const{layerId:r}=a,t=e.layers?.find((e=>e.id===r))||e.tables?.find((e=>e.id===r));return t&&function(e,a){return!("feature"===a.type&&"layerType"in e&&"SubtypeGroupLayer"===e.layerType||"subtype-group"===a.type&&!("layerType"in e))}(t,a)?t:null}(n,r),e&&(1===m(n)&&(a=!1),null!=n.showLegend&&(e.showLegend=n.showLegend))}return a&&"sublayerTitleMode"in r&&"service-name"!==r.sublayerTitleMode&&(r.sublayerTitleMode="item-title-and-service-name"),e}return n}async function L(e,a){if(null==e?.layers||null==e?.tables){const r=await(0,y.T)(a);(e=e||{}).layers=e.layers||r?.layers,e.tables=e.tables||r?.tables}return e}function f(e){const a=e.layers;if(a&&a.length)return a[0].id;const r=e.tables;return r&&r.length?r[0].id:null}function m(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function S(e){const a=[];return e?.layers?.forEach((e=>{"SubtypeGroupLayer"===e.layerType&&a.push(e.id)})),a}function w(e){return e?.layers?.filter((({layerType:e})=>"OrientedImageryLayer"===e)).map((({id:e})=>e))}},14661:(e,a,r)=>{r.d(a,{$o:()=>u,Ct:()=>c,Fj:()=>y,Kz:()=>d,Ss:()=>p,_$:()=>s,ck:()=>o,qj:()=>l});var t=r(73615),n=r(82971),i=r(40488);function l(e,a){if(!s(e,a)){const r=e.typeKeywords;r?r.push(a):e.typeKeywords=[a]}}function s(e,a){return!!e.typeKeywords?.includes(a)}function y(e){return s(e,d.HOSTED_SERVICE)}function o(e,a){const r=e.typeKeywords;if(r){const e=r.indexOf(a);e>-1&&r.splice(e,1)}}function c(e,a,r){r?l(e,a):o(e,a)}async function u(e){const a=e.clone().normalize();let r;if(a.length>1)for(const e of a)r?e.width>r.width&&(r=e):r=e;else r=a[0];return async function(e){const a=e.spatialReference;if(a.isWGS84)return e.clone();if(a.isWebMercator)return(0,i.Sx)(e);const r=n.Z.WGS84;return await(0,t.initializeProjection)(a,r),(0,t.project)(e,r)}(r)}const d={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table",HOSTED_SERVICE:"Hosted Service",LOCAL_SCENE:"ViewingMode-Local",TILED_IMAGERY:"Tiled Imagery"};function p(e){const{portal:a,isOrgItem:r,itemControl:t}=e,n=a.user?.privileges;let i=!n||n.includes("features:user:edit"),l=!!r&&!!n?.includes("features:user:fullEdit");const s="update"===t||"admin"===t;return s?l=i=!0:l&&(i=!0),{features:{edit:i,fullEdit:l},content:{updateItem:s}}}},28008:(e,a,r)=>{r.d(a,{fromItem:()=>c,v:()=>u});var t=r(20102),n=r(84230),i=r(87344),l=r(15235),s=r(18062),y=r(14661),o=r(96187);async function c(e){!e.portalItem||e.portalItem instanceof l.default||(e={...e,portalItem:new l.default(e.portalItem)});const a=await async function(e){return await e.load(),async function(e){const a=e.className,r=i.T[a];return{constructor:await r(),properties:e.properties}}(await u(e))}(e.portalItem);return new(0,a.constructor)({portalItem:e.portalItem,...a.properties})}async function u(e){switch(e.type){case"Map Service":return async function(e){return await async function(e){return(await(0,o.T)(e.url)).tileInfo}(e)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e);case"Feature Service":return async function(e){const a=await d(e);if("object"==typeof a){const e={};return null!=a.id&&(e.layerId=a.id),{className:a.className||"FeatureLayer",properties:e}}return{className:"GroupLayer"}}(e);case"Feature Collection":return async function(e){await e.load();const a=(0,y._$)(e,"Map Notes"),r=(0,y._$)(e,"Markup");if(a||r)return{className:"MapNotesLayer"};if((0,y._$)(e,"Route Layer"))return{className:"RouteLayer"};const t=await e.fetchData();return 1===(0,s.Q4)(t)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Scene Service":return async function(e){const a=await d(e);if("object"==typeof a){const r={};let t;if(null!=a.id?(r.layerId=a.id,t=`${e.url}/layers/${a.id}`):t=e.url,e.typeKeywords?.length)for(const a of Object.keys(n.fb))if(e.typeKeywords.includes(a))return{className:n.fb[a]};const i=await(0,o.T)(t);return{className:n.fb[i?.layerType]||"SceneLayer",properties:r}}if(!1===a){const a=await(0,o.T)(e.url);return"Voxel"===a?.layerType?{className:"VoxelLayer"}:{className:"GroupLayer"}}return{className:"GroupLayer"}}(e);case"Image Service":return async function(e){await e.load();const a=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(a.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(a.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await e.fetchData(),t=r?.layerType;if("ArcGISTiledImageServiceLayer"===t)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===t)return{className:"ImageryLayer"};const n=await(0,o.T)(e.url),i=n.cacheType?.toLowerCase(),l=n.capabilities?.toLowerCase().includes("tilesonly");return"map"===i||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e);case"Stream Service":case"Feed":return{className:"StreamLayer"};case"Vector Tile Service":return{className:"VectorTileLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"CSV":return{className:"CSVLayer"};case"KML":return{className:"KMLLayer"};case"WFS":return{className:"WFSLayer"};case"WMTS":return{className:"WMTSLayer"};case"WMS":return{className:"WMSLayer"};default:throw new t.Z("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function d(e){const a=e.url;if(!a||/\/\d+$/.test(a))return{};await e.load();const r=await e.fetchData();if("Feature Service"===e.type){const e=p(await(0,s.$O)(r,a));if("object"==typeof e){const a=(0,s.XX)(r),t=(0,s._Y)(r);e.className=null!=e.id&&a.includes(e.id)?"SubtypeGroupLayer":null!=e.id&&t?.includes(e.id)?"OrientedImageryLayer":"FeatureLayer"}return e}return(0,s.Q4)(r)>0?p(r):p(await(0,o.T)(a))}function p(e){return 1===(0,s.Q4)(e)&&{id:(0,s.Ok)(e)}}},40555:(e,a,r)=>{r.d(a,{y:()=>l});var t=r(66643),n=r(95330),i=r(20941);async function l(e,a,r){const l=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(l&&"unique-value"===l.type&&l.styleOrigin){const s=await(0,t.q6)(l.populateFromStyle());if((0,n.k_)(r),!1===s.ok){const r=s.error;a&&a.messages&&a.messages.push(new i.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:a})),e.clear("renderer",a?.origin)}}}},96187:(e,a,r)=>{r.d(a,{T:()=>n});var t=r(3172);async function n(e,a){const{data:r}=await(0,t.Z)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return r}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[24,8008,8062],{52104:(e,a,r)=>{r.d(a,{V:()=>n});var t=r(96187);async function n(e,a){const r=await(0,t.T)(e,a);r.layers=r.layers.filter(i);const n={serviceJSON:r};if((r.currentVersion??0)<10.5)return n;const l=await(0,t.T)(e+"/layers",a);return n.layersJSON={layers:l.layers.filter(i),tables:l.tables},n}function i(e){return!e.type||"Feature Layer"===e.type||"Oriented Imagery Layer"===e.type}},70024:(e,a,r)=>{r.d(a,{populateOperationalLayers:()=>o});var t=r(46791),n=(r(80442),r(87344)),i=r(15235);function l(e,a){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===a}var s=r(28008),y=r(40555);async function o(e,a,r){if(!a)return;const t=[];for(const e of a){const a=I(e,r);"GroupLayer"===e.layerType?t.push(h(a,e,r)):t.push(a)}const n=await Promise.allSettled(t);for(const a of n)"rejected"===a.status||a.value&&e.add(a.value)}const c={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",PointCloudLayer:"PointCloudLayer",ArcGISSceneServiceLayer:"SceneLayer",IntegratedMeshLayer:"IntegratedMeshLayer",OGCFeatureLayer:"OGCFeatureLayer",BuildingSceneLayer:"BuildingSceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",GroupLayer:"GroupLayer",GeoJSON:"GeoJSONLayer",WebTiledLayer:"WebTileLayer",CSV:"CSVLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer",KML:"KMLLayer",RasterDataLayer:"UnsupportedLayer",Voxel:"VoxelLayer",LineOfSightLayer:"LineOfSightLayer"},u={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},d={ArcGISTiledMapServiceLayer:"TileLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",OpenStreetMap:"OpenStreetMapLayer",WebTiledLayer:"WebTileLayer",VectorTileLayer:"VectorTileLayer",ArcGISImageServiceLayer:"UnsupportedLayer",WMS:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",DefaultTileLayer:"TileLayer"},p={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoRSS:"GeoRSSLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},L={ArcGISFeatureLayer:"FeatureLayer"},f={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WebTiledLayer:"WebTileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer"},m={...p,LinkChartLayer:"LinkChartLayer"},S={...L},w={...f};async function I(e,a){return async function(e,a,r){const t=new e;return t.read(a,r.context),"group"===t.type&&T(a)&&await async function(e,a,r){const t=n.T.FeatureLayer,i=await t(),l=a.featureCollection,s=l?.showLegend,y=l?.layers?.map(((t,n)=>{const l=new i;l.read(t,r);const y={...r,ignoreDefaults:!0};return l.read({id:`${e.id}-sublayer-${n}`,visibility:a.visibleLayers?.includes(n)??!0},y),null!=s&&l.read({showLegend:s},y),l}));e.layers.addMany(y??[])}(t,a,r.context),await(0,y.y)(t,r.context),t}(await async function(e,a){const r=a.context,t=b(r);let y=e.layerType||e.type;!y&&a&&a.defaultLayerType&&(y=a.defaultLayerType);const o=t[y];let c=o?n.T[o]:n.T.UnknownLayer;if(g(e)){const a=r?.portal;if(e.itemId){const r=new i.default({id:e.itemId,portal:a});await r.load();const t=(await(0,s.v)(r)).className||"UnknownLayer";c=n.T[t]}}else"ArcGISFeatureLayer"===y?function(e){return l(e,"notes")}(e)||function(e){return l(e,"markup")}(e)?c=n.T.MapNotesLayer:function(e){return l(e,"route")}(e)?c=n.T.RouteLayer:T(e)&&(c=n.T.GroupLayer):e.wmtsInfo&&e.wmtsInfo.url&&e.wmtsInfo.layerIdentifier?c=n.T.WMTSLayer:"WFS"===y&&"2.0.0"!==e.wfsInfo?.version&&(c=n.T.UnsupportedLayer);return c()}(e,a),e,a)}function T(e){return"ArcGISFeatureLayer"===e.layerType&&!g(e)&&(e.featureCollection?.layers?.length??0)>1}function g(e){return"Feature Collection"===e.type}function b(e){let a;switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap":a=d;break;case"ground":a=u;break;default:a=c}break;case"link-chart":switch(e.layerContainerType){case"basemap":a=w;break;case"tables":a=S;break;default:a=m}break;default:switch(e.layerContainerType){case"basemap":a=f;break;case"tables":a=L;break;default:a=p}}return a}async function h(e,a,r){const n=new t.Z,i=o(n,Array.isArray(a.layers)?a.layers:[],r);try{const a=await e;try{if(await i,"group"===a.type)return a.layers.addMany(n),a}catch(e){a.destroy();for(const e of n)e.destroy();throw e}}catch(e){throw e}}},87344:(e,a,r)=>{r.d(a,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(5625)]).then(r.bind(r,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(6079),r.e(9238),r.e(889),r.e(5243),r.e(9387),r.e(4202)]).then(r.bind(r,30223))).default,CSVLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(6079),r.e(9238),r.e(6240)]).then(r.bind(r,45425))).default,DimensionLayer:async()=>(await Promise.all([r.e(163),r.e(2115),r.e(81)]).then(r.bind(r,40081))).default,ElevationLayer:async()=>(await Promise.all([r.e(163),r.e(6569),r.e(223),r.e(2530)]).then(r.bind(r,65665))).default,FeatureLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(6079),r.e(9238),r.e(5697)]).then(r.bind(r,19238))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(3390)]).then(r.bind(r,23477))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(1054)]).then(r.bind(r,3723))).default,GroupLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(1558)]).then(r.bind(r,40504))).default,ImageryLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(4165),r.e(4599),r.e(6610),r.e(8700),r.e(4608)]).then(r.bind(r,60590))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(223),r.e(6610),r.e(4136),r.e(8700),r.e(5913)]).then(r.bind(r,74878))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(163),r.e(889),r.e(1537)]).then(r.bind(r,9310))).default,KMLLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(1423),r.e(2756)]).then(r.bind(r,42756))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(163),r.e(4998)]).then(r.bind(r,21786))).default,LinkChartLayer:async()=>(await Promise.all([r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(1534),r.e(3194),r.e(6822)]).then(r.bind(r,19087))).default,MapImageLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(1423),r.e(4165),r.e(3887),r.e(4599),r.e(4786),r.e(7374)]).then(r.bind(r,27374))).default,MapNotesLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(6079),r.e(9238),r.e(9435)]).then(r.bind(r,62128))).default,MediaLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4828)]).then(r.bind(r,57765))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(191)]).then(r.bind(r,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4865),r.e(6237)]).then(r.bind(r,66237))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(6079),r.e(9238),r.e(3859)]).then(r.bind(r,76604))).default,PointCloudLayer:async()=>(await Promise.all([r.e(163),r.e(8775),r.e(889),r.e(4266),r.e(6012)]).then(r.bind(r,10608))).default,RouteLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(1423),r.e(153)]).then(r.bind(r,40153))).default,SceneLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(6079),r.e(9238),r.e(889),r.e(5243),r.e(9387),r.e(7476)]).then(r.bind(r,57476))).default,StreamLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(1724)]).then(r.bind(r,88387))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(1423),r.e(4165),r.e(3887),r.e(6079),r.e(9111)]).then(r.bind(r,30359))).default,TileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(1423),r.e(4165),r.e(3887),r.e(4599),r.e(223),r.e(4786),r.e(8636)]).then(r.bind(r,98636))).default,UnknownLayer:async()=>(await r.e(4166).then(r.bind(r,44166))).default,UnsupportedLayer:async()=>(await r.e(9296).then(r.bind(r,39296))).default,VectorTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(223),r.e(4325),r.e(9805),r.e(5481)]).then(r.bind(r,94756))).default,VoxelLayer:async()=>(await Promise.all([r.e(163),r.e(8775),r.e(889),r.e(2115),r.e(9493)]).then(r.bind(r,28865))).default,WFSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(7153),r.e(2601),r.e(6569),r.e(1423),r.e(4165),r.e(3887),r.e(6404),r.e(5876)]).then(r.bind(r,12653))).default,WMSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(9790),r.e(8775),r.e(2462)]).then(r.bind(r,25906))).default,WMTSLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4865),r.e(2594)]).then(r.bind(r,72594))).default,WebTileLayer:async()=>(await Promise.all([r.e(163),r.e(4609),r.e(4865)]).then(r.bind(r,16199))).default}},33516:(e,a,r)=>{r.d(a,{Y:()=>l,h:()=>i});var t=r(17452),n=r(48522);function i(e){return{origin:"portal-item",url:(0,t.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function l(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,t.mN)(e.itemUrl):null,portal:e.portal||n.Z.getDefault(),portalItem:e}}},18062:(e,a,r)=>{r.d(a,{$O:()=>L,Ok:()=>f,Q4:()=>m,XX:()=>S,_Y:()=>w,load:()=>o});var t=r(20102),n=r(52104),i=r(48522),l=r(33516),s=r(40555),y=r(96187);async function o(e,a){const r=e.instance.portalItem;if(r&&r.id)return await r.load(a),function(e){const a=e.instance.portalItem;if(!a?.type||!e.supportedTypes.includes(a.type))throw new t.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:a?.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,a){const r=e.instance,i=r.portalItem;if(!i)return;const{url:o,title:d}=i,f=(0,l.h)(i);if("group"===r.type)return r.read({title:d},f),async function(e,a){let r;const{portalItem:i}=e;if(!i)return;const l=i.type,s=a.layerModuleTypeMap;switch(l){case"Feature Service":case"Feature Collection":r=s.FeatureLayer;break;case"Stream Service":r=s.StreamLayer;break;case"Scene Service":r=s.SceneLayer;break;default:throw new t.Z("portal:unsupported-item-type-as-group",`The item type '${l}' is not supported as a 'IGroupLayer'`)}let[o,d]=await Promise.all([r(),p(a)]),f=()=>o;if("Feature Service"===l){d=i.url?await L(d,i.url):{};const a=S(d),r=w(d),t=[];if(a.length||r?.length){a.length&&t.push("SubtypeGroupLayer"),r?.length&&t.push("OrientedImageryLayer");const e=[];for(const a of t){const r=s[a];e.push(r())}const n=await Promise.all(e),i=new Map;t.forEach(((e,a)=>{i.set(e,n[a])})),f=e=>e.layerType?i.get(e.layerType)??o:o}return u(e,f,d,await async function(e){const{layersJSON:a}=await(0,n.V)(e);if(!a)return null;const r=[...a.layers,...a.tables];return e=>r.find((a=>a.id===e.id))}(i.url))}return m(d)>0?u(e,f,d):async function(e,a){const{portalItem:r}=e;if(!r?.url)return;const t=await(0,y.T)(r.url);t&&u(e,a,{layers:t.layers?.map(c),tables:t.tables?.map(c)})}(e,f)}(r,e);o&&r.read({url:o},f);const I=await p(e,a);return I&&r.read(I,f),r.resourceReferences={portalItem:i,paths:f.readResourcePaths??[]},"subtype-group"!==r.type&&r.read({title:d},f),(0,s.y)(r,f)}(e,a)}function c(e){return{id:e.id,name:e.name}}function u(e,a,r,t){let n=r.layers||[];const i=r.tables||[];"Feature Collection"===e.portalItem?.type&&(n.forEach((e=>{"Table"===e?.layerDefinition?.type&&i.push(e)})),n=n.filter((e=>"Table"!==e?.layerDefinition?.type))),n.reverse().forEach((n=>{const i=t?.(n);if(i||!t){const t=d(e,a(n),r,n,i);e.add(t)}})),i.reverse().forEach((n=>{const i=t?.(n);if(i||!t){const t=d(e,a(n),r,n,i);e.tables.add(t)}}))}function d(e,a,r,t,n){const l=e.portalItem,s=new a({portalItem:l.clone(),layerId:t.id});if("sourceJSON"in s&&(s.sourceJSON=n),"subtype-group"!==s.type&&(s.sublayerTitleMode="service-name"),"Feature Collection"===l.type){const e={origin:"portal-item",portal:l.portal||i.Z.getDefault()};s.read(t,e);const a=r.showLegend;null!=a&&s.read({showLegend:a},e)}return s}async function p(e,a){if(!1===e.supportsData)return;const r=e.instance,t=r.portalItem;if(!t)return;let n=null;try{n=await t.fetchData("json",a)}catch(e){}if(function(e){return"stream"!==e.type&&"layerId"in e}(r)){let e=null,a=!0;if(n&&m(n)>0){if(null==r.layerId){const e=S(n);r.layerId="subtype-group"===r.type?e?.[0]:f(n)}e=function(e,a){const{layerId:r}=a,t=e.layers?.find((e=>e.id===r))||e.tables?.find((e=>e.id===r));return t&&function(e,a){return!("feature"===a.type&&"layerType"in e&&"SubtypeGroupLayer"===e.layerType||"subtype-group"===a.type&&!("layerType"in e))}(t,a)?t:null}(n,r),e&&(1===m(n)&&(a=!1),null!=n.showLegend&&(e.showLegend=n.showLegend))}return a&&"sublayerTitleMode"in r&&"service-name"!==r.sublayerTitleMode&&(r.sublayerTitleMode="item-title-and-service-name"),e}return n}async function L(e,a){if(null==e?.layers||null==e?.tables){const r=await(0,y.T)(a);(e=e||{}).layers=e.layers||r?.layers,e.tables=e.tables||r?.tables}return e}function f(e){const a=e.layers;if(a&&a.length)return a[0].id;const r=e.tables;return r&&r.length?r[0].id:null}function m(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function S(e){const a=[];return e?.layers?.forEach((e=>{"SubtypeGroupLayer"===e.layerType&&a.push(e.id)})),a}function w(e){return e?.layers?.filter((({layerType:e})=>"OrientedImageryLayer"===e)).map((({id:e})=>e))}},14661:(e,a,r)=>{r.d(a,{$o:()=>c,Fj:()=>y,Kz:()=>u,Ss:()=>d,_$:()=>s,ck:()=>o,qj:()=>l});var t=r(73615),n=r(82971),i=r(40488);function l(e,a){if(!s(e,a)){const r=e.typeKeywords;r?r.push(a):e.typeKeywords=[a]}}function s(e,a){return!!e.typeKeywords?.includes(a)}function y(e){return s(e,u.HOSTED_SERVICE)}function o(e,a){const r=e.typeKeywords;if(r){const e=r.indexOf(a);e>-1&&r.splice(e,1)}}async function c(e){const a=e.clone().normalize();let r;if(a.length>1)for(const e of a)r?e.width>r.width&&(r=e):r=e;else r=a[0];return async function(e){const a=e.spatialReference;if(a.isWGS84)return e.clone();if(a.isWebMercator)return(0,i.Sx)(e);const r=n.Z.WGS84;return await(0,t.initializeProjection)(a,r),(0,t.project)(e,r)}(r)}const u={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table",HOSTED_SERVICE:"Hosted Service",LOCAL_SCENE:"ViewingMode-Local",TILED_IMAGERY:"Tiled Imagery"};function d(e){const{portal:a,isOrgItem:r,itemControl:t}=e,n=a.user?.privileges;let i=!n||n.includes("features:user:edit"),l=!!r&&!!n?.includes("features:user:fullEdit");const s="update"===t||"admin"===t;return s?l=i=!0:l&&(i=!0),{features:{edit:i,fullEdit:l},content:{updateItem:s}}}},28008:(e,a,r)=>{r.d(a,{fromItem:()=>c,v:()=>u});var t=r(20102),n=r(84230),i=r(87344),l=r(15235),s=r(18062),y=r(14661),o=r(96187);async function c(e){!e.portalItem||e.portalItem instanceof l.default||(e={...e,portalItem:new l.default(e.portalItem)});const a=await async function(e){return await e.load(),async function(e){const a=e.className,r=i.T[a];return{constructor:await r(),properties:e.properties}}(await u(e))}(e.portalItem);return new(0,a.constructor)({portalItem:e.portalItem,...a.properties})}async function u(e){switch(e.type){case"Map Service":return async function(e){return await async function(e){return(await(0,o.T)(e.url)).tileInfo}(e)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e);case"Feature Service":return async function(e){const a=await d(e);if("object"==typeof a){const e={};return null!=a.id&&(e.layerId=a.id),{className:a.className||"FeatureLayer",properties:e}}return{className:"GroupLayer"}}(e);case"Feature Collection":return async function(e){await e.load();const a=(0,y._$)(e,"Map Notes"),r=(0,y._$)(e,"Markup");if(a||r)return{className:"MapNotesLayer"};if((0,y._$)(e,"Route Layer"))return{className:"RouteLayer"};const t=await e.fetchData();return 1===(0,s.Q4)(t)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Scene Service":return async function(e){const a=await d(e);if("object"==typeof a){const r={};let t;if(null!=a.id?(r.layerId=a.id,t=`${e.url}/layers/${a.id}`):t=e.url,e.typeKeywords?.length)for(const a of Object.keys(n.fb))if(e.typeKeywords.includes(a))return{className:n.fb[a]};const i=await(0,o.T)(t);return{className:n.fb[i?.layerType]||"SceneLayer",properties:r}}if(!1===a){const a=await(0,o.T)(e.url);return"Voxel"===a?.layerType?{className:"VoxelLayer"}:{className:"GroupLayer"}}return{className:"GroupLayer"}}(e);case"Image Service":return async function(e){await e.load();const a=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(a.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(a.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await e.fetchData(),t=r?.layerType;if("ArcGISTiledImageServiceLayer"===t)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===t)return{className:"ImageryLayer"};const n=await(0,o.T)(e.url),i=n.cacheType?.toLowerCase(),l=n.capabilities?.toLowerCase().includes("tilesonly");return"map"===i||l?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e);case"Stream Service":case"Feed":return{className:"StreamLayer"};case"Vector Tile Service":return{className:"VectorTileLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"CSV":return{className:"CSVLayer"};case"KML":return{className:"KMLLayer"};case"WFS":return{className:"WFSLayer"};case"WMTS":return{className:"WMTSLayer"};case"WMS":return{className:"WMSLayer"};default:throw new t.Z("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function d(e){const a=e.url;if(!a||/\/\d+$/.test(a))return{};await e.load();const r=await e.fetchData();if("Feature Service"===e.type){const e=p(await(0,s.$O)(r,a));if("object"==typeof e){const a=(0,s.XX)(r),t=(0,s._Y)(r);e.className=null!=e.id&&a.includes(e.id)?"SubtypeGroupLayer":null!=e.id&&t?.includes(e.id)?"OrientedImageryLayer":"FeatureLayer"}return e}return(0,s.Q4)(r)>0?p(r):p(await(0,o.T)(a))}function p(e){return 1===(0,s.Q4)(e)&&{id:(0,s.Ok)(e)}}},40555:(e,a,r)=>{r.d(a,{y:()=>l});var t=r(66643),n=r(95330),i=r(20941);async function l(e,a,r){const l=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(l&&"unique-value"===l.type&&l.styleOrigin){const s=await(0,t.q6)(l.populateFromStyle());if((0,n.k_)(r),!1===s.ok){const r=s.error;a&&a.messages&&a.messages.push(new i.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:a})),e.clear("renderer",a?.origin)}}}},96187:(e,a,r)=>{r.d(a,{T:()=>n});var t=r(3172);async function n(e,a){const{data:r}=await(0,t.Z)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return r}}}]);