@arcgis/core 4.23.0-next.20220126 → 4.23.0-next.20220127
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/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/02fbc76dfdc20e628c61.js +1 -0
- package/assets/esri/core/workers/chunks/0317f37b6c8705b363fd.js +1 -0
- package/assets/esri/core/workers/chunks/0453fad5cb819797b4f6.js +1 -0
- package/assets/esri/core/workers/chunks/{97ec9eef0048760fa260.js → 0d02c6ad1f4688bfa374.js} +1 -1
- package/assets/esri/core/workers/chunks/0d684f16f37d5dc385dd.js +1 -0
- package/assets/esri/core/workers/chunks/0e17691520d890d34efb.js +1 -0
- package/assets/esri/core/workers/chunks/12c0cabb6c59e65d8546.js +1 -0
- package/assets/esri/core/workers/chunks/16b6d0f8378582c051c3.js +1 -0
- package/assets/esri/core/workers/chunks/{b313ab14a643273e7d09.js → 1877ab1b6a115dbba1c5.js} +1 -1
- package/assets/esri/core/workers/chunks/1b2a961f776a0b57e57a.js +1 -0
- package/assets/esri/core/workers/chunks/1b3fd66577b19aa5f2b6.js +1 -0
- package/assets/esri/core/workers/chunks/1f8c6a179e39fd4c5e6f.js +1 -0
- package/assets/esri/core/workers/chunks/2076fcbae63f1bfb7143.js +1 -0
- package/assets/esri/core/workers/chunks/281b89dbf5574fc642ae.js +1 -0
- package/assets/esri/core/workers/chunks/2c8fe9bc988c3c5760a5.js +1 -0
- package/assets/esri/core/workers/chunks/322d917e8cb398816a93.js +1 -0
- package/assets/esri/core/workers/chunks/34b59d7099904dcb28b5.js +1 -0
- package/assets/esri/core/workers/chunks/{e6165e17fbb07bfc40a1.js → 391e96192d1ec4e55ce2.js} +1 -1
- package/assets/esri/core/workers/chunks/{23b15e7c2f96d260e16c.js → 392b6382e06652dd4c80.js} +1 -1
- package/assets/esri/core/workers/chunks/3aa73119b055e05bbbeb.js +1 -0
- package/assets/esri/core/workers/chunks/{c959e0d1cf7dce0421b9.js → 48fa8aed6c24877b44c4.js} +1 -1
- package/assets/esri/core/workers/chunks/{438f0b5ae5c53ae4f06a.js → 4954fd86b48cc68b737c.js} +1 -1
- package/assets/esri/core/workers/chunks/4ba6de8aa7e2960bad49.js +1 -0
- package/assets/esri/core/workers/chunks/52ea678ba1da0e349919.js +1 -0
- package/assets/esri/core/workers/chunks/56274b37ff74ca0d68a6.js +1 -0
- package/assets/esri/core/workers/chunks/{b9c177524b3e7de1ffd1.js → 5790d171072b3c7d108f.js} +1 -1
- package/assets/esri/core/workers/chunks/{5dfe1f8d520025e2118b.js → 57b349d1dbc0bed75b79.js} +1 -1
- package/assets/esri/core/workers/chunks/{b2ebe4f6d100e15b512d.js → 5948923e07bd1662c24a.js} +1 -1
- package/assets/esri/core/workers/chunks/{97a28641b3b2fd31bea2.js → 5bcb3240b3c005e5fe72.js} +1 -1
- package/assets/esri/core/workers/chunks/5dbe555a5a662ff3d9ce.js +1 -0
- package/assets/esri/core/workers/chunks/5ec98f4ddac707d0fbd1.js +1 -0
- package/assets/esri/core/workers/chunks/5ee497d5d7b0e580526a.js +1 -0
- package/assets/esri/core/workers/chunks/5f1dcb6556820cd0aa31.js +1 -0
- package/assets/esri/core/workers/chunks/64b7e8d812ea8fcf269e.js +1 -0
- package/assets/esri/core/workers/chunks/{b0b036ad3ad3cd956747.js → 69fd99b7c76e9992ccf3.js} +1 -1
- package/assets/esri/core/workers/chunks/6e6a3c5866e8d8820457.js +1 -0
- package/assets/esri/core/workers/chunks/75d812955a473d0e8960.js +1 -0
- package/assets/esri/core/workers/chunks/{cc146c57bbdac8029fd8.js → 7a5f5acfbd4ca1a5c1f3.js} +1 -1
- package/assets/esri/core/workers/chunks/8001b0e514bfffe9d7f8.js +1 -0
- package/assets/esri/core/workers/chunks/83b8fec1650e061aaa56.js +1 -0
- package/assets/esri/core/workers/chunks/83d00afae4406ec78bc9.js +1 -0
- package/assets/esri/core/workers/chunks/842db82733635dbf25cb.js +1 -0
- package/assets/esri/core/workers/chunks/{434b16731c6a81f868ef.js → 85b1f36790df95b17659.js} +1 -1
- package/assets/esri/core/workers/chunks/89820b200ee44e678af5.js +1 -0
- package/assets/esri/core/workers/chunks/{94b8dbf859df71858d1c.js → 929c9b7cdab7c4ca3d87.js} +1 -1
- package/assets/esri/core/workers/chunks/{010a71c2aa1b7681e191.js → 9d11f84e6c893b9d0019.js} +1 -1
- package/assets/esri/core/workers/chunks/a1930e4f035bc9aa1ae5.js +1 -0
- package/assets/esri/core/workers/chunks/a8692bffb76444c34760.js +1 -0
- package/assets/esri/core/workers/chunks/{f760a3e030b0f358a92a.js → aeaa1667c2d9f1b3366b.js} +1 -1
- package/assets/esri/core/workers/chunks/{a8b13fb804bb775e4967.js → b62e3dccd9f662c0afeb.js} +1 -1
- package/assets/esri/core/workers/chunks/b97953694f42bfec1b3c.js +1 -0
- package/assets/esri/core/workers/chunks/b9e9cb354822c6d995a4.js +1 -0
- package/assets/esri/core/workers/chunks/ba762bcfd74af0bb8218.js +1 -0
- package/assets/esri/core/workers/chunks/{e4b84ca8ddfd48dd79b1.js → bac9fc90e6756e211160.js} +1 -1
- package/assets/esri/core/workers/chunks/bf97a933ea3b220115e1.js +1 -0
- package/assets/esri/core/workers/chunks/bfedd6ebff817c9b31c0.js +1 -0
- package/assets/esri/core/workers/chunks/c093dff4592832ac0973.js +1 -0
- package/assets/esri/core/workers/chunks/c1135cb02ec46c491459.js +1 -0
- package/assets/esri/core/workers/chunks/{e4e2036373166c1d5cf5.js → c2253a9f29c1aabb2b75.js} +1 -1
- package/assets/esri/core/workers/chunks/c9cbf8135e95f0f42cd9.js +1 -0
- package/assets/esri/core/workers/chunks/d04fca5d46cca02500b7.js +1 -0
- package/assets/esri/core/workers/chunks/d07440469fe7d181c4fd.js +1 -0
- package/assets/esri/core/workers/chunks/d08efbc349dd9f999497.js +1 -0
- package/assets/esri/core/workers/chunks/d835b2a683fcd8aeeed8.js +1 -0
- package/assets/esri/core/workers/chunks/dbf192b4ce7e608610f6.js +1 -0
- package/assets/esri/core/workers/chunks/dd13772a5e2eccc6a2bc.js +1 -0
- package/assets/esri/core/workers/chunks/dedc333a61081772ca7b.js +1 -0
- package/assets/esri/core/workers/chunks/{22b09e276c9b9f22f0f8.js → dee9929d95e9fe26929c.js} +1 -1
- package/assets/esri/core/workers/chunks/{6f50a9647f026a8d4729.js → e0c8d61c7a85ce15499a.js} +1 -1
- package/assets/esri/core/workers/chunks/e12d91ef44d6f879a02a.js +1 -0
- package/assets/esri/core/workers/chunks/{0ce1dc14280d6f188468.js → e4896cf85fb2da8a9cc7.js} +1 -1
- package/assets/esri/core/workers/chunks/e657ba0cab29f05d02da.js +1 -0
- package/assets/esri/core/workers/chunks/e8741bf421f80213f1d3.js +1 -0
- package/assets/esri/core/workers/chunks/e8e775758b79c5a084c8.js +1 -0
- package/assets/esri/core/workers/chunks/e93dfdede0532a89ffa5.js +1 -0
- package/assets/esri/core/workers/chunks/ea595b0df5050eda2a13.js +1 -0
- package/assets/esri/core/workers/chunks/{1305ef8717da6e902a55.js → ec10151a2a95e95a0bb5.js} +1 -1
- package/assets/esri/core/workers/chunks/eccba071ced2d922bb85.js +1 -0
- package/assets/esri/core/workers/chunks/f2124f4d0f2b8a91f0ea.js +1 -0
- package/assets/esri/core/workers/chunks/f9ff3eaf4eb324429fbd.js +1 -0
- package/assets/esri/libs/vxl/vxlLayer.wasm +0 -0
- package/assets/esri/themes/base/widgets/_Weather.scss +1 -1
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/dark-blue/main.css +1 -1
- package/assets/esri/themes/dark-green/main.css +1 -1
- package/assets/esri/themes/dark-purple/main.css +1 -1
- package/assets/esri/themes/dark-red/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/assets/esri/themes/light-blue/main.css +1 -1
- package/assets/esri/themes/light-green/main.css +1 -1
- package/assets/esri/themes/light-purple/main.css +1 -1
- package/assets/esri/themes/light-red/main.css +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ar.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_bg.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_bs.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ca.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_cs.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_da.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_de.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_el.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_en.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_es.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_et.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_fi.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_fr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_he.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_hr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_hu.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_id.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_it.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ja.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ko.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_lt.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_lv.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_nb.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_nl.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_pl.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_pt-BR.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_pt-PT.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ro.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_ru.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sk.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sl.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_sv.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_th.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_tr.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_uk.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_vi.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_zh-CN.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_zh-HK.json +1 -1
- package/assets/esri/widgets/Weather/t9n/Weather_zh-TW.json +1 -1
- package/chunks/Precipitation.glsl.js +91 -0
- package/chunks/vxlLayer.js +1 -1
- package/core/clock.js +1 -1
- package/core/jsonMap.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/core/reactiveUtils.js +1 -1
- package/form/ExpressionInfo.js +1 -1
- package/interfaces.d.ts +28 -28
- package/package.json +1 -1
- package/rest/print.js +1 -1
- package/support/arcadeOnDemand.js +1 -1
- package/support/featureFlags.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/MapViewConstraints.js +1 -1
- package/views/2d/viewpointUtils.js +1 -1
- package/views/3d/environment/CloudsPresets.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/environment/Precipitation.glsl.js +5 -0
- package/views/3d/environment/Precipitation.js +5 -0
- package/views/3d/environment/PrecipitationTechnique.js +5 -0
- package/views/3d/environment/RainyWeather.js +1 -1
- package/views/3d/environment/SnowyWeather.js +5 -0
- package/views/3d/environment/weather.js +1 -1
- package/views/3d/interactive/analysisTools/slice/SliceTool.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsLayerView3D.js +1 -1
- package/views/3d/layers/GraphicsView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DFeatureProcessor.js +1 -1
- package/views/3d/layers/graphics/GraphicsProcessor.js +1 -1
- package/views/3d/support/sunUtils.js +1 -1
- package/views/3d/webgl-engine/lib/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/MapView.js +1 -1
- package/views/View.js +1 -1
- package/views/input/recognizers/DoubleTapDrag.js +1 -1
- package/views/input/recognizers/ImmediateDoubleClick.js +1 -1
- package/views/input/recognizers/PointerClickHoldAndDrag.js +1 -1
- package/views/input/recognizers/SingleAndDoubleClick.js +1 -1
- package/views/support/DefaultsFromMap.js +1 -1
- package/views/support/projectionUtils.js +5 -0
- package/widgets/AreaMeasurement3D/AreaMeasurement3DViewModel.js +1 -1
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/BasemapGallery/support/BasemapGalleryItem.js +1 -1
- package/widgets/BasemapGallery/support/basemapCompatibilityUtils.js +1 -1
- package/widgets/BasemapGallery.js +1 -1
- package/widgets/DirectLineMeasurement3D/DirectLineMeasurement3DViewModel.js +1 -1
- package/widgets/LineOfSight/LineOfSightViewModel.js +1 -1
- package/widgets/Slice/SliceViewModel.js +1 -1
- package/widgets/Weather/WeatherViewModel.js +1 -1
- package/widgets/Weather/css.js +1 -1
- package/widgets/Weather/enums.js +5 -0
- package/widgets/Weather.js +1 -1
- package/widgets/support/InteractiveToolViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/00c5bb5eecb0e89266df.js +0 -1
- package/assets/esri/core/workers/chunks/021a37e2b191298e80b7.js +0 -1
- package/assets/esri/core/workers/chunks/1370c92c40fd6271553c.js +0 -1
- package/assets/esri/core/workers/chunks/14bef72154b3a19561a7.js +0 -1
- package/assets/esri/core/workers/chunks/18668dc45eb9e35530df.js +0 -1
- package/assets/esri/core/workers/chunks/1e4d37c2b9dc83d20a11.js +0 -1
- package/assets/esri/core/workers/chunks/1fbcc8424452d0256bd6.js +0 -1
- package/assets/esri/core/workers/chunks/208a7e24e19fc5633dd7.js +0 -1
- package/assets/esri/core/workers/chunks/25a3e9bc0b4c7e0d3165.js +0 -1
- package/assets/esri/core/workers/chunks/2792ca40f1e92849247c.js +0 -1
- package/assets/esri/core/workers/chunks/2a96f1bba9ce6883e5e0.js +0 -1
- package/assets/esri/core/workers/chunks/3231ee3e090bb4cac3fc.js +0 -1
- package/assets/esri/core/workers/chunks/36a3f6fb4d1d18fcb642.js +0 -1
- package/assets/esri/core/workers/chunks/36e250278b5622ccf068.js +0 -1
- package/assets/esri/core/workers/chunks/395ba088d4864588ff66.js +0 -1
- package/assets/esri/core/workers/chunks/3aa4194dc5497c57647f.js +0 -1
- package/assets/esri/core/workers/chunks/3cc77692b2eee27b9c9e.js +0 -1
- package/assets/esri/core/workers/chunks/40a1e713f63ec77110c0.js +0 -1
- package/assets/esri/core/workers/chunks/4385a268c2a64281d1c1.js +0 -1
- package/assets/esri/core/workers/chunks/46b4bb66a54bbd8e2e57.js +0 -1
- package/assets/esri/core/workers/chunks/4bfbf5a34c9207fdcf44.js +0 -1
- package/assets/esri/core/workers/chunks/5a4a5585ec8027079f32.js +0 -1
- package/assets/esri/core/workers/chunks/5d4863a92b03bebc1b54.js +0 -1
- package/assets/esri/core/workers/chunks/5d991b74d958005c26c4.js +0 -1
- package/assets/esri/core/workers/chunks/634b5ccd7a3ac67f855d.js +0 -1
- package/assets/esri/core/workers/chunks/662d13f68cf3ec92439b.js +0 -1
- package/assets/esri/core/workers/chunks/7bc5cc5dbf1b7b70ddac.js +0 -1
- package/assets/esri/core/workers/chunks/7d661129a0d8c466eeec.js +0 -1
- package/assets/esri/core/workers/chunks/8070972c0efb78523b68.js +0 -1
- package/assets/esri/core/workers/chunks/85e27fd949475f9a6bbc.js +0 -1
- package/assets/esri/core/workers/chunks/8b6ab6202a40fe622833.js +0 -1
- package/assets/esri/core/workers/chunks/96ab518eb6ba11333dee.js +0 -1
- package/assets/esri/core/workers/chunks/98986e6601b0366376b4.js +0 -1
- package/assets/esri/core/workers/chunks/9cdcf9309d6feda70185.js +0 -1
- package/assets/esri/core/workers/chunks/aa861b8eae6c85f3dad4.js +0 -1
- package/assets/esri/core/workers/chunks/aace7e1fef256bb961c9.js +0 -1
- package/assets/esri/core/workers/chunks/ad081d8e49e7f90c3c26.js +0 -1
- package/assets/esri/core/workers/chunks/af5694b4d278cf1db2d9.js +0 -1
- package/assets/esri/core/workers/chunks/afbb4f802ca5774f0326.js +0 -1
- package/assets/esri/core/workers/chunks/b2c5f92e3d7606297ca9.js +0 -1
- package/assets/esri/core/workers/chunks/b8316c6469a543029bc6.js +0 -1
- package/assets/esri/core/workers/chunks/ba615f118a3a8970ef25.js +0 -1
- package/assets/esri/core/workers/chunks/ba6654a885be4b7a43f0.js +0 -1
- package/assets/esri/core/workers/chunks/bf0a65b4be31959f921d.js +0 -1
- package/assets/esri/core/workers/chunks/c11474b702dfb94e8e87.js +0 -1
- package/assets/esri/core/workers/chunks/c890c7fca27170e3341f.js +0 -1
- package/assets/esri/core/workers/chunks/c976785f2391c77d8a30.js +0 -1
- package/assets/esri/core/workers/chunks/ca2f5faa01d99c21ec14.js +0 -1
- package/assets/esri/core/workers/chunks/cef4af64860ebbfc1c47.js +0 -1
- package/assets/esri/core/workers/chunks/cfbffa429d88e7709c3f.js +0 -1
- package/assets/esri/core/workers/chunks/d24c4fbc567486b1188f.js +0 -1
- package/assets/esri/core/workers/chunks/e4f93c55eaefab4192b5.js +0 -1
- package/assets/esri/core/workers/chunks/ec89466f76d0ba22525e.js +0 -1
- package/assets/esri/core/workers/chunks/ee45618c45806ab654cb.js +0 -1
- package/assets/esri/core/workers/chunks/f467c8f1fce22f6f599c.js +0 -1
- package/assets/esri/core/workers/chunks/f4baa5ea2e42b1317941.js +0 -1
- package/assets/esri/core/workers/chunks/face43cf5abcd2f5bd9d.js +0 -1
- package/assets/esri/core/workers/chunks/ffaf091c6023225cf5aa.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1648,6006],{74085:(e,t,r)=>{function i(e){}r.d(t,{Bg:()=>i}),r(80442)},40330:(e,t,r)=>{r.d(t,{Dp:()=>u,id:()=>s,qh:()=>l,i8:()=>a,Nv:()=>o});var i=r(80442),n=r(17452);const a="4.23",o={async request(e,t){var i;const{default:a}=await r.e(3172).then(r.bind(r,3172)),o=e.options,s=o.responseType;o.signal=null==t?void 0:t.signal,o.responseType="native"===s||"native-request-init"===s?"native-request-init":["blob","json","text"].includes(s)&&null!=(i=(0,n.oh)(e.url))&&i.after?s:"array-buffer";const l=await a(e.url,o),u={data:l.data,ssl:l.ssl};switch(l.requestOptions.responseType){case"native-request-init":return delete u.data.signal,u;case"blob":u.data=await u.data.arrayBuffer();break;case"json":u.data=(new TextEncoder).encode(JSON.stringify(u.data)).buffer;break;case"text":u.data=(new TextEncoder).encode(u.data).buffer}return{result:u,transferList:[u.data]}}};let s;function l(e){s=e}function u(e){const t=s&&s.findCredential(e);return t&&t.token?(0,n.ZN)(e,"token",t.token):e}(0,i.Z)("host-webworker")||((0,i.Z)("edge")||(0,i.Z)("trident"))&&console.warn("Deprecated browser - see http://esriurl.com/oldbrowser")},99282:(e,t,r)=>{r.d(t,{a:()=>a});var i=r(67900),n=r(68441);const a={inches:(0,i.En)(1,"meters","inches"),feet:(0,i.En)(1,"meters","feet"),"us-feet":(0,i.En)(1,"meters","us-feet"),yards:(0,i.En)(1,"meters","yards"),miles:(0,i.En)(1,"meters","miles"),"nautical-miles":(0,i.En)(1,"meters","nautical-miles"),millimeters:(0,i.En)(1,"meters","millimeters"),centimeters:(0,i.En)(1,"meters","centimeters"),decimeters:(0,i.En)(1,"meters","decimeters"),meters:(0,i.En)(1,"meters","meters"),kilometers:(0,i.En)(1,"meters","kilometers"),"decimal-degrees":1/(0,i.ty)(1,"meters",n.sv.radius)}},51706:(e,t,r)=>{var i,n;function a(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?i.Expression:e.field&&"string"==typeof e.field?i.Field:i.Unknown}function l(e,t){const r=t||s(e),a=e.valueUnit||"unknown";return r===i.Unknown?n.Constant:e.stops?n.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?n.ClampedLinear:"unknown"===a?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?n.Proportional:n.Additive:n.Identity:n.RealWorldSize}r.d(t,{RY:()=>i,hL:()=>n,PS:()=>s,QW:()=>l,iY:()=>a,qh:()=>o}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(i||(i={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(n||(n={}))},28101:(e,t,r)=>{r.d(t,{PR:()=>x,Lq:()=>f,Km:()=>m,cM:()=>h,ap:()=>b,V3:()=>w,B3:()=>y});var i=r(22303),n=r(1692),a=r(74085),o=r(92604),s=r(70586),l=r(99282),u=r(51706);const c=o.Z.getLogger("esri.renderers.visualVariables.support.visualVariableUtils"),p=new n.Z,d=Math.PI,y=/^\s*(return\s+)?\$view\.scale\s*(;)?\s*$/i;function f(e,t,r){const n="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"color"===e.type))[0]:e;if(!n)return;if("esri.renderers.visualVariables.ColorVariable"!==n.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.ColorVariable");const a="number"==typeof t,o=a?null:t,l=o&&o.attributes;let u=a?t:null;const p=n.field,{ipData:d,hasExpression:y}=n.cache;let f=n.cache.compiledFunc;if(!p&&!y){const e=n.stops;return e&&e[0]&&e[0].color}if("number"!=typeof u)if(y){if(!(0,s.pC)(r)||!(0,s.pC)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,i=t.getViewInfo(e),a=t.createExecContext(o,i);if(!f){const e=t.createSyntaxTree(n.valueExpression);f=t.createFunction(e),n.cache.compiledFunc=f}u=t.executeFunction(f,a)}else l&&(u=l[p]);const m=n.normalizationField,h=l?parseFloat(l[m]):void 0;if(null!=u&&(!m||a||!isNaN(h)&&0!==h)){isNaN(h)||a||(u/=h);const e=S(u,d);if(e){const t=e[0],a=e[1],o=t===a?n.stops[t].color:i.Z.blendColors(n.stops[t].color,n.stops[a].color,e[2],(0,s.pC)(r)?r.color:void 0);return new i.Z(o)}}}function m(e,t,r){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"opacity"===e.type))[0]:e;if(!i)return;if("esri.renderers.visualVariables.OpacityVariable"!==i.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.OpacityVariable");const n="number"==typeof t,a=n?null:t,o=a&&a.attributes;let l=n?t:null;const u=i.field,{ipData:p,hasExpression:d}=i.cache;let y=i.cache.compiledFunc;if(!u&&!d){const e=i.stops;return e&&e[0]&&e[0].opacity}if("number"!=typeof l)if(d){if((0,s.Wi)(r)||(0,s.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,n=t.getViewInfo(e),o=t.createExecContext(a,n);if(!y){const e=t.createSyntaxTree(i.valueExpression);y=t.createFunction(e),i.cache.compiledFunc=y}l=t.executeFunction(y,o)}else o&&(l=o[u]);const f=i.normalizationField,m=o?parseFloat(o[f]):void 0;if(null!=l&&(!f||n||!isNaN(m)&&0!==m)){isNaN(m)||n||(l/=m);const e=S(l,p);if(e){const t=e[0],r=e[1];if(t===r)return i.stops[t].opacity;{const n=i.stops[t].opacity;return n+(i.stops[r].opacity-n)*e[2]}}}}function h(e,t,r){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"rotation"===e.type))[0]:e;if(!i)return;if("esri.renderers.visualVariables.RotationVariable"!==i.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.RotationVariable");const n=i.axis||"heading",a="heading"===n&&"arithmetic"===i.rotationType?90:0,o="heading"===n&&"arithmetic"===i.rotationType?-1:1,l="number"==typeof t?null:t,u=l&&l.attributes,p=i.field,{hasExpression:d}=i.cache;let y=i.cache.compiledFunc,f=0;if(!p&&!d)return f;if(d){if((0,s.Wi)(r)||(0,s.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const e={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},t=r.arcade.arcadeUtils,n=t.getViewInfo(e),a=t.createExecContext(l,n);if(!y){const e=t.createSyntaxTree(i.valueExpression);y=t.createFunction(e),i.cache.compiledFunc=y}f=t.executeFunction(y,a)}else u&&(f=u[p]||0);return f="number"!=typeof f||isNaN(f)?null:a+o*f,f}function b(e,t,r){const i="visualVariables"in e&&e.visualVariables?e.visualVariables.filter((e=>"size"===e.type))[0]:e;if(!i)return;if("esri.renderers.visualVariables.SizeVariable"!==i.declaredClass)return void c.warn("The visualVariable should be an instance of esri.renderers.visualVariables.SizeVariable");const n=function(e,t,r,i,n){switch(t.transformationType){case u.hL.Additive:return function(e,t,r,i){return e+(g(t.minSize,r,i)||t.minDataValue)}(e,t,r,i);case u.hL.Constant:return function(e,t,r){const i=e.stops;let n=i&&i.length&&i[0].size;return null==n&&(n=e.minSize),g(n,t,r)}(t,r,i);case u.hL.ClampedLinear:return function(e,t,r,i){const n=(e-t.minDataValue)/(t.maxDataValue-t.minDataValue),a=g(t.minSize,r,i),o=g(t.maxSize,r,i),l=(0,s.pC)(i)?i.shape:void 0;if(e<=t.minDataValue)return a;if(e>=t.maxDataValue)return o;if("area"===t.scaleBy&&l){const e="circle"===l,t=e?d*(a/2)**2:a*a,r=t+n*((e?d*(o/2)**2:o*o)-t);return e?2*Math.sqrt(r/d):Math.sqrt(r)}return a+n*(o-a)}(e,t,r,i);case u.hL.Proportional:return function(e,t,r,i){const n=(0,s.pC)(i)?i.shape:void 0,a=e/t.minDataValue,o=g(t.minSize,r,i),l=g(t.maxSize,r,i);let u=null;return u="circle"===n?2*Math.sqrt(a*(o/2)**2):"square"===n||"diamond"===n||"image"===n?Math.sqrt(a*o**2):a*o,v(u,o,l)}(e,t,r,i);case u.hL.Stops:return function(e,t,r,i,n){const[a,o,s]=S(e,n);if(a===o)return g(t.stops[a].size,r,i);{const e=g(t.stops[a].size,r,i);return e+(g(t.stops[o].size,r,i)-e)*s}}(e,t,r,i,n);case u.hL.RealWorldSize:return function(e,t,r,i){const n=((0,s.pC)(i)&&i.resolution?i.resolution:1)*l.a[t.valueUnit],a=g(t.minSize,r,i),o=g(t.maxSize,r,i),{valueRepresentation:u}=t;let c=null;return c="area"===u?2*Math.sqrt(e/d)/n:"radius"===u||"distance"===u?2*e/n:e/n,v(c,a,o)}(e,t,r,i);case u.hL.Identity:return e;case u.hL.Unknown:return null}}(function(e,t,r){const i="number"==typeof t,n=i?null:t,a=n&&n.attributes;let o=i?t:null;const{isScaleDriven:l}=e.cache;let p=e.cache.compiledFunc;if(l){const t=(0,s.pC)(r)?r.scale:void 0,i=(0,s.pC)(r)?r.view:void 0;o=null==t||"3d"===i?function(e){let t=null,r=null;const i=e.stops;return i?(t=i[0].value,r=i[i.length-1].value):(t=e.minDataValue||0,r=e.maxDataValue||0),(t+r)/2}(e):t}else if(!i)switch(e.inputValueType){case u.RY.Expression:{if((0,s.Wi)(r)||(0,s.Wi)(r.arcade))return void c.error("Use of arcade expressions requires an arcade context");const t={viewingMode:r.viewingMode,scale:r.scale,spatialReference:r.spatialReference},i=r.arcade.arcadeUtils,a=i.getViewInfo(t),l=i.createExecContext(n,a);if(!p){const t=i.createSyntaxTree(e.valueExpression);p=i.createFunction(t),e.cache.compiledFunc=p}o=i.executeFunction(p,l);break}case u.RY.Field:a&&(o=a[e.field]);break;case u.RY.Unknown:o=null}if(!(0,u.qh)(o))return null;if(i||!e.normalizationField)return o;const d=a?parseFloat(a[e.normalizationField]):null;return(0,u.qh)(d)&&0!==d?o/d:null}(i,t,r),i,t,r,i.cache.ipData);return null==n||isNaN(n)?0:n}function g(e,t,r){return null==e?null:(0,u.iY)(e)?b(e,t,r):(0,u.qh)(e)?e:null}function v(e,t,r){return(0,u.qh)(r)&&e>r?r:(0,u.qh)(t)&&e<t?t:e}function w(e,t,r){const{isScaleDriven:i}=e.cache;if(!(i&&"3d"===r||t))return null;const n={scale:t,view:r};let a=g(e.minSize,p,n),o=g(e.maxSize,p,n);if(null!=a||null!=o){if(a>o){const e=o;o=a,a=e}return{minSize:a,maxSize:o}}}function S(e,t){if(!t)return;let r=0,i=t.length-1;return t.some(((t,n)=>e<t?(i=n,!0):(r=n,!1))),[r,i,(e-t[r])/(t[i]-t[r])]}function x(e,t,r){const i=["proportional","proportional","proportional"];for(const n of e){const e=n.useSymbolValue?"symbol-value":b(n,t,r);switch(n.axis){case"width":i[0]=e;break;case"depth":i[1]=e;break;case"height":i[2]=e;break;case"width-and-depth":i[0]=e,i[1]=e;break;case"all":case void 0:case null:i[0]=e,i[1]=e,i[2]=e;break;default:(0,a.Bg)(n.axis)}}return i}},74889:(e,t,r)=>{r.r(t),r.d(t,{default:()=>w});var i,n=r(43697),a=r(66577),o=r(1692),s=r(35454),l=r(96674),u=r(22974),c=r(70586),p=r(5600),d=(r(75215),r(71715)),y=r(52011),f=r(30556),m=r(82971),h=r(33955),b=r(1231);const g=new s.Xn({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=i=class extends l.wq{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=m.Z.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const n=e[t],a=o.Z.fromJSON(n),s=n.geometry&&n.geometry.spatialReference;(0,c.pC)(a.geometry)&&!s&&(a.geometry.spatialReference=r),i.push(a)}return i}writeGeometryType(e,t,r,i){if(e)return void g.write(e,t,r,i);const{features:n}=this;if(n)for(const e of n)if(e&&(0,c.pC)(e.geometry))return void g.write(e.geometry.type,t,r,i)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,i=(0,h.im)(e);return!r&&t.spatialReference&&(i.spatialReference=m.Z.fromJSON(t.spatialReference)),i}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&(0,c.pC)(e.geometry)&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new i(this.cloneProperties())}cloneProperties(){return(0,u.d9)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const i=t.features[r];if(i.geometry){const t=e&&e[r];i.geometry=t&&t.toJSON()||i.geometry}}return t}quantize(e){const{scale:[t,r],translate:[i,n]}=e,a=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-i)/t)),(e=>Math.round((n-e)/r)));for(let e=0,t=a.length;e<t;e++)o((0,c.Wg)(a[e].geometry))||(a.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[i,n],scale:[a,o]}=r,s=this._getHydrationFunction(e,(e=>e*a+i),(e=>n-e*o));for(const{geometry:e}of t)(0,c.pC)(e)&&s(e);return this.transform=null,this}_quantizePoints(e,t,r){let i,n;const a=[];for(let o=0,s=e.length;o<s;o++){const s=e[o];if(o>0){const e=t(s[0]),o=r(s[1]);e===i&&o===n||(a.push([e-i,o-n]),i=e,n=o)}else i=t(s[0]),n=r(s[1]),a.push([i,n])}return a.length>0?a:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const i=(0,h.oU)(e)?e.rings:e.paths,n=[];for(let e=0,a=i.length;e<a;e++){const a=i[e],o=this._quantizePoints(a,t,r);o&&n.push(o)}return n.length>0?((0,h.oU)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const i=this._quantizePoints(e.points,t,r);return i.length>0?(e.points=i,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y)}:"polyline"===e||"polygon"===e?e=>{const i=(0,h.oU)(e)?e.rings:e.paths;let n,a;for(let e=0,o=i.length;e<o;e++){const o=i[e];for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(n+=i[0],a+=i[1]):(n=i[0],a=i[1]),i[0]=t(n),i[1]=r(a)}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax)}:"multipoint"===e?e=>{const i=e.points;let n,a;for(let e=0,o=i.length;e<o;e++){const o=i[e];e>0?(n+=o[0],a+=o[1]):(n=o[0],a=o[1]),o[0]=t(n),o[1]=r(a)}}:void 0}};(0,n._)([(0,p.Cb)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,n._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,n._)([(0,p.Cb)({type:[o.Z],json:{write:!0}})],v.prototype,"features",void 0),(0,n._)([(0,d.r)("features")],v.prototype,"readFeatures",null),(0,n._)([(0,p.Cb)({type:[b.Z],json:{write:!0}})],v.prototype,"fields",void 0),(0,n._)([(0,p.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,n._)([(0,f.c)("geometryType")],v.prototype,"writeGeometryType",null),(0,n._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,n._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,n._)([(0,p.Cb)({types:a.qM,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,n._)([(0,d.r)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,n._)([(0,p.Cb)({type:m.Z,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,n._)([(0,f.c)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,n._)([(0,p.Cb)({json:{write:!0}})],v.prototype,"transform",void 0),v=i=(0,n._)([(0,y.j)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const w=v},89164:(e,t,r)=>{r.d(t,{Z:()=>y});var i=r(43697),n=r(22303),a=r(35454),o=r(96674),s=r(5600),l=(r(67676),r(80442),r(75215),r(71715)),u=r(52011);const c=new a.Xn({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let p=0,d=class extends o.wq{constructor(e){super(e),this.id="sym"+p++,this.type=null,this.color=new n.Z([0,0,0,1])}readColor(e){return e&&null!=e[0]?[e[0],e[1],e[2],e[3]/255]:e}async collectRequiredFields(e,t){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,i._)([(0,s.Cb)({type:c.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:c.write}}})],d.prototype,"type",void 0),(0,i._)([(0,s.Cb)({type:n.Z,json:{write:{allowNull:!0}}})],d.prototype,"color",void 0),(0,i._)([(0,l.r)("color")],d.prototype,"readColor",null),d=(0,i._)([(0,u.j)("esri.symbols.Symbol")],d);const y=d},16619:(e,t,r)=>{r.r(t),r.d(t,{default:()=>lt});var i=r(43697),n=r(35454),a=r(5600),o=(r(67676),r(80442),r(75215)),s=r(52011),l=r(68773),u=r(40330),c=r(3172),p=r(20102),d=r(70586),y=r(62357),f=r(17452),m=r(17332),h=r(35671),b=r(28101),g=r(15923),v=r(6570),w=r(82971);let S=class extends g.Z{constructor(){super(...arguments),this.outSpatialReference=null,this.processExtent=null,this.processSpatialReference=null,this.returnFeatureCollection=!1,this.returnM=!1,this.returnZ=!1}};(0,i._)([(0,a.Cb)({type:w.Z})],S.prototype,"outSpatialReference",void 0),(0,i._)([(0,a.Cb)({type:v.Z})],S.prototype,"processExtent",void 0),(0,i._)([(0,a.Cb)({type:w.Z})],S.prototype,"processSpatialReference",void 0),(0,i._)([(0,a.Cb)({nonNullable:!0})],S.prototype,"returnFeatureCollection",void 0),(0,i._)([(0,a.Cb)({nonNullable:!0})],S.prototype,"returnM",void 0),(0,i._)([(0,a.Cb)({nonNullable:!0})],S.prototype,"returnZ",void 0),S=(0,i._)([(0,s.j)("esri/rest/geoprocessor/GPOptions")],S),S.from=(0,o.se)(S);const x=S;var P=r(38581),V=r(1231),D=r(96674);let C=class extends D.wq{constructor(){super(...arguments),this.extent=null,this.height=null,this.href=null,this.opacity=1,this.rotation=0,this.scale=null,this.visible=!0,this.width=null}};(0,i._)([(0,a.Cb)({type:v.Z})],C.prototype,"extent",void 0),(0,i._)([(0,a.Cb)()],C.prototype,"height",void 0),(0,i._)([(0,a.Cb)()],C.prototype,"href",void 0),(0,i._)([(0,a.Cb)()],C.prototype,"opacity",void 0),(0,i._)([(0,a.Cb)()],C.prototype,"rotation",void 0),(0,i._)([(0,a.Cb)()],C.prototype,"scale",void 0),(0,i._)([(0,a.Cb)()],C.prototype,"visible",void 0),(0,i._)([(0,a.Cb)()],C.prototype,"width",void 0),C=(0,i._)([(0,s.j)("esri.layer.support.MapImage")],C);const M=C;var I=r(11282);let L=class extends D.wq{constructor(e){super(e),this.itemId=null,this.url=null}};(0,i._)([(0,a.Cb)({type:String,json:{read:{source:"itemID"},write:{target:"itemID"}}})],L.prototype,"itemId",void 0),(0,i._)([(0,a.Cb)({type:String,json:{write:!0}})],L.prototype,"url",void 0),L=(0,i._)([(0,s.j)("esri.rest.support.DataFile")],L);const T=L;var F=r(74889);const _=new n.Xn({esriMeters:"meters",esriFeet:"feet",esriKilometers:"kilometers",esriMiles:"miles",esriNauticalMiles:"nautical-miles",esriYards:"yards"},{ignoreUnknown:!1});let O=class extends D.wq{constructor(e){super(e),this.distance=0,this.units=null}};(0,i._)([(0,a.Cb)({json:{write:!0}})],O.prototype,"distance",void 0),(0,i._)([(0,a.Cb)({json:{read:_.read,write:_.write}})],O.prototype,"units",void 0),O=(0,i._)([(0,s.j)("esri/rest/support/LinearUnit")],O);const G=O,N=new n.Xn({GPBoolean:"boolean",GPDataFile:"data-file",GPDate:"date",GPDouble:"double",GPFeatureRecordSetLayer:"feature-record-set-layer",GPField:"field",GPLinearUnit:"linear-unit",GPLong:"long",GPRasterData:"raster-data",GPRasterDataLayer:"raster-data-layer",GPRecordSet:"record-set",GPString:"string","GPMultiValue:GPBoolean":"multi-value","GPMultiValue:GPDataFile":"multi-value","GPMultiValue:GPDate":"multi-value","GPMultiValue:GPDouble":"multi-value","GPMultiValue:GPFeatureRecordSetLayer":"multi-value","GPMultiValue:GPField":"multi-value","GPMultiValue:GPLinearUnit":"multi-value","GPMultiValue:GPLong":"multi-value","GPMultiValue:GPRasterData":"multi-value","GPMultiValue:GPRasterDataLayer":"multi-value","GPMultiValue:GPRecordSet":"multi-value","GPMultiValue:GPString":"multi-value"});let R=class extends D.wq{constructor(e){super(e),this.dataType=null,this.value=null}};(0,i._)([(0,a.Cb)({json:{read:N.read,write:N.write}})],R.prototype,"dataType",void 0),(0,i._)([(0,a.Cb)()],R.prototype,"value",void 0),R=(0,i._)([(0,s.j)("esri.rest.support.ParameterValue")],R);const E=R;let j=class extends D.wq{constructor(e){super(e),this.format=null,this.itemId=null,this.url=null}};(0,i._)([(0,a.Cb)()],j.prototype,"format",void 0),(0,i._)([(0,a.Cb)({json:{read:{source:"itemID"},write:{target:"itemID"}}})],j.prototype,"itemId",void 0),(0,i._)([(0,a.Cb)()],j.prototype,"url",void 0),j=(0,i._)([(0,s.j)("esri/rest/support/RasterData")],j);const J=j;async function k(e,t,r,i,n){const a={},o={},s=[];return function(e,t,r){for(const i in e){const n=e[i];if(n&&"object"==typeof n&&n instanceof F.default){const{features:e}=n;r[i]=[t.length,t.length+e.length],e.forEach((e=>{t.push(e.geometry)}))}}}(i,s,a),(0,P.aX)(s).then((s=>{const{outSpatialReference:l,processExtent:u,processSpatialReference:p,returnFeatureCollection:d,returnM:y,returnZ:f}=r,{path:m}=(0,I.en)(e);for(const e in a){const t=a[e];o[e]=s.slice(t[0],t[1])}const h=l?l.wkid||l:null,b=p?p.wkid||p:null,g="execute"===t?{returnFeatureCollection:d||void 0,returnM:y||void 0,returnZ:f||void 0}:null,v=q({...u?{context:{extent:u,outSR:h,processSR:b}}:{"env:outSR":h,"env:processSR":b},...i,...g,f:"json"},null,o),w={...n,query:v};return(0,c.default)(`${m}/${t}`,w)}))}function z(e){const t=e.dataType,r=E.fromJSON(e);switch(t){case"GPBoolean":case"GPDouble":case"GPLong":case"GPString":case"GPMultiValue:GPBoolean":case"GPMultiValue:GPDouble":case"GPMultiValue:GPLong":case"GPMultiValue:GPString":return r;case"GPDate":r.value=new Date(r.value);break;case"GPDataFile":r.value=T.fromJSON(r.value);break;case"GPLinearUnit":r.value=G.fromJSON(r.value);break;case"GPFeatureRecordSetLayer":case"GPRecordSet":{const t=e.value.url;r.value=t?T.fromJSON(r.value):F.default.fromJSON(r.value);break}case"GPRasterData":case"GPRasterDataLayer":{const t=e.value.mapImage;r.value=t?M.fromJSON(t):J.fromJSON(r.value);break}case"GPField":r.value=V.Z.fromJSON(r.value);break;case"GPMultiValue:GPDate":{const e=r.value;r.value=e.map((e=>new Date(e)));break}case"GPMultiValue:GPDataFile":r.value=r.value.map((e=>T.fromJSON(e)));break;case"GPMultiValue:GPLinearUnit":r.value=r.value.map((e=>G.fromJSON(e)));break;case"GPMultiValue:GPFeatureRecordSetLayer":case"GPMultiValue:GPRecordSet":r.value=r.value.map((e=>F.default.fromJSON(e)));break;case"GPMultiValue:GPRasterData":case"GPMultiValue:GPRasterDataLayer":r.value=r.value.map((e=>e?M.fromJSON(e):J.fromJSON(r.value)));break;case"GPMultiValue:GPField":r.value=r.value.map((e=>V.Z.fromJSON(e)))}return r}function q(e,t,r){for(const t in e){const r=e[t];Array.isArray(r)?e[t]=JSON.stringify(r.map((e=>q({item:e},!0).item))):r instanceof Date&&(e[t]=r.getTime())}return(0,I.cv)(e,t,r)}var U,A=r(51623),Z=r(95330);const $=new n.Xn({esriJobCancelled:"job-cancelled",esriJobCancelling:"job-cancelling",esriJobDeleted:"job-deleted",esriJobDeleting:"job-deleting",esriJobTimedOut:"job-timed-out",esriJobExecuting:"job-executing",esriJobFailed:"job-failed",esriJobNew:"job-new",esriJobSubmitted:"job-submitted",esriJobSucceeded:"job-succeeded",esriJobWaiting:"job-waiting"});let W=U=class extends D.wq{constructor(e){super(e),this.jobId=null,this.jobStatus=null,this.messages=null,this.requestOptions=null,this.sourceUrl=null,this._timer=null}cancelJob(e){const{jobId:t,sourceUrl:r}=this,{path:i}=(0,I.en)(r),n={...this.requestOptions,...e,query:{f:"json"}};return this._clearTimer(),(0,c.default)(`${i}/jobs/${t}/cancel`,n).then((e=>{const t=U.fromJSON(e.data);return this.messages=t.messages,this.jobStatus=t.jobStatus,this}))}destroy(){clearInterval(this._timer)}checkJobStatus(e){const{path:t}=(0,I.en)(this.sourceUrl),r={...this.requestOptions,...e,query:{f:"json"}},i=`${t}/jobs/${this.jobId}`;return(0,c.default)(i,r).then((({data:e})=>{const t=U.fromJSON(e);return this.messages=t.messages,this.jobStatus=t.jobStatus,this}))}fetchResultData(e,t,r){t=x.from(t||{});const{returnFeatureCollection:i,returnM:n,returnZ:a,outSpatialReference:o}=t,{path:s}=(0,I.en)(this.sourceUrl),l=q({returnFeatureCollection:i,returnM:n,returnZ:a,outSR:o,returnType:"data",f:"json"},null),u={...this.requestOptions,...r,query:l},p=`${s}/jobs/${this.jobId}/results/${e}`;return(0,c.default)(p,u).then((e=>z(e.data)))}fetchResultImage(e,t,r){const{path:i}=(0,I.en)(this.sourceUrl),n=q({...t.toJSON(),f:"json"}),a={...this.requestOptions,...r,query:n},o=`${i}/jobs/${this.jobId}/results/${e}`;return(0,c.default)(o,a).then((e=>z(e.data)))}async fetchResultMapImageLayer(){const{path:e}=(0,I.en)(this.sourceUrl),t=e.indexOf("/GPServer/"),i=`${e.substring(0,t)}/MapServer/jobs/${this.jobId}`;return new(0,(await Promise.all([r.e(6968),r.e(755),r.e(3471),r.e(511),r.e(4369),r.e(5823),r.e(9664)]).then(r.bind(r,75823))).default)({url:i})}async waitForJobCompletion(e={}){const{interval:t=1e3,signal:r,statusCallback:i}=e;return new Promise(((e,n)=>{(0,Z.fu)(r,(()=>{this._clearTimer(),n((0,Z.zE)())})),this._clearTimer();const a=setInterval((()=>{this._timer||n((0,Z.zE)()),this.checkJobStatus(this.requestOptions).then((t=>{const{jobStatus:r}=t;switch(this.jobStatus=r,r){case"job-succeeded":this._clearTimer(),e(this);break;case"job-submitted":case"job-executing":case"job-waiting":case"job-new":i&&i(this);break;case"job-cancelled":case"job-cancelling":case"job-deleted":case"job-deleting":case"job-timed-out":case"job-failed":this._clearTimer(),n(this)}}))}),t);this._timer=a}))}_clearTimer(){this._timer&&(clearInterval(this._timer),this._timer=null)}};(0,i._)([(0,a.Cb)()],W.prototype,"jobId",void 0),(0,i._)([(0,a.Cb)({json:{read:$.read}})],W.prototype,"jobStatus",void 0),(0,i._)([(0,a.Cb)({type:[A.Z]})],W.prototype,"messages",void 0),(0,i._)([(0,a.Cb)()],W.prototype,"requestOptions",void 0),(0,i._)([(0,a.Cb)({json:{write:!0}})],W.prototype,"sourceUrl",void 0),W=U=(0,i._)([(0,s.j)("esri.rest.support.JobInfo")],W);const B=W,K=new n.Xn({PDF:"pdf",PNG32:"png32",PNG8:"png8",JPG:"jpg",GIF:"gif",EPS:"eps",SVG:"svg",SVGZ:"svgz"}),X=(K.fromJSON.bind(K),K.toJSON.bind(K)),Q=new n.Xn({MAP_ONLY:"map-only","A3 Landscape":"a3-landscape","A3 Portrait":"a3-portrait","A4 Landscape":"a4-landscape","A4 Portrait":"a4-portrait","Letter ANSI A Landscape":"letter-ansi-a-landscape","Letter ANSI A Portrait":"letter-ansi-a-portrait","Tabloid ANSI B Landscape":"tabloid-ansi-b-landscape","Tabloid ANSI B Portrait":"tabloid-ansi-b-portrait"}),Y=(Q.fromJSON.bind(Q),Q.toJSON.bind(Q)),H="simple-marker",ee="simple-line";function te(e,t){const{graphic:r,renderer:i,symbol:n}=t,a=n.type;if("text"===a||"shield-label-symbol"===a||!("visualVariables"in i)||!i.visualVariables)return;const o=i.getVisualVariablesForType("size"),s=i.getVisualVariablesForType("color"),l=i.getVisualVariablesForType("opacity"),u=i.getVisualVariablesForType("rotation"),c=o[0],p=s[0],d=l[0],f=u[0];if(c){const t=a===H?n.style:null,i=(0,b.ap)(c,r,{shape:t});null!=i&&(a===H?e.size=(0,y.Wz)(i):"picture-marker"===a?(e.width=(0,y.Wz)(i),e.height=(0,y.Wz)(i)):a===ee?e.width=(0,y.Wz)(i):e.outline&&(e.outline.width=(0,y.Wz)(i)))}if(p){const t=(0,b.Lq)(p,r);(t&&a===H||a===ee||"simple-fill"===a)&&(e.color=t?t.toJSON():void 0)}if(d){const t=(0,b.Km)(d,r);null!=t&&e.color&&(e.color[3]=Math.round(255*t))}f&&(e.angle=-(0,b.cM)(i,r))}function re(e){return e&&"bing-maps"===e.type}function ie(e){return e&&"blendMode"in e&&"effect"in e}function ne(e){return e&&"csv"===e.type}function ae(e){return e&&"feature"===e.type}function oe(e){return e&&"geojson"===e.type}function se(e){return e&&"graphics"===e.type}function le(e){return e&&"group"===e.type}function ue(e){return e&&"esri.views.2d.layers.GroupLayerView2D"===e.declaredClass}function ce(e){return e&&"imagery"===e.type}function pe(e){return e&&"imagery-tile"===e.type}function de(e){return e&&"kml"===e.type}function ye(e){return e&&"map-image"===e.type}function fe(e){return e&&"map-notes"===e.type}function me(e){return e&&"open-street-map"===e.type}function he(e){const t=e.layer;if(ie(t)){const r=t.blendMode;if((!r||"normal"===r)&&(t.effect||"featureEffect"in e&&e.featureEffect))return!0}return!1}function be(e){return e&&"stream"===e.type}function ge(e){return e&&"tile"===e.type}function ve(e){return e&&"vector-tile"===e.type}function we(e){return e&&"web-tile"===e.type}function Se(e){return e&&"wms"===e.type}function xe(e){return e&&"wmts"===e.type}let Pe=class extends g.Z{constructor(e){super(e),this.attributionVisible=!0,this.exportOptions={width:800,height:1100,dpi:96},this.forceFeatureAttributes=!1,this.format="png32",this.label=null,this.layout="map-only",this.layoutOptions=null,this.outScale=0,this.scalePreserved=!0,this.showLabels=!0}};(0,i._)([(0,a.Cb)()],Pe.prototype,"attributionVisible",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"exportOptions",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"forceFeatureAttributes",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"format",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"label",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"layout",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"layoutOptions",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"outScale",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"scalePreserved",void 0),(0,i._)([(0,a.Cb)()],Pe.prototype,"showLabels",void 0),Pe=(0,i._)([(0,s.j)("esri.rest.support.PrintTemplate")],Pe);const Ve=Pe;var De=r(71058),Ce=r(410);const Me={Feet:"ft",Kilometers:"km",Meters:"m",Miles:"mi"},Ie=new n.Xn({esriFeet:"Feet",esriKilometers:"Kilometers",esriMeters:"Meters",esriMiles:"Miles"}),Le=new n.Xn({esriExecutionTypeSynchronous:"sync",esriExecutionTypeAsynchronous:"async"}),Te=new Map;async function Fe(e,t,r){const i=Oe(e);let n=Te.get(i);return Promise.resolve().then((()=>n?{data:n.gpMetadata}:(n={gpServerUrl:i,is11xService:!1,legendLayerNameMap:{},legendLayers:[]},(0,c.default)(i,{query:{f:"json"}})))).then((e=>(n.gpMetadata=e.data,n.cimVersion=n.gpMetadata.cimVersion,n.is11xService=!!n.cimVersion,Te.set(i,n),_e(t,n)))).then((i=>{const a=function(e){return e.gpMetadata&&e.gpMetadata.executionType?Le.fromJSON(e.gpMetadata.executionType):"sync"}(n);let o;const s=e=>"sync"===a?e.results&&e.results[0]&&e.results[0].value:o.fetchResultData("Output_File",null,r).then((e=>e.value));return"async"===a?async function(e,t,r,i){return r=x.from(r||{}),k(e,"submitJob",r,t,i).then((t=>{const r=B.fromJSON(t.data);return r.sourceUrl=e,r}))}(e,i,null,r).then((e=>(o=e,e.waitForJobCompletion({interval:t.updateDelay}).then(s)))):async function(e,t,r,i){return k(e,"execute",r=x.from(r||{}),t,i).then((e=>{const t=e.data.results||[],r=e.data.messages||[];return{results:t.map(z),messages:r.map((e=>A.Z.fromJSON(e)))}}))}(e,i,null,r).then(s)}))}async function _e(e,t){t=t||{is11xService:!1,legendLayerNameMap:{},legendLayers:[]};const r=e.template||new Ve;null==r.showLabels&&(r.showLabels=!0);const i=r.exportOptions;let n;const a=Y(r.layout);if(i&&(n={dpi:i.dpi},"map_only"===a.toLowerCase()||""===a)){const e=i.width,t=i.height;n.outputSize=[e,t]}const o=r.layoutOptions;let s;if(o){let e,t;"Miles"===o.scalebarUnit||"Kilometers"===o.scalebarUnit?(e="Kilometers",t="Miles"):"Meters"!==o.scalebarUnit&&"Feet"!==o.scalebarUnit||(e="Meters",t="Feet"),s={titleText:o.titleText,authorText:o.authorText,copyrightText:o.copyrightText,customTextElements:o.customTextElements,scaleBarOptions:{metricUnit:Ie.toJSON(e),metricLabel:Me[e],nonMetricUnit:Ie.toJSON(t),nonMetricLabel:Me[t]}}}let l=null;null!=o&&o.legendLayers&&(l=o.legendLayers.map((e=>{t.legendLayerNameMap[e.layerId]=e.title;const r={id:e.layerId};return e.subLayerIds&&(r.subLayerIds=e.subLayerIds),r})));const u=await async function(e,t,r){const i=e.view;let n=i.spatialReference;const a={operationalLayers:await Ge(i,t,r)};let o=r.ssExtent||e.extent||i.extent;if(n&&n.isWrappable&&(o=o.clone()._normalize(!0),n=o.spatialReference),a.mapOptions={extent:o&&o.toJSON(),spatialReference:n&&n.toJSON(),showAttribution:t.attributionVisible},r.ssExtent=null,i.background&&(a.background=i.background.toJSON()),i.rotation&&(a.mapOptions.rotation=-i.rotation),t.scalePreserved&&(a.mapOptions.scale=t.outScale||i.scale),(0,d.pC)(i.timeExtent)){const e=(0,d.pC)(i.timeExtent.start)?i.timeExtent.start.getTime():null,t=(0,d.pC)(i.timeExtent.end)?i.timeExtent.end.getTime():null;a.mapOptions.time=[e,t]}return a}(e,r,t);if(u.operationalLayers){const e=new RegExp("[\\u4E00-\\u9FFF\\u0E00-\\u0E7F\\u0900-\\u097F\\u3040-\\u309F\\u30A0-\\u30FF\\u31F0-\\u31FF]"),r=/[\u0600-\u06FF]/,i=t=>{const i=t.text,n=t.font,a=n&&n.family&&n.family.toLowerCase();i&&n&&("arial"===a||"arial unicode ms"===a)&&(n.family=e.test(i)?"Arial Unicode MS":"Arial","normal"!==n.style&&r.test(i)&&(n.family="Arial Unicode MS"))},n=()=>{throw new p.Z("print-task:cim-symbol-unsupported","CIMSymbol is not supported by a print service published from ArcMap")};u.operationalLayers.forEach((e=>{var r,a,o;null!=(r=e.featureCollection)&&r.layers?e.featureCollection.layers.forEach((e=>{var r,a,o,s;if(null!=(r=e.layerDefinition)&&null!=(a=r.drawingInfo)&&null!=(o=a.renderer)&&o.symbol){const r=e.layerDefinition.drawingInfo.renderer;"esriTS"===r.symbol.type?i(r.symbol):"CIMSymbolReference"!==r.symbol.type||t.is11xService||n()}null!=(s=e.featureSet)&&s.features&&e.featureSet.features.forEach((e=>{e.symbol&&("esriTS"===e.symbol.type?i(e.symbol):"CIMSymbolReference"!==e.symbol.type||t.is11xService||n())}))})):!t.is11xService&&null!=(a=e.layerDefinition)&&null!=(o=a.drawingInfo)&&o.renderer&&JSON.stringify(e.layerDefinition.drawingInfo.renderer).includes('"type":"CIMSymbolReference"')&&n()}))}e.outSpatialReference&&(u.mapOptions.spatialReference=e.outSpatialReference.toJSON()),Object.assign(u,{exportOptions:n,layoutOptions:s||{}}),Object.assign(u.layoutOptions,{legendOptions:{operationalLayers:null!=l?l:t.legendLayers.slice()}}),t.legendLayers.length=0,Te.set(t.gpServerUrl,t);const c={Web_Map_as_JSON:JSON.stringify(u),Format:X(r.format),Layout_Template:a};return e.extraParameters&&Object.assign(c,e.extraParameters),c}function Oe(e){let t=e;const r=t.lastIndexOf("/GPServer/");return r>0&&(t=t.slice(0,r+9)),t}async function Ge(e,t,r){const i=[],n={layerView:null,printTemplate:t,view:e};let a=0;t.scalePreserved&&(a=t.outScale||e.scale);const o=function(e,t){const r=e.allLayerViews.items;if(t===e.scale)return r.filter((e=>!e.suspended));const i=new Array;for(const e of r)ue(e.parent)&&!i.includes(e.parent)||!e.visible||t&&"isVisibleAtScale"in e&&!e.isVisibleAtScale(t)||i.push(e);return i}(e,a);for(const e of o){const t=e.layer;if(!t.loaded||le(t))continue;let a;n.layerView=e,a=he(e)?await $e(t,n,r):re(t)?Ne(t):ne(t)?await Re(t,n,r):ae(t)?await je(t,n,r):oe(t)?await Je(t,n,r):se(t)?await ke(t,n,r):ce(t)?ze(t,r):pe(t)?await qe(t,n,r):de(t)?await Ue(t,n,r):ye(t)?Ae(t,n,r):fe(t)?await Ze(n,r):me(t)?{type:"OpenStreetMap"}:be(t)?await We(t,n,r):ge(t)?Be(t,r):ve(t)?await Ke(t,n,r):we(t)?Xe(t):Se(t)?Qe(t):xe(t)?Ye(t):await $e(t,n,r),a&&(Array.isArray(a)?i.push(...a):(a.id=t.id,a.title=r.legendLayerNameMap[t.id]||t.title,a.opacity=t.opacity,a.minScale=t.minScale||0,a.maxScale=t.maxScale||0,ie(t)&&t.blendMode&&"normal"!==t.blendMode&&(a.blendMode=t.blendMode),i.push(a)))}if(a&&i.forEach((e=>{e.minScale=0,e.maxScale=0})),e.graphics&&e.graphics.length){const n=await Ee(null,e.graphics,t,r);n&&i.push(n)}return i}function Ne(e){return{culture:e.culture,key:e.key,type:"BingMaps"+("aerial"===e.style?"Aerial":"hybrid"===e.style?"Hybrid":"Road")}}async function Re(e,t,r){e.legendEnabled&&r.legendLayers.push({id:e.id});const i=t.layerView,n=t.printTemplate;let a;return!r.is11xService||i.filter?Ee(e,await it(i),n,r):(a={type:"CSV"},e.write(a,{origin:"web-map"}),delete a.popupInfo,delete a.layerType,a.showLabels=n.showLabels&&e.labelsVisible,a)}async function Ee(e,t,r,i){let n;const a={layerDefinition:{name:"polygonLayer",geometryType:"esriGeometryPolygon",drawingInfo:{renderer:null}},featureSet:{geometryType:"esriGeometryPolygon",features:[]}},o={layerDefinition:{name:"polylineLayer",geometryType:"esriGeometryPolyline",drawingInfo:{renderer:null}},featureSet:{geometryType:"esriGeometryPolyline",features:[]}},s={layerDefinition:{name:"pointLayer",geometryType:"esriGeometryPoint",drawingInfo:{renderer:null}},featureSet:{geometryType:"esriGeometryPoint",features:[]}},l={layerDefinition:{name:"multipointLayer",geometryType:"esriGeometryMultipoint",drawingInfo:{renderer:null}},featureSet:{geometryType:"esriGeometryMultipoint",features:[]}},u={layerDefinition:{name:"pointLayer",geometryType:"esriGeometryPoint",drawingInfo:{renderer:null}},featureSet:{geometryType:"esriGeometryPoint",features:[]}};if(u.layerDefinition.name="textLayer",delete u.layerDefinition.drawingInfo,e){if("esri.layers.FeatureLayer"===e.declaredClass||"esri.layers.StreamLayer"===e.declaredClass?a.layerDefinition.name=o.layerDefinition.name=s.layerDefinition.name=l.layerDefinition.name=i.legendLayerNameMap[e.id]||e.get("arcgisProps.title")||e.title:"esri.layers.GraphicsLayer"===e.declaredClass&&(t=e.graphics.items),e.renderer){const t=e.renderer.toJSON();a.layerDefinition.drawingInfo.renderer=t,o.layerDefinition.drawingInfo.renderer=t,s.layerDefinition.drawingInfo.renderer=t,l.layerDefinition.drawingInfo.renderer=t}if(r.showLabels&&e.labelsVisible&&"function"==typeof e.write){var c,p;const t=null==(c=e.write({},{origin:"web-map"}).layerDefinition)||null==(p=c.drawingInfo)?void 0:p.labelingInfo;t&&(n=!0,a.layerDefinition.drawingInfo.labelingInfo=t,o.layerDefinition.drawingInfo.labelingInfo=t,s.layerDefinition.drawingInfo.labelingInfo=t,l.layerDefinition.drawingInfo.labelingInfo=t)}}let d;null!=e&&e.renderer||n||(delete a.layerDefinition.drawingInfo,delete o.layerDefinition.drawingInfo,delete s.layerDefinition.drawingInfo,delete l.layerDefinition.drawingInfo);const y=null==e?void 0:e.fieldsIndex,f=null==e?void 0:e.renderer;if(y){const t=new Set;n&&await(0,h.Mu)(t,e),f&&"function"==typeof f.collectRequiredFields&&await f.collectRequiredFields(t,y),d=Array.from(t);const r=y.fields.map((e=>e.toJSON()));a.layerDefinition.fields=r,o.layerDefinition.fields=r,s.layerDefinition.fields=r,l.layerDefinition.fields=r}const b=t&&t.length;let g;for(let n=0;n<b;n++){var v;const c=t[n]||t.getItemAt(n);if(!1===c.visible||!c.geometry)continue;if(g=c.toJSON(),g.hasOwnProperty("popupTemplate")&&delete g.popupTemplate,g.geometry&&g.geometry.z&&delete g.geometry.z,g.symbol&&g.symbol.outline&&"esriCLS"===g.symbol.outline.type&&!i.is11xService)continue;!i.is11xService&&g.symbol&&g.symbol.outline&&g.symbol.outline.color&&g.symbol.outline.color[3]&&(g.symbol.outline.color[3]=255);const p=e&&e.renderer&&("valueExpression"in e.renderer&&e.renderer.valueExpression||"hasVisualVariables"in e.renderer&&e.renderer.hasVisualVariables());if(!g.symbol&&e&&e.renderer&&p&&!i.is11xService){const t=e.renderer,r=await t.getSymbolAsync(c);if(!r)continue;g.symbol=r.toJSON(),"hasVisualVariables"in t&&t.hasVisualVariables()&&te(g.symbol,{renderer:t,graphic:c,symbol:r})}if(g.symbol&&(g.symbol.angle||delete g.symbol.angle,nt(g.symbol)?g.symbol=await tt(g.symbol,i):g.symbol.text&&delete g.attributes),(!r||!r.forceFeatureAttributes)&&null!=(v=d)&&v.length){const e={};d.forEach((t=>{g.attributes&&g.attributes.hasOwnProperty(t)&&(e[t]=g.attributes[t])})),g.attributes=e}"polygon"===c.geometry.type?a.featureSet.features.push(g):"polyline"===c.geometry.type?o.featureSet.features.push(g):"point"===c.geometry.type?g.symbol&&g.symbol.text?u.featureSet.features.push(g):s.featureSet.features.push(g):"multipoint"===c.geometry.type?l.featureSet.features.push(g):"extent"===c.geometry.type&&(g.geometry=m.Z.fromExtent(c.geometry).toJSON(),a.featureSet.features.push(g))}const w=[a,o,l,s,u].filter((e=>e.featureSet.features.length>0));for(const e of w){const t=e.featureSet.features.every((e=>e.symbol));!t||r&&r.forceFeatureAttributes||e.featureSet.features.forEach((e=>{delete e.attributes})),t&&delete e.layerDefinition.drawingInfo,e.layerDefinition.drawingInfo&&e.layerDefinition.drawingInfo.renderer&&await rt(e.layerDefinition.drawingInfo.renderer,i)}return w.length?{featureCollection:{layers:w},showLabels:n}:null}async function je(e,t,r){var i,n;let a;const o=e.renderer,s=parseFloat(r.cimVersion);if(e.featureReduction&&(!r.is11xService||s<2.9)||"dot-density"===(null==o?void 0:o.type)&&(!r.is11xService||s<2.6))return $e(e,t,r);e.legendEnabled&&r.legendLayers.push({id:e.id});const l=t.layerView,{printTemplate:u,view:c}=t,p=o&&("valueExpression"in o&&o.valueExpression||"hasVisualVariables"in o&&o.hasVisualVariables()),d="feature-layer"!==(null==(i=e.source)?void 0:i.type)&&"ogc-feature"!==(null==(n=e.source)?void 0:n.type);if(!r.is11xService&&p||l.filter||d||!o||"field"in o&&null!=o.field&&("string"!=typeof o.field||!e.getField(o.field))){const t=await it(l);a=await Ee(e,t,u,r)}else{var y,f;if(a={id:(m=e.write()).id,title:m.title,opacity:m.opacity,minScale:m.minScale,maxScale:m.maxScale,url:m.url,layerType:m.layerType,customParameters:m.customParameters,layerDefinition:m.layerDefinition},a.showLabels=u.showLabels&&e.labelsVisible,He(a,e),null!=(y=a.layerDefinition)&&null!=(f=y.drawingInfo)&&f.renderer&&(delete a.layerDefinition.minScale,delete a.layerDefinition.maxScale,await rt(a.layerDefinition.drawingInfo.renderer,r),"visualVariables"in o&&o.visualVariables&&o.visualVariables[0])){const e=o.visualVariables[0];if("size"===e.type&&e.maxSize&&"number"!=typeof e.maxSize&&e.minSize&&"number"!=typeof e.minSize){const t=(0,b.V3)(e,c.scale);a.layerDefinition.drawingInfo.renderer.visualVariables[0].minSize=t.minSize,a.layerDefinition.drawingInfo.renderer.visualVariables[0].maxSize=t.maxSize}}const t=(0,Ce.cx)(l);t&&(a.layerDefinition||(a.layerDefinition={}),a.layerDefinition.definitionExpression=a.layerDefinition.definitionExpression?`(${a.layerDefinition.definitionExpression}) AND (${t})`:t)}var m;return a}async function Je(e,{layerView:t,printTemplate:r},i){return e.legendEnabled&&i.legendLayers.push({id:e.id}),Ee(e,await it(t),r,i)}async function ke(e,{printTemplate:t},r){return Ee(e,null,t,r)}function ze(e,t){e.legendEnabled&&t.legendLayers.push({id:e.id});const r={layerType:(i=e.write()).layerType,customParameters:i.customParameters};var i;if(r.bandIds=e.bandIds,r.compressionQuality=e.compressionQuality,r.format=e.format,r.interpolation=e.interpolation,(e.mosaicRule||e.definitionExpression)&&(r.mosaicRule=e.exportImageServiceParameters.mosaicRule.toJSON()),e.renderingRule||e.renderer)if(t.is11xService)e.renderingRule&&(r.renderingRule=e.renderingRule.toJSON()),e.renderer&&(r.layerDefinition=r.layerDefinition||{},r.layerDefinition.drawingInfo=r.layerDefinition.drawingInfo||{},r.layerDefinition.drawingInfo.renderer=e.renderer.toJSON());else{const t=e.exportImageServiceParameters.combineRendererWithRenderingRule();t&&(r.renderingRule=t.toJSON())}return He(r,e),r}async function qe(e,t,r){var i;if("animated-flow"===(null==(i=e.renderer)?void 0:i.type))return $e(e,t,r);e.legendEnabled&&r.legendLayers.push({id:e.id});const n={bandIds:(a=e.write()||{}).bandIds,customParameters:a.customParameters,interpolation:a.interpolation,layerDefinition:a.layerDefinition};var a;return n.layerType="ArcGISImageServiceLayer",He(n,e),n}async function Ue(e,t,r){const i=t.printTemplate;if(r.is11xService){const t={type:"kml"};return e.write(t,{origin:"web-map"}),delete t.layerType,t.url=(0,f.Fv)(e.url),t}{const n=[],a=t.layerView;a.allVisibleMapImages.forEach(((t,r)=>{const i={id:`${e.id}_image${r}`,type:"image",title:e.id,minScale:e.minScale||0,maxScale:e.maxScale||0,opacity:e.opacity,extent:t.extent};"data:image/png;base64,"===t.href.substr(0,22)?i.imageData=t.href.substr(22):i.url=t.href,n.push(i)}));const o=[...a.allVisiblePoints.items,...a.allVisiblePolylines.items,...a.allVisiblePolygons.items],s={id:e.id,...await Ee(null,o,i,r)};return n.push(s),n}}function Ae(e,{view:t},r){let i;const n={id:e.id,subLayerIds:[]};let a=[];const o=t.scale,s=e=>{const t=0===o,r=0===e.minScale||o<=e.minScale,i=0===e.maxScale||o>=e.maxScale;if(e.visible&&(t||r&&i))if(e.sublayers)e.sublayers.forEach(s);else{const t=e.toExportImageJSON(),r={id:e.id,name:e.title,layerDefinition:{drawingInfo:t.drawingInfo,definitionExpression:t.definitionExpression,source:t.source}};a.unshift(r),n.subLayerIds.push(e.id)}};var l;return e.sublayers&&e.sublayers.forEach(s),a.length&&(a=a.map((({id:e,name:t,layerDefinition:r})=>({id:e,name:t,layerDefinition:r}))),i={layerType:(l=e.write()).layerType,customParameters:l.customParameters},i.layers=a,i.visibleLayers=e.capabilities.exportMap.supportsDynamicLayers?void 0:n.subLayerIds,He(i,e),e.legendEnabled&&r.legendLayers.push(n)),i}async function Ze({layerView:e,printTemplate:t},r){const i=[],n=e.layer;if((0,d.pC)(n.featureCollections))for(const e of n.featureCollections){const n=await Ee(e,e.source,t,r);n&&i.push(...n.featureCollection.layers)}else if((0,d.pC)(n.sublayers))for(const e of n.sublayers){const n=await Ee(null,e.graphics,t,r);n&&i.push(...n.featureCollection.layers)}return{featureCollection:{layers:i}}}async function $e(e,{printTemplate:t,view:r},i){const n={type:"image"},a={format:"png",ignoreBackground:!0,layers:[e],rotation:0},o=i.ssExtent||r.extent.clone();let s=96,l=!0,u=!0;if(t.exportOptions){const e=t.exportOptions;e.dpi>0&&(s=e.dpi),e.width>0&&(l=e.width%2==r.width%2),e.height>0&&(u=e.height%2==r.height%2)}if("map-only"===t.layout&&t.scalePreserved&&(!t.outScale||t.outScale===r.scale)&&96===s&&(!l||!u)&&(a.area={x:0,y:0,width:r.width,height:r.height},l||(a.area.width-=1),u||(a.area.height-=1),!i.ssExtent)){const e=r.toMap((0,y.vW)(a.area.width,a.area.height));o.ymin=e.y,o.xmax=e.x,i.ssExtent=o}n.extent=o.clone()._normalize(!0).toJSON();const c=await r.takeScreenshot(a),{data:p}=(0,f.sJ)(c.dataUrl);return n.imageData=p,n}async function We(e,{layerView:t,printTemplate:r},i){return e.legendEnabled&&i.legendLayers.push({id:e.id}),Ee(e,await it(t),r,i)}function Be(e,t){e.legendEnabled&&t.legendLayers.push({id:e.id});const r={layerType:(i=e.write()).layerType,customParameters:i.customParameters};var i;return He(r,e),r}async function Ke(e,t,r){if(r.is11xService&&e.serviceUrl&&e.styleUrl){const t=et(e.styleUrl,e.apiKey),i=et(e.serviceUrl,e.apiKey);if(!t&&!i||"2.1.0"!==r.cimVersion){const r={type:"VectorTileLayer"};return r.styleUrl=(0,f.Fv)(e.styleUrl),r.token=t,i!==t&&(r.additionalTokens=[{url:e.serviceUrl,token:i}]),r}}return $e(e,t,r)}function Xe(e){const t={type:"WebTiledLayer",urlTemplate:e.urlTemplate.replace(/\${/g,"{"),credits:e.copyright};return e.subDomains&&e.subDomains.length>0&&(t.subDomains=e.subDomains),t}function Qe(e){let t;const r=[],i=e=>{e.visible&&(e.sublayers?e.sublayers.forEach(i):e.name&&r.unshift(e.name))};return e.sublayers&&e.sublayers.forEach(i),r.length&&(t={type:"wms",customLayerParameters:e.customLayerParameters,customParameters:e.customParameters,transparentBackground:e.imageTransparency,visibleLayers:r,url:(0,f.Fv)(e.url),version:e.version}),t}function Ye(e){const t=e.activeLayer;return{type:"wmts",customLayerParameters:e.customLayerParameters,customParameters:e.customParameters,format:t.imageFormat,layer:t.id,style:t.styleId,tileMatrixSet:t.tileMatrixSetId,url:(0,f.Fv)(e.url)}}function He(e,t){t.url&&(e.url=(0,f.Fv)(e.url||t.url),e.token=et(e.url,t.apiKey))}function et(e,t){var r,i;return(0,De.r)(e)&&(t||l.Z.apiKey)?t||l.Z.apiKey:null==(r=u.id)||null==(i=r.findCredential(e))?void 0:i.token}async function tt(e,t){t.canvas||(t.canvas=document.createElement("canvas"));const r=1024;t.canvas.width=r,t.canvas.height=r;const i=t.canvas.getContext("2d");let n,a;if(e.path){var o;const t=new Path2D(e.path);t.closePath(),i.fillStyle=Array.isArray(e.color)?`rgba(${e.color[0]},${e.color[1]},${e.color[2]},${e.color[3]/255})`:"rgb(0,0,0)",i.fill(t);const s=function(e,t=15){const r=e.canvas.width,i=e.canvas.height,n=e.getImageData(0,0,r,i).data;let a,o,s,l,u,c;e:for(o=i;o--;)for(a=r;a--;)if(n[4*(r*o+a)+3]>t){c=o;break e}if(!c)return null;e:for(a=r;a--;)for(o=c+1;o--;)if(n[4*(r*o+a)+3]>t){u=a;break e}e:for(a=0;a<=u;++a)for(o=c+1;o--;)if(n[4*(r*o+a)+3]>t){s=a;break e}e:for(o=0;o<=c;++o)for(a=s;a<=u;++a)if(n[4*(r*o+a)+3]>t){l=o;break e}return{x:s,y:l,width:u-s,height:c-l}}(i);if(!s)return null;i.clearRect(0,0,r,r);const l=(0,y.F2)(e.size)/Math.max(s.width,s.height);i.scale(l,l);const u=r/l,c=u/2-s.width/2-s.x,p=u/2-s.height/2-s.y;if(i.translate(c,p),Array.isArray(e.color)&&i.fill(t),null!=(o=e.outline)&&o.width&&Array.isArray(e.outline.color)){const r=e.outline;i.lineWidth=(0,y.F2)(r.width)/l,i.lineJoin="round",i.strokeStyle=`rgba(${r.color[0]},${r.color[1]},${r.color[2]},${r.color[3]/255})`,i.stroke(t),s.width+=i.lineWidth,s.height+=i.lineWidth}s.width*=l,s.height*=l;const d=i.getImageData(512-s.width/2,512-s.height/2,Math.ceil(s.width),Math.ceil(s.height));n=d.width,a=d.height,i.canvas.width=n,i.canvas.height=a,i.putImageData(d,0,0)}else{const t="image/svg+xml"===e.contentType?"data:image/svg+xml;base64,"+e.imageData:e.url,r=(await(0,c.default)(t,{responseType:"image"})).data;n=(0,y.F2)(e.width),a=(0,y.F2)(e.height),i.canvas.width=n,i.canvas.height=a,i.drawImage(r,0,0,i.canvas.width,i.canvas.height)}return{type:"esriPMS",imageData:i.canvas.toDataURL("image/png").substr(22),angle:e.angle,contentType:"image/png",height:(0,y.Wz)(a),width:(0,y.Wz)(n),xoffset:e.xoffset,yoffset:e.yoffset}}async function rt(e,t){const r=e.type;if("simple"===r&&nt(e.symbol))e.symbol=await tt(e.symbol,t);else if("uniqueValue"===r||"classBreaks"===r){nt(e.defaultSymbol)&&(e.defaultSymbol=await tt(e.defaultSymbol,t));const i=e["uniqueValue"===r?"uniqueValueInfos":"classBreakInfos"];if(i)for(const e of i)nt(e.symbol)&&(e.symbol=await tt(e.symbol,t))}}async function it(e){return e.queryFeatures(e.createQuery()).then((e=>e.features))}function nt(e){return e&&(e.path||"image/svg+xml"===e.contentType||e.url&&e.url.endsWith(".svg"))}var at=r(59633);const ot=new n.Xn({esriExecutionTypeSynchronous:"sync",esriExecutionTypeAsynchronous:"async"});let st=class extends at.Z{constructor(...e){super(...e),this._gpMetadata=null,this.updateDelay=1e3}get mode(){return this._gpMetadata&&this._gpMetadata.executionType?ot.fromJSON(this._gpMetadata.executionType):"sync"}execute(e,t){return e&&(e.updateDelay=this.updateDelay),Fe(this.url,e,{...this.requestOptions,...t})}async _getGpPrintParams(e){const t=Oe(this.url);return _e(e,Te.get(t))}};(0,i._)([(0,a.Cb)()],st.prototype,"_gpMetadata",void 0),(0,i._)([(0,a.Cb)({readOnly:!0})],st.prototype,"mode",null),(0,i._)([(0,a.Cb)()],st.prototype,"updateDelay",void 0),st=(0,i._)([(0,s.j)("esri.tasks.PrintTask")],st);const lt=st},59633:(e,t,r)=>{r.d(t,{Z:()=>u});var i=r(43697),n=r(15923),a=r(17452),o=r(5600),s=(r(67676),r(80442),r(75215),r(52011));let l=class extends n.Z{constructor(...e){super(...e),this.requestOptions=null,this.url=null}normalizeCtorArgs(e,t){return"string"!=typeof e?e:{url:e,...t}}get parsedUrl(){return this._parseUrl(this.url)}_parseUrl(e){return e?(0,a.mN)(e):null}_encode(e,t,r){const i={};for(const n in e){if("declaredClass"===n)continue;const a=e[n];if(null!=a&&"function"!=typeof a)if(Array.isArray(a)){i[n]=[];for(let e=0;e<a.length;e++)i[n][e]=this._encode(a[e])}else if("object"==typeof a)if(a.toJSON){const e=a.toJSON(r&&r[n]);i[n]=t?e:JSON.stringify(e)}else i[n]=t?a:JSON.stringify(a);else i[n]=a}return i}};(0,i._)([(0,o.Cb)({readOnly:!0})],l.prototype,"parsedUrl",null),(0,i._)([(0,o.Cb)()],l.prototype,"requestOptions",void 0),(0,i._)([(0,o.Cb)({type:String})],l.prototype,"url",void 0),l=(0,i._)([(0,s.j)("esri.tasks.Task")],l);const u=l},410:(e,t,r)=>{function i(e){var t;const r=e.layer;return"floorInfo"in r&&null!=(t=r.floorInfo)&&t.floorField&&"floors"in e.view?o(e.view.floors,r.floorInfo.floorField):null}function n(e,t){var r;return"floorInfo"in t&&null!=(r=t.floorInfo)&&r.floorField?o(e,t.floorInfo.floorField):null}function a(e,t){const{definitionExpression:r}=t;return e?r?`(${r}) AND (${e})`:e:r}function o(e,t){if(null==e||!e.length)return null;const r=e.filter((e=>""!==e)).map((e=>`'${e}'`));return r.push("''"),`${t} IN (${r.join(",")}) OR ${t} IS NULL`}r.d(t,{Hp:()=>a,cx:()=>i,ff:()=>n})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[511],{16453:(e,t,r)=>{r.d(t,{R:()=>v,w:()=>w});var i=r(43697),s=r(15923),o=r(70586),n=r(41103),l=r(22974),a=r(31263);class u{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new u,r=this._originStores[a.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,l.d9)(e),a.s3.DEFAULTS)}));for(let r=a.s3.SERVICE;r<a.kk;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{e&&e.has(s)||t.set(s,(0,l.d9)(i),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=a.s3.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||(0,o.j0)(this._propertyOriginMap.get(e))<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=a.s3.USER){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r&&r.get(e),s=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),s!==i}originOf(e){return this._propertyOriginMap.get(e)||a.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var p=r(50549),c=r(1153),d=r(52011);const h=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,o.j0)((0,c.vw)(this)),r=t.store,i=new u;t.store=i,(0,n.M)(t,r,i)}read(e,t){(0,p.i)(this,e,t)}getAtOrigin(e,t){const r=y(this),i=(0,a.M9)(t);if("string"==typeof e)return r.get(e,i);const s={};return e.forEach((e=>{s[e]=r.get(e,i)})),s}originOf(e){return(0,a.x3)(this.originIdOf(e))}originIdOf(e){return y(this).originOf(e)}revert(e,t){const r=y(this),i=(0,a.M9)(t),s=(0,c.vw)(this);let o;o="string"==typeof e?"*"===e?r.keys(i):[e]:e,o.forEach((e=>{s.invalidate(e),r.revert(e,i),s.commit(e)}))}};return t=(0,i._)([(0,d.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function y(e){return(0,c.vw)(e).store}let b=class extends(h(s.Z)){};b=(0,i._)([(0,d.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],b);var f=r(76169);const m=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return g(this).delete(e,(0,a.M9)(t))}write(e={},t){return(0,f.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,c.vw)(this).setAtOrigin(e,t,(0,a.M9)(r))}removeOrigin(e){const t=g(this),r=(0,a.M9)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),a.s3.USER)}updateOrigin(e,t){const r=g(this),i=(0,a.M9)(t),s=this.get(e);for(let t=i+1;t<a.kk;++t)r.delete(e,t);r.set(e,s,i)}toJSON(e){return this.write({},e)}};return t=(0,i._)([(0,d.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function g(e){return(0,c.vw)(e).store}const v=e=>{let t=class extends(m(h(e))){constructor(...e){super(...e)}};return t=(0,i._)([(0,d.j)("esri.core.MultiOriginJSONSupport")],t),t};let w=class extends(v(s.Z)){};w=(0,i._)([(0,d.j)("esri.core.MultiOriginJSONSupport")],w)},29600:(e,t,r)=>{r.d(t,{Z:()=>w});var i=r(43697),s=r(68773),o=(r(66577),r(3172)),n=r(20102),l=r(32448),a=r(10699),u=r(83379),p=r(92604),c=r(95330),d=r(17452),h=r(5600),y=(r(67676),r(80442),r(75215),r(52011)),b=r(6570),f=r(82971);let m=0;const g=p.Z.getLogger("esri.layers.Layer");let v=class extends(l.Z.EventedMixin((0,a.I)(u.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new b.Z(-180,-90,180,90,f.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+m++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,i=await r.e(3529).then(r.bind(r,63529));try{return await i.fromUrl(t)}catch(e){throw g.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},i=await r.e(4579).then(r.bind(r,44579));try{return await i.fromItem(t)}catch(e){const r=t&&t.portalItem,i=r&&r.id||"unset",o=r&&r.portal&&r.portal.url||s.Z.portalUrl;throw g.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+o+"', id: '"+i+"')",e),e}}initialize(){this.when().catch((e=>{var t,r;(0,c.D_)(e)||p.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,d.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,o.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,h.Cb)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,h.Cb)({type:b.Z})],v.prototype,"fullExtent",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,h.Cb)({type:String})],v.prototype,"id",void 0),(0,i._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,h.Cb)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,h.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,h.Cb)()],v.prototype,"parent",void 0),(0,i._)([(0,h.Cb)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,h.Cb)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,h.Cb)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,h.Cb)({type:f.Z})],v.prototype,"spatialReference",void 0),(0,i._)([(0,h.Cb)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,h.Cb)({type:String,readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,h.Cb)()],v.prototype,"url",void 0),(0,i._)([(0,h.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,y.j)("esri.layers.Layer")],v);const w=v},17017:(e,t,r)=>{r.d(t,{N:()=>n});var i=r(43697),s=r(5600),o=(r(67676),r(80442),r(75215),r(52011));const n=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,s.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,o.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},34760:(e,t,r)=>{r.d(t,{Q:()=>m});var i=r(43697),s=r(92604),o=r(95330),n=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),a=r(80539),u=(r(20102),r(26258),r(87538));const p=new a.Z,c=new WeakMap;function d(e){return e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function h(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:h(t,e%t):0}let y=0,b=0;function f(){const e=Date.now();for(const r of p)if(r.refreshInterval){var t;e-(null!=(t=c.get(r))?t:0)+5>=6e4*r.refreshInterval&&(c.set(r,e),r.refresh(e))}}(0,u.EH)((()=>{const e=Date.now();let t=0;for(const r of p)t=h(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?c.get(r)||c.set(r,e):c.delete(r);if(t!==b){if(b=t,clearInterval(y),0===b)return void(y=0);y=setInterval(f,b)}}));const m=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,o.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{!function(e){d(e)&&p.push(e)}(this)}),(()=>{}))}destroy(){d(this)&&p.includes(this)&&p.remove(this)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,o.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{s.Z.getLogger(this.declaredClass).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,i._)([(0,n.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,i._)([(0,n.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,i._)([(0,n.Cb)()],t.prototype,"refreshParameters",null),t=(0,i._)([(0,l.j)("esri.layers.mixins.RefreshableLayer")],t),t}},2319:(e,t,r)=>{r.d(t,{Z:()=>O});var i,s=r(43697),o=r(78223),n=r(35454),l=r(96674),a=r(22974),u=r(62357),p=r(5600),c=(r(75215),r(71715)),d=r(52011),h=r(30556),y=(r(67676),r(80442),r(8813));let b=i=class extends l.wq{constructor(){super(...arguments),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,y.dI)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,y.dI)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({expression:this.expression,title:this.title,value:this.value})}};(0,s._)([(0,p.Cb)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],b.prototype,"expression",void 0),(0,s._)([(0,c.r)("expression",["expression","value"])],b.prototype,"readExpression",null),(0,s._)([(0,h.c)("expression")],b.prototype,"writeExpression",null),(0,s._)([(0,p.Cb)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],b.prototype,"title",void 0),(0,s._)([(0,p.Cb)({json:{read:!1,write:!1}})],b.prototype,"value",void 0),b=i=(0,s._)([(0,d.j)("esri.layers.support.LabelExpressionInfo")],b);const f=b;var m=r(20256),g=r(4095),v=r(77987),w=r(78724),_=r(58333);v.Z.fromJSON(_.I4),g.Z.fromJSON(_.ET),m.Z.fromJSON(_.lF);const S=w.Z.fromJSON(_.qP);v.Z.fromJSON(_.eG),g.Z.fromJSON(_.wW),m.Z.fromJSON(_.lj);var x,C=r(21878);const E=new n.Xn({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function j(e){return!e||"service"!==e.origin&&!L(e.layer)}function L(e){return"map-image"===(null==e?void 0:e.type)}function P(e){var t,r;return!!L(e)&&!(null==(t=e.capabilities)||null==(r=t.exportMap)||!r.supportsArcadeExpressionForLabeling)}let I=x=class extends l.wq{constructor(e){super(e),this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.repeatLabelDistance=null,this.symbol=S,this.useCodedValues=void 0,this.where=null}static evaluateWhere(e,t){const r=function(e,t,r){switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;const i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){const e=r(t[i[0]],i[1],i[2]),s=i[3],o=r(t[i[4]],i[5],i[6]);switch(s){case"AND":return e&&o;case"OR":return e||o}}return!1}catch(t){console.log("Error.: can't parse = "+e)}}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,y.z7)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,y.el)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&j(i))e=new f({expression:this.getLabelExpressionArcade()});else if(!e)return;const s=e.toJSON(i);s.expression&&(t[r]=s)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}getLabelExpression(){return(0,y.hV)(this)}getLabelExpressionArcade(){return(0,y.YI)(this)}getLabelExpressionSingleField(){return(0,y.UO)(this)}hash(){return JSON.stringify(this)}clone(){return new x({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.d9)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.d9)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],I.prototype,"name",void 0),(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],I.prototype,"allowOverrun",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1}}}})],I.prototype,"deconflictionStrategy",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===(null==r?void 0:r.origin)&&P(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],I.prototype,"labelExpression",void 0),(0,s._)([(0,c.r)("labelExpression")],I.prototype,"readLabelExpression",null),(0,s._)([(0,h.c)("labelExpression")],I.prototype,"writeLabelExpression",null),(0,s._)([(0,p.Cb)({type:f,json:{write:{overridePolicy:(e,t,r)=>function(e){return j(e)||P(e.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],I.prototype,"labelExpressionInfo",void 0),(0,s._)([(0,h.c)("labelExpressionInfo")],I.prototype,"writeLabelExpressionInfo",null),(0,s._)([(0,p.Cb)({type:E.apiValues,json:{type:E.jsonValues,read:E.read,write:E.write}})],I.prototype,"labelPlacement",void 0),(0,s._)([(0,p.Cb)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],I.prototype,"labelPosition",void 0),(0,s._)([(0,p.Cb)({type:Number})],I.prototype,"maxScale",void 0),(0,s._)([(0,h.c)("maxScale")],I.prototype,"writeMaxScale",null),(0,s._)([(0,p.Cb)({type:Number})],I.prototype,"minScale",void 0),(0,s._)([(0,h.c)("minScale")],I.prototype,"writeMinScale",null),(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:!1}}}})],I.prototype,"repeatLabel",void 0),(0,s._)([(0,p.Cb)({type:Number,cast:u.t_,json:{write:!0,origins:{"web-scene":{write:!1}}}})],I.prototype,"repeatLabelDistance",void 0),(0,s._)([(0,p.Cb)({types:o.yK,json:{origins:{"web-scene":{types:o.S6,write:C.c,default:null}},write:C.c,default:null}})],I.prototype,"symbol",void 0),(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],I.prototype,"useCodedValues",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],I.prototype,"where",void 0),I=x=(0,s._)([(0,d.j)("esri.layers.support.LabelClass")],I);const O=I},8813:(e,t,r)=>{r.d(t,{dI:()=>y,hV:()=>c,YI:()=>d,UO:()=>h,el:()=>v,z7:()=>p});var i=r(19153);const s="__begin__",o="__end__",n=new RegExp(s,"ig"),l=new RegExp(o,"ig"),a=new RegExp("^"+s,"i"),u=new RegExp(o+"$","i");function p(e){return e.replace(new RegExp("\\{","g"),"[").replace(new RegExp("\\}","g"),"]")}function c(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=function(e){return e.replace(new RegExp("\\[","g"),"{").replace(new RegExp("\\]","g"),"}")}(e.labelExpression),t.type="conventional"),t}function d(e){const t=c(e);if(!t)return null;switch(t.type){case"conventional":return y(t.expression);case"arcade":return t.expression}return null}function h(e){const t=c(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e.match(b);return t&&t[1].trim()||null}(t.expression);case"arcade":return v(t.expression)}return null}function y(e){let t;return e?(t=(0,i.gx)(e,(e=>s+'$feature["'+e+'"]'+o)),t=a.test(t)?t.replace(a,""):'"'+t,t=u.test(t)?t.replace(u,""):t+'"',t=t.replace(n,'" + ').replace(l,' + "')):t='""',t}const b=/^\s*\{([^}]+)\}\s*$/i,f=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,m=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,g=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;function v(e){if(!e)return null;let t=f.exec(e)||m.exec(e);return t?t[1]||t[3]:(t=g.exec(e),t?t[2]:null)}},12501:(e,t,r)=>{r.r(t),r.d(t,{default:()=>E});var i,s=r(43697),o=r(22303),n=r(3172),l=r(20102),a=r(22974),u=r(92604),p=r(13867),c=r(70586),d=r(95330),h=r(19153),y=r(5600),b=(r(75215),r(52011)),f=r(30556),m=r(35671),g=r(5499),v=r(12571),w=r(59266),_=r(17386);const S=u.Z.getLogger("esri.renderers.DictionaryRenderer"),x={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};let C=i=class extends((0,v.W)(g.Z)){constructor(e){super(e),this._ongoingRequests=new Map,this._symbolCache=new p.Z(100),this.config=null,this.fieldMap=null,this.scaleExpression=null,this.scaleExpressionTitle=null,this.url=null,this.type="dictionary"}writeData(e,t){e&&(t.scalingExpressionInfo={expression:e,returnType:"number"})}writeVisualVariables(e,t,r,i){null!=i&&i.origin||super.writeVisualVariables(e,t,r,i)}clone(){return new i({config:(0,a.d9)(this.config),scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:(0,a.d9)(this.fieldMap),url:(0,a.d9)(this.url),visualVariables:(0,a.d9)(this.visualVariables)})}async getSymbolAsync(e,t){let r;this._dictionaryPromise||(this._dictionaryPromise=this.fetchResources(t));try{r=await this._dictionaryPromise}catch(e){if((0,d.D_)(e))return this._dictionaryPromise=null,null}const i={};if(this.fieldMap)for(const t of this._symbolFields){const r=this.fieldMap[t];if(r&&null!==e.attributes[r]&&void 0!==e.attributes[r]){const s=""+e.attributes[r];i[t]=s}else i[t]=""}const s=r(i,t);if(!s||"string"!=typeof s)return null;const n=(0,h.hP)(s).toString(),l=this._symbolCache.get(n);if(l)return l.catch((()=>{this._symbolCache.pop(n)})),l;const a=s.split(";"),u=[],p=[];for(const e of a)if(e&&0!==e.length)if(-1===e.indexOf("po:"))if(-1!==e.indexOf("|")){for(const t of e.split("|"))if(this._itemNames.has(t)){u.push(t);break}}else this._itemNames.has(e)&&u.push(e);else{const t=e.substr(3).split("|");if(3===t.length){const e=t[0],r=t[1];let i=t[2];if("DashTemplate"===r)i=i.split(" ").map((e=>Number(e)));else if("Color"===r){const e=new o.Z(i).toRgba();i=[e[0],e[1],e[2],255*e[3]]}else i=Number(i);p.push({primitiveName:e,propertyName:r,value:i})}}const y=!(0,c.pC)(e.geometry)||!e.geometry.hasZ&&"point"===e.geometry.type,b=this._cimPartsToCIMSymbol(u,p,y,t);return this._symbolCache.put(n,b,1),b}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t),this.scaleExpression&&await(0,m.io)(e,t,this.scaleExpression);for(const r in this.fieldMap){const i=this.fieldMap[r];t.has(i)&&e.add(i)}}get arcadeRequired(){return!0}async fetchResources(e){if(this._dictionaryPromise)return this._dictionaryPromise;if(!this.url)return void S.error("no valid URL!");const t=(0,c.pC)(e)?e.abortOptions:null,r=(0,n.default)(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"},...t}),[{data:i}]=await Promise.all([r,(0,w.LC)()]);if(!i)throw this._dictionaryPromise=null,new l.Z("esri.renderers.DictionaryRenderer","Bad dictionary data!");const s=i.expression,o=i.authoringInfo;this._refSymbolUrlTemplate=this.url+"/"+i.cimRefTemplateUrl,this._itemNames=new Set(i.itemsNames),this._symbolFields=o.symbol;const a={};if(this.config){const e=this.config;for(const t in e)a[t]=e[t]}if(o.configuration)for(const e of o.configuration)a.hasOwnProperty(e.name)||(a[e.name]=e.value);const u=[];if((0,c.pC)(e)&&e.fields&&this.fieldMap)for(const t of this._symbolFields){const r=this.fieldMap[t],i=e.fields.filter((e=>e.name===r));i.length>0&&u.push({...i[0],name:t})}return this._dictionaryPromise=(0,w.pp)(s,(0,c.pC)(e)?e.spatialReference:null,u,a).then((e=>{const t={scale:0};return(r,i)=>{const s=e.repurposeFeature({geometry:null,attributes:r});return t.scale=(0,c.pC)(i)?i.scale:void 0,e.evaluate({$feature:s,$view:t})}})).catch((e=>(S.error("Creating dictinoary expression failed:",e),null))),this._dictionaryPromise}getSymbol(){return null}getSymbols(){return[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return`${this.url}-${JSON.stringify(this.fieldMap)}`}getSymbolFields(){return this._symbolFields}async _getSymbolPart(e,t){if(this._ongoingRequests.has(e))return this._ongoingRequests.get(e).then((e=>e.data));const r=this._refSymbolUrlTemplate.replace(/\{itemName\}/gi,e),i=(0,n.default)(r,{responseType:"json",query:{f:"json"},...t});this._ongoingRequests.set(e,i);try{return(await i).data}catch(t){return this._ongoingRequests.delete(e),Promise.reject(t)}}_combineSymbolParts(e,t,r){if(!e||0===e.length)return null;const i={...e[0]};if(e.length>1){i.symbolLayers=[];for(const t of e){const e=t;i.symbolLayers.unshift(...e.symbolLayers)}}return r&&(i.callout=x),{type:"CIMSymbolReference",symbol:i,primitiveOverrides:t}}async _cimPartsToCIMSymbol(e,t,r,i){const s=new Array(e.length);for(let t=0;t<e.length;t++)s[t]=this._getSymbolPart(e[t],i);const o=await Promise.all(s);return new _.Z({data:this._combineSymbolParts(o,t,r)})}};(0,s._)([(0,y.Cb)({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],C.prototype,"config",void 0),(0,s._)([(0,y.Cb)({type:Object,json:{write:!0}})],C.prototype,"fieldMap",void 0),(0,s._)([(0,y.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],C.prototype,"scaleExpression",void 0),(0,s._)([(0,f.c)("scaleExpression")],C.prototype,"writeData",null),(0,s._)([(0,y.Cb)({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(e){return{enabled:!!e&&!!this.scaleExpression}}}}})],C.prototype,"scaleExpressionTitle",void 0),(0,s._)([(0,y.Cb)({type:String,json:{write:!0}})],C.prototype,"url",void 0),(0,s._)([(0,f.c)("visualVariables")],C.prototype,"writeVisualVariables",null),C=i=(0,s._)([(0,b.j)("esri.renderers.DictionaryRenderer")],C);const E=C},95088:(e,t,r)=>{r.d(t,{Z:()=>P});var i,s=r(43697),o=r(22303),n=r(22974),l=r(44422),a=r(75215),u=r(36030),p=r(5600),c=r(52011),d=r(35671),h=r(5499),y=r(12571),b=r(96674),f=r(92604),m=(r(67676),r(80442),r(90578));const g=f.Z.getLogger("esri.renderers.support.AttributeColorInfo");let v=i=class extends b.wq{constructor(e){super(e),this.color=null,this.field=null,this.label=null,this.valueExpression=null,this.valueExpressionTitle=null}castField(e){return null==e?e:"function"==typeof e?(g.error(".field: field must be a string value"),null):(0,a.Zs)(e)}getAttributeHash(){return`${this.field}-${this.valueExpression}`}clone(){return new i({color:this.color&&this.color.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,s._)([(0,p.Cb)({type:o.Z,json:{type:[Number],write:!0}})],v.prototype,"color",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],v.prototype,"field",void 0),(0,s._)([(0,m.p)("field")],v.prototype,"castField",null),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],v.prototype,"label",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],v.prototype,"valueExpression",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],v.prototype,"valueExpressionTitle",void 0),v=i=(0,s._)([(0,c.j)("esri.renderers.support.AttributeColorInfo")],v);const w=v;var _;let S=_=class extends b.wq{constructor(){super(...arguments),this.unit=null}clone(){return new _({unit:this.unit})}};(0,s._)([(0,p.Cb)({type:String,json:{write:!0}})],S.prototype,"unit",void 0),S=_=(0,s._)([(0,c.j)("esri.renderers.support.DotDensityLegendOptions")],S);const x=S;var C,E=r(20256),j=r(4095);let L=C=class extends((0,y.W)(h.Z)){constructor(e){super(e),this.attributes=null,this.backgroundColor=new o.Z([0,0,0,0]),this.blendDots=!0,this.dotBlendingEnabled=!0,this.dotShape="square",this.dotSize=1,this.legendOptions=null,this.outline=new j.Z,this.dotValue=null,this.referenceDotValue=null,this.referenceScale=null,this.seed=1,this.type="dot-density"}calculateDotValue(e){if(null==this.referenceScale)return this.dotValue;const t=e/this.referenceScale*this.dotValue;return t<1?1:t}getSymbol(){return new E.Z({outline:this.outline})}async getSymbolAsync(){return this.getSymbol()}getSymbols(){return[this.getSymbol()]}getAttributeHash(){return this.attributes&&this.attributes.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return JSON.stringify(this.outline)}clone(){return new C({attributes:(0,n.d9)(this.attributes),backgroundColor:(0,n.d9)(this.backgroundColor),dotBlendingEnabled:(0,n.d9)(this.dotBlendingEnabled),dotShape:(0,n.d9)(this.dotShape),dotSize:(0,n.d9)(this.dotSize),dotValue:(0,n.d9)(this.dotValue),legendOptions:(0,n.d9)(this.legendOptions),outline:(0,n.d9)(this.outline),referenceScale:(0,n.d9)(this.referenceScale),visualVariables:(0,n.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}getControllerHash(){return`${this.attributes.map((e=>e.field||e.valueExpression||""))}-${this.outline&&JSON.stringify(this.outline.toJSON())||""}`}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const r of this.attributes)r.valueExpression&&await(0,d.io)(e,t,r.valueExpression),r.field&&e.add(r.field)}};(0,s._)([(0,p.Cb)({type:[w],json:{write:!0}})],L.prototype,"attributes",void 0),(0,s._)([(0,p.Cb)({type:o.Z,json:{write:!0}})],L.prototype,"backgroundColor",void 0),(0,s._)([(0,p.Cb)({type:Boolean}),(0,l.B)("dotBlendingEnabled")],L.prototype,"blendDots",void 0),(0,s._)([(0,p.Cb)({type:Boolean,json:{write:!0}})],L.prototype,"dotBlendingEnabled",void 0),(0,s._)([(0,p.Cb)({type:String,json:{write:!1}})],L.prototype,"dotShape",void 0),(0,s._)([(0,p.Cb)({type:Number,json:{write:!1}})],L.prototype,"dotSize",void 0),(0,s._)([(0,p.Cb)({type:x,json:{write:!0}})],L.prototype,"legendOptions",void 0),(0,s._)([(0,p.Cb)({type:j.Z,json:{default:null,write:!0}})],L.prototype,"outline",void 0),(0,s._)([(0,p.Cb)({type:Number,json:{write:!0}})],L.prototype,"dotValue",void 0),(0,s._)([(0,p.Cb)({type:Number}),(0,l.B)("dotValue")],L.prototype,"referenceDotValue",void 0),(0,s._)([(0,p.Cb)({type:Number,json:{write:!0}})],L.prototype,"referenceScale",void 0),(0,s._)([(0,p.Cb)({type:Number,json:{write:!0}})],L.prototype,"seed",void 0),(0,s._)([(0,u.J)({dotDensity:"dot-density"})],L.prototype,"type",void 0),L=C=(0,s._)([(0,c.j)("esri.renderers.DotDensityRenderer")],L);const P=L},79056:(e,t,r)=>{r.d(t,{Z:()=>m});var i,s=r(43697),o=r(22303),n=r(22974),l=r(5600),a=(r(75215),r(36030)),u=r(52011),p=r(35671),c=r(5499),d=r(96674);r(67676),r(80442);let h=i=class extends d.wq{constructor(e){super(e),this.color=null,this.ratio=null}clone(){return new i({color:this.color,ratio:this.ratio})}};(0,s._)([(0,l.Cb)({type:o.Z,json:{write:!0}})],h.prototype,"color",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],h.prototype,"ratio",void 0),h=i=(0,s._)([(0,u.j)("esri.renderers.support.HeatmapColorStop")],h);const y=h;var b;let f=b=class extends c.Z{constructor(e){super(e),this.blurRadius=10,this.colorStops=[new y({ratio:0,color:new o.Z("rgba(255, 140, 0, 0)")}),new y({ratio:.75,color:new o.Z("rgba(255, 140, 0, 1)")}),new y({ratio:.9,color:new o.Z("rgba(255, 0, 0, 1)")})],this.field=null,this.fieldOffset=0,this.maxPixelIntensity=100,this.minPixelIntensity=0,this.type="heatmap"}async collectRequiredFields(e,t){const r=this.field;r&&"string"==typeof r&&(0,p.AB)(e,t,r)}getAttributeHash(){return null}getMeshHash(){return`${JSON.stringify(this.colorStops)}.${this.blurRadius}.${this.field}`}clone(){return new b({blurRadius:this.blurRadius,colorStops:(0,n.d9)(this.colorStops),field:this.field,maxPixelIntensity:this.maxPixelIntensity,minPixelIntensity:this.minPixelIntensity})}};(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],f.prototype,"blurRadius",void 0),(0,s._)([(0,l.Cb)({type:[y],json:{write:!0}})],f.prototype,"colorStops",void 0),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],f.prototype,"field",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:{overridePolicy:(e,t,r)=>({enabled:null==r})}}})],f.prototype,"fieldOffset",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],f.prototype,"maxPixelIntensity",void 0),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],f.prototype,"minPixelIntensity",void 0),(0,s._)([(0,a.J)({heatmap:"heatmap"})],f.prototype,"type",void 0),f=b=(0,s._)([(0,u.j)("esri.renderers.HeatmapRenderer")],f);const m=f},84382:(e,t,r)=>{r.d(t,{Z:()=>h});var i,s=r(43697),o=r(22974),n=r(5600),l=(r(75215),r(36030)),a=r(52011),u=r(5499),p=r(12571),c=r(9833);let d=i=class extends((0,p.W)(u.Z)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.getSymbols().map((r=>r.collectRequiredFields(e,t))))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}getSymbols(){return this.symbol?[this.symbol]:[]}getAttributeHash(){return this.visualVariables&&this.visualVariables.reduce(((e,t)=>e+t.getAttributeHash()),"")}getMeshHash(){return this.getSymbols().reduce(((e,t)=>e+JSON.stringify(t)),"")}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new i({description:this.description,label:this.label,symbol:this.symbol&&this.symbol.clone(),visualVariables:(0,o.d9)(this.visualVariables),authoringInfo:this.authoringInfo&&this.authoringInfo.clone()})}};(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,s._)([(0,n.Cb)(c.G)],d.prototype,"symbol",void 0),(0,s._)([(0,l.J)({simple:"simple"})],d.prototype,"type",void 0),d=i=(0,s._)([(0,a.j)("esri.renderers.SimpleRenderer")],d);const h=d},91423:(e,t,r)=>{r.d(t,{a:()=>l});var i=r(20941),s=r(63213),o=r(32400);const n=(0,s.d)({types:o.A});function l(e,t,r){return e?e&&(e.styleName||e.styleUrl)&&"uniqueValue"!==e.type?(r&&r.messages&&r.messages.push(new i.Z("renderer:unsupported","Only UniqueValueRenderer can be referenced from a web style, but found '"+e.type+"'",{definition:e,context:r})),null):n(e,t,r):null}},32400:(e,t,r)=>{r.d(t,{A:()=>p,o:()=>c});var i=r(16050),s=r(12501),o=r(95088),n=r(79056),l=r(5499),a=r(84382),u=r(30687);const p={key:"type",base:l.Z,typeMap:{heatmap:n.Z,simple:a.Z,"unique-value":u.Z,"class-breaks":i.Z,"dot-density":o.Z,dictionary:s.default},errorContext:"renderer"},c={key:"type",base:l.Z,typeMap:{simple:a.Z,"unique-value":u.Z,"class-breaks":i.Z},errorContext:"renderer"}},32163:(e,t,r)=>{r.d(t,{eZ:()=>c});var i=r(51773),s=r(35671),o=r(84649),n=(r(63801),r(48074),r(38745),r(9190)),l=(r(10214),r(44951),r(422)),a=r(63061);const u=["oid","global-id"],p=["oid","global-id","guid"];function c({displayField:e,editFieldsInfo:t,fields:r,objectIdField:a,title:u},p){if(!r)return null;const c=function({editFieldsInfo:e,fields:t,objectIdField:r},i){return function(e,t){const r=e;return t&&(e=e.filter((e=>-1===t.indexOf(e.type)))),e===r&&(e=e.slice()),e.sort(y),e}(t,(null==i?void 0:i.ignoreFieldTypes)||v).map((t=>new l.Z({fieldName:t.name,isEditable:f(t,e),label:t.alias,format:m(t),visible:h(t,{editFieldsInfo:e,objectIdField:r,visibleFieldNames:null==i?void 0:i.visibleFieldNames})})))}({editFieldsInfo:t,fields:r,objectIdField:a},p);if(!c.length)return null;const d=function(e){const t=(0,s.O5)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r}({titleBase:u,fields:r,displayField:e}),b=[new n.Z,new o.Z];return new i.Z({title:d,content:b,fieldInfos:c})}const d=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/shape/i,/perimeter/i,/objectid/i,/_i$/i],h=(e,{editFieldsInfo:t,objectIdField:r,visibleFieldNames:i})=>i?i.has(e.name):!(b(e.name,t)||r&&e.name===r||u.indexOf(e.type)>-1||d.some((t=>t.test(e.name))));function y(e,t){return"oid"===e.type?-1:"oid"===t.type?1:g(e)?-1:g(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function b(e,t){if(!e||!t)return!1;const{creationDateField:r,creatorField:i,editDateField:s,editorField:o}=t;return-1!==[r&&r.toLowerCase(),i&&i.toLowerCase(),s&&s.toLowerCase(),o&&o.toLowerCase()].indexOf(e.toLowerCase())}function f(e,t){return e.editable&&-1===p.indexOf(e.type)&&!b(e.name,t)}function m(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.Z({digitSeparator:!0,places:0});case"double":return new a.Z({digitSeparator:!0,places:2});case"date":return new a.Z({dateFormat:"long-month-day-year"});default:return null}}function g(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())||void 0}const v=["geometry","blob","raster","guid","xml"]}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9932],{10699:(e,t,r)=>{r.d(t,{I:()=>i});var o=r(43697),s=r(52011);let n=0;const i=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,o._)([(0,s.j)("esri.core.Identifiable")],t),t};let a=class extends(i(class{})){};a=(0,o._)([(0,s.j)("esri.core.Identifiable")],a)},16453:(e,t,r)=>{r.d(t,{R:()=>b,w:()=>w});var o=r(43697),s=r(15923),n=r(70586),i=r(41103),a=r(22974),l=r(31263);class c{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.kk),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new c,r=this._originStores[l.s3.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,a.d9)(e),l.s3.DEFAULTS)}));for(let r=l.s3.SERVICE;r<l.kk;r++){const o=this._originStores[r];o&&o.forEach(((o,s)=>{e&&e.has(s)||t.set(s,(0,a.d9)(o),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=l.s3.USER){let o=this._originStores[r];if(o||(o=new Map,this._originStores[r]=o),o.set(e,t),!this._values.has(e)||(0,n.j0)(this._propertyOriginMap.get(e))<=r){const o=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),o!==t}return!1}delete(e,t=l.s3.USER){const r=this._originStores[t];if(!r)return;const o=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return o}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],o=r&&r.get(e),s=this._values.get(e);return this._values.set(e,o),this._propertyOriginMap.set(e,t),s!==o}originOf(e){return this._propertyOriginMap.get(e)||l.s3.DEFAULTS}forEach(e){this._values.forEach(e)}}var h=r(50549),d=r(1153),u=r(52011);const p=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,n.j0)((0,d.vw)(this)),r=t.store,o=new c;t.store=o,(0,i.M)(t,r,o)}read(e,t){(0,h.i)(this,e,t)}getAtOrigin(e,t){const r=g(this),o=(0,l.M9)(t);if("string"==typeof e)return r.get(e,o);const s={};return e.forEach((e=>{s[e]=r.get(e,o)})),s}originOf(e){return(0,l.x3)(this.originIdOf(e))}originIdOf(e){return g(this).originOf(e)}revert(e,t){const r=g(this),o=(0,l.M9)(t),s=(0,d.vw)(this);let n;n="string"==typeof e?"*"===e?r.keys(o):[e]:e,n.forEach((e=>{s.invalidate(e),r.revert(e,o),s.commit(e)}))}};return t=(0,o._)([(0,u.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function g(e){return(0,d.vw)(e).store}let y=class extends(p(s.Z)){};y=(0,o._)([(0,u.j)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var m=r(76169);const f=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return v(this).delete(e,(0,l.M9)(t))}write(e={},t){return(0,m.c)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,d.vw)(this).setAtOrigin(e,t,(0,l.M9)(r))}removeOrigin(e){const t=v(this),r=(0,l.M9)(e),o=t.keys(r);for(const e of o)t.originOf(e)===r&&t.set(e,t.get(e,r),l.s3.USER)}updateOrigin(e,t){const r=v(this),o=(0,l.M9)(t),s=this.get(e);for(let t=o+1;t<l.kk;++t)r.delete(e,t);r.set(e,s,o)}toJSON(e){return this.write({},e)}};return t=(0,o._)([(0,u.j)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,d.vw)(e).store}const b=e=>{let t=class extends(f(p(e))){constructor(...e){super(...e)}};return t=(0,o._)([(0,u.j)("esri.core.MultiOriginJSONSupport")],t),t};let w=class extends(b(s.Z)){};w=(0,o._)([(0,u.j)("esri.core.MultiOriginJSONSupport")],w)},25045:(e,t,r)=>{r.r(t),r.d(t,{default:()=>v});var o=r(40330),s=r(20102),n=r(91460),i=r(70586),a=r(95330),l=r(94362),c=r(17202);const h={statsWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(6841)]).then(r.bind(r,36841)),geometryEngineWorker:()=>Promise.all([r.e(5837),r.e(8227)]).then(r.bind(r,48227)),CSVSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(4547),r.e(1534),r.e(3578),r.e(8961),r.e(7054),r.e(2781),r.e(966)]).then(r.bind(r,27793)),EdgeProcessingWorker:()=>Promise.all([r.e(6481),r.e(8936)]).then(r.bind(r,18936)),ElevationSamplerWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(4547),r.e(2781),r.e(6481),r.e(6459),r.e(3553)]).then(r.bind(r,61787)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(4588),r.e(4547),r.e(1534),r.e(3485),r.e(3578),r.e(8961),r.e(7054),r.e(2781),r.e(5404)]).then(r.bind(r,2255)),GeoJSONSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(4547),r.e(1534),r.e(3578),r.e(8961),r.e(7054),r.e(2781),r.e(6348),r.e(7845)]).then(r.bind(r,97845)),LercWorker:()=>r.e(3027).then(r.bind(r,23027)),MemorySourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(4547),r.e(1534),r.e(3578),r.e(8961),r.e(7054),r.e(2781),r.e(6348),r.e(639)]).then(r.bind(r,30639)),PBFDecoderWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(8961),r.e(147)]).then(r.bind(r,61916)),Pipeline:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(5638),r.e(4588),r.e(4547),r.e(1534),r.e(3485),r.e(3578),r.e(8961),r.e(7054),r.e(4325),r.e(2730),r.e(7783)]).then(r.bind(r,97783)),PointCloudWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(4547),r.e(9294),r.e(9474)]).then(r.bind(r,16583)),RasterWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(4547),r.e(176),r.e(2398),r.e(5340)]).then(r.bind(r,61576)),SceneLayerWorker:()=>r.e(1412).then(r.bind(r,31412)),WFSSourceWorker:()=>Promise.all([r.e(2785),r.e(6570),r.e(9928),r.e(2303),r.e(7668),r.e(4547),r.e(1534),r.e(3578),r.e(8961),r.e(7054),r.e(2781),r.e(6348),r.e(4556),r.e(3230)]).then(r.bind(r,43230)),WorkerTileHandler:()=>Promise.all([r.e(2303),r.e(4325),r.e(1785),r.e(6810),r.e(9872)]).then(r.bind(r,56456))},{CLOSE:d,ABORT:u,INVOKE:p,RESPONSE:g,OPEN_PORT:y,ON:m}=l.Cs;class f{constructor(e){this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._invoke=e,this._timer=null,this._process=this._process.bind(this)}push(e){e.type===l.Cs.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{constructor(e,t){this._port=e,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new f((e=>this._onInvokeMessage(e))),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}static connect(e){const t=new MessageChannel;let r;r="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const o=new v(t.port1,{channel:t,client:r});return"object"==typeof r&&"remoteClient"in r&&(r.remoteClient=o),v.clients.set(o,r),t.port2}static loadWorker(e){const t=h[e];return t?t():Promise.resolve(null)}close(){this._post({type:d}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){const o=r&&r.signal,n=r&&r.transferList;if(!this._port)return Promise.reject(new s.Z("worker:port-closed",`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const i=(0,l.jt)();return new Promise(((r,s)=>{const l=(0,a.$F)(o,(()=>{var e;const t=this._outJobs.get(i);t&&(this._outJobs.delete(i),null==(e=t.abortHandle)||e.remove(),this._post({type:u,jobId:i}),s((0,a.zE)()))})),c={resolve:r,reject:s,abortHandle:l,debugInfo:e};this._outJobs.set(i,c),this._post({type:p,jobId:i,methodName:e,abortable:null!=o},t,n)}))}on(e,t){const r=new MessageChannel;function o(e){t(e.data)}return this._port.postMessage({type:l.Cs.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",o),r.port1.start(),{remove(){r.port1.postMessage({type:l.Cs.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",o)}}}openPort(){const e=new MessageChannel;return this._post({type:y,port:e.port2}),e.port1}_close(){this._channel&&(this._channel=null),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach((e=>{var t;null==(t=e.abortHandle)||t.remove(),e.reject((0,a.zE)(`Worker closing, aborting job calling '${e.debugInfo}'`))})),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=this._client=this._schedule=null}_onMessage(e){(0,i.pC)(this._schedule)?this._schedule((()=>this._processMessage(e))):this._processMessage(e)}_processMessage(e){const t=(0,l.QM)(e);if(t)switch(t.type){case g:this._onResponseMessage(t);break;case p:this._invokeQueue.push(t);break;case u:this._onAbortMessage(t);break;case d:this._onCloseMessage();break;case y:this._onOpenPortMessage(t);break;case m:this._onOnMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,o=t.get(r);this._invokeQueue.push(e),o&&(o.controller&&o.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&v.clients.get(this)===e&&e.destroy(),v.clients.delete(this),e&&e.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:o,abortable:s}=e,n=s?new AbortController:null,i=this._inJobs;let c,h=this._client,d=h[t];try{if(!d&&t&&-1!==t.indexOf(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)h=h[e[t]],d=h[e[t+1]]}if("function"!=typeof d)throw new TypeError(`${t} is not a function`);c=d.call(h,o,{client:this,signal:n?n.signal:null})}catch(e){return void this._post({type:g,jobId:r,error:(0,l.AB)(e)})}(0,a.y8)(c)?(i.set(r,{controller:n,promise:c}),c.then((e=>{i.has(r)&&(i.delete(r),this._post({type:g,jobId:r},e))}),(e=>{i.has(r)&&(i.delete(r),(0,a.D_)(e)||this._post({type:g,jobId:r,error:(0,l.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:g,jobId:r},c)}_onOpenPortMessage(e){new v(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,(e=>{t.postMessage(e)})),o=(0,n.on)(e.port,"message",(e=>{(0,l.QM)(e).type===l.Cs.CLOSE&&(o.remove(),r.remove(),t.close())}))}_onResponseMessage(e){var t;const{jobId:r,error:o,data:n}=e,i=this._outJobs;if(!i.has(r))return;const a=i.get(r);i.delete(r),null==(t=a.abortHandle)||t.remove(),o?a.reject(s.Z.fromJSON(JSON.parse(o))):a.resolve(n)}_post(e,t,r){return(0,l.oi)(this._port,e,t,r)}}v.kernelInfo={revision:c.$,version:o.i8,buildDate:c.r},v.clients=new Map},94362:(e,t,r)=>{r.d(t,{Cs:()=>o,jt:()=>a,oi:()=>c,QM:()=>h,AB:()=>l});var o,s,n=r(80442);(s=o||(o={}))[s.HANDSHAKE=0]="HANDSHAKE",s[s.OPEN=1]="OPEN",s[s.OPENED=2]="OPENED",s[s.RESPONSE=3]="RESPONSE",s[s.INVOKE=4]="INVOKE",s[s.ABORT=5]="ABORT",s[s.CLOSE=6]="CLOSE",s[s.OPEN_PORT=7]="OPEN_PORT",s[s.ON=8]="ON";let i=0;function a(){return i++}function l(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function c(e,t,r,s){if(t.type===o.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==o.INVOKE&&t.type!==o.RESPONSE)return void e.postMessage(t);let n;!function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(n=d(s),t.data=r):(n=d(r.transferList),t.data=r.result),n?e.postMessage(t,n):e.postMessage(t)}function h(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function d(e){if(!e||!e.length)return null;if((0,n.Z)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter((e=>!function(e){return e instanceof ArrayBuffer||e&&e.constructor&&"ArrayBuffer"===e.constructor.name}(e)));return t.length?t:null}},78346:(e,t,r)=>{r.d(t,{bA:()=>J});var o=r(20102),s=r(80442),n=r(95330),i=r(80903),a=r(25045),l=r(40330),c=r(92604),h=r(94362),d=r(99880),u=r(68773),p=(r(2587),r(17452));const g={};function y(e){var t;const r={async:e.async,isDebug:e.isDebug,locale:e.locale,baseUrl:e.baseUrl,has:{...e.has},map:{...e.map},packages:e.packages&&e.packages.concat()||[],paths:{...e.paths}};return e.hasOwnProperty("async")||(r.async=!0),e.hasOwnProperty("isDebug")||(r.isDebug=!1),e.baseUrl||(r.baseUrl=g.baseUrl),null==(t=g.packages)||t.forEach((e=>{!function(e,t){for(const r of e)if(r.name===t.name)return;e.push(t)}(r.packages,e)})),r}var m=r(41213);class f{constructor(){const e=document.createDocumentFragment();["addEventListener","dispatchEvent","removeEventListener"].forEach((t=>{this[t]=(...r)=>e[t](...r)}))}}class v{constructor(){this._dispatcher=new f,this._workerPostMessage({type:h.Cs.HANDSHAKE})}terminate(){}get onmessage(){return this._onmessageHandler}set onmessage(e){this._onmessageHandler&&this.removeEventListener("message",this._onmessageHandler),this._onmessageHandler=e,e&&this.addEventListener("message",e)}get onmessageerror(){return this._onmessageerrorHandler}set onmessageerror(e){this._onmessageerrorHandler&&this.removeEventListener("messageerror",this._onmessageerrorHandler),this._onmessageerrorHandler=e,e&&this.addEventListener("messageerror",e)}get onerror(){return this._onerrorHandler}set onerror(e){this._onerrorHandler&&this.removeEventListener("error",this._onerrorHandler),this._onerrorHandler=e,e&&this.addEventListener("error",e)}postMessage(e){(0,m.Y)((()=>{this._workerMessageHandler(new MessageEvent("message",{data:e}))}))}dispatchEvent(e){return this._dispatcher.dispatchEvent(e)}addEventListener(e,t,r){this._dispatcher.addEventListener(e,t,r)}removeEventListener(e,t,r){this._dispatcher.removeEventListener(e,t,r)}_workerPostMessage(e){(0,m.Y)((()=>{this.dispatchEvent(new MessageEvent("message",{data:e}))}))}async _workerMessageHandler(e){const t=(0,h.QM)(e);if(t&&t.type===h.Cs.OPEN){const{modulePath:e,jobId:r}=t;let o=await a.default.loadWorker(e);o||(o=await import(e));const s=a.default.connect(o);this._workerPostMessage({type:h.Cs.OPENED,jobId:r,data:s})}}}var b=r(70171),w=r(17202);const _=c.Z.getLogger("esri.core.workers"),{HANDSHAKE:S}=h.Cs;let k,M;const O="Failed to create Worker. Fallback to execute module in main thread";async function E(e){return new Promise((t=>{function r(s){const n=(0,h.QM)(s);n&&n.type===S&&(e.removeEventListener("message",r),e.removeEventListener("error",o),t(e))}function o(t){t.preventDefault(),e.removeEventListener("message",r),e.removeEventListener("error",o),_.warn("Failed to create Worker. Fallback to execute module in main thread",t),(e=new v).addEventListener("message",r),e.addEventListener("error",o)}e.addEventListener("message",r),e.addEventListener("error",o)}))}let L=0;const C=c.Z.getLogger("esri.core.workers"),{ABORT:I,INVOKE:j,OPEN:T,OPENED:N,RESPONSE:x}=h.Cs;class A{constructor(e,t){this._outJobs=new Map,this._inJobs=new Map,this.worker=e,this.id=t,e.addEventListener("message",this._onMessage.bind(this)),e.addEventListener("error",(e=>{e.preventDefault(),C.error(e)}))}static async create(e){const t=await async function(){if(!(0,s.Z)("esri-workers")||((0,s.Z)("mozilla"),0))return E(new v);if(!k&&!M)try{const e='let globalId=0;const outgoing=new Map,configuration=JSON.parse("{CONFIGURATION}");self.esriConfig=configuration.esriConfig;const workerPath=self.esriConfig.workers.workerPath,HANDSHAKE=0,OPEN=1,OPENED=2,RESPONSE=3,INVOKE=4,ABORT=5;function createAbortError(){const e=new Error("Aborted");return e.name="AbortError",e}function receiveMessage(e){return e&&e.data?"string"==typeof e.data?JSON.parse(e.data):e.data:null}function invokeStaticMessage(e,o,r){const t=r&&r.signal,n=globalId++;return new Promise(((r,i)=>{if(t){if(t.aborted)return i(createAbortError());t.addEventListener("abort",(()=>{outgoing.get(n)&&(outgoing.delete(n),self.postMessage({type:5,jobId:n}),i(createAbortError()))}))}outgoing.set(n,{resolve:r,reject:i}),self.postMessage({type:4,jobId:n,methodName:e,abortable:null!=t,data:o})}))}let workerRevisionChecked=!1;function checkWorkerRevision(e){if(!workerRevisionChecked&&e.kernelInfo){workerRevisionChecked=!0;const{revision:o,buildDate:r,version:t}=configuration.kernelInfo,{revision:n,buildDate:i,version:s}=e.kernelInfo;o!==n&&console.warn(`[esri.core.workers] Version mismatch detected between ArcGIS API for JavaScript and assets:\\nAPI version: ${t} [Date: ${r}, Revision: ${o.slice(0,8)}]\nAssets version: ${s} [Date: ${i}, Revision: ${n.slice(0,8)}]`)}}function messageHandler(e){const o=receiveMessage(e);if(!o)return;const r=o.jobId;switch(o.type){case 1:let e;function t(o){const t=e.connect(o);self.postMessage({type:2,jobId:r,data:t},[t])}"function"==typeof define&&define.amd?require([workerPath],(r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||new Promise((e=>{require([o.modulePath],e)})))).then(t)})):"System"in self&&"function"==typeof System.import?System.import(workerPath).then((r=>(e=r.default,checkWorkerRevision(e),e.loadWorker(o.modulePath)))).then((e=>e||System.import(o.modulePath))).then(t):esriConfig.workers.useDynamicImport?import(workerPath).then((r=>{e=r.default||r,checkWorkerRevision(e),e.loadWorker(o.modulePath).then((e=>e||import(o.modulePath))).then(t)})):(self.RemoteClient||importScripts(workerPath),e=self.RemoteClient.default||self.RemoteClient,checkWorkerRevision(e),e.loadWorker(o.modulePath).then(t));break;case 3:if(outgoing.has(r)){const e=outgoing.get(r);outgoing.delete(r),o.error?e.reject(JSON.parse(o.error)):e.resolve(o.data)}}}self.dojoConfig=configuration.loaderConfig,esriConfig.workers.loaderUrl&&(self.importScripts(esriConfig.workers.loaderUrl),"function"==typeof require&&"function"==typeof require.config&&require.config(configuration.loaderConfig)),self.addEventListener("message",messageHandler),self.postMessage({type:0});'.replace('"{CONFIGURATION}"',`'${function(){let e;if(null!=u.Z.default){const t={...u.Z};delete t.default,e=JSON.parse(JSON.stringify(t))}else e=JSON.parse(JSON.stringify(u.Z));e.assetsPath=(0,p.hF)(e.assetsPath),e.request.interceptors=[],e.log.interceptors=[],e.locale=(0,b.Kd)(),e.has={"esri-csp-restrictions":(0,s.Z)("esri-csp-restrictions"),"esri-2d-debug":!1,"esri-2d-update-debug":(0,s.Z)("esri-2d-update-debug"),"esri-2d-query-centroid-enabled":(0,s.Z)("esri-2d-query-centroid-enabled"),"featurelayer-pbf":(0,s.Z)("featurelayer-pbf"),"featurelayer-simplify-thresholds":(0,s.Z)("featurelayer-simplify-thresholds"),"featurelayer-simplify-payload-size-factors":(0,s.Z)("featurelayer-simplify-payload-size-factors"),"featurelayer-simplify-mobile-factor":(0,s.Z)("featurelayer-simplify-mobile-factor"),"esri-atomics":(0,s.Z)("esri-atomics"),"esri-shared-array-buffer":(0,s.Z)("esri-shared-array-buffer"),"esri-tiles-debug":(0,s.Z)("esri-tiles-debug"),"esri-workers-arraybuffer-transfer":(0,s.Z)("esri-workers-arraybuffer-transfer"),"host-webworker":1},e.workers.loaderUrl&&(e.workers.loaderUrl=(0,p.hF)(e.workers.loaderUrl)),e.workers.workerPath?e.workers.workerPath=(0,p.hF)(e.workers.workerPath):e.workers.workerPath=(0,p.hF)((0,d.V)("esri/core/workers/RemoteClient.js")),e.workers.useDynamicImport=!1;const t=u.Z.workers.loaderConfig,r=y({baseUrl:null==t?void 0:t.baseUrl,locale:(0,b.Kd)(),has:{"csp-restrictions":1,"dojo-test-sniff":0,"host-webworker":1,...null==t?void 0:t.has},map:{...null==t?void 0:t.map},paths:{...null==t?void 0:t.paths},packages:(null==t?void 0:t.packages)||[]}),o={version:l.i8,buildDate:w.r,revision:w.$};return JSON.stringify({esriConfig:e,loaderConfig:r,kernelInfo:o})}()}'`);k=URL.createObjectURL(new Blob([e],{type:"text/javascript"}))}catch(e){M=e||{}}let e;if(k)try{e=new Worker(k,{name:"esri-worker-"+L++})}catch(t){_.warn(O,M),e=new v}else _.warn(O,M),e=new v;return E(e)}();return new A(t,e)}terminate(){this.worker.terminate()}async open(e,t={}){const{signal:r}=t,o=(0,h.jt)();return new Promise(((t,s)=>{const i={resolve:t,reject:s,abortHandle:(0,n.$F)(r,(()=>{this._outJobs.delete(o),this._post({type:I,jobId:o})}))};this._outJobs.set(o,i),this._post({type:T,jobId:o,modulePath:e})}))}_onMessage(e){const t=(0,h.QM)(e);if(t)switch(t.type){case N:this._onOpenedMessage(t);break;case x:this._onResponseMessage(t);break;case I:this._onAbortMessage(t);break;case j:this._onInvokeMessage(t)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,o=t.get(r);o&&(o.controller&&o.controller.abort(),t.delete(r))}_onInvokeMessage(e){const{methodName:t,jobId:r,data:o,abortable:s}=e,i=s?new AbortController:null,a=this._inJobs,c=l.Nv[t];let d;try{if("function"!=typeof c)throw new TypeError(`${t} is not a function`);d=c.call(null,o,{signal:i?i.signal:null})}catch(e){return void this._post({type:x,jobId:r,error:(0,h.AB)(e)})}(0,n.y8)(d)?(a.set(r,{controller:i,promise:d}),d.then((e=>{a.has(r)&&(a.delete(r),this._post({type:x,jobId:r},e))}),(e=>{a.has(r)&&(a.delete(r),e||(e={message:"Error encountered at method"+t}),(0,n.D_)(e)||this._post({type:x,jobId:r,error:(0,h.AB)(e||{message:`Error encountered at method ${t}`})}))}))):this._post({type:x,jobId:r},d)}_onOpenedMessage(e){var t;const{jobId:r,data:o}=e,s=this._outJobs.get(r);s&&(this._outJobs.delete(r),null==(t=s.abortHandle)||t.remove(),s.resolve(o))}_onResponseMessage(e){var t;const{jobId:r,error:s,data:n}=e,i=this._outJobs.get(r);i&&(this._outJobs.delete(r),null==(t=i.abortHandle)||t.remove(),s?i.reject(o.Z.fromJSON(JSON.parse(s))):i.resolve(n))}_post(e,t,r){return(0,h.oi)(this.worker,e,t,r)}}let P=(0,s.Z)("esri-workers-debug")?1:(0,s.Z)("host-browser")?navigator.hardwareConcurrency-1:0;P||(P=(0,s.Z)("safari")&&(0,s.Z)("mac")||(0,s.Z)("trident")?7:2);let D=0;const R=[];async function Z(e,t){const r=new i.Z;return await r.open(e,t),r}async function J(e,t={}){if("string"!=typeof e)throw new o.Z("workers:undefined-module","modulePath is missing");let r=t.strategy||"distributed";if((0,s.Z)("host-webworker")&&!(0,s.Z)("esri-workers")&&(r="local"),"local"===r){let r=await a.default.loadWorker(e);r||(r=await import(e)),(0,n.k_)(t.signal);const o=t.client||r;return Z([a.default.connect(r)],{...t,client:o})}if(await async function(){if($)return $;U=new AbortController;const e=[];for(let t=0;t<P;t++){const r=A.create(t).then((e=>(R[t]=e,e)));e.push(r)}return $=Promise.all(e),$}(),(0,n.k_)(t.signal),"dedicated"===r){const r=D++%P;return Z([await R[r].open(e,t)],t)}if(t.maxNumWorkers&&t.maxNumWorkers>0){const r=Math.min(t.maxNumWorkers,P);if(r<P){const o=new Array(r);for(let s=0;s<r;++s){const r=D++%P;o[s]=R[r].open(e,t)}return Z(o,t)}}return Z(R.map((r=>r.open(e,t))),t)}let U,$=null},79235:(e,t,r)=>{r.d(t,{Z:()=>b});var o,s=r(43697),n=r(67676),i=r(35454),a=r(96674),l=r(67900),c=r(20941),h=r(5600),d=(r(80442),r(75215),r(71715)),u=r(52011),p=r(30556);const g=(0,i.wY)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),y=g.jsonValues.slice();(0,n.e$)(y,"orthometric");const m=(0,i.wY)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let f=o=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return g.write(e,t,r)}readHeightModel(e,t,r){return g.read(e)||(r&&r.messages&&r.messages.push(function(e,t){return new c.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return m.read(e)||(r&&r.messages&&r.messages.push(v(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||m.read(e)||(r&&r.messages&&r.messages.push(v(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new o({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.cM)(t);return new o({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new o;return t.read(e,{origin:"web-scene"}),t}};function v(e,t){return new c.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,h.Cb)({type:g.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:y,default:"ellipsoidal"}}}})],f.prototype,"heightModel",void 0),(0,s._)([(0,p.c)("web-scene","heightModel")],f.prototype,"writeHeightModel",null),(0,s._)([(0,d.r)(["web-scene","service"],"heightModel")],f.prototype,"readHeightModel",null),(0,s._)([(0,h.Cb)({type:m.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m.jsonValues,write:m.write}}}})],f.prototype,"heightUnit",void 0),(0,s._)([(0,d.r)("web-scene","heightUnit")],f.prototype,"readHeightUnit",null),(0,s._)([(0,d.r)("service","heightUnit")],f.prototype,"readHeightUnitService",null),(0,s._)([(0,h.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],f.prototype,"vertCRS",void 0),(0,s._)([(0,d.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],f.prototype,"readVertCRS",null),f=o=(0,s._)([(0,u.j)("esri.geometry.HeightModelInfo")],f);const b=f},2587:(e,t,r)=>{r(90344),r(18848),r(940),r(70171);var o=r(94443),s=r(3172),n=r(20102),i=r(70586);async function a(e){if((0,i.pC)(c.fetchBundleAsset))return c.fetchBundleAsset(e);const t=await(0,s.default)(e,{responseType:"text"});return JSON.parse(t.data)}class l{constructor({base:e="",pattern:t,location:r=new URL(window.location.href)}){let o;o="string"==typeof r?e=>new URL(e,new URL(r,window.location.href)).href:r instanceof URL?e=>new URL(e,r).href:r,this.pattern="string"==typeof t?new RegExp(`^${t}`):t,this.getAssetUrl=o,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)/)?(.*)$`)}fetchMessageBundle(e,t){return async function(e,t,r,s){const i=t.exec(r);if(!i)throw new n.Z("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);const l=i[1]?`${i[1]}/`:"",c=i[2],h=(0,o.Su)(s),d=`${l}${c}.json`,u=h?`${l}${c}_${h}.json`:d;let p;try{p=await a(e(u))}catch(t){if(u===d)throw new n.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:t});try{p=await a(e(d))}catch(e){throw new n.Z("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:e})}}return p}(this.getAssetUrl,this.matcher,e,t)}}const c={};var h,d=r(99880);(0,o.tz)((h={pattern:"esri/",location:d.V},new l(h)))},90344:(e,t,r)=>{r.d(t,{Ze:()=>m,p6:()=>f});var o=r(35454),s=r(70171);const n={year:"numeric",month:"numeric",day:"numeric"},i={year:"numeric",month:"long",day:"numeric"},a={year:"numeric",month:"short",day:"numeric"},l={year:"numeric",month:"long",weekday:"long",day:"numeric"},c={hour:"numeric",minute:"numeric"},h={...c,second:"numeric"},d={"short-date":n,"short-date-short-time":{...n,...c},"short-date-short-time-24":{...n,...c,hour12:!1},"short-date-long-time":{...n,...h},"short-date-long-time-24":{...n,...h,hour12:!1},"short-date-le":n,"short-date-le-short-time":{...n,...c},"short-date-le-short-time-24":{...n,...c,hour12:!1},"short-date-le-long-time":{...n,...h},"short-date-le-long-time-24":{...n,...h,hour12:!1},"long-month-day-year":i,"long-month-day-year-short-time":{...i,...c},"long-month-day-year-short-time-24":{...i,...c,hour12:!1},"long-month-day-year-long-time":{...i,...h},"long-month-day-year-long-time-24":{...i,...h,hour12:!1},"day-short-month-year":a,"day-short-month-year-short-time":{...a,...c},"day-short-month-year-short-time-24":{...a,...c,hour12:!1},"day-short-month-year-long-time":{...a,...h},"day-short-month-year-long-time-24":{...a,...h,hour12:!1},"long-date":l,"long-date-short-time":{...l,...c},"long-date-short-time-24":{...l,...c,hour12:!1},"long-date-long-time":{...l,...h},"long-date-long-time-24":{...l,...h,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":c,"long-time":h},u=(0,o.wY)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),p=(u.apiValues,u.toJSON.bind(u),u.fromJSON.bind(u),{ar:"ar-u-nu-latn-ca-gregory"});let g=new WeakMap,y=d["short-date-short-time"];function m(e){return d[e]||null}function f(e,t){return function(e){const t=e||y;if(!g.has(t)){const e=(0,s.Kd)(),r=p[(0,s.Kd)()]||e;g.set(t,new Intl.DateTimeFormat(r,t))}return g.get(t)}(t).format(e)}(0,s.Ze)((()=>{g=new WeakMap,y=d["short-date-short-time"]}))},94443:(e,t,r)=>{r.d(t,{ME:()=>p,Su:()=>g,tz:()=>u});var o=r(20102),s=r(95330),n=r(70171);const i=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,a={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:!0,nl:!0,pl:!0,"pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,"zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){var t;return null!=(t=a[e])&&t}const c=[],h=new Map;function d(e){for(const t of h.keys())y(e.pattern,t)&&h.delete(t)}function u(e){return c.includes(e)||(d(e),c.unshift(e)),{remove(){const t=c.indexOf(e);t>-1&&(c.splice(t,1),d(e))}}}async function p(e){const t=(0,n.Kd)();h.has(e)||h.set(e,async function(e,t){const r=[];for(const o of c)if(y(o.pattern,e))try{return await o.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new o.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new o.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=h.get(e);return await m.add(r),r}function g(e){if(!i.test(e))return null;const[,t,r]=i.exec(e),o=t+(r?"-"+r.toUpperCase():"");return l(o)?o:l(t)?t:null}function y(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,n.Ze)((()=>{h.clear()}));const m=new class{constructor(){this._numLoading=0}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,s.dD)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(e,t,r)=>{r.d(t,{sh:()=>l,uf:()=>c});var o=r(70586),s=r(70171);const n={ar:"ar-u-nu-latn"};let i=new WeakMap,a={};function l(e={}){const t={};return null!=e.digitSeparator&&(t.useGrouping=e.digitSeparator),null!=e.places&&(t.minimumFractionDigits=t.maximumFractionDigits=e.places),t}function c(e,t){return function(e){const t=e||a;if(!i.has(t)){const r=(0,s.Kd)(),o=n[(0,s.Kd)()]||r;i.set(t,new Intl.NumberFormat(o,e))}return(0,o.j0)(i.get(t))}(t).format(e)}(0,s.Ze)((()=>{i=new WeakMap,a={}}))},940:(e,t,r)=>{r.d(t,{n:()=>c});var o=r(92604),s=r(78286),n=r(19153),i=r(90344),a=r(18848);const l=o.Z.getLogger("esri.intl");function c(e,t,r={}){const{format:o={}}=r;return(0,n.gx)(e,(e=>function(e,t,r){let o,n;const i=e.indexOf(":");if(-1===i?o=e.trim():(o=e.slice(0,i).trim(),n=e.slice(i+1).trim()),!o)return"";const a=(0,s.hS)(o,t);if(null==a)return"";const l=r[n]||r[o];return l?h(a,l):n?d(a,n):u(a)}(e,t,o)))}function h(e,t){switch(t.type){case"date":return(0,i.p6)(e,t.intlOptions);case"number":return(0,a.uf)(e,t.intlOptions);default:return l.warn("missing format descriptor for key {key}"),u(e)}}function d(e,t){switch(t.toLowerCase()){case"dateformat":return(0,i.p6)(e);case"numberformat":return(0,a.uf)(e);default:return l.warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?(0,i.p6)(e):/^numberformat/i.test(t)?(0,a.uf)(e):u(e)}}function u(e){switch(typeof e){case"string":return e;case"number":return(0,a.uf)(e);case"boolean":return""+e;default:return e instanceof Date?(0,i.p6)(e):""}}},49932:(e,t,r)=>{r.r(t),r.d(t,{default:()=>I});var o=r(43697),s=r(3172),n=r(20102),i=r(92604),a=r(70586),l=r(16453),c=r(95330),h=r(17452),d=r(5600),u=r(67676),p=(r(80442),r(75215),r(71715)),g=r(52011),y=r(79235),m=r(29600),f=r(46486),v=r(17287),b=r(38009),w=r(16859),_=r(21506),S=r(50758),k=r(78346);const M=i.Z.getLogger("esri.core.workers.WorkerHandle");class O extends class{constructor(e,t,r,o={}){this._mainMethod=t,this._listeners=[],this._promise=(0,k.bA)(e,{...o,schedule:r}).then((e=>{if(void 0===this._thread){this._thread=e,this._promise=null,o.hasInitialize&&this.broadcast({},"initialize");for(const e of this._listeners)this._connectListener(e)}else e.close()})),this._promise.catch((t=>M.error(`Failed to initialize ${e} worker: ${t}`)))}on(e,t){const r={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(r),this._connectListener(r),(0,S.kB)((()=>{r.removed=!0,(0,u.Od)(this._listeners,r),this._thread&&(0,a.pC)(r.threadHandle)&&r.threadHandle.remove()}))}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null}invoke(e,t){return this.invokeMethod(this._mainMethod,e,t)}invokeMethod(e,t,r){if(this._thread){const o=this.getTransferList(t,e);return this._thread.invoke(e,t,{transferList:o,signal:r})}return this._promise?this._promise.then((()=>((0,c.k_)(r),this.invokeMethod(e,t,r)))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then((()=>{})):this._promise?this._promise.then((()=>this.broadcast(e,t))):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then((t=>{e.removed||(e.threadHandle=t)}))}}{constructor(e=null){super("LercWorker","_decode",e,{strategy:"dedicated"}),this.schedule=e,this.ref=0}decode(e,t,r){return e&&0!==e.byteLength?this.invoke({buffer:e,options:t},r):Promise.resolve(null)}getTransferList(e){return[e.buffer]}release(){--this.ref<=0&&(E.forEach(((e,t)=>{e===this&&E.delete(t)})),this.destroy())}}const E=new Map,L=i.Z.getLogger("esri.layers.ElevationLayer");let C=class extends((0,f.Z)((0,v.Y)((0,b.q)((0,w.I)((0,l.R)(m.Z)))))){constructor(...e){super(...e),this.copyright=null,this.heightModelInfo=null,this.path=null,this.opacity=1,this.operationalLayerType="ArcGISTiledElevationServiceLayer",this.sourceJSON=null,this.type="elevation",this.url=null,this.version=null,this._lercDecoder=function(e=null){let t=E.get((0,a.Wg)(e));return t||((0,a.pC)(e)?(t=new O((t=>e.schedule(t))),E.set(e,t)):(t=new O,E.set(null,t))),++t.ref,t}()}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this._lercDecoder=(0,a.RY)(this._lercDecoder)}set minScale(e){this.constructed&&L.warn(`${this.declaredClass}.minScale support has been removed (since 4.5)`)}get minScale(){}set maxScale(e){this.constructed&&L.warn(`${this.declaredClass}.maxScale support has been removed (since 4.5)`)}get maxScale(){}readVersion(e,t){let r=t.currentVersion;return r||(r=9.3),r}load(e){const t=(0,a.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"],supportsData:!1,validateItem:e=>{for(let t=0;t<e.typeKeywords.length;t++)if("elevation 3d layer"===e.typeKeywords[t].toLowerCase())return!0;throw new n.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}' ",{type:"Image Service",expectedType:"Image Service Elevation 3D Layer"})}},e).catch(c.r9).then((()=>this._fetchImageService(t)))),Promise.resolve(this)}fetchTile(e,t,r,o){const n=(0,a.pC)((o=o||{signal:null}).signal)?o.signal:o.signal=(new AbortController).signal,i={responseType:"array-buffer",signal:n},l={noDataValue:o.noDataValue,returnFileInfo:!0};return this.load().then((()=>this._fetchTileAvailability(e,t,r,o))).then((()=>(0,s.default)(this.getTileUrl(e,t,r),i))).then((e=>this._lercDecoder.decode(e.data,l,n))).then((e=>({values:e.pixelData,width:e.width,height:e.height,maxZError:e.fileInfo.maxZError,noDataValue:e.noDataValue,minValue:e.minValue,maxValue:e.maxValue})))}getTileUrl(e,t,r){const o=!this.tilemapCache&&this.supportsBlankTile,s=(0,h.B7)({...this.parsedUrl.query,blankTile:!o&&null});return`${this.parsedUrl.path}/tile/${e}/${t}/${r}${s?"?"+s:""}`}async queryElevation(e,t){const{ElevationQuery:o}=await Promise.all([r.e(4547),r.e(3505)]).then(r.bind(r,33127));return(0,c.k_)(t),(new o).query(this,e,t)}async createElevationSampler(e,t){const{ElevationQuery:o}=await Promise.all([r.e(4547),r.e(3505)]).then(r.bind(r,33127));return(0,c.k_)(t),(new o).createSampler(this,e,t)}_fetchTileAvailability(e,t,r,o){return this.tilemapCache?this.tilemapCache.fetchAvailability(e,t,r,o):Promise.resolve("unknown")}async _fetchImageService(e){if(this.sourceJSON)return this.sourceJSON;const t={query:{f:"json",...this.parsedUrl.query},responseType:"json",signal:e},r=await(0,s.default)(this.parsedUrl.path,t);r.ssl&&(this.url=this.url.replace(/^http:/i,"https:")),this.sourceJSON=r.data,this.read(r.data,{origin:"service",url:this.parsedUrl})}get hasOverriddenFetchTile(){return!this.fetchTile.__isDefault__}};(0,o._)([(0,d.Cb)({json:{read:{source:"copyrightText"}}})],C.prototype,"copyright",void 0),(0,o._)([(0,d.Cb)({readOnly:!0,type:y.Z})],C.prototype,"heightModelInfo",void 0),(0,o._)([(0,d.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],C.prototype,"path",void 0),(0,o._)([(0,d.Cb)({type:["show","hide"]})],C.prototype,"listMode",void 0),(0,o._)([(0,d.Cb)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],C.prototype,"minScale",null),(0,o._)([(0,d.Cb)({json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],C.prototype,"maxScale",null),(0,o._)([(0,d.Cb)({json:{read:!1,write:!1,origins:{"web-document":{read:!1,write:!1}}}})],C.prototype,"opacity",void 0),(0,o._)([(0,d.Cb)({type:["ArcGISTiledElevationServiceLayer"]})],C.prototype,"operationalLayerType",void 0),(0,o._)([(0,d.Cb)()],C.prototype,"sourceJSON",void 0),(0,o._)([(0,d.Cb)({json:{read:!1},value:"elevation",readOnly:!0})],C.prototype,"type",void 0),(0,o._)([(0,d.Cb)(_.HQ)],C.prototype,"url",void 0),(0,o._)([(0,d.Cb)()],C.prototype,"version",void 0),(0,o._)([(0,p.r)("version",["currentVersion"])],C.prototype,"readVersion",null),C=(0,o._)([(0,g.j)("esri.layers.ElevationLayer")],C),C.prototype.fetchTile.__isDefault__=!0;const I=C},29600:(e,t,r)=>{r.d(t,{Z:()=>w});var o=r(43697),s=r(68773),n=(r(66577),r(3172)),i=r(20102),a=r(32448),l=r(10699),c=r(83379),h=r(92604),d=r(95330),u=r(17452),p=r(5600),g=(r(67676),r(80442),r(75215),r(52011)),y=r(6570),m=r(82971);let f=0;const v=h.Z.getLogger("esri.layers.Layer");let b=class extends(a.Z.EventedMixin((0,l.I)(c.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.Z(-180,-90,180,90,m.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+f++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e,o=await r.e(3529).then(r.bind(r,63529));try{return await o.fromUrl(t)}catch(e){throw v.error("#fromArcGISServerUrl({ url: '"+t.url+"'})","Failed to create layer from arcgis server url",e),e}}static async fromPortalItem(e){const t="portalItem"in e?e:{portalItem:e},o=await r.e(4579).then(r.bind(r,44579));try{return await o.fromItem(t)}catch(e){const r=t&&t.portalItem,o=r&&r.id||"unset",n=r&&r.portal&&r.portal.url||s.Z.portalUrl;throw v.error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+o+"')",e),e}}initialize(){this.when().catch((e=>{var t,r;(0,d.D_)(e)||h.Z.getLogger(this.declaredClass).error("#load()",`Failed to load layer (title: '${null!=(t=this.title)?t:"no title"}', id: '${null!=(r=this.id)?r:"no id"}')`,{error:e})}))}destroy(){if(this.parent){const e=this,t=this.parent;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"baseLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){const e=this.url;return e?(0,u.mN)(e):null}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.default)(e,{query:{f:"json"},responseType:"json"})).data;throw new i.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,o._)([(0,p.Cb)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,o._)([(0,p.Cb)({type:y.Z})],b.prototype,"fullExtent",void 0),(0,o._)([(0,p.Cb)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,o._)([(0,p.Cb)({type:String})],b.prototype,"id",void 0),(0,o._)([(0,p.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,o._)([(0,p.Cb)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,o._)([(0,p.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,o._)([(0,p.Cb)()],b.prototype,"parent",void 0),(0,o._)([(0,p.Cb)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,o._)([(0,p.Cb)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,o._)([(0,p.Cb)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,o._)([(0,p.Cb)({type:m.Z})],b.prototype,"spatialReference",void 0),(0,o._)([(0,p.Cb)({type:String})],b.prototype,"title",void 0),(0,o._)([(0,p.Cb)({type:String,readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,o._)([(0,p.Cb)()],b.prototype,"url",void 0),(0,o._)([(0,p.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,o._)([(0,g.j)("esri.layers.Layer")],b);const w=b},46486:(e,t,r)=>{r.d(t,{Z:()=>h});var o=r(43697),s=(r(66577),r(5600)),n=(r(67676),r(80442),r(75215),r(71715)),i=r(52011),a=r(45322),l=r(56608),c=r(82971);const h=e=>{let t=class extends e{constructor(){super(...arguments),this.copyright=null,this.minScale=0,this.maxScale=0,this.spatialReference=null,this.tileInfo=null,this.tilemapCache=null}readMinScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}readMaxScale(e,t){return null!=t.minLOD&&null!=t.maxLOD?e:0}get supportsBlankTile(){return this.version>=10.2}readTilemapCache(e,t){return t.capabilities&&t.capabilities.indexOf("Tilemap")>-1?new l.y({layer:this}):null}};return(0,o._)([(0,s.Cb)({json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,o._)([(0,s.Cb)()],t.prototype,"minScale",void 0),(0,o._)([(0,n.r)("service","minScale")],t.prototype,"readMinScale",null),(0,o._)([(0,s.Cb)()],t.prototype,"maxScale",void 0),(0,o._)([(0,n.r)("service","maxScale")],t.prototype,"readMaxScale",null),(0,o._)([(0,s.Cb)({type:c.Z})],t.prototype,"spatialReference",void 0),(0,o._)([(0,s.Cb)({readOnly:!0})],t.prototype,"supportsBlankTile",null),(0,o._)([(0,s.Cb)(a.h)],t.prototype,"tileInfo",void 0),(0,o._)([(0,s.Cb)()],t.prototype,"tilemapCache",void 0),(0,o._)([(0,n.r)("service","tilemapCache",["capabilities"])],t.prototype,"readTilemapCache",null),(0,o._)([(0,s.Cb)()],t.prototype,"version",void 0),t=(0,o._)([(0,i.j)("esri.layers.mixins.ArcGISCachedService")],t),t}},17287:(e,t,r)=>{r.d(t,{Y:()=>c});var o=r(43697),s=r(92604),n=r(70586),i=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(66677);const c=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.Qc)(this.url);if((0,n.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Nm)(e,s.Z.getLogger(this.declaredClass)))}};return(0,o._)([(0,i.Cb)()],t.prototype,"title",null),(0,o._)([(0,i.Cb)({type:String})],t.prototype,"url",null),t=(0,o._)([(0,a.j)("esri.layers.mixins.ArcGISService")],t),t}},38009:(e,t,r)=>{r.d(t,{q:()=>p});var o=r(43697),s=r(20102),n=r(17452),i=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(30556),c=r(50549),h=r(76169);const d={"web-scene/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISMapServiceLayer:!0,ArcGISSceneServiceLayer:!0,ArcGISTiledElevationServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BuildingSceneLayer:!0,GroupLayer:!0,IntegratedMeshLayer:!0,OGCFeatureLayer:!0,PointCloudLayer:!0,WebTiledLayer:!0,CSV:!0,GeoJSON:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,KML:!0,RasterDataLayer:!0,Voxel:!0},"web-scene/basemap":{ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,WebTiledLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,ArcGISImageServiceLayer:!0,WMS:!0,ArcGISMapServiceLayer:!0},"web-scene/ground":{ArcGISTiledElevationServiceLayer:!0,RasterDataElevationLayer:!0},"web-map/operational-layers":{ArcGISFeatureLayer:!0,ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISStreamLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,BingMapsAerial:!0,BingMapsHybrid:!0,BingMapsRoad:!0,CSV:!0,GeoRSS:!0,GeoJSON:!0,GroupLayer:!0,KML:!0,OGCFeatureLayer:!0,SubtypeGroupLayer:!0,VectorTileLayer:!0,WFS:!0,WMS:!0,WebTiledLayer:!0},"web-map/basemap":{ArcGISImageServiceLayer:!0,ArcGISImageServiceVectorLayer:!0,ArcGISMapServiceLayer:!0,ArcGISTiledImageServiceLayer:!0,ArcGISTiledMapServiceLayer:!0,OpenStreetMap:!0,VectorTileLayer:!0,WMS:!0,WebTiledLayer:!0,BingMapsAerial:!0,BingMapsRoad:!0,BingMapsHybrid:!0},"web-map/tables":{ArcGISFeatureLayer:!0},"portal-item/operational-layers":{ArcGISSceneServiceLayer:!0,PointCloudLayer:!0,BuildingSceneLayer:!0,IntegratedMeshLayer:!0}};var u=r(21506);const p=e=>{let t=class extends e{constructor(){super(...arguments),this.title=null}writeListMode(e,t,r,o){(o&&"ground"===o.layerContainerType||e&&(0,h.d)(this,r,{},o))&&(t[r]=e)}writeOperationalLayerType(e,t,r,o){!e||o&&"tables"===o.layerContainerType||(t.layerType=e)}writeTitle(e,t){t.title=e||"Layer"}read(e,t){t&&(t.layer=this),(0,c.$)(this,e,(t=>super.read(e,t)),t)}write(e,t){if(null!=t&&t.origin){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`,o=d[e];let n=o&&o[this.operationalLayerType];var r;if("ArcGISTiledElevationServiceLayer"===this.operationalLayerType&&"web-scene/operational-layers"===e&&(n=!1),!n)return null==(r=t.messages)||r.push(new s.Z("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this})),null}const o=super.write(e,{...t,layer:this}),i=!!t&&!!t.messages&&!!t.messages.filter((e=>e instanceof s.Z&&"web-document-write:property-required"===e.name)).length;var a;return(0,n.jc)(null==o?void 0:o.url)?(null==t||null==(a=t.messages)||a.push(new s.Z("layer:invalid-url",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Blob URL cannot be written to web scenes and web maps`,{layer:this})),null):!this.url&&i?null:o}beforeSave(){}};return(0,o._)([(0,i.Cb)({type:String,json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0}},"portal-item":{write:!1}}}})],t.prototype,"id",void 0),(0,o._)([(0,i.Cb)({json:{write:{ignoreOrigin:!0},origins:{"web-map":{read:!1,write:!1}}}})],t.prototype,"listMode",void 0),(0,o._)([(0,l.c)("listMode")],t.prototype,"writeListMode",null),(0,o._)([(0,i.Cb)({type:String,readOnly:!0,json:{read:!1,write:{target:"layerType",ignoreOrigin:!0},origins:{"portal-item":{write:!1}}}})],t.prototype,"operationalLayerType",void 0),(0,o._)([(0,l.c)("operationalLayerType")],t.prototype,"writeOperationalLayerType",null),(0,o._)([(0,i.Cb)(u.Oh)],t.prototype,"opacity",void 0),(0,o._)([(0,i.Cb)({type:String,json:{write:{ignoreOrigin:!0,writerEnsuresNonNull:!0},origins:{"web-scene":{write:{isRequired:!0,ignoreOrigin:!0,writerEnsuresNonNull:!0}},"portal-item":{write:!1}}},value:"Layer"})],t.prototype,"title",void 0),(0,o._)([(0,l.c)("title")],t.prototype,"writeTitle",null),(0,o._)([(0,i.Cb)({type:Boolean,json:{name:"visibility"}})],t.prototype,"visible",void 0),t=(0,o._)([(0,a.j)("esri.layers.mixins.OperationalLayer")],t),t}},21506:(e,t,r)=>{r.d(t,{qG:()=>w,PV:()=>m,id:()=>S,iR:()=>p,rn:()=>y,u1:()=>M,rO:()=>k,Oh:()=>v,bT:()=>b,C_:()=>u,Lx:()=>f,vg:()=>_,YI:()=>d,HQ:()=>g});var o=r(92835),s=r(6570),n=r(82971),i=r(25929),a=r(70586),l=(r(95330),r(35463)),c=r(20682),h=r(65242);const d={type:Boolean,value:!0,json:{origins:{service:{read:!1,write:!1},"web-map":{read:!1,write:!1}},name:"screenSizePerspective",write:!0}},u={type:Boolean,value:!0,json:{name:"disablePopup",read:{reader:(e,t)=>!t.disablePopup},write:{enabled:!0,writer(e,t,r){t[r]=!e}}}},p={type:Boolean,value:!0,json:{name:"showLabels",write:!0}},g={type:String,json:{origins:{"portal-item":{write:!1}},write:{isRequired:!0,ignoreOrigin:!0,writer:i.w}}},y={type:Boolean,value:!0,json:{origins:{service:{read:{enabled:!1}}},name:"showLegend",write:!0}},m={value:null,type:c.Z,json:{origins:{service:{name:"elevationInfo",write:!0}},name:"layerDefinition.elevationInfo",write:!0}};function f(e){return{type:e,readOnly:!0,json:{origins:{service:{read:!0}},read:!1}}}const v={type:Number,json:{origins:{"web-document":{write:!0,read:!0},"portal-item":{write:!0}}}},b={...v,json:{...v.json,origins:{"web-document":{...v.json.origins["web-document"],write:{enabled:!0,target:{opacity:{type:Number},"layerDefinition.drawingInfo.transparency":{type:Number}}}}},read:{source:["layerDefinition.drawingInfo.transparency","drawingInfo.transparency"],reader:(e,t,r)=>r&&"service"!==r.origin||!t.drawingInfo||void 0===t.drawingInfo.transparency?t.layerDefinition&&t.layerDefinition.drawingInfo&&void 0!==t.layerDefinition.drawingInfo.transparency?(0,h.b)(t.layerDefinition.drawingInfo.transparency):void 0:(0,h.b)(t.drawingInfo.transparency)}}},w={type:o.Z,readOnly:!0,get(){var e,t;if(null==(e=this.layer)||!e.timeInfo)return null;const{datesInUnknownTimezone:r,timeOffset:s,useViewTime:n}=this.layer,i=null==(t=this.view)?void 0:t.timeExtent;let c=this.layer.timeExtent;r&&(c=function(e){if(!e)return e;const{start:t,end:r}=e;return new o.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,r.getTimezoneOffset(),"minutes"):r})}(c));let h=n?i&&c?i.intersection(c):i||c:c;if(!h||h.isEmpty||h.isAllTime)return h;s&&(h=h.offset(-s.value,s.unit)),r&&(h=function(e){if(!e)return e;const{start:t,end:r}=e;return new o.Z({start:(0,a.pC)(t)?(0,l.Nm)(t,-t.getTimezoneOffset(),"minutes"):t,end:(0,a.pC)(r)?(0,l.Nm)(r,-r.getTimezoneOffset(),"minutes"):r})}(h));const d=this._get("timeExtent");return h.equals(d)?d:h}},_={type:s.Z,readOnly:!0,json:{origins:{service:{read:{source:["fullExtent","spatialReference"],reader:(e,t)=>{const r=s.Z.fromJSON(e);return null!=t.spatialReference&&"object"==typeof t.spatialReference&&(r.spatialReference=n.Z.fromJSON(t.spatialReference)),r}}}},read:!1}},S={type:String,json:{origins:{service:{read:!1},"portal-item":{read:!1}}}},k={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.minScale"},write:{target:"layerDefinition.minScale"}}},M={type:Number,json:{origins:{service:{write:{enabled:!1}}},read:{source:"layerDefinition.maxScale"},write:{target:"layerDefinition.maxScale"}}}},20682:(e,t,r)=>{r.d(t,{Z:()=>_});var o,s=r(43697),n=r(35454),i=r(96674),a=r(70586),l=r(5600),c=(r(67676),r(80442),r(75215),r(71715)),h=r(52011),d=r(30556),u=r(35671);let p=o=class extends i.wq{async collectRequiredFields(e,t){return(0,u.io)(e,t,this.expression)}clone(){return new o({expression:this.expression,title:this.title})}};(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],p.prototype,"expression",void 0),(0,s._)([(0,l.Cb)({type:String,json:{write:!0}})],p.prototype,"title",void 0),p=o=(0,s._)([(0,h.j)("esri.layers.support.FeatureExpressionInfo")],p);const g=p;var y=r(99282);const m=function(){const e=Object.keys(y.a);return e.sort(),e}();var f;const v=(0,n.wY)()({onTheGround:"on-the-ground",relativeToGround:"relative-to-ground",relativeToScene:"relative-to-scene",absoluteHeight:"absolute-height"}),b=new n.Xn({foot:"feet",kilometer:"kilometers",meter:"meters",mile:"miles","us-foot":"us-feet",yard:"yards"});let w=f=class extends i.wq{constructor(){super(...arguments),this.offset=null}readFeatureExpressionInfo(e,t){return null!=e?e:t.featureExpression&&0===t.featureExpression.value?{expression:"0"}:void 0}writeFeatureExpressionInfo(e,t,r,o){t[r]=e.write({},o),"0"===e.expression&&(t.featureExpression={value:0})}get mode(){const{offset:e,featureExpressionInfo:t}=this;return this._isOverridden("mode")?this._get("mode"):(0,a.pC)(e)||t?"relative-to-ground":"on-the-ground"}set mode(e){this._override("mode",e)}set unit(e){this._set("unit",e)}write(e,t){return this.offset||this.mode||this.featureExpressionInfo||this.unit?super.write(e,t):null}clone(){return new f({mode:this.mode,offset:this.offset,featureExpressionInfo:this.featureExpressionInfo?this.featureExpressionInfo.clone():void 0,unit:this.unit})}};(0,s._)([(0,l.Cb)({type:g,json:{write:!0}})],w.prototype,"featureExpressionInfo",void 0),(0,s._)([(0,c.r)("featureExpressionInfo",["featureExpressionInfo","featureExpression"])],w.prototype,"readFeatureExpressionInfo",null),(0,s._)([(0,d.c)("featureExpressionInfo",{featureExpressionInfo:{type:g},"featureExpression.value":{type:[0]}})],w.prototype,"writeFeatureExpressionInfo",null),(0,s._)([(0,l.Cb)({type:v.apiValues,nonNullable:!0,json:{type:v.jsonValues,read:v.read,write:{writer:v.write,isRequired:!0}}})],w.prototype,"mode",null),(0,s._)([(0,l.Cb)({type:Number,json:{write:!0}})],w.prototype,"offset",void 0),(0,s._)([(0,l.Cb)({type:m,json:{type:String,read:b.read,write:b.write}})],w.prototype,"unit",null),w=f=(0,s._)([(0,h.j)("esri.layers.support.ElevationInfo")],w);const _=w},65242:(e,t,r)=>{r.d(t,{a:()=>s,b:()=>n});var o=r(75215);function s(e){const t=(0,o.vU)(100*(1-e));return Math.max(0,Math.min(t,100))}function n(e){const t=1-e/100;return Math.max(0,Math.min(t,1))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7284],{79235:(e,t,r)=>{r.d(t,{Z:()=>v});var i,s=r(43697),o=r(67676),n=r(35454),a=r(96674),l=r(67900),p=r(20941),u=r(5600),d=(r(80442),r(75215),r(71715)),c=r(52011),y=r(30556);const h=(0,n.wY)()({orthometric:"gravity-related-height",gravity_related_height:"gravity-related-height",ellipsoidal:"ellipsoidal"}),m=h.jsonValues.slice();(0,o.e$)(m,"orthometric");const f=(0,n.wY)()({meter:"meters",foot:"feet","us-foot":"us-feet","clarke-foot":"clarke-feet","clarke-yard":"clarke-yards","clarke-link":"clarke-links","sears-yard":"sears-yards","sears-foot":"sears-feet","sears-chain":"sears-chains","benoit-1895-b-chain":"benoit-1895-b-chains","indian-yard":"indian-yards","indian-1937-yard":"indian-1937-yards","gold-coast-foot":"gold-coast-feet","sears-1922-truncated-chain":"sears-1922-truncated-chains","50-kilometers":"50-kilometers","150-kilometers":"150-kilometers"});let b=i=class extends a.wq{constructor(e){super(e),this.heightModel="gravity-related-height",this.heightUnit="meters",this.vertCRS=null}writeHeightModel(e,t,r){return h.write(e,t,r)}readHeightModel(e,t,r){return h.read(e)||(r&&r.messages&&r.messages.push(function(e,t){return new p.Z("height-model:unsupported",`Height model of value '${e}' is not supported`,t)}(e,{context:r})),null)}readHeightUnit(e,t,r){return f.read(e)||(r&&r.messages&&r.messages.push(g(e,{context:r})),null)}readHeightUnitService(e,t,r){return(0,l.$C)(e)||f.read(e)||(r&&r.messages&&r.messages.push(g(e,{context:r})),null)}readVertCRS(e,t){return t.vertCRS||t.ellipsoid||t.geoid}clone(){return new i({heightModel:this.heightModel,heightUnit:this.heightUnit,vertCRS:this.vertCRS})}equals(e){return!!e&&(this===e||this.heightModel===e.heightModel&&this.heightUnit===e.heightUnit&&this.vertCRS===e.vertCRS)}static deriveUnitFromSR(e,t){const r=(0,l.cM)(t);return new i({heightModel:e.heightModel,heightUnit:r,vertCRS:e.vertCRS})}write(e,t){return t={origin:"web-scene",...t},super.write(e,t)}static fromJSON(e){if(!e)return null;const t=new i;return t.read(e,{origin:"web-scene"}),t}};function g(e,t){return new p.Z("height-unit:unsupported",`Height unit of value '${e}' is not supported`,t)}(0,s._)([(0,u.Cb)({type:h.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:m,default:"ellipsoidal"}}}})],b.prototype,"heightModel",void 0),(0,s._)([(0,y.c)("web-scene","heightModel")],b.prototype,"writeHeightModel",null),(0,s._)([(0,d.r)(["web-scene","service"],"heightModel")],b.prototype,"readHeightModel",null),(0,s._)([(0,u.Cb)({type:f.apiValues,constructOnly:!0,json:{origins:{"web-scene":{type:f.jsonValues,write:f.write}}}})],b.prototype,"heightUnit",void 0),(0,s._)([(0,d.r)("web-scene","heightUnit")],b.prototype,"readHeightUnit",null),(0,s._)([(0,d.r)("service","heightUnit")],b.prototype,"readHeightUnitService",null),(0,s._)([(0,u.Cb)({type:String,constructOnly:!0,json:{origins:{"web-scene":{write:!0}}}})],b.prototype,"vertCRS",void 0),(0,s._)([(0,d.r)("service","vertCRS",["vertCRS","ellipsoid","geoid"])],b.prototype,"readVertCRS",null),b=i=(0,s._)([(0,c.j)("esri.geometry.HeightModelInfo")],b);const v=b},67284:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Ht});var i,s=r(43697),o=r(51773),n=(r(16050),r(12501),r(95088),r(79056),r(5499),r(84382)),a=r(30687),l=r(91423),p=r(32400),u=r(3172),d=r(78223),c=r(80539),y=r(20102),h=r(61247),m=r(80442),f=r(35454),b=r(92604),g=r(70586),v=r(16453),w=r(78286),_=r(95330),C=r(17452),S=r(5600),I=(r(67676),r(90578)),x=r(71715),F=r(52011),E=r(30556),T=r(63213),j=r(96674),O=r(22974),M=r(75215);let R=i=class extends j.wq{constructor(e){super(e),this.expression=null,this.name=null,this.returnType="boolean",this.title=null}clone(){return new i({name:this.name,title:this.title,expression:this.expression,returnType:this.returnType})}};(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],R.prototype,"expression",void 0),(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],R.prototype,"name",void 0),(0,s._)([(0,S.Cb)({type:["boolean"],json:{write:!0}})],R.prototype,"returnType",void 0),(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],R.prototype,"title",void 0),R=i=(0,s._)([(0,F.j)("esri.form.ExpressionInfo")],R);const q=R;let D=class extends j.wq{constructor(e){super(e),this.description=null,this.label=null,this.type=null,this.visibilityExpression=null}};(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],D.prototype,"description",void 0),(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],D.prototype,"label",void 0),(0,s._)([(0,S.Cb)()],D.prototype,"type",void 0),(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],D.prototype,"visibilityExpression",void 0),D=(0,s._)([(0,F.j)("esri.form.elements.Element")],D);const L=D;var Z;let A=Z=class extends j.wq{constructor(e){super(e),this.type=null}clone(){return new Z({type:this.type})}};(0,s._)([(0,S.Cb)({type:["attachment","audio","document","image","signature","video"],json:{write:!0}})],A.prototype,"type",void 0),A=Z=(0,s._)([(0,F.j)("esri.form.elements.inputs.AttachmentInput")],A);const P=A;var G;let N=G=class extends L{constructor(e){super(e),this.attachmentKeyword=null,this.editable=!0,this.input=null,this.type="attachment"}clone(){return new G({attachmentKeyword:this.attachmentKeyword,description:this.description,editable:this.editable,input:this.input,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],N.prototype,"attachmentKeyword",void 0),(0,s._)([(0,S.Cb)({type:Boolean,json:{write:!0}})],N.prototype,"editable",void 0),(0,s._)([(0,S.Cb)({type:P,json:{read:{source:"inputType"},write:{target:"inputType"}}})],N.prototype,"input",void 0),(0,s._)([(0,S.Cb)({type:["attachment"],json:{read:!1,write:!0}})],N.prototype,"type",void 0),N=G=(0,s._)([(0,F.j)("esri.form.elements.AttachmentElement")],N);const V=N;let k=class extends j.wq{constructor(e){super(e),this.type=null}};(0,s._)([(0,S.Cb)()],k.prototype,"type",void 0),k=(0,s._)([(0,F.j)("esri.form.elements.inputs.Input")],k);const Q=k;let U=class extends Q{constructor(e){super(e),this.maxLength=null,this.minLength=0}};(0,s._)([(0,S.Cb)({type:Number,json:{write:!0}})],U.prototype,"maxLength",void 0),(0,s._)([(0,S.Cb)({type:Number,json:{write:!0}})],U.prototype,"minLength",void 0),U=(0,s._)([(0,F.j)("esri.form.elements.inputs.TextInput")],U);const B=U;var J;let W=J=class extends B{constructor(e){super(e),this.type="barcode-scanner"}clone(){return new J({maxLength:this.maxLength,minLength:this.minLength})}};(0,s._)([(0,S.Cb)({type:["barcode-scanner"],json:{read:!1,write:!0}})],W.prototype,"type",void 0),W=J=(0,s._)([(0,F.j)("esri.form.elements.inputs.BarcodeScannerInput")],W);const z=W;var H;let $=H=class extends Q{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!1,this.type="combo-box"}clone(){return new H({showNoValueOption:this.showNoValueOption,noValueOptionLabel:this.noValueOptionLabel})}};(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],$.prototype,"noValueOptionLabel",void 0),(0,s._)([(0,S.Cb)({type:Boolean,json:{write:!0}})],$.prototype,"showNoValueOption",void 0),(0,s._)([(0,S.Cb)({type:["combo-box"],json:{read:!1,write:!0}})],$.prototype,"type",void 0),$=H=(0,s._)([(0,F.j)("esri.form.elements.inputs.ComboBoxInput")],$);const K=$;var Y;function X(e){return null!=e?new Date(e):null}function ee(e){return e?e.getTime():null}let te=Y=class extends Q{constructor(e){super(e),this.includeTime=!1,this.max=null,this.min=null,this.type="datetime-picker"}readMax(e,t){return X(t.max)}writeMax(e,t){t.max=ee(e)}readMin(e,t){return X(t.min)}writeMin(e,t){t.min=ee(e)}clone(){return new Y({includeTime:this.includeTime,max:this.max,min:this.min,type:this.type})}};(0,s._)([(0,S.Cb)({type:Boolean,json:{write:!0}})],te.prototype,"includeTime",void 0),(0,s._)([(0,S.Cb)({type:Date,json:{type:Number,write:!0}})],te.prototype,"max",void 0),(0,s._)([(0,x.r)("max")],te.prototype,"readMax",null),(0,s._)([(0,E.c)("max")],te.prototype,"writeMax",null),(0,s._)([(0,S.Cb)({type:Date,json:{type:Number,write:!0}})],te.prototype,"min",void 0),(0,s._)([(0,x.r)("min")],te.prototype,"readMin",null),(0,s._)([(0,E.c)("min")],te.prototype,"writeMin",null),(0,s._)([(0,S.Cb)({type:["datetime-picker"],json:{read:!1,write:!0}})],te.prototype,"type",void 0),te=Y=(0,s._)([(0,F.j)("esri.form.elements.inputs.DateTimePickerInput")],te);const re=te;var ie;let se=ie=class extends Q{constructor(e){super(e),this.noValueOptionLabel=null,this.showNoValueOption=!1,this.type="radio-buttons"}clone(){return new ie({noValueOptionLabel:this.noValueOptionLabel,showNoValueOption:this.showNoValueOption})}};(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],se.prototype,"noValueOptionLabel",void 0),(0,s._)([(0,S.Cb)({type:Boolean,json:{write:!0}})],se.prototype,"showNoValueOption",void 0),(0,s._)([(0,S.Cb)({type:["radio-buttons"],json:{read:!1,write:!0}})],se.prototype,"type",void 0),se=ie=(0,s._)([(0,F.j)("esri.form.elements.inputs.RadioButtonsInput")],se);const oe=se;var ne;let ae=ne=class extends Q{constructor(e){super(e),this.offValue=null,this.onValue=null,this.type="switch"}clone(){return new ne({offValue:this.offValue,onValue:this.onValue})}};(0,s._)([(0,S.Cb)({type:[String,Number],json:{write:!0}})],ae.prototype,"offValue",void 0),(0,s._)([(0,S.Cb)({type:[String,Number],json:{write:!0}})],ae.prototype,"onValue",void 0),(0,s._)([(0,S.Cb)({type:["switch"],json:{read:!1,write:!0}})],ae.prototype,"type",void 0),ae=ne=(0,s._)([(0,F.j)("esri.form.elements.inputs.SwitchInput")],ae);const le=ae;var pe;let ue=pe=class extends B{constructor(e){super(e),this.type="text-area"}clone(){return new pe({maxLength:this.maxLength,minLength:this.minLength})}};(0,s._)([(0,S.Cb)({type:["text-area"],json:{read:!1,write:!0}})],ue.prototype,"type",void 0),ue=pe=(0,s._)([(0,F.j)("esri.form.elements.inputs.TextAreaInput")],ue);const de=ue;var ce;let ye=ce=class extends B{constructor(e){super(e),this.type="text-box"}clone(){return new ce({maxLength:this.maxLength,minLength:this.minLength})}};(0,s._)([(0,S.Cb)({type:["text-box"],json:{read:!1,write:!0}})],ye.prototype,"type",void 0),ye=ce=(0,s._)([(0,F.j)("esri.form.elements.inputs.TextBoxInput")],ye);const he={base:Q,key:"type",typeMap:{"barcode-scanner":z,"combo-box":K,"datetime-picker":re,"radio-buttons":oe,switch:le,"text-area":de,"text-box":ye}};var me,fe=r(72729);let be=me=class extends L{constructor(e){super(e),this.domain=null,this.editable=!0,this.editableExpression=null,this.fieldName=null,this.hint=null,this.input=null,this.requiredExpression=null,this.type="field",this.valueExpression=null}clone(){return new me({description:this.description,domain:this.domain,editable:this.editable,editableExpression:this.editableExpression,fieldName:this.fieldName,hint:this.hint,input:this.input,label:this.label,requiredExpression:this.requiredExpression,valueExpression:this.valueExpression,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,S.Cb)({types:fe.V5,json:{read:{reader:fe.im},write:!0}})],be.prototype,"domain",void 0),(0,s._)([(0,S.Cb)({type:Boolean,json:{write:!0}})],be.prototype,"editable",void 0),(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],be.prototype,"editableExpression",void 0),(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],be.prototype,"fieldName",void 0),(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],be.prototype,"hint",void 0),(0,s._)([(0,S.Cb)({types:he,json:{read:{source:"inputType"},write:{target:"inputType"}}})],be.prototype,"input",void 0),(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],be.prototype,"requiredExpression",void 0),(0,s._)([(0,S.Cb)({type:String,json:{read:!1,write:!0}})],be.prototype,"type",void 0),(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],be.prototype,"valueExpression",void 0),be=me=(0,s._)([(0,F.j)("esri.form.elements.FieldElement")],be);const ge=be;var ve,we=r(44729);let _e=ve=class extends L{constructor(e){super(e),this.displayCount=null,this.displayType="list",this.editable=!0,this.orderByFields=null,this.relationshipId=null,this.type="relationship"}clone(){return new ve({description:this.description,displayCount:this.displayCount,displayType:this.displayType,editable:this.editable,label:this.label,orderByFields:(0,O.d9)(this.orderByFields),relationshipId:this.relationshipId,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,S.Cb)({type:Number,json:{write:!0}})],_e.prototype,"displayCount",void 0),(0,s._)([(0,S.Cb)({type:["list"],json:{write:!0}})],_e.prototype,"displayType",void 0),(0,s._)([(0,S.Cb)({type:Boolean,json:{write:!0}})],_e.prototype,"editable",void 0),(0,s._)([(0,S.Cb)({type:[we.Z],json:{write:!0}})],_e.prototype,"orderByFields",void 0),(0,s._)([(0,S.Cb)({type:Number,json:{write:!0}})],_e.prototype,"relationshipId",void 0),(0,s._)([(0,S.Cb)({type:["relationship"],json:{read:!1,write:!0}})],_e.prototype,"type",void 0),_e=ve=(0,s._)([(0,F.j)("esri.form.elements.RelationshipElement")],_e);const Ce=_e;function Se(e){return{typesWithGroup:{base:L,key:"type",typeMap:{attachment:V,field:ge,group:e,relationship:Ce}},typesWithoutGroup:{base:L,key:"type",typeMap:{attachment:V,field:ge,relationship:Ce}}}}function Ie(e,t,r=!0){if(!e)return null;const i=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>i[e.type])).map((e=>i[e.type].fromJSON(e)))}function xe(e,t,r=!0){if(!e)return null;const i=r?t.typesWithGroup.typeMap:t.typesWithoutGroup.typeMap;return e.filter((e=>i[e.type])).map((e=>e.toJSON()))}function Fe(e,t,r=!0){return e?e.map((e=>(0,M.N7)(r?t.typesWithGroup:t.typesWithoutGroup,e))):null}var Ee;let Te=Ee=class extends L{constructor(e){super(e),this.elements=null,this.initialState="expanded",this.type="group"}castElements(e){return Fe(e,je,!1)}readElements(e,t){return Ie(t.formElements,je,!1)}writeElements(e,t){t.formElements=xe(e,je,!1)}clone(){return new Ee({description:this.description,elements:(0,O.d9)(this.elements),initialState:this.initialState,label:this.label,visibilityExpression:this.visibilityExpression})}};(0,s._)([(0,S.Cb)({json:{write:!0}})],Te.prototype,"elements",void 0),(0,s._)([(0,I.p)("elements")],Te.prototype,"castElements",null),(0,s._)([(0,x.r)("elements",["formElements"])],Te.prototype,"readElements",null),(0,s._)([(0,E.c)("elements")],Te.prototype,"writeElements",null),(0,s._)([(0,S.Cb)({type:["collapsed","expanded"],json:{write:!0}})],Te.prototype,"initialState",void 0),(0,s._)([(0,S.Cb)({type:String,json:{read:!1,write:!0}})],Te.prototype,"type",void 0),Te=Ee=(0,s._)([(0,F.j)("esri.form.elements.GroupElement")],Te);const je=Se(Te);var Oe;const Me=Se(Te);let Re=Oe=class extends j.wq{constructor(e){super(e),this.description=null,this.elements=null,this.expressionInfos=null,this.title=null}castElements(e){return Fe(e,Me)}readElements(e,t){return Ie(t.formElements,Me)}writeElements(e,t){t.formElements=xe(e,Me)}clone(){return new Oe({description:this.description,expressionInfos:(0,O.d9)(this.expressionInfos),elements:(0,O.d9)(this.elements),title:this.title})}};(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],Re.prototype,"description",void 0),(0,s._)([(0,S.Cb)({json:{write:!0}})],Re.prototype,"elements",void 0),(0,s._)([(0,I.p)("elements")],Re.prototype,"castElements",null),(0,s._)([(0,x.r)("elements",["formElements"])],Re.prototype,"readElements",null),(0,s._)([(0,E.c)("elements")],Re.prototype,"writeElements",null),(0,s._)([(0,S.Cb)({type:[q],json:{write:!0}})],Re.prototype,"expressionInfos",void 0),(0,s._)([(0,S.Cb)({type:String,json:{write:!0}})],Re.prototype,"title",void 0),Re=Oe=(0,s._)([(0,F.j)("esri.form.FormTemplate")],Re);const qe=Re;var De=r(6570),Le=r(79235),Ze=r(82971),Ae=r(29600),Pe=(r(66577),r(1692)),Ge=r(3920),Ne=r(83379),Ve=r(609),ke=r(78346),Qe=r(52421),Ue=r(59431),Be=r(28694),Je=r(74889),We=r(17332),ze=r(86973);let He=0;const $e=b.Z.getLogger("esri.layers.graphics.sources.MemorySource");let Ke=class extends(Ne.Z.LoadableMixin((0,Ve.v)((0,Ge.p)(c.Z)))){constructor(e){super(e),this._idToClientGraphic=null,this.type="memory"}load(e){const t=(0,g.pC)(e)?e.signal:null;return this.addResolvingPromise(this._startWorker(t)),Promise.resolve(this)}destroy(){var e;null==(e=this._connection)||e.close(),this._connection=null}get workerGeometryType(){var e;const t=null==(e=this.layer)?void 0:e.geometryType;return t?this._geometryTypeRequiresClientGraphicMapping(t)?"polygon":t:null}applyEdits(e){return this.load().then((()=>this._applyEdits(e)))}openPorts(){return this.load().then((()=>this._connection.openPorts()))}async queryFeatures(e,t={}){await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);(0,Be.p)(e,this.layer.spatialReference,r);const i=Je.default.fromJSON(r);if(!this._requiresClientGraphicMapping())return i;const s=this.layer.objectIdField;for(const e of i.features){const t=e.attributes[s],r=this._idToClientGraphic.get(t);r&&(e.geometry=r.geometry)}return i.geometryType=this.layer.geometryType,i}async queryFeaturesJSON(e,t={}){if(this._requiresClientGraphicMapping())throw new y.Z("query-features-json:unsupported","Cannot query in JSON format for client only geometry types (mesh and extent)");await this.load(t);const r=await this._connection.invoke("queryFeatures",e?e.toJSON():null,t);return(0,Be.p)(e,this.layer.spatialReference,r),r}queryFeatureCount(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryFeatureCount",e?e.toJSON():null,t)))}queryObjectIds(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryObjectIds",e?e.toJSON():null,t)))}queryExtent(e,t={}){return this.load(t).then((()=>this._connection.invoke("queryExtent",e?e.toJSON():null,t))).then((e=>({count:e.count,extent:De.Z.fromJSON(e.extent)})))}querySnapping(e,t={}){return this.load(t).then((()=>this._connection.invoke("querySnapping",e,t)))}async _applyEdits(e){if(!this._connection)throw new y.Z("feature-layer-source:edit-failure","Memory source not loaded");const t=this.layer.objectIdField;let r=null;const i=[],s=[];await Promise.all([this._prepareClientMapping(e.addFeatures,null),this._prepareClientMapping(e.updateFeatures,null)]);const o=e=>"objectId"in e&&null!=e.objectId?e.objectId:"attributes"in e&&null!=e.attributes[t]?e.attributes[t]:null;if(e.addFeatures&&(r=this._prepareAddFeatures(e.addFeatures)),e.deleteFeatures)for(const t of e.deleteFeatures){const e=o(t);null!=e&&i.push(e)}const n=e.updateFeatures&&this._idToClientGraphic?new Map:null;if(e.updateFeatures)for(const t of e.updateFeatures)if(s.push(this._serializeFeature(t)),n){const e=o(t);null!=e&&n.set(e,t)}(0,Ue.P)(r?r.features:null,s,this.layer.spatialReference);const{fullExtent:a,featureEditResults:l}=await this._connection.invoke("applyEdits",{adds:r?r.features:[],updates:s,deletes:i});return this.fullExtent=a,r&&r.finish(l.uidToObjectId),this._updateClientGraphicIds(n,l),this._createEditsResult(l)}async _prepareClientMapping(e,t){if("mesh"!==this.layerOrSourceGeometryType||(0,g.Wi)(e))return;const r=[];for(const{geometry:i}of e)!(0,g.pC)(i)||"mesh"!==i.type||i.hasExtent||i.loaded||r.push(i.load({signal:t}));r.length&&await Promise.all(r)}_updateClientGraphicIds(e,t){if(this._idToClientGraphic){if(e)for(const r of t.updateResults){if(!r.success)continue;const t=e.get(r.objectId);null!=t&&this._addIdToClientGraphic(t)}for(const e of t.deleteResults)e.success&&this._idToClientGraphic.delete(e.objectId)}}_createEditsResult(e){return{addFeatureResults:e.addResults?e.addResults.map(this._createFeatureEditResult,this):[],updateFeatureResults:e.updateResults?e.updateResults.map(this._createFeatureEditResult,this):[],deleteFeatureResults:e.deleteResults?e.deleteResults.map(this._createFeatureEditResult,this):[],addAttachmentResults:[],updateAttachmentResults:[],deleteAttachmentResults:[]}}_createFeatureEditResult(e){const t=!0===e.success?null:e.error||{code:void 0,description:void 0};return{objectId:e.objectId,globalId:e.globalId,error:t?new y.Z("feature-layer-source:edit-failure",t.description,{code:t.code}):null}}_prepareAddFeatures(e){const t=new Map,r=new Array(e.length);let i=null;for(let s=0;s<e.length;s++){const o=e[s],n=this._serializeFeature(o);!i&&(0,g.pC)(o.geometry)&&(i=o.geometry.type),r[s]=n,t.set(`${n.uid}`,o)}const s=this;return{features:r,inferredGeometryType:i,finish(e){const r=s.sourceJSON.objectIdField;for(const i in e){const o=e[i],n=t.get(i);n&&(n.attributes||(n.attributes={}),-1===o?delete n.attributes[r]:n.attributes[r]=o,s._addIdToClientGraphic(n))}}}}_addIdToClientGraphic(e){if(!this._idToClientGraphic)return;const t=this.sourceJSON.objectIdField,r=e.attributes&&e.attributes[t];null!=r&&this._idToClientGraphic.set(r,e)}get layerOrSourceGeometryType(){var e,t,r;return null!=(e=null==(t=this.layer)?void 0:t.geometryType)?e:null==(r=this.sourceJSON)?void 0:r.geometryType}_requiresClientGraphicMapping(){return this._geometryTypeRequiresClientGraphicMapping(this.layerOrSourceGeometryType)}_geometryRequiresClientGraphicMapping(e){return this._geometryTypeRequiresClientGraphicMapping(e.type)}_geometryTypeRequiresClientGraphicMapping(e){return"mesh"===e||"multipatch"===e||"extent"===e}_serializeFeature(e){const{attributes:t}=e,r=this._geometryForSerialization(e),i=(He++).toString();return r?{uid:i,geometry:r.toJSON(),attributes:t}:{uid:i,attributes:t}}_geometryForSerialization(e){const{geometry:t}=e;return(0,g.Wi)(t)?null:this._geometryRequiresClientGraphicMapping(t)?t.extent?We.Z.fromExtent(t.extent):null:t}async _startWorker(e){this._connection=await(0,ke.bA)("MemorySourceWorker",{strategy:(0,m.Z)("feature-layers-workers")?"dedicated":"local",signal:e});const{fields:t,spatialReference:r,objectIdField:i,hasM:s,hasZ:o,timeInfo:n}=this.layer,a="defaults"===this.layer.originOf("spatialReference");await this._prepareClientMapping(this.items,e);const l=this._prepareAddFeatures(this.items);this.handles.add(this.on("before-changes",(e=>{$e.error("Source modifications will not propagate after layer has been loaded. Please use .applyEdits() instead"),e.preventDefault()})));const p={features:l.features,fields:t&&t.map((e=>e.toJSON())),geometryType:ze.P$.toJSON(this.workerGeometryType),hasM:"mesh"!==this.layerOrSourceGeometryType&&s,hasZ:"mesh"===this.layerOrSourceGeometryType||o,objectIdField:i,spatialReference:a?null:r&&r.toJSON(),timeInfo:n?n.toJSON():null},u=await this._connection.invoke("load",p,{signal:e});for(const e of u.warnings)$e.warn(e.message,{layer:this.layer,warning:e});u.featureErrors.length&&$e.warn(`Encountered ${u.featureErrors.length} validation errors while loading features`,u.featureErrors);const d=u.layerDefinition;this._geometryTypeRequiresClientGraphicMapping(l.inferredGeometryType)&&(d.geometryType=ze.P$.toJSON(l.inferredGeometryType)),this.sourceJSON=d,this._requiresClientGraphicMapping()&&(this._idToClientGraphic=new Map),l.finish(u.assignedObjectIds)}};(0,s._)([(0,Qe.c)({Type:Pe.Z,ensureType:(0,M.se)(Pe.Z)})],Ke.prototype,"itemType",void 0),(0,s._)([(0,S.Cb)()],Ke.prototype,"type",void 0),(0,s._)([(0,S.Cb)({constructOnly:!0})],Ke.prototype,"layer",void 0),(0,s._)([(0,S.Cb)({readOnly:!0})],Ke.prototype,"workerGeometryType",null),(0,s._)([(0,S.Cb)()],Ke.prototype,"sourceJSON",void 0),Ke=(0,s._)([(0,F.j)("esri.layers.graphics.sources.MemorySource")],Ke);const Ye=Ke;var Xe,et=r(54295),tt=r(17287),rt=r(71612),it=r(17017),st=r(69637),ot=r(38009),nt=r(68825),at=r(16859),lt=r(34760),pt=r(72965),ut=r(28294),dt=r(66677),ct=r(21506);let yt=Xe=class extends j.wq{constructor(e){super(e)}clone(){const{name:e,fields:t,isAscending:r,isUnique:i,description:s}=this;return new Xe({name:e,fields:t,isAscending:r,isUnique:i,description:s})}};(0,s._)([(0,S.Cb)({constructOnly:!0})],yt.prototype,"name",void 0),(0,s._)([(0,S.Cb)({constructOnly:!0})],yt.prototype,"fields",void 0),(0,s._)([(0,S.Cb)({constructOnly:!0})],yt.prototype,"isAscending",void 0),(0,s._)([(0,S.Cb)({constructOnly:!0})],yt.prototype,"isUnique",void 0),(0,s._)([(0,S.Cb)({constructOnly:!0})],yt.prototype,"description",void 0),yt=Xe=(0,s._)([(0,F.j)("esri.layers.support.FeatureIndex")],yt);var ht=r(55785),mt=r(70082),ft=r(16451),bt=r(53518),gt=r(35671),vt=r(67900);let wt=class extends j.wq{constructor(e){super(e),this.shapeAreaField=null,this.shapeLengthField=null,this.units=null}};(0,s._)([(0,S.Cb)({type:String,json:{read:{source:"shapeAreaFieldName"}}})],wt.prototype,"shapeAreaField",void 0),(0,s._)([(0,S.Cb)({type:String,json:{read:{source:"shapeLengthFieldName"}}})],wt.prototype,"shapeLengthField",void 0),(0,s._)([(0,S.Cb)({type:String,json:{read:e=>vt.gV.read(e)||vt.Jo.read(e)}})],wt.prototype,"units",void 0),wt=(0,s._)([(0,F.j)("esri.layers.support.GeometryFieldsInfo")],wt);const _t=wt;var Ct=r(2319),St=r(30707),It=r(56765);const xt=new f.Xn({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),Ft=new f.Xn({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let Et=class extends j.wq{constructor(e){super(e),this.cardinality=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,s._)([(0,S.Cb)({json:{read:xt.read,write:xt.write}})],Et.prototype,"cardinality",void 0),(0,s._)([(0,S.Cb)({json:{read:!0,write:!0}})],Et.prototype,"composite",void 0),(0,s._)([(0,S.Cb)({json:{read:!0,write:!0}})],Et.prototype,"id",void 0),(0,s._)([(0,S.Cb)({json:{read:!0,write:!0}})],Et.prototype,"keyField",void 0),(0,s._)([(0,S.Cb)({json:{read:!0,write:!0}})],Et.prototype,"keyFieldInRelationshipTable",void 0),(0,s._)([(0,S.Cb)({json:{read:!0,write:!0}})],Et.prototype,"name",void 0),(0,s._)([(0,S.Cb)({json:{read:!0,write:!0}})],Et.prototype,"relatedTableId",void 0),(0,s._)([(0,S.Cb)({json:{read:!0,write:!0}})],Et.prototype,"relationshipTableId",void 0),(0,s._)([(0,S.Cb)({json:{read:Ft.read,write:Ft.write}})],Et.prototype,"role",void 0),Et=(0,s._)([(0,F.j)("esri.layers.support.Relationship")],Et);const Tt=Et;var jt=r(30547),Ot=r(10158),Mt=r(40555),Rt=r(56545),qt=r(57444),Dt=r(75935),Lt=r(28141),Zt=r(32163);const At=new f.Xn({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"}),Pt={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"},Gt="FeatureLayer",Nt=b.Z.getLogger("esri.layers.FeatureLayer");function Vt(e){return e&&e instanceof c.Z}function kt(e,t,r){return!!(e&&e.hasOwnProperty(t)?e[t]:r)}function Qt(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}function Ut(e){var t;const r=null==e||null==(t=e.supportedSpatialAggregationStatistics)?void 0:t.map((e=>e.toLowerCase()));return{envelope:!(null==r||!r.includes("envelopeaggregate")),centroid:!(null==r||!r.includes("centroidaggregate")),convexHull:!(null==r||!r.includes("convexhullaggregate"))}}const Bt=(0,bt.v)();function Jt(e,t,r){const i=!(null==r||!r.writeLayerSchema);return{enabled:i,ignoreOrigin:i}}let Wt=class extends((0,st.b)((0,rt.h)((0,nt.c)((0,ut.n)((0,pt.M)((0,lt.Q)((0,tt.Y)((0,ot.q)((0,at.I)((0,v.R)((0,it.N)((0,et.V)(Ae.Z))))))))))))){constructor(...e){super(...e),this._handles=new h.Z,this.capabilities=null,this.charts=null,this.copyright=null,this.datesInUnknownTimezone=!1,this.displayField=null,this.definitionExpression=null,this.dynamicDataSource=null,this.editFieldsInfo=null,this.editingInfo=null,this.elevationInfo=null,this.featureReduction=null,this.fields=null,this.fieldsIndex=null,this.floorInfo=null,this.formTemplate=null,this.fullExtent=null,this.gdbVersion=null,this.geometryFieldsInfo=null,this.geometryType=null,this.hasM=void 0,this.hasZ=void 0,this.heightModelInfo=null,this.historicMoment=null,this.infoFor3D=null,this.isTable=!1,this.labelsVisible=!0,this.labelingInfo=null,this.layerId=void 0,this.legendEnabled=!0,this.minScale=0,this.maxScale=0,this.globalIdField=null,this.objectIdField=null,this.outFields=null,this.path=null,this.popupEnabled=!0,this.popupTemplate=null,this.relationships=null,this.sourceJSON=null,this.returnM=void 0,this.returnZ=void 0,this.screenSizePerspectiveEnabled=!0,this.serviceDefinitionExpression=null,this.spatialReference=Ze.Z.WGS84,this.subtypeCode=null,this.templates=null,this.timeInfo=null,this.title=null,this.sublayerTitleMode="item-title",this.trackIdField=null,this.type="feature",this.typeIdField=null,this.types=null,this.indexes=new(c.Z.ofType(yt)),this.userIsAdmin=!1,this.version=void 0,this.visible=!0}destroy(){var e;null==(e=this.source)||e.destroy(),this._handles=(0,g.SC)(this._handles)}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=(0,g.pC)(e)?e.signal:null;if(this.portalItem&&this.portalItem.loaded&&this.source)return void this.addResolvingPromise(this.createGraphicsSource(t).then((e=>this._initLayerProperties(e))));const r=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection"]},e).catch(_.r9).then((async()=>{if(this.url&&null==this.layerId&&/FeatureServer|MapServer\/*$/i.test(this.url)){const e=await this._fetchFirstLayerId(t);null!=e&&(this.layerId=e)}if(!this.url&&!this._hasMemorySource())throw new y.Z("feature-layer:missing-url-or-source","Feature layer must be created with either a url or a source");return this._initLayerProperties(await this.createGraphicsSource(t))})).then((()=>this.finishLoadEditablePortalLayer(e)));return this.addResolvingPromise(r),Promise.resolve(this)}readCapabilities(e,t){return t=t.layerDefinition||t,{attachment:this._readAttachmentCapabilities(t.attachmentProperties),data:this._readDataCapabilities(t),metadata:this._readMetadataCapabilities(t),operations:this._readOperationsCapabilities(t.capabilities||e,t),query:this._readQueryCapabilities(t),queryRelated:this._readQueryRelatedCapabilities(t),editing:this._readEditingCapabilities(t)}}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("dynamicDataSource"),this.commitProperty("timeExtent"),this.commitProperty("timeOffset"),this.commitProperty("geometryType"),this.commitProperty("gdbVersion"),this.commitProperty("historicMoment"),this.commitProperty("returnZ"),this.commitProperty("capabilities"),this.commitProperty("returnM"),(this._get("createQueryVersion")||0)+1}get editingEnabled(){return!(this.loaded&&!this.capabilities.operations.supportsEditing)&&(this._isOverridden("editingEnabled")?this._get("editingEnabled"):this._hasMemorySource()||this.userHasEditingPrivileges)}set editingEnabled(e){null!=e?this._override("editingEnabled",e):this._clearOverride("editingEnabled")}readEditingEnabled(e,t){return this._readEditingEnabled(t,!1)}readEditingEnabledFromWebMap(e,t,r){return this._readEditingEnabled(t,!0,r)}writeEditingEnabled(e,t){this._writeEditingEnabled(e,t,!1)}writeEditingEnabledToWebMap(e,t,r,i){this._writeEditingEnabled(e,t,!0,i)}readEditingInfo(e,t){const{editingInfo:r}=t;return r?{lastEditDate:null!=r.lastEditDate?new Date(r.lastEditDate):null}:null}readIsTable(e,t){return"Table"===(t=t&&t.layerDefinition||t).type||!t.geometryType}writeIsTable(e,t,r,i){null!=i&&i.writeLayerSchema&&(0,w.RB)(r,e?"Table":"Feature Layer",t)}readMinScale(e,t){return t.effectiveMinScale||e||0}readMaxScale(e,t){return t.effectiveMaxScale||e||0}readGlobalIdFieldFromService(e,t){if((t=t.layerDefinition||t).globalIdField)return t.globalIdField;if(t.fields)for(const e of t.fields)if("esriFieldTypeGlobalID"===e.type)return e.name}readObjectIdFieldFromService(e,t){if((t=t.layerDefinition||t).objectIdField)return t.objectIdField;if(t.fields)for(const e of t.fields)if("esriFieldTypeOID"===e.type)return e.name}get parsedUrl(){const e=this.url?(0,C.mN)(this.url):null;return null!=e&&(null!=this.dynamicDataSource?e.path=(0,C.v_)(e.path,"dynamicLayer"):null!=this.layerId&&(e.path=(0,C.v_)(e.path,this.layerId.toString()))),e}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,gt.YN)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){const i=(t=t.layerDefinition||t).drawingInfo&&t.drawingInfo.renderer||void 0;if(i){const e=(0,l.a)(i,t,r)||void 0;return e||Nt.error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}if(t.defaultSymbol)return t.types&&t.types.length?new a.Z({defaultSymbol:zt(t.defaultSymbol,t,r),field:t.typeIdField,uniqueValueInfos:t.types.map((e=>({id:e.id,symbol:zt(e.symbol,e,r)})))}):new n.Z({symbol:zt(t.defaultSymbol,t,r)})}set source(e){const t=this._get("source");t!==e&&(Vt(t)&&this._resetMemorySource(t),Vt(e)&&this._initMemorySource(e),this._set("source",e))}castSource(e){return e?Array.isArray(e)||e instanceof c.Z?new Ye({layer:this,items:e}):e:null}readSource(e,t){const r=Je.default.fromJSON(t.featureSet);return new Ye({layer:this,items:r&&r.features||[]})}readServiceDefinitionExpression(e,t){return t.definitionQuery||t.definitionExpression}readTemplates(e,t){const r=t.editFieldsInfo,i=r&&r.creatorField,s=r&&r.editorField;return e=e&&e.map((e=>mt.Z.fromJSON(e))),this._fixTemplates(e,i),this._fixTemplates(e,s),e}readTitle(e,t){const r=t.layerDefinition&&t.layerDefinition.name||t.name,i=t.title||t.layerDefinition&&t.layerDefinition.title;if(r){const e=this.portalItem&&this.portalItem.title;if("item-title"===this.sublayerTitleMode)return this.url?(0,dt.a7)(this.url,r):r;let t=r;if(!t&&this.url){const e=(0,dt.Qc)(this.url);(0,g.pC)(e)&&(t=e.title)}if(!t)return;return"item-title-and-service-name"===this.sublayerTitleMode&&e&&e!==t&&(t=e+" - "+t),(0,dt.ld)(t)}if("item-title"===this.sublayerTitleMode&&i)return i}readTitleFromWebMap(e,t){return t.title||t.layerDefinition&&t.layerDefinition.name}readTypeIdField(e,t){let r=(t=t.layerDefinition||t).typeIdField;if(r&&t.fields){r=r.toLowerCase();const e=t.fields.find((e=>e.name.toLowerCase()===r));e&&(r=e.name)}return r}readTypes(e,t){e=(t=t.layerDefinition||t).types;const r=t.editFieldsInfo,i=r&&r.creatorField,s=r&&r.editorField;return e&&e.map((e=>(e=ft.Z.fromJSON(e),this._fixTemplates(e.templates,i),this._fixTemplates(e.templates,s),e)))}set url(e){const t=(0,dt.XG)({layer:this,url:e,nonStandardUrlAllowed:!0,logger:Nt});this._set("url",t.url),null!=t.layerId&&this._set("layerId",t.layerId)}writeUrl(e,t,r,i){(0,dt.wH)(this,e,null,t,i)}readVersion(e,t){return t.currentVersion?t.currentVersion:t.hasOwnProperty("capabilities")||t.hasOwnProperty("drawingInfo")||t.hasOwnProperty("hasAttachments")||t.hasOwnProperty("htmlPopupType")||t.hasOwnProperty("relationships")||t.hasOwnProperty("timeInfo")||t.hasOwnProperty("typeIdField")||t.hasOwnProperty("types")?10:9.3}readVisible(e,t){return t.layerDefinition&&null!=t.layerDefinition.defaultVisibility?!!t.layerDefinition.defaultVisibility:null!=t.visibility?!!t.visibility:void 0}addAttachment(e,t){return this.load().then((()=>this._checkAttachmentSupport(e))).then((()=>{if(!("addAttachment"in this.source))throw new y.Z(Gt,"Layer source does not support addAttachment capability");return this.source.addAttachment(e,t)}))}updateAttachment(e,t,r){return this.load().then((()=>this._checkAttachmentSupport(e))).then((()=>{if(!("updateAttachment"in this.source))throw new y.Z(Gt,"Layer source does not support updateAttachment capability");return this.source.updateAttachment(e,t,r)}))}async applyEdits(e,t){const i=await r.e(4720).then(r.bind(r,14720));return await this.load(),i.applyEdits(this,this.source,e,t)}on(e,t){return super.on(e,t)}createPopupTemplate(e){return(0,Zt.eZ)(this,e)}async createGraphicsSource(e){if(this._hasMemorySource())return this.source.load({signal:e});const{default:t}=await(0,_.Hl)(Promise.all([r.e(3942),r.e(7091),r.e(5051)]).then(r.bind(r,6502)),e);return new t({layer:this}).load({signal:e})}createQuery(){const e=new qt.Z,t=this.get("capabilities.data");e.dynamicDataSource=this.dynamicDataSource,e.gdbVersion=this.gdbVersion,e.historicMoment=this.historicMoment,e.returnGeometry=!0,t&&(t.supportsZ&&null!=this.returnZ&&(e.returnZ=this.returnZ),t.supportsM&&null!=this.returnM&&(e.returnM=this.returnM)),e.outFields=["*"],e.where=this.definitionExpression||"1=1";const{timeOffset:r,timeExtent:i}=this;return e.timeExtent=null!=r&&null!=i?i.offset(-r.value,r.unit):i||null,e.multipatchOption="multipatch"===this.geometryType?"xyFootprint":null,e}deleteAttachments(e,t){return this.load().then((()=>this._checkAttachmentSupport(e))).then((()=>{if(!("deleteAttachments"in this.source))throw new y.Z(Gt,"Layer source does not support deleteAttachments capability");return this.source.deleteAttachments(e,t)}))}fetchRecomputedExtents(e){return this.load({signal:null==e?void 0:e.signal}).then((()=>{if(this.source.fetchRecomputedExtents)return this.source.fetchRecomputedExtents(e);throw new y.Z(Gt,"Layer source does not support fetchUpdates capability")}))}getFeatureType(e){const{typeIdField:t,types:r}=this;if(!t||!e)return null;const i=e.attributes?e.attributes[t]:void 0;if(null==i)return null;let s=null;return r.some((e=>{const{id:t}=e;return null!=t&&(t.toString()===i.toString()&&(s=e),!!s)})),s}getFieldDomain(e,t){const r=t&&t.feature,i=this.getFeatureType(r);if(i){const t=i.domains&&i.domains[e];if(t&&"inherited"!==t.type)return t}return this._getLayerDomain(e)}getField(e){return this.fieldsIndex.get(e)}queryAttachments(e,t){return e=Rt.Z.from(e),this.load().then((()=>{if(!this.get("capabilities.data.supportsAttachment"))throw new y.Z(Gt,"this layer doesn't support attachments");const{attachmentTypes:t,objectIds:r,globalIds:i,num:s,size:o,start:n,where:a}=e;if(!this.get("capabilities.operations.supportsQueryAttachments")){const l=r&&r.length>1,p=t&&t.length,u=i&&i.length,d=o&&o.length;if(l||p||u||d||s||n||a)throw new y.Z(Gt,"when 'supportsQueryAttachments' is false, only objectIds of length 1 are supported",e)}if(!(r&&r.length||a))throw new y.Z(Gt,"'objectIds' or 'where' are required to perform attachment query",e);if(!("queryAttachments"in this.source))throw new y.Z(Gt,"Layer source does not support queryAttachments capability",e);return this.source.queryAttachments(e)}))}queryFeatures(e,t){return this.load().then((()=>this.source.queryFeatures(qt.Z.from(e)||this.createQuery(),t))).then((e=>{if(null!=e&&e.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this.load().then((()=>{if(this.source.queryObjectIds)return this.source.queryObjectIds(qt.Z.from(e)||this.createQuery(),t);throw new y.Z(Gt,"Layer source does not support queryObjectIds capability")}))}queryFeatureCount(e,t){return this.load().then((()=>{if(this.source.queryFeatureCount)return this.source.queryFeatureCount(qt.Z.from(e)||this.createQuery(),t);throw new y.Z(Gt,"Layer source does not support queryFeatureCount capability")}))}queryExtent(e,t){return this.load().then((()=>{if(this.source.queryExtent)return this.source.queryExtent(qt.Z.from(e)||this.createQuery(),t);throw new y.Z(Gt,"Layer source does not support queryExtent capability")}))}queryRelatedFeatures(e,t){return this.load().then((()=>{if("queryRelatedFeatures"in this.source)return this.source.queryRelatedFeatures(Dt.Z.from(e),t);throw new y.Z(Gt,"Layer source does not support queryRelatedFeatures capability")}))}queryRelatedFeaturesCount(e,t){return this.load().then((()=>{if("queryRelatedFeaturesCount"in this.source)return this.source.queryRelatedFeaturesCount(Dt.Z.from(e),t);throw new y.Z(Gt,"Layer source does not support queryRelatedFeaturesCount capability")}))}queryTopFeatures(e,t){return this.load().then((()=>{if("queryTopFeatures"in this.source&&this.get("capabilities.query.supportsTopFeaturesQuery"))return this.source.queryTopFeatures(Lt.Z.from(e),t).then((e=>{if(null!=e&&e.features)for(const t of e.features)t.layer=t.sourceLayer=this;return e}));throw new y.Z(Gt,"Layer source does not support queryTopFeatures capability")}))}queryTopObjectIds(e,t){return this.load().then((()=>{if("queryTopObjectIds"in this.source&&this.get("capabilities.query.supportsTopFeaturesQuery"))return this.source.queryTopObjectIds(Lt.Z.from(e),t);throw new y.Z(Gt,"Layer source does not support queryTopObjectIds capability")}))}queryTopFeaturesExtent(e,t){return this.load().then((()=>{if("queryTopExtents"in this.source&&this.get("capabilities.query.supportsTopFeaturesQuery"))return this.source.queryTopExtents(Lt.Z.from(e),t);throw new y.Z(Gt,"Layer source does not support queryTopExtents capability")}))}queryTopFeatureCount(e,t){return this.load().then((()=>{if("queryTopCount"in this.source&&this.get("capabilities.query.supportsTopFeaturesQuery"))return this.source.queryTopCount(Lt.Z.from(e),t);throw new y.Z(Gt,"Layer source does not support queryFeatureCount capability")}))}read(e,t){const r=e.featureCollection;if(r){const e=r.layers;e&&1===e.length&&(super.read(e[0],t),null!=r.showLegend&&super.read({showLegend:r.showLegend},t))}super.read(e,t),t&&"service"===t.origin&&this.revert(["objectIdField","fields","timeInfo","spatialReference"],"service")}write(e,t){var r,i;const s=(t={...t,writeLayerSchema:null!=(r=null==(i=t)?void 0:i.writeLayerSchema)?r:this._hasMemorySource()}).origin,o=t.layerContainerType,n=t.messages;if(this.isTable){if("web-scene"===s||"web-map"===s&&"tables"!==o)return n&&n.push(new y.Z("layer:unsupported",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a Table source cannot be written to web scenes and web maps`,{layer:this})),null;if(this._hasMemorySource())return n&&n.push(new y.Z("layer:unsupported",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using an in-memory Table source cannot be written to web scenes and web maps`,{layer:this})),null}else if(this.loaded&&"web-map"===s&&"tables"===o)return n&&n.push(new y.Z("layer:unsupported",`Layer (${this.title}, ${this.id}) of type '${this.declaredClass}' using a non-table source cannot be written to tables in web maps`,{layer:this})),null;return super.write(e,t)}_readEditingEnabled(e,t,r){var i;let s=null==(i=e.layerDefinition)?void 0:i.capabilities;return s?this._hasEditingCapability(s):(s=e.capabilities,t&&"web-map"===(null==r?void 0:r.origin)&&!this._hasMemorySource()&&s?this._hasEditingCapability(s):void 0)}_hasEditingCapability(e){return e.toLowerCase().split(",").map((e=>e.trim())).includes("editing")}_writeEditingEnabled(e,t,r,i){if(!e){var s,o;const e=null!=(s=this.capabilities)&&null!=(o=s.operations)&&o.supportsSync?"Query,Sync":"Query";(0,w.RB)("layerDefinition.capabilities",e,t),!r||null!=i&&i.writeLayerSchema||(t.capabilities=e)}}_checkAttachmentSupport(e){const{attributes:t}=e,{objectIdField:r}=this;return this.get("capabilities.data.supportsAttachment")?e?t?t[r]?void 0:Promise.reject(new y.Z(Gt,`feature is missing the identifying attribute ${r}`)):Promise.reject(new y.Z(Gt,"'attributes' are required on a feature to query attachments")):Promise.reject(new y.Z(Gt,"A feature is required to add/delete/update attachments")):Promise.reject(new y.Z(Gt,"this layer doesn't support attachments"))}_getLayerDomain(e){const t=this.fieldsIndex.get(e);return t?t.domain:null}_fetchFirstLayerId(e){return(0,u.default)(this.url,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then((e=>{const t=e.data;if(t)return Array.isArray(t.layers)&&t.layers.length>0?t.layers[0].id:Array.isArray(t.tables)&&t.tables.length>0?t.tables[0].id:void 0}))}async _initLayerProperties(e){return this._set("source",e),e.sourceJSON&&(this.sourceJSON=e.sourceJSON,this.read(e.sourceJSON,{origin:"service",url:this.parsedUrl})),this._verifySource(),this._verifyFields(),(0,gt.YN)(this.renderer,this.fieldsIndex),(0,gt.UF)(this.timeInfo,this.fieldsIndex),(0,Mt.y)(this,{origin:"service"})}async hasDataChanged(){var e;if(null!=(e=this.source)&&e.refresh)try{var t;const{dataChanged:e,updates:r}=await(null==(t=this.source)?void 0:t.refresh());if((0,g.pC)(r)&&(this.sourceJSON={...this.sourceJSON,...r},this.read(r,{origin:"service",url:this.parsedUrl})),e)return!0}catch{}if(this.definitionExpression)try{return(await async function(e,t){const{WhereClause:i}=await r.e(1534).then(r.bind(r,41534));return i.create(e,t)}(this.definitionExpression,this.fieldsIndex)).hasDateFunctions}catch{}return!1}_verifyFields(){const e=this.parsedUrl&&this.parsedUrl.path||"undefined";this.objectIdField||console.log("FeatureLayer: 'objectIdField' property is not defined (url: "+e+")"),this.isTable||this._hasMemorySource()||-1!==e.search(/\/FeatureServer\//i)||this.fields&&this.fields.some((function(e){return"geometry"===e.type}))||console.log("FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry (url: "+e+")")}_fixTemplates(e,t){e&&e.forEach((e=>{const r=e.prototype&&e.prototype.attributes;r&&t&&delete r[t]}))}_verifySource(){if(this._hasMemorySource()){if(this.url)throw new y.Z("feature-layer:mixed-source-and-url","FeatureLayer cannot be created with both an in-memory source and a url")}else if(!this.url)throw new y.Z("feature-layer:source-or-url-required","FeatureLayer requires either a url, a valid portal item or a source")}_initMemorySource(e){e.forEach((e=>{e.layer=this,e.sourceLayer=this})),this._handles.add([e.on("after-add",(e=>{e.item.layer=this,e.item.sourceLayer=this})),e.on("after-remove",(e=>{e.item.layer=null,e.item.sourceLayer=null}))],"fl-source")}_resetMemorySource(e){e.forEach((e=>{e.layer=null,e.sourceLayer=null})),this._handles.remove("fl-source")}_hasMemorySource(){return!(this.url||!this.source)}_readAttachmentCapabilities(e){const t={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1};return e&&Array.isArray(e)&&e.forEach((e=>{const r=Pt[e.name];r&&(t[r]=!!e.isEnabled)})),t}_readDataCapabilities(e){return{isVersioned:kt(e,"isDataVersioned",!1),supportsAttachment:kt(e,"hasAttachments",!1),supportsM:kt(e,"hasM",!1),supportsZ:kt(e,"hasZ",!1)}}_readMetadataCapabilities(e){return{supportsAdvancedFieldProperties:kt(e,"supportsFieldDescriptionProperty",!1)}}_readOperationsCapabilities(e,t){const r=e?e.toLowerCase().split(",").map((e=>e.trim())):[],i=r.includes("editing")&&!t.datesInUnknownTimezone;let s=i&&r.includes("create"),o=i&&r.includes("delete"),n=i&&r.includes("update");const a=r.includes("changetracking");return i&&!(s||o||n)&&(s=o=n=!0),{supportsCalculate:kt(t,"supportsCalculate",!1),supportsTruncate:kt(t,"supportsTruncate",!1),supportsValidateSql:kt(t,"supportsValidateSql",!1),supportsAdd:s,supportsDelete:o,supportsEditing:i,supportsChangeTracking:a,supportsQuery:r.includes("query"),supportsQueryAttachments:kt(t.advancedQueryCapabilities,"supportsQueryAttachments",!1),supportsResizeAttachments:kt(t,"supportsAttachmentsResizing",!1),supportsSync:r.includes("sync"),supportsUpdate:n,supportsExceedsLimitStatistics:kt(t,"supportsExceedsLimitStatistics",!1)}}_readQueryCapabilities(e){var t;const r=e.advancedQueryCapabilities,i=e.ownershipBasedAccessControlForFeatures,s=e.archivingInfo,o=null==(t=this.url)?void 0:t.includes("MapServer"),n=!(0,m.Z)("mapserver-pbf-enabled")&&o&&this.version<10.81,a=(e.supportedQueryFormats||"").split(",").reduce(((e,t)=>{const r=t.toLowerCase().trim();return r&&e.add(r),e}),new Set);return{supportsStatistics:kt(r,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:kt(r,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:kt(r,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:Ut(r),supportsCentroid:kt(r,"supportsReturningGeometryCentroid",!1),supportsDistance:kt(r,"supportsQueryWithDistance",!1),supportsDistinct:kt(r,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:kt(r,"supportsReturningQueryExtent",!1),supportsGeometryProperties:kt(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:kt(r,"supportsHavingClause",!1),supportsOrderBy:kt(r,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:kt(r,"supportsPagination",!1),supportsQuantization:kt(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:kt(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:kt(e,"supportsReturningQueryGeometry",!1),supportsResultType:kt(r,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:kt(r,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:kt(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:kt(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:kt(r,"supportsTopFeaturesQuery",!1),supportsQueryByOthers:kt(i,"allowOthersToQuery",!0),supportsHistoricMoment:kt(s,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:!n&&a.has("pbf"),supportsDisjointSpatialRelationship:kt(r,"supportsDisjointSpatialRel",!1),supportsCacheHint:kt(r,"supportsQueryWithCacheHint",!1),maxRecordCountFactor:Qt(e,"maxRecordCountFactor",void 0),maxRecordCount:Qt(e,"maxRecordCount",void 0),standardMaxRecordCount:Qt(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:Qt(e,"tileMaxRecordCount",void 0)}}_readQueryRelatedCapabilities(e){const t=e.advancedQueryCapabilities,r=kt(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:kt(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r}}_readEditingCapabilities(e){const t=e.ownershipBasedAccessControlForFeatures;return{supportsGeometryUpdate:kt(e,"allowGeometryUpdates",!0),supportsGlobalId:kt(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:kt(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:kt(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:kt(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:kt(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:kt(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:kt(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:kt(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:kt(t,"allowOthersToUpdate",!0)}}};(0,s._)([(0,S.Cb)({readOnly:!0,json:{read:!1}})],Wt.prototype,"capabilities",void 0),(0,s._)([(0,x.r)("service","capabilities",["advancedQueryCapabilities","allowGeometryUpdates","allowUpdateWithoutMValues","archivingInfo","capabilities","datesInUnknownTimezone","hasAttachments","hasM","hasZ","maxRecordCount","maxRecordCountFactor","ownershipBasedAccessControlForFeatures","standardMaxRecordCount","supportedQueryFormats","supportsAdvancedQueries","supportsApplyEditsWithGlobalIds","supportsAttachmentsByUploadId","supportsAttachmentsResizing","supportsCalculate","supportsCoordinatesQuantization","supportsExceedsLimitStatistics","supportsFieldDescriptionProperty","supportsQuantizationEditMode","supportsRollbackOnFailureParameter","supportsStatistics","supportsTruncate","supportsValidateSql","tileMaxRecordCount","useStandardizedQueries"])],Wt.prototype,"readCapabilities",null),(0,s._)([(0,S.Cb)({json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],Wt.prototype,"charts",void 0),(0,s._)([(0,S.Cb)({readOnly:!0})],Wt.prototype,"createQueryVersion",null),(0,s._)([(0,S.Cb)({type:String,json:{read:{source:"layerDefinition.copyrightText"},origins:{service:{read:{source:"copyrightText"}}}}})],Wt.prototype,"copyright",void 0),(0,s._)([(0,S.Cb)({type:Boolean})],Wt.prototype,"datesInUnknownTimezone",void 0),(0,s._)([(0,S.Cb)({type:String,json:{read:{source:"layerDefinition.displayField"},origins:{service:{read:{source:"displayField"}}}}})],Wt.prototype,"displayField",void 0),(0,s._)([(0,S.Cb)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Wt.prototype,"definitionExpression",void 0),(0,s._)([(0,S.Cb)({types:d.LB,readOnly:!0})],Wt.prototype,"defaultSymbol",void 0),(0,s._)([(0,S.Cb)({type:Ot.n})],Wt.prototype,"dynamicDataSource",void 0),(0,s._)([(0,S.Cb)({readOnly:!0})],Wt.prototype,"editFieldsInfo",void 0),(0,s._)([(0,S.Cb)({type:Boolean})],Wt.prototype,"editingEnabled",null),(0,s._)([(0,x.r)(["portal-item","web-scene"],"editingEnabled",["layerDefinition.capabilities"])],Wt.prototype,"readEditingEnabled",null),(0,s._)([(0,x.r)("web-map","editingEnabled",["capabilities","layerDefinition.capabilities"])],Wt.prototype,"readEditingEnabledFromWebMap",null),(0,s._)([(0,E.c)(["portal-item","web-scene"],"editingEnabled",{"layerDefinition.capabilities":{type:String}})],Wt.prototype,"writeEditingEnabled",null),(0,s._)([(0,E.c)("web-map","editingEnabled",{capabilities:{type:String},"layerDefinition.capabilities":{type:String}})],Wt.prototype,"writeEditingEnabledToWebMap",null),(0,s._)([(0,S.Cb)({readOnly:!0})],Wt.prototype,"editingInfo",void 0),(0,s._)([(0,x.r)("editingInfo")],Wt.prototype,"readEditingInfo",null),(0,s._)([(0,S.Cb)(ct.PV)],Wt.prototype,"elevationInfo",void 0),(0,s._)([(0,S.Cb)(ht.d)],Wt.prototype,"featureReduction",void 0),(0,s._)([(0,S.Cb)({...Bt.fields,json:{read:{source:"layerDefinition.fields"},origins:{service:{name:"fields"},"web-map":{write:{target:"layerDefinition.fields",overridePolicy:Jt}}}}})],Wt.prototype,"fields",void 0),(0,s._)([(0,S.Cb)(Bt.fieldsIndex)],Wt.prototype,"fieldsIndex",void 0),(0,s._)([(0,S.Cb)({type:It.Z,json:{read:{source:"layerDefinition.floorInfo"},write:{target:"layerDefinition.floorInfo"}}})],Wt.prototype,"floorInfo",void 0),(0,s._)([(0,S.Cb)({type:qe,json:{name:"formInfo",write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],Wt.prototype,"formTemplate",void 0),(0,s._)([(0,S.Cb)({type:De.Z,json:{origins:{service:{read:{source:"extent"}}},read:{source:"layerDefinition.extent"}}})],Wt.prototype,"fullExtent",void 0),(0,s._)([(0,S.Cb)()],Wt.prototype,"gdbVersion",void 0),(0,s._)([(0,S.Cb)({readOnly:!0,type:_t,json:{read:{source:"geometryProperties"}}})],Wt.prototype,"geometryFieldsInfo",void 0),(0,s._)([(0,S.Cb)({type:["point","polygon","polyline","multipoint","multipatch","mesh"],json:{origins:{service:{read:At.read},"web-map":{write:{target:"layerDefinition.geometryType",overridePolicy:Jt,writer(e,t,r){const i=e?At.toJSON(e):null;i&&(0,w.RB)(r,i,t)}}}},read:{source:"layerDefinition.geometryType",reader:At.read}}})],Wt.prototype,"geometryType",void 0),(0,s._)([(0,S.Cb)({type:Boolean,json:{origins:{service:{read:!0}},read:{source:"layerDefinition.hasM"}}})],Wt.prototype,"hasM",void 0),(0,s._)([(0,S.Cb)({type:Boolean,json:{origins:{service:{read:!0}},read:{source:"layerDefinition.hasZ"}}})],Wt.prototype,"hasZ",void 0),(0,s._)([(0,S.Cb)({readOnly:!0,type:Le.Z})],Wt.prototype,"heightModelInfo",void 0),(0,s._)([(0,S.Cb)({type:Date})],Wt.prototype,"historicMoment",void 0),(0,s._)([(0,S.Cb)(ct.id)],Wt.prototype,"id",void 0),(0,s._)([(0,S.Cb)({readOnly:!0,json:{origins:{service:{read:!0}},read:!1}})],Wt.prototype,"infoFor3D",void 0),(0,s._)([(0,S.Cb)({readOnly:!0,json:{origins:{"web-map":{write:{target:"layerDefinition.type"}}}}})],Wt.prototype,"isTable",void 0),(0,s._)([(0,x.r)("service","isTable",["type","geometryType"]),(0,x.r)("isTable",["layerDefinition.type","layerDefinition.geometryType"])],Wt.prototype,"readIsTable",null),(0,s._)([(0,E.c)("web-map","isTable")],Wt.prototype,"writeIsTable",null),(0,s._)([(0,S.Cb)(ct.iR)],Wt.prototype,"labelsVisible",void 0),(0,s._)([(0,S.Cb)({type:[Ct.Z],json:{origins:{service:{read:{source:"drawingInfo.labelingInfo",reader:St.r},write:{target:"drawingInfo.labelingInfo",enabled:!1}}},read:{source:"layerDefinition.drawingInfo.labelingInfo",reader:St.r},write:{target:"layerDefinition.drawingInfo.labelingInfo"}}})],Wt.prototype,"labelingInfo",void 0),(0,s._)([(0,S.Cb)(ct.bT)],Wt.prototype,"opacity",void 0),(0,s._)([(0,S.Cb)({type:Number,json:{origins:{service:{read:{source:"id"}}},read:!1}})],Wt.prototype,"layerId",void 0),(0,s._)([(0,S.Cb)(ct.rn)],Wt.prototype,"legendEnabled",void 0),(0,s._)([(0,S.Cb)({type:["show","hide"]})],Wt.prototype,"listMode",void 0),(0,s._)([(0,S.Cb)(ct.rO)],Wt.prototype,"minScale",void 0),(0,s._)([(0,x.r)("service","minScale",["minScale","effectiveMinScale"])],Wt.prototype,"readMinScale",null),(0,s._)([(0,S.Cb)(ct.u1)],Wt.prototype,"maxScale",void 0),(0,s._)([(0,x.r)("service","maxScale",["maxScale","effectiveMaxScale"])],Wt.prototype,"readMaxScale",null),(0,s._)([(0,S.Cb)({type:String})],Wt.prototype,"globalIdField",void 0),(0,s._)([(0,x.r)("globalIdField",["layerDefinition.globalIdField","layerDefinition.fields"]),(0,x.r)("service","globalIdField",["globalIdField","fields"])],Wt.prototype,"readGlobalIdFieldFromService",null),(0,s._)([(0,S.Cb)({type:String,json:{origins:{"web-map":{write:{target:"layerDefinition.objectIdField",overridePolicy:Jt}}}}})],Wt.prototype,"objectIdField",void 0),(0,s._)([(0,x.r)("objectIdField",["layerDefinition.objectIdField","layerDefinition.fields"]),(0,x.r)("service","objectIdField",["objectIdField","fields"])],Wt.prototype,"readObjectIdFieldFromService",null),(0,s._)([(0,S.Cb)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],Wt.prototype,"operationalLayerType",void 0),(0,s._)([(0,S.Cb)(Bt.outFields)],Wt.prototype,"outFields",void 0),(0,s._)([(0,S.Cb)({readOnly:!0})],Wt.prototype,"parsedUrl",null),(0,s._)([(0,S.Cb)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],Wt.prototype,"path",void 0),(0,s._)([(0,S.Cb)(ct.C_)],Wt.prototype,"popupEnabled",void 0),(0,s._)([(0,S.Cb)({type:o.Z,json:{name:"popupInfo",write:!0}})],Wt.prototype,"popupTemplate",void 0),(0,s._)([(0,S.Cb)({readOnly:!0})],Wt.prototype,"defaultPopupTemplate",null),(0,s._)([(0,S.Cb)({type:[Tt],readOnly:!0})],Wt.prototype,"relationships",void 0),(0,s._)([(0,S.Cb)({types:p.A,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{types:p.o,name:"layerDefinition.drawingInfo.renderer",write:{overridePolicy:(e,t,r)=>({ignoreOrigin:null==r?void 0:r.writeLayerSchema})}}},write:{target:"layerDefinition.drawingInfo.renderer",overridePolicy:(e,t,r)=>({ignoreOrigin:null==r?void 0:r.writeLayerSchema})}}})],Wt.prototype,"renderer",null),(0,s._)([(0,x.r)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,x.r)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],Wt.prototype,"readRenderer",null),(0,s._)([(0,S.Cb)()],Wt.prototype,"sourceJSON",void 0),(0,s._)([(0,S.Cb)({type:Boolean})],Wt.prototype,"returnM",void 0),(0,s._)([(0,S.Cb)({type:Boolean})],Wt.prototype,"returnZ",void 0),(0,s._)([(0,S.Cb)(ct.YI)],Wt.prototype,"screenSizePerspectiveEnabled",void 0),(0,s._)([(0,S.Cb)()],Wt.prototype,"source",null),(0,s._)([(0,I.p)("source")],Wt.prototype,"castSource",null),(0,s._)([(0,x.r)("portal-item","source",["featureSet"]),(0,x.r)("web-map","source",["featureSet"])],Wt.prototype,"readSource",null),(0,s._)([(0,S.Cb)({readOnly:!0})],Wt.prototype,"serviceDefinitionExpression",void 0),(0,s._)([(0,x.r)("service","serviceDefinitionExpression",["definitionQuery","definitionExpression"])],Wt.prototype,"readServiceDefinitionExpression",null),(0,s._)([(0,S.Cb)({type:Ze.Z,json:{origins:{service:{read:{source:"extent.spatialReference"}}},read:{source:"layerDefinition.extent.spatialReference"}}})],Wt.prototype,"spatialReference",void 0),(0,s._)([(0,S.Cb)({type:Number})],Wt.prototype,"subtypeCode",void 0),(0,s._)([(0,S.Cb)({type:[mt.Z]})],Wt.prototype,"templates",void 0),(0,s._)([(0,x.r)("templates",["editFieldsInfo","creatorField","editorField","templates"])],Wt.prototype,"readTemplates",null),(0,s._)([(0,S.Cb)({type:jt.Z})],Wt.prototype,"timeInfo",void 0),(0,s._)([(0,S.Cb)()],Wt.prototype,"title",void 0),(0,s._)([(0,x.r)("service","title",["name"]),(0,x.r)("portal-item","title",["layerDefinition.title","layerDefinition.name","title"])],Wt.prototype,"readTitle",null),(0,s._)([(0,x.r)("web-map","title",["layerDefinition.name","title"])],Wt.prototype,"readTitleFromWebMap",null),(0,s._)([(0,S.Cb)({type:String})],Wt.prototype,"sublayerTitleMode",void 0),(0,s._)([(0,S.Cb)({type:String,json:{read:{source:"timeInfo.trackIdField"}}})],Wt.prototype,"trackIdField",void 0),(0,s._)([(0,S.Cb)({json:{read:!1}})],Wt.prototype,"type",void 0),(0,s._)([(0,S.Cb)({type:String})],Wt.prototype,"typeIdField",void 0),(0,s._)([(0,x.r)("service","typeIdField"),(0,x.r)("typeIdField",["layerDefinition.typeIdField"])],Wt.prototype,"readTypeIdField",null),(0,s._)([(0,S.Cb)({type:[ft.Z]})],Wt.prototype,"types",void 0),(0,s._)([(0,x.r)("service","types",["types"]),(0,x.r)("types",["layerDefinition.types"])],Wt.prototype,"readTypes",null),(0,s._)([(0,S.Cb)({readOnly:!0,json:{write:!1}})],Wt.prototype,"serverGens",void 0),(0,s._)([(0,S.Cb)({type:c.Z.ofType(yt),readOnly:!0})],Wt.prototype,"indexes",void 0),(0,s._)([(0,S.Cb)(ct.HQ)],Wt.prototype,"url",null),(0,s._)([(0,E.c)("url")],Wt.prototype,"writeUrl",null),(0,s._)([(0,S.Cb)({readOnly:!0})],Wt.prototype,"userIsAdmin",void 0),(0,s._)([(0,S.Cb)({json:{origins:{service:{read:!0}},read:!1}})],Wt.prototype,"version",void 0),(0,s._)([(0,x.r)("service","version",["currentVersion","capabilities","drawingInfo","hasAttachments","htmlPopupType","relationships","timeInfo","typeIdField","types"])],Wt.prototype,"readVersion",null),(0,s._)([(0,S.Cb)({type:Boolean,json:{origins:{"portal-item":{write:{target:"layerDefinition.defaultVisibility"}}}}})],Wt.prototype,"visible",void 0),(0,s._)([(0,x.r)("portal-item","visible",["visibility","layerDefinition.defaultVisibility"])],Wt.prototype,"readVisible",null),Wt=(0,s._)([(0,F.j)("esri.layers.FeatureLayer")],Wt);const zt=(0,T.d)({types:d.QT}),Ht=Wt},68825:(e,t,r)=>{r.d(t,{c:()=>m});var i,s=r(43697),o=r(78286),n=r(5600),a=(r(67676),r(80442),r(75215),r(52011)),l=r(35454),p=r(96674);const u=new l.Xn({asc:"ascending",desc:"descending"});let d=i=class extends p.wq{constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new i({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"field",void 0),(0,s._)([(0,n.Cb)({type:String,json:{write:!0}})],d.prototype,"valueExpression",void 0),(0,s._)([(0,n.Cb)({type:u.apiValues,json:{read:u.read,write:u.write}})],d.prototype,"order",void 0),d=i=(0,s._)([(0,a.j)("esri.layers.support.OrderByInfo")],d);const c=d;function y(e,t,r){if(!e)return null;const i=e.find((e=>!!e.field));if(!i)return null;const s=new c;return s.read(i,r),[s]}function h(e,t,r,i){const s=e.find((e=>!!e.field));s&&(0,o.RB)(r,[s.toJSON()],t)}const m=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,s._)([(0,n.Cb)({type:[c],json:{origins:{"web-scene":{write:!1,read:!1}},read:{source:"layerDefinition.orderBy",reader:y},write:{target:"layerDefinition.orderBy",writer:h}}})],t.prototype,"orderBy",void 0),t=(0,s._)([(0,a.j)("esri.layers.mixins.OrderedLayer")],t),t}},40555:(e,t,r)=>{r.d(t,{y:()=>n});var i=r(66643),s=r(95330),o=r(20941);async function n(e,t,r){const n=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(n&&"unique-value"===n.type&&n.styleOrigin){const a=await(0,i.q6)(n.populateFromStyle());if((0,s.k_)(r),!1===a.ok){const r=a.error;t&&t.messages&&t.messages.push(new o.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t.origin)}}}},59431:(e,t,r)=>{r.d(t,{P:()=>a});var i=r(70586),s=r(67900),o=r(8744);function n(e,t,r){if(null==e.hasM||e.hasZ)for(const e of t)for(const t of e)t.length>2&&(t[2]*=r)}function a(e,t,r){if(!e&&!t||!r)return;const i=(0,s._R)(r);l(e,r,i),l(t,r,i)}function l(e,t,r){if(e)for(const i of e)p(i.geometry,t,r)}function p(e,t,r){if((0,i.Wi)(e)||!e.spatialReference||(0,o.fS)(e.spatialReference,t))return;const a=(0,s._R)(e.spatialReference)/r;if(1!==a)if("x"in e)null!=e.z&&(e.z*=a);else if("rings"in e)n(e,e.rings,a);else if("paths"in e)n(e,e.paths,a);else if("points"in e&&(null==e.hasM||e.hasZ))for(const t of e.points)t.length>2&&(t[2]*=a)}}}]);
|