@arcgis/coding-components 4.32.0-next.32 → 4.32.0-next.33
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/dist/arcgis-coding-components/{PHNXJY3L.js → 4QEVSX32.js} +2 -2
- package/dist/arcgis-coding-components/{Z4LY6TXN.js → 5KIBQW7V.js} +2 -2
- package/dist/arcgis-coding-components/{HT6P7Y3L.js → 6EFNXEMU.js} +2 -2
- package/dist/arcgis-coding-components/{7KKTXGPR.js → 6MXULP5I.js} +2 -2
- package/dist/arcgis-coding-components/{F55CGO57.js → 7ENMJ5NX.js} +2 -2
- package/dist/arcgis-coding-components/{S34UTXZF.js → 7GB5HUCW.js} +2 -2
- package/dist/arcgis-coding-components/{LF5X7RCJ.js → 7UIBAA6T.js} +2 -2
- package/dist/arcgis-coding-components/{MW4BPUNW.js → CQIP7CKQ.js} +2 -2
- package/dist/arcgis-coding-components/{K2KSUBD5.js → D3KV4KHS.js} +2 -2
- package/dist/arcgis-coding-components/{CQYQ6UY6.js → DO5W5H2Q.js} +2 -2
- package/dist/arcgis-coding-components/{NID6RKMQ.js → EWF5XCAC.js} +2 -2
- package/dist/arcgis-coding-components/{TIX4GGU2.js → G3ZW3ZH2.js} +2 -2
- package/dist/arcgis-coding-components/{BFCRMLIH.js → GGVUUXMY.js} +2 -2
- package/dist/arcgis-coding-components/{CQTXAMIP.js → GWUFXZHC.js} +2 -2
- package/dist/arcgis-coding-components/{ZP37L7T7.js → ILTQUJJ7.js} +2 -2
- package/dist/arcgis-coding-components/{XWAJD5N2.js → MZ44F77W.js} +2 -2
- package/dist/arcgis-coding-components/{WAPWDKPX.js → NGPEE7ML.js} +1 -1
- package/dist/arcgis-coding-components/{QEFAXS2W.js → NMKCPVTD.js} +3 -3
- package/dist/arcgis-coding-components/{USFFK3N3.js → NPWCLFAG.js} +2 -2
- package/dist/arcgis-coding-components/{UD3B623N.js → NXUGA42R.js} +2 -2
- package/dist/arcgis-coding-components/{P2BYYKKC.js → OSQK6AK2.js} +2 -2
- package/dist/arcgis-coding-components/{PHF3TQZ6.js → OXHJP5P2.js} +2 -2
- package/dist/arcgis-coding-components/{W5G66Y5E.js → OZ6PKQ47.js} +1 -1
- package/dist/arcgis-coding-components/{6ONBLZHH.js → PQKZG7JY.js} +2 -2
- package/dist/arcgis-coding-components/{3GGQWW4I.js → S5AN66FU.js} +2 -2
- package/dist/arcgis-coding-components/{DG6YZ5VW.js → UBUTAWGJ.js} +2 -2
- package/dist/arcgis-coding-components/{GVPKFM64.js → UNMKZOZP.js} +2 -2
- package/dist/arcgis-coding-components/{NF753XOI.js → V3H64D5C.js} +2 -2
- package/dist/arcgis-coding-components/{QHOFIQCZ.js → VBPIDHPH.js} +2 -2
- package/dist/arcgis-coding-components/{Y2FGPYTK.js → VIWAV2YY.js} +2 -2
- package/dist/arcgis-coding-components/{S5V44ZJK.js → WJ7WPQBS.js} +2 -2
- package/dist/arcgis-coding-components/{HI6TDNNA.js → X6NMGH7U.js} +1 -1
- package/dist/arcgis-coding-components/{D4DVNBPH.js → XJWK5HZM.js} +1 -1
- package/dist/arcgis-coding-components/{7774U6GE.js → Y2KFRCJM.js} +2 -2
- package/dist/arcgis-coding-components/{4R3FZMBD.js → ZPKOTMSI.js} +2 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +1 -1
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var e$=Object.defineProperty;var l9=e=>t=>{var r=e[t];if(r)return r();throw new Error("Module not found in bundle: "+t)};var V=(e,t)=>()=>(e&&(t=e(e=0)),t);var u9=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),os=(e,t)=>{for(var r in t)e$(e,r,{get:t[r],enumerable:!0})};function he(e){return typeof tc[e]=="function"?tc[e]=tc[e](globalThis):tc[e]}var tc,et=V(()=>{tc=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},he.add=(e,t,r,n)=>{(n||tc[e]===void 0)&&(tc[e]=t),r&&he(e)},he.cache=tc,he.add("big-integer-warning-enabled",!0),he.add("esri-deprecation-warnings",!0),he.add("esri-tests-disable-screenshots",!1),he.add("esri-tests-use-full-window",!1),he.add("esri-tests-post-to-influx",!0),he.add("esri-cim-animations-enable-status","enabled"),he.add("esri-cim-animations-spotlight",!1),he.add("esri-cim-animations-freeze-time",!1),he.add("enable-feature:multiple-highlights",!1),(()=>{he.add("host-webworker",globalThis.WorkerGlobalScope!==void 0&&self instanceof globalThis.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(he.add("host-browser",e),he.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),he.add("dom",e),he("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(he.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),he.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),he.add("khtml",n.includes("Konqueror")?i:void 0),he.add("edge",parseFloat(r.split("Edge/")[1])||void 0),he.add("opr",parseFloat(r.split("OPR/")[1])||void 0),he.add("webkit",!he("wp")&&!he("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),he.add("chrome",!he("edge")&&!he("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),he.add("android",!he("wp")&&parseFloat(r.split("Android ")[1])||void 0),he.add("safari",!n.includes("Safari")||he("wp")||he("chrome")||he("android")||he("edge")||he("opr")?void 0:parseFloat(n.split("Version/")[1])),he.add("mac",n.includes("Macintosh")),!he("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",c=parseFloat(s.replace(/_/,".").replaceAll("_",""));he.add(o,c),he.add("ios",c)}he("webkit")||(!r.includes("Gecko")||he("wp")||he("khtml")||he("edge")||he.add("mozilla",i),he("mozilla")&&he.add("ff",parseFloat(r.split("Firefox/")[1]||r.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&he.add("esri-mobile",t),r&&he.add("esri-iPhone",r),he.add("esri-geolocation",!!navigator.geolocation)}he.add("esri-wasm","WebAssembly"in globalThis),he.add("esri-performance-mode-frames-between-render",20),he.add("esri-force-performance-mode",!1),he.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),he.add("wasm-simd",()=>{let e=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(e))}),he.add("esri-atomics","Atomics"in globalThis),he.add("esri-workers","Worker"in globalThis),he.add("web-feat:cache","caches"in globalThis),he.add("esri-workers-arraybuffer-transfer",!he("safari")||Number(he("safari"))>=12),he.add("workers-pool-size",8),he.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),he.add("featurelayer-simplify-payload-size-factors",[1,1,4]),he.add("featurelayer-fast-triangulation-enabled",!0),he.add("featurelayer-animation-enabled",!0),he.add("featurelayer-snapshot-enabled",!0),he.add("featurelayer-snapshot-point-min-threshold",8e4),he.add("featurelayer-snapshot-point-max-threshold",4e5),he.add("featurelayer-snapshot-point-coverage",.1),he.add("featurelayer-query-max-depth",4),he.add("featurelayer-query-pausing-enabled",!1),he.add("featurelayer-advanced-symbols",!1),he.add("featurelayer-pbf",!0),he.add("featurelayer-pbf-statistics",!1),he.add("feature-layers-workers",!0),he.add("feature-polyline-generalization-factor",1),he.add("mapview-transitions-duration",200),he.add("mapview-essential-goto-duration",200),he.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),he.add("mapserver-pbf-version-support",10.81),he.add("mapservice-popup-identify-max-tolerance",20),he("host-webworker")||he("host-browser")&&(he.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),he.add("esri-image-decode",()=>{if("decode"in new Image){let e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then(()=>{he.add("esri-image-decode",!0,!0,!0)}).catch(()=>{he.add("esri-image-decode",!1,!0,!0)})}return!1}),he.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});var cu,Vr=V(()=>{cu=class e{constructor(t=1){this._seed=t}set seed(t){this._seed=t??Math.random()*e._m}getInt(){return this._seed=(e._a*this._seed+e._c)%e._m,this._seed}getFloat(){return this.getInt()/(e._m-1)}getIntRange(t,r){return Math.round(this.getFloatRange(t,r))}getFloatRange(t,r){let n=r-t;return t+this.getInt()/e._m*n}};cu._m=2147483647,cu._a=48271,cu._c=0});function rc(e,t,r){if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function G2(e,t,r,n){n=n||ET;let i=Math.max(0,n.last-10);for(let s=i;s<r;++s)if(e[s]===t)return n.last=s,s;let o=Math.min(i,r);for(let s=0;s<o;++s)if(e[s]===t)return n.last=s,s;return-1}function MT(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;_o.clear();for(let c=0;c<n;++c)_o.add(t[c]);i=i||ET;let s=Math.max(0,i.last-10);for(let c=s;c<r;++c)if(_o.has(e[c])&&(o?.push(e[c]),_o.delete(e[c]),e[c]=e[r-1],--r,--c,_o.size===0||r===0))return _o.clear(),r;for(let c=0;c<s;++c)if(_o.has(e[c])&&(o?.push(e[c]),_o.delete(e[c]),e[c]=e[r-1],--r,--c,_o.size===0||r===0))return _o.clear(),r;return _o.clear(),r}function PT(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function IT(e,t){return e!=null}var UF,Sie,Gm,ET,_o,xie,nc=V(()=>{Vr();UF=1.5,Sie=1/UF;Gm=class{constructor(){this.last=0}},ET=new Gm;_o=new Set;xie=new cu});function AT(e){return e?.constructor?.name==="Int8Array"}function LT(e){return e?.constructor?.name==="Uint8Array"}function kT(e){return e?.constructor?.name==="Uint8ClampedArray"}function OT(e){return e?.constructor?.name==="Int16Array"}function NT(e){return e?.constructor?.name==="Uint16Array"}function RT(e){return e?.constructor?.name==="Int32Array"}function DT(e){return e?.constructor?.name==="Uint32Array"}function $T(e){return e?.constructor?.name==="Float32Array"}function FT(e){return e?.constructor?.name==="Float64Array"}var UT=V(()=>{et()});function v0(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&v0(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function qe(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=GT(e);if(t!=null)return t;if(zT(e))return e.clone();if(WT(e))return e.map(qe);if(BT(e))throw new Error("Trying to clone an unclonable Accessor instance");let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=qe(e[n]);return r}function b0(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=GT(e);if(t!=null)return t;if(WT(e)){let n=!0,i=e.map(o=>{let s=b0(o);return o!=null&&s==null&&(n=!1),s});return n?i:null}if(zT(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(BT(e))return null;let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=b0(i);if(i!=null&&o==null)return null;r[n]=o}return r}function zT(e){return typeof e.clone=="function"}function WT(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function BT(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function VT(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function GT(e){if(AT(e)||LT(e)||kT(e)||OT(e)||NT(e)||RT(e)||DT(e)||$T(e)||FT(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,qe(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(qe(r));return t}return null}function jm(e,t){return e===t||typeof e=="number"&&isNaN(e)&&typeof t=="number"&&isNaN(t)||typeof e?.getTime=="function"&&typeof t?.getTime=="function"&&e.getTime()===t.getTime()||!1}function jT(e,t){return e===t||(e==null||typeof e=="string"?e===t:typeof e=="number"?e===t||typeof t=="number"&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&rc(e,t):e instanceof Set?t instanceof Set&&zF(e,t):e instanceof Map?t instanceof Map&&WF(e,t):!!VT(e)&&VT(t)&&VF(e,t))}function VF(e,t){if(e===null||t===null)return!1;let r=Object.keys(e);if(t===null||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}function zF(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function WF(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let i=t.get(r);if(i!==n||i===void 0&&!t.has(r))return!1}return!0}var or=V(()=>{nc();UT()});function HT(e,t,r=!1){return ZT(e,t,r)}function Hi(e,t){if(t!=null)return t[e]||qT(e.split("."),!1,t)}function Hs(e,t,r){let n=e.split("."),i=n.pop(),o=qT(n,!0,r);o&&i&&(o[i]=t)}function qT(e,t,r){let n=r;for(let i of e){if(n==null)return;if(!(i in n)){if(!t)return;n[i]={}}n=n[i]}return n}function ZT(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=n[i],s=t[i];return o===s?n:o===void 0?(n[i]=qe(s),n):(Array.isArray(s)||Array.isArray(n)?(o=o?Array.isArray(o)?n[i]=o.slice():n[i]=[o]:n[i]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(c=>{o.includes(c)||o.push(c)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=ZT(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var ds=V(()=>{or()});function YT(e){return e??""}function fs(e,t){return t?e.replaceAll(BF,typeof t=="object"?(r,n)=>YT(Hi(n,t)):(r,n)=>YT(t(n))):e}function JT(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function XT(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var BF,ic=V(()=>{ds();BF=/\{([^}]+)\}/g});var qs,_0,S0,x0,So,Gf,dr,xo,oc=V(()=>{qs=class extends Error{},_0=class extends qs{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},S0=class extends qs{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},x0=class extends qs{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},So=class extends qs{},Gf=class extends qs{constructor(t){super(`Invalid unit ${t}`)}},dr=class extends qs{},xo=class extends qs{constructor(){super("Zone is an abstract class")}}});var Ae,Co,_i,sc,Hm,j2,qm,Zm,Ym,Jm,Xm,Km,Qm,eh,th,rh,nh,ih,oh,sh,H2,ah,ch,lh,uh,dh=V(()=>{Ae="numeric",Co="short",_i="long",sc={year:Ae,month:Ae,day:Ae},Hm={year:Ae,month:Co,day:Ae},j2={year:Ae,month:Co,day:Ae,weekday:Co},qm={year:Ae,month:_i,day:Ae},Zm={year:Ae,month:_i,day:Ae,weekday:_i},Ym={hour:Ae,minute:Ae},Jm={hour:Ae,minute:Ae,second:Ae},Xm={hour:Ae,minute:Ae,second:Ae,timeZoneName:Co},Km={hour:Ae,minute:Ae,second:Ae,timeZoneName:_i},Qm={hour:Ae,minute:Ae,hourCycle:"h23"},eh={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23"},th={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:Co},rh={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:_i},nh={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae},ih={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae,second:Ae},oh={year:Ae,month:Co,day:Ae,hour:Ae,minute:Ae},sh={year:Ae,month:Co,day:Ae,hour:Ae,minute:Ae,second:Ae},H2={year:Ae,month:Co,day:Ae,weekday:Co,hour:Ae,minute:Ae},ah={year:Ae,month:_i,day:Ae,hour:Ae,minute:Ae,timeZoneName:Co},ch={year:Ae,month:_i,day:Ae,hour:Ae,minute:Ae,second:Ae,timeZoneName:Co},lh={year:Ae,month:_i,day:Ae,weekday:_i,hour:Ae,minute:Ae,timeZoneName:_i},uh={year:Ae,month:_i,day:Ae,weekday:_i,hour:Ae,minute:Ae,second:Ae,timeZoneName:_i}});var Tr,lu=V(()=>{oc();Tr=class{get type(){throw new xo}get name(){throw new xo}get ianaName(){return this.name}get isUniversal(){throw new xo}offsetName(t,r){throw new xo}formatOffset(t,r){throw new xo}offset(t){throw new xo}equals(t){throw new xo}get isValid(){throw new xo}}});var q2,ac,T0=V(()=>{Zn();lu();q2=null,ac=class e extends Tr{static get instance(){return q2===null&&(q2=new e),q2}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return E0(t,r,n)}formatOffset(t,r){return cc(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function GF(e){return P0[e]||(P0[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),P0[e]}function HF(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,c,a,d,h]=n;return[s,i,o,c,a,d,h]}function qF(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=jF[o];o==="era"?n[c]=s:Ge(c)||(n[c]=parseInt(s,10))}return n}var P0,jF,M0,er,lc=V(()=>{Zn();lu();P0={};jF={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};M0={},er=class e extends Tr{static create(t){return M0[t]||(M0[t]=new e(t)),M0[t]}static resetCache(){M0={},P0={}}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{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return E0(t,r,n,this.name)}formatOffset(t,r){return cc(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=GF(this.name),[i,o,s,c,a,d,h]=n.formatToParts?qF(n,r):HF(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=jf({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),S=+r,M=S%1e3;return S-=M>=0?M:1e3+M,(v-S)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function ZF(e,t={}){let r=JSON.stringify([e,t]),n=KT[r];return n||(n=new Intl.ListFormat(e,t),KT[r]=n),n}function Y2(e,t={}){let r=JSON.stringify([e,t]),n=Z2[r];return n||(n=new Intl.DateTimeFormat(e,t),Z2[r]=n),n}function YF(e,t={}){let r=JSON.stringify([e,t]),n=J2[r];return n||(n=new Intl.NumberFormat(e,t),J2[r]=n),n}function JF(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=X2[i];return o||(o=new Intl.RelativeTimeFormat(e,t),X2[i]=o),o}function XF(){return fh||(fh=new Intl.DateTimeFormat().resolvedOptions().locale,fh)}function KF(e){let t=QT[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,QT[e]=t}return t}function QF(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(r===-1)return[e];{let n,i;try{n=Y2(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=Y2(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function eU(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function tU(e){let t=[];for(let r=1;r<=12;r++){let n=Se.utc(2009,r,1);t.push(e(n))}return t}function rU(e){let t=[];for(let r=1;r<=7;r++){let n=Se.utc(2016,11,13+r);t.push(e(n))}return t}function I0(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function nU(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}var KT,Z2,J2,X2,fh,QT,K2,Q2,e_,iU,vt,mh=V(()=>{Zn();k0();uc();dc();lc();KT={};Z2={};J2={};X2={};fh=null;QT={};K2=class{constructor(t,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:o,...s}=n;if(!r||Object.keys(s).length>0){let c={useGrouping:!1,...n};n.padTo>0&&(c.minimumIntegerDigits=n.padTo),this.inf=YF(t,c)}}format(t){if(this.inf){let r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{let r=this.floor?Math.floor(t):Hf(t,3);return sr(r,this.padTo)}}},Q2=class{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),c=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&er.create(c).valid?(i=c,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=Y2(r,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},e_=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&A0()&&(this.rtf=JF(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):e6(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},iU={firstDay:1,minimalDays:4,weekend:[6,7]},vt=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,i,o=!1){let s=t||bt.defaultLocale,c=s||(o?"en-US":XF()),a=r||bt.defaultNumberingSystem,d=n||bt.defaultOutputCalendar,h=ph(i)||bt.defaultWeekSettings;return new e(c,a,d,h,s)}static resetCache(){fh=null,Z2={},J2={},X2={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return e.create(t,r,n,i)}constructor(t,r,n,i,o){let[s,c,a]=QF(t);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=eU(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=nU(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,ph(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,r=!1){return I0(this,t,t_,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=tU(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return I0(this,t,r_,()=>{let n=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=r?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=rU(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return I0(this,void 0,()=>n_,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Se.utc(2016,11,13,9),Se.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return I0(this,t,i_,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Se.utc(-40,1,1),Se.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){let i=this.dtFormatter(t,r),o=i.formatToParts(),s=o.find(c=>c.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new K2(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new Q2(t,this.intl,r)}relFormatter(t={}){return new e_(this.intl,this.isEnglish(),t)}listFormatter(t={}){return ZF(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:L0()?KF(this.locale):iU}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}});var s_,At,qf=V(()=>{Zn();lu();s_=null,At=class e extends Tr{static get utcInstance(){return s_===null&&(s_=new e(0)),s_}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new e(uu(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${cc(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${cc(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return cc(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}});var Zf,a_=V(()=>{lu();Zf=class extends Tr{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 To(e,t){let r;if(Ge(e)||e===null)return t;if(e instanceof Tr)return e;if(t6(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?ac.instance:n==="utc"||n==="gmt"?At.utcInstance:At.parseSpecifier(n)||er.create(e)}else return Eo(e)?At.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Zf(e)}var O0=V(()=>{lu();lc();qf();a_();Zn();T0()});function n6(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(e[r].search(c_.hanidec)!==-1)t+=oU.indexOf(e[r]);else for(let i in r6){let[o,s]=r6[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function i6(){Yf={}}function qi({numberingSystem:e},t=""){let r=e||"latn";return Yf[r]||(Yf[r]={}),Yf[r][t]||(Yf[r][t]=new RegExp(`${c_[r]}${t}`)),Yf[r][t]}var c_,r6,oU,Yf,l_=V(()=>{c_={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},r6={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]},oU=c_.hanidec.replace(/[\[|\]]/g,"").split("");Yf={}});var o6,s6,a6,c6,l6,u6,d6,f6,bt,uc=V(()=>{T0();lc();mh();dc();O0();Zn();l_();o6=()=>Date.now(),s6="system",a6=null,c6=null,l6=null,u6=60,f6=null,bt=class{static get now(){return o6}static set now(t){o6=t}static set defaultZone(t){s6=t}static get defaultZone(){return To(s6,ac.instance)}static get defaultLocale(){return a6}static set defaultLocale(t){a6=t}static get defaultNumberingSystem(){return c6}static set defaultNumberingSystem(t){c6=t}static get defaultOutputCalendar(){return l6}static set defaultOutputCalendar(t){l6=t}static get defaultWeekSettings(){return f6}static set defaultWeekSettings(t){f6=ph(t)}static get twoDigitCutoffYear(){return u6}static set twoDigitCutoffYear(t){u6=t%100}static get throwOnInvalid(){return d6}static set throwOnInvalid(t){d6=t}static resetCaches(){vt.resetCache(),er.resetCache(),Se.resetCache(),i6()}}});var nn,hh=V(()=>{nn=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Zi(e,t){return new nn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function N0(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function h6(e,t,r){return r+(fu(e)?m6:p6)[t-1]}function g6(e,t){let r=fu(e)?m6:p6,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function R0(e,t){return(e-t+7)%7+1}function gh(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=h6(n,i,o),c=R0(N0(n,i,o),r),a=Math.floor((s-c+14-t)/7),d;return a<1?(d=n-1,a=du(d,t,r)):a>du(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...yh(e)}}function u_(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=R0(N0(n,1,t),r),c=fc(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=fc(d)):a>c?(d=n+1,a-=fc(n)):d=n;let{month:h,day:g}=g6(d,a);return{year:d,month:h,day:g,...yh(e)}}function D0(e){let{year:t,month:r,day:n}=e,i=h6(t,r,n);return{year:t,ordinal:i,...yh(e)}}function d_(e){let{year:t,ordinal:r}=e,{month:n,day:i}=g6(t,r);return{year:t,month:n,day:i,...yh(e)}}function f_(e,t){if(!Ge(e.localWeekday)||!Ge(e.localWeekNumber)||!Ge(e.localWeekYear)){if(!Ge(e.weekday)||!Ge(e.weekNumber)||!Ge(e.weekYear))throw new So("Cannot mix locale-based week fields with ISO-based week fields");return Ge(e.localWeekday)||(e.weekday=e.localWeekday),Ge(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Ge(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function w6(e,t=4,r=1){let n=wh(e.weekYear),i=Si(e.weekNumber,1,du(e.weekYear,t,r)),o=Si(e.weekday,1,7);return n?i?o?!1:Zi("weekday",e.weekday):Zi("week",e.weekNumber):Zi("weekYear",e.weekYear)}function y6(e){let t=wh(e.year),r=Si(e.ordinal,1,fc(e.year));return t?r?!1:Zi("ordinal",e.ordinal):Zi("year",e.year)}function p_(e){let t=wh(e.year),r=Si(e.month,1,12),n=Si(e.day,1,Jf(e.year,e.month));return t?r?n?!1:Zi("day",e.day):Zi("month",e.month):Zi("year",e.year)}function m_(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=Si(t,0,23)||t===24&&r===0&&n===0&&i===0,s=Si(r,0,59),c=Si(n,0,59),a=Si(i,0,999);return o?s?c?a?!1:Zi("millisecond",i):Zi("second",n):Zi("minute",r):Zi("hour",t)}var p6,m6,h_=V(()=>{Zn();hh();oc();p6=[0,31,59,90,120,151,181,212,243,273,304,334],m6=[0,31,60,91,121,152,182,213,244,274,305,335]});function Ge(e){return typeof e>"u"}function Eo(e){return typeof e=="number"}function wh(e){return typeof e=="number"&&e%1===0}function t6(e){return typeof e=="string"}function v6(e){return Object.prototype.toString.call(e)==="[object Date]"}function A0(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function L0(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function _6(e){return Array.isArray(e)?e:[e]}function g_(e,t,r){if(e.length!==0)return e.reduce((n,i)=>{let o=[t(i),i];return n&&r(n[0],o[0])===n[0]?n:o},null)[1]}function S6(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function pc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ph(e){if(e==null)return null;if(typeof e!="object")throw new dr("Week settings must be an object");if(!Si(e.firstDay,1,7)||!Si(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Si(t,1,7)))throw new dr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Si(e,t,r){return wh(e)&&e>=t&&e<=r}function sU(e,t){return e-t*Math.floor(e/t)}function sr(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function Zs(e){if(!(Ge(e)||e===null||e===""))return parseInt(e,10)}function mc(e){if(!(Ge(e)||e===null||e===""))return parseFloat(e)}function bh(e){if(!(Ge(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Hf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function fu(e){return e%4===0&&(e%100!==0||e%400===0)}function fc(e){return fu(e)?366:365}function Jf(e,t){let r=sU(t-1,12)+1,n=e+(t-r)/12;return r===2?fu(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function jf(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function b6(e,t,r){return-R0(N0(e,1,t),r)+t-1}function du(e,t=4,r=1){let n=b6(e,t,r),i=b6(e+1,t,r);return(fc(e)-n+i)/7}function vh(e){return e>99?e:e>bt.twoDigitCutoffYear?1900+e:2e3+e}function E0(e,t,r,n=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:t,...o},c=new Intl.DateTimeFormat(r,s).formatToParts(i).find(a=>a.type.toLowerCase()==="timezonename");return c?c.value:null}function uu(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function w_(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new dr(`Invalid unit value ${e}`);return t}function Xf(e,t){let r={};for(let n in e)if(pc(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=w_(i)}return r}function cc(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${sr(r,2)}:${sr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${sr(r,2)}${sr(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function yh(e){return S6(e,["hour","minute","second","millisecond"])}var Zn=V(()=>{oc();uc();h_()});function t_(e){switch(e){case"narrow":return[...cU];case"short":return[...y_];case"long":return[...aU];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}}function r_(e){switch(e){case"narrow":return[...lU];case"short":return[...v_];case"long":return[...b_];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function i_(e){switch(e){case"narrow":return[...fU];case"short":return[...dU];case"long":return[...uU];default:return null}}function x6(e){return n_[e.hour<12?0:1]}function C6(e,t){return r_(t)[e.weekday-1]}function T6(e,t){return t_(t)[e.month-1]}function E6(e,t){return i_(t)[e.year<0?0:1]}function e6(e,t,r="always",n=!1){let i={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."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){let g=e==="days";switch(t){case 1:return g?"tomorrow":`next ${i[e][0]}`;case-1:return g?"yesterday":`last ${i[e][0]}`;case 0:return g?"today":`this ${i[e][0]}`;default:}}let s=Object.is(t,-0)||t<0,c=Math.abs(t),a=c===1,d=i[e],h=n?a?d[1]:d[2]||d[1]:a?i[e][0]:e;return s?`${c} ${h} ago`:`in ${c} ${h}`}var aU,y_,cU,b_,v_,lU,n_,uU,dU,fU,k0=V(()=>{dh();Zn();aU=["January","February","March","April","May","June","July","August","September","October","November","December"],y_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],cU=["J","F","M","A","M","J","J","A","S","O","N","D"];b_=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],v_=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],lU=["M","T","W","T","F","S","S"];n_=["AM","PM"],uU=["Before Christ","Anno Domini"],dU=["BC","AD"],fU=["B","A"]});function M6(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var pU,on,_h=V(()=>{k0();dh();Zn();pU={D:sc,DD:Hm,DDD:qm,DDDD:Zm,t:Ym,tt:Jm,ttt:Xm,tttt:Km,T:Qm,TT:eh,TTT:th,TTTT:rh,f:nh,ff:oh,fff:ah,ffff:lh,F:ih,FF:sh,FFF:ch,FFFF:uh},on=class e{static create(t,r={}){return new e(t,r)}static parseFormat(t){let r=null,n="",i=!1,o=[];for(let s=0;s<t.length;s++){let c=t.charAt(s);c==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||c===r?n+=c:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=c,r=c)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(t){return pU[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...r}).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,{...this.opts,...r})}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return sr(t,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(S,M)=>this.loc.extract(t,S,M),s=S=>t.isOffsetFixed&&t.offset===0&&S.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,S.format):"",c=()=>n?x6(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(S,M)=>n?T6(t,S):o(M?{month:S}:{month:S,day:"numeric"},"month"),d=(S,M)=>n?C6(t,S):o(M?{weekday:S}:{weekday:S,month:"long",day:"numeric"},"weekday"),h=S=>{let M=e.macroTokenToFormatOpts(S);return M?this.formatWithSystemDefault(t,M):S},g=S=>n?E6(t,S):o({era:S},"era"),v=S=>{switch(S){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 s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({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 c();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({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 i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({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 i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("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"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);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 h(S)}};return M6(e.parseFormat(r),v)}formatDurationFromString(t,r){let n=a=>{switch(a[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}},i=a=>d=>{let h=n(d);return h?this.num(a.get(h),d.length):d},o=e.parseFormat(r),s=o.reduce((a,{literal:d,val:h})=>d?a:a.concat(h),[]),c=t.shiftTo(...s.map(n).filter(a=>a));return M6(o,i(c))}}});function Qf(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function ep(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,c,a]=o(t,i);return[{...r,...s},c||n,a]},[{},null,1]).slice(0,2)}function tp(e,...t){if(e==null)return[null,null];for(let[r,n]of t){let i=r.exec(e);if(i)return n(i)}return[null,null]}function A6(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=Zs(t[r+i]);return[n,null,r+i]}}function Kf(e,t,r){let n=e[t];return Ge(n)?r:Zs(n)}function SU(e,t){return[{year:Kf(e,t),month:Kf(e,t+1,1),day:Kf(e,t+2,1)},null,t+3]}function rp(e,t){return[{hours:Kf(e,t,0),minutes:Kf(e,t+1,0),seconds:Kf(e,t+2,0),milliseconds:bh(e[t+3])},null,t+4]}function Sh(e,t){let r=!e[t]&&!e[t+1],n=uu(e[t+1],e[t+2]),i=r?null:At.instance(n);return[{},i,t+3]}function xh(e,t){let r=e[t]?er.create(e[t]):null;return[{},r,t+1]}function TU(e){let[t,r,n,i,o,s,c,a,d]=e,h=t[0]==="-",g=a&&a[0]==="-",v=(S,M=!1)=>S!==void 0&&(M||S&&h)?-S:S;return[{years:v(mc(r)),months:v(mc(n)),weeks:v(mc(i)),days:v(mc(o)),hours:v(mc(s)),minutes:v(mc(c)),seconds:v(mc(a),a==="-0"),milliseconds:v(bh(d),g)}]}function x_(e,t,r,n,i,o,s){let c={year:t.length===2?vh(Zs(t)):Zs(t),month:y_.indexOf(r)+1,day:Zs(n),hour:Zs(i),minute:Zs(o)};return s&&(c.second=Zs(s)),e&&(c.weekday=e.length>3?b_.indexOf(e)+1:v_.indexOf(e)+1),c}function PU(e){let[,t,r,n,i,o,s,c,a,d,h,g]=e,v=x_(t,i,n,r,o,s,c),S;return a?S=EU[a]:d?S=0:S=uu(h,g),[v,new At(S)]}function IU(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function P6(e){let[,t,r,n,i,o,s,c]=e;return[x_(t,i,n,r,o,s,c),At.utcInstance]}function OU(e){let[,t,r,n,i,o,s,c]=e;return[x_(t,c,r,n,i,o,s),At.utcInstance]}function R6(e){return tp(e,[NU,N6],[RU,FU],[DU,UU],[$U,VU])}function D6(e){return tp(IU(e),[MU,PU])}function $6(e){return tp(e,[AU,P6],[LU,P6],[kU,OU])}function F6(e){return tp(e,[CU,TU])}function U6(e){return tp(e,[xU,zU])}function V6(e){return tp(e,[WU,N6],[BU,GU])}var I6,L6,mU,__,k6,S_,hU,gU,wU,yU,bU,vU,O6,_U,xU,CU,EU,MU,AU,LU,kU,NU,RU,DU,$U,N6,FU,UU,VU,zU,WU,BU,GU,C_=V(()=>{Zn();k0();qf();lc();I6=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;L6=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,mU=`(?:${L6.source}?(?:\\[(${I6.source})\\])?)?`,__=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,k6=RegExp(`${__.source}${mU}`),S_=RegExp(`(?:T${k6.source})?`),hU=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,gU=/(\d{4})-?W(\d\d)(?:-?(\d))?/,wU=/(\d{4})-?(\d{3})/,yU=A6("weekYear","weekNumber","weekDay"),bU=A6("year","ordinal"),vU=/(\d{4})-(\d\d)-(\d\d)/,O6=RegExp(`${__.source} ?(?:${L6.source}|(${I6.source}))?`),_U=RegExp(`(?: ${O6.source})?`);xU=RegExp(`^T?${__.source}$`),CU=/^-?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)?)?)$/;EU={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};MU=/^(?:(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)))$/;AU=/^(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$/,LU=/^(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$/,kU=/^(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})$/;NU=Qf(hU,S_),RU=Qf(gU,S_),DU=Qf(wU,S_),$U=Qf(k6),N6=ep(SU,rp,Sh,xh),FU=ep(yU,rp,Sh,xh),UU=ep(bU,rp,Sh,xh),VU=ep(rp,Sh,xh);zU=ep(rp);WU=Qf(vU,_U),BU=Qf(O6),GU=ep(rp,Sh,xh)});function hc(e,t,r=!1){let n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new ar(n)}function G6(e,t){let r=t.milliseconds??0;for(let n of qU.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function W6(e,t){let r=G6(e,t)<0?-1:1;pu.reduceRight((n,i)=>{if(Ge(t[i]))return n;if(n){let o=t[n]*r,s=e[i][n],c=Math.floor(o/s);t[i]+=c*r,t[n]-=c*s*r}return i},null),pu.reduce((n,i)=>{if(Ge(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function ZU(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var z6,B6,jU,Yi,np,HU,pu,qU,ar,Ch=V(()=>{oc();_h();hh();mh();C_();Zn();uc();dc();z6="Invalid Duration",B6={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},jU={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...B6},Yi=146097/400,np=146097/4800,HU={years:{quarters:4,months:12,weeks:Yi/7,days:Yi,hours:Yi*24,minutes:Yi*24*60,seconds:Yi*24*60*60,milliseconds:Yi*24*60*60*1e3},quarters:{months:3,weeks:Yi/28,days:Yi/4,hours:Yi*24/4,minutes:Yi*24*60/4,seconds:Yi*24*60*60/4,milliseconds:Yi*24*60*60*1e3/4},months:{weeks:np/7,days:np,hours:np*24,minutes:np*24*60,seconds:np*24*60*60,milliseconds:np*24*60*60*1e3},...B6},pu=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],qU=pu.slice(0).reverse();ar=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?HU:jU;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||vt.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return e.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new dr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Xf(t,e.normalizeUnit),loc:vt.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(Eo(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new dr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=F6(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){let[n]=U6(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new dr("need to specify a reason the Duration is invalid");let n=t instanceof nn?t:new nn(t,r);if(bt.throwOnInvalid)throw new x0(n);return new e({invalid:n})}static normalizeUnit(t){let r={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()];if(!r)throw new Gf(t);return r}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,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?on.create(this.loc,n).formatDurationFromString(this,t):z6}toHuman(t={}){if(!this.isValid)return z6;let r=pu.map(n=>{let i=this.values[n];return Ge(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Hf(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Se.fromMillis(r,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?G6(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t),n={};for(let i of pu)(pc(r.values,i)||pc(this.values,i))&&(n[i]=r.get(i)+this.get(i));return hc(this,{values:n},!0)}minus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=w_(t(this.values[n],n));return hc(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...Xf(t,e.normalizeUnit)};return hc(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){let s={loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:i,conversionAccuracy:n};return hc(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return W6(this.matrix,t),hc(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=ZU(this.normalize().shiftToAll().toObject());return hc(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>e.normalizeUnit(s));let r={},n={},i=this.toObject(),o;for(let s of pu)if(t.indexOf(s)>=0){o=s;let c=0;for(let d in n)c+=this.matrix[d][s]*n[d],n[d]=0;Eo(i[s])&&(c+=i[s]);let a=Math.trunc(c);r[s]=a,n[s]=(c*1e3-a*1e3)/1e3}else Eo(i[s])&&(n[s]=i[s]);for(let s in n)n[s]!==0&&(r[o]+=s===o?n[s]:n[s]/this.matrix[o][s]);return W6(this.matrix,r),hc(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return hc(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 this.invalid===null}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||!this.loc.equals(t.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of pu)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function YU(e,t){return!e||!e.isValid?Ys.invalid("missing or invalid start"):!t||!t.isValid?Ys.invalid("missing or invalid end"):t<e?Ys.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var ip,Ys,T_=V(()=>{dc();Ch();uc();oc();hh();_h();dh();ip="Invalid Interval";Ys=class e{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new dr("need to specify a reason the Interval is invalid");let n=t instanceof nn?t:new nn(t,r);if(bt.throwOnInvalid)throw new S0(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=op(t),i=op(r),o=YU(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=ar.fromDurationLike(r),i=op(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=ar.fromDurationLike(r),i=op(t);return e.fromDateTimes(i.minus(n),i)}static fromISO(t,r){let[n,i]=(t||"").split("/",2);if(n&&i){let o,s;try{o=Se.fromISO(n,r),s=o.isValid}catch{s=!1}let c,a;try{c=Se.fromISO(i,r),a=c.isValid}catch{a=!1}if(s&&a)return e.fromDateTimes(o,c);if(s){let d=ar.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=ar.fromISO(n,r);if(d.isValid)return e.before(c,d)}}return e.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 this.invalidReason===null}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",r){if(!this.isValid)return NaN;let n=this.start.startOf(t,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(t,r),Math.floor(i.diff(n,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?e.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];let r=t.map(op).filter(s=>this.contains(s)).sort((s,c)=>s.toMillis()-c.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,c=+s>+this.e?this.e:s;n.push(e.fromDateTimes(i,c)),i=c,o+=1}return n}splitBy(t){let r=ar.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,s=[];for(;n<this.e;){let c=this.start.plus(r.mapUnits(a=>a*i));o=+c>+this.e?this.e:c,s.push(e.fromDateTimes(n,o)),n=o,i+=1}return s}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:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:e.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;let r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return e.fromDateTimes(r,n)}static merge(t){let[r,n]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[i,o.union(s)]:[i.concat([o]),s]:[i,s],[[],null]);return n&&r.push(n),r}static xor(t){let r=null,n=0,i=[],o=t.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]),s=Array.prototype.concat(...o),c=s.sort((a,d)=>a.time-d.time);for(let a of c)n+=a.type==="s"?1:-1,n===1?r=a.time:(r&&+r!=+a.time&&i.push(e.fromDateTimes(r,a.time)),r=null);return e.merge(i)}difference(...t){return e.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:ip}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=sc,r={}){return this.isValid?on.create(this.s.loc.clone(r),t).formatInterval(this):ip}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:ip}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ip}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:ip}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:ip}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):ar.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var Js,E_=V(()=>{dc();uc();mh();lc();O0();Zn();Js=class{static hasDST(t=bt.defaultZone){let r=Se.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return er.isValidZone(t)}static normalizeZone(t){return To(t,bt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||vt.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||vt.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||vt.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||vt.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||vt.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||vt.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||vt.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return vt.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return vt.create(r,null,"gregory").eras(t)}static features(){return{relative:A0(),localeWeek:L0()}}}});function j6(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(ar.fromMillis(n).as("days"))}function JU(e,t,r){let n=[["years",(a,d)=>d.year-a.year],["quarters",(a,d)=>d.quarter-a.quarter+(d.year-a.year)*4],["months",(a,d)=>d.month-a.month+(d.year-a.year)*12],["weeks",(a,d)=>{let h=j6(a,d);return(h-h%7)/7}],["days",j6]],i={},o=e,s,c;for(let[a,d]of n)r.indexOf(a)>=0&&(s=a,i[a]=d(e,t),c=o.plus(i),c>t?(i[a]--,e=o.plus(i),e>t&&(c=e,i[a]--,e=o.plus(i))):e=c);return[e,i,c,s]}function H6(e,t,r,n){let[i,o,s,c]=JU(e,t,r),a=t-i,d=r.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);d.length===0&&(s<t&&(s=i.plus({[c]:1})),s!==i&&(o[c]=(o[c]||0)+a/(s-i)));let h=ar.fromObject(o,n);return d.length>0?ar.fromMillis(a,n).shiftTo(...d).plus(h):h}var q6=V(()=>{Ch()});function xt(e,t=r=>r){return{regex:e,deser:([r])=>t(n6(r))}}function QU(e){return e.replace(/\./g,"\\.?").replace(X6,J6)}function Z6(e){return e.replace(/\./g,"").replace(X6," ").toLowerCase()}function Mo(e,t){return e===null?null:{regex:RegExp(e.map(QU).join("|")),deser:([r])=>e.findIndex(n=>Z6(r)===Z6(n))+t}}function Y6(e,t){return{regex:e,deser:([,r,n])=>uu(r,n),groups:t}}function $0(e){return{regex:e,deser:([t])=>t}}function eV(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function tV(e,t){let r=qi(t),n=qi(t,"{2}"),i=qi(t,"{3}"),o=qi(t,"{4}"),s=qi(t,"{6}"),c=qi(t,"{1,2}"),a=qi(t,"{1,3}"),d=qi(t,"{1,6}"),h=qi(t,"{1,9}"),g=qi(t,"{2,4}"),v=qi(t,"{4,6}"),S=R=>({regex:RegExp(eV(R.val)),deser:([B])=>B,literal:!0}),I=(R=>{if(e.literal)return S(R);switch(R.val){case"G":return Mo(t.eras("short"),0);case"GG":return Mo(t.eras("long"),0);case"y":return xt(d);case"yy":return xt(g,vh);case"yyyy":return xt(o);case"yyyyy":return xt(v);case"yyyyyy":return xt(s);case"M":return xt(c);case"MM":return xt(n);case"MMM":return Mo(t.months("short",!0),1);case"MMMM":return Mo(t.months("long",!0),1);case"L":return xt(c);case"LL":return xt(n);case"LLL":return Mo(t.months("short",!1),1);case"LLLL":return Mo(t.months("long",!1),1);case"d":return xt(c);case"dd":return xt(n);case"o":return xt(a);case"ooo":return xt(i);case"HH":return xt(n);case"H":return xt(c);case"hh":return xt(n);case"h":return xt(c);case"mm":return xt(n);case"m":return xt(c);case"q":return xt(c);case"qq":return xt(n);case"s":return xt(c);case"ss":return xt(n);case"S":return xt(a);case"SSS":return xt(i);case"u":return $0(h);case"uu":return $0(c);case"uuu":return xt(r);case"a":return Mo(t.meridiems(),0);case"kkkk":return xt(o);case"kk":return xt(g,vh);case"W":return xt(c);case"WW":return xt(n);case"E":case"c":return xt(r);case"EEE":return Mo(t.weekdays("short",!1),1);case"EEEE":return Mo(t.weekdays("long",!1),1);case"ccc":return Mo(t.weekdays("short",!0),1);case"cccc":return Mo(t.weekdays("long",!0),1);case"Z":case"ZZ":return Y6(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return Y6(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return $0(/[a-z_+-/]{1,256}?/i);case" ":return $0(/[^\S\n\r]/);default:return S(R)}})(e)||{invalidReason:XU};return I.token=e,I}function nV(e,t,r){let{type:n,value:i}=e;if(n==="literal"){let a=/^\s+$/.test(i);return{literal:!a,val:a?" ":i}}let o=t[n],s=n;n==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let c=rV[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function iV(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function oV(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(pc(r,s)){let c=r[s],a=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(n.slice(o,o+a))),o+=a}return[n,i]}else return[n,{}]}function sV(e){let t=o=>{switch(o){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}},r=null,n;return Ge(e.z)||(r=er.create(e.z)),Ge(e.Z)||(r||(r=new At(e.Z)),n=e.Z),Ge(e.q)||(e.M=(e.q-1)*3+1),Ge(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Ge(e.u)||(e.S=bh(e.u)),[Object.keys(e).reduce((o,s)=>{let c=t(s);return c&&(o[c]=e[s]),o},{}),r,n]}function aV(){return M_||(M_=Se.fromMillis(1555555555555)),M_}function cV(e,t){if(e.literal)return e;let r=on.macroTokenToFormatOpts(e.val),n=A_(r,t);return n==null||n.includes(void 0)?e:n}function P_(e,t){return Array.prototype.concat(...e.map(r=>cV(r,t)))}function I_(e,t,r){return new Th(e,r).explainFromTokens(t)}function K6(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=I_(e,t,r);return[n,i,o,s]}function A_(e,t){if(!e)return null;let n=on.create(t,e).dtFormatter(aV()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>nV(s,e,o))}var XU,KU,J6,X6,rV,M_,Th,Q6=V(()=>{Zn();_h();qf();lc();dc();l_();oc();XU="missing Intl.DateTimeFormat.formatToParts support";KU="\xA0",J6=`[ ${KU}]`,X6=new RegExp(J6,"g");rV={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"}};M_=null;Th=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=P_(on.parseFormat(r),t),this.units=this.tokens.map(n=>tV(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=iV(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=oV(t,this.regex,this.handlers),[i,o,s]=n?sV(n):[null,null,void 0];if(pc(n,"a")&&pc(n,"H"))throw new So("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:o,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}});function Eh(e){return new nn("unsupported zone",`the zone "${e.name}" is not supported`)}function k_(e){return e.weekData===null&&(e.weekData=gh(e.c)),e.weekData}function O_(e){return e.localWeekData===null&&(e.localWeekData=gh(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function mu(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Se({...r,...t,old:r})}function aE(e,t,r){let n=e-t*60*1e3,i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*60*1e3;let o=r.offset(n);return i===o?[n,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function F0(e,t){e+=t*60*1e3;let r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function V0(e,t,r){return aE(jf(e),t,r)}function tE(e,t){let r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:i,day:Math.min(e.c.day,Jf(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=ar.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),c=jf(o),[a,d]=aE(c,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function sp(e,t,r,n,i,o){let{setZone:s,zone:c}=r;if(e&&Object.keys(e).length!==0||t){let a=t||c,d=Se.fromObject(e,{...r,zone:a,specificOffset:o});return s?d:d.setZone(c)}else return Se.invalid(new nn("unparsable",`the input "${i}" can't be parsed as ${n}`))}function U0(e,t,r=!0){return e.isValid?on.create(vt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function N_(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=sr(e.c.year,r?6:4),t?(n+="-",n+=sr(e.c.month),n+="-",n+=sr(e.c.day)):(n+=sr(e.c.month),n+=sr(e.c.day)),n}function rE(e,t,r,n,i,o){let s=sr(e.c.hour);return t?(s+=":",s+=sr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=sr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=sr(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=sr(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=sr(Math.trunc(-e.o/60)),s+=":",s+=sr(Math.trunc(-e.o%60))):(s+="+",s+=sr(Math.trunc(e.o/60)),s+=":",s+=sr(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function pV(e){let t={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"}[e.toLowerCase()];if(!t)throw new Gf(e);return t}function nE(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return pV(e)}}function mV(e){return W0[e]||(z0===void 0&&(z0=bt.now()),W0[e]=e.offset(z0)),W0[e]}function iE(e,t){let r=To(t.zone,bt.defaultZone);if(!r.isValid)return Se.invalid(Eh(r));let n=vt.fromObject(t),i,o;if(Ge(e.year))i=bt.now();else{for(let a of lE)Ge(e[a])&&(e[a]=cE[a]);let s=p_(e)||m_(e);if(s)return Se.invalid(s);let c=mV(r);[i,o]=V0(e,c,r)}return new Se({ts:i,zone:r,loc:n,o})}function oE(e,t,r){let n=Ge(r.round)?!0:r.round,i=(s,c)=>(s=Hf(s,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(s,c)),o=s=>r.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(r.unit)return i(o(r.unit),r.unit);for(let s of r.units){let c=o(s);if(Math.abs(c)>=1)return i(c,s)}return i(e>t?-0:0,r.units[r.units.length-1])}function sE(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}function op(e){if(Se.isDateTime(e))return e;if(e&&e.valueOf&&Eo(e.valueOf()))return Se.fromJSDate(e);if(e&&typeof e=="object")return Se.fromObject(e);throw new dr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var L_,eE,cE,lV,uV,lE,dV,fV,z0,W0,Se,dc=V(()=>{Ch();T_();uc();E_();_h();qf();mh();Zn();O0();q6();C_();Q6();h_();dh();oc();hh();L_="Invalid DateTime",eE=864e13;cE={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},lV={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},uV={ordinal:1,hour:0,minute:0,second:0,millisecond:0},lE=["year","month","day","hour","minute","second","millisecond"],dV=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],fV=["year","ordinal","hour","minute","second","millisecond"];W0={},Se=class e{constructor(t){let r=t.zone||bt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new nn("invalid input"):null)||(r.isValid?null:Eh(r));this.ts=Ge(t.ts)?bt.now():t.ts;let i=null,o=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[i,o]=[t.old.c,t.old.o];else{let c=Eo(t.o)&&!t.old?t.o:r.offset(this.ts);i=F0(this.ts,c),n=Number.isNaN(i.year)?new nn("invalid input"):null,i=n?null:i,o=n?null:c}this._zone=r,this.loc=t.loc||vt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,r]=sE(arguments),[n,i,o,s,c,a,d]=r;return iE({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static utc(){let[t,r]=sE(arguments),[n,i,o,s,c,a,d]=r;return t.zone=At.utcInstance,iE({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=v6(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=To(r.zone,bt.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:vt.fromObject(r)}):e.invalid(Eh(i))}static fromMillis(t,r={}){if(Eo(t))return t<-eE||t>eE?e.invalid("Timestamp out of range"):new e({ts:t,zone:To(r.zone,bt.defaultZone),loc:vt.fromObject(r)});throw new dr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(Eo(t))return new e({ts:t*1e3,zone:To(r.zone,bt.defaultZone),loc:vt.fromObject(r)});throw new dr("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=To(r.zone,bt.defaultZone);if(!n.isValid)return e.invalid(Eh(n));let i=vt.fromObject(r),o=Xf(t,nE),{minDaysInFirstWeek:s,startOfWeek:c}=f_(o,i),a=bt.now(),d=Ge(r.specificOffset)?n.offset(a):r.specificOffset,h=!Ge(o.ordinal),g=!Ge(o.year),v=!Ge(o.month)||!Ge(o.day),S=g||v,M=o.weekYear||o.weekNumber;if((S||h)&&M)throw new So("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&h)throw new So("Can't mix ordinal dates with month/day");let I=M||o.weekday&&!S,R,B,F=F0(a,d);I?(R=dV,B=lV,F=gh(F,s,c)):h?(R=fV,B=uV,F=D0(F)):(R=lE,B=cE);let G=!1;for(let xe of R){let ke=o[xe];Ge(ke)?G?o[xe]=B[xe]:o[xe]=F[xe]:G=!0}let J=I?w6(o,s,c):h?y6(o):p_(o),re=J||m_(o);if(re)return e.invalid(re);let de=I?u_(o,s,c):h?d_(o):o,[W,me]=V0(de,d,n),Le=new e({ts:W,zone:n,o:me,loc:i});return o.weekday&&S&&t.weekday!==Le.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Le.toISO()}`):Le.isValid?Le:e.invalid(Le.invalid)}static fromISO(t,r={}){let[n,i]=R6(t);return sp(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=D6(t);return sp(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=$6(t);return sp(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(Ge(t)||Ge(r))throw new dr("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=vt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,a,d,h]=K6(s,t,r);return h?e.invalid(h):sp(c,a,n,`format ${r}`,t,d)}static fromString(t,r,n={}){return e.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=V6(t);return sp(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new dr("need to specify a reason the DateTime is invalid");let n=t instanceof nn?t:new nn(t,r);if(bt.throwOnInvalid)throw new _0(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=A_(t,vt.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return P_(on.parseFormat(t),vt.fromObject(r)).map(i=>i.val).join("")}static resetCache(){z0=void 0,W0={}}get(t){return this[t]}get isValid(){return this.invalid===null}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?k_(this).weekYear:NaN}get weekNumber(){return this.isValid?k_(this).weekNumber:NaN}get weekday(){return this.isValid?k_(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?O_(this).weekday:NaN}get localWeekNumber(){return this.isValid?O_(this).weekNumber:NaN}get localWeekYear(){return this.isValid?O_(this).weekYear:NaN}get ordinal(){return this.isValid?D0(this.c).ordinal:NaN}get monthShort(){return this.isValid?Js.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Js.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Js.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Js.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?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,r=6e4,n=jf(this.c),i=this.zone.offset(n-t),o=this.zone.offset(n+t),s=this.zone.offset(n-i*r),c=this.zone.offset(n-o*r);if(s===c)return[this];let a=n-s*r,d=n-c*r,h=F0(a,s),g=F0(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[mu(this,{ts:a}),mu(this,{ts:d})]:[this]}get isInLeapYear(){return fu(this.year)}get daysInMonth(){return Jf(this.year,this.month)}get daysInYear(){return this.isValid?fc(this.year):NaN}get weeksInWeekYear(){return this.isValid?du(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?du(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=on.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(At.instance(t),r)}toLocal(){return this.setZone(bt.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=To(t,bt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(r||n){let o=t.offset(this.ts),s=this.toObject();[i]=V0(s,o,t)}return mu(this,{ts:i,zone:t})}else return e.invalid(Eh(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return mu(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=Xf(t,nE),{minDaysInFirstWeek:n,startOfWeek:i}=f_(r,this.loc),o=!Ge(r.weekYear)||!Ge(r.weekNumber)||!Ge(r.weekday),s=!Ge(r.ordinal),c=!Ge(r.year),a=!Ge(r.month)||!Ge(r.day),d=c||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new So("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new So("Can't mix ordinal dates with month/day");let g;o?g=u_({...gh(this.c,n,i),...r},n,i):Ge(r.ordinal)?(g={...this.toObject(),...r},Ge(r.day)&&(g.day=Math.min(Jf(g.year,g.month),g.day))):g=d_({...D0(this.c),...r});let[v,S]=V0(g,this.o,this.zone);return mu(this,{ts:v,o:S})}plus(t){if(!this.isValid)return this;let r=ar.fromDurationLike(t);return mu(this,tE(this,r))}minus(t){if(!this.isValid)return this;let r=ar.fromDurationLike(t).negate();return mu(this,tE(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=ar.normalizeUnit(t);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(i==="weeks")if(r){let o=this.loc.getStartOfWeek(),{weekday:s}=this;s<o&&(n.weekNumber=this.weekNumber-1),n.weekday=o}else n.weekday=1;if(i==="quarters"){let o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)}endOf(t,r){return this.isValid?this.plus({[t]:1}).startOf(t,r).minus(1):this}toFormat(t,r={}){return this.isValid?on.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):L_}toLocaleString(t=sc,r={}){return this.isValid?on.create(this.loc.clone(r),t).formatDateTime(this):L_}toLocaleParts(t={}){return this.isValid?on.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;let s=t==="extended",c=N_(this,s);return c+="T",c+=rE(this,s,r,n,i,o),c}toISODate({format:t="extended"}={}){return this.isValid?N_(this,t==="extended"):null}toISOWeekDate(){return U0(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+rE(this,s==="extended",r,t,n,o):null}toRFC2822(){return U0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return U0(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?N_(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||t)&&(n&&(i+=" "),r?i+="z":t&&(i+="ZZ")),U0(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():L_}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}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{};let r={...this.c};return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return ar.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=_6(r).map(ar.normalizeUnit),s=t.valueOf()>this.valueOf(),c=s?this:t,a=s?t:this,d=H6(c,a,o,i);return s?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(e.now(),t,r)}until(t){return this.isValid?Ys.fromDateTimes(this,t):this}hasSame(t,r,n){if(!this.isValid)return!1;let i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(r,n)<=i&&i<=o.endOf(r,n)}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;let r=t.base||e.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0,i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),oE(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?oE(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new dr("min requires all arguments be DateTimes");return g_(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new dr("max requires all arguments be DateTimes");return g_(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=vt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return I_(s,t,r)}static fromStringExplain(t,r,n={}){return e.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){let{locale:n=null,numberingSystem:i=null}=r,o=vt.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Th(o,t)}static fromFormatParser(t,r,n={}){if(Ge(t)||Ge(r))throw new dr("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=vt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new dr(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:c,zone:a,specificOffset:d,invalidReason:h}=r.explainFromTokens(t);return h?e.invalid(h):sp(c,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return sc}static get DATE_MED(){return Hm}static get DATE_MED_WITH_WEEKDAY(){return j2}static get DATE_FULL(){return qm}static get DATE_HUGE(){return Zm}static get TIME_SIMPLE(){return Ym}static get TIME_WITH_SECONDS(){return Jm}static get TIME_WITH_SHORT_OFFSET(){return Xm}static get TIME_WITH_LONG_OFFSET(){return Km}static get TIME_24_SIMPLE(){return Qm}static get TIME_24_WITH_SECONDS(){return eh}static get TIME_24_WITH_SHORT_OFFSET(){return th}static get TIME_24_WITH_LONG_OFFSET(){return rh}static get DATETIME_SHORT(){return nh}static get DATETIME_SHORT_WITH_SECONDS(){return ih}static get DATETIME_MED(){return oh}static get DATETIME_MED_WITH_SECONDS(){return sh}static get DATETIME_MED_WITH_WEEKDAY(){return H2}static get DATETIME_FULL(){return ah}static get DATETIME_FULL_WITH_SECONDS(){return ch}static get DATETIME_HUGE(){return lh}static get DATETIME_HUGE_WITH_SECONDS(){return uh}}});var In=V(()=>{dc();Ch();T_();E_();lu();qf();lc();a_();T0();uc()});function hu(e){return e instanceof Tr?e===zr.instance:e?.toString().toLowerCase()==="unknown"}function B0(e){return hu(e)?zr.instance:e}var zr,Mh=V(()=>{In();zr=class{};zr.instance=new er("Etc/UTC")});function ap(e,t,r){return e<t?e-t:e>r?e-r:0}function cp(e,t,r){return e<t?t:e>r?r:e}function Po(e,t=!0){if(e instanceof Tr)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return zr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=At.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=er.create(e);if(!r.isValid){if(t)throw new R_(G0.TimeZoneNotRecognized);return null}return r}var G0,hV,R_,Ph,uE=V(()=>{ic();Mh();In();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(G0||(G0={}));hV={[G0.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},R_=class e extends Error{constructor(t,r){super(fs(hV[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};Ph=class e{constructor(t){this._date=t,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(t=0,r=1,n=1,i=0,o=0,s=0,c=0,a){if(isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(c))return null;let d=Se.local(t,r).daysInMonth,h=Se.fromObject({day:cp(n,1,d),year:t,month:cp(r,1,12),hour:cp(i,0,23),minute:cp(o,0,59),second:cp(s,0,59),millisecond:cp(c,0,999)},{zone:Po(a)});return h=h.plus({months:ap(r,1,12),days:ap(n,1,d),hours:ap(i,0,23),minutes:ap(o,0,59),seconds:ap(s,0,59),milliseconds:ap(c,0,999)}),new e(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=Po(r);return t.isUnknownTimeZone||n===zr.instance?e.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t._date.setZone(n))}static dateJSToArcadeDate(t){return new e(Se.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Po(r);return new e(Se.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(Se.fromMillis(t,{zone:zr.instance}))}static unknownDateJSToArcadeDate(t){return new e(Se.fromMillis(t.getTime(),{zone:zr.instance}))}static epochToArcadeDate(t,r="system"){let n=Po(r);return new e(Se.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=Po(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=Po(r);return t.zone===zr.instance||n===zr.instance?e.fromParts(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t.setZone(n))}static nowToArcadeDate(t){let r=Po(t);return new e(Se.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(Se.utc())}get isSystem(){return this.timeZone==="system"||this.timeZone===e.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===zr.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let t=this._date.weekday;return t>6&&(t=0),t}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if(this._date.zone.type==="system")return"system";let t=this.zone;return t.type==="fixed"?t.fixed===0?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new e(this._date.plus(t))}diff(t,r="milliseconds"){return this._date.diff(t._date,r)[r]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,r){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:r&&!this.isUnknownTimeZone})}toFormat(t,r){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,r)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new e(this._date.toUTC())}toLocal(){return new e(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;let r=Se.fromISO(t,{setZone:!0});return new e(r)}}});function Ct(e){return e?{remove(){e&&(e(),e=void 0)}}:gV}function wV(e){e.forEach(t=>t?.remove())}function gu(e){return Ct(()=>wV(e))}var gV,oi=V(()=>{gV={remove:()=>{}}});function fE(){let e=D_?.getAttribute("lang"),t=globalThis.navigator?.language;return bV??e??t??"en"}function Ji(){return Ih===void 0&&(Ih=fE()),Ih}function $_(e){return j0.push(e),Ct(()=>j0.splice(j0.indexOf(e),1))}function lp(e){return H0.push(e),Ct(()=>H0.splice(H0.indexOf(e),1))}function dE(){let e=yV??fE();Ih!==e&&([...H0].forEach(t=>t(e)),Ih=e,[...j0].forEach(t=>t(e)))}var yV,Ih,bV,D_,j0,H0,gc=V(()=>{oi();bV=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,D_=globalThis.document?.documentElement;j0=[];H0=[];globalThis.addEventListener?.("languagechange",dE),D_&&new MutationObserver(()=>{dE()}).observe(D_,{attributeFilter:["lang"]})});function pE(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="",r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(let n of e.match(r)||[])switch(n){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=n;break;default:n.length>=2&&n.slice(0,1)==="["&&n.slice(-1)==="]"?t+=`'${n.slice(1,-1)}'`:t+=`'${n}'`}return t}var sn,Ah=V(()=>{uE();gc();In();sn=class e{constructor(t,r,n){this._year=t,this._month=r,this._day=n,this.declaredRootClass="esri.core.sql.dateonly"}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(t){return t instanceof e&&t.day===this.day&&t.month===this.month&&t.year===this.year}clone(){return new e(this._year,this._month,this._day)}toDateTime(t){return Se.fromObject({day:this.day,month:this.month,year:this.year},{zone:Po(t)})}toDateTimeLuxon(t){return Se.fromObject({day:this.day,month:this.month,year:this.year},{zone:Po(t)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(t=null,r=!0){if(t===null||t==="")return this.toString();if(r&&(t=pE(t)),!t)return"";let n=this.toDateTime("unknown");return Ph.dateTimeToArcadeDate(n).toFormat(t,{locale:Ji(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return Ph.dateTimeToArcadeDate(t)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(t,r){return e.fromDateTime(this.toUTCDateTime().plus({[t]:r}))}toUTCDateTime(){return Se.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){let r=Se.fromMillis(t,{zone:At.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=Se.fromSeconds(t,{zone:At.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromReader(t){if(!t)return null;let r=t.split("-");return r.length!==3?null:new e(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10))}static fromParts(t,r,n){let i=new e(t,r,n);return i.isValid===!1?null:i}static fromDateJS(t){return e.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return e.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,r=null){if(t===""||t===null)return null;let n=[];if(r)(r=pE(r))&&n.push(r);else if(r===null||r===""){let i=Se.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Se.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=Se.fromJSDate(new Date).setZone(Po(t));return new e(r.year,r.month,r.day)}}});var te,vV,ae,wc=V(()=>{ic();(function(e){e.InvalidFunctionParameters="InvalidFunctionParameters",e.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",e.UnsupportedSqlFunction="UnsupportedSqlFunction",e.UnsupportedOperator="UnsupportedOperator",e.UnsupportedSyntax="UnsupportedSyntax",e.UnsupportedIsRhs="UnsupportedIsRhs",e.UnsupportedIsLhs="UnsupportedIsLhs",e.InvalidDataType="InvalidDataType",e.CannotCastValue="CannotCastValue",e.FunctionNotRecognized="FunctionNotRecognized",e.InvalidTime="InvalidTime",e.InvalidParameterCount="InvalidParameterCount",e.InvalidTimeStamp="InvalidTimeStamp",e.InvalidDate="InvalidDate",e.InvalidOperator="InvalidOperator",e.IllegalInterval="IllegalInterval",e.YearMonthIntervals="YearMonthIntervals",e.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",e.MissingStatisticParameters="MissingStatisticParameters"})(te||(te={}));vV={[te.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[te.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[te.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[te.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[te.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[te.UnsupportedOperator]:"Unsupported operator - {operator}",[te.UnsupportedSyntax]:"Unsupported syntax - {node}",[te.UnsupportedSqlFunction]:"Sql function not found = {function}",[te.InvalidDataType]:"Invalid sql data type",[te.InvalidDate]:"Invalid date encountered",[te.InvalidOperator]:"Invalid operator encountered",[te.InvalidTime]:"Invalid time encountered",[te.IllegalInterval]:"Illegal interval",[te.FunctionNotRecognized]:"Function not recognized",[te.InvalidTimeStamp]:"Invalid timestamp encountered",[te.InvalidParameterCount]:"Invalid parameter count for call to {name}",[te.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[te.YearMonthIntervals]:"Year-Month Intervals not supported",[te.CannotCastValue]:"Cannot cast value to the required data type"},ae=class e extends Error{constructor(t,r){super(fs(vV[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function mE(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var yn,Lh=V(()=>{In();yn=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=Se.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return mE(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return mE(this.toDateTime().offset%60)}toMilliseconds(){return this.toDateTime().toMillis()}get hour(){return this.toDateTime().hour}get minute(){return this.toDateTime().minute}get second(){return this.toDateTime().second}get day(){return this.toDateTime().day}get month(){return this.toDateTime().month}get year(){return this.toDateTime().year}startOfDay(){return e.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(t){return new e(Se.fromJSDate(t).toISO({includeOffset:!0}))}static fromDateTime(t){return new e(t.toISO({includeOffset:!0}))}static fromParts(t,r,n=0,i=0,o=0,s=0,c=0,a=!1,d=0,h=0){let g=`${t.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,v="";s<10&&(v="0");let S=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${v+s.toString()}`;c!==0&&(S+="."+c.toString().padStart(3,"0"));let M=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new e(g+"T"+S+M)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let t=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return t&&(t=t.replace(".000","")),t}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(t){let r=this.toDateTime().plus(t);return e.fromDateTime(r)}}});function N(e,t,r,n){var i,o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}var pt=V(()=>{});var q0,F_=V(()=>{q0="20241129"});var Tt,yc=V(()=>{et();ds();F_();Tt={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(HT(Tt,globalThis.esriConfig,!0),delete Tt.has),!Tt.assetsPath){{let e="4.32.0";Tt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${q0}/assets`}Tt.defaultAssetsPath=Tt.assetsPath}});function _V(e,t,...r){console[e](`[${t}]`,...r)}function SV(...e){return XT(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var hE,ct,tt=V(()=>{yc();et();ic();hE={info:0,warn:1,error:2,none:3},ct=class e{constructor(t){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},t.level!=null&&(this.level=t.level),t.writer!=null&&(this.writer=t.writer),this._module=t.module,e._loggers.set(this.module,this);let r=this.module.lastIndexOf(".");r!==-1&&(this._parent=e.getLogger(this.module.slice(0,r)))}get module(){return this._module}get parent(){return this._parent}error(...t){this._log("error","always",...t)}warn(...t){this._log("warn","always",...t)}info(...t){this._log("info","always",...t)}errorOnce(...t){this._log("error","once",...t)}warnOnce(...t){this._log("warn","once",...t)}infoOnce(...t){this._log("info","once",...t)}errorOncePerTick(...t){this._log("error","oncePerTick",...t)}warnOncePerTick(...t){this._log("warn","oncePerTick",...t)}infoOncePerTick(...t){this._log("info","oncePerTick",...t)}get test(){}static get test(){}static getLogger(t){return t=typeof t!="string"?t.declaredClass:t,e._loggers.get(t)||new e({module:t})}_log(t,r,...n){if(this._matchLevel(t)){if(r!=="always"&&!e._throttlingDisabled){let i=SV(n),o=this._loggedMessages[t].get(i);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=e._tickCounter)return;this._loggedMessages[t].set(i,e._tickCounter),e._scheduleTickCounterIncrement()}for(let i of Tt.log.interceptors)if(i(t,this.module,...n))return;this._inheritedWriter()(t,this.module,...n)}}_parentWithMember(t,r){let n=this;for(;n!=null;){let i=n[t];if(i!=null)return i;n=n.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",_V)}_matchLevel(t){let r=Tt.log.level||"warn";return hE[this._parentWithMember("level",r)]<=hE[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};ct._loggers=new Map,ct._tickCounter=0,ct._tickCounterScheduled=!1,ct._throttlingDisabled=!1});function Z0(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var U_=V(()=>{});function xV(e){return e==null?e:new Date(e)}function CV(e){return e==null?e:!!e}function TV(e){return e==null?e:e.toString()}function B_(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function EV(e){return e==null?e:Math.round(parseFloat(e))}function MV(e){return null}function wE(e,t){return r=>{let n=e(r);return t.step!=null&&(n=Math.round(n/t.step)*t.step),t.min!=null&&(n=Math.max(t.min,n)),t.max!=null&&(n=Math.min(t.max,n)),n}}function yE(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function Y0(e,t){return t!=null&&e&&!(t instanceof e)}function bE(e){return e&&"isCollection"in e}function gE(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function PV(e,t){if(!t?.constructor||!bE(t.constructor))return V_(e,t)?t:new e(t);let r=gE(e.prototype.itemType),n=gE(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(V_(e,t),t):new e(t):t}function V_(e,t){return!!yE(t)&&(up().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+J0(e)+"'"),!0)}function G_(e,t){return t==null?t:bE(e)?PV(e,t):Y0(e,t)?V_(e,t)?t:new e(t):t}function J0(e){return e?.prototype?.declaredClass||"unknown"}function AV(e){switch(e){case Number:return t=>B_(t);case ai:return EV;case Boolean:return CV;case String:return TV;case Date:return xV;case Oh:return MV;default:return Z0(IV,e,()=>G_.bind(null,e))}}function si(e,t){let r=AV(e);return arguments.length===1?r:r(t)}function dp(e,t,r){return arguments.length===1?dp.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function vE(e,t){return arguments.length===1?dp(r=>si(e,r)):dp(r=>si(e,r),t)}function _E(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>_E(e,t-1,n)):e(r)}function kh(e,t,r){if(arguments.length===2)return o=>kh(e,t,o);if(!r)return r;r=_E(e,t,r);let n=t,i=r;for(;n>0&&Array.isArray(i);)n--,i=i[0];if(i!==void 0)for(let o=0;o<n;o++)r=[r];return r}function SE(e,t,r){return arguments.length===2?kh(n=>si(e,n),t):kh(n=>si(e,n),t,r)}function X0(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function K0(e,t){if(arguments.length===2)return K0(e).call(null,t);let r=new Set,n=e.filter(c=>typeof c!="function"),i=e.filter(c=>typeof c=="function");for(let c of e)typeof c!="string"&&typeof c!="number"||r.add(c);let o=null,s=null;return(c,a)=>{if(c==null)return c;let d=typeof c,h=d==="string"||d==="number";return h&&(r.has(c)||i.some(g=>d==="string"&&g===String||d==="number"&&g===Number))||d==="object"&&i.some(g=>!Y0(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),up().error("Accessor#set",`'${c}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof c=="object"&&i.length?(s||(s=i.map(g=>J0(g)).join(", ")),up().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):up().error("Accessor#set",`'${c}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function Io(e,t){if(arguments.length===2)return Io(e).call(null,t);let r={},n=[],i=[];for(let a in e.typeMap){let d=e.typeMap[a];r[a]=si(d),n.push(J0(d)),i.push(a)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,c=typeof e.key=="string"?a=>a[e.key]:e.key;return a=>{if(e.base&&!Y0(e.base,a)||a==null)return a;let d=c(a)||e.defaultKeyValue,h=r[d];if(!h)return up().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${s()})`),null;if(!Y0(e.typeMap[d],a))return a;if(typeof e.key=="string"&&!yE(a)){let g={};for(let v in a)v!==e.key&&(g[v]=a[v]);return h(g)}return h(a)}}function xE(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function j_(e){switch(e.type){case"native":return si(e.value);case"array":return dp(j_(e.value));case"one-of":return LV(e);default:return null}}function LV(e){let t=null;return(r,n)=>W_(r,e)?r:(t==null&&(t=z_(e)),up().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function z_(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case ai:return"integer";case Date:return"date";case Oh:return"null";default:return J0(e.value)}case"array":return`array of ${z_(e.value)}`;case"one-of":{let t=e.values.map(r=>z_(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function W_(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case ai:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case Oh:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!W_(r,t.value));case"one-of":return t.values.some(r=>W_(e,r))}}var up,IV,ai,Oh,Xi=V(()=>{et();tt();U_();up=()=>ct.getLogger("esri.core.accessorSupport.ensureTypes");IV=new WeakMap;ai=class{},Oh=class{}});function xi(e){return e.__accessor__??null}function TE(e,t){return e?.metadata?.[t]!=null}function fp(e,t,r){return r?Q0(e,t,{policy:r,path:""}):Q0(e,t,null)}function Q0(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,c="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,c=r.policy(s)),c==="replace"||c==="replace-arrays"&&Array.isArray(n[o]))return n[o]=t[o],n;if(n[o]===void 0)return n[o]=qe(t[o]),n;let a=n[o],d=t[o];if(a===d)return n;if(Array.isArray(d)||Array.isArray(n))a=a?Array.isArray(a)?n[o]=a.slice():n[o]=[a]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(h=>{a.includes(h)||a.push(h)}));else if(d&&typeof d=="object")if(r){let h=r.path;r.path=s,n[o]=Q0(a,d,r),r.path=h}else n[o]=Q0(a,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function ew(e){return Array.isArray(e)?e:e.split(".")}function CE(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function kV(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...CE(r));return t}return CE(e)}function H_(e,t,r,n){let i=kV(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return gu(o)}return n(e,i[0],r)}var Xs=V(()=>{oi();or()});function EE(e,t){let r=e[e.length-1]==="?"?e.slice(0,-1):e;if(t.getItemAt!=null||Array.isArray(t)){let i=parseInt(r,10);if(!isNaN(i))return Array.isArray(t)?t[i]:t.at(i)}let n=xi(t);return TE(n,r)?n.get(r):t[r]}function ME(e,t,r){if(e==null)return e;let n=EE(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:ME(n,t,r+1)}function wu(e,t,r=0){return typeof t!="string"||t.includes(".")?ME(e,ew(t),r):EE(t,e)}function ps(e,t){return wu(e,t)}function q_(e,t){return wu(t,e)!==void 0}var yu=V(()=>{Xs()});function bc(e){let t=e.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(let n in t)t[n]=qe(t[n]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function pp(e,t){let r=bc(e),n=r[t];return n||(n=r[t]={}),n}function PE(e,t){return fp(e,t,NV)}function NV(e){return OV.test(e)?"replace":"merge"}var OV,mp=V(()=>{or();Xs();OV=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function RV(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Hi(n,t)??"").toString())}var hp,Z_=V(()=>{ds();hp=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&RV(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var We,An=V(()=>{or();tt();Z_();We=class e extends hp{constructor(t,r,n){super(t,r,n)}toJSON(){if(this.details!=null)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(t,r)=>{if(r&&typeof r=="object"&&typeof r.toJSON=="function")return r;try{return qe(r)}catch{return"[object]"}}))}}catch(t){throw ct.getLogger("esri.core.Error").error(t),t}return{name:this.name,message:this.message,details:this.details}}static fromJSON(t){return new e(t.name,t.message,t.details)}};We.prototype.type="error"});function gp(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))gp(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void gp(ps(e,i),o,r)}let n=e.__accessor__;n!=null&&DV(t,n),e[t]=r}}function DV(e,t){if(he("esri-unknown-property-errors")&&!$V(e,t))throw new We("set:unknown-property",FV(e,t))}function $V(e,t){return t.metadata[e]!=null}function FV(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var Y_=V(()=>{An();et();tt();yu()});function z(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let n=Object.getOwnPropertyDescriptor(t,r),i=pp(t,r);n&&(n.get||n.set?(i.get=n.get||i.get,i.set=n.set||i.set):"value"in n&&("value"in e&&ct.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),i.value=e.value=n.value)),e.readOnly!=null&&(i.readOnly=e.readOnly);let o=e.aliasOf;if(o){let a=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,h;i.dependsOn=[a],i.get=function(){let g=ps(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=ps(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){gp(this,a,g)})}let s=e.type,c=e.types;if(!i.cast){let a;s?a=UV(s):c&&(a=Array.isArray(c)?dp(Io(c[0])):Io(c)),e.cast=VV(e.cast,a)}PE(i,e),e.range&&(i.cast=wE(i.cast,e.range))}}function tw(e,t,r){let n=pp(e,r);n.json||(n.json={});let i=n.json;return t!==void 0&&(i.origins||(i.origins={}),i.origins[t]||(i.origins[t]={}),i=i.origins[t]),i}function UV(e){let t=0,r=e;if(xE(e))return j_(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(X0(n))return t===0?K0(n):kh(K0(n),t);if(t===1)return vE(n);if(t>1)return SE(n,t);let i=e;return i.from?i.from:si(i)}function VV(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var mt=V(()=>{tt();Xi();yu();mp();Y_()});var rw,J_=V(()=>{rw=Symbol("Accessor-beforeDestroy")});var an,Nh=V(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(an||(an={}))});var ht,nw=V(()=>{(function(e){e[e.Dirty=1]="Dirty",e[e.Overridden=2]="Overridden",e[e.Computing=4]="Computing",e[e.NonNullable=8]="NonNullable",e[e.HasDefaultValue=16]="HasDefaultValue",e[e.DepTrackingInitialized=32]="DepTrackingInitialized",e[e.AutoTracked=64]="AutoTracked",e[e.ExplicitlyTracking=128]="ExplicitlyTracking"})(ht||(ht={}))});var ms,Rh=V(()=>{ms=class{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.accessed?.clear(),this.clear()}onAccessed(t){this._observer!=null&&t!==this._observer&&(this.accessed==null&&(this.accessed=new Set),this.accessed.add(t))}onTrackingEnd(){this._observer!=null&&(this.clear(),this.accessed!=null&&(this._handles==null&&(this._handles=[]),this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(this._handles!=null){for(let t=0;t<this._handles.length;++t)this._handles[t].remove();this._handles.length=0}}}});function Je(e){$h.onAccessed(e)}function Ao(e,t,r){if(iw)return X_(e,t,r);let n=null;return LE(e),n=t.call(r),kE(),n}function AE(e,t){return Ao(sw,e,t)}function X_(e,t,r){let n=iw;iw=!0,LE(e);let i=null;try{i=t.call(r)}catch(o){ow&&ct.getLogger("esri.core.accessorSupport.tracking").error(o)}return kE(),iw=n,i}function LE(e){$h=e,Dh.push(e)}function kE(){let e=Dh.length;if(e>1){let t=Dh.pop();$h=Dh[e-2],t.onTrackingEnd()}else if(e===1){let t=Dh.pop();$h=sw,t.onTrackingEnd()}else $h=sw}function K_(e,t){if(t.flags&ht.DepTrackingInitialized)return;t.flags|=ht.DepTrackingInitialized;let r=ow;ow=!1,t.flags&ht.AutoTracked?X_(t.trackingTarget,t.metadata.get,e):Q_(e,t),ow=r}function Q_(e,t){t.flags&ht.ExplicitlyTracking||(t.flags|=ht.ExplicitlyTracking,X_(t.trackingTarget,()=>{let r=t.metadata.dependsOn||zV;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=ew(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=IE(s,i[o],o!==i.length-1)}else IE(e,n,!1)}),t.flags&=~ht.ExplicitlyTracking)}function IE(e,t,r){let n=t[t.length-1]==="?"?t.slice(0,-1):t;if(e.getItemAt!=null||Array.isArray(e)){let o=parseInt(n,10);if(!isNaN(o))return Array.isArray(e)?e[o]:e.at(o)}let i=xi(e);if(i){let o=i.propertiesByName.get(n);o&&(Je(o),K_(e,o))}return r?e[n]:void 0}var sw,Dh,$h,iw,ow,zV,bu=V(()=>{et();tt();Xs();nw();Rh();sw=new ms,Dh=[],$h=sw;iw=!1,ow=!1;zV=[]});function OE(e){if(e.json&&e.json.origins){let t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(let n in r)if(t[n]){let i=t[n];r[n].forEach(o=>{t[o]=i}),delete t[n]}}}var NE=V(()=>{});var Fh,RE=V(()=>{Z_();Fh=class extends hp{constructor(t,r,n){super(t,r,n)}};Fh.prototype.type="warning"});function aw(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var eS=V(()=>{});function rS(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||GV(e)&&Hs("read.reader",nS(e),t))}function nS(e){let t=e.ndimArray??0;if(t>1)return BV(e);if(t===1)return DE(e);if("type"in e&&FE(e.type)){let r=e.type.prototype?.itemType?.Type,n=DE(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let c=n(i,o,s);return c&&new e.type(c)}}return iS(e)}function iS(e){return"type"in e?WV(e.type):jV(e.types)}function WV(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void tS().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${i}'`);let o=new e;return o.read(t,n),o}:e.fromJSON}function $E(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>$E(e,i,r,n-1)):e(t,void 0,r)}function BV(e){let t=iS(e),r=$E.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let c=n,a=i;for(;c>0&&Array.isArray(a);)c--,a=a[0];if(a!==void 0)for(let d=0;d<c;d++)i=[i];return i}}function DE(e){let t=iS(e);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let c of r){let a=t(c,void 0,i);a!==void 0&&s.push(a)}return s}let o=t(r,void 0,i);return o!==void 0?[o]:void 0}}function FE(e){if(!aw(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?oS(t.Type):UE(t.Type))}function GV(e){return"types"in e?UE(e.types):oS(e.type)}function oS(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||FE(e))}function UE(e){for(let t in e.typeMap)if(!oS(e.typeMap[t]))return!1;return!0}function jV(e){let t=null,r=e.errorContext??"type",n=e.validate;return(i,o,s)=>{if(i==null)return i;let c=typeof i;if(c!=="object")return void tS().error(`Expected JSON value of type 'object' to deserialize, but got '${c}'`);t||(t=HV(e));let a=e.key;if(typeof a!="string")return;let d=i[a],h=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!h){let v=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new Fh(`${r}:unsupported`,v,{definition:i,context:s})),void tS().error(v)}let g=new h;return g.read(i,s),n?n(g):g}}function HV(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=bc(n.prototype);if(typeof e.key=="function")continue;let o=i[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&o.json.type.length===1&&typeof o.json.type[0]=="string"){t[o.json.type[0]]=n;continue}let s=o.json?.write;if(!s?.writer){t[r]=n;continue}let c=s.target,a=typeof c=="string"?c:e.key,d={};s.writer(r,d,a),d[a]&&(t[d[a]]=n)}return t}var tS,sS=V(()=>{tt();ds();RE();mp();eS();tS=()=>ct.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function BE(e){if(e.json||(e.json={}),zE(e.json),WE(e.json),VE(e.json),e.json.origins)for(let t in e.json.origins)zE(e.json.origins[t]),WE(e.json.origins[t]),VE(e.json.origins[t]);return!0}function VE(e){e.name&&(e.read&&typeof e.read=="object"?e.read.source===void 0&&(e.read.source=e.name):e.read={source:e.name},e.write&&typeof e.write=="object"?e.write.target===void 0&&(e.write.target=e.name):e.write={target:e.name})}function zE(e){typeof e.read=="boolean"?e.read={enabled:e.read}:typeof e.read=="function"?e.read={enabled:!0,reader:e.read}:e.read&&typeof e.read=="object"&&e.read.enabled===void 0&&(e.read.enabled=!0)}function WE(e){typeof e.write=="boolean"?e.write={enabled:e.write}:typeof e.write=="function"?e.write={enabled:!0,writer:e.write}:e.write&&typeof e.write=="object"&&e.write.enabled===void 0&&(e.write.enabled=!0)}var GE=V(()=>{});function aS(e,t){if(!t.write||t.write.writer||t.write.enabled===!1&&!t.write.overridePolicy)return;let r=e?.ndimArray??0;e&&(r===1||"type"in e&&aw(e.type))?t.write.writer=JV:r>1?t.write.writer=XV(r):t.types?Array.isArray(t.types)?t.write.writer=ZV(t.types[0]):t.write.writer=qV(t.types):t.write.writer=Uh}function qV(e){return(t,r,n,i)=>t?jE(t,e,i)?Uh(t,r,n,i):void 0:Uh(t,r,n,i)}function jE(e,t,r){for(let n in t.typeMap)if(e instanceof t.typeMap[n])return!0;if(r?.messages){let n=t.errorContext??"type",i=`Values of type '${(typeof t.key!="function"?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&e&&r.messages.push(new We(`${n}:unsupported`,i,{definition:e,context:r})),ct.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function ZV(e){return(t,r,n,i)=>!t||!Array.isArray(t)?Uh(t,r,n,i):Uh(t.filter(o=>jE(o,e,i)),r,n,i)}function Uh(e,t,r,n){Hs(r,cw(e,n),t)}function cw(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?YV(e):e}function YV(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function JV(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>cw(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[cw(e,n)],Hs(r,i,t)}function HE(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>HE(n,t,r-1)):cw(e,t)}function XV(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=HE(t,i,e);let s=e,c=o;for(;s>0&&Array.isArray(c);)s--,c=c[0];if(c!==void 0)for(let a=0;a<s;a++)o=[o]}Hs(n,o,r)}}var qE=V(()=>{An();tt();ds();eS()});function ZE(e,t){return lS(e,"any",t?.origin)}function lw(e,t){return lS(e,"read",t?.origin)}function YE(e,t){return lS(e,"write",t?.origin)}function lS(e,t,r){let n=e?.json;if(n?.origins&&r){let i;i=r==="link-chart"?n.origins[r]&&(t==="any"||t in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],i&&(t==="any"||t in i)&&(n=i)}return n}function KV(e){let t=QV(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?ez(n):t;rS(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),aS(i,n)}rS(t,e.json,!0),aS(t,e.json)}function QV(e){return e.json.types?cS(e.json):e.type?JE(e):cS(e)}function ez(e){return e.type?JE(e):cS(e)}function JE(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!X0(r);)r=r[0],t++;return{type:r,ndimArray:t}}function cS(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function XE(e){BE(e)&&(OE(e),KV(e))}var uw=V(()=>{Xi();NE();sS();GE();qE()});function Ie(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,rz(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!uS.has(i.initialize)&&(uS.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!dS.has(i.destroy)&&(dS.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);uS.clear(),dS.clear();let o=class extends t{constructor(...c){if(super(...c),this.constructor===o&&typeof this.postscript=="function"){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let a=r.length-1;a>=0;a--)r[a].call(this)}}),n.length){let a=!1,d=this[rw];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!a){a=!0,d.call(this);for(let h=0;h<n.length;h++)n[h].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};o.__accessorMetadata__=bc(t.prototype),o.prototype.declaredClass=e;let s=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(o,"name",{value:s,configurable:!0}),o}}function tz(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;r.mutable&&Je(n);let i=r.store;return i.has(e)?i.get(e):n.metadata.value}:function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n!==void 0)return n.getComputed(r)}}function rz(e){let t=e.prototype,r=bc(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];XE(o),n[i]={enumerable:!0,configurable:!0,get:tz(i,o),set(s){let c=this.__accessor__;if(c!==void 0){if(c.mutable)return c.initialized&&o.readOnly?KE("read-only",i):c.lifecycle===an.CONSTRUCTED&&o.constructOnly?KE("construct-only",i):void c.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(e.prototype,n)}var uS,dS,KE,ut=V(()=>{et();tt();J_();Nh();mp();bu();uw();uS=new Set,dS=new Set;KE=(e,t)=>{ct.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function fS(e){return e!=null&&typeof e[Symbol.iterator]=="function"}var QE=V(()=>{});function dw(e){return e||"_default_"}function e8(e){for(let t of e)t instanceof wp?t.removeAll():t.remove()}function t8(e){return e!=null&&(!!e.remove||e instanceof wp)}var wp,r8=V(()=>{QE();wp=class{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let t=0;return this._groups.forEach(r=>{t+=r.length}),t}add(t,r){if(fS(t)){let n=this._getOrCreateGroup(r);for(let i of t)t8(i)&&n.push(i)}else t8(t)&&this._getOrCreateGroup(r).push(t);return this}forEach(t,r){if(typeof t=="function")this._groups.forEach(n=>n.forEach(t));else{let n=this._getGroup(t);n&&r&&n.forEach(r)}}has(t){return this._groups.has(dw(t))}remove(t){if(typeof t!="string"&&fS(t)){for(let r of t)this.remove(r);return this}return this.has(t)?(e8(this._getGroup(t)),this._groups.delete(dw(t)),this):this}removeAll(){return this._groups.forEach(e8),this._groups.clear(),this}removeReference(t){return this._groups.delete(t),this}_getOrCreateGroup(t){if(this.has(t))return this._getGroup(t);let r=[];return this._groups.set(dw(t),r),r}_getGroup(t){return this._groups.get(dw(t))}}});function n8(e,t){if(e==null)throw new Error(t??"value is None")}function Vh(e){return e?.destroy(),null}function zh(e){return e?.remove(),null}function i8(e){return e?.abort(),null}var vc=V(()=>{});function nz(e){return e?.release&&typeof e.release=="function"}function iz(e){return e?.acquire&&typeof e.acquire=="function"}var Lo,Wh=V(()=>{Lo=class e{constructor(t,r,n,i=1,o=0){this._ctor=t,this._acquireFunction=r,this._releaseFunction=n,this.allocationSize=i,this._pool=new Array(o),this._initialSize=o;for(let s=0;s<o;s++)this._pool[s]=new this._ctor;this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...t){let r;if(e.test.disabled)r=new this._ctor;else{if(this._pool.length===0){let n=this.allocationSize;for(let i=0;i<n;i++)this._pool[i]=new this._ctor}r=this._pool.pop()}return this._acquireFunction?this._acquireFunction(r,...t):iz(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):nz(t)&&t.release(),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let r=t;r<this._pool.length;++r){let n=this._pool[r];this._dispose(n)}this._pool.length=t}}_dispose(t){t.dispose&&typeof t.dispose=="function"&&t.dispose()}};Lo.test={disabled:!1}});var fw,o8=V(()=>{nc();fw=class{constructor(t,r){this._observers=t,this._observer=r}remove(){PT(this._observers,this._observer)}}});var yp,oz,pS=V(()=>{oi();o8();yp=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return oz;this._observers==null&&(this._observers=[]);let r=this._observers,n=!1,i=!1,o=r.length;for(let s=0;s<o;++s){let c=r[s];if(c.destroyed)i=!0;else if(c===t){n=!0;break}}return n||(r.push(t),i&&this._removeDestroyedObservers()),new fw(r,t)}_removeDestroyedObservers(){let t=this._observers;if(!t||t.length===0)return;let r=t.length,n=0;for(let i=0;i<r;++i){for(;i+n<r&&t[i+n].destroyed;)++n;if(n>0){if(!(i+n<r))break;t[i]=t[i+n]}}t.length=r-n}destroy(){if(this.destroyed)return;this.destroyed=!0;let t=this._observers;if(t!=null){for(let r of t)r.onCommitted();this._observers=null}}},oz=Ct()});function pw(e){switch(e){case"defaults":return st.DEFAULTS;case"service":return st.SERVICE;case"portal-item":return st.PORTAL_ITEM;case"web-scene":return st.WEB_SCENE;case"web-map":return st.WEB_MAP;case"link-chart":return st.LINK_CHART;case"user":return st.USER;default:return null}}function mw(e){switch(e){case st.DEFAULTS:return"defaults";case st.SERVICE:return"service";case st.PORTAL_ITEM:return"portal-item";case st.WEB_SCENE:return"web-scene";case st.WEB_MAP:return"web-map";case st.LINK_CHART:return"link-chart";case st.USER:return"user"}}function s8(e){return mw(e)}var st,Fce,_c=V(()=>{(function(e){e[e.DEFAULTS=0]="DEFAULTS",e[e.COMPUTED=1]="COMPUTED",e[e.SERVICE=2]="SERVICE",e[e.PORTAL_ITEM=3]="PORTAL_ITEM",e[e.WEB_SCENE=4]="WEB_SCENE",e[e.WEB_MAP=5]="WEB_MAP",e[e.LINK_CHART=6]="LINK_CHART",e[e.USER=7]="USER"})(st||(st={}));Fce=st.USER+1});var Bh,a8=V(()=>{pS();_c();bu();nw();Rh();Bh=class extends yp{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this.trackingTarget=new ms(this),this.flags=0,this.flags=ht.Dirty|(r.nonNullable?ht.NonNullable:0)|(r.hasOwnProperty("value")?ht.HasDefaultValue:0)|(r.get===void 0?ht.DepTrackingInitialized:0)|(r.dependsOn===void 0?ht.AutoTracked:0)}destroy(){this.flags&ht.Dirty&&this.onCommitted(),super.destroy(),this.trackingTarget.destroy()}getComputed(t){t.mutable&&Je(this);let r=t.store,n=this.propertyName,i=this.flags,o=r.get(n);if(i&ht.Computing||~i&ht.Dirty&&r.has(n))return o;this.flags|=ht.Computing;let s=t.host,c;i&ht.AutoTracked?c=Ao(this.trackingTarget,this.metadata.get,s):(Q_(s,this),c=this.metadata.get.call(s)),this.flags|=ht.DepTrackingInitialized,r.set(n,c,st.COMPUTED);let a=r.get(n);return a===o?this.flags&=~ht.Dirty:AE(this.commit,this),this.flags&=~ht.Computing,a}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~ht.Dirty,this.onCommitted()}onInvalidated(){~this.flags&ht.Overridden&&(this.flags|=ht.Dirty);let t=this._observers;if(t&&t.length>0)for(let r of t)r.onInvalidated()}onCommitted(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onCommitted()}}}});var hw,c8=V(()=>{or();_c();hw=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,qe(n))}),r}get(t){return this._values.get(t)}originOf(){return st.USER}keys(){return[...this._values.keys()]}set(t,r){this._values.set(t,r)}delete(t){this._values.delete(t)}has(t){return this._values.has(t)}forEach(t){this._values.forEach(t)}}});function gw(e,t,r){return e!==void 0}function l8(e,t,r,n){return e!==void 0&&(!(r==null&&e.flags&ht.NonNullable)||(n.lifecycle,an.INITIALIZING,!1))}var ww,hS,mS,u8=V(()=>{et();or();tt();Wh();Nh();a8();_c();c8();bu();nw();Rh();ww=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=an.INITIALIZING,this.store=new hw,this.mutable=!0,this._origin=st.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new Bh(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=an.CONSTRUCTING}constructed(){this.lifecycle=an.CONSTRUCTED}destroy(){this.lifecycle=an.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==an.INITIALIZING}get(t){let r=this.propertiesByName.get(t);if(r.metadata.get)return r.getComputed(this);this.mutable&&Je(r);let n=this.store;return n.has(t)?n.get(t):r.metadata.value}originOf(t){let r=this.store.originOf(t);if(r===void 0){let n=this.propertiesByName.get(t);if(n!==void 0&&n.flags&ht.HasDefaultValue)return"defaults"}return mw(r)}has(t){return this.propertiesByName.has(t)&&this.store.has(t)}keys(){return[...this.propertiesByName.keys()]}internalGet(t){let r=this.propertiesByName.get(t);if(gw(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);gw(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!gw(i))return"";let o=new ms,s=Ao(o,()=>i.metadata.get?.call(t)),c=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
|
|
1
|
+
"use strict";(()=>{var e$=Object.defineProperty;var l9=e=>t=>{var r=e[t];if(r)return r();throw new Error("Module not found in bundle: "+t)};var V=(e,t)=>()=>(e&&(t=e(e=0)),t);var u9=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),os=(e,t)=>{for(var r in t)e$(e,r,{get:t[r],enumerable:!0})};function he(e){return typeof tc[e]=="function"?tc[e]=tc[e](globalThis):tc[e]}var tc,et=V(()=>{tc=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},he.add=(e,t,r,n)=>{(n||tc[e]===void 0)&&(tc[e]=t),r&&he(e)},he.cache=tc,he.add("big-integer-warning-enabled",!0),he.add("esri-deprecation-warnings",!0),he.add("esri-tests-disable-screenshots",!1),he.add("esri-tests-use-full-window",!1),he.add("esri-tests-post-to-influx",!0),he.add("esri-cim-animations-enable-status","enabled"),he.add("esri-cim-animations-spotlight",!1),he.add("esri-cim-animations-freeze-time",!1),he.add("enable-feature:multiple-highlights",!1),(()=>{he.add("host-webworker",globalThis.WorkerGlobalScope!==void 0&&self instanceof globalThis.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(he.add("host-browser",e),he.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),he.add("dom",e),he("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(he.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),he.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),he.add("khtml",n.includes("Konqueror")?i:void 0),he.add("edge",parseFloat(r.split("Edge/")[1])||void 0),he.add("opr",parseFloat(r.split("OPR/")[1])||void 0),he.add("webkit",!he("wp")&&!he("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),he.add("chrome",!he("edge")&&!he("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),he.add("android",!he("wp")&&parseFloat(r.split("Android ")[1])||void 0),he.add("safari",!n.includes("Safari")||he("wp")||he("chrome")||he("android")||he("edge")||he("opr")?void 0:parseFloat(n.split("Version/")[1])),he.add("mac",n.includes("Macintosh")),!he("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",c=parseFloat(s.replace(/_/,".").replaceAll("_",""));he.add(o,c),he.add("ios",c)}he("webkit")||(!r.includes("Gecko")||he("wp")||he("khtml")||he("edge")||he.add("mozilla",i),he("mozilla")&&he.add("ff",parseFloat(r.split("Firefox/")[1]||r.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&he.add("esri-mobile",t),r&&he.add("esri-iPhone",r),he.add("esri-geolocation",!!navigator.geolocation)}he.add("esri-wasm","WebAssembly"in globalThis),he.add("esri-performance-mode-frames-between-render",20),he.add("esri-force-performance-mode",!1),he.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),he.add("wasm-simd",()=>{let e=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(e))}),he.add("esri-atomics","Atomics"in globalThis),he.add("esri-workers","Worker"in globalThis),he.add("web-feat:cache","caches"in globalThis),he.add("esri-workers-arraybuffer-transfer",!he("safari")||Number(he("safari"))>=12),he.add("workers-pool-size",8),he.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),he.add("featurelayer-simplify-payload-size-factors",[1,1,4]),he.add("featurelayer-fast-triangulation-enabled",!0),he.add("featurelayer-animation-enabled",!0),he.add("featurelayer-snapshot-enabled",!0),he.add("featurelayer-snapshot-point-min-threshold",8e4),he.add("featurelayer-snapshot-point-max-threshold",4e5),he.add("featurelayer-snapshot-point-coverage",.1),he.add("featurelayer-query-max-depth",4),he.add("featurelayer-query-pausing-enabled",!1),he.add("featurelayer-advanced-symbols",!1),he.add("featurelayer-pbf",!0),he.add("featurelayer-pbf-statistics",!1),he.add("feature-layers-workers",!0),he.add("feature-polyline-generalization-factor",1),he.add("mapview-transitions-duration",200),he.add("mapview-essential-goto-duration",200),he.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),he.add("mapserver-pbf-version-support",10.81),he.add("mapservice-popup-identify-max-tolerance",20),he("host-webworker")||he("host-browser")&&(he.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),he.add("esri-image-decode",()=>{if("decode"in new Image){let e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then(()=>{he.add("esri-image-decode",!0,!0,!0)}).catch(()=>{he.add("esri-image-decode",!1,!0,!0)})}return!1}),he.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});var cu,Vr=V(()=>{cu=class e{constructor(t=1){this._seed=t}set seed(t){this._seed=t??Math.random()*e._m}getInt(){return this._seed=(e._a*this._seed+e._c)%e._m,this._seed}getFloat(){return this.getInt()/(e._m-1)}getIntRange(t,r){return Math.round(this.getFloatRange(t,r))}getFloatRange(t,r){let n=r-t;return t+this.getInt()/e._m*n}};cu._m=2147483647,cu._a=48271,cu._c=0});function rc(e,t,r){if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function G2(e,t,r,n){n=n||ET;let i=Math.max(0,n.last-10);for(let s=i;s<r;++s)if(e[s]===t)return n.last=s,s;let o=Math.min(i,r);for(let s=0;s<o;++s)if(e[s]===t)return n.last=s,s;return-1}function MT(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;_o.clear();for(let c=0;c<n;++c)_o.add(t[c]);i=i||ET;let s=Math.max(0,i.last-10);for(let c=s;c<r;++c)if(_o.has(e[c])&&(o?.push(e[c]),_o.delete(e[c]),e[c]=e[r-1],--r,--c,_o.size===0||r===0))return _o.clear(),r;for(let c=0;c<s;++c)if(_o.has(e[c])&&(o?.push(e[c]),_o.delete(e[c]),e[c]=e[r-1],--r,--c,_o.size===0||r===0))return _o.clear(),r;return _o.clear(),r}function PT(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function IT(e,t){return e!=null}var UF,Sie,Gm,ET,_o,xie,nc=V(()=>{Vr();UF=1.5,Sie=1/UF;Gm=class{constructor(){this.last=0}},ET=new Gm;_o=new Set;xie=new cu});function AT(e){return e?.constructor?.name==="Int8Array"}function LT(e){return e?.constructor?.name==="Uint8Array"}function kT(e){return e?.constructor?.name==="Uint8ClampedArray"}function OT(e){return e?.constructor?.name==="Int16Array"}function NT(e){return e?.constructor?.name==="Uint16Array"}function RT(e){return e?.constructor?.name==="Int32Array"}function DT(e){return e?.constructor?.name==="Uint32Array"}function $T(e){return e?.constructor?.name==="Float32Array"}function FT(e){return e?.constructor?.name==="Float64Array"}var UT=V(()=>{et()});function v0(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&v0(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function qe(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=GT(e);if(t!=null)return t;if(zT(e))return e.clone();if(WT(e))return e.map(qe);if(BT(e))throw new Error("Trying to clone an unclonable Accessor instance");let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=qe(e[n]);return r}function b0(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=GT(e);if(t!=null)return t;if(WT(e)){let n=!0,i=e.map(o=>{let s=b0(o);return o!=null&&s==null&&(n=!1),s});return n?i:null}if(zT(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(BT(e))return null;let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=b0(i);if(i!=null&&o==null)return null;r[n]=o}return r}function zT(e){return typeof e.clone=="function"}function WT(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function BT(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function VT(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function GT(e){if(AT(e)||LT(e)||kT(e)||OT(e)||NT(e)||RT(e)||DT(e)||$T(e)||FT(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,qe(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(qe(r));return t}return null}function jm(e,t){return e===t||typeof e=="number"&&isNaN(e)&&typeof t=="number"&&isNaN(t)||typeof e?.getTime=="function"&&typeof t?.getTime=="function"&&e.getTime()===t.getTime()||!1}function jT(e,t){return e===t||(e==null||typeof e=="string"?e===t:typeof e=="number"?e===t||typeof t=="number"&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&rc(e,t):e instanceof Set?t instanceof Set&&zF(e,t):e instanceof Map?t instanceof Map&&WF(e,t):!!VT(e)&&VT(t)&&VF(e,t))}function VF(e,t){if(e===null||t===null)return!1;let r=Object.keys(e);if(t===null||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}function zF(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function WF(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let i=t.get(r);if(i!==n||i===void 0&&!t.has(r))return!1}return!0}var or=V(()=>{nc();UT()});function HT(e,t,r=!1){return ZT(e,t,r)}function Hi(e,t){if(t!=null)return t[e]||qT(e.split("."),!1,t)}function Hs(e,t,r){let n=e.split("."),i=n.pop(),o=qT(n,!0,r);o&&i&&(o[i]=t)}function qT(e,t,r){let n=r;for(let i of e){if(n==null)return;if(!(i in n)){if(!t)return;n[i]={}}n=n[i]}return n}function ZT(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=n[i],s=t[i];return o===s?n:o===void 0?(n[i]=qe(s),n):(Array.isArray(s)||Array.isArray(n)?(o=o?Array.isArray(o)?n[i]=o.slice():n[i]=[o]:n[i]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(c=>{o.includes(c)||o.push(c)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=ZT(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var ds=V(()=>{or()});function YT(e){return e??""}function fs(e,t){return t?e.replaceAll(BF,typeof t=="object"?(r,n)=>YT(Hi(n,t)):(r,n)=>YT(t(n))):e}function JT(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function XT(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var BF,ic=V(()=>{ds();BF=/\{([^}]+)\}/g});var qs,_0,S0,x0,So,Gf,dr,xo,oc=V(()=>{qs=class extends Error{},_0=class extends qs{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},S0=class extends qs{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},x0=class extends qs{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},So=class extends qs{},Gf=class extends qs{constructor(t){super(`Invalid unit ${t}`)}},dr=class extends qs{},xo=class extends qs{constructor(){super("Zone is an abstract class")}}});var Ae,Co,_i,sc,Hm,j2,qm,Zm,Ym,Jm,Xm,Km,Qm,eh,th,rh,nh,ih,oh,sh,H2,ah,ch,lh,uh,dh=V(()=>{Ae="numeric",Co="short",_i="long",sc={year:Ae,month:Ae,day:Ae},Hm={year:Ae,month:Co,day:Ae},j2={year:Ae,month:Co,day:Ae,weekday:Co},qm={year:Ae,month:_i,day:Ae},Zm={year:Ae,month:_i,day:Ae,weekday:_i},Ym={hour:Ae,minute:Ae},Jm={hour:Ae,minute:Ae,second:Ae},Xm={hour:Ae,minute:Ae,second:Ae,timeZoneName:Co},Km={hour:Ae,minute:Ae,second:Ae,timeZoneName:_i},Qm={hour:Ae,minute:Ae,hourCycle:"h23"},eh={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23"},th={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:Co},rh={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:_i},nh={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae},ih={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae,second:Ae},oh={year:Ae,month:Co,day:Ae,hour:Ae,minute:Ae},sh={year:Ae,month:Co,day:Ae,hour:Ae,minute:Ae,second:Ae},H2={year:Ae,month:Co,day:Ae,weekday:Co,hour:Ae,minute:Ae},ah={year:Ae,month:_i,day:Ae,hour:Ae,minute:Ae,timeZoneName:Co},ch={year:Ae,month:_i,day:Ae,hour:Ae,minute:Ae,second:Ae,timeZoneName:Co},lh={year:Ae,month:_i,day:Ae,weekday:_i,hour:Ae,minute:Ae,timeZoneName:_i},uh={year:Ae,month:_i,day:Ae,weekday:_i,hour:Ae,minute:Ae,second:Ae,timeZoneName:_i}});var Tr,lu=V(()=>{oc();Tr=class{get type(){throw new xo}get name(){throw new xo}get ianaName(){return this.name}get isUniversal(){throw new xo}offsetName(t,r){throw new xo}formatOffset(t,r){throw new xo}offset(t){throw new xo}equals(t){throw new xo}get isValid(){throw new xo}}});var q2,ac,T0=V(()=>{Zn();lu();q2=null,ac=class e extends Tr{static get instance(){return q2===null&&(q2=new e),q2}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return E0(t,r,n)}formatOffset(t,r){return cc(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function GF(e){return P0[e]||(P0[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),P0[e]}function HF(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,c,a,d,h]=n;return[s,i,o,c,a,d,h]}function qF(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=jF[o];o==="era"?n[c]=s:Ge(c)||(n[c]=parseInt(s,10))}return n}var P0,jF,M0,er,lc=V(()=>{Zn();lu();P0={};jF={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};M0={},er=class e extends Tr{static create(t){return M0[t]||(M0[t]=new e(t)),M0[t]}static resetCache(){M0={},P0={}}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{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return E0(t,r,n,this.name)}formatOffset(t,r){return cc(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=GF(this.name),[i,o,s,c,a,d,h]=n.formatToParts?qF(n,r):HF(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=jf({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),S=+r,M=S%1e3;return S-=M>=0?M:1e3+M,(v-S)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function ZF(e,t={}){let r=JSON.stringify([e,t]),n=KT[r];return n||(n=new Intl.ListFormat(e,t),KT[r]=n),n}function Y2(e,t={}){let r=JSON.stringify([e,t]),n=Z2[r];return n||(n=new Intl.DateTimeFormat(e,t),Z2[r]=n),n}function YF(e,t={}){let r=JSON.stringify([e,t]),n=J2[r];return n||(n=new Intl.NumberFormat(e,t),J2[r]=n),n}function JF(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=X2[i];return o||(o=new Intl.RelativeTimeFormat(e,t),X2[i]=o),o}function XF(){return fh||(fh=new Intl.DateTimeFormat().resolvedOptions().locale,fh)}function KF(e){let t=QT[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,QT[e]=t}return t}function QF(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(r===-1)return[e];{let n,i;try{n=Y2(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=Y2(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function eU(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function tU(e){let t=[];for(let r=1;r<=12;r++){let n=Se.utc(2009,r,1);t.push(e(n))}return t}function rU(e){let t=[];for(let r=1;r<=7;r++){let n=Se.utc(2016,11,13+r);t.push(e(n))}return t}function I0(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function nU(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}var KT,Z2,J2,X2,fh,QT,K2,Q2,e_,iU,vt,mh=V(()=>{Zn();k0();uc();dc();lc();KT={};Z2={};J2={};X2={};fh=null;QT={};K2=class{constructor(t,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:o,...s}=n;if(!r||Object.keys(s).length>0){let c={useGrouping:!1,...n};n.padTo>0&&(c.minimumIntegerDigits=n.padTo),this.inf=YF(t,c)}}format(t){if(this.inf){let r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{let r=this.floor?Math.floor(t):Hf(t,3);return sr(r,this.padTo)}}},Q2=class{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),c=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&er.create(c).valid?(i=c,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=Y2(r,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},e_=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&A0()&&(this.rtf=JF(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):e6(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},iU={firstDay:1,minimalDays:4,weekend:[6,7]},vt=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,i,o=!1){let s=t||bt.defaultLocale,c=s||(o?"en-US":XF()),a=r||bt.defaultNumberingSystem,d=n||bt.defaultOutputCalendar,h=ph(i)||bt.defaultWeekSettings;return new e(c,a,d,h,s)}static resetCache(){fh=null,Z2={},J2={},X2={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return e.create(t,r,n,i)}constructor(t,r,n,i,o){let[s,c,a]=QF(t);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=eU(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=nU(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,ph(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,r=!1){return I0(this,t,t_,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=tU(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return I0(this,t,r_,()=>{let n=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=r?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=rU(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return I0(this,void 0,()=>n_,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Se.utc(2016,11,13,9),Se.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return I0(this,t,i_,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Se.utc(-40,1,1),Se.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){let i=this.dtFormatter(t,r),o=i.formatToParts(),s=o.find(c=>c.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new K2(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new Q2(t,this.intl,r)}relFormatter(t={}){return new e_(this.intl,this.isEnglish(),t)}listFormatter(t={}){return ZF(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:L0()?KF(this.locale):iU}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}});var s_,At,qf=V(()=>{Zn();lu();s_=null,At=class e extends Tr{static get utcInstance(){return s_===null&&(s_=new e(0)),s_}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new e(uu(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${cc(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${cc(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return cc(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}});var Zf,a_=V(()=>{lu();Zf=class extends Tr{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 To(e,t){let r;if(Ge(e)||e===null)return t;if(e instanceof Tr)return e;if(t6(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?ac.instance:n==="utc"||n==="gmt"?At.utcInstance:At.parseSpecifier(n)||er.create(e)}else return Eo(e)?At.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Zf(e)}var O0=V(()=>{lu();lc();qf();a_();Zn();T0()});function n6(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(e[r].search(c_.hanidec)!==-1)t+=oU.indexOf(e[r]);else for(let i in r6){let[o,s]=r6[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function i6(){Yf={}}function qi({numberingSystem:e},t=""){let r=e||"latn";return Yf[r]||(Yf[r]={}),Yf[r][t]||(Yf[r][t]=new RegExp(`${c_[r]}${t}`)),Yf[r][t]}var c_,r6,oU,Yf,l_=V(()=>{c_={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},r6={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]},oU=c_.hanidec.replace(/[\[|\]]/g,"").split("");Yf={}});var o6,s6,a6,c6,l6,u6,d6,f6,bt,uc=V(()=>{T0();lc();mh();dc();O0();Zn();l_();o6=()=>Date.now(),s6="system",a6=null,c6=null,l6=null,u6=60,f6=null,bt=class{static get now(){return o6}static set now(t){o6=t}static set defaultZone(t){s6=t}static get defaultZone(){return To(s6,ac.instance)}static get defaultLocale(){return a6}static set defaultLocale(t){a6=t}static get defaultNumberingSystem(){return c6}static set defaultNumberingSystem(t){c6=t}static get defaultOutputCalendar(){return l6}static set defaultOutputCalendar(t){l6=t}static get defaultWeekSettings(){return f6}static set defaultWeekSettings(t){f6=ph(t)}static get twoDigitCutoffYear(){return u6}static set twoDigitCutoffYear(t){u6=t%100}static get throwOnInvalid(){return d6}static set throwOnInvalid(t){d6=t}static resetCaches(){vt.resetCache(),er.resetCache(),Se.resetCache(),i6()}}});var nn,hh=V(()=>{nn=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Zi(e,t){return new nn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function N0(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function h6(e,t,r){return r+(fu(e)?m6:p6)[t-1]}function g6(e,t){let r=fu(e)?m6:p6,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function R0(e,t){return(e-t+7)%7+1}function gh(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=h6(n,i,o),c=R0(N0(n,i,o),r),a=Math.floor((s-c+14-t)/7),d;return a<1?(d=n-1,a=du(d,t,r)):a>du(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...yh(e)}}function u_(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=R0(N0(n,1,t),r),c=fc(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=fc(d)):a>c?(d=n+1,a-=fc(n)):d=n;let{month:h,day:g}=g6(d,a);return{year:d,month:h,day:g,...yh(e)}}function D0(e){let{year:t,month:r,day:n}=e,i=h6(t,r,n);return{year:t,ordinal:i,...yh(e)}}function d_(e){let{year:t,ordinal:r}=e,{month:n,day:i}=g6(t,r);return{year:t,month:n,day:i,...yh(e)}}function f_(e,t){if(!Ge(e.localWeekday)||!Ge(e.localWeekNumber)||!Ge(e.localWeekYear)){if(!Ge(e.weekday)||!Ge(e.weekNumber)||!Ge(e.weekYear))throw new So("Cannot mix locale-based week fields with ISO-based week fields");return Ge(e.localWeekday)||(e.weekday=e.localWeekday),Ge(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Ge(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function w6(e,t=4,r=1){let n=wh(e.weekYear),i=Si(e.weekNumber,1,du(e.weekYear,t,r)),o=Si(e.weekday,1,7);return n?i?o?!1:Zi("weekday",e.weekday):Zi("week",e.weekNumber):Zi("weekYear",e.weekYear)}function y6(e){let t=wh(e.year),r=Si(e.ordinal,1,fc(e.year));return t?r?!1:Zi("ordinal",e.ordinal):Zi("year",e.year)}function p_(e){let t=wh(e.year),r=Si(e.month,1,12),n=Si(e.day,1,Jf(e.year,e.month));return t?r?n?!1:Zi("day",e.day):Zi("month",e.month):Zi("year",e.year)}function m_(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=Si(t,0,23)||t===24&&r===0&&n===0&&i===0,s=Si(r,0,59),c=Si(n,0,59),a=Si(i,0,999);return o?s?c?a?!1:Zi("millisecond",i):Zi("second",n):Zi("minute",r):Zi("hour",t)}var p6,m6,h_=V(()=>{Zn();hh();oc();p6=[0,31,59,90,120,151,181,212,243,273,304,334],m6=[0,31,60,91,121,152,182,213,244,274,305,335]});function Ge(e){return typeof e>"u"}function Eo(e){return typeof e=="number"}function wh(e){return typeof e=="number"&&e%1===0}function t6(e){return typeof e=="string"}function v6(e){return Object.prototype.toString.call(e)==="[object Date]"}function A0(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function L0(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function _6(e){return Array.isArray(e)?e:[e]}function g_(e,t,r){if(e.length!==0)return e.reduce((n,i)=>{let o=[t(i),i];return n&&r(n[0],o[0])===n[0]?n:o},null)[1]}function S6(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function pc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ph(e){if(e==null)return null;if(typeof e!="object")throw new dr("Week settings must be an object");if(!Si(e.firstDay,1,7)||!Si(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Si(t,1,7)))throw new dr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Si(e,t,r){return wh(e)&&e>=t&&e<=r}function sU(e,t){return e-t*Math.floor(e/t)}function sr(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function Zs(e){if(!(Ge(e)||e===null||e===""))return parseInt(e,10)}function mc(e){if(!(Ge(e)||e===null||e===""))return parseFloat(e)}function bh(e){if(!(Ge(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Hf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function fu(e){return e%4===0&&(e%100!==0||e%400===0)}function fc(e){return fu(e)?366:365}function Jf(e,t){let r=sU(t-1,12)+1,n=e+(t-r)/12;return r===2?fu(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function jf(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function b6(e,t,r){return-R0(N0(e,1,t),r)+t-1}function du(e,t=4,r=1){let n=b6(e,t,r),i=b6(e+1,t,r);return(fc(e)-n+i)/7}function vh(e){return e>99?e:e>bt.twoDigitCutoffYear?1900+e:2e3+e}function E0(e,t,r,n=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:t,...o},c=new Intl.DateTimeFormat(r,s).formatToParts(i).find(a=>a.type.toLowerCase()==="timezonename");return c?c.value:null}function uu(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function w_(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new dr(`Invalid unit value ${e}`);return t}function Xf(e,t){let r={};for(let n in e)if(pc(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=w_(i)}return r}function cc(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${sr(r,2)}:${sr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${sr(r,2)}${sr(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function yh(e){return S6(e,["hour","minute","second","millisecond"])}var Zn=V(()=>{oc();uc();h_()});function t_(e){switch(e){case"narrow":return[...cU];case"short":return[...y_];case"long":return[...aU];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}}function r_(e){switch(e){case"narrow":return[...lU];case"short":return[...v_];case"long":return[...b_];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function i_(e){switch(e){case"narrow":return[...fU];case"short":return[...dU];case"long":return[...uU];default:return null}}function x6(e){return n_[e.hour<12?0:1]}function C6(e,t){return r_(t)[e.weekday-1]}function T6(e,t){return t_(t)[e.month-1]}function E6(e,t){return i_(t)[e.year<0?0:1]}function e6(e,t,r="always",n=!1){let i={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."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){let g=e==="days";switch(t){case 1:return g?"tomorrow":`next ${i[e][0]}`;case-1:return g?"yesterday":`last ${i[e][0]}`;case 0:return g?"today":`this ${i[e][0]}`;default:}}let s=Object.is(t,-0)||t<0,c=Math.abs(t),a=c===1,d=i[e],h=n?a?d[1]:d[2]||d[1]:a?i[e][0]:e;return s?`${c} ${h} ago`:`in ${c} ${h}`}var aU,y_,cU,b_,v_,lU,n_,uU,dU,fU,k0=V(()=>{dh();Zn();aU=["January","February","March","April","May","June","July","August","September","October","November","December"],y_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],cU=["J","F","M","A","M","J","J","A","S","O","N","D"];b_=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],v_=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],lU=["M","T","W","T","F","S","S"];n_=["AM","PM"],uU=["Before Christ","Anno Domini"],dU=["BC","AD"],fU=["B","A"]});function M6(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var pU,on,_h=V(()=>{k0();dh();Zn();pU={D:sc,DD:Hm,DDD:qm,DDDD:Zm,t:Ym,tt:Jm,ttt:Xm,tttt:Km,T:Qm,TT:eh,TTT:th,TTTT:rh,f:nh,ff:oh,fff:ah,ffff:lh,F:ih,FF:sh,FFF:ch,FFFF:uh},on=class e{static create(t,r={}){return new e(t,r)}static parseFormat(t){let r=null,n="",i=!1,o=[];for(let s=0;s<t.length;s++){let c=t.charAt(s);c==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||c===r?n+=c:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=c,r=c)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(t){return pU[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...r}).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,{...this.opts,...r})}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return sr(t,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(S,M)=>this.loc.extract(t,S,M),s=S=>t.isOffsetFixed&&t.offset===0&&S.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,S.format):"",c=()=>n?x6(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(S,M)=>n?T6(t,S):o(M?{month:S}:{month:S,day:"numeric"},"month"),d=(S,M)=>n?C6(t,S):o(M?{weekday:S}:{weekday:S,month:"long",day:"numeric"},"weekday"),h=S=>{let M=e.macroTokenToFormatOpts(S);return M?this.formatWithSystemDefault(t,M):S},g=S=>n?E6(t,S):o({era:S},"era"),v=S=>{switch(S){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 s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({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 c();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({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 i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({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 i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("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"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);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 h(S)}};return M6(e.parseFormat(r),v)}formatDurationFromString(t,r){let n=a=>{switch(a[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}},i=a=>d=>{let h=n(d);return h?this.num(a.get(h),d.length):d},o=e.parseFormat(r),s=o.reduce((a,{literal:d,val:h})=>d?a:a.concat(h),[]),c=t.shiftTo(...s.map(n).filter(a=>a));return M6(o,i(c))}}});function Qf(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function ep(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,c,a]=o(t,i);return[{...r,...s},c||n,a]},[{},null,1]).slice(0,2)}function tp(e,...t){if(e==null)return[null,null];for(let[r,n]of t){let i=r.exec(e);if(i)return n(i)}return[null,null]}function A6(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=Zs(t[r+i]);return[n,null,r+i]}}function Kf(e,t,r){let n=e[t];return Ge(n)?r:Zs(n)}function SU(e,t){return[{year:Kf(e,t),month:Kf(e,t+1,1),day:Kf(e,t+2,1)},null,t+3]}function rp(e,t){return[{hours:Kf(e,t,0),minutes:Kf(e,t+1,0),seconds:Kf(e,t+2,0),milliseconds:bh(e[t+3])},null,t+4]}function Sh(e,t){let r=!e[t]&&!e[t+1],n=uu(e[t+1],e[t+2]),i=r?null:At.instance(n);return[{},i,t+3]}function xh(e,t){let r=e[t]?er.create(e[t]):null;return[{},r,t+1]}function TU(e){let[t,r,n,i,o,s,c,a,d]=e,h=t[0]==="-",g=a&&a[0]==="-",v=(S,M=!1)=>S!==void 0&&(M||S&&h)?-S:S;return[{years:v(mc(r)),months:v(mc(n)),weeks:v(mc(i)),days:v(mc(o)),hours:v(mc(s)),minutes:v(mc(c)),seconds:v(mc(a),a==="-0"),milliseconds:v(bh(d),g)}]}function x_(e,t,r,n,i,o,s){let c={year:t.length===2?vh(Zs(t)):Zs(t),month:y_.indexOf(r)+1,day:Zs(n),hour:Zs(i),minute:Zs(o)};return s&&(c.second=Zs(s)),e&&(c.weekday=e.length>3?b_.indexOf(e)+1:v_.indexOf(e)+1),c}function PU(e){let[,t,r,n,i,o,s,c,a,d,h,g]=e,v=x_(t,i,n,r,o,s,c),S;return a?S=EU[a]:d?S=0:S=uu(h,g),[v,new At(S)]}function IU(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function P6(e){let[,t,r,n,i,o,s,c]=e;return[x_(t,i,n,r,o,s,c),At.utcInstance]}function OU(e){let[,t,r,n,i,o,s,c]=e;return[x_(t,c,r,n,i,o,s),At.utcInstance]}function R6(e){return tp(e,[NU,N6],[RU,FU],[DU,UU],[$U,VU])}function D6(e){return tp(IU(e),[MU,PU])}function $6(e){return tp(e,[AU,P6],[LU,P6],[kU,OU])}function F6(e){return tp(e,[CU,TU])}function U6(e){return tp(e,[xU,zU])}function V6(e){return tp(e,[WU,N6],[BU,GU])}var I6,L6,mU,__,k6,S_,hU,gU,wU,yU,bU,vU,O6,_U,xU,CU,EU,MU,AU,LU,kU,NU,RU,DU,$U,N6,FU,UU,VU,zU,WU,BU,GU,C_=V(()=>{Zn();k0();qf();lc();I6=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;L6=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,mU=`(?:${L6.source}?(?:\\[(${I6.source})\\])?)?`,__=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,k6=RegExp(`${__.source}${mU}`),S_=RegExp(`(?:T${k6.source})?`),hU=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,gU=/(\d{4})-?W(\d\d)(?:-?(\d))?/,wU=/(\d{4})-?(\d{3})/,yU=A6("weekYear","weekNumber","weekDay"),bU=A6("year","ordinal"),vU=/(\d{4})-(\d\d)-(\d\d)/,O6=RegExp(`${__.source} ?(?:${L6.source}|(${I6.source}))?`),_U=RegExp(`(?: ${O6.source})?`);xU=RegExp(`^T?${__.source}$`),CU=/^-?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)?)?)$/;EU={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};MU=/^(?:(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)))$/;AU=/^(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$/,LU=/^(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$/,kU=/^(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})$/;NU=Qf(hU,S_),RU=Qf(gU,S_),DU=Qf(wU,S_),$U=Qf(k6),N6=ep(SU,rp,Sh,xh),FU=ep(yU,rp,Sh,xh),UU=ep(bU,rp,Sh,xh),VU=ep(rp,Sh,xh);zU=ep(rp);WU=Qf(vU,_U),BU=Qf(O6),GU=ep(rp,Sh,xh)});function hc(e,t,r=!1){let n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new ar(n)}function G6(e,t){let r=t.milliseconds??0;for(let n of qU.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function W6(e,t){let r=G6(e,t)<0?-1:1;pu.reduceRight((n,i)=>{if(Ge(t[i]))return n;if(n){let o=t[n]*r,s=e[i][n],c=Math.floor(o/s);t[i]+=c*r,t[n]-=c*s*r}return i},null),pu.reduce((n,i)=>{if(Ge(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function ZU(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var z6,B6,jU,Yi,np,HU,pu,qU,ar,Ch=V(()=>{oc();_h();hh();mh();C_();Zn();uc();dc();z6="Invalid Duration",B6={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},jU={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...B6},Yi=146097/400,np=146097/4800,HU={years:{quarters:4,months:12,weeks:Yi/7,days:Yi,hours:Yi*24,minutes:Yi*24*60,seconds:Yi*24*60*60,milliseconds:Yi*24*60*60*1e3},quarters:{months:3,weeks:Yi/28,days:Yi/4,hours:Yi*24/4,minutes:Yi*24*60/4,seconds:Yi*24*60*60/4,milliseconds:Yi*24*60*60*1e3/4},months:{weeks:np/7,days:np,hours:np*24,minutes:np*24*60,seconds:np*24*60*60,milliseconds:np*24*60*60*1e3},...B6},pu=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],qU=pu.slice(0).reverse();ar=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?HU:jU;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||vt.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return e.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new dr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Xf(t,e.normalizeUnit),loc:vt.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(Eo(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new dr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=F6(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){let[n]=U6(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new dr("need to specify a reason the Duration is invalid");let n=t instanceof nn?t:new nn(t,r);if(bt.throwOnInvalid)throw new x0(n);return new e({invalid:n})}static normalizeUnit(t){let r={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()];if(!r)throw new Gf(t);return r}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,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?on.create(this.loc,n).formatDurationFromString(this,t):z6}toHuman(t={}){if(!this.isValid)return z6;let r=pu.map(n=>{let i=this.values[n];return Ge(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Hf(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Se.fromMillis(r,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?G6(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t),n={};for(let i of pu)(pc(r.values,i)||pc(this.values,i))&&(n[i]=r.get(i)+this.get(i));return hc(this,{values:n},!0)}minus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=w_(t(this.values[n],n));return hc(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...Xf(t,e.normalizeUnit)};return hc(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){let s={loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:i,conversionAccuracy:n};return hc(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return W6(this.matrix,t),hc(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=ZU(this.normalize().shiftToAll().toObject());return hc(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>e.normalizeUnit(s));let r={},n={},i=this.toObject(),o;for(let s of pu)if(t.indexOf(s)>=0){o=s;let c=0;for(let d in n)c+=this.matrix[d][s]*n[d],n[d]=0;Eo(i[s])&&(c+=i[s]);let a=Math.trunc(c);r[s]=a,n[s]=(c*1e3-a*1e3)/1e3}else Eo(i[s])&&(n[s]=i[s]);for(let s in n)n[s]!==0&&(r[o]+=s===o?n[s]:n[s]/this.matrix[o][s]);return W6(this.matrix,r),hc(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return hc(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 this.invalid===null}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||!this.loc.equals(t.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of pu)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function YU(e,t){return!e||!e.isValid?Ys.invalid("missing or invalid start"):!t||!t.isValid?Ys.invalid("missing or invalid end"):t<e?Ys.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var ip,Ys,T_=V(()=>{dc();Ch();uc();oc();hh();_h();dh();ip="Invalid Interval";Ys=class e{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new dr("need to specify a reason the Interval is invalid");let n=t instanceof nn?t:new nn(t,r);if(bt.throwOnInvalid)throw new S0(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=op(t),i=op(r),o=YU(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=ar.fromDurationLike(r),i=op(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=ar.fromDurationLike(r),i=op(t);return e.fromDateTimes(i.minus(n),i)}static fromISO(t,r){let[n,i]=(t||"").split("/",2);if(n&&i){let o,s;try{o=Se.fromISO(n,r),s=o.isValid}catch{s=!1}let c,a;try{c=Se.fromISO(i,r),a=c.isValid}catch{a=!1}if(s&&a)return e.fromDateTimes(o,c);if(s){let d=ar.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=ar.fromISO(n,r);if(d.isValid)return e.before(c,d)}}return e.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 this.invalidReason===null}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",r){if(!this.isValid)return NaN;let n=this.start.startOf(t,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(t,r),Math.floor(i.diff(n,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?e.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];let r=t.map(op).filter(s=>this.contains(s)).sort((s,c)=>s.toMillis()-c.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,c=+s>+this.e?this.e:s;n.push(e.fromDateTimes(i,c)),i=c,o+=1}return n}splitBy(t){let r=ar.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,s=[];for(;n<this.e;){let c=this.start.plus(r.mapUnits(a=>a*i));o=+c>+this.e?this.e:c,s.push(e.fromDateTimes(n,o)),n=o,i+=1}return s}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:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:e.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;let r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return e.fromDateTimes(r,n)}static merge(t){let[r,n]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[i,o.union(s)]:[i.concat([o]),s]:[i,s],[[],null]);return n&&r.push(n),r}static xor(t){let r=null,n=0,i=[],o=t.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]),s=Array.prototype.concat(...o),c=s.sort((a,d)=>a.time-d.time);for(let a of c)n+=a.type==="s"?1:-1,n===1?r=a.time:(r&&+r!=+a.time&&i.push(e.fromDateTimes(r,a.time)),r=null);return e.merge(i)}difference(...t){return e.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:ip}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=sc,r={}){return this.isValid?on.create(this.s.loc.clone(r),t).formatInterval(this):ip}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:ip}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ip}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:ip}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:ip}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):ar.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var Js,E_=V(()=>{dc();uc();mh();lc();O0();Zn();Js=class{static hasDST(t=bt.defaultZone){let r=Se.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return er.isValidZone(t)}static normalizeZone(t){return To(t,bt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||vt.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||vt.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||vt.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||vt.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||vt.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||vt.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||vt.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return vt.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return vt.create(r,null,"gregory").eras(t)}static features(){return{relative:A0(),localeWeek:L0()}}}});function j6(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(ar.fromMillis(n).as("days"))}function JU(e,t,r){let n=[["years",(a,d)=>d.year-a.year],["quarters",(a,d)=>d.quarter-a.quarter+(d.year-a.year)*4],["months",(a,d)=>d.month-a.month+(d.year-a.year)*12],["weeks",(a,d)=>{let h=j6(a,d);return(h-h%7)/7}],["days",j6]],i={},o=e,s,c;for(let[a,d]of n)r.indexOf(a)>=0&&(s=a,i[a]=d(e,t),c=o.plus(i),c>t?(i[a]--,e=o.plus(i),e>t&&(c=e,i[a]--,e=o.plus(i))):e=c);return[e,i,c,s]}function H6(e,t,r,n){let[i,o,s,c]=JU(e,t,r),a=t-i,d=r.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);d.length===0&&(s<t&&(s=i.plus({[c]:1})),s!==i&&(o[c]=(o[c]||0)+a/(s-i)));let h=ar.fromObject(o,n);return d.length>0?ar.fromMillis(a,n).shiftTo(...d).plus(h):h}var q6=V(()=>{Ch()});function xt(e,t=r=>r){return{regex:e,deser:([r])=>t(n6(r))}}function QU(e){return e.replace(/\./g,"\\.?").replace(X6,J6)}function Z6(e){return e.replace(/\./g,"").replace(X6," ").toLowerCase()}function Mo(e,t){return e===null?null:{regex:RegExp(e.map(QU).join("|")),deser:([r])=>e.findIndex(n=>Z6(r)===Z6(n))+t}}function Y6(e,t){return{regex:e,deser:([,r,n])=>uu(r,n),groups:t}}function $0(e){return{regex:e,deser:([t])=>t}}function eV(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function tV(e,t){let r=qi(t),n=qi(t,"{2}"),i=qi(t,"{3}"),o=qi(t,"{4}"),s=qi(t,"{6}"),c=qi(t,"{1,2}"),a=qi(t,"{1,3}"),d=qi(t,"{1,6}"),h=qi(t,"{1,9}"),g=qi(t,"{2,4}"),v=qi(t,"{4,6}"),S=R=>({regex:RegExp(eV(R.val)),deser:([B])=>B,literal:!0}),I=(R=>{if(e.literal)return S(R);switch(R.val){case"G":return Mo(t.eras("short"),0);case"GG":return Mo(t.eras("long"),0);case"y":return xt(d);case"yy":return xt(g,vh);case"yyyy":return xt(o);case"yyyyy":return xt(v);case"yyyyyy":return xt(s);case"M":return xt(c);case"MM":return xt(n);case"MMM":return Mo(t.months("short",!0),1);case"MMMM":return Mo(t.months("long",!0),1);case"L":return xt(c);case"LL":return xt(n);case"LLL":return Mo(t.months("short",!1),1);case"LLLL":return Mo(t.months("long",!1),1);case"d":return xt(c);case"dd":return xt(n);case"o":return xt(a);case"ooo":return xt(i);case"HH":return xt(n);case"H":return xt(c);case"hh":return xt(n);case"h":return xt(c);case"mm":return xt(n);case"m":return xt(c);case"q":return xt(c);case"qq":return xt(n);case"s":return xt(c);case"ss":return xt(n);case"S":return xt(a);case"SSS":return xt(i);case"u":return $0(h);case"uu":return $0(c);case"uuu":return xt(r);case"a":return Mo(t.meridiems(),0);case"kkkk":return xt(o);case"kk":return xt(g,vh);case"W":return xt(c);case"WW":return xt(n);case"E":case"c":return xt(r);case"EEE":return Mo(t.weekdays("short",!1),1);case"EEEE":return Mo(t.weekdays("long",!1),1);case"ccc":return Mo(t.weekdays("short",!0),1);case"cccc":return Mo(t.weekdays("long",!0),1);case"Z":case"ZZ":return Y6(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return Y6(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return $0(/[a-z_+-/]{1,256}?/i);case" ":return $0(/[^\S\n\r]/);default:return S(R)}})(e)||{invalidReason:XU};return I.token=e,I}function nV(e,t,r){let{type:n,value:i}=e;if(n==="literal"){let a=/^\s+$/.test(i);return{literal:!a,val:a?" ":i}}let o=t[n],s=n;n==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let c=rV[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function iV(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function oV(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(pc(r,s)){let c=r[s],a=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(n.slice(o,o+a))),o+=a}return[n,i]}else return[n,{}]}function sV(e){let t=o=>{switch(o){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}},r=null,n;return Ge(e.z)||(r=er.create(e.z)),Ge(e.Z)||(r||(r=new At(e.Z)),n=e.Z),Ge(e.q)||(e.M=(e.q-1)*3+1),Ge(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Ge(e.u)||(e.S=bh(e.u)),[Object.keys(e).reduce((o,s)=>{let c=t(s);return c&&(o[c]=e[s]),o},{}),r,n]}function aV(){return M_||(M_=Se.fromMillis(1555555555555)),M_}function cV(e,t){if(e.literal)return e;let r=on.macroTokenToFormatOpts(e.val),n=A_(r,t);return n==null||n.includes(void 0)?e:n}function P_(e,t){return Array.prototype.concat(...e.map(r=>cV(r,t)))}function I_(e,t,r){return new Th(e,r).explainFromTokens(t)}function K6(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=I_(e,t,r);return[n,i,o,s]}function A_(e,t){if(!e)return null;let n=on.create(t,e).dtFormatter(aV()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>nV(s,e,o))}var XU,KU,J6,X6,rV,M_,Th,Q6=V(()=>{Zn();_h();qf();lc();dc();l_();oc();XU="missing Intl.DateTimeFormat.formatToParts support";KU="\xA0",J6=`[ ${KU}]`,X6=new RegExp(J6,"g");rV={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"}};M_=null;Th=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=P_(on.parseFormat(r),t),this.units=this.tokens.map(n=>tV(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=iV(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=oV(t,this.regex,this.handlers),[i,o,s]=n?sV(n):[null,null,void 0];if(pc(n,"a")&&pc(n,"H"))throw new So("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:o,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}});function Eh(e){return new nn("unsupported zone",`the zone "${e.name}" is not supported`)}function k_(e){return e.weekData===null&&(e.weekData=gh(e.c)),e.weekData}function O_(e){return e.localWeekData===null&&(e.localWeekData=gh(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function mu(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Se({...r,...t,old:r})}function aE(e,t,r){let n=e-t*60*1e3,i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*60*1e3;let o=r.offset(n);return i===o?[n,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function F0(e,t){e+=t*60*1e3;let r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function V0(e,t,r){return aE(jf(e),t,r)}function tE(e,t){let r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:i,day:Math.min(e.c.day,Jf(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=ar.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),c=jf(o),[a,d]=aE(c,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function sp(e,t,r,n,i,o){let{setZone:s,zone:c}=r;if(e&&Object.keys(e).length!==0||t){let a=t||c,d=Se.fromObject(e,{...r,zone:a,specificOffset:o});return s?d:d.setZone(c)}else return Se.invalid(new nn("unparsable",`the input "${i}" can't be parsed as ${n}`))}function U0(e,t,r=!0){return e.isValid?on.create(vt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function N_(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=sr(e.c.year,r?6:4),t?(n+="-",n+=sr(e.c.month),n+="-",n+=sr(e.c.day)):(n+=sr(e.c.month),n+=sr(e.c.day)),n}function rE(e,t,r,n,i,o){let s=sr(e.c.hour);return t?(s+=":",s+=sr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=sr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=sr(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=sr(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=sr(Math.trunc(-e.o/60)),s+=":",s+=sr(Math.trunc(-e.o%60))):(s+="+",s+=sr(Math.trunc(e.o/60)),s+=":",s+=sr(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function pV(e){let t={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"}[e.toLowerCase()];if(!t)throw new Gf(e);return t}function nE(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return pV(e)}}function mV(e){return W0[e]||(z0===void 0&&(z0=bt.now()),W0[e]=e.offset(z0)),W0[e]}function iE(e,t){let r=To(t.zone,bt.defaultZone);if(!r.isValid)return Se.invalid(Eh(r));let n=vt.fromObject(t),i,o;if(Ge(e.year))i=bt.now();else{for(let a of lE)Ge(e[a])&&(e[a]=cE[a]);let s=p_(e)||m_(e);if(s)return Se.invalid(s);let c=mV(r);[i,o]=V0(e,c,r)}return new Se({ts:i,zone:r,loc:n,o})}function oE(e,t,r){let n=Ge(r.round)?!0:r.round,i=(s,c)=>(s=Hf(s,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(s,c)),o=s=>r.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(r.unit)return i(o(r.unit),r.unit);for(let s of r.units){let c=o(s);if(Math.abs(c)>=1)return i(c,s)}return i(e>t?-0:0,r.units[r.units.length-1])}function sE(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}function op(e){if(Se.isDateTime(e))return e;if(e&&e.valueOf&&Eo(e.valueOf()))return Se.fromJSDate(e);if(e&&typeof e=="object")return Se.fromObject(e);throw new dr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var L_,eE,cE,lV,uV,lE,dV,fV,z0,W0,Se,dc=V(()=>{Ch();T_();uc();E_();_h();qf();mh();Zn();O0();q6();C_();Q6();h_();dh();oc();hh();L_="Invalid DateTime",eE=864e13;cE={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},lV={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},uV={ordinal:1,hour:0,minute:0,second:0,millisecond:0},lE=["year","month","day","hour","minute","second","millisecond"],dV=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],fV=["year","ordinal","hour","minute","second","millisecond"];W0={},Se=class e{constructor(t){let r=t.zone||bt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new nn("invalid input"):null)||(r.isValid?null:Eh(r));this.ts=Ge(t.ts)?bt.now():t.ts;let i=null,o=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[i,o]=[t.old.c,t.old.o];else{let c=Eo(t.o)&&!t.old?t.o:r.offset(this.ts);i=F0(this.ts,c),n=Number.isNaN(i.year)?new nn("invalid input"):null,i=n?null:i,o=n?null:c}this._zone=r,this.loc=t.loc||vt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,r]=sE(arguments),[n,i,o,s,c,a,d]=r;return iE({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static utc(){let[t,r]=sE(arguments),[n,i,o,s,c,a,d]=r;return t.zone=At.utcInstance,iE({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=v6(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=To(r.zone,bt.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:vt.fromObject(r)}):e.invalid(Eh(i))}static fromMillis(t,r={}){if(Eo(t))return t<-eE||t>eE?e.invalid("Timestamp out of range"):new e({ts:t,zone:To(r.zone,bt.defaultZone),loc:vt.fromObject(r)});throw new dr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(Eo(t))return new e({ts:t*1e3,zone:To(r.zone,bt.defaultZone),loc:vt.fromObject(r)});throw new dr("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=To(r.zone,bt.defaultZone);if(!n.isValid)return e.invalid(Eh(n));let i=vt.fromObject(r),o=Xf(t,nE),{minDaysInFirstWeek:s,startOfWeek:c}=f_(o,i),a=bt.now(),d=Ge(r.specificOffset)?n.offset(a):r.specificOffset,h=!Ge(o.ordinal),g=!Ge(o.year),v=!Ge(o.month)||!Ge(o.day),S=g||v,M=o.weekYear||o.weekNumber;if((S||h)&&M)throw new So("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&h)throw new So("Can't mix ordinal dates with month/day");let I=M||o.weekday&&!S,R,B,F=F0(a,d);I?(R=dV,B=lV,F=gh(F,s,c)):h?(R=fV,B=uV,F=D0(F)):(R=lE,B=cE);let G=!1;for(let xe of R){let ke=o[xe];Ge(ke)?G?o[xe]=B[xe]:o[xe]=F[xe]:G=!0}let J=I?w6(o,s,c):h?y6(o):p_(o),re=J||m_(o);if(re)return e.invalid(re);let de=I?u_(o,s,c):h?d_(o):o,[W,me]=V0(de,d,n),Le=new e({ts:W,zone:n,o:me,loc:i});return o.weekday&&S&&t.weekday!==Le.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Le.toISO()}`):Le.isValid?Le:e.invalid(Le.invalid)}static fromISO(t,r={}){let[n,i]=R6(t);return sp(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=D6(t);return sp(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=$6(t);return sp(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(Ge(t)||Ge(r))throw new dr("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=vt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,a,d,h]=K6(s,t,r);return h?e.invalid(h):sp(c,a,n,`format ${r}`,t,d)}static fromString(t,r,n={}){return e.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=V6(t);return sp(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new dr("need to specify a reason the DateTime is invalid");let n=t instanceof nn?t:new nn(t,r);if(bt.throwOnInvalid)throw new _0(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=A_(t,vt.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return P_(on.parseFormat(t),vt.fromObject(r)).map(i=>i.val).join("")}static resetCache(){z0=void 0,W0={}}get(t){return this[t]}get isValid(){return this.invalid===null}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?k_(this).weekYear:NaN}get weekNumber(){return this.isValid?k_(this).weekNumber:NaN}get weekday(){return this.isValid?k_(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?O_(this).weekday:NaN}get localWeekNumber(){return this.isValid?O_(this).weekNumber:NaN}get localWeekYear(){return this.isValid?O_(this).weekYear:NaN}get ordinal(){return this.isValid?D0(this.c).ordinal:NaN}get monthShort(){return this.isValid?Js.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Js.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Js.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Js.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?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,r=6e4,n=jf(this.c),i=this.zone.offset(n-t),o=this.zone.offset(n+t),s=this.zone.offset(n-i*r),c=this.zone.offset(n-o*r);if(s===c)return[this];let a=n-s*r,d=n-c*r,h=F0(a,s),g=F0(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[mu(this,{ts:a}),mu(this,{ts:d})]:[this]}get isInLeapYear(){return fu(this.year)}get daysInMonth(){return Jf(this.year,this.month)}get daysInYear(){return this.isValid?fc(this.year):NaN}get weeksInWeekYear(){return this.isValid?du(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?du(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=on.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(At.instance(t),r)}toLocal(){return this.setZone(bt.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=To(t,bt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(r||n){let o=t.offset(this.ts),s=this.toObject();[i]=V0(s,o,t)}return mu(this,{ts:i,zone:t})}else return e.invalid(Eh(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return mu(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=Xf(t,nE),{minDaysInFirstWeek:n,startOfWeek:i}=f_(r,this.loc),o=!Ge(r.weekYear)||!Ge(r.weekNumber)||!Ge(r.weekday),s=!Ge(r.ordinal),c=!Ge(r.year),a=!Ge(r.month)||!Ge(r.day),d=c||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new So("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new So("Can't mix ordinal dates with month/day");let g;o?g=u_({...gh(this.c,n,i),...r},n,i):Ge(r.ordinal)?(g={...this.toObject(),...r},Ge(r.day)&&(g.day=Math.min(Jf(g.year,g.month),g.day))):g=d_({...D0(this.c),...r});let[v,S]=V0(g,this.o,this.zone);return mu(this,{ts:v,o:S})}plus(t){if(!this.isValid)return this;let r=ar.fromDurationLike(t);return mu(this,tE(this,r))}minus(t){if(!this.isValid)return this;let r=ar.fromDurationLike(t).negate();return mu(this,tE(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=ar.normalizeUnit(t);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(i==="weeks")if(r){let o=this.loc.getStartOfWeek(),{weekday:s}=this;s<o&&(n.weekNumber=this.weekNumber-1),n.weekday=o}else n.weekday=1;if(i==="quarters"){let o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)}endOf(t,r){return this.isValid?this.plus({[t]:1}).startOf(t,r).minus(1):this}toFormat(t,r={}){return this.isValid?on.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):L_}toLocaleString(t=sc,r={}){return this.isValid?on.create(this.loc.clone(r),t).formatDateTime(this):L_}toLocaleParts(t={}){return this.isValid?on.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;let s=t==="extended",c=N_(this,s);return c+="T",c+=rE(this,s,r,n,i,o),c}toISODate({format:t="extended"}={}){return this.isValid?N_(this,t==="extended"):null}toISOWeekDate(){return U0(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+rE(this,s==="extended",r,t,n,o):null}toRFC2822(){return U0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return U0(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?N_(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||t)&&(n&&(i+=" "),r?i+="z":t&&(i+="ZZ")),U0(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():L_}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}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{};let r={...this.c};return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return ar.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=_6(r).map(ar.normalizeUnit),s=t.valueOf()>this.valueOf(),c=s?this:t,a=s?t:this,d=H6(c,a,o,i);return s?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(e.now(),t,r)}until(t){return this.isValid?Ys.fromDateTimes(this,t):this}hasSame(t,r,n){if(!this.isValid)return!1;let i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(r,n)<=i&&i<=o.endOf(r,n)}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;let r=t.base||e.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0,i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),oE(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?oE(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new dr("min requires all arguments be DateTimes");return g_(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new dr("max requires all arguments be DateTimes");return g_(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=vt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return I_(s,t,r)}static fromStringExplain(t,r,n={}){return e.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){let{locale:n=null,numberingSystem:i=null}=r,o=vt.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Th(o,t)}static fromFormatParser(t,r,n={}){if(Ge(t)||Ge(r))throw new dr("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=vt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new dr(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:c,zone:a,specificOffset:d,invalidReason:h}=r.explainFromTokens(t);return h?e.invalid(h):sp(c,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return sc}static get DATE_MED(){return Hm}static get DATE_MED_WITH_WEEKDAY(){return j2}static get DATE_FULL(){return qm}static get DATE_HUGE(){return Zm}static get TIME_SIMPLE(){return Ym}static get TIME_WITH_SECONDS(){return Jm}static get TIME_WITH_SHORT_OFFSET(){return Xm}static get TIME_WITH_LONG_OFFSET(){return Km}static get TIME_24_SIMPLE(){return Qm}static get TIME_24_WITH_SECONDS(){return eh}static get TIME_24_WITH_SHORT_OFFSET(){return th}static get TIME_24_WITH_LONG_OFFSET(){return rh}static get DATETIME_SHORT(){return nh}static get DATETIME_SHORT_WITH_SECONDS(){return ih}static get DATETIME_MED(){return oh}static get DATETIME_MED_WITH_SECONDS(){return sh}static get DATETIME_MED_WITH_WEEKDAY(){return H2}static get DATETIME_FULL(){return ah}static get DATETIME_FULL_WITH_SECONDS(){return ch}static get DATETIME_HUGE(){return lh}static get DATETIME_HUGE_WITH_SECONDS(){return uh}}});var In=V(()=>{dc();Ch();T_();E_();lu();qf();lc();a_();T0();uc()});function hu(e){return e instanceof Tr?e===zr.instance:e?.toString().toLowerCase()==="unknown"}function B0(e){return hu(e)?zr.instance:e}var zr,Mh=V(()=>{In();zr=class{};zr.instance=new er("Etc/UTC")});function ap(e,t,r){return e<t?e-t:e>r?e-r:0}function cp(e,t,r){return e<t?t:e>r?r:e}function Po(e,t=!0){if(e instanceof Tr)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return zr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=At.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=er.create(e);if(!r.isValid){if(t)throw new R_(G0.TimeZoneNotRecognized);return null}return r}var G0,hV,R_,Ph,uE=V(()=>{ic();Mh();In();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(G0||(G0={}));hV={[G0.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},R_=class e extends Error{constructor(t,r){super(fs(hV[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};Ph=class e{constructor(t){this._date=t,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(t=0,r=1,n=1,i=0,o=0,s=0,c=0,a){if(isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(c))return null;let d=Se.local(t,r).daysInMonth,h=Se.fromObject({day:cp(n,1,d),year:t,month:cp(r,1,12),hour:cp(i,0,23),minute:cp(o,0,59),second:cp(s,0,59),millisecond:cp(c,0,999)},{zone:Po(a)});return h=h.plus({months:ap(r,1,12),days:ap(n,1,d),hours:ap(i,0,23),minutes:ap(o,0,59),seconds:ap(s,0,59),milliseconds:ap(c,0,999)}),new e(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=Po(r);return t.isUnknownTimeZone||n===zr.instance?e.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t._date.setZone(n))}static dateJSToArcadeDate(t){return new e(Se.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Po(r);return new e(Se.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(Se.fromMillis(t,{zone:zr.instance}))}static unknownDateJSToArcadeDate(t){return new e(Se.fromMillis(t.getTime(),{zone:zr.instance}))}static epochToArcadeDate(t,r="system"){let n=Po(r);return new e(Se.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=Po(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=Po(r);return t.zone===zr.instance||n===zr.instance?e.fromParts(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t.setZone(n))}static nowToArcadeDate(t){let r=Po(t);return new e(Se.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(Se.utc())}get isSystem(){return this.timeZone==="system"||this.timeZone===e.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===zr.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let t=this._date.weekday;return t>6&&(t=0),t}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if(this._date.zone.type==="system")return"system";let t=this.zone;return t.type==="fixed"?t.fixed===0?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new e(this._date.plus(t))}diff(t,r="milliseconds"){return this._date.diff(t._date,r)[r]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,r){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:r&&!this.isUnknownTimeZone})}toFormat(t,r){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,r)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new e(this._date.toUTC())}toLocal(){return new e(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;let r=Se.fromISO(t,{setZone:!0});return new e(r)}}});function Ct(e){return e?{remove(){e&&(e(),e=void 0)}}:gV}function wV(e){e.forEach(t=>t?.remove())}function gu(e){return Ct(()=>wV(e))}var gV,oi=V(()=>{gV={remove:()=>{}}});function fE(){let e=D_?.getAttribute("lang"),t=globalThis.navigator?.language;return bV??e??t??"en"}function Ji(){return Ih===void 0&&(Ih=fE()),Ih}function $_(e){return j0.push(e),Ct(()=>j0.splice(j0.indexOf(e),1))}function lp(e){return H0.push(e),Ct(()=>H0.splice(H0.indexOf(e),1))}function dE(){let e=yV??fE();Ih!==e&&([...H0].forEach(t=>t(e)),Ih=e,[...j0].forEach(t=>t(e)))}var yV,Ih,bV,D_,j0,H0,gc=V(()=>{oi();bV=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,D_=globalThis.document?.documentElement;j0=[];H0=[];globalThis.addEventListener?.("languagechange",dE),D_&&new MutationObserver(()=>{dE()}).observe(D_,{attributeFilter:["lang"]})});function pE(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="",r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(let n of e.match(r)||[])switch(n){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=n;break;default:n.length>=2&&n.slice(0,1)==="["&&n.slice(-1)==="]"?t+=`'${n.slice(1,-1)}'`:t+=`'${n}'`}return t}var sn,Ah=V(()=>{uE();gc();In();sn=class e{constructor(t,r,n){this._year=t,this._month=r,this._day=n,this.declaredRootClass="esri.core.sql.dateonly"}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(t){return t instanceof e&&t.day===this.day&&t.month===this.month&&t.year===this.year}clone(){return new e(this._year,this._month,this._day)}toDateTime(t){return Se.fromObject({day:this.day,month:this.month,year:this.year},{zone:Po(t)})}toDateTimeLuxon(t){return Se.fromObject({day:this.day,month:this.month,year:this.year},{zone:Po(t)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(t=null,r=!0){if(t===null||t==="")return this.toString();if(r&&(t=pE(t)),!t)return"";let n=this.toDateTime("unknown");return Ph.dateTimeToArcadeDate(n).toFormat(t,{locale:Ji(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return Ph.dateTimeToArcadeDate(t)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(t,r){return e.fromDateTime(this.toUTCDateTime().plus({[t]:r}))}toUTCDateTime(){return Se.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){let r=Se.fromMillis(t,{zone:At.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=Se.fromSeconds(t,{zone:At.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromReader(t){if(!t)return null;let r=t.split("-");return r.length!==3?null:new e(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10))}static fromParts(t,r,n){let i=new e(t,r,n);return i.isValid===!1?null:i}static fromDateJS(t){return e.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return e.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,r=null){if(t===""||t===null)return null;let n=[];if(r)(r=pE(r))&&n.push(r);else if(r===null||r===""){let i=Se.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Se.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=Se.fromJSDate(new Date).setZone(Po(t));return new e(r.year,r.month,r.day)}}});var te,vV,ae,wc=V(()=>{ic();(function(e){e.InvalidFunctionParameters="InvalidFunctionParameters",e.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",e.UnsupportedSqlFunction="UnsupportedSqlFunction",e.UnsupportedOperator="UnsupportedOperator",e.UnsupportedSyntax="UnsupportedSyntax",e.UnsupportedIsRhs="UnsupportedIsRhs",e.UnsupportedIsLhs="UnsupportedIsLhs",e.InvalidDataType="InvalidDataType",e.CannotCastValue="CannotCastValue",e.FunctionNotRecognized="FunctionNotRecognized",e.InvalidTime="InvalidTime",e.InvalidParameterCount="InvalidParameterCount",e.InvalidTimeStamp="InvalidTimeStamp",e.InvalidDate="InvalidDate",e.InvalidOperator="InvalidOperator",e.IllegalInterval="IllegalInterval",e.YearMonthIntervals="YearMonthIntervals",e.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",e.MissingStatisticParameters="MissingStatisticParameters"})(te||(te={}));vV={[te.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[te.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[te.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[te.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[te.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[te.UnsupportedOperator]:"Unsupported operator - {operator}",[te.UnsupportedSyntax]:"Unsupported syntax - {node}",[te.UnsupportedSqlFunction]:"Sql function not found = {function}",[te.InvalidDataType]:"Invalid sql data type",[te.InvalidDate]:"Invalid date encountered",[te.InvalidOperator]:"Invalid operator encountered",[te.InvalidTime]:"Invalid time encountered",[te.IllegalInterval]:"Illegal interval",[te.FunctionNotRecognized]:"Function not recognized",[te.InvalidTimeStamp]:"Invalid timestamp encountered",[te.InvalidParameterCount]:"Invalid parameter count for call to {name}",[te.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[te.YearMonthIntervals]:"Year-Month Intervals not supported",[te.CannotCastValue]:"Cannot cast value to the required data type"},ae=class e extends Error{constructor(t,r){super(fs(vV[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function mE(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var yn,Lh=V(()=>{In();yn=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=Se.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return mE(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return mE(this.toDateTime().offset%60)}toMilliseconds(){return this.toDateTime().toMillis()}get hour(){return this.toDateTime().hour}get minute(){return this.toDateTime().minute}get second(){return this.toDateTime().second}get day(){return this.toDateTime().day}get month(){return this.toDateTime().month}get year(){return this.toDateTime().year}startOfDay(){return e.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(t){return new e(Se.fromJSDate(t).toISO({includeOffset:!0}))}static fromDateTime(t){return new e(t.toISO({includeOffset:!0}))}static fromParts(t,r,n=0,i=0,o=0,s=0,c=0,a=!1,d=0,h=0){let g=`${t.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,v="";s<10&&(v="0");let S=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${v+s.toString()}`;c!==0&&(S+="."+c.toString().padStart(3,"0"));let M=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new e(g+"T"+S+M)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let t=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return t&&(t=t.replace(".000","")),t}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(t){let r=this.toDateTime().plus(t);return e.fromDateTime(r)}}});function N(e,t,r,n){var i,o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}var pt=V(()=>{});var q0,F_=V(()=>{q0="20241130"});var Tt,yc=V(()=>{et();ds();F_();Tt={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(HT(Tt,globalThis.esriConfig,!0),delete Tt.has),!Tt.assetsPath){{let e="4.32.0";Tt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${q0}/assets`}Tt.defaultAssetsPath=Tt.assetsPath}});function _V(e,t,...r){console[e](`[${t}]`,...r)}function SV(...e){return XT(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var hE,ct,tt=V(()=>{yc();et();ic();hE={info:0,warn:1,error:2,none:3},ct=class e{constructor(t){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},t.level!=null&&(this.level=t.level),t.writer!=null&&(this.writer=t.writer),this._module=t.module,e._loggers.set(this.module,this);let r=this.module.lastIndexOf(".");r!==-1&&(this._parent=e.getLogger(this.module.slice(0,r)))}get module(){return this._module}get parent(){return this._parent}error(...t){this._log("error","always",...t)}warn(...t){this._log("warn","always",...t)}info(...t){this._log("info","always",...t)}errorOnce(...t){this._log("error","once",...t)}warnOnce(...t){this._log("warn","once",...t)}infoOnce(...t){this._log("info","once",...t)}errorOncePerTick(...t){this._log("error","oncePerTick",...t)}warnOncePerTick(...t){this._log("warn","oncePerTick",...t)}infoOncePerTick(...t){this._log("info","oncePerTick",...t)}get test(){}static get test(){}static getLogger(t){return t=typeof t!="string"?t.declaredClass:t,e._loggers.get(t)||new e({module:t})}_log(t,r,...n){if(this._matchLevel(t)){if(r!=="always"&&!e._throttlingDisabled){let i=SV(n),o=this._loggedMessages[t].get(i);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=e._tickCounter)return;this._loggedMessages[t].set(i,e._tickCounter),e._scheduleTickCounterIncrement()}for(let i of Tt.log.interceptors)if(i(t,this.module,...n))return;this._inheritedWriter()(t,this.module,...n)}}_parentWithMember(t,r){let n=this;for(;n!=null;){let i=n[t];if(i!=null)return i;n=n.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",_V)}_matchLevel(t){let r=Tt.log.level||"warn";return hE[this._parentWithMember("level",r)]<=hE[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};ct._loggers=new Map,ct._tickCounter=0,ct._tickCounterScheduled=!1,ct._throttlingDisabled=!1});function Z0(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var U_=V(()=>{});function xV(e){return e==null?e:new Date(e)}function CV(e){return e==null?e:!!e}function TV(e){return e==null?e:e.toString()}function B_(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function EV(e){return e==null?e:Math.round(parseFloat(e))}function MV(e){return null}function wE(e,t){return r=>{let n=e(r);return t.step!=null&&(n=Math.round(n/t.step)*t.step),t.min!=null&&(n=Math.max(t.min,n)),t.max!=null&&(n=Math.min(t.max,n)),n}}function yE(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function Y0(e,t){return t!=null&&e&&!(t instanceof e)}function bE(e){return e&&"isCollection"in e}function gE(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function PV(e,t){if(!t?.constructor||!bE(t.constructor))return V_(e,t)?t:new e(t);let r=gE(e.prototype.itemType),n=gE(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(V_(e,t),t):new e(t):t}function V_(e,t){return!!yE(t)&&(up().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+J0(e)+"'"),!0)}function G_(e,t){return t==null?t:bE(e)?PV(e,t):Y0(e,t)?V_(e,t)?t:new e(t):t}function J0(e){return e?.prototype?.declaredClass||"unknown"}function AV(e){switch(e){case Number:return t=>B_(t);case ai:return EV;case Boolean:return CV;case String:return TV;case Date:return xV;case Oh:return MV;default:return Z0(IV,e,()=>G_.bind(null,e))}}function si(e,t){let r=AV(e);return arguments.length===1?r:r(t)}function dp(e,t,r){return arguments.length===1?dp.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function vE(e,t){return arguments.length===1?dp(r=>si(e,r)):dp(r=>si(e,r),t)}function _E(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>_E(e,t-1,n)):e(r)}function kh(e,t,r){if(arguments.length===2)return o=>kh(e,t,o);if(!r)return r;r=_E(e,t,r);let n=t,i=r;for(;n>0&&Array.isArray(i);)n--,i=i[0];if(i!==void 0)for(let o=0;o<n;o++)r=[r];return r}function SE(e,t,r){return arguments.length===2?kh(n=>si(e,n),t):kh(n=>si(e,n),t,r)}function X0(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function K0(e,t){if(arguments.length===2)return K0(e).call(null,t);let r=new Set,n=e.filter(c=>typeof c!="function"),i=e.filter(c=>typeof c=="function");for(let c of e)typeof c!="string"&&typeof c!="number"||r.add(c);let o=null,s=null;return(c,a)=>{if(c==null)return c;let d=typeof c,h=d==="string"||d==="number";return h&&(r.has(c)||i.some(g=>d==="string"&&g===String||d==="number"&&g===Number))||d==="object"&&i.some(g=>!Y0(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),up().error("Accessor#set",`'${c}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof c=="object"&&i.length?(s||(s=i.map(g=>J0(g)).join(", ")),up().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):up().error("Accessor#set",`'${c}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function Io(e,t){if(arguments.length===2)return Io(e).call(null,t);let r={},n=[],i=[];for(let a in e.typeMap){let d=e.typeMap[a];r[a]=si(d),n.push(J0(d)),i.push(a)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,c=typeof e.key=="string"?a=>a[e.key]:e.key;return a=>{if(e.base&&!Y0(e.base,a)||a==null)return a;let d=c(a)||e.defaultKeyValue,h=r[d];if(!h)return up().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${s()})`),null;if(!Y0(e.typeMap[d],a))return a;if(typeof e.key=="string"&&!yE(a)){let g={};for(let v in a)v!==e.key&&(g[v]=a[v]);return h(g)}return h(a)}}function xE(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function j_(e){switch(e.type){case"native":return si(e.value);case"array":return dp(j_(e.value));case"one-of":return LV(e);default:return null}}function LV(e){let t=null;return(r,n)=>W_(r,e)?r:(t==null&&(t=z_(e)),up().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function z_(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case ai:return"integer";case Date:return"date";case Oh:return"null";default:return J0(e.value)}case"array":return`array of ${z_(e.value)}`;case"one-of":{let t=e.values.map(r=>z_(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function W_(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case ai:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case Oh:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!W_(r,t.value));case"one-of":return t.values.some(r=>W_(e,r))}}var up,IV,ai,Oh,Xi=V(()=>{et();tt();U_();up=()=>ct.getLogger("esri.core.accessorSupport.ensureTypes");IV=new WeakMap;ai=class{},Oh=class{}});function xi(e){return e.__accessor__??null}function TE(e,t){return e?.metadata?.[t]!=null}function fp(e,t,r){return r?Q0(e,t,{policy:r,path:""}):Q0(e,t,null)}function Q0(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,c="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,c=r.policy(s)),c==="replace"||c==="replace-arrays"&&Array.isArray(n[o]))return n[o]=t[o],n;if(n[o]===void 0)return n[o]=qe(t[o]),n;let a=n[o],d=t[o];if(a===d)return n;if(Array.isArray(d)||Array.isArray(n))a=a?Array.isArray(a)?n[o]=a.slice():n[o]=[a]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(h=>{a.includes(h)||a.push(h)}));else if(d&&typeof d=="object")if(r){let h=r.path;r.path=s,n[o]=Q0(a,d,r),r.path=h}else n[o]=Q0(a,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function ew(e){return Array.isArray(e)?e:e.split(".")}function CE(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function kV(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...CE(r));return t}return CE(e)}function H_(e,t,r,n){let i=kV(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return gu(o)}return n(e,i[0],r)}var Xs=V(()=>{oi();or()});function EE(e,t){let r=e[e.length-1]==="?"?e.slice(0,-1):e;if(t.getItemAt!=null||Array.isArray(t)){let i=parseInt(r,10);if(!isNaN(i))return Array.isArray(t)?t[i]:t.at(i)}let n=xi(t);return TE(n,r)?n.get(r):t[r]}function ME(e,t,r){if(e==null)return e;let n=EE(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:ME(n,t,r+1)}function wu(e,t,r=0){return typeof t!="string"||t.includes(".")?ME(e,ew(t),r):EE(t,e)}function ps(e,t){return wu(e,t)}function q_(e,t){return wu(t,e)!==void 0}var yu=V(()=>{Xs()});function bc(e){let t=e.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(let n in t)t[n]=qe(t[n]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function pp(e,t){let r=bc(e),n=r[t];return n||(n=r[t]={}),n}function PE(e,t){return fp(e,t,NV)}function NV(e){return OV.test(e)?"replace":"merge"}var OV,mp=V(()=>{or();Xs();OV=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function RV(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Hi(n,t)??"").toString())}var hp,Z_=V(()=>{ds();hp=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&RV(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var We,An=V(()=>{or();tt();Z_();We=class e extends hp{constructor(t,r,n){super(t,r,n)}toJSON(){if(this.details!=null)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(t,r)=>{if(r&&typeof r=="object"&&typeof r.toJSON=="function")return r;try{return qe(r)}catch{return"[object]"}}))}}catch(t){throw ct.getLogger("esri.core.Error").error(t),t}return{name:this.name,message:this.message,details:this.details}}static fromJSON(t){return new e(t.name,t.message,t.details)}};We.prototype.type="error"});function gp(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))gp(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void gp(ps(e,i),o,r)}let n=e.__accessor__;n!=null&&DV(t,n),e[t]=r}}function DV(e,t){if(he("esri-unknown-property-errors")&&!$V(e,t))throw new We("set:unknown-property",FV(e,t))}function $V(e,t){return t.metadata[e]!=null}function FV(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var Y_=V(()=>{An();et();tt();yu()});function z(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let n=Object.getOwnPropertyDescriptor(t,r),i=pp(t,r);n&&(n.get||n.set?(i.get=n.get||i.get,i.set=n.set||i.set):"value"in n&&("value"in e&&ct.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),i.value=e.value=n.value)),e.readOnly!=null&&(i.readOnly=e.readOnly);let o=e.aliasOf;if(o){let a=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,h;i.dependsOn=[a],i.get=function(){let g=ps(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=ps(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){gp(this,a,g)})}let s=e.type,c=e.types;if(!i.cast){let a;s?a=UV(s):c&&(a=Array.isArray(c)?dp(Io(c[0])):Io(c)),e.cast=VV(e.cast,a)}PE(i,e),e.range&&(i.cast=wE(i.cast,e.range))}}function tw(e,t,r){let n=pp(e,r);n.json||(n.json={});let i=n.json;return t!==void 0&&(i.origins||(i.origins={}),i.origins[t]||(i.origins[t]={}),i=i.origins[t]),i}function UV(e){let t=0,r=e;if(xE(e))return j_(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(X0(n))return t===0?K0(n):kh(K0(n),t);if(t===1)return vE(n);if(t>1)return SE(n,t);let i=e;return i.from?i.from:si(i)}function VV(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var mt=V(()=>{tt();Xi();yu();mp();Y_()});var rw,J_=V(()=>{rw=Symbol("Accessor-beforeDestroy")});var an,Nh=V(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(an||(an={}))});var ht,nw=V(()=>{(function(e){e[e.Dirty=1]="Dirty",e[e.Overridden=2]="Overridden",e[e.Computing=4]="Computing",e[e.NonNullable=8]="NonNullable",e[e.HasDefaultValue=16]="HasDefaultValue",e[e.DepTrackingInitialized=32]="DepTrackingInitialized",e[e.AutoTracked=64]="AutoTracked",e[e.ExplicitlyTracking=128]="ExplicitlyTracking"})(ht||(ht={}))});var ms,Rh=V(()=>{ms=class{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.accessed?.clear(),this.clear()}onAccessed(t){this._observer!=null&&t!==this._observer&&(this.accessed==null&&(this.accessed=new Set),this.accessed.add(t))}onTrackingEnd(){this._observer!=null&&(this.clear(),this.accessed!=null&&(this._handles==null&&(this._handles=[]),this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(this._handles!=null){for(let t=0;t<this._handles.length;++t)this._handles[t].remove();this._handles.length=0}}}});function Je(e){$h.onAccessed(e)}function Ao(e,t,r){if(iw)return X_(e,t,r);let n=null;return LE(e),n=t.call(r),kE(),n}function AE(e,t){return Ao(sw,e,t)}function X_(e,t,r){let n=iw;iw=!0,LE(e);let i=null;try{i=t.call(r)}catch(o){ow&&ct.getLogger("esri.core.accessorSupport.tracking").error(o)}return kE(),iw=n,i}function LE(e){$h=e,Dh.push(e)}function kE(){let e=Dh.length;if(e>1){let t=Dh.pop();$h=Dh[e-2],t.onTrackingEnd()}else if(e===1){let t=Dh.pop();$h=sw,t.onTrackingEnd()}else $h=sw}function K_(e,t){if(t.flags&ht.DepTrackingInitialized)return;t.flags|=ht.DepTrackingInitialized;let r=ow;ow=!1,t.flags&ht.AutoTracked?X_(t.trackingTarget,t.metadata.get,e):Q_(e,t),ow=r}function Q_(e,t){t.flags&ht.ExplicitlyTracking||(t.flags|=ht.ExplicitlyTracking,X_(t.trackingTarget,()=>{let r=t.metadata.dependsOn||zV;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=ew(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=IE(s,i[o],o!==i.length-1)}else IE(e,n,!1)}),t.flags&=~ht.ExplicitlyTracking)}function IE(e,t,r){let n=t[t.length-1]==="?"?t.slice(0,-1):t;if(e.getItemAt!=null||Array.isArray(e)){let o=parseInt(n,10);if(!isNaN(o))return Array.isArray(e)?e[o]:e.at(o)}let i=xi(e);if(i){let o=i.propertiesByName.get(n);o&&(Je(o),K_(e,o))}return r?e[n]:void 0}var sw,Dh,$h,iw,ow,zV,bu=V(()=>{et();tt();Xs();nw();Rh();sw=new ms,Dh=[],$h=sw;iw=!1,ow=!1;zV=[]});function OE(e){if(e.json&&e.json.origins){let t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(let n in r)if(t[n]){let i=t[n];r[n].forEach(o=>{t[o]=i}),delete t[n]}}}var NE=V(()=>{});var Fh,RE=V(()=>{Z_();Fh=class extends hp{constructor(t,r,n){super(t,r,n)}};Fh.prototype.type="warning"});function aw(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var eS=V(()=>{});function rS(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||GV(e)&&Hs("read.reader",nS(e),t))}function nS(e){let t=e.ndimArray??0;if(t>1)return BV(e);if(t===1)return DE(e);if("type"in e&&FE(e.type)){let r=e.type.prototype?.itemType?.Type,n=DE(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let c=n(i,o,s);return c&&new e.type(c)}}return iS(e)}function iS(e){return"type"in e?WV(e.type):jV(e.types)}function WV(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void tS().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${i}'`);let o=new e;return o.read(t,n),o}:e.fromJSON}function $E(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>$E(e,i,r,n-1)):e(t,void 0,r)}function BV(e){let t=iS(e),r=$E.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let c=n,a=i;for(;c>0&&Array.isArray(a);)c--,a=a[0];if(a!==void 0)for(let d=0;d<c;d++)i=[i];return i}}function DE(e){let t=iS(e);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let c of r){let a=t(c,void 0,i);a!==void 0&&s.push(a)}return s}let o=t(r,void 0,i);return o!==void 0?[o]:void 0}}function FE(e){if(!aw(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?oS(t.Type):UE(t.Type))}function GV(e){return"types"in e?UE(e.types):oS(e.type)}function oS(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||FE(e))}function UE(e){for(let t in e.typeMap)if(!oS(e.typeMap[t]))return!1;return!0}function jV(e){let t=null,r=e.errorContext??"type",n=e.validate;return(i,o,s)=>{if(i==null)return i;let c=typeof i;if(c!=="object")return void tS().error(`Expected JSON value of type 'object' to deserialize, but got '${c}'`);t||(t=HV(e));let a=e.key;if(typeof a!="string")return;let d=i[a],h=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!h){let v=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new Fh(`${r}:unsupported`,v,{definition:i,context:s})),void tS().error(v)}let g=new h;return g.read(i,s),n?n(g):g}}function HV(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=bc(n.prototype);if(typeof e.key=="function")continue;let o=i[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&o.json.type.length===1&&typeof o.json.type[0]=="string"){t[o.json.type[0]]=n;continue}let s=o.json?.write;if(!s?.writer){t[r]=n;continue}let c=s.target,a=typeof c=="string"?c:e.key,d={};s.writer(r,d,a),d[a]&&(t[d[a]]=n)}return t}var tS,sS=V(()=>{tt();ds();RE();mp();eS();tS=()=>ct.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function BE(e){if(e.json||(e.json={}),zE(e.json),WE(e.json),VE(e.json),e.json.origins)for(let t in e.json.origins)zE(e.json.origins[t]),WE(e.json.origins[t]),VE(e.json.origins[t]);return!0}function VE(e){e.name&&(e.read&&typeof e.read=="object"?e.read.source===void 0&&(e.read.source=e.name):e.read={source:e.name},e.write&&typeof e.write=="object"?e.write.target===void 0&&(e.write.target=e.name):e.write={target:e.name})}function zE(e){typeof e.read=="boolean"?e.read={enabled:e.read}:typeof e.read=="function"?e.read={enabled:!0,reader:e.read}:e.read&&typeof e.read=="object"&&e.read.enabled===void 0&&(e.read.enabled=!0)}function WE(e){typeof e.write=="boolean"?e.write={enabled:e.write}:typeof e.write=="function"?e.write={enabled:!0,writer:e.write}:e.write&&typeof e.write=="object"&&e.write.enabled===void 0&&(e.write.enabled=!0)}var GE=V(()=>{});function aS(e,t){if(!t.write||t.write.writer||t.write.enabled===!1&&!t.write.overridePolicy)return;let r=e?.ndimArray??0;e&&(r===1||"type"in e&&aw(e.type))?t.write.writer=JV:r>1?t.write.writer=XV(r):t.types?Array.isArray(t.types)?t.write.writer=ZV(t.types[0]):t.write.writer=qV(t.types):t.write.writer=Uh}function qV(e){return(t,r,n,i)=>t?jE(t,e,i)?Uh(t,r,n,i):void 0:Uh(t,r,n,i)}function jE(e,t,r){for(let n in t.typeMap)if(e instanceof t.typeMap[n])return!0;if(r?.messages){let n=t.errorContext??"type",i=`Values of type '${(typeof t.key!="function"?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&e&&r.messages.push(new We(`${n}:unsupported`,i,{definition:e,context:r})),ct.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function ZV(e){return(t,r,n,i)=>!t||!Array.isArray(t)?Uh(t,r,n,i):Uh(t.filter(o=>jE(o,e,i)),r,n,i)}function Uh(e,t,r,n){Hs(r,cw(e,n),t)}function cw(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?YV(e):e}function YV(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function JV(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>cw(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[cw(e,n)],Hs(r,i,t)}function HE(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>HE(n,t,r-1)):cw(e,t)}function XV(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=HE(t,i,e);let s=e,c=o;for(;s>0&&Array.isArray(c);)s--,c=c[0];if(c!==void 0)for(let a=0;a<s;a++)o=[o]}Hs(n,o,r)}}var qE=V(()=>{An();tt();ds();eS()});function ZE(e,t){return lS(e,"any",t?.origin)}function lw(e,t){return lS(e,"read",t?.origin)}function YE(e,t){return lS(e,"write",t?.origin)}function lS(e,t,r){let n=e?.json;if(n?.origins&&r){let i;i=r==="link-chart"?n.origins[r]&&(t==="any"||t in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],i&&(t==="any"||t in i)&&(n=i)}return n}function KV(e){let t=QV(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?ez(n):t;rS(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),aS(i,n)}rS(t,e.json,!0),aS(t,e.json)}function QV(e){return e.json.types?cS(e.json):e.type?JE(e):cS(e)}function ez(e){return e.type?JE(e):cS(e)}function JE(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!X0(r);)r=r[0],t++;return{type:r,ndimArray:t}}function cS(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function XE(e){BE(e)&&(OE(e),KV(e))}var uw=V(()=>{Xi();NE();sS();GE();qE()});function Ie(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,rz(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!uS.has(i.initialize)&&(uS.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!dS.has(i.destroy)&&(dS.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);uS.clear(),dS.clear();let o=class extends t{constructor(...c){if(super(...c),this.constructor===o&&typeof this.postscript=="function"){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let a=r.length-1;a>=0;a--)r[a].call(this)}}),n.length){let a=!1,d=this[rw];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!a){a=!0,d.call(this);for(let h=0;h<n.length;h++)n[h].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};o.__accessorMetadata__=bc(t.prototype),o.prototype.declaredClass=e;let s=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(o,"name",{value:s,configurable:!0}),o}}function tz(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;r.mutable&&Je(n);let i=r.store;return i.has(e)?i.get(e):n.metadata.value}:function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n!==void 0)return n.getComputed(r)}}function rz(e){let t=e.prototype,r=bc(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];XE(o),n[i]={enumerable:!0,configurable:!0,get:tz(i,o),set(s){let c=this.__accessor__;if(c!==void 0){if(c.mutable)return c.initialized&&o.readOnly?KE("read-only",i):c.lifecycle===an.CONSTRUCTED&&o.constructOnly?KE("construct-only",i):void c.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(e.prototype,n)}var uS,dS,KE,ut=V(()=>{et();tt();J_();Nh();mp();bu();uw();uS=new Set,dS=new Set;KE=(e,t)=>{ct.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function fS(e){return e!=null&&typeof e[Symbol.iterator]=="function"}var QE=V(()=>{});function dw(e){return e||"_default_"}function e8(e){for(let t of e)t instanceof wp?t.removeAll():t.remove()}function t8(e){return e!=null&&(!!e.remove||e instanceof wp)}var wp,r8=V(()=>{QE();wp=class{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let t=0;return this._groups.forEach(r=>{t+=r.length}),t}add(t,r){if(fS(t)){let n=this._getOrCreateGroup(r);for(let i of t)t8(i)&&n.push(i)}else t8(t)&&this._getOrCreateGroup(r).push(t);return this}forEach(t,r){if(typeof t=="function")this._groups.forEach(n=>n.forEach(t));else{let n=this._getGroup(t);n&&r&&n.forEach(r)}}has(t){return this._groups.has(dw(t))}remove(t){if(typeof t!="string"&&fS(t)){for(let r of t)this.remove(r);return this}return this.has(t)?(e8(this._getGroup(t)),this._groups.delete(dw(t)),this):this}removeAll(){return this._groups.forEach(e8),this._groups.clear(),this}removeReference(t){return this._groups.delete(t),this}_getOrCreateGroup(t){if(this.has(t))return this._getGroup(t);let r=[];return this._groups.set(dw(t),r),r}_getGroup(t){return this._groups.get(dw(t))}}});function n8(e,t){if(e==null)throw new Error(t??"value is None")}function Vh(e){return e?.destroy(),null}function zh(e){return e?.remove(),null}function i8(e){return e?.abort(),null}var vc=V(()=>{});function nz(e){return e?.release&&typeof e.release=="function"}function iz(e){return e?.acquire&&typeof e.acquire=="function"}var Lo,Wh=V(()=>{Lo=class e{constructor(t,r,n,i=1,o=0){this._ctor=t,this._acquireFunction=r,this._releaseFunction=n,this.allocationSize=i,this._pool=new Array(o),this._initialSize=o;for(let s=0;s<o;s++)this._pool[s]=new this._ctor;this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...t){let r;if(e.test.disabled)r=new this._ctor;else{if(this._pool.length===0){let n=this.allocationSize;for(let i=0;i<n;i++)this._pool[i]=new this._ctor}r=this._pool.pop()}return this._acquireFunction?this._acquireFunction(r,...t):iz(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):nz(t)&&t.release(),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let r=t;r<this._pool.length;++r){let n=this._pool[r];this._dispose(n)}this._pool.length=t}}_dispose(t){t.dispose&&typeof t.dispose=="function"&&t.dispose()}};Lo.test={disabled:!1}});var fw,o8=V(()=>{nc();fw=class{constructor(t,r){this._observers=t,this._observer=r}remove(){PT(this._observers,this._observer)}}});var yp,oz,pS=V(()=>{oi();o8();yp=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return oz;this._observers==null&&(this._observers=[]);let r=this._observers,n=!1,i=!1,o=r.length;for(let s=0;s<o;++s){let c=r[s];if(c.destroyed)i=!0;else if(c===t){n=!0;break}}return n||(r.push(t),i&&this._removeDestroyedObservers()),new fw(r,t)}_removeDestroyedObservers(){let t=this._observers;if(!t||t.length===0)return;let r=t.length,n=0;for(let i=0;i<r;++i){for(;i+n<r&&t[i+n].destroyed;)++n;if(n>0){if(!(i+n<r))break;t[i]=t[i+n]}}t.length=r-n}destroy(){if(this.destroyed)return;this.destroyed=!0;let t=this._observers;if(t!=null){for(let r of t)r.onCommitted();this._observers=null}}},oz=Ct()});function pw(e){switch(e){case"defaults":return st.DEFAULTS;case"service":return st.SERVICE;case"portal-item":return st.PORTAL_ITEM;case"web-scene":return st.WEB_SCENE;case"web-map":return st.WEB_MAP;case"link-chart":return st.LINK_CHART;case"user":return st.USER;default:return null}}function mw(e){switch(e){case st.DEFAULTS:return"defaults";case st.SERVICE:return"service";case st.PORTAL_ITEM:return"portal-item";case st.WEB_SCENE:return"web-scene";case st.WEB_MAP:return"web-map";case st.LINK_CHART:return"link-chart";case st.USER:return"user"}}function s8(e){return mw(e)}var st,Fce,_c=V(()=>{(function(e){e[e.DEFAULTS=0]="DEFAULTS",e[e.COMPUTED=1]="COMPUTED",e[e.SERVICE=2]="SERVICE",e[e.PORTAL_ITEM=3]="PORTAL_ITEM",e[e.WEB_SCENE=4]="WEB_SCENE",e[e.WEB_MAP=5]="WEB_MAP",e[e.LINK_CHART=6]="LINK_CHART",e[e.USER=7]="USER"})(st||(st={}));Fce=st.USER+1});var Bh,a8=V(()=>{pS();_c();bu();nw();Rh();Bh=class extends yp{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this.trackingTarget=new ms(this),this.flags=0,this.flags=ht.Dirty|(r.nonNullable?ht.NonNullable:0)|(r.hasOwnProperty("value")?ht.HasDefaultValue:0)|(r.get===void 0?ht.DepTrackingInitialized:0)|(r.dependsOn===void 0?ht.AutoTracked:0)}destroy(){this.flags&ht.Dirty&&this.onCommitted(),super.destroy(),this.trackingTarget.destroy()}getComputed(t){t.mutable&&Je(this);let r=t.store,n=this.propertyName,i=this.flags,o=r.get(n);if(i&ht.Computing||~i&ht.Dirty&&r.has(n))return o;this.flags|=ht.Computing;let s=t.host,c;i&ht.AutoTracked?c=Ao(this.trackingTarget,this.metadata.get,s):(Q_(s,this),c=this.metadata.get.call(s)),this.flags|=ht.DepTrackingInitialized,r.set(n,c,st.COMPUTED);let a=r.get(n);return a===o?this.flags&=~ht.Dirty:AE(this.commit,this),this.flags&=~ht.Computing,a}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~ht.Dirty,this.onCommitted()}onInvalidated(){~this.flags&ht.Overridden&&(this.flags|=ht.Dirty);let t=this._observers;if(t&&t.length>0)for(let r of t)r.onInvalidated()}onCommitted(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onCommitted()}}}});var hw,c8=V(()=>{or();_c();hw=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,qe(n))}),r}get(t){return this._values.get(t)}originOf(){return st.USER}keys(){return[...this._values.keys()]}set(t,r){this._values.set(t,r)}delete(t){this._values.delete(t)}has(t){return this._values.has(t)}forEach(t){this._values.forEach(t)}}});function gw(e,t,r){return e!==void 0}function l8(e,t,r,n){return e!==void 0&&(!(r==null&&e.flags&ht.NonNullable)||(n.lifecycle,an.INITIALIZING,!1))}var ww,hS,mS,u8=V(()=>{et();or();tt();Wh();Nh();a8();_c();c8();bu();nw();Rh();ww=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=an.INITIALIZING,this.store=new hw,this.mutable=!0,this._origin=st.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new Bh(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=an.CONSTRUCTING}constructed(){this.lifecycle=an.CONSTRUCTED}destroy(){this.lifecycle=an.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==an.INITIALIZING}get(t){let r=this.propertiesByName.get(t);if(r.metadata.get)return r.getComputed(this);this.mutable&&Je(r);let n=this.store;return n.has(t)?n.get(t):r.metadata.value}originOf(t){let r=this.store.originOf(t);if(r===void 0){let n=this.propertiesByName.get(t);if(n!==void 0&&n.flags&ht.HasDefaultValue)return"defaults"}return mw(r)}has(t){return this.propertiesByName.has(t)&&this.store.has(t)}keys(){return[...this.propertiesByName.keys()]}internalGet(t){let r=this.propertiesByName.get(t);if(gw(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);gw(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!gw(i))return"";let o=new ms,s=Ao(o,()=>i.metadata.get?.call(t)),c=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
|
|
2
2
|
`,a=o.accessed??new Set;if(a.size===0)return c;n+=" ";for(let d of a)d instanceof Bh&&(c+=`${n}${d.propertyName}: undefined
|
|
3
3
|
`);return c}setAtOrigin(t,r,n){let i=this.propertiesByName.get(t);if(gw(i))return this._setAtOrigin(i,r,n)}isOverridden(t){let r=this.propertiesByName.get(t);return r!==void 0&&!!(r.flags&ht.Overridden)}clearOverride(t){let r=this.propertiesByName.get(t);r&&r.flags&ht.Overridden&&(r.flags&=~ht.Overridden,r.notifyChange())}override(t,r){let n=this.propertiesByName.get(t);if(!l8(n,t,r,this))return;let i=n.metadata.cast;if(i){let o=this._cast(i,r),{valid:s,value:c}=o;if(mS.release(o),!s)return;r=c}n.flags|=ht.Overridden,this._internalSet(n,r)}set(t,r){let n=this.propertiesByName.get(t);if(!l8(n,t,r,this))return;let i=n.metadata.cast;if(i){let s=this._cast(i,r),{valid:c,value:a}=s;if(mS.release(s),!c)return;r=a}let o=n.metadata.set;o?o.call(this.host,r):this._internalSet(n,r)}setDefaultOrigin(t){this._origin=pw(t)}getDefaultOrigin(){return mw(this._origin)}notifyChange(t){let r=this.propertiesByName.get(t);r!==void 0&&r.notifyChange()}invalidate(t){let r=this.propertiesByName.get(t);r!==void 0&&r.invalidate()}commit(t){let r=this.propertiesByName.get(t);r!==void 0&&r.commit()}_internalSet(t,r){let n=this.lifecycle!==an.INITIALIZING?this._origin:st.DEFAULTS;this._setAtOrigin(t,r,n)}_setAtOrigin(t,r,n){let i=this.store,o=t.propertyName;i.has(o,n)&&jm(r,i.get(o))&&~t.flags&ht.Overridden&&n===i.originOf(o)||(t.invalidate(),i.set(o,r,n),t.commit(),K_(this.host,t))}_cast(t,r){let n=mS.acquire();return n.valid=!0,n.value=r,t&&(n.value=t.call(this.host,r,n)),n}},hS=class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}},mS=new Lo(hS)});function gS(){return sz}var sz,d8,f8=V(()=>{(function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"})(d8||(d8={}))});function az(e){e.length=0}var Yn,wS,yw=V(()=>{Wh();Yn=class{constructor(t=50,r=50){this._pool=new Lo(Array,void 0,az,r,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return wS.acquire()}static release(t){return wS.release(t)}static prune(){wS.prune()}},wS=new Yn(100)});var bw,p8=V(()=>{Wh();bw=class extends Lo{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...t){let r=super.acquire(...t);return this._set.delete(r),r}release(t){t&&!this._set.has(t)&&(super.release(t),this._set.add(t))}_dispose(t){this._set.delete(t),super._dispose(t)}}});function yS(e){vw.push(e),vw.length===1&&queueMicrotask(()=>{let t=vw.slice();vw.length=0;for(let r of t)r()})}var vw,m8=V(()=>{vw=[]});var Gh,h8=V(()=>{Gh=class{constructor(t,r=30){this.name=t,this._counter=0,this._samples=new Array(r)}push(t){t!=null&&(this._samples[++this._counter%this._samples.length]=t)}set(t){t!=null&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,r)=>t-r)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,r)=>t+r,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}});var bS,vS,g8=V(()=>{(function(e){let t=(o,s,c,a)=>{let d=s,h=s,g=c>>>1,v=o[d-1];for(;h<=g;){h=d<<1,h<c&&a(o[h-1],o[h])<0&&++h;let S=o[h-1];if(a(S,v)<=0)break;o[d-1]=S,d=h}o[d-1]=v},r=(o,s)=>o<s?-1:o>s?1:0;function n(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)t(o,h,c,a);let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,t(o,d,h,a)}}function*i(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)t(o,h,c,a),yield;let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,t(o,d,h,a),yield}}e.sort=n,e.iterableSort=i})(bS||(bS={}));vS=bS});function w8(e){e.data.length>cz*e.length&&(e.data.length=Math.floor(e.length*lz))}var cz,lz,jh,y8=V(()=>{nc();g8();cz=1.5,lz=1.1,jh=class{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new Gm,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),t.deallocator!==void 0&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>w8(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){let r=new Array;for(let n=0;n<this._length;n++){let i=this.data[n];t(i)&&r.push(i)}return r}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,r){let n=this.data.indexOf(t,r);return n!==-1&&n<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let r=t;r<this._length;++r)this.data[r]=this._deallocator(this.data[r]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,r=t.length){for(let n=0;n<r;n++)this.data[this._length++]=t[n]}fill(t,r){for(let n=0;n<r;n++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,w8(this)}pop(){if(this.length===0)return;let t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){let r=G2(this.data,t,this.length,this._hint);if(r!==-1)return this.data.splice(r,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex(G2(this.data,t,this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,r=t.length,n){this.length=MT(this.data,t,this.length,r,this._hint,n),this._shrink()}front(){if(this.length!==0)return this.data[0]}back(){if(this.length!==0)return this.data[this.length-1]}swapElements(t,r){if(t>=this.length||r>=this.length||t===r)return;let n=this.data[t];this.data[t]=this.data[r],this.data[r]=n}sort(t){vS.sort(this.data,0,this.length,t)}iterableSort(t){return vS.iterableSort(this.data,0,this.length,t)}some(t,r){for(let n=0;n<this.length;++n)if(t.call(r,this.data[n],n,this.data))return!0;return!1}find(t,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)if(t.call(r,n[o]))return n[o]}filterInPlace(t,r){let n=0;for(let i=0;i<this._length;++i){let o=this.data[i];t.call(r,o,i,this.data)&&(this.data[i]=this.data[n],this.data[n]=o,n++)}if(this._deallocator)for(let i=n;i<this._length;i++)this.data[i]=this._deallocator(this.data[i]);return this._length=n,this._shrink(),this}forAll(t,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)t.call(r,n[o],o,n)}forEach(t,r){this.data.slice(0,this.length).forEach(t,r)}map(t,r){let n=new Array(this.length);for(let i=0;i<this.length;++i)n[i]=t.call(r,this.data[i],i,this.data);return n}reduce(t,r){let n=r;for(let i=0;i<this.length;++i)n=t(n,this.data[i],i,this.data);return n}has(t){let r=this.length,n=this.data;for(let i=0;i<r;++i)if(n[i]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}});function uz(e){return{setTimeout:(t,r)=>{let n=e.setTimeout(t,r);return Ct(()=>e.clearTimeout(n))}}}var b8,v8=V(()=>{oi();b8=uz(globalThis)});function Hh(e){return dz(e)||_8(e)}function dz(e){return e!=null&&typeof e=="object"&&"on"in e&&typeof e.on=="function"}function _8(e){return e!=null&&typeof e=="object"&&"addEventListener"in e&&typeof e.addEventListener=="function"}function Sc(e,t,r){if(!Hh(e))throw new TypeError("target is not a Evented or EventTarget object");return _8(e)?fz(e,t,r):e.on(t,r)}function fz(e,t,r,n){if(Array.isArray(t)){let i=t.slice();for(let o of i)e.addEventListener(o,r,n);return Ct(()=>{for(let o of i)e.removeEventListener(o,r,n)})}return e.addEventListener(t,r,n),Ct(()=>e.removeEventListener(t,r,n))}function S8(e,t,r){if(!Hh(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=Sc(e,t,i=>{n.remove(),r.call(e,i)});return n}var qh=V(()=>{oi()});function hs(e="Aborted"){return new We("AbortError",e)}function _w(e){return e instanceof AbortSignal?e:e?.signal??void 0}function Ks(e){let t=_w(e);return t!=null&&t.aborted}function _S(e){if(!Zh(e))throw e}function Ci(e,t){let r=_w(e);if(r!=null){if(!r.aborted)return S8(r,"abort",()=>t());t()}}function Zh(e){return e?.name==="AbortError"}function pz(e,t=void 0,r){let n=new AbortController;return Ci(r,()=>n.abort()),new Promise((i,o)=>{let s=setTimeout(()=>{s=0,i(t)},e);Ci(n,()=>{s&&(clearTimeout(s),o(hs()))})})}function mz(e){return e&&typeof e.then=="function"}function x8(e){return mz(e)?e:Promise.resolve(e)}function C8(e,t=-1){let r,n,i,o,s=null,c=(...a)=>{if(r){n=a,o&&o.reject(hs()),o=ci();let v=o.promise;if(s){let S=s;s=null,S.abort()}return v}if(i=o||ci(),o=null,t>0){let v=new AbortController;r=x8(e(...a,v.signal));let S=r;pz(t).then(()=>{r===S&&(o?v.abort():s=v)})}else r=1,r=x8(e(...a));let d=()=>{let v=n;n=i=r=s=null,v!=null&&c(...v)},h=r,g=i;return h.then(d,d),h.then(g.resolve,g.reject),g.promise};return c}function ci(){let e,t,r=new Promise((i,o)=>{e=i,t=o}),n=i=>{e(i)};return n.resolve=i=>e(i),n.reject=i=>t(i),n.timeout=(i,o)=>b8.setTimeout(()=>n.reject(o),i),n.promise=r,n}var ko=V(()=>{v8();An();qh();tt();vc()});var T8=V(()=>{});function hz(){Jh!=null&&(cancelAnimationFrame(Jh),Jh=requestAnimationFrame(P8))}function Cw(e){let t=new SS(e);return CS.push(t),xw.willDispatch||(xw.willDispatch=!0,yS(A8)),t}function gz(e=!1){bp.forAll(t=>{t.removed=!0}),e&&I8()}function P8(){let e=performance.now();Jh=null,Jh=bp.some(r=>!r.paused&&!r.removed)?requestAnimationFrame(P8):null,xw.executeFrameTasks(e)}function wz(e){let t=e-E8;E8=e;let r=M8>0?M8:1e3/60,n=Math.max(0,t-r);Yh.time=e,Yh.frameDuration=r-n;for(let i=0;i<xS.length;i++){let o=performance.now(),s=xS[i];bp.forAll(c=>{c.paused||c.removed||(i===0&&c.ticks++,c.phases[s]&&(Yh.elapsedFrameTime=performance.now()-e,Yh.deltaTime=c.ticks===0?0:t,c.phases[s]?.call(c,Yh)))}),vz[i].push(performance.now()-o)}I8(),_z.push(performance.now()-e)}function I8(){bp.forAll(e=>{e.removed&&Sw.push(e)}),bp.removeUnorderedMany(Sw.data,Sw.length),Sw.clear()}function A8(){for(;CS.length;){let e=CS.shift();e.isActive&&e.callback()}xw.willDispatch=!1}function yz(e=1,t){let r=ci(),n=()=>{Ks(t)?r.reject(hs()):e===0?r():(--e,yS(()=>n()))};return n(),r.promise}function bz(e){return yz(1,e)}async function L8(e){await bz(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}var SS,E8,M8,Yh,xS,CS,bp,xw,Jh,Sw,vz,_z,Tw=V(()=>{m8();h8();y8();ko();T8();SS=class{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}},E8=0,M8=0,Yh={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},xS=["prepare","preRender","render","postRender","update","finish"],CS=[],bp=new jh;xw={frameTasks:bp,willDispatch:!1,clearFrameTasks:gz,dispatch:A8,executeFrameTasks:wz,reschedule:hz};Jh=null;Sw=new jh;vz=xS.map(e=>new Gh(e)),_z=new Gh("total")});function k8(e,t){if(!t)return e;for(let r of t)r!=null&&e.add(r);return e}function O8(e,t){let r=new Set;return k8(r,e),k8(r,t),r}var TS=V(()=>{});function Ew(){return++Sz}var Sz,N8=V(()=>{Sz=0});function xz(){}var vu,ES,R8,MS=V(()=>{Rh();vu=class extends ms{constructor(t){super(new ES(t)),this._observer&&R8.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&R8.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}},ES=class{constructor(t){this._notify=t,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let t=this._invalidCount;if(t===1)return this._invalidCount=0,void this._notify();this._invalidCount=t>0?t-1:0}destroy(){this.destroyed=!0,this._notify=xz}},R8=new FinalizationRegistry(e=>{e.deref()?.destroy()})});function IS(e,t){let r=new vu(o),n=null,i=!1;function o(){if(!r||i)return;if(PS)return void Cz(o);let c=n;r.clear(),PS=!0,i=!0,n=Ao(r,e),i=!1,PS=!1,t(n,c),Tz()}function s(){r&&(r.destroy(),r=null,n=null)}return i=!0,n=Ao(r,e),i=!1,Ct(s)}function AS(e,t){let r=new vu(i),n=null;function i(){t(n,s)}function o(){r&&(r.destroy(),r=null),n=null}function s(){return r?(r.clear(),n=Ao(r,e),n):null}return s(),Ct(o)}function Cz(e){Mw.includes(e)||Mw.unshift(e)}function Tz(){for(;Mw.length;)Mw.pop()()}var PS,Mw,LS=V(()=>{oi();bu();MS();PS=!1,Mw=[]});function Aw(e){xc.delete(e),xc.add(e),Iw||(Iw=Cw(Mz))}function Ez(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function D8(e){for(let t of xc.values())t.target===e&&(t.removed=!0)}function Mz(){let e=10;for(;Iw&&e--;){Iw=null;let t=Pz(),r=Pw.acquire();for(let n of t){let i=n.uid;Ez(n),i===n.uid&&n.removed&&r.push(n)}for(let n of xc)n.removed&&(r.push(n),xc.delete(n));for(let n of r)_u.pool.release(n);Pw.release(r),Pw.release(t),Iz.forEach(n=>n())}}function Pz(){let e=Pw.acquire();e.length=xc.size;let t=0;for(let r of xc)e[t]=r,++t;return xc.clear(),e}function Az(e,t,r){let n=H_(e,t,r,(i,o,s)=>{let c,a,d=AS(()=>wu(i,o),(h,g)=>{i.__accessor__?.lifecycle===an.DESTROYED||c&&c.uid!==a?n.remove():(c||(c=_u.acquireUntracked(h,s,g,i,o),a=c.uid),Aw(c))});return Ct(()=>{d.remove(),c&&(c.uid!==a||c.removed||(c.removed=!0,Aw(c)),c=null),n=d=null})});return n}function Lz(e,t,r){let n=H_(e,t,r,(i,o,s)=>{let c=!1;return IS(()=>wu(i,o),(a,d)=>{i.__accessor__.lifecycle!==an.DESTROYED?c||(c=!0,jm(d,a)||s.call(i,a,d,o,i),c=!1):n.remove()})});return n}function $8(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==an.DESTROYED?n?Lz(e,t,r):Az(e,t,r):Ct()}function kz(e,t,r){let n,i,o=AS(e,(s,c)=>{n&&n.uid!==i?o.remove():(n||(n=_u.acquireTracked(s,t,c,r),i=n.uid),Aw(n))});return Ct(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,Aw(n)),n=null),o=null})}function Oz(e,t,r){let n=!1;return IS(e,(i,o)=>{n||(n=!0,r(o,i)||t(i,o),n=!1)})}function F8(e,t,r=!1,n=jT){return r?Oz(e,t,n):kz(e,t,n)}var Xh,_u,Pw,xc,Iw,Iz,kS=V(()=>{yw();oi();or();p8();Tw();TS();N8();yu();Nh();LS();Xs();(function(e){e[e.Untracked=0]="Untracked",e[e.Tracked=1]="Tracked"})(Xh||(Xh={}));_u=class{constructor(){this.uid=Ew(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(t,r,n,i,o){return this.pool.acquire(Xh.Untracked,t,r,n,i,o,jm)}static acquireTracked(t,r,n,i){return this.pool.acquire(Xh.Tracked,t,r,n,null,null,i)}notify(t,r){this.type===Xh.Untracked?this.callback.call(this.target,t,r,this.path,this.target):this.callback.call(null,t,r,void 0,void 0)}acquire(t,r,n,i,o,s,c){this.uid=Ew(),this.removed=!1,this.type=t,this.oldValue=r,this.callback=n,this.getValue=i,this.target=o,this.path=s,this.equals=c}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=Ew(),this.removed=!0}};_u.pool=new bw(_u);Pw=new Yn,xc=new Set;Iz=new Set});function Nz(e){if(e==null)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}var U8,V8,gs,OS,Wr,Cc=V(()=>{r8();vc();J_();yu();Nh();mp();u8();Y_();f8();kS();mt();ut();gs=Symbol("Accessor-Handles"),OS=Symbol("Accessor-Initialized"),Wr=class e{static createSubclass(t={}){if(Array.isArray(t))throw new Error("Multi-inheritance unsupported since 4.16");let{properties:r,declaredClass:n,constructor:i}=t;delete t.declaredClass,delete t.properties,delete t.constructor;let o=this;class s extends o{constructor(...a){super(...a),this.inherited=null,i&&i.apply(this,a)}}bc(s.prototype);for(let c in t){let a=t[c];s.prototype[c]=typeof a=="function"?function(...d){let h=this.inherited,g;this.inherited=function(...v){if(o.prototype[c])return o.prototype[c].apply(this,v)};try{g=a.apply(this,d)}catch(v){throw this.inherited=h,v}return this.inherited=h,g}:t[c]}for(let c in r){let a=Nz(r[c]);z(a)(s.prototype,c)}return Ie(n)(s)}static freeze(t){return t instanceof e?t.__accessor__.mutable=!1:Object.freeze(t),t}static isFrozen(t){return t instanceof e?!t.__accessor__.mutable:Object.isFrozen(t)}constructor(...t){if(this[U8]=null,this[V8]=!1,this.constructor===e)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let r=new ww(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:r}),t.length>0&&(r.ctorArgs=this.normalizeCtorArgs?.apply(this,t)??t[0]),gS()?.onInstanceConstruct(this)}postscript(){let t=this.__accessor__,r=t.ctorArgs;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[OS]=!0}initialize(){}[rw](){this[gs]=Vh(this[gs])}destroy(){this.destroyed||(D8(this),this.__accessor__.destroy(),gS()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[OS]}get destroyed(){return this.__accessor__?.lifecycle===an.DESTROYED||!1}commitProperty(t){ps(this,t)}hasOwnProperty(t){return this.__accessor__?this.__accessor__.has(t):Object.prototype.hasOwnProperty.call(this,t)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(t,r){return gp(this,t,r),this}watch(t,r,n){return $8(this,t,r,n)}addHandles(t,r){if(this.destroyed){let n=Array.isArray(t)?t:[t];for(let i of n)i.remove();return}(this[gs]??(this[gs]=new wp)).add(t,r)}removeHandles(t){this[gs]?.remove(t)}removeAllHandles(){this[gs]?.removeAll()}removeHandlesReference(t){this[gs]?.removeReference(t)}hasHandles(t){return this[gs]?.has(t)===!0}_override(t,r){r===void 0?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_clearOverride(t){return this.__accessor__.clearOverride(t)}_overrideIfSome(t,r){r==null?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_isOverridden(t){return this.__accessor__.isOverridden(t)}notifyChange(t){this.__accessor__.notifyChange(t)}_get(t){return this.__accessor__.internalGet(t)}_set(t,r){return this.__accessor__.internalSet(t,r),this}};U8=gs,V8=OS});var Lw,NS,z8=V(()=>{or();_c();Lw=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,qe(n.value),n.origin)}),r}get(t,r){r=this._normalizeOrigin(r);let n=this._values.get(t);return r==null||n?.origin===r?n?.value:void 0}originOf(t){return this._values.get(t)?.origin??st.USER}keys(t){t=this._normalizeOrigin(t);let r=[...this._values.keys()];return t==null?r:r.filter(n=>this._values.get(n)?.origin===t)}set(t,r,n){if((n=this._normalizeOrigin(n))===st.DEFAULTS){let i=this._values.get(t);if(i?.origin!=null&&i.origin>n)return}this._values.set(t,new NS(r,n))}delete(t,r){(r=this._normalizeOrigin(r))!=null&&this._values.get(t)?.origin!==r||this._values.delete(t)}has(t,r){return(r=this._normalizeOrigin(r))!=null?this._values.get(t)?.origin===r:this._values.has(t)}forEach(t){this._values.forEach(({value:r},n)=>t(r,n))}_normalizeOrigin(t){if(t!=null)return t===st.DEFAULTS?t:st.USER}},NS=class{constructor(t,r){this.value=t,this.origin=r}}});function W8(e,t,r){t.keys().forEach(i=>{r.set(i,t.get(i),st.DEFAULTS)});let n=e.metadata;Object.keys(n).forEach(i=>{e.internalGet(i)&&r.set(i,e.internalGet(i),st.DEFAULTS)})}var B8=V(()=>{_c()});function Rz(e,t,r){if(!e?.read||e.read.enabled===!1||!e.read.source)return!1;let n=e.read.source;if(typeof n=="string"){if(n===t||n.includes(".")&&n.indexOf(t)===0&&q_(n,r))return!0}else for(let i of n)if(i===t||i.includes(".")&&i.indexOf(t)===0&&q_(i,r))return!0;return!1}function Dz(e){return e&&(!e.read||e.read.enabled!==!1&&!e.read.source)}function $z(e,t,r,n,i){let o=lw(t[r],i);Dz(o)&&(e[r]=!0);for(let s of Object.getOwnPropertyNames(t))o=lw(t[s],i),Rz(o,r,n)&&(e[s]=!0)}function Fz(e,t,r,n){let i=r.metadata,o=ZE(i[t],n),s=o?.default;if(s===void 0)return;let c=typeof s=="function"?s.call(e,t,n):s;c!==void 0&&r.set(t,c)}function G8(e,t,r=Uz){if(!t||typeof t!="object")return;let n=xi(e),i=n.metadata,o={};for(let s of Object.getOwnPropertyNames(t))$z(o,i,s,t,r);n.setDefaultOrigin(r.origin);for(let s of Object.getOwnPropertyNames(o)){let c=lw(i[s],r).read,a=c?.source,d;d=a&&typeof a=="string"?wu(t,a):t[s],c?.reader&&(d=c.reader.call(e,d,t,r)),d!==void 0&&n.set(s,d)}if(!r||!r.ignoreDefaults){n.setDefaultOrigin("defaults");for(let s of Object.getOwnPropertyNames(i))o[s]||Fz(e,s,n,r)}n.setDefaultOrigin("user")}var Uz,j8=V(()=>{yu();Xs();uw();Uz={origin:"service"}});function Vz(e,t,r,n,i){let o={};return t.write?.writer?.call(e,n,o,r,i),o}function zz(e,t,r,n,i,o){if(!n?.write)return!1;let s=ps(e,r);if(!i&&n.write.overridePolicy){let c=n.write.overridePolicy.call(e,s,r,o??void 0);c!==void 0&&(i=c)}if(i||(i=n.write),!i||i.enabled===!1||i.layerContainerTypes&&o?.layerContainerType&&!i.layerContainerTypes.includes(o.layerContainerType))return!1;if((s===null&&!i.allowNull&&!i.writerEnsuresNonNull||s===void 0)&&i.isRequired){let c=new We("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return c&&o?.messages?o.messages.push(c):c&&!o&&ct.getLogger("esri.core.accessorSupport.write").error(c.name,c.message),!1}return!(s===void 0||s===null&&!i.allowNull&&!i.writerEnsuresNonNull||!i.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||t.store.originOf(r)===st.DEFAULTS)&&Wz(e,r,o,n,s)||!i.ignoreOrigin&&o?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<pw(o.origin))}function Wz(e,t,r,n,i){let o=n.default;if(o===void 0)return!1;if(n.defaultEquals!=null)return n.defaultEquals(i);if(typeof o=="function"){if(Array.isArray(i)){let s=o.call(e,t,r??void 0);return rc(s,i)}return!1}return o===i}function H8(e,t,r){if(e&&typeof e.toJSON=="function"&&(!e.toJSON.isDefaultToJSON||!e.write))return fp(t,e.toJSON(r));let n=xi(e),i=n.metadata;for(let o in i){let s=YE(i[o],r);if(!zz(e,n,o,s,void 0,r))continue;let c=ps(e,o),a=Vz(e,s,s.write&&typeof s.write.target=="string"?s.write.target:o,c,r);Object.keys(a).length>0&&(t=fp(t,a),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>fp(t,a,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:s8(n.store.originOf(o)),newOrigin:r.origin}))}return t}var q8=V(()=>{nc();An();tt();yu();_c();Xs();uw()});function Gz(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");let r=new this;return r.read(e,t),r}function Kh(e){return e&&typeof e=="object"&&"toJSON"in e&&typeof e.toJSON=="function"}var Bz,lt,Er=V(()=>{pt();Cc();z8();B8();j8();Xs();q8();ut();Bz=e=>{let t=class extends e{constructor(...r){super(...r);let n=xi(this),i=n.store,o=new Lw;n.store=o,W8(n,i,o)}read(r,n){G8(this,r,n)}write(r,n){return H8(this,r??{},n)}toJSON(r){return this.write({},r)}static fromJSON(r,n){return Gz.call(this,r,n)}};return t=N([Ie("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};lt=class extends Bz(Wr){};lt=N([Ie("esri.core.JSONSupport")],lt)});function Ti(e,t,r){let n,i;return t===void 0||Array.isArray(t)?(i=e,r=t,n=[void 0]):(i=t,n=Array.isArray(e)?e:[e]),(o,s)=>{let c=o.constructor.prototype;n.forEach(a=>{let d=tw(o,a,i);d.read&&typeof d.read=="object"||(d.read={}),d.read.reader=c[s],r&&(d.read.source=(d.read.source||[]).concat(r))})}}var vp=V(()=>{mt()});function jz(e){let t={};for(let r in e)t[e[r]]=r;return t}function Z8(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function Ki(){return function(e,t){return new Mr(e,{ignoreUnknown:!0,...t})}}var Mr,Ei=V(()=>{ds();Mr=class{constructor(t,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=jz(t),this.apiValues=Z8(this._apiToJSON),this.jsonValues=Z8(this._jsonToAPI),this.read=n=>this.fromJSON(n),this.write=(n,i,o)=>{let s=this.toJSON(n);s!==void 0&&Hs(o,s,i)},this.write.isJSONMapWriter=!0}toJSON(t){if(t==null)return null;if(this._apiToJSON.hasOwnProperty(t)){let r=this._apiToJSON[t];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?void 0:t}fromJSON(t){return t!=null&&this._jsonToAPI.hasOwnProperty(t)?this._jsonToAPI[t]:this._options.ignoreUnknown?void 0:t}}});var Qh,Oo,kw,Ow,Nw=V(()=>{Qh=class{constructor(t,r,n,i,o,s){this.semiMajorAxis=t,this.flattening=r,this.outerAtmosphereRimWidth=n,this.atmosphereHeight=i,this.scaleHeight=o;let c=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*c,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=s||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}},Oo=new Qh(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),kw=new Qh(3396190,1/169.8944472236118,23e4,6e4,.111),Ow=new Qh(1737400,0,0,0,0)});function Rw(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function RS(e){let t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}var Dw=V(()=>{});function Y8(e){let t=new Uint8Array(e),r="";for(let n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}var J8=V(()=>{});function rW(){let e=Ln.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${`${Ln.scheme}://${Ln.host}${Ln.port!=null?`:${Ln.port}`:""}`}${t}`}function Tc(e){if(!e)return null;let t={path:null,query:null},r=new kn(e),n=e.indexOf("?");return r.query===null?t.path=e:(t.path=e.slice(0,n),t.query=Ec(r.query)),r.fragment&&(t.hash=r.fragment,r.query===null&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function Ec(e){let t=e.split("&"),r={};for(let n of t){if(!n)continue;let i=n.indexOf("="),o,s;i<0?(o=decodeURIComponent(n),s=""):(o=decodeURIComponent(n.slice(0,i)),s=decodeURIComponent(n.slice(i+1)));let c=r[o];typeof c=="string"&&(c=r[o]=[c]),Array.isArray(c)?c.push(s):r[o]=s}return r}function Su(e,t){return e?t&&typeof t=="function"?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(n==null)return"";let i=encodeURIComponent(r)+"=",o=t?.[r];return o?i+encodeURIComponent(o(n)):Array.isArray(n)?n.map(s=>Kh(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)).join("&"):Kh(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)}).filter(r=>r).join("&"):""}function eM(e=!1){let t,r=_p.proxyUrl;if(typeof e=="string"){t=iW(e);let n=Sp(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw Hz().warn(X8),new We("urlUtils:proxy-not-set",X8);return t&&DS()&&(r=Gw(r)),Tc(r)}function tM(e){let t=e.indexOf("?");return t!==-1?(eg.path=e.slice(0,t),eg.query=e.slice(t+1)):(eg.path=e,eg.query=null),eg}function rM(e){return e=(e=oM(e=lW(e=tM(e).path),!0)).toLowerCase()}function nM(e){let t={proxyUrl:e.proxyUrl,urlPrefix:rM(e.urlPrefix)},r=_p.proxyRules,n=t.urlPrefix,i=r.length;for(let o=0;o<r.length;o++){let s=r[o].urlPrefix;if(n.indexOf(s)===0){if(n.length===s.length)return-1;i=o;break}s.indexOf(n)===0&&(i=o+1)}return r.splice(i,0,t),i}function Sp(e){let t=_p.proxyRules,r=rM(e);for(let n=0;n<t.length;n++)if(r.indexOf(t[n].urlPrefix)===0)return t[n]}function FS(e,t=_p.interceptors){let r=n=>n==null||n instanceof RegExp&&n.test(e)||typeof n=="string"&&e.startsWith(n);if(t){for(let n of t)if(Array.isArray(n.urls)){if(n.urls.some(r))return n}else if(r(n.urls))return n}return null}function Jn(e,t,r=!1){if(!e||!t)return!1;let n=$S(e),i=$S(t);return!(!r&&n.scheme!==i.scheme)&&n.host!=null&&i.host!=null&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function Uw(e){if(typeof e=="string"){if(!iM(e))return!0;e=$S(e)}if(Jn(e,Ln))return!0;let t=_p.trustedServers||[];for(let r=0;r<t.length;r++){let n=nW(t[r]);for(let i=0;i<n.length;i++)if(Jn(e,n[i]))return!0}return!1}function nW(e){return $w[e]||(VS(e)||Pc(e)?$w[e]=[new kn(Mc(e))]:$w[e]=[new kn(`http://${e}`),new kn(`https://${e}`)]),$w[e]}function Mc(e,t=tW,r){return Pc(e)?r?.preserveProtocolRelative?e:Ln.scheme==="http"&&Ln.authority===li(e).slice(2)?`http:${e}`:`https:${e}`:VS(e)?e:US(e[0]==="/"?cW(t):t,e)}function Vw(e){return e=fW(e=dW(e=uW(e=Mc(e=e.trim()))))}function US(...e){let t=e.filter(IT);if(!t?.length)return;let r=[];if(iM(t[0])){let i=t[0],o=i.indexOf("//");o!==-1&&(r.push(i.slice(0,o+1)),sW(t[0])&&(r[0]+="/"),t[0]=i.slice(o+2))}else t[0][0]==="/"&&r.push("");let n=t.reduce((i,o)=>o?i.concat(o.split("/")):i,[]);for(let i=0;i<n.length;i++){let o=n[i];o===".."&&r.length>0&&r[r.length-1]!==".."?r.pop():(!o&&i===n.length-1||o&&(o!=="."||r.length===0))&&r.push(o)}return r.join("/")}function li(e,t=!1){if(e==null||zw(e)||Ww(e))return null;let r=e.indexOf("://");if(r===-1&&Pc(e))r=2;else{if(r===-1)return null;r+=3}let n=e.indexOf("/",r);return n!==-1&&(e=e.slice(0,n)),t&&(e=oM(e,!0)),e}function iM(e){return Pc(e)||VS(e)}function zw(e){return e!=null&&e.slice(0,5)==="blob:"}function Ww(e){return e!=null&&e.slice(0,5)==="data:"}function Bw(e){return Y8(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Pc(e){return e!=null&&e[0]==="/"&&e[1]==="/"}function VS(e){return e!=null&&K8.test(e)}function iW(e){return e!=null&&qz.test(e)||Ln.scheme==="https"&&Pc(e)}function oW(e){return e!=null&&Q8.test(e)||Ln.scheme==="http"&&Pc(e)}function sW(e){return e!=null&&Zz.test(e)}function Gw(e){return Pc(e)?`https:${e}`:e.replace(Q8,"https:")}function aW(){return Ln.scheme==="http"}function DS(){return Ln.scheme==="https"}function oM(e,t=!1){return Pc(e)?e.slice(2):(e=e.replace(K8,""),t&&e.length>1&&e[0]==="/"&&e[1]==="/"&&(e=e.slice(2)),e)}function cW(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return r===-1?e:e.slice(0,r)}function lW(e){return e.endsWith("/")?e:`${e}/`}function uW(e){if(/^https?:\/\//i.test(e)){let t=tM(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}function dW(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function fW(e){let t=_p.httpsDomains;if(!oW(e))return e;let r=e.indexOf("/",7),n;if(n=r===-1?e:e.slice(0,r),n=n.toLowerCase().slice(7),Yz.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return aW()&&n===Ln.authority&&!Jz.test(e)||(DS()&&n===Ln.authority||t&&t.some(i=>n===i||n.endsWith(`.${i}`))||DS()&&!Sp(e))&&(e=Gw(e)),e}function $S(e){return typeof e=="string"?new kn(Mc(e)):(e.scheme||(e.scheme=Ln.scheme),e)}function xp(e,t){if(!t)return e;let r=Tc(e),n=r.query||{};for(let[o,s]of Object.entries(t))s!=null&&(n[o]=s);let i=Su(n);return i?`${r.path}?${i}`:r.path}var Hz,_p,X8,K8,Q8,qz,Zz,Yz,Jz,Xz,Kz,kn,$w,Qz,Ln,eW,tW,Fw,eg,Ic=V(()=>{yc();nc();An();Er();tt();Dw();J8();Hz=()=>ct.getLogger("esri.core.urlUtils"),_p=Tt.request,X8="esri/config: esriConfig.request.proxyUrl is not set.",K8=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,Q8=/^\s*http:/i,qz=/^\s*https:/i,Zz=/^\s*file:/i,Yz=/:\d+$/,Jz=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,Xz=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),Kz=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$"),kn=class{constructor(t=""){this.uri=t,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let r=this.uri.match(Xz);this.scheme=r[2]||(r[1]?"":null),this.authority=r[4]||(r[3]?"":null),this.path=r[5],this.query=r[7]||(r[6]?"":null),this.fragment=r[9]||(r[8]?"":null),this.authority!=null&&(r=this.authority.match(Kz),this.user=r[3]||null,this.password=r[4]||null,this.host=r[6]||r[7],this.port=r[9]||null)}toString(){return this.uri}},$w={},Qz=new kn(Tt.applicationUrl),Ln=Qz,eW=rW(),tW=eW,Fw=()=>Ln;eg={path:"",query:""}});function sM(e){Br=e}var pW,Br,mW,jw=V(()=>{et();Ic();F_();Symbol.dispose??(Symbol.dispose=Symbol("Symbol.dispose")),Symbol.asyncDispose??(Symbol.asyncDispose=Symbol("Symbol.asyncDispose"));pW="4.32",mW=pW;mW=`4.32.0-next.${q0}`;he("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),he("host-webworker")});function gW(e){let t=li(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!hW.has(t)&&!e.endsWith("/sharing/rest/generateToken")}function aM(e,t){return!(!t&&!Tt.apiKey||!gW(e))}var hW,cM=V(()=>{yc();Ic();hW=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"])});function uM(e,t,r=!1,n){return new Promise((i,o)=>{if(Ks(n))return void o(lM());let s=()=>{d(),o(new Error(`Unable to load ${t}`))},c=()=>{let h=e;d(),i(h)},a=()=>{if(!e)return;let h=e;d(),h.src="",o(lM())},d=()=>{he("esri-image-decode")||(e.removeEventListener("error",s),e.removeEventListener("load",c)),s=null,c=null,e=null,n?.removeEventListener("abort",a),a=null,r&&URL.revokeObjectURL(t)};n?.addEventListener("abort",a),he("esri-image-decode")?e.decode().then(c,s):(e.addEventListener("error",s),e.addEventListener("load",c))})}function lM(){try{return new DOMException("Aborted","AbortError")}catch{let e=new Error;return e.name="AbortError",e}}function dM(){return new Error(wW)}function fM(e){Tt.request.crossOriginNoCorsDomains||(Tt.request.crossOriginNoCorsDomains={});let t=Tt.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[li(r)??""]=0:(t[li("http://"+r)??""]=0,t[li("https://"+r)??""]=0)}function pM(e){let t=Tt.request.crossOriginNoCorsDomains;if(t){let r=li(e);if(r)return r=r.toLowerCase(),!Jn(r,Fw())&&t[r]<Date.now()-36e5}return!1}async function mM(e){let t=Tc(e);e=t.path,t.query?.f==="json"&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}let r=Tt.request.crossOriginNoCorsDomains,n=li(e);r&&n&&(r[n.toLowerCase()]=Date.now())}var wW,hM=V(()=>{yc();et();ko();Ic();wW="Timeout exceeded"});var gM={};os(gM,{execute:()=>yW});function yW(e,t){let r=t.responseType;r?r!=="array-buffer"&&r!=="blob"&&r!=="json"&&r!=="native"&&r!=="native-request-init"&&r!=="text"&&(r="text"):r="json",t.responseType=r;let n=t.signal;return delete t.signal,globalThis.invokeStaticMessage("request",{url:e,options:t},{signal:n}).then(async i=>{let o,s,c,a,d;if(i.data)if(i.data instanceof ArrayBuffer){if(!(r!=="json"&&r!=="text"&&r!=="blob"||(o=new Blob([i.data]),r!=="json"&&r!=="text"||(a=await o.text(),r!=="json")))){try{s=JSON.parse(a||null)}catch(h){let g={...h,url:e,requestOptions:t};throw new We("request:server",h.message,g)}if(s.error){let h={...s.error,url:e,requestOptions:t};throw new We("request:server",s.error.message,h)}}}else r==="native"&&(i.data.signal=n,c=await fetch(i.data.url,i.data),i.httpStatus=c.status);switch(r){case"blob":d=o;break;case"json":d=s;break;case"native":d=c;break;case"text":d=a;break;default:d=i.data}return{data:d,httpStatus:i.httpStatus,requestOptions:t,ssl:i.ssl,url:e}})}var wM=V(()=>{An()});var Cp,xu,Hw=V(()=>{pt();Cc();oi();ut();Cp=class e{constructor(){this._emitter=new e.EventEmitter(this)}emit(t,r){return this._emitter.emit(t,r)}on(t,r){return this._emitter.on(t,r)}once(t,r){return this._emitter.once(t,r)}hasEventListener(t){return this._emitter.hasEventListener(t)}};(function(e){class t{constructor(i=null){this._target=i,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(i,o){let s=this._listenersMap?.get(i);if(!s)return!1;let c=this._target||this,a=!1;for(let d of s.slice()){let h="deref"in d?d.deref():d;h?h?.call(c,o):a=!0}return a&&(s=s.filter(d=>!("deref"in d)||d.deref()!=null),this._listenersMap.set(i,s)),s.length>0}on(i,o){if(Array.isArray(i)){let c=i.map(a=>this.on(a,o));return gu(c)}if(i.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??(this._listenersMap=new Map);let s=this._listenersMap.get(i)||[];return s.push(o),this._listenersMap.set(i,s),Ct(()=>{let c=this._listenersMap?.get(i),a=c?.indexOf(o)??-1;a>=0&&c.splice(a,1)})}once(i,o){let s=this.on(i,c=>{s.remove(),("deref"in o?o.deref():o)?.call(null,c)});return s}hasEventListener(i){let o=this._listenersMap?.get(i);return o!=null&&o.length>0}}e.EventEmitter=t,e.EventedMixin=n=>{let i=class extends n{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(o,s){return this._emitter.emit(o,s)}on(o,s){return this._emitter.on(o,s)}once(o,s){return this._emitter.once(o,s)}hasEventListener(o){return this._emitter.hasEventListener(o)}};return i=N([Ie("esri.core.Evented")],i),i};let r=class extends Wr{constructor(){super(...arguments),this._emitter=new Cp.EventEmitter(this)}destroy(){this._emitter.clear()}emit(n,i){return this._emitter.emit(n,i)}on(n,i){return this._emitter.on(n,i)}once(n,i){return this._emitter.once(n,i)}hasEventListener(n){return this._emitter.hasEventListener(n)}};r=N([Ie("esri.core.Evented.EventedAccessor")],r),e.EventedAccessor=r})(Cp||(Cp={}));xu=Cp});var zS,yM=V(()=>{zS=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]])});function bW(e){return"timeZoneIANA"in e}function vW(e){return e.startsWith("UTC")}function qw(e,t=No){return e?bW(e)?e.timeZoneIANA:_W(e,t):t}function _W(e,t=No){if(!e||!zS.has(e.timeZone))return t;let r=zS.get(e.timeZone);return vW(e.timeZone)||e.respectsDaylightSaving?r:SW(r)}function SW(e){let t=Se.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return r===0?"Etc/UTC":`Etc/GMT${At.instance(-r).formatOffset(0,"narrow")}`}var No,Cu,Tp,bM,tg=V(()=>{yM();In();No="system",Cu="unknown",Tp="UTC",bM=Intl.DateTimeFormat().resolvedOptions().timeZone});function EW(e){let t=WS.get(e);if(!t){let r=Ji(),n=CW[r]||r,i=Zw(e.timeZone??No),o={...e,timeZone:i};t=new Intl.DateTimeFormat(n,o),WS.set(e,t)}return t}function Ep(e,t=TW){return EW(t).format(e)}function Zw(e){switch(e){case No:return bM;case Cu:return Tp;default:return e}}var ws,rg,ng,ig,Ac,Tu,vM,og,sg,xW,Fde,CW,WS,TW,Yw=V(()=>{Ei();gc();tg();In();ws={year:"numeric",month:"numeric",day:"numeric"},rg={year:"numeric",month:"long",day:"numeric"},ng={year:"numeric",month:"short",day:"numeric"},ig={year:"numeric",month:"long",weekday:"long",day:"numeric"},Ac={hour:"numeric",minute:"numeric"},Tu={...Ac,second:"numeric"},vM={hourCycle:"h23"},og={...Ac,...vM},sg={...Tu,...vM},xW={"short-date":ws,"short-date-short-time":{...ws,...Ac},"short-date-short-time-24":{...ws,...og},"short-date-long-time":{...ws,...Tu},"short-date-long-time-24":{...ws,...sg},"short-date-le":ws,"short-date-le-short-time":{...ws,...Ac},"short-date-le-short-time-24":{...ws,...og},"short-date-le-long-time":{...ws,...Tu},"short-date-le-long-time-24":{...ws,...sg},"long-month-day-year":rg,"long-month-day-year-short-time":{...rg,...Ac},"long-month-day-year-short-time-24":{...rg,...og},"long-month-day-year-long-time":{...rg,...Tu},"long-month-day-year-long-time-24":{...rg,...sg},"day-short-month-year":ng,"day-short-month-year-short-time":{...ng,...Ac},"day-short-month-year-short-time-24":{...ng,...og},"day-short-month-year-long-time":{...ng,...Tu},"day-short-month-year-long-time-24":{...ng,...sg},"long-date":ig,"long-date-short-time":{...ig,...Ac},"long-date-short-time-24":{...ig,...og},"long-date-long-time":{...ig,...Tu},"long-date-long-time-24":{...ig,...sg},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":Ac,"long-time":Tu},Fde=Ki()({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"}),CW={ar:"ar-u-nu-latn-ca-gregory"},WS=new WeakMap,TW=xW["short-date-short-time"];lp(()=>{WS=new WeakMap})});function PW(e){let t=e||_M;if(!Jw.has(t)){let r=Ji(),n=MW[Ji()]||r;Jw.set(t,new Intl.NumberFormat(n,e))}return Jw.get(t)}function Mp(e,t){return Object.is(e,-0)&&(e=0),PW(t).format(e)}var MW,Jw,_M,BS=V(()=>{gc();MW={ar:"ar-u-nu-latn"},Jw=new WeakMap,_M={};lp(()=>{Jw=new WeakMap,_M={}})});function GS(e,t,r={}){let{format:n={}}=r;return fs(e,i=>IW(i,t,n))}function IW(e,t,r){let n,i,o=e.indexOf(":");if(o===-1?n=e.trim():(n=e.slice(0,o).trim(),i=e.slice(o+1).trim()),!n)return"";let s=Hi(n,t);if(s==null)return"";let c=(i?r?.[i]:null)??r?.[n];return c?AW(s,c):i?LW(s,i):jS(s)}function AW(e,t){switch(t.type){case"date":return Ep(e,t.intlOptions);case"number":return Mp(e,t.intlOptions);default:return SM().warn("missing format descriptor for key {key}"),jS(e)}}function LW(e,t){switch(t.toLowerCase()){case"dateformat":return Ep(e);case"numberformat":return Mp(e);default:return SM().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?Ep(e):/^numberformat/i.test(t)?Mp(e):jS(e)}}function jS(e){switch(typeof e){case"string":return e;case"number":return Mp(e);case"boolean":return""+e;default:return e instanceof Date?Ep(e):""}}var SM,HS=V(()=>{tt();ds();ic();Yw();BS();SM=()=>ct.getLogger("esri.intl.substitute")});function CM(e){return e in kW}function TM(e){for(let t of Pp.keys())MM(e.pattern,t)&&Pp.delete(t)}function EM(e){return ag.includes(e)||(TM(e),ag.unshift(e)),Ct(()=>{let t=ag.indexOf(e);t>-1&&(ag.splice(t,1),TM(e))})}async function qS(e){let t=Ji();Pp.has(e)||Pp.set(e,OW(e,t));let r=Pp.get(e);return r&&await NW.add(r),r}function ZS(e){if(!xM.test(e))return null;let t=xM.exec(e);if(t===null)return null;let[,r,n]=t,i=r+(n?"-"+n.toUpperCase():"");return CM(i)?i:CM(r)?r:null}async function OW(e,t){let r=[];for(let n of ag)if(MM(n.pattern,e))try{return await n.fetchMessageBundle(e,t)}catch(i){r.push(i)}throw r.length?new We("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new We("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}function MM(e,t){return typeof e=="string"?t.startsWith(e):e.test(t)}var xM,kW,ag,Pp,NW,cg=V(()=>{An();oi();ko();gc();xM=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,kW={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};ag=[],Pp=new Map;lp(()=>{Pp.clear()});NW=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=ci())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&this._numLoading===0&&(this._dfd.resolve(),this._dfd=null)}}});async function RW(e,t,r,n){let i=t.exec(r);if(!i)throw new We("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);let o=i[1]?`${i[1]}/`:"",s=i[2],c=ZS(n),a=`${o}${s}.json`,d=c?`${o}${s}_${c}.json`:a,h;try{h=await PM(e(d))}catch(g){if(d===a)throw new We("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:g});try{h=await PM(e(a))}catch(v){throw new We("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:v})}}return h}async function PM(e){if(IM.fetchBundleAsset!=null)return IM.fetchBundleAsset(e);let t=await cr(e,{responseType:"text"});return JSON.parse(t.data)}function AM(e){return new YS(e)}var YS,IM,LM=V(()=>{Xw();An();cg();YS=class{constructor({base:t="",pattern:r,location:n=new URL(window.location.href)}){let i;i=typeof n=="string"?o=>new URL(o,new URL(n,window.location.href)).href:n instanceof URL?o=>new URL(o,n).href:n,this.pattern=typeof r=="string"?new RegExp(`^${r}`):r,this.getAssetUrl=i,t=t?t.endsWith("/")?t:t+"/":"",this.matcher=new RegExp(`^${t}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(t,r){return RW(this.getAssetUrl,this.matcher,t,r)}};IM={}});var JS=V(()=>{Yw();BS();HS();gc();cg();cg();LM();Kw();EM(AM({pattern:"esri/",location:Ip}))});function kM(e){return typeof e=="string"?document.getElementById(e):e??null}var OM=V(()=>{});var Lc,XS,KS,NM,RM=V(()=>{pt();Cc();ko();ut();(function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"})(Lc||(Lc={}));XS=class{constructor(){this._resolver=ci(),this._status=Lc.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=Lc.RESOLVED,this._cleanUp()},()=>{this._status=Lc.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===Lc.RESOLVED}isRejected(){return this._status===Lc.REJECTED}isFulfilled(){return this._status!==Lc.PENDING}abort(){this._resolver.reject(hs())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let t=ci(),r=[...this._resolvingPromises,t.promise],n=this._allPromise=Promise.all(r);n.then(()=>{this.isFulfilled()||this._allPromise!==n||this._resolver.resolve()},i=>{this.isFulfilled()||this._allPromise!==n||Zh(i)||this._resolver.reject(i)}),t.resolve()}},KS=e=>{let t=class extends e{constructor(...r){super(...r),this._promiseProps=new XS,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(r,n){return this._promiseProps.promise.then(()=>this).then(r,n)}catch(r){return this.when(null,r)}addResolvingPromise(r){r&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in r?r.when():r)}};return t=N([Ie("esri.core.Promise")],t),t},NM=class extends KS(Wr){};NM=N([Ie("esri.core.Promise")],NM)});function DW(e){return{ok:!0,value:e}}function $W(e){return{ok:!1,error:e}}function FW(e){return e!=null&&e.ok===!0?e.value:null}function UW(e){return e!=null&&e.ok===!1?e.error:null}var Eu,DM=V(()=>{pt();Cc();vc();ko();mt();ut();Eu=class extends Wr{get value(){return FW(this._result)}get error(){return UW(this._result)}get finished(){return this._result!=null}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=i8(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(n=>{this._result=DW(n),this._cleanup()},n=>{this._result=$W(n),this._cleanup()}),this._abortHandle=Ci(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=zh(this._abortHandle),this._abortController=null}};N([z()],Eu.prototype,"value",null),N([z()],Eu.prototype,"error",null),N([z()],Eu.prototype,"finished",null),N([z()],Eu.prototype,"promise",void 0),N([z()],Eu.prototype,"_result",void 0),Eu=N([Ie("esri.core.asyncUtils.ReactiveTask")],Eu)});var yt,$M=V(()=>{(function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"})(yt||(yt={}))});function FM(e){return(t,r)=>{t[r]=e}}var UM=V(()=>{});var Qw,VM=V(()=>{pS();Qw=class extends yp{notify(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});function zM(e){e&&typeof e=="object"&&"destroy"in e&&typeof e.destroy=="function"&&e.destroy()}function QS(e){return e?e instanceof Rc?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function e4(e){if(e?.length)return e[0]}function VW(e,t,r,n){let i=Math.min(e.length-r,t.length-n),o=0;for(;o<i&&e[r+o]===t[n+o];)o++;return o}function WM(e,t,r,n){t&&t.forEach((i,o,s)=>{e.push(i),WM(e,r.call(n,i,o,s),r,n)})}var Qs,r4,n4,Qi,kc,Oc,Nc,t4,zW,Rc,BM=V(()=>{pt();yw();Hw();oi();or();Wh();$M();Tw();Xi();bu();mt();UM();ut();VM();r4=class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}},n4=class{constructor(t,r,n,i,o){this.target=t,this.added=r,this.removed=n,this.start=i,this.deleteCount=o}},Qi=new Lo(r4,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});kc=new Set,Oc=new Set,Nc=new Set,t4=new Map,zW=0,Rc=Qs=class extends xu.EventedAccessor{static isCollection(e){return e!=null&&e instanceof Qs}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new Qw,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:zW++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof Qs?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),this._emitter.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get items(){return Je(this._observable),this._items}set items(e){this._emitBeforeChanges(yt.ADD)||(this._splice(0,this.length,QS(e)),this._emitAfterChanges(yt.ADD))}hasEventListener(e){return!this.destroyed&&(e==="change"?this._chgListeners.length>0:this._emitter.hasEventListener(e))}on(e,t){if(this.destroyed)return Ct();if(e==="change"){let r=this._chgListeners,n={removed:!1,callback:t};return r.push(n),this._notifications&&this._notifications.push({listeners:r.slice(),items:this._items.slice(),changes:[]}),Ct(()=>{n.removed=!0,r.splice(r.indexOf(n),1)})}return this._emitter.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,n=this.on(e,i=>{r()?.call(null,i),n.remove()});return n}add(e,t){if(Je(this._observable),this._emitBeforeChanges(yt.ADD))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(yt.ADD),this}addMany(e,t=this._items.length){if(Je(this._observable),!e?.length)return this;if(this._emitBeforeChanges(yt.ADD))return this;let r=this.getNextIndex(t);return this._splice(r,0,QS(e)),this._emitAfterChanges(yt.ADD),this}at(e){if(Je(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if(Je(this._observable),!this.length||this._emitBeforeChanges(yt.REMOVE))return[];let e=this._removeAllRaw();return this._emitAfterChanges(yt.REMOVE),e}_removeAllRaw(){return this.length===0?[]:this._splice(0,this.length)||[]}clone(){return Je(this._observable),this._createNewInstance({items:this._items.map(qe)})}concat(...e){Je(this._observable);let t=e.map(QS);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if(Je(this._observable),!this.length||this._emitBeforeChanges(yt.REMOVE))return;let r=this._splice(0,this.length),n=r.length;for(let i=0;i<n;i++)e.call(t,r[i],i,r);this._emitAfterChanges(yt.REMOVE)}destroyAll(){this.drain(zM)}destroyMany(e){let t=this.removeMany(e);return t.forEach(zM),t}every(e,t){return Je(this._observable),this._items.every(e,t)}filter(e,t){Je(this._observable);let r=arguments.length===2?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return Je(this._observable),this._items.find(e,t)}findIndex(e,t){return Je(this._observable),this._items.findIndex(e,t)}flatten(e,t){Je(this._observable);let r=[];return WM(r,this,e,t),new Qs(r)}forEach(e,t){return Je(this._observable),this._items.forEach(e,t)}getItemAt(e){return Je(this._observable),this._items[e]}getNextIndex(e){Je(this._observable);let t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return Je(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return Je(this._observable),this._items.indexOf(e,t)}join(e=","){return Je(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return Je(this._observable),this._items.lastIndexOf(e,t)}map(e,t){Je(this._observable);let r=this._items.map(e,t);return new Qs({items:r})}reorder(e,t=this.length-1){Je(this._observable);let r=this.indexOf(e);if(r!==-1){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(yt.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(yt.MOVE)}return e}}pop(){if(Je(this._observable),!this.length||this._emitBeforeChanges(yt.REMOVE))return;let e=e4(this._splice(this.length-1,1));return this._emitAfterChanges(yt.REMOVE),e}push(...e){return Je(this._observable),this._emitBeforeChanges(yt.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(yt.ADD)),this.length}reduce(e,t){Je(this._observable);let r=this._items;return arguments.length===2?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){Je(this._observable);let r=this._items;return arguments.length===2?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return Je(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if(Je(this._observable),e<0||e>=this.length||this._emitBeforeChanges(yt.REMOVE))return;let t=e4(this._splice(e,1));return this._emitAfterChanges(yt.REMOVE),t}removeMany(e){if(Je(this._observable),!e?.length||this._emitBeforeChanges(yt.REMOVE))return[];let t=e instanceof Qs?e.toArray():e,r=this._items,n=[],i=t.length;for(let o=0;o<i;o++){let s=t[o],c=r.indexOf(s);if(c>-1){let a=1+VW(t,r,o+1,c+1),d=this._splice(c,a);d&&d.length>0&&n.push.apply(n,d),o+=a-1}}return this._emitAfterChanges(yt.REMOVE),n}reverse(){if(Je(this._observable),this._emitBeforeChanges(yt.MOVE))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(yt.MOVE),this}shift(){if(Je(this._observable),!this.length||this._emitBeforeChanges(yt.REMOVE))return;let e=e4(this._splice(0,1));return this._emitAfterChanges(yt.REMOVE),e}slice(e=0,t=this.length){return Je(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return Je(this._observable),this._items.some(e,t)}sort(e){if(Je(this._observable),!this.length||this._emitBeforeChanges(yt.MOVE))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(yt.MOVE),this}splice(e,t,...r){Je(this._observable);let n=(t?yt.REMOVE:0)|(r.length?yt.ADD:0);if(this._emitBeforeChanges(n))return[];let i=this._splice(e,t,r)||[];return this._emitAfterChanges(n),i}toArray(){return Je(this._observable),this._items.slice()}toJSON(){return Je(this._observable),this.toArray()}toLocaleString(){return Je(this._observable),this._items.toLocaleString()}toString(){return Je(this._observable),this._items.toString()}unshift(...e){return Je(this._observable),!e.length||this._emitBeforeChanges(yt.ADD)||(this._splice(0,0,e),this._emitAfterChanges(yt.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let n=this._items,i=this.itemType,o,s;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=Cw(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){let c=Qi.acquire();c.target=this,c.cancellable=!0;for(let a=0,d=s.length;a<d;a++)o=s[a],c.reset(o),this.emit("before-remove",c),c.defaultPrevented&&(s.splice(a,1),n.splice(e,0,o),e+=1,a-=1,d-=1);Qi.release(c)}if(this.length=this._items.length,this.hasEventListener("after-remove")){let c=Qi.acquire();c.target=this,c.cancellable=!1;let a=s.length;for(let d=0;d<a;d++)c.reset(s[d]),this.emit("after-remove",c);Qi.release(c)}}if(r?.length){if(i){let h=[];for(let g of r){let v=i.ensureType(g);v==null&&g!=null||h.push(v)}r=h}let c=this.hasEventListener("before-add"),a=this.hasEventListener("after-add"),d=e===this.length;if(c||a){let h=Qi.acquire();h.target=this,h.cancellable=!0;let g=Qi.acquire();g.target=this,g.cancellable=!1;for(let v of r)c?(h.reset(v),this.emit("before-add",h),h.defaultPrevented||(d?n.push(v):n.splice(e++,0,v),this._set("length",n.length),a&&(g.reset(v),this.emit("after-add",g)))):(d?n.push(v):n.splice(e++,0,v),this._set("length",n.length),g.reset(v),this.emit("after-add",g));Qi.release(g),Qi.release(h)}else{if(d)for(let h of r)n.push(h);else n.splice(e,0,...r);this._set("length",n.length)}}if((r?.length||s?.length)&&this._notifyChangeEvent(r,s),this.hasEventListener("after-splice")){let c=new n4(this,r,s,e,t);this.emit("after-splice",c)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=Qi.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,Qi.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=Qi.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),Qi.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let r=t.changes;kc.clear(),Oc.clear(),Nc.clear();for(let{added:a,removed:d}of r){if(a)if(Nc.size===0&&Oc.size===0)for(let h of a)kc.add(h);else for(let h of a)Oc.has(h)?(Nc.add(h),Oc.delete(h)):Nc.has(h)||kc.add(h);if(d)if(Nc.size===0&&kc.size===0)for(let h of d)Oc.add(h);else for(let h of d)kc.has(h)?kc.delete(h):(Nc.delete(h),Oc.add(h))}let n=Yn.acquire();kc.forEach(a=>{n.push(a)});let i=Yn.acquire();Oc.forEach(a=>{i.push(a)});let o=this._items,s=t.items,c=Yn.acquire();if(Nc.forEach(a=>{s.indexOf(a)!==o.indexOf(a)&&c.push(a)}),t.listeners&&(n.length||i.length||c.length)){let a={target:this,added:n,removed:i,moved:c},d=t.listeners.length;for(let h=0;h<d;h++){let g=t.listeners[h];g.removed||g.callback.call(this,a)}}Yn.release(n),Yn.release(i),Yn.release(c)}kc.clear(),Oc.clear(),Nc.clear()}};Rc.ofType=e=>{if(!e)return Qs;if(t4.has(e))return t4.get(e);let t=null;if(typeof e=="function")t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let n in e.typeMap){let i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let r=class extends Qs{};return N([FM({Type:e,ensureType:typeof e=="function"?si(e):Io(e)})],r.prototype,"itemType",void 0),r=N([Ie(`esri.core.Collection<${t}>`)],r),t4.set(e,r),r},N([z()],Rc.prototype,"_updating",void 0),N([z()],Rc.prototype,"length",void 0),N([z()],Rc.prototype,"items",null),N([z({readOnly:!0})],Rc.prototype,"updating",null),Rc=Qs=N([Ie("esri.core.Collection")],Rc)});function lg(e,t,r={}){return jM(e,t,r,WW)}function GM(e,t,r={}){return jM(e,t,r,BW)}function jM(e,t,r={},n){let i=null,o=r.once?(s,c)=>{n(s)&&(zh(i),t(s,c))}:(s,c)=>{n(s)&&t(s,c)};if(i=F8(e,o,r.sync,r.equals),r.initial){let s=e();o(s,s)}return i}function WW(e){return!0}function BW(e){return!!e}var ey,i4=V(()=>{DM();BM();qh();oi();vc();ko();kS();LS();ey={sync:!0,initial:!0}});function HM(){if(GW)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=r=>e[r].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}var GW,qM=V(()=>{GW="randomUUID"in crypto});function HW(e){let t="__accessorMetadata__"in e?si(e):e;return function(...r){if(r.push(t),typeof r[2]=="number")throw new Error("Using @cast has parameter decorator is not supported since 4.16");return qW.apply(this,r)}}function qW(e,t,r,n){pp(e,t).cast=n}function ZW(e){return(t,r)=>{pp(t,e).cast=t[r]}}function ea(...e){if(e.length!==3||typeof e[1]!="string")return e.length===1&&jW.call(e[0])==="[object Function]"?HW(e[0]):e.length===1&&typeof e[0]=="string"?ZW(e[0]):void 0}var jW,ug=V(()=>{Xi();mp();jW=Object.prototype.toString});function KM(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function YW(e,t,r){}function JW(e,t,r){}function KW(e,t){return XW.test(t)?"":t}function eB(e,t){e=dg.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,s="";function c(){if(!n){var h=dg.trim(e.slice(i,o)),g=h.indexOf(":");if(g!==-1){var v=dg.trim(h.slice(0,g)),S=dg.trim(h.slice(g+1));if(v){var M=t(i,s.length,v,S,h);M&&(s+=M+"; ")}}}i=o+1}for(;o<r;o++){var a=e[o];if(a==="/"&&e[o+1]==="*"){var d=e.indexOf("*/",o+2);if(d===-1)break;o=d+1,i=o+1,n=!1}else a==="("?n=!0:a===")"?n=!1:a===";"?n||c():a===`
|
|
4
4
|
`&&c()}return dg.trim(s)}function ZM(e){return e==null}function nB(e){var t={};for(var r in e)t[r]=e[r];return t}function QM(e){e=nB(e||{}),e.whiteList=e.whiteList||ty.whiteList,e.onAttr=e.onAttr||ty.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||ty.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||ty.safeAttrValue,this.options=e}function eP(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}function aB(e,t,r){}function cB(e,t,r){}function lB(e,t,r){}function uB(e,t,r){}function rP(e){return e.replace(fB,"<").replace(pB,">")}function dB(e,t,r,n){if(r=cP(r),t==="href"||t==="src"){if(r=sy.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(t==="background"){if(ry.lastIndex=0,ry.test(r))return""}else if(t==="style"){if(YM.lastIndex=0,YM.test(r)||(JM.lastIndex=0,JM.test(r)&&(ry.lastIndex=0,ry.test(r))))return"";n!==!1&&(n=n||tP,r=n.process(r))}return r=lP(r),r}function nP(e){return e.replace(mB,""")}function iP(e){return e.replace(hB,'"')}function oP(e){return e.replace(gB,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function sP(e){return e.replace(wB,":").replace(yB," ")}function aP(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return sy.trim(t)}function cP(e){return e=iP(e),e=oP(e),e=sP(e),e=aP(e),e}function lP(e){return e=nP(e),e=rP(e),e}function bB(){return""}function vB(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(s){return r?!0:sy.indexOf(e,s)!==-1}var i=[],o=!1;return{onIgnoreTag:function(s,c,a){if(n(s))if(a.isClosing){var d="[/removed]",h=a.position+d.length;return i.push([o!==!1?o:a.position,h]),o=!1,d}else return o||(o=a.position),"[removed]";else return t(s,c,a)},remove:function(s){var c="",a=0;return sy.forEach(i,function(d){c+=s.slice(a,d[0]),a=d[1]}),c+=s.slice(a),c}}}function _B(e){for(var t="",r=0;r<e.length;){var n=e.indexOf("<!--",r);if(n===-1){t+=e.slice(r);break}t+=e.slice(r,n);var i=e.indexOf("-->",n);if(i===-1)break;r=i+3}return t}function SB(e){var t=e.split("");return t=t.filter(function(r){var n=r.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),t.join("")}function xB(e){var t=Dc.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=Dc.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function CB(e){return e.slice(0,2)==="</"}function TB(e,t,r){var n="",i=0,o=!1,s=!1,c=0,a=e.length,d="",h="";e:for(c=0;c<a;c++){var g=e.charAt(c);if(o===!1){if(g==="<"){o=c;continue}}else if(s===!1){if(g==="<"){n+=r(e.slice(i,c)),o=c,i=c;continue}if(g===">"){n+=r(e.slice(i,o)),h=e.slice(o,c+1),d=xB(h),n+=t(o,n.length,d,h,CB(h)),i=c+1,o=!1;continue}if(g==='"'||g==="'")for(var v=1,S=e.charAt(c-v);S.trim()===""||S==="=";){if(S==="="){s=g;continue e}S=e.charAt(c-++v)}}else if(g===s){s=!1;continue}}return i<e.length&&(n+=r(e.substr(i))),n}function MB(e,t){var r=0,n=0,i=[],o=!1,s=e.length;function c(v,S){if(v=Dc.trim(v),v=v.replace(EB,"").toLowerCase(),!(v.length<1)){var M=t(v,S||"");M&&i.push(M)}}for(var a=0;a<s;a++){var d=e.charAt(a),h,g;if(o===!1&&d==="="){o=e.slice(r,a),r=a+1,n=e.charAt(r)==='"'||e.charAt(r)==="'"?r:IB(e,a+1);continue}if(o!==!1&&a===n){if(g=e.indexOf(d,a+1),g===-1)break;h=Dc.trim(e.slice(n+1,g)),c(o,h),o=!1,a=g,r=a+1;continue}if(/\s|\n|\t/.test(d))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(g=PB(e,a),g===-1){h=Dc.trim(e.slice(r,a)),c(h),o=!1,r=a+1;continue}else{a=g-1;continue}else if(g=AB(e,a-1),g===-1){h=Dc.trim(e.slice(r,a)),h=XM(h),c(o,h),o=!1,r=a+1;continue}else continue}return r<e.length&&(o===!1?c(e.slice(r)):c(o,XM(Dc.trim(e.slice(r))))),Dc.trim(i.join(" "))}function PB(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function IB(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function AB(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function LB(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function XM(e){return LB(e)?e.substr(1,e.length-2):e}function ny(e){return e==null}function RB(e){var t=iy.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=iy.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=iy.trim(e.slice(0,-1))),{html:e,closing:r}}function DB(e){var t={};for(var r in e)t[r]=e[r];return t}function $B(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(n){return n.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function dP(e){e=DB(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Ro.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=$B(e.whiteList||e.allowList):e.whiteList=Ro.whiteList,e.onTag=e.onTag||Ro.onTag,e.onTagAttr=e.onTagAttr||Ro.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Ro.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Ro.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Ro.safeAttrValue,e.escapeHtml=e.escapeHtml||Ro.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new kB(e.css))}var oy,o4,lr,s4,Mu,XW,QW,dg,tB,ty,rB,iB,a4,c4,oB,sB,sy,tP,fB,pB,mB,hB,gB,wB,yB,ry,YM,JM,ay,Dc,EB,kB,Ro,uP,OB,NB,iy,FB,Ap,UB,fP,pP=V(()=>{oy=function(){return oy=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},oy.apply(this,arguments)},o4={exports:{}},lr={},s4={exports:{}},Mu={};XW=/javascript\s*\:/img;Mu.whiteList=KM();Mu.getDefaultWhiteList=KM;Mu.onAttr=YW;Mu.onIgnoreAttr=JW;Mu.safeAttrValue=KW;QW={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},dg=QW;tB=eB,ty=Mu,rB=tB;QM.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onAttr,o=r.onIgnoreAttr,s=r.safeAttrValue,c=rB(e,function(a,d,h,g,v){var S=n[h],M=!1;if(S===!0?M=S:typeof S=="function"?M=S(g):S instanceof RegExp&&(M=S.test(g)),M!==!0&&(M=!1),g=s(h,g),!!g){var I={position:d,sourcePosition:a,source:v,isWhite:M};if(M){var R=i(h,g,I);return ZM(R)?h+":"+g:R}else{var R=o(h,g,I);if(!ZM(R))return R}}});return c};iB=QM;(function(e,t){var r=Mu,n=iB;function i(s,c){var a=new n(c);return a.process(s)}t=e.exports=i,t.FilterCSS=n;for(var o in r)t[o]=r[o]})(s4,s4.exports);a4=s4.exports,c4={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}},oB=a4.FilterCSS,sB=a4.getDefaultWhiteList,sy=c4;tP=new oB;fB=/</g,pB=/>/g,mB=/"/g,hB=/"/g,gB=/&#([a-zA-Z0-9]*);?/gim,wB=/:?/gim,yB=/&newline;?/gim,ry=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,YM=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,JM=/u\s*r\s*l\s*\(.*/gi;lr.whiteList=eP();lr.getDefaultWhiteList=eP;lr.onTag=aB;lr.onIgnoreTag=cB;lr.onTagAttr=lB;lr.onIgnoreTagAttr=uB;lr.safeAttrValue=dB;lr.escapeHtml=rP;lr.escapeQuote=nP;lr.unescapeQuote=iP;lr.escapeHtmlEntities=oP;lr.escapeDangerHtml5Entities=sP;lr.clearNonPrintableCharacter=aP;lr.friendlyAttrValue=cP;lr.escapeAttrValue=lP;lr.onIgnoreTagStripAll=bB;lr.StripTagBody=vB;lr.stripCommentTag=_B;lr.stripBlankChar=SB;lr.cssFilter=tP;lr.getDefaultCSSWhiteList=sB;ay={},Dc=c4;EB=/[^a-zA-Z0-9\\_:.-]/gim;ay.parseTag=TB;ay.parseAttr=MB;kB=a4.FilterCSS,Ro=lr,uP=ay,OB=uP.parseTag,NB=uP.parseAttr,iy=c4;dP.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onTag,o=r.onIgnoreTag,s=r.onTagAttr,c=r.onIgnoreTagAttr,a=r.safeAttrValue,d=r.escapeHtml,h=t.cssFilter;r.stripBlankChar&&(e=Ro.stripBlankChar(e)),r.allowCommentTag||(e=Ro.stripCommentTag(e));var g=!1;r.stripIgnoreTagBody&&(g=Ro.StripTagBody(r.stripIgnoreTagBody,o),o=g.onIgnoreTag);var v=OB(e,function(S,M,I,R,B){var F={sourcePosition:S,position:M,isClosing:B,isWhite:Object.prototype.hasOwnProperty.call(n,I)},G=i(I,R,F);if(!ny(G))return G;if(F.isWhite){if(F.isClosing)return"</"+I+">";var J=RB(R),re=n[I],de=NB(J.html,function(W,me){var Le=iy.indexOf(re,W)!==-1,xe=s(I,W,me,Le);return ny(xe)?Le?(me=a(I,W,me,h),me?W+'="'+me+'"':W):(xe=c(I,W,me,Le),ny(xe)?void 0:xe):xe});return R="<"+I,de&&(R+=" "+de),J.closing&&(R+=" /"),R+=">",R}else return G=o(I,R,F),ny(G)?d(R):G},d);return g&&(v=g.remove(v)),v};FB=dP;(function(e,t){var r=lr,n=ay,i=FB;function o(c,a){var d=new i(a);return d.process(c)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=i,function(){for(var c in r)t[c]=r[c];for(var a in n)t[a]=n[a]}();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=e.exports)})(o4,o4.exports);Ap=o4.exports,UB=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},fP=function(){function e(t,r){var n=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=oy(oy({},Ap.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(o,s,c,a){return o==="a"&&s==="href"||(o==="img"||o==="source")&&s==="src"?n.sanitizeUrl(c):Ap.safeAttrValue(o,s,c,a)}},this._entityMap={"&":"8","<":"<",">":">",'"':""","'":"'","/":"/"};var i;t&&!r?i=t:t&&r?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(t).forEach(function(o){if(o==="whiteList")i.whiteList=n._extendObjectOfArrays([n.arcgisWhiteList,t.whiteList||{}]);else if(o==="css"){var s=t.css.whiteList;s!=null&&t.css instanceof Object&&Object.keys(s).forEach(function(c){return i.css.whiteList[c]=s[c]})}else i[o]=t[o]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new Ap.FilterXSS(i)}return e.prototype.sanitize=function(t,r){switch(r===void 0&&(r={}),typeof t){case"number":return isNaN(t)||!isFinite(t)?null:t;case"boolean":return t;case"string":return this._xssFilter.process(t);case"object":return this._iterateOverObject(t,r);default:return r.allowUndefined&&typeof t>"u"?void 0:null}},e.prototype.sanitizeUrl=function(t,r){var n=(r??{}).isProtocolRequired,i=n===void 0?!0:n,o=this._trim(t.substring(0,t.indexOf(":"))),s=t==="/",c=/^#/.test(t),a=o&&this.allowedProtocols.indexOf(o.toLowerCase())>-1;return s||c||a?Ap.escapeAttrValue(t):!o&&!i?Ap.escapeAttrValue("https://".concat(t)):""},e.prototype.sanitizeHTMLAttribute=function(t,r,n,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(t,r,n,i):Ap.safeAttrValue(t,r,n,i)},e.prototype.validate=function(t,r){r===void 0&&(r={});var n=this.sanitize(t,r);return{isValid:t===n,sanitized:n}},e.prototype.encodeHTML=function(t){var r=this;return String(t).replace(/[&<>"'\/]/g,function(n){return r._entityMap[n]})},e.prototype.encodeAttrValue=function(t){var r=/^[a-zA-Z0-9]$/;return String(t).replace(/[\x00-\xFF]/g,function(n,i){return r.test(n)?n:"&#x".concat(Number(t.charCodeAt(i)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(t){var r={};return t.forEach(function(n){Object.keys(n).forEach(function(i){Array.isArray(n[i])&&Array.isArray(r[i])?r[i]=r[i].concat(n[i]):r[i]=n[i]})}),r},e.prototype._iterateOverObject=function(t,r){var n=this;r===void 0&&(r={});try{var i=!1,o=void 0;if(Array.isArray(t))o=t.reduce(function(c,a){var d=n.validate(a,r);return d.isValid?c.concat([a]):(i=!0,c.concat([d.sanitized]))},[]);else if(UB(t)){var s=Object.keys(t);o=s.reduce(function(c,a){var d=t[a],h=n.validate(d,r);return h.isValid?c[a]=d:(i=!0,c[a]=h.sanitized),c},{})}else return r.allowUndefined&&typeof t>"u"?void 0:null;return i?o:t}catch{return null}},e.prototype._trim=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},e}()});function ly(){cy.clear()}function mP(e){return cy.get(e)}function hP(e,t){cy.set(e,t)}function uy(e){cy.delete(e)}var cy,l4=V(()=>{cy=new Map});function gP(...e){let t=Yn.acquire();for(let n=0;n<e.length;n++){let i=e[n],o=typeof i;if(o==="string")t.push(i);else if(Array.isArray(i))t.push.apply(t,i);else if(o==="object")for(let s in i)i[s]&&t.push(s)}let r=t.join(" ");return Yn.release(t),r}async function wP(e,t){await L8(_w(t));let r=typeof e=="function"?e():e;r&&("setFocus"in r&&typeof r.setFocus=="function"?await r.setFocus():r instanceof HTMLElement&&r.focus())}var Npe,VB,zB,WB,u4,dy=V(()=>{pP();yw();oi();et();tt();ko();i4();Tw();l4();Npe=(()=>{let e=new Map,t=new ResizeObserver(n=>{ly();for(let i of n)e.get(i.target)?.(i)}),r=(n,i,o)=>(e.set(n,i),t.observe(n,o),Ct(()=>{t.unobserve(n),e.delete(n)}));return(n,i,o)=>{let s=null;return gu([lg(()=>typeof n=="function"?n():n,c=>{s?.remove(),c&&(s=r(c,i,o))},ey),Ct(()=>s?.remove())])}})(),VB=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"],zB=VB.reduce((e,t)=>(e[t]=[],e),{}),WB=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],u4=new fP({whiteList:zB,onTagAttr:(e,t,r)=>{let n=`${t}="${r}"`;if(WB.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)});function m4(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;let t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}var SP,py,xP,yP,my,g4,CP,BB,d4,GB,f4,p4,TP,bP,vP,_P,jB,fy,HB,w4,Pu,h4,qB,ZB,Lp,EP=V(()=>{dy();SP="http://www.w3.org/",py=`${SP}2000/svg`,xP=`${SP}1999/xlink`,yP=[],my=(e,t)=>{let r={};return Object.keys(e).forEach(n=>{r[n]=e[n]}),t&&Object.keys(t).forEach(n=>{r[n]=t[n]}),r},g4=(e,t)=>e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties),CP=e=>{if(typeof e!="string")throw new Error("Style values must be strings")},BB=(e,t,r)=>{if(t.vnodeSelector!==""){for(let n=r;n<e.length;n++)if(g4(e[n],t))return n}return-1},d4=(e,t,r,n)=>{let i=e[t];if(i.vnodeSelector==="")return;let o=i.properties;if(!(o&&(o.key===void 0?o.bind:o.key))){for(let s=0;s<e.length;s++)if(s!==t){let c=e[s];if(g4(c,i))throw new Error(`${r.vnodeSelector} had a ${i.vnodeSelector} child ${n==="added"?n:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}}},GB=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},f4=[],p4=!1,TP=e=>{(e.children||[]).forEach(TP),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},bP=()=>{p4=!1,f4.forEach(TP),f4.length=0},vP=e=>{f4.push(e),p4||(p4=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(bP,{timeout:16}):setTimeout(bP,16))},_P=e=>{let t=e.domNode;if(e.properties){let r=e.properties.exitAnimation;if(r)return t.style.pointerEvents="none",void r(t,()=>{t.parentNode&&(t.parentNode.removeChild(t),vP(e))},e.properties)}t.parentNode&&(t.parentNode.removeChild(t),vP(e))},jB=(e,t,r)=>{if(!t)return;let n=r.eventHandlerInterceptor,i=Object.keys(t),o=i.length;for(let s=0;s<o;s++){let c=i[s],a=t[c];if(c==="className")throw new Error('Property "className" is not supported, use "class".');if(c==="class")h4(e,a,!0);else if(c==="classes"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let v=d[g];a[v]&&e.classList.add(v)}}else if(c==="styles"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let v=d[g],S=a[v];S&&(CP(S),r.styleApplyer(e,v,S))}}else if(c!=="key"&&a!=null){let d=typeof a;d==="function"?(c.lastIndexOf("on",0)===0&&(n&&(a=n(c,a,e,t)),c==="oninput"&&function(){let h=a;a=function(g){h.apply(this,[g]),g.target["oninput-value"]=g.target.value}}()),e[c]=a):r.namespace===py?c==="href"?e.setAttributeNS(xP,c,a):e.setAttribute(c,a):d==="string"&&c!=="value"?c==="innerHTML"?e[c]=u4.sanitize(a):m4(e)&&c in e?e[c]=a:e.setAttribute(c,a):e[c]=a}}};HB=(e,t,r)=>{if(t)for(let n of t)Pu(n,e,void 0,r)},w4=(e,t,r)=>{HB(e,t.children,r),t.text&&(e.textContent=t.text),jB(e,t.properties,r),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children])},Pu=(e,t,r,n)=>{let i,o=0,s=e.vnodeSelector,c=t.ownerDocument;if(s==="")i=e.domNode=c.createTextNode(e.text),r!==void 0?t.insertBefore(i,r):t.appendChild(i);else{for(let a=0;a<=s.length;++a){let d=s.charAt(a);if(a===s.length||d==="."||d==="#"){let h=s.charAt(o-1),g=s.slice(o,a);h==="."?i.classList.add(g):h==="#"?i.id=g:(g==="svg"&&(n=my(n,{namespace:py})),n.namespace!==void 0?i=e.domNode=c.createElementNS(n.namespace,g):(i=e.domNode=e.domNode||c.createElement(g),g==="input"&&e.properties&&e.properties.type!==void 0&&i.setAttribute("type",e.properties.type)),r!==void 0?t.insertBefore(i,r):i.parentNode!==t&&t.appendChild(i)),o=a+1}}w4(i,e,n)}},h4=(e,t,r)=>{t&&t.split(" ").forEach(n=>{n&&e.classList.toggle(n,r)})},qB=(e,t,r,n)=>{if(!r)return;let i=!1,o=Object.keys(r),s=o.length;for(let c=0;c<s;c++){let a=o[c],d=r[a],h=t[a];if(a==="class")h!==d&&(h4(e,h,!1),h4(e,d,!0));else if(a==="classes"){let g=e.classList,v=Object.keys(d),S=v.length;for(let M=0;M<S;M++){let I=v[M],R=!!d[I];R!==!!h[I]&&(i=!0,R?g.add(I):g.remove(I))}}else if(a==="styles"){let g=Object.keys(d),v=g.length;for(let S=0;S<v;S++){let M=g[S],I=d[M];I!==h[M]&&(i=!0,I?(CP(I),n.styleApplyer(e,M,I)):n.styleApplyer(e,M,""))}}else if(d||typeof h!="string"||(d=""),a!=="value"||m4(e)){if(d!==h){let g=typeof d;g==="function"&&n.eventHandlerInterceptor||(n.namespace===py?a==="href"?e.setAttributeNS(xP,a,d):e.setAttribute(a,d):g==="string"?a==="innerHTML"?e[a]=u4.sanitize(d):a==="role"&&d===""?e.removeAttribute(a):m4(e)&&a in e?e[a]=d:e.setAttribute(a,d):e[a]!==d&&(e[a]=d),i=!0)}}else{let g=e[a];g!==d&&(e["oninput-value"]?g===e["oninput-value"]:d!==h)&&(e[a]=d,e["oninput-value"]=void 0),d!==h&&(i=!0)}}return i},ZB=(e,t,r,n,i)=>{if(r===n)return!1;n=n||yP;let o,s=(r=r||yP).length,c=n.length,a=0,d=0,h=!1;for(;d<c;){let g=a<s?r[a]:void 0,v=n[d];if(g!==void 0&&g4(g,v))h=fy(g,v,i)||h,a++;else{let S=BB(r,v,a+1);if(S>=0){for(o=a;o<S;o++)_P(r[o]),d4(r,o,e,"removed");h=fy(r[S],v,i)||h,a=S+1}else Pu(v,t,a<s?r[a].domNode:void 0,i),GB(v),d4(n,d,e,"added")}d++}if(s>a)for(o=a;o<s;o++)_P(r[o]),d4(r,o,e,"removed");return h};fy=(e,t,r)=>{let n=e.domNode,i=!1;if(e===t)return!1;let o=!1;if(t.vnodeSelector===""){if(t.text!==e.text){let s=n.ownerDocument.createTextNode(t.text);return n.parentNode.replaceChild(s,n),t.domNode=s,i=!0,i}t.domNode=n}else t.vnodeSelector.lastIndexOf("svg",0)===0&&(r=my(r,{namespace:py})),e.text!==t.text&&(o=!0,t.text===void 0?n.removeChild(n.firstChild):n.textContent=t.text),t.domNode=n,o=ZB(t,n,e.children,t.children,r)||o,o=qB(n,e.properties,t.properties,r)||o,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[n,r,t.vnodeSelector,t.properties,t.children]);return o&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(n,t.properties,e.properties),i};Lp=(e,t)=>({getLastRender:()=>e,update:r=>{if(e.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let n=e;e=r,fy(n,r,t)},domNode:e.domNode})});var YB,kp,Op,y4=V(()=>{EP();YB={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},kp=e=>my(YB,e),Op={create:(e,t)=>(t=kp(t),Pu(e,document.createElement("div"),void 0,t),Lp(e,t)),append:(e,t,r)=>(r=kp(r),Pu(t,e,void 0,r),Lp(t,r)),insertBefore:(e,t,r)=>(r=kp(r),Pu(t,e.parentNode,e,r),Lp(t,r)),merge:(e,t,r)=>(r=kp(r),t.domNode=e,w4(e,t,r),Lp(t,r)),replace:(e,t,r)=>(r=kp(r),Pu(t,e.parentNode,e,r),e.parentNode.removeChild(e),Lp(t,r))}});var JB,MP=V(()=>{y4();JB=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0]});var PP,IP=V(()=>{PP={handleInterceptedEvent:(e,t,r,n)=>(e.scheduleRender(),t.properties[`on${n.type}`].apply(t.properties.bind||r,[n]))}});var XB,AP,LP=V(()=>{XB={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},AP=e=>({...XB,...e})});var KB,QB,kP,OP,NP=V(()=>{y4();MP();IP();LP();KB=(e,t)=>{let r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r},QB=(e,t)=>e.find(t),kP=(e,t,r=!1)=>{let n=e;return t.forEach((i,o)=>{let s=n?.children?QB(n.children,c=>c.domNode===i):void 0;r&&!s&&o!==t.length-1||(n=s)}),n},OP=e=>{let t,r={...PP,...e},n=AP(r),i=n.performanceLogger,o,s=!0,c=!1,a=[],d=[],h=(v,S,M)=>{let I;n.eventHandlerInterceptor=(B,F,G,J)=>function(re){let de;i("domEvent",re);let W=KB(re.currentTarget,I.domNode),me=W.some(xe=>customElements.get(xe?.tagName?.toLowerCase()));if(re.eventPhase===Event.CAPTURING_PHASE||!me)W.reverse(),de=kP(I.getLastRender(),W);else{let xe=re.composedPath(),ke=xe.slice(xe.indexOf(re.currentTarget),xe.indexOf(I.domNode)).reverse();de=kP(I.getLastRender(),ke,!0)}let Le;return de&&(Le=r.handleInterceptedEvent(t,de,this,re)),i("domEventProcessed",re),Le},r.postProcessProjectionOptions?.(n);let R=M();I=v(S,R,n),n.eventHandlerInterceptor=void 0,a.push(I),d.push(M),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(I,R)},g=()=>{if(o=void 0,s){s=!1,i("renderStart",void 0);for(let v=0;v<a.length;v++){let S=d[v]();i("rendered",void 0);try{a[v].update(S)}catch(M){console.error(M)}i("patched",void 0)}i("renderDone",void 0),s=!0}};return r.modifyDoRenderImplementation&&(g=r.modifyDoRenderImplementation(g,a,d)),t={renderNow:g,scheduleRender:()=>{o||c||(o=requestAnimationFrame(g))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),c=!0},resume:()=>{c=!1,s=!0,t.scheduleRender()},append:(v,S)=>{h(Op.append,v,S)},insertBefore:(v,S)=>{h(Op.insertBefore,v,S)},merge:(v,S)=>{h(Op.merge,v,S)},replace:(v,S)=>{h(Op.replace,v,S)},detach:v=>{for(let S=0;S<d.length;S++)if(d[S]===v)return d.splice(S,1),a.splice(S,1)[0];throw new Error("renderFunction was not found")}},t}});var b4,v4,eG,fg,_4,Np=V(()=>{b4="calcite-mode-auto",v4="calcite-mode-dark",eG="calcite-mode-light",fg={autoMode:b4,darkMode:v4,lightMode:eG,rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateIn:"calcite-animate__in",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left",calciteAnimateInScale:"calcite-animate__in-scale"},_4={filter:250,nextTick:0,resize:150,reposition:100}});var D,hy,Ht=V(()=>{D={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},hy="app"});var $G,S4=V(()=>{$G=l9({})});var zP={};os(zP,{scopeCss:()=>DG});var tG,rG,nG,pg,RP,DP,C4,iG,oG,sG,Iu,aG,cG,lG,gy,T4,uG,dG,fG,pG,mG,hG,gG,wG,yG,bG,vG,_G,wy,SG,xG,CG,$P,FP,TG,EG,MG,PG,IG,AG,LG,UP,kG,OG,NG,VP,RG,x4,DG,WP=V(()=>{tG=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");rG=e=>{let t=[],r=0;return e=e.replace(/(\[[^\]]*\])/g,(o,s)=>{let c=`__ph-${r}__`;return t.push(s),r++,c}),{content:e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(o,s,c)=>{let a=`__ph-${r}__`;return t.push(c),r++,s+a}),placeholders:t}},nG=(e,t)=>t.replace(/__ph-(\d+)__/g,(r,n)=>e[+n]),pg="-shadowcsshost",RP="-shadowcssslotted",DP="-shadowcsscontext",C4=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",iG=new RegExp("("+pg+C4,"gim"),oG=new RegExp("("+DP+C4,"gim"),sG=new RegExp("("+RP+C4,"gim"),Iu=pg+"-no-combinator",aG=/-shadowcsshost-no-combinator([^\s]*)/,cG=[/::shadow/g,/::content/g],lG="([>\\s~+[.,{:][\\s\\S]*)?$",gy=/-shadowcsshost/gim,T4=e=>new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${e}\\b)`,"gim"),uG=T4("::slotted"),dG=T4(":host"),fG=T4(":host-context"),pG=/\/\*\s*[\s\S]*?\*\//g,mG=e=>e.replace(pG,""),hG=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,gG=e=>e.match(hG)||[],wG=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,yG=/([{}])/g,bG=/(^.*?[^\\])??((:+)(.*)|$)/,vG="{",_G="}",wy="%BLOCK%",SG=(e,t)=>{let r=xG(e),n=0;return r.escapedString.replace(wG,(...i)=>{let o=i[2],s="",c=i[4],a="";c&&c.startsWith("{"+wy)&&(s=r.blocks[n++],c=c.substring(wy.length+1),a="{");let h=t({selector:o,content:s});return`${i[1]}${h.selector}${i[3]}${a}${h.content}${c}`})},xG=e=>{let t=e.split(yG),r=[],n=[],i=0,o=[];for(let c=0;c<t.length;c++){let a=t[c];a===_G&&i--,i>0?o.push(a):(o.length>0&&(n.push(o.join("")),r.push(wy),o=[]),r.push(a)),a===vG&&i++}return o.length>0&&(n.push(o.join("")),r.push(wy)),{escapedString:r.join(""),blocks:n}},CG=e=>(e=e.replace(fG,`$1${DP}`).replace(dG,`$1${pg}`).replace(uG,`$1${RP}`),e),$P=(e,t,r)=>e.replace(t,(...n)=>{if(n[2]){let i=n[2].split(","),o=[];for(let s=0;s<i.length;s++){let c=i[s].trim();if(!c)break;o.push(r(Iu,c,n[3]))}return o.join(",")}else return Iu+n[3]}),FP=(e,t,r)=>e+t.replace(pg,"")+r,TG=e=>$P(e,iG,FP),EG=(e,t,r)=>t.indexOf(pg)>-1?FP(e,t,r):e+t+r+", "+t+" "+e+r,MG=(e,t)=>{let r="."+t+" > ",n=[];return e=e.replace(sG,(...i)=>{if(i[2]){let o=i[2].trim(),s=i[3],c=r+o+s,a="";for(let g=i[4]-1;g>=0;g--){let v=i[5][g];if(v==="}"||v===",")break;a=v+a}let d=(a+c).trim(),h=`${a.trimEnd()}${c.trim()}`.trim();if(d!==h){let g=`${h}, ${d}`;n.push({orgSelector:d,updatedSelector:g})}return c}else return Iu+i[3]}),{selectors:n,cssText:e}},PG=e=>$P(e,oG,EG),IG=e=>cG.reduce((t,r)=>t.replace(r," "),e),AG=e=>{let t=/\[/g,r=/\]/g;return e=e.replace(t,"\\[").replace(r,"\\]"),new RegExp("^("+e+")"+lG,"m")},LG=(e,t)=>!AG(t).test(e),UP=(e,t)=>e.replace(bG,(r,n="",i,o="",s="")=>n+t+o+s),kG=(e,t,r)=>{if(gy.lastIndex=0,gy.test(e)){let n=`.${r}`;return e.replace(aG,(i,o)=>UP(o,n)).replace(gy,n+" ")}return t+" "+e},OG=(e,t,r)=>{let n=/\[is=([^\]]*)\]/g;t=t.replace(n,(M,...I)=>I[0]);let i="."+t,o=M=>{let I=M.trim();if(!I)return"";if(M.indexOf(Iu)>-1)I=kG(M,t,r);else{let R=M.replace(gy,"");R.length>0&&(I=UP(R,i))}return I},s=rG(e);e=s.content;let c="",a=0,d,h=/( |>|\+|~(?!=))\s*/g,v=!(e.indexOf(Iu)>-1);for(;(d=h.exec(e))!==null;){let M=d[1],I=e.slice(a,d.index).trim();v=v||I.indexOf(Iu)>-1;let R=v?o(I):I;c+=`${R} ${M} `,a=h.lastIndex}let S=e.substring(a);return v=v||S.indexOf(Iu)>-1,c+=v?o(S):S,nG(s.placeholders,c)},NG=(e,t,r,n)=>e.split(",").map(i=>n&&i.indexOf("."+n)>-1?i.trim():LG(i,t)?OG(i,t,r).trim():i.trim()).join(", "),VP=(e,t,r,n)=>SG(e,i=>{let o=i.selector,s=i.content;return i.selector[0]!=="@"?o=NG(i.selector,t,r,n):(i.selector.startsWith("@media")||i.selector.startsWith("@supports")||i.selector.startsWith("@page")||i.selector.startsWith("@document"))&&(s=VP(i.content,t,r,n)),{selector:o.replace(/\s{2,}/g," ").trim(),content:s}}),RG=(e,t,r,n)=>{e=CG(e),e=TG(e),e=PG(e);let i=MG(e,n);return e=i.cssText,e=IG(e),t&&(e=VP(e,t,r,n)),e=x4(e,r),e=e.replace(/>\s*\*\s+([^{, ]+)/gm," $1 "),{cssText:e.trim(),slottedSelectors:i.selectors.map(o=>({orgSelector:x4(o.orgSelector,r),updatedSelector:x4(o.updatedSelector,r)}))}},x4=(e,t)=>e.replace(/-shadowcsshost-no-combinator/g,`.${t}`),DG=(e,t)=>{let r=t+"-h",n=t+"-s",i=gG(e);e=mG(e);let o=RG(e,t,r,n);return e=[o.cssText,...i].join(`
|