@arcgis/core 4.28.0-next.20230819 → 4.28.0-next.20230821
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/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/003744a45b07865f1be9.js +1 -0
- package/assets/esri/core/workers/chunks/034accc7cab6c88a3b31.js +1 -0
- package/assets/esri/core/workers/chunks/{a67e5b22adc91e850b4e.js → 05ab09713d599687afa3.js} +1 -1
- package/assets/esri/core/workers/chunks/{3724f23b6f5ac8ec2568.js → 12b8fe0374fa9ab4ca09.js} +1 -1
- package/assets/esri/core/workers/chunks/16d1a72014074e87ecb9.js +1 -0
- package/assets/esri/core/workers/chunks/{e4b6565c16430b28ad93.js → 19857e5420cdf23c5f2e.js} +1 -1
- package/assets/esri/core/workers/chunks/{1a804dea42c0fb5e5c07.js → 1bab408eaffd2c18976d.js} +1 -1
- package/assets/esri/core/workers/chunks/201365f53509e3f78e17.js +1 -0
- package/assets/esri/core/workers/chunks/{2031451b82ff70fb201a.js → 2f48f4a9a0a056ac5e1c.js} +1 -1
- package/assets/esri/core/workers/chunks/318b51fdee09c1fd750f.js +1 -0
- package/assets/esri/core/workers/chunks/{5b799dc155adeb728c74.js → 3361e3e8385f8de8820c.js} +1 -1
- package/assets/esri/core/workers/chunks/3ce1870c28ab6ac3648e.js +1 -0
- package/assets/esri/core/workers/chunks/41929e4531787389804b.js +1 -0
- package/assets/esri/core/workers/chunks/{55ac725127c5ea9fb942.js → 4e39252f40bc57be9d12.js} +1 -1
- package/assets/esri/core/workers/chunks/{8ed83426ef88a3eccecd.js → 4e496b03ce24b1206f86.js} +1 -1
- package/assets/esri/core/workers/chunks/54513578f735d274a20e.js +1 -0
- package/assets/esri/core/workers/chunks/{d46f8ef92e79d12384c9.js → 587437526ea77f764986.js} +1 -1
- package/assets/esri/core/workers/chunks/{ab720e2f0a35138564b2.js → 5ffabd1a90c5b08109aa.js} +1 -1
- package/assets/esri/core/workers/chunks/6108d72faf48a592c8ba.js +1 -0
- package/assets/esri/core/workers/chunks/6479439afae01f9bb5e6.js +1 -0
- package/assets/esri/core/workers/chunks/69306dfc89e877539223.js +1 -0
- package/assets/esri/core/workers/chunks/{ed499c328ae3a704791c.js → 6db4a6f9d25691830829.js} +1 -1
- package/assets/esri/core/workers/chunks/{61393fd3376ea599a447.js → 76e27cece1559ae815df.js} +1 -1
- package/assets/esri/core/workers/chunks/81526909c0fa11639038.js +1 -0
- package/assets/esri/core/workers/chunks/873111ddf4813cdd4903.js +1 -0
- package/assets/esri/core/workers/chunks/8d4f1170394a8be15da9.js +1 -0
- package/assets/esri/core/workers/chunks/8d8bdfda09c24e363f78.js +1 -0
- package/assets/esri/core/workers/chunks/9b54b5bdb6367c36f6e9.js +1 -0
- package/assets/esri/core/workers/chunks/{88f0b5c0fe751bf35af2.js → b2752e038c5fa3c21e49.js} +1 -1
- package/assets/esri/core/workers/chunks/{dd3b7cfc6f78552249a4.js → b78dc6cbe14e5817b4d9.js} +1 -1
- package/assets/esri/core/workers/chunks/{e31d0c7363cbceeb5ac9.js → c35b850fbfcb28133235.js} +1 -1
- package/assets/esri/core/workers/chunks/c83e1be4ee64320cf2fe.js +1 -0
- package/assets/esri/core/workers/chunks/c88869d2a647c22dc3e6.js +1 -0
- package/assets/esri/core/workers/chunks/cb0a5bc6deaa98026bb5.js +1 -0
- package/assets/esri/core/workers/chunks/{767467738aeabec14abd.js → d0c4367a197b193e95d4.js} +1 -1
- package/assets/esri/core/workers/chunks/{f113141e254505116b82.js → d1cc2c050423595e54e0.js} +1 -1
- package/assets/esri/core/workers/chunks/{7f34945036495ad7c3f8.js → d2a8bf2d090b94cb294b.js} +1 -1
- package/assets/esri/core/workers/chunks/{08af7f7f1950a59a8e47.js → d6c96a20e9640b433719.js} +4 -4
- package/assets/esri/core/workers/chunks/da5453e67d00ff546640.js +1 -0
- package/assets/esri/core/workers/chunks/daa79c14150c12d8bc3d.js +1 -0
- package/assets/esri/core/workers/chunks/ef03b78659c72de93076.js +1 -0
- package/assets/esri/core/workers/chunks/{c3cace5b25b5170228ba.js → f2fe89b6ac6bf6817e71.js} +1 -1
- package/assets/esri/core/workers/chunks/f3554627664a419e00fa.js +1 -0
- package/assets/esri/themes/base/widgets/_Editor.scss +65 -4
- package/assets/esri/themes/base/widgets/_UtilityNetworkAssociations.scss +97 -39
- package/assets/esri/themes/dark/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/widgets/Editor/t9n/Editor.json +1 -1
- package/assets/esri/widgets/Editor/t9n/Editor_en.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-caps/butt.png +0 -0
- package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-caps/round.png +0 -0
- package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-caps/square.png +0 -0
- package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/dash-dot.png +0 -0
- package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/dash.png +0 -0
- package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/dot.png +0 -0
- package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/long-dash-dot-dot.png +0 -0
- package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/long-dash-dot.png +0 -0
- package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/long-dash.png +0 -0
- package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/short-dash-dot-dot.png +0 -0
- package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/short-dash-dot.png +0 -0
- package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/short-dash.png +0 -0
- package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/short-dot.png +0 -0
- package/assets/esri/widgets/UtilityNetworkAssociations/assets/img/line-patterns/solid.png +0 -0
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations.json +1 -1
- package/assets/esri/widgets/UtilityNetworkAssociations/t9n/UtilityNetworkAssociations_en.json +1 -1
- package/chunks/HighlightBlur.glsl.js +3 -3
- package/chunks/HighlightDownsample.glsl.js +24 -6
- package/chunks/SSAO.glsl.js +2 -2
- package/core/timeUtils.js +1 -1
- package/intl/date.js +1 -1
- package/layers/FeatureLayer.js +1 -1
- package/layers/ImageryLayer.js +1 -1
- package/layers/ImageryTileLayer.js +1 -1
- package/layers/StreamLayer.js +1 -1
- package/layers/SubtypeGroupLayer.js +1 -1
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/graphics/sources/support/uploads.js +1 -1
- package/layers/save/featureLayerUtils.js +1 -1
- package/layers/save/imageryUtils.js +1 -1
- package/layers/save/streamLayerUtils.js +1 -1
- package/package.json +1 -1
- package/popup/support/FieldInfoFormat.js +1 -1
- package/support/revision.js +1 -1
- package/views/3d/environment/EnvironmentRenderer.js +1 -1
- package/views/3d/externalRenderers/ExternalRendererStore.js +1 -1
- package/views/3d/layers/i3s/PointRenderer.js +1 -1
- package/views/3d/support/LaserLineRenderer.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPlugin.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/ShadowHighlight.js +1 -1
- package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/lib/GLMaterialRepository.js +1 -1
- package/views/3d/webgl-engine/lib/GLMaterials.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/CheckerBoardMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ImageMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PatternMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/ShadedColorMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/SlicePlaneMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/WaterMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
- package/views/3d/webgl-engine/shaders/HighlightDownsample.glsl.js +1 -1
- package/views/draw/DrawGraphicTool.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/interactive/sketch/normalizedPoint.js +1 -1
- package/views/interactive/snapping/SnappingManager.js +1 -1
- package/views/interactive/snapping/candidates/IntersectionSnappingCandidate.js +1 -1
- package/views/interactive/tooltip/TooltipEditableField.js +1 -1
- package/views/interactive/tooltip/TooltipEditableFieldAngle.js +1 -1
- package/views/interactive/tooltip/constraintUtils.js +5 -0
- package/views/support/angularMeasurementUtils.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/Upload.js +1 -1
- package/widgets/Editor/components/CreateFeaturesPanelContent.js +1 -1
- package/widgets/Editor/components/UploadDetails.js +1 -1
- package/widgets/Editor/modelUploadUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/ElevationProfile/support/chartUtils.js +1 -1
- package/widgets/ElevationProfile.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Feature/support/featureUtils.js +1 -1
- package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsLineSymbolPicker.js +5 -0
- package/widgets/UtilityNetworkAssociations/UtilityNetworkAssociationsViewModel.js +1 -1
- package/widgets/UtilityNetworkAssociations/VisibleElements.js +5 -0
- package/widgets/UtilityNetworkAssociations/VisibleElementsSettingsPane.js +5 -0
- package/widgets/UtilityNetworkAssociations.js +1 -1
- package/assets/esri/core/workers/chunks/11abbbf97093b55e2417.js +0 -1
- package/assets/esri/core/workers/chunks/1b2a081f2c3b97ba7e00.js +0 -1
- package/assets/esri/core/workers/chunks/235f333177ed7ea21e01.js +0 -1
- package/assets/esri/core/workers/chunks/3725dd14c2da0f47198f.js +0 -1
- package/assets/esri/core/workers/chunks/42595c4870c673ed451c.js +0 -1
- package/assets/esri/core/workers/chunks/481cdd2a4bc40c6fef66.js +0 -1
- package/assets/esri/core/workers/chunks/54893132e70c515ea7e3.js +0 -1
- package/assets/esri/core/workers/chunks/6509a4198972b323d9b6.js +0 -1
- package/assets/esri/core/workers/chunks/68598d2806d4aa3d8acc.js +0 -1
- package/assets/esri/core/workers/chunks/718d2e8ea61f3b7b70c5.js +0 -1
- package/assets/esri/core/workers/chunks/7bce4b5eec630ef57f1e.js +0 -1
- package/assets/esri/core/workers/chunks/8706dc9f852df9b2095d.js +0 -1
- package/assets/esri/core/workers/chunks/8ef26aac0fe7feb8c324.js +0 -1
- package/assets/esri/core/workers/chunks/91e61da22f258d9e86c5.js +0 -1
- package/assets/esri/core/workers/chunks/9f039bf79b34d8fd75ae.js +0 -1
- package/assets/esri/core/workers/chunks/a20fd9e7db37b3c3b041.js +0 -1
- package/assets/esri/core/workers/chunks/aa83dce42d64034a0a13.js +0 -1
- package/assets/esri/core/workers/chunks/cdcf0a5e05283d37b3ac.js +0 -1
- package/assets/esri/core/workers/chunks/d4f9106bf2ea5d66d96a.js +0 -1
- package/assets/esri/core/workers/chunks/e6bfbc4347fa13db4df2.js +0 -1
- package/assets/esri/core/workers/chunks/f1d5487f2d828fb142ba.js +0 -1
- package/assets/esri/core/workers/chunks/f97f165d05439e668e05.js +0 -1
- package/assets/esri/core/workers/chunks/fe973d8155c22d73a4f9.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7126],{17126:(t,e,n)=>{n.d(e,{ou:()=>Kn,Qf:()=>et,vF:()=>_,ld:()=>L});class r extends Error{}class s extends r{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class i extends r{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class a extends r{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class o extends r{}class u extends r{constructor(t){super(`Invalid unit ${t}`)}}class l extends r{}class c extends r{constructor(){super("Zone is an abstract class")}}const h="numeric",d="short",m="long",f={year:h,month:h,day:h},y={year:h,month:d,day:h},g={year:h,month:d,day:h,weekday:d},w={year:h,month:m,day:h},p={year:h,month:m,day:h,weekday:m},v={hour:h,minute:h},T={hour:h,minute:h,second:h},S={hour:h,minute:h,second:h,timeZoneName:d},O={hour:h,minute:h,second:h,timeZoneName:m},b={hour:h,minute:h,hourCycle:"h23"},k={hour:h,minute:h,second:h,hourCycle:"h23"},N={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:d},M={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:m},D={year:h,month:h,day:h,hour:h,minute:h},E={year:h,month:h,day:h,hour:h,minute:h,second:h},V={year:h,month:d,day:h,hour:h,minute:h},x={year:h,month:d,day:h,hour:h,minute:h,second:h},I={year:h,month:d,day:h,weekday:d,hour:h,minute:h},C={year:h,month:m,day:h,hour:h,minute:h,timeZoneName:d},F={year:h,month:m,day:h,hour:h,minute:h,second:h,timeZoneName:d},Z={year:h,month:m,day:h,weekday:m,hour:h,minute:h,timeZoneName:m},$={year:h,month:m,day:h,weekday:m,hour:h,minute:h,second:h,timeZoneName:m};class L{get type(){throw new c}get name(){throw new c}get ianaName(){return this.name}get isUniversal(){throw new c}offsetName(t,e){throw new c}formatOffset(t,e){throw new c}offset(t){throw new c}equals(t){throw new c}get isValid(){throw new c}}let z=null;class q extends L{static get instance(){return null===z&&(z=new q),z}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return xt(t,e,n)}formatOffset(t,e){return Zt(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let j={};const A={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let U={};class _ extends L{static create(t){return U[t]||(U[t]=new _(t)),U[t]}static resetCache(){U={},j={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=_.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return xt(t,e,n,this.name)}formatOffset(t,e){return Zt(this.offset(t),e)}offset(t){const e=new Date(t);if(isNaN(e))return NaN;const n=(r=this.name,j[r]||(j[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),j[r]);var r;let[s,i,a,o,u,l,c]=n.formatToParts?function(t,e){const n=t.formatToParts(e),r=[];for(let t=0;t<n.length;t++){const{type:e,value:s}=n[t],i=A[e];"era"===e?r[i]=s:dt(i)||(r[i]=parseInt(s,10))}return r}(n,e):function(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,a,o,u,l,c]=r;return[a,s,i,o,u,l,c]}(n,e);"BC"===o&&(s=1-Math.abs(s));let h=+e;const d=h%1e3;return h-=d>=0?d:1e3+d,(Dt({year:s,month:i,day:a,hour:24===u?0:u,minute:l,second:c,millisecond:0})-h)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let H={},W={};function R(t,e={}){const n=JSON.stringify([t,e]);let r=W[n];return r||(r=new Intl.DateTimeFormat(t,e),W[n]=r),r}let J={},Y={},P=null;function G(t,e,n,r){const s=t.listingMode();return"error"===s?null:"en"===s?n(e):r(e)}class B{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:s,...i}=n;if(!e||Object.keys(i).length>0){const e={useGrouping:!1,...n};n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t,e={}){const n=JSON.stringify([t,e]);let r=J[n];return r||(r=new Intl.NumberFormat(t,e),J[n]=r),r}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return vt(this.floor?Math.floor(t):bt(t,3),this.padTo)}}class Q{constructor(t,e,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,n=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&_.create(n).valid?(r=n,this.dt=t):(r="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=R(e,s)}format(){return this.originalZone?this.formatToParts().map((({value:t})=>t)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class K{constructor(t,e,n){this.opts={style:"long",...n},!e&&yt()&&(this.rtf=function(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=Y[s];return i||(i=new Intl.RelativeTimeFormat(t,e),Y[s]=i),i}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&i){const n="days"===t;switch(e){case 1:return n?"tomorrow":`next ${s[t][0]}`;case-1:return n?"yesterday":`last ${s[t][0]}`;case 0:return n?"today":`this ${s[t][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),u=1===o,l=s[t],c=r?u?l[1]:l[2]||l[1]:u?s[t][0]:t;return a?`${o} ${c} ago`:`in ${o} ${c}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}class X{static fromOpts(t){return X.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,e,n,r=!1){const s=t||ht.defaultLocale,i=s||(r?"en-US":P||(P=(new Intl.DateTimeFormat).resolvedOptions().locale,P)),a=e||ht.defaultNumberingSystem,o=n||ht.defaultOutputCalendar;return new X(i,a,o,s)}static resetCache(){P=null,W={},J={},Y={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:n}={}){return X.create(t,e,n)}constructor(t,e,n,r){const[s,i,a]=function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(-1===n)return[t];{let e,r;try{e=R(t).resolvedOptions(),r=t}catch(s){const i=t.substring(0,n);e=R(i).resolvedOptions(),r=i}const{numberingSystem:s,calendar:i}=e;return[r,s,i]}}(t);this.locale=s,this.numberingSystem=e||i||null,this.outputCalendar=n||a||null,this.intl=function(t,e,n){return n||e?(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),e=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&e?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?X.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1){return G(this,t,jt,(()=>{const n=e?{month:t,day:"numeric"}:{month:t},r=e?"format":"standalone";return this.monthsCache[r][t]||(this.monthsCache[r][t]=function(t){const e=[];for(let n=1;n<=12;n++){const r=Kn.utc(2009,n,1);e.push(t(r))}return e}((t=>this.extract(t,n,"month")))),this.monthsCache[r][t]}))}weekdays(t,e=!1){return G(this,t,Ht,(()=>{const n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=function(t){const e=[];for(let n=1;n<=7;n++){const r=Kn.utc(2016,11,13+n);e.push(t(r))}return e}((t=>this.extract(t,n,"weekday")))),this.weekdaysCache[r][t]}))}meridiems(){return G(this,void 0,(()=>Wt),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Kn.utc(2016,11,13,9),Kn.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return G(this,t,Pt,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[Kn.utc(-40,1,1),Kn.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,n){const r=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===n));return r?r.value:null}numberFormatter(t={}){return new B(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new Q(t,this.intl,e)}relFormatter(t={}){return new K(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const n=JSON.stringify([t,e]);let r=H[n];return r||(r=new Intl.ListFormat(t,e),H[n]=r),r}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let tt=null;class et extends L{static get utcInstance(){return null===tt&&(tt=new et(0)),tt}static instance(t){return 0===t?et.utcInstance:new et(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new et(It(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Zt(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Zt(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return Zt(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class nt extends L{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function rt(t,e){if(dt(t)||null===t)return e;if(t instanceof L)return t;if("string"==typeof t){const n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?q.instance:"utc"===n||"gmt"===n?et.utcInstance:et.parseSpecifier(n)||_.create(t)}return mt(t)?et.instance(t):"object"==typeof t&&"offset"in t&&"function"==typeof t.offset?t:new nt(t)}let st,it=()=>Date.now(),at="system",ot=null,ut=null,lt=null,ct=60;class ht{static get now(){return it}static set now(t){it=t}static set defaultZone(t){at=t}static get defaultZone(){return rt(at,q.instance)}static get defaultLocale(){return ot}static set defaultLocale(t){ot=t}static get defaultNumberingSystem(){return ut}static set defaultNumberingSystem(t){ut=t}static get defaultOutputCalendar(){return lt}static set defaultOutputCalendar(t){lt=t}static get twoDigitCutoffYear(){return ct}static set twoDigitCutoffYear(t){ct=t%100}static get throwOnInvalid(){return st}static set throwOnInvalid(t){st=t}static resetCaches(){X.resetCache(),_.resetCache()}}function dt(t){return void 0===t}function mt(t){return"number"==typeof t}function ft(t){return"number"==typeof t&&t%1==0}function yt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function gt(t,e,n){if(0!==t.length)return t.reduce(((t,r)=>{const s=[e(r),r];return t&&n(t[0],s[0])===t[0]?t:s}),null)[1]}function wt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function pt(t,e,n){return ft(t)&&t>=e&&t<=n}function vt(t,e=2){let n;return n=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function Tt(t){return dt(t)||null===t||""===t?void 0:parseInt(t,10)}function St(t){return dt(t)||null===t||""===t?void 0:parseFloat(t)}function Ot(t){if(!dt(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function bt(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function kt(t){return t%4==0&&(t%100!=0||t%400==0)}function Nt(t){return kt(t)?366:365}function Mt(t,e){const n=(r=e-1)-12*Math.floor(r/12)+1;var r;return 2===n?kt(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Dt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Et(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===e||3===r?53:52}function Vt(t){return t>99?t:t>ht.twoDigitCutoffYear?1900+t:2e3+t}function xt(t,e,n,r=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(s).find((t=>"timezonename"===t.type.toLowerCase()));return o?o.value:null}function It(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function Ct(t){const e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new l(`Invalid unit value ${t}`);return e}function Ft(t,e){const n={};for(const r in t)if(wt(t,r)){const s=t[r];if(null==s)continue;n[e(r)]=Ct(s)}return n}function Zt(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${vt(n,2)}:${vt(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${vt(n,2)}${vt(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function $t(t){return function(t,e){return["hour","minute","second","millisecond"].reduce(((e,n)=>(e[n]=t[n],e)),{})}(t)}const Lt=["January","February","March","April","May","June","July","August","September","October","November","December"],zt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],qt=["J","F","M","A","M","J","J","A","S","O","N","D"];function jt(t){switch(t){case"narrow":return[...qt];case"short":return[...zt];case"long":return[...Lt];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const At=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ut=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],_t=["M","T","W","T","F","S","S"];function Ht(t){switch(t){case"narrow":return[..._t];case"short":return[...Ut];case"long":return[...At];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Wt=["AM","PM"],Rt=["Before Christ","Anno Domini"],Jt=["BC","AD"],Yt=["B","A"];function Pt(t){switch(t){case"narrow":return[...Yt];case"short":return[...Jt];case"long":return[...Rt];default:return null}}function Gt(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const Bt={D:f,DD:y,DDD:w,DDDD:p,t:v,tt:T,ttt:S,tttt:O,T:b,TT:k,TTT:N,TTTT:M,f:D,ff:V,fff:C,ffff:Z,F:E,FF:x,FFF:F,FFFF:$};class Qt{static create(t,e={}){return new Qt(t,e)}static parseFormat(t){let e=null,n="",r=!1;const s=[];for(let i=0;i<t.length;i++){const a=t.charAt(i);"'"===a?(n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),e=null,n="",r=!r):r||a===e?n+=a:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=a,e=a)}return n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(t){return Bt[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return vt(t,e);const n={...this.opts};return e>0&&(n.padTo=e),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(e,n)=>this.loc.extract(t,e,n),i=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",a=(e,r)=>n?function(t,e){return jt(e)[t.month-1]}(t,e):s(r?{month:e}:{month:e,day:"numeric"},"month"),o=(e,r)=>n?function(t,e){return Ht(e)[t.weekday-1]}(t,e):s(r?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),u=e=>{const n=Qt.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},l=e=>n?function(t,e){return Pt(e)[t.year<0?0:1]}(t,e):s({era:e},"era");return Gt(Qt.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return n?function(t){return Wt[t.hour<12?0:1]}(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?s({day:"numeric"},"day"):this.num(t.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return o("short",!0);case"cccc":return o("long",!0);case"ccccc":return o("narrow",!0);case"EEE":return o("short",!1);case"EEEE":return o("long",!1);case"EEEEE":return o("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(t.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(t.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(t.year,6);case"G":return l("short");case"GG":return l("long");case"GGGGG":return l("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(e)}}))}formatDurationFromString(t,e){const n=t=>{switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=Qt.parseFormat(e),s=r.reduce(((t,{literal:e,val:n})=>e?t:t.concat(n)),[]);return Gt(r,(t=>e=>{const r=n(e);return r?this.num(t.get(r),e.length):e})(t.shiftTo(...s.map(n).filter((t=>t)))))}}class Kt{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Xt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function te(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function ee(...t){return e=>t.reduce((([t,n,r],s)=>{const[i,a,o]=s(e,r);return[{...t,...i},a||n,o]}),[{},null,1]).slice(0,2)}function ne(t,...e){if(null==t)return[null,null];for(const[n,r]of e){const e=n.exec(t);if(e)return r(e)}return[null,null]}function re(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=Tt(e[n+s]);return[r,null,n+s]}}const se=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,ie=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ae=RegExp(`${ie.source}(?:${se.source}?(?:\\[(${Xt.source})\\])?)?`),oe=RegExp(`(?:T${ae.source})?`),ue=re("weekYear","weekNumber","weekDay"),le=re("year","ordinal"),ce=RegExp(`${ie.source} ?(?:${se.source}|(${Xt.source}))?`),he=RegExp(`(?: ${ce.source})?`);function de(t,e,n){const r=t[e];return dt(r)?n:Tt(r)}function me(t,e){return[{hours:de(t,e,0),minutes:de(t,e+1,0),seconds:de(t,e+2,0),milliseconds:Ot(t[e+3])},null,e+4]}function fe(t,e){const n=!t[e]&&!t[e+1],r=It(t[e+1],t[e+2]);return[{},n?null:et.instance(r),e+3]}function ye(t,e){return[{},t[e]?_.create(t[e]):null,e+1]}const ge=RegExp(`^T?${ie.source}$`),we=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function pe(t){const[e,n,r,s,i,a,o,u,l]=t,c="-"===e[0],h=u&&"-"===u[0],d=(t,e=!1)=>void 0!==t&&(e||t&&c)?-t:t;return[{years:d(St(n)),months:d(St(r)),weeks:d(St(s)),days:d(St(i)),hours:d(St(a)),minutes:d(St(o)),seconds:d(St(u),"-0"===u),milliseconds:d(Ot(l),h)}]}const ve={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Te(t,e,n,r,s,i,a){const o={year:2===e.length?Vt(Tt(e)):Tt(e),month:zt.indexOf(n)+1,day:Tt(r),hour:Tt(s),minute:Tt(i)};return a&&(o.second=Tt(a)),t&&(o.weekday=t.length>3?At.indexOf(t)+1:Ut.indexOf(t)+1),o}const Se=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Oe(t){const[,e,n,r,s,i,a,o,u,l,c,h]=t,d=Te(e,s,r,n,i,a,o);let m;return m=u?ve[u]:l?0:It(c,h),[d,new et(m)]}const be=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,ke=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ne=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Me(t){const[,e,n,r,s,i,a,o]=t;return[Te(e,s,r,n,i,a,o),et.utcInstance]}function De(t){const[,e,n,r,s,i,a,o]=t;return[Te(e,o,n,r,s,i,a),et.utcInstance]}const Ee=te(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,oe),Ve=te(/(\d{4})-?W(\d\d)(?:-?(\d))?/,oe),xe=te(/(\d{4})-?(\d{3})/,oe),Ie=te(ae),Ce=ee((function(t,e){return[{year:de(t,e),month:de(t,e+1,1),day:de(t,e+2,1)},null,e+3]}),me,fe,ye),Fe=ee(ue,me,fe,ye),Ze=ee(le,me,fe,ye),$e=ee(me,fe,ye),Le=ee(me),ze=te(/(\d{4})-(\d\d)-(\d\d)/,he),qe=te(ce),je=ee(me,fe,ye),Ae={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Ue={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Ae},_e={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Ae},He=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],We=He.slice(0).reverse();function Re(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Pe(r)}function Je(t){return Math.trunc(1e3*t)/1e3}function Ye(t,e,n,r,s){const i=t[s][n],a=e[n]/i,o=Math.floor(a);r[s]=Je(r[s]+o),e[n]=Je(e[n]-o*i)}class Pe{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?_e:Ue;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||X.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return Pe.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new l("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new Pe({values:Ft(t,Pe.normalizeUnit),loc:X.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(mt(t))return Pe.fromMillis(t);if(Pe.isDuration(t))return t;if("object"==typeof t)return Pe.fromObject(t);throw new l(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[n]=function(t){return ne(t,[we,pe])}(t);return n?Pe.fromObject(n,e):Pe.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[n]=function(t){return ne(t,[ge,Le])}(t);return n?Pe.fromObject(n,e):Pe.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new l("need to specify a reason the Duration is invalid");const n=t instanceof Kt?t:new Kt(t,e);if(ht.throwOnInvalid)throw new a(n);return new Pe({invalid:n})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new u(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?Qt.create(this.loc,n).formatDurationFromString(this,t):"Invalid Duration"}toHuman(t={}){const e=He.map((e=>{const n=this.values[e];return dt(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:e.slice(0,-1)}).format(n)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(e)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=bt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();return e<0||e>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Kn.fromMillis(e,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){let t=this.values.milliseconds??0;for(let e of We.slice(1))this.values?.[e]&&(t+=this.values[e]*this.matrix[e].milliseconds);return t}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=Pe.fromDurationLike(t),n={};for(const t of He)(wt(e.values,t)||wt(this.values,t))&&(n[t]=e.get(t)+this.get(t));return Re(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=Pe.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=Ct(t(this.values[n],n));return Re(this,{values:e},!0)}get(t){return this[Pe.normalizeUnit(t)]}set(t){return this.isValid?Re(this,{values:{...this.values,...Ft(t,Pe.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:n,matrix:r}={}){return Re(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:r,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return this.valueOf()>=0?(function(t,e){We.reduce(((n,r)=>dt(e[r])?n:(n&&Ye(t,e,n,e,r),r)),null)}(this.matrix,t),Re(this,{values:t},!0)):this.negate().normalize().negate()}rescale(){return this.isValid?Re(this,{values:function(t){const e={};for(const[n,r]of Object.entries(t))0!==r&&(e[n]=r);return e}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>Pe.normalizeUnit(t)));const e={},n={},r=this.toObject();let s;for(const i of He)if(t.indexOf(i)>=0){s=i;let t=0;for(const e in n)t+=this.matrix[e][i]*n[e],n[e]=0;mt(r[i])&&(t+=r[i]);const a=Math.trunc(t);e[i]=a,n[i]=(1e3*t-1e3*a)/1e3;for(const t in r)He.indexOf(t)>He.indexOf(i)&&Ye(this.matrix,r,t,e,i)}else mt(r[i])&&(n[i]=r[i]);for(const t in n)0!==n[t]&&(e[s]+=t===s?n[t]:n[t]/this.matrix[s][t]);return Re(this,{values:e},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return Re(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const r of He)if(e=this.values[r],n=t.values[r],!(void 0===e||0===e?void 0===n||0===n:e===n))return!1;var e,n;return!0}}const Ge="Invalid Interval";class Be{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new l("need to specify a reason the Interval is invalid");const n=t instanceof Kt?t:new Kt(t,e);if(ht.throwOnInvalid)throw new i(n);return new Be({invalid:n})}static fromDateTimes(t,e){const n=Xn(t),r=Xn(e),s=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?Be.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:Be.invalid("missing or invalid end"):Be.invalid("missing or invalid start")}(n,r);return null==s?new Be({start:n,end:r}):s}static after(t,e){const n=Pe.fromDurationLike(e),r=Xn(t);return Be.fromDateTimes(r,r.plus(n))}static before(t,e){const n=Pe.fromDurationLike(e),r=Xn(t);return Be.fromDateTimes(r.minus(n),r)}static fromISO(t,e){const[n,r]=(t||"").split("/",2);if(n&&r){let t,s,i,a;try{t=Kn.fromISO(n,e),s=t.isValid}catch(r){s=!1}try{i=Kn.fromISO(r,e),a=i.isValid}catch(r){a=!1}if(s&&a)return Be.fromDateTimes(t,i);if(s){const n=Pe.fromISO(r,e);if(n.isValid)return Be.after(t,n)}else if(a){const t=Pe.fromISO(n,e);if(t.isValid)return Be.before(i,t)}}return Be.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const e=this.start.startOf(t),n=this.end.startOf(t);return Math.floor(n.diff(e,t).get(t))+(n.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?Be.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(Xn).filter((t=>this.contains(t))).sort(),n=[];let{s:r}=this,s=0;for(;r<this.e;){const t=e[s]||this.e,i=+t>+this.e?this.e:t;n.push(Be.fromDateTimes(r,i)),r=i,s+=1}return n}splitBy(t){const e=Pe.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let n,{s:r}=this,s=1;const i=[];for(;r<this.e;){const t=this.start.plus(e.mapUnits((t=>t*s)));n=+t>+this.e?this.e:t,i.push(Be.fromDateTimes(r,n)),r=n,s+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&this.s<=t.s&&this.e>=t.e}equals(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return e>=n?null:Be.fromDateTimes(e,n)}union(t){if(!this.isValid)return this;const e=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return Be.fromDateTimes(e,n)}static merge(t){const[e,n]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],n)=>e?e.overlaps(n)||e.abutsStart(n)?[t,e.union(n)]:[t.concat([e]),n]:[t,n]),[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0;const r=[],s=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),i=Array.prototype.concat(...s).sort(((t,e)=>t.time-e.time));for(const t of i)n+="s"===t.type?1:-1,1===n?e=t.time:(e&&+e!=+t.time&&r.push(Be.fromDateTimes(e,t.time)),e=null);return Be.merge(r)}difference(...t){return Be.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Ge}toLocaleString(t=f,e={}){return this.isValid?Qt.create(this.s.loc.clone(e),t).formatInterval(this):Ge}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Ge}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ge}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Ge}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:Ge}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):Pe.invalid(this.invalidReason)}mapEndpoints(t){return Be.fromDateTimes(t(this.s),t(this.e))}}class Qe{static hasDST(t=ht.defaultZone){const e=Kn.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return _.isValidZone(t)}static normalizeZone(t){return rt(t,ht.defaultZone)}static months(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||X.create(e,n,s)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||X.create(e,n,s)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||X.create(e,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||X.create(e,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return X.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return X.create(e,null,"gregory").eras(t)}static features(){return{relative:yt()}}}function Ke(t,e){const n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(Pe.fromMillis(r).as("days"))}const Xe={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},tn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},en=Xe.hanidec.replace(/[\[|\]]/g,"").split("");function nn({numberingSystem:t},e=""){return new RegExp(`${Xe[t||"latn"]}${e}`)}function rn(t,e=(t=>t)){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(-1!==t[n].search(Xe.hanidec))e+=en.indexOf(t[n]);else for(const t in tn){const[n,s]=tn[t];r>=n&&r<=s&&(e+=r-n)}}return parseInt(e,10)}return e}(t))}}const sn=`[ ${String.fromCharCode(160)}]`,an=new RegExp(sn,"g");function on(t){return t.replace(/\./g,"\\.?").replace(an,sn)}function un(t){return t.replace(/\./g,"").replace(an," ").toLowerCase()}function ln(t,e){return null===t?null:{regex:RegExp(t.map(on).join("|")),deser:([n])=>t.findIndex((t=>un(n)===un(t)))+e}}function cn(t,e){return{regex:t,deser:([,t,e])=>It(t,e),groups:e}}function hn(t){return{regex:t,deser:([t])=>t}}const dn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let mn=null;function fn(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const n=gn(Qt.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n}(t,e))))}function yn(t,e,n){const r=fn(Qt.parseFormat(n),t),s=r.map((e=>function(t,e){const n=nn(e),r=nn(e,"{2}"),s=nn(e,"{3}"),i=nn(e,"{4}"),a=nn(e,"{6}"),o=nn(e,"{1,2}"),u=nn(e,"{1,3}"),l=nn(e,"{1,6}"),c=nn(e,"{1,9}"),h=nn(e,"{2,4}"),d=nn(e,"{4,6}"),m=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},f=(f=>{if(t.literal)return m(f);switch(f.val){case"G":return ln(e.eras("short"),0);case"GG":return ln(e.eras("long"),0);case"y":return rn(l);case"yy":case"kk":return rn(h,Vt);case"yyyy":case"kkkk":return rn(i);case"yyyyy":return rn(d);case"yyyyyy":return rn(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return rn(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return rn(r);case"MMM":return ln(e.months("short",!0),1);case"MMMM":return ln(e.months("long",!0),1);case"LLL":return ln(e.months("short",!1),1);case"LLLL":return ln(e.months("long",!1),1);case"o":case"S":return rn(u);case"ooo":case"SSS":return rn(s);case"u":return hn(c);case"uu":return hn(o);case"uuu":case"E":case"c":return rn(n);case"a":return ln(e.meridiems(),0);case"EEE":return ln(e.weekdays("short",!1),1);case"EEEE":return ln(e.weekdays("long",!1),1);case"ccc":return ln(e.weekdays("short",!0),1);case"cccc":return ln(e.weekdays("long",!0),1);case"Z":case"ZZ":return cn(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return cn(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return hn(/[a-z_+-/]{1,256}?/i);case" ":return hn(/[^\S\n\r]/);default:return m(f)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=t,f}(e,t))),i=s.find((t=>t.invalidReason));if(i)return{input:e,tokens:r,invalidReason:i.invalidReason};{const[t,n]=function(t){return[`^${t.map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"")}$`,t]}(s),i=RegExp(t,"i"),[a,u]=function(t,e,n){const r=t.match(e);if(r){const t={};let e=1;for(const s in n)if(wt(n,s)){const i=n[s],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(t[i.token.val[0]]=i.deser(r.slice(e,e+a))),e+=a}return[r,t]}return[r,{}]}(e,i,n),[l,c,h]=u?function(t){let e,n=null;return dt(t.z)||(n=_.create(t.z)),dt(t.Z)||(n||(n=new et(t.Z)),e=t.Z),dt(t.q)||(t.M=3*(t.q-1)+1),dt(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),dt(t.u)||(t.S=Ot(t.u)),[Object.keys(t).reduce(((e,n)=>{const r=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(e[r]=t[n]),e}),{}),n,e]}(u):[null,null,void 0];if(wt(u,"a")&&wt(u,"H"))throw new o("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:i,rawMatches:a,matches:u,result:l,zone:c,specificOffset:h}}}function gn(t,e){if(!t)return null;const n=Qt.create(e,t).dtFormatter((mn||(mn=Kn.fromMillis(1555555555555)),mn)),r=n.formatToParts(),s=n.resolvedOptions();return r.map((e=>function(t,e,n){const{type:r,value:s}=t;if("literal"===r){const t=/^\s+$/.test(s);return{literal:!t,val:t?" ":s}}const i=e[r];let a=r;"hour"===r&&(a=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let o=dn[a];if("object"==typeof o&&(o=o[i]),o)return{literal:!1,val:o}}(e,t,s)))}const wn=[0,31,59,90,120,151,181,212,243,273,304,334],pn=[0,31,60,91,121,152,182,213,244,274,305,335];function vn(t,e){return new Kt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Tn(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return 0===s?7:s}function Sn(t,e,n){return n+(kt(t)?pn:wn)[e-1]}function On(t,e){const n=kt(t)?pn:wn,r=n.findIndex((t=>t<e));return{month:r+1,day:e-n[r]}}function bn(t){const{year:e,month:n,day:r}=t,s=Sn(e,n,r),i=Tn(e,n,r);let a,o=Math.floor((s-i+10)/7);return o<1?(a=e-1,o=Et(a)):o>Et(e)?(a=e+1,o=1):a=e,{weekYear:a,weekNumber:o,weekday:i,...$t(t)}}function kn(t){const{weekYear:e,weekNumber:n,weekday:r}=t,s=Tn(e,1,4),i=Nt(e);let a,o=7*n+r-s-3;o<1?(a=e-1,o+=Nt(a)):o>i?(a=e+1,o-=Nt(e)):a=e;const{month:u,day:l}=On(a,o);return{year:a,month:u,day:l,...$t(t)}}function Nn(t){const{year:e,month:n,day:r}=t;return{year:e,ordinal:Sn(e,n,r),...$t(t)}}function Mn(t){const{year:e,ordinal:n}=t,{month:r,day:s}=On(e,n);return{year:e,month:r,day:s,...$t(t)}}function Dn(t){const e=ft(t.year),n=pt(t.month,1,12),r=pt(t.day,1,Mt(t.year,t.month));return e?n?!r&&vn("day",t.day):vn("month",t.month):vn("year",t.year)}function En(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=pt(e,0,23)||24===e&&0===n&&0===r&&0===s,a=pt(n,0,59),o=pt(r,0,59),u=pt(s,0,999);return i?a?o?!u&&vn("millisecond",s):vn("second",r):vn("minute",n):vn("hour",e)}const Vn="Invalid DateTime",xn=864e13;function In(t){return new Kt("unsupported zone",`the zone "${t.name}" is not supported`)}function Cn(t){return null===t.weekData&&(t.weekData=bn(t.c)),t.weekData}function Fn(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Kn({...n,...e,old:n})}function Zn(t,e,n){let r=t-60*e*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=60*(s-e)*1e3;const i=n.offset(r);return s===i?[r,s]:[t-60*Math.min(s,i)*1e3,Math.max(s,i)]}function $n(t,e){const n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Ln(t,e,n){return Zn(Dt(t),e,n)}function zn(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),i={...t.c,year:r,month:s,day:Math.min(t.c.day,Mt(r,s))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},a=Pe.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=Dt(i);let[u,l]=Zn(o,n,t.zone);return 0!==a&&(u+=a,l=t.zone.offset(u)),{ts:u,o:l}}function qn(t,e,n,r,s,i){const{setZone:a,zone:o}=n;if(t&&0!==Object.keys(t).length||e){const r=e||o,s=Kn.fromObject(t,{...n,zone:r,specificOffset:i});return a?s:s.setZone(o)}return Kn.invalid(new Kt("unparsable",`the input "${s}" can't be parsed as ${r}`))}function jn(t,e,n=!0){return t.isValid?Qt.create(X.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function An(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=vt(t.c.year,n?6:4),e?(r+="-",r+=vt(t.c.month),r+="-",r+=vt(t.c.day)):(r+=vt(t.c.month),r+=vt(t.c.day)),r}function Un(t,e,n,r,s,i){let a=vt(t.c.hour);return e?(a+=":",a+=vt(t.c.minute),0===t.c.millisecond&&0===t.c.second&&n||(a+=":")):a+=vt(t.c.minute),0===t.c.millisecond&&0===t.c.second&&n||(a+=vt(t.c.second),0===t.c.millisecond&&r||(a+=".",a+=vt(t.c.millisecond,3))),s&&(t.isOffsetFixed&&0===t.offset&&!i?a+="Z":t.o<0?(a+="-",a+=vt(Math.trunc(-t.o/60)),a+=":",a+=vt(Math.trunc(-t.o%60))):(a+="+",a+=vt(Math.trunc(t.o/60)),a+=":",a+=vt(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const _n={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Hn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Wn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Rn=["year","month","day","hour","minute","second","millisecond"],Jn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Yn=["year","ordinal","hour","minute","second","millisecond"];function Pn(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new u(t);return e}function Gn(t,e){const n=rt(e.zone,ht.defaultZone),r=X.fromObject(e),s=ht.now();let i,a;if(dt(t.year))i=s;else{for(const e of Rn)dt(t[e])&&(t[e]=_n[e]);const e=Dn(t)||En(t);if(e)return Kn.invalid(e);const r=n.offset(s);[i,a]=Ln(t,r,n)}return new Kn({ts:i,zone:n,loc:r,o:a})}function Bn(t,e,n){const r=!!dt(n.round)||n.round,s=(t,s)=>(t=bt(t,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(t,s)),i=r=>n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r);if(n.unit)return s(i(n.unit),n.unit);for(const t of n.units){const e=i(t);if(Math.abs(e)>=1)return s(e,t)}return s(t>e?-0:0,n.units[n.units.length-1])}function Qn(t){let e,n={};return t.length>0&&"object"==typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}class Kn{constructor(t){const e=t.zone||ht.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new Kt("invalid input"):null)||(e.isValid?null:In(e));this.ts=dt(t.ts)?ht.now():t.ts;let r=null,s=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[r,s]=[t.old.c,t.old.o];else{const t=e.offset(this.ts);r=$n(this.ts,t),n=Number.isNaN(r.year)?new Kt("invalid input"):null,r=n?null:r,s=n?null:t}this._zone=e,this.loc=t.loc||X.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new Kn({})}static local(){const[t,e]=Qn(arguments),[n,r,s,i,a,o,u]=e;return Gn({year:n,month:r,day:s,hour:i,minute:a,second:o,millisecond:u},t)}static utc(){const[t,e]=Qn(arguments),[n,r,s,i,a,o,u]=e;return t.zone=et.utcInstance,Gn({year:n,month:r,day:s,hour:i,minute:a,second:o,millisecond:u},t)}static fromJSDate(t,e={}){const n=(r=t,"[object Date]"===Object.prototype.toString.call(r)?t.valueOf():NaN);var r;if(Number.isNaN(n))return Kn.invalid("invalid input");const s=rt(e.zone,ht.defaultZone);return s.isValid?new Kn({ts:n,zone:s,loc:X.fromObject(e)}):Kn.invalid(In(s))}static fromMillis(t,e={}){if(mt(t))return t<-xn||t>xn?Kn.invalid("Timestamp out of range"):new Kn({ts:t,zone:rt(e.zone,ht.defaultZone),loc:X.fromObject(e)});throw new l(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(mt(t))return new Kn({ts:1e3*t,zone:rt(e.zone,ht.defaultZone),loc:X.fromObject(e)});throw new l("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const n=rt(e.zone,ht.defaultZone);if(!n.isValid)return Kn.invalid(In(n));const r=ht.now(),s=dt(e.specificOffset)?n.offset(r):e.specificOffset,i=Ft(t,Pn),a=!dt(i.ordinal),u=!dt(i.year),l=!dt(i.month)||!dt(i.day),c=u||l,h=i.weekYear||i.weekNumber,d=X.fromObject(e);if((c||a)&&h)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new o("Can't mix ordinal dates with month/day");const m=h||i.weekday&&!c;let f,y,g=$n(r,s);m?(f=Jn,y=Hn,g=bn(g)):a?(f=Yn,y=Wn,g=Nn(g)):(f=Rn,y=_n);let w=!1;for(const t of f)dt(i[t])?i[t]=w?y[t]:g[t]:w=!0;const p=m?function(t){const e=ft(t.weekYear),n=pt(t.weekNumber,1,Et(t.weekYear)),r=pt(t.weekday,1,7);return e?n?!r&&vn("weekday",t.weekday):vn("week",t.week):vn("weekYear",t.weekYear)}(i):a?function(t){const e=ft(t.year),n=pt(t.ordinal,1,Nt(t.year));return e?!n&&vn("ordinal",t.ordinal):vn("year",t.year)}(i):Dn(i),v=p||En(i);if(v)return Kn.invalid(v);const T=m?kn(i):a?Mn(i):i,[S,O]=Ln(T,s,n),b=new Kn({ts:S,zone:n,o:O,loc:d});return i.weekday&&c&&t.weekday!==b.weekday?Kn.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${b.toISO()}`):b}static fromISO(t,e={}){const[n,r]=function(t){return ne(t,[Ee,Ce],[Ve,Fe],[xe,Ze],[Ie,$e])}(t);return qn(n,r,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[n,r]=function(t){return ne(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Se,Oe])}(t);return qn(n,r,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[n,r]=function(t){return ne(t,[be,Me],[ke,Me],[Ne,De])}(t);return qn(n,r,e,"HTTP",e)}static fromFormat(t,e,n={}){if(dt(t)||dt(e))throw new l("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=n,i=X.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[a,o,u,c]=function(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:a}=yn(t,e,n);return[r,s,i,a]}(i,t,e);return c?Kn.invalid(c):qn(a,o,n,`format ${e}`,t,u)}static fromString(t,e,n={}){return Kn.fromFormat(t,e,n)}static fromSQL(t,e={}){const[n,r]=function(t){return ne(t,[ze,Ce],[qe,je])}(t);return qn(n,r,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new l("need to specify a reason the DateTime is invalid");const n=t instanceof Kt?t:new Kt(t,e);if(ht.throwOnInvalid)throw new s(n);return new Kn({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const n=gn(t,X.fromObject(e));return n?n.map((t=>t?t.val:null)).join(""):null}static expandFormat(t,e={}){return fn(Qt.parseFormat(t),X.fromObject(e)).map((t=>t.val)).join("")}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Cn(this).weekYear:NaN}get weekNumber(){return this.isValid?Cn(this).weekNumber:NaN}get weekday(){return this.isValid?Cn(this).weekday:NaN}get ordinal(){return this.isValid?Nn(this.c).ordinal:NaN}get monthShort(){return this.isValid?Qe.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Qe.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Qe.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Qe.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,e=6e4,n=Dt(this.c),r=this.zone.offset(n-t),s=this.zone.offset(n+t),i=this.zone.offset(n-r*e),a=this.zone.offset(n-s*e);if(i===a)return[this];const o=n-i*e,u=n-a*e,l=$n(o,i),c=$n(u,a);return l.hour===c.hour&&l.minute===c.minute&&l.second===c.second&&l.millisecond===c.millisecond?[Fn(this,{ts:o}),Fn(this,{ts:u})]:[this]}get isInLeapYear(){return kt(this.year)}get daysInMonth(){return Mt(this.year,this.month)}get daysInYear(){return this.isValid?Nt(this.year):NaN}get weeksInWeekYear(){return this.isValid?Et(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:n,calendar:r}=Qt.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:r}}toUTC(t=0,e={}){return this.setZone(et.instance(t),e)}toLocal(){return this.setZone(ht.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:n=!1}={}){if((t=rt(t,ht.defaultZone)).equals(this.zone))return this;if(t.isValid){let r=this.ts;if(e||n){const e=t.offset(this.ts),n=this.toObject();[r]=Ln(n,e,t)}return Fn(this,{ts:r,zone:t})}return Kn.invalid(In(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:n}={}){return Fn(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=Ft(t,Pn),n=!dt(e.weekYear)||!dt(e.weekNumber)||!dt(e.weekday),r=!dt(e.ordinal),s=!dt(e.year),i=!dt(e.month)||!dt(e.day),a=s||i,u=e.weekYear||e.weekNumber;if((a||r)&&u)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(i&&r)throw new o("Can't mix ordinal dates with month/day");let l;n?l=kn({...bn(this.c),...e}):dt(e.ordinal)?(l={...this.toObject(),...e},dt(e.day)&&(l.day=Math.min(Mt(l.year,l.month),l.day))):l=Mn({...Nn(this.c),...e});const[c,h]=Ln(l,this.o,this.zone);return Fn(this,{ts:c,o:h})}plus(t){return this.isValid?Fn(this,zn(this,Pe.fromDurationLike(t))):this}minus(t){return this.isValid?Fn(this,zn(this,Pe.fromDurationLike(t).negate())):this}startOf(t){if(!this.isValid)return this;const e={},n=Pe.normalizeUnit(t);switch(n){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===n&&(e.weekday=1),"quarters"===n){const t=Math.ceil(this.month/3);e.month=3*(t-1)+1}return this.set(e)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,e={}){return this.isValid?Qt.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):Vn}toLocaleString(t=f,e={}){return this.isValid?Qt.create(this.loc.clone(e),t).formatDateTime(this):Vn}toLocaleParts(t={}){return this.isValid?Qt.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;const i="extended"===t;let a=An(this,i);return a+="T",a+=Un(this,i,e,n,r,s),a}toISODate({format:t="extended"}={}){return this.isValid?An(this,"extended"===t):null}toISOWeekDate(){return jn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:s=!1,format:i="extended"}={}){return this.isValid?(r?"T":"")+Un(this,"extended"===i,e,t,n,s):null}toRFC2822(){return jn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return jn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?An(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(e||t)&&(n&&(r+=" "),e?r+="z":t&&(r+="ZZ")),jn(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Vn}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",n={}){if(!this.isValid||!t.isValid)return Pe.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(o=e,Array.isArray(o)?o:[o]).map(Pe.normalizeUnit),i=t.valueOf()>this.valueOf(),a=function(t,e,n,r){let[s,i,a,o]=function(t,e,n){const r=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const n=Ke(t,e);return(n-n%7)/7}],["days",Ke]],s={},i=t;let a,o;for(const[u,l]of r)n.indexOf(u)>=0&&(a=u,s[u]=l(t,e),o=i.plus(s),o>e?(s[u]--,(t=i.plus(s))>e&&(o=t,s[u]--,t=i.plus(s))):t=o);return[t,s,o,a]}(t,e,n);const u=e-s,l=n.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===l.length&&(a<e&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+u/(a-s)));const c=Pe.fromObject(i,r);return l.length>0?Pe.fromMillis(u,r).shiftTo(...l).plus(c):c}(i?this:t,i?t:this,s,r);var o;return i?a.negate():a}diffNow(t="milliseconds",e={}){return this.diff(Kn.now(),t,e)}until(t){return this.isValid?Be.fromDateTimes(this,t):this}hasSame(t,e){if(!this.isValid)return!1;const n=t.valueOf(),r=this.setZone(t.zone,{keepLocalTime:!0});return r.startOf(e)<=n&&n<=r.endOf(e)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||Kn.fromObject({},{zone:this.zone}),n=t.padding?this<e?-t.padding:t.padding:0;let r=["years","months","days","hours","minutes","seconds"],s=t.unit;return Array.isArray(t.unit)&&(r=t.unit,s=void 0),Bn(e,this.plus(n),{...t,numeric:"always",units:r,unit:s})}toRelativeCalendar(t={}){return this.isValid?Bn(t.base||Kn.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Kn.isDateTime))throw new l("min requires all arguments be DateTimes");return gt(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(Kn.isDateTime))throw new l("max requires all arguments be DateTimes");return gt(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,n={}){const{locale:r=null,numberingSystem:s=null}=n;return yn(X.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,n={}){return Kn.fromFormatExplain(t,e,n)}static get DATE_SHORT(){return f}static get DATE_MED(){return y}static get DATE_MED_WITH_WEEKDAY(){return g}static get DATE_FULL(){return w}static get DATE_HUGE(){return p}static get TIME_SIMPLE(){return v}static get TIME_WITH_SECONDS(){return T}static get TIME_WITH_SHORT_OFFSET(){return S}static get TIME_WITH_LONG_OFFSET(){return O}static get TIME_24_SIMPLE(){return b}static get TIME_24_WITH_SECONDS(){return k}static get TIME_24_WITH_SHORT_OFFSET(){return N}static get TIME_24_WITH_LONG_OFFSET(){return M}static get DATETIME_SHORT(){return D}static get DATETIME_SHORT_WITH_SECONDS(){return E}static get DATETIME_MED(){return V}static get DATETIME_MED_WITH_SECONDS(){return x}static get DATETIME_MED_WITH_WEEKDAY(){return I}static get DATETIME_FULL(){return C}static get DATETIME_FULL_WITH_SECONDS(){return F}static get DATETIME_HUGE(){return Z}static get DATETIME_HUGE_WITH_SECONDS(){return $}}function Xn(t){if(Kn.isDateTime(t))return t;if(t&&t.valueOf&&mt(t.valueOf()))return Kn.fromJSDate(t);if(t&&"object"==typeof t)return Kn.fromObject(t);throw new l(`Unknown datetime argument: ${t}, of type ${typeof t}`)}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8861],{94443:(e,t,r)=>{r.d(t,{ME:()=>f,Su:()=>h,tz:()=>y});var s=r(20102),o=r(50758),i=r(95330),n=r(70171);const a=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,l={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 u(e){return e in l}Object.keys(l);const p=[],c=new Map;function d(e){for(const t of c.keys())m(e.pattern,t)&&c.delete(t)}function y(e){return p.includes(e)||(d(e),p.unshift(e)),(0,o.kB)((()=>{const t=p.indexOf(e);t>-1&&(p.splice(t,1),d(e))}))}async function f(e){const t=(0,n.Kd)();c.has(e)||c.set(e,async function(e,t){const r=[];for(const s of p)if(m(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new s.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new s.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=c.get(e);return r&&await g.add(r),r}function h(e){if(!a.test(e))return null;const t=a.exec(e);if(null===t)return null;const[,r,s]=t,o=r+(s?"-"+s.toUpperCase():"");return u(o)?o:u(r)?r:null}function m(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,n.Ze)((()=>{c.clear()}));const g=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,i.hh)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},54295:(e,t,r)=>{r.d(t,{V:()=>n});var s=r(43697),o=r(5600),i=(r(75215),r(67676),r(80442),r(52011));const n=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,s._)([(0,o.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,s._)([(0,i.j)("esri.layers.mixins.APIKeyMixin")],t),t}},17287:(e,t,r)=>{r.d(t,{Y:()=>l});var s=r(43697),o=r(92604),i=r(5600),n=(r(75215),r(67676),r(80442),r(52011)),a=r(66677);const l=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,a.Qc)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Nm)(e,o.Z.getLogger(this)))}};return(0,s._)([(0,i.Cb)()],t.prototype,"title",null),(0,s._)([(0,i.Cb)({type:String})],t.prototype,"url",null),t=(0,s._)([(0,n.j)("esri.layers.mixins.ArcGISService")],t),t}},17017:(e,t,r)=>{r.d(t,{N:()=>n});var s=r(43697),o=r(5600),i=(r(75215),r(67676),r(80442),r(52011));const n=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,s._)([(0,o.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,s._)([(0,i.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>C});var s=r(43697),o=r(68773),i=r(40330),n=r(3172),a=r(66643),l=r(20102),u=r(92604),p=r(70586),c=r(95330),d=r(17452),y=r(5600),f=(r(75215),r(67676),r(80442),r(71715)),h=r(52011),m=r(30556),g=r(84230),v=r(48522),w=r(15235),b=r(86082),_=r(14661);const C=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new w.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const{load:s}=await r.e(8062).then(r.bind(r,18062));return(0,c.k_)(t),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.D_)(e)||u.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async setUserPrivileges(e,t){if(!o.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:s},content:{updateItem:o}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",o)}catch(e){(0,c.r9)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const s=e===r.id;if(s&&r.portal.user)return(0,_.Ss)(r);let o,n;if(s)o=r.portal.url;else try{o=await(0,g.oP)(this.url,t)}catch(e){(0,c.r9)(e)}if(!o||!(0,d.Zo)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;n=await(i.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.r9)(e)}if(!n)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(s?await r.reload():(r=new w.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return(0,_.Ss)(r)}catch(e){(0,c.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?i.id?.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,null==r||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=i.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const s=`${r.owningSystemUrl}/sharing/rest`,o=v.Z.getDefault();if(o&&o.loaded&&(0,d.Fv)(o.restUrl)===(0,d.Fv)(s))return o.user;const l=`${s}/community/self`,u=null!=e?e.signal:null,p=await(0,a.q6)((0,n.Z)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?b.Z.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,s=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||v.Z.getDefault());return r&&s&&!(0,d.tm)(s.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,s._)([(0,y.Cb)({type:w.default})],t.prototype,"portalItem",null),(0,s._)([(0,f.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,s._)([(0,m.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,s._)([(0,y.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,s._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,s._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,s._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,s._)([(0,h.j)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},70082:(e,t,r)=>{r.d(t,{Z:()=>c});var s=r(43697),o=r(2368),i=r(35454),n=r(96674),a=r(5600),l=(r(75215),r(67676),r(80442),r(52011));const u=new i.X({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,o.J)(n.wq)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,s._)([(0,a.Cb)({json:{write:!0}})],p.prototype,"name",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],p.prototype,"description",void 0),(0,s._)([(0,a.Cb)({json:{read:u.read,write:u.write}})],p.prototype,"drawingTool",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,s._)([(0,l.j)("esri.layers.support.FeatureTemplate")],p);const c=p},16451:(e,t,r)=>{r.d(t,{Z:()=>y});var s=r(43697),o=r(2368),i=r(96674),n=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),l=r(52011),u=r(30556),p=r(72729),c=r(70082);let d=class extends((0,o.J)(i.wq)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,p.im)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,s._)([(0,n.Cb)({json:{write:!0}})],d.prototype,"id",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],d.prototype,"name",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],d.prototype,"domains",void 0),(0,s._)([(0,a.r)("domains")],d.prototype,"readDomains",null),(0,s._)([(0,u.c)("domains")],d.prototype,"writeDomains",null),(0,s._)([(0,n.Cb)({type:[c.Z],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,s._)([(0,l.j)("esri.layers.support.FeatureType")],d);const y=d},56765:(e,t,r)=>{r.d(t,{Z:()=>p});var s,o=r(43697),i=r(46791),n=r(96674),a=r(5600),l=(r(75215),r(67676),r(80442),r(52011));let u=s=class extends n.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new i.Z}clone(){return new s({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],u.prototype,"floorField",void 0),(0,o._)([(0,a.Cb)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,o._)([(0,a.Cb)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=s=(0,o._)([(0,l.j)("esri.layers.support.LayerFloorInfo")],u);const p=u},30707:(e,t,r)=>{r.d(t,{a:()=>c,r:()=>u});var s=r(20102),o=r(22974),i=r(92604),n=r(54306);const a=i.Z.getLogger("esri.layers.support.labelingInfo"),l=/\[([^\[\]]+)\]/gi;function u(e,t,r){return e?e.map((e=>{const s=new n.Z;if(s.read(e,r),s.labelExpression){const e=t.fields||t.layerDefinition&&t.layerDefinition.fields||this.fields;s.labelExpression=s.labelExpression.replaceAll(l,((t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const s=t[e].name;if(s.toLowerCase()===r)return s}return e}(r,e)}]`))}return s})):null}const p={esriGeometryPoint:["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along"],esriGeometryMultipoint:null};function c(e,t){const r=(0,o.d9)(e);return r.some((e=>function(e,t){const r=e.labelPlacement,o=p[t];if(!e.symbol)return a.warn("No ILabelClass symbol specified."),!0;if(!o)return a.error(new s.Z("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),!0;if(!o.includes(r)){const s=o[0];r&&a.warn(`Found invalid label placement type ${r} for ${t}. Defaulting to ${s}`),e.labelPlacement=s}return!1}(e,t)))?[]:r}},84230:(e,t,r)=>{r.d(t,{A2:()=>n,S1:()=>p,fP:()=>l,fb:()=>i,ln:()=>c,oP:()=>u,rQ:()=>a});var s=r(40330),o=r(3172);const i={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function n(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function a(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function l(e){return("feature"===e?.type||"subtype-group"===e?.type)&&"feature-layer"===e.source?.type}async function u(e,t){const r=s.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const i=e.toLowerCase().indexOf("/rest/services");if(-1===i)return null;const n=`${e.substring(0,i)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,o.Z)(n,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function p(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function c(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}},54275:(e,t,r)=>{r.d(t,{h:()=>c});var s=r(80442),o=r(66677);function i(e,t,r){return!!a(e,t,r)}function n(e,t,r){return a(e,t,r)}function a(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}const l={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function u(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function p(e,t){const r=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!r?.includes(t.toLowerCase())}function c(e,t){return{analytics:d(e),attachment:y(e),data:f(e),metadata:h(e),operations:m(e.capabilities,e,t),query:g(e,t),queryRelated:v(e),queryTopFeatures:w(e),editing:b(e)}}function d(e){return{supportsCacheHint:p(e.advancedQueryCapabilities,"queryAnalytics")}}function y(e){const t=e.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:p(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:i(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=l[e.name];t&&(r[t]=!!e.isEnabled)})),r}function f(e){return{isVersioned:i(e,"isDataVersioned",!1),supportsAttachment:i(e,"hasAttachments",!1),supportsM:i(e,"hasM",!1),supportsZ:i(e,"hasZ",!1)}}function h(e){return{supportsAdvancedFieldProperties:i(e,"supportsFieldDescriptionProperty",!1)}}function m(e,t,r){const s=e?e.toLowerCase().split(",").map((e=>e.trim())):[],n=r?(0,o.Qc)(r):null,a=s.includes(null!=n&&"MapServer"===n.serverType?"data":"query"),l=s.includes("editing")&&!t.datesInUnknownTimezone;let u=l&&s.includes("create"),p=l&&s.includes("delete"),c=l&&s.includes("update");const d=s.includes("changetracking"),y=t.advancedQueryCapabilities;return l&&!(u||p||c)&&(u=p=c=!0),{supportsCalculate:i(t,"supportsCalculate",!1),supportsTruncate:i(t,"supportsTruncate",!1),supportsValidateSql:i(t,"supportsValidateSql",!1),supportsAdd:u,supportsDelete:p,supportsEditing:l,supportsChangeTracking:d,supportsQuery:a,supportsQueryAnalytics:i(y,"supportsQueryAnalytic",!1),supportsQueryAttachments:i(y,"supportsQueryAttachments",!1),supportsQueryTopFeatures:i(y,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:i(t,"supportsAttachmentsResizing",!1),supportsSync:s.includes("sync"),supportsUpdate:c,supportsExceedsLimitStatistics:i(t,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:i(t,"supportsAsyncConvert3D",!1)}}function g(e,t){const r=e.advancedQueryCapabilities,a=e.ownershipBasedAccessControlForFeatures,l=e.archivingInfo,c=e.currentVersion,d=t?.includes("MapServer"),y=!d||c>=(0,s.Z)("mapserver-pbf-version-support"),f=(0,o.M8)(t),h=new Set((e.supportedQueryFormats??"").split(",").map((e=>e.toLowerCase().trim())));return{supportsStatistics:i(r,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:i(r,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:i(r,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:u(r),supportsCentroid:i(r,"supportsReturningGeometryCentroid",!1),supportsDistance:i(r,"supportsQueryWithDistance",!1),supportsDistinct:i(r,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:i(r,"supportsReturningQueryExtent",!1),supportsGeometryProperties:i(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:i(r,"supportsHavingClause",!1),supportsOrderBy:i(r,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:i(r,"supportsPagination",!1),supportsQuantization:i(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:i(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:i(e,"supportsReturningQueryGeometry",!1),supportsResultType:i(r,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:i(r,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:i(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:i(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:i(r,"supportsTopFeaturesQuery",!1),supportsQueryByAnonymous:i(a,"allowAnonymousToQuery",!0),supportsQueryByOthers:i(a,"allowOthersToQuery",!0),supportsHistoricMoment:i(l,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:y&&h.has("pbf"),supportsDisjointSpatialRelationship:i(r,"supportsDisjointSpatialRel",!1),supportsCacheHint:i(r,"supportsQueryWithCacheHint",!1)||p(r,"query"),supportsDefaultSpatialReference:i(r,"supportsDefaultSR",!1),supportsCompactGeometry:f,supportsFullTextSearch:i(r,"supportsFullTextSearch",!1),maxRecordCountFactor:n(e,"maxRecordCountFactor",void 0),maxRecordCount:n(e,"maxRecordCount",void 0),standardMaxRecordCount:n(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:n(e,"tileMaxRecordCount",void 0)}}function v(e){const t=e.advancedQueryCapabilities,r=i(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:i(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:p(t,"queryRelated")}}function w(e){return{supportsCacheHint:p(e.advancedQueryCapabilities,"queryTopFilter")}}function b(e){const t=e.ownershipBasedAccessControlForFeatures,r=e?e.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:i(e,"allowGeometryUpdates",!0),supportsGlobalId:i(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:i(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:i(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:i(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:i(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:i(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:i(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:i(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:i(t,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:i(r,"supportsAsyncApplyEdits",!1)}}},14661:(e,t,r)=>{r.d(t,{$o:()=>c,Ct:()=>p,Fj:()=>l,Kz:()=>d,Ss:()=>y,_$:()=>a,ck:()=>u,qj:()=>n});var s=r(73615),o=r(82971),i=r(40488);function n(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e,t,r){r?n(e,t):u(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,i.Sx)(e);const r=o.Z.WGS84;return await(0,s.initializeProjection)(t,r),(0,s.project)(e,r)}(r)}const d={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table",HOSTED_SERVICE:"Hosted Service",LOCAL_SCENE:"ViewingMode-Local",TILED_IMAGERY:"Tiled Imagery"};function y(e){const{portal:t,isOrgItem:r,itemControl:s}=e,o=t.user?.privileges;let i=!o||o.includes("features:user:edit"),n=!!r&&!!o?.includes("features:user:fullEdit");const a="update"===s||"admin"===s;return a?n=i=!0:n&&(i=!0),{features:{edit:i,fullEdit:n},content:{updateItem:a}}}},74889:(e,t,r)=>{r.d(t,{Z:()=>w});var s,o=r(43697),i=r(66577),n=r(38171),a=r(35454),l=r(96674),u=r(22974),p=r(5600),c=(r(75215),r(71715)),d=r(52011),y=r(30556),f=r(82971),h=r(33955),m=r(1231);const g=new a.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=s=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=f.Z.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const o=e[t],i=n.Z.fromJSON(o),a=o.geometry&&o.geometry.spatialReference;null==i.geometry||a||(i.geometry.spatialReference=r);const l=o.aggregateGeometries,u=i.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],s=l[e],o=s?.spatialReference;null==t||o||(t.spatialReference=r)}s.push(i)}return s}writeGeometryType(e,t,r,s){if(e)return void g.write(e,t,r,s);const{features:o}=this;if(o)for(const e of o)if(e&&null!=e.geometry)return void g.write(e.geometry.type,t,r,s)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,s=(0,h.im)(e);return s&&!r&&t.spatialReference&&(s.spatialReference=f.Z.fromJSON(t.spatialReference)),s}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new s(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 s=t.features[r];if(s.geometry){const t=e&&e[r];s.geometry=t&&t.toJSON()||s.geometry}}return t}quantize(e){const{scale:[t,r],translate:[s,o]}=e,i=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-s)/t)),(e=>Math.round((o-e)/r)));for(let e=0,t=i.length;e<t;e++)n?.(i[e].geometry)||(i.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:[s,o],scale:[i,n]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*i+s),(e=>o-e*n),a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let s,o;const i=[];for(let n=0,a=e.length;n<a;n++){const a=e[n];if(n>0){const e=t(a[0]),n=r(a[1]);e===s&&n===o||(i.push([e-s,n-o]),s=e,o=n)}else s=t(a[0]),o=r(a[1]),i.push([s,o])}return i.length>0?i: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 s=(0,h.oU)(e)?e.rings:e.paths,o=[];for(let e=0,i=s.length;e<i;e++){const i=s[e],n=this._quantizePoints(i,t,r);n&&o.push(n)}return o.length>0?((0,h.oU)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const s=this._quantizePoints(e.points,t,r);return s&&s.length>0?(e.points=s,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,s,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),s&&(e.z=s(e.z))}:"polyline"===e||"polygon"===e?e=>{const i=(0,h.oU)(e)?e.rings:e.paths;let n,a;for(let e=0,s=i.length;e<s;e++){const s=i[e];for(let e=0,o=s.length;e<o;e++){const o=s[e];e>0?(n+=o[0],a+=o[1]):(n=o[0],a=o[1]),o[0]=t(n),o[1]=r(a)}}if(s&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2]),r[3]=o(r[3])}}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),s&&null!=e.zmax&&null!=e.zmin&&(e.zmax=s(e.zmax),e.zmin=s(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const i=e.points;let n,a;for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(n+=s[0],a+=s[1]):(n=s[0],a=s[1]),s[0]=t(n),s[1]=r(a)}if(s&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=s(t[2]),t[3]=o(t[3])}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=s(t[2])}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=o(t[2])}}:null}};(0,o._)([(0,p.Cb)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o._)([(0,p.Cb)({type:[n.Z],json:{write:!0}})],v.prototype,"features",void 0),(0,o._)([(0,c.r)("features")],v.prototype,"readFeatures",null),(0,o._)([(0,p.Cb)({type:[m.Z],json:{write:!0}})],v.prototype,"fields",void 0),(0,o._)([(0,p.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,o._)([(0,y.c)("geometryType")],v.prototype,"writeGeometryType",null),(0,o._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o._)([(0,p.Cb)({types:i.qM,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o._)([(0,c.r)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o._)([(0,p.Cb)({type:f.Z,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o._)([(0,y.c)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o._)([(0,p.Cb)({json:{write:!0}})],v.prototype,"transform",void 0),v=s=(0,o._)([(0,d.j)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const w=v}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8861],{94443:(e,t,r)=>{r.d(t,{ME:()=>f,Su:()=>h,tz:()=>y});var s=r(20102),o=r(50758),i=r(95330),n=r(70171);const a=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,l={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 u(e){return e in l}Object.keys(l);const p=[],c=new Map;function d(e){for(const t of c.keys())m(e.pattern,t)&&c.delete(t)}function y(e){return p.includes(e)||(d(e),p.unshift(e)),(0,o.kB)((()=>{const t=p.indexOf(e);t>-1&&(p.splice(t,1),d(e))}))}async function f(e){const t=(0,n.Kd)();c.has(e)||c.set(e,async function(e,t){const r=[];for(const s of p)if(m(s.pattern,e))try{return await s.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new s.Z("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new s.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=c.get(e);return r&&await g.add(r),r}function h(e){if(!a.test(e))return null;const t=a.exec(e);if(null===t)return null;const[,r,s]=t,o=r+(s?"-"+s.toUpperCase():"");return u(o)?o:u(r)?r:null}function m(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,n.Ze)((()=>{c.clear()}));const g=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,i.hh)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},54295:(e,t,r)=>{r.d(t,{V:()=>n});var s=r(43697),o=r(5600),i=(r(75215),r(67676),r(80442),r(52011));const n=e=>{let t=class extends e{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,s._)([(0,o.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,s._)([(0,i.j)("esri.layers.mixins.APIKeyMixin")],t),t}},17287:(e,t,r)=>{r.d(t,{Y:()=>l});var s=r(43697),o=r(92604),i=r(5600),n=(r(75215),r(67676),r(80442),r(52011)),a=r(66677);const l=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,a.Qc)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Nm)(e,o.Z.getLogger(this)))}};return(0,s._)([(0,i.Cb)()],t.prototype,"title",null),(0,s._)([(0,i.Cb)({type:String})],t.prototype,"url",null),t=(0,s._)([(0,n.j)("esri.layers.mixins.ArcGISService")],t),t}},17017:(e,t,r)=>{r.d(t,{N:()=>n});var s=r(43697),o=r(5600),i=(r(75215),r(67676),r(80442),r(52011));const n=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,s._)([(0,o.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,s._)([(0,i.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>C});var s=r(43697),o=r(68773),i=r(40330),n=r(3172),a=r(66643),l=r(20102),u=r(92604),p=r(70586),c=r(95330),d=r(17452),y=r(5600),f=(r(75215),r(67676),r(80442),r(71715)),h=r(52011),m=r(30556),g=r(84230),v=r(48522),w=r(15235),b=r(86082),_=r(14661);const C=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new w.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const{load:s}=await r.e(8062).then(r.bind(r,18062));return(0,c.k_)(t),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.D_)(e)||u.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async setUserPrivileges(e,t){if(!o.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:s},content:{updateItem:o}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",o)}catch(e){(0,c.r9)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const s=e===r.id;if(s&&r.portal.user)return(0,_.Ss)(r);let o,n;if(s)o=r.portal.url;else try{o=await(0,g.oP)(this.url,t)}catch(e){(0,c.r9)(e)}if(!o||!(0,d.Zo)(o,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;n=await(i.id?.getCredential(`${o}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.r9)(e)}if(!n)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(s?await r.reload():(r=new w.default({id:e,portal:{url:o}}),await r.load(t)),r.portal.user)return(0,_.Ss)(r)}catch(e){(0,c.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?i.id?.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,null==r||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=i.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const s=`${r.owningSystemUrl}/sharing/rest`,o=v.Z.getDefault();if(o&&o.loaded&&(0,d.Fv)(o.restUrl)===(0,d.Fv)(s))return o.user;const l=`${s}/community/self`,u=null!=e?e.signal:null,p=await(0,a.q6)((0,n.Z)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?b.Z.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,s=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||v.Z.getDefault());return r&&s&&!(0,d.tm)(s.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,s._)([(0,y.Cb)({type:w.default})],t.prototype,"portalItem",null),(0,s._)([(0,f.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,s._)([(0,m.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,s._)([(0,y.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,s._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,s._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,s._)([(0,y.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,s._)([(0,h.j)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},70082:(e,t,r)=>{r.d(t,{Z:()=>c});var s=r(43697),o=r(2368),i=r(35454),n=r(96674),a=r(5600),l=(r(75215),r(67676),r(80442),r(52011));const u=new i.X({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let p=class extends((0,o.J)(n.wq)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,s._)([(0,a.Cb)({json:{write:!0}})],p.prototype,"name",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],p.prototype,"description",void 0),(0,s._)([(0,a.Cb)({json:{read:u.read,write:u.write}})],p.prototype,"drawingTool",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],p.prototype,"prototype",void 0),(0,s._)([(0,a.Cb)({json:{write:!0}})],p.prototype,"thumbnail",void 0),p=(0,s._)([(0,l.j)("esri.layers.support.FeatureTemplate")],p);const c=p},16451:(e,t,r)=>{r.d(t,{Z:()=>y});var s=r(43697),o=r(2368),i=r(96674),n=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),l=r(52011),u=r(30556),p=r(72729),c=r(70082);let d=class extends((0,o.J)(i.wq)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,p.im)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,s._)([(0,n.Cb)({json:{write:!0}})],d.prototype,"id",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],d.prototype,"name",void 0),(0,s._)([(0,n.Cb)({json:{write:!0}})],d.prototype,"domains",void 0),(0,s._)([(0,a.r)("domains")],d.prototype,"readDomains",null),(0,s._)([(0,u.c)("domains")],d.prototype,"writeDomains",null),(0,s._)([(0,n.Cb)({type:[c.Z],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,s._)([(0,l.j)("esri.layers.support.FeatureType")],d);const y=d},56765:(e,t,r)=>{r.d(t,{Z:()=>p});var s,o=r(43697),i=r(46791),n=r(96674),a=r(5600),l=(r(75215),r(67676),r(80442),r(52011));let u=s=class extends n.wq{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new i.Z}clone(){return new s({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,o._)([(0,a.Cb)({type:String,json:{write:!0}})],u.prototype,"floorField",void 0),(0,o._)([(0,a.Cb)({json:{read:!1,write:!1}})],u.prototype,"viewAllMode",void 0),(0,o._)([(0,a.Cb)({json:{read:!1,write:!1}})],u.prototype,"viewAllLevelIds",void 0),u=s=(0,o._)([(0,l.j)("esri.layers.support.LayerFloorInfo")],u);const p=u},30707:(e,t,r)=>{r.d(t,{a:()=>c,r:()=>u});var s=r(20102),o=r(22974),i=r(92604),n=r(54306);const a=i.Z.getLogger("esri.layers.support.labelingInfo"),l=/\[([^\[\]]+)\]/gi;function u(e,t,r){return e?e.map((e=>{const s=new n.Z;if(s.read(e,r),s.labelExpression){const e=t.fields||t.layerDefinition&&t.layerDefinition.fields||this.fields;s.labelExpression=s.labelExpression.replaceAll(l,((t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const s=t[e].name;if(s.toLowerCase()===r)return s}return e}(r,e)}]`))}return s})):null}const p={esriGeometryPoint:["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along"],esriGeometryMultipoint:null};function c(e,t){const r=(0,o.d9)(e);return r.some((e=>function(e,t){const r=e.labelPlacement,o=p[t];if(!e.symbol)return a.warn("No ILabelClass symbol specified."),!0;if(!o)return a.error(new s.Z("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),!0;if(!o.includes(r)){const s=o[0];r&&a.warn(`Found invalid label placement type ${r} for ${t}. Defaulting to ${s}`),e.labelPlacement=s}return!1}(e,t)))?[]:r}},84230:(e,t,r)=>{r.d(t,{A2:()=>n,S1:()=>p,fP:()=>l,fb:()=>i,ln:()=>c,oP:()=>u,rQ:()=>a});var s=r(40330),o=r(3172);const i={Point:"SceneLayer","3DObject":"SceneLayer",IntegratedMesh:"IntegratedMeshLayer",PointCloud:"PointCloudLayer",Building:"BuildingSceneLayer"};function n(e){const t=e?.type;return"building-scene"===t||"integrated-mesh"===t||"point-cloud"===t||"scene"===t}function a(e){return"feature"===e?.type&&!e.url&&"memory"===e.source?.type}function l(e){return("feature"===e?.type||"subtype-group"===e?.type)&&"feature-layer"===e.source?.type}async function u(e,t){const r=s.id?.findServerInfo(e);if(null!=r?.currentVersion)return r.owningSystemUrl||null;const i=e.toLowerCase().indexOf("/rest/services");if(-1===i)return null;const n=`${e.substring(0,i)}/rest/info`,a=null!=t?t.signal:null,{data:l}=await(0,o.Z)(n,{query:{f:"json"},responseType:"json",signal:a});return l?.owningSystemUrl||null}function p(e){return function(e){if(!("capabilities"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"imagery":case"knowledge-graph-sublayer":case"ogc-feature":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":case"wfs":return!0;default:return!1}}(e)?"effectiveCapabilities"in e?e.effectiveCapabilities:e.capabilities:null}function c(e){return!!function(e){if(!("editingEnabled"in e))return!1;switch(e.type){case"csv":case"feature":case"geojson":case"oriented-imagery":case"scene":case"subtype-group":case"subtype-sublayer":return!0;default:return!1}}(e)&&("effectiveEditingEnabled"in e?e.effectiveEditingEnabled:e.editingEnabled)}},54275:(e,t,r)=>{r.d(t,{h:()=>c});var s=r(80442),o=r(66677);function i(e,t,r){return!!a(e,t,r)}function n(e,t,r){return a(e,t,r)}function a(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}const l={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function u(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function p(e,t){const r=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!r?.includes(t.toLowerCase())}function c(e,t){return{analytics:d(e),attachment:y(e),data:f(e),metadata:h(e),operations:m(e.capabilities,e,t),query:g(e,t),queryRelated:v(e),queryTopFeatures:w(e),editing:b(e)}}function d(e){return{supportsCacheHint:p(e.advancedQueryCapabilities,"queryAnalytics")}}function y(e){const t=e.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:p(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:i(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=l[e.name];t&&(r[t]=!!e.isEnabled)})),r}function f(e){return{isVersioned:i(e,"isDataVersioned",!1),supportsAttachment:i(e,"hasAttachments",!1),supportsM:i(e,"hasM",!1),supportsZ:i(e,"hasZ",!1)}}function h(e){return{supportsAdvancedFieldProperties:i(e,"supportsFieldDescriptionProperty",!1)}}function m(e,t,r){const s=e?e.toLowerCase().split(",").map((e=>e.trim())):[],n=r?(0,o.Qc)(r):null,a=s.includes(null!=n&&"MapServer"===n.serverType?"data":"query"),l=s.includes("editing")&&!t.datesInUnknownTimezone;let u=l&&s.includes("create"),p=l&&s.includes("delete"),c=l&&s.includes("update");const d=s.includes("changetracking"),y=t.advancedQueryCapabilities;return l&&!(u||p||c)&&(u=p=c=!0),{supportsCalculate:i(t,"supportsCalculate",!1),supportsTruncate:i(t,"supportsTruncate",!1),supportsValidateSql:i(t,"supportsValidateSql",!1),supportsAdd:u,supportsDelete:p,supportsEditing:l,supportsChangeTracking:d,supportsQuery:a,supportsQueryAnalytics:i(y,"supportsQueryAnalytic",!1),supportsQueryAttachments:i(y,"supportsQueryAttachments",!1),supportsQueryTopFeatures:i(y,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:i(t,"supportsAttachmentsResizing",!1),supportsSync:s.includes("sync"),supportsUpdate:c,supportsExceedsLimitStatistics:i(t,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:i(t,"supportsAsyncConvert3D",!1)}}function g(e,t){const r=e.advancedQueryCapabilities,a=e.ownershipBasedAccessControlForFeatures,l=e.archivingInfo,c=e.currentVersion,d=t?.includes("MapServer"),y=!d||c>=(0,s.Z)("mapserver-pbf-version-support"),f=(0,o.M8)(t),h=new Set((e.supportedQueryFormats??"").split(",").map((e=>e.toLowerCase().trim())));return{supportsStatistics:i(r,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:i(r,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:i(r,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:u(r),supportsCentroid:i(r,"supportsReturningGeometryCentroid",!1),supportsDistance:i(r,"supportsQueryWithDistance",!1),supportsDistinct:i(r,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:i(r,"supportsReturningQueryExtent",!1),supportsGeometryProperties:i(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:i(r,"supportsHavingClause",!1),supportsOrderBy:i(r,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:i(r,"supportsPagination",!1),supportsQuantization:i(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:i(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:i(e,"supportsReturningQueryGeometry",!1),supportsResultType:i(r,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:i(r,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:i(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:i(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:i(r,"supportsTopFeaturesQuery",!1),supportsQueryByAnonymous:i(a,"allowAnonymousToQuery",!0),supportsQueryByOthers:i(a,"allowOthersToQuery",!0),supportsHistoricMoment:i(l,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:y&&h.has("pbf"),supportsDisjointSpatialRelationship:i(r,"supportsDisjointSpatialRel",!1),supportsCacheHint:i(r,"supportsQueryWithCacheHint",!1)||p(r,"query"),supportsDefaultSpatialReference:i(r,"supportsDefaultSR",!1),supportsCompactGeometry:f,supportsFullTextSearch:i(r,"supportsFullTextSearch",!1),maxRecordCountFactor:n(e,"maxRecordCountFactor",void 0),maxRecordCount:n(e,"maxRecordCount",void 0),standardMaxRecordCount:n(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:n(e,"tileMaxRecordCount",void 0)}}function v(e){const t=e.advancedQueryCapabilities,r=i(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:i(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:p(t,"queryRelated")}}function w(e){return{supportsCacheHint:p(e.advancedQueryCapabilities,"queryTopFilter")}}function b(e){const t=e.ownershipBasedAccessControlForFeatures,r=e?e.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:i(e,"allowGeometryUpdates",!0),supportsGlobalId:i(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:i(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:i(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:i(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:i(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:i(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:i(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:i(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:i(t,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:i(r,"supportsAsyncApplyEdits",!1)}}},14661:(e,t,r)=>{r.d(t,{$o:()=>p,Fj:()=>l,Kz:()=>c,Ss:()=>d,_$:()=>a,ck:()=>u,qj:()=>n});var s=r(73615),o=r(82971),i=r(40488);function n(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,c.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}async function p(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,i.Sx)(e);const r=o.Z.WGS84;return await(0,s.initializeProjection)(t,r),(0,s.project)(e,r)}(r)}const c={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table",HOSTED_SERVICE:"Hosted Service",LOCAL_SCENE:"ViewingMode-Local",TILED_IMAGERY:"Tiled Imagery"};function d(e){const{portal:t,isOrgItem:r,itemControl:s}=e,o=t.user?.privileges;let i=!o||o.includes("features:user:edit"),n=!!r&&!!o?.includes("features:user:fullEdit");const a="update"===s||"admin"===s;return a?n=i=!0:n&&(i=!0),{features:{edit:i,fullEdit:n},content:{updateItem:a}}}},74889:(e,t,r)=>{r.d(t,{Z:()=>w});var s,o=r(43697),i=r(66577),n=r(38171),a=r(35454),l=r(96674),u=r(22974),p=r(5600),c=(r(75215),r(71715)),d=r(52011),y=r(30556),f=r(82971),h=r(33955),m=r(1231);const g=new a.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=s=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=f.Z.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const o=e[t],i=n.Z.fromJSON(o),a=o.geometry&&o.geometry.spatialReference;null==i.geometry||a||(i.geometry.spatialReference=r);const l=o.aggregateGeometries,u=i.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],s=l[e],o=s?.spatialReference;null==t||o||(t.spatialReference=r)}s.push(i)}return s}writeGeometryType(e,t,r,s){if(e)return void g.write(e,t,r,s);const{features:o}=this;if(o)for(const e of o)if(e&&null!=e.geometry)return void g.write(e.geometry.type,t,r,s)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,s=(0,h.im)(e);return s&&!r&&t.spatialReference&&(s.spatialReference=f.Z.fromJSON(t.spatialReference)),s}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new s(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 s=t.features[r];if(s.geometry){const t=e&&e[r];s.geometry=t&&t.toJSON()||s.geometry}}return t}quantize(e){const{scale:[t,r],translate:[s,o]}=e,i=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-s)/t)),(e=>Math.round((o-e)/r)));for(let e=0,t=i.length;e<t;e++)n?.(i[e].geometry)||(i.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:[s,o],scale:[i,n]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,(e=>e*i+s),(e=>o-e*n),a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}_quantizePoints(e,t,r){let s,o;const i=[];for(let n=0,a=e.length;n<a;n++){const a=e[n];if(n>0){const e=t(a[0]),n=r(a[1]);e===s&&n===o||(i.push([e-s,n-o]),s=e,o=n)}else s=t(a[0]),o=r(a[1]),i.push([s,o])}return i.length>0?i: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 s=(0,h.oU)(e)?e.rings:e.paths,o=[];for(let e=0,i=s.length;e<i;e++){const i=s[e],n=this._quantizePoints(i,t,r);n&&o.push(n)}return o.length>0?((0,h.oU)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const s=this._quantizePoints(e.points,t,r);return s&&s.length>0?(e.points=s,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,s,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),s&&(e.z=s(e.z))}:"polyline"===e||"polygon"===e?e=>{const i=(0,h.oU)(e)?e.rings:e.paths;let n,a;for(let e=0,s=i.length;e<s;e++){const s=i[e];for(let e=0,o=s.length;e<o;e++){const o=s[e];e>0?(n+=o[0],a+=o[1]):(n=o[0],a=o[1]),o[0]=t(n),o[1]=r(a)}}if(s&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2]),r[3]=o(r[3])}}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),s&&null!=e.zmax&&null!=e.zmin&&(e.zmax=s(e.zmax),e.zmin=s(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const i=e.points;let n,a;for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(n+=s[0],a+=s[1]):(n=s[0],a=s[1]),s[0]=t(n),s[1]=r(a)}if(s&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=s(t[2]),t[3]=o(t[3])}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=s(t[2])}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=o(t[2])}}:null}};(0,o._)([(0,p.Cb)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,o._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,o._)([(0,p.Cb)({type:[n.Z],json:{write:!0}})],v.prototype,"features",void 0),(0,o._)([(0,c.r)("features")],v.prototype,"readFeatures",null),(0,o._)([(0,p.Cb)({type:[m.Z],json:{write:!0}})],v.prototype,"fields",void 0),(0,o._)([(0,p.Cb)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,o._)([(0,y.c)("geometryType")],v.prototype,"writeGeometryType",null),(0,o._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,o._)([(0,p.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,o._)([(0,p.Cb)({types:i.qM,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,o._)([(0,c.r)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,o._)([(0,p.Cb)({type:f.Z,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,o._)([(0,y.c)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,o._)([(0,p.Cb)({json:{write:!0}})],v.prototype,"transform",void 0),v=s=(0,o._)([(0,d.j)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const w=v}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5625,5732],{92835:(e,t,r)=>{r.d(t,{Z:()=>y});var o,n=r(43697),s=r(96674),i=r(35463),l=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),u=r(52011),h=r(30556);let c=o=class extends s.wq{static get allTime(){return d}static get empty(){return p}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(o.allTime)}get isEmpty(){return this.equals(o.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new o({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,o=e.start?.getTime()??e.start,n=e.end?.getTime()??e.end;return t===o&&r===n}expandTo(e,t="system"){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,i.JE)(r,e,t));let n=this.end;if(n){const r=(0,i.JE)(n,e,t);n=n.getTime()===r.getTime()?r:(0,i.Nm)(r,1,e,t)}return new o({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return o.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let i,l;if(n>=t&&n<=r?i=n:t>=n&&t<=s&&(i=t),r>=n&&r<=s?l=r:s>=t&&s<=r&&(l=s),null!=i&&null!=l&&!isNaN(i)&&!isNaN(l)){const e=new o;return e.start=i===-1/0?null:new Date(i),e.end=l===1/0?null:new Date(l),e}return o.empty}offset(e,t,r="system"){if(this.isEmpty||this.isAllTime)return this.clone();const n=new o,{start:s,end:l}=this;return null!=s&&(n.start=(0,i.Nm)(s,e,t,r)),null!=l&&(n.end=(0,i.Nm)(l,e,t,r)),n}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return d.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new o({start:t,end:r})}};(0,n._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"end",void 0),(0,n._)([(0,a.r)("end")],c.prototype,"readEnd",null),(0,n._)([(0,h.c)("end")],c.prototype,"writeEnd",null),(0,n._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isAllTime",null),(0,n._)([(0,l.Cb)({readOnly:!0,json:{read:!1}})],c.prototype,"isEmpty",null),(0,n._)([(0,l.Cb)({type:Date,json:{write:{allowNull:!0}}})],c.prototype,"start",void 0),(0,n._)([(0,a.r)("start")],c.prototype,"readStart",null),(0,n._)([(0,h.c)("start")],c.prototype,"writeStart",null),c=o=(0,n._)([(0,u.j)("esri.TimeExtent")],c);const d=new c,p=new c({start:void 0,end:void 0}),y=c},5732:(e,t,r)=>{r.d(t,{c:()=>o,g:()=>n});var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},25929:(e,t,r)=>{r.d(t,{M:()=>y,a:()=>g,e:()=>d,f:()=>n,i:()=>h,p:()=>c,r:()=>i,t:()=>s,w:()=>l});var o=r(17452);function n(e,t){const r=t&&t.url&&t.url.path;if(e&&r&&(e=(0,o.hF)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,o.PF)(e,t.portalItem.itemUrl);null!=r&&u.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return p(e,t&&t.portal)}function s(e,t,r=y.YES){if(null==e)return e;!(0,o.YP)(e)&&t&&t.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=(0,o.hF)(e);if(t){const r=t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.rootPath||t.url&&t.url.path;if(r){const s=p(r,t.portal),i=p(n,t.portal);n=(0,o.PF)(i,s,s),null!=n&&n!==i&&n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=d(n,t?.portal),(0,o.YP)(n)&&(n=(0,o.Fv)(n)),t?.resources&&t?.portalItem&&!(0,o.YP)(n)&&!(0,o.HK)(n)&&r===y.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),n}function i(e,t,r){return n(e,r)}function l(e,t,r,o){const n=s(e,o);void 0!==n&&(t[r]=n)}const a=/\/items\/([^\/]+)\/resources\/(.*)/,u=/^\.\/resources\//;function h(e){const t=e?.match(a)??null;return t?.[1]??null}function c(e){const t=e?.match(a)??null;if(null==t)return null;const r=t[2],n=r.lastIndexOf("/");if(-1===n){const{path:e,extension:t}=(0,o.fZ)(r);return{prefix:null,filename:e,extension:t}}const{path:s,extension:i}=(0,o.fZ)(r.slice(n+1));return{prefix:r.slice(0,n),filename:s,extension:i}}function d(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,o.Ie)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function p(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,n=(0,o.TI)();return(0,o.D6)(n,`${n.scheme}://${r}`)?(0,o.Ie)(e,t.portalHostname,r):(0,o.Ie)(e,r,t.portalHostname)}var y,m;(m=y||(y={}))[m.YES=0]="YES",m[m.NO=1]="NO";const g=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return y},ensureMainOnlineDomain:d,fromJSON:n,itemIdFromResourceUrl:h,prefixAndFilenameFromResourceUrl:c,read:i,toJSON:s,write:l},Symbol.toStringTag,{value:"Module"}))},10699:(e,t,r)=>{r.d(t,{IG:()=>i,iv:()=>l});var o=r(43697),n=r(52011);let s=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-"+s++})}};return t=(0,o._)([(0,n.j)("esri.core.Identifiable")],t),t},l=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return t=(0,o._)([(0,n.j)("esri.core.NumericIdentifiable")],t),t};let a=class extends(i(class{})){};a=(0,o._)([(0,n.j)("esri.core.Identifiable")],a)},35463:(e,t,r)=>{r.d(t,{JE:()=>l,Nm:()=>i,rJ:()=>a});var o=r(90344),n=r(17126);const s={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function i(e,t,r,s="system"){const i=new n.vF((0,o.f1)(s)),l=n.ou.fromJSDate(e,{zone:i}),a="decades"===r||"centuries"===r?"year":u(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[a]:t}).toJSDate()}function l(e,t,r="system"){const s=new n.vF((0,o.f1)(r)),i=n.ou.fromJSDate(e,{zone:s});if("decades"===t||"centuries"===t){const e=i.startOf("year"),{year:r}=e,o=r-r%("decades"===t?10:100);return e.set({year:o}).toJSDate()}const l=u(t);return i.startOf(l).toJSDate()}function a(e,t,r){return 0===e?0:e*s[t]/s[r]}function u(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},90344:(e,t,r)=>{r.d(t,{LJ:()=>M,Xr:()=>f,Ze:()=>_,f1:()=>D,i$:()=>S,o8:()=>Z,p6:()=>T});var o=r(35454),n=r(70171),s=r(17126);const i={year:void 0,month:void 0,day:void 0,weekday:void 0},l={hour:void 0,minute:void 0,second:void 0},a=Intl.DateTimeFormat().resolvedOptions().timeZone,u={timeZone:"UTC"},h={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},y={hour:"numeric",minute:"numeric"},m={...y,second:"numeric"},g={"short-date":h,"short-date-short-time":{...h,...y},"short-date-short-time-24":{...h,...y,hour12:!1},"short-date-long-time":{...h,...m},"short-date-long-time-24":{...h,...m,hour12:!1},"short-date-le":h,"short-date-le-short-time":{...h,...y},"short-date-le-short-time-24":{...h,...y,hour12:!1},"short-date-le-long-time":{...h,...m},"short-date-le-long-time-24":{...h,...m,hour12:!1},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...y},"long-month-day-year-short-time-24":{...c,...y,hour12:!1},"long-month-day-year-long-time":{...c,...m},"long-month-day-year-long-time-24":{...c,...m,hour12:!1},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...y},"day-short-month-year-short-time-24":{...d,...y,hour12:!1},"day-short-month-year-long-time":{...d,...m},"day-short-month-year-long-time-24":{...d,...m,hour12:!1},"long-date":p,"long-date-short-time":{...p,...y},"long-date-short-time-24":{...p,...y,hour12:!1},"long-date-long-time":{...p,...m},"long-date-long-time-24":{...p,...m,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":y,"long-time":m},f=(0,o.w)()({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"}),b={ar:"ar-u-nu-latn-ca-gregory"};let v=new WeakMap;const w=g["short-date-short-time"];function _(e){return g[e]}function T(e,t=w){return function(e){let t=v.get(e);if(!t){const r=(0,n.Kd)(),o=b[r]||r,s=C(e);t=new Intl.DateTimeFormat(o,s),v.set(e,t)}return t}(t).format(e)}function Z(e,t=w){return T(new Date(e),{...t,...u,...l})}function M(e,t=w){return T(new Date(`1970-01-01T${e}Z`),{...t,...u,...i})}function S(e,t=w){const r=s.ou.fromISO(e,{setZone:!0}),o=(0,n.Kd)(),i=b[o]??o,l=C(t);return r.toLocaleString(l,{locale:i})}function C(e){const t=D(e.timeZone??"system");return{...e,timeZone:t}}function D(e){switch(e){case"system":return a;case"unknown":return"UTC";default:return e}}(0,n.Ze)((()=>{v=new WeakMap}))},2723:(e,t,r)=>{r.r(t),r.d(t,{default:()=>x});var o,n=r(43697),s=(r(66577),r(3172)),i=r(20102),l=r(35454),a=r(16453),u=r(5600),h=(r(75215),r(67676),r(80442),r(52011)),c=r(82971),d=r(6570),p=r(24470),y=r(87085),m=r(71612),g=r(34760),f=r(72965),b=r(90082),v=r(11145);const w=new(r(43077).f)("0/0/0",0,0,0,void 0);let _=o=class extends((0,m.h)((0,f.M)((0,g.Q)(y.Z)))){constructor(){super(...arguments),this.tileInfo=v.Z.create({spatialReference:c.Z.WebMercator,size:256}),this.type="base-tile",this.fullExtent=new d.Z(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,c.Z.WebMercator),this.spatialReference=c.Z.WebMercator}getTileBounds(e,t,r,o){const n=o||(0,p.Ue)();return w.level=e,w.row=t,w.col=r,w.extent=n,this.tileInfo.updateTileInfo(w),w.extent=void 0,n}fetchTile(e,t,r,o={}){const{signal:n}=o,i=this.getTileUrl(e,t,r),l={responseType:"image",signal:n,query:{...this.refreshParameters}};return(0,s.Z)(i??"",l).then((e=>e.data))}async fetchImageBitmapTile(e,t,r,n={}){const{signal:i}=n;if(this.fetchTile!==o.prototype.fetchTile){const o=await this.fetchTile(e,t,r,n);return(0,b.V)(o,e,t,r,i)}const l=this.getTileUrl(e,t,r)??"",a={responseType:"blob",signal:i,query:{...this.refreshParameters}},{data:u}=await(0,s.Z)(l,a);return(0,b.V)(u,e,t,r,i)}getTileUrl(){throw new i.Z("basetilelayer:gettileurl-not-implemented","getTileUrl() is not implemented")}};(0,n._)([(0,u.Cb)({type:v.Z})],_.prototype,"tileInfo",void 0),(0,n._)([(0,u.Cb)({type:["show","hide"]})],_.prototype,"listMode",void 0),(0,n._)([(0,u.Cb)({readOnly:!0,value:"base-tile"})],_.prototype,"type",void 0),(0,n._)([(0,u.Cb)({nonNullable:!0})],_.prototype,"fullExtent",void 0),(0,n._)([(0,u.Cb)()],_.prototype,"spatialReference",void 0),_=o=(0,n._)([(0,h.j)("esri.layers.BaseTileLayer")],_);const T=_;var Z=r(38009),M=r(39450),S=r(94139);const C=new l.X({BingMapsAerial:"aerial",BingMapsRoad:"road",BingMapsHybrid:"hybrid"});let D=class extends((0,m.h)((0,Z.q)((0,a.R)(T)))){constructor(e){super(e),this.type="bing-maps",this.tileInfo=new v.Z({size:[256,256],dpi:96,origin:new S.Z({x:-20037508.342787,y:20037508.342787,spatialReference:c.Z.WebMercator}),spatialReference:c.Z.WebMercator,lods:[new M.Z({level:1,resolution:78271.5169639999,scale:295828763.795777}),new M.Z({level:2,resolution:39135.7584820001,scale:147914381.897889}),new M.Z({level:3,resolution:19567.8792409999,scale:73957190.948944}),new M.Z({level:4,resolution:9783.93962049996,scale:36978595.474472}),new M.Z({level:5,resolution:4891.96981024998,scale:18489297.737236}),new M.Z({level:6,resolution:2445.98490512499,scale:9244648.868618}),new M.Z({level:7,resolution:1222.99245256249,scale:4622324.434309}),new M.Z({level:8,resolution:611.49622628138,scale:2311162.217155}),new M.Z({level:9,resolution:305.748113140558,scale:1155581.108577}),new M.Z({level:10,resolution:152.874056570411,scale:577790.554289}),new M.Z({level:11,resolution:76.4370282850732,scale:288895.277144}),new M.Z({level:12,resolution:38.2185141425366,scale:144447.638572}),new M.Z({level:13,resolution:19.1092570712683,scale:72223.819286}),new M.Z({level:14,resolution:9.55462853563415,scale:36111.909643}),new M.Z({level:15,resolution:4.77731426794937,scale:18055.954822}),new M.Z({level:16,resolution:2.38865713397468,scale:9027.977411}),new M.Z({level:17,resolution:1.19432856685505,scale:4513.988705}),new M.Z({level:18,resolution:.597164283559817,scale:2256.994353}),new M.Z({level:19,resolution:.298582141647617,scale:1128.497176}),new M.Z({level:20,resolution:.1492910708238085,scale:564.248588})]}),this.key=null,this.style="road",this.culture="en-US",this.region=null,this.portalUrl=null,this.hasAttributionData=!0}get bingMetadata(){return this._get("bingMetadata")}set bingMetadata(e){this._set("bingMetadata",e)}get copyright(){return null!=this.bingMetadata?this.bingMetadata.copyright:null}get operationalLayerType(){return C.toJSON(this.style)}get bingLogo(){return null!=this.bingMetadata?this.bingMetadata.brandLogoUri:null}load(e){return this.key?this.addResolvingPromise(this._getMetadata()):this.portalUrl?this.addResolvingPromise(this._getPortalBingKey().then((()=>this._getMetadata()))):this.addResolvingPromise(Promise.reject(new i.Z("bingmapslayer:load","Bing layer must have bing key."))),Promise.resolve(this)}getTileUrl(e,t,r){if(!this.loaded||null==this.bingMetadata)return null;const o=this.bingMetadata.resourceSets[0].resources[0],n=o.imageUrlSubdomains[t%o.imageUrlSubdomains.length],s=this._getQuadKey(e,t,r);return o.imageUrl.replace("{subdomain}",n).replace("{quadkey}",s)}async fetchAttributionData(){return this.load().then((()=>null==this.bingMetadata?null:{contributors:this.bingMetadata.resourceSets[0].resources[0].imageryProviders.map((e=>({attribution:e.attribution,coverageAreas:e.coverageAreas.map((e=>({zoomMin:e.zoomMin,zoomMax:e.zoomMax,score:1,bbox:[e.bbox[0],e.bbox[1],e.bbox[2],e.bbox[3]]})))})))}))}_getMetadata(){const e={road:"roadOnDemand",aerial:"aerial",hybrid:"aerialWithLabelsOnDemand"}[this.style];return(0,s.Z)(`https://dev.virtualearth.net/REST/v1/Imagery/Metadata/${e}`,{responseType:"json",query:{include:"ImageryProviders",uriScheme:"https",key:this.key,suppressStatus:!0,output:"json",culture:this.culture,userRegion:this.region}}).then((e=>{const t=e.data;if(200!==t.statusCode)throw new i.Z("bingmapslayer:getmetadata",t.statusDescription);if(this.bingMetadata=t,0===this.bingMetadata.resourceSets.length)throw new i.Z("bingmapslayer:getmetadata","no bing resourcesets");if(0===this.bingMetadata.resourceSets[0].resources.length)throw new i.Z("bingmapslayer:getmetadata","no bing resources")})).catch((e=>{throw new i.Z("bingmapslayer:getmetadata",e.message)}))}_getPortalBingKey(){return(0,s.Z)(this.portalUrl??"",{responseType:"json",authMode:"no-prompt",query:{f:"json"}}).then((e=>{if(!e.data.bingKey)throw new i.Z("bingmapslayer:getportalbingkey","The referenced Portal does not contain a valid bing key");this.key=e.data.bingKey})).catch((e=>{throw new i.Z("bingmapslayer:getportalbingkey",e.message)}))}_getQuadKey(e,t,r){let o="";for(let n=e;n>0;n--){let e=0;const s=1<<n-1;0!=(r&s)&&(e+=1),0!=(t&s)&&(e+=2),o+=e.toString()}return o}};(0,n._)([(0,u.Cb)({json:{read:!1,write:!1},value:null})],D.prototype,"bingMetadata",null),(0,n._)([(0,u.Cb)({json:{read:!1,write:!1},value:"bing-maps",readOnly:!0})],D.prototype,"type",void 0),(0,n._)([(0,u.Cb)({type:v.Z})],D.prototype,"tileInfo",void 0),(0,n._)([(0,u.Cb)({type:String,readOnly:!0,json:{read:!1,write:!1}})],D.prototype,"copyright",null),(0,n._)([(0,u.Cb)({type:String,json:{write:!1,read:!1}})],D.prototype,"key",void 0),(0,n._)([(0,u.Cb)({type:C.apiValues,nonNullable:!0,json:{read:{source:"layerType",reader:C.read}}})],D.prototype,"style",void 0),(0,n._)([(0,u.Cb)({type:["BingMapsAerial","BingMapsHybrid","BingMapsRoad"]})],D.prototype,"operationalLayerType",null),(0,n._)([(0,u.Cb)({type:String,json:{write:!1,read:!1}})],D.prototype,"culture",void 0),(0,n._)([(0,u.Cb)({type:String,json:{write:!1,read:!1}})],D.prototype,"region",void 0),(0,n._)([(0,u.Cb)({type:String,json:{write:!0,read:!0}})],D.prototype,"portalUrl",void 0),(0,n._)([(0,u.Cb)({type:Boolean,json:{write:!1,read:!1}})],D.prototype,"hasAttributionData",void 0),(0,n._)([(0,u.Cb)({type:String,readOnly:!0})],D.prototype,"bingLogo",null),D=(0,n._)([(0,h.j)("esri.layers.BingMapsLayer")],D);const x=D},87085:(e,t,r)=>{r.d(t,{Z:()=>v});var o=r(43697),n=(r(66577),r(3172)),s=r(20102),i=r(32448),l=r(10699),a=r(83379),u=r(92604),h=r(95330),c=r(17452),d=r(5600),p=(r(75215),r(67676),r(80442),r(52011)),y=r(68773),m=r(6570),g=r(82971);let f=0,b=class extends(i.Z.EventedMixin((0,l.IG)(a.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.Z(-180,-90,180,90,g.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=g.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;return(await r.e(3529).then(r.bind(r,63529))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:o}=await r.e(8008).then(r.bind(r,28008));try{return await o(t)}catch(e){const r=t&&t.portalItem,o=r&&r.id||"unset",n=r&&r.portal&&r.portal.url||y.default.portalUrl;throw u.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+o+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,h.D_)(e)||u.Z.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.mN)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,n.Z)(e,{query:{f:"json"},responseType:"json"})).data;throw new s.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,o._)([(0,d.Cb)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,o._)([(0,d.Cb)({type:m.Z})],b.prototype,"fullExtent",void 0),(0,o._)([(0,d.Cb)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,o._)([(0,d.Cb)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,o._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,o._)([(0,d.Cb)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,o._)([(0,d.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,o._)([(0,d.Cb)({clonable:!1})],b.prototype,"parent",void 0),(0,o._)([(0,d.Cb)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,o._)([(0,d.Cb)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,o._)([(0,d.Cb)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,o._)([(0,d.Cb)({type:g.Z})],b.prototype,"spatialReference",void 0),(0,o._)([(0,d.Cb)({type:String})],b.prototype,"title",void 0),(0,o._)([(0,d.Cb)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,o._)([(0,d.Cb)()],b.prototype,"url",void 0),(0,o._)([(0,d.Cb)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,o._)([(0,p.j)("esri.layers.Layer")],b);const v=b},34760:(e,t,r)=>{r.d(t,{Q:()=>f});var o=r(43697),n=r(92604),s=r(95330),i=r(5600),l=r(90578),a=(r(67676),r(80442),r(52011)),u=r(46791),h=(r(66643),r(20102),r(26258),r(87538));const c=new u.Z,d=new WeakMap;function p(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:p(t,e%t):0}let y=0,m=0;function g(){const e=Date.now();let t=!1;for(const r of c){const o=r.deref();o?o.refreshInterval&&e-(d.get(o)??0)+5>=6e4*o.refreshInterval&&(d.set(o,e),o.refresh(e)):t=!0}if(t)for(let e=c.length-1;e>=0;e--)c.at(e).deref()||c.removeAt(e)}(0,h.EH)((()=>{const e=Date.now();let t=0;for(const r of c){const o=r.deref();o&&(t=p(Math.round(6e4*o.refreshInterval),t),o.refreshInterval?d.get(o)||d.set(o,e):d.delete(o))}if(t!==m){if(m=t,clearInterval(y),0===m)return void(y=0);y=setInterval(g,m)}}));const f=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,s.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{this.destroyed||function(e){(function(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e})(e)&&c.push(new WeakRef(e))}(this)}),(()=>{}))}destroy(){!function(e){const t=c.find((t=>t.deref()===e));t&&c.remove(t)}(this)}castRefreshInterval(e){return e>=.1?e:e<=0?0:.1}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,s.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{n.Z.getLogger(this).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}get test(){const e=this;return{set refreshInterval(t){e._set("refreshInterval",t)}}}};return(0,o._)([(0,i.Cb)({type:Number,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,o._)([(0,l.p)("refreshInterval")],t.prototype,"castRefreshInterval",null),(0,o._)([(0,i.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,o._)([(0,i.Cb)({readOnly:!0})],t.prototype,"refreshParameters",null),t=(0,o._)([(0,a.j)("esri.layers.mixins.RefreshableLayer")],t),t}},39450:(e,t,r)=>{r.d(t,{Z:()=>h});var o,n=r(43697),s=r(96674),i=r(5600),l=r(75215),a=(r(67676),r(80442),r(52011));let u=o=class extends s.wq{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new o({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,n._)([(0,i.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"cols",void 0),(0,n._)([(0,i.Cb)({type:l.z8,json:{write:!0}})],u.prototype,"level",void 0),(0,n._)([(0,i.Cb)({type:String,json:{write:!0}})],u.prototype,"levelValue",void 0),(0,n._)([(0,i.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"origin",void 0),(0,n._)([(0,i.Cb)({type:Number,json:{write:!0}})],u.prototype,"resolution",void 0),(0,n._)([(0,i.Cb)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"rows",void 0),(0,n._)([(0,i.Cb)({type:Number,json:{write:!0}})],u.prototype,"scale",void 0),u=o=(0,n._)([(0,a.j)("esri.layers.support.LOD")],u);const h=u},11145:(e,t,r)=>{r.d(t,{Z:()=>M});var o,n=r(43697),s=r(35454),i=r(96674),l=r(67900),a=r(5600),u=r(75215),h=(r(67676),r(80442),r(71715)),c=r(52011),d=r(30556),p=r(94139),y=r(82971),m=r(24470),g=r(8744),f=r(40488),b=r(39450),v=r(43077);const w=new s.X({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let _=o=class extends i.wq{static create(e={}){const{resolutionFactor:t=1,scales:r,size:n=256,spatialReference:s=y.Z.WebMercator,numLODs:i=24}=e;if(!(0,g.JY)(s)){const e=[];if(r)for(let t=0;t<r.length;t++){const o=r[t];e.push(new b.Z({level:t,scale:o,resolution:o}))}else{let t=5e-4;for(let r=i-1;r>=0;r--)e.unshift(new b.Z({level:r,scale:t,resolution:t})),t*=2}return new o({dpi:96,lods:e,origin:new p.Z(0,0,s),size:[n,n],spatialReference:s})}const a=(0,g.C5)(s),u=e.origin?new p.Z({x:e.origin.x,y:e.origin.y,spatialReference:s}):new p.Z(a?{x:a.origin[0],y:a.origin[1],spatialReference:s}:{x:0,y:0,spatialReference:s}),h=1/(39.37*(0,l.c9)(s)*96),c=[];if(r)for(let e=0;e<r.length;e++){const t=r[e],o=t*h;c.push(new b.Z({level:e,scale:t,resolution:o}))}else{let e=(0,g.sT)(s)?512/n*591657527.5917094:256/n*591657527.591555;const r=Math.ceil(i/t);c.push(new b.Z({level:0,scale:e,resolution:e*h}));for(let o=1;o<r;o++){const r=e/2**t,n=r*h;c.push(new b.Z({level:o,scale:r,resolution:n})),e=r}}return new o({dpi:96,lods:c,origin:u,size:[n,n],spatialReference:s})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const r=(0,g.C5)(e);return e.isWrappable&&!!r&&Math.abs(r.origin[0]-t.x)<=r.dx}return!1}readOrigin(e,t){return p.Z.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,r=0;const o=[],n=this._levelToLOD={};e&&(t=-1/0,r=1/0,e.forEach((e=>{o.push(e.scale),t=e.scale>t?e.scale:t,r=e.scale<r?e.scale:r,n[e.level]=e}))),this._set("scales",o),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const r=Math.floor(e),o=r+1;return t[r]/(t[r]/t[o])**(e-r)}scaleToZoom(e){const t=this.scales,r=t.length-1;let o=0;for(;o<r;o++){const r=t[o],n=t[o+1];if(r<=e)return o;if(n===e)return o+1;if(r>e&&n<e)return o+Math.log(r/e)/Math.log(r/n)}return o}snapScale(e,t=.95){const r=this.scaleToZoom(e);return r%Math.floor(r)>=t?this.zoomToScale(Math.ceil(r)):this.zoomToScale(Math.floor(r))}tileAt(e,t,r,o){const n=this.lodAt(e);if(!n)return null;let s,i;if("number"==typeof t)s=t,i=r;else if((0,g.fS)(t.spatialReference,this.spatialReference))s=t.x,i=t.y,o=r;else{const e=(0,f.iV)(t,this.spatialReference);if(null==e)return null;s=e.x,i=e.y,o=r}const l=n.resolution*this.size[0],a=n.resolution*this.size[1];return o||(o=new v.f(null,0,0,0,(0,m.Ue)())),o.level=e,o.row=Math.floor((this.origin.y-i)/a+.001),o.col=Math.floor((s-this.origin.x)/l+.001),this.updateTileInfo(o),o}updateTileInfo(e,t=o.ExtrapolateOptions.NONE){let r=this.lodAt(e.level);if(!r&&t===o.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(r=t)}if(!r)return;const n=e.level-r.level,s=r.resolution*this.size[0]/2**n,i=r.resolution*this.size[1]/2**n;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,m.Ue)()),e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*i,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+i}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const r=this.lodAt(t.level);if(null==r)return null;const{resolution:o}=r,n=o*this.size[0],s=o*this.size[1];return e[0]=this.origin.x+t.col*n,e[1]=this.origin.y-(t.row+1)*s,e[2]=e[0]+n,e[3]=e[1]+s,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return o.fromJSON(this.write({}))}getOrCreateCompatible(e,t){if(256===this.size[0]&&256===this.size[1])return 256===e?this:null;const r=[],n=this.lods.length;for(let e=0;e<n;e++){const o=this.lods[e],n=o.resolution*t;r.push(new b.Z({level:o.level,scale:o.scale,resolution:n}))}return new o({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:r})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let r=0;r<e.length;r++){const o=e[r];this._upsampleLevels[o.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/o.resolution:0},t=o}}};var T,Z;(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],_.prototype,"compressionQuality",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],_.prototype,"dpi",void 0),(0,n._)([(0,a.Cb)({type:String,json:{read:w.read,write:w.write,origins:{"web-scene":{read:!1,write:!1}}}})],_.prototype,"format",void 0),(0,n._)([(0,a.Cb)({readOnly:!0})],_.prototype,"isWrappable",null),(0,n._)([(0,a.Cb)({type:p.Z,json:{write:!0}})],_.prototype,"origin",void 0),(0,n._)([(0,h.r)("origin")],_.prototype,"readOrigin",null),(0,n._)([(0,a.Cb)({type:[b.Z],value:null,json:{write:!0}})],_.prototype,"lods",null),(0,n._)([(0,a.Cb)({readOnly:!0})],_.prototype,"scales",void 0),(0,n._)([(0,a.Cb)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],_.prototype,"size",void 0),(0,n._)([(0,h.r)("size",["rows","cols"])],_.prototype,"readSize",null),(0,n._)([(0,d.c)("size",{cols:{type:u.z8},rows:{type:u.z8}})],_.prototype,"writeSize",null),(0,n._)([(0,a.Cb)({type:y.Z,json:{write:!0}})],_.prototype,"spatialReference",void 0),_=o=(0,n._)([(0,c.j)("esri.layers.support.TileInfo")],_),(Z=(T=_||(_={})).ExtrapolateOptions||(T.ExtrapolateOptions={}))[Z.NONE=0]="NONE",Z[Z.POWER_OF_TWO=1]="POWER_OF_TWO";const M=_},43077:(e,t,r)=>{r.d(t,{f:()=>o});class o{constructor(e,t,r,o,n=void 0){this.id=e,this.level=t,this.row=r,this.col=o,this.extent=n}}},90082:(e,t,r)=>{r.d(t,{V:()=>i,g:()=>s});var o=r(20102),n=r(95330);async function s(e,t,r){let s;try{s=await createImageBitmap(e)}catch(e){throw new o.Z("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,n.k_)(r),s}async function i(e,t,r,s,i){let l;try{l=await createImageBitmap(e)}catch(e){throw new o.Z("request:server",`Unable to load tile ${t}/${r}/${s}`,{error:e,level:t,row:r,col:s})}return(0,n.k_)(i),l}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6946],{36946:(e,t,s)=>{s.d(t,{uploadAssets:()=>h});var a=s(3172),r=s(20102),n=s(92604),o=s(95330),i=s(17452),l=s(41123),c=s(84470),u=(s(80442),s(66677));const p=1e6,d=20*p,f=2e9,y=3;async function w({data:e,name:t,description:s},r,n){let l=null;try{const w=(0,i.v_)(r,"uploads"),m=(0,i.v_)(w,"info"),{data:h}=await(0,a.Z)(m,{query:{f:"json"},responseType:"json"});(0,o.k_)(n);const g=(0,u.M8)(r),T=h.maxUploadFileSize*p,v=g?f:T,b=g?Math.min(d,T):d;if(e.size>v)throw new Error("Data too large");const E=(0,i.v_)(w,"register"),{data:_}=await(0,a.Z)(E,{query:{f:"json",itemName:(c=t,c.replaceAll("/","_").replaceAll("\\","_")),description:s},responseType:"json",method:"post"});if((0,o.k_)(n),!_.success)throw new Error("Registration failed");const{itemID:Z}=_.item;l=(0,i.v_)(w,Z);const $=(0,i.v_)(l,"uploadPart"),j=Math.ceil(e.size/b),k=new Array;for(let t=0;t<j;++t)k.push(e.slice(t*b,Math.min((t+1)*b,e.size)));const F=k.slice().reverse(),D=new Array,A=async()=>{for(;0!==F.length;){const e=k.length-F.length,t=F.pop(),s=new FormData,r=t;s.append("f","json"),s.append("file",r),s.append("partId",`${e}`);const{data:i}=await(0,a.Z)($,{timeout:0,body:s,responseType:"json",method:"post"});if((0,o.k_)(n),!i.success)throw new Error("Part upload failed")}};for(let e=0;e<y&&0!==F.length;++e)D.push(A());await Promise.all(D);const U=(0,i.v_)(l,"commit"),{data:x}=await(0,a.Z)(U,{query:{f:"json",parts:k.map(((e,t)=>t)).join(",")},responseType:"json",method:"post"});if((0,o.k_)(n),!x.success)throw new Error("Commit failed");return x.item}catch(e){if(null!=l){const e=(0,i.v_)(l,"delete");await(0,a.Z)(e,{query:{f:"json"},responseType:"json",method:"post"})}throw e}var c}var m=s(2981);async function h(e,t,s){return e.length?Promise.all(e.map((e=>async function(e,{layer:t,ongoingUploads:s},a){const n=s.get(e);if(n)return n;if(!function(e){return!!e.infoFor3D&&!!e.url}(t))throw new r.Z(`${t.type}-layer:upload-failure`,"Layer does not support asset uploads.",new Error);if(function(e,t){const{parsedUrl:s}=t;return null!=s&&e.metadata.externalSources.some((e=>(0,c.JG)(e,s)))}(e,t))return e;const i=async function(e,t,s){const{metadata:a}=e,{displaySource:n}=a,i=g(n?.source,t),c=!!i,u=a.externalSources.length>0,p=c?async function(e,t,s){return{source:await v(e,t,s),original:!0}}(i,t,s):u?async function(e,t,s){const a=_(t),{externalSources:n}=e.metadata,o=function(e,t){for(const s of e){const e=g(s.source,t);if(e)return e}return null}(n,t);if(!o)throw new r.Z(`${t.type}-layer:upload-failure`,"Could not find an external source that is supported by the service.",new Error);const i=await v(o,t,s);return e.addExternalSources([{source:i,original:!0}]),{source:await E(i,t,a)}}(e,t,s):async function(e,t,s){const a=async function(e,t,s){const a=_(t),r=await e.load(s),n=await r.toBinaryGLTF({ignoreLocalTransform:!0});(0,o.k_)(s);const i=await n.buffer();return(0,o.k_)(s),{blob:new Blob([i.data],{type:i.type}),assetName:`${(0,l.z)()}.glb`,assetType:a}}(e,t,s);return{source:await b([a],t,s),extent:e.extent.clone(),original:!0}}(e,t,s),d=await p;return(0,o.k_)(s),e.addExternalSources([d]),e}(e,t,a);s.set(e,i);try{await i}finally{s.delete(e)}return e}(e,t,s)))):[]}function g(e,t){if(!e)return null;const{infoFor3D:{supportedFormats:s,editFormats:a}}=t,r=(0,c.zE)(e),n=new Array;let o=!1;for(let e=0;e<r.length;++e){const t=T(r[e],s);if(!t)return null;a.includes(t.assetType)&&(o=!0),n.push(t)}return o?n:null}function T(e,t){const s=(0,c.vj)(e,t);return s?{asset:e,assetType:s}:null}async function v(e,t,s){return b(e.map((e=>async function(e,t){const{asset:s,assetType:a}=e;if(s instanceof File)return{blob:s,assetName:s.name,assetType:a};const r=await s.toBlob(t);return(0,o.k_)(t),{blob:r,assetName:s.assetName,assetType:a}}(e,s))),t,s)}async function b(e,t,s){const l=await Promise.all(e.map((async e=>{const a=async function(e,t,s){const{blob:a,assetType:l,assetName:c}=e;let u=null;try{const e=await w({data:a,name:c},t.url,s);(0,o.k_)(s),u={assetType:l,assetUploadId:e.itemID}}catch(e){(0,o.r9)(e),n.Z.getLogger("esri.layers.graphics.sources.support.uploadAssets").warnOnce(`Service ${t.url} does not support the REST Uploads API.`)}if(!u){const e=await(0,i.IR)(a);if((0,o.k_)(s),!e.isBase64)throw new r.Z(`${t.type}-layer:uploadAssets-failure`,"Expected gltf data in base64 format after conversion.",new Error);u={assetType:l,assetData:e.data}}if(!u)throw new r.Z(`${t.type}-layer:uploadAssets-failure`,"Unable to prepare uploadAsset request options.",new Error);return{item:u,assetName:c}}(await e,t,s);return(0,o.k_)(s),a})));(0,o.k_)(s);const{uploadResults:u}=await async function(e,t,s){const n=await(0,a.Z)((0,i.v_)(t.parsedUrl.path,"uploadAssets"),{timeout:0,query:{f:"json",assets:JSON.stringify(e)},method:"post",responseType:"json"});if((0,o.k_)(s),n.data.uploadResults.length!==e.length)throw new r.Z(`${t.type}-layer:uploadAssets-failure`,`Bad response. Uploaded ${e.length} items and received ${n.data.uploadResults.length} results.`,new Error);return n.data}(l.map((({item:e})=>e)),t,s);return(0,o.k_)(s),e.map(((e,s)=>function(e,t,s){const{success:a}=t;if(!a){const{error:a}=t;throw new r.Z(`${s.type}-layer:upload-failure`,`Failed to upload mesh file ${e.assetName}. Error code: ${a?.code??"-1"}. Error message: ${a?.messages??"unknown"}`,new Error)}const{assetHash:n}=t,{assetName:o,item:{assetType:i}}=e,{infoFor3D:{supportedFormats:l}}=s,u=(0,m.d1)(i,l);if(!u)throw new r.Z(`${s.type}-layer:upload-failure`,`The service allowed us to upload an asset of FormatID ${i}, but it does not list it in its supported formats.`,new Error);return new c.CP(o,u,[new c.LL(`${s.parsedUrl.path}/assets/${n}`,n)])}(l[s],u[s],t)))}async function E(e,t,s){const n=e.map((({assetName:e,parts:t})=>({assetName:e,assetHash:t[0].partHash}))),l=t.capabilities?.operations.supportsAsyncConvert3D,u={query:{f:"json",assets:JSON.stringify(n),transportType:"esriTransportTypeUrl",targetFormat:s,async:l},responseType:"json",timeout:0},p=(0,i.v_)(t.parsedUrl.path,"convert3D"),d=(l?await async function(e,t){const s=(await(0,a.Z)(e,t)).data.statusUrl;for(;;){const e=(await(0,a.Z)(s,{query:{f:"json"},responseType:"json"})).data;switch(e.status){case"Completed":return(0,a.Z)(e.resultUrl,{query:{f:"json"},responseType:"json"});case"CompletedWithErrors":throw new r.Z("async-convert3D-failed","asynchronous convert3D call failed.");case"Failed ImportChanges":case"InProgress":case"Pending":case"ExportAttachments":case"ExportChanges":case"ExportingData":case"ExportingSnapshot":case"ImportAttachments":case"ProvisioningReplica":case"UnRegisteringReplica":break;default:throw new r.Z("async-convert3D-failed","asynchronous convert3D call failed (undefined response status)")}await(0,o.e4)(Z)}}(p,u):await(0,a.Z)(p,u)).data,{infoFor3D:{supportedFormats:f}}=t;return d.assets.map((e=>{const s=(0,m.S0)(e.contentType,f);if(!s)throw new r.Z(`${t.type}-layer:upload-failure`,`The service allowed us to upload an asset of FormatID ${s}, but it does not list it in its supported formats.`,new Error);return new c.CP(e.assetName,e.contentType,[new c.LL(e.assetURL,e.assetHash)])}))}function _(e){const{infoFor3D:t}=e,s=(0,m.S0)("model/gltf-binary",t.supportedFormats)??(0,m.Ow)("glb",t.supportedFormats);if(!s)throw new r.Z(`${e.type}-layer:upload-failure`,"Layer does not support glb.",new Error);return s}const Z=1e3}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2906,661,5234,9880],{66748:(n,t,e)=>{e.r(t),e.d(t,{registerFunctions:()=>I});var r=e(40330),a=e(28228),o=e(33586),i=e(27535),s=e(77286),u=e(61363),c=e(26520),l=e(71201),f=e(67900),d=e(6570),h=e(9361),m=e(8667),y=e(65091),g=e(94139),w=e(38913),p=e(58901),Z=e(33955),v=e(48522);function F(n){return 0===r.i8.indexOf("4.")?w.Z.fromExtent(n):new w.Z({spatialReference:n.spatialReference,rings:[[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]})}function D(n,t,e){if((0,u.C)(n,2,2,t,e),n[0]instanceof h.Z&&n[1]instanceof h.Z);else if(n[0]instanceof h.Z&&null===n[1]);else if(n[1]instanceof h.Z&&null===n[0]);else if(null!==n[0]||null!==n[1])throw new i.aV(t,i.rH.InvalidParameter,e)}async function A(n,t){if("polygon"!==n.type&&"polyline"!==n.type&&"extent"!==n.type)return 0;let e=1;(n.spatialReference.vcsWkid||n.spatialReference.latestVcsWkid)&&(e=(0,l._R)(n.spatialReference)/(0,f.c9)(n.spatialReference));let r=0;if("polyline"===n.type)for(const t of n.paths)for(let n=1;n<t.length;n++)r+=(0,l.AW)(t[n],t[n-1],e);else if("polygon"===n.type)for(const t of n.rings){for(let n=1;n<t.length;n++)r+=(0,l.AW)(t[n],t[n-1],e);(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1]||void 0!==t[0][2]&&t[0][2]!==t[t.length-1][2])&&(r+=(0,l.AW)(t[0],t[t.length-1],e))}else"extent"===n.type&&(r+=2*(0,l.AW)([n.xmin,n.ymin,0],[n.xmax,n.ymin,0],e),r+=2*(0,l.AW)([n.xmin,n.ymin,0],[n.xmin,n.ymax,0],e),r*=2,r+=4*Math.abs((0,u.F)(n.zmax,0)*e-(0,u.F)(n.zmin,0)*e));const a=new p.Z({hasZ:!1,hasM:!1,spatialReference:n.spatialReference,paths:[[0,0],[0,r]]});return(0,m.sz)(a,t)}function I(n){"async"===n.mode&&(n.functions.disjoint=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null===a[0]||null===a[1]||(0,m.ED)(a[0],a[1]))))},n.functions.intersects=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.kK)(a[0],a[1]))))},n.functions.touches=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.W4)(a[0],a[1]))))},n.functions.crosses=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.jU)(a[0],a[1]))))},n.functions.within=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.uh)(a[0],a[1]))))},n.functions.contains=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.r3)(a[0],a[1]))))},n.functions.overlaps=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.Nm)(a[0],a[1]))))},n.functions.equals=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>((0,u.C)(a,2,2,t,e),a[0]===a[1]||(a[0]instanceof h.Z&&a[1]instanceof h.Z?(0,m.fS)(a[0],a[1]):!(!(0,u.k)(a[0])||!(0,u.k)(a[1]))&&a[0].equals(a[1])))))},n.functions.relate=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,3,3,t,e),a[0]instanceof h.Z&&a[1]instanceof h.Z)return(0,m.LV)(a[0],a[1],(0,u.j)(a[2]));if(a[0]instanceof h.Z&&null===a[1])return!1;if(a[1]instanceof h.Z&&null===a[0])return!1;if(null===a[0]&&null===a[1])return!1;throw new i.aV(t,i.rH.InvalidParameter,e)}))},n.functions.intersection=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null===a[0]||null===a[1]?null:(0,m.wf)(a[0],a[1]))))},n.functions.union=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{const o=[];if(0===(a=(0,u.D)(a)).length)throw new i.aV(t,i.rH.WrongNumberOfParameters,e);if(1===a.length)if((0,u.m)(a[0])){const n=(0,u.D)(a[0]);for(let r=0;r<n.length;r++)if(null!==n[r]){if(!(n[r]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);o.push(n[r])}}else{if(!(0,u.o)(a[0])){if(a[0]instanceof h.Z)return(0,u.y)((0,s.r1)(a[0]),t.spatialReference);if(null===a[0])return null;throw new i.aV(t,i.rH.InvalidParameter,e)}{const n=(0,u.D)(a[0].toArray());for(let r=0;r<n.length;r++)if(null!==n[r]){if(!(n[r]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);o.push(n[r])}}}else for(let n=0;n<a.length;n++)if(null!==a[n]){if(!(a[n]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);o.push(a[n])}return 0===o.length?null:(0,m.G0)(o)}))},n.functions.difference=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null!==a[0]&&null===a[1]?(0,s.r1)(a[0]):null===a[0]?null:(0,m.e5)(a[0],a[1]))))},n.functions.symmetricdifference=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null===a[0]&&null===a[1]?null:null===a[0]?(0,s.r1)(a[1]):null===a[1]?(0,s.r1)(a[0]):(0,m.Sp)(a[0],a[1]))))},n.functions.clip=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,2,t,e),!(a[1]instanceof d.Z)&&null!==a[1])throw new i.aV(t,i.rH.InvalidParameter,e);if(null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return null===a[1]?null:(0,m.oq)(a[0],a[1])}))},n.functions.cut=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,2,t,e),!(a[1]instanceof p.Z)&&null!==a[1])throw new i.aV(t,i.rH.InvalidParameter,e);if(null===a[0])return[];if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return null===a[1]?[(0,s.r1)(a[0])]:(0,m.z7)(a[0],a[1])}))},n.functions.area=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if((0,u.C)(a,1,2,t,e),null===(a=(0,u.D)(a))[0])return 0;if((0,u.r)(a[0])){const n=await a[0].sumArea((0,s.EI)((0,u.F)(a[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new i.aV(t,i.rH.Cancelled,e);return n}if((0,u.m)(a[0])||(0,u.o)(a[0])){const n=(0,u.E)(a[0],t.spatialReference);return null===n?0:(0,m.CJ)(n,(0,s.EI)((0,u.F)(a[1],-1)))}if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.CJ)(a[0],(0,s.EI)((0,u.F)(a[1],-1)))}))},n.functions.areageodetic=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if((0,u.C)(a,1,2,t,e),null===(a=(0,u.D)(a))[0])return 0;if((0,u.r)(a[0])){const n=await a[0].sumArea((0,s.EI)((0,u.F)(a[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new i.aV(t,i.rH.Cancelled,e);return n}if((0,u.m)(a[0])||(0,u.o)(a[0])){const n=(0,u.E)(a[0],t.spatialReference);return null===n?0:(0,m.Y4)(n,(0,s.EI)((0,u.F)(a[1],-1)))}if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.Y4)(a[0],(0,s.EI)((0,u.F)(a[1],-1)))}))},n.functions.length=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if((0,u.C)(a,1,2,t,e),null===(a=(0,u.D)(a))[0])return 0;if((0,u.r)(a[0])){const n=await a[0].sumLength((0,s.Lz)((0,u.F)(a[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new i.aV(t,i.rH.Cancelled,e);return n}if((0,u.m)(a[0])||(0,u.o)(a[0])){const n=(0,u.G)(a[0],t.spatialReference);return null===n?0:(0,m.sz)(n,(0,s.Lz)((0,u.F)(a[1],-1)))}if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.sz)(a[0],(0,s.Lz)((0,u.F)(a[1],-1)))}))},n.functions.length3d=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if((0,u.C)(a,1,2,t,e),null===(a=(0,u.D)(a))[0])return 0;if((0,u.m)(a[0])||(0,u.o)(a[0])){const n=(0,u.G)(a[0],t.spatialReference);return null===n?0:!0===n.hasZ?A(n,(0,s.Lz)((0,u.F)(a[1],-1))):(0,m.sz)(n,(0,s.Lz)((0,u.F)(a[1],-1)))}if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return!0===a[0].hasZ?A(a[0],(0,s.Lz)((0,u.F)(a[1],-1))):(0,m.sz)(a[0],(0,s.Lz)((0,u.F)(a[1],-1)))}))},n.functions.lengthgeodetic=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if((0,u.C)(a,1,2,t,e),null===(a=(0,u.D)(a))[0])return 0;if((0,u.r)(a[0])){const n=await a[0].sumLength((0,s.Lz)((0,u.F)(a[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new i.aV(t,i.rH.Cancelled,e);return n}if((0,u.m)(a[0])||(0,u.o)(a[0])){const n=(0,u.G)(a[0],t.spatialReference);return null===n?0:(0,m.kQ)(n,(0,s.Lz)((0,u.F)(a[1],-1)))}if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.kQ)(a[0],(0,s.Lz)((0,u.F)(a[1],-1)))}))},n.functions.distance=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{a=(0,u.D)(a),(0,u.C)(a,2,3,t,e);let o=a[0];((0,u.m)(a[0])||(0,u.o)(a[0]))&&(o=(0,u.H)(a[0],t.spatialReference));let c=a[1];if(((0,u.m)(a[1])||(0,u.o)(a[1]))&&(c=(0,u.H)(a[1],t.spatialReference)),!(o instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);if(!(c instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.TE)(o,c,(0,s.Lz)((0,u.F)(a[2],-1)))}))},n.functions.distancegeodetic=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{a=(0,u.D)(a),(0,u.C)(a,2,3,t,e);const o=a[0],c=a[1];if(!(o instanceof g.Z))throw new i.aV(t,i.rH.InvalidParameter,e);if(!(c instanceof g.Z))throw new i.aV(t,i.rH.InvalidParameter,e);const l=new p.Z({paths:[],spatialReference:o.spatialReference});return l.addPath([o,c]),(0,m.kQ)(l,(0,s.Lz)((0,u.F)(a[2],-1)))}))},n.functions.densify=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);const o=(0,u.g)(a[1]);if(isNaN(o))throw new i.aV(t,i.rH.InvalidParameter,e);if(o<=0)throw new i.aV(t,i.rH.InvalidParameter,e);return a[0]instanceof w.Z||a[0]instanceof p.Z?(0,m.Cz)(a[0],o,(0,s.Lz)((0,u.F)(a[2],-1))):a[0]instanceof d.Z?(0,m.Cz)(F(a[0]),o,(0,s.Lz)((0,u.F)(a[2],-1))):a[0]}))},n.functions.densifygeodetic=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);const o=(0,u.g)(a[1]);if(isNaN(o))throw new i.aV(t,i.rH.InvalidParameter,e);if(o<=0)throw new i.aV(t,i.rH.InvalidParameter,e);return a[0]instanceof w.Z||a[0]instanceof p.Z?(0,m.j2)(a[0],o,(0,s.Lz)((0,u.F)(a[2],-1))):a[0]instanceof d.Z?(0,m.j2)(F(a[0]),o,(0,s.Lz)((0,u.F)(a[2],-1))):a[0]}))},n.functions.generalize=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,4,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);const o=(0,u.g)(a[1]);if(isNaN(o))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.D$)(a[0],o,(0,u.h)((0,u.F)(a[2],!0)),(0,s.Lz)((0,u.F)(a[3],-1)))}))},n.functions.buffer=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);const o=(0,u.g)(a[1]);if(isNaN(o))throw new i.aV(t,i.rH.InvalidParameter,e);return 0===o?(0,s.r1)(a[0]):(0,m.f3)(a[0],o,(0,s.Lz)((0,u.F)(a[2],-1)))}))},n.functions.buffergeodetic=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);const o=(0,u.g)(a[1]);if(isNaN(o))throw new i.aV(t,i.rH.InvalidParameter,e);return 0===o?(0,s.r1)(a[0]):(0,m.rd)(a[0],o,(0,s.Lz)((0,u.F)(a[2],-1)))}))},n.functions.offset=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,6,t,e),null===a[0])return null;if(!(a[0]instanceof w.Z||a[0]instanceof p.Z))throw new i.aV(t,i.rH.InvalidParameter,e);const o=(0,u.g)(a[1]);if(isNaN(o))throw new i.aV(t,i.rH.InvalidParameter,e);const c=(0,u.g)((0,u.F)(a[4],10));if(isNaN(c))throw new i.aV(t,i.rH.InvalidParameter,e);const l=(0,u.g)((0,u.F)(a[5],0));if(isNaN(l))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.cv)(a[0],o,(0,s.Lz)((0,u.F)(a[2],-1)),(0,u.j)((0,u.F)(a[3],"round")).toLowerCase(),c,l)}))},n.functions.rotate=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{a=(0,u.D)(a),(0,u.C)(a,2,3,t,e);let o=a[0];if(null===o)return null;if(!(o instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);o instanceof d.Z&&(o=w.Z.fromExtent(o));const s=(0,u.g)(a[1]);if(isNaN(s))throw new i.aV(t,i.rH.InvalidParameter,e);const c=(0,u.F)(a[2],null);if(null===c)return(0,m.U1)(o,s);if(c instanceof g.Z)return(0,m.U1)(o,s,c);throw new i.aV(t,i.rH.InvalidParameter,e)}))},n.functions.centroid=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,1,1,t,e),null===a[0])return null;let o=a[0];if(((0,u.m)(a[0])||(0,u.o)(a[0]))&&(o=(0,u.H)(a[0],t.spatialReference)),null===o)return null;if(!(o instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return o instanceof g.Z?(0,u.y)((0,s.r1)(a[0]),t.spatialReference):o instanceof w.Z?o.centroid:o instanceof p.Z?(0,l.s9)(o):o instanceof y.Z?(0,l.Ay)(o):o instanceof d.Z?o.center:null}))},n.functions.multiparttosinglepart=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{a=(0,u.D)(a),(0,u.C)(a,1,1,t,e);const o=[];if(null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);if(a[0]instanceof g.Z)return[(0,u.y)((0,s.r1)(a[0]),t.spatialReference)];if(a[0]instanceof d.Z)return[(0,u.y)((0,s.r1)(a[0]),t.spatialReference)];const c=await(0,m.og)(a[0]);if(c instanceof w.Z){const n=[],t=[];for(let e=0;e<c.rings.length;e++)if(c.isClockwise(c.rings[e])){const t=(0,Z.im)({rings:[c.rings[e]],hasZ:!0===c.hasZ,hazM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(t)}else t.push({ring:c.rings[e],pt:c.getPoint(e,0)});for(let e=0;e<t.length;e++)for(let r=0;r<n.length;r++)if(n[r].contains(t[e].pt)){n[r].addRing(t[e].ring);break}return n}if(c instanceof p.Z){const n=[];for(let t=0;t<c.paths.length;t++){const e=(0,Z.im)({paths:[c.paths[t]],hasZ:!0===c.hasZ,hazM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(e)}return n}if(a[0]instanceof y.Z){const n=(0,u.y)((0,s.r1)(a[0]),t.spatialReference);for(let t=0;t<n.points.length;t++)o.push(n.getPoint(t));return o}return null}))},n.functions.issimple=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,1,1,t,e),null===a[0])return!0;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.Gg)(a[0])}))},n.functions.simplify=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.og)(a[0])}))},n.functions.convexhull=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.JI)(a[0])}))},n.functions.getuser=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,s)=>{(0,u.C)(s,0,2,t,e);let l=(0,u.F)(s[1],""),f=!0===l;if(l=!0===l||!1===l?"":(0,u.j)(l),0===s.length||s[0]instanceof a.Z){let n=null;n=t.services&&t.services.portal?t.services.portal:v.Z.getDefault(),s.length>0&&(n=(0,c._)(s[0],n));const e=await(0,c.q)(n,l,f);if(e){const n=JSON.parse(JSON.stringify(e));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return o.Z.convertObjectToArcadeDictionary(n,(0,u.J)(t))}return null}let d=null;if((0,u.r)(s[0])&&(d=s[0]),d){if(f=!1,l)return null;await d.load();const n=await d.getOwningSystemUrl();if(!n){if(!l){const n=await d.getIdentityUser();return n?o.Z.convertObjectToArcadeDictionary({username:n},(0,u.J)(t)):null}return null}let e=null;e=t.services&&t.services.portal?t.services.portal:v.Z.getDefault(),e=(0,c._)(new a.Z(n),e);const r=await(0,c.q)(e,l,f);if(r){const n=JSON.parse(JSON.stringify(r));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return o.Z.convertObjectToArcadeDictionary(n,(0,u.J)(t))}return null}throw new i.aV(t,i.rH.InvalidParameter,e)}))}),n.functions.nearestcoordinate=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,2,t,e),!(a[0]instanceof h.Z||null===a[0]))throw new i.aV(t,i.rH.InvalidParameter,e);if(!(a[1]instanceof g.Z||null===a[1]))throw new i.aV(t,i.rH.InvalidParameter,e);if(null===a[0]||null===a[1])return null;const s=await(0,m.FH)(a[0],a[1]);return null===s?null:o.Z.convertObjectToArcadeDictionary({coordinate:s.coordinate,distance:s.distance},(0,u.J)(t),!1,!0)}))},n.functions.nearestvertex=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,2,t,e),!(a[0]instanceof h.Z||null===a[0]))throw new i.aV(t,i.rH.InvalidParameter,e);if(!(a[1]instanceof g.Z||null===a[1]))throw new i.aV(t,i.rH.InvalidParameter,e);if(null===a[0]||null===a[1])return null;const s=await(0,m._L)(a[0],a[1]);return null===s?null:o.Z.convertObjectToArcadeDictionary({coordinate:s.coordinate,distance:s.distance},(0,u.J)(t),!1,!0)}))}}},26520:(n,t,e)=>{e.d(t,{_:()=>i,q:()=>s});var r=e(40330),a=e(3172),o=e(48522);function i(n,t){return null===n?t:new o.Z({url:n.field("url")})}async function s(n,t,e){const o=r.id?.findCredential(n.restUrl);if(!o)return null;if("loaded"===n.loadStatus&&""===t&&n.user&&n.user.sourceJSON&&!1===e)return n.user.sourceJSON;if(""===t){const t=await(0,a.Z)(n.restUrl+"/community/self",{responseType:"json",query:{f:"json",...!1===e?{}:{returnUserLicenseTypeExtensions:!0}}});if(t.data){const n=t.data;if(n&&n.username)return n}return null}const i=await(0,a.Z)(n.restUrl+"/community/users/"+t,{responseType:"json",query:{f:"json"}});if(i.data){const n=i.data;return n.error?null:n}return null}},99880:(n,t,e)=>{e.d(t,{V:()=>u});var r=e(68773),a=(e(3172),e(20102)),o=e(92604),i=e(17452);const s=o.Z.getLogger("esri.assets");function u(n){if(!r.default.assetsPath)throw s.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new a.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(r.default.assetsPath,n)}},10661:(n,t,e)=>{e.d(t,{s:()=>a});var r=e(42100);class a extends r.s{notify(){const n=this._observers;if(n&&n.length>0){const t=n.slice();for(const n of t)n.onInvalidated(),n.onCommitted()}}}},8667:(n,t,e)=>{e.d(t,{CJ:()=>E,Cz:()=>k,D$:()=>R,ED:()=>v,FH:()=>T,G0:()=>C,Gg:()=>A,JI:()=>H,LV:()=>D,Nm:()=>F,Sp:()=>V,TE:()=>y,U1:()=>N,W4:()=>p,Y4:()=>_,_L:()=>x,cv:()=>S,e5:()=>P,f3:()=>z,fS:()=>g,j2:()=>O,jU:()=>m,kK:()=>w,kQ:()=>J,og:()=>I,oq:()=>f,r3:()=>h,rd:()=>b,sz:()=>M,uh:()=>Z,wf:()=>L,z7:()=>d}),e(66577);var r=e(56569),a=e(94139),o=e(33955);function i(n){return Array.isArray(n)?n[0]?.spatialReference:n?.spatialReference}function s(n){return n?Array.isArray(n)?n.map(s):n.toJSON?n.toJSON():n:n}function u(n){return Array.isArray(n)?n.map((n=>(0,o.im)(n))):(0,o.im)(n)}let c;async function l(n,t){return(await async function(){return c||(c=(0,r.bA)("geometryEngineWorker",{strategy:"distributed"})),c}()).invoke("executeGEOperation",{operation:n,parameters:s(t)})}async function f(n,t){return u(await l("clip",[i(n),n,t]))}async function d(n,t){return u(await l("cut",[i(n),n,t]))}function h(n,t){return l("contains",[i(n),n,t])}function m(n,t){return l("crosses",[i(n),n,t])}function y(n,t,e){return l("distance",[i(n),n,t,e])}function g(n,t){return l("equals",[i(n),n,t])}function w(n,t){return l("intersects",[i(n),n,t])}function p(n,t){return l("touches",[i(n),n,t])}function Z(n,t){return l("within",[i(n),n,t])}function v(n,t){return l("disjoint",[i(n),n,t])}function F(n,t){return l("overlaps",[i(n),n,t])}function D(n,t,e){return l("relate",[i(n),n,t,e])}function A(n){return l("isSimple",[i(n),n])}async function I(n){return u(await l("simplify",[i(n),n]))}async function H(n,t=!1){return u(await l("convexHull",[i(n),n,t]))}async function P(n,t){return u(await l("difference",[i(n),n,t]))}async function V(n,t){return u(await l("symmetricDifference",[i(n),n,t]))}async function L(n,t){return u(await l("intersect",[i(n),n,t]))}async function C(n,t=null){const e=function(n,t){let e;return Array.isArray(n)?e=n:(e=[],e.push(n),null!=t&&e.push(t)),e}(n,t);return u(await l("union",[i(e),e]))}async function S(n,t,e,r,a,o){return u(await l("offset",[i(n),n,t,e,r,a,o]))}async function z(n,t,e,r=!1){const a=[i(n),n,t,e,r];return u(await l("buffer",a))}async function b(n,t,e,r,a,o){const s=[i(n),n,t,e,r,a,o];return u(await l("geodesicBuffer",s))}async function T(n,t,e=!0){const r=await l("nearestCoordinate",[i(n),n,t,e]);return{...r,coordinate:a.Z.fromJSON(r.coordinate)}}async function x(n,t){const e=await l("nearestVertex",[i(n),n,t]);return{...e,coordinate:a.Z.fromJSON(e.coordinate)}}async function N(n,t,e){if(null==n)throw new j;const r=n.spatialReference;if(null==(e=e??function(n){return"xmin"in n?n.center:"x"in n?n:n.extent?.center}(n)))throw new j;const a=n.constructor.fromJSON(await l("rotate",[r,n,t,e]));return a.spatialReference=r,a}async function R(n,t,e,r){return u(await l("generalize",[i(n),n,t,e,r]))}async function k(n,t,e){return u(await l("densify",[i(n),n,t,e]))}async function O(n,t,e,r=0){return u(await l("geodesicDensify",[i(n),n,t,e,r]))}function E(n,t){return l("planarArea",[i(n),n,t])}function M(n,t){return l("planarLength",[i(n),n,t])}function _(n,t,e){return l("geodesicArea",[i(n),n,t,e])}function J(n,t,e){return l("geodesicLength",[i(n),n,t,e])}class j extends Error{constructor(){super("Illegal Argument Exception")}}},90344:(n,t,e)=>{e.d(t,{LJ:()=>I,Xr:()=>w,Ze:()=>F,cZ:()=>c,f1:()=>P,i$:()=>H,o8:()=>A,p6:()=>D});var r=e(35454),a=e(70171),o=e(17126);const i={year:void 0,month:void 0,day:void 0,weekday:void 0},s={hour:void 0,minute:void 0,second:void 0},u={timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},c={timeZone:"Etc/UTC"},l={year:"numeric",month:"numeric",day:"numeric"},f={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},h={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},y={...m,second:"numeric"},g={"short-date":l,"short-date-short-time":{...l,...m},"short-date-short-time-24":{...l,...m,hour12:!1},"short-date-long-time":{...l,...y},"short-date-long-time-24":{...l,...y,hour12:!1},"short-date-le":l,"short-date-le-short-time":{...l,...m},"short-date-le-short-time-24":{...l,...m,hour12:!1},"short-date-le-long-time":{...l,...y},"short-date-le-long-time-24":{...l,...y,hour12:!1},"long-month-day-year":f,"long-month-day-year-short-time":{...f,...m},"long-month-day-year-short-time-24":{...f,...m,hour12:!1},"long-month-day-year-long-time":{...f,...y},"long-month-day-year-long-time-24":{...f,...y,hour12:!1},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...m,hour12:!1},"day-short-month-year-long-time":{...d,...y},"day-short-month-year-long-time-24":{...d,...y,hour12:!1},"long-date":h,"long-date-short-time":{...h,...m},"long-date-short-time-24":{...h,...m,hour12:!1},"long-date-long-time":{...h,...y},"long-date-long-time-24":{...h,...y,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":y},w=(0,r.w)()({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={ar:"ar-u-nu-latn-ca-gregory"};let Z=new WeakMap;const v=g["short-date-short-time"];function F(n){return g[n]}function D(n,t=v){return function(n){let t=Z.get(n);if(!t){const e=(0,a.Kd)(),r=p[e]||e,o=P(n.timeZone??"system"),i={...n,timeZone:o};t=new Intl.DateTimeFormat(r,i),Z.set(n,t)}return t}(t).format(n)}function A(n,t=v){return D(new Date(n),{...t,...c,...s})}function I(n,t=v){return D(new Date(`1970-01-01T${n}Z`),{...t,...c,...i})}function H(n,t=v){const e=o.ou.fromISO(n,{setZone:!0}),r=(0,a.Kd)(),i=p[r]??r;return e.toLocaleString({...u,...t},{locale:i})}function P(n){switch(n){case"system":return;case"unknown":return"UTC";default:return n}}(0,a.Ze)((()=>{Z=new WeakMap}))},94443:(n,t,e)=>{e.d(t,{ME:()=>m,Su:()=>y,tz:()=>h});var r=e(20102),a=e(50758),o=e(95330),i=e(70171);const s=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,u={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 c(n){return n in u}Object.keys(u);const l=[],f=new Map;function d(n){for(const t of f.keys())g(n.pattern,t)&&f.delete(t)}function h(n){return l.includes(n)||(d(n),l.unshift(n)),(0,a.kB)((()=>{const t=l.indexOf(n);t>-1&&(l.splice(t,1),d(n))}))}async function m(n){const t=(0,i.Kd)();f.has(n)||f.set(n,async function(n,t){const e=[];for(const r of l)if(g(r.pattern,n))try{return await r.fetchMessageBundle(n,t)}catch(n){e.push(n)}if(e.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${n}"`,{errors:e});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${n}"`)}(n,t));const e=f.get(n);return e&&await w.add(e),e}function y(n){if(!s.test(n))return null;const t=s.exec(n);if(null===t)return null;const[,e,r]=t,a=e+(r?"-"+r.toUpperCase():"");return c(a)?a:c(e)?e:null}function g(n,t){return"string"==typeof n?t.startsWith(n):n.test(t)}(0,i.Ze)((()=>{f.clear()}));const w=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(n){return this._increase(),n.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,o.hh)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(n,t,e)=>{e.d(t,{sh:()=>s,uf:()=>u});var r=e(70171);const a={ar:"ar-u-nu-latn"};let o=new WeakMap,i={};function s(n={}){const t={};return null!=n.digitSeparator&&(t.useGrouping=n.digitSeparator),null!=n.places&&(t.minimumFractionDigits=t.maximumFractionDigits=n.places),t}function u(n,t){return Object.is(n,-0)&&(n=0),function(n){const t=n||i;if(!o.has(t)){const e=(0,r.Kd)(),i=a[(0,r.Kd)()]||e;o.set(t,new Intl.NumberFormat(i,n))}return o.get(t)}(t).format(n)}(0,r.Ze)((()=>{o=new WeakMap,i={}}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2906,661,5234,9880],{66748:(n,t,e)=>{e.r(t),e.d(t,{registerFunctions:()=>I});var r=e(40330),a=e(28228),o=e(33586),i=e(27535),s=e(77286),u=e(61363),c=e(26520),l=e(71201),f=e(67900),d=e(6570),h=e(9361),m=e(8667),y=e(65091),g=e(94139),w=e(38913),p=e(58901),Z=e(33955),v=e(48522);function F(n){return 0===r.i8.indexOf("4.")?w.Z.fromExtent(n):new w.Z({spatialReference:n.spatialReference,rings:[[[n.xmin,n.ymin],[n.xmin,n.ymax],[n.xmax,n.ymax],[n.xmax,n.ymin],[n.xmin,n.ymin]]]})}function D(n,t,e){if((0,u.C)(n,2,2,t,e),n[0]instanceof h.Z&&n[1]instanceof h.Z);else if(n[0]instanceof h.Z&&null===n[1]);else if(n[1]instanceof h.Z&&null===n[0]);else if(null!==n[0]||null!==n[1])throw new i.aV(t,i.rH.InvalidParameter,e)}async function A(n,t){if("polygon"!==n.type&&"polyline"!==n.type&&"extent"!==n.type)return 0;let e=1;(n.spatialReference.vcsWkid||n.spatialReference.latestVcsWkid)&&(e=(0,l._R)(n.spatialReference)/(0,f.c9)(n.spatialReference));let r=0;if("polyline"===n.type)for(const t of n.paths)for(let n=1;n<t.length;n++)r+=(0,l.AW)(t[n],t[n-1],e);else if("polygon"===n.type)for(const t of n.rings){for(let n=1;n<t.length;n++)r+=(0,l.AW)(t[n],t[n-1],e);(t[0][0]!==t[t.length-1][0]||t[0][1]!==t[t.length-1][1]||void 0!==t[0][2]&&t[0][2]!==t[t.length-1][2])&&(r+=(0,l.AW)(t[0],t[t.length-1],e))}else"extent"===n.type&&(r+=2*(0,l.AW)([n.xmin,n.ymin,0],[n.xmax,n.ymin,0],e),r+=2*(0,l.AW)([n.xmin,n.ymin,0],[n.xmin,n.ymax,0],e),r*=2,r+=4*Math.abs((0,u.F)(n.zmax,0)*e-(0,u.F)(n.zmin,0)*e));const a=new p.Z({hasZ:!1,hasM:!1,spatialReference:n.spatialReference,paths:[[0,0],[0,r]]});return(0,m.sz)(a,t)}function I(n){"async"===n.mode&&(n.functions.disjoint=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null===a[0]||null===a[1]||(0,m.ED)(a[0],a[1]))))},n.functions.intersects=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.kK)(a[0],a[1]))))},n.functions.touches=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.W4)(a[0],a[1]))))},n.functions.crosses=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.jU)(a[0],a[1]))))},n.functions.within=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.uh)(a[0],a[1]))))},n.functions.contains=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.r3)(a[0],a[1]))))},n.functions.overlaps=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null!==a[0]&&null!==a[1]&&(0,m.Nm)(a[0],a[1]))))},n.functions.equals=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>((0,u.C)(a,2,2,t,e),a[0]===a[1]||(a[0]instanceof h.Z&&a[1]instanceof h.Z?(0,m.fS)(a[0],a[1]):!(!(0,u.k)(a[0])||!(0,u.k)(a[1]))&&a[0].equals(a[1])))))},n.functions.relate=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,3,3,t,e),a[0]instanceof h.Z&&a[1]instanceof h.Z)return(0,m.LV)(a[0],a[1],(0,u.j)(a[2]));if(a[0]instanceof h.Z&&null===a[1])return!1;if(a[1]instanceof h.Z&&null===a[0])return!1;if(null===a[0]&&null===a[1])return!1;throw new i.aV(t,i.rH.InvalidParameter,e)}))},n.functions.intersection=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null===a[0]||null===a[1]?null:(0,m.wf)(a[0],a[1]))))},n.functions.union=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{const o=[];if(0===(a=(0,u.D)(a)).length)throw new i.aV(t,i.rH.WrongNumberOfParameters,e);if(1===a.length)if((0,u.m)(a[0])){const n=(0,u.D)(a[0]);for(let r=0;r<n.length;r++)if(null!==n[r]){if(!(n[r]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);o.push(n[r])}}else{if(!(0,u.o)(a[0])){if(a[0]instanceof h.Z)return(0,u.y)((0,s.r1)(a[0]),t.spatialReference);if(null===a[0])return null;throw new i.aV(t,i.rH.InvalidParameter,e)}{const n=(0,u.D)(a[0].toArray());for(let r=0;r<n.length;r++)if(null!==n[r]){if(!(n[r]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);o.push(n[r])}}}else for(let n=0;n<a.length;n++)if(null!==a[n]){if(!(a[n]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);o.push(a[n])}return 0===o.length?null:(0,m.G0)(o)}))},n.functions.difference=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null!==a[0]&&null===a[1]?(0,s.r1)(a[0]):null===a[0]?null:(0,m.e5)(a[0],a[1]))))},n.functions.symmetricdifference=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>(D(a=(0,u.D)(a),t,e),null===a[0]&&null===a[1]?null:null===a[0]?(0,s.r1)(a[1]):null===a[1]?(0,s.r1)(a[0]):(0,m.Sp)(a[0],a[1]))))},n.functions.clip=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,2,t,e),!(a[1]instanceof d.Z)&&null!==a[1])throw new i.aV(t,i.rH.InvalidParameter,e);if(null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return null===a[1]?null:(0,m.oq)(a[0],a[1])}))},n.functions.cut=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,2,t,e),!(a[1]instanceof p.Z)&&null!==a[1])throw new i.aV(t,i.rH.InvalidParameter,e);if(null===a[0])return[];if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return null===a[1]?[(0,s.r1)(a[0])]:(0,m.z7)(a[0],a[1])}))},n.functions.area=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if((0,u.C)(a,1,2,t,e),null===(a=(0,u.D)(a))[0])return 0;if((0,u.r)(a[0])){const n=await a[0].sumArea((0,s.EI)((0,u.F)(a[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new i.aV(t,i.rH.Cancelled,e);return n}if((0,u.m)(a[0])||(0,u.o)(a[0])){const n=(0,u.E)(a[0],t.spatialReference);return null===n?0:(0,m.CJ)(n,(0,s.EI)((0,u.F)(a[1],-1)))}if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.CJ)(a[0],(0,s.EI)((0,u.F)(a[1],-1)))}))},n.functions.areageodetic=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if((0,u.C)(a,1,2,t,e),null===(a=(0,u.D)(a))[0])return 0;if((0,u.r)(a[0])){const n=await a[0].sumArea((0,s.EI)((0,u.F)(a[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new i.aV(t,i.rH.Cancelled,e);return n}if((0,u.m)(a[0])||(0,u.o)(a[0])){const n=(0,u.E)(a[0],t.spatialReference);return null===n?0:(0,m.Y4)(n,(0,s.EI)((0,u.F)(a[1],-1)))}if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.Y4)(a[0],(0,s.EI)((0,u.F)(a[1],-1)))}))},n.functions.length=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if((0,u.C)(a,1,2,t,e),null===(a=(0,u.D)(a))[0])return 0;if((0,u.r)(a[0])){const n=await a[0].sumLength((0,s.Lz)((0,u.F)(a[1],-1)),!1,t.abortSignal);if(t.abortSignal.aborted)throw new i.aV(t,i.rH.Cancelled,e);return n}if((0,u.m)(a[0])||(0,u.o)(a[0])){const n=(0,u.G)(a[0],t.spatialReference);return null===n?0:(0,m.sz)(n,(0,s.Lz)((0,u.F)(a[1],-1)))}if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.sz)(a[0],(0,s.Lz)((0,u.F)(a[1],-1)))}))},n.functions.length3d=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if((0,u.C)(a,1,2,t,e),null===(a=(0,u.D)(a))[0])return 0;if((0,u.m)(a[0])||(0,u.o)(a[0])){const n=(0,u.G)(a[0],t.spatialReference);return null===n?0:!0===n.hasZ?A(n,(0,s.Lz)((0,u.F)(a[1],-1))):(0,m.sz)(n,(0,s.Lz)((0,u.F)(a[1],-1)))}if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return!0===a[0].hasZ?A(a[0],(0,s.Lz)((0,u.F)(a[1],-1))):(0,m.sz)(a[0],(0,s.Lz)((0,u.F)(a[1],-1)))}))},n.functions.lengthgeodetic=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if((0,u.C)(a,1,2,t,e),null===(a=(0,u.D)(a))[0])return 0;if((0,u.r)(a[0])){const n=await a[0].sumLength((0,s.Lz)((0,u.F)(a[1],-1)),!0,t.abortSignal);if(t.abortSignal.aborted)throw new i.aV(t,i.rH.Cancelled,e);return n}if((0,u.m)(a[0])||(0,u.o)(a[0])){const n=(0,u.G)(a[0],t.spatialReference);return null===n?0:(0,m.kQ)(n,(0,s.Lz)((0,u.F)(a[1],-1)))}if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.kQ)(a[0],(0,s.Lz)((0,u.F)(a[1],-1)))}))},n.functions.distance=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{a=(0,u.D)(a),(0,u.C)(a,2,3,t,e);let o=a[0];((0,u.m)(a[0])||(0,u.o)(a[0]))&&(o=(0,u.H)(a[0],t.spatialReference));let c=a[1];if(((0,u.m)(a[1])||(0,u.o)(a[1]))&&(c=(0,u.H)(a[1],t.spatialReference)),!(o instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);if(!(c instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.TE)(o,c,(0,s.Lz)((0,u.F)(a[2],-1)))}))},n.functions.distancegeodetic=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{a=(0,u.D)(a),(0,u.C)(a,2,3,t,e);const o=a[0],c=a[1];if(!(o instanceof g.Z))throw new i.aV(t,i.rH.InvalidParameter,e);if(!(c instanceof g.Z))throw new i.aV(t,i.rH.InvalidParameter,e);const l=new p.Z({paths:[],spatialReference:o.spatialReference});return l.addPath([o,c]),(0,m.kQ)(l,(0,s.Lz)((0,u.F)(a[2],-1)))}))},n.functions.densify=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);const o=(0,u.g)(a[1]);if(isNaN(o))throw new i.aV(t,i.rH.InvalidParameter,e);if(o<=0)throw new i.aV(t,i.rH.InvalidParameter,e);return a[0]instanceof w.Z||a[0]instanceof p.Z?(0,m.Cz)(a[0],o,(0,s.Lz)((0,u.F)(a[2],-1))):a[0]instanceof d.Z?(0,m.Cz)(F(a[0]),o,(0,s.Lz)((0,u.F)(a[2],-1))):a[0]}))},n.functions.densifygeodetic=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);const o=(0,u.g)(a[1]);if(isNaN(o))throw new i.aV(t,i.rH.InvalidParameter,e);if(o<=0)throw new i.aV(t,i.rH.InvalidParameter,e);return a[0]instanceof w.Z||a[0]instanceof p.Z?(0,m.j2)(a[0],o,(0,s.Lz)((0,u.F)(a[2],-1))):a[0]instanceof d.Z?(0,m.j2)(F(a[0]),o,(0,s.Lz)((0,u.F)(a[2],-1))):a[0]}))},n.functions.generalize=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,4,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);const o=(0,u.g)(a[1]);if(isNaN(o))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.D$)(a[0],o,(0,u.h)((0,u.F)(a[2],!0)),(0,s.Lz)((0,u.F)(a[3],-1)))}))},n.functions.buffer=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);const o=(0,u.g)(a[1]);if(isNaN(o))throw new i.aV(t,i.rH.InvalidParameter,e);return 0===o?(0,s.r1)(a[0]):(0,m.f3)(a[0],o,(0,s.Lz)((0,u.F)(a[2],-1)))}))},n.functions.buffergeodetic=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,3,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);const o=(0,u.g)(a[1]);if(isNaN(o))throw new i.aV(t,i.rH.InvalidParameter,e);return 0===o?(0,s.r1)(a[0]):(0,m.rd)(a[0],o,(0,s.Lz)((0,u.F)(a[2],-1)))}))},n.functions.offset=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,6,t,e),null===a[0])return null;if(!(a[0]instanceof w.Z||a[0]instanceof p.Z))throw new i.aV(t,i.rH.InvalidParameter,e);const o=(0,u.g)(a[1]);if(isNaN(o))throw new i.aV(t,i.rH.InvalidParameter,e);const c=(0,u.g)((0,u.F)(a[4],10));if(isNaN(c))throw new i.aV(t,i.rH.InvalidParameter,e);const l=(0,u.g)((0,u.F)(a[5],0));if(isNaN(l))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.cv)(a[0],o,(0,s.Lz)((0,u.F)(a[2],-1)),(0,u.j)((0,u.F)(a[3],"round")).toLowerCase(),c,l)}))},n.functions.rotate=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{a=(0,u.D)(a),(0,u.C)(a,2,3,t,e);let o=a[0];if(null===o)return null;if(!(o instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);o instanceof d.Z&&(o=w.Z.fromExtent(o));const s=(0,u.g)(a[1]);if(isNaN(s))throw new i.aV(t,i.rH.InvalidParameter,e);const c=(0,u.F)(a[2],null);if(null===c)return(0,m.U1)(o,s);if(c instanceof g.Z)return(0,m.U1)(o,s,c);throw new i.aV(t,i.rH.InvalidParameter,e)}))},n.functions.centroid=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,1,1,t,e),null===a[0])return null;let o=a[0];if(((0,u.m)(a[0])||(0,u.o)(a[0]))&&(o=(0,u.H)(a[0],t.spatialReference)),null===o)return null;if(!(o instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return o instanceof g.Z?(0,u.y)((0,s.r1)(a[0]),t.spatialReference):o instanceof w.Z?o.centroid:o instanceof p.Z?(0,l.s9)(o):o instanceof y.Z?(0,l.Ay)(o):o instanceof d.Z?o.center:null}))},n.functions.multiparttosinglepart=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{a=(0,u.D)(a),(0,u.C)(a,1,1,t,e);const o=[];if(null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);if(a[0]instanceof g.Z)return[(0,u.y)((0,s.r1)(a[0]),t.spatialReference)];if(a[0]instanceof d.Z)return[(0,u.y)((0,s.r1)(a[0]),t.spatialReference)];const c=await(0,m.og)(a[0]);if(c instanceof w.Z){const n=[],t=[];for(let e=0;e<c.rings.length;e++)if(c.isClockwise(c.rings[e])){const t=(0,Z.im)({rings:[c.rings[e]],hasZ:!0===c.hasZ,hazM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(t)}else t.push({ring:c.rings[e],pt:c.getPoint(e,0)});for(let e=0;e<t.length;e++)for(let r=0;r<n.length;r++)if(n[r].contains(t[e].pt)){n[r].addRing(t[e].ring);break}return n}if(c instanceof p.Z){const n=[];for(let t=0;t<c.paths.length;t++){const e=(0,Z.im)({paths:[c.paths[t]],hasZ:!0===c.hasZ,hazM:!0===c.hasM,spatialReference:c.spatialReference.toJSON()});n.push(e)}return n}if(a[0]instanceof y.Z){const n=(0,u.y)((0,s.r1)(a[0]),t.spatialReference);for(let t=0;t<n.points.length;t++)o.push(n.getPoint(t));return o}return null}))},n.functions.issimple=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,1,1,t,e),null===a[0])return!0;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.Gg)(a[0])}))},n.functions.simplify=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.og)(a[0])}))},n.functions.convexhull=function(t,e){return n.standardFunctionAsync(t,e,((n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,1,1,t,e),null===a[0])return null;if(!(a[0]instanceof h.Z))throw new i.aV(t,i.rH.InvalidParameter,e);return(0,m.JI)(a[0])}))},n.functions.getuser=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,s)=>{(0,u.C)(s,0,2,t,e);let l=(0,u.F)(s[1],""),f=!0===l;if(l=!0===l||!1===l?"":(0,u.j)(l),0===s.length||s[0]instanceof a.Z){let n=null;n=t.services&&t.services.portal?t.services.portal:v.Z.getDefault(),s.length>0&&(n=(0,c._)(s[0],n));const e=await(0,c.q)(n,l,f);if(e){const n=JSON.parse(JSON.stringify(e));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return o.Z.convertObjectToArcadeDictionary(n,(0,u.J)(t))}return null}let d=null;if((0,u.r)(s[0])&&(d=s[0]),d){if(f=!1,l)return null;await d.load();const n=await d.getOwningSystemUrl();if(!n){if(!l){const n=await d.getIdentityUser();return n?o.Z.convertObjectToArcadeDictionary({username:n},(0,u.J)(t)):null}return null}let e=null;e=t.services&&t.services.portal?t.services.portal:v.Z.getDefault(),e=(0,c._)(new a.Z(n),e);const r=await(0,c.q)(e,l,f);if(r){const n=JSON.parse(JSON.stringify(r));for(const t of["lastLogin","created","modified"])void 0!==n[t]&&null!==n[t]&&(n[t]=new Date(n[t]));return o.Z.convertObjectToArcadeDictionary(n,(0,u.J)(t))}return null}throw new i.aV(t,i.rH.InvalidParameter,e)}))}),n.functions.nearestcoordinate=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,2,t,e),!(a[0]instanceof h.Z||null===a[0]))throw new i.aV(t,i.rH.InvalidParameter,e);if(!(a[1]instanceof g.Z||null===a[1]))throw new i.aV(t,i.rH.InvalidParameter,e);if(null===a[0]||null===a[1])return null;const s=await(0,m.FH)(a[0],a[1]);return null===s?null:o.Z.convertObjectToArcadeDictionary({coordinate:s.coordinate,distance:s.distance},(0,u.J)(t),!1,!0)}))},n.functions.nearestvertex=function(t,e){return n.standardFunctionAsync(t,e,(async(n,r,a)=>{if(a=(0,u.D)(a),(0,u.C)(a,2,2,t,e),!(a[0]instanceof h.Z||null===a[0]))throw new i.aV(t,i.rH.InvalidParameter,e);if(!(a[1]instanceof g.Z||null===a[1]))throw new i.aV(t,i.rH.InvalidParameter,e);if(null===a[0]||null===a[1])return null;const s=await(0,m._L)(a[0],a[1]);return null===s?null:o.Z.convertObjectToArcadeDictionary({coordinate:s.coordinate,distance:s.distance},(0,u.J)(t),!1,!0)}))}}},26520:(n,t,e)=>{e.d(t,{_:()=>i,q:()=>s});var r=e(40330),a=e(3172),o=e(48522);function i(n,t){return null===n?t:new o.Z({url:n.field("url")})}async function s(n,t,e){const o=r.id?.findCredential(n.restUrl);if(!o)return null;if("loaded"===n.loadStatus&&""===t&&n.user&&n.user.sourceJSON&&!1===e)return n.user.sourceJSON;if(""===t){const t=await(0,a.Z)(n.restUrl+"/community/self",{responseType:"json",query:{f:"json",...!1===e?{}:{returnUserLicenseTypeExtensions:!0}}});if(t.data){const n=t.data;if(n&&n.username)return n}return null}const i=await(0,a.Z)(n.restUrl+"/community/users/"+t,{responseType:"json",query:{f:"json"}});if(i.data){const n=i.data;return n.error?null:n}return null}},99880:(n,t,e)=>{e.d(t,{V:()=>u});var r=e(68773),a=(e(3172),e(20102)),o=e(92604),i=e(17452);const s=o.Z.getLogger("esri.assets");function u(n){if(!r.default.assetsPath)throw s.errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new a.Z("assets:path-not-set","config.assetsPath is not set");return(0,i.v_)(r.default.assetsPath,n)}},10661:(n,t,e)=>{e.d(t,{s:()=>a});var r=e(42100);class a extends r.s{notify(){const n=this._observers;if(n&&n.length>0){const t=n.slice();for(const n of t)n.onInvalidated(),n.onCommitted()}}}},8667:(n,t,e)=>{e.d(t,{CJ:()=>M,Cz:()=>k,D$:()=>R,ED:()=>v,FH:()=>T,G0:()=>C,Gg:()=>A,JI:()=>H,LV:()=>D,Nm:()=>F,Sp:()=>V,TE:()=>y,U1:()=>N,W4:()=>p,Y4:()=>E,_L:()=>x,cv:()=>S,e5:()=>P,f3:()=>z,fS:()=>g,j2:()=>O,jU:()=>m,kK:()=>w,kQ:()=>J,og:()=>I,oq:()=>f,r3:()=>h,rd:()=>b,sz:()=>_,uh:()=>Z,wf:()=>L,z7:()=>d}),e(66577);var r=e(56569),a=e(94139),o=e(33955);function i(n){return Array.isArray(n)?n[0]?.spatialReference:n?.spatialReference}function s(n){return n?Array.isArray(n)?n.map(s):n.toJSON?n.toJSON():n:n}function u(n){return Array.isArray(n)?n.map((n=>(0,o.im)(n))):(0,o.im)(n)}let c;async function l(n,t){return(await async function(){return c||(c=(0,r.bA)("geometryEngineWorker",{strategy:"distributed"})),c}()).invoke("executeGEOperation",{operation:n,parameters:s(t)})}async function f(n,t){return u(await l("clip",[i(n),n,t]))}async function d(n,t){return u(await l("cut",[i(n),n,t]))}function h(n,t){return l("contains",[i(n),n,t])}function m(n,t){return l("crosses",[i(n),n,t])}function y(n,t,e){return l("distance",[i(n),n,t,e])}function g(n,t){return l("equals",[i(n),n,t])}function w(n,t){return l("intersects",[i(n),n,t])}function p(n,t){return l("touches",[i(n),n,t])}function Z(n,t){return l("within",[i(n),n,t])}function v(n,t){return l("disjoint",[i(n),n,t])}function F(n,t){return l("overlaps",[i(n),n,t])}function D(n,t,e){return l("relate",[i(n),n,t,e])}function A(n){return l("isSimple",[i(n),n])}async function I(n){return u(await l("simplify",[i(n),n]))}async function H(n,t=!1){return u(await l("convexHull",[i(n),n,t]))}async function P(n,t){return u(await l("difference",[i(n),n,t]))}async function V(n,t){return u(await l("symmetricDifference",[i(n),n,t]))}async function L(n,t){return u(await l("intersect",[i(n),n,t]))}async function C(n,t=null){const e=function(n,t){let e;return Array.isArray(n)?e=n:(e=[],e.push(n),null!=t&&e.push(t)),e}(n,t);return u(await l("union",[i(e),e]))}async function S(n,t,e,r,a,o){return u(await l("offset",[i(n),n,t,e,r,a,o]))}async function z(n,t,e,r=!1){const a=[i(n),n,t,e,r];return u(await l("buffer",a))}async function b(n,t,e,r,a,o){const s=[i(n),n,t,e,r,a,o];return u(await l("geodesicBuffer",s))}async function T(n,t,e=!0){const r=await l("nearestCoordinate",[i(n),n,t,e]);return{...r,coordinate:a.Z.fromJSON(r.coordinate)}}async function x(n,t){const e=await l("nearestVertex",[i(n),n,t]);return{...e,coordinate:a.Z.fromJSON(e.coordinate)}}async function N(n,t,e){if(null==n)throw new j;const r=n.spatialReference;if(null==(e=e??function(n){return"xmin"in n?n.center:"x"in n?n:n.extent?.center}(n)))throw new j;const a=n.constructor.fromJSON(await l("rotate",[r,n,t,e]));return a.spatialReference=r,a}async function R(n,t,e,r){return u(await l("generalize",[i(n),n,t,e,r]))}async function k(n,t,e){return u(await l("densify",[i(n),n,t,e]))}async function O(n,t,e,r=0){return u(await l("geodesicDensify",[i(n),n,t,e,r]))}function M(n,t){return l("planarArea",[i(n),n,t])}function _(n,t){return l("planarLength",[i(n),n,t])}function E(n,t,e){return l("geodesicArea",[i(n),n,t,e])}function J(n,t,e){return l("geodesicLength",[i(n),n,t,e])}class j extends Error{constructor(){super("Illegal Argument Exception")}}},90344:(n,t,e)=>{e.d(t,{LJ:()=>I,Xr:()=>w,Ze:()=>F,f1:()=>V,i$:()=>H,o8:()=>A,p6:()=>D});var r=e(35454),a=e(70171),o=e(17126);const i={year:void 0,month:void 0,day:void 0,weekday:void 0},s={hour:void 0,minute:void 0,second:void 0},u=Intl.DateTimeFormat().resolvedOptions().timeZone,c={timeZone:"UTC"},l={year:"numeric",month:"numeric",day:"numeric"},f={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},h={year:"numeric",month:"long",weekday:"long",day:"numeric"},m={hour:"numeric",minute:"numeric"},y={...m,second:"numeric"},g={"short-date":l,"short-date-short-time":{...l,...m},"short-date-short-time-24":{...l,...m,hour12:!1},"short-date-long-time":{...l,...y},"short-date-long-time-24":{...l,...y,hour12:!1},"short-date-le":l,"short-date-le-short-time":{...l,...m},"short-date-le-short-time-24":{...l,...m,hour12:!1},"short-date-le-long-time":{...l,...y},"short-date-le-long-time-24":{...l,...y,hour12:!1},"long-month-day-year":f,"long-month-day-year-short-time":{...f,...m},"long-month-day-year-short-time-24":{...f,...m,hour12:!1},"long-month-day-year-long-time":{...f,...y},"long-month-day-year-long-time-24":{...f,...y,hour12:!1},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...m},"day-short-month-year-short-time-24":{...d,...m,hour12:!1},"day-short-month-year-long-time":{...d,...y},"day-short-month-year-long-time-24":{...d,...y,hour12:!1},"long-date":h,"long-date-short-time":{...h,...m},"long-date-short-time-24":{...h,...m,hour12:!1},"long-date-long-time":{...h,...y},"long-date-long-time-24":{...h,...y,hour12:!1},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":m,"long-time":y},w=(0,r.w)()({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={ar:"ar-u-nu-latn-ca-gregory"};let Z=new WeakMap;const v=g["short-date-short-time"];function F(n){return g[n]}function D(n,t=v){return function(n){let t=Z.get(n);if(!t){const e=(0,a.Kd)(),r=p[e]||e,o=P(n);t=new Intl.DateTimeFormat(r,o),Z.set(n,t)}return t}(t).format(n)}function A(n,t=v){return D(new Date(n),{...t,...c,...s})}function I(n,t=v){return D(new Date(`1970-01-01T${n}Z`),{...t,...c,...i})}function H(n,t=v){const e=o.ou.fromISO(n,{setZone:!0}),r=(0,a.Kd)(),i=p[r]??r,s=P(t);return e.toLocaleString(s,{locale:i})}function P(n){const t=V(n.timeZone??"system");return{...n,timeZone:t}}function V(n){switch(n){case"system":return u;case"unknown":return"UTC";default:return n}}(0,a.Ze)((()=>{Z=new WeakMap}))},94443:(n,t,e)=>{e.d(t,{ME:()=>m,Su:()=>y,tz:()=>h});var r=e(20102),a=e(50758),o=e(95330),i=e(70171);const s=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,u={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 c(n){return n in u}Object.keys(u);const l=[],f=new Map;function d(n){for(const t of f.keys())g(n.pattern,t)&&f.delete(t)}function h(n){return l.includes(n)||(d(n),l.unshift(n)),(0,a.kB)((()=>{const t=l.indexOf(n);t>-1&&(l.splice(t,1),d(n))}))}async function m(n){const t=(0,i.Kd)();f.has(n)||f.set(n,async function(n,t){const e=[];for(const r of l)if(g(r.pattern,n))try{return await r.fetchMessageBundle(n,t)}catch(n){e.push(n)}if(e.length)throw new r.Z("intl:message-bundle-error",`Errors occurred while loading "${n}"`,{errors:e});throw new r.Z("intl:no-message-bundle-loader",`No loader found for message bundle "${n}"`)}(n,t));const e=f.get(n);return e&&await w.add(e),e}function y(n){if(!s.test(n))return null;const t=s.exec(n);if(null===t)return null;const[,e,r]=t,a=e+(r?"-"+r.toUpperCase():"");return c(a)?a:c(e)?e:null}function g(n,t){return"string"==typeof n?t.startsWith(n):n.test(t)}(0,i.Ze)((()=>{f.clear()}));const w=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(n){return this._increase(),n.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,o.hh)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},18848:(n,t,e)=>{e.d(t,{sh:()=>s,uf:()=>u});var r=e(70171);const a={ar:"ar-u-nu-latn"};let o=new WeakMap,i={};function s(n={}){const t={};return null!=n.digitSeparator&&(t.useGrouping=n.digitSeparator),null!=n.places&&(t.minimumFractionDigits=t.maximumFractionDigits=n.places),t}function u(n,t){return Object.is(n,-0)&&(n=0),function(n){const t=n||i;if(!o.has(t)){const e=(0,r.Kd)(),i=a[(0,r.Kd)()]||e;o.set(t,new Intl.NumberFormat(i,n))}return o.get(t)}(t).format(n)}(0,r.Ze)((()=>{o=new WeakMap,i={}}))}}]);
|