@arcgis/coding-components 5.0.0-next.93 → 5.0.0-next.95
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/addons/arcade-coding-assistant/chat-helper.d.ts +3 -3
- package/dist/addons.js +26 -25
- package/dist/cdn/{ETMVFEBE.js → 26R4B4SR.js} +2 -2
- package/dist/cdn/{XOQ3RM5Y.js → 54FZPXUP.js} +2 -2
- package/dist/cdn/{ZBXNENKW.js → 5DAT5ZFW.js} +2 -2
- package/dist/cdn/{ITSWV2D2.js → BAKKWJI7.js} +2 -2
- package/dist/cdn/{BYEBULNN.js → CJ6SJGTO.js} +2 -2
- package/dist/cdn/{QONUPJDY.js → CLUG3LC4.js} +1 -1
- package/dist/cdn/{5XCYAKJJ.js → D5OWDVIG.js} +2 -2
- package/dist/cdn/{4P5HZOXS.js → DFLUHXMI.js} +2 -2
- package/dist/cdn/{LBTNX3UD.js → DIFXXFOE.js} +2 -2
- package/dist/cdn/{A323TEFP.js → DNW5A5G6.js} +2 -2
- package/dist/cdn/DPEHWNF4.js +14 -0
- package/dist/cdn/{QDDMGH2B.js → EMLWH6JD.js} +2 -2
- package/dist/cdn/{VAELJETA.js → FDTYASER.js} +2 -2
- package/dist/cdn/{UGVEW6ZQ.js → H44HKSEL.js} +1 -1
- package/dist/cdn/{5CEEVUCZ.js → HQO32HVD.js} +2 -2
- package/dist/cdn/{7FSEYOGD.js → HR7CEM5J.js} +2 -2
- package/dist/cdn/J5JG7YJY.js +4 -0
- package/dist/cdn/KFNUX4NF.js +4 -0
- package/dist/cdn/{I4JO32WF.js → KU2RSLW6.js} +2 -2
- package/dist/cdn/{PGSOHB37.js → KUOOSF2Y.js} +2 -2
- package/dist/cdn/MMTP5K7U.js +6 -0
- package/dist/cdn/{5EBSP7DM.js → NA3DW5WP.js} +2 -2
- package/dist/cdn/{V5FQNTXG.js → P3ADDEIL.js} +2 -2
- package/dist/cdn/{Z4L7OJKT.js → PJE2D7RB.js} +2 -2
- package/dist/cdn/{ZCT5XGMI.js → Q6M3EIWR.js} +1 -1
- package/dist/cdn/QGWBJM2F.js +4 -0
- package/dist/cdn/{GYL2QCR7.js → QNHGH7LN.js} +2 -2
- package/dist/cdn/{CT7TBHUK.js → QSZ5Q2P3.js} +2 -2
- package/dist/cdn/{CY2NIZSQ.js → QXAPL2AZ.js} +1 -1
- package/dist/cdn/{LC7PNNVV.js → R3ZFQ3NB.js} +3 -3
- package/dist/cdn/{N7HNKUKK.js → RTU52FLE.js} +2 -2
- package/dist/cdn/SE7546PF.js +4 -0
- package/dist/cdn/T5QY5OT3.js +4 -0
- package/dist/cdn/TBTRAJ2W.js +4 -0
- package/dist/cdn/{URZFEWH3.js → UEGR62F7.js} +2 -2
- package/dist/cdn/{PO35LCAS.js → UHWI5CWO.js} +2 -2
- package/dist/cdn/UQDJQX5N.js +4 -0
- package/dist/cdn/{K3L3TIEP.js → V5OOACSR.js} +2 -2
- package/dist/cdn/VLKLFWDG.js +4 -0
- package/dist/cdn/{2X52Y4DY.js → VYAAHXIM.js} +1 -1
- package/dist/cdn/W3HRDCHH.js +6 -0
- package/dist/cdn/{P6IUHZNJ.js → W5PCHPTR.js} +2 -2
- package/dist/cdn/{53OPBGH3.js → W6PBVDLA.js} +1 -1
- package/dist/cdn/WDT3UXU3.js +4 -0
- package/dist/cdn/WJOUYKK2.js +4 -0
- package/dist/cdn/{TRILF5XK.js → XLMLAWJH.js} +2 -2
- package/dist/cdn/{UTNSHEMF.js → XQXLHCC5.js} +1 -1
- package/dist/cdn/{2GQYFHB5.js → ZV42HAPL.js} +2 -2
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +759 -757
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-contribution.js +1 -1
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +55 -54
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/colorize.js +1 -1
- package/dist/chunks/editor.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +203 -202
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/monaco-theme.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +67 -66
- package/dist/chunks/sql-expr-service-accessors.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utilities.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +221 -110
- package/dist/components/arcgis-arcade-coding-assistant/types.d.ts +4 -4
- package/dist/components/arcgis-arcade-editor/customElement.js +67 -65
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-code-viewer/customElement.js +15 -14
- package/dist/components/arcgis-editor-variables/customElement.js +10 -9
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +22 -21
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/monacoStyles.js +1 -1
- package/dist/utils/arcade-assistant/aiContext.d.ts +6 -0
- package/dist/utils/arcade-assistant/types.d.ts +39 -0
- package/package.json +5 -5
- package/dist/cdn/3AOVYJDA.js +0 -4
- package/dist/cdn/DGSXN3MJ.js +0 -6
- package/dist/cdn/HNHID2GQ.js +0 -4
- package/dist/cdn/IBBEGZKT.js +0 -4
- package/dist/cdn/MIV62SB5.js +0 -4
- package/dist/cdn/MNSM3SGU.js +0 -4
- package/dist/cdn/PQAIRRA6.js +0 -4
- package/dist/cdn/SYFORY5P.js +0 -4
- package/dist/cdn/UPIRR7NI.js +0 -14
- package/dist/cdn/UVW7RTZM.js +0 -4
- package/dist/cdn/VFIPWTCQ.js +0 -4
- package/dist/cdn/WSQRFXIA.js +0 -4
- package/dist/cdn/YNQH23OP.js +0 -6
|
@@ -4725,7 +4725,7 @@ var Wd;
|
|
|
4725
4725
|
}
|
|
4726
4726
|
t.toIcon = r;
|
|
4727
4727
|
})(Wd || (Wd = {}));
|
|
4728
|
-
let
|
|
4728
|
+
let dT = class xn {
|
|
4729
4729
|
static {
|
|
4730
4730
|
this.Comment = new xn("comment");
|
|
4731
4731
|
}
|
|
@@ -9732,10 +9732,13 @@ Types found: \${types}.`,
|
|
|
9732
9732
|
e.minParams,
|
|
9733
9733
|
e.maxParams
|
|
9734
9734
|
)), e ? r.replace(/\${(.*?)}/g, (n, s) => e[s]?.toString() ?? "") : r;
|
|
9735
|
+
}, Z8 = (t) => t, X8 = (t, e, r, n) => {
|
|
9736
|
+
const s = Z8(e);
|
|
9737
|
+
console[t](`[${s}]: ${r}`);
|
|
9735
9738
|
};
|
|
9736
9739
|
var Ni = /* @__PURE__ */ ((t) => (t.CASE = "CASE", t.CASE_ELSE = "ELSE", t.CASE_THEN = "THEN", t.CASE_WHEN = "WHEN", t.COMMA = ",", t.DOUBLE_QUOTE = '"', t.EMPTY = "", t.END = "END", t.INTERVAL = "INTERVAL", t.LEFT_PARENTHESES = "(", t.NEW_LINE = `
|
|
9737
9740
|
`, t.RIGHT_PARENTHESES = ")", t.SINGLE_QUOTE = "'", t.WHITE_SPACE = " ", t))(Ni || {}), Tn = /* @__PURE__ */ ((t) => (t.BOOLEAN = "BOOLEAN", t.DOUBLE = "DOUBLE", t.EXPRESSION_LIST = "EXPRESSION-LIST", t.FLOAT = "FLOAT", t.INTEGER = "INTEGER", t.NULL = "NULL", t.NUMBER = "NUMBER", t.REAL = "REAL", t.STRING = "STRING", t.SMALL_INT = "SMALLINT", t.UNKNOWN_FUNCTION = "UNKNOWN_FUNCTION", t))(Tn || {});
|
|
9738
|
-
const
|
|
9741
|
+
const J8 = /\d+/u, cg = [
|
|
9739
9742
|
"string",
|
|
9740
9743
|
"number",
|
|
9741
9744
|
"integer",
|
|
@@ -9748,10 +9751,10 @@ const Z8 = /\d+/u, cg = [
|
|
|
9748
9751
|
"current-time",
|
|
9749
9752
|
"column-reference"
|
|
9750
9753
|
];
|
|
9751
|
-
function
|
|
9754
|
+
function Q8(t, e) {
|
|
9752
9755
|
return Object.values(t).includes(e) ? e : void 0;
|
|
9753
9756
|
}
|
|
9754
|
-
const
|
|
9757
|
+
const K8 = (t) => {
|
|
9755
9758
|
switch (t.operator) {
|
|
9756
9759
|
case "AND":
|
|
9757
9760
|
case "OR":
|
|
@@ -9778,7 +9781,7 @@ const J8 = (t) => {
|
|
|
9778
9781
|
case "||":
|
|
9779
9782
|
return "string";
|
|
9780
9783
|
}
|
|
9781
|
-
},
|
|
9784
|
+
}, e7 = (t) => {
|
|
9782
9785
|
switch (t.type) {
|
|
9783
9786
|
case "number":
|
|
9784
9787
|
return "number";
|
|
@@ -9792,7 +9795,7 @@ const J8 = (t) => {
|
|
|
9792
9795
|
case "boolean":
|
|
9793
9796
|
return "boolean";
|
|
9794
9797
|
default:
|
|
9795
|
-
return
|
|
9798
|
+
return X8("error", "sql-expr validator", `Encountered an unexpected variable type: ${t.type}`), "null";
|
|
9796
9799
|
}
|
|
9797
9800
|
}, fn = (t, e) => {
|
|
9798
9801
|
if (t.type === "function" && t.name.toLowerCase() === "nullif")
|
|
@@ -9811,7 +9814,7 @@ const J8 = (t) => {
|
|
|
9811
9814
|
case "unary-expression":
|
|
9812
9815
|
return "boolean";
|
|
9813
9816
|
case "binary-expression":
|
|
9814
|
-
return
|
|
9817
|
+
return K8(t);
|
|
9815
9818
|
case "null":
|
|
9816
9819
|
case "boolean":
|
|
9817
9820
|
case "string":
|
|
@@ -9826,7 +9829,7 @@ const J8 = (t) => {
|
|
|
9826
9829
|
{
|
|
9827
9830
|
const r = e.find((n) => n.name === t.column);
|
|
9828
9831
|
if (r)
|
|
9829
|
-
return
|
|
9832
|
+
return e7(r);
|
|
9830
9833
|
}
|
|
9831
9834
|
return t.type;
|
|
9832
9835
|
case "current-user":
|
|
@@ -9937,11 +9940,11 @@ const J8 = (t) => {
|
|
|
9937
9940
|
"real"
|
|
9938
9941
|
], u = /* @__PURE__ */ new Set([n, s]);
|
|
9939
9942
|
return !!(u.size === 2 && u.has("interval") && i.some((l) => u.has(l)));
|
|
9940
|
-
},
|
|
9943
|
+
}, t7 = (t, e, r) => {
|
|
9941
9944
|
const n = fn(t, r), s = fn(e, r);
|
|
9942
9945
|
return n === "unknown_function" || n === "time-only" || s === "unknown_function" || s === "time-only" ? !1 : !!(ka(n) && ka(s));
|
|
9943
9946
|
}, hg = (t, e) => {
|
|
9944
|
-
const r =
|
|
9947
|
+
const r = Q8(Ni, e) === "," ? ", " : " | ";
|
|
9945
9948
|
return t.map((n) => `"${n.toLowerCase()}"`).sort().join(r);
|
|
9946
9949
|
}, Xr = (t) => (
|
|
9947
9950
|
/*
|
|
@@ -10031,13 +10034,13 @@ function Nr(t) {
|
|
|
10031
10034
|
return t instanceof Date;
|
|
10032
10035
|
}
|
|
10033
10036
|
let t1;
|
|
10034
|
-
async function
|
|
10037
|
+
async function r7() {
|
|
10035
10038
|
return t1 == null && (t1 = Promise.resolve().then(function() {
|
|
10036
|
-
return
|
|
10039
|
+
return uT;
|
|
10037
10040
|
}).then((t) => new t.WhereClauseCache(500, 500))), t1;
|
|
10038
10041
|
}
|
|
10039
10042
|
async function v_(t, e) {
|
|
10040
|
-
const r = await
|
|
10043
|
+
const r = await r7(), n = r.get(t, e);
|
|
10041
10044
|
if (n == null) throw r.getError(t, e);
|
|
10042
10045
|
return n;
|
|
10043
10046
|
}
|
|
@@ -10061,22 +10064,22 @@ const dg = {
|
|
|
10061
10064
|
function N_(t) {
|
|
10062
10065
|
return !(t instanceof Error && (!("location" in t) || !("format" in t)));
|
|
10063
10066
|
}
|
|
10064
|
-
function
|
|
10067
|
+
function n7(t) {
|
|
10065
10068
|
return /^Expected "\S+"/u.test(t.message);
|
|
10066
10069
|
}
|
|
10067
|
-
function
|
|
10070
|
+
function s7(t) {
|
|
10068
10071
|
return t.message.match(/Expected (?<expectedToken>.*) but/u)?.groups?.expectedToken?.split(", ").reduce((e, r, n, s) => (n === s.length - 1 && r.startsWith("or ") && (r = r.slice(3)), r = r.replace(/^"|"$/gu, ""), r in dg && (r = dg[r]), S_.has(r) || e.push(r), e), []);
|
|
10069
10072
|
}
|
|
10070
|
-
function
|
|
10073
|
+
function i7(t) {
|
|
10071
10074
|
if (t.message.match(/but end of input found/u))
|
|
10072
10075
|
return "Invalid syntax: unexpected end of SQL Expression.";
|
|
10073
|
-
const r = t.message.match(/but (?<unexpectedToken>.*) found/u)?.groups?.unexpectedToken, n =
|
|
10076
|
+
const r = t.message.match(/but (?<unexpectedToken>.*) found/u)?.groups?.unexpectedToken, n = s7(t)?.map((s) => `• ${s}`).join(`
|
|
10074
10077
|
`);
|
|
10075
10078
|
return r ? `Invalid syntax: unexpected token ${r}.${n ? `
|
|
10076
10079
|
Expected one of the following:
|
|
10077
10080
|
${n}` : ""}` : "Invalid syntax.";
|
|
10078
10081
|
}
|
|
10079
|
-
function
|
|
10082
|
+
function o7(t) {
|
|
10080
10083
|
if ("expected" in t && Array.isArray(t.expected)) {
|
|
10081
10084
|
const e = t, r = /* @__PURE__ */ new Set();
|
|
10082
10085
|
return e.expected.filter((s) => s.type === "literal").reduce((s, i) => (!r.has(i.text) && !S_.has(i.text) && (r.add(i.text), G8.includes(i.text) ? s.push({ category: "keywords", text: i.text }) : B8.includes(i.text) ? s.push({ category: "operators", text: i.text }) : q8.includes(i.text) && s.push({ category: "functions", text: i.text })), s), []);
|
|
@@ -10084,7 +10087,7 @@ function s7(t) {
|
|
|
10084
10087
|
return [];
|
|
10085
10088
|
}
|
|
10086
10089
|
const E_ = -2;
|
|
10087
|
-
function
|
|
10090
|
+
function a7(t, e) {
|
|
10088
10091
|
if (!Object.values(Le).includes(e.type))
|
|
10089
10092
|
return -1;
|
|
10090
10093
|
switch (e.type) {
|
|
@@ -10108,7 +10111,7 @@ function i7(t, e) {
|
|
|
10108
10111
|
return -1;
|
|
10109
10112
|
}
|
|
10110
10113
|
}
|
|
10111
|
-
const
|
|
10114
|
+
const u7 = [
|
|
10112
10115
|
"boolean",
|
|
10113
10116
|
"column-reference",
|
|
10114
10117
|
"current-time",
|
|
@@ -10127,9 +10130,9 @@ const o7 = [
|
|
|
10127
10130
|
];
|
|
10128
10131
|
function x_(t, e) {
|
|
10129
10132
|
let r = t;
|
|
10130
|
-
return
|
|
10133
|
+
return u7.includes(r.type) && e.length > 1 ? (r = e.at(E_), e.pop(), x_(r, e)) : r;
|
|
10131
10134
|
}
|
|
10132
|
-
function
|
|
10135
|
+
function l7(t) {
|
|
10133
10136
|
const e = [];
|
|
10134
10137
|
for (let r = 0; r < t.length; r++)
|
|
10135
10138
|
t[r] === "(" ? e.push(r) : t[r] === ")" && e.length > 0 && e.pop();
|
|
@@ -10137,7 +10140,7 @@ function a7(t) {
|
|
|
10137
10140
|
t += ")", e.pop();
|
|
10138
10141
|
return t;
|
|
10139
10142
|
}
|
|
10140
|
-
const
|
|
10143
|
+
const c7 = ["+", "-", "*", "/", "||"], f7 = [
|
|
10141
10144
|
// [(string or number), data-type]
|
|
10142
10145
|
"cast",
|
|
10143
10146
|
// [interval-period, date]
|
|
@@ -10147,7 +10150,7 @@ const u7 = ["+", "-", "*", "/", "||"], l7 = [
|
|
|
10147
10150
|
// [null, string, string]
|
|
10148
10151
|
"coalesce"
|
|
10149
10152
|
];
|
|
10150
|
-
class
|
|
10153
|
+
class h7 {
|
|
10151
10154
|
// #endregion
|
|
10152
10155
|
constructor(e, r) {
|
|
10153
10156
|
this.callStack = [], this._fields = [], this.markers = [], this._sdkFunctions = e.flatMap((n) => n.items), this._fields = r.profile ? w_(r.profile) : [];
|
|
@@ -10184,7 +10187,7 @@ class c7 {
|
|
|
10184
10187
|
// example: INTERVAL '1' DAY
|
|
10185
10188
|
case "interval": {
|
|
10186
10189
|
const r = e.value.value;
|
|
10187
|
-
if (!
|
|
10190
|
+
if (!J8.test(r) || e.value.type !== "string") {
|
|
10188
10191
|
const n = rr(Yt.ExpectedNumericalLiteral), s = this._getRange(e.value);
|
|
10189
10192
|
Ut(n, s, this.markers);
|
|
10190
10193
|
return;
|
|
@@ -10237,7 +10240,7 @@ class c7 {
|
|
|
10237
10240
|
// example: COALESCE('1', '2','3'), where '1', '2', '3' are the expression-list
|
|
10238
10241
|
case "expression-list": {
|
|
10239
10242
|
const r = e.value, n = /* @__PURE__ */ new Set(), s = this.callStack.at(E_);
|
|
10240
|
-
if (s?.type === "function" &&
|
|
10243
|
+
if (s?.type === "function" && f7.includes(s?.name?.toLowerCase()))
|
|
10241
10244
|
return;
|
|
10242
10245
|
if (r.forEach((i) => {
|
|
10243
10246
|
let u = fn(i, this._fields);
|
|
@@ -10262,7 +10265,7 @@ class c7 {
|
|
|
10262
10265
|
// example: 2 + 2
|
|
10263
10266
|
case "binary-expression": {
|
|
10264
10267
|
const r = this.callStack.length === 1, n = e.left, s = e.right, i = fn(n, this._fields), u = fn(s, this._fields);
|
|
10265
|
-
if (r && !
|
|
10268
|
+
if (r && !c7.includes(e.operator)) {
|
|
10266
10269
|
const l = `Cannot perform binary operation '${e.operator}' at root node.`;
|
|
10267
10270
|
Ut(l, e.location, this.markers, !0);
|
|
10268
10271
|
return;
|
|
@@ -10331,7 +10334,7 @@ class c7 {
|
|
|
10331
10334
|
});
|
|
10332
10335
|
Ut(l, e.location, this.markers, !0);
|
|
10333
10336
|
}
|
|
10334
|
-
if (i !== u && !fg(n, s, this._fields) && !
|
|
10337
|
+
if (i !== u && !fg(n, s, this._fields) && !t7(n, s, this._fields)) {
|
|
10335
10338
|
const l = rr(Yt.MismatchedTypes, {
|
|
10336
10339
|
leftValue: _s(n),
|
|
10337
10340
|
providedType: i,
|
|
@@ -10392,7 +10395,6 @@ class c7 {
|
|
|
10392
10395
|
case "data-type":
|
|
10393
10396
|
return;
|
|
10394
10397
|
case "unary-expression":
|
|
10395
|
-
console.warn("Unexpected unary expression found.");
|
|
10396
10398
|
return;
|
|
10397
10399
|
case "when-clause":
|
|
10398
10400
|
return;
|
|
@@ -10407,7 +10409,7 @@ class c7 {
|
|
|
10407
10409
|
}
|
|
10408
10410
|
const n = e;
|
|
10409
10411
|
let s = n.message;
|
|
10410
|
-
|
|
10412
|
+
n7(n) && (s = i7(n));
|
|
10411
10413
|
const i = {
|
|
10412
10414
|
startLineNumber: n.location.start.line,
|
|
10413
10415
|
endLineNumber: n.location.end.line,
|
|
@@ -10518,7 +10520,7 @@ const er = {
|
|
|
10518
10520
|
snippets: "b",
|
|
10519
10521
|
keywords: "c"
|
|
10520
10522
|
};
|
|
10521
|
-
function
|
|
10523
|
+
function d7(t) {
|
|
10522
10524
|
switch (t) {
|
|
10523
10525
|
case "functions":
|
|
10524
10526
|
return Dt.Function;
|
|
@@ -10528,7 +10530,7 @@ function f7(t) {
|
|
|
10528
10530
|
return Dt.Operator;
|
|
10529
10531
|
}
|
|
10530
10532
|
}
|
|
10531
|
-
class
|
|
10533
|
+
class m7 {
|
|
10532
10534
|
// #endregion
|
|
10533
10535
|
constructor(e, r) {
|
|
10534
10536
|
this._fields = [], this._sdkFunctions = e, this._fields = r;
|
|
@@ -10588,7 +10590,7 @@ class h7 {
|
|
|
10588
10590
|
const i = x_(n, s);
|
|
10589
10591
|
if (!i)
|
|
10590
10592
|
return [];
|
|
10591
|
-
const u =
|
|
10593
|
+
const u = a7(n, i);
|
|
10592
10594
|
switch (i.type) {
|
|
10593
10595
|
case "case-expression":
|
|
10594
10596
|
i.else || e.completionItems.push({
|
|
@@ -10625,7 +10627,7 @@ class h7 {
|
|
|
10625
10627
|
if (!N_(e))
|
|
10626
10628
|
return s.completionItems;
|
|
10627
10629
|
if (!this._isPositionWithinSQLSourcePosition(r, e.location)) {
|
|
10628
|
-
const u = this._sliceToPosition(r, s.modelContent), l =
|
|
10630
|
+
const u = this._sliceToPosition(r, s.modelContent), l = l7(u);
|
|
10629
10631
|
return await this.getCompletions({
|
|
10630
10632
|
range: n,
|
|
10631
10633
|
modelContent: l,
|
|
@@ -10635,10 +10637,10 @@ class h7 {
|
|
|
10635
10637
|
terminateOnError: !0
|
|
10636
10638
|
});
|
|
10637
10639
|
}
|
|
10638
|
-
return
|
|
10640
|
+
return o7(e).forEach((u) => {
|
|
10639
10641
|
s.completionItems.push({
|
|
10640
10642
|
label: u.text,
|
|
10641
|
-
kind:
|
|
10643
|
+
kind: d7(u.category),
|
|
10642
10644
|
insertText: u.text,
|
|
10643
10645
|
sortText: er[u.category],
|
|
10644
10646
|
range: n
|
|
@@ -10960,9 +10962,9 @@ class h7 {
|
|
|
10960
10962
|
// #endregion
|
|
10961
10963
|
}
|
|
10962
10964
|
globalThis.onmessage = () => {
|
|
10963
|
-
m_((t, e) => new
|
|
10965
|
+
m_((t, e) => new p7(t, e));
|
|
10964
10966
|
};
|
|
10965
|
-
class
|
|
10967
|
+
class p7 {
|
|
10966
10968
|
constructor(e, { languageId: r }) {
|
|
10967
10969
|
this._ctx = e, this._languageId = r, this._apiService = new z8({ getApiLibrary: this._ctx.host.getApiLibrary });
|
|
10968
10970
|
}
|
|
@@ -10970,7 +10972,7 @@ class d7 {
|
|
|
10970
10972
|
const n = this._getTextDocument(e);
|
|
10971
10973
|
if (!n)
|
|
10972
10974
|
return await Promise.resolve([]);
|
|
10973
|
-
const s = await this.getApiLibrary(r), i = new
|
|
10975
|
+
const s = await this.getApiLibrary(r), i = new h7(s, r);
|
|
10974
10976
|
return await i.validateModel(n.getText()), await Promise.resolve(i.markers);
|
|
10975
10977
|
}
|
|
10976
10978
|
// Note: the return type deviates from arcade. here were turn languages.completionList instead of CompletionList from "vscode-languageserver-types"
|
|
@@ -10978,7 +10980,7 @@ class d7 {
|
|
|
10978
10980
|
const i = this._getTextDocument(e);
|
|
10979
10981
|
if (!i)
|
|
10980
10982
|
return await Promise.resolve({ suggestions: [] });
|
|
10981
|
-
const u = i.getText(), l = await this.getApiDatabase(s), c = s.profile ? w_(s.profile) : [], _ = await new
|
|
10983
|
+
const u = i.getText(), l = await this.getApiDatabase(s), c = s.profile ? w_(s.profile) : [], _ = await new m7(l, c).getCompletions({ range: r, modelContent: u, position: n });
|
|
10982
10984
|
return await Promise.resolve({ suggestions: _ });
|
|
10983
10985
|
}
|
|
10984
10986
|
// async doFormat(modelId: string /*context: ApiContext*/): Promise<TextEdit[]> {
|
|
@@ -11043,8 +11045,8 @@ $.add = (t, e, r, n) => {
|
|
|
11043
11045
|
return t.href = "?'", t.href.includes("?%27");
|
|
11044
11046
|
}));
|
|
11045
11047
|
})();
|
|
11046
|
-
const yh = -3,
|
|
11047
|
-
let
|
|
11048
|
+
const yh = -3, g7 = yh - 1, _7 = !!$("esri-tests-disable-gpu-memory-measurements");
|
|
11049
|
+
let y7 = class {
|
|
11048
11050
|
get size() {
|
|
11049
11051
|
return this._size;
|
|
11050
11052
|
}
|
|
@@ -11074,9 +11076,9 @@ let g7 = class {
|
|
|
11074
11076
|
const u = this._db.get(r);
|
|
11075
11077
|
if (u && (this._size -= u.size, e.size -= u.size, this._db.delete(r), u.entry !== n && this._notifyRemove(r, u.entry, u.size, 0)), s > this._maxSize) return void this._notifyRemove(r, n, s, 0);
|
|
11076
11078
|
if (n === void 0) return void console.warn("Refusing to cache undefined entry ");
|
|
11077
|
-
if (!s || s < 0) return
|
|
11078
|
-
const l = 1 + Math.max(i,
|
|
11079
|
-
this._db.set(r, new
|
|
11079
|
+
if (!s || s < 0) return _7 || console.warn(`Refusing to cache entry with size ${s} for key ${r}`), void this._notifyRemove(r, n, 0, 0);
|
|
11080
|
+
const l = 1 + Math.max(i, g7) - yh;
|
|
11081
|
+
this._db.set(r, new b7(n, s, l)), this._size += s, e.size += s, this._checkSize();
|
|
11080
11082
|
}
|
|
11081
11083
|
updateSize(e, r) {
|
|
11082
11084
|
r = e.id + r;
|
|
@@ -11188,7 +11190,7 @@ let g7 = class {
|
|
|
11188
11190
|
s != null && s > 0 && (this._size += s, n && (n.size += s), r.lives = r.lifetime, r.size = s, this._db.set(e, r));
|
|
11189
11191
|
} else --r.lives, this._db.set(e, r);
|
|
11190
11192
|
}
|
|
11191
|
-
},
|
|
11193
|
+
}, b7 = class {
|
|
11192
11194
|
constructor(e, r, n) {
|
|
11193
11195
|
this.entry = e, this.size = r, this.lifetime = n, this.lives = n;
|
|
11194
11196
|
}
|
|
@@ -11196,7 +11198,7 @@ let g7 = class {
|
|
|
11196
11198
|
const r1 = ":";
|
|
11197
11199
|
let mg = class {
|
|
11198
11200
|
constructor(e, r) {
|
|
11199
|
-
this.removeFunc = r, this._storage = new
|
|
11201
|
+
this.removeFunc = r, this._storage = new y7(), this.id = "", this.name = "", this.size = 0, this._storage.maxSize = e, this._storage.register(this);
|
|
11200
11202
|
}
|
|
11201
11203
|
destroy() {
|
|
11202
11204
|
this._storage.deregister(this), this._storage.destroy(), this._storage = null;
|
|
@@ -11222,7 +11224,7 @@ let mg = class {
|
|
|
11222
11224
|
resetHitRate() {
|
|
11223
11225
|
}
|
|
11224
11226
|
};
|
|
11225
|
-
function
|
|
11227
|
+
function w7(t, e, r, n, s, i, u) {
|
|
11226
11228
|
if (t == null && n == null) return !0;
|
|
11227
11229
|
e = Math.max(0, e), s = Math.max(0, s), r = Math.max(0, r < 0 ? (t?.length ?? 0) + r : r), i = Math.max(0, i < 0 ? (n?.length ?? 0) + i : i);
|
|
11228
11230
|
const l = r - e;
|
|
@@ -11230,61 +11232,61 @@ function y7(t, e, r, n, s, i, u) {
|
|
|
11230
11232
|
for (let c = 0; c < l; c++) if (t[e + c] !== n[s + c]) return !1;
|
|
11231
11233
|
return !0;
|
|
11232
11234
|
}
|
|
11233
|
-
function
|
|
11234
|
-
return
|
|
11235
|
+
function v7(t, e, r) {
|
|
11236
|
+
return w7(t, 0, t?.length ?? 0, e, 0, e?.length ?? 0);
|
|
11235
11237
|
}
|
|
11236
|
-
function
|
|
11238
|
+
function S7(t, e) {
|
|
11237
11239
|
return t != null;
|
|
11238
11240
|
}
|
|
11239
|
-
function
|
|
11241
|
+
function N7(t) {
|
|
11240
11242
|
return t?.constructor?.name === "Int8Array";
|
|
11241
11243
|
}
|
|
11242
|
-
function
|
|
11244
|
+
function E7(t) {
|
|
11243
11245
|
return t?.constructor?.name === "Uint8Array";
|
|
11244
11246
|
}
|
|
11245
|
-
function
|
|
11247
|
+
function x7(t) {
|
|
11246
11248
|
return t?.constructor?.name === "Uint8ClampedArray";
|
|
11247
11249
|
}
|
|
11248
|
-
function
|
|
11250
|
+
function T7(t) {
|
|
11249
11251
|
return t?.constructor?.name === "Int16Array";
|
|
11250
11252
|
}
|
|
11251
|
-
function
|
|
11253
|
+
function P7(t) {
|
|
11252
11254
|
return t?.constructor?.name === "Uint16Array";
|
|
11253
11255
|
}
|
|
11254
|
-
function
|
|
11256
|
+
function A7(t) {
|
|
11255
11257
|
return t?.constructor?.name === "Int32Array";
|
|
11256
11258
|
}
|
|
11257
|
-
function
|
|
11259
|
+
function L7(t) {
|
|
11258
11260
|
return t?.constructor?.name === "Uint32Array";
|
|
11259
11261
|
}
|
|
11260
|
-
function
|
|
11262
|
+
function M7(t) {
|
|
11261
11263
|
return t?.constructor?.name === "Float32Array";
|
|
11262
11264
|
}
|
|
11263
|
-
function
|
|
11265
|
+
function O7(t) {
|
|
11264
11266
|
return t?.constructor?.name === "Float64Array";
|
|
11265
11267
|
}
|
|
11266
11268
|
function gr(t) {
|
|
11267
11269
|
if (!t || typeof t != "object" || typeof t == "function") return t;
|
|
11268
|
-
const e =
|
|
11270
|
+
const e = k7(t);
|
|
11269
11271
|
if (e != null) return e;
|
|
11270
|
-
if (
|
|
11271
|
-
if (
|
|
11272
|
-
if (
|
|
11272
|
+
if (C7(t)) return t.clone();
|
|
11273
|
+
if (R7(t)) return t.map(gr);
|
|
11274
|
+
if (I7(t)) throw new Error("Trying to clone an unclonable Accessor instance");
|
|
11273
11275
|
const r = {};
|
|
11274
11276
|
for (const n of Object.getOwnPropertyNames(t)) r[n] = gr(t[n]);
|
|
11275
11277
|
return r;
|
|
11276
11278
|
}
|
|
11277
|
-
function
|
|
11279
|
+
function C7(t) {
|
|
11278
11280
|
return typeof t.clone == "function";
|
|
11279
11281
|
}
|
|
11280
|
-
function
|
|
11282
|
+
function R7(t) {
|
|
11281
11283
|
return typeof t.map == "function" && typeof t.forEach == "function";
|
|
11282
11284
|
}
|
|
11283
|
-
function
|
|
11285
|
+
function I7(t) {
|
|
11284
11286
|
return typeof t.notifyChange == "function" && typeof t.watch == "function";
|
|
11285
11287
|
}
|
|
11286
|
-
function
|
|
11287
|
-
if (
|
|
11288
|
+
function k7(t) {
|
|
11289
|
+
if (N7(t) || E7(t) || x7(t) || T7(t) || P7(t) || A7(t) || L7(t) || M7(t) || O7(t)) return t.slice();
|
|
11288
11290
|
if (t instanceof Date) return new Date(t);
|
|
11289
11291
|
if (t instanceof ArrayBuffer)
|
|
11290
11292
|
return t.slice(0, t.byteLength);
|
|
@@ -11303,7 +11305,7 @@ function R7(t) {
|
|
|
11303
11305
|
function l0(t, e) {
|
|
11304
11306
|
return t === e || typeof t == "number" && isNaN(t) && typeof e == "number" && isNaN(e) || typeof t?.getTime == "function" && typeof e?.getTime == "function" && t.getTime() === e.getTime() || !1;
|
|
11305
11307
|
}
|
|
11306
|
-
function
|
|
11308
|
+
function D7(t, e, r = !1) {
|
|
11307
11309
|
return A_(t, e, r);
|
|
11308
11310
|
}
|
|
11309
11311
|
function T_(t, e) {
|
|
@@ -11334,40 +11336,40 @@ function A_(t, e, r) {
|
|
|
11334
11336
|
}) : n[s] = u.slice())) : u && typeof u == "object" ? n[s] = A_(i, u, r) : n.hasOwnProperty(s) && !e.hasOwnProperty(s) || (n[s] = u), n);
|
|
11335
11337
|
}, t || {}) : t;
|
|
11336
11338
|
}
|
|
11337
|
-
const
|
|
11339
|
+
const $7 = /\{([^}]+)\}/g;
|
|
11338
11340
|
function pg(t) {
|
|
11339
11341
|
return t ?? "";
|
|
11340
11342
|
}
|
|
11341
11343
|
function Ka(t, e) {
|
|
11342
|
-
return e ? t.replaceAll(
|
|
11344
|
+
return e ? t.replaceAll($7, typeof e == "object" ? (r, n) => pg(T_(n, e)) : (r, n) => pg(e(n))) : t;
|
|
11343
11345
|
}
|
|
11344
11346
|
function L_(t, e) {
|
|
11345
11347
|
return t.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g, (r, n) => n === "" ? "$" : (T_(n, e) ?? "").toString());
|
|
11346
11348
|
}
|
|
11347
|
-
function
|
|
11349
|
+
function F7(t, e) {
|
|
11348
11350
|
return t.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g, (r) => `\\${r}`);
|
|
11349
11351
|
}
|
|
11350
|
-
function
|
|
11352
|
+
function U7(t) {
|
|
11351
11353
|
let e = 0;
|
|
11352
11354
|
for (let r = 0; r < t.length; r++) e = (e << 5) - e + t.charCodeAt(r), e |= 0;
|
|
11353
11355
|
return e;
|
|
11354
11356
|
}
|
|
11355
|
-
function
|
|
11357
|
+
function z7(t) {
|
|
11356
11358
|
return t.toLowerCase().replaceAll(/[\s-]+/g, "");
|
|
11357
11359
|
}
|
|
11358
11360
|
class as extends Error {
|
|
11359
11361
|
}
|
|
11360
|
-
class
|
|
11362
|
+
class V7 extends as {
|
|
11361
11363
|
constructor(e) {
|
|
11362
11364
|
super(`Invalid DateTime: ${e.toMessage()}`);
|
|
11363
11365
|
}
|
|
11364
11366
|
}
|
|
11365
|
-
class
|
|
11367
|
+
class j7 extends as {
|
|
11366
11368
|
constructor(e) {
|
|
11367
11369
|
super(`Invalid Interval: ${e.toMessage()}`);
|
|
11368
11370
|
}
|
|
11369
11371
|
}
|
|
11370
|
-
class
|
|
11372
|
+
class W7 extends as {
|
|
11371
11373
|
constructor(e) {
|
|
11372
11374
|
super(`Invalid Duration: ${e.toMessage()}`);
|
|
11373
11375
|
}
|
|
@@ -11394,7 +11396,7 @@ const Q = "numeric", Gr = "short", mr = "long", Da = {
|
|
|
11394
11396
|
year: Q,
|
|
11395
11397
|
month: Gr,
|
|
11396
11398
|
day: Q
|
|
11397
|
-
},
|
|
11399
|
+
}, G7 = {
|
|
11398
11400
|
year: Q,
|
|
11399
11401
|
month: Gr,
|
|
11400
11402
|
day: Q,
|
|
@@ -11472,7 +11474,7 @@ const Q = "numeric", Gr = "short", mr = "long", Da = {
|
|
|
11472
11474
|
hour: Q,
|
|
11473
11475
|
minute: Q,
|
|
11474
11476
|
second: Q
|
|
11475
|
-
},
|
|
11477
|
+
}, B7 = {
|
|
11476
11478
|
year: Q,
|
|
11477
11479
|
month: Gr,
|
|
11478
11480
|
day: Q,
|
|
@@ -11639,7 +11641,7 @@ class eu extends Un {
|
|
|
11639
11641
|
}
|
|
11640
11642
|
}
|
|
11641
11643
|
const bh = /* @__PURE__ */ new Map();
|
|
11642
|
-
function
|
|
11644
|
+
function q7(t) {
|
|
11643
11645
|
let e = bh.get(t);
|
|
11644
11646
|
return e === void 0 && (e = new Intl.DateTimeFormat("en-US", {
|
|
11645
11647
|
hour12: !1,
|
|
@@ -11653,7 +11655,7 @@ function G7(t) {
|
|
|
11653
11655
|
era: "short"
|
|
11654
11656
|
}), bh.set(t, e)), e;
|
|
11655
11657
|
}
|
|
11656
|
-
const
|
|
11658
|
+
const H7 = {
|
|
11657
11659
|
year: 0,
|
|
11658
11660
|
month: 1,
|
|
11659
11661
|
day: 2,
|
|
@@ -11662,14 +11664,14 @@ const B7 = {
|
|
|
11662
11664
|
minute: 5,
|
|
11663
11665
|
second: 6
|
|
11664
11666
|
};
|
|
11665
|
-
function
|
|
11667
|
+
function Y7(t, e) {
|
|
11666
11668
|
const r = t.format(e).replace(/\u200E/g, ""), n = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r), [, s, i, u, l, c, m, _] = n;
|
|
11667
11669
|
return [u, s, i, l, c, m, _];
|
|
11668
11670
|
}
|
|
11669
|
-
function
|
|
11671
|
+
function Z7(t, e) {
|
|
11670
11672
|
const r = t.formatToParts(e), n = [];
|
|
11671
11673
|
for (let s = 0; s < r.length; s++) {
|
|
11672
|
-
const { type: i, value: u } = r[s], l =
|
|
11674
|
+
const { type: i, value: u } = r[s], l = H7[i];
|
|
11673
11675
|
i === "era" ? n[l] = u : ge(l) || (n[l] = parseInt(u, 10));
|
|
11674
11676
|
}
|
|
11675
11677
|
return n;
|
|
@@ -11780,8 +11782,8 @@ class Br extends Un {
|
|
|
11780
11782
|
if (!this.valid) return NaN;
|
|
11781
11783
|
const r = new Date(e);
|
|
11782
11784
|
if (isNaN(r)) return NaN;
|
|
11783
|
-
const n =
|
|
11784
|
-
let [s, i, u, l, c, m, _] = n.formatToParts ?
|
|
11785
|
+
const n = q7(this.name);
|
|
11786
|
+
let [s, i, u, l, c, m, _] = n.formatToParts ? Z7(n, r) : Y7(n, r);
|
|
11785
11787
|
l === "BC" && (s = -Math.abs(s) + 1);
|
|
11786
11788
|
const v = ru({
|
|
11787
11789
|
year: s,
|
|
@@ -11815,7 +11817,7 @@ class Br extends Un {
|
|
|
11815
11817
|
}
|
|
11816
11818
|
}
|
|
11817
11819
|
let gg = {};
|
|
11818
|
-
function
|
|
11820
|
+
function X7(t, e = {}) {
|
|
11819
11821
|
const r = JSON.stringify([t, e]);
|
|
11820
11822
|
let n = gg[r];
|
|
11821
11823
|
return n || (n = new Intl.ListFormat(t, e), gg[r] = n), n;
|
|
@@ -11827,19 +11829,19 @@ function vh(t, e = {}) {
|
|
|
11827
11829
|
return n === void 0 && (n = new Intl.DateTimeFormat(t, e), wh.set(r, n)), n;
|
|
11828
11830
|
}
|
|
11829
11831
|
const Sh = /* @__PURE__ */ new Map();
|
|
11830
|
-
function
|
|
11832
|
+
function J7(t, e = {}) {
|
|
11831
11833
|
const r = JSON.stringify([t, e]);
|
|
11832
11834
|
let n = Sh.get(r);
|
|
11833
11835
|
return n === void 0 && (n = new Intl.NumberFormat(t, e), Sh.set(r, n)), n;
|
|
11834
11836
|
}
|
|
11835
11837
|
const Nh = /* @__PURE__ */ new Map();
|
|
11836
|
-
function
|
|
11838
|
+
function Q7(t, e = {}) {
|
|
11837
11839
|
const { base: r, ...n } = e, s = JSON.stringify([t, n]);
|
|
11838
11840
|
let i = Nh.get(s);
|
|
11839
11841
|
return i === void 0 && (i = new Intl.RelativeTimeFormat(t, e), Nh.set(s, i)), i;
|
|
11840
11842
|
}
|
|
11841
11843
|
let _i = null;
|
|
11842
|
-
function
|
|
11844
|
+
function K7() {
|
|
11843
11845
|
return _i || (_i = new Intl.DateTimeFormat().resolvedOptions().locale, _i);
|
|
11844
11846
|
}
|
|
11845
11847
|
const Eh = /* @__PURE__ */ new Map();
|
|
@@ -11848,7 +11850,7 @@ function X_(t) {
|
|
|
11848
11850
|
return e === void 0 && (e = new Intl.DateTimeFormat(t).resolvedOptions(), Eh.set(t, e)), e;
|
|
11849
11851
|
}
|
|
11850
11852
|
const xh = /* @__PURE__ */ new Map();
|
|
11851
|
-
function
|
|
11853
|
+
function ew(t) {
|
|
11852
11854
|
let e = xh.get(t);
|
|
11853
11855
|
if (!e) {
|
|
11854
11856
|
const r = new Intl.Locale(t);
|
|
@@ -11856,7 +11858,7 @@ function Q7(t) {
|
|
|
11856
11858
|
}
|
|
11857
11859
|
return e;
|
|
11858
11860
|
}
|
|
11859
|
-
function
|
|
11861
|
+
function tw(t) {
|
|
11860
11862
|
const e = t.indexOf("-x-");
|
|
11861
11863
|
e !== -1 && (t = t.substring(0, e));
|
|
11862
11864
|
const r = t.indexOf("-u-");
|
|
@@ -11874,10 +11876,10 @@ function K7(t) {
|
|
|
11874
11876
|
return [s, i, u];
|
|
11875
11877
|
}
|
|
11876
11878
|
}
|
|
11877
|
-
function
|
|
11879
|
+
function rw(t, e, r) {
|
|
11878
11880
|
return (r || e) && (t.includes("-u-") || (t += "-u"), r && (t += `-ca-${r}`), e && (t += `-nu-${e}`)), t;
|
|
11879
11881
|
}
|
|
11880
|
-
function
|
|
11882
|
+
function nw(t) {
|
|
11881
11883
|
const e = [];
|
|
11882
11884
|
for (let r = 1; r <= 12; r++) {
|
|
11883
11885
|
const n = H.utc(2009, r, 1);
|
|
@@ -11885,7 +11887,7 @@ function tw(t) {
|
|
|
11885
11887
|
}
|
|
11886
11888
|
return e;
|
|
11887
11889
|
}
|
|
11888
|
-
function
|
|
11890
|
+
function sw(t) {
|
|
11889
11891
|
const e = [];
|
|
11890
11892
|
for (let r = 1; r <= 7; r++) {
|
|
11891
11893
|
const n = H.utc(2016, 11, 13 + r);
|
|
@@ -11897,16 +11899,16 @@ function Io(t, e, r, n) {
|
|
|
11897
11899
|
const s = t.listingMode();
|
|
11898
11900
|
return s === "error" ? null : s === "en" ? r(e) : n(e);
|
|
11899
11901
|
}
|
|
11900
|
-
function
|
|
11902
|
+
function iw(t) {
|
|
11901
11903
|
return t.numberingSystem && t.numberingSystem !== "latn" ? !1 : t.numberingSystem === "latn" || !t.locale || t.locale.startsWith("en") || X_(t.locale).numberingSystem === "latn";
|
|
11902
11904
|
}
|
|
11903
|
-
class
|
|
11905
|
+
class ow {
|
|
11904
11906
|
constructor(e, r, n) {
|
|
11905
11907
|
this.padTo = n.padTo || 0, this.floor = n.floor || !1;
|
|
11906
11908
|
const { padTo: s, floor: i, ...u } = n;
|
|
11907
11909
|
if (!r || Object.keys(u).length > 0) {
|
|
11908
11910
|
const l = { useGrouping: !1, ...n };
|
|
11909
|
-
n.padTo > 0 && (l.minimumIntegerDigits = n.padTo), this.inf =
|
|
11911
|
+
n.padTo > 0 && (l.minimumIntegerDigits = n.padTo), this.inf = J7(e, l);
|
|
11910
11912
|
}
|
|
11911
11913
|
}
|
|
11912
11914
|
format(e) {
|
|
@@ -11919,7 +11921,7 @@ class sw {
|
|
|
11919
11921
|
}
|
|
11920
11922
|
}
|
|
11921
11923
|
}
|
|
11922
|
-
class
|
|
11924
|
+
class aw {
|
|
11923
11925
|
constructor(e, r, n) {
|
|
11924
11926
|
this.opts = n, this.originalZone = void 0;
|
|
11925
11927
|
let s;
|
|
@@ -11955,12 +11957,12 @@ class iw {
|
|
|
11955
11957
|
return this.dtf.resolvedOptions();
|
|
11956
11958
|
}
|
|
11957
11959
|
}
|
|
11958
|
-
class
|
|
11960
|
+
class uw {
|
|
11959
11961
|
constructor(e, r, n) {
|
|
11960
|
-
this.opts = { style: "long", ...n }, !r && sy() && (this.rtf =
|
|
11962
|
+
this.opts = { style: "long", ...n }, !r && sy() && (this.rtf = Q7(e, n));
|
|
11961
11963
|
}
|
|
11962
11964
|
format(e, r) {
|
|
11963
|
-
return this.rtf ? this.rtf.format(e, r) :
|
|
11965
|
+
return this.rtf ? this.rtf.format(e, r) : Mw(r, e, this.opts.numeric, this.opts.style !== "long");
|
|
11964
11966
|
}
|
|
11965
11967
|
formatToParts(e, r) {
|
|
11966
11968
|
return this.rtf ? this.rtf.formatToParts(e, r) : [];
|
|
@@ -11982,7 +11984,7 @@ class Ie {
|
|
|
11982
11984
|
);
|
|
11983
11985
|
}
|
|
11984
11986
|
static create(e, r, n, s, i = !1) {
|
|
11985
|
-
const u = e || st.defaultLocale, l = u || (i ? "en-US" :
|
|
11987
|
+
const u = e || st.defaultLocale, l = u || (i ? "en-US" : K7()), c = r || st.defaultNumberingSystem, m = n || st.defaultOutputCalendar, _ = Ph(s) || st.defaultWeekSettings;
|
|
11986
11988
|
return new Ie(l, c, m, _, u);
|
|
11987
11989
|
}
|
|
11988
11990
|
static resetCache() {
|
|
@@ -11992,11 +11994,11 @@ class Ie {
|
|
|
11992
11994
|
return Ie.create(e, r, n, s);
|
|
11993
11995
|
}
|
|
11994
11996
|
constructor(e, r, n, s, i) {
|
|
11995
|
-
const [u, l, c] =
|
|
11996
|
-
this.locale = u, this.numberingSystem = r || l || null, this.outputCalendar = n || c || null, this.weekSettings = s, this.intl =
|
|
11997
|
+
const [u, l, c] = tw(e);
|
|
11998
|
+
this.locale = u, this.numberingSystem = r || l || null, this.outputCalendar = n || c || null, this.weekSettings = s, this.intl = rw(this.locale, this.numberingSystem, this.outputCalendar), this.weekdaysCache = { format: {}, standalone: {} }, this.monthsCache = { format: {}, standalone: {} }, this.meridiemCache = null, this.eraCache = {}, this.specifiedLocale = i, this.fastNumbersCached = null;
|
|
11997
11999
|
}
|
|
11998
12000
|
get fastNumbers() {
|
|
11999
|
-
return this.fastNumbersCached == null && (this.fastNumbersCached =
|
|
12001
|
+
return this.fastNumbersCached == null && (this.fastNumbersCached = iw(this)), this.fastNumbersCached;
|
|
12000
12002
|
}
|
|
12001
12003
|
listingMode() {
|
|
12002
12004
|
const e = this.isEnglish(), r = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory");
|
|
@@ -12024,7 +12026,7 @@ class Ie {
|
|
|
12024
12026
|
const s = r ? { month: e, day: "numeric" } : { month: e }, i = r ? "format" : "standalone";
|
|
12025
12027
|
if (!this.monthsCache[i][e]) {
|
|
12026
12028
|
const u = n ? (l) => this.dtFormatter(l, s).format() : (l) => this.extract(l, s, "month");
|
|
12027
|
-
this.monthsCache[i][e] =
|
|
12029
|
+
this.monthsCache[i][e] = nw(u);
|
|
12028
12030
|
}
|
|
12029
12031
|
return this.monthsCache[i][e];
|
|
12030
12032
|
});
|
|
@@ -12032,7 +12034,7 @@ class Ie {
|
|
|
12032
12034
|
weekdays(e, r = !1) {
|
|
12033
12035
|
return Io(this, e, hy, () => {
|
|
12034
12036
|
const n = r ? { weekday: e, year: "numeric", month: "long", day: "numeric" } : { weekday: e }, s = r ? "format" : "standalone";
|
|
12035
|
-
return this.weekdaysCache[s][e] || (this.weekdaysCache[s][e] =
|
|
12037
|
+
return this.weekdaysCache[s][e] || (this.weekdaysCache[s][e] = sw(
|
|
12036
12038
|
(i) => this.extract(i, n, "weekday")
|
|
12037
12039
|
)), this.weekdaysCache[s][e];
|
|
12038
12040
|
});
|
|
@@ -12066,22 +12068,22 @@ class Ie {
|
|
|
12066
12068
|
return u ? u.value : null;
|
|
12067
12069
|
}
|
|
12068
12070
|
numberFormatter(e = {}) {
|
|
12069
|
-
return new
|
|
12071
|
+
return new ow(this.intl, e.forceSimple || this.fastNumbers, e);
|
|
12070
12072
|
}
|
|
12071
12073
|
dtFormatter(e, r = {}) {
|
|
12072
|
-
return new
|
|
12074
|
+
return new aw(e, this.intl, r);
|
|
12073
12075
|
}
|
|
12074
12076
|
relFormatter(e = {}) {
|
|
12075
|
-
return new
|
|
12077
|
+
return new uw(this.intl, this.isEnglish(), e);
|
|
12076
12078
|
}
|
|
12077
12079
|
listFormatter(e = {}) {
|
|
12078
|
-
return
|
|
12080
|
+
return X7(this.intl, e);
|
|
12079
12081
|
}
|
|
12080
12082
|
isEnglish() {
|
|
12081
12083
|
return this.locale === "en" || this.locale.toLowerCase() === "en-us" || X_(this.intl).locale.startsWith("en-us");
|
|
12082
12084
|
}
|
|
12083
12085
|
getWeekSettings() {
|
|
12084
|
-
return this.weekSettings ? this.weekSettings : iy() ?
|
|
12086
|
+
return this.weekSettings ? this.weekSettings : iy() ? ew(this.locale) : J_;
|
|
12085
12087
|
}
|
|
12086
12088
|
getStartOfWeek() {
|
|
12087
12089
|
return this.getWeekSettings().firstDay;
|
|
@@ -12219,7 +12221,7 @@ class Pt extends Un {
|
|
|
12219
12221
|
return !0;
|
|
12220
12222
|
}
|
|
12221
12223
|
}
|
|
12222
|
-
class
|
|
12224
|
+
class lw extends Un {
|
|
12223
12225
|
constructor(e) {
|
|
12224
12226
|
super(), this.zoneName = e;
|
|
12225
12227
|
}
|
|
@@ -12261,10 +12263,10 @@ function Ln(t, e) {
|
|
|
12261
12263
|
return e;
|
|
12262
12264
|
if (t instanceof Un)
|
|
12263
12265
|
return t;
|
|
12264
|
-
if (
|
|
12266
|
+
if (pw(t)) {
|
|
12265
12267
|
const r = t.toLowerCase();
|
|
12266
12268
|
return r === "default" ? e : r === "local" || r === "system" ? eu.instance : r === "utc" || r === "gmt" ? Pt.utcInstance : Pt.parseSpecifier(r) || Br.create(t);
|
|
12267
|
-
} else return In(t) ? Pt.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new
|
|
12269
|
+
} else return In(t) ? Pt.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new lw(t);
|
|
12268
12270
|
}
|
|
12269
12271
|
const c0 = {
|
|
12270
12272
|
arab: "[٠-٩]",
|
|
@@ -12308,15 +12310,15 @@ const c0 = {
|
|
|
12308
12310
|
telu: [3174, 3183],
|
|
12309
12311
|
thai: [3664, 3673],
|
|
12310
12312
|
tibt: [3872, 3881]
|
|
12311
|
-
},
|
|
12312
|
-
function
|
|
12313
|
+
}, cw = c0.hanidec.replace(/[\[|\]]/g, "").split("");
|
|
12314
|
+
function fw(t) {
|
|
12313
12315
|
let e = parseInt(t, 10);
|
|
12314
12316
|
if (isNaN(e)) {
|
|
12315
12317
|
e = "";
|
|
12316
12318
|
for (let r = 0; r < t.length; r++) {
|
|
12317
12319
|
const n = t.charCodeAt(r);
|
|
12318
12320
|
if (t[r].search(c0.hanidec) !== -1)
|
|
12319
|
-
e +=
|
|
12321
|
+
e += cw.indexOf(t[r]);
|
|
12320
12322
|
else
|
|
12321
12323
|
for (const s in _g) {
|
|
12322
12324
|
const [i, u] = _g[s];
|
|
@@ -12328,7 +12330,7 @@ function lw(t) {
|
|
|
12328
12330
|
return e;
|
|
12329
12331
|
}
|
|
12330
12332
|
const Th = /* @__PURE__ */ new Map();
|
|
12331
|
-
function
|
|
12333
|
+
function hw() {
|
|
12332
12334
|
Th.clear();
|
|
12333
12335
|
}
|
|
12334
12336
|
function Cr({ numberingSystem: t }, e = "") {
|
|
@@ -12475,7 +12477,7 @@ class st {
|
|
|
12475
12477
|
* @return {void}
|
|
12476
12478
|
*/
|
|
12477
12479
|
static resetCaches() {
|
|
12478
|
-
Ie.resetCache(), Br.resetCache(), H.resetCache(),
|
|
12480
|
+
Ie.resetCache(), Br.resetCache(), H.resetCache(), hw();
|
|
12479
12481
|
}
|
|
12480
12482
|
}
|
|
12481
12483
|
class Wr {
|
|
@@ -12542,7 +12544,7 @@ function Ag(t, e) {
|
|
|
12542
12544
|
} else
|
|
12543
12545
|
return { minDaysInFirstWeek: 4, startOfWeek: 1 };
|
|
12544
12546
|
}
|
|
12545
|
-
function
|
|
12547
|
+
function dw(t, e = 4, r = 1) {
|
|
12546
12548
|
const n = tu(t.weekYear), s = Pr(
|
|
12547
12549
|
t.weekNumber,
|
|
12548
12550
|
1,
|
|
@@ -12550,7 +12552,7 @@ function fw(t, e = 4, r = 1) {
|
|
|
12550
12552
|
), i = Pr(t.weekday, 1, 7);
|
|
12551
12553
|
return n ? s ? i ? !1 : Tr("weekday", t.weekday) : Tr("week", t.weekNumber) : Tr("weekYear", t.weekYear);
|
|
12552
12554
|
}
|
|
12553
|
-
function
|
|
12555
|
+
function mw(t) {
|
|
12554
12556
|
const e = tu(t.year), r = Pr(t.ordinal, 1, Ds(t.year));
|
|
12555
12557
|
return e ? r ? !1 : Tr("ordinal", t.ordinal) : Tr("year", t.year);
|
|
12556
12558
|
}
|
|
@@ -12571,10 +12573,10 @@ function In(t) {
|
|
|
12571
12573
|
function tu(t) {
|
|
12572
12574
|
return typeof t == "number" && t % 1 === 0;
|
|
12573
12575
|
}
|
|
12574
|
-
function
|
|
12576
|
+
function pw(t) {
|
|
12575
12577
|
return typeof t == "string";
|
|
12576
12578
|
}
|
|
12577
|
-
function
|
|
12579
|
+
function gw(t) {
|
|
12578
12580
|
return Object.prototype.toString.call(t) === "[object Date]";
|
|
12579
12581
|
}
|
|
12580
12582
|
function sy() {
|
|
@@ -12591,7 +12593,7 @@ function iy() {
|
|
|
12591
12593
|
return !1;
|
|
12592
12594
|
}
|
|
12593
12595
|
}
|
|
12594
|
-
function
|
|
12596
|
+
function _w(t) {
|
|
12595
12597
|
return Array.isArray(t) ? t : [t];
|
|
12596
12598
|
}
|
|
12597
12599
|
function Lg(t, e, r) {
|
|
@@ -12601,7 +12603,7 @@ function Lg(t, e, r) {
|
|
|
12601
12603
|
return n && r(n[0], i[0]) === n[0] ? n : i;
|
|
12602
12604
|
}, null)[1];
|
|
12603
12605
|
}
|
|
12604
|
-
function
|
|
12606
|
+
function yw(t, e) {
|
|
12605
12607
|
return e.reduce((r, n) => (r[n] = t[n], r), {});
|
|
12606
12608
|
}
|
|
12607
12609
|
function Gs(t, e) {
|
|
@@ -12623,7 +12625,7 @@ function Ph(t) {
|
|
|
12623
12625
|
function Pr(t, e, r) {
|
|
12624
12626
|
return tu(t) && t >= e && t <= r;
|
|
12625
12627
|
}
|
|
12626
|
-
function
|
|
12628
|
+
function bw(t, e) {
|
|
12627
12629
|
return t - e * Math.floor(t / e);
|
|
12628
12630
|
}
|
|
12629
12631
|
function mt(t, e = 2) {
|
|
@@ -12669,7 +12671,7 @@ function Ds(t) {
|
|
|
12669
12671
|
return Ui(t) ? 366 : 365;
|
|
12670
12672
|
}
|
|
12671
12673
|
function Fa(t, e) {
|
|
12672
|
-
const r =
|
|
12674
|
+
const r = bw(e - 1, 12) + 1, n = t + (e - r) / 12;
|
|
12673
12675
|
return r === 2 ? Ui(n) ? 29 : 28 : [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][r - 1];
|
|
12674
12676
|
}
|
|
12675
12677
|
function ru(t) {
|
|
@@ -12743,9 +12745,9 @@ function Ei(t, e) {
|
|
|
12743
12745
|
}
|
|
12744
12746
|
}
|
|
12745
12747
|
function su(t) {
|
|
12746
|
-
return
|
|
12748
|
+
return yw(t, ["hour", "minute", "second", "millisecond"]);
|
|
12747
12749
|
}
|
|
12748
|
-
const
|
|
12750
|
+
const ww = [
|
|
12749
12751
|
"January",
|
|
12750
12752
|
"February",
|
|
12751
12753
|
"March",
|
|
@@ -12771,15 +12773,15 @@ const yw = [
|
|
|
12771
12773
|
"Oct",
|
|
12772
12774
|
"Nov",
|
|
12773
12775
|
"Dec"
|
|
12774
|
-
],
|
|
12776
|
+
], vw = ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"];
|
|
12775
12777
|
function ly(t) {
|
|
12776
12778
|
switch (t) {
|
|
12777
12779
|
case "narrow":
|
|
12778
|
-
return [...
|
|
12780
|
+
return [...vw];
|
|
12779
12781
|
case "short":
|
|
12780
12782
|
return [...uy];
|
|
12781
12783
|
case "long":
|
|
12782
|
-
return [...
|
|
12784
|
+
return [...ww];
|
|
12783
12785
|
case "numeric":
|
|
12784
12786
|
return ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
12785
12787
|
case "2-digit":
|
|
@@ -12796,11 +12798,11 @@ const cy = [
|
|
|
12796
12798
|
"Friday",
|
|
12797
12799
|
"Saturday",
|
|
12798
12800
|
"Sunday"
|
|
12799
|
-
], fy = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
|
|
12801
|
+
], fy = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], Sw = ["M", "T", "W", "T", "F", "S", "S"];
|
|
12800
12802
|
function hy(t) {
|
|
12801
12803
|
switch (t) {
|
|
12802
12804
|
case "narrow":
|
|
12803
|
-
return [...
|
|
12805
|
+
return [...Sw];
|
|
12804
12806
|
case "short":
|
|
12805
12807
|
return [...fy];
|
|
12806
12808
|
case "long":
|
|
@@ -12811,32 +12813,32 @@ function hy(t) {
|
|
|
12811
12813
|
return null;
|
|
12812
12814
|
}
|
|
12813
12815
|
}
|
|
12814
|
-
const dy = ["AM", "PM"],
|
|
12816
|
+
const dy = ["AM", "PM"], Nw = ["Before Christ", "Anno Domini"], Ew = ["BC", "AD"], xw = ["B", "A"];
|
|
12815
12817
|
function my(t) {
|
|
12816
12818
|
switch (t) {
|
|
12817
12819
|
case "narrow":
|
|
12818
|
-
return [...
|
|
12820
|
+
return [...xw];
|
|
12819
12821
|
case "short":
|
|
12820
|
-
return [...
|
|
12822
|
+
return [...Ew];
|
|
12821
12823
|
case "long":
|
|
12822
|
-
return [...
|
|
12824
|
+
return [...Nw];
|
|
12823
12825
|
default:
|
|
12824
12826
|
return null;
|
|
12825
12827
|
}
|
|
12826
12828
|
}
|
|
12827
|
-
function
|
|
12829
|
+
function Tw(t) {
|
|
12828
12830
|
return dy[t.hour < 12 ? 0 : 1];
|
|
12829
12831
|
}
|
|
12830
|
-
function
|
|
12832
|
+
function Pw(t, e) {
|
|
12831
12833
|
return hy(e)[t.weekday - 1];
|
|
12832
12834
|
}
|
|
12833
|
-
function
|
|
12835
|
+
function Aw(t, e) {
|
|
12834
12836
|
return ly(e)[t.month - 1];
|
|
12835
12837
|
}
|
|
12836
|
-
function
|
|
12838
|
+
function Lw(t, e) {
|
|
12837
12839
|
return my(e)[t.year < 0 ? 0 : 1];
|
|
12838
12840
|
}
|
|
12839
|
-
function
|
|
12841
|
+
function Mw(t, e, r = "always", n = !1) {
|
|
12840
12842
|
const s = {
|
|
12841
12843
|
years: ["year", "yr."],
|
|
12842
12844
|
quarters: ["quarter", "qtr."],
|
|
@@ -12867,7 +12869,7 @@ function Og(t, e) {
|
|
|
12867
12869
|
n.literal ? r += n.val : r += e(n.val);
|
|
12868
12870
|
return r;
|
|
12869
12871
|
}
|
|
12870
|
-
const
|
|
12872
|
+
const Ow = {
|
|
12871
12873
|
D: Da,
|
|
12872
12874
|
DD: O_,
|
|
12873
12875
|
DDD: C_,
|
|
@@ -12906,7 +12908,7 @@ class Wt {
|
|
|
12906
12908
|
return n.length > 0 && i.push({ literal: s || /^\s+$/.test(n), val: n }), i;
|
|
12907
12909
|
}
|
|
12908
12910
|
static macroTokenToFormatOpts(e) {
|
|
12909
|
-
return
|
|
12911
|
+
return Ow[e];
|
|
12910
12912
|
}
|
|
12911
12913
|
constructor(e, r) {
|
|
12912
12914
|
this.opts = r, this.loc = e, this.systemLoc = null;
|
|
@@ -12936,13 +12938,13 @@ class Wt {
|
|
|
12936
12938
|
return r > 0 && (s.padTo = r), n && (s.signDisplay = n), this.loc.numberFormatter(s).format(e);
|
|
12937
12939
|
}
|
|
12938
12940
|
formatDateTimeFromString(e, r) {
|
|
12939
|
-
const n = this.loc.listingMode() === "en", s = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (S, T) => this.loc.extract(e, S, T), u = (S) => e.isOffsetFixed && e.offset === 0 && S.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, S.format) : "", l = () => n ?
|
|
12941
|
+
const n = this.loc.listingMode() === "en", s = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (S, T) => this.loc.extract(e, S, T), u = (S) => e.isOffsetFixed && e.offset === 0 && S.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, S.format) : "", l = () => n ? Tw(e) : i({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), c = (S, T) => n ? Aw(e, S) : i(T ? { month: S } : { month: S, day: "numeric" }, "month"), m = (S, T) => n ? Pw(e, S) : i(
|
|
12940
12942
|
T ? { weekday: S } : { weekday: S, month: "long", day: "numeric" },
|
|
12941
12943
|
"weekday"
|
|
12942
12944
|
), _ = (S) => {
|
|
12943
12945
|
const T = Wt.macroTokenToFormatOpts(S);
|
|
12944
12946
|
return T ? this.formatWithSystemDefault(e, T) : S;
|
|
12945
|
-
}, y = (S) => n ?
|
|
12947
|
+
}, y = (S) => n ? Lw(e, S) : i({ era: S }, "era"), v = (S) => {
|
|
12946
12948
|
switch (S) {
|
|
12947
12949
|
// ms
|
|
12948
12950
|
case "S":
|
|
@@ -13162,14 +13164,14 @@ function gy(...t) {
|
|
|
13162
13164
|
return [n, null, r + s];
|
|
13163
13165
|
};
|
|
13164
13166
|
}
|
|
13165
|
-
const _y = /(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,
|
|
13167
|
+
const _y = /(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/, Cw = `(?:${_y.source}?(?:\\[(${py.source})\\])?)?`, p0 = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, yy = RegExp(`${p0.source}${Cw}`), g0 = RegExp(`(?:[Tt]${yy.source})?`), Rw = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, Iw = /(\d{4})-?W(\d\d)(?:-?(\d))?/, kw = /(\d{4})-?(\d{3})/, Dw = gy("weekYear", "weekNumber", "weekDay"), $w = gy("year", "ordinal"), Fw = /(\d{4})-(\d\d)-(\d\d)/, by = RegExp(
|
|
13166
13168
|
`${p0.source} ?(?:${_y.source}|(${py.source}))?`
|
|
13167
|
-
),
|
|
13169
|
+
), Uw = RegExp(`(?: ${by.source})?`);
|
|
13168
13170
|
function $s(t, e, r) {
|
|
13169
13171
|
const n = t[e];
|
|
13170
13172
|
return ge(n) ? r : Pn(n);
|
|
13171
13173
|
}
|
|
13172
|
-
function
|
|
13174
|
+
function zw(t, e) {
|
|
13173
13175
|
return [{
|
|
13174
13176
|
year: $s(t, e),
|
|
13175
13177
|
month: $s(t, e + 1, 1),
|
|
@@ -13192,8 +13194,8 @@ function Vi(t, e) {
|
|
|
13192
13194
|
const r = t[e] ? Br.create(t[e]) : null;
|
|
13193
13195
|
return [{}, r, e + 1];
|
|
13194
13196
|
}
|
|
13195
|
-
const
|
|
13196
|
-
function
|
|
13197
|
+
const Vw = RegExp(`^T?${p0.source}$`), jw = /^-?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)?)?)$/;
|
|
13198
|
+
function Ww(t) {
|
|
13197
13199
|
const [e, r, n, s, i, u, l, c, m] = t, _ = e[0] === "-", y = c && c[0] === "-", v = (S, T = !1) => S !== void 0 && (T || S && _) ? -S : S;
|
|
13198
13200
|
return [
|
|
13199
13201
|
{
|
|
@@ -13208,7 +13210,7 @@ function Vw(t) {
|
|
|
13208
13210
|
}
|
|
13209
13211
|
];
|
|
13210
13212
|
}
|
|
13211
|
-
const
|
|
13213
|
+
const Gw = {
|
|
13212
13214
|
GMT: 0,
|
|
13213
13215
|
EDT: -240,
|
|
13214
13216
|
EST: -300,
|
|
@@ -13229,8 +13231,8 @@ function _0(t, e, r, n, s, i, u) {
|
|
|
13229
13231
|
};
|
|
13230
13232
|
return u && (l.second = Pn(u)), t && (l.weekday = t.length > 3 ? cy.indexOf(t) + 1 : fy.indexOf(t) + 1), l;
|
|
13231
13233
|
}
|
|
13232
|
-
const
|
|
13233
|
-
function
|
|
13234
|
+
const Bw = /^(?:(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)))$/;
|
|
13235
|
+
function qw(t) {
|
|
13234
13236
|
const [
|
|
13235
13237
|
,
|
|
13236
13238
|
e,
|
|
@@ -13246,77 +13248,77 @@ function Gw(t) {
|
|
|
13246
13248
|
y
|
|
13247
13249
|
] = t, v = _0(e, s, n, r, i, u, l);
|
|
13248
13250
|
let S;
|
|
13249
|
-
return c ? S =
|
|
13251
|
+
return c ? S = Gw[c] : m ? S = 0 : S = nu(_, y), [v, new Pt(S)];
|
|
13250
13252
|
}
|
|
13251
|
-
function
|
|
13253
|
+
function Hw(t) {
|
|
13252
13254
|
return t.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
|
13253
13255
|
}
|
|
13254
|
-
const
|
|
13256
|
+
const Yw = /^(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$/, Zw = /^(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$/, Xw = /^(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})$/;
|
|
13255
13257
|
function Cg(t) {
|
|
13256
13258
|
const [, e, r, n, s, i, u, l] = t;
|
|
13257
13259
|
return [_0(e, s, n, r, i, u, l), Pt.utcInstance];
|
|
13258
13260
|
}
|
|
13259
|
-
function
|
|
13261
|
+
function Jw(t) {
|
|
13260
13262
|
const [, e, r, n, s, i, u, l] = t;
|
|
13261
13263
|
return [_0(e, l, r, n, s, i, u), Pt.utcInstance];
|
|
13262
13264
|
}
|
|
13263
|
-
const
|
|
13264
|
-
|
|
13265
|
+
const Qw = Zs(Rw, g0), Kw = Zs(Iw, g0), e4 = Zs(kw, g0), t4 = Zs(yy), wy = Xs(
|
|
13266
|
+
zw,
|
|
13265
13267
|
Qs,
|
|
13266
13268
|
zi,
|
|
13267
13269
|
Vi
|
|
13268
|
-
),
|
|
13269
|
-
|
|
13270
|
+
), r4 = Xs(
|
|
13271
|
+
Dw,
|
|
13270
13272
|
Qs,
|
|
13271
13273
|
zi,
|
|
13272
13274
|
Vi
|
|
13273
|
-
),
|
|
13274
|
-
|
|
13275
|
+
), n4 = Xs(
|
|
13276
|
+
$w,
|
|
13275
13277
|
Qs,
|
|
13276
13278
|
zi,
|
|
13277
13279
|
Vi
|
|
13278
|
-
),
|
|
13280
|
+
), s4 = Xs(
|
|
13279
13281
|
Qs,
|
|
13280
13282
|
zi,
|
|
13281
13283
|
Vi
|
|
13282
13284
|
);
|
|
13283
|
-
function
|
|
13285
|
+
function i4(t) {
|
|
13284
13286
|
return Js(
|
|
13285
13287
|
t,
|
|
13286
|
-
[
|
|
13287
|
-
[
|
|
13288
|
-
[
|
|
13289
|
-
[
|
|
13288
|
+
[Qw, wy],
|
|
13289
|
+
[Kw, r4],
|
|
13290
|
+
[e4, n4],
|
|
13291
|
+
[t4, s4]
|
|
13290
13292
|
);
|
|
13291
13293
|
}
|
|
13292
|
-
function
|
|
13293
|
-
return Js(
|
|
13294
|
+
function o4(t) {
|
|
13295
|
+
return Js(Hw(t), [Bw, qw]);
|
|
13294
13296
|
}
|
|
13295
|
-
function
|
|
13297
|
+
function a4(t) {
|
|
13296
13298
|
return Js(
|
|
13297
13299
|
t,
|
|
13298
|
-
[
|
|
13299
|
-
[
|
|
13300
|
-
[
|
|
13300
|
+
[Yw, Cg],
|
|
13301
|
+
[Zw, Cg],
|
|
13302
|
+
[Xw, Jw]
|
|
13301
13303
|
);
|
|
13302
13304
|
}
|
|
13303
|
-
function o4(t) {
|
|
13304
|
-
return Js(t, [zw, Vw]);
|
|
13305
|
-
}
|
|
13306
|
-
const a4 = Xs(Qs);
|
|
13307
13305
|
function u4(t) {
|
|
13308
|
-
return Js(t, [
|
|
13306
|
+
return Js(t, [jw, Ww]);
|
|
13309
13307
|
}
|
|
13310
|
-
const l4 =
|
|
13308
|
+
const l4 = Xs(Qs);
|
|
13309
|
+
function c4(t) {
|
|
13310
|
+
return Js(t, [Vw, l4]);
|
|
13311
|
+
}
|
|
13312
|
+
const f4 = Zs(Fw, Uw), h4 = Zs(by), d4 = Xs(
|
|
13311
13313
|
Qs,
|
|
13312
13314
|
zi,
|
|
13313
13315
|
Vi
|
|
13314
13316
|
);
|
|
13315
|
-
function
|
|
13317
|
+
function m4(t) {
|
|
13316
13318
|
return Js(
|
|
13317
13319
|
t,
|
|
13318
|
-
[
|
|
13319
|
-
[
|
|
13320
|
+
[f4, wy],
|
|
13321
|
+
[h4, d4]
|
|
13320
13322
|
);
|
|
13321
13323
|
}
|
|
13322
13324
|
const Rg = "Invalid Duration", vy = {
|
|
@@ -13336,7 +13338,7 @@ const Rg = "Invalid Duration", vy = {
|
|
|
13336
13338
|
hours: { minutes: 60, seconds: 3600, milliseconds: 3600 * 1e3 },
|
|
13337
13339
|
minutes: { seconds: 60, milliseconds: 60 * 1e3 },
|
|
13338
13340
|
seconds: { milliseconds: 1e3 }
|
|
13339
|
-
},
|
|
13341
|
+
}, p4 = {
|
|
13340
13342
|
years: {
|
|
13341
13343
|
quarters: 4,
|
|
13342
13344
|
months: 12,
|
|
@@ -13365,7 +13367,7 @@ const Rg = "Invalid Duration", vy = {
|
|
|
13365
13367
|
milliseconds: 720 * 60 * 60 * 1e3
|
|
13366
13368
|
},
|
|
13367
13369
|
...vy
|
|
13368
|
-
}, wr = 146097 / 400, ys = 146097 / 4800,
|
|
13370
|
+
}, wr = 146097 / 400, ys = 146097 / 4800, g4 = {
|
|
13369
13371
|
years: {
|
|
13370
13372
|
quarters: 4,
|
|
13371
13373
|
months: 12,
|
|
@@ -13404,7 +13406,7 @@ const Rg = "Invalid Duration", vy = {
|
|
|
13404
13406
|
"minutes",
|
|
13405
13407
|
"seconds",
|
|
13406
13408
|
"milliseconds"
|
|
13407
|
-
],
|
|
13409
|
+
], _4 = Xn.slice(0).reverse();
|
|
13408
13410
|
function sn(t, e, r = !1) {
|
|
13409
13411
|
const n = {
|
|
13410
13412
|
values: r ? e.values : { ...t.values, ...e.values || {} },
|
|
@@ -13416,7 +13418,7 @@ function sn(t, e, r = !1) {
|
|
|
13416
13418
|
}
|
|
13417
13419
|
function Sy(t, e) {
|
|
13418
13420
|
let r = e.milliseconds ?? 0;
|
|
13419
|
-
for (const n of
|
|
13421
|
+
for (const n of _4.slice(1))
|
|
13420
13422
|
e[n] && (r += e[n] * t[n].milliseconds);
|
|
13421
13423
|
return r;
|
|
13422
13424
|
}
|
|
@@ -13452,7 +13454,7 @@ class Ae {
|
|
|
13452
13454
|
*/
|
|
13453
13455
|
constructor(e) {
|
|
13454
13456
|
const r = e.conversionAccuracy === "longterm" || !1;
|
|
13455
|
-
let n = r ?
|
|
13457
|
+
let n = r ? g4 : p4;
|
|
13456
13458
|
e.matrix && (n = e.matrix), this.values = e.values, this.loc = e.loc || Ie.create(), this.conversionAccuracy = r ? "longterm" : "casual", this.invalid = e.invalid || null, this.matrix = n, this.isLuxonDuration = !0;
|
|
13457
13459
|
}
|
|
13458
13460
|
/**
|
|
@@ -13535,7 +13537,7 @@ class Ae {
|
|
|
13535
13537
|
* @return {Duration}
|
|
13536
13538
|
*/
|
|
13537
13539
|
static fromISO(e, r) {
|
|
13538
|
-
const [n] =
|
|
13540
|
+
const [n] = u4(e);
|
|
13539
13541
|
return n ? Ae.fromObject(n, r) : Ae.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
|
|
13540
13542
|
}
|
|
13541
13543
|
/**
|
|
@@ -13555,7 +13557,7 @@ class Ae {
|
|
|
13555
13557
|
* @return {Duration}
|
|
13556
13558
|
*/
|
|
13557
13559
|
static fromISOTime(e, r) {
|
|
13558
|
-
const [n] =
|
|
13560
|
+
const [n] = c4(e);
|
|
13559
13561
|
return n ? Ae.fromObject(n, r) : Ae.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
|
|
13560
13562
|
}
|
|
13561
13563
|
/**
|
|
@@ -13569,7 +13571,7 @@ class Ae {
|
|
|
13569
13571
|
throw new jt("need to specify a reason the Duration is invalid");
|
|
13570
13572
|
const n = e instanceof Wr ? e : new Wr(e, r);
|
|
13571
13573
|
if (st.throwOnInvalid)
|
|
13572
|
-
throw new
|
|
13574
|
+
throw new W7(n);
|
|
13573
13575
|
return new Ae({ invalid: n });
|
|
13574
13576
|
}
|
|
13575
13577
|
/**
|
|
@@ -14043,7 +14045,7 @@ class Ae {
|
|
|
14043
14045
|
}
|
|
14044
14046
|
}
|
|
14045
14047
|
const bs = "Invalid Interval";
|
|
14046
|
-
function
|
|
14048
|
+
function y4(t, e) {
|
|
14047
14049
|
return !t || !t.isValid ? rt.invalid("missing or invalid start") : !e || !e.isValid ? rt.invalid("missing or invalid end") : e < t ? rt.invalid(
|
|
14048
14050
|
"end before start",
|
|
14049
14051
|
`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`
|
|
@@ -14067,7 +14069,7 @@ class rt {
|
|
|
14067
14069
|
throw new jt("need to specify a reason the Interval is invalid");
|
|
14068
14070
|
const n = e instanceof Wr ? e : new Wr(e, r);
|
|
14069
14071
|
if (st.throwOnInvalid)
|
|
14070
|
-
throw new
|
|
14072
|
+
throw new j7(n);
|
|
14071
14073
|
return new rt({ invalid: n });
|
|
14072
14074
|
}
|
|
14073
14075
|
/**
|
|
@@ -14077,7 +14079,7 @@ class rt {
|
|
|
14077
14079
|
* @return {Interval}
|
|
14078
14080
|
*/
|
|
14079
14081
|
static fromDateTimes(e, r) {
|
|
14080
|
-
const n = di(e), s = di(r), i =
|
|
14082
|
+
const n = di(e), s = di(r), i = y4(n, s);
|
|
14081
14083
|
return i ?? new rt({
|
|
14082
14084
|
start: n,
|
|
14083
14085
|
end: s
|
|
@@ -14684,7 +14686,7 @@ function Dg(t, e) {
|
|
|
14684
14686
|
const r = (s) => s.toUTC(0, { keepLocalTime: !0 }).startOf("day").valueOf(), n = r(e) - r(t);
|
|
14685
14687
|
return Math.floor(Ae.fromMillis(n).as("days"));
|
|
14686
14688
|
}
|
|
14687
|
-
function
|
|
14689
|
+
function b4(t, e, r) {
|
|
14688
14690
|
const n = [
|
|
14689
14691
|
["years", (c, m) => m.year - c.year],
|
|
14690
14692
|
["quarters", (c, m) => m.quarter - c.quarter + (m.year - c.year) * 4],
|
|
@@ -14703,8 +14705,8 @@ function _4(t, e, r) {
|
|
|
14703
14705
|
r.indexOf(c) >= 0 && (u = c, s[c] = m(t, e), l = i.plus(s), l > e ? (s[c]--, t = i.plus(s), t > e && (l = t, s[c]--, t = i.plus(s))) : t = l);
|
|
14704
14706
|
return [t, s, l, u];
|
|
14705
14707
|
}
|
|
14706
|
-
function
|
|
14707
|
-
let [s, i, u, l] =
|
|
14708
|
+
function w4(t, e, r, n) {
|
|
14709
|
+
let [s, i, u, l] = b4(t, e, r);
|
|
14708
14710
|
const c = e - s, m = r.filter(
|
|
14709
14711
|
(y) => ["hours", "minutes", "seconds", "milliseconds"].indexOf(y) >= 0
|
|
14710
14712
|
);
|
|
@@ -14712,12 +14714,12 @@ function y4(t, e, r, n) {
|
|
|
14712
14714
|
const _ = Ae.fromObject(i, n);
|
|
14713
14715
|
return m.length > 0 ? Ae.fromMillis(c, n).shiftTo(...m).plus(_) : _;
|
|
14714
14716
|
}
|
|
14715
|
-
const
|
|
14717
|
+
const v4 = "missing Intl.DateTimeFormat.formatToParts support";
|
|
14716
14718
|
function Ce(t, e = (r) => r) {
|
|
14717
|
-
return { regex: t, deser: ([r]) => e(
|
|
14719
|
+
return { regex: t, deser: ([r]) => e(fw(r)) };
|
|
14718
14720
|
}
|
|
14719
|
-
const
|
|
14720
|
-
function
|
|
14721
|
+
const S4 = " ", Ny = `[ ${S4}]`, Ey = new RegExp(Ny, "g");
|
|
14722
|
+
function N4(t) {
|
|
14721
14723
|
return t.replace(/\./g, "\\.?").replace(Ey, Ny);
|
|
14722
14724
|
}
|
|
14723
14725
|
function $g(t) {
|
|
@@ -14725,7 +14727,7 @@ function $g(t) {
|
|
|
14725
14727
|
}
|
|
14726
14728
|
function Rr(t, e) {
|
|
14727
14729
|
return t === null ? null : {
|
|
14728
|
-
regex: RegExp(t.map(
|
|
14730
|
+
regex: RegExp(t.map(N4).join("|")),
|
|
14729
14731
|
deser: ([r]) => t.findIndex((n) => $g(r) === $g(n)) + e
|
|
14730
14732
|
};
|
|
14731
14733
|
}
|
|
@@ -14735,11 +14737,11 @@ function Fg(t, e) {
|
|
|
14735
14737
|
function Do(t) {
|
|
14736
14738
|
return { regex: t, deser: ([e]) => e };
|
|
14737
14739
|
}
|
|
14738
|
-
function
|
|
14740
|
+
function E4(t) {
|
|
14739
14741
|
return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
14740
14742
|
}
|
|
14741
|
-
function
|
|
14742
|
-
const r = Cr(e), n = Cr(e, "{2}"), s = Cr(e, "{3}"), i = Cr(e, "{4}"), u = Cr(e, "{6}"), l = Cr(e, "{1,2}"), c = Cr(e, "{1,3}"), m = Cr(e, "{1,6}"), _ = Cr(e, "{1,9}"), y = Cr(e, "{2,4}"), v = Cr(e, "{4,6}"), S = (D) => ({ regex: RegExp(
|
|
14743
|
+
function x4(t, e) {
|
|
14744
|
+
const r = Cr(e), n = Cr(e, "{2}"), s = Cr(e, "{3}"), i = Cr(e, "{4}"), u = Cr(e, "{6}"), l = Cr(e, "{1,2}"), c = Cr(e, "{1,3}"), m = Cr(e, "{1,6}"), _ = Cr(e, "{1,9}"), y = Cr(e, "{2,4}"), v = Cr(e, "{4,6}"), S = (D) => ({ regex: RegExp(E4(D.val)), deser: ([z]) => z, literal: !0 }), L = ((D) => {
|
|
14743
14745
|
if (t.literal)
|
|
14744
14746
|
return S(D);
|
|
14745
14747
|
switch (D.val) {
|
|
@@ -14860,11 +14862,11 @@ function N4(t, e) {
|
|
|
14860
14862
|
return S(D);
|
|
14861
14863
|
}
|
|
14862
14864
|
})(t) || {
|
|
14863
|
-
invalidReason:
|
|
14865
|
+
invalidReason: v4
|
|
14864
14866
|
};
|
|
14865
14867
|
return L.token = t, L;
|
|
14866
14868
|
}
|
|
14867
|
-
const
|
|
14869
|
+
const T4 = {
|
|
14868
14870
|
year: {
|
|
14869
14871
|
"2-digit": "yy",
|
|
14870
14872
|
numeric: "yyyyy"
|
|
@@ -14906,7 +14908,7 @@ const E4 = {
|
|
|
14906
14908
|
short: "ZZZ"
|
|
14907
14909
|
}
|
|
14908
14910
|
};
|
|
14909
|
-
function
|
|
14911
|
+
function P4(t, e, r) {
|
|
14910
14912
|
const { type: n, value: s } = t;
|
|
14911
14913
|
if (n === "literal") {
|
|
14912
14914
|
const c = /^\s+$/.test(s);
|
|
@@ -14918,17 +14920,17 @@ function x4(t, e, r) {
|
|
|
14918
14920
|
const i = e[n];
|
|
14919
14921
|
let u = n;
|
|
14920
14922
|
n === "hour" && (e.hour12 != null ? u = e.hour12 ? "hour12" : "hour24" : e.hourCycle != null ? e.hourCycle === "h11" || e.hourCycle === "h12" ? u = "hour12" : u = "hour24" : u = r.hour12 ? "hour12" : "hour24");
|
|
14921
|
-
let l =
|
|
14923
|
+
let l = T4[u];
|
|
14922
14924
|
if (typeof l == "object" && (l = l[i]), l)
|
|
14923
14925
|
return {
|
|
14924
14926
|
literal: !1,
|
|
14925
14927
|
val: l
|
|
14926
14928
|
};
|
|
14927
14929
|
}
|
|
14928
|
-
function
|
|
14930
|
+
function A4(t) {
|
|
14929
14931
|
return [`^${t.map((r) => r.regex).reduce((r, n) => `${r}(${n.source})`, "")}$`, t];
|
|
14930
14932
|
}
|
|
14931
|
-
function
|
|
14933
|
+
function L4(t, e, r) {
|
|
14932
14934
|
const n = t.match(e);
|
|
14933
14935
|
if (n) {
|
|
14934
14936
|
const s = {};
|
|
@@ -14942,7 +14944,7 @@ function P4(t, e, r) {
|
|
|
14942
14944
|
} else
|
|
14943
14945
|
return [n, {}];
|
|
14944
14946
|
}
|
|
14945
|
-
function
|
|
14947
|
+
function M4(t) {
|
|
14946
14948
|
const e = (i) => {
|
|
14947
14949
|
switch (i) {
|
|
14948
14950
|
case "S":
|
|
@@ -14983,28 +14985,28 @@ function A4(t) {
|
|
|
14983
14985
|
}, {}), r, n];
|
|
14984
14986
|
}
|
|
14985
14987
|
let a1 = null;
|
|
14986
|
-
function
|
|
14988
|
+
function O4() {
|
|
14987
14989
|
return a1 || (a1 = H.fromMillis(1555555555555)), a1;
|
|
14988
14990
|
}
|
|
14989
|
-
function
|
|
14991
|
+
function C4(t, e) {
|
|
14990
14992
|
if (t.literal)
|
|
14991
14993
|
return t;
|
|
14992
14994
|
const r = Wt.macroTokenToFormatOpts(t.val), n = Ay(r, e);
|
|
14993
14995
|
return n == null || n.includes(void 0) ? t : n;
|
|
14994
14996
|
}
|
|
14995
14997
|
function xy(t, e) {
|
|
14996
|
-
return Array.prototype.concat(...t.map((r) =>
|
|
14998
|
+
return Array.prototype.concat(...t.map((r) => C4(r, e)));
|
|
14997
14999
|
}
|
|
14998
15000
|
class Ty {
|
|
14999
15001
|
constructor(e, r) {
|
|
15000
|
-
if (this.locale = e, this.format = r, this.tokens = xy(Wt.parseFormat(r), e), this.units = this.tokens.map((n) =>
|
|
15001
|
-
const [n, s] =
|
|
15002
|
+
if (this.locale = e, this.format = r, this.tokens = xy(Wt.parseFormat(r), e), this.units = this.tokens.map((n) => x4(n, e)), this.disqualifyingUnit = this.units.find((n) => n.invalidReason), !this.disqualifyingUnit) {
|
|
15003
|
+
const [n, s] = A4(this.units);
|
|
15002
15004
|
this.regex = RegExp(n, "i"), this.handlers = s;
|
|
15003
15005
|
}
|
|
15004
15006
|
}
|
|
15005
15007
|
explainFromTokens(e) {
|
|
15006
15008
|
if (this.isValid) {
|
|
15007
|
-
const [r, n] =
|
|
15009
|
+
const [r, n] = L4(e, this.regex, this.handlers), [s, i, u] = n ? M4(n) : [null, null, void 0];
|
|
15008
15010
|
if (Gs(n, "a") && Gs(n, "H"))
|
|
15009
15011
|
throw new Cs(
|
|
15010
15012
|
"Can't include meridiem when specifying 24-hour format"
|
|
@@ -15032,15 +15034,15 @@ class Ty {
|
|
|
15032
15034
|
function Py(t, e, r) {
|
|
15033
15035
|
return new Ty(t, r).explainFromTokens(e);
|
|
15034
15036
|
}
|
|
15035
|
-
function
|
|
15037
|
+
function R4(t, e, r) {
|
|
15036
15038
|
const { result: n, zone: s, specificOffset: i, invalidReason: u } = Py(t, e, r);
|
|
15037
15039
|
return [n, s, i, u];
|
|
15038
15040
|
}
|
|
15039
15041
|
function Ay(t, e) {
|
|
15040
15042
|
if (!t)
|
|
15041
15043
|
return null;
|
|
15042
|
-
const n = Wt.create(e, t).dtFormatter(
|
|
15043
|
-
return s.map((u) =>
|
|
15044
|
+
const n = Wt.create(e, t).dtFormatter(O4()), s = n.formatToParts(), i = n.resolvedOptions();
|
|
15045
|
+
return s.map((u) => P4(u, t, i));
|
|
15044
15046
|
}
|
|
15045
15047
|
const u1 = "Invalid DateTime", Ug = 864e13;
|
|
15046
15048
|
function yi(t) {
|
|
@@ -15170,20 +15172,20 @@ const My = {
|
|
|
15170
15172
|
minute: 0,
|
|
15171
15173
|
second: 0,
|
|
15172
15174
|
millisecond: 0
|
|
15173
|
-
},
|
|
15175
|
+
}, I4 = {
|
|
15174
15176
|
weekNumber: 1,
|
|
15175
15177
|
weekday: 1,
|
|
15176
15178
|
hour: 0,
|
|
15177
15179
|
minute: 0,
|
|
15178
15180
|
second: 0,
|
|
15179
15181
|
millisecond: 0
|
|
15180
|
-
},
|
|
15182
|
+
}, k4 = {
|
|
15181
15183
|
ordinal: 1,
|
|
15182
15184
|
hour: 0,
|
|
15183
15185
|
minute: 0,
|
|
15184
15186
|
second: 0,
|
|
15185
15187
|
millisecond: 0
|
|
15186
|
-
}, ra = ["year", "month", "day", "hour", "minute", "second", "millisecond"],
|
|
15188
|
+
}, ra = ["year", "month", "day", "hour", "minute", "second", "millisecond"], D4 = [
|
|
15187
15189
|
"weekYear",
|
|
15188
15190
|
"weekNumber",
|
|
15189
15191
|
"weekday",
|
|
@@ -15191,7 +15193,7 @@ const My = {
|
|
|
15191
15193
|
"minute",
|
|
15192
15194
|
"second",
|
|
15193
15195
|
"millisecond"
|
|
15194
|
-
],
|
|
15196
|
+
], $4 = ["year", "ordinal", "hour", "minute", "second", "millisecond"];
|
|
15195
15197
|
function na(t) {
|
|
15196
15198
|
const e = {
|
|
15197
15199
|
year: "year",
|
|
@@ -15237,7 +15239,7 @@ function jg(t) {
|
|
|
15237
15239
|
return na(t);
|
|
15238
15240
|
}
|
|
15239
15241
|
}
|
|
15240
|
-
function
|
|
15242
|
+
function F4(t) {
|
|
15241
15243
|
if (bi === void 0 && (bi = st.now()), t.type !== "iana")
|
|
15242
15244
|
return t.offset(bi);
|
|
15243
15245
|
const e = t.name;
|
|
@@ -15258,7 +15260,7 @@ function Wg(t, e) {
|
|
|
15258
15260
|
const u = ry(t) || ny(t);
|
|
15259
15261
|
if (u)
|
|
15260
15262
|
return H.invalid(u);
|
|
15261
|
-
const l =
|
|
15263
|
+
const l = F4(r);
|
|
15262
15264
|
[s, i] = ta(t, l, r);
|
|
15263
15265
|
}
|
|
15264
15266
|
return new H({ ts: s, zone: r, loc: n, o: i });
|
|
@@ -15371,7 +15373,7 @@ class H {
|
|
|
15371
15373
|
* @return {DateTime}
|
|
15372
15374
|
*/
|
|
15373
15375
|
static fromJSDate(e, r = {}) {
|
|
15374
|
-
const n =
|
|
15376
|
+
const n = gw(e) ? e.valueOf() : NaN;
|
|
15375
15377
|
if (Number.isNaN(n))
|
|
15376
15378
|
return H.invalid("invalid input");
|
|
15377
15379
|
const s = Ln(r.zone, st.defaultZone);
|
|
@@ -15470,13 +15472,13 @@ class H {
|
|
|
15470
15472
|
throw new Cs("Can't mix ordinal dates with month/day");
|
|
15471
15473
|
const L = T || i.weekday && !S;
|
|
15472
15474
|
let D, z, W = $o(c, m);
|
|
15473
|
-
L ? (D =
|
|
15475
|
+
L ? (D = D4, z = I4, W = $a(W, u, l)) : _ ? (D = $4, z = k4, W = o1(W)) : (D = ra, z = My);
|
|
15474
15476
|
let j = !1;
|
|
15475
15477
|
for (const ke of D) {
|
|
15476
15478
|
const ve = i[ke];
|
|
15477
15479
|
ge(ve) ? j ? i[ke] = z[ke] : i[ke] = W[ke] : j = !0;
|
|
15478
15480
|
}
|
|
15479
|
-
const U = L ?
|
|
15481
|
+
const U = L ? dw(i, u, l) : _ ? mw(i) : ry(i), F = U || ny(i);
|
|
15480
15482
|
if (F)
|
|
15481
15483
|
return H.invalid(F);
|
|
15482
15484
|
const B = L ? Tg(i, u, l) : _ ? Pg(i) : i, [Z, ee] = ta(B, m, n), ye = new H({
|
|
@@ -15508,7 +15510,7 @@ class H {
|
|
|
15508
15510
|
* @return {DateTime}
|
|
15509
15511
|
*/
|
|
15510
15512
|
static fromISO(e, r = {}) {
|
|
15511
|
-
const [n, s] =
|
|
15513
|
+
const [n, s] = i4(e);
|
|
15512
15514
|
return ws(n, s, r, "ISO 8601", e);
|
|
15513
15515
|
}
|
|
15514
15516
|
/**
|
|
@@ -15527,7 +15529,7 @@ class H {
|
|
|
15527
15529
|
* @return {DateTime}
|
|
15528
15530
|
*/
|
|
15529
15531
|
static fromRFC2822(e, r = {}) {
|
|
15530
|
-
const [n, s] =
|
|
15532
|
+
const [n, s] = o4(e);
|
|
15531
15533
|
return ws(n, s, r, "RFC 2822", e);
|
|
15532
15534
|
}
|
|
15533
15535
|
/**
|
|
@@ -15547,7 +15549,7 @@ class H {
|
|
|
15547
15549
|
* @return {DateTime}
|
|
15548
15550
|
*/
|
|
15549
15551
|
static fromHTTP(e, r = {}) {
|
|
15550
|
-
const [n, s] =
|
|
15552
|
+
const [n, s] = a4(e);
|
|
15551
15553
|
return ws(n, s, r, "HTTP", r);
|
|
15552
15554
|
}
|
|
15553
15555
|
/**
|
|
@@ -15571,7 +15573,7 @@ class H {
|
|
|
15571
15573
|
locale: s,
|
|
15572
15574
|
numberingSystem: i,
|
|
15573
15575
|
defaultToEN: !0
|
|
15574
|
-
}), [l, c, m, _] =
|
|
15576
|
+
}), [l, c, m, _] = R4(u, e, r);
|
|
15575
15577
|
return _ ? H.invalid(_) : ws(l, c, n, `format ${r}`, e, m);
|
|
15576
15578
|
}
|
|
15577
15579
|
/**
|
|
@@ -15602,7 +15604,7 @@ class H {
|
|
|
15602
15604
|
* @return {DateTime}
|
|
15603
15605
|
*/
|
|
15604
15606
|
static fromSQL(e, r = {}) {
|
|
15605
|
-
const [n, s] =
|
|
15607
|
+
const [n, s] = m4(e);
|
|
15606
15608
|
return ws(n, s, r, "SQL", e);
|
|
15607
15609
|
}
|
|
15608
15610
|
/**
|
|
@@ -15616,7 +15618,7 @@ class H {
|
|
|
15616
15618
|
throw new jt("need to specify a reason the DateTime is invalid");
|
|
15617
15619
|
const n = e instanceof Wr ? e : new Wr(e, r);
|
|
15618
15620
|
if (st.throwOnInvalid)
|
|
15619
|
-
throw new
|
|
15621
|
+
throw new V7(n);
|
|
15620
15622
|
return new H({ invalid: n });
|
|
15621
15623
|
}
|
|
15622
15624
|
/**
|
|
@@ -16505,7 +16507,7 @@ class H {
|
|
|
16505
16507
|
diff(e, r = "milliseconds", n = {}) {
|
|
16506
16508
|
if (!this.isValid || !e.isValid)
|
|
16507
16509
|
return Ae.invalid("created by diffing an invalid DateTime");
|
|
16508
|
-
const s = { locale: this.locale, numberingSystem: this.numberingSystem, ...n }, i =
|
|
16510
|
+
const s = { locale: this.locale, numberingSystem: this.numberingSystem, ...n }, i = _w(r).map(Ae.normalizeUnit), u = e.valueOf() > this.valueOf(), l = u ? this : e, c = u ? e : this, m = w4(l, c, i, s);
|
|
16509
16511
|
return u ? m.negate() : m;
|
|
16510
16512
|
}
|
|
16511
16513
|
/**
|
|
@@ -16720,7 +16722,7 @@ class H {
|
|
|
16720
16722
|
* @type {Object}
|
|
16721
16723
|
*/
|
|
16722
16724
|
static get DATE_MED_WITH_WEEKDAY() {
|
|
16723
|
-
return
|
|
16725
|
+
return G7;
|
|
16724
16726
|
}
|
|
16725
16727
|
/**
|
|
16726
16728
|
* {@link DateTime#toLocaleString} format like 'October 14, 1983'
|
|
@@ -16825,7 +16827,7 @@ class H {
|
|
|
16825
16827
|
* @type {Object}
|
|
16826
16828
|
*/
|
|
16827
16829
|
static get DATETIME_MED_WITH_WEEKDAY() {
|
|
16828
|
-
return
|
|
16830
|
+
return B7;
|
|
16829
16831
|
}
|
|
16830
16832
|
/**
|
|
16831
16833
|
* {@link DateTime#toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
|
|
@@ -16878,10 +16880,10 @@ function Ts(t) {
|
|
|
16878
16880
|
function h1(t) {
|
|
16879
16881
|
return Ts(t) ? Er.instance : t;
|
|
16880
16882
|
}
|
|
16881
|
-
const
|
|
16882
|
-
let
|
|
16883
|
+
const U4 = { TimeZoneNotRecognized: "Timezone identifier has not been recognized." };
|
|
16884
|
+
let z4 = class Oy extends Error {
|
|
16883
16885
|
constructor(e, r) {
|
|
16884
|
-
super(Ka(
|
|
16886
|
+
super(Ka(U4[e], r)), this.declaredRootClass = "esri.arcade.arcadedate.dateerror", Error.captureStackTrace && Error.captureStackTrace(this, Oy);
|
|
16885
16887
|
}
|
|
16886
16888
|
};
|
|
16887
16889
|
function vs(t, e, r) {
|
|
@@ -17062,7 +17064,7 @@ let qg = class ut {
|
|
|
17062
17064
|
};
|
|
17063
17065
|
function Jr(t, e = !0) {
|
|
17064
17066
|
if (t instanceof Un) return t;
|
|
17065
|
-
switch (
|
|
17067
|
+
switch (z7(t)) {
|
|
17066
17068
|
case "system":
|
|
17067
17069
|
return "system";
|
|
17068
17070
|
case "utc":
|
|
@@ -17076,37 +17078,37 @@ function Jr(t, e = !0) {
|
|
|
17076
17078
|
}
|
|
17077
17079
|
const r = Br.create(t);
|
|
17078
17080
|
if (!r.isValid) {
|
|
17079
|
-
if (e) throw new
|
|
17081
|
+
if (e) throw new z4("TimeZoneNotRecognized");
|
|
17080
17082
|
return null;
|
|
17081
17083
|
}
|
|
17082
17084
|
return r;
|
|
17083
17085
|
}
|
|
17084
|
-
const
|
|
17086
|
+
const V4 = { remove: () => {
|
|
17085
17087
|
} };
|
|
17086
17088
|
function Ks(t) {
|
|
17087
17089
|
return t ? { remove() {
|
|
17088
17090
|
t && (t(), t = void 0);
|
|
17089
|
-
} } :
|
|
17091
|
+
} } : V4;
|
|
17090
17092
|
}
|
|
17091
|
-
function
|
|
17093
|
+
function j4(t) {
|
|
17092
17094
|
t.forEach((e) => e?.remove());
|
|
17093
17095
|
}
|
|
17094
|
-
function
|
|
17095
|
-
return Ks(() =>
|
|
17096
|
+
function W4(t) {
|
|
17097
|
+
return Ks(() => j4(t));
|
|
17096
17098
|
}
|
|
17097
17099
|
let xi;
|
|
17098
|
-
const
|
|
17100
|
+
const G4 = globalThis.esriConfig?.locale, Mh = globalThis.document?.documentElement;
|
|
17099
17101
|
function Cy() {
|
|
17100
17102
|
const t = Mh?.getAttribute("lang"), e = globalThis.navigator?.language;
|
|
17101
|
-
return
|
|
17103
|
+
return G4 ?? t ?? e ?? "en";
|
|
17102
17104
|
}
|
|
17103
17105
|
function Ry() {
|
|
17104
17106
|
return xi === void 0 && (xi = Cy()), xi;
|
|
17105
17107
|
}
|
|
17106
|
-
const
|
|
17108
|
+
const B4 = [], q4 = [];
|
|
17107
17109
|
function Hg() {
|
|
17108
17110
|
const t = Cy();
|
|
17109
|
-
xi !== t && ([...
|
|
17111
|
+
xi !== t && ([...q4].forEach((e) => e(t)), xi = t, [...B4].forEach((e) => e(t)));
|
|
17110
17112
|
}
|
|
17111
17113
|
globalThis.addEventListener?.("languagechange", Hg), Mh && new MutationObserver(() => {
|
|
17112
17114
|
Hg();
|
|
@@ -17311,10 +17313,10 @@ let Ar = class ar {
|
|
|
17311
17313
|
return new ar(r.year, r.month, r.day);
|
|
17312
17314
|
}
|
|
17313
17315
|
};
|
|
17314
|
-
const
|
|
17316
|
+
const H4 = { InvalidValueForAggregateFunction: "Invalid value used in aggregate function", MissingStatisticParameters: "Statistic does not have 1 or 0 Parameters", InvalidFunctionParameters: "Invalid parameters for call to {function}", UnsupportedIsLhs: "Unsupported left hand expression in is statement", UnsupportedIsRhs: "Unsupported right hand expression in is statement", UnsupportedOperator: "Unsupported operator - {operator}", UnsupportedSyntax: "Unsupported syntax - {node}", UnsupportedSqlFunction: "Sql function not found = {function}", InvalidDataType: "Invalid sql data type", InvalidDate: "Invalid date encountered", InvalidOperator: "Invalid operator encountered", InvalidTime: "Invalid time encountered", IllegalInterval: "Illegal interval", FunctionNotRecognized: "Function not recognized", InvalidTimeStamp: "Invalid timestamp encountered", InvalidParameterCount: "Invalid parameter count for call to {name}", PrimarySecondaryQualifiers: "Primary and Secondary SqlInterval qualifiers not supported", YearMonthIntervals: "Year-Month Intervals not supported", CannotCastValue: "Cannot cast value to the required data type" };
|
|
17315
17317
|
let R = class Iy extends Error {
|
|
17316
17318
|
constructor(e, r) {
|
|
17317
|
-
super(Ka(
|
|
17319
|
+
super(Ka(H4[e], r)), this.declaredRootClass = "esri.arcade.featureset.support.sqlerror", Error.captureStackTrace && Error.captureStackTrace(this, Iy);
|
|
17318
17320
|
}
|
|
17319
17321
|
};
|
|
17320
17322
|
function Xg(t) {
|
|
@@ -17404,7 +17406,7 @@ function se(t, e, r, n) {
|
|
|
17404
17406
|
return s > 3 && i && Object.defineProperty(e, r, i), i;
|
|
17405
17407
|
}
|
|
17406
17408
|
const fr = { apiKey: void 0, apiKeys: { scopes: [] }, applicationName: "", applicationUrl: globalThis.location?.href, assetsPath: "", fontsUrl: "https://static.arcgis.com/fonts", geometryServiceUrl: "https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer", geoRSSServiceUrl: "https://utility.arcgis.com/sharing/rss", kmlServiceUrl: "https://utility.arcgis.com/sharing/kml", userPrivilegesApplied: !0, portalUrl: "https://www.arcgis.com", respectPrefersReducedMotion: !0, routeServiceUrl: "https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World", workers: { loaderConfig: { has: {}, paths: {}, map: {}, packages: [] } }, request: { crossOriginNoCorsDomains: null, httpsDomains: ["arcgis.com", "arcgisonline.com", "esrikr.com", "premiumservices.blackbridge.com", "esripremium.accuweather.com", "gbm.digitalglobe.com", "firstlook.digitalglobe.com", "msi.digitalglobe.com"], interceptors: [], internalInterceptors: [], maxUrlLength: 2e3, priority: "high", proxyRules: [], proxyUrl: null, timeout: 62e3, trustedServers: [], useIdentity: !0 }, log: { interceptors: [], level: null } };
|
|
17407
|
-
if (globalThis.esriConfig && (
|
|
17409
|
+
if (globalThis.esriConfig && (D7(fr, globalThis.esriConfig, !0), delete fr.has), !fr.assetsPath) {
|
|
17408
17410
|
{
|
|
17409
17411
|
const t = "5.0.0-next.68";
|
|
17410
17412
|
fr.assetsPath = `https://cdn.jsdelivr.net/npm/@arcgis/core@${t}/assets`;
|
|
@@ -17473,7 +17475,7 @@ let Jt = class ur {
|
|
|
17473
17475
|
_log(e, r, ...n) {
|
|
17474
17476
|
if (this._matchLevel(e)) {
|
|
17475
17477
|
if (r !== "always" && !ur._throttlingDisabled) {
|
|
17476
|
-
const s =
|
|
17478
|
+
const s = Z4(n), i = this._loggedMessages[e].get(s);
|
|
17477
17479
|
if (r === "once" && i != null || r === "oncePerTick" && i && i >= ur._tickCounter) return;
|
|
17478
17480
|
this._loggedMessages[e].set(s, ur._tickCounter), ur._scheduleTickCounterIncrement();
|
|
17479
17481
|
}
|
|
@@ -17491,7 +17493,7 @@ let Jt = class ur {
|
|
|
17491
17493
|
return r;
|
|
17492
17494
|
}
|
|
17493
17495
|
_inheritedWriter() {
|
|
17494
|
-
return this._parentWithMember("writer",
|
|
17496
|
+
return this._parentWithMember("writer", Y4);
|
|
17495
17497
|
}
|
|
17496
17498
|
_matchLevel(e) {
|
|
17497
17499
|
const r = fr.log.level || "warn";
|
|
@@ -17503,40 +17505,40 @@ let Jt = class ur {
|
|
|
17503
17505
|
}));
|
|
17504
17506
|
}
|
|
17505
17507
|
};
|
|
17506
|
-
function
|
|
17508
|
+
function Y4(t, e, ...r) {
|
|
17507
17509
|
console[t](`[${e}]`, ...r);
|
|
17508
17510
|
}
|
|
17509
|
-
function
|
|
17510
|
-
return
|
|
17511
|
+
function Z4(...t) {
|
|
17512
|
+
return U7(JSON.stringify(t, (r, n) => typeof n != "object" || Array.isArray(n) ? n : "[Object]"));
|
|
17511
17513
|
}
|
|
17512
|
-
function
|
|
17514
|
+
function X4(t, e, r) {
|
|
17513
17515
|
const n = t.get(e);
|
|
17514
17516
|
if (n !== void 0) return n;
|
|
17515
17517
|
const s = r();
|
|
17516
17518
|
return t.set(e, s), s;
|
|
17517
17519
|
}
|
|
17518
17520
|
const es = () => Jt.getLogger("esri.core.accessorSupport.ensureTypes");
|
|
17519
|
-
function
|
|
17521
|
+
function J4(t) {
|
|
17520
17522
|
if (t == null) return t;
|
|
17521
17523
|
const e = new Date(t);
|
|
17522
17524
|
return isNaN(e.getTime()) ? (es().error("Accessor#set", `Invalid date value: '${t}', falling back to current date`), /* @__PURE__ */ new Date()) : e;
|
|
17523
17525
|
}
|
|
17524
|
-
function
|
|
17526
|
+
function Q4(t) {
|
|
17525
17527
|
return t == null ? t : !!t;
|
|
17526
17528
|
}
|
|
17527
|
-
function
|
|
17529
|
+
function K4(t) {
|
|
17528
17530
|
return t == null ? t : t.toString();
|
|
17529
17531
|
}
|
|
17530
17532
|
function ky(t, e = 0) {
|
|
17531
17533
|
return t == null ? t : (t = parseFloat(t), isNaN(t) ? e : t);
|
|
17532
17534
|
}
|
|
17533
|
-
function
|
|
17535
|
+
function ev(t) {
|
|
17534
17536
|
return t == null ? t : Math.round(parseFloat(t));
|
|
17535
17537
|
}
|
|
17536
|
-
function
|
|
17538
|
+
function tv(t) {
|
|
17537
17539
|
return null;
|
|
17538
17540
|
}
|
|
17539
|
-
function
|
|
17541
|
+
function rv(t, e) {
|
|
17540
17542
|
return (r) => {
|
|
17541
17543
|
let n = t(r);
|
|
17542
17544
|
return e.step != null && (n = Math.round(n / e.step) * e.step), e.min != null && (n = Math.max(e.min, n)), e.max != null && (n = Math.min(e.max, n)), n;
|
|
@@ -17554,7 +17556,7 @@ function $y(t) {
|
|
|
17554
17556
|
function Kg(t) {
|
|
17555
17557
|
return t?.Type ? typeof t.Type == "function" ? t.Type : t.Type.base : null;
|
|
17556
17558
|
}
|
|
17557
|
-
function
|
|
17559
|
+
function nv(t, e) {
|
|
17558
17560
|
if (!e?.constructor || !$y(e.constructor)) return Oh(t, e) ? e : new t(e);
|
|
17559
17561
|
const r = Kg(t.prototype.itemType), n = Kg(e.constructor.prototype.itemType);
|
|
17560
17562
|
return r ? n ? r === n ? e : r.prototype.isPrototypeOf(n.prototype) ? new t(e) : (Oh(t, e), e) : new t(e) : e;
|
|
@@ -17562,39 +17564,39 @@ function tv(t, e) {
|
|
|
17562
17564
|
function Oh(t, e) {
|
|
17563
17565
|
return !!Dy(e) && (es().error("Accessor#set", "Assigning an instance of '" + (e.declaredClass || "unknown") + "' which is not a subclass of '" + iu(t) + "'"), !0);
|
|
17564
17566
|
}
|
|
17565
|
-
function
|
|
17566
|
-
return e == null ? e : $y(t) ?
|
|
17567
|
+
function sv(t, e) {
|
|
17568
|
+
return e == null ? e : $y(t) ? nv(t, e) : za(t, e) ? Oh(t, e) ? e : new t(e) : e;
|
|
17567
17569
|
}
|
|
17568
17570
|
function iu(t) {
|
|
17569
17571
|
return t?.prototype?.declaredClass || "unknown";
|
|
17570
17572
|
}
|
|
17571
|
-
const
|
|
17572
|
-
function
|
|
17573
|
+
const iv = /* @__PURE__ */ new WeakMap();
|
|
17574
|
+
function ov(t) {
|
|
17573
17575
|
switch (t) {
|
|
17574
17576
|
case Number:
|
|
17575
17577
|
return (e) => ky(e);
|
|
17576
17578
|
case Jn:
|
|
17577
|
-
return
|
|
17579
|
+
return ev;
|
|
17578
17580
|
case Boolean:
|
|
17579
|
-
return
|
|
17581
|
+
return Q4;
|
|
17580
17582
|
case String:
|
|
17581
|
-
return
|
|
17583
|
+
return K4;
|
|
17582
17584
|
case Date:
|
|
17583
|
-
return
|
|
17585
|
+
return J4;
|
|
17584
17586
|
case y0:
|
|
17585
|
-
return
|
|
17587
|
+
return tv;
|
|
17586
17588
|
default:
|
|
17587
|
-
return
|
|
17589
|
+
return X4(iv, t, () => sv.bind(null, t));
|
|
17588
17590
|
}
|
|
17589
17591
|
}
|
|
17590
17592
|
function Dn(t, e) {
|
|
17591
|
-
const r =
|
|
17593
|
+
const r = ov(t);
|
|
17592
17594
|
return arguments.length === 1 ? r : r(e);
|
|
17593
17595
|
}
|
|
17594
17596
|
function Ci(t, e, r) {
|
|
17595
17597
|
return arguments.length === 1 ? Ci.bind(null, t) : e && (Array.isArray(e) ? e.map((n) => t(n, r)) : [t(e, r)]);
|
|
17596
17598
|
}
|
|
17597
|
-
function
|
|
17599
|
+
function av(t, e) {
|
|
17598
17600
|
return arguments.length === 1 ? Ci((r) => Dn(t, r)) : Ci((r) => Dn(t, r), e);
|
|
17599
17601
|
}
|
|
17600
17602
|
function Fy(t, e, r) {
|
|
@@ -17609,7 +17611,7 @@ function Va(t, e, r) {
|
|
|
17609
17611
|
if (s !== void 0) for (let i = 0; i < n; i++) r = [r];
|
|
17610
17612
|
return r;
|
|
17611
17613
|
}
|
|
17612
|
-
function
|
|
17614
|
+
function uv(t, e, r) {
|
|
17613
17615
|
return arguments.length === 2 ? Va((n) => Dn(t, n), e) : Va((n) => Dn(t, n), e, r);
|
|
17614
17616
|
}
|
|
17615
17617
|
function Uy(t) {
|
|
@@ -17653,7 +17655,7 @@ function Rh(t, e) {
|
|
|
17653
17655
|
let Jn = class {
|
|
17654
17656
|
}, y0 = class {
|
|
17655
17657
|
};
|
|
17656
|
-
function
|
|
17658
|
+
function lv(t) {
|
|
17657
17659
|
if (!t || typeof t != "object" && typeof t != "function" || !("type" in t)) return !1;
|
|
17658
17660
|
switch (t.type) {
|
|
17659
17661
|
case "native":
|
|
@@ -17670,12 +17672,12 @@ function zy(t) {
|
|
|
17670
17672
|
case "array":
|
|
17671
17673
|
return Ci(zy(t.value));
|
|
17672
17674
|
case "one-of":
|
|
17673
|
-
return
|
|
17675
|
+
return cv(t);
|
|
17674
17676
|
default:
|
|
17675
17677
|
return null;
|
|
17676
17678
|
}
|
|
17677
17679
|
}
|
|
17678
|
-
function
|
|
17680
|
+
function cv(t) {
|
|
17679
17681
|
let e = null;
|
|
17680
17682
|
return (r, n) => kh(r, t) ? r : (e == null && (e = Ih(t)), es().error("Accessor#set", `Invalid property value, value needs to be of type ${e}`), n && (n.valid = !1), null);
|
|
17681
17683
|
}
|
|
@@ -17732,7 +17734,7 @@ function kh(t, e) {
|
|
|
17732
17734
|
function ji(t) {
|
|
17733
17735
|
return t.__accessor__ ?? null;
|
|
17734
17736
|
}
|
|
17735
|
-
function
|
|
17737
|
+
function fv(t, e) {
|
|
17736
17738
|
return t?.metadata?.[e] != null;
|
|
17737
17739
|
}
|
|
17738
17740
|
function sa(t, e, r) {
|
|
@@ -17764,7 +17766,7 @@ function Vy(t) {
|
|
|
17764
17766
|
function e2(t) {
|
|
17765
17767
|
return t.includes(",") ? t.split(",").map((e) => e.trim()) : [t.trim()];
|
|
17766
17768
|
}
|
|
17767
|
-
function
|
|
17769
|
+
function hv(t) {
|
|
17768
17770
|
if (Array.isArray(t)) {
|
|
17769
17771
|
const e = [];
|
|
17770
17772
|
for (const r of t) e.push(...e2(r));
|
|
@@ -17773,10 +17775,10 @@ function cv(t) {
|
|
|
17773
17775
|
return e2(t);
|
|
17774
17776
|
}
|
|
17775
17777
|
function jy(t, e, r, n) {
|
|
17776
|
-
const s =
|
|
17778
|
+
const s = hv(e);
|
|
17777
17779
|
if (s.length !== 1) {
|
|
17778
17780
|
const i = s.map((u) => n(t, u, r));
|
|
17779
|
-
return
|
|
17781
|
+
return W4(i);
|
|
17780
17782
|
}
|
|
17781
17783
|
return n(t, s[0], r);
|
|
17782
17784
|
}
|
|
@@ -17787,7 +17789,7 @@ function Wy(t, e) {
|
|
|
17787
17789
|
if (!isNaN(s)) return Array.isArray(e) ? e[s] : e.at(s);
|
|
17788
17790
|
}
|
|
17789
17791
|
const n = ji(e);
|
|
17790
|
-
return
|
|
17792
|
+
return fv(n, r) ? n.get(r) : e[r];
|
|
17791
17793
|
}
|
|
17792
17794
|
function Gy(t, e, r) {
|
|
17793
17795
|
if (t == null) return t;
|
|
@@ -17820,12 +17822,12 @@ function ou(t, e) {
|
|
|
17820
17822
|
let n = r[e];
|
|
17821
17823
|
return n || (n = r[e] = {}), n;
|
|
17822
17824
|
}
|
|
17823
|
-
function
|
|
17824
|
-
return sa(t, e,
|
|
17825
|
+
function dv(t, e) {
|
|
17826
|
+
return sa(t, e, pv);
|
|
17825
17827
|
}
|
|
17826
|
-
const
|
|
17827
|
-
function
|
|
17828
|
-
return
|
|
17828
|
+
const mv = /^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;
|
|
17829
|
+
function pv(t) {
|
|
17830
|
+
return mv.test(t) ? "replace" : "merge";
|
|
17829
17831
|
}
|
|
17830
17832
|
let Gi = class By {
|
|
17831
17833
|
constructor(e, r, n) {
|
|
@@ -17862,16 +17864,16 @@ function Wa(t, e, r) {
|
|
|
17862
17864
|
return void Wa(Bs(t, s), i, r);
|
|
17863
17865
|
}
|
|
17864
17866
|
const n = t.__accessor__;
|
|
17865
|
-
n != null &&
|
|
17867
|
+
n != null && gv(e, n), t[e] = r;
|
|
17866
17868
|
}
|
|
17867
17869
|
}
|
|
17868
|
-
function
|
|
17869
|
-
if ($("esri-unknown-property-errors") && !
|
|
17870
|
+
function gv(t, e) {
|
|
17871
|
+
if ($("esri-unknown-property-errors") && !_v(t, e)) throw new Gi("set:unknown-property", yv(t, e));
|
|
17870
17872
|
}
|
|
17871
|
-
function
|
|
17873
|
+
function _v(t, e) {
|
|
17872
17874
|
return e.metadata[t] != null;
|
|
17873
17875
|
}
|
|
17874
|
-
function
|
|
17876
|
+
function yv(t, e) {
|
|
17875
17877
|
return "setting unknown property '" + t + "' on instance of " + e.host.declaredClass;
|
|
17876
17878
|
}
|
|
17877
17879
|
function He(t = {}) {
|
|
@@ -17900,9 +17902,9 @@ function He(t = {}) {
|
|
|
17900
17902
|
const u = t.type, l = t.types;
|
|
17901
17903
|
if (!s.cast) {
|
|
17902
17904
|
let c;
|
|
17903
|
-
u && t.useTypeForAutocast !== !1 ? c =
|
|
17905
|
+
u && t.useTypeForAutocast !== !1 ? c = bv(u) : l && (c = Array.isArray(l) ? Ci(Rh(l[0])) : Rh(l)), t.cast = wv(t.cast, c);
|
|
17904
17906
|
}
|
|
17905
|
-
|
|
17907
|
+
dv(s, t), t.range && (s.cast = rv(s.cast, t.range));
|
|
17906
17908
|
};
|
|
17907
17909
|
}
|
|
17908
17910
|
function qy(t, e, r) {
|
|
@@ -17911,38 +17913,38 @@ function qy(t, e, r) {
|
|
|
17911
17913
|
let s = n.json;
|
|
17912
17914
|
return e !== void 0 && (s.origins || (s.origins = {}), s.origins[e] || (s.origins[e] = {}), s = s.origins[e]), s;
|
|
17913
17915
|
}
|
|
17914
|
-
function
|
|
17916
|
+
function bv(t) {
|
|
17915
17917
|
let e = 0, r = t;
|
|
17916
|
-
if (
|
|
17918
|
+
if (lv(t)) return zy(t);
|
|
17917
17919
|
for (; Array.isArray(r) && r.length === 1 && typeof r[0] != "string" && typeof r[0] != "number"; ) r = r[0], e++;
|
|
17918
17920
|
const n = r;
|
|
17919
17921
|
if (Uy(n)) return e === 0 ? Ch(n) : Va(Ch(n), e);
|
|
17920
|
-
if (e === 1) return
|
|
17921
|
-
if (e > 1) return
|
|
17922
|
+
if (e === 1) return av(n);
|
|
17923
|
+
if (e > 1) return uv(n, e);
|
|
17922
17924
|
const s = t;
|
|
17923
17925
|
return s.from ? s.from : Dn(s);
|
|
17924
17926
|
}
|
|
17925
|
-
function
|
|
17927
|
+
function wv(t, e) {
|
|
17926
17928
|
if (t || e) return t ? e ? (r, n) => e(t(r, n), n) : t : e;
|
|
17927
17929
|
}
|
|
17928
|
-
const
|
|
17929
|
-
function
|
|
17930
|
+
const vv = Object.prototype.toString;
|
|
17931
|
+
function Sv(t) {
|
|
17930
17932
|
const e = "__accessorMetadata__" in t ? Dn(t) : t;
|
|
17931
17933
|
return function(...r) {
|
|
17932
17934
|
if (r.push(e), typeof r[2] == "number") throw new Error("Using @cast has parameter decorator is not supported since 4.16");
|
|
17933
|
-
return
|
|
17935
|
+
return Nv.apply(this, r);
|
|
17934
17936
|
};
|
|
17935
17937
|
}
|
|
17936
|
-
function
|
|
17938
|
+
function Nv(t, e, r, n) {
|
|
17937
17939
|
ou(t, e).cast = n;
|
|
17938
17940
|
}
|
|
17939
|
-
function
|
|
17941
|
+
function Ev(t) {
|
|
17940
17942
|
return (e, r) => {
|
|
17941
17943
|
ou(e, t).cast = e[r];
|
|
17942
17944
|
};
|
|
17943
17945
|
}
|
|
17944
|
-
function
|
|
17945
|
-
if (t.length !== 3 || typeof t[1] != "string") return t.length === 1 &&
|
|
17946
|
+
function xv(...t) {
|
|
17947
|
+
if (t.length !== 3 || typeof t[1] != "string") return t.length === 1 && vv.call(t[0]) === "[object Function]" ? Sv(t[0]) : t.length === 1 && typeof t[0] == "string" ? Ev(t[0]) : void 0;
|
|
17946
17948
|
}
|
|
17947
17949
|
const Hy = Symbol("Accessor-beforeDestroy"), sr = { INITIALIZING: 0, CONSTRUCTING: 1, CONSTRUCTED: 2, DESTROYING: 3, DESTROYED: 4 }, Ye = { Dirty: 1, Overridden: 2, Computing: 4, NonNullable: 8, HasDefaultValue: 16, DepTrackingInitialized: 32, AutoTracked: 64, ExplicitlyTracking: 128 };
|
|
17948
17950
|
let au = class {
|
|
@@ -17993,7 +17995,7 @@ function qs(t, e, r) {
|
|
|
17993
17995
|
}
|
|
17994
17996
|
return n;
|
|
17995
17997
|
}
|
|
17996
|
-
function
|
|
17998
|
+
function Tv(t, e) {
|
|
17997
17999
|
return qs(Ga, t, e);
|
|
17998
18000
|
}
|
|
17999
18001
|
function b0(t, e, r) {
|
|
@@ -18023,10 +18025,10 @@ function Yy(t, e) {
|
|
|
18023
18025
|
const r = Ti;
|
|
18024
18026
|
Ti = !1, e.flags & Ye.AutoTracked ? b0(e.trackingTarget, e.metadata.get, t) : Zy(t, e), Ti = r;
|
|
18025
18027
|
}
|
|
18026
|
-
const
|
|
18028
|
+
const Pv = [];
|
|
18027
18029
|
function Zy(t, e) {
|
|
18028
18030
|
e.flags & Ye.ExplicitlyTracking || (e.flags |= Ye.ExplicitlyTracking, b0(e.trackingTarget, () => {
|
|
18029
|
-
const r = e.metadata.dependsOn ||
|
|
18031
|
+
const r = e.metadata.dependsOn || Pv;
|
|
18030
18032
|
for (const n of r) if (typeof n != "string" || n.includes(".")) {
|
|
18031
18033
|
const s = Vy(n);
|
|
18032
18034
|
for (let i = 0, u = t; i < s.length && u != null && typeof u == "object"; ++i) u = r2(u, s[i], i !== s.length - 1);
|
|
@@ -18046,7 +18048,7 @@ function r2(t, e, r) {
|
|
|
18046
18048
|
}
|
|
18047
18049
|
return r ? t[n] : void 0;
|
|
18048
18050
|
}
|
|
18049
|
-
function
|
|
18051
|
+
function Av(t) {
|
|
18050
18052
|
if (t.json && t.json.origins) {
|
|
18051
18053
|
const e = t.json.origins, r = { "web-document": ["web-scene", "web-map"] };
|
|
18052
18054
|
for (const n in r) if (e[n]) {
|
|
@@ -18057,7 +18059,7 @@ function Tv(t) {
|
|
|
18057
18059
|
}
|
|
18058
18060
|
}
|
|
18059
18061
|
}
|
|
18060
|
-
let
|
|
18062
|
+
let Lv = class {
|
|
18061
18063
|
constructor(e, r, n) {
|
|
18062
18064
|
this.name = e, this.details = n, this.type = "warning", this.message = r ? L_(r, n) : "";
|
|
18063
18065
|
}
|
|
@@ -18069,13 +18071,13 @@ let Pv = class {
|
|
|
18069
18071
|
function Xy(t) {
|
|
18070
18072
|
return !!t && t.prototype?.declaredClass && t.prototype.declaredClass.indexOf("esri.core.Collection") === 0;
|
|
18071
18073
|
}
|
|
18072
|
-
function
|
|
18074
|
+
function Mv(t, e) {
|
|
18073
18075
|
return w0(t, "any", e?.origin);
|
|
18074
18076
|
}
|
|
18075
18077
|
function Ba(t, e) {
|
|
18076
18078
|
return w0(t, "read", e?.origin);
|
|
18077
18079
|
}
|
|
18078
|
-
function
|
|
18080
|
+
function Ov(t, e) {
|
|
18079
18081
|
return w0(t, "write", e?.origin);
|
|
18080
18082
|
}
|
|
18081
18083
|
function w0(t, e, r) {
|
|
@@ -18088,11 +18090,11 @@ function w0(t, e, r) {
|
|
|
18088
18090
|
}
|
|
18089
18091
|
const $h = () => Jt.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");
|
|
18090
18092
|
function n2(t, e, r) {
|
|
18091
|
-
t && (!r && !e.read || e.read?.reader || e.read?.enabled === !1 ||
|
|
18093
|
+
t && (!r && !e.read || e.read?.reader || e.read?.enabled === !1 || kv(t) && Fi("read.reader", Cv(t), e));
|
|
18092
18094
|
}
|
|
18093
|
-
function
|
|
18095
|
+
function Cv(t) {
|
|
18094
18096
|
const e = t.ndimArray ?? 0;
|
|
18095
|
-
if (e > 1) return
|
|
18097
|
+
if (e > 1) return Iv(t);
|
|
18096
18098
|
if (e === 1) return s2(t);
|
|
18097
18099
|
if ("type" in t && Qy(t.type)) {
|
|
18098
18100
|
const r = t.type.prototype?.itemType?.Type, n = s2(typeof r == "function" ? { type: r } : { types: r });
|
|
@@ -18104,9 +18106,9 @@ function Mv(t) {
|
|
|
18104
18106
|
return v0(t);
|
|
18105
18107
|
}
|
|
18106
18108
|
function v0(t) {
|
|
18107
|
-
return "type" in t ?
|
|
18109
|
+
return "type" in t ? Rv(t.type) : Dv(t.types);
|
|
18108
18110
|
}
|
|
18109
|
-
function
|
|
18111
|
+
function Rv(t) {
|
|
18110
18112
|
return t.prototype.read ? (e, r, n) => {
|
|
18111
18113
|
if (e == null) return e;
|
|
18112
18114
|
const s = typeof e;
|
|
@@ -18118,7 +18120,7 @@ function Ov(t) {
|
|
|
18118
18120
|
function Jy(t, e, r, n) {
|
|
18119
18121
|
return n !== 0 && Array.isArray(e) ? e.map((s) => Jy(t, s, r, n - 1)) : t(e, void 0, r);
|
|
18120
18122
|
}
|
|
18121
|
-
function
|
|
18123
|
+
function Iv(t) {
|
|
18122
18124
|
const e = v0(t), r = Jy.bind(null, e), n = t.ndimArray ?? 0;
|
|
18123
18125
|
return (s, i, u) => {
|
|
18124
18126
|
if (s == null) return s;
|
|
@@ -18150,7 +18152,7 @@ function Qy(t) {
|
|
|
18150
18152
|
const e = t.prototype.itemType;
|
|
18151
18153
|
return !(!e || !e.Type) && (typeof e.Type == "function" ? S0(e.Type) : Ky(e.Type));
|
|
18152
18154
|
}
|
|
18153
|
-
function
|
|
18155
|
+
function kv(t) {
|
|
18154
18156
|
return "types" in t ? Ky(t.types) : S0(t.type);
|
|
18155
18157
|
}
|
|
18156
18158
|
function S0(t) {
|
|
@@ -18161,30 +18163,30 @@ function Ky(t) {
|
|
|
18161
18163
|
if (!S0(t.typeMap[e])) return !1;
|
|
18162
18164
|
return !0;
|
|
18163
18165
|
}
|
|
18164
|
-
function
|
|
18166
|
+
function Dv(t) {
|
|
18165
18167
|
let e = null;
|
|
18166
18168
|
const r = t.errorContext ?? "type", n = t.validate;
|
|
18167
18169
|
return (s, i, u) => {
|
|
18168
18170
|
if (s == null) return s;
|
|
18169
18171
|
const l = typeof s;
|
|
18170
18172
|
if (l !== "object") return void $h().error(`Expected JSON value of type 'object' to deserialize, but got '${l}'`);
|
|
18171
|
-
e || (e =
|
|
18173
|
+
e || (e = Fv(t));
|
|
18172
18174
|
const c = t.key;
|
|
18173
18175
|
if (typeof c != "string") return;
|
|
18174
|
-
const m = s[
|
|
18176
|
+
const m = s[$v(c, e, u)], _ = m ? e[m] : t.defaultKeyValue ? t.typeMap[t.defaultKeyValue] : void 0;
|
|
18175
18177
|
if (!_) {
|
|
18176
18178
|
const v = `Type '${m || "unknown"}' is not supported`;
|
|
18177
|
-
return u?.messages && s && u.messages.push(new
|
|
18179
|
+
return u?.messages && s && u.messages.push(new Lv(`${r}:unsupported`, v, { definition: s, context: u })), void $h().error(v);
|
|
18178
18180
|
}
|
|
18179
18181
|
const y = new _();
|
|
18180
18182
|
return y.read(s, u), n ? n(y) : y;
|
|
18181
18183
|
};
|
|
18182
18184
|
}
|
|
18183
|
-
function
|
|
18185
|
+
function $v(t, e, r) {
|
|
18184
18186
|
const n = Object.values(e)[0], s = ei(n.prototype)[t], i = Ba(s, r), u = i?.read?.source;
|
|
18185
18187
|
return u && typeof u == "string" ? u : t;
|
|
18186
18188
|
}
|
|
18187
|
-
function
|
|
18189
|
+
function Fv(t) {
|
|
18188
18190
|
const e = {};
|
|
18189
18191
|
for (const r in t.typeMap) {
|
|
18190
18192
|
const n = t.typeMap[r], s = ei(n.prototype);
|
|
@@ -18205,7 +18207,7 @@ function Dv(t) {
|
|
|
18205
18207
|
}
|
|
18206
18208
|
return e;
|
|
18207
18209
|
}
|
|
18208
|
-
function
|
|
18210
|
+
function Uv(t) {
|
|
18209
18211
|
if (t.json || (t.json = {}), o2(t.json), a2(t.json), i2(t.json), t.json.origins) for (const e in t.json.origins) o2(t.json.origins[e]), a2(t.json.origins[e]), i2(t.json.origins[e]);
|
|
18210
18212
|
return !0;
|
|
18211
18213
|
}
|
|
@@ -18221,9 +18223,9 @@ function a2(t) {
|
|
|
18221
18223
|
function u2(t, e) {
|
|
18222
18224
|
if (!e.write || e.write.writer || e.write.enabled === !1 && !e.write.overridePolicy) return;
|
|
18223
18225
|
const r = t?.ndimArray ?? 0;
|
|
18224
|
-
t && (r === 1 || "type" in t && Xy(t.type)) ? e.write.writer =
|
|
18226
|
+
t && (r === 1 || "type" in t && Xy(t.type)) ? e.write.writer = Wv : r > 1 ? e.write.writer = Gv(r) : e.types ? Array.isArray(e.types) ? e.write.writer = Vv(e.types[0]) : e.write.writer = zv(e.types) : e.write.writer = Ri;
|
|
18225
18227
|
}
|
|
18226
|
-
function
|
|
18228
|
+
function zv(t) {
|
|
18227
18229
|
return (e, r, n, s) => e ? e3(e, t, s) ? Ri(e, r, n, s) : void 0 : Ri(e, r, n, s);
|
|
18228
18230
|
}
|
|
18229
18231
|
function e3(t, e, r) {
|
|
@@ -18234,26 +18236,26 @@ function e3(t, e, r) {
|
|
|
18234
18236
|
}
|
|
18235
18237
|
return !1;
|
|
18236
18238
|
}
|
|
18237
|
-
function
|
|
18239
|
+
function Vv(t) {
|
|
18238
18240
|
return (e, r, n, s) => !e || !Array.isArray(e) ? Ri(e, r, n, s) : Ri(e.filter((i) => e3(i, t, s)), r, n, s);
|
|
18239
18241
|
}
|
|
18240
18242
|
function Ri(t, e, r, n) {
|
|
18241
18243
|
Fi(r, qa(t, n), e);
|
|
18242
18244
|
}
|
|
18243
18245
|
function qa(t, e) {
|
|
18244
|
-
return t && typeof t.write == "function" ? t.write({}, e) : t && typeof t.toJSON == "function" ? t.toJSON() : typeof t == "number" ?
|
|
18246
|
+
return t && typeof t.write == "function" ? t.write({}, e) : t && typeof t.toJSON == "function" ? t.toJSON() : typeof t == "number" ? jv(t) : t;
|
|
18245
18247
|
}
|
|
18246
|
-
function
|
|
18248
|
+
function jv(t) {
|
|
18247
18249
|
return t === -1 / 0 ? -Number.MAX_VALUE : t === 1 / 0 ? Number.MAX_VALUE : isNaN(t) ? null : t;
|
|
18248
18250
|
}
|
|
18249
|
-
function
|
|
18251
|
+
function Wv(t, e, r, n) {
|
|
18250
18252
|
let s;
|
|
18251
18253
|
t === null ? s = null : t && typeof t.map == "function" ? (s = t.map((i) => qa(i, n)), typeof s.toArray == "function" && (s = s.toArray())) : s = [qa(t, n)], Fi(r, s, e);
|
|
18252
18254
|
}
|
|
18253
18255
|
function t3(t, e, r) {
|
|
18254
18256
|
return r !== 0 && Array.isArray(t) ? t.map((n) => t3(n, e, r - 1)) : qa(t, e);
|
|
18255
18257
|
}
|
|
18256
|
-
function
|
|
18258
|
+
function Gv(t) {
|
|
18257
18259
|
return (e, r, n, s) => {
|
|
18258
18260
|
let i;
|
|
18259
18261
|
if (e === null) i = null;
|
|
@@ -18266,18 +18268,18 @@ function jv(t) {
|
|
|
18266
18268
|
Fi(n, i, r);
|
|
18267
18269
|
};
|
|
18268
18270
|
}
|
|
18269
|
-
function
|
|
18270
|
-
const e =
|
|
18271
|
+
function Bv(t) {
|
|
18272
|
+
const e = qv(t);
|
|
18271
18273
|
if (t.json.origins) for (const r in t.json.origins) {
|
|
18272
|
-
const n = t.json.origins[r], s = n.types ?
|
|
18274
|
+
const n = t.json.origins[r], s = n.types ? Hv(n) : e;
|
|
18273
18275
|
n2(s, n, !1), n.types && !n.write && t.json.write?.enabled && (n.write = { ...t.json.write }), u2(s, n);
|
|
18274
18276
|
}
|
|
18275
18277
|
n2(e, t.json, !0), u2(e, t.json);
|
|
18276
18278
|
}
|
|
18277
|
-
function
|
|
18279
|
+
function qv(t) {
|
|
18278
18280
|
return t.json.types ? Fh(t.json) : t.type ? r3(t) : Fh(t);
|
|
18279
18281
|
}
|
|
18280
|
-
function
|
|
18282
|
+
function Hv(t) {
|
|
18281
18283
|
return t.type ? r3(t) : Fh(t);
|
|
18282
18284
|
}
|
|
18283
18285
|
function r3(t) {
|
|
@@ -18292,13 +18294,13 @@ function Fh(t) {
|
|
|
18292
18294
|
for (; Array.isArray(r); ) r = r[0], e++;
|
|
18293
18295
|
return { types: r, ndimArray: e };
|
|
18294
18296
|
}
|
|
18295
|
-
function
|
|
18296
|
-
|
|
18297
|
+
function Yv(t) {
|
|
18298
|
+
Uv(t) && (Av(t), Bv(t));
|
|
18297
18299
|
}
|
|
18298
18300
|
const d1 = /* @__PURE__ */ new Set(), m1 = /* @__PURE__ */ new Set();
|
|
18299
18301
|
function lu(t) {
|
|
18300
18302
|
return (e) => {
|
|
18301
|
-
t ??= "esri.core.Accessor", e.prototype.declaredClass = t,
|
|
18303
|
+
t ??= "esri.core.Accessor", e.prototype.declaredClass = t, Jv(e);
|
|
18302
18304
|
const r = [], n = [];
|
|
18303
18305
|
let s = e.prototype;
|
|
18304
18306
|
for (; s; ) s.hasOwnProperty("initialize") && !d1.has(s.initialize) && (d1.add(s.initialize), r.push(s.initialize)), s.hasOwnProperty("destroy") && !m1.has(s.destroy) && (m1.add(s.destroy), n.push(s.destroy)), s = Object.getPrototypeOf(s);
|
|
@@ -18329,7 +18331,7 @@ function lu(t) {
|
|
|
18329
18331
|
return Object.defineProperty(i, "name", { value: u, configurable: !0 }), i;
|
|
18330
18332
|
};
|
|
18331
18333
|
}
|
|
18332
|
-
function
|
|
18334
|
+
function Zv(t, { get: e, value: r }) {
|
|
18333
18335
|
return e == null ? function() {
|
|
18334
18336
|
const n = this.__accessor__, s = n.propertiesByName.get(t);
|
|
18335
18337
|
if (s === void 0) return;
|
|
@@ -18344,7 +18346,7 @@ function Hv(t, { get: e, value: r }) {
|
|
|
18344
18346
|
function Uo(t, e, r) {
|
|
18345
18347
|
Object.defineProperty(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r });
|
|
18346
18348
|
}
|
|
18347
|
-
function
|
|
18349
|
+
function Xv(t, e) {
|
|
18348
18350
|
return e.readOnly && e.constructOnly ? function(r) {
|
|
18349
18351
|
const n = this.__accessor__;
|
|
18350
18352
|
if (n) {
|
|
@@ -18365,20 +18367,20 @@ function Yv(t, e) {
|
|
|
18365
18367
|
n ? n.mutable && n.set(t, r) : Uo(this, t, r);
|
|
18366
18368
|
};
|
|
18367
18369
|
}
|
|
18368
|
-
function
|
|
18370
|
+
function Jv(t) {
|
|
18369
18371
|
const e = t.prototype, r = ei(e), n = {};
|
|
18370
18372
|
for (const s of Object.getOwnPropertyNames(r)) {
|
|
18371
18373
|
const i = r[s];
|
|
18372
|
-
|
|
18374
|
+
Yv(i), n[s] = { enumerable: !0, configurable: !0, get: Zv(s, i), set: Xv(s, i) };
|
|
18373
18375
|
}
|
|
18374
18376
|
Object.defineProperties(t.prototype, n);
|
|
18375
18377
|
}
|
|
18376
18378
|
const zo = (t, e) => {
|
|
18377
18379
|
Jt.getLogger("esri.core.Accessor").error(`cannot assign to ${t} property '${e}'`);
|
|
18378
18380
|
};
|
|
18379
|
-
let
|
|
18381
|
+
let Qv = class {
|
|
18380
18382
|
constructor(e, r = { ignoreUnknown: !1, useNumericKeys: !1 }) {
|
|
18381
|
-
this._jsonToAPI = e, this._options = r, this.apiValues = [], this.jsonValues = [], this._apiToJSON =
|
|
18383
|
+
this._jsonToAPI = e, this._options = r, this.apiValues = [], this.jsonValues = [], this._apiToJSON = Kv(e), this.apiValues = l2(this._apiToJSON), this.jsonValues = l2(this._jsonToAPI), this.read = (n) => this.fromJSON(n), this.write = (n, s, i) => {
|
|
18382
18384
|
const u = this.toJSON(n);
|
|
18383
18385
|
u !== void 0 && Fi(i, u, s);
|
|
18384
18386
|
}, this.write.isJSONMapWriter = !0;
|
|
@@ -18395,7 +18397,7 @@ let Xv = class {
|
|
|
18395
18397
|
return e != null && this._jsonToAPI.hasOwnProperty(e) ? this._jsonToAPI[e] : this._options.ignoreUnknown ? void 0 : e;
|
|
18396
18398
|
}
|
|
18397
18399
|
};
|
|
18398
|
-
function
|
|
18400
|
+
function Kv(t) {
|
|
18399
18401
|
const e = {};
|
|
18400
18402
|
for (const r in t) e[t[r]] = r;
|
|
18401
18403
|
return e;
|
|
@@ -18407,7 +18409,7 @@ function l2(t) {
|
|
|
18407
18409
|
}
|
|
18408
18410
|
function cu() {
|
|
18409
18411
|
return function(t, e) {
|
|
18410
|
-
return new
|
|
18412
|
+
return new Qv(t, { ignoreUnknown: !0, ...e });
|
|
18411
18413
|
};
|
|
18412
18414
|
}
|
|
18413
18415
|
function n3(t, e, r) {
|
|
@@ -18431,23 +18433,23 @@ function Uh(t, e, r) {
|
|
|
18431
18433
|
};
|
|
18432
18434
|
}
|
|
18433
18435
|
const Re = He, N0 = lu;
|
|
18434
|
-
function
|
|
18435
|
-
return
|
|
18436
|
+
function eS(...t) {
|
|
18437
|
+
return xv(...t);
|
|
18436
18438
|
}
|
|
18437
18439
|
const c2 = /* @__PURE__ */ new WeakMap();
|
|
18438
|
-
function
|
|
18440
|
+
function tS(t, e, r = !1) {
|
|
18439
18441
|
const n = `🛑 DEPRECATED - ${e}`;
|
|
18440
18442
|
if (!r) return void t.warn(n);
|
|
18441
18443
|
let s = c2.get(t);
|
|
18442
18444
|
s || (s = /* @__PURE__ */ new Set(), c2.set(t, s)), s.has(e) || (s.add(e), t.warn(n));
|
|
18443
18445
|
}
|
|
18444
|
-
function
|
|
18446
|
+
function rS(t, e, r = {}) {
|
|
18445
18447
|
if ($("esri-deprecation-warnings")) {
|
|
18446
18448
|
const { moduleName: n } = r;
|
|
18447
|
-
|
|
18449
|
+
nS(t, `Function: ${(n ? n + "::" : "") + e + "()"}`, r);
|
|
18448
18450
|
}
|
|
18449
18451
|
}
|
|
18450
|
-
function
|
|
18452
|
+
function nS(t, e, r = {}) {
|
|
18451
18453
|
if ($("esri-deprecation-warnings")) {
|
|
18452
18454
|
const { replacement: n, version: s, see: i, warnOnce: u } = r;
|
|
18453
18455
|
let l = e;
|
|
@@ -18460,7 +18462,7 @@ function tS(t, e, r = {}) {
|
|
|
18460
18462
|
${c}`;
|
|
18461
18463
|
} else l += `
|
|
18462
18464
|
🔗 See ${i} for more details.`;
|
|
18463
|
-
|
|
18465
|
+
tS(t, l, u);
|
|
18464
18466
|
}
|
|
18465
18467
|
}
|
|
18466
18468
|
function f2(t) {
|
|
@@ -18527,13 +18529,13 @@ function h2(t) {
|
|
|
18527
18529
|
function d2(t) {
|
|
18528
18530
|
return t != null && (!!t.remove || t instanceof E0);
|
|
18529
18531
|
}
|
|
18530
|
-
function
|
|
18532
|
+
function sS(t) {
|
|
18531
18533
|
return t?.destroy(), null;
|
|
18532
18534
|
}
|
|
18533
|
-
function
|
|
18535
|
+
function iS(t) {
|
|
18534
18536
|
return t?.release && typeof t.release == "function";
|
|
18535
18537
|
}
|
|
18536
|
-
function
|
|
18538
|
+
function oS(t) {
|
|
18537
18539
|
return t?.acquire && typeof t.acquire == "function";
|
|
18538
18540
|
}
|
|
18539
18541
|
let x0 = class zh {
|
|
@@ -18555,10 +18557,10 @@ let x0 = class zh {
|
|
|
18555
18557
|
}
|
|
18556
18558
|
r = this._pool.pop();
|
|
18557
18559
|
}
|
|
18558
|
-
return this._acquireFunction ? this._acquireFunction(r, ...e) :
|
|
18560
|
+
return this._acquireFunction ? this._acquireFunction(r, ...e) : oS(r) && r.acquire(...e), r;
|
|
18559
18561
|
}
|
|
18560
18562
|
release(e) {
|
|
18561
|
-
e && !zh.test.disabled && (this._releaseFunction ? this._releaseFunction(e) :
|
|
18563
|
+
e && !zh.test.disabled && (this._releaseFunction ? this._releaseFunction(e) : iS(e) && e.release(), this._pool.push(e));
|
|
18562
18564
|
}
|
|
18563
18565
|
prune(e = this._initialSize) {
|
|
18564
18566
|
if (!(e >= this._pool.length)) {
|
|
@@ -18575,7 +18577,7 @@ let x0 = class zh {
|
|
|
18575
18577
|
static {
|
|
18576
18578
|
this.test = { disabled: !!$("esri-tests-disable-memory-pools") };
|
|
18577
18579
|
}
|
|
18578
|
-
},
|
|
18580
|
+
}, aS = class {
|
|
18579
18581
|
constructor(e, r) {
|
|
18580
18582
|
this._observers = e, this._observer = r;
|
|
18581
18583
|
}
|
|
@@ -18585,12 +18587,12 @@ let x0 = class zh {
|
|
|
18585
18587
|
const n = e.indexOf(this._observer);
|
|
18586
18588
|
n !== -1 && e.splice(n, 1);
|
|
18587
18589
|
}
|
|
18588
|
-
},
|
|
18590
|
+
}, uS = class {
|
|
18589
18591
|
constructor() {
|
|
18590
18592
|
this._observers = null, this.destroyed = !1;
|
|
18591
18593
|
}
|
|
18592
18594
|
observe(e) {
|
|
18593
|
-
if (this.destroyed || e.destroyed) return
|
|
18595
|
+
if (this.destroyed || e.destroyed) return lS;
|
|
18594
18596
|
this._observers == null && (this._observers = []);
|
|
18595
18597
|
const r = this._observers;
|
|
18596
18598
|
let n = !1, s = !1;
|
|
@@ -18599,7 +18601,7 @@ let x0 = class zh {
|
|
|
18599
18601
|
n = !0;
|
|
18600
18602
|
break;
|
|
18601
18603
|
}
|
|
18602
|
-
return n || (r.push(e), s && this._removeDestroyedObservers()), new
|
|
18604
|
+
return n || (r.push(e), s && this._removeDestroyedObservers()), new aS(r, e);
|
|
18603
18605
|
}
|
|
18604
18606
|
_removeDestroyedObservers() {
|
|
18605
18607
|
const e = this._observers;
|
|
@@ -18627,8 +18629,8 @@ let x0 = class zh {
|
|
|
18627
18629
|
}
|
|
18628
18630
|
}
|
|
18629
18631
|
};
|
|
18630
|
-
const
|
|
18631
|
-
let m2 = class extends
|
|
18632
|
+
const lS = Ks();
|
|
18633
|
+
let m2 = class extends uS {
|
|
18632
18634
|
constructor(e, r) {
|
|
18633
18635
|
super(), this.propertyName = e, this.metadata = r, this.trackingTarget = new au(this), this.flags = 0, this.flags = Ye.Dirty | (r.nonNullable ? Ye.NonNullable : 0) | (r.hasOwnProperty("value") ? Ye.HasDefaultValue : 0) | (r.get === void 0 ? Ye.DepTrackingInitialized : 0) | (r.dependsOn === void 0 ? Ye.AutoTracked : 0);
|
|
18634
18636
|
}
|
|
@@ -18644,7 +18646,7 @@ let m2 = class extends oS {
|
|
|
18644
18646
|
const { host: c } = e;
|
|
18645
18647
|
i & Ye.AutoTracked ? l = qs(this.trackingTarget, r, c) : (Zy(c, this), l = r.call(c)), this.flags |= Ye.DepTrackingInitialized, n.set(s, l, 1);
|
|
18646
18648
|
const m = n.get(s);
|
|
18647
|
-
return m === u ? this.flags &= -2 :
|
|
18649
|
+
return m === u ? this.flags &= -2 : Tv(this.commit, this), this.flags &= -5, m;
|
|
18648
18650
|
}
|
|
18649
18651
|
notifyChange() {
|
|
18650
18652
|
this.onInvalidated(), this.onCommitted();
|
|
@@ -18706,10 +18708,10 @@ function Vh(t) {
|
|
|
18706
18708
|
return "user";
|
|
18707
18709
|
}
|
|
18708
18710
|
}
|
|
18709
|
-
function
|
|
18711
|
+
function cS(t) {
|
|
18710
18712
|
return Vh(t);
|
|
18711
18713
|
}
|
|
18712
|
-
let
|
|
18714
|
+
let fS = class i3 {
|
|
18713
18715
|
constructor() {
|
|
18714
18716
|
this._values = /* @__PURE__ */ new Map(), this.multipleOriginsSupported = !1;
|
|
18715
18717
|
}
|
|
@@ -18753,9 +18755,9 @@ function Ns(t, e, r) {
|
|
|
18753
18755
|
function p2(t, e, r, n) {
|
|
18754
18756
|
return t !== void 0 && (!(r == null && t.flags & Ye.NonNullable) || (n.lifecycle, !1));
|
|
18755
18757
|
}
|
|
18756
|
-
let
|
|
18758
|
+
let hS = class {
|
|
18757
18759
|
constructor(e) {
|
|
18758
|
-
this.host = e, this.propertiesByName = /* @__PURE__ */ new Map(), this.ctorArgs = null, this.lifecycle = sr.INITIALIZING, this.store = new
|
|
18760
|
+
this.host = e, this.propertiesByName = /* @__PURE__ */ new Map(), this.ctorArgs = null, this.lifecycle = sr.INITIALIZING, this.store = new fS(), this.mutable = !0, this._origin = 7;
|
|
18759
18761
|
const r = this.host.constructor.__accessorMetadata__;
|
|
18760
18762
|
for (const n in r) {
|
|
18761
18763
|
const s = new m2(n, r[n]);
|
|
@@ -18890,7 +18892,7 @@ let cS = class {
|
|
|
18890
18892
|
const n = p1.acquire();
|
|
18891
18893
|
return n.valid = !0, n.value = r, e && (n.value = e.call(this.host, r, n)), n;
|
|
18892
18894
|
}
|
|
18893
|
-
},
|
|
18895
|
+
}, dS = class {
|
|
18894
18896
|
constructor() {
|
|
18895
18897
|
this.value = null, this.valid = !0;
|
|
18896
18898
|
}
|
|
@@ -18901,17 +18903,17 @@ let cS = class {
|
|
|
18901
18903
|
this.value = null;
|
|
18902
18904
|
}
|
|
18903
18905
|
};
|
|
18904
|
-
const p1 = new x0(() => new
|
|
18905
|
-
let
|
|
18906
|
-
function
|
|
18907
|
-
return
|
|
18906
|
+
const p1 = new x0(() => new dS());
|
|
18907
|
+
let mS;
|
|
18908
|
+
function pS() {
|
|
18909
|
+
return mS;
|
|
18908
18910
|
}
|
|
18909
|
-
function
|
|
18911
|
+
function gS(t) {
|
|
18910
18912
|
t.length = 0;
|
|
18911
18913
|
}
|
|
18912
18914
|
let o3 = class {
|
|
18913
18915
|
constructor(e = 50, r = 50) {
|
|
18914
|
-
this._pool = new x0(() => [], void 0,
|
|
18916
|
+
this._pool = new x0(() => [], void 0, gS, r, e);
|
|
18915
18917
|
}
|
|
18916
18918
|
acquire() {
|
|
18917
18919
|
return this._pool.acquire();
|
|
@@ -18933,7 +18935,7 @@ let o3 = class {
|
|
|
18933
18935
|
}
|
|
18934
18936
|
};
|
|
18935
18937
|
const g1 = new o3(100);
|
|
18936
|
-
let
|
|
18938
|
+
let _S = class extends x0 {
|
|
18937
18939
|
constructor() {
|
|
18938
18940
|
super(...arguments), this._set = /* @__PURE__ */ new Set();
|
|
18939
18941
|
}
|
|
@@ -18952,7 +18954,7 @@ let pS = class extends x0 {
|
|
|
18952
18954
|
}
|
|
18953
18955
|
};
|
|
18954
18956
|
const jo = [];
|
|
18955
|
-
function
|
|
18957
|
+
function yS(t) {
|
|
18956
18958
|
jo.push(t), jo.length === 1 && queueMicrotask(() => {
|
|
18957
18959
|
const e = jo.slice();
|
|
18958
18960
|
jo.length = 0;
|
|
@@ -18978,7 +18980,7 @@ let a3 = class {
|
|
|
18978
18980
|
get last() {
|
|
18979
18981
|
return this._samples[this._counter % this._samples.length];
|
|
18980
18982
|
}
|
|
18981
|
-
},
|
|
18983
|
+
}, bS = class {
|
|
18982
18984
|
constructor(e) {
|
|
18983
18985
|
this.callback = e, this.isActive = !0;
|
|
18984
18986
|
}
|
|
@@ -18986,32 +18988,32 @@ let a3 = class {
|
|
|
18986
18988
|
this.isActive = !1;
|
|
18987
18989
|
}
|
|
18988
18990
|
};
|
|
18989
|
-
const
|
|
18990
|
-
function
|
|
18991
|
-
const e = new
|
|
18992
|
-
return jh.push(e), Wh.willDispatch || (Wh.willDispatch = !0,
|
|
18991
|
+
const wS = ["prepare", "preRender", "render", "postRender", "update", "finish"], jh = [], Wh = { willDispatch: !1 };
|
|
18992
|
+
function vS(t) {
|
|
18993
|
+
const e = new bS(t);
|
|
18994
|
+
return jh.push(e), Wh.willDispatch || (Wh.willDispatch = !0, yS(SS)), e;
|
|
18993
18995
|
}
|
|
18994
|
-
function
|
|
18996
|
+
function SS() {
|
|
18995
18997
|
for (; jh.length; ) {
|
|
18996
18998
|
const t = jh.shift();
|
|
18997
18999
|
t.isActive && t.callback();
|
|
18998
19000
|
}
|
|
18999
19001
|
Wh.willDispatch = !1;
|
|
19000
19002
|
}
|
|
19001
|
-
|
|
19003
|
+
wS.map((t) => new a3(t));
|
|
19002
19004
|
new a3("total");
|
|
19003
|
-
let
|
|
19005
|
+
let NS = 0;
|
|
19004
19006
|
function _1() {
|
|
19005
|
-
return ++
|
|
19007
|
+
return ++NS;
|
|
19006
19008
|
}
|
|
19007
19009
|
let u3 = class extends au {
|
|
19008
19010
|
constructor(e) {
|
|
19009
|
-
super(new
|
|
19011
|
+
super(new ES(e)), this._observer && g2.register(this, new WeakRef(this._observer), this);
|
|
19010
19012
|
}
|
|
19011
19013
|
destroy() {
|
|
19012
19014
|
this._observer && g2.unregister(this._observer), this.accessed?.clear(), this.clear(), this._observer?.destroy();
|
|
19013
19015
|
}
|
|
19014
|
-
},
|
|
19016
|
+
}, ES = class {
|
|
19015
19017
|
constructor(e) {
|
|
19016
19018
|
this._notify = e, this._invalidCount = 0, this.destroyed = !1;
|
|
19017
19019
|
}
|
|
@@ -19025,30 +19027,30 @@ let u3 = class extends au {
|
|
|
19025
19027
|
this._invalidCount = e > 0 ? e - 1 : 0;
|
|
19026
19028
|
}
|
|
19027
19029
|
destroy() {
|
|
19028
|
-
this.destroyed = !0, this._notify =
|
|
19030
|
+
this.destroyed = !0, this._notify = xS;
|
|
19029
19031
|
}
|
|
19030
19032
|
};
|
|
19031
19033
|
const g2 = new FinalizationRegistry((t) => {
|
|
19032
19034
|
t.deref()?.destroy();
|
|
19033
19035
|
});
|
|
19034
|
-
function
|
|
19036
|
+
function xS() {
|
|
19035
19037
|
}
|
|
19036
19038
|
let y1 = !1;
|
|
19037
19039
|
const Ha = [];
|
|
19038
|
-
function
|
|
19040
|
+
function TS(t, e) {
|
|
19039
19041
|
let r = new u3(i), n = null, s = !1;
|
|
19040
19042
|
function i() {
|
|
19041
19043
|
if (!r || s) return;
|
|
19042
|
-
if (y1) return void
|
|
19044
|
+
if (y1) return void AS(i);
|
|
19043
19045
|
const l = n;
|
|
19044
|
-
r.clear(), y1 = !0, s = !0, n = qs(r, t), s = !1, y1 = !1, e(n, l),
|
|
19046
|
+
r.clear(), y1 = !0, s = !0, n = qs(r, t), s = !1, y1 = !1, e(n, l), LS();
|
|
19045
19047
|
}
|
|
19046
19048
|
function u() {
|
|
19047
19049
|
r && (r.destroy(), r = null, n = null);
|
|
19048
19050
|
}
|
|
19049
19051
|
return s = !0, n = qs(r, t), s = !1, Ks(u);
|
|
19050
19052
|
}
|
|
19051
|
-
function
|
|
19053
|
+
function PS(t, e) {
|
|
19052
19054
|
let r = new u3(s), n = null;
|
|
19053
19055
|
function s() {
|
|
19054
19056
|
e(n, u);
|
|
@@ -19061,10 +19063,10 @@ function xS(t, e) {
|
|
|
19061
19063
|
}
|
|
19062
19064
|
return u(), Ks(i);
|
|
19063
19065
|
}
|
|
19064
|
-
function
|
|
19066
|
+
function AS(t) {
|
|
19065
19067
|
Ha.includes(t) || Ha.unshift(t);
|
|
19066
19068
|
}
|
|
19067
|
-
function
|
|
19069
|
+
function LS() {
|
|
19068
19070
|
for (; Ha.length; ) Ha.pop()();
|
|
19069
19071
|
}
|
|
19070
19072
|
let l3 = class c3 {
|
|
@@ -19072,7 +19074,7 @@ let l3 = class c3 {
|
|
|
19072
19074
|
this.uid = _1(), this.removed = !1, this.type = null, this.oldValue = null, this.callback = null, this.getValue = null, this.target = null, this.path = null, this.equals = null;
|
|
19073
19075
|
}
|
|
19074
19076
|
static {
|
|
19075
|
-
this.pool = new
|
|
19077
|
+
this.pool = new _S(() => new c3());
|
|
19076
19078
|
}
|
|
19077
19079
|
static acquireUntracked(e, r, n, s, i) {
|
|
19078
19080
|
return this.pool.acquire(0, e, r, n, s, i, l0);
|
|
@@ -19093,44 +19095,44 @@ let l3 = class c3 {
|
|
|
19093
19095
|
const oa = new o3(), kn = /* @__PURE__ */ new Set();
|
|
19094
19096
|
let Ya;
|
|
19095
19097
|
function _2(t) {
|
|
19096
|
-
kn.delete(t), kn.add(t),
|
|
19098
|
+
kn.delete(t), kn.add(t), MS();
|
|
19097
19099
|
}
|
|
19098
|
-
function
|
|
19099
|
-
Ya || (Ya =
|
|
19100
|
+
function MS() {
|
|
19101
|
+
Ya || (Ya = vS(RS));
|
|
19100
19102
|
}
|
|
19101
|
-
function
|
|
19103
|
+
function OS(t) {
|
|
19102
19104
|
if (t.removed) return;
|
|
19103
19105
|
const e = t.oldValue, r = t.getValue();
|
|
19104
19106
|
t.equals(e, r) || (t.oldValue = r, t.notify(r, e));
|
|
19105
19107
|
}
|
|
19106
|
-
function
|
|
19108
|
+
function CS(t) {
|
|
19107
19109
|
for (const e of kn.values()) e.target === t && (e.removed = !0);
|
|
19108
19110
|
}
|
|
19109
|
-
function
|
|
19111
|
+
function RS() {
|
|
19110
19112
|
let t = 10;
|
|
19111
19113
|
for (; Ya && t--; ) {
|
|
19112
19114
|
Ya = null;
|
|
19113
|
-
const e =
|
|
19115
|
+
const e = IS(), r = oa.acquire();
|
|
19114
19116
|
for (const n of e) {
|
|
19115
19117
|
const s = n.uid;
|
|
19116
|
-
|
|
19118
|
+
OS(n), s === n.uid && n.removed && r.push(n);
|
|
19117
19119
|
}
|
|
19118
19120
|
for (const n of kn) n.removed && (r.push(n), kn.delete(n));
|
|
19119
19121
|
for (const n of r) l3.pool.release(n);
|
|
19120
|
-
oa.release(r), oa.release(e),
|
|
19122
|
+
oa.release(r), oa.release(e), kS.forEach((n) => n());
|
|
19121
19123
|
}
|
|
19122
19124
|
}
|
|
19123
|
-
function
|
|
19125
|
+
function IS() {
|
|
19124
19126
|
const t = oa.acquire();
|
|
19125
19127
|
t.length = kn.size;
|
|
19126
19128
|
let e = 0;
|
|
19127
19129
|
for (const r of kn) t[e] = r, ++e;
|
|
19128
19130
|
return kn.clear(), t;
|
|
19129
19131
|
}
|
|
19130
|
-
const
|
|
19131
|
-
function
|
|
19132
|
+
const kS = /* @__PURE__ */ new Set();
|
|
19133
|
+
function DS(t, e, r) {
|
|
19132
19134
|
let n = jy(t, e, r, (s, i, u) => {
|
|
19133
|
-
let l, c, m =
|
|
19135
|
+
let l, c, m = PS(() => Wi(s, i), (_, y) => {
|
|
19134
19136
|
s.__accessor__?.lifecycle === sr.DESTROYED || l && l.uid !== c ? n.remove() : (l || (l = l3.acquireUntracked(_, u, y, s, i), c = l.uid), _2(l));
|
|
19135
19137
|
});
|
|
19136
19138
|
return Ks(() => {
|
|
@@ -19139,20 +19141,20 @@ function IS(t, e, r) {
|
|
|
19139
19141
|
});
|
|
19140
19142
|
return n;
|
|
19141
19143
|
}
|
|
19142
|
-
function
|
|
19144
|
+
function $S(t, e, r) {
|
|
19143
19145
|
const n = jy(t, e, r, (s, i, u) => {
|
|
19144
19146
|
let l = !1;
|
|
19145
|
-
return
|
|
19147
|
+
return TS(() => Wi(s, i), (c, m) => {
|
|
19146
19148
|
s.__accessor__.lifecycle !== sr.DESTROYED ? l || (l = !0, l0(m, c) || u.call(s, c, m, i, s), l = !1) : n.remove();
|
|
19147
19149
|
});
|
|
19148
19150
|
});
|
|
19149
19151
|
return n;
|
|
19150
19152
|
}
|
|
19151
|
-
function
|
|
19152
|
-
return t.__accessor__ && t.__accessor__.lifecycle !== sr.DESTROYED ? n ?
|
|
19153
|
+
function FS(t, e, r, n = !1) {
|
|
19154
|
+
return t.__accessor__ && t.__accessor__.lifecycle !== sr.DESTROYED ? n ? $S(t, e, r) : DS(t, e, r) : Ks();
|
|
19153
19155
|
}
|
|
19154
19156
|
var y2, b2;
|
|
19155
|
-
function
|
|
19157
|
+
function US(t) {
|
|
19156
19158
|
if (t == null) return { value: t };
|
|
19157
19159
|
if (Array.isArray(t)) return { type: [t[0]], value: null };
|
|
19158
19160
|
switch (typeof t) {
|
|
@@ -19203,7 +19205,7 @@ let Rs = class aa {
|
|
|
19203
19205
|
} : e[l];
|
|
19204
19206
|
}
|
|
19205
19207
|
for (const l in r) {
|
|
19206
|
-
const c =
|
|
19208
|
+
const c = US(r[l]);
|
|
19207
19209
|
He(c)(u.prototype, l);
|
|
19208
19210
|
}
|
|
19209
19211
|
return lu(n)(u);
|
|
@@ -19216,7 +19218,7 @@ let Rs = class aa {
|
|
|
19216
19218
|
}
|
|
19217
19219
|
constructor(...e) {
|
|
19218
19220
|
if (this[y2] = null, this[b2] = !1, this.constructor === aa) throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");
|
|
19219
|
-
const r = new
|
|
19221
|
+
const r = new hS(this);
|
|
19220
19222
|
Object.defineProperty(this, "__accessor__", { enumerable: !1, value: r }), e.length > 0 && (r.ctorArgs = this.normalizeCtorArgs?.apply(this, e) ?? e[0]);
|
|
19221
19223
|
}
|
|
19222
19224
|
postscript() {
|
|
@@ -19226,10 +19228,10 @@ let Rs = class aa {
|
|
|
19226
19228
|
initialize() {
|
|
19227
19229
|
}
|
|
19228
19230
|
[Hy]() {
|
|
19229
|
-
this[wn] =
|
|
19231
|
+
this[wn] = sS(this[wn]);
|
|
19230
19232
|
}
|
|
19231
19233
|
destroy() {
|
|
19232
|
-
this.destroyed || (
|
|
19234
|
+
this.destroyed || (CS(this), this.__accessor__.destroy(), pS()?.onInstanceDestroy(this));
|
|
19233
19235
|
}
|
|
19234
19236
|
[Symbol.dispose]() {
|
|
19235
19237
|
this.destroy();
|
|
@@ -19259,7 +19261,7 @@ let Rs = class aa {
|
|
|
19259
19261
|
return Wa(this, e, r), this;
|
|
19260
19262
|
}
|
|
19261
19263
|
watch(e, r, n) {
|
|
19262
|
-
return
|
|
19264
|
+
return rS(Jt.getLogger(this), "`watch` is deprecated in favor of reactiveUtils.watch", { replacement: "reactiveUtils.watch", version: "4.32", see: "https://arcg.is/1vaqf42#watch", warnOnce: !0 }), FS(this, e, r, n);
|
|
19263
19265
|
}
|
|
19264
19266
|
addHandles(e, r) {
|
|
19265
19267
|
if (this.destroyed) {
|
|
@@ -19302,7 +19304,7 @@ let Rs = class aa {
|
|
|
19302
19304
|
_set(e, r) {
|
|
19303
19305
|
return this.__accessor__.internalSet(e, r), this;
|
|
19304
19306
|
}
|
|
19305
|
-
},
|
|
19307
|
+
}, zS = class f3 {
|
|
19306
19308
|
constructor() {
|
|
19307
19309
|
this._values = /* @__PURE__ */ new Map(), this.multipleOriginsSupported = !1;
|
|
19308
19310
|
}
|
|
@@ -19330,7 +19332,7 @@ let Rs = class aa {
|
|
|
19330
19332
|
const s = this._values.get(e);
|
|
19331
19333
|
if (s?.origin != null && s.origin > n) return;
|
|
19332
19334
|
}
|
|
19333
|
-
this._values.set(e, new
|
|
19335
|
+
this._values.set(e, new VS(r, n));
|
|
19334
19336
|
}
|
|
19335
19337
|
delete(e, r) {
|
|
19336
19338
|
(r = this._normalizeOrigin(r)) != null && this._values.get(e)?.origin !== r || this._values.delete(e);
|
|
@@ -19350,12 +19352,12 @@ let Rs = class aa {
|
|
|
19350
19352
|
_normalizeOrigin(e) {
|
|
19351
19353
|
if (e != null) return e === 0 ? e : 7;
|
|
19352
19354
|
}
|
|
19353
|
-
},
|
|
19355
|
+
}, VS = class {
|
|
19354
19356
|
constructor(e, r) {
|
|
19355
19357
|
this.value = e, this.origin = r;
|
|
19356
19358
|
}
|
|
19357
19359
|
};
|
|
19358
|
-
function
|
|
19360
|
+
function jS(t, e, r) {
|
|
19359
19361
|
e.keys().forEach((s) => {
|
|
19360
19362
|
r.set(s, e.get(s), 0);
|
|
19361
19363
|
});
|
|
@@ -19364,7 +19366,7 @@ function zS(t, e, r) {
|
|
|
19364
19366
|
t.internalGet(s) && r.set(s, t.internalGet(s), 0);
|
|
19365
19367
|
});
|
|
19366
19368
|
}
|
|
19367
|
-
function
|
|
19369
|
+
function WS(t, e, r) {
|
|
19368
19370
|
if (!t?.read || t.read.enabled === !1 || !t.read.source) return !1;
|
|
19369
19371
|
const n = t.read.source;
|
|
19370
19372
|
if (typeof n == "string") {
|
|
@@ -19373,25 +19375,25 @@ function VS(t, e, r) {
|
|
|
19373
19375
|
if (s === e || s.includes(".") && s.startsWith(e) && t2(s, r)) return !0;
|
|
19374
19376
|
return !1;
|
|
19375
19377
|
}
|
|
19376
|
-
function
|
|
19378
|
+
function GS(t) {
|
|
19377
19379
|
return t && (!t.read || t.read.enabled !== !1 && !t.read.source);
|
|
19378
19380
|
}
|
|
19379
|
-
function
|
|
19381
|
+
function BS(t, e, r, n, s) {
|
|
19380
19382
|
let i = Ba(e[r], s);
|
|
19381
|
-
|
|
19382
|
-
for (const u of Object.getOwnPropertyNames(e)) i = Ba(e[u], s),
|
|
19383
|
+
GS(i) && (t[r] = !0);
|
|
19384
|
+
for (const u of Object.getOwnPropertyNames(e)) i = Ba(e[u], s), WS(i, r, n) && (t[u] = !0);
|
|
19383
19385
|
}
|
|
19384
|
-
function
|
|
19385
|
-
const s = r.metadata, i =
|
|
19386
|
+
function qS(t, e, r, n) {
|
|
19387
|
+
const s = r.metadata, i = Mv(s[e], n), u = i?.default;
|
|
19386
19388
|
if (u === void 0) return;
|
|
19387
19389
|
const l = typeof u == "function" ? u.call(t, e, n) : u;
|
|
19388
19390
|
l !== void 0 && r.set(e, l);
|
|
19389
19391
|
}
|
|
19390
|
-
const
|
|
19391
|
-
function
|
|
19392
|
+
const HS = { origin: "service" };
|
|
19393
|
+
function YS(t, e, r = HS) {
|
|
19392
19394
|
if (!e || typeof e != "object") return;
|
|
19393
19395
|
const n = ji(t), s = n.metadata, i = {};
|
|
19394
|
-
for (const u of Object.getOwnPropertyNames(e))
|
|
19396
|
+
for (const u of Object.getOwnPropertyNames(e)) BS(i, s, u, e, r);
|
|
19395
19397
|
n.setDefaultOrigin(r.origin);
|
|
19396
19398
|
for (const u of Object.getOwnPropertyNames(i)) {
|
|
19397
19399
|
const l = Ba(s[u], r).read, c = l?.source;
|
|
@@ -19400,15 +19402,15 @@ function qS(t, e, r = BS) {
|
|
|
19400
19402
|
}
|
|
19401
19403
|
if (!r || !r.ignoreDefaults) {
|
|
19402
19404
|
n.setDefaultOrigin("defaults");
|
|
19403
|
-
for (const u of Object.getOwnPropertyNames(s)) i[u] ||
|
|
19405
|
+
for (const u of Object.getOwnPropertyNames(s)) i[u] || qS(t, u, n, r);
|
|
19404
19406
|
}
|
|
19405
19407
|
n.setDefaultOrigin("user");
|
|
19406
19408
|
}
|
|
19407
|
-
function
|
|
19409
|
+
function ZS(t, e, r, n, s) {
|
|
19408
19410
|
const i = {};
|
|
19409
19411
|
return e.write?.writer?.call(t, n, i, r, s), i;
|
|
19410
19412
|
}
|
|
19411
|
-
function
|
|
19413
|
+
function XS(t, e, r, n, s, i) {
|
|
19412
19414
|
if (!n?.write) return !1;
|
|
19413
19415
|
const u = Bs(t, r);
|
|
19414
19416
|
if (!s && n.write.overridePolicy) {
|
|
@@ -19420,62 +19422,62 @@ function YS(t, e, r, n, s, i) {
|
|
|
19420
19422
|
const l = new Gi("web-document-write:property-required", `Missing value for required property '${r}' on '${t.declaredClass}'`, { propertyName: r, target: t });
|
|
19421
19423
|
return l && i?.messages ? i.messages.push(l) : l && !i && Jt.getLogger("esri.core.accessorSupport.write").error(l.name, l.message), !1;
|
|
19422
19424
|
}
|
|
19423
|
-
return !(u === void 0 || u === null && !s.allowNull && !s.writerEnsuresNonNull || !s.alwaysWriteDefaults && (!e.store.multipleOriginsSupported || e.store.originOf(r) === 0) &&
|
|
19425
|
+
return !(u === void 0 || u === null && !s.allowNull && !s.writerEnsuresNonNull || !s.alwaysWriteDefaults && (!e.store.multipleOriginsSupported || e.store.originOf(r) === 0) && JS(t, r, i, n, u) || !s.ignoreOrigin && i?.origin && e.store.multipleOriginsSupported && e.store.originOf(r) < s3(i.origin));
|
|
19424
19426
|
}
|
|
19425
|
-
function
|
|
19427
|
+
function JS(t, e, r, n, s) {
|
|
19426
19428
|
const i = n.default;
|
|
19427
19429
|
if (i === void 0) return !1;
|
|
19428
19430
|
if (n.defaultEquals != null) return n.defaultEquals(s);
|
|
19429
19431
|
if (typeof i == "function") {
|
|
19430
19432
|
if (Array.isArray(s)) {
|
|
19431
19433
|
const u = i.call(t, e, r ?? void 0);
|
|
19432
|
-
return
|
|
19434
|
+
return v7(u, s);
|
|
19433
19435
|
}
|
|
19434
19436
|
return !1;
|
|
19435
19437
|
}
|
|
19436
19438
|
return i === s;
|
|
19437
19439
|
}
|
|
19438
|
-
function
|
|
19440
|
+
function QS(t, e, r) {
|
|
19439
19441
|
if (t && typeof t.toJSON == "function" && (!t.toJSON.isDefaultToJSON || !t.write)) return sa(e, t.toJSON(r));
|
|
19440
19442
|
const n = ji(t), s = n.metadata;
|
|
19441
19443
|
for (const i in s) {
|
|
19442
|
-
const u =
|
|
19443
|
-
if (!
|
|
19444
|
-
const l = Bs(t, i), c =
|
|
19445
|
-
Object.keys(c).length > 0 && (e = sa(e, c), r?.resources?.pendingOperations?.length && r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(() => sa(e, c, () => "replace-arrays"))), r?.writtenProperties && r.writtenProperties.push({ target: t, propName: i, oldOrigin:
|
|
19444
|
+
const u = Ov(s[i], r);
|
|
19445
|
+
if (!XS(t, n, i, u, void 0, r)) continue;
|
|
19446
|
+
const l = Bs(t, i), c = ZS(t, u, u.write && typeof u.write.target == "string" ? u.write.target : i, l, r);
|
|
19447
|
+
Object.keys(c).length > 0 && (e = sa(e, c), r?.resources?.pendingOperations?.length && r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(() => sa(e, c, () => "replace-arrays"))), r?.writtenProperties && r.writtenProperties.push({ target: t, propName: i, oldOrigin: cS(n.store.originOf(i)), newOrigin: r.origin }));
|
|
19446
19448
|
}
|
|
19447
19449
|
return e;
|
|
19448
19450
|
}
|
|
19449
|
-
const
|
|
19451
|
+
const KS = (t) => {
|
|
19450
19452
|
const e = t;
|
|
19451
19453
|
let r = class extends e {
|
|
19452
19454
|
constructor(...n) {
|
|
19453
19455
|
super(...n);
|
|
19454
|
-
const s = ji(this), i = s.store, u = new
|
|
19455
|
-
s.store = u,
|
|
19456
|
+
const s = ji(this), i = s.store, u = new zS();
|
|
19457
|
+
s.store = u, jS(s, i, u);
|
|
19456
19458
|
}
|
|
19457
19459
|
read(n, s) {
|
|
19458
|
-
|
|
19460
|
+
YS(this, n, s);
|
|
19459
19461
|
}
|
|
19460
19462
|
write(n, s) {
|
|
19461
|
-
return
|
|
19463
|
+
return QS(this, n ?? {}, s);
|
|
19462
19464
|
}
|
|
19463
19465
|
toJSON(n) {
|
|
19464
19466
|
return this.write({}, n);
|
|
19465
19467
|
}
|
|
19466
19468
|
static fromJSON(n, s) {
|
|
19467
|
-
return
|
|
19469
|
+
return eN.call(this, n, s);
|
|
19468
19470
|
}
|
|
19469
19471
|
};
|
|
19470
19472
|
return r = se([lu("esri.core.JSONSupport")], r), r.prototype.toJSON.isDefaultToJSON = !0, r;
|
|
19471
19473
|
};
|
|
19472
|
-
function
|
|
19474
|
+
function eN(t, e) {
|
|
19473
19475
|
if (!t) return null;
|
|
19474
19476
|
if (t.declaredClass) throw new Error("JSON object is already hydrated");
|
|
19475
19477
|
const r = new this();
|
|
19476
19478
|
return r.read(t, e), r;
|
|
19477
19479
|
}
|
|
19478
|
-
const h3 =
|
|
19480
|
+
const h3 = KS(Rs);
|
|
19479
19481
|
let T0 = class {
|
|
19480
19482
|
constructor(e, r, n, s, i, u) {
|
|
19481
19483
|
this.semiMajorAxis = e, this.flattening = r, this.outerAtmosphereRimWidth = n, this.atmosphereHeight = s, this.scaleHeight = i;
|
|
@@ -19486,23 +19488,23 @@ let T0 = class {
|
|
|
19486
19488
|
return this.semiMajorAxis;
|
|
19487
19489
|
}
|
|
19488
19490
|
};
|
|
19489
|
-
const $n = new T0(6378137, 1 / 298.257223563, 3e5, 1e5, 0.085, 0.006694379990137799), d3 = new T0(3396190, 1 / 169.8944472236118, 23e4, 6e4, 0.111), m3 = new T0(1737400, 0, 0, 0, 0), p3 = fr.request, g3 = /^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i, _3 = /^\s*http:/i,
|
|
19491
|
+
const $n = new T0(6378137, 1 / 298.257223563, 3e5, 1e5, 0.085, 0.006694379990137799), d3 = new T0(3396190, 1 / 169.8944472236118, 23e4, 6e4, 0.111), m3 = new T0(1737400, 0, 0, 0, 0), p3 = fr.request, g3 = /^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i, _3 = /^\s*http:/i, tN = /^\s*file:/i, rN = /:\d+$/, nN = /^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i, sN = new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"), iN = new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");
|
|
19490
19492
|
let y3 = class {
|
|
19491
19493
|
constructor(e = "") {
|
|
19492
19494
|
this.uri = e, this.scheme = null, this.authority = null, this.path = null, this.query = null, this.fragment = null, this.user = null, this.password = null, this.host = null, this.port = null;
|
|
19493
|
-
let r = this.uri.match(
|
|
19494
|
-
this.scheme = r[2] || (r[1] ? "" : null), this.authority = r[4] || (r[3] ? "" : null), this.path = r[5], this.query = r[7] || (r[6] ? "" : null), this.fragment = r[9] || (r[8] ? "" : null), this.authority != null && (r = this.authority.match(
|
|
19495
|
+
let r = this.uri.match(sN);
|
|
19496
|
+
this.scheme = r[2] || (r[1] ? "" : null), this.authority = r[4] || (r[3] ? "" : null), this.path = r[5], this.query = r[7] || (r[6] ? "" : null), this.fragment = r[9] || (r[8] ? "" : null), this.authority != null && (r = this.authority.match(iN), this.user = r[3] || null, this.password = r[4] || null, this.host = r[6] || r[7], this.port = r[9] || null);
|
|
19495
19497
|
}
|
|
19496
19498
|
toString() {
|
|
19497
19499
|
return this.uri;
|
|
19498
19500
|
}
|
|
19499
19501
|
};
|
|
19500
|
-
const
|
|
19501
|
-
let ir =
|
|
19502
|
-
const
|
|
19503
|
-
let b3 =
|
|
19504
|
-
const
|
|
19505
|
-
function
|
|
19502
|
+
const oN = new y3(fr.applicationUrl);
|
|
19503
|
+
let ir = oN;
|
|
19504
|
+
const aN = lN();
|
|
19505
|
+
let b3 = aN;
|
|
19506
|
+
const uN = () => ir;
|
|
19507
|
+
function lN() {
|
|
19506
19508
|
const t = ir.path, e = t.slice(0, t.lastIndexOf("/") + 1);
|
|
19507
19509
|
return `${`${ir.scheme}://${ir.host}${ir.port != null ? `:${ir.port}` : ""}`}${e}`;
|
|
19508
19510
|
}
|
|
@@ -19511,20 +19513,20 @@ function w3(t) {
|
|
|
19511
19513
|
const e = t.indexOf("?");
|
|
19512
19514
|
return e !== -1 ? (mi.path = t.slice(0, e), mi.query = t.slice(e + 1)) : (mi.path = t, mi.query = null), mi;
|
|
19513
19515
|
}
|
|
19514
|
-
function
|
|
19515
|
-
return t = (t = x3(t =
|
|
19516
|
+
function cN(t) {
|
|
19517
|
+
return t = (t = x3(t = wN(t = w3(t).path), !0)).toLowerCase();
|
|
19516
19518
|
}
|
|
19517
|
-
function
|
|
19518
|
-
const e = p3.proxyRules, r =
|
|
19519
|
+
function fN(t) {
|
|
19520
|
+
const e = p3.proxyRules, r = cN(t);
|
|
19519
19521
|
for (let n = 0; n < e.length; n++) if (r.startsWith(e[n].urlPrefix)) return e[n];
|
|
19520
19522
|
}
|
|
19521
|
-
function
|
|
19523
|
+
function hN(t, e, r = !1) {
|
|
19522
19524
|
if (!t || !e) return !1;
|
|
19523
19525
|
const n = v2(t), s = v2(e);
|
|
19524
19526
|
return !(!r && n.scheme !== s.scheme) && n.host != null && s.host != null && n.host.toLowerCase() === s.host.toLowerCase() && n.port === s.port;
|
|
19525
19527
|
}
|
|
19526
19528
|
function fu(t, e = b3, r) {
|
|
19527
|
-
return ti(t) ? r?.preserveProtocolRelative ? t : ir.scheme === "http" && ir.authority ===
|
|
19529
|
+
return ti(t) ? r?.preserveProtocolRelative ? t : ir.scheme === "http" && ir.authority === dN(t).slice(2) ? `http:${t}` : `https:${t}` : E3(t) ? t : S3(t.startsWith("/") ? bN(e) : e, t);
|
|
19528
19530
|
}
|
|
19529
19531
|
function v3(t, e = b3, r) {
|
|
19530
19532
|
if (t == null || !Fs(t)) return t;
|
|
@@ -19541,15 +19543,15 @@ function v3(t, e = b3, r) {
|
|
|
19541
19543
|
return t;
|
|
19542
19544
|
}
|
|
19543
19545
|
function ua(t) {
|
|
19544
|
-
return t =
|
|
19546
|
+
return t = NN(t = SN(t = vN(t = fu(t = t.trim()))));
|
|
19545
19547
|
}
|
|
19546
19548
|
function S3(...t) {
|
|
19547
|
-
const e = t.filter(
|
|
19549
|
+
const e = t.filter(S7);
|
|
19548
19550
|
if (!e?.length) return;
|
|
19549
19551
|
const r = [];
|
|
19550
19552
|
if (Fs(e[0])) {
|
|
19551
19553
|
const s = e[0], i = s.indexOf("//");
|
|
19552
|
-
i !== -1 && (r.push(s.slice(0, i + 1)),
|
|
19554
|
+
i !== -1 && (r.push(s.slice(0, i + 1)), gN(e[0]) && (r[0] += "/"), e[0] = s.slice(i + 2));
|
|
19553
19555
|
} else e[0].startsWith("/") && r.push("");
|
|
19554
19556
|
const n = e.reduce((s, i) => i ? s.concat(i.split("/")) : s, []);
|
|
19555
19557
|
for (let s = 0; s < n.length; s++) {
|
|
@@ -19558,8 +19560,8 @@ function S3(...t) {
|
|
|
19558
19560
|
}
|
|
19559
19561
|
return r.join("/");
|
|
19560
19562
|
}
|
|
19561
|
-
function
|
|
19562
|
-
if (t == null ||
|
|
19563
|
+
function dN(t, e = !1) {
|
|
19564
|
+
if (t == null || mN(t) || N3(t)) return null;
|
|
19563
19565
|
let r = t.indexOf("://");
|
|
19564
19566
|
if (r === -1 && ti(t)) r = 2;
|
|
19565
19567
|
else {
|
|
@@ -19572,7 +19574,7 @@ function fN(t, e = !1) {
|
|
|
19572
19574
|
function Fs(t) {
|
|
19573
19575
|
return ti(t) || E3(t);
|
|
19574
19576
|
}
|
|
19575
|
-
function
|
|
19577
|
+
function mN(t) {
|
|
19576
19578
|
return t != null && t.startsWith("blob:");
|
|
19577
19579
|
}
|
|
19578
19580
|
function N3(t) {
|
|
@@ -19584,16 +19586,16 @@ function ti(t) {
|
|
|
19584
19586
|
function E3(t) {
|
|
19585
19587
|
return t != null && g3.test(t);
|
|
19586
19588
|
}
|
|
19587
|
-
function
|
|
19589
|
+
function pN(t) {
|
|
19588
19590
|
return t != null && _3.test(t) || ir.scheme === "http" && ti(t);
|
|
19589
19591
|
}
|
|
19590
|
-
function
|
|
19591
|
-
return t != null &&
|
|
19592
|
+
function gN(t) {
|
|
19593
|
+
return t != null && tN.test(t);
|
|
19592
19594
|
}
|
|
19593
|
-
function
|
|
19595
|
+
function _N(t) {
|
|
19594
19596
|
return ti(t) ? `https:${t}` : t.replace(_3, "https:");
|
|
19595
19597
|
}
|
|
19596
|
-
function
|
|
19598
|
+
function yN() {
|
|
19597
19599
|
return ir.scheme === "http";
|
|
19598
19600
|
}
|
|
19599
19601
|
function w2() {
|
|
@@ -19602,33 +19604,33 @@ function w2() {
|
|
|
19602
19604
|
function x3(t, e = !1) {
|
|
19603
19605
|
return ti(t) ? t.slice(2) : (t = t.replace(g3, ""), e && t.length > 1 && t.startsWith("/") && t[1] === "/" && (t = t.slice(2)), t);
|
|
19604
19606
|
}
|
|
19605
|
-
function
|
|
19607
|
+
function bN(t) {
|
|
19606
19608
|
const e = t.indexOf("//"), r = t.indexOf("/", e + 2);
|
|
19607
19609
|
return r === -1 ? t : t.slice(0, r);
|
|
19608
19610
|
}
|
|
19609
|
-
function
|
|
19611
|
+
function wN(t) {
|
|
19610
19612
|
return t.endsWith("/") ? t : `${t}/`;
|
|
19611
19613
|
}
|
|
19612
|
-
function
|
|
19614
|
+
function vN(t) {
|
|
19613
19615
|
if (/^https?:\/\//i.test(t)) {
|
|
19614
19616
|
const e = w3(t);
|
|
19615
19617
|
t = (t = e.path.replaceAll(/\/{2,}/g, "/")).replace("/", "//"), e.query && (t += `?${e.query}`);
|
|
19616
19618
|
}
|
|
19617
19619
|
return t;
|
|
19618
19620
|
}
|
|
19619
|
-
function
|
|
19621
|
+
function SN(t) {
|
|
19620
19622
|
return t.replace(/^(https?:\/\/)(arcgis\.com)/i, "$1www.$2");
|
|
19621
19623
|
}
|
|
19622
|
-
function
|
|
19624
|
+
function NN(t) {
|
|
19623
19625
|
const e = p3.httpsDomains;
|
|
19624
|
-
if (!
|
|
19626
|
+
if (!pN(t)) return t;
|
|
19625
19627
|
const r = t.indexOf("/", 7);
|
|
19626
19628
|
let n;
|
|
19627
|
-
if (n = r === -1 ? t : t.slice(0, r), n = n.toLowerCase().slice(7),
|
|
19629
|
+
if (n = r === -1 ? t : t.slice(0, r), n = n.toLowerCase().slice(7), rN.test(n)) {
|
|
19628
19630
|
if (!n.endsWith(":80")) return t;
|
|
19629
19631
|
n = n.slice(0, -3), t = t.replace(":80", "");
|
|
19630
19632
|
}
|
|
19631
|
-
return
|
|
19633
|
+
return yN() && n === ir.authority && !nN.test(t) || (w2() && n === ir.authority || e && e.some((s) => n === s || n.endsWith(`.${s}`)) || w2() && !fN(t)) && (t = _N(t)), t;
|
|
19632
19634
|
}
|
|
19633
19635
|
function Gh(t, e, r) {
|
|
19634
19636
|
if (!(e && r && t && Fs(t))) return t;
|
|
@@ -19640,17 +19642,17 @@ function v2(t) {
|
|
|
19640
19642
|
}
|
|
19641
19643
|
function S2(t) {
|
|
19642
19644
|
if (t == null) return null;
|
|
19643
|
-
const e = t.match(
|
|
19645
|
+
const e = t.match(EN);
|
|
19644
19646
|
return e ? { path: e[1], extension: e[2] } : { path: t, extension: null };
|
|
19645
19647
|
}
|
|
19646
|
-
const
|
|
19648
|
+
const EN = /([^.]*)\.([^/]*)$/;
|
|
19647
19649
|
Symbol.dispose ??= Symbol("Symbol.dispose"), Symbol.asyncDispose ??= Symbol("Symbol.asyncDispose");
|
|
19648
19650
|
$("host-webworker") || globalThis.$arcgis || Object.defineProperty(globalThis, "$arcgis", { configurable: !1, enumerable: !0, writable: !1, value: {} }), $("host-webworker");
|
|
19649
19651
|
function T3(t, e) {
|
|
19650
19652
|
const r = e?.url?.path;
|
|
19651
19653
|
if (t && r && (t = fu(t, r, { preserveProtocolRelative: !0 }), e.portalItem && e.readResourcePaths)) {
|
|
19652
19654
|
const n = v3(t, e.portalItem.itemUrl);
|
|
19653
|
-
n != null && n.startsWith(
|
|
19655
|
+
n != null && n.startsWith(PN) && e.readResourcePaths.push(e.portalItem.resourceFromPath(n).path);
|
|
19654
19656
|
}
|
|
19655
19657
|
return (t = Bh(t, e?.portal)) && hu.test(t) ? L3(t) : t;
|
|
19656
19658
|
}
|
|
@@ -19667,18 +19669,18 @@ function P3(t, e, r = 0) {
|
|
|
19667
19669
|
}
|
|
19668
19670
|
return n = A3(n, e?.portal), Fs(n) && (n = ua(n)), e?.resources && e?.portalItem && !Fs(n) && !N3(n) && r === 0 && e.resources.toKeep.push({ resource: e.portalItem.resourceFromPath(n), compress: !1 }), n;
|
|
19669
19671
|
}
|
|
19670
|
-
function
|
|
19672
|
+
function xN(t, e, r) {
|
|
19671
19673
|
return T3(t, r);
|
|
19672
19674
|
}
|
|
19673
|
-
function
|
|
19675
|
+
function TN(t, e, r, n) {
|
|
19674
19676
|
const s = P3(t, n);
|
|
19675
19677
|
s !== void 0 && (e[r] = s);
|
|
19676
19678
|
}
|
|
19677
|
-
const hu = /\/items\/([^/]+)\/resources\/(.*)/,
|
|
19678
|
-
function
|
|
19679
|
+
const hu = /\/items\/([^/]+)\/resources\/(.*)/, PN = "./resources/";
|
|
19680
|
+
function AN(t) {
|
|
19679
19681
|
return (t?.match(hu) ?? null)?.[1] ?? null;
|
|
19680
19682
|
}
|
|
19681
|
-
function
|
|
19683
|
+
function LN(t) {
|
|
19682
19684
|
const e = t?.match(hu) ?? null;
|
|
19683
19685
|
if (e == null) return null;
|
|
19684
19686
|
const r = e[2], n = r.lastIndexOf("/");
|
|
@@ -19694,8 +19696,8 @@ function A3(t, e) {
|
|
|
19694
19696
|
}
|
|
19695
19697
|
function Bh(t, e) {
|
|
19696
19698
|
if (!e || e.isPortal || !e.urlKey || !e.customBaseUrl) return t;
|
|
19697
|
-
const r = `${e.urlKey}.${e.customBaseUrl}`, n =
|
|
19698
|
-
return
|
|
19699
|
+
const r = `${e.urlKey}.${e.customBaseUrl}`, n = uN();
|
|
19700
|
+
return hN(n, `${n.scheme}://${r}`) ? Gh(t, e.portalHostname, r) : Gh(t, r, e.portalHostname);
|
|
19699
19701
|
}
|
|
19700
19702
|
function L3(t) {
|
|
19701
19703
|
return t || t || null;
|
|
@@ -19705,26 +19707,26 @@ function M3(t) {
|
|
|
19705
19707
|
let e = t;
|
|
19706
19708
|
return e = e.replace(/^https?:\/\/cdn\.arcgis\.com/, "https://www.arcgis.com"), e = e.replace(/^https?:\/\/cdndev\.arcgis\.com/, "https://devext.arcgis.com"), e = e.replace(/^https?:\/\/cdnqa\.arcgis\.com/, "https://qaext.arcgis.com"), e;
|
|
19707
19709
|
}
|
|
19708
|
-
Object.freeze(Object.defineProperty({ __proto__: null, ensureMainOnlineDomain: A3, fromCDNUrl: M3, fromJSON: T3, itemIdFromResourceUrl:
|
|
19709
|
-
const
|
|
19710
|
+
Object.freeze(Object.defineProperty({ __proto__: null, ensureMainOnlineDomain: A3, fromCDNUrl: M3, fromJSON: T3, itemIdFromResourceUrl: AN, prefixAndFilenameFromResourceUrl: LN, read: xN, toCDNUrl: L3, toJSON: P3, write: TN }, Symbol.toStringTag, { value: "Module" }));
|
|
19711
|
+
const MN = { mapserver: "MapServer", imageserver: "ImageServer", featureserver: "FeatureServer", knowledgegraphserver: "KnowledgeGraphServer", sceneserver: "SceneServer", streamserver: "StreamServer", vectortileserver: "VectorTileServer", "3dtilesserver": "3DTilesServer", videoserver: "VideoServer" }, qh = Object.values(MN);
|
|
19710
19712
|
new RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(?<serviceTitle>.+?)\\/(?<serverType>${qh.join("|")})(?:\\/exts\\/(?<soeTitle>.+?)\\/(?<soeServerType>${qh.join("|")}))?)(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`, "i");
|
|
19711
19713
|
new RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/(?<serviceTitle>[^/\\n]+)\\/(?<serverType>${qh.join("|")}))(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`, "i");
|
|
19712
19714
|
fr.request;
|
|
19713
|
-
function
|
|
19715
|
+
function ON(t) {
|
|
19714
19716
|
if (!fr.assetsPath) throw Jt.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"), new Gi("assets:path-not-set", "config.assetsPath is not set");
|
|
19715
19717
|
return S3(fr.assetsPath, t);
|
|
19716
19718
|
}
|
|
19717
19719
|
let w1, E = null;
|
|
19718
|
-
function
|
|
19720
|
+
function CN() {
|
|
19719
19721
|
return !!E;
|
|
19720
19722
|
}
|
|
19721
|
-
function
|
|
19723
|
+
function RN() {
|
|
19722
19724
|
return !!$("esri-wasm");
|
|
19723
19725
|
}
|
|
19724
|
-
function
|
|
19726
|
+
function IN() {
|
|
19725
19727
|
return w1 || (w1 = Promise.resolve().then(function() {
|
|
19726
|
-
return
|
|
19727
|
-
}).then(({ default: t }) => t({ locateFile: (e) =>
|
|
19728
|
+
return cT;
|
|
19729
|
+
}).then(({ default: t }) => t({ locateFile: (e) => ON(`esri/geometry/support/${e}`) })).then((t) => {
|
|
19728
19730
|
D3(t);
|
|
19729
19731
|
}), w1);
|
|
19730
19732
|
}
|
|
@@ -19809,7 +19811,7 @@ const P0 = { PE_GTLIST_OPTS_COMMON: 0, init() {
|
|
|
19809
19811
|
E.destroy(l);
|
|
19810
19812
|
}
|
|
19811
19813
|
return u;
|
|
19812
|
-
} },
|
|
19814
|
+
} }, kN = { destroy(t) {
|
|
19813
19815
|
if (t?.length) {
|
|
19814
19816
|
for (const e of t) Dr(e), e.getEntries().forEach((r) => {
|
|
19815
19817
|
Dr(r);
|
|
@@ -19822,14 +19824,14 @@ const P0 = { PE_GTLIST_OPTS_COMMON: 0, init() {
|
|
|
19822
19824
|
});
|
|
19823
19825
|
E.PeGTlistExtendedEntry.prototype.Delete(t[0]);
|
|
19824
19826
|
}
|
|
19825
|
-
} },
|
|
19827
|
+
} }, DN = { geogToGeog(t, e, r, n, s) {
|
|
19826
19828
|
E.ensureCache.prepare();
|
|
19827
19829
|
const i = rs(r), u = r === i, l = E.ensureFloat64(i);
|
|
19828
19830
|
let c = 0;
|
|
19829
19831
|
n && (c = E.ensureFloat64(n));
|
|
19830
19832
|
const m = E._pe_geog_to_geog(E.getPointer(t), e, l, c, s);
|
|
19831
19833
|
return m && Fn(r, e, l, u), m;
|
|
19832
|
-
} },
|
|
19834
|
+
} }, $N = { geodesicCoordinate(t, e, r, n, s, i, u, l) {
|
|
19833
19835
|
E.PeLineType.prototype.geodesic_coordinate(t, e, r, n, s, i, u, l);
|
|
19834
19836
|
}, geodeticCoordinate(t, e, r, n, s, i, u, l, c) {
|
|
19835
19837
|
E.PeLineType.prototype.geodetic_coordinate(t, e, r, n, s, i, u, l, c);
|
|
@@ -19837,7 +19839,7 @@ const P0 = { PE_GTLIST_OPTS_COMMON: 0, init() {
|
|
|
19837
19839
|
E.PeLineType.prototype.geodetic_distance(t, e, r, n, s, i, u, l, c, m);
|
|
19838
19840
|
}, greatEllipticDistance(t, e, r, n, s, i, u, l, c) {
|
|
19839
19841
|
E.PeLineType.prototype.great_elliptic_distance(t, e, r, n, s, i, u, l, c);
|
|
19840
|
-
} },
|
|
19842
|
+
} }, FN = { phiToEta: (t, e) => E.PeMath.prototype.phi_to_eta(t, e), etaToPhi: (t, e) => E.PeMath.prototype.eta_to_phi(t, e), phiToPhig: (t, e) => E.PeMath.prototype.phi_to_phig(t, e), q: (t, e, r) => E.PeMath.prototype.q(t, e, r), q90: (t, e) => E.PeMath.prototype.q90(t, e) }, S1 = (t, e, r, n, s, i) => {
|
|
19841
19843
|
let u, l;
|
|
19842
19844
|
switch (E.ensureCache.prepare(), t) {
|
|
19843
19845
|
case "dd":
|
|
@@ -19870,7 +19872,7 @@ const P0 = { PE_GTLIST_OPTS_COMMON: 0, init() {
|
|
|
19870
19872
|
e && (u = E.getPointer(e));
|
|
19871
19873
|
const l = n.map((y) => E.ensureString(y)), c = E.ensureInt32(l), m = E.ensureFloat64(new Array(2 * r)), _ = i(u, r, c, m);
|
|
19872
19874
|
return _ && Fn(s, r, m), _;
|
|
19873
|
-
},
|
|
19875
|
+
}, UN = { geogToDms: (t, e, r, n, s) => S1("dms", t, e, r, n, s), dmsToGeog: (t, e, r, n) => N1("dms", t, e, r, n), geogToDdm: (t, e, r, n, s) => S1("ddm", t, e, r, n, s), ddmToGeog: (t, e, r, n) => N1("ddm", t, e, r, n), geogToDd: (t, e, r, n, s) => S1("dd", t, e, r, n, s), ddToGeog: (t, e, r, n) => N1("dd", t, e, r, n) };
|
|
19874
19876
|
let R3 = class Ls {
|
|
19875
19877
|
static init() {
|
|
19876
19878
|
Ls.PE_MGRS_STYLE_NEW = E.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW, Ls.PE_MGRS_STYLE_OLD = E.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD, Ls.PE_MGRS_STYLE_AUTO = E.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO, Ls.PE_MGRS_180_ZONE_1_PLUS = E.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS, Ls.PE_MGRS_ADD_SPACES = E.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES;
|
|
@@ -19891,7 +19893,7 @@ let R3 = class Ls {
|
|
|
19891
19893
|
return _ && Fn(i, r, m), _;
|
|
19892
19894
|
}
|
|
19893
19895
|
};
|
|
19894
|
-
const
|
|
19896
|
+
const zN = { geogToUsng(t, e, r, n, s, i, u) {
|
|
19895
19897
|
E.ensureCache.prepare();
|
|
19896
19898
|
let l = 0;
|
|
19897
19899
|
t && (l = E.getPointer(t));
|
|
@@ -19936,7 +19938,7 @@ let I3 = class ca {
|
|
|
19936
19938
|
return an.cache.has(e) && (s = an.cache.get(e), s[r] && (n = s[r])), n || (n = E.PePCSInfo.prototype.generate(e, r), s || (s = [], an.cache.set(e, s)), s[r] = n), n;
|
|
19937
19939
|
}
|
|
19938
19940
|
};
|
|
19939
|
-
const
|
|
19941
|
+
const VN = { versionString: () => E.PeVersion.prototype.version_string() };
|
|
19940
19942
|
function D3(t) {
|
|
19941
19943
|
function e(i, u, l) {
|
|
19942
19944
|
i[u] = l(i[u]);
|
|
@@ -20050,9 +20052,9 @@ Object.freeze(Object.defineProperty({ __proto__: null, PeCSTransformations: la,
|
|
|
20050
20052
|
return O3;
|
|
20051
20053
|
}, PeFactory: As, get PeGCSExtent() {
|
|
20052
20054
|
return C3;
|
|
20053
|
-
}, PeGTTransformations:
|
|
20055
|
+
}, PeGTTransformations: DN, PeGTlistExtended: P0, PeGTlistExtendedEntry: kN, PeLineType: $N, PeMath: FN, PeNotationDms: UN, PeNotationMgrs: R3, PeNotationUsng: zN, PeNotationUtm: I3, PePCSInfo: k3, PeVersion: VN, _init: D3, get _pe() {
|
|
20054
20056
|
return E;
|
|
20055
|
-
}, isLoaded:
|
|
20057
|
+
}, isLoaded: CN, isSupported: RN, load: IN }, Symbol.toStringTag, { value: "Module" }));
|
|
20056
20058
|
let o;
|
|
20057
20059
|
const w = { values: [1, 0.3048, 0.3048006096012192, 0.3047972654, 0.9143917962, 0.201166195164, 0.9143984146160287, 0.3047994715386762, 20.11676512155263, 20.11678249437587, 0.9143985307444408, 0.91439523, 0.3047997101815088, 20.1168, 20.116756, 5e4, 15e4], units: ["Meter", "Foot", "Foot_US", "Foot_Clarke", "Yard_Clarke", "Link_Clarke", "Yard_Sears", "Foot_Sears", "Chain_Sears", "Chain_Benoit_1895_B", "Yard_Indian", "Yard_Indian_1937", "Foot_Gold_Coast", "Chain", "Chain_Sears_1922_Truncated", "50_Kilometers", "150_Kilometers"], 2066: 5, 2136: 12, 2155: 2, 2157: 0, 2158: 0, 2159: 12, 2160: 12, 2204: 2, 2219: 0, 2220: 0, 2254: 2, 2255: 2, 2256: 1, 2265: 1, 2266: 1, 2267: 2, 2268: 2, 2269: 1, 2270: 1, 2271: 2, 2272: 2, 2273: 1, 2294: 0, 2295: 0, 2314: 3, 2899: 2, 2900: 2, 2901: 1, 2909: 1, 2910: 1, 2911: 2, 2912: 2, 2913: 1, 2914: 1, 2992: 1, 2993: 0, 2994: 1, 3080: 1, 3089: 2, 3090: 0, 3091: 2, 3102: 2, 3141: 0, 3142: 0, 3167: 14, 3359: 2, 3360: 0, 3361: 1, 3362: 0, 3363: 2, 3364: 0, 3365: 2, 3366: 3, 3404: 2, 3405: 0, 3406: 0, 3407: 3, 3439: 0, 3440: 0, 3479: 1, 3480: 0, 3481: 1, 3482: 0, 3483: 1, 3484: 0, 3485: 2, 3486: 0, 3487: 2, 3488: 0, 3489: 0, 3490: 2, 3491: 0, 3492: 2, 3493: 0, 3494: 2, 3495: 0, 3496: 2, 3497: 0, 3498: 2, 3499: 0, 3500: 2, 3501: 0, 3502: 2, 3503: 0, 3504: 2, 3505: 0, 3506: 2, 3507: 0, 3508: 2, 3509: 0, 3510: 2, 3511: 0, 3512: 2, 3513: 0, 3514: 0, 3515: 2, 3516: 0, 3517: 2, 3518: 0, 3519: 2, 3520: 0, 3521: 2, 3522: 0, 3523: 2, 3524: 0, 3525: 2, 3526: 0, 3527: 2, 3528: 0, 3529: 2, 3530: 0, 3531: 2, 3532: 0, 3533: 2, 3534: 0, 3535: 2, 3536: 0, 3537: 2, 3538: 0, 3539: 2, 3540: 0, 3541: 2, 3542: 0, 3543: 2, 3544: 0, 3545: 2, 3546: 0, 3547: 2, 3548: 0, 3549: 2, 3550: 0, 3551: 2, 3552: 0, 3553: 2, 3582: 2, 3583: 0, 3584: 2, 3585: 0, 3586: 2, 3587: 0, 3588: 1, 3589: 0, 3590: 1, 3591: 0, 3592: 0, 3593: 1, 3598: 2, 3599: 0, 3600: 2, 3605: 1, 3606: 0, 3607: 0, 3608: 2, 3609: 0, 3610: 2, 3611: 0, 3612: 2, 3613: 0, 3614: 2, 3615: 0, 3616: 2, 3617: 0, 3618: 2, 3619: 0, 3620: 2, 3621: 0, 3622: 2, 3623: 0, 3624: 2, 3625: 0, 3626: 2, 3627: 0, 3628: 2, 3629: 0, 3630: 2, 3631: 0, 3632: 2, 3633: 0, 3634: 1, 3635: 0, 3636: 1, 3640: 2, 3641: 0, 3642: 2, 3643: 0, 3644: 1, 3645: 0, 3646: 1, 3647: 0, 3648: 1, 3649: 0, 3650: 2, 3651: 0, 3652: 2, 3653: 0, 3654: 2, 3655: 0, 3656: 1, 3657: 0, 3658: 2, 3659: 0, 3660: 2, 3661: 0, 3662: 2, 3663: 0, 3664: 2, 3668: 2, 3669: 0, 3670: 2, 3671: 0, 3672: 2, 3673: 0, 3674: 2, 3675: 0, 3676: 1, 3677: 2, 3678: 0, 3679: 1, 3680: 2, 3681: 0, 3682: 1, 3683: 2, 3684: 0, 3685: 0, 3686: 2, 3687: 0, 3688: 2, 3689: 0, 3690: 2, 3691: 0, 3692: 2, 3696: 2, 3697: 0, 3698: 2, 3699: 0, 3700: 2, 3793: 0, 3794: 0, 3812: 0, 3854: 0, 3857: 0, 3920: 0, 3978: 0, 3979: 0, 3991: 2, 3992: 2, 4026: 0, 4037: 0, 4038: 0, 4071: 0, 4082: 0, 4083: 0, 4087: 0, 4088: 0, 4217: 2, 4414: 0, 4415: 0, 4417: 0, 4434: 0, 4437: 0, 4438: 2, 4439: 2, 4462: 0, 4467: 0, 4471: 0, 4474: 0, 4559: 0, 4647: 0, 4822: 0, 4826: 0, 4839: 0, 5018: 0, 5041: 0, 5042: 0, 5048: 0, 5221: 0, 5223: 0, 5234: 0, 5235: 0, 5243: 0, 5247: 0, 5266: 0, 5316: 0, 5320: 0, 5321: 0, 5325: 0, 5337: 0, 5361: 0, 5362: 0, 5367: 0, 5382: 0, 5383: 0, 5396: 0, 5456: 0, 5457: 0, 5469: 0, 5472: 4, 5490: 0, 5513: 0, 5514: 0, 5523: 0, 5559: 0, 5588: 1, 5589: 3, 5596: 0, 5627: 0, 5629: 0, 5641: 0, 5643: 0, 5644: 0, 5646: 2, 5654: 2, 5655: 2, 5659: 0, 5700: 0, 5825: 0, 5836: 0, 5837: 0, 5839: 0, 5842: 0, 5844: 0, 5858: 0, 5879: 0, 5880: 0, 5887: 0, 5890: 0, 6128: 1, 6129: 1, 6141: 1, 6204: 0, 6210: 0, 6211: 0, 6307: 0, 6312: 0, 6316: 0, 6362: 0, 6391: 1, 6405: 1, 6406: 0, 6407: 1, 6408: 0, 6409: 1, 6410: 0, 6411: 2, 6412: 0, 6413: 2, 6414: 0, 6415: 0, 6416: 2, 6417: 0, 6418: 2, 6419: 0, 6420: 2, 6421: 0, 6422: 2, 6423: 0, 6424: 2, 6425: 0, 6426: 2, 6427: 0, 6428: 2, 6429: 0, 6430: 2, 6431: 0, 6432: 2, 6433: 0, 6434: 2, 6435: 0, 6436: 2, 6437: 0, 6438: 2, 6439: 0, 6440: 0, 6441: 2, 6442: 0, 6443: 2, 6444: 0, 6445: 2, 6446: 0, 6447: 2, 6448: 0, 6449: 2, 6450: 0, 6451: 2, 6452: 0, 6453: 2, 6454: 0, 6455: 2, 6456: 0, 6457: 2, 6458: 0, 6459: 2, 6460: 0, 6461: 2, 6462: 0, 6463: 2, 6464: 0, 6465: 2, 6466: 0, 6467: 2, 6468: 0, 6469: 2, 6470: 0, 6471: 2, 6472: 0, 6473: 2, 6474: 0, 6475: 2, 6476: 0, 6477: 2, 6478: 0, 6479: 2, 6484: 2, 6485: 0, 6486: 2, 6487: 0, 6488: 2, 6489: 0, 6490: 2, 6491: 0, 6492: 2, 6493: 0, 6494: 1, 6495: 0, 6496: 1, 6497: 0, 6498: 0, 6499: 1, 6500: 0, 6501: 2, 6502: 0, 6503: 2, 6504: 0, 6505: 2, 6506: 0, 6507: 2, 6508: 0, 6509: 0, 6510: 2, 6515: 1, 6516: 0, 6518: 0, 6519: 2, 6520: 0, 6521: 2, 6522: 0, 6523: 2, 6524: 0, 6525: 2, 6526: 0, 6527: 2, 6528: 0, 6529: 2, 6530: 0, 6531: 2, 6532: 0, 6533: 2, 6534: 0, 6535: 2, 6536: 0, 6537: 2, 6538: 0, 6539: 2, 6540: 0, 6541: 2, 6542: 0, 6543: 2, 6544: 0, 6545: 1, 6546: 0, 6547: 1, 6548: 0, 6549: 2, 6550: 0, 6551: 2, 6552: 0, 6553: 2, 6554: 0, 6555: 2, 6556: 0, 6557: 1, 6558: 0, 6559: 1, 6560: 0, 6561: 1, 6562: 0, 6563: 2, 6564: 0, 6565: 2, 6566: 0, 6567: 0, 6568: 2, 6569: 0, 6570: 1, 6571: 0, 6572: 2, 6573: 0, 6574: 2, 6575: 0, 6576: 2, 6577: 0, 6578: 2, 6582: 2, 6583: 0, 6584: 2, 6585: 0, 6586: 2, 6587: 0, 6588: 2, 6589: 0, 6590: 2, 6591: 0, 6592: 0, 6593: 2, 6594: 0, 6595: 2, 6596: 0, 6597: 2, 6598: 0, 6599: 2, 6600: 0, 6601: 2, 6602: 0, 6603: 2, 6605: 2, 6606: 0, 6607: 2, 6608: 0, 6609: 2, 6610: 0, 6611: 0, 6612: 2, 6613: 0, 6614: 2, 6615: 0, 6616: 2, 6617: 0, 6618: 2, 6633: 2, 6646: 0, 6703: 0, 6784: 0, 6785: 1, 6786: 0, 6787: 1, 6788: 0, 6789: 1, 6790: 0, 6791: 1, 6792: 0, 6793: 1, 6794: 0, 6795: 1, 6796: 0, 6797: 1, 6798: 0, 6799: 1, 6800: 0, 6801: 1, 6802: 0, 6803: 1, 6804: 0, 6805: 1, 6806: 0, 6807: 1, 6808: 0, 6809: 1, 6810: 0, 6811: 1, 6812: 0, 6813: 1, 6814: 0, 6815: 1, 6816: 0, 6817: 1, 6818: 0, 6819: 1, 6820: 0, 6821: 1, 6822: 0, 6823: 1, 6824: 0, 6825: 1, 6826: 0, 6827: 1, 6828: 0, 6829: 1, 6830: 0, 6831: 1, 6832: 0, 6833: 1, 6834: 0, 6835: 1, 6836: 0, 6837: 1, 6838: 0, 6839: 1, 6840: 0, 6841: 1, 6842: 0, 6843: 1, 6844: 0, 6845: 1, 6846: 0, 6847: 1, 6848: 0, 6849: 1, 6850: 0, 6851: 1, 6852: 0, 6853: 1, 6854: 0, 6855: 1, 6856: 0, 6857: 1, 6858: 0, 6859: 1, 6860: 0, 6861: 1, 6862: 0, 6863: 1, 6867: 0, 6868: 1, 6870: 0, 6875: 0, 6876: 0, 6879: 0, 6880: 2, 6884: 0, 6885: 1, 6886: 0, 6887: 1, 6915: 0, 6922: 0, 6923: 2, 6924: 0, 6925: 2, 6962: 0, 6984: 0, 6991: 0, 7128: 2, 7131: 0, 7132: 2, 7142: 0, 7257: 0, 7258: 2, 7259: 0, 7260: 2, 7261: 0, 7262: 2, 7263: 0, 7264: 2, 7265: 0, 7266: 2, 7267: 0, 7268: 2, 7269: 0, 7270: 2, 7271: 0, 7272: 2, 7273: 0, 7274: 2, 7275: 0, 7276: 2, 7277: 0, 7278: 2, 7279: 0, 7280: 2, 7281: 0, 7282: 2, 7283: 0, 7284: 2, 7285: 0, 7286: 2, 7287: 0, 7288: 2, 7289: 0, 7290: 2, 7291: 0, 7292: 2, 7293: 0, 7294: 2, 7295: 0, 7296: 2, 7297: 0, 7298: 2, 7299: 0, 7300: 2, 7301: 0, 7302: 2, 7303: 0, 7304: 2, 7305: 0, 7306: 2, 7307: 0, 7308: 2, 7309: 0, 7310: 2, 7311: 0, 7312: 2, 7313: 0, 7314: 2, 7315: 0, 7316: 2, 7317: 0, 7318: 2, 7319: 0, 7320: 2, 7321: 0, 7322: 2, 7323: 0, 7324: 2, 7325: 0, 7326: 2, 7327: 0, 7328: 2, 7329: 0, 7330: 2, 7331: 0, 7332: 2, 7333: 0, 7334: 2, 7335: 0, 7336: 2, 7337: 0, 7338: 2, 7339: 0, 7340: 2, 7341: 0, 7342: 2, 7343: 0, 7344: 2, 7345: 0, 7346: 2, 7347: 0, 7348: 2, 7349: 0, 7350: 2, 7351: 0, 7352: 2, 7353: 0, 7354: 2, 7355: 0, 7356: 2, 7357: 0, 7358: 2, 7359: 0, 7360: 2, 7361: 0, 7362: 2, 7363: 0, 7364: 2, 7365: 0, 7366: 2, 7367: 0, 7368: 2, 7369: 0, 7370: 2, 7877: 0, 7878: 0, 7882: 0, 7883: 0, 7887: 0, 7899: 0, 7991: 0, 7992: 0, 8035: 2, 8036: 2, 8058: 0, 8059: 0, 8082: 0, 8083: 0, 8088: 0, 8090: 0, 8091: 2, 8092: 0, 8093: 2, 8095: 0, 8096: 2, 8097: 0, 8098: 2, 8099: 0, 8100: 2, 8101: 0, 8102: 2, 8103: 0, 8104: 2, 8105: 0, 8106: 2, 8107: 0, 8108: 2, 8109: 0, 8110: 2, 8111: 0, 8112: 2, 8113: 0, 8114: 2, 8115: 0, 8116: 2, 8117: 0, 8118: 2, 8119: 0, 8120: 2, 8121: 0, 8122: 2, 8123: 0, 8124: 2, 8125: 0, 8126: 2, 8127: 0, 8128: 2, 8129: 0, 8130: 2, 8131: 0, 8132: 2, 8133: 0, 8134: 2, 8135: 0, 8136: 2, 8137: 0, 8138: 2, 8139: 0, 8140: 2, 8141: 0, 8142: 2, 8143: 0, 8144: 2, 8145: 0, 8146: 2, 8147: 0, 8148: 2, 8149: 0, 8150: 2, 8151: 0, 8152: 2, 8153: 0, 8154: 2, 8155: 0, 8156: 2, 8157: 0, 8158: 2, 8159: 0, 8160: 2, 8161: 0, 8162: 2, 8163: 0, 8164: 2, 8165: 0, 8166: 2, 8167: 0, 8168: 2, 8169: 0, 8170: 2, 8171: 0, 8172: 2, 8173: 0, 8177: 2, 8179: 0, 8180: 2, 8181: 0, 8182: 2, 8184: 0, 8185: 2, 8187: 0, 8189: 2, 8191: 0, 8193: 2, 8196: 0, 8197: 2, 8198: 0, 8200: 2, 8201: 0, 8202: 2, 8203: 0, 8204: 2, 8205: 0, 8206: 2, 8207: 0, 8208: 2, 8209: 0, 8210: 2, 8212: 0, 8213: 2, 8214: 0, 8216: 2, 8218: 0, 8220: 2, 8222: 0, 8224: 2, 8225: 0, 8226: 2, 8311: 0, 8312: 1, 8313: 0, 8314: 1, 8315: 0, 8316: 1, 8317: 0, 8318: 1, 8319: 0, 8320: 1, 8321: 0, 8322: 1, 8323: 0, 8324: 1, 8325: 0, 8326: 1, 8327: 0, 8328: 1, 8329: 0, 8330: 1, 8331: 0, 8332: 1, 8333: 0, 8334: 1, 8335: 0, 8336: 1, 8337: 0, 8338: 1, 8339: 0, 8340: 1, 8341: 0, 8342: 1, 8343: 0, 8344: 1, 8345: 0, 8346: 1, 8347: 0, 8348: 1, 8352: 0, 8353: 0, 8379: 0, 8380: 2, 8381: 0, 8382: 2, 8383: 0, 8384: 2, 8385: 0, 8387: 2, 8391: 0, 8395: 0, 8433: 0, 8441: 0, 8455: 0, 8456: 0, 8531: 2, 8682: 0, 8686: 0, 8687: 0, 8692: 0, 8693: 0, 8826: 0, 8903: 0, 8950: 0, 8951: 0, 9039: 0, 9040: 0, 9141: 0, 9149: 0, 9150: 0, 9191: 0, 9221: 0, 9222: 0, 9249: 0, 9250: 0, 9252: 0, 9254: 0, 9265: 0, 9284: 0, 9285: 0, 9300: 0, 9354: 0, 9367: 0, 9373: 0, 9377: 0, 9387: 0, 9391: 0, 9456: 0, 9473: 0, 9498: 0, 9674: 0, 9678: 0, 9680: 0, 9709: 0, 9712: 0, 9713: 0, 9716: 0, 9741: 0, 9748: 2, 9749: 2, 9761: 0, 9766: 0, 9793: 0, 9794: 0, 9869: 0, 9874: 0, 9875: 0, 9880: 0, 9895: 0, 9943: 0, 9945: 0, 9947: 0, 9967: 0, 9972: 0, 9977: 0, 10160: 0, 10183: 0, 10188: 0, 10194: 0, 10199: 0, 10207: 0, 10212: 0, 10217: 0, 10222: 0, 10227: 0, 10235: 0, 10240: 0, 10250: 0, 10254: 0, 10270: 0, 10275: 0, 10280: 0, 10306: 0, 10329: 0, 10471: 0, 10477: 0, 10481: 2, 10516: 2, 10592: 0, 10594: 0, 10596: 0, 10598: 0, 10601: 0, 10603: 0, 10626: 0, 10632: 0, 10641: 0, 10665: 0, 10674: 0, 10744: 0, 10745: 0, 10759: 0, 10773: 0, 10802: 0, 10820: 0, 20002: 0, 20042: 0, 20050: 1, 20499: 0, 20538: 0, 20539: 0, 20790: 0, 20791: 0, 21291: 0, 21292: 0, 21500: 0, 21817: 0, 21818: 0, 22032: 0, 22033: 0, 22091: 0, 22092: 0, 22239: 0, 22240: 0, 22332: 0, 22337: 0, 22338: 0, 22391: 0, 22392: 0, 22639: 0, 22700: 0, 22739: 0, 22770: 0, 22780: 0, 22832: 0, 23090: 0, 23095: 0, 23239: 0, 23240: 0, 23433: 0, 23700: 0, 24047: 0, 24048: 0, 24100: 3, 24200: 0, 24305: 0, 24306: 0, 24382: 10, 24383: 0, 24500: 0, 24547: 0, 24548: 0, 24571: 9, 24600: 0, 25e3: 0, 25231: 0, 25884: 0, 25932: 0, 26237: 0, 26331: 0, 26332: 0, 26432: 0, 26591: 0, 26592: 0, 26632: 0, 26692: 0, 27120: 0, 27200: 0, 27291: 6, 27292: 6, 27429: 0, 27492: 0, 27493: 0, 27500: 0, 28232: 0, 28600: 0, 28991: 0, 28992: 0, 29100: 0, 29101: 0, 29220: 0, 29221: 0, 29333: 0, 29635: 0, 29636: 0, 29701: 0, 29738: 0, 29739: 0, 29849: 0, 29850: 0, 29871: 8, 29872: 7, 29873: 0, 29874: 0, 30200: 5, 30339: 0, 30340: 0, 30591: 0, 30592: 0, 30791: 0, 30792: 0, 30800: 0, 31028: 0, 31121: 0, 31154: 0, 31170: 0, 31171: 0, 31370: 0, 31528: 0, 31529: 0, 31600: 0, 31700: 0, 31838: 0, 31839: 0, 31900: 0, 31901: 0, 32061: 0, 32062: 0, 32098: 0, 32099: 2, 32100: 0, 32104: 0, 32161: 0, 32766: 0, 53048: 0, 53049: 0, 65061: 2, 65062: 2, 102041: 2, 102064: 11, 102068: 15, 102069: 16, 102118: 2, 102119: 1, 102120: 2, 102121: 2, 102217: 2, 102218: 0, 102219: 2, 102220: 2, 102378: 1, 102379: 1, 102380: 0, 102381: 1, 102589: 2, 102599: 2, 102600: 2, 102604: 2, 102647: 0, 102704: 2, 102705: 2, 102706: 0, 102731: 0, 102732: 0, 102759: 1, 102760: 1, 102761: 2, 102762: 0, 102763: 2, 102764: 0, 102765: 0, 102766: 2, 102970: 1, 102974: 2, 102993: 0, 102994: 0, 102995: 2, 102996: 2, 103015: 0, 103016: 2, 103017: 0, 103018: 2, 103025: 0, 103026: 0, 103027: 2, 103028: 2, 103035: 0, 103036: 0, 103037: 2, 103038: 2, 103039: 0, 103040: 0, 103041: 2, 103042: 2, 103043: 0, 103044: 0, 103045: 2, 103046: 2, 103047: 0, 103048: 0, 103049: 2, 103050: 2, 103051: 0, 103052: 2, 103053: 0, 103054: 2, 103055: 0, 103056: 2, 103057: 0, 103058: 0, 103059: 2, 103060: 2, 103061: 0, 103062: 0, 103063: 2, 103064: 2, 103069: 2, 103070: 0, 103071: 0, 103072: 2, 103073: 2, 103086: 0, 103087: 0, 103088: 2, 103089: 2, 103094: 1, 103095: 0, 103096: 2, 103103: 0, 103104: 2, 103105: 0, 103106: 2, 103121: 0, 103122: 2, 103123: 0, 103124: 0, 103125: 1, 103126: 1, 103127: 0, 103128: 0, 103129: 2, 103130: 2, 103131: 0, 103132: 0, 103133: 2, 103134: 2, 103135: 0, 103136: 0, 103137: 1, 103138: 1, 103139: 0, 103140: 2, 103141: 0, 103142: 2, 103143: 0, 103144: 2, 103145: 0, 103146: 1, 103147: 0, 103148: 0, 103149: 2, 103150: 2, 103151: 0, 103152: 2, 103172: 0, 103173: 2, 103174: 0, 103175: 0, 103176: 2, 103177: 2, 103178: 0, 103179: 0, 103180: 2, 103181: 2, 103182: 0, 103183: 0, 103184: 2, 103185: 2, 103228: 0, 103229: 0, 103230: 2, 103231: 2, 103250: 0, 103251: 2, 103252: 0, 103253: 2, 103260: 0, 103261: 0, 103262: 2, 103263: 2, 103270: 0, 103271: 0, 103272: 2, 103273: 2, 103274: 0, 103275: 0, 103276: 2, 103277: 2, 103278: 0, 103279: 0, 103280: 2, 103281: 2, 103282: 0, 103283: 0, 103284: 2, 103285: 2, 103286: 0, 103287: 2, 103288: 0, 103289: 2, 103290: 0, 103291: 2, 103292: 0, 103293: 0, 103294: 2, 103295: 2, 103296: 0, 103297: 0, 103298: 2, 103299: 2, 103376: 2, 103377: 0, 103378: 0, 103379: 2, 103380: 2, 103393: 0, 103394: 0, 103395: 2, 103396: 2, 103472: 0, 103473: 1, 103474: 0, 103475: 2, 103482: 0, 103483: 2, 103484: 0, 103485: 2, 103500: 0, 103501: 2, 103502: 0, 103503: 0, 103504: 1, 103505: 1, 103506: 0, 103507: 0, 103508: 2, 103509: 2, 103510: 0, 103511: 0, 103512: 2, 103513: 2, 103514: 0, 103515: 2, 103516: 0, 103517: 2, 103518: 0, 103519: 2, 103520: 0, 103521: 1, 103522: 0, 103523: 0, 103524: 2, 103525: 2, 103526: 0, 103527: 2, 103561: 2, 103562: 2, 103563: 0, 103564: 0, 103565: 2, 103566: 2, 103567: 0, 103568: 0, 103569: 2, 103570: 2, 103584: 0, 103585: 2, 103586: 0, 103587: 2, 103588: 1, 103589: 0, 103590: 2, 103591: 1, 103592: 0, 103593: 2, 103594: 1, 103695: 2, 103897: 1, 103978: 2, 103979: 0, 103980: 2, 103981: 0 };
|
|
20058
20060
|
for (o = 2e3; o <= 2045; o++) w[o] = 0;
|
|
@@ -20466,7 +20468,7 @@ for (o = 103891; o <= 103896; o++) w[o] = 2;
|
|
|
20466
20468
|
for (o = 103900; o <= 103971; o++) w[o] = 2;
|
|
20467
20469
|
for (o = 103972; o <= 103977; o++) w[o] = 0;
|
|
20468
20470
|
for (o = 112e3; o <= 112101; o++) w[o] = 0;
|
|
20469
|
-
const $3 = [102100, 102113, 3857, 3785, 900913],
|
|
20471
|
+
const $3 = [102100, 102113, 3857, 3785, 900913], jN = [104905, 104971], WN = [104903], GN = [4326, ...$3, ...jN, ...WN], Ii = [-20037508342788905e-9, 20037508342788905e-9], Hh = [-20037508342787e-6, 20037508342787e-6], E1 = { wkTemplate: 'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]', valid: Ii, origin: Hh, dx: 1e-5 }, F3 = { 102113: { wkTemplate: 'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]', valid: Ii, origin: Hh, dx: 1e-5 }, 102100: E1, 3785: { wkTemplate: 'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]', valid: Ii, origin: Hh, dx: 1e-5 }, 3857: E1, 4326: { wkTemplate: 'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]', altTemplate: 'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]', valid: [-180, 180], origin: [-180, 90], dx: 1e-5 }, 104971: { wkTemplate: 'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]', valid: [-180, 180], origin: [-180, 90], dx: 1e-5 }, 104905: { wkTemplate: 'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]', valid: [-180, 180], origin: [-180, 90], dx: 1e-5 }, 900913: E1, 104903: { wkTemplate: 'GEOGCS["GCS_Moon_2000",DATUM["D_Moon_2000",SPHEROID["Moon_2000_IAU_IAG",1737400,0,AUTHORITY["ESRI","107903"]],AUTHORITY["ESRI","106903"]],PRIMEM["Reference_Meridian",0,AUTHORITY["ESRI","108900"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["ESRI","104903"]]', valid: [-180, 180], origin: [-180, 90], dx: 1e-5 } };
|
|
20470
20472
|
function A0(t, e) {
|
|
20471
20473
|
if (t === e) return !0;
|
|
20472
20474
|
if (t == null || e == null) return !1;
|
|
@@ -20486,7 +20488,7 @@ function fa(t) {
|
|
|
20486
20488
|
return e != null && e >= 2e3 && F3[e] || null;
|
|
20487
20489
|
}
|
|
20488
20490
|
function U3(t) {
|
|
20489
|
-
if (!
|
|
20491
|
+
if (!YN(t)) return !1;
|
|
20490
20492
|
const { wkid: e } = t;
|
|
20491
20493
|
if (e) return w[e] == null;
|
|
20492
20494
|
const r = t.wkt2 || t.wkt;
|
|
@@ -20499,22 +20501,22 @@ function Hs(t) {
|
|
|
20499
20501
|
const e = t?.wkid;
|
|
20500
20502
|
return e != null && e >= 2e3 && $3.includes(e);
|
|
20501
20503
|
}
|
|
20502
|
-
function
|
|
20504
|
+
function BN(t) {
|
|
20503
20505
|
return t === 104971 || t === 104905;
|
|
20504
20506
|
}
|
|
20505
|
-
function
|
|
20507
|
+
function qN(t) {
|
|
20506
20508
|
return t === 104903;
|
|
20507
20509
|
}
|
|
20508
|
-
function
|
|
20510
|
+
function HN(t) {
|
|
20509
20511
|
const e = t?.wkid;
|
|
20510
|
-
return e != null && e >= 2e3 &&
|
|
20512
|
+
return e != null && e >= 2e3 && GN.includes(e);
|
|
20511
20513
|
}
|
|
20512
|
-
function
|
|
20514
|
+
function YN(t) {
|
|
20513
20515
|
if (t == null) return !1;
|
|
20514
20516
|
const e = t.wkid;
|
|
20515
20517
|
return e != null && e >= 2e3 || t.wkt2 != null || t.wkt != null;
|
|
20516
20518
|
}
|
|
20517
|
-
const z3 = { wkid: 4326, wkt: Ka(F3[4326].wkTemplate, { Central_Meridian: "0.0" }) }, V3 = { wkid: 102100, latestWkid: 3857 },
|
|
20519
|
+
const z3 = { wkid: 4326, wkt: Ka(F3[4326].wkTemplate, { Central_Meridian: "0.0" }) }, V3 = { wkid: 102100, latestWkid: 3857 }, ZN = { wkid: 32662 };
|
|
20518
20520
|
function L0(t) {
|
|
20519
20521
|
return { wkt: `GEOCCS["Spherical geocentric",
|
|
20520
20522
|
DATUM["Not specified",
|
|
@@ -20531,25 +20533,25 @@ L0($n);
|
|
|
20531
20533
|
L0(d3);
|
|
20532
20534
|
L0(m3);
|
|
20533
20535
|
`${$n.radius}`;
|
|
20534
|
-
const
|
|
20536
|
+
const XN = $n.radius * Math.PI / 200, j3 = /(?:LENGTH)?UNIT\[([^\]]+)]]$/i, Ys = w, W3 = /UNIT\[([^\]]+)]/i, JN = /* @__PURE__ */ new Set([4305, 4807, 4810, 4811, 4812, 4816, 4819, 4821, 4901, 4902, 37225, 104025, 104026, 104139, 104140]), QN = cu()({ millimeter: "millimeters", centimeter: "centimeters", meter: "meters", meter_german: "german-meters", kilometer: "kilometers", decimeter: "decimeters", micrometer: "micrometers", nanometer: "nanometers", "50_kilometers": "50-kilometers", "150_kilometers": "150-kilometers", foot: "feet", foot_us: "us-feet", foot_clarke: "clarke-feet", fathom: "fathoms", nautical_mile: "nautical-miles", chain_us: "us-chains", link_us: "us-links", mile_us: "us-miles", yard_clarke: "clarke-yards", chain_clarke: "clarke-chains", link_clarke: "clarke-links", yard_sears: "sears-yards", foot_sears: "sears-feet", chain_sears: "sears-chains", link_sears: "sears-links", yard_benoit_1895_a: "benoit-1895-a-yards", foot_benoit_1895_a: "benoit-1895-a-feet", chain_benoit_1895_a: "benoit-1895-a-chains", link_benoit_1895_a: "benoit-1895-a-links", yard_benoit_1895_b: "benoit-1895-b-yards", foot_benoit_1895_b: "benoit-1895-b-feet", chain_benoit_1895_b: "benoit-1895-b-chains", link_benoit_1895_b: "benoit-1895-b-links", foot_1865: "1865-feet", foot_indian: "indian-feet", foot_indian_1937: "indian-1937-feet", foot_indian_1962: "indian-1962-feet", foot_indian_1975: "indian-1975-feet", yard_indian: "indian-yards", yard_indian_1937: "indian-1937-yards", yard_indian_1962: "indian-1962-yards", yard_indian_1975: "indian-1975-yards", statute_mile: "statute-miles", foot_gold_coast: "gold-coast-feet", foot_british_1936: "british-1936-feet", yard: "yards", chain: "chains", link: "links", yard_sears_1922_truncated: "sears-1922-truncated-yards", foot_sears_1922_truncated: "sears-1922-truncated-feet", chain_sears_1922_truncated: "sears-1922-truncated-chains", link_sears_1922_truncated: "sears-1922-truncated-links", yard_us: "us-yards", inch: "inches", inch_us: "us-inches", rod: "rods", rod_us: "us-rods", nautical_mile_us: "us-nautical-miles", nautical_mile_uk: "uk-nautical-miles", smoot: "smoots", vara_tx: "tx-vara", point: "points" }), Ir = (t) => t * t, vn = (t) => t * t * t, T2 = { length: { baseUnit: "meters", units: { millimeters: { inBaseUnits: 1e-3 }, centimeters: { inBaseUnits: 0.01 }, meters: { inBaseUnits: 1 }, feet: { inBaseUnits: 0.3048 }, "us-feet": { inBaseUnits: 0.3048006096012192 }, "clarke-feet": { inBaseUnits: 0.3047972654 }, fathoms: { inBaseUnits: 1.8288 }, "nautical-miles": { inBaseUnits: 1852 }, "german-meters": { inBaseUnits: 1.0000135965 }, "us-chains": { inBaseUnits: 20.11684023368047 }, "us-links": { inBaseUnits: 0.2011684023368047 }, "us-miles": { inBaseUnits: 1609.347218694438 }, kilometers: { inBaseUnits: 1e3 }, "clarke-yards": { inBaseUnits: 0.9143917962 }, "clarke-chains": { inBaseUnits: 20.1166195164 }, "clarke-links": { inBaseUnits: 0.201166195164 }, "sears-yards": { inBaseUnits: 0.9143984146160287 }, "sears-feet": { inBaseUnits: 0.3047994715386762 }, "sears-chains": { inBaseUnits: 20.11676512155263 }, "sears-links": { inBaseUnits: 0.2011676512155263 }, "benoit-1895-a-yards": { inBaseUnits: 0.9143992 }, "benoit-1895-a-feet": { inBaseUnits: 0.3047997333333333 }, "benoit-1895-a-chains": { inBaseUnits: 20.1167824 }, "benoit-1895-a-links": { inBaseUnits: 0.201167824 }, "benoit-1895-b-yards": { inBaseUnits: 0.9143992042898124 }, "benoit-1895-b-feet": { inBaseUnits: 0.3047997347632708 }, "benoit-1895-b-chains": { inBaseUnits: 20.11678249437587 }, "benoit-1895-b-links": { inBaseUnits: 0.2011678249437587 }, "1865-feet": { inBaseUnits: 0.3048008333333334 }, "indian-feet": { inBaseUnits: 0.3047995102481469 }, "indian-1937-feet": { inBaseUnits: 0.30479841 }, "indian-1962-feet": { inBaseUnits: 0.3047996 }, "indian-1975-feet": { inBaseUnits: 0.3047995 }, "indian-yards": { inBaseUnits: 0.9143985307444408 }, "indian-1937-yards": { inBaseUnits: 0.91439523 }, "indian-1962-yards": { inBaseUnits: 0.9143988 }, "indian-1975-yards": { inBaseUnits: 0.9143985 }, miles: { inBaseUnits: 1609.344 }, "statute-miles": { inBaseUnits: 1609.344 }, "gold-coast-feet": { inBaseUnits: 0.3047997101815088 }, "british-1936-feet": { inBaseUnits: 0.3048007491 }, yards: { inBaseUnits: 0.9144 }, chains: { inBaseUnits: 20.1168 }, links: { inBaseUnits: 0.201168 }, "sears-1922-truncated-yards": { inBaseUnits: 0.914398 }, "sears-1922-truncated-feet": { inBaseUnits: 0.3047993333333334 }, "sears-1922-truncated-chains": { inBaseUnits: 20.116756 }, "sears-1922-truncated-links": { inBaseUnits: 0.20116756 }, "us-yards": { inBaseUnits: 0.9144018288036576 }, decimeters: { inBaseUnits: 0.1 }, inches: { inBaseUnits: 0.0254 }, "us-inches": { inBaseUnits: 0.0254000508001016 }, rods: { inBaseUnits: 5.0292 }, "us-rods": { inBaseUnits: 5.029210058420118 }, "us-nautical-miles": { inBaseUnits: 1853.248 }, "uk-nautical-miles": { inBaseUnits: 1853.184 }, smoots: { inBaseUnits: 1.7018 }, "tx-vara": { inBaseUnits: 0.8466683600033867 }, points: { inBaseUnits: 3527777777777778e-19 }, micrometers: { inBaseUnits: 1e-6 }, nanometers: { inBaseUnits: 1e-9 }, "50-kilometers": { inBaseUnits: 5e4 }, "150-kilometers": { inBaseUnits: 15e4 } } }, area: { baseUnit: "square-meters", units: { "square-millimeters": { inBaseUnits: Ir(1e-3) }, "square-centimeters": { inBaseUnits: Ir(0.01) }, "square-decimeters": { inBaseUnits: Ir(0.1) }, "square-meters": { inBaseUnits: 1 }, "square-kilometers": { inBaseUnits: Ir(1e3) }, "square-inches": { inBaseUnits: Ir(0.0254) }, "square-feet": { inBaseUnits: Ir(0.3048) }, "square-yards": { inBaseUnits: Ir(0.9144) }, "square-miles": { inBaseUnits: Ir(1609.344) }, "square-nautical-miles": { inBaseUnits: Ir(1852) }, "square-us-feet": { inBaseUnits: Ir(1200 / 3937) }, acres: { inBaseUnits: 15625e-7 * Ir(1609.344) }, ares: { inBaseUnits: 100 }, hectares: { inBaseUnits: 1e4 } } }, volume: { baseUnit: "liters", units: { liters: { inBaseUnits: 1 }, "cubic-millimeters": { inBaseUnits: 1e3 * vn(1e-3) }, "cubic-centimeters": { inBaseUnits: 1e3 * vn(0.01) }, "cubic-decimeters": { inBaseUnits: 1e3 * vn(0.1) }, "cubic-meters": { inBaseUnits: 1e3 }, "cubic-kilometers": { inBaseUnits: 1e3 * vn(1e3) }, "cubic-inches": { inBaseUnits: 1e3 * vn(0.0254) }, "cubic-feet": { inBaseUnits: 1e3 * vn(0.3048) }, "cubic-yards": { inBaseUnits: 1e3 * vn(0.9144) }, "cubic-miles": { inBaseUnits: 1e3 * vn(1609.344) } } }, angle: { baseUnit: "radians", units: { radians: { inBaseUnits: 1 }, degrees: { inBaseUnits: Math.PI / 180 } } } };
|
|
20535
20537
|
(() => {
|
|
20536
20538
|
const t = {};
|
|
20537
20539
|
for (const e in T2) for (const r in T2[e].units) t[r] = e;
|
|
20538
20540
|
return t;
|
|
20539
20541
|
})();
|
|
20540
20542
|
function G3(t) {
|
|
20541
|
-
return
|
|
20543
|
+
return QN.fromJSON(t.toLowerCase()) || null;
|
|
20542
20544
|
}
|
|
20543
|
-
function
|
|
20544
|
-
return
|
|
20545
|
+
function KN(t, e = $n.metersPerDegree) {
|
|
20546
|
+
return eE(t, !0) ?? e;
|
|
20545
20547
|
}
|
|
20546
|
-
function
|
|
20548
|
+
function eE(t, e = !1) {
|
|
20547
20549
|
const r = t?.wkid ?? null, n = t?.wkt2 ?? t?.wkt ?? null;
|
|
20548
20550
|
let s = null;
|
|
20549
20551
|
if (r) {
|
|
20550
|
-
if (
|
|
20551
|
-
if (
|
|
20552
|
-
s = Ys.values[Ys[r]], !s && e &&
|
|
20552
|
+
if (BN(r)) return d3.metersPerDegree;
|
|
20553
|
+
if (qN(r)) return m3.metersPerDegree;
|
|
20554
|
+
s = Ys.values[Ys[r]], !s && e && JN.has(r) && (s = XN);
|
|
20553
20555
|
} else n && (H3(n) ? s = P2(j3.exec(n), s) : q3(n) && (s = P2(W3.exec(n), s)));
|
|
20554
20556
|
return s;
|
|
20555
20557
|
}
|
|
@@ -20559,7 +20561,7 @@ function P2(t, e) {
|
|
|
20559
20561
|
function B3(t) {
|
|
20560
20562
|
return parseFloat(t.split(",")[1]);
|
|
20561
20563
|
}
|
|
20562
|
-
function
|
|
20564
|
+
function tE(t) {
|
|
20563
20565
|
const e = t?.wkid ?? null, r = t?.wkt2 ?? t?.wkt ?? null;
|
|
20564
20566
|
let n = null;
|
|
20565
20567
|
if (e) n = Ys.units[Ys[e]];
|
|
@@ -20567,7 +20569,7 @@ function KN(t) {
|
|
|
20567
20569
|
const s = H3(r) ? j3 : q3(r) ? W3 : null;
|
|
20568
20570
|
if (s) {
|
|
20569
20571
|
const i = s.exec(r);
|
|
20570
|
-
i?.[1] && (n =
|
|
20572
|
+
i?.[1] && (n = nE(i[1]));
|
|
20571
20573
|
}
|
|
20572
20574
|
}
|
|
20573
20575
|
return n != null ? G3(n) : null;
|
|
@@ -20578,24 +20580,24 @@ function q3(t) {
|
|
|
20578
20580
|
function H3(t) {
|
|
20579
20581
|
return /^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(t);
|
|
20580
20582
|
}
|
|
20581
|
-
const
|
|
20582
|
-
function
|
|
20583
|
+
const rE = 1e-7;
|
|
20584
|
+
function nE(t) {
|
|
20583
20585
|
let r = /[\\"']([^\\"']+)/.exec(t)?.[1];
|
|
20584
20586
|
if (!r || !G3(r)) {
|
|
20585
20587
|
const n = B3(t);
|
|
20586
20588
|
r = null;
|
|
20587
20589
|
const s = Ys.values;
|
|
20588
|
-
for (let i = 0; i < s.length; ++i) if (Math.abs(n - s[i]) <
|
|
20590
|
+
for (let i = 0; i < s.length; ++i) if (Math.abs(n - s[i]) < rE) {
|
|
20589
20591
|
r = Ys.units[i];
|
|
20590
20592
|
break;
|
|
20591
20593
|
}
|
|
20592
20594
|
}
|
|
20593
20595
|
return r;
|
|
20594
20596
|
}
|
|
20595
|
-
const
|
|
20596
|
-
cu()(rE);
|
|
20597
|
-
cu()(nE);
|
|
20597
|
+
const sE = { esriAcres: "acres", esriAres: "ares", esriHectares: "hectares", esriSquareCentimeters: "square-centimeters", esriSquareDecimeters: "square-decimeters", esriSquareFeet: "square-feet", esriSquareInches: "square-inches", esriSquareKilometers: "square-kilometers", esriSquareMeters: "square-meters", esriSquareMiles: "square-miles", esriSquareMillimeters: "square-millimeters", esriSquareUsFeet: "square-us-feet", esriSquareYards: "square-yards" }, iE = { esriCentimeters: "centimeters", esriDecimeters: "decimeters", esriFeet: "feet", esriInches: "inches", esriKilometers: "kilometers", esriMeters: "meters", esriMiles: "miles", esriMillimeters: "millimeters", esriNauticalMiles: "nautical-miles", esriYards: "yards" }, oE = { esriDUDecimalDegrees: "degrees", esriDURadians: "radians" };
|
|
20598
20598
|
cu()(sE);
|
|
20599
|
+
cu()(iE);
|
|
20600
|
+
cu()(oE);
|
|
20599
20601
|
var Yr;
|
|
20600
20602
|
let pe = class extends h3 {
|
|
20601
20603
|
static {
|
|
@@ -20615,7 +20617,7 @@ let pe = class extends h3 {
|
|
|
20615
20617
|
}
|
|
20616
20618
|
static fromJSON(e) {
|
|
20617
20619
|
if (!e) return null;
|
|
20618
|
-
if (!
|
|
20620
|
+
if (!aE.some((n) => e[n] != null)) {
|
|
20619
20621
|
if (e?.wkid === 102100) return Yr.WebMercator;
|
|
20620
20622
|
if (e?.wkid === 4326) return Yr.WGS84;
|
|
20621
20623
|
}
|
|
@@ -20638,13 +20640,13 @@ let pe = class extends h3 {
|
|
|
20638
20640
|
return U3(this);
|
|
20639
20641
|
}
|
|
20640
20642
|
get isWrappable() {
|
|
20641
|
-
return
|
|
20643
|
+
return HN(this);
|
|
20642
20644
|
}
|
|
20643
20645
|
get metersPerUnit() {
|
|
20644
|
-
return
|
|
20646
|
+
return KN(this);
|
|
20645
20647
|
}
|
|
20646
20648
|
get unit() {
|
|
20647
|
-
return
|
|
20649
|
+
return tE(this) || (this.isGeographic ? "degrees" : null);
|
|
20648
20650
|
}
|
|
20649
20651
|
writeWkt(e, r) {
|
|
20650
20652
|
this.wkid || (r.wkt = e);
|
|
@@ -20672,8 +20674,8 @@ se([He({ readOnly: !0 })], pe.prototype, "isWGS84", null), se([He({ readOnly: !0
|
|
|
20672
20674
|
return { isRequired: this.wkt == null };
|
|
20673
20675
|
} } } } } })], pe.prototype, "wkid", void 0), se([He({ type: String, json: { origins: { "web-scene": { write: { overridePolicy() {
|
|
20674
20676
|
return { isRequired: this.wkid == null };
|
|
20675
|
-
} } } } } })], pe.prototype, "wkt", void 0), se([Uh("wkt"), Uh("web-scene", "wkt")], pe.prototype, "writeWkt", null), se([He({ type: String, json: { write: !1 } })], pe.prototype, "wkt2", void 0), se([He({ type: Jn, json: { write: !0 } })], pe.prototype, "vcsWkid", void 0), se([He({ type: Jn, json: { write: !0 } })], pe.prototype, "latestVcsWkid", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "falseM", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "falseX", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "falseY", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "falseZ", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "mTolerance", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "mUnits", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "xyTolerance", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "xyUnits", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "zTolerance", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "zUnits", void 0), se([He()], pe.prototype, "imageCoordinateSystem", void 0), pe = Yr = se([lu("esri.geometry.SpatialReference")], pe), pe.prototype.toJSON.isDefaultToJSON = !0, pe.GCS_NAD_1927 = Rs.freeze(new pe({ wkid: 4267, wkt: 'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]' })), pe.WGS84 = Rs.freeze(new pe(z3)), pe.WebMercator = Rs.freeze(new pe(V3)), pe.PlateCarree = Rs.freeze(new pe(
|
|
20676
|
-
const
|
|
20677
|
+
} } } } } })], pe.prototype, "wkt", void 0), se([Uh("wkt"), Uh("web-scene", "wkt")], pe.prototype, "writeWkt", null), se([He({ type: String, json: { write: !1 } })], pe.prototype, "wkt2", void 0), se([He({ type: Jn, json: { write: !0 } })], pe.prototype, "vcsWkid", void 0), se([He({ type: Jn, json: { write: !0 } })], pe.prototype, "latestVcsWkid", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "falseM", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "falseX", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "falseY", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "falseZ", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "mTolerance", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "mUnits", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "xyTolerance", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "xyUnits", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "zTolerance", void 0), se([He({ type: Number, json: { write: !0 } })], pe.prototype, "zUnits", void 0), se([He()], pe.prototype, "imageCoordinateSystem", void 0), pe = Yr = se([lu("esri.geometry.SpatialReference")], pe), pe.prototype.toJSON.isDefaultToJSON = !0, pe.GCS_NAD_1927 = Rs.freeze(new pe({ wkid: 4267, wkt: 'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]' })), pe.WGS84 = Rs.freeze(new pe(z3)), pe.WebMercator = Rs.freeze(new pe(V3)), pe.PlateCarree = Rs.freeze(new pe(ZN));
|
|
20678
|
+
const aE = ["falseM", "falseX", "falseY", "falseZ", "mTolerance", "mUnits", "xyTolerance", "xyUnits", "zTolerance", "zUnits"];
|
|
20677
20679
|
let $r = class extends h3 {
|
|
20678
20680
|
constructor(...e) {
|
|
20679
20681
|
super(...e), this.type = null, this.hasM = !1, this.hasZ = !1, this.spatialReference = pe.WGS84;
|
|
@@ -20709,12 +20711,12 @@ se([Re()], $r.prototype, "type", void 0), se([Re({ readOnly: !0 })], $r.prototyp
|
|
|
20709
20711
|
function Za(t) {
|
|
20710
20712
|
if (t && typeof t == "object" && "type" in t && t.type === "mesh") throw new Gi("internal:mesh", "Mesh geometries are not supported for this operation");
|
|
20711
20713
|
}
|
|
20712
|
-
const
|
|
20714
|
+
const uE = 57.29577951308232, lE = 0.017453292519943;
|
|
20713
20715
|
function A2(t) {
|
|
20714
|
-
return t *
|
|
20716
|
+
return t * uE;
|
|
20715
20717
|
}
|
|
20716
20718
|
function L2(t) {
|
|
20717
|
-
return t *
|
|
20719
|
+
return t * lE;
|
|
20718
20720
|
}
|
|
20719
20721
|
function M2(t) {
|
|
20720
20722
|
return t.wkid != null || t.wkt != null;
|
|
@@ -20764,14 +20766,14 @@ function P1(t, e = !1, r = gr(t)) {
|
|
|
20764
20766
|
function Wo(t, e = !1, r = gr(t)) {
|
|
20765
20767
|
return Za(t), Za(r), Y3(t, M0, pe.WGS84, e, r);
|
|
20766
20768
|
}
|
|
20767
|
-
function
|
|
20769
|
+
function cE(t, e) {
|
|
20768
20770
|
const r = t.x - e.x, n = t.y - e.y, s = t.z != null && e.z != null ? t.z - e.z : 0;
|
|
20769
20771
|
return Math.sqrt(r * r + n * n + s * s);
|
|
20770
20772
|
}
|
|
20771
|
-
function
|
|
20773
|
+
function fE(t) {
|
|
20772
20774
|
return Z3(t, X3)?.[0] ?? null;
|
|
20773
20775
|
}
|
|
20774
|
-
function
|
|
20776
|
+
function hE(t) {
|
|
20775
20777
|
return Z3(t, X3)?.[1] ?? null;
|
|
20776
20778
|
}
|
|
20777
20779
|
function Z3({ x: t, y: e, spatialReference: r }, n = [0, 0]) {
|
|
@@ -20828,14 +20830,14 @@ let Ht = ha = class extends $r {
|
|
|
20828
20830
|
t !== (this._get("z") !== void 0) && (this._set("z", t ? 0 : void 0), this._set("hasZ", t));
|
|
20829
20831
|
}
|
|
20830
20832
|
get latitude() {
|
|
20831
|
-
return
|
|
20833
|
+
return hE(this);
|
|
20832
20834
|
}
|
|
20833
20835
|
set latitude(t) {
|
|
20834
20836
|
const { spatialReference: e, x: r } = this;
|
|
20835
20837
|
t != null && e && (e.isWebMercator ? this._set("y", wi(r, t, A1)[1]) : e.isGeographic && this._set("y", t), this._set("latitude", t));
|
|
20836
20838
|
}
|
|
20837
20839
|
get longitude() {
|
|
20838
|
-
return
|
|
20840
|
+
return fE(this);
|
|
20839
20841
|
}
|
|
20840
20842
|
set longitude(t) {
|
|
20841
20843
|
const { y: e, spatialReference: r } = this;
|
|
@@ -20878,7 +20880,7 @@ let Ht = ha = class extends $r {
|
|
|
20878
20880
|
return e > n ? (i = Math.ceil(Math.abs(e - n) / s), e -= i * s) : e < r && (i = Math.ceil(Math.abs(e - r) / s), e += i * s), this._set("x", e), this;
|
|
20879
20881
|
}
|
|
20880
20882
|
distance(t) {
|
|
20881
|
-
return
|
|
20883
|
+
return cE(this, t);
|
|
20882
20884
|
}
|
|
20883
20885
|
toArray() {
|
|
20884
20886
|
const t = this.hasZ, e = this.hasM;
|
|
@@ -20888,7 +20890,7 @@ let Ht = ha = class extends $r {
|
|
|
20888
20890
|
return this.write({}, t);
|
|
20889
20891
|
}
|
|
20890
20892
|
};
|
|
20891
|
-
se([Re({ readOnly: !0 })], Ht.prototype, "cache", null), se([Re({ type: Boolean, json: { read: !1, write: { enabled: !1, overridePolicy: null } } })], Ht.prototype, "hasM", null), se([Re({ type: Boolean, json: { read: !1, write: { enabled: !1, overridePolicy: null } } })], Ht.prototype, "hasZ", null), se([Re({ type: Number })], Ht.prototype, "latitude", null), se([Re({ type: Number })], Ht.prototype, "longitude", null), se([Re({ type: Number, json: { type: [Number, String], write: { isRequired: !0, allowNull: !0 } } }),
|
|
20893
|
+
se([Re({ readOnly: !0 })], Ht.prototype, "cache", null), se([Re({ type: Boolean, json: { read: !1, write: { enabled: !1, overridePolicy: null } } })], Ht.prototype, "hasM", null), se([Re({ type: Boolean, json: { read: !1, write: { enabled: !1, overridePolicy: null } } })], Ht.prototype, "hasZ", null), se([Re({ type: Number })], Ht.prototype, "latitude", null), se([Re({ type: Number })], Ht.prototype, "longitude", null), se([Re({ type: Number, json: { type: [Number, String], write: { isRequired: !0, allowNull: !0 } } }), eS((t) => isNaN(t) ? t : ky(t))], Ht.prototype, "x", void 0), se([Uh("x")], Ht.prototype, "writeX", null), se([n3("x")], Ht.prototype, "readX", null), se([Re({ type: Number, json: { write: !0 } })], Ht.prototype, "y", void 0), se([Re({ type: Number, json: { write: { overridePolicy() {
|
|
20892
20894
|
return { enabled: this.hasZ };
|
|
20893
20895
|
} } } })], Ht.prototype, "z", void 0), se([Re({ type: Number, json: { write: { overridePolicy() {
|
|
20894
20896
|
return { enabled: this.hasM };
|
|
@@ -20896,27 +20898,27 @@ se([Re({ readOnly: !0 })], Ht.prototype, "cache", null), se([Re({ type: Boolean,
|
|
|
20896
20898
|
function J3(t, e) {
|
|
20897
20899
|
return e != null && Zt(t, e.x, e.y, e.z);
|
|
20898
20900
|
}
|
|
20899
|
-
function
|
|
20901
|
+
function dE(t, e) {
|
|
20900
20902
|
const { xmin: r, ymin: n, zmin: s, xmax: i, ymax: u, zmax: l } = e;
|
|
20901
20903
|
return t.hasZ && e.hasZ ? Zt(t, r, n, s) && Zt(t, r, u, s) && Zt(t, i, u, s) && Zt(t, i, n, s) && Zt(t, r, n, l) && Zt(t, r, u, l) && Zt(t, i, u, l) && Zt(t, i, n, l) : Zt(t, r, n) && Zt(t, r, u) && Zt(t, i, u) && Zt(t, i, n);
|
|
20902
20904
|
}
|
|
20903
20905
|
function ki(t, e) {
|
|
20904
20906
|
return Zt(t, e[0], e[1]);
|
|
20905
20907
|
}
|
|
20906
|
-
function
|
|
20908
|
+
function mE(t, e) {
|
|
20907
20909
|
return Zt(t, e[0], e[1], e[2]);
|
|
20908
20910
|
}
|
|
20909
20911
|
function Zt(t, e, r, n) {
|
|
20910
20912
|
return e >= t.xmin && e <= t.xmax && r >= t.ymin && r <= t.ymax && (n == null || !t.hasZ || n >= t.zmin && n <= t.zmax);
|
|
20911
20913
|
}
|
|
20912
|
-
function
|
|
20914
|
+
function pE(t, e) {
|
|
20913
20915
|
if (!t || t.length < 1) return !1;
|
|
20914
|
-
if (
|
|
20916
|
+
if (gE(t)) return C2(!1, t, e);
|
|
20915
20917
|
let r = !1;
|
|
20916
20918
|
for (let n = 0, s = t.length; n < s; n++) r = C2(r, t[n], e);
|
|
20917
20919
|
return r;
|
|
20918
20920
|
}
|
|
20919
|
-
function
|
|
20921
|
+
function gE(t) {
|
|
20920
20922
|
return !Array.isArray(t[0][0]);
|
|
20921
20923
|
}
|
|
20922
20924
|
function C2(t, e, r) {
|
|
@@ -20929,10 +20931,10 @@ function C2(t, e, r) {
|
|
|
20929
20931
|
}
|
|
20930
20932
|
return i;
|
|
20931
20933
|
}
|
|
20932
|
-
function
|
|
20934
|
+
function _E(t, e) {
|
|
20933
20935
|
return J3(t, e);
|
|
20934
20936
|
}
|
|
20935
|
-
function
|
|
20937
|
+
function yE(t, e) {
|
|
20936
20938
|
const r = t.hasZ && e.hasZ;
|
|
20937
20939
|
let n, s, i;
|
|
20938
20940
|
if (t.xmin <= e.xmin) {
|
|
@@ -20948,18 +20950,18 @@ function gE(t, e) {
|
|
|
20948
20950
|
}
|
|
20949
20951
|
return !0;
|
|
20950
20952
|
}
|
|
20951
|
-
function
|
|
20952
|
-
const { points: r, hasZ: n } = e, s = n ?
|
|
20953
|
+
function bE(t, e) {
|
|
20954
|
+
const { points: r, hasZ: n } = e, s = n ? mE : ki;
|
|
20953
20955
|
for (const i of r) if (s(t, i)) return !0;
|
|
20954
20956
|
return !1;
|
|
20955
20957
|
}
|
|
20956
|
-
const ns = [0, 0], ss = [0, 0], is = [0, 0], os = [0, 0],
|
|
20957
|
-
function
|
|
20958
|
-
return
|
|
20958
|
+
const ns = [0, 0], ss = [0, 0], is = [0, 0], os = [0, 0], wE = [ns, ss, is, os], Q3 = [[is, ns], [ns, ss], [ss, os], [os, is]];
|
|
20959
|
+
function vE(t, e) {
|
|
20960
|
+
return SE(t, e.rings);
|
|
20959
20961
|
}
|
|
20960
|
-
function
|
|
20962
|
+
function SE(t, e) {
|
|
20961
20963
|
ns[0] = t.xmin, ns[1] = t.ymax, ss[0] = t.xmax, ss[1] = t.ymax, is[0] = t.xmin, is[1] = t.ymin, os[0] = t.xmax, os[1] = t.ymin;
|
|
20962
|
-
for (const r of
|
|
20964
|
+
for (const r of wE) if (pE(e, r)) return !0;
|
|
20963
20965
|
for (const r of e) {
|
|
20964
20966
|
if (!r.length) continue;
|
|
20965
20967
|
let n = r[0];
|
|
@@ -20972,7 +20974,7 @@ function wE(t, e) {
|
|
|
20972
20974
|
}
|
|
20973
20975
|
return !1;
|
|
20974
20976
|
}
|
|
20975
|
-
function
|
|
20977
|
+
function NE(t, e) {
|
|
20976
20978
|
ns[0] = t.xmin, ns[1] = t.ymax, ss[0] = t.xmax, ss[1] = t.ymax, is[0] = t.xmin, is[1] = t.ymin, os[0] = t.xmax, os[1] = t.ymin;
|
|
20977
20979
|
const r = e.paths;
|
|
20978
20980
|
for (const n of r) {
|
|
@@ -20988,38 +20990,38 @@ function vE(t, e) {
|
|
|
20988
20990
|
return !1;
|
|
20989
20991
|
}
|
|
20990
20992
|
function K3(t, e, r) {
|
|
20991
|
-
for (let n = 0; n < r.length; n++) if (
|
|
20993
|
+
for (let n = 0; n < r.length; n++) if (EE(t, e, r[n][0], r[n][1])) return !0;
|
|
20992
20994
|
return !1;
|
|
20993
20995
|
}
|
|
20994
|
-
function
|
|
20996
|
+
function EE(t, e, r, n, s) {
|
|
20995
20997
|
const [i, u] = t, [l, c] = e, [m, _] = r, [y, v] = n, S = y - m, T = i - m, L = l - i, D = v - _, z = u - _, W = c - u, j = D * L - S * W;
|
|
20996
20998
|
if (j === 0) return !1;
|
|
20997
20999
|
const U = (S * z - D * T) / j, F = (L * z - W * T) / j;
|
|
20998
21000
|
return U >= 0 && U <= 1 && F >= 0 && F <= 1 && !0;
|
|
20999
21001
|
}
|
|
21000
|
-
function
|
|
21002
|
+
function xE(t) {
|
|
21001
21003
|
switch (t) {
|
|
21002
21004
|
case "esriGeometryEnvelope":
|
|
21003
21005
|
case "extent":
|
|
21004
|
-
return
|
|
21006
|
+
return yE;
|
|
21005
21007
|
case "esriGeometryMultipoint":
|
|
21006
21008
|
case "multipoint":
|
|
21007
|
-
return
|
|
21009
|
+
return bE;
|
|
21008
21010
|
case "esriGeometryPoint":
|
|
21009
21011
|
case "point":
|
|
21010
|
-
return
|
|
21012
|
+
return _E;
|
|
21011
21013
|
case "esriGeometryMultiPatch":
|
|
21012
21014
|
case "multipatch":
|
|
21013
21015
|
case "esriGeometryPolygon":
|
|
21014
21016
|
case "polygon":
|
|
21015
|
-
return
|
|
21017
|
+
return vE;
|
|
21016
21018
|
case "esriGeometryPolyline":
|
|
21017
21019
|
case "polyline":
|
|
21018
|
-
return
|
|
21020
|
+
return NE;
|
|
21019
21021
|
}
|
|
21020
21022
|
}
|
|
21021
21023
|
var kr;
|
|
21022
|
-
function
|
|
21024
|
+
function TE(t) {
|
|
21023
21025
|
return t && (t.declaredClass === "esri.geometry.SpatialReference" || t.wkid != null);
|
|
21024
21026
|
}
|
|
21025
21027
|
function Sn(t, e, r) {
|
|
@@ -21030,7 +21032,7 @@ let St = kr = class extends $r {
|
|
|
21030
21032
|
super(...t), this.type = "extent", this.xmin = 0, this.ymin = 0, this.mmin = void 0, this.zmin = void 0, this.xmax = 0, this.ymax = 0, this.mmax = void 0, this.zmax = void 0;
|
|
21031
21033
|
}
|
|
21032
21034
|
normalizeCtorArgs(t, e, r, n, s) {
|
|
21033
|
-
return
|
|
21035
|
+
return TE(t) ? { spatialReference: t, xmin: 0, ymin: 0, xmax: 0, ymax: 0 } : typeof t == "object" ? (t.spatialReference = t.spatialReference == null ? pe.WGS84 : t.spatialReference, t) : { xmin: t, ymin: e, xmax: r, ymax: n, spatialReference: s ?? pe.WGS84 };
|
|
21034
21036
|
}
|
|
21035
21037
|
static fromPoint(t) {
|
|
21036
21038
|
return new kr({ xmin: t.x, ymin: t.y, zmin: t.z, xmax: t.x, ymax: t.y, zmax: t.z, spatialReference: t.spatialReference });
|
|
@@ -21068,7 +21070,7 @@ let St = kr = class extends $r {
|
|
|
21068
21070
|
contains(t) {
|
|
21069
21071
|
if (!t) return !1;
|
|
21070
21072
|
const e = this.spatialReference, r = t.spatialReference;
|
|
21071
|
-
return e && r && !e.equals(r) && T1(e, r) && (t = e.isWebMercator ? P1(t) : Wo(t, !0)), t.type === "point" ? J3(this, t) : t.type === "extent" &&
|
|
21073
|
+
return e && r && !e.equals(r) && T1(e, r) && (t = e.isWebMercator ? P1(t) : Wo(t, !0)), t.type === "point" ? J3(this, t) : t.type === "extent" && dE(this, t);
|
|
21072
21074
|
}
|
|
21073
21075
|
equals(t) {
|
|
21074
21076
|
if (this === t) return !0;
|
|
@@ -21092,7 +21094,7 @@ let St = kr = class extends $r {
|
|
|
21092
21094
|
if (t == null) return !1;
|
|
21093
21095
|
t.type === "mesh" && (t = t.extent);
|
|
21094
21096
|
const e = this.spatialReference, r = t.spatialReference;
|
|
21095
|
-
return e && r && !A0(e, r) && T1(e, r) && (t = e.isWebMercator ? P1(t) : Wo(t, !0)),
|
|
21097
|
+
return e && r && !A0(e, r) && T1(e, r) && (t = e.isWebMercator ? P1(t) : Wo(t, !0)), xE(t.type)(this, t);
|
|
21096
21098
|
}
|
|
21097
21099
|
normalize() {
|
|
21098
21100
|
const t = this._normalize(!1, !0);
|
|
@@ -21354,7 +21356,7 @@ let pr = class Zr {
|
|
|
21354
21356
|
}
|
|
21355
21357
|
}
|
|
21356
21358
|
};
|
|
21357
|
-
function
|
|
21359
|
+
function PE(t, e) {
|
|
21358
21360
|
const r = e9[t.toLowerCase()];
|
|
21359
21361
|
if (r == null) throw new R("FunctionNotRecognized");
|
|
21360
21362
|
if (e.length < r.minParams || e.length > r.maxParams) throw new R("InvalidParameterCount", { name: t.toUpperCase() });
|
|
@@ -21364,7 +21366,7 @@ function k2(t, e) {
|
|
|
21364
21366
|
const r = e9[t.toLowerCase()];
|
|
21365
21367
|
return r != null && e >= r.minParams && e <= r.maxParams;
|
|
21366
21368
|
}
|
|
21367
|
-
const e9 = { min: { minParams: 1, maxParams: 1, evaluate: (t) => D2(t[0], "min") }, max: { minParams: 1, maxParams: 1, evaluate: (t) => D2(t[0], "max") }, avg: { minParams: 1, maxParams: 1, evaluate: (t) => t9(t[0]) }, sum: { minParams: 1, maxParams: 1, evaluate: (t) =>
|
|
21369
|
+
const e9 = { min: { minParams: 1, maxParams: 1, evaluate: (t) => D2(t[0], "min") }, max: { minParams: 1, maxParams: 1, evaluate: (t) => D2(t[0], "max") }, avg: { minParams: 1, maxParams: 1, evaluate: (t) => t9(t[0]) }, sum: { minParams: 1, maxParams: 1, evaluate: (t) => AE(t[0]) }, stddev: { minParams: 1, maxParams: 1, evaluate: (t) => LE(t[0]) }, count: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : t[0].length }, var: { minParams: 1, maxParams: 1, evaluate: (t) => r9(t[0]) } };
|
|
21368
21370
|
function t9(t) {
|
|
21369
21371
|
if (t === null) return null;
|
|
21370
21372
|
let e = 0, r = 0;
|
|
@@ -21389,7 +21391,7 @@ function D2(t, e) {
|
|
|
21389
21391
|
}
|
|
21390
21392
|
return r;
|
|
21391
21393
|
}
|
|
21392
|
-
function
|
|
21394
|
+
function AE(t) {
|
|
21393
21395
|
if (t === null) return null;
|
|
21394
21396
|
let e = 0;
|
|
21395
21397
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -21401,7 +21403,7 @@ function TE(t) {
|
|
|
21401
21403
|
}
|
|
21402
21404
|
return e;
|
|
21403
21405
|
}
|
|
21404
|
-
function
|
|
21406
|
+
function LE(t) {
|
|
21405
21407
|
if (t === null) return null;
|
|
21406
21408
|
const e = r9(t);
|
|
21407
21409
|
return e === null ? null : Math.sqrt(e);
|
|
@@ -21516,7 +21518,7 @@ let $t = class Zh {
|
|
|
21516
21518
|
return (this.op === "-" ? -1 : 1) * (this.millis + 1e3 * this.second + 60 * this.minute * 1e3 + 60 * this.hour * 60 * 1e3 + 24 * this.day * 60 * 60 * 1e3 + this.month * (365 / 12) * 24 * 60 * 60 * 1e3 + 365 * this.year * 24 * 60 * 60 * 1e3);
|
|
21517
21519
|
}
|
|
21518
21520
|
};
|
|
21519
|
-
const
|
|
21521
|
+
const ME = /^(\d{1,2}):(\d{1,2}):(\d{1,2})$/, OE = /^(\d{1,2}):(\d{1,2})$/, CE = /^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/, n9 = /^(\d{4})-(\d{1,2})-(\d{1,2})$/, RE = /^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$/, IE = /^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)? {0,1}(\+|-)(\d{1,2}):(\d{1,2})$/, kE = /^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})? {0,1}(\+|-)(\d{1,2}):(\d{1,2})$/, DE = /^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/;
|
|
21520
21522
|
function mu(t, e) {
|
|
21521
21523
|
if (e instanceof Un) return e === Er.instance ? H.fromMillis(t.getTime(), { zone: Er.instance }) : H.fromJSDate(t, { zone: e });
|
|
21522
21524
|
switch (e) {
|
|
@@ -21544,18 +21546,18 @@ function Je(t) {
|
|
|
21544
21546
|
return qr.isTimestampOffset(t);
|
|
21545
21547
|
}
|
|
21546
21548
|
function pu(t) {
|
|
21547
|
-
let e =
|
|
21549
|
+
let e = ME.exec(t);
|
|
21548
21550
|
if (e !== null) {
|
|
21549
21551
|
const [, r, n, s] = e, i = pr.fromParts(parseInt(r, 10), parseInt(n, 10), parseInt(s, 10), 0);
|
|
21550
21552
|
if (i !== null) return i;
|
|
21551
21553
|
throw new R("InvalidTime");
|
|
21552
21554
|
}
|
|
21553
|
-
if (e =
|
|
21555
|
+
if (e = OE.exec(t), e !== null) {
|
|
21554
21556
|
const [, r, n] = e, s = pr.fromParts(parseInt(r, 10), parseInt(n, 10), 0, 0);
|
|
21555
21557
|
if (s !== null) return s;
|
|
21556
21558
|
throw new R("InvalidTime");
|
|
21557
21559
|
}
|
|
21558
|
-
if (e =
|
|
21560
|
+
if (e = CE.exec(t), e !== null) {
|
|
21559
21561
|
const [, r, n, s, i] = e, u = pr.fromParts(parseInt(r, 10), parseInt(n, 10), parseInt(s, 10), parseInt(i, 10));
|
|
21560
21562
|
if (u !== null) return u;
|
|
21561
21563
|
throw new R("InvalidTime");
|
|
@@ -21563,23 +21565,23 @@ function pu(t) {
|
|
|
21563
21565
|
throw new R("InvalidTime");
|
|
21564
21566
|
}
|
|
21565
21567
|
function Bi(t, e, r = !1) {
|
|
21566
|
-
let n =
|
|
21568
|
+
let n = RE.exec(t);
|
|
21567
21569
|
if (n !== null) {
|
|
21568
21570
|
const [, s, i, u, l, c, m, _] = n, y = H.fromObject({ year: parseInt(s, 10), month: parseInt(i, 10), day: parseInt(u, 10), hour: parseInt(l, 10), minute: parseInt(c, 10), second: parseInt(m, 10), millisecond: _ ? parseInt(_.replace(".", ""), 10) : 0 }, { zone: h1(e) });
|
|
21569
21571
|
if (y.isValid === !1) throw new R("InvalidTimeStamp");
|
|
21570
21572
|
return y;
|
|
21571
21573
|
}
|
|
21572
|
-
if (n =
|
|
21574
|
+
if (n = IE.exec(t), n !== null) {
|
|
21573
21575
|
const [, s, i, u, l, c, m, _, y, v, S] = n, T = qr.fromParts(parseInt(s, 10), parseInt(i, 10), parseInt(u, 10), parseInt(l, 10), parseInt(c, 10), parseInt(m, 10), _ ? parseInt(_.replace(".", ""), 10) : 0, y === "-", parseInt(v, 10), parseInt(S, 10));
|
|
21574
21576
|
if (T.isValid === !1) throw new R("InvalidTimeStamp");
|
|
21575
21577
|
return T;
|
|
21576
21578
|
}
|
|
21577
|
-
if (n =
|
|
21579
|
+
if (n = kE.exec(t), n !== null) {
|
|
21578
21580
|
const [, s, i, u, l, c, m, _, y] = n, v = qr.fromParts(parseInt(s, 10), parseInt(i, 10), parseInt(u, 10), parseInt(l, 10), parseInt(c, 10), 0, 0, m === "-", parseInt(_, 10), parseInt(y, 10));
|
|
21579
21581
|
if (v.isValid === !1) throw new R("InvalidTimeStamp");
|
|
21580
21582
|
return v;
|
|
21581
21583
|
}
|
|
21582
|
-
if (n =
|
|
21584
|
+
if (n = DE.exec(t), n !== null) {
|
|
21583
21585
|
const [, s, i, u, l, c] = n, m = H.fromObject({ year: parseInt(s, 10), month: parseInt(i, 10), day: parseInt(u, 10), hour: parseInt(l, 10), minute: parseInt(c, 10), second: 0 }, { zone: h1(e) });
|
|
21584
21586
|
if (m.isValid === !1) throw new R("InvalidTimeStamp");
|
|
21585
21587
|
return m;
|
|
@@ -21603,29 +21605,29 @@ function C0(t, e) {
|
|
|
21603
21605
|
return u;
|
|
21604
21606
|
}
|
|
21605
21607
|
const F2 = new Float32Array(1), Xa = new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));
|
|
21606
|
-
function
|
|
21608
|
+
function $E(t) {
|
|
21607
21609
|
return Xa.setFloat64(0, t), Xa.getBigInt64(0);
|
|
21608
21610
|
}
|
|
21609
|
-
function
|
|
21611
|
+
function FE(t) {
|
|
21610
21612
|
return Xa.setBigInt64(0, t), Xa.getFloat64(0);
|
|
21611
21613
|
}
|
|
21612
21614
|
const O1 = 1000000n;
|
|
21613
|
-
|
|
21614
|
-
function
|
|
21615
|
-
const e =
|
|
21615
|
+
UE(1);
|
|
21616
|
+
function UE(t) {
|
|
21617
|
+
const e = $E(t = Math.abs(t)), r = FE(e <= O1 ? O1 : e - O1);
|
|
21616
21618
|
return Math.abs(t - r);
|
|
21617
21619
|
}
|
|
21618
|
-
function
|
|
21620
|
+
function zE(t) {
|
|
21619
21621
|
return F2[0] = t, F2[0];
|
|
21620
21622
|
}
|
|
21621
|
-
|
|
21622
|
-
function
|
|
21623
|
+
zE(34028234663852886e22);
|
|
21624
|
+
function VE(t, e, r) {
|
|
21623
21625
|
if (r === void 0 || +r == 0) return Math[t](e);
|
|
21624
21626
|
if (e = +e, r = +r, isNaN(e) || typeof r != "number" || r % 1 != 0) return NaN;
|
|
21625
21627
|
let n = e.toString().split("e");
|
|
21626
21628
|
return n = (e = Math[t](+(n[0] + "e" + (n[1] ? +n[1] - r : -r)))).toString().split("e"), +(n[0] + "e" + (n[1] ? +n[1] + r : r));
|
|
21627
21629
|
}
|
|
21628
|
-
const
|
|
21630
|
+
const jE = 321408e5, WE = 26784e5, GE = 864e5, BE = 36e5, qE = 6e4;
|
|
21629
21631
|
function C1(t) {
|
|
21630
21632
|
return !!Ze(t) || !!Je(t);
|
|
21631
21633
|
}
|
|
@@ -21642,12 +21644,12 @@ function hr(t, e, r) {
|
|
|
21642
21644
|
if (t == null || e == null) return null;
|
|
21643
21645
|
if (Xt(t)) {
|
|
21644
21646
|
if (Xt(e)) return Vr(t, e, r);
|
|
21645
|
-
if (Tt(e)) return
|
|
21647
|
+
if (Tt(e)) return HE(t, e, r);
|
|
21646
21648
|
if (Xh(e)) throw new R("InvalidOperator");
|
|
21647
21649
|
if (Xe(e)) throw new R("InvalidOperator");
|
|
21648
21650
|
} else if (Tt(t)) {
|
|
21649
|
-
if (Xt(e)) return
|
|
21650
|
-
if (Tt(e)) return
|
|
21651
|
+
if (Xt(e)) return YE(t, e, r);
|
|
21652
|
+
if (Tt(e)) return ZE(t, e, r);
|
|
21651
21653
|
if (Ze(e)) throw new R("InvalidOperator");
|
|
21652
21654
|
if (Xe(e)) throw new R("InvalidOperator");
|
|
21653
21655
|
if (et(e)) throw new R("InvalidOperator");
|
|
@@ -21661,12 +21663,12 @@ function hr(t, e, r) {
|
|
|
21661
21663
|
return Vr(qo(t), qo(e), r);
|
|
21662
21664
|
}
|
|
21663
21665
|
if (Tt(e)) throw new R("InvalidOperator");
|
|
21664
|
-
if (Xe(e)) return
|
|
21666
|
+
if (Xe(e)) return XE(t, e, r);
|
|
21665
21667
|
if (et(e)) throw new R("InvalidOperator");
|
|
21666
21668
|
if (Xt(e)) throw new R("InvalidOperator");
|
|
21667
21669
|
} else if (Xe(t)) {
|
|
21668
|
-
if (Je(e)) return
|
|
21669
|
-
if (Ze(e)) return
|
|
21670
|
+
if (Je(e)) return KE(t, e, r);
|
|
21671
|
+
if (Ze(e)) return QE(t, e, r);
|
|
21670
21672
|
if (Tt(e)) throw new R("InvalidOperator");
|
|
21671
21673
|
if (Xe(e)) return Vr(t.toNumber(), e.toNumber(), r);
|
|
21672
21674
|
if (et(e)) throw new R("InvalidOperator");
|
|
@@ -21680,7 +21682,7 @@ function hr(t, e, r) {
|
|
|
21680
21682
|
} else if (Je(t)) {
|
|
21681
21683
|
if (C1(e)) return H.isDateTime(e) && Ts(e.zone) ? pi(t, e, r) : Vr(qo(t), qo(e), r);
|
|
21682
21684
|
if (Tt(e)) throw new R("InvalidOperator");
|
|
21683
|
-
if (Xe(e)) return
|
|
21685
|
+
if (Xe(e)) return JE(t, e, r);
|
|
21684
21686
|
if (et(e)) throw new R("InvalidOperator");
|
|
21685
21687
|
if (Xt(e)) throw new R("InvalidOperator");
|
|
21686
21688
|
}
|
|
@@ -21715,7 +21717,7 @@ function Vr(t, e, r) {
|
|
|
21715
21717
|
return t <= e;
|
|
21716
21718
|
}
|
|
21717
21719
|
}
|
|
21718
|
-
function
|
|
21720
|
+
function HE(t, e, r) {
|
|
21719
21721
|
const n = parseFloat(e);
|
|
21720
21722
|
if (!isNaN(n)) return Vr(t, n, r);
|
|
21721
21723
|
const s = t.toString();
|
|
@@ -21734,7 +21736,7 @@ function BE(t, e, r) {
|
|
|
21734
21736
|
return s <= e;
|
|
21735
21737
|
}
|
|
21736
21738
|
}
|
|
21737
|
-
function
|
|
21739
|
+
function YE(t, e, r) {
|
|
21738
21740
|
const n = parseFloat(t);
|
|
21739
21741
|
if (!isNaN(n)) return Vr(n, e, r);
|
|
21740
21742
|
const s = e.toString();
|
|
@@ -21753,7 +21755,7 @@ function qE(t, e, r) {
|
|
|
21753
21755
|
return t <= s;
|
|
21754
21756
|
}
|
|
21755
21757
|
}
|
|
21756
|
-
function
|
|
21758
|
+
function ZE(t, e, r) {
|
|
21757
21759
|
switch (r) {
|
|
21758
21760
|
case "<>":
|
|
21759
21761
|
return t !== e;
|
|
@@ -21769,19 +21771,19 @@ function HE(t, e, r) {
|
|
|
21769
21771
|
return t <= e;
|
|
21770
21772
|
}
|
|
21771
21773
|
}
|
|
21772
|
-
function
|
|
21774
|
+
function XE(t, e, r) {
|
|
21773
21775
|
const n = e.toDateTimeLuxon(t.zone);
|
|
21774
21776
|
return Vr((t = t.startOf("day")).toMillis(), n.toMillis(), r);
|
|
21775
21777
|
}
|
|
21776
|
-
function
|
|
21778
|
+
function JE(t, e, r) {
|
|
21777
21779
|
const n = e.toDateTimeLuxon(t.toDateTime().zone);
|
|
21778
21780
|
return Vr((t = t.startOfDay()).toMilliseconds(), n.toMillis(), r);
|
|
21779
21781
|
}
|
|
21780
|
-
function
|
|
21782
|
+
function QE(t, e, r) {
|
|
21781
21783
|
const n = t.toDateTimeLuxon(e.zone);
|
|
21782
21784
|
return e = e.startOf("day"), Vr(n.toMillis(), e.toMillis(), r);
|
|
21783
21785
|
}
|
|
21784
|
-
function
|
|
21786
|
+
function KE(t, e, r) {
|
|
21785
21787
|
const n = t.toDateTimeLuxon(e.toDateTime().zone);
|
|
21786
21788
|
return e = e.startOfDay(), Vr(n.toMillis(), e.toMilliseconds(), r);
|
|
21787
21789
|
}
|
|
@@ -21804,7 +21806,7 @@ function pi(t, e, r) {
|
|
|
21804
21806
|
}
|
|
21805
21807
|
}
|
|
21806
21808
|
function U2(t) {
|
|
21807
|
-
return t.year *
|
|
21809
|
+
return t.year * jE + t.month * WE + t.day * GE + t.hour * BE + t.minute * qE + 1e3 * t.second + t.millisecond;
|
|
21808
21810
|
}
|
|
21809
21811
|
function R0(t, e, r) {
|
|
21810
21812
|
const n = i9[t.toLowerCase()];
|
|
@@ -21812,7 +21814,7 @@ function R0(t, e, r) {
|
|
|
21812
21814
|
if (e.length < n.minParams || e.length > n.maxParams) throw new R("InvalidParameterCount", { name: t.toUpperCase() });
|
|
21813
21815
|
return n.evaluate(e, r);
|
|
21814
21816
|
}
|
|
21815
|
-
function
|
|
21817
|
+
function ex(t, e) {
|
|
21816
21818
|
const r = i9[t.toLowerCase()];
|
|
21817
21819
|
return r != null && e >= r.minParams && e <= r.maxParams;
|
|
21818
21820
|
}
|
|
@@ -21822,7 +21824,7 @@ function R1(t) {
|
|
|
21822
21824
|
function s9(t) {
|
|
21823
21825
|
return Xe(t) || et(t) ? t.toString() : Je(t) ? t.toSQLValue() : Ze(t) ? t.millisecond === 0 ? t.toFormat("yyyy-LL-dd HH:mm:ss") : t.toSQL({ includeOffset: !1 }) : Nr(t) ? s9(H.fromJSDate(t)) : t.toString();
|
|
21824
21826
|
}
|
|
21825
|
-
function
|
|
21827
|
+
function tx(t) {
|
|
21826
21828
|
if (Nr(t)) return Ar.fromDateJS(t);
|
|
21827
21829
|
if (Ze(t)) return Ar.fromParts(t.year, t.month, t.day);
|
|
21828
21830
|
if (Xe(t)) return t;
|
|
@@ -21835,7 +21837,7 @@ function KE(t) {
|
|
|
21835
21837
|
}
|
|
21836
21838
|
throw new R("CannotCastValue");
|
|
21837
21839
|
}
|
|
21838
|
-
function
|
|
21840
|
+
function rx(t, e, r) {
|
|
21839
21841
|
if (Nr(t)) return mu(t, e);
|
|
21840
21842
|
if (Ze(t)) return t;
|
|
21841
21843
|
if (Xe(t)) return t.toDateTimeLuxon("unknown");
|
|
@@ -21844,7 +21846,7 @@ function ex(t, e, r) {
|
|
|
21844
21846
|
if (Tt(t)) return Bi(t, "unknown", r);
|
|
21845
21847
|
throw new R("CannotCastValue");
|
|
21846
21848
|
}
|
|
21847
|
-
function
|
|
21849
|
+
function nx(t) {
|
|
21848
21850
|
if (Nr(t)) return pr.fromDateJS(t);
|
|
21849
21851
|
if (Ze(t)) return pr.fromDateTime(t);
|
|
21850
21852
|
if (Xe(t)) throw new R("CannotCastValue");
|
|
@@ -21963,7 +21965,7 @@ const i9 = { extract: { minParams: 2, maxParams: 2, evaluate: ([t, e]) => {
|
|
|
21963
21965
|
} }, position: { minParams: 2, maxParams: 2, evaluate: ([t, e]) => t == null || e == null ? null : e.indexOf(t) + 1 }, trim: { minParams: 2, maxParams: 3, evaluate: (t) => {
|
|
21964
21966
|
const e = t.length === 3, r = e ? t[1] : " ", n = e ? t[2] : t[1];
|
|
21965
21967
|
if (r == null || n == null) return null;
|
|
21966
|
-
const s = `(${
|
|
21968
|
+
const s = `(${F7(r)})`;
|
|
21967
21969
|
switch (t[0]) {
|
|
21968
21970
|
case "BOTH":
|
|
21969
21971
|
return n.replaceAll(new RegExp(`^${s}*|${s}*$`, "g"), "");
|
|
@@ -21976,7 +21978,7 @@ const i9 = { extract: { minParams: 2, maxParams: 2, evaluate: ([t, e]) => {
|
|
|
21976
21978
|
} }, abs: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.abs(t[0]) }, ceiling: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.ceil(t[0]) }, floor: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.floor(t[0]) }, log: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.log(t[0]) }, log10: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.log(t[0]) * Math.LOG10E }, sin: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.sin(t[0]) }, cos: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.cos(t[0]) }, tan: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.tan(t[0]) }, asin: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.asin(t[0]) }, acos: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.acos(t[0]) }, atan: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : Math.atan(t[0]) }, sign: { minParams: 1, maxParams: 1, evaluate: (t) => t[0] == null ? null : t[0] > 0 ? 1 : t[0] < 0 ? -1 : 0 }, power: { minParams: 2, maxParams: 2, evaluate: (t) => t[0] == null || t[1] == null ? null : t[0] ** t[1] }, mod: { minParams: 2, maxParams: 2, evaluate: (t) => t[0] == null || t[1] == null ? null : t[0] % t[1] }, round: { minParams: 1, maxParams: 2, evaluate: (t) => {
|
|
21977
21979
|
const e = t[0], r = t.length === 2 ? 10 ** t[1] : 1;
|
|
21978
21980
|
return e == null ? null : Math.round(e * r) / r;
|
|
21979
|
-
} }, truncate: { minParams: 1, maxParams: 2, evaluate: (t) => t[0] == null ? null : t.length === 1 || t[1] === 0 ? Math.trunc(t[0]) :
|
|
21981
|
+
} }, truncate: { minParams: 1, maxParams: 2, evaluate: (t) => t[0] == null ? null : t.length === 1 || t[1] === 0 ? Math.trunc(t[0]) : VE("trunc", t[0], -Number(t[1])) }, char_length: { minParams: 1, maxParams: 1, evaluate: (t) => Tt(t[0]) ? t[0].length : 0 }, concat: { minParams: 1, maxParams: 1 / 0, evaluate: (t) => {
|
|
21980
21982
|
let e = "";
|
|
21981
21983
|
for (let r = 0; r < t.length; r++) {
|
|
21982
21984
|
if (t[r] == null) return null;
|
|
@@ -22011,11 +22013,11 @@ const i9 = { extract: { minParams: 2, maxParams: 2, evaluate: ([t, e]) => {
|
|
|
22011
22013
|
return s;
|
|
22012
22014
|
}
|
|
22013
22015
|
case "time":
|
|
22014
|
-
return
|
|
22016
|
+
return nx(r);
|
|
22015
22017
|
case "date":
|
|
22016
|
-
return
|
|
22018
|
+
return tx(r);
|
|
22017
22019
|
case "timestamp":
|
|
22018
|
-
return
|
|
22020
|
+
return rx(r, e, n.withtimezone === !0);
|
|
22019
22021
|
case "varchar": {
|
|
22020
22022
|
const s = s9(r);
|
|
22021
22023
|
if (s.length > n.size) throw new R("CannotCastValue");
|
|
@@ -22030,72 +22032,72 @@ function o9(t, e, r, n) {
|
|
|
22030
22032
|
if (e === null || r === null) return null;
|
|
22031
22033
|
if (Xt(e)) {
|
|
22032
22034
|
if (Xt(r)) return I0(e, r, t);
|
|
22033
|
-
if (Nn(r)) return
|
|
22034
|
-
if (et(r)) return
|
|
22035
|
-
if (Xe(r)) return
|
|
22036
|
-
if (Je(r)) return
|
|
22037
|
-
if (Ze(r)) return
|
|
22038
|
-
if (Tt(r)) return
|
|
22035
|
+
if (Nn(r)) return fx(e, r, t);
|
|
22036
|
+
if (et(r)) return vx();
|
|
22037
|
+
if (Xe(r)) return Sx();
|
|
22038
|
+
if (Je(r)) return wx();
|
|
22039
|
+
if (Ze(r)) return yx();
|
|
22040
|
+
if (Tt(r)) return Nx(e, r, t);
|
|
22039
22041
|
throw new R("InvalidOperator");
|
|
22040
22042
|
}
|
|
22041
22043
|
if (Xe(e)) {
|
|
22042
|
-
if (Xt(r)) return
|
|
22043
|
-
if (Nn(r)) return
|
|
22044
|
-
if (et(r)) return
|
|
22045
|
-
if (Xe(r)) return
|
|
22046
|
-
if (Je(r)) return
|
|
22047
|
-
if (Ze(r)) return
|
|
22048
|
-
if (Tt(r)) return
|
|
22044
|
+
if (Xt(r)) return gx(e, r, t);
|
|
22045
|
+
if (Nn(r)) return hx(e, r, t);
|
|
22046
|
+
if (et(r)) return Ox();
|
|
22047
|
+
if (Xe(r)) return Mx(e, r, t);
|
|
22048
|
+
if (Je(r)) return Lx(e, r, t);
|
|
22049
|
+
if (Ze(r)) return Ax(e, r, t);
|
|
22050
|
+
if (Tt(r)) return Gx();
|
|
22049
22051
|
throw new R("InvalidOperator");
|
|
22050
22052
|
}
|
|
22051
22053
|
if (et(e)) {
|
|
22052
|
-
if (Xt(r)) return
|
|
22053
|
-
if (Nn(r)) return
|
|
22054
|
-
if (et(r)) return
|
|
22055
|
-
if (Xe(r)) return
|
|
22056
|
-
if (Je(r)) return
|
|
22057
|
-
if (Ze(r)) return
|
|
22058
|
-
if (Tt(r)) return
|
|
22054
|
+
if (Xt(r)) return _x(e, r, t);
|
|
22055
|
+
if (Nn(r)) return ax(e, r, t);
|
|
22056
|
+
if (et(r)) return Ux();
|
|
22057
|
+
if (Xe(r)) return $x();
|
|
22058
|
+
if (Je(r)) return Fx();
|
|
22059
|
+
if (Ze(r)) return Dx();
|
|
22060
|
+
if (Tt(r)) return Bx();
|
|
22059
22061
|
throw new R("InvalidOperator");
|
|
22060
22062
|
}
|
|
22061
22063
|
if (Nn(e)) {
|
|
22062
|
-
if (Xt(r)) return
|
|
22063
|
-
if (Nn(r)) return
|
|
22064
|
-
if (et(r)) return
|
|
22065
|
-
if (Xe(r)) return
|
|
22066
|
-
if (Je(r)) return
|
|
22067
|
-
if (Ze(r)) return
|
|
22068
|
-
if (Tt(r)) return
|
|
22064
|
+
if (Xt(r)) return cx(e, r, t);
|
|
22065
|
+
if (Nn(r)) return lx(e, r, t);
|
|
22066
|
+
if (et(r)) return ix(e, r, t);
|
|
22067
|
+
if (Xe(r)) return ox(e, r, t);
|
|
22068
|
+
if (Je(r)) return ux(e, r, t);
|
|
22069
|
+
if (Ze(r)) return sx(e, r, t);
|
|
22070
|
+
if (Tt(r)) return Tx();
|
|
22069
22071
|
throw new R("InvalidOperator");
|
|
22070
22072
|
}
|
|
22071
22073
|
if (Ze(e)) {
|
|
22072
|
-
if (Xt(r)) return
|
|
22073
|
-
if (Nn(r)) return
|
|
22074
|
-
if (et(r)) return
|
|
22075
|
-
if (Xe(r)) return
|
|
22076
|
-
if (Je(r)) return
|
|
22077
|
-
if (Ze(r)) return
|
|
22078
|
-
if (Tt(r)) return
|
|
22074
|
+
if (Xt(r)) return px(e, r, t);
|
|
22075
|
+
if (Nn(r)) return dx(e, r, t);
|
|
22076
|
+
if (et(r)) return Wx();
|
|
22077
|
+
if (Xe(r)) return Vx(e, r, t);
|
|
22078
|
+
if (Je(r)) return jx(e, r, t);
|
|
22079
|
+
if (Ze(r)) return zx(e, r, t);
|
|
22080
|
+
if (Tt(r)) return qx();
|
|
22079
22081
|
throw new R("InvalidOperator");
|
|
22080
22082
|
}
|
|
22081
22083
|
if (Je(e)) {
|
|
22082
|
-
if (Xt(r)) return
|
|
22083
|
-
if (Nn(r)) return
|
|
22084
|
-
if (et(r)) return
|
|
22085
|
-
if (Xe(r)) return
|
|
22086
|
-
if (Je(r)) return
|
|
22087
|
-
if (Ze(r)) return
|
|
22088
|
-
if (Tt(r)) return
|
|
22084
|
+
if (Xt(r)) return bx(e, r, t);
|
|
22085
|
+
if (Nn(r)) return mx(e, r, t);
|
|
22086
|
+
if (et(r)) return Cx();
|
|
22087
|
+
if (Xe(r)) return Rx(e, r, t);
|
|
22088
|
+
if (Je(r)) return kx(e, r, t);
|
|
22089
|
+
if (Ze(r)) return Ix(e, r, t);
|
|
22090
|
+
if (Tt(r)) return Hx();
|
|
22089
22091
|
throw new R("InvalidOperator");
|
|
22090
22092
|
}
|
|
22091
22093
|
if (Tt(e)) {
|
|
22092
|
-
if (Xt(r)) return
|
|
22093
|
-
if (Nn(r)) return
|
|
22094
|
-
if (et(r)) return
|
|
22095
|
-
if (Xe(r)) return
|
|
22096
|
-
if (Je(r)) return
|
|
22097
|
-
if (Ze(r)) return
|
|
22098
|
-
if (Tt(r)) return
|
|
22094
|
+
if (Xt(r)) return Ex(e, r, t);
|
|
22095
|
+
if (Nn(r)) return Px();
|
|
22096
|
+
if (et(r)) return Yx();
|
|
22097
|
+
if (Xe(r)) return Zx();
|
|
22098
|
+
if (Je(r)) return Jx();
|
|
22099
|
+
if (Ze(r)) return Xx();
|
|
22100
|
+
if (Tt(r)) return xx(e, r, t);
|
|
22099
22101
|
throw new R("InvalidOperator");
|
|
22100
22102
|
}
|
|
22101
22103
|
throw new R("InvalidOperator");
|
|
@@ -22113,7 +22115,7 @@ function I0(t, e, r) {
|
|
|
22113
22115
|
}
|
|
22114
22116
|
throw new R("InvalidOperator");
|
|
22115
22117
|
}
|
|
22116
|
-
function
|
|
22118
|
+
function sx(t, e, r) {
|
|
22117
22119
|
switch (r) {
|
|
22118
22120
|
case "+":
|
|
22119
22121
|
return e.plus({ milliseconds: t.valueInMilliseconds() });
|
|
@@ -22122,15 +22124,15 @@ function rx(t, e, r) {
|
|
|
22122
22124
|
}
|
|
22123
22125
|
throw new R("InvalidOperator");
|
|
22124
22126
|
}
|
|
22125
|
-
function
|
|
22127
|
+
function ix(t, e, r) {
|
|
22126
22128
|
if (r === "+") return e.plus("milliseconds", t.valueInMilliseconds());
|
|
22127
22129
|
throw new R("InvalidOperator");
|
|
22128
22130
|
}
|
|
22129
|
-
function
|
|
22131
|
+
function ox(t, e, r) {
|
|
22130
22132
|
if (r === "+") return e.plus("milliseconds", t.valueInMilliseconds());
|
|
22131
22133
|
throw new R("InvalidOperator");
|
|
22132
22134
|
}
|
|
22133
|
-
function
|
|
22135
|
+
function ax(t, e, r) {
|
|
22134
22136
|
switch (r) {
|
|
22135
22137
|
case "+":
|
|
22136
22138
|
return t.plus("milliseconds", e.valueInMilliseconds());
|
|
@@ -22139,11 +22141,11 @@ function ix(t, e, r) {
|
|
|
22139
22141
|
}
|
|
22140
22142
|
throw new R("InvalidOperator");
|
|
22141
22143
|
}
|
|
22142
|
-
function
|
|
22144
|
+
function ux(t, e, r) {
|
|
22143
22145
|
if (r === "+") return e.addMilliseconds(t.valueInMilliseconds());
|
|
22144
22146
|
throw new R("InvalidOperator");
|
|
22145
22147
|
}
|
|
22146
|
-
function
|
|
22148
|
+
function lx(t, e, r) {
|
|
22147
22149
|
switch (r) {
|
|
22148
22150
|
case "+":
|
|
22149
22151
|
return $t.createFromMilliseconds(t.valueInMilliseconds() + e.valueInMilliseconds());
|
|
@@ -22156,7 +22158,7 @@ function ax(t, e, r) {
|
|
|
22156
22158
|
}
|
|
22157
22159
|
throw new R("InvalidOperator");
|
|
22158
22160
|
}
|
|
22159
|
-
function
|
|
22161
|
+
function cx(t, e, r) {
|
|
22160
22162
|
switch (r) {
|
|
22161
22163
|
case "+":
|
|
22162
22164
|
return $t.createFromMilliseconds(t.valueInMilliseconds() + e);
|
|
@@ -22169,7 +22171,7 @@ function ux(t, e, r) {
|
|
|
22169
22171
|
}
|
|
22170
22172
|
throw new R("InvalidOperator");
|
|
22171
22173
|
}
|
|
22172
|
-
function
|
|
22174
|
+
function fx(t, e, r) {
|
|
22173
22175
|
switch (r) {
|
|
22174
22176
|
case "+":
|
|
22175
22177
|
return $t.createFromMilliseconds(t + e.valueInMilliseconds());
|
|
@@ -22182,7 +22184,7 @@ function lx(t, e, r) {
|
|
|
22182
22184
|
}
|
|
22183
22185
|
throw new R("InvalidOperator");
|
|
22184
22186
|
}
|
|
22185
|
-
function
|
|
22187
|
+
function hx(t, e, r) {
|
|
22186
22188
|
switch (r) {
|
|
22187
22189
|
case "+":
|
|
22188
22190
|
return t.plus("milliseconds", e.valueInMilliseconds());
|
|
@@ -22191,7 +22193,7 @@ function cx(t, e, r) {
|
|
|
22191
22193
|
}
|
|
22192
22194
|
throw new R("InvalidOperator");
|
|
22193
22195
|
}
|
|
22194
|
-
function
|
|
22196
|
+
function dx(t, e, r) {
|
|
22195
22197
|
switch (r) {
|
|
22196
22198
|
case "+":
|
|
22197
22199
|
return t.plus({ milliseconds: e.valueInMilliseconds() });
|
|
@@ -22200,7 +22202,7 @@ function fx(t, e, r) {
|
|
|
22200
22202
|
}
|
|
22201
22203
|
throw new R("InvalidOperator");
|
|
22202
22204
|
}
|
|
22203
|
-
function
|
|
22205
|
+
function mx(t, e, r) {
|
|
22204
22206
|
switch (r) {
|
|
22205
22207
|
case "+":
|
|
22206
22208
|
return t.addMilliseconds(e.valueInMilliseconds());
|
|
@@ -22209,7 +22211,7 @@ function hx(t, e, r) {
|
|
|
22209
22211
|
}
|
|
22210
22212
|
throw new R("InvalidOperator");
|
|
22211
22213
|
}
|
|
22212
|
-
function
|
|
22214
|
+
function px(t, e, r) {
|
|
22213
22215
|
const n = 1e3 * e * 24 * 60 * 60;
|
|
22214
22216
|
switch (r) {
|
|
22215
22217
|
case "+":
|
|
@@ -22219,7 +22221,7 @@ function dx(t, e, r) {
|
|
|
22219
22221
|
}
|
|
22220
22222
|
throw new R("InvalidOperator");
|
|
22221
22223
|
}
|
|
22222
|
-
function
|
|
22224
|
+
function gx(t, e, r) {
|
|
22223
22225
|
const n = 1e3 * e * 24 * 60 * 60;
|
|
22224
22226
|
switch (r) {
|
|
22225
22227
|
case "+":
|
|
@@ -22229,7 +22231,7 @@ function mx(t, e, r) {
|
|
|
22229
22231
|
}
|
|
22230
22232
|
throw new R("InvalidOperator");
|
|
22231
22233
|
}
|
|
22232
|
-
function
|
|
22234
|
+
function _x(t, e, r) {
|
|
22233
22235
|
const n = 1e3 * e * 24 * 60 * 60;
|
|
22234
22236
|
switch (r) {
|
|
22235
22237
|
case "+":
|
|
@@ -22239,10 +22241,10 @@ function px(t, e, r) {
|
|
|
22239
22241
|
}
|
|
22240
22242
|
throw new R("InvalidOperator");
|
|
22241
22243
|
}
|
|
22242
|
-
function
|
|
22244
|
+
function yx(t, e, r) {
|
|
22243
22245
|
throw new R("InvalidOperator");
|
|
22244
22246
|
}
|
|
22245
|
-
function
|
|
22247
|
+
function bx(t, e, r) {
|
|
22246
22248
|
const n = 1e3 * e * 24 * 60 * 60;
|
|
22247
22249
|
switch (r) {
|
|
22248
22250
|
case "+":
|
|
@@ -22252,69 +22254,63 @@ function _x(t, e, r) {
|
|
|
22252
22254
|
}
|
|
22253
22255
|
throw new R("InvalidOperator");
|
|
22254
22256
|
}
|
|
22255
|
-
function
|
|
22257
|
+
function wx(t, e, r) {
|
|
22256
22258
|
throw new R("InvalidOperator");
|
|
22257
22259
|
}
|
|
22258
|
-
function
|
|
22260
|
+
function vx(t, e, r) {
|
|
22259
22261
|
throw new R("InvalidOperator");
|
|
22260
22262
|
}
|
|
22261
|
-
function
|
|
22263
|
+
function Sx(t, e, r) {
|
|
22262
22264
|
throw new R("InvalidOperator");
|
|
22263
22265
|
}
|
|
22264
|
-
function
|
|
22266
|
+
function Nx(t, e, r) {
|
|
22265
22267
|
const n = parseFloat(e);
|
|
22266
22268
|
if (isNaN(n)) throw new R("InvalidOperator");
|
|
22267
22269
|
return I0(t, n, r);
|
|
22268
22270
|
}
|
|
22269
|
-
function
|
|
22271
|
+
function Ex(t, e, r) {
|
|
22270
22272
|
const n = parseFloat(t);
|
|
22271
22273
|
if (isNaN(n)) throw new R("InvalidOperator");
|
|
22272
22274
|
return I0(n, e, r);
|
|
22273
22275
|
}
|
|
22274
|
-
function Nx(t, e, r) {
|
|
22275
|
-
if (r === "+") return t + e;
|
|
22276
|
-
throw new R("InvalidOperator");
|
|
22277
|
-
}
|
|
22278
|
-
function Ex(t, e, r) {
|
|
22279
|
-
throw new R("InvalidOperator");
|
|
22280
|
-
}
|
|
22281
22276
|
function xx(t, e, r) {
|
|
22277
|
+
if (r === "+") return t + e;
|
|
22282
22278
|
throw new R("InvalidOperator");
|
|
22283
22279
|
}
|
|
22284
22280
|
function Tx(t, e, r) {
|
|
22285
|
-
if (r === "-") return t.toDateTimeLuxon(e.zone).diff(e).as("days");
|
|
22286
22281
|
throw new R("InvalidOperator");
|
|
22287
22282
|
}
|
|
22288
22283
|
function Px(t, e, r) {
|
|
22289
|
-
if (r === "-") return t.toDateTimeLuxon(e.toDateTime().zone).diff(e.toDateTime()).as("days");
|
|
22290
22284
|
throw new R("InvalidOperator");
|
|
22291
22285
|
}
|
|
22292
22286
|
function Ax(t, e, r) {
|
|
22293
|
-
if (r === "-") return t.toDateTimeLuxon(
|
|
22287
|
+
if (r === "-") return t.toDateTimeLuxon(e.zone).diff(e).as("days");
|
|
22294
22288
|
throw new R("InvalidOperator");
|
|
22295
22289
|
}
|
|
22296
22290
|
function Lx(t, e, r) {
|
|
22291
|
+
if (r === "-") return t.toDateTimeLuxon(e.toDateTime().zone).diff(e.toDateTime()).as("days");
|
|
22297
22292
|
throw new R("InvalidOperator");
|
|
22298
22293
|
}
|
|
22299
22294
|
function Mx(t, e, r) {
|
|
22295
|
+
if (r === "-") return t.toDateTimeLuxon("UTC").diff(e.toDateTimeLuxon("UTC")).as("days");
|
|
22300
22296
|
throw new R("InvalidOperator");
|
|
22301
22297
|
}
|
|
22302
22298
|
function Ox(t, e, r) {
|
|
22303
|
-
if (r === "-") return t.toDateTime().diff(e.toDateTimeLuxon(t.toDateTime().zone)).as("days");
|
|
22304
22299
|
throw new R("InvalidOperator");
|
|
22305
22300
|
}
|
|
22306
22301
|
function Cx(t, e, r) {
|
|
22307
|
-
if (r === "-") return t.toDateTime().diff(e).as("days");
|
|
22308
22302
|
throw new R("InvalidOperator");
|
|
22309
22303
|
}
|
|
22310
22304
|
function Rx(t, e, r) {
|
|
22311
|
-
if (r === "-") return t.toDateTime().diff(e.toDateTime()).as("days");
|
|
22305
|
+
if (r === "-") return t.toDateTime().diff(e.toDateTimeLuxon(t.toDateTime().zone)).as("days");
|
|
22312
22306
|
throw new R("InvalidOperator");
|
|
22313
22307
|
}
|
|
22314
22308
|
function Ix(t, e, r) {
|
|
22309
|
+
if (r === "-") return t.toDateTime().diff(e).as("days");
|
|
22315
22310
|
throw new R("InvalidOperator");
|
|
22316
22311
|
}
|
|
22317
22312
|
function kx(t, e, r) {
|
|
22313
|
+
if (r === "-") return t.toDateTime().diff(e.toDateTime()).as("days");
|
|
22318
22314
|
throw new R("InvalidOperator");
|
|
22319
22315
|
}
|
|
22320
22316
|
function Dx(t, e, r) {
|
|
@@ -22324,21 +22320,21 @@ function $x(t, e, r) {
|
|
|
22324
22320
|
throw new R("InvalidOperator");
|
|
22325
22321
|
}
|
|
22326
22322
|
function Fx(t, e, r) {
|
|
22327
|
-
if (r === "-") return t.diff(e).as("days");
|
|
22328
22323
|
throw new R("InvalidOperator");
|
|
22329
22324
|
}
|
|
22330
22325
|
function Ux(t, e, r) {
|
|
22331
|
-
if (r === "-") return t.diff(e.toDateTimeLuxon(t.zone)).as("days");
|
|
22332
22326
|
throw new R("InvalidOperator");
|
|
22333
22327
|
}
|
|
22334
22328
|
function zx(t, e, r) {
|
|
22335
|
-
if (r === "-") return t.diff(e
|
|
22329
|
+
if (r === "-") return t.diff(e).as("days");
|
|
22336
22330
|
throw new R("InvalidOperator");
|
|
22337
22331
|
}
|
|
22338
22332
|
function Vx(t, e, r) {
|
|
22333
|
+
if (r === "-") return t.diff(e.toDateTimeLuxon(t.zone)).as("days");
|
|
22339
22334
|
throw new R("InvalidOperator");
|
|
22340
22335
|
}
|
|
22341
22336
|
function jx(t, e, r) {
|
|
22337
|
+
if (r === "-") return t.diff(e.toDateTime()).as("days");
|
|
22342
22338
|
throw new R("InvalidOperator");
|
|
22343
22339
|
}
|
|
22344
22340
|
function Wx(t, e, r) {
|
|
@@ -22362,6 +22358,12 @@ function Yx(t, e, r) {
|
|
|
22362
22358
|
function Zx(t, e, r) {
|
|
22363
22359
|
throw new R("InvalidOperator");
|
|
22364
22360
|
}
|
|
22361
|
+
function Xx(t, e, r) {
|
|
22362
|
+
throw new R("InvalidOperator");
|
|
22363
|
+
}
|
|
22364
|
+
function Jx(t, e, r) {
|
|
22365
|
+
throw new R("InvalidOperator");
|
|
22366
|
+
}
|
|
22365
22367
|
let I1 = class extends SyntaxError {
|
|
22366
22368
|
constructor(e, r, n, s) {
|
|
22367
22369
|
super(e), this.expected = r, this.found = n, this.location = s, this.name = "SyntaxError";
|
|
@@ -22428,7 +22430,7 @@ let I1 = class extends SyntaxError {
|
|
|
22428
22430
|
return "Expected " + _(e) + " but " + y(r) + " found.";
|
|
22429
22431
|
}
|
|
22430
22432
|
};
|
|
22431
|
-
function
|
|
22433
|
+
function Qx(t, e) {
|
|
22432
22434
|
const r = {}, n = (e = e !== void 0 ? e : {}).grammarSource, s = { start: z0 };
|
|
22433
22435
|
let i = z0;
|
|
22434
22436
|
const u = "!", l = "=", c = ">=", m = ">", _ = "<=", y = "<>", v = "!=", S = "||", T = "@", L = "'", D = "N'", z = "''", W = ".", j = "null", U = "true", F = "false", B = "in", Z = "is", ee = "like", ye = "escape", ke = "not", ve = "and", ce = "or", K = "between", Y = "from", re = "for", te = "substring", ue = "extract", _e = "trim", xe = "position", tt = "timestamp", ct = "date", Hr = "time", dn = "leading", tn = "trailing", us = "both", rn = "cast", Ct = "as", ri = "integer", gu = "int", _u = "smallint", yu = "float", bu = "real", wu = "varchar", vu = "to", Su = "interval", Nu = "year", Eu = "timezone_hour", xu = "timezone_minute", Tu = "month", Pu = "day", Au = "hour", Lu = "minute", Mu = "second", qi = "dow", zn = "doy", Ou = "week", Cu = "case", Ru = "end", Hi = "when", Iu = "then", ku = "else", ni = ",", Du = "(", Vn = ")", Yi = "`", Zi = /^[<-=]/, ls = /^[+\-]/, $u = /^[*\/]/, Fu = /^[A-Za-z_\x80-\uFFFF]/, Uu = /^[A-Za-z0-9_]/, Xi = /^[A-Za-z0-9_.\x80-\uFFFF]/, zu = /^["]/, Ji = /^[^']/, Vu = /^[0-9]/, ju = /^[eE]/, Wu = /^[ \t\n\r]/, A = /^[^`]/, Gu = ne("!", !1), Bu = ne("=", !1), qu = ne(">=", !1), Hu = ne(">", !1), Yu = ne("<=", !1), Zu = ne("<>", !1), Xu = yr([["<", "="]], !1, !1, !1), Ju = ne("!=", !1), cs = yr(["+", "-"], !1, !1, !1), Qu = ne("||", !1), Ku = yr(["*", "/"], !1, !1, !1), el = yr([["A", "Z"], ["a", "z"], "_", ["", ""]], !1, !1, !1), tl = yr([["A", "Z"], ["a", "z"], ["0", "9"], "_"], !1, !1, !1), Qi = yr([["A", "Z"], ["a", "z"], ["0", "9"], "_", ".", ["", ""]], !1, !1, !1), rl = yr(['"'], !1, !1, !1), nl = ne("@", !1), Ki = ne("'", !1), sl = ne("N'", !1), eo = ne("''", !1), to = yr(["'"], !0, !1, !1), il = ne(".", !1), ol = yr([["0", "9"]], !1, !1, !1), al = yr(["e", "E"], !1, !1, !1), ul = ne("NULL", !0), ll = ne("TRUE", !0), cl = ne("FALSE", !0), fl = ne("IN", !0), hl = ne("IS", !0), dl = ne("LIKE", !0), ml = ne("ESCAPE", !0), pl = ne("NOT", !0), gl = ne("AND", !0), _l = ne("OR", !0), yl = ne("BETWEEN", !0), bl = ne("FROM", !0), wl = ne("FOR", !0), vl = ne("SUBSTRING", !0), Sl = ne("EXTRACT", !0), Nl = ne("TRIM", !0), El = ne("POSITION", !0), xl = ne("TIMESTAMP", !0), Tl = ne("DATE", !0), Pl = ne("TIME", !0), Al = ne("LEADING", !0), Ll = ne("TRAILING", !0), Ml = ne("BOTH", !0), Ol = ne("CAST", !0), Cl = ne("AS", !0), Rl = ne("INTEGER", !0), Il = ne("INT", !0), kl = ne("SMALLINT", !0), Dl = ne("FLOAT", !0), $l = ne("REAL", !0), Fl = ne("VARCHAR", !0), Ul = ne("TO", !0), zl = ne("INTERVAL", !0), Vl = ne("YEAR", !0), jl = ne("TIMEZONE_HOUR", !0), Wl = ne("TIMEZONE_MINUTE", !0), Gl = ne("MONTH", !0), Bl = ne("DAY", !0), ql = ne("HOUR", !0), Hl = ne("MINUTE", !0), Yl = ne("SECOND", !0), Zl = ne("DOW", !0), Xl = ne("DOY", !0), Jl = ne("WEEK", !0), Ql = ne("CASE", !0), Kl = ne("END", !0), ec = ne("WHEN", !0), tc = ne("THEN", !0), rc = ne("ELSE", !0), nc = ne(",", !1), sc = ne("(", !1), ic = ne(")", !1), oc = yr([" ", " ", `
|
|
@@ -22895,7 +22897,7 @@ function Xx(t, e) {
|
|
|
22895
22897
|
function T9() {
|
|
22896
22898
|
return "ELSE";
|
|
22897
22899
|
}
|
|
22898
|
-
function
|
|
22900
|
+
function fT(a) {
|
|
22899
22901
|
return a;
|
|
22900
22902
|
}
|
|
22901
22903
|
function P9(a) {
|
|
@@ -23552,9 +23554,9 @@ function Xx(t, e) {
|
|
|
23552
23554
|
}
|
|
23553
23555
|
return e.peg$library ? { peg$result: ii, peg$currPos: h, peg$FAILED: r, peg$maxFailExpected: _o, peg$maxFailPos: Or, peg$success: qf, peg$throw: qf ? void 0 : Sd } : qf ? ii : void Sd();
|
|
23554
23556
|
}
|
|
23555
|
-
class
|
|
23557
|
+
class Kx {
|
|
23556
23558
|
static parse(e) {
|
|
23557
|
-
return
|
|
23559
|
+
return Qx(e);
|
|
23558
23560
|
}
|
|
23559
23561
|
}
|
|
23560
23562
|
function Et(t, e) {
|
|
@@ -23585,8 +23587,8 @@ function Et(t, e) {
|
|
|
23585
23587
|
Et(t.start, e), Et(t.end, e);
|
|
23586
23588
|
}
|
|
23587
23589
|
}
|
|
23588
|
-
const
|
|
23589
|
-
class
|
|
23590
|
+
const eT = /* @__PURE__ */ new Set(["current_timestamp", "current_date", "current_time"]);
|
|
23591
|
+
class tT {
|
|
23590
23592
|
constructor(e) {
|
|
23591
23593
|
this.staticData = e;
|
|
23592
23594
|
}
|
|
@@ -23667,17 +23669,17 @@ function Ue(t, ...e) {
|
|
|
23667
23669
|
function Nt(t) {
|
|
23668
23670
|
return t === void 0 ? "void 0" : JSON.stringify(t);
|
|
23669
23671
|
}
|
|
23670
|
-
function
|
|
23672
|
+
function rT({ type: t, start: e, end: r }) {
|
|
23671
23673
|
return `{type: ${Nt(t)}, start: ${Jh(e)}, end: ${Jh(r)}}`;
|
|
23672
23674
|
}
|
|
23673
23675
|
function Jh({ type: t, period: e, precision: r, secondary: n }) {
|
|
23674
23676
|
return JSON.stringify({ type: t, period: e, precision: r, secondary: n });
|
|
23675
23677
|
}
|
|
23676
|
-
function
|
|
23678
|
+
function nT({ type: t, size: e, withtimezone: r }) {
|
|
23677
23679
|
return JSON.stringify({ type: t, size: e, withtimezone: r });
|
|
23678
23680
|
}
|
|
23679
23681
|
const z2 = "feature", V2 = "lookups", j2 = "attributeAdapter", W2 = "fieldsIndex", Es = "timeZone", G2 = "currentUser";
|
|
23680
|
-
class
|
|
23682
|
+
class sT {
|
|
23681
23683
|
constructor(e) {
|
|
23682
23684
|
this._parseTree = e, this._staticData = /* @__PURE__ */ Object.create(null), this._nextStaticDataId = 0, this._tempVars = /* @__PURE__ */ new Set(), this._nextTempVarId = 0;
|
|
23683
23685
|
}
|
|
@@ -23686,7 +23688,7 @@ class rT {
|
|
|
23686
23688
|
${this._tempVars.size > 0 ? `var ${Array.from(this._tempVars).join(", ")};` : ""}
|
|
23687
23689
|
return this.convertInterval(${e});
|
|
23688
23690
|
`;
|
|
23689
|
-
return new Function(z2, V2, j2, W2, Es, G2, r).bind(new
|
|
23691
|
+
return new Function(z2, V2, j2, W2, Es, G2, r).bind(new tT(this._staticData));
|
|
23690
23692
|
}
|
|
23691
23693
|
_storeStaticData(e) {
|
|
23692
23694
|
const r = "static$" + this._nextStaticDataId++;
|
|
@@ -23728,7 +23730,7 @@ class rT {
|
|
|
23728
23730
|
_compileNode(e) {
|
|
23729
23731
|
switch (e.type) {
|
|
23730
23732
|
case "interval":
|
|
23731
|
-
return Ue("makeSqlInterval", this._compileNode(e.value), e.qualifier.type === "interval-qualifier" ?
|
|
23733
|
+
return Ue("makeSqlInterval", this._compileNode(e.value), e.qualifier.type === "interval-qualifier" ? rT(e.qualifier) : Jh(e.qualifier), Nt(e.op));
|
|
23732
23734
|
case "case-expression":
|
|
23733
23735
|
return e.format === "simple" ? this._compileSimpleCase(e) : this._compileSearchedCase(e);
|
|
23734
23736
|
case "parameter":
|
|
@@ -23807,7 +23809,7 @@ class rT {
|
|
|
23807
23809
|
case "column-reference":
|
|
23808
23810
|
return Ue("featureValue", z2, Nt(e.column), W2, j2);
|
|
23809
23811
|
case "data-type":
|
|
23810
|
-
return
|
|
23812
|
+
return nT(e.value);
|
|
23811
23813
|
case "function":
|
|
23812
23814
|
return Ue("evaluateFunction", Nt(e.name), this._compileNode(e.args), Es);
|
|
23813
23815
|
}
|
|
@@ -23819,7 +23821,7 @@ class k0 {
|
|
|
23819
23821
|
return new k0(e, r.fieldsIndex, r.timeZone ?? void 0, r.currentUser);
|
|
23820
23822
|
}
|
|
23821
23823
|
constructor(e, r, n = "UTC", s = null) {
|
|
23822
|
-
this.fieldsIndex = r, this.timeZone = n, this.currentUser = s, this.parameters = {}, this._compiledExecutor = null, this._hasDateFunctions = void 0, this.parseTree =
|
|
23824
|
+
this.fieldsIndex = r, this.timeZone = n, this.currentUser = s, this.parameters = {}, this._compiledExecutor = null, this._hasDateFunctions = void 0, this.parseTree = Kx.parse(e);
|
|
23823
23825
|
const { isStandardized: i, isAggregate: u, currentUserRequired: l, referencedFieldNames: c } = this._extractExpressionInfo(r);
|
|
23824
23826
|
this._referencedFieldNames = c, this.isStandardized = i, this.isAggregate = u, this.currentUserRequired = l;
|
|
23825
23827
|
}
|
|
@@ -23852,7 +23854,7 @@ class k0 {
|
|
|
23852
23854
|
tryGetCompiledExecutor() {
|
|
23853
23855
|
if (this._compiledExecutor != null) return this._compiledExecutor;
|
|
23854
23856
|
if ($("esri-csp-restrictions")) return null;
|
|
23855
|
-
const e = new
|
|
23857
|
+
const e = new sT(this.parseTree);
|
|
23856
23858
|
return this._compiledExecutor = e.compile(), this._compiledExecutor;
|
|
23857
23859
|
}
|
|
23858
23860
|
calculateValueCompiled(e, r = gi, n = this.currentUser) {
|
|
@@ -23868,7 +23870,7 @@ class k0 {
|
|
|
23868
23870
|
}
|
|
23869
23871
|
get hasDateFunctions() {
|
|
23870
23872
|
return this._hasDateFunctions != null || (this._hasDateFunctions = !1, Et(this.parseTree, (e) => {
|
|
23871
|
-
e.type === "current-time" ? this._hasDateFunctions = !0 : e.type === "function" && (this._hasDateFunctions = this._hasDateFunctions ||
|
|
23873
|
+
e.type === "current-time" ? this._hasDateFunctions = !0 : e.type === "function" && (this._hasDateFunctions = this._hasDateFunctions || eT.has(e.name.toLowerCase()));
|
|
23872
23874
|
})), this._hasDateFunctions;
|
|
23873
23875
|
}
|
|
23874
23876
|
getFunctions() {
|
|
@@ -23911,7 +23913,7 @@ class k0 {
|
|
|
23911
23913
|
break;
|
|
23912
23914
|
case "function": {
|
|
23913
23915
|
const { name: c, args: m } = l, _ = m.value.length;
|
|
23914
|
-
s && (s =
|
|
23916
|
+
s && (s = ex(c, _)), i === !1 && (i = k2(c, _));
|
|
23915
23917
|
break;
|
|
23916
23918
|
}
|
|
23917
23919
|
}
|
|
@@ -24016,7 +24018,7 @@ class k0 {
|
|
|
24016
24018
|
for (const y of s || []) _.push(this._evaluateNode(m, y, n, null, i));
|
|
24017
24019
|
c.push(_);
|
|
24018
24020
|
}
|
|
24019
|
-
return
|
|
24021
|
+
return PE(e.name, c);
|
|
24020
24022
|
}
|
|
24021
24023
|
const l = this._evaluateNode(e.args, r, n, s, i);
|
|
24022
24024
|
return R0(e.name, l, this.timeZone);
|
|
@@ -24064,7 +24066,7 @@ function h9(t) {
|
|
|
24064
24066
|
return pr.fromDateTime(e);
|
|
24065
24067
|
}
|
|
24066
24068
|
const B2 = "-[]/{}()*+?.\\^$|";
|
|
24067
|
-
function
|
|
24069
|
+
function iT(t, e) {
|
|
24068
24070
|
const r = e;
|
|
24069
24071
|
let n = "", s = 0;
|
|
24070
24072
|
for (let i = 0; i < t.length; i++) {
|
|
@@ -24080,9 +24082,9 @@ function nT(t, e) {
|
|
|
24080
24082
|
return new RegExp("^" + n + "$", "m");
|
|
24081
24083
|
}
|
|
24082
24084
|
function e0(t, e, r) {
|
|
24083
|
-
return t == null ? null :
|
|
24085
|
+
return t == null ? null : iT(e, r).test(t);
|
|
24084
24086
|
}
|
|
24085
|
-
function
|
|
24087
|
+
function oT(t) {
|
|
24086
24088
|
return t && typeof t.attributes == "object";
|
|
24087
24089
|
}
|
|
24088
24090
|
function d9(t, e, r, n) {
|
|
@@ -24106,8 +24108,8 @@ function d9(t, e, r, n) {
|
|
|
24106
24108
|
}
|
|
24107
24109
|
return s;
|
|
24108
24110
|
}
|
|
24109
|
-
const gi = { getAttribute: (t, e) => (
|
|
24110
|
-
class
|
|
24111
|
+
const gi = { getAttribute: (t, e) => (oT(t) ? t.attributes : t)[e] };
|
|
24112
|
+
class aT {
|
|
24111
24113
|
constructor(e, r) {
|
|
24112
24114
|
this._cache = new mg(e), this._invalidCache = new mg(r);
|
|
24113
24115
|
}
|
|
@@ -24127,10 +24129,10 @@ class iT {
|
|
|
24127
24129
|
return this._invalidCache.get(n) ?? null;
|
|
24128
24130
|
}
|
|
24129
24131
|
}
|
|
24130
|
-
var
|
|
24132
|
+
var uT = /* @__PURE__ */ Object.freeze({
|
|
24131
24133
|
__proto__: null,
|
|
24132
|
-
WhereClauseCache:
|
|
24133
|
-
}),
|
|
24134
|
+
WhereClauseCache: aT
|
|
24135
|
+
}), lT = async function(t = {}) {
|
|
24134
24136
|
var e, r, n, s = t, i = new Promise((p, N) => {
|
|
24135
24137
|
e = p, r = N;
|
|
24136
24138
|
}), u = "./this.program", l = "", c = "";
|
|
@@ -25009,7 +25011,7 @@ var oT = /* @__PURE__ */ Object.freeze({
|
|
|
25009
25011
|
var p = this.ptr;
|
|
25010
25012
|
return Ct(Pf(p));
|
|
25011
25013
|
}, s.ensureCache = he, s.ensureString = si, s.ensureInt8 = Qt, s.ensureInt16 = Cf, s.ensureInt32 = Rf, s.ensureFloat32 = If, s.ensureFloat64 = kf, i;
|
|
25012
|
-
},
|
|
25014
|
+
}, cT = /* @__PURE__ */ Object.freeze({
|
|
25013
25015
|
__proto__: null,
|
|
25014
|
-
default:
|
|
25016
|
+
default: lT
|
|
25015
25017
|
});
|