@arcgis/coding-components 4.31.0-next.50 → 4.31.0-next.51
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-767c5225.js → p-01da9b87.js} +2 -2
- package/dist/arcgis-coding-components/{p-4673c357.js → p-0e466656.js} +2 -2
- package/dist/arcgis-coding-components/{p-480eb4c5.js → p-1e2c061f.js} +9 -9
- package/dist/arcgis-coding-components/{p-fdc7cb89.js → p-1f4dd8ea.js} +2 -2
- package/dist/arcgis-coding-components/{p-4d6ca874.js → p-2d187b80.js} +2 -2
- package/dist/arcgis-coding-components/{p-98e04042.js → p-38b10ccb.js} +2 -2
- package/dist/arcgis-coding-components/{p-f482a7be.entry.js → p-3e54590d.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-0317229d.js → p-65b4b095.js} +1 -1
- package/dist/arcgis-coding-components/{p-a9813986.js → p-6787dd4c.js} +2 -2
- package/dist/arcgis-coding-components/{p-2e8fbb4b.js → p-833ae4ee.js} +2 -2
- package/dist/arcgis-coding-components/{p-33addfb3.js → p-8b045366.js} +2 -2
- package/dist/arcgis-coding-components/{p-f4cde30a.entry.js → p-9218ae01.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-4c73eabe.js → p-96bba7f5.js} +1 -1
- package/dist/arcgis-coding-components/{p-b044f79f.js → p-cccd46d5.js} +1 -1
- package/dist/arcgis-coding-components/{p-b8a43324.js → p-d2287ce9.js} +2 -2
- package/dist/arcgis-coding-components/{p-f48664f6.entry.js → p-d3f04192.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-ece33ee3.js → p-d67469e8.js} +2 -2
- package/dist/arcgis-coding-components/{p-ee1bcd4a.js → p-e16c05ff.js} +2 -2
- package/dist/cjs/{app-globals-1ba015ed.js → app-globals-b5d3bda0.js} +1 -1
- package/dist/cjs/{arcade-defaults-ad5cf484.js → arcade-defaults-a59b98c8.js} +4 -4
- package/dist/cjs/{arcade-mode-649fa51a.js → arcade-mode-bbcc64c9.js} +2 -2
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +5 -5
- 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-2cb6ed68.js → css-50ab4ba4.js} +1 -1
- package/dist/cjs/{cssMode-59149f47.js → cssMode-cde87050.js} +2 -2
- package/dist/cjs/{html-7eb8e26e.js → html-88890272.js} +2 -2
- package/dist/cjs/{htmlMode-ca858966.js → htmlMode-61827280.js} +2 -2
- package/dist/cjs/{index-823cb4fb.js → index-1662a35f.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-4ca4d95c.js → javascript-2c62b4fe.js} +3 -3
- package/dist/cjs/{jsonMode-8a504873.js → jsonMode-46c758c3.js} +2 -2
- package/dist/cjs/{language-defaults-base-5776f8e9.js → language-defaults-base-1351cde9.js} +9 -9
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{sql-expr-defaults-beafe7a2.js → sql-expr-defaults-c1878109.js} +4 -4
- package/dist/cjs/{sql-expr-mode-f7d4dbce.js → sql-expr-mode-4e83413c.js} +4 -4
- package/dist/cjs/{tsMode-47b28437.js → tsMode-187fbff9.js} +2 -2
- package/dist/cjs/{typescript-ab07dc5e.js → typescript-ed13744f.js} +2 -2
- 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/arcade-variables.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-arcade-variables.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-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-BMBYH3VH.js +1 -1
- package/dist/components/code-editor.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/language-defaults-base.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/sql-expression-fields.js +1 -1
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-7e5121c7.js → app-globals-f291bf24.js} +1 -1
- package/dist/esm/{arcade-defaults-aee40b8e.js → arcade-defaults-5377abc7.js} +4 -4
- package/dist/esm/{arcade-mode-24feb5c6.js → arcade-mode-b416088e.js} +2 -2
- package/dist/esm/arcgis-arcade-editor_6.entry.js +5 -5
- 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-7ff32064.js → css-7dfaa788.js} +1 -1
- package/dist/esm/{cssMode-72ada24a.js → cssMode-d241d003.js} +2 -2
- package/dist/esm/{html-97b20a90.js → html-7ffb87f8.js} +2 -2
- package/dist/esm/{htmlMode-7b3b3c64.js → htmlMode-ffeaf752.js} +2 -2
- package/dist/esm/{index-fd2a2c8b.js → index-2b9dd0f5.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-4e95c52b.js → javascript-347f3916.js} +3 -3
- package/dist/esm/{jsonMode-64dc7360.js → jsonMode-25ecfd73.js} +2 -2
- package/dist/esm/{language-defaults-base-4727c213.js → language-defaults-base-4fef2327.js} +9 -9
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{sql-expr-defaults-1a3cc4d4.js → sql-expr-defaults-e9b958fc.js} +4 -4
- package/dist/esm/{sql-expr-mode-cb99d3b8.js → sql-expr-mode-a8f41e49.js} +4 -4
- package/dist/esm/{tsMode-0dd42b2d.js → tsMode-05c939be.js} +2 -2
- package/dist/esm/{typescript-6cc96cd7.js → typescript-dfb2a986.js} +2 -2
- 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 +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var kk=Object.defineProperty;var W5=e=>t=>{var r=e[t];if(r)return r();throw new Error("Module not found in bundle: "+t)};var L=(e,t)=>()=>(e&&(t=e(e=0)),t);var z5=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),li=(e,t)=>{for(var r in t)kk(e,r,{get:t[r],enumerable:!0})};var $s,To=L(()=>{$s=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}};$s._m=2147483647,$s._a=48271,$s._c=0});function Eo(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 Q2(e,t,r,n){n=n||i7;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 o7(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;Wn.clear();for(let a=0;a<n;++a)Wn.add(t[a]);i=i||i7;let s=Math.max(0,i.last-10);for(let a=s;a<r;++a)if(Wn.has(e[a])&&(o?.push(e[a]),Wn.delete(e[a]),e[a]=e[r-1],--r,--a,Wn.size===0||r===0))return Wn.clear(),r;for(let a=0;a<s;++a)if(Wn.has(e[a])&&(o?.push(e[a]),Wn.delete(e[a]),e[a]=e[r-1],--r,--a,Wn.size===0||r===0))return Wn.clear(),r;return Wn.clear(),r}function s7(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function a7(e,t){return e!=null}var bD,bee,pu,i7,Wn,_ee,Mo=L(()=>{To();bD=1.5,bee=1/bD;pu=class{constructor(){this.last=0}},i7=new pu;Wn=new Set;_ee=new $s});var l7=L(()=>{});function Q(e){return typeof Lo[e]=="function"?Lo[e]=Lo[e](globalThis):Lo[e]}var Lo,Be=L(()=>{Lo=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},Q.add=(e,t,r,n)=>((n||Lo[e]===void 0)&&(Lo[e]=t),r&&Q(e)),Q.cache=Lo,Q.add("big-integer-warning-enabled",!0),Q.add("esri-deprecation-warnings",!0),Q.add("esri-tests-disable-screenshots",!1),Q.add("esri-tests-use-full-window",!1),Q.add("esri-tests-post-to-influx",!0),Q.add("esri-cim-animations-enable-status","enabled"),Q.add("esri-cim-animations-spotlight",!1),Q.add("esri-cim-animations-freeze-time",!1),(()=>{Q.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(Q.add("host-browser",e),Q.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),Q.add("dom",e),Q("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(Q.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),Q.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),Q.add("khtml",n.includes("Konqueror")?i:void 0),Q.add("edge",parseFloat(r.split("Edge/")[1])||void 0),Q.add("opr",parseFloat(r.split("OPR/")[1])||void 0),Q.add("webkit",!Q("wp")&&!Q("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),Q.add("chrome",!Q("edge")&&!Q("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),Q.add("android",!Q("wp")&&parseFloat(r.split("Android ")[1])||void 0),Q.add("safari",!n.includes("Safari")||Q("wp")||Q("chrome")||Q("android")||Q("edge")||Q("opr")?void 0:parseFloat(n.split("Version/")[1])),Q.add("mac",n.includes("Macintosh")),!Q("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",a=parseFloat(s.replace(/_/,".").replaceAll("_",""));Q.add(o,a),Q.add("ios",a)}Q("webkit")||(!r.includes("Gecko")||Q("wp")||Q("khtml")||Q("edge")||Q.add("mozilla",i),Q("mozilla")&&Q.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&&Q.add("esri-mobile",t),r&&Q.add("esri-iPhone",r),Q.add("esri-geolocation",!!navigator.geolocation)}Q.add("esri-wasm","WebAssembly"in globalThis),Q.add("esri-performance-mode-frames-between-render",20),Q.add("esri-force-performance-mode",!1),Q.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),Q.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))}),Q.add("esri-atomics","Atomics"in globalThis),Q.add("esri-workers","Worker"in globalThis),Q.add("web-feat:cache","caches"in globalThis),Q.add("esri-workers-arraybuffer-transfer",!Q("safari")||Number(Q("safari"))>=12),Q.add("workers-pool-size",8),Q.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),Q.add("featurelayer-simplify-payload-size-factors",[1,1,4]),Q.add("featurelayer-fast-triangulation-enabled",!0),Q.add("featurelayer-animation-enabled",!0),Q.add("featurelayer-snapshot-enabled",!0),Q.add("featurelayer-snapshot-point-min-threshold",8e4),Q.add("featurelayer-snapshot-point-max-threshold",4e5),Q.add("featurelayer-snapshot-point-coverage",.1),Q.add("featurelayer-query-max-depth",4),Q.add("featurelayer-query-pausing-enabled",!1),Q.add("featurelayer-advanced-symbols",!1),Q.add("featurelayer-pbf",!0),Q.add("featurelayer-pbf-statistics",!1),Q.add("feature-layers-workers",!0),Q.add("feature-polyline-generalization-factor",1),Q.add("mapview-transitions-duration",200),Q.add("mapview-essential-goto-duration",200),Q.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),Q.add("mapserver-pbf-version-support",10.81),Q.add("mapservice-popup-identify-max-tolerance",20),Q("host-webworker")||Q("host-browser")&&(Q.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),Q.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(()=>{Q.add("esri-image-decode",!0,!0,!0)}).catch(()=>{Q.add("esri-image-decode",!1,!0,!0)})}return!1}),Q.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});function c7(e){return e?.constructor?.name==="Int8Array"}function u7(e){return e?.constructor?.name==="Uint8Array"}function d7(e){return e?.constructor?.name==="Uint8ClampedArray"}function f7(e){return e?.constructor?.name==="Int16Array"}function p7(e){return e?.constructor?.name==="Uint16Array"}function m7(e){return e?.constructor?.name==="Int32Array"}function h7(e){return e?.constructor?.name==="Uint32Array"}function g7(e){return e?.constructor?.name==="Float32Array"}function w7(e){return e?.constructor?.name==="Float64Array"}var y7=L(()=>{l7();Be()});function w1(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&w1(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function Ne(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=xD(e);if(t!=null)return t;if(_D(e))return e.clone();if(vD(e))return e.map(Ne);if(SD(e))return e.clone();let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=Ne(e[n]);return r}function _D(e){return typeof e.clone=="function"}function vD(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function SD(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function b7(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function xD(e){if(c7(e)||u7(e)||d7(e)||f7(e)||p7(e)||m7(e)||h7(e)||g7(e)||w7(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,Ne(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(Ne(r));return t}return null}function mu(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 _7(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)&&Eo(e,t):e instanceof Set?t instanceof Set&&TD(e,t):e instanceof Map?t instanceof Map&&ED(e,t):!!b7(e)&&b7(t)&&CD(e,t))}function CD(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 TD(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function ED(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 er=L(()=>{Mo();y7()});function v7(e,t,r=!1){return x7(e,t,r)}function xn(e,t){if(t!=null)return t[e]||S7(e.split("."),!1,t)}function Bi(e,t,r){let n=e.split("."),i=n.pop(),o=S7(n,!0,r);o&&i&&(o[i]=t)}function S7(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 x7(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]=Ne(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(a=>{o.includes(a)||o.push(a)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=x7(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var hi=L(()=>{er()});function C7(e){return e??""}function gi(e,t){return t?e.replaceAll(MD,typeof t=="object"?(r,n)=>C7(xn(n,t)):(r,n)=>C7(t(n))):e}function T7(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function E7(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var MD,Io=L(()=>{hi();MD=/\{([^}]+)\}/g});var qi,y1,b1,_1,zn,cl,xt,Gn,Po=L(()=>{qi=class extends Error{},y1=class extends qi{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},b1=class extends qi{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},_1=class extends qi{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},zn=class extends qi{},cl=class extends qi{constructor(t){super(`Invalid unit ${t}`)}},xt=class extends qi{},Gn=class extends qi{constructor(){super("Zone is an abstract class")}}});var ce,Bn,sn,Ao,hu,K2,gu,wu,yu,bu,_u,vu,Su,xu,Cu,Tu,Eu,Mu,Lu,Iu,eb,Pu,Au,Nu,ku,Ru=L(()=>{ce="numeric",Bn="short",sn="long",Ao={year:ce,month:ce,day:ce},hu={year:ce,month:Bn,day:ce},K2={year:ce,month:Bn,day:ce,weekday:Bn},gu={year:ce,month:sn,day:ce},wu={year:ce,month:sn,day:ce,weekday:sn},yu={hour:ce,minute:ce},bu={hour:ce,minute:ce,second:ce},_u={hour:ce,minute:ce,second:ce,timeZoneName:Bn},vu={hour:ce,minute:ce,second:ce,timeZoneName:sn},Su={hour:ce,minute:ce,hourCycle:"h23"},xu={hour:ce,minute:ce,second:ce,hourCycle:"h23"},Cu={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:Bn},Tu={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:sn},Eu={year:ce,month:ce,day:ce,hour:ce,minute:ce},Mu={year:ce,month:ce,day:ce,hour:ce,minute:ce,second:ce},Lu={year:ce,month:Bn,day:ce,hour:ce,minute:ce},Iu={year:ce,month:Bn,day:ce,hour:ce,minute:ce,second:ce},eb={year:ce,month:Bn,day:ce,weekday:Bn,hour:ce,minute:ce},Pu={year:ce,month:sn,day:ce,hour:ce,minute:ce,timeZoneName:Bn},Au={year:ce,month:sn,day:ce,hour:ce,minute:ce,second:ce,timeZoneName:Bn},Nu={year:ce,month:sn,day:ce,weekday:sn,hour:ce,minute:ce,timeZoneName:sn},ku={year:ce,month:sn,day:ce,weekday:sn,hour:ce,minute:ce,second:ce,timeZoneName:sn}});var kt,Fs=L(()=>{Po();kt=class{get type(){throw new Gn}get name(){throw new Gn}get ianaName(){return this.name}get isUniversal(){throw new Gn}offsetName(t,r){throw new Gn}formatOffset(t,r){throw new Gn}offset(t){throw new Gn}equals(t){throw new Gn}get isValid(){throw new Gn}}});var tb,No,S1=L(()=>{$r();Fs();tb=null,No=class e extends kt{static get instance(){return tb===null&&(tb=new e),tb}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return x1(t,r,n)}formatOffset(t,r){return ko(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function LD(e){return T1[e]||(T1[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"})),T1[e]}function PD(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,a,u,d,p]=n;return[s,i,o,a,u,d,p]}function AD(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],a=ID[o];o==="era"?n[a]=s:_e(a)||(n[a]=parseInt(s,10))}return n}var T1,ID,C1,Ct,Ro=L(()=>{$r();Fs();T1={};ID={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};C1={},Ct=class e extends kt{static create(t){return C1[t]||(C1[t]=new e(t)),C1[t]}static resetCache(){C1={},T1={}}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 x1(t,r,n,this.name)}formatOffset(t,r){return ko(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=LD(this.name),[i,o,s,a,u,d,p]=n.formatToParts?AD(n,r):PD(n,r);a==="BC"&&(i=-Math.abs(i)+1);let w=ul({year:i,month:o,day:s,hour:u===24?0:u,minute:d,second:p,millisecond:0}),_=+r,S=_%1e3;return _-=S>=0?S:1e3+S,(w-_)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function ND(e,t={}){let r=JSON.stringify([e,t]),n=M7[r];return n||(n=new Intl.ListFormat(e,t),M7[r]=n),n}function nb(e,t={}){let r=JSON.stringify([e,t]),n=rb[r];return n||(n=new Intl.DateTimeFormat(e,t),rb[r]=n),n}function kD(e,t={}){let r=JSON.stringify([e,t]),n=ib[r];return n||(n=new Intl.NumberFormat(e,t),ib[r]=n),n}function RD(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=ob[i];return o||(o=new Intl.RelativeTimeFormat(e,t),ob[i]=o),o}function DD(){return Du||(Du=new Intl.DateTimeFormat().resolvedOptions().locale,Du)}function OD(e){let t=L7[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,L7[e]=t}return t}function $D(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=nb(e).resolvedOptions(),i=e}catch{let u=e.substring(0,r);n=nb(u).resolvedOptions(),i=u}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function FD(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function VD(e){let t=[];for(let r=1;r<=12;r++){let n=oe.utc(2009,r,1);t.push(e(n))}return t}function UD(e){let t=[];for(let r=1;r<=7;r++){let n=oe.utc(2016,11,13+r);t.push(e(n))}return t}function E1(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function WD(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 M7,rb,ib,ob,Du,L7,sb,ab,lb,zD,Ue,$u=L(()=>{$r();I1();Do();Oo();Ro();M7={};rb={};ib={};ob={};Du=null;L7={};sb=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 a={useGrouping:!1,...n};n.padTo>0&&(a.minimumIntegerDigits=n.padTo),this.inf=kD(t,a)}}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):dl(t,3);return ht(r,this.padTo)}}},ab=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),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&Ct.create(a).valid?(i=a,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=nb(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()}},lb=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&M1()&&(this.rtf=RD(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):I7(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},zD={firstDay:1,minimalDays:4,weekend:[6,7]},Ue=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||Ve.defaultLocale,a=s||(o?"en-US":DD()),u=r||Ve.defaultNumberingSystem,d=n||Ve.defaultOutputCalendar,p=Ou(i)||Ve.defaultWeekSettings;return new e(a,u,d,p,s)}static resetCache(){Du=null,rb={},ib={},ob={}}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,a,u]=$D(t);this.locale=s,this.numberingSystem=r||a||null,this.outputCalendar=n||u||null,this.weekSettings=i,this.intl=FD(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=WD(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,Ou(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 E1(this,t,cb,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=VD(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return E1(this,t,ub,()=>{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]=UD(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return E1(this,void 0,()=>db,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[oe.utc(2016,11,13,9),oe.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return E1(this,t,fb,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[oe.utc(-40,1,1),oe.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(a=>a.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new sb(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new ab(t,this.intl,r)}relFormatter(t={}){return new lb(this.intl,this.isEnglish(),t)}listFormatter(t={}){return ND(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:L1()?OD(this.locale):zD}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 mb,He,fl=L(()=>{$r();Fs();mb=null,He=class e extends kt{static get utcInstance(){return mb===null&&(mb=new e(0)),mb}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(Vs(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ko(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ko(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return ko(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 pl,hb=L(()=>{Fs();pl=class extends kt{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 qn(e,t){let r;if(_e(e)||e===null)return t;if(e instanceof kt)return e;if(P7(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?No.instance:n==="utc"||n==="gmt"?He.utcInstance:He.parseSpecifier(n)||Ct.create(e)}else return jn(e)?He.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new pl(e)}var P1=L(()=>{Fs();Ro();fl();hb();$r();S1()});function N7(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(gb.hanidec)!==-1)t+=GD.indexOf(e[r]);else for(let i in A7){let[o,s]=A7[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function k7(){ml={}}function Cn({numberingSystem:e},t=""){let r=e||"latn";return ml[r]||(ml[r]={}),ml[r][t]||(ml[r][t]=new RegExp(`${gb[r]}${t}`)),ml[r][t]}var gb,A7,GD,ml,wb=L(()=>{gb={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"},A7={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]},GD=gb.hanidec.replace(/[\[|\]]/g,"").split("");ml={}});var R7,D7,O7,$7,F7,V7,U7,W7,Ve,Do=L(()=>{S1();Ro();$u();Oo();P1();$r();wb();R7=()=>Date.now(),D7="system",O7=null,$7=null,F7=null,V7=60,W7=null,Ve=class{static get now(){return R7}static set now(t){R7=t}static set defaultZone(t){D7=t}static get defaultZone(){return qn(D7,No.instance)}static get defaultLocale(){return O7}static set defaultLocale(t){O7=t}static get defaultNumberingSystem(){return $7}static set defaultNumberingSystem(t){$7=t}static get defaultOutputCalendar(){return F7}static set defaultOutputCalendar(t){F7=t}static get defaultWeekSettings(){return W7}static set defaultWeekSettings(t){W7=Ou(t)}static get twoDigitCutoffYear(){return V7}static set twoDigitCutoffYear(t){V7=t%100}static get throwOnInvalid(){return U7}static set throwOnInvalid(t){U7=t}static resetCaches(){Ue.resetCache(),Ct.resetCache(),oe.resetCache(),k7()}}});var tr,Fu=L(()=>{tr=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Tn(e,t){return new tr("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function A1(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 B7(e,t,r){return r+(Ws(e)?G7:z7)[t-1]}function q7(e,t){let r=Ws(e)?G7:z7,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function N1(e,t){return(e-t+7)%7+1}function Vu(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=B7(n,i,o),a=N1(A1(n,i,o),r),u=Math.floor((s-a+14-t)/7),d;return u<1?(d=n-1,u=Us(d,t,r)):u>Us(n,t,r)?(d=n+1,u=1):d=n,{weekYear:d,weekNumber:u,weekday:a,...Wu(e)}}function yb(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=N1(A1(n,1,t),r),a=$o(n),u=i*7+o-s-7+t,d;u<1?(d=n-1,u+=$o(d)):u>a?(d=n+1,u-=$o(n)):d=n;let{month:p,day:m}=q7(d,u);return{year:d,month:p,day:m,...Wu(e)}}function k1(e){let{year:t,month:r,day:n}=e,i=B7(t,r,n);return{year:t,ordinal:i,...Wu(e)}}function bb(e){let{year:t,ordinal:r}=e,{month:n,day:i}=q7(t,r);return{year:t,month:n,day:i,...Wu(e)}}function _b(e,t){if(!_e(e.localWeekday)||!_e(e.localWeekNumber)||!_e(e.localWeekYear)){if(!_e(e.weekday)||!_e(e.weekNumber)||!_e(e.weekYear))throw new zn("Cannot mix locale-based week fields with ISO-based week fields");return _e(e.localWeekday)||(e.weekday=e.localWeekday),_e(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),_e(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 j7(e,t=4,r=1){let n=Uu(e.weekYear),i=an(e.weekNumber,1,Us(e.weekYear,t,r)),o=an(e.weekday,1,7);return n?i?o?!1:Tn("weekday",e.weekday):Tn("week",e.weekNumber):Tn("weekYear",e.weekYear)}function H7(e){let t=Uu(e.year),r=an(e.ordinal,1,$o(e.year));return t?r?!1:Tn("ordinal",e.ordinal):Tn("year",e.year)}function vb(e){let t=Uu(e.year),r=an(e.month,1,12),n=an(e.day,1,hl(e.year,e.month));return t?r?n?!1:Tn("day",e.day):Tn("month",e.month):Tn("year",e.year)}function Sb(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=an(t,0,23)||t===24&&r===0&&n===0&&i===0,s=an(r,0,59),a=an(n,0,59),u=an(i,0,999);return o?s?a?u?!1:Tn("millisecond",i):Tn("second",n):Tn("minute",r):Tn("hour",t)}var z7,G7,xb=L(()=>{$r();Fu();Po();z7=[0,31,59,90,120,151,181,212,243,273,304,334],G7=[0,31,60,91,121,152,182,213,244,274,305,335]});function _e(e){return typeof e>"u"}function jn(e){return typeof e=="number"}function Uu(e){return typeof e=="number"&&e%1===0}function P7(e){return typeof e=="string"}function Y7(e){return Object.prototype.toString.call(e)==="[object Date]"}function M1(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function L1(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function J7(e){return Array.isArray(e)?e:[e]}function Cb(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 X7(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function Fo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ou(e){if(e==null)return null;if(typeof e!="object")throw new xt("Week settings must be an object");if(!an(e.firstDay,1,7)||!an(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!an(t,1,7)))throw new xt("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function an(e,t,r){return Uu(e)&&e>=t&&e<=r}function BD(e,t){return e-t*Math.floor(e/t)}function ht(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function ji(e){if(!(_e(e)||e===null||e===""))return parseInt(e,10)}function Vo(e){if(!(_e(e)||e===null||e===""))return parseFloat(e)}function zu(e){if(!(_e(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function dl(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Ws(e){return e%4===0&&(e%100!==0||e%400===0)}function $o(e){return Ws(e)?366:365}function hl(e,t){let r=BD(t-1,12)+1,n=e+(t-r)/12;return r===2?Ws(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function ul(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 Z7(e,t,r){return-N1(A1(e,1,t),r)+t-1}function Us(e,t=4,r=1){let n=Z7(e,t,r),i=Z7(e+1,t,r);return($o(e)-n+i)/7}function Gu(e){return e>99?e:e>Ve.twoDigitCutoffYear?1900+e:2e3+e}function x1(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},a=new Intl.DateTimeFormat(r,s).formatToParts(i).find(u=>u.type.toLowerCase()==="timezonename");return a?a.value:null}function Vs(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 Tb(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new xt(`Invalid unit value ${e}`);return t}function gl(e,t){let r={};for(let n in e)if(Fo(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=Tb(i)}return r}function ko(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}${ht(r,2)}:${ht(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${ht(r,2)}${ht(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Wu(e){return X7(e,["hour","minute","second","millisecond"])}var $r=L(()=>{Po();Do();xb()});function cb(e){switch(e){case"narrow":return[...jD];case"short":return[...Eb];case"long":return[...qD];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 ub(e){switch(e){case"narrow":return[...HD];case"short":return[...Lb];case"long":return[...Mb];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function fb(e){switch(e){case"narrow":return[...JD];case"short":return[...YD];case"long":return[...ZD];default:return null}}function Q7(e){return db[e.hour<12?0:1]}function K7(e,t){return ub(t)[e.weekday-1]}function e6(e,t){return cb(t)[e.month-1]}function t6(e,t){return fb(t)[e.year<0?0:1]}function I7(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 m=e==="days";switch(t){case 1:return m?"tomorrow":`next ${i[e][0]}`;case-1:return m?"yesterday":`last ${i[e][0]}`;case 0:return m?"today":`this ${i[e][0]}`;default:}}let s=Object.is(t,-0)||t<0,a=Math.abs(t),u=a===1,d=i[e],p=n?u?d[1]:d[2]||d[1]:u?i[e][0]:e;return s?`${a} ${p} ago`:`in ${a} ${p}`}var qD,Eb,jD,Mb,Lb,HD,db,ZD,YD,JD,I1=L(()=>{Ru();$r();qD=["January","February","March","April","May","June","July","August","September","October","November","December"],Eb=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],jD=["J","F","M","A","M","J","J","A","S","O","N","D"];Mb=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Lb=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],HD=["M","T","W","T","F","S","S"];db=["AM","PM"],ZD=["Before Christ","Anno Domini"],YD=["BC","AD"],JD=["B","A"]});function r6(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var XD,rr,Bu=L(()=>{I1();Ru();$r();XD={D:Ao,DD:hu,DDD:gu,DDDD:wu,t:yu,tt:bu,ttt:_u,tttt:vu,T:Su,TT:xu,TTT:Cu,TTTT:Tu,f:Eu,ff:Lu,fff:Pu,ffff:Nu,F:Mu,FF:Iu,FFF:Au,FFFF:ku},rr=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 a=t.charAt(s);a==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||a===r?n+=a:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=a,r=a)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(t){return XD[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 ht(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)=>this.loc.extract(t,_,S),s=_=>t.isOffsetFixed&&t.offset===0&&_.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,_.format):"",a=()=>n?Q7(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(_,S)=>n?e6(t,_):o(S?{month:_}:{month:_,day:"numeric"},"month"),d=(_,S)=>n?K7(t,_):o(S?{weekday:_}:{weekday:_,month:"long",day:"numeric"},"weekday"),p=_=>{let S=e.macroTokenToFormatOpts(_);return S?this.formatWithSystemDefault(t,S):_},m=_=>n?t6(t,_):o({era:_},"era"),w=_=>{switch(_){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 a();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 u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("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 u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("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 m("short");case"GG":return m("long");case"GGGGG":return m("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 p(_)}};return r6(e.parseFormat(r),w)}formatDurationFromString(t,r){let n=u=>{switch(u[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=u=>d=>{let p=n(d);return p?this.num(u.get(p),d.length):d},o=e.parseFormat(r),s=o.reduce((u,{literal:d,val:p})=>d?u:u.concat(p),[]),a=t.shiftTo(...s.map(n).filter(u=>u));return r6(o,i(a))}}});function yl(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function bl(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,a,u]=o(t,i);return[{...r,...s},a||n,u]},[{},null,1]).slice(0,2)}function _l(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 o6(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=ji(t[r+i]);return[n,null,r+i]}}function wl(e,t,r){let n=e[t];return _e(n)?r:ji(n)}function sO(e,t){return[{year:wl(e,t),month:wl(e,t+1,1),day:wl(e,t+2,1)},null,t+3]}function vl(e,t){return[{hours:wl(e,t,0),minutes:wl(e,t+1,0),seconds:wl(e,t+2,0),milliseconds:zu(e[t+3])},null,t+4]}function qu(e,t){let r=!e[t]&&!e[t+1],n=Vs(e[t+1],e[t+2]),i=r?null:He.instance(n);return[{},i,t+3]}function ju(e,t){let r=e[t]?Ct.create(e[t]):null;return[{},r,t+1]}function cO(e){let[t,r,n,i,o,s,a,u,d]=e,p=t[0]==="-",m=u&&u[0]==="-",w=(_,S=!1)=>_!==void 0&&(S||_&&p)?-_:_;return[{years:w(Vo(r)),months:w(Vo(n)),weeks:w(Vo(i)),days:w(Vo(o)),hours:w(Vo(s)),minutes:w(Vo(a)),seconds:w(Vo(u),u==="-0"),milliseconds:w(zu(d),m)}]}function Ab(e,t,r,n,i,o,s){let a={year:t.length===2?Gu(ji(t)):ji(t),month:Eb.indexOf(r)+1,day:ji(n),hour:ji(i),minute:ji(o)};return s&&(a.second=ji(s)),e&&(a.weekday=e.length>3?Mb.indexOf(e)+1:Lb.indexOf(e)+1),a}function fO(e){let[,t,r,n,i,o,s,a,u,d,p,m]=e,w=Ab(t,i,n,r,o,s,a),_;return u?_=uO[u]:d?_=0:_=Vs(p,m),[w,new He(_)]}function pO(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function n6(e){let[,t,r,n,i,o,s,a]=e;return[Ab(t,i,n,r,o,s,a),He.utcInstance]}function wO(e){let[,t,r,n,i,o,s,a]=e;return[Ab(t,a,r,n,i,o,s),He.utcInstance]}function u6(e){return _l(e,[yO,c6],[bO,SO],[_O,xO],[vO,CO])}function d6(e){return _l(pO(e),[dO,fO])}function f6(e){return _l(e,[mO,n6],[hO,n6],[gO,wO])}function p6(e){return _l(e,[lO,cO])}function m6(e){return _l(e,[aO,TO])}function h6(e){return _l(e,[EO,c6],[MO,LO])}var i6,s6,QD,Ib,a6,Pb,KD,eO,tO,rO,nO,iO,l6,oO,aO,lO,uO,dO,mO,hO,gO,yO,bO,_O,vO,c6,SO,xO,CO,TO,EO,MO,LO,Nb=L(()=>{$r();I1();fl();Ro();i6=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;s6=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,QD=`(?:${s6.source}?(?:\\[(${i6.source})\\])?)?`,Ib=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,a6=RegExp(`${Ib.source}${QD}`),Pb=RegExp(`(?:T${a6.source})?`),KD=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,eO=/(\d{4})-?W(\d\d)(?:-?(\d))?/,tO=/(\d{4})-?(\d{3})/,rO=o6("weekYear","weekNumber","weekDay"),nO=o6("year","ordinal"),iO=/(\d{4})-(\d\d)-(\d\d)/,l6=RegExp(`${Ib.source} ?(?:${s6.source}|(${i6.source}))?`),oO=RegExp(`(?: ${l6.source})?`);aO=RegExp(`^T?${Ib.source}$`),lO=/^-?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)?)?)$/;uO={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};dO=/^(?:(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)))$/;mO=/^(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$/,hO=/^(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$/,gO=/^(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})$/;yO=yl(KD,Pb),bO=yl(eO,Pb),_O=yl(tO,Pb),vO=yl(a6),c6=bl(sO,vl,qu,ju),SO=bl(rO,vl,qu,ju),xO=bl(nO,vl,qu,ju),CO=bl(vl,qu,ju);TO=bl(vl);EO=yl(iO,oO),MO=yl(l6),LO=bl(vl,qu,ju)});function Uo(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 gt(n)}function b6(e,t){let r=t.milliseconds??0;for(let n of AO.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function w6(e,t){let r=b6(e,t)<0?-1:1;zs.reduceRight((n,i)=>{if(_e(t[i]))return n;if(n){let o=t[n]*r,s=e[i][n],a=Math.floor(o/s);t[i]+=a*r,t[n]-=a*s*r}return i},null),zs.reduce((n,i)=>{if(_e(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function NO(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var g6,y6,IO,En,Sl,PO,zs,AO,gt,Hu=L(()=>{Po();Bu();Fu();$u();Nb();$r();Do();Oo();g6="Invalid Duration",y6={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}},IO={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},...y6},En=146097/400,Sl=146097/4800,PO={years:{quarters:4,months:12,weeks:En/7,days:En,hours:En*24,minutes:En*24*60,seconds:En*24*60*60,milliseconds:En*24*60*60*1e3},quarters:{months:3,weeks:En/28,days:En/4,hours:En*24/4,minutes:En*24*60/4,seconds:En*24*60*60/4,milliseconds:En*24*60*60*1e3/4},months:{weeks:Sl/7,days:Sl,hours:Sl*24,minutes:Sl*24*60,seconds:Sl*24*60*60,milliseconds:Sl*24*60*60*1e3},...y6},zs=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],AO=zs.slice(0).reverse();gt=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?PO:IO;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||Ue.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 xt(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:gl(t,e.normalizeUnit),loc:Ue.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(jn(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new xt(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=p6(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]=m6(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 xt("need to specify a reason the Duration is invalid");let n=t instanceof tr?t:new tr(t,r);if(Ve.throwOnInvalid)throw new _1(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 cl(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?rr.create(this.loc,n).formatDurationFromString(this,t):g6}toHuman(t={}){if(!this.isValid)return g6;let r=zs.map(n=>{let i=this.values[n];return _e(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+=dl(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},oe.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?b6(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 zs)(Fo(r.values,i)||Fo(this.values,i))&&(n[i]=r.get(i)+this.get(i));return Uo(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]=Tb(t(this.values[n],n));return Uo(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...gl(t,e.normalizeUnit)};return Uo(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 Uo(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return w6(this.matrix,t),Uo(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=NO(this.normalize().shiftToAll().toObject());return Uo(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 zs)if(t.indexOf(s)>=0){o=s;let a=0;for(let d in n)a+=this.matrix[d][s]*n[d],n[d]=0;jn(i[s])&&(a+=i[s]);let u=Math.trunc(a);r[s]=u,n[s]=(a*1e3-u*1e3)/1e3}else jn(i[s])&&(n[s]=i[s]);for(let s in n)n[s]!==0&&(r[o]+=s===o?n[s]:n[s]/this.matrix[o][s]);return w6(this.matrix,r),Uo(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 Uo(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 zs)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function kO(e,t){return!e||!e.isValid?Hi.invalid("missing or invalid start"):!t||!t.isValid?Hi.invalid("missing or invalid end"):t<e?Hi.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 xl,Hi,kb=L(()=>{Oo();Hu();Do();Po();Fu();Bu();Ru();xl="Invalid Interval";Hi=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 xt("need to specify a reason the Interval is invalid");let n=t instanceof tr?t:new tr(t,r);if(Ve.throwOnInvalid)throw new b1(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=Cl(t),i=Cl(r),o=kO(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=gt.fromDurationLike(r),i=Cl(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=gt.fromDurationLike(r),i=Cl(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=oe.fromISO(n,r),s=o.isValid}catch{s=!1}let a,u;try{a=oe.fromISO(i,r),u=a.isValid}catch{u=!1}if(s&&u)return e.fromDateTimes(o,a);if(s){let d=gt.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(u){let d=gt.fromISO(n,r);if(d.isValid)return e.before(a,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(Cl).filter(s=>this.contains(s)).sort((s,a)=>s.toMillis()-a.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,a=+s>+this.e?this.e:s;n.push(e.fromDateTimes(i,a)),i=a,o+=1}return n}splitBy(t){let r=gt.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 a=this.start.plus(r.mapUnits(u=>u*i));o=+a>+this.e?this.e:a,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(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),s=Array.prototype.concat(...o),a=s.sort((u,d)=>u.time-d.time);for(let u of a)n+=u.type==="s"?1:-1,n===1?r=u.time:(r&&+r!=+u.time&&i.push(e.fromDateTimes(r,u.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()})`:xl}[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=Ao,r={}){return this.isValid?rr.create(this.s.loc.clone(r),t).formatInterval(this):xl}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:xl}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:xl}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:xl}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:xl}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):gt.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var Zi,Rb=L(()=>{Oo();Do();$u();Ro();P1();$r();Zi=class{static hasDST(t=Ve.defaultZone){let r=oe.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return Ct.isValidZone(t)}static normalizeZone(t){return qn(t,Ve.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||Ue.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||Ue.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||Ue.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Ue.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Ue.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Ue.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Ue.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Ue.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return Ue.create(r,null,"gregory").eras(t)}static features(){return{relative:M1(),localeWeek:L1()}}}});function _6(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(gt.fromMillis(n).as("days"))}function RO(e,t,r){let n=[["years",(u,d)=>d.year-u.year],["quarters",(u,d)=>d.quarter-u.quarter+(d.year-u.year)*4],["months",(u,d)=>d.month-u.month+(d.year-u.year)*12],["weeks",(u,d)=>{let p=_6(u,d);return(p-p%7)/7}],["days",_6]],i={},o=e,s,a;for(let[u,d]of n)r.indexOf(u)>=0&&(s=u,i[u]=d(e,t),a=o.plus(i),a>t?(i[u]--,e=o.plus(i),e>t&&(a=e,i[u]--,e=o.plus(i))):e=a);return[e,i,a,s]}function v6(e,t,r,n){let[i,o,s,a]=RO(e,t,r),u=t-i,d=r.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);d.length===0&&(s<t&&(s=i.plus({[a]:1})),s!==i&&(o[a]=(o[a]||0)+u/(s-i)));let p=gt.fromObject(o,n);return d.length>0?gt.fromMillis(u,n).shiftTo(...d).plus(p):p}var S6=L(()=>{Hu()});function qe(e,t=r=>r){return{regex:e,deser:([r])=>t(N7(r))}}function $O(e){return e.replace(/\./g,"\\.?").replace(E6,T6)}function x6(e){return e.replace(/\./g,"").replace(E6," ").toLowerCase()}function Hn(e,t){return e===null?null:{regex:RegExp(e.map($O).join("|")),deser:([r])=>e.findIndex(n=>x6(r)===x6(n))+t}}function C6(e,t){return{regex:e,deser:([,r,n])=>Vs(r,n),groups:t}}function R1(e){return{regex:e,deser:([t])=>t}}function FO(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function VO(e,t){let r=Cn(t),n=Cn(t,"{2}"),i=Cn(t,"{3}"),o=Cn(t,"{4}"),s=Cn(t,"{6}"),a=Cn(t,"{1,2}"),u=Cn(t,"{1,3}"),d=Cn(t,"{1,6}"),p=Cn(t,"{1,9}"),m=Cn(t,"{2,4}"),w=Cn(t,"{4,6}"),_=M=>({regex:RegExp(FO(M.val)),deser:([k])=>k,literal:!0}),C=(M=>{if(e.literal)return _(M);switch(M.val){case"G":return Hn(t.eras("short"),0);case"GG":return Hn(t.eras("long"),0);case"y":return qe(d);case"yy":return qe(m,Gu);case"yyyy":return qe(o);case"yyyyy":return qe(w);case"yyyyyy":return qe(s);case"M":return qe(a);case"MM":return qe(n);case"MMM":return Hn(t.months("short",!0),1);case"MMMM":return Hn(t.months("long",!0),1);case"L":return qe(a);case"LL":return qe(n);case"LLL":return Hn(t.months("short",!1),1);case"LLLL":return Hn(t.months("long",!1),1);case"d":return qe(a);case"dd":return qe(n);case"o":return qe(u);case"ooo":return qe(i);case"HH":return qe(n);case"H":return qe(a);case"hh":return qe(n);case"h":return qe(a);case"mm":return qe(n);case"m":return qe(a);case"q":return qe(a);case"qq":return qe(n);case"s":return qe(a);case"ss":return qe(n);case"S":return qe(u);case"SSS":return qe(i);case"u":return R1(p);case"uu":return R1(a);case"uuu":return qe(r);case"a":return Hn(t.meridiems(),0);case"kkkk":return qe(o);case"kk":return qe(m,Gu);case"W":return qe(a);case"WW":return qe(n);case"E":case"c":return qe(r);case"EEE":return Hn(t.weekdays("short",!1),1);case"EEEE":return Hn(t.weekdays("long",!1),1);case"ccc":return Hn(t.weekdays("short",!0),1);case"cccc":return Hn(t.weekdays("long",!0),1);case"Z":case"ZZ":return C6(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return C6(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return R1(/[a-z_+-/]{1,256}?/i);case" ":return R1(/[^\S\n\r]/);default:return _(M)}})(e)||{invalidReason:DO};return C.token=e,C}function WO(e,t,r){let{type:n,value:i}=e;if(n==="literal"){let u=/^\s+$/.test(i);return{literal:!u,val:u?" ":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 a=UO[s];if(typeof a=="object"&&(a=a[o]),a)return{literal:!1,val:a}}function zO(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function GO(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(Fo(r,s)){let a=r[s],u=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(n.slice(o,o+u))),o+=u}return[n,i]}else return[n,{}]}function BO(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 _e(e.z)||(r=Ct.create(e.z)),_e(e.Z)||(r||(r=new He(e.Z)),n=e.Z),_e(e.q)||(e.M=(e.q-1)*3+1),_e(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),_e(e.u)||(e.S=zu(e.u)),[Object.keys(e).reduce((o,s)=>{let a=t(s);return a&&(o[a]=e[s]),o},{}),r,n]}function qO(){return Db||(Db=oe.fromMillis(1555555555555)),Db}function jO(e,t){if(e.literal)return e;let r=rr.macroTokenToFormatOpts(e.val),n=Fb(r,t);return n==null||n.includes(void 0)?e:n}function Ob(e,t){return Array.prototype.concat(...e.map(r=>jO(r,t)))}function $b(e,t,r){return new Zu(e,r).explainFromTokens(t)}function M6(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=$b(e,t,r);return[n,i,o,s]}function Fb(e,t){if(!e)return null;let n=rr.create(t,e).dtFormatter(qO()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>WO(s,e,o))}var DO,OO,T6,E6,UO,Db,Zu,L6=L(()=>{$r();Bu();fl();Ro();Oo();wb();Po();DO="missing Intl.DateTimeFormat.formatToParts support";OO="\xA0",T6=`[ ${OO}]`,E6=new RegExp(T6,"g");UO={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"}};Db=null;Zu=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=Ob(rr.parseFormat(r),t),this.units=this.tokens.map(n=>VO(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=zO(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=GO(t,this.regex,this.handlers),[i,o,s]=n?BO(n):[null,null,void 0];if(Fo(n,"a")&&Fo(n,"H"))throw new zn("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 Yu(e){return new tr("unsupported zone",`the zone "${e.name}" is not supported`)}function Ub(e){return e.weekData===null&&(e.weekData=Vu(e.c)),e.weekData}function Wb(e){return e.localWeekData===null&&(e.localWeekData=Vu(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Gs(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new oe({...r,...t,old:r})}function O6(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 D1(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 $1(e,t,r){return O6(ul(e),t,r)}function P6(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,hl(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=gt.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"),a=ul(o),[u,d]=O6(a,r,e.zone);return s!==0&&(u+=s,d=e.zone.offset(u)),{ts:u,o:d}}function Tl(e,t,r,n,i,o){let{setZone:s,zone:a}=r;if(e&&Object.keys(e).length!==0||t){let u=t||a,d=oe.fromObject(e,{...r,zone:u,specificOffset:o});return s?d:d.setZone(a)}else return oe.invalid(new tr("unparsable",`the input "${i}" can't be parsed as ${n}`))}function O1(e,t,r=!0){return e.isValid?rr.create(Ue.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function zb(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=ht(e.c.year,r?6:4),t?(n+="-",n+=ht(e.c.month),n+="-",n+=ht(e.c.day)):(n+=ht(e.c.month),n+=ht(e.c.day)),n}function A6(e,t,r,n,i,o){let s=ht(e.c.hour);return t?(s+=":",s+=ht(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=ht(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=ht(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=ht(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=ht(Math.trunc(-e.o/60)),s+=":",s+=ht(Math.trunc(-e.o%60))):(s+="+",s+=ht(Math.trunc(e.o/60)),s+=":",s+=ht(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function XO(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 cl(e);return t}function N6(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return XO(e)}}function QO(e){return V1[e]||(F1===void 0&&(F1=Ve.now()),V1[e]=e.offset(F1)),V1[e]}function k6(e,t){let r=qn(t.zone,Ve.defaultZone);if(!r.isValid)return oe.invalid(Yu(r));let n=Ue.fromObject(t),i,o;if(_e(e.year))i=Ve.now();else{for(let u of F6)_e(e[u])&&(e[u]=$6[u]);let s=vb(e)||Sb(e);if(s)return oe.invalid(s);let a=QO(r);[i,o]=$1(e,a,r)}return new oe({ts:i,zone:r,loc:n,o})}function R6(e,t,r){let n=_e(r.round)?!0:r.round,i=(s,a)=>(s=dl(s,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(s,a)),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 a=o(s);if(Math.abs(a)>=1)return i(a,s)}return i(e>t?-0:0,r.units[r.units.length-1])}function D6(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 Cl(e){if(oe.isDateTime(e))return e;if(e&&e.valueOf&&jn(e.valueOf()))return oe.fromJSDate(e);if(e&&typeof e=="object")return oe.fromObject(e);throw new xt(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var Vb,I6,$6,HO,ZO,F6,YO,JO,F1,V1,oe,Oo=L(()=>{Hu();kb();Do();Rb();Bu();fl();$u();$r();P1();S6();Nb();L6();xb();Ru();Po();Fu();Vb="Invalid DateTime",I6=864e13;$6={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},HO={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ZO={ordinal:1,hour:0,minute:0,second:0,millisecond:0},F6=["year","month","day","hour","minute","second","millisecond"],YO=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],JO=["year","ordinal","hour","minute","second","millisecond"];V1={},oe=class e{constructor(t){let r=t.zone||Ve.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new tr("invalid input"):null)||(r.isValid?null:Yu(r));this.ts=_e(t.ts)?Ve.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 a=jn(t.o)&&!t.old?t.o:r.offset(this.ts);i=D1(this.ts,a),n=Number.isNaN(i.year)?new tr("invalid input"):null,i=n?null:i,o=n?null:a}this._zone=r,this.loc=t.loc||Ue.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]=D6(arguments),[n,i,o,s,a,u,d]=r;return k6({year:n,month:i,day:o,hour:s,minute:a,second:u,millisecond:d},t)}static utc(){let[t,r]=D6(arguments),[n,i,o,s,a,u,d]=r;return t.zone=He.utcInstance,k6({year:n,month:i,day:o,hour:s,minute:a,second:u,millisecond:d},t)}static fromJSDate(t,r={}){let n=Y7(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=qn(r.zone,Ve.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:Ue.fromObject(r)}):e.invalid(Yu(i))}static fromMillis(t,r={}){if(jn(t))return t<-I6||t>I6?e.invalid("Timestamp out of range"):new e({ts:t,zone:qn(r.zone,Ve.defaultZone),loc:Ue.fromObject(r)});throw new xt(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(jn(t))return new e({ts:t*1e3,zone:qn(r.zone,Ve.defaultZone),loc:Ue.fromObject(r)});throw new xt("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=qn(r.zone,Ve.defaultZone);if(!n.isValid)return e.invalid(Yu(n));let i=Ue.fromObject(r),o=gl(t,N6),{minDaysInFirstWeek:s,startOfWeek:a}=_b(o,i),u=Ve.now(),d=_e(r.specificOffset)?n.offset(u):r.specificOffset,p=!_e(o.ordinal),m=!_e(o.year),w=!_e(o.month)||!_e(o.day),_=m||w,S=o.weekYear||o.weekNumber;if((_||p)&&S)throw new zn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(w&&p)throw new zn("Can't mix ordinal dates with month/day");let C=S||o.weekday&&!_,M,k,I=D1(u,d);C?(M=YO,k=HO,I=Vu(I,s,a)):p?(M=JO,k=ZO,I=k1(I)):(M=F6,k=$6);let N=!1;for(let be of M){let de=o[be];_e(de)?N?o[be]=k[be]:o[be]=I[be]:N=!0}let V=C?j7(o,s,a):p?H7(o):vb(o),Y=V||Sb(o);if(Y)return e.invalid(Y);let re=C?yb(o,s,a):p?bb(o):o,[te,ie]=$1(re,d,n),ge=new e({ts:te,zone:n,o:ie,loc:i});return o.weekday&&_&&t.weekday!==ge.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${ge.toISO()}`):ge.isValid?ge:e.invalid(ge.invalid)}static fromISO(t,r={}){let[n,i]=u6(t);return Tl(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=d6(t);return Tl(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=f6(t);return Tl(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(_e(t)||_e(r))throw new xt("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=Ue.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[a,u,d,p]=M6(s,t,r);return p?e.invalid(p):Tl(a,u,n,`format ${r}`,t,d)}static fromString(t,r,n={}){return e.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=h6(t);return Tl(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new xt("need to specify a reason the DateTime is invalid");let n=t instanceof tr?t:new tr(t,r);if(Ve.throwOnInvalid)throw new y1(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=Fb(t,Ue.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return Ob(rr.parseFormat(t),Ue.fromObject(r)).map(i=>i.val).join("")}static resetCache(){F1=void 0,V1={}}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?Ub(this).weekYear:NaN}get weekNumber(){return this.isValid?Ub(this).weekNumber:NaN}get weekday(){return this.isValid?Ub(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Wb(this).weekday:NaN}get localWeekNumber(){return this.isValid?Wb(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Wb(this).weekYear:NaN}get ordinal(){return this.isValid?k1(this.c).ordinal:NaN}get monthShort(){return this.isValid?Zi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Zi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Zi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Zi.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=ul(this.c),i=this.zone.offset(n-t),o=this.zone.offset(n+t),s=this.zone.offset(n-i*r),a=this.zone.offset(n-o*r);if(s===a)return[this];let u=n-s*r,d=n-a*r,p=D1(u,s),m=D1(d,a);return p.hour===m.hour&&p.minute===m.minute&&p.second===m.second&&p.millisecond===m.millisecond?[Gs(this,{ts:u}),Gs(this,{ts:d})]:[this]}get isInLeapYear(){return Ws(this.year)}get daysInMonth(){return hl(this.year,this.month)}get daysInYear(){return this.isValid?$o(this.year):NaN}get weeksInWeekYear(){return this.isValid?Us(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Us(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=rr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(He.instance(t),r)}toLocal(){return this.setZone(Ve.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=qn(t,Ve.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]=$1(s,o,t)}return Gs(this,{ts:i,zone:t})}else return e.invalid(Yu(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return Gs(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=gl(t,N6),{minDaysInFirstWeek:n,startOfWeek:i}=_b(r,this.loc),o=!_e(r.weekYear)||!_e(r.weekNumber)||!_e(r.weekday),s=!_e(r.ordinal),a=!_e(r.year),u=!_e(r.month)||!_e(r.day),d=a||u,p=r.weekYear||r.weekNumber;if((d||s)&&p)throw new zn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&s)throw new zn("Can't mix ordinal dates with month/day");let m;o?m=yb({...Vu(this.c,n,i),...r},n,i):_e(r.ordinal)?(m={...this.toObject(),...r},_e(r.day)&&(m.day=Math.min(hl(m.year,m.month),m.day))):m=bb({...k1(this.c),...r});let[w,_]=$1(m,this.o,this.zone);return Gs(this,{ts:w,o:_})}plus(t){if(!this.isValid)return this;let r=gt.fromDurationLike(t);return Gs(this,P6(this,r))}minus(t){if(!this.isValid)return this;let r=gt.fromDurationLike(t).negate();return Gs(this,P6(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=gt.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?rr.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):Vb}toLocaleString(t=Ao,r={}){return this.isValid?rr.create(this.loc.clone(r),t).formatDateTime(this):Vb}toLocaleParts(t={}){return this.isValid?rr.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",a=zb(this,s);return a+="T",a+=A6(this,s,r,n,i,o),a}toISODate({format:t="extended"}={}){return this.isValid?zb(this,t==="extended"):null}toISOWeekDate(){return O1(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":"")+A6(this,s==="extended",r,t,n,o):null}toRFC2822(){return O1(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return O1(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?zb(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")),O1(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Vb}[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 gt.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=J7(r).map(gt.normalizeUnit),s=t.valueOf()>this.valueOf(),a=s?this:t,u=s?t:this,d=v6(a,u,o,i);return s?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(e.now(),t,r)}until(t){return this.isValid?Hi.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),R6(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?R6(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 xt("min requires all arguments be DateTimes");return Cb(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new xt("max requires all arguments be DateTimes");return Cb(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=Ue.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return $b(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=Ue.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Zu(o,t)}static fromFormatParser(t,r,n={}){if(_e(t)||_e(r))throw new xt("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=Ue.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new xt(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:a,zone:u,specificOffset:d,invalidReason:p}=r.explainFromTokens(t);return p?e.invalid(p):Tl(a,u,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return Ao}static get DATE_MED(){return hu}static get DATE_MED_WITH_WEEKDAY(){return K2}static get DATE_FULL(){return gu}static get DATE_HUGE(){return wu}static get TIME_SIMPLE(){return yu}static get TIME_WITH_SECONDS(){return bu}static get TIME_WITH_SHORT_OFFSET(){return _u}static get TIME_WITH_LONG_OFFSET(){return vu}static get TIME_24_SIMPLE(){return Su}static get TIME_24_WITH_SECONDS(){return xu}static get TIME_24_WITH_SHORT_OFFSET(){return Cu}static get TIME_24_WITH_LONG_OFFSET(){return Tu}static get DATETIME_SHORT(){return Eu}static get DATETIME_SHORT_WITH_SECONDS(){return Mu}static get DATETIME_MED(){return Lu}static get DATETIME_MED_WITH_SECONDS(){return Iu}static get DATETIME_MED_WITH_WEEKDAY(){return eb}static get DATETIME_FULL(){return Pu}static get DATETIME_FULL_WITH_SECONDS(){return Au}static get DATETIME_HUGE(){return Nu}static get DATETIME_HUGE_WITH_SECONDS(){return ku}}});var Fr=L(()=>{Oo();Hu();kb();Rb();Fs();fl();Ro();hb();S1();Do()});function Bs(e){return e instanceof kt?e===qt.instance:e?.toString().toLowerCase()==="unknown"}function U1(e){return Bs(e)?qt.instance:e}var qt,Ju=L(()=>{Fr();qt=class{};qt.instance=new Ct("Etc/UTC")});function El(e,t,r){return e<t?e-t:e>r?e-r:0}function Ml(e,t,r){return e<t?t:e>r?r:e}function Zn(e,t=!0){if(e instanceof kt)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return qt.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=He.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=Ct.create(e);if(!r.isValid){if(t)throw new Gb(W1.TimeZoneNotRecognized);return null}return r}var W1,KO,Gb,qs,Bb=L(()=>{Io();Ju();Fr();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(W1||(W1={}));KO={[W1.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},Gb=class e extends Error{constructor(t,r){super(gi(KO[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};qs=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,a=0,u){if(isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(a))return null;let d=oe.local(t,r).daysInMonth,p=oe.fromObject({day:Ml(n,1,d),year:t,month:Ml(r,1,12),hour:Ml(i,0,23),minute:Ml(o,0,59),second:Ml(s,0,59),millisecond:Ml(a,0,999)},{zone:Zn(u)});return p=p.plus({months:El(r,1,12),days:El(n,1,d),hours:El(i,0,23),minutes:El(o,0,59),seconds:El(s,0,59),milliseconds:El(a,0,999)}),new e(p)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=Zn(r);return t.isUnknownTimeZone||n===qt.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(oe.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Zn(r);return new e(oe.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(oe.fromMillis(t,{zone:qt.instance}))}static unknownDateJSToArcadeDate(t){return new e(oe.fromMillis(t.getTime(),{zone:qt.instance}))}static epochToArcadeDate(t,r="system"){let n=Zn(r);return new e(oe.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=Zn(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=Zn(r);return t.zone===qt.instance||n===qt.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=Zn(t);return new e(oe.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(oe.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===qt.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=oe.fromISO(t,{setZone:!0});return new e(r)}}});var F,e$,z,Yn,Hre,Wo=L(()=>{Io();(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"})(F||(F={}));e$={[F.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[F.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[F.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[F.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[F.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[F.UnsupportedOperator]:"Unsupported operator - {operator}",[F.UnsupportedSyntax]:"Unsupported syntax - {node}",[F.UnsupportedSqlFunction]:"Sql function not found = {function}",[F.InvalidDataType]:"Invalid sql data type",[F.InvalidDate]:"Invalid date encountered",[F.InvalidOperator]:"Invalid operator encountered",[F.InvalidTime]:"Invalid time encountered",[F.IllegalInterval]:"Illegal interval",[F.FunctionNotRecognized]:"Function not recognized",[F.InvalidTimeStamp]:"Invalid timestamp encountered",[F.InvalidParameterCount]:"Invalid parameter count for call to {name}",[F.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[F.YearMonthIntervals]:"Year-Month Intervals not supported",[F.CannotCastValue]:"Cannot cast value to the required data type"},z=class e extends Error{constructor(t,r){super(gi(e$[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};(function(e){e.NeverReach="NeverReach",e.NotImplemented="NotImplemented",e.Cancelled="Cancelled",e.InvalidStatResponse="InvalidStatResponse",e.InvalidRequest="InvalidRequest",e.RequestFailed="RequestFailed",e.MissingFeatures="MissingFeatures",e.AggregationFieldNotFound="AggregationFieldNotFound",e.DataElementsNotFound="DataElementsNotFound"})(Yn||(Yn={}));Hre={[Yn.Cancelled]:"Cancelled",[Yn.InvalidStatResponse]:"Invalid statistics response from service",[Yn.InvalidRequest]:"Invalid request",[Yn.RequestFailed]:"Request failed - {reason}",[Yn.MissingFeatures]:"Missing features",[Yn.AggregationFieldNotFound]:"Aggregation field not found",[Yn.DataElementsNotFound]:"Data elements not found on service",[Yn.NeverReach]:"Encountered unreachable logic",[Yn.NotImplemented]:"Not implemented"}});function je(e){return e?{remove(){e&&(e(),e=void 0)}}:t$}function r$(e){e.forEach(t=>t?.remove())}function js(e){return je(()=>r$(e))}var t$,Yr=L(()=>{t$={remove:()=>{}}});function V6(){return i$??globalThis.navigator?.language??"en"}function ln(){return Xu===void 0&&(Xu=V6()),Xu}function qb(e){return z1.push(e),je(()=>z1.splice(z1.indexOf(e),1))}function Ll(e){return G1.push(e),je(()=>G1.splice(G1.indexOf(e),1))}function o$(){let e=n$??V6();Xu!==e&&([...G1].forEach(t=>t(e)),Xu=e,[...z1].forEach(t=>t(e)))}var n$,Xu,i$,z1,G1,Yi=L(()=>{Yr();i$=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;z1=[];G1=[];globalThis.addEventListener?.("languagechange",o$)});function U6(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 jt,Qu=L(()=>{Bb();Yi();Fr();jt=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 oe.fromObject({day:this.day,month:this.month,year:this.year},{zone:Zn(t)})}toDateTimeLuxon(t){return oe.fromObject({day:this.day,month:this.month,year:this.year},{zone:Zn(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=U6(t)),!t)return"";let n=this.toDateTime("unknown");return qs.dateTimeToArcadeDate(n).toFormat(t,{locale:ln(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return qs.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 oe.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=oe.fromMillis(t,{zone:He.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=oe.fromSeconds(t,{zone:He.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=U6(r))&&n.push(r);else if(r===null||r===""){let i=oe.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=oe.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=oe.fromJSDate(new Date).setZone(Zn(t));return new e(r.year,r.month,r.day)}}});function W6(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var hr,Ku=L(()=>{Fr();hr=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=oe.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return W6(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return W6(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(oe.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,a=0,u=!1,d=0,p=0){let m=`${t.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,w="";s<10&&(w="0");let _=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${w+s.toString()}`;a!==0&&(_+="."+a.toString().padStart(3,"0"));let S=`${u?"-":"+"}${d.toString().padStart(2,"0")}:${p.toString().padStart(2,"0")}`;return new e(m+"T"+_+S)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let t=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return t&&(t=t.replace(".000","")),t}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(t){let r=this.toDateTime().plus(t);return e.fromDateTime(r)}}});function O(e,t,r,n){var i,o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(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 nr=L(()=>{});var B1,jb=L(()=>{B1="20240808"});var Qe,Hs=L(()=>{Be();hi();jb();Qe={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&&(v7(Qe,globalThis.esriConfig,!0),delete Qe.has),!Qe.assetsPath){{let e="4.31.0";Qe.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${B1}/assets`}Qe.defaultAssetsPath=Qe.assetsPath}});function s$(e,t,...r){console[e](`[${t}]`,...r)}function a$(...e){return E7(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var z6,Me,Ze=L(()=>{Hs();Be();Io();z6={info:0,warn:1,error:2,none:3},Me=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=a$(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 Qe.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",s$)}_matchLevel(t){let r=Qe.log.level||"warn";return z6[this._parentWithMember("level",r)]<=z6[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};Me._loggers=new Map,Me._tickCounter=0,Me._tickCounterScheduled=!1,Me._throttlingDisabled=!1});function q1(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var Hb=L(()=>{});function l$(e){return e==null?e:new Date(e)}function c$(e){return e==null?e:!!e}function u$(e){return e==null?e:e.toString()}function Xb(e){return e==null?e:(e=parseFloat(e),isNaN(e)?0:e)}function d$(e){return e==null?e:Math.round(parseFloat(e))}function f$(e){return null}function B6(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function j1(e,t){return t!=null&&e&&!(t instanceof e)}function q6(e){return e&&"isCollection"in e}function G6(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function p$(e,t){if(!t?.constructor||!q6(t.constructor))return Zb(e,t)?t:new e(t);let r=G6(e.prototype.itemType),n=G6(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(Zb(e,t),t):new e(t):t}function Zb(e,t){return!!B6(t)&&(Il().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+H1(e)+"'"),!0)}function m$(e,t){return t==null?t:q6(e)?p$(e,t):j1(e,t)?Zb(e,t)?t:new e(t):t}function H1(e){return e?.prototype?.declaredClass||"unknown"}function g$(e){switch(e){case Number:return Xb;case wi:return d$;case Boolean:return c$;case String:return u$;case Date:return l$;case td:return f$;default:return q1(h$,e,()=>m$.bind(null,e))}}function Mn(e,t){let r=g$(e);return arguments.length===1?r:r(t)}function Pl(e,t,r){return arguments.length===1?Pl.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function j6(e,t){return arguments.length===1?Pl(r=>Mn(e,r)):Pl(r=>Mn(e,r),t)}function H6(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>H6(e,t-1,n)):e(r)}function ed(e,t,r){if(arguments.length===2)return o=>ed(e,t,o);if(!r)return r;r=H6(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 Z6(e,t,r){return arguments.length===2?ed(n=>Mn(e,n),t):ed(n=>Mn(e,n),t,r)}function Z1(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function Y1(e,t){if(arguments.length===2)return Y1(e).call(null,t);let r=new Set,n=e.filter(a=>typeof a!="function"),i=e.filter(a=>typeof a=="function");for(let a of e)typeof a!="string"&&typeof a!="number"||r.add(a);let o=null,s=null;return(a,u)=>{if(a==null)return a;let d=typeof a,p=d==="string"||d==="number";return p&&(r.has(a)||i.some(m=>d==="string"&&m===String||d==="number"&&m===Number))||d==="object"&&i.some(m=>!j1(a,m))?a:(p&&n.length?(o||(o=n.map(m=>typeof m=="string"?`'${m}'`:`${m}`).join(", ")),Il().error("Accessor#set",`'${a}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof a=="object"&&i.length?(s||(s=i.map(m=>H1(m)).join(", ")),Il().error("Accessor#set",`'${a}' is not a valid value for this property, value must be one of ${s}`)):Il().error("Accessor#set",`'${a}' is not a valid value for this property`),u&&(u.valid=!1),null)}}function zo(e,t){if(arguments.length===2)return zo(e).call(null,t);let r={},n=[],i=[];for(let u in e.typeMap){let d=e.typeMap[u];r[u]=Mn(d),n.push(H1(d)),i.push(u)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,a=typeof e.key=="string"?u=>u[e.key]:e.key;return u=>{if(e.base&&!j1(e.base,u)||u==null)return u;let d=a(u)||e.defaultKeyValue,p=r[d];if(!p)return Il().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(!j1(e.typeMap[d],u))return u;if(typeof e.key=="string"&&!B6(u)){let m={};for(let w in u)w!==e.key&&(m[w]=u[w]);return p(m)}return p(u)}}function Y6(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function Qb(e){switch(e.type){case"native":return Mn(e.value);case"array":return Pl(Qb(e.value));case"one-of":return w$(e);default:return null}}function w$(e){let t=null;return(r,n)=>Jb(r,e)?r:(t==null&&(t=Yb(e)),Il().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function Yb(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case wi:return"integer";case Date:return"date";case td:return"null";default:return H1(e.value)}case"array":return`array of ${Yb(e.value)}`;case"one-of":{let t=e.values.map(r=>Yb(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function Jb(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case wi:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case td:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!Jb(r,t.value));case"one-of":return t.values.some(r=>Jb(e,r))}}var Il,h$,wi,td,Go=L(()=>{Be();Ze();Hb();Il=()=>Me.getLogger("esri.core.accessorSupport.ensureTypes");h$=new WeakMap;wi=class{},td=class{}});function yi(e){return e.__accessor__??null}function X6(e,t){return e?.metadata?.[t]!=null}function Al(e,t,r){return r?J1(e,t,{policy:r,path:""}):J1(e,t,null)}function J1(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,a="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,a=r.policy(s)),a==="replace"||a==="replace-arrays"&&Array.isArray(n[o]))return n[o]=t[o],n;if(n[o]===void 0)return n[o]=Ne(t[o]),n;let u=n[o],d=t[o];if(u===d)return n;if(Array.isArray(d)||Array.isArray(n))u=u?Array.isArray(u)?n[o]=u.slice():n[o]=[u]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(p=>{u.includes(p)||u.push(p)}));else if(d&&typeof d=="object")if(r){let p=r.path;r.path=s,n[o]=J1(u,d,r),r.path=p}else n[o]=J1(u,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function X1(e){return Array.isArray(e)?e:e.split(".")}function J6(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function y$(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...J6(r));return t}return J6(e)}function Kb(e,t,r,n){let i=y$(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return js(o)}return n(e,i[0],r)}var Bo=L(()=>{Yr();er()});function Q6(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=yi(t);return X6(n,r)?n.get(r):t[r]}function K6(e,t,r){if(e==null)return e;let n=Q6(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:K6(n,t,r+1)}function Zs(e,t,r=0){return typeof t!="string"||t.includes(".")?K6(e,X1(t),r):Q6(t,e)}function Jn(e,t){return Zs(e,t)}function e_(e,t){return Zs(t,e)!==void 0}var Ys=L(()=>{Bo()});function qo(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]=Ne(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 Nl(e,t){let r=qo(e),n=r[t];return n||(n=r[t]={}),n}function e8(e,t){return Al(e,t,_$)}function _$(e){return b$.test(e)?"replace":"merge"}var b$,kl=L(()=>{er();Bo();b$=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function v$(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(xn(n,t)??"").toString())}var Rl,t_=L(()=>{hi();Rl=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&v$(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var ye,Tr=L(()=>{er();Ze();t_();ye=class e extends Rl{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 Ne(r)}catch{return"[object]"}}))}}catch(t){throw Me.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)}};ye.prototype.type="error"});function Dl(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Dl(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Dl(Jn(e,i),o,r)}let n=e.__accessor__;n!=null&&S$(t,n),e[t]=r}}function S$(e,t){if(Q("esri-unknown-property-errors")&&!x$(e,t))throw new ye("set:unknown-property",C$(e,t))}function x$(e,t){return t.metadata[e]!=null}function C$(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var r_=L(()=>{Tr();Be();Ze();Ys()});function H(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=Nl(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&&Me.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 u=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,p;i.dependsOn=[u],i.get=function(){let m=Jn(this,u);if(typeof m=="function"){p||(p=u.split(".").slice(0,-1).join("."));let w=Jn(this,p);w&&(m=m.bind(w))}return m},i.readOnly||(i.set=d?function(m){this._override(r,m)}:function(m){Dl(this,u,m)})}let s=e.type,a=e.types;i.cast||(s?i.cast=T$(s):a&&(Array.isArray(a)?i.cast=Pl(zo(a[0])):i.cast=zo(a))),e8(i,e),e.range&&(i.cast=E$(i.cast,e.range))}}function Q1(e,t,r){let n=Nl(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 T$(e){let t=0,r=e;if(Y6(e))return Qb(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(Z1(n))return t===0?Y1(n):ed(Y1(n),t);if(t===1)return j6(n);if(t>1)return Z6(n,t);let i=e;return i.from?i.from:Mn(i)}function E$(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}}var ir=L(()=>{Ze();Go();Ys();kl();r_()});var K1,n_=L(()=>{K1=Symbol("Accessor-beforeDestroy")});var or,rd=L(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(or||(or={}))});var $e,e0=L(()=>{(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"})($e||($e={}))});function Ce(e){id.onObservableAccessed(e)}function Xn(e,t,r){if(t0)return i_(e,t,r);let n=null;return n8(e),n=t.call(r),i8(),n}function r8(e,t){return Xn(n0,e,t)}function i_(e,t,r){let n=t0;t0=!0,n8(e);let i=null;try{i=t.call(r)}catch(o){r0&&Me.getLogger("esri.core.accessorSupport.tracking").error(o)}return i8(),t0=n,i}function n8(e){id=e,nd.push(e)}function i8(){let e=nd.length;if(e>1){let t=nd.pop();id=nd[e-2],t.onTrackingEnd()}else if(e===1){let t=nd.pop();id=n0,t.onTrackingEnd()}else id=n0}function o_(e,t){if(t.flags&$e.DepTrackingInitialized)return;let r=r0;r0=!1,t.flags&$e.AutoTracked?i_(t,t.metadata.get,e):s_(e,t),r0=r}function s_(e,t){t.flags&$e.ExplicitlyTracking||(t.flags|=$e.ExplicitlyTracking,i_(t,()=>{let r=t.metadata.dependsOn||M$;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=X1(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=t8(s,i[o],o!==i.length-1)}else t8(e,n,!1)}),t.flags&=~$e.ExplicitlyTracking)}function t8(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=yi(e);if(i){let o=i.propertiesByName.get(n);o&&(Ce(o),o_(e,o))}return r?e[n]:void 0}var n0,nd,id,t0,r0,M$,Js=L(()=>{Be();Ze();Bo();e0();n0={onObservableAccessed:()=>{},onTrackingEnd:()=>{}},nd=[],id=n0;t0=!1,r0=!1;M$=[]});function o8(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 s8=L(()=>{});var od,a8=L(()=>{t_();od=class extends Rl{constructor(t,r,n){super(t,r,n)}};od.prototype.type="warning"});function i0(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var a_=L(()=>{});function c_(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||A$(e)&&Bi("read.reader",L$(e),t))}function L$(e){let t=e.ndimArray??0;if(t>1)return P$(e);if(t===1)return l8(e);if("type"in e&&u8(e.type)){let r=e.type.prototype?.itemType?.Type,n=l8(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let a=n(i,o,s);return a&&new e.type(a)}}return u_(e)}function u_(e){return"type"in e?I$(e.type):N$(e.types)}function I$(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void l_().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 c8(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>c8(e,i,r,n-1)):e(t,void 0,r)}function P$(e){let t=u_(e),r=c8.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let a=n,u=i;for(;a>0&&Array.isArray(u);)a--,u=u[0];if(u!==void 0)for(let d=0;d<a;d++)i=[i];return i}}function l8(e){let t=u_(e);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let a of r){let u=t(a,void 0,i);u!==void 0&&s.push(u)}return s}let o=t(r,void 0,i);return o!==void 0?[o]:void 0}}function u8(e){if(!i0(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?d_(t.Type):d8(t.Type))}function A$(e){return"types"in e?d8(e.types):d_(e.type)}function d_(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||u8(e))}function d8(e){for(let t in e.typeMap)if(!d_(e.typeMap[t]))return!1;return!0}function N$(e){let t=null,r=e.errorContext??"type",n=e.validate;return(i,o,s)=>{if(i==null)return i;let a=typeof i;if(a!=="object")return void l_().error(`Expected JSON value of type 'object' to deserialize, but got '${a}'`);t||(t=k$(e));let u=e.key;if(typeof u!="string")return;let d=i[u],p=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!p){let w=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new od(`${r}:unsupported`,w,{definition:i,context:s})),void l_().error(w)}let m=new p;return m.read(i,s),n?n(m):m}}function k$(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=qo(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 a=s.target,u=typeof a=="string"?a:e.key,d={};s.writer(r,d,u),d[u]&&(t[d[u]]=n)}return t}var l_,f8=L(()=>{Ze();hi();a8();kl();a_();l_=()=>Me.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function g8(e){if(e.json||(e.json={}),m8(e.json),h8(e.json),p8(e.json),e.json.origins)for(let t in e.json.origins)m8(e.json.origins[t]),h8(e.json.origins[t]),p8(e.json.origins[t]);return!0}function p8(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 m8(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 h8(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 w8=L(()=>{});function f_(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&&i0(e.type))?t.write.writer=$$:r>1?t.write.writer=F$(r):t.types?Array.isArray(t.types)?t.write.writer=D$(t.types[0]):t.write.writer=R$(t.types):t.write.writer=sd}function R$(e){return(t,r,n,i)=>t?y8(t,e,i)?sd(t,r,n,i):void 0:sd(t,r,n,i)}function y8(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 ye(`${n}:unsupported`,i,{definition:e,context:r})),Me.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function D$(e){return(t,r,n,i)=>!t||!Array.isArray(t)?sd(t,r,n,i):sd(t.filter(o=>y8(o,e,i)),r,n,i)}function sd(e,t,r,n){Bi(r,o0(e,n),t)}function o0(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?O$(e):e}function O$(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function $$(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>o0(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[o0(e,n)],Bi(r,i,t)}function b8(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>b8(n,t,r-1)):o0(e,t)}function F$(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=b8(t,i,e);let s=e,a=o;for(;s>0&&Array.isArray(a);)s--,a=a[0];if(a!==void 0)for(let u=0;u<s;u++)o=[o]}Bi(n,o,r)}}var _8=L(()=>{Tr();Ze();hi();a_()});function v8(e,t){return m_(e,"any",t?.origin)}function s0(e,t){return m_(e,"read",t?.origin)}function S8(e,t){return m_(e,"write",t?.origin)}function m_(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 V$(e){let t=U$(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?W$(n):t;c_(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),f_(i,n)}c_(t,e.json,!0),f_(t,e.json)}function U$(e){return e.json.types?p_(e.json):e.type?x8(e):p_(e)}function W$(e){return e.type?x8(e):p_(e)}function x8(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!Z1(r);)r=r[0],t++;return{type:r,ndimArray:t}}function p_(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 C8(e){g8(e)&&(o8(e),V$(e))}var a0=L(()=>{Go();s8();f8();w8();_8()});function Pe(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,G$(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!h_.has(i.initialize)&&(h_.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!g_.has(i.destroy)&&(g_.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);h_.clear(),g_.clear();let o=class extends t{constructor(...a){if(super(...a),this.constructor===o&&typeof this.postscript=="function"){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let u=r.length-1;u>=0;u--)r[u].call(this)}}),n.length){let u=!1,d=this[K1];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!u){u=!0,d.call(this);for(let p=0;p<n.length;p++)n[p].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};o.__accessorMetadata__=qo(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 z$(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;Ce(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 G$(e){let t=e.prototype,r=qo(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];C8(o),n[i]={enumerable:!0,configurable:!0,get:z$(i,o),set(s){let a=this.__accessor__;if(a!==void 0){if(!Object.isFrozen(this))return a.initialized&&o.readOnly?T8("read-only",i):a.lifecycle===or.CONSTRUCTED&&o.constructOnly?T8("construct-only",i):void a.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(e.prototype,n)}var h_,g_,T8,Ht=L(()=>{Be();Ze();n_();rd();kl();Js();a0();h_=new Set,g_=new Set;T8=(e,t)=>{Me.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function B$(e,t,r=!1){let n=`\u{1F6D1} DEPRECATED - ${t}`;if(!r)return void e.warn(n);let i=E8.get(e);i||(i=new Set,E8.set(e,i)),i.has(t)||(i.add(t),e.warn(n))}function l0(e,t,r={}){if(Q("esri-deprecation-warnings")){let{moduleName:n}=r;q$(e,`Function: ${(n?n+"::":"")+t+"()"}`,r)}}function q$(e,t,r={}){if(Q("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,a=t;n&&(a+=`
|
|
1
|
+
"use strict";(()=>{var kk=Object.defineProperty;var W5=e=>t=>{var r=e[t];if(r)return r();throw new Error("Module not found in bundle: "+t)};var L=(e,t)=>()=>(e&&(t=e(e=0)),t);var z5=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),li=(e,t)=>{for(var r in t)kk(e,r,{get:t[r],enumerable:!0})};var $s,To=L(()=>{$s=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}};$s._m=2147483647,$s._a=48271,$s._c=0});function Eo(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 Q2(e,t,r,n){n=n||i7;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 o7(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;Wn.clear();for(let a=0;a<n;++a)Wn.add(t[a]);i=i||i7;let s=Math.max(0,i.last-10);for(let a=s;a<r;++a)if(Wn.has(e[a])&&(o?.push(e[a]),Wn.delete(e[a]),e[a]=e[r-1],--r,--a,Wn.size===0||r===0))return Wn.clear(),r;for(let a=0;a<s;++a)if(Wn.has(e[a])&&(o?.push(e[a]),Wn.delete(e[a]),e[a]=e[r-1],--r,--a,Wn.size===0||r===0))return Wn.clear(),r;return Wn.clear(),r}function s7(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function a7(e,t){return e!=null}var bD,bee,pu,i7,Wn,_ee,Mo=L(()=>{To();bD=1.5,bee=1/bD;pu=class{constructor(){this.last=0}},i7=new pu;Wn=new Set;_ee=new $s});var l7=L(()=>{});function Q(e){return typeof Lo[e]=="function"?Lo[e]=Lo[e](globalThis):Lo[e]}var Lo,Be=L(()=>{Lo=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},Q.add=(e,t,r,n)=>((n||Lo[e]===void 0)&&(Lo[e]=t),r&&Q(e)),Q.cache=Lo,Q.add("big-integer-warning-enabled",!0),Q.add("esri-deprecation-warnings",!0),Q.add("esri-tests-disable-screenshots",!1),Q.add("esri-tests-use-full-window",!1),Q.add("esri-tests-post-to-influx",!0),Q.add("esri-cim-animations-enable-status","enabled"),Q.add("esri-cim-animations-spotlight",!1),Q.add("esri-cim-animations-freeze-time",!1),(()=>{Q.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(Q.add("host-browser",e),Q.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),Q.add("dom",e),Q("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(Q.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),Q.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),Q.add("khtml",n.includes("Konqueror")?i:void 0),Q.add("edge",parseFloat(r.split("Edge/")[1])||void 0),Q.add("opr",parseFloat(r.split("OPR/")[1])||void 0),Q.add("webkit",!Q("wp")&&!Q("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),Q.add("chrome",!Q("edge")&&!Q("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),Q.add("android",!Q("wp")&&parseFloat(r.split("Android ")[1])||void 0),Q.add("safari",!n.includes("Safari")||Q("wp")||Q("chrome")||Q("android")||Q("edge")||Q("opr")?void 0:parseFloat(n.split("Version/")[1])),Q.add("mac",n.includes("Macintosh")),!Q("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",a=parseFloat(s.replace(/_/,".").replaceAll("_",""));Q.add(o,a),Q.add("ios",a)}Q("webkit")||(!r.includes("Gecko")||Q("wp")||Q("khtml")||Q("edge")||Q.add("mozilla",i),Q("mozilla")&&Q.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&&Q.add("esri-mobile",t),r&&Q.add("esri-iPhone",r),Q.add("esri-geolocation",!!navigator.geolocation)}Q.add("esri-wasm","WebAssembly"in globalThis),Q.add("esri-performance-mode-frames-between-render",20),Q.add("esri-force-performance-mode",!1),Q.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),Q.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))}),Q.add("esri-atomics","Atomics"in globalThis),Q.add("esri-workers","Worker"in globalThis),Q.add("web-feat:cache","caches"in globalThis),Q.add("esri-workers-arraybuffer-transfer",!Q("safari")||Number(Q("safari"))>=12),Q.add("workers-pool-size",8),Q.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),Q.add("featurelayer-simplify-payload-size-factors",[1,1,4]),Q.add("featurelayer-fast-triangulation-enabled",!0),Q.add("featurelayer-animation-enabled",!0),Q.add("featurelayer-snapshot-enabled",!0),Q.add("featurelayer-snapshot-point-min-threshold",8e4),Q.add("featurelayer-snapshot-point-max-threshold",4e5),Q.add("featurelayer-snapshot-point-coverage",.1),Q.add("featurelayer-query-max-depth",4),Q.add("featurelayer-query-pausing-enabled",!1),Q.add("featurelayer-advanced-symbols",!1),Q.add("featurelayer-pbf",!0),Q.add("featurelayer-pbf-statistics",!1),Q.add("feature-layers-workers",!0),Q.add("feature-polyline-generalization-factor",1),Q.add("mapview-transitions-duration",200),Q.add("mapview-essential-goto-duration",200),Q.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),Q.add("mapserver-pbf-version-support",10.81),Q.add("mapservice-popup-identify-max-tolerance",20),Q("host-webworker")||Q("host-browser")&&(Q.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),Q.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(()=>{Q.add("esri-image-decode",!0,!0,!0)}).catch(()=>{Q.add("esri-image-decode",!1,!0,!0)})}return!1}),Q.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});function c7(e){return e?.constructor?.name==="Int8Array"}function u7(e){return e?.constructor?.name==="Uint8Array"}function d7(e){return e?.constructor?.name==="Uint8ClampedArray"}function f7(e){return e?.constructor?.name==="Int16Array"}function p7(e){return e?.constructor?.name==="Uint16Array"}function m7(e){return e?.constructor?.name==="Int32Array"}function h7(e){return e?.constructor?.name==="Uint32Array"}function g7(e){return e?.constructor?.name==="Float32Array"}function w7(e){return e?.constructor?.name==="Float64Array"}var y7=L(()=>{l7();Be()});function w1(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&w1(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function Ne(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=xD(e);if(t!=null)return t;if(_D(e))return e.clone();if(vD(e))return e.map(Ne);if(SD(e))return e.clone();let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=Ne(e[n]);return r}function _D(e){return typeof e.clone=="function"}function vD(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function SD(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function b7(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function xD(e){if(c7(e)||u7(e)||d7(e)||f7(e)||p7(e)||m7(e)||h7(e)||g7(e)||w7(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,Ne(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(Ne(r));return t}return null}function mu(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 _7(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)&&Eo(e,t):e instanceof Set?t instanceof Set&&TD(e,t):e instanceof Map?t instanceof Map&&ED(e,t):!!b7(e)&&b7(t)&&CD(e,t))}function CD(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 TD(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function ED(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 er=L(()=>{Mo();y7()});function v7(e,t,r=!1){return x7(e,t,r)}function xn(e,t){if(t!=null)return t[e]||S7(e.split("."),!1,t)}function Bi(e,t,r){let n=e.split("."),i=n.pop(),o=S7(n,!0,r);o&&i&&(o[i]=t)}function S7(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 x7(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]=Ne(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(a=>{o.includes(a)||o.push(a)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=x7(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var hi=L(()=>{er()});function C7(e){return e??""}function gi(e,t){return t?e.replaceAll(MD,typeof t=="object"?(r,n)=>C7(xn(n,t)):(r,n)=>C7(t(n))):e}function T7(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function E7(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var MD,Io=L(()=>{hi();MD=/\{([^}]+)\}/g});var qi,y1,b1,_1,zn,cl,xt,Gn,Po=L(()=>{qi=class extends Error{},y1=class extends qi{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},b1=class extends qi{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},_1=class extends qi{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},zn=class extends qi{},cl=class extends qi{constructor(t){super(`Invalid unit ${t}`)}},xt=class extends qi{},Gn=class extends qi{constructor(){super("Zone is an abstract class")}}});var ce,Bn,sn,Ao,hu,K2,gu,wu,yu,bu,_u,vu,Su,xu,Cu,Tu,Eu,Mu,Lu,Iu,eb,Pu,Au,Nu,ku,Ru=L(()=>{ce="numeric",Bn="short",sn="long",Ao={year:ce,month:ce,day:ce},hu={year:ce,month:Bn,day:ce},K2={year:ce,month:Bn,day:ce,weekday:Bn},gu={year:ce,month:sn,day:ce},wu={year:ce,month:sn,day:ce,weekday:sn},yu={hour:ce,minute:ce},bu={hour:ce,minute:ce,second:ce},_u={hour:ce,minute:ce,second:ce,timeZoneName:Bn},vu={hour:ce,minute:ce,second:ce,timeZoneName:sn},Su={hour:ce,minute:ce,hourCycle:"h23"},xu={hour:ce,minute:ce,second:ce,hourCycle:"h23"},Cu={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:Bn},Tu={hour:ce,minute:ce,second:ce,hourCycle:"h23",timeZoneName:sn},Eu={year:ce,month:ce,day:ce,hour:ce,minute:ce},Mu={year:ce,month:ce,day:ce,hour:ce,minute:ce,second:ce},Lu={year:ce,month:Bn,day:ce,hour:ce,minute:ce},Iu={year:ce,month:Bn,day:ce,hour:ce,minute:ce,second:ce},eb={year:ce,month:Bn,day:ce,weekday:Bn,hour:ce,minute:ce},Pu={year:ce,month:sn,day:ce,hour:ce,minute:ce,timeZoneName:Bn},Au={year:ce,month:sn,day:ce,hour:ce,minute:ce,second:ce,timeZoneName:Bn},Nu={year:ce,month:sn,day:ce,weekday:sn,hour:ce,minute:ce,timeZoneName:sn},ku={year:ce,month:sn,day:ce,weekday:sn,hour:ce,minute:ce,second:ce,timeZoneName:sn}});var kt,Fs=L(()=>{Po();kt=class{get type(){throw new Gn}get name(){throw new Gn}get ianaName(){return this.name}get isUniversal(){throw new Gn}offsetName(t,r){throw new Gn}formatOffset(t,r){throw new Gn}offset(t){throw new Gn}equals(t){throw new Gn}get isValid(){throw new Gn}}});var tb,No,S1=L(()=>{$r();Fs();tb=null,No=class e extends kt{static get instance(){return tb===null&&(tb=new e),tb}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return x1(t,r,n)}formatOffset(t,r){return ko(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function LD(e){return T1[e]||(T1[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"})),T1[e]}function PD(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,a,u,d,p]=n;return[s,i,o,a,u,d,p]}function AD(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],a=ID[o];o==="era"?n[a]=s:_e(a)||(n[a]=parseInt(s,10))}return n}var T1,ID,C1,Ct,Ro=L(()=>{$r();Fs();T1={};ID={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};C1={},Ct=class e extends kt{static create(t){return C1[t]||(C1[t]=new e(t)),C1[t]}static resetCache(){C1={},T1={}}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 x1(t,r,n,this.name)}formatOffset(t,r){return ko(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=LD(this.name),[i,o,s,a,u,d,p]=n.formatToParts?AD(n,r):PD(n,r);a==="BC"&&(i=-Math.abs(i)+1);let w=ul({year:i,month:o,day:s,hour:u===24?0:u,minute:d,second:p,millisecond:0}),_=+r,S=_%1e3;return _-=S>=0?S:1e3+S,(w-_)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function ND(e,t={}){let r=JSON.stringify([e,t]),n=M7[r];return n||(n=new Intl.ListFormat(e,t),M7[r]=n),n}function nb(e,t={}){let r=JSON.stringify([e,t]),n=rb[r];return n||(n=new Intl.DateTimeFormat(e,t),rb[r]=n),n}function kD(e,t={}){let r=JSON.stringify([e,t]),n=ib[r];return n||(n=new Intl.NumberFormat(e,t),ib[r]=n),n}function RD(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=ob[i];return o||(o=new Intl.RelativeTimeFormat(e,t),ob[i]=o),o}function DD(){return Du||(Du=new Intl.DateTimeFormat().resolvedOptions().locale,Du)}function OD(e){let t=L7[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,L7[e]=t}return t}function $D(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=nb(e).resolvedOptions(),i=e}catch{let u=e.substring(0,r);n=nb(u).resolvedOptions(),i=u}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function FD(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function VD(e){let t=[];for(let r=1;r<=12;r++){let n=oe.utc(2009,r,1);t.push(e(n))}return t}function UD(e){let t=[];for(let r=1;r<=7;r++){let n=oe.utc(2016,11,13+r);t.push(e(n))}return t}function E1(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function WD(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 M7,rb,ib,ob,Du,L7,sb,ab,lb,zD,Ue,$u=L(()=>{$r();I1();Do();Oo();Ro();M7={};rb={};ib={};ob={};Du=null;L7={};sb=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 a={useGrouping:!1,...n};n.padTo>0&&(a.minimumIntegerDigits=n.padTo),this.inf=kD(t,a)}}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):dl(t,3);return ht(r,this.padTo)}}},ab=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),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&Ct.create(a).valid?(i=a,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=nb(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()}},lb=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&M1()&&(this.rtf=RD(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):I7(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},zD={firstDay:1,minimalDays:4,weekend:[6,7]},Ue=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||Ve.defaultLocale,a=s||(o?"en-US":DD()),u=r||Ve.defaultNumberingSystem,d=n||Ve.defaultOutputCalendar,p=Ou(i)||Ve.defaultWeekSettings;return new e(a,u,d,p,s)}static resetCache(){Du=null,rb={},ib={},ob={}}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,a,u]=$D(t);this.locale=s,this.numberingSystem=r||a||null,this.outputCalendar=n||u||null,this.weekSettings=i,this.intl=FD(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=WD(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,Ou(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 E1(this,t,cb,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=VD(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return E1(this,t,ub,()=>{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]=UD(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return E1(this,void 0,()=>db,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[oe.utc(2016,11,13,9),oe.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return E1(this,t,fb,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[oe.utc(-40,1,1),oe.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(a=>a.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new sb(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new ab(t,this.intl,r)}relFormatter(t={}){return new lb(this.intl,this.isEnglish(),t)}listFormatter(t={}){return ND(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:L1()?OD(this.locale):zD}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 mb,He,fl=L(()=>{$r();Fs();mb=null,He=class e extends kt{static get utcInstance(){return mb===null&&(mb=new e(0)),mb}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(Vs(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${ko(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${ko(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return ko(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 pl,hb=L(()=>{Fs();pl=class extends kt{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 qn(e,t){let r;if(_e(e)||e===null)return t;if(e instanceof kt)return e;if(P7(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?No.instance:n==="utc"||n==="gmt"?He.utcInstance:He.parseSpecifier(n)||Ct.create(e)}else return jn(e)?He.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new pl(e)}var P1=L(()=>{Fs();Ro();fl();hb();$r();S1()});function N7(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(gb.hanidec)!==-1)t+=GD.indexOf(e[r]);else for(let i in A7){let[o,s]=A7[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function k7(){ml={}}function Cn({numberingSystem:e},t=""){let r=e||"latn";return ml[r]||(ml[r]={}),ml[r][t]||(ml[r][t]=new RegExp(`${gb[r]}${t}`)),ml[r][t]}var gb,A7,GD,ml,wb=L(()=>{gb={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"},A7={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]},GD=gb.hanidec.replace(/[\[|\]]/g,"").split("");ml={}});var R7,D7,O7,$7,F7,V7,U7,W7,Ve,Do=L(()=>{S1();Ro();$u();Oo();P1();$r();wb();R7=()=>Date.now(),D7="system",O7=null,$7=null,F7=null,V7=60,W7=null,Ve=class{static get now(){return R7}static set now(t){R7=t}static set defaultZone(t){D7=t}static get defaultZone(){return qn(D7,No.instance)}static get defaultLocale(){return O7}static set defaultLocale(t){O7=t}static get defaultNumberingSystem(){return $7}static set defaultNumberingSystem(t){$7=t}static get defaultOutputCalendar(){return F7}static set defaultOutputCalendar(t){F7=t}static get defaultWeekSettings(){return W7}static set defaultWeekSettings(t){W7=Ou(t)}static get twoDigitCutoffYear(){return V7}static set twoDigitCutoffYear(t){V7=t%100}static get throwOnInvalid(){return U7}static set throwOnInvalid(t){U7=t}static resetCaches(){Ue.resetCache(),Ct.resetCache(),oe.resetCache(),k7()}}});var tr,Fu=L(()=>{tr=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Tn(e,t){return new tr("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function A1(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 B7(e,t,r){return r+(Ws(e)?G7:z7)[t-1]}function q7(e,t){let r=Ws(e)?G7:z7,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function N1(e,t){return(e-t+7)%7+1}function Vu(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=B7(n,i,o),a=N1(A1(n,i,o),r),u=Math.floor((s-a+14-t)/7),d;return u<1?(d=n-1,u=Us(d,t,r)):u>Us(n,t,r)?(d=n+1,u=1):d=n,{weekYear:d,weekNumber:u,weekday:a,...Wu(e)}}function yb(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=N1(A1(n,1,t),r),a=$o(n),u=i*7+o-s-7+t,d;u<1?(d=n-1,u+=$o(d)):u>a?(d=n+1,u-=$o(n)):d=n;let{month:p,day:m}=q7(d,u);return{year:d,month:p,day:m,...Wu(e)}}function k1(e){let{year:t,month:r,day:n}=e,i=B7(t,r,n);return{year:t,ordinal:i,...Wu(e)}}function bb(e){let{year:t,ordinal:r}=e,{month:n,day:i}=q7(t,r);return{year:t,month:n,day:i,...Wu(e)}}function _b(e,t){if(!_e(e.localWeekday)||!_e(e.localWeekNumber)||!_e(e.localWeekYear)){if(!_e(e.weekday)||!_e(e.weekNumber)||!_e(e.weekYear))throw new zn("Cannot mix locale-based week fields with ISO-based week fields");return _e(e.localWeekday)||(e.weekday=e.localWeekday),_e(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),_e(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 j7(e,t=4,r=1){let n=Uu(e.weekYear),i=an(e.weekNumber,1,Us(e.weekYear,t,r)),o=an(e.weekday,1,7);return n?i?o?!1:Tn("weekday",e.weekday):Tn("week",e.weekNumber):Tn("weekYear",e.weekYear)}function H7(e){let t=Uu(e.year),r=an(e.ordinal,1,$o(e.year));return t?r?!1:Tn("ordinal",e.ordinal):Tn("year",e.year)}function vb(e){let t=Uu(e.year),r=an(e.month,1,12),n=an(e.day,1,hl(e.year,e.month));return t?r?n?!1:Tn("day",e.day):Tn("month",e.month):Tn("year",e.year)}function Sb(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=an(t,0,23)||t===24&&r===0&&n===0&&i===0,s=an(r,0,59),a=an(n,0,59),u=an(i,0,999);return o?s?a?u?!1:Tn("millisecond",i):Tn("second",n):Tn("minute",r):Tn("hour",t)}var z7,G7,xb=L(()=>{$r();Fu();Po();z7=[0,31,59,90,120,151,181,212,243,273,304,334],G7=[0,31,60,91,121,152,182,213,244,274,305,335]});function _e(e){return typeof e>"u"}function jn(e){return typeof e=="number"}function Uu(e){return typeof e=="number"&&e%1===0}function P7(e){return typeof e=="string"}function Y7(e){return Object.prototype.toString.call(e)==="[object Date]"}function M1(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function L1(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function J7(e){return Array.isArray(e)?e:[e]}function Cb(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 X7(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function Fo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ou(e){if(e==null)return null;if(typeof e!="object")throw new xt("Week settings must be an object");if(!an(e.firstDay,1,7)||!an(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!an(t,1,7)))throw new xt("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function an(e,t,r){return Uu(e)&&e>=t&&e<=r}function BD(e,t){return e-t*Math.floor(e/t)}function ht(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function ji(e){if(!(_e(e)||e===null||e===""))return parseInt(e,10)}function Vo(e){if(!(_e(e)||e===null||e===""))return parseFloat(e)}function zu(e){if(!(_e(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function dl(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Ws(e){return e%4===0&&(e%100!==0||e%400===0)}function $o(e){return Ws(e)?366:365}function hl(e,t){let r=BD(t-1,12)+1,n=e+(t-r)/12;return r===2?Ws(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function ul(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 Z7(e,t,r){return-N1(A1(e,1,t),r)+t-1}function Us(e,t=4,r=1){let n=Z7(e,t,r),i=Z7(e+1,t,r);return($o(e)-n+i)/7}function Gu(e){return e>99?e:e>Ve.twoDigitCutoffYear?1900+e:2e3+e}function x1(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},a=new Intl.DateTimeFormat(r,s).formatToParts(i).find(u=>u.type.toLowerCase()==="timezonename");return a?a.value:null}function Vs(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 Tb(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new xt(`Invalid unit value ${e}`);return t}function gl(e,t){let r={};for(let n in e)if(Fo(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=Tb(i)}return r}function ko(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}${ht(r,2)}:${ht(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${ht(r,2)}${ht(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Wu(e){return X7(e,["hour","minute","second","millisecond"])}var $r=L(()=>{Po();Do();xb()});function cb(e){switch(e){case"narrow":return[...jD];case"short":return[...Eb];case"long":return[...qD];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 ub(e){switch(e){case"narrow":return[...HD];case"short":return[...Lb];case"long":return[...Mb];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function fb(e){switch(e){case"narrow":return[...JD];case"short":return[...YD];case"long":return[...ZD];default:return null}}function Q7(e){return db[e.hour<12?0:1]}function K7(e,t){return ub(t)[e.weekday-1]}function e6(e,t){return cb(t)[e.month-1]}function t6(e,t){return fb(t)[e.year<0?0:1]}function I7(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 m=e==="days";switch(t){case 1:return m?"tomorrow":`next ${i[e][0]}`;case-1:return m?"yesterday":`last ${i[e][0]}`;case 0:return m?"today":`this ${i[e][0]}`;default:}}let s=Object.is(t,-0)||t<0,a=Math.abs(t),u=a===1,d=i[e],p=n?u?d[1]:d[2]||d[1]:u?i[e][0]:e;return s?`${a} ${p} ago`:`in ${a} ${p}`}var qD,Eb,jD,Mb,Lb,HD,db,ZD,YD,JD,I1=L(()=>{Ru();$r();qD=["January","February","March","April","May","June","July","August","September","October","November","December"],Eb=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],jD=["J","F","M","A","M","J","J","A","S","O","N","D"];Mb=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Lb=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],HD=["M","T","W","T","F","S","S"];db=["AM","PM"],ZD=["Before Christ","Anno Domini"],YD=["BC","AD"],JD=["B","A"]});function r6(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var XD,rr,Bu=L(()=>{I1();Ru();$r();XD={D:Ao,DD:hu,DDD:gu,DDDD:wu,t:yu,tt:bu,ttt:_u,tttt:vu,T:Su,TT:xu,TTT:Cu,TTTT:Tu,f:Eu,ff:Lu,fff:Pu,ffff:Nu,F:Mu,FF:Iu,FFF:Au,FFFF:ku},rr=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 a=t.charAt(s);a==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||a===r?n+=a:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=a,r=a)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(t){return XD[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 ht(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)=>this.loc.extract(t,_,S),s=_=>t.isOffsetFixed&&t.offset===0&&_.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,_.format):"",a=()=>n?Q7(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(_,S)=>n?e6(t,_):o(S?{month:_}:{month:_,day:"numeric"},"month"),d=(_,S)=>n?K7(t,_):o(S?{weekday:_}:{weekday:_,month:"long",day:"numeric"},"weekday"),p=_=>{let S=e.macroTokenToFormatOpts(_);return S?this.formatWithSystemDefault(t,S):_},m=_=>n?t6(t,_):o({era:_},"era"),w=_=>{switch(_){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 a();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 u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("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 u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("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 m("short");case"GG":return m("long");case"GGGGG":return m("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 p(_)}};return r6(e.parseFormat(r),w)}formatDurationFromString(t,r){let n=u=>{switch(u[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=u=>d=>{let p=n(d);return p?this.num(u.get(p),d.length):d},o=e.parseFormat(r),s=o.reduce((u,{literal:d,val:p})=>d?u:u.concat(p),[]),a=t.shiftTo(...s.map(n).filter(u=>u));return r6(o,i(a))}}});function yl(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function bl(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,a,u]=o(t,i);return[{...r,...s},a||n,u]},[{},null,1]).slice(0,2)}function _l(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 o6(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=ji(t[r+i]);return[n,null,r+i]}}function wl(e,t,r){let n=e[t];return _e(n)?r:ji(n)}function sO(e,t){return[{year:wl(e,t),month:wl(e,t+1,1),day:wl(e,t+2,1)},null,t+3]}function vl(e,t){return[{hours:wl(e,t,0),minutes:wl(e,t+1,0),seconds:wl(e,t+2,0),milliseconds:zu(e[t+3])},null,t+4]}function qu(e,t){let r=!e[t]&&!e[t+1],n=Vs(e[t+1],e[t+2]),i=r?null:He.instance(n);return[{},i,t+3]}function ju(e,t){let r=e[t]?Ct.create(e[t]):null;return[{},r,t+1]}function cO(e){let[t,r,n,i,o,s,a,u,d]=e,p=t[0]==="-",m=u&&u[0]==="-",w=(_,S=!1)=>_!==void 0&&(S||_&&p)?-_:_;return[{years:w(Vo(r)),months:w(Vo(n)),weeks:w(Vo(i)),days:w(Vo(o)),hours:w(Vo(s)),minutes:w(Vo(a)),seconds:w(Vo(u),u==="-0"),milliseconds:w(zu(d),m)}]}function Ab(e,t,r,n,i,o,s){let a={year:t.length===2?Gu(ji(t)):ji(t),month:Eb.indexOf(r)+1,day:ji(n),hour:ji(i),minute:ji(o)};return s&&(a.second=ji(s)),e&&(a.weekday=e.length>3?Mb.indexOf(e)+1:Lb.indexOf(e)+1),a}function fO(e){let[,t,r,n,i,o,s,a,u,d,p,m]=e,w=Ab(t,i,n,r,o,s,a),_;return u?_=uO[u]:d?_=0:_=Vs(p,m),[w,new He(_)]}function pO(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function n6(e){let[,t,r,n,i,o,s,a]=e;return[Ab(t,i,n,r,o,s,a),He.utcInstance]}function wO(e){let[,t,r,n,i,o,s,a]=e;return[Ab(t,a,r,n,i,o,s),He.utcInstance]}function u6(e){return _l(e,[yO,c6],[bO,SO],[_O,xO],[vO,CO])}function d6(e){return _l(pO(e),[dO,fO])}function f6(e){return _l(e,[mO,n6],[hO,n6],[gO,wO])}function p6(e){return _l(e,[lO,cO])}function m6(e){return _l(e,[aO,TO])}function h6(e){return _l(e,[EO,c6],[MO,LO])}var i6,s6,QD,Ib,a6,Pb,KD,eO,tO,rO,nO,iO,l6,oO,aO,lO,uO,dO,mO,hO,gO,yO,bO,_O,vO,c6,SO,xO,CO,TO,EO,MO,LO,Nb=L(()=>{$r();I1();fl();Ro();i6=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;s6=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,QD=`(?:${s6.source}?(?:\\[(${i6.source})\\])?)?`,Ib=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,a6=RegExp(`${Ib.source}${QD}`),Pb=RegExp(`(?:T${a6.source})?`),KD=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,eO=/(\d{4})-?W(\d\d)(?:-?(\d))?/,tO=/(\d{4})-?(\d{3})/,rO=o6("weekYear","weekNumber","weekDay"),nO=o6("year","ordinal"),iO=/(\d{4})-(\d\d)-(\d\d)/,l6=RegExp(`${Ib.source} ?(?:${s6.source}|(${i6.source}))?`),oO=RegExp(`(?: ${l6.source})?`);aO=RegExp(`^T?${Ib.source}$`),lO=/^-?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)?)?)$/;uO={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};dO=/^(?:(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)))$/;mO=/^(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$/,hO=/^(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$/,gO=/^(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})$/;yO=yl(KD,Pb),bO=yl(eO,Pb),_O=yl(tO,Pb),vO=yl(a6),c6=bl(sO,vl,qu,ju),SO=bl(rO,vl,qu,ju),xO=bl(nO,vl,qu,ju),CO=bl(vl,qu,ju);TO=bl(vl);EO=yl(iO,oO),MO=yl(l6),LO=bl(vl,qu,ju)});function Uo(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 gt(n)}function b6(e,t){let r=t.milliseconds??0;for(let n of AO.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function w6(e,t){let r=b6(e,t)<0?-1:1;zs.reduceRight((n,i)=>{if(_e(t[i]))return n;if(n){let o=t[n]*r,s=e[i][n],a=Math.floor(o/s);t[i]+=a*r,t[n]-=a*s*r}return i},null),zs.reduce((n,i)=>{if(_e(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function NO(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var g6,y6,IO,En,Sl,PO,zs,AO,gt,Hu=L(()=>{Po();Bu();Fu();$u();Nb();$r();Do();Oo();g6="Invalid Duration",y6={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}},IO={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},...y6},En=146097/400,Sl=146097/4800,PO={years:{quarters:4,months:12,weeks:En/7,days:En,hours:En*24,minutes:En*24*60,seconds:En*24*60*60,milliseconds:En*24*60*60*1e3},quarters:{months:3,weeks:En/28,days:En/4,hours:En*24/4,minutes:En*24*60/4,seconds:En*24*60*60/4,milliseconds:En*24*60*60*1e3/4},months:{weeks:Sl/7,days:Sl,hours:Sl*24,minutes:Sl*24*60,seconds:Sl*24*60*60,milliseconds:Sl*24*60*60*1e3},...y6},zs=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],AO=zs.slice(0).reverse();gt=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?PO:IO;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||Ue.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 xt(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:gl(t,e.normalizeUnit),loc:Ue.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(jn(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new xt(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=p6(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]=m6(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 xt("need to specify a reason the Duration is invalid");let n=t instanceof tr?t:new tr(t,r);if(Ve.throwOnInvalid)throw new _1(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 cl(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?rr.create(this.loc,n).formatDurationFromString(this,t):g6}toHuman(t={}){if(!this.isValid)return g6;let r=zs.map(n=>{let i=this.values[n];return _e(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+=dl(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},oe.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?b6(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 zs)(Fo(r.values,i)||Fo(this.values,i))&&(n[i]=r.get(i)+this.get(i));return Uo(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]=Tb(t(this.values[n],n));return Uo(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...gl(t,e.normalizeUnit)};return Uo(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 Uo(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return w6(this.matrix,t),Uo(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=NO(this.normalize().shiftToAll().toObject());return Uo(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 zs)if(t.indexOf(s)>=0){o=s;let a=0;for(let d in n)a+=this.matrix[d][s]*n[d],n[d]=0;jn(i[s])&&(a+=i[s]);let u=Math.trunc(a);r[s]=u,n[s]=(a*1e3-u*1e3)/1e3}else jn(i[s])&&(n[s]=i[s]);for(let s in n)n[s]!==0&&(r[o]+=s===o?n[s]:n[s]/this.matrix[o][s]);return w6(this.matrix,r),Uo(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 Uo(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 zs)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function kO(e,t){return!e||!e.isValid?Hi.invalid("missing or invalid start"):!t||!t.isValid?Hi.invalid("missing or invalid end"):t<e?Hi.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 xl,Hi,kb=L(()=>{Oo();Hu();Do();Po();Fu();Bu();Ru();xl="Invalid Interval";Hi=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 xt("need to specify a reason the Interval is invalid");let n=t instanceof tr?t:new tr(t,r);if(Ve.throwOnInvalid)throw new b1(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=Cl(t),i=Cl(r),o=kO(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=gt.fromDurationLike(r),i=Cl(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=gt.fromDurationLike(r),i=Cl(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=oe.fromISO(n,r),s=o.isValid}catch{s=!1}let a,u;try{a=oe.fromISO(i,r),u=a.isValid}catch{u=!1}if(s&&u)return e.fromDateTimes(o,a);if(s){let d=gt.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(u){let d=gt.fromISO(n,r);if(d.isValid)return e.before(a,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(Cl).filter(s=>this.contains(s)).sort((s,a)=>s.toMillis()-a.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,a=+s>+this.e?this.e:s;n.push(e.fromDateTimes(i,a)),i=a,o+=1}return n}splitBy(t){let r=gt.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 a=this.start.plus(r.mapUnits(u=>u*i));o=+a>+this.e?this.e:a,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(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),s=Array.prototype.concat(...o),a=s.sort((u,d)=>u.time-d.time);for(let u of a)n+=u.type==="s"?1:-1,n===1?r=u.time:(r&&+r!=+u.time&&i.push(e.fromDateTimes(r,u.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()})`:xl}[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=Ao,r={}){return this.isValid?rr.create(this.s.loc.clone(r),t).formatInterval(this):xl}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:xl}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:xl}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:xl}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:xl}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):gt.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var Zi,Rb=L(()=>{Oo();Do();$u();Ro();P1();$r();Zi=class{static hasDST(t=Ve.defaultZone){let r=oe.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return Ct.isValidZone(t)}static normalizeZone(t){return qn(t,Ve.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||Ue.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||Ue.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||Ue.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Ue.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Ue.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Ue.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Ue.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Ue.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return Ue.create(r,null,"gregory").eras(t)}static features(){return{relative:M1(),localeWeek:L1()}}}});function _6(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(gt.fromMillis(n).as("days"))}function RO(e,t,r){let n=[["years",(u,d)=>d.year-u.year],["quarters",(u,d)=>d.quarter-u.quarter+(d.year-u.year)*4],["months",(u,d)=>d.month-u.month+(d.year-u.year)*12],["weeks",(u,d)=>{let p=_6(u,d);return(p-p%7)/7}],["days",_6]],i={},o=e,s,a;for(let[u,d]of n)r.indexOf(u)>=0&&(s=u,i[u]=d(e,t),a=o.plus(i),a>t?(i[u]--,e=o.plus(i),e>t&&(a=e,i[u]--,e=o.plus(i))):e=a);return[e,i,a,s]}function v6(e,t,r,n){let[i,o,s,a]=RO(e,t,r),u=t-i,d=r.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);d.length===0&&(s<t&&(s=i.plus({[a]:1})),s!==i&&(o[a]=(o[a]||0)+u/(s-i)));let p=gt.fromObject(o,n);return d.length>0?gt.fromMillis(u,n).shiftTo(...d).plus(p):p}var S6=L(()=>{Hu()});function qe(e,t=r=>r){return{regex:e,deser:([r])=>t(N7(r))}}function $O(e){return e.replace(/\./g,"\\.?").replace(E6,T6)}function x6(e){return e.replace(/\./g,"").replace(E6," ").toLowerCase()}function Hn(e,t){return e===null?null:{regex:RegExp(e.map($O).join("|")),deser:([r])=>e.findIndex(n=>x6(r)===x6(n))+t}}function C6(e,t){return{regex:e,deser:([,r,n])=>Vs(r,n),groups:t}}function R1(e){return{regex:e,deser:([t])=>t}}function FO(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function VO(e,t){let r=Cn(t),n=Cn(t,"{2}"),i=Cn(t,"{3}"),o=Cn(t,"{4}"),s=Cn(t,"{6}"),a=Cn(t,"{1,2}"),u=Cn(t,"{1,3}"),d=Cn(t,"{1,6}"),p=Cn(t,"{1,9}"),m=Cn(t,"{2,4}"),w=Cn(t,"{4,6}"),_=M=>({regex:RegExp(FO(M.val)),deser:([k])=>k,literal:!0}),C=(M=>{if(e.literal)return _(M);switch(M.val){case"G":return Hn(t.eras("short"),0);case"GG":return Hn(t.eras("long"),0);case"y":return qe(d);case"yy":return qe(m,Gu);case"yyyy":return qe(o);case"yyyyy":return qe(w);case"yyyyyy":return qe(s);case"M":return qe(a);case"MM":return qe(n);case"MMM":return Hn(t.months("short",!0),1);case"MMMM":return Hn(t.months("long",!0),1);case"L":return qe(a);case"LL":return qe(n);case"LLL":return Hn(t.months("short",!1),1);case"LLLL":return Hn(t.months("long",!1),1);case"d":return qe(a);case"dd":return qe(n);case"o":return qe(u);case"ooo":return qe(i);case"HH":return qe(n);case"H":return qe(a);case"hh":return qe(n);case"h":return qe(a);case"mm":return qe(n);case"m":return qe(a);case"q":return qe(a);case"qq":return qe(n);case"s":return qe(a);case"ss":return qe(n);case"S":return qe(u);case"SSS":return qe(i);case"u":return R1(p);case"uu":return R1(a);case"uuu":return qe(r);case"a":return Hn(t.meridiems(),0);case"kkkk":return qe(o);case"kk":return qe(m,Gu);case"W":return qe(a);case"WW":return qe(n);case"E":case"c":return qe(r);case"EEE":return Hn(t.weekdays("short",!1),1);case"EEEE":return Hn(t.weekdays("long",!1),1);case"ccc":return Hn(t.weekdays("short",!0),1);case"cccc":return Hn(t.weekdays("long",!0),1);case"Z":case"ZZ":return C6(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return C6(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return R1(/[a-z_+-/]{1,256}?/i);case" ":return R1(/[^\S\n\r]/);default:return _(M)}})(e)||{invalidReason:DO};return C.token=e,C}function WO(e,t,r){let{type:n,value:i}=e;if(n==="literal"){let u=/^\s+$/.test(i);return{literal:!u,val:u?" ":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 a=UO[s];if(typeof a=="object"&&(a=a[o]),a)return{literal:!1,val:a}}function zO(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function GO(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(Fo(r,s)){let a=r[s],u=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(n.slice(o,o+u))),o+=u}return[n,i]}else return[n,{}]}function BO(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 _e(e.z)||(r=Ct.create(e.z)),_e(e.Z)||(r||(r=new He(e.Z)),n=e.Z),_e(e.q)||(e.M=(e.q-1)*3+1),_e(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),_e(e.u)||(e.S=zu(e.u)),[Object.keys(e).reduce((o,s)=>{let a=t(s);return a&&(o[a]=e[s]),o},{}),r,n]}function qO(){return Db||(Db=oe.fromMillis(1555555555555)),Db}function jO(e,t){if(e.literal)return e;let r=rr.macroTokenToFormatOpts(e.val),n=Fb(r,t);return n==null||n.includes(void 0)?e:n}function Ob(e,t){return Array.prototype.concat(...e.map(r=>jO(r,t)))}function $b(e,t,r){return new Zu(e,r).explainFromTokens(t)}function M6(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=$b(e,t,r);return[n,i,o,s]}function Fb(e,t){if(!e)return null;let n=rr.create(t,e).dtFormatter(qO()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>WO(s,e,o))}var DO,OO,T6,E6,UO,Db,Zu,L6=L(()=>{$r();Bu();fl();Ro();Oo();wb();Po();DO="missing Intl.DateTimeFormat.formatToParts support";OO="\xA0",T6=`[ ${OO}]`,E6=new RegExp(T6,"g");UO={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"}};Db=null;Zu=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=Ob(rr.parseFormat(r),t),this.units=this.tokens.map(n=>VO(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=zO(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=GO(t,this.regex,this.handlers),[i,o,s]=n?BO(n):[null,null,void 0];if(Fo(n,"a")&&Fo(n,"H"))throw new zn("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 Yu(e){return new tr("unsupported zone",`the zone "${e.name}" is not supported`)}function Ub(e){return e.weekData===null&&(e.weekData=Vu(e.c)),e.weekData}function Wb(e){return e.localWeekData===null&&(e.localWeekData=Vu(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Gs(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new oe({...r,...t,old:r})}function O6(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 D1(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 $1(e,t,r){return O6(ul(e),t,r)}function P6(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,hl(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=gt.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"),a=ul(o),[u,d]=O6(a,r,e.zone);return s!==0&&(u+=s,d=e.zone.offset(u)),{ts:u,o:d}}function Tl(e,t,r,n,i,o){let{setZone:s,zone:a}=r;if(e&&Object.keys(e).length!==0||t){let u=t||a,d=oe.fromObject(e,{...r,zone:u,specificOffset:o});return s?d:d.setZone(a)}else return oe.invalid(new tr("unparsable",`the input "${i}" can't be parsed as ${n}`))}function O1(e,t,r=!0){return e.isValid?rr.create(Ue.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function zb(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=ht(e.c.year,r?6:4),t?(n+="-",n+=ht(e.c.month),n+="-",n+=ht(e.c.day)):(n+=ht(e.c.month),n+=ht(e.c.day)),n}function A6(e,t,r,n,i,o){let s=ht(e.c.hour);return t?(s+=":",s+=ht(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=ht(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=ht(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=ht(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=ht(Math.trunc(-e.o/60)),s+=":",s+=ht(Math.trunc(-e.o%60))):(s+="+",s+=ht(Math.trunc(e.o/60)),s+=":",s+=ht(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function XO(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 cl(e);return t}function N6(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return XO(e)}}function QO(e){return V1[e]||(F1===void 0&&(F1=Ve.now()),V1[e]=e.offset(F1)),V1[e]}function k6(e,t){let r=qn(t.zone,Ve.defaultZone);if(!r.isValid)return oe.invalid(Yu(r));let n=Ue.fromObject(t),i,o;if(_e(e.year))i=Ve.now();else{for(let u of F6)_e(e[u])&&(e[u]=$6[u]);let s=vb(e)||Sb(e);if(s)return oe.invalid(s);let a=QO(r);[i,o]=$1(e,a,r)}return new oe({ts:i,zone:r,loc:n,o})}function R6(e,t,r){let n=_e(r.round)?!0:r.round,i=(s,a)=>(s=dl(s,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(s,a)),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 a=o(s);if(Math.abs(a)>=1)return i(a,s)}return i(e>t?-0:0,r.units[r.units.length-1])}function D6(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 Cl(e){if(oe.isDateTime(e))return e;if(e&&e.valueOf&&jn(e.valueOf()))return oe.fromJSDate(e);if(e&&typeof e=="object")return oe.fromObject(e);throw new xt(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var Vb,I6,$6,HO,ZO,F6,YO,JO,F1,V1,oe,Oo=L(()=>{Hu();kb();Do();Rb();Bu();fl();$u();$r();P1();S6();Nb();L6();xb();Ru();Po();Fu();Vb="Invalid DateTime",I6=864e13;$6={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},HO={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ZO={ordinal:1,hour:0,minute:0,second:0,millisecond:0},F6=["year","month","day","hour","minute","second","millisecond"],YO=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],JO=["year","ordinal","hour","minute","second","millisecond"];V1={},oe=class e{constructor(t){let r=t.zone||Ve.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new tr("invalid input"):null)||(r.isValid?null:Yu(r));this.ts=_e(t.ts)?Ve.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 a=jn(t.o)&&!t.old?t.o:r.offset(this.ts);i=D1(this.ts,a),n=Number.isNaN(i.year)?new tr("invalid input"):null,i=n?null:i,o=n?null:a}this._zone=r,this.loc=t.loc||Ue.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]=D6(arguments),[n,i,o,s,a,u,d]=r;return k6({year:n,month:i,day:o,hour:s,minute:a,second:u,millisecond:d},t)}static utc(){let[t,r]=D6(arguments),[n,i,o,s,a,u,d]=r;return t.zone=He.utcInstance,k6({year:n,month:i,day:o,hour:s,minute:a,second:u,millisecond:d},t)}static fromJSDate(t,r={}){let n=Y7(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=qn(r.zone,Ve.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:Ue.fromObject(r)}):e.invalid(Yu(i))}static fromMillis(t,r={}){if(jn(t))return t<-I6||t>I6?e.invalid("Timestamp out of range"):new e({ts:t,zone:qn(r.zone,Ve.defaultZone),loc:Ue.fromObject(r)});throw new xt(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(jn(t))return new e({ts:t*1e3,zone:qn(r.zone,Ve.defaultZone),loc:Ue.fromObject(r)});throw new xt("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=qn(r.zone,Ve.defaultZone);if(!n.isValid)return e.invalid(Yu(n));let i=Ue.fromObject(r),o=gl(t,N6),{minDaysInFirstWeek:s,startOfWeek:a}=_b(o,i),u=Ve.now(),d=_e(r.specificOffset)?n.offset(u):r.specificOffset,p=!_e(o.ordinal),m=!_e(o.year),w=!_e(o.month)||!_e(o.day),_=m||w,S=o.weekYear||o.weekNumber;if((_||p)&&S)throw new zn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(w&&p)throw new zn("Can't mix ordinal dates with month/day");let C=S||o.weekday&&!_,M,k,I=D1(u,d);C?(M=YO,k=HO,I=Vu(I,s,a)):p?(M=JO,k=ZO,I=k1(I)):(M=F6,k=$6);let N=!1;for(let be of M){let de=o[be];_e(de)?N?o[be]=k[be]:o[be]=I[be]:N=!0}let V=C?j7(o,s,a):p?H7(o):vb(o),Y=V||Sb(o);if(Y)return e.invalid(Y);let re=C?yb(o,s,a):p?bb(o):o,[te,ie]=$1(re,d,n),ge=new e({ts:te,zone:n,o:ie,loc:i});return o.weekday&&_&&t.weekday!==ge.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${ge.toISO()}`):ge.isValid?ge:e.invalid(ge.invalid)}static fromISO(t,r={}){let[n,i]=u6(t);return Tl(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=d6(t);return Tl(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=f6(t);return Tl(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(_e(t)||_e(r))throw new xt("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=Ue.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[a,u,d,p]=M6(s,t,r);return p?e.invalid(p):Tl(a,u,n,`format ${r}`,t,d)}static fromString(t,r,n={}){return e.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=h6(t);return Tl(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new xt("need to specify a reason the DateTime is invalid");let n=t instanceof tr?t:new tr(t,r);if(Ve.throwOnInvalid)throw new y1(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=Fb(t,Ue.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return Ob(rr.parseFormat(t),Ue.fromObject(r)).map(i=>i.val).join("")}static resetCache(){F1=void 0,V1={}}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?Ub(this).weekYear:NaN}get weekNumber(){return this.isValid?Ub(this).weekNumber:NaN}get weekday(){return this.isValid?Ub(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Wb(this).weekday:NaN}get localWeekNumber(){return this.isValid?Wb(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Wb(this).weekYear:NaN}get ordinal(){return this.isValid?k1(this.c).ordinal:NaN}get monthShort(){return this.isValid?Zi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Zi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Zi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Zi.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=ul(this.c),i=this.zone.offset(n-t),o=this.zone.offset(n+t),s=this.zone.offset(n-i*r),a=this.zone.offset(n-o*r);if(s===a)return[this];let u=n-s*r,d=n-a*r,p=D1(u,s),m=D1(d,a);return p.hour===m.hour&&p.minute===m.minute&&p.second===m.second&&p.millisecond===m.millisecond?[Gs(this,{ts:u}),Gs(this,{ts:d})]:[this]}get isInLeapYear(){return Ws(this.year)}get daysInMonth(){return hl(this.year,this.month)}get daysInYear(){return this.isValid?$o(this.year):NaN}get weeksInWeekYear(){return this.isValid?Us(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Us(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=rr.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(He.instance(t),r)}toLocal(){return this.setZone(Ve.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=qn(t,Ve.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]=$1(s,o,t)}return Gs(this,{ts:i,zone:t})}else return e.invalid(Yu(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return Gs(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=gl(t,N6),{minDaysInFirstWeek:n,startOfWeek:i}=_b(r,this.loc),o=!_e(r.weekYear)||!_e(r.weekNumber)||!_e(r.weekday),s=!_e(r.ordinal),a=!_e(r.year),u=!_e(r.month)||!_e(r.day),d=a||u,p=r.weekYear||r.weekNumber;if((d||s)&&p)throw new zn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&s)throw new zn("Can't mix ordinal dates with month/day");let m;o?m=yb({...Vu(this.c,n,i),...r},n,i):_e(r.ordinal)?(m={...this.toObject(),...r},_e(r.day)&&(m.day=Math.min(hl(m.year,m.month),m.day))):m=bb({...k1(this.c),...r});let[w,_]=$1(m,this.o,this.zone);return Gs(this,{ts:w,o:_})}plus(t){if(!this.isValid)return this;let r=gt.fromDurationLike(t);return Gs(this,P6(this,r))}minus(t){if(!this.isValid)return this;let r=gt.fromDurationLike(t).negate();return Gs(this,P6(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=gt.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?rr.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):Vb}toLocaleString(t=Ao,r={}){return this.isValid?rr.create(this.loc.clone(r),t).formatDateTime(this):Vb}toLocaleParts(t={}){return this.isValid?rr.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",a=zb(this,s);return a+="T",a+=A6(this,s,r,n,i,o),a}toISODate({format:t="extended"}={}){return this.isValid?zb(this,t==="extended"):null}toISOWeekDate(){return O1(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":"")+A6(this,s==="extended",r,t,n,o):null}toRFC2822(){return O1(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return O1(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?zb(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")),O1(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Vb}[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 gt.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=J7(r).map(gt.normalizeUnit),s=t.valueOf()>this.valueOf(),a=s?this:t,u=s?t:this,d=v6(a,u,o,i);return s?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(e.now(),t,r)}until(t){return this.isValid?Hi.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),R6(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?R6(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 xt("min requires all arguments be DateTimes");return Cb(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new xt("max requires all arguments be DateTimes");return Cb(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=Ue.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return $b(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=Ue.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Zu(o,t)}static fromFormatParser(t,r,n={}){if(_e(t)||_e(r))throw new xt("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=Ue.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new xt(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:a,zone:u,specificOffset:d,invalidReason:p}=r.explainFromTokens(t);return p?e.invalid(p):Tl(a,u,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return Ao}static get DATE_MED(){return hu}static get DATE_MED_WITH_WEEKDAY(){return K2}static get DATE_FULL(){return gu}static get DATE_HUGE(){return wu}static get TIME_SIMPLE(){return yu}static get TIME_WITH_SECONDS(){return bu}static get TIME_WITH_SHORT_OFFSET(){return _u}static get TIME_WITH_LONG_OFFSET(){return vu}static get TIME_24_SIMPLE(){return Su}static get TIME_24_WITH_SECONDS(){return xu}static get TIME_24_WITH_SHORT_OFFSET(){return Cu}static get TIME_24_WITH_LONG_OFFSET(){return Tu}static get DATETIME_SHORT(){return Eu}static get DATETIME_SHORT_WITH_SECONDS(){return Mu}static get DATETIME_MED(){return Lu}static get DATETIME_MED_WITH_SECONDS(){return Iu}static get DATETIME_MED_WITH_WEEKDAY(){return eb}static get DATETIME_FULL(){return Pu}static get DATETIME_FULL_WITH_SECONDS(){return Au}static get DATETIME_HUGE(){return Nu}static get DATETIME_HUGE_WITH_SECONDS(){return ku}}});var Fr=L(()=>{Oo();Hu();kb();Rb();Fs();fl();Ro();hb();S1();Do()});function Bs(e){return e instanceof kt?e===qt.instance:e?.toString().toLowerCase()==="unknown"}function U1(e){return Bs(e)?qt.instance:e}var qt,Ju=L(()=>{Fr();qt=class{};qt.instance=new Ct("Etc/UTC")});function El(e,t,r){return e<t?e-t:e>r?e-r:0}function Ml(e,t,r){return e<t?t:e>r?r:e}function Zn(e,t=!0){if(e instanceof kt)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return qt.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=He.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=Ct.create(e);if(!r.isValid){if(t)throw new Gb(W1.TimeZoneNotRecognized);return null}return r}var W1,KO,Gb,qs,Bb=L(()=>{Io();Ju();Fr();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(W1||(W1={}));KO={[W1.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},Gb=class e extends Error{constructor(t,r){super(gi(KO[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};qs=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,a=0,u){if(isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(a))return null;let d=oe.local(t,r).daysInMonth,p=oe.fromObject({day:Ml(n,1,d),year:t,month:Ml(r,1,12),hour:Ml(i,0,23),minute:Ml(o,0,59),second:Ml(s,0,59),millisecond:Ml(a,0,999)},{zone:Zn(u)});return p=p.plus({months:El(r,1,12),days:El(n,1,d),hours:El(i,0,23),minutes:El(o,0,59),seconds:El(s,0,59),milliseconds:El(a,0,999)}),new e(p)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=Zn(r);return t.isUnknownTimeZone||n===qt.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(oe.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Zn(r);return new e(oe.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(oe.fromMillis(t,{zone:qt.instance}))}static unknownDateJSToArcadeDate(t){return new e(oe.fromMillis(t.getTime(),{zone:qt.instance}))}static epochToArcadeDate(t,r="system"){let n=Zn(r);return new e(oe.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=Zn(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=Zn(r);return t.zone===qt.instance||n===qt.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=Zn(t);return new e(oe.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(oe.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===qt.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=oe.fromISO(t,{setZone:!0});return new e(r)}}});var F,e$,z,Yn,Hre,Wo=L(()=>{Io();(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"})(F||(F={}));e$={[F.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[F.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[F.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[F.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[F.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[F.UnsupportedOperator]:"Unsupported operator - {operator}",[F.UnsupportedSyntax]:"Unsupported syntax - {node}",[F.UnsupportedSqlFunction]:"Sql function not found = {function}",[F.InvalidDataType]:"Invalid sql data type",[F.InvalidDate]:"Invalid date encountered",[F.InvalidOperator]:"Invalid operator encountered",[F.InvalidTime]:"Invalid time encountered",[F.IllegalInterval]:"Illegal interval",[F.FunctionNotRecognized]:"Function not recognized",[F.InvalidTimeStamp]:"Invalid timestamp encountered",[F.InvalidParameterCount]:"Invalid parameter count for call to {name}",[F.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[F.YearMonthIntervals]:"Year-Month Intervals not supported",[F.CannotCastValue]:"Cannot cast value to the required data type"},z=class e extends Error{constructor(t,r){super(gi(e$[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};(function(e){e.NeverReach="NeverReach",e.NotImplemented="NotImplemented",e.Cancelled="Cancelled",e.InvalidStatResponse="InvalidStatResponse",e.InvalidRequest="InvalidRequest",e.RequestFailed="RequestFailed",e.MissingFeatures="MissingFeatures",e.AggregationFieldNotFound="AggregationFieldNotFound",e.DataElementsNotFound="DataElementsNotFound"})(Yn||(Yn={}));Hre={[Yn.Cancelled]:"Cancelled",[Yn.InvalidStatResponse]:"Invalid statistics response from service",[Yn.InvalidRequest]:"Invalid request",[Yn.RequestFailed]:"Request failed - {reason}",[Yn.MissingFeatures]:"Missing features",[Yn.AggregationFieldNotFound]:"Aggregation field not found",[Yn.DataElementsNotFound]:"Data elements not found on service",[Yn.NeverReach]:"Encountered unreachable logic",[Yn.NotImplemented]:"Not implemented"}});function je(e){return e?{remove(){e&&(e(),e=void 0)}}:t$}function r$(e){e.forEach(t=>t?.remove())}function js(e){return je(()=>r$(e))}var t$,Yr=L(()=>{t$={remove:()=>{}}});function V6(){return i$??globalThis.navigator?.language??"en"}function ln(){return Xu===void 0&&(Xu=V6()),Xu}function qb(e){return z1.push(e),je(()=>z1.splice(z1.indexOf(e),1))}function Ll(e){return G1.push(e),je(()=>G1.splice(G1.indexOf(e),1))}function o$(){let e=n$??V6();Xu!==e&&([...G1].forEach(t=>t(e)),Xu=e,[...z1].forEach(t=>t(e)))}var n$,Xu,i$,z1,G1,Yi=L(()=>{Yr();i$=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;z1=[];G1=[];globalThis.addEventListener?.("languagechange",o$)});function U6(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 jt,Qu=L(()=>{Bb();Yi();Fr();jt=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 oe.fromObject({day:this.day,month:this.month,year:this.year},{zone:Zn(t)})}toDateTimeLuxon(t){return oe.fromObject({day:this.day,month:this.month,year:this.year},{zone:Zn(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=U6(t)),!t)return"";let n=this.toDateTime("unknown");return qs.dateTimeToArcadeDate(n).toFormat(t,{locale:ln(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return qs.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 oe.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=oe.fromMillis(t,{zone:He.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=oe.fromSeconds(t,{zone:He.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=U6(r))&&n.push(r);else if(r===null||r===""){let i=oe.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=oe.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=oe.fromJSDate(new Date).setZone(Zn(t));return new e(r.year,r.month,r.day)}}});function W6(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var hr,Ku=L(()=>{Fr();hr=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=oe.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return W6(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return W6(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(oe.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,a=0,u=!1,d=0,p=0){let m=`${t.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,w="";s<10&&(w="0");let _=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${w+s.toString()}`;a!==0&&(_+="."+a.toString().padStart(3,"0"));let S=`${u?"-":"+"}${d.toString().padStart(2,"0")}:${p.toString().padStart(2,"0")}`;return new e(m+"T"+_+S)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let t=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return t&&(t=t.replace(".000","")),t}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(t){let r=this.toDateTime().plus(t);return e.fromDateTime(r)}}});function O(e,t,r,n){var i,o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(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 nr=L(()=>{});var B1,jb=L(()=>{B1="20240809"});var Qe,Hs=L(()=>{Be();hi();jb();Qe={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&&(v7(Qe,globalThis.esriConfig,!0),delete Qe.has),!Qe.assetsPath){{let e="4.31.0";Qe.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${B1}/assets`}Qe.defaultAssetsPath=Qe.assetsPath}});function s$(e,t,...r){console[e](`[${t}]`,...r)}function a$(...e){return E7(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var z6,Me,Ze=L(()=>{Hs();Be();Io();z6={info:0,warn:1,error:2,none:3},Me=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=a$(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 Qe.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",s$)}_matchLevel(t){let r=Qe.log.level||"warn";return z6[this._parentWithMember("level",r)]<=z6[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};Me._loggers=new Map,Me._tickCounter=0,Me._tickCounterScheduled=!1,Me._throttlingDisabled=!1});function q1(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var Hb=L(()=>{});function l$(e){return e==null?e:new Date(e)}function c$(e){return e==null?e:!!e}function u$(e){return e==null?e:e.toString()}function Xb(e){return e==null?e:(e=parseFloat(e),isNaN(e)?0:e)}function d$(e){return e==null?e:Math.round(parseFloat(e))}function f$(e){return null}function B6(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function j1(e,t){return t!=null&&e&&!(t instanceof e)}function q6(e){return e&&"isCollection"in e}function G6(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function p$(e,t){if(!t?.constructor||!q6(t.constructor))return Zb(e,t)?t:new e(t);let r=G6(e.prototype.itemType),n=G6(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(Zb(e,t),t):new e(t):t}function Zb(e,t){return!!B6(t)&&(Il().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+H1(e)+"'"),!0)}function m$(e,t){return t==null?t:q6(e)?p$(e,t):j1(e,t)?Zb(e,t)?t:new e(t):t}function H1(e){return e?.prototype?.declaredClass||"unknown"}function g$(e){switch(e){case Number:return Xb;case wi:return d$;case Boolean:return c$;case String:return u$;case Date:return l$;case td:return f$;default:return q1(h$,e,()=>m$.bind(null,e))}}function Mn(e,t){let r=g$(e);return arguments.length===1?r:r(t)}function Pl(e,t,r){return arguments.length===1?Pl.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function j6(e,t){return arguments.length===1?Pl(r=>Mn(e,r)):Pl(r=>Mn(e,r),t)}function H6(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>H6(e,t-1,n)):e(r)}function ed(e,t,r){if(arguments.length===2)return o=>ed(e,t,o);if(!r)return r;r=H6(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 Z6(e,t,r){return arguments.length===2?ed(n=>Mn(e,n),t):ed(n=>Mn(e,n),t,r)}function Z1(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function Y1(e,t){if(arguments.length===2)return Y1(e).call(null,t);let r=new Set,n=e.filter(a=>typeof a!="function"),i=e.filter(a=>typeof a=="function");for(let a of e)typeof a!="string"&&typeof a!="number"||r.add(a);let o=null,s=null;return(a,u)=>{if(a==null)return a;let d=typeof a,p=d==="string"||d==="number";return p&&(r.has(a)||i.some(m=>d==="string"&&m===String||d==="number"&&m===Number))||d==="object"&&i.some(m=>!j1(a,m))?a:(p&&n.length?(o||(o=n.map(m=>typeof m=="string"?`'${m}'`:`${m}`).join(", ")),Il().error("Accessor#set",`'${a}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof a=="object"&&i.length?(s||(s=i.map(m=>H1(m)).join(", ")),Il().error("Accessor#set",`'${a}' is not a valid value for this property, value must be one of ${s}`)):Il().error("Accessor#set",`'${a}' is not a valid value for this property`),u&&(u.valid=!1),null)}}function zo(e,t){if(arguments.length===2)return zo(e).call(null,t);let r={},n=[],i=[];for(let u in e.typeMap){let d=e.typeMap[u];r[u]=Mn(d),n.push(H1(d)),i.push(u)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,a=typeof e.key=="string"?u=>u[e.key]:e.key;return u=>{if(e.base&&!j1(e.base,u)||u==null)return u;let d=a(u)||e.defaultKeyValue,p=r[d];if(!p)return Il().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(!j1(e.typeMap[d],u))return u;if(typeof e.key=="string"&&!B6(u)){let m={};for(let w in u)w!==e.key&&(m[w]=u[w]);return p(m)}return p(u)}}function Y6(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function Qb(e){switch(e.type){case"native":return Mn(e.value);case"array":return Pl(Qb(e.value));case"one-of":return w$(e);default:return null}}function w$(e){let t=null;return(r,n)=>Jb(r,e)?r:(t==null&&(t=Yb(e)),Il().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function Yb(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case wi:return"integer";case Date:return"date";case td:return"null";default:return H1(e.value)}case"array":return`array of ${Yb(e.value)}`;case"one-of":{let t=e.values.map(r=>Yb(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function Jb(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case wi:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case td:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!Jb(r,t.value));case"one-of":return t.values.some(r=>Jb(e,r))}}var Il,h$,wi,td,Go=L(()=>{Be();Ze();Hb();Il=()=>Me.getLogger("esri.core.accessorSupport.ensureTypes");h$=new WeakMap;wi=class{},td=class{}});function yi(e){return e.__accessor__??null}function X6(e,t){return e?.metadata?.[t]!=null}function Al(e,t,r){return r?J1(e,t,{policy:r,path:""}):J1(e,t,null)}function J1(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,a="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,a=r.policy(s)),a==="replace"||a==="replace-arrays"&&Array.isArray(n[o]))return n[o]=t[o],n;if(n[o]===void 0)return n[o]=Ne(t[o]),n;let u=n[o],d=t[o];if(u===d)return n;if(Array.isArray(d)||Array.isArray(n))u=u?Array.isArray(u)?n[o]=u.slice():n[o]=[u]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(p=>{u.includes(p)||u.push(p)}));else if(d&&typeof d=="object")if(r){let p=r.path;r.path=s,n[o]=J1(u,d,r),r.path=p}else n[o]=J1(u,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function X1(e){return Array.isArray(e)?e:e.split(".")}function J6(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function y$(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...J6(r));return t}return J6(e)}function Kb(e,t,r,n){let i=y$(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return js(o)}return n(e,i[0],r)}var Bo=L(()=>{Yr();er()});function Q6(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=yi(t);return X6(n,r)?n.get(r):t[r]}function K6(e,t,r){if(e==null)return e;let n=Q6(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:K6(n,t,r+1)}function Zs(e,t,r=0){return typeof t!="string"||t.includes(".")?K6(e,X1(t),r):Q6(t,e)}function Jn(e,t){return Zs(e,t)}function e_(e,t){return Zs(t,e)!==void 0}var Ys=L(()=>{Bo()});function qo(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]=Ne(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 Nl(e,t){let r=qo(e),n=r[t];return n||(n=r[t]={}),n}function e8(e,t){return Al(e,t,_$)}function _$(e){return b$.test(e)?"replace":"merge"}var b$,kl=L(()=>{er();Bo();b$=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function v$(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(xn(n,t)??"").toString())}var Rl,t_=L(()=>{hi();Rl=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&v$(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var ye,Tr=L(()=>{er();Ze();t_();ye=class e extends Rl{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 Ne(r)}catch{return"[object]"}}))}}catch(t){throw Me.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)}};ye.prototype.type="error"});function Dl(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Dl(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Dl(Jn(e,i),o,r)}let n=e.__accessor__;n!=null&&S$(t,n),e[t]=r}}function S$(e,t){if(Q("esri-unknown-property-errors")&&!x$(e,t))throw new ye("set:unknown-property",C$(e,t))}function x$(e,t){return t.metadata[e]!=null}function C$(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var r_=L(()=>{Tr();Be();Ze();Ys()});function H(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=Nl(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&&Me.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 u=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,p;i.dependsOn=[u],i.get=function(){let m=Jn(this,u);if(typeof m=="function"){p||(p=u.split(".").slice(0,-1).join("."));let w=Jn(this,p);w&&(m=m.bind(w))}return m},i.readOnly||(i.set=d?function(m){this._override(r,m)}:function(m){Dl(this,u,m)})}let s=e.type,a=e.types;i.cast||(s?i.cast=T$(s):a&&(Array.isArray(a)?i.cast=Pl(zo(a[0])):i.cast=zo(a))),e8(i,e),e.range&&(i.cast=E$(i.cast,e.range))}}function Q1(e,t,r){let n=Nl(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 T$(e){let t=0,r=e;if(Y6(e))return Qb(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(Z1(n))return t===0?Y1(n):ed(Y1(n),t);if(t===1)return j6(n);if(t>1)return Z6(n,t);let i=e;return i.from?i.from:Mn(i)}function E$(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}}var ir=L(()=>{Ze();Go();Ys();kl();r_()});var K1,n_=L(()=>{K1=Symbol("Accessor-beforeDestroy")});var or,rd=L(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(or||(or={}))});var $e,e0=L(()=>{(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"})($e||($e={}))});function Ce(e){id.onObservableAccessed(e)}function Xn(e,t,r){if(t0)return i_(e,t,r);let n=null;return n8(e),n=t.call(r),i8(),n}function r8(e,t){return Xn(n0,e,t)}function i_(e,t,r){let n=t0;t0=!0,n8(e);let i=null;try{i=t.call(r)}catch(o){r0&&Me.getLogger("esri.core.accessorSupport.tracking").error(o)}return i8(),t0=n,i}function n8(e){id=e,nd.push(e)}function i8(){let e=nd.length;if(e>1){let t=nd.pop();id=nd[e-2],t.onTrackingEnd()}else if(e===1){let t=nd.pop();id=n0,t.onTrackingEnd()}else id=n0}function o_(e,t){if(t.flags&$e.DepTrackingInitialized)return;let r=r0;r0=!1,t.flags&$e.AutoTracked?i_(t,t.metadata.get,e):s_(e,t),r0=r}function s_(e,t){t.flags&$e.ExplicitlyTracking||(t.flags|=$e.ExplicitlyTracking,i_(t,()=>{let r=t.metadata.dependsOn||M$;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=X1(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=t8(s,i[o],o!==i.length-1)}else t8(e,n,!1)}),t.flags&=~$e.ExplicitlyTracking)}function t8(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=yi(e);if(i){let o=i.propertiesByName.get(n);o&&(Ce(o),o_(e,o))}return r?e[n]:void 0}var n0,nd,id,t0,r0,M$,Js=L(()=>{Be();Ze();Bo();e0();n0={onObservableAccessed:()=>{},onTrackingEnd:()=>{}},nd=[],id=n0;t0=!1,r0=!1;M$=[]});function o8(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 s8=L(()=>{});var od,a8=L(()=>{t_();od=class extends Rl{constructor(t,r,n){super(t,r,n)}};od.prototype.type="warning"});function i0(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var a_=L(()=>{});function c_(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||A$(e)&&Bi("read.reader",L$(e),t))}function L$(e){let t=e.ndimArray??0;if(t>1)return P$(e);if(t===1)return l8(e);if("type"in e&&u8(e.type)){let r=e.type.prototype?.itemType?.Type,n=l8(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let a=n(i,o,s);return a&&new e.type(a)}}return u_(e)}function u_(e){return"type"in e?I$(e.type):N$(e.types)}function I$(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void l_().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 c8(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>c8(e,i,r,n-1)):e(t,void 0,r)}function P$(e){let t=u_(e),r=c8.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let a=n,u=i;for(;a>0&&Array.isArray(u);)a--,u=u[0];if(u!==void 0)for(let d=0;d<a;d++)i=[i];return i}}function l8(e){let t=u_(e);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let a of r){let u=t(a,void 0,i);u!==void 0&&s.push(u)}return s}let o=t(r,void 0,i);return o!==void 0?[o]:void 0}}function u8(e){if(!i0(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?d_(t.Type):d8(t.Type))}function A$(e){return"types"in e?d8(e.types):d_(e.type)}function d_(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||u8(e))}function d8(e){for(let t in e.typeMap)if(!d_(e.typeMap[t]))return!1;return!0}function N$(e){let t=null,r=e.errorContext??"type",n=e.validate;return(i,o,s)=>{if(i==null)return i;let a=typeof i;if(a!=="object")return void l_().error(`Expected JSON value of type 'object' to deserialize, but got '${a}'`);t||(t=k$(e));let u=e.key;if(typeof u!="string")return;let d=i[u],p=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!p){let w=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new od(`${r}:unsupported`,w,{definition:i,context:s})),void l_().error(w)}let m=new p;return m.read(i,s),n?n(m):m}}function k$(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=qo(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 a=s.target,u=typeof a=="string"?a:e.key,d={};s.writer(r,d,u),d[u]&&(t[d[u]]=n)}return t}var l_,f8=L(()=>{Ze();hi();a8();kl();a_();l_=()=>Me.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function g8(e){if(e.json||(e.json={}),m8(e.json),h8(e.json),p8(e.json),e.json.origins)for(let t in e.json.origins)m8(e.json.origins[t]),h8(e.json.origins[t]),p8(e.json.origins[t]);return!0}function p8(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 m8(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 h8(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 w8=L(()=>{});function f_(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&&i0(e.type))?t.write.writer=$$:r>1?t.write.writer=F$(r):t.types?Array.isArray(t.types)?t.write.writer=D$(t.types[0]):t.write.writer=R$(t.types):t.write.writer=sd}function R$(e){return(t,r,n,i)=>t?y8(t,e,i)?sd(t,r,n,i):void 0:sd(t,r,n,i)}function y8(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 ye(`${n}:unsupported`,i,{definition:e,context:r})),Me.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function D$(e){return(t,r,n,i)=>!t||!Array.isArray(t)?sd(t,r,n,i):sd(t.filter(o=>y8(o,e,i)),r,n,i)}function sd(e,t,r,n){Bi(r,o0(e,n),t)}function o0(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?O$(e):e}function O$(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function $$(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>o0(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[o0(e,n)],Bi(r,i,t)}function b8(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>b8(n,t,r-1)):o0(e,t)}function F$(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=b8(t,i,e);let s=e,a=o;for(;s>0&&Array.isArray(a);)s--,a=a[0];if(a!==void 0)for(let u=0;u<s;u++)o=[o]}Bi(n,o,r)}}var _8=L(()=>{Tr();Ze();hi();a_()});function v8(e,t){return m_(e,"any",t?.origin)}function s0(e,t){return m_(e,"read",t?.origin)}function S8(e,t){return m_(e,"write",t?.origin)}function m_(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 V$(e){let t=U$(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?W$(n):t;c_(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),f_(i,n)}c_(t,e.json,!0),f_(t,e.json)}function U$(e){return e.json.types?p_(e.json):e.type?x8(e):p_(e)}function W$(e){return e.type?x8(e):p_(e)}function x8(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!Z1(r);)r=r[0],t++;return{type:r,ndimArray:t}}function p_(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 C8(e){g8(e)&&(o8(e),V$(e))}var a0=L(()=>{Go();s8();f8();w8();_8()});function Pe(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,G$(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!h_.has(i.initialize)&&(h_.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!g_.has(i.destroy)&&(g_.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);h_.clear(),g_.clear();let o=class extends t{constructor(...a){if(super(...a),this.constructor===o&&typeof this.postscript=="function"){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let u=r.length-1;u>=0;u--)r[u].call(this)}}),n.length){let u=!1,d=this[K1];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!u){u=!0,d.call(this);for(let p=0;p<n.length;p++)n[p].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};o.__accessorMetadata__=qo(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 z$(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;Ce(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 G$(e){let t=e.prototype,r=qo(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];C8(o),n[i]={enumerable:!0,configurable:!0,get:z$(i,o),set(s){let a=this.__accessor__;if(a!==void 0){if(!Object.isFrozen(this))return a.initialized&&o.readOnly?T8("read-only",i):a.lifecycle===or.CONSTRUCTED&&o.constructOnly?T8("construct-only",i):void a.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(e.prototype,n)}var h_,g_,T8,Ht=L(()=>{Be();Ze();n_();rd();kl();Js();a0();h_=new Set,g_=new Set;T8=(e,t)=>{Me.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function B$(e,t,r=!1){let n=`\u{1F6D1} DEPRECATED - ${t}`;if(!r)return void e.warn(n);let i=E8.get(e);i||(i=new Set,E8.set(e,i)),i.has(t)||(i.add(t),e.warn(n))}function l0(e,t,r={}){if(Q("esri-deprecation-warnings")){let{moduleName:n}=r;q$(e,`Function: ${(n?n+"::":"")+t+"()"}`,r)}}function q$(e,t,r={}){if(Q("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,a=t;n&&(a+=`
|
|
2
2
|
\u{1F6E0}\uFE0F Replacement: ${n}`),i&&(a+=`
|
|
3
3
|
\u2699\uFE0F Version: ${i}`),o&&(a+=`
|
|
4
4
|
\u{1F517} See ${o} for more details.`),B$(e,a,s)}}var E8,w_=L(()=>{Be();E8=new WeakMap});function y_(e){return e!=null&&typeof e[Symbol.iterator]=="function"}var M8=L(()=>{});function c0(e){return e||"_default_"}function L8(e){for(let t of e)t instanceof Ol?t.removeAll():t.remove()}function I8(e){return e!=null&&(!!e.remove||e instanceof Ol)}var Ol,P8=L(()=>{M8();Ol=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(y_(t)){let n=this._getOrCreateGroup(r);for(let i of t)I8(i)&&n.push(i)}else I8(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(c0(t))}remove(t){if(typeof t!="string"&&y_(t)){for(let r of t)this.remove(r);return this}return this.has(t)?(L8(this._getGroup(t)),this._groups.delete(c0(t)),this):this}removeAll(){return this._groups.forEach(L8),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(c0(t),r),r}_getGroup(t){return this._groups.get(c0(t))}}});function ad(e){return e?.destroy(),null}function ld(e){return e?.remove(),null}function A8(e){return e?.abort(),null}var Xs=L(()=>{});function j$(e){return e?.release&&typeof e.release=="function"}function H$(e){return e?.acquire&&typeof e.acquire=="function"}var Qn,cd=L(()=>{Qn=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):H$(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):j$(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()}};Qn.test={disabled:!1}});var u0,N8=L(()=>{Mo();u0=class{constructor(t,r){this._observers=t,this._observer=r}remove(){s7(this._observers,this._observer)}}});var $l,Z$,b_=L(()=>{Yr();N8();$l=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return Z$;this._observers==null&&(this._observers=[]);let r=this._observers,n=!1,i=!1,o=r.length;for(let s=0;s<o;++s){let a=r[s];if(a.destroyed)i=!0;else if(a===t){n=!0;break}}return n||(r.push(t),i&&this._removeDestroyedObservers()),new u0(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}}},Z$=je()});function d0(e){switch(e){case"defaults":return Re.DEFAULTS;case"service":return Re.SERVICE;case"portal-item":return Re.PORTAL_ITEM;case"web-scene":return Re.WEB_SCENE;case"web-map":return Re.WEB_MAP;case"link-chart":return Re.LINK_CHART;case"user":return Re.USER;default:return null}}function f0(e){switch(e){case Re.DEFAULTS:return"defaults";case Re.SERVICE:return"service";case Re.PORTAL_ITEM:return"portal-item";case Re.WEB_SCENE:return"web-scene";case Re.WEB_MAP:return"web-map";case Re.LINK_CHART:return"link-chart";case Re.USER:return"user"}}function k8(e){return f0(e)}var Re,Wie,Qs=L(()=>{(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"})(Re||(Re={}));Wie=Re.USER+1});var ud,R8=L(()=>{b_();Qs();Js();e0();ud=class extends $l{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this._accessed=null,this._handles=null,this.flags=0,this.flags=$e.Dirty|(r.nonNullable?$e.NonNullable:0)|(r.hasOwnProperty("value")?$e.HasDefaultValue:0)|(r.get===void 0?$e.DepTrackingInitialized:0)|(r.dependsOn===void 0?$e.AutoTracked:0)}destroy(){this.flags&$e.Dirty&&this.onCommitted(),super.destroy(),this._accessed=null,this._clearObservationHandles()}getComputed(t){Ce(this);let r=t.store,n=this.propertyName,i=this.flags,o=r.get(n);if(i&$e.Computing||~i&$e.Dirty&&r.has(n))return o;this.flags|=$e.Computing;let s=t.host,a;i&$e.AutoTracked?a=Xn(this,this.metadata.get,s):(s_(s,this),a=this.metadata.get.call(s)),r.set(n,a,Re.COMPUTED);let u=r.get(n);return u===o?this.flags&=~$e.Dirty:r8(this.commit,this),this.flags&=~$e.Computing,u}onObservableAccessed(t){t!==this&&(this._accessed??(this._accessed=new Set),this._accessed.add(t))}onTrackingEnd(){this._clearObservationHandles(),this.flags|=$e.DepTrackingInitialized,this._accessed!=null&&(this._handles??(this._handles=[]),this._accessed.forEach(t=>{this._handles.push(t.observe(this))}),this._accessed.clear())}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~$e.Dirty,this.onCommitted()}_clearObservationHandles(){let t=this._handles;if(t!==null){for(let r=0;r<t.length;++r)t[r].remove();t.length=0}}onInvalidated(){~this.flags&$e.Overridden&&(this.flags|=$e.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 p0,D8=L(()=>{er();Qs();p0=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,Ne(n))}),r}get(t){return this._values.get(t)}originOf(){return Re.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 m0(e,t,r){return e!==void 0}function O8(e,t,r,n){return e!==void 0&&(!(r==null&&e.flags&$e.NonNullable)||(n.lifecycle,or.INITIALIZING,!1))}var h0,v_,__,$8=L(()=>{Be();er();Ze();cd();rd();R8();Qs();D8();Js();e0();h0=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=or.INITIALIZING,this.store=new p0,this._origin=Re.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new ud(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=or.CONSTRUCTING}constructed(){this.lifecycle=or.CONSTRUCTED}destroy(){this.lifecycle=or.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==or.INITIALIZING}get(t){let r=this.propertiesByName.get(t);if(r.metadata.get)return r.getComputed(this);Ce(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&$e.HasDefaultValue)return"defaults"}return f0(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(m0(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);m0(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!m0(i))return"";let o=new Set,s=Xn({onObservableAccessed:u=>o.add(u),onTrackingEnd:()=>{}},()=>i.metadata.get?.call(t)),a=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
|