@arcgis/core 5.2.0-next.162 → 5.2.0-next.164

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 (170) hide show
  1. package/PopupTemplate.js +1 -1
  2. package/analysis/LineOfSightAnalysis.d.ts +1 -1
  3. package/analysis/LineOfSightAnalysisObserver.d.ts +5 -4
  4. package/analysis/LineOfSightAnalysisTarget.d.ts +4 -4
  5. package/analysis/Viewshed.d.ts +4 -4
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/092e311cb7aea92a6a26.js +1 -0
  8. package/assets/esri/core/workers/chunks/{8e19629899a5becf8e19.js → 150e7a7bd5df25693da7.js} +1 -1
  9. package/assets/esri/core/workers/chunks/1e1c45f75020d5e05dc3.js +1 -0
  10. package/assets/esri/core/workers/chunks/{8e4a7027d171fb60e51e.js → 1f7f4f821d422b46cae7.js} +1 -1
  11. package/assets/esri/core/workers/chunks/1fe24ffcd88280d84fbe.js +1 -0
  12. package/assets/esri/core/workers/chunks/226f862bbeb33fc7c597.js +1 -0
  13. package/assets/esri/core/workers/chunks/25a3bd8bede2d07d3a54.js +1 -0
  14. package/assets/esri/core/workers/chunks/2ad69cc496235702bbf2.js +1 -0
  15. package/assets/esri/core/workers/chunks/3f46acfda693c70abbdd.js +1 -0
  16. package/assets/esri/core/workers/chunks/434a8ba841a59e0deab9.js +1 -0
  17. package/assets/esri/core/workers/chunks/45fd2b456a6997584ca1.js +1 -0
  18. package/assets/esri/core/workers/chunks/{2e096537a3a5555a4a93.js → 4cb751dc8d00bdaeb04c.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{85bba551057366cd00ae.js → 4db829a0238024736fe6.js} +1 -1
  20. package/assets/esri/core/workers/chunks/53ff68d4f9e365fc15cd.js +1 -0
  21. package/assets/esri/core/workers/chunks/542e5640ea1b80ef801a.js +1 -0
  22. package/assets/esri/core/workers/chunks/5a9b7eb26f936f03d02e.js +1 -0
  23. package/assets/esri/core/workers/chunks/5d76f4d97beee494bbbf.js +1 -0
  24. package/assets/esri/core/workers/chunks/5dc604e3691f36f03959.js +1 -0
  25. package/assets/esri/core/workers/chunks/5f07f52bb8b7721f08d3.js +1 -0
  26. package/assets/esri/core/workers/chunks/{5f4feca26102088ea565.js → 60737732ce495bbdd0fc.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{9ce8b9b80da146a5bbf5.js → 60c79934799927114074.js} +1 -1
  28. package/assets/esri/core/workers/chunks/67f54efc817b241f8746.js +1 -0
  29. package/assets/esri/core/workers/chunks/{8aa80b892fde552577e8.js → 700b1d5bc67b7e1b3ff3.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{f528ac5c648ca6a98582.js → 711cfb84659cb4437679.js} +1 -1
  31. package/assets/esri/core/workers/chunks/7159d9c36869cd82599e.js +29 -0
  32. package/assets/esri/core/workers/chunks/771dd92cb3e6a3427f66.js +1 -0
  33. package/assets/esri/core/workers/chunks/792d2b62356a1d953c88.js +1 -0
  34. package/assets/esri/core/workers/chunks/89c8b0f684c1f27d149e.js +1 -0
  35. package/assets/esri/core/workers/chunks/8ab57cb1bfd3dc8d3c2a.js +1 -0
  36. package/assets/esri/core/workers/chunks/95b82cbbe355266c65d7.js +1 -0
  37. package/assets/esri/core/workers/chunks/97b5f4302fb867c829f4.js +1 -0
  38. package/assets/esri/core/workers/chunks/9de5ad77bc37ec142218.js +1 -0
  39. package/assets/esri/core/workers/chunks/a65951f1d5702cfd996e.js +1 -0
  40. package/assets/esri/core/workers/chunks/aa4f3751f0d830113bed.js +1 -0
  41. package/assets/esri/core/workers/chunks/ad96132bc89671e595f3.js +1 -0
  42. package/assets/esri/core/workers/chunks/b1d989b72203113a06fe.js +1 -0
  43. package/assets/esri/core/workers/chunks/{fc73737b41e086f0ce0b.js → b59aaf30c7fe2c8d1aaa.js} +1 -1
  44. package/assets/esri/core/workers/chunks/b6d71a4ab788a09714f3.js +1 -0
  45. package/assets/esri/core/workers/chunks/b704f489d0f072a0bfcd.js +1 -0
  46. package/assets/esri/core/workers/chunks/b736046c6b4ede73ea46.js +1 -0
  47. package/assets/esri/core/workers/chunks/c070d2ddf290b4f92916.js +1 -0
  48. package/assets/esri/core/workers/chunks/{d6cd0039d6e9c40961e3.js → d1f98c5249c487eb96f1.js} +1 -1
  49. package/assets/esri/core/workers/chunks/d77c68e0fc3b259bf4f9.js +1 -0
  50. package/assets/esri/core/workers/chunks/e251921bc5367258c4d2.js +1 -0
  51. package/assets/esri/core/workers/chunks/ee08ae5b73439a1ff666.js +1 -0
  52. package/assets/esri/core/workers/chunks/{e0351753f6b4d1adf11e.js → fc0dbb588a4062615cb6.js} +1 -1
  53. package/assets/esri/core/workers/chunks/fcaf9450642fcef83286.js +1 -0
  54. package/assets/esri/core/workers/chunks/feb41abc03d677df6f73.js +1 -0
  55. package/chunks/GlobalIllumination.glsl.js +2 -17
  56. package/config.d.ts +11 -30
  57. package/config.js +1 -1
  58. package/core/workers/workerFactory.js +1 -1
  59. package/core/workers.d.ts +17 -0
  60. package/geometry/support/clipRay.js +1 -1
  61. package/geometry/support/plane.js +1 -1
  62. package/kernel.js +1 -1
  63. package/layers/FeatureLayer.d.ts +32 -14
  64. package/layers/GeoJSONLayer.d.ts +2 -107
  65. package/layers/MapImageLayer.d.ts +2 -1
  66. package/layers/SceneLayer.d.ts +40 -16
  67. package/layers/SubtypeGroupLayer.d.ts +63 -0
  68. package/layers/ViewshedLayer.d.ts +10 -4
  69. package/layers/WMSLayer.d.ts +2 -69
  70. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
  71. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  72. package/layers/graphics/sources/support/QueryTask.js +1 -1
  73. package/layers/mixins/TemporalLayer.d.ts +70 -48
  74. package/layers/mixins/TiledImagery.d.ts +0 -11
  75. package/layers/support/LabelClass.d.ts +20 -2
  76. package/layers/support/Sublayer.d.ts +32 -2
  77. package/layers/support/TimeInformation.js +2 -0
  78. package/package.json +2 -2
  79. package/popup/content.d.ts +38 -1
  80. package/popup/content.js +1 -1
  81. package/rest/layerSources/DynamicWorkspaceLayer.d.ts +10 -6
  82. package/rest/query/operations/queryUtils.js +1 -1
  83. package/rest/support/timeUtils.js +2 -0
  84. package/smartMapping/popup/support/clusterUtils.js +1 -1
  85. package/smartMapping/popup/support/utils.js +2 -2
  86. package/smartMapping/renderers/size.js +1 -1
  87. package/smartMapping/renderers/support/regenerateUtils.js +1 -1
  88. package/support/timeUtils.d.ts +11 -0
  89. package/symbols/TextSymbol.d.ts +27 -2
  90. package/symbols/cim/CIMCursor.js +1 -1
  91. package/views/2d/analysis/AreaMeasurement/AreaMeasurementTool.js +1 -1
  92. package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
  93. package/views/2d/analysis/DistanceMeasurement/DistanceMeasurementTool.js +1 -1
  94. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.js +1 -1
  95. package/views/2d/engine/webgl/GlyphWorker.js +1 -1
  96. package/views/2d/engine/webgl/animations/instructions.js +1 -1
  97. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerMeshWriter.js +1 -1
  98. package/views/3d/GroundView3D.js +1 -1
  99. package/views/3d/environment/SunLighting.d.ts +16 -1
  100. package/views/3d/environment/SunLighting.js +1 -1
  101. package/views/3d/environment/VirtualLighting.d.ts +16 -1
  102. package/views/3d/environment/VirtualLighting.js +1 -1
  103. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  104. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  105. package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +9 -4
  106. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  107. package/views/3d/webgl-engine/lib/RenderFeature.js +1 -1
  108. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  109. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  110. package/views/3d/webgl-engine/materials/internal/worldSizedRibbonLineIntersectionUtils.js +2 -0
  111. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  112. package/views/BasemapView.js +1 -1
  113. package/views/GroundView.d.ts +1 -1
  114. package/views/GroundView.js +1 -1
  115. package/views/SceneView.js +1 -1
  116. package/views/layers/LineOfSightLayerView.d.ts +2 -2
  117. package/views/layers/ViewshedLayerView.d.ts +2 -1
  118. package/views/support/ScheduledQueueProcessor.js +1 -1
  119. package/views/support/screenshotUtils.js +1 -1
  120. package/webscene/Slide.d.ts +1 -2
  121. package/widgets/Daylight/DaylightViewModel.js +1 -1
  122. package/widgets/DirectionalPad/VisibleElements.d.ts +5 -1
  123. package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
  124. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  125. package/widgets/OrientedImageryViewer.js +1 -1
  126. package/widgets/Search/SearchViewModel.js +1 -1
  127. package/widgets/Search/support/layerSearchUtils.js +1 -1
  128. package/widgets/Sketch/SketchViewModel.d.ts +61 -2
  129. package/widgets/Sketch/SketchViewModel.js +1 -1
  130. package/widgets/Sketch/support/PluginManager.js +1 -1
  131. package/widgets/TimeSlider/TimeSliderViewModel.d.ts +3 -2
  132. package/widgets/TimeSlider.d.ts +5 -4
  133. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  134. package/widgets/UtilityNetworkValidateTopology/UtilityNetworkValidateTopologyViewModel.d.ts +3 -3
  135. package/widgets/UtilityNetworkValidateTopology.d.ts +1 -1
  136. package/assets/esri/core/workers/chunks/0bd5012da287469b17d5.js +0 -1
  137. package/assets/esri/core/workers/chunks/0cb50bc2b2125c5fedf2.js +0 -1
  138. package/assets/esri/core/workers/chunks/112befb3b5b406f29298.js +0 -1
  139. package/assets/esri/core/workers/chunks/167b057ad50e6aef54de.js +0 -1
  140. package/assets/esri/core/workers/chunks/2d13a22f7b2427927fdc.js +0 -1
  141. package/assets/esri/core/workers/chunks/2f04b8679c9f15390517.js +0 -1
  142. package/assets/esri/core/workers/chunks/42045cf46497828cd3c0.js +0 -1
  143. package/assets/esri/core/workers/chunks/42fd2a7b22b03dacc6a7.js +0 -1
  144. package/assets/esri/core/workers/chunks/43cf862577bf37344ff4.js +0 -1
  145. package/assets/esri/core/workers/chunks/4be559c53fe5ac0d0d2e.js +0 -1
  146. package/assets/esri/core/workers/chunks/4e350d6c76957f5beb70.js +0 -1
  147. package/assets/esri/core/workers/chunks/4fe34da1c5d63e66ce98.js +0 -1
  148. package/assets/esri/core/workers/chunks/6c9266120d46e8c69dbf.js +0 -1
  149. package/assets/esri/core/workers/chunks/6c9acd9e4e201dc380e9.js +0 -1
  150. package/assets/esri/core/workers/chunks/6da7229433105a69eb3f.js +0 -1
  151. package/assets/esri/core/workers/chunks/74c866e0b66e61751861.js +0 -1
  152. package/assets/esri/core/workers/chunks/830ab9b8d000169da675.js +0 -1
  153. package/assets/esri/core/workers/chunks/849879c8aed16315194c.js +0 -1
  154. package/assets/esri/core/workers/chunks/8ff23ac0abeea0073b47.js +0 -1
  155. package/assets/esri/core/workers/chunks/939942b00ba380e2957e.js +0 -1
  156. package/assets/esri/core/workers/chunks/95dbbddac6581b9d671f.js +0 -1
  157. package/assets/esri/core/workers/chunks/a40b6d8b5c73e06e14d4.js +0 -1
  158. package/assets/esri/core/workers/chunks/aa1ac7954e4f0fefe15b.js +0 -1
  159. package/assets/esri/core/workers/chunks/b5df193c93e9c19f9700.js +0 -1
  160. package/assets/esri/core/workers/chunks/befa32b9e7b3fbdd431e.js +0 -1
  161. package/assets/esri/core/workers/chunks/c2c1f51a4668055c2838.js +0 -1
  162. package/assets/esri/core/workers/chunks/d0f5bee9db1ad51ae687.js +0 -1
  163. package/assets/esri/core/workers/chunks/d7429b58c90e015263ad.js +0 -1
  164. package/assets/esri/core/workers/chunks/d95d63e8d51244d71afb.js +0 -1
  165. package/assets/esri/core/workers/chunks/dfc81e66196c402f39b4.js +0 -29
  166. package/assets/esri/core/workers/chunks/dfd2dc5cdc97ffba8926.js +0 -1
  167. package/assets/esri/core/workers/chunks/e01fc1c31bc023dd0e33.js +0 -1
  168. package/assets/esri/core/workers/chunks/e1b7806ab3e1967b15f0.js +0 -1
  169. package/assets/esri/core/workers/chunks/e1f5d00878f27e1d413e.js +0 -1
  170. package/assets/esri/core/workers/chunks/ffbcb816b611049a6276.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[514,3932,6553],{78955(e,t,r){r.d(t,{Bw:()=>g,C:()=>i,Cc:()=>v,LI:()=>p,Om:()=>x,S8:()=>M,T9:()=>h,WQ:()=>o,Z0:()=>R,aI:()=>C,hG:()=>c,hZ:()=>l,hs:()=>m,jk:()=>f,m3:()=>d,t2:()=>w});var n=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function l(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function o(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function a(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function s(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function u(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function f(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function h(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function p(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function m(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function y(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],l=t[3]-e[3];return Math.sqrt(r*r+n*n+i*i+l*l)}function c(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],l=t[3]-e[3];return r*r+n*n+i*i+l*l}function g(e){let t=e[0],r=e[1],n=e[2],i=e[3];return Math.sqrt(t*t+r*r+n*n+i*i)}function d(e){let t=e[0],r=e[1],n=e[2],i=e[3];return t*t+r*r+n*n+i*i}function M(e,t){let r=t[0],n=t[1],i=t[2],l=t[3],o=r*r+n*n+i*i+l*l;return o>0&&(o=1/Math.sqrt(o),e[0]=r*o,e[1]=n*o,e[2]=i*o,e[3]=l*o),e}function x(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function v(e,t,r,n){let i=t[0],l=t[1],o=t[2],a=t[3];return e[0]=i+n*(r[0]-i),e[1]=l+n*(r[1]-l),e[2]=o+n*(r[2]-o),e[3]=a+n*(r[3]-a),e}function R(e,t,r){let n=t[0],i=t[1],l=t[2],o=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*l+r[12]*o,e[1]=r[1]*n+r[5]*i+r[9]*l+r[13]*o,e[2]=r[2]*n+r[6]*i+r[10]*l+r[14]*o,e[3]=r[3]*n+r[7]*i+r[11]*l+r[15]*o,e}function w(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function C(e,t){let r=e[0],i=e[1],l=e[2],o=e[3],a=t[0],s=t[1],u=t[2],f=t[3],h=(0,n.FD)();return Math.abs(r-a)<=h*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-s)<=h*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(l-u)<=h*Math.max(1,Math.abs(l),Math.abs(u))&&Math.abs(o-f)<=h*Math.max(1,Math.abs(o),Math.abs(f))}const b=a,q=s,Z=u,z=y,G=c,S=g,T=d;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:z,distance:y,div:Z,divide:u,dot:x,equals:C,exactEquals:w,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:S,length:g,lerp:v,max:h,min:f,mul:q,multiply:s,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:M,random:function(e,t=1){let r,i,l,o,a,s,u=n.Ov;do{r=2*u()-1,i=2*u()-1,a=r*r+i*i}while(a>=1);do{l=2*u()-1,o=2*u()-1,s=l*l+o*o}while(s>=1);let f=Math.sqrt((1-a)/s);return e[0]=t*r,e[1]=t*i,e[2]=t*l*f,e[3]=t*o*f,e},round:p,scale:m,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},set:l,sqrDist:G,sqrLen:T,squaredDistance:c,squaredLength:d,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:b,subtract:a,transformMat4:R,transformQuat:function(e,t,r){let n=t[0],i=t[1],l=t[2],o=r[0],a=r[1],s=r[2],u=r[3],f=u*n+a*l-s*i,h=u*i+s*n-o*l,p=u*l+o*i-a*n,m=-o*n-a*i-s*l;return e[0]=f*u+m*-o+h*-s-p*-a,e[1]=h*u+m*-a+p*-o-f*-s,e[2]=p*u+m*-s+f*-a-h*-o,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},76553(e,t,r){function n(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>n})},96520(e,t,r){r.d(t,{u:()=>s});var n=r(86211),i=r(21325),l=r(52006);function o(e,t,r){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e)t.length>2&&(t[2]*=r)}function a(e,t,r){if(null==e.hasM||e.hasZ)for(let e of t)for(let t of e){let e=(0,l.yP)(t);e.length>2&&(e[2]*=r)}}function s(e,t,r){if(!e&&!t||!r)return;let i=(0,n.G9)(r);u(e,r,i),u(t,r,i)}function u(e,t,r){if(e)for(let n of e)f(n.geometry,t,r)}function f(e,t,r){if(!e?.spatialReference||(0,i.aI)(e.spatialReference,t))return;let l=(0,n.G9)(e.spatialReference)/r;if(1!==l)if("x"in e)null!=e.z&&(e.z*=l);else if("curveRings"in e)a(e,e.curveRings,l);else if("curvePaths"in e)a(e,e.curvePaths,l);else if("rings"in e)o(e,e.rings,l);else if("paths"in e)o(e,e.paths,l);else if("points"in e&&(null==e.hasM||e.hasZ))for(let t of e.points)t.length>2&&(t[2]*=l)}},22671(e,t,r){r.d(t,{A:()=>M});var n,i=r(32198),l=r(52106),o=r(66552),a=r(25482),s=r(4718),u=r(91429),f=r(16930),h=r(60408),p=r(65864),m=r(50498),y=r(20437),c=r(36005),g=r(43937);const d=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=n=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l.A)}writeGeometryType(e,t,r,n){if(e)return void d.write(e,t,r,n);let{features:i}=this;if(i)for(let e of i)if(null!=e?.geometry)return void d.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,n=(0,p.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=f.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,s.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let n=t.features[r];n.geometry&&=(e?.[r])?.toJSON()||n.geometry}return t}quantize(e){let{scale:[t,r],translate:[n,i]}=e,l=this.features,o=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((i-e)/r));for(let e=0,t=l.length;e<t;e++)o?.(l[e].geometry)||(l.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[n,i],scale:[l,o]}=r,a=null,s=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;s=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*l+n,e=>i-e*o,a,s);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let n=f.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){let l=e[t],o=r.fromJSON(l),a=l.geometry?.spatialReference;null!=o.geometry&&!a&&(o.geometry.spatialReference=n);let s=l.aggregateGeometries,u=o.aggregateGeometries;if(s&&null!=u)for(let e in u){let t=u[e],r=s[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=n)}i.push(o)}return i}_quantizePoints(e,t,r){let n,i,l=[];for(let o=0,a=e.length;o<a;o++){let a=e[o];if(o>0){let e=t(a[0]),o=r(a[1]);(e!==n||o!==i)&&(l.push([e-n,o-i]),n=e,i=o)}else n=t(a[0]),i=r(a[1]),l.push([n,i])}return l.length>0?l:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let n=(0,h.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,l=n.length;e<l;e++){let l=n[e],o=this._quantizePoints(l,t,r);o&&i.push(o)}return i.length>0?((0,h.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{let n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{let l,o,a=(0,h.Bi)(e)?e.rings:e.paths;for(let e=0,n=a.length;e<n;e++){let n=a[e];for(let e=0,i=n.length;e<i;e++){let i=n[e];e>0?(l+=i[0],o+=i[1]):(l=i[0],o=i[1]),i[0]=t(l),i[1]=r(o)}}if(n&&i)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=a.length;e<t;e++){let t=a[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{let l,o,a=e.points;for(let e=0,n=a.length;e<n;e++){let n=a[e];e>0?(l+=n[0],o+=n[1]):(l=n[0],o=n[1]),n[0]=t(l),n[1]=r(o)}if(n&&i)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=n(t[2])}else if(i)for(let e=0,t=a.length;e<t;e++){let t=a[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[l.A],json:{write:!0}})],M.prototype,"features",void 0),(0,i.Cg)([(0,c.w)("features")],M.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[y.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:d.read}}})],M.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:m.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,c.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:f.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,i.Cg)([(0,g.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=n=(0,i.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3561,5804,6553],{46130(e,t,r){r.d(t,{v:()=>o});var a=r(76553);function o(e){e?.writtenProperties&&e.writtenProperties.forEach(({target:e,propName:t,newOrigin:r})=>{(0,a.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)})}},76553(e,t,r){function a(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>a})},63561(e,t,r){r.d(t,{save:()=>d,saveAs:()=>h});var a=r(71530),o=r(88788),s=r(10407),n=r(91682);const i="Media Layer",l=["media-layer:unsupported-source"];function u(e){return{isValid:"media"===e.type,errorMessage:"Layer.type should be 'media'"}}function c(e){return(0,o.m)(e,"portal-item",{withResources:!0})}function p(e){return Promise.resolve(e.layerJSON)}async function m(e,t){t.extent=e.fullExtent?await(0,s.sQ)(e.fullExtent):null}async function f(e,t){t.title||=e.title,await m(e,t),(0,s.OM)(t,s.mm.METADATA)}async function d(e,t){return(0,a.UN)({layer:e,itemType:i,validateLayer:u,createJSONContext:e=>c(e),createItemData:p,errorNamePrefix:"media-layer-save",supplementalUnsupportedErrors:l,setItemProperties:m,saveResources:(t,r)=>(0,n.r)(e.resourceReferences,r)},t)}async function h(e,t,r){return(0,a.Uh)({layer:e,itemType:i,validateLayer:u,createJSONContext:e=>c(e),createItemData:p,errorNamePrefix:"media-layer-save-as",supplementalUnsupportedErrors:l,newItem:t,setItemProperties:f,saveResources:(t,r)=>(0,n.r)(e.resourceReferences,r)},r)}},71530(e,t,r){r.d(t,{UN:()=>v,Uh:()=>I});var a=r(49186),o=r(46130),s=r(20655),n=r(80812),i=r(88788),l=r(10407),u=r(26121);async function c(e){let{layer:t,errorNamePrefix:r,validateLayer:o}=e;await t.load(),function(e,t,r){let o=r(e);if(!o.isValid)throw new a.A(`${t}:invalid-parameters`,o.errorMessage,{layer:e})}(t,r,o)}function p(e,t){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${t}`}function m(e){let{item:t,errorNamePrefix:r,layer:o,validateItem:s}=e;if(function(e){let{item:t,itemType:r,additionalItemType:o,errorNamePrefix:s,layer:n}=e,i=[r];if(o&&i.push(o),!i.includes(t.type)){let e=i.map(e=>`'${e}'`).join(", ");throw new a.A(`${s}:portal-item-wrong-type`,`Portal item type should be one of: "${e}"`,{item:t,layer:n})}}(e),s){let e=s(t);if(!e.isValid)throw new a.A(`${r}:invalid-parameters`,e.errorMessage,{layer:o})}}function f(e){let{layer:t,errorNamePrefix:r}=e,{portalItem:o}=t;if(!o)throw new a.A(`${r}:portal-item-not-set`,p(t,"requires the portalItem property to be set"));if(!o.loaded)throw new a.A(`${r}:portal-item-not-loaded`,p(t,"cannot be saved to a portal item that does not exist or is inaccessible"));m({...e,item:o})}function d(e){let{newItem:t,itemType:r}=e,a=n.default.from(t);return a.id&&(a=a.clone(),a.id=null),a.type??=r,a.portal??=s.A.getDefault(),m({...e,item:a}),a}function h(e){return(0,i.m)(e,"portal-item")}async function w(e,t,r){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();let a=e.write({},t);return await Promise.all(t.resources?.pendingOperations??[]),(0,u.ci)(t,{errorName:"layer-write:unsupported"},r),a}function y(e){(0,l.LG)(e,l.mm.JSAPI),e.typeKeywords&&=e.typeKeywords.filter((e,t,r)=>r.indexOf(e)===t)}async function v(e,t){let{layer:r,createItemData:a,createJSONContext:s,setItemProperties:n,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e),f(e);let u=r.portalItem,p=s?s(u):h(u),m=await a({layer:r,layerJSON:await w(r,p,{...t,supplementalUnsupportedErrors:l})},u);return await(n?.(r,u,m)),y(u),await u.update({data:m}),(0,o.v)(p),await(i?.(u,p)),u}async function I(e,t){let{layer:r,createItemData:a,createJSONContext:s,setItemProperties:n,saveResources:i,supplementalUnsupportedErrors:l}=e;await c(e);let u=d(e),p=s?s(u):h(u),m=await a({layer:r,layerJSON:await w(r,p,{...t,supplementalUnsupportedErrors:l})},u);return await n(r,u,m),y(u),await async function(e,t,r){let a=e.portal;await a.signIn(),await a.user.addItem({item:e,data:t,folder:r?.folder})}(u,m,t),r.portalItem=u,(0,o.v)(p),await(i?.(u,p)),u}},88788(e,t,r){r.d(t,{m:()=>n,v:()=>s});var a=r(84952),o=r(20655);function s(e,t){return{...i(e,t),readResourcePaths:[]}}function n(e,t,r){let o=(0,a.An)(r?.forceNewItemContext?null:e.itemUrl);return{...i(e,t,r),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:o?{rootPath:o.path,writtenUrls:[]}:null,resources:r?.withResources?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function i(e,t,r){return{origin:t,url:(0,a.An)(r?.forceNewItemContext?null:e.itemUrl),portal:e.portal||o.A.getDefault(),portalItem:e}}},15804(e,t,r){r.d(t,{addOrUpdateResources:()=>i,bg:()=>m,cL:()=>p,fetchResources:()=>n,removeAllResources:()=>u,removeResource:()=>l});var a=r(56507),o=r(49186),s=r(84952);async function n(e,t={},r){await e.load(r);let a=(0,s.fj)(e.itemUrl,"resources"),{start:o=1,num:n=10,sortOrder:i="asc",sortField:l="resource"}=t,u={query:{start:o,num:n,sortOrder:i,sortField:l,token:e.apiKey},signal:r?.signal},c=await e.portal.request(a,u);return{total:c.total,nextStart:c.nextStart,resources:c.resources.map(({created:t,size:r,resource:a})=>({created:new Date(t),size:r,resource:e.resourceFromPath(a)}))}}async function i(e,t,r,a){let n=new Map;for(let{resource:e,content:a,compress:s,access:i}of t){if(!e.hasPath())throw new o.A(`portal-item-resource-${r}:invalid-path`,"Resource does not have a valid path");let[t,l]=c(e.path),u=`${t}/${s??""}/${i??""}`;n.has(u)||n.set(u,{prefix:t,compress:s,access:i,files:[]}),n.get(u).files.push({fileName:l,content:a})}await e.load(a);let i=(0,s.fj)(e.userItemUrl,"add"===r?"addResources":"updateResources");for(let{prefix:t,compress:r,access:s,files:l}of n.values())for(let n=0;n<l.length;n+=25){let u=l.slice(n,n+25),c=new FormData;t&&"."!==t&&c.append("resourcesPrefix",t),r&&c.append("compress","true"),s&&c.append("access",s);let p=0;for(let{fileName:e,content:t}of u)c.append("file"+ ++p,t,e);c.append("f","json");try{await e.portal.request(i,{method:"post",body:c,signal:a?.signal})}catch(e){if(a?.ignoreResourceCopyErrors&&e instanceof o.A&&"CONT_00942"===e.details?.messageCode)continue;throw e}}}async function l(e,t,r){if(!t.hasPath())throw new o.A("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);let a=(0,s.fj)(e.userItemUrl,"removeResources");await e.portal.request(a,{method:"post",query:{resource:t.path},signal:r?.signal}),t.portalItem=null}async function u(e,t){await e.load(t);let r=(0,s.fj)(e.userItemUrl,"removeResources");return e.portal.request(r,{method:"post",query:{deleteAll:!0},signal:t?.signal})}function c(e){let t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}async function p(e){return"blob"===e.type?e.blob:"json"===e.type?new Blob([e.jsonString],{type:"application/json"}):(await(0,a.A)(e.url,{responseType:"blob"})).data}function m(e,t){if(!e.hasPath())return null;let[r,,a]=function(e){let[t,r]=function(e){let t=(0,s.Zo)(e);return null==t?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[a,o]=c(t);return[a,o,r]}(e.path);return e.portalItem.resourceFromPath((0,s.fj)(r,t+a))}},91682(e,t,r){r.d(t,{S:()=>l,r:()=>i});var a=r(49186),o=r(17676),s=r(13069),n=r(15804);async function i(e,t,r){await c(await u(e,t,r),t,r)}async function l(e,t,r,a,o){let s=await u(r,a,o);await e.update({data:t}),await c(s,a,o)}async function u(e,t,i){if(!t?.resources)return;let l=function(e,t){let{portalItem:r,portalItemResourcePath:a}=e,{portalItem:o,portalItemResourcePath:s}=t;return r===o&&(!(a||s)||a===s)}(e,t)?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem,e.portalItemResourcePath=t.portalItemResourcePath;let u=new Set(t.resources.toKeep.map(e=>e.resource.path)),c=new Set,p=[];u.forEach(t=>{l.delete(t),e.paths.push(t)});let m=[],f=[],d=[];for(let r of t.resources.toUpdate)if(l.delete(r.resource.path),u.has(r.resource.path)||c.has(r.resource.path)){let{resource:t,content:a,finish:o}=r,i=(0,n.bg)(t,(0,s.lk)());e.paths.push(i.path),m.push({resource:i,content:await(0,n.cL)(a),compress:r.compress}),o&&d.push(()=>o(i))}else{e.paths.push(r.resource.path),f.push({resource:r.resource,content:await(0,n.cL)(r.content),compress:r.compress});let t=r.finish;t&&d.push(()=>t(r.resource)),c.add(r.resource.path)}for(let r of t.resources.toAdd)if(e.paths.push(r.resource.path),l.has(r.resource.path))l.delete(r.resource.path);else{m.push({resource:r.resource,content:await(0,n.cL)(r.content),compress:r.compress});let e=r.finish;e&&d.push(()=>e(r.resource))}if(m.length||f.length){let{addOrUpdateResources:e}=await Promise.resolve().then(()=>r(15804));await e(t.portalItem,m,"add",i),await e(t.portalItem,f,"update",i)}if(d.forEach(e=>e()),0===p.length)return l;let h=await(0,o.Ol)(p);if((0,o.Te)(i),h.length>0)throw new a.A("save:resources","Failed to save one or more resources",{errors:h});return l}async function c(e,t,r){if(!e||!t.portalItem)return;let a=[];for(let o of e){let e=t.portalItem.resourceFromPath(o);a.push(e.portalItem.removeResource(e,r))}await(0,o.Lx)(a)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7005],{82534(t,e,r){function n(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}r.d(e,{o8:()=>a,vt:()=>n});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:n,fromValues:function(t,e,r,n){return[t,e,r,n]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["zK",0,i])},67026(t,e,r){r.d(e,{A6:()=>M,Xd:()=>l,Xr:()=>d,lw:()=>c,x8:()=>u});var n=r(29242),a=r(82534),i=r(51850),s=r(34304),h=r(35522),o=r(78955);function u(t,e,r){r*=.5;let n=Math.sin(r);return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=Math.cos(r),t}function l(t,e){let r=2*Math.acos(e[3]),n=Math.sin(r/2);return n>(0,s.FD)()?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r}function c(t,e,r){let n=e[0],a=e[1],i=e[2],s=e[3],h=r[0],o=r[1],u=r[2],l=r[3];return t[0]=n*l+s*h+a*u-i*o,t[1]=a*l+s*o+i*h-n*u,t[2]=i*l+s*u+n*o-a*h,t[3]=s*l-n*h-a*o-i*u,t}function f(t,e,r,n){let a,i,h,o,u,l=e[0],c=e[1],f=e[2],d=e[3],m=r[0],M=r[1],g=r[2],v=r[3];return i=l*m+c*M+f*g+d*v,i<0&&(i=-i,m=-m,M=-M,g=-g,v=-v),1-i>(0,s.FD)()?(a=Math.acos(i),h=Math.sin(a),o=Math.sin((1-n)*a)/h,u=Math.sin(n*a)/h):(o=1-n,u=n),t[0]=o*l+u*m,t[1]=o*c+u*M,t[2]=o*f+u*g,t[3]=o*d+u*v,t}function d(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function m(t,e){let r,n=e[0]+e[4]+e[8];if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{let n=0;e[4]>e[0]&&(n=1),e[8]>e[3*n+n]&&(n=2);let a=(n+1)%3,i=(n+2)%3;r=Math.sqrt(e[3*n+n]-e[3*a+a]-e[3*i+i]+1),t[n]=.5*r,r=.5/r,t[3]=(e[3*a+i]-e[3*i+a])*r,t[a]=(e[3*a+n]+e[3*n+a])*r,t[i]=(e[3*i+n]+e[3*n+i])*r}return t}function M(t,e,r,n){let a=.5*Math.PI/180;e*=a,r*=a,n*=a;let i=Math.sin(e),s=Math.cos(e),h=Math.sin(r),o=Math.cos(r),u=Math.sin(n),l=Math.cos(n);return t[0]=i*o*l-s*h*u,t[1]=s*h*l+i*o*u,t[2]=s*o*u-i*h*l,t[3]=s*o*l+i*h*u,t}const g=o.C,v=o.hZ,_=o.WQ,b=c,P=o.hs,j=o.Om,p=o.Cc,x=o.Bw,w=x,C=o.m3,A=C,S=o.S8,z=o.t2,q=o.aI,Q=(0,i.vt)(),y=(0,i.fA)(1,0,0),O=(0,i.fA)(0,1,0),R=(0,a.vt)(),V=(0,a.vt)(),H=(0,n.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:_,calculateW:function(t,e){let r=e[0],n=e[1],a=e[2];return t[0]=r,t[1]=n,t[2]=a,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-a*a)),t},conjugate:d,copy:g,dot:j,equals:q,exactEquals:z,fromEuler:M,fromMat3:m,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,e){let r=e[0],n=e[1],a=e[2],i=e[3],s=r*r+n*n+a*a+i*i,h=s?1/s:0;return t[0]=-r*h,t[1]=-n*h,t[2]=-a*h,t[3]=i*h,t},len:w,length:x,lerp:p,mul:b,multiply:c,normalize:S,random:function(t){let e=s.Ov,r=e(),n=e(),a=e(),i=Math.sqrt(1-r),h=Math.sqrt(r);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=h*Math.sin(2*Math.PI*a),t[3]=h*Math.cos(2*Math.PI*a),t},rotateX:function(t,e,r){r*=.5;let n=e[0],a=e[1],i=e[2],s=e[3],h=Math.sin(r),o=Math.cos(r);return t[0]=n*o+s*h,t[1]=a*o+i*h,t[2]=i*o-a*h,t[3]=s*o-n*h,t},rotateY:function(t,e,r){r*=.5;let n=e[0],a=e[1],i=e[2],s=e[3],h=Math.sin(r),o=Math.cos(r);return t[0]=n*o-i*h,t[1]=a*o+s*h,t[2]=i*o+n*h,t[3]=s*o-a*h,t},rotateZ:function(t,e,r){r*=.5;let n=e[0],a=e[1],i=e[2],s=e[3],h=Math.sin(r),o=Math.cos(r);return t[0]=n*o+a*h,t[1]=a*o-n*h,t[2]=i*o+s*h,t[3]=s*o-i*h,t},rotationTo:function(t,e,r){let n=(0,h.Om)(e,r);return n<-.999999?((0,h.$A)(Q,y,e),(0,h.Il)(Q)<1e-6&&(0,h.$A)(Q,O,e),(0,h.S8)(Q,Q),u(t,Q,Math.PI),t):n>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,h.$A)(Q,e,r),t[0]=Q[0],t[1]=Q[1],t[2]=Q[2],t[3]=1+n,S(t,t))},scale:P,set:v,setAxes:function(t,e,r,n){let a=H;return a[0]=r[0],a[3]=r[1],a[6]=r[2],a[1]=n[0],a[4]=n[1],a[7]=n[2],a[2]=-e[0],a[5]=-e[1],a[8]=-e[2],S(t,m(t,a))},setAxisAngle:u,slerp:f,sqlerp:function(t,e,r,n,a,i){return f(R,e,a,i),f(V,r,n,i),f(t,R,V,2*i*(1-i)),t},sqrLen:A,squaredLength:C,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"})),r.d(e,["hZ",0,v,"t2",0,z])},48353(t,e,r){r.d(e,{l:()=>u});var n=r(34727),a=r(58083),i=r(51850);function s(t,e,r){let n=Math.sin(t),a=Math.cos(t),i=Math.sin(e),s=Math.cos(e),h=r;return h[0]=-n,h[4]=-i*a,h[8]=s*a,h[12]=0,h[1]=a,h[5]=-i*n,h[9]=s*n,h[13]=0,h[2]=0,h[6]=s,h[10]=i,h[14]=0,h[3]=0,h[7]=0,h[11]=0,h[15]=1,h}var h=r(49208),o=r(21325);function u(t,e,r,n){let i=(0,h.Tp)(t,n);if(null==i)return!1;let u=i.source.spatialReferenceId,m=i.dest.spatialReferenceId;if(u===m&&!l(m)&&(0!==u||(0,o.aI)(t,n)))return(0,a.kN)(r,e),!0;if(l(m)){let t=h.w5[u][10],n=h.w5[10][m];return null!=t&&null!=n&&(t(e,0,f,0),n(f,0,d,0),s(c*f[0],c*f[1],r),r[12]=d[0],r[13]=d[1],r[14]=d[2],!0)}let M=l(u);if((3===m||11===m||2===m||5===m)&&(2===u||M||3===u||5===u)){let t=h.w5[u][10],n=h.w5[10][m];return null!=t&&null!=n&&(t(e,0,f,0),n(f,0,d,0),M?function(t,e,r){s(t,e,r),(0,a.mg)(r,r)}(c*f[0],c*f[1],r):(0,a.D_)(r),r[12]=d[0],r[13]=d[1],r[14]=d[2],!0)}return!1}function l(t){return 1===t||6===t||8===t||4===t}const c=(0,n.kU)(1),f=(0,i.vt)(),d=(0,i.vt)()},27921(t,e,r){r.d(e,{$Q:()=>z,BX:()=>S,C:()=>u,Cr:()=>d,H:()=>Q,LV:()=>o,O_:()=>f,Qj:()=>l,T7:()=>w,Ui:()=>x,_I:()=>y,fA:()=>c,gv:()=>C,lU:()=>m,mN:()=>O,mP:()=>j,mR:()=>p,vE:()=>H,vt:()=>h,wE:()=>R});var n=r(34727),a=r(35522),i=r(51850),s=(r(78955),r(44280),r(32114));function h(t=I){return[t[0],t[1],t[2],t[3]]}function o(t=I[0],e=I[1],r=I[2],n=I[3]){return c(t,e,r,n,s.Km.get())}function u(t,e){return c(e[0],e[1],e[2],e[3],t)}function l(t){return t}function c(t,e,r,n,a=h()){return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a}function f(t,e,r){let n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],a=Math.abs(n-1)>1e-5&&n>1e-12?1/Math.sqrt(n):1;return r[0]=e[0]*a,r[1]=e[1]*a,r[2]=e[2]*a,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function d(t,e,r,n=h()){let a=r[0]-e[0],i=r[1]-e[1],s=r[2]-e[2],o=t[0]-e[0],u=t[1]-e[1],l=t[2]-e[2],c=i*l-s*u,f=s*o-a*l,d=a*u-i*o,m=c*c+f*f+d*d,M=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return n[0]=c*M,n[1]=f*M,n[2]=d*M,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function m(t,e,r,n=0,i=Math.floor(1/3*r),s=Math.floor(2/3*r)){if(r<3)return!1;e(g,n);let h=i,o=!1;for(;h<r-1&&!o;)e(v,h),h++,o=!(0,a.t2)(g,v);if(!o)return!1;for(h=Math.max(h,s),o=!1;h<r&&!o;)e(_,h),h++,(0,a.Re)(b,g,v),(0,a.S8)(b,b),(0,a.Re)(P,v,_),(0,a.S8)(P,P),o=!(0,a.t2)(g,_)&&!(0,a.t2)(v,_)&&Math.abs((0,a.Om)(b,P))<M;return o?(d(g,v,_,t),!0):(0!==n||1!==i||2!==s)&&m(t,e,r,0,1,2)}r(32728);const M=.99619469809,g=(0,i.vt)(),v=(0,i.vt)(),_=(0,i.vt)(),b=(0,i.vt)(),P=(0,i.vt)();function j(t,e,r){return e!==t&&u(t,e),t[3]=-(0,a.Om)(t,r),t}function p(t,e,r,n){return(0,a.$A)(_,e,t),f(r,_,n)}function x(t,e,r){return null!=e&&V(H(t,e.origin,e.direction,L,r))}function w(t,e,r){return V(H(t,e.origin,e.vector,0,r))}function C(t,e,r){return V(H(t,e.origin,e.vector,1,r))}function A(t,e){return O(t,e)<=0}function S(t,e){return O(t,e)>=0}function z(t,e){return function(t,e,r,n,i,s,h,o){let u=(0,a.Om)(t,r),l=O(t,e);if(u>=-o&&u<=o)return q(l,i,s);let c=-l/u,f=q(u,i,!1);return!(h&&!f&&!q(l,i,s))&&(f?c>n.c0&&(n.c0=c):c<n.c1&&(n.c1=c),n.c0<=n.c1)}(t,e.ray.origin,e.ray.direction,e,!1,!1,!0,1e-6)}function q(t,e,r){return r?e?t>=0:t<=0:e?t>0:t<0}function Q(t,e,r,n=!1){let i=e.at(-1),s=O(t,i),h=n?s>0:s<=0;for(let o=0;o<e.length;o++){let u=e.at(o),l=O(t,u),c=n?l>0:l<=0;h!==c&&(0,a.Cc)(r(),i,u,s/(s-l)),c&&(0,a.C)(r(),u),i=u,s=l,h=c}}function y(t,e,r){let n=(0,a.hs)(s.rq.get(),t,-t[3]),i=function(t,e,r){let n=(0,a.hs)(s.rq.get(),t,(0,a.Om)(t,e));return(0,a.Re)(r,e,n),r}(t,(0,a.Re)(s.rq.get(),e,n),s.rq.get());return(0,a.WQ)(r,i,n),r}function O(t,e){return(0,a.Om)(t,e)+t[3]}function R(t,e,r){for(let n=0;n<r;++n)if(A(t,e[n]))return!1;return!0}function V(t){return 0===t||1===t}function H(t,e,r,i,s){let h=(0,a.Om)(t,r),o=O(t,e);if(0===h)return o>=0?2:3;let u=-o/h;return 1&i&&(u=(0,n.qE)(u,0,1)),!(4&i)&&u<0||!(8&i)&&u>1?o>=0?2:3:((0,a.WQ)(s,e,(0,a.hs)(s,r,u)),o>=0?0:1)}const I=[0,0,1,0],L=8;(0,i.vt)()},44280(t,e,r){r.d(e,{g7:()=>h,gr:()=>s});var n=r(34727),a=r(35522),i=r(51850);function s(t,e){return(0,a.Om)(t,e)/(0,a.Bw)(t)}function h(t,e){let r=(0,a.Om)(t,e)/((0,a.Bw)(t)*(0,a.Bw)(e));return-(0,n.XM)(r)}(0,i.vt)(),(0,i.vt)()},32114(t,e,r){r.d(e,{Rc:()=>d,rq:()=>c,Km:()=>f}),r(44208);var n=r(26390),a=r(29242),i=r(9093),s=r(82534),h=r(48163),o=r(51850),u=r(91829);class l{constructor(t){this._create=t,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,n.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new l(h.vt)}static createVec3f64(){return new l(o.vt)}static createVec4f64(){return new l(u.vt)}static createMat3f64(){return new l(a.vt)}static createMat4f64(){return new l(i.vt)}static createQuatf64(){return new l(s.vt)}get test(){}}l.createVec2f64();const c=l.createVec3f64(),f=l.createVec4f64(),d=(l.createMat3f64(),l.createMat4f64());l.createQuatf64()},32728(t,e,r){r.d(e,{YH:()=>s,nu:()=>h,wp:()=>i}),r(34727);var n=r(35522),a=r(51850);function i(t,e){let r=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),a=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),i=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,n.hZ)(t,r,a,i),t}function s(t,e,r){r||=t;let a=(0,n.Om)(t,e);(0,n.hZ)(r,t[0]-a*e[0],t[1]-a*e[1],t[2]-a*e[2]),(0,n.S8)(r,r)}function h(t,e,r,i=(0,a.vt)()){let s=(0,n.Bw)(t),h=(0,n.Bw)(e),l=(0,n.Om)(t,e)/(s*h);if(l<.9999999999999999){let a=Math.acos(l),c=((1-r)*s+r*h)/Math.sin(a),f=c/s*Math.sin((1-r)*a),d=c/h*Math.sin(r*a);return(0,n.hs)(o,t,f),(0,n.hs)(u,e,d),(0,n.WQ)(i,o,u)}return(0,n.Cc)(i,t,e,r)}(0,a.vt)(),(0,a.vt)(),(0,a.vt)();const o=(0,a.vt)(),u=(0,a.vt)()},57005(t,e,r){r.d(e,{ab:()=>_t,gm:()=>St});var n=r(77690),a=r(29242),i=r(9093),s=r(67026),h=r(82534),o=r(35522),u=r(51850),l=r(78955),c=r(91829),f=r(73941),d=r(98764),m=r(48353),M=r(9762),g=r(49208),v=r(27921),_=r(21325),b=r(48163),P=r(46610);const j=1e-6,p=(0,u.vt)(),x=(0,u.vt)();function w(t,e,r,n,a,i,s,h,o,u){return function(t,e,r){let n=gt(t.maxVert[0],t.minVert[0]),a=0;for(let e=1;e<7;++e){let r=gt(t.maxVert[e],t.minVert[e]);r>n&&(n=r,a=e)}ft(e,t.minVert[a]),ft(r,t.maxVert[a])}(t,n,a),gt(n,a)<j?1:(lt(s,n,a),mt(s,s),function(t,e,r,n){let{data:a,size:i}=t,s=-1/0,h=0;for(let t=0;t<a.length;t+=i){V[0]=a[t]-e[0],V[1]=a[t+1]-e[1],V[2]=a[t+2]-e[2];let n=r[0]*V[0]+r[1]*V[1]+r[2]*V[2],i=r[0]*r[0]+r[1]*r[1]+r[2]*r[2],o=V[0]*V[0]+V[1]*V[1]+V[2]*V[2]-n*n/i;o>s&&(s=o,h=t)}return ft(n,a,h),s}(e,n,s,i)<j?2:(lt(h,a,i),mt(h,h),lt(o,i,n),mt(o,o),dt(r,h,s),mt(r,r),W(e,r,s,h,o,u),0))}const C=(0,u.vt)(),A=(0,u.vt)(),S=(0,u.vt)(),z=(0,u.vt)(),q=(0,u.vt)(),Q=(0,u.vt)(),y=(0,u.vt)(),O=(0,u.vt)();function R(t,e,r,n,a,i,s,h,o){(function(t,e,r,n,a){!function(t,e,r,n,a){let{data:i,size:s}=t;ft(n,i),ft(a,n),r[0]=vt(X,e),r[1]=r[0];for(let t=s;t<i.length;t+=s){let s=i[t]*e[0]+i[t+1]*e[1]+i[t+2]*e[2];s<r[0]&&(r[0]=s,ft(n,i,t)),s>r[1]&&(r[1]=s,ft(a,i,t))}}(t,e,H,a,n);let i=vt(r,e);H[1]-j<=i&&(n[0]=void 0),H[0]+j>=i&&(a[0]=void 0)})(t,e,r,C,A),void 0!==C[0]&&(lt(S,C,r),mt(S,S),lt(z,C,n),mt(z,z),lt(q,C,a),mt(q,q),dt(Q,z,i),mt(Q,Q),dt(y,q,s),mt(y,y),dt(O,S,h),mt(O,O),W(t,Q,i,z,S,o),W(t,y,s,q,z,o),W(t,O,h,S,q,o)),void 0!==A[0]&&(lt(S,A,r),mt(S,S),lt(z,A,n),mt(z,z),lt(q,A,a),mt(q,q),dt(Q,z,i),mt(Q,Q),dt(y,q,s),mt(y,y),dt(O,S,h),mt(O,O),W(t,Q,i,z,S,o),W(t,y,s,q,z,o),W(t,O,h,S,q,o))}const V=[0,0,0],H=(0,b.vt)(),I=(0,u.vt)(),L=(0,u.vt)(),B=(0,u.vt)(),D=(0,u.vt)(),F=(0,u.vt)(),Z=(0,u.vt)();function W(t,e,r,n,a,i){if(Mt(e)<j)return;dt(I,r,e),dt(L,n,e),dt(B,a,e),k(t,e,H),F[1]=H[0],D[1]=H[1],Z[1]=D[1]-F[1];let s=[r,n,a],h=[I,L,B];for(let r=0;r<3;++r){k(t,s[r],H),F[0]=H[0],D[0]=H[1],k(t,h[r],H),F[2]=H[0],D[2]=H[1],Z[0]=D[0]-F[0],Z[2]=D[2]-F[2];let n=ot(Z);n<i.quality&&(ft(i.b0,s[r]),ft(i.b1,e),ft(i.b2,h[r]),i.quality=n)}}const X=(0,u.vt)();function k(t,e,r){let{data:n,size:a}=t,i=1/0,s=-1/0,h=e[0],o=e[1],u=e[2];for(let t=0;t<n.length;t+=a){let e=n[t]*h+n[t+1]*o+n[t+2]*u;i=Math.min(i,e),s=Math.max(s,e)}r[0]=i,r[1]=s}function K(t,e,r){r.setCenter(t),r.setHalfSize((0,o.hs)(e,e,.5)),r.setQuaternion(h.zK)}const T=(0,u.vt)(),Y=(0,u.vt)(),E=(0,u.vt)(),$=(0,u.vt)(),N=(0,u.vt)(),U=(0,u.vt)();function G(t,e,r){ft(T,e),Math.abs(e[0])>Math.abs(e[1])&&Math.abs(e[0])>Math.abs(e[2])?T[0]=0:Math.abs(e[1])>Math.abs(e[2])?T[1]=0:T[2]=0,Mt(T)<j&&(T[0]=T[1]=T[2]=1),dt(Y,e,T),mt(Y,Y),dt(E,e,Y),mt(E,E),J(t,e,Y,E,$,N),lt(U,N,$),it(e,Y,E,$,N,U,r)}function J(t,e,r,n,a,i){k(t,e,H),a[0]=H[0],i[0]=H[1],k(t,r,H),a[1]=H[0],i[1]=H[1],k(t,n,H),a[2]=H[0],i[2]=H[1]}const tt=(0,u.vt)(),et=(0,u.vt)(),rt=(0,u.vt)(),nt=(0,a.fA)(1,0,0,0,1,0,0,0,1),at=(0,h.vt)();function it(t,e,r,n,a,i,s){nt[0]=t[0],nt[1]=t[1],nt[2]=t[2],nt[3]=e[0],nt[4]=e[1],nt[5]=e[2],nt[6]=r[0],nt[7]=r[1],nt[8]=r[2],s.setQuaternion(function(t,e){let r=e[0]+e[4]+e[8];if(r>0){let n=Math.sqrt(r+1);t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n}else{let r=0;e[4]>e[0]&&(r=1),e[8]>e[3*r+r]&&(r=2);let n=(r+1)%3,a=(r+2)%3,i=Math.sqrt(e[3*r+r]-e[3*n+n]-e[3*a+a]+1);t[r]=.5*i,i=.5/i,t[3]=(e[3*n+a]-e[3*a+n])*i,t[n]=(e[3*n+r]+e[3*r+n])*i,t[a]=(e[3*a+r]+e[3*r+a])*i}return t}(at,nt)),ut(tt,n,a),ct(tt,tt,.5),ct(et,t,tt[0]),ct(rt,e,tt[1]),ut(et,et,rt),ct(rt,r,tt[2]),s.setCenter((0,o.WQ)(et,et,rt)),s.setHalfSize((0,o.hs)(tt,i,.5))}class st{constructor(t){this.minVert=Array(7),this.maxVert=Array(7),this.buffer=new ArrayBuffer(448);let e=0;this.minProj=new Float64Array(this.buffer,e,7),e+=56,this.maxProj=new Float64Array(this.buffer,e,7),e+=56;for(let t=0;t<7;++t)this.minVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.maxVert[t]=new Float64Array(this.buffer,e,3),e+=24;for(let t=0;t<7;++t)this.minProj[t]=1/0,this.maxProj[t]=-1/0;let r=Array(7),n=Array(7),{data:a,size:i}=t;for(let t=0;t<a.length;t+=i){let e=a[t];e<this.minProj[0]&&(this.minProj[0]=e,r[0]=t),e>this.maxProj[0]&&(this.maxProj[0]=e,n[0]=t),e=a[t+1],e<this.minProj[1]&&(this.minProj[1]=e,r[1]=t),e>this.maxProj[1]&&(this.maxProj[1]=e,n[1]=t),e=a[t+2],e<this.minProj[2]&&(this.minProj[2]=e,r[2]=t),e>this.maxProj[2]&&(this.maxProj[2]=e,n[2]=t),e=a[t]+a[t+1]+a[t+2],e<this.minProj[3]&&(this.minProj[3]=e,r[3]=t),e>this.maxProj[3]&&(this.maxProj[3]=e,n[3]=t),e=a[t]+a[t+1]-a[t+2],e<this.minProj[4]&&(this.minProj[4]=e,r[4]=t),e>this.maxProj[4]&&(this.maxProj[4]=e,n[4]=t),e=a[t]-a[t+1]+a[t+2],e<this.minProj[5]&&(this.minProj[5]=e,r[5]=t),e>this.maxProj[5]&&(this.maxProj[5]=e,n[5]=t),e=a[t]-a[t+1]-a[t+2],e<this.minProj[6]&&(this.minProj[6]=e,r[6]=t),e>this.maxProj[6]&&(this.maxProj[6]=e,n[6]=t)}for(let t=0;t<7;++t){let e=r[t];ft(this.minVert[t],a,e),e=n[t],ft(this.maxVert[t],a,e)}}}class ht{constructor(){this.b0=(0,u.fA)(1,0,0),this.b1=(0,u.fA)(0,1,0),this.b2=(0,u.fA)(0,0,1),this.quality=0}}function ot(t){return t[0]*t[1]+t[0]*t[2]+t[1]*t[2]}function ut(t,e,r){t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2]}function lt(t,e,r){t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2]}function ct(t,e,r){t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r}function ft(t,e,r=0){t[0]=e[r],t[1]=e[r+1],t[2]=e[r+2]}function dt(t,e,r){let n=e[0],a=e[1],i=e[2],s=r[0],h=r[1],o=r[2];t[0]=a*o-i*h,t[1]=i*s-n*o,t[2]=n*h-a*s}function mt(t,e){let r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2];if(r>0){let n=1/Math.sqrt(r);t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n}}function Mt(t){return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function gt(t,e){let r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2];return r*r+n*n+a*a}function vt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}class _t{constructor(t=u.uY,e=qt,r=h.zK){this._data=[t[0],t[1],t[2],e[0],e[1],e[2],r[0],r[1],r[2],r[3]]}clone(){return _t.fromData(this._data)}invalidate(){this._data[3]=-1}get isValid(){return this._data[3]>=0}static fromData(t){let e=new _t;return e._copyFromData(t),e}static fromJSON(t){return new _t(t.center,t.halfSize,t.quaternion)}copy(t){this._copyFromData(t.data)}_copyFromData(t){for(let e=0;e<10;++e)this._data[e]=t[e]}get centerX(){return this._data[0]}get centerY(){return this._data[1]}get centerZ(){return this._data[2]}getCenter(t){return t[0]=this._data[0],t[1]=this._data[1],t[2]=this._data[2],t}setCenter(t){this._data[0]=t[0],this._data[1]=t[1],this._data[2]=t[2]}setCenterFromValues(t,e,r){this._data[0]=t,this._data[1]=e,this._data[2]=r}get halfSizeX(){return this._data[3]}get halfSizeY(){return this._data[4]}get halfSizeZ(){return this._data[5]}getHalfSize(t){return t[0]=this._data[3],t[1]=this._data[4],t[2]=this._data[5],t}setHalfSize(t){this._data[3]=t[0],this._data[4]=t[1],this._data[5]=t[2]}setHalfSizeFromValues(t,e,r){this._data[3]=t,this._data[4]=e,this._data[5]=r}getQuaternion(t){return t[0]=this._data[6],t[1]=this._data[7],t[2]=this._data[8],t[3]=this._data[9],t}getQuaternionConjugate(t){return t[0]=-this._data[6],t[1]=-this._data[7],t[2]=-this._data[8],t[3]=this._data[9],t}setQuaternion(t){this._data[6]=t[0],this._data[7]=t[1],this._data[8]=t[2],this._data[9]=t[3]}get data(){return this._data}getCorners(t){let e=this._data,r=(0,s.hZ)(bt,e[6],e[7],e[8],e[9]);for(let n=0;n<8;++n){let a=t[n];a[0]=(1&n?-1:1)*e[3],a[1]=(2&n?-1:1)*e[4],a[2]=(4&n?-1:1)*e[5],(0,o.gL)(a,a,r),a[0]+=e[0],a[1]+=e[1],a[2]+=e[2]}return t}getAxes(t){let e=this._data,r=(0,s.hZ)(bt,e[6],e[7],e[8],e[9]);return(0,o.gL)(t[0],[1,0,0],r),(0,o.gL)(t[1],[0,1,0],r),(0,o.gL)(t[2],[0,0,1],r),t}intersectsFrustum(t){let{centerX:e,centerY:r,centerZ:n}=this,a=t.planes;for(let t of a){let a=(0,v.Qj)(t),i=this.projectedRadius(a);if(e*a[0]+r*a[1]+n*a[2]+t[3]-i>0)return!1}let i=this.getAxes(Bt),s=t.points,h=this.getHalfSize(Vt);for(let t=0;t<3;++t){let a=i[t],u=-a[0]*e-a[1]*r-a[2]*n,l=h[t],c=!0,f=!0;for(let t of s){let e=(0,o.Om)(t,a)+u;c&&=e>l,f&&=e<-l}if(c||f)return!1}if(this.getCorners(Lt).some(e=>t.intersectsPoint(e)))return!0;let u=Xt;for(let t=0;t<3;++t){let a=i[t];u[t]=a[0]*e+a[1]*r+a[2]*n}if(t.points.some(t=>(t=>{for(let e=0;e<3;++e){let r=i[e],n=h[e],a=r[0]*t[0]+r[1]*t[1]+r[2]*t[2]-u[e];if(a>n||a<-n)return!1}return!0})(t)))return!0;let l=t.lines,c=Wt;for(let t=0;t<8;++t){let a=l[t].direction;for(let t of i){(0,o.$A)(c,a,t);let i=(0,o.Il)(c);if(!(i>0))continue;(0,o.hs)(c,c,1/i);let h=this.projectedRadius(c),u=c[0]*e+c[1]*r+c[2]*n,l=u-h,f=u+h,d=!1,m=!1,M=!0;for(let t of s){let e=(0,o.Om)(c,t);if(e>f){if(m){M=!1;break}d=!0}else{if(!(e<l)){M=!1;break}if(d){M=!1;break}m=!0}}if(M)return!1}}return!0}intersectsFrustumConservativeApproximation(t){return this.intersectPlane(t[0])<=0&&this.intersectPlane(t[1])<=0&&this.intersectPlane(t[2])<=0&&this.intersectPlane(t[3])<=0&&this.intersectPlane(t[4])<=0&&this.intersectPlane(t[5])<=0}intersectsFrustumConservativeApproximationWithMargin(t,e){return this.signedDistanceRangePlane(t[0]).min<=e&&this.signedDistanceRangePlane(t[1]).min<=e&&this.signedDistanceRangePlane(t[2]).min<=e&&this.signedDistanceRangePlane(t[3]).min<=e&&this.signedDistanceRangePlane(t[4]).min<=e&&this.signedDistanceRangePlane(t[5]).min<=e}get radius(){let t=this._data[3],e=this._data[4],r=this._data[5];return Math.sqrt(t*t+e*e+r*r)}intersectsPoint(t){let e=this.getAxes(Bt),r=this.getHalfSize(Vt),n=this.getCenter(Rt);for(let a=0;a<3;++a){let i=e[a],s=r[a],h=(0,o.Om)(i,t)-(0,o.Om)(i,n);if(h>s||h<-s)return!1}return!0}intersectSphere(t){let{center:e,radius:r}=t,n=this._data,a=n[3],i=n[4],s=n[5],h=a+i+s+r,o=n[0]-e[0];if(Math.abs(o)>h)return!1;let u=n[1]-e[1];if(Math.abs(u)>h)return!1;let l=n[2]-e[2];if(Math.abs(l)>h)return!1;let c=-n[6],f=-n[7],d=-n[8],m=f*l-d*u,M=d*o-c*l,g=c*u-f*o,v=f*g-d*M,_=d*m-c*g,b=c*M-f*m,P=2*n[9],j=Math.abs(o+m*P+2*v),p=Math.abs(u+M*P+2*_),x=Math.abs(l+g*P+2*b),w=j-Math.min(j,a),C=p-Math.min(p,i),A=x-Math.min(x,s);return w*w+C*C+A*A<=r*r}intersectSphereWithMBS(t,e=this.radius){let r=this._data,{center:n,radius:a}=t,i=e+a,s=r[0]-n[0];if(s>i)return!1;let h=r[1]-n[1];if(h>i)return!1;let o=r[2]-n[2];if(o>i||s*s+h*h+o*o>i*i)return!1;let u=-r[6],l=-r[7],c=-r[8],f=l*o-c*h,d=c*s-u*o,m=u*h-l*s,M=l*m-c*d,g=c*f-u*m,v=u*d-l*f,_=2*r[9],b=Math.abs(s+f*_+2*M),P=Math.abs(h+d*_+2*g),j=Math.abs(o+m*_+2*v),p=b-Math.min(b,r[3]),x=P-Math.min(P,r[4]),w=j-Math.min(j,r[5]);return p*p+x*x+w*w<a*a}intersectPlane(t){let e=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],r=this.projectedRadius((0,v.Qj)(t));return e>r?1:e<-r?-1:0}intersectRay(t,e,r=0){let n=this._data,a=bt;a[0]=-n[6],a[1]=-n[7],a[2]=-n[8],a[3]=n[9],pt[0]=t[0]-n[0],pt[1]=t[1]-n[1],pt[2]=t[2]-n[2];let i=(0,o.gL)(pt,pt,bt),s=(0,o.gL)(xt,e,bt),h=-1/0,u=1/0,l=this.getHalfSize(Vt);for(let t=0;t<3;t++){let e=i[t],n=s[t],a=l[t]+r;if(Math.abs(n)>1e-6){let t=(a-e)/n,r=(-a-e)/n;h=Math.max(h,Math.min(t,r)),u=Math.min(u,Math.max(t,r))}else if(e>a||e<-a)return!1}return h<=u}projectedArea(t,e,r,a){let i=this.getQuaternion(Pt);(0,s.Xr)(bt,i),pt[0]=t[0]-this._data[0],pt[1]=t[1]-this._data[1],pt[2]=t[2]-this._data[2],(0,o.gL)(pt,pt,bt);let h=this.getHalfSize(Vt),u=pt[0]<-h[0]?-1:+(pt[0]>h[0]),c=pt[1]<-h[1]?-1:+(pt[1]>h[1]),f=pt[2]<-h[2]?-1:+(pt[2]>h[2]),d=Math.abs(u)+Math.abs(c)+Math.abs(f);if(0===d)return 1/0;let m=1===d?4:6,M=6*(u+3*c+9*f+13);(0,n.I0)(Ht,i),(0,n.hs)(Ht,Ht,h);let g=this.getCenter(Rt);for(let t=0;t<m;t++){let r=At[M+t];(0,o.hZ)(pt,((1&r)<<1)-1,(2&r)-1,((4&r)>>1)-1),(0,o.ei)(pt,pt,Ht),(0,o.WQ)(wt,g,pt),wt[3]=1,(0,l.Z0)(wt,wt,e);let n=1/Math.max(1e-6,wt[3]);Ct[2*t]=wt[0]*n,Ct[2*t+1]=wt[1]*n}let v=2*m-2,_=Ct[0]*(Ct[3]-Ct[v+1])+Ct[v]*(Ct[1]-Ct[v-1]);for(let t=2;t<v;t+=2)_+=Ct[t]*(Ct[t+3]-Ct[t-1]);return Math.abs(_)*r*a*.125}projectedRadius(t){let e=this._data;return(0,o.fw)(pt,t,-e[6],-e[7],-e[8],e[9]),Math.abs(pt[0]*e[3])+Math.abs(pt[1]*e[4])+Math.abs(pt[2]*e[5])}signedDistancePlane(t,e){let r=this._data,n=t[0]*r[0]+t[1]*r[1]+t[2]*r[2]+e,a=this.projectedRadius(t);return n>a?n-a:n<-a?n+a:0}signedDistanceRangePlane(t){let e=t[0]*this._data[0]+t[1]*this._data[1]+t[2]*this._data[2]+t[3],r=this.projectedRadius((0,v.Qj)(t));return{min:e-r,max:e+r}}toAaBoundingBox(t){let e=this.getQuaternion(Pt),r=(0,n.I0)(Ht,e),a=this._data[3]*Math.abs(r[0])+this._data[4]*Math.abs(r[3])+this._data[5]*Math.abs(r[6]),i=this._data[3]*Math.abs(r[1])+this._data[4]*Math.abs(r[4])+this._data[5]*Math.abs(r[7]),s=this._data[3]*Math.abs(r[2])+this._data[4]*Math.abs(r[5])+this._data[5]*Math.abs(r[8]);t[0]=this._data[0]-a,t[1]=this._data[1]-i,t[2]=this._data[2]-s,t[3]=this._data[0]+a,t[4]=this._data[1]+i,t[5]=this._data[2]+s}transform(t,e,r,n=0,a=(0,d.lO)(r),i=(0,d.lO)(e),h=(0,g.jd)(e,i)){if(r===a)e.isGeographic?function(t,e,r,n,a=(0,d.lO)(r)){let i=(0,f.tO)(r),h=1+Math.max(0,n)/(i.radius+t.centerZ);t.getCenter(Ot),Ot[2]+=n,(0,M.projectBuffer)(Ot,r,0,Ot,a,0),e.setCenter(Ot);let u=t.getQuaternion(Pt);e.setQuaternion(u),(0,s.Xr)(bt,u),(0,o.hZ)(Dt,0,0,1),(0,o.gL)(Dt,Dt,bt);let l=t.getHalfSize(Vt);(0,o.hZ)(Dt,l[0]*Math.abs(Dt[0]),l[1]*Math.abs(Dt[1]),l[2]*Math.abs(Dt[2])),(0,o.hs)(Dt,Dt,i.inverseFlattening),(0,o.WQ)(Dt,l,Dt),e.setHalfSize((0,o.hs)(Dt,Dt,h))}(this,t,e,n,i):function(t,e,r,n,a=(0,d.lO)(r),i=(0,g.jd)(r,a)){t.getCorners(Lt);let h=t.getCenter(Rt);h[2]+=n,(0,m.l)(r,h,It,a),e.setCenterFromValues(It[12],It[13],It[14]);let u=2*Math.sqrt(1+It[0]+It[5]+It[10]);bt[0]=(It[6]-It[9])/u,bt[1]=(It[8]-It[2])/u,bt[2]=(It[1]-It[4])/u,bt[3]=.25*u;let l=t.getQuaternion(Pt);e.setQuaternion((0,s.lw)(bt,bt,l)),(0,s.Xr)(bt,bt),(0,o.hZ)(Ft,0,0,0);let c=e.getCenter(Rt);for(let t of Lt)t[2]+=n,i(t,0,t,0),(0,o.jb)(Dt,t,c),(0,o.gL)(Dt,Dt,bt),(0,o.tn)(Dt,Dt),(0,o.T9)(Ft,Ft,Dt);e.setHalfSize(Ft)}(this,t,e,n,i,h);else if(e.isGeographic&&(r.isWebMercator||(0,_.r1)(r)))!function(t,e,r,n,a){let i=e.getCenter(Rt);i[2]+=a;let s=(0,d.lO)(r);(0,M.projectBuffer)(i,t,0,i,s,0),zt(s,e,i,r,n)}(e,this,r,t,n);else if(e.isWebMercator&&(0,_.r1)(r))!function(t,e,r,n,a){let i=e.getCenter(Rt);i[2]+=a,zt(t,e,i,r,n)}(e,this,r,t,n);else{let a=this.getCenter(Rt);a[2]+=n,(0,M.projectBuffer)(a,e,0,a,r,0),t.setCenter(a),this!==t&&(t.setQuaternion(this.getQuaternion(Pt)),t.setHalfSize(this.getHalfSize(Vt)))}}}const bt=(0,h.vt)(),Pt=(0,h.vt)(),jt=(0,h.vt)(),pt=(0,u.vt)(),xt=(0,u.vt)(),wt=(0,c.vt)();const Ct=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.2],At=(()=>{let t=new Int8Array(162),e=0,r=r=>{for(let n=0;n<r.length;n++)t[e+n]=r[n];e+=6};return r([6,2,3,1,5,4]),r([0,2,3,1,5,4]),r([0,2,3,7,5,4]),r([0,1,3,2,6,4]),r([0,1,3,2,0,0]),r([0,1,5,7,3,2]),r([0,1,3,7,6,4]),r([0,1,3,7,6,2]),r([0,1,5,7,6,2]),r([0,1,5,4,6,2]),r([0,1,5,4,0,0]),r([0,1,3,7,5,4]),r([0,2,6,4,0,0]),r([0,0,0,0,0,0]),r([1,3,7,5,0,0]),r([2,3,7,6,4,0]),r([2,3,7,6,0,0]),r([2,3,1,5,7,6]),r([0,1,5,7,6,2]),r([0,1,5,7,6,4]),r([0,1,3,7,6,4]),r([4,5,7,6,2,0]),r([4,5,7,6,0,0]),r([4,5,1,3,7,6]),r([0,2,3,7,5,4]),r([6,2,3,7,5,4]),r([6,2,3,1,5,4]),t})();function St(t,e,r,n,a){let i=t.getQuaternion(Pt);a.setQuaternion(i),(0,s.Xr)(bt,i);let h=t.getCenter(Rt),l=t.getHalfSize(Vt);if(1===n){(0,o.gL)(Dt,h,bt),(0,o.tn)(Ft,Dt),(0,o.jk)(Zt,Ft,l),(0,o.jb)(Zt,Ft,Zt);let n=(0,o.Bw)(Zt);(0,o.WQ)(Zt,Ft,l);let i=(0,o.Bw)(Zt);if(n<r)a.setCenter(h),(0,o.hZ)(Dt,r,r,r),a.setHalfSize((0,o.WQ)(Dt,l,Dt));else{let s=i>0?1+e/i:1,h=n>0?1+r/n:1,u=(h+s)/2,c=(h-s)/2;(0,o.hs)(Zt,Ft,c),a.setHalfSize((0,o.Ln)(Zt,Zt,l,u)),(0,o.hs)(Zt,Ft,u),(0,o.Ln)(Zt,Zt,l,c),(0,o._S)(Dt,Dt),(0,o.lw)(Dt,Zt,Dt);let f=t.getQuaternion(jt);a.setCenter((0,o.gL)(Dt,Dt,f))}}else{a.setCenter((0,o.Ln)(Dt,h,u.Cb,(r+e)/2));let t=(0,o.gL)(Dt,u.Cb,bt);(0,o.tn)(t,t),a.setHalfSize((0,o.Ln)(Ft,l,t,(r-e)/2))}return a}function zt(t,e,r,a,i){let s=e.getQuaternion(Pt),h=(0,n.I0)(Ht,s),o=e.getHalfSize(Vt);for(let t=0;t<8;++t){for(let e=0;e<3;++e)Ot[e]=o[e]*(t&1<<e?-1:1);for(let e=0;e<3;++e){let n=r[e];for(let t=0;t<3;++t)n+=Ot[t]*h[3*t+e];Qt[3*t+e]=n}}(0,M.projectBuffer)(Qt,t,0,Qt,a,0,8),function(t,e=new _t){(function(t,e){let{data:r,size:n}=t,a=r.length/n;if(a<=0)return;let i=new st(t);ut(p,i.minProj,i.maxProj),ct(p,p,.5),lt(x,i.maxProj,i.minProj);let s=ot(x),h=new ht;h.quality=s,a<14&&(t=new P.K(new Float64Array(i.buffer,112,42),3));let o=(0,u.vt)(),l=(0,u.vt)(),c=(0,u.vt)(),f=(0,u.vt)(),d=(0,u.vt)(),m=(0,u.vt)(),M=(0,u.vt)();switch(w(i,t,M,o,l,c,f,d,m,h)){case 1:return void K(p,x,e);case 2:return void G(t,f,e)}R(t,M,o,l,c,f,d,m,h),J(t,h.b0,h.b1,h.b2,$,N);let g=(0,u.vt)();lt(g,N,$),h.quality=ot(g),h.quality<s?it(h.b0,h.b1,h.b2,$,N,g,e):K(p,x,e)})(t,e)}(yt,i)}const qt=(0,u.CN)(-1,-1,-1),Qt=Array(24),yt=new P.K(Qt,3),Ot=(0,u.vt)(),Rt=(0,u.vt)(),Vt=(0,u.vt)(),Ht=(0,a.vt)(),It=(0,i.vt)(),Lt=[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],Bt=[(0,u.vt)(),(0,u.vt)(),(0,u.vt)()],Dt=(0,u.vt)(),Ft=(0,u.vt)(),Zt=(0,u.vt)(),Wt=(0,u.vt)(),Xt=[0,0,0]},46610(t,e,r){r.d(e,{K:()=>n,n:()=>a});class n{constructor(t,e,r=e){this.data=t,this.size=e,this.stride=r}}class a extends n{constructor(t,e,r,n=!1,a=r){super(t,r,a),this.indices=e,this.exclusive=n}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,2938,3312,5853],{52106(e,t,r){r.d(t,{A:()=>M});var i,n,o=r(32198),l=r(37838),s=r(69540),a=r(51447),u=r(25482),p=r(53966),c=r(36708),d=r(24326),y=r(91429),g=r(12195),f=r(65864),h=r(50498),m=r(55156),b=r(60950),v=r(54339),w=r(94128),x=r(33910);const S=Symbol("meshGeometryHandles");function C(e){if(null==e)return null;let t={};for(let r in e){let i=e[r];i&&(t[r]=i.toJSON())}return 0===Object.keys(t).length?null:t}let M=class extends((0,s.OU)(u.o)){static{i=w.Z}static{n=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(p.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){let t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){let t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){let t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){let t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){let t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){let t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;let t=(0,b.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;let r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(let t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){let r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){let e=(0,m.I)(this.origin);if(e)return(0,v.r)(this,e);let t=this.sourceLayer??this.layer;return t?(0,v.r)(this,t):null}getGlobalId(){let e=(0,m.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);let t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){let e={aggregateGeometries:C(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){let{geometry:t}=this;if("mesh"===t?.type){let r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;let n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.removeHandles(S);let e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,c.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{(this._lastMeshTransform.localMatrix!==e||this._lastMeshTransform.origin!==t)&&(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],S)}};(0,o.Cg)([(0,y.MZ)({value:null,json:{read:function(e){if(!e)return null;let t={};for(let r in e){let i=(0,f.rS)(e[r]);i&&(t[r]=i)}return 0===Object.keys(t).length?null:t}}})],M.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,y.MZ)({value:null})],M.prototype,"attributes",null),(0,o.Cg)([(0,y.MZ)({value:null,types:h.yR,json:{read:f.rS}})],M.prototype,"geometry",null),(0,o.Cg)([(0,y.MZ)()],M.prototype,"distance",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,o.Cg)([(0,y.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,o.Cg)([(0,y.MZ)({type:l.A,value:null})],M.prototype,"popupTemplate",null),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,y.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],M.prototype,"statisticsAggregatedIds",void 0),(0,o.Cg)([(0,y.MZ)({value:null,types:x.Es})],M.prototype,"symbol",null),(0,o.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=n=(0,o.Cg)([(0,y.$K)("esri.Graphic")],M)},19334(e,t,r){r.d(t,{e:()=>l});var i=r(54639),n=r(14112);class o{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function l(e){if(null==e)return null;switch(e.type){case"point":if((0,n.e6)(e))return null;break;case"polygon":if((0,n.Wq)(e))return null;break;case"polyline":if((0,n.IY)(e))return null;break;case"multipoint":if((0,n.DG)(e))return null;break;case"extent":if((0,n.As)(e))return null;break;default:return null}let t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new o(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>u,p:()=>p});var i=r(54639),n=r(14112),o=r(16930),l=r(60408),s=r(65864);class a{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){let t=(0,s.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(e,t){if("object"!=typeof e||!e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof o.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new o.A,r.read(e.spatialReference))),null==r)throw Error("Spatial reference required");return(0,l.fT)(e)?p("point",e,r):(0,l.Rg)(e)?p("polyline",e,r):(0,l.Bi)(e)?p("polygon",e,r):(0,l.U9)(e)?p("multipoint",e,r):(0,l.ZC)(e)?p("extent",e,r):null}function p(e,t,r){if(null==t)return null;let o=!1,l=!1;switch(e){case"point":if((0,n.e6)(t))return null;o=void 0!==t.z,l=void 0!==t.m;break;case"polygon":if((0,n.Wq)(t))return null;o=!0===t.hasZ,l=!0===t.hasM;break;case"polyline":if((0,n.IY)(t))return null;o=!0===t.hasZ,l=!0===t.hasM;break;case"multipoint":if((0,n.DG)(t))return null;o=!0===t.hasZ,l=!0===t.hasM;break;case"extent":if((0,n.As)(t))return null;o=null!=t.zmin&&null!=t.zmax,l=null!=t.mmin&&null!=t.mmax;break;default:throw Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,o,l,new a(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function n(e){if(0===(e.curveRings??e.rings).length)return!0;for(let t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function o(e){if(0===(e.curvePaths??e.paths).length)return!0;for(let t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function l(e){return 0===e.points.length}function s(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>s,DG:()=>l,IY:()=>o,Wq:()=>n,e6:()=>i})},46140(e,t,r){r.d(t,{A:()=>n});var i=r(49186);class n{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new i.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new n(this.major,this.minor,this._context)}static parse(e,t=""){let[r,o]=e.split("."),l=/^\s*\d+\s*$/;if(!r?.match||!l.test(r)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!o?.match||!l.test(o)){let r=t&&t+":";throw new i.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new n(parseInt(r,10),parseInt(o,10),t)}}},6797(e,t,r){r.d(t,{Ui:()=>d});var i=r(69622),n=r(7762),o=r(88620);const l=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function s(e){return e instanceof i.A}function a(e){return e instanceof n.A?Object.keys(e.items):s(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof n.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function c(e,t){let r=e.diff;if(r&&"function"==typeof r)return r(e,t);let i=a(e),n=a(t);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};let o=n.filter(e=>!i.includes(e)),d=i.filter(e=>!n.includes(e)),y=i.filter(r=>n.includes(r)&&u(e,r)!==u(t,r)).concat(o,d).sort(),g=p(e);if(g&&l.has(g)&&y.length)return{type:"complete",oldValue:e,newValue:t};let f,h=s(e)&&s(t);for(let i of y){let n,o=u(e,i),l=u(t,i);if((h||"function"!=typeof o&&"function"!=typeof l)&&o!==l&&(null!=o||null!=l)){if(r&&r[i]&&"function"==typeof r[i])n=r[i]?.(o,l);else if(o instanceof Date&&l instanceof Date){if(o.getTime()===l.getTime())continue;n={type:"complete",oldValue:o,newValue:l}}else n="object"==typeof o&&"object"==typeof l&&p(o)===p(l)?c(o,l):{type:"complete",oldValue:o,newValue:l};null!=n&&(null==f?f={type:"partial",diff:{[i]:n}}:f.diff[i]=n)}}return f}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},13069(e,t,r){r.d(t,{AG:()=>s,lk:()=>n,vD:()=>l,yS:()=>o});const i="randomUUID"in crypto;function n(){if(i)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${n().toUpperCase()}}`}function l(){return`{${n()}}`}function s(e){let t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},55156(e,t,r){r.d(t,{I:()=>n});const i=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},54339(e,t,r){function i(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{let r=[];for(let i of t.fieldNames)r.push(e.attributes[i]??null);return JSON.stringify(r)}}}function n(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];let r=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(r)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}r.d(t,{W:()=>i,r:()=>n})},52136(e,t,r){var i=r(32198),n=r(91429);r.d(t,["p",0,e=>{let t=e,r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null==e?(this._clearOverride("apiKey"),this.clear("apiKey","user")):this._override("apiKey",e)}};return(0,i.Cg)([(0,n.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},32756(e,t,r){r.d(t,{Rr:()=>s});var i=r(32198),n=r(93637),o=r(91429),l=r(91880);function s(e,t,r){if(!e)return null;let i=e.find(e=>!!e.field);if(!i)return null;let n=new l.A;return n.read(i,r),[n]}const a={type:[l.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:s},write:{writer:function(e,t,r,i){let o=e.find(e=>!!e.field);o&&(0,n.sM)(r,[o.toJSON()],t)}}}};r.d(t,["fY",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,i.Cg)([(0,o.MZ)(a)],r.prototype,"orderBy",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,a])},28032(e,t,r){r.d(t,{A:()=>a});var i=r(32198),n=r(69540),o=r(25482),l=r(91429),s=r(56400);let a=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,i.Cg)([(0,l.MZ)()],a.prototype,"creatorField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"creationDateField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"editorField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"editDateField",void 0),(0,i.Cg)([(0,l.MZ)()],a.prototype,"realm",void 0),(0,i.Cg)([(0,l.MZ)((0,s.P6)("dateFieldsTimeReference",!0))],a.prototype,"timeZone",void 0),a=(0,i.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],a)},29005(e,t,r){r.d(t,{A:()=>u});var i=r(32198),n=r(69540),o=r(66552),l=r(25482),s=r(91429);const a=new o.J({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],u.prototype,"drawingTool",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,i.Cg)([(0,s.MZ)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,i.Cg)([(0,s.$K)("esri.layers.support.FeatureTemplate")],u)},33143(e,t,r){r.d(t,{A:()=>c});var i=r(32198),n=r(69540),o=r(25482),l=r(91429),s=r(8631),a=r(29005),u=r(36005),p=r(43937);let c=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){let t={};for(let r of Object.keys(e))t[r]=(0,s.r)(e[r]);return t}writeDomains(e,t){let r={};for(let t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],c.prototype,"id",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],c.prototype,"name",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],c.prototype,"domains",void 0),(0,i.Cg)([(0,u.w)("domains")],c.prototype,"readDomains",null),(0,i.Cg)([(0,p.K)("domains")],c.prototype,"writeDomains",null),(0,i.Cg)([(0,l.MZ)({type:[a.A],json:{write:!0}})],c.prototype,"templates",void 0),c=(0,i.Cg)([(0,l.$K)("esri.layers.support.FeatureType")],c)},46499(e,t,r){r.d(t,{A:()=>M});var i,n,o=r(32198),l=(r(44208),r(66552)),s=r(25482),a=r(4718),u=r(90629),p=r(91429),c=r(90360),d=r(73913),y=r(32730),g=r(77548),f=r(59868),h=r(73838),m=r(33910),b=r(36005),v=r(43937);const w=new l.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function x(e,t,r){return{enabled:!(0,g.TU)(r?.layer)}}function S(e){return!e||"service"!==e.origin&&"map-image"!==e.layer?.type}function C(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let M=class extends s.o{static{i=y.vK}static{n=this}static evaluateWhere(e,t){let r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;let i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){let e=r(t[i[0]],i[1],i[2]),n=i[3],o=r(t[i[4]],i[5],i[6]);switch(n){case"AND":return e&&o;case"OR":return e||o}}return!1}catch{}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.offsetDistance=0,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=f.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){let r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,y.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){let t=(0,y.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&S(i))e=new d.A({expression:this.getLabelExpressionArcade()});else if(!e)return;let n=e.toJSON(i);n.expression&&(t[r]=n)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,y.XJ)(this)}getLabelExpressionArcade(){return(0,y.BI)(this)}getLabelExpressionSingleField(){return(0,y.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new n({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,offsetDistance:this.offsetDistance,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"name",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:x}}}}})],M.prototype,"allowOverrun",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:x}}}}})],M.prototype,"deconflictionStrategy",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&C(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],M.prototype,"labelExpression",void 0),(0,o.Cg)([(0,b.w)("labelExpression")],M.prototype,"readLabelExpression",null),(0,o.Cg)([(0,v.K)("labelExpression")],M.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,p.MZ)({type:d.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return S(e)||C(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],M.prototype,"labelExpressionInfo",void 0),(0,o.Cg)([(0,v.K)("labelExpressionInfo")],M.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,p.MZ)({type:w.apiValues,json:{type:w.jsonValues,read:w.read,write:w.write}})],M.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{read:!0,write:!0,default:0,origins:{"web-scene":{write:!1}}}})],M.prototype,"offsetDistance",void 0),(0,o.Cg)([(0,p.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],M.prototype,"labelPosition",void 0),(0,o.Cg)([(0,p.MZ)({type:Number})],M.prototype,"maxScale",void 0),(0,o.Cg)([(0,v.K)("maxScale")],M.prototype,"writeMaxScale",null),(0,o.Cg)([(0,p.MZ)({type:Number})],M.prototype,"minScale",void 0),(0,o.Cg)([(0,v.K)("minScale")],M.prototype,"writeMinScale",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:x}}}}})],M.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:x}}}}})],M.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,p.MZ)({types:m.em,json:{types:m.em,origins:{"portal-item":{types:m.em,read:{reader:(0,c.C)({types:m.em})},default:null},"web-scene":{types:m.Rv,read:{reader:(0,c.C)({types:m.Rv})},write:h.oO,default:null}},write:h.oO,default:null}})],M.prototype,"symbol",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"where",void 0),M=n=(0,o.Cg)([(0,p.$K)("esri.layers.support.LabelClass")],M)},73913(e,t,r){r.d(t,{A:()=>p});var i,n=r(32198),o=r(25482),l=r(91429),s=r(32730),a=r(36005),u=r(43937);let p=class extends o.o{static{i=this}constructor(e){super(e),this.name=null,this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,s.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,s.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({name:this.name,expression:this.expression,title:this.title,value:this.value})}};(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"name",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"expression",void 0),(0,n.Cg)([(0,a.w)("expression",["expression","value"])],p.prototype,"readExpression",null),(0,n.Cg)([(0,u.K)("expression")],p.prototype,"writeExpression",null),(0,n.Cg)([(0,l.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"title",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!1,write:!1}})],p.prototype,"value",void 0),p=i=(0,n.Cg)([(0,l.$K)("esri.layers.support.LabelExpressionInfo")],p)},37352(e,t,r){r.d(t,{A:()=>a});var i,n=r(32198),o=r(7762),l=r(25482),s=r(91429);let a=i=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new o.A}clone(){return new i({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],a.prototype,"floorField",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllMode",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],a.prototype,"viewAllLevelIds",void 0),a=i=(0,n.Cg)([(0,s.$K)("esri.layers.support.LayerFloorInfo")],a)},91880(e,t,r){r.d(t,{A:()=>u});var i,n=r(32198),o=r(66552),l=r(25482),s=r(91429);const a=new o.J({asc:"ascending",desc:"descending"});let u=class extends l.o{static{i=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n.Cg)([(0,s.MZ)({type:a.apiValues,json:{type:a.jsonValues,read:a.read,write:a.write}})],u.prototype,"order",void 0),u=i=(0,n.Cg)([(0,s.$K)("esri.layers.support.OrderByInfo")],u)},45067(e,t,r){r.d(t,{A:()=>p});var i=r(32198),n=r(69540),o=r(66552),l=r(25482),s=r(91429);const a=new o.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),u=new o.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let p=class extends((0,n.OU)(l.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,i.Cg)([(0,s.MZ)({json:{read:a.read,write:a.write}})],p.prototype,"cardinality",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"catalogID"}})],p.prototype,"catalogId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"composite",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"id",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyField",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"keyFieldInRelationshipTable",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"name",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"relatedTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!0,write:!0}})],p.prototype,"relationshipTableId",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:u.read,write:u.write}})],p.prototype,"role",void 0),p=(0,i.Cg)([(0,s.$K)("esri.layers.support.Relationship")],p)},41560(e,t,r){r.d(t,{Ch:()=>l,mW:()=>o});var i=r(34727),n=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function l(e,t,r){let o=function(e){if("manual"===u(e))return null;let t=[-1/0,1/0];for(let{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],p(r)),t[1]=Math.min(t[1],c(i));return t}(e);if(o&&((0,i.gg)(t,o[0])||(0,i.ZH)(r,o[1])))return"";let l=Array.from(s(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;let n=p(e.at(0)?.minScale),o=c(e.at(-1)?.maxScale);if((0,i.ZH)(n,t)||(0,i.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){let r=e[t],n=e[t+1];if((0,i.ZH)(p(n.minScale),c(r.maxScale)))return!0}return!1}(l,t,r)?"1=1":l.map(e=>e.where||"1=1").reduce((e,t)=>(0,n.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*s(e,t,r){if("manual"===u(e)){let t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(let i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,n){return e=p(e),r=p(r),t=c(t),!(!(0,i.Sp)(r,e)&&(n??r)>e||(0,i.Hx)(t,r)||void 0!==n&&(0,i.Sp)(n,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||1/0}function c(e){return e||0}},32730(e,t,r){r.d(t,{BI:()=>c,D3:()=>u,XJ:()=>p,lc:()=>a,mX:()=>y,rU:()=>d,tH:()=>b,zA:()=>w});var i=r(799);const n=RegExp("__begin__","ig"),o=RegExp("__end__","ig"),l=RegExp("^__begin__","i"),s=RegExp("__end__$","i");function a(e){return e.replaceAll(RegExp("\\[","g"),"{").replaceAll(RegExp("\\]","g"),"}")}function u(e){return e.replaceAll(RegExp("\\{","g"),"[").replaceAll(RegExp("\\}","g"),"]")}function p(e){let t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=a(e.labelExpression),t.type="conventional"),t}function c(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return y(t.expression);case"arcade":return t.expression}return null}function d(e){let t=p(e);if(!t)return null;switch(t.type){case"conventional":return function(e){return(e?.match(g))?.[1].trim()||null}(t.expression);case"arcade":return b(t.expression)}return null}function y(e){let t;return e?(t=(0,i.HC)(e,e=>'__begin__$feature["'+e+'"]__end__'),t=l.test(t)?t.replace(l,""):'"'+t,t=s.test(t)?t.replace(s,""):t+'"',t=t.replaceAll(n,'" + ').replaceAll(o,' + "')):t='""',t}const g=/^\s*\{([^}]+)\}\s*$/i,f=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,h=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,m=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function b(e){if(!e)return null;let t=f.exec(e)||h.exec(e);return t?t[1]||t[3]:(t=m.exec(e),t?t[2]:null)}const v=Symbol("LabelClassInstance");function w(e){return"object"==typeof e&&!!e&&v in e}r.d(t,["vK",0,v])},39383(e,t,r){r.d(t,{w:()=>a,z:()=>c});var i=r(49186),n=r(53966),o=r(46499);const l=()=>n.A.getLogger("esri.layers.support.labelingInfo"),s=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{let i=new o.A;if(i.read(e,r),i.labelExpression){let e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(s,(t,r)=>`[${function(e,t){if(!t)return e;let r=e.toLowerCase();for(let e=0;e<t.length;e++){let i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],p={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function c(e,t){let r=[];for(let n of e){let e=n.labelPlacement,o=p[t];if(!n.symbol)return l().warn("No ILabelClass symbol specified."),[];if(!o)return l().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(n);else{let i=o[0];e&&l().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);let s=n.clone();s.labelPlacement=i,r.push(s)}}return r}},73681(e,t,r){r.d(t,{n:()=>a});var i=r(49186),n=r(53966),o=r(46140),l=r(95466),s=r(55674);class a{static async from(e,t,r){let l=e.dictionary_version?o.A.parse(e.dictionary_version):null,p=new Set(e.itemsNames),c={};if(t)for(let e in t)c[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)c.hasOwnProperty(t.name)||(c[t.name]=t.value);let d=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))d.delete(e);d.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});let y=await(0,s.xR)(e.expression,null,c);if(!y)throw new i.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let g=!l||!l.greaterEqual(4,0);g&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:l});let f=new u(r,g);return new a(g,p,y,f)}constructor(e,t,r,i){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=i}get itemNames(){return this._itemNames}evaluate(e,t,r,i){try{return this._reader.bind(e,r,i),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new l.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new l.A(t)}}class u extends s.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},22671(e,t,r){r.d(t,{A:()=>b});var i,n=r(32198),o=r(52106),l=r(66552),s=r(25482),a=r(4718),u=r(91429),p=r(16930),c=r(60408),d=r(65864),y=r(50498),g=r(20437),f=r(36005),h=r(43937);const m=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let b=i=class extends s.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,r,i){if(e)return void m.write(e,t,r,i);let{features:n}=this;if(n)for(let e of n)if(null!=e?.geometry)return void m.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;let r=!!e.spatialReference,i=(0,d.rS)(e);return i&&!r&&t.spatialReference&&(i.spatialReference=p.A.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());let{features:r}=this;if(r)for(let e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){let t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){let i=t.features[r];i.geometry&&=(e?.[r])?.toJSON()||i.geometry}return t}quantize(e){let{scale:[t,r],translate:[i,n]}=e,o=this.features,l=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-i)/t),e=>Math.round((n-e)/r));for(let e=0,t=o.length;e<t;e++)l?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){let{geometryType:e,features:t,transform:r}=this;if(!r)return this;let{translate:[i,n],scale:[o,l]}=r,s=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){let{translate:[,,e],scale:[,,t]}=r;s=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){let{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}let u=this._getHydrationFunction(e,e=>e*o+i,e=>n-e*l,s,a);for(let{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){let i=p.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){let o=e[t],l=r.fromJSON(o),s=o.geometry?.spatialReference;null!=l.geometry&&!s&&(l.geometry.spatialReference=i);let a=o.aggregateGeometries,u=l.aggregateGeometries;if(a&&null!=u)for(let e in u){let t=u[e],r=a[e]?.spatialReference;null!=t&&!r&&(t.spatialReference=i)}n.push(l)}return n}_quantizePoints(e,t,r){let i,n,o=[];for(let l=0,s=e.length;l<s;l++){let s=e[l];if(l>0){let e=t(s[0]),l=r(s[1]);(e!==i||l!==n)&&(o.push([e-i,l-n]),i=e,n=l)}else i=t(s[0]),n=r(s[1]),o.push([i,n])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{let i=(0,c.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,o=i.length;e<o;e++){let o=i[e],l=this._quantizePoints(o,t,r);l&&n.push(l)}return n.length>0?((0,c.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{let i=this._quantizePoints(e.points,t,r);return i&&i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,i,n){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),i&&(e.z=i(e.z))}:"polyline"===e||"polygon"===e?e=>{let o,l,s=(0,c.Bi)(e)?e.rings:e.paths;for(let e=0,i=s.length;e<i;e++){let i=s[e];for(let e=0,n=i.length;e<n;e++){let n=i[e];e>0?(o+=n[0],l+=n[1]):(o=n[0],l=n[1]),n[0]=t(o),n[1]=r(l)}}if(i&&n)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2]),r[3]=n(r[3])}}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=i(r[2])}}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];for(let e=0,r=t.length;e<r;e++){let r=t[e];r[2]=n(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),i&&null!=e.zmax&&null!=e.zmin&&(e.zmax=i(e.zmax),e.zmin=i(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{let o,l,s=e.points;for(let e=0,i=s.length;e<i;e++){let i=s[e];e>0?(o+=i[0],l+=i[1]):(o=i[0],l=i[1]),i[0]=t(o),i[1]=r(l)}if(i&&n)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2]),t[3]=n(t[3])}else if(i)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=i(t[2])}else if(n)for(let e=0,t=s.length;e<t;e++){let t=s[e];t[2]=n(t[2])}}:null}};(0,n.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"displayFieldName",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"exceededTransferLimit",void 0),(0,n.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],b.prototype,"features",void 0),(0,n.Cg)([(0,f.w)("features")],b.prototype,"readFeatures",null),(0,n.Cg)([(0,u.MZ)({type:[g.A],json:{write:!0}})],b.prototype,"fields",void 0),(0,n.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:m.read}}})],b.prototype,"geometryType",void 0),(0,n.Cg)([(0,h.K)("geometryType")],b.prototype,"writeGeometryType",null),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasM",void 0),(0,n.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],b.prototype,"hasZ",void 0),(0,n.Cg)([(0,u.MZ)({types:y.yR,json:{write:!0}})],b.prototype,"queryGeometry",void 0),(0,n.Cg)([(0,f.w)("queryGeometry")],b.prototype,"readQueryGeometry",null),(0,n.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),(0,n.Cg)([(0,h.K)("spatialReference")],b.prototype,"writeSpatialReference",null),(0,n.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"transform",void 0),b=i=(0,n.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],b),b.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var i=r(32198),n=r(66552),o=r(53966),l=r(91429),s=r(93223);const a=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="field";r.d(t,["K",0,e=>{let t=e,r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType"),t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&p||r&&u||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):(e===p||e===u)&&(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,s.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},93470(e,t,r){const i=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,n,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7982],{27982(e,a,r){r.r(a),r.d(a,{fromUrl:()=>f,isGaussianSplat3DTilesUrl:()=>p});var t=r(49186),l=r(84952),n=r(60694),s=r(92009),i=r(23154),o=r(2976),u=r(77548),y=r(7861);const c={FeatureLayer:!0,SceneLayer:!0,VideoLayer:!0};async function f(e){let{properties:a,url:t}=e,l={...a,url:t},n=await w(t,a?.customParameters),{Constructor:s,layerId:i,sourceJSON:o,parsedUrl:u,layers:y,tables:c}=n;if(y.length+c.length===0)return null!=i&&(l.layerId=i),null!=o&&(l.sourceJSON=o),new s(l);let f=new(0,(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6569)]).then(()=>r(85989))).default)({title:u.title});return await async function(e,a,r){let t=a.sublayerConstructorProvider;for(let{id:l,serverUrl:n}of a.layers){let s=d(a.layerInfos,l),i=m(n,l,s,(s&&t?.(s))??a.Constructor,r);e.add(i)}if(a.tables.length){let t=await h("FeatureLayer");a.tables.forEach(({id:l,serverUrl:n})=>{let s=m(n,l,d(a.tableInfos,l),t,r);e.tables.add(s)})}}(f,n,l),f}function d(e,a){return e?e.find(({id:e})=>e===a):null}function m(e,a,r,t,l){let n={...l,layerId:a};return null!=e&&(n.url=e),null!=r&&(n.sourceJSON=r),"sublayerTitleMode"in t.prototype&&(n.sublayerTitleMode="service-name"),new t(n)}async function w(e,a){let r=(0,n.qg)(e);if(r??=await async function(e,a){let r=await(0,y.L)(e,{customParameters:a}),t=null,s=null,i=r.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=r.id??null):"indexedVector"===i?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":L(r)?(t="SceneServer",s=r.id):r.hasOwnProperty("layers")&&L(r.layers?.[0])&&(t="SceneServer"),!t)return null;let o=null==s?null:(0,n.iz)(e);return{title:null!=o&&r.name||(0,l.e7)(e),serverType:t,sublayer:s,url:{path:null==o?(0,l.An)(e).path:o.serviceUrl}}}(e,a),null==r)throw new t.A("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});let o,{serverType:f,sublayer:d}=r,m={FeatureServer:"FeatureLayer",KnowledgeGraphServer:"KnowledgeGraphLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer",VideoServer:"VideoLayer"},w="FeatureServer"===f,S="SceneServer"===f,v={parsedUrl:r,Constructor:null,layerId:w||S?d??void 0:void 0,layers:[],tables:[]};switch(f){case"MapServer":if(null!=d){let{type:r}=await(0,y.L)(e,{customParameters:a});switch(o="FeatureLayer",r){case"Annotation Layer":o="AnnotationFeatureLayer";break;case"Dimension Layer":o="DimensionFeatureLayer";break;case"Catalog Layer":o="CatalogLayer";break;case"Annotation SubLayer":case"Catalog Dynamic Group Layer":throw new t.A("arcgis-layers:unsupported",`fromUrl() does not support "${r}" type`)}}else o=await async function(e,a){return(await(0,y.L)(e,{customParameters:a})).tileInfo}(e,a)?"TileLayer":"MapImageLayer";break;case"ImageServer":{let{tileInfo:r,cacheType:t}=await(0,y.L)(e,{customParameters:a});o=r?"LERC"!==r?.format?.toUpperCase()||t&&"elevation"!==t.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{let e=await(0,y.L)(r.url.path,{customParameters:a});if(o="SceneLayer",e){let a=e?.layers;if("Voxel"===e?.layerType)o="VoxelLayer";else if(a?.length){let e=a[0]?.layerType;null!=e&&null!=u.XX[e]&&(o=u.XX[e])}}break}case"3DTilesServer":o=await p(e,a)?"GaussianSplatLayer":"IntegratedMesh3DTilesLayer";break;case"FeatureServer":if(o="FeatureLayer",null!=d){let r=await(0,y.L)(e,{customParameters:a});v.sourceJSON=r,v.preferredUrl=(0,u.$x)();let l=(0,i.Jo)(r.type);if(!l)throw new t.A("arcgis-layers:unsupported",`fromUrl() does not support "${r.type}" type`);o=l}break;default:o=m[f]}if(c[o]&&null==d){let r=await async function(e,a,r){let t,l,n,o,c;switch(a){case"FeatureServer":{let a=await(0,i.QM)(e,{customParameters:r});n=(0,u.$x)(e,{preferredHost:a.preferredHost});let l=!!a.layersJSON,s=a.layersJSON||a.serviceJSON;o=l?s?.layers:[],c=l?s?.tables:[],t=s;break}case"SceneServer":{let a=await async function(e,a){let r=await(0,y.L)(e,{customParameters:a});if(!r.layers?.[0])return{serviceInfo:r};try{let{serverUrl:t}=await(0,s.L)(e),l=await(0,y.L)(t,{customParameters:a}).catch(()=>null);return l&&(r.tables=l.tables),{serviceInfo:r,tableServerUrl:t}}catch{return{serviceInfo:r}}}(e,r);t=a.serviceInfo,l=a.tableServerUrl;break}default:t=await(0,y.L)(e,{customParameters:r})}return{preferredUrl:n,layers:t?.layers?.map(e=>({id:e.id})).reverse()||[],tables:t?.tables?.map(e=>({serverUrl:l,id:e.id})).reverse()||[],layerInfos:o,tableInfos:c}}(e,f,a),l=r.layers.length+r.tables.length;if(w){if(0===l)throw new t.A("arcgis-layers:no-data",`The feature service '${e}' does not have any supported layers or tables`);v.preferredUrl=r.preferredUrl,v.layerInfos=r.layerInfos,v.tableInfos=r.tableInfos}if(1!==l)v.layers=r.layers,v.tables=r.tables,w&&r.layerInfos?.length&&(v.sublayerConstructorProvider=await async function(e){if(!e.length)return;let a=new Set,r=[];for(let{type:t}of e)a.has(t)||(a.add(t),r.push(h((0,i.Jo)(t))));let t=await Promise.all(r),l=new Map;return Array.from(a).forEach((e,a)=>{l.set(e,t[a])}),e=>l.get(e.type)}(r.layerInfos));else if(w||S){let e=r.layerInfos?.[0]??r.tableInfos?.[0];v.layerId=r.layers[0]?.id??r.tables[0]?.id,v.sourceJSON=e,w&&(o=(0,i.Jo)(e?.type))}}return v.Constructor=await h(o),v}function L(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}async function h(e){return(0,o.U[e])()}async function p(e,a){return!0===((await(0,y.L)(e,{customParameters:a})).extensions?.["3DTILES_content_gltf"])?.extensionsRequired?.includes("KHR_gaussian_splatting")}},92009(e,a,r){r.d(a,{L:()=>y});var t=r(70333),l=r(56507),n=r(49186),s=r(17676),i=r(60694),o=r(20655),u=r(80812);async function y(e,a){let r=(0,i.qg)(e);if(!r)throw new n.A("invalid-url","Invalid scene service url");let y={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(y.sceneLayerItem??=await async function(e){let a=(await c(e)).serviceItemId;if(!a)return null;let r=new u.default({id:a,apiKey:e.apiKey}),n=await async function(e){let a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;let r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{let a=(await(0,l.A)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,s.QP)(e)}return null}(e);null!=n&&(r.portal=new o.A({url:n}));try{return await r.load({signal:e.signal})}catch(e){return(0,s.QP)(e),null}}(y),null==y.sceneLayerItem)return f(y.sceneServerUrl.replace("/SceneServer","/FeatureServer"),y);let d=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{let r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!r)return null;let t=new u.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,s.QP)(e),null}}(y);if(!d?.url)throw new n.A("related-service-not-found","Could not find feature service through portal item relationship");y.featureServiceItem=d;let m=await f(d.url,y);return m.portalItem=d,m}async function c(e){if(e.rootDocument)return e.rootDocument;let a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{e.rootDocument=(await(0,l.A)(e.sceneServerUrl,a)).data}catch{e.rootDocument={}}return e.rootDocument}async function f(e,a){let r=(0,i.qg)(e);if(!r)throw new n.A("invalid-feature-service-url","Invalid feature service url");let t=r.url.path,s=a.layerId;if(null==s)return{serverUrl:t};let o=c(a),u=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,y=(u?.layers?.[0]||u?.tables?.[0])?.customParameters,f=e=>{let r={query:{f:"json",...y},responseType:"json",authMode:e,signal:a.signal};return(0,l.A)(t,r)},d=f("anonymous").catch(()=>f("no-prompt")),[m,w]=await Promise.all([d,o]),L=w?.layers,h=m.data&&m.data.layers;if(!Array.isArray(h))throw Error("expected layers array");if(Array.isArray(L)){for(let e=0;e<Math.min(L.length,h.length);e++)if(L[e].id===s)return{serverUrl:t,layerId:h[e].id}}else if(null!=s&&s<h.length)return{serverUrl:t,layerId:h[s].id};throw Error("could not find matching associated sublayer")}},23154(e,a,r){r.d(a,{A6:()=>i,Aq:()=>w,Jo:()=>m,QM:()=>s});var t=r(77548),l=r(7861);const n=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,a){let{serviceJSON:r,layersJSON:t,...l}=await i(e,a);y(r);let n={serviceJSON:r,...l};return t&&(y(t),n.layersJSON=t),n}async function i(e,a){let{loadContext:r,...n}=a||{},s=r?await r.fetchServiceMetadata(e,n):await(0,l.L)(e,n),i=(0,t.G$)();d(s);let o={serviceJSON:s,preferredHost:i};if((s.currentVersion??0)<10.5)return o;let u=`${(0,t.$x)()??e}/layers`,y=r?await r.fetchServiceMetadata(u,n):await(0,l.L)(u,n);return d(y),o.layersJSON={layers:y.layers,tables:y.tables},o}function o(e){return n.has(e.type)}function u(e){return"Table"===e.type}function y(e){e.layers=e.layers?.filter(o),e.tables=e.tables?.filter(u)}function c(e){e.type||="Feature Layer"}function f(e){e.type||="Table"}function d(e){e.layers?.forEach(c),e.tables?.forEach(f)}function m(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function w(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,a,r){const t={AnnotationFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(2889),r.e(4674),r.e(5087),r.e(7537)]).then(()=>r(20737))).default,BingMapsLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(6554),r.e(6684)]).then(()=>r(17029))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9789),r.e(4674),r.e(5087),r.e(8589),r.e(7005),r.e(9480),r.e(6377),r.e(9389)]).then(()=>r(82411))).default,CSVLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(5057)]).then(()=>r(68695))).default,CatalogLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(9789),r.e(4674),r.e(893),r.e(5087),r.e(7013),r.e(1549),r.e(3312)]).then(()=>r(83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(2889),r.e(4674),r.e(5087),r.e(8361)]).then(()=>r(25077))).default,DimensionLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(3813)]).then(()=>r(71493))).default,ElevationLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(8732),r.e(3483)]).then(()=>r(38732))).default,FeatureLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9789),r.e(4674),r.e(5087),r.e(8589),r.e(5853)]).then(()=>r(18589))).default,GaussianSplatLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9177),r.e(8856)]).then(()=>r(36475))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(3055)]).then(()=>r(15481))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9657)]).then(()=>r(63201))).default,GroupLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6569)]).then(()=>r(85989))).default,ImageryLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(893),r.e(7074),r.e(9800),r.e(7772),r.e(8768)]).then(()=>r(87772))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7074),r.e(2754),r.e(9800),r.e(9235),r.e(3500),r.e(1003),r.e(2806),r.e(7870)]).then(()=>r(90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(9177),r.e(6451),r.e(9229)]).then(()=>r(61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(7552),r.e(1843),r.e(7005),r.e(9480),r.e(9177),r.e(8197),r.e(6451),r.e(3527)]).then(()=>r(49013))).default,KMLLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(1214),r.e(6854),r.e(8441)]).then(()=>r(162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(7173),r.e(3902),r.e(4934),r.e(8692)]).then(()=>r(28692))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(1588),r.e(9695)]).then(()=>r(49695))).default,LinkChartLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(7173),r.e(3902),r.e(4934),r.e(3309)]).then(()=>r(93309))).default,MapImageLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(4674),r.e(893),r.e(6884),r.e(2241)]).then(()=>r(7656))).default,MapNotesLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9789),r.e(4674),r.e(5087),r.e(8589),r.e(7173),r.e(4403)]).then(()=>r(96299))).default,MediaLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(9894),r.e(2491)]).then(()=>r(90182))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(6377),r.e(9908),r.e(8118)]).then(()=>r(65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(7269),r.e(349)]).then(()=>r(40349))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9789),r.e(4674),r.e(5087),r.e(8589),r.e(4051),r.e(931)]).then(()=>r(16852))).default,ParquetLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(3819),r.e(6185),r.e(9775)]).then(()=>r(99680))).default,PointCloudLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(2869),r.e(7984),r.e(7885)]).then(()=>r(77885))).default,RouteLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(1214),r.e(6854),r.e(9385)]).then(()=>r(39622))).default,SceneLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(7005),r.e(9480),r.e(6377),r.e(4844)]).then(()=>r(2e4))).default,SketchLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9789),r.e(4674),r.e(5087),r.e(8589),r.e(7173),r.e(4152)]).then(()=>r(15056))).default,StreamLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9661)]).then(()=>r(79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(2889),r.e(9789),r.e(4674),r.e(5087),r.e(1951)]).then(()=>r(97483))).default,TileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(4674),r.e(893),r.e(6884),r.e(6811)]).then(()=>r(71756))).default,UnknownLayer:async()=>(await Promise.all([r.e(9917),r.e(146)]).then(()=>r(146))).default,UnsupportedLayer:async()=>(await Promise.all([r.e(9917),r.e(5165)]).then(()=>r(45165))).default,VectorTileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9953),r.e(5228),r.e(7499),r.e(700)]).then(()=>r(67190))).default,VideoLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(3910),r.e(5128),r.e(4674),r.e(9894),r.e(6875)]).then(()=>r(86875))).default,ViewshedLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(1588),r.e(6650)]).then(()=>r(96650))).default,VoxelLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(2869),r.e(167)]).then(()=>r(90167))).default,WCSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7074),r.e(2754),r.e(9800),r.e(9235),r.e(3500),r.e(2806),r.e(2061)]).then(()=>r(20521))).default,WFSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(8707)]).then(()=>r(21901))).default,WMSLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(1904)]).then(()=>r(51904))).default,WMTSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(7269),r.e(309)]).then(()=>r(20309))).default,WebTileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(7269)]).then(()=>r(47314))).default};r.d(a,["U",0,t])},7861(e,a,r){r.d(a,{L:()=>l});var t=r(56507);async function l(e,a){return(await(0,t.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7982],{27982(e,a,r){r.r(a),r.d(a,{fromUrl:()=>f,isGaussianSplat3DTilesUrl:()=>p});var t=r(49186),l=r(84952),n=r(60694),s=r(92009),i=r(23154),o=r(2976),u=r(77548),y=r(7861);const c={FeatureLayer:!0,SceneLayer:!0,VideoLayer:!0};async function f(e){let{properties:a,url:t}=e,l={...a,url:t},n=await w(t,a?.customParameters),{Constructor:s,layerId:i,sourceJSON:o,parsedUrl:u,layers:y,tables:c}=n;if(y.length+c.length===0)return null!=i&&(l.layerId=i),null!=o&&(l.sourceJSON=o),new s(l);let f=new(0,(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6569)]).then(()=>r(85989))).default)({title:u.title});return await async function(e,a,r){let t=a.sublayerConstructorProvider;for(let{id:l,serverUrl:n}of a.layers){let s=d(a.layerInfos,l),i=m(n,l,s,(s&&t?.(s))??a.Constructor,r);e.add(i)}if(a.tables.length){let t=await h("FeatureLayer");a.tables.forEach(({id:l,serverUrl:n})=>{let s=m(n,l,d(a.tableInfos,l),t,r);e.tables.add(s)})}}(f,n,l),f}function d(e,a){return e?e.find(({id:e})=>e===a):null}function m(e,a,r,t,l){let n={...l,layerId:a};return null!=e&&(n.url=e),null!=r&&(n.sourceJSON=r),"sublayerTitleMode"in t.prototype&&(n.sublayerTitleMode="service-name"),new t(n)}async function w(e,a){let r=(0,n.qg)(e);if(r??=await async function(e,a){let r=await(0,y.L)(e,{customParameters:a}),t=null,s=null,i=r.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=r.id??null):"indexedVector"===i?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":L(r)?(t="SceneServer",s=r.id):r.hasOwnProperty("layers")&&L(r.layers?.[0])&&(t="SceneServer"),!t)return null;let o=null==s?null:(0,n.iz)(e);return{title:null!=o&&r.name||(0,l.e7)(e),serverType:t,sublayer:s,url:{path:null==o?(0,l.An)(e).path:o.serviceUrl}}}(e,a),null==r)throw new t.A("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});let o,{serverType:f,sublayer:d}=r,m={FeatureServer:"FeatureLayer",KnowledgeGraphServer:"KnowledgeGraphLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer",VideoServer:"VideoLayer"},w="FeatureServer"===f,S="SceneServer"===f,v={parsedUrl:r,Constructor:null,layerId:w||S?d??void 0:void 0,layers:[],tables:[]};switch(f){case"MapServer":if(null!=d){let{type:r}=await(0,y.L)(e,{customParameters:a});switch(o="FeatureLayer",r){case"Annotation Layer":o="AnnotationFeatureLayer";break;case"Dimension Layer":o="DimensionFeatureLayer";break;case"Catalog Layer":o="CatalogLayer";break;case"Annotation SubLayer":case"Catalog Dynamic Group Layer":throw new t.A("arcgis-layers:unsupported",`fromUrl() does not support "${r}" type`)}}else o=await async function(e,a){return(await(0,y.L)(e,{customParameters:a})).tileInfo}(e,a)?"TileLayer":"MapImageLayer";break;case"ImageServer":{let{tileInfo:r,cacheType:t}=await(0,y.L)(e,{customParameters:a});o=r?"LERC"!==r?.format?.toUpperCase()||t&&"elevation"!==t.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{let e=await(0,y.L)(r.url.path,{customParameters:a});if(o="SceneLayer",e){let a=e?.layers;if("Voxel"===e?.layerType)o="VoxelLayer";else if(a?.length){let e=a[0]?.layerType;null!=e&&null!=u.XX[e]&&(o=u.XX[e])}}break}case"3DTilesServer":o=await p(e,a)?"GaussianSplatLayer":"IntegratedMesh3DTilesLayer";break;case"FeatureServer":if(o="FeatureLayer",null!=d){let r=await(0,y.L)(e,{customParameters:a});v.sourceJSON=r,v.preferredUrl=(0,u.$x)();let l=(0,i.Jo)(r.type);if(!l)throw new t.A("arcgis-layers:unsupported",`fromUrl() does not support "${r.type}" type`);o=l}break;default:o=m[f]}if(c[o]&&null==d){let r=await async function(e,a,r){let t,l,n,o,c;switch(a){case"FeatureServer":{let a=await(0,i.QM)(e,{customParameters:r});n=(0,u.$x)(e,{preferredHost:a.preferredHost});let l=!!a.layersJSON,s=a.layersJSON||a.serviceJSON;o=l?s?.layers:[],c=l?s?.tables:[],t=s;break}case"SceneServer":{let a=await async function(e,a){let r=await(0,y.L)(e,{customParameters:a});if(!r.layers?.[0])return{serviceInfo:r};try{let{serverUrl:t}=await(0,s.L)(e),l=await(0,y.L)(t,{customParameters:a}).catch(()=>null);return l&&(r.tables=l.tables),{serviceInfo:r,tableServerUrl:t}}catch{return{serviceInfo:r}}}(e,r);t=a.serviceInfo,l=a.tableServerUrl;break}default:t=await(0,y.L)(e,{customParameters:r})}return{preferredUrl:n,layers:t?.layers?.map(e=>({id:e.id})).reverse()||[],tables:t?.tables?.map(e=>({serverUrl:l,id:e.id})).reverse()||[],layerInfos:o,tableInfos:c}}(e,f,a),l=r.layers.length+r.tables.length;if(w){if(0===l)throw new t.A("arcgis-layers:no-data",`The feature service '${e}' does not have any supported layers or tables`);v.preferredUrl=r.preferredUrl,v.layerInfos=r.layerInfos,v.tableInfos=r.tableInfos}if(1!==l)v.layers=r.layers,v.tables=r.tables,w&&r.layerInfos?.length&&(v.sublayerConstructorProvider=await async function(e){if(!e.length)return;let a=new Set,r=[];for(let{type:t}of e)a.has(t)||(a.add(t),r.push(h((0,i.Jo)(t))));let t=await Promise.all(r),l=new Map;return Array.from(a).forEach((e,a)=>{l.set(e,t[a])}),e=>l.get(e.type)}(r.layerInfos));else if(w||S){let e=r.layerInfos?.[0]??r.tableInfos?.[0];v.layerId=r.layers[0]?.id??r.tables[0]?.id,v.sourceJSON=e,w&&(o=(0,i.Jo)(e?.type))}}return v.Constructor=await h(o),v}function L(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}async function h(e){return(0,o.U[e])()}async function p(e,a){return!0===((await(0,y.L)(e,{customParameters:a})).extensions?.["3DTILES_content_gltf"])?.extensionsRequired?.includes("KHR_gaussian_splatting")}},92009(e,a,r){r.d(a,{L:()=>y});var t=r(70333),l=r(56507),n=r(49186),s=r(17676),i=r(60694),o=r(20655),u=r(80812);async function y(e,a){let r=(0,i.qg)(e);if(!r)throw new n.A("invalid-url","Invalid scene service url");let y={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(y.sceneLayerItem??=await async function(e){let a=(await c(e)).serviceItemId;if(!a)return null;let r=new u.default({id:a,apiKey:e.apiKey}),n=await async function(e){let a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;let r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{let a=(await(0,l.A)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,s.QP)(e)}return null}(e);null!=n&&(r.portal=new o.A({url:n}));try{return await r.load({signal:e.signal})}catch(e){return(0,s.QP)(e),null}}(y),null==y.sceneLayerItem)return f(y.sceneServerUrl.replace("/SceneServer","/FeatureServer"),y);let d=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{let r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!r)return null;let t=new u.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,s.QP)(e),null}}(y);if(!d?.url)throw new n.A("related-service-not-found","Could not find feature service through portal item relationship");y.featureServiceItem=d;let m=await f(d.url,y);return m.portalItem=d,m}async function c(e){if(e.rootDocument)return e.rootDocument;let a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{e.rootDocument=(await(0,l.A)(e.sceneServerUrl,a)).data}catch{e.rootDocument={}}return e.rootDocument}async function f(e,a){let r=(0,i.qg)(e);if(!r)throw new n.A("invalid-feature-service-url","Invalid feature service url");let t=r.url.path,s=a.layerId;if(null==s)return{serverUrl:t};let o=c(a),u=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,y=(u?.layers?.[0]||u?.tables?.[0])?.customParameters,f=e=>{let r={query:{f:"json",...y},responseType:"json",authMode:e,signal:a.signal};return(0,l.A)(t,r)},d=f("anonymous").catch(()=>f("no-prompt")),[m,w]=await Promise.all([d,o]),L=w?.layers,h=m.data&&m.data.layers;if(!Array.isArray(h))throw Error("expected layers array");if(Array.isArray(L)){for(let e=0;e<Math.min(L.length,h.length);e++)if(L[e].id===s)return{serverUrl:t,layerId:h[e].id}}else if(null!=s&&s<h.length)return{serverUrl:t,layerId:h[s].id};throw Error("could not find matching associated sublayer")}},23154(e,a,r){r.d(a,{A6:()=>i,Aq:()=>w,Jo:()=>m,QM:()=>s});var t=r(77548),l=r(7861);const n=new Set(["Annotation Layer","Catalog Layer","Dimension Layer","Feature Layer","Oriented Imagery Layer"]);async function s(e,a){let{serviceJSON:r,layersJSON:t,...l}=await i(e,a);y(r);let n={serviceJSON:r,...l};return t&&(y(t),n.layersJSON=t),n}async function i(e,a){let{loadContext:r,...n}=a||{},s=r?await r.fetchServiceMetadata(e,n):await(0,l.L)(e,n),i=(0,t.G$)();d(s);let o={serviceJSON:s,preferredHost:i};if((s.currentVersion??0)<10.5)return o;let u=`${(0,t.$x)()??e}/layers`,y=r?await r.fetchServiceMetadata(u,n):await(0,l.L)(u,n);return d(y),o.layersJSON={layers:y.layers,tables:y.tables},o}function o(e){return n.has(e.type)}function u(e){return"Table"===e.type}function y(e){e.layers=e.layers?.filter(o),e.tables=e.tables?.filter(u)}function c(e){e.type||="Feature Layer"}function f(e){e.type||="Table"}function d(e){e.layers?.forEach(c),e.tables?.forEach(f)}function m(e){if(!e)return"FeatureLayer";switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"DimensionFeatureLayer";case"Annotation Layer":return"AnnotationFeatureLayer"}return null}function w(e,a){if(!e)return a?"Table":"ArcGISFeatureLayer";switch(e){case"Annotation Layer":return"ArcGISAnnotationLayer";case"Catalog Layer":return"CatalogLayer";case"Dimension Layer":return"ArcGISDimensionLayer";case"Feature Layer":return"ArcGISFeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Parcel Layer":return"ParcelLayer";case"Table":return"Table";case"Topology Layer":return"TopologyLayer";case"Trace Network Layer":return"TraceNetworkLayer";case"Utility Network Layer":return"UtilityNetworkLayer";default:return null}}},2976(e,a,r){const t={AnnotationFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(2889),r.e(4674),r.e(5087),r.e(7537)]).then(()=>r(20737))).default,BingMapsLayer:async()=>(await Promise.all([r.e(8278),r.e(7865),r.e(6554),r.e(6684)]).then(()=>r(17029))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9789),r.e(4674),r.e(5087),r.e(8589),r.e(7005),r.e(9480),r.e(6377),r.e(9389)]).then(()=>r(82411))).default,CSVLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(5057)]).then(()=>r(68695))).default,CatalogLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(9789),r.e(4674),r.e(893),r.e(5087),r.e(7),r.e(1549),r.e(7656)]).then(()=>r(83508))).default,DimensionFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(2889),r.e(4674),r.e(5087),r.e(8361)]).then(()=>r(25077))).default,DimensionLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(3813)]).then(()=>r(71493))).default,ElevationLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(8732),r.e(3483)]).then(()=>r(38732))).default,FeatureLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9789),r.e(4674),r.e(5087),r.e(8589),r.e(5853)]).then(()=>r(18589))).default,GaussianSplatLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9177),r.e(8856)]).then(()=>r(36475))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(3055)]).then(()=>r(15481))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9657)]).then(()=>r(63201))).default,GroupLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6569)]).then(()=>r(85989))).default,ImageryLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(893),r.e(7074),r.e(9800),r.e(7772),r.e(8768)]).then(()=>r(87772))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7074),r.e(2754),r.e(9800),r.e(9235),r.e(3500),r.e(1003),r.e(2806),r.e(7870)]).then(()=>r(90124))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(9177),r.e(6451),r.e(9229)]).then(()=>r(61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(9953),r.e(7552),r.e(1843),r.e(7005),r.e(9480),r.e(9177),r.e(8197),r.e(6451),r.e(3527)]).then(()=>r(49013))).default,KMLLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(1214),r.e(6854),r.e(8441)]).then(()=>r(162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(7173),r.e(3902),r.e(4934),r.e(8692)]).then(()=>r(28692))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(1588),r.e(9695)]).then(()=>r(49695))).default,LinkChartLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9789),r.e(9696),r.e(359),r.e(5752),r.e(7173),r.e(3902),r.e(4934),r.e(3309)]).then(()=>r(93309))).default,MapImageLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(4674),r.e(893),r.e(6884),r.e(2241)]).then(()=>r(7656))).default,MapNotesLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9789),r.e(4674),r.e(5087),r.e(8589),r.e(7173),r.e(4403)]).then(()=>r(96299))).default,MediaLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(9894),r.e(2491)]).then(()=>r(90182))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(6377),r.e(9908),r.e(8118)]).then(()=>r(65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(7269),r.e(349)]).then(()=>r(40349))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9789),r.e(4674),r.e(5087),r.e(8589),r.e(4051),r.e(3312)]).then(()=>r(16852))).default,ParquetLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(3819),r.e(6185),r.e(9775)]).then(()=>r(99680))).default,PointCloudLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(2869),r.e(7984),r.e(7885)]).then(()=>r(77885))).default,RouteLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(1722),r.e(1214),r.e(6854),r.e(9385)]).then(()=>r(39622))).default,SceneLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(7005),r.e(9480),r.e(6377),r.e(4844)]).then(()=>r(2e4))).default,SketchLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9789),r.e(4674),r.e(5087),r.e(8589),r.e(7173),r.e(4152)]).then(()=>r(15056))).default,StreamLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(9661)]).then(()=>r(79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(2889),r.e(9789),r.e(4674),r.e(5087),r.e(1951)]).then(()=>r(97483))).default,TileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(4674),r.e(893),r.e(6884),r.e(6811)]).then(()=>r(71756))).default,UnknownLayer:async()=>(await Promise.all([r.e(9917),r.e(146)]).then(()=>r(146))).default,UnsupportedLayer:async()=>(await Promise.all([r.e(9917),r.e(5165)]).then(()=>r(45165))).default,VectorTileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(9953),r.e(5228),r.e(7499),r.e(700)]).then(()=>r(67190))).default,VideoLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(3910),r.e(5128),r.e(4674),r.e(9894),r.e(6875)]).then(()=>r(86875))).default,ViewshedLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(1588),r.e(6650)]).then(()=>r(96650))).default,VoxelLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(2869),r.e(167)]).then(()=>r(90167))).default,WCSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7074),r.e(2754),r.e(9800),r.e(9235),r.e(3500),r.e(2806),r.e(2061)]).then(()=>r(20521))).default,WFSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(9953),r.e(3910),r.e(5128),r.e(5566),r.e(7552),r.e(1722),r.e(1214),r.e(6854),r.e(2889),r.e(1017),r.e(8707)]).then(()=>r(21901))).default,WMSLayer:async()=>(await Promise.all([r.e(6361),r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(2869),r.e(3910),r.e(5128),r.e(1904)]).then(()=>r(51904))).default,WMTSLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(7269),r.e(309)]).then(()=>r(20309))).default,WebTileLayer:async()=>(await Promise.all([r.e(9917),r.e(8278),r.e(7865),r.e(6554),r.e(7269)]).then(()=>r(47314))).default};r.d(a,["U",0,t])},7861(e,a,r){r.d(a,{L:()=>l});var t=r(56507);async function l(e,a){return(await(0,t.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}})).data}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6553],{76553(e,n,i){function t(e){return e&&"getAtOrigin"in e&&"originOf"in e}i.d(n,{H:()=>t})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9575],{65529(e,t,a){var n=a(69622),i=a(36563);const r=e=>{let t=e;return class extends t{constructor(){super(...arguments),this._listenersMap=null}clearEvents(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clearEvents()}emit(e,t){let a=this._listenersMap?.get(e);if(!a)return!1;let n=!1;for(let e of a.slice()){let a="deref"in e?e.deref():e;a?a?.call(this,t):n=!0}return n&&(a=a.filter(e=>!("deref"in e)||null!=e.deref()),this._listenersMap.set(e,a)),a.length>0}on(e,t){if(Array.isArray(e)){let a=e.map(e=>this.on(e,t));return(0,i.vE)(a)}if(e.includes(","))throw TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;let a=this._listenersMap.get(e)||[];return a.push(t),this._listenersMap.set(e,a),(0,i.hA)(()=>{let a=this._listenersMap?.get(e),n=a?.indexOf(t)??-1;n>=0&&a.splice(n,1)})}once(e,t){let a=this.on(e,e=>{a.remove(),("deref"in t?t.deref():t)?.call(null,e)});return a}hasEventListener(e){let t=this._listenersMap?.get(e);return null!=t&&t.length>0}}},l=r(class{}),s=l,o=r(n.A);a.d(t,["Zt",0,r,"a$",0,l,"bk",0,s,"nJ",0,o])},3483(e,t,a){function n(e,t){for(let a of e.values())if(t(a))return!0;return!1}function i(e,t){if(t)for(let a of t)null!=a&&e.add(a)}function r(e,t){null!=t&&e.add(t)}function l(e,t){let a=new Set;return i(a,e),i(a,t),a}function s(e,t){let a=new Set;for(let n of t)e.has(n)&&a.add(n);return a}function o(e,t){if(!e||!t)return!1;if(e===t)return!0;for(let a of e)if(!t.has(a))return!1;return!0}function u(e,t){if(null==e&&null==t)return!0;if(null==e||null==t||e.size!==t.size)return!1;for(let a of e)if(!t.has(a))return!1;return!0}function d(e,t){let a=new Set(e);for(let e of t)a.delete(e);return a}a.d(t,{E$:()=>s,FB:()=>i,KC:()=>l,Yy:()=>o,aI:()=>u,bw:()=>n,iv:()=>d,kb:()=>r})},95488(e,t,a){a.d(t,{I:()=>i});var n=a(11406);class i extends n.T{notify(){let e=this._observers;if(e&&e.length>0){let t=e.slice();for(let e of t)e.onInvalidated(),e.onCommitted()}}}},39516(e,t,a){a.d(t,{GP:()=>o,IW:()=>d,YG:()=>E,iA:()=>M,mA:()=>u});var n=a(3330),i=a(54218),r=a(56400),l=a(34747);let s;async function o(e,t){let n=await async function(){return s??=Promise.all([a.e(9696),a.e(5248)]).then(()=>a(44123)).then(e=>new e.WhereClauseCache(500,500)),s}(),i=n.get(e,t);if(null==i)throw n.getError(e,t);return i}function u(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function d(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}function c(e,t){return null==e?"NULL":`${t??""}'${e.replaceAll("'","''")}'`}function m(e){return Number.isFinite(e)?String(e):"NULL"}function f(e){let[t,a]=e.split("T");return`${t} ${a.replace("Z","+00:00").replace(/[+-]/,e=>` ${e}`)}`}function T(e,t){let a=null==t?l.mQ.utcInstance:(0,r.S3)(t),n=l.c9.fromMillis(e,{zone:a});return n.isValid?n:null}function p(e,t){return T(e,t)?.toSQL({includeOffset:!1})}function g(e,t){return T(e,t)?.toSQL({includeOffset:!0})?.replace("Z","+00:00")}function y(e,t){return T(e,t)?.toSQLDate()}function S(e,t){return T(e,t)?.toSQLTime({includeOffset:!1})}function A(e){return"string"==typeof e?e:e?.type}function h(e,t){if(null==e)return"NULL";let a=A(t);switch(typeof e){case"string":switch(a){case"string":case"esriFieldTypeString":case void 0:return m(Number(e));default:throw Error(`Cannot convert ${a} to sql numeric literal.`)}case"boolean":return e?"1":"0";case"number":switch(a){case"small-integer":case"esriFieldTypeSmallInteger":case"integer":case"esriFieldTypeInteger":case"single":case"esriFieldTypeSingle":case"double":case"esriFieldTypeDouble":case"big-integer":case"esriFieldTypeBigInteger":case"long":case"esriFieldTypeLong":case"oid":case"esriFieldTypeOID":case void 0:return m(e);default:throw Error(`Cannot convert ${a} to sql numeric literal.`)}}throw Error("Cannot convert value to sql numeric literal.")}function F(e,t,a){if(null==e)return"NULL";let n=A(t);switch(typeof e){case"string":switch(n){case"timestamp-offset":case"esriFieldTypeTimestampOffset":return c(f(e));case"date-only":case"esriFieldTypeDateOnly":case"time-only":case"esriFieldTypeTimeOnly":case"string":case"esriFieldTypeString":case"global-id":case"esriFieldTypeGlobalID":case"guid":case"esriFieldTypeGUID":case"xml":case"esriFieldTypeXML":case void 0:return c(e);default:throw Error(`Cannot convert ${n} to sql string literal.`)}case"boolean":return e?"'true'":"'false'";case"number":switch(n){case"date":case"esriFieldTypeDate":return c(p(e,a));case"small-integer":case"esriFieldTypeSmallInteger":case"integer":case"esriFieldTypeInteger":case"single":case"esriFieldTypeSingle":case"double":case"esriFieldTypeDouble":case"big-integer":case"esriFieldTypeBigInteger":case"long":case"esriFieldTypeLong":case"oid":case"esriFieldTypeOID":case void 0:return Number.isFinite(e)?`'${e}'`:"NULL";default:throw Error(`Cannot convert ${n} to sql string literal.`)}case"object":if((0,i.$P)(e))return c(p(e.valueOf(),a))}throw Error("Cannot convert value to sql string literal.")}function b(e,t,a){if(null==e)return"NULL";let n=A(t);switch(typeof e){case"string":switch(n){case"timestamp-offset":case"esriFieldTypeTimestampOffset":return c(f(e),"TIMESTAMP");case"date-only":case"esriFieldTypeDateOnly":return c(`${e} 00:00:00`,"TIMESTAMP");case"string":case"esriFieldTypeString":case void 0:return c(e,"TIMESTAMP");default:throw Error(`Cannot convert ${n} to sql timestamp literal.`)}case"number":switch(n){case"date":case"esriFieldTypeDate":case void 0:return c(p(e,a),"TIMESTAMP");default:throw Error(`Cannot convert ${n} to sql timestamp literal.`)}case"object":if((0,i.$P)(e))return c(p(e.valueOf(),a),"TIMESTAMP")}throw Error("Cannot convert value to sql timestamp literal.")}function E(e,t,a){if(null==e)return"NULL";if(null==t&&null==a){switch(typeof e){case"string":return F(e);case"number":return h(e);case"boolean":return function(e){return null==e?"NULL":e?"TRUE":"FALSE"}(e);case"object":if((0,i.$P)(e))return b(e)}throw Error("Cannot convert value to sql literal.")}let r=function(e,t){return null==e?t:null==t||(0,n.Y4)(e)||(0,n.Y4)(t)?e:t}(t?.timeZone,a?.timeZone),l=A(t?.type);switch(A(a?.type)??l){case"small-integer":case"esriFieldTypeSmallInteger":case"integer":case"esriFieldTypeInteger":case"single":case"esriFieldTypeSingle":case"double":case"esriFieldTypeDouble":case"big-integer":case"esriFieldTypeBigInteger":case"long":case"esriFieldTypeLong":case"oid":case"esriFieldTypeOID":return h(e,l);case"global-id":case"esriFieldTypeGlobalID":case"guid":case"esriFieldTypeGUID":case"xml":case"esriFieldTypeXML":case"string":case"esriFieldTypeString":return F(e,l,r);case"date":case"esriFieldTypeDate":return b(e,l,r);case"timestamp-offset":case"esriFieldTypeTimestampOffset":return function(e,t,a){if(null==e)return"NULL";let n=A(t);switch(typeof e){case"string":switch(n){case"timestamp-offset":case"esriFieldTypeTimestampOffset":return c(f(e),"TIMESTAMP");case"string":case"esriFieldTypeString":case void 0:return c(e,"TIMESTAMP");default:throw Error(`Cannot convert ${n} to sql timestamp offset literal.`)}case"number":switch(n){case"date":case"esriFieldTypeDate":case void 0:return c(g(e,a),"TIMESTAMP");default:throw Error(`Cannot convert ${n} to sql timestamp offset literal.`)}case"object":if((0,i.$P)(e))return c(g(e.valueOf(),a),"TIMESTAMP")}throw Error("Cannot convert value to sql timestamp offset literal.")}(e,l,r);case"date-only":case"esriFieldTypeDateOnly":return function(e,t,a){if(null==e)return"NULL";let n=A(t);switch(typeof e){case"string":switch(n){case"timestamp-offset":case"esriFieldTypeTimestampOffset":return c(function(e){return e.split("T")[0]}(e),"DATE");case"date-only":case"esriFieldTypeDateOnly":case"string":case"esriFieldTypeString":case void 0:return c(e,"DATE");default:throw Error(`Cannot convert ${n} to sql date literal.`)}case"number":switch(n){case"date":case"esriFieldTypeDate":case void 0:return c(y(e,a),"DATE");default:throw Error(`Cannot convert ${n} to sql date literal.`)}case"object":if((0,i.$P)(e))return c(y(e.valueOf(),a),"DATE")}throw Error("Cannot convert value to sql date literal.")}(e,l,r);case"time-only":case"esriFieldTypeTimeOnly":return function(e,t,a){if(null==e)return"NULL";let n=A(t);switch(typeof e){case"string":switch(n){case"timestamp-offset":case"esriFieldTypeTimestampOffset":return c(function(e){let t=e.indexOf("T")+1,a=Math.max(e.indexOf("-",t),e.indexOf("+",t),e.indexOf("Z",t));return e.slice(t,a>0?a:void 0)}(e),"TIME");case"time-only":case"esriFieldTypeTimeOnly":case"string":case"esriFieldTypeString":case void 0:return c(e,"TIME");default:throw Error(`Cannot convert ${n} to sql time literal.`)}case"number":switch(n){case"date":case"esriFieldTypeDate":case void 0:return c(S(e,a),"TIME");default:throw Error(`Cannot convert ${n} to sql time literal.`)}case"object":if((0,i.$P)(e))return c(S(e.valueOf(),a),"TIME")}throw Error("Cannot convert value to sql time literal.")}(e,l,r);default:throw Error("Unsupported sql target type: "+l)}}function M(e){return/^[a-zA-Z_][a-zA-Z_0-9]*$/.test(e)?e:`"${e.replaceAll('"','""')}"`}},3330(e,t,a){a.d(t,{GB:()=>i,Qo:()=>l,Y4:()=>r});var n=a(34747);class i{static{this.instance=n.mQ.parseSpecifier("UTC")}}function r(e){return e instanceof n.bo?e===i.instance:"unknown"===e?.toString().toLowerCase()}function l(e){return r(e)?i.instance:e}},68463(e,t,a){a.d(t,{Mh:()=>c,A5:()=>y});var n=a(3483),i=a(97768),r=a(54218),l=a(34747);const s=["HH:mm:ss.SSS","HH:mm:ss","HH:mm","TT"];function o(e){if(!e||!(0,r.Kg)(e))return null;let t=l.c9.fromFormat(e,"yyyy-MM-dd");return t.isValid?t:null}function u(e){return e&&(0,r.Kg)(e)?(0,i.Pb)(s,t=>{let a=l.c9.fromFormat(e,t);return a.isValid?a:null})??null:null}function d(e){if(!e||!(0,r.Kg)(e))return null;let t=l.c9.fromISO(e);return t.isValid?t:null}const c={VALUE_OUT_OF_RANGE:"domain-validation-error::value-out-of-range",INVALID_CODED_VALUE:"domain-validation-error::invalid-coded-value"},m=new Set(["integer","small-integer","long","big-integer","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]);function f(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function T(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function p(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}const g=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]);function y(e,t){let a=t??e?.domain;if(!a||"range"!==a.type)return;let n="range"in a?a.range[0]:a.minValue,i="range"in a?a.range[1]:a.maxValue,r=function(e){return null!=e&&m.has(e.type)}(e);return f(e)||p(e)||T(e)?{...S(e,i,n),isInteger:r}:{min:null!=n&&"number"==typeof n?n:null,max:null!=i&&"number"==typeof i?i:null,rawMin:n,rawMax:i,isInteger:r}}function S(e,t,a){return f(e)?{min:o(a)?.toMillis(),max:o(t)?.toMillis(),rawMin:a,rawMax:t}:p(e)?{min:u(a)?.toMillis(),max:u(t)?.toMillis(),rawMin:a,rawMax:t}:T(e)?{min:d(a)?.toMillis(),max:d(t)?.toMillis(),rawMin:a,rawMax:t}:{max:null,min:null}}(0,n.KC)(m,g)},30524(e,t,a){a.d(t,{Ah:()=>H,Bz:()=>k,CJ:()=>ie,DB:()=>S,Dx:()=>b,GZ:()=>Fe,JL:()=>ge,Jl:()=>$,Kl:()=>pe,NF:()=>he,OG:()=>X,OH:()=>Q,R$:()=>U,R3:()=>z,Vb:()=>Ae,WA:()=>K,WX:()=>ae,XT:()=>ne,Xz:()=>Y,_b:()=>N,_w:()=>A,e7:()=>Se,eX:()=>w,hL:()=>F,lD:()=>D,mB:()=>E,nw:()=>ye,rS:()=>c,rq:()=>h,sv:()=>g,te:()=>J,uo:()=>Te,vE:()=>j,yM:()=>R,yp:()=>T,zD:()=>W}),a(49186);var n=a(93637),i=a(3483),r=(a(39516),a(68463)),l=a(69309),s=a(54218),o=a(43668);const u=/^([0-9_])/,d=/[^a-z0-9_\u0080-\uffff]+/gi;function c(e){return null==e?null:e.trim().replaceAll(d,"_").replace(u,"F$1")||null}const m=["field","field2","field3","normalizationField","rotationInfo.field","proportionalSymbolInfo.field","proportionalSymbolInfo.normalizationField","colorInfo.field","colorInfo.normalizationField"],f=["field","normalizationField"];function T(e,t){if(null!=e&&null!=t)for(let a of Array.isArray(e)?e:[e])if(p(m,a,t),"visualVariables"in a&&a.visualVariables)for(let e of a.visualVariables)p(f,e,t)}function p(e,t,a){if(e)for(let i of e){let e=(0,n.wc)(i,t),r=e&&"function"!=typeof e&&a.get(e);r&&(0,n.sM)(i,r.name,t)}}function g(e,t){if(null!=e&&t?.fields?.length){if("startField"in e){let a=t.get(e.startField),n=t.get(e.endField);e.startField=a?.name??null,e.endField=n?.name??null}else{let a=t.get(e.startTimeField),n=t.get(e.endTimeField);e.startTimeField=a?.name??null,e.endTimeField=n?.name??null}e.trackIdField=t.get(e.trackIdField)?.name??null}}const y=new Set;function S(e,t){return e&&t?(y.clear(),A(y,e,t),Array.from(y).sort()):[]}function A(e,t,a){if(a){if(!t?.fields?.length){if(a.includes("*"))return e.clear(),void e.add("*");for(let t of a)null!=t&&e.add(t);return}if(a.includes("*")){for(let{name:a}of t.fields)e.add(a);return}for(let n of a)h(e,t,n)}}function h(e,t,a){if("string"==typeof a)if(t){let n=t.get(a);n&&e.add(n.name)}else e.add(a)}function F(e,t){return null==t||null==e?[]:t.includes("*")?(e.fields??[]).map(e=>e.name):t}async function b(e,t,a,n){if(!n)return;let i=(0,l.o)(n);if(i)h(e,t,i);else{let{arcadeUtils:i}=await(0,o.l)(),r=i.extractFieldNames(n,a?.partitions??t?.fields?.map(e=>e.name));for(let n of r)h(e,a?.index??t,n)}}function E({displayField:e,fields:t}){return e||(t?.length?function(e){return M(e,"name-or-title")||M(e,"unique-identifier")||M(e,"type-or-category")||function(e){for(let t of e){if(!t?.name)continue;let e=t.name.toLowerCase();if(e.includes("name")||e.includes("title"))return t.name}return null}(e)}(t):null)}function M(e,t){for(let a of e)if(a?.valueType&&a.valueType===t)return a.name;return null}function w(e){return e?S(e.fieldsIndex,L(e)):[]}const v=new Set(["oid","global-id","guid"]),C=new Set(["oid","global-id"]),I=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^shape$/i,/^shape_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/objectid/i,/^perimeter_/i,/_perimeter$/i,/_i$/i];function L(e){if(!e)return[];let t="editFieldsInfo"in e&&e.editFieldsInfo;if(!t)return[];let{creationDateField:a,creatorField:n,editDateField:i,editorField:r}=t;return[a,n,i,r].filter(Boolean)}function _(e){return L(e).map(e=>e.toLowerCase())}function $(e){return!!e.type}function U(e,t){return!!e.editable&&$(e)&&!v.has(e.type)&&!_(t).includes(e.name?.toLowerCase()??"")}function k(e,t){let a=e.name?.toLowerCase()??"";return!(null!=t?.objectIdField&&a===t.objectIdField.toLowerCase()||null!=t?.globalIdField&&a===t.globalIdField.toLowerCase()||function(e){let t=new Set;_(e).forEach(e=>t.add(e)),function(e){if(!e)return[];let t=e.geometryFieldsInfo;return t?S(e.fieldsIndex,[t.shapeAreaField,t.shapeLengthField]):[]}(e).forEach(e=>t.add(e.toLowerCase()));let a=e&&"infoFor3D"in e?e.infoFor3D:void 0;return a&&(Object.values(a.assetMapFieldRoles).forEach(e=>t.add(e.toLowerCase())),Object.values(a.transformFieldRoles).forEach(e=>t.add(e.toLowerCase()))),Array.from(t)}(t).includes(a)||C.has(e.type)||I.some(e=>e.test(a)))}function D(e){let t=e.defaultValue;return void 0!==t&&B(e,t)?t:e.nullable?null:void 0}function N(e){let t="string"==typeof e?{type:e}:e;return R(t)?255:"esriFieldTypeDate"===t.type||"date"===t.type?8:void 0}function O(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function x(e){return null===e||O(e)}function P(e){return null===e||Number.isInteger(e)}function G(){return!0}function B(e,t){let a;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":a=e.nullable?P:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":a=e.nullable?x:O;break;case"string":case"esriFieldTypeString":a=e.nullable?s.CO:s.Kg;break;default:a=G}return 1===arguments.length?a:a(t)}const V=new Set(["integer","small-integer","big-integer","long","esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeLong","esriFieldTypeBigInteger"]),Z=new Set(["single","double","esriFieldTypeSingle","esriFieldTypeDouble"]),q=(0,i.KC)(V,Z);function z(e){return null!=e&&V.has(e.type)}function K(e){return null!=e&&q.has(e.type)}function R(e){return null!=e&&("string"===e.type||"esriFieldTypeString"===e.type)}function j(e){return null!=e&&("date"===e.type||"esriFieldTypeDate"===e.type)}function W(e){return null!=e&&("date-only"===e.type||"esriFieldTypeDateOnly"===e.type)}function H(e){return null!=e&&("timestamp-offset"===e.type||"esriFieldTypeTimestampOffset"===e.type)}function Q(e){return null!=e&&("time-only"===e.type||"esriFieldTypeTimeOnly"===e.type)}function J(e){return null!=e&&("oid"===e.type||"esriFieldTypeOID"===e.type)}function Y(e){return null!=e&&("global-id"===e.type||"esriFieldTypeGlobalID"===e.type)}function X(e,t){return null===ie(e,t)}const ee="numeric-range-validation-error::out-of-range",te="type-validation-error::invalid-type";function ae(e){return null==e||"number"==typeof e&&isNaN(e)?null:e}function ne(e){return parseFloat(e.replaceAll("_",""))}function ie(e,t){return null==e||e.nullable&&null===t?null:B(e,t)?K(e)&&!function(e,t){let a="string"==typeof e?re(e):e;if(!a)return!1;let n=a.min,i=a.max;return a.isInteger?Number.isInteger(t)&&t>=n&&t<=i:t>=n&&t<=i}(e.type,Number(t))?ee:null:te}function re(e){switch(e){case"esriFieldTypeSmallInteger":case"small-integer":return le;case"esriFieldTypeInteger":case"esriFieldTypeLong":case"integer":case"long":return ue;case"esriFieldTypeBigInteger":case"big-integer":return de;case"esriFieldTypeSingle":case"single":return me;case"esriFieldTypeDouble":case"double":return fe}}const le={min:-32768,max:32767,isInteger:!0,rawMin:-32768,rawMax:32767},se=-2147483648,oe=2**31-1,ue={min:se,max:oe,isInteger:!0,rawMin:se,rawMax:oe},de={min:-(2**53-1),max:2**53-1,isInteger:!0,rawMin:-(2**53-1),rawMax:2**53-1},ce=(2-2**-23)*2**127,me={min:-ce,max:ce,isInteger:!1,rawMin:-ce,rawMax:ce},fe={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE};function Te(e,t,a){switch(e){case r.Mh.INVALID_CODED_VALUE:return`Value ${a} is not in the coded domain - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case r.Mh.VALUE_OUT_OF_RANGE:return`Value ${a} is out of the range of valid values - field: ${t.name}, domain: ${JSON.stringify(t.domain)}`;case te:return`Value ${a} is not a valid value for the field type - field: ${t.name}, type: ${t.type}, nullable: ${t.nullable}`;case ee:{let{min:e,max:n}=re(t.type);return`Value ${a} is out of range for the number type - field: ${t.name}, type: ${t.type}, value range is ${e} to ${n}`}}}function pe(e,t){return!function(e,t){if(!e?.attributes||!t)return!0;let a=new Set(Object.keys(e.attributes)),n=!1;for(let e of t)if(!a.has(e)){n=!0;break}return n}(e,t)}function ge(e){return!!e&&["raster.itempixelvalue","raster.servicepixelvalue"].some(t=>e.toLowerCase().startsWith(t))}function ye(e){let t=e?.match(/{[^}]+}/g);return t?t.map(e=>e.slice(1,-1).split(":")[0].trim()):[]}function Se(e,t){let{statisticType:a,onStatisticField:n,onStatisticExpression:i}=e,r=t.get(n),l=K(r),s=i?.returnType;switch(a){case"avg":case"avg_angle":return r?l||j(r)?"double":null:s&&"number"===s?"double":null;case"count":return"integer";case"min":case"max":return r?l||function(e){return null!=e&&("date"===e.type||"date-only"===e.type||"time-only"===e.type||"timestamp-offset"===e.type)}(r)?r?.type??null:null:s&&"number"===s?"double":null;case"sum":return r?l?r?.type??null:null:s&&"number"===s?"double":null;case"mode":return r?r?.type??null:s?"number"===s?"double":"string":null;default:return null}}function Ae(e){let{fieldName:t,fieldsMap:a,normalizedFieldsMap:n}=e;if(!t)return;let i=a.get(t);return i||(i=a.get(he(t))??n.get(Fe(t)),i&&a.set(t,i),i)}function he(e){return e.trim().toLowerCase()}function Fe(e){return c(e)?.toLowerCase()??""}},69309(e,t,a){function n(e){if(!e)return;let t=e.match(i);return t?.groups?t.groups.doubleQuoted??t.groups.singleQuoted??t.groups.dotNotation:void 0}a.d(t,{D:()=>r,o:()=>n});const i=/^(\$feature\[(?:"(?<doubleQuoted>[^"]+)"|'(?<singleQuoted>[^']+)')\]|\$feature\.(?<dotNotation>[a-z_][a-z0-9_]*))$/i;function r(e){return e.match(l)?.[1]?.replaceAll("\\'","'")??null}const l=/^hash\(\$feature\['((\\'|[^'])+)'\]\) \* 8\.381e-8$/},54218(e,t,a){function n(e){return"number"==typeof e}function i(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function r(e){return"boolean"==typeof e}function l(e){return"string"==typeof e||e instanceof String}function s(e){return null==e||l(e)}function o(e){return Array.isArray(e)}function u(e){return e instanceof Date}a.d(t,{$P:()=>u,CO:()=>s,Et:()=>n,Fq:()=>i,Kg:()=>l,Lm:()=>r,cy:()=>o})},43668(e,t,a){let n;function i(){return n||=Promise.all([a.e(6854),a.e(9696),a.e(5879),a.e(5606)]).then(()=>a(55606)).then(e=>({arcade:e.arcade,arcadeUtils:e,batchExec:e.batchExec,aiServices:e.aiServices,languageUtils:e.languageUtils,Dictionary:e.Dictionary,Feature:e.arcadeFeature,Voxel:e.Voxel,Pixel:e.Pixel})),n}a.d(t,{l:()=>i})},98623(e,t,a){const n=Intl.DateTimeFormat().resolvedOptions().timeZone;a.d(t,["L",0,"unknown","N",0,n])},84741(e,t,a){a.d(t,{p:()=>s});var n=a(44208),i=a(34747);class r extends i.oh{constructor(e){super(e),this._start=[],this._end=[],this._offset=[]}get type(){return"temporal"}equals(e){return"temporal"===e.type&&e.name===this.name}_findIndexOfLatestStartIncluding(e){let t=0,a=this._start.length;for(;t<a;){let n=t+a>>>1;this._start[n]>e?a=n:t=n+1}return t-1}offset(e){if(e<-864e13||864e13<e)return NaN;let t=this._findIndexOfLatestStartIncluding(e);if(t>=0&&e<this._end[t])return this._offset[t];let a=Temporal.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(this.name),n=a.offsetNanoseconds/6e10,i=a.add({nanoseconds:1}).getTimeZoneTransition("previous")?.epochMilliseconds??-1/0,r=a.getTimeZoneTransition("next")?.epochMilliseconds??1/0;return this._start.splice(t+1,0,i),this._end.splice(t+1,0,r),this._offset.splice(t+1,0,n),n}}const l=new Map;function s(e){if((0,n.A)("esri-temporal")){let t=l.get(e);return void 0===t&&(t=new r(e),l.set(e,t)),t}return i.oh.create(e)}},56400(e,t,a){a.d(t,{ZS:()=>u,S3:()=>m,hv:()=>d,wr:()=>c,P6:()=>o});var n=a(3330),i=a(98623),r=a(84741);const l=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var s=a(34747);function o(e,t=!1,a=!0){let n=!!t&&{allowNull:a,writer(t,a){a[e]=t?function(e){return{timeZoneIANA:e}}(t):null},target:{[`${e}.timeZoneIANA`]:{type:String}}};return{json:{read:{source:e,reader:(t,a)=>a[e]?u(a[e]):null},write:n}}}function u(e,t="system"){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t="system"){if(!e||!l.has(e.timeZone))return t;let a=l.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?a:function(e){let t=s.c9.local().setZone(e),a=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===a?"Etc/UTC":`Etc/GMT${s.mQ.instance(-a).formatOffset(0,"narrow")}`}(a)}(e,t):t}function d(e,t,a,n,r){if(t&&"date"===r)return{timeZone:"UTC",timeZoneName:void 0};let l=n.hour,s="timestamp-offset"===r?void 0:e??"UTC",o=a===i.L;return{timeZone:o?s:a,timeZoneName:o&&l?"shortOffset":void 0}}function c(e){let t=new Set(["etc/utc","etc/gmt","gmt"]),a=new Set(Intl.supportedValuesOf("timeZone").map(e=>e.toLowerCase()));return"system"===e||e===i.L||t.has(e.toLowerCase())||a.has(e.toLowerCase())}function m(e){return e===i.L?n.GB.instance:"UTC"===e||"Etc/UTC"===e?s.mQ.utcInstance:(0,r.p)(e)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2869],{37838(t,e,o){o.d(e,{A:()=>Ht});var i,r=o(32198),s=o(5757),n=o(69540),l=o(7762),a=o(25482),p=o(4718),d=o(53966),u=o(17676),c=o(91429),y=o(78888),h=o(30524),m=o(51447),g=o(89893),f=o(84424);let v=i=class extends f.A{constructor(t){super(t),this.creator=null,this.destroyer=null,this.outFields=null,this.type="custom"}clone(){return new i({creator:this.creator,destroyer:this.destroyer,outFields:Array.isArray(this.outFields)?(0,p.o8)(this.outFields):null})}};(0,r.Cg)([(0,c.MZ)()],v.prototype,"creator",void 0),(0,r.Cg)([(0,c.MZ)()],v.prototype,"destroyer",void 0),(0,r.Cg)([(0,c.MZ)()],v.prototype,"outFields",void 0),(0,r.Cg)([(0,c.MZ)({type:["custom"],readOnly:!0})],v.prototype,"type",void 0),v=i=(0,r.Cg)([(0,c.$K)("esri.popup.content.CustomContent")],v);const w=v;var C;let M=C=class extends a.o{constructor(t){super(t),this.title=null,this.expression=null,this.returnType="dictionary"}clone(){return new C({title:this.title,expression:this.expression})}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],M.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],M.prototype,"expression",void 0),(0,r.Cg)([(0,c.MZ)({type:["dictionary"],readOnly:!0,json:{read:!1,write:!0}})],M.prototype,"returnType",void 0),M=C=(0,r.Cg)([(0,c.$K)("esri.popup.ElementExpressionInfo")],M);const x=M;var F;let Z=F=class extends f.A{constructor(t){super(t),this.expressionInfo=null,this.type="expression"}clone(){return new F({expressionInfo:this.expressionInfo?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:x,json:{write:!0}})],Z.prototype,"expressionInfo",void 0),(0,r.Cg)([(0,c.MZ)({type:["expression"],readOnly:!0,json:{read:!1,write:!0}})],Z.prototype,"type",void 0),Z=F=(0,r.Cg)([(0,c.$K)("esri.popup.content.ExpressionContent")],Z);const I=Z;var j=o(66159);let A=class extends a.o{constructor(t){super(t),this.altText=null,this.caption="",this.title="",this.type=null}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],A.prototype,"altText",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],A.prototype,"caption",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],A.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:["image","bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],A.prototype,"type",void 0),A=(0,r.Cg)([(0,c.$K)("esri.popup.content.mixins.MediaInfo")],A);const N=A;var b,S=o(68197),_=o(69622);let R=b=class extends _.A{constructor(t){super(t),this.color=null,this.fieldName=null,this.tooltip=null,this.value=null}clone(){return new b({color:this.color?.clone(),fieldName:this.fieldName,tooltip:this.tooltip,value:this.value})}};(0,r.Cg)([(0,c.MZ)()],R.prototype,"color",void 0),(0,r.Cg)([(0,c.MZ)()],R.prototype,"fieldName",void 0),(0,r.Cg)([(0,c.MZ)()],R.prototype,"tooltip",void 0),(0,r.Cg)([(0,c.MZ)()],R.prototype,"value",void 0),R=b=(0,r.Cg)([(0,c.$K)("esri.popup.content.support.ChartMediaInfoValueSeries")],R);const O=R;var T;let $=T=class extends a.o{constructor(t){super(t),this.colors=null,this.fields=[],this.normalizeField=null,this.series=[],this.tooltipField=null}clone(){return new T({colors:(0,p.o8)(this.colors),fields:(0,p.o8)(this.fields),normalizeField:this.normalizeField,series:(0,p.o8)(this.series),tooltipField:this.tooltipField})}};(0,r.Cg)([(0,c.MZ)({type:[S.A],json:{type:[[y.jz]],write:!0}})],$.prototype,"colors",void 0),(0,r.Cg)([(0,c.MZ)({type:[String],json:{write:{isRequired:!0}}})],$.prototype,"fields",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],$.prototype,"normalizeField",void 0),(0,r.Cg)([(0,c.MZ)({type:[O],json:{read:!1}})],$.prototype,"series",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],$.prototype,"tooltipField",void 0),$=T=(0,r.Cg)([(0,c.$K)("esri.popup.content.support.ChartMediaInfoValue")],$);const K=$;let E=class extends N{constructor(t){super(t),this.type=null,this.value=void 0}};(0,r.Cg)([(0,c.MZ)({type:["bar-chart","column-chart","line-chart","pie-chart"],readOnly:!0,json:{read:!1,write:!0}})],E.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)({type:K,json:{write:{isRequired:!0}}})],E.prototype,"value",void 0),E=(0,r.Cg)([(0,c.$K)("esri.popup.content.mixins.ChartMediaInfo")],E);const B=E,k=(0,o(66552).O)()({barchart:"bar-chart",columnchart:"column-chart",linechart:"line-chart",piechart:"pie-chart"});var J;let L=J=class extends B{constructor(t){super(t),this.type="bar-chart"}clone(){return new J({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["bar-chart"],readOnly:!0,json:{type:["barchart"],read:!1,write:{writer:k.write,isRequired:!0}}})],L.prototype,"type",void 0),L=J=(0,r.Cg)([(0,c.$K)("esri.popup.content.BarChartMediaInfo")],L);const q=L;var D;let U=D=class extends B{constructor(t){super(t),this.type="column-chart"}clone(){return new D({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["column-chart"],readOnly:!0,json:{type:["columnchart"],read:!1,write:{writer:k.write,isRequired:!0}}})],U.prototype,"type",void 0),U=D=(0,r.Cg)([(0,c.$K)("esri.popup.content.ColumnChartMediaInfo")],U);const W=U;var z;let P=z=class extends a.o{constructor(t){super(t),this.linkURL=null,this.sourceURL=null}clone(){return new z({linkURL:this.linkURL,sourceURL:this.sourceURL})}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],P.prototype,"linkURL",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:{isRequired:!0}}})],P.prototype,"sourceURL",void 0),P=z=(0,r.Cg)([(0,c.$K)("esri.popup.content.support.ImageMediaInfoValue")],P);const G=P;var V;let H=V=class extends N{constructor(t){super(t),this.refreshInterval=0,this.type="image",this.value=void 0}clone(){return new V({altText:this.altText,title:this.title,caption:this.caption,refreshInterval:this.refreshInterval,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:Number,json:{write:!0}})],H.prototype,"refreshInterval",void 0),(0,r.Cg)([(0,c.MZ)({type:["image"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],H.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)({type:G,json:{write:{isRequired:!0}}})],H.prototype,"value",void 0),H=V=(0,r.Cg)([(0,c.$K)("esri.popup.content.ImageMediaInfo")],H);const X=H;var Q;let Y=Q=class extends B{constructor(t){super(t),this.type="line-chart"}clone(){return new Q({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["line-chart"],readOnly:!0,json:{type:["linechart"],read:!1,write:{writer:k.write,isRequired:!0}}})],Y.prototype,"type",void 0),Y=Q=(0,r.Cg)([(0,c.$K)("esri.popup.content.LineChartMediaInfo")],Y);const tt=Y;var et;let ot=et=class extends B{constructor(t){super(t),this.type="pie-chart"}clone(){return new et({altText:this.altText,title:this.title,caption:this.caption,value:this.value?.clone()})}};(0,r.Cg)([(0,c.MZ)({type:["pie-chart"],readOnly:!0,json:{type:["piechart"],read:!1,write:{writer:k.write,isRequired:!0}}})],ot.prototype,"type",void 0),ot=et=(0,r.Cg)([(0,c.$K)("esri.popup.content.PieChartMediaInfo")],ot);const it=ot,rt={base:N,key:"type",defaultKeyValue:"image",typeMap:{"bar-chart":q,"column-chart":W,"line-chart":tt,"pie-chart":it,image:X}};var st,nt=o(36005),lt=o(43937);let at=st=class extends f.A{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?X.fromJSON(t):"barchart"===t.type?q.fromJSON(t):"columnchart"===t.type?W.fromJSON(t):"linechart"===t.type?tt.fromJSON(t):"piechart"===t.type?it.fromJSON(t):void 0).filter(Boolean)}writeMediaInfos(t,e){e.mediaInfos=t&&t.map(t=>t.toJSON())}clone(){return new st((0,p.o8)({activeMediaInfoIndex:this.activeMediaInfoIndex,attributes:this.attributes,description:this.description,mediaInfos:this.mediaInfos,title:this.title}))}};(0,r.Cg)([(0,c.MZ)()],at.prototype,"activeMediaInfoIndex",void 0),(0,r.Cg)([(0,c.MZ)({type:Object,json:{write:!0}})],at.prototype,"attributes",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],at.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({types:[rt]})],at.prototype,"mediaInfos",void 0),(0,r.Cg)([(0,nt.w)("mediaInfos")],at.prototype,"readMediaInfos",null),(0,r.Cg)([(0,lt.K)("mediaInfos")],at.prototype,"writeMediaInfos",null),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],at.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:["media"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],at.prototype,"type",void 0),at=st=(0,r.Cg)([(0,c.$K)("esri.popup.content.MediaContent")],at);const pt=at;var dt=o(49852);let ut=class extends((0,n.OU)(f.A)){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,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ut.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{type:y.jz,write:!0}})],ut.prototype,"displayCount",void 0),(0,r.Cg)([(0,c.MZ)({type:["list"],json:{write:{isRequired:!0}}})],ut.prototype,"displayType",void 0),(0,r.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],ut.prototype,"orderByFields",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{type:y.jz,write:{isRequired:!0}}})],ut.prototype,"relationshipId",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ut.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ut.prototype,"type",void 0),ut=(0,r.Cg)([(0,c.$K)("esri.popup.content.RelationshipContent")],ut);const ct=ut;var yt;let ht=yt=class extends f.A{constructor(t){super(t),this.text=null,this.type="text"}clone(){return new yt({text:this.text})}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],ht.prototype,"text",void 0),(0,r.Cg)([(0,c.MZ)({type:["text"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],ht.prototype,"type",void 0),ht=yt=(0,r.Cg)([(0,c.$K)("esri.popup.content.TextContent")],ht);const mt=ht;var gt=o(83342),ft=o(93223);let vt=class extends((0,n.OU)(f.A)){constructor(t){super(t),this.description=null,this.displayCount=null,this.title=null,this.associationTypes=[],this.type="utility-network-associations"}};(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],vt.prototype,"description",void 0),(0,r.Cg)([(0,c.MZ)({type:Number,json:{type:y.jz,write:!0}})],vt.prototype,"displayCount",void 0),(0,r.Cg)([(0,c.MZ)({type:String,json:{write:!0}})],vt.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)({type:[gt.A],json:{write:!0}})],vt.prototype,"associationTypes",void 0),(0,r.Cg)([(0,ft.e)({utilityNetworkAssociations:"utility-network-associations"})],vt.prototype,"type",void 0),vt=(0,r.Cg)([(0,c.$K)("esri.popup.content.UtilityNetworkAssociationsContent")],vt);const wt=vt;(0,m.uW)(d.A.getLogger("esri.popup.content"),"esri.popup.content",{replacement:"Individual content module imports",version:"5.2",warnOnce:!0});const Ct=g.A,Mt=I,xt=j.A,Ft={base:null,key:"type",typeMap:{attachment:Ct,media:pt,text:mt,expression:Mt,field:xt,relationship:ct,utilityNetworkAssociations:wt}},Zt={base:null,key:"type",typeMap:{attachment:Ct,media:pt,text:mt,expression:Mt,field:xt,relationship:ct}};var It,jt=o(93705),At=o(41227);let Nt=It=class extends a.o{constructor(t){super(t),this.returnTopmostRaster=null,this.showNoDataRecords=null}clone(){return new It({showNoDataRecords:this.showNoDataRecords,returnTopmostRaster:this.returnTopmostRaster})}};(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Nt.prototype,"returnTopmostRaster",void 0),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],Nt.prototype,"showNoDataRecords",void 0),Nt=It=(0,r.Cg)([(0,c.$K)("esri.popup.LayerOptions")],Nt);const bt=Nt;var St;let _t=St=class extends a.o{constructor(t){super(t),this.showRelatedRecords=null,this.orderByFields=null}clone(){return new St({showRelatedRecords:this.showRelatedRecords,orderByFields:this.orderByFields?(0,p.o8)(this.orderByFields):null})}};(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{write:!0}})],_t.prototype,"showRelatedRecords",void 0),(0,r.Cg)([(0,c.MZ)({type:[dt.A],json:{write:!0}})],_t.prototype,"orderByFields",void 0),_t=St=(0,r.Cg)([(0,c.$K)("esri.popup.RelatedRecordsInfo")],_t);const Rt=_t;var Ot=o(4902);let Tt=class extends((0,Ot.s)(_.A)){constructor(t){super(t),this.active=!1,this.disabled=!1,this.icon=null,this.id=null,this.indicator=!1,this.title=null,this.type=null,this.visible=!0}_internalSetClassName(t){return this._set("className",t),this}get className(){return this._get("className")??null}set className(t){(0,m.Lx)(d.A.getLogger(this),"className",{replacement:"icon",version:"5.1",warnOnce:!0}),this._set("className",t)}};(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"active",void 0),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"className",null),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"disabled",void 0),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"icon",void 0),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"id",void 0),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"indicator",void 0),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"title",void 0),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"type",void 0),(0,r.Cg)([(0,c.MZ)()],Tt.prototype,"visible",void 0),Tt=(0,r.Cg)([(0,c.$K)("esri.support.actions.ActionBase")],Tt);const $t=Tt;var Kt;let Et=Kt=class extends $t{constructor(t){super(t),this.image=null,this.type="button"}clone(){return new Kt({active:this.active,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image})._internalSetClassName(this.className)}};(0,r.Cg)([(0,c.MZ)()],Et.prototype,"image",void 0),Et=Kt=(0,r.Cg)([(0,c.$K)("esri.support.actions.ActionButton")],Et);const Bt=Et;var kt;let Jt=kt=class extends $t{constructor(t){super(t),this.image=null,this.type="toggle",this.value=!1}clone(){return new kt({active:this.active,disabled:this.disabled,icon:this.icon,id:this.id,indicator:this.indicator,title:this.title,visible:this.visible,image:this.image,value:this.value})._internalSetClassName(this.className)}};(0,r.Cg)([(0,c.MZ)()],Jt.prototype,"image",void 0),(0,r.Cg)([(0,c.MZ)()],Jt.prototype,"value",void 0),Jt=kt=(0,r.Cg)([(0,c.$K)("esri.support.actions.ActionToggle")],Jt);const Lt=Jt;var qt;const Dt="relationships/",Ut="expression/",Wt=l.A.ofType({key:"type",defaultKeyValue:"button",base:$t,typeMap:{button:Bt,toggle:Lt}}),zt={base:f.A,key:"type",typeMap:{media:pt,custom:w,text:mt,attachments:g.A,fields:j.A,expression:I,relationship:ct,utilityNetworkAssociations:wt}},Pt=new Set(["attachments","fields","media","text","expression","relationship"]),Gt=new Set([...Pt,"utility-network-associations"]);let Vt=class extends((0,n.OU)(a.o)){static{qt=s.P}constructor(t){super(t),this[qt]=!0,this.actions=null,this.expressionInfos=null,this.fieldInfos=null,this.layerOptions=null,this.lastEditInfoEnabled=!0,this.outFields=null,this.overwriteActions=!1,this.returnGeometry=!1,this.title=""}get content(){return this._get("content")??""}set content(t){this._set("content",t)}castContent(t){return Array.isArray(t)?t.map(t=>(0,y.aq)(zt,t)):"string"==typeof t||"function"==typeof t||t instanceof HTMLElement||(0,u.$X)(t)?t:(d.A.getLogger(this).error("content error","unsupported content value",{value:t}),null)}readContent(t,e){let{popupElements:o}=e;return Array.isArray(o)&&o.length>0?this._readPopupInfoElements(e.description,e.mediaInfos,o):this._readPopupInfo(e)}writeWebSceneContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeWebMapContent(t,e,o,i){this._writePopupTemplateContent(t,e,i)}writeFieldInfos(t,e,o,i){let{content:r}=this,s=Array.isArray(r)?r:null,{writeFieldFormat:n,...l}=i||{};if(t){let o=s?s.filter(t=>"fields"===t.type):[],i=o.length&&o.every(t=>t.fieldInfos?.length);e.fieldInfos=t.filter(Boolean).map(t=>{let e=t.toJSON(l);return i&&(e.visible=!1),e})}if(s)for(let t of s)"fields"===t.type&&this._writeFieldsContent(t,e,l)}writeLayerOptions(t,e,o,i){e[o]=!t||null===t.showNoDataRecords&&null===t.returnTopmostRaster?null:t.toJSON(i)}writeTitle(t,e){e.title=t||""}async collectRequiredFields(t,e,o){let i=this.expressionInfos||[];await this._collectExpressionInfoFields(t,e,o,[...i,...this._getContentExpressionInfos(this.content,i)]),(0,h._w)(t,e,[...this.outFields||[],...this._getActionsFields(this.actions),...this._getTitleFields(this.title),...this._getContentFields(this.content)])}async getRequiredFields(t,e){let o=new Set;return await this.collectRequiredFields(o,t,e),[...o].sort()}_writePopupTemplateContent(t,e,o){"string"!=typeof t?Array.isArray(t)&&(e.popupElements=t.filter(t=>"web-scene"===o?.origin?Pt.has(t.type):Gt.has(t.type)).map(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}_writeFieldsContent(t,e,o){let i=t.fieldInfos;if(!Array.isArray(i)||!i.length)return;let r=e.fieldInfos;if(Array.isArray(r))for(let t of i){let e=r.find(e=>e.fieldName?.toLowerCase()===t.fieldName?.toLowerCase());e?e.visible=!0:r.push(t.toJSON(o))}else e.fieldInfos=i.map(t=>t.toJSON(o))}_writeAttachmentContent(t){t.showAttachments||=!0}_writeRelationshipContent(t,e){let o=t.orderByFields?.map(e=>this._toFieldOrderJSON(e,t.relationshipId))||[],i=[...e.relatedRecordsInfo?.orderByFields||[],...o];e.relatedRecordsInfo={showRelatedRecords:!0,...i?.length&&{orderByFields:i}}}_writeTextContent(t,e){!e.description&&t.text&&(e.description=t.text)}_writeMediaContent(t,e){if(!Array.isArray(t.mediaInfos)||!t.mediaInfos.length)return;let o=(0,p.o8)(t.mediaInfos);e.mediaInfos=Array.isArray(e.mediaInfos)?[...e.mediaInfos,...o]:o}_readPopupInfoElements(t,e,o){let i={description:!1,mediaInfos:!1};return o.map(o=>"media"===o.type?(!o.mediaInfos&&e&&!i.mediaInfos&&(o.mediaInfos=e,i.mediaInfos=!0),pt.fromJSON(o)):"text"===o.type?(!o.text&&t&&!i.description&&(o.text=t,i.description=!0),mt.fromJSON(o)):"attachments"===o.type?g.A.fromJSON(o):"fields"===o.type?j.A.fromJSON(o):"expression"===o.type?I.fromJSON(o):"relationship"===o.type?ct.fromJSON(o):"utilityNetworkAssociations"===o.type?wt.fromJSON(o):void 0).filter(Boolean)}_toRelationshipContent(t){let{field:e,order:o}=t;if(!e?.startsWith(Dt))return null;let i=e.replace(Dt,"").split("/");if(2!==i.length)return null;let r=parseInt(i[0],10),s=i[1];return!Number.isNaN(r)&&s?ct.fromJSON({relationshipId:r,orderByFields:[{field:s,order:o}]}):null}_toFieldOrderJSON(t,e){let{order:o,field:i}=t;return{field:`${Dt}${e}/${i}`,order:o}}_readPopupInfo({description:t,mediaInfos:e,showAttachments:o,relatedRecordsInfo:i={showRelatedRecords:!1}}){let r=[];t?r.push(new mt({text:t})):r.push(new j.A),Array.isArray(e)&&e.length&&r.push(pt.fromJSON({mediaInfos:e})),o&&r.push(g.A.fromJSON({displayType:"auto"}));let{showRelatedRecords:s,orderByFields:n}=i;return s&&n?.length&&n.forEach(t=>{let e=this._toRelationshipContent(t);e&&r.push(e)}),r.length?r:t}_getContentElementFields(t){let 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){let 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):"relationship"===e||"utility-network-associations"===e?[...this._extractFieldNames(t.title),...this._extractFieldNames(t.description)]:[]}_getMediaInfoFields(t){let{caption:e,title:o,value:i}=t,{fields:r,normalizeField:s,tooltipField:n,sourceURL:l,linkURL:a}=i||{},p=[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(l),...this._extractFieldNames(a),...r??[]];return s&&p.push(s),n&&p.push(n),p}_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,o,i){i&&await Promise.all(i.map(i=>(0,h.Dx)(t,e,o,i.expression)))}_getFieldInfoFields(t){return t?t.filter(({fieldName:t,visible:e})=>!(void 0!==e&&!e||!t||t.startsWith(Dt)||t.startsWith(Ut))).map(t=>t.fieldName):[]}_getActionsFields(t){return t?t.toArray().reduce((t,e)=>[...t,...this._getActionFields(e)],[]):[]}_getActionFields(t){let{className:e,title:o,type:i}=t,r="button"===i||"toggle"===i?t.image:"";return[...this._extractFieldNames(o),...this._extractFieldNames(e),...this._extractFieldNames(r)]}_getTitleFields(t){return"string"==typeof t?this._extractFieldNames(t):[]}_extractFieldNames(t){return(0,h.nw)(t).filter(t=>!(t.startsWith(Dt)||t.startsWith(Ut)))}};(0,r.Cg)([(0,c.MZ)({type:Wt})],Vt.prototype,"actions",void 0),(0,r.Cg)([(0,c.MZ)()],Vt.prototype,"content",null),(0,r.Cg)([(0,c.wg)("content")],Vt.prototype,"castContent",null),(0,r.Cg)([(0,nt.w)("content",["description","fieldInfos","popupElements","mediaInfos","showAttachments","relatedRecordsInfo"])],Vt.prototype,"readContent",null),(0,r.Cg)([(0,lt.K)("web-scene","content",{popupElements:{type:l.A.ofType(Zt)},showAttachments:{type:Boolean},mediaInfos:{type:l.A.ofType(rt)},description:{type:String},relatedRecordsInfo:{type:Rt}})],Vt.prototype,"writeWebSceneContent",null),(0,r.Cg)([(0,lt.K)("content",{popupElements:{type:l.A.ofType(Ft)},showAttachments:{type:Boolean},mediaInfos:{type:l.A.ofType(rt)},description:{type:String},relatedRecordsInfo:{type:Rt}})],Vt.prototype,"writeWebMapContent",null),(0,r.Cg)([(0,c.MZ)({type:[jt.A],json:{write:!0}})],Vt.prototype,"expressionInfos",void 0),(0,r.Cg)([(0,c.MZ)({type:[At.A]})],Vt.prototype,"fieldInfos",void 0),(0,r.Cg)([(0,lt.K)("fieldInfos")],Vt.prototype,"writeFieldInfos",null),(0,r.Cg)([(0,c.MZ)({type:bt})],Vt.prototype,"layerOptions",void 0),(0,r.Cg)([(0,lt.K)("layerOptions")],Vt.prototype,"writeLayerOptions",null),(0,r.Cg)([(0,c.MZ)({type:Boolean,json:{read:{source:"showLastEditInfo"},write:{target:"showLastEditInfo"},default:!0}})],Vt.prototype,"lastEditInfoEnabled",void 0),(0,r.Cg)([(0,c.MZ)()],Vt.prototype,"outFields",void 0),(0,r.Cg)([(0,c.MZ)()],Vt.prototype,"overwriteActions",void 0),(0,r.Cg)([(0,c.MZ)()],Vt.prototype,"returnGeometry",void 0),(0,r.Cg)([(0,c.MZ)({json:{type:String}})],Vt.prototype,"title",void 0),(0,r.Cg)([(0,lt.K)("title")],Vt.prototype,"writeTitle",null),Vt=(0,r.Cg)([(0,c.$K)("esri.PopupTemplate")],Vt);const Ht=Vt},60950(t,e,o){o.d(e,{E_:()=>r});const i=Symbol("popupProvider");function r(t){return function(t){return!!t&&i in t}(t)?t[i]:null}o.d(e,["ym",0,i])},39663(t,e,o){o.d(e,{$P:()=>J,iu:()=>x,HK:()=>F,PK:()=>O,fg:()=>M,qH:()=>Z});var i=o(32198),r=o(10107),s=o(64108),n=o(69540),l=o(25482);let a=class extends((0,n.OU)(l.o)){constructor(){super(...arguments),this.type=null}};(0,i.Cg)([(0,r.MZ)({type:["date-time","number"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],a.prototype,"type",void 0),a=(0,i.Cg)([(0,s.$)("esri.layers.support.FieldFormat")],a);const p=a,d="auto";let u=class extends p{constructor(t){super(t),this.dateStyle=null,this.hour12=d,this.month=null,this.timeStyle=null,this.type="date-time",this.year=null}};(0,i.Cg)([(0,r.MZ)({type:["full","long","medium","short"],json:{write:!0}})],u.prototype,"dateStyle",void 0),(0,i.Cg)([(0,r.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:d,write:!0}})],u.prototype,"hour12",void 0),(0,i.Cg)([(0,r.MZ)({type:["long","short"],json:{write:!0}})],u.prototype,"month",void 0),(0,i.Cg)([(0,r.MZ)({type:["full","long","medium","short"],json:{write:!0}})],u.prototype,"timeStyle",void 0),(0,i.Cg)([(0,r.MZ)({type:["date-time"]})],u.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:["numeric"],json:{write:!0}})],u.prototype,"year",void 0),u=(0,i.Cg)([(0,s.$)("esri.layers.support.DateTimeFieldFormat")],u);const c=u;var y=o(30524),h=o(78888);const m={min:0,max:20},g="decimal",f="auto";let v=class extends p{constructor(t){super(t),this.maximumFractionDigits=2,this.minimumFractionDigits=0,this.style=g,this.type="number",this.useGrouping=f}};(0,i.Cg)([(0,r.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:2,write:!0}})],v.prototype,"maximumFractionDigits",void 0),(0,i.Cg)([(0,r.MZ)({type:h.jz,nonNullable:!0,range:m,json:{default:0,write:!0}})],v.prototype,"minimumFractionDigits",void 0),(0,i.Cg)([(0,r.MZ)({type:["decimal"],nonNullable:!0,json:{default:g,write:!0}})],v.prototype,"style",void 0),(0,i.Cg)([(0,r.MZ)({type:["number"]})],v.prototype,"type",void 0),(0,i.Cg)([(0,r.MZ)({type:["always","auto","never"],nonNullable:!0,json:{default:f,write:!0}})],v.prototype,"useGrouping",void 0),v=(0,i.Cg)([(0,s.$)("esri.layers.support.NumberFieldFormat")],v);const w=v;var C=o(68780);const M={base:p,key:"type",errorContext:"field-configuration-field-format",typeMap:{"date-time":c,number:w}};function x(t,e){let{format:o}=t;return e&&Z(e)?o?F(o,e):J(e,{hour12:"always",useGrouping:"always"}):null}function F(t,e){let{dateFormat:o}=t;if(!e)return o?A(t):j(t);if(!Z(e))return;let i={hour12:"always"};switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return I(t);case"single":case"double":return j(t);case"date":case"timestamp-offset":return o?A(t):J(e,i);case"date-only":return o?function(t){return new c({dateStyle:N(t),year:R(t),month:S(t)})}(t):J(e);case"time-only":return o?function(t){return new c({timeStyle:_(t),hour12:b(t)})}(t):J(e,i)}}function Z(t){return(0,y.Jl)(t)&&((0,y.WA)(t)||(0,y.vE)(t)||(0,y.zD)(t)||(0,y.OH)(t)||(0,y.Ah)(t))}function I(t){return new w({useGrouping:t.digitSeparator?"always":"never"})}function j(t){let e=I(t),{places:o}=t;return e.minimumFractionDigits=o??0,e.maximumFractionDigits=o??2,e}function A(t){return new c({dateStyle:N(t),year:R(t),month:S(t),timeStyle:_(t),hour12:b(t)})}function N(t){let{dateFormat:e}=t;return e?e.startsWith("short-date")?"short":e.startsWith("day-short-month-year")?"medium":e.startsWith("long-month-day-year")?"long":e.startsWith("long-date")?"full":null:null}function b(t){return t.dateFormat?.endsWith("-24")?"never":"always"}function S(t){switch(t.dateFormat){case"short-month-year":return"short";case"long-month-year":return"long";default:return null}}function _(t){let{dateFormat:e}=t;return e?e.includes("short-time")?"short":e.includes("long-time")?"medium":null:null}function R(t){switch(t.dateFormat){case"short-month-year":case"long-month-year":case"year":return"numeric";default:return null}}function O(t,e){let o="number"===t.type,i="date-time"===t.type;if(!e)return o?$(t):i?K(t):null;if(Z(e))switch(e.type){case"integer":case"small-integer":case"big-integer":case"long":return o?T(t):null;case"single":case"double":return o?$(t):null;case"date":case"timestamp-offset":return i?K(t):null;case"date-only":return i?function(t){let e,o=E(t),i="numeric"===t.year?"year":null,r=k(t);return o?e=o:i&&r?e=`${r}-${i}`:i&&(e=i),e?new C.A({dateFormat:e}):null}(t):null;case"time-only":return i?function(t){let e,o=B(t),i="never"===t.hour12?"24":null;return o&&i?e=`short-date-${o}-${i}`:o&&(e=`short-date-${o}`),e?new C.A({dateFormat:e}):null}(t):null}}function T(t){return new C.A({digitSeparator:"never"!==t.useGrouping})}function $(t){let e=T(t);return e.places=t.maximumFractionDigits,e}function K(t){let e,o=E(t),i=B(t),r="never"===t.hour12?"24":null,s="numeric"===t.year?"year":null,n=k(t);return o&&i&&r?e=`${o}-${i}-${r}`:o&&i?e=`${o}-${i}`:o?e=o:s&&n?e=`${n}-${s}`:s&&(e=s),e?new C.A({dateFormat:e}):null}function E(t){switch(t.dateStyle){case"short":return"short-date";case"medium":return"day-short-month-year";case"long":return"long-month-day-year";case"full":return"long-date";default:return}}function B(t){return t.timeStyle&&("short"===t.timeStyle?"short-time":"long-time")}function k(t){switch(t.month){case"short":return"short-month";case"long":return"long-month";default:return}}function J(t,e){if(!Z(t))return;let o=e?.useGrouping??"auto",i=e?.hour12??"auto";switch(t.type){case"integer":case"small-integer":case"big-integer":case"long":return new w({minimumFractionDigits:0,maximumFractionDigits:0,useGrouping:o});case"single":case"double":return new w({minimumFractionDigits:0,maximumFractionDigits:2,useGrouping:o});case"date":case"timestamp-offset":return new c({dateStyle:"short",timeStyle:"short",hour12:i});case"date-only":return new c({dateStyle:"short"});case"time-only":return new c({timeStyle:"short",hour12:i})}}},93705(t,e,o){var i,r=o(32198),s=o(25482),n=o(91429);let l=i=class extends s.o{constructor(t){super(t),this.name=null,this.title=null,this.expression=null,this.returnType=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"name",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"expression",void 0),(0,r.Cg)([(0,n.MZ)({type:["string","number"],json:{write:!0}})],l.prototype,"returnType",void 0),l=i=(0,r.Cg)([(0,n.$K)("esri.popup.ExpressionInfo")],l);const a=l;o.d(e,["A",0,a])},41227(t,e,o){var i=o(32198),r=o(69540),s=o(66552),n=o(25482),l=o(91429),a=o(39663),p=o(68780),d=o(36005),u=o(93223);let c=class extends((0,r.OU)(n.o)){constructor(t){super(t),this.fieldName=null,this.isEditable=!0,this.label=null,this.statisticType=null,this.stringFieldOption="text-box",this.tooltip=null,this.visible=!0}set fieldFormat(t){this._set("fieldFormat",t),this._set("format",t?(0,a.PK)(t):null)}set format(t){this._set("format",t),this._set("fieldFormat",t?(0,a.HK)(t):null)}readFormat(t,e){if(!e.fieldFormat)return t?p.A.fromJSON(t):null}clone(){let t=super.clone();return t._set("format",this.format?.clone()),t._set("fieldFormat",this.fieldFormat?.clone()),t}};(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,types:a.fg,json:{write:{overridePolicy(t,e,o){let{fieldName:i}=this;return{enabled:!(!i||i.startsWith("expression/")||i.startsWith("relationships/")||!o?.writeFieldFormat)}}}}})],c.prototype,"fieldFormat",null),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"fieldName",void 0),(0,i.Cg)([(0,l.MZ)({value:null,clonable:!1,type:p.A,json:{write:!0}})],c.prototype,"format",null),(0,i.Cg)([(0,d.w)("format")],c.prototype,"readFormat",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:{alwaysWriteDefaults:!0},default:!0}})],c.prototype,"isEditable",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"label",void 0),(0,i.Cg)([(0,l.MZ)({type:["count","sum","min","max","avg","stddev","var"],json:{write:!0}})],c.prototype,"statisticType",void 0),(0,i.Cg)([(0,u.e)(new s.J({richtext:"rich-text",textarea:"text-area",textbox:"text-box"}),{default:"text-box"})],c.prototype,"stringFieldOption",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"tooltip",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"visible",void 0),c=(0,i.Cg)([(0,l.$K)("esri.popup.FieldInfo")],c);const y=c;o.d(e,["A",0,y])},89893(t,e,o){o.d(e,{A:()=>y});var i=o(32198),r=o(69540),s=o(91429),n=o(84424),l=o(66552),a=o(25482);const p=new l.J({asc:"ascending",desc:"descending"});let d=class extends((0,r.OU)(a.o)){constructor(t){super(t),this.field=null,this.order="ascending"}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,i.Cg)([(0,s.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],d.prototype,"order",void 0),d=(0,i.Cg)([(0,s.$K)("esri.popup.support.AttachmentsOrderByInfo")],d);const u=d;let c=class extends((0,r.OU)(n.A)){constructor(t){super(t),this.attachmentKeywords=null,this.attachmentTypes=null,this.description=null,this.displayType="auto",this.orderByFields=null,this.title=null,this.type="attachments"}};(0,i.Cg)([(0,s.MZ)({type:[String],json:{write:!0}})],c.prototype,"attachmentKeywords",void 0),(0,i.Cg)([(0,s.MZ)({type:[["application","audio","image","model","text","video"]],json:{write:!0}})],c.prototype,"attachmentTypes",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"description",void 0),(0,i.Cg)([(0,s.MZ)({type:["auto","preview","list","carousel"],json:{write:!0}})],c.prototype,"displayType",void 0),(0,i.Cg)([(0,s.MZ)({type:[u],json:{write:!0}})],c.prototype,"orderByFields",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({type:["attachments"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],c.prototype,"type",void 0),c=(0,i.Cg)([(0,s.$K)("esri.popup.content.AttachmentsContent")],c);const y=c},84424(t,e,o){var i=o(32198),r=o(25482),s=o(91429);let n=class extends r.o{constructor(t){super(t),this.type=null}};(0,i.Cg)([(0,s.MZ)({type:["attachments","custom","fields","media","text","expression","relationship","utility-network-associations"],readOnly:!0,json:{read:!1,write:!0}})],n.prototype,"type",void 0),n=(0,i.Cg)([(0,s.$K)("esri.popup.content.Content")],n);const l=n;o.d(e,["A",0,l])},66159(t,e,o){var i,r=o(32198),s=o(4718),n=o(91429),l=o(41227),a=o(84424);let p=i=class extends a.A{constructor(t){super(t),this.attributes=null,this.description=null,this.fieldInfos=null,this.title=null,this.type="fields"}clone(){return new i((0,s.o8)({attributes:this.attributes,description:this.description,fieldInfos:this.fieldInfos,title:this.title}))}};(0,r.Cg)([(0,n.MZ)({type:Object,json:{write:!0}})],p.prototype,"attributes",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,r.Cg)([(0,n.MZ)({type:[l.A],json:{write:!0}})],p.prototype,"fieldInfos",void 0),(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"title",void 0),(0,r.Cg)([(0,n.MZ)({type:["fields"],readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],p.prototype,"type",void 0),p=i=(0,r.Cg)([(0,n.$K)("esri.popup.content.FieldsContent")],p);const d=p;o.d(e,["A",0,d])},68780(t,e,o){var i=o(32198),r=o(69540),s=o(25482),n=o(91429),l=o(78888),a=o(97770),p=o(93223);let d=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.dateFormat=null,this.digitSeparator=!1,this.places=null}};(0,i.Cg)([(0,p.e)(a._v)],d.prototype,"dateFormat",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],d.prototype,"digitSeparator",void 0),(0,i.Cg)([(0,n.MZ)({type:l.jz,json:{write:!0}})],d.prototype,"places",void 0),d=(0,i.Cg)([(0,n.$K)("esri.popup.support.FieldInfoFormat")],d);const u=d;o.d(e,["A",0,u])},49852(t,e,o){var i,r=o(32198),s=o(25482),n=o(91429);let l=i=class extends s.o{constructor(t){super(t),this.field=null,this.order=null}clone(){return new i({field:this.field,order:this.order})}};(0,r.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],l.prototype,"field",void 0),(0,r.Cg)([(0,n.MZ)({type:["asc","desc"],json:{write:!0}})],l.prototype,"order",void 0),l=i=(0,r.Cg)([(0,n.$K)("esri.popup.support.RelatedRecordsInfoFieldOrder")],l);const a=l;o.d(e,["A",0,a])},83342(t,e,o){var i=o(32198),r=o(69540),s=o(25482),n=o(91429),l=o(78888);let a=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.title=null,this.description=null,this.type=null,this.associatedNetworkSourceId=null,this.associatedAssetGroup=null,this.associatedAssetType=null}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"title",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],a.prototype,"description",void 0),(0,i.Cg)([(0,n.MZ)({type:["attachment","connectivity","container","content","structure"],json:{write:!0}})],a.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedNetworkSourceId",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedAssetGroup",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{type:l.jz,write:!0}})],a.prototype,"associatedAssetType",void 0),a=(0,i.Cg)([(0,n.$K)("esri.popup.support.UtilityNetworkAssociationType")],a);const p=a;o.d(e,["A",0,p])},78553(t,e,o){o.d(e,{D:()=>s,p:()=>r});var i=o(78888);function r(t){let e=(0,i.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){let e=1-t/100;return Math.max(0,Math.min(e,1))}}}]);