@arcgis/core 5.0.0-next.22 → 5.0.0-next.23

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 (178) hide show
  1. package/analysis/DistanceMeasurementAnalysis.d.ts +4 -0
  2. package/applications/SceneViewer/sceneViewerUtils.d.ts +1 -0
  3. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/024104997daea0d74b38.js +1 -0
  6. package/assets/esri/core/workers/chunks/052ded41dc06c93ec0a7.js +1 -0
  7. package/assets/esri/core/workers/chunks/05b7720ab6bf0874f27c.js +1 -0
  8. package/assets/esri/core/workers/chunks/06d52a570d5d44f8c86e.js +1 -0
  9. package/assets/esri/core/workers/chunks/13b47c217d1e9b61bcbf.js +1 -0
  10. package/assets/esri/core/workers/chunks/174972870db79189200b.js +1 -0
  11. package/assets/esri/core/workers/chunks/219876879bc543568bcd.js +1 -0
  12. package/assets/esri/core/workers/chunks/221691ad0b2912827e14.js +1 -0
  13. package/assets/esri/core/workers/chunks/231c0b583fa97f2ca675.js +1 -0
  14. package/assets/esri/core/workers/chunks/274f2b5e6dbc58505142.js +1 -0
  15. package/assets/esri/core/workers/chunks/2a41283bba2361afa1fd.js +1 -0
  16. package/assets/esri/core/workers/chunks/2c4218306747f5d15575.js +1 -0
  17. package/assets/esri/core/workers/chunks/2c7038a7ffaf75344b02.js +1 -0
  18. package/assets/esri/core/workers/chunks/2de32649f8b0c6404d7c.js +1 -0
  19. package/assets/esri/core/workers/chunks/{f651c05604eab83aef5f.js → 3266c3392c24ce6cdd83.js} +2 -2
  20. package/assets/esri/core/workers/chunks/42747a028fc404ac55f4.js +1 -0
  21. package/assets/esri/core/workers/chunks/443931ac4b4ee5ccb932.js +1 -0
  22. package/assets/esri/core/workers/chunks/4ab89c990a82c745c0fd.js +1 -0
  23. package/assets/esri/core/workers/chunks/4b14ee37b5ac50a734f9.js +1 -0
  24. package/assets/esri/core/workers/chunks/4cda42b94e9cb58dd372.js +1 -0
  25. package/assets/esri/core/workers/chunks/4ce28c936eaffe57c448.js +1 -0
  26. package/assets/esri/core/workers/chunks/538ddb267aa328814865.js +1 -0
  27. package/assets/esri/core/workers/chunks/5b290d18de61789417f9.js +1 -0
  28. package/assets/esri/core/workers/chunks/5b73c77587772120b209.js +1 -0
  29. package/assets/esri/core/workers/chunks/60eeeea671a523bb6b15.js +1 -0
  30. package/assets/esri/core/workers/chunks/6428e2f4fc0a6739cc9e.js +1 -0
  31. package/assets/esri/core/workers/chunks/69278d08a7d64917f826.js +2 -0
  32. package/assets/esri/core/workers/chunks/{c1e4e9ab4a543e8b350d.js → 6b8a923fe5f800f703e3.js} +1 -1
  33. package/assets/esri/core/workers/chunks/6e5d41f51572e3e7cf92.js +1 -0
  34. package/assets/esri/core/workers/chunks/{7565b382f6b3d2cb46a3.js → 6f3ffc04086bca30e55d.js} +2 -2
  35. package/assets/esri/core/workers/chunks/70e2804d3710c6af468e.js +2 -0
  36. package/assets/esri/core/workers/chunks/7749801f30a99b60753e.js +1 -0
  37. package/assets/esri/core/workers/chunks/{aa78b69219d9a0ef1c54.js → 78fc9a55e620602db1ff.js} +2 -2
  38. package/assets/esri/core/workers/chunks/800c282a7335b2e6c7cd.js +1 -0
  39. package/assets/esri/core/workers/chunks/{867a181969eeeb5f1856.js → 838b3ec88785ac7aa31b.js} +1 -1
  40. package/assets/esri/core/workers/chunks/88aa71f02f43bb069345.js +1 -0
  41. package/assets/esri/core/workers/chunks/8a8192e6a9fd7a6d8060.js +1 -0
  42. package/assets/esri/core/workers/chunks/{74a251e7f5be72ca2a5a.js → 8b336a63737e917e50e2.js} +1 -1
  43. package/assets/esri/core/workers/chunks/8d4cc5f1d07b4aa3aea0.js +1 -0
  44. package/assets/esri/core/workers/chunks/8f0c53feead87457b7eb.js +1 -0
  45. package/assets/esri/core/workers/chunks/{4f7b7587d7902355f2a1.js → 93fe46be3c7fe34b5361.js} +1 -1
  46. package/assets/esri/core/workers/chunks/9461cc37ab3397265270.js +1 -0
  47. package/assets/esri/core/workers/chunks/9527f1a611557a7af237.js +1 -0
  48. package/assets/esri/core/workers/chunks/97b01803d0c38541aa08.js +1 -0
  49. package/assets/esri/core/workers/chunks/9921c8d4487a0f580b93.js +1 -0
  50. package/assets/esri/core/workers/chunks/9d0f0d055ec25af037e0.js +1 -0
  51. package/assets/esri/core/workers/chunks/9f0172b83f25ef5f8d40.js +1 -0
  52. package/assets/esri/core/workers/chunks/9f6d82ce8f680abb79bb.js +1 -0
  53. package/assets/esri/core/workers/chunks/a4f492aa5444e6381063.js +1 -0
  54. package/assets/esri/core/workers/chunks/{d6e0528eacee7ea4c1ce.js → a67c3958d76d10c04fa6.js} +2 -2
  55. package/assets/esri/core/workers/chunks/a7dc1928d46dd6b69868.js +1 -0
  56. package/assets/esri/core/workers/chunks/b6d21a2b5c1be8bee57c.js +1 -0
  57. package/assets/esri/core/workers/chunks/{ce16489cf7eb0d78c741.js → be631029691d9a320cb5.js} +2 -2
  58. package/assets/esri/core/workers/chunks/c35a22becf5c470ff6a2.js +1 -0
  59. package/assets/esri/core/workers/chunks/c5d6b416baf24e74b9ba.js +1 -0
  60. package/assets/esri/core/workers/chunks/cade149fa19b4d06dd24.js +1 -0
  61. package/assets/esri/core/workers/chunks/cd1d9f638af5b63a1292.js +1 -0
  62. package/assets/esri/core/workers/chunks/d21ae4980741be98f948.js +1 -0
  63. package/assets/esri/core/workers/chunks/d32aad968798948946e4.js +1 -0
  64. package/assets/esri/core/workers/chunks/{0f735b0dec173142f3b6.js → d9251c3c85c3ddd242c8.js} +2 -2
  65. package/assets/esri/core/workers/chunks/e0369ce0d729c9656488.js +1 -0
  66. package/assets/esri/core/workers/chunks/e2d2a55aedd3ce9cb47b.js +1 -0
  67. package/assets/esri/core/workers/chunks/e3c8fac5fe638d548e34.js +1 -0
  68. package/assets/esri/core/workers/chunks/e45940d342b18983a5ef.js +1 -0
  69. package/assets/esri/core/workers/chunks/{16f841f12b32d8a500a9.js → fa4f788abfbfd3dee882.js} +1 -1
  70. package/assets/esri/core/workers/chunks/fbbf25629e0dab486887.js +1 -0
  71. package/config.js +1 -1
  72. package/interfaces.d.ts +355 -73
  73. package/kernel.js +1 -1
  74. package/layers/VideoLayer.js +1 -1
  75. package/layers/mixins/ArcGISImageService.js +1 -1
  76. package/layers/support/SubtypeSublayer.js +1 -1
  77. package/package.json +6 -6
  78. package/support/revision.js +1 -1
  79. package/unionTypes.d.ts +0 -1
  80. package/views/2d/analysis/AreaMeasurement/AreaMeasurementAreaVisualization.js +1 -1
  81. package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
  82. package/views/2d/analysis/AreaMeasurement/utils.js +5 -0
  83. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -0
  84. package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
  85. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -0
  86. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  87. package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
  88. package/views/3d/analysis/Dimension/types.d.ts +3 -0
  89. package/views/3d/analysis/Dimension/types.js +5 -0
  90. package/views/3d/analysis/DirectLineMeasurement/types.d.ts +4 -0
  91. package/views/3d/analysis/DirectLineMeasurement/types.js +5 -0
  92. package/views/3d/analysis/LineOfSight/types.d.ts +3 -0
  93. package/views/3d/analysis/LineOfSight/types.js +5 -0
  94. package/views/3d/analysis/Slice/types.d.ts +3 -0
  95. package/views/3d/analysis/Slice/types.js +5 -0
  96. package/views/3d/analysis/Viewshed/types.d.ts +3 -0
  97. package/views/3d/analysis/Viewshed/types.js +5 -0
  98. package/views/3d/analysis/VolumeMeasurement/types.d.ts +3 -0
  99. package/views/3d/analysis/VolumeMeasurement/types.js +5 -0
  100. package/views/3d/support/popupHitTest.js +1 -1
  101. package/views/3d/terrain/TerrainSurface.js +1 -1
  102. package/views/3d/terrain/Tile.js +1 -1
  103. package/views/VideoView.js +1 -1
  104. package/views/analysis/AreaMeasurement/types.d.ts +4 -0
  105. package/views/analysis/AreaMeasurement/types.js +5 -0
  106. package/views/analysis/DistanceMeasurement/types.d.ts +4 -0
  107. package/views/analysis/DistanceMeasurement/types.js +5 -0
  108. package/views/analysis/types.d.ts +3 -0
  109. package/views/analysis/types.js +5 -0
  110. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  111. package/widgets/Editor/workflowUtils.js +1 -1
  112. package/widgets/FeatureTable/FieldColumn.js +1 -1
  113. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  114. package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
  115. package/assets/esri/core/workers/chunks/03ed15ba64f1679b3d48.js +0 -1
  116. package/assets/esri/core/workers/chunks/04bac7bb3f794b33e2e4.js +0 -1
  117. package/assets/esri/core/workers/chunks/092d72caf3269e696d1c.js +0 -1
  118. package/assets/esri/core/workers/chunks/1466ab7bd500ba7a4025.js +0 -1
  119. package/assets/esri/core/workers/chunks/1beee2932154db83f79d.js +0 -1
  120. package/assets/esri/core/workers/chunks/1cae81089b50b7e43d70.js +0 -1
  121. package/assets/esri/core/workers/chunks/1fcd4d90a99e85d35dd2.js +0 -1
  122. package/assets/esri/core/workers/chunks/21d7f42c2033de987b97.js +0 -1
  123. package/assets/esri/core/workers/chunks/24ff9dad3fb64ab54970.js +0 -1
  124. package/assets/esri/core/workers/chunks/26282c67d2b066a76881.js +0 -1
  125. package/assets/esri/core/workers/chunks/2d3e7b41b225d905c7f4.js +0 -1
  126. package/assets/esri/core/workers/chunks/30a631c39c9372797b92.js +0 -1
  127. package/assets/esri/core/workers/chunks/388873be1dca91ccbc9d.js +0 -1
  128. package/assets/esri/core/workers/chunks/3a457e718a901a45902e.js +0 -2
  129. package/assets/esri/core/workers/chunks/44e08b49898a8fcbe031.js +0 -1
  130. package/assets/esri/core/workers/chunks/4731f507149940dde534.js +0 -1
  131. package/assets/esri/core/workers/chunks/4d0e099f34639cda3a9b.js +0 -1
  132. package/assets/esri/core/workers/chunks/5a6b487b70ca85a45f57.js +0 -1
  133. package/assets/esri/core/workers/chunks/5b5f1f22de985dc6bbc0.js +0 -1
  134. package/assets/esri/core/workers/chunks/5c82b17f9990e6cd7d0b.js +0 -1
  135. package/assets/esri/core/workers/chunks/61bb39597ccf89f99a72.js +0 -1
  136. package/assets/esri/core/workers/chunks/67bc5b87fd61095689d4.js +0 -1
  137. package/assets/esri/core/workers/chunks/6bf5b3c7129aa14b4fc6.js +0 -1
  138. package/assets/esri/core/workers/chunks/755e2ecd20b6bd1909be.js +0 -1
  139. package/assets/esri/core/workers/chunks/768e1ad2f06fdc9d5ef8.js +0 -1
  140. package/assets/esri/core/workers/chunks/7a957f2bca1438732338.js +0 -1
  141. package/assets/esri/core/workers/chunks/809a9055da28c8fa58b0.js +0 -1
  142. package/assets/esri/core/workers/chunks/8bbae8ac586e5c0819d2.js +0 -1
  143. package/assets/esri/core/workers/chunks/8cd03b54b2859b52fb81.js +0 -1
  144. package/assets/esri/core/workers/chunks/8f85039d76f03fbdd27a.js +0 -1
  145. package/assets/esri/core/workers/chunks/93f706acaa812bb3ac70.js +0 -1
  146. package/assets/esri/core/workers/chunks/976dd80e318266ab4c2c.js +0 -1
  147. package/assets/esri/core/workers/chunks/9a20be3b02c9d6349b8d.js +0 -1
  148. package/assets/esri/core/workers/chunks/9dae3e4e34096b3d82d7.js +0 -1
  149. package/assets/esri/core/workers/chunks/9e5e05d6430712b0b1bc.js +0 -1
  150. package/assets/esri/core/workers/chunks/a0b0fe0d99df20fa9076.js +0 -1
  151. package/assets/esri/core/workers/chunks/a987731d1b5449d8fb0c.js +0 -1
  152. package/assets/esri/core/workers/chunks/ad9606164c694af0c61f.js +0 -1
  153. package/assets/esri/core/workers/chunks/b0e52c3775f05aaf7ff6.js +0 -1
  154. package/assets/esri/core/workers/chunks/bfd3d81e8e148be99686.js +0 -1
  155. package/assets/esri/core/workers/chunks/cbc5131723cbe29cb88f.js +0 -1
  156. package/assets/esri/core/workers/chunks/ce00509970e7e6eacbdf.js +0 -1
  157. package/assets/esri/core/workers/chunks/cec95ed69c86758d95ec.js +0 -1
  158. package/assets/esri/core/workers/chunks/d391bfbaf0e790cd10d6.js +0 -2
  159. package/assets/esri/core/workers/chunks/d622fb553babd515a21f.js +0 -1
  160. package/assets/esri/core/workers/chunks/ddb55435adeda1e2a1bf.js +0 -1
  161. package/assets/esri/core/workers/chunks/e5a9c37de44508e9733b.js +0 -1
  162. package/assets/esri/core/workers/chunks/e5b42ddec8e424602e03.js +0 -1
  163. package/assets/esri/core/workers/chunks/eaabb5b010b7bb850b0a.js +0 -1
  164. package/assets/esri/core/workers/chunks/eafc4da265469e9e5e0b.js +0 -1
  165. package/assets/esri/core/workers/chunks/eb1b582a73111c8556c1.js +0 -1
  166. package/assets/esri/core/workers/chunks/f594df2f5ce6ca41a254.js +0 -1
  167. package/assets/esri/core/workers/chunks/f64037a88ab03662dc2a.js +0 -1
  168. package/assets/esri/core/workers/chunks/f888849b0236cc0d6f50.js +0 -1
  169. package/assets/esri/core/workers/chunks/fbcc4cbb221c0fbb90d4.js +0 -1
  170. package/views/2d/analysis/AreaMeasurement/AreaMeasurementLabelVisualization.js +0 -5
  171. /package/assets/esri/core/workers/chunks/{0f735b0dec173142f3b6.js.LICENSE.txt → 3266c3392c24ce6cdd83.js.LICENSE.txt} +0 -0
  172. /package/assets/esri/core/workers/chunks/{d391bfbaf0e790cd10d6.js.LICENSE.txt → 69278d08a7d64917f826.js.LICENSE.txt} +0 -0
  173. /package/assets/esri/core/workers/chunks/{7565b382f6b3d2cb46a3.js.LICENSE.txt → 6f3ffc04086bca30e55d.js.LICENSE.txt} +0 -0
  174. /package/assets/esri/core/workers/chunks/{3a457e718a901a45902e.js.LICENSE.txt → 70e2804d3710c6af468e.js.LICENSE.txt} +0 -0
  175. /package/assets/esri/core/workers/chunks/{aa78b69219d9a0ef1c54.js.LICENSE.txt → 78fc9a55e620602db1ff.js.LICENSE.txt} +0 -0
  176. /package/assets/esri/core/workers/chunks/{d6e0528eacee7ea4c1ce.js.LICENSE.txt → a67c3958d76d10c04fa6.js.LICENSE.txt} +0 -0
  177. /package/assets/esri/core/workers/chunks/{ce16489cf7eb0d78c741.js.LICENSE.txt → be631029691d9a320cb5.js.LICENSE.txt} +0 -0
  178. /package/assets/esri/core/workers/chunks/{f651c05604eab83aef5f.js.LICENSE.txt → d9251c3c85c3ddd242c8.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4649],{159:(e,t,i)=>{i.d(t,{A:()=>l});var n,s=i(31635),r=i(69622),a=i(91429),o=i(99157);let l=n=class extends r.A{constructor(e){super(e),this.steps=[]}getInverse(){const e=new n;for(let t=this.steps.length-1;t>=0;t--){const i=this.steps[t];e.steps.push(i.getInverse())}return e}};(0,s.Cg)([(0,a.MZ)({type:[o.A],nonNullable:!0})],l.prototype,"steps",void 0),l=n=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformation")],l)},4197:(e,t,i)=>{i.d(t,{Vj:()=>u,cj:()=>l,jh:()=>r,l5:()=>o,xm:()=>a});var n=i(34275),s=i(9093);function r(e){return e<=n.y9?new Array(e).fill(0):new Float64Array(e)}function a(e){return((0,n.iu)(e)?e.byteLength/8:e.length)<=n.y9?Array.from(e):new Float64Array(e)}function o(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function l(e){return[...e]}function u(e){const t=(0,s.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},5834:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(31635),s=i(93637),r=i(91429),a=i(56507),o=i(41266),l=i(41366),u=i(93223);function c(e,t,i){(0,s.sM)(i,e instanceof Date?e.getTime():e,t)}let d=class extends((0,l.K)(o.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,n.Cg)([(0,r.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],d.prototype,"numBins",void 0),(0,n.Cg)([(0,r.MZ)({json:{name:"parameters.end",write:{writer:c}}})],d.prototype,"end",void 0),(0,n.Cg)([(0,r.MZ)({json:{name:"parameters.start",write:{writer:c}}})],d.prototype,"start",void 0),(0,n.Cg)([(0,u.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],d.prototype,"type",void 0),d=(0,n.Cg)([(0,r.$K)("esri.rest.support.AutoIntervalBinParameters")],d),d.from=(0,a.dp)(d)},8384:(e,t,i)=>{i.d(t,{G:()=>M});var n=i(4718),s=i(12359),r=i(90634),a=i(62577),o=i(21325),l=i(29441),u=i(51441),c=i(30524),d=i(87445),p=i(1873),f=i(43668);class h{constructor(e,t,i){this._fieldDataCache=new Map,this._returnDistinctMap=new Map,this.returnDistinctValues=e.returnDistinctValues??!1,this.fieldsIndex=i,this.featureAdapter=t;const n=e.outFields;if(n&&!n.includes("*")){this.outFields=n;let e=0;for(const t of n){const n=(0,l.Wq)(t),s=this.fieldsIndex.get(n),r=s?null:(0,l.j4)(n,i),a=s?s.name:(0,l.SY)(t)||"FIELD_EXP_"+e++;this._fieldDataCache.set(t,{alias:a,clause:r})}}}countDistinctValues(e){return this.returnDistinctValues?(e.forEach(e=>this.getAttributes(e)),this._returnDistinctMap.size):e.length}getAttributes(e){const t=this._processAttributesForOutFields(e);return this._processAttributesForDistinctValues(t)}getFieldValue(e,t,i){const n=i?i.name:t;let s=null;return this._fieldDataCache.has(n)?s=this._fieldDataCache.get(n)?.clause:i||(s=(0,l.j4)(t,this.fieldsIndex),this._fieldDataCache.set(n,{alias:n,clause:s})),i?this.featureAdapter.getAttribute(e,n):s?.calculateValue(e,this.featureAdapter)}getDataValues(e,t,i=!0){const n=t.normalizationType,s=t.normalizationTotal,r=this.fieldsIndex.get(t.field),a=(0,c.zD)(r)||(0,c.Ah)(r),o=(0,c.OH)(r);return e.map(e=>{let r=t.field&&this.getFieldValue(e,t.field,this.fieldsIndex.get(t.field));if(t.field2?(r=`${(0,p.gJ)(r)}${t.fieldDelimiter}${(0,p.gJ)(this.getFieldValue(e,t.field2,this.fieldsIndex.get(t.field2)))}`,t.field3&&(r=`${r}${t.fieldDelimiter}${(0,p.gJ)(this.getFieldValue(e,t.field3,this.fieldsIndex.get(t.field3)))}`)):"string"==typeof r&&i&&(a?r=r?new Date(r).getTime():null:o&&(r=r?(0,d.rb)(r):null)),n&&Number.isFinite(r)){const i="field"===n&&t.normalizationField?this.getFieldValue(e,t.normalizationField,this.fieldsIndex.get(t.normalizationField)):null;r=(0,p.zS)(r,n,i,s)}return r})}async getExpressionValues(e,t,i,n,s){const{arcadeUtils:r}=await(0,f.l)(),a=r.hasGeometryOperations(t);a&&await r.enableGeometryOperations();const o=r.createFunction(t),l=r.getViewInfo(i),c={fields:this.fieldsIndex.fields};return e.map(e=>{const t={attributes:this.featureAdapter.getAttributes(e),layer:c,geometry:a?{...(0,u.pL)(n.geometryType,this.featureAdapter.getGeometry(e)),spatialReference:i?.spatialReference}:null},d=r.createExecContext(t,l,s);return r.executeFunction(o,d)})}validateItem(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,l.j4)(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testFeature(e,this.featureAdapter)??!1}validateItems(e,t){return this._fieldDataCache.has(t)||this._fieldDataCache.set(t,{alias:t,clause:(0,l.j4)(t,this.fieldsIndex)}),this._fieldDataCache.get(t)?.clause?.testSet(e,this.featureAdapter)??!1}_processAttributesForOutFields(e){const t=this.outFields;if(!t?.length)return this.featureAdapter.getAttributes(e);const i={};for(const n of t){const{alias:t,clause:s}=this._fieldDataCache.get(n);i[t]=s?s.calculateValue(e,this.featureAdapter):this.featureAdapter.getAttribute(e,t)}return i}_processAttributesForDistinctValues(e){if(null==e||!this.returnDistinctValues)return e;const t=this.outFields,i=[];if(t)for(const n of t){const{alias:t}=this._fieldDataCache.get(n);i.push(e[t])}else for(const t in e)i.push(e[t]);const n=`${(t||["*"]).join(",")}=${i.join(",")}`;let s=this._returnDistinctMap.get(n)||0;return this._returnDistinctMap.set(n,++s),s>1?null:e}}var m=i(31464),y=i(58727);function g(e,t,i){return{objectId:e,target:t,distance:i,type:"vertex"}}function x(e,t,i,n,s,r=!1){return{objectId:e,target:t,distance:i,type:"edge",start:n,end:s,draped:r}}var F=i(5834),_=i(59977),v=i(57231),w=i(11440),S=i(60909),I=i(98623),R=i(28097);const T="bin";class M{constructor(e,t,i){this.items=e,this.query=t,this.geometryType=i.geometryType,this.hasM=i.hasM,this.hasZ=i.hasZ,this.fieldsIndex=i.fieldsIndex,this.objectIdField=i.objectIdField,this.spatialReference=i.spatialReference,this.featureAdapter=i.featureAdapter}get size(){return this.items.length}createQueryResponseForCount(){const e=new h(this.query,this.featureAdapter,this.fieldsIndex);if(!this.query.outStatistics)return e.countDistinctValues(this.items);const{groupByFieldsForStatistics:t,having:i,outStatistics:n}=this.query,s=t?.length;if(!s)return 1;const r=new Map,a=new Map,o=new Set;for(const s of n){const{statisticType:n}=s,l="exceedslimit"!==n?s.onStatisticField:void 0;if(!a.has(l)){const i=[];for(const n of t){const t=this._getAttributeValues(e,n,this.items,r);i.push(t)}a.set(l,this._calculateUniqueValues(i,this.items,e.returnDistinctValues))}const u=a.get(l);for(const t in u){const{data:n,items:s}=u[t],r=n.join(",");i&&!e.validateItems(s,i)||o.add(r)}}return o.size}async createQueryResponse(){let e;if(e=this.query.outStatistics?this.query.outStatistics.some(e=>"exceedslimit"===e.statisticType)?this._createExceedsLimitQueryResponse():await this._createStatisticsQueryResponse(this.query,this.items):this._createFeatureQueryResponse(this.query),this.query.returnQueryGeometry){const t=this.query.geometry;(0,o.fn)(this.query.outSR)&&!(0,o.aI)(t.spatialReference,this.query.outSR)?e.queryGeometry=(0,u.ag)({spatialReference:this.query.outSR,...(0,m.Cv)(t,t.spatialReference,this.query.outSR)}):e.queryGeometry=(0,u.ag)({spatialReference:this.query.outSR,...t})}return e}createSnappingResponse(e,t,i){const n=this.featureAdapter,s=A(this.hasZ,this.hasM),{point:r,mode:a}=e,o="number"==typeof e.distance?e.distance:e.distance.x,l="number"==typeof e.distance?e.distance:e.distance.y,u={candidates:[]},c="esriGeometryPolygon"===this.geometryType,d="esriGeometryPolyline"===this.geometryType||"esriGeometryPoint"===this.geometryType,p=this._getPointCreator(a,t,this.spatialReference,i),f=new z(null,0),h=new z(null,0),m={x:0,y:0,z:0};for(const t of this.items){const i=n.getGeometry(t);if(null==i)continue;const{coords:a}=i,y=i.isPoint?C:i.lengths;if(f.coords=a,h.coords=a,e.returnEdge){let e=0;for(let i=0;i<y.length;i++){const a=y[i],d=e;for(let i=0;i<a;i++,e+=s){if(!c&&i===a-1)continue;const y=f;y.coordsIndex=e;const g=h;g.coordsIndex=i===a-1?d:e+s;const F=m;if(!b(m,r,y,g))continue;const _=(r.x-F.x)/o,v=(r.y-F.y)/l,w=_*_+v*v;w<=1&&u.candidates.push(x(n.getObjectId(t),p(F),Math.sqrt(w),p(y),p(g)))}}}if("all"===e.vertexMode){let e=0;for(let i=0;i<y.length;i++){const a=y[i],d=e,m=h;m.coordsIndex=d;for(let i=0;i<a;i++,e+=s){const s=f;if(s.coordsIndex=e,c&&i===a-1&&s.x===m.x&&s.y===m.y)continue;const d=(r.x-s.x)/o,h=(r.y-s.y)/l,y=d*d+h*h;y<=1&&u.candidates.push(g(n.getObjectId(t),p(s),Math.sqrt(y)))}}}else if(d&&"ends"===e.vertexMode){let e=0;const i=[];for(let t=0;t<y.length;t++){i.push(e);const n=y[t];e+=n*s,!c&&n>1&&i.push(e-s)}for(const e of i){const i=f;i.coordsIndex=e;const s=(r.x-i.x)/o,a=(r.y-i.y)/l,c=s*s+a*a;c<=1&&u.candidates.push(g(n.getObjectId(t),p(i),Math.sqrt(c)))}}}return u.candidates.sort((e,t)=>e.distance-t.distance),u}_getPointCreator(e,t,i,n){const s=null==n||(0,o.aI)(i,n)?e=>e:e=>(0,m.Cv)(e,i,n),{hasZ:r}=this;return"3d"===e?r&&t?({x:e,y:t,z:i})=>s({x:e,y:t,z:i}):({x:e,y:t})=>s({x:e,y:t,z:0}):({x:e,y:t})=>s({x:e,y:t})}async createSummaryStatisticsResponse(e){const{field:t,valueExpression:i,normalizationField:n,normalizationType:s,normalizationTotal:r,minValue:a,maxValue:o,scale:l,timeZone:u,outStatisticTypes:d}=e,f=this.fieldsIndex.get(t),h=(0,c.vE)(f)||(0,c.zD)(f)||(0,c.Ah)(f),m=await this._getDataValues({field:t,valueExpression:i,normalizationField:n,normalizationType:s,normalizationTotal:r,scale:l,timeZone:u},this.items),y=(0,p.Vb)({normalizationType:s,normalizationField:n,minValue:a,maxValue:o}),g={value:.5,fieldType:f?.type},x=(0,c.yM)(f)?(0,p.z9)({values:m,supportsNullCount:y,percentileParams:g,outStatisticTypes:d}):(0,p.G_)({values:m,minValue:a,maxValue:o,useSampleStdDev:!s,supportsNullCount:y,percentileParams:g,outStatisticTypes:d});return(0,p.oZ)(x,d,h)}async createUniqueValuesResponse(e){const{field:t,valueExpression:i,domains:n,returnAllCodedValues:s,scale:r,timeZone:a}=e,o=await this._getDataValues({field:t,field2:e.field2,field3:e.field3,fieldDelimiter:e.fieldDelimiter,valueExpression:i,scale:r,timeZone:a},this.items,!1),l=(0,p.b3)(o);return(0,p.lv)(l,n,s,e.fieldDelimiter)}async createClassBreaksResponse(e){const{field:t,valueExpression:i,normalizationField:n,normalizationType:s,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:u,numClasses:c,scale:d,timeZone:f}=e,h=await this._getDataValues({field:t,valueExpression:i,normalizationField:n,normalizationType:s,normalizationTotal:r,scale:d,timeZone:f},this.items),m=(0,p.Rw)(h,{field:t,normalizationField:n,normalizationType:s,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:u,numClasses:c});return(0,p.jM)(m,a)}async createHistogramResponse(e){const{field:t,valueExpression:i,normalizationField:n,normalizationType:s,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:u,numBins:c,scale:d,timeZone:f}=e,h=await this._getDataValues({field:t,valueExpression:i,normalizationField:n,normalizationType:s,normalizationTotal:r,scale:d,timeZone:f},this.items);return(0,p.$y)(h,{field:t,normalizationField:n,normalizationType:s,normalizationTotal:r,classificationMethod:a,standardDeviationInterval:o,minValue:l,maxValue:u,numBins:c})}_sortFeatures(e,t,i){if(e.length>1&&t?.length)for(const n of t.slice().reverse()){const t=n.split(" "),s=t[0],r=this.fieldsIndex.get(s),a=!!t[1]&&"desc"===t[1].toLowerCase(),o=(0,p.FM)(r?.type,a);e.sort((e,t)=>{const n=i(e,s,r),a=i(t,s,r);return o(n,a)})}}_createFeatureQueryResponse(e){const{items:t,geometryType:i,hasM:n,hasZ:s,objectIdField:r,spatialReference:o}=this,{outFields:l,outSR:c,quantizationParameters:d,resultRecordCount:p,resultOffset:f,returnZ:h,returnM:m}=e,y=null!=p&&t.length>(f||0)+p,g=l&&(l.includes("*")?[...this.fieldsIndex.fields]:l.map(e=>this.fieldsIndex.get(e)));return{exceededTransferLimit:y,features:this._createFeatures(e,t),fields:g,geometryType:i,hasM:n&&m,hasZ:s&&h,objectIdFieldName:r,spatialReference:(0,u.ag)(c||o),transform:d&&(0,a.VV)(d)||null}}_createFeatures(e,t){const i=new h(e,this.featureAdapter,this.fieldsIndex),{hasM:n,hasZ:s}=this,{orderByFields:r,quantizationParameters:o,returnGeometry:l,returnCentroid:c,maxAllowableOffset:d,resultOffset:p,resultRecordCount:f,returnZ:m=!1,returnM:y=!1}=e,g=s&&m,x=n&&y;let F=[],_=0;const v=[...t];if(this._sortFeatures(v,r,(e,t,n)=>i.getFieldValue(e,t,n)),this.geometryType&&(l||c)){const e=(0,a.VV)(o)??void 0,t="esriGeometryPolygon"===this.geometryType||"esriGeometryPolyline"===this.geometryType;if(l&&!c)for(const n of v){const s=this.featureAdapter.getGeometry(n),r=this._addFeatureJSONMetadata(n,{attributes:i.getAttributes(n),geometry:(0,u.pL)(this.geometryType,s,d,e,g,x)});t&&s&&!r.geometry&&(r.centroid=(0,u.LQ)(this,this.featureAdapter.getCentroid(n,this),e)),F[_++]=r}else if(!l&&c)for(const t of v)F[_++]=this._addFeatureJSONMetadata(t,{attributes:i.getAttributes(t),centroid:(0,u.LQ)(this,this.featureAdapter.getCentroid(t,this),e)});else for(const t of v)F[_++]=this._addFeatureJSONMetadata(t,{attributes:i.getAttributes(t),centroid:(0,u.LQ)(this,this.featureAdapter.getCentroid(t,this),e),geometry:(0,u.pL)(this.geometryType,this.featureAdapter.getGeometry(t),d,e,g,x)})}else for(const e of v){const t=i.getAttributes(e);t&&(F[_++]=this._addFeatureJSONMetadata(e,{attributes:t}))}const w=p||0;if(null!=f){const e=w+f;F=F.slice(w,Math.min(F.length,e))}return F}_addFeatureJSONMetadata(e,t){const i=this.featureAdapter.getMetadata?.(e);return void 0!==i&&(t.metadata=i),t}_createExceedsLimitQueryResponse(){let e=!1,t=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;for(const e of this.query.outStatistics??[])if("exceedslimit"===e.statisticType){t=null!=e.maxPointCount?e.maxPointCount:Number.POSITIVE_INFINITY,i=null!=e.maxRecordCount?e.maxRecordCount:Number.POSITIVE_INFINITY,n=null!=e.maxVertexCount?e.maxVertexCount:Number.POSITIVE_INFINITY;break}if("esriGeometryPoint"===this.geometryType)e=this.items.length>t;else if(this.items.length>i)e=!0;else{const t=A(this.hasZ,this.hasM),i=this.featureAdapter;e=this.items.reduce((e,t)=>{const n=i.getGeometry(t);return e+(null!=n&&n.coords.length||0)},0)/t>n}return{fields:[{name:"exceedslimit",type:"esriFieldTypeInteger",alias:"exceedslimit",sqlType:"sqlTypeInteger",domain:null,defaultValue:null}],features:[{attributes:{exceedslimit:Number(e)}}]}}async _createStatisticsQueryResponse(e,t,i={attributes:{}}){const n=[],s=new Map,r=new Map,a=new Map,o=new Map,l=new h(e,this.featureAdapter,this.fieldsIndex),u=e.outStatistics,{groupByFieldsForStatistics:d,having:p,orderByFields:f,resultRecordCount:m}=e,y=d?.length,g=!!y,x=g?d[0]:null,F=g&&!this.fieldsIndex.get(x);for(const e of u??[]){const{outStatisticFieldName:u,statisticType:f}=e,h=e,m="exceedslimit"!==f?e.onStatisticField:void 0,_="percentile_disc"===f||"percentile_cont"===f,v="EnvelopeAggregate"===f||"CentroidAggregate"===f||"ConvexHullAggregate"===f,w=g&&1===y&&(m===x||F)&&"count"===f;if(g){if(!a.has(m)){const e=[];for(const i of d){const n=this._getAttributeValues(l,i,t,s);e.push(n)}a.set(m,this._calculateUniqueValues(e,t,!v&&l.returnDistinctValues))}const e=a.get(m);if(!e)continue;const i=Object.keys(e);for(const n of i){const{count:i,data:r,items:a,itemPositions:c}=e[n],f=r.join(",");if(!p||l.validateItems(a,p)){const e=o.get(f)||{attributes:{}};if(v){e.aggregateGeometries||(e.aggregateGeometries={});const{aggregateGeometries:t,outStatisticFieldName:i}=await this._getAggregateGeometry(h,a);e.aggregateGeometries[i]=t}else{let n=null;if(w)n=i;else{const e=this._getAttributeValues(l,m,t,s),i=c.map(t=>e[t]);n=_&&"statisticParameters"in h?this._getPercentileValue(h,i):this._getStatisticValue(h,i,null,l.returnDistinctValues)}e.attributes[u]=n}let n=0;d.forEach((t,i)=>e.attributes[this.fieldsIndex.get(t)?t:"EXPR_"+ ++n]=r[i]),o.set(f,e)}}}else if(v){i.aggregateGeometries||(i.aggregateGeometries={});const{aggregateGeometries:e,outStatisticFieldName:n}=await this._getAggregateGeometry(h,t);i.aggregateGeometries[n]=e}else{const e=this._getAttributeValues(l,m,t,s);i.attributes[u]=_&&"statisticParameters"in h?this._getPercentileValue(h,e):this._getStatisticValue(h,e,r,l.returnDistinctValues)}const S="min"!==f&&"max"!==f||!(0,c.yM)(this.fieldsIndex.get(m))&&!this._isAnyDateField(m)?null:this.fieldsIndex.get(m)?.type;n.push({name:u,alias:u,type:S||"esriFieldTypeDouble"})}const _=g?Array.from(o.values()):[i];return this._sortFeatures(_,f,(e,t)=>e.attributes[t]),m&&(_.length=Math.min(m,_.length)),{fields:n,features:_}}_isAnyDateField(e){const t=this.fieldsIndex.get(e);return(0,c.vE)(t)||(0,c.zD)(t)||(0,c.Ah)(t)||(0,c.OH)(t)}async _getAggregateGeometry(e,t){const{convexHull:n,union:a}=await Promise.all([i.e(3209),i.e(7559)]).then(i.bind(i,47559)),{statisticType:o,outStatisticFieldName:l}=e,{featureAdapter:c,spatialReference:d,geometryType:p}=this,f=t.map(e=>(0,u.pL)(p,c.getGeometry(e))),h=n(d,f,!0)[0],m={aggregateGeometries:null,outStatisticFieldName:null};if("EnvelopeAggregate"===o){const e=h?(0,r.v)(h):(0,r.HA)(a(d,f));m.aggregateGeometries={...e,spatialReference:d},m.outStatisticFieldName=l||"extent"}else if("CentroidAggregate"===o){const e=h?(0,s.l8)(h):(0,s.Z4)((0,r.HA)(a(d,f)));m.aggregateGeometries={x:e[0],y:e[1],spatialReference:d},m.outStatisticFieldName=l||"centroid"}else"ConvexHullAggregate"===o&&(m.aggregateGeometries=h,m.outStatisticFieldName=l||"convexHull");return m}_getStatisticValue(e,t,i,n){const{onStatisticField:s,statisticType:r}=e;let a=null;return a=i?.has(s)?i.get(s):(0,c.yM)(this.fieldsIndex.get(s))||this._isAnyDateField(s)?(0,p.z9)({values:t,returnDistinct:n}):(0,p.G_)({values:n?[...new Set(t)]:t,minValue:null,maxValue:null,useSampleStdDev:!0}),i&&i.set(s,a),a["var"===r?"variance":r]}_getPercentileValue(e,t){const{onStatisticField:i,statisticParameters:n,statisticType:s}=e,{value:r,orderBy:a}=n,o=this.fieldsIndex.get(i);return(0,p.qg)(t,{value:r,orderBy:a,fieldType:o?.type,isDiscrete:"percentile_disc"===s})}_getAttributeValues(e,t,i,n){if(n.has(t))return n.get(t);const s=this.fieldsIndex.get(t),r=i.map(i=>e.getFieldValue(i,t,s));return n.set(t,r),r}_calculateUniqueValues(e,t,i){const n={},s=t.length;for(let r=0;r<s;r++){const s=t[r],a=[];for(const t of e)a.push(t[r]);const o=a.join(",");null==n[o]?n[o]={count:1,data:a,items:[s],itemPositions:[r]}:(i||n[o].count++,n[o].items.push(s),n[o].itemPositions.push(r))}return n}async _getDataValues(e,t,i=!0){const s=new h(this.query,this.featureAdapter,this.fieldsIndex),{valueExpression:r,scale:a,timeZone:o}=e;return r?s.getExpressionValues(t,r,{viewingMode:"map",scale:a,spatialReference:this.query.outSR||this.spatialReference},{geometryType:this.geometryType,hasZ:this.hasZ,hasM:this.hasM},o):s.getDataValues(t,(0,n.o8)(e),i)}_calculateHistogramBins(e,t,i){if(null==t.min&&null==t.max)return[];const n=t.intervals,s=t.min??0,r=t.max??0,a=n.map(([e,t])=>({minValue:e,maxValue:t,count:0,items:[]}));for(let t=0;t<e.length;t++){const o=e[t],l=i[t];if(null!=o&&o>=s&&o<=r){const e=(0,p.Ak)(n,o);e>-1&&(a[e].count++,a[e].items.push(l))}}return a}async createQueryBinsResponse(e){const t=e.bin?.splitBy;if(!t)return this._createBinsResponse(e);const{value:i,outAlias:n,valueType:s}=t,r=[],a=[{name:n??i,alias:n??i,type:s??"esriFieldTypeString"},{name:T,alias:T,type:"esriFieldTypeInteger"}],o=new h(e,this.featureAdapter,this.fieldsIndex),l=new Map,u=[...this.items];this._sortFeatures(u,[i],(e,t,i)=>o.getFieldValue(e,t,i));const c=this._getAttributeValues(o,i,u,l),d=this._calculateUniqueValues([c],u,o.returnDistinctValues);for(const t in d){const{items:s}=d[t],o=await this._createBinsResponse(e,s);if(r.push(...o.features.map(e=>({...e,attributes:{...e.attributes,[n??i]:t}}))),o.fields)for(const e of o.fields)a.some(t=>t.name===e.name)||a.push(e)}return{fields:a,features:r}}async _createBinsResponse(e,t){const i=e.bin;switch(t=t??this.items,i.type){case"autoIntervalBin":return this._createAutoIntervalBinsResponse(F.A.fromJSON(i),e,t);case"dateBin":return this._createDateBinsResponse(_.A.fromJSON(i),e,t);case"fixedBoundariesBin":return this._createFixedBoundariesBinsResponse(w.A.fromJSON(i),e,t);case"fixedIntervalBin":return this._createFixedIntervalBinsResponse(S.A.fromJSON(i),e,t)}}async _createAutoIntervalBinsResponse(e,t,i){const{field:n,normalizationField:s,numBins:r,normalizationType:a,normalizationTotal:o,start:l,end:u}=e,c=await this._getDataValues({field:e.field,normalizationField:e.normalizationField,normalizationType:e.normalizationType,normalizationTotal:e.normalizationTotal,timeZone:t.outTimeReference?.ianaTimeZone},i),d=(0,p.sU)(c,{field:n,normalizationField:s,normalizationType:a,normalizationTotal:o,numBins:r,minValue:(0,y.dO)(l,!1),maxValue:(0,y.dO)(u,!1)}),f=this._calculateHistogramBins(c,d,i);return this._createFeaturesFromHistogramBins(f,t)}async _createDateBinsResponse(e,t,i){const{field:n,interval:s,start:r,end:a,snapToData:o,returnFullIntervalBin:l}=e,u=s.unit,d=await this._getDataValues({field:e.field,timeZone:t.outTimeReference?.ianaTimeZone},i),p=(0,c.OH)(this.fieldsIndex.get(n)),f=v.g.toJSON(u),h=d.filter(Boolean).sort((e,t)=>e-t),m=null!=r?(0,y.dO)(r,p):h[0],g=null!=a?(0,y.dO)(a,p):h[h.length-1],x=[];if(null!=m&&null!=g){const e={zone:t.outTimeReference?.ianaTimeZone??I.n$},i=R.c9.fromMillis(m,e),n=R.c9.fromMillis(g,e);if("last"===o){let e=n;for(;e>i;){const t=e.minus({[f]:s.value});if(t<i){x.unshift([l?t.toMillis():i.toMillis(),e.toMillis()]);break}x.unshift([t.toMillis(),e.toMillis()]),e=t}}else{let e="first"===o?i:i.startOf(f);for(;e<=n;){const t=e.plus({[f]:s.value});if(t>n){x.push([e.toMillis(),l?t.toMillis():n.toMillis()]);break}x.push([e.toMillis(),t.toMillis()]),e=t}}}const F=this._calculateHistogramBins(d,{intervals:x,min:m,max:g},i);return this._createFeaturesFromHistogramBins(F,t)}async _createFixedBoundariesBinsResponse(e,t,i){const{field:n}=e,s=await this._getDataValues({field:n,timeZone:t.outTimeReference?.ianaTimeZone},i),r=(0,c.OH)(this.fieldsIndex.get(n)),a=e.boundaries.map(e=>(0,y.dO)(e,r)).sort((e,t)=>e-t),o=[];for(let e=0;e<a.length-1;e++)o.push([a[e],a[e+1]]);const l={intervals:o,min:a.at(0),max:a.at(-1)},u=this._calculateHistogramBins(s,l,i);return this._createFeaturesFromHistogramBins(u,t)}async _createFixedIntervalBinsResponse(e,t,i){const{field:n,interval:s,start:r,end:a}=e,o=await this._getDataValues({field:e.field,normalizationField:e.normalizationField,normalizationType:e.normalizationType,normalizationTotal:e.normalizationTotal,timeZone:t.outTimeReference?.ianaTimeZone},i),l=(0,c.OH)(this.fieldsIndex.get(n)),u=(0,p.sU)(o,{field:n,classificationMethod:"defined-interval",definedInterval:s,minValue:(0,y.dO)(r,l),maxValue:(0,y.dO)(a,l)},!0),d=this._calculateHistogramBins(o,u,i);return this._createFeaturesFromHistogramBins(d,t)}async _createFeaturesFromHistogramBins(e,t){const{upperBoundaryAlias:i,lowerBoundaryAlias:n}=t,s=n||"lowerBoundary",r=i||"upperBoundary",a=[],o=[{name:s,alias:s,type:"esriFieldTypeDouble"},{name:r,alias:r,type:"esriFieldTypeDouble"}],l=t.bin?.stackBy?.value,u=t.bin?.stackBy?.outAlias;l&&o.push({name:T,alias:T,type:"esriFieldTypeInteger"},{name:u??l,alias:u??l,type:"esriFieldTypeString"});let c=0;const d="dateBin"===t.bin.type,p=t.outTimeReference?.ianaTimeZone;for(const i of e){const{minValue:e,maxValue:n,items:f}=i,h={attributes:{}};let m;if(h.attributes[s]=d&&p&&null!=e?R.c9.fromMillis(e,{zone:p}).toISO():e,h.attributes[r]=d&&p&&null!=n?R.c9.fromMillis(n,{zone:p}).toISO():n,l?(m=await this._createStatisticsQueryResponse({...t,groupByFieldsForStatistics:[l],orderByFields:[l]},f),h.attributes[T]=++c,"flat"===t.bin.jsonStyle?a.push(...m.features.map(({attributes:{EXPR_1:e,...t},...i})=>({...i,attributes:u??e?{...t,[u??e]:e,...h.attributes}:{...t,...h.attributes}}))):(h.stackedAttributes=m.features.map(({attributes:{EXPR_1:e,...t}})=>u??e?{...t,[u??e]:e}:t),a.push(h))):(t.bin?.splitBy&&(h.attributes[T]=++c),m=await this._createStatisticsQueryResponse(t,f,h),a.push(h)),m.fields)for(const e of m.fields)o.some(t=>t.name===e.name)||o.push(e)}return"desc"===t.binOrder&&a.reverse(),{fields:o,features:a}}}function b(e,t,i,n){const s=n.x-i.x,r=n.y-i.y,a=t.x-i.x,o=t.y-i.y,l=s*s+r*r;if(0===l)return!1;const u=a*s+o*r,c=Math.min(1,Math.max(0,u/l));return e.x=i.x+s*c,e.y=i.y+r*c,!0}function A(e,t){return e?t?4:3:t?3:2}class z{constructor(e,t){this.coords=e,this.coordsIndex=t}get x(){return this.coords[this.coordsIndex]}get y(){return this.coords[this.coordsIndex+1]}get z(){return this.coords[this.coordsIndex+2]}}const C=[1]},9093:(e,t,i)=>{function n(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function s(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>s,vt:()=>n,zK:()=>r});const r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:s,create:n,fromValues:function(e,t,i,n,s,r,a,o,l,u,c,d,p,f,h,m){return[e,t,i,n,s,r,a,o,l,u,c,d,p,f,h,m]}},Symbol.toStringTag,{value:"Module"}))},9762:(e,t,i)=>{i.r(t),i.d(t,{projectBuffer:()=>s});var n=i(37539);function s(e,t,i,s,r,a,o=Math.floor(e.length/3)){const l=(0,n.jd)(t,r);if(null==l)return!1;if(l===n.pO){if(e===s&&i===a)return!0;const t=i+3*o;for(let n=i,r=a;n<t;n++,r++)s[r]=e[n];return!0}const u=i+3*o;for(let t=i,n=a;t<u;t+=3,n+=3)l(e,t,s,n);return!0}},11006:(e,t,i)=>{function n(e,t,i,n,r){s(e,t,i||0,n||e.length-1,r||a)}function s(e,t,i,n,a){for(;n>i;){if(n-i>600){var o=n-i+1,l=t-i+1,u=Math.log(o),c=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*c*(o-c)/o)*(l-o/2<0?-1:1);s(e,t,Math.max(i,Math.floor(t-l*c/o+d)),Math.min(n,Math.floor(t+(o-l)*c/o+d)),a)}var p=e[t],f=i,h=n;for(r(e,i,t),a(e[n],p)>0&&r(e,i,n);f<h;){for(r(e,f,h),f++,h--;a(e[f],p)<0;)f++;for(;a(e[h],p)>0;)h--}0===a(e[i],p)?r(e,i,h):r(e,++h,n),h<=t&&(i=h+1),t<=h&&(n=h-1)}}function r(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function a(e,t){return e<t?-1:e>t?1:0}i.d(t,{q:()=>n})},11440:(e,t,i)=>{i.d(t,{A:()=>u});var n=i(31635),s=i(93637),r=i(91429),a=i(56507),o=i(41266),l=i(93223);let u=class extends o.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,n.Cg)([(0,r.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,i){(0,s.sM)(i,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],u.prototype,"boundaries",void 0),(0,n.Cg)([(0,l.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,n.Cg)([(0,r.$K)("esri.rest.support.FixedBoundariesBinParameters")],u),u.from=(0,a.dp)(u)},17136:(e,t,i)=>{i.d(t,{Y_:()=>M,O7:()=>R,el:()=>I});var n=i(92602),s=i(69052),r=i(49186),a=i(53966),o=i(39829),l=i(82799),u=i(16930),c=i(80754),d=i(21325),p=i(28735),f=i(11254),h=i(65864),m=i(2272),y=i(84952),g=i(92300);const x=()=>a.A.getLogger("esri.geometry.support.normalizeUtils");function F(e){return"polygon"===e[0].type}function _(e){return"polyline"===e[0].type}function v(e,t,i){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof o.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw x().error(e),new r.A("internal:geometry",e)}const i=(0,c.r8)(e),n=[];for(const e of i){const i=[];n.push(i),i.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const s=e[n][0],r=e[n][1],a=e[n+1][0],o=e[n+1][1],l=Math.sqrt((a-s)*(a-s)+(o-r)*(o-r)),u=(o-r)/l,c=(a-s)/l,d=l/t;if(d>1){for(let e=1;e<=d-1;e++){const n=e*t,a=c*n+s,o=u*n+r;i.push([a,o])}const e=(l+Math.floor(d-1)*t)/2,n=c*e+s,a=u*e+r;i.push([n,a])}i.push([a,o])}}return function(e){return"polygon"===e.type}(e)?new o.A({rings:n,spatialReference:e.spatialReference}):new l.A({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,p.ci)(t,!0)}return i&&(e=(0,c.kS)(e,i)),e}function w(e,t,i){if(Array.isArray(e)){const n=e[0];if(n>t){const i=(0,c.kd)(n,t);e[0]=n+i*(-2*t)}else if(n<i){const t=(0,c.kd)(n,i);e[0]=n+t*(-2*i)}}else{const n=e.x;if(n>t){const i=(0,c.kd)(n,t);e=e.clone().offset(i*(-2*t),0)}else if(n<i){const t=(0,c.kd)(n,i);e=e.clone().offset(t*(-2*i),0)}}return e}function S(e,t){let i=-1;for(let n=0;n<t.cutIndexes.length;n++){const s=t.cutIndexes[n],r=t.geometries[n],a=(0,c.r8)(r);for(let e=0;e<a.length;e++){const t=a[e];t.some(i=>{if(i[0]<180)return!0;{let i=0;for(let e=0;e<t.length;e++){const n=t[e][0];i=n>i?n:i}i=Number(i.toFixed(9));const n=-360*(0,c.kd)(i,180);for(let i=0;i<t.length;i++){const t=r.getPoint(e,i);r.setPoint(e,i,t.clone().offset(n,0))}return!0}})}if(s===i){if(F(e))for(const t of(0,c.r8)(r))e[s]=e[s].addRing(t);else if(_(e))for(const t of(0,c.r8)(r))e[s]=e[s].addPath(t)}else i=s,e[s]=r}return e}async function I(e,t,i){if(!Array.isArray(e))return I([e],t);t&&"string"!=typeof t&&x().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof t?t:t?.url??n.A.geometryServiceUrl;let r,a,u,F,_,R,T,M,b=0;const A=[],z=[];for(const t of e)if(null!=t)if(r||(r=t.spatialReference,a=(0,d.Vp)(r),u=r.isWebMercator,R=u?102100:4326,F=c.j7[R].maxX,_=c.j7[R].minX,T=c.j7[R].plus180Line,M=c.j7[R].minus180Line),a)if("mesh"===t.type)z.push(t);else if("point"===t.type)z.push(w(t.clone(),F,_));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>w(e,F,_)),z.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,a);z.push(e.rings?new o.A(e):e)}else if(t.extent){const e=t.extent,i=(0,c.kd)(e.xmin,_)*(2*F);let n=0===i?t.clone():(0,c.kS)(t.clone(),i);e.offset(i,0);let{xmin:s,xmax:r}=e;s=Number(s.toFixed(9)),r=Number(r.toFixed(9)),e.intersects(T)&&r!==F?(b=r>b?r:b,n=v(n,u),A.push(n),z.push("cut")):e.intersects(M)&&s!==_?(b=r*(2*F)>b?r*(2*F):b,n=v(n,u,360),A.push(n),z.push("cut")):z.push(n)}else z.push(t.clone());else z.push(t);else z.push(t);let C=(0,c.kd)(b,F),B=-90;const N=C,O=new l.A;for(;C>0;){const e=360*C-180;O.addPath([[e,B],[e,-1*B]]),B*=-1,C--}if(A.length>0&&N>0){const t=S(A,await async function(e,t,i,n){const s=(0,m.Dl)(e),r=t[0].spatialReference,a={...n,responseType:"json",query:{...s.query,f:"json",sr:(0,d.YX)(r),target:JSON.stringify({geometryType:(0,h.$B)(t[0]),geometries:t}),cutter:JSON.stringify(i)}},o=await(0,f.A)(s.path+"/cut",a),{cutIndexes:l,geometries:u=[]}=o.data;return{cutIndexes:l,geometries:u.map(e=>{const t=(0,h.rS)(e);return t.spatialReference=r,t})}}(s,A,O,i)),n=[],r=[];for(let i=0;i<z.length;i++){const s=z[i];if("cut"!==s)r.push(s);else{const s=t.shift(),a=e[i];null!=a&&"polygon"===a.type&&a.rings&&a.rings.length>1&&s.rings.length>=a.rings.length?(n.push(s),r.push("simplify")):r.push(u?(0,p.Gh)(s):s)}}if(!n.length)return r;const a=await async function(e,t,i){const n="string"==typeof e?(0,y.An)(e):e,s=t[0].spatialReference,r=(0,h.$B)(t[0]),a={...i,query:{...n.query,f:"json",sr:(0,d.YX)(s),geometries:JSON.stringify((0,g.X)(t))}},{data:o}=await(0,f.A)(n.path+"/simplify",a);return(0,g.V)(o.geometries,r,s)}(s,n,i),o=[];for(let e=0;e<r.length;e++){const t=r[e];"simplify"!==t?o.push(t):o.push(u?(0,p.Gh)(a.shift()):a.shift())}return o}const q=[];for(let e=0;e<z.length;e++){const t=z[e];if("cut"!==t)q.push(t);else{const e=A.shift();q.push(!0===u?(0,p.Gh)(e):e)}}return q}function R(e,t,i){const n=(0,d.Vp)(i);if(null==n)return e;const[s,r]=n.valid,a=2*r;let o=0,l=0;t>r?o=Math.ceil(Math.abs(t-r)/a):t<s&&(o=-Math.ceil(Math.abs(t-s)/a)),e>r?l=Math.ceil(Math.abs(e-r)/a):e<s&&(l=-Math.ceil(Math.abs(e-s)/a));let u=e+(o-l)*a;const c=u-t;return c>r?u-=a:c<s&&(u+=a),u}function T(e){const t=(0,d.Vp)(e);if(null==t)return null;const[i,n]=t.valid;return new s.hr(i,n)}const M=T(u.A.WGS84);T(u.A.WebMercator)},29441:(e,t,i)=>{i.d(t,{MG:()=>x,SN:()=>f,SY:()=>g,VW:()=>c,Wq:()=>y,eD:()=>h,j4:()=>m,vl:()=>u});var n=i(49186),s=i(44123),r=i(98453);const a=new s.WhereClauseCache(50,500),o="unsupported-query",l=" as ",u=new Set(["esriFieldTypeOID","esriFieldTypeSmallInteger","esriFieldTypeBigInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeLong"]),c=new Set(["esriFieldTypeDate","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]),d=new Set(["esriFieldTypeString","esriFieldTypeGUID","esriFieldTypeGlobalID",...u,...c]);function p(e,t,i={}){const s=m(t,e);if(!s){const i=a.getError(t,e);throw new n.A(o,"invalid SQL expression",{expression:t,error:i})}const r=i.expressionName||"expression";if(i.validateStandardized&&!s.isStandardized)throw new n.A(o,`${r} is not standard`,{expression:t});if(i.validateAggregate&&!s.isAggregate)throw new n.A(o,`${r} does not contain a valid aggregate function`,{expression:t});return s.fieldNames}function f(e,t,i,n){if(!i)return!0;const s="where clause";return x(e,t,p(e,i,{validateStandardized:!0,expressionName:s}),{expressionName:s,query:n}),!0}function h(e,t,i,s,r){if(!i)return!0;const a="having clause",l=p(e,i,{validateAggregate:!0,expressionName:a});x(e,t,l,{expressionName:a,query:r});const u=m(i,e),c=u?.getExpressions().every(t=>{const{aggregateType:i,field:n}=t,r=e.get(n)?.name;return s.some(t=>{const{onStatisticField:n,statisticType:s}=t,a=e.get(n)?.name;return a===r&&s.toLowerCase().trim()===i})});if(!c)throw new n.A(o,"expressions in having clause should also exist in outStatistics",{having:i});return!0}function m(e,t){return e?a.get(e,t):null}function y(e){return/\((.*?)\)/.test(e)?e:e.split(l)[0]}function g(e){return e.split(l)[1]}function x(e,t,i,s={}){const r=new Map;if(function(e,t,i,n,s){const r=s.includes("*")?[...i,...s.filter(e=>"*"!==e)]:s;for(const s of r)if(t.get(s))F(e,t,i,n,s);else try{const r=p(t,y(s),{validateStandardized:!0});for(const s of r)F(e,t,i,n,s)}catch(t){e.set(s,{type:"expression-error",expression:s,error:t})}}(r,e,t,s.allowedFieldTypes??d,i),r.size){const e=s.expressionName??"expression";throw new n.A(o,`${e} contains invalid or missing fields`,{errors:Array.from(r.values()),query:s.query})}}function F(e,t,i,n,s){const a=t.get(s);a?i.has(a.name)?"all"!==n&&!1===n?.has(a.type)&&e.set(s,{type:"invalid-type",fieldName:a.name,fieldType:r.m.fromJSON(a.type),allowedFieldTypes:Array.from(n,e=>r.m.fromJSON(e))}):e.set(s,{type:"missing-field",fieldName:a.name}):e.set(s,{type:"invalid-field",fieldName:s})}},31464:(e,t,i)=>{i.d(t,{Cv:()=>m,Nk:()=>p,lK:()=>g});var n=i(4576),s=i(74887),r=i(91218),a=i(21325),o=i(28735);const l=[0,0];function u(e,t){if(!t)return null;if("x"in t){const i={x:0,y:0};return[i.x,i.y]=e(t.x,t.y,l),null!=t.z&&(i.z=t.z),null!=t.m&&(i.m=t.m),i}if("xmin"in t){const i={xmin:0,ymin:0,xmax:0,ymax:0};return[i.xmin,i.ymin]=e(t.xmin,t.ymin,l),[i.xmax,i.ymax]=e(t.xmax,t.ymax,l),t.hasZ&&(i.zmin=t.zmin,i.zmax=t.zmax,i.hasZ=!0),t.hasM&&(i.mmin=t.mmin,i.mmax=t.mmax,i.hasM=!0),i}return"rings"in t?{rings:c(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:c(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:d(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function c(e,t){const i=[];for(const n of e)i.push(d(n,t));return i}function d(e,t){const i=[];for(const n of e){const e=t(n[0],n[1],[0,0]);i.push(e),n.length>2&&e.push(n[2]),n.length>3&&e.push(n[3])}return i}async function p(e,t){if(!e||!t)return;const i=Array.isArray(e)?e.map(e=>null!=e.geometry?e.geometry.spatialReference:null).filter(n.Ru):[e];await(0,r.initializeProjection)(i.map(e=>({source:e,dest:t})))}const f=u.bind(null,o.je),h=u.bind(null,o.tD);function m(e,t,i,n){if(!e)return null;if(i||(i=t,t=e.spatialReference),!(0,a.fn)(t)||!(0,a.fn)(i)||(0,a.aI)(t,i))return e;if((0,o.y7)(t,i)){const t=(0,a.K8)(i)?f(e):h(e);return t.spatialReference=i,t}return(0,r.projectMany)([e],t,i,n)[0]}const y=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,i,n){if(!e?.length||!t||!i||(0,a.aI)(t,i))return e;const r={geometries:e,inSpatialReference:t,outSpatialReference:i,options:n,resolve:(0,s.Tw)()};return this._jobs.push(r),this._timer??=setTimeout(this._process,10),r.resolve.promise}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:i,outSpatialReference:n,resolve:s,options:l}=e;(0,o.y7)(i,n)&&null==l?.extendedParams?(0,a.K8)(n)?s(t.map(f)):s(t.map(h)):s((0,r.projectMany)(t,i,n,l)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function g(e,t,i,n){return y.push(e,t,i,n)}},37539:(e,t,i)=>{i.d(t,{pO:()=>m,jd:()=>p,Tp:()=>f,w5:()=>d});var n=i(34727),s=i(86211),r=i(73941),a=i(79258);Math.PI;const o=a.$O.radius,l=a.$O.eccentricitySquared,u={a1:o*l,a2:o*l*o*l,a3:o*l*l/2,a4:o*l*o*l*2.5,a5:o*l+o*l*l/2,a6:1-l};a.$O.radius,a.$O.flattening,a.Sw.radius,a.Sw.flattening,a.sH.radius,a.sH.flattening,a.sH.radius;var c=i(21325);const d={2:{5:m,7:null,9:null,10:m,1:S,6:null,8:null,0:null,3:g,11:x,2:m,4:b},5:{5:m,7:null,9:null,10:m,1:S,6:null,8:null,0:null,3:g,11:x,2:m,4:b},7:{5:null,7:m,9:null,10:m,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:m,10:m,1:null,6:null,8:v,0:null,3:null,11:null,2:null,4:null},3:{5:y,7:null,9:null,10:y,1:function(e,t,i,n){const s=e[t]/O,r=N-2*Math.atan(Math.exp(-e[t+1]/O)),a=O+e[t+2],o=Math.cos(r)*a;i[n]=Math.cos(s)*o,i[n+1]=Math.sin(s)*o,i[n+2]=Math.sin(r)*a},6:null,8:null,0:null,3:m,11:function(e,t,i,n){y(e,t,i,n),x(i,n,i,n)},2:y,4:function(e,t,i,n){y(e,t,i,n),b(i,n,i,n)}},4:{5:A,7:null,9:null,10:A,1:function(e,t,i,n){A(e,t,i,n),S(i,n,i,n)},6:null,8:null,0:null,3:function(e,t,i,n){A(e,t,i,n),g(i,n,i,n)},11:function(e,t,i,n){A(e,t,i,n),x(i,n,i,n)},2:A,4:m},1:{5:M,7:null,9:null,10:M,1:m,6:null,8:null,0:null,3:function(e,t,i,n){M(e,t,i,n),g(i,n,i,n)},11:function(e,t,i,n){M(e,t,i,n),x(i,n,i,n)},2:M,4:function(e,t,i,n){M(e,t,i,n),b(i,n,i,n)}},6:{5:null,7:T,9:null,10:T,1:null,6:m,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:R,10:R,1:null,6:null,8:m,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:m,3:null,11:null,2:null,4:null},10:{5:m,7:m,9:m,10:m,1:S,6:w,8:v,0:null,3:g,11:x,2:m,4:b},11:{5:F,7:null,9:null,10:F,1:function(e,t,i,n){F(e,t,i,n),S(i,n,i,n)},6:null,8:null,0:null,3:function(e,t,i,n){F(e,t,i,n),g(i,n,i,n)},11:m,2:F,4:function(e,t,i,n){F(e,t,i,n),b(i,n,i,n)}}};function p(e,t){return f(e,t)?.projector}function f(e,t){if(null==e||null==t)return null;if(z.source.spatialReference===e&&z.dest.spatialReference===t)return z;const i=h(e,z.source),n=h(t,z.dest);return 0===i&&0===n?(0,c.aI)(e,t)?z.projector=m:z.projector=null:z.projector=d[i][n],z}function h(e,t){return e?t.spatialReference===e?t.spatialReferenceId:(t.spatialReference=e,"metersPerUnit"in t&&(t.metersPerUnit=(0,s.GA)(e,1)),(0,r.jA)(e)?t.spatialReferenceId=1:(0,c.oT)(e)?t.spatialReferenceId=2:(0,c.K8)(e)?t.spatialReferenceId=3:(0,c.r1)(e)?t.spatialReferenceId=11:e.wkt===r.Ro.wkt?t.spatialReferenceId=4:4490===e.wkid?t.spatialReferenceId=5:e.wkt===r.FY.wkt?t.spatialReferenceId=6:e.wkt===r.LJ.wkt?t.spatialReferenceId=8:(0,c.q8)(e)?t.spatialReferenceId=7:(0,c.KQ)(e)?t.spatialReferenceId=9:t.spatialReferenceId=0):0}function m(e,t,i,n){e!==i&&(i[n++]=e[t++],i[n++]=e[t++],i[n]=e[t])}function y(e,t,i,n){i[n]=B*(e[t]/O),i[n+1]=B*(N-2*Math.atan(Math.exp(-e[t+1]/O))),i[n+2]=e[t+2]}function g(e,t,i,s){!function(e,t,i,s,r){const a=.4999999*Math.PI,o=(0,n.qE)(C*e[t+1],-a,a),l=Math.sin(o);i[s++]=C*e[t]*r.radius,i[s++]=r.halfSemiMajorAxis*Math.log((1+l)/(1-l)),i[s]=e[t+2]}(e,t,i,s,a.$O)}function x(e,t,i,n){i[n]=e[t]*q,i[n+1]=e[t+1]*q,i[n+2]=e[t+2]}function F(e,t,i,n){i[n]=e[t]*G,i[n+1]=e[t+1]*G,i[n+2]=e[t+2]}function _(e,t,i,n,s){const r=s+e[t+2],a=C*e[t+1],o=C*e[t],l=Math.cos(a)*r;i[n]=Math.cos(o)*l,i[n+1]=Math.sin(o)*l,i[n+2]=Math.sin(a)*r}function v(e,t,i,n){_(e,t,i,n,a.Sw.radius)}function w(e,t,i,n){_(e,t,i,n,a.sH.radius)}function S(e,t,i,n){_(e,t,i,n,a.$O.radius)}function I(e,t,i,s,r){const a=e[t],o=e[t+1],l=e[t+2],u=Math.sqrt(a*a+o*o+l*l),c=(0,n.YN)(l/(0===u?1:u)),d=Math.atan2(o,a);i[s++]=B*d,i[s++]=B*c,i[s]=u-r}function R(e,t,i,n){I(e,t,i,n,a.Sw.radius)}function T(e,t,i,n){I(e,t,i,n,a.sH.radius)}function M(e,t,i,n){I(e,t,i,n,a.$O.radius)}function b(e,t,i,n){!function(e,t,i,n,s){const r=C*e[t],a=C*e[t+1],o=e[t+2],l=Math.sin(a),u=Math.cos(a),c=s.radius/Math.sqrt(1-s.eccentricitySquared*l*l);i[n++]=(c+o)*u*Math.cos(r),i[n++]=(c+o)*u*Math.sin(r),i[n++]=(c*(1-s.eccentricitySquared)+o)*l}(e,t,i,n,a.$O)}function A(e,t,i,n){const s=u,r=e[t],o=e[t+1],l=e[t+2];let c,d,p,f,h,m,y,g,x,F,_,v,w,S,I,R,T,M,b,A,z;c=Math.abs(l),d=r*r+o*o,p=Math.sqrt(d),f=d+l*l,h=Math.sqrt(f),A=Math.atan2(o,r),m=l*l/f,y=d/f,S=s.a2/h,I=s.a3-s.a4/h,y>.3?(g=c/h*(1+y*(s.a1+S+m*I)/h),b=Math.asin(g),F=g*g,x=Math.sqrt(1-F)):(x=p/h*(1-m*(s.a5-S-y*I)/h),b=Math.acos(x),F=1-x*x,g=Math.sqrt(F)),_=1-a.$O.eccentricitySquared*F,v=a.$O.radius/Math.sqrt(_),w=s.a6*v,S=p-v*x,I=c-w*g,T=x*S+g*I,R=x*I-g*S,M=R/(w/_+T),b+=M,z=T+R*M/2,l<0&&(b=-b),i[n++]=B*A,i[n++]=B*b,i[n]=z}const z={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:m},C=(0,n.kU)(1),B=(0,n.KJ)(1),N=.5*Math.PI,O=a.$O.radius,q=O*Math.PI/180,G=180/(O*Math.PI)},41266:(e,t,i)=>{i.d(t,{A:()=>m});var n=i(31635),s=i(69540),r=i(66552),a=i(25482),o=i(91429),l=i(56507),u=i(93223);const c=new r.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let d=class extends((0,s.OU)(a.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"outAlias",write:!0}})],d.prototype,"alias",void 0),(0,n.Cg)([(0,o.MZ)({type:String})],d.prototype,"responseType",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"type",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"value",void 0),(0,n.Cg)([(0,u.e)(c)],d.prototype,"valueType",void 0),d=(0,n.Cg)([(0,o.$K)("esri.rest.support.AttributeBinsGrouping")],d);const p=d;d.from=(0,l.dp)(d);const f=new r.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),h=new r.J({naturalLog:"natural-log",squareRoot:"square-root"});let m=class extends((0,s.OU)(a.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],m.prototype,"expression",void 0),(0,n.Cg)([(0,u.e)(f,{name:"onExpression.valueType"})],m.prototype,"expressionValueType",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{name:"onField",write:!0}})],m.prototype,"field",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],m.prototype,"firstDayOfWeek",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],m.prototype,"hideUpperBound",void 0),(0,n.Cg)([(0,o.MZ)({type:p,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],m.prototype,"splitBy",void 0),(0,n.Cg)([(0,o.MZ)({type:p,json:{write:{target:{stackBy:{type:p},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>p.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],m.prototype,"stackBy",void 0),(0,n.Cg)([(0,u.e)(h)],m.prototype,"transformation",void 0),m=(0,n.Cg)([(0,o.$K)("esri.rest.support.BinParametersBase")],m)},41366:(e,t,i)=>{i.d(t,{K:()=>d,Q:()=>l});var n=i(31635),s=i(66552),r=i(53966),a=i(91429),o=i(93223);const l=(0,s.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",d=e=>{const t=e;let i=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&c||i&&u||null,t&&i&&r.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,n.Cg)([(0,a.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],i.prototype,"normalizationField",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],i.prototype,"normalizationMaxValue",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],i.prototype,"normalizationMinValue",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],i.prototype,"normalizationTotal",void 0),(0,n.Cg)([(0,o.e)(l,{name:"parameters.normalizationType"})],i.prototype,"normalizationType",null),i=(0,n.Cg)([(0,a.$K)("esri.rest.support.NormalizationBinParametersMixin")],i),i}},44123:(e,t,i)=>{i.d(t,{WhereClauseCache:()=>r});var n=i(66344),s=i(88368);class r{constructor(e,t){this._cache=new n.q(e),this._invalidCache=new n.q(t)}get(e,t){const i=`${t?.uid}:${e}`,n=this._cache.get(i);if(n)return n;if(null!=this._invalidCache.get(i))return null;try{const n=s.A.create(e,{fieldsIndex:t});return this._cache.put(i,n),n}catch(e){return this._invalidCache.put(i,e),null}}getError(e,t){const i=`${t?.uid}:${e}`;return this._invalidCache.get(i)??null}}},44794:(e,t,i)=>{i.d(t,{v:()=>o});var n=i(4718),s=i(62788),r=i(95488);class a{constructor(e,t){this._observable=new r.I,this._value=e,this._equalityFunction=t}get value(){return(0,s.gc)(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}function o(e,t=n.gh){return new a(e,t)}},51441:(e,t,i)=>{i.d(t,{LQ:()=>s,ag:()=>a,pL:()=>r});var n=i(90708);function s(e,t,i,s=e.hasZ,r=e.hasM){if(null==t)return null;const a=e.hasZ&&s,o=e.hasM&&r;if(i){const e=(0,n.Nl)(t,"esriGeometryPoint",i,s,r);return(0,n.DF)(e,a,o)}return(0,n.DF)(t,a,o)}function r(e,t,i,s,r,a){if(null==t)return null;const o="coords"in t?t:t.geometry;if(null==o)return null;const{hasZ:l,hasM:u}=o,c=l&&(r??=l),d=u&&(a??=u);if(i){let t=(0,n.kz)(o,e,i,r,a);return s&&(t=(0,n.Nl)(t,e,s)),(0,n.zv)(t,e,c,d)}if(s){const t=(0,n.Nl)(o,e,s,r,a);return(0,n.zv)(t,e,c,d)}return(0,n.zv)(o,e,c,d)}function a(e){return e&&o in e?JSON.parse(JSON.stringify(e,l)):e}const o="_geVersion",l=(e,t)=>e===o?void 0:t},54339:(e,t,i)=>{function n(e,t){switch(t.type){case"object-id":case"unique-id-simple":return e.attributes[t.fieldName];case"unique-id-composite":{const i=[];for(const n of t.fieldNames)i.push(e.attributes[n]??null);return JSON.stringify(i)}}}function s(e,t){if("uniqueIdFields"in t&&t.uniqueIdFields?.length){if(1===t.uniqueIdFields.length)return e.attributes?.[t.uniqueIdFields[0]];const i=t.uniqueIdFields.map(t=>e.attributes?.[t]);return JSON.stringify(i)}return"objectIdField"in t&&t.objectIdField?e.attributes?.[t.objectIdField]:null}i.d(t,{W:()=>n,r:()=>s})},56390:(e,t,i)=>{i.d(t,{do:()=>k,Wc:()=>$});var n=i(4576),s=i(21818),r=i(49186),a=(i(44208),i(4718)),o=i(97768),l=i(74887),u=i(86211),c=i(12195),d=i(91218),p=i(70328),f=i(19419),h=i(6606),m=i(65864),y=i(17136),g=i(21325),x=i(90708),F=i(29441),_=i(51441),v=i(31464);class w{constructor(){this._storage=new Map,this._purgeInterval=5,this._sweep=()=>{if(this._timer=void 0,!this._storage)return;const e=1e3*this._purgeInterval,t=performance.now()-e;for(const[i,n]of this._storage){if(!(n.time<t))return void(this._storage.size>0&&(this._timer=setTimeout(this._sweep,e)));this._storage.delete(i)}}}destroy(){this._storage?.clear(),this._storage=null,clearTimeout(this._timer)}put(e,t){this._storage?.set(e,new I(t)),this._scheduleSweep()}get(e){const t=this._storage?.get(e);if(t)return this._storage?.delete(e),t.time=performance.now(),this._storage?.set(e,t),t.items}clear(){this._storage?.clear()}_scheduleSweep(){this._storage&&(this._timer??=setTimeout(this._sweep,1e3*this._purgeInterval))}get test(){}}let S=0;class I{constructor(e){this.items=e,this.time=performance.now(),this.id=S++}}var R=i(99352),T=i(8384),M=i(58727),b=i(62660),A=i(43668);const z="unsupported-query";async function C(e,{fieldsIndex:t,geometryType:i,spatialReference:n,availableFields:s}){if(null!=e.geometryPrecision||e.multipatchOption&&"xyFootprint"!==e.multipatchOption||e.pixelSize||e.relationParam||e.text)throw new r.A(z,"Unsupported query options",{query:e});return B(t,s,e),function(e,t,i){const{outStatistics:n,groupByFieldsForStatistics:s,having:a}=i,o=s?.length,l=n?.length;if(a){if(!o||!l)throw new r.A(z,"outStatistics and groupByFieldsForStatistics should be specified with having",{query:i});(0,F.eD)(e,t,a,n,i)}if(l){if(null==(u=n)||!u.every(e=>"exceedslimit"!==e.statisticType))return;const a=n.map(e=>e.onStatisticField).filter(Boolean);(0,F.MG)(e,t,a,{expressionName:"onStatisticFields",query:i}),o&&(0,F.MG)(e,t,s,{expressionName:"groupByFieldsForStatistics",query:i});for(const s of n){const{onStatisticField:n,statisticType:a}=s;if("percentile_disc"!==a&&"percentile_cont"!==a||!("statisticParameters"in s))e.get(n)&&"count"!==a&&"min"!==a&&"max"!==a&&(0,F.MG)(e,t,[n],{expressionName:`outStatistics with '${a}' statistic type`,allowedFieldTypes:N,query:i});else{const{statisticParameters:e}=s;if(!e)throw new r.A(z,"statisticParameters should be set for percentile type",{definition:s,query:i})}}}var u}(t,s,e),Promise.all([(0,b.c0)(e,i,n),(0,v.Nk)(n,e.outSR)]).then(()=>e)}function B(e,t,i){const{returnDistinctValues:n,outStatistics:s}=i,a=s?s.map(e=>e.outStatisticFieldName&&e.outStatisticFieldName.toLowerCase()).filter(Boolean):[];if("orderByFields"in i&&i.orderByFields&&i.orderByFields.length>0){const n=" asc",s=" desc",r=i.orderByFields.map(e=>{const t=e.toLowerCase();return t.includes(n)?t.split(n)[0]:t.includes(s)?t.split(s)[0]:e}).filter(e=>!a.includes(e));(0,F.MG)(e,t,r,{expressionName:"orderByFields",query:i})}if("outFields"in i)if(i.outFields?.length)(0,F.MG)(e,t,i.outFields,{expressionName:"outFields",query:i,allowedFieldTypes:"all"});else if(n)throw new r.A(z,"outFields should be specified for returnDistinctValues",{query:i});(0,F.SN)(e,t,i.where,i)}const N=new Set([...F.vl,...F.VW]);async function O(e,t,i,n){let s=[];if(i.valueExpression){const{arcadeUtils:e}=await(0,A.l)();s=e.extractFieldNames(i.valueExpression)}if(i.field&&s.push(i.field),i.field2&&s.push(i.field2),i.field3&&s.push(i.field3),i.normalizationField&&s.push(i.normalizationField),!s.length&&!i.valueExpression)throw new r.A(z,"field or valueExpression is required",{params:i});(0,F.MG)(e,t,s,{expressionName:"statistics",query:n})}var q=i(86420),G=i(95466),P=(i(71511),i(53966),i(36708),i(44794),i(78659)),E=i(31635),j=i(69622),D=i(91429);let V=class extends j.A{constructor(){super(...arguments),this.SCHEDULER_LOG_SLOW_TASKS=!1,this.FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES=!1}};(0,E.Cg)([(0,D.MZ)()],V.prototype,"SCHEDULER_LOG_SLOW_TASKS",void 0),(0,E.Cg)([(0,D.MZ)()],V.prototype,"FEATURE_SERVICE_SNAPPING_SOURCE_TILE_TREE_SHOW_TILES",void 0),V=(0,E.Cg)([(0,D.$K)("esri.views.support.debugFlags")],V),new V,Symbol("Yield");new Map([["immediate",0],["schedule",4],["slide",0],["stream loader",0],["elevation query",0],["terrain",1],["surface geometry updates",1],["LoD renderer",2],["Graphics3D",2],["I3S",2],["point cloud",2],["feature fetcher",2],["stream controller",2],["clouds generator",2],["overlay",4],["overlay renderer",4],["stage",4],["graphics deconflictor",4],["graphics filter visibility",4],["graphics scale visibility",4],["graphics frustum visibility",4],["POI frequent",6],["POI infrequent",30],["labeler",8],["feature query",8],["feature tile tree",16],["fast feature tile tree",0],["elevation alignment",12],["elevation alignment scene",14],["text texture atlas",12],["texture unload",12],["line of sight tool",16],["interactive line of sight tool",0],["snapping",0],["shadow accumulator",30],["flow generator",12],["mapview fetch queue",0],["mapview layerview update",2],["mapview vector tile parsing queue",0]]),(0,P.l5)(6.5),(0,P.l5)(1),(0,P.l5)(30),(0,P.l5)(1e3/30),(0,P.l5)(100);const Z=new class{constructor(){this._begin=performance?.now()??0,this._budget=0,this._done=!1,this._progressed=!1,this._enabled=!0}run(e){return!this.done&&(!0===e()&&this.madeProgress(),!0)}get done(){return this._done}get budget(){return this._budget}madeProgress(){return this._progressed=!0,this._done=this.elapsed>=this._budget&&this._enabled,this._done}get enabled(){return this._enabled}set enabled(e){this._enabled=e}reset(e){this._begin=this.now(),this._budget=e,this.resetProgress()}get remaining(){return Math.max(this._budget-this.elapsed,0)}now(){return performance.now()}get elapsed(){return this.now()-this._begin}resetProgress(){this._progressed=!1,this._done=!1}get hasProgressed(){return this._progressed}};Z.enabled=!1;const Q=new class{remove(){}processQueue(){}schedule(e,t,i){try{if((0,l.G4)(t)){const e=(0,l.NK)();return i?Promise.resolve(i(e)):Promise.reject(e)}return(0,l.z7)(e(Z))}catch(e){return Promise.reject(e)}}reschedule(e,t,i){return this.schedule(e,t,i)}async scheduleGenerator(e,t,i){if((0,l.G4)(t)){const e=(0,l.NK)();if(i)return i(e);throw e}const n=e(Z);for(;;){const e=n.next(Z),s=(0,l.$X)(e)?await e:e;if((0,l.G4)(t)){const e=(0,l.NK)();if(i){const t=i(e),s=n.return(null);return(0,l.$X)(s)&&await(0,l.QZ)(s),t}const t=n.throw(e);throw(0,l.$X)(t)&&await(0,l.QZ)(t),e}if(s.done)return s.value}}};class k{constructor(e){this._changeHandle=null,this.capabilities={query:R.F},this.geometryType=e.geometryType,this.hasM=!!e.hasM,this.hasZ=!!e.hasZ,this.spatialReference=e.spatialReference,this.definitionExpression=e.definitionExpression,this.featureStore=e.featureStore,this.aggregateAdapter=e.aggregateAdapter,this._cache=e.cache??new w,this.timeInfo=e.timeInfo,this.featureIdInfo=e.featureIdInfo,"object-id"===e.featureIdInfo.type&&(this.objectIdField=e.featureIdInfo.fieldName),this._changeHandle=this.featureStore.events.on("changed",()=>this._clearCache()),this.fieldsIndex=(0,c.W)(e.fieldsIndex)?e.fieldsIndex:G.A.fromJSON(e.fieldsIndex),!e.availableFields||1===e.availableFields.length&&"*"===e.availableFields[0]?this.availableFields=new Set(this.fieldsIndex.fields.map(e=>e.name)):this.availableFields=new Set(e.availableFields.map(e=>this.fieldsIndex.get(e)?.name).filter(e=>null!=e)),e.scheduler&&e.priority?this._frameTask=e.scheduler.registerTask(e.priority):this._frameTask=Q}destroy(){this._changeHandle=(0,o.xt)(this._changeHandle),this._frameTask=(0,o.xt)(this._frameTask),this._clearCache(),(0,o.pR)(this._cache)}get featureAdapter(){return this.featureStore.featureAdapter}async executeQuery(e,t){const i=(0,l.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryFeatureSet(e),i)}async executeQueryForCount(e={},t){const i=(0,l.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForCount(e),i)}async executeQueryForExtent(e,t){const i=(0,l.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForExtent(e),i)}async executeQueryForIds(e,t){return Array.from(await this.executeQueryForIdSet(e,t))}async executeQueryForIdSet(e,t){const i=(0,l.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForIdSet(e),i)}async executeQueryForLatestObservations(e,t){const i=(0,l.Mq)(t);if(!this.timeInfo?.trackIdField)throw new r.A("unsupported-query","Missing timeInfo or timeInfo.trackIdField",{query:e,timeInfo:this.timeInfo});return await this._frameTask.scheduleGenerator(()=>this._executeQueryForLatestObservations(e),i)}async executeQueryForOpaqueFeatures(e,t){const i=(0,l.Mq)(t);return(await this._frameTask.scheduleGenerator(()=>this._executeQuery(e,{}),i)).items}async executeAttributeBinsQuery(e,t){const i=(0,l.Mq)(t);return e=(0,a.o8)(e),await this._frameTask.scheduleGenerator(()=>this._executeAttributeBinsQuery(e),i)}async executeQueryForSummaryStatistics(e={},t,i){const n=(0,l.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForSummaryStatistics(e,t),n)}async executeQueryForUniqueValues(e={},t,i){const n=(0,l.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForUniqueValues(e,t),n)}async executeQueryForClassBreaks(e={},t,i){const n=(0,l.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForClassBreaks(e,t),n)}async executeQueryForHistogram(e={},t,i){const n=(0,l.Mq)(i);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForHistogram(e,t),n)}async executeQueryForSnapping(e,t){const i=(0,l.Mq)(t);return await this._frameTask.scheduleGenerator(()=>this._executeQueryForSnapping(e,i),i)}async fetchRecomputedExtents(e){const t=(0,l.Mq)(e);this._timeExtentPromise||=(0,q.W)(this.timeInfo,this.featureStore);const[i,n]=await Promise.all([this._getFullExtent(),this._timeExtentPromise]);return(0,l.Te)(t),{fullExtent:i,timeExtent:n}}_clearCache(){this._cache.clear(),this._allFeaturesPromise=null,this._timeExtentPromise=null,this._fullExtentPromise=null}async*_executeQueryFeatureSet(e){try{const t=yield*this._executeQuery(e,{});return yield,await t.createQueryResponse()}catch(t){if(t!==M.v8)throw t;return await new T.G([],e,this).createQueryResponse()}}async*_executeQueryForCount(e){try{const t=yield*this._executeQuery(e,{returnGeometry:!1,returnCentroid:!1,outSR:null});return yield,t.createQueryResponseForCount()}catch(e){if(e!==M.v8)throw e;return 0}}async*_executeQueryForExtent(e){const t=e.outSR;try{const i=yield*this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null});yield;const n=i.size;if(!n)return{count:0,extent:null};const s=await this._getBounds(i.items,i.spatialReference,t??this.spatialReference);return yield,{count:n,extent:s}}catch(e){if(e===M.v8)return{count:0,extent:null};throw e}}async*_executeQueryForIdSet(e){try{const t=yield*this._executeQuery(e,{returnGeometry:!0,returnCentroid:!1,outSR:null});yield;const i=t.items,n=new Set;for(const e of i)n.add(t.featureAdapter.getObjectId(e));return n}catch(e){if(e===M.v8)return new Set;throw e}}async*_executeQueryForLatestObservations(e){try{const t=yield*this._executeQuery(e,{});return yield,this._filterLatest(t),yield,await t.createQueryResponse()}catch(t){if(t!==M.v8)throw t;return await new T.G([],e,this).createQueryResponse()}}async*_executeAttributeBinsQuery(e){let t;try{e=await(0,M.iJ)(e,this.definitionExpression,this.spatialReference),yield,e=await async function(e,t){const i=e.bin;if(!i.onField&&!i.onExpression?.value||"autoIntervalBin"===i.type&&null==i.parameters.numberOfBins||"dateBin"===i.type&&(null==i.parameters.number||null==i.parameters.unit)||"fixedBoundariesBin"===i.type&&null==i.parameters.boundaries||"fixedIntervalBin"===i.type&&null==i.parameters.interval)throw new r.A(z,"Unsupported query options",{query:e});return C(e,t)}(e,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;const i=yield*this._executeSceneFilterQuery(e);yield,t=yield*this._executeGeometryQuery(e,i),yield,this._executeAggregateIdsQuery(t),yield,this._executeObjectIdsQuery(t),yield,this._executeTimeQuery(t),yield,this._executeAttributesQuery(t),yield}catch(i){if(i!==M.v8)throw i;t=new T.G([],e,this)}return await t.createQueryBinsResponse(e)}async*_executeQueryForSummaryStatistics(e={},t){const{field:i,normalizationField:n,valueExpression:s}=t,r=yield*this._executeQueryForStatistics(e,{field:i,normalizationField:n,valueExpression:s});return yield,await r.createSummaryStatisticsResponse(t)}async*_executeQueryForUniqueValues(e={},t){const{field:i,field2:n,field3:s,valueExpression:r}=t,a=yield*this._executeQueryForStatistics(e,{field:i,field2:n,field3:s,valueExpression:r});return yield,await a.createUniqueValuesResponse(t)}async*_executeQueryForClassBreaks(e,t){const{field:i,normalizationField:n,valueExpression:s}=t,r=yield*this._executeQueryForStatistics(e,{field:i,normalizationField:n,valueExpression:s});return yield,await r.createClassBreaksResponse(t)}async*_executeQueryForHistogram(e,t){const{field:i,normalizationField:n,valueExpression:s}=t,r=yield*this._executeQueryForStatistics(e,{field:i,normalizationField:n,valueExpression:s});return yield,await r.createHistogramResponse(t)}async*_executeQueryForSnapping(e,t){const{point:i,distance:n,returnEdge:s,vertexMode:r}=e;if(!s&&"none"===r)return{candidates:[]};let o=(0,a.o8)(e.query);o=await(0,M.T2)(o,this.definitionExpression,this.spatialReference),yield,o=await C(o,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;const l=!(0,g.aI)(i.spatialReference,this.spatialReference);l&&(await(0,v.Nk)(i.spatialReference,this.spatialReference),yield);const u="number"==typeof n?n:n.x,c="number"==typeof n?n:n.y,d={xmin:i.x-u,xmax:i.x+u,ymin:i.y-c,ymax:i.y+c,spatialReference:i.spatialReference},p=l?(0,v.Cv)(d,this.spatialReference):d;if(!p)return{candidates:[]};const f=(await(0,y.el)((0,m.rS)(i),null,{signal:t}))[0];yield;const h=(await(0,y.el)((0,m.rS)(p),null,{signal:t}))[0];if(yield,null==f||null==h)return{candidates:[]};const x=await this._searchFeatures(L(h.toJSON()));yield;const F=new T.G(x,o,this);this._executeObjectIdsQuery(F),yield,this._executeTimeQuery(F),yield,this._executeAttributesQuery(F),yield,yield*this._executeGeometryQueryForSnapping(F),yield;const _=f.toJSON(),w=l?(0,v.Cv)(_,this.spatialReference):_,S=l?Math.max(p.xmax-p.xmin,p.ymax-p.ymin)/2:n;return F.createSnappingResponse({...e,point:w,distance:S},o.returnZ,i.spatialReference)}async _getBounds(e,t,i){const n=(0,p.hZ)((0,p.vt)(),p.qv);return await this.featureStore.forEachBounds(e,e=>(0,p.RF)(n,e)),$(n,t,i,this.spatialReference,this.hasZ)}_getFullExtent(){return this._fullExtentPromise||="getFullExtent"in this.featureStore&&this.featureStore.getFullExtent?Promise.resolve(this.featureStore.getFullExtent(this.spatialReference)):this._getAllFeatures().then(e=>this._getBounds(e,this.spatialReference,this.spatialReference)),this._fullExtentPromise}async _getAllFeaturesQueryEngineResult(e){return new T.G(await this._getAllFeatures(),e,this)}async _getAllFeatures(){if(null==this._allFeaturesPromise){const e=[];this._allFeaturesPromise=(async()=>await this.featureStore.forEach(t=>e.push(t)))().then(()=>(0,s.zI)(e))}const e=this._allFeaturesPromise,t=await e;return e===this._allFeaturesPromise?t.slice():this._getAllFeatures()}async*_executeQuery(e,t){e=(0,a.o8)(e),e=await(0,M.GC)(e,this.definitionExpression,this.spatialReference),yield,e=await C(e,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield,e={...e,...t};const i=yield*this._executeSceneFilterQuery(e);yield;const n=yield*this._executeGeometryQuery(e,i);return yield,this._executeAggregateIdsQuery(n),yield,this._executeObjectIdsQuery(n),yield,this._executeTimeQuery(n),yield,this._executeAttributesQuery(n),n}async*_executeSceneFilterQuery(e){if(null==e.sceneFilter)return null;const{outSR:t,returnGeometry:i,returnCentroid:n}=e,s=this.featureStore.featureSpatialReference,r=e.sceneFilter.geometry,a=null==s||(0,g.aI)(s,r.spatialReference)?r:(0,v.Cv)(r,s);if(!a)return null;const o=i||n,l=(0,g.fn)(t)&&!(0,g.aI)(this.spatialReference,t)&&o?async e=>this._project(e,t):e=>e;yield;const u=this.featureAdapter,c=await this._searchFeatures(L(a));if(yield,"disjoint"===e.sceneFilter.spatialRelationship){if(!c.length)return null;const t=new Set;for(const e of c)t.add(u.getObjectId(e));const i=await this._getAllFeatures();yield;const n=await(0,b.xt)("esriSpatialRelDisjoint",a,this.geometryType);yield;const s=e=>!t.has(u.getObjectId(e))||n(u.getGeometry(e)),r=yield*this._runSpatialFilter(i,s);yield;const o=new T.G(r,e,this);return await l(o)}if(!c.length)return new T.G([],e,this);if(this._canExecuteSinglePass(a,e))return await l(new T.G(c,e,this));const d=await(0,b.xt)("esriSpatialRelContains",a,this.geometryType);yield;const p=yield*this._runSpatialFilter(c,e=>d(u.getGeometry(e)));return yield,await l(new T.G(p,e,this))}async*_executeGeometryQuery(e,t){if(null!=t&&0===t.items.length)return t;const{geometry:i,outSR:s,returnGeometry:r,returnCentroid:a}=e,o=t?null:this._getCacheKey(e),l=o?this._cache.get(o):null;if(l)return new T.G(l,e,this);const u=(0,g.fn)(s)&&!(0,g.aI)(this.spatialReference,s),c=r||a,d=async e=>(u&&c&&await this._project(e,s),o&&this._cache.put(o,e.items),e),p=this.featureStore.featureSpatialReference,f=!i||null==p||(0,g.aI)(p,i.spatialReference)?i:(0,v.Cv)(i,p);if(!f)return await d(null!=t?t:await this._getAllFeaturesQueryEngineResult(e));yield;const h=this.featureAdapter;let m=await this._searchFeatures(L(i));yield;const y=e.spatialRel??"esriSpatialRelIntersects";if("esriSpatialRelDisjoint"===y){if(!m.length)return await d(null!=t?t:await this._getAllFeaturesQueryEngineResult(e));const i=new Set;for(const e of m)i.add(h.getObjectId(e));let n;null!=t?n=t.items:(yield,n=await this._getAllFeatures(),yield);const s=await(0,b.xt)(y,f,this.geometryType);yield;const r=e=>!i.has(h.getObjectId(e))||s(h.getGeometry(e)),a=yield*this._runSpatialFilter(n,r);yield;const o=new T.G(a,e,this);return await d(o)}if(null!=t){const e=new n.vW;m=m.filter(i=>(0,n.qh)(t.items,i,t.items.length,e)>=0)}if(!m.length){const t=new T.G([],e,this);return o&&this._cache.put(o,t.items),t}if(this._canExecuteSinglePass(f,e))return await d(new T.G(m,e,this));const x=await(0,b.xt)(y,f,this.geometryType);yield;const F=yield*this._runSpatialFilter(m,e=>x(h.getGeometry(e)));return yield,await d(new T.G(F,e,this))}_executeAggregateIdsQuery(e){if(0===e.items.length||!e.query.aggregateIds?.length||null==this.aggregateAdapter)return;const t=new Set;for(const i of e.query.aggregateIds)this.aggregateAdapter.getFeatureObjectIds(i).forEach(e=>t.add(e));const i=this.featureAdapter.getObjectId;e.items=e.items.filter(e=>t.has(i(e)))}_executeObjectIdsQuery(e){if(0===e.items.length||!e.query.objectIds?.length)return;const t=new Set(e.query.objectIds),i=this.featureAdapter.getObjectId;e.items=e.items.filter(e=>t.has(i(e)))}_executeTimeQuery(e){if(0===e.items.length)return;const t=(0,q.I)(this.timeInfo,e.query.timeExtent,this.featureAdapter);null!=t&&(e.items=e.items.filter(t))}_executeAttributesQuery(e){if(0===e.items.length)return;const t=(0,F.j4)(e.query.where,this.fieldsIndex);if(t){if(!t.isStandardized)throw new TypeError("Where clause is not standardized");e.items=e.items.filter(e=>t.testFeature(e,this.featureAdapter))}}async*_executeGeometryQueryForSnapping(e){const{query:t}=e,{spatialRel:i}=t;if(!e?.items?.length||!t.geometry||!i)return;const n=await(0,b.xt)(i,t.geometry,this.geometryType);yield;const s=this.featureAdapter,r=yield*this._runSpatialFilter(e.items,e=>n(s.getGeometry(e)));e.items=r}*_runSpatialFilter(e,t){if(!t)return e;if(null==this._frameTask)return e.filter(e=>t(e));let i=yield;const n=new Array;for(const s of e)t(s)&&n.push(s),i.madeProgress(),i.done&&(i=yield);return n}_filterLatest(e){const{trackIdField:t,startTimeField:i,endTimeField:n}=this.timeInfo,s=n||i,r=new Map,a=this.featureAdapter.getAttribute;for(const i of e.items){const e=a(i,t),n=a(i,s),o=r.get(e);(!o||n>a(o,s))&&r.set(e,i)}e.items=Array.from(r.values())}_getCacheKey(e){const{geometry:t,spatialRel:i,returnGeometry:n,returnCentroid:s,outSR:r,resultType:a,cacheHint:o}=e;if("tile"!==a&&!o)return null;const l=n||s;return(0,g.fn)(r)&&!(0,g.aI)(this.spatialReference,r)&&l?JSON.stringify([t,i,r]):JSON.stringify([t,i])}_canExecuteSinglePass(e,t){const{spatialRel:i}=t;return(0,b.tC)(e)&&("esriSpatialRelEnvelopeIntersects"===i||"esriGeometryPoint"===this.geometryType&&("esriSpatialRelIntersects"===i||"esriSpatialRelContains"===i))}async _project(e,t){if(!t||(0,g.aI)(this.spatialReference,t))return e;const i=this.featureAdapter,n=(0,d.isLoaded)()?await this._getFullExtent():void 0,r=await(0,v.lK)(e.items.map(e=>(0,_.pL)(this.geometryType,i.getGeometry(e))),this.spatialReference,t,{areaOfInterestExtent:n});return e.items=(0,s.zI)(r.map((t,n)=>i.cloneWithGeometry(e.items[n],(0,x.Ux)(t,this.hasZ,this.hasM)))),e}async _searchFeatures(e){const t=new Set;await Promise.all(e.map(e=>this.featureStore.forEachInBounds(e,e=>t.add(e))));const i=Array.from(t.values());return t.clear(),i}async*_executeQueryForStatistics(e,t){e=(0,a.o8)(e);try{e=await(0,M.GC)(e,this.definitionExpression,this.spatialReference),yield,e=await async function(e,t,{fieldsIndex:i,geometryType:n,spatialReference:s,availableFields:a}){if(null!=e.geometryPrecision||e.multipatchOption||e.pixelSize||e.relationParam||e.text||e.outStatistics||e.groupByFieldsForStatistics||e.having||e.orderByFields)throw new r.A(z,"Unsupported query options",{query:e});return B(i,a,e),Promise.all([O(i,a,t,e),(0,b.c0)(e,n,s),(0,v.Nk)(s,e.outSR)]).then(()=>e)}(e,t,{availableFields:this.availableFields,fieldsIndex:this.fieldsIndex,geometryType:this.geometryType,spatialReference:this.spatialReference}),yield;const i=yield*this._executeSceneFilterQuery(e);yield;const n=yield*this._executeGeometryQuery(e,i);return yield,this._executeAggregateIdsQuery(n),yield,this._executeObjectIdsQuery(n),yield,this._executeTimeQuery(n),yield,this._executeAttributesQuery(n),yield,n}catch(t){if(t!==M.v8)throw t;return new T.G([],e,this)}}get test(){}}function L(e){if((0,b.tC)(e)){if((0,m.ZC)(e))return[(0,f.fA)(Math.min(e.xmin,e.xmax),Math.min(e.ymin,e.ymax),Math.max(e.xmin,e.xmax),Math.max(e.ymin,e.ymax))];if((0,m.Bi)(e))return e.rings.map(e=>(0,f.fA)(Math.min(e[0][0],e[2][0]),Math.min(e[0][1],e[2][1]),Math.max(e[0][0],e[2][0]),Math.max(e[0][1],e[2][1])))}return[(0,h.Rg)((0,f.vt)(),e)]}function $(e,t,i,n,s){const r={xmin:e[0],ymin:e[1],xmax:e[3],ymax:e[4],spatialReference:(0,_.ag)(n)};s&&isFinite(e[2])&&isFinite(e[5])&&(r.zmin=e[2],r.zmax=e[5],r.hasZ=!0);const a=(0,v.Cv)(r,t,i);if(a.spatialReference=(0,_.ag)(i),a.xmax-a.xmin===0){const e=(0,u.GA)(a.spatialReference);a.xmin-=e,a.xmax+=e}if(a.ymax-a.ymin===0){const e=(0,u.GA)(a.spatialReference);a.ymin-=e,a.ymax+=e}if(s&&null!=a.zmin&&null!=a.zmax&&a.zmax-a.zmin===0){const e=(0,u.GA)(a.spatialReference);a.zmin-=e,a.zmax+=e}return a}},57231:(e,t,i)=>{i.d(t,{g:()=>n});const n=(0,i(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"})},58727:(e,t,i)=>{i.d(t,{GC:()=>y,T2:()=>g,VY:()=>p,dO:()=>F,iJ:()=>m,v8:()=>f});var n=i(49186),s=i(66552),r=i(86211),a=i(91218),o=i(90634),l=i(65864),u=i(17136),c=i(21325),d=i(31464);const p=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),f=Object.freeze({}),h="frequency";async function m(e,t,i){const n=e.bin;return n.onField&&(n.onField=n.onField.trim()),n.onExpression?.value&&(n.onExpression.value=n.onExpression.value.trim()),n.splitBy&&(n.splitBy.value&&(n.splitBy.value=n.splitBy.value.trim()),n.splitBy.outAlias&&(n.splitBy.outAlias=n.splitBy.outAlias.trim())),n.stackBy&&(n.stackBy.value&&(n.stackBy.value=n.stackBy.value.trim()),n.stackBy.outAlias&&(n.stackBy.outAlias=n.stackBy.outAlias.trim())),"normalizationField"in n.parameters&&n.parameters.normalizationField&&(n.parameters.normalizationField=n.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:h}]),y(e,t,i)}async function y(e,t,i){const{outFields:n,orderByFields:s,groupByFieldsForStatistics:r,outStatistics:a}=e;if(n)for(let e=0;e<n.length;e++)n[e]=n[e].trim();if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(a)for(let e=0;e<a.length;e++)a[e].onStatisticField&&(a[e].onStatisticField=a[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),g(e,t,i)}async function g(e,t,s){if(!e)return null;let{where:a}=e;if(e.where=a=a?.trim(),(!a||/^1 *= *1$/.test(a)||t&&t===a)&&(e.where=null),!e.geometry)return e;let h=await async function(e){const{distance:t,units:s}=e,a=e.geometry;if(null==t||"vertexAttributes"in a)return a;const o=a.spatialReference,u=s?p.fromJSON(s):(0,r.Ij)(o),f=o&&((0,c.EA)(o)||(0,c.K8)(o))?a:await(0,d.Nk)(o,c.KK).then(()=>(0,d.Cv)(a,c.KK)),h=await i.e(9159).then(i.bind(i,49159));await h.load();const m=h.execute(f,t||1,{unit:u})??void 0;if(!m||!(0,l.Bi)(m)||0===m.rings.length)throw new n.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return m}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;h=(0,o.HA)(h),h.spatialReference=t}if(h){await(0,d.Nk)(h.spatialReference,s),h=function(e,t){const i=e.spatialReference;return x(e,t)&&(0,l.ZC)(e)?{spatialReference:i,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]}:e}(h,s);const t=(await(0,u.el)((0,l.rS)(h)))[0];if(null==t)throw f;const i="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,n=i&&x(h,s)?{extendedParams:{densificationStep:8*i}}:void 0,r=t.toJSON(),a=(0,d.Cv)(r,r.spatialReference,s,n);if(!a)throw f;a.spatialReference=s,e.geometry=a}return e}function x(e,t){if(!e)return!1;const i=e.spatialReference;return((0,l.ZC)(e)||(0,l.Bi)(e)||(0,l.Rg)(e))&&!(0,c.aI)(i,t)&&!(0,a.canProjectWithoutEngine)(i,t)}function F(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}},59977:(e,t,i)=>{i.d(t,{A:()=>y});var n=i(31635),s=i(93637),r=i(91429),a=i(56507),o=i(41266),l=i(69540),u=i(25482),c=i(57231),d=i(93223);let p=class extends((0,l.OU)(u.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,n.Cg)([(0,r.MZ)({type:Number,json:{name:"number",write:!0}})],p.prototype,"value",void 0),(0,n.Cg)([(0,d.e)(c.g)],p.prototype,"unit",void 0),p=(0,n.Cg)([(0,r.$K)("esri.rest.support.DateBinTimeInterval")],p);const f=p;function h(e,t,i){(0,s.sM)(i,"string"==typeof e?e:e?.getTime(),t)}function m(e,t){const i=e.parameters[t];return i?"string"==typeof i?i:new Date(i):null}p.from=(0,a.dp)(p);let y=class extends o.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,n.Cg)([(0,r.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.end",read:{reader:(e,t)=>m(t,"end")},write:{writer:h}}})],y.prototype,"end",void 0),(0,n.Cg)([(0,r.MZ)({type:f,json:{name:"parameters",write:!0}})],y.prototype,"interval",void 0),(0,n.Cg)([(0,r.MZ)({type:f,json:{name:"parameters.offset",write:!0}})],y.prototype,"offset",void 0),(0,n.Cg)([(0,r.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],y.prototype,"returnFullIntervalBin",void 0),(0,n.Cg)([(0,r.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.start",read:{reader:(e,t)=>m(t,"start")},write:{writer:h}}})],y.prototype,"start",void 0),(0,n.Cg)([(0,r.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],y.prototype,"snapToData",void 0),(0,n.Cg)([(0,d.e)({dateBin:"date"},{readOnly:!0})],y.prototype,"type",void 0),y=(0,n.Cg)([(0,r.$K)("esri.rest.support.DateBinParameters")],y),y.from=(0,a.dp)(y)},60909:(e,t,i)=>{i.d(t,{A:()=>d});var n=i(31635),s=i(93637),r=i(91429),a=i(56507),o=i(41266),l=i(41366),u=i(93223);function c(e,t,i){(0,s.sM)(i,e instanceof Date?e.getTime():e,t)}let d=class extends((0,l.K)(o.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,n.Cg)([(0,r.MZ)({json:{name:"parameters.end",write:{writer:c}}})],d.prototype,"end",void 0),(0,n.Cg)([(0,r.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],d.prototype,"interval",void 0),(0,n.Cg)([(0,r.MZ)({json:{name:"parameters.start",write:{writer:c}}})],d.prototype,"start",void 0),(0,n.Cg)([(0,u.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],d.prototype,"type",void 0),d=(0,n.Cg)([(0,r.$K)("esri.rest.support.FixedIntervalBinParameters")],d),d.from=(0,a.dp)(d)},62660:(e,t,i)=>{i.d(t,{tC:()=>_,c0:()=>F,xt:()=>x});var n=i(49186),s=i(94078),r=i(12176),a=i(65864),o=i(21325);function l(e,t){return c(e,t.coords[0],t.coords[1])}function u(e,t){const{coords:i,lengths:n,stride:s}=t;if(!n)return!1;for(let t=0,r=0;t<n.length;t++,r+=s)if(!c(e,i[r],i[r+1]))return!1;return!0}function c(e,t,i){if(!e)return!1;const{coords:n,lengths:s,stride:r}=e;let a=!1,o=0;for(const e of s)a=d(a,n,r,o,e,t,i),o+=e*r;return a}function d(e,t,i,n,s,r,a){let o=e,l=n;for(let e=n,u=n+s*i;e<u;e+=i){l=e+i,l===u&&(l=n);const s=t[e],c=t[e+1],d=t[l],p=t[l+1];(c<a&&p>=a||p<a&&c>=a)&&s+(a-c)/(p-c)*(d-s)<r&&(o=!o)}return o}var p=i(90708),f=i(51441),h=i(31464);const m="unsupported-query",y={spatialRelationship:{esriSpatialRelIntersects:!0,esriSpatialRelContains:!0,esriSpatialRelWithin:!0,esriSpatialRelCrosses:!0,esriSpatialRelDisjoint:!0,esriSpatialRelTouches:!0,esriSpatialRelOverlaps:!0,esriSpatialRelEnvelopeIntersects:!0,esriSpatialRelIndexIntersects:!1,esriSpatialRelRelation:!1},queryGeometry:{esriGeometryPoint:!0,esriGeometryMultiPatch:!1,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!0},layerGeometry:{esriGeometryPoint:!0,esriGeometryMultiPatch:!0,esriGeometryMultipoint:!0,esriGeometryPolyline:!0,esriGeometryPolygon:!0,esriGeometryEnvelope:!1}},g={esriSpatialRelIntersects:()=>Promise.all([i.e(3661),i.e(1878),i.e(9117),i.e(3299),i.e(7360)]).then(i.bind(i,55284)),esriSpatialRelContains:()=>Promise.all([i.e(3661),i.e(1878),i.e(9117),i.e(3299),i.e(1867)]).then(i.bind(i,29127)),esriSpatialRelCrosses:()=>Promise.all([i.e(3661),i.e(1878),i.e(9117),i.e(3299),i.e(9700)]).then(i.bind(i,85672)),esriSpatialRelDisjoint:()=>Promise.all([i.e(3661),i.e(1878),i.e(9117),i.e(3299),i.e(1598)]).then(i.bind(i,7978)),esriSpatialRelEnvelopeIntersects:null,esriSpatialRelIndexIntersects:null,esriSpatialRelOverlaps:()=>Promise.all([i.e(3661),i.e(1878),i.e(9117),i.e(3299),i.e(1414)]).then(i.bind(i,46178)),esriSpatialRelTouches:()=>Promise.all([i.e(3661),i.e(1878),i.e(9117),i.e(3299),i.e(2503)]).then(i.bind(i,83547)),esriSpatialRelWithin:()=>Promise.all([i.e(3661),i.e(1878),i.e(9117),i.e(3299),i.e(9265)]).then(i.bind(i,85445)),esriSpatialRelRelation:null};async function x(e,t,i){if((0,a.Bi)(t)){if("esriGeometryPoint"===i&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e)){const e=(0,p.Ye)(t,!1,!1);return t=>l(e,t)}if("esriGeometryMultipoint"===i){const i=(0,p.Ye)(t,!1,!1);if("esriSpatialRelContains"===e)return e=>u(i,e)}}if((0,a.ZC)(t)){if("esriGeometryPoint"===i&&("esriSpatialRelIntersects"===e||"esriSpatialRelContains"===e))return e=>(0,s.qz)(t,(0,f.pL)(i,e));if("esriGeometryMultipoint"===i&&"esriSpatialRelContains"===e)return e=>(0,s.rL)(t,(0,f.pL)(i,e));if("esriSpatialRelIntersects"===e){const e="mesh"===(n=i)?r.xB:(0,r.xK)(n);return n=>e(t,(0,f.pL)(i,n))}}var n;"esriSpatialRelEnvelopeIntersects"===e&&(e="esriSpatialRelIntersects");const o=await function(e){const t=g[e];if(null==t)throw new Error(`Cannot load unsupported spatial operator: ${e}`);return t()}(e);return e=>o.execute(t,(0,f.pL)(i,e))}async function F(e,t,i){const{spatialRel:s,geometry:r}=e;if(r){if(null==(l=s)||!0!==y.spatialRelationship[l])throw new n.A(m,"Unsupported query spatial relationship",{query:e});if((0,o.fn)(r.spatialReference)&&(0,o.fn)(i)){if(!function(e){return null!=e&&!0===y.queryGeometry[(0,a.$B)(e)]}(r))throw new n.A(m,"Unsupported query geometry type",{query:e});if(!function(e){return null!=e&&!0===y.layerGeometry[e]}(t))throw new n.A(m,"Unsupported layer geometry type",{query:e});if(e.outSR)return(0,h.Nk)(e.geometry?.spatialReference,e.outSR)}}var l}function _(e){if((0,a.ZC)(e))return!0;if((0,a.Bi)(e)){for(const t of e.rings){if(5!==t.length)return!1;if(t[0][0]!==t[1][0]||t[0][0]!==t[4][0]||t[2][0]!==t[3][0]||t[0][1]!==t[3][1]||t[0][1]!==t[4][1]||t[1][1]!==t[2][1])return!1}return!0}return!1}},62815:(e,t,i)=>{i.d(t,{N:()=>a});var n=i(86211),s=i(73941),r=i(21325);function a(e,t,i){if(null==t||null==i||i.vcsWkid||(0,r.aI)(t,i)||(0,s.xP)(t)||(0,s.xP)(i))return null;const a=(0,n.G9)(t)/(0,n.G9)(i);if(1===a)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,a);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e)for(const i of e.paths)for(const e of i)e.length>2&&(e[2]*=t)}(e,a);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e)for(const i of e.rings)for(const e of i)e.length>2&&(e[2]*=t)}(e,a);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(const i of e.points)i.length>2&&(i[2]*=t)}(e,a);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,a);default:return null}}},69052:(e,t,i)=>{i.d(t,{hr:()=>s,ie:()=>l,uC:()=>o});var n=i(34727);class s{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,i=!1){return r(this.range,this.min,this.max,e,t,i)}clamp(e,t=0){return(0,n.qE)(e-t,this.min,this.max)+t}monotonic(e,t,i){return e<t?t:t+a(this.range,e-t,i)}minimalMonotonic(e,t,i){return r(this.range,e,e+this.range,t,i)}center(e,t,i){return t=this.monotonic(e,t,i),this.normalize((e+t)/2,i)}diff(e,t,i){return this.monotonic(e,t,i)-e}shortestSignedDiff(e,t){e=this.normalize(e);const i=(t=this.normalize(t))-e,n=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(i)<Math.abs(n)?i:n}contains(e,t,i){return t=this.minimalMonotonic(e,t),(i=this.minimalMonotonic(e,i))>e&&i<t}}function r(e,t,i,n,s=0,r=!1){return(n-=s)<t?n+=a(e,t-n):n>i&&(n-=a(e,n-i)),r&&n===i&&(n=t),n+s}function a(e,t,i=0){return Math.ceil((t-i)/e)*e+i}const o=new s(0,2*Math.PI),l=(new s(-Math.PI,Math.PI),new s(0,360))},70328:(e,t,i)=>{i.d(t,{BI:()=>F,DC:()=>d,Ej:()=>f,Ie:()=>g,Jt:()=>x,Ne:()=>h,RF:()=>c,aI:()=>v,fA:()=>a,gE:()=>l,hZ:()=>y,iT:()=>p,is:()=>_,qv:()=>w,vI:()=>m,vY:()=>o,v_:()=>S,vt:()=>r,w1:()=>u});var n=i(5443),s=(i(19419),i(4197));function r(e=S){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t,i,n,s,a,o=r()){return o[0]=e,o[1]=t,o[2]=i,o[3]=n,o[4]=s,o[5]=a,o}function o(e,t=r()){return function(e,t,i,n=r()){return y(n,w),function(e,t,i=0,n=t.length/3){let s=e[0],r=e[1],a=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<n;e++)s=Math.min(s,t[i+3*e]),r=Math.min(r,t[i+3*e+1]),a=Math.min(a,t[i+3*e+2]),o=Math.max(o,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),u=Math.max(u,t[i+3*e+2]);e[0]=s,e[1]=r,e[2]=a,e[3]=o,e[4]=l,e[5]=u}(n,e,t,i),n}(e,0,e.length/3,t)}function l(e,t=(0,s.jh)(24)){const[i,n,r,a,o,l]=e;return t[0]=i,t[1]=n,t[2]=r,t[3]=i,t[4]=n,t[5]=l,t[6]=i,t[7]=o,t[8]=r,t[9]=i,t[10]=o,t[11]=l,t[12]=a,t[13]=n,t[14]=r,t[15]=a,t[16]=n,t[17]=l,t[18]=a,t[19]=o,t[20]=r,t[21]=a,t[22]=o,t[23]=l,t}function u(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new n.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function p(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function f(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function h(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function m(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function g(e){return e?y(e,w):r(w)}function x(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function F(e,t,i,n,s){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=n,e[4]=s,e[5]=Number.POSITIVE_INFINITY,e}function _(e){return 6===e.length}function v(e,t,i){if(null==e||null==t)return e===t;if(!_(e)||!_(t))return!1;if(i){for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const w=[1/0,1/0,1/0,-1/0,-1/0,-1/0],S=[0,0,0,0,0,0];r()},80754:(e,t,i)=>{i.d(t,{j7:()=>a,kS:()=>l,kd:()=>o,r8:()=>u});var n=i(82799),s=i(16930),r=i(65864);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function o(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const i=u(e);for(const e of i)for(const i of e)i[0]+=t;return e}function u(e){return(0,r.Bi)(e)?e.rings:e.paths}},86420:(e,t,i)=>{i.d(t,{I:()=>r,W:()=>s});var n=i(21818);async function s(e,t){if(!e)return null;const i=t.featureAdapter,{startTimeField:s,endTimeField:r}=e;let a=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY;if(s&&r)await t.forEach(e=>{const t=i.getAttribute((0,n.zI)(e),s),l=i.getAttribute((0,n.zI)(e),r);null==t||isNaN(t)||(a=Math.min(a,t)),null==l||isNaN(l)||(o=Math.max(o,l))});else{const e=s||r;await t.forEach(t=>{const s=i.getAttribute((0,n.zI)(t),e);null==s||isNaN(s)||(a=Math.min(a,s),o=Math.max(o,s))})}return{start:a,end:o}}function r(e,t,i){if(!t||!e)return null;const{startTimeField:n,endTimeField:s}=e;if(!n&&!s)return null;const{start:r,end:a}=t;if(null===r&&null===a)return null;if(void 0===r&&void 0===a)return()=>!1;const o=i.getAttributeAsTimestamp?.bind(i)??i.getAttribute.bind(i);return n&&s?function(e,t,i,n,s){return null!=n&&null!=s?r=>{const a=e(r,t),o=e(r,i);return(null==a||a<=s)&&(null==o||o>=n)}:null!=n?t=>{const s=e(t,i);return null==s||s>=n}:null!=s?i=>{const n=e(i,t);return null==n||n<=s}:void 0}(o,n,s,r,a):function(e,t,i,n){return null!=i&&null!=n&&i===n?n=>e(n,t)===i:null!=i&&null!=n?s=>{const r=e(s,t);return null!=r&&r>=i&&r<=n}:null!=i?n=>{const s=e(n,t);return null!=s&&s>=i}:null!=n?i=>{const s=e(i,t);return null!=s&&s<=n}:void 0}(o,n||s,r,a)}},91218:(e,t,i)=>{i.r(t),i.d(t,{canProjectWithoutEngine:()=>k,initializeProjection:()=>$,isEqualBaseGCS:()=>L,isLoaded:()=>z,isLoadedOrLoad:()=>C,isLoadedOrLoadFor:()=>B,load:()=>O,project:()=>q,projectExtent:()=>ie,projectMany:()=>G,projectMultipoint:()=>W,projectOrLoad:()=>P,projectOrLoadMany:()=>E,projectPoint:()=>H,projectPolygon:()=>ee,projectPolyline:()=>Y,projectWithZConversion:()=>Q,projectWithoutEngine:()=>U,requiresLoad:()=>N,test:()=>V,tryProjectWithZConversion:()=>Z,unload:()=>D});var n=i(49186),s=i(74887),r=i(62788),a=i(95488),o=i(51850),l=i(21276),u=i(73941),c=i(5443),d=i(91075),p=i(48526),f=i(86738),h=i(39829),m=i(82799),y=i(16930),g=i(159),x=i(9762),F=i(37539);function _(e,t,i,n,s,r){return v[0]=e,v[1]=t,v[2]=i,(0,x.projectBuffer)(v,n,0,s,r,0)}const v=(0,o.vt)();var w=i(21325),S=i(62815);let I=null,R=null,T=null,M=null,b={};const A=new a.I;function z(){return!!(R?.isLoaded()&&T?.isLoaded()&&M?.isLoaded())}function C(){return!!z()||((0,r.gc)(A),O(),!1)}function B(e,t){return!e||!t||k(e,t)||C()}function N(e,t){return!k(e,t)&&!z()}async function O(e){null==I&&(I=Promise.all([i.e(3276).then(i.bind(i,83276)).then(e=>(R=e,R.load())),i.e(8377).then(i.bind(i,8377)).then(e=>(T=e,T.load())),i.e(2158).then(i.bind(i,12158)).then(e=>(M=e,M.load()))])),await I,(0,s.Te)(e),A.notify()}function q(e,t,i){return Array.isArray(e)?0===e.length?[]:((0,l.H)(e),G(e,e[0].spatialReference,t,i)):((0,l.f)(e),G([e],e.spatialReference,t,i)[0])}function G(e,t,i,n){if(null==t||null==i)return e;if(k(t,i,n))return e.map(e=>U(e,t,i));if(null==n?.geographicTransformation&&(0,u.jA)(t))return e.map(e=>U(e,t,y.A.WGS84)).map(e=>Z(e,i));if(null==n?.geographicTransformation&&(0,u.jA)(i))return e.map(e=>Z(e,y.A.WGS84)).map(e=>U(e,y.A.WGS84,i));if(!z())throw new j;if(!n?.geographicTransformation)if(n?.extendedParams)n={...n,geographicTransformation:M.getTransformation(t,i,n.areaOfInterestExtent)||new g.A};else if(!n?.areaOfInterestExtent){const e=function(e,t){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",t.wkid?.toString()??"-1",t.wkt?.toString()??"",t.wkt2?.toString()??""].join()}(t,i);let s=b[e];s||(s=M.getTransformation(t,i)||new g.A,b[e]=s),n={geographicTransformation:s}}return e[0].spatialReference||(e[0].spatialReference=t),e[0]instanceof d.A?R.executeMany(e,i,n):T.executeMany(e,i,n)}function P(e,t){const i=E([e],t);return null!=i.pending?{pending:i.pending,geometry:null}:null!=i.geometries?{pending:null,geometry:i.geometries[0]}:{pending:null,geometry:null}}function E(e,t){if(!z())for(const i of e)if(null!=i&&!(0,w.aI)(i.spatialReference,t)&&(0,w.fn)(i.spatialReference)&&(0,w.fn)(t)&&!k(i.spatialReference,t))return(0,r.gc)(A),{pending:O(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,w.aI)(e.spatialReference,t)?e:(0,w.fn)(e.spatialReference)&&(0,w.fn)(t)?Z(e,t):null)}}class j extends n.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function D(){I=null,R=null,T=null,M=null,b={}}const V={get loadPromise(){return I}};function Z(e,t){try{const i=q(e,t);if(null==i)return null;"xmin"in e&&"xmin"in i&&(i.zmin=e.zmin,i.zmax=e.zmax);const n=(0,S.N)(i.type,e.spatialReference,t);return null!=n&&n(i),i}catch(e){if(!(e instanceof j))throw e;return null}}async function Q(e,t,i){const n=e.spatialReference;return null!=n&&null!=t&&await $(n,t,null,i),Z(e,t)}function k(e,t,i){return!(i?.areaOfInterestExtent||i?.extendedParams||i?.geographicTransformation)&&(!!(0,w.aI)(e,t)||(0,w.fn)(e)&&(0,w.fn)(t)&&!!(0,F.jd)(e,t))}function L(e,t){if((0,w.aI)(e,t))return!0;if(!(0,w.fn)(e)||!(0,w.fn)(t))return!1;const i=(0,w.oT)(e)||(0,w.K8)(e)||(0,w.x1)(e),n=(0,w.oT)(t)||(0,w.K8)(t)||(0,w.x1)(t);return i&&n}async function $(e,t,i,n){if(z())return(0,s.NO)(n);if(Array.isArray(e)){for(const{source:t,dest:i,options:s}of e)if(t&&i&&!k(t,i,s))return O(n)}else if(e&&t&&!k(e,t,i))return O(n);return(0,s.NO)(n)}function U(e,t,i){return e?"x"in e?J(e,t,new f.A,i,0):"xmin"in e?ne(e,t,new c.A,i,0):"rings"in e?te(e,t,new h.A,i,0):"paths"in e?X(e,t,new m.A,i,0):"points"in e?K(e,t,new p.A,i,0):null:null}function H(e,t,i=t.spatialReference,n=0){return null!=i&&null!=e.spatialReference&&null!=J(e,e.spatialReference,t,i,n)}function J(e,t,i,n,s){re[0]=e.x,re[1]=e.y;const r=e.z;return re[2]=void 0!==r?r:s,(0,x.projectBuffer)(re,t,0,re,n,0)?(i.x=re[0],i.y=re[1],i.spatialReference=n,void 0!==r||(0,u.xP)(n)?(i.z=re[2],i.hasZ=!0):(i.z=void 0,i.hasZ=!1),void 0===e.m?(i.m=void 0,i.hasM=!1):(i.m=e.m,i.hasM=!0),i):null}function W(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=K(e,e.spatialReference,t,i,n)}function K(e,t,i,n,s){const{points:r,hasZ:a,hasM:o}=e,l=[],c=r.length,d=[];for(const e of r)d.push(e[0],e[1],a?e[2]:s);if(!(0,x.projectBuffer)(d,t,0,d,n,0,c))return null;const p=a||(0,u.xP)(n);for(let e=0;e<c;++e){const t=3*e,i=d[t],n=d[t+1];p&&o?l.push([i,n,d[t+2],r[e][3]]):p?l.push([i,n,d[t+2]]):o?l.push([i,n,r[e][2]]):l.push([i,n])}return i.points=l,i.spatialReference=n,i.hasZ=a,i.hasM=o,i}function Y(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=X(e,e.spatialReference,t,i,n)}function X(e,t,i,n,s){const{paths:r,hasZ:a,hasM:o}=e,l=[];if(!se(r,a??!1,o??!1,t,l,n,s))return null;const c=a||(0,u.xP)(n);return i.paths=l,i.spatialReference=n,i.hasZ=c,i.hasM=o,i}function ee(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=te(e,e.spatialReference,t,i,n)}function te(e,t,i,n,s){const{rings:r,hasZ:a,hasM:o}=e,l=[];if(!se(r,a??!1,o??!1,t,l,n,s))return null;const c=a||(0,u.xP)(n);return i.rings=l,i.spatialReference=n,i.hasZ=c,i.hasM=o,i}function ie(e,t,i=t.spatialReference,n=0){return null!=e.spatialReference&&null!=i&&null!=ne(e,e.spatialReference,t,i,n)}function ne(e,t,i,n,s){const{xmin:r,ymin:a,xmax:o,ymax:l,hasZ:c,hasM:d}=e;if(!_(r,a,c?e.zmin:s,t,re,n))return null;const p=c||(0,u.xP)(n);return i.xmin=re[0],i.ymin=re[1],p&&(i.zmin=re[2]),_(o,l,c?e.zmax:s,t,re,n)?(i.xmax=re[0],i.ymax=re[1],p&&(i.zmax=re[2]),d&&(i.mmin=e.mmin,i.mmax=e.mmax),i.spatialReference=n,i):null}function se(e,t,i,n,s,r,a=0){const o=new Array;for(const i of e)for(const e of i)o.push(e[0],e[1],t?e[2]:a);if(!(0,x.projectBuffer)(o,n,0,o,r,0))return!1;let l=0;s.length=0;const c=t||(0,u.xP)(r);for(const t of e){const e=new Array;for(const n of t)c&&i?e.push([o[l++],o[l++],o[l++],n[3]]):c?e.push([o[l++],o[l++],o[l++]]):i?(e.push([o[l++],o[l++],n[2]]),l++):(e.push([o[l++],o[l++]]),l++);s.push(e)}return!0}const re=(0,o.vt)()},92300:(e,t,i)=>{i.d(t,{V:()=>r,X:()=>s});var n=i(65864);function s(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function r(e,t,i){const s=(0,n.xD)(t);return e.map(e=>{const t=s.fromJSON(e);return t.spatialReference=i,t})}},95466:(e,t,i)=>{i.d(t,{A:()=>f});var n=i(49186),s=i(53966),r=i(91869),a=i(3330),o=i(12195),l=i(30524),u=i(98623),c=i(56400),d=i(28097);const p=new Map;class f{static fromJSON(e){return new f(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new f(e.fields??[],g(e))}static fromLayerJSON(e){return new f(e.fields??[],g(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const i=[];for(const e of this.fields){const t=e?.name,n=m(t);if(t&&n){const s=h(t);this._fieldsMap.set(t,e),this._fieldsMap.set(s,e),this._normalizedFieldsMap.set(n,e),i.push(`${s}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.te)(e)||(0,l.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}i.sort(),this.uid=i.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.te)(e)||(0,l.Xz)(e)||e.nullable||void 0!==(0,l.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(h(e))??this._normalizedFieldsMap.get(m(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(s.A.getLogger("esri.layers.support.FieldsIndex").errorOnce(new n.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),u.n$):y.has(t.type)?u.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===u.L5?a.GB.instance:t===u.n$?d.mQ.utcInstance:(0,r.tE)(p,t,()=>d.oh.create(t)):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map(e=>(0,o.W)(e)?e.toJSON():e),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function h(e){return e.trim().toLowerCase()}function m(e){return(0,l.rS)(e)?.toLowerCase()??""}const y=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function g(e){const t=new Map;if(!e.fields)return t;const i=!0===e.datesInUnknownTimezone,{timeInfo:n,editFieldsInfo:s}=e,r=(n?"startField"in n?n.startField:n.startTimeField:"")??"",a=(n?"endField"in n?n.endField:n.endTimeField:"")??"",o=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,l=s?function(e){return"timeZone"in e}(s)?s.timeZone??o:s.dateFieldsTimeReference?(0,c.ZS)(s.dateFieldsTimeReference):o??u.n$:null,d=n?function(e){return"timeZone"in e}(n)?n.timeZone??o:n.timeReference?(0,c.ZS)(n.timeReference):o:null,p=new Map([[h(s?.creationDateField??""),l],[h(s?.editDateField??""),l],[h(r),d],[h(a),d]]);for(const{name:n,type:s}of e.fields)if(y.has(s))t.set(n,u.L5);else if("date"!==s&&"esriFieldTypeDate"!==s)t.set(n,null);else if(i)t.set(n,u.L5);else{const e=p.get(h(n??""))??o;t.set(n,e)}return t}},99157:(e,t,i)=>{i.d(t,{A:()=>o});var n,s=i(31635),r=i(69622),a=i(91429);let o=n=class extends r.A{constructor(e){super(e),this.isInverse=!1,this.wkt=null,this.wkid=null}getInverse(){return new n({isInverse:!this.isInverse,wkid:this.wkid,wkt:this.wkt})}};(0,s.Cg)([(0,a.MZ)()],o.prototype,"isInverse",void 0),(0,s.Cg)([(0,a.MZ)()],o.prototype,"wkt",void 0),(0,s.Cg)([(0,a.MZ)()],o.prototype,"wkid",void 0),o=n=(0,s.Cg)([(0,a.$K)("esri.geometry.operators.support.GeographicTransformationStep")],o)},99352:(e,t,i)=>{i.d(t,{F:()=>n,P:()=>s});const n={supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,standardMaxRecordCount:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},s={supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,3169,4815,8125],{24815:(e,t,n)=>{n.d(t,{execute:()=>r.e}),n(96027),n(78125);var r=n(83587)},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class o extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>C,fromGeometry:()=>G,fromMultipoint:()=>M,fromPoint:()=>v,fromPolygon:()=>V,fromPolyline:()=>w,fromSpatialReference:()=>P,getSpatialReference:()=>x,toExtent:()=>d,toGeometry:()=>R,toMultipoint:()=>Z,toPoint:()=>E,toPolygon:()=>_,toPolyline:()=>S});var r=n(83661),o=(n(79187),n(55537)),a=n(95213),s=n(88885),u=n(39117),i=n(5443),c=n(48526),l=n(86738),m=n(39829),f=n(82799),h=(n(90293),n(83299));const p="_gxVersion",y=2,g=1;function x(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function G(e){switch(e.type){case"point":return v(e);case"multipoint":return M(e);case"polyline":return w(e);case"polygon":return V(e);case"extent":return C(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function C(e){if(!e.getCacheValue(p)){const t=new a.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(y,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(g,0,e.zmin,e.zmax),e.setCacheValue(p,t)}return e.getCacheValue(p)}function M(e){if(!e.getCacheValue(p)){const t=new s.M,n=new a.P,r=e.points,o=e.hasM,u=e.hasZ,i=u?3:2;for(let e=0,a=r.length;e<a;e++){const a=r[e];n.setXYCoords(a[0],a[1]),u&&n.setZ(a[2]??0),o&&n.setM(a[i]??NaN),t.add(n)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function v(e){if(!e.getCacheValue(p)){const t=new a.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(p,t)}return e.getCacheValue(p)}function V(e){if(!e.getCacheValue(p)){const{curveRings:t,hasM:n,hasZ:r,rings:o}=e,a=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:o});e.setCacheValue(p,a)}return e.getCacheValue(p)}function w(e){if(!e.getCacheValue(p)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,a=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(p,a)}return e.getCacheValue(p)}function P(e){if(e.wkid)return(0,u.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,u.b)(t):null}function R(e,t){if(e)switch(e.getGeometryType()){case o.G.enumPoint:return E(e,t);case o.G.enumEnvelope:return d(e,t);case o.G.enumMultiPoint:return Z(e,t);case o.G.enumPolyline:return S(e,t);case o.G.enumPolygon:return _(e,t)}return null}function d(e,t){if(e.isEmpty())return null;const n=new i.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(y,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(g,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(p,e),n}function Z(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),o=n.hasZ(),s=[],u=new a.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,u);const n=[u.getX(),u.getY()];o&&n.push(u.getZ()),r&&n.push(u.getM()),s.push(n)}const i=new c.A({hasM:r,hasZ:o,points:s,spatialReference:t});return i.setCacheValue(p,e),i}function E(e,t){if(e instanceof r.P)return new l.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new l.A({x:e.getX(),y:e.getY(),spatialReference:t}),o=e.getDescription();return o.hasM()&&(n.m=e.getM()),o.hasZ()&&(n.z=e.getZ()),n.setCacheValue(p,e),n}function _(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}function S(e,t){if(e.isEmpty())return null;const n=f.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}},83587:(e,t,n)=>{n.d(t,{c:()=>u,e:()=>a});var r=n(96027),o=n(78125);function a(e,t){const n=(0,o.getSpatialReference)(e),a=(0,o.fromExtent)(t).asEnvelope2D();return(0,o.toGeometry)((0,r.g7)((0,o.fromGeometry)(e),a,(0,o.fromSpatialReference)(n)),n)}const s=(0,r.fz)(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:a,executeMany:function(e,t){const n=e.map(o.fromGeometry),a=(0,o.getSpatialReference)(e),s=(0,o.fromExtent)(t).asEnvelope2D();return(0,r.zo)(n,s,(0,o.fromSpatialReference)(a)).map(e=>(0,o.toGeometry)(e,a))},supportsCurves:s},Symbol.toStringTag,{value:"Module"}))},96027:(e,t,n)=>{n.d(t,{fz:()=>u,g7:()=>a,zo:()=>s});var r=n(76061);const o=new(n(31139).O);function a(e,t,n){return o.execute(e,t,n,null)}function s(e,t,n){const a=o.executeMany(new r.S(e),t,n,null);return Array.from(a)}function u(){return o.supportsCurves()}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4575,6956],{5834:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(31635),r=n(93637),s=n(91429),o=n(56507),a=n(41266),l=n(41366),u=n(93223);function p(e,t,n){(0,r.sM)(n,e instanceof Date?e.getTime():e,t)}let c=class extends((0,l.K)(a.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],c.prototype,"numBins",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:p}}})],c.prototype,"end",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:p}}})],c.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,i.Cg)([(0,s.$K)("esri.rest.support.AutoIntervalBinParameters")],c),c.from=(0,o.dp)(c)},11440:(e,t,n)=>{n.d(t,{A:()=>u});var i=n(31635),r=n(93637),s=n(91429),o=n(56507),a=n(41266),l=n(93223);let u=class extends a.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,n){(0,r.sM)(n,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],u.prototype,"boundaries",void 0),(0,i.Cg)([(0,l.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,s.$K)("esri.rest.support.FixedBoundariesBinParameters")],u),u.from=(0,o.dp)(u)},14575:(e,t,n)=>{n.d(t,{default:()=>b});var i=n(31635),r=n(69540),s=n(66552),o=n(25482),a=n(53966),l=n(91429),u=n(56507),p=n(16930),c=n(65864),y=n(50498),m=n(58727),d=n(5834),f=n(41266),h=n(59977),g=n(11440),v=n(60909),w=n(77696),x=n(58174),M=n(7562),S=n(79677),A=n(56400),C=n(93223);const B=new s.J({asc:"ascending",desc:"descending"}),j={base:f.A,key:"type",typeMap:{"auto-interval":d.A,date:h.A,"fixed-boundaries":g.A,"fixed-interval":v.A}};let b=class extends((0,w.y)((0,r.OU)(o.o))){constructor(e){super(e),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.timeExtent=null,this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(e){this._set("outTimeZone",e),e&&!(0,A.wr)(e)&&a.A.getLogger(this).warn("#outTimeZone",`the parsed value '${e}' may not be a valid IANA time zone`)}};(0,i.Cg)([(0,l.MZ)({types:j,json:{name:"bin",write:!0}})],b.prototype,"binParameters",void 0),(0,i.Cg)([(0,C.e)(B)],b.prototype,"binOrder",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],b.prototype,"cacheHint",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],b.prototype,"datumTransformation",void 0),(0,i.Cg)([(0,l.MZ)({type:p.A,json:{name:"defaultSR",write:!0}})],b.prototype,"defaultSpatialReference",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],b.prototype,"distance",void 0),(0,i.Cg)([(0,l.MZ)({types:y.yR,json:{read:c.rS,write:!0}})],b.prototype,"geometry",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],b.prototype,"lowerBoundaryAlias",void 0),(0,i.Cg)([(0,l.MZ)({type:p.A,json:{name:"outSR",write:!0}})],b.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,l.MZ)({type:[M.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],b.prototype,"outStatistics",void 0),(0,i.Cg)([(0,l.MZ)({value:null,json:{name:"outTimeReference",read:{reader:e=>e.ianaTimeZone},write:{writer:(e,t,n)=>{e&&(t[n]={ianaTimeZone:e})}}}})],b.prototype,"outTimeZone",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],b.prototype,"returnDistinctValues",void 0),(0,i.Cg)([(0,C.e)(x.x,{name:"spatialRel"})],b.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,l.MZ)({type:S.A,json:{write:!0}})],b.prototype,"timeExtent",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],b.prototype,"upperBoundaryAlias",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:m.VY.read,write:{writer:m.VY.write,overridePolicy(e){return{enabled:null!=e&&null!=this.distance}}}}})],b.prototype,"units",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],b.prototype,"where",void 0),b=(0,i.Cg)([(0,l.$K)("esri.rest.support.AttributeBinsQuery")],b),b.from=(0,u.dp)(b)},17136:(e,t,n)=>{n.d(t,{Y_:()=>b,O7:()=>B,el:()=>C});var i=n(92602),r=n(69052),s=n(49186),o=n(53966),a=n(39829),l=n(82799),u=n(16930),p=n(80754),c=n(21325),y=n(28735),m=n(11254),d=n(65864),f=n(2272),h=n(84952),g=n(92300);const v=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function w(e){return"polygon"===e[0].type}function x(e){return"polyline"===e[0].type}function M(e,t,n){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw v().error(e),new s.A("internal:geometry",e)}const n=(0,p.r8)(e),i=[];for(const e of n){const n=[];i.push(n),n.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const r=e[i][0],s=e[i][1],o=e[i+1][0],a=e[i+1][1],l=Math.sqrt((o-r)*(o-r)+(a-s)*(a-s)),u=(a-s)/l,p=(o-r)/l,c=l/t;if(c>1){for(let e=1;e<=c-1;e++){const i=e*t,o=p*i+r,a=u*i+s;n.push([o,a])}const e=(l+Math.floor(c-1)*t)/2,i=p*e+r,o=u*e+s;n.push([i,o])}n.push([o,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:i,spatialReference:e.spatialReference}):new l.A({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,y.ci)(t,!0)}return n&&(e=(0,p.kS)(e,n)),e}function S(e,t,n){if(Array.isArray(e)){const i=e[0];if(i>t){const n=(0,p.kd)(i,t);e[0]=i+n*(-2*t)}else if(i<n){const t=(0,p.kd)(i,n);e[0]=i+t*(-2*n)}}else{const i=e.x;if(i>t){const n=(0,p.kd)(i,t);e=e.clone().offset(n*(-2*t),0)}else if(i<n){const t=(0,p.kd)(i,n);e=e.clone().offset(t*(-2*n),0)}}return e}function A(e,t){let n=-1;for(let i=0;i<t.cutIndexes.length;i++){const r=t.cutIndexes[i],s=t.geometries[i],o=(0,p.r8)(s);for(let e=0;e<o.length;e++){const t=o[e];t.some(n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const i=t[e][0];n=i>n?i:n}n=Number(n.toFixed(9));const i=-360*(0,p.kd)(n,180);for(let n=0;n<t.length;n++){const t=s.getPoint(e,n);s.setPoint(e,n,t.clone().offset(i,0))}return!0}})}if(r===n){if(w(e))for(const t of(0,p.r8)(s))e[r]=e[r].addRing(t);else if(x(e))for(const t of(0,p.r8)(s))e[r]=e[r].addPath(t)}else n=r,e[r]=s}return e}async function C(e,t,n){if(!Array.isArray(e))return C([e],t);t&&"string"!=typeof t&&v().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof t?t:t?.url??i.A.geometryServiceUrl;let s,o,u,w,x,B,j,b,R=0;const Z=[],T=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,o=(0,c.Vp)(s),u=s.isWebMercator,B=u?102100:4326,w=p.j7[B].maxX,x=p.j7[B].minX,j=p.j7[B].plus180Line,b=p.j7[B].minus180Line),o)if("mesh"===t.type)T.push(t);else if("point"===t.type)T.push(S(t.clone(),w,x));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>S(e,w,x)),T.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,o);T.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,n=(0,p.kd)(e.xmin,x)*(2*w);let i=0===n?t.clone():(0,p.kS)(t.clone(),n);e.offset(n,0);let{xmin:r,xmax:s}=e;r=Number(r.toFixed(9)),s=Number(s.toFixed(9)),e.intersects(j)&&s!==w?(R=s>R?s:R,i=M(i,u),Z.push(i),T.push("cut")):e.intersects(b)&&r!==x?(R=s*(2*w)>R?s*(2*w):R,i=M(i,u,360),Z.push(i),T.push("cut")):T.push(i)}else T.push(t.clone());else T.push(t);else T.push(t);let k=(0,p.kd)(R,w),F=-90;const O=k,D=new l.A;for(;k>0;){const e=360*k-180;D.addPath([[e,F],[e,-1*F]]),F*=-1,k--}if(Z.length>0&&O>0){const t=A(Z,await async function(e,t,n,i){const r=(0,f.Dl)(e),s=t[0].spatialReference,o={...i,responseType:"json",query:{...r.query,f:"json",sr:(0,c.YX)(s),target:JSON.stringify({geometryType:(0,d.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},a=await(0,m.A)(r.path+"/cut",o),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map(e=>{const t=(0,d.rS)(e);return t.spatialReference=s,t})}}(r,Z,D,n)),i=[],s=[];for(let n=0;n<T.length;n++){const r=T[n];if("cut"!==r)s.push(r);else{const r=t.shift(),o=e[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&r.rings.length>=o.rings.length?(i.push(r),s.push("simplify")):s.push(u?(0,y.Gh)(r):r)}}if(!i.length)return s;const o=await async function(e,t,n){const i="string"==typeof e?(0,h.An)(e):e,r=t[0].spatialReference,s=(0,d.$B)(t[0]),o={...n,query:{...i.query,f:"json",sr:(0,c.YX)(r),geometries:JSON.stringify((0,g.X)(t))}},{data:a}=await(0,m.A)(i.path+"/simplify",o);return(0,g.V)(a.geometries,s,r)}(r,i,n),a=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?a.push(t):a.push(u?(0,y.Gh)(o.shift()):o.shift())}return a}const I=[];for(let e=0;e<T.length;e++){const t=T[e];if("cut"!==t)I.push(t);else{const e=Z.shift();I.push(!0===u?(0,y.Gh)(e):e)}}return I}function B(e,t,n){const i=(0,c.Vp)(n);if(null==i)return e;const[r,s]=i.valid,o=2*s;let a=0,l=0;t>s?a=Math.ceil(Math.abs(t-s)/o):t<r&&(a=-Math.ceil(Math.abs(t-r)/o)),e>s?l=Math.ceil(Math.abs(e-s)/o):e<r&&(l=-Math.ceil(Math.abs(e-r)/o));let u=e+(a-l)*o;const p=u-t;return p>s?u-=o:p<r&&(u+=o),u}function j(e){const t=(0,c.Vp)(e);if(null==t)return null;const[n,i]=t.valid;return new r.hr(n,i)}const b=j(u.A.WGS84);j(u.A.WebMercator)},31464:(e,t,n)=>{n.d(t,{Cv:()=>f,Nk:()=>y,lK:()=>g});var i=n(4576),r=n(74887),s=n(91218),o=n(21325),a=n(28735);const l=[0,0];function u(e,t){if(!t)return null;if("x"in t){const n={x:0,y:0};return[n.x,n.y]=e(t.x,t.y,l),null!=t.z&&(n.z=t.z),null!=t.m&&(n.m=t.m),n}if("xmin"in t){const n={xmin:0,ymin:0,xmax:0,ymax:0};return[n.xmin,n.ymin]=e(t.xmin,t.ymin,l),[n.xmax,n.ymax]=e(t.xmax,t.ymax,l),t.hasZ&&(n.zmin=t.zmin,n.zmax=t.zmax,n.hasZ=!0),t.hasM&&(n.mmin=t.mmin,n.mmax=t.mmax,n.hasM=!0),n}return"rings"in t?{rings:p(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:p(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:c(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function p(e,t){const n=[];for(const i of e)n.push(c(i,t));return n}function c(e,t){const n=[];for(const i of e){const e=t(i[0],i[1],[0,0]);n.push(e),i.length>2&&e.push(i[2]),i.length>3&&e.push(i[3])}return n}async function y(e,t){if(!e||!t)return;const n=Array.isArray(e)?e.map(e=>null!=e.geometry?e.geometry.spatialReference:null).filter(i.Ru):[e];await(0,s.initializeProjection)(n.map(e=>({source:e,dest:t})))}const m=u.bind(null,a.je),d=u.bind(null,a.tD);function f(e,t,n,i){if(!e)return null;if(n||(n=t,t=e.spatialReference),!(0,o.fn)(t)||!(0,o.fn)(n)||(0,o.aI)(t,n))return e;if((0,a.y7)(t,n)){const t=(0,o.K8)(n)?m(e):d(e);return t.spatialReference=n,t}return(0,s.projectMany)([e],t,n,i)[0]}const h=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,n,i){if(!e?.length||!t||!n||(0,o.aI)(t,n))return e;const s={geometries:e,inSpatialReference:t,outSpatialReference:n,options:i,resolve:(0,r.Tw)()};return this._jobs.push(s),this._timer??=setTimeout(this._process,10),s.resolve.promise}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:n,outSpatialReference:i,resolve:r,options:l}=e;(0,a.y7)(n,i)&&null==l?.extendedParams?(0,o.K8)(i)?r(t.map(m)):r(t.map(d)):r((0,s.projectMany)(t,n,i,l)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function g(e,t,n,i){return h.push(e,t,n,i)}},41266:(e,t,n)=>{n.d(t,{A:()=>f});var i=n(31635),r=n(69540),s=n(66552),o=n(25482),a=n(91429),l=n(56507),u=n(93223);const p=new s.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let c=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"outAlias",write:!0}})],c.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:String})],c.prototype,"responseType",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"value",void 0),(0,i.Cg)([(0,u.e)(p)],c.prototype,"valueType",void 0),c=(0,i.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsGrouping")],c);const y=c;c.from=(0,l.dp)(c);const m=new s.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),d=new s.J({naturalLog:"natural-log",squareRoot:"square-root"});let f=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],f.prototype,"expression",void 0),(0,i.Cg)([(0,u.e)(m,{name:"onExpression.valueType"})],f.prototype,"expressionValueType",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"onField",write:!0}})],f.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"firstDayOfWeek",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"hideUpperBound",void 0),(0,i.Cg)([(0,a.MZ)({type:y,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],f.prototype,"splitBy",void 0),(0,i.Cg)([(0,a.MZ)({type:y,json:{write:{target:{stackBy:{type:y},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>y.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],f.prototype,"stackBy",void 0),(0,i.Cg)([(0,u.e)(d)],f.prototype,"transformation",void 0),f=(0,i.Cg)([(0,a.$K)("esri.rest.support.BinParametersBase")],f)},57231:(e,t,n)=>{n.d(t,{g:()=>i});const i=(0,n(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"})},58727:(e,t,n)=>{n.d(t,{GC:()=>h,T2:()=>g,VY:()=>y,dO:()=>w,iJ:()=>f,v8:()=>m});var i=n(49186),r=n(66552),s=n(86211),o=n(91218),a=n(90634),l=n(65864),u=n(17136),p=n(21325),c=n(31464);const y=new r.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),m=Object.freeze({}),d="frequency";async function f(e,t,n){const i=e.bin;return i.onField&&(i.onField=i.onField.trim()),i.onExpression?.value&&(i.onExpression.value=i.onExpression.value.trim()),i.splitBy&&(i.splitBy.value&&(i.splitBy.value=i.splitBy.value.trim()),i.splitBy.outAlias&&(i.splitBy.outAlias=i.splitBy.outAlias.trim())),i.stackBy&&(i.stackBy.value&&(i.stackBy.value=i.stackBy.value.trim()),i.stackBy.outAlias&&(i.stackBy.outAlias=i.stackBy.outAlias.trim())),"normalizationField"in i.parameters&&i.parameters.normalizationField&&(i.parameters.normalizationField=i.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:d}]),h(e,t,n)}async function h(e,t,n){const{outFields:i,orderByFields:r,groupByFieldsForStatistics:s,outStatistics:o}=e;if(i)for(let e=0;e<i.length;e++)i[e]=i[e].trim();if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(o)for(let e=0;e<o.length;e++)o[e].onStatisticField&&(o[e].onStatisticField=o[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),g(e,t,n)}async function g(e,t,r){if(!e)return null;let{where:o}=e;if(e.where=o=o?.trim(),(!o||/^1 *= *1$/.test(o)||t&&t===o)&&(e.where=null),!e.geometry)return e;let d=await async function(e){const{distance:t,units:r}=e,o=e.geometry;if(null==t||"vertexAttributes"in o)return o;const a=o.spatialReference,u=r?y.fromJSON(r):(0,s.Ij)(a),m=a&&((0,p.EA)(a)||(0,p.K8)(a))?o:await(0,c.Nk)(a,p.KK).then(()=>(0,c.Cv)(o,p.KK)),d=await n.e(9159).then(n.bind(n,49159));await d.load();const f=d.execute(m,t||1,{unit:u})??void 0;if(!f||!(0,l.Bi)(f)||0===f.rings.length)throw new i.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return f}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;d=(0,a.HA)(d),d.spatialReference=t}if(d){await(0,c.Nk)(d.spatialReference,r),d=function(e,t){const n=e.spatialReference;return v(e,t)&&(0,l.ZC)(e)?{spatialReference:n,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]}:e}(d,r);const t=(await(0,u.el)((0,l.rS)(d)))[0];if(null==t)throw m;const n="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,i=n&&v(d,r)?{extendedParams:{densificationStep:8*n}}:void 0,s=t.toJSON(),o=(0,c.Cv)(s,s.spatialReference,r,i);if(!o)throw m;o.spatialReference=r,e.geometry=o}return e}function v(e,t){if(!e)return!1;const n=e.spatialReference;return((0,l.ZC)(e)||(0,l.Bi)(e)||(0,l.Rg)(e))&&!(0,p.aI)(n,t)&&!(0,o.canProjectWithoutEngine)(n,t)}function w(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}},59977:(e,t,n)=>{n.d(t,{A:()=>h});var i=n(31635),r=n(93637),s=n(91429),o=n(56507),a=n(41266),l=n(69540),u=n(25482),p=n(57231),c=n(93223);let y=class extends((0,l.OU)(u.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"number",write:!0}})],y.prototype,"value",void 0),(0,i.Cg)([(0,c.e)(p.g)],y.prototype,"unit",void 0),y=(0,i.Cg)([(0,s.$K)("esri.rest.support.DateBinTimeInterval")],y);const m=y;function d(e,t,n){(0,r.sM)(n,"string"==typeof e?e:e?.getTime(),t)}function f(e,t){const n=e.parameters[t];return n?"string"==typeof n?n:new Date(n):null}y.from=(0,o.dp)(y);let h=class extends a.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,i.Cg)([(0,s.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.end",read:{reader:(e,t)=>f(t,"end")},write:{writer:d}}})],h.prototype,"end",void 0),(0,i.Cg)([(0,s.MZ)({type:m,json:{name:"parameters",write:!0}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,s.MZ)({type:m,json:{name:"parameters.offset",write:!0}})],h.prototype,"offset",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],h.prototype,"returnFullIntervalBin",void 0),(0,i.Cg)([(0,s.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.start",read:{reader:(e,t)=>f(t,"start")},write:{writer:d}}})],h.prototype,"start",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],h.prototype,"snapToData",void 0),(0,i.Cg)([(0,c.e)({dateBin:"date"},{readOnly:!0})],h.prototype,"type",void 0),h=(0,i.Cg)([(0,s.$K)("esri.rest.support.DateBinParameters")],h),h.from=(0,o.dp)(h)},60909:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(31635),r=n(93637),s=n(91429),o=n(56507),a=n(41266),l=n(41366),u=n(93223);function p(e,t,n){(0,r.sM)(n,e instanceof Date?e.getTime():e,t)}let c=class extends((0,l.K)(a.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:p}}})],c.prototype,"end",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],c.prototype,"interval",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:p}}})],c.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,i.Cg)([(0,s.$K)("esri.rest.support.FixedIntervalBinParameters")],c),c.from=(0,o.dp)(c)},69052:(e,t,n)=>{n.d(t,{hr:()=>r,ie:()=>l,uC:()=>a});var i=n(34727);class r{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,n=!1){return s(this.range,this.min,this.max,e,t,n)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,n){return e<t?t:t+o(this.range,e-t,n)}minimalMonotonic(e,t,n){return s(this.range,e,e+this.range,t,n)}center(e,t,n){return t=this.monotonic(e,t,n),this.normalize((e+t)/2,n)}diff(e,t,n){return this.monotonic(e,t,n)-e}shortestSignedDiff(e,t){e=this.normalize(e);const n=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(n)<Math.abs(i)?n:i}contains(e,t,n){return t=this.minimalMonotonic(e,t),(n=this.minimalMonotonic(e,n))>e&&n<t}}function s(e,t,n,i,r=0,s=!1){return(i-=r)<t?i+=o(e,t-i):i>n&&(i-=o(e,i-n)),s&&i===n&&(i=t),i+r}function o(e,t,n=0){return Math.ceil((t-n)/e)*e+n}const a=new r(0,2*Math.PI),l=(new r(-Math.PI,Math.PI),new r(0,360))},80754:(e,t,n)=>{n.d(t,{j7:()=>o,kS:()=>l,kd:()=>a,r8:()=>u});var i=n(82799),r=n(16930),s=n(65864);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const n=u(e);for(const e of n)for(const n of e)n[0]+=t;return e}function u(e){return(0,s.Bi)(e)?e.rings:e.paths}},92300:(e,t,n)=>{n.d(t,{V:()=>s,X:()=>r});var i=n(65864);function r(e){return{geometryType:(0,i.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,n){const r=(0,i.xD)(t);return e.map(e=>{const t=r.fromJSON(e);return t.spatialReference=n,t})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[566,9958],{29958:(t,e,o)=>{o.d(e,{default:()=>j});var i=o(31635),r=o(69540),s=o(25482),n=o(91429),a=o(56507),p=o(16930),l=o(65864),u=o(50498),d=o(66552),v=o(7562),y=o(93223);const c=new d.J({asc:"ascending",desc:"descending"});let g=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.fieldName=void 0,this.fieldOrder=void 0,this.outStatistic=void 0,this.type="pivot"}};(0,i.Cg)([(0,n.MZ)({type:String,json:{name:"pivotParameters.pivotFieldName",write:!0}})],g.prototype,"fieldName",void 0),(0,i.Cg)([(0,y.e)(c,{name:"pivotParameters.pivotFieldOrder"})],g.prototype,"fieldOrder",void 0),(0,i.Cg)([(0,n.MZ)({type:v.A,json:{name:"pivotParameters.outStatistic",write:!0}})],g.prototype,"outStatistic",void 0),(0,i.Cg)([(0,y.e)({Pivot:"pivot"},{name:"pivotType",readOnly:!0})],g.prototype,"type",void 0),g=(0,i.Cg)([(0,n.$K)("esri.rest.support.PivotDefinition")],g);const m=g;var h=o(27348),f=o(77696),C=o(58174);let P=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.sourceFields=void 0,this.valueFieldName=void 0,this.targetFieldName=void 0,this.type="un-pivot"}};(0,i.Cg)([(0,n.MZ)({type:[String],json:{name:"unPivotParameters.sourceFields",write:!0}})],P.prototype,"sourceFields",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{name:"unPivotParameters.valueFieldName",write:!0}})],P.prototype,"valueFieldName",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{name:"unPivotParameters.targetFieldName",write:!0}})],P.prototype,"targetFieldName",void 0),(0,i.Cg)([(0,y.e)({Unpivot:"un-pivot"},{name:"pivotType",readOnly:!0})],P.prototype,"type",void 0),P=(0,i.Cg)([(0,n.$K)("esri.rest.support.UnPivotDefinition")],P);var S=o(43937);const w={key:"type",base:null,typeMap:{pivot:m,"un-pivot":P}};let j=class extends((0,r.OU)((0,f.y)(s.o))){constructor(t){super(t),this.cacheHint=void 0,this.defaultSpatialReferenceEnabled=!1,this.geometry=null,this.groupByFieldsForStatistics=null,this.num=void 0,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.outPivots=null,this.quantizationParameters=null,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.where=void 0}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10,e.where="1=1"}};(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],j.prototype,"cacheHint",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{default:!1,write:!0}})],j.prototype,"defaultSpatialReferenceEnabled",void 0),(0,i.Cg)([(0,n.MZ)({types:u.yR,json:{read:l.rS,write:!0}})],j.prototype,"geometry",void 0),(0,i.Cg)([(0,n.MZ)({type:[String],json:{write:!0}})],j.prototype,"groupByFieldsForStatistics",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],j.prototype,"num",void 0),(0,i.Cg)([(0,n.MZ)({type:[String],json:{write:!0}})],j.prototype,"orderByFields",void 0),(0,i.Cg)([(0,n.MZ)({type:[String],json:{write:!0}})],j.prototype,"outFields",void 0),(0,i.Cg)([(0,n.MZ)({type:p.A,json:{name:"outSR",write:!0}})],j.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,n.MZ)({type:[v.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],j.prototype,"outStatistics",void 0),(0,i.Cg)([(0,n.MZ)({types:[w],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outPivots&&this.outPivots.length>0}}}}})],j.prototype,"outPivots",void 0),(0,i.Cg)([(0,n.MZ)({type:h.A,json:{write:!0}})],j.prototype,"quantizationParameters",void 0),(0,i.Cg)([(0,n.MZ)({type:p.A,json:{write:!0}})],j.prototype,"sourceSpatialReference",void 0),(0,i.Cg)([(0,y.e)(C.x,{ignoreUnknown:!1,name:"spatialRel"})],j.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],j.prototype,"start",void 0),(0,i.Cg)([(0,S.K)("start"),(0,S.K)("num")],j.prototype,"writeStart",null),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],j.prototype,"where",void 0),j=(0,i.Cg)([(0,n.$K)("esri.rest.support.PivotQuery")],j),j.from=(0,a.dp)(j)},80566:(t,e,o)=>{o.r(e),o.d(e,{executePivotQuery:()=>v});var i=o(2272),r=o(11254),s=o(84952),n=o(17136),a=o(10536),p=o(5076);function l(t){const e=(0,p.i)(t),o=e.outPivots;if(o?.length){for(const t of o)"Pivot"===t.pivotType&&t.pivotParameters.outStatistic?t.pivotParameters.outStatistic=JSON.stringify(t.pivotParameters.outStatistic):"Unpivot"===t.pivotType&&(t.unPivotParameters.sourceFields=t.unPivotParameters.sourceFields.join(","));e.outPivots=JSON.stringify(o)}return e}var u=o(22671),d=o(29958);async function v(t,e,o){const p=(0,i.Dl)(t),v={...o},{data:y}=await async function(t,e,o){return await async function(t,e,o={}){const i="string"==typeof t?(0,s.An)(t):t,p=e.geometry?[e.geometry]:[],u=await(0,n.el)(p,null,{signal:o.signal}),d=u?.[0];null!=d&&((e=e.clone()).geometry=d);const v=(0,a.z)({...i.query,f:"json",...l(e)});return(0,r.A)((0,s.fj)(i.path,"queryPivot"),{...o,query:{...v,...o.query}})}(t,e,o)}(p,d.default.from(e),v);return u.A.fromJSON(y)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1277,7561],{21277:(t,e,r)=>{r.r(e),r.d(e,{executeForTopIds:()=>n});var i=r(2272),o=r(24645),s=r(57561);async function n(t,e,r){const n=(0,i.Dl)(t);return(await(0,o.KW)(n,s.default.from(e),{...r})).data.objectIds}},24645:(t,e,r)=>{r.d(e,{$K:()=>h,KW:()=>c,Yb:()=>y,xs:()=>m});var i=r(11254),o=r(84952),s=r(65864),n=r(17136),l=r(21325),u=r(10536),p=r(58501);const a="Layer does not support extent calculation.";function d(t,e){const r=t.geometry,i=t.toJSON(),o=i;if(null!=r&&(o.geometry=JSON.stringify(r),o.geometryType=(0,s.$B)(r),o.inSR=(0,l.YX)(r.spatialReference)),i.topFilter?.groupByFields&&(o.topFilter.groupByFields=i.topFilter.groupByFields.join(",")),i.topFilter?.orderByFields&&(o.topFilter.orderByFields=i.topFilter.orderByFields.join(",")),i.topFilter&&(o.topFilter=JSON.stringify(o.topFilter)),i.objectIds&&(o.objectIds=i.objectIds.join(",")),i.orderByFields&&(o.orderByFields=i.orderByFields.join(",")),i.outFields&&!(e?.returnCountOnly||e?.returnExtentOnly||e?.returnIdsOnly)?i.outFields.includes("*")?o.outFields="*":o.outFields=i.outFields.join(","):delete o.outFields,i.outSR?o.outSR=(0,l.YX)(i.outSR):r&&i.returnGeometry&&(o.outSR=o.inSR),i.returnGeometry&&delete i.returnGeometry,i.timeExtent){const t=i.timeExtent,{start:e,end:r}=t;null==e&&null==r||(o.time=e===r?e:`${e??"null"},${r??"null"}`),delete i.timeExtent}return o}async function y(t,e,r,i){const o=await g(t,e,"json",i);return(0,p.q)(e,r,o.data),o}async function c(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{objectIds:[]}}:g(t,e,"json",r,{returnIdsOnly:!0})}async function h(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{count:0,extent:null}}:g(t,e,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then(t=>{const e=t.data;if(e.hasOwnProperty("extent"))return t;if(e.features)throw new Error(a);if(e.hasOwnProperty("count"))throw new Error(a);return t})}function m(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):g(t,e,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}function g(t,e,r,s={},l={}){const p="string"==typeof t?(0,o.An)(t):t,a=e.geometry?[e.geometry]:[];return s.responseType="json",(0,n.el)(a,null,s).then(t=>{const n=t?.[0];null!=n&&((e=e.clone()).geometry=n);const a=(0,u.z)({...p.query,f:r,...l,...d(e,l)});return(0,i.A)((0,o.fj)(p.path,"queryTopFeatures"),{...s,query:{...a,...s.query}})})}},57561:(t,e,r)=>{r.d(e,{default:()=>S});var i,o=r(31635),s=r(66552),n=r(25482),l=r(4718),u=r(91429),p=r(56507),a=r(16930),d=r(65864),y=r(50498),c=r(77696);let h=i=class extends n.o{constructor(t){super(t),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new i({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],h.prototype,"groupByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],h.prototype,"topCount",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],h.prototype,"orderByFields",void 0),h=i=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFilter")],h);const m=h;var g,w=r(79677),F=r(43937);const v=new s.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),j=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let S=class extends((0,c.y)(n.o)){static{g=this}constructor(t){super(t),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10}clone(){return new g((0,l.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"cacheHint",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],S.prototype,"distance",void 0),(0,o.Cg)([(0,u.MZ)({types:y.yR,json:{read:d.rS,write:!0}})],S.prototype,"geometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],S.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],S.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],S.prototype,"num",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],S.prototype,"objectIds",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],S.prototype,"orderByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],S.prototype,"outFields",void 0),(0,o.Cg)([(0,u.MZ)({type:a.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],S.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"resultType",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],S.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"returnM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"returnZ",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],S.prototype,"start",void 0),(0,o.Cg)([(0,F.K)("start"),(0,F.K)("num")],S.prototype,"writeStart",null),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:{source:"spatialRel",reader:v.read},write:{target:"spatialRel",writer:v.write}}})],S.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,u.MZ)({type:w.A,json:{write:!0}})],S.prototype,"timeExtent",void 0),(0,o.Cg)([(0,u.MZ)({type:m,json:{write:!0}})],S.prototype,"topFilter",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:j.read,write:{writer:j.write,overridePolicy(t){return{enabled:null!=t&&null!=this.distance}}}}})],S.prototype,"units",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=g=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFeaturesQuery")],S),S.from=(0,p.dp)(S)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9263],{33708:(e,t,r)=>{r.d(t,{Sg:()=>m,fz:()=>c,g7:()=>u,zo:()=>i});var n=r(76061),o=(r(55537),r(39117));r(88885),r(95213);const s=new o.G;function m(e,t){return s.accelerateGeometry(e,t,1)}function u(e,t,r){return s.execute(e,t,r,null)}function i(e,t,r,o){const m=s.executeMany(new n.S(e),new n.S([t]),r,null,o);return Array.from(m)}function c(){return s.supportsCurves()}},49263:(e,t,r)=>{r.d(t,{execute:()=>s}),r(4576);var n=r(33708),o=r(83299);function s(e,t){const r=(0,o.fromGeometry)(e),s=r.getSpatialReference();return(0,o.toGeometry)((0,n.g7)(r.getGeometry(),(0,o.fromGeometryToGXGeometry)(t),s),s)}},76061:(e,t,r)=>{r.d(t,{G:()=>n,S:()=>o});class n{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class o extends n{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6187],{46187:(t,e,o)=>{o.d(e,{default:()=>r});var r=async function(t={}){var e,o,r,_=t,p=new Promise((t,r)=>{e=t,o=r}),n="";try{n=new URL(".","").href}catch{}r=async t=>{var e=await fetch(t,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)};var i,c,a,y,s,P,g,u,f,b=console.log.bind(console),E=console.error.bind(console),d=!1;function T(t,e){t||N(e)}function O(){var t=i.buffer;c=new Int8Array(t),y=new Int16Array(t),a=new Uint8Array(t),s=new Int32Array(t),P=new Uint32Array(t),g=new Float32Array(t),f=new Float64Array(t),u=new BigInt64Array(t),new BigUint64Array(t)}var m,h=0,S=null;function N(t){E(t="Aborted("+t+")"),d=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw o(e),e}async function l(t,e){try{var o=await async function(t){try{var e=await r(t);return new Uint8Array(e)}catch{}return function(){throw"both async and sync fetching of the wasm failed"}()}(t);return await WebAssembly.instantiate(o,e)}catch(t){E(`failed to asynchronously prepare wasm: ${t}`),N(t)}}var v="undefined"!=typeof TextDecoder?new TextDecoder:void 0,M=(t,e=0,o=NaN)=>{for(var r=e+o,_=e;t[_]&&!(_>=r);)++_;if(_-e>16&&t.buffer&&v)return v.decode(t.subarray(e,_));for(var p="";e<_;){var n=t[e++];if(128&n){var i=63&t[e++];if(192!=(224&n)){var c=63&t[e++];if((n=224==(240&n)?(15&n)<<12|i<<6|c:(7&n)<<18|i<<12|c<<6|63&t[e++])<65536)p+=String.fromCharCode(n);else{var a=n-65536;p+=String.fromCharCode(55296|a>>10,56320|1023&a)}}else p+=String.fromCharCode((31&n)<<6|i)}else p+=String.fromCharCode(n)}return p},j=(t,e)=>t?M(a,t,e):"",D=[0,31,60,91,121,152,182,213,244,274,305,335],A=[0,31,59,90,120,151,181,212,243,273,304,334],R=(t,e,o,r)=>{if(!(r>0))return 0;for(var _=o,p=o+r-1,n=0;n<t.length;++n){var i=t.charCodeAt(n);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&t.charCodeAt(++n)),i<=127){if(o>=p)break;e[o++]=i}else if(i<=2047){if(o+1>=p)break;e[o++]=192|i>>6,e[o++]=128|63&i}else if(i<=65535){if(o+2>=p)break;e[o++]=224|i>>12,e[o++]=128|i>>6&63,e[o++]=128|63&i}else{if(o+3>=p)break;e[o++]=240|i>>18,e[o++]=128|i>>12&63,e[o++]=128|i>>6&63,e[o++]=128|63&i}}return e[o]=0,o-_},C=(t,e,o)=>R(t,a,e,o),G=(t,e)=>Math.ceil(t/e)*e,I=t=>{var e=(t-i.buffer.byteLength+65535)/65536|0;try{return i.grow(e),O(),1}catch(t){}},L={},U=()=>{if(!U.strings){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:"./this.program"};for(var e in L)void 0===L[e]?delete t[e]:t[e]=L[e];var o=[];for(var e in t)o.push(`${e}=${t[e]}`);U.strings=o}return U.strings},w=t=>{for(var e=0,o=0;o<t.length;++o){var r=t.charCodeAt(o);r<=127?e++:r<=2047?e+=2:r>=55296&&r<=57343?(e+=4,++o):e+=3}return e},F=[null,[],[]],Y=(t,e)=>{var o=F[t];0===e||10===e?((1===t?b:E)(M(o)),o.length=0):o.push(e)},X=[];_.getValue=function(t,e="i8"){switch(e.endsWith("*")&&(e="*"),e){case"i1":case"i8":return c[t];case"i16":return y[t>>1];case"i32":return s[t>>2];case"i64":return u[t>>3];case"float":return g[t>>2];case"double":return f[t>>3];case"*":return P[t>>2];default:N(`invalid type for getValue: ${e}`)}},_.UTF8ToString=j;var x={c:function(t,e,o){return 0},o:(t,e,o)=>{},i:function(t,e,o){return 0},d:function(t,e,o,r){},m:t=>{},l:(t,e)=>{},n:(t,e,o)=>{},j:()=>N(""),p:function(t,e){t=(t=>t<-9007199254740992||t>9007199254740992?NaN:Number(t))(t);var o=new Date(1e3*t);s[e>>2]=o.getSeconds(),s[e+4>>2]=o.getMinutes(),s[e+8>>2]=o.getHours(),s[e+12>>2]=o.getDate(),s[e+16>>2]=o.getMonth(),s[e+20>>2]=o.getFullYear()-1900,s[e+24>>2]=o.getDay();var r=0|(t=>((t=>t%4==0&&(t%100!=0||t%400==0))(t.getFullYear())?D:A)[t.getMonth()]+t.getDate()-1)(o);s[e+28>>2]=r,s[e+36>>2]=-60*o.getTimezoneOffset();var _=new Date(o.getFullYear(),0,1),p=new Date(o.getFullYear(),6,1).getTimezoneOffset(),n=_.getTimezoneOffset(),i=0|(p!=n&&o.getTimezoneOffset()==Math.min(n,p));s[e+32>>2]=i},q:(t,e,o,r)=>{var _=(new Date).getFullYear(),p=new Date(_,0,1),n=new Date(_,6,1),i=p.getTimezoneOffset(),c=n.getTimezoneOffset(),a=Math.max(i,c);P[t>>2]=60*a,s[e>>2]=Number(i!=c);var y=t=>{var e=t>=0?"-":"+",o=Math.abs(t);return`UTC${e}${String(Math.floor(o/60)).padStart(2,"0")}${String(o%60).padStart(2,"0")}`},g=y(i),u=y(c);c<i?(C(g,o,17),C(u,r,17)):(C(g,r,17),C(u,o,17))},r:()=>Date.now(),k:t=>{var e=a.length,o=2147483648;if((t>>>=0)>o)return!1;for(var r=1;r<=4;r*=2){var _=e*(1+.2/r);_=Math.min(_,t+100663296);var p=Math.min(o,G(Math.max(t,_),65536));if(I(p))return!0}return!1},f:(t,e)=>{var o=0,r=0;for(var _ of U()){var p=e+o;P[t+r>>2]=p,o+=C(_,p,1/0)+1,r+=4}return 0},g:(t,e)=>{var o=U();P[t>>2]=o.length;var r=0;for(var _ of o)r+=w(_)+1;return P[e>>2]=r,0},a:t=>52,h:(t,e,o,r)=>52,e:function(t,e,o,r){return 70},b:(t,e,o,r)=>{for(var _=0,p=0;p<o;p++){var n=P[e>>2],i=P[e+4>>2];e+=8;for(var c=0;c<i;c++)Y(t,a[n+c]);_+=i}return P[r>>2]=_,0}},H=await async function(){h++;var t={a:x};m??=_.locateFile?function(t){return _.locateFile?_.locateFile(t,n):n+t}("pe-wasm.wasm"):new URL("pe-wasm.wasm","").href;try{return function(t){return function(t){return H=t.exports,i=H.s,O(),function(){if(0==--h&&S){var t=S;S=null,t()}}(),H}(t.instance)}(await async function(t,e,o){if("function"==typeof WebAssembly.instantiateStreaming)try{var r=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(r,o)}catch(t){E(`wasm streaming compile failed: ${t}`),E("falling back to ArrayBuffer instantiation")}return l(e,o)}(0,m,t))}catch(t){return o(t),Promise.reject(t)}}();H.t,_._webidl_free=H.u,_._webidl_malloc=H.v;var z=_._emscripten_bind_PeObject_getCode_0=H.w,Z=_._emscripten_bind_PeObject_getName_1=H.x,W=_._emscripten_bind_PeObject_getType_0=H.y,B=_._emscripten_bind_PeCoordsys_isEqual_1=H.z,q=_._emscripten_bind_PeCoordsys_getCode_0=H.A,K=_._emscripten_bind_PeCoordsys_getName_1=H.B,k=_._emscripten_bind_PeCoordsys_getType_0=H.C,V=_._emscripten_bind_PeUnit_getUnitFactor_0=H.D,$=_._emscripten_bind_PeUnit_getCode_0=H.E,J=_._emscripten_bind_PeUnit_getName_1=H.F,Q=_._emscripten_bind_PeUnit_getType_0=H.G,tt=_._emscripten_bind_VoidPtr___destroy___0=H.H,et=_._emscripten_bind_PeAngunit_getCode_0=H.I,ot=_._emscripten_bind_PeAngunit_getName_1=H.J,rt=_._emscripten_bind_PeAngunit_getType_0=H.K,_t=_._emscripten_bind_PeAngunit_getUnitFactor_0=H.L,pt=_._emscripten_bind_PeDatum_getSpheroid_0=H.M,nt=_._emscripten_bind_PeDatum_getCode_0=H.N,it=_._emscripten_bind_PeDatum_getName_1=H.O,ct=_._emscripten_bind_PeDatum_getType_0=H.P,at=_._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=H.Q,yt=_._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=H.R,st=_._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=H.S,Pt=_._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=H.T,gt=_._emscripten_bind_PeDefs_get_PE_DD_MAX_0=H.U,ut=_._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=H.V,ft=_._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=H.W,bt=_._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=H.X,Et=_._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=H.Y,dt=_._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=H.Z,Tt=_._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=H._,Ot=_._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=H.$,mt=_._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=H.aa,ht=_._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=H.ba,St=_._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=H.ca,Nt=_._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=H.da,lt=_._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=H.ea,vt=_._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=H.fa,Mt=_._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=H.ga,jt=_._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=H.ha,Dt=_._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=H.ia,At=_._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=H.ja,Rt=_._emscripten_bind_PeDefs_get_PE_PARM_X0_0=H.ka,Ct=_._emscripten_bind_PeDefs_get_PE_PARM_ND_0=H.la,Gt=_._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=H.ma,It=_._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=H.na,Lt=_._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=H.oa,Ut=_._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=H.pa,wt=_._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=H.qa,Ft=_._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=H.ra,Yt=_._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=H.sa,Xt=_._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=H.ta,xt=_._emscripten_bind_PeDouble_PeDouble_1=H.ua,Ht=_._emscripten_bind_PeDouble_get_val_0=H.va,zt=_._emscripten_bind_PeDouble_set_val_1=H.wa,Zt=_._emscripten_bind_PeDouble___destroy___0=H.xa,Wt=_._emscripten_bind_PeFactory_initialize_1=H.ya,Bt=_._emscripten_bind_PeFactory_factoryByType_2=H.za,qt=_._emscripten_bind_PeFactory_fromString_2=H.Aa,Kt=_._emscripten_bind_PeFactory_getCode_1=H.Ba,kt=_._emscripten_bind_PeGCSExtent_PeGCSExtent_6=H.Ca,Vt=_._emscripten_bind_PeGCSExtent_getLLon_0=H.Da,$t=_._emscripten_bind_PeGCSExtent_getSLat_0=H.Ea,Jt=_._emscripten_bind_PeGCSExtent_getRLon_0=H.Fa,Qt=_._emscripten_bind_PeGCSExtent_getNLat_0=H.Ga,te=_._emscripten_bind_PeGCSExtent___destroy___0=H.Ha,ee=_._emscripten_bind_PeGeogcs_Delete_0=H.Ia,oe=_._emscripten_bind_PeGeogcs_cloneAlterUnits_1=H.Ja,re=_._emscripten_bind_PeGeogcs_getDatum_0=H.Ka,_e=_._emscripten_bind_PeGeogcs_getPrimem_0=H.La,pe=_._emscripten_bind_PeGeogcs_getUnit_0=H.Ma,ne=_._emscripten_bind_PeGeogcs_isEqual_1=H.Na,ie=_._emscripten_bind_PeGeogcs_getCode_0=H.Oa,ce=_._emscripten_bind_PeGeogcs_getName_1=H.Pa,ae=_._emscripten_bind_PeGeogcs_getType_0=H.Qa,ye=_._emscripten_bind_PeGeogtran_isEqual_1=H.Ra,se=_._emscripten_bind_PeGeogtran_getGeogcs1_0=H.Sa,Pe=_._emscripten_bind_PeGeogtran_getGeogcs2_0=H.Ta,ge=_._emscripten_bind_PeGeogtran_getParameters_0=H.Ua,ue=_._emscripten_bind_PeGeogtran_loadConstants_0=H.Va,fe=_._emscripten_bind_PeGeogtran_getCode_0=H.Wa,be=_._emscripten_bind_PeGeogtran_getName_1=H.Xa,Ee=_._emscripten_bind_PeGeogtran_getType_0=H.Ya,de=_._emscripten_bind_PeGTlistExtended_getGTlist_6=H.Za,Te=_._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=H._a,Oe=_._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=H.$a,me=_._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=H.ab,he=_._emscripten_bind_PeGTlistExtendedEntry_Delete_1=H.bb,Se=_._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=H.cb,Ne=_._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=H.db,le=_._emscripten_bind_PeHorizon_getNump_0=H.eb,ve=_._emscripten_bind_PeHorizon_getKind_0=H.fb,Me=_._emscripten_bind_PeHorizon_getInclusive_0=H.gb,je=_._emscripten_bind_PeHorizon_getSize_0=H.hb,De=_._emscripten_bind_PeHorizon_getCoord_0=H.ib,Ae=_._emscripten_bind_PeInteger_PeInteger_1=H.jb,Re=_._emscripten_bind_PeInteger_get_val_0=H.kb,Ce=_._emscripten_bind_PeInteger_set_val_1=H.lb,Ge=_._emscripten_bind_PeInteger___destroy___0=H.mb,Ie=_._emscripten_bind_PeLineType_geodetic_distance_10=H.nb,Le=_._emscripten_bind_PeLineType_geodetic_coordinate_9=H.ob,Ue=_._emscripten_bind_PeLineType_geodesic_coordinate_8=H.pb,we=_._emscripten_bind_PeLineType_great_elliptic_distance_9=H.qb,Fe=_._emscripten_bind_PeMath_phi_to_eta_2=H.rb,Ye=_._emscripten_bind_PeMath_eta_to_phi_2=H.sb,Xe=_._emscripten_bind_PeMath_phi_to_phig_2=H.tb,xe=_._emscripten_bind_PeMath_q_3=H.ub,He=_._emscripten_bind_PeMath_q90_2=H.vb,ze=_._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=H.wb,Ze=_._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=H.xb,We=_._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=H.yb,Be=_._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=H.zb,qe=_._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=H.Ab,Ke=_._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=H.Bb,ke=_._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=H.Cb,Ve=_._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=H.Db,$e=_._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=H.Eb,Je=_._emscripten_bind_PeParameter_getValue_0=H.Fb,Qe=_._emscripten_bind_PeParameter_getCode_0=H.Gb,to=_._emscripten_bind_PeParameter_getName_1=H.Hb,eo=_._emscripten_bind_PeParameter_getType_0=H.Ib,oo=_._emscripten_bind_PePCSInfo_getCentralMeridian_0=H.Jb,ro=_._emscripten_bind_PePCSInfo_getDomainMinx_0=H.Kb,_o=_._emscripten_bind_PePCSInfo_getDomainMiny_0=H.Lb,po=_._emscripten_bind_PePCSInfo_getDomainMaxx_0=H.Mb,no=_._emscripten_bind_PePCSInfo_getDomainMaxy_0=H.Nb,io=_._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=H.Ob,co=_._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=H.Pb,ao=_._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=H.Qb,yo=_._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=H.Rb,so=_._emscripten_bind_PePCSInfo_isDensificationNeeded_0=H.Sb,Po=_._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=H.Tb,go=_._emscripten_bind_PePCSInfo_isPannableRectangle_0=H.Ub,uo=_._emscripten_bind_PePCSInfo_generate_2=H.Vb,fo=_._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=H.Wb,bo=_._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=H.Xb,Eo=_._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=H.Yb,To=_._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=H.Zb,Oo=_._emscripten_bind_PePrimem_getLongitude_0=H._b,mo=_._emscripten_bind_PePrimem_getCode_0=H.$b,ho=_._emscripten_bind_PePrimem_getName_1=H.ac,So=_._emscripten_bind_PePrimem_getType_0=H.bc,No=_._emscripten_bind_PeProjcs_Delete_0=H.cc,lo=_._emscripten_bind_PeProjcs_getGeogcs_0=H.dc,vo=_._emscripten_bind_PeProjcs_getProjection_0=H.ec,Mo=_._emscripten_bind_PeProjcs_getParameters_0=H.fc,jo=_._emscripten_bind_PeProjcs_getUnit_0=H.gc,Do=_._emscripten_bind_PeProjcs_loadConstants_0=H.hc,Ao=_._emscripten_bind_PeProjcs_horizonGcsGenerate_0=H.ic,Ro=_._emscripten_bind_PeProjcs_horizonPcsGenerate_0=H.jc,Co=_._emscripten_bind_PeProjcs_isEqual_1=H.kc,Go=_._emscripten_bind_PeProjcs_getCode_0=H.lc,Io=_._emscripten_bind_PeProjcs_getName_1=H.mc,Lo=_._emscripten_bind_PeProjcs_getType_0=H.nc,Uo=_._emscripten_bind_PeSpheroid_getAxis_0=H.oc,wo=_._emscripten_bind_PeSpheroid_getFlattening_0=H.pc,Fo=_._emscripten_bind_PeSpheroid_getCode_0=H.qc,Yo=_._emscripten_bind_PeSpheroid_getName_1=H.rc,Xo=_._emscripten_bind_PeSpheroid_getType_0=H.sc,xo=_._emscripten_bind_PeVersion_version_string_0=H.tc;function Ho(){}function zo(t){return(t||Ho).__cache__}function Zo(t,e){var o=zo(e),r=o[t];return r||((r=Object.create((e||Ho).prototype)).ptr=t,o[t]=r)}_._pe_getPeGTlistExtendedEntrySize=H.uc,_._pe_getPeGTlistExtendedGTsSize=H.vc,_._pe_getPeHorizonSize=H.wc,_._pe_geog_to_geog=H.xc,_._pe_geog_to_proj=H.yc,_._pe_geog_to_dd=H.zc,_._pe_dd_to_geog=H.Ac,_._pe_geog_to_ddm=H.Bc,_._pe_ddm_to_geog=H.Cc,_._pe_geog_to_dms=H.Dc,_._pe_dms_to_geog=H.Ec,_._pe_geog_to_mgrs_extended=H.Fc,_._pe_mgrs_to_geog_extended=H.Gc,_._pe_geog_to_usng=H.Hc,_._pe_usng_to_geog=H.Ic,_._pe_geog_to_utm=H.Jc,_._pe_utm_to_geog=H.Kc,_._pe_object_to_string_ext=H.Lc,_._pe_proj_to_geog_center=H.Mc,function t(){h>0||h>0?S=t:(_.calledRun=!0,d||((t=>{for(;t.length>0;)t.shift()(_)})(X),H.t(),e(_)))}(),Ho.prototype=Object.create(Ho.prototype),Ho.prototype.constructor=Ho,Ho.prototype.__class__=Ho,Ho.__cache__={},_.WrapperObject=Ho,_.getCache=zo,_.wrapPointer=Zo,_.castObject=function(t,e){return Zo(t.ptr,e)},_.NULL=Zo(0),_.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete zo(t.__class__)[t.ptr]},_.compare=function(t,e){return t.ptr===e.ptr},_.getPointer=function(t){return t.ptr},_.getClass=function(t){return t.__class__};var Wo={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(Wo.needed){for(var t=0;t<Wo.temps.length;t++)_._webidl_free(Wo.temps[t]);Wo.temps.length=0,_._webidl_free(Wo.buffer),Wo.buffer=0,Wo.size+=Wo.needed,Wo.needed=0}Wo.buffer||(Wo.size+=128,Wo.buffer=_._webidl_malloc(Wo.size),T(Wo.buffer)),Wo.pos=0},alloc(t,e){T(Wo.buffer);var o,r=e.BYTES_PER_ELEMENT,p=t.length*r;return p=G(p,8),Wo.pos+p>=Wo.size?(T(p>0),Wo.needed+=p,o=_._webidl_malloc(p),Wo.temps.push(o)):(o=Wo.buffer+Wo.pos,Wo.pos+=p),o},copy(t,e,o){o/=e.BYTES_PER_ELEMENT;for(var r=0;r<t.length;r++)e[o+r]=t[r]}};function Bo(t){if("string"==typeof t){var e=(t=>{var e=w(t)+1,o=new Array(e);return R(t,o,0,o.length),o})(t),o=Wo.alloc(e,c);return Wo.copy(e,c,o),o}return t}function qo(t){if("object"==typeof t){var e=Wo.alloc(t,c);return Wo.copy(t,c,e),e}return t}function Ko(){throw"cannot construct a PeObject, no constructor in IDL"}function ko(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function Vo(){throw"cannot construct a PeUnit, no constructor in IDL"}function $o(){throw"cannot construct a VoidPtr, no constructor in IDL"}function Jo(){throw"cannot construct a PeAngunit, no constructor in IDL"}function Qo(){throw"cannot construct a PeDatum, no constructor in IDL"}function tr(){throw"cannot construct a PeDefs, no constructor in IDL"}function er(t){t&&"object"==typeof t&&(t=t.ptr),this.ptr=xt(t),zo(er)[this.ptr]=this}function or(){throw"cannot construct a PeFactory, no constructor in IDL"}function rr(t,e,o,r,_,p){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),this.ptr=kt(t,e,o,r,_,p),zo(rr)[this.ptr]=this}function _r(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function pr(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function nr(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function ir(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function cr(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function ar(){throw"cannot construct a PeHorizon, no constructor in IDL"}function yr(t){t&&"object"==typeof t&&(t=t.ptr),this.ptr=Ae(t),zo(yr)[this.ptr]=this}function sr(){throw"cannot construct a PeLineType, no constructor in IDL"}function Pr(){throw"cannot construct a PeMath, no constructor in IDL"}function gr(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function ur(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function fr(){throw"cannot construct a PeParameter, no constructor in IDL"}function br(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function Er(){throw"cannot construct a PePrimem, no constructor in IDL"}function dr(){throw"cannot construct a PeProjcs, no constructor in IDL"}function Tr(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function Or(){throw"cannot construct a PeVersion, no constructor in IDL"}return Ko.prototype=Object.create(Ho.prototype),Ko.prototype.constructor=Ko,Ko.prototype.__class__=Ko,Ko.__cache__={},_.PeObject=Ko,Ko.prototype.getCode=Ko.prototype.getCode=function(){var t=this.ptr;return z(t)},Ko.prototype.getName=Ko.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(Z(e,t))},Ko.prototype.getType=Ko.prototype.getType=function(){var t=this.ptr;return W(t)},ko.prototype=Object.create(Ko.prototype),ko.prototype.constructor=ko,ko.prototype.__class__=ko,ko.__cache__={},_.PeCoordsys=ko,ko.prototype.isEqual=ko.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!B(e,t)},ko.prototype.getCode=ko.prototype.getCode=function(){var t=this.ptr;return q(t)},ko.prototype.getName=ko.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(K(e,t))},ko.prototype.getType=ko.prototype.getType=function(){var t=this.ptr;return k(t)},Vo.prototype=Object.create(Ko.prototype),Vo.prototype.constructor=Vo,Vo.prototype.__class__=Vo,Vo.__cache__={},_.PeUnit=Vo,Vo.prototype.getUnitFactor=Vo.prototype.getUnitFactor=function(){var t=this.ptr;return V(t)},Vo.prototype.getCode=Vo.prototype.getCode=function(){var t=this.ptr;return $(t)},Vo.prototype.getName=Vo.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(J(e,t))},Vo.prototype.getType=Vo.prototype.getType=function(){var t=this.ptr;return Q(t)},$o.prototype=Object.create(Ho.prototype),$o.prototype.constructor=$o,$o.prototype.__class__=$o,$o.__cache__={},_.VoidPtr=$o,$o.prototype.__destroy__=$o.prototype.__destroy__=function(){var t=this.ptr;tt(t)},Jo.prototype=Object.create(Vo.prototype),Jo.prototype.constructor=Jo,Jo.prototype.__class__=Jo,Jo.__cache__={},_.PeAngunit=Jo,Jo.prototype.getCode=Jo.prototype.getCode=function(){var t=this.ptr;return et(t)},Jo.prototype.getName=Jo.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(ot(e,t))},Jo.prototype.getType=Jo.prototype.getType=function(){var t=this.ptr;return rt(t)},Jo.prototype.getUnitFactor=Jo.prototype.getUnitFactor=function(){var t=this.ptr;return _t(t)},Qo.prototype=Object.create(Ko.prototype),Qo.prototype.constructor=Qo,Qo.prototype.__class__=Qo,Qo.__cache__={},_.PeDatum=Qo,Qo.prototype.getSpheroid=Qo.prototype.getSpheroid=function(){var t=this.ptr;return Zo(pt(t),Tr)},Qo.prototype.getCode=Qo.prototype.getCode=function(){var t=this.ptr;return nt(t)},Qo.prototype.getName=Qo.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(it(e,t))},Qo.prototype.getType=Qo.prototype.getType=function(){var t=this.ptr;return ct(t)},tr.prototype=Object.create(Ho.prototype),tr.prototype.constructor=tr,tr.prototype.__class__=tr,tr.__cache__={},_.PeDefs=tr,tr.prototype.get_PE_BUFFER_MAX=tr.prototype.get_PE_BUFFER_MAX=function(){var t=this.ptr;return at(t)},Object.defineProperty(tr.prototype,"PE_BUFFER_MAX",{get:tr.prototype.get_PE_BUFFER_MAX}),tr.prototype.get_PE_NAME_MAX=tr.prototype.get_PE_NAME_MAX=function(){var t=this.ptr;return yt(t)},Object.defineProperty(tr.prototype,"PE_NAME_MAX",{get:tr.prototype.get_PE_NAME_MAX}),tr.prototype.get_PE_MGRS_MAX=tr.prototype.get_PE_MGRS_MAX=function(){var t=this.ptr;return st(t)},Object.defineProperty(tr.prototype,"PE_MGRS_MAX",{get:tr.prototype.get_PE_MGRS_MAX}),tr.prototype.get_PE_USNG_MAX=tr.prototype.get_PE_USNG_MAX=function(){var t=this.ptr;return Pt(t)},Object.defineProperty(tr.prototype,"PE_USNG_MAX",{get:tr.prototype.get_PE_USNG_MAX}),tr.prototype.get_PE_DD_MAX=tr.prototype.get_PE_DD_MAX=function(){var t=this.ptr;return gt(t)},Object.defineProperty(tr.prototype,"PE_DD_MAX",{get:tr.prototype.get_PE_DD_MAX}),tr.prototype.get_PE_DMS_MAX=tr.prototype.get_PE_DMS_MAX=function(){var t=this.ptr;return ut(t)},Object.defineProperty(tr.prototype,"PE_DMS_MAX",{get:tr.prototype.get_PE_DMS_MAX}),tr.prototype.get_PE_DDM_MAX=tr.prototype.get_PE_DDM_MAX=function(){var t=this.ptr;return ft(t)},Object.defineProperty(tr.prototype,"PE_DDM_MAX",{get:tr.prototype.get_PE_DDM_MAX}),tr.prototype.get_PE_UTM_MAX=tr.prototype.get_PE_UTM_MAX=function(){var t=this.ptr;return bt(t)},Object.defineProperty(tr.prototype,"PE_UTM_MAX",{get:tr.prototype.get_PE_UTM_MAX}),tr.prototype.get_PE_PARM_MAX=tr.prototype.get_PE_PARM_MAX=function(){var t=this.ptr;return Et(t)},Object.defineProperty(tr.prototype,"PE_PARM_MAX",{get:tr.prototype.get_PE_PARM_MAX}),tr.prototype.get_PE_TYPE_NONE=tr.prototype.get_PE_TYPE_NONE=function(){var t=this.ptr;return dt(t)},Object.defineProperty(tr.prototype,"PE_TYPE_NONE",{get:tr.prototype.get_PE_TYPE_NONE}),tr.prototype.get_PE_TYPE_GEOGCS=tr.prototype.get_PE_TYPE_GEOGCS=function(){var t=this.ptr;return Tt(t)},Object.defineProperty(tr.prototype,"PE_TYPE_GEOGCS",{get:tr.prototype.get_PE_TYPE_GEOGCS}),tr.prototype.get_PE_TYPE_PROJCS=tr.prototype.get_PE_TYPE_PROJCS=function(){var t=this.ptr;return Ot(t)},Object.defineProperty(tr.prototype,"PE_TYPE_PROJCS",{get:tr.prototype.get_PE_TYPE_PROJCS}),tr.prototype.get_PE_TYPE_GEOGTRAN=tr.prototype.get_PE_TYPE_GEOGTRAN=function(){var t=this.ptr;return mt(t)},Object.defineProperty(tr.prototype,"PE_TYPE_GEOGTRAN",{get:tr.prototype.get_PE_TYPE_GEOGTRAN}),tr.prototype.get_PE_TYPE_COORDSYS=tr.prototype.get_PE_TYPE_COORDSYS=function(){var t=this.ptr;return ht(t)},Object.defineProperty(tr.prototype,"PE_TYPE_COORDSYS",{get:tr.prototype.get_PE_TYPE_COORDSYS}),tr.prototype.get_PE_TYPE_UNIT=tr.prototype.get_PE_TYPE_UNIT=function(){var t=this.ptr;return St(t)},Object.defineProperty(tr.prototype,"PE_TYPE_UNIT",{get:tr.prototype.get_PE_TYPE_UNIT}),tr.prototype.get_PE_TYPE_LINUNIT=tr.prototype.get_PE_TYPE_LINUNIT=function(){var t=this.ptr;return Nt(t)},Object.defineProperty(tr.prototype,"PE_TYPE_LINUNIT",{get:tr.prototype.get_PE_TYPE_LINUNIT}),tr.prototype.get_PE_STR_OPTS_NONE=tr.prototype.get_PE_STR_OPTS_NONE=function(){var t=this.ptr;return lt(t)},Object.defineProperty(tr.prototype,"PE_STR_OPTS_NONE",{get:tr.prototype.get_PE_STR_OPTS_NONE}),tr.prototype.get_PE_STR_AUTH_NONE=tr.prototype.get_PE_STR_AUTH_NONE=function(){var t=this.ptr;return vt(t)},Object.defineProperty(tr.prototype,"PE_STR_AUTH_NONE",{get:tr.prototype.get_PE_STR_AUTH_NONE}),tr.prototype.get_PE_STR_AUTH_TOP=tr.prototype.get_PE_STR_AUTH_TOP=function(){var t=this.ptr;return Mt(t)},Object.defineProperty(tr.prototype,"PE_STR_AUTH_TOP",{get:tr.prototype.get_PE_STR_AUTH_TOP}),tr.prototype.get_PE_STR_NAME_CANON=tr.prototype.get_PE_STR_NAME_CANON=function(){var t=this.ptr;return jt(t)},Object.defineProperty(tr.prototype,"PE_STR_NAME_CANON",{get:tr.prototype.get_PE_STR_NAME_CANON}),tr.prototype.get_PE_STR_FMT_WKT=tr.prototype.get_PE_STR_FMT_WKT=function(){var t=this.ptr;return Dt(t)},Object.defineProperty(tr.prototype,"PE_STR_FMT_WKT",{get:tr.prototype.get_PE_STR_FMT_WKT}),tr.prototype.get_PE_STR_FMT_WKT2=tr.prototype.get_PE_STR_FMT_WKT2=function(){var t=this.ptr;return At(t)},Object.defineProperty(tr.prototype,"PE_STR_FMT_WKT2",{get:tr.prototype.get_PE_STR_FMT_WKT2}),tr.prototype.get_PE_PARM_X0=tr.prototype.get_PE_PARM_X0=function(){var t=this.ptr;return Rt(t)},Object.defineProperty(tr.prototype,"PE_PARM_X0",{get:tr.prototype.get_PE_PARM_X0}),tr.prototype.get_PE_PARM_ND=tr.prototype.get_PE_PARM_ND=function(){var t=this.ptr;return Ct(t)},Object.defineProperty(tr.prototype,"PE_PARM_ND",{get:tr.prototype.get_PE_PARM_ND}),tr.prototype.get_PE_TRANSFORM_1_TO_2=tr.prototype.get_PE_TRANSFORM_1_TO_2=function(){var t=this.ptr;return Gt(t)},Object.defineProperty(tr.prototype,"PE_TRANSFORM_1_TO_2",{get:tr.prototype.get_PE_TRANSFORM_1_TO_2}),tr.prototype.get_PE_TRANSFORM_2_TO_1=tr.prototype.get_PE_TRANSFORM_2_TO_1=function(){var t=this.ptr;return It(t)},Object.defineProperty(tr.prototype,"PE_TRANSFORM_2_TO_1",{get:tr.prototype.get_PE_TRANSFORM_2_TO_1}),tr.prototype.get_PE_TRANSFORM_P_TO_G=tr.prototype.get_PE_TRANSFORM_P_TO_G=function(){var t=this.ptr;return Lt(t)},Object.defineProperty(tr.prototype,"PE_TRANSFORM_P_TO_G",{get:tr.prototype.get_PE_TRANSFORM_P_TO_G}),tr.prototype.get_PE_TRANSFORM_G_TO_P=tr.prototype.get_PE_TRANSFORM_G_TO_P=function(){var t=this.ptr;return Ut(t)},Object.defineProperty(tr.prototype,"PE_TRANSFORM_G_TO_P",{get:tr.prototype.get_PE_TRANSFORM_G_TO_P}),tr.prototype.get_PE_HORIZON_RECT=tr.prototype.get_PE_HORIZON_RECT=function(){var t=this.ptr;return wt(t)},Object.defineProperty(tr.prototype,"PE_HORIZON_RECT",{get:tr.prototype.get_PE_HORIZON_RECT}),tr.prototype.get_PE_HORIZON_POLY=tr.prototype.get_PE_HORIZON_POLY=function(){var t=this.ptr;return Ft(t)},Object.defineProperty(tr.prototype,"PE_HORIZON_POLY",{get:tr.prototype.get_PE_HORIZON_POLY}),tr.prototype.get_PE_HORIZON_LINE=tr.prototype.get_PE_HORIZON_LINE=function(){var t=this.ptr;return Yt(t)},Object.defineProperty(tr.prototype,"PE_HORIZON_LINE",{get:tr.prototype.get_PE_HORIZON_LINE}),tr.prototype.get_PE_HORIZON_DELTA=tr.prototype.get_PE_HORIZON_DELTA=function(){var t=this.ptr;return Xt(t)},Object.defineProperty(tr.prototype,"PE_HORIZON_DELTA",{get:tr.prototype.get_PE_HORIZON_DELTA}),er.prototype=Object.create(Ho.prototype),er.prototype.constructor=er,er.prototype.__class__=er,er.__cache__={},_.PeDouble=er,er.prototype.get_val=er.prototype.get_val=function(){var t=this.ptr;return Ht(t)},er.prototype.set_val=er.prototype.set_val=function(t){var e=this.ptr;t&&"object"==typeof t&&(t=t.ptr),zt(e,t)},Object.defineProperty(er.prototype,"val",{get:er.prototype.get_val,set:er.prototype.set_val}),er.prototype.__destroy__=er.prototype.__destroy__=function(){var t=this.ptr;Zt(t)},or.prototype=Object.create(Ho.prototype),or.prototype.constructor=or,or.prototype.__class__=or,or.__cache__={},_.PeFactory=or,or.prototype.initialize=or.prototype.initialize=function(t){Wo.prepare(),t=t&&"object"==typeof t?t.ptr:Bo(t),Wt(t)},or.prototype.factoryByType=or.prototype.factoryByType=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Zo(Bt(t,e),Ko)},or.prototype.fromString=or.prototype.fromString=function(t,e){return Wo.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:Bo(e),Zo(qt(t,e),Ko)},or.prototype.getCode=or.prototype.getCode=function(t){return t&&"object"==typeof t&&(t=t.ptr),Kt(t)},rr.prototype=Object.create(Ho.prototype),rr.prototype.constructor=rr,rr.prototype.__class__=rr,rr.__cache__={},_.PeGCSExtent=rr,rr.prototype.getLLon=rr.prototype.getLLon=function(){var t=this.ptr;return Vt(t)},rr.prototype.getSLat=rr.prototype.getSLat=function(){var t=this.ptr;return $t(t)},rr.prototype.getRLon=rr.prototype.getRLon=function(){var t=this.ptr;return Jt(t)},rr.prototype.getNLat=rr.prototype.getNLat=function(){var t=this.ptr;return Qt(t)},rr.prototype.__destroy__=rr.prototype.__destroy__=function(){var t=this.ptr;te(t)},_r.prototype=Object.create(ko.prototype),_r.prototype.constructor=_r,_r.prototype.__class__=_r,_r.__cache__={},_.PeGeogcs=_r,_r.prototype.Delete=_r.prototype.Delete=function(){var t=this.ptr;ee(t)},_r.prototype.cloneAlterUnits=_r.prototype.cloneAlterUnits=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Zo(oe(e,t),_r)},_r.prototype.getDatum=_r.prototype.getDatum=function(){var t=this.ptr;return Zo(re(t),Qo)},_r.prototype.getPrimem=_r.prototype.getPrimem=function(){var t=this.ptr;return Zo(_e(t),Er)},_r.prototype.getUnit=_r.prototype.getUnit=function(){var t=this.ptr;return Zo(pe(t),Jo)},_r.prototype.isEqual=_r.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!ne(e,t)},_r.prototype.getCode=_r.prototype.getCode=function(){var t=this.ptr;return ie(t)},_r.prototype.getName=_r.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(ce(e,t))},_r.prototype.getType=_r.prototype.getType=function(){var t=this.ptr;return ae(t)},pr.prototype=Object.create(Ko.prototype),pr.prototype.constructor=pr,pr.prototype.__class__=pr,pr.__cache__={},_.PeGeogtran=pr,pr.prototype.isEqual=pr.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!ye(e,t)},pr.prototype.getGeogcs1=pr.prototype.getGeogcs1=function(){var t=this.ptr;return Zo(se(t),_r)},pr.prototype.getGeogcs2=pr.prototype.getGeogcs2=function(){var t=this.ptr;return Zo(Pe(t),_r)},pr.prototype.getParameters=pr.prototype.getParameters=function(){var t=this.ptr;return ge(t)},pr.prototype.loadConstants=pr.prototype.loadConstants=function(){var t=this.ptr;return!!ue(t)},pr.prototype.getCode=pr.prototype.getCode=function(){var t=this.ptr;return fe(t)},pr.prototype.getName=pr.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(be(e,t))},pr.prototype.getType=pr.prototype.getType=function(){var t=this.ptr;return Ee(t)},nr.prototype=Object.create(Ho.prototype),nr.prototype.constructor=nr,nr.prototype.__class__=nr,nr.__cache__={},_.PeGTlistExtended=nr,nr.prototype.getGTlist=nr.prototype.getGTlist=function(t,e,o,r,_,p){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),Zo(de(t,e,o,r,_,p),ir)},nr.prototype.get_PE_GTLIST_OPTS_COMMON=nr.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var t=this.ptr;return Te(t)},Object.defineProperty(nr.prototype,"PE_GTLIST_OPTS_COMMON",{get:nr.prototype.get_PE_GTLIST_OPTS_COMMON}),ir.prototype=Object.create(Ho.prototype),ir.prototype.constructor=ir,ir.prototype.__class__=ir,ir.__cache__={},_.PeGTlistExtendedEntry=ir,ir.prototype.getEntries=ir.prototype.getEntries=function(){var t=this.ptr;return Zo(Oe(t),cr)},ir.prototype.getSteps=ir.prototype.getSteps=function(){var t=this.ptr;return me(t)},ir.prototype.Delete=ir.prototype.Delete=function(t){t&&"object"==typeof t&&(t=t.ptr),he(t)},cr.prototype=Object.create(Ho.prototype),cr.prototype.constructor=cr,cr.prototype.__class__=cr,cr.__cache__={},_.PeGTlistExtendedGTs=cr,cr.prototype.getDirection=cr.prototype.getDirection=function(){var t=this.ptr;return Se(t)},cr.prototype.getGeogtran=cr.prototype.getGeogtran=function(){var t=this.ptr;return Zo(Ne(t),pr)},ar.prototype=Object.create(Ho.prototype),ar.prototype.constructor=ar,ar.prototype.__class__=ar,ar.__cache__={},_.PeHorizon=ar,ar.prototype.getNump=ar.prototype.getNump=function(){var t=this.ptr;return le(t)},ar.prototype.getKind=ar.prototype.getKind=function(){var t=this.ptr;return ve(t)},ar.prototype.getInclusive=ar.prototype.getInclusive=function(){var t=this.ptr;return Me(t)},ar.prototype.getSize=ar.prototype.getSize=function(){var t=this.ptr;return je(t)},ar.prototype.getCoord=ar.prototype.getCoord=function(){var t=this.ptr;return De(t)},yr.prototype=Object.create(Ho.prototype),yr.prototype.constructor=yr,yr.prototype.__class__=yr,yr.__cache__={},_.PeInteger=yr,yr.prototype.get_val=yr.prototype.get_val=function(){var t=this.ptr;return Re(t)},yr.prototype.set_val=yr.prototype.set_val=function(t){var e=this.ptr;t&&"object"==typeof t&&(t=t.ptr),Ce(e,t)},Object.defineProperty(yr.prototype,"val",{get:yr.prototype.get_val,set:yr.prototype.set_val}),yr.prototype.__destroy__=yr.prototype.__destroy__=function(){var t=this.ptr;Ge(t)},sr.prototype=Object.create(Ho.prototype),sr.prototype.constructor=sr,sr.prototype.__class__=sr,sr.__cache__={},_.PeLineType=sr,sr.prototype.geodetic_distance=sr.prototype.geodetic_distance=function(t,e,o,r,_,p,n,i,c,a){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),a&&"object"==typeof a&&(a=a.ptr),Ie(t,e,o,r,_,p,n,i,c,a)},sr.prototype.geodetic_coordinate=sr.prototype.geodetic_coordinate=function(t,e,o,r,_,p,n,i,c){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),Le(t,e,o,r,_,p,n,i,c)},sr.prototype.geodesic_coordinate=sr.prototype.geodesic_coordinate=function(t,e,o,r,_,p,n,i){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),Ue(t,e,o,r,_,p,n,i)},sr.prototype.great_elliptic_distance=sr.prototype.great_elliptic_distance=function(t,e,o,r,_,p,n,i,c){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),we(t,e,o,r,_,p,n,i,c)},Pr.prototype=Object.create(Ho.prototype),Pr.prototype.constructor=Pr,Pr.prototype.__class__=Pr,Pr.__cache__={},_.PeMath=Pr,Pr.prototype.phi_to_eta=Pr.prototype.phi_to_eta=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Fe(t,e)},Pr.prototype.eta_to_phi=Pr.prototype.eta_to_phi=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Ye(t,e)},Pr.prototype.phi_to_phig=Pr.prototype.phi_to_phig=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Xe(t,e)},Pr.prototype.q=Pr.prototype.q=function(t,e,o){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),xe(t,e,o)},Pr.prototype.q90=Pr.prototype.q90=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),He(t,e)},gr.prototype=Object.create(Ho.prototype),gr.prototype.constructor=gr,gr.prototype.__class__=gr,gr.__cache__={},_.PeNotationMgrs=gr,gr.prototype.get_PE_MGRS_STYLE_NEW=gr.prototype.get_PE_MGRS_STYLE_NEW=function(){var t=this.ptr;return ze(t)},Object.defineProperty(gr.prototype,"PE_MGRS_STYLE_NEW",{get:gr.prototype.get_PE_MGRS_STYLE_NEW}),gr.prototype.get_PE_MGRS_STYLE_OLD=gr.prototype.get_PE_MGRS_STYLE_OLD=function(){var t=this.ptr;return Ze(t)},Object.defineProperty(gr.prototype,"PE_MGRS_STYLE_OLD",{get:gr.prototype.get_PE_MGRS_STYLE_OLD}),gr.prototype.get_PE_MGRS_STYLE_AUTO=gr.prototype.get_PE_MGRS_STYLE_AUTO=function(){var t=this.ptr;return We(t)},Object.defineProperty(gr.prototype,"PE_MGRS_STYLE_AUTO",{get:gr.prototype.get_PE_MGRS_STYLE_AUTO}),gr.prototype.get_PE_MGRS_180_ZONE_1_PLUS=gr.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var t=this.ptr;return Be(t)},Object.defineProperty(gr.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:gr.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),gr.prototype.get_PE_MGRS_ADD_SPACES=gr.prototype.get_PE_MGRS_ADD_SPACES=function(){var t=this.ptr;return qe(t)},Object.defineProperty(gr.prototype,"PE_MGRS_ADD_SPACES",{get:gr.prototype.get_PE_MGRS_ADD_SPACES}),ur.prototype=Object.create(Ho.prototype),ur.prototype.constructor=ur,ur.prototype.__class__=ur,ur.__cache__={},_.PeNotationUtm=ur,ur.prototype.get_PE_UTM_OPTS_NONE=ur.prototype.get_PE_UTM_OPTS_NONE=function(){var t=this.ptr;return Ke(t)},Object.defineProperty(ur.prototype,"PE_UTM_OPTS_NONE",{get:ur.prototype.get_PE_UTM_OPTS_NONE}),ur.prototype.get_PE_UTM_OPTS_NS=ur.prototype.get_PE_UTM_OPTS_NS=function(){var t=this.ptr;return ke(t)},Object.defineProperty(ur.prototype,"PE_UTM_OPTS_NS",{get:ur.prototype.get_PE_UTM_OPTS_NS}),ur.prototype.get_PE_UTM_OPTS_NS_STRICT=ur.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var t=this.ptr;return Ve(t)},Object.defineProperty(ur.prototype,"PE_UTM_OPTS_NS_STRICT",{get:ur.prototype.get_PE_UTM_OPTS_NS_STRICT}),ur.prototype.get_PE_UTM_OPTS_ADD_SPACES=ur.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var t=this.ptr;return $e(t)},Object.defineProperty(ur.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:ur.prototype.get_PE_UTM_OPTS_ADD_SPACES}),fr.prototype=Object.create(Ko.prototype),fr.prototype.constructor=fr,fr.prototype.__class__=fr,fr.__cache__={},_.PeParameter=fr,fr.prototype.getValue=fr.prototype.getValue=function(){var t=this.ptr;return Je(t)},fr.prototype.getCode=fr.prototype.getCode=function(){var t=this.ptr;return Qe(t)},fr.prototype.getName=fr.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(to(e,t))},fr.prototype.getType=fr.prototype.getType=function(){var t=this.ptr;return eo(t)},br.prototype=Object.create(Ho.prototype),br.prototype.constructor=br,br.prototype.__class__=br,br.__cache__={},_.PePCSInfo=br,br.prototype.getCentralMeridian=br.prototype.getCentralMeridian=function(){var t=this.ptr;return oo(t)},br.prototype.getDomainMinx=br.prototype.getDomainMinx=function(){var t=this.ptr;return ro(t)},br.prototype.getDomainMiny=br.prototype.getDomainMiny=function(){var t=this.ptr;return _o(t)},br.prototype.getDomainMaxx=br.prototype.getDomainMaxx=function(){var t=this.ptr;return po(t)},br.prototype.getDomainMaxy=br.prototype.getDomainMaxy=function(){var t=this.ptr;return no(t)},br.prototype.getNorthPoleLocation=br.prototype.getNorthPoleLocation=function(){var t=this.ptr;return io(t)},br.prototype.getNorthPoleGeometry=br.prototype.getNorthPoleGeometry=function(){var t=this.ptr;return co(t)},br.prototype.getSouthPoleLocation=br.prototype.getSouthPoleLocation=function(){var t=this.ptr;return ao(t)},br.prototype.getSouthPoleGeometry=br.prototype.getSouthPoleGeometry=function(){var t=this.ptr;return yo(t)},br.prototype.isDensificationNeeded=br.prototype.isDensificationNeeded=function(){var t=this.ptr;return!!so(t)},br.prototype.isGcsHorizonMultiOverlap=br.prototype.isGcsHorizonMultiOverlap=function(){var t=this.ptr;return!!Po(t)},br.prototype.isPannableRectangle=br.prototype.isPannableRectangle=function(){var t=this.ptr;return!!go(t)},br.prototype.generate=br.prototype.generate=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Zo(uo(t,e),br)},br.prototype.get_PE_PCSINFO_OPTION_NONE=br.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var t=this.ptr;return fo(t)},Object.defineProperty(br.prototype,"PE_PCSINFO_OPTION_NONE",{get:br.prototype.get_PE_PCSINFO_OPTION_NONE}),br.prototype.get_PE_PCSINFO_OPTION_DOMAIN=br.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var t=this.ptr;return bo(t)},Object.defineProperty(br.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:br.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),br.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=br.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var t=this.ptr;return Eo(t)},Object.defineProperty(br.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:br.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),br.prototype.get_PE_POLE_POINT=br.prototype.get_PE_POLE_POINT=function(){var t=this.ptr;return To(t)},Object.defineProperty(br.prototype,"PE_POLE_POINT",{get:br.prototype.get_PE_POLE_POINT}),Er.prototype=Object.create(Ko.prototype),Er.prototype.constructor=Er,Er.prototype.__class__=Er,Er.__cache__={},_.PePrimem=Er,Er.prototype.getLongitude=Er.prototype.getLongitude=function(){var t=this.ptr;return Oo(t)},Er.prototype.getCode=Er.prototype.getCode=function(){var t=this.ptr;return mo(t)},Er.prototype.getName=Er.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(ho(e,t))},Er.prototype.getType=Er.prototype.getType=function(){var t=this.ptr;return So(t)},dr.prototype=Object.create(ko.prototype),dr.prototype.constructor=dr,dr.prototype.__class__=dr,dr.__cache__={},_.PeProjcs=dr,dr.prototype.Delete=dr.prototype.Delete=function(){var t=this.ptr;No(t)},dr.prototype.getGeogcs=dr.prototype.getGeogcs=function(){var t=this.ptr;return Zo(lo(t),_r)},dr.prototype.getProjection=dr.prototype.getProjection=function(){var t=this.ptr;return Zo(vo(t),Ko)},dr.prototype.getParameters=dr.prototype.getParameters=function(){var t=this.ptr;return Mo(t)},dr.prototype.getUnit=dr.prototype.getUnit=function(){var t=this.ptr;return Zo(jo(t),Vo)},dr.prototype.loadConstants=dr.prototype.loadConstants=function(){var t=this.ptr;return!!Do(t)},dr.prototype.horizonGcsGenerate=dr.prototype.horizonGcsGenerate=function(){var t=this.ptr;return Zo(Ao(t),ar)},dr.prototype.horizonPcsGenerate=dr.prototype.horizonPcsGenerate=function(){var t=this.ptr;return Zo(Ro(t),ar)},dr.prototype.isEqual=dr.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!Co(e,t)},dr.prototype.getCode=dr.prototype.getCode=function(){var t=this.ptr;return Go(t)},dr.prototype.getName=dr.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(Io(e,t))},dr.prototype.getType=dr.prototype.getType=function(){var t=this.ptr;return Lo(t)},Tr.prototype=Object.create(Ko.prototype),Tr.prototype.constructor=Tr,Tr.prototype.__class__=Tr,Tr.__cache__={},_.PeSpheroid=Tr,Tr.prototype.getAxis=Tr.prototype.getAxis=function(){var t=this.ptr;return Uo(t)},Tr.prototype.getFlattening=Tr.prototype.getFlattening=function(){var t=this.ptr;return wo(t)},Tr.prototype.getCode=Tr.prototype.getCode=function(){var t=this.ptr;return Fo(t)},Tr.prototype.getName=Tr.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(Yo(e,t))},Tr.prototype.getType=Tr.prototype.getType=function(){var t=this.ptr;return Xo(t)},Or.prototype=Object.create(Ho.prototype),Or.prototype.constructor=Or,Or.prototype.__class__=Or,Or.__cache__={},_.PeVersion=Or,Or.prototype.version_string=Or.prototype.version_string=function(){var t=this.ptr;return j(xo(t))},_.ensureCache=Wo,_.ensureString=Bo,_.ensureInt8=qo,_.ensureInt16=function(t){if("object"==typeof t){var e=Wo.alloc(t,y);return Wo.copy(t,y,e),e}return t},_.ensureInt32=function(t){if("object"==typeof t){var e=Wo.alloc(t,s);return Wo.copy(t,s,e),e}return t},_.ensureFloat32=function(t){if("object"==typeof t){var e=Wo.alloc(t,g);return Wo.copy(t,g,e),e}return t},_.ensureFloat64=function(t){if("object"==typeof t){var e=Wo.alloc(t,f);return Wo.copy(t,f,e),e}return t},p}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[353],{12189:(e,t,s)=>{s.d(t,{queryTransformationList:()=>i.C}),s(79187),s(55537);var i=s(39117);s(83661)},76061:(e,t,s)=>{s.d(t,{G:()=>i,S:()=>m});class i{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class m extends i{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}}}]);
@@ -1,2 +1,2 @@
1
- /*! For license information please see f651c05604eab83aef5f.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[224],{87843:(e,t,n)=>{n.r(t),n.d(t,{Label:()=>s});var l=n(34088),a=n(46337),i=n(41557),c=n(93174);const o=a.AH`:host{--calcite-internal-color-focus: var( --calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)) )}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=block]) .container,:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;class s extends i.WF{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=(0,i.lh)({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}static{this.properties={alignment:[3,{},{reflect:!0}],for:[3,{},{reflect:!0}],layout:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.styles=o}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(c.l))}willUpdate(e){e.has("for")&&(0,c.a)(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(c.b))}labelClickHandler(e){"Range"!==window.getSelection()?.type&&this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return a.qy`<div class=${(0,i.CP)("container")}><slot></slot></div>`}}(0,l.c)("calcite-label",s)},93174:(e,t,n)=>{n.d(t,{a:()=>k,b:()=>c,c:()=>m,d:()=>f,g:()=>g,l:()=>i});var l=n(79e3);const a="calciteInternalLabelClick",i="calciteInternalLabelConnected",c="calciteInternalLabelDisconnected",o="calcite-label",s=new WeakMap,r=new WeakMap,d=new WeakMap,b=new WeakMap,h=new Set,u=e=>{const{id:t}=e,n=t&&(0,l.q)(e,{selector:`${o}[for="${t}"]`});if(n)return n;const a=(0,l.l)(e,o);return!a||function(e,t){let n;const l="custom-element-ancestor-check",a=l=>{l.stopImmediatePropagation();const a=l.composedPath();n=a.slice(a.indexOf(t),a.indexOf(e))};e.addEventListener(l,a,{once:!0}),t.dispatchEvent(new CustomEvent(l,{composed:!0,bubbles:!0})),e.removeEventListener(l,a);return n.filter(n=>n!==t&&n!==e).filter(e=>e.tagName?.includes("-")).length>0}(a,e)?null:a};function m(e){if(!e)return;const t=u(e.el);if(r.has(t)&&t===e.labelEl||!t&&h.has(e))return;const n=y.bind(e);if(t){e.labelEl=t;const l=s.get(t)||[];l.push(e),s.set(t,l.sort(p)),r.has(e.labelEl)||(r.set(e.labelEl,v),e.labelEl.addEventListener(a,v)),h.delete(e),document.removeEventListener(i,d.get(e)),b.set(e,n),document.addEventListener(c,n)}else h.has(e)||(n(),document.removeEventListener(c,b.get(e)))}function f(e){if(!e)return;if(h.delete(e),document.removeEventListener(i,d.get(e)),document.removeEventListener(c,b.get(e)),d.delete(e),b.delete(e),!e.labelEl)return;const t=s.get(e.labelEl);1===t.length&&(e.labelEl.removeEventListener(a,r.get(e.labelEl)),r.delete(e.labelEl)),s.set(e.labelEl,t.filter(t=>t!==e).sort(p)),e.labelEl=null}function p(e,t){return(0,l.m)(e.el,t.el)?-1:1}function g(e){return e.label||e.labelEl?.textContent?.trim()||""}function v(e){const t=e.detail.sourceEvent.target,n=s.get(this),l=n.find(e=>e.el===t);if(n.includes(l))return;const a=n[0];a.disabled||a.onLabelClick(e)}function E(){h.has(this)&&m(this)}function y(){h.add(this);const e=d.get(this)||E.bind(this);d.set(this,e),document.addEventListener(i,e)}async function k(e){if(await e.componentOnReady(),s.has(e))return;const t=e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(const e of h)if(e.el===t){m(e);break}})}}}]);
1
+ /*! For license information please see 3266c3392c24ce6cdd83.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[224],{87843:(e,t,n)=>{n.r(t),n.d(t,{Label:()=>s});var l=n(34088),a=n(46337),i=n(93451),c=n(93174);const o=a.AH`:host{--calcite-internal-color-focus: var( --calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)) )}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=block]) .container,:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;class s extends i.WF{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=(0,i.lh)({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}static{this.properties={alignment:[3,{},{reflect:!0}],for:[3,{},{reflect:!0}],layout:[3,{},{reflect:!0}],scale:[3,{},{reflect:!0}]}}static{this.styles=o}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(c.l))}willUpdate(e){e.has("for")&&(0,c.a)(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(c.b))}labelClickHandler(e){"Range"!==window.getSelection()?.type&&this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return a.qy`<div class=${(0,i.CP)("container")}><slot></slot></div>`}}(0,l.c)("calcite-label",s)},93174:(e,t,n)=>{n.d(t,{a:()=>k,b:()=>c,c:()=>m,d:()=>f,g:()=>g,l:()=>i});var l=n(79e3);const a="calciteInternalLabelClick",i="calciteInternalLabelConnected",c="calciteInternalLabelDisconnected",o="calcite-label",s=new WeakMap,r=new WeakMap,d=new WeakMap,b=new WeakMap,h=new Set,u=e=>{const{id:t}=e,n=t&&(0,l.q)(e,{selector:`${o}[for="${t}"]`});if(n)return n;const a=(0,l.l)(e,o);return!a||function(e,t){let n;const l="custom-element-ancestor-check",a=l=>{l.stopImmediatePropagation();const a=l.composedPath();n=a.slice(a.indexOf(t),a.indexOf(e))};e.addEventListener(l,a,{once:!0}),t.dispatchEvent(new CustomEvent(l,{composed:!0,bubbles:!0})),e.removeEventListener(l,a);return n.filter(n=>n!==t&&n!==e).filter(e=>e.tagName?.includes("-")).length>0}(a,e)?null:a};function m(e){if(!e)return;const t=u(e.el);if(r.has(t)&&t===e.labelEl||!t&&h.has(e))return;const n=y.bind(e);if(t){e.labelEl=t;const l=s.get(t)||[];l.push(e),s.set(t,l.sort(p)),r.has(e.labelEl)||(r.set(e.labelEl,v),e.labelEl.addEventListener(a,v)),h.delete(e),document.removeEventListener(i,d.get(e)),b.set(e,n),document.addEventListener(c,n)}else h.has(e)||(n(),document.removeEventListener(c,b.get(e)))}function f(e){if(!e)return;if(h.delete(e),document.removeEventListener(i,d.get(e)),document.removeEventListener(c,b.get(e)),d.delete(e),b.delete(e),!e.labelEl)return;const t=s.get(e.labelEl);1===t.length&&(e.labelEl.removeEventListener(a,r.get(e.labelEl)),r.delete(e.labelEl)),s.set(e.labelEl,t.filter(t=>t!==e).sort(p)),e.labelEl=null}function p(e,t){return(0,l.m)(e.el,t.el)?-1:1}function g(e){return e.label||e.labelEl?.textContent?.trim()||""}function v(e){const t=e.detail.sourceEvent.target,n=s.get(this),l=n.find(e=>e.el===t);if(n.includes(l))return;const a=n[0];a.disabled||a.onLabelClick(e)}function E(){h.has(this)&&m(this)}function y(){h.add(this);const e=d.get(this)||E.bind(this);d.set(this,e),document.addEventListener(i,e)}async function k(e){if(await e.componentOnReady(),s.has(e))return;const t=e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(const e of h)if(e.el===t){m(e);break}})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,3054,3169,8125],{49074:(e,t,n)=>{n.d(t,{fz:()=>i,g7:()=>s,zo:()=>u});var r=n(76061),o=(n(55537),n(39117));n(83661),n(88885),n(79187),n(95213);const a=new o.K;function s(e,t,n){return a.execute(e,t,n,null)}function u(e,t,n){const o=a.executeMany(new r.S(e),new r.S([t]),n,null);return Array.from(o)}function i(){return a.supportsCurves()}},70722:(e,t,n)=>{n.d(t,{d:()=>u,e:()=>a});var r=n(49074),o=n(78125);function a(e,t){const n=(0,o.getSpatialReference)(e);return(0,o.toGeometry)((0,r.g7)((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(n)),n)}const s=(0,r.fz)(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:a,executeMany:function(e,t){const n=e.map(o.fromGeometry),a=(0,o.getSpatialReference)(e);return(0,r.zo)(n,(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(a)).map(e=>(0,o.toGeometry)(e,a))},supportsCurves:s},Symbol.toStringTag,{value:"Module"}))},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class o extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>C,fromGeometry:()=>G,fromMultipoint:()=>M,fromPoint:()=>w,fromPolygon:()=>V,fromPolyline:()=>v,fromSpatialReference:()=>d,getSpatialReference:()=>x,toExtent:()=>R,toGeometry:()=>P,toMultipoint:()=>Z,toPoint:()=>S,toPolygon:()=>_,toPolyline:()=>z});var r=n(83661),o=(n(79187),n(55537)),a=n(95213),s=n(88885),u=n(39117),i=n(5443),c=n(48526),l=n(86738),m=n(39829),f=n(82799),h=(n(90293),n(83299));const p="_gxVersion",y=2,g=1;function x(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function G(e){switch(e.type){case"point":return w(e);case"multipoint":return M(e);case"polyline":return v(e);case"polygon":return V(e);case"extent":return C(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function C(e){if(!e.getCacheValue(p)){const t=new a.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(y,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(g,0,e.zmin,e.zmax),e.setCacheValue(p,t)}return e.getCacheValue(p)}function M(e){if(!e.getCacheValue(p)){const t=new s.M,n=new a.P,r=e.points,o=e.hasM,u=e.hasZ,i=u?3:2;for(let e=0,a=r.length;e<a;e++){const a=r[e];n.setXYCoords(a[0],a[1]),u&&n.setZ(a[2]??0),o&&n.setM(a[i]??NaN),t.add(n)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function w(e){if(!e.getCacheValue(p)){const t=new a.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(p,t)}return e.getCacheValue(p)}function V(e){if(!e.getCacheValue(p)){const{curveRings:t,hasM:n,hasZ:r,rings:o}=e,a=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:o});e.setCacheValue(p,a)}return e.getCacheValue(p)}function v(e){if(!e.getCacheValue(p)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,a=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(p,a)}return e.getCacheValue(p)}function d(e){if(e.wkid)return(0,u.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,u.b)(t):null}function P(e,t){if(e)switch(e.getGeometryType()){case o.G.enumPoint:return S(e,t);case o.G.enumEnvelope:return R(e,t);case o.G.enumMultiPoint:return Z(e,t);case o.G.enumPolyline:return z(e,t);case o.G.enumPolygon:return _(e,t)}return null}function R(e,t){if(e.isEmpty())return null;const n=new i.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(y,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(g,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(p,e),n}function Z(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),o=n.hasZ(),s=[],u=new a.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,u);const n=[u.getX(),u.getY()];o&&n.push(u.getZ()),r&&n.push(u.getM()),s.push(n)}const i=new c.A({hasM:r,hasZ:o,points:s,spatialReference:t});return i.setCacheValue(p,e),i}function S(e,t){if(e instanceof r.P)return new l.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new l.A({x:e.getX(),y:e.getY(),spatialReference:t}),o=e.getDescription();return o.hasM()&&(n.m=e.getM()),o.hasZ()&&(n.z=e.getZ()),n.setCacheValue(p,e),n}function _(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}function z(e,t){if(e.isEmpty())return null;const n=f.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}},93054:(e,t,n)=>{n.d(t,{execute:()=>r.e}),n(49074),n(78125);var r=n(70722)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,591,3169,8125],{60591:(e,t,n)=>{n.d(t,{execute:()=>s.e}),n(4576),n(86211),n(70787),n(78125);var s=n(92523)},64523:(e,t,n)=>{n.d(t,{O:()=>c});var s=n(31635),r=n(76061),i=n(55537),a=n(88885),o=n(95213),l=n(83661),u=n(5247);class c{getOperatorType(){return 10204}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,n,s){return new m(e,t,n,s)}execute(e,t,n,s){return e||(0,i.a)("null param is not allowed."),new m(null,t,n,s).generalize(e)}}class m extends r.G{constructor(e,t,n,s){super(),this.m_pline=null,this.m_point=new o.P,this.m_stack=[],this.m_resultstack=[],this.m_callCount=0,this.m_progressTracker=s,this.m_geoms=e,this.m_maxDeviation=t,this.m_bRemoveDegenerateParts=n}tock(){return!0}getRank(){return 1}next(){const e=this.m_geoms.next();return null===e?null:((0,i.c)(e),this.generalize(e))}getGeometryID(){return this.m_geoms.getGeometryID()}generalize(e){const t=e.getGeometryType();if((0,i.e)(t))return e;if(t===i.G.enumEnvelope){const t=new a.a({vd:e.getDescription()});return t.addEnvelope(e,!1),this.generalize(t)}if((0,i.f)(t)){const t=new a.P({vd:e.getDescription()});return t.addSegment(e,!0),this.generalize(t)}if((0,i.h)(t)||(0,i.t)(""),e.isEmpty()||this.m_maxDeviation<=0)return e;const n=(new u.O).execute(e,0,.05*this.m_maxDeviation,0,this.m_progressTracker);e.hasNonLinearSegments()&&(this.m_maxDeviation*=.95);const r=n,o=e.createInstance();o.getGeometryType()===i.G.enumPolygon&&o.setFillRule(e.getFillRule()),this.m_xy=r.getAttributeStreamRef(0);{const e={stack:[],error:void 0,hasError:!1};try{const t=new a.L;this.m_pline=t,(0,s.mS)(e,(0,l.h)(()=>{this.m_pline=null},!1),!1);for(let e=0,t=r.getPathCount();e<t;e++)this.generalizePath(r.getImpl(),e,o.getImpl())}catch(t){e.error=t,e.hasError=!0}finally{(0,s.hk)(e)}}return this.m_resultstack.length=0,this.m_stack.length=0,o}generalizePath(e,t,n){if(e.getPathSize(t)<2)return;this.m_resultstack.length=0,this.m_stack.length=0;const s=e.getPathStart(t),r=e.getPathEnd(t)-1,i=e.isClosedPath(t),a=e.isClosedPathInXYPlane(t);let o=0,u=-1;this.m_stack.push(i?s:r),this.m_stack.push(s);let c=!1,m=!1;for(!this.m_bRemoveDegenerateParts&&a&&(c=!0,m=!0);this.m_stack.length>1;){const t=this.m_stack.at(-1);this.m_stack.pop();const n=this.m_stack.at(-1);let s=e.getXY(t);this.m_pline.setStartXY(s),s=e.getXY(n),this.m_pline.setEndXY(s);const i=[Number.NaN];let a=this.findGreatestDistance(t,n,r,i);a>=0&&(c?c=!1:(m&&i[0]>o&&(o=i[0],u=a),i[0]<=this.m_maxDeviation&&(a=-1))),a>=0?(this.m_stack.push(a),this.m_stack.push(t)):this.m_resultstack.push(t)}i||this.m_resultstack.push(this.m_stack[0]);const h=this.m_resultstack.length;if(h===e.getPathSize(t)&&h===this.m_stack.length)n.addPath(e,t,!0);else if(this.m_resultstack.length>0){if(this.m_bRemoveDegenerateParts&&this.m_resultstack.length<=2){if(i||1===this.m_resultstack.length)return;if(l.P.distance(e.getXY(this.m_resultstack[0]),e.getXY(this.m_resultstack[1]))<=this.m_maxDeviation)return}if(m&&u>=0&&o<=this.m_maxDeviation){const e=this.m_resultstack.at(-1)>u;this.m_resultstack.push(u),e&&(this.m_resultstack[this.m_resultstack.length-2]=(0,l.c)(this.m_resultstack[this.m_resultstack.length-1],this.m_resultstack[this.m_resultstack.length-1]=this.m_resultstack[this.m_resultstack.length-2]))}for(let t=0,s=this.m_resultstack.length;t<s;t++)e.getPointByVal(this.m_resultstack[t],this.m_point),0===t?n.startPathPoint(this.m_point):n.lineToPoint(this.m_point);if(i){for(let e=this.m_resultstack.length;e<3;e++)n.lineToPoint(this.m_point);n.closePathWithLine()}}}findGreatestDistance(e,t,n,s){let r=t-1;t<=e&&(r=n);let i=-1,a=0;const o=new l.P;for(let t=e+1;t<=r;t++){this.m_xy.queryPoint2D(2*t,o);const e=o.x,n=o.y,s=this.m_pline.getClosestCoordinate(o,!1);o.assign(this.m_pline.getCoord2D(s)),o.x-=e,o.y-=n;const r=o.length();r>a&&(i=t,a=r),this.m_callCount++}return s[0]=a,i}}},70787:(e,t,n)=>{n.d(t,{fz:()=>o,g7:()=>i,zo:()=>a});var s=n(76061);const r=new(n(64523).O);function i(e,t,n){return r.execute(e,t,n,null)}function a(e,t,n){const i=r.executeMany(new s.S(e),t,n,null);return Array.from(i)}function o(){return r.supportsCurves()}},76061:(e,t,n)=>{n.d(t,{G:()=>s,S:()=>r});class s{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class r extends s{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>x,fromGeometry:()=>k,fromMultipoint:()=>P,fromPoint:()=>G,fromPolygon:()=>d,fromPolyline:()=>v,fromSpatialReference:()=>C,getSpatialReference:()=>y,toExtent:()=>M,toGeometry:()=>w,toMultipoint:()=>R,toPoint:()=>D,toPolygon:()=>V,toPolyline:()=>z});var s=n(83661),r=(n(79187),n(55537)),i=n(95213),a=n(88885),o=n(39117),l=n(5443),u=n(48526),c=n(86738),m=n(39829),h=n(82799),g=(n(90293),n(83299));const f="_gxVersion",p=2,_=1;function y(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function k(e){switch(e.type){case"point":return G(e);case"multipoint":return P(e);case"polyline":return v(e);case"polygon":return d(e);case"extent":return x(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function x(e){if(!e.getCacheValue(f)){const t=new i.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(p,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(_,0,e.zmin,e.zmax),e.setCacheValue(f,t)}return e.getCacheValue(f)}function P(e){if(!e.getCacheValue(f)){const t=new a.M,n=new i.P,s=e.points,r=e.hasM,o=e.hasZ,l=o?3:2;for(let e=0,i=s.length;e<i;e++){const i=s[e];n.setXYCoords(i[0],i[1]),o&&n.setZ(i[2]??0),r&&n.setM(i[l]??NaN),t.add(n)}e.setCacheValue(f,t)}return e.getCacheValue(f)}function G(e){if(!e.getCacheValue(f)){const t=new i.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(f,t)}return e.getCacheValue(f)}function d(e){if(!e.getCacheValue(f)){const{curveRings:t,hasM:n,hasZ:s,rings:r}=e,i=(0,g.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:s,rings:r});e.setCacheValue(f,i)}return e.getCacheValue(f)}function v(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:n,hasZ:s,paths:r}=e,i=(0,g.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:s,paths:r});e.setCacheValue(f,i)}return e.getCacheValue(f)}function C(e){if(e.wkid)return(0,o.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,o.b)(t):null}function w(e,t){if(e)switch(e.getGeometryType()){case r.G.enumPoint:return D(e,t);case r.G.enumEnvelope:return M(e,t);case r.G.enumMultiPoint:return R(e,t);case r.G.enumPolyline:return z(e,t);case r.G.enumPolygon:return V(e,t)}return null}function M(e,t){if(e.isEmpty())return null;const n=new l.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),s=e.getDescription();if(s.hasM()){const t=e.queryInterval(p,0);n.mmin=t.vmin,n.mmax=t.vmax}if(s.hasZ()){const t=e.queryInterval(_,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(f,e),n}function R(e,t){if(e.isEmpty())return null;const n=e.getDescription(),s=n.hasM(),r=n.hasZ(),a=[],o=new i.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,o);const n=[o.getX(),o.getY()];r&&n.push(o.getZ()),s&&n.push(o.getM()),a.push(n)}const l=new u.A({hasM:s,hasZ:r,points:a,spatialReference:t});return l.setCacheValue(f,e),l}function D(e,t){if(e instanceof s.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),r=e.getDescription();return r.hasM()&&(n.m=e.getM()),r.hasZ()&&(n.z=e.getZ()),n.setCacheValue(f,e),n}function V(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,g.toGeometry)(e,null)});return n.setCacheValue(f,e),n}function z(e,t){if(e.isEmpty())return null;const n=h.A.fromJSON({spatialReference:t,...(0,g.toGeometry)(e,null)});return n.setCacheValue(f,e),n}},92523:(e,t,n)=>{n.d(t,{e:()=>o,g:()=>u});var s=n(4576),r=n(86211),i=n(70787),a=n(78125);function o(e,t,n={}){const{removeDegenerateParts:s=!1,unit:o}=n,l=(0,a.getSpatialReference)(e);return o&&(t=(0,r.UW)(t,o,l)),(0,a.toGeometry)((0,i.g7)((0,a.fromGeometry)(e),t,s),l)}const l=(0,i.fz)(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:o,executeMany:function(e,t,n={}){const{removeDegenerateParts:o=!1,unit:l}=n,u=e.map(a.fromGeometry),c=(0,a.getSpatialReference)(e);return l&&(t=(0,r.UW)(t,l,c)),(0,i.zo)(u,t,o).map(e=>(0,a.toGeometry)(e,c)).filter(s.Ru)},supportsCurves:l},Symbol.toStringTag,{value:"Module"}))}}]);