@arcgis/core 4.33.0-next.20250206 → 4.33.0-next.20250207

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 (115) hide show
  1. package/arcade.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/0a8e388e96af44deeabb.js +1 -0
  4. package/assets/esri/core/workers/chunks/{38cd7745b8ef1b8b6196.js → 12d6baeffd55a98a7c75.js} +1 -1
  5. package/assets/esri/core/workers/chunks/143a193fa3a6e645c8ac.js +1 -0
  6. package/assets/esri/core/workers/chunks/308ec51ff4a66f7fcb0d.js.LICENSE.txt +1 -1
  7. package/assets/esri/core/workers/chunks/{72cf9192292e5c85c6df.js → 32d3657dcae89b740f8b.js} +2 -2
  8. package/assets/esri/core/workers/chunks/{72cf9192292e5c85c6df.js.LICENSE.txt → 32d3657dcae89b740f8b.js.LICENSE.txt} +1 -1
  9. package/assets/esri/core/workers/chunks/354531dc2f0dea2ad96f.js.LICENSE.txt +1 -1
  10. package/assets/esri/core/workers/chunks/35e4af82a08b4eadbfab.js +1 -0
  11. package/assets/esri/core/workers/chunks/369a2b8484a8807bde38.js +1 -0
  12. package/assets/esri/core/workers/chunks/4040158835f9036967cd.js +2 -0
  13. package/assets/esri/core/workers/chunks/{1a2e1a414e651e988435.js.LICENSE.txt → 4040158835f9036967cd.js.LICENSE.txt} +1 -6
  14. package/assets/esri/core/workers/chunks/459af0c3d62c3ed11c19.js +1 -0
  15. package/assets/esri/core/workers/chunks/53810519ff5922b42cd2.js +1 -0
  16. package/assets/esri/core/workers/chunks/{15f850c9a1154fc57e5a.js → 5721557a1d8eab23a55b.js} +1 -1
  17. package/assets/esri/core/workers/chunks/594d923400fd74881833.js +1 -0
  18. package/assets/esri/core/workers/chunks/62a1d60ad4bf6469c4dd.js +1 -0
  19. package/assets/esri/core/workers/chunks/{81aa8cc289fd02ca4da6.js → 7058001bf66f9f3d5d45.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{e8ae8a11d8439e2a66ad.js → 706f867a9034d62a8ef7.js} +1 -1
  21. package/assets/esri/core/workers/chunks/77764ca90bdd13ee2167.js.LICENSE.txt +1 -1
  22. package/assets/esri/core/workers/chunks/{1ab83753d9eec0463461.js → 7b367bb0ed9c218ca595.js} +1 -1
  23. package/assets/esri/core/workers/chunks/8191dd3d7451b2e7b95e.js +1 -0
  24. package/assets/esri/core/workers/chunks/8c32cee395da0a7b9a8e.js +1 -0
  25. package/assets/esri/core/workers/chunks/{48ecc5a74fecbb2b9c6f.js → 8d8f5f08d730270e1165.js} +1 -1
  26. package/assets/esri/core/workers/chunks/94225d92afbdb10dfedb.js +1 -0
  27. package/assets/esri/core/workers/chunks/94490937dca566fe2640.js +1 -0
  28. package/assets/esri/core/workers/chunks/{b9ce0049e27a3e1ed9f9.js → 9b2fab133786e5d47631.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{28374a64790342e1b5ae.js → 9d61590c4d21c7421925.js} +1 -1
  30. package/assets/esri/core/workers/chunks/b21b152fa15896577242.js.LICENSE.txt +1 -1
  31. package/assets/esri/core/workers/chunks/{5a25cef6355fd20e44e7.js → b765670b47d209d7655a.js} +2 -2
  32. package/assets/esri/core/workers/chunks/{5a25cef6355fd20e44e7.js.LICENSE.txt → b765670b47d209d7655a.js.LICENSE.txt} +1 -1
  33. package/assets/esri/core/workers/chunks/d29c3bf29fcd7fa31f1a.js +1 -0
  34. package/assets/esri/core/workers/chunks/d339dee99c4820b63f39.js +1 -0
  35. package/assets/esri/core/workers/chunks/de1f3c4b8000c2d73013.js +1 -0
  36. package/assets/esri/core/workers/chunks/e4b3f2d5c43518b0cde7.js +1 -0
  37. package/assets/esri/core/workers/chunks/e5e3b6d00d27b5bb354f.js +1 -0
  38. package/assets/esri/core/workers/chunks/f14b318bab5efcf43419.js +1 -0
  39. package/assets/esri/core/workers/chunks/{24e47f748f0e4f815c6e.js → f32ca4381e804cc3481e.js} +1 -1
  40. package/assets/esri/core/workers/chunks/f9070edd8e0b2a57af79.js +1 -0
  41. package/assets/esri/themes/base/widgets/_ItemList.scss +6 -0
  42. package/assets/esri/themes/dark/main.css +1 -1
  43. package/assets/esri/themes/light/main.css +1 -1
  44. package/assets/esri/themes/light/view.css +1 -1
  45. package/interfaces.d.ts +58 -56
  46. package/layers/FeatureLayer.js +1 -1
  47. package/layers/SubtypeGroupLayer.js +1 -1
  48. package/layers/WCSLayer.js +1 -1
  49. package/layers/graphics/data/QueryEngineCapabilities.js +1 -1
  50. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  51. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  52. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  53. package/layers/graphics/sources/support/clientSideDefaults.js +1 -1
  54. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  55. package/layers/mixins/BlendLayer.js +1 -1
  56. package/layers/mixins/FeatureLayerBase.js +1 -1
  57. package/layers/mixins/OperationalLayer.js +1 -1
  58. package/layers/mixins/operationalLayerModuleMap.js +1 -1
  59. package/layers/support/SubtypeSublayer.js +1 -1
  60. package/layers/support/arcadeUtils.js +1 -1
  61. package/layers/support/commonProperties.js +1 -1
  62. package/layers/support/layersCreator.js +1 -1
  63. package/package.json +2 -2
  64. package/portal/support/layersLoader.js +1 -1
  65. package/portal/support/loadUtils.js +1 -1
  66. package/rest/imageService.js +1 -1
  67. package/rest/support/ImageSampleParameters.js +1 -1
  68. package/rest/support/ImageSampleResult.js +1 -1
  69. package/rest/support/ImageVolumeResult.js +1 -1
  70. package/support/TablesMixin.js +1 -1
  71. package/support/revision.js +1 -1
  72. package/symbols/cim/cimAnalyzer.js +1 -1
  73. package/symbols/cim/fitVectorMarker.js +5 -0
  74. package/symbols/support/previewCIMSymbol.js +1 -1
  75. package/views/2d/engine/webgl/TextureManager.js +1 -1
  76. package/views/2d/layers/features/schema/SourceSchema.js +1 -1
  77. package/views/2d/layers/features/sources/FeatureSource.js +1 -1
  78. package/views/2d/layers/features/sources/FeatureSourceQueryInfo.js +1 -1
  79. package/views/2d/layers/features/sources/strategies/DrillDownTileLoadStrategy.js +1 -1
  80. package/views/2d/layers/features/sources/strategies/PagedTileLoadStrategy.js +1 -1
  81. package/views/2d/layers/features/sources/strategies/ParquetLoadStrategy.js +1 -1
  82. package/views/2d/layers/features/sources/strategies/SnapshotLoadStrategy.js +1 -1
  83. package/views/2d/layers/features/sources/strategies/StreamLoadStrategy.js +1 -1
  84. package/views/3d/webgl-engine/parts/RenderView.js +1 -1
  85. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  86. package/widgets/Editor/EditorViewModel.js +1 -1
  87. package/widgets/Editor/UpdateWorkflow.js +1 -1
  88. package/widgets/Editor/VisibleElements.js +1 -1
  89. package/widgets/Editor/components/FeatureList.js +1 -1
  90. package/widgets/Editor/components/UpdateFeaturePanelContent.js +1 -1
  91. package/widgets/Editor/workflowUtils.js +1 -1
  92. package/widgets/Editor.js +1 -1
  93. package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
  94. package/widgets/Sketch.js +1 -1
  95. package/widgets/support/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
  96. package/assets/esri/core/workers/chunks/07bff9e742f3e5877f3f.js +0 -1
  97. package/assets/esri/core/workers/chunks/1a2e1a414e651e988435.js +0 -2
  98. package/assets/esri/core/workers/chunks/287362f9af132fafe4de.js +0 -1
  99. package/assets/esri/core/workers/chunks/2adc533dadcb018a9755.js +0 -1
  100. package/assets/esri/core/workers/chunks/2ea5e5e6c4660a06b516.js +0 -1
  101. package/assets/esri/core/workers/chunks/3984bf01f055fc42bfbf.js +0 -1
  102. package/assets/esri/core/workers/chunks/41cd1a5c99ab3bbd1fb4.js +0 -1
  103. package/assets/esri/core/workers/chunks/5e7f16b312077ca8c18d.js +0 -1
  104. package/assets/esri/core/workers/chunks/6ef2514a6b7bbfb8e37d.js +0 -1
  105. package/assets/esri/core/workers/chunks/82d26884127ed772cc4b.js +0 -1
  106. package/assets/esri/core/workers/chunks/918bdba41fa470cf77fd.js +0 -1
  107. package/assets/esri/core/workers/chunks/91d2bdfa6e34c10b7f50.js +0 -1
  108. package/assets/esri/core/workers/chunks/991e0f619f1f81f94d56.js +0 -1
  109. package/assets/esri/core/workers/chunks/9a27824d94df702e6e28.js +0 -1
  110. package/assets/esri/core/workers/chunks/c1fd87af3129873369fd.js +0 -1
  111. package/assets/esri/core/workers/chunks/c4c2b94e5cee7b824093.js +0 -1
  112. package/assets/esri/core/workers/chunks/c85374360ac5e169af16.js +0 -1
  113. package/assets/esri/core/workers/chunks/c94ec324ecad77c53a87.js +0 -1
  114. package/assets/esri/core/workers/chunks/d175953337fa655dc6b0.js +0 -1
  115. package/assets/esri/core/workers/chunks/e26dc0c1654316bb1558.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2165],{38961:(e,t,r)=>{r.d(t,{A:()=>u});var a=r(90237),n=r(5503),i=r(36708),s=r(10107),o=r(40608),l=r(80559);let c=class extends n.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,l.fm)((()=>this._refresh()),i.OH))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new n.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const a of t)if(a){if(r(a)){const t=this.indexOf(a,e);t>=0?t!==e&&this.reorder(a,e):this.add(a,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(a);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,a._)([(0,s.MZ)()],c.prototype,"getCollections",void 0),(0,a._)([(0,s.MZ)()],c.prototype,"getChildrenFunction",void 0),(0,a._)([(0,s.MZ)()],c.prototype,"itemFilterFunction",void 0),c=(0,a._)([(0,o.$)("esri.core.CollectionFlattener")],c);const u=c},62885:(e,t,r)=>{r.d(t,{H:()=>i,V:()=>n});var a=r(5503);function n(e,t,r=a.A){return t||(t=new r),t===e||(t.removeAll(),(n=e)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?t.addMany(e):e&&t.add(e)),t;var n}function i(e){return e}},81583:(e,t,r)=>{r.d(t,{L:()=>o,g:()=>s});var a=r(60999),n=r(5503),i=r(92474);async function s(e,t){return await e.load(),o(e,t)}async function o(e,t){const r=[],s=(...e)=>{for(const t of e)null!=t&&(Array.isArray(t)?s(...t):n.A.isCollection(t)?t.forEach((e=>s(e))):i.A.isLoadable(t)&&r.push(t))};t(s);let o=null;if(await(0,a.Tj)(r,(async e=>{const t=await(0,a.Ke)(function(e){return"loadAll"in e&&"function"==typeof e.loadAll}(e)?e.loadAll():e.load());!1!==t.ok||o||(o=t)})),o)throw o.error;return e}},36708:(e,t,r)=>{r.d(t,{C_:()=>p,OH:()=>h,Vh:()=>m,on:()=>y,pc:()=>g,wB:()=>l,z7:()=>c}),r(60999),r(5503);var a=r(37955),n=r(36563),i=r(97768),s=r(74887),o=r(14012);function l(e,t,r={}){return u(e,t,r,d)}function c(e,t,r={}){return u(e,t,r,f)}function u(e,t,r={},a){let n=null;const s=r.once?(e,r)=>{a(e)&&((0,i.xt)(n),t(e,r))}:(e,r)=>{a(e)&&t(e,r)};if(n=(0,o.Cn)(e,s,r.sync,r.equals),r.initial){const t=e();s(t,t)}return n}function y(e,t,r,s={}){let o=null,c=null,u=null;function y(){o&&c&&(c.remove(),s.onListenerRemove?.(o),o=null,c=null)}function p(e){s.once&&s.once&&(0,i.xt)(u),r(e)}const d=l(e,((e,r)=>{y(),(0,a.wb)(e)&&(o=e,c=(0,a.on)(e,t,p),s.onListenerAdd?.(e))}),{sync:s.sync,initial:!0});return u=(0,n.hA)((()=>{d.remove(),y()})),u}function p(e,t){return function(e,t,r){if((0,s.G4)(r))return Promise.reject((0,s.NK)());const a=e();if(t?.(a))return Promise.resolve(a);let o=null;function l(){o=(0,i.xt)(o)}return new Promise(((a,i)=>{o=(0,n.vE)([(0,s.u7)(r,(()=>{l(),i((0,s.NK)())})),u(e,(e=>{l(),a(e)}),{sync:!1,once:!0},t??d)])}))}(e,f,t)}function d(e){return!0}function f(e){return!!e}r(80559);const h={sync:!0},m={initial:!0},g={sync:!0,initial:!0}},85989:(e,t,r)=>{r.r(t),r.d(t,{default:()=>E});var a=r(90237),n=r(38961),i=r(81583),s=r(53966),o=r(92071),l=r(74887),c=r(36708),u=r(10107),y=(r(44208),r(87811),r(88620)),p=r(36005),d=r(40608),f=r(43937),h=r(35666),m=r(4146),g=r(63074),v=r(16131),L=r(8303),b=r(25036),w=r(75356),S=r(4513),I=r(80812),A=r(5503),M=r(62885);function C(e,t,r){let a,n;if(e)for(let i=0,s=e.length;i<s;i++){if(a=e.at(i),a?.[t]===r)return a;if("group"===a?.type&&(n=C(a.layers,t,r),n))return n}}const T=e=>{let t=class extends e{constructor(...e){super(...e),this.layers=new A.A;const t=e=>{e.parent=this,this.layerAdded(e),"elevation"!==e.type&&"base-elevation"!==e.type||s.A.getLogger(this).error(`Layer 'title:${e.title}, id:${e.id}' of type '${e.type}' is not supported as an operational layer and will therefore be ignored.`)},r=e=>{e.parent=null,this.layerRemoved(e)};this.addHandles([this.layers.on("before-add",(e=>{if(e.item===this)return e.preventDefault(),void s.A.getLogger(this).error("#add()","Cannot add layer to itself.");(e=>{e.parent&&"remove"in e.parent&&e.parent.remove(e)})(e.item)})),this.layers.on("after-add",(e=>t(e.item))),this.layers.on("after-remove",(e=>r(e.item)))])}destroy(){const e=this.layers.toArray();for(const t of e)t.destroy();this.layers.destroy()}set layers(e){this._set("layers",(0,M.V)(e,this._get("layers")))}add(e,t){const r=this.layers;if(t=r.getNextIndex(t),e instanceof m.A){const a=e;a.parent===this?this.reorder(a,t):r.add(a,t)}else(0,l.$X)(e)?e.then((e=>{this.destroyed||this.add(e,t)})):s.A.getLogger(this).error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")}addMany(e,t){const r=this.layers;let a=r.getNextIndex(t);e.slice().forEach((e=>{e.parent!==this?(r.add(e,a),a+=1):this.reorder(e,a)}))}findLayerById(e){return C(this.layers,"id",e)}findLayerByUid(e){return C(this.layers,"uid",e)}remove(e){return this.layers.remove(e)}removeMany(e){return this.layers.removeMany(e)}removeAll(){return this.layers.removeAll()}reorder(e,t){return this.layers.reorder(e,t)}layerAdded(e){}layerRemoved(e){}};return(0,a._)([(0,u.MZ)()],t.prototype,"layers",null),t=(0,a._)([(0,d.$)("esri.support.LayersMixin")],t),t},x=new Set(["feature","subtype-group"]);function _(e,t,r){if(e)for(let a=0,n=e.length;a<n;a++){const n=e.at(a);if(n[t]===r)return n;if("group"===n?.type){const e=_(n.tables,t,r);if(e)return e}}}const G=e=>{let t=class extends e{constructor(...e){super(...e),this.tables=new A.A,this.addHandles([this.tables.on("after-add",(e=>{const t=e.item;t.parent&&t.parent!==this&&"tables"in t.parent&&t.parent.tables.remove(t),t.parent=this,x.has(t.type)||s.A.getLogger(this).error(`Layer 'title:${t.title}, id:${t.id}' of type '${t.type}' is not supported as a table and will therefore be ignored.`)})),this.tables.on("after-remove",(e=>{e.item.parent=null}))])}destroy(){const e=this.tables.toArray();for(const t of e)t.destroy();this.tables.destroy()}set tables(e){this._set("tables",(0,M.V)(e,this._get("tables")))}findTableById(e){return _(this.tables,"id",e)}findTableByUid(e){return _(this.tables,"uid",e)}};return(0,a._)([(0,u.MZ)()],t.prototype,"tables",null),t=(0,a._)([(0,d.$)("esri.support.TablesMixin")],t),t},F=Symbol("WebScene");var P=r(92935),O=r(26121),$=r(751);let N=class extends((0,g.dM)((0,b.j)((0,v.q)((0,L.A)(G(T((0,o.P)(m.A)))))))){constructor(e){var t;super(e),this.allLayers=new n.A({getCollections:()=>[this.layers],getChildrenFunction:e=>"layers"in e?e.layers:null}),this.allTables=(t=this,new n.A({getCollections:()=>[t.tables,t.layers],getChildrenFunction:e=>{const t=[];return"tables"in e&&t.push(e.tables),"layers"in e&&t.push(e.layers),t},itemFilterFunction:e=>{const t=e.parent;return!!t&&"tables"in t&&t.tables.includes(e)}})),this.fullExtent=void 0,this.operationalLayerType="GroupLayer",this.spatialReference=void 0,this.type="group",this._debouncedSaveOperations=(0,l.sg)((async(e,t,a)=>{const{save:n,saveAs:i}=await r.e(2958).then(r.bind(r,32958));switch(e){case P.X.SAVE:return n(this,t);case P.X.SAVE_AS:return i(this,a,t)}}))}initialize(){this._enforceVisibility(this.visibilityMode,this.visible),this.addHandles([(0,c.wB)((()=>{let e=this.parent;for(;e&&"parent"in e&&e.parent;)e=e.parent;return e&&F in e}),(e=>{const t="prevent-adding-tables";this.removeHandles(t),e&&(this.tables.removeAll(),this.addHandles((0,c.on)((()=>this.tables),"before-add",(e=>{e.preventDefault(),s.A.getLogger(this).errorOnce("tables","tables in group layers in a webscene are not supported. Please move the tables from the group layer to the webscene if you want to persist them.")})),t))}),c.pc),(0,c.wB)((()=>this.visible),this._onVisibilityChange.bind(this),c.OH)])}destroy(){this.allLayers.destroy(),this.allTables.destroy()}get sourceIsPortalItem(){return this.portalItem&&this.originIdOf("portalItem")===h.Gr.USER}_writeLayers(e,t,r,a){const n=[];if(!e)return n;e.forEach((e=>{const t=(0,$.CJ)(e,a.webmap?a.webmap.getLayerJSONFromResourceInfo(e):null,a);t?.layerType&&n.push(t)})),t.layers=n}set portalItem(e){this._set("portalItem",e)}readPortalItem(e,t,r){const{itemId:a,layerType:n}=t;if("GroupLayer"===n&&a)return new I.default({id:a,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}set visibilityMode(e){const t=this._get("visibilityMode")!==e;this._set("visibilityMode",e),t&&this._enforceVisibility(e,this.visible)}async beforeSave(){return(0,O.d)(this)}load(e){const t=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Group Layer","Scene Service"],layerModuleTypeMap:S.S,populateGroupLayer:w.N},e).catch((e=>{if((0,l.QP)(e),this.sourceIsPortalItem)throw e}));return this.addResolvingPromise(t),Promise.resolve(this)}async loadAll(){return(0,i.g)(this,(e=>{e(this.layers,this.tables)}))}async save(e){return this._debouncedSaveOperations(P.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(P.X.SAVE_AS,t,e)}layerAdded(e){e.visible&&"exclusive"===this.visibilityMode?this._turnOffOtherLayers(e):"inherited"===this.visibilityMode&&(e.visible=this.visible),this.hasHandles(e.uid)?console.error(`Layer read to Grouplayer: uid=${e.uid}`):this.addHandles((0,c.wB)((()=>e.visible),(t=>this._onChildVisibilityChange(e,t)),c.OH),e.uid)}layerRemoved(e){this.removeHandles(e.uid),this._enforceVisibility(this.visibilityMode,this.visible)}_turnOffOtherLayers(e){this.layers.forEach((t=>{t!==e&&(t.visible=!1)}))}_enforceVisibility(e,t){if(!(0,y.oY)(this).initialized)return;const r=this.layers;let a=r.find((e=>e.visible));switch(e){case"exclusive":r.length&&!a&&(a=r.at(0),a.visible=!0),this._turnOffOtherLayers(a);break;case"inherited":r.forEach((e=>{e.visible=t}))}}_onVisibilityChange(e){"inherited"===this.visibilityMode&&this.layers.forEach((t=>{t.visible=e}))}_onChildVisibilityChange(e,t){switch(this.visibilityMode){case"exclusive":t?this._turnOffOtherLayers(e):this._isAnyLayerVisible()||(e.visible=!0);break;case"inherited":e.visible=this.visible}}_isAnyLayerVisible(){return this.layers.some((e=>e.visible))}};(0,a._)([(0,u.MZ)({readOnly:!0,dependsOn:[]})],N.prototype,"allLayers",void 0),(0,a._)([(0,u.MZ)({readOnly:!0})],N.prototype,"allTables",void 0),(0,a._)([(0,u.MZ)({json:{read:!0,write:!0}})],N.prototype,"blendMode",void 0),(0,a._)([(0,u.MZ)()],N.prototype,"fullExtent",void 0),(0,a._)([(0,u.MZ)({readOnly:!0})],N.prototype,"sourceIsPortalItem",null),(0,a._)([(0,u.MZ)({json:{read:!1,write:{ignoreOrigin:!0}}})],N.prototype,"layers",void 0),(0,a._)([(0,f.K)("layers")],N.prototype,"_writeLayers",null),(0,a._)([(0,u.MZ)({type:["GroupLayer"]})],N.prototype,"operationalLayerType",void 0),(0,a._)([(0,u.MZ)({json:{origins:{"web-map":{read:!1,write:{overridePolicy(e,t,r){return{enabled:"Group Layer"===e?.type&&r?.initiator!==this}}}},"web-scene":{read:!1,write:!1}}}})],N.prototype,"portalItem",null),(0,a._)([(0,p.w)("web-map","portalItem",["itemId"])],N.prototype,"readPortalItem",null),(0,a._)([(0,f.K)("web-map","portalItem",{itemId:{type:String}})],N.prototype,"writePortalItem",null),(0,a._)([(0,u.MZ)()],N.prototype,"spatialReference",void 0),(0,a._)([(0,u.MZ)({json:{read:!1},readOnly:!0,value:"group"})],N.prototype,"type",void 0),(0,a._)([(0,u.MZ)({type:["independent","inherited","exclusive"],value:"independent",json:{write:!0,origins:{"web-map":{type:["independent","exclusive"],write:(e,t,r)=>{"inherited"!==e&&(t[r]=e)}}}}})],N.prototype,"visibilityMode",null),N=(0,a._)([(0,d.$)("esri.layers.GroupLayer")],N);const E=N},76369:(e,t,r)=>{r.d(t,{LF:()=>I,M9:()=>A});var a=r(49186),n=r(93637),i=r(40876),s=r(59247),o=r(27865);function l(e,t,r,a){var n=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(n,l.prototype),n.expected=t,n.found=r,n.location=a,n.name="SyntaxError",n}function c(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function u(e){if(!e||0===e.length)return null;if("string"==typeof e){const t=y(e);return t&&0!==t.length?t:null}const t=e.map((e=>{if(!Number.isFinite(e.scale)||e.scale<=0)throw new a.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:e});return{scale:e.scale,effects:y(e.value)}}));t.sort(((e,t)=>t.effects.length-e.effects.length));for(let e=0;e<t.length-1;e++){if(!(0,o.mj)(t[e].effects,t[e+1].effects))throw new a.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:t[e].effects,b:t[e+1].effects});(0,o.O9)(t[e].effects,t[e+1].effects)}return t.sort(((e,t)=>t.scale-e.scale)),t}function y(e){let t;if(!e)return[];try{t=function(e,t){var r,a={},n=(t=void 0!==t?t:{}).grammarSource,i={start:Be},s=Be,o="none",c=")",u=",",y="(",p="%",d="px",f="cm",h="mm",m="in",g="pt",v="pc",L="deg",b="rad",w="grad",S="turn",I="#",A=".",M="e",C=/^[ \t\n\r]/,T=/^[a-z\-]/,x=/^[0-9a-fA-F]/,_=/^[+\-]/,G=/^[0-9]/,F=We("none"),P=Ue("none",!1),O=Ue(")",!1),$=Ue(",",!1),N=We("whitespace"),E=Re([" ","\t","\n","\r"],!1,!1),V=We("function"),k=Ue("(",!1),U=We("identifier"),R=Re([["a","z"],"-"],!1,!1),W=We("percentage"),D=Ue("%",!1),j=We("length"),H=Ue("px",!1),B=Ue("cm",!1),K=Ue("mm",!1),Z=Ue("in",!1),J=Ue("pt",!1),X=Ue("pc",!1),q=We("angle"),z=Ue("deg",!1),Q=Ue("rad",!1),Y=Ue("grad",!1),ee=Ue("turn",!1),te=We("number"),re=We("color"),ae=Ue("#",!1),ne=Re([["0","9"],["a","f"],["A","F"]],!1,!1),ie=Re(["+","-"],!1,!1),se=Re([["0","9"]],!1,!1),oe=Ue(".",!1),le=Ue("e",!1),ce=function(){return[]},ue=function(e,t){return{type:"function",name:e,parameters:t||[]}},ye=function(e,t){return t.length>0?function(e,t){return[e].concat(function(e){return e.map((function(e){return e[3]}))}(t))}(e,t):[e]},pe=function(e){return{type:"quantity",value:e.value,unit:e.unit}},de=function(e){return{type:"color",colorType:e.type,value:e.value}},fe=function(e){return e},he=function(){return ke()},me=function(e){return{value:e,unit:"%"}},ge=function(e){return{value:e,unit:"px"}},ve=function(e){return{value:e,unit:"cm"}},Le=function(e){return{value:e,unit:"mm"}},be=function(e){return{value:e,unit:"in"}},we=function(e){return{value:e,unit:"pt"}},Se=function(e){return{value:e,unit:"pc"}},Ie=function(e){return{value:e,unit:"deg"}},Ae=function(e){return{value:e,unit:"rad"}},Me=function(e){return{value:e,unit:"grad"}},Ce=function(e){return{value:e,unit:"turn"}},Te=function(e){return{value:e,unit:null}},xe=function(){return{type:"hex",value:ke()}},_e=function(e){return{type:"function",value:e}},Ge=function(){return{type:"named",value:ke()}},Fe=function(){return parseFloat(ke())},Pe=0|t.peg$currPos,Oe=Pe,$e=[{line:1,column:1}],Ne=Pe,Ee=t.peg$maxFailExpected||[],Ve=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');s=i[t.startRule]}function ke(){return e.substring(Oe,Pe)}function Ue(e,t){return{type:"literal",text:e,ignoreCase:t}}function Re(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function We(e){return{type:"other",description:e}}function De(t){var r,a=$e[t];if(a)return a;if(t>=$e.length)r=$e.length-1;else for(r=t;!$e[--r];);for(a={line:(a=$e[r]).line,column:a.column};r<t;)10===e.charCodeAt(r)?(a.line++,a.column=1):a.column++,r++;return $e[t]=a,a}function je(e,t,r){var a=De(e),i=De(t);return{source:n,start:{offset:e,line:a.line,column:a.column},end:{offset:t,line:i.line,column:i.column}}}function He(e){Pe<Ne||(Pe>Ne&&(Ne=Pe,Ee=[]),Ee.push(e))}function Be(){var e;return(e=Ke())===a&&(e=function(){var e,t;if(e=[],(t=Ze())!==a)for(;t!==a;)e.push(t),t=Ze();else e=a;return e}()),e}function Ke(){var t,r;return Ve++,t=Pe,Xe(),e.substr(Pe,4)===o?(r=o,Pe+=4):(r=a,0===Ve&&He(P)),r!==a?(Xe(),Oe=t,t=ce()):(Pe=t,t=a),Ve--,t===a&&0===Ve&&He(F),t}function Ze(){var t,r,n,i;return t=Pe,Xe(),(r=function(){var t,r,n;return Ve++,t=Pe,(r=qe())!==a?(40===e.charCodeAt(Pe)?(n=y,Pe++):(n=a,0===Ve&&He(k)),n!==a?(Oe=t,t=fe(r)):(Pe=t,t=a)):(Pe=t,t=a),Ve--,t===a&&(r=a,0===Ve&&He(V)),t}())!==a?(Xe(),(n=function(){var t,r,n,i,s,o,l,c;if(t=Pe,(r=Je())!==a){for(n=[],i=Pe,s=Xe(),44===e.charCodeAt(Pe)?(o=u,Pe++):(o=a,0===Ve&&He($)),o===a&&(o=null),l=Xe(),(c=Je())!==a?i=s=[s,o,l,c]:(Pe=i,i=a);i!==a;)n.push(i),i=Pe,s=Xe(),44===e.charCodeAt(Pe)?(o=u,Pe++):(o=a,0===Ve&&He($)),o===a&&(o=null),l=Xe(),(c=Je())!==a?i=s=[s,o,l,c]:(Pe=i,i=a);Oe=t,t=ye(r,n)}else Pe=t,t=a;return t}())===a&&(n=null),Xe(),41===e.charCodeAt(Pe)?(i=c,Pe++):(i=a,0===Ve&&He(O)),i!==a?(Xe(),Oe=t,t=ue(r,n)):(Pe=t,t=a)):(Pe=t,t=a),t}function Je(){var e,t;return e=Pe,(t=ze())===a&&(t=Qe())===a&&(t=Ye())===a&&(t=function(){var e,t;return Ve++,e=Pe,Xe(),(t=tt())!==a?(Oe=e,e=Te(t)):(Pe=e,e=a),Ve--,e===a&&0===Ve&&He(te),e}()),t!==a&&(Oe=e,t=pe(t)),(e=t)===a&&(e=Pe,(t=et())!==a&&(Oe=e,t=de(t)),e=t),e}function Xe(){var t,r;for(Ve++,t=[],r=e.charAt(Pe),C.test(r)?Pe++:(r=a,0===Ve&&He(E));r!==a;)t.push(r),r=e.charAt(Pe),C.test(r)?Pe++:(r=a,0===Ve&&He(E));return Ve--,r=a,0===Ve&&He(N),t}function qe(){var t,r,n;if(Ve++,t=Pe,r=[],n=e.charAt(Pe),T.test(n)?Pe++:(n=a,0===Ve&&He(R)),n!==a)for(;n!==a;)r.push(n),n=e.charAt(Pe),T.test(n)?Pe++:(n=a,0===Ve&&He(R));else r=a;return r!==a&&(Oe=t,r=he()),Ve--,(t=r)===a&&(r=a,0===Ve&&He(U)),t}function ze(){var t,r,n;return Ve++,t=Pe,Xe(),(r=tt())!==a?(37===e.charCodeAt(Pe)?(n=p,Pe++):(n=a,0===Ve&&He(D)),n!==a?(Oe=t,t=me(r)):(Pe=t,t=a)):(Pe=t,t=a),Ve--,t===a&&0===Ve&&He(W),t}function Qe(){var t,r,n;return Ve++,t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===d?(n=d,Pe+=2):(n=a,0===Ve&&He(H)),n!==a?(Oe=t,t=ge(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===f?(n=f,Pe+=2):(n=a,0===Ve&&He(B)),n!==a?(Oe=t,t=ve(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===h?(n=h,Pe+=2):(n=a,0===Ve&&He(K)),n!==a?(Oe=t,t=Le(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===m?(n=m,Pe+=2):(n=a,0===Ve&&He(Z)),n!==a?(Oe=t,t=be(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===g?(n=g,Pe+=2):(n=a,0===Ve&&He(J)),n!==a?(Oe=t,t=we(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,Xe(),(r=tt())!==a?(e.substr(Pe,2)===v?(n=v,Pe+=2):(n=a,0===Ve&&He(X)),n!==a?(Oe=t,t=Se(r)):(Pe=t,t=a)):(Pe=t,t=a)))))),Ve--,t===a&&0===Ve&&He(j),t}function Ye(){var t,r,n;return Ve++,t=Pe,(r=tt())!==a?(e.substr(Pe,3)===L?(n=L,Pe+=3):(n=a,0===Ve&&He(z)),n!==a?(Oe=t,t=Ie(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,(r=tt())!==a?(e.substr(Pe,3)===b?(n=b,Pe+=3):(n=a,0===Ve&&He(Q)),n!==a?(Oe=t,t=Ae(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,(r=tt())!==a?(e.substr(Pe,4)===w?(n=w,Pe+=4):(n=a,0===Ve&&He(Y)),n!==a?(Oe=t,t=Me(r)):(Pe=t,t=a)):(Pe=t,t=a),t===a&&(t=Pe,(r=tt())!==a?(e.substr(Pe,4)===S?(n=S,Pe+=4):(n=a,0===Ve&&He(ee)),n!==a?(Oe=t,t=Ce(r)):(Pe=t,t=a)):(Pe=t,t=a)))),Ve--,t===a&&(r=a,0===Ve&&He(q)),t}function et(){var t,r,n,i;if(Ve++,t=Pe,35===e.charCodeAt(Pe)?(r=I,Pe++):(r=a,0===Ve&&He(ae)),r!==a){if(n=[],i=e.charAt(Pe),x.test(i)?Pe++:(i=a,0===Ve&&He(ne)),i!==a)for(;i!==a;)n.push(i),i=e.charAt(Pe),x.test(i)?Pe++:(i=a,0===Ve&&He(ne));else n=a;n!==a?(Oe=t,t=xe()):(Pe=t,t=a)}else Pe=t,t=a;return t===a&&(t=Pe,(r=Ze())!==a&&(Oe=t,r=_e(r)),(t=r)===a&&(t=Pe,(r=qe())!==a&&(Oe=t,r=Ge()),t=r)),Ve--,t===a&&(r=a,0===Ve&&He(re)),t}function tt(){var t,r,n,i,s,o,l,c;for(t=Pe,r=e.charAt(Pe),_.test(r)?Pe++:(r=a,0===Ve&&He(ie)),r===a&&(r=null),n=Pe,i=[],s=e.charAt(Pe),G.test(s)?Pe++:(s=a,0===Ve&&He(se));s!==a;)i.push(s),s=e.charAt(Pe),G.test(s)?Pe++:(s=a,0===Ve&&He(se));if(46===e.charCodeAt(Pe)?(s=A,Pe++):(s=a,0===Ve&&He(oe)),s!==a){if(o=[],l=e.charAt(Pe),G.test(l)?Pe++:(l=a,0===Ve&&He(se)),l!==a)for(;l!==a;)o.push(l),l=e.charAt(Pe),G.test(l)?Pe++:(l=a,0===Ve&&He(se));else o=a;o!==a?n=i=[i,s,o]:(Pe=n,n=a)}else Pe=n,n=a;if(n===a)if(n=[],i=e.charAt(Pe),G.test(i)?Pe++:(i=a,0===Ve&&He(se)),i!==a)for(;i!==a;)n.push(i),i=e.charAt(Pe),G.test(i)?Pe++:(i=a,0===Ve&&He(se));else n=a;if(n!==a){if(i=Pe,101===e.charCodeAt(Pe)?(s=M,Pe++):(s=a,0===Ve&&He(le)),s!==a){if(o=e.charAt(Pe),_.test(o)?Pe++:(o=a,0===Ve&&He(ie)),o===a&&(o=null),l=[],c=e.charAt(Pe),G.test(c)?Pe++:(c=a,0===Ve&&He(se)),c!==a)for(;c!==a;)l.push(c),c=e.charAt(Pe),G.test(c)?Pe++:(c=a,0===Ve&&He(se));else l=a;l!==a?i=s=[s,o,l]:(Pe=i,i=a)}else Pe=i,i=a;i===a&&(i=null),Oe=t,t=Fe()}else Pe=t,t=a;return t}if(r=s(),t.peg$library)return{peg$result:r,peg$currPos:Pe,peg$FAILED:a,peg$maxFailExpected:Ee,peg$maxFailPos:Ne};if(r!==a&&Pe===e.length)return r;throw r!==a&&Pe<e.length&&He({type:"end"}),function(e,t,r){return new l(l.buildMessage(e,t),e,t,r)}(Ee,Ne<e.length?e.charAt(Ne):null,Ne<e.length?je(Ne,Ne+1):je(Ne,Ne))}(e)}catch(t){throw new a.A("effect:invalid-syntax","Invalid effect syntax",{value:e,error:t})}return t.map((e=>function(e){try{switch(e.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(e){let t=1;return p(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new s.yG(e.name,t)}(e);case"opacity":return function(e){let t=1;return p(e.parameters,1),1===e.parameters.length&&(t=g(e.parameters[0])),new s.jm(t)}(e);case"hue-rotate":return function(e){let t=0;return p(e.parameters,1),1===e.parameters.length&&(t=function(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=h[e.unit]))throw new a.A("effect:type-error",`Expected <angle>, Actual: ${d(e)}`,{term:e})}(e),e.value*h[e.unit]||0}(e.parameters[0])),new s.Nd(t)}(e);case"blur":return function(e){let t=0;return p(e.parameters,1),1===e.parameters.length&&(t=v(e.parameters[0]),f(t,e.parameters[0])),new s.Fk(t)}(e);case"drop-shadow":return function(e){const t=[];let r=null;for(const n of e.parameters)if("color"===n.type){if(t.length&&Object.freeze(t),r)throw new a.A("effect:type-error","Accepts only one color",{});r=L(n)}else{const e=v(n);if(Object.isFrozen(t))throw new a.A("effect:type-error","<length> parameters not consecutive",{lengths:t});t.push(e),3===t.length&&f(e,n)}if(t.length<2||t.length>3)throw new a.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${t.length}}`,{lengths:t});return new s.$b(t[0],t[1],t[2]||0,r||b("black"))}(e);case"bloom":return function(e){let t=1,r=0,a=0;return p(e.parameters,3),e.parameters[0]&&(t=g(e.parameters[0])),e.parameters[1]&&(r=v(e.parameters[1]),f(r,e.parameters[1])),e.parameters[2]&&(a=g(e.parameters[2])),new s.bv(t,r,a)}(e)}}catch(t){throw t.details.filter=e,t}throw new a.A("effect:unknown-effect",`Effect '${e.name}' is not supported`,{effect:e})}(e)))}function p(e,t){if(e.length>t)throw new a.A("effect:type-error",`Function supports up to ${t} parameters, Actual: ${e.length}`,{parameters:e})}function d(e){if("color"===e.type)return"<color>";if(e.unit){if(e.unit in m)return"<length>";if(e.unit in h)return"<angle>";if("%"===e.unit)return"<percentage>"}return"<double>"}function f(e,t){if(e<0)throw new a.A("effect:type-error",`Negative values are not allowed, Actual: ${e}`,{term:t})}(function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r})(l,Error),l.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var r,a=null;for(r=0;r<e.length;r++)if(e[r].source===this.location.source){a=e[r].text.split(/\r\n|\n|\r/g);break}var n=this.location.start,i=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(n):n,s=this.location.source+":"+i.line+":"+i.column;if(a){var o=this.location.end,l=c("",i.line.toString().length," "),u=a[n.line-1],y=(n.line===o.line?o.column:u.length+1)-n.column||1;t+="\n --\x3e "+s+"\n"+l+" |\n"+i.line+" | "+u+"\n"+l+" | "+c("",n.column-1," ")+c("",y,"^")}else t+="\n at "+s}return t},l.buildMessage=function(e,t){var r={literal:function(e){return'"'+n(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)}));return"["+(e.inverted?"^":"")+t.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function a(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+a(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+a(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+a(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+a(e)}))}function s(e){return r[e.type](e)}return"Expected "+function(e){var t,r,a=e.map(s);if(a.sort(),a.length>0){for(t=1,r=1;t<a.length;t++)a[t-1]!==a[t]&&(a[r]=a[t],r++);a.length=r}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+function(e){return e?'"'+n(e)+'"':"end of input"}(t)+" found."};const h={deg:1,grad:.9,rad:180/Math.PI,turn:360},m={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(e){!function(e){if("quantity"!==e.type||null!==e.unit&&"%"!==e.unit)throw new a.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${d(e)}`,{term:e})}(e);const t=e.value;return f(t,e),"%"===e.unit?.01*t:t}function v(e){return function(e){if("quantity"!==e.type||!(0===e.value&&null===e.unit||e.unit&&null!=m[e.unit]))throw new a.A("effect:type-error",`Expected <length>, Actual: ${d(e)}`,{term:e})}(e),e.value*m[e.unit]||0}function L(e){switch(e.colorType){case"hex":return(0,i.qh)(e.value);case"named":return b(e.value);case"function":return function(e){if(p(e.parameters,4),w.test(e.name))return[g(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1];if(S.test(e.name))return(0,i.z$)(function(e){return function(e){if("quantity"!==e.type||null!==e.unit)throw new a.A("effect:type-error",`Expected <double>, Actual: ${d(e)}`,{term:e})}(e),f(e.value,e),e.value}(e.parameters[0]),g(e.parameters[1]),g(e.parameters[2]),e.parameters[3]?g(e.parameters[3]):1);throw new a.A("effect:syntax-error",`Invalid color function '${e.name}'`,{colorFunction:e})}(e.value)}}function b(e){if(!(0,i.V6)(e))throw new a.A("effect:unknown-color",`color '${e}' isn't valid`,{namedColor:e});return(0,i.c4)(e)}const w=/^rgba?/i,S=/^hsla?/i;function I(e,t,r){try{return function(e){if(!e||0===e.length)return null;if(function(e){const t=e[0];return!!t&&"scale"in t}(e)){const t=[];for(const r of e)t.push({scale:r.scale,value:M(r.value)});return t}return M(e)}(e)}catch(e){r?.messages?.push(e)}return null}function A(e,t,r,a){try{const a=function(e){const t=u(e);return t?(0,o.dw)(t)?t.map((e=>e.toJSON())):t.map((({scale:e,effects:t})=>({scale:e,value:t.map((e=>e.toJSON()))}))):null}(e);(0,n.sM)(r,a,t)}catch(e){a.messages&&a.messages.push(e)}}function M(e){if(!e?.length)return"";const t=[];for(const r of e){let e=[];switch(r.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":e=[C(r,"amount")];break;case"blur":e=[C(r,"radius","pt")];break;case"hue-rotate":e=[C(r,"angle","deg")];break;case"drop-shadow":e=[C(r,"xoffset","pt"),C(r,"yoffset","pt"),C(r,"blurRadius","pt"),T(r,"color")];break;case"bloom":e=[C(r,"strength"),C(r,"radius","pt"),C(r,"threshold")]}const a=`${r.type}(${e.filter(Boolean).join(" ")})`;u(a),t.push(a)}return t.join(" ")}function C(e,t,r){if(null==e[t])throw new a.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});return r?e[t]+r:""+e[t]}function T(e,t){if(null==e[t])throw new a.A("effect:missing-parameter",`Missing parameter '${t}' in ${e.type} effect`,{effect:e});const r=e[t];return`rgba(${r[0]||0}, ${r[1]||0}, ${r[2]||0}, ${r[3]/255||0})`}},63074:(e,t,r)=>{r.d(t,{LF:()=>u,dM:()=>y,sU:()=>l});var a=r(90237),n=r(10107),i=(r(44208),r(53966),r(87811),r(40608)),s=r(89317),o=r(76369);const l={type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:{layerContainerTypes:s.K}},"portal-item":{read:!0,write:{layerContainerTypes:s.K}}}}},c={read:{reader:o.LF},write:{allowNull:!0,writer:o.M9,layerContainerTypes:s.K}},u={json:{read:!1,write:!1,origins:{"web-map":c,"portal-item":c}}},y=e=>{let t=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,a._)([(0,n.MZ)(l)],t.prototype,"blendMode",void 0),(0,a._)([(0,n.MZ)(u)],t.prototype,"effect",void 0),t=(0,a._)([(0,i.$)("esri.layers.mixins.BlendLayer")],t),t}},8303:(e,t,r)=>{r.d(t,{A:()=>S});var a=r(90237),n=r(92602),i=r(70333),s=r(78888),o=r(60999),l=r(49186),c=r(53966),u=r(97768),y=r(74887),p=r(84952),d=r(10107),f=(r(44208),r(87811),r(36005)),h=r(40608),m=r(43937),g=r(83531),v=r(20655),L=r(80812),b=r(41318),w=r(10407);const S=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new L.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:a}=await r.e(1204).then(r.bind(r,41204));return(0,y.Te)(t),await a({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,y.zf)(e)||c.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,y.QP)(e),!0))))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:a},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",a),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,y.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const a=!i.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,a);let s,o;if(n)s=r.portal.url;else try{s=await(0,g.wI)(this.url,t)}catch(e){(0,y.QP)(e)}if(!s||!(0,p.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(i.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,y.QP)(e)}const l=!0,c=!1,u=!1;if(!o)return{features:{edit:l,fullEdit:c},content:{updateItem:u}};try{if(n?await r.reload():(r=new L.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,a)}catch(e){(0,y.QP)(e)}return{features:{edit:l,fullEdit:c},content:{updateItem:u}}}_getUserPrivileges(e,t){const r=(0,w.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,y.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?i.id?.findCredential(this.url):null;if(!t)return!0;const r=I.credential===t?I.user:await this._fetchEditingUser(e);return I.credential=t,I.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=i.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const a=`${r.owningSystemUrl}/sharing/rest`,n=v.A.getDefault();if(n&&n.loaded&&(0,p.S8)(n.restUrl)===(0,p.S8)(a))return n.user;const l=`${a}/community/self`,c=null!=e?e.signal:null,u=await(0,o.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:c}));return u.ok?b.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,a=this.portalItem?.id&&(this.portalItem.portal||v.A.getDefault());return r&&a&&!(0,p.ut)(a.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,a._)([(0,d.MZ)({type:L.default})],t.prototype,"portalItem",null),(0,a._)([(0,f.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,a._)([(0,m.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,a._)([(0,d.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,a._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,a._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,a._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,a._)([(0,h.$)("esri.layers.mixins.PortalLayer")],t),t},I={credential:null,user:null}},25036:(e,t,r)=>{r.d(t,{j:()=>s});var a=r(90237),n=r(10107),i=(r(44208),r(53966),r(87811),r(40608));const s=e=>{let t=class extends e{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const e={minScale:this.minScale,maxScale:this.maxScale},t=this.parent;t&&"effectiveScaleRange"in t&&function(e,t){e.minScale=e.minScale>0?t.minScale>0?Math.min(e.minScale,t.minScale):e.minScale:t.minScale,e.maxScale=e.maxScale>0?t.maxScale>0?Math.max(e.maxScale,t.maxScale):e.maxScale:t.maxScale}(e,t.effectiveScaleRange);const r=this._get("effectiveScaleRange");return r&&r.minScale===e.minScale&&r.maxScale===e.maxScale?r:e}};return(0,a._)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"minScale",void 0),(0,a._)([(0,n.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],t.prototype,"maxScale",void 0),(0,a._)([(0,n.MZ)({readOnly:!0})],t.prototype,"effectiveScaleRange",null),t=(0,a._)([(0,i.$)("esri.layers.mixins.ScaleRangeLayer")],t),t}},22429:(e,t,r)=>{r.d(t,{v:()=>n});var a=r(24183);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,t){const r=this._serviceMetadatas.get(e);if(r)return r;const n=await(0,a.V)(e,t);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:t}=e;if(!t)return null;const{_itemDatas:r}=this;if(r.has(t))return r.get(t);const a=await e.fetchData();return r.set(t,a),a}async fetchCustomParameters(e,t){const r=await this.fetchItemData(e);return r&&"object"==typeof r&&(t?t(r):r.customParameters)||null}}},75356:(e,t,r)=>{r.d(t,{N:()=>M,populateOperationalLayers:()=>u});var a=r(5503),n=(r(44208),r(22429)),i=r(4513),s=r(80812);function o(e,t){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===t}var l=r(45613),c=r(8947);async function u(e,t,r){if(!t)return;const a=t.map((e=>async function(e,t){return async function(e,t,r){const a=new e;return a.read(t,r.context),"group"===a.type&&("GroupLayer"===t.layerType?await M(a,t,r):I(t)?function(e,t,r){t.itemId&&(e.portalItem=new s.default({id:t.itemId,portal:r?.portal}),e.when((()=>{const a=a=>{const n=a.layerId;C(a,e,t,n,r);const i=t.featureCollection?.layers?.[n];i&&a.read(i,r)};e.layers?.forEach(a),e.tables?.forEach(a)})))}(a,t,r.context):S(t)&&await async function(e,t,r){const a=i.S.FeatureLayer,n=await a(),s=t.featureCollection,o=s?.showLegend,l=s?.layers?.map(((a,i)=>{const s=new n;s.read(a,r);const l={...r,ignoreDefaults:!0};return C(s,e,t,i,l),null!=o&&s.read({showLegend:o},l),s}));e.layers.addMany(l??[])}(a,t,r.context)),await(0,c.L)(a,r.context),a}(await w(e,t),e,t)}(e,r))),n=await Promise.allSettled(a);for(const t of n)"rejected"===t.status||t.value&&e.add(t.value)}const y={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},p={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},d={ArcGISFeatureLayer:"FeatureLayer"},f={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},h={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},m={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},g={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},v={...h,LinkChartLayer:"LinkChartLayer"},L={...m},b={...g};async function w(e,t){const r=t.context,a=A(r);let c=e.layerType||e.type;!c&&t?.defaultLayerType&&(c=t.defaultLayerType);const u=a[c];let y=u?i.S[u]:i.S.UnknownLayer;if(I(e)){const t=r?.portal;if(e.itemId){const r=new s.default({id:e.itemId,portal:t});await r.load();const a=(await(0,l.n)(r,new n.v)).className||"UnknownLayer";y=i.S[a]}}else"ArcGISFeatureLayer"===c?function(e){return o(e,"notes")}(e)||function(e){return o(e,"markup")}(e)?y=i.S.MapNotesLayer:function(e){return o(e,"route")}(e)?y=i.S.RouteLayer:S(e)&&(y=i.S.GroupLayer):e.wmtsInfo?.url&&e.wmtsInfo.layerIdentifier?y=i.S.WMTSLayer:"WFS"===c&&"2.0.0"!==e.wfsInfo?.version&&(y=i.S.UnsupportedLayer);return y()}function S(e){return"ArcGISFeatureLayer"===e.layerType&&!I(e)&&(e.featureCollection?.layers?.length??0)>1}function I(e){return"Feature Collection"===e.type}function A(e){let t;switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap":t=f;break;case"ground":t=p;break;case"tables":t=d;break;default:t=y}break;case"link-chart":switch(e.layerContainerType){case"basemap":t=b;break;case"tables":t=L;break;default:t=v}break;default:switch(e.layerContainerType){case"basemap":t=g;break;case"tables":t=m;break;default:t=h}}return t}async function M(e,t,r){const n=new a.A,i=u(n,Array.isArray(t.layers)?t.layers:[],r);try{try{if(await i,"group"===e.type)return e.layers.addMany(n),e}catch(t){e.destroy();for(const e of n)e.destroy();throw t}}catch(e){throw e}}function C(e,t,r,a,n){e.read({id:`${t.id}-sublayer-${a}`,visibility:r.visibleLayers?.includes(a)??!0},n)}},66964:(e,t,r)=>{r.d(t,{Ju:()=>c,K8:()=>p,XH:()=>u,_r:()=>i,bO:()=>s,l:()=>y,nu:()=>d,pJ:()=>o,rc:()=>l});var a=r(92009),n=r(23154);function i(e){const t={id:e.id,name:e.name},r=(0,n.K)(e.type);return"FeatureLayer"!==r&&(t.layerType=r),t}async function s(e,t,r){if(null==e?.layers||null==e?.tables){const a=await r.fetchServiceMetadata(t,{customParameters:o(e)?.customParameters});(e=e||{}).layers=e.layers||a?.layers?.map(i),e.tables=e.tables||a?.tables?.map(i)}return e}function o(e){if(!e)return null;const{layers:t,tables:r}=e;return t?.length?t[0]:r?.length?r[0]:null}function l(e,t){return null==t?null:[...e.layers||[],...e.tables||[]].find((e=>e.id===t))}function c(e,t){return[...e.layers||[],...e.tables||[]].filter((({layerType:e})=>e?t.includes(e):t.includes("ArcGISFeatureLayer")))}function u(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function y(e){switch(e){case"catalog":return["CatalogLayer"];case"feature":return["ArcGISFeatureLayer"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function p(e){switch(e){case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return"FeatureLayer"}async function d(e,t,r){if(!e?.url)return t??{};if(t??={},!t.layers){const a=await r.fetchServiceMetadata(e.url);t.layers=a.layers?.map(i)}const{serverUrl:n,portalItem:s}=await(0,a.L)(e.url,{sceneLayerItem:e,customParameters:o(t)?.customParameters}).catch((()=>({serverUrl:null,portalItem:null})));if(null==n)return t.tables=[],t;if(!t.tables&&s){const e=await s.fetchData().catch((()=>null));if(e?.tables)t.tables=e.tables.map(i);else{const a=await r.fetchServiceMetadata(n,{customParameters:o(e)?.customParameters}).catch((()=>null));t.tables=a?.tables?.map(i)}}if(t.tables)for(const e of t.tables)e.url=`${n}/${e.id}`;return t}},45613:(e,t,r)=>{r.d(t,{fromItem:()=>p,n:()=>d});var a=r(49186),n=r(92009),i=r(23154),s=r(22429),o=r(83531),l=r(4513),c=r(80812),u=r(66964),y=r(10407);async function p(e){let{portalItem:t}=e;!t||t instanceof c.default||(t=new c.default(t));const r=await async function(e){await e.load();const t=new s.v;return async function(e){const t=e.className,r=l.S[t];return{constructor:await r(),properties:e.properties}}(await d(e,t))}(t);return new(0,r.constructor)({portalItem:t,...r.properties})}async function d(e,t){switch(e.type){case"3DTiles Service":return{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const t=(0,y.Y)(e,"Map Notes"),r=(0,y.Y)(e,"Markup");if(t||r)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const a=await e.fetchData();return 1===(0,u.XH)(a)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,t){const r=await f(e,t);if("object"==typeof r){const{sourceJSON:e,className:t}=r,a={sourceJSON:e};return null!=r.id&&(a.layerId=r.id),{className:t||"FeatureLayer",properties:a}}return{className:"GroupLayer"}}(e,t);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,t){await e.load();const r=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(r.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(r.includes("tiled imagery"))return{className:"ImageryTileLayer"};const a=await t.fetchItemData(e),n=a?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const i=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)}),s=i.cacheType?.toLowerCase(),o=i.capabilities?.toLowerCase().includes("tilesonly"),l=i.tileInfo?.format?.toLowerCase()??"",c=null==s&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(l);return"map"===s||c||o?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,t);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,t){return await async function(e,t){const{tileInfo:r}=await t.fetchServiceMetadata(e.url,{customParameters:await t.fetchCustomParameters(e)});return r}(e,t)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,t);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,t){const r=await f(e,t,(async()=>{try{if(!e.url)return[];const{serverUrl:r}=await(0,n.L)(e.url,{sceneLayerItem:e}),a=await t.fetchServiceMetadata(r);return a?.tables??[]}catch{return[]}}));if("object"==typeof r){const a={};let n;if(null!=r.id?(a.layerId=r.id,n=`${e.url}/layers/${r.id}`):n=e.url,e.typeKeywords?.length)for(const t of Object.keys(o.XX))if(e.typeKeywords.includes(t))return{className:o.XX[t]};const i=await t.fetchServiceMetadata(n,{customParameters:await t.fetchCustomParameters(e,(e=>(0,u.pJ)(e)?.customParameters))});return{className:o.XX[i?.layerType]||"SceneLayer",properties:a}}if(!1===r){const r=await t.fetchServiceMetadata(e.url);if("Voxel"===r?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,t);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new a.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function f(e,t,r){const{url:a,type:n}=e,s="Feature Service"===n;if(!a)return{};if(/\/\d+$/.test(a)){if(s){const r=await t.fetchServiceMetadata(a,{customParameters:await t.fetchCustomParameters(e,(e=>(0,u.pJ)(e)?.customParameters))});return{id:r.id,className:(0,i.K)(r.type),sourceJSON:r}}return{}}await e.load();let o=await t.fetchItemData(e);if(s){const e=await(0,u.bO)(o,a,t),r=h(e);if("object"==typeof r){const t=(0,u.rc)(e,r.id);r.className=(0,u.K8)(t?.layerType)}return r}if("Scene Service"===n&&(o=await(0,u.nu)(e,o,t)),(0,u.XH)(o)>0)return h(o);const l=await t.fetchServiceMetadata(a);return r&&(l.tables=await r()),h(l)}function h(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},8947:(e,t,r)=>{r.d(t,{L:()=>s});var a=r(60999),n=r(74887),i=r(67076);async function s(e,t,r){const s=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(s&&"unique-value"===s.type&&s.styleOrigin){const o=await(0,a.Ke)(s.populateFromStyle());if((0,n.Te)(r),!1===o.ok){const r=o.error;t?.messages&&t.messages.push(new i.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},92935:(e,t,r)=>{var a;r.d(t,{X:()=>a}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(a||(a={}))},78553:(e,t,r)=>{r.d(t,{D:()=>i,p:()=>n});var a=r(56507);function n(e){const t=(0,a.Vr)(100*(1-e));return Math.max(0,Math.min(t,100))}function i(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}},26121:(e,t,r)=>{r.d(t,{c:()=>s,d:()=>n});var a=r(49186);async function n(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}const i=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function s(e,t,r){let n=(e.messages??[]).filter((({type:e})=>"error"===e)).map((({name:e,message:t,details:r})=>new a.A(e,t,r)));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map((e=>new a.A("url:unsupported",`Relative url '${e}' is not supported`))))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:a}=r;e&&(n=n.filter((({name:e})=>!(i.has(e)||t.includes(e))))),a&&(n=n.filter((e=>"web-document-write:property-required"!==e.name)))}if(n.length>0)throw new a.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}},751:(e,t,r)=>{r.d(t,{CJ:()=>p});var a=r(49186),n=r(4718),i=r(93637),s=r(67124),o=r(83531);const l=new Set(["bing-maps","imagery","imagery-tile","map-image","open-street-map","tile","unknown","unsupported","vector-tile","web-tile","wcs","wms","wmts"]),c=new Set(["catalog","csv","feature","geo-rss","geojson","group","imagery","imagery-tile","kml","knowledge-graph","map-image","map-notes","media","ogc-feature","oriented-imagery","route","stream","subtype-group","tile","unknown","unsupported","vector-tile","web-tile","wcs","wfs","wms","wmts"]);function u(e,t){if(t.restrictedWebMapWriting){const r=function(e){return"basemap"===e.layerContainerType?l:"operational-layers"===e.layerContainerType?c:null}(t);return null==r||r.has(e.type)&&!(0,o.Ov)(e)}return!0}function y(e,t){"maxScale"in e&&(t.maxScale=(0,s.B)(e.maxScale)??void 0),"minScale"in e&&(t.minScale=(0,s.B)(e.minScale)??void 0)}function p(e,t,r){if(!e.persistenceEnabled)return null;if(!("write"in e)||!e.write)return r?.messages&&r.messages.push(new a.A("layer:unsupported",`Layers (${e.title}, ${e.id}) of type '${e.declaredClass}' cannot be persisted`,{layer:e})),null;if((0,o.Ov)(e)&&!e.isTable)t=e.resourceInfo;else if(u(e,r)){const t={};return e.write(t,r)?t:null}return null!=t&&function(e,t){if(function(e,t){if(t)if((0,o.Ov)(e)){const r=(0,i.wc)("featureCollection.layers",t),a=r?.[0]?.layerDefinition;a&&y(e,a)}else"group"!==e.type&&y(e,t)}(e,t),t&&(t.id=e.id,"blendMode"in e&&(t.blendMode=e.blendMode,"normal"===t.blendMode&&delete t.blendMode),t.opacity=(0,s.B)(e.opacity)??void 0,t.title=e.title||"Layer",t.visibility=e.visible,"legendEnabled"in e&&"wmts"!==e.type))if((0,o.Ov)(e)){const r=t.featureCollection;r&&(r.showLegend=e.legendEnabled)}else t.showLegend=e.legendEnabled}(e,t=(0,n.o8)(t)),t}}}]);
@@ -1,3 +1,3 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.128 */
3
+ v3.0.0-next.132 */
@@ -1,2 +1,2 @@
1
- /*! For license information please see 72cf9192292e5c85c6df.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7007],{83623:(t,e,n)=>{function i(t){return"l"===t?"m":"s"}n.d(e,{g:()=>i}),n(84137)},79e3:(t,e,n)=>{n.d(e,{D:()=>I,a:()=>R,b:()=>E,g:()=>w,h:()=>S,i:()=>T,k:()=>x,l:()=>z,m:()=>M,p:()=>y,q:()=>N,r:()=>k,s:()=>O,t:()=>_,u:()=>D,v:()=>C,w:()=>P}),n(34088);var i=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),r=typeof Element>"u",o=r?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!r&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return t?.ownerDocument},a=function t(e,n){var i;void 0===n&&(n=!0);var r=null==e||null===(i=e.getAttribute)||void 0===i?void 0:i.call(e,"inert");return""===r||"true"===r||n&&e&&t(e.parentNode)},c=function t(e,n,r){for(var s=[],c=Array.from(e);c.length;){var l=c.shift();if(!a(l,!1))if("SLOT"===l.tagName){var u=l.assignedElements(),d=t(u.length?u:l.children,!0,r);r.flatten?s.push.apply(s,d):s.push({scopeParent:l,candidates:d})}else{o.call(l,i)&&r.filter(l)&&(n||!e.includes(l))&&s.push(l);var h=l.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(l),f=!a(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(h&&f){var p=t(!0===h?l.children:h.children,!0,r);r.flatten?s.push.apply(s,p):s.push({scopeParent:l,candidates:p})}else c.unshift.apply(c,l.children)}}return s},l=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},u=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!l(t)?0:t.tabIndex},d=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},h=function(t){return"INPUT"===t.tagName},f=function(t){var e=t.getBoundingClientRect(),n=e.width,i=e.height;return 0===n&&0===i},p=function(t,e){return!(e.disabled||a(e)||function(t){return h(t)&&"hidden"===t.type}(e)||function(t,e){var n=e.displayCheck,i=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var r=o.call(t,"details>summary:first-of-type")?t.parentElement:t;if(o.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return f(t)}else{if("function"==typeof i){for(var a=t;t;){var c=t.parentElement,l=s(t);if(c&&!c.shadowRoot&&!0===i(c))return f(t);t=t.assignedSlot?t.assignedSlot:c||l===t.ownerDocument?c:l.host}t=a}if(function(t){var e,n,i,r,o=t&&s(t),a=null===(e=o)||void 0===e?void 0:e.host,c=!1;if(o&&o!==t)for(c=!!(null!==(n=a)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(a)||null!=t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(t));!c&&a;){var l,u,d;c=!(null===(u=a=null===(l=o=s(a))||void 0===l?void 0:l.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return c}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var i=e.children.item(n);if("LEGEND"===i.tagName)return!!o.call(e,"fieldset[disabled] *")||!i.contains(t)}return!0}e=e.parentElement}return!1}(e))},v=function(t,e){return!(function(t){return function(t){return h(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||s(t),i=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if(typeof window<"u"&&typeof window.CSS<"u"&&"function"==typeof window.CSS.escape)e=i(window.CSS.escape(t.name));else try{e=i(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)}(e)||u(e)<0||!p(t,e))},m=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},g=function t(e){var n=[],i=[];return e.forEach((function(e,r){var o=!!e.scopeParent,s=o?e.scopeParent:e,a=function(t,e){var n=u(t);return n<0&&e&&!l(t)?0:n}(s,o),c=o?t(e.candidates):s;0===a?o?n.push.apply(n,c):n.push(s):i.push({documentOrder:r,tabIndex:a,item:e,isScope:o,content:c})})),i.sort(d).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(n)},b=function(t,e){var n;return n=(e=e||{}).getShadowRoot?c([t],e.includeContainer,{filter:v.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m}):function(t,e,n){if(a(t))return[];var r=Array.prototype.slice.apply(t.querySelectorAll(i));return e&&o.call(t,i)&&r.unshift(t),r.filter(n)}(t,e.includeContainer,v.bind(null,e)),g(n)};const y={getShadowRoot:!0};function w(t){const e=x(t,"[dir]");return e?e.getAttribute("dir"):"ltr"}function $(t){return t.getRootNode()}function A(t){return t.host||null}function N(t,{selector:e,id:n}){if(!t)return null;t.assignedSlot&&(t=t.assignedSlot);const i=$(t);return(n?"getElementById"in i?i.getElementById(n):null:e?i.querySelector(e):null)||N(A(i),{selector:e,id:n})}function x(t,e){return t?t.closest(e)||x(A($(t)),e):null}async function E(t){if(t)return function(t){return"function"==typeof t?.setFocus}(t)?t.setFocus():t.focus()}function S(t){(function(t){if(t)return b(t,y)[0]??t})(t)?.focus()}function C(t,e,n){return"string"==typeof e&&""!==e?e:""===e||!0===e?t[n]:void 0}function _(t){return(!!t).toString()}function k(t){return R(t)||function(t){return!!function(t){return function(t){return t.currentTarget.assignedNodes({flatten:!0})}(t).filter((t=>t.nodeType===Node.TEXT_NODE)).map((t=>t.textContent)).join("").trim()}(t)}(t)}function I(t){for(const e of t.childNodes)if(e.nodeType===Node.TEXT_NODE&&""!==e.textContent?.trim()||e.nodeType===Node.ELEMENT_NODE)return!0;return!1}function R(t){return!!O(t).length}function O(t,e){return function(t,e){const n=t.assignedElements({flatten:!0});return e?function(t,e){return t.filter((t=>t.matches(e)))}(n,e):n}(t.target,e)}function T(t){return!(!t.isPrimary||0!==t.button)}function D(t){return 0===t.detail}function z(t,e){if(t.parentNode!==e.parentNode)return!1;const n=Array.from(t.parentNode.children);return n.indexOf(t)<n.indexOf(e)}async function P(t,e,n,i){return async function(t,e,n,i,r){let o=L(t,n,e);if(o||(await U(),o=L(t,n,e)),!o)return async function(t,e){await U(),t?.(),await U(),e?.()}(i,r);i?.();try{await o.finished}catch{}finally{r?.()}}(t,e,"transition",n,i)}function L(t,e,n){const i="transition"===e?"transitionProperty":"animationName";return t.getAnimations().find((t=>t[i]===n))}function U(){return new Promise((t=>requestAnimationFrame((()=>t()))))}function M(t){return t.endsWith("px")}},28786:(t,e,n)=>{n.d(e,{c:()=>r});var i=n(34088);async function r(t){if(await t.componentOnReady(),(0,i.i)())return t.requestUpdate(),new Promise((t=>requestAnimationFrame((()=>t()))))}},84137:(t,e,n)=>{n.d(e,{l:()=>c});var i=n(34088);const r=new Set,o={trace:0,debug:1,info:2,warn:4,error:8,off:10};function s(t,...e){(function(t){return o[t]>=o[i.l]})(t)&&console[t].call(this,"%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...e)}let a;const c={debug:t=>s("debug",t),info:t=>s("info",t),warn:t=>s("warn",t),error:t=>s("error",t),trace:t=>s("trace",t),deprecated:function(t,{component:e,name:n,suggested:i,removalVersion:o}){const c=`${t}:${"component"===t?"":e}${n}`;if(r.has(c))return;r.add(c);const l=Array.isArray(i);l&&!a&&(a=new Intl.ListFormat("en",{style:"long",type:"disjunction"})),s("warn",`[${n}] ${t} is deprecated and will be removed in ${"future"===o?"a future version":`v${o}`}.${i?` Use ${l?a.format(i.map((t=>`"${t}"`))):`"${i}"`} instead.`:""}`)}}},4643:(t,e,n)=>{n.d(e,{c:()=>r});var i=n(34088);function r(t,e,n){if(!(0,i.i)())return;const r=function(t){class e extends window.MutationObserver{constructor(t){super(t),this.observedEntry=[],this.callback=t}observe(t,e){return this.observedEntry.push({target:t,options:e}),super.observe(t,e)}unobserve(t){const e=this.observedEntry.filter((e=>e.target!==t));this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),e.forEach((t=>this.observe(t.target,t.options)))}}return"intersection"===t?window.IntersectionObserver:"mutation"===t?e:window.ResizeObserver}(t);return new r(e,n)}},75572:(t,e,n)=>{n.d(e,{u:()=>o});var i=n(90286),r=n(34088);const o=(0,i.yr)(r.g)},32239:(t,e,n)=>{var i=n(34088),r=n(12618),o=n(22900),s=n(79e3),a=n(4643),c=n(84137),l=n(33826);const u="flip-rtl",d={},h={},f={s:16,m:24,l:32};function p({icon:t,scale:e}){const n=f[e],i=function(t){const e=!isNaN(Number(t.charAt(0))),n=t.split("-");if(n.length>0){const e=/[a-z]/i;t=n.map(((t,n)=>t.replace(e,(function(t,e){return 0===n&&0===e?t:t.toUpperCase()})))).join("")}return e?`i${t}`:t}(t),r="F"===i.charAt(i.length-1);return`${r?i.substring(0,i.length-1):i}${n}${r?"F":""}`}function v(t){return d[t]}const m=l.AH`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`;class g extends o.WF{constructor(){super(...arguments),this.visible=!1,this.flipRtl=!1,this.icon=null,this.preload=!1,this.scale="m"}static{this.properties={pathData:16,visible:16,flipRtl:7,icon:3,preload:7,scale:3,textLabel:1}}static{this.styles=m}connectedCallback(){if(super.connectedCallback(),this.preload)return this.visible=!0,void this.loadIconPathData();this.visible||this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()}))}willUpdate(t){(t.has("icon")&&(this.hasUpdated||null!==this.icon)||t.has("scale")&&(this.hasUpdated||"m"!==this.scale))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=null}async loadIconPathData(){const{icon:t,scale:e,visible:n}=this;if(!(0,i.i)()||!t||!n)return;const r={icon:t,scale:e},o=v(p(r))||await async function(t){const e=p(t),n=v(e);if(n)return n;h[e]||(h[e]=fetch((0,i.g)(`./assets/icon/${e}.json`)).then((t=>t.json())).catch((()=>(c.l.error(`${t.icon} (${t.scale}) icon failed to load`),""))));const r=await h[e];return d[e]=r,r}(r);t===this.icon&&(this.pathData=o)}waitUntilVisible(t){this.intersectionObserver=(0,a.c)("intersection",(e=>{e.forEach((e=>{e.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())}))}),{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):t()}render(){const{el:t,flipRtl:e,pathData:n,scale:i,textLabel:a}=this,c=(0,s.g)(t),l=f[i],d=!!a,h=[].concat(n||"");return this.el.ariaHidden=(0,s.t)(!d),this.el.ariaLabel=d?a:null,this.el.role=d?"img":null,r.qy`<svg aria-hidden=true class=${(0,o.CP)({[u]:"rtl"===c&&e,svg:!0})} fill=currentColor height=100% viewBox=${`0 0 ${l} ${l}`} width=100% xmlns=http://www.w3.org/2000/svg>${h.map((t=>"string"==typeof t?r.JW`<path d=${t??r.s6} />`:r.JW`<path d=${t.d??r.s6} opacity=${("opacity"in t?t.opacity:1)??r.s6} />`))}</svg>`}}(0,i.c)("calcite-icon",g)},48015:(t,e,n)=>{n.d(e,{_:()=>f,K:()=>m});var i=n(36752),r=n(18504),o=n(7804);const s=(t,e)=>{const n=t._$AN;if(void 0===n)return!1;for(const t of n)t._$AO?.(e,!1),s(t,e);return!0},a=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===n?.size)},c=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),d(e)}};function l(t){void 0!==this._$AN?(a(this),this._$AM=t,c(this)):this._$AM=t}function u(t,e=!1,n=0){const i=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(e)if(Array.isArray(i))for(let t=n;t<i.length;t++)s(i[t],!1),a(i[t]);else null!=i&&(s(i,!1),a(i));else s(this,t)}const d=t=>{t.type==o.OA.CHILD&&(t._$AP??=u,t._$AQ??=l)};class h extends o.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),c(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(s(this,t),a(this))}setValue(t){if((0,r.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const f=()=>new p;class p{}const v=new WeakMap,m=(0,o.u$)(class extends h{render(t){return i.s6}update(t,[e]){const n=e!==this.Y;return n&&void 0!==this.Y&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.Y=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),i.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.Y){const e=this.ht??globalThis;let n=v.get(e);void 0===n&&(n=new WeakMap,v.set(e,n)),void 0!==n.get(this.Y)&&this.Y.call(this.ht,void 0),n.set(this.Y,t),void 0!==t&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){return"function"==typeof this.Y?v.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})}}]);
1
+ /*! For license information please see 32d3657dcae89b740f8b.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7007],{83623:(t,e,n)=>{function i(t){return"l"===t?"m":"s"}n.d(e,{g:()=>i}),n(84137)},79e3:(t,e,n)=>{n.d(e,{D:()=>I,a:()=>R,b:()=>E,g:()=>w,h:()=>S,i:()=>T,k:()=>x,l:()=>z,m:()=>M,p:()=>y,q:()=>N,r:()=>k,s:()=>O,t:()=>_,u:()=>D,v:()=>C,w:()=>P}),n(34088);var i=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),r=typeof Element>"u",o=r?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!r&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return t?.ownerDocument},a=function t(e,n){var i;void 0===n&&(n=!0);var r=null==e||null===(i=e.getAttribute)||void 0===i?void 0:i.call(e,"inert");return""===r||"true"===r||n&&e&&t(e.parentNode)},c=function t(e,n,r){for(var s=[],c=Array.from(e);c.length;){var l=c.shift();if(!a(l,!1))if("SLOT"===l.tagName){var u=l.assignedElements(),d=t(u.length?u:l.children,!0,r);r.flatten?s.push.apply(s,d):s.push({scopeParent:l,candidates:d})}else{o.call(l,i)&&r.filter(l)&&(n||!e.includes(l))&&s.push(l);var h=l.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(l),f=!a(h,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(h&&f){var p=t(!0===h?l.children:h.children,!0,r);r.flatten?s.push.apply(s,p):s.push({scopeParent:l,candidates:p})}else c.unshift.apply(c,l.children)}}return s},l=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},u=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!l(t)?0:t.tabIndex},d=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},h=function(t){return"INPUT"===t.tagName},f=function(t){var e=t.getBoundingClientRect(),n=e.width,i=e.height;return 0===n&&0===i},p=function(t,e){return!(e.disabled||a(e)||function(t){return h(t)&&"hidden"===t.type}(e)||function(t,e){var n=e.displayCheck,i=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var r=o.call(t,"details>summary:first-of-type")?t.parentElement:t;if(o.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return f(t)}else{if("function"==typeof i){for(var a=t;t;){var c=t.parentElement,l=s(t);if(c&&!c.shadowRoot&&!0===i(c))return f(t);t=t.assignedSlot?t.assignedSlot:c||l===t.ownerDocument?c:l.host}t=a}if(function(t){var e,n,i,r,o=t&&s(t),a=null===(e=o)||void 0===e?void 0:e.host,c=!1;if(o&&o!==t)for(c=!!(null!==(n=a)&&void 0!==n&&null!==(i=n.ownerDocument)&&void 0!==i&&i.contains(a)||null!=t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(t));!c&&a;){var l,u,d;c=!(null===(u=a=null===(l=o=s(a))||void 0===l?void 0:l.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return c}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var i=e.children.item(n);if("LEGEND"===i.tagName)return!!o.call(e,"fieldset[disabled] *")||!i.contains(t)}return!0}e=e.parentElement}return!1}(e))},v=function(t,e){return!(function(t){return function(t){return h(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||s(t),i=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if(typeof window<"u"&&typeof window.CSS<"u"&&"function"==typeof window.CSS.escape)e=i(window.CSS.escape(t.name));else try{e=i(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)}(e)||u(e)<0||!p(t,e))},m=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},g=function t(e){var n=[],i=[];return e.forEach((function(e,r){var o=!!e.scopeParent,s=o?e.scopeParent:e,a=function(t,e){var n=u(t);return n<0&&e&&!l(t)?0:n}(s,o),c=o?t(e.candidates):s;0===a?o?n.push.apply(n,c):n.push(s):i.push({documentOrder:r,tabIndex:a,item:e,isScope:o,content:c})})),i.sort(d).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(n)},b=function(t,e){var n;return n=(e=e||{}).getShadowRoot?c([t],e.includeContainer,{filter:v.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m}):function(t,e,n){if(a(t))return[];var r=Array.prototype.slice.apply(t.querySelectorAll(i));return e&&o.call(t,i)&&r.unshift(t),r.filter(n)}(t,e.includeContainer,v.bind(null,e)),g(n)};const y={getShadowRoot:!0};function w(t){const e=x(t,"[dir]");return e?e.getAttribute("dir"):"ltr"}function $(t){return t.getRootNode()}function A(t){return t.host||null}function N(t,{selector:e,id:n}){if(!t)return null;t.assignedSlot&&(t=t.assignedSlot);const i=$(t);return(n?"getElementById"in i?i.getElementById(n):null:e?i.querySelector(e):null)||N(A(i),{selector:e,id:n})}function x(t,e){return t?t.closest(e)||x(A($(t)),e):null}async function E(t){if(t)return function(t){return"function"==typeof t?.setFocus}(t)?t.setFocus():t.focus()}function S(t){(function(t){if(t)return b(t,y)[0]??t})(t)?.focus()}function C(t,e,n){return"string"==typeof e&&""!==e?e:""===e||!0===e?t[n]:void 0}function _(t){return(!!t).toString()}function k(t){return R(t)||function(t){return!!function(t){return function(t){return t.currentTarget.assignedNodes({flatten:!0})}(t).filter((t=>t.nodeType===Node.TEXT_NODE)).map((t=>t.textContent)).join("").trim()}(t)}(t)}function I(t){for(const e of t.childNodes)if(e.nodeType===Node.TEXT_NODE&&""!==e.textContent?.trim()||e.nodeType===Node.ELEMENT_NODE)return!0;return!1}function R(t){return!!O(t).length}function O(t,e){return function(t,e){const n=t.assignedElements({flatten:!0});return e?function(t,e){return t.filter((t=>t.matches(e)))}(n,e):n}(t.target,e)}function T(t){return!(!t.isPrimary||0!==t.button)}function D(t){return 0===t.detail}function z(t,e){if(t.parentNode!==e.parentNode)return!1;const n=Array.from(t.parentNode.children);return n.indexOf(t)<n.indexOf(e)}async function P(t,e,n,i){return async function(t,e,n,i,r){let o=L(t,n,e);if(o||(await U(),o=L(t,n,e)),!o)return async function(t,e){await U(),t?.(),await U(),e?.()}(i,r);i?.();try{await o.finished}catch{}finally{r?.()}}(t,e,"transition",n,i)}function L(t,e,n){const i="transition"===e?"transitionProperty":"animationName";return t.getAnimations().find((t=>t[i]===n))}function U(){return new Promise((t=>requestAnimationFrame((()=>t()))))}function M(t){return t.endsWith("px")}},28786:(t,e,n)=>{n.d(e,{c:()=>r});var i=n(34088);async function r(t){if(await t.componentOnReady(),(0,i.i)())return t.requestUpdate(),new Promise((t=>requestAnimationFrame((()=>t()))))}},84137:(t,e,n)=>{n.d(e,{l:()=>c});var i=n(34088);const r=new Set,o={trace:0,debug:1,info:2,warn:4,error:8,off:10};function s(t,...e){(function(t){return o[t]>=o[i.l]})(t)&&console[t].call(this,"%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...e)}let a;const c={debug:t=>s("debug",t),info:t=>s("info",t),warn:t=>s("warn",t),error:t=>s("error",t),trace:t=>s("trace",t),deprecated:function(t,{component:e,name:n,suggested:i,removalVersion:o}){const c=`${t}:${n}`;if(r.has(c))return;r.add(c);const l=Array.isArray(i);l&&!a&&(a=new Intl.ListFormat("en",{style:"long",type:"disjunction"})),s("warn",`[${n}] ${t} is deprecated and will be removed in v${o}.${i?` Use ${l?a.format(i.map((t=>`"${t}"`))):`"${i}"`} instead.`:""}`)}}},4643:(t,e,n)=>{n.d(e,{c:()=>r});var i=n(34088);function r(t,e,n){if(!(0,i.i)())return;const r=function(t){class e extends window.MutationObserver{constructor(t){super(t),this.observedEntry=[],this.callback=t}observe(t,e){return this.observedEntry.push({target:t,options:e}),super.observe(t,e)}unobserve(t){const e=this.observedEntry.filter((e=>e.target!==t));this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),e.forEach((t=>this.observe(t.target,t.options)))}}return"intersection"===t?window.IntersectionObserver:"mutation"===t?e:window.ResizeObserver}(t);return new r(e,n)}},75572:(t,e,n)=>{n.d(e,{u:()=>o});var i=n(90286),r=n(34088);const o=(0,i.yr)(r.g)},32239:(t,e,n)=>{var i=n(34088),r=n(12618),o=n(22900),s=n(79e3),a=n(4643),c=n(84137),l=n(33826);const u="flip-rtl",d={},h={},f={s:16,m:24,l:32};function p({icon:t,scale:e}){const n=f[e],i=function(t){const e=!isNaN(Number(t.charAt(0))),n=t.split("-");if(n.length>0){const e=/[a-z]/i;t=n.map(((t,n)=>t.replace(e,(function(t,e){return 0===n&&0===e?t:t.toUpperCase()})))).join("")}return e?`i${t}`:t}(t),r="F"===i.charAt(i.length-1);return`${r?i.substring(0,i.length-1):i}${n}${r?"F":""}`}function v(t){return d[t]}const m=l.AH`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`;class g extends o.WF{constructor(){super(...arguments),this.visible=!1,this.flipRtl=!1,this.icon=null,this.preload=!1,this.scale="m"}static{this.properties={pathData:16,visible:16,flipRtl:7,icon:3,preload:7,scale:3,textLabel:1}}static{this.styles=m}connectedCallback(){if(super.connectedCallback(),this.preload)return this.visible=!0,void this.loadIconPathData();this.visible||this.waitUntilVisible((()=>{this.visible=!0,this.loadIconPathData()}))}willUpdate(t){(t.has("icon")&&(this.hasUpdated||null!==this.icon)||t.has("scale")&&(this.hasUpdated||"m"!==this.scale))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=null}async loadIconPathData(){const{icon:t,scale:e,visible:n}=this;if(!(0,i.i)()||!t||!n)return;const r={icon:t,scale:e},o=v(p(r))||await async function(t){const e=p(t),n=v(e);if(n)return n;h[e]||(h[e]=fetch((0,i.g)(`./assets/icon/${e}.json`)).then((t=>t.json())).catch((()=>(c.l.error(`${t.icon} (${t.scale}) icon failed to load`),""))));const r=await h[e];return d[e]=r,r}(r);t===this.icon&&(this.pathData=o)}waitUntilVisible(t){this.intersectionObserver=(0,a.c)("intersection",(e=>{e.forEach((e=>{e.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())}))}),{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):t()}render(){const{el:t,flipRtl:e,pathData:n,scale:i,textLabel:a}=this,c=(0,s.g)(t),l=f[i],d=!!a,h=[].concat(n||"");return this.el.ariaHidden=(0,s.t)(!d),this.el.ariaLabel=d?a:null,this.el.role=d?"img":null,r.qy`<svg aria-hidden=true class=${(0,o.CP)({[u]:"rtl"===c&&e,svg:!0})} fill=currentColor height=100% viewBox=${`0 0 ${l} ${l}`} width=100% xmlns=http://www.w3.org/2000/svg>${h.map((t=>"string"==typeof t?r.JW`<path d=${t??r.s6} />`:r.JW`<path d=${t.d??r.s6} opacity=${("opacity"in t?t.opacity:1)??r.s6} />`))}</svg>`}}(0,i.c)("calcite-icon",g)},48015:(t,e,n)=>{n.d(e,{_:()=>f,K:()=>m});var i=n(36752),r=n(18504),o=n(7804);const s=(t,e)=>{const n=t._$AN;if(void 0===n)return!1;for(const t of n)t._$AO?.(e,!1),s(t,e);return!0},a=t=>{let e,n;do{if(void 0===(e=t._$AM))break;n=e._$AN,n.delete(t),t=e}while(0===n?.size)},c=t=>{for(let e;e=t._$AM;t=e){let n=e._$AN;if(void 0===n)e._$AN=n=new Set;else if(n.has(t))break;n.add(t),d(e)}};function l(t){void 0!==this._$AN?(a(this),this._$AM=t,c(this)):this._$AM=t}function u(t,e=!1,n=0){const i=this._$AH,r=this._$AN;if(void 0!==r&&0!==r.size)if(e)if(Array.isArray(i))for(let t=n;t<i.length;t++)s(i[t],!1),a(i[t]);else null!=i&&(s(i,!1),a(i));else s(this,t)}const d=t=>{t.type==o.OA.CHILD&&(t._$AP??=u,t._$AQ??=l)};class h extends o.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,n){super._$AT(t,e,n),c(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(s(this,t),a(this))}setValue(t){if((0,r.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}const f=()=>new p;class p{}const v=new WeakMap,m=(0,o.u$)(class extends h{render(t){return i.s6}update(t,[e]){const n=e!==this.Y;return n&&void 0!==this.Y&&this.rt(void 0),(n||this.lt!==this.ct)&&(this.Y=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),i.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.Y){const e=this.ht??globalThis;let n=v.get(e);void 0===n&&(n=new WeakMap,v.set(e,n)),void 0!==n.get(this.Y)&&this.Y.call(this.ht,void 0),n.set(this.Y,t),void 0!==t&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){return"function"==typeof this.Y?v.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})}}]);
@@ -5,7 +5,7 @@
5
5
 
6
6
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
7
7
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
8
- v3.0.0-next.128 */
8
+ v3.0.0-next.132 */
9
9
 
10
10
  /**
11
11
  * @license
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
2
2
  See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
3
- v3.0.0-next.128 */
3
+ v3.0.0-next.132 */
4
4
 
5
5
  /**
6
6
  * @license
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[377],{67482:(e,t,n)=>{function r(e){return null!=l(e)||null!=i(e)}function o(e){return a.test(e)}function s(e){return l(e)??i(e)}function i(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let n=!0;if(c&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,r=0;for(;!t&&r<=e.length;)t=!u.test(e[r]),r++;n=!t}}return n}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function l(e){const t=a.exec(e);if(!t?.groups)return null;const n=t.groups,r=+n.year,o=+n.month-1,s=+n.day,i=+(n.hours??"0"),l=+(n.minutes??"0"),u=+(n.seconds??"0");if(i>23)return null;if(l>59)return null;if(u>59)return null;const c=n.ms??"0",f=c?+c.padEnd(3,"0").slice(0,3):0;let p;if(n.isUTC||!n.offsetSign)p=Date.UTC(r,o,s,i,l,u,f);else{const e=+n.offsetHours,t=+n.offsetMinutes;p=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(r,o,s,i,l,u,f)}return Number.isNaN(p)?null:p}n.d(t,{Br:()=>o,Cq:()=>r,_U:()=>s});const a=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,c=!Number.isNaN(new Date("technology 10").getTime())},39516:(e,t,n)=>{let r;async function o(){return null==r&&(r=n.e(4123).then(n.bind(n,44123)).then((e=>new e.WhereClauseCache(500,500)))),r}async function s(e,t){const n=await o(),r=n.get(e,t);if(null==r)throw n.getError(e,t);return r}function i(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function l(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}n.d(t,{GP:()=>s,IW:()=>l,mA:()=>i})},85113:(e,t,n)=>{n.d(t,{BM:()=>T,bd:()=>S,sO:()=>F,xD:()=>c});var r=n(67482),o=n(49186),s=n(21325),i=n(43334),l=n(92722),a=n(30524);const u={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return u[e]}function*f(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*p(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function d(e){for(const t of e)if(t.length>2)return!0;return!1}function m(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n],o=e[(n+1)%e.length];t+=r[0]*o[1]-o[0]*r[1]}return t<=0}function y(e){const t=e[0],n=e[e.length-1];return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]||e.push(t),e}function g(e,t,n){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,n){return b(e,t.coordinates,n),e}(e,t,n);case"MultiLineString":return function(e,t,n){for(const r of t.coordinates)b(e,r,n);return e}(e,t,n);case"MultiPolygon":return function(e,t,n){for(const r of t.coordinates){h(e,r[0],n);for(let t=1;t<r.length;t++)w(e,r[t],n)}return e}(e,t,n);case"Point":return function(e,t,n){return A(e,t.coordinates,n),e}(e,t,n);case"Polygon":return function(e,t,n){const r=t.coordinates;h(e,r[0],n);for(let t=1;t<r.length;t++)w(e,r[t],n);return e}(e,t,n)}}function h(e,t,n){const r=y(t);!function(e){return!m(e)}(r)?b(e,r,n):I(e,r,n)}function w(e,t,n){const r=y(t);!function(e){return m(e)}(r)?b(e,r,n):I(e,r,n)}function b(e,t,n){for(const r of t)A(e,r,n);e.lengths.push(t.length)}function I(e,t,n){for(let r=t.length-1;r>=0;r--)A(e,t[r],n);e.lengths.push(t.length)}function A(e,t,n){const[r,o,s]=t;e.coords.push(r,o),n.hasZ&&e.coords.push(s||0)}function x(e){switch(typeof e){case"string":return(0,r.Br)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function F(e,t=4326){if(!e)throw new o.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new o.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:n}=e;if(!n)return;const r="string"==typeof n?n:"name"===n.type?n.properties.name:"EPSG"===n.type?n.properties.code:null,i=(0,s.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!r||!i.test(r))throw new o.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:n})}function T(e,t={}){const n=[],r=new Set,o=new Set;let s,i=!1,l=null,u=!1,{geometryType:m=null}=t;for(const t of f(e)){const{geometry:e,properties:f,id:y}=t;if((!e||(m||(m=c(e.type)),c(e.type)===m))&&(i||(i=d(p(e))),u||(u=null!=y,u&&(s=typeof y,f&&(l=Object.keys(f).filter((e=>f[e]===y))))),f&&l&&u&&null!=y&&(l.length>1?l=l.filter((e=>f[e]===y)):1===l.length&&(l=f[l[0]]===y?l:[])),f))for(const e in f){if(r.has(e))continue;const t=x(f[e]);if("unknown"===t){o.add(e);continue}o.delete(e),r.add(e);const s=(0,a.rS)(e);s&&n.push({name:s,alias:e,type:t})}}const y=(0,a.rS)(1===l?.length&&l[0]||null)??void 0;if(y)for(const e of n)if(e.name===y&&(0,a.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:n,geometryType:m,hasZ:i,objectIdFieldName:y,objectIdFieldType:s,unknownFields:Array.from(o)}}function S(e,t){return Array.from(function*(e,t={}){const{geometryType:n,objectIdField:r}=t;for(const o of e){const{geometry:e,properties:s,id:a}=o;if(e&&c(e.type)!==n)continue;const u=s||{};let f;r&&(f=u[r],null==a||f||(u[r]=f=a));const p=new i.Om(e?g(new l.A,e,t):null,u,null,f);yield p}}(f(e),t))}},64714:(e,t,n)=>{n.d(t,{F0:()=>l,Vx:()=>c,e2:()=>p,f:()=>d});var r=n(44208),o=n(4718),s=n(99352),i=n(93470);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?i.Cb:"esriGeometryPolyline"===e?i.yM:i.WR}}}const a=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function c(e,t){if((0,r.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this${f(t)} = null;`;for(const t in e)n+=`this${f(t)} = ${JSON.stringify(e[t])};`;const r=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new r}catch(n){return()=>({[t]:null,...e})}}function f(e){return a.test(e)?`.${e}`:`["${e}"]`}function p(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,o.o8)(e)}}]}function d(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:s.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:s.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},82832:(e,t,n)=>{n.d(t,{$1:()=>g,CR:()=>y,MB:()=>p,PC:()=>h,Yx:()=>a,bP:()=>c});var r=n(67482),o=n(21325),s=n(30524);class i{constructor(){this.code=null,this.description=null}}class l{constructor(e){this.error=new i,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=e}}function a(e){return new l(e)}class u{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function c(e){return new u(e)}const f=new Set;function p(e,t,n,r=!1){f.clear();for(const o in n){const i=e.get(o);if(!i)continue;const l=d(i,n[o]);if(f.add(i.name),i&&(r||i.editable)){const e=(0,s.CJ)(i,l);if(e)return a((0,s.uo)(e,i,l));t[i.name]=l}}for(const t of e.requiredFields??[])if(!f.has(t.name))return a(`missing required field "${t.name}"`);return null}function d(e,t){let n=t;return(0,s.WA)(e)&&"string"==typeof t?n=parseFloat(t):(0,s.yM)(e)&&null!=t&&"string"!=typeof t?n=String(t):(0,s.vE)(e)&&"string"==typeof t&&(n=(0,r._U)(t)),(0,s.WX)(n)}let m;function y(e,t){if(!e||!(0,o.fn)(t))return e;if("rings"in e||"paths"in e){if(null==m)throw new TypeError("geometry engine not loaded");return m.simplify(t,e)}return e}async function g(e,t){!(0,o.fn)(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await async function(){return null==m&&(m=await Promise.all([n.e(9930),n.e(1275)]).then(n.bind(n,47559))),m}()}const h={supportsAutoIntervalBin:!0,supportsFixedIntervalBin:!0,supportsFixedBoundariesBin:!0,supportsDateBin:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsNormalization:!0,supportedStatisticTypes:["COUNT","SUM","AVG","VAR","STDDEV","MIN","MAX","PERCENTILE_CONT","PERCENTILE_DISC","CentroidAggregate","EnvelopeAggregate","ConvexHullAggregate"],supportedNormalizationTypes:["field","log","naturalLog","percentOfTotal","squareRoot"]}},75321:(e,t,n)=>{n.d(t,{GA:()=>P,GL:()=>S,I:()=>k,J0:()=>$,Ki:()=>C,Px:()=>N,QE:()=>x,bV:()=>j,bW:()=>v,vJ:()=>A});var r=n(78888),o=n(49186),s=n(53966),i=n(84952),l=n(16930),a=n(21325),u=n(28735),c=n(90708),f=n(58512),p=n(85113),d=n(64714),m=n(82832),y=n(95466),g=n(98453),h=n(56400);const w=()=>s.A.getLogger("esri.layers.ogc.ogcFeatureUtils"),b="startindex",I=new Set([b,"offset"]),A="http://www.opengis.net/def/crs/",x=`${A}OGC/1.3/CRS84`;var F,T;async function S(e,t,n={},s=5){const{links:l}=e,a=G(l,"items",F.geojson)||G(l,"http://www.opengis.net/def/rel/ogc/1.0/items",F.geojson);if(null==a)throw new o.A("ogc-feature-layer:missing-items-page","Missing items url");const{apiKey:u,customParameters:c,signal:f}=n,m=(0,i.s2)(a.href,e.landingPage.url),I={limit:s,...c,token:u},A=(0,i.a6)(m,I),x={accept:F.geojson},{data:T}=await(0,r.A)(A,{signal:f,headers:x}),S=D(A,s,T.links)??b;(0,p.sO)(T);const j=(0,p.BM)(T,{geometryType:t.geometryType}),N=t.fields||j.fields||[],C=null!=t.hasZ?t.hasZ:j.hasZ,P=j.geometryType,$=t.objectIdField||j.objectIdFieldName||"OBJECTID";let v=t.timeInfo;const k=N.find((({name:e})=>e===$));if(k)k.editable=!1,k.nullable=!1;else{if(!j.objectIdFieldType)throw new o.A("ogc-feature-layer:missing-feature-id","Collection geojson require a feature id as a unique identifier");N.unshift({name:$,alias:$,type:"number"===j.objectIdFieldType?"esriFieldTypeOID":"esriFieldTypeString",editable:!1,nullable:!1})}if($!==j.objectIdFieldName){const e=N.find((({name:e})=>e===j.objectIdFieldName));e&&(e.type="esriFieldTypeInteger")}N===j.fields&&j.unknownFields.length>0&&w().warn({name:"ogc-feature-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:j.unknownFields}});for(const e of N){if(null==e.name&&(e.name=e.alias),null==e.alias&&(e.alias=e.name),"esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type&&(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable),!e.name)throw new o.A("ogc-feature-layer:invalid-field-name","field name is missing",{field:e});if(!g.m.jsonValues.includes(e.type))throw new o.A("ogc-feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e})}if(v){const e=new y.A(N);if(v.startTimeField){const t=e.get(v.startTimeField);t?(v.startTimeField=t.name,t.type="esriFieldTypeDate"):v.startTimeField=null}if(v.endTimeField){const t=e.get(v.endTimeField);t?(v.endTimeField=t.name,t.type="esriFieldTypeDate"):v.endTimeField=null}if(v.trackIdField){const t=e.get(v.trackIdField);t?v.trackIdField=t.name:(v.trackIdField=null,w().warn({name:"ogc-feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:v}}))}v.timeReference||={timeZoneIANA:h.n$},v.startTimeField||v.endTimeField||(w().warn({name:"ogc-feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:v}}),v=void 0)}return{drawingInfo:P?(0,d.F0)(P):null,extent:O(e),geometryType:P,fields:N,hasZ:!!C,objectIdField:$,paginationParameter:S,timeInfo:v}}async function j(e,t={}){const{links:n,url:s}=e,l=G(n,"data",F.json)||G(n,"http://www.opengis.net/def/rel/ogc/1.0/data",F.json);if(null==l)throw new o.A("ogc-feature-layer:missing-collections-page","Missing collections url");const{apiKey:a,customParameters:u,signal:c}=t,f=(0,i.s2)(l.href,s),{data:p}=await(0,r.A)(f,{signal:c,headers:{accept:F.json},query:{...u,token:a}});for(const t of p.collections)t.landingPage=e;return p}async function N(e,t={}){const{links:n,url:s}=e,l=G(n,"conformance",F.json)||G(n,"http://www.opengis.net/def/rel/ogc/1.0/conformance",F.json);if(null==l)throw new o.A("ogc-feature-layer:missing-conformance-page","Missing conformance url");const{apiKey:a,customParameters:u,signal:c}=t,f=(0,i.s2)(l.href,s),{data:p}=await(0,r.A)(f,{signal:c,headers:{accept:F.json},query:{...u,token:a}});return p}async function C(e,t={}){const{apiKey:n,customParameters:o,signal:s}=t,{data:i}=await(0,r.A)(e,{signal:s,headers:{accept:F.json},query:{...o,token:n}});return i.url=e,i}async function P(e,t={}){const{links:n,url:o}=e,s=G(n,"service-desc",F.openapi);if(null==s)return w().warn("ogc-feature-layer:missing-openapi-page","The OGC API-Features server does not have an OpenAPI page."),null;const{apiKey:l,customParameters:a,signal:u}=t,c=(0,i.s2)(s.href,o),{data:f}=await(0,r.A)(c,{signal:u,headers:{accept:F.openapi},query:{...a,token:l}});return f}function $(e){const t=/^http:\/\/www\.opengis.net\/def\/crs\/(?<authority>.*)\/(?<version>.*)\/(?<code>.*)$/i.exec(e),n=t?.groups;if(!n)return null;const{authority:r,code:o}=n;switch(r.toLowerCase()){case"ogc":switch(o.toLowerCase()){case"crs27":return l.A.GCS_NAD_1927.wkid;case"crs83":return 4269;case"crs84":case"crs84h":return l.A.WGS84.wkid;default:return null}case"esri":case"epsg":{const e=Number.parseInt(o,10);return Number.isNaN(e)?null:e}default:return null}}async function v(e,t,n){const r=await k(e,t,n);return(0,c.ZF)(r)}async function k(e,t,n){const{collection:{links:s,landingPage:{url:d}},layerDefinition:g,maxRecordCount:h,queryParameters:{apiKey:w,customParameters:b},spatialReference:I,supportedCrs:A}=e,x=G(s,"items",F.geojson)||G(s,"http://www.opengis.net/def/rel/ogc/1.0/items",F.geojson);if(null==x)throw new o.A("ogc-feature-layer:missing-items-page","Missing items url");const{geometry:T,num:S,start:j,timeExtent:N,where:C}=t;if(t.objectIds)throw new o.A("ogc-feature-layer:query-by-objectids-not-supported","Queries with object ids are not supported");const P=l.A.fromJSON(I),$=t.outSpatialReference??P,v=$.isWGS84?null:E($,A),k=R(T,A),M=function(e){if(null==e)return null;const{start:t,end:n}=e;return`${null!=t?t.toISOString():".."}/${null!=n?n.toISOString():".."}`}(N),O=null!=(K=C)&&K&&"1=1"!==K?K:null,D=S??(null==j?h:10),q=0===j?void 0:j,{fields:B,geometryType:W,hasZ:Z,objectIdField:_,paginationParameter:U}=g,L=(0,i.s2)(x.href,d),{data:H}=await(0,r.A)(L,{...n,query:{...b,...k,crs:v,datetime:M,query:O,limit:D,[U]:q,token:w},headers:{accept:F.geojson}}),J=(0,p.bd)(H,{geometryType:W,hasZ:Z,objectIdField:_}),V=J.length===D&&!!G(H.links??[],"next",F.geojson),z=new y.A(B);var K;for(const e of J){const t={};(0,m.MB)(z,t,e.attributes,!0);for(const e of z.fields)e.nullable&&!(e.name in t)&&(t[e.name]=null);t[_]=e.attributes[_],e.attributes=t}if(!v&&$.isWebMercator)for(const e of J)if(null!=e.geometry&&null!=W){const t=(0,c.zv)(e.geometry,W,Z,!1);t.spatialReference=l.A.WGS84,e.geometry=(0,c.Ux)((0,u.Cv)(t,$))}for(const e of J)e.objectId=e.attributes[_];const Q=v||!v&&$.isWebMercator?$.toJSON():a.KK,X=new f.A;return X.exceededTransferLimit=V,X.features=J,X.fields=B,X.geometryType=W,X.hasZ=Z,X.objectIdFieldName=_,X.spatialReference=Q,X}function E(e,t){const{isWebMercator:n,wkid:r}=e;if(!r)return null;const o=n?t[3857]??t[102100]??t[102113]??t[900913]:t[e.wkid];return o?`${A}${o}`:null}function M(e){if(null==e)return"";const{xmin:t,ymin:n,xmax:r,ymax:o}=e;return`${t},${n},${r},${o}`}function R(e,t){if(!function(e){return null!=e&&"extent"===e.type}(e))return null;const{spatialReference:n}=e;if(!n||n.isWGS84)return{bbox:M(e)};const r=E(n,t);return null!=r?{bbox:M(e),"bbox-crs":r}:n.isWebMercator?{bbox:M((0,u.Cv)(e,l.A.WGS84))}:null}function O(e){const t=e.extent?.spatial;if(!t)return null;const n=t.bbox[0],r=4===n.length,[o,s]=n,i=r?void 0:n[2];return{xmin:o,ymin:s,xmax:r?n[2]:n[3],ymax:r?n[3]:n[4],zmin:i,zmax:r?void 0:n[5],spatialReference:l.A.WGS84.toJSON()}}function G(e,t,n){return e.find((({rel:e,type:r})=>e===t&&r===n))??e.find((({rel:e,type:n})=>e===t&&!n))}function D(e,t,n){if(!n)return;const r=G(n,"next",F.geojson),o=(0,i.An)(r?.href)?.query;if(!o)return;const s=(0,i.An)(e).query,l=Object.keys(s??{}),a=Object.entries(o).filter((([e])=>!l.includes(e))).find((([e,n])=>I.has(e.toLowerCase())&&Number.parseInt(n,10)===t)),u=a?.[0];return u}(T=F||(F={})).json="application/json",T.geojson="application/geo+json",T.openapi="application/vnd.oai.openapi+json;version=3.0"},41560:(e,t,n)=>{n.d(t,{Ch:()=>i,mW:()=>s});var r=n(34727),o=n(39516);function s(e,t){return{...t,filterMode:e.mode}}function i(e,t,n){const s=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:n,maxScale:r}of e.filters)t[0]=Math.max(t[0],c(n)),t[1]=Math.min(t[1],f(r));return t}(e);if(s&&((0,r.gg)(t,s[0])||(0,r.ZH)(n,s[1])))return"";const i=Array.from(l(e,t,n)),a=function(e,t,n){if(0===e.length)return!0;const o=c(e.at(0)?.minScale),s=f(e.at(-1)?.maxScale);if((0,r.ZH)(o,t)||(0,r.gg)(s,n))return!0;for(let t=0;t<e.length-1;t++){const n=e[t],o=e[t+1];if((0,r.ZH)(c(o.minScale),f(n.maxScale)))return!0}return!1}(i,t,n)?"1=1":i.map((e=>e.where||"1=1")).reduce(((e,t)=>(0,o.IW)(e,t)),"");return a&&"1=1"!==a?a:""}function*l(e,t,n){if("manual"===u(e)){const t=e.filters.find((t=>t.id===e.activeFilterId));t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const r of e.filters)a(r.minScale,r.maxScale,t,n)&&(yield r)}}function a(e,t,n,o){return e=c(e),n=c(n),t=f(t),!(!(0,r.Sp)(n,e)&&(o??n)>e||(0,r.Hx)(t,n)||void 0!==o&&(0,r.Sp)(o,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function c(e){return e||Number.POSITIVE_INFINITY}function f(e){return e||0}},32730:(e,t,n)=>{n.d(t,{BI:()=>g,D3:()=>m,XJ:()=>y,lc:()=>d,mX:()=>w,rU:()=>h,tH:()=>F});var r=n(799);const o="__begin__",s="__end__",i=new RegExp(o,"ig"),l=new RegExp(s,"ig"),a=new RegExp("^"+o,"i"),u=new RegExp(s+"$","i"),c='"',f=c+" + ",p=" + "+c;function d(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function m(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function y(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=d(e.labelExpression),t.type="conventional"),t}function g(e){const t=y(e);switch(t.type){case"conventional":return w(t.expression);case"arcade":return t.expression}return null}function h(e){const t=y(e);switch(t.type){case"conventional":return function(e){const t=e?.match(b);return t?.[1].trim()||null}(t.expression);case"arcade":return F(t.expression)}return null}function w(e){let t;return e?(t=(0,r.HC)(e,(e=>o+'$feature["'+e+'"]'+s)),t=a.test(t)?t.replace(a,""):c+t,t=u.test(t)?t.replace(u,""):t+c,t=t.replaceAll(i,f).replaceAll(l,p)):t='""',t}const b=/^\s*\{([^}]+)\}\s*$/i,I=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,A=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,x=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function F(e){if(!e)return null;let t=I.exec(e)||A.exec(e);return t?t[1]||t[3]:(t=x.exec(e),t?t[2]:null)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6131],{89317:(e,t,r)=>{r.d(t,{K:()=>i});const i=["operational-layers","basemap","ground"]},16131:(e,t,r)=>{r.d(t,{q:()=>g});var i=r(90237),n=r(49186),s=r(84952),a=r(10107),o=r(56507),l=(r(44208),r(87811),r(36005)),p=r(40608),y=r(43937),u=r(89317),d=r(45917),c=r(49422);const m={ArcGISAnnotationLayer:!0,ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CatalogLayer:!0,CSV:!0,GeoJSON:!0,GeoRSS:!0,GroupLayer:!0,KML:!0,KnowledgeGraphLayer:!0,MediaLayer:!0,OGCFeatureLayer:!0,OrientedImageryLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WCS:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},b={ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,OpenStreetMap:!0,VectorTileLayer:!0,WCS:!0,WMS:!0,WebTiledLayer:!0},w={ArcGISFeatureLayer:!0,SubtypeGroupTable:!0},h={"web-scene/operational-layers":{ArcGISDimensionLayer:!0,ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,CatalogLayer:!0,CSV:!0,GeoJSON:!0,GroupLayer:!0,IntegratedMesh3DTilesLayer:!0,IntegratedMeshLayer:!0,KML:!0,LineOfSightLayer:!0,MediaLayer:!0,OGCFeatureLayer:!0,OrientedImageryLayer:!0,PointCloudLayer:!0,RasterDataLayer:!0,VectorTileLayer:!0,ViewshedLayer:!0,Voxel:!0,WCS:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-scene/basemap":{ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WCS:!0,WMS:!0,WebTiledLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-scene/tables":{ArcGISFeatureLayer:!0},"web-map/operational-layers":m,"web-map/basemap":b,"web-map/tables":w,"link-chart/operational-layers":{...m,LinkChartLayer:!0},"link-chart/basemap":b,"link-chart/tables":w,"portal-item/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,BuildingSceneLayer:!0,IntegratedMesh3DTilesLayer:!0,IntegratedMeshLayer:!0,MediaLayer:!0,OrientedImageryLayer:!0,PointCloudLayer:!0,SubtypeGroupLayer:!0,WCS:!0}};var f=r(10873),v=r(79677);const g=e=>{let t=class extends e{constructor(){super(...arguments),this.persistenceEnabled=!0,this.title=null}readId(e,t,r){return"Group Layer"===r?.portalItem?.type?void 0:e}writeListMode(e,t,r,i){(i&&"ground"===i.layerContainerType||e&&(0,c.R)(this,r,{},i))&&(t[r]=e)}writeOperationalLayerType(e,t,r){e&&(t[r]=e)}writeTitle(e,t){t.title=e??"Layer"}readVisibilityTimeExtent(e){return e?v.A.fromArray(e):null}writeVisibilityTimeExtent(e,t,r,i){e&&"tables"!==i.layerContainerType&&(e.isEmpty?i?.messages&&i.messages.push(new n.A("layer:invalid-visibilityTimeExtent","visibilityTimeExtent cannot be empty")):t[r]=e.toArray())}read(e,t){t&&(t.layer=this),(0,d.t)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(!this.persistenceEnabled&&!t?.ignorePersistenceEnabled)return null;if(t?.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,r=h[e];let i=!!r?.[this.operationalLayerType];if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(i=!1),"ArcGISDimensionLayer"===this.operationalLayerType&&"web-map/operational-layers"===e&&(i=!1),!i)return t.messages?.push(new n.A("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const r=super.write(e,{...t,layer:this}),i=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof n.A&&"web-document-write:property-required"===e.name)).length;return(0,s.w8)(r?.url)?(t?.messages?.push(new n.A("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&i?null:r}beforeSave(){}};return(0,i._)([(0,a.MZ)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,i._)([(0,l.w)("id",["id"])],t.prototype,"readId",null),(0,i._)([(0,a.MZ)(f.C1)],t.prototype,"listMode",void 0),(0,i._)([(0,y.K)("listMode")],t.prototype,"writeListMode",null),(0,i._)([(0,a.MZ)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1},"web-scene":{name:"layerType",read:!1,write:{enabled:!0,ignoreOrigin:!0,layerContainerTypes:u.K,isRequired:!0}}}}})],t.prototype,"operationalLayerType",void 0),(0,i._)([(0,y.K)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,i._)([(0,a.MZ)(f.ke)],t.prototype,"opacity",void 0),(0,i._)([(0,a.MZ)({type:Boolean,readOnly:!1})],t.prototype,"persistenceEnabled",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,i._)([(0,y.K)("title"),(0,y.K)(["web-scene"],"title")],t.prototype,"writeTitle",null),(0,i._)([(0,a.MZ)({type:v.A,json:{origins:{"web-scene":{write:{layerContainerTypes:u.K}}}}})],t.prototype,"visibilityTimeExtent",void 0),(0,i._)([(0,l.w)("visibilityTimeExtent")],t.prototype,"readVisibilityTimeExtent",null),(0,i._)([(0,y.K)(["portal-item","web-map","web-scene"],"visibilityTimeExtent",{visibilityTimeExtent:{type:[[o.jz,o.Uv]]}})],t.prototype,"writeVisibilityTimeExtent",null),(0,i._)([(0,a.MZ)({type:Boolean,json:{name:"visibility",write:{layerContainerTypes:u.K}}})],t.prototype,"visible",void 0),t=(0,i._)([(0,p.$)("esri.layers.mixins.OperationalLayer")],t),t}},10873:(e,t,r)=>{r.d(t,{C1:()=>T,Fm:()=>g,Ih:()=>v,M6:()=>u,OZ:()=>c,PY:()=>y,Qo:()=>w,Yj:()=>b,fV:()=>m,hG:()=>L,hn:()=>I,id:()=>S,kF:()=>d,ke:()=>f,zQ:()=>E});var i=r(89317),n=r(5443),s=r(16930),a=r(97159),o=r(88625),l=r(85360),p=r(78553);const y={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:{enabled:!0,layerContainerTypes:i.K}}},u={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},d={type:Boolean,value:!0,nonNullable:!0,json:{name:"showLabels",write:{enabled:!0,layerContainerTypes:i.K}}},c={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:a.w}}},m={type:Boolean,value:!0,nonNullable:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:{enabled:!0,layerContainerTypes:i.K}}},b={value:null,type:o.A,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:{enabled:!0,layerContainerTypes:i.K}}};function w(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const h={write:{enabled:!0,layerContainerTypes:i.K},read:!0},f={type:Number,json:{origins:{"web-document":h,"portal-item":{write:!0}}}},v={...f,json:{...f.json,origins:{"web-document":{...h,write:{enabled:!0,layerContainerTypes:i.K,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&"service"!==r.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition?.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,p.D)(t.layerDefinition.drawingInfo.transparency):void 0:(0,p.D)(t.drawingInfo.transparency)}}},g={type:n.A,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=n.A.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=s.A.fromJSON(t.spatialReference)),r}}}},read:!1}},S={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},I={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.minScale",write:{layerContainerTypes:i.K}}},L={type:Number,json:{origins:{service:{write:{enabled:!1}}},name:"layerDefinition.maxScale",write:{layerContainerTypes:i.K}}},T={json:{write:{ignoreOrigin:!0,layerContainerTypes:i.K},origins:{"web-map":{read:!1,write:!1}}}},E={type:l.A,json:{name:"attributeTableInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}}},31756:(e,t,r)=>{r.d(t,{j:()=>s});var i=r(83047),n=r(79258);const s={unknown:1,inches:(0,i.oU)(1,"meters","inches"),feet:(0,i.oU)(1,"meters","feet"),"us-feet":(0,i.oU)(1,"meters","us-feet"),yards:(0,i.oU)(1,"meters","yards"),miles:(0,i.oU)(1,"meters","miles"),"nautical-miles":(0,i.oU)(1,"meters","nautical-miles"),millimeters:(0,i.oU)(1,"meters","millimeters"),centimeters:(0,i.oU)(1,"meters","centimeters"),decimeters:(0,i.oU)(1,"meters","decimeters"),meters:(0,i.oU)(1,"meters","meters"),kilometers:(0,i.oU)(1,"meters","kilometers"),"decimal-degrees":1/(0,i.vl)(1,"meters",n.$O.radius)}},88625:(e,t,r)=>{r.d(t,{A:()=>g});var i,n=r(90237),s=r(66552),a=r(25482),o=r(97768),l=r(10107),p=(r(44208),r(53966),r(87811),r(36005)),y=r(40608),u=r(43937),d=r(30524);let c=i=class extends a.A{constructor(e){super(e)}async collectRequiredFields(e,t){return(0,d.Dx)(e,t,this.expression)}clone(){return new i({expression:this.expression,title:this.title})}equals(e){return this.expression===e.expression&&this.title===e.title}};(0,n._)([(0,l.MZ)({type:String,json:{write:{isRequired:!0}}})],c.prototype,"expression",void 0),(0,n._)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"title",void 0),c=i=(0,n._)([(0,y.$)("esri.symbols.support.FeatureExpressionInfo")],c);const m=c;var b,w=r(16271);const h=(0,s.O)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),f=new s.J({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let v=b=class extends a.A{constructor(e){super(e),this.featureExpressionInfo=void 0,this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,i){t[r]=e.write({},i),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):null!=e||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new b({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}equals(e){return this.mode===e.mode&&this.offset===e.offset&&this.unit===e.unit&&(0,o.CM)(this.featureExpressionInfo,e.featureExpressionInfo)}};(0,n._)([(0,l.MZ)({type:m,json:{write:!0}})],v.prototype,"featureExpressionInfo",void 0),(0,n._)([(0,p.w)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],v.prototype,"readFeatureExpressionInfo",null),(0,n._)([(0,u.K)("featureExpressionInfo",{featureExpressionInfo:{type:m},"featureExpression.value":{type:[0]}})],v.prototype,"writeFeatureExpressionInfo",null),(0,n._)([(0,l.MZ)({type:h.apiValues,nonNullable:!0,json:{type:h.jsonValues,read:h.read,write:{writer:h.write,isRequired:!0}}})],v.prototype,"mode",null),(0,n._)([(0,l.MZ)({type:Number,json:{write:!0}})],v.prototype,"offset",void 0),(0,n._)([(0,l.MZ)({type:w.KQ,json:{type:String,read:f.read,write:f.write}})],v.prototype,"unit",null),v=b=(0,n._)([(0,y.$)("esri.symbols.support.ElevationInfo")],v);const g=v},16271:(e,t,r)=>{r.d(t,{Ao:()=>s,KQ:()=>a});var i=r(4576),n=r(31756);function s(e){return 1/(n.j[e]||1)}const a=function(){const e=Object.keys(n.j);return(0,i.TF)(e,"decimal-degrees"),e.sort(),e}()},85360:(e,t,r)=>{r.d(t,{A:()=>O});var i=r(90237),n=r(25482),s=r(4718),a=r(10107),o=r(79901),l=r(36005),p=r(40608),y=r(43937);r(44208),r(53966),r(87811);let u=class extends n.A{constructor(e){super(e),this.description=null,this.label=null,this.type=null}};(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"description",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"label",void 0),(0,i._)([(0,a.MZ)()],u.prototype,"type",void 0),u=(0,i._)([(0,p.$)("esri.tables.elements.AttributeTableElement")],u);const d=u;var c;let m=c=class extends d{constructor(e){super(e),this.displayType="auto",this.type="attachment"}clone(){return new c({description:this.description,displayType:this.displayType,label:this.label})}};(0,i._)([(0,a.MZ)({type:["auto"],json:{write:!0}})],m.prototype,"displayType",void 0),(0,i._)([(0,a.MZ)({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],m.prototype,"type",void 0),m=c=(0,i._)([(0,p.$)("esri.tables.elements.AttributeTableAttachmentElement")],m);const b=m;var w;let h=w=class extends d{constructor(e){super(e),this.fieldName=null,this.type="field"}clone(){return new w({description:this.description,fieldName:this.fieldName,label:this.label})}};(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"fieldName",void 0),(0,i._)([(0,a.MZ)({type:String,json:{read:!1,write:!0}})],h.prototype,"type",void 0),h=w=(0,i._)([(0,p.$)("esri.tables.elements.AttributeTableFieldElement")],h);const f=h;var v,g=r(56507);let S=v=class extends d{constructor(e){super(e),this.relationshipId=null,this.type="relationship"}clone(){return new v({description:this.description,label:this.label,relationshipId:this.relationshipId})}};(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],S.prototype,"relationshipId",void 0),(0,i._)([(0,a.MZ)({type:["relationship"],json:{read:!1,write:!0}})],S.prototype,"type",void 0),S=v=(0,i._)([(0,p.$)("esri.tables.elements.AttributeTableRelationshipElement")],S);const I=S;function L(e){return{typesWithGroup:{base:d,key:"type",typeMap:{attachment:b,field:f,group:e,relationship:I}},typesWithoutGroup:{base:d,key:"type",typeMap:{attachment:b,field:f,relationship:I}}}}function T(e,t,r=!0){if(!e)return null;const i=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>i[e.type])).map((e=>i[e.type].fromJSON(e)))}function E(e,t,r=!0){if(!e)return null;const i=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>i[e.type])).map((e=>e.toJSON()))}function M(e,t,r=!0){return e?e.map((e=>(0,g.aq)(r?t.typesWithGroup:t.typesWithoutGroup,e))):null}var A;let G=A=class extends d{constructor(e){super(e),this.elements=null,this.type="group"}castElements(e){return M(e,x,!1)}readElements(e,t){return T(t.attributeTableElements,x,!1)}writeElements(e,t){t.attributeTableElements=E(e,x,!1)}clone(){return new A({description:this.description,elements:(0,s.o8)(this.elements),label:this.label})}};(0,i._)([(0,a.MZ)({json:{write:!0}})],G.prototype,"elements",void 0),(0,i._)([(0,o.w)("elements")],G.prototype,"castElements",null),(0,i._)([(0,l.w)("elements",["attributeTableElements"])],G.prototype,"readElements",null),(0,i._)([(0,y.K)("elements")],G.prototype,"writeElements",null),(0,i._)([(0,a.MZ)({type:String,json:{read:!1,write:!0}})],G.prototype,"type",void 0),G=A=(0,i._)([(0,p.$)("esri.tables.elements.AttributeTableGroupElement")],G);const x=L(G);var _;const j=L(G);let C=_=class extends n.A{constructor(e){super(e),this.elements=null,this.orderByFields=null}castElements(e){return M(e,j)}readElements(e,t){return T(t.attributeTableElements,j)}writeElements(e,t){t.attributeTableElements=E(e,j)}clone(){return new _({elements:(0,s.o8)(this.elements),orderByFields:this.orderByFields})}};(0,i._)([(0,a.MZ)({json:{write:!0}})],C.prototype,"elements",void 0),(0,i._)([(0,o.w)("elements")],C.prototype,"castElements",null),(0,i._)([(0,l.w)("elements",["attributeTableElements"])],C.prototype,"readElements",null),(0,i._)([(0,y.K)("elements")],C.prototype,"writeElements",null),(0,i._)([(0,a.MZ)({type:[Object],json:{write:!0}})],C.prototype,"orderByFields",void 0),C=_=(0,i._)([(0,p.$)("esri.tables.AttributeTableTemplate")],C);const O=C}}]);