@arcgis/core 4.32.0-next.20241218 → 4.32.0-next.20241219
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.
- package/Basemap.js +1 -1
- package/arcade.js +1 -1
- package/assets/components/assets/text-area/t9n/messages.en.json +1 -1
- package/assets/components/assets/text-area/t9n/messages.json +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{57aa1fcef6587305b347.js → 0191142d5f55cc8cf37a.js} +93 -93
- package/assets/esri/core/workers/chunks/{7a0ddaf2c279a2d24c86.js → 0837a630e12a21fc2e50.js} +1 -1
- package/assets/esri/core/workers/chunks/0b3e1e903120da297641.js +1 -0
- package/assets/esri/core/workers/chunks/{6ceafd4420d21110d820.js → 0da2aaca3f0b4fe910e3.js} +1 -1
- package/assets/esri/core/workers/chunks/0f1a7aeec18db5323365.js +1 -0
- package/assets/esri/core/workers/chunks/{cca47dab8c1b8ae49fab.js → 11052103efe3d53a784e.js} +1 -1
- package/assets/esri/core/workers/chunks/19d72185d50ba1ebff50.js +1 -0
- package/assets/esri/core/workers/chunks/{b99de19b6930ba6dad98.js → 1d8609ba413e8a172719.js} +1 -1
- package/assets/esri/core/workers/chunks/{d05fab1af651b7e92442.js → 23fe65988dbc9e5d7842.js} +1 -1
- package/assets/esri/core/workers/chunks/2427a01678f3d9fbf30b.js +1 -0
- package/assets/esri/core/workers/chunks/3a90163b76b0bc7f21d2.js +1 -0
- package/assets/esri/core/workers/chunks/3ef5002b21b1a5b97e11.js +1 -0
- package/assets/esri/core/workers/chunks/48266c87363e7dcaefb3.js +1 -0
- package/assets/esri/core/workers/chunks/{d3790bd1a644eae1005b.js → 48f6eb3b63fec1d3312d.js} +4 -5
- package/assets/esri/core/workers/chunks/668679baf519ada9ae28.js +1 -0
- package/assets/esri/core/workers/chunks/7156d2ae914e1add0109.js +1 -0
- package/assets/esri/core/workers/chunks/737f381f2cfeddb96d15.js +1 -0
- package/assets/esri/core/workers/chunks/{b77d294ad7064734d015.js → 741d5dadfab2a7689054.js} +1 -1
- package/assets/esri/core/workers/chunks/756c2f7c8659deab6c96.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/{1cee35ea0a80737730d5.js → 770d233254419b741616.js} +1 -1
- package/assets/esri/core/workers/chunks/8249351daa45ca82ca0c.js +1 -0
- package/assets/esri/core/workers/chunks/84d26c6c805f5855ffd3.js +1 -0
- package/assets/esri/core/workers/chunks/9372d08ba8bf3342c48f.js +1 -0
- package/assets/esri/core/workers/chunks/9cc9bac6e02ab241e852.js +1 -0
- package/assets/esri/core/workers/chunks/{d347dd19a37ba2f19970.js → 9fc49968dea8e2b64f3e.js} +1 -1
- package/assets/esri/core/workers/chunks/{a0a37c238863ffc1b768.js → a4c8b773283ea8f0e256.js} +1 -1
- package/assets/esri/core/workers/chunks/a776f71b4c7b8728a973.js +1 -0
- package/assets/esri/core/workers/chunks/a77aa86896bbb0e088df.js +1 -0
- package/assets/esri/core/workers/chunks/{7c9e4d479d740723304b.js → b1e4813f0c73fc2a483c.js} +2 -2
- package/assets/esri/core/workers/chunks/{7c9e4d479d740723304b.js.LICENSE.txt → b1e4813f0c73fc2a483c.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/bd37c9cc720587665fd3.js +1 -0
- package/assets/esri/core/workers/chunks/bf0a0ca7fdac98f06a89.js.LICENSE.txt +1 -1
- package/assets/esri/core/workers/chunks/cb3af81e1fe6405c4885.js +1 -0
- package/assets/esri/core/workers/chunks/cc427e8f1b17744b6ea4.js +1 -0
- package/assets/esri/core/workers/chunks/cfe4b8101ea96d6996d3.js +2 -0
- package/assets/esri/core/workers/chunks/{f3f5c5138de8428bd30f.js.LICENSE.txt → cfe4b8101ea96d6996d3.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/d7b76bc7bff34abc2253.js +1 -0
- package/assets/esri/core/workers/chunks/dd34df14eb4940e2497b.js +1 -0
- package/assets/esri/core/workers/chunks/dfd9432ba01881d0a4d9.js +2 -0
- package/assets/esri/core/workers/chunks/{ed2ebe42d6483470939a.js.LICENSE.txt → dfd9432ba01881d0a4d9.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/e1913990f30d285b3b15.js +2 -0
- package/assets/esri/core/workers/chunks/{aff820b27ca9585e297e.js.LICENSE.txt → e1913990f30d285b3b15.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/{e6490fe7c87c1d649ea6.js → e5d55a35dace70239902.js} +1 -1
- package/assets/esri/core/workers/chunks/ebf9caf2dc8af89afec2.js +2 -0
- package/assets/esri/core/workers/chunks/{2eb36a16de1a823513cd.js.LICENSE.txt → ebf9caf2dc8af89afec2.js.LICENSE.txt} +1 -1
- package/assets/esri/core/workers/chunks/f25c04cf1a4bc1d2636a.js +1 -0
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ar.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bg.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_bs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ca.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_cs.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_da.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_de.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_el.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_es.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_et.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_fr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_he.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_hu.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_id.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_it.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ja.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ko.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lt.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_lv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_nl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_no.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-BR.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_pt-PT.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ro.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_ru.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sl.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_sv.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_th.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_tr.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_uk.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_vi.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-CN.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-HK.json +1 -1
- package/assets/esri/widgets/OrientedImageryViewer/t9n/OrientedImageryViewer_zh-TW.json +1 -1
- package/chunks/HUDMaterial.glsl.js +41 -42
- package/chunks/OITBlend.glsl.js +3 -3
- package/chunks/QuadraticBezier.js +1 -1
- package/chunks/chartUtilsAm5.js +1 -1
- package/core/number.js +1 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/interfaces.d.ts +967 -731
- package/intl/messages.js +1 -1
- package/package.json +2 -2
- package/renderers/support/RendererLegendOptions.js +1 -1
- package/rest/featureService/utils.js +1 -1
- package/rest/support/AddressToLocationsParameters.js +1 -1
- package/rest/support/LocationToAddressParameters.js +1 -1
- package/smartMapping/popup/classBreaks.js +1 -1
- package/smartMapping/popup/clusters.js +1 -1
- package/smartMapping/popup/dotDensity.js +1 -1
- package/smartMapping/popup/heatmap.js +1 -1
- package/smartMapping/popup/predominance.js +1 -1
- package/smartMapping/popup/relationship.js +1 -1
- package/smartMapping/popup/simple.js +1 -1
- package/smartMapping/popup/support/utils.js +1 -1
- package/smartMapping/popup/templates.js +1 -1
- package/smartMapping/popup/uniqueValues.js +1 -1
- package/smartMapping/raster/renderers/flow.js +1 -1
- package/smartMapping/renderers/pieChart.js +1 -1
- package/smartMapping/symbology/support/utils.js +1 -1
- package/support/BasemapStyle.js +1 -1
- package/support/revision.js +1 -1
- package/versionManagement/versionAdapters/utils.js +1 -1
- package/views/3d/webgl-engine/effects/transparency/OITBlend.js +1 -1
- package/views/3d/webgl-engine/lib/OrderIndependentTransparency.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOID.glsl.js +2 -2
- package/views/3d/webgl.js +1 -1
- package/views/SelectionManager.js +1 -1
- package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
- package/widgets/Directions/DirectionsViewModel.js +1 -1
- package/widgets/Features.js +1 -1
- package/widgets/LayerList/LayerListItem.js +1 -1
- package/widgets/VersionManagement/VersionManagementViewModel.js +1 -1
- package/widgets/support/widget.js +1 -1
- package/widgets/support/widgetUtils.js +1 -1
- package/applications/Components/CollectionFlattener.d.ts +0 -4
- package/applications/Components/CollectionFlattener.js +0 -5
- package/assets/esri/core/workers/chunks/062da071fd27022f6cb1.js +0 -1
- package/assets/esri/core/workers/chunks/0f0cc8150326ca7bcd6f.js +0 -1
- package/assets/esri/core/workers/chunks/1808a2b023fa04c6ee6c.js +0 -1
- package/assets/esri/core/workers/chunks/1d31b07805af85a4ba7b.js +0 -1
- package/assets/esri/core/workers/chunks/1fb142a533e4ee492a50.js +0 -1
- package/assets/esri/core/workers/chunks/28f3e139a4e3b70d84a4.js +0 -1
- package/assets/esri/core/workers/chunks/2daf5f46e4b137d33f12.js +0 -1
- package/assets/esri/core/workers/chunks/2eb36a16de1a823513cd.js +0 -2
- package/assets/esri/core/workers/chunks/382c3da5ce9b3231f57c.js +0 -1
- package/assets/esri/core/workers/chunks/433798a25dd688cef327.js +0 -1
- package/assets/esri/core/workers/chunks/56a04f5976b926de448e.js +0 -1
- package/assets/esri/core/workers/chunks/6bd6c280c741f8917cc8.js +0 -1
- package/assets/esri/core/workers/chunks/70153bb44fd5b7cfecb8.js +0 -1
- package/assets/esri/core/workers/chunks/78981dee7b5403c32517.js +0 -1
- package/assets/esri/core/workers/chunks/7bb52be0a02fb2a2631c.js +0 -1
- package/assets/esri/core/workers/chunks/80f1f967646f7a7d37ec.js +0 -1
- package/assets/esri/core/workers/chunks/820bb7ea30ad30ce8f42.js +0 -1
- package/assets/esri/core/workers/chunks/95ea191f6a307b73b545.js +0 -1
- package/assets/esri/core/workers/chunks/9fab71f1041c40d976af.js +0 -1
- package/assets/esri/core/workers/chunks/aa31073c7fe3b0e4e499.js +0 -1
- package/assets/esri/core/workers/chunks/af5d74311cec22601f73.js +0 -1
- package/assets/esri/core/workers/chunks/aff820b27ca9585e297e.js +0 -2
- package/assets/esri/core/workers/chunks/bf2d1a700fff4ae0db33.js +0 -1
- package/assets/esri/core/workers/chunks/da6c0c894e7e281169fa.js +0 -1
- package/assets/esri/core/workers/chunks/ed2ebe42d6483470939a.js +0 -2
- package/assets/esri/core/workers/chunks/f3f5c5138de8428bd30f.js +0 -2
- package/assets/esri/core/workers/chunks/f429d95eb986f3d215f3.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7159,7968],{78502:(e,t,s)=>{s.d(t,{Fq:()=>l,SQ:()=>a,Yc:()=>n,Yq:()=>o,uf:()=>i});var r=s(5443);function i(e){if(null==e)return null;if("number"==typeof e)return e;let t=e.toLowerCase();switch(t=t.replaceAll(/\s/g,""),t=t.replaceAll("-",""),t){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return 109404;case"miles":case"mile":case"squaremile":case"squaremiles":return 109439;case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return 109414;case"acres":case"acre":case"ac":return 109402;case"hectares":case"hectare":case"ha":return 109401;case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return 109442;case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return 109405;case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return 109409}return null}function n(e){if(null==e)return null;switch(e.type){case"polygon":case"multipoint":case"polyline":return e.extent;case"point":return new r.A({xmin:e.x,ymin:e.y,xmax:e.x,ymax:e.y,spatialReference:e.spatialReference});case"extent":return e}return null}function a(e){if(null==e)return null;if("number"==typeof e)return e;let t=e.toLowerCase();switch(t=t.replaceAll(/\s/g,""),t=t.replaceAll("-",""),t){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return 9001;case"miles":case"mile":case"squaremile":case"squaremiles":return 9093;case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return 9036;case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return 9096;case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return 9002;case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return 9030}return null}function o(e){if(null==e)return null;const t=e.clone();return void 0!==e.cache._geVersion&&(t.cache._geVersion=e.cache._geVersion),t}function l(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}},97159:(e,t,s)=>{s.d(t,{M:()=>T,a:()=>_,b:()=>S,e:()=>f,f:()=>a,i:()=>m,p:()=>d,r:()=>l,t:()=>o,w:()=>c});var r=s(70333),i=s(84952),n=s(39131);function a(e,t){const s=t?.url?.path;if(e&&s&&(e=(0,i.s2)(e,s,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const s=(0,i.V1)(e,t.portalItem.itemUrl);null!=s&&h.test(s)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(s).path)}return(e=p(e,t?.portal))&&u.test(e)?_(e):e}function o(e,t,s=T.YES){if(null==(e=e&&u.test(e)?y(e):e))return e;!(0,i.oP)(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let r=(0,i.s2)(e);if(t){const s=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(s){const n=p(s,t.portal),a=p(r,t.portal);r=(0,i.V1)(a,n,n),null!=r&&r!==a&&r!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(r)}}return r=f(r,t?.portal),(0,i.oP)(r)&&(r=(0,i.S8)(r)),t?.resources&&t?.portalItem&&!(0,i.oP)(r)&&!(0,i.DB)(r)&&s===T.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(r),compress:!1}),r}function l(e,t,s){return a(e,s)}function c(e,t,s,r){const i=o(e,r);void 0!==i&&(t[s]=i)}const u=/\/items\/([^/]+)\/resources\/(.*)/,h=/^\.\/resources\//;function m(e){const t=e?.match(u)??null;return t?.[1]??null}function d(e){const t=e?.match(u)??null;if(null==t)return null;const s=t[2],r=s.lastIndexOf("/");if(-1===r){const{path:e,extension:t}=(0,i.xw)(s);return{prefix:null,filename:e,extension:t}}const{path:n,extension:a}=(0,i.xw)(s.slice(r+1));return{prefix:s.slice(0,r),filename:n,extension:a}}function f(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,i.T1)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function p(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const s=`${t.urlKey}.${t.customBaseUrl}`,r=(0,i.Xq)();return(0,i.FX)(r,`${r.scheme}://${s}`)?(0,i.T1)(e,t.portalHostname,s):(0,i.T1)(e,s,t.portalHostname)}function _(e){if(!e)return e||null;let t=e;return t&&r.id&&!r.id.findCredential(t)&&(t=(0,n.qG)(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function y(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&r.id&&!r.id.findCredential(t)&&(t=(0,n.qG)(t)),t}var T,g;(g=T||(T={}))[g.YES=0]="YES",g[g.NO=1]="NO";const S=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return T},ensureMainOnlineDomain:f,fromCDNUrl:y,fromJSON:a,itemIdFromResourceUrl:m,prefixAndFilenameFromResourceUrl:d,read:l,toCDNUrl:_,toJSON:o,write:c},Symbol.toStringTag,{value:"Module"}))},32587:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(62788),i=s(95488);class n{constructor(e){this._observable=new i.I,this._map=new Map(e)}get size(){return(0,r.gc)(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(e){const t=this._map.delete(e);return t&&this._observable.notify(),t}entries(){return(0,r.gc)(this._observable),this._map.entries()}forEach(e,t){(0,r.gc)(this._observable),this._map.forEach(((s,r)=>e.call(t,s,r,this)),t)}get(e){return(0,r.gc)(this._observable),this._map.get(e)}has(e){return(0,r.gc)(this._observable),this._map.has(e)}keys(){return(0,r.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._observable.notify(),this}values(){return(0,r.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,r.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}},60999:(e,t,s)=>{s.d(t,{DZ:()=>f,Ke:()=>d,Tj:()=>u,UT:()=>p,jJ:()=>c});var r=s(90237),i=s(69622),n=s(97768),a=s(74887),o=s(10107),l=s(40608);function c(e,t,s){return(0,a.Lx)(e.map(((e,r)=>t.apply(s,[e,r]))))}async function u(e,t,s){return(await(0,a.Lx)(e.map(((e,r)=>t.apply(s,[e,r]))))).map((e=>e.value))}function h(e){return{ok:!0,value:e}}function m(e){return{ok:!1,error:e}}async function d(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return m(e)}}async function f(e){try{return h(await e)}catch(e){return(0,a.QP)(e),m(e)}}function p(e,t){return new _(e,t)}let _=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:s}=this._abortController;this.promise=e(s),this.promise.then((e=>{this._result=h(e),this._cleanup()}),(e=>{this._result=m(e),this._cleanup()})),this._abortHandle=(0,a.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,r._)([(0,o.MZ)()],_.prototype,"value",null),(0,r._)([(0,o.MZ)()],_.prototype,"error",null),(0,r._)([(0,o.MZ)()],_.prototype,"finished",null),(0,r._)([(0,o.MZ)()],_.prototype,"promise",void 0),(0,r._)([(0,o.MZ)()],_.prototype,"_result",void 0),_=(0,r._)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],_)},44729:(e,t,s)=>{s.d(t,{n:()=>o});var r=s(66131),i=s(73444),n=s(96285);function a(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="";const s=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(const r of e.match(s)||[])switch(r){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=r;break;default:r.length>=2&&"["===r.slice(0,1)&&"]"===r.slice(-1)?t+=`'${r.slice(1,-1)}'`:t+=`'${r}'`}return t}class o{constructor(e,t,s){this._year=e,this._month=t,this._day=s,this.declaredRootClass="esri.core.sql.dateonly"}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(e){return e instanceof o&&e.day===this.day&&e.month===this.month&&e.year===this.year}clone(){return new o(this._year,this._month,this._day)}toDateTime(e){return n.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,r.mT)(e)})}toDateTimeLuxon(e){return n.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,r.mT)(e)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(e=null,t=!0){if(null===e||""===e)return this.toString();if(t&&(e=a(e)),!e)return"";const s=this.toDateTime("unknown");return r.lY.dateTimeToArcadeDate(s).toFormat(e,{locale:(0,i.JK)(),numberingSystem:"latn"})}toArcadeDate(){const e=this.toDateTime("unknown");return r.lY.dateTimeToArcadeDate(e)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(e,t){return o.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}toUTCDateTime(){return n.c9.utc(this.year,this.month,this.day,0,0,0,0)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}static fromMilliseconds(e){const t=n.c9.fromMillis(e,{zone:n.mQ.utcInstance});return t.isValid?o.fromParts(t.year,t.month,t.day):null}static fromSeconds(e){const t=n.c9.fromSeconds(e,{zone:n.mQ.utcInstance});return t.isValid?o.fromParts(t.year,t.month,t.day):null}static fromReader(e){if(!e)return null;const t=e.split("-");return 3!==t.length?null:new o(parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10))}static fromParts(e,t,s){const r=new o(e,t,s);return!1===r.isValid?null:r}static fromDateJS(e){return o.fromParts(e.getFullYear(),e.getMonth()+1,e.getDay())}static fromDateTime(e){return o.fromParts(e.year,e.month,e.day)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e)return null;if(null===e)return null;const s=[];if(t)(t=a(t))&&s.push(t);else if(null===t||""===t){const t=n.c9.fromISO(e,{setZone:!0});return t.isValid?o.fromParts(t.year,t.month,t.day):null}for(const r of s){const s=n.c9.fromFormat(e,t??r);if(s.isValid)return new o(s.year,s.month,s.day)}return null}static fromNow(e="system"){const t=n.c9.fromJSDate(new Date).setZone((0,r.mT)(e));return new o(t.year,t.month,t.day)}}},15032:(e,t,s)=>{s.d(t,{k:()=>o});var r=s(78502),i=s(73444),n=s(96285);function a(e){if(!e)return"";const t=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g;let s="";for(const r of e.match(t)||[])switch(r){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":s+=r;break;case"A":case"a":s+="a";break;default:s+=`'${r}'`}return s}class o{constructor(e,t,s,r){this._hour=e,this._minute=t,this._second=s,this._millisecond=r,this.declaredRootClass="esri.core.sql.timeonly"}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(e){return e instanceof o&&e.hour===this.hour&&e.minute===this.minute&&e.second===this.second&&e.millisecond===this.millisecond}clone(){return new o(this.hour,this.minute,this.second,this.millisecond)}isValid(){return(0,r.Fq)(this.hour)&&(0,r.Fq)(this.minute)&&(0,r.Fq)(this.second)&&(0,r.Fq)(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(e=null){return null===e||""===e?this.toString():(e=a(e))?n.c9.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(e,{locale:(0,i.JK)(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(e,t,s,r){const i=new o(e,t,s,r);return i.isValid()?i:null}static fromReader(e){if(!e)return null;const t=e.split(":");return 3!==t.length?null:new o(parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10),0)}static fromMilliseconds(e){if(e>864e5||e<0)return null;const t=Math.floor(e/1e3%60),s=Math.floor(e/6e4%60),r=Math.floor(e/36e5%24),i=Math.floor(e%1e3);return new o(r,s,t,i)}static fromDateJS(e){return new o(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}static fromDateTime(e){return new o(e.hour,e.minute,e.second,e.millisecond)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e)return null;if(null===e)return null;const s=[];t?(t=a(t))&&s.push(t):null!==t&&""!==t||(s.push("HH:mm:ss"),s.push("HH:mm:ss.SSS"),s.push("hh:mm:ss a"),s.push("hh:mm:ss.SSS a"),s.push("HH:mm"),s.push("hh:mm a"),s.push("H:mm"),s.push("h:mm a"),s.push("H:mm:ss"),s.push("h:mm:ss a"),s.push("H:mm:ss.SSS"),s.push("h:mm:ss.SSS a"));for(const t of s){const s=n.c9.fromFormat(e,t);if(s.isValid)return new o(s.hour,s.minute,s.second,s.millisecond)}return null}plus(e,t){switch(e){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return o.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}return null}toUTCDateTime(){return n.c9.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}}},95466:(e,t,s)=>{s.d(t,{A:()=>m});var r=s(49186),i=s(25482),n=s(53966),a=s(91869),o=s(3330),l=s(30524),c=s(56400),u=s(96285);const h=new Map;class m{static fromJSON(e){return new m(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new m(e.fields??[],_(e))}static fromLayerJSON(e){return new m(e.fields??[],_(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const s=[];for(const e of this.fields){const t=e?.name,r=f(t);if(t&&r){const i=d(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(r,e),s.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.te)(e)||(0,l.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}s.sort(),this.uid=s.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.te)(e)||(0,l.Xz)(e)||e.nullable||void 0!==(0,l.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(d(e))??this._normalizedFieldsMap.get(f(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.A.getLogger("esri.layers.support.FieldsIndex").error(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),c.n$):p.has(t.type)?c.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===c.L5?o.GB.instance:t===c.n$?u.mQ.utcInstance:(0,a.tE)(h,t,(()=>u.oh.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>i.A.isSerializable(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function d(e){return e.trim().toLowerCase()}function f(e){return(0,l.rS)(e)?.toLowerCase()??""}const p=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function _(e){const t=new Map;if(!e.fields)return t;const s=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:i}=e,n=(r?"startField"in r?r.startField:r.startTimeField:"")??"",a=(r?"endField"in r?r.endField:r.endTimeField:"")??"",o=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,l=i?function(e){return"timeZone"in e}(i)?i.timeZone??o:i.dateFieldsTimeReference?(0,c.ZS)(i.dateFieldsTimeReference):o??c.n$:null,u=r?function(e){return"timeZone"in e}(r)?r.timeZone??o:r.timeReference?(0,c.ZS)(r.timeReference):o:null,h=new Map([[d(i?.creationDateField??""),l],[d(i?.editDateField??""),l],[d(n),u],[d(a),u]]);for(const{name:r,type:i}of e.fields)if(p.has(i))t.set(r,c.L5);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(r,null);else if(s)t.set(r,c.L5);else{const e=h.get(d(r??""))??o;t.set(r,e)}return t}},58501:(e,t,s)=>{s.d(t,{q:()=>i});var r=s(62815);function i(e,t,s){if(!s?.features||!s.hasZ)return;const i=(0,r.N)(s.geometryType,t,e.outSpatialReference);if(null!=i)for(const e of s.features)i(e.geometry)}},48852:(e,t,s)=>{s.d(t,{g:()=>c});var r=s(4576),i=(s(44208),s(53966)),n=s(34275),a=s(94656),o=s(63907);const l=()=>i.A.getLogger("esri.views.webgl.BufferObject");class c{static createIndex(e,t,s){return new c(e,o.NZ.ELEMENT_ARRAY_BUFFER,t,s)}static createVertex(e,t,s){return new c(e,o.NZ.ARRAY_BUFFER,t,s)}static createUniform(e,t,s){return new c(e,o.NZ.UNIFORM_BUFFER,t,s)}static createPixelPack(e,t=o._U.STREAM_READ,s){const r=new c(e,o.NZ.PIXEL_PACK_BUFFER,t);return s&&r.setSize(s),r}static createPixelUnpack(e,t=o._U.STREAM_DRAW,s){return new c(e,o.NZ.PIXEL_UNPACK_BUFFER,t,s)}static createTransformFeedback(e,t=o._U.STATIC_DRAW,s){const r=new c(e,o.NZ.TRANSFORM_FEEDBACK_BUFFER,t);return r.setSize(s),r}constructor(e,t,s,r){this._context=e,this.bufferType=t,this.usage=s,this._glName=null,this._size=-1,this._indexType=void 0,e.instanceCounter.increment(o.vt.BufferObject,this),this._glName=this._context.gl.createBuffer(),(0,a.Y2)(this._context.gl),r&&this.setData(r)}get glName(){return this._glName}get size(){return this._size}get indexType(){return this._indexType}get usedMemory(){if(this.bufferType===o.NZ.ELEMENT_ARRAY_BUFFER){if(this._indexType===o.pe.UNSIGNED_INT)return 4*this._size;if(this._indexType===o.pe.UNSIGNED_SHORT)return 2*this._size}return this._size}get _isVAOAware(){return this.bufferType===o.NZ.ELEMENT_ARRAY_BUFFER||this.bufferType===o.NZ.ARRAY_BUFFER}dispose(){this._context?.gl?(this._glName&&(this._context.gl.deleteBuffer(this._glName),this._glName=null),this._context.instanceCounter.decrement(o.vt.BufferObject,this),this._context=null):this._glName&&l().warn("Leaked WebGL buffer object")}setSize(e,t=null){if(this.bufferType===o.NZ.ELEMENT_ARRAY_BUFFER&&null!=t)switch(this._indexType=t,t){case o.pe.UNSIGNED_SHORT:e*=2;break;case o.pe.UNSIGNED_INT:e*=4}this._setBufferData(e)}setData(e){if(!e)return;let t=e.byteLength;this.bufferType===o.NZ.ELEMENT_ARRAY_BUFFER&&((0,n.mg)(e)?this._indexType=o.pe.UNSIGNED_BYTE:(0,n.jq)(e)?(t/=2,this._indexType=o.pe.UNSIGNED_SHORT):(0,n.XJ)(e)&&(t/=4,this._indexType=o.pe.UNSIGNED_INT)),this._setBufferData(t,e)}_setBufferData(e,t=null){this._size=e;const s=this._context.getBoundVAO();this._isVAOAware&&this._context.bindVAO(null),this._context.bindBuffer(this);const r=this._context.gl;null!=t?r.bufferData(this.bufferType,t,this.usage):r.bufferData(this.bufferType,e,this.usage),(0,a.Y2)(r),this._isVAOAware&&this._context.bindVAO(s)}setSubData(e,t,s,r){if(!e)return;const i=this._context.getBoundVAO();this._isVAOAware&&this._context.bindVAO(null),this._context.bindBuffer(this);const{gl:n}=this._context;n.bufferSubData(this.bufferType,t*e.BYTES_PER_ELEMENT,e,s,r-s),(0,a.Y2)(n),this._isVAOAware&&this._context.bindVAO(i)}getSubData(e,t=0,s,i){if(s<0||i<0)return;const n=function(e){return(0,r.Xj)(e)}(e)?e.BYTES_PER_ELEMENT:1;if(n*((s??0)+(i??0))>e.byteLength)return;t+n*(i??0)>this.usedMemory&&l().warn("Potential problem getting subdata: requested data exceeds buffer size!");const a=this._context.gl;this.bufferType===o.NZ.TRANSFORM_FEEDBACK_BUFFER?(this._context.bindBuffer(this,o.NZ.TRANSFORM_FEEDBACK_BUFFER),a.getBufferSubData(o.NZ.TRANSFORM_FEEDBACK_BUFFER,t,e,s,i),this._context.unbindBuffer(o.NZ.TRANSFORM_FEEDBACK_BUFFER)):(this._context.bindBuffer(this,o.NZ.COPY_READ_BUFFER),a.getBufferSubData(o.NZ.COPY_READ_BUFFER,t,e,s,i),this._context.unbindBuffer(o.NZ.COPY_READ_BUFFER))}async getSubDataAsync(e,t=0,s,r){await this._context.clientWaitAsync(),this.getSubData(e,t,s,r)}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5263,7159],{78502:(e,t,s)=>{s.d(t,{Fq:()=>l,SQ:()=>a,Yc:()=>n,Yq:()=>o,uf:()=>i});var r=s(5443);function i(e){if(null==e)return null;if("number"==typeof e)return e;let t=e.toLowerCase();switch(t=t.replaceAll(/\s/g,""),t=t.replaceAll("-",""),t){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return 109404;case"miles":case"mile":case"squaremile":case"squaremiles":return 109439;case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return 109414;case"acres":case"acre":case"ac":return 109402;case"hectares":case"hectare":case"ha":return 109401;case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return 109442;case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return 109405;case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return 109409}return null}function n(e){if(null==e)return null;switch(e.type){case"polygon":case"multipoint":case"polyline":return e.extent;case"point":return new r.A({xmin:e.x,ymin:e.y,xmax:e.x,ymax:e.y,spatialReference:e.spatialReference});case"extent":return e}return null}function a(e){if(null==e)return null;if("number"==typeof e)return e;let t=e.toLowerCase();switch(t=t.replaceAll(/\s/g,""),t=t.replaceAll("-",""),t){case"meters":case"meter":case"m":case"squaremeters":case"squaremeter":return 9001;case"miles":case"mile":case"squaremile":case"squaremiles":return 9093;case"kilometers":case"kilometer":case"squarekilometers":case"squarekilometer":case"km":return 9036;case"yard":case"yd":case"yards":case"squareyards":case"squareyard":return 9096;case"feet":case"ft":case"foot":case"squarefeet":case"squarefoot":return 9002;case"nmi":case"nauticalmile":case"nauticalmiles":case"squarenauticalmile":case"squarenauticalmiles":return 9030}return null}function o(e){if(null==e)return null;const t=e.clone();return void 0!==e.cache._geVersion&&(t.cache._geVersion=e.cache._geVersion),t}function l(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}},97159:(e,t,s)=>{s.d(t,{M:()=>T,a:()=>_,b:()=>S,e:()=>f,f:()=>a,i:()=>m,p:()=>d,r:()=>l,t:()=>o,w:()=>c});var r=s(70333),i=s(84952),n=s(39131);function a(e,t){const s=t?.url?.path;if(e&&s&&(e=(0,i.s2)(e,s,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const s=(0,i.V1)(e,t.portalItem.itemUrl);null!=s&&h.test(s)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(s).path)}return(e=p(e,t?.portal))&&u.test(e)?_(e):e}function o(e,t,s=T.YES){if(null==(e=e&&u.test(e)?y(e):e))return e;!(0,i.oP)(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let r=(0,i.s2)(e);if(t){const s=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(s){const n=p(s,t.portal),a=p(r,t.portal);r=(0,i.V1)(a,n,n),null!=r&&r!==a&&r!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(r)}}return r=f(r,t?.portal),(0,i.oP)(r)&&(r=(0,i.S8)(r)),t?.resources&&t?.portalItem&&!(0,i.oP)(r)&&!(0,i.DB)(r)&&s===T.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(r),compress:!1}),r}function l(e,t,s){return a(e,s)}function c(e,t,s,r){const i=o(e,r);void 0!==i&&(t[s]=i)}const u=/\/items\/([^/]+)\/resources\/(.*)/,h=/^\.\/resources\//;function m(e){const t=e?.match(u)??null;return t?.[1]??null}function d(e){const t=e?.match(u)??null;if(null==t)return null;const s=t[2],r=s.lastIndexOf("/");if(-1===r){const{path:e,extension:t}=(0,i.xw)(s);return{prefix:null,filename:e,extension:t}}const{path:n,extension:a}=(0,i.xw)(s.slice(r+1));return{prefix:s.slice(0,r),filename:n,extension:a}}function f(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,i.T1)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function p(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const s=`${t.urlKey}.${t.customBaseUrl}`,r=(0,i.Xq)();return(0,i.FX)(r,`${r.scheme}://${s}`)?(0,i.T1)(e,t.portalHostname,s):(0,i.T1)(e,s,t.portalHostname)}function _(e){if(!e)return e||null;let t=e;return t&&r.id&&!r.id.findCredential(t)&&(t=(0,n.qG)(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function y(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&r.id&&!r.id.findCredential(t)&&(t=(0,n.qG)(t)),t}var T,g;(g=T||(T={}))[g.YES=0]="YES",g[g.NO=1]="NO";const S=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return T},ensureMainOnlineDomain:f,fromCDNUrl:y,fromJSON:a,itemIdFromResourceUrl:m,prefixAndFilenameFromResourceUrl:d,read:l,toCDNUrl:_,toJSON:o,write:c},Symbol.toStringTag,{value:"Module"}))},32587:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(62788),i=s(95488);class n{constructor(e){this._observable=new i.I,this._map=new Map(e)}get size(){return(0,r.gc)(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(e){const t=this._map.delete(e);return t&&this._observable.notify(),t}entries(){return(0,r.gc)(this._observable),this._map.entries()}forEach(e,t){(0,r.gc)(this._observable),this._map.forEach(((s,r)=>e.call(t,s,r,this)),t)}get(e){return(0,r.gc)(this._observable),this._map.get(e)}has(e){return(0,r.gc)(this._observable),this._map.has(e)}keys(){return(0,r.gc)(this._observable),this._map.keys()}set(e,t){return this._map.set(e,t),this._observable.notify(),this}values(){return(0,r.gc)(this._observable),this._map.values()}[Symbol.iterator](){return(0,r.gc)(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}},60999:(e,t,s)=>{s.d(t,{DZ:()=>f,Ke:()=>d,Tj:()=>u,UT:()=>p,jJ:()=>c});var r=s(90237),i=s(69622),n=s(97768),a=s(74887),o=s(10107),l=s(40608);function c(e,t,s){return(0,a.Lx)(e.map(((e,r)=>t.apply(s,[e,r]))))}async function u(e,t,s){return(await(0,a.Lx)(e.map(((e,r)=>t.apply(s,[e,r]))))).map((e=>e.value))}function h(e){return{ok:!0,value:e}}function m(e){return{ok:!1,error:e}}async function d(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return h(await e)}catch(e){return m(e)}}async function f(e){try{return h(await e)}catch(e){return(0,a.QP)(e),m(e)}}function p(e,t){return new _(e,t)}let _=class extends i.A{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,n.DC)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:s}=this._abortController;this.promise=e(s),this.promise.then((e=>{this._result=h(e),this._cleanup()}),(e=>{this._result=m(e),this._cleanup()})),this._abortHandle=(0,a.u7)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,n.xt)(this._abortHandle),this._abortController=null}};(0,r._)([(0,o.MZ)()],_.prototype,"value",null),(0,r._)([(0,o.MZ)()],_.prototype,"error",null),(0,r._)([(0,o.MZ)()],_.prototype,"finished",null),(0,r._)([(0,o.MZ)()],_.prototype,"promise",void 0),(0,r._)([(0,o.MZ)()],_.prototype,"_result",void 0),_=(0,r._)([(0,l.$)("esri.core.asyncUtils.ReactiveTask")],_)},44729:(e,t,s)=>{s.d(t,{n:()=>o});var r=s(66131),i=s(73444),n=s(96285);function a(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="";const s=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(const r of e.match(s)||[])switch(r){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=r;break;default:r.length>=2&&"["===r.slice(0,1)&&"]"===r.slice(-1)?t+=`'${r.slice(1,-1)}'`:t+=`'${r}'`}return t}class o{constructor(e,t,s){this._year=e,this._month=t,this._day=s,this.declaredRootClass="esri.core.sql.dateonly"}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(e){return e instanceof o&&e.day===this.day&&e.month===this.month&&e.year===this.year}clone(){return new o(this._year,this._month,this._day)}toDateTime(e){return n.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,r.mT)(e)})}toDateTimeLuxon(e){return n.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,r.mT)(e)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(e=null,t=!0){if(null===e||""===e)return this.toString();if(t&&(e=a(e)),!e)return"";const s=this.toDateTime("unknown");return r.lY.dateTimeToArcadeDate(s).toFormat(e,{locale:(0,i.JK)(),numberingSystem:"latn"})}toArcadeDate(){const e=this.toDateTime("unknown");return r.lY.dateTimeToArcadeDate(e)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(e,t){return o.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}toUTCDateTime(){return n.c9.utc(this.year,this.month,this.day,0,0,0,0)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}static fromMilliseconds(e){const t=n.c9.fromMillis(e,{zone:n.mQ.utcInstance});return t.isValid?o.fromParts(t.year,t.month,t.day):null}static fromSeconds(e){const t=n.c9.fromSeconds(e,{zone:n.mQ.utcInstance});return t.isValid?o.fromParts(t.year,t.month,t.day):null}static fromReader(e){if(!e)return null;const t=e.split("-");return 3!==t.length?null:new o(parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10))}static fromParts(e,t,s){const r=new o(e,t,s);return!1===r.isValid?null:r}static fromDateJS(e){return o.fromParts(e.getFullYear(),e.getMonth()+1,e.getDay())}static fromDateTime(e){return o.fromParts(e.year,e.month,e.day)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e)return null;if(null===e)return null;const s=[];if(t)(t=a(t))&&s.push(t);else if(null===t||""===t){const t=n.c9.fromISO(e,{setZone:!0});return t.isValid?o.fromParts(t.year,t.month,t.day):null}for(const r of s){const s=n.c9.fromFormat(e,t??r);if(s.isValid)return new o(s.year,s.month,s.day)}return null}static fromNow(e="system"){const t=n.c9.fromJSDate(new Date).setZone((0,r.mT)(e));return new o(t.year,t.month,t.day)}}},15032:(e,t,s)=>{s.d(t,{k:()=>o});var r=s(78502),i=s(73444),n=s(96285);function a(e){if(!e)return"";const t=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g;let s="";for(const r of e.match(t)||[])switch(r){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":s+=r;break;case"A":case"a":s+="a";break;default:s+=`'${r}'`}return s}class o{constructor(e,t,s,r){this._hour=e,this._minute=t,this._second=s,this._millisecond=r,this.declaredRootClass="esri.core.sql.timeonly"}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(e){return e instanceof o&&e.hour===this.hour&&e.minute===this.minute&&e.second===this.second&&e.millisecond===this.millisecond}clone(){return new o(this.hour,this.minute,this.second,this.millisecond)}isValid(){return(0,r.Fq)(this.hour)&&(0,r.Fq)(this.minute)&&(0,r.Fq)(this.second)&&(0,r.Fq)(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(e=null){return null===e||""===e?this.toString():(e=a(e))?n.c9.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(e,{locale:(0,i.JK)(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(e,t,s,r){const i=new o(e,t,s,r);return i.isValid()?i:null}static fromReader(e){if(!e)return null;const t=e.split(":");return 3!==t.length?null:new o(parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10),0)}static fromMilliseconds(e){if(e>864e5||e<0)return null;const t=Math.floor(e/1e3%60),s=Math.floor(e/6e4%60),r=Math.floor(e/36e5%24),i=Math.floor(e%1e3);return new o(r,s,t,i)}static fromDateJS(e){return new o(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}static fromDateTime(e){return new o(e.hour,e.minute,e.second,e.millisecond)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,t=null){if(""===e)return null;if(null===e)return null;const s=[];t?(t=a(t))&&s.push(t):null!==t&&""!==t||(s.push("HH:mm:ss"),s.push("HH:mm:ss.SSS"),s.push("hh:mm:ss a"),s.push("hh:mm:ss.SSS a"),s.push("HH:mm"),s.push("hh:mm a"),s.push("H:mm"),s.push("h:mm a"),s.push("H:mm:ss"),s.push("h:mm:ss a"),s.push("H:mm:ss.SSS"),s.push("h:mm:ss.SSS a"));for(const t of s){const s=n.c9.fromFormat(e,t);if(s.isValid)return new o(s.hour,s.minute,s.second,s.millisecond)}return null}plus(e,t){switch(e){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return o.fromDateTime(this.toUTCDateTime().plus({[e]:t}))}return null}toUTCDateTime(){return n.c9.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(e,t){switch(t.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===t?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}}},47566:(e,t,s)=>{s(97770),s(18047),s(71754),s(73444);var r=s(10838),i=s(78888),n=s(49186);async function a(e){if(null!=o.fetchBundleAsset)return o.fetchBundleAsset(e);const t=await(0,i.A)(e,{responseType:"text"});return JSON.parse(t.data)}const o={};var l,c=s(2741);(0,r.ao)((l={pattern:"esri/",location:c.s},new class{constructor({base:e="",pattern:t,location:s=new URL(window.location.href)}){let r;r="string"==typeof s?e=>new URL(e,new URL(s,window.location.href)).href:s instanceof URL?e=>new URL(e,s).href:s,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=r,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,s,i){const o=t.exec(s);if(!o)throw new n.A("esri-intl:invalid-bundle",`Bundle id "${s}" is not compatible with the pattern "${t}"`);const l=o[1]?`${o[1]}/`:"",c=o[2],u=(0,r.xO)(i),h=`${l}${c}.json`,m=u?`${l}${c}_${u}.json`:h;let d;try{d=await a(e(m))}catch(t){if(m===h)throw new n.A("intl:unknown-bundle",`Bundle "${s}" cannot be loaded`,{error:t});try{d=await a(e(h))}catch(e){throw new n.A("intl:unknown-bundle",`Bundle "${s}" cannot be loaded`,{error:e})}}return d}(this.getAssetUrl,this.matcher,e,t)}}(l)))},18047:(e,t,s)=>{s.d(t,{ZV:()=>o});var r=s(73444);const i={ar:"ar-u-nu-latn"};let n=new WeakMap,a={};function o(e,t){return Object.is(e,-0)&&(e=0),function(e){const t=e||a;if(!n.has(t)){const s=(0,r.JK)(),a=i[(0,r.JK)()]||s;n.set(t,new Intl.NumberFormat(a,e))}return n.get(t)}(t).format(e)}(0,r.Ml)((()=>{n=new WeakMap,a={}})),new Map},71754:(e,t,s)=>{s.d(t,{V:()=>c});var r=s(53966),i=s(93637),n=s(799),a=s(97770),o=s(18047);const l=()=>r.A.getLogger("esri.intl.substitute");function c(e,t,s={}){const{format:r={}}=s;return(0,n.HC)(e,(e=>function(e,t,s){let r,n;const a=e.indexOf(":");if(-1===a?r=e.trim():(r=e.slice(0,a).trim(),n=e.slice(a+1).trim()),!r)return"";const o=(0,i.wc)(r,t);if(null==o)return"";const l=(n?s?.[n]:null)??s?.[r];return l?u(o,l):n?h(o,n):m(o)}(e,t,r)))}function u(e,t){switch(t.type){case"date":return(0,a.Yq)(e,t.intlOptions);case"number":return(0,o.ZV)(e,t.intlOptions);default:return l().warn("missing format descriptor for key {key}"),m(e)}}function h(e,t){switch(t.toLowerCase()){case"dateformat":return(0,a.Yq)(e);case"numberformat":return(0,o.ZV)(e);default:return l().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,a.Yq)(e):/^numberformat/i.test(t)?(0,o.ZV)(e):m(e)}}function m(e){switch(typeof e){case"string":return e;case"number":return(0,o.ZV)(e);case"boolean":return""+e;default:return e instanceof Date?(0,a.Yq)(e):""}}},95466:(e,t,s)=>{s.d(t,{A:()=>m});var r=s(49186),i=s(25482),n=s(53966),a=s(91869),o=s(3330),l=s(30524),c=s(56400),u=s(96285);const h=new Map;class m{static fromJSON(e){return new m(e.fields,e.timeZoneByFieldName)}static fromLayer(e){return new m(e.fields??[],_(e))}static fromLayerJSON(e){return new m(e.fields??[],_(e))}constructor(e=[],t){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=e||[],this._timeZoneByFieldName=t?new Map(t):null;const s=[];for(const e of this.fields){const t=e?.name,r=f(t);if(t&&r){const i=d(t);this._fieldsMap.set(t,e),this._fieldsMap.set(i,e),this._normalizedFieldsMap.set(r,e),s.push(`${i}:${e.type}:${this._timeZoneByFieldName?.get(t)}`),(0,l.vE)(e)?(this.dateFields.push(e),this._dateFieldsSet.add(e)):(0,l.WA)(e)&&(this._numericFieldsSet.add(e),this.numericFields.push(e)),(0,l.te)(e)||(0,l.Xz)(e)||(e.editable=null==e.editable||!!e.editable,e.nullable=null==e.nullable||!!e.nullable)}}s.sort(),this.uid=s.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(const e of this.fields)(0,l.te)(e)||(0,l.Xz)(e)||e.nullable||void 0!==(0,l.lD)(e)||this._requiredFields.push(e)}return this._requiredFields}equals(e){return this.uid===e?.uid}has(e){return null!=this.get(e)}get(e){if(!e)return;let t=this._fieldsMap.get(e);return t||(t=this._fieldsMap.get(d(e))??this._normalizedFieldsMap.get(f(e)),t&&this._fieldsMap.set(e,t),t)}getTimeZone(e){const t=this.get(e&&"string"!=typeof e?e.name:e);return t?this._timeZoneByFieldName?this._timeZoneByFieldName.get(t.name):"date"===t.type||"esriFieldTypeDate"===t.type?(n.A.getLogger("esri.layers.support.FieldsIndex").error(new r.A("getTimeZone:no-timezone-information",`no time zone information for field '${t.name}'`)),c.n$):p.has(t.type)?c.L5:null:null}getLuxonTimeZone(e){const t=this.getTimeZone(e);return t?t===c.L5?o.GB.instance:t===c.n$?u.mQ.utcInstance:(0,a.tE)(h,t,(()=>u.oh.create(t))):null}isDateField(e){return this._dateFieldsSet.has(this.get(e))}isTimeOnlyField(e){return(0,l.OH)(this.get(e))}isNumericField(e){return this._numericFieldsSet.has(this.get(e))}normalizeFieldName(e){return this.get(e)?.name??void 0}toJSON(){return{fields:this.fields.map((e=>i.A.isSerializable(e)?e.toJSON():e)),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}}function d(e){return e.trim().toLowerCase()}function f(e){return(0,l.rS)(e)?.toLowerCase()??""}const p=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"]);function _(e){const t=new Map;if(!e.fields)return t;const s=!0===e.datesInUnknownTimezone,{timeInfo:r,editFieldsInfo:i}=e,n=(r?"startField"in r?r.startField:r.startTimeField:"")??"",a=(r?"endField"in r?r.endField:r.endTimeField:"")??"",o=function(e){return"dateFieldsTimeZone"in e}(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?(0,c.ZS)(e.dateFieldsTimeReference):null,l=i?function(e){return"timeZone"in e}(i)?i.timeZone??o:i.dateFieldsTimeReference?(0,c.ZS)(i.dateFieldsTimeReference):o??c.n$:null,u=r?function(e){return"timeZone"in e}(r)?r.timeZone??o:r.timeReference?(0,c.ZS)(r.timeReference):o:null,h=new Map([[d(i?.creationDateField??""),l],[d(i?.editDateField??""),l],[d(n),u],[d(a),u]]);for(const{name:r,type:i}of e.fields)if(p.has(i))t.set(r,c.L5);else if("date"!==i&&"esriFieldTypeDate"!==i)t.set(r,null);else if(s)t.set(r,c.L5);else{const e=h.get(d(r??""))??o;t.set(r,e)}return t}},58501:(e,t,s)=>{s.d(t,{q:()=>i});var r=s(62815);function i(e,t,s){if(!s?.features||!s.hasZ)return;const i=(0,r.N)(s.geometryType,t,e.outSpatialReference);if(null!=i)for(const e of s.features)i(e.geometry)}},48852:(e,t,s)=>{s.d(t,{g:()=>c});var r=s(4576),i=(s(44208),s(53966)),n=s(34275),a=s(94656),o=s(63907);const l=()=>i.A.getLogger("esri.views.webgl.BufferObject");class c{static createIndex(e,t,s){return new c(e,o.NZ.ELEMENT_ARRAY_BUFFER,t,s)}static createVertex(e,t,s){return new c(e,o.NZ.ARRAY_BUFFER,t,s)}static createUniform(e,t,s){return new c(e,o.NZ.UNIFORM_BUFFER,t,s)}static createPixelPack(e,t=o._U.STREAM_READ,s){const r=new c(e,o.NZ.PIXEL_PACK_BUFFER,t);return s&&r.setSize(s),r}static createPixelUnpack(e,t=o._U.STREAM_DRAW,s){return new c(e,o.NZ.PIXEL_UNPACK_BUFFER,t,s)}static createTransformFeedback(e,t=o._U.STATIC_DRAW,s){const r=new c(e,o.NZ.TRANSFORM_FEEDBACK_BUFFER,t);return r.setSize(s),r}constructor(e,t,s,r){this._context=e,this.bufferType=t,this.usage=s,this._glName=null,this._size=-1,this._indexType=void 0,e.instanceCounter.increment(o.vt.BufferObject,this),this._glName=this._context.gl.createBuffer(),(0,a.Y2)(this._context.gl),r&&this.setData(r)}get glName(){return this._glName}get size(){return this._size}get indexType(){return this._indexType}get usedMemory(){if(this.bufferType===o.NZ.ELEMENT_ARRAY_BUFFER){if(this._indexType===o.pe.UNSIGNED_INT)return 4*this._size;if(this._indexType===o.pe.UNSIGNED_SHORT)return 2*this._size}return this._size}get _isVAOAware(){return this.bufferType===o.NZ.ELEMENT_ARRAY_BUFFER||this.bufferType===o.NZ.ARRAY_BUFFER}dispose(){this._context?.gl?(this._glName&&(this._context.gl.deleteBuffer(this._glName),this._glName=null),this._context.instanceCounter.decrement(o.vt.BufferObject,this),this._context=null):this._glName&&l().warn("Leaked WebGL buffer object")}setSize(e,t=null){if(this.bufferType===o.NZ.ELEMENT_ARRAY_BUFFER&&null!=t)switch(this._indexType=t,t){case o.pe.UNSIGNED_SHORT:e*=2;break;case o.pe.UNSIGNED_INT:e*=4}this._setBufferData(e)}setData(e){if(!e)return;let t=e.byteLength;this.bufferType===o.NZ.ELEMENT_ARRAY_BUFFER&&((0,n.mg)(e)?this._indexType=o.pe.UNSIGNED_BYTE:(0,n.jq)(e)?(t/=2,this._indexType=o.pe.UNSIGNED_SHORT):(0,n.XJ)(e)&&(t/=4,this._indexType=o.pe.UNSIGNED_INT)),this._setBufferData(t,e)}_setBufferData(e,t=null){this._size=e;const s=this._context.getBoundVAO();this._isVAOAware&&this._context.bindVAO(null),this._context.bindBuffer(this);const r=this._context.gl;null!=t?r.bufferData(this.bufferType,t,this.usage):r.bufferData(this.bufferType,e,this.usage),(0,a.Y2)(r),this._isVAOAware&&this._context.bindVAO(s)}setSubData(e,t,s,r){if(!e)return;const i=this._context.getBoundVAO();this._isVAOAware&&this._context.bindVAO(null),this._context.bindBuffer(this);const{gl:n}=this._context;n.bufferSubData(this.bufferType,t*e.BYTES_PER_ELEMENT,e,s,r-s),(0,a.Y2)(n),this._isVAOAware&&this._context.bindVAO(i)}getSubData(e,t=0,s,i){if(s<0||i<0)return;const n=function(e){return(0,r.Xj)(e)}(e)?e.BYTES_PER_ELEMENT:1;if(n*((s??0)+(i??0))>e.byteLength)return;t+n*(i??0)>this.usedMemory&&l().warn("Potential problem getting subdata: requested data exceeds buffer size!");const a=this._context.gl;this.bufferType===o.NZ.TRANSFORM_FEEDBACK_BUFFER?(this._context.bindBuffer(this,o.NZ.TRANSFORM_FEEDBACK_BUFFER),a.getBufferSubData(o.NZ.TRANSFORM_FEEDBACK_BUFFER,t,e,s,i),this._context.unbindBuffer(o.NZ.TRANSFORM_FEEDBACK_BUFFER)):(this._context.bindBuffer(this,o.NZ.COPY_READ_BUFFER),a.getBufferSubData(o.NZ.COPY_READ_BUFFER,t,e,s,i),this._context.unbindBuffer(o.NZ.COPY_READ_BUFFER))}async getSubDataAsync(e,t=0,s,r){await this._context.clientWaitAsync(),this.getSubData(e,t,s,r)}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[655],{92474:(t,e,r)=>{r.d(e,{A:()=>m});var o=r(90237),s=r(49186),i=r(97768),l=r(61893),a=r(74887),n=r(67076),u=r(10107),p=r(40608);const d="loaded",h=t=>{let e=class extends t{constructor(...t){super(...t),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise((t=>{const e=this.load.bind(this);this.load=r=>{const o=new Promise(((t,e)=>{const o=(0,a.NY)(r,e);this.destroyed&&e(new s.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(t,e).finally((()=>{o&&o.remove()}))}));if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const t=this._loadController=new AbortController;e({signal:t.signal})}return t(),o}}))),this.when((()=>{this._set("loadStatus",d),this._loadController=null}),(t=>{this._set("loadStatus","failed"),this._set("loadError",t),this._loadController=null}))}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}load(){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new s.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,o._)([(0,u.MZ)({readOnly:!0})],e.prototype,"loaded",null),(0,o._)([(0,u.MZ)({readOnly:!0})],e.prototype,"loadError",void 0),(0,o._)([(0,u.MZ)({clonable:!1})],e.prototype,"loadStatus",void 0),(0,o._)([(0,u.MZ)({type:[n.A],readOnly:!0})],e.prototype,"loadWarnings",null),e=(0,o._)([(0,p.$)("esri.core.Loadable")],e),e};let y=class extends(h(l.A)){};var c;y=(0,o._)([(0,p.$)("esri.core.Loadable")],y),(c=y||(y={})).LoadableMixin=h,c.isLoadable=function(t){return!(!t||!t.load)};const m=y},61893:(t,e,r)=>{r.d(e,{A:()=>h});var o,s,i=r(90237),l=r(69622),a=r(74887),n=r(40608);(s=o||(o={}))[s.PENDING=0]="PENDING",s[s.RESOLVED=1]="RESOLVED",s[s.REJECTED=2]="REJECTED";class u{constructor(){this._resolver=(0,a.Tw)(),this._status=o.PENDING,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=o.RESOLVED,this._cleanUp()}),(()=>{this._status=o.REJECTED,this._cleanUp()})),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===o.RESOLVED}isRejected(){return this._status===o.REJECTED}isFulfilled(){return this._status!==o.PENDING}abort(){this._resolver.reject((0,a.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const t=(0,a.Tw)(),e=[...this._resolvingPromises,t.promise],r=this._allPromise=Promise.all(e);r.then((()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()}),(t=>{this.isFulfilled()||this._allPromise!==r||(0,a.zf)(t)||this._resolver.reject(t)})),t.resolve()}}const p=t=>{let e=class extends t{constructor(...t){super(...t),this._promiseProps=new u,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(t,e){return this._promiseProps.promise.then((()=>this)).then(t,e)}catch(t){return this.when(null,t)}addResolvingPromise(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)}};return e=(0,i._)([(0,n.$)("esri.core.Promise")],e),e};let d=class extends(p(l.A)){};d=(0,i._)([(0,n.$)("esri.core.Promise")],d),function(t){t.EsriPromiseMixin=p}(d||(d={}));const h=d},20655:(t,e,r)=>{r.d(e,{A:()=>G});var o=r(90237),s=r(92602),i=r(70333),l=r(78888),a=r(49186),n=r(25482),u=r(92474),p=r(97768),d=r(74887),h=r(10107),y=r(56507),c=(r(87811),r(44208),r(36005)),m=r(40608),_=r(5443),v=r(73444);let f;var M=r(96360),g=r(16405),Z=r(69622);r(53966);let P=class extends Z.A{constructor(t){super(t),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,o._)([(0,h.MZ)()],P.prototype,"nextQueryParams",void 0),(0,o._)([(0,h.MZ)()],P.prototype,"queryParams",void 0),(0,o._)([(0,h.MZ)()],P.prototype,"results",void 0),(0,o._)([(0,h.MZ)()],P.prototype,"total",void 0),P=(0,o._)([(0,m.$)("esri.portal.PortalQueryResult")],P);const S=P;var O,w=r(41318),A=r(926);let C;const b={PortalGroup:()=>Promise.resolve({default:M.A}),PortalItem:()=>Promise.all([r.e(812),r.e(7159)]).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:w.A})};let D=O=class extends(n.A.JSONSupportMixin(u.A)){constructor(t){super(t),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=s.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(t){return"string"==typeof t?{url:t}:t}destroy(){q.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(t){if(t)for(const e of t)s.A.request.trustedServers.includes(e)||s.A.request.trustedServers.push(e);return t}readDefaultBasemap(t){return this._readBasemap(t)}readDefaultDevBasemap(t){return this._readBasemap(t)}readDefaultVectorBasemap(t){return this._readBasemap(t)}get extraQuery(){const t=this.user?.orgId,e=!t||this.canSearchPublic;return this.id&&!e?` AND orgid:${this.id}`:null}get hasAPIKey(){return(0,A.Jn)(this.url)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get restUrl(){let t=this.url;if(t){const e=t.indexOf("/sharing");t=e>0?t.slice(0,e):this.url.replace(/\/+$/,""),t+="/sharing/rest"}return t}get thumbnailUrl(){const t=this.restUrl,e=this.thumbnail;return t&&e?this._normalizeSSL(t+"/portals/self/resources/"+e):null}readUrlKey(t){return t?t.toLowerCase():t}readUser(t){let e=null;return t&&(e=w.A.fromJSON(t),e.portal=this),e}load(t){const e=Promise.all([r.e(812),r.e(2018)]).then(r.bind(r,83116)).then((({default:e})=>{(0,d.Te)(t),C=e})).then((()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,t))).then((t=>{if(!this.hasAPIKey&&i.id){const t=i.id;this.credential=t.findCredential(this.restUrl),this.credential||this.authMode!==O.AUTH_MODE_AUTO&&this.authMode!==O.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=t.on("credential-create",function(t){const e=i.id;return()=>{const r=t.deref();r&&e.findCredential(r.restUrl)&&r.signIn().catch((()=>{}))}}(new WeakRef(this))),q.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=t,this.read(t)}));return this.addResolvingPromise(e),Promise.resolve(this)}async createElevationLayers(){await this.load();const t=this._getHelperService("defaultElevationLayers"),e=(await Promise.all([r.e(6131),r.e(9953),r.e(7251),r.e(812),r.e(9186),r.e(8463)]).then(r.bind(r,68611))).default;return t?t.map((t=>new e({id:t.id,url:t.url}))):[]}async fetchBasemaps(t,e){const r=await this._fetchBasemaps(t,e);if(!0===e?.include3d&&!1!==this.use3dBasemaps){const o=await this._fetchBasemaps3D(t,e);r.unshift(...o)}return r}async fetchDefault3DBasemap(t){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const e=new g.A;e.query=this.default3DBasemapQuery,e.disableExtraQuery=!0;const r=(await this.queryItems(e,t)).results.find((t=>"Web Scene"===t.type));return r?new C({portalItem:r}):null}fetchCategorySchema(t){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",t).then((t=>t.categorySchema)):(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchFeaturedGroups(t){const e=this.featuredGroups,r=new g.A({num:100,sortField:"title"});if(e?.length){const o=[];for(const t of e)o.push(`(title:"${t.title}" AND owner:${t.owner})`);return r.query=o.join(" OR "),this.queryGroups(r,t).then((t=>t.results))}return(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(t){const e=this.user?.culture||this.culture||(0,v.JK)();return this.request(this.restUrl+"/portals/regions",{...t,query:{culture:e}})}fetchSettings(t){const e=this.user?.culture||this.culture||(0,v.JK)();return this.request(this.restUrl+"/portals/self/settings",{...t,query:{culture:e}})}static getDefault(){return f&&!f.destroyed||(f=new O),f}queryGroups(t,e){return this.queryPortal("/community/groups",t,"PortalGroup",e)}queryItems(t,e){return this.queryPortal("/search",t,"PortalItem",e)}queryUsers(t,e){return t.sortField||(t.sortField="username"),this.queryPortal("/community/users",t,"PortalUser",e)}fetchSelf(t=this.authMode,e=!1,r){const o=this.restUrl+"/portals/self",s={authMode:t,query:{culture:(0,v.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===s.authMode&&(s.authMode="no-prompt"),e&&(s.query.default=!0),this.request(o,s)}queryPortal(t,e,r,o){const s=(0,y.dp)(g.A,e),i=e=>this.request(this.restUrl+t,{...s.toRequestOptions(this),...o}).then((t=>{const r=s.clone();return r.start=t.nextStart,new S({nextQueryParams:r,queryParams:s,total:t.total,results:O._resultsToTypedArray(e,{portal:this},t,o)})})).then((t=>Promise.all(t.results.map((e=>"function"==typeof e.when?e.when():t))).then((()=>t),(e=>((0,d.QP)(e),t)))));return r&&b[r]?b[r]().then((({default:t})=>((0,d.Te)(o),i(t)))):i()}signIn(){if(this.hasAPIKey)return this.load().then((()=>{if(!this.user)throw new a.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")}));if(this.authMode===O.AUTH_MODE_ANONYMOUS||this.authMode===O.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new a.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const t=t=>Promise.resolve().then((()=>"not-loaded"===this.loadStatus?(t||(this.authMode="immediate"),this.load().then((()=>null))):"loading"===this.loadStatus?this.load().then((()=>this.credential?null:(this.credential=t,this.fetchSelf("immediate")))):this.user&&this.credential===t?null:(this.credential=t,this.fetchSelf("immediate")))).then((t=>{t&&(this.sourceJSON=t,this.read(t))}));return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==O.AUTH_MODE_NO_PROMPT}).then((e=>t(e))):t(this.credential)}normalizeUrl(t){const e=this.credential?.token;return this._normalizeSSL(e?t+(t.includes("?")?"&":"?")+"token="+e:t)}requestToTypedArray(t,e,r){return this.request(t,e).then((t=>{const e=O._resultsToTypedArray(r,{portal:this},t);return Promise.all(e.map((e=>"function"==typeof e.when?e.when():t))).then((()=>e),(()=>e))}))}request(t,e={}){const r={f:"json",...e.query},{authMode:o=(this.authMode===O.AUTH_MODE_ANONYMOUS||this.authMode===O.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:s=null,cacheBust:i=!1,method:a="auto",responseType:n="json",signal:u}=e,p={authMode:o,body:s,cacheBust:i,method:a,query:r,responseType:n,timeout:0,signal:u};return e.withCredentials&&(p.withCredentials=!0),(0,l.A)(this._normalizeSSL(t),p).then((t=>t.data))}toJSON(){throw new a.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");return new O({sourceJSON:t})}_getHelperService(t){const e=this.helperServices&&this.helperServices[t];if(!e)throw new a.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${t}"`);return e}async _fetchBasemaps(t,e){const r=new g.A;r.query=t||(this.hasAPIKey?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const o=await this.queryGroups(r,e);if(!o.total)return[];const s=o.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=s.sortField||"name",r.sortOrder=s.sortOrder||"desc";const i=await s.queryItems(r,e);return i.total?i.results.filter((t=>"Web Map"===t.type)).map((t=>new C({portalItem:t}))):[]}async _fetchBasemaps3D(t,e){const r=t||this.basemapGalleryGroupQuery3D;if(!r)return[];const o=new g.A({query:r,disableExtraQuery:!0}),s=await this.queryGroups(o,e);if(!s.total)return[];const i=s.results[0];o.num=100,o.query='type:"Web Scene"',o.sortField=i.sortField||"name",o.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(o,e);return l.total?l.results.filter((t=>"Web Scene"===t.type)).map((t=>new C({portalItem:t}))):[]}_normalizeSSL(t){return t.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(t){if(t){const e=C.fromJSON(t);return e.portalItem={portal:this},e}return null}static _resultsToTypedArray(t,e,r,o){let s;if(r){const i=null!=o?o.signal:null;s=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(t||e)&&(s=s.map((r=>{const o=Object.assign(t?t.fromJSON(r):r,e);return"function"==typeof o.load&&o.load(i),o})))}else s=[];return s}};D.AUTH_MODE_ANONYMOUS="anonymous",D.AUTH_MODE_AUTO="auto",D.AUTH_MODE_IMMEDIATE="immediate",D.AUTH_MODE_NO_PROMPT="no-prompt",(0,o._)([(0,h.MZ)()],D.prototype,"access",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"allSSL",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"authMode",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"authorizedCrossOriginDomains",void 0),(0,o._)([(0,c.w)("authorizedCrossOriginDomains")],D.prototype,"readAuthorizedCrossOriginDomains",null),(0,o._)([(0,h.MZ)()],D.prototype,"basemapGalleryGroupQuery",void 0),(0,o._)([(0,h.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],D.prototype,"basemapGalleryGroupQuery3D",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"bingKey",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canListApps",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canListData",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canListPreProvisionedItems",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canProvisionDirectPurchase",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canSearchPublic",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canShareBingPublic",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canSharePublic",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canSignInArcGIS",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canSignInIDP",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"colorSetsGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"commentsEnabled",void 0),(0,o._)([(0,h.MZ)({type:Date})],D.prototype,"created",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"credential",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"culture",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"currentVersion",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"customBaseUrl",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"default3DBasemapQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"defaultBasemap",void 0),(0,o._)([(0,c.w)("defaultBasemap")],D.prototype,"readDefaultBasemap",null),(0,o._)([(0,h.MZ)()],D.prototype,"defaultDevBasemap",void 0),(0,o._)([(0,c.w)("defaultDevBasemap")],D.prototype,"readDefaultDevBasemap",null),(0,o._)([(0,h.MZ)({type:_.A})],D.prototype,"defaultExtent",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"defaultVectorBasemap",void 0),(0,o._)([(0,c.w)("defaultVectorBasemap")],D.prototype,"readDefaultVectorBasemap",null),(0,o._)([(0,h.MZ)()],D.prototype,"description",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"devBasemapGalleryGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"eueiEnabled",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"extraQuery",null),(0,o._)([(0,h.MZ)()],D.prototype,"featuredGroups",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"featuredItemsGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"galleryTemplatesGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"layoutGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"livingAtlasGroupQuery",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"hasAPIKey",null),(0,o._)([(0,h.MZ)()],D.prototype,"hasCategorySchema",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"hasClassificationSchema",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"helpBase",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"helperServices",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"helpMap",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"homePageFeaturedContent",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"homePageFeaturedContentCount",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"httpPort",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"httpsPort",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"id",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"ipCntryCode",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"isOrganization",null),(0,o._)([(0,h.MZ)()],D.prototype,"isPortal",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"isReadOnly",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"itemPageUrl",null),(0,o._)([(0,h.MZ)()],D.prototype,"layerTemplatesGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"maxTokenExpirationMinutes",void 0),(0,o._)([(0,h.MZ)({type:Date})],D.prototype,"modified",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"name",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"portalHostname",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"portalMode",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"portalProperties",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"region",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"recycleBinEnabled",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"restUrl",null),(0,o._)([(0,h.MZ)()],D.prototype,"rotatorPanels",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"showHomePageDescription",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"sourceJSON",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"staticImagesUrl",void 0),(0,o._)([(0,h.MZ)({json:{name:"2DStylesGroupQuery"}})],D.prototype,"stylesGroupQuery2d",void 0),(0,o._)([(0,h.MZ)({json:{name:"stylesGroupQuery"}})],D.prototype,"stylesGroupQuery3d",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"supportsHostedServices",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"symbolSetsGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"templatesGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"thumbnail",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"thumbnailUrl",null),(0,o._)([(0,h.MZ)()],D.prototype,"units",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"url",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"urlKey",void 0),(0,o._)([(0,c.w)("urlKey")],D.prototype,"readUrlKey",null),(0,o._)([(0,h.MZ)()],D.prototype,"user",void 0),(0,o._)([(0,c.w)("user")],D.prototype,"readUser",null),(0,o._)([(0,h.MZ)()],D.prototype,"use3dBasemaps",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"useDefault3dBasemap",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"useStandardizedQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"useVectorBasemaps",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"vectorBasemapGalleryGroupQuery",void 0),D=O=(0,o._)([(0,m.$)("esri.portal.Portal")],D);const G=D,q=new FinalizationRegistry((t=>{t.remove()}))},96360:(t,e,r)=>{r.d(e,{A:()=>h});var o,s=r(90237),i=r(49186),l=r(25482),a=r(10107),n=r(56507),u=(r(87811),r(44208),r(40608)),p=r(16405);let d=o=class extends l.A{constructor(t){super(t),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e&&this.portal?this.portal?.normalizeUrl(`${t}/info/${e}?f=json`):null}get url(){const t=this.portal?.restUrl;return t?t+"/community/groups/"+this.id:null}fetchCategorySchema(t){return this.portal.request(this.url+"/categorySchema",t).then((e=>{const r=e.categorySchema||[];return r.some((t=>"contentCategorySetsGroupQuery.LivingAtlas"===t.source))?this._fetchCategorySchemaSet("LivingAtlas",t):r}))}fetchMembers(t){return this.portal.request(this.url+"/users",t)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new o({sourceJSON:t});return e.read(t),e}queryItems(t,e){let r=(0,n.dp)(p.A,t);const o=this.portal;return parseFloat(o.currentVersion)>5?(r=r||new p.A,o.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",e)):(r=r?r.clone():new p.A,r.query="group:"+this.id+(r.query?" "+r.query:""),o.queryItems(r,e))}_fetchCategorySchemaSet(t,e){const r=this.portal;return r.fetchSelf(r.authMode,!0,e).then((t=>{const o=t.contentCategorySetsGroupQuery;if(o){const t=new p.A({disableExtraQuery:!0,num:1,query:o});return r.queryGroups(t,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")})).then((r=>{if(r.total){const o=r.results[0],s=new p.A({num:1,query:`typekeywords:"${t}"`});return o.queryItems(s,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")})).then((t=>t.total?t.results[0].fetchData("json",e).then((t=>{const e=t?.categorySchema;return e?.length?e:[]})):[]))}};(0,s._)([(0,a.MZ)()],d.prototype,"access",void 0),(0,s._)([(0,a.MZ)({type:Date})],d.prototype,"created",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"description",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"id",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"isInvitationOnly",void 0),(0,s._)([(0,a.MZ)({type:Date})],d.prototype,"modified",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"owner",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"portal",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"snippet",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"sortField",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"sortOrder",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"sourceJSON",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"tags",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"thumbnail",void 0),(0,s._)([(0,a.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,s._)([(0,a.MZ)()],d.prototype,"title",void 0),(0,s._)([(0,a.MZ)({readOnly:!0})],d.prototype,"url",null),d=o=(0,s._)([(0,u.$)("esri.portal.PortalGroup")],d);const h=d},16405:(t,e,r)=>{r.d(e,{A:()=>m});var o,s=r(90237),i=r(69622),l=r(66552),a=r(4718),n=r(10107),u=(r(44208),r(53966),r(40608)),p=r(5443),d=r(16930),h=r(28735);const y=new l.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=o=class extends i.A{constructor(t){super(t),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(t){"asc"!==t&&"desc"!==t||this._set("sortOrder",t)}clone(){return new o({categories:this.categories?(0,a.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(t,e){let r=[];this.categories&&(r=this.categories.map((t=>Array.isArray(t)?JSON.stringify(t):t)));let o="";if(this.extent){const t=(0,h.Cv)(this.extent,d.A.WGS84);null!=t&&(o=`${t.xmin},${t.ymin},${t.xmax},${t.ymax}`)}let s=this.query;!this.disableExtraQuery&&t.extraQuery&&(s="("+s+")"+t.extraQuery);const i={categories:r,bbox:o,q:s,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(i.sortField=this.sortField.split(",").map((t=>y.toJSON(t.trim()))).join(","),i.sortOrder=this.sortOrder),{query:{...e,...i}}}};(0,s._)([(0,n.MZ)()],c.prototype,"categories",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"disableExtraQuery",void 0),(0,s._)([(0,n.MZ)({type:p.A})],c.prototype,"extent",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"filter",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"num",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"query",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"sortField",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"sortOrder",null),(0,s._)([(0,n.MZ)()],c.prototype,"start",void 0),c=o=(0,s._)([(0,u.$)("esri.portal.PortalQueryParams")],c);const m=c},41318:(t,e,r)=>{r.d(e,{A:()=>y});var o=r(90237),s=r(49186),i=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let n=class extends i.A{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new s.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,o._)([(0,l.MZ)({type:Date})],n.prototype,"created",void 0),(0,o._)([(0,l.MZ)()],n.prototype,"id",void 0),(0,o._)([(0,l.MZ)()],n.prototype,"portal",void 0),(0,o._)([(0,l.MZ)()],n.prototype,"title",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],n.prototype,"url",null),(0,o._)([(0,l.MZ)()],n.prototype,"username",void 0),n=(0,o._)([(0,a.$)("esri.portal.PortalFolder")],n);const u=n;var p,d=r(96360);let h=p=class extends i.A{constructor(t){super(t),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e?this.portal.normalizeUrl(`${t}/info/${e}?f=json`):null}get userContentUrl(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}`:null}get url(){const t=this.portal?.restUrl;return t?`${t}/community/users/${this.username}`:null}addItem(t){const e=t&&t.item,r=t?.data,o=t?.folder,s={method:"post"};e&&(s.query=e.createPostQuery(),null!=r&&("string"==typeof r?s.query.text=r:"object"==typeof r&&(s.query.text=JSON.stringify(r))));let i=this.userContentUrl;return o&&(i+="/"+("string"==typeof o?o:o.id)),this.portal.request(i+"/addItem",s).then((t=>(e.id=t.id,e.portal=this.portal,e.loaded?e.reload():e.load())))}async deleteItem(t,e=!1){let r=this.userContentUrl;t.ownerFolder&&(r+="/"+t.ownerFolder);const o=e?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${t.id}/delete`,{method:"post",query:o}),t.id=null,t.portal=null}async deleteItems(t,e=!1){t=t.slice();const r=this.userContentUrl+"/deleteItems",o=[],i=t.map((t=>t.id));if(i.length){const l={method:"post",query:{items:i.join(","),permanentDelete:e}},a=await this.portal.request(r,l);for(const e of a.results){const r=t.find((t=>e.itemId===t.id)),i=e.success;let l=null;i?(r.id=null,r.portal=null):e.error&&(l=new s.A("portal:delete-item-failed",e.error.message,e.error)),o.push({item:r,success:i,error:l})}}return o}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then((t=>{let e;return e=t&&t.folders?t.folders.map((t=>{const e=u.fromJSON(t);return e.portal=this.portal,e})):[],e}))}fetchGroups(){return this.portal.request(this.url??"").then((t=>{let e;return e=t&&t.groups?t.groups.map((t=>{const e=d.A.fromJSON(t);return e.portal=this.portal,e})):[],e}))}async fetchItems(t){t??={};let e=this.userContentUrl??"";t.folder&&(e+="/"+t.folder.id);const{default:o}=await Promise.all([r.e(812),r.e(7159)]).then(r.bind(r,80812)),s={folders:!1,inRecycleBin:!!t.inRecycleBin||null,foldersContent:!(t.folder||!t.includeSubfolderItems)||null,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"},i=await this.portal.request(e,{query:s});let l;return i?.items?(l=i.items.map((t=>{const e=o.fromJSON(t);return e.portal=this.portal,e})),await Promise.all(l.map((t=>t.load()))),{items:l,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then((t=>t.tags))}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}queryFavorites(t){return this.favGroupId?(this._favGroup||(this._favGroup=new d.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(t)):Promise.reject(new s.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(t,e){const r=this.userContentUrl,o=e?{folderID:"string"==typeof e?e:e.id}:null;await this.portal.request(r+`/items/${t.id}/restore`,{method:"post",query:o})}toJSON(){throw new s.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new p({sourceJSON:t});return e.read(t),e}};(0,o._)([(0,l.MZ)()],h.prototype,"access",void 0),(0,o._)([(0,l.MZ)({type:Date})],h.prototype,"created",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"culture",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"description",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"email",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"favGroupId",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"fullName",void 0),(0,o._)([(0,l.MZ)({type:Date})],h.prototype,"modified",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"orgId",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"portal",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"preferredView",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"privileges",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"region",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"role",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"roleId",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"sourceJSON",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"thumbnail",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],h.prototype,"thumbnailUrl",null),(0,o._)([(0,l.MZ)()],h.prototype,"units",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],h.prototype,"userContentUrl",null),(0,o._)([(0,l.MZ)({readOnly:!0})],h.prototype,"url",null),(0,o._)([(0,l.MZ)()],h.prototype,"username",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"userLicenseTypeId",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"userType",void 0),h=p=(0,o._)([(0,a.$)("esri.portal.PortalUser")],h);const y=h}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[655],{92474:(t,e,r)=>{r.d(e,{A:()=>m});var o=r(90237),s=r(49186),i=r(97768),l=r(61893),a=r(74887),n=r(67076),u=r(10107),p=r(40608);const d="loaded",h=t=>{let e=class extends t{constructor(...t){super(...t),this._loadController=null,this.loadError=null,this.loadStatus="not-loaded",this._set("loadWarnings",[]),this.addResolvingPromise(new Promise((t=>{const e=this.load.bind(this);this.load=r=>{const o=new Promise(((t,e)=>{const o=(0,a.NY)(r,e);this.destroyed&&e(new s.A("load:instance-destroyed",`Instance of '${this.declaredClass||this.constructor.name}' is already destroyed`,{instance:this})),this.when(t,e).finally((()=>{o&&o.remove()}))}));if("not-loaded"===this.loadStatus){this._set("loadStatus","loading");const t=this._loadController=new AbortController;e({signal:t.signal})}return t(),o}}))),this.when((()=>{this._set("loadStatus",d),this._loadController=null}),(t=>{this._set("loadStatus","failed"),this._set("loadError",t),this._loadController=null}))}destroy(){this._loadController&&(this._loadController=(0,i.DC)(this._loadController),this._promiseProps.abort()),this._set("loadError",null),this._set("loadWarnings",[])}get loaded(){return this.loadStatus===d}get loadWarnings(){return this._get("loadWarnings")}load(){return null}cancelLoad(){return this.isFulfilled()||(this._set("loadError",new s.A("load:cancelled","Cancelled")),this._loadController?.abort(),this._promiseProps.abort()),this}};return(0,o._)([(0,u.MZ)({readOnly:!0})],e.prototype,"loaded",null),(0,o._)([(0,u.MZ)({readOnly:!0})],e.prototype,"loadError",void 0),(0,o._)([(0,u.MZ)({clonable:!1})],e.prototype,"loadStatus",void 0),(0,o._)([(0,u.MZ)({type:[n.A],readOnly:!0})],e.prototype,"loadWarnings",null),e=(0,o._)([(0,p.$)("esri.core.Loadable")],e),e};let y=class extends(h(l.A)){};var c;y=(0,o._)([(0,p.$)("esri.core.Loadable")],y),(c=y||(y={})).LoadableMixin=h,c.isLoadable=function(t){return!(!t||!t.load)};const m=y},61893:(t,e,r)=>{r.d(e,{A:()=>h});var o,s,i=r(90237),l=r(69622),a=r(74887),n=r(40608);(s=o||(o={}))[s.PENDING=0]="PENDING",s[s.RESOLVED=1]="RESOLVED",s[s.REJECTED=2]="REJECTED";class u{constructor(){this._resolver=(0,a.Tw)(),this._status=o.PENDING,this._resolvingPromises=[],this._resolver.promise.then((()=>{this._status=o.RESOLVED,this._cleanUp()}),(()=>{this._status=o.REJECTED,this._cleanUp()})),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===o.RESOLVED}isRejected(){return this._status===o.REJECTED}isFulfilled(){return this._status!==o.PENDING}abort(){this._resolver.reject((0,a.NK)())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;const t=(0,a.Tw)(),e=[...this._resolvingPromises,t.promise],r=this._allPromise=Promise.all(e);r.then((()=>{this.isFulfilled()||this._allPromise!==r||this._resolver.resolve()}),(t=>{this.isFulfilled()||this._allPromise!==r||(0,a.zf)(t)||this._resolver.reject(t)})),t.resolve()}}const p=t=>{let e=class extends t{constructor(...t){super(...t),this._promiseProps=new u,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(t,e){return this._promiseProps.promise.then((()=>this)).then(t,e)}catch(t){return this.when(null,t)}addResolvingPromise(t){t&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in t?t.when():t)}};return e=(0,i._)([(0,n.$)("esri.core.Promise")],e),e};let d=class extends(p(l.A)){};d=(0,i._)([(0,n.$)("esri.core.Promise")],d),function(t){t.EsriPromiseMixin=p}(d||(d={}));const h=d},20655:(t,e,r)=>{r.d(e,{A:()=>G});var o=r(90237),s=r(92602),i=r(70333),l=r(78888),a=r(49186),n=r(25482),u=r(92474),p=r(97768),d=r(74887),h=r(10107),y=r(56507),c=(r(87811),r(44208),r(36005)),m=r(40608),_=r(5443),v=r(73444);let f;var M=r(96360),g=r(16405),Z=r(69622);r(53966);let P=class extends Z.A{constructor(t){super(t),this.nextQueryParams=null,this.queryParams=null,this.results=null,this.total=null}};(0,o._)([(0,h.MZ)()],P.prototype,"nextQueryParams",void 0),(0,o._)([(0,h.MZ)()],P.prototype,"queryParams",void 0),(0,o._)([(0,h.MZ)()],P.prototype,"results",void 0),(0,o._)([(0,h.MZ)()],P.prototype,"total",void 0),P=(0,o._)([(0,m.$)("esri.portal.PortalQueryResult")],P);const S=P;var O,w=r(41318),A=r(926);let C;const b={PortalGroup:()=>Promise.resolve({default:M.A}),PortalItem:()=>Promise.all([r.e(812),r.e(7159)]).then(r.bind(r,80812)),PortalUser:()=>Promise.resolve({default:w.A})};let D=O=class extends(n.A.JSONSupportMixin(u.A)){constructor(t){super(t),this._esriIdCredentialCreateHandle=null,this.access=null,this.allSSL=!1,this.authMode="auto",this.authorizedCrossOriginDomains=null,this.basemapGalleryGroupQuery=null,this.basemapGalleryGroupQuery3D=null,this.bingKey=null,this.canListApps=!1,this.canListData=!1,this.canListPreProvisionedItems=!1,this.canProvisionDirectPurchase=!1,this.canSearchPublic=!0,this.canShareBingPublic=!1,this.canSharePublic=!1,this.canSignInArcGIS=!1,this.canSignInIDP=!1,this.colorSetsGroupQuery=null,this.commentsEnabled=!1,this.created=null,this.culture=null,this.customBaseUrl=null,this.default3DBasemapQuery=null,this.defaultBasemap=null,this.defaultDevBasemap=null,this.defaultExtent=null,this.defaultVectorBasemap=null,this.description=null,this.devBasemapGalleryGroupQuery=null,this.eueiEnabled=null,this.featuredGroups=null,this.featuredItemsGroupQuery=null,this.galleryTemplatesGroupQuery=null,this.layoutGroupQuery=null,this.livingAtlasGroupQuery=null,this.hasCategorySchema=!1,this.hasClassificationSchema=!1,this.helperServices=null,this.homePageFeaturedContent=null,this.homePageFeaturedContentCount=null,this.httpPort=null,this.httpsPort=null,this.id=null,this.ipCntryCode=null,this.isPortal=!1,this.isReadOnly=!1,this.layerTemplatesGroupQuery=null,this.maxTokenExpirationMinutes=null,this.modified=null,this.name=null,this.portalHostname=null,this.portalMode=null,this.portalProperties=null,this.region=null,this.recycleBinEnabled=!1,this.rotatorPanels=null,this.showHomePageDescription=!1,this.sourceJSON=null,this.supportsHostedServices=!1,this.symbolSetsGroupQuery=null,this.templatesGroupQuery=null,this.units=null,this.url=s.A.portalUrl,this.urlKey=null,this.user=null,this.use3dBasemaps=!0,this.useDefault3dBasemap=!1,this.useStandardizedQuery=!1,this.useVectorBasemaps=!1,this.vectorBasemapGalleryGroupQuery=null}normalizeCtorArgs(t){return"string"==typeof t?{url:t}:t}destroy(){q.unregister(this),this.defaultBasemap=(0,p.pR)(this.defaultBasemap),this.defaultDevBasemap=(0,p.pR)(this.defaultDevBasemap),this.defaultVectorBasemap=(0,p.pR)(this.defaultVectorBasemap),this._esriIdCredentialCreateHandle=(0,p.xt)(this._esriIdCredentialCreateHandle)}readAuthorizedCrossOriginDomains(t){if(t)for(const e of t)s.A.request.trustedServers.includes(e)||s.A.request.trustedServers.push(e);return t}readDefaultBasemap(t){return this._readBasemap(t)}readDefaultDevBasemap(t){return this._readBasemap(t)}readDefaultVectorBasemap(t){return this._readBasemap(t)}get extraQuery(){const t=this.user?.orgId,e=!t||this.canSearchPublic;return this.id&&!e?` AND orgid:${this.id}`:null}get hasAPIKey(){return(0,A.Jn)(this.url)}get isOrganization(){return!!this.access}get itemPageUrl(){return this.url?`${this.url}/home/item.html`:null}get restUrl(){let t=this.url;if(t){const e=t.indexOf("/sharing");t=e>0?t.slice(0,e):this.url.replace(/\/+$/,""),t+="/sharing/rest"}return t}get thumbnailUrl(){const t=this.restUrl,e=this.thumbnail;return t&&e?this._normalizeSSL(t+"/portals/self/resources/"+e):null}readUrlKey(t){return t?t.toLowerCase():t}readUser(t){let e=null;return t&&(e=w.A.fromJSON(t),e.portal=this),e}load(t){const e=Promise.all([r.e(812),r.e(2018)]).then(r.bind(r,83116)).then((({default:e})=>{(0,d.Te)(t),C=e})).then((()=>this.sourceJSON?this.sourceJSON:this.fetchSelf(this.authMode,!1,t))).then((t=>{if(!this.hasAPIKey&&i.id){const t=i.id;this.credential=t.findCredential(this.restUrl),this.credential||this.authMode!==O.AUTH_MODE_AUTO&&this.authMode!==O.AUTH_MODE_NO_PROMPT||(this._esriIdCredentialCreateHandle?.remove(),this._esriIdCredentialCreateHandle=t.on("credential-create",function(t){const e=i.id;return()=>{const r=t.deref();r&&e.findCredential(r.restUrl)&&r.signIn().catch((()=>{}))}}(new WeakRef(this))),q.register(this,this._esriIdCredentialCreateHandle,this))}this.sourceJSON=t,this.read(t)}));return this.addResolvingPromise(e),Promise.resolve(this)}async createElevationLayers(){await this.load();const t=this._getHelperService("defaultElevationLayers"),e=(await Promise.all([r.e(6131),r.e(7251),r.e(812),r.e(9186),r.e(8463),r.e(9177)]).then(r.bind(r,68611))).default;return t?t.map((t=>new e({id:t.id,url:t.url}))):[]}async fetchBasemaps(t,e){const r=await this._fetchBasemaps(t,e);if(!0===e?.include3d&&!1!==this.use3dBasemaps){const o=await this._fetchBasemaps3D(t,e);r.unshift(...o)}return r}async fetchDefault3DBasemap(t){if(!this.useDefault3dBasemap||!this.default3DBasemapQuery||"none"===this.default3DBasemapQuery)return null;const e=new g.A;e.query=this.default3DBasemapQuery,e.disableExtraQuery=!0;const r=(await this.queryItems(e,t)).results.find((t=>"Web Scene"===t.type));return r?new C({portalItem:r}):null}fetchCategorySchema(t){return this.hasCategorySchema?this.request(this.restUrl+"/portals/self/categorySchema",t).then((t=>t.categorySchema)):(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchFeaturedGroups(t){const e=this.featuredGroups,r=new g.A({num:100,sortField:"title"});if(e?.length){const o=[];for(const t of e)o.push(`(title:"${t.title}" AND owner:${t.owner})`);return r.query=o.join(" OR "),this.queryGroups(r,t).then((t=>t.results))}return(0,d.G4)(t)?Promise.reject((0,d.NK)()):Promise.resolve([])}fetchRegions(t){const e=this.user?.culture||this.culture||(0,v.JK)();return this.request(this.restUrl+"/portals/regions",{...t,query:{culture:e}})}fetchSettings(t){const e=this.user?.culture||this.culture||(0,v.JK)();return this.request(this.restUrl+"/portals/self/settings",{...t,query:{culture:e}})}static getDefault(){return f&&!f.destroyed||(f=new O),f}queryGroups(t,e){return this.queryPortal("/community/groups",t,"PortalGroup",e)}queryItems(t,e){return this.queryPortal("/search",t,"PortalItem",e)}queryUsers(t,e){return t.sortField||(t.sortField="username"),this.queryPortal("/community/users",t,"PortalUser",e)}fetchSelf(t=this.authMode,e=!1,r){const o=this.restUrl+"/portals/self",s={authMode:t,query:{culture:(0,v.JK)().toLowerCase()},withCredentials:!0,...r};return"auto"===s.authMode&&(s.authMode="no-prompt"),e&&(s.query.default=!0),this.request(o,s)}queryPortal(t,e,r,o){const s=(0,y.dp)(g.A,e),i=e=>this.request(this.restUrl+t,{...s.toRequestOptions(this),...o}).then((t=>{const r=s.clone();return r.start=t.nextStart,new S({nextQueryParams:r,queryParams:s,total:t.total,results:O._resultsToTypedArray(e,{portal:this},t,o)})})).then((t=>Promise.all(t.results.map((e=>"function"==typeof e.when?e.when():t))).then((()=>t),(e=>((0,d.QP)(e),t)))));return r&&b[r]?b[r]().then((({default:t})=>((0,d.Te)(o),i(t)))):i()}signIn(){if(this.hasAPIKey)return this.load().then((()=>{if(!this.user)throw new a.A("portal:not-authenticated","Unable to authenticate user. Portal.user is missing")}));if(this.authMode===O.AUTH_MODE_ANONYMOUS||this.authMode===O.AUTH_MODE_NO_PROMPT&&!i.id)return Promise.reject(new a.A("portal:invalid-auth-mode",`Current "authMode"' is "${this.authMode}"`));if("failed"===this.loadStatus)return Promise.reject(this.loadError);const t=t=>Promise.resolve().then((()=>"not-loaded"===this.loadStatus?(t||(this.authMode="immediate"),this.load().then((()=>null))):"loading"===this.loadStatus?this.load().then((()=>this.credential?null:(this.credential=t,this.fetchSelf("immediate")))):this.user&&this.credential===t?null:(this.credential=t,this.fetchSelf("immediate")))).then((t=>{t&&(this.sourceJSON=t,this.read(t))}));return i.id?i.id.getCredential(this.restUrl,{prompt:this.authMode!==O.AUTH_MODE_NO_PROMPT}).then((e=>t(e))):t(this.credential)}normalizeUrl(t){const e=this.credential?.token;return this._normalizeSSL(e?t+(t.includes("?")?"&":"?")+"token="+e:t)}requestToTypedArray(t,e,r){return this.request(t,e).then((t=>{const e=O._resultsToTypedArray(r,{portal:this},t);return Promise.all(e.map((e=>"function"==typeof e.when?e.when():t))).then((()=>e),(()=>e))}))}request(t,e={}){const r={f:"json",...e.query},{authMode:o=(this.authMode===O.AUTH_MODE_ANONYMOUS||this.authMode===O.AUTH_MODE_NO_PROMPT?this.authMode:"auto"),body:s=null,cacheBust:i=!1,method:a="auto",responseType:n="json",signal:u}=e,p={authMode:o,body:s,cacheBust:i,method:a,query:r,responseType:n,timeout:0,signal:u};return e.withCredentials&&(p.withCredentials=!0),(0,l.A)(this._normalizeSSL(t),p).then((t=>t.data))}toJSON(){throw new a.A("internal:not-yet-implemented","Portal.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");return new O({sourceJSON:t})}_getHelperService(t){const e=this.helperServices&&this.helperServices[t];if(!e)throw new a.A("portal:service-not-found",`The \`helperServices\` do not include an entry named "${t}"`);return e}async _fetchBasemaps(t,e){const r=new g.A;r.query=t||(this.hasAPIKey?this.devBasemapGalleryGroupQuery:this.useVectorBasemaps?this.vectorBasemapGalleryGroupQuery:this.basemapGalleryGroupQuery),r.disableExtraQuery=!0;const o=await this.queryGroups(r,e);if(!o.total)return[];const s=o.results[0];r.num=100,r.query='type:"Web Map" -type:"Web Application"',r.sortField=s.sortField||"name",r.sortOrder=s.sortOrder||"desc";const i=await s.queryItems(r,e);return i.total?i.results.filter((t=>"Web Map"===t.type)).map((t=>new C({portalItem:t}))):[]}async _fetchBasemaps3D(t,e){const r=t||this.basemapGalleryGroupQuery3D;if(!r)return[];const o=new g.A({query:r,disableExtraQuery:!0}),s=await this.queryGroups(o,e);if(!s.total)return[];const i=s.results[0];o.num=100,o.query='type:"Web Scene"',o.sortField=i.sortField||"name",o.sortOrder=i.sortOrder||"desc";const l=await i.queryItems(o,e);return l.total?l.results.filter((t=>"Web Scene"===t.type)).map((t=>new C({portalItem:t}))):[]}_normalizeSSL(t){return t.replace(/^http:/i,"https:").replace(":7080",":7443")}_readBasemap(t){if(t){const e=C.fromJSON(t);return e.portalItem={portal:this},e}return null}static _resultsToTypedArray(t,e,r,o){let s;if(r){const i=null!=o?o.signal:null;s=r.listings||r.notifications||r.userInvitations||r.tags||r.items||r.groups||r.comments||r.provisions||r.results||r.relatedItems||r,(t||e)&&(s=s.map((r=>{const o=Object.assign(t?t.fromJSON(r):r,e);return"function"==typeof o.load&&o.load(i),o})))}else s=[];return s}};D.AUTH_MODE_ANONYMOUS="anonymous",D.AUTH_MODE_AUTO="auto",D.AUTH_MODE_IMMEDIATE="immediate",D.AUTH_MODE_NO_PROMPT="no-prompt",(0,o._)([(0,h.MZ)()],D.prototype,"access",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"allSSL",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"authMode",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"authorizedCrossOriginDomains",void 0),(0,o._)([(0,c.w)("authorizedCrossOriginDomains")],D.prototype,"readAuthorizedCrossOriginDomains",null),(0,o._)([(0,h.MZ)()],D.prototype,"basemapGalleryGroupQuery",void 0),(0,o._)([(0,h.MZ)({json:{name:"3DBasemapGalleryGroupQuery"}})],D.prototype,"basemapGalleryGroupQuery3D",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"bingKey",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canListApps",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canListData",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canListPreProvisionedItems",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canProvisionDirectPurchase",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canSearchPublic",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canShareBingPublic",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canSharePublic",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canSignInArcGIS",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"canSignInIDP",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"colorSetsGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"commentsEnabled",void 0),(0,o._)([(0,h.MZ)({type:Date})],D.prototype,"created",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"credential",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"culture",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"currentVersion",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"customBaseUrl",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"default3DBasemapQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"defaultBasemap",void 0),(0,o._)([(0,c.w)("defaultBasemap")],D.prototype,"readDefaultBasemap",null),(0,o._)([(0,h.MZ)()],D.prototype,"defaultDevBasemap",void 0),(0,o._)([(0,c.w)("defaultDevBasemap")],D.prototype,"readDefaultDevBasemap",null),(0,o._)([(0,h.MZ)({type:_.A})],D.prototype,"defaultExtent",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"defaultVectorBasemap",void 0),(0,o._)([(0,c.w)("defaultVectorBasemap")],D.prototype,"readDefaultVectorBasemap",null),(0,o._)([(0,h.MZ)()],D.prototype,"description",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"devBasemapGalleryGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"eueiEnabled",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"extraQuery",null),(0,o._)([(0,h.MZ)()],D.prototype,"featuredGroups",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"featuredItemsGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"galleryTemplatesGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"layoutGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"livingAtlasGroupQuery",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"hasAPIKey",null),(0,o._)([(0,h.MZ)()],D.prototype,"hasCategorySchema",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"hasClassificationSchema",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"helpBase",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"helperServices",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"helpMap",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"homePageFeaturedContent",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"homePageFeaturedContentCount",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"httpPort",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"httpsPort",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"id",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"ipCntryCode",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"isOrganization",null),(0,o._)([(0,h.MZ)()],D.prototype,"isPortal",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"isReadOnly",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"itemPageUrl",null),(0,o._)([(0,h.MZ)()],D.prototype,"layerTemplatesGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"maxTokenExpirationMinutes",void 0),(0,o._)([(0,h.MZ)({type:Date})],D.prototype,"modified",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"name",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"portalHostname",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"portalMode",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"portalProperties",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"region",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"recycleBinEnabled",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"restUrl",null),(0,o._)([(0,h.MZ)()],D.prototype,"rotatorPanels",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"showHomePageDescription",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"sourceJSON",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"staticImagesUrl",void 0),(0,o._)([(0,h.MZ)({json:{name:"2DStylesGroupQuery"}})],D.prototype,"stylesGroupQuery2d",void 0),(0,o._)([(0,h.MZ)({json:{name:"stylesGroupQuery"}})],D.prototype,"stylesGroupQuery3d",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"supportsHostedServices",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"symbolSetsGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"templatesGroupQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"thumbnail",void 0),(0,o._)([(0,h.MZ)({readOnly:!0})],D.prototype,"thumbnailUrl",null),(0,o._)([(0,h.MZ)()],D.prototype,"units",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"url",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"urlKey",void 0),(0,o._)([(0,c.w)("urlKey")],D.prototype,"readUrlKey",null),(0,o._)([(0,h.MZ)()],D.prototype,"user",void 0),(0,o._)([(0,c.w)("user")],D.prototype,"readUser",null),(0,o._)([(0,h.MZ)()],D.prototype,"use3dBasemaps",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"useDefault3dBasemap",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"useStandardizedQuery",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"useVectorBasemaps",void 0),(0,o._)([(0,h.MZ)()],D.prototype,"vectorBasemapGalleryGroupQuery",void 0),D=O=(0,o._)([(0,m.$)("esri.portal.Portal")],D);const G=D,q=new FinalizationRegistry((t=>{t.remove()}))},96360:(t,e,r)=>{r.d(e,{A:()=>h});var o,s=r(90237),i=r(49186),l=r(25482),a=r(10107),n=r(56507),u=(r(87811),r(44208),r(40608)),p=r(16405);let d=o=class extends l.A{constructor(t){super(t),this.access=null,this.created=null,this.description=null,this.id=null,this.isInvitationOnly=!1,this.modified=null,this.owner=null,this.portal=null,this.snippet=null,this.sortField=null,this.sortOrder=null,this.sourceJSON=null,this.tags=null,this.title=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e&&this.portal?this.portal?.normalizeUrl(`${t}/info/${e}?f=json`):null}get url(){const t=this.portal?.restUrl;return t?t+"/community/groups/"+this.id:null}fetchCategorySchema(t){return this.portal.request(this.url+"/categorySchema",t).then((e=>{const r=e.categorySchema||[];return r.some((t=>"contentCategorySetsGroupQuery.LivingAtlas"===t.source))?this._fetchCategorySchemaSet("LivingAtlas",t):r}))}fetchMembers(t){return this.portal.request(this.url+"/users",t)}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}toJSON(){throw new i.A("internal:not-yet-implemented","PortalGroup.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new o({sourceJSON:t});return e.read(t),e}queryItems(t,e){let r=(0,n.dp)(p.A,t);const o=this.portal;return parseFloat(o.currentVersion)>5?(r=r||new p.A,o.queryPortal(`/content/groups/${this.id}/search`,r,"PortalItem",e)):(r=r?r.clone():new p.A,r.query="group:"+this.id+(r.query?" "+r.query:""),o.queryItems(r,e))}_fetchCategorySchemaSet(t,e){const r=this.portal;return r.fetchSelf(r.authMode,!0,e).then((t=>{const o=t.contentCategorySetsGroupQuery;if(o){const t=new p.A({disableExtraQuery:!0,num:1,query:o});return r.queryGroups(t,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery value not found")})).then((r=>{if(r.total){const o=r.results[0],s=new p.A({num:1,query:`typekeywords:"${t}"`});return o.queryItems(s,e)}throw new i.A("portal-group:fetchCategorySchema","contentCategorySetsGroupQuery group not found")})).then((t=>t.total?t.results[0].fetchData("json",e).then((t=>{const e=t?.categorySchema;return e?.length?e:[]})):[]))}};(0,s._)([(0,a.MZ)()],d.prototype,"access",void 0),(0,s._)([(0,a.MZ)({type:Date})],d.prototype,"created",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"description",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"id",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"isInvitationOnly",void 0),(0,s._)([(0,a.MZ)({type:Date})],d.prototype,"modified",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"owner",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"portal",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"snippet",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"sortField",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"sortOrder",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"sourceJSON",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"tags",void 0),(0,s._)([(0,a.MZ)()],d.prototype,"thumbnail",void 0),(0,s._)([(0,a.MZ)({readOnly:!0})],d.prototype,"thumbnailUrl",null),(0,s._)([(0,a.MZ)()],d.prototype,"title",void 0),(0,s._)([(0,a.MZ)({readOnly:!0})],d.prototype,"url",null),d=o=(0,s._)([(0,u.$)("esri.portal.PortalGroup")],d);const h=d},16405:(t,e,r)=>{r.d(e,{A:()=>m});var o,s=r(90237),i=r(69622),l=r(66552),a=r(4718),n=r(10107),u=(r(44208),r(53966),r(40608)),p=r(5443),d=r(16930),h=r(28735);const y=new l.J({avgRating:"avg-rating",numRatings:"num-ratings",numComments:"num-comments",numViews:"num-views"});let c=o=class extends i.A{constructor(t){super(t),this.categories=null,this.disableExtraQuery=!1,this.extent=null,this.filter=null,this.num=10,this.query=null,this.sortField=null,this.start=1}get sortOrder(){return this._get("sortOrder")||"asc"}set sortOrder(t){"asc"!==t&&"desc"!==t||this._set("sortOrder",t)}clone(){return new o({categories:this.categories?(0,a.o8)(this.categories):null,disableExtraQuery:this.disableExtraQuery,extent:this.extent?this.extent.clone():null,filter:this.filter,num:this.num,query:this.query,sortField:this.sortField,sortOrder:this.sortOrder,start:this.start})}toRequestOptions(t,e){let r=[];this.categories&&(r=this.categories.map((t=>Array.isArray(t)?JSON.stringify(t):t)));let o="";if(this.extent){const t=(0,h.Cv)(this.extent,d.A.WGS84);null!=t&&(o=`${t.xmin},${t.ymin},${t.xmax},${t.ymax}`)}let s=this.query;!this.disableExtraQuery&&t.extraQuery&&(s="("+s+")"+t.extraQuery);const i={categories:r,bbox:o,q:s,filter:this.filter,num:this.num,sortField:null,sortOrder:null,start:this.start};return this.sortField&&(i.sortField=this.sortField.split(",").map((t=>y.toJSON(t.trim()))).join(","),i.sortOrder=this.sortOrder),{query:{...e,...i}}}};(0,s._)([(0,n.MZ)()],c.prototype,"categories",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"disableExtraQuery",void 0),(0,s._)([(0,n.MZ)({type:p.A})],c.prototype,"extent",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"filter",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"num",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"query",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"sortField",void 0),(0,s._)([(0,n.MZ)()],c.prototype,"sortOrder",null),(0,s._)([(0,n.MZ)()],c.prototype,"start",void 0),c=o=(0,s._)([(0,u.$)("esri.portal.PortalQueryParams")],c);const m=c},41318:(t,e,r)=>{r.d(e,{A:()=>y});var o=r(90237),s=r(49186),i=r(25482),l=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let n=class extends i.A{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new s.A("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};(0,o._)([(0,l.MZ)({type:Date})],n.prototype,"created",void 0),(0,o._)([(0,l.MZ)()],n.prototype,"id",void 0),(0,o._)([(0,l.MZ)()],n.prototype,"portal",void 0),(0,o._)([(0,l.MZ)()],n.prototype,"title",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],n.prototype,"url",null),(0,o._)([(0,l.MZ)()],n.prototype,"username",void 0),n=(0,o._)([(0,a.$)("esri.portal.PortalFolder")],n);const u=n;var p,d=r(96360);let h=p=class extends i.A{constructor(t){super(t),this.access=null,this.created=null,this.culture=null,this.description=null,this.email=null,this.fullName=null,this.modified=null,this.orgId=null,this.portal=null,this.preferredView=null,this.privileges=null,this.region=null,this.role=null,this.roleId=null,this.sourceJSON=null,this.units=null,this.username=null,this.userLicenseTypeId=null,this.userType=null}get thumbnailUrl(){const t=this.url,e=this.thumbnail;return t&&e?this.portal.normalizeUrl(`${t}/info/${e}?f=json`):null}get userContentUrl(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}`:null}get url(){const t=this.portal?.restUrl;return t?`${t}/community/users/${this.username}`:null}addItem(t){const e=t&&t.item,r=t?.data,o=t?.folder,s={method:"post"};e&&(s.query=e.createPostQuery(),null!=r&&("string"==typeof r?s.query.text=r:"object"==typeof r&&(s.query.text=JSON.stringify(r))));let i=this.userContentUrl;return o&&(i+="/"+("string"==typeof o?o:o.id)),this.portal.request(i+"/addItem",s).then((t=>(e.id=t.id,e.portal=this.portal,e.loaded?e.reload():e.load())))}async deleteItem(t,e=!1){let r=this.userContentUrl;t.ownerFolder&&(r+="/"+t.ownerFolder);const o=e?{permanentDelete:!0}:{};await this.portal.request(r+`/items/${t.id}/delete`,{method:"post",query:o}),t.id=null,t.portal=null}async deleteItems(t,e=!1){t=t.slice();const r=this.userContentUrl+"/deleteItems",o=[],i=t.map((t=>t.id));if(i.length){const l={method:"post",query:{items:i.join(","),permanentDelete:e}},a=await this.portal.request(r,l);for(const e of a.results){const r=t.find((t=>e.itemId===t.id)),i=e.success;let l=null;i?(r.id=null,r.portal=null):e.error&&(l=new s.A("portal:delete-item-failed",e.error.message,e.error)),o.push({item:r,success:i,error:l})}}return o}fetchFolders(){return this.portal.request(this.userContentUrl??"",{query:{num:1}}).then((t=>{let e;return e=t&&t.folders?t.folders.map((t=>{const e=u.fromJSON(t);return e.portal=this.portal,e})):[],e}))}fetchGroups(){return this.portal.request(this.url??"").then((t=>{let e;return e=t&&t.groups?t.groups.map((t=>{const e=d.A.fromJSON(t);return e.portal=this.portal,e})):[],e}))}async fetchItems(t){t??={};let e=this.userContentUrl??"";t.folder&&(e+="/"+t.folder.id);const{default:o}=await Promise.all([r.e(812),r.e(7159)]).then(r.bind(r,80812)),s={folders:!1,inRecycleBin:!!t.inRecycleBin||null,foldersContent:!(t.folder||!t.includeSubfolderItems)||null,num:t.num||10,start:t.start||1,sortField:t.sortField||"created",sortOrder:t.sortOrder||"asc"},i=await this.portal.request(e,{query:s});let l;return i?.items?(l=i.items.map((t=>{const e=o.fromJSON(t);return e.portal=this.portal,e})),await Promise.all(l.map((t=>t.load()))),{items:l,nextStart:i.nextStart,total:i.total}):{items:[],nextStart:-1,total:0}}fetchTags(){return this.portal.request(this.url+"/tags").then((t=>t.tags))}getThumbnailUrl(t){let e=this.thumbnailUrl;return e&&t&&(e+=`&w=${t}`),e}queryFavorites(t){return this.favGroupId?(this._favGroup||(this._favGroup=new d.A({id:this.favGroupId,portal:this.portal})),this._favGroup.queryItems(t)):Promise.reject(new s.A("internal:unknown","Unknown internal error",{internalError:"Unknown favGroupId"}))}async restoreItem(t,e){const r=this.userContentUrl,o=e?{folderID:"string"==typeof e?e:e.id}:null;await this.portal.request(r+`/items/${t.id}/restore`,{method:"post",query:o})}toJSON(){throw new s.A("internal:not-yet-implemented","PortalUser.toJSON is not yet implemented")}static fromJSON(t){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const e=new p({sourceJSON:t});return e.read(t),e}};(0,o._)([(0,l.MZ)()],h.prototype,"access",void 0),(0,o._)([(0,l.MZ)({type:Date})],h.prototype,"created",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"culture",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"description",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"email",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"favGroupId",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"fullName",void 0),(0,o._)([(0,l.MZ)({type:Date})],h.prototype,"modified",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"orgId",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"portal",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"preferredView",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"privileges",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"region",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"role",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"roleId",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"sourceJSON",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"thumbnail",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],h.prototype,"thumbnailUrl",null),(0,o._)([(0,l.MZ)()],h.prototype,"units",void 0),(0,o._)([(0,l.MZ)({readOnly:!0})],h.prototype,"userContentUrl",null),(0,o._)([(0,l.MZ)({readOnly:!0})],h.prototype,"url",null),(0,o._)([(0,l.MZ)()],h.prototype,"username",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"userLicenseTypeId",void 0),(0,o._)([(0,l.MZ)()],h.prototype,"userType",void 0),h=p=(0,o._)([(0,a.$)("esri.portal.PortalUser")],h);const y=h}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5740],{46130:(e,t,r)=>{r.d(t,{v:()=>n});var a=r(76553);function n(e){e?.writtenProperties&&e.writtenProperties.forEach((({target:e,propName:t,newOrigin:r})=>{(0,a.H)(e)&&r&&e.originOf(t)!==r&&e.updateOrigin(t,r)}))}},76553:(e,t,r)=>{function a(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{H:()=>a})},33359:(e,t,r)=>{r.d(t,{save:()=>g,saveAs:()=>O});var a=r(4576),n=(r(44208),r(49186),r(71530)),o=r(60694),i=r(23154),s=r(83531),l=r(10407);const u="Feature Service",c="feature-layer-utils",p=`${c}-save`,d=`${c}-save-as`;function f(e){return{isValid:(0,s.W_)(e)&&(!("dynamicDataSource"in e)||!e.dynamicDataSource),errorMessage:"Feature layer should be a layer or table in a map or feature service"}}function m(e){const t=[],r=[];for(const{layer:a,layerJSON:n}of e)a.isTable?r.push(n):t.push(n);return{layers:t,tables:r}}function y(e){return m([e])}async function w(e,t){return/\/\d+\/?$/.test(e.url)?y(t[0]):async function(e,t){if(e.reverse(),!t)return m(e);const a=await async function(e,t){let a=await e.fetchData("json");if(function(e){return!!(e&&Array.isArray(e.layers)&&Array.isArray(e.tables))}(a))return a;a||={},function(e){e.layers||=[],e.tables||=[]}(a);const{layer:{url:n,customParameters:o,apiKey:s}}=t[0];return await async function(e,t,a){const{url:n,customParameters:o,apiKey:s}=t,{serviceJSON:l,layersJSON:u}=await(0,i.Q)(n,{customParameters:o,apiKey:s}),c=b(e.layers,l.layers,a),p=b(e.tables,l.tables,a);e.layers=c.itemResources,e.tables=p.itemResources;const d=[...c.added,...p.added],f=u?[...u.layers,...u.tables]:[];await async function(e,t,a,n){const o=await async function(e){const t=[];e.forEach((({type:e})=>{switch((0,i.K)(e)){case"CatalogLayer":t.push(Promise.all([r.e(893),r.e(2593),r.e(4196)]).then(r.bind(r,79003)).then((e=>e.default)));break;case"FeatureLayer":t.push(Promise.all([r.e(3029),r.e(3600),r.e(9340)]).then(r.bind(r,13600)).then((e=>e.default)));break;case"OrientedImageryLayer":t.push(Promise.all([r.e(3029),r.e(3600),r.e(8330)]).then(r.bind(r,97927)).then((e=>e.default)))}}));const a=await Promise.all(t),n=new Map;return e.forEach((({type:e},t)=>{n.set(e,a[t])})),n}(t),s=t.map((({id:e,type:t})=>new(o.get(t))({url:a,layerId:e,sourceJSON:n.find((({id:t})=>t===e))})));await Promise.allSettled(s.map((e=>e.load()))),s.forEach((t=>{const{layerId:r,loaded:a,defaultPopupTemplate:n}=t;if(!a||null==n)return;const o={id:r,popupInfo:n.toJSON()};"ArcGISFeatureLayer"!==t.operationalLayerType&&(o.layerType=t.operationalLayerType),I(t,o,e)}))}(e,d,n,f)}(a,{url:n??"",customParameters:o,apiKey:s},t.map((e=>e.layer.layerId))),a}(t,e);for(const t of e)I(t.layer,t.layerJSON,a);return function(e,t){const r=[],a=[];for(const{layer:e}of t){const{isTable:t,layerId:n}=e;t?a.push(n):r.push(n)}h(e.layers,r),h(e.tables,a)}(a,e),a}(t,e)}function h(e,t){if(e.length<2)return;const r=[];for(const{id:t}of e)r.push(t);(0,a.aI)(r.sort(v),t.slice().sort(v))&&e.sort(((e,r)=>{const a=t.indexOf(e.id),n=t.indexOf(r.id);return a<n?-1:a>n?1:0}))}function v(e,t){return e<t?-1:e>t?1:0}function b(e,t,r){const n=(0,a.iv)(e,t,((e,t)=>e.id===t.id));e=e.filter((e=>!n.removed.some((t=>t.id===e.id))));const o=n.added;return o.forEach((({id:t})=>{e.push({id:t})})),{itemResources:e,added:o.filter((({id:e})=>!r.includes(e)))}}function I(e,t,r){e.isTable?A(r.tables,t):A(r.layers,t)}function A(e,t){const r=e.findIndex((({id:e})=>e===t.id));-1===r?e.push(t):e[r]=t}async function P(e,t,r){!function(e,t){const r=e.layers.some((e=>"OrientedImageryLayer"===e.layerType));(0,l.Sm)(t,l.mm.ORIENTED_IMAGERY_LAYER,r)}(r,t)}async function S(e,t){const{url:r,layerId:a,title:n,fullExtent:i,isTable:s}=e,u=(0,o.qg)(r);t.url=("FeatureServer"===u?.serverType?r:`${r}/${a}`)??null,t.title||=n,t.extent=null,s||null==i||(t.extent=await(0,l.sQ)(i)),(0,l.OM)(t,l.mm.METADATA),(0,l.OM)(t,l.mm.MULTI_LAYER),(0,l.LG)(t,l.mm.SINGLE_LAYER),(0,l.Sm)(t,l.mm.TABLE,s),function(e,t){const r=e.some((e=>"oriented-imagery"===e.type));(0,l.Sm)(t,l.mm.ORIENTED_IMAGERY_LAYER,r)}([e],t)}async function g(e,t){return(0,n.UN)({layer:e,itemType:u,validateLayer:f,createItemData:(e,t)=>w(t,[e]),errorNamePrefix:p,setItemProperties:P},t)}async function O(e,t,r){return(0,n.Uh)({layer:e,itemType:u,validateLayer:f,createItemData:(e,t)=>Promise.resolve(y(e)),errorNamePrefix:d,newItem:t,setItemProperties:S},r)}},71530:(e,t,r)=>{r.d(t,{UN:()=>v,Uh:()=>b});var a=r(49186),n=r(46130),o=r(20655),i=r(80812),s=r(88788),l=r(10407),u=r(26121);async function c(e){const{layer:t,errorNamePrefix:r,validateLayer:n}=e;await t.load(),function(e,t,r){const n=r(e);if(!n.isValid)throw new a.A(`${t}:invalid-parameters`,n.errorMessage,{layer:e})}(t,r,n)}function p(e,t){return`Layer (title: ${e.title}, id: ${e.id}) of type '${e.declaredClass}' ${t}`}function d(e){const{item:t,errorNamePrefix:r,layer:n,validateItem:o}=e;if(function(e){const{item:t,itemType:r,additionalItemType:n,errorNamePrefix:o,layer:i}=e,s=[r];if(n&&s.push(n),!s.includes(t.type)){const e=s.map((e=>`'${e}'`)).join(", ");throw new a.A(`${o}:portal-item-wrong-type`,`Portal item type should be one of: "${e}"`,{item:t,layer:i})}}(e),o){const e=o(t);if(!e.isValid)throw new a.A(`${r}:invalid-parameters`,e.errorMessage,{layer:n})}}function f(e){const{layer:t,errorNamePrefix:r}=e,{portalItem:n}=t;if(!n)throw new a.A(`${r}:portal-item-not-set`,p(t,"requires the portalItem property to be set"));if(!n.loaded)throw new a.A(`${r}:portal-item-not-loaded`,p(t,"cannot be saved to a portal item that does not exist or is inaccessible"));d({...e,item:n})}function m(e){const{newItem:t,itemType:r}=e;let a=i.default.from(t);return a.id&&(a=a.clone(),a.id=null),a.type??=r,a.portal??=o.A.getDefault(),d({...e,item:a}),a}function y(e){return(0,s.m)(e,"portal-item")}async function w(e,t,r){"beforeSave"in e&&"function"==typeof e.beforeSave&&await e.beforeSave();const a=e.write({},t);return await Promise.all(t.resources?.pendingOperations??[]),(0,u.c)(t,{errorName:"layer-write:unsupported"},r),a}function h(e){(0,l.LG)(e,l.mm.JSAPI),e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter(((e,t,r)=>r.indexOf(e)===t)))}async function v(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:i,saveResources:s,supplementalUnsupportedErrors:l}=e;await c(e),f(e);const u=r.portalItem,p=o?o(u):y(u),d=await w(r,p,{...t,supplementalUnsupportedErrors:l}),m=await a({layer:r,layerJSON:d},u);return await(i?.(r,u,m)),h(u),await u.update({data:m}),(0,n.v)(p),await(s?.(u,p)),u}async function b(e,t){const{layer:r,createItemData:a,createJSONContext:o,setItemProperties:i,saveResources:s,supplementalUnsupportedErrors:l}=e;await c(e);const u=m(e),p=o?o(u):y(u),d=await w(r,p,{...t,supplementalUnsupportedErrors:l}),f=await a({layer:r,layerJSON:d},u);return await i(r,u,f),h(u),await async function(e,t,r){const a=e.portal;await a.signIn(),await a.user.addItem({item:e,data:t,folder:r?.folder})}(u,f,t),r.portalItem=u,(0,n.v)(p),await(s?.(u,p)),u}},88788:(e,t,r)=>{r.d(t,{m:()=>i,v:()=>o});var a=r(84952),n=r(20655);function o(e,t){return{...s(e,t),readResourcePaths:[]}}function i(e,t,r){const n=(0,a.An)(e.itemUrl);return{...s(e,t),messages:[],writtenProperties:[],blockedRelativeUrls:[],verifyItemRelativeUrls:n?{rootPath:n.path,writtenUrls:[]}:null,resources:r?{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}:null}}function s(e,t){return{origin:t,url:(0,a.An)(e.itemUrl),portal:e.portal||n.A.getDefault(),portalItem:e}}},26121:(e,t,r)=>{r.d(t,{c:()=>i,d:()=>n});var a=r(49186);async function n(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}const o=new Set(["layer:unsupported","property:unsupported","symbol:unsupported","symbol-layer:unsupported","url:unsupported"]);function i(e,t,r){let n=(e.messages??[]).filter((({type:e})=>"error"===e)).map((({name:e,message:t,details:r})=>new a.A(e,t,r)));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map((e=>new a.A("url:unsupported",`Relative url '${e}' is not supported`))))),r){const{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:a}=r;e&&(n=n.filter((({name:e})=>!(o.has(e)||t.includes(e))))),a&&(n=n.filter((e=>"web-document-write:property-required"!==e.name)))}if(n.length>0)throw new a.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6781,7136],{67482:(e,t,n)=>{function s(e){return null!=a(e)||null!=o(e)}function r(e){return l.test(e)}function i(e){return a(e)??o(e)}function o(e){const t=new Date(e);return function(e,t){if(Number.isNaN(e.getTime()))return!1;let n=!0;if(p&&/\d+\W*$/.test(t)){const e=t.match(/[a-zA-Z]{2,}/);if(e){let t=!1,s=0;for(;!t&&s<=e.length;)t=!u.test(e[s]),s++;n=!t}}return n}(t,e)?Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset():null}function a(e){const t=l.exec(e);if(!t?.groups)return null;const n=t.groups,s=+n.year,r=+n.month-1,i=+n.day,o=+(n.hours??"0"),a=+(n.minutes??"0"),u=+(n.seconds??"0");if(o>23)return null;if(a>59)return null;if(u>59)return null;const p=n.ms??"0",c=p?+p.padEnd(3,"0").slice(0,3):0;let d;if(n.isUTC||!n.offsetSign)d=Date.UTC(s,r,i,o,a,u,c);else{const e=+n.offsetHours,t=+n.offsetMinutes;d=6e4*("+"===n.offsetSign?-1:1)*(60*e+t)+Date.UTC(s,r,i,o,a,u,c)}return Number.isNaN(d)?null:d}n.d(t,{Br:()=>r,Cq:()=>s,_U:()=>i});const l=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,u=/^((jan(uary)?)|(feb(ruary)?)|(mar(ch)?)|(apr(il)?)|(may)|(jun(e)?)|(jul(y)?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)|(am)|(pm)|(gmt)|(utc))$/i,p=!Number.isNaN(new Date("technology 10").getTime())},14607:(e,t,n)=>{n.d(t,{B:()=>u,GP:()=>a,qg:()=>p});var s=n(799),r=n(73444);const i={ar:[".",","],bg:[","," "],bs:[",","."],ca:[",","."],cs:[","," "],da:[",","."],de:[",","."],"de-ch":[".","’"],el:[",","."],en:[".",","],"en-au":[".",","],es:[",","."],"es-mx":[".",","],et:[","," "],fi:[","," "],fr:[","," "],"fr-ch":[","," "],he:[".",","],hi:[".",",","#,##,##0.###"],hr:[",","."],hu:[","," "],id:[",","."],it:[",","."],"it-ch":[".","’"],ja:[".",","],ko:[".",","],lt:[","," "],lv:[","," "],mk:[",","."],nb:[","," "],nl:[",","."],no:[","," "],pl:[","," "],pt:[",","."],"pt-pt":[","," "],ro:[",","."],ru:[","," "],sk:[","," "],sl:[",","."],sr:[",","."],sv:[","," "],th:[".",","],tr:[",","."],uk:[","," "],vi:[",","."],zh:[".",","]};function o(e=(0,r.JK)()){let t=(e=e.toLowerCase())in i;if(!t){const n=e.split("-");n.length>1&&n[0]in i&&(e=n[0],t=!0),t||(e="en")}const[n,s,o="#,##0.###"]=i[e];return{decimal:n,group:s,pattern:o}}function a(e,t){const n=o((t={...t}).locale);t.customs=n;const s=t.pattern||n.pattern;return isNaN(e)||Math.abs(e)===1/0?null:function(e,t,n){const s=(n=n||{}).customs.group,r=n.customs.decimal,i=t.split(";"),o=i[0];if((t=i[e<0?1:0]||"-"+o).includes("%"))e*=100;else if(t.includes("‰"))e*=1e3;else{if(t.includes("¤"))throw new Error("currency notation not supported");if(t.includes("E"))throw new Error("exponential notation not supported")}const a=l,u=o.match(a);if(!u)throw new Error("unable to find a number expression in pattern: "+t);return!1===n.fractional&&(n.places=0),t.replace(a,function(e,t,n){!0===(n=n||{}).places&&(n.places=0),n.places===1/0&&(n.places=6);const s=t.split("."),r="string"==typeof n.places&&n.places.indexOf(",");let i=n.places;r?i=n.places.slice(r+1):+i>=0||(i=(s[1]||[]).length),n.round<0||(e=Number(e.toFixed(Number(i))));const o=String(Math.abs(e)).split("."),a=o[1]||"";if(s[1]||n.places){r&&(n.places=n.places.slice(0,Math.max(0,r)));const e=void 0!==n.places?n.places:s[1]&&s[1].lastIndexOf("0")+1;+e>a.length&&(o[1]=a.padEnd(Number(e),"0")),+i<a.length&&(o[1]=a.slice(0,Math.max(0,Number(i))))}else o[1]&&o.pop();const l=s[0].replace(",","");let u=l.indexOf("0");-1!==u&&(u=l.length-u,u>o[0].length&&(o[0]=o[0].padStart(u,"0")),l.includes("#")||(o[0]=o[0].slice(-u)));let p,c,d=s[0].lastIndexOf(",");if(-1!==d){p=s[0].length-d-1;const e=s[0].slice(0,d);d=e.lastIndexOf(","),-1!==d&&(c=e.length-d-1)}const f=[];for(let e=o[0];e;){const t=e.length-p;f.push(t>0?e.slice(Math.max(0,t)):e),e=t>0?e.slice(0,t):"",c&&(p=c,c=void 0)}return o[0]=f.reverse().join(n.group||","),o.join(n.decimal||".")}(e,u[0],{decimal:r,group:s,places:n.places,round:n.round}))}(e,s,t)}const l=/[#0,]*[#0](?:\.0*#*)?/;function u(e){const t=o((e=e||{}).locale),n=e.pattern||t.pattern,r=t.group,i=t.decimal;let a=1;if(n.includes("%"))a/=100;else if(n.includes("‰"))a/=1e3;else if(n.includes("¤"))throw new Error("currency notation not supported");const u=n.split(";");1===u.length&&u.push("-"+u[0]);const p=d(u,(t=>(t="(?:"+(0,s.Cj)(t,".")+")").replace(l,(t=>{const n={signed:!1,separator:e.strict?r:[r,""],fractional:e.fractional,decimal:i,exponent:!1},s=t.split(".");let o=e.places;1===s.length&&1!==a&&(s[1]="###"),1===s.length||0===o?n.fractional=!1:(void 0===o&&(o=e.pattern?s[1].lastIndexOf("0")+1:1/0),o&&null==e.fractional&&(n.fractional=!0),!e.places&&+o<s[1].length&&(o+=","+s[1].length),n.places=o);const l=s[0].split(",");return l.length>1&&(n.groupSize=l.pop().length,l.length>1&&(n.groupSize2=l.pop().length)),"("+function(e){"places"in(e=e||{})||(e.places=1/0),"string"!=typeof e.decimal&&(e.decimal="."),"fractional"in e&&!String(e.places).startsWith("0")||(e.fractional=[!0,!1]),"exponent"in e||(e.exponent=[!0,!1]),"eSigned"in e||(e.eSigned=[!0,!1]);const t=c(e),n=d(e.fractional,(t=>{let n="";return t&&0!==e.places&&(n="\\"+e.decimal,e.places===1/0?n="(?:"+n+"\\d+)?":n+="\\d{"+e.places+"}"),n}),!0);let s=t+n;return n&&(s="(?:(?:"+s+")|(?:"+n+"))"),s+d(e.exponent,(t=>t?"([eE]"+c({signed:e.eSigned})+")":""))}(n)+")"}))),!0);return{regexp:p.replaceAll(/[\xa0 ]/g,"[\\s\\xa0]"),group:r,decimal:i,factor:a}}function p(e,t){const n=u(t),s=new RegExp("^"+n.regexp+"$").exec(e);if(!s)return NaN;let r=s[1];if(!s[1]){if(!s[2])return NaN;r=s[2],n.factor*=-1}return r=r.replaceAll(new RegExp("["+n.group+"\\s\\xa0]","g"),"").replace(n.decimal,"."),Number(r)*n.factor}function c(e){return"signed"in(e=e||{})||(e.signed=[!0,!1]),"separator"in e?"groupSize"in e||(e.groupSize=3):e.separator="",d(e.signed,(e=>e?"[-+]":""),!0)+d(e.separator,(t=>{if(!t)return"(?:\\d+)";" "===(t=(0,s.Cj)(t))?t="\\s":" "===t&&(t="\\s\\xa0");const n=e.groupSize,r=e.groupSize2;if(r){const e="(?:0|[1-9]\\d{0,"+(r-1)+"}(?:["+t+"]\\d{"+r+"})*["+t+"]\\d{"+n+"})";return n-r>0?"(?:"+e+"|(?:0|[1-9]\\d{0,"+(n-1)+"}))":e}return"(?:0|[1-9]\\d{0,"+(n-1)+"}(?:["+t+"]\\d{"+n+"})*)"}),!0)}const d=(e,t,n)=>{if(!Array.isArray(e))return t(e);const s=[];for(let n=0;n<e.length;n++)s.push(t(e[n]));return f(s.join("|"),Boolean(n))},f=(e,t)=>"("+(t?"?:":"")+e+")"},17136:(e,t,n)=>{n.d(t,{el:()=>N});var s=n(92602),r=n(49186),i=n(53966),o=n(39829),a=n(82799),l=n(80754),u=n(21325),p=n(28735),c=(n(59456),n(78888)),d=n(65864),f=n(2272),h=n(84952),y=n(92300);const m=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function S(e){return"polyline"===e[0].type}function x(e,t,n){if(t){const t=function(e,t){if(!(e instanceof a.A||e instanceof o.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw m().error(e),new r.A(e)}const n=(0,l.r8)(e),s=[];for(const e of n){const n=[];s.push(n),n.push([e[0][0],e[0][1]]);for(let s=0;s<e.length-1;s++){const r=e[s][0],i=e[s][1],o=e[s+1][0],a=e[s+1][1],l=Math.sqrt((o-r)*(o-r)+(a-i)*(a-i)),u=(a-i)/l,p=(o-r)/l,c=l/t;if(c>1){for(let e=1;e<=c-1;e++){const s=e*t,o=p*s+r,a=u*s+i;n.push([o,a])}const e=(l+Math.floor(c-1)*t)/2,s=p*e+r,o=u*e+i;n.push([s,o])}n.push([o,a])}}return function(e){return"polygon"===e.type}(e)?new o.A({rings:s,spatialReference:e.spatialReference}):new a.A({paths:s,spatialReference:e.spatialReference})}(e,1e6);e=(0,p.ci)(t,!0)}return n&&(e=(0,l.kS)(e,n)),e}function w(e,t,n){if(Array.isArray(e)){const s=e[0];if(s>t){const n=(0,l.kd)(s,t);e[0]=s+n*(-2*t)}else if(s<n){const t=(0,l.kd)(s,n);e[0]=s+t*(-2*n)}}else{const s=e.x;if(s>t){const n=(0,l.kd)(s,t);e=e.clone().offset(n*(-2*t),0)}else if(s<n){const t=(0,l.kd)(s,n);e=e.clone().offset(t*(-2*n),0)}}return e}function F(e,t){let n=-1;for(let s=0;s<t.cutIndexes.length;s++){const r=t.cutIndexes[s],i=t.geometries[s],o=(0,l.r8)(i);for(let e=0;e<o.length;e++){const t=o[e];t.some((n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const s=t[e][0];n=s>n?s:n}n=Number(n.toFixed(9));const s=-360*(0,l.kd)(n,180);for(let n=0;n<t.length;n++){const t=i.getPoint(e,n);i.setPoint(e,n,t.clone().offset(s,0))}return!0}}))}if(r===n){if(g(e))for(const t of(0,l.r8)(i))e[r]=e[r].addRing(t);else if(S(e))for(const t of(0,l.r8)(i))e[r]=e[r].addPath(t)}else n=r,e[r]=i}return e}async function N(e,t,n){if(!Array.isArray(e))return N([e],t);t&&"string"!=typeof t&&m().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof t?t:t?.url??s.A.geometryServiceUrl;let i,g,S,A,b,I,C,T,_=0;const E=[],O=[];for(const t of e)if(null!=t)if(i||(i=t.spatialReference,g=(0,u.Vp)(i),S=i.isWebMercator,I=S?102100:4326,A=l.j7[I].maxX,b=l.j7[I].minX,C=l.j7[I].plus180Line,T=l.j7[I].minus180Line),g)if("mesh"===t.type)O.push(t);else if("point"===t.type)O.push(w(t.clone(),A,b));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>w(e,A,b))),O.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);O.push(e.rings?new o.A(e):e)}else if(t.extent){const e=t.extent,n=(0,l.kd)(e.xmin,b)*(2*A);let s=0===n?t.clone():(0,l.kS)(t.clone(),n);e.offset(n,0);let{xmin:r,xmax:i}=e;r=Number(r.toFixed(9)),i=Number(i.toFixed(9)),e.intersects(C)&&i!==A?(_=i>_?i:_,s=x(s,S),E.push(s),O.push("cut")):e.intersects(T)&&r!==b?(_=i*(2*A)>_?i*(2*A):_,s=x(s,S,360),E.push(s),O.push("cut")):O.push(s)}else O.push(t.clone());else O.push(t);else O.push(t);let R=(0,l.kd)(_,A),v=-90;const q=R,k=new a.A;for(;R>0;){const e=360*R-180;k.addPath([[e,v],[e,-1*v]]),v*=-1,R--}if(E.length>0&&q>0){const t=F(E,await async function(e,t,n,s){const r=(0,f.Dl)(e),i=t[0].spatialReference,o={...s,responseType:"json",query:{...r.query,f:"json",sr:(0,u.YX)(i),target:JSON.stringify({geometryType:(0,d.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},a=await(0,c.A)(r.path+"/cut",o),{cutIndexes:l,geometries:p=[]}=a.data;return{cutIndexes:l,geometries:p.map((e=>{const t=(0,d.rS)(e);return t.spatialReference=i,t}))}}(r,E,k,n)),s=[],i=[];for(let n=0;n<O.length;n++){const r=O[n];if("cut"!==r)i.push(r);else{const r=t.shift(),o=e[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&r.rings.length>=o.rings.length?(s.push(r),i.push("simplify")):i.push(S?(0,p.Gh)(r):r)}}if(!s.length)return i;const o=await async function(e,t,n){const s="string"==typeof e?(0,h.An)(e):e,r=t[0].spatialReference,i=(0,d.$B)(t[0]),o={...n,query:{...s.query,f:"json",sr:(0,u.YX)(r),geometries:JSON.stringify((0,y.X)(t))}},{data:a}=await(0,c.A)(s.path+"/simplify",o);return(0,y.V)(a.geometries,i,r)}(r,s,n),a=[];for(let e=0;e<i.length;e++){const t=i[e];"simplify"!==t?a.push(t):a.push(S?(0,p.Gh)(o.shift()):o.shift())}return a}const D=[];for(let e=0;e<O.length;e++){const t=O[e];if("cut"!==t)D.push(t);else{const e=E.shift();D.push(!0===S?(0,p.Gh)(e):e)}}return D}},80754:(e,t,n)=>{n.d(t,{j7:()=>o,kS:()=>l,kd:()=>a,r8:()=>u});var s=n(82799),r=n(16930),i=n(65864);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new s.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new s.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new s.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new s.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const n=u(e);for(const e of n)for(const n of e)n[0]+=t;return e}function u(e){return(0,i.Bi)(e)?e.rings:e.paths}},40752:(e,t,n)=>{n.r(t),n.d(t,{default:()=>W}),n(59456);var s=n(78888),r=n(60999),i=n(67482),o=n(49186),a=n(53966),l=n(74887),u=n(84952),p=n(57251),c=n(7320),d=n(21325),f=n(28735),h=n(43334),y=n(92722),m=n(58376),g=n(83221),S=n(31464),x=n(19730),w=n(14607),F=n(30524);function N(e,t,n){t=(0,F.rS)(t)?.toLowerCase(),n=(0,F.rS)(n)?.toLowerCase();const s=e.map((e=>e.toLowerCase())),r=t?e[s.indexOf(t)]:null,i=n?e[s.indexOf(n)]:null;return{longitudeFieldName:r||e[s.indexOf(b.find((e=>s.includes(e))))],latitudeFieldName:i||e[s.indexOf(A.find((e=>s.includes(e))))]}}const A=["lat","lat83","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],b=["lon","lng","lng83","long","long83","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"],I=/^\s*"([\S\s]*)"\s*$/,C=/""/g,T=[","," ",";","|","\t"];function*_(e,t,n){let s=0;for(;s<=e.length;){const r=e.indexOf(t,s),i=e.slice(s,r>-1?r:void 0);s+=i.length+t.length,n&&!i.trim()||(yield i)}}function E(e){const t=e.includes("\r\n")?"\r\n":"\n";return _(e,t,!0)}function O(e,t){return _(e,t,!1)}function R(e,t,n){e=e.trim(),t=t?.trim();const s=[],r=Array.from(new Set([n?.delimiter,...T])).filter((e=>null!=e));for(const n of r){const r=k(e,n).length,i=k(t,n).length??r;r>1&&s.push({weight:Math.min(r,i),delimiter:n})}const i=s.sort((({weight:e},{weight:t})=>t-e)).map((({delimiter:e})=>e));for(const t of i){const s=N(q(e,t).names,n?.longitudeField,n?.latitudeField);if(s.longitudeFieldName&&s.latitudeFieldName)return{delimiter:t,locationInfo:s}}return{delimiter:i[0],locationInfo:null}}function*v(e,t,n,s=()=>Object.create(null)){const r=E(e);r.next();let i="",o="",a=0,l=s(),u=0;e:for(const e of r){const r=O(e,n);for(const e of r)if(i+=o+e,o="",a+=D(e),a%2==0){if(a>0){const e=I.exec(i);if(!e){l=s(),u=0,i="",a=0;continue e}l[t[u]]=e[1].replaceAll(C,'"'),u++}else l[t[u]]=i,u++;i="",a=0}else o=n;0===a?(yield l,l=s(),u=0):o="\n"}}function q(e,t){const n=k(e,t).filter((e=>null!=e)),s=n.map((e=>(0,F.rS)(e)));for(let e=s.length-1;e>=0;e--)s[e]||(s.splice(e,1),n.splice(e,1));return{names:s,aliases:n}}function k(e,t){if(!e?.length)return[];const n=[];let s="",r="",i=0;const o=O(e,t);for(const e of o)if(s+=r+e,r="",i+=D(e),i%2==0){if(i>0){const e=I.exec(s);e&&n.push(e[1].replaceAll(C,'"'))}else n.push(s);s="",i=0}else r=t;return n}function D(e){let t=0,n=0;for(n=e.indexOf('"',n);n>=0;)t++,n=e.indexOf('"',n+1);return t}function M(e,t,n,s,r){const i=[],o=v(e,n,t),a=[];for(const e of o){if(10===a.length)break;a.push(e)}for(let e=0;e<n.length;e++){const t=n[e],o=s[e];if(t===r.longitudeFieldName||t===r.latitudeFieldName)i.push({name:t,type:"esriFieldTypeDouble",alias:o});else{let e;switch(j(a.map((e=>e[t])))){case"integer":e="esriFieldTypeInteger";break;case"double":e="esriFieldTypeDouble";break;case"date":e="esriFieldTypeDate";break;default:e="esriFieldTypeString"}i.push({name:t,type:e,alias:o,length:(0,F._b)(e)})}}return i}function j(e){if(!e.length)return"string";const t=/[^+\-.,0-9]/;return e.map((e=>{if(""!==e){if(!t.test(e)){let t=B(e);if(!isNaN(t))return/[.,]/.test(e)||!Number.isInteger(t)||t>214783647||t<-214783648?"double":"integer";if(e.includes("E")){if(t=Number(e),!Number.isNaN(t))return"double";if(e.includes(",")&&(e=e.replace(",","."),t=Number(e),!Number.isNaN(t)))return"double"}}return(0,i.Cq)(e)?"date":"string"}})).reduce(((e,t)=>void 0===e?t:void 0===t?e:e===t?t:"string"===e||"string"===t?"string":"double"===e||"double"===t?"double":void 0))}const B=function(){const e=(0,w.B)(),t=new RegExp("^"+e.regexp+"$"),n=new RegExp("["+e.group+"\\s\\xa0]","g"),s=e.factor;return r=>{const i=t.exec(r);if(e.factor=s,!i)return NaN;let o=i[1];if(!i[1]){if(!i[2])return NaN;o=i[2],e.factor*=-1}return o=o.replace(n,"").replace(e.decimal,"."),+o*e.factor}}();function L(e){return JSON.parse(JSON.stringify(e))}var z=n(64714),P=n(95466),G=n(56400),Q=n(16930);const U=(0,z.F0)("esriGeometryPoint"),V=["csv"],$=[0,0];class J{constructor(e,t){this.x=e,this.y=t}}class W{constructor(){this._queryEngine=null,this._snapshotFeatures=async e=>{const t=await this._fetch(e);return this._createFeatures(t)}}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t={}){this._loadOptions=e;const[n]=await Promise.all([this._fetch(t.signal),this._checkProjection(e?.parsingOptions?.spatialReference)]),s=function(e,t){const n=t.parsingOptions||{},s={delimiter:n.delimiter,layerDefinition:null,locationInfo:{latitudeFieldName:n.latitudeField,longitudeFieldName:n.longitudeField}},r=s.layerDefinition={name:(0,u.e7)(t.url,V)||"csv",dateFieldsTimeReference:{timeZoneIANA:G.n$},drawingInfo:U,geometryType:"esriGeometryPoint",objectIdField:null,fields:[],timeInfo:n.timeInfo,extent:{xmin:Number.POSITIVE_INFINITY,ymin:Number.POSITIVE_INFINITY,xmax:Number.NEGATIVE_INFINITY,ymax:Number.NEGATIVE_INFINITY,spatialReference:n.spatialReference||{wkid:4326}}},i=E(e),a=i.next().value?.trim(),l=i.next().value?.trim();if(!a)throw new o.A("csv-layer:empty-csv","CSV is empty",{csv:e});const{delimiter:p,locationInfo:c}=R(a,l,n);if(!p)throw new o.A("csv-layer:invalid-delimiter","Unable to detect the delimiter from CSV",{firstLine:a,secondLine:l,parsingOptions:n});if(!c)throw new o.A("csv-layer:location-fields-not-found","Unable to identify latitude and longitude fields from the CSV file",{firstLine:a,secondLine:l,parsingOptions:n});s.locationInfo=c,s.delimiter=p;const{names:d,aliases:f}=q(a,p),h=M(e,s.delimiter,d,f,s.locationInfo);if(n.fields?.length){const e=new P.A(n.fields);for(const t of h){const n=e.get(t.name);n&&Object.assign(t,n)}}if(!h.some((e=>"esriFieldTypeOID"===e.type&&(r.objectIdField=e.name,!0)))){const e={name:"__OBJECTID",alias:"__OBJECTID",type:"esriFieldTypeOID",editable:!1,nullable:!1};r.objectIdField=e.name,h.unshift(e)}r.fields=h;const y=new P.A(r.fields);if(s.locationInfo&&(s.locationInfo.latitudeFieldName=y.get(s.locationInfo.latitudeFieldName).name,s.locationInfo.longitudeFieldName=y.get(s.locationInfo.longitudeFieldName).name),r.timeInfo){const e=r.timeInfo;if(e.startTimeField){const t=y.get(e.startTimeField);t?(e.startTimeField=t.name,t.type="esriFieldTypeDate"):e.startTimeField=null}if(e.endTimeField){const t=y.get(e.endTimeField);t?(e.endTimeField=t.name,t.type="esriFieldTypeDate"):e.endTimeField=null}if(e.trackIdField){const t=y.get(e.trackIdField);e.trackIdField=t?t.name:null}e.startTimeField||e.endTimeField||(r.timeInfo=null)}return s}(n,e);this._locationInfo=s.locationInfo,this._delimiter=s.delimiter,this._queryEngine=this._createQueryEngine(s);const r=await this._createFeatures(n);this._queryEngine.featureStore.addMany(r);const{fullExtent:i,timeExtent:a}=await this._queryEngine.fetchRecomputedExtents();if(s.layerDefinition.extent=i,a){const{start:e,end:t}=a;s.layerDefinition.timeInfo.timeExtent=[e,t]}return s}async applyEdits(){throw new o.A("csv-layer:editing-not-supported","applyEdits() is not supported on CSVLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForIds(e,t.signal)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),(0,m.J)(this._queryEngine,e,t.signal)}async queryAttributeBins(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeAttributeBinsQuery(e,t.signal)}async refresh(e){this._loadOptions.customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,r.UT)(this._snapshotFeatures),this._snapshotTask.promise.then((e=>{this._queryEngine.featureStore.clear(),e&&this._queryEngine.featureStore.addMany(e)}),(e=>{this._queryEngine.featureStore.clear(),(0,l.zf)(e)||a.A.getLogger("esri.layers.CSVLayer").error(new o.A("csv-layer:refresh","An error occurred during refresh",{error:e}))})),await this._waitSnapshotComplete();const{fullExtent:t,timeExtent:n}=await this._queryEngine.fetchRecomputedExtents();return{extent:t,timeExtent:n}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _fetch(e){const{url:t,customParameters:n}=this._loadOptions;if(!t)throw new o.A("csv-layer:invalid-source","url not defined");const r=(0,u.An)(t);return(await(0,s.A)(r.path,{query:{...r.query,...n},responseType:"text",signal:e})).data}_createQueryEngine(e){const{objectIdField:t,fields:n,extent:s,timeInfo:r}=e.layerDefinition,i=new g.A({geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1});return new x.do({fieldsIndex:P.A.fromLayerJSON({fields:n,dateFieldsTimeReference:{timeZoneIANA:G.n$}}),geometryType:"esriGeometryPoint",hasM:!1,hasZ:!1,timeInfo:r,objectIdField:t,spatialReference:s.spatialReference||{wkid:4326},featureStore:i})}async _createFeatures(e){const{latitudeFieldName:t,longitudeFieldName:n}=this._locationInfo,{objectIdField:s,fieldsIndex:r,spatialReference:o}=this._queryEngine;let a=[];const l=[],u=r.fields.filter((e=>e.name!==s)).map((e=>e.name));let m=0;const g={};for(const e of r.fields)if("esriFieldTypeOID"!==e.type&&"esriFieldTypeGlobalID"!==e.type){const t=(0,F.lD)(e);void 0!==t&&(g[e.name]=t)}const S=v(e,u,this._delimiter,(0,z.Vx)(g,s));for(const e of S){const o=this._parseCoordinateValue(e[t]),u=this._parseCoordinateValue(e[n]);if(null!=u&&null!=o&&!isNaN(o)&&!isNaN(u)){e[t]=o,e[n]=u;for(const s in e)if(s!==t&&s!==n)if(r.isDateField(s))e[s]=(0,i._U)(e[s]);else if(r.isNumericField(s)){const t=B(e[s]);isNaN(t)?e[s]=null:e[s]=t}else null!=e[s]&&(e[s]=L(e[s]));e[s]=m,m++,a.push(new J(u,o)),l.push(e)}}if(!(0,d.aI)({wkid:4326},o))if((0,d.K8)(o))for(const e of a)[e.x,e.y]=(0,f.je)(e.x,e.y,$);else a=(0,p.projectMany)(c.g,a,Q.A.WGS84,o,null,null);const x=[];for(let e=0;e<a.length;e++){const{x:t,y:n}=a[e],r=l[e];r[s]=e+1,x.push(new h.Om(new y.A([],[t,n]),r,null,r[s]))}return x}_parseCoordinateValue(e){if(null==e||""===e)return null;let t=B(e);return(isNaN(t)||Math.abs(t)>181)&&(t=parseFloat(e)),t}async _checkProjection(e){try{await(0,S.Nk)(d.KK,e)}catch{throw new o.A("csv-layer:projection-not-supported","Projection not supported")}}}},64714:(e,t,n)=>{n.d(t,{F0:()=>l,Vx:()=>c,e2:()=>f,f:()=>h});var s=n(44208),r=n(4718),i=n(99352),o=n(4071),a=n(93470);function l(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?a.Cb:"esriGeometryPolyline"===e?a.yM:a.WR}}}const u=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let p=1;function c(e,t){if((0,s.A)("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let n=`this${d(t)} = null;`;for(const t in e)n+=`this${d(t)} = ${JSON.stringify(e[t])};`;const s=new Function(`\n return class AttributesClass$${p++} {\n constructor() {\n ${n};\n }\n }\n `)();return()=>new s}catch(n){return()=>({[t]:null,...e})}}function d(e){return u.test(e)?`.${e}`:`["${e}"]`}function f(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,r.o8)(e)}}]}function h(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:i.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:o.$,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},4071:(e,t,n)=>{n.d(t,{$:()=>s,P:()=>r});const s={supportsDate:!1,supportsFixedInterval:!1,supportsAutoInterval:!1,supportsFixedBoundaries:!1,supportedStatistics:void 0},r={analytics:{supportsCacheHint:!1},attachment:{supportsContentType:!1,supportsExifInfo:!1,supportsKeywords:!1,supportsName:!1,supportsSize:!1,supportsCacheHint:!1,supportsResize:!1},data:{isVersioned:!1,isBranchVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:!1},editing:{supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsGeometryUpdate:!1,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsAsyncApplyEdits:!1,zDefault:void 0},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:!1,supportsDelete:!1,supportsEditing:!1,supportsChangeTracking:!1,supportsQuery:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryBins:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:!1,supportsExceedsLimitStatistics:!1,supportsAsyncConvert3D:!1},queryRelated:{supportsCount:!1,supportsOrderBy:!1,supportsPagination:!1,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:s,query:{maxRecordCount:0,maxRecordCountFactor:0,standardMaxRecordCount:0,supportsCacheHint:!1,supportsCentroid:!1,supportsCompactGeometry:!1,supportsCurrentUser:!1,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsDisjointSpatialRelationship:!1,supportsDistance:!1,supportsDistinct:!1,supportsExtent:!1,supportsFormatPBF:!1,supportsGeometryProperties:!1,supportsHavingClause:!1,supportsHistoricMoment:!1,supportsMaxRecordCountFactor:!1,supportsOrderBy:!1,supportsPagination:!1,supportsPercentileStatistics:!1,supportsQuantization:!1,supportsQuantizationEditMode:!1,supportsQueryByAnonymous:!1,supportsQueryByOthers:!1,supportsQueryGeometry:!1,supportsResultType:!1,supportsReturnMesh:!1,supportsSqlExpression:!1,supportsStandardizedQueriesOnly:!1,supportsTopFeaturesQuery:!1,supportsTrueCurve:!1,supportsSpatialAggregationStatistics:!1,supportedSpatialAggregationStatistics:{envelope:!1,centroid:!1,convexHull:!1},supportsStatistics:!1,tileMaxRecordCount:0}}},92300:(e,t,n)=>{n.d(t,{V:()=>i,X:()=>r});var s=n(65864);function r(e){return{geometryType:(0,s.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function i(e,t,n){const r=(0,s.xD)(t);return e.map((e=>{const t=r.fromJSON(e);return t.spatialReference=n,t}))}},2272:(e,t,n)=>{n.d(t,{Dl:()=>o,jV:()=>i,lF:()=>a}),n(92602),n(70333);var s=n(4718),r=n(84952);function i(e,t){return t?{...t,query:{...e??{},...t.query}}:{query:e}}function o(e){return"string"==typeof e?(0,r.An)(e):(0,s.o8)(e)}function a(e,t,n){const s={};for(const r in e){if("declaredClass"===r)continue;const i=e[r];if(null!=i&&"function"!=typeof i)if(Array.isArray(i))s[r]=i.map((e=>a(e)));else if("object"==typeof i)if(i.toJSON){const e=i.toJSON(n?.[r]);s[r]=t?e:JSON.stringify(e)}else s[r]=t?i:JSON.stringify(i);else s[r]=i}return s}n(926)},93470:(e,t,n)=>{n.d(t,{Cb:()=>i,HW:()=>p,JR:()=>r,JZ:()=>l,WR:()=>a,b6:()=>c,fT:()=>s,nC:()=>u,yM:()=>o});const s=[252,146,31,255],r=[153,153,153,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:s,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:s},a={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},l={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},u={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},p={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},c={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}}}]);
|