@arcgis/coding-components 4.32.0-next.15 → 4.32.0-next.16
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/{OKFR5LOF.js → 2OJIERSK.js} +1 -1
- package/dist/arcgis-coding-components/{LYEPMZLP.js → 2VQIJCBR.js} +2 -2
- package/dist/arcgis-coding-components/{TMBWTB7Q.js → 3JFTH6GH.js} +2 -2
- package/dist/arcgis-coding-components/{XUK7QRPC.js → 4S2563N3.js} +1 -1
- package/dist/arcgis-coding-components/{OKJVLQMC.js → 67YLQH7X.js} +2 -2
- package/dist/arcgis-coding-components/{5T663F6Q.js → 6VPHKBIW.js} +2 -2
- package/dist/arcgis-coding-components/{2CVIOMKH.js → 7WDXVSPB.js} +2 -2
- package/dist/arcgis-coding-components/{K4L2UZRI.js → AZG2U6SA.js} +2 -2
- package/dist/arcgis-coding-components/{64VEBYVX.js → CVSFF4W5.js} +2 -2
- package/dist/arcgis-coding-components/{BJGUCS43.js → D3DQA6N7.js} +2 -2
- package/dist/arcgis-coding-components/{JNWI6EDP.js → D44O4N7Q.js} +2 -2
- package/dist/arcgis-coding-components/{TQQPW3EU.js → DDHAT5BP.js} +1 -1
- package/dist/arcgis-coding-components/{3LSWS7FT.js → FNXUGJGP.js} +2 -2
- package/dist/arcgis-coding-components/{WXEPBHKV.js → GAU6PR7R.js} +2 -2
- package/dist/arcgis-coding-components/{SOSUHTY6.js → IK5DO6TU.js} +2 -2
- package/dist/arcgis-coding-components/{GYBX7QS7.js → JFQMC6G4.js} +2 -2
- package/dist/arcgis-coding-components/{IQZDPPD7.js → JVO66RKE.js} +2 -2
- package/dist/arcgis-coding-components/{CAA47EUZ.js → KEFDG2DZ.js} +2 -2
- package/dist/arcgis-coding-components/{LIYPNMUL.js → KVVJILBC.js} +1 -1
- package/dist/arcgis-coding-components/{7OBIA2XJ.js → LGR6PBTH.js} +2 -2
- package/dist/arcgis-coding-components/{3422DY3P.js → LQMKPKSS.js} +2 -2
- package/dist/arcgis-coding-components/{PUYCSL7H.js → MM2G7US4.js} +2 -2
- package/dist/arcgis-coding-components/{OYXWVZMR.js → R3Y63T6Q.js} +2 -2
- package/dist/arcgis-coding-components/{WQ74UIHL.js → SVLMG4F5.js} +2 -2
- package/dist/arcgis-coding-components/{ODJ5UGMY.js → TG5DRBH3.js} +2 -2
- package/dist/arcgis-coding-components/{FAGIYQPW.js → UOO52ZAZ.js} +2 -2
- package/dist/arcgis-coding-components/{RVGSEQOS.js → UP4J5M3J.js} +2 -2
- package/dist/arcgis-coding-components/{U73HUAYO.js → XQSEYN2B.js} +2 -2
- package/dist/arcgis-coding-components/{RADIZXOV.js → XSCWBJDG.js} +2 -2
- package/dist/arcgis-coding-components/{DZDQDVV3.js → XWS544GF.js} +2 -2
- package/dist/arcgis-coding-components/{BWK7EQP6.js → YASFNF6B.js} +2 -2
- package/dist/arcgis-coding-components/{O7AZMWXX.js → ZB5ZHU6J.js} +2 -2
- package/dist/arcgis-coding-components/{2YFJS7XQ.js → ZEV45O5Y.js} +3 -3
- package/dist/arcgis-coding-components/{NIIJIQZX.js → ZNIDSG3O.js} +2 -2
- package/dist/arcgis-coding-components/{2D3BWPSU.js → ZRRRDAE4.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 +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var tF=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),is=(e,t)=>{for(var r in t)tF(e,r,{get:t[r],enumerable:!0})};function he(e){return typeof ec[e]=="function"?ec[e]=ec[e](globalThis):ec[e]}var ec,et=V(()=>{ec=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},he.add=(e,t,r,n)=>{(n||ec[e]===void 0)&&(ec[e]=t),r&&he(e)},he.cache=ec,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,Ur=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 tc(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||EC;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 MC(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||EC;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 PC(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function IC(e,t){return e!=null}var V$,Tie,Bm,EC,_o,Cie,rc=V(()=>{Ur();V$=1.5,Tie=1/V$;Bm=class{constructor(){this.last=0}},EC=new Bm;_o=new Set;Cie=new cu});function AC(e){return e?.constructor?.name==="Int8Array"}function LC(e){return e?.constructor?.name==="Uint8Array"}function kC(e){return e?.constructor?.name==="Uint8ClampedArray"}function NC(e){return e?.constructor?.name==="Int16Array"}function OC(e){return e?.constructor?.name==="Uint16Array"}function RC(e){return e?.constructor?.name==="Int32Array"}function DC(e){return e?.constructor?.name==="Uint32Array"}function FC(e){return e?.constructor?.name==="Float32Array"}function $C(e){return e?.constructor?.name==="Float64Array"}var UC=V(()=>{et()});function b0(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&b0(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function Ye(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=GC(e);if(t!=null)return t;if(zC(e))return e.clone();if(WC(e))return e.map(Ye);if(BC(e))return e.clone();let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=Ye(e[n]);return r}function y0(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=GC(e);if(t!=null)return t;if(WC(e)){let r=!0,n=e.map(i=>{let o=y0(i);return i!=null&&o==null&&(r=!1),o});return r?n:null}if(zC(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(!BC(e)){let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=y0(i);if(i!=null&&o==null)return null;r[n]=o}return r}return null}function zC(e){return typeof e.clone=="function"}function WC(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function BC(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function VC(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function GC(e){if(AC(e)||LC(e)||kC(e)||NC(e)||OC(e)||RC(e)||DC(e)||FC(e)||$C(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,Ye(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(Ye(r));return t}return null}function Gm(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 jC(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)&&tc(e,t):e instanceof Set?t instanceof Set&&W$(e,t):e instanceof Map?t instanceof Map&&B$(e,t):!!VC(e)&&VC(t)&&z$(e,t))}function z$(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 W$(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function B$(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 nr=V(()=>{rc();UC()});function HC(e,t,r=!1){return ZC(e,t,r)}function Hi(e,t){if(t!=null)return t[e]||qC(e.split("."),!1,t)}function js(e,t,r){let n=e.split("."),i=n.pop(),o=qC(n,!0,r);o&&i&&(o[i]=t)}function qC(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 ZC(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]=Ye(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]=ZC(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var us=V(()=>{nr()});function YC(e){return e??""}function ds(e,t){return t?e.replaceAll(G$,typeof t=="object"?(r,n)=>YC(Hi(n,t)):(r,n)=>YC(t(n))):e}function JC(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function XC(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var G$,nc=V(()=>{us();G$=/\{([^}]+)\}/g});var Hs,v0,_0,S0,So,Bf,lr,xo,ic=V(()=>{Hs=class extends Error{},v0=class extends Hs{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},_0=class extends Hs{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},S0=class extends Hs{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},So=class extends Hs{},Bf=class extends Hs{constructor(t){super(`Invalid unit ${t}`)}},lr=class extends Hs{},xo=class extends Hs{constructor(){super("Zone is an abstract class")}}});var Ae,To,_i,oc,jm,j2,Hm,qm,Zm,Ym,Jm,Xm,Qm,Km,eh,th,rh,nh,ih,oh,H2,sh,ah,ch,lh,uh=V(()=>{Ae="numeric",To="short",_i="long",oc={year:Ae,month:Ae,day:Ae},jm={year:Ae,month:To,day:Ae},j2={year:Ae,month:To,day:Ae,weekday:To},Hm={year:Ae,month:_i,day:Ae},qm={year:Ae,month:_i,day:Ae,weekday:_i},Zm={hour:Ae,minute:Ae},Ym={hour:Ae,minute:Ae,second:Ae},Jm={hour:Ae,minute:Ae,second:Ae,timeZoneName:To},Xm={hour:Ae,minute:Ae,second:Ae,timeZoneName:_i},Qm={hour:Ae,minute:Ae,hourCycle:"h23"},Km={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23"},eh={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:To},th={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:_i},rh={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae},nh={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae,second:Ae},ih={year:Ae,month:To,day:Ae,hour:Ae,minute:Ae},oh={year:Ae,month:To,day:Ae,hour:Ae,minute:Ae,second:Ae},H2={year:Ae,month:To,day:Ae,weekday:To,hour:Ae,minute:Ae},sh={year:Ae,month:_i,day:Ae,hour:Ae,minute:Ae,timeZoneName:To},ah={year:Ae,month:_i,day:Ae,hour:Ae,minute:Ae,second:Ae,timeZoneName:To},ch={year:Ae,month:_i,day:Ae,weekday:_i,hour:Ae,minute:Ae,timeZoneName:_i},lh={year:Ae,month:_i,day:Ae,weekday:_i,hour:Ae,minute:Ae,second:Ae,timeZoneName:_i}});var Tr,lu=V(()=>{ic();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,sc,T0=V(()=>{Zn();lu();q2=null,sc=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 C0(t,r,n)}formatOffset(t,r){return ac(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function j$(e){return M0[e]||(M0[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"})),M0[e]}function q$(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 Z$(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=H$[o];o==="era"?n[c]=s:Ge(c)||(n[c]=parseInt(s,10))}return n}var M0,H$,E0,Kt,cc=V(()=>{Zn();lu();M0={};H$={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};E0={},Kt=class e extends Tr{static create(t){return E0[t]||(E0[t]=new e(t)),E0[t]}static resetCache(){E0={},M0={}}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 C0(t,r,n,this.name)}formatOffset(t,r){return ac(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=j$(this.name),[i,o,s,c,a,d,h]=n.formatToParts?Z$(n,r):q$(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=Gf({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 Y$(e,t={}){let r=JSON.stringify([e,t]),n=QC[r];return n||(n=new Intl.ListFormat(e,t),QC[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 J$(e,t={}){let r=JSON.stringify([e,t]),n=J2[r];return n||(n=new Intl.NumberFormat(e,t),J2[r]=n),n}function X$(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 Q$(){return dh||(dh=new Intl.DateTimeFormat().resolvedOptions().locale,dh)}function K$(e){let t=KC[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,KC[e]=t}return t}function eU(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 tU(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function rU(e){let t=[];for(let r=1;r<=12;r++){let n=Se.utc(2009,r,1);t.push(e(n))}return t}function nU(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 P0(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function iU(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 QC,Z2,J2,X2,dh,KC,Q2,K2,e_,oU,vt,ph=V(()=>{Zn();L0();lc();uc();cc();QC={};Z2={};J2={};X2={};dh=null;KC={};Q2=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=J$(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):jf(t,3);return ir(r,this.padTo)}}},K2=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&&Kt.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&&I0()&&(this.rtf=X$(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):[]}},oU={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":Q$()),a=r||bt.defaultNumberingSystem,d=n||bt.defaultOutputCalendar,h=fh(i)||bt.defaultWeekSettings;return new e(c,a,d,h,s)}static resetCache(){dh=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]=eU(t);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=tU(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=iU(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,fh(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 P0(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]=rU(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return P0(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]=nU(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return P0(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 P0(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 Q2(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new K2(t,this.intl,r)}relFormatter(t={}){return new e_(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Y$(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:A0()?K$(this.locale):oU}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,Hf=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${ac(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ac(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return ac(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 qf,a_=V(()=>{lu();qf=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 Co(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"?sc.instance:n==="utc"||n==="gmt"?At.utcInstance:At.parseSpecifier(n)||Kt.create(e)}else return Eo(e)?At.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new qf(e)}var k0=V(()=>{lu();cc();Hf();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+=sU.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(){Zf={}}function qi({numberingSystem:e},t=""){let r=e||"latn";return Zf[r]||(Zf[r]={}),Zf[r][t]||(Zf[r][t]=new RegExp(`${c_[r]}${t}`)),Zf[r][t]}var c_,r6,sU,Zf,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]},sU=c_.hanidec.replace(/[\[|\]]/g,"").split("");Zf={}});var o6,s6,a6,c6,l6,u6,d6,f6,bt,lc=V(()=>{T0();cc();ph();uc();k0();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 Co(s6,sc.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=fh(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(),Kt.resetCache(),Se.resetCache(),i6()}}});var rn,mh=V(()=>{rn=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 rn("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 O0(e,t){return(e-t+7)%7+1}function hh(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=h6(n,i,o),c=O0(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,...wh(e)}}function u_(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=O0(N0(n,1,t),r),c=dc(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=dc(d)):a>c?(d=n+1,a-=dc(n)):d=n;let{month:h,day:g}=g6(d,a);return{year:d,month:h,day:g,...wh(e)}}function R0(e){let{year:t,month:r,day:n}=e,i=h6(t,r,n);return{year:t,ordinal:i,...wh(e)}}function d_(e){let{year:t,ordinal:r}=e,{month:n,day:i}=g6(t,r);return{year:t,month:n,day:i,...wh(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=gh(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=gh(e.year),r=Si(e.ordinal,1,dc(e.year));return t?r?!1:Zi("ordinal",e.ordinal):Zi("year",e.year)}function p_(e){let t=gh(e.year),r=Si(e.month,1,12),n=Si(e.day,1,Yf(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();mh();ic();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 gh(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 I0(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function A0(){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 fc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function fh(e){if(e==null)return null;if(typeof e!="object")throw new lr("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 lr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Si(e,t,r){return gh(e)&&e>=t&&e<=r}function aU(e,t){return e-t*Math.floor(e/t)}function ir(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function qs(e){if(!(Ge(e)||e===null||e===""))return parseInt(e,10)}function pc(e){if(!(Ge(e)||e===null||e===""))return parseFloat(e)}function yh(e){if(!(Ge(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function jf(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 dc(e){return fu(e)?366:365}function Yf(e,t){let r=aU(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 Gf(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-O0(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(dc(e)-n+i)/7}function bh(e){return e>99?e:e>bt.twoDigitCutoffYear?1900+e:2e3+e}function C0(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 lr(`Invalid unit value ${e}`);return t}function Jf(e,t){let r={};for(let n in e)if(fc(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=w_(i)}return r}function ac(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}${ir(r,2)}:${ir(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${ir(r,2)}${ir(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function wh(e){return S6(e,["hour","minute","second","millisecond"])}var Zn=V(()=>{ic();lc();h_()});function t_(e){switch(e){case"narrow":return[...lU];case"short":return[...y_];case"long":return[...cU];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[...uU];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[...pU];case"short":return[...fU];case"long":return[...dU];default:return null}}function x6(e){return n_[e.hour<12?0:1]}function T6(e,t){return r_(t)[e.weekday-1]}function C6(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 cU,y_,lU,b_,v_,uU,n_,dU,fU,pU,L0=V(()=>{uh();Zn();cU=["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"],lU=["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"],uU=["M","T","W","T","F","S","S"];n_=["AM","PM"],dU=["Before Christ","Anno Domini"],fU=["BC","AD"],pU=["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 mU,nn,vh=V(()=>{L0();uh();Zn();mU={D:oc,DD:jm,DDD:Hm,DDDD:qm,t:Zm,tt:Ym,ttt:Jm,tttt:Xm,T:Qm,TT:Km,TTT:eh,TTTT:th,f:rh,ff:ih,fff:sh,ffff:ch,F:nh,FF:oh,FFF:ah,FFFF:lh},nn=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 mU[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 ir(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?C6(t,S):o(M?{month:S}:{month:S,day:"numeric"},"month"),d=(S,M)=>n?T6(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 Kf(...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 ep(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]]=qs(t[r+i]);return[n,null,r+i]}}function Xf(e,t,r){let n=e[t];return Ge(n)?r:qs(n)}function xU(e,t){return[{year:Xf(e,t),month:Xf(e,t+1,1),day:Xf(e,t+2,1)},null,t+3]}function tp(e,t){return[{hours:Xf(e,t,0),minutes:Xf(e,t+1,0),seconds:Xf(e,t+2,0),milliseconds:yh(e[t+3])},null,t+4]}function _h(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 Sh(e,t){let r=e[t]?Kt.create(e[t]):null;return[{},r,t+1]}function EU(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(pc(r)),months:v(pc(n)),weeks:v(pc(i)),days:v(pc(o)),hours:v(pc(s)),minutes:v(pc(c)),seconds:v(pc(a),a==="-0"),milliseconds:v(yh(d),g)}]}function x_(e,t,r,n,i,o,s){let c={year:t.length===2?bh(qs(t)):qs(t),month:y_.indexOf(r)+1,day:qs(n),hour:qs(i),minute:qs(o)};return s&&(c.second=qs(s)),e&&(c.weekday=e.length>3?b_.indexOf(e)+1:v_.indexOf(e)+1),c}function IU(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=MU[a]:d?S=0:S=uu(h,g),[v,new At(S)]}function AU(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 ep(e,[RU,O6],[DU,UU],[FU,VU],[$U,zU])}function D6(e){return ep(AU(e),[PU,IU])}function F6(e){return ep(e,[LU,P6],[kU,P6],[NU,OU])}function $6(e){return ep(e,[CU,EU])}function U6(e){return ep(e,[TU,WU])}function V6(e){return ep(e,[BU,O6],[GU,jU])}var I6,L6,hU,__,k6,S_,gU,wU,yU,bU,vU,_U,N6,SU,TU,CU,MU,PU,LU,kU,NU,RU,DU,FU,$U,O6,UU,VU,zU,WU,BU,GU,jU,T_=V(()=>{Zn();L0();Hf();cc();I6=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;L6=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,hU=`(?:${L6.source}?(?:\\[(${I6.source})\\])?)?`,__=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,k6=RegExp(`${__.source}${hU}`),S_=RegExp(`(?:T${k6.source})?`),gU=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wU=/(\d{4})-?W(\d\d)(?:-?(\d))?/,yU=/(\d{4})-?(\d{3})/,bU=A6("weekYear","weekNumber","weekDay"),vU=A6("year","ordinal"),_U=/(\d{4})-(\d\d)-(\d\d)/,N6=RegExp(`${__.source} ?(?:${L6.source}|(${I6.source}))?`),SU=RegExp(`(?: ${N6.source})?`);TU=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)?)?)$/;MU={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};PU=/^(?:(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)))$/;LU=/^(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$/,kU=/^(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$/,NU=/^(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})$/;RU=Qf(gU,S_),DU=Qf(wU,S_),FU=Qf(yU,S_),$U=Qf(k6),O6=Kf(xU,tp,_h,Sh),UU=Kf(bU,tp,_h,Sh),VU=Kf(vU,tp,_h,Sh),zU=Kf(tp,_h,Sh);WU=Kf(tp);BU=Qf(_U,SU),GU=Qf(N6),jU=Kf(tp,_h,Sh)});function mc(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 or(n)}function G6(e,t){let r=t.milliseconds??0;for(let n of ZU.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 YU(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var z6,B6,HU,Yi,rp,qU,pu,ZU,or,xh=V(()=>{ic();vh();mh();ph();T_();Zn();lc();uc();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}},HU={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,rp=146097/4800,qU={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:rp/7,days:rp,hours:rp*24,minutes:rp*24*60,seconds:rp*24*60*60,milliseconds:rp*24*60*60*1e3},...B6},pu=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ZU=pu.slice(0).reverse();or=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?qU:HU;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 lr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Jf(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 lr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=$6(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 lr("need to specify a reason the Duration is invalid");let n=t instanceof rn?t:new rn(t,r);if(bt.throwOnInvalid)throw new S0(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 Bf(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?nn.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+=jf(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)(fc(r.values,i)||fc(this.values,i))&&(n[i]=r.get(i)+this.get(i));return mc(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 mc(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...Jf(t,e.normalizeUnit)};return mc(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 mc(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),mc(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=YU(this.normalize().shiftToAll().toObject());return mc(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),mc(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 mc(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 JU(e,t){return!e||!e.isValid?Zs.invalid("missing or invalid start"):!t||!t.isValid?Zs.invalid("missing or invalid end"):t<e?Zs.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 np,Zs,C_=V(()=>{uc();xh();lc();ic();mh();vh();uh();np="Invalid Interval";Zs=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 lr("need to specify a reason the Interval is invalid");let n=t instanceof rn?t:new rn(t,r);if(bt.throwOnInvalid)throw new _0(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=ip(t),i=ip(r),o=JU(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=or.fromDurationLike(r),i=ip(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=or.fromDurationLike(r),i=ip(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=or.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=or.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(ip).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=or.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()})`:np}[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=oc,r={}){return this.isValid?nn.create(this.s.loc.clone(r),t).formatInterval(this):np}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:np}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:np}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:np}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:np}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):or.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var Ys,E_=V(()=>{uc();lc();ph();cc();k0();Zn();Ys=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 Kt.isValidZone(t)}static normalizeZone(t){return Co(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:I0(),localeWeek:A0()}}}});function j6(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(or.fromMillis(n).as("days"))}function XU(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]=XU(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=or.fromObject(o,n);return d.length>0?or.fromMillis(a,n).shiftTo(...d).plus(h):h}var q6=V(()=>{xh()});function xt(e,t=r=>r){return{regex:e,deser:([r])=>t(n6(r))}}function eV(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(eV).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 D0(e){return{regex:e,deser:([t])=>t}}function tV(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function rV(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(tV(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,bh);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 D0(h);case"uu":return D0(c);case"uuu":return xt(r);case"a":return Mo(t.meridiems(),0);case"kkkk":return xt(o);case"kk":return xt(g,bh);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 D0(/[a-z_+-/]{1,256}?/i);case" ":return D0(/[^\S\n\r]/);default:return S(R)}})(e)||{invalidReason:QU};return I.token=e,I}function iV(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=nV[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function oV(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function sV(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(fc(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 aV(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=Kt.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=yh(e.u)),[Object.keys(e).reduce((o,s)=>{let c=t(s);return c&&(o[c]=e[s]),o},{}),r,n]}function cV(){return M_||(M_=Se.fromMillis(1555555555555)),M_}function lV(e,t){if(e.literal)return e;let r=nn.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=>lV(r,t)))}function I_(e,t,r){return new Th(e,r).explainFromTokens(t)}function Q6(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=nn.create(t,e).dtFormatter(cV()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>iV(s,e,o))}var QU,KU,J6,X6,nV,M_,Th,K6=V(()=>{Zn();vh();Hf();cc();uc();l_();ic();QU="missing Intl.DateTimeFormat.formatToParts support";KU="\xA0",J6=`[ ${KU}]`,X6=new RegExp(J6,"g");nV={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_(nn.parseFormat(r),t),this.units=this.tokens.map(n=>rV(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=oV(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=sV(t,this.regex,this.handlers),[i,o,s]=n?aV(n):[null,null,void 0];if(fc(n,"a")&&fc(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 Ch(e){return new rn("unsupported zone",`the zone "${e.name}" is not supported`)}function k_(e){return e.weekData===null&&(e.weekData=hh(e.c)),e.weekData}function N_(e){return e.localWeekData===null&&(e.localWeekData=hh(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 U0(e,t,r){return aE(Gf(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,Yf(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=or.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=Gf(o),[a,d]=aE(c,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function op(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 rn("unparsable",`the input "${i}" can't be parsed as ${n}`))}function $0(e,t,r=!0){return e.isValid?nn.create(vt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function O_(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=ir(e.c.year,r?6:4),t?(n+="-",n+=ir(e.c.month),n+="-",n+=ir(e.c.day)):(n+=ir(e.c.month),n+=ir(e.c.day)),n}function rE(e,t,r,n,i,o){let s=ir(e.c.hour);return t?(s+=":",s+=ir(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=ir(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=ir(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=ir(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=ir(Math.trunc(-e.o/60)),s+=":",s+=ir(Math.trunc(-e.o%60))):(s+="+",s+=ir(Math.trunc(e.o/60)),s+=":",s+=ir(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function mV(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 Bf(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 mV(e)}}function hV(e){return z0[e]||(V0===void 0&&(V0=bt.now()),z0[e]=e.offset(V0)),z0[e]}function iE(e,t){let r=Co(t.zone,bt.defaultZone);if(!r.isValid)return Se.invalid(Ch(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=hV(r);[i,o]=U0(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=jf(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 ip(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 lr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var L_,eE,cE,uV,dV,lE,fV,pV,V0,z0,Se,uc=V(()=>{xh();C_();lc();E_();vh();Hf();ph();Zn();k0();q6();T_();K6();h_();uh();ic();mh();L_="Invalid DateTime",eE=864e13;cE={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},uV={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},dV={ordinal:1,hour:0,minute:0,second:0,millisecond:0},lE=["year","month","day","hour","minute","second","millisecond"],fV=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],pV=["year","ordinal","hour","minute","second","millisecond"];z0={},Se=class e{constructor(t){let r=t.zone||bt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new rn("invalid input"):null)||(r.isValid?null:Ch(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 rn("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=Co(r.zone,bt.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:vt.fromObject(r)}):e.invalid(Ch(i))}static fromMillis(t,r={}){if(Eo(t))return t<-eE||t>eE?e.invalid("Timestamp out of range"):new e({ts:t,zone:Co(r.zone,bt.defaultZone),loc:vt.fromObject(r)});throw new lr(`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:Co(r.zone,bt.defaultZone),loc:vt.fromObject(r)});throw new lr("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=Co(r.zone,bt.defaultZone);if(!n.isValid)return e.invalid(Ch(n));let i=vt.fromObject(r),o=Jf(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,$=F0(a,d);I?(R=fV,B=uV,$=hh($,s,c)):h?(R=pV,B=dV,$=R0($)):(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]=$[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]=U0(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 op(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=D6(t);return op(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=F6(t);return op(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(Ge(t)||Ge(r))throw new lr("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]=Q6(s,t,r);return h?e.invalid(h):op(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 op(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new lr("need to specify a reason the DateTime is invalid");let n=t instanceof rn?t:new rn(t,r);if(bt.throwOnInvalid)throw new v0(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_(nn.parseFormat(t),vt.fromObject(r)).map(i=>i.val).join("")}static resetCache(){V0=void 0,z0={}}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?N_(this).weekday:NaN}get localWeekNumber(){return this.isValid?N_(this).weekNumber:NaN}get localWeekYear(){return this.isValid?N_(this).weekYear:NaN}get ordinal(){return this.isValid?R0(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ys.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ys.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ys.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ys.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=Gf(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 Yf(this.year,this.month)}get daysInYear(){return this.isValid?dc(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}=nn.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=Co(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]=U0(s,o,t)}return mu(this,{ts:i,zone:t})}else return e.invalid(Ch(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=Jf(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_({...hh(this.c,n,i),...r},n,i):Ge(r.ordinal)?(g={...this.toObject(),...r},Ge(r.day)&&(g.day=Math.min(Yf(g.year,g.month),g.day))):g=d_({...R0(this.c),...r});let[v,S]=U0(g,this.o,this.zone);return mu(this,{ts:v,o:S})}plus(t){if(!this.isValid)return this;let r=or.fromDurationLike(t);return mu(this,tE(this,r))}minus(t){if(!this.isValid)return this;let r=or.fromDurationLike(t).negate();return mu(this,tE(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=or.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?nn.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):L_}toLocaleString(t=oc,r={}){return this.isValid?nn.create(this.loc.clone(r),t).formatDateTime(this):L_}toLocaleParts(t={}){return this.isValid?nn.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=O_(this,s);return c+="T",c+=rE(this,s,r,n,i,o),c}toISODate({format:t="extended"}={}){return this.isValid?O_(this,t==="extended"):null}toISOWeekDate(){return $0(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 $0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return $0(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?O_(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")),$0(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 or.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=_6(r).map(or.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?Zs.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 lr("min requires all arguments be DateTimes");return g_(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new lr("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 lr("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 lr(`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):op(c,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return oc}static get DATE_MED(){return jm}static get DATE_MED_WITH_WEEKDAY(){return j2}static get DATE_FULL(){return Hm}static get DATE_HUGE(){return qm}static get TIME_SIMPLE(){return Zm}static get TIME_WITH_SECONDS(){return Ym}static get TIME_WITH_SHORT_OFFSET(){return Jm}static get TIME_WITH_LONG_OFFSET(){return Xm}static get TIME_24_SIMPLE(){return Qm}static get TIME_24_WITH_SECONDS(){return Km}static get TIME_24_WITH_SHORT_OFFSET(){return eh}static get TIME_24_WITH_LONG_OFFSET(){return th}static get DATETIME_SHORT(){return rh}static get DATETIME_SHORT_WITH_SECONDS(){return nh}static get DATETIME_MED(){return ih}static get DATETIME_MED_WITH_SECONDS(){return oh}static get DATETIME_MED_WITH_WEEKDAY(){return H2}static get DATETIME_FULL(){return sh}static get DATETIME_FULL_WITH_SECONDS(){return ah}static get DATETIME_HUGE(){return ch}static get DATETIME_HUGE_WITH_SECONDS(){return lh}}});var In=V(()=>{uc();xh();C_();E_();lu();Hf();cc();a_();T0();lc()});function hu(e){return e instanceof Tr?e===Vr.instance:e?.toString().toLowerCase()==="unknown"}function W0(e){return hu(e)?Vr.instance:e}var Vr,Eh=V(()=>{In();Vr=class{};Vr.instance=new Kt("Etc/UTC")});function sp(e,t,r){return e<t?e-t:e>r?e-r:0}function ap(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 Vr.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=Kt.create(e);if(!r.isValid){if(t)throw new R_(B0.TimeZoneNotRecognized);return null}return r}var B0,gV,R_,Mh,uE=V(()=>{nc();Eh();In();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(B0||(B0={}));gV={[B0.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},R_=class e extends Error{constructor(t,r){super(ds(gV[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};Mh=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:ap(n,1,d),year:t,month:ap(r,1,12),hour:ap(i,0,23),minute:ap(o,0,59),second:ap(s,0,59),millisecond:ap(c,0,999)},{zone:Po(a)});return h=h.plus({months:sp(r,1,12),days:sp(n,1,d),hours:sp(i,0,23),minutes:sp(o,0,59),seconds:sp(s,0,59),milliseconds:sp(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===Vr.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:Vr.instance}))}static unknownDateJSToArcadeDate(t){return new e(Se.fromMillis(t.getTime(),{zone:Vr.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===Vr.instance||n===Vr.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===Vr.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 Tt(e){return e?{remove(){e&&(e(),e=void 0)}}:wV}function yV(e){e.forEach(t=>t?.remove())}function gu(e){return Tt(()=>yV(e))}var wV,oi=V(()=>{wV={remove:()=>{}}});function fE(){let e=D_?.getAttribute("lang"),t=globalThis.navigator?.language;return vV??e??t??"en"}function Ji(){return Ph===void 0&&(Ph=fE()),Ph}function F_(e){return G0.push(e),Tt(()=>G0.splice(G0.indexOf(e),1))}function cp(e){return j0.push(e),Tt(()=>j0.splice(j0.indexOf(e),1))}function dE(){let e=bV??fE();Ph!==e&&([...j0].forEach(t=>t(e)),Ph=e,[...G0].forEach(t=>t(e)))}var bV,Ph,vV,D_,G0,j0,hc=V(()=>{oi();vV=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,D_=globalThis.document?.documentElement;G0=[];j0=[];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 on,Ih=V(()=>{uE();hc();In();on=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 Mh.dateTimeToArcadeDate(n).toFormat(t,{locale:Ji(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return Mh.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,_V,ae,gc=V(()=>{nc();(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={}));_V={[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(ds(_V[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 wn,Ah=V(()=>{In();wn=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 O(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 H0,$_=V(()=>{H0="20241109"});var Ct,wc=V(()=>{et();us();$_();Ct={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&&(HC(Ct,globalThis.esriConfig,!0),delete Ct.has),!Ct.assetsPath){{let e="4.32.0";Ct.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${H0}/assets`}Ct.defaultAssetsPath=Ct.assetsPath}});function SV(e,t,...r){console[e](`[${t}]`,...r)}function xV(...e){return XC(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var hE,ct,tt=V(()=>{wc();et();nc();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=xV(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 Ct.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",SV)}_matchLevel(t){let r=Ct.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 q0(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 TV(e){return e==null?e:new Date(e)}function CV(e){return e==null?e:!!e}function EV(e){return e==null?e:e.toString()}function B_(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function MV(e){return e==null?e:Math.round(parseFloat(e))}function PV(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 Z0(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 IV(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)&&(lp().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+Y0(e)+"'"),!0)}function G_(e,t){return t==null?t:bE(e)?IV(e,t):Z0(e,t)?V_(e,t)?t:new e(t):t}function Y0(e){return e?.prototype?.declaredClass||"unknown"}function LV(e){switch(e){case Number:return t=>B_(t);case ai:return MV;case Boolean:return CV;case String:return EV;case Date:return TV;case kh:return PV;default:return q0(AV,e,()=>G_.bind(null,e))}}function si(e,t){let r=LV(e);return arguments.length===1?r:r(t)}function up(e,t,r){return arguments.length===1?up.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function vE(e,t){return arguments.length===1?up(r=>si(e,r)):up(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 Lh(e,t,r){if(arguments.length===2)return o=>Lh(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?Lh(n=>si(e,n),t):Lh(n=>si(e,n),t,r)}function J0(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function X0(e,t){if(arguments.length===2)return X0(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=>!Z0(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),lp().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=>Y0(g)).join(", ")),lp().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):lp().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(Y0(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&&!Z0(e.base,a)||a==null)return a;let d=c(a)||e.defaultKeyValue,h=r[d];if(!h)return lp().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(!Z0(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 up(j_(e.value));case"one-of":return kV(e);default:return null}}function kV(e){let t=null;return(r,n)=>W_(r,e)?r:(t==null&&(t=z_(e)),lp().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 kh:return"null";default:return Y0(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 kh: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 lp,AV,ai,kh,Xi=V(()=>{et();tt();U_();lp=()=>ct.getLogger("esri.core.accessorSupport.ensureTypes");AV=new WeakMap;ai=class{},kh=class{}});function xi(e){return e.__accessor__??null}function CE(e,t){return e?.metadata?.[t]!=null}function dp(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]=Ye(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 K0(e){return Array.isArray(e)?e:e.split(".")}function TE(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function NV(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...TE(r));return t}return TE(e)}function H_(e,t,r,n){let i=NV(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return gu(o)}return n(e,i[0],r)}var Js=V(()=>{oi();nr()});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 CE(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,K0(t),r):EE(t,e)}function fs(e,t){return wu(e,t)}function q_(e,t){return wu(t,e)!==void 0}var yu=V(()=>{Js()});function yc(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]=Ye(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 fp(e,t){let r=yc(e),n=r[t];return n||(n=r[t]={}),n}function PE(e,t){return dp(e,t,RV)}function RV(e){return OV.test(e)?"replace":"merge"}var OV,pp=V(()=>{nr();Js();OV=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function DV(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Hi(n,t)??"").toString())}var mp,Z_=V(()=>{us();mp=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&DV(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var We,An=V(()=>{nr();tt();Z_();We=class e extends mp{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 Ye(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 hp(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))hp(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void hp(fs(e,i),o,r)}let n=e.__accessor__;n!=null&&FV(t,n),e[t]=r}}function FV(e,t){if(he("esri-unknown-property-errors")&&!$V(e,t))throw new We("set:unknown-property",UV(e,t))}function $V(e,t){return t.metadata[e]!=null}function UV(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=fp(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=fs(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=fs(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){hp(this,a,g)})}let s=e.type,c=e.types;if(!i.cast){let a;s?a=VV(s):c&&(a=Array.isArray(c)?up(Io(c[0])):Io(c)),e.cast=zV(e.cast,a)}PE(i,e),e.range&&(i.cast=wE(i.cast,e.range))}}function ew(e,t,r){let n=fp(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 VV(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(J0(n))return t===0?X0(n):Lh(X0(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 zV(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var mt=V(()=>{tt();Xi();yu();pp();Y_()});var tw,J_=V(()=>{tw=Symbol("Accessor-beforeDestroy")});var sn,Nh=V(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(sn||(sn={}))});var ht,rw=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 ps,Oh=V(()=>{ps=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){Dh.onAccessed(e)}function Ao(e,t,r){if(nw)return X_(e,t,r);let n=null;return LE(e),n=t.call(r),kE(),n}function AE(e,t){return Ao(ow,e,t)}function X_(e,t,r){let n=nw;nw=!0,LE(e);let i=null;try{i=t.call(r)}catch(o){iw&&ct.getLogger("esri.core.accessorSupport.tracking").error(o)}return kE(),nw=n,i}function LE(e){Dh=e,Rh.push(e)}function kE(){let e=Rh.length;if(e>1){let t=Rh.pop();Dh=Rh[e-2],t.onTrackingEnd()}else if(e===1){let t=Rh.pop();Dh=ow,t.onTrackingEnd()}else Dh=ow}function Q_(e,t){if(t.flags&ht.DepTrackingInitialized)return;t.flags|=ht.DepTrackingInitialized;let r=iw;iw=!1,t.flags&ht.AutoTracked?X_(t.trackingTarget,t.metadata.get,e):K_(e,t),iw=r}function K_(e,t){t.flags&ht.ExplicitlyTracking||(t.flags|=ht.ExplicitlyTracking,X_(t.trackingTarget,()=>{let r=t.metadata.dependsOn||WV;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=K0(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),Q_(e,o))}return r?e[n]:void 0}var ow,Rh,Dh,nw,iw,WV,bu=V(()=>{et();tt();Js();rw();Oh();ow=new ps,Rh=[],Dh=ow;nw=!1,iw=!1;WV=[]});function NE(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 OE=V(()=>{});var Fh,RE=V(()=>{Z_();Fh=class extends mp{constructor(t,r,n){super(t,r,n)}};Fh.prototype.type="warning"});function sw(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||jV(e)&&js("read.reader",nS(e),t))}function nS(e){let t=e.ndimArray??0;if(t>1)return GV(e);if(t===1)return DE(e);if("type"in e&&$E(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?BV(e.type):HV(e.types)}function BV(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 FE(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>FE(e,i,r,n-1)):e(t,void 0,r)}function GV(e){let t=iS(e),r=FE.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 $E(e){if(!sw(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?oS(t.Type):UE(t.Type))}function jV(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||$E(e))}function UE(e){for(let t in e.typeMap)if(!oS(e.typeMap[t]))return!1;return!0}function HV(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=qV(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 qV(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=yc(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();us();RE();pp();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&&sw(e.type))?t.write.writer=XV:r>1?t.write.writer=QV(r):t.types?Array.isArray(t.types)?t.write.writer=YV(t.types[0]):t.write.writer=ZV(t.types):t.write.writer=$h}function ZV(e){return(t,r,n,i)=>t?jE(t,e,i)?$h(t,r,n,i):void 0:$h(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 YV(e){return(t,r,n,i)=>!t||!Array.isArray(t)?$h(t,r,n,i):$h(t.filter(o=>jE(o,e,i)),r,n,i)}function $h(e,t,r,n){js(r,aw(e,n),t)}function aw(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?JV(e):e}function JV(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function XV(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>aw(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[aw(e,n)],js(r,i,t)}function HE(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>HE(n,t,r-1)):aw(e,t)}function QV(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]}js(n,o,r)}}var qE=V(()=>{An();tt();us();eS()});function ZE(e,t){return lS(e,"any",t?.origin)}function cw(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=ez(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?tz(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 ez(e){return e.json.types?cS(e.json):e.type?JE(e):cS(e)}function tz(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)&&!J0(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)&&(NE(e),KV(e))}var lw=V(()=>{Xi();OE();sS();GE();qE()});function Ie(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,nz(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[tw];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__=yc(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 rz(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 nz(e){let t=e.prototype,r=yc(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];XE(o),n[i]={enumerable:!0,configurable:!0,get:rz(i,o),set(s){let c=this.__accessor__;if(c!==void 0){if(c.mutable)return c.initialized&&o.readOnly?QE("read-only",i):c.lifecycle===sn.CONSTRUCTED&&o.constructOnly?QE("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,QE,ut=V(()=>{et();tt();J_();Nh();pp();bu();lw();uS=new Set,dS=new Set;QE=(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 KE=V(()=>{});function uw(e){return e||"_default_"}function e8(e){for(let t of e)t instanceof gp?t.removeAll():t.remove()}function t8(e){return e!=null&&(!!e.remove||e instanceof gp)}var gp,r8=V(()=>{KE();gp=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(uw(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(uw(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(uw(t),r),r}_getGroup(t){return this._groups.get(uw(t))}}});function n8(e,t){if(e==null)throw new Error(t??"value is None")}function Uh(e){return e?.destroy(),null}function Vh(e){return e?.remove(),null}function i8(e){return e?.abort(),null}var bc=V(()=>{});function iz(e){return e?.release&&typeof e.release=="function"}function oz(e){return e?.acquire&&typeof e.acquire=="function"}var Lo,zh=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):oz(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):iz(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 dw,o8=V(()=>{rc();dw=class{constructor(t,r){this._observers=t,this._observer=r}remove(){PC(this._observers,this._observer)}}});var wp,sz,pS=V(()=>{oi();o8();wp=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return sz;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 dw(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}}},sz=Tt()});function fw(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 pw(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 pw(e)}var st,Vce,vc=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={}));Vce=st.USER+1});var Wh,a8=V(()=>{pS();vc();bu();rw();Oh();Wh=class extends wp{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this.trackingTarget=new ps(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):(K_(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 mw,c8=V(()=>{nr();vc();mw=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,Ye(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 hw(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,sn.INITIALIZING,!1))}var gw,hS,mS,u8=V(()=>{et();nr();tt();zh();Nh();a8();vc();c8();bu();rw();Oh();gw=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=sn.INITIALIZING,this.store=new mw,this.mutable=!0,this._origin=st.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new Wh(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=sn.CONSTRUCTING}constructed(){this.lifecycle=sn.CONSTRUCTED}destroy(){this.lifecycle=sn.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==sn.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 pw(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(hw(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);hw(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!hw(i))return"";let o=new ps,s=Ao(o,()=>i.metadata.get?.call(t)),c=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
|
|
1
|
+
"use strict";(()=>{var tF=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),is=(e,t)=>{for(var r in t)tF(e,r,{get:t[r],enumerable:!0})};function he(e){return typeof ec[e]=="function"?ec[e]=ec[e](globalThis):ec[e]}var ec,et=V(()=>{ec=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},he.add=(e,t,r,n)=>{(n||ec[e]===void 0)&&(ec[e]=t),r&&he(e)},he.cache=ec,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,Ur=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 tc(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||EC;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 MC(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||EC;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 PC(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function IC(e,t){return e!=null}var V$,Tie,Bm,EC,_o,Cie,rc=V(()=>{Ur();V$=1.5,Tie=1/V$;Bm=class{constructor(){this.last=0}},EC=new Bm;_o=new Set;Cie=new cu});function AC(e){return e?.constructor?.name==="Int8Array"}function LC(e){return e?.constructor?.name==="Uint8Array"}function kC(e){return e?.constructor?.name==="Uint8ClampedArray"}function NC(e){return e?.constructor?.name==="Int16Array"}function OC(e){return e?.constructor?.name==="Uint16Array"}function RC(e){return e?.constructor?.name==="Int32Array"}function DC(e){return e?.constructor?.name==="Uint32Array"}function FC(e){return e?.constructor?.name==="Float32Array"}function $C(e){return e?.constructor?.name==="Float64Array"}var UC=V(()=>{et()});function b0(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&b0(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function Ye(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=GC(e);if(t!=null)return t;if(zC(e))return e.clone();if(WC(e))return e.map(Ye);if(BC(e))return e.clone();let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=Ye(e[n]);return r}function y0(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=GC(e);if(t!=null)return t;if(WC(e)){let r=!0,n=e.map(i=>{let o=y0(i);return i!=null&&o==null&&(r=!1),o});return r?n:null}if(zC(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(!BC(e)){let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=y0(i);if(i!=null&&o==null)return null;r[n]=o}return r}return null}function zC(e){return typeof e.clone=="function"}function WC(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function BC(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function VC(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function GC(e){if(AC(e)||LC(e)||kC(e)||NC(e)||OC(e)||RC(e)||DC(e)||FC(e)||$C(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,Ye(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(Ye(r));return t}return null}function Gm(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 jC(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)&&tc(e,t):e instanceof Set?t instanceof Set&&W$(e,t):e instanceof Map?t instanceof Map&&B$(e,t):!!VC(e)&&VC(t)&&z$(e,t))}function z$(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 W$(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function B$(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 nr=V(()=>{rc();UC()});function HC(e,t,r=!1){return ZC(e,t,r)}function Hi(e,t){if(t!=null)return t[e]||qC(e.split("."),!1,t)}function js(e,t,r){let n=e.split("."),i=n.pop(),o=qC(n,!0,r);o&&i&&(o[i]=t)}function qC(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 ZC(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]=Ye(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]=ZC(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var us=V(()=>{nr()});function YC(e){return e??""}function ds(e,t){return t?e.replaceAll(G$,typeof t=="object"?(r,n)=>YC(Hi(n,t)):(r,n)=>YC(t(n))):e}function JC(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function XC(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var G$,nc=V(()=>{us();G$=/\{([^}]+)\}/g});var Hs,v0,_0,S0,So,Bf,lr,xo,ic=V(()=>{Hs=class extends Error{},v0=class extends Hs{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},_0=class extends Hs{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},S0=class extends Hs{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},So=class extends Hs{},Bf=class extends Hs{constructor(t){super(`Invalid unit ${t}`)}},lr=class extends Hs{},xo=class extends Hs{constructor(){super("Zone is an abstract class")}}});var Ae,To,_i,oc,jm,j2,Hm,qm,Zm,Ym,Jm,Xm,Qm,Km,eh,th,rh,nh,ih,oh,H2,sh,ah,ch,lh,uh=V(()=>{Ae="numeric",To="short",_i="long",oc={year:Ae,month:Ae,day:Ae},jm={year:Ae,month:To,day:Ae},j2={year:Ae,month:To,day:Ae,weekday:To},Hm={year:Ae,month:_i,day:Ae},qm={year:Ae,month:_i,day:Ae,weekday:_i},Zm={hour:Ae,minute:Ae},Ym={hour:Ae,minute:Ae,second:Ae},Jm={hour:Ae,minute:Ae,second:Ae,timeZoneName:To},Xm={hour:Ae,minute:Ae,second:Ae,timeZoneName:_i},Qm={hour:Ae,minute:Ae,hourCycle:"h23"},Km={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23"},eh={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:To},th={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:_i},rh={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae},nh={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae,second:Ae},ih={year:Ae,month:To,day:Ae,hour:Ae,minute:Ae},oh={year:Ae,month:To,day:Ae,hour:Ae,minute:Ae,second:Ae},H2={year:Ae,month:To,day:Ae,weekday:To,hour:Ae,minute:Ae},sh={year:Ae,month:_i,day:Ae,hour:Ae,minute:Ae,timeZoneName:To},ah={year:Ae,month:_i,day:Ae,hour:Ae,minute:Ae,second:Ae,timeZoneName:To},ch={year:Ae,month:_i,day:Ae,weekday:_i,hour:Ae,minute:Ae,timeZoneName:_i},lh={year:Ae,month:_i,day:Ae,weekday:_i,hour:Ae,minute:Ae,second:Ae,timeZoneName:_i}});var Tr,lu=V(()=>{ic();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,sc,T0=V(()=>{Zn();lu();q2=null,sc=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 C0(t,r,n)}formatOffset(t,r){return ac(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function j$(e){return M0[e]||(M0[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"})),M0[e]}function q$(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 Z$(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=H$[o];o==="era"?n[c]=s:Ge(c)||(n[c]=parseInt(s,10))}return n}var M0,H$,E0,Kt,cc=V(()=>{Zn();lu();M0={};H$={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};E0={},Kt=class e extends Tr{static create(t){return E0[t]||(E0[t]=new e(t)),E0[t]}static resetCache(){E0={},M0={}}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 C0(t,r,n,this.name)}formatOffset(t,r){return ac(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=j$(this.name),[i,o,s,c,a,d,h]=n.formatToParts?Z$(n,r):q$(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=Gf({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 Y$(e,t={}){let r=JSON.stringify([e,t]),n=QC[r];return n||(n=new Intl.ListFormat(e,t),QC[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 J$(e,t={}){let r=JSON.stringify([e,t]),n=J2[r];return n||(n=new Intl.NumberFormat(e,t),J2[r]=n),n}function X$(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 Q$(){return dh||(dh=new Intl.DateTimeFormat().resolvedOptions().locale,dh)}function K$(e){let t=KC[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,KC[e]=t}return t}function eU(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 tU(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function rU(e){let t=[];for(let r=1;r<=12;r++){let n=Se.utc(2009,r,1);t.push(e(n))}return t}function nU(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 P0(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function iU(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 QC,Z2,J2,X2,dh,KC,Q2,K2,e_,oU,vt,ph=V(()=>{Zn();L0();lc();uc();cc();QC={};Z2={};J2={};X2={};dh=null;KC={};Q2=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=J$(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):jf(t,3);return ir(r,this.padTo)}}},K2=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&&Kt.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&&I0()&&(this.rtf=X$(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):[]}},oU={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":Q$()),a=r||bt.defaultNumberingSystem,d=n||bt.defaultOutputCalendar,h=fh(i)||bt.defaultWeekSettings;return new e(c,a,d,h,s)}static resetCache(){dh=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]=eU(t);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=tU(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=iU(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,fh(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 P0(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]=rU(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return P0(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]=nU(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return P0(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 P0(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 Q2(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new K2(t,this.intl,r)}relFormatter(t={}){return new e_(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Y$(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:A0()?K$(this.locale):oU}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,Hf=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${ac(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ac(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return ac(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 qf,a_=V(()=>{lu();qf=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 Co(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"?sc.instance:n==="utc"||n==="gmt"?At.utcInstance:At.parseSpecifier(n)||Kt.create(e)}else return Eo(e)?At.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new qf(e)}var k0=V(()=>{lu();cc();Hf();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+=sU.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(){Zf={}}function qi({numberingSystem:e},t=""){let r=e||"latn";return Zf[r]||(Zf[r]={}),Zf[r][t]||(Zf[r][t]=new RegExp(`${c_[r]}${t}`)),Zf[r][t]}var c_,r6,sU,Zf,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]},sU=c_.hanidec.replace(/[\[|\]]/g,"").split("");Zf={}});var o6,s6,a6,c6,l6,u6,d6,f6,bt,lc=V(()=>{T0();cc();ph();uc();k0();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 Co(s6,sc.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=fh(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(),Kt.resetCache(),Se.resetCache(),i6()}}});var rn,mh=V(()=>{rn=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 rn("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 O0(e,t){return(e-t+7)%7+1}function hh(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=h6(n,i,o),c=O0(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,...wh(e)}}function u_(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=O0(N0(n,1,t),r),c=dc(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=dc(d)):a>c?(d=n+1,a-=dc(n)):d=n;let{month:h,day:g}=g6(d,a);return{year:d,month:h,day:g,...wh(e)}}function R0(e){let{year:t,month:r,day:n}=e,i=h6(t,r,n);return{year:t,ordinal:i,...wh(e)}}function d_(e){let{year:t,ordinal:r}=e,{month:n,day:i}=g6(t,r);return{year:t,month:n,day:i,...wh(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=gh(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=gh(e.year),r=Si(e.ordinal,1,dc(e.year));return t?r?!1:Zi("ordinal",e.ordinal):Zi("year",e.year)}function p_(e){let t=gh(e.year),r=Si(e.month,1,12),n=Si(e.day,1,Yf(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();mh();ic();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 gh(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 I0(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function A0(){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 fc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function fh(e){if(e==null)return null;if(typeof e!="object")throw new lr("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 lr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Si(e,t,r){return gh(e)&&e>=t&&e<=r}function aU(e,t){return e-t*Math.floor(e/t)}function ir(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function qs(e){if(!(Ge(e)||e===null||e===""))return parseInt(e,10)}function pc(e){if(!(Ge(e)||e===null||e===""))return parseFloat(e)}function yh(e){if(!(Ge(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function jf(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 dc(e){return fu(e)?366:365}function Yf(e,t){let r=aU(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 Gf(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-O0(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(dc(e)-n+i)/7}function bh(e){return e>99?e:e>bt.twoDigitCutoffYear?1900+e:2e3+e}function C0(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 lr(`Invalid unit value ${e}`);return t}function Jf(e,t){let r={};for(let n in e)if(fc(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=w_(i)}return r}function ac(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}${ir(r,2)}:${ir(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${ir(r,2)}${ir(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function wh(e){return S6(e,["hour","minute","second","millisecond"])}var Zn=V(()=>{ic();lc();h_()});function t_(e){switch(e){case"narrow":return[...lU];case"short":return[...y_];case"long":return[...cU];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[...uU];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[...pU];case"short":return[...fU];case"long":return[...dU];default:return null}}function x6(e){return n_[e.hour<12?0:1]}function T6(e,t){return r_(t)[e.weekday-1]}function C6(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 cU,y_,lU,b_,v_,uU,n_,dU,fU,pU,L0=V(()=>{uh();Zn();cU=["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"],lU=["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"],uU=["M","T","W","T","F","S","S"];n_=["AM","PM"],dU=["Before Christ","Anno Domini"],fU=["BC","AD"],pU=["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 mU,nn,vh=V(()=>{L0();uh();Zn();mU={D:oc,DD:jm,DDD:Hm,DDDD:qm,t:Zm,tt:Ym,ttt:Jm,tttt:Xm,T:Qm,TT:Km,TTT:eh,TTTT:th,f:rh,ff:ih,fff:sh,ffff:ch,F:nh,FF:oh,FFF:ah,FFFF:lh},nn=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 mU[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 ir(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?C6(t,S):o(M?{month:S}:{month:S,day:"numeric"},"month"),d=(S,M)=>n?T6(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 Kf(...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 ep(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]]=qs(t[r+i]);return[n,null,r+i]}}function Xf(e,t,r){let n=e[t];return Ge(n)?r:qs(n)}function xU(e,t){return[{year:Xf(e,t),month:Xf(e,t+1,1),day:Xf(e,t+2,1)},null,t+3]}function tp(e,t){return[{hours:Xf(e,t,0),minutes:Xf(e,t+1,0),seconds:Xf(e,t+2,0),milliseconds:yh(e[t+3])},null,t+4]}function _h(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 Sh(e,t){let r=e[t]?Kt.create(e[t]):null;return[{},r,t+1]}function EU(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(pc(r)),months:v(pc(n)),weeks:v(pc(i)),days:v(pc(o)),hours:v(pc(s)),minutes:v(pc(c)),seconds:v(pc(a),a==="-0"),milliseconds:v(yh(d),g)}]}function x_(e,t,r,n,i,o,s){let c={year:t.length===2?bh(qs(t)):qs(t),month:y_.indexOf(r)+1,day:qs(n),hour:qs(i),minute:qs(o)};return s&&(c.second=qs(s)),e&&(c.weekday=e.length>3?b_.indexOf(e)+1:v_.indexOf(e)+1),c}function IU(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=MU[a]:d?S=0:S=uu(h,g),[v,new At(S)]}function AU(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 ep(e,[RU,O6],[DU,UU],[FU,VU],[$U,zU])}function D6(e){return ep(AU(e),[PU,IU])}function F6(e){return ep(e,[LU,P6],[kU,P6],[NU,OU])}function $6(e){return ep(e,[CU,EU])}function U6(e){return ep(e,[TU,WU])}function V6(e){return ep(e,[BU,O6],[GU,jU])}var I6,L6,hU,__,k6,S_,gU,wU,yU,bU,vU,_U,N6,SU,TU,CU,MU,PU,LU,kU,NU,RU,DU,FU,$U,O6,UU,VU,zU,WU,BU,GU,jU,T_=V(()=>{Zn();L0();Hf();cc();I6=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;L6=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,hU=`(?:${L6.source}?(?:\\[(${I6.source})\\])?)?`,__=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,k6=RegExp(`${__.source}${hU}`),S_=RegExp(`(?:T${k6.source})?`),gU=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wU=/(\d{4})-?W(\d\d)(?:-?(\d))?/,yU=/(\d{4})-?(\d{3})/,bU=A6("weekYear","weekNumber","weekDay"),vU=A6("year","ordinal"),_U=/(\d{4})-(\d\d)-(\d\d)/,N6=RegExp(`${__.source} ?(?:${L6.source}|(${I6.source}))?`),SU=RegExp(`(?: ${N6.source})?`);TU=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)?)?)$/;MU={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};PU=/^(?:(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)))$/;LU=/^(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$/,kU=/^(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$/,NU=/^(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})$/;RU=Qf(gU,S_),DU=Qf(wU,S_),FU=Qf(yU,S_),$U=Qf(k6),O6=Kf(xU,tp,_h,Sh),UU=Kf(bU,tp,_h,Sh),VU=Kf(vU,tp,_h,Sh),zU=Kf(tp,_h,Sh);WU=Kf(tp);BU=Qf(_U,SU),GU=Qf(N6),jU=Kf(tp,_h,Sh)});function mc(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 or(n)}function G6(e,t){let r=t.milliseconds??0;for(let n of ZU.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 YU(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var z6,B6,HU,Yi,rp,qU,pu,ZU,or,xh=V(()=>{ic();vh();mh();ph();T_();Zn();lc();uc();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}},HU={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,rp=146097/4800,qU={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:rp/7,days:rp,hours:rp*24,minutes:rp*24*60,seconds:rp*24*60*60,milliseconds:rp*24*60*60*1e3},...B6},pu=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ZU=pu.slice(0).reverse();or=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?qU:HU;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 lr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Jf(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 lr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=$6(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 lr("need to specify a reason the Duration is invalid");let n=t instanceof rn?t:new rn(t,r);if(bt.throwOnInvalid)throw new S0(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 Bf(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?nn.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+=jf(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)(fc(r.values,i)||fc(this.values,i))&&(n[i]=r.get(i)+this.get(i));return mc(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 mc(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...Jf(t,e.normalizeUnit)};return mc(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 mc(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),mc(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=YU(this.normalize().shiftToAll().toObject());return mc(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),mc(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 mc(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 JU(e,t){return!e||!e.isValid?Zs.invalid("missing or invalid start"):!t||!t.isValid?Zs.invalid("missing or invalid end"):t<e?Zs.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 np,Zs,C_=V(()=>{uc();xh();lc();ic();mh();vh();uh();np="Invalid Interval";Zs=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 lr("need to specify a reason the Interval is invalid");let n=t instanceof rn?t:new rn(t,r);if(bt.throwOnInvalid)throw new _0(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=ip(t),i=ip(r),o=JU(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=or.fromDurationLike(r),i=ip(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=or.fromDurationLike(r),i=ip(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=or.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=or.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(ip).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=or.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()})`:np}[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=oc,r={}){return this.isValid?nn.create(this.s.loc.clone(r),t).formatInterval(this):np}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:np}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:np}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:np}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:np}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):or.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var Ys,E_=V(()=>{uc();lc();ph();cc();k0();Zn();Ys=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 Kt.isValidZone(t)}static normalizeZone(t){return Co(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:I0(),localeWeek:A0()}}}});function j6(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(or.fromMillis(n).as("days"))}function XU(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]=XU(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=or.fromObject(o,n);return d.length>0?or.fromMillis(a,n).shiftTo(...d).plus(h):h}var q6=V(()=>{xh()});function xt(e,t=r=>r){return{regex:e,deser:([r])=>t(n6(r))}}function eV(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(eV).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 D0(e){return{regex:e,deser:([t])=>t}}function tV(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function rV(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(tV(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,bh);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 D0(h);case"uu":return D0(c);case"uuu":return xt(r);case"a":return Mo(t.meridiems(),0);case"kkkk":return xt(o);case"kk":return xt(g,bh);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 D0(/[a-z_+-/]{1,256}?/i);case" ":return D0(/[^\S\n\r]/);default:return S(R)}})(e)||{invalidReason:QU};return I.token=e,I}function iV(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=nV[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function oV(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function sV(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(fc(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 aV(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=Kt.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=yh(e.u)),[Object.keys(e).reduce((o,s)=>{let c=t(s);return c&&(o[c]=e[s]),o},{}),r,n]}function cV(){return M_||(M_=Se.fromMillis(1555555555555)),M_}function lV(e,t){if(e.literal)return e;let r=nn.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=>lV(r,t)))}function I_(e,t,r){return new Th(e,r).explainFromTokens(t)}function Q6(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=nn.create(t,e).dtFormatter(cV()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>iV(s,e,o))}var QU,KU,J6,X6,nV,M_,Th,K6=V(()=>{Zn();vh();Hf();cc();uc();l_();ic();QU="missing Intl.DateTimeFormat.formatToParts support";KU="\xA0",J6=`[ ${KU}]`,X6=new RegExp(J6,"g");nV={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_(nn.parseFormat(r),t),this.units=this.tokens.map(n=>rV(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=oV(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=sV(t,this.regex,this.handlers),[i,o,s]=n?aV(n):[null,null,void 0];if(fc(n,"a")&&fc(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 Ch(e){return new rn("unsupported zone",`the zone "${e.name}" is not supported`)}function k_(e){return e.weekData===null&&(e.weekData=hh(e.c)),e.weekData}function N_(e){return e.localWeekData===null&&(e.localWeekData=hh(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 U0(e,t,r){return aE(Gf(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,Yf(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=or.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=Gf(o),[a,d]=aE(c,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function op(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 rn("unparsable",`the input "${i}" can't be parsed as ${n}`))}function $0(e,t,r=!0){return e.isValid?nn.create(vt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function O_(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=ir(e.c.year,r?6:4),t?(n+="-",n+=ir(e.c.month),n+="-",n+=ir(e.c.day)):(n+=ir(e.c.month),n+=ir(e.c.day)),n}function rE(e,t,r,n,i,o){let s=ir(e.c.hour);return t?(s+=":",s+=ir(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=ir(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=ir(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=ir(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=ir(Math.trunc(-e.o/60)),s+=":",s+=ir(Math.trunc(-e.o%60))):(s+="+",s+=ir(Math.trunc(e.o/60)),s+=":",s+=ir(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function mV(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 Bf(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 mV(e)}}function hV(e){return z0[e]||(V0===void 0&&(V0=bt.now()),z0[e]=e.offset(V0)),z0[e]}function iE(e,t){let r=Co(t.zone,bt.defaultZone);if(!r.isValid)return Se.invalid(Ch(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=hV(r);[i,o]=U0(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=jf(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 ip(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 lr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var L_,eE,cE,uV,dV,lE,fV,pV,V0,z0,Se,uc=V(()=>{xh();C_();lc();E_();vh();Hf();ph();Zn();k0();q6();T_();K6();h_();uh();ic();mh();L_="Invalid DateTime",eE=864e13;cE={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},uV={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},dV={ordinal:1,hour:0,minute:0,second:0,millisecond:0},lE=["year","month","day","hour","minute","second","millisecond"],fV=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],pV=["year","ordinal","hour","minute","second","millisecond"];z0={},Se=class e{constructor(t){let r=t.zone||bt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new rn("invalid input"):null)||(r.isValid?null:Ch(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 rn("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=Co(r.zone,bt.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:vt.fromObject(r)}):e.invalid(Ch(i))}static fromMillis(t,r={}){if(Eo(t))return t<-eE||t>eE?e.invalid("Timestamp out of range"):new e({ts:t,zone:Co(r.zone,bt.defaultZone),loc:vt.fromObject(r)});throw new lr(`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:Co(r.zone,bt.defaultZone),loc:vt.fromObject(r)});throw new lr("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=Co(r.zone,bt.defaultZone);if(!n.isValid)return e.invalid(Ch(n));let i=vt.fromObject(r),o=Jf(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,$=F0(a,d);I?(R=fV,B=uV,$=hh($,s,c)):h?(R=pV,B=dV,$=R0($)):(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]=$[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]=U0(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 op(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=D6(t);return op(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=F6(t);return op(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(Ge(t)||Ge(r))throw new lr("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]=Q6(s,t,r);return h?e.invalid(h):op(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 op(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new lr("need to specify a reason the DateTime is invalid");let n=t instanceof rn?t:new rn(t,r);if(bt.throwOnInvalid)throw new v0(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_(nn.parseFormat(t),vt.fromObject(r)).map(i=>i.val).join("")}static resetCache(){V0=void 0,z0={}}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?N_(this).weekday:NaN}get localWeekNumber(){return this.isValid?N_(this).weekNumber:NaN}get localWeekYear(){return this.isValid?N_(this).weekYear:NaN}get ordinal(){return this.isValid?R0(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ys.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ys.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ys.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ys.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=Gf(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 Yf(this.year,this.month)}get daysInYear(){return this.isValid?dc(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}=nn.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=Co(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]=U0(s,o,t)}return mu(this,{ts:i,zone:t})}else return e.invalid(Ch(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=Jf(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_({...hh(this.c,n,i),...r},n,i):Ge(r.ordinal)?(g={...this.toObject(),...r},Ge(r.day)&&(g.day=Math.min(Yf(g.year,g.month),g.day))):g=d_({...R0(this.c),...r});let[v,S]=U0(g,this.o,this.zone);return mu(this,{ts:v,o:S})}plus(t){if(!this.isValid)return this;let r=or.fromDurationLike(t);return mu(this,tE(this,r))}minus(t){if(!this.isValid)return this;let r=or.fromDurationLike(t).negate();return mu(this,tE(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=or.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?nn.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):L_}toLocaleString(t=oc,r={}){return this.isValid?nn.create(this.loc.clone(r),t).formatDateTime(this):L_}toLocaleParts(t={}){return this.isValid?nn.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=O_(this,s);return c+="T",c+=rE(this,s,r,n,i,o),c}toISODate({format:t="extended"}={}){return this.isValid?O_(this,t==="extended"):null}toISOWeekDate(){return $0(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 $0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return $0(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?O_(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")),$0(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 or.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=_6(r).map(or.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?Zs.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 lr("min requires all arguments be DateTimes");return g_(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new lr("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 lr("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 lr(`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):op(c,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return oc}static get DATE_MED(){return jm}static get DATE_MED_WITH_WEEKDAY(){return j2}static get DATE_FULL(){return Hm}static get DATE_HUGE(){return qm}static get TIME_SIMPLE(){return Zm}static get TIME_WITH_SECONDS(){return Ym}static get TIME_WITH_SHORT_OFFSET(){return Jm}static get TIME_WITH_LONG_OFFSET(){return Xm}static get TIME_24_SIMPLE(){return Qm}static get TIME_24_WITH_SECONDS(){return Km}static get TIME_24_WITH_SHORT_OFFSET(){return eh}static get TIME_24_WITH_LONG_OFFSET(){return th}static get DATETIME_SHORT(){return rh}static get DATETIME_SHORT_WITH_SECONDS(){return nh}static get DATETIME_MED(){return ih}static get DATETIME_MED_WITH_SECONDS(){return oh}static get DATETIME_MED_WITH_WEEKDAY(){return H2}static get DATETIME_FULL(){return sh}static get DATETIME_FULL_WITH_SECONDS(){return ah}static get DATETIME_HUGE(){return ch}static get DATETIME_HUGE_WITH_SECONDS(){return lh}}});var In=V(()=>{uc();xh();C_();E_();lu();Hf();cc();a_();T0();lc()});function hu(e){return e instanceof Tr?e===Vr.instance:e?.toString().toLowerCase()==="unknown"}function W0(e){return hu(e)?Vr.instance:e}var Vr,Eh=V(()=>{In();Vr=class{};Vr.instance=new Kt("Etc/UTC")});function sp(e,t,r){return e<t?e-t:e>r?e-r:0}function ap(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 Vr.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=Kt.create(e);if(!r.isValid){if(t)throw new R_(B0.TimeZoneNotRecognized);return null}return r}var B0,gV,R_,Mh,uE=V(()=>{nc();Eh();In();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(B0||(B0={}));gV={[B0.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},R_=class e extends Error{constructor(t,r){super(ds(gV[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};Mh=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:ap(n,1,d),year:t,month:ap(r,1,12),hour:ap(i,0,23),minute:ap(o,0,59),second:ap(s,0,59),millisecond:ap(c,0,999)},{zone:Po(a)});return h=h.plus({months:sp(r,1,12),days:sp(n,1,d),hours:sp(i,0,23),minutes:sp(o,0,59),seconds:sp(s,0,59),milliseconds:sp(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===Vr.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:Vr.instance}))}static unknownDateJSToArcadeDate(t){return new e(Se.fromMillis(t.getTime(),{zone:Vr.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===Vr.instance||n===Vr.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===Vr.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 Tt(e){return e?{remove(){e&&(e(),e=void 0)}}:wV}function yV(e){e.forEach(t=>t?.remove())}function gu(e){return Tt(()=>yV(e))}var wV,oi=V(()=>{wV={remove:()=>{}}});function fE(){let e=D_?.getAttribute("lang"),t=globalThis.navigator?.language;return vV??e??t??"en"}function Ji(){return Ph===void 0&&(Ph=fE()),Ph}function F_(e){return G0.push(e),Tt(()=>G0.splice(G0.indexOf(e),1))}function cp(e){return j0.push(e),Tt(()=>j0.splice(j0.indexOf(e),1))}function dE(){let e=bV??fE();Ph!==e&&([...j0].forEach(t=>t(e)),Ph=e,[...G0].forEach(t=>t(e)))}var bV,Ph,vV,D_,G0,j0,hc=V(()=>{oi();vV=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,D_=globalThis.document?.documentElement;G0=[];j0=[];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 on,Ih=V(()=>{uE();hc();In();on=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 Mh.dateTimeToArcadeDate(n).toFormat(t,{locale:Ji(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return Mh.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,_V,ae,gc=V(()=>{nc();(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={}));_V={[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(ds(_V[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 wn,Ah=V(()=>{In();wn=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 O(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 H0,$_=V(()=>{H0="20241110"});var Ct,wc=V(()=>{et();us();$_();Ct={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&&(HC(Ct,globalThis.esriConfig,!0),delete Ct.has),!Ct.assetsPath){{let e="4.32.0";Ct.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${H0}/assets`}Ct.defaultAssetsPath=Ct.assetsPath}});function SV(e,t,...r){console[e](`[${t}]`,...r)}function xV(...e){return XC(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var hE,ct,tt=V(()=>{wc();et();nc();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=xV(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 Ct.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",SV)}_matchLevel(t){let r=Ct.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 q0(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 TV(e){return e==null?e:new Date(e)}function CV(e){return e==null?e:!!e}function EV(e){return e==null?e:e.toString()}function B_(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function MV(e){return e==null?e:Math.round(parseFloat(e))}function PV(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 Z0(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 IV(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)&&(lp().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+Y0(e)+"'"),!0)}function G_(e,t){return t==null?t:bE(e)?IV(e,t):Z0(e,t)?V_(e,t)?t:new e(t):t}function Y0(e){return e?.prototype?.declaredClass||"unknown"}function LV(e){switch(e){case Number:return t=>B_(t);case ai:return MV;case Boolean:return CV;case String:return EV;case Date:return TV;case kh:return PV;default:return q0(AV,e,()=>G_.bind(null,e))}}function si(e,t){let r=LV(e);return arguments.length===1?r:r(t)}function up(e,t,r){return arguments.length===1?up.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function vE(e,t){return arguments.length===1?up(r=>si(e,r)):up(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 Lh(e,t,r){if(arguments.length===2)return o=>Lh(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?Lh(n=>si(e,n),t):Lh(n=>si(e,n),t,r)}function J0(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function X0(e,t){if(arguments.length===2)return X0(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=>!Z0(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),lp().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=>Y0(g)).join(", ")),lp().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):lp().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(Y0(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&&!Z0(e.base,a)||a==null)return a;let d=c(a)||e.defaultKeyValue,h=r[d];if(!h)return lp().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(!Z0(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 up(j_(e.value));case"one-of":return kV(e);default:return null}}function kV(e){let t=null;return(r,n)=>W_(r,e)?r:(t==null&&(t=z_(e)),lp().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 kh:return"null";default:return Y0(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 kh: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 lp,AV,ai,kh,Xi=V(()=>{et();tt();U_();lp=()=>ct.getLogger("esri.core.accessorSupport.ensureTypes");AV=new WeakMap;ai=class{},kh=class{}});function xi(e){return e.__accessor__??null}function CE(e,t){return e?.metadata?.[t]!=null}function dp(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]=Ye(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 K0(e){return Array.isArray(e)?e:e.split(".")}function TE(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function NV(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...TE(r));return t}return TE(e)}function H_(e,t,r,n){let i=NV(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return gu(o)}return n(e,i[0],r)}var Js=V(()=>{oi();nr()});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 CE(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,K0(t),r):EE(t,e)}function fs(e,t){return wu(e,t)}function q_(e,t){return wu(t,e)!==void 0}var yu=V(()=>{Js()});function yc(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]=Ye(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 fp(e,t){let r=yc(e),n=r[t];return n||(n=r[t]={}),n}function PE(e,t){return dp(e,t,RV)}function RV(e){return OV.test(e)?"replace":"merge"}var OV,pp=V(()=>{nr();Js();OV=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function DV(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Hi(n,t)??"").toString())}var mp,Z_=V(()=>{us();mp=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&DV(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var We,An=V(()=>{nr();tt();Z_();We=class e extends mp{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 Ye(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 hp(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))hp(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void hp(fs(e,i),o,r)}let n=e.__accessor__;n!=null&&FV(t,n),e[t]=r}}function FV(e,t){if(he("esri-unknown-property-errors")&&!$V(e,t))throw new We("set:unknown-property",UV(e,t))}function $V(e,t){return t.metadata[e]!=null}function UV(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=fp(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=fs(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=fs(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){hp(this,a,g)})}let s=e.type,c=e.types;if(!i.cast){let a;s?a=VV(s):c&&(a=Array.isArray(c)?up(Io(c[0])):Io(c)),e.cast=zV(e.cast,a)}PE(i,e),e.range&&(i.cast=wE(i.cast,e.range))}}function ew(e,t,r){let n=fp(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 VV(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(J0(n))return t===0?X0(n):Lh(X0(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 zV(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var mt=V(()=>{tt();Xi();yu();pp();Y_()});var tw,J_=V(()=>{tw=Symbol("Accessor-beforeDestroy")});var sn,Nh=V(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(sn||(sn={}))});var ht,rw=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 ps,Oh=V(()=>{ps=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){Dh.onAccessed(e)}function Ao(e,t,r){if(nw)return X_(e,t,r);let n=null;return LE(e),n=t.call(r),kE(),n}function AE(e,t){return Ao(ow,e,t)}function X_(e,t,r){let n=nw;nw=!0,LE(e);let i=null;try{i=t.call(r)}catch(o){iw&&ct.getLogger("esri.core.accessorSupport.tracking").error(o)}return kE(),nw=n,i}function LE(e){Dh=e,Rh.push(e)}function kE(){let e=Rh.length;if(e>1){let t=Rh.pop();Dh=Rh[e-2],t.onTrackingEnd()}else if(e===1){let t=Rh.pop();Dh=ow,t.onTrackingEnd()}else Dh=ow}function Q_(e,t){if(t.flags&ht.DepTrackingInitialized)return;t.flags|=ht.DepTrackingInitialized;let r=iw;iw=!1,t.flags&ht.AutoTracked?X_(t.trackingTarget,t.metadata.get,e):K_(e,t),iw=r}function K_(e,t){t.flags&ht.ExplicitlyTracking||(t.flags|=ht.ExplicitlyTracking,X_(t.trackingTarget,()=>{let r=t.metadata.dependsOn||WV;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=K0(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),Q_(e,o))}return r?e[n]:void 0}var ow,Rh,Dh,nw,iw,WV,bu=V(()=>{et();tt();Js();rw();Oh();ow=new ps,Rh=[],Dh=ow;nw=!1,iw=!1;WV=[]});function NE(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 OE=V(()=>{});var Fh,RE=V(()=>{Z_();Fh=class extends mp{constructor(t,r,n){super(t,r,n)}};Fh.prototype.type="warning"});function sw(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||jV(e)&&js("read.reader",nS(e),t))}function nS(e){let t=e.ndimArray??0;if(t>1)return GV(e);if(t===1)return DE(e);if("type"in e&&$E(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?BV(e.type):HV(e.types)}function BV(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 FE(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>FE(e,i,r,n-1)):e(t,void 0,r)}function GV(e){let t=iS(e),r=FE.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 $E(e){if(!sw(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?oS(t.Type):UE(t.Type))}function jV(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||$E(e))}function UE(e){for(let t in e.typeMap)if(!oS(e.typeMap[t]))return!1;return!0}function HV(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=qV(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 qV(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=yc(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();us();RE();pp();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&&sw(e.type))?t.write.writer=XV:r>1?t.write.writer=QV(r):t.types?Array.isArray(t.types)?t.write.writer=YV(t.types[0]):t.write.writer=ZV(t.types):t.write.writer=$h}function ZV(e){return(t,r,n,i)=>t?jE(t,e,i)?$h(t,r,n,i):void 0:$h(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 YV(e){return(t,r,n,i)=>!t||!Array.isArray(t)?$h(t,r,n,i):$h(t.filter(o=>jE(o,e,i)),r,n,i)}function $h(e,t,r,n){js(r,aw(e,n),t)}function aw(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?JV(e):e}function JV(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function XV(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>aw(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[aw(e,n)],js(r,i,t)}function HE(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>HE(n,t,r-1)):aw(e,t)}function QV(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]}js(n,o,r)}}var qE=V(()=>{An();tt();us();eS()});function ZE(e,t){return lS(e,"any",t?.origin)}function cw(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=ez(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?tz(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 ez(e){return e.json.types?cS(e.json):e.type?JE(e):cS(e)}function tz(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)&&!J0(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)&&(NE(e),KV(e))}var lw=V(()=>{Xi();OE();sS();GE();qE()});function Ie(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,nz(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[tw];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__=yc(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 rz(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 nz(e){let t=e.prototype,r=yc(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];XE(o),n[i]={enumerable:!0,configurable:!0,get:rz(i,o),set(s){let c=this.__accessor__;if(c!==void 0){if(c.mutable)return c.initialized&&o.readOnly?QE("read-only",i):c.lifecycle===sn.CONSTRUCTED&&o.constructOnly?QE("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,QE,ut=V(()=>{et();tt();J_();Nh();pp();bu();lw();uS=new Set,dS=new Set;QE=(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 KE=V(()=>{});function uw(e){return e||"_default_"}function e8(e){for(let t of e)t instanceof gp?t.removeAll():t.remove()}function t8(e){return e!=null&&(!!e.remove||e instanceof gp)}var gp,r8=V(()=>{KE();gp=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(uw(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(uw(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(uw(t),r),r}_getGroup(t){return this._groups.get(uw(t))}}});function n8(e,t){if(e==null)throw new Error(t??"value is None")}function Uh(e){return e?.destroy(),null}function Vh(e){return e?.remove(),null}function i8(e){return e?.abort(),null}var bc=V(()=>{});function iz(e){return e?.release&&typeof e.release=="function"}function oz(e){return e?.acquire&&typeof e.acquire=="function"}var Lo,zh=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):oz(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):iz(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 dw,o8=V(()=>{rc();dw=class{constructor(t,r){this._observers=t,this._observer=r}remove(){PC(this._observers,this._observer)}}});var wp,sz,pS=V(()=>{oi();o8();wp=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return sz;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 dw(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}}},sz=Tt()});function fw(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 pw(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 pw(e)}var st,Vce,vc=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={}));Vce=st.USER+1});var Wh,a8=V(()=>{pS();vc();bu();rw();Oh();Wh=class extends wp{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this.trackingTarget=new ps(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):(K_(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 mw,c8=V(()=>{nr();vc();mw=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,Ye(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 hw(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,sn.INITIALIZING,!1))}var gw,hS,mS,u8=V(()=>{et();nr();tt();zh();Nh();a8();vc();c8();bu();rw();Oh();gw=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=sn.INITIALIZING,this.store=new mw,this.mutable=!0,this._origin=st.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new Wh(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=sn.CONSTRUCTING}constructed(){this.lifecycle=sn.CONSTRUCTED}destroy(){this.lifecycle=sn.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==sn.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 pw(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(hw(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);hw(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!hw(i))return"";let o=new ps,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 Wh&&(c+=`${n}${d.propertyName}: undefined
|
|
3
3
|
`);return c}setAtOrigin(t,r,n){let i=this.propertiesByName.get(t);if(hw(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=fw(t)}getDefaultOrigin(){return pw(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!==sn.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)&&Gm(r,i.get(o))&&~t.flags&ht.Overridden&&n===i.originOf(o)||(t.invalidate(),i.set(o,r,n),t.commit(),Q_(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 az}var az,d8,f8=V(()=>{(function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"})(d8||(d8={}))});function cz(e){e.length=0}var Yn,wS,ww=V(()=>{zh();Yn=class{constructor(t=50,r=50){this._pool=new Lo(Array,void 0,cz,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 yw,p8=V(()=>{zh();yw=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){bw.push(e),bw.length===1&&queueMicrotask(()=>{let t=bw.slice();bw.length=0;for(let r of t)r()})}var bw,m8=V(()=>{bw=[]});var Bh,h8=V(()=>{Bh=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>lz*e.length&&(e.data.length=Math.floor(e.length*uz))}var lz,uz,Gh,y8=V(()=>{rc();g8();lz=1.5,uz=1.1,Gh=class{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new Bm,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=MC(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 dz(e){return{setTimeout:(t,r)=>{let n=e.setTimeout(t,r);return Tt(()=>e.clearTimeout(n))}}}var b8,v8=V(()=>{oi();b8=dz(globalThis)});function jh(e){return fz(e)||_8(e)}function fz(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 _c(e,t,r){if(!jh(e))throw new TypeError("target is not a Evented or EventTarget object");return _8(e)?pz(e,t,r):e.on(t,r)}function pz(e,t,r,n){if(Array.isArray(t)){let i=t.slice();for(let o of i)e.addEventListener(o,r,n);return Tt(()=>{for(let o of i)e.removeEventListener(o,r,n)})}return e.addEventListener(t,r,n),Tt(()=>e.removeEventListener(t,r,n))}function S8(e,t,r){if(!jh(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=_c(e,t,i=>{n.remove(),r.call(e,i)});return n}var Hh=V(()=>{oi()});function ms(e="Aborted"){return new We("AbortError",e)}function vw(e){return e instanceof AbortSignal?e:e?.signal??void 0}function Xs(e){let t=vw(e);return t!=null&&t.aborted}function _S(e){if(!qh(e))throw e}function Ti(e,t){let r=vw(e);if(r!=null){if(!r.aborted)return S8(r,"abort",()=>t());t()}}function qh(e){return e?.name==="AbortError"}function mz(e,t=void 0,r){let n=new AbortController;return Ti(r,()=>n.abort()),new Promise((i,o)=>{let s=setTimeout(()=>{s=0,i(t)},e);Ti(n,()=>{s&&(clearTimeout(s),o(ms()))})})}function hz(e){return e&&typeof e.then=="function"}function x8(e){return hz(e)?e:Promise.resolve(e)}function T8(e,t=-1){let r,n,i,o,s=null,c=(...a)=>{if(r){n=a,o&&o.reject(ms()),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;mz(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();Hh();tt();bc()});var C8=V(()=>{});function gz(){Yh!=null&&(cancelAnimationFrame(Yh),Yh=requestAnimationFrame(P8))}function xw(e){let t=new SS(e);return TS.push(t),Sw.willDispatch||(Sw.willDispatch=!0,yS(A8)),t}function wz(e=!1){yp.forAll(t=>{t.removed=!0}),e&&I8()}function P8(){let e=performance.now();Yh=null,Yh=yp.some(r=>!r.paused&&!r.removed)?requestAnimationFrame(P8):null,Sw.executeFrameTasks(e)}function yz(e){let t=e-E8;E8=e;let r=M8>0?M8:1e3/60,n=Math.max(0,t-r);Zh.time=e,Zh.frameDuration=r-n;for(let i=0;i<xS.length;i++){let o=performance.now(),s=xS[i];yp.forAll(c=>{c.paused||c.removed||(i===0&&c.ticks++,c.phases[s]&&(Zh.elapsedFrameTime=performance.now()-e,Zh.deltaTime=c.ticks===0?0:t,c.phases[s]?.call(c,Zh)))}),_z[i].push(performance.now()-o)}I8(),Sz.push(performance.now()-e)}function I8(){yp.forAll(e=>{e.removed&&_w.push(e)}),yp.removeUnorderedMany(_w.data,_w.length),_w.clear()}function A8(){for(;TS.length;){let e=TS.shift();e.isActive&&e.callback()}Sw.willDispatch=!1}function bz(e=1,t){let r=ci(),n=()=>{Xs(t)?r.reject(ms()):e===0?r():(--e,yS(()=>n()))};return n(),r.promise}function vz(e){return bz(1,e)}async function L8(e){await vz(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}var SS,E8,M8,Zh,xS,TS,yp,Sw,Yh,_w,_z,Sz,Tw=V(()=>{m8();h8();y8();ko();C8();SS=class{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}},E8=0,M8=0,Zh={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},xS=["prepare","preRender","render","postRender","update","finish"],TS=[],yp=new Gh;Sw={frameTasks:yp,willDispatch:!1,clearFrameTasks:wz,dispatch:A8,executeFrameTasks:yz,reschedule:gz};Yh=null;_w=new Gh;_z=xS.map(e=>new Bh(e)),Sz=new Bh("total")});function k8(e,t){if(!t)return e;for(let r of t)r!=null&&e.add(r);return e}function N8(e,t){let r=new Set;return k8(r,e),k8(r,t),r}var CS=V(()=>{});function Cw(){return++xz}var xz,O8=V(()=>{xz=0});function Tz(){}var vu,ES,R8,MS=V(()=>{Oh();vu=class extends ps{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=Tz}},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),Ez()}function s(){r&&(r.destroy(),r=null,n=null)}return i=!0,n=Ao(r,e),i=!1,Tt(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(),Tt(o)}function Cz(e){Ew.includes(e)||Ew.unshift(e)}function Ez(){for(;Ew.length;)Ew.pop()()}var PS,Ew,LS=V(()=>{oi();bu();MS();PS=!1,Ew=[]});function Iw(e){Sc.delete(e),Sc.add(e),Pw||(Pw=xw(Pz))}function Mz(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 Sc.values())t.target===e&&(t.removed=!0)}function Pz(){let e=10;for(;Pw&&e--;){Pw=null;let t=Iz(),r=Mw.acquire();for(let n of t){let i=n.uid;Mz(n),i===n.uid&&n.removed&&r.push(n)}for(let n of Sc)n.removed&&(r.push(n),Sc.delete(n));for(let n of r)_u.pool.release(n);Mw.release(r),Mw.release(t),Az.forEach(n=>n())}}function Iz(){let e=Mw.acquire();e.length=Sc.size;let t=0;for(let r of Sc)e[t]=r,++t;return Sc.clear(),e}function Lz(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===sn.DESTROYED||c&&c.uid!==a?n.remove():(c||(c=_u.acquireUntracked(h,s,g,i,o),a=c.uid),Iw(c))});return Tt(()=>{d.remove(),c&&(c.uid!==a||c.removed||(c.removed=!0,Iw(c)),c=null),n=d=null})});return n}function kz(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!==sn.DESTROYED?c||(c=!0,Gm(d,a)||s.call(i,a,d,o,i),c=!1):n.remove()})});return n}function F8(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==sn.DESTROYED?n?kz(e,t,r):Lz(e,t,r):Tt()}function Nz(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),Iw(n))});return Tt(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,Iw(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 $8(e,t,r=!1,n=jC){return r?Oz(e,t,n):Nz(e,t,n)}var Jh,_u,Mw,Sc,Pw,Az,kS=V(()=>{ww();oi();nr();p8();Tw();CS();O8();yu();Nh();LS();Js();(function(e){e[e.Untracked=0]="Untracked",e[e.Tracked=1]="Tracked"})(Jh||(Jh={}));_u=class{constructor(){this.uid=Cw(),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(Jh.Untracked,t,r,n,i,o,Gm)}static acquireTracked(t,r,n,i){return this.pool.acquire(Jh.Tracked,t,r,n,null,null,i)}notify(t,r){this.type===Jh.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=Cw(),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=Cw(),this.removed=!0}};_u.pool=new yw(_u);Mw=new Yn,Sc=new Set;Az=new Set});function Rz(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,hs,NS,zr,xc=V(()=>{r8();bc();J_();yu();Nh();pp();u8();Y_();f8();kS();mt();ut();hs=Symbol("Accessor-Handles"),NS=Symbol("Accessor-Initialized"),zr=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)}}yc(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=Rz(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 gw(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[NS]=!0}initialize(){}[tw](){this[hs]=Uh(this[hs])}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[NS]}get destroyed(){return this.__accessor__?.lifecycle===sn.DESTROYED||!1}commitProperty(t){fs(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 hp(this,t,r),this}watch(t,r,n){return F8(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[hs]??(this[hs]=new gp)).add(t,r)}removeHandles(t){this[hs]?.remove(t)}removeAllHandles(){this[hs]?.removeAll()}removeHandlesReference(t){this[hs]?.removeReference(t)}hasHandles(t){return this[hs]?.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=hs,V8=NS});var Aw,OS,z8=V(()=>{nr();vc();Aw=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,Ye(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 OS(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}},OS=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(()=>{vc()});function Dz(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 Fz(e){return e&&(!e.read||e.read.enabled!==!1&&!e.read.source)}function $z(e,t,r,n,i){let o=cw(t[r],i);Fz(o)&&(e[r]=!0);for(let s of Object.getOwnPropertyNames(t))o=cw(t[s],i),Dz(o,r,n)&&(e[s]=!0)}function Uz(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=Vz){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=cw(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]||Uz(e,s,n,r)}n.setDefaultOrigin("user")}var Vz,j8=V(()=>{yu();Js();lw();Vz={origin:"service"}});function zz(e,t,r,n,i){let o={};return t.write?.writer?.call(e,n,o,r,i),o}function Wz(e,t,r,n,i,o){if(!n?.write)return!1;let s=fs(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)&&Bz(e,r,o,n,s)||!i.ignoreOrigin&&o?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<fw(o.origin))}function Bz(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 tc(s,i)}return!1}return o===i}function H8(e,t,r){if(e&&typeof e.toJSON=="function"&&(!e.toJSON.isDefaultToJSON||!e.write))return dp(t,e.toJSON(r));let n=xi(e),i=n.metadata;for(let o in i){let s=YE(i[o],r);if(!Wz(e,n,o,s,void 0,r))continue;let c=fs(e,o),a=zz(e,s,s.write&&typeof s.write.target=="string"?s.write.target:o,c,r);Object.keys(a).length>0&&(t=dp(t,a),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>dp(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(()=>{rc();An();tt();yu();vc();Js();lw()});function jz(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 Xh(e){return e&&typeof e=="object"&&"toJSON"in e&&typeof e.toJSON=="function"}var Gz,lt,Cr=V(()=>{pt();xc();z8();B8();j8();Js();q8();ut();Gz=e=>{let t=class extends e{constructor(...r){super(...r);let n=xi(this),i=n.store,o=new Aw;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 jz.call(this,r,n)}};return t=O([Ie("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};lt=class extends Gz(zr){};lt=O([Ie("esri.core.JSONSupport")],lt)});function Ci(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=ew(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 bp=V(()=>{mt()});function Hz(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 Qi(){return function(e,t){return new Er(e,{ignoreUnknown:!0,...t})}}var Er,Ei=V(()=>{us();Er=class{constructor(t,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=Hz(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&&js(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,No,Lw,kw,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}},No=new Qh(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),Lw=new Qh(3396190,1/169.8944472236118,23e4,6e4,.111),kw=new Qh(1737400,0,0,0,0)});function Ow(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 Rw=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 nW(){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=Cc(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 Cc(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=>Xh(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)).join("&"):Xh(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)}).filter(r=>r).join("&"):""}function eM(e=!1){let t,r=vp.proxyUrl;if(typeof e=="string"){t=oW(e);let n=_p(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw qz().warn(X8),new We("urlUtils:proxy-not-set",X8);return t&&DS()&&(r=Bw(r)),Tc(r)}function tM(e){let t=e.indexOf("?");return t!==-1?(Kh.path=e.slice(0,t),Kh.query=e.slice(t+1)):(Kh.path=e,Kh.query=null),Kh}function rM(e){return e=(e=oM(e=uW(e=tM(e).path),!0)).toLowerCase()}function nM(e){let t={proxyUrl:e.proxyUrl,urlPrefix:rM(e.urlPrefix)},r=vp.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 _p(e){let t=vp.proxyRules,r=rM(e);for(let n=0;n<t.length;n++)if(r.indexOf(t[n].urlPrefix)===0)return t[n]}function $S(e,t=vp.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=FS(e),i=FS(t);return!(!r&&n.scheme!==i.scheme)&&n.host!=null&&i.host!=null&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function $w(e){if(typeof e=="string"){if(!iM(e))return!0;e=FS(e)}if(Jn(e,Ln))return!0;let t=vp.trustedServers||[];for(let r=0;r<t.length;r++){let n=iW(t[r]);for(let i=0;i<n.length;i++)if(Jn(e,n[i]))return!0}return!1}function iW(e){return Dw[e]||(VS(e)||Mc(e)?Dw[e]=[new kn(Ec(e))]:Dw[e]=[new kn(`http://${e}`),new kn(`https://${e}`)]),Dw[e]}function Ec(e,t=rW,r){return Mc(e)?r?.preserveProtocolRelative?e:Ln.scheme==="http"&&Ln.authority===li(e).slice(2)?`http:${e}`:`https:${e}`:VS(e)?e:US(e[0]==="/"?lW(t):t,e)}function Uw(e){return e=pW(e=fW(e=dW(e=Ec(e=e.trim()))))}function US(...e){let t=e.filter(IC);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)),aW(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||Vw(e)||zw(e))return null;let r=e.indexOf("://");if(r===-1&&Mc(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 Mc(e)||VS(e)}function Vw(e){return e!=null&&e.slice(0,5)==="blob:"}function zw(e){return e!=null&&e.slice(0,5)==="data:"}function Ww(e){return Y8(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Mc(e){return e!=null&&e[0]==="/"&&e[1]==="/"}function VS(e){return e!=null&&Q8.test(e)}function oW(e){return e!=null&&Zz.test(e)||Ln.scheme==="https"&&Mc(e)}function sW(e){return e!=null&&K8.test(e)||Ln.scheme==="http"&&Mc(e)}function aW(e){return e!=null&&Yz.test(e)}function Bw(e){return Mc(e)?`https:${e}`:e.replace(K8,"https:")}function cW(){return Ln.scheme==="http"}function DS(){return Ln.scheme==="https"}function oM(e,t=!1){return Mc(e)?e.slice(2):(e=e.replace(Q8,""),t&&e.length>1&&e[0]==="/"&&e[1]==="/"&&(e=e.slice(2)),e)}function lW(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return r===-1?e:e.slice(0,r)}function uW(e){return e.endsWith("/")?e:`${e}/`}function dW(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 fW(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function pW(e){let t=vp.httpsDomains;if(!sW(e))return e;let r=e.indexOf("/",7),n;if(n=r===-1?e:e.slice(0,r),n=n.toLowerCase().slice(7),Jz.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return cW()&&n===Ln.authority&&!Xz.test(e)||(DS()&&n===Ln.authority||t&&t.some(i=>n===i||n.endsWith(`.${i}`))||DS()&&!_p(e))&&(e=Bw(e)),e}function FS(e){return typeof e=="string"?new kn(Ec(e)):(e.scheme||(e.scheme=Ln.scheme),e)}function Sp(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 qz,vp,X8,Q8,K8,Zz,Yz,Jz,Xz,Qz,Kz,kn,Dw,eW,Ln,tW,rW,Fw,Kh,Pc=V(()=>{wc();rc();An();Cr();tt();Rw();J8();qz=()=>ct.getLogger("esri.core.urlUtils"),vp=Ct.request,X8="esri/config: esriConfig.request.proxyUrl is not set.",Q8=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,K8=/^\s*http:/i,Zz=/^\s*https:/i,Yz=/^\s*file:/i,Jz=/:\d+$/,Xz=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,Qz=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(Qz);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}},Dw={},eW=new kn(Ct.applicationUrl),Ln=eW,tW=nW(),rW=tW,Fw=()=>Ln;Kh={path:"",query:""}});function sM(e){Wr=e}var mW,Wr,hW,Gw=V(()=>{et();Pc();$_();Symbol.dispose??(Symbol.dispose=Symbol("Symbol.dispose")),Symbol.asyncDispose??(Symbol.asyncDispose=Symbol("Symbol.asyncDispose"));mW="4.32",hW=mW;hW=`4.32.0-next.${H0}`;he("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),he("host-webworker")});function wW(e){let t=li(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!gW.has(t)&&!e.endsWith("/sharing/rest/generateToken")}function aM(e,t){return!(!t&&!Ct.apiKey||!wW(e))}var gW,cM=V(()=>{wc();Pc();gW=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(Xs(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(yW)}function fM(e){Ct.request.crossOriginNoCorsDomains||(Ct.request.crossOriginNoCorsDomains={});let t=Ct.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=Ct.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=Ct.request.crossOriginNoCorsDomains,n=li(e);r&&n&&(r[n.toLowerCase()]=Date.now())}var yW,hM=V(()=>{wc();et();ko();Pc();yW="Timeout exceeded"});var gM={};is(gM,{execute:()=>bW});function bW(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 xp,xu,jw=V(()=>{pt();xc();oi();ut();xp=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),Tt(()=>{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=O([Ie("esri.core.Evented")],i),i};let r=class extends zr{constructor(){super(...arguments),this._emitter=new xp.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=O([Ie("esri.core.Evented.EventedAccessor")],r),e.EventedAccessor=r})(xp||(xp={}));xu=xp});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 vW(e){return"timeZoneIANA"in e}function _W(e){return e.startsWith("UTC")}function Hw(e,t=Oo){return e?vW(e)?e.timeZoneIANA:SW(e,t):t}function SW(e,t=Oo){if(!e||!zS.has(e.timeZone))return t;let r=zS.get(e.timeZone);return _W(e.timeZone)||e.respectsDaylightSaving?r:xW(r)}function xW(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 Oo,Tu,Tp,bM,eg=V(()=>{yM();In();Oo="system",Tu="unknown",Tp="UTC",bM=Intl.DateTimeFormat().resolvedOptions().timeZone});function MW(e){let t=WS.get(e);if(!t){let r=Ji(),n=CW[r]||r,i=qw(e.timeZone??Oo),o={...e,timeZone:i};t=new Intl.DateTimeFormat(n,o),WS.set(e,t)}return t}function Cp(e,t=EW){return MW(t).format(e)}function qw(e){switch(e){case Oo:return bM;case Tu:return Tp;default:return e}}var gs,tg,rg,ng,Ic,Cu,vM,ig,og,TW,Vde,CW,WS,EW,Zw=V(()=>{Ei();hc();eg();In();gs={year:"numeric",month:"numeric",day:"numeric"},tg={year:"numeric",month:"long",day:"numeric"},rg={year:"numeric",month:"short",day:"numeric"},ng={year:"numeric",month:"long",weekday:"long",day:"numeric"},Ic={hour:"numeric",minute:"numeric"},Cu={...Ic,second:"numeric"},vM={hourCycle:"h23"},ig={...Ic,...vM},og={...Cu,...vM},TW={"short-date":gs,"short-date-short-time":{...gs,...Ic},"short-date-short-time-24":{...gs,...ig},"short-date-long-time":{...gs,...Cu},"short-date-long-time-24":{...gs,...og},"short-date-le":gs,"short-date-le-short-time":{...gs,...Ic},"short-date-le-short-time-24":{...gs,...ig},"short-date-le-long-time":{...gs,...Cu},"short-date-le-long-time-24":{...gs,...og},"long-month-day-year":tg,"long-month-day-year-short-time":{...tg,...Ic},"long-month-day-year-short-time-24":{...tg,...ig},"long-month-day-year-long-time":{...tg,...Cu},"long-month-day-year-long-time-24":{...tg,...og},"day-short-month-year":rg,"day-short-month-year-short-time":{...rg,...Ic},"day-short-month-year-short-time-24":{...rg,...ig},"day-short-month-year-long-time":{...rg,...Cu},"day-short-month-year-long-time-24":{...rg,...og},"long-date":ng,"long-date-short-time":{...ng,...Ic},"long-date-short-time-24":{...ng,...ig},"long-date-long-time":{...ng,...Cu},"long-date-long-time-24":{...ng,...og},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":Ic,"long-time":Cu},Vde=Qi()({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,EW=TW["short-date-short-time"];cp(()=>{WS=new WeakMap})});function IW(e){let t=e||_M;if(!Yw.has(t)){let r=Ji(),n=PW[Ji()]||r;Yw.set(t,new Intl.NumberFormat(n,e))}return Yw.get(t)}function Ep(e,t){return Object.is(e,-0)&&(e=0),IW(t).format(e)}var PW,Yw,_M,BS=V(()=>{hc();PW={ar:"ar-u-nu-latn"},Yw=new WeakMap,_M={};cp(()=>{Yw=new WeakMap,_M={}})});function GS(e,t,r={}){let{format:n={}}=r;return ds(e,i=>AW(i,t,n))}function AW(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?LW(s,c):i?kW(s,i):jS(s)}function LW(e,t){switch(t.type){case"date":return Cp(e,t.intlOptions);case"number":return Ep(e,t.intlOptions);default:return SM().warn("missing format descriptor for key {key}"),jS(e)}}function kW(e,t){switch(t.toLowerCase()){case"dateformat":return Cp(e);case"numberformat":return Ep(e);default:return SM().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?Cp(e):/^numberformat/i.test(t)?Ep(e):jS(e)}}function jS(e){switch(typeof e){case"string":return e;case"number":return Ep(e);case"boolean":return""+e;default:return e instanceof Date?Cp(e):""}}var SM,HS=V(()=>{tt();us();nc();Zw();BS();SM=()=>ct.getLogger("esri.intl.substitute")});function TM(e){return e in NW}function CM(e){for(let t of Mp.keys())MM(e.pattern,t)&&Mp.delete(t)}function EM(e){return sg.includes(e)||(CM(e),sg.unshift(e)),Tt(()=>{let t=sg.indexOf(e);t>-1&&(sg.splice(t,1),CM(e))})}async function qS(e){let t=Ji();Mp.has(e)||Mp.set(e,OW(e,t));let r=Mp.get(e);return r&&await RW.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 TM(i)?i:TM(r)?r:null}async function OW(e,t){let r=[];for(let n of sg)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,NW,sg,Mp,RW,ag=V(()=>{An();oi();ko();hc();xM=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,NW={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};sg=[],Mp=new Map;cp(()=>{Mp.clear()});RW=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 DW(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 sr(e,{responseType:"text"});return JSON.parse(t.data)}function AM(e){return new YS(e)}var YS,IM,LM=V(()=>{Jw();An();ag();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 DW(this.getAssetUrl,this.matcher,t,r)}};IM={}});var JS=V(()=>{Zw();BS();HS();hc();ag();ag();LM();Xw();EM(AM({pattern:"esri/",location:Pp}))});function kM(e){return typeof e=="string"?document.getElementById(e):e??null}var NM=V(()=>{});var Ac,XS,QS,OM,RM=V(()=>{pt();xc();ko();ut();(function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"})(Ac||(Ac={}));XS=class{constructor(){this._resolver=ci(),this._status=Ac.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=Ac.RESOLVED,this._cleanUp()},()=>{this._status=Ac.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===Ac.RESOLVED}isRejected(){return this._status===Ac.REJECTED}isFulfilled(){return this._status!==Ac.PENDING}abort(){this._resolver.reject(ms())}_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||qh(i)||this._resolver.reject(i)}),t.resolve()}},QS=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=O([Ie("esri.core.Promise")],t),t},OM=class extends QS(zr){};OM=O([Ie("esri.core.Promise")],OM)});function FW(e){return{ok:!0,value:e}}function $W(e){return{ok:!1,error:e}}function UW(e){return e!=null&&e.ok===!0?e.value:null}function VW(e){return e!=null&&e.ok===!1?e.error:null}var Eu,DM=V(()=>{pt();xc();bc();ko();mt();ut();Eu=class extends zr{get value(){return UW(this._result)}get error(){return VW(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=FW(n),this._cleanup()},n=>{this._result=$W(n),this._cleanup()}),this._abortHandle=Ti(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=Vh(this._abortHandle),this._abortController=null}};O([z()],Eu.prototype,"value",null),O([z()],Eu.prototype,"error",null),O([z()],Eu.prototype,"finished",null),O([z()],Eu.prototype,"promise",void 0),O([z()],Eu.prototype,"_result",void 0),Eu=O([Ie("esri.core.asyncUtils.ReactiveTask")],Eu)});var yt,FM=V(()=>{(function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"})(yt||(yt={}))});function $M(e){return(t,r)=>{t[r]=e}}var UM=V(()=>{});var Qw,VM=V(()=>{pS();Qw=class extends wp{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 KS(e){return e?e instanceof Oc?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function ex(e){if(e?.length)return e[0]}function zW(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,rx,nx,Ki,Lc,kc,Nc,tx,WW,Oc,BM=V(()=>{pt();ww();jw();oi();nr();zh();FM();Tw();Xi();bu();mt();UM();ut();VM();rx=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}},nx=class{constructor(t,r,n,i,o){this.target=t,this.added=r,this.removed=n,this.start=i,this.deleteCount=o}},Ki=new Lo(rx,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});Lc=new Set,kc=new Set,Nc=new Set,tx=new Map,WW=0,Oc=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:WW++})}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,KS(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 Tt();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:[]}),Tt(()=>{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,KS(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(Ye)})}concat(...e){Je(this._observable);let t=e.map(KS);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=ex(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=ex(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+zW(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=ex(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=xw(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){let c=Ki.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);Ki.release(c)}if(this.length=this._items.length,this.hasEventListener("after-remove")){let c=Ki.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);Ki.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=Ki.acquire();h.target=this,h.cancellable=!0;let g=Ki.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));Ki.release(g),Ki.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 nx(this,r,s,e,t);this.emit("after-splice",c)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=Ki.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,Ki.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=Ki.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),Ki.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;Lc.clear(),kc.clear(),Nc.clear();for(let{added:a,removed:d}of r){if(a)if(Nc.size===0&&kc.size===0)for(let h of a)Lc.add(h);else for(let h of a)kc.has(h)?(Nc.add(h),kc.delete(h)):Nc.has(h)||Lc.add(h);if(d)if(Nc.size===0&&Lc.size===0)for(let h of d)kc.add(h);else for(let h of d)Lc.has(h)?Lc.delete(h):(Nc.delete(h),kc.add(h))}let n=Yn.acquire();Lc.forEach(a=>{n.push(a)});let i=Yn.acquire();kc.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)}Lc.clear(),kc.clear(),Nc.clear()}};Oc.ofType=e=>{if(!e)return Qs;if(tx.has(e))return tx.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 O([$M({Type:e,ensureType:typeof e=="function"?si(e):Io(e)})],r.prototype,"itemType",void 0),r=O([Ie(`esri.core.Collection<${t}>`)],r),tx.set(e,r),r},O([z()],Oc.prototype,"_updating",void 0),O([z()],Oc.prototype,"length",void 0),O([z()],Oc.prototype,"items",null),O([z({readOnly:!0})],Oc.prototype,"updating",null),Oc=Qs=O([Ie("esri.core.Collection")],Oc)});function cg(e,t,r={}){return jM(e,t,r,BW)}function GM(e,t,r={}){return jM(e,t,r,GW)}function jM(e,t,r={},n){let i=null,o=r.once?(s,c)=>{n(s)&&(Vh(i),t(s,c))}:(s,c)=>{n(s)&&t(s,c)};if(i=$8(e,o,r.sync,r.equals),r.initial){let s=e();o(s,s)}return i}function BW(e){return!0}function GW(e){return!!e}var Kw,ix=V(()=>{DM();BM();Hh();oi();bc();ko();kS();LS();Kw={sync:!0,initial:!0}});function HM(){if(jW)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 jW,qM=V(()=>{jW="randomUUID"in crypto});function qW(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 ZW.apply(this,r)}}function ZW(e,t,r,n){fp(e,t).cast=n}function YW(e){return(t,r)=>{fp(t,e).cast=t[r]}}function Ks(...e){if(e.length!==3||typeof e[1]!="string")return e.length===1&&HW.call(e[0])==="[object Function]"?qW(e[0]):e.length===1&&typeof e[0]=="string"?YW(e[0]):void 0}var HW,lg=V(()=>{Xi();pp();HW=Object.prototype.toString});function QM(){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 JW(e,t,r){}function XW(e,t,r){}function KW(e,t){return QW.test(t)?"":t}function tB(e,t){e=ug.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,s="";function c(){if(!n){var h=ug.trim(e.slice(i,o)),g=h.indexOf(":");if(g!==-1){var v=ug.trim(h.slice(0,g)),S=ug.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 ug.trim(s)}function ZM(e){return e==null}function iB(e){var t={};for(var r in e)t[r]=e[r];return t}function KM(e){e=iB(e||{}),e.whiteList=e.whiteList||ey.whiteList,e.onAttr=e.onAttr||ey.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||ey.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||ey.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 cB(e,t,r){}function lB(e,t,r){}function uB(e,t,r){}function dB(e,t,r){}function rP(e){return e.replace(pB,"<").replace(mB,">")}function fB(e,t,r,n){if(r=cP(r),t==="href"||t==="src"){if(r=oy.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(ty.lastIndex=0,ty.test(r))return""}else if(t==="style"){if(YM.lastIndex=0,YM.test(r)||(JM.lastIndex=0,JM.test(r)&&(ty.lastIndex=0,ty.test(r))))return"";n!==!1&&(n=n||tP,r=n.process(r))}return r=lP(r),r}function nP(e){return e.replace(hB,""")}function iP(e){return e.replace(gB,'"')}function oP(e){return e.replace(wB,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(yB,":").replace(bB," ")}function aP(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return oy.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 vB(){return""}function _B(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(s){return r?!0:oy.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 oy.forEach(i,function(d){c+=s.slice(a,d[0]),a=d[1]}),c+=s.slice(a),c}}}function SB(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 xB(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 TB(e){var t=Rc.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=Rc.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 EB(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=TB(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 PB(e,t){var r=0,n=0,i=[],o=!1,s=e.length;function c(v,S){if(v=Rc.trim(v),v=v.replace(MB,"").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:AB(e,a+1);continue}if(o!==!1&&a===n){if(g=e.indexOf(d,a+1),g===-1)break;h=Rc.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=IB(e,a),g===-1){h=Rc.trim(e.slice(r,a)),c(h),o=!1,r=a+1;continue}else{a=g-1;continue}else if(g=LB(e,a-1),g===-1){h=Rc.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(Rc.trim(e.slice(r))))),Rc.trim(i.join(" "))}function IB(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function AB(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function LB(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function kB(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function XM(e){return kB(e)?e.substr(1,e.length-2):e}function ry(e){return e==null}function DB(e){var t=ny.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=ny.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=ny.trim(e.slice(0,-1))),{html:e,closing:r}}function FB(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=FB(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 NB(e.css))}var iy,ox,ar,sx,Mu,QW,eB,ug,rB,ey,nB,oB,ax,cx,sB,aB,oy,tP,pB,mB,hB,gB,wB,yB,bB,ty,YM,JM,sy,Rc,MB,NB,Ro,uP,OB,RB,ny,UB,Ip,VB,fP,pP=V(()=>{iy=function(){return iy=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},iy.apply(this,arguments)},ox={exports:{}},ar={},sx={exports:{}},Mu={};QW=/javascript\s*\:/img;Mu.whiteList=QM();Mu.getDefaultWhiteList=QM;Mu.onAttr=JW;Mu.onIgnoreAttr=XW;Mu.safeAttrValue=KW;eB={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,"")}},ug=eB;rB=tB,ey=Mu,nB=rB;KM.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=nB(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};oB=KM;(function(e,t){var r=Mu,n=oB;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]})(sx,sx.exports);ax=sx.exports,cx={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}},sB=ax.FilterCSS,aB=ax.getDefaultWhiteList,oy=cx;tP=new sB;pB=/</g,mB=/>/g,hB=/"/g,gB=/"/g,wB=/&#([a-zA-Z0-9]*);?/gim,yB=/:?/gim,bB=/&newline;?/gim,ty=/((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;ar.whiteList=eP();ar.getDefaultWhiteList=eP;ar.onTag=cB;ar.onIgnoreTag=lB;ar.onTagAttr=uB;ar.onIgnoreTagAttr=dB;ar.safeAttrValue=fB;ar.escapeHtml=rP;ar.escapeQuote=nP;ar.unescapeQuote=iP;ar.escapeHtmlEntities=oP;ar.escapeDangerHtml5Entities=sP;ar.clearNonPrintableCharacter=aP;ar.friendlyAttrValue=cP;ar.escapeAttrValue=lP;ar.onIgnoreTagStripAll=vB;ar.StripTagBody=_B;ar.stripCommentTag=SB;ar.stripBlankChar=xB;ar.cssFilter=tP;ar.getDefaultCSSWhiteList=aB;sy={},Rc=cx;MB=/[^a-zA-Z0-9\\_:.-]/gim;sy.parseTag=EB;sy.parseAttr=PB;NB=ax.FilterCSS,Ro=ar,uP=sy,OB=uP.parseTag,RB=uP.parseAttr,ny=cx;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 $={sourcePosition:S,position:M,isClosing:B,isWhite:Object.prototype.hasOwnProperty.call(n,I)},G=i(I,R,$);if(!ry(G))return G;if($.isWhite){if($.isClosing)return"</"+I+">";var J=DB(R),re=n[I],de=RB(J.html,function(W,me){var Le=ny.indexOf(re,W)!==-1,xe=s(I,W,me,Le);return ry(xe)?Le?(me=a(I,W,me,h),me?W+'="'+me+'"':W):(xe=c(I,W,me,Le),ry(xe)?void 0:xe):xe});return R="<"+I,de&&(R+=" "+de),J.closing&&(R+=" /"),R+=">",R}else return G=o(I,R,$),ry(G)?d(R):G},d);return g&&(v=g.remove(v)),v};UB=dP;(function(e,t){var r=ar,n=sy,i=UB;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)})(ox,ox.exports);Ip=ox.exports,VB=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=iy(iy({},Ip.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):Ip.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 Ip.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?Ip.escapeAttrValue(t):!o&&!i?Ip.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):Ip.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(VB(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 cy(){ay.clear()}function mP(e){return ay.get(e)}function hP(e,t){ay.set(e,t)}function ly(e){ay.delete(e)}var ay,lx=V(()=>{ay=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(vw(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 Dpe,zB,WB,BB,ux,uy=V(()=>{pP();ww();oi();et();tt();ko();ix();Tw();lx();Dpe=(()=>{let e=new Map,t=new ResizeObserver(n=>{cy();for(let i of n)e.get(i.target)?.(i)}),r=(n,i,o)=>(e.set(n,i),t.observe(n,o),Tt(()=>{t.unobserve(n),e.delete(n)}));return(n,i,o)=>{let s=null;return gu([cg(()=>typeof n=="function"?n():n,c=>{s?.remove(),c&&(s=r(c,i,o))},Kw),Tt(()=>s?.remove())])}})(),zB=["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"],WB=zB.reduce((e,t)=>(e[t]=[],e),{}),BB=["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"],ux=new fP({whiteList:WB,onTagAttr:(e,t,r)=>{let n=`${t}="${r}"`;if(BB.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)});function mx(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,fy,xP,yP,py,gx,TP,GB,dx,jB,fx,px,CP,bP,vP,_P,HB,dy,qB,wx,Pu,hx,ZB,YB,Ap,EP=V(()=>{uy();SP="http://www.w3.org/",fy=`${SP}2000/svg`,xP=`${SP}1999/xlink`,yP=[],py=(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},gx=(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),TP=e=>{if(typeof e!="string")throw new Error("Style values must be strings")},GB=(e,t,r)=>{if(t.vnodeSelector!==""){for(let n=r;n<e.length;n++)if(gx(e[n],t))return n}return-1},dx=(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(gx(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.`)}}},jB=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},fx=[],px=!1,CP=e=>{(e.children||[]).forEach(CP),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},bP=()=>{px=!1,fx.forEach(CP),fx.length=0},vP=e=>{fx.push(e),px||(px=!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))},HB=(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")hx(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&&(TP(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===fy?c==="href"?e.setAttributeNS(xP,c,a):e.setAttribute(c,a):d==="string"&&c!=="value"?c==="innerHTML"?e[c]=ux.sanitize(a):mx(e)&&c in e?e[c]=a:e.setAttribute(c,a):e[c]=a}}};qB=(e,t,r)=>{if(t)for(let n of t)Pu(n,e,void 0,r)},wx=(e,t,r)=>{qB(e,t.children,r),t.text&&(e.textContent=t.text),HB(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=py(n,{namespace:fy})),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}}wx(i,e,n)}},hx=(e,t,r)=>{t&&t.split(" ").forEach(n=>{n&&e.classList.toggle(n,r)})},ZB=(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&&(hx(e,h,!1),hx(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?(TP(I),n.styleApplyer(e,M,I)):n.styleApplyer(e,M,""))}}else if(d||typeof h!="string"||(d=""),a!=="value"||mx(e)){if(d!==h){let g=typeof d;g==="function"&&n.eventHandlerInterceptor||(n.namespace===fy?a==="href"?e.setAttributeNS(xP,a,d):e.setAttribute(a,d):g==="string"?a==="innerHTML"?e[a]=ux.sanitize(d):a==="role"&&d===""?e.removeAttribute(a):mx(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},YB=(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&&gx(g,v))h=dy(g,v,i)||h,a++;else{let S=GB(r,v,a+1);if(S>=0){for(o=a;o<S;o++)_P(r[o]),dx(r,o,e,"removed");h=dy(r[S],v,i)||h,a=S+1}else Pu(v,t,a<s?r[a].domNode:void 0,i),jB(v),dx(n,d,e,"added")}d++}if(s>a)for(o=a;o<s;o++)_P(r[o]),dx(r,o,e,"removed");return h};dy=(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=py(r,{namespace:fy})),e.text!==t.text&&(o=!0,t.text===void 0?n.removeChild(n.firstChild):n.textContent=t.text),t.domNode=n,o=YB(t,n,e.children,t.children,r)||o,o=ZB(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};Ap=(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,dy(n,r,t)},domNode:e.domNode})});var JB,Lp,kp,yx=V(()=>{EP();JB={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},Lp=e=>py(JB,e),kp={create:(e,t)=>(t=Lp(t),Pu(e,document.createElement("div"),void 0,t),Ap(e,t)),append:(e,t,r)=>(r=Lp(r),Pu(t,e,void 0,r),Ap(t,r)),insertBefore:(e,t,r)=>(r=Lp(r),Pu(t,e.parentNode,e,r),Ap(t,r)),merge:(e,t,r)=>(r=Lp(r),t.domNode=e,wx(e,t,r),Ap(t,r)),replace:(e,t,r)=>(r=Lp(r),Pu(t,e.parentNode,e,r),e.parentNode.removeChild(e),Ap(t,r))}});var XB,MP=V(()=>{yx();XB=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 QB,AP,LP=V(()=>{QB={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=>({...QB,...e})});var KB,eG,kP,NP,OP=V(()=>{yx();MP();IP();LP();KB=(e,t)=>{let r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r},eG=(e,t)=>e.find(t),kP=(e,t,r=!1)=>{let n=e;return t.forEach((i,o)=>{let s=n?.children?eG(n.children,c=>c.domNode===i):void 0;r&&!s&&o!==t.length-1||(n=s)}),n},NP=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,$,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(kp.append,v,S)},insertBefore:(v,S)=>{h(kp.insertBefore,v,S)},merge:(v,S)=>{h(kp.merge,v,S)},replace:(v,S)=>{h(kp.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 bx,vx,tG,dg,_x,Np=V(()=>{bx="calcite-mode-auto",vx="calcite-mode-dark",tG="calcite-mode-light",dg={autoMode:bx,darkMode:vx,lightMode:tG,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"},_x={filter:250,nextTick:0,resize:150,reposition:100}});var D,my,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},my="app"});var $G,Sx=V(()=>{$G=l9({})});var zP={};is(zP,{scopeCss:()=>FG});var rG,nG,iG,fg,RP,DP,Tx,oG,sG,aG,Iu,cG,lG,uG,hy,Cx,dG,fG,pG,mG,hG,gG,wG,yG,bG,vG,_G,SG,gy,xG,TG,CG,FP,$P,EG,MG,PG,IG,AG,LG,kG,UP,NG,OG,RG,VP,DG,xx,FG,WP=V(()=>{rG=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");nG=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}},iG=(e,t)=>t.replace(/__ph-(\d+)__/g,(r,n)=>e[+n]),fg="-shadowcsshost",RP="-shadowcssslotted",DP="-shadowcsscontext",Tx=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",oG=new RegExp("("+fg+Tx,"gim"),sG=new RegExp("("+DP+Tx,"gim"),aG=new RegExp("("+RP+Tx,"gim"),Iu=fg+"-no-combinator",cG=/-shadowcsshost-no-combinator([^\s]*)/,lG=[/::shadow/g,/::content/g],uG="([>\\s~+[.,{:][\\s\\S]*)?$",hy=/-shadowcsshost/gim,Cx=e=>new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${e}\\b)`,"gim"),dG=Cx("::slotted"),fG=Cx(":host"),pG=Cx(":host-context"),mG=/\/\*\s*[\s\S]*?\*\//g,hG=e=>e.replace(mG,""),gG=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,wG=e=>e.match(gG)||[],yG=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,bG=/([{}])/g,vG=/(^.*?[^\\])??((:+)(.*)|$)/,_G="{",SG="}",gy="%BLOCK%",xG=(e,t)=>{let r=TG(e),n=0;return r.escapedString.replace(yG,(...i)=>{let o=i[2],s="",c=i[4],a="";c&&c.startsWith("{"+gy)&&(s=r.blocks[n++],c=c.substring(gy.length+1),a="{");let h=t({selector:o,content:s});return`${i[1]}${h.selector}${i[3]}${a}${h.content}${c}`})},TG=e=>{let t=e.split(bG),r=[],n=[],i=0,o=[];for(let c=0;c<t.length;c++){let a=t[c];a===SG&&i--,i>0?o.push(a):(o.length>0&&(n.push(o.join("")),r.push(gy),o=[]),r.push(a)),a===_G&&i++}return o.length>0&&(n.push(o.join("")),r.push(gy)),{escapedString:r.join(""),blocks:n}},CG=e=>(e=e.replace(pG,`$1${DP}`).replace(fG,`$1${fg}`).replace(dG,`$1${RP}`),e),FP=(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]}),$P=(e,t,r)=>e+t.replace(fg,"")+r,EG=e=>FP(e,oG,$P),MG=(e,t,r)=>t.indexOf(fg)>-1?$P(e,t,r):e+t+r+", "+t+" "+e+r,PG=(e,t)=>{let r="."+t+" > ",n=[];return e=e.replace(aG,(...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}},IG=e=>FP(e,sG,MG),AG=e=>lG.reduce((t,r)=>t.replace(r," "),e),LG=e=>{let t=/\[/g,r=/\]/g;return e=e.replace(t,"\\[").replace(r,"\\]"),new RegExp("^("+e+")"+uG,"m")},kG=(e,t)=>!LG(t).test(e),UP=(e,t)=>e.replace(vG,(r,n="",i,o="",s="")=>n+t+o+s),NG=(e,t,r)=>{if(hy.lastIndex=0,hy.test(e)){let n=`.${r}`;return e.replace(cG,(i,o)=>UP(o,n)).replace(hy,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=NG(M,t,r);else{let R=M.replace(hy,"");R.length>0&&(I=UP(R,i))}return I},s=nG(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,iG(s.placeholders,c)},RG=(e,t,r,n)=>e.split(",").map(i=>n&&i.indexOf("."+n)>-1?i.trim():kG(i,t)?OG(i,t,r).trim():i.trim()).join(", "),VP=(e,t,r,n)=>xG(e,i=>{let o=i.selector,s=i.content;return i.selector[0]!=="@"?o=RG(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}}),DG=(e,t,r,n)=>{e=CG(e),e=EG(e),e=IG(e);let i=PG(e,n);return e=i.cssText,e=AG(e),t&&(e=VP(e,t,r,n)),e=xx(e,r),e=e.replace(/>\s*\*\s+([^{, ]+)/gm," $1 "),{cssText:e.trim(),slottedSelectors:i.selectors.map(o=>({orgSelector:xx(o.orgSelector,r),updatedSelector:xx(o.updatedSelector,r)}))}},xx=(e,t)=>e.replace(/-shadowcsshost-no-combinator/g,`.${t}`),FG=(e,t)=>{let r=t+"-h",n=t+"-s",i=wG(e);e=hG(e);let o=DG(e,t,r,n);return e=[o.cssText,...i].join(`
|