@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([[8775],{51773:(t,e,i)=>{i.d(e,{Z:()=>tt});var o=i(43697),r=i(2368),s=i(46791),n=i(96674),l=i(22974),a=i(92604),p=i(95330),d=i(5600),c=i(90578),u=i(71715),h=i(52011),y=i(30556),f=i(75215),m=i(35671),b=i(84649),v=i(63801),_=i(48074),w=i(38745),C=i(9190),x=i(10214),I=i(71423),g=i(44951);const j={base:null,key:"type",typeMap:{attachment:b.Z,media:x.Z,text:g.Z,expression:w.Z,field:C.Z,relationship:I.Z}};var F,Z=i(11223),N=i(422);i(67676),i(80442);let S=F=class extends n.wq{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new F({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,o._)([(0,d.Cb)({type:Boolean,json:{write:!0}})],S.prototype,"returnTopmostRaster",void 0),(0,o._)([(0,d.Cb)({type:Boolean,json:{write:!0}})],S.prototype,"showNoDataRecords",void 0),S=F=(0,o._)([(0,h.j)("esri.popup.LayerOptions")],S);const O=S;var R,T=i(44729);let A=R=class extends n.wq{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new R({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,l.d9)(this.orderByFields):null})}};(0,o._)([(0,d.Cb)({type:Boolean,json:{write:!0}})],A.prototype,"showRelatedRecords",void 0),(0,o._)([(0,d.Cb)({type:[T.Z],json:{write:!0}})],A.prototype,"orderByFields",void 0),A=R=(0,o._)([(0,h.j)("esri.popup.RelatedRecordsInfo")],A);const E=A;var M,L=i(79742),B=i(92036),J=i(10699);let D=M=class extends((0,J.IG)(B.Z)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new M({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,o._)([(0,d.Cb)()],D.prototype,"active",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"className",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"disabled",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"icon",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"id",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"indicator",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"title",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"type",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"visible",void 0),D=M=(0,o._)([(0,h.j)("esri.support.actions.ActionBase")],D);const U=D;var q;let k=q=class extends U{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new q({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,o._)([(0,d.Cb)()],k.prototype,"image",void 0),k=q=(0,o._)([(0,h.j)("esri.support.Action.ActionButton")],k);const P=k;var V;let z=V=class extends U{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new V({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,o._)([(0,d.Cb)()],z.prototype,"image",void 0),(0,o._)([(0,d.Cb)()],z.prototype,"value",void 0),z=V=(0,o._)([(0,h.j)("esri.support.Action.ActionToggle")],z);const G=z,$=a.Z.getLogger("esri.PopupTemplate"),W="relationships/",K="expression/",X=s.Z.ofType({key:"type",defaultKeyValue:"button",base:U,typeMap:{button:P,toggle:G}}),H={base:v.Z,key:"type",typeMap:{media:x.Z,custom:_.Z,text:g.Z,attachments:b.Z,fields:C.Z,expression:w.Z,relationship:I.Z}},Q=["attachments","fields","media","text","expression","relationship"];let Y=class extends((0,r.J)(n.wq)){constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map((t=>(0,f.N7)(H,t))):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,p.y8)(t)?t:($.error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:i}=e;return Array.isArray(i)&&i.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,i):this._readPopupInfo(e)}writeContent(t,e,i,o){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter((t=>Q.includes(t.type))).map((t=>t&&t.toJSON(o))),e.popupElements.forEach((t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)}))):e.description=t}writeFieldInfos(t,e,i,o){const{content:r}=this,s=Array.isArray(r)?r:null;if(t){const i=s?s.filter((t=>"fields"===t.type)):[],r=i.length&&i.every((t=>t.fieldInfos?.length));e.fieldInfos=t.filter(Boolean).map((t=>{const e=t.toJSON(o);return r&&(e.visible=!1),e}))}if(s)for(const t of s)"fields"===t.type&&this._writeFieldsContent(t,e)}writeLayerOptions(t,e,i,o){e[i]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(o)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e){const i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,m.gd)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const i=(0,l.d9)(t.fieldInfos);Array.isArray(e.fieldInfos)?i.forEach((t=>{const i=e.fieldInfos.find((e=>e.fieldName.toLowerCase()===t.fieldName.toLowerCase()));i?i.visible=!0:e.fieldInfos.push(t)})):e.fieldInfos=i}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const i=t.orderByFields?.map((e=>this._toFieldOrderJSON(e,t.relationshipId)))||[],o=[...e.relatedRecordsInfo?.orderByFields||[],...i];e.relatedRecordsInfo={showRelatedRecords:!0,...o?.length&&{orderByFields:o}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const i=(0,l.d9)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...i]:e.mediaInfos=i}_readPopupInfoElements(t,e,i){const o={description:!1,mediaInfos:!1};return i.map((i=>"media"===i.type?(i.mediaInfos||!e||o.mediaInfos||(i.mediaInfos=e,o.mediaInfos=!0),x.Z.fromJSON(i)):"text"===i.type?(i.text||!t||o.description||(i.text=t,o.description=!0),g.Z.fromJSON(i)):"attachments"===i.type?b.Z.fromJSON(i):"fields"===i.type?C.Z.fromJSON(i):"expression"===i.type?w.Z.fromJSON(i):"relationship"===i.type?I.Z.fromJSON(i):void 0)).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:i}=t;if(!e?.startsWith(W))return null;const o=e.replace(W,"").split("/");if(2!==o.length)return null;const r=parseInt(o[0],10),s=o[1];return"number"==typeof r&&s?I.Z.fromJSON({relationshipId:r,orderByFields:[{field:s,order:i}]}):null}_toFieldOrderJSON(t,e){const{order:i,field:o}=t;return{field:`${W}${e}/${o}`,order:i}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:i,relatedRecordsInfo:o={showRelatedRecords:!1}}){const r=[];t?r.push(new g.Z({text:t})):r.push(new C.Z),Array.isArray(e)&&e.length&&r.push(x.Z.fromJSON({mediaInfos:e})),i&&r.push(b.Z.fromJSON({displayType:"auto"}));const{showRelatedRecords:s,orderByFields:n}=o;return s&&n?.length&&n.forEach((t=>{const e=this._toRelationshipContent(t);e&&r.push(e)})),r.length?r:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce(((t,e)=>[...t,...this._getMediaInfoFields(e)]),[])]}return"text"===e?this._extractFieldNames(t.text):[]}_getMediaInfoFields(t){const{caption:e,title:i,value:o}=t,r=o||{},{fields:s,normalizeField:n,tooltipField:l,sourceURL:a,linkURL:p}=r,d=[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(a),...this._extractFieldNames(p),...s??[]];return n&&d.push(n),l&&d.push(l),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce(((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]]),e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce(((t,e)=>[...t,...this._getContentElementFields(e)]),[]):[]}async _collectExpressionInfoFields(t,e,i){i&&await Promise.all(i.map((i=>(0,m.io)(t,e,i.expression))))}_getFieldInfoFields(t){return t?t.filter((t=>void 0===t.visible||!!t.visible)).map((t=>t.fieldName)).filter((t=>!t.startsWith(W)&&!t.startsWith(K))):[]}_getActionsFields(t){return t?t.toArray().reduce(((t,e)=>[...t,...this._getActionFields(e)]),[]):[]}_getActionFields(t){const{className:e,title:i,type:o}=t,r="button"===o||"toggle"===o?t.image:"";return[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(r)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){if(!t||"string"!=typeof t)return[];const e=t.match(/{[^}]*}/g);if(!e)return[];const i=/\{(\w+):.+\}/,o=e.filter((t=>!(0===t.indexOf(`{${W}`)||0===t.indexOf(`{${K}`)))).map((t=>t.replace(i,"{$1}")));return o?o.map((t=>t.slice(1,-1))):[]}};(0,o._)([(0,d.Cb)({type:X})],Y.prototype,"actions",void 0),(0,o._)([(0,d.Cb)()],Y.prototype,"content",void 0),(0,o._)([(0,c.p)("content")],Y.prototype,"castContent",null),(0,o._)([(0,u.r)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],Y.prototype,"readContent",null),(0,o._)([(0,y.c)("content",{popupElements:{type:s.Z.ofType(j)},showAttachments:{type:Boolean},mediaInfos:{type:s.Z.ofType(L.V)},description:{type:String},relatedRecordsInfo:{type:E}})],Y.prototype,"writeContent",null),(0,o._)([(0,d.Cb)({type:[Z.Z],json:{write:!0}})],Y.prototype,"expressionInfos",void 0),(0,o._)([(0,d.Cb)({type:[N.Z]})],Y.prototype,"fieldInfos",void 0),(0,o._)([(0,y.c)("fieldInfos")],Y.prototype,"writeFieldInfos",null),(0,o._)([(0,d.Cb)({type:O})],Y.prototype,"layerOptions",void 0),(0,o._)([(0,y.c)("layerOptions")],Y.prototype,"writeLayerOptions",null),(0,o._)([(0,d.Cb)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],Y.prototype,"lastEditInfoEnabled",void 0),(0,o._)([(0,d.Cb)()],Y.prototype,"outFields",void 0),(0,o._)([(0,d.Cb)()],Y.prototype,"overwriteActions",void 0),(0,o._)([(0,d.Cb)()],Y.prototype,"returnGeometry",void 0),(0,o._)([(0,d.Cb)({json:{type:String}})],Y.prototype,"title",void 0),(0,o._)([(0,y.c)("title")],Y.prototype,"writeTitle",null),Y=(0,o._)([(0,h.j)("esri.PopupTemplate")],Y);const tt=Y},10699:(t,e,i)=>{i.d(e,{IG:()=>n,iv:()=>l});var o=i(43697),r=i(52011);let s=0;const n=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return e=(0,o._)([(0,r.j)("esri.core.Identifiable")],e),e},l=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return e=(0,o._)([(0,r.j)("esri.core.NumericIdentifiable")],e),e};let a=class extends(n(class{})){};a=(0,o._)([(0,r.j)("esri.core.Identifiable")],a)},18848:(t,e,i)=>{i.d(e,{sh:()=>l,uf:()=>a});var o=i(70171);const r={ar:"ar-u-nu-latn"};let s=new WeakMap,n={};function l(t={}){const e={};return null!=t.digitSeparator&&(e.useGrouping=t.digitSeparator),null!=t.places&&(e.minimumFractionDigits=e.maximumFractionDigits=t.places),e}function a(t,e){return Object.is(t,-0)&&(t=0),function(t){const e=t||n;if(!s.has(e)){const i=(0,o.Kd)(),n=r[(0,o.Kd)()]||i;s.set(e,new Intl.NumberFormat(n,t))}return s.get(e)}(e).format(t)}(0,o.Ze)((()=>{s=new WeakMap,n={}}))},87085:(t,e,i)=>{i.d(e,{Z:()=>_});var o=i(43697),r=(i(66577),i(3172)),s=i(20102),n=i(32448),l=i(10699),a=i(83379),p=i(92604),d=i(95330),c=i(17452),u=i(5600),h=(i(75215),i(67676),i(80442),i(52011)),y=i(68773),f=i(6570),m=i(82971);let b=0,v=class extends(n.Z.EventedMixin((0,l.IG)(a.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.Z(-180,-90,180,90,m.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+b++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.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 i.e(3529).then(i.bind(i,63529))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:o}=await i.e(8008).then(i.bind(i,28008));try{return await o(e)}catch(t){const i=e&&e.portalItem,o=i&&i.id||"unset",r=i&&i.portal&&i.portal.url||y.default.portalUrl;throw p.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+o+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,d.D_)(t)||p.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,c.mN)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,r.Z)(t,{query:{f:"json"},responseType:"json"})).data;throw new s.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,o._)([(0,u.Cb)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,o._)([(0,u.Cb)({type:f.Z})],v.prototype,"fullExtent",void 0),(0,o._)([(0,u.Cb)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,o._)([(0,u.Cb)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,o._)([(0,u.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,o._)([(0,u.Cb)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,o._)([(0,u.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,o._)([(0,u.Cb)({clonable:!1})],v.prototype,"parent",void 0),(0,o._)([(0,u.Cb)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,o._)([(0,u.Cb)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,o._)([(0,u.Cb)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,o._)([(0,u.Cb)({type:m.Z})],v.prototype,"spatialReference",void 0),(0,o._)([(0,u.Cb)({type:String})],v.prototype,"title",void 0),(0,o._)([(0,u.Cb)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,o._)([(0,u.Cb)()],v.prototype,"url",void 0),(0,o._)([(0,u.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,o._)([(0,h.j)("esri.layers.Layer")],v);const _=v},11223:(t,e,i)=>{i.d(e,{Z:()=>p});var o,r=i(43697),s=i(96674),n=i(5600),l=(i(75215),i(67676),i(80442),i(52011));let a=o=class extends s.wq{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new o({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"name",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"expression",void 0),(0,r._)([(0,n.Cb)({type:["string","number"],json:{write:!0}})],a.prototype,"returnType",void 0),a=o=(0,r._)([(0,l.j)("esri.popup.ExpressionInfo")],a);const p=a},422:(t,e,i)=>{i.d(e,{Z:()=>h});var o,r=i(43697),s=i(35454),n=i(96674),l=i(22974),a=i(5600),p=(i(75215),i(36030)),d=i(52011),c=i(29986);let u=o=class extends n.wq{constructor(t){super(t),this.fieldName=null,this.format=null,this.isEditable=!0,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new o({fieldName:this.fieldName,format:this.format?(0,l.d9)(this.format):null,isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],u.prototype,"fieldName",void 0),(0,r._)([(0,a.Cb)({type:c.Z,json:{write:!0}})],u.prototype,"format",void 0),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],u.prototype,"isEditable",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,p.J)(new s.X({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],u.prototype,"stringFieldOption",void 0),(0,r._)([(0,a.Cb)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],u.prototype,"statisticType",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],u.prototype,"tooltip",void 0),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"visible",void 0),u=o=(0,r._)([(0,d.j)("esri.popup.FieldInfo")],u);const h=u},84649:(t,e,i)=>{i.d(e,{Z:()=>p});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(63801);let a=o=class extends l.Z{constructor(t){super(t),this.description=null,this.displayType="auto",this.title=null,this.type="attachments"}clone(){return new o({description:this.description,displayType:this.displayType,title:this.title})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,r._)([(0,s.Cb)({type:["auto","preview","list"],json:{write:!0}})],a.prototype,"displayType",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,r._)([(0,s.Cb)({type:["attachments"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=o=(0,r._)([(0,n.j)("esri.popup.content.AttachmentsContent")],a);const p=a},41463:(t,e,i)=>{i.d(e,{Z:()=>d});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(50379),a=i(87102);let p=o=class extends l.Z{constructor(t){super(t),this.type="bar-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:a.l.write}})],p.prototype,"type",void 0),p=o=(0,r._)([(0,n.j)("esri.popup.content.BarChartMediaInfo")],p);const d=p},87131:(t,e,i)=>{i.d(e,{Z:()=>d});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(50379),a=i(87102);let p=o=class extends l.Z{constructor(t){super(t),this.type="column-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:a.l.write}})],p.prototype,"type",void 0),p=o=(0,r._)([(0,n.j)("esri.popup.content.ColumnChartMediaInfo")],p);const d=p},63801:(t,e,i)=>{i.d(e,{Z:()=>a});var o=i(43697),r=i(96674),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011));let l=class extends r.wq{constructor(t){super(t),this.type=null}};(0,o._)([(0,s.Cb)({type:["attachments","custom","fields","media","text","expression","relationship"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,o._)([(0,n.j)("esri.popup.content.Content")],l);const a=l},48074:(t,e,i)=>{i.d(e,{Z:()=>d});var o,r=i(43697),s=i(22974),n=i(5600),l=(i(75215),i(52011)),a=i(63801);let p=o=class extends a.Z{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new o({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,s.d9)(this.outFields):null})}};(0,r._)([(0,n.Cb)()],p.prototype,"creator",void 0),(0,r._)([(0,n.Cb)()],p.prototype,"destroyer",void 0),(0,r._)([(0,n.Cb)()],p.prototype,"outFields",void 0),(0,r._)([(0,n.Cb)({type:["custom"],readOnly:!0})],p.prototype,"type",void 0),p=o=(0,r._)([(0,l.j)("esri.popup.content.CustomContent")],p);const d=p},38745:(t,e,i)=>{i.d(e,{Z:()=>h});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(96674);let a=o=class extends l.wq{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new o({title:this.title,expression:this.expression})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"expression",void 0),(0,r._)([(0,s.Cb)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"returnType",void 0),a=o=(0,r._)([(0,n.j)("esri.popup.ElementExpressionInfo")],a);const p=a;var d,c=i(63801);let u=d=class extends c.Z{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new d({expressionInfo:this.expressionInfo?.clone()})}};(0,r._)([(0,s.Cb)({type:p,json:{write:!0}})],u.prototype,"expressionInfo",void 0),(0,r._)([(0,s.Cb)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],u.prototype,"type",void 0),u=d=(0,r._)([(0,n.j)("esri.popup.content.ExpressionContent")],u);const h=u},9190:(t,e,i)=>{i.d(e,{Z:()=>u});var o,r=i(43697),s=i(22974),n=i(5600),l=(i(75215),i(52011)),a=i(30556),p=i(422),d=i(63801);let c=o=class extends d.Z{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(t,e){e.fieldInfos=t&&t.map((t=>t.toJSON()))}clone(){return new o((0,s.d9)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,r._)([(0,n.Cb)({type:Object,json:{write:!0}})],c.prototype,"attributes",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:[p.Z]})],c.prototype,"fieldInfos",void 0),(0,r._)([(0,a.c)("fieldInfos")],c.prototype,"writeFieldInfos",null),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:["fields"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0),c=o=(0,r._)([(0,l.j)("esri.popup.content.FieldsContent")],c);const u=c},13151:(t,e,i)=>{i.d(e,{Z:()=>h});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(35320),a=i(96674);let p=o=class extends a.wq{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new o({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"linkURL",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"sourceURL",void 0),p=o=(0,r._)([(0,n.j)("esri.popup.content.support.ImageMediaInfoValue")],p);const d=p;var c;let u=c=class extends l.Z{constructor(t){super(t),this.refreshInterval=null,this.type="image",this.value=null}clone(){return new c({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:Number,json:{write:!0}})],u.prototype,"refreshInterval",void 0),(0,r._)([(0,s.Cb)({type:["image"],readOnly:!0,json:{read:!1,write:!0}})],u.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:d,json:{write:!0}})],u.prototype,"value",void 0),u=c=(0,r._)([(0,n.j)("esri.popup.content.ImageMediaInfo")],u);const h=u},55869:(t,e,i)=>{i.d(e,{Z:()=>d});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(50379),a=i(87102);let p=o=class extends l.Z{constructor(t){super(t),this.type="line-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:a.l.write}})],p.prototype,"type",void 0),p=o=(0,r._)([(0,n.j)("esri.popup.content.LineChartMediaInfo")],p);const d=p},10214:(t,e,i)=>{i.d(e,{Z:()=>v});var o,r=i(43697),s=i(22974),n=i(5600),l=(i(75215),i(71715)),a=i(52011),p=i(30556),d=i(41463),c=i(87131),u=i(63801),h=i(13151),y=i(55869),f=i(13353),m=i(79742);let b=o=class extends u.Z{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map((t=>"image"===t.type?h.Z.fromJSON(t):"barchart"===t.type?d.Z.fromJSON(t):"columnchart"===t.type?c.Z.fromJSON(t):"linechart"===t.type?y.Z.fromJSON(t):"piechart"===t.type?f.Z.fromJSON(t):void 0)).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map((t=>t.toJSON()))}clone(){return new o((0,s.d9)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,r._)([(0,n.Cb)()],b.prototype,"activeMediaInfoIndex",void 0),(0,r._)([(0,n.Cb)({type:Object,json:{write:!0}})],b.prototype,"attributes",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],b.prototype,"description",void 0),(0,r._)([(0,n.Cb)({types:[m.V]})],b.prototype,"mediaInfos",void 0),(0,r._)([(0,l.r)("mediaInfos")],b.prototype,"readMediaInfos",null),(0,r._)([(0,p.c)("mediaInfos")],b.prototype,"writeMediaInfos",null),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],b.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:["media"],readOnly:!0,json:{read:!1,write:!0}})],b.prototype,"type",void 0),b=o=(0,r._)([(0,a.j)("esri.popup.content.MediaContent")],b);const v=b},13353:(t,e,i)=>{i.d(e,{Z:()=>d});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(50379),a=i(87102);let p=o=class extends l.Z{constructor(t){super(t),this.type="pie-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:a.l.write}})],p.prototype,"type",void 0),p=o=(0,r._)([(0,n.j)("esri.popup.content.PieChartMediaInfo")],p);const d=p},71423:(t,e,i)=>{i.d(e,{Z:()=>c});var o=i(43697),r=i(2368),s=i(5600),n=i(75215),l=(i(67676),i(80442),i(52011)),a=i(63801),p=i(44729);let d=class extends((0,r.J)(a.Z)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,o._)([(0,s.Cb)({type:Number,json:{type:n.z8,write:!0}})],d.prototype,"displayCount",void 0),(0,o._)([(0,s.Cb)({type:["list"],json:{write:!0}})],d.prototype,"displayType",void 0),(0,o._)([(0,s.Cb)({type:[p.Z],json:{write:!0}})],d.prototype,"orderByFields",void 0),(0,o._)([(0,s.Cb)({type:Number,json:{type:n.z8,write:!0}})],d.prototype,"relationshipId",void 0),(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,o._)([(0,s.Cb)({type:["relationship"],readOnly:!0,json:{read:!1,write:!0}})],d.prototype,"type",void 0),d=(0,o._)([(0,l.j)("esri.popup.content.RelationshipContent")],d);const c=d},44951:(t,e,i)=>{i.d(e,{Z:()=>p});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(63801);let a=o=class extends l.Z{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new o({text:this.text})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"text",void 0),(0,r._)([(0,s.Cb)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=o=(0,r._)([(0,n.j)("esri.popup.content.TextContent")],a);const p=a},50379:(t,e,i)=>{i.d(e,{Z:()=>b});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(35320),a=i(96674),p=i(22974),d=i(92036);let c=o=class extends d.Z{constructor(t){super(t),this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new o({fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,r._)([(0,s.Cb)()],c.prototype,"fieldName",void 0),(0,r._)([(0,s.Cb)()],c.prototype,"tooltip",void 0),(0,r._)([(0,s.Cb)()],c.prototype,"value",void 0),c=o=(0,r._)([(0,n.j)("esri.popup.content.support.ChartMediaInfoValueSeries")],c);const u=c;var h;let y=h=class extends a.wq{constructor(t){super(t),this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new h({fields:(0,p.d9)(this.fields),normalizeField:this.normalizeField,tooltipField:this.tooltipField})}};(0,r._)([(0,s.Cb)({type:[String],json:{write:!0}})],y.prototype,"fields",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizeField",void 0),(0,r._)([(0,s.Cb)({type:[u],json:{read:!1}})],y.prototype,"series",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"tooltipField",void 0),y=h=(0,r._)([(0,n.j)("esri.popup.content.support.ChartMediaInfoValue")],y);const f=y;let m=class extends l.Z{constructor(t){super(t),this.type=null,this.value=null}};(0,r._)([(0,s.Cb)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],m.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:f,json:{write:!0}})],m.prototype,"value",void 0),m=(0,r._)([(0,n.j)("esri.popup.content.mixins.ChartMediaInfo")],m);const b=m},35320:(t,e,i)=>{i.d(e,{Z:()=>a});var o=i(43697),r=i(96674),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011));let l=class extends r.wq{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"altText",void 0),(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"caption",void 0),(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,o._)([(0,s.Cb)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,o._)([(0,n.j)("esri.popup.content.mixins.MediaInfo")],l);const a=l},87102:(t,e,i)=>{i.d(e,{l:()=>o});const o=(0,i(35454).w)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"})},79742:(t,e,i)=>{i.d(e,{V:()=>a});var o=i(41463),r=i(87131),s=i(13151),n=i(55869),l=i(13353);const a={base:i(35320).Z,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":o.Z,"column-chart":r.Z,"line-chart":n.Z,"pie-chart":l.Z,image:s.Z}}},29986:(t,e,i)=>{i.d(e,{Z:()=>h});var o=i(43697),r=i(2368),s=i(96674),n=i(5600),l=i(75215),a=(i(67676),i(80442),i(36030)),p=i(52011),d=i(90344),c=i(18848);let u=class extends((0,r.J)(s.wq)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}formatNumber(t){return(0,c.uf)(t,(0,c.sh)(this))}formatDate(t,e=!1){return this.dateFormat?(0,d.p6)(t,{...(0,d.Ze)(this.dateFormat),...e&&d.cZ}):this.formatNumber(t)}formatDateOnly(t){const e=(this.dateFormat&&(0,d.Ze)(this.dateFormat))??void 0;return(0,d.o8)(t,e)}formatTimeOnly(t){const e=(this.dateFormat&&(0,d.Ze)(this.dateFormat))??void 0;return(0,d.LJ)(t,e)}formatTimestamp(t){const e=(this.dateFormat&&(0,d.Ze)(this.dateFormat))??void 0;return(0,d.i$)(t,e)}formatRasterPixelValue(t){return t=t.trim(),/\d{2}-\d{2}/.test(t)?t:t.includes(",")?this._formatDelimitedString(t,",",", "):t.includes(";")?this._formatDelimitedString(t,";","; "):t.includes(" ")?this._formatDelimitedString(t," "," "):this.formatNumber(Number(t))}_formatDelimitedString(t,e,i){return t&&e&&i?t.trim().split(e).map((t=>this.formatNumber(Number(t)))).join(i):t}};(0,o._)([(0,a.J)(d.Xr)],u.prototype,"dateFormat",void 0),(0,o._)([(0,n.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"digitSeparator",void 0),(0,o._)([(0,n.Cb)({type:l.z8,json:{write:!0}})],u.prototype,"places",void 0),u=(0,o._)([(0,p.j)("esri.popup.support.FieldInfoFormat")],u);const h=u},44729:(t,e,i)=>{i.d(e,{Z:()=>p});var o,r=i(43697),s=i(96674),n=i(5600),l=(i(75215),i(67676),i(80442),i(52011));let a=o=class extends s.wq{constructor(t){super(t),this.field=null,this.order=null}clone(){return new o({field:this.field,order:this.order})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"field",void 0),(0,r._)([(0,n.Cb)({type:["asc","desc"],json:{write:!0}})],a.prototype,"order",void 0),a=o=(0,r._)([(0,l.j)("esri.popup.support.RelatedRecordsInfoFieldOrder")],a);const p=a}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8775],{51773:(t,e,i)=>{i.d(e,{Z:()=>tt});var o=i(43697),r=i(2368),s=i(46791),n=i(96674),l=i(22974),a=i(92604),p=i(95330),d=i(5600),c=i(90578),u=i(71715),h=i(52011),y=i(30556),f=i(75215),m=i(35671),b=i(84649),v=i(63801),_=i(48074),w=i(38745),C=i(9190),x=i(10214),I=i(71423),g=i(44951);const j={base:null,key:"type",typeMap:{attachment:b.Z,media:x.Z,text:g.Z,expression:w.Z,field:C.Z,relationship:I.Z}};var Z,F=i(11223),N=i(422);i(67676),i(80442);let S=Z=class extends n.wq{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new Z({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,o._)([(0,d.Cb)({type:Boolean,json:{write:!0}})],S.prototype,"returnTopmostRaster",void 0),(0,o._)([(0,d.Cb)({type:Boolean,json:{write:!0}})],S.prototype,"showNoDataRecords",void 0),S=Z=(0,o._)([(0,h.j)("esri.popup.LayerOptions")],S);const O=S;var R,T=i(44729);let A=R=class extends n.wq{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new R({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,l.d9)(this.orderByFields):null})}};(0,o._)([(0,d.Cb)({type:Boolean,json:{write:!0}})],A.prototype,"showRelatedRecords",void 0),(0,o._)([(0,d.Cb)({type:[T.Z],json:{write:!0}})],A.prototype,"orderByFields",void 0),A=R=(0,o._)([(0,h.j)("esri.popup.RelatedRecordsInfo")],A);const E=A;var M,L=i(79742),B=i(92036),J=i(10699);let D=M=class extends((0,J.IG)(B.Z)){constructor(t){super(t),this.active=!1,this.className=null,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}clone(){return new M({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible})}};(0,o._)([(0,d.Cb)()],D.prototype,"active",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"className",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"disabled",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"icon",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"id",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"indicator",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"title",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"type",void 0),(0,o._)([(0,d.Cb)()],D.prototype,"visible",void 0),D=M=(0,o._)([(0,h.j)("esri.support.actions.ActionBase")],D);const U=D;var q;let k=q=class extends U{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new q({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})}};(0,o._)([(0,d.Cb)()],k.prototype,"image",void 0),k=q=(0,o._)([(0,h.j)("esri.support.Action.ActionButton")],k);const P=k;var V;let z=V=class extends U{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new V({active:this.active,className:this.className,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})}};(0,o._)([(0,d.Cb)()],z.prototype,"image",void 0),(0,o._)([(0,d.Cb)()],z.prototype,"value",void 0),z=V=(0,o._)([(0,h.j)("esri.support.Action.ActionToggle")],z);const G=z,$=a.Z.getLogger("esri.PopupTemplate"),W="relationships/",K="expression/",X=s.Z.ofType({key:"type",defaultKeyValue:"button",base:U,typeMap:{button:P,toggle:G}}),H={base:v.Z,key:"type",typeMap:{media:x.Z,custom:_.Z,text:g.Z,attachments:b.Z,fields:C.Z,expression:w.Z,relationship:I.Z}},Q=["attachments","fields","media","text","expression","relationship"];let Y=class extends((0,r.J)(n.wq)){constructor(){super(...arguments),this.actions=null,this.content="",this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}castContent(t){return Array.isArray(t)?t.map((t=>(0,f.N7)(H,t))):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,p.y8)(t)?t:($.error("content error","unsupported content value",{value:t}),null)}readContent(t,e){const{popupElements:i}=e;return Array.isArray(i)&&i.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,i):this._readPopupInfo(e)}writeContent(t,e,i,o){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter((t=>Q.includes(t.type))).map((t=>t&&t.toJSON(o))),e.popupElements.forEach((t=>{"attachments"===t.type?this._writeAttachmentContent(e):"media"===t.type?this._writeMediaContent(t,e):"text"===t.type?this._writeTextContent(t,e):"relationship"===t.type&&this._writeRelationshipContent(t,e)}))):e.description=t}writeFieldInfos(t,e,i,o){const{content:r}=this,s=Array.isArray(r)?r:null;if(t){const i=s?s.filter((t=>"fields"===t.type)):[],r=i.length&&i.every((t=>t.fieldInfos?.length));e.fieldInfos=t.filter(Boolean).map((t=>{const e=t.toJSON(o);return r&&(e.visible=!1),e}))}if(s)for(const t of s)"fields"===t.type&&this._writeFieldsContent(t,e)}writeLayerOptions(t,e,i,o){e[i]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(o)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e){const i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,m.gd)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t){const e=new Set;return await this.collectRequiredFields(e,t),[...e].sort()}_writeFieldsContent(t,e){if(!Array.isArray(t.fieldInfos)||!t.fieldInfos.length)return;const i=(0,l.d9)(t.fieldInfos);Array.isArray(e.fieldInfos)?i.forEach((t=>{const i=e.fieldInfos.find((e=>e.fieldName.toLowerCase()===t.fieldName.toLowerCase()));i?i.visible=!0:e.fieldInfos.push(t)})):e.fieldInfos=i}_writeAttachmentContent(t){t.showAttachments||(t.showAttachments=!0)}_writeRelationshipContent(t,e){const i=t.orderByFields?.map((e=>this._toFieldOrderJSON(e,t.relationshipId)))||[],o=[...e.relatedRecordsInfo?.orderByFields||[],...i];e.relatedRecordsInfo={showRelatedRecords:!0,...o?.length&&{orderByFields:o}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;const i=(0,l.d9)(t.mediaInfos);Array.isArray(e.mediaInfos)?e.mediaInfos=[...e.mediaInfos,...i]:e.mediaInfos=i}_readPopupInfoElements(t,e,i){const o={description:!1,mediaInfos:!1};return i.map((i=>"media"===i.type?(i.mediaInfos||!e||o.mediaInfos||(i.mediaInfos=e,o.mediaInfos=!0),x.Z.fromJSON(i)):"text"===i.type?(i.text||!t||o.description||(i.text=t,o.description=!0),g.Z.fromJSON(i)):"attachments"===i.type?b.Z.fromJSON(i):"fields"===i.type?C.Z.fromJSON(i):"expression"===i.type?w.Z.fromJSON(i):"relationship"===i.type?I.Z.fromJSON(i):void 0)).filter(Boolean)}_toRelationshipContent(t){const{field:e,order:i}=t;if(!e?.startsWith(W))return null;const o=e.replace(W,"").split("/");if(2!==o.length)return null;const r=parseInt(o[0],10),s=o[1];return"number"==typeof r&&s?I.Z.fromJSON({relationshipId:r,orderByFields:[{field:s,order:i}]}):null}_toFieldOrderJSON(t,e){const{order:i,field:o}=t;return{field:`${W}${e}/${o}`,order:i}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:i,relatedRecordsInfo:o={showRelatedRecords:!1}}){const r=[];t?r.push(new g.Z({text:t})):r.push(new C.Z),Array.isArray(e)&&e.length&&r.push(x.Z.fromJSON({mediaInfos:e})),i&&r.push(b.Z.fromJSON({displayType:"auto"}));const{showRelatedRecords:s,orderByFields:n}=o;return s&&n?.length&&n.forEach((t=>{const e=this._toRelationshipContent(t);e&&r.push(e)})),r.length?r:t}_getContentElementFields(t){const e=t?.type;if("attachments"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)];if("custom"===e)return t.outFields||[];if("fields"===e)return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...this._getFieldInfoFields(t.fieldInfos??this.fieldInfos)];if("media"===e){const e=t.mediaInfos||[];return[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description),...e.reduce(((t,e)=>[...t,...this._getMediaInfoFields(e)]),[])]}return"text"===e?this._extractFieldNames(t.text):[]}_getMediaInfoFields(t){const{caption:e,title:i,value:o}=t,r=o||{},{fields:s,normalizeField:n,tooltipField:l,sourceURL:a,linkURL:p}=r,d=[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(a),...this._extractFieldNames(p),...s??[]];return n&&d.push(n),l&&d.push(l),d}_getContentExpressionInfos(t,e){return Array.isArray(t)?t.reduce(((t,e)=>[...t,..."expression"===e.type&&e.expressionInfo?[e.expressionInfo]:[]]),e):[]}_getContentFields(t){return"string"==typeof t?this._extractFieldNames(t):Array.isArray(t)?t.reduce(((t,e)=>[...t,...this._getContentElementFields(e)]),[]):[]}async _collectExpressionInfoFields(t,e,i){i&&await Promise.all(i.map((i=>(0,m.io)(t,e,i.expression))))}_getFieldInfoFields(t){return t?t.filter((t=>void 0===t.visible||!!t.visible)).map((t=>t.fieldName)).filter((t=>!t.startsWith(W)&&!t.startsWith(K))):[]}_getActionsFields(t){return t?t.toArray().reduce(((t,e)=>[...t,...this._getActionFields(e)]),[]):[]}_getActionFields(t){const{className:e,title:i,type:o}=t,r="button"===o||"toggle"===o?t.image:"";return[...this._extractFieldNames(i),...this._extractFieldNames(e),...this._extractFieldNames(r)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){if(!t||"string"!=typeof t)return[];const e=t.match(/{[^}]*}/g);if(!e)return[];const i=/\{(\w+):.+\}/,o=e.filter((t=>!(0===t.indexOf(`{${W}`)||0===t.indexOf(`{${K}`)))).map((t=>t.replace(i,"{$1}")));return o?o.map((t=>t.slice(1,-1))):[]}};(0,o._)([(0,d.Cb)({type:X})],Y.prototype,"actions",void 0),(0,o._)([(0,d.Cb)()],Y.prototype,"content",void 0),(0,o._)([(0,c.p)("content")],Y.prototype,"castContent",null),(0,o._)([(0,u.r)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],Y.prototype,"readContent",null),(0,o._)([(0,y.c)("content",{popupElements:{type:s.Z.ofType(j)},showAttachments:{type:Boolean},mediaInfos:{type:s.Z.ofType(L.V)},description:{type:String},relatedRecordsInfo:{type:E}})],Y.prototype,"writeContent",null),(0,o._)([(0,d.Cb)({type:[F.Z],json:{write:!0}})],Y.prototype,"expressionInfos",void 0),(0,o._)([(0,d.Cb)({type:[N.Z]})],Y.prototype,"fieldInfos",void 0),(0,o._)([(0,y.c)("fieldInfos")],Y.prototype,"writeFieldInfos",null),(0,o._)([(0,d.Cb)({type:O})],Y.prototype,"layerOptions",void 0),(0,o._)([(0,y.c)("layerOptions")],Y.prototype,"writeLayerOptions",null),(0,o._)([(0,d.Cb)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],Y.prototype,"lastEditInfoEnabled",void 0),(0,o._)([(0,d.Cb)()],Y.prototype,"outFields",void 0),(0,o._)([(0,d.Cb)()],Y.prototype,"overwriteActions",void 0),(0,o._)([(0,d.Cb)()],Y.prototype,"returnGeometry",void 0),(0,o._)([(0,d.Cb)({json:{type:String}})],Y.prototype,"title",void 0),(0,o._)([(0,y.c)("title")],Y.prototype,"writeTitle",null),Y=(0,o._)([(0,h.j)("esri.PopupTemplate")],Y);const tt=Y},10699:(t,e,i)=>{i.d(e,{IG:()=>n,iv:()=>l});var o=i(43697),r=i(52011);let s=0;const n=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return e=(0,o._)([(0,r.j)("esri.core.Identifiable")],e),e},l=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return e=(0,o._)([(0,r.j)("esri.core.NumericIdentifiable")],e),e};let a=class extends(n(class{})){};a=(0,o._)([(0,r.j)("esri.core.Identifiable")],a)},18848:(t,e,i)=>{i.d(e,{sh:()=>l,uf:()=>a});var o=i(70171);const r={ar:"ar-u-nu-latn"};let s=new WeakMap,n={};function l(t={}){const e={};return null!=t.digitSeparator&&(e.useGrouping=t.digitSeparator),null!=t.places&&(e.minimumFractionDigits=e.maximumFractionDigits=t.places),e}function a(t,e){return Object.is(t,-0)&&(t=0),function(t){const e=t||n;if(!s.has(e)){const i=(0,o.Kd)(),n=r[(0,o.Kd)()]||i;s.set(e,new Intl.NumberFormat(n,t))}return s.get(e)}(e).format(t)}(0,o.Ze)((()=>{s=new WeakMap,n={}}))},87085:(t,e,i)=>{i.d(e,{Z:()=>_});var o=i(43697),r=(i(66577),i(3172)),s=i(20102),n=i(32448),l=i(10699),a=i(83379),p=i(92604),d=i(95330),c=i(17452),u=i(5600),h=(i(75215),i(67676),i(80442),i(52011)),y=i(68773),f=i(6570),m=i(82971);let b=0,v=class extends(n.Z.EventedMixin((0,l.IG)(a.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.Z(-180,-90,180,90,m.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+b++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.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 i.e(3529).then(i.bind(i,63529))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:o}=await i.e(8008).then(i.bind(i,28008));try{return await o(e)}catch(t){const i=e&&e.portalItem,o=i&&i.id||"unset",r=i&&i.portal&&i.portal.url||y.default.portalUrl;throw p.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+r+"', id: '"+o+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,d.D_)(t)||p.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,c.mN)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,r.Z)(t,{query:{f:"json"},responseType:"json"})).data;throw new s.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,o._)([(0,u.Cb)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,o._)([(0,u.Cb)({type:f.Z})],v.prototype,"fullExtent",void 0),(0,o._)([(0,u.Cb)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,o._)([(0,u.Cb)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,o._)([(0,u.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,o._)([(0,u.Cb)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,o._)([(0,u.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,o._)([(0,u.Cb)({clonable:!1})],v.prototype,"parent",void 0),(0,o._)([(0,u.Cb)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,o._)([(0,u.Cb)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,o._)([(0,u.Cb)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,o._)([(0,u.Cb)({type:m.Z})],v.prototype,"spatialReference",void 0),(0,o._)([(0,u.Cb)({type:String})],v.prototype,"title",void 0),(0,o._)([(0,u.Cb)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,o._)([(0,u.Cb)()],v.prototype,"url",void 0),(0,o._)([(0,u.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,o._)([(0,h.j)("esri.layers.Layer")],v);const _=v},11223:(t,e,i)=>{i.d(e,{Z:()=>p});var o,r=i(43697),s=i(96674),n=i(5600),l=(i(75215),i(67676),i(80442),i(52011));let a=o=class extends s.wq{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new o({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"name",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"expression",void 0),(0,r._)([(0,n.Cb)({type:["string","number"],json:{write:!0}})],a.prototype,"returnType",void 0),a=o=(0,r._)([(0,l.j)("esri.popup.ExpressionInfo")],a);const p=a},422:(t,e,i)=>{i.d(e,{Z:()=>h});var o,r=i(43697),s=i(35454),n=i(96674),l=i(22974),a=i(5600),p=(i(75215),i(36030)),d=i(52011),c=i(29986);let u=o=class extends n.wq{constructor(t){super(t),this.fieldName=null,this.format=null,this.isEditable=!0,this.label=null,this.stringFieldOption="text-box",this.statisticType=null,this.tooltip=null,this.visible=!0}clone(){return new o({fieldName:this.fieldName,format:this.format?(0,l.d9)(this.format):null,isEditable:this.isEditable,label:this.label,stringFieldOption:this.stringFieldOption,statisticType:this.statisticType,tooltip:this.tooltip,visible:this.visible})}};(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],u.prototype,"fieldName",void 0),(0,r._)([(0,a.Cb)({type:c.Z,json:{write:!0}})],u.prototype,"format",void 0),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],u.prototype,"isEditable",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,r._)([(0,p.J)(new s.X({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],u.prototype,"stringFieldOption",void 0),(0,r._)([(0,a.Cb)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],u.prototype,"statisticType",void 0),(0,r._)([(0,a.Cb)({type:String,json:{write:!0}})],u.prototype,"tooltip",void 0),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"visible",void 0),u=o=(0,r._)([(0,d.j)("esri.popup.FieldInfo")],u);const h=u},84649:(t,e,i)=>{i.d(e,{Z:()=>p});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(63801);let a=o=class extends l.Z{constructor(t){super(t),this.description=null,this.displayType="auto",this.title=null,this.type="attachments"}clone(){return new o({description:this.description,displayType:this.displayType,title:this.title})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,r._)([(0,s.Cb)({type:["auto","preview","list"],json:{write:!0}})],a.prototype,"displayType",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,r._)([(0,s.Cb)({type:["attachments"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=o=(0,r._)([(0,n.j)("esri.popup.content.AttachmentsContent")],a);const p=a},41463:(t,e,i)=>{i.d(e,{Z:()=>d});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(50379),a=i(87102);let p=o=class extends l.Z{constructor(t){super(t),this.type="bar-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:a.l.write}})],p.prototype,"type",void 0),p=o=(0,r._)([(0,n.j)("esri.popup.content.BarChartMediaInfo")],p);const d=p},87131:(t,e,i)=>{i.d(e,{Z:()=>d});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(50379),a=i(87102);let p=o=class extends l.Z{constructor(t){super(t),this.type="column-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:a.l.write}})],p.prototype,"type",void 0),p=o=(0,r._)([(0,n.j)("esri.popup.content.ColumnChartMediaInfo")],p);const d=p},63801:(t,e,i)=>{i.d(e,{Z:()=>a});var o=i(43697),r=i(96674),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011));let l=class extends r.wq{constructor(t){super(t),this.type=null}};(0,o._)([(0,s.Cb)({type:["attachments","custom","fields","media","text","expression","relationship"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,o._)([(0,n.j)("esri.popup.content.Content")],l);const a=l},48074:(t,e,i)=>{i.d(e,{Z:()=>d});var o,r=i(43697),s=i(22974),n=i(5600),l=(i(75215),i(52011)),a=i(63801);let p=o=class extends a.Z{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new o({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,s.d9)(this.outFields):null})}};(0,r._)([(0,n.Cb)()],p.prototype,"creator",void 0),(0,r._)([(0,n.Cb)()],p.prototype,"destroyer",void 0),(0,r._)([(0,n.Cb)()],p.prototype,"outFields",void 0),(0,r._)([(0,n.Cb)({type:["custom"],readOnly:!0})],p.prototype,"type",void 0),p=o=(0,r._)([(0,l.j)("esri.popup.content.CustomContent")],p);const d=p},38745:(t,e,i)=>{i.d(e,{Z:()=>h});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(96674);let a=o=class extends l.wq{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new o({title:this.title,expression:this.expression})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"expression",void 0),(0,r._)([(0,s.Cb)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"returnType",void 0),a=o=(0,r._)([(0,n.j)("esri.popup.ElementExpressionInfo")],a);const p=a;var d,c=i(63801);let u=d=class extends c.Z{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new d({expressionInfo:this.expressionInfo?.clone()})}};(0,r._)([(0,s.Cb)({type:p,json:{write:!0}})],u.prototype,"expressionInfo",void 0),(0,r._)([(0,s.Cb)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],u.prototype,"type",void 0),u=d=(0,r._)([(0,n.j)("esri.popup.content.ExpressionContent")],u);const h=u},9190:(t,e,i)=>{i.d(e,{Z:()=>u});var o,r=i(43697),s=i(22974),n=i(5600),l=(i(75215),i(52011)),a=i(30556),p=i(422),d=i(63801);let c=o=class extends d.Z{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}writeFieldInfos(t,e){e.fieldInfos=t&&t.map((t=>t.toJSON()))}clone(){return new o((0,s.d9)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,r._)([(0,n.Cb)({type:Object,json:{write:!0}})],c.prototype,"attributes",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,r._)([(0,n.Cb)({type:[p.Z]})],c.prototype,"fieldInfos",void 0),(0,r._)([(0,a.c)("fieldInfos")],c.prototype,"writeFieldInfos",null),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:["fields"],readOnly:!0,json:{read:!1,write:!0}})],c.prototype,"type",void 0),c=o=(0,r._)([(0,l.j)("esri.popup.content.FieldsContent")],c);const u=c},13151:(t,e,i)=>{i.d(e,{Z:()=>h});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(35320),a=i(96674);let p=o=class extends a.wq{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new o({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"linkURL",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],p.prototype,"sourceURL",void 0),p=o=(0,r._)([(0,n.j)("esri.popup.content.support.ImageMediaInfoValue")],p);const d=p;var c;let u=c=class extends l.Z{constructor(t){super(t),this.refreshInterval=null,this.type="image",this.value=null}clone(){return new c({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:Number,json:{write:!0}})],u.prototype,"refreshInterval",void 0),(0,r._)([(0,s.Cb)({type:["image"],readOnly:!0,json:{read:!1,write:!0}})],u.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:d,json:{write:!0}})],u.prototype,"value",void 0),u=c=(0,r._)([(0,n.j)("esri.popup.content.ImageMediaInfo")],u);const h=u},55869:(t,e,i)=>{i.d(e,{Z:()=>d});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(50379),a=i(87102);let p=o=class extends l.Z{constructor(t){super(t),this.type="line-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:a.l.write}})],p.prototype,"type",void 0),p=o=(0,r._)([(0,n.j)("esri.popup.content.LineChartMediaInfo")],p);const d=p},10214:(t,e,i)=>{i.d(e,{Z:()=>v});var o,r=i(43697),s=i(22974),n=i(5600),l=(i(75215),i(71715)),a=i(52011),p=i(30556),d=i(41463),c=i(87131),u=i(63801),h=i(13151),y=i(55869),f=i(13353),m=i(79742);let b=o=class extends u.Z{constructor(t){super(t),this.activeMediaInfoIndex=null,this.attributes=null,this.description=null,this.mediaInfos=null,this.title=null,this.type="media"}readMediaInfos(t){return t&&t.map((t=>"image"===t.type?h.Z.fromJSON(t):"barchart"===t.type?d.Z.fromJSON(t):"columnchart"===t.type?c.Z.fromJSON(t):"linechart"===t.type?y.Z.fromJSON(t):"piechart"===t.type?f.Z.fromJSON(t):void 0)).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map((t=>t.toJSON()))}clone(){return new o((0,s.d9)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,r._)([(0,n.Cb)()],b.prototype,"activeMediaInfoIndex",void 0),(0,r._)([(0,n.Cb)({type:Object,json:{write:!0}})],b.prototype,"attributes",void 0),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],b.prototype,"description",void 0),(0,r._)([(0,n.Cb)({types:[m.V]})],b.prototype,"mediaInfos",void 0),(0,r._)([(0,l.r)("mediaInfos")],b.prototype,"readMediaInfos",null),(0,r._)([(0,p.c)("mediaInfos")],b.prototype,"writeMediaInfos",null),(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],b.prototype,"title",void 0),(0,r._)([(0,n.Cb)({type:["media"],readOnly:!0,json:{read:!1,write:!0}})],b.prototype,"type",void 0),b=o=(0,r._)([(0,a.j)("esri.popup.content.MediaContent")],b);const v=b},13353:(t,e,i)=>{i.d(e,{Z:()=>d});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(50379),a=i(87102);let p=o=class extends l.Z{constructor(t){super(t),this.type="pie-chart"}clone(){return new o({altText:this.altText,title:this.title,caption:this.caption,value:this.value?this.value.clone():null})}};(0,r._)([(0,s.Cb)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:a.l.write}})],p.prototype,"type",void 0),p=o=(0,r._)([(0,n.j)("esri.popup.content.PieChartMediaInfo")],p);const d=p},71423:(t,e,i)=>{i.d(e,{Z:()=>c});var o=i(43697),r=i(2368),s=i(5600),n=i(75215),l=(i(67676),i(80442),i(52011)),a=i(63801),p=i(44729);let d=class extends((0,r.J)(a.Z)){constructor(t){super(t),this.description=null,this.displayCount=null,this.displayType="list",this.orderByFields=null,this.relationshipId=null,this.title=null,this.type="relationship"}};(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,o._)([(0,s.Cb)({type:Number,json:{type:n.z8,write:!0}})],d.prototype,"displayCount",void 0),(0,o._)([(0,s.Cb)({type:["list"],json:{write:!0}})],d.prototype,"displayType",void 0),(0,o._)([(0,s.Cb)({type:[p.Z],json:{write:!0}})],d.prototype,"orderByFields",void 0),(0,o._)([(0,s.Cb)({type:Number,json:{type:n.z8,write:!0}})],d.prototype,"relationshipId",void 0),(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],d.prototype,"title",void 0),(0,o._)([(0,s.Cb)({type:["relationship"],readOnly:!0,json:{read:!1,write:!0}})],d.prototype,"type",void 0),d=(0,o._)([(0,l.j)("esri.popup.content.RelationshipContent")],d);const c=d},44951:(t,e,i)=>{i.d(e,{Z:()=>p});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(63801);let a=o=class extends l.Z{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new o({text:this.text})}};(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],a.prototype,"text",void 0),(0,r._)([(0,s.Cb)({type:["text"],readOnly:!0,json:{read:!1,write:!0}})],a.prototype,"type",void 0),a=o=(0,r._)([(0,n.j)("esri.popup.content.TextContent")],a);const p=a},50379:(t,e,i)=>{i.d(e,{Z:()=>b});var o,r=i(43697),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011)),l=i(35320),a=i(96674),p=i(22974),d=i(92036);let c=o=class extends d.Z{constructor(t){super(t),this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new o({fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,r._)([(0,s.Cb)()],c.prototype,"fieldName",void 0),(0,r._)([(0,s.Cb)()],c.prototype,"tooltip",void 0),(0,r._)([(0,s.Cb)()],c.prototype,"value",void 0),c=o=(0,r._)([(0,n.j)("esri.popup.content.support.ChartMediaInfoValueSeries")],c);const u=c;var h;let y=h=class extends a.wq{constructor(t){super(t),this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new h({fields:(0,p.d9)(this.fields),normalizeField:this.normalizeField,tooltipField:this.tooltipField})}};(0,r._)([(0,s.Cb)({type:[String],json:{write:!0}})],y.prototype,"fields",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"normalizeField",void 0),(0,r._)([(0,s.Cb)({type:[u],json:{read:!1}})],y.prototype,"series",void 0),(0,r._)([(0,s.Cb)({type:String,json:{write:!0}})],y.prototype,"tooltipField",void 0),y=h=(0,r._)([(0,n.j)("esri.popup.content.support.ChartMediaInfoValue")],y);const f=y;let m=class extends l.Z{constructor(t){super(t),this.type=null,this.value=null}};(0,r._)([(0,s.Cb)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],m.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:f,json:{write:!0}})],m.prototype,"value",void 0),m=(0,r._)([(0,n.j)("esri.popup.content.mixins.ChartMediaInfo")],m);const b=m},35320:(t,e,i)=>{i.d(e,{Z:()=>a});var o=i(43697),r=i(96674),s=i(5600),n=(i(75215),i(67676),i(80442),i(52011));let l=class extends r.wq{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"altText",void 0),(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"caption",void 0),(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,o._)([(0,s.Cb)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],l.prototype,"type",void 0),l=(0,o._)([(0,n.j)("esri.popup.content.mixins.MediaInfo")],l);const a=l},87102:(t,e,i)=>{i.d(e,{l:()=>o});const o=(0,i(35454).w)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"})},79742:(t,e,i)=>{i.d(e,{V:()=>a});var o=i(41463),r=i(87131),s=i(13151),n=i(55869),l=i(13353);const a={base:i(35320).Z,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":o.Z,"column-chart":r.Z,"line-chart":n.Z,"pie-chart":l.Z,image:s.Z}}},29986:(t,e,i)=>{i.d(e,{Z:()=>h});var o=i(43697),r=i(2368),s=i(96674),n=i(5600),l=i(75215),a=(i(67676),i(80442),i(36030)),p=i(52011),d=i(90344),c=i(18848);let u=class extends((0,r.J)(s.wq)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}formatNumber(t){return(0,c.uf)(t,(0,c.sh)(this))}formatDate(t,e){return this.dateFormat?(0,d.p6)(t,{...(0,d.Ze)(this.dateFormat??"short-date-short-time"),timeZone:e}):this.formatNumber(t)}formatDateOnly(t){return(0,d.o8)(t,(0,d.Ze)(this.dateFormat??"short-date"))}formatTimeOnly(t){return(0,d.LJ)(t,(0,d.Ze)(this.dateFormat??"short-time"))}formatTimestamp(t,e){return(0,d.i$)(t,{...(0,d.Ze)(this.dateFormat??"short-date-short-time"),timeZone:e})}formatRasterPixelValue(t){return t=t.trim(),/\d{2}-\d{2}/.test(t)?t:t.includes(",")?this._formatDelimitedString(t,",",", "):t.includes(";")?this._formatDelimitedString(t,";","; "):t.includes(" ")?this._formatDelimitedString(t," "," "):this.formatNumber(Number(t))}_formatDelimitedString(t,e,i){return t&&e&&i?t.trim().split(e).map((t=>this.formatNumber(Number(t)))).join(i):t}};(0,o._)([(0,a.J)(d.Xr)],u.prototype,"dateFormat",void 0),(0,o._)([(0,n.Cb)({type:Boolean,json:{write:!0}})],u.prototype,"digitSeparator",void 0),(0,o._)([(0,n.Cb)({type:l.z8,json:{write:!0}})],u.prototype,"places",void 0),u=(0,o._)([(0,p.j)("esri.popup.support.FieldInfoFormat")],u);const h=u},44729:(t,e,i)=>{i.d(e,{Z:()=>p});var o,r=i(43697),s=i(96674),n=i(5600),l=(i(75215),i(67676),i(80442),i(52011));let a=o=class extends s.wq{constructor(t){super(t),this.field=null,this.order=null}clone(){return new o({field:this.field,order:this.order})}};(0,r._)([(0,n.Cb)({type:String,json:{write:!0}})],a.prototype,"field",void 0),(0,r._)([(0,n.Cb)({type:["asc","desc"],json:{write:!0}})],a.prototype,"order",void 0),a=o=(0,r._)([(0,l.j)("esri.popup.support.RelatedRecordsInfoFieldOrder")],a);const p=a}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2115],{22303:(t,e,r)=>{r.d(e,{Z:()=>m});var n,o,i=r(35270),a=r(22021),s=r(75215);function l(t){return(0,a.uZ)((0,s.vU)(t),0,255)}function h(t,e,r){return t=Number(t),isNaN(t)?r:t<e?e:t>r?r:t}class u{static blendColors(t,e,r,n=new u){return n.r=Math.round(t.r+(e.r-t.r)*r),n.g=Math.round(t.g+(e.g-t.g)*r),n.b=Math.round(t.b+(e.b-t.b)*r),n.a=t.a+(e.a-t.a)*r,n._sanitize()}static fromRgb(t,e){const r=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const t=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===t.length||"rgba"===n&&4===t.length){const r=t[0];if("%"===r.charAt(r.length-1)){const r=t.map((t=>2.56*parseFloat(t)));return 4===t.length&&(r[3]=parseFloat(t[3])),u.fromArray(r,e)}return u.fromArray(t.map((t=>parseFloat(t))),e)}if("hsl"===n&&3===t.length||"hsla"===n&&4===t.length)return u.fromArray((0,i.B7)(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])),e)}return null}static fromHex(t,e=new u){if(4!==t.length&&7!==t.length||"#"!==t[0])return null;const r=4===t.length?4:8,n=(1<<r)-1;let o=Number("0x"+t.substr(1));return isNaN(o)?null:(["b","g","r"].forEach((t=>{const i=o&n;o>>=r,e[t]=4===r?17*i:i})),e.a=1,e)}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const r=(0,i.St)(t)?(0,i.h$)(t):null;return r&&u.fromArray(r,e)||u.fromRgb(t,e)||u.fromHex(t,e)}static fromJSON(t){return null!=t?new u([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?u.fromString(t,this):Array.isArray(t)?u.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof u||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return`#${t.length<2?"0"+t:t}${e.length<2?"0"+e:e}${r.length<2?"0"+r:r}`}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=u.AlphaMode.ALWAYS){const e=l(this.r),r=l(this.g),n=l(this.b);return t===u.AlphaMode.ALWAYS||1!==this.a?[e,r,n,l(255*this.a)]:[e,r,n]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=Math.round(h(this.r,0,255)),this.g=Math.round(h(this.g,0,255)),this.b=Math.round(h(this.b,0,255)),this.a=h(this.a,0,1),this}_set(t,e,r,n){this.r=t,this.g=e,this.b=r,this.a=n}}u.prototype.declaredClass="esri.Color",(o=(n=u||(u={})).AlphaMode||(n.AlphaMode={}))[o.ALWAYS=0]="ALWAYS",o[o.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const m=u},92835:(t,e,r)=>{r.d(e,{Z:()=>g});var n,o=r(43697),i=r(96674),a=r(35463),s=r(5600),l=(r(75215),r(67676),r(80442),r(71715)),h=r(52011),u=r(30556);let m=n=class extends i.wq{static get allTime(){return d}static get empty(){return c}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(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=t.start?.getTime()??t.start,o=t.end?.getTime()??t.end;return e===n&&r===o}expandTo(t,e="system"){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,a.JE)(r,t,e));let o=this.end;if(o){const r=(0,a.JE)(o,t,e);o=o.getTime()===r.getTime()?r:(0,a.Nm)(r,1,t,e)}return new n({start:r,end:o})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return n.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,o=t.start?.getTime()??-1/0,i=t.end?.getTime()??1/0;let a,s;if(o>=e&&o<=r?a=o:e>=o&&e<=i&&(a=e),r>=o&&r<=i?s=r:i>=e&&i<=r&&(s=i),null!=a&&null!=s&&!isNaN(a)&&!isNaN(s)){const t=new n;return t.start=a===-1/0?null:new Date(a),t.end=s===1/0?null:new Date(s),t}return n.empty}offset(t,e,r="system"){if(this.isEmpty||this.isAllTime)return this.clone();const o=new n,{start:i,end:s}=this;return null!=i&&(o.start=(0,a.Nm)(i,t,e,r)),null!=s&&(o.end=(0,a.Nm)(s,t,e,r)),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,r=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new n({start:e,end:r})}};(0,o._)([(0,s.Cb)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"end",void 0),(0,o._)([(0,l.r)("end")],m.prototype,"readEnd",null),(0,o._)([(0,u.c)("end")],m.prototype,"writeEnd",null),(0,o._)([(0,s.Cb)({readOnly:!0,json:{read:!1}})],m.prototype,"isAllTime",null),(0,o._)([(0,s.Cb)({readOnly:!0,json:{read:!1}})],m.prototype,"isEmpty",null),(0,o._)([(0,s.Cb)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"start",void 0),(0,o._)([(0,l.r)("start")],m.prototype,"readStart",null),(0,o._)([(0,u.c)("start")],m.prototype,"writeStart",null),m=n=(0,o._)([(0,h.j)("esri.TimeExtent")],m);const d=new m,c=new m({start:void 0,end:void 0}),g=m},25929:(t,e,r)=>{r.d(e,{M:()=>g,a:()=>f,e:()=>d,f:()=>o,i:()=>u,p:()=>m,r:()=>a,t:()=>i,w:()=>s});var n=r(17452);function o(t,e){const r=e&&e.url&&e.url.path;if(t&&r&&(t=(0,n.hF)(t,r,{preserveProtocolRelative:!0}),e.portalItem&&e.readResourcePaths)){const r=(0,n.PF)(t,e.portalItem.itemUrl);null!=r&&h.test(r)&&e.readResourcePaths.push(e.portalItem.resourceFromPath(r).path)}return c(t,e&&e.portal)}function i(t,e,r=g.YES){if(null==t)return t;!(0,n.YP)(t)&&e&&e.blockedRelativeUrls&&e.blockedRelativeUrls.push(t);let o=(0,n.hF)(t);if(e){const r=e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.rootPath||e.url&&e.url.path;if(r){const i=c(r,e.portal),a=c(o,e.portal);o=(0,n.PF)(a,i,i),null!=o&&o!==a&&o!==t&&e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.writtenUrls.push(o)}}return o=d(o,e?.portal),(0,n.YP)(o)&&(o=(0,n.Fv)(o)),e?.resources&&e?.portalItem&&!(0,n.YP)(o)&&!(0,n.HK)(o)&&r===g.YES&&e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(o),compress:!1}),o}function a(t,e,r){return o(t,r)}function s(t,e,r,n){const o=i(t,n);void 0!==o&&(e[r]=o)}const l=/\/items\/([^\/]+)\/resources\/(.*)/,h=/^\.\/resources\//;function u(t){const e=t?.match(l)??null;return e?.[1]??null}function m(t){const e=t?.match(l)??null;if(null==e)return null;const r=e[2],o=r.lastIndexOf("/");if(-1===o){const{path:t,extension:e}=(0,n.fZ)(r);return{prefix:null,filename:t,extension:e}}const{path:i,extension:a}=(0,n.fZ)(r.slice(o+1));return{prefix:r.slice(0,o),filename:i,extension:a}}function d(t,e){return e&&!e.isPortal&&e.urlKey&&e.customBaseUrl?(0,n.Ie)(t,`${e.urlKey}.${e.customBaseUrl}`,e.portalHostname):t}function c(t,e){if(!e||e.isPortal||!e.urlKey||!e.customBaseUrl)return t;const r=`${e.urlKey}.${e.customBaseUrl}`,o=(0,n.TI)();return(0,n.D6)(o,`${o.scheme}://${r}`)?(0,n.Ie)(t,e.portalHostname,r):(0,n.Ie)(t,r,e.portalHostname)}var g,y;(y=g||(g={}))[y.YES=0]="YES",y[y.NO=1]="NO";const f=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return g},ensureMainOnlineDomain:d,fromJSON:o,itemIdFromResourceUrl:u,prefixAndFilenameFromResourceUrl:m,read:a,toJSON:i,write:s},Symbol.toStringTag,{value:"Module"}))},35270:(t,e,r)=>{r.d(e,{B7:()=>l,St:()=>o,VL:()=>a,h$:()=>i,rW:()=>h});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(t){return!!n[t]||!!n[t.toLowerCase()]}function i(t){return n[t]??n[t.toLowerCase()]}function a(t){return[...i(t)]}function s(t,e,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?t+(e-t)*n:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function l(t,e,r,n=1){const o=(t%360+360)%360/360,i=r<=.5?r*(e+1):r+e-r*e,a=2*r-i;return[Math.round(255*s(a,i,o+1/3)),Math.round(255*s(a,i,o)),Math.round(255*s(a,i,o-1/3)),n]}function h(t){const e=t.length>5,r=e?8:4,n=(1<<r)-1,o=e?1:17,i=e?9===t.length:5===t.length;let a=Number("0x"+t.substr(1));if(isNaN(a))return null;const s=[0,0,0,1];let l;return i&&(l=a&n,a>>=r,s[3]=o*l/255),l=a&n,a>>=r,s[2]=o*l,l=a&n,a>>=r,s[1]=o*l,l=a&n,a>>=r,s[0]=o*l,s}},68251:(t,e,r)=>{r.d(e,{BV:()=>a});var n=r(22021);class o{constructor(t,e){this.min=t,this.max=e,this.range=e-t}ndiff(t,e=0){return Math.ceil((t-e)/this.range)*this.range+e}_normalize(t,e,r,n=0,o=!1){return(r-=n)<t?r+=this.ndiff(t-r):r>e&&(r-=this.ndiff(r-e)),o&&r===e&&(r=t),r+n}normalize(t,e=0,r=!1){return this._normalize(this.min,this.max,t,e,r)}clamp(t,e=0){return(0,n.uZ)(t-e,this.min,this.max)+e}monotonic(t,e,r){return t<e?e:e+this.ndiff(t-e,r)}minimalMonotonic(t,e,r){return this._normalize(t,t+this.range,e,r)}center(t,e,r){return e=this.monotonic(t,e,r),this.normalize((t+e)/2,r)}diff(t,e,r){return this.monotonic(t,e,r)-t}shortestSignedDiff(t,e){t=this.normalize(t);const r=(e=this.normalize(e))-t,n=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(r)<Math.abs(n)?r:n}contains(t,e,r){return e=this.minimalMonotonic(t,e),(r=this.minimalMonotonic(t,r))>t&&r<e}}function i(t){for(const e in t){const r=t[e];r instanceof Function&&(t[e]=r.bind(t))}return t}i(new o(0,2*Math.PI)),i(new o(-Math.PI,Math.PI));const a=i(new o(0,360))},70921:(t,e,r)=>{r.d(e,{R:()=>i,Z:()=>o});var n=r(46791);function o(t,e,r=n.Z){return e||(e=new r),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}},35463:(t,e,r)=>{r.d(e,{JE:()=>s,Nm:()=>a,rJ:()=>l});var n=r(90344),o=r(17126);const i={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function a(t,e,r,n="system"){const i=u(n),a=o.ou.fromJSDate(t,{zone:i}),s="decades"===r||"centuries"===r?"year":h(r);return"decades"===r&&(e*=10),"centuries"===r&&(e*=100),a.plus({[s]:e}).toJSDate()}function s(t,e,r="system"){const n=u(r),i=o.ou.fromJSDate(t,{zone:n});if("decades"===e||"centuries"===e){const t=i.startOf("year"),{year:r}=t,n=r-r%("decades"===e?10:100);return t.set({year:n}).toJSDate()}const a=h(e);return i.startOf(a).toJSDate()}function l(t,e,r){return 0===t?0:t*i[e]/i[r]}function h(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"}}function u(t){const e=(0,n.f1)(t);return e?new o.vF(e):o.Oh.instance}},90344:(t,e,r)=>{r.d(e,{LJ:()=>M,Xr:()=>p,Ze:()=>v,cZ:()=>h,f1:()=>D,i$:()=>A,o8:()=>k,p6:()=>S});var n=r(35454),o=r(70171),i=r(17126);const a={year:void 0,month:void 0,day:void 0,weekday:void 0},s={hour:void 0,minute:void 0,second:void 0},l={timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},h={timeZone:"Etc/UTC"},u={year:"numeric",month:"numeric",day:"numeric"},m={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},c={year:"numeric",month:"long",weekday:"long",day:"numeric"},g={hour:"numeric",minute:"numeric"},y={...g,second:"numeric"},f={"short-date":u,"short-date-short-time":{...u,...g},"short-date-short-time-24":{...u,...g,hour12:!1},"short-date-long-time":{...u,...y},"short-date-long-time-24":{...u,...y,hour12:!1},"short-date-le":u,"short-date-le-short-time":{...u,...g},"short-date-le-short-time-24":{...u,...g,hour12:!1},"short-date-le-long-time":{...u,...y},"short-date-le-long-time-24":{...u,...y,hour12:!1},"long-month-day-year":m,"long-month-day-year-short-time":{...m,...g},"long-month-day-year-short-time-24":{...m,...g,hour12:!1},"long-month-day-year-long-time":{...m,...y},"long-month-day-year-long-time-24":{...m,...y,hour12:!1},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...g},"day-short-month-year-short-time-24":{...d,...g,hour12:!1},"day-short-month-year-long-time":{...d,...y},"day-short-month-year-long-time-24":{...d,...y,hour12:!1},"long-date":c,"long-date-short-time":{...c,...g},"long-date-short-time-24":{...c,...g,hour12:!1},"long-date-long-time":{...c,...y},"long-date-long-time-24":{...c,...y,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":g,"long-time":y},p=(0,n.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"}),b={ar:"ar-u-nu-latn-ca-gregory"};let w=new WeakMap;const T=f["short-date-short-time"];function v(t){return f[t]}function S(t,e=T){return function(t){let e=w.get(t);if(!e){const r=(0,o.Kd)(),n=b[r]||r,i=D(t.timeZone??"system"),a={...t,timeZone:i};e=new Intl.DateTimeFormat(n,a),w.set(t,e)}return e}(e).format(t)}function k(t,e=T){return S(new Date(t),{...e,...h,...s})}function M(t,e=T){return S(new Date(`1970-01-01T${t}Z`),{...e,...h,...a})}function A(t,e=T){const r=i.ou.fromISO(t,{setZone:!0}),n=(0,o.Kd)(),a=b[n]??n;return r.toLocaleString({...l,...e},{locale:a})}function D(t){switch(t){case"system":return;case"unknown":return"UTC";default:return t}}(0,o.Ze)((()=>{w=new WeakMap}))}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2115],{22303:(t,e,r)=>{r.d(e,{Z:()=>m});var n,o,i=r(35270),a=r(22021),s=r(75215);function l(t){return(0,a.uZ)((0,s.vU)(t),0,255)}function h(t,e,r){return t=Number(t),isNaN(t)?r:t<e?e:t>r?r:t}class u{static blendColors(t,e,r,n=new u){return n.r=Math.round(t.r+(e.r-t.r)*r),n.g=Math.round(t.g+(e.g-t.g)*r),n.b=Math.round(t.b+(e.b-t.b)*r),n.a=t.a+(e.a-t.a)*r,n._sanitize()}static fromRgb(t,e){const r=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(r){const t=r[2].split(/\s*,\s*/),n=r[1];if("rgb"===n&&3===t.length||"rgba"===n&&4===t.length){const r=t[0];if("%"===r.charAt(r.length-1)){const r=t.map((t=>2.56*parseFloat(t)));return 4===t.length&&(r[3]=parseFloat(t[3])),u.fromArray(r,e)}return u.fromArray(t.map((t=>parseFloat(t))),e)}if("hsl"===n&&3===t.length||"hsla"===n&&4===t.length)return u.fromArray((0,i.B7)(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])),e)}return null}static fromHex(t,e=new u){if(4!==t.length&&7!==t.length||"#"!==t[0])return null;const r=4===t.length?4:8,n=(1<<r)-1;let o=Number("0x"+t.substr(1));return isNaN(o)?null:(["b","g","r"].forEach((t=>{const i=o&n;o>>=r,e[t]=4===r?17*i:i})),e.a=1,e)}static fromArray(t,e=new u){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const r=(0,i.St)(t)?(0,i.h$)(t):null;return r&&u.fromArray(r,e)||u.fromRgb(t,e)||u.fromHex(t,e)}static fromJSON(t){return null!=t?new u([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?u.fromString(t,this):Array.isArray(t)?u.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof u||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(){const t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return`#${t.length<2?"0"+t:t}${e.length<2?"0"+e:e}${r.length<2?"0"+r:r}`}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=u.AlphaMode.ALWAYS){const e=l(this.r),r=l(this.g),n=l(this.b);return t===u.AlphaMode.ALWAYS||1!==this.a?[e,r,n,l(255*this.a)]:[e,r,n]}clone(){return new u(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=Math.round(h(this.r,0,255)),this.g=Math.round(h(this.g,0,255)),this.b=Math.round(h(this.b,0,255)),this.a=h(this.a,0,1),this}_set(t,e,r,n){this.r=t,this.g=e,this.b=r,this.a=n}}u.prototype.declaredClass="esri.Color",(o=(n=u||(u={})).AlphaMode||(n.AlphaMode={}))[o.ALWAYS=0]="ALWAYS",o[o.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const m=u},92835:(t,e,r)=>{r.d(e,{Z:()=>g});var n,o=r(43697),i=r(96674),a=r(35463),s=r(5600),l=(r(75215),r(67676),r(80442),r(71715)),h=r(52011),u=r(30556);let m=n=class extends i.wq{static get allTime(){return d}static get empty(){return c}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(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=t.start?.getTime()??t.start,o=t.end?.getTime()??t.end;return e===n&&r===o}expandTo(t,e="system"){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,a.JE)(r,t,e));let o=this.end;if(o){const r=(0,a.JE)(o,t,e);o=o.getTime()===r.getTime()?r:(0,a.Nm)(r,1,t,e)}return new n({start:r,end:o})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return n.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,o=t.start?.getTime()??-1/0,i=t.end?.getTime()??1/0;let a,s;if(o>=e&&o<=r?a=o:e>=o&&e<=i&&(a=e),r>=o&&r<=i?s=r:i>=e&&i<=r&&(s=i),null!=a&&null!=s&&!isNaN(a)&&!isNaN(s)){const t=new n;return t.start=a===-1/0?null:new Date(a),t.end=s===1/0?null:new Date(s),t}return n.empty}offset(t,e,r="system"){if(this.isEmpty||this.isAllTime)return this.clone();const o=new n,{start:i,end:s}=this;return null!=i&&(o.start=(0,a.Nm)(i,t,e,r)),null!=s&&(o.end=(0,a.Nm)(s,t,e,r)),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,r=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new n({start:e,end:r})}};(0,o._)([(0,s.Cb)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"end",void 0),(0,o._)([(0,l.r)("end")],m.prototype,"readEnd",null),(0,o._)([(0,u.c)("end")],m.prototype,"writeEnd",null),(0,o._)([(0,s.Cb)({readOnly:!0,json:{read:!1}})],m.prototype,"isAllTime",null),(0,o._)([(0,s.Cb)({readOnly:!0,json:{read:!1}})],m.prototype,"isEmpty",null),(0,o._)([(0,s.Cb)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"start",void 0),(0,o._)([(0,l.r)("start")],m.prototype,"readStart",null),(0,o._)([(0,u.c)("start")],m.prototype,"writeStart",null),m=n=(0,o._)([(0,h.j)("esri.TimeExtent")],m);const d=new m,c=new m({start:void 0,end:void 0}),g=m},25929:(t,e,r)=>{r.d(e,{M:()=>g,a:()=>f,e:()=>d,f:()=>o,i:()=>u,p:()=>m,r:()=>a,t:()=>i,w:()=>s});var n=r(17452);function o(t,e){const r=e&&e.url&&e.url.path;if(t&&r&&(t=(0,n.hF)(t,r,{preserveProtocolRelative:!0}),e.portalItem&&e.readResourcePaths)){const r=(0,n.PF)(t,e.portalItem.itemUrl);null!=r&&h.test(r)&&e.readResourcePaths.push(e.portalItem.resourceFromPath(r).path)}return c(t,e&&e.portal)}function i(t,e,r=g.YES){if(null==t)return t;!(0,n.YP)(t)&&e&&e.blockedRelativeUrls&&e.blockedRelativeUrls.push(t);let o=(0,n.hF)(t);if(e){const r=e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.rootPath||e.url&&e.url.path;if(r){const i=c(r,e.portal),a=c(o,e.portal);o=(0,n.PF)(a,i,i),null!=o&&o!==a&&o!==t&&e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.writtenUrls.push(o)}}return o=d(o,e?.portal),(0,n.YP)(o)&&(o=(0,n.Fv)(o)),e?.resources&&e?.portalItem&&!(0,n.YP)(o)&&!(0,n.HK)(o)&&r===g.YES&&e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(o),compress:!1}),o}function a(t,e,r){return o(t,r)}function s(t,e,r,n){const o=i(t,n);void 0!==o&&(e[r]=o)}const l=/\/items\/([^\/]+)\/resources\/(.*)/,h=/^\.\/resources\//;function u(t){const e=t?.match(l)??null;return e?.[1]??null}function m(t){const e=t?.match(l)??null;if(null==e)return null;const r=e[2],o=r.lastIndexOf("/");if(-1===o){const{path:t,extension:e}=(0,n.fZ)(r);return{prefix:null,filename:t,extension:e}}const{path:i,extension:a}=(0,n.fZ)(r.slice(o+1));return{prefix:r.slice(0,o),filename:i,extension:a}}function d(t,e){return e&&!e.isPortal&&e.urlKey&&e.customBaseUrl?(0,n.Ie)(t,`${e.urlKey}.${e.customBaseUrl}`,e.portalHostname):t}function c(t,e){if(!e||e.isPortal||!e.urlKey||!e.customBaseUrl)return t;const r=`${e.urlKey}.${e.customBaseUrl}`,o=(0,n.TI)();return(0,n.D6)(o,`${o.scheme}://${r}`)?(0,n.Ie)(t,e.portalHostname,r):(0,n.Ie)(t,r,e.portalHostname)}var g,y;(y=g||(g={}))[y.YES=0]="YES",y[y.NO=1]="NO";const f=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return g},ensureMainOnlineDomain:d,fromJSON:o,itemIdFromResourceUrl:u,prefixAndFilenameFromResourceUrl:m,read:a,toJSON:i,write:s},Symbol.toStringTag,{value:"Module"}))},35270:(t,e,r)=>{r.d(e,{B7:()=>l,St:()=>o,VL:()=>a,h$:()=>i,rW:()=>h});const n={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function o(t){return!!n[t]||!!n[t.toLowerCase()]}function i(t){return n[t]??n[t.toLowerCase()]}function a(t){return[...i(t)]}function s(t,e,r){r<0&&++r,r>1&&--r;const n=6*r;return n<1?t+(e-t)*n:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function l(t,e,r,n=1){const o=(t%360+360)%360/360,i=r<=.5?r*(e+1):r+e-r*e,a=2*r-i;return[Math.round(255*s(a,i,o+1/3)),Math.round(255*s(a,i,o)),Math.round(255*s(a,i,o-1/3)),n]}function h(t){const e=t.length>5,r=e?8:4,n=(1<<r)-1,o=e?1:17,i=e?9===t.length:5===t.length;let a=Number("0x"+t.substr(1));if(isNaN(a))return null;const s=[0,0,0,1];let l;return i&&(l=a&n,a>>=r,s[3]=o*l/255),l=a&n,a>>=r,s[2]=o*l,l=a&n,a>>=r,s[1]=o*l,l=a&n,a>>=r,s[0]=o*l,s}},68251:(t,e,r)=>{r.d(e,{BV:()=>a});var n=r(22021);class o{constructor(t,e){this.min=t,this.max=e,this.range=e-t}ndiff(t,e=0){return Math.ceil((t-e)/this.range)*this.range+e}_normalize(t,e,r,n=0,o=!1){return(r-=n)<t?r+=this.ndiff(t-r):r>e&&(r-=this.ndiff(r-e)),o&&r===e&&(r=t),r+n}normalize(t,e=0,r=!1){return this._normalize(this.min,this.max,t,e,r)}clamp(t,e=0){return(0,n.uZ)(t-e,this.min,this.max)+e}monotonic(t,e,r){return t<e?e:e+this.ndiff(t-e,r)}minimalMonotonic(t,e,r){return this._normalize(t,t+this.range,e,r)}center(t,e,r){return e=this.monotonic(t,e,r),this.normalize((t+e)/2,r)}diff(t,e,r){return this.monotonic(t,e,r)-t}shortestSignedDiff(t,e){t=this.normalize(t);const r=(e=this.normalize(e))-t,n=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(r)<Math.abs(n)?r:n}contains(t,e,r){return e=this.minimalMonotonic(t,e),(r=this.minimalMonotonic(t,r))>t&&r<e}}function i(t){for(const e in t){const r=t[e];r instanceof Function&&(t[e]=r.bind(t))}return t}i(new o(0,2*Math.PI)),i(new o(-Math.PI,Math.PI));const a=i(new o(0,360))},70921:(t,e,r)=>{r.d(e,{R:()=>i,Z:()=>o});var n=r(46791);function o(t,e,r=n.Z){return e||(e=new r),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}},35463:(t,e,r)=>{r.d(e,{JE:()=>s,Nm:()=>a,rJ:()=>l});var n=r(90344),o=r(17126);const i={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function a(t,e,r,i="system"){const a=new o.vF((0,n.f1)(i)),s=o.ou.fromJSDate(t,{zone:a}),l="decades"===r||"centuries"===r?"year":h(r);return"decades"===r&&(e*=10),"centuries"===r&&(e*=100),s.plus({[l]:e}).toJSDate()}function s(t,e,r="system"){const i=new o.vF((0,n.f1)(r)),a=o.ou.fromJSDate(t,{zone:i});if("decades"===e||"centuries"===e){const t=a.startOf("year"),{year:r}=t,n=r-r%("decades"===e?10:100);return t.set({year:n}).toJSDate()}const s=h(e);return a.startOf(s).toJSDate()}function l(t,e,r){return 0===t?0:t*i[e]/i[r]}function h(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"}}},90344:(t,e,r)=>{r.d(e,{LJ:()=>M,Xr:()=>p,Ze:()=>T,f1:()=>N,i$:()=>A,o8:()=>k,p6:()=>S});var n=r(35454),o=r(70171),i=r(17126);const a={year:void 0,month:void 0,day:void 0,weekday:void 0},s={hour:void 0,minute:void 0,second:void 0},l=Intl.DateTimeFormat().resolvedOptions().timeZone,h={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},m={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},c={year:"numeric",month:"long",weekday:"long",day:"numeric"},g={hour:"numeric",minute:"numeric"},y={...g,second:"numeric"},f={"short-date":u,"short-date-short-time":{...u,...g},"short-date-short-time-24":{...u,...g,hour12:!1},"short-date-long-time":{...u,...y},"short-date-long-time-24":{...u,...y,hour12:!1},"short-date-le":u,"short-date-le-short-time":{...u,...g},"short-date-le-short-time-24":{...u,...g,hour12:!1},"short-date-le-long-time":{...u,...y},"short-date-le-long-time-24":{...u,...y,hour12:!1},"long-month-day-year":m,"long-month-day-year-short-time":{...m,...g},"long-month-day-year-short-time-24":{...m,...g,hour12:!1},"long-month-day-year-long-time":{...m,...y},"long-month-day-year-long-time-24":{...m,...y,hour12:!1},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...g},"day-short-month-year-short-time-24":{...d,...g,hour12:!1},"day-short-month-year-long-time":{...d,...y},"day-short-month-year-long-time-24":{...d,...y,hour12:!1},"long-date":c,"long-date-short-time":{...c,...g},"long-date-short-time-24":{...c,...g,hour12:!1},"long-date-long-time":{...c,...y},"long-date-long-time-24":{...c,...y,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":g,"long-time":y},p=(0,n.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"}),b={ar:"ar-u-nu-latn-ca-gregory"};let w=new WeakMap;const v=f["short-date-short-time"];function T(t){return f[t]}function S(t,e=v){return function(t){let e=w.get(t);if(!e){const r=(0,o.Kd)(),n=b[r]||r,i=D(t);e=new Intl.DateTimeFormat(n,i),w.set(t,e)}return e}(e).format(t)}function k(t,e=v){return S(new Date(t),{...e,...h,...s})}function M(t,e=v){return S(new Date(`1970-01-01T${t}Z`),{...e,...h,...a})}function A(t,e=v){const r=i.ou.fromISO(t,{setZone:!0}),n=(0,o.Kd)(),a=b[n]??n,s=D(e);return r.toLocaleString(s,{locale:a})}function D(t){const e=N(t.timeZone??"system");return{...t,timeZone:e}}function N(t){switch(t){case"system":return l;case"unknown":return"UTC";default:return t}}(0,o.Ze)((()=>{w=new WeakMap}))}}]);