@arcgis/coding-components 4.31.0-next.132 → 4.31.0-next.133
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/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +1 -1
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-d26853a8.js → p-2a2621b4.js} +2 -2
- package/dist/arcgis-coding-components/{p-da3c905b.js → p-2f16edff.js} +2 -2
- package/dist/arcgis-coding-components/{p-1a307c76.js → p-30cf60e9.js} +10 -10
- package/dist/arcgis-coding-components/{p-927567b2.js → p-36334c40.js} +2 -2
- package/dist/arcgis-coding-components/{p-0e24d2df.entry.js → p-38af1918.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-c3d69907.js → p-3f322733.js} +2 -2
- package/dist/arcgis-coding-components/{p-345f0f48.js → p-48a60239.js} +2 -2
- package/dist/arcgis-coding-components/{p-b511060e.js → p-50c36444.js} +3 -3
- package/dist/arcgis-coding-components/{p-653d8426.js → p-5b31a4aa.js} +1 -1
- package/dist/arcgis-coding-components/{p-bf5e98e0.js → p-66490371.js} +2 -2
- package/dist/arcgis-coding-components/{p-2936f20b.entry.js → p-7f09d3e6.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-1ee475b1.js → p-80b78dbc.js} +2 -2
- package/dist/arcgis-coding-components/{p-66de05c2.js → p-84778ffe.js} +1 -1
- package/dist/arcgis-coding-components/{p-22de57c2.js → p-a795ed3f.js} +2 -2
- package/dist/arcgis-coding-components/{p-af5d705a.js → p-c6456d07.js} +1 -1
- package/dist/arcgis-coding-components/{p-6ee58db8.js → p-cc3e14dd.js} +2 -2
- package/dist/arcgis-coding-components/{p-02c9569e.js → p-d14dd8d1.js} +2 -2
- package/dist/arcgis-coding-components/{p-d7375a75.entry.js → p-d93c6746.entry.js} +2 -2
- package/dist/cjs/{app-globals-1c6dcb21.js → app-globals-1b602d73.js} +1 -1
- package/dist/cjs/{arcade-defaults-cfc2a13e.js → arcade-defaults-d3c3d61f.js} +3 -3
- package/dist/cjs/{arcade-mode-5dc5717f.js → arcade-mode-22573a65.js} +3 -3
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +7 -7
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
- package/dist/cjs/{css-2480696a.js → css-75947afc.js} +1 -1
- package/dist/cjs/{cssMode-e5958166.js → cssMode-33488337.js} +3 -3
- package/dist/cjs/{html-76dd85ad.js → html-361a175c.js} +3 -3
- package/dist/cjs/{htmlMode-0286983e.js → htmlMode-5e169c07.js} +3 -3
- package/dist/cjs/{index-fc0542b5.js → index-a902b576.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-f8d94135.js → javascript-fac7c78c.js} +4 -4
- package/dist/cjs/{jsonMode-d9006b70.js → jsonMode-90087289.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{sql-expr-defaults-3250cf41.js → sql-expr-defaults-680d78c2.js} +10 -10
- package/dist/cjs/{sql-expr-mode-5c59ca66.js → sql-expr-mode-236e8779.js} +3 -3
- package/dist/cjs/{tsMode-3186830e.js → tsMode-c17ca48f.js} +3 -3
- package/dist/cjs/{typescript-87c1fcfc.js → typescript-db683e95.js} +3 -3
- package/dist/cjs/{useT9n-0b80dd68.js → useT9n-ef7ff6bd.js} +3 -3
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +1 -1
- package/dist/components/arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +1 -1
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/arcgis-editor-variables.js +1 -1
- package/dist/components/arcgis-language-api-panel.js +1 -1
- package/dist/components/arcgis-sql-expression-editor.js +1 -1
- package/dist/components/arcgis-sql-expression-fields.js +1 -1
- package/dist/components/chunk-UFIZBDFE.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/editor-variables.js +1 -1
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/language-api-panel.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/sql-expr-defaults.js +1 -1
- package/dist/components/sql-expr-mode.js +1 -1
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-6a581f73.js → app-globals-afc738bb.js} +1 -1
- package/dist/esm/{arcade-defaults-b7a06fc7.js → arcade-defaults-bea7ad09.js} +3 -3
- package/dist/esm/{arcade-mode-fa538f4c.js → arcade-mode-23e51f25.js} +3 -3
- package/dist/esm/arcgis-arcade-editor_6.entry.js +7 -7
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
- package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
- package/dist/esm/{css-36199427.js → css-273907e6.js} +1 -1
- package/dist/esm/{cssMode-10524871.js → cssMode-dcbfa6ca.js} +3 -3
- package/dist/esm/{html-6da4c34d.js → html-62b267da.js} +3 -3
- package/dist/esm/{htmlMode-8cae89b4.js → htmlMode-4a83a0f5.js} +3 -3
- package/dist/esm/{index-dbc3d55d.js → index-05b688c9.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-efea98fe.js → javascript-20da67e3.js} +4 -4
- package/dist/esm/{jsonMode-dd08cfb4.js → jsonMode-83b2fb6a.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{sql-expr-defaults-ad368dae.js → sql-expr-defaults-02d0ba8d.js} +10 -10
- package/dist/esm/{sql-expr-mode-a7c2a813.js → sql-expr-mode-b9892dc7.js} +3 -3
- package/dist/esm/{tsMode-131f7b33.js → tsMode-873db619.js} +3 -3
- package/dist/esm/{typescript-3c0cffe8.js → typescript-d76e99b7.js} +3 -3
- package/dist/esm/{useT9n-8a2c2692.js → useT9n-6b496e64.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var _R=Object.defineProperty;var d3=e=>t=>{var r=e[t];if(r)return r();throw new Error("Module not found in bundle: "+t)};var U=(e,t)=>()=>(e&&(t=e(e=0)),t);var f3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Fo=(e,t)=>{for(var r in t)_R(e,r,{get:t[r],enumerable:!0})};var Fl,Na=U(()=>{Fl=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}};Fl._m=2147483647,Fl._a=48271,Fl._c=0});function Oa(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 hv(e,t,r,n){n=n||P6;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 I6(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;to.clear();for(let c=0;c<n;++c)to.add(t[c]);i=i||P6;let s=Math.max(0,i.last-10);for(let c=s;c<r;++c)if(to.has(e[c])&&(o?.push(e[c]),to.delete(e[c]),e[c]=e[r-1],--r,--c,to.size===0||r===0))return to.clear(),r;for(let c=0;c<s;++c)if(to.has(e[c])&&(o?.push(e[c]),to.delete(e[c]),e[c]=e[r-1],--r,--c,to.size===0||r===0))return to.clear(),r;return to.clear(),r}function A6(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function L6(e,t){return e!=null}var s$,Zre,vm,P6,to,Yre,Ra=U(()=>{Na();s$=1.5,Zre=1/s$;vm=class{constructor(){this.last=0}},P6=new vm;to=new Set;Yre=new Fl});var k6=U(()=>{});function me(e){return typeof Da[e]=="function"?Da[e]=Da[e](globalThis):Da[e]}var Da,gt=U(()=>{Da=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},me.add=(e,t,r,n)=>{(n||Da[e]===void 0)&&(Da[e]=t),r&&me(e)},me.cache=Da,me.add("big-integer-warning-enabled",!0),me.add("esri-deprecation-warnings",!0),me.add("esri-tests-disable-screenshots",!1),me.add("esri-tests-use-full-window",!1),me.add("esri-tests-post-to-influx",!0),me.add("esri-cim-animations-enable-status","enabled"),me.add("esri-cim-animations-spotlight",!1),me.add("esri-cim-animations-freeze-time",!1),me.add("enable-feature:multiple-highlights",!1),(()=>{me.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(me.add("host-browser",e),me.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),me.add("dom",e),me("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(me.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),me.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),me.add("khtml",n.includes("Konqueror")?i:void 0),me.add("edge",parseFloat(r.split("Edge/")[1])||void 0),me.add("opr",parseFloat(r.split("OPR/")[1])||void 0),me.add("webkit",!me("wp")&&!me("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),me.add("chrome",!me("edge")&&!me("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),me.add("android",!me("wp")&&parseFloat(r.split("Android ")[1])||void 0),me.add("safari",!n.includes("Safari")||me("wp")||me("chrome")||me("android")||me("edge")||me("opr")?void 0:parseFloat(n.split("Version/")[1])),me.add("mac",n.includes("Macintosh")),!me("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("_",""));me.add(o,c),me.add("ios",c)}me("webkit")||(!r.includes("Gecko")||me("wp")||me("khtml")||me("edge")||me.add("mozilla",i),me("mozilla")&&me.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&&me.add("esri-mobile",t),r&&me.add("esri-iPhone",r),me.add("esri-geolocation",!!navigator.geolocation)}me.add("esri-wasm","WebAssembly"in globalThis),me.add("esri-performance-mode-frames-between-render",20),me.add("esri-force-performance-mode",!1),me.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),me.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))}),me.add("esri-atomics","Atomics"in globalThis),me.add("esri-workers","Worker"in globalThis),me.add("web-feat:cache","caches"in globalThis),me.add("esri-workers-arraybuffer-transfer",!me("safari")||Number(me("safari"))>=12),me.add("workers-pool-size",8),me.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),me.add("featurelayer-simplify-payload-size-factors",[1,1,4]),me.add("featurelayer-fast-triangulation-enabled",!0),me.add("featurelayer-animation-enabled",!0),me.add("featurelayer-snapshot-enabled",!0),me.add("featurelayer-snapshot-point-min-threshold",8e4),me.add("featurelayer-snapshot-point-max-threshold",4e5),me.add("featurelayer-snapshot-point-coverage",.1),me.add("featurelayer-query-max-depth",4),me.add("featurelayer-query-pausing-enabled",!1),me.add("featurelayer-advanced-symbols",!1),me.add("featurelayer-pbf",!0),me.add("featurelayer-pbf-statistics",!1),me.add("feature-layers-workers",!0),me.add("feature-polyline-generalization-factor",1),me.add("mapview-transitions-duration",200),me.add("mapview-essential-goto-duration",200),me.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),me.add("mapserver-pbf-version-support",10.81),me.add("mapservice-popup-identify-max-tolerance",20),me("host-webworker")||me("host-browser")&&(me.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),me.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(()=>{me.add("esri-image-decode",!0,!0,!0)}).catch(()=>{me.add("esri-image-decode",!1,!0,!0)})}return!1}),me.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});function N6(e){return e?.constructor?.name==="Int8Array"}function O6(e){return e?.constructor?.name==="Uint8Array"}function R6(e){return e?.constructor?.name==="Uint8ClampedArray"}function D6(e){return e?.constructor?.name==="Int16Array"}function $6(e){return e?.constructor?.name==="Uint16Array"}function F6(e){return e?.constructor?.name==="Int32Array"}function U6(e){return e?.constructor?.name==="Uint32Array"}function V6(e){return e?.constructor?.name==="Float32Array"}function z6(e){return e?.constructor?.name==="Float64Array"}var W6=U(()=>{k6();gt()});function G1(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&G1(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function it(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=u$(e);if(t!=null)return t;if(a$(e))return e.clone();if(c$(e))return e.map(it);if(l$(e))return e.clone();let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=it(e[n]);return r}function a$(e){return typeof e.clone=="function"}function c$(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function l$(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function B6(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function u$(e){if(N6(e)||O6(e)||R6(e)||D6(e)||$6(e)||F6(e)||U6(e)||V6(e)||z6(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,it(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(it(r));return t}return null}function _m(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 G6(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)&&Oa(e,t):e instanceof Set?t instanceof Set&&f$(e,t):e instanceof Map?t instanceof Map&&p$(e,t):!!B6(e)&&B6(t)&&d$(e,t))}function d$(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 f$(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function p$(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 jr=U(()=>{Ra();W6()});function j6(e,t,r=!1){return q6(e,t,r)}function Li(e,t){if(t!=null)return t[e]||H6(e.split("."),!1,t)}function Ts(e,t,r){let n=e.split("."),i=n.pop(),o=H6(n,!0,r);o&&i&&(o[i]=t)}function H6(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 q6(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]=it(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]=q6(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var Go=U(()=>{jr()});function Z6(e){return e??""}function jo(e,t){return t?e.replaceAll(m$,typeof t=="object"?(r,n)=>Z6(Li(n,t)):(r,n)=>Z6(t(n))):e}function Y6(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function J6(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var m$,$a=U(()=>{Go();m$=/\{([^}]+)\}/g});var Ms,j1,H1,q1,ro,Ef,tr,no,Fa=U(()=>{Ms=class extends Error{},j1=class extends Ms{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},H1=class extends Ms{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},q1=class extends Ms{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},ro=class extends Ms{},Ef=class extends Ms{constructor(t){super(`Invalid unit ${t}`)}},tr=class extends Ms{},no=class extends Ms{constructor(){super("Zone is an abstract class")}}});var Ie,io,li,Ua,Sm,gv,xm,Em,Cm,Tm,Mm,Pm,Im,Am,Lm,km,Nm,Om,Rm,Dm,wv,$m,Fm,Um,Vm,zm=U(()=>{Ie="numeric",io="short",li="long",Ua={year:Ie,month:Ie,day:Ie},Sm={year:Ie,month:io,day:Ie},gv={year:Ie,month:io,day:Ie,weekday:io},xm={year:Ie,month:li,day:Ie},Em={year:Ie,month:li,day:Ie,weekday:li},Cm={hour:Ie,minute:Ie},Tm={hour:Ie,minute:Ie,second:Ie},Mm={hour:Ie,minute:Ie,second:Ie,timeZoneName:io},Pm={hour:Ie,minute:Ie,second:Ie,timeZoneName:li},Im={hour:Ie,minute:Ie,hourCycle:"h23"},Am={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23"},Lm={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23",timeZoneName:io},km={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23",timeZoneName:li},Nm={year:Ie,month:Ie,day:Ie,hour:Ie,minute:Ie},Om={year:Ie,month:Ie,day:Ie,hour:Ie,minute:Ie,second:Ie},Rm={year:Ie,month:io,day:Ie,hour:Ie,minute:Ie},Dm={year:Ie,month:io,day:Ie,hour:Ie,minute:Ie,second:Ie},wv={year:Ie,month:io,day:Ie,weekday:io,hour:Ie,minute:Ie},$m={year:Ie,month:li,day:Ie,hour:Ie,minute:Ie,timeZoneName:io},Fm={year:Ie,month:li,day:Ie,hour:Ie,minute:Ie,second:Ie,timeZoneName:io},Um={year:Ie,month:li,day:Ie,weekday:li,hour:Ie,minute:Ie,timeZoneName:li},Vm={year:Ie,month:li,day:Ie,weekday:li,hour:Ie,minute:Ie,second:Ie,timeZoneName:li}});var gr,Ul=U(()=>{Fa();gr=class{get type(){throw new no}get name(){throw new no}get ianaName(){return this.name}get isUniversal(){throw new no}offsetName(t,r){throw new no}formatOffset(t,r){throw new no}offset(t){throw new no}equals(t){throw new no}get isValid(){throw new no}}});var yv,Va,Y1=U(()=>{Un();Ul();yv=null,Va=class e extends gr{static get instance(){return yv===null&&(yv=new e),yv}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return J1(t,r,n)}formatOffset(t,r){return za(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function h$(e){return Q1[e]||(Q1[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"})),Q1[e]}function w$(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 y$(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=g$[o];o==="era"?n[c]=s:We(c)||(n[c]=parseInt(s,10))}return n}var Q1,g$,X1,rr,Wa=U(()=>{Un();Ul();Q1={};g$={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};X1={},rr=class e extends gr{static create(t){return X1[t]||(X1[t]=new e(t)),X1[t]}static resetCache(){X1={},Q1={}}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 J1(t,r,n,this.name)}formatOffset(t,r){return za(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=h$(this.name),[i,o,s,c,a,d,h]=n.formatToParts?y$(n,r):w$(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=Cf({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 b$(e,t={}){let r=JSON.stringify([e,t]),n=X6[r];return n||(n=new Intl.ListFormat(e,t),X6[r]=n),n}function vv(e,t={}){let r=JSON.stringify([e,t]),n=bv[r];return n||(n=new Intl.DateTimeFormat(e,t),bv[r]=n),n}function v$(e,t={}){let r=JSON.stringify([e,t]),n=_v[r];return n||(n=new Intl.NumberFormat(e,t),_v[r]=n),n}function _$(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=Sv[i];return o||(o=new Intl.RelativeTimeFormat(e,t),Sv[i]=o),o}function S$(){return Wm||(Wm=new Intl.DateTimeFormat().resolvedOptions().locale,Wm)}function x$(e){let t=Q6[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,Q6[e]=t}return t}function E$(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=vv(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=vv(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function C$(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function T$(e){let t=[];for(let r=1;r<=12;r++){let n=Ee.utc(2009,r,1);t.push(e(n))}return t}function M$(e){let t=[];for(let r=1;r<=7;r++){let n=Ee.utc(2016,11,13+r);t.push(e(n))}return t}function K1(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function P$(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 X6,bv,_v,Sv,Wm,Q6,xv,Ev,Cv,I$,pt,Gm=U(()=>{Un();r0();Ba();Ga();Wa();X6={};bv={};_v={};Sv={};Wm=null;Q6={};xv=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=v$(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):Tf(t,3);return Zt(r,this.padTo)}}},Ev=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&&rr.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=vv(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()}},Cv=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&e0()&&(this.rtf=_$(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):K6(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},I$={firstDay:1,minimalDays:4,weekend:[6,7]},pt=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||ft.defaultLocale,c=s||(o?"en-US":S$()),a=r||ft.defaultNumberingSystem,d=n||ft.defaultOutputCalendar,h=Bm(i)||ft.defaultWeekSettings;return new e(c,a,d,h,s)}static resetCache(){Wm=null,bv={},_v={},Sv={}}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]=E$(t);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=C$(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=P$(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,Bm(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 K1(this,t,Tv,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=T$(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return K1(this,t,Mv,()=>{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]=M$(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return K1(this,void 0,()=>Pv,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ee.utc(2016,11,13,9),Ee.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return K1(this,t,Iv,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ee.utc(-40,1,1),Ee.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 xv(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new Ev(t,this.intl,r)}relFormatter(t={}){return new Cv(this.intl,this.isEnglish(),t)}listFormatter(t={}){return b$(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:t0()?x$(this.locale):I$}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 Lv,bt,Mf=U(()=>{Un();Ul();Lv=null,bt=class e extends gr{static get utcInstance(){return Lv===null&&(Lv=new e(0)),Lv}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(Vl(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${za(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${za(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return za(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 Pf,kv=U(()=>{Ul();Pf=class extends gr{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 oo(e,t){let r;if(We(e)||e===null)return t;if(e instanceof gr)return e;if(eE(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Va.instance:n==="utc"||n==="gmt"?bt.utcInstance:bt.parseSpecifier(n)||rr.create(e)}else return so(e)?bt.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Pf(e)}var n0=U(()=>{Ul();Wa();Mf();kv();Un();Y1()});function rE(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(Nv.hanidec)!==-1)t+=A$.indexOf(e[r]);else for(let i in tE){let[o,s]=tE[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function nE(){If={}}function ki({numberingSystem:e},t=""){let r=e||"latn";return If[r]||(If[r]={}),If[r][t]||(If[r][t]=new RegExp(`${Nv[r]}${t}`)),If[r][t]}var Nv,tE,A$,If,Ov=U(()=>{Nv={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"},tE={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]},A$=Nv.hanidec.replace(/[\[|\]]/g,"").split("");If={}});var iE,oE,sE,aE,cE,lE,uE,dE,ft,Ba=U(()=>{Y1();Wa();Gm();Ga();n0();Un();Ov();iE=()=>Date.now(),oE="system",sE=null,aE=null,cE=null,lE=60,dE=null,ft=class{static get now(){return iE}static set now(t){iE=t}static set defaultZone(t){oE=t}static get defaultZone(){return oo(oE,Va.instance)}static get defaultLocale(){return sE}static set defaultLocale(t){sE=t}static get defaultNumberingSystem(){return aE}static set defaultNumberingSystem(t){aE=t}static get defaultOutputCalendar(){return cE}static set defaultOutputCalendar(t){cE=t}static get defaultWeekSettings(){return dE}static set defaultWeekSettings(t){dE=Bm(t)}static get twoDigitCutoffYear(){return lE}static set twoDigitCutoffYear(t){lE=t%100}static get throwOnInvalid(){return uE}static set throwOnInvalid(t){uE=t}static resetCaches(){pt.resetCache(),rr.resetCache(),Ee.resetCache(),nE()}}});var Hr,jm=U(()=>{Hr=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Ni(e,t){return new Hr("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function i0(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 mE(e,t,r){return r+(Wl(e)?pE:fE)[t-1]}function hE(e,t){let r=Wl(e)?pE:fE,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 Hm(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=mE(n,i,o),c=o0(i0(n,i,o),r),a=Math.floor((s-c+14-t)/7),d;return a<1?(d=n-1,a=zl(d,t,r)):a>zl(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...Zm(e)}}function Rv(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=o0(i0(n,1,t),r),c=ja(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=ja(d)):a>c?(d=n+1,a-=ja(n)):d=n;let{month:h,day:g}=hE(d,a);return{year:d,month:h,day:g,...Zm(e)}}function s0(e){let{year:t,month:r,day:n}=e,i=mE(t,r,n);return{year:t,ordinal:i,...Zm(e)}}function Dv(e){let{year:t,ordinal:r}=e,{month:n,day:i}=hE(t,r);return{year:t,month:n,day:i,...Zm(e)}}function $v(e,t){if(!We(e.localWeekday)||!We(e.localWeekNumber)||!We(e.localWeekYear)){if(!We(e.weekday)||!We(e.weekNumber)||!We(e.weekYear))throw new ro("Cannot mix locale-based week fields with ISO-based week fields");return We(e.localWeekday)||(e.weekday=e.localWeekday),We(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),We(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 gE(e,t=4,r=1){let n=qm(e.weekYear),i=ui(e.weekNumber,1,zl(e.weekYear,t,r)),o=ui(e.weekday,1,7);return n?i?o?!1:Ni("weekday",e.weekday):Ni("week",e.weekNumber):Ni("weekYear",e.weekYear)}function wE(e){let t=qm(e.year),r=ui(e.ordinal,1,ja(e.year));return t?r?!1:Ni("ordinal",e.ordinal):Ni("year",e.year)}function Fv(e){let t=qm(e.year),r=ui(e.month,1,12),n=ui(e.day,1,Af(e.year,e.month));return t?r?n?!1:Ni("day",e.day):Ni("month",e.month):Ni("year",e.year)}function Uv(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=ui(t,0,23)||t===24&&r===0&&n===0&&i===0,s=ui(r,0,59),c=ui(n,0,59),a=ui(i,0,999);return o?s?c?a?!1:Ni("millisecond",i):Ni("second",n):Ni("minute",r):Ni("hour",t)}var fE,pE,Vv=U(()=>{Un();jm();Fa();fE=[0,31,59,90,120,151,181,212,243,273,304,334],pE=[0,31,60,91,121,152,182,213,244,274,305,335]});function We(e){return typeof e>"u"}function so(e){return typeof e=="number"}function qm(e){return typeof e=="number"&&e%1===0}function eE(e){return typeof e=="string"}function bE(e){return Object.prototype.toString.call(e)==="[object Date]"}function e0(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function t0(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function vE(e){return Array.isArray(e)?e:[e]}function zv(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 _E(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function Ha(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bm(e){if(e==null)return null;if(typeof e!="object")throw new tr("Week settings must be an object");if(!ui(e.firstDay,1,7)||!ui(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!ui(t,1,7)))throw new tr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function ui(e,t,r){return qm(e)&&e>=t&&e<=r}function L$(e,t){return e-t*Math.floor(e/t)}function Zt(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function Ps(e){if(!(We(e)||e===null||e===""))return parseInt(e,10)}function qa(e){if(!(We(e)||e===null||e===""))return parseFloat(e)}function Ym(e){if(!(We(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Tf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Wl(e){return e%4===0&&(e%100!==0||e%400===0)}function ja(e){return Wl(e)?366:365}function Af(e,t){let r=L$(t-1,12)+1,n=e+(t-r)/12;return r===2?Wl(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Cf(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 yE(e,t,r){return-o0(i0(e,1,t),r)+t-1}function zl(e,t=4,r=1){let n=yE(e,t,r),i=yE(e+1,t,r);return(ja(e)-n+i)/7}function Jm(e){return e>99?e:e>ft.twoDigitCutoffYear?1900+e:2e3+e}function J1(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 Vl(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 Wv(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new tr(`Invalid unit value ${e}`);return t}function Lf(e,t){let r={};for(let n in e)if(Ha(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=Wv(i)}return r}function za(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}${Zt(r,2)}:${Zt(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${Zt(r,2)}${Zt(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Zm(e){return _E(e,["hour","minute","second","millisecond"])}var Un=U(()=>{Fa();Ba();Vv()});function Tv(e){switch(e){case"narrow":return[...N$];case"short":return[...Bv];case"long":return[...k$];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 Mv(e){switch(e){case"narrow":return[...O$];case"short":return[...jv];case"long":return[...Gv];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function Iv(e){switch(e){case"narrow":return[...$$];case"short":return[...D$];case"long":return[...R$];default:return null}}function SE(e){return Pv[e.hour<12?0:1]}function xE(e,t){return Mv(t)[e.weekday-1]}function EE(e,t){return Tv(t)[e.month-1]}function CE(e,t){return Iv(t)[e.year<0?0:1]}function K6(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 k$,Bv,N$,Gv,jv,O$,Pv,R$,D$,$$,r0=U(()=>{zm();Un();k$=["January","February","March","April","May","June","July","August","September","October","November","December"],Bv=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],N$=["J","F","M","A","M","J","J","A","S","O","N","D"];Gv=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],jv=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],O$=["M","T","W","T","F","S","S"];Pv=["AM","PM"],R$=["Before Christ","Anno Domini"],D$=["BC","AD"],$$=["B","A"]});function TE(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var F$,qr,Xm=U(()=>{r0();zm();Un();F$={D:Ua,DD:Sm,DDD:xm,DDDD:Em,t:Cm,tt:Tm,ttt:Mm,tttt:Pm,T:Im,TT:Am,TTT:Lm,TTTT:km,f:Nm,ff:Rm,fff:$m,ffff:Um,F:Om,FF:Dm,FFF:Fm,FFFF:Vm},qr=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 F$[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 Zt(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?SE(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(S,M)=>n?EE(t,S):o(M?{month:S}:{month:S,day:"numeric"},"month"),d=(S,M)=>n?xE(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?CE(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 TE(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 TE(o,i(c))}}});function Nf(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function Of(...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 Rf(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 IE(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=Ps(t[r+i]);return[n,null,r+i]}}function kf(e,t,r){let n=e[t];return We(n)?r:Ps(n)}function q$(e,t){return[{year:kf(e,t),month:kf(e,t+1,1),day:kf(e,t+2,1)},null,t+3]}function Df(e,t){return[{hours:kf(e,t,0),minutes:kf(e,t+1,0),seconds:kf(e,t+2,0),milliseconds:Ym(e[t+3])},null,t+4]}function Qm(e,t){let r=!e[t]&&!e[t+1],n=Vl(e[t+1],e[t+2]),i=r?null:bt.instance(n);return[{},i,t+3]}function Km(e,t){let r=e[t]?rr.create(e[t]):null;return[{},r,t+1]}function J$(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(qa(r)),months:v(qa(n)),weeks:v(qa(i)),days:v(qa(o)),hours:v(qa(s)),minutes:v(qa(c)),seconds:v(qa(a),a==="-0"),milliseconds:v(Ym(d),g)}]}function Zv(e,t,r,n,i,o,s){let c={year:t.length===2?Jm(Ps(t)):Ps(t),month:Bv.indexOf(r)+1,day:Ps(n),hour:Ps(i),minute:Ps(o)};return s&&(c.second=Ps(s)),e&&(c.weekday=e.length>3?Gv.indexOf(e)+1:jv.indexOf(e)+1),c}function K$(e){let[,t,r,n,i,o,s,c,a,d,h,g]=e,v=Zv(t,i,n,r,o,s,c),S;return a?S=X$[a]:d?S=0:S=Vl(h,g),[v,new bt(S)]}function eF(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function ME(e){let[,t,r,n,i,o,s,c]=e;return[Zv(t,i,n,r,o,s,c),bt.utcInstance]}function iF(e){let[,t,r,n,i,o,s,c]=e;return[Zv(t,c,r,n,i,o,s),bt.utcInstance]}function OE(e){return Rf(e,[oF,NE],[sF,lF],[aF,uF],[cF,dF])}function RE(e){return Rf(eF(e),[Q$,K$])}function DE(e){return Rf(e,[tF,ME],[rF,ME],[nF,iF])}function $E(e){return Rf(e,[Y$,J$])}function FE(e){return Rf(e,[Z$,fF])}function UE(e){return Rf(e,[pF,NE],[mF,hF])}var PE,AE,U$,Hv,LE,qv,V$,z$,W$,B$,G$,j$,kE,H$,Z$,Y$,X$,Q$,tF,rF,nF,oF,sF,aF,cF,NE,lF,uF,dF,fF,pF,mF,hF,Yv=U(()=>{Un();r0();Mf();Wa();PE=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;AE=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,U$=`(?:${AE.source}?(?:\\[(${PE.source})\\])?)?`,Hv=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,LE=RegExp(`${Hv.source}${U$}`),qv=RegExp(`(?:T${LE.source})?`),V$=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,z$=/(\d{4})-?W(\d\d)(?:-?(\d))?/,W$=/(\d{4})-?(\d{3})/,B$=IE("weekYear","weekNumber","weekDay"),G$=IE("year","ordinal"),j$=/(\d{4})-(\d\d)-(\d\d)/,kE=RegExp(`${Hv.source} ?(?:${AE.source}|(${PE.source}))?`),H$=RegExp(`(?: ${kE.source})?`);Z$=RegExp(`^T?${Hv.source}$`),Y$=/^-?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)?)?)$/;X$={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};Q$=/^(?:(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)))$/;tF=/^(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$/,rF=/^(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$/,nF=/^(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})$/;oF=Nf(V$,qv),sF=Nf(z$,qv),aF=Nf(W$,qv),cF=Nf(LE),NE=Of(q$,Df,Qm,Km),lF=Of(B$,Df,Qm,Km),uF=Of(G$,Df,Qm,Km),dF=Of(Df,Qm,Km);fF=Of(Df);pF=Nf(j$,H$),mF=Nf(kE),hF=Of(Df,Qm,Km)});function Za(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 Yt(n)}function BE(e,t){let r=t.milliseconds??0;for(let n of yF.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function zE(e,t){let r=BE(e,t)<0?-1:1;Bl.reduceRight((n,i)=>{if(We(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),Bl.reduce((n,i)=>{if(We(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function bF(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var VE,WE,gF,Oi,$f,wF,Bl,yF,Yt,eh=U(()=>{Fa();Xm();jm();Gm();Yv();Un();Ba();Ga();VE="Invalid Duration",WE={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}},gF={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},...WE},Oi=146097/400,$f=146097/4800,wF={years:{quarters:4,months:12,weeks:Oi/7,days:Oi,hours:Oi*24,minutes:Oi*24*60,seconds:Oi*24*60*60,milliseconds:Oi*24*60*60*1e3},quarters:{months:3,weeks:Oi/28,days:Oi/4,hours:Oi*24/4,minutes:Oi*24*60/4,seconds:Oi*24*60*60/4,milliseconds:Oi*24*60*60*1e3/4},months:{weeks:$f/7,days:$f,hours:$f*24,minutes:$f*24*60,seconds:$f*24*60*60,milliseconds:$f*24*60*60*1e3},...WE},Bl=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],yF=Bl.slice(0).reverse();Yt=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?wF:gF;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||pt.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 tr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Lf(t,e.normalizeUnit),loc:pt.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(so(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new tr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=$E(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]=FE(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 tr("need to specify a reason the Duration is invalid");let n=t instanceof Hr?t:new Hr(t,r);if(ft.throwOnInvalid)throw new q1(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 Ef(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?qr.create(this.loc,n).formatDurationFromString(this,t):VE}toHuman(t={}){if(!this.isValid)return VE;let r=Bl.map(n=>{let i=this.values[n];return We(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+=Tf(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},Ee.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?BE(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 Bl)(Ha(r.values,i)||Ha(this.values,i))&&(n[i]=r.get(i)+this.get(i));return Za(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]=Wv(t(this.values[n],n));return Za(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...Lf(t,e.normalizeUnit)};return Za(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 Za(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return zE(this.matrix,t),Za(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=bF(this.normalize().shiftToAll().toObject());return Za(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 Bl)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;so(i[s])&&(c+=i[s]);let a=Math.trunc(c);r[s]=a,n[s]=(c*1e3-a*1e3)/1e3}else so(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 zE(this.matrix,r),Za(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 Za(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 Bl)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function vF(e,t){return!e||!e.isValid?Is.invalid("missing or invalid start"):!t||!t.isValid?Is.invalid("missing or invalid end"):t<e?Is.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 Ff,Is,Jv=U(()=>{Ga();eh();Ba();Fa();jm();Xm();zm();Ff="Invalid Interval";Is=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 tr("need to specify a reason the Interval is invalid");let n=t instanceof Hr?t:new Hr(t,r);if(ft.throwOnInvalid)throw new H1(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=Uf(t),i=Uf(r),o=vF(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=Yt.fromDurationLike(r),i=Uf(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=Yt.fromDurationLike(r),i=Uf(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=Ee.fromISO(n,r),s=o.isValid}catch{s=!1}let c,a;try{c=Ee.fromISO(i,r),a=c.isValid}catch{a=!1}if(s&&a)return e.fromDateTimes(o,c);if(s){let d=Yt.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=Yt.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(Uf).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=Yt.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()})`:Ff}[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=Ua,r={}){return this.isValid?qr.create(this.s.loc.clone(r),t).formatInterval(this):Ff}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Ff}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ff}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Ff}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:Ff}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):Yt.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var As,Xv=U(()=>{Ga();Ba();Gm();Wa();n0();Un();As=class{static hasDST(t=ft.defaultZone){let r=Ee.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return rr.isValidZone(t)}static normalizeZone(t){return oo(t,ft.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||pt.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||pt.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||pt.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||pt.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||pt.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||pt.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||pt.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return pt.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return pt.create(r,null,"gregory").eras(t)}static features(){return{relative:e0(),localeWeek:t0()}}}});function GE(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(Yt.fromMillis(n).as("days"))}function _F(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=GE(a,d);return(h-h%7)/7}],["days",GE]],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 jE(e,t,r,n){let[i,o,s,c]=_F(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=Yt.fromObject(o,n);return d.length>0?Yt.fromMillis(a,n).shiftTo(...d).plus(h):h}var HE=U(()=>{eh()});function wt(e,t=r=>r){return{regex:e,deser:([r])=>t(rE(r))}}function EF(e){return e.replace(/\./g,"\\.?").replace(JE,YE)}function qE(e){return e.replace(/\./g,"").replace(JE," ").toLowerCase()}function ao(e,t){return e===null?null:{regex:RegExp(e.map(EF).join("|")),deser:([r])=>e.findIndex(n=>qE(r)===qE(n))+t}}function ZE(e,t){return{regex:e,deser:([,r,n])=>Vl(r,n),groups:t}}function a0(e){return{regex:e,deser:([t])=>t}}function CF(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function TF(e,t){let r=ki(t),n=ki(t,"{2}"),i=ki(t,"{3}"),o=ki(t,"{4}"),s=ki(t,"{6}"),c=ki(t,"{1,2}"),a=ki(t,"{1,3}"),d=ki(t,"{1,6}"),h=ki(t,"{1,9}"),g=ki(t,"{2,4}"),v=ki(t,"{4,6}"),S=O=>({regex:RegExp(CF(O.val)),deser:([z])=>z,literal:!0}),I=(O=>{if(e.literal)return S(O);switch(O.val){case"G":return ao(t.eras("short"),0);case"GG":return ao(t.eras("long"),0);case"y":return wt(d);case"yy":return wt(g,Jm);case"yyyy":return wt(o);case"yyyyy":return wt(v);case"yyyyyy":return wt(s);case"M":return wt(c);case"MM":return wt(n);case"MMM":return ao(t.months("short",!0),1);case"MMMM":return ao(t.months("long",!0),1);case"L":return wt(c);case"LL":return wt(n);case"LLL":return ao(t.months("short",!1),1);case"LLLL":return ao(t.months("long",!1),1);case"d":return wt(c);case"dd":return wt(n);case"o":return wt(a);case"ooo":return wt(i);case"HH":return wt(n);case"H":return wt(c);case"hh":return wt(n);case"h":return wt(c);case"mm":return wt(n);case"m":return wt(c);case"q":return wt(c);case"qq":return wt(n);case"s":return wt(c);case"ss":return wt(n);case"S":return wt(a);case"SSS":return wt(i);case"u":return a0(h);case"uu":return a0(c);case"uuu":return wt(r);case"a":return ao(t.meridiems(),0);case"kkkk":return wt(o);case"kk":return wt(g,Jm);case"W":return wt(c);case"WW":return wt(n);case"E":case"c":return wt(r);case"EEE":return ao(t.weekdays("short",!1),1);case"EEEE":return ao(t.weekdays("long",!1),1);case"ccc":return ao(t.weekdays("short",!0),1);case"cccc":return ao(t.weekdays("long",!0),1);case"Z":case"ZZ":return ZE(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return ZE(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return a0(/[a-z_+-/]{1,256}?/i);case" ":return a0(/[^\S\n\r]/);default:return S(O)}})(e)||{invalidReason:SF};return I.token=e,I}function PF(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=MF[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function IF(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function AF(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(Ha(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 LF(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 We(e.z)||(r=rr.create(e.z)),We(e.Z)||(r||(r=new bt(e.Z)),n=e.Z),We(e.q)||(e.M=(e.q-1)*3+1),We(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),We(e.u)||(e.S=Ym(e.u)),[Object.keys(e).reduce((o,s)=>{let c=t(s);return c&&(o[c]=e[s]),o},{}),r,n]}function kF(){return Qv||(Qv=Ee.fromMillis(1555555555555)),Qv}function NF(e,t){if(e.literal)return e;let r=qr.macroTokenToFormatOpts(e.val),n=t_(r,t);return n==null||n.includes(void 0)?e:n}function Kv(e,t){return Array.prototype.concat(...e.map(r=>NF(r,t)))}function e_(e,t,r){return new th(e,r).explainFromTokens(t)}function XE(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=e_(e,t,r);return[n,i,o,s]}function t_(e,t){if(!e)return null;let n=qr.create(t,e).dtFormatter(kF()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>PF(s,e,o))}var SF,xF,YE,JE,MF,Qv,th,QE=U(()=>{Un();Xm();Mf();Wa();Ga();Ov();Fa();SF="missing Intl.DateTimeFormat.formatToParts support";xF="\xA0",YE=`[ ${xF}]`,JE=new RegExp(YE,"g");MF={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"}};Qv=null;th=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=Kv(qr.parseFormat(r),t),this.units=this.tokens.map(n=>TF(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=IF(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=AF(t,this.regex,this.handlers),[i,o,s]=n?LF(n):[null,null,void 0];if(Ha(n,"a")&&Ha(n,"H"))throw new ro("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 rh(e){return new Hr("unsupported zone",`the zone "${e.name}" is not supported`)}function n_(e){return e.weekData===null&&(e.weekData=Hm(e.c)),e.weekData}function i_(e){return e.localWeekData===null&&(e.localWeekData=Hm(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Gl(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ee({...r,...t,old:r})}function sC(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 c0(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 sC(Cf(e),t,r)}function eC(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,Af(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=Yt.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=Cf(o),[a,d]=sC(c,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function Vf(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=Ee.fromObject(e,{...r,zone:a,specificOffset:o});return s?d:d.setZone(c)}else return Ee.invalid(new Hr("unparsable",`the input "${i}" can't be parsed as ${n}`))}function l0(e,t,r=!0){return e.isValid?qr.create(pt.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+=Zt(e.c.year,r?6:4),t?(n+="-",n+=Zt(e.c.month),n+="-",n+=Zt(e.c.day)):(n+=Zt(e.c.month),n+=Zt(e.c.day)),n}function tC(e,t,r,n,i,o){let s=Zt(e.c.hour);return t?(s+=":",s+=Zt(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=Zt(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=Zt(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=Zt(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=Zt(Math.trunc(-e.o/60)),s+=":",s+=Zt(Math.trunc(-e.o%60))):(s+="+",s+=Zt(Math.trunc(e.o/60)),s+=":",s+=Zt(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function FF(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 Ef(e);return t}function rC(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return FF(e)}}function UF(e){return f0[e]||(d0===void 0&&(d0=ft.now()),f0[e]=e.offset(d0)),f0[e]}function nC(e,t){let r=oo(t.zone,ft.defaultZone);if(!r.isValid)return Ee.invalid(rh(r));let n=pt.fromObject(t),i,o;if(We(e.year))i=ft.now();else{for(let a of cC)We(e[a])&&(e[a]=aC[a]);let s=Fv(e)||Uv(e);if(s)return Ee.invalid(s);let c=UF(r);[i,o]=u0(e,c,r)}return new Ee({ts:i,zone:r,loc:n,o})}function iC(e,t,r){let n=We(r.round)?!0:r.round,i=(s,c)=>(s=Tf(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 oC(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 Uf(e){if(Ee.isDateTime(e))return e;if(e&&e.valueOf&&so(e.valueOf()))return Ee.fromJSDate(e);if(e&&typeof e=="object")return Ee.fromObject(e);throw new tr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var r_,KE,aC,OF,RF,cC,DF,$F,d0,f0,Ee,Ga=U(()=>{eh();Jv();Ba();Xv();Xm();Mf();Gm();Un();n0();HE();Yv();QE();Vv();zm();Fa();jm();r_="Invalid DateTime",KE=864e13;aC={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},OF={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},RF={ordinal:1,hour:0,minute:0,second:0,millisecond:0},cC=["year","month","day","hour","minute","second","millisecond"],DF=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],$F=["year","ordinal","hour","minute","second","millisecond"];f0={},Ee=class e{constructor(t){let r=t.zone||ft.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new Hr("invalid input"):null)||(r.isValid?null:rh(r));this.ts=We(t.ts)?ft.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=so(t.o)&&!t.old?t.o:r.offset(this.ts);i=c0(this.ts,c),n=Number.isNaN(i.year)?new Hr("invalid input"):null,i=n?null:i,o=n?null:c}this._zone=r,this.loc=t.loc||pt.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]=oC(arguments),[n,i,o,s,c,a,d]=r;return nC({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static utc(){let[t,r]=oC(arguments),[n,i,o,s,c,a,d]=r;return t.zone=bt.utcInstance,nC({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=bE(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=oo(r.zone,ft.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:pt.fromObject(r)}):e.invalid(rh(i))}static fromMillis(t,r={}){if(so(t))return t<-KE||t>KE?e.invalid("Timestamp out of range"):new e({ts:t,zone:oo(r.zone,ft.defaultZone),loc:pt.fromObject(r)});throw new tr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(so(t))return new e({ts:t*1e3,zone:oo(r.zone,ft.defaultZone),loc:pt.fromObject(r)});throw new tr("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=oo(r.zone,ft.defaultZone);if(!n.isValid)return e.invalid(rh(n));let i=pt.fromObject(r),o=Lf(t,rC),{minDaysInFirstWeek:s,startOfWeek:c}=$v(o,i),a=ft.now(),d=We(r.specificOffset)?n.offset(a):r.specificOffset,h=!We(o.ordinal),g=!We(o.year),v=!We(o.month)||!We(o.day),S=g||v,M=o.weekYear||o.weekNumber;if((S||h)&&M)throw new ro("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&h)throw new ro("Can't mix ordinal dates with month/day");let I=M||o.weekday&&!S,O,z,$=c0(a,d);I?(O=DF,z=OF,$=Hm($,s,c)):h?(O=$F,z=RF,$=s0($)):(O=cC,z=aC);let W=!1;for(let Se of O){let Le=o[Se];We(Le)?W?o[Se]=z[Se]:o[Se]=$[Se]:W=!0}let Z=I?gE(o,s,c):h?wE(o):Fv(o),te=Z||Uv(o);if(te)return e.invalid(te);let de=I?Rv(o,s,c):h?Dv(o):o,[V,he]=u0(de,d,n),Ae=new e({ts:V,zone:n,o:he,loc:i});return o.weekday&&S&&t.weekday!==Ae.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Ae.toISO()}`):Ae.isValid?Ae:e.invalid(Ae.invalid)}static fromISO(t,r={}){let[n,i]=OE(t);return Vf(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=RE(t);return Vf(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=DE(t);return Vf(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(We(t)||We(r))throw new tr("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,a,d,h]=XE(s,t,r);return h?e.invalid(h):Vf(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]=UE(t);return Vf(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new tr("need to specify a reason the DateTime is invalid");let n=t instanceof Hr?t:new Hr(t,r);if(ft.throwOnInvalid)throw new j1(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=t_(t,pt.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return Kv(qr.parseFormat(t),pt.fromObject(r)).map(i=>i.val).join("")}static resetCache(){d0=void 0,f0={}}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?n_(this).weekYear:NaN}get weekNumber(){return this.isValid?n_(this).weekNumber:NaN}get weekday(){return this.isValid?n_(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?i_(this).weekday:NaN}get localWeekNumber(){return this.isValid?i_(this).weekNumber:NaN}get localWeekYear(){return this.isValid?i_(this).weekYear:NaN}get ordinal(){return this.isValid?s0(this.c).ordinal:NaN}get monthShort(){return this.isValid?As.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?As.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?As.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?As.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=Cf(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=c0(a,s),g=c0(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Gl(this,{ts:a}),Gl(this,{ts:d})]:[this]}get isInLeapYear(){return Wl(this.year)}get daysInMonth(){return Af(this.year,this.month)}get daysInYear(){return this.isValid?ja(this.year):NaN}get weeksInWeekYear(){return this.isValid?zl(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?zl(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=qr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(bt.instance(t),r)}toLocal(){return this.setZone(ft.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=oo(t,ft.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 Gl(this,{ts:i,zone:t})}else return e.invalid(rh(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return Gl(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=Lf(t,rC),{minDaysInFirstWeek:n,startOfWeek:i}=$v(r,this.loc),o=!We(r.weekYear)||!We(r.weekNumber)||!We(r.weekday),s=!We(r.ordinal),c=!We(r.year),a=!We(r.month)||!We(r.day),d=c||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new ro("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new ro("Can't mix ordinal dates with month/day");let g;o?g=Rv({...Hm(this.c,n,i),...r},n,i):We(r.ordinal)?(g={...this.toObject(),...r},We(r.day)&&(g.day=Math.min(Af(g.year,g.month),g.day))):g=Dv({...s0(this.c),...r});let[v,S]=u0(g,this.o,this.zone);return Gl(this,{ts:v,o:S})}plus(t){if(!this.isValid)return this;let r=Yt.fromDurationLike(t);return Gl(this,eC(this,r))}minus(t){if(!this.isValid)return this;let r=Yt.fromDurationLike(t).negate();return Gl(this,eC(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=Yt.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?qr.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):r_}toLocaleString(t=Ua,r={}){return this.isValid?qr.create(this.loc.clone(r),t).formatDateTime(this):r_}toLocaleParts(t={}){return this.isValid?qr.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+=tC(this,s,r,n,i,o),c}toISODate({format:t="extended"}={}){return this.isValid?o_(this,t==="extended"):null}toISOWeekDate(){return l0(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":"")+tC(this,s==="extended",r,t,n,o):null}toRFC2822(){return l0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return l0(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")),l0(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():r_}[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 Yt.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=vE(r).map(Yt.normalizeUnit),s=t.valueOf()>this.valueOf(),c=s?this:t,a=s?t:this,d=jE(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?Is.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),iC(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?iC(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 tr("min requires all arguments be DateTimes");return zv(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new tr("max requires all arguments be DateTimes");return zv(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return e_(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=pt.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new th(o,t)}static fromFormatParser(t,r,n={}){if(We(t)||We(r))throw new tr("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new tr(`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):Vf(c,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return Ua}static get DATE_MED(){return Sm}static get DATE_MED_WITH_WEEKDAY(){return gv}static get DATE_FULL(){return xm}static get DATE_HUGE(){return Em}static get TIME_SIMPLE(){return Cm}static get TIME_WITH_SECONDS(){return Tm}static get TIME_WITH_SHORT_OFFSET(){return Mm}static get TIME_WITH_LONG_OFFSET(){return Pm}static get TIME_24_SIMPLE(){return Im}static get TIME_24_WITH_SECONDS(){return Am}static get TIME_24_WITH_SHORT_OFFSET(){return Lm}static get TIME_24_WITH_LONG_OFFSET(){return km}static get DATETIME_SHORT(){return Nm}static get DATETIME_SHORT_WITH_SECONDS(){return Om}static get DATETIME_MED(){return Rm}static get DATETIME_MED_WITH_SECONDS(){return Dm}static get DATETIME_MED_WITH_WEEKDAY(){return wv}static get DATETIME_FULL(){return $m}static get DATETIME_FULL_WITH_SECONDS(){return Fm}static get DATETIME_HUGE(){return Um}static get DATETIME_HUGE_WITH_SECONDS(){return Vm}}});var Vn=U(()=>{Ga();eh();Jv();Xv();Ul();Mf();Wa();kv();Y1();Ba()});function jl(e){return e instanceof gr?e===Ir.instance:e?.toString().toLowerCase()==="unknown"}function p0(e){return jl(e)?Ir.instance:e}var Ir,nh=U(()=>{Vn();Ir=class{};Ir.instance=new rr("Etc/UTC")});function zf(e,t,r){return e<t?e-t:e>r?e-r:0}function Wf(e,t,r){return e<t?t:e>r?r:e}function co(e,t=!0){if(e instanceof gr)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return Ir.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=bt.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=rr.create(e);if(!r.isValid){if(t)throw new s_(m0.TimeZoneNotRecognized);return null}return r}var m0,VF,s_,Hl,a_=U(()=>{$a();nh();Vn();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(m0||(m0={}));VF={[m0.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},s_=class e extends Error{constructor(t,r){super(jo(VF[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};Hl=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=Ee.local(t,r).daysInMonth,h=Ee.fromObject({day:Wf(n,1,d),year:t,month:Wf(r,1,12),hour:Wf(i,0,23),minute:Wf(o,0,59),second:Wf(s,0,59),millisecond:Wf(c,0,999)},{zone:co(a)});return h=h.plus({months:zf(r,1,12),days:zf(n,1,d),hours:zf(i,0,23),minutes:zf(o,0,59),seconds:zf(s,0,59),milliseconds:zf(c,0,999)}),new e(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=co(r);return t.isUnknownTimeZone||n===Ir.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(Ee.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=co(r);return new e(Ee.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(Ee.fromMillis(t,{zone:Ir.instance}))}static unknownDateJSToArcadeDate(t){return new e(Ee.fromMillis(t.getTime(),{zone:Ir.instance}))}static epochToArcadeDate(t,r="system"){let n=co(r);return new e(Ee.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=co(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=co(r);return t.zone===Ir.instance||n===Ir.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=co(t);return new e(Ee.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(Ee.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===Ir.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=Ee.fromISO(t,{setZone:!0});return new e(r)}}});function yt(e){return e?{remove(){e&&(e(),e=void 0)}}:zF}function WF(e){e.forEach(t=>t?.remove())}function ql(e){return yt(()=>WF(e))}var zF,Xn=U(()=>{zF={remove:()=>{}}});function uC(){let e=c_?.getAttribute("lang"),t=globalThis.navigator?.language;return GF??e??t??"en"}function di(){return ih===void 0&&(ih=uC()),ih}function l_(e){return h0.push(e),yt(()=>h0.splice(h0.indexOf(e),1))}function Bf(e){return g0.push(e),yt(()=>g0.splice(g0.indexOf(e),1))}function lC(){let e=BF??uC();ih!==e&&([...g0].forEach(t=>t(e)),ih=e,[...h0].forEach(t=>t(e)))}var BF,ih,GF,c_,h0,g0,Ls=U(()=>{Xn();GF=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,c_=globalThis.document?.documentElement;h0=[];g0=[];globalThis.addEventListener?.("languagechange",lC),c_&&new MutationObserver(()=>{lC()}).observe(c_,{attributeFilter:["lang"]})});function dC(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 Zr,oh=U(()=>{a_();Ls();Vn();Zr=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 Ee.fromObject({day:this.day,month:this.month,year:this.year},{zone:co(t)})}toDateTimeLuxon(t){return Ee.fromObject({day:this.day,month:this.month,year:this.year},{zone:co(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=dC(t)),!t)return"";let n=this.toDateTime("unknown");return Hl.dateTimeToArcadeDate(n).toFormat(t,{locale:di(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return Hl.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 Ee.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=Ee.fromMillis(t,{zone:bt.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=Ee.fromSeconds(t,{zone:bt.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=dC(r))&&n.push(r);else if(r===null||r===""){let i=Ee.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Ee.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=Ee.fromJSDate(new Date).setZone(co(t));return new e(r.year,r.month,r.day)}}});var ee,jF,se,Ya=U(()=>{$a();(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"})(ee||(ee={}));jF={[ee.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[ee.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[ee.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[ee.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[ee.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[ee.UnsupportedOperator]:"Unsupported operator - {operator}",[ee.UnsupportedSyntax]:"Unsupported syntax - {node}",[ee.UnsupportedSqlFunction]:"Sql function not found = {function}",[ee.InvalidDataType]:"Invalid sql data type",[ee.InvalidDate]:"Invalid date encountered",[ee.InvalidOperator]:"Invalid operator encountered",[ee.InvalidTime]:"Invalid time encountered",[ee.IllegalInterval]:"Illegal interval",[ee.FunctionNotRecognized]:"Function not recognized",[ee.InvalidTimeStamp]:"Invalid timestamp encountered",[ee.InvalidParameterCount]:"Invalid parameter count for call to {name}",[ee.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[ee.YearMonthIntervals]:"Year-Month Intervals not supported",[ee.CannotCastValue]:"Cannot cast value to the required data type"},se=class e extends Error{constructor(t,r){super(jo(jF[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function fC(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var ln,sh=U(()=>{Vn();ln=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=Ee.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return fC(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return fC(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(Ee.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 K(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 Yr=U(()=>{});var w0,u_=U(()=>{w0="20241018"});var Ct,Zl=U(()=>{gt();Go();u_();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:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(j6(Ct,globalThis.esriConfig,!0),delete Ct.has),!Ct.assetsPath){{let e="4.31.0";Ct.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${w0}/assets`}Ct.defaultAssetsPath=Ct.assetsPath}});function HF(e,t,...r){console[e](`[${t}]`,...r)}function qF(...e){return J6(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var pC,Xe,vt=U(()=>{Zl();gt();$a();pC={info:0,warn:1,error:2,none:3},Xe=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=qF(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",HF)}_matchLevel(t){let r=Ct.log.level||"warn";return pC[this._parentWithMember("level",r)]<=pC[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};Xe._loggers=new Map,Xe._tickCounter=0,Xe._tickCounterScheduled=!1,Xe._throttlingDisabled=!1});function y0(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var d_=U(()=>{});function ZF(e){return e==null?e:new Date(e)}function YF(e){return e==null?e:!!e}function JF(e){return e==null?e:e.toString()}function h_(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function XF(e){return e==null?e:Math.round(parseFloat(e))}function QF(e){return null}function hC(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 gC(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function b0(e,t){return t!=null&&e&&!(t instanceof e)}function wC(e){return e&&"isCollection"in e}function mC(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function KF(e,t){if(!t?.constructor||!wC(t.constructor))return f_(e,t)?t:new e(t);let r=mC(e.prototype.itemType),n=mC(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(f_(e,t),t):new e(t):t}function f_(e,t){return!!gC(t)&&(Gf().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+v0(e)+"'"),!0)}function eU(e,t){return t==null?t:wC(e)?KF(e,t):b0(e,t)?f_(e,t)?t:new e(t):t}function v0(e){return e?.prototype?.declaredClass||"unknown"}function rU(e){switch(e){case Number:return t=>h_(t);case Ho:return XF;case Boolean:return YF;case String:return JF;case Date:return ZF;case ch:return QF;default:return y0(tU,e,()=>eU.bind(null,e))}}function Ri(e,t){let r=rU(e);return arguments.length===1?r:r(t)}function jf(e,t,r){return arguments.length===1?jf.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function yC(e,t){return arguments.length===1?jf(r=>Ri(e,r)):jf(r=>Ri(e,r),t)}function bC(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>bC(e,t-1,n)):e(r)}function ah(e,t,r){if(arguments.length===2)return o=>ah(e,t,o);if(!r)return r;r=bC(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 vC(e,t,r){return arguments.length===2?ah(n=>Ri(e,n),t):ah(n=>Ri(e,n),t,r)}function _0(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function S0(e,t){if(arguments.length===2)return S0(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=>!b0(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),Gf().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=>v0(g)).join(", ")),Gf().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):Gf().error("Accessor#set",`'${c}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function Ja(e,t){if(arguments.length===2)return Ja(e).call(null,t);let r={},n=[],i=[];for(let a in e.typeMap){let d=e.typeMap[a];r[a]=Ri(d),n.push(v0(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&&!b0(e.base,a)||a==null)return a;let d=c(a)||e.defaultKeyValue,h=r[d];if(!h)return Gf().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(!b0(e.typeMap[d],a))return a;if(typeof e.key=="string"&&!gC(a)){let g={};for(let v in a)v!==e.key&&(g[v]=a[v]);return h(g)}return h(a)}}function _C(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function g_(e){switch(e.type){case"native":return Ri(e.value);case"array":return jf(g_(e.value));case"one-of":return nU(e);default:return null}}function nU(e){let t=null;return(r,n)=>m_(r,e)?r:(t==null&&(t=p_(e)),Gf().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function p_(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case Ho:return"integer";case Date:return"date";case ch:return"null";default:return v0(e.value)}case"array":return`array of ${p_(e.value)}`;case"one-of":{let t=e.values.map(r=>p_(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function m_(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case Ho:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case ch:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!m_(r,t.value));case"one-of":return t.values.some(r=>m_(e,r))}}var Gf,tU,Ho,ch,Xa=U(()=>{gt();vt();d_();Gf=()=>Xe.getLogger("esri.core.accessorSupport.ensureTypes");tU=new WeakMap;Ho=class{},ch=class{}});function qo(e){return e.__accessor__??null}function xC(e,t){return e?.metadata?.[t]!=null}function Hf(e,t,r){return r?x0(e,t,{policy:r,path:""}):x0(e,t,null)}function x0(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]=it(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]=x0(a,d,r),r.path=h}else n[o]=x0(a,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function E0(e){return Array.isArray(e)?e:e.split(".")}function SC(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function iU(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...SC(r));return t}return SC(e)}function w_(e,t,r,n){let i=iU(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return ql(o)}return n(e,i[0],r)}var Qa=U(()=>{Xn();jr()});function EC(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=qo(t);return xC(n,r)?n.get(r):t[r]}function CC(e,t,r){if(e==null)return e;let n=EC(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:CC(n,t,r+1)}function Yl(e,t,r=0){return typeof t!="string"||t.includes(".")?CC(e,E0(t),r):EC(t,e)}function lo(e,t){return Yl(e,t)}function y_(e,t){return Yl(t,e)!==void 0}var Jl=U(()=>{Qa()});function Ka(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]=it(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 qf(e,t){let r=Ka(e),n=r[t];return n||(n=r[t]={}),n}function TC(e,t){return Hf(e,t,sU)}function sU(e){return oU.test(e)?"replace":"merge"}var oU,Zf=U(()=>{jr();Qa();oU=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function aU(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Li(n,t)??"").toString())}var Yf,b_=U(()=>{Go();Yf=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&aU(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var Ve,Sn=U(()=>{jr();vt();b_();Ve=class e extends Yf{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 it(r)}catch{return"[object]"}}))}}catch(t){throw Xe.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)}};Ve.prototype.type="error"});function Jf(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Jf(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Jf(lo(e,i),o,r)}let n=e.__accessor__;n!=null&&cU(t,n),e[t]=r}}function cU(e,t){if(me("esri-unknown-property-errors")&&!lU(e,t))throw new Ve("set:unknown-property",uU(e,t))}function lU(e,t){return t.metadata[e]!=null}function uU(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var v_=U(()=>{Sn();gt();vt();Jl()});function ce(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=qf(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&&Xe.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=lo(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=lo(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Jf(this,a,g)})}let s=e.type,c=e.types;if(!i.cast){let a;s?a=dU(s):c&&(a=Array.isArray(c)?jf(Ja(c[0])):Ja(c)),e.cast=fU(e.cast,a)}TC(i,e),e.range&&(i.cast=hC(i.cast,e.range))}}function C0(e,t,r){let n=qf(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 dU(e){let t=0,r=e;if(_C(e))return g_(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(_0(n))return t===0?S0(n):ah(S0(n),t);if(t===1)return yC(n);if(t>1)return vC(n,t);let i=e;return i.from?i.from:Ri(i)}function fU(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var Jr=U(()=>{vt();Xa();Jl();Zf();v_()});var T0,__=U(()=>{T0=Symbol("Accessor-beforeDestroy")});var Xr,lh=U(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(Xr||(Xr={}))});var at,M0=U(()=>{(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"})(at||(at={}))});var Zo,uh=U(()=>{Zo=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 qe(e){fh.onAccessed(e)}function uo(e,t,r){if(P0)return S_(e,t,r);let n=null;return IC(e),n=t.call(r),AC(),n}function PC(e,t){return uo(A0,e,t)}function S_(e,t,r){let n=P0;P0=!0,IC(e);let i=null;try{i=t.call(r)}catch(o){I0&&Xe.getLogger("esri.core.accessorSupport.tracking").error(o)}return AC(),P0=n,i}function IC(e){fh=e,dh.push(e)}function AC(){let e=dh.length;if(e>1){let t=dh.pop();fh=dh[e-2],t.onTrackingEnd()}else if(e===1){let t=dh.pop();fh=A0,t.onTrackingEnd()}else fh=A0}function x_(e,t){if(t.flags&at.DepTrackingInitialized)return;t.flags|=at.DepTrackingInitialized;let r=I0;I0=!1,t.flags&at.AutoTracked?S_(t.trackingTarget,t.metadata.get,e):E_(e,t),I0=r}function E_(e,t){t.flags&at.ExplicitlyTracking||(t.flags|=at.ExplicitlyTracking,S_(t.trackingTarget,()=>{let r=t.metadata.dependsOn||pU;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=E0(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=MC(s,i[o],o!==i.length-1)}else MC(e,n,!1)}),t.flags&=~at.ExplicitlyTracking)}function MC(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=qo(e);if(i){let o=i.propertiesByName.get(n);o&&(qe(o),x_(e,o))}return r?e[n]:void 0}var A0,dh,fh,P0,I0,pU,Xl=U(()=>{gt();vt();Qa();M0();uh();A0=new Zo,dh=[],fh=A0;P0=!1,I0=!1;pU=[]});function LC(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 kC=U(()=>{});var ph,NC=U(()=>{b_();ph=class extends Yf{constructor(t,r,n){super(t,r,n)}};ph.prototype.type="warning"});function L0(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var C_=U(()=>{});function M_(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||wU(e)&&Ts("read.reader",mU(e),t))}function mU(e){let t=e.ndimArray??0;if(t>1)return gU(e);if(t===1)return OC(e);if("type"in e&&DC(e.type)){let r=e.type.prototype?.itemType?.Type,n=OC(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let c=n(i,o,s);return c&&new e.type(c)}}return P_(e)}function P_(e){return"type"in e?hU(e.type):yU(e.types)}function hU(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void T_().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 RC(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>RC(e,i,r,n-1)):e(t,void 0,r)}function gU(e){let t=P_(e),r=RC.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 OC(e){let t=P_(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 DC(e){if(!L0(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?I_(t.Type):$C(t.Type))}function wU(e){return"types"in e?$C(e.types):I_(e.type)}function I_(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||DC(e))}function $C(e){for(let t in e.typeMap)if(!I_(e.typeMap[t]))return!1;return!0}function yU(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 T_().error(`Expected JSON value of type 'object' to deserialize, but got '${c}'`);t||(t=bU(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 ph(`${r}:unsupported`,v,{definition:i,context:s})),void T_().error(v)}let g=new h;return g.read(i,s),n?n(g):g}}function bU(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=Ka(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 T_,FC=U(()=>{vt();Go();NC();Zf();C_();T_=()=>Xe.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function WC(e){if(e.json||(e.json={}),VC(e.json),zC(e.json),UC(e.json),e.json.origins)for(let t in e.json.origins)VC(e.json.origins[t]),zC(e.json.origins[t]),UC(e.json.origins[t]);return!0}function UC(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 VC(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 zC(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 BC=U(()=>{});function A_(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&&L0(e.type))?t.write.writer=xU:r>1?t.write.writer=EU(r):t.types?Array.isArray(t.types)?t.write.writer=_U(t.types[0]):t.write.writer=vU(t.types):t.write.writer=mh}function vU(e){return(t,r,n,i)=>t?GC(t,e,i)?mh(t,r,n,i):void 0:mh(t,r,n,i)}function GC(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 Ve(`${n}:unsupported`,i,{definition:e,context:r})),Xe.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function _U(e){return(t,r,n,i)=>!t||!Array.isArray(t)?mh(t,r,n,i):mh(t.filter(o=>GC(o,e,i)),r,n,i)}function mh(e,t,r,n){Ts(r,k0(e,n),t)}function k0(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?SU(e):e}function SU(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function xU(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>k0(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[k0(e,n)],Ts(r,i,t)}function jC(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>jC(n,t,r-1)):k0(e,t)}function EU(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=jC(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]}Ts(n,o,r)}}var HC=U(()=>{Sn();vt();Go();C_()});function qC(e,t){return k_(e,"any",t?.origin)}function N0(e,t){return k_(e,"read",t?.origin)}function ZC(e,t){return k_(e,"write",t?.origin)}function k_(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 CU(e){let t=TU(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?MU(n):t;M_(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),A_(i,n)}M_(t,e.json,!0),A_(t,e.json)}function TU(e){return e.json.types?L_(e.json):e.type?YC(e):L_(e)}function MU(e){return e.type?YC(e):L_(e)}function YC(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!_0(r);)r=r[0],t++;return{type:r,ndimArray:t}}function L_(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 JC(e){WC(e)&&(LC(e),CU(e))}var O0=U(()=>{Xa();kC();FC();BC();HC()});function nt(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,IU(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!N_.has(i.initialize)&&(N_.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!O_.has(i.destroy)&&(O_.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);N_.clear(),O_.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[T0];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__=Ka(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 PU(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;r.mutable&&qe(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 IU(e){let t=e.prototype,r=Ka(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];JC(o),n[i]={enumerable:!0,configurable:!0,get:PU(i,o),set(s){let c=this.__accessor__;if(c!==void 0){if(c.mutable)return c.initialized&&o.readOnly?XC("read-only",i):c.lifecycle===Xr.CONSTRUCTED&&o.constructOnly?XC("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 N_,O_,XC,Ar=U(()=>{gt();vt();__();lh();Zf();Xl();O0();N_=new Set,O_=new Set;XC=(e,t)=>{Xe.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function AU(e,t,r=!1){let n=`\u{1F6D1} DEPRECATED - ${t}`;if(!r)return void e.warn(n);let i=QC.get(e);i||(i=new Set,QC.set(e,i)),i.has(t)||(i.add(t),e.warn(n))}function R0(e,t,r={}){if(me("esri-deprecation-warnings")){let{moduleName:n}=r;LU(e,`Function: ${(n?n+"::":"")+t+"()"}`,r)}}function LU(e,t,r={}){if(me("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,c=t;n&&(c+=`
|
|
1
|
+
"use strict";(()=>{var _R=Object.defineProperty;var d3=e=>t=>{var r=e[t];if(r)return r();throw new Error("Module not found in bundle: "+t)};var U=(e,t)=>()=>(e&&(t=e(e=0)),t);var f3=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Fo=(e,t)=>{for(var r in t)_R(e,r,{get:t[r],enumerable:!0})};var Fl,Na=U(()=>{Fl=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}};Fl._m=2147483647,Fl._a=48271,Fl._c=0});function Oa(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 hv(e,t,r,n){n=n||P6;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 I6(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;to.clear();for(let c=0;c<n;++c)to.add(t[c]);i=i||P6;let s=Math.max(0,i.last-10);for(let c=s;c<r;++c)if(to.has(e[c])&&(o?.push(e[c]),to.delete(e[c]),e[c]=e[r-1],--r,--c,to.size===0||r===0))return to.clear(),r;for(let c=0;c<s;++c)if(to.has(e[c])&&(o?.push(e[c]),to.delete(e[c]),e[c]=e[r-1],--r,--c,to.size===0||r===0))return to.clear(),r;return to.clear(),r}function A6(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function L6(e,t){return e!=null}var s$,Zre,vm,P6,to,Yre,Ra=U(()=>{Na();s$=1.5,Zre=1/s$;vm=class{constructor(){this.last=0}},P6=new vm;to=new Set;Yre=new Fl});var k6=U(()=>{});function me(e){return typeof Da[e]=="function"?Da[e]=Da[e](globalThis):Da[e]}var Da,gt=U(()=>{Da=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},me.add=(e,t,r,n)=>{(n||Da[e]===void 0)&&(Da[e]=t),r&&me(e)},me.cache=Da,me.add("big-integer-warning-enabled",!0),me.add("esri-deprecation-warnings",!0),me.add("esri-tests-disable-screenshots",!1),me.add("esri-tests-use-full-window",!1),me.add("esri-tests-post-to-influx",!0),me.add("esri-cim-animations-enable-status","enabled"),me.add("esri-cim-animations-spotlight",!1),me.add("esri-cim-animations-freeze-time",!1),me.add("enable-feature:multiple-highlights",!1),(()=>{me.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(me.add("host-browser",e),me.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),me.add("dom",e),me("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(me.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),me.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),me.add("khtml",n.includes("Konqueror")?i:void 0),me.add("edge",parseFloat(r.split("Edge/")[1])||void 0),me.add("opr",parseFloat(r.split("OPR/")[1])||void 0),me.add("webkit",!me("wp")&&!me("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),me.add("chrome",!me("edge")&&!me("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),me.add("android",!me("wp")&&parseFloat(r.split("Android ")[1])||void 0),me.add("safari",!n.includes("Safari")||me("wp")||me("chrome")||me("android")||me("edge")||me("opr")?void 0:parseFloat(n.split("Version/")[1])),me.add("mac",n.includes("Macintosh")),!me("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("_",""));me.add(o,c),me.add("ios",c)}me("webkit")||(!r.includes("Gecko")||me("wp")||me("khtml")||me("edge")||me.add("mozilla",i),me("mozilla")&&me.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&&me.add("esri-mobile",t),r&&me.add("esri-iPhone",r),me.add("esri-geolocation",!!navigator.geolocation)}me.add("esri-wasm","WebAssembly"in globalThis),me.add("esri-performance-mode-frames-between-render",20),me.add("esri-force-performance-mode",!1),me.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),me.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))}),me.add("esri-atomics","Atomics"in globalThis),me.add("esri-workers","Worker"in globalThis),me.add("web-feat:cache","caches"in globalThis),me.add("esri-workers-arraybuffer-transfer",!me("safari")||Number(me("safari"))>=12),me.add("workers-pool-size",8),me.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),me.add("featurelayer-simplify-payload-size-factors",[1,1,4]),me.add("featurelayer-fast-triangulation-enabled",!0),me.add("featurelayer-animation-enabled",!0),me.add("featurelayer-snapshot-enabled",!0),me.add("featurelayer-snapshot-point-min-threshold",8e4),me.add("featurelayer-snapshot-point-max-threshold",4e5),me.add("featurelayer-snapshot-point-coverage",.1),me.add("featurelayer-query-max-depth",4),me.add("featurelayer-query-pausing-enabled",!1),me.add("featurelayer-advanced-symbols",!1),me.add("featurelayer-pbf",!0),me.add("featurelayer-pbf-statistics",!1),me.add("feature-layers-workers",!0),me.add("feature-polyline-generalization-factor",1),me.add("mapview-transitions-duration",200),me.add("mapview-essential-goto-duration",200),me.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),me.add("mapserver-pbf-version-support",10.81),me.add("mapservice-popup-identify-max-tolerance",20),me("host-webworker")||me("host-browser")&&(me.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),me.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(()=>{me.add("esri-image-decode",!0,!0,!0)}).catch(()=>{me.add("esri-image-decode",!1,!0,!0)})}return!1}),me.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});function N6(e){return e?.constructor?.name==="Int8Array"}function O6(e){return e?.constructor?.name==="Uint8Array"}function R6(e){return e?.constructor?.name==="Uint8ClampedArray"}function D6(e){return e?.constructor?.name==="Int16Array"}function $6(e){return e?.constructor?.name==="Uint16Array"}function F6(e){return e?.constructor?.name==="Int32Array"}function U6(e){return e?.constructor?.name==="Uint32Array"}function V6(e){return e?.constructor?.name==="Float32Array"}function z6(e){return e?.constructor?.name==="Float64Array"}var W6=U(()=>{k6();gt()});function G1(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&G1(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function it(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=u$(e);if(t!=null)return t;if(a$(e))return e.clone();if(c$(e))return e.map(it);if(l$(e))return e.clone();let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=it(e[n]);return r}function a$(e){return typeof e.clone=="function"}function c$(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function l$(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function B6(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function u$(e){if(N6(e)||O6(e)||R6(e)||D6(e)||$6(e)||F6(e)||U6(e)||V6(e)||z6(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,it(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(it(r));return t}return null}function _m(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 G6(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)&&Oa(e,t):e instanceof Set?t instanceof Set&&f$(e,t):e instanceof Map?t instanceof Map&&p$(e,t):!!B6(e)&&B6(t)&&d$(e,t))}function d$(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 f$(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function p$(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 jr=U(()=>{Ra();W6()});function j6(e,t,r=!1){return q6(e,t,r)}function Li(e,t){if(t!=null)return t[e]||H6(e.split("."),!1,t)}function Ts(e,t,r){let n=e.split("."),i=n.pop(),o=H6(n,!0,r);o&&i&&(o[i]=t)}function H6(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 q6(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]=it(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]=q6(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var Go=U(()=>{jr()});function Z6(e){return e??""}function jo(e,t){return t?e.replaceAll(m$,typeof t=="object"?(r,n)=>Z6(Li(n,t)):(r,n)=>Z6(t(n))):e}function Y6(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function J6(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var m$,$a=U(()=>{Go();m$=/\{([^}]+)\}/g});var Ms,j1,H1,q1,ro,Ef,tr,no,Fa=U(()=>{Ms=class extends Error{},j1=class extends Ms{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},H1=class extends Ms{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},q1=class extends Ms{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},ro=class extends Ms{},Ef=class extends Ms{constructor(t){super(`Invalid unit ${t}`)}},tr=class extends Ms{},no=class extends Ms{constructor(){super("Zone is an abstract class")}}});var Ie,io,li,Ua,Sm,gv,xm,Em,Cm,Tm,Mm,Pm,Im,Am,Lm,km,Nm,Om,Rm,Dm,wv,$m,Fm,Um,Vm,zm=U(()=>{Ie="numeric",io="short",li="long",Ua={year:Ie,month:Ie,day:Ie},Sm={year:Ie,month:io,day:Ie},gv={year:Ie,month:io,day:Ie,weekday:io},xm={year:Ie,month:li,day:Ie},Em={year:Ie,month:li,day:Ie,weekday:li},Cm={hour:Ie,minute:Ie},Tm={hour:Ie,minute:Ie,second:Ie},Mm={hour:Ie,minute:Ie,second:Ie,timeZoneName:io},Pm={hour:Ie,minute:Ie,second:Ie,timeZoneName:li},Im={hour:Ie,minute:Ie,hourCycle:"h23"},Am={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23"},Lm={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23",timeZoneName:io},km={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23",timeZoneName:li},Nm={year:Ie,month:Ie,day:Ie,hour:Ie,minute:Ie},Om={year:Ie,month:Ie,day:Ie,hour:Ie,minute:Ie,second:Ie},Rm={year:Ie,month:io,day:Ie,hour:Ie,minute:Ie},Dm={year:Ie,month:io,day:Ie,hour:Ie,minute:Ie,second:Ie},wv={year:Ie,month:io,day:Ie,weekday:io,hour:Ie,minute:Ie},$m={year:Ie,month:li,day:Ie,hour:Ie,minute:Ie,timeZoneName:io},Fm={year:Ie,month:li,day:Ie,hour:Ie,minute:Ie,second:Ie,timeZoneName:io},Um={year:Ie,month:li,day:Ie,weekday:li,hour:Ie,minute:Ie,timeZoneName:li},Vm={year:Ie,month:li,day:Ie,weekday:li,hour:Ie,minute:Ie,second:Ie,timeZoneName:li}});var gr,Ul=U(()=>{Fa();gr=class{get type(){throw new no}get name(){throw new no}get ianaName(){return this.name}get isUniversal(){throw new no}offsetName(t,r){throw new no}formatOffset(t,r){throw new no}offset(t){throw new no}equals(t){throw new no}get isValid(){throw new no}}});var yv,Va,Y1=U(()=>{Un();Ul();yv=null,Va=class e extends gr{static get instance(){return yv===null&&(yv=new e),yv}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return J1(t,r,n)}formatOffset(t,r){return za(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function h$(e){return Q1[e]||(Q1[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"})),Q1[e]}function w$(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 y$(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=g$[o];o==="era"?n[c]=s:We(c)||(n[c]=parseInt(s,10))}return n}var Q1,g$,X1,rr,Wa=U(()=>{Un();Ul();Q1={};g$={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};X1={},rr=class e extends gr{static create(t){return X1[t]||(X1[t]=new e(t)),X1[t]}static resetCache(){X1={},Q1={}}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 J1(t,r,n,this.name)}formatOffset(t,r){return za(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=h$(this.name),[i,o,s,c,a,d,h]=n.formatToParts?y$(n,r):w$(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=Cf({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 b$(e,t={}){let r=JSON.stringify([e,t]),n=X6[r];return n||(n=new Intl.ListFormat(e,t),X6[r]=n),n}function vv(e,t={}){let r=JSON.stringify([e,t]),n=bv[r];return n||(n=new Intl.DateTimeFormat(e,t),bv[r]=n),n}function v$(e,t={}){let r=JSON.stringify([e,t]),n=_v[r];return n||(n=new Intl.NumberFormat(e,t),_v[r]=n),n}function _$(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=Sv[i];return o||(o=new Intl.RelativeTimeFormat(e,t),Sv[i]=o),o}function S$(){return Wm||(Wm=new Intl.DateTimeFormat().resolvedOptions().locale,Wm)}function x$(e){let t=Q6[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,Q6[e]=t}return t}function E$(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=vv(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=vv(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function C$(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function T$(e){let t=[];for(let r=1;r<=12;r++){let n=Ee.utc(2009,r,1);t.push(e(n))}return t}function M$(e){let t=[];for(let r=1;r<=7;r++){let n=Ee.utc(2016,11,13+r);t.push(e(n))}return t}function K1(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function P$(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 X6,bv,_v,Sv,Wm,Q6,xv,Ev,Cv,I$,pt,Gm=U(()=>{Un();r0();Ba();Ga();Wa();X6={};bv={};_v={};Sv={};Wm=null;Q6={};xv=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=v$(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):Tf(t,3);return Zt(r,this.padTo)}}},Ev=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&&rr.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=vv(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()}},Cv=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&e0()&&(this.rtf=_$(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):K6(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},I$={firstDay:1,minimalDays:4,weekend:[6,7]},pt=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||ft.defaultLocale,c=s||(o?"en-US":S$()),a=r||ft.defaultNumberingSystem,d=n||ft.defaultOutputCalendar,h=Bm(i)||ft.defaultWeekSettings;return new e(c,a,d,h,s)}static resetCache(){Wm=null,bv={},_v={},Sv={}}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]=E$(t);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=C$(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=P$(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,Bm(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 K1(this,t,Tv,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=T$(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return K1(this,t,Mv,()=>{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]=M$(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return K1(this,void 0,()=>Pv,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ee.utc(2016,11,13,9),Ee.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return K1(this,t,Iv,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ee.utc(-40,1,1),Ee.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 xv(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new Ev(t,this.intl,r)}relFormatter(t={}){return new Cv(this.intl,this.isEnglish(),t)}listFormatter(t={}){return b$(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:t0()?x$(this.locale):I$}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 Lv,bt,Mf=U(()=>{Un();Ul();Lv=null,bt=class e extends gr{static get utcInstance(){return Lv===null&&(Lv=new e(0)),Lv}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(Vl(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${za(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${za(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return za(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 Pf,kv=U(()=>{Ul();Pf=class extends gr{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 oo(e,t){let r;if(We(e)||e===null)return t;if(e instanceof gr)return e;if(eE(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Va.instance:n==="utc"||n==="gmt"?bt.utcInstance:bt.parseSpecifier(n)||rr.create(e)}else return so(e)?bt.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Pf(e)}var n0=U(()=>{Ul();Wa();Mf();kv();Un();Y1()});function rE(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(Nv.hanidec)!==-1)t+=A$.indexOf(e[r]);else for(let i in tE){let[o,s]=tE[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function nE(){If={}}function ki({numberingSystem:e},t=""){let r=e||"latn";return If[r]||(If[r]={}),If[r][t]||(If[r][t]=new RegExp(`${Nv[r]}${t}`)),If[r][t]}var Nv,tE,A$,If,Ov=U(()=>{Nv={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"},tE={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]},A$=Nv.hanidec.replace(/[\[|\]]/g,"").split("");If={}});var iE,oE,sE,aE,cE,lE,uE,dE,ft,Ba=U(()=>{Y1();Wa();Gm();Ga();n0();Un();Ov();iE=()=>Date.now(),oE="system",sE=null,aE=null,cE=null,lE=60,dE=null,ft=class{static get now(){return iE}static set now(t){iE=t}static set defaultZone(t){oE=t}static get defaultZone(){return oo(oE,Va.instance)}static get defaultLocale(){return sE}static set defaultLocale(t){sE=t}static get defaultNumberingSystem(){return aE}static set defaultNumberingSystem(t){aE=t}static get defaultOutputCalendar(){return cE}static set defaultOutputCalendar(t){cE=t}static get defaultWeekSettings(){return dE}static set defaultWeekSettings(t){dE=Bm(t)}static get twoDigitCutoffYear(){return lE}static set twoDigitCutoffYear(t){lE=t%100}static get throwOnInvalid(){return uE}static set throwOnInvalid(t){uE=t}static resetCaches(){pt.resetCache(),rr.resetCache(),Ee.resetCache(),nE()}}});var Hr,jm=U(()=>{Hr=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Ni(e,t){return new Hr("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function i0(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 mE(e,t,r){return r+(Wl(e)?pE:fE)[t-1]}function hE(e,t){let r=Wl(e)?pE:fE,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 Hm(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=mE(n,i,o),c=o0(i0(n,i,o),r),a=Math.floor((s-c+14-t)/7),d;return a<1?(d=n-1,a=zl(d,t,r)):a>zl(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...Zm(e)}}function Rv(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=o0(i0(n,1,t),r),c=ja(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=ja(d)):a>c?(d=n+1,a-=ja(n)):d=n;let{month:h,day:g}=hE(d,a);return{year:d,month:h,day:g,...Zm(e)}}function s0(e){let{year:t,month:r,day:n}=e,i=mE(t,r,n);return{year:t,ordinal:i,...Zm(e)}}function Dv(e){let{year:t,ordinal:r}=e,{month:n,day:i}=hE(t,r);return{year:t,month:n,day:i,...Zm(e)}}function $v(e,t){if(!We(e.localWeekday)||!We(e.localWeekNumber)||!We(e.localWeekYear)){if(!We(e.weekday)||!We(e.weekNumber)||!We(e.weekYear))throw new ro("Cannot mix locale-based week fields with ISO-based week fields");return We(e.localWeekday)||(e.weekday=e.localWeekday),We(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),We(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 gE(e,t=4,r=1){let n=qm(e.weekYear),i=ui(e.weekNumber,1,zl(e.weekYear,t,r)),o=ui(e.weekday,1,7);return n?i?o?!1:Ni("weekday",e.weekday):Ni("week",e.weekNumber):Ni("weekYear",e.weekYear)}function wE(e){let t=qm(e.year),r=ui(e.ordinal,1,ja(e.year));return t?r?!1:Ni("ordinal",e.ordinal):Ni("year",e.year)}function Fv(e){let t=qm(e.year),r=ui(e.month,1,12),n=ui(e.day,1,Af(e.year,e.month));return t?r?n?!1:Ni("day",e.day):Ni("month",e.month):Ni("year",e.year)}function Uv(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=ui(t,0,23)||t===24&&r===0&&n===0&&i===0,s=ui(r,0,59),c=ui(n,0,59),a=ui(i,0,999);return o?s?c?a?!1:Ni("millisecond",i):Ni("second",n):Ni("minute",r):Ni("hour",t)}var fE,pE,Vv=U(()=>{Un();jm();Fa();fE=[0,31,59,90,120,151,181,212,243,273,304,334],pE=[0,31,60,91,121,152,182,213,244,274,305,335]});function We(e){return typeof e>"u"}function so(e){return typeof e=="number"}function qm(e){return typeof e=="number"&&e%1===0}function eE(e){return typeof e=="string"}function bE(e){return Object.prototype.toString.call(e)==="[object Date]"}function e0(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function t0(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function vE(e){return Array.isArray(e)?e:[e]}function zv(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 _E(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function Ha(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Bm(e){if(e==null)return null;if(typeof e!="object")throw new tr("Week settings must be an object");if(!ui(e.firstDay,1,7)||!ui(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!ui(t,1,7)))throw new tr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function ui(e,t,r){return qm(e)&&e>=t&&e<=r}function L$(e,t){return e-t*Math.floor(e/t)}function Zt(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function Ps(e){if(!(We(e)||e===null||e===""))return parseInt(e,10)}function qa(e){if(!(We(e)||e===null||e===""))return parseFloat(e)}function Ym(e){if(!(We(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Tf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Wl(e){return e%4===0&&(e%100!==0||e%400===0)}function ja(e){return Wl(e)?366:365}function Af(e,t){let r=L$(t-1,12)+1,n=e+(t-r)/12;return r===2?Wl(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Cf(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 yE(e,t,r){return-o0(i0(e,1,t),r)+t-1}function zl(e,t=4,r=1){let n=yE(e,t,r),i=yE(e+1,t,r);return(ja(e)-n+i)/7}function Jm(e){return e>99?e:e>ft.twoDigitCutoffYear?1900+e:2e3+e}function J1(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 Vl(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 Wv(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new tr(`Invalid unit value ${e}`);return t}function Lf(e,t){let r={};for(let n in e)if(Ha(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=Wv(i)}return r}function za(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}${Zt(r,2)}:${Zt(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${Zt(r,2)}${Zt(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Zm(e){return _E(e,["hour","minute","second","millisecond"])}var Un=U(()=>{Fa();Ba();Vv()});function Tv(e){switch(e){case"narrow":return[...N$];case"short":return[...Bv];case"long":return[...k$];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 Mv(e){switch(e){case"narrow":return[...O$];case"short":return[...jv];case"long":return[...Gv];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function Iv(e){switch(e){case"narrow":return[...$$];case"short":return[...D$];case"long":return[...R$];default:return null}}function SE(e){return Pv[e.hour<12?0:1]}function xE(e,t){return Mv(t)[e.weekday-1]}function EE(e,t){return Tv(t)[e.month-1]}function CE(e,t){return Iv(t)[e.year<0?0:1]}function K6(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 k$,Bv,N$,Gv,jv,O$,Pv,R$,D$,$$,r0=U(()=>{zm();Un();k$=["January","February","March","April","May","June","July","August","September","October","November","December"],Bv=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],N$=["J","F","M","A","M","J","J","A","S","O","N","D"];Gv=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],jv=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],O$=["M","T","W","T","F","S","S"];Pv=["AM","PM"],R$=["Before Christ","Anno Domini"],D$=["BC","AD"],$$=["B","A"]});function TE(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var F$,qr,Xm=U(()=>{r0();zm();Un();F$={D:Ua,DD:Sm,DDD:xm,DDDD:Em,t:Cm,tt:Tm,ttt:Mm,tttt:Pm,T:Im,TT:Am,TTT:Lm,TTTT:km,f:Nm,ff:Rm,fff:$m,ffff:Um,F:Om,FF:Dm,FFF:Fm,FFFF:Vm},qr=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 F$[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 Zt(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?SE(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(S,M)=>n?EE(t,S):o(M?{month:S}:{month:S,day:"numeric"},"month"),d=(S,M)=>n?xE(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?CE(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 TE(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 TE(o,i(c))}}});function Nf(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function Of(...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 Rf(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 IE(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=Ps(t[r+i]);return[n,null,r+i]}}function kf(e,t,r){let n=e[t];return We(n)?r:Ps(n)}function q$(e,t){return[{year:kf(e,t),month:kf(e,t+1,1),day:kf(e,t+2,1)},null,t+3]}function Df(e,t){return[{hours:kf(e,t,0),minutes:kf(e,t+1,0),seconds:kf(e,t+2,0),milliseconds:Ym(e[t+3])},null,t+4]}function Qm(e,t){let r=!e[t]&&!e[t+1],n=Vl(e[t+1],e[t+2]),i=r?null:bt.instance(n);return[{},i,t+3]}function Km(e,t){let r=e[t]?rr.create(e[t]):null;return[{},r,t+1]}function J$(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(qa(r)),months:v(qa(n)),weeks:v(qa(i)),days:v(qa(o)),hours:v(qa(s)),minutes:v(qa(c)),seconds:v(qa(a),a==="-0"),milliseconds:v(Ym(d),g)}]}function Zv(e,t,r,n,i,o,s){let c={year:t.length===2?Jm(Ps(t)):Ps(t),month:Bv.indexOf(r)+1,day:Ps(n),hour:Ps(i),minute:Ps(o)};return s&&(c.second=Ps(s)),e&&(c.weekday=e.length>3?Gv.indexOf(e)+1:jv.indexOf(e)+1),c}function K$(e){let[,t,r,n,i,o,s,c,a,d,h,g]=e,v=Zv(t,i,n,r,o,s,c),S;return a?S=X$[a]:d?S=0:S=Vl(h,g),[v,new bt(S)]}function eF(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function ME(e){let[,t,r,n,i,o,s,c]=e;return[Zv(t,i,n,r,o,s,c),bt.utcInstance]}function iF(e){let[,t,r,n,i,o,s,c]=e;return[Zv(t,c,r,n,i,o,s),bt.utcInstance]}function OE(e){return Rf(e,[oF,NE],[sF,lF],[aF,uF],[cF,dF])}function RE(e){return Rf(eF(e),[Q$,K$])}function DE(e){return Rf(e,[tF,ME],[rF,ME],[nF,iF])}function $E(e){return Rf(e,[Y$,J$])}function FE(e){return Rf(e,[Z$,fF])}function UE(e){return Rf(e,[pF,NE],[mF,hF])}var PE,AE,U$,Hv,LE,qv,V$,z$,W$,B$,G$,j$,kE,H$,Z$,Y$,X$,Q$,tF,rF,nF,oF,sF,aF,cF,NE,lF,uF,dF,fF,pF,mF,hF,Yv=U(()=>{Un();r0();Mf();Wa();PE=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;AE=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,U$=`(?:${AE.source}?(?:\\[(${PE.source})\\])?)?`,Hv=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,LE=RegExp(`${Hv.source}${U$}`),qv=RegExp(`(?:T${LE.source})?`),V$=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,z$=/(\d{4})-?W(\d\d)(?:-?(\d))?/,W$=/(\d{4})-?(\d{3})/,B$=IE("weekYear","weekNumber","weekDay"),G$=IE("year","ordinal"),j$=/(\d{4})-(\d\d)-(\d\d)/,kE=RegExp(`${Hv.source} ?(?:${AE.source}|(${PE.source}))?`),H$=RegExp(`(?: ${kE.source})?`);Z$=RegExp(`^T?${Hv.source}$`),Y$=/^-?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)?)?)$/;X$={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};Q$=/^(?:(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)))$/;tF=/^(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$/,rF=/^(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$/,nF=/^(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})$/;oF=Nf(V$,qv),sF=Nf(z$,qv),aF=Nf(W$,qv),cF=Nf(LE),NE=Of(q$,Df,Qm,Km),lF=Of(B$,Df,Qm,Km),uF=Of(G$,Df,Qm,Km),dF=Of(Df,Qm,Km);fF=Of(Df);pF=Nf(j$,H$),mF=Nf(kE),hF=Of(Df,Qm,Km)});function Za(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 Yt(n)}function BE(e,t){let r=t.milliseconds??0;for(let n of yF.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function zE(e,t){let r=BE(e,t)<0?-1:1;Bl.reduceRight((n,i)=>{if(We(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),Bl.reduce((n,i)=>{if(We(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function bF(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var VE,WE,gF,Oi,$f,wF,Bl,yF,Yt,eh=U(()=>{Fa();Xm();jm();Gm();Yv();Un();Ba();Ga();VE="Invalid Duration",WE={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}},gF={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},...WE},Oi=146097/400,$f=146097/4800,wF={years:{quarters:4,months:12,weeks:Oi/7,days:Oi,hours:Oi*24,minutes:Oi*24*60,seconds:Oi*24*60*60,milliseconds:Oi*24*60*60*1e3},quarters:{months:3,weeks:Oi/28,days:Oi/4,hours:Oi*24/4,minutes:Oi*24*60/4,seconds:Oi*24*60*60/4,milliseconds:Oi*24*60*60*1e3/4},months:{weeks:$f/7,days:$f,hours:$f*24,minutes:$f*24*60,seconds:$f*24*60*60,milliseconds:$f*24*60*60*1e3},...WE},Bl=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],yF=Bl.slice(0).reverse();Yt=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?wF:gF;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||pt.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 tr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Lf(t,e.normalizeUnit),loc:pt.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(so(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new tr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=$E(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]=FE(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 tr("need to specify a reason the Duration is invalid");let n=t instanceof Hr?t:new Hr(t,r);if(ft.throwOnInvalid)throw new q1(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 Ef(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?qr.create(this.loc,n).formatDurationFromString(this,t):VE}toHuman(t={}){if(!this.isValid)return VE;let r=Bl.map(n=>{let i=this.values[n];return We(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+=Tf(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},Ee.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?BE(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 Bl)(Ha(r.values,i)||Ha(this.values,i))&&(n[i]=r.get(i)+this.get(i));return Za(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]=Wv(t(this.values[n],n));return Za(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...Lf(t,e.normalizeUnit)};return Za(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 Za(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return zE(this.matrix,t),Za(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=bF(this.normalize().shiftToAll().toObject());return Za(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 Bl)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;so(i[s])&&(c+=i[s]);let a=Math.trunc(c);r[s]=a,n[s]=(c*1e3-a*1e3)/1e3}else so(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 zE(this.matrix,r),Za(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 Za(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 Bl)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function vF(e,t){return!e||!e.isValid?Is.invalid("missing or invalid start"):!t||!t.isValid?Is.invalid("missing or invalid end"):t<e?Is.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 Ff,Is,Jv=U(()=>{Ga();eh();Ba();Fa();jm();Xm();zm();Ff="Invalid Interval";Is=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 tr("need to specify a reason the Interval is invalid");let n=t instanceof Hr?t:new Hr(t,r);if(ft.throwOnInvalid)throw new H1(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=Uf(t),i=Uf(r),o=vF(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=Yt.fromDurationLike(r),i=Uf(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=Yt.fromDurationLike(r),i=Uf(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=Ee.fromISO(n,r),s=o.isValid}catch{s=!1}let c,a;try{c=Ee.fromISO(i,r),a=c.isValid}catch{a=!1}if(s&&a)return e.fromDateTimes(o,c);if(s){let d=Yt.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=Yt.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(Uf).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=Yt.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()})`:Ff}[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=Ua,r={}){return this.isValid?qr.create(this.s.loc.clone(r),t).formatInterval(this):Ff}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Ff}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Ff}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Ff}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:Ff}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):Yt.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var As,Xv=U(()=>{Ga();Ba();Gm();Wa();n0();Un();As=class{static hasDST(t=ft.defaultZone){let r=Ee.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return rr.isValidZone(t)}static normalizeZone(t){return oo(t,ft.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||pt.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||pt.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||pt.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||pt.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||pt.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||pt.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||pt.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return pt.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return pt.create(r,null,"gregory").eras(t)}static features(){return{relative:e0(),localeWeek:t0()}}}});function GE(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(Yt.fromMillis(n).as("days"))}function _F(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=GE(a,d);return(h-h%7)/7}],["days",GE]],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 jE(e,t,r,n){let[i,o,s,c]=_F(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=Yt.fromObject(o,n);return d.length>0?Yt.fromMillis(a,n).shiftTo(...d).plus(h):h}var HE=U(()=>{eh()});function wt(e,t=r=>r){return{regex:e,deser:([r])=>t(rE(r))}}function EF(e){return e.replace(/\./g,"\\.?").replace(JE,YE)}function qE(e){return e.replace(/\./g,"").replace(JE," ").toLowerCase()}function ao(e,t){return e===null?null:{regex:RegExp(e.map(EF).join("|")),deser:([r])=>e.findIndex(n=>qE(r)===qE(n))+t}}function ZE(e,t){return{regex:e,deser:([,r,n])=>Vl(r,n),groups:t}}function a0(e){return{regex:e,deser:([t])=>t}}function CF(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function TF(e,t){let r=ki(t),n=ki(t,"{2}"),i=ki(t,"{3}"),o=ki(t,"{4}"),s=ki(t,"{6}"),c=ki(t,"{1,2}"),a=ki(t,"{1,3}"),d=ki(t,"{1,6}"),h=ki(t,"{1,9}"),g=ki(t,"{2,4}"),v=ki(t,"{4,6}"),S=O=>({regex:RegExp(CF(O.val)),deser:([z])=>z,literal:!0}),I=(O=>{if(e.literal)return S(O);switch(O.val){case"G":return ao(t.eras("short"),0);case"GG":return ao(t.eras("long"),0);case"y":return wt(d);case"yy":return wt(g,Jm);case"yyyy":return wt(o);case"yyyyy":return wt(v);case"yyyyyy":return wt(s);case"M":return wt(c);case"MM":return wt(n);case"MMM":return ao(t.months("short",!0),1);case"MMMM":return ao(t.months("long",!0),1);case"L":return wt(c);case"LL":return wt(n);case"LLL":return ao(t.months("short",!1),1);case"LLLL":return ao(t.months("long",!1),1);case"d":return wt(c);case"dd":return wt(n);case"o":return wt(a);case"ooo":return wt(i);case"HH":return wt(n);case"H":return wt(c);case"hh":return wt(n);case"h":return wt(c);case"mm":return wt(n);case"m":return wt(c);case"q":return wt(c);case"qq":return wt(n);case"s":return wt(c);case"ss":return wt(n);case"S":return wt(a);case"SSS":return wt(i);case"u":return a0(h);case"uu":return a0(c);case"uuu":return wt(r);case"a":return ao(t.meridiems(),0);case"kkkk":return wt(o);case"kk":return wt(g,Jm);case"W":return wt(c);case"WW":return wt(n);case"E":case"c":return wt(r);case"EEE":return ao(t.weekdays("short",!1),1);case"EEEE":return ao(t.weekdays("long",!1),1);case"ccc":return ao(t.weekdays("short",!0),1);case"cccc":return ao(t.weekdays("long",!0),1);case"Z":case"ZZ":return ZE(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return ZE(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return a0(/[a-z_+-/]{1,256}?/i);case" ":return a0(/[^\S\n\r]/);default:return S(O)}})(e)||{invalidReason:SF};return I.token=e,I}function PF(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=MF[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function IF(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function AF(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(Ha(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 LF(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 We(e.z)||(r=rr.create(e.z)),We(e.Z)||(r||(r=new bt(e.Z)),n=e.Z),We(e.q)||(e.M=(e.q-1)*3+1),We(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),We(e.u)||(e.S=Ym(e.u)),[Object.keys(e).reduce((o,s)=>{let c=t(s);return c&&(o[c]=e[s]),o},{}),r,n]}function kF(){return Qv||(Qv=Ee.fromMillis(1555555555555)),Qv}function NF(e,t){if(e.literal)return e;let r=qr.macroTokenToFormatOpts(e.val),n=t_(r,t);return n==null||n.includes(void 0)?e:n}function Kv(e,t){return Array.prototype.concat(...e.map(r=>NF(r,t)))}function e_(e,t,r){return new th(e,r).explainFromTokens(t)}function XE(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=e_(e,t,r);return[n,i,o,s]}function t_(e,t){if(!e)return null;let n=qr.create(t,e).dtFormatter(kF()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>PF(s,e,o))}var SF,xF,YE,JE,MF,Qv,th,QE=U(()=>{Un();Xm();Mf();Wa();Ga();Ov();Fa();SF="missing Intl.DateTimeFormat.formatToParts support";xF="\xA0",YE=`[ ${xF}]`,JE=new RegExp(YE,"g");MF={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"}};Qv=null;th=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=Kv(qr.parseFormat(r),t),this.units=this.tokens.map(n=>TF(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=IF(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=AF(t,this.regex,this.handlers),[i,o,s]=n?LF(n):[null,null,void 0];if(Ha(n,"a")&&Ha(n,"H"))throw new ro("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 rh(e){return new Hr("unsupported zone",`the zone "${e.name}" is not supported`)}function n_(e){return e.weekData===null&&(e.weekData=Hm(e.c)),e.weekData}function i_(e){return e.localWeekData===null&&(e.localWeekData=Hm(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Gl(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ee({...r,...t,old:r})}function sC(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 c0(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 sC(Cf(e),t,r)}function eC(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,Af(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=Yt.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=Cf(o),[a,d]=sC(c,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function Vf(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=Ee.fromObject(e,{...r,zone:a,specificOffset:o});return s?d:d.setZone(c)}else return Ee.invalid(new Hr("unparsable",`the input "${i}" can't be parsed as ${n}`))}function l0(e,t,r=!0){return e.isValid?qr.create(pt.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+=Zt(e.c.year,r?6:4),t?(n+="-",n+=Zt(e.c.month),n+="-",n+=Zt(e.c.day)):(n+=Zt(e.c.month),n+=Zt(e.c.day)),n}function tC(e,t,r,n,i,o){let s=Zt(e.c.hour);return t?(s+=":",s+=Zt(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=Zt(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=Zt(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=Zt(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=Zt(Math.trunc(-e.o/60)),s+=":",s+=Zt(Math.trunc(-e.o%60))):(s+="+",s+=Zt(Math.trunc(e.o/60)),s+=":",s+=Zt(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function FF(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 Ef(e);return t}function rC(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return FF(e)}}function UF(e){return f0[e]||(d0===void 0&&(d0=ft.now()),f0[e]=e.offset(d0)),f0[e]}function nC(e,t){let r=oo(t.zone,ft.defaultZone);if(!r.isValid)return Ee.invalid(rh(r));let n=pt.fromObject(t),i,o;if(We(e.year))i=ft.now();else{for(let a of cC)We(e[a])&&(e[a]=aC[a]);let s=Fv(e)||Uv(e);if(s)return Ee.invalid(s);let c=UF(r);[i,o]=u0(e,c,r)}return new Ee({ts:i,zone:r,loc:n,o})}function iC(e,t,r){let n=We(r.round)?!0:r.round,i=(s,c)=>(s=Tf(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 oC(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 Uf(e){if(Ee.isDateTime(e))return e;if(e&&e.valueOf&&so(e.valueOf()))return Ee.fromJSDate(e);if(e&&typeof e=="object")return Ee.fromObject(e);throw new tr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var r_,KE,aC,OF,RF,cC,DF,$F,d0,f0,Ee,Ga=U(()=>{eh();Jv();Ba();Xv();Xm();Mf();Gm();Un();n0();HE();Yv();QE();Vv();zm();Fa();jm();r_="Invalid DateTime",KE=864e13;aC={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},OF={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},RF={ordinal:1,hour:0,minute:0,second:0,millisecond:0},cC=["year","month","day","hour","minute","second","millisecond"],DF=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],$F=["year","ordinal","hour","minute","second","millisecond"];f0={},Ee=class e{constructor(t){let r=t.zone||ft.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new Hr("invalid input"):null)||(r.isValid?null:rh(r));this.ts=We(t.ts)?ft.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=so(t.o)&&!t.old?t.o:r.offset(this.ts);i=c0(this.ts,c),n=Number.isNaN(i.year)?new Hr("invalid input"):null,i=n?null:i,o=n?null:c}this._zone=r,this.loc=t.loc||pt.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]=oC(arguments),[n,i,o,s,c,a,d]=r;return nC({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static utc(){let[t,r]=oC(arguments),[n,i,o,s,c,a,d]=r;return t.zone=bt.utcInstance,nC({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=bE(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=oo(r.zone,ft.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:pt.fromObject(r)}):e.invalid(rh(i))}static fromMillis(t,r={}){if(so(t))return t<-KE||t>KE?e.invalid("Timestamp out of range"):new e({ts:t,zone:oo(r.zone,ft.defaultZone),loc:pt.fromObject(r)});throw new tr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(so(t))return new e({ts:t*1e3,zone:oo(r.zone,ft.defaultZone),loc:pt.fromObject(r)});throw new tr("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=oo(r.zone,ft.defaultZone);if(!n.isValid)return e.invalid(rh(n));let i=pt.fromObject(r),o=Lf(t,rC),{minDaysInFirstWeek:s,startOfWeek:c}=$v(o,i),a=ft.now(),d=We(r.specificOffset)?n.offset(a):r.specificOffset,h=!We(o.ordinal),g=!We(o.year),v=!We(o.month)||!We(o.day),S=g||v,M=o.weekYear||o.weekNumber;if((S||h)&&M)throw new ro("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&h)throw new ro("Can't mix ordinal dates with month/day");let I=M||o.weekday&&!S,O,z,$=c0(a,d);I?(O=DF,z=OF,$=Hm($,s,c)):h?(O=$F,z=RF,$=s0($)):(O=cC,z=aC);let W=!1;for(let Se of O){let Le=o[Se];We(Le)?W?o[Se]=z[Se]:o[Se]=$[Se]:W=!0}let Z=I?gE(o,s,c):h?wE(o):Fv(o),te=Z||Uv(o);if(te)return e.invalid(te);let de=I?Rv(o,s,c):h?Dv(o):o,[V,he]=u0(de,d,n),Ae=new e({ts:V,zone:n,o:he,loc:i});return o.weekday&&S&&t.weekday!==Ae.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Ae.toISO()}`):Ae.isValid?Ae:e.invalid(Ae.invalid)}static fromISO(t,r={}){let[n,i]=OE(t);return Vf(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=RE(t);return Vf(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=DE(t);return Vf(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(We(t)||We(r))throw new tr("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,a,d,h]=XE(s,t,r);return h?e.invalid(h):Vf(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]=UE(t);return Vf(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new tr("need to specify a reason the DateTime is invalid");let n=t instanceof Hr?t:new Hr(t,r);if(ft.throwOnInvalid)throw new j1(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=t_(t,pt.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return Kv(qr.parseFormat(t),pt.fromObject(r)).map(i=>i.val).join("")}static resetCache(){d0=void 0,f0={}}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?n_(this).weekYear:NaN}get weekNumber(){return this.isValid?n_(this).weekNumber:NaN}get weekday(){return this.isValid?n_(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?i_(this).weekday:NaN}get localWeekNumber(){return this.isValid?i_(this).weekNumber:NaN}get localWeekYear(){return this.isValid?i_(this).weekYear:NaN}get ordinal(){return this.isValid?s0(this.c).ordinal:NaN}get monthShort(){return this.isValid?As.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?As.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?As.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?As.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=Cf(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=c0(a,s),g=c0(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Gl(this,{ts:a}),Gl(this,{ts:d})]:[this]}get isInLeapYear(){return Wl(this.year)}get daysInMonth(){return Af(this.year,this.month)}get daysInYear(){return this.isValid?ja(this.year):NaN}get weeksInWeekYear(){return this.isValid?zl(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?zl(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=qr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(bt.instance(t),r)}toLocal(){return this.setZone(ft.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=oo(t,ft.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 Gl(this,{ts:i,zone:t})}else return e.invalid(rh(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return Gl(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=Lf(t,rC),{minDaysInFirstWeek:n,startOfWeek:i}=$v(r,this.loc),o=!We(r.weekYear)||!We(r.weekNumber)||!We(r.weekday),s=!We(r.ordinal),c=!We(r.year),a=!We(r.month)||!We(r.day),d=c||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new ro("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new ro("Can't mix ordinal dates with month/day");let g;o?g=Rv({...Hm(this.c,n,i),...r},n,i):We(r.ordinal)?(g={...this.toObject(),...r},We(r.day)&&(g.day=Math.min(Af(g.year,g.month),g.day))):g=Dv({...s0(this.c),...r});let[v,S]=u0(g,this.o,this.zone);return Gl(this,{ts:v,o:S})}plus(t){if(!this.isValid)return this;let r=Yt.fromDurationLike(t);return Gl(this,eC(this,r))}minus(t){if(!this.isValid)return this;let r=Yt.fromDurationLike(t).negate();return Gl(this,eC(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=Yt.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?qr.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):r_}toLocaleString(t=Ua,r={}){return this.isValid?qr.create(this.loc.clone(r),t).formatDateTime(this):r_}toLocaleParts(t={}){return this.isValid?qr.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+=tC(this,s,r,n,i,o),c}toISODate({format:t="extended"}={}){return this.isValid?o_(this,t==="extended"):null}toISOWeekDate(){return l0(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":"")+tC(this,s==="extended",r,t,n,o):null}toRFC2822(){return l0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return l0(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")),l0(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():r_}[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 Yt.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=vE(r).map(Yt.normalizeUnit),s=t.valueOf()>this.valueOf(),c=s?this:t,a=s?t:this,d=jE(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?Is.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),iC(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?iC(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 tr("min requires all arguments be DateTimes");return zv(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new tr("max requires all arguments be DateTimes");return zv(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return e_(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=pt.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new th(o,t)}static fromFormatParser(t,r,n={}){if(We(t)||We(r))throw new tr("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new tr(`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):Vf(c,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return Ua}static get DATE_MED(){return Sm}static get DATE_MED_WITH_WEEKDAY(){return gv}static get DATE_FULL(){return xm}static get DATE_HUGE(){return Em}static get TIME_SIMPLE(){return Cm}static get TIME_WITH_SECONDS(){return Tm}static get TIME_WITH_SHORT_OFFSET(){return Mm}static get TIME_WITH_LONG_OFFSET(){return Pm}static get TIME_24_SIMPLE(){return Im}static get TIME_24_WITH_SECONDS(){return Am}static get TIME_24_WITH_SHORT_OFFSET(){return Lm}static get TIME_24_WITH_LONG_OFFSET(){return km}static get DATETIME_SHORT(){return Nm}static get DATETIME_SHORT_WITH_SECONDS(){return Om}static get DATETIME_MED(){return Rm}static get DATETIME_MED_WITH_SECONDS(){return Dm}static get DATETIME_MED_WITH_WEEKDAY(){return wv}static get DATETIME_FULL(){return $m}static get DATETIME_FULL_WITH_SECONDS(){return Fm}static get DATETIME_HUGE(){return Um}static get DATETIME_HUGE_WITH_SECONDS(){return Vm}}});var Vn=U(()=>{Ga();eh();Jv();Xv();Ul();Mf();Wa();kv();Y1();Ba()});function jl(e){return e instanceof gr?e===Ir.instance:e?.toString().toLowerCase()==="unknown"}function p0(e){return jl(e)?Ir.instance:e}var Ir,nh=U(()=>{Vn();Ir=class{};Ir.instance=new rr("Etc/UTC")});function zf(e,t,r){return e<t?e-t:e>r?e-r:0}function Wf(e,t,r){return e<t?t:e>r?r:e}function co(e,t=!0){if(e instanceof gr)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return Ir.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=bt.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=rr.create(e);if(!r.isValid){if(t)throw new s_(m0.TimeZoneNotRecognized);return null}return r}var m0,VF,s_,Hl,a_=U(()=>{$a();nh();Vn();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(m0||(m0={}));VF={[m0.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},s_=class e extends Error{constructor(t,r){super(jo(VF[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};Hl=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=Ee.local(t,r).daysInMonth,h=Ee.fromObject({day:Wf(n,1,d),year:t,month:Wf(r,1,12),hour:Wf(i,0,23),minute:Wf(o,0,59),second:Wf(s,0,59),millisecond:Wf(c,0,999)},{zone:co(a)});return h=h.plus({months:zf(r,1,12),days:zf(n,1,d),hours:zf(i,0,23),minutes:zf(o,0,59),seconds:zf(s,0,59),milliseconds:zf(c,0,999)}),new e(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=co(r);return t.isUnknownTimeZone||n===Ir.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(Ee.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=co(r);return new e(Ee.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(Ee.fromMillis(t,{zone:Ir.instance}))}static unknownDateJSToArcadeDate(t){return new e(Ee.fromMillis(t.getTime(),{zone:Ir.instance}))}static epochToArcadeDate(t,r="system"){let n=co(r);return new e(Ee.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=co(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=co(r);return t.zone===Ir.instance||n===Ir.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=co(t);return new e(Ee.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(Ee.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===Ir.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=Ee.fromISO(t,{setZone:!0});return new e(r)}}});function yt(e){return e?{remove(){e&&(e(),e=void 0)}}:zF}function WF(e){e.forEach(t=>t?.remove())}function ql(e){return yt(()=>WF(e))}var zF,Xn=U(()=>{zF={remove:()=>{}}});function uC(){let e=c_?.getAttribute("lang"),t=globalThis.navigator?.language;return GF??e??t??"en"}function di(){return ih===void 0&&(ih=uC()),ih}function l_(e){return h0.push(e),yt(()=>h0.splice(h0.indexOf(e),1))}function Bf(e){return g0.push(e),yt(()=>g0.splice(g0.indexOf(e),1))}function lC(){let e=BF??uC();ih!==e&&([...g0].forEach(t=>t(e)),ih=e,[...h0].forEach(t=>t(e)))}var BF,ih,GF,c_,h0,g0,Ls=U(()=>{Xn();GF=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,c_=globalThis.document?.documentElement;h0=[];g0=[];globalThis.addEventListener?.("languagechange",lC),c_&&new MutationObserver(()=>{lC()}).observe(c_,{attributeFilter:["lang"]})});function dC(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 Zr,oh=U(()=>{a_();Ls();Vn();Zr=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 Ee.fromObject({day:this.day,month:this.month,year:this.year},{zone:co(t)})}toDateTimeLuxon(t){return Ee.fromObject({day:this.day,month:this.month,year:this.year},{zone:co(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=dC(t)),!t)return"";let n=this.toDateTime("unknown");return Hl.dateTimeToArcadeDate(n).toFormat(t,{locale:di(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return Hl.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 Ee.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=Ee.fromMillis(t,{zone:bt.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=Ee.fromSeconds(t,{zone:bt.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=dC(r))&&n.push(r);else if(r===null||r===""){let i=Ee.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Ee.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=Ee.fromJSDate(new Date).setZone(co(t));return new e(r.year,r.month,r.day)}}});var ee,jF,se,Ya=U(()=>{$a();(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"})(ee||(ee={}));jF={[ee.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[ee.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[ee.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[ee.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[ee.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[ee.UnsupportedOperator]:"Unsupported operator - {operator}",[ee.UnsupportedSyntax]:"Unsupported syntax - {node}",[ee.UnsupportedSqlFunction]:"Sql function not found = {function}",[ee.InvalidDataType]:"Invalid sql data type",[ee.InvalidDate]:"Invalid date encountered",[ee.InvalidOperator]:"Invalid operator encountered",[ee.InvalidTime]:"Invalid time encountered",[ee.IllegalInterval]:"Illegal interval",[ee.FunctionNotRecognized]:"Function not recognized",[ee.InvalidTimeStamp]:"Invalid timestamp encountered",[ee.InvalidParameterCount]:"Invalid parameter count for call to {name}",[ee.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[ee.YearMonthIntervals]:"Year-Month Intervals not supported",[ee.CannotCastValue]:"Cannot cast value to the required data type"},se=class e extends Error{constructor(t,r){super(jo(jF[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function fC(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var ln,sh=U(()=>{Vn();ln=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=Ee.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return fC(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return fC(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(Ee.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 K(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 Yr=U(()=>{});var w0,u_=U(()=>{w0="20241019"});var Ct,Zl=U(()=>{gt();Go();u_();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:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(j6(Ct,globalThis.esriConfig,!0),delete Ct.has),!Ct.assetsPath){{let e="4.31.0";Ct.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${w0}/assets`}Ct.defaultAssetsPath=Ct.assetsPath}});function HF(e,t,...r){console[e](`[${t}]`,...r)}function qF(...e){return J6(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var pC,Xe,vt=U(()=>{Zl();gt();$a();pC={info:0,warn:1,error:2,none:3},Xe=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=qF(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",HF)}_matchLevel(t){let r=Ct.log.level||"warn";return pC[this._parentWithMember("level",r)]<=pC[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};Xe._loggers=new Map,Xe._tickCounter=0,Xe._tickCounterScheduled=!1,Xe._throttlingDisabled=!1});function y0(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var d_=U(()=>{});function ZF(e){return e==null?e:new Date(e)}function YF(e){return e==null?e:!!e}function JF(e){return e==null?e:e.toString()}function h_(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function XF(e){return e==null?e:Math.round(parseFloat(e))}function QF(e){return null}function hC(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 gC(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function b0(e,t){return t!=null&&e&&!(t instanceof e)}function wC(e){return e&&"isCollection"in e}function mC(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function KF(e,t){if(!t?.constructor||!wC(t.constructor))return f_(e,t)?t:new e(t);let r=mC(e.prototype.itemType),n=mC(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(f_(e,t),t):new e(t):t}function f_(e,t){return!!gC(t)&&(Gf().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+v0(e)+"'"),!0)}function eU(e,t){return t==null?t:wC(e)?KF(e,t):b0(e,t)?f_(e,t)?t:new e(t):t}function v0(e){return e?.prototype?.declaredClass||"unknown"}function rU(e){switch(e){case Number:return t=>h_(t);case Ho:return XF;case Boolean:return YF;case String:return JF;case Date:return ZF;case ch:return QF;default:return y0(tU,e,()=>eU.bind(null,e))}}function Ri(e,t){let r=rU(e);return arguments.length===1?r:r(t)}function jf(e,t,r){return arguments.length===1?jf.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function yC(e,t){return arguments.length===1?jf(r=>Ri(e,r)):jf(r=>Ri(e,r),t)}function bC(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>bC(e,t-1,n)):e(r)}function ah(e,t,r){if(arguments.length===2)return o=>ah(e,t,o);if(!r)return r;r=bC(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 vC(e,t,r){return arguments.length===2?ah(n=>Ri(e,n),t):ah(n=>Ri(e,n),t,r)}function _0(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function S0(e,t){if(arguments.length===2)return S0(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=>!b0(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),Gf().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=>v0(g)).join(", ")),Gf().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):Gf().error("Accessor#set",`'${c}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function Ja(e,t){if(arguments.length===2)return Ja(e).call(null,t);let r={},n=[],i=[];for(let a in e.typeMap){let d=e.typeMap[a];r[a]=Ri(d),n.push(v0(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&&!b0(e.base,a)||a==null)return a;let d=c(a)||e.defaultKeyValue,h=r[d];if(!h)return Gf().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(!b0(e.typeMap[d],a))return a;if(typeof e.key=="string"&&!gC(a)){let g={};for(let v in a)v!==e.key&&(g[v]=a[v]);return h(g)}return h(a)}}function _C(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function g_(e){switch(e.type){case"native":return Ri(e.value);case"array":return jf(g_(e.value));case"one-of":return nU(e);default:return null}}function nU(e){let t=null;return(r,n)=>m_(r,e)?r:(t==null&&(t=p_(e)),Gf().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function p_(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case Ho:return"integer";case Date:return"date";case ch:return"null";default:return v0(e.value)}case"array":return`array of ${p_(e.value)}`;case"one-of":{let t=e.values.map(r=>p_(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function m_(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case Ho:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case ch:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!m_(r,t.value));case"one-of":return t.values.some(r=>m_(e,r))}}var Gf,tU,Ho,ch,Xa=U(()=>{gt();vt();d_();Gf=()=>Xe.getLogger("esri.core.accessorSupport.ensureTypes");tU=new WeakMap;Ho=class{},ch=class{}});function qo(e){return e.__accessor__??null}function xC(e,t){return e?.metadata?.[t]!=null}function Hf(e,t,r){return r?x0(e,t,{policy:r,path:""}):x0(e,t,null)}function x0(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]=it(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]=x0(a,d,r),r.path=h}else n[o]=x0(a,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function E0(e){return Array.isArray(e)?e:e.split(".")}function SC(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function iU(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...SC(r));return t}return SC(e)}function w_(e,t,r,n){let i=iU(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return ql(o)}return n(e,i[0],r)}var Qa=U(()=>{Xn();jr()});function EC(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=qo(t);return xC(n,r)?n.get(r):t[r]}function CC(e,t,r){if(e==null)return e;let n=EC(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:CC(n,t,r+1)}function Yl(e,t,r=0){return typeof t!="string"||t.includes(".")?CC(e,E0(t),r):EC(t,e)}function lo(e,t){return Yl(e,t)}function y_(e,t){return Yl(t,e)!==void 0}var Jl=U(()=>{Qa()});function Ka(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]=it(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 qf(e,t){let r=Ka(e),n=r[t];return n||(n=r[t]={}),n}function TC(e,t){return Hf(e,t,sU)}function sU(e){return oU.test(e)?"replace":"merge"}var oU,Zf=U(()=>{jr();Qa();oU=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function aU(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Li(n,t)??"").toString())}var Yf,b_=U(()=>{Go();Yf=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&aU(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var Ve,Sn=U(()=>{jr();vt();b_();Ve=class e extends Yf{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 it(r)}catch{return"[object]"}}))}}catch(t){throw Xe.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)}};Ve.prototype.type="error"});function Jf(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Jf(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Jf(lo(e,i),o,r)}let n=e.__accessor__;n!=null&&cU(t,n),e[t]=r}}function cU(e,t){if(me("esri-unknown-property-errors")&&!lU(e,t))throw new Ve("set:unknown-property",uU(e,t))}function lU(e,t){return t.metadata[e]!=null}function uU(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var v_=U(()=>{Sn();gt();vt();Jl()});function ce(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=qf(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&&Xe.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=lo(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=lo(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Jf(this,a,g)})}let s=e.type,c=e.types;if(!i.cast){let a;s?a=dU(s):c&&(a=Array.isArray(c)?jf(Ja(c[0])):Ja(c)),e.cast=fU(e.cast,a)}TC(i,e),e.range&&(i.cast=hC(i.cast,e.range))}}function C0(e,t,r){let n=qf(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 dU(e){let t=0,r=e;if(_C(e))return g_(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(_0(n))return t===0?S0(n):ah(S0(n),t);if(t===1)return yC(n);if(t>1)return vC(n,t);let i=e;return i.from?i.from:Ri(i)}function fU(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var Jr=U(()=>{vt();Xa();Jl();Zf();v_()});var T0,__=U(()=>{T0=Symbol("Accessor-beforeDestroy")});var Xr,lh=U(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(Xr||(Xr={}))});var at,M0=U(()=>{(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"})(at||(at={}))});var Zo,uh=U(()=>{Zo=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 qe(e){fh.onAccessed(e)}function uo(e,t,r){if(P0)return S_(e,t,r);let n=null;return IC(e),n=t.call(r),AC(),n}function PC(e,t){return uo(A0,e,t)}function S_(e,t,r){let n=P0;P0=!0,IC(e);let i=null;try{i=t.call(r)}catch(o){I0&&Xe.getLogger("esri.core.accessorSupport.tracking").error(o)}return AC(),P0=n,i}function IC(e){fh=e,dh.push(e)}function AC(){let e=dh.length;if(e>1){let t=dh.pop();fh=dh[e-2],t.onTrackingEnd()}else if(e===1){let t=dh.pop();fh=A0,t.onTrackingEnd()}else fh=A0}function x_(e,t){if(t.flags&at.DepTrackingInitialized)return;t.flags|=at.DepTrackingInitialized;let r=I0;I0=!1,t.flags&at.AutoTracked?S_(t.trackingTarget,t.metadata.get,e):E_(e,t),I0=r}function E_(e,t){t.flags&at.ExplicitlyTracking||(t.flags|=at.ExplicitlyTracking,S_(t.trackingTarget,()=>{let r=t.metadata.dependsOn||pU;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=E0(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=MC(s,i[o],o!==i.length-1)}else MC(e,n,!1)}),t.flags&=~at.ExplicitlyTracking)}function MC(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=qo(e);if(i){let o=i.propertiesByName.get(n);o&&(qe(o),x_(e,o))}return r?e[n]:void 0}var A0,dh,fh,P0,I0,pU,Xl=U(()=>{gt();vt();Qa();M0();uh();A0=new Zo,dh=[],fh=A0;P0=!1,I0=!1;pU=[]});function LC(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 kC=U(()=>{});var ph,NC=U(()=>{b_();ph=class extends Yf{constructor(t,r,n){super(t,r,n)}};ph.prototype.type="warning"});function L0(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var C_=U(()=>{});function M_(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||wU(e)&&Ts("read.reader",mU(e),t))}function mU(e){let t=e.ndimArray??0;if(t>1)return gU(e);if(t===1)return OC(e);if("type"in e&&DC(e.type)){let r=e.type.prototype?.itemType?.Type,n=OC(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let c=n(i,o,s);return c&&new e.type(c)}}return P_(e)}function P_(e){return"type"in e?hU(e.type):yU(e.types)}function hU(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void T_().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 RC(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>RC(e,i,r,n-1)):e(t,void 0,r)}function gU(e){let t=P_(e),r=RC.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 OC(e){let t=P_(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 DC(e){if(!L0(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?I_(t.Type):$C(t.Type))}function wU(e){return"types"in e?$C(e.types):I_(e.type)}function I_(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||DC(e))}function $C(e){for(let t in e.typeMap)if(!I_(e.typeMap[t]))return!1;return!0}function yU(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 T_().error(`Expected JSON value of type 'object' to deserialize, but got '${c}'`);t||(t=bU(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 ph(`${r}:unsupported`,v,{definition:i,context:s})),void T_().error(v)}let g=new h;return g.read(i,s),n?n(g):g}}function bU(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=Ka(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 T_,FC=U(()=>{vt();Go();NC();Zf();C_();T_=()=>Xe.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function WC(e){if(e.json||(e.json={}),VC(e.json),zC(e.json),UC(e.json),e.json.origins)for(let t in e.json.origins)VC(e.json.origins[t]),zC(e.json.origins[t]),UC(e.json.origins[t]);return!0}function UC(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 VC(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 zC(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 BC=U(()=>{});function A_(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&&L0(e.type))?t.write.writer=xU:r>1?t.write.writer=EU(r):t.types?Array.isArray(t.types)?t.write.writer=_U(t.types[0]):t.write.writer=vU(t.types):t.write.writer=mh}function vU(e){return(t,r,n,i)=>t?GC(t,e,i)?mh(t,r,n,i):void 0:mh(t,r,n,i)}function GC(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 Ve(`${n}:unsupported`,i,{definition:e,context:r})),Xe.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function _U(e){return(t,r,n,i)=>!t||!Array.isArray(t)?mh(t,r,n,i):mh(t.filter(o=>GC(o,e,i)),r,n,i)}function mh(e,t,r,n){Ts(r,k0(e,n),t)}function k0(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?SU(e):e}function SU(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function xU(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>k0(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[k0(e,n)],Ts(r,i,t)}function jC(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>jC(n,t,r-1)):k0(e,t)}function EU(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=jC(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]}Ts(n,o,r)}}var HC=U(()=>{Sn();vt();Go();C_()});function qC(e,t){return k_(e,"any",t?.origin)}function N0(e,t){return k_(e,"read",t?.origin)}function ZC(e,t){return k_(e,"write",t?.origin)}function k_(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 CU(e){let t=TU(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?MU(n):t;M_(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),A_(i,n)}M_(t,e.json,!0),A_(t,e.json)}function TU(e){return e.json.types?L_(e.json):e.type?YC(e):L_(e)}function MU(e){return e.type?YC(e):L_(e)}function YC(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!_0(r);)r=r[0],t++;return{type:r,ndimArray:t}}function L_(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 JC(e){WC(e)&&(LC(e),CU(e))}var O0=U(()=>{Xa();kC();FC();BC();HC()});function nt(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,IU(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!N_.has(i.initialize)&&(N_.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!O_.has(i.destroy)&&(O_.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);N_.clear(),O_.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[T0];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__=Ka(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 PU(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;r.mutable&&qe(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 IU(e){let t=e.prototype,r=Ka(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];JC(o),n[i]={enumerable:!0,configurable:!0,get:PU(i,o),set(s){let c=this.__accessor__;if(c!==void 0){if(c.mutable)return c.initialized&&o.readOnly?XC("read-only",i):c.lifecycle===Xr.CONSTRUCTED&&o.constructOnly?XC("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 N_,O_,XC,Ar=U(()=>{gt();vt();__();lh();Zf();Xl();O0();N_=new Set,O_=new Set;XC=(e,t)=>{Xe.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function AU(e,t,r=!1){let n=`\u{1F6D1} DEPRECATED - ${t}`;if(!r)return void e.warn(n);let i=QC.get(e);i||(i=new Set,QC.set(e,i)),i.has(t)||(i.add(t),e.warn(n))}function R0(e,t,r={}){if(me("esri-deprecation-warnings")){let{moduleName:n}=r;LU(e,`Function: ${(n?n+"::":"")+t+"()"}`,r)}}function LU(e,t,r={}){if(me("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,c=t;n&&(c+=`
|
|
2
2
|
\u{1F6E0}\uFE0F Replacement: ${n}`),i&&(c+=`
|
|
3
3
|
\u2699\uFE0F Version: ${i}`),o&&(c+=`
|
|
4
4
|
\u{1F517} See ${o} for more details.`),AU(e,c,s)}}var QC,R_=U(()=>{gt();QC=new WeakMap});function D_(e){return e!=null&&typeof e[Symbol.iterator]=="function"}var KC=U(()=>{});function D0(e){return e||"_default_"}function eT(e){for(let t of e)t instanceof Xf?t.removeAll():t.remove()}function tT(e){return e!=null&&(!!e.remove||e instanceof Xf)}var Xf,rT=U(()=>{KC();Xf=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(D_(t)){let n=this._getOrCreateGroup(r);for(let i of t)tT(i)&&n.push(i)}else tT(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(D0(t))}remove(t){if(typeof t!="string"&&D_(t)){for(let r of t)this.remove(r);return this}return this.has(t)?(eT(this._getGroup(t)),this._groups.delete(D0(t)),this):this}removeAll(){return this._groups.forEach(eT),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(D0(t),r),r}_getGroup(t){return this._groups.get(D0(t))}}});function hh(e){return e?.destroy(),null}function gh(e){return e?.remove(),null}function nT(e){return e?.abort(),null}var Ql=U(()=>{});function kU(e){return e?.release&&typeof e.release=="function"}function NU(e){return e?.acquire&&typeof e.acquire=="function"}var fo,wh=U(()=>{fo=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):NU(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):kU(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()}};fo.test={disabled:!1}});var $0,iT=U(()=>{Ra();$0=class{constructor(t,r){this._observers=t,this._observer=r}remove(){A6(this._observers,this._observer)}}});var Qf,OU,$_=U(()=>{Xn();iT();Qf=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return OU;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 $0(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}}},OU=yt()});function F0(e){switch(e){case"defaults":return ct.DEFAULTS;case"service":return ct.SERVICE;case"portal-item":return ct.PORTAL_ITEM;case"web-scene":return ct.WEB_SCENE;case"web-map":return ct.WEB_MAP;case"link-chart":return ct.LINK_CHART;case"user":return ct.USER;default:return null}}function U0(e){switch(e){case ct.DEFAULTS:return"defaults";case ct.SERVICE:return"service";case ct.PORTAL_ITEM:return"portal-item";case ct.WEB_SCENE:return"web-scene";case ct.WEB_MAP:return"web-map";case ct.LINK_CHART:return"link-chart";case ct.USER:return"user"}}function oT(e){return U0(e)}var ct,wae,Kl=U(()=>{(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"})(ct||(ct={}));wae=ct.USER+1});var yh,sT=U(()=>{$_();Kl();Xl();M0();uh();yh=class extends Qf{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this.trackingTarget=new Zo(this),this.flags=0,this.flags=at.Dirty|(r.nonNullable?at.NonNullable:0)|(r.hasOwnProperty("value")?at.HasDefaultValue:0)|(r.get===void 0?at.DepTrackingInitialized:0)|(r.dependsOn===void 0?at.AutoTracked:0)}destroy(){this.flags&at.Dirty&&this.onCommitted(),super.destroy(),this.trackingTarget.destroy()}getComputed(t){t.mutable&&qe(this);let r=t.store,n=this.propertyName,i=this.flags,o=r.get(n);if(i&at.Computing||~i&at.Dirty&&r.has(n))return o;this.flags|=at.Computing;let s=t.host,c;i&at.AutoTracked?c=uo(this.trackingTarget,this.metadata.get,s):(E_(s,this),c=this.metadata.get.call(s)),this.flags|=at.DepTrackingInitialized,r.set(n,c,ct.COMPUTED);let a=r.get(n);return a===o?this.flags&=~at.Dirty:PC(this.commit,this),this.flags&=~at.Computing,a}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~at.Dirty,this.onCommitted()}onInvalidated(){~this.flags&at.Overridden&&(this.flags|=at.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 V0,aT=U(()=>{jr();Kl();V0=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,it(n))}),r}get(t){return this._values.get(t)}originOf(){return ct.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 z0(e,t,r){return e!==void 0}function cT(e,t,r,n){return e!==void 0&&(!(r==null&&e.flags&at.NonNullable)||(n.lifecycle,Xr.INITIALIZING,!1))}var W0,U_,F_,lT=U(()=>{gt();jr();vt();wh();lh();sT();Kl();aT();Xl();M0();uh();W0=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=Xr.INITIALIZING,this.store=new V0,this.mutable=!0,this._origin=ct.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new yh(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=Xr.CONSTRUCTING}constructed(){this.lifecycle=Xr.CONSTRUCTED}destroy(){this.lifecycle=Xr.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==Xr.INITIALIZING}get(t){let r=this.propertiesByName.get(t);if(r.metadata.get)return r.getComputed(this);this.mutable&&qe(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&at.HasDefaultValue)return"defaults"}return U0(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(z0(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);z0(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!z0(i))return"";let o=new Zo,s=uo(o,()=>i.metadata.get?.call(t)),c=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
|