@arcgis/core 4.26.0 → 4.26.1

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 (81) hide show
  1. package/arcade/Feature.js +1 -1
  2. package/arcade/arcadeTimeUtils.js +1 -1
  3. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/009cd8f27d2357ec9317.js +1 -0
  6. package/assets/esri/core/workers/chunks/03081e28fe59ba2e8040.js +1 -0
  7. package/assets/esri/core/workers/chunks/17ce4b146825adcca307.js +1 -0
  8. package/assets/esri/core/workers/chunks/186f2d0c94fa1eca4959.js +1 -0
  9. package/assets/esri/core/workers/chunks/1fd48420dfbbfdb3b051.js +1 -0
  10. package/assets/esri/core/workers/chunks/226bfa115acb8542f21c.js +1 -0
  11. package/assets/esri/core/workers/chunks/{25abc848a128b24ff66e.js → 3808f33563757fad703d.js} +1 -1
  12. package/assets/esri/core/workers/chunks/38ebf5d20576609566f9.js +1 -0
  13. package/assets/esri/core/workers/chunks/4125b10b1d009f35e75e.js +1 -0
  14. package/assets/esri/core/workers/chunks/48d35993b6ffb76e56e9.js +1 -0
  15. package/assets/esri/core/workers/chunks/5022862c5658e7bb0e04.js +1 -0
  16. package/assets/esri/core/workers/chunks/55782608bee89fa0d6e1.js +1 -0
  17. package/assets/esri/core/workers/chunks/5598996bcf60741aa734.js +1 -0
  18. package/assets/esri/core/workers/chunks/592e9834aa896cdd0e86.js +1 -0
  19. package/assets/esri/core/workers/chunks/5a5e4983c526bf08c7f1.js +1 -0
  20. package/assets/esri/core/workers/chunks/{a6d34147e7dbb1e4609c.js → 5f8acce073b8da5ac6ae.js} +1 -1
  21. package/assets/esri/core/workers/chunks/611c27efa10e4e04d8b6.js +1 -0
  22. package/assets/esri/core/workers/chunks/6ecf0bb8e16159160cde.js +1 -0
  23. package/assets/esri/core/workers/chunks/81949c9d14a8d75c45b6.js +1 -0
  24. package/assets/esri/core/workers/chunks/843a8b87ebecc246598a.js +1 -0
  25. package/assets/esri/core/workers/chunks/84c0a8d41eec91bb5142.js +1 -0
  26. package/assets/esri/core/workers/chunks/85c6a2c7239d0cf73a44.js +1 -0
  27. package/assets/esri/core/workers/chunks/8f3262f33d635cf9f046.js +1 -0
  28. package/assets/esri/core/workers/chunks/9054fd0707a15d037bb9.js +1 -0
  29. package/assets/esri/core/workers/chunks/a2e5b67c1c65a93f3c75.js +1 -0
  30. package/assets/esri/core/workers/chunks/a6e57062917ce1a0afa9.js +1 -0
  31. package/assets/esri/core/workers/chunks/b8b6df646ecf5482c5b4.js +1 -0
  32. package/assets/esri/core/workers/chunks/bcdd71e7475777f0f1bb.js +1 -0
  33. package/assets/esri/core/workers/chunks/{97ba79f9bceb42405573.js → bce1d4d6449a646834a1.js} +1 -1
  34. package/assets/esri/core/workers/chunks/c999e9dd748ae449d66e.js +1 -0
  35. package/assets/esri/core/workers/chunks/cb177fb86cf8cec95e87.js +1 -0
  36. package/assets/esri/core/workers/chunks/{3c557a5728c76843561f.js → d3498d28fd01a0ad3899.js} +1 -1
  37. package/assets/esri/core/workers/chunks/dd698ada6b7c03cfd25c.js +1 -0
  38. package/assets/esri/core/workers/chunks/e26acb83eae5eec87ca1.js +1 -0
  39. package/assets/esri/core/workers/chunks/eca1b840c009e5477b80.js +1 -0
  40. package/assets/esri/core/workers/chunks/fbe981e42e92a32d922d.js +1 -0
  41. package/config.js +1 -1
  42. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  43. package/package.json +1 -1
  44. package/support/revision.js +1 -1
  45. package/views/2d/layers/features/sources/BaseFeatureSource.js +1 -1
  46. package/views/2d/layers/features/sources/DataTileSource.js +1 -1
  47. package/views/layers/ImageryTileLayerView.js +1 -1
  48. package/widgets/Editor.js +1 -1
  49. package/assets/esri/core/workers/chunks/03a811b5a912d83792dd.js +0 -1
  50. package/assets/esri/core/workers/chunks/0923c0641ca9d9a52efc.js +0 -1
  51. package/assets/esri/core/workers/chunks/1aff09c90f287eeba408.js +0 -1
  52. package/assets/esri/core/workers/chunks/1faf0e2aeabe003e2f64.js +0 -1
  53. package/assets/esri/core/workers/chunks/29662688eedc6df54d4b.js +0 -1
  54. package/assets/esri/core/workers/chunks/2b94b1bc4634f0518890.js +0 -1
  55. package/assets/esri/core/workers/chunks/3664d97f0c2819690cf9.js +0 -1
  56. package/assets/esri/core/workers/chunks/3d457f987e2089d67e89.js +0 -1
  57. package/assets/esri/core/workers/chunks/41d25407888326c91566.js +0 -1
  58. package/assets/esri/core/workers/chunks/4503194b1b1d8908a386.js +0 -1
  59. package/assets/esri/core/workers/chunks/4a264b7cfd0a4bc62be9.js +0 -1
  60. package/assets/esri/core/workers/chunks/4cddaa79af86b0981baa.js +0 -1
  61. package/assets/esri/core/workers/chunks/582d12138e6eea62d6fe.js +0 -1
  62. package/assets/esri/core/workers/chunks/5e9869849d999aac5756.js +0 -1
  63. package/assets/esri/core/workers/chunks/636b4e080d701d5856c7.js +0 -1
  64. package/assets/esri/core/workers/chunks/69c89c01783250811b56.js +0 -1
  65. package/assets/esri/core/workers/chunks/72c827a5388a4b1112e3.js +0 -1
  66. package/assets/esri/core/workers/chunks/7db8a429ef7bf11c5bb6.js +0 -1
  67. package/assets/esri/core/workers/chunks/8d52093b6c4bfd087a12.js +0 -1
  68. package/assets/esri/core/workers/chunks/9b449a036598479ad0b0.js +0 -1
  69. package/assets/esri/core/workers/chunks/9c67598554e0d2b2c14a.js +0 -1
  70. package/assets/esri/core/workers/chunks/9f8aad19c5973e201604.js +0 -1
  71. package/assets/esri/core/workers/chunks/9ff12db2f3dcd5749053.js +0 -1
  72. package/assets/esri/core/workers/chunks/a0e3b837262d6d64f605.js +0 -1
  73. package/assets/esri/core/workers/chunks/a213fb1cd2b5da2b7027.js +0 -1
  74. package/assets/esri/core/workers/chunks/aa864f9ad6b9a92ab328.js +0 -1
  75. package/assets/esri/core/workers/chunks/bb6e4affafef9855b8fd.js +0 -1
  76. package/assets/esri/core/workers/chunks/bd711b7229aa5cfa063b.js +0 -1
  77. package/assets/esri/core/workers/chunks/e384e1daec50f8cdcdd1.js +0 -1
  78. package/assets/esri/core/workers/chunks/eccc725bc3f8047171f7.js +0 -1
  79. package/assets/esri/core/workers/chunks/f3b59aa3b33e3ee70bec.js +0 -1
  80. package/assets/esri/core/workers/chunks/f7ed302a233d4cfb9060.js +0 -1
  81. package/assets/esri/core/workers/chunks/fd03ba4613f8973f8c86.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6584,9880,216],{85839:(e,t,a)=>{a.d(t,{nu:()=>i}),a(48853);var n=a(99514),r=(a(80216),a(17126),a(42799));class i{constructor(){this.dateTimeReferenceMetaData=null,this._fieldTimeZoneIndex={},this._fieldIndex=null,this._ianaPreferred=null,this._ianaTimeInfo=null,this._ianaEditFields=null,this._ianaLayerDateFields=null}static create(e,t){const a=new i;return a.dateTimeReferenceMetaData=t,a._fieldIndex=e instanceof n.Z?e:new n.Z(e),a}fieldTimeZone(e){const t=this._fieldIndex?.get(e);if(!t)return null;if("date"!==t.type&&"esriFieldTypeDate"!==t.type)return null;const a=this._fieldTimeZoneIndex[t.name];if(void 0!==a)return a;const n=[{field:this.dateTimeReferenceMetaData?.editFieldsInfo?.creationDateField,timeReference:this.dateTimeReferenceMetaData?.editFieldsInfo?.dateFieldsTimeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone},{field:this.dateTimeReferenceMetaData?.editFieldsInfo?.editDateField,timeReference:this.dateTimeReferenceMetaData?.editFieldsInfo?.dateFieldsTimeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone},{field:this.dateTimeReferenceMetaData?.timeInfo?.startTimeField,timeReference:this.dateTimeReferenceMetaData?.timeInfo?.timeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone},{field:this.dateTimeReferenceMetaData?.timeInfo?.endTimeField,timeReference:this.dateTimeReferenceMetaData?.timeInfo?.timeReference,isunknown:!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone}];for(const e of n)if(e.field===t.name){const a=this.convertToIANA(e.timeReference,e.isunknown);return this._fieldTimeZoneIndex[t.name]=a,a}const r=this.convertToIANA(this.dateTimeReferenceMetaData?.dateFieldsTimeReference,this.dateTimeReferenceMetaData?.datesInUnknownTimezone);return this._fieldTimeZoneIndex[t.name]=r,r}convertToIANA(e,t){return t?"unknown":function(e){return e?.timeZoneIANA?e?.timeZoneIANA:e?.timeZone?(0,r.G)(e,""):""}(e)}get layerPreferredTimeZone(){if(null!==this._ianaPreferred)return this._ianaPreferred;this._ianaPreferred="";const e=this.dateTimeReferenceMetaData?.preferredTimeReference;return this._ianaPreferred=this.convertToIANA(e,!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone),this._ianaPreferred}get layerTimeInfoTimeZone(){if(null!==this._ianaTimeInfo)return this._ianaTimeInfo;this._ianaTimeInfo="";const e=this.dateTimeReferenceMetaData?.timeInfo?.timeReference;return this._ianaTimeInfo=this.convertToIANA(e,!1),this._ianaTimeInfo}get layerEditFieldsTimeZone(){if(null!==this._ianaEditFields)return this._ianaEditFields;this._ianaEditFields="";const e=this.dateTimeReferenceMetaData?.editFieldsInfo?.dateFieldsTimeReference;return this._ianaEditFields=this.convertToIANA(e,this.dateTimeReferenceMetaData?.datesInUnknownTimezone),this._ianaEditFields}get layerDateFieldsTimeZone(){if(null!==this._ianaLayerDateFields)return this._ianaLayerDateFields;this._ianaLayerDateFields="";const e=this.dateTimeReferenceMetaData?.dateFieldsTimeReference;return this._ianaLayerDateFields=this.convertToIANA(e,!0===this.dateTimeReferenceMetaData?.datesInUnknownTimezone),this._ianaLayerDateFields}}},53073:(e,t,a)=>{a.d(t,{Z:()=>c});var n=a(75148),r=a(59987),i=a(91136),s=a(90961),o=a(90658),l=a(8667);class c extends i.Z{constructor(e){super(e),this._relation="",this._relationGeom=null,this._relationString="",this.declaredClass="esri.arcade.featureset.actions.SpatialFilter",this._relationString=e.relationString,this._parent=e.parentfeatureset,this._maxProcessing=40,this._relation=e.relation,this._relationGeom=e.relationGeom}async _getSet(e){if(null===this._wset){await this._ensureLoaded();const t=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,null,null,e);return this._checkCancelled(e),this._wset=new s.Z(t._candidates.slice(0),t._known.slice(0),t._ordered,this._clonePageDefinition(t.pagesDefinition)),this._wset}return this._wset}_isInFeatureSet(e){let t=this._parent._isInFeatureSet(e);return t===o.dj.NotInFeatureSet?t:(t=this._idstates[e],void 0===t?o.dj.Unknown:t)}_getFeature(e,t,a){return this._parent._getFeature(e,t,a)}_getFeatures(e,t,a,n){return this._parent._getFeatures(e,t,a,n)}_featureFromCache(e){return this._parent._featureFromCache(e)}async executeSpatialRelationTest(e){if(null===e.geometry)return!1;switch(this._relation){case"esriSpatialRelEnvelopeIntersects":{const t=(0,o.SV)(this._relationGeom),a=(0,o.SV)(e.geometry);return(0,l.kK)(t,a)}case"esriSpatialRelIntersects":return(0,l.kK)(this._relationGeom,e.geometry);case"esriSpatialRelContains":return(0,l.r3)(this._relationGeom,e.geometry);case"esriSpatialRelOverlaps":return(0,l.Nm)(this._relationGeom,e.geometry);case"esriSpatialRelWithin":return(0,l.uh)(this._relationGeom,e.geometry);case"esriSpatialRelTouches":return(0,l.W4)(this._relationGeom,e.geometry);case"esriSpatialRelCrosses":return(0,l.jU)(this._relationGeom,e.geometry);case"esriSpatialRelRelation":return(0,l.LV)(this._relationGeom,e.geometry,this._relationString??"")}}async _fetchAndRefineFeatures(e,t,a){const n=new s.Z([],e,!1,null),r=Math.min(t,e.length);await(this._parent?._getFeatures(n,-1,r,a)),this._checkCancelled(a);const i=[];for(let t=0;t<r;t++){const a=this._parent._featureFromCache(e[t]);i.push(await this.executeSpatialRelationTest(a))}for(let a=0;a<t;a++)!0===i[a]?this._idstates[e[a]]=o.dj.InFeatureSet:this._idstates[e[a]]=o.dj.NotInFeatureSet;return"success"}async _getFilteredSet(e,t,a,n,r){await this._ensureLoaded();const i=await this._parent._getFilteredSet("esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,a,n,r);let o;return this._checkCancelled(r),o=null!==t?new s.Z(i._candidates.slice(0).concat(i._known.slice(0)),[],i._ordered,this._clonePageDefinition(i.pagesDefinition)):new s.Z(i._candidates.slice(0),i._known.slice(0),i._ordered,this._clonePageDefinition(i.pagesDefinition)),o}async _stat(e,t,a,n,r,i,s){if(""!==a)return{calculated:!1};const o=await this._parent._stat(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,r,i,s);return!1===o.calculated?null===r&&""===a&&null===n?this._manualStat(e,t,i,s):{calculated:!1}:o}async _canDoAggregates(e,t,a,n,r){return""===a&&null===n&&null!==this._parent&&this._parent._canDoAggregates(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,r)}async _getAggregatePagesDataSourceDefinition(e,t,a,n,i,s,o){if(null===this._parent)throw new r.EN(r.H9.NeverReach);return this._parent._getAggregatePagesDataSourceDefinition(e,t,"esriSpatialRelRelation"!==this._relation?this._relation:this._relation+":"+this._relationString,this._relationGeom,i,s,o)}static registerAction(){i.Z._featuresetFunctions.intersects=function(e){return null==e?new n.Z({parentfeatureset:this}):new c({parentfeatureset:this,relation:"esriSpatialRelIntersects",relationGeom:e})},i.Z._featuresetFunctions.envelopeIntersects=function(e){return null==e?new n.Z({parentfeatureset:this}):new c({parentfeatureset:this,relation:"esriSpatialRelEnvelopeIntersects",relationGeom:e})},i.Z._featuresetFunctions.contains=function(e){return null==e?new n.Z({parentfeatureset:this}):new c({parentfeatureset:this,relation:"esriSpatialRelContains",relationGeom:e})},i.Z._featuresetFunctions.overlaps=function(e){return null==e?new n.Z({parentfeatureset:this}):new c({parentfeatureset:this,relation:"esriSpatialRelOverlaps",relationGeom:e})},i.Z._featuresetFunctions.within=function(e){return null==e?new n.Z({parentfeatureset:this}):new c({parentfeatureset:this,relation:"esriSpatialRelWithin",relationGeom:e})},i.Z._featuresetFunctions.touches=function(e){return null==e?new n.Z({parentfeatureset:this}):new c({parentfeatureset:this,relation:"esriSpatialRelTouches",relationGeom:e})},i.Z._featuresetFunctions.crosses=function(e){return null==e?new n.Z({parentfeatureset:this}):new c({parentfeatureset:this,relation:"esriSpatialRelCrosses",relationGeom:e})},i.Z._featuresetFunctions.relate=function(e,t){return null==e?new n.Z({parentfeatureset:this}):new c({parentfeatureset:this,relation:"esriSpatialRelRelation",relationGeom:e,relationString:t})}}}},75148:(e,t,a)=>{a.d(t,{Z:()=>o});var n=a(59987),r=a(91136),i=a(90961),s=a(90658);class o extends r.Z{constructor(e){super(e),this.declaredClass="esri.layers.featureset.sources.Empty",this._maxProcessing=1e3,this._wset=new i.Z([],[],!1,null),this._parent=e.parentfeatureset,this._databaseType=s.Bj.Standardised}async _getSet(){return this._wset}optimisePagingFeatureQueries(){}_isInFeatureSet(){return s.dj.NotInFeatureSet}async _getFeature(){throw new n.EN(n.H9.NeverReach)}async queryAttachments(){return[]}async _getFeatures(){return"success"}_featureFromCache(){return null}async _fetchAndRefineFeatures(){throw new n.EN(n.H9.NeverReach)}async _getFilteredSet(){return new i.Z([],[],!1,null)}_stat(e,t,a,n,r,i,s){return this._manualStat(e,t,i,s)}async _canDoAggregates(){return!1}}},91136:(e,t,a)=>{a.d(t,{Z:()=>p});var n=a(85839),r=a(48039),i=a(59987),s=a(70586);class o{constructor(e,t){this._lastId=-1,this._progress=t,this._parent=e}reset(){this._lastId=-1}nextBatch(e){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then((t=>this.nextBatch(e)),(t=>this.nextBatch(e)));const t={returnpromise:null,hasset:!1},a=[];return t.returnpromise=new Promise(((n,r)=>{this._parent._getSet(this._progress).then((i=>{const o=(0,s.s3)(i._known,"known");let l=o.length-1;if("GETPAGES"===o[o.length-1]&&(l-=1),this._lastId+e>l&&o.length>0&&"GETPAGES"===o[o.length-1])return void this._parent._expandPagedSet(i,this._parent._maxQueryRate(),0,0,this._progress).then((a=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(n,r)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,r(e)}));const c=(0,s.s3)(i._candidates,"candidates");if(l>=this._lastId+e||0===c.length){for(let t=0;t<e;t++){const e=t+this._lastId+1;if(e>=o.length)break;a[t]=o[e]}return this._lastId+=a.length,0===a.length&&(t.hasset=!0,this._parent._mainSetInUse=null,n([])),void this._parent._getFeatureBatch(a,this._progress).then((e=>{t.hasset=!0,this._parent._mainSetInUse=null,n(e)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,r(e)}))}this._parent._refineSetBlock(i,this._parent._maxProcessingRate(),this._progress).then((()=>{t.hasset=!0,this._parent._mainSetInUse=null,this.nextBatch(e).then(n,r)}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,r(e)}))}),(e=>{t.hasset=!0,this._parent._mainSetInUse=null,r(e)}))})),!1===t.hasset&&(this._parent._mainSetInUse=t.returnpromise,t.hasset=!0),t.returnpromise}next(){if(null!==this._parent._mainSetInUse)return this._parent._mainSetInUse.then((e=>this.next()),(e=>this.next()));const e={returnpromise:null,hasset:!1};return e.returnpromise=new Promise(((t,a)=>{this._parent._getSet(this._progress).then((n=>{const r=(0,s.s3)(n._known,"known");this._lastId<r.length-1?"GETPAGES"===r[this._lastId+1]?this._parent._expandPagedSet(n,this._parent._maxQueryRate(),0,0,this._progress).then((t=>(e.hasset=!0,this._parent._mainSetInUse=null,this.next()))).then(t,a):(this._lastId+=1,this._parent._getFeature(n,r[this._lastId],this._progress).then((a=>{e.hasset=!0,this._parent._mainSetInUse=null,t(a)}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,a(t)}))):(0,s.s3)(n._candidates,"candidates").length>0?this._parent._refineSetBlock(n,this._parent._maxProcessingRate(),this._progress).then((()=>{e.hasset=!0,this._parent._mainSetInUse=null,this.next().then(t,a)}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,a(t)})):(e.hasset=!0,this._parent._mainSetInUse=null,t(null))}),(t=>{e.hasset=!0,this._parent._mainSetInUse=null,a(t)}))})),!1===e.hasset&&(this._parent._mainSetInUse=e.returnpromise,e.hasset=!0),e.returnpromise}async count(){if(-1!==this._parent._totalCount)return this._parent._totalCount;const e=await this._parent._getSet(this._progress),t=await this._refineAllSets(e);return this._parent._totalCount=t._known.length,this._parent._totalCount}async _refineAllSets(e){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,1,this._progress),this._refineAllSets(e);if(e._candidates.length>0){if("GETPAGES"===e._known[e._candidates.length-1])return await this._parent._expandPagedSet(e,this._parent._maxQueryRate(),0,2,this._progress),this._refineAllSets(e);const t=await this._parent._refineSetBlock(e,this._parent._maxProcessingRate(),this._progress);return t._candidates.length>0?this._refineAllSets(t):t}return e}}var l=a(90961),c=a(90658),u=a(95002),d=a(95330),h=a(41534),f=a(8667),m=a(82971),_=a(99514);class p{constructor(e){this.recentlyUsedQueries=null,this.featureSetQueryInterceptor=null,this._idstates=[],this._parent=null,this._wset=null,this._mainSetInUse=null,this._maxProcessing=200,this._maxQuery=500,this._totalCount=-1,this._databaseType=c.Bj.NotEvaluated,this._databaseTypeProbed=null,this.declaredRootClass="esri.arcade.featureset.support.FeatureSet",this._featureCache=[],this.typeIdField=null,this.types=null,this.fields=null,this.geometryType="",this.objectIdField="",this.globalIdField="",this.spatialReference=null,this.hasM=!1,this.hasZ=!1,this._transparent=!1,this.loaded=!1,this._loadPromise=null,this._fieldsIndex=null,this._dateFieldIndex=null,e&&e.lrucache&&(this.recentlyUsedQueries=e.lrucache),e&&e.interceptor&&(this.featureSetQueryInterceptor=e.interceptor)}optimisePagingFeatureQueries(e){this._parent&&this._parent.optimisePagingFeatureQueries(e)}_hasMemorySource(){return!0}prop(e,t){return void 0===t?this[e]:(void 0!==this[e]&&(this[e]=t),this)}end(){return null!==this._parent&&!0===this._parent._transparent?this._parent.end():this._parent}_ensureLoaded(){return this.load()}load(){return null===this._loadPromise&&(this._loadPromise=this.loadImpl()),this._loadPromise}async loadImpl(){return!0===this._parent?.loaded?(this._initialiseFeatureSet(),this):(await(this._parent?.load()),this._initialiseFeatureSet(),this)}_initialiseFeatureSet(){null!==this._parent?(this.fields=this._parent.fields.slice(0),this.geometryType=this._parent.geometryType,this.objectIdField=this._parent.objectIdField,this.globalIdField=this._parent.globalIdField,this.spatialReference=this._parent.spatialReference,this.hasM=this._parent.hasM,this.hasZ=this._parent.hasZ,this.typeIdField=this._parent.typeIdField,this.types=this._parent.types):(this.fields=[],this.typeIdField="",this.objectIdField="",this.globalIdField="",this.spatialReference=new m.Z({wkid:4326}),this.geometryType=c.Qk.point)}getField(e,t){let a;return(t=t||this.fields)&&(e=e.toLowerCase(),t.some((t=>(t&&t.name.toLowerCase()===e&&(a=t),!!a)))),a}getFieldsIndex(){return null===this._fieldsIndex&&(this._fieldsIndex=new _.Z(this.fields)),this._fieldsIndex}_maxProcessingRate(){return null!==this._parent?Math.min(this._maxProcessing,this._parent._maxProcessingRate()):Math.min(this._maxProcessing,this._maxQueryRate())}_maxQueryRate(){return null!==this._parent?Math.max(this._maxQuery,this._parent._maxQueryRate()):this._maxQuery}_checkCancelled(e){if(null!=e&&e.aborted)throw new i.EN(i.H9.Cancelled)}nativeCapabilities(){return this._parent.nativeCapabilities()}async _canDoAggregates(e,t,a,n,r){return null!==this._parent&&this._parent._canDoAggregates(e,t,a,n,r)}async _getAggregatePagesDataSourceDefinition(e,t,a,n,r,s,o){if(null===this._parent)throw new i.EN(i.H9.NeverReach);return this._parent._getAggregatePagesDataSourceDefinition(e,t,a,n,r,s,o)}async _getAgregagtePhysicalPage(e,t,a){if(null===this._parent)throw new i.EN(i.H9.NeverReach);return this._parent._getAgregagtePhysicalPage(e,t,a)}async databaseType(){if(this._databaseType===c.Bj.NotEvaluated){if(null!==r.Z.applicationCache){const e=r.Z.applicationCache.getDatabaseType(this._cacheableFeatureSetSourceKey());if(null!==e)return e}if(null!==this._databaseTypeProbed)return this._databaseTypeProbed;try{this._databaseTypeProbed=this._getDatabaseTypeImpl(),null!==r.Z.applicationCache&&r.Z.applicationCache.setDatabaseType(this._cacheableFeatureSetSourceKey(),this._databaseTypeProbed)}catch(e){throw null!==r.Z.applicationCache&&r.Z.applicationCache.clearDatabaseType(this._cacheableFeatureSetSourceKey()),e}return this._databaseTypeProbed}return this._databaseType}async _getDatabaseTypeImpl(){const e=[{thetype:c.Bj.SqlServer,testwhere:"(CAST( '2015-01-01' as DATETIME) = CAST( '2015-01-01' as DATETIME)) AND OBJECTID<0"},{thetype:c.Bj.Oracle,testwhere:"(TO_DATE('2003-11-18','YYYY-MM-DD') = TO_DATE('2003-11-18','YYYY-MM-DD')) AND OBJECTID<0"},{thetype:c.Bj.StandardisedNoInterval,testwhere:"(date '2015-01-01 10:10:10' = date '2015-01-01 10:10:10') AND OBJECTID<0"}];for(const t of e)if(!0===await this._runDatabaseProbe(t.testwhere))return t.thetype;return c.Bj.StandardisedNoInterval}_cacheableFeatureSetSourceKey(){return"MUSTBESET"}async _runDatabaseProbe(e){if(null!==this._parent)return this._parent._runDatabaseProbe(e);throw new i.EN(i.H9.NotImplemented)}isTable(){return this._parent?.isTable()??!1}_featureFromCache(e){if(void 0!==this._featureCache[e])return this._featureCache[e]}_isInFeatureSet(e){return c.dj.Unknown}_getSet(e){throw new i.EN(i.H9.NotImplemented)}async _getFeature(e,t,a){if(this._checkCancelled(a),void 0!==this._featureFromCache(t))return this._featureFromCache(t);if(await this._getFeatures(e,t,this._maxProcessingRate(),a),this._checkCancelled(a),void 0!==this._featureFromCache(t))return this._featureFromCache(t);throw new i.EN(i.H9.MissingFeatures)}async _getFeatureBatch(e,t){this._checkCancelled(t);const a=new l.Z([],e,!1,null),n=[];await this._getFeatures(a,-1,e.length,t),this._checkCancelled(t);for(const t of e)void 0!==this._featureFromCache(t)&&n.push(this._featureFromCache(t));return n}async _getFeatures(e,t,a,n){return"success"}_getFilteredSet(e,t,a,n,r){throw new i.EN(i.H9.NotImplemented)}async _refineSetBlock(e,t,a){if(!0===this._checkIfNeedToExpandCandidatePage(e,this._maxQueryRate()))return await this._expandPagedSet(e,this._maxQueryRate(),0,0,a),this._refineSetBlock(e,t,a);this._checkCancelled(a);const n=e._candidates.length;this._refineKnowns(e,t);let r=n-e._candidates.length;if(0===e._candidates.length)return e;if(r>=t)return e;if(await this._refineIfParentKnown(e,t-r,a),this._checkCancelled(a),this._refineKnowns(e,t-r),r=n-e._candidates.length,r<t&&e._candidates.length>0){const n=t-r,i=this._prepareFetchAndRefineSet(e._candidates);return await this._fetchAndRefineFeatures(i,i.length>n?n:e._candidates.length,a),this._checkCancelled(a),this._refineKnowns(e,t-r),e}return e}_fetchAndRefineFeatures(e,t,a){return null}_prepareFetchAndRefineSet(e){const t=[];for(let a=0;a<e.length;a++)this._isPhysicalFeature(e[a])&&t.push(e[a]);return t}_isPhysicalFeature(e){return null===this._parent||this._parent._isPhysicalFeature(e)}_refineKnowns(e,t){let a=0,n=null;const r=[];t=this._maxQueryRate();for(let i=0;i<e._candidates.length&&"GETPAGES"!==e._candidates[i];i++){let s=!1;const o=this._candidateIdTransform(e._candidates[i]);o!==e._candidates[i]&&(s=!0);const l=this._isInFeatureSet(o);if(l===c.dj.InFeatureSet)!0===s?e._known.includes(o)||(e._known.push(o),a+=1):(e._known.push(e._candidates[i]),a+=1),null===n?n={start:i,end:i}:n.end===i-1?n.end=i:(r.push(n),n={start:i,end:i});else if(l===c.dj.NotInFeatureSet)null===n?n={start:i,end:i}:n.end===i-1?n.end=i:(r.push(n),n={start:i,end:i}),a+=1;else if(l===c.dj.Unknown&&(a+=1,!0===e._ordered))break;if(a>=t)break}null!==n&&r.push(n);for(let t=r.length-1;t>=0;t--)e._candidates.splice(r[t].start,r[t].end-r[t].start+1)}_refineIfParentKnown(e,t,a){const n=new l.Z([],[],e._ordered,null);return n._candidates=e._candidates.slice(0),this._parent._refineSetBlock(n,t,a)}_candidateIdTransform(e){return this._parent._candidateIdTransform(e)}_checkIfNeedToExpandKnownPage(e,t){if(null===e.pagesDefinition)return!1;let a=0;for(let n=e._lastFetchedIndex;n<e._known.length;n++){if("GETPAGES"===e._known[n])return!0;if(void 0===this._featureCache[e._known[n]]&&(a+=1,a>=t))break}return!1}_checkIfNeedToExpandCandidatePage(e,t){if(null===e.pagesDefinition)return!1;let a=0;for(let n=0;n<e._candidates.length;n++){if("GETPAGES"===e._candidates[n])return!0;if(a+=1,a>=t)break}return!1}async _expandPagedSet(e,t,a,n,r){if(null===this._parent)throw new i.EN(i.H9.NotImplemented);return this._parent._expandPagedSet(e,t,a,n,r)}async _expandPagedSetFeatureSet(e,t,a,n,r){if(e._known.length>0&&"GETPAGES"===e._known[e._known.length-1]&&(n=1),0===n&&e._candidates.length>0&&"GETPAGES"===e._candidates[e._candidates.length-1]&&(n=2),0===n)return"finished";const i=await this._getPage(e,n,r);return a+i<t?this._expandPagedSet(e,t,a+i,0,r):"success"}async _getPage(e,t,a){const n=1===t?e._known:e._candidates;if(e.pagesDefinition.internal.set.length>e.pagesDefinition.resultOffset||!0===e.pagesDefinition.internal.fullyResolved){n.length=n.length-1;let t=0;for(let a=0;a<e.pagesDefinition.resultRecordCount&&!(e.pagesDefinition.resultOffset+a>=e.pagesDefinition.internal.set.length);a++)n[n.length]=e.pagesDefinition.internal.set[e.pagesDefinition.resultOffset+a],t++;e.pagesDefinition.resultOffset+=t;let a=!1;return!0===e.pagesDefinition.internal.fullyResolved&&e.pagesDefinition.internal.set.length<=e.pagesDefinition.resultOffset&&(a=!0),!1===a&&n.push("GETPAGES"),t}return await this._getPhysicalPage(e,t,a),this._getPage(e,t,a)}_getPhysicalPage(e,t,a){return null}_clonePageDefinition(e){return null===this._parent?null:this._parent._clonePageDefinition(e)}_first(e){return this.iterator(e).next()}first(e){return this._first(e)}async calculateStatistic(e,t,a,n){await this._ensureLoaded();let r=await this._stat(e,t,"",null,null,a,n);return!1===r.calculated&&(r=await this._manualStat(e,t,a,n)),r.result}async _manualStat(e,t,a,n){let r=null;switch(e.toLowerCase()){case"count":return r=await(0,u.QX)(this,n),{calculated:!0,result:r};case"distinct":return r=await(0,u.EB)(this,t,a,n),{calculated:!0,result:r};case"avg":case"mean":return r=await(0,u.J6)(this,t,n),{calculated:!0,result:r};case"stdev":return r=await(0,u.m)(this,t,n),{calculated:!0,result:r};case"variance":return r=await(0,u.CA)(this,t,n),{calculated:!0,result:r};case"sum":return r=await(0,u.Sm)(this,t,n),{calculated:!0,result:r};case"min":return r=await(0,u.VV)(this,t,n),{calculated:!0,result:r};case"max":return r=await(0,u.Fp)(this,t,n),{calculated:!0,result:r};default:return{calculated:!0,result:0}}}async _stat(e,t,a,n,r,i,s){const o=await this._parent._stat(e,t,a,n,r,i,s);return!1===o.calculated?null===r&&""===a&&null===n?this._manualStat(e,t,i,s):{calculated:!1}:o}_unionAllGeomSelf(e){const t=this.iterator(this._defaultTracker(e)),a=[];return new Promise(((e,n)=>{this._unionShapeInBatches(a,t,e,n)}))}_unionAllGeom(e){return new Promise(((t,a)=>{const n=this.iterator(this._defaultTracker(e));this._unionShapeInBatches([],n,t,a)}))}_unionShapeInBatches(e,t,a,n){t.next().then((r=>{try{null!==r&&null!==r.geometry&&e.push(r.geometry),e.length>30||null===r&&e.length>1?(0,f.G0)(e).then((i=>{try{null===r?a(i):(e=[i],this._unionShapeInBatches(e,t,a,n))}catch(e){n(e)}}),n):null===r?1===e.length?a(e[0]):a(null):this._unionShapeInBatches(e,t,a,n)}catch(e){n(e)}}),n)}iterator(e){return new o(this,e)}intersection(e,t=!1){return p._featuresetFunctions.intersection.bind(this)(e,t)}difference(e,t=!1,a=!0){return p._featuresetFunctions.difference.bind(this)(e,t,a)}symmetricDifference(e,t=!1,a=!0){return p._featuresetFunctions.symmetricDifference.bind(this)(e,t,a)}morphShape(e,t,a="unknown",n=null){return p._featuresetFunctions.morphShape.bind(this)(e,t,a,n)}morphShapeAndAttributes(e,t,a="unknown"){return p._featuresetFunctions.morphShapeAndAttributes.bind(this)(e,t,a)}union(e,t=!1){return p._featuresetFunctions.union.bind(this)(e,t)}intersects(e){return p._featuresetFunctions.intersects.bind(this)(e)}envelopeIntersects(e){return p._featuresetFunctions.envelopeIntersects.bind(this)(e)}contains(e){return p._featuresetFunctions.contains.bind(this)(e)}overlaps(e){return p._featuresetFunctions.overlaps.bind(this)(e)}relate(e,t){return p._featuresetFunctions.relate.bind(this)(e,t)}within(e){return p._featuresetFunctions.within.bind(this)(e)}touches(e){return p._featuresetFunctions.touches.bind(this)(e)}top(e){return p._featuresetFunctions.top.bind(this)(e)}crosses(e){return p._featuresetFunctions.crosses.bind(this)(e)}buffer(e,t,a,n=!0){return p._featuresetFunctions.buffer.bind(this)(e,t,a,n)}filter(e,t=null){return p._featuresetFunctions.filter.bind(this)(e,t)}orderBy(e){return p._featuresetFunctions.orderBy.bind(this)(e)}dissolve(e,t){return p._featuresetFunctions.dissolve.bind(this)(e,t)}groupby(e,t){return p._featuresetFunctions.groupby.bind(this)(e,t)}reduce(e,t=null,a){return new Promise(((n,r)=>{this._reduceImpl(this.iterator(this._defaultTracker(a)),e,t,0,n,r,0)}))}_reduceImpl(e,t,a,n,r,i,s){try{if(++s>1e3)return void setTimeout((()=>{s=0,this._reduceImpl(e,t,a,n,r,i,s)}));e.next().then((o=>{try{if(null===o)r(a);else{const l=t(a,o,n,this);(0,d.y8)(l)?l.then((a=>{this._reduceImpl(e,t,a,n+1,r,i,s)}),i):this._reduceImpl(e,t,l,n+1,r,i,s)}}catch(e){i(e)}}),i)}catch(e){i(e)}}removeField(e){return p._featuresetFunctions.removeField.bind(this)(e)}addField(e,t,a=null){return p._featuresetFunctions.addField.bind(this)(e,t,a)}sumArea(e,t=!1,a){const n=(0,c.EI)(e);return this.reduce(((e,a)=>null===a.geometry?0:t?(0,f.Y4)(a.geometry,n).then((t=>e+t)):(0,f.CJ)(a.geometry,n).then((t=>e+t))),0,a)}sumLength(e,t=!1,a){const n=(0,c.Lz)(e);return this.reduce(((e,a)=>null===a.geometry?0:t?(0,f.kQ)(a.geometry,n).then((t=>e+t)):(0,f.sz)(a.geometry,n).then((t=>e+t))),0,a)}_substituteVars(e,t){if(null!==t){const a={};for(const e in t)a[e.toLowerCase()]=t[e];e.parameters=a}}async distinct(e,t=1e3,a=null,n){await this.load();const r=h.WhereClause.create(e,this.getFieldsIndex());return this._substituteVars(r,a),this.calculateStatistic("distinct",r,t,this._defaultTracker(n))}async min(e,t=null,a){await this.load();const n=h.WhereClause.create(e,this.getFieldsIndex());return this._substituteVars(n,t),this.calculateStatistic("min",n,-1,this._defaultTracker(a))}async max(e,t=null,a){await this.load();const n=h.WhereClause.create(e,this.getFieldsIndex());return this._substituteVars(n,t),this.calculateStatistic("max",n,-1,this._defaultTracker(a))}async avg(e,t=null,a){await this.load();const n=h.WhereClause.create(e,this.getFieldsIndex());return this._substituteVars(n,t),this.calculateStatistic("avg",n,-1,this._defaultTracker(a))}async sum(e,t=null,a){await this.load();const n=h.WhereClause.create(e,this.getFieldsIndex());return this._substituteVars(n,t),this.calculateStatistic("sum",n,-1,this._defaultTracker(a))}async stdev(e,t=null,a){await this.load();const n=h.WhereClause.create(e,this.getFieldsIndex());return this._substituteVars(n,t),this.calculateStatistic("stdev",n,-1,this._defaultTracker(a))}async variance(e,t=null,a){await this.load();const n=h.WhereClause.create(e,this.getFieldsIndex());return this._substituteVars(n,t),this.calculateStatistic("variance",n,-1,this._defaultTracker(a))}async count(e){return await this.load(),this.calculateStatistic("count",h.WhereClause.create("1",this.getFieldsIndex()),-1,this._defaultTracker(e))}_defaultTracker(e){return e||{aborted:!1}}forEach(e,t){return new Promise(((a,n)=>{this._forEachImpl(this.iterator(this._defaultTracker(t)),e,this,a,n,0)}))}_forEachImpl(e,t,a,n,r,i){try{if(++i>1e3)return void setTimeout((()=>{i=0,this._forEachImpl(e,t,a,n,r,i)}),0);e.next().then((s=>{try{if(null===s)n(a);else{const o=t(s);null==o?this._forEachImpl(e,t,a,n,r,i):(0,d.y8)(o)?o.then((()=>{try{this._forEachImpl(e,t,a,n,r,i)}catch(e){r(e)}}),r):this._forEachImpl(e,t,a,n,r,i)}}catch(e){r(e)}}),r)}catch(e){r(e)}}convertToJSON(e){const t={layerDefinition:{geometryType:this.geometryType,fields:[]},featureSet:{features:[],geometryType:this.geometryType}};for(let e=0;e<this.fields.length;e++)t.layerDefinition.fields.push((0,c.Sh)(this.fields[e]));return this.reduce(((e,a)=>{const n={geometry:a.geometry&&a.geometry.toJSON(),attributes:{}};for(const e in a.attributes)n.attributes[e]=a.attributes[e];return t.featureSet.features.push(n),1}),0,e).then((()=>t))}castToText(e=!1){return"object, FeatureSet"}queryAttachments(e,t,a,n,r){return this._parent.queryAttachments(e,t,a,n,r)}serviceUrl(){return this._parent.serviceUrl()}subtypes(){return this.typeIdField?{subtypeField:this.typeIdField,subtypes:this.types?this.types.map((e=>({name:e.name,code:e.id}))):[]}:null}relationshipMetaData(){return this._parent.relationshipMetaData()}get gdbVersion(){return this._parent?this._parent.gdbVersion:""}schema(){const e=[];for(const t of this.fields)e.push((0,c.Sh)(t));return{objectIdField:this.objectIdField,globalIdField:this.globalIdField,geometryType:void 0===c.q2[this.geometryType]?"esriGeometryNull":c.q2[this.geometryType],fields:e}}async convertToText(e,t){if("schema"===e)return await this._ensureLoaded(),JSON.stringify(this.schema());if("featureset"===e){await this._ensureLoaded();const e=[];await this.reduce(((t,a)=>{const n={geometry:a.geometry?a.geometry.toJSON():null,attributes:a.attributes};return null!==n.geometry&&n.geometry.spatialReference&&delete n.geometry.spatialReference,e.push(n),1}),0,t);const a=this.schema();return a.features=e,a.spatialReference=this.spatialReference.toJSON(),JSON.stringify(a)}return this.castToText()}getFeatureByObjectId(e,t){return this._parent.getFeatureByObjectId(e,t)}getOwningSystemUrl(){return this._parent.getOwningSystemUrl()}getIdentityUser(){return this._parent.getIdentityUser()}getRootFeatureSet(){return null!==this._parent?this._parent.getRootFeatureSet():this}getDataSourceFeatureSet(){return null!==this._parent?this._parent.getDataSourceFeatureSet():this}castAsJson(e=null){return"keeptype"===e?.featureset?this:"none"===e?.featureset?null:{type:"FeatureSet"}}async castAsJsonAsync(e=null,t=null){if("keeptype"===t?.featureset)return this;if("schema"===t?.featureset)return await this._ensureLoaded(),JSON.parse(JSON.stringify(this.schema()));if("none"===t?.featureset)return null;await this._ensureLoaded();const a=[];await this.reduce(((e,n)=>{const r={geometry:n.geometry?!0===t?.keepGeometryType?n.geometry:n.geometry.toJSON():null,attributes:n.attributes};return null!==r.geometry&&r.geometry.spatialReference&&!0!==t?.keepGeometryType&&delete r.geometry.spatialReference,a.push(r),1}),0,e);const n=this.schema();return n.features=a,n.spatialReference=!0===t?.keepGeometryType?this.spatialReference:this.spatialReference?.toJSON(),n}get dateTimeReferenceFieldIndex(){return null===this._dateFieldIndex&&(this._dateFieldIndex=n.nu.create(this.getFieldsIndex(),this)),this._dateFieldIndex}fieldTimeZone(e){return this.dateTimeReferenceFieldIndex.fieldTimeZone(e)}get preferredTimeReference(){return this._parent?.preferredTimeReference??null}get dateFieldsTimeReference(){return this._parent?.dateFieldsTimeReference??null}get datesInUnknownTimezone(){return this._parent.datesInUnknownTimezone}get editFieldsInfo(){return this._parent?.editFieldsInfo??null}get timeInfo(){return this._parent?.timeInfo??null}}p._featuresetFunctions={}},90961:(e,t,a)=>{a.d(t,{Z:()=>n});class n{constructor(e,t,a,n){this._lastFetchedIndex=0,this._ordered=!1,this.pagesDefinition=null,this._candidates=e,this._known=t,this._ordered=a,this.pagesDefinition=n}}},48039:(e,t,a)=>{a.d(t,{Z:()=>n});class n{constructor(){this._databaseTypeMetaData={},this._layerInfo={}}clearDatabaseType(e){void 0===this._databaseTypeMetaData[e]&&delete this._databaseTypeMetaData[e]}getDatabaseType(e){return"MUSTBESET"===e||void 0===this._databaseTypeMetaData[e]?null:this._databaseTypeMetaData[e]}setDatabaseType(e,t){this._databaseTypeMetaData[e]=t}getLayerInfo(e){return void 0===this._layerInfo[e]?null:this._layerInfo[e]}setLayerInfo(e,t){this._layerInfo[e]=t}clearLayerInfo(e){void 0!==this._layerInfo[e]&&delete this._layerInfo[e]}}n.applicationCache=null},36515:(e,t,a)=>{a.d(t,{$e:()=>d,DT:()=>g,TE:()=>F,XF:()=>c,bB:()=>u,fz:()=>f,hq:()=>w,mA:()=>m,oX:()=>_,vR:()=>p,y5:()=>A,zR:()=>l});var n=a(48853),r=a(90658),i=a(41534),s=a(59987),o=(a(85839),a(17126));function l(e,t){return h(e?.parseTree,t,e?.parameters)}function c(e,t,a){return h(e,t,a)}function u(e,t,a,n){return i.WhereClause.create(h(e.parseTree,r.Bj.Standardised,e.parameters,t,a),n)}function d(e,t,a="AND"){return i.WhereClause.create("(("+l(e,r.Bj.Standardised)+")"+a+"("+l(t,r.Bj.Standardised)+"))",e.fieldsIndex)}function h(e,t,a,n=null,i=null,o=null){let l,c,u,d;switch(e.type){case"interval":return F(h(e.value,t,a,n,i,o),e.qualifier,e.op);case"case-expression":{let r=" CASE ";"simple"===e.format&&(r+=h(e.operand,t,a,n,i,o));for(let s=0;s<e.clauses.length;s++)r+=" WHEN "+h(e.clauses[s].operand,t,a,n,i,o)+" THEN "+h(e.clauses[s].value,t,a,n,i,o);return null!==e.else&&(r+=" ELSE "+h(e.else,t,a,n,i,o)),r+=" END ",r}case"parameter":{const n=a[e.value.toLowerCase()];if("string"==typeof n)return"'"+a[e.value.toLowerCase()].toString().replace(/'/g,"''")+"'";if((0,r.J_)(n))return _(n,t,o);if((0,r.NP)(n))return m(n,t,o);if(n instanceof Array){const e=[];for(let a=0;a<n.length;a++)"string"==typeof n[a]?e.push("'"+n[a].toString().replace(/'/g,"''")+"'"):(0,r.J_)(n[a])?e.push(_(n[a],t,o)):(0,r.NP)(n[a])?e.push(m(n[a],t,o)):e.push(n[a].toString());return e}return n.toString()}case"expression-list":c=[];for(const r of e.value)c.push(h(r,t,a,n,i,o));return c;case"unary-expression":return" ( NOT "+h(e.expr,t,a,n,i,o)+" ) ";case"binary-expression":switch(e.operator){case"AND":return" ("+h(e.left,t,a,n,i,o)+" AND "+h(e.right,t,a,n,i,o)+") ";case"OR":return" ("+h(e.left,t,a,n,i,o)+" OR "+h(e.right,t,a,n,i,o)+") ";case"IS":if("null"!==e.right.type)throw new s.eS(s.f.UnsupportedIsRhs);return" ("+h(e.left,t,a,n,i,o)+" IS NULL )";case"ISNOT":if("null"!==e.right.type)throw new s.eS(s.f.UnsupportedIsRhs);return" ("+h(e.left,t,a,n,i,o)+" IS NOT NULL )";case"IN":return l=[],"expression-list"===e.right.type?(l=h(e.right,t,a,n,i)," ("+h(e.left,t,a,n,i,o)+" IN ("+l.join(",")+")) "):(d=h(e.right,t,a,n,i,o),d instanceof Array?" ("+h(e.left,t,a,n,i,o)+" IN ("+d.join(",")+")) ":" ("+h(e.left,t,a,n,i,o)+" IN ("+d+")) ");case"NOT IN":return l=[],"expression-list"===e.right.type?(l=h(e.right,t,a,n,i)," ("+h(e.left,t,a,n,i,o)+" NOT IN ("+l.join(",")+")) "):(d=h(e.right,t,a,n,i,o),d instanceof Array?" ("+h(e.left,t,a,n,i,o)+" NOT IN ("+d.join(",")+")) ":" ("+h(e.left,t,a,n,i,o)+" NOT IN ("+d+")) ");case"BETWEEN":return u=h(e.right,t,a,n,i,o)," ("+h(e.left,t,a,n,i,o)+" BETWEEN "+u[0]+" AND "+u[1]+" ) ";case"NOTBETWEEN":return u=h(e.right,t,a,n,i,o)," ("+h(e.left,t,a,n,i,o)+" NOT BETWEEN "+u[0]+" AND "+u[1]+" ) ";case"LIKE":return""!==e.escape?" ("+h(e.left,t,a,n,i,o)+" LIKE "+h(e.right,t,a,n,i,o)+" ESCAPE '"+e.escape+"') ":" ("+h(e.left,t,a,n,i,o)+" LIKE "+h(e.right,t,a,n,i,o)+") ";case"NOT LIKE":return""!==e.escape?" ("+h(e.left,t,a,n,i,o)+" NOT LIKE "+h(e.right,t,a,n,i,o)+" ESCAPE '"+e.escape+"') ":" ("+h(e.left,t,a,n,i,o)+" NOT LIKE "+h(e.right,t,a,n,i,o)+") ";case"<>":case"<":case">":case">=":case"<=":case"=":case"*":case"-":case"+":case"/":return" ("+h(e.left,t,a,n,i,o)+" "+e.operator+" "+h(e.right,t,a,n,i,o)+") ";case"||":return" ("+h(e.left,t,a,n,i,o)+" "+(t===r.Bj.SqlServer?"+":e.operator)+" "+h(e.right,t,a,n,i,o)+") "}throw new s.eS(s.f.UnsupportedOperator,{operator:e.operator});case"null":return"null";case"boolean":return!0===e.value?"1":"0";case"string":return"'"+e.value.toString().replace(/'/g,"''")+"'";case"timestamp":case"date":return _(e.value,t,o);case"number":return e.value.toString();case"current-time":return p("date"===e.mode,t);case"column-reference":return n&&n.toLowerCase()===e.column.toLowerCase()?"("+i+")":e.column;case"data-type":return e.value;case"function":{const r=h(e.args,t,a,n,i,o);return f(e.name,r,t)}}throw new s.eS(s.f.UnsupportedSyntax,{node:e.type})}function f(e,t,a){switch(e.toLowerCase().trim()){case"cos":case"sin":case"tan":case"cosh":case"tanh":case"sinh":case"acos":case"asin":case"atan":case"floor":case"log10":case"log":case"abs":if(1!==t.length)throw new s.eS(s.f.InvalidFunctionParameters,{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]})`;case"ceiling":case"ceil":if(1!==t.length)throw new s.eS(s.f.InvalidFunctionParameters,{function:"ceiling"});switch(a){case r.Bj.Standardised:case r.Bj.StandardisedNoInterval:}return"CEILING("+t[0]+")";case"mod":case"power":case"nullif":if(2!==t.length)throw new s.eS(s.f.InvalidFunctionParameters,{function:e.toLowerCase().trim()});return`${e.toUpperCase().trim()}(${t[0]},${t[1]})`;case"round":if(2===t.length)return"ROUND("+t[0]+","+t[1]+")";if(1===t.length)return"ROUND("+t[0]+")";throw new s.eS(s.f.InvalidFunctionParameters,{function:"round"});case"truncate":if(t.length<1||t.length>2)throw new s.eS(s.f.InvalidFunctionParameters,{function:"truncate"});return a===r.Bj.SqlServer?"ROUND("+t[0]+(1===t.length?"0":","+t[1])+",1)":"TRUNCATE("+t[0]+(1===t.length?")":","+t[1]+")");case"char_length":case"len":if(1!==t.length)throw new s.eS(s.f.InvalidFunctionParameters,{function:"char_length"});switch(a){case r.Bj.SqlServer:return"LEN("+t[0]+")";case r.Bj.Oracle:return"LENGTH("+t[0]+")";default:return"CHAR_LENGTH("+t[0]+")"}case"coalesce":case"concat":{if(t.length<1)throw new s.eS(s.f.InvalidFunctionParameters,{function:e.toLowerCase()});let a=e.toUpperCase().trim()+"(";for(let e=0;e<t.length;e++)0!==e&&(a+=","),a+=t[e];return a+=")",a}case"lower":case"lcase":if(1!==t.length)throw new s.eS(s.f.InvalidFunctionParameters,{function:"lower"});return"LOWER("+t[0]+")";case"upper":case"ucase":if(1!==t.length)throw new s.eS(s.f.InvalidFunctionParameters,{function:"upper"});return"UPPER("+t[0]+")";case"substring":{let e="";switch(a){case r.Bj.Oracle:return e="SUBSTR("+t[0]+","+t[1],3===t.length&&(e+=","+t[2]),e+=")",e;case r.Bj.SqlServer:return e=3===t.length?"SUBSTRING("+t[0]+","+t[1]+","+t[2]+")":"SUBSTRING("+t[0]+", "+t[1]+", LEN("+t[0]+") - "+t[1]+")",e;default:return e="SUBSTRING("+t[0]+" FROM "+t[1],3===t.length&&(e+=" FOR "+t[2]),e+=")",e}}case"extract":return"EXTRACT("+t[0].replace(/\'/g,"")+" FROM "+t[1]+")";case"cast":{let e="";switch(a){case r.Bj.Oracle:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case r.Bj.Postgres:switch(t[1].type){case"date":e="DATE";break;case"float":e="DOUBLE PRECISION";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;case r.Bj.SqlServer:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INT";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="DATETIME";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`;default:switch(t[1].type){case"date":e="DATE";break;case"float":e="FLOAT";break;case"integer":e="INTEGER";break;case"real":e="REAL";break;case"smallint":e="SMALLINT";break;case"timestamp":e="TIMESTAMP";break;case"varchar":e="VARCHAR("+t[1].size.toString()+")"}return`CAST(${t[0]} AS ${e})`}}}throw new s.eS(s.f.InvalidFunctionParameters,{function:e})}function m(e,t,a,i){a?.outputTimeReference&&(e=n.iG.arcadeDateAndZoneToArcadeDate(e,a?.outputTimeReference));const s=e.toDateTime(),o=0===s.hour&&0===s.minute&&0===s.second&&0===s.millisecond;switch(t){case r.Bj.FILEGDB:case r.Bj.Standardised:case r.Bj.StandardisedNoInterval:return o?`date '${s.toFormat("yyyy-LL-dd")}'`:`date '${s.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case r.Bj.Oracle:return o?`TO_DATE('${s.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${s.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case r.Bj.SqlServer:return`'${s.toFormat(o?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case r.Bj.PGDB:return`#${s.toFormat(o?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case r.Bj.Postgres:return`TIMESTAMP '${s.toFormat(o?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`date '${s.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function _(e,t,a,n){let i=(0,r.J_)(e)?o.ou.fromJSDate(e):o.ou.fromSQL(e);const s=0===i.hour&&0===i.minute&&0===i.second&&0===i.millisecond;switch(a?.inputTimeReference&&(i=o.ou.fromObject({day:i.day,year:i.year,month:i.month,hour:i.hour,minute:i.minute,second:i.second,millisecond:i.millisecond},{zone:a.inputTimeReference})),a?.outputTimeReference&&(i=i.setZone(a.outputTimeReference)),t){case r.Bj.FILEGDB:case r.Bj.Standardised:case r.Bj.StandardisedNoInterval:return s?`date '${i.toFormat("yyyy-LL-dd")}'`:`date '${i.toFormat("yyyy-LL-dd HH:mm:ss")}'`;case r.Bj.Oracle:return s?`TO_DATE('${i.toFormat("yyyy-LL-dd")}','YYYY-MM-DD')`:`TO_DATE('${i.toFormat("yyyy-LL-dd HH:mm:ss")}','YYYY-MM-DD HH24:MI:SS')`;case r.Bj.SqlServer:return`'${i.toFormat(s?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;case r.Bj.PGDB:return`#${i.toFormat(s?"LL-dd-yyyy":"LL-dd-yyyy HH:mm:ss")}#`;case r.Bj.Postgres:return`TIMESTAMP '${i.toFormat(s?"yyyy-LL-dd":"yyyy-LL-dd HH:mm:ss")}'`;default:return`date '${i.toFormat("yyyy-LL-dd HH:mm:ss")}'`}}function p(e,t){switch(t){case r.Bj.FILEGDB:case r.Bj.Standardised:case r.Bj.StandardisedNoInterval:case r.Bj.Oracle:return e?"CURRENT_DATE":"CURRENT_TIMESTAMP";case r.Bj.SqlServer:return e?"CAST(GETDATE() AS DATE)":"GETDATE()";case r.Bj.PGDB:case r.Bj.Postgres:default:return e?"CURRENT_DATE":"CURRENT_TIMESTAMP"}}function g(e,t,a={}){const n={},r={},i={esriFieldTypeSmallInteger:"integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"double",esriFieldTypeDouble:"double",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"integer",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"guid",oid:"integer",long:"integer","small-integer":"integer",integer:"integer",single:"double",double:"double",date:"date",guid:"guid",globalid:"guid",string:"string"};for(const e of t){const t=e.type?i[e.type]:void 0;n[e.name.toLowerCase()]=void 0===t?"":t}for(const e in a){const t=i[a[e]];r[e.toLowerCase()]=void 0===t?"":t}switch(T(n,e.parseTree,e.parameters,r)){case"double":return"double";case"integer":return"integer";case"date":return"date";case"string":return"string";case"global-id":case"guid":return"guid"}return""}function T(e,t,a,n){let i;switch(t.type){case"interval":return"integer";case"case-expression":{const r=[];if("simple"===t.format){for(let i=0;i<t.clauses.length;i++)r.push(T(e,t.clauses[i].value,a,n));null!==t.else&&r.push(T(e,t.else,a,n))}else{for(let i=0;i<t.clauses.length;i++)r.push(T(e,t.else,a,n));null!==t.else&&r.push(T(e,t.else,a,n))}return y(r)}case"parameter":{const e=n[t.value.toLowerCase()];if(void 0===e&&a){const e=a[t.value.toLowerCase()];if(void 0===e)return"";if(null===e)return"";if("string"==typeof e||e instanceof String)return"string";if("boolean"==typeof e)return"boolean";if((0,r.J_)(e))return"date";if((0,r.NP)(e))return"date";if("number"==typeof e)return e%1==0?"integer":"double"}return void 0===e?"":e}case"expression-list":{const r=[];for(const i of t.value)r.push(T(e,i,a,n));return r}case"unary-expression":return"boolean";case"binary-expression":switch(t.operator){case"AND":case"OR":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"IS":case"ISNOT":if("null"!==t.right.type)throw new s.eS(s.f.UnsupportedIsRhs);return"boolean";case"*":case"-":case"+":case"/":return y([T(e,t.left,a,n),T(e,t.right,a,n)]);case"||":return"string";default:throw new s.eS(s.f.UnsupportedOperator,{operator:t.operator})}case"null":return"";case"boolean":return"boolean";case"string":return"string";case"number":return null===t.value?"":t.value%1==0?"integer":"double";case"date":case"timestamp":case"current-time":return"date";case"column-reference":{const a=e[t.column.toLowerCase()];return void 0===a?"":a}case"function":switch(t.name.toLowerCase()){case"cast":switch(t.args?.value[1]?.value.type??""){case"integer":case"smallint":return"integer";case"real":case"float":return"double";case"date":case"timestamp":return"date";case"varchar":return"string";default:return""}case"position":case"extract":case"char_length":case"mod":return"integer";case"round":if(i=T(e,t.args,a,n),i instanceof Array){if(i.length<=0)return"double";i=i[0]}return i;case"sign":return"integer";case"ceiling":case"floor":case"abs":return i=T(e,t.args,a,n),i instanceof Array&&(i=y(i)),"integer"===i||"double"===i?i:"double";case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"cosh":case"sinh":case"tanh":case"power":return"double";case"substring":case"trim":case"concat":case"lower":case"upper":return"string";case"truncate":return"double";case"nullif":case"coalesce":return i=T(e,t.args,a,n),i instanceof Array?i.length>0?i[0]:"":i}return""}throw new s.eS(s.f.UnsupportedSyntax,{node:t.type})}const S={boolean:1,string:2,integer:3,double:4,date:5};function y(e){if(e){let t="";for(const a of e)""!==a&&(t=""===t||S[t]<S[a]?a:t);return t}return""}function w(e,t){return I(e.parseTree,t)}function A(e){return"column-reference"===e?.parseTree.type}function I(e,t){if(null==e)return!1;switch(e.type){case"when-clause":return I(e.operand,t)||I(e.value,t);case"case-expression":for(const a of e.clauses)if(I(a,t))return!0;return!("simple"!==e.format||!I(e.operand,t))||!(null===e.else||!I(e.else,t));case"parameter":case"null":case"boolean":case"date":case"timestamp":case"string":case"number":return!1;case"expression-list":for(const a of e.value)if(I(a,t))return!0;return!1;case"unary-expression":return I(e.expr,t);case"binary-expression":return I(e.left,t)||I(e.right,t);case"column-reference":return t.toLowerCase()===e.column.toLowerCase();case"function":return I(e.args,t)}return!1}function E(e){let t="";return t+=e.period.toUpperCase(),t}function F(e,t,a){let n="";return n="interval-period"===t.type?E(t):E(t.start)+" TO "+E(t.end),"INTERVAL "+a+" "+e+" "+n}},95002:(e,t,a)=>{a.d(t,{CA:()=>_,EB:()=>y,Fp:()=>f,J6:()=>m,QX:()=>T,Sm:()=>g,VV:()=>h,g3:()=>u,m:()=>p,tj:()=>d});var n=a(59987),r=a(90658),i=a(36515);function s(e){let t=0;for(let a=0;a<e.length;a++)t+=e[a];return t/e.length}function o(e){const t=s(e);let a=0;for(let n=0;n<e.length;n++)a+=(t-e[n])**2;return a/e.length}function l(e){const t=s(e);let a=0;for(let n=0;n<e.length;n++)a+=(t-e[n])**2;return a/(e.length-1)}function c(e){let t=0;for(let a=0;a<e.length;a++)t+=e[a];return t}function u(e){switch(e.toLowerCase()){case"distinct":return"distinct";case"avg":case"mean":return"avg";case"min":return"min";case"sum":return"sum";case"max":return"max";case"stdev":case"stddev":return"stddev";case"var":case"variance":return"var";case"count":return"count"}return""}function d(e,t,a=1e3){switch(e.toLowerCase()){case"distinct":return function(e,t){const a=[],n={},i=[];for(let s=0;s<e.length;s++){if(void 0!==e[s]&&null!==e[s]){const t=e[s];if((0,r.hj)(t)||(0,r.HD)(t))void 0===n[t]&&(a.push(t),n[t]=1);else{let e=!1;for(let a=0;a<i.length;a++)!0===(0,r.tt)(i[a],t)&&(e=!0);!1===e&&(i.push(t),a.push(t))}}if(a.length>=t&&-1!==t)return a}return a}(t,a);case"avg":case"mean":return s(t);case"min":return Math.min.apply(Math,t);case"sum":return c(t);case"max":return Math.max.apply(Math,t);case"stdev":case"stddev":return Math.sqrt(o(t));case"var":case"variance":return o(t);case"count":return t.length}return 0}async function h(e,t,a){const n=await S(e,t,a,!0);return 0===n.length?null:Math.min.apply(Math,n)}async function f(e,t,a){const n=await S(e,t,a,!0);return 0===n.length?null:Math.max.apply(Math,n)}async function m(e,t,a){let n="";t&&!(0,i.y5)(t)&&(n=(0,i.DT)(t,e.fields));const r=await S(e,t,a,!0);if(0===r.length)return null;const o=s(r);return null===o?o:"integer"===n?function(e){return e=+e,isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}(o):o}async function _(e,t,a){const n=await S(e,t,a,!0);return 0===n.length?null:l(n)}async function p(e,t,a){const n=await S(e,t,a,!0);return 0===n.length?null:Math.sqrt(l(n))}async function g(e,t,a){const n=await S(e,t,a,!0);return 0===n.length?null:c(n)}async function T(e,t){return e.iterator(t).count()}async function S(e,t,a,r=!1){const i=e.iterator(a),s=[],o={ticker:0};let l=await i.next();for(;null!==l;){if(o.ticker++,a.aborted)throw new n.EN(n.H9.Cancelled);o.ticker%100==0&&(o.ticker=0,await new Promise((e=>{setTimeout(e,0)})));const e=t?.calculateValue(l);null===e?!1===r&&(s[s.length]=e):s[s.length]=e,l=await i.next()}return s}async function y(e,t,a=1e3,r=null){const i=e.iterator(r),s=[],o={},l={ticker:0};let c=await i.next();for(;null!==c;){if(l.ticker++,r&&r.aborted)throw new n.EN(n.H9.Cancelled);l.ticker%100==0&&(l.ticker=0,await new Promise((e=>{setTimeout(e,0)})));const e=t?.calculateValue(c);if(null!=e&&void 0===o[e]&&(s.push(e),o[e]=1),s.length>=a&&-1!==a)return s;c=await i.next()}return s}},99880:(e,t,a)=>{a.d(t,{V:()=>l});var n=a(68773),r=(a(3172),a(20102)),i=a(92604),s=a(17452);const o=i.Z.getLogger("esri.assets");function l(e){if(!n.Z.assetsPath)throw o.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new r.Z("assets:path-not-set","config.assetsPath is not set");return(0,s.v_)(n.Z.assetsPath,e)}},8667:(e,t,a)=>{a.d(t,{CJ:()=>x,Cz:()=>M,D$:()=>N,ED:()=>S,G0:()=>R,Gg:()=>A,JI:()=>E,LV:()=>w,Nm:()=>y,Sp:()=>b,TE:()=>m,U1:()=>P,W4:()=>g,Y4:()=>B,cv:()=>k,e5:()=>F,f3:()=>v,fS:()=>_,j2:()=>L,jU:()=>f,kK:()=>p,kQ:()=>U,og:()=>I,oq:()=>u,r3:()=>h,rd:()=>D,sz:()=>G,uh:()=>T,wf:()=>C,z7:()=>d}),a(66577);var n=a(78346),r=(a(94139),a(33955));function i(e){return Array.isArray(e)?e[0]?.spatialReference:e?.spatialReference}function s(e){return e?Array.isArray(e)?e.map(s):e.toJSON?e.toJSON():e:e}function o(e){return Array.isArray(e)?e.map((e=>(0,r.im)(e))):(0,r.im)(e)}let l;async function c(e,t){return(await async function(){return l||(l=(0,n.bA)("geometryEngineWorker",{strategy:"distributed"})),l}()).invoke("executeGEOperation",{operation:e,parameters:s(t)})}async function u(e,t){return o(await c("clip",[i(e),e,t]))}async function d(e,t){return o(await c("cut",[i(e),e,t]))}function h(e,t){return c("contains",[i(e),e,t])}function f(e,t){return c("crosses",[i(e),e,t])}function m(e,t,a){return c("distance",[i(e),e,t,a])}function _(e,t){return c("equals",[i(e),e,t])}function p(e,t){return c("intersects",[i(e),e,t])}function g(e,t){return c("touches",[i(e),e,t])}function T(e,t){return c("within",[i(e),e,t])}function S(e,t){return c("disjoint",[i(e),e,t])}function y(e,t){return c("overlaps",[i(e),e,t])}function w(e,t,a){return c("relate",[i(e),e,t,a])}function A(e){return c("isSimple",[i(e),e])}async function I(e){return o(await c("simplify",[i(e),e]))}async function E(e,t=!1){return o(await c("convexHull",[i(e),e,t]))}async function F(e,t){return o(await c("difference",[i(e),e,t]))}async function b(e,t){return o(await c("symmetricDifference",[i(e),e,t]))}async function C(e,t){return o(await c("intersect",[i(e),e,t]))}async function R(e,t=null){const a=function(e,t){let a;return Array.isArray(e)?a=e:(a=[],a.push(e),null!=t&&a.push(t)),a}(e,t);return o(await c("union",[i(a),a]))}async function k(e,t,a,n,r,s){return o(await c("offset",[i(e),e,t,a,n,r,s]))}async function v(e,t,a,n=!1){const r=[i(e),e,t,a,n];return o(await c("buffer",r))}async function D(e,t,a,n,r,s){const l=[i(e),e,t,a,n,r,s];return o(await c("geodesicBuffer",l))}async function P(e,t,a){if(null==e)throw new Z;const n=e.spatialReference;if(null==(a=a??function(e){return"xmin"in e?e.center:"x"in e?e:e.extent?.center}(e)))throw new Z;const r=e.constructor.fromJSON(await c("rotate",[n,e,t,a]));return r.spatialReference=n,r}async function N(e,t,a,n){return o(await c("generalize",[i(e),e,t,a,n]))}async function M(e,t,a){return o(await c("densify",[i(e),e,t,a]))}async function L(e,t,a,n=0){return o(await c("geodesicDensify",[i(e),e,t,a,n]))}function x(e,t){return c("planarArea",[i(e),e,t])}function G(e,t){return c("planarLength",[i(e),e,t])}function B(e,t,a){return c("geodesicArea",[i(e),e,t,a])}function U(e,t,a){return c("geodesicLength",[i(e),e,t,a])}class Z extends Error{constructor(){super("Illegal Argument Exception")}}},94443:(e,t,a)=>{a.d(t,{ME:()=>f,Su:()=>m,tz:()=>h});var n=a(20102),r=a(95330),i=a(70171);const s=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,o={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){return o[e]??!1}const c=[],u=new Map;function d(e){for(const t of u.keys())_(e.pattern,t)&&u.delete(t)}function h(e){return c.includes(e)||(d(e),c.unshift(e)),{remove(){const t=c.indexOf(e);t>-1&&(c.splice(t,1),d(e))}}}async function f(e){const t=(0,i.Kd)();u.has(e)||u.set(e,async function(e,t){const a=[];for(const n of c)if(_(n.pattern,e))try{return await n.fetchMessageBundle(e,t)}catch(e){a.push(e)}if(a.length)throw new n.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:a});throw new n.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const a=u.get(e);return a&&await p.add(a),a}function m(e){if(!s.test(e))return null;const t=s.exec(e);if(null===t)return null;const[,a,n]=t,r=a+(n?"-"+n.toUpperCase():"");return l(r)?r:l(a)?a:null}function _(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,i.Ze)((()=>{u.clear()}));const p=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,r.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},80216:(e,t,a)=>{a.d(t,{Z:()=>f});var n=a(43697),r=a(2368),i=a(96674),s=a(70586),o=a(5600),l=(a(75215),a(67676),a(71715)),c=a(52011),u=a(30556),d=a(42799);let h=class extends((0,r.J)(i.wq)){constructor(e){super(e),this.legacy=null,this.timeZone="system"}readLegacy(e,t){const{timeZone:a,respectsDaylightSaving:n}=t;return{timeZone:a,respectsDaylightSaving:n}}readTimeZone(e,t){return"timeZoneIANA"in t?t.timeZoneIANA:(0,d.G)(t)}writeTimeZone(e,t){t.timeZoneIANA=e}equals(e){return!((0,s.Wi)(e)||(0,s.Wi)(this.timeZone)||(0,s.Wi)(e.timeZone))&&this.timeZone===e.timeZone}};(0,n._)([(0,o.Cb)()],h.prototype,"legacy",void 0),(0,n._)([(0,l.r)("legacy",["timeZone"])],h.prototype,"readLegacy",null),(0,n._)([(0,o.Cb)({type:String,nonNullable:!0})],h.prototype,"timeZone",void 0),(0,n._)([(0,l.r)("timeZone",["timeZone","timeZoneIANA","respectsDaylightSaving"])],h.prototype,"readTimeZone",null),(0,n._)([(0,u.c)("timeZone")],h.prototype,"writeTimeZone",null),h=(0,n._)([(0,c.j)("esri.time.TimeReference")],h);const f=h},42799:(e,t,a)=>{a.d(t,{G:()=>i});const n=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Almaty"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Chihuahua"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var r=a(17126);function i(e,t="system"){if(!e||!n.has(e.timeZone))return t;const a=n.get(e.timeZone);return e.timeZone.startsWith("UTC")||e.respectsDaylightSaving?a:function(e){const t=r.ou.local().setZone(e),a=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===a?"Etc/UTC":`Etc/GMT${r.Qf.instance(-a).formatOffset(0,"narrow")}`}(a)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3942,216],{92722:(e,a,t)=>{t.d(a,{O3:()=>w,lG:()=>C,my:()=>b,q9:()=>d});var i=t(20102),n=t(70272),r=t(5428),o=t(35671);const s={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function d(e){return s[e]}function*l(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const a of e.features)a&&(yield a)}}function*c(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 a of e.coordinates)yield*a;break;case"MultiPolygon":for(const a of e.coordinates)for(const e of a)yield*e}}function u(e){for(const a of e)if(a.length>2)return!0;return!1}function m(e){let a=0;for(let t=0;t<e.length;t++){const i=e[t],n=e[(t+1)%e.length];a+=i[0]*n[1]-n[0]*i[1]}return a<=0}function p(e){const a=e[0],t=e[e.length-1];return a[0]===t[0]&&a[1]===t[1]&&a[2]===t[2]||e.push(a),e}function f(e,a,t){switch(a.type){case"LineString":case"MultiPoint":return function(e,a,t){return y(e,a.coordinates,t),e}(e,a,t);case"MultiLineString":return function(e,a,t){for(const i of a.coordinates)y(e,i,t);return e}(e,a,t);case"MultiPolygon":return function(e,a,t){for(const i of a.coordinates){T(e,i[0],t);for(let a=1;a<i.length;a++)S(e,i[a],t)}return e}(e,a,t);case"Point":return function(e,a,t){return A(e,a.coordinates,t),e}(e,a,t);case"Polygon":return function(e,a,t){const i=a.coordinates;T(e,i[0],t);for(let a=1;a<i.length;a++)S(e,i[a],t);return e}(e,a,t)}}function T(e,a,t){const i=p(a);!function(e){return!m(e)}(i)?y(e,i,t):g(e,i,t)}function S(e,a,t){const i=p(a);!function(e){return m(e)}(i)?y(e,i,t):g(e,i,t)}function y(e,a,t){for(const i of a)A(e,i,t);e.lengths.push(a.length)}function g(e,a,t){for(let i=a.length-1;i>=0;i--)A(e,a[i],t);e.lengths.push(a.length)}function A(e,a,t){const[i,n,r]=a;e.coords.push(i,n),t.hasZ&&e.coords.push(r||0)}function h(e){switch(typeof e){case"string":return"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function w(e){if(!e)throw new i.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new i.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:a}=e;if(!a)return;const t="string"==typeof a?a:"name"===a.type?a.properties.name:"EPSG"===a.type?a.properties.code:null,n=new RegExp(".*(CRS84H?|4326)$","i");if(!t||!n.test(t))throw new i.Z("geojson-layer:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:a})}function b(e,a={}){const t=[],i=new Set,n=new Set;let r,s=!1,m=null,p=!1,{geometryType:f=null}=a,T=!1;for(const a of l(e)){const{geometry:e,properties:l,id:S}=a;if((!e||(f||(f=d(e.type)),d(e.type)===f))&&(s||(s=u(c(e))),p||(p=null!=S,p&&(r=typeof S,l&&(m=Object.keys(l).filter((e=>l[e]===S))))),l&&m&&p&&null!=S&&(m.length>1?m=m.filter((e=>l[e]===S)):1===m.length&&(m=l[m[0]]===S?m:[])),!T&&l)){let e=!0;for(const a in l){if(i.has(a))continue;const r=l[a];if(null==r){e=!1,n.add(a);continue}const s=h(r);if("unknown"===s){n.add(a);continue}n.delete(a),i.add(a);const d=(0,o.q6)(a);d&&t.push({name:d,alias:a,type:s})}T=e}}const S=(0,o.q6)(1===m?.length&&m[0]||null)??void 0;if(S)for(const e of t)if(e.name===S&&(0,o.H7)(e)){e.type="esriFieldTypeOID";break}return{fields:t,geometryType:f,hasZ:s,objectIdFieldName:S,objectIdFieldType:r,unknownFields:Array.from(n)}}function C(e,a){return Array.from(function*(e,a={}){const{geometryType:t,objectIdField:i}=a;for(const o of e){const{geometry:e,properties:s,id:l}=o;if(e&&d(e.type)!==t)continue;const c=s||{};let u;i&&(u=c[i],null==l||u||(c[i]=u=l));const m=new n.u_(e?f(new r.Z,e,a):null,c,null,u??void 0);yield m}}(l(e),a))}},25278:(e,a,t)=>{t.d(a,{Dm:()=>c,Hq:()=>u,MS:()=>m,bU:()=>s});var i=t(80442),n=t(22974),r=t(61159),o=t(58333);function s(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?o.I4:"esriGeometryPolyline"===e?o.ET:o.lF}}}const d=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let l=1;function c(e,a){if((0,i.Z)("esri-csp-restrictions"))return()=>({[a]:null,...e});try{let t=`this.${a} = null;`;for(const a in e)t+=`this${d.test(a)?`.${a}`:`["${a}"]`} = ${JSON.stringify(e[a])};`;const i=new Function(`\n return class AttributesClass$${l++} {\n constructor() {\n ${t};\n }\n }\n `)();return()=>new i}catch(t){return()=>({[a]:null,...e})}}function u(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,n.d9)(e)}}]}function m(e,a){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:a,supportsDelete:a,supportsEditing:a,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:a,supportsExceedsLimitStatistics:!0},query:r.g,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},editing:{supportsGeometryUpdate:a,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},16467:(e,a,t)=>{t.d(a,{$9:()=>g,G4:()=>w,Lu:()=>y,WW:()=>E,d:()=>k,eS:()=>C,gp:()=>b,j:()=>h,w9:()=>A,yN:()=>M}),t(66577);var i=t(3172),n=t(20102),r=t(92604),o=t(70586),s=t(8744),d=t(40488),l=t(98732),c=t(44876),u=t(92722),m=t(25278),p=t(99514),f=t(86719),T=t(82971);const S=r.Z.getLogger("esri.layers.graphics.sources.ogcfeature"),y="http://www.opengis.net/def/crs/",g=`${y}OGC/1.3/CRS84`;async function A(e,a,t={},r=5){const{links:s}=e,d=I(s,"items","application/geo+json")||I(s,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if((0,o.Wi)(d))throw new n.Z("ogc-feature-layer:missing-items-page","Missing items url");const{data:l}=await(0,i.default)(d.href,{signal:t.signal,query:{limit:r,...t.customParameters,token:t.apiKey},headers:{accept:"application/geo+json"}});await(0,u.O3)(l);const c=(0,u.my)(l,{geometryType:a.geometryType}),T=a.fields||c.fields||[],y=null!=a.hasZ?a.hasZ:c.hasZ,g=c.geometryType,A=a.objectIdField||c.objectIdFieldName||"OBJECTID";let h=a.timeInfo;const w=T.find((({name:e})=>e===A));if(w)w.editable=!1,w.nullable=!1;else{if(!c.objectIdFieldType)throw new n.Z("ogc-feature-layer:missing-feature-id","Collection geojson require a feature id as a unique identifier");T.unshift({name:A,alias:A,type:"number"===c.objectIdFieldType?"esriFieldTypeOID":"esriFieldTypeString",editable:!1,nullable:!1})}if(A!==c.objectIdFieldName){const e=T.find((({name:e})=>e===c.objectIdFieldName));e&&(e.type="esriFieldTypeInteger")}T===c.fields&&c.unknownFields.length>0&&S.warn({name:"ogc-feature-layer:unknown-field-types",message:"Some fields types couldn't be inferred from the features and were dropped",details:{unknownFields:c.unknownFields}});for(const e of T){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 n.Z("ogc-feature-layer:invalid-field-name","field name is missing",{field:e});if(!f.v.jsonValues.includes(e.type))throw new n.Z("ogc-feature-layer:invalid-field-type",`invalid type for field "${e.name}"`,{field:e})}if(h){const e=new p.Z(T);if(h.startTimeField){const a=e.get(h.startTimeField);a?(h.startTimeField=a.name,a.type="esriFieldTypeDate"):h.startTimeField=null}if(h.endTimeField){const a=e.get(h.endTimeField);a?(h.endTimeField=a.name,a.type="esriFieldTypeDate"):h.endTimeField=null}if(h.trackIdField){const a=e.get(h.trackIdField);a?h.trackIdField=a.name:(h.trackIdField=null,S.warn({name:"ogc-feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:h}}))}h.startTimeField||h.endTimeField||(S.warn({name:"ogc-feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing",details:{timeInfo:h}}),h=null)}return{drawingInfo:g?(0,m.bU)(g):null,extent:Z(e),geometryType:g,fields:T,hasZ:!!y,objectIdField:A,timeInfo:h}}async function h(e,a={}){const{links:t}=e,r=I(t,"data","application/json")||I(t,"http://www.opengis.net/def/rel/ogc/1.0/data","application/json");if((0,o.Wi)(r))throw new n.Z("ogc-feature-layer:missing-collections-page","Missing collections url");const{apiKey:s,customParameters:d,signal:l}=a,{data:c}=await(0,i.default)(r.href,{signal:l,headers:{accept:"application/json"},query:{...d,token:s}});return c}async function w(e,a={}){const{links:t}=e,r=I(t,"conformance","application/json")||I(t,"http://www.opengis.net/def/rel/ogc/1.0/conformance","application/json");if((0,o.Wi)(r))throw new n.Z("ogc-feature-layer:missing-conformance-page","Missing conformance url");const{apiKey:s,customParameters:d,signal:l}=a,{data:c}=await(0,i.default)(r.href,{signal:l,headers:{accept:"application/json"},query:{...d,token:s}});return c}async function b(e,a={}){const{apiKey:t,customParameters:n,signal:r}=a,{data:o}=await(0,i.default)(e,{signal:r,headers:{accept:"application/json"},query:{...n,token:t}});return o}async function C(e,a={}){const t="application/vnd.oai.openapi+json;version=3.0",n=I(e.links,"service-desc",t);if((0,o.Wi)(n))return S.warn("ogc-feature-layer:missing-openapi-page","The OGC API-Features server does not have an OpenAPI page."),null;const{apiKey:r,customParameters:s,signal:d}=a,{data:l}=await(0,i.default)(n.href,{signal:d,headers:{accept:t},query:{...s,token:r}});return l}function k(e){const a=/^http:\/\/www\.opengis.net\/def\/crs\/(?<authority>.*)\/(?<version>.*)\/(?<code>.*)$/i.exec(e)?.groups;if(!a)return null;const{authority:t,code:i}=a;switch(t.toLowerCase()){case"ogc":switch(i.toLowerCase()){case"crs27":return T.Z.GCS_NAD_1927.wkid;case"crs83":return 4269;case"crs84":case"crs84h":return T.Z.WGS84.wkid;default:return null}case"esri":case"epsg":{const e=Number.parseInt(i,10);return Number.isNaN(e)?null:e}default:return null}}async function M(e,a,t){const i=await E(e,a,t);return(0,l.cn)(i)}async function E(e,a,t){const{collection:r,layerDefinition:m,maxRecordCount:p,queryParameters:{apiKey:f,customParameters:S},spatialReference:y,supportedCrs:g}=e,{links:A}=r,h=I(A,"items","application/geo+json")||I(A,"http://www.opengis.net/def/rel/ogc/1.0/items","application/geo+json");if((0,o.Wi)(h))throw new n.Z("ogc-feature-layer:missing-items-page","Missing items url");const{geometry:w,num:b,start:C,timeExtent:k,where:M}=a;if(a.objectIds)throw new n.Z("ogc-feature-layer:query-by-objectids-not-supported","Queries with objectids are not supported");const E=T.Z.fromJSON(y),F=(0,o.Pt)(a.outSpatialReference,E),Z=F.isWGS84?null:G(F,g),j=P(w,g),v=function(e){if((0,o.Wi)(e))return null;const{start:a,end:t}=e;return`${(0,o.pC)(a)?a.toISOString():".."}/${(0,o.pC)(t)?t.toISOString():".."}`}(k),U=(x=M,(0,o.Wi)(x)||!x||"1=1"===x?null:x),N=b??(null!=C&&void 0!==C?10:p),{data:W}=await(0,i.default)(h.href,{...t,query:{...S,...j,crs:Z,datetime:v,query:U,limit:N,startindex:C,token:f},headers:{accept:"application/geo+json"}});var x;let L=!1;W.links&&(L=!!W.links.find((e=>"next"===e.rel))),!L&&Number.isInteger(W.numberMatched)&&Number.isInteger(W.numberReturned)&&(L=W.numberReturned<W.numberMatched);const{fields:R,geometryType:B,hasZ:O,objectIdField:q}=m,$=(0,u.lG)(W,{geometryType:B,hasZ:O,objectIdField:q});if(!Z&&F.isWebMercator)for(const e of $)if((0,o.pC)(e.geometry)&&null!=B){const a=(0,l.di)(e.geometry,B,O,!1);a.spatialReference=T.Z.WGS84,e.geometry=(0,l.GH)((0,d.iV)(a,F))}for(const e of $)e.objectId=e.attributes[q];const D=Z||!Z&&F.isWebMercator?F.toJSON():s.Zn,_=new c.Z;return _.exceededTransferLimit=L,_.features=$,_.fields=R,_.geometryType=B,_.hasZ=O,_.objectIdFieldName=q,_.spatialReference=D,_}function G(e,a){const{isWebMercator:t,wkid:i}=e;if(!i)return null;const n=t?a[3857]??a[102100]??a[102113]??a[900913]:a[e.wkid];return n?`${y}${n}`:null}function F(e){if((0,o.Wi)(e))return"";const{xmin:a,ymin:t,xmax:i,ymax:n}=e;return`${a},${t},${i},${n}`}function P(e,a){if(!function(e){return(0,o.pC)(e)&&"extent"===e.type}(e))return null;const{spatialReference:t}=e;if(!t||t.isWGS84)return{bbox:F(e)};const i=G(t,a);return(0,o.pC)(i)?{bbox:F(e),"bbox-crs":i}:t.isWebMercator?{bbox:F((0,d.iV)(e,T.Z.WGS84))}:null}function Z(e){const a=e.extent?.spatial;if(!a)return null;const t=a.bbox[0],i=4===t.length,n=t[0],r=t[1],o=i?void 0:t[2];return{xmin:n,ymin:r,xmax:i?t[2]:t[3],ymax:i?t[3]:t[4],zmin:o,zmax:i?void 0:t[5],spatialReference:T.Z.WGS84.toJSON()}}function I(e,a,t){return e.find((e=>e.rel===a&&e.type===t))||e.find((e=>e.rel===a&&!e.type))}},58333:(e,a,t)=>{t.d(a,{ET:()=>r,I4:()=>n,eG:()=>d,lF:()=>o,lj:()=>c,qP:()=>s,wW:()=>l});const i=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},r={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},s={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},d={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},l={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},80216:(e,a,t)=>{t.d(a,{Z:()=>p});var i=t(43697),n=t(2368),r=t(96674),o=t(70586),s=t(5600),d=(t(75215),t(67676),t(71715)),l=t(52011),c=t(30556),u=t(42799);let m=class extends((0,n.J)(r.wq)){constructor(e){super(e),this.legacy=null,this.timeZone="system"}readLegacy(e,a){const{timeZone:t,respectsDaylightSaving:i}=a;return{timeZone:t,respectsDaylightSaving:i}}readTimeZone(e,a){return"timeZoneIANA"in a?a.timeZoneIANA:(0,u.G)(a)}writeTimeZone(e,a){a.timeZoneIANA=e}equals(e){return!((0,o.Wi)(e)||(0,o.Wi)(this.timeZone)||(0,o.Wi)(e.timeZone))&&this.timeZone===e.timeZone}};(0,i._)([(0,s.Cb)()],m.prototype,"legacy",void 0),(0,i._)([(0,d.r)("legacy",["timeZone"])],m.prototype,"readLegacy",null),(0,i._)([(0,s.Cb)({type:String,nonNullable:!0})],m.prototype,"timeZone",void 0),(0,i._)([(0,d.r)("timeZone",["timeZone","timeZoneIANA","respectsDaylightSaving"])],m.prototype,"readTimeZone",null),(0,i._)([(0,c.c)("timeZone")],m.prototype,"writeTimeZone",null),m=(0,i._)([(0,l.j)("esri.time.TimeReference")],m);const p=m},42799:(e,a,t)=>{t.d(a,{G:()=>r});const i=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Almaty"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Chihuahua"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var n=t(17126);function r(e,a="system"){if(!e||!i.has(e.timeZone))return a;const t=i.get(e.timeZone);return e.timeZone.startsWith("UTC")||e.respectsDaylightSaving?t:function(e){const a=n.ou.local().setZone(e),t=Math.min(a.set({month:1,day:1}).offset,a.set({month:5}).offset);return 0===t?"Etc/UTC":`Etc/GMT${n.Qf.instance(-t).formatOffset(0,"narrow")}`}(t)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5795],{99514:(e,t,i)=>{i.d(t,{Z:()=>n});var r=i(35671);function o(e){return"oid"===e.type||"esriFieldTypeOID"===e.type}function s(e){return"global-id"===e.type||"esriFieldTypeGlobalID"===e.type}class n{constructor(e=[]){if(this.fields=[],this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this.dateFields=[],this.numericFields=[],this._requiredFields=null,!e)return;this.fields=e;const t=[];for(const n of e){const e=n?.name,p=l(n?.name);if(e&&p){const l=a(e);this._fieldsMap.set(e,n),this._fieldsMap.set(l,n),this._normalizedFieldsMap.set(p,n),t.push(l),"date"===(i=n).type||"esriFieldTypeDate"===i.type?(this.dateFields.push(n),this._dateFieldsSet.add(n)):(0,r.H7)(n)&&(this._numericFieldsSet.add(n),this.numericFields.push(n)),o(n)||s(n)||(n.editable=null==n.editable||!!n.editable,n.nullable=null==n.nullable||!!n.nullable)}}var i;t.sort(),this.uid=t.join(",")}destroy(){this._fieldsMap.clear()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)o(e)||s(e)||e.nullable||void 0!==(0,r.os)(e)||this._requiredFields.push(e)}return this._requiredFields}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(a(e))??this._normalizedFieldsMap.get(l(e)),t&&this._fieldsMap.set(e,t),t)}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){const t=this.get(e);if(t)return t.name??void 0}}function a(e){return e.trim().toLowerCase()}function l(e){return(0,r.q6)(e)?.toLowerCase()??""}},10158:(e,t,i)=>{i.d(t,{n:()=>D});var r,o=i(43697),s=i(35454),n=i(96674),a=i(5600),l=i(90578),p=i(36030),u=i(71715),d=i(52011),c=i(75215),y=i(63213),h=i(1231),m=i(42843),b=(i(66577),i(67676),i(82971)),w=i(86973);let v=r=class extends n.wq{constructor(e){super(e),this.type="query-table"}clone(){const{workspaceId:e,query:t,oidFields:i,spatialReference:o,geometryType:s}=this,n={workspaceId:e,query:t,oidFields:i,spatialReference:o?.clone()??void 0,geometryType:s};return new r(n)}};var _;(0,o._)([(0,p.J)({queryTable:"query-table"})],v.prototype,"type",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],v.prototype,"workspaceId",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],v.prototype,"query",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],v.prototype,"oidFields",void 0),(0,o._)([(0,a.Cb)({type:b.Z,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o._)([(0,p.J)(w.M)],v.prototype,"geometryType",void 0),v=r=(0,o._)([(0,d.j)("esri.layers.support.source.QueryTableDataSource")],v);let S=_=class extends n.wq{constructor(e){super(e),this.type="raster"}clone(){const{workspaceId:e,dataSourceName:t}=this;return new _({workspaceId:e,dataSourceName:t})}};var g;(0,o._)([(0,p.J)({raster:"raster"})],S.prototype,"type",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],S.prototype,"dataSourceName",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],S.prototype,"workspaceId",void 0),S=_=(0,o._)([(0,d.j)("esri.layers.support.source.RasterDataSource")],S);let C=g=class extends n.wq{constructor(e){super(e),this.type="table"}clone(){const{workspaceId:e,gdbVersion:t,dataSourceName:i}=this;return new g({workspaceId:e,gdbVersion:t,dataSourceName:i})}};var f,j;(0,o._)([(0,p.J)({table:"table"})],C.prototype,"type",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],C.prototype,"workspaceId",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],C.prototype,"gdbVersion",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],C.prototype,"dataSourceName",void 0),C=g=(0,o._)([(0,d.j)("esri.layers.support.source.TableDataSource")],C);const T=(0,s.w)()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});let F=f=class extends n.wq{constructor(e){super(e),this.type="join-table"}readLeftTableSource(e,t,i){return x()(e,t,i)}castLeftTableSource(e){return(0,c.N7)(M(),e)}readRightTableSource(e,t,i){return x()(e,t,i)}castRightTableSource(e){return(0,c.N7)(M(),e)}clone(){const{leftTableKey:e,rightTableKey:t,leftTableSource:i,rightTableSource:r,joinType:o}=this,s={leftTableKey:e,rightTableKey:t,leftTableSource:i?.clone()??void 0,rightTableSource:r?.clone()??void 0,joinType:o};return new f(s)}};(0,o._)([(0,p.J)({joinTable:"join-table"})],F.prototype,"type",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],F.prototype,"leftTableKey",void 0),(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],F.prototype,"rightTableKey",void 0),(0,o._)([(0,a.Cb)({json:{write:!0}})],F.prototype,"leftTableSource",void 0),(0,o._)([(0,u.r)("leftTableSource")],F.prototype,"readLeftTableSource",null),(0,o._)([(0,l.p)("leftTableSource")],F.prototype,"castLeftTableSource",null),(0,o._)([(0,a.Cb)({json:{write:!0}})],F.prototype,"rightTableSource",void 0),(0,o._)([(0,u.r)("rightTableSource")],F.prototype,"readRightTableSource",null),(0,o._)([(0,l.p)("rightTableSource")],F.prototype,"castRightTableSource",null),(0,o._)([(0,p.J)(T)],F.prototype,"joinType",void 0),F=f=(0,o._)([(0,d.j)("esri.layers.support.source.JoinTableDataSource")],F);let R=null;function x(){return R||(R=(0,y.d)({types:M()})),R}let P=null;function M(){return P||(P={key:"type",base:null,typeMap:{"data-layer":D,"map-layer":m.R}}),P}const q={key:"type",base:null,typeMap:{"join-table":F,"query-table":v,raster:S,table:C}};let D=j=class extends n.wq{constructor(e){super(e),this.type="data-layer"}clone(){const{fields:e,dataSource:t}=this;return new j({fields:e,dataSource:t})}};(0,o._)([(0,p.J)({dataLayer:"data-layer"})],D.prototype,"type",void 0),(0,o._)([(0,a.Cb)({type:[h.Z],json:{write:!0}})],D.prototype,"fields",void 0),(0,o._)([(0,a.Cb)({types:q,json:{write:!0}})],D.prototype,"dataSource",void 0),D=j=(0,o._)([(0,d.j)("esri.layers.support.source.DataLayerSource")],D),D.from=(0,c.se)(D)},42843:(e,t,i)=>{i.d(t,{R:()=>u});var r,o=i(43697),s=i(96674),n=i(5600),a=i(75215),l=(i(67676),i(36030)),p=i(52011);let u=r=class extends s.wq{constructor(e){super(e),this.type="map-layer"}clone(){const{mapLayerId:e,gdbVersion:t}=this;return new r({mapLayerId:e,gdbVersion:t})}};(0,o._)([(0,l.J)({mapLayer:"map-layer"})],u.prototype,"type",void 0),(0,o._)([(0,n.Cb)({type:a.z8,json:{write:!0}})],u.prototype,"mapLayerId",void 0),(0,o._)([(0,n.Cb)({type:String,json:{write:!0}})],u.prototype,"gdbVersion",void 0),u=r=(0,o._)([(0,p.j)("esri.layers.support.source.MapLayerSource")],u)},6388:(e,t,i)=>{i.d(t,{Z:()=>y});var r,o=i(43697),s=(i(66577),i(35454)),n=i(96674),a=i(22974),l=i(5600),p=(i(75215),i(52011)),u=i(6570);const d=new s.X({upperLeft:"upper-left",lowerLeft:"lower-left"});let c=r=class extends n.wq{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new r((0,a.d9)({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};(0,o._)([(0,l.Cb)({type:u.Z,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],c.prototype,"extent",void 0),(0,o._)([(0,l.Cb)({type:["view","edit"],json:{write:!0}})],c.prototype,"mode",void 0),(0,o._)([(0,l.Cb)({type:String,json:{read:d.read,write:d.write}})],c.prototype,"originPosition",void 0),(0,o._)([(0,l.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],c.prototype,"tolerance",void 0),c=r=(0,o._)([(0,p.j)("esri.rest.support.QuantizationParameters")],c);const y=c},14165:(e,t,i)=>{i.d(t,{Z:()=>P});var r=i(43697),o=i(66577),s=i(92835),n=i(35454),a=i(96674),l=i(22974),p=i(70586),u=i(5600),d=i(90578),c=i(36030),y=i(52011),h=i(30556),m=i(75215),b=i(33955),w=i(10158),v=i(2368);i(67676);let _=class extends((0,v.J)(a.wq)){constructor(e){super(e),this.onFields=null,this.operator=null,this.searchTerm=null,this.searchType=null}};(0,r._)([(0,u.Cb)({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:(0,p.pC)(this.onFields)&&this.onFields.length>0}}}}})],_.prototype,"onFields",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],_.prototype,"operator",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],_.prototype,"searchTerm",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],_.prototype,"searchType",void 0),_=(0,r._)([(0,y.j)("esri.rest.support.FullTextSearch")],_);const S=_;var g,C=i(6388),f=i(58539),j=i(82971),T=i(94139);const F=new n.X({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),R=new n.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let x=g=class extends a.wq{static from(e){return(0,m.TJ)(g,e)}constructor(e){super(e),this.aggregateIds=null,this.cacheHint=void 0,this.compactGeometryEnabled=!1,this.datumTransformation=null,this.defaultSpatialReferenceEnabled=!1,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.where=null}castDatumTransformation(e){return"number"==typeof e||"object"==typeof e?e:null}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeParameterValues(e,t){if(e){const i={};for(const t in e){const r=e[t];Array.isArray(r)?i[t]=r.map((e=>e instanceof Date?e.getTime():e)):r instanceof Date?i[t]=r.getTime():i[t]=r}t.parameterValues=i}}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,t.where="1=1"}writeWhere(e,t){t.where=e||"1=1"}clone(){return new g((0,l.d9)({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:(0,p.pC)(this.historicMoment)?new Date(this.historicMoment.getTime()):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,where:this.where}))}};x.MAX_MAX_RECORD_COUNT_FACTOR=5,(0,r._)([(0,u.Cb)({json:{write:!0}})],x.prototype,"aggregateIds",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],x.prototype,"cacheHint",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"compactGeometryEnabled",void 0),(0,r._)([(0,u.Cb)({json:{write:!0}})],x.prototype,"datumTransformation",void 0),(0,r._)([(0,d.p)("datumTransformation")],x.prototype,"castDatumTransformation",null),(0,r._)([(0,u.Cb)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"defaultSpatialReferenceEnabled",void 0),(0,r._)([(0,u.Cb)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],x.prototype,"distance",void 0),(0,r._)([(0,u.Cb)({type:w.n,json:{write:!0}})],x.prototype,"dynamicDataSource",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],x.prototype,"formatOf3DObjects",void 0),(0,r._)([(0,u.Cb)({type:[S],json:{write:{enabled:!0,overridePolicy(){return{enabled:(0,p.pC)(this.fullText)&&this.fullText.length>0}}}}})],x.prototype,"fullText",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],x.prototype,"gdbVersion",void 0),(0,r._)([(0,u.Cb)({types:o.qM,json:{read:b.im,write:!0}})],x.prototype,"geometry",void 0),(0,r._)([(0,u.Cb)({type:Number,json:{write:!0}})],x.prototype,"geometryPrecision",void 0),(0,r._)([(0,u.Cb)({type:[String],json:{write:!0}})],x.prototype,"groupByFieldsForStatistics",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],x.prototype,"having",void 0),(0,r._)([(0,u.Cb)({type:Date})],x.prototype,"historicMoment",void 0),(0,r._)([(0,h.c)("historicMoment")],x.prototype,"writeHistoricMoment",null),(0,r._)([(0,u.Cb)({type:Number,json:{write:!0}})],x.prototype,"maxAllowableOffset",void 0),(0,r._)([(0,u.Cb)({type:Number,cast:e=>e<1?1:e>g.MAX_MAX_RECORD_COUNT_FACTOR?g.MAX_MAX_RECORD_COUNT_FACTOR:e,json:{write:{overridePolicy:e=>({enabled:e>1})}}})],x.prototype,"maxRecordCountFactor",void 0),(0,r._)([(0,u.Cb)({type:["xyFootprint"],json:{write:!0}})],x.prototype,"multipatchOption",void 0),(0,r._)([(0,u.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],x.prototype,"num",void 0),(0,r._)([(0,u.Cb)({json:{write:!0}})],x.prototype,"objectIds",void 0),(0,r._)([(0,u.Cb)({type:[String],json:{write:!0}})],x.prototype,"orderByFields",void 0),(0,r._)([(0,u.Cb)({type:[String],json:{write:!0}})],x.prototype,"outFields",void 0),(0,r._)([(0,u.Cb)({type:j.Z,json:{name:"outSR",write:!0}})],x.prototype,"outSpatialReference",void 0),(0,r._)([(0,u.Cb)({type:[f.Z],json:{write:{enabled:!0,overridePolicy(){return{enabled:(0,p.pC)(this.outStatistics)&&this.outStatistics.length>0}}}}})],x.prototype,"outStatistics",void 0),(0,r._)([(0,u.Cb)({json:{write:!0}})],x.prototype,"parameterValues",void 0),(0,r._)([(0,h.c)("parameterValues")],x.prototype,"writeParameterValues",null),(0,r._)([(0,u.Cb)({type:T.Z,json:{write:!0}})],x.prototype,"pixelSize",void 0),(0,r._)([(0,u.Cb)({type:C.Z,json:{write:!0}})],x.prototype,"quantizationParameters",void 0),(0,r._)([(0,u.Cb)({type:[Object],json:{write:!0}})],x.prototype,"rangeValues",void 0),(0,r._)([(0,u.Cb)({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],x.prototype,"relationParameter",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],x.prototype,"resultType",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"returnCentroid",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"returnDistinctValues",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{default:!0,write:!0}})],x.prototype,"returnExceededLimitFeatures",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:!0}})],x.prototype,"returnGeometry",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"returnQueryGeometry",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"returnM",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],x.prototype,"returnZ",void 0),(0,r._)([(0,u.Cb)({type:j.Z,json:{write:!0}})],x.prototype,"sourceSpatialReference",void 0),(0,r._)([(0,c.J)(F,{ignoreUnknown:!1,name:"spatialRel"})],x.prototype,"spatialRelationship",void 0),(0,r._)([(0,u.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],x.prototype,"start",void 0),(0,r._)([(0,h.c)("start"),(0,h.c)("num")],x.prototype,"writeStart",null),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],x.prototype,"sqlFormat",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:!0}})],x.prototype,"text",void 0),(0,r._)([(0,u.Cb)({type:s.Z,json:{write:!0}})],x.prototype,"timeExtent",void 0),(0,r._)([(0,u.Cb)({type:Boolean,json:{default:!1,write:!0}})],x.prototype,"timeReferenceUnknownClient",void 0),(0,r._)([(0,c.J)(R,{ignoreUnknown:!1}),(0,u.Cb)({json:{write:{overridePolicy(e){return{enabled:!!e&&null!=this.distance&&this.distance>0}}}}})],x.prototype,"units",void 0),(0,r._)([(0,u.Cb)({type:String,json:{write:{overridePolicy(e){return{enabled:null!=e||null!=this.start&&this.start>0}}}}})],x.prototype,"where",void 0),(0,r._)([(0,h.c)("where")],x.prototype,"writeWhere",null),x=g=(0,r._)([(0,y.j)("esri.rest.support.Query")],x);const P=x},58539:(e,t,i)=>{i.d(t,{Z:()=>y});var r,o=i(43697),s=i(35454),n=i(96674),a=i(22974),l=i(5600),p=(i(75215),i(52011)),u=i(30556);const d=new s.X({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"});let c=r=class extends n.wq{constructor(e){super(e),this.maxPointCount=void 0,this.maxRecordCount=void 0,this.maxVertexCount=void 0,this.onStatisticField=null,this.outStatisticFieldName=null,this.statisticType=null,this.statisticParameters=null}writeStatisticParameters(e,t){"percentile-continuous"!==this.statisticType&&"percentile-discrete"!==this.statisticType||(t.statisticParameters=(0,a.d9)(e))}clone(){return new r({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:(0,a.d9)(this.statisticParameters)})}};(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],c.prototype,"maxPointCount",void 0),(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],c.prototype,"maxRecordCount",void 0),(0,o._)([(0,l.Cb)({type:Number,json:{write:!0}})],c.prototype,"maxVertexCount",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"onStatisticField",void 0),(0,o._)([(0,l.Cb)({type:String,json:{write:!0}})],c.prototype,"outStatisticFieldName",void 0),(0,o._)([(0,l.Cb)({type:String,json:{read:{source:"statisticType",reader:d.read},write:{target:"statisticType",writer:d.write}}})],c.prototype,"statisticType",void 0),(0,o._)([(0,l.Cb)({type:Object})],c.prototype,"statisticParameters",void 0),(0,o._)([(0,u.c)("statisticParameters")],c.prototype,"writeStatisticParameters",null),c=r=(0,o._)([(0,p.j)("esri.rest.support.StatisticDefinition")],c);const y=c}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1984],{92835:(t,e,n)=>{n.d(e,{Z:()=>p});var s,i=n(43697),r=n(96674),o=n(70586),a=n(35463),l=n(5600),h=(n(75215),n(67676),n(71715)),c=n(52011),u=n(30556);let d=s=class extends r.wq{static get allTime(){return f}static get empty(){return m}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?t.getTime():null}get isAllTime(){return this.equals(s.allTime)}get isEmpty(){return this.equals(s.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?t.getTime():null}clone(){return new s({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=(0,o.pC)(this.start)?this.start.getTime():this.start,n=(0,o.pC)(this.end)?this.end.getTime():this.end,s=(0,o.pC)(t.start)?t.start.getTime():t.start,i=(0,o.pC)(t.end)?t.end.getTime():t.end;return e===s&&n===i}expandTo(t){if(this.isEmpty||this.isAllTime)return this.clone();const e=(0,o.yw)(this.start,(e=>(0,a.JE)(e,t))),n=(0,o.yw)(this.end,(e=>{const n=(0,a.JE)(e,t);return e.getTime()===n.getTime()?n:(0,a.Nm)(n,1,t)}));return new s({start:e,end:n})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return s.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=(0,o.R2)(this.start,-1/0,(t=>t.getTime())),n=(0,o.R2)(this.end,1/0,(t=>t.getTime())),i=(0,o.R2)(t.start,-1/0,(t=>t.getTime())),r=(0,o.R2)(t.end,1/0,(t=>t.getTime()));let a,l;if(i>=e&&i<=n?a=i:e>=i&&e<=r&&(a=e),n>=i&&n<=r?l=n:r>=e&&r<=n&&(l=r),null!=a&&null!=l&&!isNaN(a)&&!isNaN(l)){const t=new s;return t.start=a===-1/0?null:new Date(a),t.end=l===1/0?null:new Date(l),t}return s.empty}offset(t,e){if(this.isEmpty||this.isAllTime)return this.clone();const n=new s,{start:i,end:r}=this;return(0,o.pC)(i)&&(n.start=(0,a.Nm)(i,t,e)),(0,o.pC)(r)&&(n.end=(0,a.Nm)(r,t,e)),n}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return f.clone();const e=(0,o.pC)(this.start)&&(0,o.pC)(t.start)?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=(0,o.pC)(this.end)&&(0,o.pC)(t.end)?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new s({start:e,end:n})}};(0,i._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,i._)([(0,h.r)("end")],d.prototype,"readEnd",null),(0,i._)([(0,u.c)("end")],d.prototype,"writeEnd",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,i._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,i._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,i._)([(0,h.r)("start")],d.prototype,"readStart",null),(0,i._)([(0,u.c)("start")],d.prototype,"writeStart",null),d=s=(0,i._)([(0,c.j)("esri.TimeExtent")],d);const f=new d,m=new d({start:void 0,end:void 0}),p=d},5732:(t,e,n)=>{n.d(e,{c:()=>s});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}},21787:(t,e,n)=>{n.d(e,{a:()=>l,b:()=>c,e:()=>a,f:()=>i,i:()=>d,m:()=>h,s:()=>r,t:()=>o});var s=n(46851);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function r(t,e,n,s,i,r,o,a,l,h){return t[0]=e,t[1]=n,t[2]=s,t[3]=i,t[4]=r,t[5]=o,t[6]=a,t[7]=l,t[8]=h,t}function o(t,e){if(t===e){const n=e[1],s=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=s,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){const n=e[0],s=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],h=e[7],c=e[8],u=c*o-a*h,d=-c*r+a*l,f=h*r-o*l;let m=n*u+s*d+i*f;return m?(m=1/m,t[0]=u*m,t[1]=(-c*s+i*h)*m,t[2]=(a*s-i*o)*m,t[3]=d*m,t[4]=(c*n-i*l)*m,t[5]=(-a*n+i*r)*m,t[6]=f*m,t[7]=(-h*n+s*l)*m,t[8]=(o*n-s*r)*m,t):null}function l(t,e){const n=e[0],s=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],h=e[7],c=e[8];return t[0]=o*c-a*h,t[1]=i*h-s*c,t[2]=s*a-i*o,t[3]=a*l-r*c,t[4]=n*c-i*l,t[5]=i*r-n*a,t[6]=r*h-o*l,t[7]=s*l-n*h,t[8]=n*o-s*r,t}function h(t,e,n){const s=e[0],i=e[1],r=e[2],o=e[3],a=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=n[0],f=n[1],m=n[2],p=n[3],_=n[4],g=n[5],y=n[6],x=n[7],v=n[8];return t[0]=d*s+f*o+m*h,t[1]=d*i+f*a+m*c,t[2]=d*r+f*l+m*u,t[3]=p*s+_*o+g*h,t[4]=p*i+_*a+g*c,t[5]=p*r+_*l+g*u,t[6]=y*s+x*o+v*h,t[7]=y*i+x*a+v*c,t[8]=y*r+x*l+v*u,t}function c(t,e){const n=e[0],s=e[1],i=e[2],r=e[3],o=e[4],a=e[5],l=e[6],h=e[7],c=e[8],u=e[9],d=e[10],f=e[11],m=e[12],p=e[13],_=e[14],g=e[15],y=n*a-s*o,x=n*l-i*o,v=n*h-r*o,b=s*l-i*a,M=s*h-r*a,w=i*h-r*l,C=c*p-u*m,P=c*_-d*m,E=c*g-f*m,R=u*_-d*p,I=u*g-f*p,O=d*g-f*_;let S=y*O-x*I+v*R+b*E-M*P+w*C;return S?(S=1/S,t[0]=(a*O-l*I+h*R)*S,t[1]=(l*E-o*O-h*P)*S,t[2]=(o*I-a*E+h*C)*S,t[3]=(i*I-s*O-r*R)*S,t[4]=(n*O-i*E+r*P)*S,t[5]=(s*E-n*I-r*C)*S,t[6]=(p*w-_*M+g*b)*S,t[7]=(_*v-m*w-g*x)*S,t[8]=(m*M-p*v+g*y)*S,t):null}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function d(t){const e=(0,s.g)(),n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],l=t[5],h=t[6],c=t[7],u=t[8];return Math.abs(1-(n*n+o*o+h*h))<=e&&Math.abs(1-(i*i+a*a+c*c))<=e&&Math.abs(1-(r*r+l*l+u*u))<=e}const f=h,m=u;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],n=t[1],s=t[2],i=t[3],r=t[4],o=t[5],a=t[6],l=t[7],h=t[8];return e*(h*r-o*l)+n*(-h*i+o*a)+s*(l*i-r*a)},equals:function(t,e){const n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],l=t[5],h=t[6],c=t[7],u=t[8],d=e[0],f=e[1],m=e[2],p=e[3],_=e[4],g=e[5],y=e[6],x=e[7],v=e[8],b=(0,s.g)();return Math.abs(n-d)<=b*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(i-f)<=b*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(r-m)<=b*Math.max(1,Math.abs(r),Math.abs(m))&&Math.abs(o-p)<=b*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-_)<=b*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(l-g)<=b*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(h-y)<=b*Math.max(1,Math.abs(h),Math.abs(y))&&Math.abs(c-x)<=b*Math.max(1,Math.abs(c),Math.abs(x))&&Math.abs(u-v)<=b*Math.max(1,Math.abs(u),Math.abs(v))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:i,fromQuat:function(t,e){const n=e[0],s=e[1],i=e[2],r=e[3],o=n+n,a=s+s,l=i+i,h=n*o,c=s*o,u=s*a,d=i*o,f=i*a,m=i*l,p=r*o,_=r*a,g=r*l;return t[0]=1-u-m,t[3]=c-g,t[6]=d+_,t[1]=c+g,t[4]=1-h-m,t[7]=f-p,t[2]=d-_,t[5]=f+p,t[8]=1-h-u,t},fromRotation:function(t,e){const n=Math.sin(e),s=Math.cos(e);return t[0]=s,t[1]=n,t[2]=0,t[3]=-n,t[4]=s,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:d,mul:f,multiply:h,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,s){return t[0]=e[0]+n[0]*s,t[1]=e[1]+n[1]*s,t[2]=e[2]+n[2]*s,t[3]=e[3]+n[3]*s,t[4]=e[4]+n[4]*s,t[5]=e[5]+n[5]*s,t[6]=e[6]+n[6]*s,t[7]=e[7]+n[7]*s,t[8]=e[8]+n[8]*s,t},normalFromMat4:c,normalFromMat4Legacy:function(t,e){const n=e[0],s=e[1],i=e[2],r=e[4],o=e[5],a=e[6],l=e[8],h=e[9],c=e[10],u=c*o-a*h,d=-c*r+a*l,f=h*r-o*l,m=n*u+s*d+i*f;if(!m)return null;const p=1/m;return t[0]=u*p,t[1]=(-c*s+i*h)*p,t[2]=(a*s-i*o)*p,t[3]=d*p,t[4]=(c*n-i*l)*p,t[5]=(-a*n+i*r)*p,t[6]=f*p,t[7]=(-h*n+s*l)*p,t[8]=(o*n-s*r)*p,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const s=e[0],i=e[1],r=e[2],o=e[3],a=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=Math.sin(n),f=Math.cos(n);return t[0]=f*s+d*o,t[1]=f*i+d*a,t[2]=f*r+d*l,t[3]=f*o-d*s,t[4]=f*a-d*i,t[5]=f*l-d*r,t[6]=h,t[7]=c,t[8]=u,t},scale:function(t,e,n){const s=n[0],i=n[1],r=n[2];return t[0]=s*e[0],t[1]=s*e[1],t[2]=s*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=r*e[6],t[7]=r*e[7],t[8]=r*e[8],t},scaleByVec2:function(t,e,n){const s=n[0],i=n[1];return t[0]=s*e[0],t[1]=s*e[1],t[2]=s*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t},set:r,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:u,translate:function(t,e,n){const s=e[0],i=e[1],r=e[2],o=e[3],a=e[4],l=e[5],h=e[6],c=e[7],u=e[8],d=n[0],f=n[1];return t[0]=s,t[1]=i,t[2]=r,t[3]=o,t[4]=a,t[5]=l,t[6]=d*s+f*o+h,t[7]=d*i+f*a+c,t[8]=d*r+f*l+u,t},transpose:o},Symbol.toStringTag,{value:"Module"}))},46521:(t,e,n)=>{function s(){return[1,0,0,0,1,0,0,0,1]}function i(t,e,n,s,i,r,o,a,l){return[t,e,n,s,i,r,o,a,l]}function r(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>r,c:()=>s,f:()=>i}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:s,createView:r,fromValues:i},Symbol.toStringTag,{value:"Module"}))},88764:(t,e,n)=>{n.d(e,{q:()=>l});var s,i,r,o={},a={get exports(){return o},set exports(t){o=t}};s=a,i=function(){function t(n,s,i,r,o){for(;r>i;){if(r-i>600){var a=r-i+1,l=s-i+1,h=Math.log(a),c=.5*Math.exp(2*h/3),u=.5*Math.sqrt(h*c*(a-c)/a)*(l-a/2<0?-1:1);t(n,s,Math.max(i,Math.floor(s-l*c/a+u)),Math.min(r,Math.floor(s+(a-l)*c/a+u)),o)}var d=n[s],f=i,m=r;for(e(n,i,s),o(n[r],d)>0&&e(n,i,r);f<m;){for(e(n,f,m),f++,m--;o(n[f],d)<0;)f++;for(;o(n[m],d)>0;)m--}0===o(n[i],d)?e(n,i,m):e(n,++m,r),m<=s&&(i=m+1),s<=m&&(r=m-1)}}function e(t,e,n){var s=t[e];t[e]=t[n],t[n]=s}function n(t,e){return t<e?-1:t>e?1:0}return function(e,s,i,r,o){t(e,s,i||0,r||e.length-1,o||n)}},void 0!==(r=i())&&(s.exports=r);const l=o},4307:(t,e,n)=>{n.d(e,{d:()=>l,l:()=>d,r:()=>m,s:()=>i,t:()=>f});var s=n(46851);function i(t,e,n){return t[0]=e,t[1]=n,t}function r(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function o(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function a(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function l(t,e){const n=e[0]-t[0],s=e[1]-t[1];return Math.sqrt(n*n+s*s)}function h(t,e){const n=e[0]-t[0],s=e[1]-t[1];return n*n+s*s}function c(t){const e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function u(t){const e=t[0],n=t[1];return e*e+n*n}function d(t,e,n,s){const i=e[0],r=e[1];return t[0]=i+s*(n[0]-i),t[1]=r+s*(n[1]-r),t}function f(t,e,n){const s=e[0],i=e[1];return t[0]=n[0]*s+n[2]*i+n[4],t[1]=n[1]*s+n[3]*i+n[5],t}function m(t,e,n,s){const i=e[0]-n[0],r=e[1]-n[1],o=Math.sin(s),a=Math.cos(s);return t[0]=i*a-r*o+n[0],t[1]=i*o+r*a+n[1],t}const p=c,_=r,g=o,y=a,x=l,v=h,b=u;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},angle:function(t,e){const n=t[0],s=t[1],i=e[0],r=e[1];let o=n*n+s*s;o>0&&(o=1/Math.sqrt(o));let a=i*i+r*r;a>0&&(a=1/Math.sqrt(a));const l=(n*i+s*r)*o*a;return l>1?0:l<-1?Math.PI:Math.acos(l)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,n){const s=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=s,t},dist:x,distance:l,div:y,divide:a,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const n=t[0],i=t[1],r=e[0],o=e[1],a=(0,s.g)();return Math.abs(n-r)<=a*Math.max(1,Math.abs(n),Math.abs(r))&&Math.abs(i-o)<=a*Math.max(1,Math.abs(i),Math.abs(o))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:p,length:c,lerp:d,max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},mul:g,multiply:o,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const n=e[0],s=e[1];let i=n*n+s*s;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t},projectAndScale:function(t,e,n,s,i){let r=e[0]-n[0],o=e[1]-n[1];const a=(s[0]*r+s[1]*o)*(i-1);return r=s[0]*a,o=s[1]*a,t[0]=e[0]+r,t[1]=e[1]+o,t},random:function(t,e){e=e||1;const n=2*(0,s.R)()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},rotate:m,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},scaleAndAdd:function(t,e,n,s){return t[0]=e[0]+n[0]*s,t[1]=e[1]+n[1]*s,t},set:i,sqrDist:v,sqrLen:b,squaredDistance:h,squaredLength:u,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:_,subtract:r,transformMat2:function(t,e,n){const s=e[0],i=e[1];return t[0]=n[0]*s+n[2]*i,t[1]=n[1]*s+n[3]*i,t},transformMat2d:f,transformMat3:function(t,e,n){const s=e[0],i=e[1];return t[0]=n[0]*s+n[3]*i+n[6],t[1]=n[1]*s+n[4]*i+n[7],t},transformMat4:function(t,e,n){const s=e[0],i=e[1];return t[0]=n[0]*s+n[4]*i+n[12],t[1]=n[1]*s+n[5]*i+n[13],t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function s(){return[0,0]}function i(t,e){return[t,e]}function r(t,e){return new Float64Array(t,e,2)}function o(){return i(1,1)}function a(){return i(1,0)}function l(){return i(0,1)}n.d(e,{Z:()=>h,a:()=>s,c:()=>r,f:()=>i});const h=[0,0],c=o(),u=a(),d=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:u,UNIT_Y:d,ZEROS:h,clone:function(t){return[t[0],t[1]]},create:s,createView:r,fromArray:function(t){const e=[0,0],n=Math.min(2,t.length);for(let s=0;s<n;++s)e[s]=t[s];return e},fromValues:i,ones:o,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},2368:(t,e,n)=>{n.d(e,{J:()=>c,j:()=>u});var s=n(43697),i=n(15923),r=(n(80442),n(22974)),o=(n(92604),n(70586)),a=n(31263),l=n(1153),h=n(52011);const c=t=>{let e=class extends t{clone(){const t=(0,o.s3)((0,l.vw)(this),"unable to clone instance of non-accessor class"),e=t.metadatas,n=t.store,s={},i=new Map;for(const t in e){const o=e[t],l=n?.originOf(t),h=o.clonable;if(o.readOnly||!1===h||l!==a.s3.USER&&l!==a.s3.DEFAULTS&&l!==a.s3.WEB_MAP&&l!==a.s3.WEB_SCENE)continue;const c=this[t];let u=null;u="function"==typeof h?h(c):"reference"===h?c:(0,r.Vo)(c),null!=c&&null==u||(l===a.s3.DEFAULTS?i.set(t,u):s[t]=u)}const h=new(0,Object.getPrototypeOf(this).constructor)(s);if(i.size){const t=(0,l.vw)(h)?.store;if(t)for(const[e,n]of i)t.set(e,n,a.s3.DEFAULTS)}return h}};return e=(0,s._)([(0,h.j)("esri.core.Clonable")],e),e};let u=class extends(c(i.Z)){};u=(0,s._)([(0,h.j)("esri.core.Clonable")],u)},46791:(t,e,n)=>{n.d(e,{Z:()=>S});var s,i=n(43697),r=n(3894),o=n(32448),a=n(22974),l=n(70586),h=n(71143);!function(t){t[t.ADD=1]="ADD",t[t.REMOVE=2]="REMOVE",t[t.MOVE=4]="MOVE"}(s||(s={}));var c,u=n(1654),d=n(5600),f=n(75215),m=n(52421),p=n(52011),_=n(58971),g=n(10661);const y=new h.Z(class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}},void 0,(t=>{t.item=null,t.target=null,t.defaultPrevented=!1,t.cancellable=!1})),x=()=>{};function v(t){return t?t instanceof O?t.toArray():t.length?Array.prototype.slice.apply(t):[]:[]}function b(t){if(t&&t.length)return t[0]}function M(t,e,n,s){const i=Math.min(t.length-n,e.length-s);let r=0;for(;r<i&&t[n+r]===e[s+r];)r++;return r}function w(t,e,n,s){e&&e.forEach(((e,i,r)=>{t.push(e),w(t,n.call(s,e,i,r),n,s)}))}const C=new Set,P=new Set,E=new Set,R=new Map;let I=0,O=c=class extends o.Z.EventedAccessor{static isCollection(t){return null!=t&&t instanceof c}constructor(t){super(t),this._chgListeners=[],this._notifications=null,this._timer=null,this._observable=new g.s,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:I++})}normalizeCtorArgs(t){return t?Array.isArray(t)||t instanceof c?{items:t}:t:{}}destroy(){this.removeAll()}*[Symbol.iterator](){yield*this.items}get items(){return(0,_.it)(this._observable),this._items}set items(t){this._emitBeforeChanges(s.ADD)||(this._splice(0,this.length,v(t)),this._emitAfterChanges(s.ADD))}hasEventListener(t){return"change"===t?this._chgListeners.length>0:this._emitter.hasEventListener(t)}on(t,e){if("change"===t){const t=this._chgListeners,n={removed:!1,callback:e};return t.push(n),this._notifications&&this._notifications.push({listeners:t.slice(),items:this._items.slice(),changes:[]}),{remove(){this.remove=x,n.removed=!0,t.splice(t.indexOf(n),1)}}}return this._emitter.on(t,e)}once(t,e){const n=this.on(t,e);return{remove(){n.remove()}}}add(t,e){if((0,_.it)(this._observable),this._emitBeforeChanges(s.ADD))return this;const n=this.getNextIndex(e??null);return this._splice(n,0,[t]),this._emitAfterChanges(s.ADD),this}addMany(t,e=this._items.length){if((0,_.it)(this._observable),!t||!t.length)return this;if(this._emitBeforeChanges(s.ADD))return this;const n=this.getNextIndex(e);return this._splice(n,0,v(t)),this._emitAfterChanges(s.ADD),this}at(t){if((0,_.it)(this._observable),(t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this._items[t]}removeAll(){if((0,_.it)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return[];const t=this._splice(0,this.length)||[];return this._emitAfterChanges(s.REMOVE),t}clone(){return(0,_.it)(this._observable),this._createNewInstance({items:this._items.map(a.d9)})}concat(...t){(0,_.it)(this._observable);const e=t.map(v);return this._createNewInstance({items:this._items.concat(...e)})}drain(t,e){if((0,_.it)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return;const n=(0,l.j0)(this._splice(0,this.length)),i=n.length;for(let s=0;s<i;s++)t.call(e,n[s],s,n);this._emitAfterChanges(s.REMOVE)}every(t,e){return(0,_.it)(this._observable),this._items.every(t,e)}filter(t,e){let n;return(0,_.it)(this._observable),n=2===arguments.length?this._items.filter(t,e):this._items.filter(t),this._createNewInstance({items:n})}find(t,e){return(0,_.it)(this._observable),this._items.find(t,e)}findIndex(t,e){return(0,_.it)(this._observable),this._items.findIndex(t,e)}flatten(t,e){(0,_.it)(this._observable);const n=[];return w(n,this,t,e),new c(n)}forEach(t,e){return(0,_.it)(this._observable),this._items.forEach(t,e)}getItemAt(t){return(0,_.it)(this._observable),this._items[t]}getNextIndex(t){(0,_.it)(this._observable);const e=this.length;return(t=t??e)<0?t=0:t>e&&(t=e),t}includes(t,e=0){return(0,_.it)(this._observable),this._items.includes(t,e)}indexOf(t,e=0){return(0,_.it)(this._observable),this._items.indexOf(t,e)}join(t=","){return(0,_.it)(this._observable),this._items.join(t)}lastIndexOf(t,e=this.length-1){return(0,_.it)(this._observable),this._items.lastIndexOf(t,e)}map(t,e){(0,_.it)(this._observable);const n=this._items.map(t,e);return new c({items:n})}reorder(t,e=this.length-1){(0,_.it)(this._observable);const n=this.indexOf(t);if(-1!==n){if(e<0?e=0:e>=this.length&&(e=this.length-1),n!==e){if(this._emitBeforeChanges(s.MOVE))return t;this._splice(n,1),this._splice(e,0,[t]),this._emitAfterChanges(s.MOVE)}return t}}pop(){if((0,_.it)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return;const t=b(this._splice(this.length-1,1));return this._emitAfterChanges(s.REMOVE),t}push(...t){return(0,_.it)(this._observable),this._emitBeforeChanges(s.ADD)||(this._splice(this.length,0,t),this._emitAfterChanges(s.ADD)),this.length}reduce(t,e){(0,_.it)(this._observable);const n=this._items;return 2===arguments.length?n.reduce(t,e):n.reduce(t)}reduceRight(t,e){(0,_.it)(this._observable);const n=this._items;return 2===arguments.length?n.reduceRight(t,e):n.reduceRight(t)}remove(t){return(0,_.it)(this._observable),this.removeAt(this.indexOf(t))}removeAt(t){if((0,_.it)(this._observable),t<0||t>=this.length||this._emitBeforeChanges(s.REMOVE))return;const e=b(this._splice(t,1));return this._emitAfterChanges(s.REMOVE),e}removeMany(t){if((0,_.it)(this._observable),!t||!t.length||this._emitBeforeChanges(s.REMOVE))return[];const e=t instanceof c?t.toArray():t,n=this._items,i=[],r=e.length;for(let t=0;t<r;t++){const s=e[t],r=n.indexOf(s);if(r>-1){const s=1+M(e,n,t+1,r+1),o=this._splice(r,s);o&&o.length>0&&i.push.apply(i,o),t+=s-1}}return this._emitAfterChanges(s.REMOVE),i}reverse(){if((0,_.it)(this._observable),this._emitBeforeChanges(s.MOVE))return this;const t=this._splice(0,this.length);return t&&(t.reverse(),this._splice(0,0,t)),this._emitAfterChanges(s.MOVE),this}shift(){if((0,_.it)(this._observable),!this.length||this._emitBeforeChanges(s.REMOVE))return;const t=b(this._splice(0,1));return this._emitAfterChanges(s.REMOVE),t}slice(t=0,e=this.length){return(0,_.it)(this._observable),this._createNewInstance({items:this._items.slice(t,e)})}some(t,e){return(0,_.it)(this._observable),this._items.some(t,e)}sort(t){if((0,_.it)(this._observable),!this.length||this._emitBeforeChanges(s.MOVE))return this;const e=(0,l.j0)(this._splice(0,this.length));return arguments.length?e.sort(t):e.sort(),this._splice(0,0,e),this._emitAfterChanges(s.MOVE),this}splice(t,e,...n){(0,_.it)(this._observable);const i=(e?s.REMOVE:0)|(n.length?s.ADD:0);if(this._emitBeforeChanges(i))return[];const r=this._splice(t,e,n)||[];return this._emitAfterChanges(i),r}toArray(){return(0,_.it)(this._observable),this._items.slice()}toJSON(){return(0,_.it)(this._observable),this.toArray()}toLocaleString(){return(0,_.it)(this._observable),this._items.toLocaleString()}toString(){return(0,_.it)(this._observable),this._items.toString()}unshift(...t){return(0,_.it)(this._observable),!t.length||this._emitBeforeChanges(s.ADD)||(this._splice(0,0,t),this._emitAfterChanges(s.ADD)),this.length}_createNewInstance(t){return new this.constructor(t)}_splice(t,e,n){const s=this._items,i=this.itemType;let r,o;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._timer=(0,u.Os)((()=>this._dispatchChange()))),e){if(o=s.splice(t,e),this.hasEventListener("before-remove")){const e=y.acquire();e.target=this,e.cancellable=!0;for(let n=0,i=o.length;n<i;n++)r=o[n],e.reset(r),this.emit("before-remove",e),e.defaultPrevented&&(o.splice(n,1),s.splice(t,0,r),t+=1,n-=1,i-=1);y.release(e)}if(this.length=this._items.length,this.hasEventListener("after-remove")){const t=y.acquire();t.target=this,t.cancellable=!1;const e=o.length;for(let n=0;n<e;n++)t.reset(o[n]),this.emit("after-remove",t);y.release(t)}}if(n&&n.length){if(i){const t=[];for(const e of n){const n=i.ensureType(e);null==n&&null!=e||t.push(n)}n=t}const e=this.hasEventListener("before-add"),r=this.hasEventListener("after-add"),o=t===this.length;if(e||r){const i=y.acquire();i.target=this,i.cancellable=!0;const a=y.acquire();a.target=this,a.cancellable=!1;for(const l of n)e?(i.reset(l),this.emit("before-add",i),i.defaultPrevented||(o?s.push(l):s.splice(t++,0,l),this._set("length",s.length),r&&(a.reset(l),this.emit("after-add",a)))):(o?s.push(l):s.splice(t++,0,l),this._set("length",s.length),a.reset(l),this.emit("after-add",a));y.release(a),y.release(i)}else{if(o)for(const t of n)s.push(t);else s.splice(t,0,...n);this._set("length",s.length)}}return(n&&n.length||o&&o.length)&&this._notifyChangeEvent(n,o),o}_emitBeforeChanges(t){let e=!1;if(this.hasEventListener("before-changes")){const n=y.acquire();n.target=this,n.cancellable=!0,n.type=t,this.emit("before-changes",n),e=n.defaultPrevented,y.release(n)}return e}_emitAfterChanges(t){if(this.hasEventListener("after-changes")){const e=y.acquire();e.target=this,e.cancellable=!1,e.type=t,this.emit("after-changes",e),y.release(e)}this._observable.notify()}_notifyChangeEvent(t,e){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:t,removed:e})}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),!this._notifications)return;const t=this._notifications;this._notifications=null;for(const e of t){const t=e.changes;C.clear(),P.clear(),E.clear();for(const{added:e,removed:n}of t){if(e)if(0===E.size&&0===P.size)for(const t of e)C.add(t);else for(const t of e)P.has(t)?(E.add(t),P.delete(t)):E.has(t)||C.add(t);if(n)if(0===E.size&&0===C.size)for(const t of n)P.add(t);else for(const t of n)C.has(t)?C.delete(t):(E.delete(t),P.add(t))}const n=r.Z.acquire();C.forEach((t=>{n.push(t)}));const s=r.Z.acquire();P.forEach((t=>{s.push(t)}));const i=this._items,o=e.items,a=r.Z.acquire();if(E.forEach((t=>{o.indexOf(t)!==i.indexOf(t)&&a.push(t)})),e.listeners&&(n.length||s.length||a.length)){const t={target:this,added:n,removed:s,moved:a},i=e.listeners.length;for(let n=0;n<i;n++){const s=e.listeners[n];s.removed||s.callback.call(this,t)}}r.Z.release(n),r.Z.release(s),r.Z.release(a)}C.clear(),P.clear(),E.clear()}};O.ofType=t=>{if(!t)return c;if(R.has(t))return R.get(t);let e=null;if("function"==typeof t)e=t.prototype.declaredClass;else if(t.base)e=t.base.prototype.declaredClass;else for(const n in t.typeMap){const s=t.typeMap[n].prototype.declaredClass;e?e+=` | ${s}`:e=s}let n=class extends c{};return(0,i._)([(0,m.c)({Type:t,ensureType:"function"==typeof t?(0,f.se)(t):(0,f.N7)(t)})],n.prototype,"itemType",void 0),n=(0,i._)([(0,p.j)(`esri.core.Collection<${e}>`)],n),R.set(t,n),n},(0,i._)([(0,d.Cb)()],O.prototype,"length",void 0),(0,i._)([(0,d.Cb)()],O.prototype,"items",null),O=c=(0,i._)([(0,p.j)("esri.core.Collection")],O);const S=O},3920:(t,e,n)=>{n.d(e,{p:()=>h,r:()=>c});var s=n(43697),i=n(15923),r=n(61247),o=n(5600),a=n(52011),l=n(72762);const h=t=>{let e=class extends t{destroy(){this.destroyed||(this._get("handles")?.destroy(),this._get("updatingHandles")?.destroy())}get handles(){return this._get("handles")||new r.Z}get updatingHandles(){return this._get("updatingHandles")||new l.t}};return(0,s._)([(0,o.Cb)({readOnly:!0})],e.prototype,"handles",null),(0,s._)([(0,o.Cb)({readOnly:!0})],e.prototype,"updatingHandles",null),e=(0,s._)([(0,a.j)("esri.core.HandleOwner")],e),e};let c=class extends(h(i.Z)){};c=(0,s._)([(0,a.j)("esri.core.HandleOwner")],c)},52421:(t,e,n)=>{function s(t){return(e,n)=>{e[n]=t}}n.d(e,{c:()=>s})},70921:(t,e,n)=>{n.d(e,{R:()=>r,Z:()=>i});var s=n(46791);function i(t,e,n=s.Z){return e||(e=new n),e===t||(e.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?e.addMany(t):t&&e.add(t)),e;var i}function r(t){return t}},24133:(t,e,n)=>{n.d(e,{Q:()=>a});var s=n(67676),i=n(70586),r=n(44553),o=n(88764);class a{constructor(t=9,e){this._compareMinX=u,this._compareMinY=d,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),v.prune(),b.prune(),M.prune(),w.prune()}all(t){this._all(this._data,t)}search(t,e){let n=this._data;const s=this._toBBox;if(y(t,n))for(v.clear();n;){for(let i=0,r=n.children.length;i<r;i++){const r=n.children[i],o=n.leaf?s(r):r;y(t,o)&&(n.leaf?e(r):g(t,o)?this._all(r,e):v.push(r))}n=v.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!y(t,e))return!1;for(v.clear();e;){for(let s=0,i=e.children.length;s<i;s++){const i=e.children[s],r=e.leaf?n(i):i;if(y(t,r)){if(e.leaf||g(t,r))return!0;v.push(i)}}e=v.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new E([]),this}remove(t){if(!t)return this;let e,n=this._data,r=null,o=0,a=!1;const l=this._toBBox(t);for(M.clear(),w.clear();n||M.length>0;){if(n||(n=(0,i.j0)(M.pop()),r=M.data[M.length-1],o=w.pop()??0,a=!0),n.leaf&&(e=(0,s.cq)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),M.push(n),this._condense(M),this;a||n.leaf||!g(n,l)?r?(o++,n=r.children[o],a=!1):n=null:(M.push(n),w.push(o),o=0,r=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(b.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else b.pushArray(n.children);n=b.pop()??null}}_build(t,e,n,s){const i=n-e+1;let r=this._maxEntries;if(i<=r){const s=new E(t.slice(e,n+1));return l(s,this._toBBox),s}s||(s=Math.ceil(Math.log(i)/Math.log(r)),r=Math.ceil(i/r**(s-1)));const o=new R([]);o.height=s;const a=Math.ceil(i/r),h=a*Math.ceil(Math.sqrt(r));x(t,e,n,h,this._compareMinX);for(let i=e;i<=n;i+=h){const e=Math.min(i+h-1,n);x(t,i,e,a,this._compareMinY);for(let n=i;n<=e;n+=a){const i=Math.min(n+a-1,e);o.children.push(this._build(t,n,i,s-1))}}return l(o,this._toBBox),o}_chooseSubtree(t,e,n,s){for(;s.push(e),!0!==e.leaf&&s.length-1!==n;){let n,s=1/0,i=1/0;for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r],a=f(o),l=p(t,o)-a;l<i?(i=l,s=a<s?a:s,n=o):l===i&&a<s&&(s=a,n=o)}e=n||e.children[0]}return e}_insert(t,e,n){const s=this._toBBox,i=n?t:s(t);M.clear();const r=this._chooseSubtree(i,this._data,e,M);for(r.children.push(t),c(r,i);e>=0&&M.data[e].children.length>this._maxEntries;)this._split(M,e),e--;this._adjustParentBBoxes(i,M,e)}_split(t,e){const n=t.data[e],s=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,s);const r=this._chooseSplitIndex(n,i,s);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=n.children.splice(r,n.children.length-r),a=n.leaf?new E(o):new R(o);a.height=n.height,l(n,this._toBBox),l(a,this._toBBox),e?t.data[e-1].children.push(a):this._splitRoot(n,a)}_splitRoot(t,e){this._data=new R([t,e]),this._data.height=t.height+1,l(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let s,i,r;s=i=1/0;for(let o=e;o<=n-e;o++){const e=h(t,0,o,this._toBBox),a=h(t,o,n,this._toBBox),l=_(e,a),c=f(e)+f(a);l<s?(s=l,r=o,i=c<i?c:i):l===s&&c<i&&(i=c,r=o)}return r}_chooseSplitAxis(t,e,n){const s=t.leaf?this._compareMinX:u,i=t.leaf?this._compareMinY:d;this._allDistMargin(t,e,n,s)<this._allDistMargin(t,e,n,i)&&t.children.sort(s)}_allDistMargin(t,e,n,s){t.children.sort(s);const i=this._toBBox,r=h(t,0,e,i),o=h(t,n-e,n,i);let a=m(r)+m(o);for(let s=e;s<n-e;s++){const e=t.children[s];c(r,t.leaf?i(e):e),a+=m(r)}for(let s=n-e-1;s>=e;s--){const e=t.children[s];c(o,t.leaf?i(e):e),a+=m(o)}return a}_adjustParentBBoxes(t,e,n){for(let s=n;s>=0;s--)c(e.data[s],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const i=t.data[e-1],r=i.children;r.splice((0,s.cq)(r,n,r.length,i.indexHint),1)}else this.clear();else l(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function l(t,e){h(t,0,t.children.length,e,t)}function h(t,e,n,s,i){i||(i=new E([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let r,o=e;o<n;o++)r=t.children[o],c(i,t.leaf?s(r):r);return i}function c(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function u(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function f(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function _(t,e){const n=Math.max(t.minX,e.minX),s=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),r=Math.min(t.maxY,e.maxY);return Math.max(0,i-n)*Math.max(0,r-s)}function g(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function y(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function x(t,e,n,s,r){const a=[e,n];for(;a.length;){const e=(0,i.j0)(a.pop()),n=(0,i.j0)(a.pop());if(e-n<=s)continue;const l=n+Math.ceil((e-n)/s/2)*s;(0,o.q)(t,l,n,e,r),a.push(n,l,l,e)}}const v=new r.Z,b=new r.Z,M=new r.Z,w=new r.Z({deallocator:void 0});class C{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class P extends C{constructor(){super(...arguments),this.height=1,this.indexHint=new s.SO}}class E extends P{constructor(t){super(),this.children=t,this.leaf=!0}}class R extends P{constructor(t){super(),this.children=t,this.leaf=!1}}},17445:(t,e,n)=>{n.d(e,{N1:()=>d,YP:()=>l,Z_:()=>p,gx:()=>h,nn:()=>_,on:()=>u,tX:()=>g});var s=n(91460),i=n(50758),r=n(70586),o=n(95330),a=n(26258);function l(t,e,n={}){return c(t,e,n,f)}function h(t,e,n={}){return c(t,e,n,m)}function c(t,e,n={},s){let i=null;const o=n.once?(t,n)=>{s(t)&&((0,r.hw)(i),e(t,n))}:(t,n)=>{s(t)&&e(t,n)};if(i=(0,a.aQ)(t,o,n.sync,n.equals),n.initial){const e=t();o(e,e)}return i}function u(t,e,n,o={}){let a=null,h=null,c=null;function u(){a&&h&&(h.remove(),o.onListenerRemove?.(a),a=null,h=null)}function d(t){o.once&&o.once&&(0,r.hw)(c),n(t)}const f=l(t,((t,n)=>{u(),(0,s.vT)(t)&&(a=t,h=(0,s.on)(t,e,d),o.onListenerAdd?.(t))}),{sync:o.sync,initial:!0});return c=(0,i.kB)((()=>{f.remove(),u()})),c}function d(t,e){return function(t,e,n){if((0,o.Hc)(n))return Promise.reject((0,o.zE)());const s=t();if(e?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,r.hw)(a)}return new Promise(((s,r)=>{a=(0,i.AL)([(0,o.fu)(n,(()=>{l(),r((0,o.zE)())})),c(t,(t=>{l(),s(t)}),{sync:!1,once:!0},e??f)])}))}(t,m,e)}function f(t){return!0}function m(t){return!!t}n(87538);const p={sync:!0},_={initial:!0},g={sync:!0,initial:!0}},72762:(t,e,n)=>{n.d(e,{t:()=>u});var s=n(43697),i=n(15923),r=n(61247),o=n(70586),a=n(17445),l=n(1654),h=n(5600),c=n(52011);let u=class extends i.Z{constructor(){super(...arguments),this.updating=!1,this._handleId=0,this._handles=new r.Z,this._scheduleHandleId=0,this._pendingPromises=new Set}destroy(){this.removeAll(),this._handles.destroy()}add(t,e,n={}){return this._installWatch(t,e,n,a.YP)}addWhen(t,e,n={}){return this._installWatch(t,e,n,a.gx)}addOnCollectionChange(t,e,{initial:n=!1,final:s=!1}={}){const i=++this._handleId;return this._handles.add([(0,a.on)(t,"after-changes",this._createSyncUpdatingCallback(),a.Z_),(0,a.on)(t,"change",e,{onListenerAdd:n?t=>e({added:t.toArray(),removed:[]}):void 0,onListenerRemove:s?t=>e({added:[],removed:t.toArray()}):void 0})],i),{remove:()=>this._handles.remove(i)}}addPromise(t){if((0,o.Wi)(t))return t;const e=++this._handleId;this._handles.add({remove:()=>{this._pendingPromises.delete(t)&&(0!==this._pendingPromises.size||this._handles.has(d)||this._set("updating",!1))}},e),this._pendingPromises.add(t),this._set("updating",!0);const n=()=>this._handles.remove(e);return t.then(n,n),t}removeAll(){this._pendingPromises.clear(),this._handles.removeAll(),this._set("updating",!1)}_installWatch(t,e,n={},s){const i=++this._handleId;n.sync||this._installSyncUpdatingWatch(t,i);const r=s(t,e,n);return this._handles.add(r,i),{remove:()=>this._handles.remove(i)}}_installSyncUpdatingWatch(t,e){const n=this._createSyncUpdatingCallback(),s=(0,a.YP)(t,n,{sync:!0,equals:()=>!1});return this._handles.add(s,e),s}_createSyncUpdatingCallback(){return()=>{this._handles.remove(d),++this._scheduleHandleId;const t=this._scheduleHandleId;this._get("updating")||this._set("updating",!0),this._handles.add((0,l.Os)((()=>{t===this._scheduleHandleId&&(this._set("updating",this._pendingPromises.size>0),this._handles.remove(d))})),d)}}};(0,s._)([(0,h.Cb)({readOnly:!0})],u.prototype,"updating",void 0),u=(0,s._)([(0,c.j)("esri.core.support.WatchUpdatingTracking")],u);const d=-42},35463:(t,e,n)=>{n.d(e,{JE:()=>o,Nm:()=>r,rJ:()=>a}),n(80442);const s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8},i={milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",multiplier:1},seconds:{getter:"getSeconds",setter:"setSeconds",multiplier:1},minutes:{getter:"getMinutes",setter:"setMinutes",multiplier:1},hours:{getter:"getHours",setter:"setHours",multiplier:1},days:{getter:"getDate",setter:"setDate",multiplier:1},weeks:{getter:"getDate",setter:"setDate",multiplier:7},months:{getter:"getMonth",setter:"setMonth",multiplier:1},years:{getter:"getFullYear",setter:"setFullYear",multiplier:1},decades:{getter:"getFullYear",setter:"setFullYear",multiplier:10},centuries:{getter:"getFullYear",setter:"setFullYear",multiplier:100}};function r(t,e,n){const s=new Date(t.getTime());if(e&&n){const t=i[n],{getter:r,setter:o,multiplier:a}=t;if("months"===n){const t=function(t,e){const n=new Date(t,e+1,1);return n.setDate(0),n.getDate()}(s.getFullYear(),s.getMonth()+e);s.getDate()>t&&s.setDate(t)}s[o](s[r]()+e*a)}return s}function o(t,e){switch(e){case"milliseconds":return new Date(t.getTime());case"seconds":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds());case"minutes":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes());case"hours":return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours());case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate());case"weeks":return new Date(t.getFullYear(),t.getMonth(),t.getDate()-t.getDay());case"months":return new Date(t.getFullYear(),t.getMonth(),1);case"years":return new Date(t.getFullYear(),0,1);case"decades":return new Date(t.getFullYear()-t.getFullYear()%10,0,1);case"centuries":return new Date(t.getFullYear()-t.getFullYear()%100,0,1);default:return new Date}}function a(t,e,n){return 0===t?0:t*s[e]/s[n]}},41123:(t,e,n)=>{n.d(e,{D:()=>i});const s="randomUUID"in crypto;function i(){if(s)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}},73913:(t,e,n)=>{n.d(e,{Sy:()=>l,UZ:()=>o,XZ:()=>a,x3:()=>h});var s=n(58901),i=n(82971),r=n(33955);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.Z({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.Z.WebMercator}),minus180Line:new s.Z({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.Z.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.Z({paths:[[[180,-180],[180,180]]],spatialReference:i.Z.WGS84}),minus180Line:new s.Z({paths:[[[-180,-180],[-180,180]]],spatialReference:i.Z.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){const n=h(t);for(const t of n)for(const n of t)n[0]+=e;return t}function h(t){return(0,r.oU)(t)?t.rings:t.paths}},57765:(t,e,n)=>{n.r(e),n.d(e,{default:()=>re});var s=n(43697),i=n(46791),r=n(20102),o=n(92604),a=n(70586),l=n(16453),h=n(5600),c=n(90578),u=(n(67676),n(71715)),d=n(52011),f=n(30556),m=n(87085),p=n(71612),_=n(38009),g=n(72965),y=n(3172),x=n(17452),v=n(41123),b=(n(75215),n(10699)),M=n(96674),w=n(83379),C=n(15923),P=n(21787),E=n(46521),R=n(4307),I=n(17896);const O=(0,n(65617).c)(),S=(0,E.c)(),B=(0,E.c)(),A=(0,E.c)();function T(t,e,n){return(0,I.s)(O,e[0],e[1],1),(0,I.t)(O,O,(0,P.t)(S,n)),0===O[2]?(0,R.s)(t,O[0],O[1]):(0,R.s)(t,O[0]/O[2],O[1]/O[2])}function Z(t,e,n){return j(B,e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]),j(A,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,P.m)(t,(0,P.a)(B,B),A),0!==t[8]&&(t[0]/=t[8],t[1]/=t[8],t[2]/=t[8],t[3]/=t[8],t[4]/=t[8],t[5]/=t[8],t[6]/=t[8],t[7]/=t[8],t[8]/=t[8]),t}function j(t,e,n,s,i,r,o,a,l){(0,P.s)(t,e,s,r,n,i,o,1,1,1),(0,I.s)(O,a,l,1),(0,P.a)(S,t);const[h,c,u]=(0,I.t)(O,O,(0,P.t)(S,S));return(0,P.s)(S,h,0,0,0,c,0,0,0,u),(0,P.m)(t,S,t)}var D=n(62357),L=n(97323),W=n(94139),Y=n(38913),X=n(44547),V=n(82971),N=n(2368);n(80442);let q=class extends N.j{projectOrWarn(t,e){if((0,a.Wi)(t))return t;const{geometry:n,pending:s}=(0,X.dz)(t,e);return s?null:s||n?n:(o.Z.getLogger(this.declaredClass).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:t,sourceSpatialReference:t.spatialReference,targetSpatialReference:e}),null)}};q=(0,s._)([(0,d.j)("esri.layers.support.GeoreferenceBase")],q);const z=q,F=(0,E.c)(),H=(0,L.a)();let U=class extends C.Z{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,s._)([(0,h.Cb)()],U.prototype,"sourcePoint",void 0),(0,s._)([(0,h.Cb)({type:W.Z})],U.prototype,"mapPoint",void 0),U=(0,s._)([(0,d.j)("esri.layers.support.ControlPoint")],U);let k=class extends((0,M.eC)(z)){constructor(t){super(t),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(t,e){const n=V.Z.fromJSON(e.spatialReference),s=(0,E.f)(...e.coefficients,1);return t.map((t=>((0,R.s)(H,t.x,t.y),T(H,H,s),{sourcePoint:t,mapPoint:new W.Z({x:H[0],y:H[1],spatialReference:n})})))}writeControlPoints(t,e,n,s){if((0,a.Wi)(this.transform)){const t=new r.Z("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration.",{layer:s?.layer,georeference:this});s?.messages?s.messages.push(t):o.Z.getLogger(this.declaredClass).error(t.name,t.message)}else(0,a.pC)(t)&&J(t[0])&&(e.controlPoints=t.map((t=>{const e=(0,a.Wg)(t.sourcePoint);return{x:e.x,y:e.y}})),e.spatialReference=t[0].mapPoint.spatialReference.toJSON(),e.coefficients=this.transform.slice(0,8))}get coords(){if((0,a.Wi)(this.controlPoints))return null;const t=this._updateTransform(F);if((0,a.Wi)(t)||!J(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return function(t,e,n,s){const i=(0,L.f)(0,n),r=(0,L.f)(0,0),o=(0,L.f)(e,0),a=(0,L.f)(e,n);return T(i,i,t),T(r,r,t),T(o,o,t),T(a,a,t),new Y.Z({rings:[[i,r,o,a,i]],spatialReference:s})}(t,this.width,this.height,e)}set coords(t){if((0,a.Wi)(this.controlPoints)||!J(this.controlPoints[0]))return;const e=this.controlPoints[0].mapPoint.spatialReference;if(t=this.projectOrWarn(t,e),(0,a.Wi)(t))return;const{width:n,height:s}=this,{rings:[[i,r,o,l]]}=t,h={sourcePoint:(0,D.vW)(0,s),mapPoint:new W.Z({x:i[0],y:i[1],spatialReference:e})},c={sourcePoint:(0,D.vW)(0,0),mapPoint:new W.Z({x:r[0],y:r[1],spatialReference:e})},u={sourcePoint:(0,D.vW)(n,0),mapPoint:new W.Z({x:o[0],y:o[1],spatialReference:e})},d={sourcePoint:(0,D.vW)(n,s),mapPoint:new W.Z({x:l[0],y:l[1],spatialReference:e})};J(h)&&J(c)&&J(u)&&J(d)&&(ot(F,h,c,u,d),this.controlPoints=(0,a.Wg)(this.controlPoints).map((({sourcePoint:t})=>((0,R.s)(H,t.x,t.y),T(H,H,F),{sourcePoint:t,mapPoint:new W.Z({x:H[0],y:H[1],spatialReference:e})}))))}get inverseTransform(){return(0,a.Wi)(this.transform)?null:(0,P.e)((0,E.c)(),this.transform)}get transform(){return this._updateTransform()}toMap(t){if((0,a.Wi)(t)||(0,a.Wi)(this.transform)||(0,a.Wi)(this.controlPoints)||!J(this.controlPoints[0]))return null;(0,R.s)(H,t.x,t.y);const e=this.controlPoints[0].mapPoint.spatialReference;return T(H,H,this.transform),new W.Z({x:H[0],y:H[1],spatialReference:e})}toSource(t){if((0,a.Wi)(t)||(0,a.Wi)(this.inverseTransform)||(0,a.Wi)(this.controlPoints)||!J(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return t=t.normalize(),t=(0,X.dz)(t,e).geometry,(0,a.Wi)(t)?null:((0,R.s)(H,t.x,t.y),T(H,H,this.inverseTransform),(0,D.vW)(H[0],H[1]))}_updateTransform(t){const{controlPoints:e,width:n,height:s}=this;if((0,a.Wi)(e)||!(n>0)||!(s>0))return null;const[i,r,o,l]=e;if(!J(i))return null;const h=i.mapPoint.spatialReference,c=this._projectControlPoint(r,h),u=this._projectControlPoint(o,h),d=this._projectControlPoint(l,h);if(!c.valid||!u.valid||!d.valid)return null;if(!J(c.controlPoint))return null;(0,a.Wi)(t)&&(t=(0,E.c)());let f=null;return f=J(u.controlPoint)&&J(d.controlPoint)?ot(t,i,c.controlPoint,u.controlPoint,d.controlPoint):J(u.controlPoint)?function(t,e,n,s){return rt(G,tt,e),rt(Q,et,n),rt($,nt,s),(0,R.l)(K,G,Q,.5),(0,R.r)(K,$,K,Math.PI),(0,R.l)(st,tt,et,.5),(0,R.r)(st,nt,st,Math.PI),ct(t,G,Q,$,K,tt,et,nt,st)}(t,i,c.controlPoint,u.controlPoint):function(t,e,n){return rt(G,tt,e),rt(Q,et,n),(0,R.r)($,Q,G,it),(0,R.r)(K,G,Q,it),(0,R.r)(nt,et,tt,-it),(0,R.r)(st,tt,et,-it),ct(t,G,Q,$,K,tt,et,nt,st)}(t,i,c.controlPoint),f.every((t=>0===t))?null:f}_projectControlPoint(t,e){if(!J(t))return{valid:!0,controlPoint:t};const{sourcePoint:n,mapPoint:s}=t,{geometry:i,pending:r}=(0,X.dz)(s,e);return r?{valid:!1,controlPoint:null}:r||i?{valid:!0,controlPoint:{sourcePoint:n,mapPoint:i}}:(o.Z.getLogger(this.declaredClass).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:t,sourceSpatialReference:s.spatialReference,targetSpatialReference:e}),{valid:!1,controlPoint:null})}};function J(t){return(0,a.pC)(t)&&(0,a.pC)(t.sourcePoint)&&(0,a.pC)(t.mapPoint)}(0,s._)([(0,h.Cb)({type:[U],json:{write:{allowNull:!1,isRequired:!0}}})],k.prototype,"controlPoints",void 0),(0,s._)([(0,u.r)("controlPoints")],k.prototype,"readControlPoints",null),(0,s._)([(0,f.c)("controlPoints")],k.prototype,"writeControlPoints",null),(0,s._)([(0,h.Cb)()],k.prototype,"coords",null),(0,s._)([(0,h.Cb)({json:{write:!0}})],k.prototype,"height",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],k.prototype,"inverseTransform",null),(0,s._)([(0,h.Cb)({readOnly:!0})],k.prototype,"transform",null),(0,s._)([(0,h.Cb)({json:{write:!0}})],k.prototype,"width",void 0),k=(0,s._)([(0,d.j)("esri.layers.support.ControlPointsGeoreference")],k);const G=(0,L.a)(),Q=(0,L.a)(),$=(0,L.a)(),K=(0,L.a)(),tt=(0,L.a)(),et=(0,L.a)(),nt=(0,L.a)(),st=(0,L.a)(),it=Math.PI/2;function rt(t,e,n){(0,R.s)(t,n.sourcePoint.x,n.sourcePoint.y),(0,R.s)(e,n.mapPoint.x,n.mapPoint.y)}function ot(t,e,n,s,i){return rt(G,tt,e),rt(Q,et,n),rt($,nt,s),rt(K,st,i),ct(t,G,Q,$,K,tt,et,nt,st)}const at=new Array(8).fill(0),lt=new Array(8).fill(0);function ht(t,e,n,s,i){return t[0]=e[0],t[1]=e[1],t[2]=n[0],t[3]=n[1],t[4]=s[0],t[5]=s[1],t[6]=i[0],t[7]=i[1],t}function ct(t,e,n,s,i,r,o,a,l){return Z(t,ht(at,e,n,s,i),ht(lt,r,o,a,l))}const ut=k;let dt=class extends z{constructor(t){super(t),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:t,topRight:e,bottomLeft:n,bottomRight:s}=this;if((0,a.Wi)(t)||(0,a.Wi)(e)||(0,a.Wi)(n)||(0,a.Wi)(s))return null;const i=t.spatialReference;return e=this.projectOrWarn(e,i),n=this.projectOrWarn(n,i),s=this.projectOrWarn(s,i),(0,a.Wi)(e)||(0,a.Wi)(n)||(0,a.Wi)(s)?null:new Y.Z({rings:[[[n.x,n.y],[t.x,t.y],[e.x,e.y],[s.x,s.y],[n.x,n.y]]],spatialReference:i})}set coords(t){const{topLeft:e}=this;if((0,a.Wi)(e))return;const n=e.spatialReference;if(t=this.projectOrWarn(t,n),(0,a.Wi)(t))return;const{rings:[[s,i,r,o]]}=t;this.bottomLeft=new W.Z({x:s[0],y:s[1],spatialReference:n}),this.topLeft=new W.Z({x:i[0],y:i[1],spatialReference:n}),this.topRight=new W.Z({x:r[0],y:r[1],spatialReference:n}),this.bottomRight=new W.Z({x:o[0],y:o[1],spatialReference:n})}};(0,s._)([(0,h.Cb)()],dt.prototype,"coords",null),(0,s._)([(0,h.Cb)({type:W.Z})],dt.prototype,"bottomLeft",void 0),(0,s._)([(0,h.Cb)({type:W.Z})],dt.prototype,"bottomRight",void 0),(0,s._)([(0,h.Cb)({type:W.Z})],dt.prototype,"topLeft",void 0),(0,s._)([(0,h.Cb)({type:W.Z})],dt.prototype,"topRight",void 0),dt=(0,s._)([(0,d.j)("esri.layers.support.CornersGeoreference")],dt);const ft=dt;var mt=n(22021),pt=n(46851),_t=n(6570);let gt=class extends z{constructor(t){super(t),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if((0,a.Wi)(this.extent))return null;const{xmin:t,ymin:e,xmax:n,ymax:s,spatialReference:i}=this.extent;let r;if(this.rotation){const{x:i,y:o}=this.extent.center,a=yt(i,o,this.rotation);r=[a(t,e),a(t,s),a(n,s),a(n,e)],r.push(r[0])}else r=[[t,e],[t,s],[n,s],[n,e],[t,e]];return new Y.Z({rings:[r],spatialReference:i})}set coords(t){if((0,a.Wi)(t)||(0,a.Wi)(this.extent))return;const e=this.extent.spatialReference;if(t=this.projectOrWarn(t,e),(0,a.Wi)(t)||(0,a.Wi)(t.extent))return;const{rings:[[n,s,i]],extent:{center:{x:r,y:o}}}=t,l=(0,mt.BV)(Math.PI/2-Math.atan2(s[1]-n[1],s[0]-n[0])),h=yt(r,o,-l),[c,u]=h(n[0],n[1]),[d,f]=h(i[0],i[1]);this.extent=new _t.Z({xmin:c,ymin:u,xmax:d,ymax:f,spatialReference:e}),this.rotation=l}};function yt(t,e,n){const s=(0,pt.t)(n),i=Math.cos(s),r=Math.sin(s);return(n,s)=>[i*(n-t)+r*(s-e)+t,i*(s-e)-r*(n-t)+e]}(0,s._)([(0,h.Cb)()],gt.prototype,"coords",null),(0,s._)([(0,h.Cb)({type:_t.Z})],gt.prototype,"extent",void 0),(0,s._)([(0,h.Cb)({type:Number})],gt.prototype,"rotation",void 0),gt=(0,s._)([(0,d.j)("esri.layers.support.ExtentAndRotationGeoreference")],gt);const xt={key:"type",base:z,typeMap:{"control-points":ut,corners:ft,"extent-and-rotation":gt}};let vt=class extends((0,b.iv)((0,M.eC)(w.Z))){constructor(){super(...arguments),this.georeference=null,this.opacity=1}readGeoreference(t){return ut.fromJSON(t)}};(0,s._)([(0,h.Cb)({types:xt,json:{write:!0}})],vt.prototype,"georeference",void 0),(0,s._)([(0,u.r)("georeference")],vt.prototype,"readGeoreference",null),(0,s._)([(0,h.Cb)()],vt.prototype,"opacity",void 0),vt=(0,s._)([(0,d.j)("esri.layers.support.MediaElementBase")],vt);const bt=vt;var Mt=n(66094),wt=n(25929);let Ct=class extends bt{constructor(t){super(t),this.content=null,this.image=null,this.type="image",this.image=null}load(){const t=this.image;if("string"==typeof t){const e=(0,y.default)(t,{responseType:"image"}).then((({data:t})=>{this._set("content",t)}));this.addResolvingPromise(e)}else if(t instanceof HTMLImageElement){const e=t.decode().then((()=>{this._set("content",t)}));this.addResolvingPromise(e)}else t?this._set("content",t):this.addResolvingPromise(Promise.reject(new r.Z("image-element:invalid-image-type","Invalid image type",{image:t})));return Promise.resolve(this)}readImage(t,e,n){return(0,wt.f)(e.url,n)}writeImage(t,e,n,s){if((0,a.Wi)(t))return;const i=s?.portalItem,r=s?.resources;if(!i||!r)return void("string"==typeof t&&(e[n]=(0,wt.t)(t,s)));const o="string"!=typeof t||(0,x.HK)(t)||(0,x.jc)(t)?null:t;if(o){if(null==(0,wt.i)(o))return void(e[n]=o);const t=(0,wt.t)(o,{...s,verifyItemRelativeUrls:s&&s.verifyItemRelativeUrls?{writtenUrls:s.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},wt.M.NO);if(i&&t&&!(0,x.YP)(t))return r.toKeep.push({resource:i.resourceFromPath(t),compress:!1}),void(e[n]=t)}e[n]="<pending>",r.pendingOperations.push(Et(t).then((t=>{const s=function(t,e){const n=(0,v.D)(),s=`${(0,x.v_)("media",n)}.${(0,Mt.B)(t)}`;return e.resourceFromPath(s)}(t,i);e[n]=s.itemRelativeUrl,r.toAdd.push({resource:s,content:t,compress:!1,finish:t=>{this.image=t.url}})})))}};(0,s._)([(0,h.Cb)({readOnly:!0})],Ct.prototype,"content",void 0),(0,s._)([(0,h.Cb)({json:{name:"url",type:String}})],Ct.prototype,"image",void 0),(0,s._)([(0,u.r)("image",["url"])],Ct.prototype,"readImage",null),(0,s._)([(0,f.c)("image")],Ct.prototype,"writeImage",null),(0,s._)([(0,h.Cb)({readOnly:!0,json:{name:"mediaType"}})],Ct.prototype,"type",void 0),Ct=(0,s._)([(0,d.j)("esri.layers.support.ImageElement")],Ct);const Pt=Ct;async function Et(t){if("string"==typeof t){if((0,x.jc)(t)){const{data:e}=await(0,y.default)(t,{responseType:"blob"});return e}return(0,x.HK)(t)?(0,x.fw)(t):Et((await(0,y.default)(t,{responseType:"image"})).data)}return new Promise((e=>function(t){if(t instanceof HTMLCanvasElement)return t;const e=t instanceof HTMLImageElement?t.naturalWidth:t.width,n=t instanceof HTMLImageElement?t.naturalHeight:t.height,s=document.createElement("canvas"),i=s.getContext("2d");return s.width=e,s.height=n,t instanceof HTMLImageElement?i.drawImage(t,0,0,t.width,t.height):t instanceof ImageData&&i.putImageData(t,0,0),s}(t).toBlob(e)))}n(66577);var Rt=n(70921),It=n(32448),Ot=n(3920),St=n(609),Bt=n(95330),At=n(17445),Tt=n(24470),Zt=n(87416),jt=n(8744),Dt=n(37549),Lt=n(20322),Wt=n(86662),Yt=n(33955),Xt=n(73913);function Vt(t,e,n){if(Array.isArray(t)){const s=t[0];if(s>e){const n=(0,Xt.XZ)(s,e);t[0]=s+n*(-2*e)}else if(s<n){const e=(0,Xt.XZ)(s,n);t[0]=s+e*(-2*n)}}else{const s=t.x;if(s>e){const n=(0,Xt.XZ)(s,e);t.x+=n*(-2*e)}else if(s<n){const e=(0,Xt.XZ)(s,n);t.x+=e*(-2*n)}}return t}function Nt(t,e){const n=[],{ymin:s,ymax:i,xmin:r,xmax:o}=t,a=t.xmax-t.xmin,[l,h]=e.valid,{x:c,frameId:u}=qt(t.xmin,e),{x:d,frameId:f}=qt(t.xmax,e),m=c===d&&a>0;if(a>2*h){const t={xmin:r<o?c:d,ymin:s,xmax:h,ymax:i},e={xmin:l,ymin:s,xmax:r<o?d:c,ymax:i},a={xmin:0,ymin:s,xmax:h,ymax:i},m={xmin:l,ymin:s,xmax:0,ymax:i},p=[],_=[];zt(t,a)&&p.push(u),zt(t,m)&&_.push(u),zt(e,a)&&p.push(f),zt(e,m)&&_.push(f);for(let t=u+1;t<f;t++)p.push(t),_.push(t);n.push(new Ut(t,[u]),new Ut(e,[f]),new Ut(a,p),new Ut(m,_))}else c>d||m?n.push(new Ut({xmin:c,ymin:s,xmax:h,ymax:i},[u]),new Ut({xmin:l,ymin:s,xmax:d,ymax:i},[f])):n.push(new Ut({xmin:c,ymin:s,xmax:d,ymax:i},[u]));return n}function qt(t,e){const[n,s]=e.valid,i=2*s;let r,o=0;return t>s?(r=Math.ceil(Math.abs(t-s)/i),t-=r*i,o=r):t<n&&(r=Math.ceil(Math.abs(t-n)/i),t+=r*i,o=-r),{x:t,frameId:o}}function zt(t,e){const{xmin:n,ymin:s,xmax:i,ymax:r}=e;return Ft(t,n,s)&&Ft(t,n,r)&&Ft(t,i,r)&&Ft(t,i,s)}function Ft(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function Ht(t,e,n=!0){const s=!(0,Yt.l9)(t);if(s&&(0,Wt.Zy)(t),n)return(new Jt).cut(t,e);const i=s?t.rings:t.paths,r=s?4:2,o=i.length,a=-2*e;for(let t=0;t<o;t++){const e=i[t];if(e&&e.length>=r){const t=[];for(const n of e)t.push([n[0]+a,n[1]]);i.push(t)}}return s?t.rings=i:t.paths=i,t}class Ut{constructor(t,e){this.extent=t,this.frameIds=e}}const kt=(0,Tt.Ue)();class Jt{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const s=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=s;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t[0],t[1],this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide==-1){const n=this._intersect(this._prevPt,t);this._lineTo(this._xCut,n,0),this._prevSide=0,this._lineTo(t[0],t[1],e)}else this._lineTo(t[0],t[1],e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e,n){this._closed?(this._lineIn.push([n<=0?t:this._xCut,e]),this._lineOut.push([n>=0?t:this._xCut,e])):(n<=0&&this._lineIn.push([t,e]),n>=0&&this._lineOut.push([t,e]))}_lineTo(t,e,n){this._closed?(this._addPolyVertex(this._lineIn,n<=0?t:this._xCut,e),this._addPolyVertex(this._lineOut,n>=0?t:this._xCut,e)):n<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push([t,e])):n>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push([t,e])):this._prevSide<0?(this._lineIn.push([t,e]),this._lineOut.push([t,e])):this._prevSide>0&&(this._lineOut.push([t,e]),this._lineIn.push([t,e]))}_addPolyVertex(t,e,n){const s=t.length;s>1&&t[s-1][0]===e&&t[s-2][0]===e?t[s-1][1]=n:t.push([e,n])}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0][1]=t[e-2][1],t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]);return t[1]+n*(e[1]-t[1])}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}let Gt=class extends C.Z{constructor(t){super(t)}get bounds(){const t=this.coords;return(0,a.Wi)(t)||(0,a.Wi)(t.extent)?null:(0,Tt.oJ)(t.extent)}get coords(){const t=(0,a.Wg)(this.element.georeference)?.coords;return(0,X.dz)(t,this.spatialReference).geometry}get normalizedCoords(){return Y.Z.fromJSON(function(t,e){if((0,a.Wi)(t))return null;const n=t.spatialReference,s=(0,jt.C5)(n),i="toJSON"in t?t.toJSON():t;if(!s)return i;const r=(0,jt.sS)(n)?102100:4326,o=Xt.UZ[r].maxX,l=Xt.UZ[r].minX;if((0,Yt.wp)(i))return Vt(i,o,l);if((0,Yt.aW)(i))return i.points=i.points.map((t=>Vt(t,o,l))),i;if((0,Yt.YX)(i))return function(t,e){if(!e)return t;const n=Nt(t,e).map((t=>t.extent));return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map((t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]))}}(i,s);if((0,Yt.oU)(i)||(0,Yt.l9)(i)){const t=(0,Lt.$P)(kt,i),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},s=(0,Xt.XZ)(n.xmin,l)*(2*o),r=0===s?i:(0,Xt.Sy)(i,s);return n.xmin+=s,n.xmax+=s,n.xmax>o?Ht(r,o,e):n.xmin<l?Ht(r,l,e):r}return i}(this.coords,!0))}get normalizedBounds(){const t=(0,a.pC)(this.normalizedCoords)?this.normalizedCoords.extent:null;return(0,a.pC)(t)?(0,Tt.oJ)(t):null}};(0,s._)([(0,h.Cb)()],Gt.prototype,"spatialReference",void 0),(0,s._)([(0,h.Cb)()],Gt.prototype,"element",void 0),(0,s._)([(0,h.Cb)()],Gt.prototype,"bounds",null),(0,s._)([(0,h.Cb)()],Gt.prototype,"coords",null),(0,s._)([(0,h.Cb)()],Gt.prototype,"normalizedCoords",null),(0,s._)([(0,h.Cb)()],Gt.prototype,"normalizedBounds",null),Gt=(0,s._)([(0,d.j)("esri.layers.support.MediaElementView")],Gt);let Qt=class extends bt{constructor(t){super(t),this.content=null,this.type="video"}load(){const t=this.video;if("string"==typeof t){const e=document.createElement("video");e.src=t,e.crossOrigin="anonymous",e.autoplay=!0,e.muted=!0,e.loop=!0,this.addResolvingPromise(this._loadVideo(e).then((()=>{this._set("content",e)})))}else t instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(t).then((()=>{this._set("content",t)}))):this.addResolvingPromise(Promise.reject(new r.Z("video-element:invalid-video-type","Invalid video type",{video:t})));return Promise.resolve(this)}set video(t){"not-loaded"===this.loadStatus?this._set("video",t):o.Z.getLogger(this.declaredClass).error("#video","video cannot be changed after the element is loaded.")}_loadVideo(t){return new Promise(((e,n)=>{t.oncanplay=()=>{t.oncanplay=null,t.play().then(e,n)},"anonymous"!==t.crossOrigin&&(t.crossOrigin="anonymous",t.src=t.src)}))}};(0,s._)([(0,h.Cb)({readOnly:!0})],Qt.prototype,"content",void 0),(0,s._)([(0,h.Cb)()],Qt.prototype,"video",null),Qt=(0,s._)([(0,d.j)("esri.layers.support.VideoElement")],Qt);const $t=Qt,Kt={key:"type",defaultKeyValue:"image",base:bt,typeMap:{image:Pt,video:$t}},te=i.Z.ofType(Kt);let ee=class extends(w.Z.LoadableMixin((0,St.v)((0,Ot.p)(It.Z.EventedAccessor)))){constructor(t){super(t),this._index=new Dt.H,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=t=>{for(const e of t.removed){const t=this._elementViewsMap.get(e);this._elementViewsMap.delete(e),this._index.delete(t),this.handles.remove(t),t.destroy(),this.notifyChange("fullExtent")}const{spatialReference:e}=this;for(const n of t.added){if(this._elementViewsMap.get(n))continue;const t=new Gt({spatialReference:e,element:n});this._elementViewsMap.set(n,t);const s=(0,At.YP)((()=>t.coords),(()=>this._updateIndexForElement(t,!1)));this._updateIndexForElement(t,!0),this.handles.add(s,t)}this._elementsIndexes.clear(),this.elements.forEach(((t,e)=>this._elementsIndexes.set(t,e))),this.emit("refresh")},this.elements=new te}async load(t){if((0,Bt.k_)(t),!this.spatialReference){const t=this.elements.find((t=>(0,a.pC)(t.georeference)&&(0,a.pC)(t.georeference.coords)));this._set("spatialReference",t?(0,a.Wg)((0,a.Wg)(t.georeference).coords).spatialReference:V.Z.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.handles.add(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}set elements(t){this._set("elements",(0,Rt.Z)(t,this._get("elements"),te))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const t=this._index.fullBounds;return(0,a.Wi)(t)?null:new _t.Z({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:this.spatialReference})}set spatialReference(t){"not-loaded"===this.loadStatus?this._set("spatialReference",t):o.Z.getLogger(this.declaredClass).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(t,e){await this.load(),await(0,X.iQ)(t.spatialReference,this.spatialReference,null,e);const n=(0,jt.fS)(t.spatialReference,this.spatialReference)?t:(0,X.iV)(t,this.spatialReference);if(!n)return[];const s=n.normalize(),i=[];for(const t of s)this._index.forEachInBounds((0,Tt.oJ)(t),(({normalizedCoords:e,element:n})=>{(0,a.pC)(e)&&(0,Zt.Nl)(t,e)&&i.push(n)}));return i.sort(((t,e)=>this._elementsIndexes.get(t)-this._elementsIndexes.get(e))),i}_updateIndexForElement(t,e){const n=t.normalizedBounds,s=this._index.has(t),i=(0,a.pC)(n);this._index.delete(t),i&&this._index.set(t,n),this.notifyChange("fullExtent"),e||(s!==i?this.emit("refresh"):this.emit("change",{element:t.element}))}};(0,s._)([(0,h.Cb)()],ee.prototype,"elements",null),(0,s._)([(0,h.Cb)({readOnly:!0})],ee.prototype,"fullExtent",null),(0,s._)([(0,h.Cb)()],ee.prototype,"spatialReference",null),ee=(0,s._)([(0,d.j)("esri.layers.support.LocalMediaElementSource")],ee);const ne=ee;function se(t){return"object"==typeof t&&null!=t&&"type"in t}let ie=class extends((0,p.h)((0,g.M)((0,_.q)((0,l.R)(m.Z))))){constructor(t){super(t),this.effectiveSource=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this.source=new ne}load(t){const e=this.source;if(!e)return this.addResolvingPromise(Promise.reject(new r.Z("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer."))),Promise.resolve(this);const n=se(e)?new ne({elements:new i.Z([e])}):e;this._set("effectiveSource",n),this.spatialReference&&(n.spatialReference=this.spatialReference);const s=n.load(t).then((()=>{this.spatialReference=n.spatialReference}));return this.addResolvingPromise(s),Promise.resolve(this)}destroy(){(0,a.Wg)(this.effectiveSource)?.destroy(),(0,a.Wg)(this.source)?.destroy()}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}set source(t){"not-loaded"===this.loadStatus?this._set("source",t):o.Z.getLogger(this.declaredClass).error("#source","source cannot be changed after the layer is loaded.")}castSource(t){return t?Array.isArray(t)||t instanceof i.Z?new ne({elements:t}):t:null}readSource(t,e,n){const s="image"===e.mediaType?new Pt:"video"===e.mediaType?new $t:null;return s?.read(e,n),s}writeSource(t,e,n,s){t&&se(t)&&"image"===t.type?t.write(e,s):s?.messages&&s?.messages?.push(new r.Z("media-layer:unsupported-source","source must be an 'ImageElement'"))}};(0,s._)([(0,h.Cb)({readOnly:!0})],ie.prototype,"effectiveSource",void 0),(0,s._)([(0,h.Cb)({type:String})],ie.prototype,"copyright",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],ie.prototype,"fullExtent",null),(0,s._)([(0,h.Cb)({type:["MediaLayer"]})],ie.prototype,"operationalLayerType",void 0),(0,s._)([(0,h.Cb)({type:["show","hide"]})],ie.prototype,"listMode",void 0),(0,s._)([(0,h.Cb)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1}}})],ie.prototype,"source",null),(0,s._)([(0,c.p)("source")],ie.prototype,"castSource",null),(0,s._)([(0,u.r)("source",["url"])],ie.prototype,"readSource",null),(0,s._)([(0,f.c)("source")],ie.prototype,"writeSource",null),(0,s._)([(0,h.Cb)()],ie.prototype,"spatialReference",void 0),(0,s._)([(0,h.Cb)({readOnly:!0})],ie.prototype,"type",void 0),ie=(0,s._)([(0,d.j)("esri.layers.MediaLayer")],ie);const re=ie},37549:(t,e,n)=>{n.d(e,{H:()=>a});var s=n(80442),i=n(24133),r=n(24470);const o={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new i.Q(9,(0,s.Z)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((n,s)=>{t[e++]=s})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,r.cS)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,n){(function(t){o.minX=t[0],o.minY=t[1],o.maxX=t[2],o.maxY=t[3]})(e),t.search(o,n)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},66094:(t,e,n)=>{n.d(e,{B:()=>i});var s=n(17452);function i(t){return r[function(t){return t instanceof Blob?t.type:function(t){const e=(0,s.Ml)(t);return l[e]||o}(t.url)}(t)]||a}const r={},o="text/plain",a=r[o],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in l)r[l[t]]=t}}]);