soonjs 0.0.34 → 0.1.1
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/deps/acorn-jU-39Pbw5W-u1bfg8xs1.js +3005 -0
- package/dist/deps/acorn-jU-39Pbw5W-xtcc0mcm8.js +16 -0
- package/dist/deps/angular-eXKcfordor-0ygbm9apc.js +3 -0
- package/dist/deps/angular-eXKcfordor-lxak3m3oa.js +2533 -0
- package/dist/deps/babel-QODt_XJZCU-4gvnd7es0.js +15 -0
- package/dist/deps/babel-QODt_XJZCU-nh2aovcen.js +7217 -0
- package/dist/deps/estree-_Gcr3virjH-1bpj2kcix.js +44 -0
- package/dist/deps/estree-_Gcr3virjH-rrazsks16.js +4528 -0
- package/dist/deps/flow-VkrRJr6lFd-mp3s51oq0.js +20 -0
- package/dist/deps/flow-VkrRJr6lFd-yovvyd1ma.js +27411 -0
- package/dist/deps/{glimmer-SKEURx3bl3-j891aljn1.js → glimmer-I6jyK4xw2I-izy00sbl3.js} +1409 -1462
- package/dist/deps/glimmer-I6jyK4xw2I-lpxioj9kk.js +37 -0
- package/dist/deps/graphql-F7JRnTC996-1vkxkg27g.js +28 -0
- package/dist/deps/graphql-F7JRnTC996-4l730c4g8.js +1221 -0
- package/dist/deps/html-C-ZYESkdqr-j3xdild5v.js +2791 -0
- package/dist/deps/html-C-ZYESkdqr-q28g9ydgp.js +25 -0
- package/dist/deps/markdown-4m9fGqwyBD-demptbrpo.js +3190 -0
- package/dist/deps/markdown-4m9fGqwyBD-imrswnrkg.js +62 -0
- package/dist/deps/meriyah-2XmgupY1jB-0fs5jh8tm.js +2645 -0
- package/dist/deps/meriyah-2XmgupY1jB-7adtk0vxn.js +5 -0
- package/dist/deps/postcss-UtIjNac23s-6repleub0.js +4739 -0
- package/dist/deps/postcss-UtIjNac23s-t5h4tlmc4.js +61 -0
- package/dist/deps/typescript-7W94NRN5-v-4or305h9a.js +21 -0
- package/dist/deps/typescript-7W94NRN5-v-npfcj3fw8.js +12947 -0
- package/dist/deps/yaml-GTMY6ek0xu-cn65bvv4v.js +4079 -0
- package/dist/deps/yaml-GTMY6ek0xu-fqkcyzhy7.js +159 -0
- package/dist/index.cjs +8 -8
- package/dist/index.js +1412 -1198
- package/dist/vite-plugin-soon-client.cjs +148 -156
- package/dist/vite-plugin-soon-client.js +33643 -38238
- package/dist/vite-plugin-soon-server.cjs +19 -20
- package/dist/vite-plugin-soon-server.d.ts +2 -2
- package/dist/vite-plugin-soon-server.js +1142 -1153
- package/package.json +12 -10
- package/dist/deps/acorn-MFuat2YCgG-b60r79xuq.js +0 -15
- package/dist/deps/acorn-MFuat2YCgG-znyzt9bsi.js +0 -2895
- package/dist/deps/angular-Nz7Izt9RB4-3agl5iuad.js +0 -1
- package/dist/deps/angular-Nz7Izt9RB4-k9gll1g2p.js +0 -1448
- package/dist/deps/babel-JaNXSJC73c-78chk7vt0.js +0 -6844
- package/dist/deps/babel-JaNXSJC73c-kufra91xr.js +0 -15
- package/dist/deps/estree-lrVsLbm9_D-ddquqk13a.js +0 -4265
- package/dist/deps/estree-lrVsLbm9_D-h2bhlvrak.js +0 -36
- package/dist/deps/flow-MAZ63dnw8p-9qklekr72.js +0 -19
- package/dist/deps/flow-MAZ63dnw8p-bkeo4owf1.js +0 -26221
- package/dist/deps/glimmer-SKEURx3bl3-igeybe6v2.js +0 -30
- package/dist/deps/graphql--N7MQg-wpp-gcvs9060v.js +0 -29
- package/dist/deps/graphql--N7MQg-wpp-tvobch3j0.js +0 -1212
- package/dist/deps/html-WW7XljTSl6-x8sxwnqcb.js +0 -2623
- package/dist/deps/html-WW7XljTSl6-ylw8ht4cg.js +0 -23
- package/dist/deps/markdown-i-DCK3AslU-gavz86jke.js +0 -62
- package/dist/deps/markdown-i-DCK3AslU-jj4g2i9mp.js +0 -3058
- package/dist/deps/meriyah-0-URq6zZ8n-bq3yx0s50.js +0 -4
- package/dist/deps/meriyah-0-URq6zZ8n-yvpkfa2jn.js +0 -2320
- package/dist/deps/postcss-urUw1vxeu1-rvrg58zgo.js +0 -52
- package/dist/deps/postcss-urUw1vxeu1-sr2tuk3a4.js +0 -4664
- package/dist/deps/typescript-5-LBeuVeDB-jbsjwqvq8.js +0 -20
- package/dist/deps/typescript-5-LBeuVeDB-wgvb9qpn3.js +0 -12794
- package/dist/deps/yaml-zChCAOpgM7-2tuvm27wb.js +0 -161
- package/dist/deps/yaml-zChCAOpgM7-8sl1vv60w.js +0 -4088
- /package/dist/deps/{soon-id-t25L9qRGGZ-xzfp84d25.js → soon-id-t25L9qRGGZ-3kxe385xx.js} +0 -0
- /package/dist/deps/{soon-id-t25L9qRGGZ-5apkd8o17.js → soon-id-t25L9qRGGZ-j2kn3bq83.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { PassThrough as
|
|
5
|
-
import { g as
|
|
6
|
-
import
|
|
7
|
-
var
|
|
8
|
-
Object.defineProperty(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
const
|
|
1
|
+
var jt = Object.defineProperty;
|
|
2
|
+
var kt = (r, e, t) => e in r ? jt(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var P = (r, e, t) => kt(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { PassThrough as zt } from "stream";
|
|
5
|
+
import { g as ft, c as Tr, u as Kt } from "./deps/soon-id-t25L9qRGGZ-3kxe385xx.js";
|
|
6
|
+
import Vt from "util";
|
|
7
|
+
var H = {};
|
|
8
|
+
Object.defineProperty(H, "__esModule", { value: !0 });
|
|
9
|
+
H.TokenData = void 0;
|
|
10
|
+
H.parse = Er;
|
|
11
|
+
H.compile = en;
|
|
12
|
+
var Qt = H.match = nn;
|
|
13
|
+
H.pathToRegexp = pt;
|
|
14
|
+
const ut = "/", br = (r) => r, Jt = new RegExp("^\\p{XID_Continue}$", "u"), fe = "https://git.new/pathToRegexpError", Xt = {
|
|
15
15
|
"!": "!",
|
|
16
16
|
"@": "@",
|
|
17
17
|
";": ";",
|
|
@@ -22,13 +22,13 @@ const bt = "/", tr = (r) => r, St = new RegExp("^\\p{XID_Continue}$", "u"), le =
|
|
|
22
22
|
"{": "{",
|
|
23
23
|
"}": "}"
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function Yt(r) {
|
|
26
26
|
const e = [...r], t = [];
|
|
27
27
|
let n = 0;
|
|
28
28
|
for (; n < e.length; ) {
|
|
29
|
-
const a = e[n],
|
|
30
|
-
if (
|
|
31
|
-
t.push({ type:
|
|
29
|
+
const a = e[n], i = Xt[a];
|
|
30
|
+
if (i) {
|
|
31
|
+
t.push({ type: i, index: n++, value: a });
|
|
32
32
|
continue;
|
|
33
33
|
}
|
|
34
34
|
if (a === "\\") {
|
|
@@ -36,17 +36,17 @@ function At(r) {
|
|
|
36
36
|
continue;
|
|
37
37
|
}
|
|
38
38
|
if (a === ":") {
|
|
39
|
-
let
|
|
40
|
-
for (;
|
|
41
|
-
|
|
42
|
-
if (!
|
|
39
|
+
let o = "";
|
|
40
|
+
for (; Jt.test(e[++n]); )
|
|
41
|
+
o += e[n];
|
|
42
|
+
if (!o)
|
|
43
43
|
throw new TypeError(`Missing parameter name at ${n}`);
|
|
44
|
-
t.push({ type: "NAME", index: n, value:
|
|
44
|
+
t.push({ type: "NAME", index: n, value: o });
|
|
45
45
|
continue;
|
|
46
46
|
}
|
|
47
47
|
if (a === "(") {
|
|
48
|
-
const
|
|
49
|
-
let
|
|
48
|
+
const o = n++;
|
|
49
|
+
let u = 1, l = "";
|
|
50
50
|
if (e[n] === "?")
|
|
51
51
|
throw new TypeError(`Pattern cannot start with "?" at ${n}`);
|
|
52
52
|
for (; n < e.length; ) {
|
|
@@ -55,26 +55,26 @@ function At(r) {
|
|
|
55
55
|
continue;
|
|
56
56
|
}
|
|
57
57
|
if (e[n] === ")") {
|
|
58
|
-
if (
|
|
58
|
+
if (u--, u === 0) {
|
|
59
59
|
n++;
|
|
60
60
|
break;
|
|
61
61
|
}
|
|
62
|
-
} else if (e[n] === "(" && (
|
|
62
|
+
} else if (e[n] === "(" && (u++, e[n + 1] !== "?"))
|
|
63
63
|
throw new TypeError(`Capturing groups are not allowed at ${n}`);
|
|
64
64
|
l += e[n++];
|
|
65
65
|
}
|
|
66
|
-
if (
|
|
67
|
-
throw new TypeError(`Unbalanced pattern at ${
|
|
66
|
+
if (u)
|
|
67
|
+
throw new TypeError(`Unbalanced pattern at ${o}`);
|
|
68
68
|
if (!l)
|
|
69
|
-
throw new TypeError(`Missing pattern at ${
|
|
69
|
+
throw new TypeError(`Missing pattern at ${o}`);
|
|
70
70
|
t.push({ type: "PATTERN", index: n, value: l });
|
|
71
71
|
continue;
|
|
72
72
|
}
|
|
73
73
|
t.push({ type: "CHAR", index: n, value: e[n++] });
|
|
74
74
|
}
|
|
75
|
-
return t.push({ type: "END", index: n, value: "" }), new
|
|
75
|
+
return t.push({ type: "END", index: n, value: "" }), new Zt(t);
|
|
76
76
|
}
|
|
77
|
-
class
|
|
77
|
+
class Zt {
|
|
78
78
|
constructor(e) {
|
|
79
79
|
this.tokens = e, this.index = 0;
|
|
80
80
|
}
|
|
@@ -91,7 +91,7 @@ class Pt {
|
|
|
91
91
|
if (t !== void 0)
|
|
92
92
|
return t;
|
|
93
93
|
const { type: n, index: a } = this.peek();
|
|
94
|
-
throw new TypeError(`Unexpected ${n} at ${a}, expected ${e}: ${
|
|
94
|
+
throw new TypeError(`Unexpected ${n} at ${a}, expected ${e}: ${fe}`);
|
|
95
95
|
}
|
|
96
96
|
text() {
|
|
97
97
|
let e = "", t;
|
|
@@ -103,279 +103,284 @@ class Pt {
|
|
|
103
103
|
return this.tryConsume("?") || this.tryConsume("*") || this.tryConsume("+");
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
class
|
|
106
|
+
class Me {
|
|
107
107
|
constructor(e, t) {
|
|
108
108
|
this.tokens = e, this.delimiter = t;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
|
|
112
|
-
function
|
|
113
|
-
const { encodePath: t =
|
|
114
|
-
let
|
|
111
|
+
H.TokenData = Me;
|
|
112
|
+
function Er(r, e = {}) {
|
|
113
|
+
const { encodePath: t = br, delimiter: n = t(ut) } = e, a = [], i = Yt(r);
|
|
114
|
+
let o = 0;
|
|
115
115
|
do {
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
const l =
|
|
119
|
-
if (l ||
|
|
116
|
+
const u = i.text();
|
|
117
|
+
u && a.push(t(u));
|
|
118
|
+
const l = i.tryConsume("NAME"), c = i.tryConsume("PATTERN");
|
|
119
|
+
if (l || c) {
|
|
120
120
|
a.push({
|
|
121
|
-
name: l || String(
|
|
122
|
-
pattern:
|
|
121
|
+
name: l || String(o++),
|
|
122
|
+
pattern: c
|
|
123
123
|
});
|
|
124
|
-
const
|
|
125
|
-
if (
|
|
126
|
-
throw new TypeError(`Unexpected * at ${
|
|
124
|
+
const f = i.peek();
|
|
125
|
+
if (f.type === "*")
|
|
126
|
+
throw new TypeError(`Unexpected * at ${f.index}, you probably want \`/*\` or \`{/:foo}*\`: ${fe}`);
|
|
127
127
|
continue;
|
|
128
128
|
}
|
|
129
|
-
if (
|
|
129
|
+
if (i.tryConsume("*")) {
|
|
130
130
|
a.push({
|
|
131
|
-
name: String(
|
|
132
|
-
pattern: `(?:(?!${
|
|
131
|
+
name: String(o++),
|
|
132
|
+
pattern: `(?:(?!${Y(n)}).)*`,
|
|
133
133
|
modifier: "*",
|
|
134
134
|
separator: n
|
|
135
135
|
});
|
|
136
136
|
continue;
|
|
137
137
|
}
|
|
138
|
-
if (
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
const
|
|
138
|
+
if (i.tryConsume("{")) {
|
|
139
|
+
const f = i.text(), d = i.tryConsume("NAME"), y = i.tryConsume("PATTERN"), h = i.text(), g = i.tryConsume(";") && i.text();
|
|
140
|
+
i.consume("}");
|
|
141
|
+
const b = i.modifier();
|
|
142
142
|
a.push({
|
|
143
|
-
name: d || (y ? String(
|
|
144
|
-
prefix: t(
|
|
145
|
-
suffix: t(
|
|
143
|
+
name: d || (y ? String(o++) : ""),
|
|
144
|
+
prefix: t(f),
|
|
145
|
+
suffix: t(h),
|
|
146
146
|
pattern: y,
|
|
147
|
-
modifier:
|
|
147
|
+
modifier: b,
|
|
148
148
|
separator: g
|
|
149
149
|
});
|
|
150
150
|
continue;
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
i.consume("END");
|
|
153
153
|
break;
|
|
154
154
|
} while (!0);
|
|
155
|
-
return new
|
|
155
|
+
return new Me(a, n);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
const t = r instanceof
|
|
159
|
-
return
|
|
157
|
+
function en(r, e = {}) {
|
|
158
|
+
const t = r instanceof Me ? r : Er(r, e);
|
|
159
|
+
return tn(t, e);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function rn(r, e) {
|
|
162
162
|
if (typeof r == "string")
|
|
163
163
|
return () => r;
|
|
164
|
-
const t = e ||
|
|
164
|
+
const t = e || br, n = r.modifier === "+" || r.modifier === "*", a = r.modifier === "?" || r.modifier === "*", { prefix: i = "", suffix: o = "", separator: u = o + i } = r;
|
|
165
165
|
if (e && n) {
|
|
166
|
-
const
|
|
166
|
+
const c = (p, f) => {
|
|
167
167
|
if (typeof p != "string")
|
|
168
|
-
throw new TypeError(`Expected "${r.name}/${
|
|
168
|
+
throw new TypeError(`Expected "${r.name}/${f}" to be a string`);
|
|
169
169
|
return t(p);
|
|
170
170
|
}, s = (p) => {
|
|
171
171
|
if (!Array.isArray(p))
|
|
172
172
|
throw new TypeError(`Expected "${r.name}" to be an array`);
|
|
173
|
-
return p.length === 0 ? "" :
|
|
173
|
+
return p.length === 0 ? "" : i + p.map(c).join(u) + o;
|
|
174
174
|
};
|
|
175
175
|
return a ? (p) => {
|
|
176
|
-
const
|
|
177
|
-
return
|
|
176
|
+
const f = p[r.name];
|
|
177
|
+
return f == null ? "" : f.length ? s(f) : "";
|
|
178
178
|
} : (p) => {
|
|
179
|
-
const
|
|
180
|
-
return s(
|
|
179
|
+
const f = p[r.name];
|
|
180
|
+
return s(f);
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
|
-
const l = (
|
|
184
|
-
if (typeof
|
|
183
|
+
const l = (c) => {
|
|
184
|
+
if (typeof c != "string")
|
|
185
185
|
throw new TypeError(`Expected "${r.name}" to be a string`);
|
|
186
|
-
return
|
|
186
|
+
return i + t(c) + o;
|
|
187
187
|
};
|
|
188
|
-
return a ? (
|
|
189
|
-
const s =
|
|
188
|
+
return a ? (c) => {
|
|
189
|
+
const s = c[r.name];
|
|
190
190
|
return s == null ? "" : l(s);
|
|
191
|
-
} : (
|
|
192
|
-
const s =
|
|
191
|
+
} : (c) => {
|
|
192
|
+
const s = c[r.name];
|
|
193
193
|
return l(s);
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
const { encode: t = encodeURIComponent, loose: n = !0, validate: a = !0, strict:
|
|
198
|
-
const
|
|
196
|
+
function tn(r, e) {
|
|
197
|
+
const { encode: t = encodeURIComponent, loose: n = !0, validate: a = !0, strict: i = !1 } = e, o = ct(e), u = Ar(n, r.delimiter), l = st(r, u, [], o, i), c = r.tokens.map((s, p) => {
|
|
198
|
+
const f = rn(s, t);
|
|
199
199
|
if (!a || typeof s == "string")
|
|
200
|
-
return
|
|
201
|
-
const d = new RegExp(`^${l[p]}$`,
|
|
200
|
+
return f;
|
|
201
|
+
const d = new RegExp(`^${l[p]}$`, o);
|
|
202
202
|
return (y) => {
|
|
203
|
-
const
|
|
204
|
-
if (!d.test(
|
|
205
|
-
throw new TypeError(`Invalid value for "${s.name}": ${JSON.stringify(
|
|
206
|
-
return
|
|
203
|
+
const h = f(y);
|
|
204
|
+
if (!d.test(h))
|
|
205
|
+
throw new TypeError(`Invalid value for "${s.name}": ${JSON.stringify(h)}`);
|
|
206
|
+
return h;
|
|
207
207
|
};
|
|
208
208
|
});
|
|
209
209
|
return function(p = {}) {
|
|
210
|
-
let
|
|
211
|
-
for (const d of
|
|
212
|
-
|
|
213
|
-
return
|
|
210
|
+
let f = "";
|
|
211
|
+
for (const d of c)
|
|
212
|
+
f += d(p);
|
|
213
|
+
return f;
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
const { decode: t = decodeURIComponent, loose: n = !0
|
|
218
|
-
if (t && (
|
|
219
|
-
const { prefix:
|
|
220
|
-
return (
|
|
216
|
+
function nn(r, e = {}) {
|
|
217
|
+
const { decode: t = decodeURIComponent, loose: n = !0, delimiter: a = ut } = e, i = pt(r, e), o = Ar(n, a), u = i.keys.map((l) => {
|
|
218
|
+
if (t && (l.modifier === "+" || l.modifier === "*")) {
|
|
219
|
+
const { prefix: c = "", suffix: s = "", separator: p = s + c } = l, f = new RegExp(o(p), "g");
|
|
220
|
+
return (d) => d.split(f).map(t);
|
|
221
221
|
}
|
|
222
|
-
return t ||
|
|
222
|
+
return t || br;
|
|
223
223
|
});
|
|
224
|
-
return function(
|
|
225
|
-
const
|
|
226
|
-
if (!
|
|
224
|
+
return function(c) {
|
|
225
|
+
const s = i.exec(c);
|
|
226
|
+
if (!s)
|
|
227
227
|
return !1;
|
|
228
|
-
const { 0:
|
|
229
|
-
for (let
|
|
230
|
-
if (
|
|
228
|
+
const { 0: p, index: f } = s, d = /* @__PURE__ */ Object.create(null);
|
|
229
|
+
for (let y = 1; y < s.length; y++) {
|
|
230
|
+
if (s[y] === void 0)
|
|
231
231
|
continue;
|
|
232
|
-
const
|
|
233
|
-
|
|
232
|
+
const h = i.keys[y - 1], g = u[y - 1];
|
|
233
|
+
d[h.name] = g(s[y]);
|
|
234
234
|
}
|
|
235
|
-
return { path:
|
|
235
|
+
return { path: p, index: f, params: d };
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
return r.replace(/
|
|
238
|
+
function Y(r) {
|
|
239
|
+
return r.replace(/[.+*?^${}()[\]|/\\]/g, "\\$&");
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
const t =
|
|
241
|
+
function an(r, e) {
|
|
242
|
+
const t = Y(r);
|
|
243
243
|
return e ? `(?:${t})+(?!${t})` : t;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function Ar(r, e) {
|
|
246
246
|
if (!r)
|
|
247
|
-
return
|
|
248
|
-
const t = new RegExp(`(?:(?!${
|
|
249
|
-
return (n) => n.replace(t,
|
|
247
|
+
return Y;
|
|
248
|
+
const t = new RegExp(`(?:(?!${Y(e)}).)+|(.)`, "g");
|
|
249
|
+
return (n) => n.replace(t, an);
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function ct(r) {
|
|
252
252
|
return r.sensitive ? "" : "i";
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
const { trailing:
|
|
256
|
-
let
|
|
257
|
-
return
|
|
254
|
+
function Mr(r, e, t, n) {
|
|
255
|
+
const a = r instanceof Me ? r : Er(r, n), { trailing: i = !0, loose: o = !0, start: u = !0, end: l = !0, strict: c = !1 } = n, s = Ar(o, a.delimiter), p = st(a, s, e, t, c);
|
|
256
|
+
let f = u ? "^" : "";
|
|
257
|
+
return f += p.join(""), i && (f += `(?:${s(a.delimiter)}$)?`), f += l ? "$" : `(?=${Y(a.delimiter)}|$)`, f;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
260
|
-
const
|
|
261
|
-
let
|
|
262
|
-
return r.tokens.map((l
|
|
259
|
+
function st(r, e, t, n, a) {
|
|
260
|
+
const i = `(?:(?!${Y(r.delimiter)}).)+?`;
|
|
261
|
+
let o = "", u = !0;
|
|
262
|
+
return r.tokens.map((l) => {
|
|
263
263
|
if (typeof l == "string")
|
|
264
|
-
return
|
|
265
|
-
const { prefix:
|
|
264
|
+
return o = l, e(l);
|
|
265
|
+
const { prefix: c = "", suffix: s = "", separator: p = s + c, modifier: f = "" } = l, d = e(c), y = e(s);
|
|
266
266
|
if (l.name) {
|
|
267
|
-
const
|
|
268
|
-
if (
|
|
269
|
-
throw new TypeError(`Ambiguous pattern for "${l.name}": ${
|
|
270
|
-
if (
|
|
271
|
-
const
|
|
272
|
-
if (!
|
|
273
|
-
throw new TypeError(`Missing separator for "${l.name}": ${
|
|
274
|
-
if (
|
|
275
|
-
throw new TypeError(`Ambiguous pattern for "${l.name}" separator: ${
|
|
276
|
-
return
|
|
267
|
+
const h = l.pattern ? `(?:${l.pattern})` : i, g = on(h, l.name, n);
|
|
268
|
+
if (u || (u = He(g, c || o)), !u)
|
|
269
|
+
throw new TypeError(`Ambiguous pattern for "${l.name}": ${fe}`);
|
|
270
|
+
if (u = !a || He(g, s), o = "", t.push(l), f === "+" || f === "*") {
|
|
271
|
+
const b = f === "*" ? "?" : "", A = e(p);
|
|
272
|
+
if (!A)
|
|
273
|
+
throw new TypeError(`Missing separator for "${l.name}": ${fe}`);
|
|
274
|
+
if (u || (u = !a || He(g, p)), !u)
|
|
275
|
+
throw new TypeError(`Ambiguous pattern for "${l.name}" separator: ${fe}`);
|
|
276
|
+
return u = !a, `(?:${d}(${h}(?:${A}${h})*)${y})${b}`;
|
|
277
277
|
}
|
|
278
|
-
return `(?:${
|
|
278
|
+
return `(?:${d}(${h})${y})${f}`;
|
|
279
279
|
}
|
|
280
|
-
return `(?:${
|
|
280
|
+
return `(?:${d}${y})${f}`;
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function on(r, e, t) {
|
|
284
284
|
try {
|
|
285
285
|
return new RegExp(`^${r}$`, t);
|
|
286
286
|
} catch (n) {
|
|
287
287
|
throw new TypeError(`Invalid pattern for "${e}": ${n.message}`);
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function He(r, e) {
|
|
291
291
|
return e ? !r.test(e) : !1;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
const t =
|
|
295
|
-
|
|
293
|
+
function pt(r, e = {}) {
|
|
294
|
+
const t = [], n = ct(e);
|
|
295
|
+
if (Array.isArray(r)) {
|
|
296
|
+
const i = r.map((o) => Mr(o, t, n, e));
|
|
297
|
+
return Object.assign(new RegExp(i.join("|")), { keys: t });
|
|
298
|
+
}
|
|
299
|
+
const a = Mr(r, t, n, e);
|
|
300
|
+
return Object.assign(new RegExp(a), { keys: t });
|
|
296
301
|
}
|
|
297
|
-
var
|
|
298
|
-
Object.defineProperty(
|
|
302
|
+
var De = {};
|
|
303
|
+
Object.defineProperty(De, "__esModule", {
|
|
299
304
|
value: !0
|
|
300
305
|
});
|
|
301
|
-
|
|
302
|
-
const
|
|
303
|
-
function
|
|
306
|
+
De.Observable = void 0;
|
|
307
|
+
const yt = (r) => !!Symbol[r], $r = (r) => yt(r) ? Symbol[r] : "@@" + r, ln = $r("iterator"), yr = $r("observable"), dt = $r("species");
|
|
308
|
+
function Ie(r, e) {
|
|
304
309
|
let t = r[e];
|
|
305
310
|
if (t != null) {
|
|
306
311
|
if (typeof t != "function") throw new TypeError(t + " is not a function");
|
|
307
312
|
return t;
|
|
308
313
|
}
|
|
309
314
|
}
|
|
310
|
-
function
|
|
315
|
+
function ie(r) {
|
|
311
316
|
let e = r.constructor;
|
|
312
|
-
return e !== void 0 && (e = e[
|
|
317
|
+
return e !== void 0 && (e = e[dt], e === null && (e = void 0)), e !== void 0 ? e : Ne;
|
|
313
318
|
}
|
|
314
|
-
function
|
|
315
|
-
return r instanceof
|
|
319
|
+
function fn(r) {
|
|
320
|
+
return r instanceof Ne;
|
|
316
321
|
}
|
|
317
|
-
function
|
|
318
|
-
|
|
322
|
+
function Z(r) {
|
|
323
|
+
Z.log ? Z.log(r) : setTimeout(() => {
|
|
319
324
|
throw r;
|
|
320
325
|
});
|
|
321
326
|
}
|
|
322
|
-
function
|
|
327
|
+
function Ee(r) {
|
|
323
328
|
Promise.resolve().then(() => {
|
|
324
329
|
try {
|
|
325
330
|
r();
|
|
326
331
|
} catch (e) {
|
|
327
|
-
|
|
332
|
+
Z(e);
|
|
328
333
|
}
|
|
329
334
|
});
|
|
330
335
|
}
|
|
331
|
-
function
|
|
336
|
+
function ht(r) {
|
|
332
337
|
let e = r._cleanup;
|
|
333
338
|
if (e !== void 0 && (r._cleanup = void 0, !!e))
|
|
334
339
|
try {
|
|
335
340
|
if (typeof e == "function")
|
|
336
341
|
e();
|
|
337
342
|
else {
|
|
338
|
-
let t =
|
|
343
|
+
let t = Ie(e, "unsubscribe");
|
|
339
344
|
t && t.call(e);
|
|
340
345
|
}
|
|
341
346
|
} catch (t) {
|
|
342
|
-
|
|
347
|
+
Z(t);
|
|
343
348
|
}
|
|
344
349
|
}
|
|
345
|
-
function
|
|
350
|
+
function dr(r) {
|
|
346
351
|
r._observer = void 0, r._queue = void 0, r._state = "closed";
|
|
347
352
|
}
|
|
348
|
-
function
|
|
353
|
+
function un(r) {
|
|
349
354
|
let e = r._queue;
|
|
350
355
|
if (e) {
|
|
351
356
|
r._queue = void 0, r._state = "ready";
|
|
352
|
-
for (let t = 0; t < e.length && (
|
|
357
|
+
for (let t = 0; t < e.length && (mt(r, e[t].type, e[t].value), r._state !== "closed"); ++t)
|
|
353
358
|
;
|
|
354
359
|
}
|
|
355
360
|
}
|
|
356
|
-
function
|
|
361
|
+
function mt(r, e, t) {
|
|
357
362
|
r._state = "running";
|
|
358
363
|
let n = r._observer;
|
|
359
364
|
try {
|
|
360
|
-
let a =
|
|
365
|
+
let a = Ie(n, e);
|
|
361
366
|
switch (e) {
|
|
362
367
|
case "next":
|
|
363
368
|
a && a.call(n, t);
|
|
364
369
|
break;
|
|
365
370
|
case "error":
|
|
366
|
-
if (
|
|
371
|
+
if (dr(r), a) a.call(n, t);
|
|
367
372
|
else throw t;
|
|
368
373
|
break;
|
|
369
374
|
case "complete":
|
|
370
|
-
|
|
375
|
+
dr(r), a && a.call(n);
|
|
371
376
|
break;
|
|
372
377
|
}
|
|
373
378
|
} catch (a) {
|
|
374
|
-
|
|
379
|
+
Z(a);
|
|
375
380
|
}
|
|
376
|
-
r._state === "closed" ?
|
|
381
|
+
r._state === "closed" ? ht(r) : r._state === "running" && (r._state = "ready");
|
|
377
382
|
}
|
|
378
|
-
function
|
|
383
|
+
function je(r, e, t) {
|
|
379
384
|
if (r._state !== "closed") {
|
|
380
385
|
if (r._state === "buffering") {
|
|
381
386
|
r._queue.push({
|
|
@@ -388,33 +393,33 @@ function Me(r, e, t) {
|
|
|
388
393
|
r._state = "buffering", r._queue = [{
|
|
389
394
|
type: e,
|
|
390
395
|
value: t
|
|
391
|
-
}],
|
|
396
|
+
}], Ee(() => un(r));
|
|
392
397
|
return;
|
|
393
398
|
}
|
|
394
|
-
|
|
399
|
+
mt(r, e, t);
|
|
395
400
|
}
|
|
396
401
|
}
|
|
397
|
-
class
|
|
402
|
+
class cn {
|
|
398
403
|
constructor(e, t) {
|
|
399
404
|
this._cleanup = void 0, this._observer = e, this._queue = void 0, this._state = "initializing";
|
|
400
405
|
let n = this, a = {
|
|
401
406
|
get closed() {
|
|
402
407
|
return n._state === "closed";
|
|
403
408
|
},
|
|
404
|
-
next(
|
|
405
|
-
|
|
409
|
+
next(i) {
|
|
410
|
+
je(n, "next", i);
|
|
406
411
|
},
|
|
407
|
-
error(
|
|
408
|
-
|
|
412
|
+
error(i) {
|
|
413
|
+
je(n, "error", i);
|
|
409
414
|
},
|
|
410
415
|
complete() {
|
|
411
|
-
|
|
416
|
+
je(n, "complete");
|
|
412
417
|
}
|
|
413
418
|
};
|
|
414
419
|
try {
|
|
415
420
|
this._cleanup = t.call(void 0, a);
|
|
416
|
-
} catch (
|
|
417
|
-
a.error(
|
|
421
|
+
} catch (i) {
|
|
422
|
+
a.error(i);
|
|
418
423
|
}
|
|
419
424
|
this._state === "initializing" && (this._state = "ready");
|
|
420
425
|
}
|
|
@@ -422,12 +427,12 @@ class Nt {
|
|
|
422
427
|
return this._state === "closed";
|
|
423
428
|
}
|
|
424
429
|
unsubscribe() {
|
|
425
|
-
this._state !== "closed" && (
|
|
430
|
+
this._state !== "closed" && (dr(this), ht(this));
|
|
426
431
|
}
|
|
427
432
|
}
|
|
428
|
-
let
|
|
433
|
+
let Ne = class Ae {
|
|
429
434
|
constructor(e) {
|
|
430
|
-
if (!(this instanceof
|
|
435
|
+
if (!(this instanceof Ae)) throw new TypeError("Observable cannot be called as a function");
|
|
431
436
|
if (typeof e != "function") throw new TypeError("Observable initializer must be a function");
|
|
432
437
|
this._subscriber = e;
|
|
433
438
|
}
|
|
@@ -436,7 +441,7 @@ let Oe = class be {
|
|
|
436
441
|
next: e,
|
|
437
442
|
error: arguments[1],
|
|
438
443
|
complete: arguments[2]
|
|
439
|
-
}), new
|
|
444
|
+
}), new cn(e, this._subscriber);
|
|
440
445
|
}
|
|
441
446
|
forEach(e) {
|
|
442
447
|
return new Promise((t, n) => {
|
|
@@ -445,14 +450,14 @@ let Oe = class be {
|
|
|
445
450
|
return;
|
|
446
451
|
}
|
|
447
452
|
function a() {
|
|
448
|
-
|
|
453
|
+
i.unsubscribe(), t();
|
|
449
454
|
}
|
|
450
|
-
let
|
|
451
|
-
next(
|
|
455
|
+
let i = this.subscribe({
|
|
456
|
+
next(o) {
|
|
452
457
|
try {
|
|
453
|
-
e(
|
|
454
|
-
} catch (
|
|
455
|
-
n(
|
|
458
|
+
e(o, a);
|
|
459
|
+
} catch (u) {
|
|
460
|
+
n(u), i.unsubscribe();
|
|
456
461
|
}
|
|
457
462
|
},
|
|
458
463
|
error: n,
|
|
@@ -462,13 +467,13 @@ let Oe = class be {
|
|
|
462
467
|
}
|
|
463
468
|
map(e) {
|
|
464
469
|
if (typeof e != "function") throw new TypeError(e + " is not a function");
|
|
465
|
-
let t =
|
|
470
|
+
let t = ie(this);
|
|
466
471
|
return new t((n) => this.subscribe({
|
|
467
472
|
next(a) {
|
|
468
473
|
try {
|
|
469
474
|
a = e(a);
|
|
470
|
-
} catch (
|
|
471
|
-
return n.error(
|
|
475
|
+
} catch (i) {
|
|
476
|
+
return n.error(i);
|
|
472
477
|
}
|
|
473
478
|
n.next(a);
|
|
474
479
|
},
|
|
@@ -482,13 +487,13 @@ let Oe = class be {
|
|
|
482
487
|
}
|
|
483
488
|
filter(e) {
|
|
484
489
|
if (typeof e != "function") throw new TypeError(e + " is not a function");
|
|
485
|
-
let t =
|
|
490
|
+
let t = ie(this);
|
|
486
491
|
return new t((n) => this.subscribe({
|
|
487
492
|
next(a) {
|
|
488
493
|
try {
|
|
489
494
|
if (!e(a)) return;
|
|
490
|
-
} catch (
|
|
491
|
-
return n.error(
|
|
495
|
+
} catch (i) {
|
|
496
|
+
return n.error(i);
|
|
492
497
|
}
|
|
493
498
|
n.next(a);
|
|
494
499
|
},
|
|
@@ -502,25 +507,25 @@ let Oe = class be {
|
|
|
502
507
|
}
|
|
503
508
|
reduce(e) {
|
|
504
509
|
if (typeof e != "function") throw new TypeError(e + " is not a function");
|
|
505
|
-
let t =
|
|
506
|
-
return new t((
|
|
510
|
+
let t = ie(this), n = arguments.length > 1, a = !1, o = arguments[1];
|
|
511
|
+
return new t((u) => this.subscribe({
|
|
507
512
|
next(l) {
|
|
508
|
-
let
|
|
509
|
-
if (a = !0, !
|
|
513
|
+
let c = !a;
|
|
514
|
+
if (a = !0, !c || n)
|
|
510
515
|
try {
|
|
511
|
-
|
|
516
|
+
o = e(o, l);
|
|
512
517
|
} catch (s) {
|
|
513
|
-
return
|
|
518
|
+
return u.error(s);
|
|
514
519
|
}
|
|
515
520
|
else
|
|
516
|
-
|
|
521
|
+
o = l;
|
|
517
522
|
},
|
|
518
523
|
error(l) {
|
|
519
|
-
|
|
524
|
+
u.error(l);
|
|
520
525
|
},
|
|
521
526
|
complete() {
|
|
522
|
-
if (!a && !n) return
|
|
523
|
-
|
|
527
|
+
if (!a && !n) return u.error(new TypeError("Cannot reduce an empty sequence"));
|
|
528
|
+
u.next(o), u.complete();
|
|
524
529
|
}
|
|
525
530
|
}));
|
|
526
531
|
}
|
|
@@ -529,11 +534,11 @@ let Oe = class be {
|
|
|
529
534
|
return await this.forEach((t) => e.push(t)), e;
|
|
530
535
|
}
|
|
531
536
|
concat(...e) {
|
|
532
|
-
let t =
|
|
537
|
+
let t = ie(this);
|
|
533
538
|
return new t((n) => {
|
|
534
|
-
let a,
|
|
535
|
-
function
|
|
536
|
-
a =
|
|
539
|
+
let a, i = 0;
|
|
540
|
+
function o(u) {
|
|
541
|
+
a = u.subscribe({
|
|
537
542
|
next(l) {
|
|
538
543
|
n.next(l);
|
|
539
544
|
},
|
|
@@ -541,84 +546,84 @@ let Oe = class be {
|
|
|
541
546
|
n.error(l);
|
|
542
547
|
},
|
|
543
548
|
complete() {
|
|
544
|
-
|
|
549
|
+
i === e.length ? (a = void 0, n.complete()) : o(t.from(e[i++]));
|
|
545
550
|
}
|
|
546
551
|
});
|
|
547
552
|
}
|
|
548
|
-
return
|
|
553
|
+
return o(this), () => {
|
|
549
554
|
a && (a.unsubscribe(), a = void 0);
|
|
550
555
|
};
|
|
551
556
|
});
|
|
552
557
|
}
|
|
553
558
|
flatMap(e) {
|
|
554
559
|
if (typeof e != "function") throw new TypeError(e + " is not a function");
|
|
555
|
-
let t =
|
|
560
|
+
let t = ie(this);
|
|
556
561
|
return new t((n) => {
|
|
557
|
-
let a = [],
|
|
558
|
-
next(
|
|
562
|
+
let a = [], i = this.subscribe({
|
|
563
|
+
next(u) {
|
|
559
564
|
if (e)
|
|
560
565
|
try {
|
|
561
|
-
|
|
562
|
-
} catch (
|
|
563
|
-
return n.error(
|
|
566
|
+
u = e(u);
|
|
567
|
+
} catch (c) {
|
|
568
|
+
return n.error(c);
|
|
564
569
|
}
|
|
565
|
-
let l = t.from(
|
|
566
|
-
next(
|
|
567
|
-
n.next(
|
|
570
|
+
let l = t.from(u).subscribe({
|
|
571
|
+
next(c) {
|
|
572
|
+
n.next(c);
|
|
568
573
|
},
|
|
569
|
-
error(
|
|
570
|
-
n.error(
|
|
574
|
+
error(c) {
|
|
575
|
+
n.error(c);
|
|
571
576
|
},
|
|
572
577
|
complete() {
|
|
573
|
-
let
|
|
574
|
-
|
|
578
|
+
let c = a.indexOf(l);
|
|
579
|
+
c >= 0 && a.splice(c, 1), o();
|
|
575
580
|
}
|
|
576
581
|
});
|
|
577
582
|
a.push(l);
|
|
578
583
|
},
|
|
579
|
-
error(
|
|
580
|
-
n.error(
|
|
584
|
+
error(u) {
|
|
585
|
+
n.error(u);
|
|
581
586
|
},
|
|
582
587
|
complete() {
|
|
583
|
-
|
|
588
|
+
o();
|
|
584
589
|
}
|
|
585
590
|
});
|
|
586
|
-
function
|
|
587
|
-
|
|
591
|
+
function o() {
|
|
592
|
+
i.closed && a.length === 0 && n.complete();
|
|
588
593
|
}
|
|
589
594
|
return () => {
|
|
590
|
-
a.forEach((
|
|
595
|
+
a.forEach((u) => u.unsubscribe()), i.unsubscribe();
|
|
591
596
|
};
|
|
592
597
|
});
|
|
593
598
|
}
|
|
594
|
-
[
|
|
599
|
+
[yr]() {
|
|
595
600
|
return this;
|
|
596
601
|
}
|
|
597
602
|
static from(e) {
|
|
598
|
-
let t = typeof this == "function" ? this :
|
|
603
|
+
let t = typeof this == "function" ? this : Ae;
|
|
599
604
|
if (e == null) throw new TypeError(e + " is not an object");
|
|
600
|
-
let n =
|
|
605
|
+
let n = Ie(e, yr);
|
|
601
606
|
if (n) {
|
|
602
607
|
let a = n.call(e);
|
|
603
608
|
if (Object(a) !== a) throw new TypeError(a + " is not an object");
|
|
604
|
-
return
|
|
609
|
+
return fn(a) && a.constructor === t ? a : new t((i) => a.subscribe(i));
|
|
605
610
|
}
|
|
606
|
-
if (
|
|
611
|
+
if (yt("iterator") && (n = Ie(e, ln), n))
|
|
607
612
|
return new t((a) => {
|
|
608
|
-
|
|
613
|
+
Ee(() => {
|
|
609
614
|
if (!a.closed) {
|
|
610
|
-
for (let
|
|
611
|
-
if (a.next(
|
|
615
|
+
for (let i of n.call(e))
|
|
616
|
+
if (a.next(i), a.closed) return;
|
|
612
617
|
a.complete();
|
|
613
618
|
}
|
|
614
619
|
});
|
|
615
620
|
});
|
|
616
621
|
if (Array.isArray(e))
|
|
617
622
|
return new t((a) => {
|
|
618
|
-
|
|
623
|
+
Ee(() => {
|
|
619
624
|
if (!a.closed) {
|
|
620
|
-
for (let
|
|
621
|
-
if (a.next(e[
|
|
625
|
+
for (let i = 0; i < e.length; ++i)
|
|
626
|
+
if (a.next(e[i]), a.closed) return;
|
|
622
627
|
a.complete();
|
|
623
628
|
}
|
|
624
629
|
});
|
|
@@ -626,9 +631,9 @@ let Oe = class be {
|
|
|
626
631
|
throw new TypeError(e + " is not observable");
|
|
627
632
|
}
|
|
628
633
|
static of(...e) {
|
|
629
|
-
let t = typeof this == "function" ? this :
|
|
634
|
+
let t = typeof this == "function" ? this : Ae;
|
|
630
635
|
return new t((n) => {
|
|
631
|
-
|
|
636
|
+
Ee(() => {
|
|
632
637
|
if (!n.closed) {
|
|
633
638
|
for (let a = 0; a < e.length; ++a)
|
|
634
639
|
if (n.next(e[a]), n.closed) return;
|
|
@@ -637,444 +642,58 @@ let Oe = class be {
|
|
|
637
642
|
});
|
|
638
643
|
});
|
|
639
644
|
}
|
|
640
|
-
static get [
|
|
645
|
+
static get [dt]() {
|
|
641
646
|
return this;
|
|
642
647
|
}
|
|
643
648
|
};
|
|
644
|
-
|
|
645
|
-
Object.defineProperty(
|
|
649
|
+
De.Observable = Ne;
|
|
650
|
+
Object.defineProperty(Ne, Symbol("extensions"), {
|
|
646
651
|
value: {
|
|
647
|
-
symbol:
|
|
648
|
-
hostReportError:
|
|
652
|
+
symbol: yr,
|
|
653
|
+
hostReportError: Z
|
|
649
654
|
},
|
|
650
655
|
configurable: !0
|
|
651
656
|
});
|
|
652
|
-
var
|
|
653
|
-
const
|
|
654
|
-
var
|
|
655
|
-
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
656
|
-
return !1;
|
|
657
|
-
if (typeof Symbol.iterator == "symbol")
|
|
658
|
-
return !0;
|
|
659
|
-
var e = {}, t = Symbol("test"), n = Object(t);
|
|
660
|
-
if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
|
|
661
|
-
return !1;
|
|
662
|
-
var a = 42;
|
|
663
|
-
e[t] = a;
|
|
664
|
-
for (t in e)
|
|
665
|
-
return !1;
|
|
666
|
-
if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
|
|
667
|
-
return !1;
|
|
668
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
669
|
-
if (o.length !== 1 || o[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
|
|
670
|
-
return !1;
|
|
671
|
-
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
672
|
-
var i = Object.getOwnPropertyDescriptor(e, t);
|
|
673
|
-
if (i.value !== a || i.enumerable !== !0)
|
|
674
|
-
return !1;
|
|
675
|
-
}
|
|
676
|
-
return !0;
|
|
677
|
-
}, dr = typeof Symbol < "u" && Symbol, kt = Gt, zt = function() {
|
|
678
|
-
return typeof dr != "function" || typeof Symbol != "function" || typeof dr("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : kt();
|
|
679
|
-
}, Ne = {
|
|
680
|
-
__proto__: null,
|
|
681
|
-
foo: {}
|
|
682
|
-
}, Ht = Object, Kt = function() {
|
|
683
|
-
return { __proto__: Ne }.foo === Ne.foo && !(Ne instanceof Ht);
|
|
684
|
-
}, Vt = "Function.prototype.bind called on incompatible ", Qt = Object.prototype.toString, jt = Math.max, Jt = "[object Function]", mr = function(e, t) {
|
|
685
|
-
for (var n = [], a = 0; a < e.length; a += 1)
|
|
686
|
-
n[a] = e[a];
|
|
687
|
-
for (var o = 0; o < t.length; o += 1)
|
|
688
|
-
n[o + e.length] = t[o];
|
|
689
|
-
return n;
|
|
690
|
-
}, Xt = function(e, t) {
|
|
691
|
-
for (var n = [], a = t, o = 0; a < e.length; a += 1, o += 1)
|
|
692
|
-
n[o] = e[a];
|
|
693
|
-
return n;
|
|
694
|
-
}, Yt = function(r, e) {
|
|
695
|
-
for (var t = "", n = 0; n < r.length; n += 1)
|
|
696
|
-
t += r[n], n + 1 < r.length && (t += e);
|
|
697
|
-
return t;
|
|
698
|
-
}, Zt = function(e) {
|
|
699
|
-
var t = this;
|
|
700
|
-
if (typeof t != "function" || Qt.apply(t) !== Jt)
|
|
701
|
-
throw new TypeError(Vt + t);
|
|
702
|
-
for (var n = Xt(arguments, 1), a, o = function() {
|
|
703
|
-
if (this instanceof a) {
|
|
704
|
-
var s = t.apply(
|
|
705
|
-
this,
|
|
706
|
-
mr(n, arguments)
|
|
707
|
-
);
|
|
708
|
-
return Object(s) === s ? s : this;
|
|
709
|
-
}
|
|
710
|
-
return t.apply(
|
|
711
|
-
e,
|
|
712
|
-
mr(n, arguments)
|
|
713
|
-
);
|
|
714
|
-
}, i = jt(0, t.length - n.length), f = [], l = 0; l < i; l++)
|
|
715
|
-
f[l] = "$" + l;
|
|
716
|
-
if (a = Function("binder", "return function (" + Yt(f, ",") + "){ return binder.apply(this,arguments); }")(o), t.prototype) {
|
|
717
|
-
var u = function() {
|
|
718
|
-
};
|
|
719
|
-
u.prototype = t.prototype, a.prototype = new u(), u.prototype = null;
|
|
720
|
-
}
|
|
721
|
-
return a;
|
|
722
|
-
}, en = Zt, or = Function.prototype.bind || en, rn = Function.prototype.call, tn = Object.prototype.hasOwnProperty, nn = or, an = nn.call(rn, tn), v, on = Bt, ln = Ft, fn = Lt, un = Wt, Y = Vr, j = pe, cn = qt, Qr = Function, Ue = function(r) {
|
|
723
|
-
try {
|
|
724
|
-
return Qr('"use strict"; return (' + r + ").constructor;")();
|
|
725
|
-
} catch {
|
|
726
|
-
}
|
|
727
|
-
}, q = Object.getOwnPropertyDescriptor;
|
|
728
|
-
if (q)
|
|
729
|
-
try {
|
|
730
|
-
q({}, "");
|
|
731
|
-
} catch {
|
|
732
|
-
q = null;
|
|
733
|
-
}
|
|
734
|
-
var Be = function() {
|
|
735
|
-
throw new j();
|
|
736
|
-
}, sn = q ? function() {
|
|
737
|
-
try {
|
|
738
|
-
return arguments.callee, Be;
|
|
739
|
-
} catch {
|
|
740
|
-
try {
|
|
741
|
-
return q(arguments, "callee").get;
|
|
742
|
-
} catch {
|
|
743
|
-
return Be;
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
}() : Be, K = zt(), pn = Kt(), A = Object.getPrototypeOf || (pn ? function(r) {
|
|
747
|
-
return r.__proto__;
|
|
748
|
-
} : null), Q = {}, yn = typeof Uint8Array > "u" || !A ? v : A(Uint8Array), G = {
|
|
749
|
-
__proto__: null,
|
|
750
|
-
"%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
|
|
751
|
-
"%Array%": Array,
|
|
752
|
-
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
|
|
753
|
-
"%ArrayIteratorPrototype%": K && A ? A([][Symbol.iterator]()) : v,
|
|
754
|
-
"%AsyncFromSyncIteratorPrototype%": v,
|
|
755
|
-
"%AsyncFunction%": Q,
|
|
756
|
-
"%AsyncGenerator%": Q,
|
|
757
|
-
"%AsyncGeneratorFunction%": Q,
|
|
758
|
-
"%AsyncIteratorPrototype%": Q,
|
|
759
|
-
"%Atomics%": typeof Atomics > "u" ? v : Atomics,
|
|
760
|
-
"%BigInt%": typeof BigInt > "u" ? v : BigInt,
|
|
761
|
-
"%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
|
|
762
|
-
"%BigUint64Array%": typeof BigUint64Array > "u" ? v : BigUint64Array,
|
|
763
|
-
"%Boolean%": Boolean,
|
|
764
|
-
"%DataView%": typeof DataView > "u" ? v : DataView,
|
|
765
|
-
"%Date%": Date,
|
|
766
|
-
"%decodeURI%": decodeURI,
|
|
767
|
-
"%decodeURIComponent%": decodeURIComponent,
|
|
768
|
-
"%encodeURI%": encodeURI,
|
|
769
|
-
"%encodeURIComponent%": encodeURIComponent,
|
|
770
|
-
"%Error%": on,
|
|
771
|
-
"%eval%": eval,
|
|
772
|
-
// eslint-disable-line no-eval
|
|
773
|
-
"%EvalError%": ln,
|
|
774
|
-
"%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
|
|
775
|
-
"%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
|
|
776
|
-
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
|
|
777
|
-
"%Function%": Qr,
|
|
778
|
-
"%GeneratorFunction%": Q,
|
|
779
|
-
"%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
|
|
780
|
-
"%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
|
|
781
|
-
"%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
|
|
782
|
-
"%isFinite%": isFinite,
|
|
783
|
-
"%isNaN%": isNaN,
|
|
784
|
-
"%IteratorPrototype%": K && A ? A(A([][Symbol.iterator]())) : v,
|
|
785
|
-
"%JSON%": typeof JSON == "object" ? JSON : v,
|
|
786
|
-
"%Map%": typeof Map > "u" ? v : Map,
|
|
787
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !K || !A ? v : A((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
788
|
-
"%Math%": Math,
|
|
789
|
-
"%Number%": Number,
|
|
790
|
-
"%Object%": Object,
|
|
791
|
-
"%parseFloat%": parseFloat,
|
|
792
|
-
"%parseInt%": parseInt,
|
|
793
|
-
"%Promise%": typeof Promise > "u" ? v : Promise,
|
|
794
|
-
"%Proxy%": typeof Proxy > "u" ? v : Proxy,
|
|
795
|
-
"%RangeError%": fn,
|
|
796
|
-
"%ReferenceError%": un,
|
|
797
|
-
"%Reflect%": typeof Reflect > "u" ? v : Reflect,
|
|
798
|
-
"%RegExp%": RegExp,
|
|
799
|
-
"%Set%": typeof Set > "u" ? v : Set,
|
|
800
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !K || !A ? v : A((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
801
|
-
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
|
|
802
|
-
"%String%": String,
|
|
803
|
-
"%StringIteratorPrototype%": K && A ? A(""[Symbol.iterator]()) : v,
|
|
804
|
-
"%Symbol%": K ? Symbol : v,
|
|
805
|
-
"%SyntaxError%": Y,
|
|
806
|
-
"%ThrowTypeError%": sn,
|
|
807
|
-
"%TypedArray%": yn,
|
|
808
|
-
"%TypeError%": j,
|
|
809
|
-
"%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
|
|
810
|
-
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
|
|
811
|
-
"%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
|
|
812
|
-
"%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
|
|
813
|
-
"%URIError%": cn,
|
|
814
|
-
"%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
|
|
815
|
-
"%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
|
|
816
|
-
"%WeakSet%": typeof WeakSet > "u" ? v : WeakSet
|
|
817
|
-
};
|
|
818
|
-
if (A)
|
|
819
|
-
try {
|
|
820
|
-
null.error;
|
|
821
|
-
} catch (r) {
|
|
822
|
-
var dn = A(A(r));
|
|
823
|
-
G["%Error.prototype%"] = dn;
|
|
824
|
-
}
|
|
825
|
-
var mn = function r(e) {
|
|
826
|
-
var t;
|
|
827
|
-
if (e === "%AsyncFunction%")
|
|
828
|
-
t = Ue("async function () {}");
|
|
829
|
-
else if (e === "%GeneratorFunction%")
|
|
830
|
-
t = Ue("function* () {}");
|
|
831
|
-
else if (e === "%AsyncGeneratorFunction%")
|
|
832
|
-
t = Ue("async function* () {}");
|
|
833
|
-
else if (e === "%AsyncGenerator%") {
|
|
834
|
-
var n = r("%AsyncGeneratorFunction%");
|
|
835
|
-
n && (t = n.prototype);
|
|
836
|
-
} else if (e === "%AsyncIteratorPrototype%") {
|
|
837
|
-
var a = r("%AsyncGenerator%");
|
|
838
|
-
a && A && (t = A(a.prototype));
|
|
839
|
-
}
|
|
840
|
-
return G[e] = t, t;
|
|
841
|
-
}, hr = {
|
|
842
|
-
__proto__: null,
|
|
843
|
-
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
844
|
-
"%ArrayPrototype%": ["Array", "prototype"],
|
|
845
|
-
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
846
|
-
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
847
|
-
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
848
|
-
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
849
|
-
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
850
|
-
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
851
|
-
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
852
|
-
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
853
|
-
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
854
|
-
"%DatePrototype%": ["Date", "prototype"],
|
|
855
|
-
"%ErrorPrototype%": ["Error", "prototype"],
|
|
856
|
-
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
857
|
-
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
858
|
-
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
859
|
-
"%FunctionPrototype%": ["Function", "prototype"],
|
|
860
|
-
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
861
|
-
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
862
|
-
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
863
|
-
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
864
|
-
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
865
|
-
"%JSONParse%": ["JSON", "parse"],
|
|
866
|
-
"%JSONStringify%": ["JSON", "stringify"],
|
|
867
|
-
"%MapPrototype%": ["Map", "prototype"],
|
|
868
|
-
"%NumberPrototype%": ["Number", "prototype"],
|
|
869
|
-
"%ObjectPrototype%": ["Object", "prototype"],
|
|
870
|
-
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
871
|
-
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
872
|
-
"%PromisePrototype%": ["Promise", "prototype"],
|
|
873
|
-
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
874
|
-
"%Promise_all%": ["Promise", "all"],
|
|
875
|
-
"%Promise_reject%": ["Promise", "reject"],
|
|
876
|
-
"%Promise_resolve%": ["Promise", "resolve"],
|
|
877
|
-
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
878
|
-
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
879
|
-
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
880
|
-
"%SetPrototype%": ["Set", "prototype"],
|
|
881
|
-
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
882
|
-
"%StringPrototype%": ["String", "prototype"],
|
|
883
|
-
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
884
|
-
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
885
|
-
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
886
|
-
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
887
|
-
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
888
|
-
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
889
|
-
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
890
|
-
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
891
|
-
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
892
|
-
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
893
|
-
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
894
|
-
}, ye = or, Pe = an, hn = ye.call(Function.call, Array.prototype.concat), vn = ye.call(Function.apply, Array.prototype.splice), vr = ye.call(Function.call, String.prototype.replace), $e = ye.call(Function.call, String.prototype.slice), gn = ye.call(Function.call, RegExp.prototype.exec), wn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, bn = /\\(\\)?/g, Sn = function(e) {
|
|
895
|
-
var t = $e(e, 0, 1), n = $e(e, -1);
|
|
896
|
-
if (t === "%" && n !== "%")
|
|
897
|
-
throw new Y("invalid intrinsic syntax, expected closing `%`");
|
|
898
|
-
if (n === "%" && t !== "%")
|
|
899
|
-
throw new Y("invalid intrinsic syntax, expected opening `%`");
|
|
900
|
-
var a = [];
|
|
901
|
-
return vr(e, wn, function(o, i, f, l) {
|
|
902
|
-
a[a.length] = f ? vr(l, bn, "$1") : i || o;
|
|
903
|
-
}), a;
|
|
904
|
-
}, En = function(e, t) {
|
|
905
|
-
var n = e, a;
|
|
906
|
-
if (Pe(hr, n) && (a = hr[n], n = "%" + a[0] + "%"), Pe(G, n)) {
|
|
907
|
-
var o = G[n];
|
|
908
|
-
if (o === Q && (o = mn(n)), typeof o > "u" && !t)
|
|
909
|
-
throw new j("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
910
|
-
return {
|
|
911
|
-
alias: a,
|
|
912
|
-
name: n,
|
|
913
|
-
value: o
|
|
914
|
-
};
|
|
915
|
-
}
|
|
916
|
-
throw new Y("intrinsic " + e + " does not exist!");
|
|
917
|
-
}, re = function(e, t) {
|
|
918
|
-
if (typeof e != "string" || e.length === 0)
|
|
919
|
-
throw new j("intrinsic name must be a non-empty string");
|
|
920
|
-
if (arguments.length > 1 && typeof t != "boolean")
|
|
921
|
-
throw new j('"allowMissing" argument must be a boolean');
|
|
922
|
-
if (gn(/^%?[^%]*%?$/, e) === null)
|
|
923
|
-
throw new Y("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
924
|
-
var n = Sn(e), a = n.length > 0 ? n[0] : "", o = En("%" + a + "%", t), i = o.name, f = o.value, l = !1, u = o.alias;
|
|
925
|
-
u && (a = u[0], vn(n, hn([0, 1], u)));
|
|
926
|
-
for (var s = 1, p = !0; s < n.length; s += 1) {
|
|
927
|
-
var c = n[s], d = $e(c, 0, 1), y = $e(c, -1);
|
|
928
|
-
if ((d === '"' || d === "'" || d === "`" || y === '"' || y === "'" || y === "`") && d !== y)
|
|
929
|
-
throw new Y("property names with quotes must have matching quotes");
|
|
930
|
-
if ((c === "constructor" || !p) && (l = !0), a += "." + c, i = "%" + a + "%", Pe(G, i))
|
|
931
|
-
f = G[i];
|
|
932
|
-
else if (f != null) {
|
|
933
|
-
if (!(c in f)) {
|
|
934
|
-
if (!t)
|
|
935
|
-
throw new j("base intrinsic for " + e + " exists, but the property is not available.");
|
|
936
|
-
return;
|
|
937
|
-
}
|
|
938
|
-
if (q && s + 1 >= n.length) {
|
|
939
|
-
var m = q(f, c);
|
|
940
|
-
p = !!m, p && "get" in m && !("originalValue" in m.get) ? f = m.get : f = f[c];
|
|
941
|
-
} else
|
|
942
|
-
p = Pe(f, c), f = f[c];
|
|
943
|
-
p && !l && (G[i] = f);
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
return f;
|
|
947
|
-
}, jr = { exports: {} }, Fe, gr;
|
|
948
|
-
function ir() {
|
|
949
|
-
if (gr) return Fe;
|
|
950
|
-
gr = 1;
|
|
951
|
-
var r = re, e = r("%Object.defineProperty%", !0) || !1;
|
|
952
|
-
if (e)
|
|
953
|
-
try {
|
|
954
|
-
e({}, "a", { value: 1 });
|
|
955
|
-
} catch {
|
|
956
|
-
e = !1;
|
|
957
|
-
}
|
|
958
|
-
return Fe = e, Fe;
|
|
959
|
-
}
|
|
960
|
-
var An = re, Se = An("%Object.getOwnPropertyDescriptor%", !0);
|
|
961
|
-
if (Se)
|
|
962
|
-
try {
|
|
963
|
-
Se([], "length");
|
|
964
|
-
} catch {
|
|
965
|
-
Se = null;
|
|
966
|
-
}
|
|
967
|
-
var Jr = Se, wr = ir(), Pn = Vr, V = pe, br = Jr, $n = function(e, t, n) {
|
|
968
|
-
if (!e || typeof e != "object" && typeof e != "function")
|
|
969
|
-
throw new V("`obj` must be an object or a function`");
|
|
970
|
-
if (typeof t != "string" && typeof t != "symbol")
|
|
971
|
-
throw new V("`property` must be a string or a symbol`");
|
|
972
|
-
if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
|
|
973
|
-
throw new V("`nonEnumerable`, if provided, must be a boolean or null");
|
|
974
|
-
if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
|
|
975
|
-
throw new V("`nonWritable`, if provided, must be a boolean or null");
|
|
976
|
-
if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
|
|
977
|
-
throw new V("`nonConfigurable`, if provided, must be a boolean or null");
|
|
978
|
-
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
979
|
-
throw new V("`loose`, if provided, must be a boolean");
|
|
980
|
-
var a = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, i = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, l = !!br && br(e, t);
|
|
981
|
-
if (wr)
|
|
982
|
-
wr(e, t, {
|
|
983
|
-
configurable: i === null && l ? l.configurable : !i,
|
|
984
|
-
enumerable: a === null && l ? l.enumerable : !a,
|
|
985
|
-
value: n,
|
|
986
|
-
writable: o === null && l ? l.writable : !o
|
|
987
|
-
});
|
|
988
|
-
else if (f || !a && !o && !i)
|
|
989
|
-
e[t] = n;
|
|
990
|
-
else
|
|
991
|
-
throw new Pn("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
992
|
-
}, je = ir(), Xr = function() {
|
|
993
|
-
return !!je;
|
|
994
|
-
};
|
|
995
|
-
Xr.hasArrayLengthDefineBug = function() {
|
|
996
|
-
if (!je)
|
|
997
|
-
return null;
|
|
998
|
-
try {
|
|
999
|
-
return je([], "length", { value: 1 }).length !== 1;
|
|
1000
|
-
} catch {
|
|
1001
|
-
return !0;
|
|
1002
|
-
}
|
|
1003
|
-
};
|
|
1004
|
-
var xn = Xr, In = re, Sr = $n, Tn = xn(), Er = Jr, Ar = pe, Cn = In("%Math.floor%"), On = function(e, t) {
|
|
1005
|
-
if (typeof e != "function")
|
|
1006
|
-
throw new Ar("`fn` is not a function");
|
|
1007
|
-
if (typeof t != "number" || t < 0 || t > 4294967295 || Cn(t) !== t)
|
|
1008
|
-
throw new Ar("`length` must be a positive 32-bit integer");
|
|
1009
|
-
var n = arguments.length > 2 && !!arguments[2], a = !0, o = !0;
|
|
1010
|
-
if ("length" in e && Er) {
|
|
1011
|
-
var i = Er(e, "length");
|
|
1012
|
-
i && !i.configurable && (a = !1), i && !i.writable && (o = !1);
|
|
1013
|
-
}
|
|
1014
|
-
return (a || o || !n) && (Tn ? Sr(
|
|
1015
|
-
/** @type {Parameters<define>[0]} */
|
|
1016
|
-
e,
|
|
1017
|
-
"length",
|
|
1018
|
-
t,
|
|
1019
|
-
!0,
|
|
1020
|
-
!0
|
|
1021
|
-
) : Sr(
|
|
1022
|
-
/** @type {Parameters<define>[0]} */
|
|
1023
|
-
e,
|
|
1024
|
-
"length",
|
|
1025
|
-
t
|
|
1026
|
-
)), e;
|
|
1027
|
-
};
|
|
1028
|
-
(function(r) {
|
|
1029
|
-
var e = or, t = re, n = On, a = pe, o = t("%Function.prototype.apply%"), i = t("%Function.prototype.call%"), f = t("%Reflect.apply%", !0) || e.call(i, o), l = ir(), u = t("%Math.max%");
|
|
1030
|
-
r.exports = function(c) {
|
|
1031
|
-
if (typeof c != "function")
|
|
1032
|
-
throw new a("a function is required");
|
|
1033
|
-
var d = f(e, i, arguments);
|
|
1034
|
-
return n(
|
|
1035
|
-
d,
|
|
1036
|
-
1 + u(0, c.length - (arguments.length - 1)),
|
|
1037
|
-
!0
|
|
1038
|
-
);
|
|
1039
|
-
};
|
|
1040
|
-
var s = function() {
|
|
1041
|
-
return f(e, o, arguments);
|
|
1042
|
-
};
|
|
1043
|
-
l ? l(r.exports, "apply", { value: s }) : r.exports.apply = s;
|
|
1044
|
-
})(jr);
|
|
1045
|
-
var Rn = jr.exports, Yr = re, Zr = Rn, Dn = Zr(Yr("String.prototype.indexOf")), _n = function(e, t) {
|
|
1046
|
-
var n = Yr(e, !!t);
|
|
1047
|
-
return typeof n == "function" && Dn(e, ".prototype.") > -1 ? Zr(n) : n;
|
|
1048
|
-
}, Mn = gt.inspect, lr = typeof Map == "function" && Map.prototype, Le = Object.getOwnPropertyDescriptor && lr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, xe = lr && Le && typeof Le.get == "function" ? Le.get : null, Pr = lr && Map.prototype.forEach, fr = typeof Set == "function" && Set.prototype, We = Object.getOwnPropertyDescriptor && fr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ie = fr && We && typeof We.get == "function" ? We.get : null, $r = fr && Set.prototype.forEach, Nn = typeof WeakMap == "function" && WeakMap.prototype, fe = Nn ? WeakMap.prototype.has : null, Un = typeof WeakSet == "function" && WeakSet.prototype, ue = Un ? WeakSet.prototype.has : null, Bn = typeof WeakRef == "function" && WeakRef.prototype, xr = Bn ? WeakRef.prototype.deref : null, Fn = Boolean.prototype.valueOf, Ln = Object.prototype.toString, Wn = Function.prototype.toString, qn = String.prototype.match, ur = String.prototype.slice, U = String.prototype.replace, Gn = String.prototype.toUpperCase, Ir = String.prototype.toLowerCase, et = RegExp.prototype.test, Tr = Array.prototype.concat, O = Array.prototype.join, kn = Array.prototype.slice, Cr = Math.floor, Je = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, qe = Object.getOwnPropertySymbols, Xe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Z = typeof Symbol == "function" && typeof Symbol.iterator == "object", $ = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Z || !0) ? Symbol.toStringTag : null, rt = Object.prototype.propertyIsEnumerable, Or = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
|
|
657
|
+
var sn = De.Observable;
|
|
658
|
+
const vt = /* @__PURE__ */ ft(sn);
|
|
659
|
+
var te = TypeError, pn = Vt.inspect, Pr = typeof Map == "function" && Map.prototype, ke = Object.getOwnPropertyDescriptor && Pr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Re = Pr && ke && typeof ke.get == "function" ? ke.get : null, Dr = Pr && Map.prototype.forEach, xr = typeof Set == "function" && Set.prototype, ze = Object.getOwnPropertyDescriptor && xr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, _e = xr && ze && typeof ze.get == "function" ? ze.get : null, Nr = xr && Set.prototype.forEach, yn = typeof WeakMap == "function" && WeakMap.prototype, ue = yn ? WeakMap.prototype.has : null, dn = typeof WeakSet == "function" && WeakSet.prototype, ce = dn ? WeakSet.prototype.has : null, hn = typeof WeakRef == "function" && WeakRef.prototype, Lr = hn ? WeakRef.prototype.deref : null, mn = Boolean.prototype.valueOf, vn = Object.prototype.toString, gn = Function.prototype.toString, wn = String.prototype.match, Or = String.prototype.slice, L = String.prototype.replace, Sn = String.prototype.toUpperCase, Ur = String.prototype.toLowerCase, gt = RegExp.prototype.test, Br = Array.prototype.concat, R = Array.prototype.join, bn = Array.prototype.slice, qr = Math.floor, hr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ke = Object.getOwnPropertySymbols, mr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ee = typeof Symbol == "function" && typeof Symbol.iterator == "object", se = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ee || !0) ? Symbol.toStringTag : null, wt = Object.prototype.propertyIsEnumerable, Wr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
|
|
1049
660
|
return r.__proto__;
|
|
1050
661
|
} : null);
|
|
1051
|
-
function
|
|
1052
|
-
if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 ||
|
|
662
|
+
function Fr(r, e) {
|
|
663
|
+
if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || gt.call(/e/, e))
|
|
1053
664
|
return e;
|
|
1054
665
|
var t = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
1055
666
|
if (typeof r == "number") {
|
|
1056
|
-
var n = r < 0 ? -
|
|
667
|
+
var n = r < 0 ? -qr(-r) : qr(r);
|
|
1057
668
|
if (n !== r) {
|
|
1058
|
-
var a = String(n),
|
|
1059
|
-
return
|
|
669
|
+
var a = String(n), i = Or.call(e, a.length + 1);
|
|
670
|
+
return L.call(a, t, "$&_") + "." + L.call(L.call(i, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
1060
671
|
}
|
|
1061
672
|
}
|
|
1062
|
-
return
|
|
673
|
+
return L.call(e, t, "$&_");
|
|
1063
674
|
}
|
|
1064
|
-
var
|
|
1065
|
-
|
|
1066
|
-
|
|
675
|
+
var vr = pn, Gr = vr.custom, Hr = Et(Gr) ? Gr : null, St = {
|
|
676
|
+
__proto__: null,
|
|
677
|
+
double: '"',
|
|
678
|
+
single: "'"
|
|
679
|
+
}, En = {
|
|
680
|
+
__proto__: null,
|
|
681
|
+
double: /(["\\])/g,
|
|
682
|
+
single: /(['\\])/g
|
|
683
|
+
}, Le = function r(e, t, n, a) {
|
|
684
|
+
var i = t || {};
|
|
685
|
+
if (T(i, "quoteStyle") && !T(St, i.quoteStyle))
|
|
1067
686
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
1068
|
-
if (
|
|
687
|
+
if (T(i, "maxStringLength") && (typeof i.maxStringLength == "number" ? i.maxStringLength < 0 && i.maxStringLength !== 1 / 0 : i.maxStringLength !== null))
|
|
1069
688
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
1070
|
-
var
|
|
1071
|
-
if (typeof
|
|
689
|
+
var o = T(i, "customInspect") ? i.customInspect : !0;
|
|
690
|
+
if (typeof o != "boolean" && o !== "symbol")
|
|
1072
691
|
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
1073
|
-
if (
|
|
692
|
+
if (T(i, "indent") && i.indent !== null && i.indent !== " " && !(parseInt(i.indent, 10) === i.indent && i.indent > 0))
|
|
1074
693
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
1075
|
-
if (
|
|
694
|
+
if (T(i, "numericSeparator") && typeof i.numericSeparator != "boolean")
|
|
1076
695
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
1077
|
-
var
|
|
696
|
+
var u = i.numericSeparator;
|
|
1078
697
|
if (typeof e > "u")
|
|
1079
698
|
return "undefined";
|
|
1080
699
|
if (e === null)
|
|
@@ -1082,165 +701,168 @@ var Ye = Mn, Dr = Ye.custom, _r = nt(Dr) ? Dr : null, zn = function r(e, t, n, a
|
|
|
1082
701
|
if (typeof e == "boolean")
|
|
1083
702
|
return e ? "true" : "false";
|
|
1084
703
|
if (typeof e == "string")
|
|
1085
|
-
return
|
|
704
|
+
return $t(e, i);
|
|
1086
705
|
if (typeof e == "number") {
|
|
1087
706
|
if (e === 0)
|
|
1088
707
|
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
1089
708
|
var l = String(e);
|
|
1090
|
-
return
|
|
709
|
+
return u ? Fr(e, l) : l;
|
|
1091
710
|
}
|
|
1092
711
|
if (typeof e == "bigint") {
|
|
1093
|
-
var
|
|
1094
|
-
return
|
|
712
|
+
var c = String(e) + "n";
|
|
713
|
+
return u ? Fr(e, c) : c;
|
|
1095
714
|
}
|
|
1096
|
-
var s = typeof
|
|
715
|
+
var s = typeof i.depth > "u" ? 5 : i.depth;
|
|
1097
716
|
if (typeof n > "u" && (n = 0), n >= s && s > 0 && typeof e == "object")
|
|
1098
|
-
return
|
|
1099
|
-
var p =
|
|
717
|
+
return gr(e) ? "[Array]" : "[Object]";
|
|
718
|
+
var p = Wn(i, n);
|
|
1100
719
|
if (typeof a > "u")
|
|
1101
720
|
a = [];
|
|
1102
|
-
else if (
|
|
721
|
+
else if (At(a, e) >= 0)
|
|
1103
722
|
return "[Circular]";
|
|
1104
|
-
function
|
|
1105
|
-
if (
|
|
723
|
+
function f(x, N, C) {
|
|
724
|
+
if (N && (a = bn.call(a), a.push(N)), C) {
|
|
1106
725
|
var ae = {
|
|
1107
|
-
depth:
|
|
726
|
+
depth: i.depth
|
|
1108
727
|
};
|
|
1109
|
-
return
|
|
728
|
+
return T(i, "quoteStyle") && (ae.quoteStyle = i.quoteStyle), r(x, ae, n + 1, a);
|
|
1110
729
|
}
|
|
1111
|
-
return r(
|
|
730
|
+
return r(x, i, n + 1, a);
|
|
1112
731
|
}
|
|
1113
|
-
if (typeof e == "function" && !
|
|
1114
|
-
var d =
|
|
1115
|
-
return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (y.length > 0 ? " { " +
|
|
732
|
+
if (typeof e == "function" && !jr(e)) {
|
|
733
|
+
var d = Cn(e), y = Se(e, f);
|
|
734
|
+
return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (y.length > 0 ? " { " + R.call(y, ", ") + " }" : "");
|
|
1116
735
|
}
|
|
1117
|
-
if (
|
|
1118
|
-
var
|
|
1119
|
-
return typeof e == "object" && !
|
|
736
|
+
if (Et(e)) {
|
|
737
|
+
var h = ee ? L.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : mr.call(e);
|
|
738
|
+
return typeof e == "object" && !ee ? oe(h) : h;
|
|
1120
739
|
}
|
|
1121
|
-
if (
|
|
1122
|
-
for (var g = "<" +
|
|
1123
|
-
g += " " +
|
|
1124
|
-
return g += ">", e.childNodes && e.childNodes.length && (g += "..."), g += "</" +
|
|
740
|
+
if (Un(e)) {
|
|
741
|
+
for (var g = "<" + Ur.call(String(e.nodeName)), b = e.attributes || [], A = 0; A < b.length; A++)
|
|
742
|
+
g += " " + b[A].name + "=" + bt(An(b[A].value), "double", i);
|
|
743
|
+
return g += ">", e.childNodes && e.childNodes.length && (g += "..."), g += "</" + Ur.call(String(e.nodeName)) + ">", g;
|
|
1125
744
|
}
|
|
1126
|
-
if (
|
|
745
|
+
if (gr(e)) {
|
|
1127
746
|
if (e.length === 0)
|
|
1128
747
|
return "[]";
|
|
1129
|
-
var
|
|
1130
|
-
return p && !
|
|
748
|
+
var m = Se(e, f);
|
|
749
|
+
return p && !qn(m) ? "[" + wr(m, p) + "]" : "[ " + R.call(m, ", ") + " ]";
|
|
1131
750
|
}
|
|
1132
|
-
if (
|
|
1133
|
-
var
|
|
1134
|
-
return !("cause" in Error.prototype) && "cause" in e && !
|
|
751
|
+
if (Pn(e)) {
|
|
752
|
+
var M = Se(e, f);
|
|
753
|
+
return !("cause" in Error.prototype) && "cause" in e && !wt.call(e, "cause") ? "{ [" + String(e) + "] " + R.call(Br.call("[cause]: " + f(e.cause), M), ", ") + " }" : M.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + R.call(M, ", ") + " }";
|
|
1135
754
|
}
|
|
1136
|
-
if (typeof e == "object" &&
|
|
1137
|
-
if (
|
|
1138
|
-
return
|
|
1139
|
-
if (
|
|
755
|
+
if (typeof e == "object" && o) {
|
|
756
|
+
if (Hr && typeof e[Hr] == "function" && vr)
|
|
757
|
+
return vr(e, { depth: s - n });
|
|
758
|
+
if (o !== "symbol" && typeof e.inspect == "function")
|
|
1140
759
|
return e.inspect();
|
|
1141
760
|
}
|
|
1142
|
-
if (
|
|
1143
|
-
var
|
|
1144
|
-
return
|
|
1145
|
-
|
|
1146
|
-
}),
|
|
761
|
+
if (Tn(e)) {
|
|
762
|
+
var B = [];
|
|
763
|
+
return Dr && Dr.call(e, function(x, N) {
|
|
764
|
+
B.push(f(N, e, !0) + " => " + f(x, e));
|
|
765
|
+
}), kr("Map", Re.call(e), B, p);
|
|
1147
766
|
}
|
|
1148
|
-
if (
|
|
767
|
+
if (Nn(e)) {
|
|
1149
768
|
var ne = [];
|
|
1150
|
-
return
|
|
1151
|
-
ne.push(
|
|
1152
|
-
}),
|
|
1153
|
-
}
|
|
1154
|
-
if (
|
|
1155
|
-
return
|
|
1156
|
-
if (
|
|
1157
|
-
return
|
|
1158
|
-
if (
|
|
1159
|
-
return
|
|
1160
|
-
if (
|
|
1161
|
-
return
|
|
1162
|
-
if (
|
|
1163
|
-
return
|
|
1164
|
-
if (
|
|
1165
|
-
return
|
|
1166
|
-
if (
|
|
1167
|
-
return
|
|
769
|
+
return Nr && Nr.call(e, function(x) {
|
|
770
|
+
ne.push(f(x, e));
|
|
771
|
+
}), kr("Set", _e.call(e), ne, p);
|
|
772
|
+
}
|
|
773
|
+
if (Mn(e))
|
|
774
|
+
return Ve("WeakMap");
|
|
775
|
+
if (Ln(e))
|
|
776
|
+
return Ve("WeakSet");
|
|
777
|
+
if (Dn(e))
|
|
778
|
+
return Ve("WeakRef");
|
|
779
|
+
if (On(e))
|
|
780
|
+
return oe(f(Number(e)));
|
|
781
|
+
if (Rn(e))
|
|
782
|
+
return oe(f(hr.call(e)));
|
|
783
|
+
if (In(e))
|
|
784
|
+
return oe(mn.call(e));
|
|
785
|
+
if (xn(e))
|
|
786
|
+
return oe(f(String(e)));
|
|
1168
787
|
if (typeof window < "u" && e === window)
|
|
1169
788
|
return "{ [object Window] }";
|
|
1170
|
-
if (typeof globalThis < "u" && e === globalThis || typeof
|
|
789
|
+
if (typeof globalThis < "u" && e === globalThis || typeof Tr < "u" && e === Tr)
|
|
1171
790
|
return "{ [object globalThis] }";
|
|
1172
|
-
if (
|
|
1173
|
-
var
|
|
1174
|
-
return
|
|
791
|
+
if (!$n(e) && !jr(e)) {
|
|
792
|
+
var k = Se(e, f), ge = Wr ? Wr(e) === Object.prototype : e instanceof Object || e.constructor === Object, q = e instanceof Object ? "" : "null prototype", D = !ge && se && Object(e) === e && se in e ? Or.call(U(e), 8, -1) : q ? "Object" : "", we = ge || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", z = we + (D || q ? "[" + R.call(Br.call([], D || [], q || []), ": ") + "] " : "");
|
|
793
|
+
return k.length === 0 ? z + "{}" : p ? z + "{" + wr(k, p) + "}" : z + "{ " + R.call(k, ", ") + " }";
|
|
1175
794
|
}
|
|
1176
795
|
return String(e);
|
|
1177
796
|
};
|
|
1178
|
-
function
|
|
1179
|
-
var n =
|
|
1180
|
-
return
|
|
797
|
+
function bt(r, e, t) {
|
|
798
|
+
var n = t.quoteStyle || e, a = St[n];
|
|
799
|
+
return a + r + a;
|
|
1181
800
|
}
|
|
1182
|
-
function
|
|
1183
|
-
return
|
|
801
|
+
function An(r) {
|
|
802
|
+
return L.call(String(r), /"/g, """);
|
|
1184
803
|
}
|
|
1185
|
-
function
|
|
1186
|
-
return
|
|
804
|
+
function j(r) {
|
|
805
|
+
return !se || !(typeof r == "object" && (se in r || typeof r[se] < "u"));
|
|
1187
806
|
}
|
|
1188
|
-
function
|
|
1189
|
-
return
|
|
807
|
+
function gr(r) {
|
|
808
|
+
return U(r) === "[object Array]" && j(r);
|
|
1190
809
|
}
|
|
1191
|
-
function
|
|
1192
|
-
return
|
|
810
|
+
function $n(r) {
|
|
811
|
+
return U(r) === "[object Date]" && j(r);
|
|
1193
812
|
}
|
|
1194
|
-
function
|
|
1195
|
-
return
|
|
813
|
+
function jr(r) {
|
|
814
|
+
return U(r) === "[object RegExp]" && j(r);
|
|
1196
815
|
}
|
|
1197
|
-
function
|
|
1198
|
-
return
|
|
816
|
+
function Pn(r) {
|
|
817
|
+
return U(r) === "[object Error]" && j(r);
|
|
1199
818
|
}
|
|
1200
|
-
function
|
|
1201
|
-
return
|
|
819
|
+
function xn(r) {
|
|
820
|
+
return U(r) === "[object String]" && j(r);
|
|
1202
821
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return
|
|
822
|
+
function On(r) {
|
|
823
|
+
return U(r) === "[object Number]" && j(r);
|
|
1205
824
|
}
|
|
1206
|
-
function
|
|
1207
|
-
|
|
825
|
+
function In(r) {
|
|
826
|
+
return U(r) === "[object Boolean]" && j(r);
|
|
827
|
+
}
|
|
828
|
+
function Et(r) {
|
|
829
|
+
if (ee)
|
|
1208
830
|
return r && typeof r == "object" && r instanceof Symbol;
|
|
1209
831
|
if (typeof r == "symbol")
|
|
1210
832
|
return !0;
|
|
1211
|
-
if (!r || typeof r != "object" || !
|
|
833
|
+
if (!r || typeof r != "object" || !mr)
|
|
1212
834
|
return !1;
|
|
1213
835
|
try {
|
|
1214
|
-
return
|
|
836
|
+
return mr.call(r), !0;
|
|
1215
837
|
} catch {
|
|
1216
838
|
}
|
|
1217
839
|
return !1;
|
|
1218
840
|
}
|
|
1219
|
-
function
|
|
1220
|
-
if (!r || typeof r != "object" || !
|
|
841
|
+
function Rn(r) {
|
|
842
|
+
if (!r || typeof r != "object" || !hr)
|
|
1221
843
|
return !1;
|
|
1222
844
|
try {
|
|
1223
|
-
return
|
|
845
|
+
return hr.call(r), !0;
|
|
1224
846
|
} catch {
|
|
1225
847
|
}
|
|
1226
848
|
return !1;
|
|
1227
849
|
}
|
|
1228
|
-
var
|
|
850
|
+
var _n = Object.prototype.hasOwnProperty || function(r) {
|
|
1229
851
|
return r in this;
|
|
1230
852
|
};
|
|
1231
|
-
function
|
|
1232
|
-
return
|
|
853
|
+
function T(r, e) {
|
|
854
|
+
return _n.call(r, e);
|
|
1233
855
|
}
|
|
1234
|
-
function
|
|
1235
|
-
return
|
|
856
|
+
function U(r) {
|
|
857
|
+
return vn.call(r);
|
|
1236
858
|
}
|
|
1237
|
-
function
|
|
859
|
+
function Cn(r) {
|
|
1238
860
|
if (r.name)
|
|
1239
861
|
return r.name;
|
|
1240
|
-
var e =
|
|
862
|
+
var e = wn.call(gn.call(r), /^function\s*([\w$]+)/);
|
|
1241
863
|
return e ? e[1] : null;
|
|
1242
864
|
}
|
|
1243
|
-
function
|
|
865
|
+
function At(r, e) {
|
|
1244
866
|
if (r.indexOf)
|
|
1245
867
|
return r.indexOf(e);
|
|
1246
868
|
for (var t = 0, n = r.length; t < n; t++)
|
|
@@ -1248,13 +870,13 @@ function at(r, e) {
|
|
|
1248
870
|
return t;
|
|
1249
871
|
return -1;
|
|
1250
872
|
}
|
|
1251
|
-
function
|
|
1252
|
-
if (!
|
|
873
|
+
function Tn(r) {
|
|
874
|
+
if (!Re || !r || typeof r != "object")
|
|
1253
875
|
return !1;
|
|
1254
876
|
try {
|
|
1255
|
-
|
|
877
|
+
Re.call(r);
|
|
1256
878
|
try {
|
|
1257
|
-
|
|
879
|
+
_e.call(r);
|
|
1258
880
|
} catch {
|
|
1259
881
|
return !0;
|
|
1260
882
|
}
|
|
@@ -1263,13 +885,13 @@ function ea(r) {
|
|
|
1263
885
|
}
|
|
1264
886
|
return !1;
|
|
1265
887
|
}
|
|
1266
|
-
function
|
|
1267
|
-
if (!
|
|
888
|
+
function Mn(r) {
|
|
889
|
+
if (!ue || !r || typeof r != "object")
|
|
1268
890
|
return !1;
|
|
1269
891
|
try {
|
|
1270
|
-
|
|
892
|
+
ue.call(r, ue);
|
|
1271
893
|
try {
|
|
1272
|
-
|
|
894
|
+
ce.call(r, ce);
|
|
1273
895
|
} catch {
|
|
1274
896
|
return !0;
|
|
1275
897
|
}
|
|
@@ -1278,22 +900,22 @@ function ra(r) {
|
|
|
1278
900
|
}
|
|
1279
901
|
return !1;
|
|
1280
902
|
}
|
|
1281
|
-
function
|
|
1282
|
-
if (!
|
|
903
|
+
function Dn(r) {
|
|
904
|
+
if (!Lr || !r || typeof r != "object")
|
|
1283
905
|
return !1;
|
|
1284
906
|
try {
|
|
1285
|
-
return
|
|
907
|
+
return Lr.call(r), !0;
|
|
1286
908
|
} catch {
|
|
1287
909
|
}
|
|
1288
910
|
return !1;
|
|
1289
911
|
}
|
|
1290
|
-
function
|
|
1291
|
-
if (!
|
|
912
|
+
function Nn(r) {
|
|
913
|
+
if (!_e || !r || typeof r != "object")
|
|
1292
914
|
return !1;
|
|
1293
915
|
try {
|
|
1294
|
-
|
|
916
|
+
_e.call(r);
|
|
1295
917
|
try {
|
|
1296
|
-
|
|
918
|
+
Re.call(r);
|
|
1297
919
|
} catch {
|
|
1298
920
|
return !0;
|
|
1299
921
|
}
|
|
@@ -1302,13 +924,13 @@ function na(r) {
|
|
|
1302
924
|
}
|
|
1303
925
|
return !1;
|
|
1304
926
|
}
|
|
1305
|
-
function
|
|
1306
|
-
if (!
|
|
927
|
+
function Ln(r) {
|
|
928
|
+
if (!ce || !r || typeof r != "object")
|
|
1307
929
|
return !1;
|
|
1308
930
|
try {
|
|
1309
|
-
|
|
931
|
+
ce.call(r, ce);
|
|
1310
932
|
try {
|
|
1311
|
-
|
|
933
|
+
ue.call(r, ue);
|
|
1312
934
|
} catch {
|
|
1313
935
|
return !0;
|
|
1314
936
|
}
|
|
@@ -1317,18 +939,20 @@ function aa(r) {
|
|
|
1317
939
|
}
|
|
1318
940
|
return !1;
|
|
1319
941
|
}
|
|
1320
|
-
function
|
|
942
|
+
function Un(r) {
|
|
1321
943
|
return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
|
|
1322
944
|
}
|
|
1323
|
-
function
|
|
945
|
+
function $t(r, e) {
|
|
1324
946
|
if (r.length > e.maxStringLength) {
|
|
1325
947
|
var t = r.length - e.maxStringLength, n = "... " + t + " more character" + (t > 1 ? "s" : "");
|
|
1326
|
-
return
|
|
948
|
+
return $t(Or.call(r, 0, e.maxStringLength), e) + n;
|
|
1327
949
|
}
|
|
1328
|
-
var a =
|
|
1329
|
-
|
|
950
|
+
var a = En[e.quoteStyle || "single"];
|
|
951
|
+
a.lastIndex = 0;
|
|
952
|
+
var i = L.call(L.call(r, a, "\\$1"), /[\x00-\x1f]/g, Bn);
|
|
953
|
+
return bt(i, "single", e);
|
|
1330
954
|
}
|
|
1331
|
-
function
|
|
955
|
+
function Bn(r) {
|
|
1332
956
|
var e = r.charCodeAt(0), t = {
|
|
1333
957
|
8: "b",
|
|
1334
958
|
9: "t",
|
|
@@ -1336,179 +960,702 @@ function ia(r) {
|
|
|
1336
960
|
12: "f",
|
|
1337
961
|
13: "r"
|
|
1338
962
|
}[e];
|
|
1339
|
-
return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") +
|
|
963
|
+
return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + Sn.call(e.toString(16));
|
|
1340
964
|
}
|
|
1341
|
-
function
|
|
965
|
+
function oe(r) {
|
|
1342
966
|
return "Object(" + r + ")";
|
|
1343
967
|
}
|
|
1344
|
-
function
|
|
968
|
+
function Ve(r) {
|
|
1345
969
|
return r + " { ? }";
|
|
1346
970
|
}
|
|
1347
|
-
function
|
|
1348
|
-
var a = n ?
|
|
971
|
+
function kr(r, e, t, n) {
|
|
972
|
+
var a = n ? wr(t, n) : R.call(t, ", ");
|
|
1349
973
|
return r + " (" + e + ") {" + a + "}";
|
|
1350
974
|
}
|
|
1351
|
-
function
|
|
975
|
+
function qn(r) {
|
|
1352
976
|
for (var e = 0; e < r.length; e++)
|
|
1353
|
-
if (
|
|
977
|
+
if (At(r[e], `
|
|
1354
978
|
`) >= 0)
|
|
1355
979
|
return !1;
|
|
1356
980
|
return !0;
|
|
1357
981
|
}
|
|
1358
|
-
function
|
|
982
|
+
function Wn(r, e) {
|
|
1359
983
|
var t;
|
|
1360
984
|
if (r.indent === " ")
|
|
1361
985
|
t = " ";
|
|
1362
986
|
else if (typeof r.indent == "number" && r.indent > 0)
|
|
1363
|
-
t =
|
|
987
|
+
t = R.call(Array(r.indent + 1), " ");
|
|
1364
988
|
else
|
|
1365
989
|
return null;
|
|
1366
990
|
return {
|
|
1367
991
|
base: t,
|
|
1368
|
-
prev:
|
|
992
|
+
prev: R.call(Array(e + 1), t)
|
|
1369
993
|
};
|
|
1370
994
|
}
|
|
1371
|
-
function
|
|
995
|
+
function wr(r, e) {
|
|
1372
996
|
if (r.length === 0)
|
|
1373
997
|
return "";
|
|
1374
998
|
var t = `
|
|
1375
999
|
` + e.prev + e.base;
|
|
1376
|
-
return t +
|
|
1000
|
+
return t + R.call(r, "," + t) + `
|
|
1377
1001
|
` + e.prev;
|
|
1378
1002
|
}
|
|
1379
|
-
function
|
|
1380
|
-
var t =
|
|
1003
|
+
function Se(r, e) {
|
|
1004
|
+
var t = gr(r), n = [];
|
|
1381
1005
|
if (t) {
|
|
1382
1006
|
n.length = r.length;
|
|
1383
1007
|
for (var a = 0; a < r.length; a++)
|
|
1384
|
-
n[a] =
|
|
1008
|
+
n[a] = T(r, a) ? e(r[a], r) : "";
|
|
1385
1009
|
}
|
|
1386
|
-
var
|
|
1387
|
-
if (
|
|
1388
|
-
|
|
1389
|
-
for (var
|
|
1390
|
-
|
|
1010
|
+
var i = typeof Ke == "function" ? Ke(r) : [], o;
|
|
1011
|
+
if (ee) {
|
|
1012
|
+
o = {};
|
|
1013
|
+
for (var u = 0; u < i.length; u++)
|
|
1014
|
+
o["$" + i[u]] = i[u];
|
|
1391
1015
|
}
|
|
1392
1016
|
for (var l in r)
|
|
1393
|
-
|
|
1394
|
-
if (typeof
|
|
1395
|
-
for (var
|
|
1396
|
-
|
|
1017
|
+
T(r, l) && (t && String(Number(l)) === l && l < r.length || ee && o["$" + l] instanceof Symbol || (gt.call(/[^\w$]/, l) ? n.push(e(l, r) + ": " + e(r[l], r)) : n.push(l + ": " + e(r[l], r))));
|
|
1018
|
+
if (typeof Ke == "function")
|
|
1019
|
+
for (var c = 0; c < i.length; c++)
|
|
1020
|
+
wt.call(r, i[c]) && n.push("[" + e(i[c]) + "]: " + e(r[i[c]], r));
|
|
1397
1021
|
return n;
|
|
1398
1022
|
}
|
|
1399
|
-
var
|
|
1400
|
-
for (var
|
|
1401
|
-
if (
|
|
1402
|
-
return
|
|
1403
|
-
r.next, r.next =
|
|
1404
|
-
},
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1023
|
+
var Fn = Le, Gn = te, Ue = function(r, e, t) {
|
|
1024
|
+
for (var n = r, a; (a = n.next) != null; n = a)
|
|
1025
|
+
if (a.key === e)
|
|
1026
|
+
return n.next = a.next, t || (a.next = /** @type {NonNullable<typeof list.next>} */
|
|
1027
|
+
r.next, r.next = a), a;
|
|
1028
|
+
}, Hn = function(r, e) {
|
|
1029
|
+
if (r) {
|
|
1030
|
+
var t = Ue(r, e);
|
|
1031
|
+
return t && t.value;
|
|
1032
|
+
}
|
|
1033
|
+
}, jn = function(r, e, t) {
|
|
1034
|
+
var n = Ue(r, e);
|
|
1035
|
+
n ? n.value = t : r.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
1410
1036
|
{
|
|
1411
1037
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
1412
1038
|
key: e,
|
|
1413
1039
|
next: r.next,
|
|
1414
1040
|
value: t
|
|
1415
1041
|
};
|
|
1416
|
-
},
|
|
1417
|
-
return !!
|
|
1418
|
-
},
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1042
|
+
}, kn = function(r, e) {
|
|
1043
|
+
return r ? !!Ue(r, e) : !1;
|
|
1044
|
+
}, zn = function(r, e) {
|
|
1045
|
+
if (r)
|
|
1046
|
+
return Ue(r, e, !0);
|
|
1047
|
+
}, Kn = function() {
|
|
1048
|
+
var e, t = {
|
|
1049
|
+
assert: function(n) {
|
|
1050
|
+
if (!t.has(n))
|
|
1051
|
+
throw new Gn("Side channel does not contain " + Fn(n));
|
|
1423
1052
|
},
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
return sa(e, o);
|
|
1428
|
-
} else if (ge) {
|
|
1429
|
-
if (t)
|
|
1430
|
-
return da(t, o);
|
|
1431
|
-
} else if (n)
|
|
1432
|
-
return va(n, o);
|
|
1053
|
+
delete: function(n) {
|
|
1054
|
+
var a = e && e.next, i = zn(e, n);
|
|
1055
|
+
return i && a && a === i && (e = void 0), !!i;
|
|
1433
1056
|
},
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1057
|
+
get: function(n) {
|
|
1058
|
+
return Hn(e, n);
|
|
1059
|
+
},
|
|
1060
|
+
has: function(n) {
|
|
1061
|
+
return kn(e, n);
|
|
1062
|
+
},
|
|
1063
|
+
set: function(n, a) {
|
|
1064
|
+
e || (e = {
|
|
1065
|
+
next: void 0
|
|
1066
|
+
}), jn(
|
|
1067
|
+
/** @type {NonNullable<typeof $o>} */
|
|
1068
|
+
e,
|
|
1069
|
+
n,
|
|
1070
|
+
a
|
|
1071
|
+
);
|
|
1072
|
+
}
|
|
1073
|
+
};
|
|
1074
|
+
return t;
|
|
1075
|
+
}, Pt = Object, Vn = Error, Qn = EvalError, Jn = RangeError, Xn = ReferenceError, Yn = SyntaxError, Zn = URIError, ea = Math.abs, ra = Math.floor, ta = Math.max, na = Math.min, aa = Math.pow, ia = Math.round, oa = Number.isNaN || function(e) {
|
|
1076
|
+
return e !== e;
|
|
1077
|
+
}, la = oa, fa = function(e) {
|
|
1078
|
+
return la(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
1079
|
+
}, ua = Object.getOwnPropertyDescriptor, $e = ua;
|
|
1080
|
+
if ($e)
|
|
1081
|
+
try {
|
|
1082
|
+
$e([], "length");
|
|
1083
|
+
} catch {
|
|
1084
|
+
$e = null;
|
|
1085
|
+
}
|
|
1086
|
+
var xt = $e, Pe = Object.defineProperty || !1;
|
|
1087
|
+
if (Pe)
|
|
1088
|
+
try {
|
|
1089
|
+
Pe({}, "a", { value: 1 });
|
|
1090
|
+
} catch {
|
|
1091
|
+
Pe = !1;
|
|
1092
|
+
}
|
|
1093
|
+
var ca = Pe, Qe, zr;
|
|
1094
|
+
function sa() {
|
|
1095
|
+
return zr || (zr = 1, Qe = function() {
|
|
1096
|
+
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
1097
|
+
return !1;
|
|
1098
|
+
if (typeof Symbol.iterator == "symbol")
|
|
1099
|
+
return !0;
|
|
1100
|
+
var e = {}, t = Symbol("test"), n = Object(t);
|
|
1101
|
+
if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
|
|
1102
|
+
return !1;
|
|
1103
|
+
var a = 42;
|
|
1104
|
+
e[t] = a;
|
|
1105
|
+
for (var i in e)
|
|
1106
|
+
return !1;
|
|
1107
|
+
if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
|
|
1108
|
+
return !1;
|
|
1109
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
1110
|
+
if (o.length !== 1 || o[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
|
|
1111
|
+
return !1;
|
|
1112
|
+
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
1113
|
+
var u = (
|
|
1114
|
+
/** @type {PropertyDescriptor} */
|
|
1115
|
+
Object.getOwnPropertyDescriptor(e, t)
|
|
1116
|
+
);
|
|
1117
|
+
if (u.value !== a || u.enumerable !== !0)
|
|
1118
|
+
return !1;
|
|
1119
|
+
}
|
|
1120
|
+
return !0;
|
|
1121
|
+
}), Qe;
|
|
1122
|
+
}
|
|
1123
|
+
var Je, Kr;
|
|
1124
|
+
function pa() {
|
|
1125
|
+
if (Kr) return Je;
|
|
1126
|
+
Kr = 1;
|
|
1127
|
+
var r = typeof Symbol < "u" && Symbol, e = sa();
|
|
1128
|
+
return Je = function() {
|
|
1129
|
+
return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
1130
|
+
}, Je;
|
|
1131
|
+
}
|
|
1132
|
+
var Xe, Vr;
|
|
1133
|
+
function Ot() {
|
|
1134
|
+
return Vr || (Vr = 1, Xe = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Xe;
|
|
1135
|
+
}
|
|
1136
|
+
var Ye, Qr;
|
|
1137
|
+
function It() {
|
|
1138
|
+
if (Qr) return Ye;
|
|
1139
|
+
Qr = 1;
|
|
1140
|
+
var r = Pt;
|
|
1141
|
+
return Ye = r.getPrototypeOf || null, Ye;
|
|
1142
|
+
}
|
|
1143
|
+
var Ze, Jr;
|
|
1144
|
+
function ya() {
|
|
1145
|
+
if (Jr) return Ze;
|
|
1146
|
+
Jr = 1;
|
|
1147
|
+
var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, n = "[object Function]", a = function(l, c) {
|
|
1148
|
+
for (var s = [], p = 0; p < l.length; p += 1)
|
|
1149
|
+
s[p] = l[p];
|
|
1150
|
+
for (var f = 0; f < c.length; f += 1)
|
|
1151
|
+
s[f + l.length] = c[f];
|
|
1152
|
+
return s;
|
|
1153
|
+
}, i = function(l, c) {
|
|
1154
|
+
for (var s = [], p = c, f = 0; p < l.length; p += 1, f += 1)
|
|
1155
|
+
s[f] = l[p];
|
|
1156
|
+
return s;
|
|
1157
|
+
}, o = function(u, l) {
|
|
1158
|
+
for (var c = "", s = 0; s < u.length; s += 1)
|
|
1159
|
+
c += u[s], s + 1 < u.length && (c += l);
|
|
1160
|
+
return c;
|
|
1161
|
+
};
|
|
1162
|
+
return Ze = function(l) {
|
|
1163
|
+
var c = this;
|
|
1164
|
+
if (typeof c != "function" || e.apply(c) !== n)
|
|
1165
|
+
throw new TypeError(r + c);
|
|
1166
|
+
for (var s = i(arguments, 1), p, f = function() {
|
|
1167
|
+
if (this instanceof p) {
|
|
1168
|
+
var b = c.apply(
|
|
1169
|
+
this,
|
|
1170
|
+
a(s, arguments)
|
|
1171
|
+
);
|
|
1172
|
+
return Object(b) === b ? b : this;
|
|
1173
|
+
}
|
|
1174
|
+
return c.apply(
|
|
1175
|
+
l,
|
|
1176
|
+
a(s, arguments)
|
|
1177
|
+
);
|
|
1178
|
+
}, d = t(0, c.length - s.length), y = [], h = 0; h < d; h++)
|
|
1179
|
+
y[h] = "$" + h;
|
|
1180
|
+
if (p = Function("binder", "return function (" + o(y, ",") + "){ return binder.apply(this,arguments); }")(f), c.prototype) {
|
|
1181
|
+
var g = function() {
|
|
1182
|
+
};
|
|
1183
|
+
g.prototype = c.prototype, p.prototype = new g(), g.prototype = null;
|
|
1184
|
+
}
|
|
1185
|
+
return p;
|
|
1186
|
+
}, Ze;
|
|
1187
|
+
}
|
|
1188
|
+
var er, Xr;
|
|
1189
|
+
function Be() {
|
|
1190
|
+
if (Xr) return er;
|
|
1191
|
+
Xr = 1;
|
|
1192
|
+
var r = ya();
|
|
1193
|
+
return er = Function.prototype.bind || r, er;
|
|
1194
|
+
}
|
|
1195
|
+
var rr, Yr;
|
|
1196
|
+
function Ir() {
|
|
1197
|
+
return Yr || (Yr = 1, rr = Function.prototype.call), rr;
|
|
1198
|
+
}
|
|
1199
|
+
var tr, Zr;
|
|
1200
|
+
function Rt() {
|
|
1201
|
+
return Zr || (Zr = 1, tr = Function.prototype.apply), tr;
|
|
1202
|
+
}
|
|
1203
|
+
var da = typeof Reflect < "u" && Reflect && Reflect.apply, ha = Be(), ma = Rt(), va = Ir(), ga = da, wa = ga || ha.call(va, ma), Sa = Be(), ba = te, Ea = Ir(), Aa = wa, _t = function(e) {
|
|
1204
|
+
if (e.length < 1 || typeof e[0] != "function")
|
|
1205
|
+
throw new ba("a function is required");
|
|
1206
|
+
return Aa(Sa, Ea, e);
|
|
1207
|
+
}, nr, et;
|
|
1208
|
+
function $a() {
|
|
1209
|
+
if (et) return nr;
|
|
1210
|
+
et = 1;
|
|
1211
|
+
var r = _t, e = xt, t;
|
|
1212
|
+
try {
|
|
1213
|
+
t = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
1214
|
+
[].__proto__ === Array.prototype;
|
|
1215
|
+
} catch (o) {
|
|
1216
|
+
if (!o || typeof o != "object" || !("code" in o) || o.code !== "ERR_PROTO_ACCESS")
|
|
1217
|
+
throw o;
|
|
1218
|
+
}
|
|
1219
|
+
var n = !!t && e && e(
|
|
1220
|
+
Object.prototype,
|
|
1221
|
+
/** @type {keyof typeof Object.prototype} */
|
|
1222
|
+
"__proto__"
|
|
1223
|
+
), a = Object, i = a.getPrototypeOf;
|
|
1224
|
+
return nr = n && typeof n.get == "function" ? r([n.get]) : typeof i == "function" ? (
|
|
1225
|
+
/** @type {import('./get')} */
|
|
1226
|
+
function(u) {
|
|
1227
|
+
return i(u == null ? u : a(u));
|
|
1228
|
+
}
|
|
1229
|
+
) : !1, nr;
|
|
1230
|
+
}
|
|
1231
|
+
var ar, rt;
|
|
1232
|
+
function Pa() {
|
|
1233
|
+
if (rt) return ar;
|
|
1234
|
+
rt = 1;
|
|
1235
|
+
var r = Ot(), e = It(), t = $a();
|
|
1236
|
+
return ar = r ? function(a) {
|
|
1237
|
+
return r(a);
|
|
1238
|
+
} : e ? function(a) {
|
|
1239
|
+
if (!a || typeof a != "object" && typeof a != "function")
|
|
1240
|
+
throw new TypeError("getProto: not an object");
|
|
1241
|
+
return e(a);
|
|
1242
|
+
} : t ? function(a) {
|
|
1243
|
+
return t(a);
|
|
1244
|
+
} : null, ar;
|
|
1245
|
+
}
|
|
1246
|
+
var ir, tt;
|
|
1247
|
+
function xa() {
|
|
1248
|
+
if (tt) return ir;
|
|
1249
|
+
tt = 1;
|
|
1250
|
+
var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = Be();
|
|
1251
|
+
return ir = t.call(r, e), ir;
|
|
1252
|
+
}
|
|
1253
|
+
var v, Oa = Pt, Ia = Vn, Ra = Qn, _a = Jn, Ca = Xn, re = Yn, X = te, Ta = Zn, Ma = ea, Da = ra, Na = ta, La = na, Ua = aa, Ba = ia, qa = fa, Ct = Function, or = function(r) {
|
|
1254
|
+
try {
|
|
1255
|
+
return Ct('"use strict"; return (' + r + ").constructor;")();
|
|
1256
|
+
} catch {
|
|
1257
|
+
}
|
|
1258
|
+
}, de = xt, Wa = ca, lr = function() {
|
|
1259
|
+
throw new X();
|
|
1260
|
+
}, Fa = de ? function() {
|
|
1261
|
+
try {
|
|
1262
|
+
return arguments.callee, lr;
|
|
1263
|
+
} catch {
|
|
1264
|
+
try {
|
|
1265
|
+
return de(arguments, "callee").get;
|
|
1266
|
+
} catch {
|
|
1267
|
+
return lr;
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
}() : lr, K = pa()(), $ = Pa(), Ga = It(), Ha = Ot(), Tt = Rt(), he = Ir(), Q = {}, ja = typeof Uint8Array > "u" || !$ ? v : $(Uint8Array), G = {
|
|
1271
|
+
__proto__: null,
|
|
1272
|
+
"%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
|
|
1273
|
+
"%Array%": Array,
|
|
1274
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
|
|
1275
|
+
"%ArrayIteratorPrototype%": K && $ ? $([][Symbol.iterator]()) : v,
|
|
1276
|
+
"%AsyncFromSyncIteratorPrototype%": v,
|
|
1277
|
+
"%AsyncFunction%": Q,
|
|
1278
|
+
"%AsyncGenerator%": Q,
|
|
1279
|
+
"%AsyncGeneratorFunction%": Q,
|
|
1280
|
+
"%AsyncIteratorPrototype%": Q,
|
|
1281
|
+
"%Atomics%": typeof Atomics > "u" ? v : Atomics,
|
|
1282
|
+
"%BigInt%": typeof BigInt > "u" ? v : BigInt,
|
|
1283
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
|
|
1284
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? v : BigUint64Array,
|
|
1285
|
+
"%Boolean%": Boolean,
|
|
1286
|
+
"%DataView%": typeof DataView > "u" ? v : DataView,
|
|
1287
|
+
"%Date%": Date,
|
|
1288
|
+
"%decodeURI%": decodeURI,
|
|
1289
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
1290
|
+
"%encodeURI%": encodeURI,
|
|
1291
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
1292
|
+
"%Error%": Ia,
|
|
1293
|
+
"%eval%": eval,
|
|
1294
|
+
// eslint-disable-line no-eval
|
|
1295
|
+
"%EvalError%": Ra,
|
|
1296
|
+
"%Float16Array%": typeof Float16Array > "u" ? v : Float16Array,
|
|
1297
|
+
"%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
|
|
1298
|
+
"%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
|
|
1299
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
|
|
1300
|
+
"%Function%": Ct,
|
|
1301
|
+
"%GeneratorFunction%": Q,
|
|
1302
|
+
"%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
|
|
1303
|
+
"%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
|
|
1304
|
+
"%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
|
|
1305
|
+
"%isFinite%": isFinite,
|
|
1306
|
+
"%isNaN%": isNaN,
|
|
1307
|
+
"%IteratorPrototype%": K && $ ? $($([][Symbol.iterator]())) : v,
|
|
1308
|
+
"%JSON%": typeof JSON == "object" ? JSON : v,
|
|
1309
|
+
"%Map%": typeof Map > "u" ? v : Map,
|
|
1310
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !K || !$ ? v : $((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
1311
|
+
"%Math%": Math,
|
|
1312
|
+
"%Number%": Number,
|
|
1313
|
+
"%Object%": Oa,
|
|
1314
|
+
"%Object.getOwnPropertyDescriptor%": de,
|
|
1315
|
+
"%parseFloat%": parseFloat,
|
|
1316
|
+
"%parseInt%": parseInt,
|
|
1317
|
+
"%Promise%": typeof Promise > "u" ? v : Promise,
|
|
1318
|
+
"%Proxy%": typeof Proxy > "u" ? v : Proxy,
|
|
1319
|
+
"%RangeError%": _a,
|
|
1320
|
+
"%ReferenceError%": Ca,
|
|
1321
|
+
"%Reflect%": typeof Reflect > "u" ? v : Reflect,
|
|
1322
|
+
"%RegExp%": RegExp,
|
|
1323
|
+
"%Set%": typeof Set > "u" ? v : Set,
|
|
1324
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !K || !$ ? v : $((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
1325
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
|
|
1326
|
+
"%String%": String,
|
|
1327
|
+
"%StringIteratorPrototype%": K && $ ? $(""[Symbol.iterator]()) : v,
|
|
1328
|
+
"%Symbol%": K ? Symbol : v,
|
|
1329
|
+
"%SyntaxError%": re,
|
|
1330
|
+
"%ThrowTypeError%": Fa,
|
|
1331
|
+
"%TypedArray%": ja,
|
|
1332
|
+
"%TypeError%": X,
|
|
1333
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
|
|
1334
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
|
|
1335
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
|
|
1336
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
|
|
1337
|
+
"%URIError%": Ta,
|
|
1338
|
+
"%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
|
|
1339
|
+
"%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
|
|
1340
|
+
"%WeakSet%": typeof WeakSet > "u" ? v : WeakSet,
|
|
1341
|
+
"%Function.prototype.call%": he,
|
|
1342
|
+
"%Function.prototype.apply%": Tt,
|
|
1343
|
+
"%Object.defineProperty%": Wa,
|
|
1344
|
+
"%Object.getPrototypeOf%": Ga,
|
|
1345
|
+
"%Math.abs%": Ma,
|
|
1346
|
+
"%Math.floor%": Da,
|
|
1347
|
+
"%Math.max%": Na,
|
|
1348
|
+
"%Math.min%": La,
|
|
1349
|
+
"%Math.pow%": Ua,
|
|
1350
|
+
"%Math.round%": Ba,
|
|
1351
|
+
"%Math.sign%": qa,
|
|
1352
|
+
"%Reflect.getPrototypeOf%": Ha
|
|
1353
|
+
};
|
|
1354
|
+
if ($)
|
|
1355
|
+
try {
|
|
1356
|
+
null.error;
|
|
1357
|
+
} catch (r) {
|
|
1358
|
+
var ka = $($(r));
|
|
1359
|
+
G["%Error.prototype%"] = ka;
|
|
1360
|
+
}
|
|
1361
|
+
var za = function r(e) {
|
|
1362
|
+
var t;
|
|
1363
|
+
if (e === "%AsyncFunction%")
|
|
1364
|
+
t = or("async function () {}");
|
|
1365
|
+
else if (e === "%GeneratorFunction%")
|
|
1366
|
+
t = or("function* () {}");
|
|
1367
|
+
else if (e === "%AsyncGeneratorFunction%")
|
|
1368
|
+
t = or("async function* () {}");
|
|
1369
|
+
else if (e === "%AsyncGenerator%") {
|
|
1370
|
+
var n = r("%AsyncGeneratorFunction%");
|
|
1371
|
+
n && (t = n.prototype);
|
|
1372
|
+
} else if (e === "%AsyncIteratorPrototype%") {
|
|
1373
|
+
var a = r("%AsyncGenerator%");
|
|
1374
|
+
a && $ && (t = $(a.prototype));
|
|
1375
|
+
}
|
|
1376
|
+
return G[e] = t, t;
|
|
1377
|
+
}, nt = {
|
|
1378
|
+
__proto__: null,
|
|
1379
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
1380
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
1381
|
+
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
1382
|
+
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
1383
|
+
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
1384
|
+
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
1385
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
1386
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
1387
|
+
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
1388
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
1389
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
1390
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
1391
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
1392
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
1393
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
1394
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
1395
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
1396
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
1397
|
+
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
1398
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
1399
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
1400
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
1401
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
1402
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
1403
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
1404
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
1405
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
1406
|
+
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
1407
|
+
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
1408
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
1409
|
+
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
1410
|
+
"%Promise_all%": ["Promise", "all"],
|
|
1411
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
1412
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
1413
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
1414
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
1415
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
1416
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
1417
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
1418
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
1419
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
1420
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
1421
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
1422
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
1423
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
1424
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
1425
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
1426
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
1427
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1428
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1429
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1430
|
+
}, me = Be(), Ce = xa(), Ka = me.call(he, Array.prototype.concat), Va = me.call(Tt, Array.prototype.splice), at = me.call(he, String.prototype.replace), Te = me.call(he, String.prototype.slice), Qa = me.call(he, RegExp.prototype.exec), Ja = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Xa = /\\(\\)?/g, Ya = function(e) {
|
|
1431
|
+
var t = Te(e, 0, 1), n = Te(e, -1);
|
|
1432
|
+
if (t === "%" && n !== "%")
|
|
1433
|
+
throw new re("invalid intrinsic syntax, expected closing `%`");
|
|
1434
|
+
if (n === "%" && t !== "%")
|
|
1435
|
+
throw new re("invalid intrinsic syntax, expected opening `%`");
|
|
1436
|
+
var a = [];
|
|
1437
|
+
return at(e, Ja, function(i, o, u, l) {
|
|
1438
|
+
a[a.length] = u ? at(l, Xa, "$1") : o || i;
|
|
1439
|
+
}), a;
|
|
1440
|
+
}, Za = function(e, t) {
|
|
1441
|
+
var n = e, a;
|
|
1442
|
+
if (Ce(nt, n) && (a = nt[n], n = "%" + a[0] + "%"), Ce(G, n)) {
|
|
1443
|
+
var i = G[n];
|
|
1444
|
+
if (i === Q && (i = za(n)), typeof i > "u" && !t)
|
|
1445
|
+
throw new X("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
1446
|
+
return {
|
|
1447
|
+
alias: a,
|
|
1448
|
+
name: n,
|
|
1449
|
+
value: i
|
|
1450
|
+
};
|
|
1451
|
+
}
|
|
1452
|
+
throw new re("intrinsic " + e + " does not exist!");
|
|
1453
|
+
}, Rr = function(e, t) {
|
|
1454
|
+
if (typeof e != "string" || e.length === 0)
|
|
1455
|
+
throw new X("intrinsic name must be a non-empty string");
|
|
1456
|
+
if (arguments.length > 1 && typeof t != "boolean")
|
|
1457
|
+
throw new X('"allowMissing" argument must be a boolean');
|
|
1458
|
+
if (Qa(/^%?[^%]*%?$/, e) === null)
|
|
1459
|
+
throw new re("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1460
|
+
var n = Ya(e), a = n.length > 0 ? n[0] : "", i = Za("%" + a + "%", t), o = i.name, u = i.value, l = !1, c = i.alias;
|
|
1461
|
+
c && (a = c[0], Va(n, Ka([0, 1], c)));
|
|
1462
|
+
for (var s = 1, p = !0; s < n.length; s += 1) {
|
|
1463
|
+
var f = n[s], d = Te(f, 0, 1), y = Te(f, -1);
|
|
1464
|
+
if ((d === '"' || d === "'" || d === "`" || y === '"' || y === "'" || y === "`") && d !== y)
|
|
1465
|
+
throw new re("property names with quotes must have matching quotes");
|
|
1466
|
+
if ((f === "constructor" || !p) && (l = !0), a += "." + f, o = "%" + a + "%", Ce(G, o))
|
|
1467
|
+
u = G[o];
|
|
1468
|
+
else if (u != null) {
|
|
1469
|
+
if (!(f in u)) {
|
|
1470
|
+
if (!t)
|
|
1471
|
+
throw new X("base intrinsic for " + e + " exists, but the property is not available.");
|
|
1472
|
+
return;
|
|
1473
|
+
}
|
|
1474
|
+
if (de && s + 1 >= n.length) {
|
|
1475
|
+
var h = de(u, f);
|
|
1476
|
+
p = !!h, p && "get" in h && !("originalValue" in h.get) ? u = h.get : u = u[f];
|
|
1477
|
+
} else
|
|
1478
|
+
p = Ce(u, f), u = u[f];
|
|
1479
|
+
p && !l && (G[o] = u);
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
return u;
|
|
1483
|
+
}, Mt = Rr, Dt = _t, ei = Dt([Mt("%String.prototype.indexOf%")]), Nt = function(e, t) {
|
|
1484
|
+
var n = (
|
|
1485
|
+
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
1486
|
+
Mt(e, !!t)
|
|
1487
|
+
);
|
|
1488
|
+
return typeof n == "function" && ei(e, ".prototype.") > -1 ? Dt(
|
|
1489
|
+
/** @type {const} */
|
|
1490
|
+
[n]
|
|
1491
|
+
) : n;
|
|
1492
|
+
}, ri = Rr, ve = Nt, ti = Le, ni = te, it = ri("%Map%", !0), ai = ve("Map.prototype.get", !0), ii = ve("Map.prototype.set", !0), oi = ve("Map.prototype.has", !0), li = ve("Map.prototype.delete", !0), fi = ve("Map.prototype.size", !0), Lt = !!it && /** @type {Exclude<import('.'), false>} */
|
|
1493
|
+
function() {
|
|
1494
|
+
var e, t = {
|
|
1495
|
+
assert: function(n) {
|
|
1496
|
+
if (!t.has(n))
|
|
1497
|
+
throw new ni("Side channel does not contain " + ti(n));
|
|
1498
|
+
},
|
|
1499
|
+
delete: function(n) {
|
|
1500
|
+
if (e) {
|
|
1501
|
+
var a = li(e, n);
|
|
1502
|
+
return fi(e) === 0 && (e = void 0), a;
|
|
1503
|
+
}
|
|
1443
1504
|
return !1;
|
|
1444
1505
|
},
|
|
1445
|
-
|
|
1446
|
-
|
|
1506
|
+
get: function(n) {
|
|
1507
|
+
if (e)
|
|
1508
|
+
return ai(e, n);
|
|
1509
|
+
},
|
|
1510
|
+
has: function(n) {
|
|
1511
|
+
return e ? oi(e, n) : !1;
|
|
1512
|
+
},
|
|
1513
|
+
set: function(n, a) {
|
|
1514
|
+
e || (e = new it()), ii(e, n, a);
|
|
1447
1515
|
}
|
|
1448
1516
|
};
|
|
1449
|
-
return
|
|
1450
|
-
},
|
|
1517
|
+
return t;
|
|
1518
|
+
}, ui = Rr, qe = Nt, ci = Le, be = Lt, si = te, V = ui("%WeakMap%", !0), pi = qe("WeakMap.prototype.get", !0), yi = qe("WeakMap.prototype.set", !0), di = qe("WeakMap.prototype.has", !0), hi = qe("WeakMap.prototype.delete", !0), mi = V ? (
|
|
1519
|
+
/** @type {Exclude<import('.'), false>} */
|
|
1520
|
+
function() {
|
|
1521
|
+
var e, t, n = {
|
|
1522
|
+
assert: function(a) {
|
|
1523
|
+
if (!n.has(a))
|
|
1524
|
+
throw new si("Side channel does not contain " + ci(a));
|
|
1525
|
+
},
|
|
1526
|
+
delete: function(a) {
|
|
1527
|
+
if (V && a && (typeof a == "object" || typeof a == "function")) {
|
|
1528
|
+
if (e)
|
|
1529
|
+
return hi(e, a);
|
|
1530
|
+
} else if (be && t)
|
|
1531
|
+
return t.delete(a);
|
|
1532
|
+
return !1;
|
|
1533
|
+
},
|
|
1534
|
+
get: function(a) {
|
|
1535
|
+
return V && a && (typeof a == "object" || typeof a == "function") && e ? pi(e, a) : t && t.get(a);
|
|
1536
|
+
},
|
|
1537
|
+
has: function(a) {
|
|
1538
|
+
return V && a && (typeof a == "object" || typeof a == "function") && e ? di(e, a) : !!t && t.has(a);
|
|
1539
|
+
},
|
|
1540
|
+
set: function(a, i) {
|
|
1541
|
+
V && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new V()), yi(e, a, i)) : be && (t || (t = be()), t.set(a, i));
|
|
1542
|
+
}
|
|
1543
|
+
};
|
|
1544
|
+
return n;
|
|
1545
|
+
}
|
|
1546
|
+
) : be, vi = te, gi = Le, wi = Kn, Si = Lt, bi = mi, Ei = bi || Si || wi, Ut = function() {
|
|
1547
|
+
var e, t = {
|
|
1548
|
+
assert: function(n) {
|
|
1549
|
+
if (!t.has(n))
|
|
1550
|
+
throw new vi("Side channel does not contain " + gi(n));
|
|
1551
|
+
},
|
|
1552
|
+
delete: function(n) {
|
|
1553
|
+
return !!e && e.delete(n);
|
|
1554
|
+
},
|
|
1555
|
+
get: function(n) {
|
|
1556
|
+
return e && e.get(n);
|
|
1557
|
+
},
|
|
1558
|
+
has: function(n) {
|
|
1559
|
+
return !!e && e.has(n);
|
|
1560
|
+
},
|
|
1561
|
+
set: function(n, a) {
|
|
1562
|
+
e || (e = Ei()), e.set(n, a);
|
|
1563
|
+
}
|
|
1564
|
+
};
|
|
1565
|
+
return t;
|
|
1566
|
+
}, Ai = String.prototype.replace, $i = /%20/g, fr = {
|
|
1451
1567
|
RFC1738: "RFC1738",
|
|
1452
1568
|
RFC3986: "RFC3986"
|
|
1453
|
-
},
|
|
1454
|
-
default:
|
|
1569
|
+
}, _r = {
|
|
1570
|
+
default: fr.RFC3986,
|
|
1455
1571
|
formatters: {
|
|
1456
1572
|
RFC1738: function(r) {
|
|
1457
|
-
return
|
|
1573
|
+
return Ai.call(r, $i, "+");
|
|
1458
1574
|
},
|
|
1459
1575
|
RFC3986: function(r) {
|
|
1460
1576
|
return String(r);
|
|
1461
1577
|
}
|
|
1462
1578
|
},
|
|
1463
|
-
RFC1738:
|
|
1464
|
-
RFC3986:
|
|
1465
|
-
},
|
|
1579
|
+
RFC1738: fr.RFC1738,
|
|
1580
|
+
RFC3986: fr.RFC3986
|
|
1581
|
+
}, Pi = _r, xi = Ut, ur = Object.prototype.hasOwnProperty, W = Array.isArray, We = xi(), J = function(e, t) {
|
|
1582
|
+
return We.set(e, t), e;
|
|
1583
|
+
}, F = function(e) {
|
|
1584
|
+
return We.has(e);
|
|
1585
|
+
}, le = function(e) {
|
|
1586
|
+
return We.get(e);
|
|
1587
|
+
}, Sr = function(e, t) {
|
|
1588
|
+
We.set(e, t);
|
|
1589
|
+
}, O = function() {
|
|
1466
1590
|
for (var r = [], e = 0; e < 256; ++e)
|
|
1467
|
-
r.
|
|
1591
|
+
r[r.length] = "%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase();
|
|
1468
1592
|
return r;
|
|
1469
|
-
}(),
|
|
1593
|
+
}(), Oi = function(e) {
|
|
1470
1594
|
for (; e.length > 1; ) {
|
|
1471
1595
|
var t = e.pop(), n = t.obj[t.prop];
|
|
1472
1596
|
if (W(n)) {
|
|
1473
|
-
for (var a = [],
|
|
1474
|
-
typeof n[
|
|
1597
|
+
for (var a = [], i = 0; i < n.length; ++i)
|
|
1598
|
+
typeof n[i] < "u" && (a[a.length] = n[i]);
|
|
1475
1599
|
t.obj[t.prop] = a;
|
|
1476
1600
|
}
|
|
1477
1601
|
}
|
|
1478
|
-
},
|
|
1479
|
-
for (var n = t && t.plainObjects ?
|
|
1602
|
+
}, pe = function(e, t) {
|
|
1603
|
+
for (var n = t && t.plainObjects ? { __proto__: null } : {}, a = 0; a < e.length; ++a)
|
|
1480
1604
|
typeof e[a] < "u" && (n[a] = e[a]);
|
|
1481
1605
|
return n;
|
|
1482
|
-
},
|
|
1606
|
+
}, Ii = function r(e, t, n) {
|
|
1483
1607
|
if (!t)
|
|
1484
1608
|
return e;
|
|
1485
|
-
if (typeof t != "object") {
|
|
1486
|
-
if (W(e))
|
|
1487
|
-
e.
|
|
1488
|
-
|
|
1489
|
-
|
|
1609
|
+
if (typeof t != "object" && typeof t != "function") {
|
|
1610
|
+
if (W(e)) {
|
|
1611
|
+
var a = e.length;
|
|
1612
|
+
if (n && typeof n.arrayLimit == "number" && a > n.arrayLimit)
|
|
1613
|
+
return J(pe(e.concat(t), n), a);
|
|
1614
|
+
e[a] = t;
|
|
1615
|
+
} else if (e && typeof e == "object")
|
|
1616
|
+
if (F(e)) {
|
|
1617
|
+
var i = le(e) + 1;
|
|
1618
|
+
e[i] = t, Sr(e, i);
|
|
1619
|
+
} else {
|
|
1620
|
+
if (n && n.strictMerge)
|
|
1621
|
+
return [e, t];
|
|
1622
|
+
(n && (n.plainObjects || n.allowPrototypes) || !ur.call(Object.prototype, t)) && (e[t] = !0);
|
|
1623
|
+
}
|
|
1490
1624
|
else
|
|
1491
1625
|
return [e, t];
|
|
1492
1626
|
return e;
|
|
1493
1627
|
}
|
|
1494
|
-
if (!e || typeof e != "object")
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1628
|
+
if (!e || typeof e != "object") {
|
|
1629
|
+
if (F(t)) {
|
|
1630
|
+
for (var o = Object.keys(t), u = n && n.plainObjects ? { __proto__: null, 0: e } : { 0: e }, l = 0; l < o.length; l++) {
|
|
1631
|
+
var c = parseInt(o[l], 10);
|
|
1632
|
+
u[c + 1] = t[o[l]];
|
|
1633
|
+
}
|
|
1634
|
+
return J(u, le(t) + 1);
|
|
1635
|
+
}
|
|
1636
|
+
var s = [e].concat(t);
|
|
1637
|
+
return n && typeof n.arrayLimit == "number" && s.length > n.arrayLimit ? J(pe(s, n), s.length - 1) : s;
|
|
1638
|
+
}
|
|
1639
|
+
var p = e;
|
|
1640
|
+
return W(e) && !W(t) && (p = pe(e, n)), W(e) && W(t) ? (t.forEach(function(f, d) {
|
|
1641
|
+
if (ur.call(e, d)) {
|
|
1642
|
+
var y = e[d];
|
|
1643
|
+
y && typeof y == "object" && f && typeof f == "object" ? e[d] = r(y, f, n) : e[e.length] = f;
|
|
1501
1644
|
} else
|
|
1502
|
-
e[
|
|
1503
|
-
}), e) : Object.keys(t).reduce(function(
|
|
1504
|
-
var
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1645
|
+
e[d] = f;
|
|
1646
|
+
}), e) : Object.keys(t).reduce(function(f, d) {
|
|
1647
|
+
var y = t[d];
|
|
1648
|
+
if (ur.call(f, d) ? f[d] = r(f[d], y, n) : f[d] = y, F(t) && !F(f) && J(f, le(t)), F(f)) {
|
|
1649
|
+
var h = parseInt(d, 10);
|
|
1650
|
+
String(h) === d && h >= 0 && h > le(f) && Sr(f, h);
|
|
1651
|
+
}
|
|
1652
|
+
return f;
|
|
1653
|
+
}, p);
|
|
1654
|
+
}, Ri = function(e, t) {
|
|
1508
1655
|
return Object.keys(t).reduce(function(n, a) {
|
|
1509
1656
|
return n[a] = t[a], n;
|
|
1510
1657
|
}, e);
|
|
1511
|
-
},
|
|
1658
|
+
}, _i = function(r, e, t) {
|
|
1512
1659
|
var n = r.replace(/\+/g, " ");
|
|
1513
1660
|
if (t === "iso-8859-1")
|
|
1514
1661
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -1517,70 +1664,77 @@ var it = re, te = _n, ua = zn, ca = pe, ve = it("%WeakMap%", !0), ge = it("%Map%
|
|
|
1517
1664
|
} catch {
|
|
1518
1665
|
return n;
|
|
1519
1666
|
}
|
|
1520
|
-
},
|
|
1667
|
+
}, cr = 1024, Ci = function(e, t, n, a, i) {
|
|
1521
1668
|
if (e.length === 0)
|
|
1522
1669
|
return e;
|
|
1523
|
-
var
|
|
1524
|
-
if (typeof e == "symbol" ?
|
|
1525
|
-
return escape(
|
|
1670
|
+
var o = e;
|
|
1671
|
+
if (typeof e == "symbol" ? o = Symbol.prototype.toString.call(e) : typeof e != "string" && (o = String(e)), n === "iso-8859-1")
|
|
1672
|
+
return escape(o).replace(/%u[0-9a-f]{4}/gi, function(d) {
|
|
1526
1673
|
return "%26%23" + parseInt(d.slice(2), 16) + "%3B";
|
|
1527
1674
|
});
|
|
1528
|
-
for (var
|
|
1529
|
-
for (var
|
|
1530
|
-
var
|
|
1531
|
-
if (
|
|
1532
|
-
s[s.length] =
|
|
1675
|
+
for (var u = "", l = 0; l < o.length; l += cr) {
|
|
1676
|
+
for (var c = o.length >= cr ? o.slice(l, l + cr) : o, s = [], p = 0; p < c.length; ++p) {
|
|
1677
|
+
var f = c.charCodeAt(p);
|
|
1678
|
+
if (f === 45 || f === 46 || f === 95 || f === 126 || f >= 48 && f <= 57 || f >= 65 && f <= 90 || f >= 97 && f <= 122 || i === Pi.RFC1738 && (f === 40 || f === 41)) {
|
|
1679
|
+
s[s.length] = c.charAt(p);
|
|
1533
1680
|
continue;
|
|
1534
1681
|
}
|
|
1535
|
-
if (
|
|
1536
|
-
s[s.length] =
|
|
1682
|
+
if (f < 128) {
|
|
1683
|
+
s[s.length] = O[f];
|
|
1537
1684
|
continue;
|
|
1538
1685
|
}
|
|
1539
|
-
if (
|
|
1540
|
-
s[s.length] =
|
|
1686
|
+
if (f < 2048) {
|
|
1687
|
+
s[s.length] = O[192 | f >> 6] + O[128 | f & 63];
|
|
1541
1688
|
continue;
|
|
1542
1689
|
}
|
|
1543
|
-
if (
|
|
1544
|
-
s[s.length] =
|
|
1690
|
+
if (f < 55296 || f >= 57344) {
|
|
1691
|
+
s[s.length] = O[224 | f >> 12] + O[128 | f >> 6 & 63] + O[128 | f & 63];
|
|
1545
1692
|
continue;
|
|
1546
1693
|
}
|
|
1547
|
-
p += 1,
|
|
1694
|
+
p += 1, f = 65536 + ((f & 1023) << 10 | c.charCodeAt(p) & 1023), s[s.length] = O[240 | f >> 18] + O[128 | f >> 12 & 63] + O[128 | f >> 6 & 63] + O[128 | f & 63];
|
|
1548
1695
|
}
|
|
1549
|
-
|
|
1696
|
+
u += s.join("");
|
|
1550
1697
|
}
|
|
1551
|
-
return
|
|
1552
|
-
},
|
|
1698
|
+
return u;
|
|
1699
|
+
}, Ti = function(e) {
|
|
1553
1700
|
for (var t = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; a < t.length; ++a)
|
|
1554
|
-
for (var
|
|
1555
|
-
var
|
|
1556
|
-
typeof s == "object" && s !== null && n.indexOf(s) === -1 && (t.
|
|
1701
|
+
for (var i = t[a], o = i.obj[i.prop], u = Object.keys(o), l = 0; l < u.length; ++l) {
|
|
1702
|
+
var c = u[l], s = o[c];
|
|
1703
|
+
typeof s == "object" && s !== null && n.indexOf(s) === -1 && (t[t.length] = { obj: o, prop: c }, n[n.length] = s);
|
|
1557
1704
|
}
|
|
1558
|
-
return
|
|
1559
|
-
},
|
|
1705
|
+
return Oi(t), e;
|
|
1706
|
+
}, Mi = function(e) {
|
|
1560
1707
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1561
|
-
},
|
|
1708
|
+
}, Di = function(e) {
|
|
1562
1709
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
1563
|
-
},
|
|
1564
|
-
|
|
1565
|
-
|
|
1710
|
+
}, Ni = function(e, t, n, a) {
|
|
1711
|
+
if (F(e)) {
|
|
1712
|
+
var i = le(e) + 1;
|
|
1713
|
+
return e[i] = t, Sr(e, i), e;
|
|
1714
|
+
}
|
|
1715
|
+
var o = [].concat(e, t);
|
|
1716
|
+
return o.length > n ? J(pe(o, { plainObjects: a }), o.length - 1) : o;
|
|
1717
|
+
}, Li = function(e, t) {
|
|
1566
1718
|
if (W(e)) {
|
|
1567
1719
|
for (var n = [], a = 0; a < e.length; a += 1)
|
|
1568
|
-
n.
|
|
1720
|
+
n[n.length] = t(e[a]);
|
|
1569
1721
|
return n;
|
|
1570
1722
|
}
|
|
1571
1723
|
return t(e);
|
|
1572
|
-
},
|
|
1573
|
-
arrayToObject:
|
|
1574
|
-
assign:
|
|
1575
|
-
combine:
|
|
1576
|
-
compact:
|
|
1577
|
-
decode:
|
|
1578
|
-
encode:
|
|
1579
|
-
isBuffer:
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1724
|
+
}, Bt = {
|
|
1725
|
+
arrayToObject: pe,
|
|
1726
|
+
assign: Ri,
|
|
1727
|
+
combine: Ni,
|
|
1728
|
+
compact: Ti,
|
|
1729
|
+
decode: _i,
|
|
1730
|
+
encode: Ci,
|
|
1731
|
+
isBuffer: Di,
|
|
1732
|
+
isOverflow: F,
|
|
1733
|
+
isRegExp: Mi,
|
|
1734
|
+
markOverflow: J,
|
|
1735
|
+
maybeMap: Li,
|
|
1736
|
+
merge: Ii
|
|
1737
|
+
}, qt = Ut, xe = Bt, ye = _r, Ui = Object.prototype.hasOwnProperty, Wt = {
|
|
1584
1738
|
brackets: function(e) {
|
|
1585
1739
|
return e + "[]";
|
|
1586
1740
|
},
|
|
@@ -1591,100 +1745,102 @@ var it = re, te = _n, ua = zn, ca = pe, ve = it("%WeakMap%", !0), ge = it("%Map%
|
|
|
1591
1745
|
repeat: function(e) {
|
|
1592
1746
|
return e;
|
|
1593
1747
|
}
|
|
1594
|
-
},
|
|
1595
|
-
|
|
1596
|
-
},
|
|
1748
|
+
}, I = Array.isArray, Bi = Array.prototype.push, Ft = function(r, e) {
|
|
1749
|
+
Bi.apply(r, I(e) ? e : [e]);
|
|
1750
|
+
}, qi = Date.prototype.toISOString, ot = ye.default, E = {
|
|
1597
1751
|
addQueryPrefix: !1,
|
|
1598
1752
|
allowDots: !1,
|
|
1599
1753
|
allowEmptyArrays: !1,
|
|
1600
1754
|
arrayFormat: "indices",
|
|
1601
1755
|
charset: "utf-8",
|
|
1602
1756
|
charsetSentinel: !1,
|
|
1757
|
+
commaRoundTrip: !1,
|
|
1603
1758
|
delimiter: "&",
|
|
1604
1759
|
encode: !0,
|
|
1605
1760
|
encodeDotInKeys: !1,
|
|
1606
|
-
encoder:
|
|
1761
|
+
encoder: xe.encode,
|
|
1607
1762
|
encodeValuesOnly: !1,
|
|
1608
|
-
|
|
1609
|
-
|
|
1763
|
+
filter: void 0,
|
|
1764
|
+
format: ot,
|
|
1765
|
+
formatter: ye.formatters[ot],
|
|
1610
1766
|
// deprecated
|
|
1611
1767
|
indices: !1,
|
|
1612
1768
|
serializeDate: function(e) {
|
|
1613
|
-
return
|
|
1769
|
+
return qi.call(e);
|
|
1614
1770
|
},
|
|
1615
1771
|
skipNulls: !1,
|
|
1616
1772
|
strictNullHandling: !1
|
|
1617
|
-
},
|
|
1773
|
+
}, Wi = function(e) {
|
|
1618
1774
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
1619
|
-
},
|
|
1620
|
-
for (var
|
|
1621
|
-
var
|
|
1622
|
-
if (
|
|
1623
|
-
if (
|
|
1775
|
+
}, sr = {}, Fi = function r(e, t, n, a, i, o, u, l, c, s, p, f, d, y, h, g, b, A) {
|
|
1776
|
+
for (var m = e, M = A, B = 0, ne = !1; (M = M.get(sr)) !== void 0 && !ne; ) {
|
|
1777
|
+
var k = M.get(e);
|
|
1778
|
+
if (B += 1, typeof k < "u") {
|
|
1779
|
+
if (k === B)
|
|
1624
1780
|
throw new RangeError("Cyclic object value");
|
|
1625
1781
|
ne = !0;
|
|
1626
1782
|
}
|
|
1627
|
-
typeof
|
|
1628
|
-
}
|
|
1629
|
-
if (typeof s == "function" ?
|
|
1630
|
-
return
|
|
1631
|
-
})),
|
|
1632
|
-
if (
|
|
1633
|
-
return
|
|
1634
|
-
|
|
1635
|
-
}
|
|
1636
|
-
if (
|
|
1637
|
-
if (
|
|
1638
|
-
var
|
|
1639
|
-
return [
|
|
1783
|
+
typeof M.get(sr) > "u" && (B = 0);
|
|
1784
|
+
}
|
|
1785
|
+
if (typeof s == "function" ? m = s(t, m) : m instanceof Date ? m = d(m) : n === "comma" && I(m) && (m = xe.maybeMap(m, function(Ge) {
|
|
1786
|
+
return Ge instanceof Date ? d(Ge) : Ge;
|
|
1787
|
+
})), m === null) {
|
|
1788
|
+
if (o)
|
|
1789
|
+
return c && !g ? c(t, E.encoder, b, "key", y) : t;
|
|
1790
|
+
m = "";
|
|
1791
|
+
}
|
|
1792
|
+
if (Wi(m) || xe.isBuffer(m)) {
|
|
1793
|
+
if (c) {
|
|
1794
|
+
var ge = g ? t : c(t, E.encoder, b, "key", y);
|
|
1795
|
+
return [h(ge) + "=" + h(c(m, E.encoder, b, "value", y))];
|
|
1640
1796
|
}
|
|
1641
|
-
return [
|
|
1797
|
+
return [h(t) + "=" + h(String(m))];
|
|
1642
1798
|
}
|
|
1643
|
-
var
|
|
1644
|
-
if (typeof
|
|
1645
|
-
return
|
|
1799
|
+
var q = [];
|
|
1800
|
+
if (typeof m > "u")
|
|
1801
|
+
return q;
|
|
1646
1802
|
var D;
|
|
1647
|
-
if (n === "comma" &&
|
|
1648
|
-
g &&
|
|
1649
|
-
else if (
|
|
1803
|
+
if (n === "comma" && I(m))
|
|
1804
|
+
g && c && (m = xe.maybeMap(m, c)), D = [{ value: m.length > 0 ? m.join(",") || null : void 0 }];
|
|
1805
|
+
else if (I(s))
|
|
1650
1806
|
D = s;
|
|
1651
1807
|
else {
|
|
1652
|
-
var
|
|
1653
|
-
D = p ?
|
|
1654
|
-
}
|
|
1655
|
-
var
|
|
1656
|
-
if (
|
|
1657
|
-
return
|
|
1658
|
-
for (var
|
|
1659
|
-
var
|
|
1660
|
-
if (!(
|
|
1661
|
-
var
|
|
1662
|
-
|
|
1663
|
-
var
|
|
1664
|
-
|
|
1808
|
+
var we = Object.keys(m);
|
|
1809
|
+
D = p ? we.sort(p) : we;
|
|
1810
|
+
}
|
|
1811
|
+
var z = l ? String(t).replace(/\./g, "%2E") : String(t), x = a && I(m) && m.length === 1 ? z + "[]" : z;
|
|
1812
|
+
if (i && I(m) && m.length === 0)
|
|
1813
|
+
return x + "[]";
|
|
1814
|
+
for (var N = 0; N < D.length; ++N) {
|
|
1815
|
+
var C = D[N], ae = typeof C == "object" && C && typeof C.value < "u" ? C.value : m[C];
|
|
1816
|
+
if (!(u && ae === null)) {
|
|
1817
|
+
var Fe = f && l ? String(C).replace(/\./g, "%2E") : String(C), Ht = I(m) ? typeof n == "function" ? n(x, Fe) : x : x + (f ? "." + Fe : "[" + Fe + "]");
|
|
1818
|
+
A.set(e, B);
|
|
1819
|
+
var Cr = qt();
|
|
1820
|
+
Cr.set(sr, A), Ft(q, r(
|
|
1665
1821
|
ae,
|
|
1666
|
-
|
|
1822
|
+
Ht,
|
|
1667
1823
|
n,
|
|
1668
1824
|
a,
|
|
1669
|
-
o,
|
|
1670
1825
|
i,
|
|
1671
|
-
|
|
1826
|
+
o,
|
|
1827
|
+
u,
|
|
1672
1828
|
l,
|
|
1673
|
-
n === "comma" && g &&
|
|
1829
|
+
n === "comma" && g && I(m) ? null : c,
|
|
1674
1830
|
s,
|
|
1675
1831
|
p,
|
|
1676
|
-
|
|
1832
|
+
f,
|
|
1677
1833
|
d,
|
|
1678
1834
|
y,
|
|
1679
|
-
|
|
1835
|
+
h,
|
|
1680
1836
|
g,
|
|
1681
|
-
|
|
1682
|
-
|
|
1837
|
+
b,
|
|
1838
|
+
Cr
|
|
1683
1839
|
));
|
|
1684
1840
|
}
|
|
1685
1841
|
}
|
|
1686
|
-
return
|
|
1687
|
-
},
|
|
1842
|
+
return q;
|
|
1843
|
+
}, Gi = function(e) {
|
|
1688
1844
|
if (!e)
|
|
1689
1845
|
return E;
|
|
1690
1846
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -1696,32 +1852,32 @@ var it = re, te = _n, ua = zn, ca = pe, ve = it("%WeakMap%", !0), ge = it("%Map%
|
|
|
1696
1852
|
var t = e.charset || E.charset;
|
|
1697
1853
|
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
1698
1854
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1699
|
-
var n =
|
|
1855
|
+
var n = ye.default;
|
|
1700
1856
|
if (typeof e.format < "u") {
|
|
1701
|
-
if (!
|
|
1857
|
+
if (!Ui.call(ye.formatters, e.format))
|
|
1702
1858
|
throw new TypeError("Unknown format option provided.");
|
|
1703
1859
|
n = e.format;
|
|
1704
1860
|
}
|
|
1705
|
-
var a =
|
|
1706
|
-
(typeof e.filter == "function" ||
|
|
1707
|
-
var
|
|
1708
|
-
if (e.arrayFormat in
|
|
1861
|
+
var a = ye.formatters[n], i = E.filter;
|
|
1862
|
+
(typeof e.filter == "function" || I(e.filter)) && (i = e.filter);
|
|
1863
|
+
var o;
|
|
1864
|
+
if (e.arrayFormat in Wt ? o = e.arrayFormat : "indices" in e ? o = e.indices ? "indices" : "repeat" : o = E.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
1709
1865
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1710
|
-
var
|
|
1866
|
+
var u = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : E.allowDots : !!e.allowDots;
|
|
1711
1867
|
return {
|
|
1712
1868
|
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : E.addQueryPrefix,
|
|
1713
|
-
allowDots:
|
|
1869
|
+
allowDots: u,
|
|
1714
1870
|
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : E.allowEmptyArrays,
|
|
1715
|
-
arrayFormat:
|
|
1871
|
+
arrayFormat: o,
|
|
1716
1872
|
charset: t,
|
|
1717
1873
|
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : E.charsetSentinel,
|
|
1718
|
-
commaRoundTrip: e.commaRoundTrip,
|
|
1874
|
+
commaRoundTrip: !!e.commaRoundTrip,
|
|
1719
1875
|
delimiter: typeof e.delimiter > "u" ? E.delimiter : e.delimiter,
|
|
1720
1876
|
encode: typeof e.encode == "boolean" ? e.encode : E.encode,
|
|
1721
1877
|
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : E.encodeDotInKeys,
|
|
1722
1878
|
encoder: typeof e.encoder == "function" ? e.encoder : E.encoder,
|
|
1723
1879
|
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : E.encodeValuesOnly,
|
|
1724
|
-
filter:
|
|
1880
|
+
filter: i,
|
|
1725
1881
|
format: n,
|
|
1726
1882
|
formatter: a,
|
|
1727
1883
|
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : E.serializeDate,
|
|
@@ -1729,20 +1885,20 @@ var it = re, te = _n, ua = zn, ca = pe, ve = it("%WeakMap%", !0), ge = it("%Map%
|
|
|
1729
1885
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
1730
1886
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : E.strictNullHandling
|
|
1731
1887
|
};
|
|
1732
|
-
},
|
|
1733
|
-
var t = r, n =
|
|
1734
|
-
typeof n.filter == "function" ? (
|
|
1735
|
-
var
|
|
1888
|
+
}, Hi = function(r, e) {
|
|
1889
|
+
var t = r, n = Gi(e), a, i;
|
|
1890
|
+
typeof n.filter == "function" ? (i = n.filter, t = i("", t)) : I(n.filter) && (i = n.filter, a = i);
|
|
1891
|
+
var o = [];
|
|
1736
1892
|
if (typeof t != "object" || t === null)
|
|
1737
1893
|
return "";
|
|
1738
|
-
var
|
|
1894
|
+
var u = Wt[n.arrayFormat], l = u === "comma" && n.commaRoundTrip;
|
|
1739
1895
|
a || (a = Object.keys(t)), n.sort && a.sort(n.sort);
|
|
1740
|
-
for (var
|
|
1741
|
-
var p = a[s];
|
|
1742
|
-
n.skipNulls &&
|
|
1743
|
-
t[p],
|
|
1744
|
-
p,
|
|
1896
|
+
for (var c = qt(), s = 0; s < a.length; ++s) {
|
|
1897
|
+
var p = a[s], f = t[p];
|
|
1898
|
+
n.skipNulls && f === null || Ft(o, Fi(
|
|
1745
1899
|
f,
|
|
1900
|
+
p,
|
|
1901
|
+
u,
|
|
1746
1902
|
l,
|
|
1747
1903
|
n.allowEmptyArrays,
|
|
1748
1904
|
n.strictNullHandling,
|
|
@@ -1757,12 +1913,12 @@ var it = re, te = _n, ua = zn, ca = pe, ve = it("%WeakMap%", !0), ge = it("%Map%
|
|
|
1757
1913
|
n.formatter,
|
|
1758
1914
|
n.encodeValuesOnly,
|
|
1759
1915
|
n.charset,
|
|
1760
|
-
|
|
1916
|
+
c
|
|
1761
1917
|
));
|
|
1762
1918
|
}
|
|
1763
|
-
var
|
|
1764
|
-
return n.charsetSentinel && (n.charset === "iso-8859-1" ?
|
|
1765
|
-
},
|
|
1919
|
+
var d = o.join(n.delimiter), y = n.addQueryPrefix === !0 ? "?" : "";
|
|
1920
|
+
return n.charsetSentinel && (n.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), d.length > 0 ? y + d : "";
|
|
1921
|
+
}, _ = Bt, Oe = Object.prototype.hasOwnProperty, pr = Array.isArray, S = {
|
|
1766
1922
|
allowDots: !1,
|
|
1767
1923
|
allowEmptyArrays: !1,
|
|
1768
1924
|
allowPrototypes: !1,
|
|
@@ -1772,7 +1928,7 @@ var it = re, te = _n, ua = zn, ca = pe, ve = it("%WeakMap%", !0), ge = it("%Map%
|
|
|
1772
1928
|
charsetSentinel: !1,
|
|
1773
1929
|
comma: !1,
|
|
1774
1930
|
decodeDotInKeys: !1,
|
|
1775
|
-
decoder:
|
|
1931
|
+
decoder: _.decode,
|
|
1776
1932
|
delimiter: "&",
|
|
1777
1933
|
depth: 5,
|
|
1778
1934
|
duplicates: "combine",
|
|
@@ -1782,69 +1938,123 @@ var it = re, te = _n, ua = zn, ca = pe, ve = it("%WeakMap%", !0), ge = it("%Map%
|
|
|
1782
1938
|
parseArrays: !0,
|
|
1783
1939
|
plainObjects: !1,
|
|
1784
1940
|
strictDepth: !1,
|
|
1785
|
-
|
|
1786
|
-
|
|
1941
|
+
strictMerge: !0,
|
|
1942
|
+
strictNullHandling: !1,
|
|
1943
|
+
throwOnLimitExceeded: !1
|
|
1944
|
+
}, ji = function(r) {
|
|
1787
1945
|
return r.replace(/&#(\d+);/g, function(e, t) {
|
|
1788
1946
|
return String.fromCharCode(parseInt(t, 10));
|
|
1789
1947
|
});
|
|
1790
|
-
},
|
|
1791
|
-
|
|
1792
|
-
|
|
1948
|
+
}, Gt = function(r, e, t) {
|
|
1949
|
+
if (r && typeof r == "string" && e.comma && r.indexOf(",") > -1)
|
|
1950
|
+
return r.split(",");
|
|
1951
|
+
if (e.throwOnLimitExceeded && t >= e.arrayLimit)
|
|
1952
|
+
throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
1953
|
+
return r;
|
|
1954
|
+
}, ki = "utf8=%26%2310003%3B", zi = "utf8=%E2%9C%93", Ki = function(e, t) {
|
|
1793
1955
|
var n = { __proto__: null }, a = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
1794
1956
|
a = a.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1795
|
-
var
|
|
1957
|
+
var i = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, o = a.split(
|
|
1958
|
+
t.delimiter,
|
|
1959
|
+
t.throwOnLimitExceeded ? i + 1 : i
|
|
1960
|
+
);
|
|
1961
|
+
if (t.throwOnLimitExceeded && o.length > i)
|
|
1962
|
+
throw new RangeError("Parameter limit exceeded. Only " + i + " parameter" + (i === 1 ? "" : "s") + " allowed.");
|
|
1963
|
+
var u = -1, l, c = t.charset;
|
|
1796
1964
|
if (t.charsetSentinel)
|
|
1797
|
-
for (l = 0; l <
|
|
1798
|
-
|
|
1799
|
-
for (l = 0; l <
|
|
1800
|
-
if (l !==
|
|
1801
|
-
var s =
|
|
1802
|
-
|
|
1803
|
-
|
|
1965
|
+
for (l = 0; l < o.length; ++l)
|
|
1966
|
+
o[l].indexOf("utf8=") === 0 && (o[l] === zi ? c = "utf-8" : o[l] === ki && (c = "iso-8859-1"), u = l, l = o.length);
|
|
1967
|
+
for (l = 0; l < o.length; ++l)
|
|
1968
|
+
if (l !== u) {
|
|
1969
|
+
var s = o[l], p = s.indexOf("]="), f = p === -1 ? s.indexOf("=") : p + 1, d, y;
|
|
1970
|
+
if (f === -1 ? (d = t.decoder(s, S.decoder, c, "key"), y = t.strictNullHandling ? null : "") : (d = t.decoder(s.slice(0, f), S.decoder, c, "key"), d !== null && (y = _.maybeMap(
|
|
1971
|
+
Gt(
|
|
1972
|
+
s.slice(f + 1),
|
|
1973
|
+
t,
|
|
1974
|
+
pr(n[d]) ? n[d].length : 0
|
|
1975
|
+
),
|
|
1804
1976
|
function(g) {
|
|
1805
|
-
return t.decoder(g,
|
|
1977
|
+
return t.decoder(g, S.decoder, c, "value");
|
|
1806
1978
|
}
|
|
1807
|
-
)), y && t.interpretNumericEntities &&
|
|
1808
|
-
|
|
1809
|
-
|
|
1979
|
+
))), y && t.interpretNumericEntities && c === "iso-8859-1" && (y = ji(String(y))), s.indexOf("[]=") > -1 && (y = pr(y) ? [y] : y), t.comma && pr(y) && y.length > t.arrayLimit) {
|
|
1980
|
+
if (t.throwOnLimitExceeded)
|
|
1981
|
+
throw new RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
1982
|
+
y = _.combine([], y, t.arrayLimit, t.plainObjects);
|
|
1983
|
+
}
|
|
1984
|
+
if (d !== null) {
|
|
1985
|
+
var h = Oe.call(n, d);
|
|
1986
|
+
h && (t.duplicates === "combine" || s.indexOf("[]=") > -1) ? n[d] = _.combine(
|
|
1987
|
+
n[d],
|
|
1988
|
+
y,
|
|
1989
|
+
t.arrayLimit,
|
|
1990
|
+
t.plainObjects
|
|
1991
|
+
) : (!h || t.duplicates === "last") && (n[d] = y);
|
|
1992
|
+
}
|
|
1810
1993
|
}
|
|
1811
1994
|
return n;
|
|
1812
|
-
},
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1995
|
+
}, Vi = function(r, e, t, n) {
|
|
1996
|
+
var a = 0;
|
|
1997
|
+
if (r.length > 0 && r[r.length - 1] === "[]") {
|
|
1998
|
+
var i = r.slice(0, -1).join("");
|
|
1999
|
+
a = Array.isArray(e) && e[i] ? e[i].length : 0;
|
|
2000
|
+
}
|
|
2001
|
+
for (var o = n ? e : Gt(e, t, a), u = r.length - 1; u >= 0; --u) {
|
|
2002
|
+
var l, c = r[u];
|
|
2003
|
+
if (c === "[]" && t.parseArrays)
|
|
2004
|
+
_.isOverflow(o) ? l = o : l = t.allowEmptyArrays && (o === "" || t.strictNullHandling && o === null) ? [] : _.combine(
|
|
2005
|
+
[],
|
|
2006
|
+
o,
|
|
2007
|
+
t.arrayLimit,
|
|
2008
|
+
t.plainObjects
|
|
2009
|
+
);
|
|
1817
2010
|
else {
|
|
1818
|
-
|
|
1819
|
-
var
|
|
1820
|
-
!t.parseArrays &&
|
|
2011
|
+
l = t.plainObjects ? { __proto__: null } : {};
|
|
2012
|
+
var s = c.charAt(0) === "[" && c.charAt(c.length - 1) === "]" ? c.slice(1, -1) : c, p = t.decodeDotInKeys ? s.replace(/%2E/g, ".") : s, f = parseInt(p, 10), d = !isNaN(f) && c !== p && String(f) === p && f >= 0 && t.parseArrays;
|
|
2013
|
+
if (!t.parseArrays && p === "")
|
|
2014
|
+
l = { 0: o };
|
|
2015
|
+
else if (d && f < t.arrayLimit)
|
|
2016
|
+
l = [], l[f] = o;
|
|
2017
|
+
else {
|
|
2018
|
+
if (d && t.throwOnLimitExceeded)
|
|
2019
|
+
throw new RangeError("Array limit exceeded. Only " + t.arrayLimit + " element" + (t.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
2020
|
+
d ? (l[f] = o, _.markOverflow(l, f)) : p !== "__proto__" && (l[p] = o);
|
|
2021
|
+
}
|
|
1821
2022
|
}
|
|
1822
|
-
|
|
2023
|
+
o = l;
|
|
2024
|
+
}
|
|
2025
|
+
return o;
|
|
2026
|
+
}, Qi = function(e, t) {
|
|
2027
|
+
var n = t.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e;
|
|
2028
|
+
if (t.depth <= 0)
|
|
2029
|
+
return !t.plainObjects && Oe.call(Object.prototype, n) && !t.allowPrototypes ? void 0 : [n];
|
|
2030
|
+
var a = /(\[[^[\]]*])/, i = /(\[[^[\]]*])/g, o = a.exec(n), u = o ? n.slice(0, o.index) : n, l = [];
|
|
2031
|
+
if (u) {
|
|
2032
|
+
if (!t.plainObjects && Oe.call(Object.prototype, u) && !t.allowPrototypes)
|
|
2033
|
+
return;
|
|
2034
|
+
l[l.length] = u;
|
|
1823
2035
|
}
|
|
1824
|
-
|
|
1825
|
-
|
|
2036
|
+
for (var c = 0; (o = i.exec(n)) !== null && c < t.depth; ) {
|
|
2037
|
+
c += 1;
|
|
2038
|
+
var s = o[1].slice(1, -1);
|
|
2039
|
+
if (!t.plainObjects && Oe.call(Object.prototype, s) && !t.allowPrototypes)
|
|
2040
|
+
return;
|
|
2041
|
+
l[l.length] = o[1];
|
|
2042
|
+
}
|
|
2043
|
+
if (o) {
|
|
2044
|
+
if (t.strictDepth === !0)
|
|
2045
|
+
throw new RangeError("Input depth exceeded depth option of " + t.depth + " and strictDepth is true");
|
|
2046
|
+
l[l.length] = "[" + n.slice(o.index) + "]";
|
|
2047
|
+
}
|
|
2048
|
+
return l;
|
|
2049
|
+
}, Ji = function(e, t, n, a) {
|
|
1826
2050
|
if (e) {
|
|
1827
|
-
var
|
|
1828
|
-
if (
|
|
1829
|
-
|
|
1830
|
-
return;
|
|
1831
|
-
s.push(u);
|
|
1832
|
-
}
|
|
1833
|
-
for (var p = 0; n.depth > 0 && (l = f.exec(o)) !== null && p < n.depth; ) {
|
|
1834
|
-
if (p += 1, !n.plainObjects && rr.call(Object.prototype, l[1].slice(1, -1)) && !n.allowPrototypes)
|
|
1835
|
-
return;
|
|
1836
|
-
s.push(l[1]);
|
|
1837
|
-
}
|
|
1838
|
-
if (l) {
|
|
1839
|
-
if (n.strictDepth === !0)
|
|
1840
|
-
throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
|
|
1841
|
-
s.push("[" + o.slice(l.index) + "]");
|
|
1842
|
-
}
|
|
1843
|
-
return Ka(s, t, n, a);
|
|
2051
|
+
var i = Qi(e, n);
|
|
2052
|
+
if (i)
|
|
2053
|
+
return Vi(i, t, n, a);
|
|
1844
2054
|
}
|
|
1845
|
-
},
|
|
2055
|
+
}, Xi = function(e) {
|
|
1846
2056
|
if (!e)
|
|
1847
|
-
return
|
|
2057
|
+
return S;
|
|
1848
2058
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
1849
2059
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
1850
2060
|
if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
|
|
@@ -1853,64 +2063,68 @@ var it = re, te = _n, ua = zn, ca = pe, ve = it("%WeakMap%", !0), ge = it("%Map%
|
|
|
1853
2063
|
throw new TypeError("Decoder has to be a function.");
|
|
1854
2064
|
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
1855
2065
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1856
|
-
|
|
2066
|
+
if (typeof e.throwOnLimitExceeded < "u" && typeof e.throwOnLimitExceeded != "boolean")
|
|
2067
|
+
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
2068
|
+
var t = typeof e.charset > "u" ? S.charset : e.charset, n = typeof e.duplicates > "u" ? S.duplicates : e.duplicates;
|
|
1857
2069
|
if (n !== "combine" && n !== "first" && n !== "last")
|
|
1858
2070
|
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
1859
|
-
var a = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 :
|
|
2071
|
+
var a = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : S.allowDots : !!e.allowDots;
|
|
1860
2072
|
return {
|
|
1861
2073
|
allowDots: a,
|
|
1862
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays :
|
|
1863
|
-
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes :
|
|
1864
|
-
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse :
|
|
1865
|
-
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit :
|
|
2074
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : S.allowEmptyArrays,
|
|
2075
|
+
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : S.allowPrototypes,
|
|
2076
|
+
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : S.allowSparse,
|
|
2077
|
+
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : S.arrayLimit,
|
|
1866
2078
|
charset: t,
|
|
1867
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
1868
|
-
comma: typeof e.comma == "boolean" ? e.comma :
|
|
1869
|
-
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys :
|
|
1870
|
-
decoder: typeof e.decoder == "function" ? e.decoder :
|
|
1871
|
-
delimiter: typeof e.delimiter == "string" ||
|
|
2079
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : S.charsetSentinel,
|
|
2080
|
+
comma: typeof e.comma == "boolean" ? e.comma : S.comma,
|
|
2081
|
+
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : S.decodeDotInKeys,
|
|
2082
|
+
decoder: typeof e.decoder == "function" ? e.decoder : S.decoder,
|
|
2083
|
+
delimiter: typeof e.delimiter == "string" || _.isRegExp(e.delimiter) ? e.delimiter : S.delimiter,
|
|
1872
2084
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
1873
|
-
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth :
|
|
2085
|
+
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : S.depth,
|
|
1874
2086
|
duplicates: n,
|
|
1875
2087
|
ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
|
|
1876
|
-
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities :
|
|
1877
|
-
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit :
|
|
2088
|
+
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : S.interpretNumericEntities,
|
|
2089
|
+
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : S.parameterLimit,
|
|
1878
2090
|
parseArrays: e.parseArrays !== !1,
|
|
1879
|
-
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects :
|
|
1880
|
-
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth :
|
|
1881
|
-
|
|
2091
|
+
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : S.plainObjects,
|
|
2092
|
+
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : S.strictDepth,
|
|
2093
|
+
strictMerge: typeof e.strictMerge == "boolean" ? !!e.strictMerge : S.strictMerge,
|
|
2094
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : S.strictNullHandling,
|
|
2095
|
+
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
1882
2096
|
};
|
|
1883
|
-
},
|
|
1884
|
-
var t =
|
|
2097
|
+
}, Yi = function(r, e) {
|
|
2098
|
+
var t = Xi(e);
|
|
1885
2099
|
if (r === "" || r === null || typeof r > "u")
|
|
1886
|
-
return t.plainObjects ?
|
|
1887
|
-
for (var n = typeof r == "string" ?
|
|
1888
|
-
var
|
|
1889
|
-
a =
|
|
1890
|
-
}
|
|
1891
|
-
return t.allowSparse === !0 ? a :
|
|
1892
|
-
},
|
|
1893
|
-
formats:
|
|
1894
|
-
parse:
|
|
1895
|
-
stringify:
|
|
2100
|
+
return t.plainObjects ? { __proto__: null } : {};
|
|
2101
|
+
for (var n = typeof r == "string" ? Ki(r, t) : r, a = t.plainObjects ? { __proto__: null } : {}, i = Object.keys(n), o = 0; o < i.length; ++o) {
|
|
2102
|
+
var u = i[o], l = Ji(u, n[u], t, typeof r == "string");
|
|
2103
|
+
a = _.merge(a, l, t);
|
|
2104
|
+
}
|
|
2105
|
+
return t.allowSparse === !0 ? a : _.compact(a);
|
|
2106
|
+
}, Zi = Hi, eo = Yi, ro = _r, to = {
|
|
2107
|
+
formats: ro,
|
|
2108
|
+
parse: eo,
|
|
2109
|
+
stringify: Zi
|
|
1896
2110
|
};
|
|
1897
|
-
const
|
|
1898
|
-
function
|
|
2111
|
+
const no = /* @__PURE__ */ ft(to);
|
|
2112
|
+
function lt(r) {
|
|
1899
2113
|
if (!Array.isArray(r)) throw new TypeError("Middleware stack must be an array!");
|
|
1900
2114
|
for (const e of r)
|
|
1901
2115
|
if (typeof e != "function") throw new TypeError("Middleware must be composed of functions!");
|
|
1902
2116
|
return function(e, t) {
|
|
1903
2117
|
let n = -1;
|
|
1904
2118
|
return a(0);
|
|
1905
|
-
function a(
|
|
1906
|
-
if (
|
|
1907
|
-
n =
|
|
1908
|
-
let
|
|
1909
|
-
if (
|
|
2119
|
+
function a(i) {
|
|
2120
|
+
if (i <= n) return Promise.reject(new Error("next() called multiple times"));
|
|
2121
|
+
n = i;
|
|
2122
|
+
let o = r[i];
|
|
2123
|
+
if (i === r.length && (o = t), !o) return Promise.resolve();
|
|
1910
2124
|
try {
|
|
1911
|
-
return Promise.resolve(
|
|
1912
|
-
} catch (
|
|
1913
|
-
return Promise.reject(
|
|
2125
|
+
return Promise.resolve(o(e, a.bind(null, i + 1)));
|
|
2126
|
+
} catch (u) {
|
|
2127
|
+
return Promise.reject(u);
|
|
1914
2128
|
}
|
|
1915
2129
|
}
|
|
1916
2130
|
};
|
|
@@ -1926,7 +2140,7 @@ const w = {
|
|
|
1926
2140
|
configPending: !1,
|
|
1927
2141
|
configCb: []
|
|
1928
2142
|
};
|
|
1929
|
-
async function
|
|
2143
|
+
async function ao(r) {
|
|
1930
2144
|
if (w.config)
|
|
1931
2145
|
return w.config;
|
|
1932
2146
|
if (w.configPending)
|
|
@@ -1937,12 +2151,12 @@ async function ro(r) {
|
|
|
1937
2151
|
const e = await r();
|
|
1938
2152
|
return w.config = e, w.configCb.forEach((t) => t(e)), w.configCb = [], w.configPending = !1, e;
|
|
1939
2153
|
}
|
|
1940
|
-
class
|
|
2154
|
+
class io {
|
|
1941
2155
|
constructor(e = {}, t) {
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
2156
|
+
P(this, "options");
|
|
2157
|
+
P(this, "apis", []);
|
|
2158
|
+
P(this, "middlewares", []);
|
|
2159
|
+
P(this, "defaultMiddlewares", [
|
|
1946
2160
|
async (e, t) => {
|
|
1947
2161
|
try {
|
|
1948
2162
|
await t();
|
|
@@ -1951,17 +2165,17 @@ class to {
|
|
|
1951
2165
|
}
|
|
1952
2166
|
}
|
|
1953
2167
|
]);
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
2168
|
+
P(this, "api404");
|
|
2169
|
+
P(this, "fnMiddleware");
|
|
2170
|
+
P(this, "getId");
|
|
2171
|
+
P(this, "extensions", /* @__PURE__ */ new Map());
|
|
2172
|
+
P(this, "onDestroyCbs", []);
|
|
2173
|
+
P(this, "config");
|
|
2174
|
+
P(this, "apiList");
|
|
1961
2175
|
this.options = { ...e, baseUrl: e.baseUrl ?? "/" }, this.options.baseUrl = this.options.baseUrl.split("/").map((a) => encodeURIComponent(a)).join("/"), this.middlewares.push(...this.defaultMiddlewares), this.middlewares.push(...e.middlewares || []);
|
|
1962
|
-
const n = ((e == null ? void 0 : e.apis) ?? []).sort((a,
|
|
1963
|
-
const
|
|
1964
|
-
return
|
|
2176
|
+
const n = ((e == null ? void 0 : e.apis) ?? []).sort((a, i) => {
|
|
2177
|
+
const o = i.path.substr(-1, 1), u = o === "*" ? 0 : o === "/" ? 0.1 : 0.2, l = a.path.substr(-1, 1), c = l === "*" ? 0 : l === "/" ? 0.1 : 0.2;
|
|
2178
|
+
return i.path.split("/").length + u - (a.path.split("/").length + c);
|
|
1965
2179
|
}).map((a) => ({
|
|
1966
2180
|
...a,
|
|
1967
2181
|
// path: v.path
|
|
@@ -1973,91 +2187,91 @@ class to {
|
|
|
1973
2187
|
this.apiList = n, this.apis = n.filter((a) => !a.disabled), this.api404 = {
|
|
1974
2188
|
path: "*",
|
|
1975
2189
|
method: "all",
|
|
1976
|
-
action: (a,
|
|
1977
|
-
throw
|
|
2190
|
+
action: (a, i) => {
|
|
2191
|
+
throw i.res.status = 404, Error("Not Found");
|
|
1978
2192
|
}
|
|
1979
|
-
}, this.fnMiddleware =
|
|
2193
|
+
}, this.fnMiddleware = lt(this.middlewares), this.getId = Kt({ workerId: e.workId }), this.init(t);
|
|
1980
2194
|
}
|
|
1981
2195
|
async init(e) {
|
|
1982
|
-
var t, n, a,
|
|
2196
|
+
var t, n, a, i;
|
|
1983
2197
|
try {
|
|
1984
2198
|
if (this.options.config) {
|
|
1985
|
-
const
|
|
1986
|
-
this.config =
|
|
2199
|
+
const o = await this.options.config();
|
|
2200
|
+
this.config = o;
|
|
1987
2201
|
}
|
|
1988
|
-
await ((n = (t = this.options) == null ? void 0 : t.onInit) == null ? void 0 : n.call(t, this)), w.app = this, w.appPending = !1, w.appCb.forEach((
|
|
1989
|
-
} catch (
|
|
1990
|
-
e == null || e(
|
|
2202
|
+
await ((n = (t = this.options) == null ? void 0 : t.onInit) == null ? void 0 : n.call(t, this)), w.app = this, w.appPending = !1, w.appCb.forEach((o) => o(this)), await ((i = (a = this.options) == null ? void 0 : a.onReady) == null ? void 0 : i.call(a, this)), e == null || e(null, this);
|
|
2203
|
+
} catch (o) {
|
|
2204
|
+
e == null || e(o, this);
|
|
1991
2205
|
}
|
|
1992
2206
|
}
|
|
1993
2207
|
/**
|
|
1994
2208
|
* 调用 API
|
|
1995
2209
|
*/
|
|
1996
2210
|
async fetchRaw(e, t, n) {
|
|
1997
|
-
var
|
|
1998
|
-
const a = (n == null ? void 0 : n.url) ?? e,
|
|
2211
|
+
var f, d;
|
|
2212
|
+
const a = (n == null ? void 0 : n.url) ?? e, i = new URL(a, "http://localhost"), o = this.getId(), u = {
|
|
1999
2213
|
baseUrl: this.options.baseUrl ?? "",
|
|
2000
2214
|
headers: (n == null ? void 0 : n.headers) ?? {},
|
|
2001
2215
|
method: (n == null ? void 0 : n.method) ?? this.options.defaultMethod ?? "post",
|
|
2002
2216
|
body: (n == null ? void 0 : n.body) ?? t,
|
|
2003
2217
|
params: {},
|
|
2004
|
-
path:
|
|
2005
|
-
queryString: n != null && n.query ? "?" +
|
|
2006
|
-
query: (n == null ? void 0 : n.query) ?? Object.fromEntries(
|
|
2218
|
+
path: i.pathname,
|
|
2219
|
+
queryString: n != null && n.query ? "?" + no.stringify(n.query) : i.search,
|
|
2220
|
+
query: (n == null ? void 0 : n.query) ?? Object.fromEntries(i.searchParams),
|
|
2007
2221
|
url: a,
|
|
2008
|
-
reqId:
|
|
2009
|
-
requestId:
|
|
2222
|
+
reqId: o,
|
|
2223
|
+
requestId: o,
|
|
2010
2224
|
ip: (n == null ? void 0 : n.ip) ?? "",
|
|
2011
2225
|
namespace: (n == null ? void 0 : n.namespace) ?? "default"
|
|
2012
2226
|
};
|
|
2013
2227
|
let l = this.api404;
|
|
2014
2228
|
for (let y = 0; y < this.apis.length; y++) {
|
|
2015
|
-
const
|
|
2016
|
-
if ((
|
|
2017
|
-
const
|
|
2018
|
-
if (
|
|
2019
|
-
|
|
2229
|
+
const h = this.apis[y];
|
|
2230
|
+
if ((h.namespace ?? "default") === u.namespace && (h.method === "all" || h.method === ((d = (f = u.method) == null ? void 0 : f.toLowerCase) == null ? void 0 : d.call(f)))) {
|
|
2231
|
+
const A = Qt((this.options.baseUrl ?? "") + h.path, { loose: !1, trailing: !1 })(u.path);
|
|
2232
|
+
if (A) {
|
|
2233
|
+
u.params = A.params, l = h;
|
|
2020
2234
|
break;
|
|
2021
2235
|
}
|
|
2022
2236
|
}
|
|
2023
2237
|
}
|
|
2024
|
-
const
|
|
2238
|
+
const c = {
|
|
2025
2239
|
body: void 0,
|
|
2026
2240
|
headers: {},
|
|
2027
2241
|
status: 200
|
|
2028
2242
|
}, s = {
|
|
2029
2243
|
app: this,
|
|
2030
2244
|
currentAPI: l,
|
|
2031
|
-
req:
|
|
2032
|
-
request:
|
|
2033
|
-
reqId:
|
|
2034
|
-
requestId:
|
|
2035
|
-
res:
|
|
2036
|
-
response:
|
|
2245
|
+
req: u,
|
|
2246
|
+
request: u,
|
|
2247
|
+
reqId: o,
|
|
2248
|
+
requestId: o,
|
|
2249
|
+
res: c,
|
|
2250
|
+
response: c,
|
|
2037
2251
|
platform: n == null ? void 0 : n.platform,
|
|
2038
2252
|
config: this.config,
|
|
2039
2253
|
meta: l.meta ?? {},
|
|
2040
2254
|
service: {}
|
|
2041
2255
|
}, p = async () => {
|
|
2042
|
-
var g,
|
|
2043
|
-
let y =
|
|
2256
|
+
var g, b;
|
|
2257
|
+
let y = u.body;
|
|
2044
2258
|
if (l.bodySchema)
|
|
2045
2259
|
if ((g = l.bodySchema) != null && g.parse)
|
|
2046
2260
|
try {
|
|
2047
|
-
y = l.bodySchema.parse(
|
|
2048
|
-
} catch (
|
|
2049
|
-
|
|
2050
|
-
const
|
|
2051
|
-
throw
|
|
2261
|
+
y = l.bodySchema.parse(u.body);
|
|
2262
|
+
} catch (A) {
|
|
2263
|
+
c.status = 400;
|
|
2264
|
+
const m = (b = A == null ? void 0 : A.issues) == null ? void 0 : b[0];
|
|
2265
|
+
throw m && (m.message = (m.path ?? []).join(".") + " " + m.message), m ? { ...m, code: 0 } : new Error("参数错误");
|
|
2052
2266
|
}
|
|
2053
2267
|
else
|
|
2054
|
-
throw
|
|
2055
|
-
const
|
|
2056
|
-
|
|
2268
|
+
throw c.status = 500, new Error("bodySchema must be ZodType");
|
|
2269
|
+
const h = await l.action(y, s);
|
|
2270
|
+
h !== void 0 && (c.body = h);
|
|
2057
2271
|
};
|
|
2058
2272
|
if (l.middlewares && l.middlewares.length > 0) {
|
|
2059
|
-
const y =
|
|
2060
|
-
n != null && n.noPublicMiddleware ? await
|
|
2273
|
+
const y = lt(l.middlewares), h = async () => await y(s, p);
|
|
2274
|
+
n != null && n.noPublicMiddleware ? await h : await this.fnMiddleware(s, h);
|
|
2061
2275
|
} else
|
|
2062
2276
|
n != null && n.noPublicMiddleware ? await p() : await this.fnMiddleware(s, p);
|
|
2063
2277
|
return s.res;
|
|
@@ -2070,8 +2284,8 @@ class to {
|
|
|
2070
2284
|
const a = {
|
|
2071
2285
|
...n ?? {},
|
|
2072
2286
|
noPublicMiddleware: !0
|
|
2073
|
-
},
|
|
2074
|
-
return await this.fetch(
|
|
2287
|
+
}, i = (n == null ? void 0 : n.url) ?? `${this.baseUrl}${e}`;
|
|
2288
|
+
return await this.fetch(i, t, a);
|
|
2075
2289
|
}
|
|
2076
2290
|
mount(e, t) {
|
|
2077
2291
|
this.extensions.set(e, t);
|
|
@@ -2089,42 +2303,42 @@ class to {
|
|
|
2089
2303
|
return this.options.baseUrl ?? "";
|
|
2090
2304
|
}
|
|
2091
2305
|
}
|
|
2092
|
-
const
|
|
2093
|
-
function
|
|
2306
|
+
const oo = Symbol("soon-api");
|
|
2307
|
+
function yo(r) {
|
|
2094
2308
|
const e = { ...r };
|
|
2095
|
-
return e._soon_symbol =
|
|
2309
|
+
return e._soon_symbol = oo, e;
|
|
2096
2310
|
}
|
|
2097
|
-
const
|
|
2098
|
-
function
|
|
2311
|
+
const lo = Symbol("soon-service");
|
|
2312
|
+
function ho(r) {
|
|
2099
2313
|
async function e() {
|
|
2100
|
-
var
|
|
2314
|
+
var i;
|
|
2101
2315
|
const t = r.service;
|
|
2102
2316
|
let n = w.services.get(t);
|
|
2103
2317
|
if (n)
|
|
2104
2318
|
return n;
|
|
2105
2319
|
if (w.servicePending.get(t)) {
|
|
2106
|
-
let
|
|
2107
|
-
return
|
|
2108
|
-
|
|
2320
|
+
let o = w.serviceCb.get(t);
|
|
2321
|
+
return o || (o = [], w.serviceCb.set(t, o)), new Promise((u) => {
|
|
2322
|
+
o.push((l) => u(l));
|
|
2109
2323
|
});
|
|
2110
2324
|
}
|
|
2111
|
-
return w.servicePending.set(t, !0), await new Promise((
|
|
2112
|
-
w.app ?
|
|
2113
|
-
}), n = await t(w.app), w.services.set(t, n), (
|
|
2325
|
+
return w.servicePending.set(t, !0), await new Promise((o) => {
|
|
2326
|
+
w.app ? o(1) : w.appCb.push(() => o(1));
|
|
2327
|
+
}), n = await t(w.app), w.services.set(t, n), (i = w.serviceCb.get(t)) == null || i.forEach((o) => o(n)), w.serviceCb.delete(t), w.servicePending.delete(t), n;
|
|
2114
2328
|
}
|
|
2115
|
-
return e._soon_symbol =
|
|
2329
|
+
return e._soon_symbol = lo, e.serviceName = (r == null ? void 0 : r.serviceName) ?? "", e.autoInject = (r == null ? void 0 : r.autoInject) ?? !1, e.enableClient = (r == null ? void 0 : r.enableClient) ?? !1, e;
|
|
2116
2330
|
}
|
|
2117
|
-
function
|
|
2331
|
+
function mo(r) {
|
|
2118
2332
|
return r;
|
|
2119
2333
|
}
|
|
2120
|
-
function
|
|
2334
|
+
function vo(r) {
|
|
2121
2335
|
return async function() {
|
|
2122
|
-
return await
|
|
2336
|
+
return await ao(r);
|
|
2123
2337
|
};
|
|
2124
2338
|
}
|
|
2125
|
-
async function
|
|
2339
|
+
async function go(r) {
|
|
2126
2340
|
return await new Promise((e, t) => {
|
|
2127
|
-
new
|
|
2341
|
+
new io(r, (n, a) => {
|
|
2128
2342
|
if (n) {
|
|
2129
2343
|
t(n);
|
|
2130
2344
|
return;
|
|
@@ -2133,33 +2347,33 @@ async function mo(r) {
|
|
|
2133
2347
|
});
|
|
2134
2348
|
});
|
|
2135
2349
|
}
|
|
2136
|
-
class
|
|
2350
|
+
class wo extends Error {
|
|
2137
2351
|
constructor(t, n) {
|
|
2138
2352
|
super(t);
|
|
2139
|
-
|
|
2353
|
+
P(this, "code");
|
|
2140
2354
|
this.code = n;
|
|
2141
2355
|
}
|
|
2142
2356
|
}
|
|
2143
|
-
class
|
|
2357
|
+
class So extends Error {
|
|
2144
2358
|
constructor(t, n) {
|
|
2145
2359
|
super(t);
|
|
2146
|
-
|
|
2360
|
+
P(this, "status");
|
|
2147
2361
|
this.status = n;
|
|
2148
2362
|
}
|
|
2149
2363
|
}
|
|
2150
|
-
function
|
|
2364
|
+
function bo({
|
|
2151
2365
|
pingTime: r = 0,
|
|
2152
2366
|
action: e
|
|
2153
2367
|
}) {
|
|
2154
2368
|
let t = () => null;
|
|
2155
|
-
const n = new
|
|
2156
|
-
let
|
|
2157
|
-
r > 0 && (
|
|
2158
|
-
|
|
2369
|
+
const n = new vt((a) => {
|
|
2370
|
+
let i;
|
|
2371
|
+
r > 0 && (i = setInterval(() => {
|
|
2372
|
+
u.closed ? clearInterval(i) : a.next({ event: "ping", message: `: ping
|
|
2159
2373
|
|
|
2160
2374
|
` });
|
|
2161
2375
|
}, r));
|
|
2162
|
-
const
|
|
2376
|
+
const o = [], u = {
|
|
2163
2377
|
send(l) {
|
|
2164
2378
|
try {
|
|
2165
2379
|
a.next({
|
|
@@ -2169,39 +2383,39 @@ function go({
|
|
|
2169
2383
|
|
|
2170
2384
|
`
|
|
2171
2385
|
});
|
|
2172
|
-
} catch (
|
|
2173
|
-
|
|
2386
|
+
} catch (c) {
|
|
2387
|
+
u.error(c.message);
|
|
2174
2388
|
}
|
|
2175
2389
|
},
|
|
2176
2390
|
error(l) {
|
|
2177
2391
|
a.next({ event: "error", data: l, message: `event: error
|
|
2178
2392
|
data: ${l}
|
|
2179
2393
|
|
|
2180
|
-
` }), a.complete(),
|
|
2394
|
+
` }), a.complete(), u.closed = !0, o.forEach((c) => c == null ? void 0 : c());
|
|
2181
2395
|
},
|
|
2182
2396
|
close() {
|
|
2183
2397
|
a.next({ event: "close", message: `event: close
|
|
2184
2398
|
data:
|
|
2185
2399
|
|
|
2186
|
-
` }), a.complete(),
|
|
2400
|
+
` }), a.complete(), u.closed = !0, i && clearInterval(i), o.forEach((l) => l == null ? void 0 : l());
|
|
2187
2401
|
},
|
|
2188
2402
|
closed: !1,
|
|
2189
2403
|
onClosed(l) {
|
|
2190
|
-
|
|
2404
|
+
o.push(l);
|
|
2191
2405
|
}
|
|
2192
2406
|
};
|
|
2193
2407
|
t = () => {
|
|
2194
|
-
|
|
2195
|
-
}, e(
|
|
2408
|
+
u.closed || u.close();
|
|
2409
|
+
}, e(u);
|
|
2196
2410
|
});
|
|
2197
2411
|
return n.streamClose = () => t == null ? void 0 : t(), n;
|
|
2198
2412
|
}
|
|
2199
|
-
function
|
|
2200
|
-
return r instanceof
|
|
2413
|
+
function fo(r) {
|
|
2414
|
+
return r instanceof vt;
|
|
2201
2415
|
}
|
|
2202
|
-
function
|
|
2203
|
-
if (
|
|
2204
|
-
const e = new
|
|
2416
|
+
function Eo(r) {
|
|
2417
|
+
if (fo(r)) {
|
|
2418
|
+
const e = new zt();
|
|
2205
2419
|
return r.subscribe({
|
|
2206
2420
|
next(t) {
|
|
2207
2421
|
e.write(t.message);
|
|
@@ -2223,19 +2437,19 @@ function wo(r) {
|
|
|
2223
2437
|
throw new Error("Not a valid SSE body");
|
|
2224
2438
|
}
|
|
2225
2439
|
export {
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2440
|
+
wo as BizError,
|
|
2441
|
+
vt as Observable,
|
|
2442
|
+
io as SoonApp,
|
|
2443
|
+
So as SoonError,
|
|
2444
|
+
go as createSoonApp,
|
|
2445
|
+
yo as defineApi,
|
|
2446
|
+
vo as defineConfig,
|
|
2447
|
+
mo as defineMiddleware,
|
|
2448
|
+
ho as defineService,
|
|
2449
|
+
fo as isSSEBody,
|
|
2450
|
+
Eo as resolveSSEBody,
|
|
2451
|
+
oo as soonApiSymbol,
|
|
2452
|
+
lo as soonServiceSymbol,
|
|
2453
|
+
bo as useSSE,
|
|
2454
|
+
Kt as useSoonIdGen
|
|
2241
2455
|
};
|