@arcgis/core 5.0.0-next.5 → 5.0.0-next.7

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 (137) hide show
  1. package/analysis/VolumeMeasurement/volumeMeasurementConfiguration.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/020c8913d8e35d63080b.js +1 -0
  4. package/assets/esri/core/workers/chunks/{c2b47a7dc961863d283f.js → 02e69f0c63d97661da60.js} +1 -1
  5. package/assets/esri/core/workers/chunks/087973e7c4fea5fcfa5e.js +1 -0
  6. package/assets/esri/core/workers/chunks/{929ece362604dc301229.js → 17acde0245ecd956306c.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{8cea114168d849c38b1b.js → 20278683bddc8c2d8136.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{dc4982b0ac007bd70213.js → 22d6b8102e75bdef204c.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{3271614322ba4b44fb5a.js → 279366e6b743f9680603.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{f7c99e9c8d19352af38d.js → 3ac7562ea90f91a9f30c.js} +1 -1
  11. package/assets/esri/core/workers/chunks/3f3d492f1093b7832aab.js +1 -0
  12. package/assets/esri/core/workers/chunks/464d42bebb365287808d.js +1 -0
  13. package/assets/esri/core/workers/chunks/{d570c75a425aa29672c8.js → 4d599008e1ea42321b37.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{0686243904381ef863dc.js → 53bd8996e8812f1ad7b2.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{762fe93015b705546188.js → 5bd36dbf46c25bd961c8.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{b7a17927e14f502006b4.js → 5ea0c62016d56990787b.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{2ea6985da4eb0107bb9d.js → 5fc7b61f467f1d60a284.js} +1 -1
  18. package/assets/esri/core/workers/chunks/{a87521ebe632bf783ef4.js → 62a49cfd9a2508950e9f.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{ec13053af1999701464a.js → 6826fe54562dcdc054d7.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{309c5f69ea06f3081d83.js → 73487b9d85e726e9c012.js} +1 -1
  21. package/assets/esri/core/workers/chunks/7413e582bc2b16af6a0f.js +1 -0
  22. package/assets/esri/core/workers/chunks/{88d942cd25bef74fd50a.js → 7461124454bfb4fb6474.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{147ad5fdd02f46b6da24.js → 7544316a75dbd981aea6.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{0f8847f9ae3068833fa4.js → 75bf27271a31e26e1b21.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{630efe10c871425b6a95.js → 76ae1702fecc7ad7017c.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{de1f75c907152df7e788.js → 794748fd1edc29a621cd.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{e1258b6a404e58878c7a.js → 7aaaebbabee27690283c.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{6a69dafeb7c9ca8a3d84.js → 7c4a63aeead2505d6f02.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{d84373a6ec94dcfec8c2.js → 88074189fa10c335370b.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{a8c4fd779e454e4075c4.js → 8833c3d168951be4bf20.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{85622fe99f4d08afe875.js → 8a314b3790313e6dc5db.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{b0b2670596d6d8c32b5e.js → 8c056eac35d05d9524b7.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{1a713dcc9971e1935401.js → 8f56f298e7c1a283f407.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{dabc5a38a472c9719df9.js → 8ffd4710d168c2fcfd96.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{1da74aa308ded5748ef5.js → 90250e9239c173aace88.js} +1 -1
  36. package/assets/esri/core/workers/chunks/90b2b43b8b54c9a1ec35.js +1 -0
  37. package/assets/esri/core/workers/chunks/90f8b4bda28af43ea019.js +1 -0
  38. package/assets/esri/core/workers/chunks/{89027f6800e17fab8973.js → 9486032af3e934d85582.js} +1 -1
  39. package/assets/esri/core/workers/chunks/95c594a87b732f5c4979.js +1 -0
  40. package/assets/esri/core/workers/chunks/{239377336a2009caea01.js → 99859dce1925b406ccd0.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{a137c27ce078bea44f89.js → 9e8dceef4c961f56940d.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{f5b7e7f2860a825ed373.js → 9fac5a12e878cd745354.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{f779034623980bf9a37c.js → a06bac9b8f9e18874de8.js} +2 -2
  44. package/assets/esri/core/workers/chunks/{01642fe19e81bfa33eb5.js → a395373e3173e6458a56.js} +1 -1
  45. package/assets/esri/core/workers/chunks/a3991ae8caa713d4ddcd.js +1 -0
  46. package/assets/esri/core/workers/chunks/{a6ac1ff89c40f3a4797a.js → a712cdff78fc826acd8c.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{af3fc2562bb6d217adf6.js → aa54b6f2aba6952af149.js} +1 -1
  48. package/assets/esri/core/workers/chunks/ac26e3e77df4302f47a2.js +1 -0
  49. package/assets/esri/core/workers/chunks/af5fc5d6c1d072a27df1.js +1 -0
  50. package/assets/esri/core/workers/chunks/{bc3bcf88b252760e2574.js → b3028b1ff75eafd0c358.js} +1 -1
  51. package/assets/esri/core/workers/chunks/{5875a51b97ee9bd438a0.js → bc241c7735e4efba734a.js} +1 -1
  52. package/assets/esri/core/workers/chunks/{56916e56c20465428dd4.js → be3b874f86f627f4fa98.js} +1 -1
  53. package/assets/esri/core/workers/chunks/c4e4da69969499a89a2c.js +1 -0
  54. package/assets/esri/core/workers/chunks/c8733cd621105afab2ac.js +1 -0
  55. package/assets/esri/core/workers/chunks/ccc0da0e01f023c8aa1f.js +1 -0
  56. package/assets/esri/core/workers/chunks/{c0b7e86860838638537f.js → cd1930f08e1fc8b30b14.js} +1 -1
  57. package/assets/esri/core/workers/chunks/{551c6c89b51b99f4864b.js → d1fe816b6990918c13c7.js} +1 -1
  58. package/assets/esri/core/workers/chunks/{8605ec4678eb4511c715.js → d305a21666b1ed5bf33d.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{037b2548bf85e2d7c6ac.js → d40f57f9fc47f9a9f97c.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{a29d7205394cb8b2a847.js → d97fadbc69e055d183a0.js} +1 -1
  61. package/assets/esri/core/workers/chunks/dedc4583b5f32a278124.js +1 -0
  62. package/assets/esri/core/workers/chunks/{e5bcc44f3dc6fc90835a.js → e5a06ce0ef6a9a90e100.js} +1 -1
  63. package/assets/esri/core/workers/chunks/f0e0a63962784acb4ba1.js +1 -0
  64. package/assets/esri/core/workers/chunks/f4d0ae6be1b3984228d0.js +1 -0
  65. package/assets/esri/core/workers/chunks/{7c5c272612198db83851.js → f5e47eea8720ba84665b.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{fa4411e0a5ac3fcba365.js → f65c0102af17390a50ac.js} +1 -1
  67. package/assets/esri/core/workers/chunks/f6c11c8ac687de3ef1ab.js +1 -0
  68. package/assets/esri/core/workers/chunks/{7596d005a4dc3964b140.js → f6c8beb60f6d29945a2e.js} +1 -1
  69. package/assets/esri/core/workers/chunks/{a2a284d4dd5caaecbc2e.js → f746e3f7ebff2bbdf333.js} +1 -1
  70. package/assets/esri/core/workers/chunks/f9324e88c359c03f35aa.js +1 -0
  71. package/assets/esri/core/workers/chunks/{cfa3164e7fa1884dc2b9.js → facb3886714222772ab2.js} +1 -1
  72. package/assets/esri/core/workers/chunks/{aa6eb55e4fb57c4e8eeb.js → fd2efd1d1cf9d95a87e6.js} +1 -1
  73. package/assets/esri/core/workers/chunks/{fe3f95fda29e4844b153.js → fe77ae6cf232a7a3298e.js} +1 -1
  74. package/assets/esri/core/workers/chunks/{2ce4a0fe4fae63c43a81.js → ff35a077ac6776469805.js} +1 -1
  75. package/assets/esri/themes/base/widgets/_UtilityNetworkTrace.scss +14 -4
  76. package/assets/esri/themes/dark/main.css +1 -1
  77. package/assets/esri/themes/light/main.css +1 -1
  78. package/assets/esri/themes/light/view.css +1 -1
  79. package/config.js +1 -1
  80. package/core/Identifiable.js +1 -1
  81. package/core/MultiOriginJSONSupport.js +1 -1
  82. package/core/NumericIdentifiable.js +5 -0
  83. package/core/WriteableMultiOriginJSONMixin.js +5 -0
  84. package/core/performance.js +5 -0
  85. package/core/scheduling.js +1 -1
  86. package/editing/sharedTemplates/executor/support/createFeatureServiceEdit.js +1 -1
  87. package/interfaces.d.ts +18 -2
  88. package/kernel.js +1 -1
  89. package/layers/support/MediaElementBase.js +1 -1
  90. package/layers/support/fieldUtils.js +1 -1
  91. package/package.json +3 -3
  92. package/support/basemapDefinitions.js +1 -1
  93. package/support/revision.js +1 -1
  94. package/symbols/cim/effects/EffectTaperedPolygon.js +1 -1
  95. package/undoredo/support/Services.js +1 -1
  96. package/views/2d/constraints/GeometryConstraint.js +1 -1
  97. package/views/2d/constraints/RotationConstraint.js +1 -1
  98. package/views/2d/constraints/ZoomConstraint.js +1 -1
  99. package/views/2d/engine/vectorTiles/decluttering/SymbolFader.js +1 -1
  100. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  101. package/views/3d/analysis/VolumeMeasurement/VolumeMeasurementCutFillVisualization.js +1 -1
  102. package/views/3d/layers/FlowSubView3D.js +1 -1
  103. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  104. package/views/3d/layers/graphics/Graphics3DFeatureStore.js +1 -1
  105. package/views/3d/layers/i3s/I3SOverrides.js +1 -1
  106. package/views/3d/layers/support/ImageHighlightHelper3D.js +1 -1
  107. package/views/3d/layers/support/lyr3dTypeConversions.js +1 -1
  108. package/views/3d/support/flow/FlowSubViewExtent3D.js +1 -1
  109. package/views/3d/support/flow/StreamlineResources3DOverlay.js +1 -1
  110. package/views/3d/support/flow/StreamlineResources3DShape.js +1 -1
  111. package/views/3d/terrain/OverlayRenderer.js +1 -1
  112. package/views/3d/webgl-engine/statistics/RendererPerformanceInfo.js +1 -1
  113. package/views/analysis/ElevationProfile/constants.js +1 -1
  114. package/views/support/Scheduler.js +1 -1
  115. package/widgets/Attachments/AttachmentsViewModel.js +1 -1
  116. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  117. package/widgets/Search/LayerSearchSource.js +1 -1
  118. package/widgets/UtilityNetworkTrace.js +1 -1
  119. package/assets/esri/core/workers/chunks/0366b78b0ccf4ed5f6ac.js +0 -1
  120. package/assets/esri/core/workers/chunks/0429c1a3690f20647c9f.js +0 -1
  121. package/assets/esri/core/workers/chunks/0f100e163e1847e04155.js +0 -1
  122. package/assets/esri/core/workers/chunks/1eedac33c9fcd7681427.js +0 -1
  123. package/assets/esri/core/workers/chunks/2f03d33f4ca8a48461fc.js +0 -1
  124. package/assets/esri/core/workers/chunks/50864c1924030e62497d.js +0 -1
  125. package/assets/esri/core/workers/chunks/655360995c1cbc78a5a3.js +0 -1
  126. package/assets/esri/core/workers/chunks/71762199aef5d3107da2.js +0 -1
  127. package/assets/esri/core/workers/chunks/72c851c400752094b162.js +0 -1
  128. package/assets/esri/core/workers/chunks/7558919912f7fdc4837b.js +0 -1
  129. package/assets/esri/core/workers/chunks/829bc5dbda2f51561446.js +0 -1
  130. package/assets/esri/core/workers/chunks/98311fec6c16a1b23586.js +0 -1
  131. package/assets/esri/core/workers/chunks/a61cb4f1ca282bf8b75d.js +0 -1
  132. package/assets/esri/core/workers/chunks/bc6619307f312f9241bf.js +0 -1
  133. package/assets/esri/core/workers/chunks/bfc1e8aec7aace3ff30e.js +0 -1
  134. package/assets/esri/core/workers/chunks/c134ebbaeac514cbd657.js +0 -1
  135. package/assets/esri/core/workers/chunks/c368a8e8d2f1535af446.js +0 -1
  136. package/assets/esri/core/workers/chunks/d886fb97bdb348a16f25.js +0 -1
  137. package/assets/esri/core/workers/chunks/e6a86cad44056735ed26.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3813],{159:(t,e,n)=>{n.d(e,{A:()=>u});var r,i=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108)),a=n(99157);let u=r=class extends s.A{constructor(t){super(t),this.steps=[]}getInverse(){const t=new r;for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}};(0,i.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0})],u.prototype,"steps",void 0),u=r=(0,i.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformation")],u)},9762:(t,e,n)=>{n.r(e),n.d(e,{projectBuffer:()=>i});var r=n(37539);function i(t,e,n,i,s,o,l=Math.floor(t.length/3)){const a=(0,r.jd)(e,s);if(null==a)return!1;if(a===r.pO){if(t===i&&n===o)return!0;const e=n+3*l;for(let r=n,s=o;r<e;r++,s++)i[s]=t[r];return!0}const u=n+3*l;for(let e=n,r=o;e<u;e+=3,r+=3)a(t,e,i,r);return!0}},37539:(t,e,n)=>{n.d(e,{pO:()=>y,jd:()=>f,Tp:()=>h,w5:()=>p});var r=n(34727),i=n(83047),s=n(73941),o=n(79258);Math.PI;const l=o.$O.radius,a=o.$O.eccentricitySquared,u={a1:l*a,a2:l*a*l*a,a3:l*a*a/2,a4:l*a*l*a*2.5,a5:l*a+l*a*a/2,a6:1-a};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=n(21325);const p={2:{5:y,7:null,9:null,10:y,1:C,6:null,8:null,0:null,3:m,11:M,2:y,4:Z},5:{5:y,7:null,9:null,10:y,1:C,6:null,8:null,0:null,3:m,11:M,2:y,4:Z},7:{5:null,7:y,9:null,10:y,1:null,6:R,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:y,10:y,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(t,e,n,r){const i=t[e]/k,s=I-2*Math.atan(Math.exp(-t[e+1]/k)),o=k+t[e+2],l=Math.cos(s)*o;n[r]=Math.cos(i)*l,n[r+1]=Math.sin(i)*l,n[r+2]=Math.sin(s)*o},6:null,8:null,0:null,3:y,11:function(t,e,n,r){g(t,e,n,r),M(n,r,n,r)},2:g,4:function(t,e,n,r){g(t,e,n,r),Z(n,r,n,r)}},4:{5:O,7:null,9:null,10:O,1:function(t,e,n,r){O(t,e,n,r),C(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){O(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){O(t,e,n,r),M(n,r,n,r)},2:O,4:y},1:{5:j,7:null,9:null,10:j,1:y,6:null,8:null,0:null,3:function(t,e,n,r){j(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){j(t,e,n,r),M(n,r,n,r)},2:j,4:function(t,e,n,r){j(t,e,n,r),Z(n,r,n,r)}},6:{5:null,7:P,9:null,10:P,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:A,10:A,1:null,6:null,8:y,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:y,3:null,11:null,2:null,4:null},10:{5:y,7:y,9:y,10:y,1:C,6:R,8:v,0:null,3:m,11:M,2:y,4:Z},11:{5:w,7:null,9:null,10:w,1:function(t,e,n,r){w(t,e,n,r),C(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){w(t,e,n,r),m(n,r,n,r)},11:y,2:w,4:function(t,e,n,r){w(t,e,n,r),Z(n,r,n,r)}}};function f(t,e){return h(t,e)?.projector}function h(t,e){if(null==t||null==e)return null;if(S.source.spatialReference===t&&S.dest.spatialReference===e)return S;const n=d(t,S.source),r=d(e,S.dest);return 0===n&&0===r?(0,c.aI)(t,e)?S.projector=y:S.projector=null:S.projector=p[n][r],S}function d(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,i.GA)(t,1)),(0,s.jA)(t)?e.spatialReferenceId=1:(0,c.oT)(t)?e.spatialReferenceId=2:(0,c.K8)(t)?e.spatialReferenceId=3:(0,c.r1)(t)?e.spatialReferenceId=11:t.wkt===s.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===s.FY.wkt?e.spatialReferenceId=6:t.wkt===s.LJ.wkt?e.spatialReferenceId=8:(0,c.q8)(t)?e.spatialReferenceId=7:(0,c.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function y(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e])}function g(t,e,n,r){n[r]=z*(t[e]/k),n[r+1]=z*(I-2*Math.atan(Math.exp(-t[e+1]/k))),n[r+2]=t[e+2]}function m(t,e,n,i){!function(t,e,n,i,s){const o=.4999999*Math.PI,l=(0,r.qE)(q*t[e+1],-o,o),a=Math.sin(l);n[i++]=q*t[e]*s.radius,n[i++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[i]=t[e+2]}(t,e,n,i,o.$O)}function M(t,e,n,r){n[r]=t[e]*N,n[r+1]=t[e+1]*N,n[r+2]=t[e+2]}function w(t,e,n,r){n[r]=t[e]*$,n[r+1]=t[e+1]*$,n[r+2]=t[e+2]}function x(t,e,n,r,i){const s=i+t[e+2],o=q*t[e+1],l=q*t[e],a=Math.cos(o)*s;n[r]=Math.cos(l)*a,n[r+1]=Math.sin(l)*a,n[r+2]=Math.sin(o)*s}function v(t,e,n,r){x(t,e,n,r,o.Sw.radius)}function R(t,e,n,r){x(t,e,n,r,o.sH.radius)}function C(t,e,n,r){x(t,e,n,r,o.$O.radius)}function b(t,e,n,i,s){const o=t[e],l=t[e+1],a=t[e+2],u=Math.sqrt(o*o+l*l+a*a),c=(0,r.YN)(a/(0===u?1:u)),p=Math.atan2(l,o);n[i++]=z*p,n[i++]=z*c,n[i]=u-s}function A(t,e,n,r){b(t,e,n,r,o.Sw.radius)}function P(t,e,n,r){b(t,e,n,r,o.sH.radius)}function j(t,e,n,r){b(t,e,n,r,o.$O.radius)}function Z(t,e,n,r){!function(t,e,n,r,i){const s=q*t[e],o=q*t[e+1],l=t[e+2],a=Math.sin(o),u=Math.cos(o),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);n[r++]=(c+l)*u*Math.cos(s),n[r++]=(c+l)*u*Math.sin(s),n[r++]=(c*(1-i.eccentricitySquared)+l)*a}(t,e,n,r,o.$O)}function O(t,e,n,r){const i=u,s=t[e],l=t[e+1],a=t[e+2];let c,p,f,h,d,y,g,m,M,w,x,v,R,C,b,A,P,j,Z,O,S;c=Math.abs(a),p=s*s+l*l,f=Math.sqrt(p),h=p+a*a,d=Math.sqrt(h),O=Math.atan2(l,s),y=a*a/h,g=p/h,C=i.a2/d,b=i.a3-i.a4/d,g>.3?(m=c/d*(1+g*(i.a1+C+y*b)/d),Z=Math.asin(m),w=m*m,M=Math.sqrt(1-w)):(M=f/d*(1-y*(i.a5-C-g*b)/d),Z=Math.acos(M),w=1-M*M,m=Math.sqrt(w)),x=1-o.$O.eccentricitySquared*w,v=o.$O.radius/Math.sqrt(x),R=i.a6*v,C=f-v*M,b=c-R*m,P=M*C+m*b,A=M*b-m*C,j=A/(R/x+P),Z+=j,S=P+A*j/2,a<0&&(Z=-Z),n[r++]=z*O,n[r++]=z*Z,n[r]=S}const S={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:y},q=(0,r.kU)(1),z=(0,r.KJ)(1),I=.5*Math.PI,k=o.$O.radius,N=k*Math.PI/180,$=180/(k*Math.PI)},62815:(t,e,n)=>{n.d(e,{N:()=>o});var r=n(83047),i=n(73941),s=n(21325);function o(t,e,n){if(null==e||null==n||n.vcsWkid||(0,s.aI)(e,n)||(0,i.xP)(e)||(0,i.xP)(n))return null;const o=(0,r.G9)(e)/(0,r.G9)(n);if(1===o)return null;switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){null!=t?.z&&(t.z*=e)}(t,o);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t)for(const n of t.paths)for(const t of n)t.length>2&&(t[2]*=e)}(t,o);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t)for(const n of t.rings)for(const t of n)t.length>2&&(t[2]*=e)}(t,o);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const n of t.points)n.length>2&&(n[2]*=e)}(t,o);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,o);default:return null}}},62885:(t,e,n)=>{n.d(e,{H:()=>s,V:()=>i});var r=n(7762);function i(t,e,n=r.A){return e||(e=new n),e===t||e.destroyed||(e.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?e.addMany(t):t&&e.add(t)),e;var i}function s(t){return t}},68197:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(40876),i=n(34727),s=n(56507);function o(t){return(0,i.qE)((0,s.Vr)(t),0,255)}function l(t,e){const n=t.toString(16).padStart(2,"0");return e?n.slice(0,1):n}class a{static blendColors(t,e,n,r=new a){return r.r=Math.round(t.r+(e.r-t.r)*n),r.g=Math.round(t.g+(e.g-t.g)*n),r.b=Math.round(t.b+(e.b-t.b)*n),r.a=t.a+(e.a-t.a)*n,r._sanitize()}static fromRgb(t,e){const n=(0,r.lT)(t);return n?a.fromArray(n,e):null}static fromHex(t,e=new a){const n=(0,r.oW)(t);return n?a.fromArray(n,e):null}static fromArray(t,e=new a){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const n=(0,r.Eq)(t);return n?a.fromArray(n,e):null}static fromJSON(t){return null!=t?new a([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t,e){return null==t?null:(e??=[0,0,0,0],e[0]=t.r/255,e[1]=t.g/255,e[2]=t.b/255,e[3]=null!=t.a?t.a:1,e)}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?a.fromString(t,this):Array.isArray(t)?a.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof a||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,n=t?.digits??6,r=3===n||4===n,i=4===n||8===n,s=`#${l(this.r,r)}${l(this.g,r)}${l(this.b,r)}${i?l(Math.round(255*this.a),r):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=o(this.r),n=o(this.g),r=o(this.b);return 0===t||1!==this.a?[e,n,r,o(255*this.a)]:[e,n,r]}clone(){return new a(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(t,e,n,r){this.r=t,this.g=e,this.b=n,this.a=r}}a.prototype.declaredClass="esri.Color"},69052:(t,e,n)=>{n.d(e,{hr:()=>i,ie:()=>a,uC:()=>l});var r=n(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return s(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+o(this.range,t-e,n)}minimalMonotonic(t,e,n){return s(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(r)?n:r}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function s(t,e,n,r,i=0,s=!1){return(r-=i)<e?r+=o(t,e-r):r>n&&(r-=o(t,r-n)),s&&r===n&&(r=e),r+i}function o(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const l=new i(0,2*Math.PI),a=(new i(-Math.PI,Math.PI),new i(0,360))},69540:(t,e,n)=>{n.d(e,{OU:()=>c,Pw:()=>p});var r=n(31635),i=n(69622),s=(n(44208),n(4718)),o=(n(53966),n(97768)),l=n(88620),a=n(64108);const u=Symbol("ClonableMixin"),c=t=>{var e;const n=t;let i=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=u}clone(t){const e=(0,l.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const n=e.metadata,r=e.store,i={},a=new Map;for(const e in n){const o=n[e],l=r?.originOf(e),u=o.clonable;if(o.readOnly||!1===u||7!==l&&0!==l&&5!==l&&4!==l)continue;const c=this[e];let p=null;if("function"==typeof u)p=u(c,t);else if("reference"===u)p=c;else if(p=(0,s.TU)(c,t),null!=c&&null==p)continue;0===l?a.set(e,p):i[e]=p}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(a.size){const t=(0,l.oY)(u)?.store;if(t)for(const[e,n]of a)t.set(e,n,0)}return u}};return i=(0,r.Cg)([(0,a.$)("esri.core.Clonable")],i),i},p=c(i.A)},71493:(t,e,n)=>{n.r(e),n.d(e,{default:()=>q});var r=n(31635),i=n(79608),s=n(68197),o=n(69540),l=n(25482),a=n(90629),u=n(10107),c=n(56507),p=(n(44208),n(87811),n(64108));let f=class extends((0,l.T)(o.Pw)){constructor(t){super(t),this.type="simple",this.color=new s.A("black"),this.lineSize=2,this.fontSize=10,this.textColor=new s.A("black"),this.textBackgroundColor=new s.A([255,255,255,.6])}equals(t){return this===t||this.color.equals(t.color)&&this.lineSize===t.lineSize&&this.fontSize===t.fontSize&&this.textColor.equals(t.textColor)&&this.textBackgroundColor.equals(t.textBackgroundColor)}};(0,r.Cg)([(0,u.MZ)({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],f.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[c.jz],write:{isRequired:!0}}})],f.prototype,"color",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,range:{min:(0,a.PN)(1)},json:{write:{isRequired:!0}}})],f.prototype,"lineSize",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,json:{write:{isRequired:!0}}})],f.prototype,"fontSize",void 0),(0,r.Cg)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[c.jz],write:{isRequired:!0}}})],f.prototype,"textColor",void 0),(0,r.Cg)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[c.jz],write:{isRequired:!0}}})],f.prototype,"textBackgroundColor",void 0),f=(0,r.Cg)([(0,p.$)("esri.analysis.DimensionSimpleStyle")],f);var h=n(69052),d=n(97768),y=n(79901),g=n(86738);let m=class extends((0,l.T)(o.Pw)){constructor(t){super(t),this.type="length",this.startPoint=null,this.endPoint=null,this.measureType="direct",this.offset=0,this.orientation=0}get valid(){return null!=this.startPoint&&null!=this.endPoint}equals(t){return this===t||(0,d.CM)(this.startPoint,t.startPoint)&&(0,d.CM)(this.endPoint,t.endPoint)&&this.measureType===t.measureType&&this.offset===t.offset&&this.orientation===t.orientation}};(0,r.Cg)([(0,u.MZ)({type:["length"],json:{write:{isRequired:!0}}})],m.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({type:g.A,json:{write:{isRequired:!0}}})],m.prototype,"startPoint",void 0),(0,r.Cg)([(0,u.MZ)({type:g.A,json:{write:{isRequired:!0}}})],m.prototype,"endPoint",void 0),(0,r.Cg)([(0,u.MZ)({type:["horizontal","vertical","direct"],nonNullable:!0,json:{write:{isRequired:!0}}})],m.prototype,"measureType",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],m.prototype,"offset",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,y.w)(t=>h.ie.normalize((0,c.GB)(t),0,!0))],m.prototype,"orientation",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],m.prototype,"valid",null),m=(0,r.Cg)([(0,p.$)("esri.analysis.LengthDimension")],m);var M=n(4576),w=n(7762),x=n(62885),v=n(36708),R=(n(53966),n(5443)),C=n(91218);const b=w.A.ofType(m);let A=class extends i.A{constructor(t){super(t),this.type="dimension",this.style=new f,this.extent=null}initialize(){this.addHandles((0,v.wB)(()=>this._computeExtent(),t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)},v.pc))}get dimensions(){return this._get("dimensions")||new b}set dimensions(t){this._set("dimensions",(0,x.V)(t,this.dimensions,b))}get spatialReference(){for(const t of this.dimensions){if(null!=t.startPoint)return t.startPoint.spatialReference;if(null!=t.endPoint)return t.endPoint.spatialReference}return null}get valid(){return this.dimensions.every(t=>t.valid)}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==t)return{pending:null,extent:null};const e=[];for(const t of this.dimensions)null!=t.startPoint&&e.push(t.startPoint),null!=t.endPoint&&e.push(t.endPoint);const n=(0,C.projectOrLoadMany)(e,t);if(null!=n.pending)return{pending:n.pending,extent:null};let r=null;return null!=n.geometries&&(r=n.geometries.reduce((t,e)=>null==t?null!=e?R.A.fromPoint(e):null:null!=e?t.union(R.A.fromPoint(e)):t,null)),{pending:null,extent:r}}clear(){this.dimensions.removeAll()}equals(t){return this===t||super.equals(t)&&this.style.equals(t.style)&&(0,M.aI)(this.dimensions.toArray(),t.dimensions.toArray(),(t,e)=>t.equals(e))}};(0,r.Cg)([(0,u.MZ)({type:["dimension"]})],A.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({cast:x.H,type:b,nonNullable:!0})],A.prototype,"dimensions",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],A.prototype,"spatialReference",null),(0,r.Cg)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:f}},nonNullable:!0})],A.prototype,"style",void 0),(0,r.Cg)([(0,u.MZ)({value:null,readOnly:!0})],A.prototype,"extent",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],A.prototype,"valid",null),A=(0,r.Cg)([(0,p.$)("esri.analysis.DimensionAnalysis")],A);var P=n(92071),j=n(43937),Z=n(4146),O=n(16131);let S=class extends((0,O.q)((0,P.P)(Z.A))){constructor(t){if(super(t),this.type="dimension",this.operationalLayerType="ArcGISDimensionLayer",this.source=new A,this.opacity=1,t){const{source:e,style:n}=t;e&&n&&(e.style=n)}}initialize(){this.addHandles([(0,v.wB)(()=>this.source,(t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)},v.pc)])}async load(){return this.addResolvingPromise(this.source.waitComputeExtent()),this}get spatialReference(){return this.source.spatialReference}get style(){return this.source.style}set style(t){this.source.style=t}get fullExtent(){return this.source.extent}releaseAnalysis(t){this.source===t&&(this.source=new A)}get analysis(){return this.source}set analysis(t){this.source=t}get dimensions(){return this.source.dimensions}set dimensions(t){this.source.dimensions=t}writeDimensions(t,e,n,r){e.dimensions=t.filter(({startPoint:t,endPoint:e})=>null!=t&&null!=e).toJSON(r)}};(0,r.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0})],S.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({type:["ArcGISDimensionLayer"]})],S.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,u.MZ)({nonNullable:!0})],S.prototype,"source",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"spatialReference",null),(0,r.Cg)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:f}},json:{write:{ignoreOrigin:!0}}})],S.prototype,"style",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"fullExtent",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],S.prototype,"opacity",void 0),(0,r.Cg)([(0,u.MZ)({type:["show","hide"]})],S.prototype,"listMode",void 0),(0,r.Cg)([(0,u.MZ)({type:w.A.ofType(m),json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{ignoreOrigin:!0}}}}})],S.prototype,"dimensions",null),(0,r.Cg)([(0,j.K)("web-scene","dimensions")],S.prototype,"writeDimensions",null),S=(0,r.Cg)([(0,p.$)("esri.layers.DimensionLayer")],S);const q=S},78553:(t,e,n)=>{n.d(e,{D:()=>s,p:()=>i});var r=n(56507);function i(t){const e=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},79608:(t,e,n)=>{n.d(e,{A:()=>h});var r=n(31635),i=n(69540),s=n(10107),o=(n(44208),n(53966),n(87811),n(64108));let l=class extends i.Pw{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,r.Cg)([(0,s.MZ)()],l.prototype,"type",void 0),l=(0,r.Cg)([(0,o.$)("esri.analysis.support.AnalysisOriginWebScene")],l);const a=l;var u=n(69622),c=n(4902),p=n(25482);let f=0,h=class extends((0,p.T)((0,i.OU)((0,c.sA)(u.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${f++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":case"viewshed":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}equals(t){return!0}};(0,r.Cg)([(0,s.MZ)({type:String,constructOnly:!0,clonable:!1})],h.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({clonable:!1,value:null})],h.prototype,"parent",null),(0,r.Cg)([(0,s.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":a}}})],h.prototype,"origin",void 0),h=(0,r.Cg)([(0,o.$)("esri.analysis.Analysis")],h)},91218:(t,e,n)=>{n.r(e),n.d(e,{canProjectWithoutEngine:()=>D,initializeProjection:()=>W,isEqualBaseGCS:()=>U,isLoaded:()=>S,isLoadedOrLoad:()=>q,isLoadedOrLoadFor:()=>z,load:()=>k,project:()=>N,projectExtent:()=>nt,projectMany:()=>$,projectMultipoint:()=>Y,projectOrLoad:()=>T,projectOrLoadMany:()=>G,projectPoint:()=>J,projectPolygon:()=>tt,projectPolyline:()=>Q,projectWithZConversion:()=>H,projectWithoutEngine:()=>K,requiresLoad:()=>I,test:()=>B,tryProjectWithZConversion:()=>_,unload:()=>E});var r=n(49186),i=n(74887),s=n(62788),o=n(95488),l=n(51850),a=n(21276),u=n(73941),c=n(5443),p=n(91075),f=n(48526),h=n(86738),d=n(39829),y=n(82799),g=n(16930),m=n(159),M=n(9762),w=n(37539);function x(t,e,n,r,i,s){return v[0]=t,v[1]=e,v[2]=n,(0,M.projectBuffer)(v,r,0,i,s,0)}const v=(0,l.vt)();var R=n(21325),C=n(62815);let b=null,A=null,P=null,j=null,Z={};const O=new o.I;function S(){return!!(A?.isLoaded()&&P?.isLoaded()&&j?.isLoaded())}function q(){return!!S()||((0,s.gc)(O),k(),!1)}function z(t,e){return!t||!e||D(t,e)||q()}function I(t,e){return!D(t,e)&&!S()}async function k(t){null==b&&(b=Promise.all([n.e(3276).then(n.bind(n,83276)).then(t=>(A=t,A.load())),n.e(8377).then(n.bind(n,8377)).then(t=>(P=t,P.load())),n.e(2158).then(n.bind(n,12158)).then(t=>(j=t,j.load()))])),await b,(0,i.Te)(t),O.notify()}function N(t,e,n){return Array.isArray(t)?0===t.length?[]:((0,a.H)(t),$(t,t[0].spatialReference,e,n)):((0,a.f)(t),$([t],t.spatialReference,e,n)[0])}function $(t,e,n,r){if(null==e||null==n)return t;if(D(e,n,r))return t.map(t=>K(t,e,n));if(null==r?.geographicTransformation&&(0,u.jA)(e))return t.map(t=>K(t,e,g.A.WGS84)).map(t=>_(t,n));if(null==r?.geographicTransformation&&(0,u.jA)(n))return t.map(t=>_(t,g.A.WGS84)).map(t=>K(t,g.A.WGS84,n));if(!S())throw new L;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:j.getTransformation(e,n,r.areaOfInterestExtent)||new m.A};else if(!r?.areaOfInterestExtent){const t=function(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,n);let i=Z[t];i||(i=j.getTransformation(e,n)||new m.A,Z[t]=i),r={geographicTransformation:i}}return t[0].spatialReference||(t[0].spatialReference=e),t[0]instanceof p.A?A.executeMany(t,n,r):P.executeMany(t,n,r)}function T(t,e){const n=G([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function G(t,e){if(!S())for(const n of t)if(null!=n&&!(0,R.aI)(n.spatialReference,e)&&(0,R.fn)(n.spatialReference)&&(0,R.fn)(e)&&!D(n.spatialReference,e))return(0,s.gc)(O),{pending:k(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,R.aI)(t.spatialReference,e)?t:(0,R.fn)(t.spatialReference)&&(0,R.fn)(e)?_(t,e):null)}}class L extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function E(){b=null,A=null,P=null,j=null,Z={}}const B={get loadPromise(){return b}};function _(t,e){try{const n=N(t,e);if(null==n)return null;"xmin"in t&&"xmin"in n&&(n.zmin=t.zmin,n.zmax=t.zmax);const r=(0,C.N)(n.type,t.spatialReference,e);return null!=r&&r(n),n}catch(t){if(!(t instanceof L))throw t;return null}}async function H(t,e,n){const r=t.spatialReference;return null!=r&&null!=e&&await W(r,e,null,n),_(t,e)}function D(t,e,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,R.aI)(t,e)||(0,R.fn)(t)&&(0,R.fn)(e)&&!!(0,w.jd)(t,e))}function U(t,e){if((0,R.aI)(t,e))return!0;if(!(0,R.fn)(t)||!(0,R.fn)(e))return!1;const n=(0,R.oT)(t)||(0,R.K8)(t)||(0,R.x1)(t),r=(0,R.oT)(e)||(0,R.K8)(e)||(0,R.x1)(e);return n&&r}async function W(t,e,n,r){if(S())return(0,i.NO)(r);if(Array.isArray(t)){for(const{source:e,dest:n,options:i}of t)if(e&&n&&!D(e,n,i))return k(r)}else if(t&&e&&!D(t,e,n))return k(r);return(0,i.NO)(r)}function K(t,e,n){return t?"x"in t?V(t,e,new h.A,n,0):"xmin"in t?rt(t,e,new c.A,n,0):"rings"in t?et(t,e,new d.A,n,0):"paths"in t?X(t,e,new y.A,n,0):"points"in t?F(t,e,new f.A,n,0):null:null}function J(t,e,n=e.spatialReference,r=0){return null!=n&&null!=t.spatialReference&&null!=V(t,t.spatialReference,e,n,r)}function V(t,e,n,r,i){st[0]=t.x,st[1]=t.y;const s=t.z;return st[2]=void 0!==s?s:i,(0,M.projectBuffer)(st,e,0,st,r,0)?(n.x=st[0],n.y=st[1],n.spatialReference=r,void 0!==s||(0,u.xP)(r)?(n.z=st[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function Y(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=F(t,t.spatialReference,e,n,r)}function F(t,e,n,r,i){const{points:s,hasZ:o,hasM:l}=t,a=[],c=s.length,p=[];for(const t of s)p.push(t[0],t[1],o?t[2]:i);if(!(0,M.projectBuffer)(p,e,0,p,r,0,c))return null;const f=o||(0,u.xP)(r);for(let t=0;t<c;++t){const e=3*t,n=p[e],r=p[e+1];f&&l?a.push([n,r,p[e+2],s[t][3]]):f?a.push([n,r,p[e+2]]):l?a.push([n,r,s[t][2]]):a.push([n,r])}return n.points=a,n.spatialReference=r,n.hasZ=o,n.hasM=l,n}function Q(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=X(t,t.spatialReference,e,n,r)}function X(t,e,n,r,i){const{paths:s,hasZ:o,hasM:l}=t,a=[];if(!it(s,o??!1,l??!1,e,a,r,i))return null;const c=o||(0,u.xP)(r);return n.paths=a,n.spatialReference=r,n.hasZ=c,n.hasM=l,n}function tt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=et(t,t.spatialReference,e,n,r)}function et(t,e,n,r,i){const{rings:s,hasZ:o,hasM:l}=t,a=[];if(!it(s,o??!1,l??!1,e,a,r,i))return null;const c=o||(0,u.xP)(r);return n.rings=a,n.spatialReference=r,n.hasZ=c,n.hasM=l,n}function nt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=rt(t,t.spatialReference,e,n,r)}function rt(t,e,n,r,i){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:c,hasM:p}=t;if(!x(s,o,c?t.zmin:i,e,st,r))return null;const f=c||(0,u.xP)(r);return n.xmin=st[0],n.ymin=st[1],f&&(n.zmin=st[2]),x(l,a,c?t.zmax:i,e,st,r)?(n.xmax=st[0],n.ymax=st[1],f&&(n.zmax=st[2]),p&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null}function it(t,e,n,r,i,s,o=0){const l=new Array;for(const n of t)for(const t of n)l.push(t[0],t[1],e?t[2]:o);if(!(0,M.projectBuffer)(l,r,0,l,s,0))return!1;let a=0;i.length=0;const c=e||(0,u.xP)(s);for(const e of t){const t=new Array;for(const r of e)c&&n?t.push([l[a++],l[a++],l[a++],r[3]]):c?t.push([l[a++],l[a++],l[a++]]):n?(t.push([l[a++],l[a++],r[2]]),a++):(t.push([l[a++],l[a++]]),a++);i.push(t)}return!0}const st=(0,l.vt)()},99157:(t,e,n)=>{n.d(e,{A:()=>a});var r,i=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108));let a=r=class extends s.A{constructor(t){super(t),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,o.MZ)()],a.prototype,"isInverse",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"wkt",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"wkid",void 0),a=r=(0,i.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformationStep")],a)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3813],{159:(t,e,n)=>{n.d(e,{A:()=>u});var r,i=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108)),a=n(99157);let u=r=class extends s.A{constructor(t){super(t),this.steps=[]}getInverse(){const t=new r;for(let e=this.steps.length-1;e>=0;e--){const n=this.steps[e];t.steps.push(n.getInverse())}return t}};(0,i.Cg)([(0,o.MZ)({type:[a.A],nonNullable:!0})],u.prototype,"steps",void 0),u=r=(0,i.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformation")],u)},9762:(t,e,n)=>{n.r(e),n.d(e,{projectBuffer:()=>i});var r=n(37539);function i(t,e,n,i,s,o,l=Math.floor(t.length/3)){const a=(0,r.jd)(e,s);if(null==a)return!1;if(a===r.pO){if(t===i&&n===o)return!0;const e=n+3*l;for(let r=n,s=o;r<e;r++,s++)i[s]=t[r];return!0}const u=n+3*l;for(let e=n,r=o;e<u;e+=3,r+=3)a(t,e,i,r);return!0}},37539:(t,e,n)=>{n.d(e,{pO:()=>y,jd:()=>f,Tp:()=>h,w5:()=>p});var r=n(34727),i=n(83047),s=n(73941),o=n(79258);Math.PI;const l=o.$O.radius,a=o.$O.eccentricitySquared,u={a1:l*a,a2:l*a*l*a,a3:l*a*a/2,a4:l*a*l*a*2.5,a5:l*a+l*a*a/2,a6:1-a};o.$O.radius,o.$O.flattening,o.Sw.radius,o.Sw.flattening,o.sH.radius,o.sH.flattening,o.sH.radius;var c=n(21325);const p={2:{5:y,7:null,9:null,10:y,1:C,6:null,8:null,0:null,3:m,11:M,2:y,4:Z},5:{5:y,7:null,9:null,10:y,1:C,6:null,8:null,0:null,3:m,11:M,2:y,4:Z},7:{5:null,7:y,9:null,10:y,1:null,6:R,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:y,10:y,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:g,7:null,9:null,10:g,1:function(t,e,n,r){const i=t[e]/k,s=I-2*Math.atan(Math.exp(-t[e+1]/k)),o=k+t[e+2],l=Math.cos(s)*o;n[r]=Math.cos(i)*l,n[r+1]=Math.sin(i)*l,n[r+2]=Math.sin(s)*o},6:null,8:null,0:null,3:y,11:function(t,e,n,r){g(t,e,n,r),M(n,r,n,r)},2:g,4:function(t,e,n,r){g(t,e,n,r),Z(n,r,n,r)}},4:{5:O,7:null,9:null,10:O,1:function(t,e,n,r){O(t,e,n,r),C(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){O(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){O(t,e,n,r),M(n,r,n,r)},2:O,4:y},1:{5:j,7:null,9:null,10:j,1:y,6:null,8:null,0:null,3:function(t,e,n,r){j(t,e,n,r),m(n,r,n,r)},11:function(t,e,n,r){j(t,e,n,r),M(n,r,n,r)},2:j,4:function(t,e,n,r){j(t,e,n,r),Z(n,r,n,r)}},6:{5:null,7:P,9:null,10:P,1:null,6:y,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:A,10:A,1:null,6:null,8:y,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:y,3:null,11:null,2:null,4:null},10:{5:y,7:y,9:y,10:y,1:C,6:R,8:v,0:null,3:m,11:M,2:y,4:Z},11:{5:w,7:null,9:null,10:w,1:function(t,e,n,r){w(t,e,n,r),C(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){w(t,e,n,r),m(n,r,n,r)},11:y,2:w,4:function(t,e,n,r){w(t,e,n,r),Z(n,r,n,r)}}};function f(t,e){return h(t,e)?.projector}function h(t,e){if(null==t||null==e)return null;if(S.source.spatialReference===t&&S.dest.spatialReference===e)return S;const n=d(t,S.source),r=d(e,S.dest);return 0===n&&0===r?(0,c.aI)(t,e)?S.projector=y:S.projector=null:S.projector=p[n][r],S}function d(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,i.GA)(t,1)),(0,s.jA)(t)?e.spatialReferenceId=1:(0,c.oT)(t)?e.spatialReferenceId=2:(0,c.K8)(t)?e.spatialReferenceId=3:(0,c.r1)(t)?e.spatialReferenceId=11:t.wkt===s.Ro.wkt?e.spatialReferenceId=4:4490===t.wkid?e.spatialReferenceId=5:t.wkt===s.FY.wkt?e.spatialReferenceId=6:t.wkt===s.LJ.wkt?e.spatialReferenceId=8:(0,c.q8)(t)?e.spatialReferenceId=7:(0,c.KQ)(t)?e.spatialReferenceId=9:e.spatialReferenceId=0):0}function y(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e])}function g(t,e,n,r){n[r]=z*(t[e]/k),n[r+1]=z*(I-2*Math.atan(Math.exp(-t[e+1]/k))),n[r+2]=t[e+2]}function m(t,e,n,i){!function(t,e,n,i,s){const o=.4999999*Math.PI,l=(0,r.qE)(q*t[e+1],-o,o),a=Math.sin(l);n[i++]=q*t[e]*s.radius,n[i++]=s.halfSemiMajorAxis*Math.log((1+a)/(1-a)),n[i]=t[e+2]}(t,e,n,i,o.$O)}function M(t,e,n,r){n[r]=t[e]*N,n[r+1]=t[e+1]*N,n[r+2]=t[e+2]}function w(t,e,n,r){n[r]=t[e]*$,n[r+1]=t[e+1]*$,n[r+2]=t[e+2]}function x(t,e,n,r,i){const s=i+t[e+2],o=q*t[e+1],l=q*t[e],a=Math.cos(o)*s;n[r]=Math.cos(l)*a,n[r+1]=Math.sin(l)*a,n[r+2]=Math.sin(o)*s}function v(t,e,n,r){x(t,e,n,r,o.Sw.radius)}function R(t,e,n,r){x(t,e,n,r,o.sH.radius)}function C(t,e,n,r){x(t,e,n,r,o.$O.radius)}function b(t,e,n,i,s){const o=t[e],l=t[e+1],a=t[e+2],u=Math.sqrt(o*o+l*l+a*a),c=(0,r.YN)(a/(0===u?1:u)),p=Math.atan2(l,o);n[i++]=z*p,n[i++]=z*c,n[i]=u-s}function A(t,e,n,r){b(t,e,n,r,o.Sw.radius)}function P(t,e,n,r){b(t,e,n,r,o.sH.radius)}function j(t,e,n,r){b(t,e,n,r,o.$O.radius)}function Z(t,e,n,r){!function(t,e,n,r,i){const s=q*t[e],o=q*t[e+1],l=t[e+2],a=Math.sin(o),u=Math.cos(o),c=i.radius/Math.sqrt(1-i.eccentricitySquared*a*a);n[r++]=(c+l)*u*Math.cos(s),n[r++]=(c+l)*u*Math.sin(s),n[r++]=(c*(1-i.eccentricitySquared)+l)*a}(t,e,n,r,o.$O)}function O(t,e,n,r){const i=u,s=t[e],l=t[e+1],a=t[e+2];let c,p,f,h,d,y,g,m,M,w,x,v,R,C,b,A,P,j,Z,O,S;c=Math.abs(a),p=s*s+l*l,f=Math.sqrt(p),h=p+a*a,d=Math.sqrt(h),O=Math.atan2(l,s),y=a*a/h,g=p/h,C=i.a2/d,b=i.a3-i.a4/d,g>.3?(m=c/d*(1+g*(i.a1+C+y*b)/d),Z=Math.asin(m),w=m*m,M=Math.sqrt(1-w)):(M=f/d*(1-y*(i.a5-C-g*b)/d),Z=Math.acos(M),w=1-M*M,m=Math.sqrt(w)),x=1-o.$O.eccentricitySquared*w,v=o.$O.radius/Math.sqrt(x),R=i.a6*v,C=f-v*M,b=c-R*m,P=M*C+m*b,A=M*b-m*C,j=A/(R/x+P),Z+=j,S=P+A*j/2,a<0&&(Z=-Z),n[r++]=z*O,n[r++]=z*Z,n[r]=S}const S={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:y},q=(0,r.kU)(1),z=(0,r.KJ)(1),I=.5*Math.PI,k=o.$O.radius,N=k*Math.PI/180,$=180/(k*Math.PI)},62815:(t,e,n)=>{n.d(e,{N:()=>o});var r=n(83047),i=n(73941),s=n(21325);function o(t,e,n){if(null==e||null==n||n.vcsWkid||(0,s.aI)(e,n)||(0,i.xP)(e)||(0,i.xP)(n))return null;const o=(0,r.G9)(e)/(0,r.G9)(n);if(1===o)return null;switch(t){case"point":case"esriGeometryPoint":return t=>function(t,e){null!=t?.z&&(t.z*=e)}(t,o);case"polyline":case"esriGeometryPolyline":return t=>function(t,e){if(t)for(const n of t.paths)for(const t of n)t.length>2&&(t[2]*=e)}(t,o);case"polygon":case"esriGeometryPolygon":return t=>function(t,e){if(t)for(const n of t.rings)for(const t of n)t.length>2&&(t[2]*=e)}(t,o);case"multipoint":case"esriGeometryMultipoint":return t=>function(t,e){if(t)for(const n of t.points)n.length>2&&(n[2]*=e)}(t,o);case"extent":case"esriGeometryEnvelope":return t=>function(t,e){t&&null!=t.zmin&&null!=t.zmax&&(t.zmin*=e,t.zmax*=e)}(t,o);default:return null}}},62885:(t,e,n)=>{n.d(e,{H:()=>s,V:()=>i});var r=n(7762);function i(t,e,n=r.A){return e||(e=new n),e===t||e.destroyed||(e.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?e.addMany(t):t&&e.add(t)),e;var i}function s(t){return t}},68197:(t,e,n)=>{n.d(e,{A:()=>a});var r=n(40876),i=n(34727),s=n(56507);function o(t){return(0,i.qE)((0,s.Vr)(t),0,255)}function l(t,e){const n=t.toString(16).padStart(2,"0");return e?n.slice(0,1):n}class a{static blendColors(t,e,n,r=new a){return r.r=Math.round(t.r+(e.r-t.r)*n),r.g=Math.round(t.g+(e.g-t.g)*n),r.b=Math.round(t.b+(e.b-t.b)*n),r.a=t.a+(e.a-t.a)*n,r._sanitize()}static fromRgb(t,e){const n=(0,r.lT)(t);return n?a.fromArray(n,e):null}static fromHex(t,e=new a){const n=(0,r.oW)(t);return n?a.fromArray(n,e):null}static fromArray(t,e=new a){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const n=(0,r.Eq)(t);return n?a.fromArray(n,e):null}static fromJSON(t){return null!=t?new a([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t,e){return null==t?null:(e??=[0,0,0,0],e[0]=t.r/255,e[1]=t.g/255,e[2]=t.b/255,e[3]=null!=t.a?t.a:1,e)}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?a.fromString(t,this):Array.isArray(t)?a.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof a||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,n=t?.digits??6,r=3===n||4===n,i=4===n||8===n,s=`#${l(this.r,r)}${l(this.g,r)}${l(this.b,r)}${i?l(Math.round(255*this.a),r):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=o(this.r),n=o(this.g),r=o(this.b);return 0===t||1!==this.a?[e,n,r,o(255*this.a)]:[e,n,r]}clone(){return new a(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(t,e,n,r){this.r=t,this.g=e,this.b=n,this.a=r}}a.prototype.declaredClass="esri.Color"},69052:(t,e,n)=>{n.d(e,{hr:()=>i,ie:()=>a,uC:()=>l});var r=n(34727);class i{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,n=!1){return s(this.range,this.min,this.max,t,e,n)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,n){return t<e?e:e+o(this.range,t-e,n)}minimalMonotonic(t,e,n){return s(this.range,t,t+this.range,e,n)}center(t,e,n){return e=this.monotonic(t,e,n),this.normalize((t+e)/2,n)}diff(t,e,n){return this.monotonic(t,e,n)-t}shortestSignedDiff(t,e){t=this.normalize(t);const n=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(n)<Math.abs(r)?n:r}contains(t,e,n){return e=this.minimalMonotonic(t,e),(n=this.minimalMonotonic(t,n))>t&&n<e}}function s(t,e,n,r,i=0,s=!1){return(r-=i)<e?r+=o(t,e-r):r>n&&(r-=o(t,r-n)),s&&r===n&&(r=e),r+i}function o(t,e,n=0){return Math.ceil((e-n)/t)*t+n}const l=new i(0,2*Math.PI),a=(new i(-Math.PI,Math.PI),new i(0,360))},69540:(t,e,n)=>{n.d(e,{OU:()=>c,Pw:()=>p});var r=n(31635),i=n(69622),s=(n(44208),n(4718)),o=(n(53966),n(97768)),l=n(88620),a=n(64108);const u=Symbol("ClonableMixin"),c=t=>{var e;const n=t;let i=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=u}clone(t){const e=(0,l.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const n=e.metadata,r=e.store,i={},a=new Map;for(const e in n){const o=n[e],l=r?.originOf(e),u=o.clonable;if(o.readOnly||!1===u||7!==l&&0!==l&&5!==l&&4!==l)continue;const c=this[e];let p=null;if("function"==typeof u)p=u(c,t);else if("reference"===u)p=c;else if(p=(0,s.TU)(c,t),null!=c&&null==p)continue;0===l?a.set(e,p):i[e]=p}const u=new(0,Object.getPrototypeOf(this).constructor)(i);if(a.size){const t=(0,l.oY)(u)?.store;if(t)for(const[e,n]of a)t.set(e,n,0)}return u}};return i=(0,r.Cg)([(0,a.$)("esri.core.Clonable")],i),i},p=c(i.A)},71493:(t,e,n)=>{n.r(e),n.d(e,{default:()=>q});var r=n(31635),i=n(79608),s=n(68197),o=n(69540),l=n(25482),a=n(90629),u=n(10107),c=n(56507),p=(n(44208),n(87811),n(64108));let f=class extends((0,l.T)(o.Pw)){constructor(t){super(t),this.type="simple",this.color=new s.A("black"),this.lineSize=2,this.fontSize=10,this.textColor=new s.A("black"),this.textBackgroundColor=new s.A([255,255,255,.6])}equals(t){return this===t||this.color.equals(t.color)&&this.lineSize===t.lineSize&&this.fontSize===t.fontSize&&this.textColor.equals(t.textColor)&&this.textBackgroundColor.equals(t.textBackgroundColor)}};(0,r.Cg)([(0,u.MZ)({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],f.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[c.jz],write:{isRequired:!0}}})],f.prototype,"color",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,range:{min:(0,a.PN)(1)},json:{write:{isRequired:!0}}})],f.prototype,"lineSize",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,json:{write:{isRequired:!0}}})],f.prototype,"fontSize",void 0),(0,r.Cg)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[c.jz],write:{isRequired:!0}}})],f.prototype,"textColor",void 0),(0,r.Cg)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[c.jz],write:{isRequired:!0}}})],f.prototype,"textBackgroundColor",void 0),f=(0,r.Cg)([(0,p.$)("esri.analysis.DimensionSimpleStyle")],f);var h=n(69052),d=n(97768),y=n(79901),g=n(86738);let m=class extends((0,l.T)(o.Pw)){constructor(t){super(t),this.type="length",this.startPoint=null,this.endPoint=null,this.measureType="direct",this.offset=0,this.orientation=0}get valid(){return null!=this.startPoint&&null!=this.endPoint}equals(t){return this===t||(0,d.CM)(this.startPoint,t.startPoint)&&(0,d.CM)(this.endPoint,t.endPoint)&&this.measureType===t.measureType&&this.offset===t.offset&&this.orientation===t.orientation}};(0,r.Cg)([(0,u.MZ)({type:["length"],json:{write:{isRequired:!0}}})],m.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({type:g.A,json:{write:{isRequired:!0}}})],m.prototype,"startPoint",void 0),(0,r.Cg)([(0,u.MZ)({type:g.A,json:{write:{isRequired:!0}}})],m.prototype,"endPoint",void 0),(0,r.Cg)([(0,u.MZ)({type:["horizontal","vertical","direct"],nonNullable:!0,json:{write:{isRequired:!0}}})],m.prototype,"measureType",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],m.prototype,"offset",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,y.w)(t=>h.ie.normalize((0,c.GB)(t),0,!0))],m.prototype,"orientation",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],m.prototype,"valid",null),m=(0,r.Cg)([(0,p.$)("esri.analysis.LengthDimension")],m);var M=n(4576),w=n(7762),x=n(62885),v=n(36708),R=(n(53966),n(5443)),C=n(91218);const b=w.A.ofType(m);let A=class extends i.A{constructor(t){super(t),this.type="dimension",this.style=new f,this.extent=null}initialize(){this.addHandles((0,v.wB)(()=>this._computeExtent(),t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)},v.pc))}get dimensions(){return this._get("dimensions")||new b}set dimensions(t){this._set("dimensions",(0,x.V)(t,this.dimensions,b))}get spatialReference(){for(const t of this.dimensions){if(null!=t.startPoint)return t.startPoint.spatialReference;if(null!=t.endPoint)return t.endPoint.spatialReference}return null}get valid(){return this.dimensions.every(t=>t.valid)}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==t)return{pending:null,extent:null};const e=[];for(const t of this.dimensions)null!=t.startPoint&&e.push(t.startPoint),null!=t.endPoint&&e.push(t.endPoint);const n=(0,C.projectOrLoadMany)(e,t);if(null!=n.pending)return{pending:n.pending,extent:null};let r=null;return null!=n.geometries&&(r=n.geometries.reduce((t,e)=>null==t?null!=e?R.A.fromPoint(e):null:null!=e?t.union(R.A.fromPoint(e)):t,null)),{pending:null,extent:r}}clear(){this.dimensions.removeAll()}equals(t){return this===t||super.equals(t)&&this.style.equals(t.style)&&(0,M.aI)(this.dimensions.toArray(),t.dimensions.toArray(),(t,e)=>t.equals(e))}};(0,r.Cg)([(0,u.MZ)({type:["dimension"]})],A.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({cast:x.H,type:b,nonNullable:!0})],A.prototype,"dimensions",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],A.prototype,"spatialReference",null),(0,r.Cg)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:f}},nonNullable:!0})],A.prototype,"style",void 0),(0,r.Cg)([(0,u.MZ)({value:null,readOnly:!0})],A.prototype,"extent",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],A.prototype,"valid",null),A=(0,r.Cg)([(0,p.$)("esri.analysis.DimensionAnalysis")],A);var P=n(25728),j=n(43937),Z=n(4146),O=n(16131);let S=class extends((0,O.q)((0,P.P)(Z.A))){constructor(t){if(super(t),this.type="dimension",this.operationalLayerType="ArcGISDimensionLayer",this.source=new A,this.opacity=1,t){const{source:e,style:n}=t;e&&n&&(e.style=n)}}initialize(){this.addHandles([(0,v.wB)(()=>this.source,(t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)},v.pc)])}async load(){return this.addResolvingPromise(this.source.waitComputeExtent()),this}get spatialReference(){return this.source.spatialReference}get style(){return this.source.style}set style(t){this.source.style=t}get fullExtent(){return this.source.extent}releaseAnalysis(t){this.source===t&&(this.source=new A)}get analysis(){return this.source}set analysis(t){this.source=t}get dimensions(){return this.source.dimensions}set dimensions(t){this.source.dimensions=t}writeDimensions(t,e,n,r){e.dimensions=t.filter(({startPoint:t,endPoint:e})=>null!=t&&null!=e).toJSON(r)}};(0,r.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0})],S.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({type:["ArcGISDimensionLayer"]})],S.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,u.MZ)({nonNullable:!0})],S.prototype,"source",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"spatialReference",null),(0,r.Cg)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:f}},json:{write:{ignoreOrigin:!0}}})],S.prototype,"style",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"fullExtent",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],S.prototype,"opacity",void 0),(0,r.Cg)([(0,u.MZ)({type:["show","hide"]})],S.prototype,"listMode",void 0),(0,r.Cg)([(0,u.MZ)({type:w.A.ofType(m),json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{ignoreOrigin:!0}}}}})],S.prototype,"dimensions",null),(0,r.Cg)([(0,j.K)("web-scene","dimensions")],S.prototype,"writeDimensions",null),S=(0,r.Cg)([(0,p.$)("esri.layers.DimensionLayer")],S);const q=S},78553:(t,e,n)=>{n.d(e,{D:()=>s,p:()=>i});var r=n(56507);function i(t){const e=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},79608:(t,e,n)=>{n.d(e,{A:()=>h});var r=n(31635),i=n(69540),s=n(10107),o=(n(44208),n(53966),n(87811),n(64108));let l=class extends i.Pw{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,r.Cg)([(0,s.MZ)()],l.prototype,"type",void 0),l=(0,r.Cg)([(0,o.$)("esri.analysis.support.AnalysisOriginWebScene")],l);const a=l;var u=n(69622),c=n(4902),p=n(25482);let f=0,h=class extends((0,p.T)((0,i.OU)((0,c.s)(u.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${f++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":case"viewshed":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}equals(t){return!0}};(0,r.Cg)([(0,s.MZ)({type:String,constructOnly:!0,clonable:!1})],h.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({clonable:!1,value:null})],h.prototype,"parent",null),(0,r.Cg)([(0,s.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":a}}})],h.prototype,"origin",void 0),h=(0,r.Cg)([(0,o.$)("esri.analysis.Analysis")],h)},91218:(t,e,n)=>{n.r(e),n.d(e,{canProjectWithoutEngine:()=>D,initializeProjection:()=>W,isEqualBaseGCS:()=>U,isLoaded:()=>S,isLoadedOrLoad:()=>q,isLoadedOrLoadFor:()=>z,load:()=>k,project:()=>N,projectExtent:()=>nt,projectMany:()=>$,projectMultipoint:()=>Y,projectOrLoad:()=>T,projectOrLoadMany:()=>G,projectPoint:()=>J,projectPolygon:()=>tt,projectPolyline:()=>Q,projectWithZConversion:()=>H,projectWithoutEngine:()=>K,requiresLoad:()=>I,test:()=>B,tryProjectWithZConversion:()=>_,unload:()=>E});var r=n(49186),i=n(74887),s=n(62788),o=n(95488),l=n(51850),a=n(21276),u=n(73941),c=n(5443),p=n(91075),f=n(48526),h=n(86738),d=n(39829),y=n(82799),g=n(16930),m=n(159),M=n(9762),w=n(37539);function x(t,e,n,r,i,s){return v[0]=t,v[1]=e,v[2]=n,(0,M.projectBuffer)(v,r,0,i,s,0)}const v=(0,l.vt)();var R=n(21325),C=n(62815);let b=null,A=null,P=null,j=null,Z={};const O=new o.I;function S(){return!!(A?.isLoaded()&&P?.isLoaded()&&j?.isLoaded())}function q(){return!!S()||((0,s.gc)(O),k(),!1)}function z(t,e){return!t||!e||D(t,e)||q()}function I(t,e){return!D(t,e)&&!S()}async function k(t){null==b&&(b=Promise.all([n.e(3276).then(n.bind(n,83276)).then(t=>(A=t,A.load())),n.e(8377).then(n.bind(n,8377)).then(t=>(P=t,P.load())),n.e(2158).then(n.bind(n,12158)).then(t=>(j=t,j.load()))])),await b,(0,i.Te)(t),O.notify()}function N(t,e,n){return Array.isArray(t)?0===t.length?[]:((0,a.H)(t),$(t,t[0].spatialReference,e,n)):((0,a.f)(t),$([t],t.spatialReference,e,n)[0])}function $(t,e,n,r){if(null==e||null==n)return t;if(D(e,n,r))return t.map(t=>K(t,e,n));if(null==r?.geographicTransformation&&(0,u.jA)(e))return t.map(t=>K(t,e,g.A.WGS84)).map(t=>_(t,n));if(null==r?.geographicTransformation&&(0,u.jA)(n))return t.map(t=>_(t,g.A.WGS84)).map(t=>K(t,g.A.WGS84,n));if(!S())throw new L;if(!r?.geographicTransformation)if(r?.extendedParams)r={...r,geographicTransformation:j.getTransformation(e,n,r.areaOfInterestExtent)||new m.A};else if(!r?.areaOfInterestExtent){const t=function(t,e){return[t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??"",e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??""].join()}(e,n);let i=Z[t];i||(i=j.getTransformation(e,n)||new m.A,Z[t]=i),r={geographicTransformation:i}}return t[0].spatialReference||(t[0].spatialReference=e),t[0]instanceof p.A?A.executeMany(t,n,r):P.executeMany(t,n,r)}function T(t,e){const n=G([t],e);return null!=n.pending?{pending:n.pending,geometry:null}:null!=n.geometries?{pending:null,geometry:n.geometries[0]}:{pending:null,geometry:null}}function G(t,e){if(!S())for(const n of t)if(null!=n&&!(0,R.aI)(n.spatialReference,e)&&(0,R.fn)(n.spatialReference)&&(0,R.fn)(e)&&!D(n.spatialReference,e))return(0,s.gc)(O),{pending:k(),geometries:null};return{pending:null,geometries:t.map(t=>null==t?null:(0,R.aI)(t.spatialReference,e)?t:(0,R.fn)(t.spatialReference)&&(0,R.fn)(e)?_(t,e):null)}}class L extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function E(){b=null,A=null,P=null,j=null,Z={}}const B={get loadPromise(){return b}};function _(t,e){try{const n=N(t,e);if(null==n)return null;"xmin"in t&&"xmin"in n&&(n.zmin=t.zmin,n.zmax=t.zmax);const r=(0,C.N)(n.type,t.spatialReference,e);return null!=r&&r(n),n}catch(t){if(!(t instanceof L))throw t;return null}}async function H(t,e,n){const r=t.spatialReference;return null!=r&&null!=e&&await W(r,e,null,n),_(t,e)}function D(t,e,n){return!(n?.areaOfInterestExtent||n?.extendedParams||n?.geographicTransformation)&&(!!(0,R.aI)(t,e)||(0,R.fn)(t)&&(0,R.fn)(e)&&!!(0,w.jd)(t,e))}function U(t,e){if((0,R.aI)(t,e))return!0;if(!(0,R.fn)(t)||!(0,R.fn)(e))return!1;const n=(0,R.oT)(t)||(0,R.K8)(t)||(0,R.x1)(t),r=(0,R.oT)(e)||(0,R.K8)(e)||(0,R.x1)(e);return n&&r}async function W(t,e,n,r){if(S())return(0,i.NO)(r);if(Array.isArray(t)){for(const{source:e,dest:n,options:i}of t)if(e&&n&&!D(e,n,i))return k(r)}else if(t&&e&&!D(t,e,n))return k(r);return(0,i.NO)(r)}function K(t,e,n){return t?"x"in t?V(t,e,new h.A,n,0):"xmin"in t?rt(t,e,new c.A,n,0):"rings"in t?et(t,e,new d.A,n,0):"paths"in t?X(t,e,new y.A,n,0):"points"in t?F(t,e,new f.A,n,0):null:null}function J(t,e,n=e.spatialReference,r=0){return null!=n&&null!=t.spatialReference&&null!=V(t,t.spatialReference,e,n,r)}function V(t,e,n,r,i){st[0]=t.x,st[1]=t.y;const s=t.z;return st[2]=void 0!==s?s:i,(0,M.projectBuffer)(st,e,0,st,r,0)?(n.x=st[0],n.y=st[1],n.spatialReference=r,void 0!==s||(0,u.xP)(r)?(n.z=st[2],n.hasZ=!0):(n.z=void 0,n.hasZ=!1),void 0===t.m?(n.m=void 0,n.hasM=!1):(n.m=t.m,n.hasM=!0),n):null}function Y(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=F(t,t.spatialReference,e,n,r)}function F(t,e,n,r,i){const{points:s,hasZ:o,hasM:l}=t,a=[],c=s.length,p=[];for(const t of s)p.push(t[0],t[1],o?t[2]:i);if(!(0,M.projectBuffer)(p,e,0,p,r,0,c))return null;const f=o||(0,u.xP)(r);for(let t=0;t<c;++t){const e=3*t,n=p[e],r=p[e+1];f&&l?a.push([n,r,p[e+2],s[t][3]]):f?a.push([n,r,p[e+2]]):l?a.push([n,r,s[t][2]]):a.push([n,r])}return n.points=a,n.spatialReference=r,n.hasZ=o,n.hasM=l,n}function Q(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=X(t,t.spatialReference,e,n,r)}function X(t,e,n,r,i){const{paths:s,hasZ:o,hasM:l}=t,a=[];if(!it(s,o??!1,l??!1,e,a,r,i))return null;const c=o||(0,u.xP)(r);return n.paths=a,n.spatialReference=r,n.hasZ=c,n.hasM=l,n}function tt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=et(t,t.spatialReference,e,n,r)}function et(t,e,n,r,i){const{rings:s,hasZ:o,hasM:l}=t,a=[];if(!it(s,o??!1,l??!1,e,a,r,i))return null;const c=o||(0,u.xP)(r);return n.rings=a,n.spatialReference=r,n.hasZ=c,n.hasM=l,n}function nt(t,e,n=e.spatialReference,r=0){return null!=t.spatialReference&&null!=n&&null!=rt(t,t.spatialReference,e,n,r)}function rt(t,e,n,r,i){const{xmin:s,ymin:o,xmax:l,ymax:a,hasZ:c,hasM:p}=t;if(!x(s,o,c?t.zmin:i,e,st,r))return null;const f=c||(0,u.xP)(r);return n.xmin=st[0],n.ymin=st[1],f&&(n.zmin=st[2]),x(l,a,c?t.zmax:i,e,st,r)?(n.xmax=st[0],n.ymax=st[1],f&&(n.zmax=st[2]),p&&(n.mmin=t.mmin,n.mmax=t.mmax),n.spatialReference=r,n):null}function it(t,e,n,r,i,s,o=0){const l=new Array;for(const n of t)for(const t of n)l.push(t[0],t[1],e?t[2]:o);if(!(0,M.projectBuffer)(l,r,0,l,s,0))return!1;let a=0;i.length=0;const c=e||(0,u.xP)(s);for(const e of t){const t=new Array;for(const r of e)c&&n?t.push([l[a++],l[a++],l[a++],r[3]]):c?t.push([l[a++],l[a++],l[a++]]):n?(t.push([l[a++],l[a++],r[2]]),a++):(t.push([l[a++],l[a++]]),a++);i.push(t)}return!0}const st=(0,l.vt)()},99157:(t,e,n)=>{n.d(e,{A:()=>a});var r,i=n(31635),s=n(69622),o=n(10107),l=(n(44208),n(53966),n(87811),n(64108));let a=r=class extends s.A{constructor(t){super(t),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new r({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,i.Cg)([(0,o.MZ)()],a.prototype,"isInverse",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"wkt",void 0),(0,i.Cg)([(0,o.MZ)()],a.prototype,"wkid",void 0),a=r=(0,i.Cg)([(0,l.$)("esri.geometry.operators.support.GeographicTransformationStep")],a)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3508],{10873:(e,r,t)=>{t.d(r,{C1:()=>C,Fm:()=>w,Ih:()=>S,M6:()=>u,OZ:()=>c,PY:()=>y,Qo:()=>m,Yj:()=>h,fV:()=>g,hG:()=>I,hn:()=>L,id:()=>f,kF:()=>d,ke:()=>b,zQ:()=>M});var i=t(89317),s=t(5443),n=t(16930),o=t(97159),a=t(88625),l=t(43440),p=t(78553);const y={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:{enabled:!0,layerContainerTypes:i.K}}},u={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,r)=>!r.disablePopup},write:{enabled:!0,writer(e,r,t){r[t]=!e}}}},d={type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",write:{enabled:!0,layerContainerTypes:i.K}}},c={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:o.w}}},g={type:Boolean,value:!0,nonNullable:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:{enabled:!0,layerContainerTypes:i.K}}},h={value:null,type:a.A,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:{enabled:!0,layerContainerTypes:i.K}}};function m(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const v={write:{enabled:!0,layerContainerTypes:i.K},read:!0},b={type:Number,json:{origins:{"web-document":v,"portal-item":{write:{layerContainerTypes:i.K}}}}},S={...b,json:{...b.json,origins:{"web-document":{...v,write:{enabled:!0,layerContainerTypes:i.K,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,r,t)=>t&&"service"!==t.origin||!r.drawingInfo||void 0===r.drawingInfo.transparency?r.layerDefinition?.drawingInfo&&void 0!==r.layerDefinition.drawingInfo.transparency?(0,p.D)(r.layerDefinition.drawingInfo.transparency):void 0:(0,p.D)(r.drawingInfo.transparency)}}},w={type:s.A,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,r)=>{const t=s.A.fromJSON(e);return null!=r.spatialReference&&"object"==typeof r.spatialReference&&(t.spatialReference=n.A.fromJSON(r.spatialReference)),t}}}},read:!1}},f={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},L={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.minScale",write:{layerContainerTypes:i.K}}},I={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.maxScale",write:{layerContainerTypes:i.K}}},C={json:{write:{ignoreOrigin:!0,layerContainerTypes:i.K},origins:{"web-map":{read:!1,write:!1}}}},M={type:l.A,json:{name:"attributeTableInfo",write:!0}}},16131:(e,r,t)=>{t.d(r,{q:()=>w});var i=t(31635),s=t(49186),n=t(84952),o=t(10107),a=t(56507),l=(t(44208),t(87811),t(36005)),p=t(64108),y=t(43937),u=t(89317),d=t(45917),c=t(49422);const g={ArcGISAnnotationLayer:!0,ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,ArcGISVideoLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CatalogLayer:!0,CSV:!0,GeoJSON:!0,GeoRSS:!0,GroupLayer:!0,KML:!0,KnowledgeGraphLayer:!0,MediaLayer:!0,OGCFeatureLayer:!0,OrientedImageryLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WCS:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},h={ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,OpenStreetMap:!0,VectorTileLayer:!0,WCS:!0,WMS:!0,WebTiledLayer:!0},m={ArcGISFeatureLayer:!0,SubtypeGroupTable:!0},v={"web-scene/operational-layers":{ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,CatalogLayer:!0,CSV:!0,GaussianSplatLayer:!0,GeoJSON:!0,GroupLayer:!0,IntegratedMesh3DTilesLayer:!0,Object3DTilesLayer:!0,IntegratedMeshLayer:!0,KML:!0,LineOfSightLayer:!0,MediaLayer:!0,OGCFeatureLayer:!0,OrientedImageryLayer:!0,PointCloudLayer:!0,RasterDataLayer:!0,VectorTileLayer:!0,ViewshedLayer:!0,Voxel:!0,WCS:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-scene/basemap-base-layers":{ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WCS:!0,WMS:!0,WebTiledLayer:!0},"web-scene/basemap-ground-layers":{IntegratedMesh3DTilesLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-scene/tables":{ArcGISFeatureLayer:!0},"web-map/operational-layers":g,"web-map/basemap-base-layers":h,"web-map/tables":m,"link-chart/operational-layers":{...g,LinkChartLayer:!0},"link-chart/basemap-base-layers":h,"link-chart/tables":m,"portal-item/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,BuildingSceneLayer:!0,IntegratedMesh3DTilesLayer:!0,IntegratedMeshLayer:!0,MediaLayer:!0,OrientedImageryLayer:!0,PointCloudLayer:!0,SubtypeGroupLayer:!0,WCS:!0},"portal-item/tables":{ArcGISFeatureLayer:!0,SubtypeGroupTable:!0}};var b=t(10873),S=t(79677);const w=e=>{const r=e;let t=class extends r{constructor(){super(...arguments),this.persistenceEnabled=!0,this.title=null}readId(e,r,t){return"Group Layer"===t?.portalItem?.type?void 0:e}writeListMode(e,r,t,i){(i&&"ground"===i.layerContainerType||e&&(0,c.R)(this,t,{},i))&&(r[t]=e)}writeOperationalLayerType(e,r,t){e&&(r[t]=e)}writeTitle(e,r){r.title=e??"Layer"}readVisibilityTimeExtent(e){return e?S.A.fromArray(e):null}writeVisibilityTimeExtent(e,r,t,i){e&&"tables"!==i.layerContainerType&&(e.isEmpty?i?.messages&&i.messages.push(new s.A("layer:invalid-visibilityTimeExtent","visibilityTimeExtent cannot be empty")):r[t]=e.toArray())}read(e,r){r&&(r.layer=this),(0,d.t)(this,e,r=>super.read(e,r),r)}write(e,r){if(!this.persistenceEnabled&&!r?.ignorePersistenceEnabled)return null;if(r?.origin){const e=`${r.origin}/${r.layerContainerType||"operational-layers"}`,t=v[e];let i=!!t?.[this.operationalLayerType];if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(i=!1),"ArcGISDimensionLayer"===this.operationalLayerType&&"web-map/operational-layers"===e&&(i=!1),!i)return r.messages?.push(new s.A("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const t=super.write(e,{...r,layer:this}),i=!!r&&!!r.messages&&!!r.messages.filter(e=>e instanceof s.A&&"web-document-write:property-required"===e.name).length;return(0,n.w8)(t?.url)?(r?.messages?.push(new s.A("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&i?null:t}beforeSave(){}};return(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,i.Cg)([(0,l.w)("id",["id"])],t.prototype,"readId",null),(0,i.Cg)([(0,o.MZ)(b.C1)],t.prototype,"listMode",void 0),(0,i.Cg)([(0,y.K)("listMode")],t.prototype,"writeListMode",null),(0,i.Cg)([(0,o.MZ)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1},"web-scene":{name:"layerType",read:!1,write:{enabled:!0,ignoreOrigin:!0,layerContainerTypes:u.K,isRequired:!0}}}}})],t.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,y.K)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,i.Cg)([(0,o.MZ)(b.ke)],t.prototype,"opacity",void 0),(0,i.Cg)([(0,o.MZ)({type:Boolean,readOnly:!1})],t.prototype,"persistenceEnabled",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,i.Cg)([(0,y.K)("title"),(0,y.K)(["web-scene"],"title")],t.prototype,"writeTitle",null),(0,i.Cg)([(0,o.MZ)({type:S.A,json:{origins:{"web-scene":{write:{layerContainerTypes:u.K}}}}})],t.prototype,"visibilityTimeExtent",void 0),(0,i.Cg)([(0,l.w)("visibilityTimeExtent")],t.prototype,"readVisibilityTimeExtent",null),(0,i.Cg)([(0,y.K)(["portal-item","web-map","web-scene"],"visibilityTimeExtent",{visibilityTimeExtent:{type:[[a.jz,a.Uv]]}})],t.prototype,"writeVisibilityTimeExtent",null),(0,i.Cg)([(0,o.MZ)({type:Boolean,json:{name:"visibility",write:{layerContainerTypes:u.K}}})],t.prototype,"visible",void 0),t=(0,i.Cg)([(0,p.$)("esri.layers.mixins.OperationalLayer")],t),t}},16271:(e,r,t)=>{t.d(r,{Ao:()=>n,KQ:()=>o});var i=t(4576),s=t(31756);function n(e){return 1/(s.j[e]||1)}const o=function(){const e=Object.keys(s.j);return(0,i.TF)(e,"decimal-degrees"),e.sort(),e}()},25728:(e,r,t)=>{t.d(r,{P:()=>b,L:()=>S});var i=t(31635),s=t(69622),n=t(76953),o=t(4718),a=t(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const r=new l,t=this._originStores[0];t&&t.forEach((e,t)=>{r.set(t,(0,o.o8)(e),0)});for(let t=2;t<a.AU;t++){const i=this._originStores[t];i&&i.forEach((i,s)=>{e&&e.has(s)||r.set(s,(0,o.o8)(i),t)})}return r}get(e,r){const t=void 0===r?this._values:this._originStores[r];return t?t.get(e):void 0}keys(e){const r=null==e?this._values:this._originStores[e];return r?[...r.keys()]:[]}set(e,r,t=7){let i=this._originStores[t];if(i||(i=new Map,this._originStores[t]=i),i.set(e,r),!this._values.has(e)||this._propertyOriginMap.get(e)<=t){const i=this._values.get(e);return this._values.set(e,r),this._propertyOriginMap.set(e,t),i!==r}return!1}delete(e,r=7){const t=this._originStores[r];if(!t)return;const i=t.get(e);if(t.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===r){this._values.delete(e);for(let t=r-1;t>=0;t--){const r=this._originStores[t];if(r&&r.has(e)){this._values.set(e,r.get(e)),this._propertyOriginMap.set(e,t);break}}}return i}has(e,r){const t=void 0===r?this._values:this._originStores[r];return!!t&&t.has(e)}revert(e,r){for(;r>0&&!this.has(e,r);)--r;const t=this._originStores[r],i=t?.get(e),s=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,r),s!==i}originOf(e){return this._propertyOriginMap.get(e)||0}isAtOrigin(e,r){return this.has(e,r)&&this.originOf(e)===r}isBelowOrigin(e,r){return!this.has(e)||this.originOf(e)<r}forEach(e){this._values.forEach(e)}}var p=t(45917),y=t(88620),u=t(64108);const d=e=>{const r=e;let t=class extends r{constructor(...e){super(...e);const r=(0,y.oY)(this),t=r.store,i=new l;r.store=i,(0,n.k)(r,t,i)}read(e,r){(0,p.L)(this,e,r)}getAtOrigin(e,r){const t=c(this),i=(0,a.aB)(r);if("string"==typeof e)return t.get(e,i);const s={};return e.forEach(e=>{s[e]=t.get(e,i)}),s}originOf(e){return(0,a.OL)(this.originIdOf(e))}originIdOf(e){return c(this).originOf(e)}revert(e,r){const t=c(this),i=(0,a.aB)(r),s=(0,y.oY)(this);let n;n="string"==typeof e?"*"===e?t.keys(i):[e]:e,n.forEach(e=>{s.invalidate(e),t.revert(e,i),s.commit(e)})}};return t=(0,i.Cg)([(0,u.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function c(e){return(0,y.oY)(e).store}d(s.A),t(53966),t(44208);var g=t(16649),h=(t(87811),t(49186),t(49422));const m=e=>{const r=e;let t=class extends r{constructor(...e){super(...e)}clear(e,r="user"){(0,y.oY)(this).clearOrigin(e,(0,a.aB)(r))}write(e,r){return(0,h.M)(this,e=e||{},r),e}setAtOrigin(e,r,t){(0,y.oY)(this).setAtOrigin(e,r,(0,a.aB)(t))}removeOrigin(e){const r=v(this),t=(0,a.aB)(e),i=r.keys(t);for(const e of i)r.originOf(e)===t&&r.set(e,r.get(e,t),7)}updateOrigin(e,r){const t=v(this),i=(0,a.aB)(r),s=(0,g.Jt)(this,e);for(let r=i+1;r<a.AU;++r)t.delete(e,r);t.set(e,s,i)}toJSON(e){return this.write({},e)}};return t=(0,i.Cg)([(0,u.$)("esri.core.WriteableMultiOriginJSONMixin")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,y.oY)(e).store}const b=e=>{const r=m(d(e));let t=class extends r{};return t=(0,i.Cg)([(0,u.$)("esri.core.MultiOriginJSONSupport")],t),t},S=b(s.A)},31756:(e,r,t)=>{t.d(r,{j:()=>n});var i=t(83047),s=t(79258);const n={unknown:1,inches:(0,i.oU)(1,"meters","inches"),feet:(0,i.oU)(1,"meters","feet"),"us-feet":(0,i.oU)(1,"meters","us-feet"),yards:(0,i.oU)(1,"meters","yards"),miles:(0,i.oU)(1,"meters","miles"),"nautical-miles":(0,i.oU)(1,"meters","nautical-miles"),millimeters:(0,i.oU)(1,"meters","millimeters"),centimeters:(0,i.oU)(1,"meters","centimeters"),decimeters:(0,i.oU)(1,"meters","decimeters"),meters:(0,i.oU)(1,"meters","meters"),kilometers:(0,i.oU)(1,"meters","kilometers"),"decimal-degrees":1/(0,i.vl)(1,"meters",s.$O.radius)}},43440:(e,r,t)=>{t.d(r,{A:()=>T});var i=t(31635),s=t(25482),n=t(4718),o=t(10107),a=(t(44208),t(53966),t(64108)),l=t(69540);t(87811);let p=class extends s.o{constructor(e){super(e),this.description=null,this.label=null,this.type=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"description",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],p.prototype,"label",void 0),(0,i.Cg)([(0,o.MZ)()],p.prototype,"type",void 0),p=(0,i.Cg)([(0,a.$)("esri.tables.elements.AttributeTableElement")],p);const y=p;var u=t(56507);let d=class extends((0,l.OU)(y)){constructor(e){super(e),this.displayType="auto",this.type="attachment"}clone(){return super.clone()}};(0,i.Cg)([(0,o.MZ)({type:["auto"],json:{write:!0}})],d.prototype,"displayType",void 0),(0,i.Cg)([(0,o.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],d.prototype,"type",void 0),d=(0,i.Cg)([(0,a.$)("esri.tables.elements.AttributeTableAttachmentElement")],d);const c=d;let g=class extends((0,l.OU)(y)){constructor(e){super(e),this.description=null,this.fieldName=null,this.label=null,this.type="field"}clone(){return super.clone()}};(0,i.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],g.prototype,"description",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],g.prototype,"fieldName",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],g.prototype,"label",void 0),(0,i.Cg)([(0,o.MZ)({type:["field"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],g.prototype,"type",void 0),g=(0,i.Cg)([(0,a.$)("esri.tables.elements.AttributeTableFieldElement")],g);const h=g;let m=class extends((0,l.OU)(y)){constructor(e){super(e),this.relationshipId=null,this.type="relationship"}clone(){return super.clone()}};(0,i.Cg)([(0,o.MZ)({type:Number,json:{type:u.jz,write:{enabled:!0,isRequired:!0}}})],m.prototype,"relationshipId",void 0),(0,i.Cg)([(0,o.MZ)({type:["relationship"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],m.prototype,"type",void 0),m=(0,i.Cg)([(0,a.$)("esri.tables.elements.AttributeTableRelationshipElement")],m);const v=m,b={base:y,key:"type",typeMap:{attachment:c,field:h,relationship:v}};let S=class extends((0,l.OU)(y)){constructor(e){super(e),this.elements=null,this.type="group"}clone(){return super.clone()}};(0,i.Cg)([(0,o.MZ)({types:[b],json:{name:"attributeTableElements",write:!0}})],S.prototype,"elements",void 0),(0,i.Cg)([(0,o.MZ)({type:["group"],readOnly:!0,json:{read:!1,write:{enabled:!0,isRequired:!0}}})],S.prototype,"type",void 0),S=(0,i.Cg)([(0,a.$)("esri.tables.elements.AttributeTableGroupElement")],S);const w=S;let f=class extends((0,l.OU)(s.o)){constructor(e){super(e),this.field=null,this.order=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],f.prototype,"field",void 0),(0,i.Cg)([(0,o.MZ)({type:["asc","desc"],json:{write:!0}})],f.prototype,"order",void 0),f=(0,i.Cg)([(0,a.$)("esri.tables.support.FieldOrder")],f);const L=f;var I;const C={typesWithGroup:{base:y,key:"type",typeMap:{attachment:c,field:h,group:w,relationship:v}},typesWithoutGroup:b};let M=I=class extends s.o{constructor(e){super(e),this.elements=null,this.orderByFields=null}clone(){return new I({elements:(0,n.o8)(this.elements),orderByFields:(0,n.o8)(this.orderByFields)})}};(0,i.Cg)([(0,o.MZ)({types:[C.typesWithGroup],json:{name:"attributeTableElements",write:!0}})],M.prototype,"elements",void 0),(0,i.Cg)([(0,o.MZ)({type:[L],json:{write:!0}})],M.prototype,"orderByFields",void 0),M=I=(0,i.Cg)([(0,a.$)("esri.tables.AttributeTableTemplate")],M);const T=M},88625:(e,r,t)=>{t.d(r,{A:()=>S});var i,s=t(31635),n=t(69540),o=t(66552),a=t(25482),l=t(97768),p=t(10107),y=(t(44208),t(53966),t(87811),t(36005)),u=t(64108),d=t(43937),c=t(30524);let g=i=class extends a.o{constructor(e){super(e),this.expression=void 0,this.title=void 0}async collectRequiredFields(e,r){return(0,c.Dx)(e,r,null,this.expression)}clone(){return new i({expression:this.expression,title:this.title})}equals(e){return this.expression===e.expression&&this.title===e.title}};(0,s.Cg)([(0,p.MZ)({type:String,json:{write:{isRequired:!0}}})],g.prototype,"expression",void 0),(0,s.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],g.prototype,"title",void 0),g=i=(0,s.Cg)([(0,u.$)("esri.symbols.support.FeatureExpressionInfo")],g);const h=g;var m=t(16271);const v=(0,o.O)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),b=new o.J({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let S=class extends((0,n.OU)(a.o)){constructor(e){super(e),this.featureExpressionInfo=void 0,this.offset=null}readFeatureExpressionInfo(e,r){return null!=e?e.expression?e:void 0:r.featureExpression&&0===r.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,r,t,i){r[t]=e.write({},i),"0"===e.expression&&(r.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:r}=this;return this._isOverridden("mode")?this._get("mode"):null!=e||r?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,r){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,r):null}equals(e){return this.mode===e.mode&&this.offset===e.offset&&this.unit===e.unit&&(0,l.CM)(this.featureExpressionInfo,e.featureExpressionInfo)}};(0,s.Cg)([(0,p.MZ)({type:h,json:{write:!0}})],S.prototype,"featureExpressionInfo",void 0),(0,s.Cg)([(0,y.w)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],S.prototype,"readFeatureExpressionInfo",null),(0,s.Cg)([(0,d.K)("featureExpressionInfo",{featureExpressionInfo:{type:h},"featureExpression.value":{type:[0]}})],S.prototype,"writeFeatureExpressionInfo",null),(0,s.Cg)([(0,p.MZ)({type:v.apiValues,nonNullable:!0,json:{type:v.jsonValues,read:v.read,write:{writer:v.write,isRequired:!0}}})],S.prototype,"mode",null),(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],S.prototype,"offset",void 0),(0,s.Cg)([(0,p.MZ)({type:m.KQ,json:{type:String,read:b.read,write:b.write}})],S.prototype,"unit",null),S=(0,s.Cg)([(0,u.$)("esri.symbols.support.ElevationInfo")],S)},89317:(e,r,t)=>{t.d(r,{K:()=>i});const i=["operational-layers","basemap-base-layers","basemap-ground-layers","ground"]}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6799],{5076:(e,t,s)=>{s.d(t,{i:()=>i});var r=s(65864),n=s(21325);function i(e,t,s){const{geometry:i}=e,o=e.compactGeometryEnabled??!1,a=e.toJSON();delete a.compactGeometryEnabled,delete a.defaultSpatialReferenceEnabled;const l=a;let u,c,d;if(i&&(c=i.spatialReference,d=(0,n.YX)(c),l.geometryType=(0,r.$B)(i),l.geometry=function(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;const s=e.toJSON();return delete s.spatialReference,JSON.stringify(s)}(i,o),l.inSR=d),a.groupByFieldsForStatistics&&(l.groupByFieldsForStatistics=a.groupByFieldsForStatistics.join(",")),a.objectIds)switch(s?.uniqueIdFields?.length){case void 0:l.objectIds=a.objectIds.join(",");break;case 1:l.uniqueIds=JSON.stringify(a.objectIds),delete l.objectIds;break;default:l.uniqueIds=JSON.stringify(a.objectIds.map(e=>JSON.parse(e))),delete l.objectIds}if(a.orderByFields&&(l.orderByFields=a.orderByFields.join(",")),!a.outFields||!a.returnDistinctValues&&(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?delete l.outFields:a.outFields.includes("*")?l.outFields="*":l.outFields=a.outFields.join(","),a.outSR?(l.outSR=(0,n.YX)(a.outSR),u=e.outSpatialReference):i&&(a.returnGeometry||a.returnCentroid)&&(l.outSR=l.inSR,u=c),a.returnGeometry&&delete a.returnGeometry,a.outStatistics&&(l.outStatistics=JSON.stringify(a.outStatistics)),a.fullText&&(l.fullText=JSON.stringify(a.fullText)),a.pixelSize&&(l.pixelSize=JSON.stringify(a.pixelSize)),a.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&null!=c&&null!=e.quantizationParameters?.extent&&c.equals(e.quantizationParameters.extent.spatialReference)&&delete a.quantizationParameters.extent.spatialReference,l.quantizationParameters=JSON.stringify(a.quantizationParameters)),a.parameterValues&&(l.parameterValues=JSON.stringify(a.parameterValues)),a.rangeValues&&(l.rangeValues=JSON.stringify(a.rangeValues)),a.dynamicDataSource&&(l.layer=JSON.stringify({source:a.dynamicDataSource}),delete a.dynamicDataSource),a.timeExtent){const e=a.timeExtent,{start:t,end:s}=e;null==t&&null==s||(l.time=t===s?t:`${t??"null"},${s??"null"}`),delete a.timeExtent}return e.defaultSpatialReferenceEnabled&&null!=c&&null!=u&&c.equals(u)&&(l.defaultSR=l.inSR,delete l.inSR,delete l.outSR),l}},10536:(e,t,s)=>{function r(e){const t={};for(const s in e){if("declaredClass"===s)continue;const n=e[s];if(null!=n&&"function"!=typeof n)if(Array.isArray(n)){t[s]=[];for(let e=0;e<n.length;e++)t[s][e]=r(n[e])}else"object"==typeof n?n.toJSON&&(t[s]=JSON.stringify(n)):t[s]=n}return t}s.d(t,{z:()=>r})},13069:(e,t,s)=>{s.d(t,{AG:()=>a,lk:()=>n,vD:()=>o,yS:()=>i});const r="randomUUID"in crypto;function n(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const 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 i(){return`{${n().toUpperCase()}}`}function o(){return`{${n()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},37730:(e,t,s)=>{s.d(t,{T:()=>n});var r=s(43334);const n={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new r.Om(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)}},50498:(e,t,s)=>{s.d(t,{Ye:()=>d,gy:()=>c,yR:()=>p});var r=s(66552),n=s(5443),i=s(91075),o=s(48526),a=s(86738),l=s(39829),u=s(82799);const c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),d=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:i.A,key:"type",typeMap:{extent:n.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}}},51624:(e,t,s)=>{s.d(t,{A:()=>u});var r=s(44208),n=s(69397),i=s(93687);const o=4294967296,a=new TextDecoder("utf-8"),l=(0,r.A)("safari")||(0,r.A)("ios")?6:(0,r.A)("ff")?12:32;class u{constructor(e,t,s=0,r=(e?e.byteLength:0)){this._tag=0,this._dataType=99,this._init(e,t,s,r)}_init(e,t,s,r){this._data=e,this._dataView=t,this._pos=s,this._end=r}get usedMemory(){return 64+(0,n.Qf)(this._data)}asUnsafe(){return this}clone(){return new u(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,s=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),s}getSFixed64(){const e=this._dataView,t=this._pos,s=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),s}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,s=this._toString(this._data,t,t+e);return this._skip(e),s}getBytes(){const e=this._getLength(),t=this._pos,s=this._toBytes(this._data,t,t+e);return this._skip(e),s}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,s,r){const n=this.getMessage(),i=e(n,t,s,r);return n.release(),i}processMessage(e){const t=this.getMessage(),s=e(t);return t.release(),s}getMessage(){const e=this._getLength(),t=u.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){u.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,s=0,r=0;if(this._end-t>=10)do{if(r=e[t++],s|=127&r,!(128&r))break;if(r=e[t++],s|=(127&r)<<7,!(128&r))break;if(r=e[t++],s|=(127&r)<<14,!(128&r))break;if(r=e[t++],s|=(127&r)<<21,!(128&r))break;if(r=e[t++],s+=268435456*(127&r),!(128&r))break;if(r=e[t++],s+=34359738368*(127&r),!(128&r))break;if(r=e[t++],s+=4398046511104*(127&r),!(128&r))break;if(r=e[t++],s+=562949953421312*(127&r),!(128&r))break;if(r=e[t++],s+=72057594037927940*(127&r),!(128&r))break;if(r=e[t++],s+=0x8000000000000000*(127&r),!(128&r))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;t!==this._end&&(r=e[t],128&r);)++t,s+=(127&r)*n,n*=128;if(t===this._end)throw new Error("Varint overrun!");++t,s+=r*n}return this._pos=t,s}_decodeSVarint(){const e=this._data;let t,s=0,r=0;const n=1&e[this._pos];if(r=e[this._pos++],s|=127&r,!(128&r))return n?-(s+1)/2:s/2;if(r=e[this._pos++],s|=(127&r)<<7,!(128&r))return n?-(s+1)/2:s/2;if(r=e[this._pos++],s|=(127&r)<<14,!(128&r))return n?-(s+1)/2:s/2;if(r=e[this._pos++],s|=(127&r)<<21,!(128&r))return n?-(s+1)/2:s/2;if(r=e[this._pos++],s+=268435456*(127&r),!(128&r))return n?-(s+1)/2:s/2;if(r=e[this._pos++],s+=34359738368*(127&r),!(128&r))return n?-(s+1)/2:s/2;if(r=e[this._pos++],s+=4398046511104*(127&r),!(128&r))return n?-(s+1)/2:s/2;if(t=BigInt(s),r=e[this._pos++],t+=0x2000000000000n*BigInt(127&r),!(128&r))return Number(n?-(t+1n)/2n:t/2n);if(r=e[this._pos++],t+=0x100000000000000n*BigInt(127&r),!(128&r))return Number(n?-(t+1n)/2n:t/2n);if(r=e[this._pos++],t+=0x8000000000000000n*BigInt(127&r),!(128&r))return Number(n?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,s){if((s=Math.min(this._end,s))-t>l){const r=e.subarray(t,s);return a.decode(r)}let r="",n="";for(let i=t;i<s;++i){const t=e[i];128&t?n+="%"+t.toString(16):(r+=decodeURIComponent(n)+String.fromCharCode(t),n="")}return n.length&&(r+=decodeURIComponent(n)),r}_toBytes(e,t,s){return s=Math.min(this._end,s),new Uint8Array(e.buffer,t,s-t)}static{this.pool=new i.A(()=>new u(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},53655:(e,t,s)=>{s.d(t,{SH:()=>F,ae:()=>v,cn:()=>_});var r=s(49186),n=s(51624),i=s(92722),o=s(69418);const a=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],l=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],u=["upperLeft","lowerLeft"];function c(e){return e>=a.length?null:a[e]}function d(e){return e>=l.length?null:l[e]}function p(e){return e>=u.length?null:u[e]}function h(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function g(e,t,s){const r=e.asUnsafe(),n=t.createPointGeometry(s);for(;r.next();)switch(r.tag()){case 3:{const e=r.getUInt32(),s=r.pos()+e;let i=0;for(;r.pos()<s;)t.addCoordinatePoint(n,r.getSInt64(),i++);break}default:r.skip()}return n}function y(e,t,s){const r=e.asUnsafe(),n=t.createGeometry(s),i=2+(s.hasZ?1:0)+(s.hasM?1:0);for(;r.next();)switch(r.tag()){case 2:{const e=r.getUInt32(),s=r.pos()+e;let i=0;for(;r.pos()<s;)t.addLength(n,r.getUInt32(),i++);break}case 3:{const e=r.getUInt32(),s=r.pos()+e;let o=0;for(t.allocateCoordinates(n);r.pos()<s;)t.addCoordinate(n,r.getSInt64(),o),o++,o===i&&(o=0);break}default:r.skip()}return n}function f(e){const t=e.asUnsafe(),s=new i.A;let r="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),r=t.pos()+e;for(;t.pos()<r;)s.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),r=t.pos()+e;for(;t.pos()<r;)s.coords.push(t.getSInt64());break}case 1:r=o.z[t.getEnum()];break;default:t.skip()}return{queryGeometry:s,queryGeometryType:r}}function m(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function _(e){const t=e.asUnsafe(),s={type:c(0)};for(;t.next();)switch(t.tag()){case 1:s.name=t.getString();break;case 2:s.type=c(t.getEnum());break;case 3:s.alias=t.getString();break;case 4:s.sqlType=d(t.getEnum());break;case 5:default:t.skip();break;case 6:s.defaultValue=t.getString()}return s}function w(e){const t={},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.name=s.getString();break;case 2:t.isSystemMaintained=s.getBool();break;default:s.skip()}return t}function b(e,t,s,r){const n=t.createFeature(s);let i=0;for(;e.next();)switch(e.tag()){case 1:{const t=r[i++].name;n.attributes[t]=e.processMessage(m);break}case 2:n.geometry=e.processMessageWithArgs(y,t,s);break;case 4:n.centroid=e.processMessageWithArgs(g,t,s);break;default:e.skip()}return n}function k(e){const t=[1,1,1,1],s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t[0]=s.getDouble();break;case 2:t[1]=s.getDouble();break;case 4:t[2]=s.getDouble();break;case 3:t[3]=s.getDouble();break;default:s.skip()}return t}function T(e){const t=[0,0,0,0],s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t[0]=s.getDouble();break;case 2:t[1]=s.getDouble();break;case 4:t[2]=s.getDouble();break;case 3:t[3]=s.getDouble();break;default:s.skip()}return t}function v(e){const t={originPosition:p(0)},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.originPosition=p(s.getEnum());break;case 2:t.scale=s.processMessage(k);break;case 3:t.translate=s.processMessage(T);break;default:s.skip()}return t}function S(e){const t={},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.shapeAreaFieldName=s.getString();break;case 2:t.shapeLengthFieldName=s.getString();break;case 3:t.units=s.getString();break;default:s.skip()}return t}function I(e,t){const s=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:s.wkid=e.getUInt32();break;case 5:s.wkt=e.getString();break;case 2:s.latestWkid=e.getUInt32();break;case 3:s.vcsWkid=e.getUInt32();break;case 4:s.latestVcsWkid=e.getUInt32();break;default:e.skip()}return s}function x(e,t){const s=t.createFeatureResult(),r=e.asUnsafe();s.geometryType=h(t,0);let n=!1;for(;r.next();)switch(r.tag()){case 1:s.objectIdFieldName=r.getString();break;case 3:s.globalIdFieldName=r.getString();break;case 4:s.geohashFieldName=r.getString();break;case 5:s.geometryProperties=r.processMessage(S);break;case 7:s.geometryType=h(t,r.getEnum());break;case 8:s.spatialReference=r.processMessageWithArgs(I,t);break;case 10:s.hasZ=r.getBool();break;case 11:s.hasM=r.getBool();break;case 12:s.transform=r.processMessage(v);break;case 9:s.exceededTransferLimit=r.getBool();break;case 13:t.addField(s,r.processMessage(_));break;case 15:n||(t.prepareFeatures(s),n=!0),t.addFeature(s,r.processMessageWithArgs(b,t,s,s.fields));break;case 2:s.uniqueIdField=r.processMessage(w);break;default:r.skip()}return t.finishFeatureResult(s),s}function A(e,t){const s={};let r=null;for(;e.next();)switch(e.tag()){case 4:r=e.processMessageWithArgs(f);break;case 1:s.featureResult=e.processMessageWithArgs(x,t);break;default:e.skip()}return null!=r&&s.featureResult&&t.addQueryGeometry(s,r),s}function F(e,t){try{const s=2,r=new n.A(new Uint8Array(e),new DataView(e)),i={};for(;r.next();)r.tag()===s?i.queryResult=r.processMessageWithArgs(A,t):r.skip();return i}catch(e){throw new r.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},58501:(e,t,s)=>{s.d(t,{q:()=>n});var r=s(62815);function n(e,t,s){if(!s?.features||!s.hasZ)return;const n=(0,r.N)(s.geometryType,t,e.outSpatialReference);if(n)for(const e of s.features)n(e.geometry)}},66208:(e,t,s)=>{s.d(t,{m:()=>n});var r=s(53655);function n(e,t){const s=(0,r.SH)(e,t),n=s.queryResult.featureResult,i=s.queryResult.queryGeometry,o=s.queryResult.queryGeometryType;if(n&&n.features&&n.features.length&&n.objectIdFieldName){const e=n.objectIdFieldName;for(const t of n.features)t.attributes&&(t.objectId=t.attributes[e])}return n&&(n.queryGeometry=i,n.queryGeometryType=o),n}},69418:(e,t,s)=>{s.d(t,{S:()=>u,z:()=>l});var r=s(83047),n=s(21325),i=s(43334),o=s(58512),a=s(92722);const l=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class u{constructor(e){this._options=e,this.geometryTypes=l,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new o.A}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e?.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,n.aI)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,r.G9)(this._options.sourceSpatialReference)/(0,r.G9)(e.spatialReference);if(1!==t)for(const s of e.features){if(!(0,i.N3)(s))continue;const e=s.geometry.coords;for(let s=2;s<e.length;s+=3)e[s]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new i.Om(null,{},null,0)}createSpatialReference(){return{wkid:0}}createGeometry(){return new a.A}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce((e,t)=>e+t,0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new a.A}}},72802:(e,t,s)=>{s.d(t,{U:()=>n});var r=s(19419);class n{constructor(e,t,s,n=(0,r.vt)()){this._level=e,this._row=t,this._col=s,this.extent=n}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new n(e.level,e.row,e.col,e.extent)}}},79677:(e,t,s)=>{s.d(t,{A:()=>p});var r,n=s(31635),i=s(25482),o=s(88930),a=s(10107),l=(s(44208),s(53966),s(87811),s(36005)),u=s(64108),c=s(43937),d=s(98623);let p=class extends i.o{static{r=this}static get allTime(){return h}static get empty(){return g}static fromArray(e){return new r({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,s=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===r&&s===n}expandTo(e,t=d.qU){if(this.isEmpty||this.isAllTime)return this.clone();let s=this.start;s&&(s=(0,o.lL)(s,e,t));let n=this.end;if(n){const s=(0,o.lL)(n,e,t);n=n.getTime()===s.getTime()?s:(0,o.S1)(s,1,e,t)}return new r({start:s,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,s=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,i=e.end?.getTime()??1/0;let o,a;return n>=t&&n<=s?o=n:t>=n&&t<=i&&(o=t),s>=n&&s<=i?a=s:i>=t&&i<=s&&(a=i),null==o||null==a||isNaN(o)||isNaN(a)?r.empty:new r({start:o===-1/0?null:new Date(o),end:a===1/0?null:new Date(a)})}offset(e,t,s=d.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new r,{start:i,end:a}=this;return null!=i&&(n.start=(0,o.S1)(i,e,t,s)),null!=a&&(n.end=(0,o.S1)(a,e,t,s)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,s=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:s})}};(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,n.Cg)([(0,l.w)("end")],p.prototype,"readEnd",null),(0,n.Cg)([(0,c.K)("end")],p.prototype,"writeEnd",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,n.Cg)([(0,l.w)("start")],p.prototype,"readStart",null),(0,n.Cg)([(0,c.K)("start")],p.prototype,"writeStart",null),p=r=(0,n.Cg)([(0,u.$)("esri.time.TimeExtent")],p);const h=new p,g=new p({start:void 0,end:void 0})},79897:(e,t,s)=>{s.d(t,{U:()=>c});var r=s(31635),n=s(69622),i=s(36563),o=s(36708),a=s(96211),l=s(10107),u=s(64108);let c=class extends n.A{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll()}add(e,t,s={}){return this._installWatch(e,t,s,o.wB)}addWhen(e,t,s={}){return this._installWatch(e,t,s,o.z7)}addOnCollectionChange(e,t,{initial:s=!1,final:r=!1}={}){const n=++this._handleId;return this.addHandles([(0,o.on)(e,"after-changes",this._createSyncUpdatingCallback(),o.OH),(0,o.on)(e,"change",t,{onListenerAdd:s?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:r?e=>t({added:[],removed:e.toArray()}):void 0})],n),(0,i.hA)(()=>this.removeHandles(n))}addPromise(e){if(null==e)return e;const t=++this._handleId;this.addHandles((0,i.hA)(()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this.hasHandles(d)||this._set("updating",!1))}),t),this._pendingPromises.add(e),this._set("updating",!0);const s=()=>this.removeHandles(t);return e.then(s,s),e}removeAll(){this._pendingPromises.clear(),this.removeAllHandles(),this._set("updating",!1)}_installWatch(e,t,s={},r){const n=++this._handleId;s.sync||this._installSyncUpdatingWatch(e,n);const o=r(e,t,s);return this.addHandles(o,n),(0,i.hA)(()=>this.removeHandles(n))}_installSyncUpdatingWatch(e,t){const s=this._createSyncUpdatingCallback(),r=(0,o.wB)(e,s,{sync:!0,equals:()=>!1});return this.addHandles(r,t),r}_createSyncUpdatingCallback(){return()=>{this.removeHandles(d),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this.addHandles((0,a._)(()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this.removeHandles(d))}),d)}}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],c.prototype,"updating",void 0),c=(0,r.Cg)([(0,u.$)("esri.core.support.UpdatingHandles")],c);const d=-42},80893:(e,t,s)=>{s.d(t,{IJ:()=>p,Jf:()=>f,Pk:()=>g,eW:()=>d,gW:()=>y,kS:()=>h});var r=s(78888),n=s(84952),i=s(17136),o=s(10536),a=s(66208),l=s(5076),u=s(58501);const c="Layer does not support extent calculation.";async function d(e,t,s,r={},n){const i=t.timeExtent?.isEmpty?{data:{features:[]}}:await _(e,t,"json",r,void 0,n);return(0,u.q)(t,s,i.data),i}async function p(e,t,s,r,n){if(t.timeExtent?.isEmpty)return{data:s.createFeatureResult()};const i=await h(e,t,r,n),o=i;return o.data=(0,a.m)(i.data,s),o}function h(e,t,s={},r){return _(e,t,"pbf",s,void 0,r)}function g(e,t,s={},r){return t.timeExtent?.isEmpty?Promise.resolve({data:{objectIds:[]}}):_(e,t,"json",s,{returnIdsOnly:!0},r)}function y(e,t,s={},r){return t.timeExtent?.isEmpty?Promise.resolve({data:{count:0}}):_(e,t,"json",s,{returnIdsOnly:!0,returnCountOnly:!0},r)}async function f(e,t,s={}){if(t.timeExtent?.isEmpty)return{data:{count:0,extent:null}};const r=await _(e,t,"json",s,{returnExtentOnly:!0,returnCountOnly:!0}),n=r.data;if(n.hasOwnProperty("extent"))return r;if(n.features)throw new Error(c);if(n.hasOwnProperty("count"))throw new Error(c);return r}function m(e,t){if(!e.returnIdsOnly||!t.uniqueIdFields)return e;const s={...e,returnUniqueIdsOnly:!0};return delete s.returnIdsOnly,s}async function _(e,t,s,a,u={},c={}){const d="string"==typeof e?(0,n.An)(e):e,p=t.geometry?[t.geometry]:[],h=await(0,i.el)(p,null,{signal:a.signal}),g=h?.[0];if(null!=g){const e=t.clone();e.geometry=g.clone(),t=e}const y=(0,o.z)({...d.query,f:s,...m(u,c),...(f=t,_=u,w=c,(0,l.i)(f,_,w))});var f,_,w;return(0,r.A)((0,n.fj)(d.path,function(e,t){return null!=e.formatOf3DObjects&&!(t.returnCountOnly||t.returnExtentOnly||t.returnIdsOnly)}(t,u)?"query3d":"query"),{...a,responseType:"pbf"===s?"array-buffer":"json",query:{...y,...a.query}})}},87045:(e,t,s)=>{s.d(t,{A:()=>b});var r,n=s(31635),i=s(66552),o=s(25482),a=s(83047),l=s(10107),u=s(56507),c=(s(44208),s(87811),s(36005)),d=s(64108),p=s(43937),h=s(86738),g=s(16930),y=s(21325),f=s(28735),m=s(91806),_=s(72802);const w=new i.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let b=class extends o.o{static{r=this}static create(e={}){const{resolutionFactor:t=1,scales:s,size:n=256,spatialReference:i=g.A.WebMercator,numLODs:o=24}=e;if(!(0,y.fn)(i)){const e=[];if(s)for(let t=0;t<s.length;t++){const r=s[t];e.push(new m.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let s=o-1;s>=0;s--)e.unshift(new m.A({level:s,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new h.A(0,0,i),size:[n,n],spatialReference:i})}const l=(0,y.Vp)(i),u=e.origin?new h.A({x:e.origin.x,y:e.origin.y,spatialReference:i}):new h.A(l?{x:l.origin[0],y:l.origin[1],spatialReference:i}:{x:0,y:0,spatialReference:i}),c=1/(39.37*(0,a.GA)(i)*96),d=[];if(s)for(let e=0;e<s.length;e++){const t=s[e],r=t*c;d.push(new m.A({level:e,scale:t,resolution:r}))}else{let e=(0,y.EA)(i)?512/n*591657527.5917094:256/n*591657527.591555;const s=Math.ceil(o/t);d.push(new m.A({level:0,scale:e,resolution:e*c}));for(let r=1;r<s;r++){const s=e/2**t,n=s*c;d.push(new m.A({level:r,scale:s,resolution:n})),e=s}}return new r({dpi:96,lods:d,origin:u,size:[n,n],spatialReference:i})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const s=(0,y.Vp)(e);return e.isWrappable&&!!s&&Math.abs(s.origin[0]-t.x)<=s.dx}return!1}readOrigin(e,t){return h.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,s=0;const r=[],n=this._levelToLOD={};e&&(t=-1/0,s=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,s=e.scale<s?e.scale:s,n[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const s=Math.floor(e),r=s+1;return t[s]/(t[s]/t[r])**(e-s)}scaleToZoom(e){const t=this.scales,s=t.length-1;let r=0;for(;r<s;r++){const s=t[r],n=t[r+1];if(s<=e)return r;if(n===e)return r+1;if(s>e&&n<e)return r+Math.log(s/e)/Math.log(s/n)}return r}tileAt(e,t,s,r){const n=this.lodAt(e);if(!n)return null;let i,o;if("number"==typeof t)i=t,o=s;else if((0,y.aI)(t.spatialReference,this.spatialReference))i=t.x,o=t.y,r=s;else{const e=(0,f.Cv)(t,this.spatialReference);if(null==e)return null;i=e.x,o=e.y,r=s}const a=n.resolution*this.size[0],l=n.resolution*this.size[1];return r??=new _.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-o)/l+.001),r.col=Math.floor((i-this.origin.x)/a+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let s=this.lodAt(e.level);if(!s&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(s=t)}if(!s)return!1;const r=e.level-s.level,n=s.resolution*this.size[0]/2**r,i=s.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*i,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+i,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const s=this.lodAt(t.level);if(null==s)return null;const{resolution:r}=s,n=r*this.size[0],i=r*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*i,e[2]=e[0]+n,e[3]=e[1]+i,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const s=[],n=this.lods.length-t;for(let e=0;e<n;e++){const r=e+t,{scale:n,resolution:i}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};s.push(new m.A({level:e,scale:n,resolution:i}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:s})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let s=0;s<e.length;s++){const r=e[s];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],b.prototype,"compressionQuality",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],b.prototype,"dpi",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:w.read,write:w.write,origins:{"web-scene":{read:!1,write:!1}}}})],b.prototype,"format",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],b.prototype,"isWrappable",null),(0,n.Cg)([(0,l.MZ)({type:h.A,json:{write:!0}})],b.prototype,"origin",void 0),(0,n.Cg)([(0,c.w)("origin")],b.prototype,"readOrigin",null),(0,n.Cg)([(0,l.MZ)({type:[m.A],value:null,json:{write:!0}})],b.prototype,"lods",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],b.prototype,"scales",void 0),(0,n.Cg)([(0,l.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],b.prototype,"size",void 0),(0,n.Cg)([(0,c.w)("size",["rows","cols"])],b.prototype,"readSize",null),(0,n.Cg)([(0,p.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],b.prototype,"writeSize",null),(0,n.Cg)([(0,l.MZ)({type:g.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),b=r=(0,n.Cg)([(0,d.$)("esri.layers.support.TileInfo")],b)},91806:(e,t,s)=>{s.d(t,{A:()=>u});var r,n=s(31635),i=s(25482),o=s(10107),a=s(56507),l=(s(44208),s(87811),s(64108));let u=class extends i.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"cols",void 0),(0,n.Cg)([(0,o.MZ)({type:a.jz,json:{write:!0}})],u.prototype,"level",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"levelValue",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"origin",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],u.prototype,"resolution",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"rows",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],u.prototype,"scale",void 0),u=r=(0,n.Cg)([(0,l.$)("esri.layers.support.LOD")],u)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6799],{5076:(e,t,s)=>{s.d(t,{i:()=>i});var r=s(65864),n=s(21325);function i(e,t,s){const{geometry:i}=e,o=e.compactGeometryEnabled??!1,a=e.toJSON();delete a.compactGeometryEnabled,delete a.defaultSpatialReferenceEnabled;const l=a;let u,c,d;if(i&&(c=i.spatialReference,d=(0,n.YX)(c),l.geometryType=(0,r.$B)(i),l.geometry=function(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;const s=e.toJSON();return delete s.spatialReference,JSON.stringify(s)}(i,o),l.inSR=d),a.groupByFieldsForStatistics&&(l.groupByFieldsForStatistics=a.groupByFieldsForStatistics.join(",")),a.objectIds)switch(s?.uniqueIdFields?.length){case void 0:l.objectIds=a.objectIds.join(",");break;case 1:l.uniqueIds=JSON.stringify(a.objectIds),delete l.objectIds;break;default:l.uniqueIds=JSON.stringify(a.objectIds.map(e=>JSON.parse(e))),delete l.objectIds}if(a.orderByFields&&(l.orderByFields=a.orderByFields.join(",")),!a.outFields||!a.returnDistinctValues&&(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?delete l.outFields:a.outFields.includes("*")?l.outFields="*":l.outFields=a.outFields.join(","),a.outSR?(l.outSR=(0,n.YX)(a.outSR),u=e.outSpatialReference):i&&(a.returnGeometry||a.returnCentroid)&&(l.outSR=l.inSR,u=c),a.returnGeometry&&delete a.returnGeometry,a.outStatistics&&(l.outStatistics=JSON.stringify(a.outStatistics)),a.fullText&&(l.fullText=JSON.stringify(a.fullText)),a.pixelSize&&(l.pixelSize=JSON.stringify(a.pixelSize)),a.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&null!=c&&null!=e.quantizationParameters?.extent&&c.equals(e.quantizationParameters.extent.spatialReference)&&delete a.quantizationParameters.extent.spatialReference,l.quantizationParameters=JSON.stringify(a.quantizationParameters)),a.parameterValues&&(l.parameterValues=JSON.stringify(a.parameterValues)),a.rangeValues&&(l.rangeValues=JSON.stringify(a.rangeValues)),a.dynamicDataSource&&(l.layer=JSON.stringify({source:a.dynamicDataSource}),delete a.dynamicDataSource),a.timeExtent){const e=a.timeExtent,{start:t,end:s}=e;null==t&&null==s||(l.time=t===s?t:`${t??"null"},${s??"null"}`),delete a.timeExtent}return e.defaultSpatialReferenceEnabled&&null!=c&&null!=u&&c.equals(u)&&(l.defaultSR=l.inSR,delete l.inSR,delete l.outSR),l}},10536:(e,t,s)=>{function r(e){const t={};for(const s in e){if("declaredClass"===s)continue;const n=e[s];if(null!=n&&"function"!=typeof n)if(Array.isArray(n)){t[s]=[];for(let e=0;e<n.length;e++)t[s][e]=r(n[e])}else"object"==typeof n?n.toJSON&&(t[s]=JSON.stringify(n)):t[s]=n}return t}s.d(t,{z:()=>r})},13069:(e,t,s)=>{s.d(t,{AG:()=>a,lk:()=>n,vD:()=>o,yS:()=>i});const r="randomUUID"in crypto;function n(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const 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 i(){return`{${n().toUpperCase()}}`}function o(){return`{${n()}}`}function a(e){const t=e.toUpperCase();return e.startsWith("{")?t:`{${t}}`}},37730:(e,t,s)=>{s.d(t,{T:()=>n});var r=s(43334);const n={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new r.Om(t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>e.ensureCentroid(t)}},50498:(e,t,s)=>{s.d(t,{Ye:()=>d,gy:()=>c,yR:()=>p});var r=s(66552),n=s(5443),i=s(91075),o=s(48526),a=s(86738),l=s(39829),u=s(82799);const c=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),d=(0,r.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),p={base:i.A,key:"type",typeMap:{extent:n.A,multipoint:o.A,point:a.A,polyline:u.A,polygon:l.A}}},51624:(e,t,s)=>{s.d(t,{A:()=>u});var r=s(44208),n=s(69397),i=s(93687);const o=4294967296,a=new TextDecoder("utf-8"),l=(0,r.A)("safari")||(0,r.A)("ios")?6:(0,r.A)("ff")?12:32;class u{constructor(e,t,s=0,r=(e?e.byteLength:0)){this._tag=0,this._dataType=99,this._init(e,t,s,r)}_init(e,t,s,r){this._data=e,this._dataView=t,this._pos=s,this._end=r}get usedMemory(){return 64+(0,n.Qf)(this._data)}asUnsafe(){return this}clone(){return new u(this._data,this._dataView,this._pos,this._end)}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;const t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;const e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)return e;if(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128)return e;throw new Error("Varint overflow")}getUInt64(){return this._decodeVarint()}getSInt32(){const e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){const e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){const e=this._dataView,t=this._pos,s=e.getUint32(t,!0)+e.getUint32(t+4,!0)*o;return this._skip(8),s}getSFixed64(){const e=this._dataView,t=this._pos,s=e.getUint32(t,!0)+e.getInt32(t+4,!0)*o;return this._skip(8),s}getDouble(){const e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){const e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){const e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){const e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){const e=this._getLength(),t=this._pos,s=this._toString(this._data,t,t+e);return this._skip(e),s}getBytes(){const e=this._getLength(),t=this._pos,s=this._toBytes(this._data,t,t+e);return this._skip(e),s}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,s,r){const n=this.getMessage(),i=e(n,t,s,r);return n.release(),i}processMessage(e){const t=this.getMessage(),s=e(t);return t.release(),s}getMessage(){const e=this._getLength(),t=u.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){u.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw new Error("Invalid data type!")}}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw new Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){const e=this._data;let t=this._pos,s=0,r=0;if(this._end-t>=10)do{if(r=e[t++],s|=127&r,!(128&r))break;if(r=e[t++],s|=(127&r)<<7,!(128&r))break;if(r=e[t++],s|=(127&r)<<14,!(128&r))break;if(r=e[t++],s|=(127&r)<<21,!(128&r))break;if(r=e[t++],s+=268435456*(127&r),!(128&r))break;if(r=e[t++],s+=34359738368*(127&r),!(128&r))break;if(r=e[t++],s+=4398046511104*(127&r),!(128&r))break;if(r=e[t++],s+=562949953421312*(127&r),!(128&r))break;if(r=e[t++],s+=72057594037927940*(127&r),!(128&r))break;if(r=e[t++],s+=0x8000000000000000*(127&r),!(128&r))break;throw new Error("Varint too long!")}while(0);else{let n=1;for(;t!==this._end&&(r=e[t],128&r);)++t,s+=(127&r)*n,n*=128;if(t===this._end)throw new Error("Varint overrun!");++t,s+=r*n}return this._pos=t,s}_decodeSVarint(){const e=this._data;let t,s=0,r=0;const n=1&e[this._pos];if(r=e[this._pos++],s|=127&r,!(128&r))return n?-(s+1)/2:s/2;if(r=e[this._pos++],s|=(127&r)<<7,!(128&r))return n?-(s+1)/2:s/2;if(r=e[this._pos++],s|=(127&r)<<14,!(128&r))return n?-(s+1)/2:s/2;if(r=e[this._pos++],s|=(127&r)<<21,!(128&r))return n?-(s+1)/2:s/2;if(r=e[this._pos++],s+=268435456*(127&r),!(128&r))return n?-(s+1)/2:s/2;if(r=e[this._pos++],s+=34359738368*(127&r),!(128&r))return n?-(s+1)/2:s/2;if(r=e[this._pos++],s+=4398046511104*(127&r),!(128&r))return n?-(s+1)/2:s/2;if(t=BigInt(s),r=e[this._pos++],t+=0x2000000000000n*BigInt(127&r),!(128&r))return Number(n?-(t+1n)/2n:t/2n);if(r=e[this._pos++],t+=0x100000000000000n*BigInt(127&r),!(128&r))return Number(n?-(t+1n)/2n:t/2n);if(r=e[this._pos++],t+=0x8000000000000000n*BigInt(127&r),!(128&r))return Number(n?-(t+1n)/2n:t/2n);throw new Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw new Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,s){if((s=Math.min(this._end,s))-t>l){const r=e.subarray(t,s);return a.decode(r)}let r="",n="";for(let i=t;i<s;++i){const t=e[i];128&t?n+="%"+t.toString(16):(r+=decodeURIComponent(n)+String.fromCharCode(t),n="")}return n.length&&(r+=decodeURIComponent(n)),r}_toBytes(e,t,s){return s=Math.min(this._end,s),new Uint8Array(e.buffer,t,s-t)}static{this.pool=new i.A(()=>new u(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},53655:(e,t,s)=>{s.d(t,{SH:()=>F,ae:()=>v,cn:()=>_});var r=s(49186),n=s(51624),i=s(92722),o=s(69418);const a=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],l=["sqlTypeBigInt","sqlTypeBinary","sqlTypeBit","sqlTypeChar","sqlTypeDate","sqlTypeDecimal","sqlTypeDouble","sqlTypeFloat","sqlTypeGeometry","sqlTypeGUID","sqlTypeInteger","sqlTypeLongNVarchar","sqlTypeLongVarbinary","sqlTypeLongVarchar","sqlTypeNChar","sqlTypeNVarchar","sqlTypeOther","sqlTypeReal","sqlTypeSmallInt","sqlTypeSqlXml","sqlTypeTime","sqlTypeTimestamp","sqlTypeTimestamp2","sqlTypeTinyInt","sqlTypeVarbinary","sqlTypeVarchar"],u=["upperLeft","lowerLeft"];function c(e){return e>=a.length?null:a[e]}function d(e){return e>=l.length?null:l[e]}function p(e){return e>=u.length?null:u[e]}function h(e,t){return t>=e.geometryTypes.length?null:e.geometryTypes[t]}function g(e,t,s){const r=e.asUnsafe(),n=t.createPointGeometry(s);for(;r.next();)switch(r.tag()){case 3:{const e=r.getUInt32(),s=r.pos()+e;let i=0;for(;r.pos()<s;)t.addCoordinatePoint(n,r.getSInt64(),i++);break}default:r.skip()}return n}function y(e,t,s){const r=e.asUnsafe(),n=t.createGeometry(s),i=2+(s.hasZ?1:0)+(s.hasM?1:0);for(;r.next();)switch(r.tag()){case 2:{const e=r.getUInt32(),s=r.pos()+e;let i=0;for(;r.pos()<s;)t.addLength(n,r.getUInt32(),i++);break}case 3:{const e=r.getUInt32(),s=r.pos()+e;let o=0;for(t.allocateCoordinates(n);r.pos()<s;)t.addCoordinate(n,r.getSInt64(),o),o++,o===i&&(o=0);break}default:r.skip()}return n}function f(e){const t=e.asUnsafe(),s=new i.A;let r="esriGeometryPoint";for(;t.next();)switch(t.tag()){case 2:{const e=t.getUInt32(),r=t.pos()+e;for(;t.pos()<r;)s.lengths.push(t.getUInt32());break}case 3:{const e=t.getUInt32(),r=t.pos()+e;for(;t.pos()<r;)s.coords.push(t.getSInt64());break}case 1:r=o.z[t.getEnum()];break;default:t.skip()}return{queryGeometry:s,queryGeometryType:r}}function m(e){const t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function _(e){const t=e.asUnsafe(),s={type:c(0)};for(;t.next();)switch(t.tag()){case 1:s.name=t.getString();break;case 2:s.type=c(t.getEnum());break;case 3:s.alias=t.getString();break;case 4:s.sqlType=d(t.getEnum());break;case 5:default:t.skip();break;case 6:s.defaultValue=t.getString()}return s}function w(e){const t={},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.name=s.getString();break;case 2:t.isSystemMaintained=s.getBool();break;default:s.skip()}return t}function b(e,t,s,r){const n=t.createFeature(s);let i=0;for(;e.next();)switch(e.tag()){case 1:{const t=r[i++].name;n.attributes[t]=e.processMessage(m);break}case 2:n.geometry=e.processMessageWithArgs(y,t,s);break;case 4:n.centroid=e.processMessageWithArgs(g,t,s);break;default:e.skip()}return n}function k(e){const t=[1,1,1,1],s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t[0]=s.getDouble();break;case 2:t[1]=s.getDouble();break;case 4:t[2]=s.getDouble();break;case 3:t[3]=s.getDouble();break;default:s.skip()}return t}function T(e){const t=[0,0,0,0],s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t[0]=s.getDouble();break;case 2:t[1]=s.getDouble();break;case 4:t[2]=s.getDouble();break;case 3:t[3]=s.getDouble();break;default:s.skip()}return t}function v(e){const t={originPosition:p(0)},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.originPosition=p(s.getEnum());break;case 2:t.scale=s.processMessage(k);break;case 3:t.translate=s.processMessage(T);break;default:s.skip()}return t}function S(e){const t={},s=e.asUnsafe();for(;s.next();)switch(s.tag()){case 1:t.shapeAreaFieldName=s.getString();break;case 2:t.shapeLengthFieldName=s.getString();break;case 3:t.units=s.getString();break;default:s.skip()}return t}function I(e,t){const s=t.createSpatialReference();for(;e.next();)switch(e.tag()){case 1:s.wkid=e.getUInt32();break;case 5:s.wkt=e.getString();break;case 2:s.latestWkid=e.getUInt32();break;case 3:s.vcsWkid=e.getUInt32();break;case 4:s.latestVcsWkid=e.getUInt32();break;default:e.skip()}return s}function x(e,t){const s=t.createFeatureResult(),r=e.asUnsafe();s.geometryType=h(t,0);let n=!1;for(;r.next();)switch(r.tag()){case 1:s.objectIdFieldName=r.getString();break;case 3:s.globalIdFieldName=r.getString();break;case 4:s.geohashFieldName=r.getString();break;case 5:s.geometryProperties=r.processMessage(S);break;case 7:s.geometryType=h(t,r.getEnum());break;case 8:s.spatialReference=r.processMessageWithArgs(I,t);break;case 10:s.hasZ=r.getBool();break;case 11:s.hasM=r.getBool();break;case 12:s.transform=r.processMessage(v);break;case 9:s.exceededTransferLimit=r.getBool();break;case 13:t.addField(s,r.processMessage(_));break;case 15:n||(t.prepareFeatures(s),n=!0),t.addFeature(s,r.processMessageWithArgs(b,t,s,s.fields));break;case 2:s.uniqueIdField=r.processMessage(w);break;default:r.skip()}return t.finishFeatureResult(s),s}function A(e,t){const s={};let r=null;for(;e.next();)switch(e.tag()){case 4:r=e.processMessageWithArgs(f);break;case 1:s.featureResult=e.processMessageWithArgs(x,t);break;default:e.skip()}return null!=r&&s.featureResult&&t.addQueryGeometry(s,r),s}function F(e,t){try{const s=2,r=new n.A(new Uint8Array(e),new DataView(e)),i={};for(;r.next();)r.tag()===s?i.queryResult=r.processMessageWithArgs(A,t):r.skip();return i}catch(e){throw new r.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}},58501:(e,t,s)=>{s.d(t,{q:()=>n});var r=s(62815);function n(e,t,s){if(!s?.features||!s.hasZ)return;const n=(0,r.N)(s.geometryType,t,e.outSpatialReference);if(n)for(const e of s.features)n(e.geometry)}},66208:(e,t,s)=>{s.d(t,{m:()=>n});var r=s(53655);function n(e,t){const s=(0,r.SH)(e,t),n=s.queryResult.featureResult,i=s.queryResult.queryGeometry,o=s.queryResult.queryGeometryType;if(n&&n.features&&n.features.length&&n.objectIdFieldName){const e=n.objectIdFieldName;for(const t of n.features)t.attributes&&(t.objectId=t.attributes[e])}return n&&(n.queryGeometry=i,n.queryGeometryType=o),n}},69418:(e,t,s)=>{s.d(t,{S:()=>u,z:()=>l});var r=s(83047),n=s(21325),i=s(43334),o=s(58512),a=s(92722);const l=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"];class u{constructor(e){this._options=e,this.geometryTypes=l,this._coordinatePtr=0,this._vertexDimension=0}createFeatureResult(){return new o.A}prepareFeatures(e){this._vertexDimension=2,e.hasZ&&this._vertexDimension++,e.hasM&&this._vertexDimension++}finishFeatureResult(e){if(!e?.features||!e.hasZ||!this._options.sourceSpatialReference||!e.spatialReference||(0,n.aI)(e.spatialReference,this._options.sourceSpatialReference)||e.spatialReference.vcsWkid)return;const t=(0,r.G9)(this._options.sourceSpatialReference)/(0,r.G9)(e.spatialReference);if(1!==t)for(const s of e.features){if(!(0,i.N3)(s))continue;const e=s.geometry.coords;for(let s=2;s<e.length;s+=3)e[s]*=t}}addFeature(e,t){e.features.push(t)}createFeature(){return new i.Om(null,{},null,0)}createSpatialReference(){return{wkid:0}}createGeometry(){return new a.A}addField(e,t){e.fields.push(t)}allocateCoordinates(e){e.coords.length=e.lengths.reduce((e,t)=>e+t,0)*this._vertexDimension,this._coordinatePtr=0}addCoordinate(e,t){e.coords[this._coordinatePtr++]=t}addCoordinatePoint(e,t){e.coords.push(t)}addLength(e,t){e.lengths.push(t)}addQueryGeometry(e,t){e.queryGeometry=t.queryGeometry,e.queryGeometryType=t.queryGeometryType}createPointGeometry(){return new a.A}}},72802:(e,t,s)=>{s.d(t,{U:()=>n});var r=s(19419);class n{constructor(e,t,s,n=(0,r.vt)()){this._level=e,this._row=t,this._col=s,this.extent=n}get id(){return this._id??=`${this.level}/${this.row}/${this.col}`,this._id}get level(){return this._level}set level(e){this._level=e,this._id=null}get row(){return this._row}set row(e){this._row=e,this._id=null}get col(){return this._col}set col(e){this._col=e,this._id=null}toJSON(){return{level:this._level,row:this._row,col:this._col,extent:this.extent}}static fromJSON(e){return new n(e.level,e.row,e.col,e.extent)}}},79677:(e,t,s)=>{s.d(t,{A:()=>p});var r,n=s(31635),i=s(25482),o=s(88930),a=s(10107),l=(s(44208),s(53966),s(87811),s(36005)),u=s(64108),c=s(43937),d=s(98623);let p=class extends i.o{static{r=this}static get allTime(){return h}static get empty(){return g}static fromArray(e){return new r({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,s=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===r&&s===n}expandTo(e,t=d.qU){if(this.isEmpty||this.isAllTime)return this.clone();let s=this.start;s&&(s=(0,o.lL)(s,e,t));let n=this.end;if(n){const s=(0,o.lL)(n,e,t);n=n.getTime()===s.getTime()?s:(0,o.S1)(s,1,e,t)}return new r({start:s,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,s=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,i=e.end?.getTime()??1/0;let o,a;return n>=t&&n<=s?o=n:t>=n&&t<=i&&(o=t),s>=n&&s<=i?a=s:i>=t&&i<=s&&(a=i),null==o||null==a||isNaN(o)||isNaN(a)?r.empty:new r({start:o===-1/0?null:new Date(o),end:a===1/0?null:new Date(a)})}offset(e,t,s=d.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new r,{start:i,end:a}=this;return null!=i&&(n.start=(0,o.S1)(i,e,t,s)),null!=a&&(n.end=(0,o.S1)(a,e,t,s)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,s=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:s})}};(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,n.Cg)([(0,l.w)("end")],p.prototype,"readEnd",null),(0,n.Cg)([(0,c.K)("end")],p.prototype,"writeEnd",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,n.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,n.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,n.Cg)([(0,l.w)("start")],p.prototype,"readStart",null),(0,n.Cg)([(0,c.K)("start")],p.prototype,"writeStart",null),p=r=(0,n.Cg)([(0,u.$)("esri.time.TimeExtent")],p);const h=new p,g=new p({start:void 0,end:void 0})},79897:(e,t,s)=>{s.d(t,{U:()=>c});var r=s(31635),n=s(69622),i=s(36563),o=s(36708),a=s(76030),l=s(10107),u=s(64108);let c=class extends n.A{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll()}add(e,t,s={}){return this._installWatch(e,t,s,o.wB)}addWhen(e,t,s={}){return this._installWatch(e,t,s,o.z7)}addOnCollectionChange(e,t,{initial:s=!1,final:r=!1}={}){const n=++this._handleId;return this.addHandles([(0,o.on)(e,"after-changes",this._createSyncUpdatingCallback(),o.OH),(0,o.on)(e,"change",t,{onListenerAdd:s?e=>t({added:e.toArray(),removed:[]}):void 0,onListenerRemove:r?e=>t({added:[],removed:e.toArray()}):void 0})],n),(0,i.hA)(()=>this.removeHandles(n))}addPromise(e){if(null==e)return e;const t=++this._handleId;this.addHandles((0,i.hA)(()=>{this._pendingPromises.delete(e)&&(0!==this._pendingPromises.size||this.hasHandles(d)||this._set("updating",!1))}),t),this._pendingPromises.add(e),this._set("updating",!0);const s=()=>this.removeHandles(t);return e.then(s,s),e}removeAll(){this._pendingPromises.clear(),this.removeAllHandles(),this._set("updating",!1)}_installWatch(e,t,s={},r){const n=++this._handleId;s.sync||this._installSyncUpdatingWatch(e,n);const o=r(e,t,s);return this.addHandles(o,n),(0,i.hA)(()=>this.removeHandles(n))}_installSyncUpdatingWatch(e,t){const s=this._createSyncUpdatingCallback(),r=(0,o.wB)(e,s,{sync:!0,equals:()=>!1});return this.addHandles(r,t),r}_createSyncUpdatingCallback(){return()=>{this.removeHandles(d),++this._scheduleHandleId;const e=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this.addHandles((0,a._)(()=>{e===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this.removeHandles(d))}),d)}}};(0,r.Cg)([(0,l.MZ)({readOnly:!0})],c.prototype,"updating",void 0),c=(0,r.Cg)([(0,u.$)("esri.core.support.UpdatingHandles")],c);const d=-42},80893:(e,t,s)=>{s.d(t,{IJ:()=>p,Jf:()=>f,Pk:()=>g,eW:()=>d,gW:()=>y,kS:()=>h});var r=s(78888),n=s(84952),i=s(17136),o=s(10536),a=s(66208),l=s(5076),u=s(58501);const c="Layer does not support extent calculation.";async function d(e,t,s,r={},n){const i=t.timeExtent?.isEmpty?{data:{features:[]}}:await _(e,t,"json",r,void 0,n);return(0,u.q)(t,s,i.data),i}async function p(e,t,s,r,n){if(t.timeExtent?.isEmpty)return{data:s.createFeatureResult()};const i=await h(e,t,r,n),o=i;return o.data=(0,a.m)(i.data,s),o}function h(e,t,s={},r){return _(e,t,"pbf",s,void 0,r)}function g(e,t,s={},r){return t.timeExtent?.isEmpty?Promise.resolve({data:{objectIds:[]}}):_(e,t,"json",s,{returnIdsOnly:!0},r)}function y(e,t,s={},r){return t.timeExtent?.isEmpty?Promise.resolve({data:{count:0}}):_(e,t,"json",s,{returnIdsOnly:!0,returnCountOnly:!0},r)}async function f(e,t,s={}){if(t.timeExtent?.isEmpty)return{data:{count:0,extent:null}};const r=await _(e,t,"json",s,{returnExtentOnly:!0,returnCountOnly:!0}),n=r.data;if(n.hasOwnProperty("extent"))return r;if(n.features)throw new Error(c);if(n.hasOwnProperty("count"))throw new Error(c);return r}function m(e,t){if(!e.returnIdsOnly||!t.uniqueIdFields)return e;const s={...e,returnUniqueIdsOnly:!0};return delete s.returnIdsOnly,s}async function _(e,t,s,a,u={},c={}){const d="string"==typeof e?(0,n.An)(e):e,p=t.geometry?[t.geometry]:[],h=await(0,i.el)(p,null,{signal:a.signal}),g=h?.[0];if(null!=g){const e=t.clone();e.geometry=g.clone(),t=e}const y=(0,o.z)({...d.query,f:s,...m(u,c),...(f=t,_=u,w=c,(0,l.i)(f,_,w))});var f,_,w;return(0,r.A)((0,n.fj)(d.path,function(e,t){return null!=e.formatOf3DObjects&&!(t.returnCountOnly||t.returnExtentOnly||t.returnIdsOnly)}(t,u)?"query3d":"query"),{...a,responseType:"pbf"===s?"array-buffer":"json",query:{...y,...a.query}})}},87045:(e,t,s)=>{s.d(t,{A:()=>b});var r,n=s(31635),i=s(66552),o=s(25482),a=s(83047),l=s(10107),u=s(56507),c=(s(44208),s(87811),s(36005)),d=s(64108),p=s(43937),h=s(86738),g=s(16930),y=s(21325),f=s(28735),m=s(91806),_=s(72802);const w=new i.J({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let b=class extends o.o{static{r=this}static create(e={}){const{resolutionFactor:t=1,scales:s,size:n=256,spatialReference:i=g.A.WebMercator,numLODs:o=24}=e;if(!(0,y.fn)(i)){const e=[];if(s)for(let t=0;t<s.length;t++){const r=s[t];e.push(new m.A({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let s=o-1;s>=0;s--)e.unshift(new m.A({level:s,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new h.A(0,0,i),size:[n,n],spatialReference:i})}const l=(0,y.Vp)(i),u=e.origin?new h.A({x:e.origin.x,y:e.origin.y,spatialReference:i}):new h.A(l?{x:l.origin[0],y:l.origin[1],spatialReference:i}:{x:0,y:0,spatialReference:i}),c=1/(39.37*(0,a.GA)(i)*96),d=[];if(s)for(let e=0;e<s.length;e++){const t=s[e],r=t*c;d.push(new m.A({level:e,scale:t,resolution:r}))}else{let e=(0,y.EA)(i)?512/n*591657527.5917094:256/n*591657527.591555;const s=Math.ceil(o/t);d.push(new m.A({level:0,scale:e,resolution:e*c}));for(let r=1;r<s;r++){const s=e/2**t,n=s*c;d.push(new m.A({level:r,scale:s,resolution:n})),e=s}}return new r({dpi:96,lods:d,origin:u,size:[n,n],spatialReference:i})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const s=(0,y.Vp)(e);return e.isWrappable&&!!s&&Math.abs(s.origin[0]-t.x)<=s.dx}return!1}readOrigin(e,t){return h.A.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,s=0;const r=[],n=this._levelToLOD={};e&&(t=-1/0,s=1/0,e.forEach(e=>{r.push(e.scale),t=e.scale>t?e.scale:t,s=e.scale<s?e.scale:s,n[e.level]=e})),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const s=Math.floor(e),r=s+1;return t[s]/(t[s]/t[r])**(e-s)}scaleToZoom(e){const t=this.scales,s=t.length-1;let r=0;for(;r<s;r++){const s=t[r],n=t[r+1];if(s<=e)return r;if(n===e)return r+1;if(s>e&&n<e)return r+Math.log(s/e)/Math.log(s/n)}return r}tileAt(e,t,s,r){const n=this.lodAt(e);if(!n)return null;let i,o;if("number"==typeof t)i=t,o=s;else if((0,y.aI)(t.spatialReference,this.spatialReference))i=t.x,o=t.y,r=s;else{const e=(0,f.Cv)(t,this.spatialReference);if(null==e)return null;i=e.x,o=e.y,r=s}const a=n.resolution*this.size[0],l=n.resolution*this.size[1];return r??=new _.U(0,0,0),r.level=e,r.row=Math.floor((this.origin.y-o)/l+.001),r.col=Math.floor((i-this.origin.x)/a+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=0){if(!("extent"in e))return!1;let s=this.lodAt(e.level);if(!s&&1===t){const t=this.lods[this.lods.length-1];t.level<e.level&&(s=t)}if(!s)return!1;const r=e.level-s.level,n=s.resolution*this.size[0]/2**r,i=s.resolution*this.size[1]/2**r;return e.extent[0]=this.origin.x+e.col*n,e.extent[1]=this.origin.y-(e.row+1)*i,e.extent[2]=e.extent[0]+n,e.extent[3]=e.extent[1]+i,!0}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const s=this.lodAt(t.level);if(null==s)return null;const{resolution:r}=s,n=r*this.size[0],i=r*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*i,e[2]=e[0]+n,e[3]=e[1]+i,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getCompatibleForVTL(e){if(this.size[0]!==this.size[1]||256===this.size[0]&&512===e)return null;const t=(512===this.size[0]&&256===e?-1:0)+(this.spatialReference.isGeographic?1:0);if(this.size[0]===e&&0===t)return this;const s=[],n=this.lods.length-t;for(let e=0;e<n;e++){const r=e+t,{scale:n,resolution:i}=r>=0?this.lods[r]:{scale:2*this.lods[0].scale,resolution:2*this.lods[0].resolution};s.push(new m.A({level:e,scale:n,resolution:i}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:s})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let s=0;s<e.length;s++){const r=e[s];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],b.prototype,"compressionQuality",void 0),(0,n.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],b.prototype,"dpi",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:w.read,write:w.write,origins:{"web-scene":{read:!1,write:!1}}}})],b.prototype,"format",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],b.prototype,"isWrappable",null),(0,n.Cg)([(0,l.MZ)({type:h.A,json:{write:!0}})],b.prototype,"origin",void 0),(0,n.Cg)([(0,c.w)("origin")],b.prototype,"readOrigin",null),(0,n.Cg)([(0,l.MZ)({type:[m.A],value:null,json:{write:!0}})],b.prototype,"lods",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],b.prototype,"scales",void 0),(0,n.Cg)([(0,l.MZ)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],b.prototype,"size",void 0),(0,n.Cg)([(0,c.w)("size",["rows","cols"])],b.prototype,"readSize",null),(0,n.Cg)([(0,p.K)("size",{cols:{type:u.jz},rows:{type:u.jz}})],b.prototype,"writeSize",null),(0,n.Cg)([(0,l.MZ)({type:g.A,json:{write:!0}})],b.prototype,"spatialReference",void 0),b=r=(0,n.Cg)([(0,d.$)("esri.layers.support.TileInfo")],b)},91806:(e,t,s)=>{s.d(t,{A:()=>u});var r,n=s(31635),i=s(25482),o=s(10107),a=s(56507),l=(s(44208),s(87811),s(64108));let u=class extends i.o{static{r=this}constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"cols",void 0),(0,n.Cg)([(0,o.MZ)({type:a.jz,json:{write:!0}})],u.prototype,"level",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"levelValue",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"origin",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],u.prototype,"resolution",void 0),(0,n.Cg)([(0,o.MZ)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"rows",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{write:!0}})],u.prototype,"scale",void 0),u=r=(0,n.Cg)([(0,l.$)("esri.layers.support.LOD")],u)}}]);