@everymatrix/loyalty-shop 0.1.15 → 0.1.18
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/components/{LoyaltyPagination-5mlynRsD.js → LoyaltyPagination-Bdx-smp6.js} +1125 -1151
- package/components/LoyaltyPagination-ClX3N4HA.cjs +16 -0
- package/components/LoyaltyPagination-DdJI2Ptf.cjs +16 -0
- package/components/{LoyaltyPagination-WMbwps-Y.js → LoyaltyPagination-kvqB9vki.js} +1497 -1523
- package/components/{LoyaltyPointsCard-JV_Vm052.js → LoyaltyPointsCard-CpUgbUoh.js} +1 -1
- package/components/{LoyaltyPointsCard-Ctxmn0pn.cjs → LoyaltyPointsCard-DAwt9_VW.cjs} +1 -1
- package/components/{LoyaltyPointsCard-DnyOr6RH.js → LoyaltyPointsCard-Dte4kVve.js} +1 -1
- package/components/{LoyaltyPointsCard-BthOcyvZ.cjs → LoyaltyPointsCard-a-ERcIbF.cjs} +1 -1
- package/components/{LoyaltyShop-DORwVB2x.js → LoyaltyShop-B5kW3Kng.js} +4 -4
- package/components/{LoyaltyShop-CewjK7_m.js → LoyaltyShop-D4hhy3SS.js} +4 -4
- package/components/{LoyaltyShop-D78F7HNs.cjs → LoyaltyShop-Dvy8bKVO.cjs} +1 -1
- package/components/{LoyaltyShop-BvDigxmH.cjs → LoyaltyShop-ICV4lgAz.cjs} +1 -1
- package/components/{LoyaltyShopItem-qD3S4Ug2.js → LoyaltyShopItem-B-9ignkf.js} +3 -3
- package/components/{LoyaltyShopItem-DETZUW3x.cjs → LoyaltyShopItem-DCnDun5S.cjs} +1 -1
- package/components/{LoyaltyShopItem-BDOJ0nlu.cjs → LoyaltyShopItem-DY4h5OAR.cjs} +1 -1
- package/components/{LoyaltyShopItem-B5HPzm1z.js → LoyaltyShopItem-Dwm024JF.js} +3 -3
- package/es2015/loyalty-shop.cjs +1 -1
- package/es2015/loyalty-shop.js +2 -2
- package/esnext/loyalty-shop.cjs +1 -1
- package/esnext/loyalty-shop.js +2 -2
- package/package.json +1 -1
- package/components/LoyaltyPagination-D7TGgpOl.cjs +0 -16
- package/components/LoyaltyPagination-DoaWx3gW.cjs +0 -16
|
@@ -5,21 +5,21 @@ typeof globalThis.HTMLElement > "u" && (globalThis.HTMLElement = class {
|
|
|
5
5
|
} });
|
|
6
6
|
const As = "5";
|
|
7
7
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(As);
|
|
8
|
-
const Hs = 1, Ms = 2,
|
|
9
|
-
var
|
|
10
|
-
const
|
|
8
|
+
const Hs = 1, Ms = 2, Kn = 4, Os = 8, Ns = 16, Ps = 1, $s = 2, ei = "[", an = "[!", An = "[?", on = "]", ct = {}, Z = Symbol("uninitialized"), Is = "http://www.w3.org/1999/xhtml", ti = !1;
|
|
9
|
+
var ri = Array.isArray, Bs = Array.prototype.indexOf, rr = Array.prototype.includes, pr = Array.from, nr = Object.keys, Ut = Object.defineProperty, lt = Object.getOwnPropertyDescriptor, Ls = Object.getOwnPropertyDescriptors, Cs = Object.prototype, Rs = Array.prototype, ni = Object.getPrototypeOf, Hn = Object.isExtensible;
|
|
10
|
+
const Le = () => {
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function ii(e) {
|
|
13
13
|
for (var t = 0; t < e.length; t++)
|
|
14
14
|
e[t]();
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function si() {
|
|
17
17
|
var e, t, r = new Promise((n, i) => {
|
|
18
18
|
e = n, t = i;
|
|
19
19
|
});
|
|
20
20
|
return { promise: r, resolve: e, reject: t };
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Q = 2, dt = 4, jt = 8, ai = 1 << 24, be = 16, _e = 32, Ne = 64, Ur = 128, ve = 512, J = 1024, q = 2048, xe = 4096, re = 8192, ce = 16384, tt = 32768, Fr = 1 << 25, pt = 65536, ir = 1 << 17, Ds = 1 << 18, rt = 1 << 19, oi = 1 << 20, He = 1 << 25, Qe = 65536, sr = 1 << 21, ft = 1 << 22, Ve = 1 << 23, Zt = Symbol("$state"), Us = Symbol("legacy props"), Fs = Symbol(""), ui = Symbol("attributes"), Gr = Symbol("class"), Gs = Symbol("style"), kr = Symbol("text"), Vt = new class extends Error {
|
|
23
23
|
name = "StaleReactionError";
|
|
24
24
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
25
25
|
}(), ks = (
|
|
@@ -68,31 +68,31 @@ function _r(e) {
|
|
|
68
68
|
function ta() {
|
|
69
69
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
70
70
|
}
|
|
71
|
-
let
|
|
72
|
-
function
|
|
73
|
-
|
|
71
|
+
let C = !1;
|
|
72
|
+
function Be(e) {
|
|
73
|
+
C = e;
|
|
74
74
|
}
|
|
75
75
|
let B;
|
|
76
|
-
function
|
|
76
|
+
function ue(e) {
|
|
77
77
|
if (e === null)
|
|
78
|
-
throw _r(),
|
|
78
|
+
throw _r(), ct;
|
|
79
79
|
return B = e;
|
|
80
80
|
}
|
|
81
81
|
function mr() {
|
|
82
|
-
return
|
|
82
|
+
return ue(/* @__PURE__ */ $e(B));
|
|
83
83
|
}
|
|
84
84
|
function Mt(e) {
|
|
85
|
-
if (
|
|
86
|
-
if (/* @__PURE__ */
|
|
87
|
-
throw _r(),
|
|
85
|
+
if (C) {
|
|
86
|
+
if (/* @__PURE__ */ $e(B) !== null)
|
|
87
|
+
throw _r(), ct;
|
|
88
88
|
B = e;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
function ra(e = 1) {
|
|
92
|
-
if (
|
|
92
|
+
if (C) {
|
|
93
93
|
for (var t = e, r = B; t--; )
|
|
94
94
|
r = /** @type {TemplateNode} */
|
|
95
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ $e(r);
|
|
96
96
|
B = r;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -103,43 +103,43 @@ function ar(e = !0) {
|
|
|
103
103
|
/** @type {Comment} */
|
|
104
104
|
r.data
|
|
105
105
|
);
|
|
106
|
-
if (n ===
|
|
106
|
+
if (n === on) {
|
|
107
107
|
if (t === 0) return r;
|
|
108
108
|
t -= 1;
|
|
109
|
-
} else (n ===
|
|
109
|
+
} else (n === ei || n === an || // "[1", "[2", etc. for if blocks
|
|
110
110
|
n[0] === "[" && !isNaN(Number(n.slice(1)))) && (t += 1);
|
|
111
111
|
}
|
|
112
112
|
var i = (
|
|
113
113
|
/** @type {TemplateNode} */
|
|
114
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ $e(r)
|
|
115
115
|
);
|
|
116
116
|
e && r.remove(), r = i;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function li(e) {
|
|
120
120
|
if (!e || e.nodeType !== Xt)
|
|
121
|
-
throw _r(),
|
|
121
|
+
throw _r(), ct;
|
|
122
122
|
return (
|
|
123
123
|
/** @type {Comment} */
|
|
124
124
|
e.data
|
|
125
125
|
);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function fi(e) {
|
|
128
128
|
return e === this.v;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function hi(e, t) {
|
|
131
131
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return !
|
|
133
|
+
function ci(e) {
|
|
134
|
+
return !hi(e, this.v);
|
|
135
135
|
}
|
|
136
|
-
let na = !1,
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
let na = !1, ne = null;
|
|
137
|
+
function vt(e) {
|
|
138
|
+
ne = e;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
142
|
-
p:
|
|
140
|
+
function un(e, t = !1, r) {
|
|
141
|
+
ne = {
|
|
142
|
+
p: ne,
|
|
143
143
|
i: !1,
|
|
144
144
|
c: null,
|
|
145
145
|
e: null,
|
|
@@ -147,58 +147,58 @@ function an(e, t = !1, r) {
|
|
|
147
147
|
x: null,
|
|
148
148
|
r: (
|
|
149
149
|
/** @type {Effect} */
|
|
150
|
-
|
|
150
|
+
M
|
|
151
151
|
),
|
|
152
152
|
l: null
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function ln(e) {
|
|
156
156
|
var t = (
|
|
157
157
|
/** @type {ComponentContext} */
|
|
158
|
-
|
|
158
|
+
ne
|
|
159
159
|
), r = t.e;
|
|
160
160
|
if (r !== null) {
|
|
161
161
|
t.e = null;
|
|
162
162
|
for (var n of r)
|
|
163
163
|
$i(n);
|
|
164
164
|
}
|
|
165
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
165
|
+
return e !== void 0 && (t.x = e), t.i = !0, ne = t.p, e ?? /** @type {T} */
|
|
166
166
|
{};
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function di() {
|
|
169
169
|
return !0;
|
|
170
170
|
}
|
|
171
171
|
let ze = [];
|
|
172
|
-
function
|
|
172
|
+
function pi() {
|
|
173
173
|
var e = ze;
|
|
174
|
-
ze = [],
|
|
174
|
+
ze = [], ii(e);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Ge(e) {
|
|
177
177
|
if (ze.length === 0 && !Ct) {
|
|
178
178
|
var t = ze;
|
|
179
179
|
queueMicrotask(() => {
|
|
180
|
-
t === ze &&
|
|
180
|
+
t === ze && pi();
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
ze.push(e);
|
|
184
184
|
}
|
|
185
185
|
function ia() {
|
|
186
186
|
for (; ze.length > 0; )
|
|
187
|
-
|
|
187
|
+
pi();
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
var t =
|
|
189
|
+
function vi(e) {
|
|
190
|
+
var t = M;
|
|
191
191
|
if (t === null)
|
|
192
|
-
return
|
|
193
|
-
if (!(t.f &
|
|
192
|
+
return N.f |= Ve, e;
|
|
193
|
+
if (!(t.f & tt) && !(t.f & dt))
|
|
194
194
|
throw e;
|
|
195
|
-
|
|
195
|
+
ke(e, t);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
if (!(t !== null && t.f &
|
|
197
|
+
function ke(e, t) {
|
|
198
|
+
if (!(t !== null && t.f & ce)) {
|
|
199
199
|
for (; t !== null; ) {
|
|
200
|
-
if (t.f &
|
|
201
|
-
if (!(t.f &
|
|
200
|
+
if (t.f & Ur) {
|
|
201
|
+
if (!(t.f & tt))
|
|
202
202
|
throw e;
|
|
203
203
|
try {
|
|
204
204
|
t.b.error(e);
|
|
@@ -213,27 +213,27 @@ function Ge(e, t) {
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
const sa = -7169;
|
|
216
|
-
function
|
|
216
|
+
function X(e, t) {
|
|
217
217
|
e.f = e.f & sa | t;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
e.f &
|
|
219
|
+
function fn(e) {
|
|
220
|
+
e.f & ve || e.deps === null ? X(e, J) : X(e, xe);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function _i(e) {
|
|
223
223
|
if (e !== null)
|
|
224
224
|
for (const t of e)
|
|
225
|
-
!(t.f &
|
|
225
|
+
!(t.f & Q) || !(t.f & Qe) || (t.f ^= Qe, _i(
|
|
226
226
|
/** @type {Derived} */
|
|
227
227
|
t.deps
|
|
228
228
|
));
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
e.f &
|
|
230
|
+
function mi(e, t, r) {
|
|
231
|
+
e.f & q ? t.add(e) : e.f & xe && r.add(e), _i(e.deps), X(e, J);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function hn(e, t, r) {
|
|
234
234
|
if (e == null)
|
|
235
|
-
return t(void 0), r && r(void 0),
|
|
236
|
-
const n =
|
|
235
|
+
return t(void 0), r && r(void 0), Le;
|
|
236
|
+
const n = wn(
|
|
237
237
|
() => e.subscribe(
|
|
238
238
|
t,
|
|
239
239
|
// @ts-expect-error
|
|
@@ -242,24 +242,24 @@ function ln(e, t, r) {
|
|
|
242
242
|
);
|
|
243
243
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
244
244
|
}
|
|
245
|
-
const
|
|
245
|
+
const it = [];
|
|
246
246
|
function aa(e, t) {
|
|
247
247
|
return {
|
|
248
248
|
subscribe: gr(e, t).subscribe
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
|
-
function gr(e, t =
|
|
251
|
+
function gr(e, t = Le) {
|
|
252
252
|
let r = null;
|
|
253
253
|
const n = /* @__PURE__ */ new Set();
|
|
254
254
|
function i(o) {
|
|
255
|
-
if (
|
|
256
|
-
const u = !
|
|
255
|
+
if (hi(e, o) && (e = o, r)) {
|
|
256
|
+
const u = !it.length;
|
|
257
257
|
for (const l of n)
|
|
258
|
-
l[1](),
|
|
258
|
+
l[1](), it.push(l, e);
|
|
259
259
|
if (u) {
|
|
260
|
-
for (let l = 0; l <
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
for (let l = 0; l < it.length; l += 2)
|
|
261
|
+
it[l][0](it[l + 1]);
|
|
262
|
+
it.length = 0;
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
}
|
|
@@ -269,9 +269,9 @@ function gr(e, t = Be) {
|
|
|
269
269
|
e
|
|
270
270
|
));
|
|
271
271
|
}
|
|
272
|
-
function a(o, u =
|
|
272
|
+
function a(o, u = Le) {
|
|
273
273
|
const l = [o, u];
|
|
274
|
-
return n.add(l), n.size === 1 && (r = t(i, s) ||
|
|
274
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || Le), o(
|
|
275
275
|
/** @type {T} */
|
|
276
276
|
e
|
|
277
277
|
), () => {
|
|
@@ -280,7 +280,7 @@ function gr(e, t = Be) {
|
|
|
280
280
|
}
|
|
281
281
|
return { set: i, update: s, subscribe: a };
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function xt(e, t, r) {
|
|
284
284
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
285
285
|
if (!i.every(Boolean))
|
|
286
286
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -288,50 +288,50 @@ function wt(e, t, r) {
|
|
|
288
288
|
return aa(r, (a, o) => {
|
|
289
289
|
let u = !1;
|
|
290
290
|
const l = [];
|
|
291
|
-
let f = 0, c =
|
|
291
|
+
let f = 0, c = Le;
|
|
292
292
|
const h = () => {
|
|
293
293
|
if (f)
|
|
294
294
|
return;
|
|
295
295
|
c();
|
|
296
296
|
const p = t(n ? l[0] : l, a, o);
|
|
297
|
-
s ? a(p) : c = typeof p == "function" ? p :
|
|
297
|
+
s ? a(p) : c = typeof p == "function" ? p : Le;
|
|
298
298
|
}, d = i.map(
|
|
299
|
-
(p,
|
|
299
|
+
(p, y) => hn(
|
|
300
300
|
p,
|
|
301
301
|
(m) => {
|
|
302
|
-
l[
|
|
302
|
+
l[y] = m, f &= ~(1 << y), u && h();
|
|
303
303
|
},
|
|
304
304
|
() => {
|
|
305
|
-
f |= 1 <<
|
|
305
|
+
f |= 1 << y;
|
|
306
306
|
}
|
|
307
307
|
)
|
|
308
308
|
);
|
|
309
309
|
return u = !0, h(), function() {
|
|
310
|
-
|
|
310
|
+
ii(d), c(), u = !1;
|
|
311
311
|
};
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
314
|
function oa(e) {
|
|
315
315
|
let t;
|
|
316
|
-
return
|
|
316
|
+
return hn(e, (r) => t = r)(), t;
|
|
317
317
|
}
|
|
318
|
-
let
|
|
318
|
+
let jr = Symbol("unmounted");
|
|
319
319
|
function ua(e, t, r) {
|
|
320
320
|
const n = r[t] ??= {
|
|
321
321
|
store: null,
|
|
322
|
-
source: /* @__PURE__ */
|
|
323
|
-
unsubscribe:
|
|
322
|
+
source: /* @__PURE__ */ vn(void 0),
|
|
323
|
+
unsubscribe: Le
|
|
324
324
|
};
|
|
325
|
-
if (n.store !== e && !(
|
|
325
|
+
if (n.store !== e && !(jr in r))
|
|
326
326
|
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
327
|
-
n.source.v = void 0, n.unsubscribe =
|
|
327
|
+
n.source.v = void 0, n.unsubscribe = Le;
|
|
328
328
|
else {
|
|
329
329
|
var i = !0;
|
|
330
|
-
n.unsubscribe =
|
|
331
|
-
i ? n.source.v = s :
|
|
330
|
+
n.unsubscribe = hn(e, (s) => {
|
|
331
|
+
i ? n.source.v = s : z(n.source, s);
|
|
332
332
|
}), i = !1;
|
|
333
333
|
}
|
|
334
|
-
return e &&
|
|
334
|
+
return e && jr in r ? oa(e) : w(n.source);
|
|
335
335
|
}
|
|
336
336
|
function la() {
|
|
337
337
|
const e = {};
|
|
@@ -339,7 +339,7 @@ function la() {
|
|
|
339
339
|
Pi(() => {
|
|
340
340
|
for (var r in e)
|
|
341
341
|
e[r].unsubscribe();
|
|
342
|
-
Ut(e,
|
|
342
|
+
Ut(e, jr, {
|
|
343
343
|
enumerable: !1,
|
|
344
344
|
value: !0
|
|
345
345
|
});
|
|
@@ -348,25 +348,25 @@ function la() {
|
|
|
348
348
|
return [e, t];
|
|
349
349
|
}
|
|
350
350
|
function br(e) {
|
|
351
|
-
var t =
|
|
352
|
-
|
|
351
|
+
var t = N, r = M;
|
|
352
|
+
me(null), Pe(null);
|
|
353
353
|
try {
|
|
354
354
|
return e();
|
|
355
355
|
} finally {
|
|
356
|
-
|
|
356
|
+
me(t), Pe(r);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
function fa(e) {
|
|
360
|
-
let t = 0, r =
|
|
360
|
+
let t = 0, r = Ke(0), n;
|
|
361
361
|
return () => {
|
|
362
|
-
|
|
363
|
-
|
|
362
|
+
gn() && (w(r), bn(() => (t === 0 && (n = wn(() => e(() => Rt(r)))), t += 1, () => {
|
|
363
|
+
Ge(() => {
|
|
364
364
|
t -= 1, t === 0 && (n?.(), n = void 0, Rt(r));
|
|
365
365
|
});
|
|
366
366
|
})));
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
|
-
var ha =
|
|
369
|
+
var ha = pt | rt;
|
|
370
370
|
function ca(e, t, r, n) {
|
|
371
371
|
new da(e, t, r, n);
|
|
372
372
|
}
|
|
@@ -383,7 +383,7 @@ class da {
|
|
|
383
383
|
/** @type {TemplateNode} */
|
|
384
384
|
#e;
|
|
385
385
|
/** @type {TemplateNode | null} */
|
|
386
|
-
#t =
|
|
386
|
+
#t = C ? B : null;
|
|
387
387
|
/** @type {BoundaryProps} */
|
|
388
388
|
#r;
|
|
389
389
|
/** @type {((anchor: Node) => void)} */
|
|
@@ -413,7 +413,7 @@ class da {
|
|
|
413
413
|
* @type {Source<number> | null}
|
|
414
414
|
*/
|
|
415
415
|
#h = null;
|
|
416
|
-
#g = fa(() => (this.#h =
|
|
416
|
+
#g = fa(() => (this.#h = Ke(this.#v), () => {
|
|
417
417
|
this.#h = null;
|
|
418
418
|
}));
|
|
419
419
|
/**
|
|
@@ -426,29 +426,29 @@ class da {
|
|
|
426
426
|
this.#e = t, this.#r = r, this.#u = (s) => {
|
|
427
427
|
var a = (
|
|
428
428
|
/** @type {Effect} */
|
|
429
|
-
|
|
429
|
+
M
|
|
430
430
|
);
|
|
431
|
-
a.b = this, a.f |=
|
|
431
|
+
a.b = this, a.f |= Ur, n(s);
|
|
432
432
|
}, this.parent = /** @type {Effect} */
|
|
433
|
-
|
|
434
|
-
if (
|
|
433
|
+
M.b, this.transform_error = i ?? this.parent?.transform_error ?? ((s) => s), this.#i = yn(() => {
|
|
434
|
+
if (C) {
|
|
435
435
|
const s = (
|
|
436
436
|
/** @type {Comment} */
|
|
437
437
|
this.#t
|
|
438
438
|
);
|
|
439
439
|
mr();
|
|
440
|
-
const a = s.data ===
|
|
441
|
-
if (s.data.startsWith(
|
|
442
|
-
const u = JSON.parse(s.data.slice(
|
|
440
|
+
const a = s.data === an;
|
|
441
|
+
if (s.data.startsWith(An)) {
|
|
442
|
+
const u = JSON.parse(s.data.slice(An.length));
|
|
443
443
|
this.#b(u);
|
|
444
444
|
} else a ? this.#x() : this.#m();
|
|
445
445
|
} else
|
|
446
446
|
this.#d();
|
|
447
|
-
}, ha),
|
|
447
|
+
}, ha), C && (this.#e = B);
|
|
448
448
|
}
|
|
449
449
|
#m() {
|
|
450
450
|
try {
|
|
451
|
-
this.#a =
|
|
451
|
+
this.#a = ge(() => this.#u(this.#e));
|
|
452
452
|
} catch (t) {
|
|
453
453
|
this.error(t);
|
|
454
454
|
}
|
|
@@ -458,7 +458,7 @@ class da {
|
|
|
458
458
|
*/
|
|
459
459
|
#b(t) {
|
|
460
460
|
const r = this.#r.failed, { reset: n, invoke_onerror: i } = this.#y(t);
|
|
461
|
-
|
|
461
|
+
Ge(i), r && (this.#o = ge(() => {
|
|
462
462
|
r(
|
|
463
463
|
this.#e,
|
|
464
464
|
() => t,
|
|
@@ -479,7 +479,7 @@ class da {
|
|
|
479
479
|
ta();
|
|
480
480
|
return;
|
|
481
481
|
}
|
|
482
|
-
r = !0, n && Ks(), this.#o !== null &&
|
|
482
|
+
r = !0, n && Ks(), this.#o !== null && Ze(this.#o, () => {
|
|
483
483
|
this.#o = null;
|
|
484
484
|
}), this.#p(() => {
|
|
485
485
|
this.#d();
|
|
@@ -489,15 +489,15 @@ class da {
|
|
|
489
489
|
try {
|
|
490
490
|
n = !0, this.#r.onerror?.(t, i), n = !1;
|
|
491
491
|
} catch (a) {
|
|
492
|
-
|
|
492
|
+
ke(a, this.#i && this.#i.parent);
|
|
493
493
|
}
|
|
494
494
|
} };
|
|
495
495
|
}
|
|
496
496
|
#x() {
|
|
497
497
|
const t = this.#r.pending;
|
|
498
|
-
t && (this.is_pending = !0, this.#n =
|
|
499
|
-
var r = this.#s = document.createDocumentFragment(), n =
|
|
500
|
-
r.append(n), this.#a = this.#p(() =>
|
|
498
|
+
t && (this.is_pending = !0, this.#n = ge(() => t(this.#e)), Ge(() => {
|
|
499
|
+
var r = this.#s = document.createDocumentFragment(), n = we();
|
|
500
|
+
r.append(n), this.#a = this.#p(() => ge(() => this.#u(n))), this.#l === 0 && (this.#e.before(r), this.#s = null, Ze(
|
|
501
501
|
/** @type {Effect} */
|
|
502
502
|
this.#n,
|
|
503
503
|
() => {
|
|
@@ -511,16 +511,16 @@ class da {
|
|
|
511
511
|
}
|
|
512
512
|
#d() {
|
|
513
513
|
try {
|
|
514
|
-
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#v = 0, this.#a =
|
|
514
|
+
if (this.is_pending = this.has_pending_snippet(), this.#l = 0, this.#v = 0, this.#a = ge(() => {
|
|
515
515
|
this.#u(this.#e);
|
|
516
516
|
}), this.#l > 0) {
|
|
517
517
|
var t = this.#s = document.createDocumentFragment();
|
|
518
|
-
|
|
518
|
+
xn(this.#a, t);
|
|
519
519
|
const r = (
|
|
520
520
|
/** @type {(anchor: Node) => void} */
|
|
521
521
|
this.#r.pending
|
|
522
522
|
);
|
|
523
|
-
this.#n =
|
|
523
|
+
this.#n = ge(() => r(this.#e));
|
|
524
524
|
} else
|
|
525
525
|
this.#E(
|
|
526
526
|
/** @type {Batch} */
|
|
@@ -541,7 +541,7 @@ class da {
|
|
|
541
541
|
* @param {Effect} effect
|
|
542
542
|
*/
|
|
543
543
|
defer_effect(t) {
|
|
544
|
-
|
|
544
|
+
mi(t, this.#c, this.#_);
|
|
545
545
|
}
|
|
546
546
|
/**
|
|
547
547
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -558,14 +558,14 @@ class da {
|
|
|
558
558
|
* @param {() => T} fn
|
|
559
559
|
*/
|
|
560
560
|
#p(t) {
|
|
561
|
-
var r =
|
|
562
|
-
|
|
561
|
+
var r = M, n = N, i = ne;
|
|
562
|
+
Pe(this.#i), me(this.#i), vt(this.#i.ctx);
|
|
563
563
|
try {
|
|
564
|
-
return
|
|
564
|
+
return Ce.ensure(), t();
|
|
565
565
|
} catch (s) {
|
|
566
|
-
return
|
|
566
|
+
return vi(s), null;
|
|
567
567
|
} finally {
|
|
568
|
-
|
|
568
|
+
Pe(r), me(n), vt(i);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
/**
|
|
@@ -579,7 +579,7 @@ class da {
|
|
|
579
579
|
this.parent && this.parent.#w(t, r);
|
|
580
580
|
return;
|
|
581
581
|
}
|
|
582
|
-
this.#l += t, this.#l === 0 && (this.#E(r), this.#n &&
|
|
582
|
+
this.#l += t, this.#l === 0 && (this.#E(r), this.#n && Ze(this.#n, () => {
|
|
583
583
|
this.#n = null;
|
|
584
584
|
}), this.#s && (this.#e.before(this.#s), this.#s = null));
|
|
585
585
|
}
|
|
@@ -591,8 +591,8 @@ class da {
|
|
|
591
591
|
* @param {Batch} batch
|
|
592
592
|
*/
|
|
593
593
|
update_pending_count(t, r) {
|
|
594
|
-
this.#w(t, r), this.#v += t, !(!this.#h || this.#f) && (this.#f = !0,
|
|
595
|
-
this.#f = !1, this.#h &&
|
|
594
|
+
this.#w(t, r), this.#v += t, !(!this.#h || this.#f) && (this.#f = !0, Ge(() => {
|
|
595
|
+
this.#f = !1, this.#h && _t(this.#h, this.#v);
|
|
596
596
|
}));
|
|
597
597
|
}
|
|
598
598
|
get_effect_pending() {
|
|
@@ -613,28 +613,28 @@ class da {
|
|
|
613
613
|
* @param {unknown} error
|
|
614
614
|
*/
|
|
615
615
|
#T(t) {
|
|
616
|
-
this.#a && (
|
|
616
|
+
this.#a && (ie(this.#a), this.#a = null), this.#n && (ie(this.#n), this.#n = null), this.#o && (ie(this.#o), this.#o = null), C && (ue(
|
|
617
617
|
/** @type {TemplateNode} */
|
|
618
618
|
this.#t
|
|
619
|
-
), ra(),
|
|
619
|
+
), ra(), ue(ar()));
|
|
620
620
|
let r = this.#r.failed;
|
|
621
621
|
const n = (i) => {
|
|
622
622
|
const { reset: s, invoke_onerror: a } = this.#y(i);
|
|
623
623
|
a(), r && (this.#o = this.#p(() => {
|
|
624
624
|
try {
|
|
625
|
-
return
|
|
625
|
+
return ge(() => {
|
|
626
626
|
var o = (
|
|
627
627
|
/** @type {Effect} */
|
|
628
|
-
|
|
628
|
+
M
|
|
629
629
|
);
|
|
630
|
-
o.b = this, o.f |=
|
|
630
|
+
o.b = this, o.f |= Ur, r(
|
|
631
631
|
this.#e,
|
|
632
632
|
() => i,
|
|
633
633
|
() => s
|
|
634
634
|
);
|
|
635
635
|
});
|
|
636
636
|
} catch (o) {
|
|
637
|
-
return
|
|
637
|
+
return ke(
|
|
638
638
|
o,
|
|
639
639
|
/** @type {Effect} */
|
|
640
640
|
this.#i.parent
|
|
@@ -642,19 +642,19 @@ class da {
|
|
|
642
642
|
}
|
|
643
643
|
}));
|
|
644
644
|
};
|
|
645
|
-
|
|
645
|
+
Ge(() => {
|
|
646
646
|
var i;
|
|
647
647
|
try {
|
|
648
648
|
i = this.transform_error(t);
|
|
649
649
|
} catch (s) {
|
|
650
|
-
|
|
650
|
+
ke(s, this.#i && this.#i.parent);
|
|
651
651
|
return;
|
|
652
652
|
}
|
|
653
653
|
i !== null && typeof i == "object" && typeof /** @type {any} */
|
|
654
654
|
i.then == "function" ? i.then(
|
|
655
655
|
n,
|
|
656
656
|
/** @param {unknown} e */
|
|
657
|
-
(s) =>
|
|
657
|
+
(s) => ke(s, this.#i && this.#i.parent)
|
|
658
658
|
) : n(i);
|
|
659
659
|
});
|
|
660
660
|
}
|
|
@@ -668,26 +668,26 @@ function pa(e, t, r, n) {
|
|
|
668
668
|
}
|
|
669
669
|
var o = (
|
|
670
670
|
/** @type {Effect} */
|
|
671
|
-
|
|
671
|
+
M
|
|
672
672
|
), u = va(), l = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((d) => d.promise)) : null;
|
|
673
673
|
function f(d) {
|
|
674
|
-
if (!(o.f &
|
|
674
|
+
if (!(o.f & ce)) {
|
|
675
675
|
u();
|
|
676
676
|
try {
|
|
677
677
|
n([...a, ...d]);
|
|
678
678
|
} catch (p) {
|
|
679
|
-
|
|
679
|
+
ke(p, o);
|
|
680
680
|
}
|
|
681
681
|
or();
|
|
682
682
|
}
|
|
683
683
|
}
|
|
684
|
-
var c =
|
|
684
|
+
var c = gi();
|
|
685
685
|
if (r.length === 0) {
|
|
686
686
|
l.then(() => f([])).finally(c);
|
|
687
687
|
return;
|
|
688
688
|
}
|
|
689
689
|
function h() {
|
|
690
|
-
Promise.all(r.map((d) => /* @__PURE__ */ _a(d))).then(f).catch((d) =>
|
|
690
|
+
Promise.all(r.map((d) => /* @__PURE__ */ _a(d))).then(f).catch((d) => ke(d, o)).finally(c);
|
|
691
691
|
}
|
|
692
692
|
l ? l.then(() => {
|
|
693
693
|
u(), h(), or();
|
|
@@ -696,22 +696,22 @@ function pa(e, t, r, n) {
|
|
|
696
696
|
function va() {
|
|
697
697
|
var e = (
|
|
698
698
|
/** @type {Effect} */
|
|
699
|
-
|
|
700
|
-
), t =
|
|
699
|
+
M
|
|
700
|
+
), t = N, r = ne, n = (
|
|
701
701
|
/** @type {Batch} */
|
|
702
702
|
I
|
|
703
703
|
);
|
|
704
704
|
return function(s = !0) {
|
|
705
|
-
|
|
705
|
+
Pe(e), me(t), vt(r), s && !(e.f & ce) && (n?.activate(), n?.apply());
|
|
706
706
|
};
|
|
707
707
|
}
|
|
708
708
|
function or(e = !0) {
|
|
709
|
-
|
|
709
|
+
Pe(null), me(null), vt(null), e && I?.deactivate();
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function gi() {
|
|
712
712
|
var e = (
|
|
713
713
|
/** @type {Effect} */
|
|
714
|
-
|
|
714
|
+
M
|
|
715
715
|
), t = e.b, r = (
|
|
716
716
|
/** @type {Batch} */
|
|
717
717
|
I
|
|
@@ -722,22 +722,22 @@ function mi() {
|
|
|
722
722
|
}
|
|
723
723
|
// @__NO_SIDE_EFFECTS__
|
|
724
724
|
function yr(e) {
|
|
725
|
-
var t =
|
|
726
|
-
return
|
|
727
|
-
ctx:
|
|
725
|
+
var t = Q | q;
|
|
726
|
+
return M !== null && (M.f |= rt), {
|
|
727
|
+
ctx: ne,
|
|
728
728
|
deps: null,
|
|
729
729
|
effects: null,
|
|
730
|
-
equals:
|
|
730
|
+
equals: fi,
|
|
731
731
|
f: t,
|
|
732
732
|
fn: e,
|
|
733
733
|
reactions: null,
|
|
734
734
|
rv: 0,
|
|
735
735
|
v: (
|
|
736
736
|
/** @type {V} */
|
|
737
|
-
|
|
737
|
+
Z
|
|
738
738
|
),
|
|
739
739
|
wv: 0,
|
|
740
|
-
parent:
|
|
740
|
+
parent: M,
|
|
741
741
|
ac: null
|
|
742
742
|
};
|
|
743
743
|
}
|
|
@@ -746,22 +746,22 @@ const $t = Symbol("obsolete");
|
|
|
746
746
|
function _a(e, t, r) {
|
|
747
747
|
let n = (
|
|
748
748
|
/** @type {Effect | null} */
|
|
749
|
-
|
|
749
|
+
M
|
|
750
750
|
);
|
|
751
751
|
n === null && js();
|
|
752
752
|
var i = (
|
|
753
753
|
/** @type {Promise<V>} */
|
|
754
754
|
/** @type {unknown} */
|
|
755
755
|
void 0
|
|
756
|
-
), s =
|
|
756
|
+
), s = Ke(
|
|
757
757
|
/** @type {V} */
|
|
758
|
-
|
|
759
|
-
), a = !
|
|
758
|
+
Z
|
|
759
|
+
), a = !N, o = /* @__PURE__ */ new Set();
|
|
760
760
|
return Ha(() => {
|
|
761
761
|
var u = (
|
|
762
762
|
/** @type {Effect} */
|
|
763
|
-
|
|
764
|
-
), l =
|
|
763
|
+
M
|
|
764
|
+
), l = si();
|
|
765
765
|
i = l.promise;
|
|
766
766
|
try {
|
|
767
767
|
Promise.resolve(e()).then(l.resolve, (d) => {
|
|
@@ -775,8 +775,8 @@ function _a(e, t, r) {
|
|
|
775
775
|
I
|
|
776
776
|
);
|
|
777
777
|
if (a) {
|
|
778
|
-
if (u.f &
|
|
779
|
-
var c =
|
|
778
|
+
if (u.f & tt)
|
|
779
|
+
var c = gi();
|
|
780
780
|
if (
|
|
781
781
|
// boundary can be null if the async derived is inside an $effect.root not connected to the component render tree
|
|
782
782
|
n.b?.is_rendered()
|
|
@@ -788,7 +788,7 @@ function _a(e, t, r) {
|
|
|
788
788
|
o.add(l), f.async_deriveds.set(u, l);
|
|
789
789
|
}
|
|
790
790
|
const h = (d, p = void 0) => {
|
|
791
|
-
c?.(), o.delete(l), p !== $t && (f.activate(), p ? (s.f |=
|
|
791
|
+
c?.(), o.delete(l), p !== $t && (f.activate(), p ? (s.f |= Ve, _t(s, p)) : (s.f & Ve && (s.f ^= Ve), _t(s, d)), f.deactivate());
|
|
792
792
|
};
|
|
793
793
|
l.promise.then(h, (d) => h(null, d || "unknown"));
|
|
794
794
|
}), Pi(() => {
|
|
@@ -805,63 +805,63 @@ function _a(e, t, r) {
|
|
|
805
805
|
});
|
|
806
806
|
}
|
|
807
807
|
// @__NO_SIDE_EFFECTS__
|
|
808
|
-
function
|
|
808
|
+
function st(e) {
|
|
809
809
|
const t = /* @__PURE__ */ yr(e);
|
|
810
810
|
return Di(t), t;
|
|
811
811
|
}
|
|
812
812
|
// @__NO_SIDE_EFFECTS__
|
|
813
813
|
function ma(e) {
|
|
814
814
|
const t = /* @__PURE__ */ yr(e);
|
|
815
|
-
return t.equals =
|
|
815
|
+
return t.equals = ci, t;
|
|
816
816
|
}
|
|
817
817
|
function ga(e) {
|
|
818
818
|
var t = e.effects;
|
|
819
819
|
if (t !== null) {
|
|
820
820
|
e.effects = null;
|
|
821
821
|
for (var r = 0; r < t.length; r += 1)
|
|
822
|
-
|
|
822
|
+
ie(
|
|
823
823
|
/** @type {Effect} */
|
|
824
824
|
t[r]
|
|
825
825
|
);
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
|
-
function
|
|
829
|
-
var t, r =
|
|
830
|
-
if (!
|
|
831
|
-
n.f & (
|
|
828
|
+
function cn(e) {
|
|
829
|
+
var t, r = M, n = e.parent;
|
|
830
|
+
if (!Re && n !== null && e.v !== Z && // if it was never evaluated before, it's guaranteed to fail downstream, so we try to execute instead
|
|
831
|
+
n.f & (ce | re))
|
|
832
832
|
return ea(), e.v;
|
|
833
|
-
|
|
833
|
+
Pe(n);
|
|
834
834
|
try {
|
|
835
|
-
e.f &= ~
|
|
835
|
+
e.f &= ~Qe, ga(e), t = ki(e);
|
|
836
836
|
} finally {
|
|
837
|
-
|
|
837
|
+
Pe(r);
|
|
838
838
|
}
|
|
839
839
|
return t;
|
|
840
840
|
}
|
|
841
|
-
function
|
|
842
|
-
var t =
|
|
843
|
-
if (!e.equals(t) && (e.wv = Fi(), (!I?.is_fork || e.deps === null) && (I !== null ? (I.capture(e, t, !0),
|
|
844
|
-
|
|
841
|
+
function bi(e) {
|
|
842
|
+
var t = cn(e);
|
|
843
|
+
if (!e.equals(t) && (e.wv = Fi(), (!I?.is_fork || e.deps === null) && (I !== null ? (I.capture(e, t, !0), Vr?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
844
|
+
X(e, J);
|
|
845
845
|
return;
|
|
846
846
|
}
|
|
847
|
-
|
|
847
|
+
Re || (ye !== null ? (gn() || I?.is_fork) && ye.set(e, t) : fn(e));
|
|
848
848
|
}
|
|
849
849
|
function ba(e) {
|
|
850
850
|
if (e.effects !== null)
|
|
851
851
|
for (const t of e.effects)
|
|
852
852
|
(t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && br(() => {
|
|
853
853
|
t.ac.abort(Vt), t.ac = null;
|
|
854
|
-
}), t.fn !== null && (t.teardown =
|
|
854
|
+
}), t.fn !== null && (t.teardown = Le), Ft(t, 0), En(t));
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function yi(e) {
|
|
857
857
|
if (e.effects !== null)
|
|
858
858
|
for (const t of e.effects)
|
|
859
|
-
t.teardown && t.fn !== null &&
|
|
859
|
+
t.teardown && t.fn !== null && mt(t);
|
|
860
860
|
}
|
|
861
|
-
let Ar = null,
|
|
862
|
-
var
|
|
861
|
+
let Ar = null, at = null, I = null, Vr = null, ye = null, Xr = null, Ct = !1, Hr = !1, ut = null, Jt = null;
|
|
862
|
+
var Mn = 0;
|
|
863
863
|
let ya = 1;
|
|
864
|
-
class
|
|
864
|
+
class Ce {
|
|
865
865
|
id = ya++;
|
|
866
866
|
/** True as soon as `#process` was called */
|
|
867
867
|
#e = !1;
|
|
@@ -947,7 +947,7 @@ class Le {
|
|
|
947
947
|
is_fork = !1;
|
|
948
948
|
#h = !1;
|
|
949
949
|
constructor() {
|
|
950
|
-
|
|
950
|
+
at === null ? Ar = at = this : (at.#r = this, this.#t = at), at = this;
|
|
951
951
|
}
|
|
952
952
|
#g() {
|
|
953
953
|
if (this.is_fork) return !0;
|
|
@@ -982,36 +982,36 @@ class Le {
|
|
|
982
982
|
if (n) {
|
|
983
983
|
this.#c.delete(t);
|
|
984
984
|
for (var i of n.d)
|
|
985
|
-
|
|
985
|
+
X(i, q), r(i);
|
|
986
986
|
for (i of n.m)
|
|
987
|
-
|
|
987
|
+
X(i, xe), r(i);
|
|
988
988
|
}
|
|
989
989
|
this.#_.add(t);
|
|
990
990
|
}
|
|
991
991
|
#m() {
|
|
992
|
-
this.#e = !0,
|
|
992
|
+
this.#e = !0, Mn++ > 1e3 && (this.#p(), Ea());
|
|
993
993
|
for (const u of this.#l)
|
|
994
|
-
this.#f.delete(u),
|
|
994
|
+
this.#f.delete(u), X(u, q), this.schedule(u);
|
|
995
995
|
for (const u of this.#f)
|
|
996
|
-
|
|
996
|
+
X(u, xe), this.schedule(u);
|
|
997
997
|
const t = this.#s;
|
|
998
998
|
this.#s = [], this.apply();
|
|
999
|
-
var r =
|
|
999
|
+
var r = ut = [], n = [], i = Jt = [];
|
|
1000
1000
|
for (const u of t)
|
|
1001
1001
|
try {
|
|
1002
1002
|
this.#b(u, r, n);
|
|
1003
1003
|
} catch (l) {
|
|
1004
|
-
throw
|
|
1004
|
+
throw wi(u), this.#g() || this.discard(), l;
|
|
1005
1005
|
}
|
|
1006
1006
|
if (I = null, i.length > 0) {
|
|
1007
|
-
var s =
|
|
1007
|
+
var s = Ce.ensure();
|
|
1008
1008
|
for (const u of i)
|
|
1009
1009
|
s.schedule(u);
|
|
1010
1010
|
}
|
|
1011
|
-
if (
|
|
1011
|
+
if (ut = null, Jt = null, this.#g()) {
|
|
1012
1012
|
this.#d(n), this.#d(r);
|
|
1013
1013
|
for (const [u, l] of this.#c)
|
|
1014
|
-
|
|
1014
|
+
xi(u, l);
|
|
1015
1015
|
i.length > 0 && /** @type {unknown} */
|
|
1016
1016
|
I.#m();
|
|
1017
1017
|
return;
|
|
@@ -1023,7 +1023,7 @@ class Le {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
this.#l.clear(), this.#f.clear();
|
|
1025
1025
|
for (const u of this.#u) u(this);
|
|
1026
|
-
this.#u.clear(),
|
|
1026
|
+
this.#u.clear(), Vr = this, On(n), On(r), Vr = null, this.#o?.resolve();
|
|
1027
1027
|
var o = (
|
|
1028
1028
|
/** @type {Batch | null} */
|
|
1029
1029
|
/** @type {unknown} */
|
|
@@ -1035,7 +1035,7 @@ class Le {
|
|
|
1035
1035
|
u.#s.push(...this.#s.filter((l) => !u.#s.includes(l)));
|
|
1036
1036
|
} else
|
|
1037
1037
|
o = this;
|
|
1038
|
-
o !== null && o.#m();
|
|
1038
|
+
o !== null && (Me.clear(), o.#m());
|
|
1039
1039
|
}
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -1045,11 +1045,11 @@ class Le {
|
|
|
1045
1045
|
* @param {Effect[]} render_effects
|
|
1046
1046
|
*/
|
|
1047
1047
|
#b(t, r, n) {
|
|
1048
|
-
t.f ^=
|
|
1048
|
+
t.f ^= J;
|
|
1049
1049
|
for (var i = t.first; i !== null; ) {
|
|
1050
|
-
var s = i.f, a = (s & (
|
|
1050
|
+
var s = i.f, a = (s & (_e | Ne)) !== 0, o = a && (s & J) !== 0, u = o || (s & re) !== 0 || this.#c.has(i);
|
|
1051
1051
|
if (!u && i.fn !== null) {
|
|
1052
|
-
a ? i.f ^=
|
|
1052
|
+
a ? i.f ^= J : s & dt ? r.push(i) : Wt(i) && (s & be && this.#f.add(i), mt(i));
|
|
1053
1053
|
var l = i.first;
|
|
1054
1054
|
if (l !== null) {
|
|
1055
1055
|
i = l;
|
|
@@ -1090,10 +1090,10 @@ class Le {
|
|
|
1090
1090
|
t.async_deriveds.clear(), this.transfer_effects(t.#l, t.#f);
|
|
1091
1091
|
const r = (n) => {
|
|
1092
1092
|
var i = n.reactions;
|
|
1093
|
-
if (i !== null && !(n.f &
|
|
1093
|
+
if (i !== null && !(n.f & Q && !(n.f & (q | xe))))
|
|
1094
1094
|
for (const o of i) {
|
|
1095
1095
|
var s = o.f;
|
|
1096
|
-
if (s &
|
|
1096
|
+
if (s & Q)
|
|
1097
1097
|
r(
|
|
1098
1098
|
/** @type {Derived} */
|
|
1099
1099
|
o
|
|
@@ -1103,7 +1103,7 @@ class Le {
|
|
|
1103
1103
|
/** @type {Effect} */
|
|
1104
1104
|
o
|
|
1105
1105
|
);
|
|
1106
|
-
s & (
|
|
1106
|
+
s & (ft | be) && !this.async_deriveds.has(a) && (this.#f.delete(a), X(a, q), this.schedule(a));
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
1109
|
};
|
|
@@ -1116,7 +1116,7 @@ class Le {
|
|
|
1116
1116
|
*/
|
|
1117
1117
|
#d(t) {
|
|
1118
1118
|
for (var r = 0; r < t.length; r += 1)
|
|
1119
|
-
|
|
1119
|
+
mi(t[r], this.#l, this.#f);
|
|
1120
1120
|
}
|
|
1121
1121
|
/**
|
|
1122
1122
|
* Associate a change to a given source with the current
|
|
@@ -1126,19 +1126,19 @@ class Le {
|
|
|
1126
1126
|
* @param {boolean} [is_derived]
|
|
1127
1127
|
*/
|
|
1128
1128
|
capture(t, r, n = !1) {
|
|
1129
|
-
t.v !==
|
|
1129
|
+
t.v !== Z && !this.previous.has(t) && this.previous.set(t, t.v), t.f & Ve || (this.current.set(t, [r, n]), ye?.set(t, r)), this.is_fork || (t.v = r);
|
|
1130
1130
|
}
|
|
1131
1131
|
activate() {
|
|
1132
1132
|
I = this;
|
|
1133
1133
|
}
|
|
1134
1134
|
deactivate() {
|
|
1135
|
-
I = null,
|
|
1135
|
+
I = null, ye = null;
|
|
1136
1136
|
}
|
|
1137
1137
|
flush() {
|
|
1138
1138
|
try {
|
|
1139
1139
|
Hr = !0, I = this, this.#m();
|
|
1140
1140
|
} finally {
|
|
1141
|
-
|
|
1141
|
+
Mn = 0, Xr = null, ut = null, Jt = null, Hr = !1, I = null, ye = null, Me.clear();
|
|
1142
1142
|
}
|
|
1143
1143
|
}
|
|
1144
1144
|
discard() {
|
|
@@ -1187,12 +1187,12 @@ class Le {
|
|
|
1187
1187
|
if (t)
|
|
1188
1188
|
for (const h of this.#_)
|
|
1189
1189
|
c.unskip_effect(h, (d) => {
|
|
1190
|
-
d.f & (
|
|
1190
|
+
d.f & (be | ft) ? c.schedule(d) : c.#d([d]);
|
|
1191
1191
|
});
|
|
1192
1192
|
c.activate();
|
|
1193
1193
|
var a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
1194
1194
|
for (var u of r)
|
|
1195
|
-
|
|
1195
|
+
Ei(u, s, a, o);
|
|
1196
1196
|
o = /* @__PURE__ */ new Map();
|
|
1197
1197
|
var l = [...c.current].filter(([h, d]) => {
|
|
1198
1198
|
const p = this.current.get(h);
|
|
@@ -1200,7 +1200,7 @@ class Le {
|
|
|
1200
1200
|
}).map(([h]) => h);
|
|
1201
1201
|
if (l.length > 0)
|
|
1202
1202
|
for (const h of this.#v)
|
|
1203
|
-
!(h.f & (
|
|
1203
|
+
!(h.f & (ce | re | ir)) && dn(h, l, o) && (h.f & (ft | be) ? (X(h, q), c.schedule(h)) : c.#l.add(h));
|
|
1204
1204
|
if (c.#s.length > 0 && !c.#h) {
|
|
1205
1205
|
c.apply();
|
|
1206
1206
|
for (var f of c.#s)
|
|
@@ -1231,7 +1231,7 @@ class Le {
|
|
|
1231
1231
|
let n = this.#n.get(r) ?? 0;
|
|
1232
1232
|
n === 1 ? this.#n.delete(r) : this.#n.set(r, n - 1);
|
|
1233
1233
|
}
|
|
1234
|
-
this.#h || (this.#h = !0,
|
|
1234
|
+
this.#h || (this.#h = !0, Ge(() => {
|
|
1235
1235
|
this.#h = !1, this.linked && this.flush();
|
|
1236
1236
|
}));
|
|
1237
1237
|
}
|
|
@@ -1255,12 +1255,12 @@ class Le {
|
|
|
1255
1255
|
this.#i.add(t);
|
|
1256
1256
|
}
|
|
1257
1257
|
settled() {
|
|
1258
|
-
return (this.#o ??=
|
|
1258
|
+
return (this.#o ??= si()).promise;
|
|
1259
1259
|
}
|
|
1260
1260
|
static ensure() {
|
|
1261
1261
|
if (I === null) {
|
|
1262
|
-
const t = I = new
|
|
1263
|
-
!Hr && !Ct &&
|
|
1262
|
+
const t = I = new Ce();
|
|
1263
|
+
!Hr && !Ct && Ge(() => {
|
|
1264
1264
|
t.#e || t.flush();
|
|
1265
1265
|
});
|
|
1266
1266
|
}
|
|
@@ -1268,7 +1268,7 @@ class Le {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
apply() {
|
|
1270
1270
|
{
|
|
1271
|
-
|
|
1271
|
+
ye = null;
|
|
1272
1272
|
return;
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
@@ -1277,19 +1277,19 @@ class Le {
|
|
|
1277
1277
|
* @param {Effect} effect
|
|
1278
1278
|
*/
|
|
1279
1279
|
schedule(t) {
|
|
1280
|
-
if (
|
|
1280
|
+
if (Xr = t, t.b?.is_pending && t.f & (dt | jt | ai) && !(t.f & tt)) {
|
|
1281
1281
|
t.b.defer_effect(t);
|
|
1282
1282
|
return;
|
|
1283
1283
|
}
|
|
1284
1284
|
for (var r = t; r.parent !== null; ) {
|
|
1285
1285
|
r = r.parent;
|
|
1286
1286
|
var n = r.f;
|
|
1287
|
-
if (
|
|
1287
|
+
if (ut !== null && r === M && (N === null || !(N.f & Q)))
|
|
1288
1288
|
return;
|
|
1289
|
-
if (n & (
|
|
1290
|
-
if (!(n &
|
|
1289
|
+
if (n & (Ne | _e)) {
|
|
1290
|
+
if (!(n & J))
|
|
1291
1291
|
return;
|
|
1292
|
-
r.f ^=
|
|
1292
|
+
r.f ^= J;
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
1295
1295
|
this.#s.push(r);
|
|
@@ -1297,11 +1297,11 @@ class Le {
|
|
|
1297
1297
|
#p() {
|
|
1298
1298
|
if (this.linked) {
|
|
1299
1299
|
var t = this.#t, r = this.#r;
|
|
1300
|
-
t === null ? Ar = r : t.#r = r, r === null ?
|
|
1300
|
+
t === null ? Ar = r : t.#r = r, r === null ? at = t : r.#t = t, this.linked = !1;
|
|
1301
1301
|
}
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1304
|
+
function pe(e) {
|
|
1305
1305
|
var t = Ct;
|
|
1306
1306
|
Ct = !0;
|
|
1307
1307
|
try {
|
|
@@ -1321,58 +1321,58 @@ function Ea() {
|
|
|
1321
1321
|
try {
|
|
1322
1322
|
zs();
|
|
1323
1323
|
} catch (e) {
|
|
1324
|
-
|
|
1324
|
+
ke(e, Xr);
|
|
1325
1325
|
}
|
|
1326
1326
|
}
|
|
1327
|
-
let
|
|
1328
|
-
function
|
|
1327
|
+
let Ie = null;
|
|
1328
|
+
function On(e) {
|
|
1329
1329
|
var t = e.length;
|
|
1330
1330
|
if (t !== 0) {
|
|
1331
1331
|
for (var r = 0; r < t; ) {
|
|
1332
1332
|
var n = e[r++];
|
|
1333
|
-
if (!(n.f & (
|
|
1334
|
-
|
|
1335
|
-
for (const i of
|
|
1336
|
-
if (i.f & (
|
|
1333
|
+
if (!(n.f & (ce | re)) && Wt(n) && (Ie = /* @__PURE__ */ new Set(), mt(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Li(n), Ie?.size > 0)) {
|
|
1334
|
+
Me.clear();
|
|
1335
|
+
for (const i of Ie) {
|
|
1336
|
+
if (i.f & (ce | re)) continue;
|
|
1337
1337
|
const s = [i];
|
|
1338
1338
|
let a = i.parent;
|
|
1339
1339
|
for (; a !== null; )
|
|
1340
|
-
|
|
1340
|
+
Ie.has(a) && (Ie.delete(a), s.push(a)), a = a.parent;
|
|
1341
1341
|
for (let o = s.length - 1; o >= 0; o--) {
|
|
1342
1342
|
const u = s[o];
|
|
1343
|
-
u.f & (
|
|
1343
|
+
u.f & (ce | re) || mt(u);
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
|
-
|
|
1346
|
+
Ie.clear();
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
|
-
|
|
1349
|
+
Ie = null;
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function Ei(e, t, r, n) {
|
|
1353
1353
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
1354
1354
|
for (const i of e.reactions) {
|
|
1355
1355
|
const s = i.f;
|
|
1356
|
-
s &
|
|
1356
|
+
s & Q ? Ei(
|
|
1357
1357
|
/** @type {Derived} */
|
|
1358
1358
|
i,
|
|
1359
1359
|
t,
|
|
1360
1360
|
r,
|
|
1361
1361
|
n
|
|
1362
|
-
) : s & (
|
|
1362
|
+
) : s & (ft | be) && !(s & q) && dn(i, t, n) && (X(i, q), pn(
|
|
1363
1363
|
/** @type {Effect} */
|
|
1364
1364
|
i
|
|
1365
1365
|
));
|
|
1366
1366
|
}
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function dn(e, t, r) {
|
|
1369
1369
|
const n = r.get(e);
|
|
1370
1370
|
if (n !== void 0) return n;
|
|
1371
1371
|
if (e.deps !== null)
|
|
1372
1372
|
for (const i of e.deps) {
|
|
1373
1373
|
if (rr.call(t, i))
|
|
1374
1374
|
return !0;
|
|
1375
|
-
if (i.f &
|
|
1375
|
+
if (i.f & Q && dn(
|
|
1376
1376
|
/** @type {Derived} */
|
|
1377
1377
|
i,
|
|
1378
1378
|
t,
|
|
@@ -1386,125 +1386,125 @@ function hn(e, t, r) {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
return r.set(e, !1), !1;
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function pn(e) {
|
|
1390
1390
|
I.schedule(e);
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1393
|
-
if (!(e.f &
|
|
1394
|
-
e.f &
|
|
1392
|
+
function xi(e, t) {
|
|
1393
|
+
if (!(e.f & _e && e.f & J)) {
|
|
1394
|
+
e.f & q ? t.d.push(e) : e.f & xe && t.m.push(e), X(e, J);
|
|
1395
1395
|
for (var r = e.first; r !== null; )
|
|
1396
|
-
|
|
1396
|
+
xi(r, t), r = r.next;
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1400
|
-
|
|
1399
|
+
function wi(e) {
|
|
1400
|
+
X(e, J);
|
|
1401
1401
|
for (var t = e.first; t !== null; )
|
|
1402
|
-
|
|
1402
|
+
wi(t), t = t.next;
|
|
1403
1403
|
}
|
|
1404
1404
|
let ur = /* @__PURE__ */ new Set();
|
|
1405
|
-
const
|
|
1406
|
-
let
|
|
1407
|
-
function
|
|
1405
|
+
const Me = /* @__PURE__ */ new Map();
|
|
1406
|
+
let Ti = !1;
|
|
1407
|
+
function Ke(e, t) {
|
|
1408
1408
|
var r = {
|
|
1409
1409
|
f: 0,
|
|
1410
1410
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
1411
1411
|
v: e,
|
|
1412
1412
|
reactions: null,
|
|
1413
|
-
equals:
|
|
1413
|
+
equals: fi,
|
|
1414
1414
|
rv: 0,
|
|
1415
1415
|
wv: 0
|
|
1416
1416
|
};
|
|
1417
1417
|
return r;
|
|
1418
1418
|
}
|
|
1419
1419
|
// @__NO_SIDE_EFFECTS__
|
|
1420
|
-
function
|
|
1421
|
-
const r =
|
|
1420
|
+
function te(e, t) {
|
|
1421
|
+
const r = Ke(e);
|
|
1422
1422
|
return Di(r), r;
|
|
1423
1423
|
}
|
|
1424
1424
|
// @__NO_SIDE_EFFECTS__
|
|
1425
|
-
function
|
|
1426
|
-
const n =
|
|
1427
|
-
return t || (n.equals =
|
|
1425
|
+
function vn(e, t = !1, r = !0) {
|
|
1426
|
+
const n = Ke(e);
|
|
1427
|
+
return t || (n.equals = ci), n;
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1430
|
-
|
|
1429
|
+
function z(e, t, r = !1) {
|
|
1430
|
+
N !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
1431
1431
|
// to ensure we error if state is set inside an inspect effect
|
|
1432
|
-
(!
|
|
1432
|
+
(!Ee || N.f & ir) && di() && N.f & (Q | be | ft | ir) && (Oe === null || !Oe.has(e)) && Qs();
|
|
1433
1433
|
let n = r ? It(t) : t;
|
|
1434
|
-
return
|
|
1434
|
+
return _t(e, n, Jt);
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function _t(e, t, r = null) {
|
|
1437
1437
|
if (!e.equals(t)) {
|
|
1438
|
-
|
|
1439
|
-
var n =
|
|
1440
|
-
if (n.capture(e, t), e.f &
|
|
1438
|
+
Re ? Me.set(e, t) : Me.has(e) || Me.set(e, e.v);
|
|
1439
|
+
var n = Ce.ensure();
|
|
1440
|
+
if (n.capture(e, t), e.f & Q) {
|
|
1441
1441
|
const i = (
|
|
1442
1442
|
/** @type {Derived} */
|
|
1443
1443
|
e
|
|
1444
1444
|
);
|
|
1445
|
-
e.f &
|
|
1445
|
+
e.f & q && cn(i), ye === null && fn(i);
|
|
1446
1446
|
}
|
|
1447
|
-
e.wv = Fi(),
|
|
1447
|
+
e.wv = Fi(), Si(e, q, r), M !== null && M.f & J && !(M.f & (_e | Ne)) && (de === null ? Na([e]) : de.push(e)), !n.is_fork && ur.size > 0 && !Ti && xa();
|
|
1448
1448
|
}
|
|
1449
1449
|
return t;
|
|
1450
1450
|
}
|
|
1451
1451
|
function xa() {
|
|
1452
|
-
|
|
1452
|
+
Ti = !1;
|
|
1453
1453
|
for (const e of ur) {
|
|
1454
|
-
e.f &
|
|
1454
|
+
e.f & J && X(e, xe);
|
|
1455
1455
|
let t;
|
|
1456
1456
|
try {
|
|
1457
1457
|
t = Wt(e);
|
|
1458
1458
|
} catch {
|
|
1459
1459
|
t = !0;
|
|
1460
1460
|
}
|
|
1461
|
-
t &&
|
|
1461
|
+
t && mt(e);
|
|
1462
1462
|
}
|
|
1463
1463
|
ur.clear();
|
|
1464
1464
|
}
|
|
1465
1465
|
function Rt(e) {
|
|
1466
|
-
|
|
1466
|
+
z(e, e.v + 1);
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function Si(e, t, r) {
|
|
1469
1469
|
var n = e.reactions;
|
|
1470
1470
|
if (n !== null)
|
|
1471
1471
|
for (var i = n.length, s = 0; s < i; s++) {
|
|
1472
|
-
var a = n[s], o = a.f, u = (o &
|
|
1473
|
-
if (u &&
|
|
1472
|
+
var a = n[s], o = a.f, u = (o & q) === 0;
|
|
1473
|
+
if (u && X(a, t), o & ir)
|
|
1474
1474
|
ur.add(
|
|
1475
1475
|
/** @type {Effect} */
|
|
1476
1476
|
a
|
|
1477
1477
|
);
|
|
1478
|
-
else if (o &
|
|
1478
|
+
else if (o & Q) {
|
|
1479
1479
|
var l = (
|
|
1480
1480
|
/** @type {Derived} */
|
|
1481
1481
|
a
|
|
1482
1482
|
);
|
|
1483
|
-
|
|
1483
|
+
ye?.delete(l), o & Qe || (o & ve && (M === null || !(M.f & sr)) && (a.f |= Qe), Si(l, xe, r));
|
|
1484
1484
|
} else if (u) {
|
|
1485
1485
|
var f = (
|
|
1486
1486
|
/** @type {Effect} */
|
|
1487
1487
|
a
|
|
1488
1488
|
);
|
|
1489
|
-
o &
|
|
1489
|
+
o & be && Ie !== null && Ie.add(f), r !== null ? r.push(f) : pn(f);
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
1492
|
}
|
|
1493
1493
|
function It(e) {
|
|
1494
1494
|
if (typeof e != "object" || e === null || Zt in e)
|
|
1495
1495
|
return e;
|
|
1496
|
-
const t =
|
|
1496
|
+
const t = ni(e);
|
|
1497
1497
|
if (t !== Cs && t !== Rs)
|
|
1498
1498
|
return e;
|
|
1499
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
1500
|
-
if (
|
|
1499
|
+
var r = /* @__PURE__ */ new Map(), n = ri(e), i = /* @__PURE__ */ te(0), s = Je, a = (o) => {
|
|
1500
|
+
if (Je === s)
|
|
1501
1501
|
return o();
|
|
1502
|
-
var u =
|
|
1503
|
-
|
|
1502
|
+
var u = N, l = Je;
|
|
1503
|
+
me(null), Bn(s);
|
|
1504
1504
|
var f = o();
|
|
1505
|
-
return
|
|
1505
|
+
return me(u), Bn(l), f;
|
|
1506
1506
|
};
|
|
1507
|
-
return n && r.set("length", /* @__PURE__ */
|
|
1507
|
+
return n && r.set("length", /* @__PURE__ */ te(
|
|
1508
1508
|
/** @type {any[]} */
|
|
1509
1509
|
e.length
|
|
1510
1510
|
)), new Proxy(
|
|
@@ -1515,31 +1515,31 @@ function It(e) {
|
|
|
1515
1515
|
(!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Zs();
|
|
1516
1516
|
var f = r.get(u);
|
|
1517
1517
|
return f === void 0 ? a(() => {
|
|
1518
|
-
var c = /* @__PURE__ */
|
|
1518
|
+
var c = /* @__PURE__ */ te(l.value);
|
|
1519
1519
|
return r.set(u, c), c;
|
|
1520
|
-
}) :
|
|
1520
|
+
}) : z(f, l.value, !0), !0;
|
|
1521
1521
|
},
|
|
1522
1522
|
deleteProperty(o, u) {
|
|
1523
1523
|
var l = r.get(u);
|
|
1524
1524
|
if (l === void 0) {
|
|
1525
1525
|
if (u in o) {
|
|
1526
|
-
const f = a(() => /* @__PURE__ */
|
|
1526
|
+
const f = a(() => /* @__PURE__ */ te(Z));
|
|
1527
1527
|
r.set(u, f), Rt(i);
|
|
1528
1528
|
}
|
|
1529
1529
|
} else
|
|
1530
|
-
|
|
1530
|
+
z(l, Z), Rt(i);
|
|
1531
1531
|
return !0;
|
|
1532
1532
|
},
|
|
1533
1533
|
get(o, u, l) {
|
|
1534
1534
|
if (u === Zt)
|
|
1535
1535
|
return e;
|
|
1536
1536
|
var f = r.get(u), c = u in o;
|
|
1537
|
-
if (f === void 0 && (!c ||
|
|
1538
|
-
var d = It(c ? o[u] :
|
|
1537
|
+
if (f === void 0 && (!c || lt(o, u)?.writable) && (f = a(() => {
|
|
1538
|
+
var d = It(c ? o[u] : Z), p = /* @__PURE__ */ te(d);
|
|
1539
1539
|
return p;
|
|
1540
1540
|
}), r.set(u, f)), f !== void 0) {
|
|
1541
1541
|
var h = w(f);
|
|
1542
|
-
return h ===
|
|
1542
|
+
return h === Z ? void 0 : h;
|
|
1543
1543
|
}
|
|
1544
1544
|
return Reflect.get(o, u, l);
|
|
1545
1545
|
},
|
|
@@ -1550,7 +1550,7 @@ function It(e) {
|
|
|
1550
1550
|
f && (l.value = w(f));
|
|
1551
1551
|
} else if (l === void 0) {
|
|
1552
1552
|
var c = r.get(u), h = c?.v;
|
|
1553
|
-
if (c !== void 0 && h !==
|
|
1553
|
+
if (c !== void 0 && h !== Z)
|
|
1554
1554
|
return {
|
|
1555
1555
|
enumerable: !0,
|
|
1556
1556
|
configurable: !0,
|
|
@@ -1563,14 +1563,14 @@ function It(e) {
|
|
|
1563
1563
|
has(o, u) {
|
|
1564
1564
|
if (u === Zt)
|
|
1565
1565
|
return !0;
|
|
1566
|
-
var l = r.get(u), f = l !== void 0 && l.v !==
|
|
1567
|
-
if (l !== void 0 ||
|
|
1566
|
+
var l = r.get(u), f = l !== void 0 && l.v !== Z || Reflect.has(o, u);
|
|
1567
|
+
if (l !== void 0 || M !== null && (!f || lt(o, u)?.writable)) {
|
|
1568
1568
|
l === void 0 && (l = a(() => {
|
|
1569
|
-
var h = f ? It(o[u]) :
|
|
1569
|
+
var h = f ? It(o[u]) : Z, d = /* @__PURE__ */ te(h);
|
|
1570
1570
|
return d;
|
|
1571
1571
|
}), r.set(u, l));
|
|
1572
1572
|
var c = w(l);
|
|
1573
|
-
if (c ===
|
|
1573
|
+
if (c === Z)
|
|
1574
1574
|
return !1;
|
|
1575
1575
|
}
|
|
1576
1576
|
return f;
|
|
@@ -1581,23 +1581,23 @@ function It(e) {
|
|
|
1581
1581
|
for (var d = l; d < /** @type {Source<number>} */
|
|
1582
1582
|
c.v; d += 1) {
|
|
1583
1583
|
var p = r.get(d + "");
|
|
1584
|
-
p !== void 0 ?
|
|
1584
|
+
p !== void 0 ? z(p, Z) : d in o && (p = a(() => /* @__PURE__ */ te(Z)), r.set(d + "", p));
|
|
1585
1585
|
}
|
|
1586
1586
|
if (c === void 0)
|
|
1587
|
-
(!h ||
|
|
1587
|
+
(!h || lt(o, u)?.writable) && (c = a(() => /* @__PURE__ */ te(void 0)), z(c, It(l)), r.set(u, c));
|
|
1588
1588
|
else {
|
|
1589
|
-
h = c.v !==
|
|
1590
|
-
var
|
|
1591
|
-
|
|
1589
|
+
h = c.v !== Z;
|
|
1590
|
+
var y = a(() => It(l));
|
|
1591
|
+
z(c, y);
|
|
1592
1592
|
}
|
|
1593
1593
|
var m = Reflect.getOwnPropertyDescriptor(o, u);
|
|
1594
1594
|
if (m?.set && m.set.call(f, l), !h) {
|
|
1595
1595
|
if (n && typeof u == "string") {
|
|
1596
|
-
var
|
|
1596
|
+
var T = (
|
|
1597
1597
|
/** @type {Source<number>} */
|
|
1598
1598
|
r.get("length")
|
|
1599
|
-
),
|
|
1600
|
-
Number.isInteger(
|
|
1599
|
+
), $ = Number(u);
|
|
1600
|
+
Number.isInteger($) && $ >= T.v && z(T, $ + 1);
|
|
1601
1601
|
}
|
|
1602
1602
|
Rt(i);
|
|
1603
1603
|
}
|
|
@@ -1607,10 +1607,10 @@ function It(e) {
|
|
|
1607
1607
|
w(i);
|
|
1608
1608
|
var u = Reflect.ownKeys(o).filter((c) => {
|
|
1609
1609
|
var h = r.get(c);
|
|
1610
|
-
return h === void 0 || h.v !==
|
|
1610
|
+
return h === void 0 || h.v !== Z;
|
|
1611
1611
|
});
|
|
1612
1612
|
for (var [l, f] of r)
|
|
1613
|
-
f.v !==
|
|
1613
|
+
f.v !== Z && !(l in o) && u.push(l);
|
|
1614
1614
|
return u;
|
|
1615
1615
|
},
|
|
1616
1616
|
setPrototypeOf() {
|
|
@@ -1619,95 +1619,92 @@ function It(e) {
|
|
|
1619
1619
|
}
|
|
1620
1620
|
);
|
|
1621
1621
|
}
|
|
1622
|
-
var
|
|
1623
|
-
function
|
|
1624
|
-
if (
|
|
1625
|
-
|
|
1622
|
+
var Nn, Ai, Hi, Mi;
|
|
1623
|
+
function Wr() {
|
|
1624
|
+
if (Nn === void 0) {
|
|
1625
|
+
Nn = window, Ai = /Firefox/.test(navigator.userAgent);
|
|
1626
1626
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1627
|
-
|
|
1627
|
+
Hi = lt(t, "firstChild").get, Mi = lt(t, "nextSibling").get, Hn(e) && (e[Gr] = void 0, e[ui] = null, e[Gs] = void 0, e.__e = void 0), Hn(r) && (r[kr] = void 0);
|
|
1628
1628
|
}
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1630
|
+
function we(e = "") {
|
|
1631
1631
|
return document.createTextNode(e);
|
|
1632
1632
|
}
|
|
1633
1633
|
// @__NO_SIDE_EFFECTS__
|
|
1634
|
-
function
|
|
1634
|
+
function et(e) {
|
|
1635
1635
|
return (
|
|
1636
1636
|
/** @type {TemplateNode | null} */
|
|
1637
|
-
|
|
1637
|
+
Hi.call(e)
|
|
1638
1638
|
);
|
|
1639
1639
|
}
|
|
1640
1640
|
// @__NO_SIDE_EFFECTS__
|
|
1641
|
-
function
|
|
1641
|
+
function $e(e) {
|
|
1642
1642
|
return (
|
|
1643
1643
|
/** @type {TemplateNode | null} */
|
|
1644
|
-
|
|
1644
|
+
Mi.call(e)
|
|
1645
1645
|
);
|
|
1646
1646
|
}
|
|
1647
1647
|
function Ot(e, t) {
|
|
1648
|
-
if (!
|
|
1649
|
-
return /* @__PURE__ */
|
|
1650
|
-
var r = /* @__PURE__ */
|
|
1648
|
+
if (!C)
|
|
1649
|
+
return /* @__PURE__ */ et(e);
|
|
1650
|
+
var r = /* @__PURE__ */ et(B);
|
|
1651
1651
|
if (r === null)
|
|
1652
|
-
r = B.appendChild(
|
|
1652
|
+
r = B.appendChild(we());
|
|
1653
1653
|
else if (t && r.nodeType !== vr) {
|
|
1654
|
-
var n =
|
|
1655
|
-
return r?.before(n),
|
|
1654
|
+
var n = we();
|
|
1655
|
+
return r?.before(n), ue(n), n;
|
|
1656
1656
|
}
|
|
1657
|
-
return t &&
|
|
1657
|
+
return t && mn(
|
|
1658
1658
|
/** @type {Text} */
|
|
1659
1659
|
r
|
|
1660
|
-
),
|
|
1660
|
+
), ue(r), r;
|
|
1661
1661
|
}
|
|
1662
1662
|
function wa(e, t = !1) {
|
|
1663
|
-
if (!
|
|
1664
|
-
var r = /* @__PURE__ */
|
|
1665
|
-
return r instanceof Comment && r.data === "" ? /* @__PURE__ */
|
|
1663
|
+
if (!C) {
|
|
1664
|
+
var r = /* @__PURE__ */ et(e);
|
|
1665
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ $e(r) : r;
|
|
1666
1666
|
}
|
|
1667
1667
|
if (t) {
|
|
1668
1668
|
if (B?.nodeType !== vr) {
|
|
1669
|
-
var n =
|
|
1670
|
-
return B?.before(n),
|
|
1669
|
+
var n = we();
|
|
1670
|
+
return B?.before(n), ue(n), n;
|
|
1671
1671
|
}
|
|
1672
|
-
|
|
1672
|
+
mn(
|
|
1673
1673
|
/** @type {Text} */
|
|
1674
1674
|
B
|
|
1675
1675
|
);
|
|
1676
1676
|
}
|
|
1677
1677
|
return B;
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1680
|
-
let n =
|
|
1679
|
+
function Pn(e, t = 1, r = !1) {
|
|
1680
|
+
let n = C ? B : e;
|
|
1681
1681
|
for (var i; t--; )
|
|
1682
1682
|
i = n, n = /** @type {TemplateNode} */
|
|
1683
|
-
/* @__PURE__ */
|
|
1684
|
-
if (!
|
|
1683
|
+
/* @__PURE__ */ $e(n);
|
|
1684
|
+
if (!C)
|
|
1685
1685
|
return n;
|
|
1686
1686
|
if (r) {
|
|
1687
1687
|
if (n?.nodeType !== vr) {
|
|
1688
|
-
var s =
|
|
1689
|
-
return n === null ? i?.after(s) : n.before(s),
|
|
1688
|
+
var s = we();
|
|
1689
|
+
return n === null ? i?.after(s) : n.before(s), ue(s), s;
|
|
1690
1690
|
}
|
|
1691
|
-
|
|
1691
|
+
mn(
|
|
1692
1692
|
/** @type {Text} */
|
|
1693
1693
|
n
|
|
1694
1694
|
);
|
|
1695
1695
|
}
|
|
1696
|
-
return
|
|
1696
|
+
return ue(n), n;
|
|
1697
1697
|
}
|
|
1698
|
-
function
|
|
1698
|
+
function Oi(e) {
|
|
1699
1699
|
e.textContent = "";
|
|
1700
1700
|
}
|
|
1701
|
-
function
|
|
1702
|
-
return !1;
|
|
1703
|
-
}
|
|
1704
|
-
function pn(e, t, r) {
|
|
1701
|
+
function _n(e, t, r) {
|
|
1705
1702
|
return (
|
|
1706
1703
|
/** @type {T extends keyof HTMLElementTagNameMap ? HTMLElementTagNameMap[T] : Element} */
|
|
1707
1704
|
r ? document.createElement(e, { is: r }) : document.createElement(e)
|
|
1708
1705
|
);
|
|
1709
1706
|
}
|
|
1710
|
-
function
|
|
1707
|
+
function mn(e) {
|
|
1711
1708
|
if (
|
|
1712
1709
|
/** @type {string} */
|
|
1713
1710
|
e.nodeValue.length < 65536
|
|
@@ -1719,20 +1716,20 @@ function vn(e) {
|
|
|
1719
1716
|
t.nodeValue, t = e.nextSibling;
|
|
1720
1717
|
}
|
|
1721
1718
|
function Ni(e) {
|
|
1722
|
-
|
|
1719
|
+
M === null && (N === null && Ys(), Ws()), Re && Xs();
|
|
1723
1720
|
}
|
|
1724
1721
|
function Ta(e, t) {
|
|
1725
1722
|
var r = t.last;
|
|
1726
1723
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1727
1724
|
}
|
|
1728
1725
|
function Te(e, t) {
|
|
1729
|
-
var r =
|
|
1730
|
-
r !== null && r.f &
|
|
1726
|
+
var r = M;
|
|
1727
|
+
r !== null && r.f & re && (e |= re);
|
|
1731
1728
|
var n = {
|
|
1732
|
-
ctx:
|
|
1729
|
+
ctx: ne,
|
|
1733
1730
|
deps: null,
|
|
1734
1731
|
nodes: null,
|
|
1735
|
-
f: e |
|
|
1732
|
+
f: e | q | ve,
|
|
1736
1733
|
first: null,
|
|
1737
1734
|
fn: t,
|
|
1738
1735
|
last: null,
|
|
@@ -1746,106 +1743,106 @@ function Te(e, t) {
|
|
|
1746
1743
|
};
|
|
1747
1744
|
I?.register_created_effect(n);
|
|
1748
1745
|
var i = n;
|
|
1749
|
-
if (e &
|
|
1750
|
-
|
|
1746
|
+
if (e & dt)
|
|
1747
|
+
ut !== null ? ut.push(n) : Ce.ensure().schedule(n);
|
|
1751
1748
|
else if (t !== null) {
|
|
1752
1749
|
try {
|
|
1753
|
-
|
|
1750
|
+
mt(n);
|
|
1754
1751
|
} catch (a) {
|
|
1755
|
-
throw
|
|
1752
|
+
throw ie(n), a;
|
|
1756
1753
|
}
|
|
1757
1754
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && // either `null`, or a singular child
|
|
1758
|
-
!(i.f &
|
|
1755
|
+
!(i.f & rt) && (i = i.first, e & be && e & pt && i !== null && (i.f |= pt));
|
|
1759
1756
|
}
|
|
1760
|
-
if (i !== null && (i.parent = r, r !== null && Ta(i, r),
|
|
1757
|
+
if (i !== null && (i.parent = r, r !== null && Ta(i, r), N !== null && N.f & Q && !(e & Ne))) {
|
|
1761
1758
|
var s = (
|
|
1762
1759
|
/** @type {Derived} */
|
|
1763
|
-
|
|
1760
|
+
N
|
|
1764
1761
|
);
|
|
1765
1762
|
(s.effects ??= []).push(i);
|
|
1766
1763
|
}
|
|
1767
1764
|
return n;
|
|
1768
1765
|
}
|
|
1769
|
-
function
|
|
1770
|
-
return
|
|
1766
|
+
function gn() {
|
|
1767
|
+
return N !== null && !Ee;
|
|
1771
1768
|
}
|
|
1772
1769
|
function Pi(e) {
|
|
1773
1770
|
const t = Te(jt, null);
|
|
1774
|
-
return
|
|
1771
|
+
return X(t, J), t.teardown = e, t;
|
|
1775
1772
|
}
|
|
1776
1773
|
function lr(e) {
|
|
1777
1774
|
Ni();
|
|
1778
1775
|
var t = (
|
|
1779
1776
|
/** @type {Effect} */
|
|
1780
|
-
|
|
1781
|
-
), r = !
|
|
1777
|
+
M.f
|
|
1778
|
+
), r = !N && (t & _e) !== 0 && ne !== null && !ne.i;
|
|
1782
1779
|
if (r) {
|
|
1783
1780
|
var n = (
|
|
1784
1781
|
/** @type {ComponentContext} */
|
|
1785
|
-
|
|
1782
|
+
ne
|
|
1786
1783
|
);
|
|
1787
1784
|
(n.e ??= []).push(e);
|
|
1788
1785
|
} else
|
|
1789
1786
|
return $i(e);
|
|
1790
1787
|
}
|
|
1791
1788
|
function $i(e) {
|
|
1792
|
-
return Te(
|
|
1789
|
+
return Te(dt | oi, e);
|
|
1793
1790
|
}
|
|
1794
1791
|
function hl(e) {
|
|
1795
|
-
return Ni(), Te(jt |
|
|
1792
|
+
return Ni(), Te(jt | oi, e);
|
|
1796
1793
|
}
|
|
1797
1794
|
function Sa(e) {
|
|
1798
|
-
|
|
1799
|
-
const t = Te(
|
|
1795
|
+
Ce.ensure();
|
|
1796
|
+
const t = Te(Ne | rt, e);
|
|
1800
1797
|
return () => {
|
|
1801
|
-
|
|
1798
|
+
ie(t);
|
|
1802
1799
|
};
|
|
1803
1800
|
}
|
|
1804
1801
|
function Aa(e) {
|
|
1805
|
-
|
|
1806
|
-
const t = Te(
|
|
1802
|
+
Ce.ensure();
|
|
1803
|
+
const t = Te(Ne | rt, e);
|
|
1807
1804
|
return (r = {}) => new Promise((n) => {
|
|
1808
|
-
r.outro ?
|
|
1809
|
-
|
|
1810
|
-
}) : (
|
|
1805
|
+
r.outro ? Ze(t, () => {
|
|
1806
|
+
ie(t), n(void 0);
|
|
1807
|
+
}) : (ie(t), n(void 0));
|
|
1811
1808
|
});
|
|
1812
1809
|
}
|
|
1813
1810
|
function Ii(e) {
|
|
1814
|
-
return Te(
|
|
1811
|
+
return Te(dt, e);
|
|
1815
1812
|
}
|
|
1816
1813
|
function Ha(e) {
|
|
1817
|
-
return Te(
|
|
1814
|
+
return Te(ft | rt, e);
|
|
1818
1815
|
}
|
|
1819
|
-
function
|
|
1816
|
+
function bn(e, t = 0) {
|
|
1820
1817
|
return Te(jt | t, e);
|
|
1821
1818
|
}
|
|
1822
|
-
function
|
|
1819
|
+
function $n(e, t = [], r = [], n = []) {
|
|
1823
1820
|
pa(n, t, r, (i) => {
|
|
1824
1821
|
Te(jt, () => {
|
|
1825
1822
|
e(...i.map(w));
|
|
1826
1823
|
});
|
|
1827
1824
|
});
|
|
1828
1825
|
}
|
|
1829
|
-
function
|
|
1830
|
-
var r = Te(
|
|
1826
|
+
function yn(e, t = 0) {
|
|
1827
|
+
var r = Te(be | t, e);
|
|
1831
1828
|
return r;
|
|
1832
1829
|
}
|
|
1833
|
-
function
|
|
1834
|
-
return Te(
|
|
1830
|
+
function ge(e) {
|
|
1831
|
+
return Te(_e | rt, e);
|
|
1835
1832
|
}
|
|
1836
1833
|
function Bi(e) {
|
|
1837
1834
|
var t = e.teardown;
|
|
1838
1835
|
if (t !== null) {
|
|
1839
|
-
const r =
|
|
1840
|
-
|
|
1836
|
+
const r = Re, n = N;
|
|
1837
|
+
In(!0), me(null);
|
|
1841
1838
|
try {
|
|
1842
1839
|
t.call(null);
|
|
1843
1840
|
} finally {
|
|
1844
|
-
|
|
1841
|
+
In(r), me(n);
|
|
1845
1842
|
}
|
|
1846
1843
|
}
|
|
1847
1844
|
}
|
|
1848
|
-
function
|
|
1845
|
+
function En(e, t = !1) {
|
|
1849
1846
|
var r = e.first;
|
|
1850
1847
|
for (e.first = e.last = null; r !== null; ) {
|
|
1851
1848
|
const i = r.ac;
|
|
@@ -1853,33 +1850,33 @@ function bn(e, t = !1) {
|
|
|
1853
1850
|
i.abort(Vt);
|
|
1854
1851
|
});
|
|
1855
1852
|
var n = r.next;
|
|
1856
|
-
r.f &
|
|
1853
|
+
r.f & Ne ? r.parent = null : ie(r, t), r = n;
|
|
1857
1854
|
}
|
|
1858
1855
|
}
|
|
1859
1856
|
function Ma(e) {
|
|
1860
1857
|
for (var t = e.first; t !== null; ) {
|
|
1861
1858
|
var r = t.next;
|
|
1862
|
-
t.f &
|
|
1859
|
+
t.f & _e || ie(t), t = r;
|
|
1863
1860
|
}
|
|
1864
1861
|
}
|
|
1865
|
-
function
|
|
1862
|
+
function ie(e, t = !0) {
|
|
1866
1863
|
var r = !1;
|
|
1867
1864
|
(t || e.f & Ds) && e.nodes !== null && e.nodes.end !== null && (Oa(
|
|
1868
1865
|
e.nodes.start,
|
|
1869
1866
|
/** @type {TemplateNode} */
|
|
1870
1867
|
e.nodes.end
|
|
1871
|
-
), r = !0), e.f |=
|
|
1868
|
+
), r = !0), e.f |= Fr, En(e, t && !r), Ft(e, 0);
|
|
1872
1869
|
var n = e.nodes && e.nodes.t;
|
|
1873
1870
|
if (n !== null)
|
|
1874
1871
|
for (const s of n)
|
|
1875
1872
|
s.stop();
|
|
1876
|
-
Bi(e), e.f ^=
|
|
1873
|
+
Bi(e), e.f ^= Fr, e.f |= ce;
|
|
1877
1874
|
var i = e.parent;
|
|
1878
1875
|
i !== null && i.first !== null && Li(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1879
1876
|
}
|
|
1880
1877
|
function Oa(e, t) {
|
|
1881
1878
|
for (; e !== null; ) {
|
|
1882
|
-
var r = e === t ? null : /* @__PURE__ */
|
|
1879
|
+
var r = e === t ? null : /* @__PURE__ */ $e(e);
|
|
1883
1880
|
e.remove(), e = r;
|
|
1884
1881
|
}
|
|
1885
1882
|
}
|
|
@@ -1887,11 +1884,11 @@ function Li(e) {
|
|
|
1887
1884
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1888
1885
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1889
1886
|
}
|
|
1890
|
-
function
|
|
1887
|
+
function Ze(e, t, r = !0) {
|
|
1891
1888
|
var n = [];
|
|
1892
1889
|
Ci(e, n, !0);
|
|
1893
1890
|
var i = () => {
|
|
1894
|
-
r &&
|
|
1891
|
+
r && ie(e), t && t();
|
|
1895
1892
|
}, s = n.length;
|
|
1896
1893
|
if (s > 0) {
|
|
1897
1894
|
var a = () => --s || i();
|
|
@@ -1901,19 +1898,19 @@ function Je(e, t, r = !0) {
|
|
|
1901
1898
|
i();
|
|
1902
1899
|
}
|
|
1903
1900
|
function Ci(e, t, r) {
|
|
1904
|
-
if (!(e.f &
|
|
1905
|
-
e.f ^=
|
|
1901
|
+
if (!(e.f & re)) {
|
|
1902
|
+
e.f ^= re;
|
|
1906
1903
|
var n = e.nodes && e.nodes.t;
|
|
1907
1904
|
if (n !== null)
|
|
1908
1905
|
for (const o of n)
|
|
1909
1906
|
(o.is_global || r) && t.push(o);
|
|
1910
1907
|
for (var i = e.first; i !== null; ) {
|
|
1911
1908
|
var s = i.next;
|
|
1912
|
-
if (!(i.f &
|
|
1913
|
-
var a = (i.f &
|
|
1909
|
+
if (!(i.f & Ne)) {
|
|
1910
|
+
var a = (i.f & pt) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1914
1911
|
// it means the parent block effect was pruned. In that case,
|
|
1915
1912
|
// transparency information was transferred to the branch effect.
|
|
1916
|
-
(i.f &
|
|
1913
|
+
(i.f & _e) !== 0 && (e.f & be) !== 0;
|
|
1917
1914
|
Ci(i, t, a ? r : !1);
|
|
1918
1915
|
}
|
|
1919
1916
|
i = s;
|
|
@@ -1924,10 +1921,10 @@ function fr(e) {
|
|
|
1924
1921
|
Ri(e, !0);
|
|
1925
1922
|
}
|
|
1926
1923
|
function Ri(e, t) {
|
|
1927
|
-
if (e.f &
|
|
1928
|
-
e.f ^=
|
|
1924
|
+
if (e.f & re) {
|
|
1925
|
+
e.f ^= re, e.f & J || (X(e, q), Ce.ensure().schedule(e));
|
|
1929
1926
|
for (var r = e.first; r !== null; ) {
|
|
1930
|
-
var n = r.next, i = (r.f &
|
|
1927
|
+
var n = r.next, i = (r.f & pt) !== 0 || (r.f & _e) !== 0;
|
|
1931
1928
|
Ri(r, i ? t : !1), r = n;
|
|
1932
1929
|
}
|
|
1933
1930
|
var s = e.nodes && e.nodes.t;
|
|
@@ -1936,45 +1933,45 @@ function Ri(e, t) {
|
|
|
1936
1933
|
(a.is_global || t) && a.in();
|
|
1937
1934
|
}
|
|
1938
1935
|
}
|
|
1939
|
-
function
|
|
1936
|
+
function xn(e, t) {
|
|
1940
1937
|
if (e.nodes)
|
|
1941
1938
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1942
|
-
var i = r === n ? null : /* @__PURE__ */
|
|
1939
|
+
var i = r === n ? null : /* @__PURE__ */ $e(r);
|
|
1943
1940
|
t.append(r), r = i;
|
|
1944
1941
|
}
|
|
1945
1942
|
}
|
|
1946
|
-
let Qt = !1,
|
|
1947
|
-
function
|
|
1948
|
-
|
|
1943
|
+
let Qt = !1, Re = !1;
|
|
1944
|
+
function In(e) {
|
|
1945
|
+
Re = e;
|
|
1949
1946
|
}
|
|
1950
|
-
let
|
|
1951
|
-
function
|
|
1952
|
-
|
|
1947
|
+
let N = null, Ee = !1;
|
|
1948
|
+
function me(e) {
|
|
1949
|
+
N = e;
|
|
1953
1950
|
}
|
|
1954
|
-
let
|
|
1955
|
-
function
|
|
1956
|
-
|
|
1951
|
+
let M = null;
|
|
1952
|
+
function Pe(e) {
|
|
1953
|
+
M = e;
|
|
1957
1954
|
}
|
|
1958
|
-
let
|
|
1955
|
+
let Oe = null;
|
|
1959
1956
|
function Di(e) {
|
|
1960
|
-
|
|
1957
|
+
N !== null && (Oe ??= /* @__PURE__ */ new Set()).add(e);
|
|
1961
1958
|
}
|
|
1962
|
-
let
|
|
1959
|
+
let oe = null, he = 0, de = null;
|
|
1963
1960
|
function Na(e) {
|
|
1964
1961
|
de = e;
|
|
1965
1962
|
}
|
|
1966
|
-
let Ui = 1, qe = 0,
|
|
1967
|
-
function
|
|
1968
|
-
|
|
1963
|
+
let Ui = 1, qe = 0, Je = qe;
|
|
1964
|
+
function Bn(e) {
|
|
1965
|
+
Je = e;
|
|
1969
1966
|
}
|
|
1970
1967
|
function Fi() {
|
|
1971
1968
|
return ++Ui;
|
|
1972
1969
|
}
|
|
1973
1970
|
function Wt(e) {
|
|
1974
1971
|
var t = e.f;
|
|
1975
|
-
if (t &
|
|
1972
|
+
if (t & q)
|
|
1976
1973
|
return !0;
|
|
1977
|
-
if (t &
|
|
1974
|
+
if (t & Q && (e.f &= ~Qe), t & xe) {
|
|
1978
1975
|
for (var r = (
|
|
1979
1976
|
/** @type {Value[]} */
|
|
1980
1977
|
e.deps
|
|
@@ -1983,38 +1980,38 @@ function Wt(e) {
|
|
|
1983
1980
|
if (Wt(
|
|
1984
1981
|
/** @type {Derived} */
|
|
1985
1982
|
s
|
|
1986
|
-
) &&
|
|
1983
|
+
) && bi(
|
|
1987
1984
|
/** @type {Derived} */
|
|
1988
1985
|
s
|
|
1989
1986
|
), s.wv > e.wv)
|
|
1990
1987
|
return !0;
|
|
1991
1988
|
}
|
|
1992
|
-
t &
|
|
1989
|
+
t & ve && // During time traveling we don't want to reset the status so that
|
|
1993
1990
|
// traversal of the graph in the other batches still happens
|
|
1994
|
-
|
|
1991
|
+
ye === null && X(e, J);
|
|
1995
1992
|
}
|
|
1996
1993
|
return !1;
|
|
1997
1994
|
}
|
|
1998
1995
|
function Gi(e, t, r = !0) {
|
|
1999
1996
|
var n = e.reactions;
|
|
2000
|
-
if (n !== null && !(
|
|
1997
|
+
if (n !== null && !(Oe !== null && Oe.has(e)))
|
|
2001
1998
|
for (var i = 0; i < n.length; i++) {
|
|
2002
1999
|
var s = n[i];
|
|
2003
|
-
s.f &
|
|
2000
|
+
s.f & Q ? Gi(
|
|
2004
2001
|
/** @type {Derived} */
|
|
2005
2002
|
s,
|
|
2006
2003
|
t,
|
|
2007
2004
|
!1
|
|
2008
|
-
) : t === s && (r ?
|
|
2005
|
+
) : t === s && (r ? X(s, q) : s.f & J && X(s, xe), pn(
|
|
2009
2006
|
/** @type {Effect} */
|
|
2010
2007
|
s
|
|
2011
2008
|
));
|
|
2012
2009
|
}
|
|
2013
2010
|
}
|
|
2014
2011
|
function ki(e) {
|
|
2015
|
-
var t =
|
|
2016
|
-
|
|
2017
|
-
null,
|
|
2012
|
+
var t = oe, r = he, n = de, i = N, s = Oe, a = ne, o = Ee, u = Je, l = e.f;
|
|
2013
|
+
oe = /** @type {null | Value[]} */
|
|
2014
|
+
null, he = 0, de = null, N = l & (_e | Ne) ? null : e, Oe = null, vt(e.ctx), Ee = !1, Je = ++qe, e.ac !== null && (br(() => {
|
|
2018
2015
|
e.ac.abort(Vt);
|
|
2019
2016
|
}), e.ac = null);
|
|
2020
2017
|
try {
|
|
@@ -2023,20 +2020,20 @@ function ki(e) {
|
|
|
2023
2020
|
/** @type {Function} */
|
|
2024
2021
|
e.fn
|
|
2025
2022
|
), c = f();
|
|
2026
|
-
e.f |=
|
|
2023
|
+
e.f |= tt;
|
|
2027
2024
|
var h = e.deps, d = I?.is_fork;
|
|
2028
|
-
if (
|
|
2025
|
+
if (oe !== null) {
|
|
2029
2026
|
var p;
|
|
2030
|
-
if (d || Ft(e,
|
|
2031
|
-
for (h.length =
|
|
2032
|
-
h[
|
|
2027
|
+
if (d || Ft(e, he), h !== null && he > 0)
|
|
2028
|
+
for (h.length = he + oe.length, p = 0; p < oe.length; p++)
|
|
2029
|
+
h[he + p] = oe[p];
|
|
2033
2030
|
else
|
|
2034
|
-
e.deps = h =
|
|
2035
|
-
if (
|
|
2036
|
-
for (p =
|
|
2031
|
+
e.deps = h = oe;
|
|
2032
|
+
if (gn() && e.f & ve)
|
|
2033
|
+
for (p = he; p < h.length; p++)
|
|
2037
2034
|
(h[p].reactions ??= []).push(e);
|
|
2038
|
-
} else !d && h !== null &&
|
|
2039
|
-
if (
|
|
2035
|
+
} else !d && h !== null && he < h.length && (Ft(e, he), h.length = he);
|
|
2036
|
+
if (di() && de !== null && !Ee && h !== null && !(e.f & (Q | xe | q)))
|
|
2040
2037
|
for (p = 0; p < /** @type {Source[]} */
|
|
2041
2038
|
de.length; p++)
|
|
2042
2039
|
Gi(
|
|
@@ -2046,19 +2043,19 @@ function ki(e) {
|
|
|
2046
2043
|
);
|
|
2047
2044
|
if (i !== null && i !== e) {
|
|
2048
2045
|
if (qe++, i.deps !== null)
|
|
2049
|
-
for (let
|
|
2050
|
-
i.deps[
|
|
2046
|
+
for (let y = 0; y < r; y += 1)
|
|
2047
|
+
i.deps[y].rv = qe;
|
|
2051
2048
|
if (t !== null)
|
|
2052
|
-
for (const
|
|
2053
|
-
|
|
2049
|
+
for (const y of t)
|
|
2050
|
+
y.rv = qe;
|
|
2054
2051
|
de !== null && (n === null ? n = de : n.push(.../** @type {Source[]} */
|
|
2055
2052
|
de));
|
|
2056
2053
|
}
|
|
2057
|
-
return e.f &
|
|
2058
|
-
} catch (
|
|
2059
|
-
return
|
|
2054
|
+
return e.f & Ve && (e.f ^= Ve), c;
|
|
2055
|
+
} catch (y) {
|
|
2056
|
+
return vi(y);
|
|
2060
2057
|
} finally {
|
|
2061
|
-
e.f ^= sr,
|
|
2058
|
+
e.f ^= sr, oe = t, he = r, de = n, N = i, Oe = s, vt(a), Ee = o, Je = u;
|
|
2062
2059
|
}
|
|
2063
2060
|
}
|
|
2064
2061
|
function Pa(e, t) {
|
|
@@ -2070,16 +2067,16 @@ function Pa(e, t) {
|
|
|
2070
2067
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
2071
2068
|
}
|
|
2072
2069
|
}
|
|
2073
|
-
if (r === null && t.f &
|
|
2070
|
+
if (r === null && t.f & Q && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
2074
2071
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
2075
2072
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
2076
|
-
(
|
|
2073
|
+
(oe === null || !rr.call(oe, t))) {
|
|
2077
2074
|
var s = (
|
|
2078
2075
|
/** @type {Derived} */
|
|
2079
2076
|
t
|
|
2080
2077
|
);
|
|
2081
|
-
s.f &
|
|
2082
|
-
s.ac.abort(Vt), s.ac = null,
|
|
2078
|
+
s.f & ve && (s.f ^= ve, s.f &= ~Qe), s.v !== Z && fn(s), s.ac !== null && br(() => {
|
|
2079
|
+
s.ac.abort(Vt), s.ac = null, X(s, q);
|
|
2083
2080
|
}), ba(s), Ft(s, 0);
|
|
2084
2081
|
}
|
|
2085
2082
|
}
|
|
@@ -2089,65 +2086,65 @@ function Ft(e, t) {
|
|
|
2089
2086
|
for (var n = t; n < r.length; n++)
|
|
2090
2087
|
Pa(e, r[n]);
|
|
2091
2088
|
}
|
|
2092
|
-
function
|
|
2089
|
+
function mt(e) {
|
|
2093
2090
|
var t = e.f;
|
|
2094
|
-
if (!(t &
|
|
2095
|
-
|
|
2096
|
-
var r =
|
|
2097
|
-
|
|
2091
|
+
if (!(t & ce)) {
|
|
2092
|
+
X(e, J);
|
|
2093
|
+
var r = M, n = Qt;
|
|
2094
|
+
M = e, Qt = (t & (_e | Ne)) === 0;
|
|
2098
2095
|
try {
|
|
2099
|
-
t & (
|
|
2096
|
+
t & (be | ai) ? Ma(e) : En(e), Bi(e);
|
|
2100
2097
|
var i = ki(e);
|
|
2101
2098
|
e.teardown = typeof i == "function" ? i : null, e.wv = Ui;
|
|
2102
2099
|
var s;
|
|
2103
|
-
|
|
2100
|
+
ti && na && e.f & q && e.deps;
|
|
2104
2101
|
} finally {
|
|
2105
|
-
Qt = n,
|
|
2102
|
+
Qt = n, M = r;
|
|
2106
2103
|
}
|
|
2107
2104
|
}
|
|
2108
2105
|
}
|
|
2109
2106
|
async function $a() {
|
|
2110
|
-
await Promise.resolve(),
|
|
2107
|
+
await Promise.resolve(), pe();
|
|
2111
2108
|
}
|
|
2112
2109
|
function w(e) {
|
|
2113
|
-
var t = e.f, r = (t &
|
|
2114
|
-
if (
|
|
2115
|
-
var n =
|
|
2116
|
-
if (!n && (
|
|
2117
|
-
var i =
|
|
2118
|
-
if (
|
|
2119
|
-
e.rv < qe && (e.rv = qe,
|
|
2110
|
+
var t = e.f, r = (t & Q) !== 0;
|
|
2111
|
+
if (N !== null && !Ee) {
|
|
2112
|
+
var n = M !== null && (M.f & ce) !== 0;
|
|
2113
|
+
if (!n && (Oe === null || !Oe.has(e))) {
|
|
2114
|
+
var i = N.deps;
|
|
2115
|
+
if (N.f & sr)
|
|
2116
|
+
e.rv < qe && (e.rv = qe, oe === null && i !== null && i[he] === e ? he++ : oe === null ? oe = [e] : oe.push(e));
|
|
2120
2117
|
else {
|
|
2121
|
-
|
|
2118
|
+
N.deps ??= [], rr.call(N.deps, e) || N.deps.push(e);
|
|
2122
2119
|
var s = e.reactions;
|
|
2123
|
-
s === null ? e.reactions = [
|
|
2120
|
+
s === null ? e.reactions = [N] : rr.call(s, N) || s.push(N);
|
|
2124
2121
|
}
|
|
2125
2122
|
}
|
|
2126
2123
|
}
|
|
2127
|
-
if (
|
|
2128
|
-
return
|
|
2124
|
+
if (Re && Me.has(e))
|
|
2125
|
+
return Me.get(e);
|
|
2129
2126
|
if (r) {
|
|
2130
2127
|
var a = (
|
|
2131
2128
|
/** @type {Derived} */
|
|
2132
2129
|
e
|
|
2133
2130
|
);
|
|
2134
|
-
if (
|
|
2131
|
+
if (Re) {
|
|
2135
2132
|
var o = a.v;
|
|
2136
|
-
return (!(a.f &
|
|
2133
|
+
return (!(a.f & J) && a.reactions !== null || Vi(a)) && (o = cn(a)), Me.set(a, o), o;
|
|
2137
2134
|
}
|
|
2138
|
-
var u = (a.f &
|
|
2139
|
-
Wt(a) && (u && (a.f |=
|
|
2135
|
+
var u = (a.f & ve) === 0 && !Ee && N !== null && (Qt || (N.f & ve) !== 0), l = (a.f & tt) === 0;
|
|
2136
|
+
Wt(a) && (u && (a.f |= ve), bi(a)), u && !l && (yi(a), ji(a));
|
|
2140
2137
|
}
|
|
2141
|
-
if (
|
|
2142
|
-
return
|
|
2143
|
-
if (e.f &
|
|
2138
|
+
if (ye?.has(e))
|
|
2139
|
+
return ye.get(e);
|
|
2140
|
+
if (e.f & Ve)
|
|
2144
2141
|
throw e.v;
|
|
2145
2142
|
return e.v;
|
|
2146
2143
|
}
|
|
2147
2144
|
function ji(e) {
|
|
2148
|
-
if (e.f |=
|
|
2145
|
+
if (e.f |= ve, e.deps !== null)
|
|
2149
2146
|
for (const t of e.deps)
|
|
2150
|
-
(t.reactions ??= []).push(e), t.f &
|
|
2147
|
+
(t.reactions ??= []).push(e), t.f & Q && !(t.f & ve) && (yi(
|
|
2151
2148
|
/** @type {Derived} */
|
|
2152
2149
|
t
|
|
2153
2150
|
), ji(
|
|
@@ -2156,36 +2153,36 @@ function ji(e) {
|
|
|
2156
2153
|
));
|
|
2157
2154
|
}
|
|
2158
2155
|
function Vi(e) {
|
|
2159
|
-
if (e.v ===
|
|
2156
|
+
if (e.v === Z) return !0;
|
|
2160
2157
|
if (e.deps === null) return !1;
|
|
2161
2158
|
for (const t of e.deps)
|
|
2162
|
-
if (
|
|
2159
|
+
if (Me.has(t) || t.f & Q && Vi(
|
|
2163
2160
|
/** @type {Derived} */
|
|
2164
2161
|
t
|
|
2165
2162
|
))
|
|
2166
2163
|
return !0;
|
|
2167
2164
|
return !1;
|
|
2168
2165
|
}
|
|
2169
|
-
function
|
|
2170
|
-
var t =
|
|
2166
|
+
function wn(e) {
|
|
2167
|
+
var t = Ee;
|
|
2171
2168
|
try {
|
|
2172
|
-
return
|
|
2169
|
+
return Ee = !0, e();
|
|
2173
2170
|
} finally {
|
|
2174
|
-
|
|
2171
|
+
Ee = t;
|
|
2175
2172
|
}
|
|
2176
2173
|
}
|
|
2177
|
-
const Bt = Symbol("events"), Xi = /* @__PURE__ */ new Set(),
|
|
2174
|
+
const Bt = Symbol("events"), Xi = /* @__PURE__ */ new Set(), Yr = /* @__PURE__ */ new Set();
|
|
2178
2175
|
function Mr(e, t, r) {
|
|
2179
2176
|
(t[Bt] ??= {})[e] = r;
|
|
2180
2177
|
}
|
|
2181
2178
|
function Ia(e) {
|
|
2182
2179
|
for (var t = 0; t < e.length; t++)
|
|
2183
2180
|
Xi.add(e[t]);
|
|
2184
|
-
for (var r of
|
|
2181
|
+
for (var r of Yr)
|
|
2185
2182
|
r(e);
|
|
2186
2183
|
}
|
|
2187
|
-
let
|
|
2188
|
-
function
|
|
2184
|
+
let Or = null, Nr = !1;
|
|
2185
|
+
function Ln(e) {
|
|
2189
2186
|
var t = this, r = (
|
|
2190
2187
|
/** @type {Node} */
|
|
2191
2188
|
t.ownerDocument
|
|
@@ -2193,8 +2190,10 @@ function Bn(e) {
|
|
|
2193
2190
|
/** @type {null | Element} */
|
|
2194
2191
|
i[0] || e.target
|
|
2195
2192
|
);
|
|
2196
|
-
|
|
2197
|
-
|
|
2193
|
+
Or = e, Nr || (Nr = !0, setTimeout(() => {
|
|
2194
|
+
Nr = !1, Or = null;
|
|
2195
|
+
}));
|
|
2196
|
+
var a = 0, o = Or === e && e[Bt];
|
|
2198
2197
|
if (o) {
|
|
2199
2198
|
var u = i.indexOf(o);
|
|
2200
2199
|
if (u !== -1 && (t === document || t === /** @type {any} */
|
|
@@ -2215,8 +2214,8 @@ function Bn(e) {
|
|
|
2215
2214
|
return s || r;
|
|
2216
2215
|
}
|
|
2217
2216
|
});
|
|
2218
|
-
var f =
|
|
2219
|
-
|
|
2217
|
+
var f = N, c = M;
|
|
2218
|
+
me(null), Pe(null);
|
|
2220
2219
|
try {
|
|
2221
2220
|
for (var h, d = []; s !== null && s !== t; ) {
|
|
2222
2221
|
try {
|
|
@@ -2225,8 +2224,8 @@ function Bn(e) {
|
|
|
2225
2224
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
2226
2225
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
2227
2226
|
e.target === s) && p.call(s, e);
|
|
2228
|
-
} catch (
|
|
2229
|
-
h ? d.push(
|
|
2227
|
+
} catch (y) {
|
|
2228
|
+
h ? d.push(y) : h = y;
|
|
2230
2229
|
}
|
|
2231
2230
|
if (e.cancelBubble) break;
|
|
2232
2231
|
a++, s = a < i.length ? (
|
|
@@ -2235,14 +2234,14 @@ function Bn(e) {
|
|
|
2235
2234
|
) : null;
|
|
2236
2235
|
}
|
|
2237
2236
|
if (h) {
|
|
2238
|
-
for (let
|
|
2237
|
+
for (let y of d)
|
|
2239
2238
|
queueMicrotask(() => {
|
|
2240
|
-
throw
|
|
2239
|
+
throw y;
|
|
2241
2240
|
});
|
|
2242
2241
|
throw h;
|
|
2243
2242
|
}
|
|
2244
2243
|
} finally {
|
|
2245
|
-
e[Bt] = t, delete e.currentTarget,
|
|
2244
|
+
e[Bt] = t, delete e.currentTarget, me(f), Pe(c);
|
|
2246
2245
|
}
|
|
2247
2246
|
}
|
|
2248
2247
|
}
|
|
@@ -2260,13 +2259,13 @@ function La(e) {
|
|
|
2260
2259
|
);
|
|
2261
2260
|
}
|
|
2262
2261
|
function Ca(e) {
|
|
2263
|
-
var t =
|
|
2262
|
+
var t = _n("template");
|
|
2264
2263
|
return t.innerHTML = La(e.replaceAll("<!>", "<!---->")), t.content;
|
|
2265
2264
|
}
|
|
2266
|
-
function
|
|
2265
|
+
function ht(e, t) {
|
|
2267
2266
|
var r = (
|
|
2268
2267
|
/** @type {Effect} */
|
|
2269
|
-
|
|
2268
|
+
M
|
|
2270
2269
|
);
|
|
2271
2270
|
r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
|
|
2272
2271
|
}
|
|
@@ -2274,41 +2273,41 @@ function ct(e, t) {
|
|
|
2274
2273
|
function Er(e, t) {
|
|
2275
2274
|
var r = (t & Ps) !== 0, n = (t & $s) !== 0, i, s = !e.startsWith("<!>");
|
|
2276
2275
|
return () => {
|
|
2277
|
-
if (
|
|
2278
|
-
return
|
|
2276
|
+
if (C)
|
|
2277
|
+
return ht(B, null), B;
|
|
2279
2278
|
i === void 0 && (i = Ca(s ? e : "<!>" + e), r || (i = /** @type {TemplateNode} */
|
|
2280
|
-
/* @__PURE__ */
|
|
2279
|
+
/* @__PURE__ */ et(i)));
|
|
2281
2280
|
var a = (
|
|
2282
2281
|
/** @type {TemplateNode} */
|
|
2283
|
-
n ||
|
|
2282
|
+
n || Ai ? document.importNode(i, !0) : i.cloneNode(!0)
|
|
2284
2283
|
);
|
|
2285
2284
|
if (r) {
|
|
2286
2285
|
var o = (
|
|
2287
2286
|
/** @type {TemplateNode} */
|
|
2288
|
-
/* @__PURE__ */
|
|
2287
|
+
/* @__PURE__ */ et(a)
|
|
2289
2288
|
), u = (
|
|
2290
2289
|
/** @type {TemplateNode} */
|
|
2291
2290
|
a.lastChild
|
|
2292
2291
|
);
|
|
2293
|
-
|
|
2292
|
+
ht(o, u);
|
|
2294
2293
|
} else
|
|
2295
|
-
|
|
2294
|
+
ht(a, a);
|
|
2296
2295
|
return a;
|
|
2297
2296
|
};
|
|
2298
2297
|
}
|
|
2299
2298
|
function Ra() {
|
|
2300
|
-
if (
|
|
2301
|
-
return
|
|
2302
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), r =
|
|
2303
|
-
return e.append(t, r),
|
|
2299
|
+
if (C)
|
|
2300
|
+
return ht(B, null), B;
|
|
2301
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = we();
|
|
2302
|
+
return e.append(t, r), ht(t, r), e;
|
|
2304
2303
|
}
|
|
2305
|
-
function
|
|
2306
|
-
if (
|
|
2304
|
+
function ot(e, t) {
|
|
2305
|
+
if (C) {
|
|
2307
2306
|
var r = (
|
|
2308
2307
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
2309
|
-
|
|
2308
|
+
M
|
|
2310
2309
|
);
|
|
2311
|
-
(!(r.f &
|
|
2310
|
+
(!(r.f & tt) || r.nodes.end === null) && (r.nodes.end = B), mr();
|
|
2312
2311
|
return;
|
|
2313
2312
|
}
|
|
2314
2313
|
e !== null && e.before(
|
|
@@ -2320,44 +2319,44 @@ const Da = ["touchstart", "touchmove"];
|
|
|
2320
2319
|
function Ua(e) {
|
|
2321
2320
|
return Da.includes(e);
|
|
2322
2321
|
}
|
|
2323
|
-
function
|
|
2322
|
+
function Pr(e, t) {
|
|
2324
2323
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
2325
2324
|
r !== /** @type {any} */
|
|
2326
|
-
(e[
|
|
2325
|
+
(e[kr] ??= e.nodeValue) && (e[kr] = r, e.nodeValue = `${r}`);
|
|
2327
2326
|
}
|
|
2328
2327
|
function Wi(e, t) {
|
|
2329
2328
|
return Yi(e, t);
|
|
2330
2329
|
}
|
|
2331
2330
|
function Fa(e, t) {
|
|
2332
|
-
|
|
2333
|
-
const r = t.target, n =
|
|
2331
|
+
Wr(), t.intro = t.intro ?? !1;
|
|
2332
|
+
const r = t.target, n = C, i = B;
|
|
2334
2333
|
try {
|
|
2335
|
-
for (var s = /* @__PURE__ */
|
|
2336
|
-
s.data !==
|
|
2337
|
-
s = /* @__PURE__ */
|
|
2334
|
+
for (var s = /* @__PURE__ */ et(r); s && (s.nodeType !== Xt || /** @type {Comment} */
|
|
2335
|
+
s.data !== ei); )
|
|
2336
|
+
s = /* @__PURE__ */ $e(s);
|
|
2338
2337
|
if (!s)
|
|
2339
|
-
throw
|
|
2340
|
-
|
|
2338
|
+
throw ct;
|
|
2339
|
+
Be(!0), ue(
|
|
2341
2340
|
/** @type {Comment} */
|
|
2342
2341
|
s
|
|
2343
2342
|
);
|
|
2344
2343
|
const a = Yi(e, { ...t, anchor: s });
|
|
2345
|
-
return
|
|
2344
|
+
return Be(!1), /** @type {Exports} */
|
|
2346
2345
|
a;
|
|
2347
2346
|
} catch (a) {
|
|
2348
2347
|
if (a instanceof Error && a.message.split(`
|
|
2349
2348
|
`).some((o) => o.startsWith("https://svelte.dev/e/")))
|
|
2350
2349
|
throw a;
|
|
2351
|
-
return a !==
|
|
2350
|
+
return a !== ct && console.warn("Failed to hydrate: ", a), t.recover === !1 && qs(), Wr(), Oi(r), Be(!1), Wi(e, t);
|
|
2352
2351
|
} finally {
|
|
2353
|
-
|
|
2352
|
+
Be(n), ue(i);
|
|
2354
2353
|
}
|
|
2355
2354
|
}
|
|
2356
2355
|
const zt = /* @__PURE__ */ new Map();
|
|
2357
2356
|
function Yi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: a = !0, transformError: o }) {
|
|
2358
|
-
|
|
2357
|
+
Wr();
|
|
2359
2358
|
var u = void 0, l = Aa(() => {
|
|
2360
|
-
var f = r ?? t.appendChild(
|
|
2359
|
+
var f = r ?? t.appendChild(we());
|
|
2361
2360
|
ca(
|
|
2362
2361
|
/** @type {TemplateNode} */
|
|
2363
2362
|
f,
|
|
@@ -2366,58 +2365,58 @@ function Yi(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
2366
2365
|
}
|
|
2367
2366
|
},
|
|
2368
2367
|
(d) => {
|
|
2369
|
-
|
|
2368
|
+
un({});
|
|
2370
2369
|
var p = (
|
|
2371
2370
|
/** @type {ComponentContext} */
|
|
2372
|
-
|
|
2371
|
+
ne
|
|
2373
2372
|
);
|
|
2374
|
-
if (s && (p.c = s), i && (n.$$events = i),
|
|
2373
|
+
if (s && (p.c = s), i && (n.$$events = i), C && ht(
|
|
2375
2374
|
/** @type {TemplateNode} */
|
|
2376
2375
|
d,
|
|
2377
2376
|
null
|
|
2378
|
-
), u = e(d, n) || {},
|
|
2379
|
-
B.data !==
|
|
2380
|
-
throw _r(),
|
|
2381
|
-
|
|
2377
|
+
), u = e(d, n) || {}, C && (M.nodes.end = B, B === null || B.nodeType !== Xt || /** @type {Comment} */
|
|
2378
|
+
B.data !== on))
|
|
2379
|
+
throw _r(), ct;
|
|
2380
|
+
ln();
|
|
2382
2381
|
},
|
|
2383
2382
|
o
|
|
2384
2383
|
);
|
|
2385
2384
|
var c = /* @__PURE__ */ new Set(), h = (d) => {
|
|
2386
2385
|
for (var p = 0; p < d.length; p++) {
|
|
2387
|
-
var
|
|
2388
|
-
if (!c.has(
|
|
2389
|
-
c.add(
|
|
2390
|
-
var m = Ua(
|
|
2391
|
-
for (const
|
|
2392
|
-
var
|
|
2393
|
-
|
|
2394
|
-
var
|
|
2395
|
-
|
|
2386
|
+
var y = d[p];
|
|
2387
|
+
if (!c.has(y)) {
|
|
2388
|
+
c.add(y);
|
|
2389
|
+
var m = Ua(y);
|
|
2390
|
+
for (const L of [t, document]) {
|
|
2391
|
+
var T = zt.get(L);
|
|
2392
|
+
T === void 0 && (T = /* @__PURE__ */ new Map(), zt.set(L, T));
|
|
2393
|
+
var $ = T.get(y);
|
|
2394
|
+
$ === void 0 ? (L.addEventListener(y, Ln, { passive: m }), T.set(y, 1)) : T.set(y, $ + 1);
|
|
2396
2395
|
}
|
|
2397
2396
|
}
|
|
2398
2397
|
}
|
|
2399
2398
|
};
|
|
2400
|
-
return h(pr(Xi)),
|
|
2399
|
+
return h(pr(Xi)), Yr.add(h), () => {
|
|
2401
2400
|
for (var d of c)
|
|
2402
2401
|
for (const m of [t, document]) {
|
|
2403
2402
|
var p = (
|
|
2404
2403
|
/** @type {Map<string, number>} */
|
|
2405
2404
|
zt.get(m)
|
|
2406
|
-
),
|
|
2405
|
+
), y = (
|
|
2407
2406
|
/** @type {number} */
|
|
2408
2407
|
p.get(d)
|
|
2409
2408
|
);
|
|
2410
|
-
--
|
|
2409
|
+
--y == 0 ? (m.removeEventListener(d, Ln), p.delete(d), p.size === 0 && zt.delete(m)) : p.set(d, y);
|
|
2411
2410
|
}
|
|
2412
|
-
|
|
2411
|
+
Yr.delete(h), f !== r && f.parentNode?.removeChild(f);
|
|
2413
2412
|
};
|
|
2414
2413
|
});
|
|
2415
|
-
return
|
|
2414
|
+
return zr.set(u, l), u;
|
|
2416
2415
|
}
|
|
2417
|
-
let
|
|
2416
|
+
let zr = /* @__PURE__ */ new WeakMap();
|
|
2418
2417
|
function Ga(e, t) {
|
|
2419
|
-
const r =
|
|
2420
|
-
return r ? (
|
|
2418
|
+
const r = zr.get(e);
|
|
2419
|
+
return r ? (zr.delete(e), r(t)) : Promise.resolve();
|
|
2421
2420
|
}
|
|
2422
2421
|
class ka {
|
|
2423
2422
|
/** @type {TemplateNode} */
|
|
@@ -2481,19 +2480,19 @@ class ka {
|
|
|
2481
2480
|
if (this.#e.delete(s), s === t)
|
|
2482
2481
|
break;
|
|
2483
2482
|
const o = this.#r.get(a);
|
|
2484
|
-
o && (
|
|
2483
|
+
o && (ie(o.effect), this.#r.delete(a));
|
|
2485
2484
|
}
|
|
2486
2485
|
for (const [s, a] of this.#t) {
|
|
2487
2486
|
if (s === r || this.#u.has(s)) continue;
|
|
2488
2487
|
const o = () => {
|
|
2489
2488
|
if (Array.from(this.#e.values()).includes(s)) {
|
|
2490
2489
|
var l = document.createDocumentFragment();
|
|
2491
|
-
|
|
2490
|
+
xn(a, l), l.append(we()), this.#r.set(s, { effect: a, fragment: l });
|
|
2492
2491
|
} else
|
|
2493
|
-
|
|
2492
|
+
ie(a);
|
|
2494
2493
|
this.#u.delete(s), this.#t.delete(s);
|
|
2495
2494
|
};
|
|
2496
|
-
this.#i || !n ? (this.#u.add(s),
|
|
2495
|
+
this.#i || !n ? (this.#u.add(s), Ze(a, o, !1)) : o();
|
|
2497
2496
|
}
|
|
2498
2497
|
}
|
|
2499
2498
|
};
|
|
@@ -2504,7 +2503,7 @@ class ka {
|
|
|
2504
2503
|
this.#e.delete(t);
|
|
2505
2504
|
const r = Array.from(this.#e.values());
|
|
2506
2505
|
for (const [n, i] of this.#r)
|
|
2507
|
-
r.includes(n) || (
|
|
2506
|
+
r.includes(n) || (ie(i.effect), this.#r.delete(n));
|
|
2508
2507
|
};
|
|
2509
2508
|
/**
|
|
2510
2509
|
*
|
|
@@ -2515,48 +2514,32 @@ class ka {
|
|
|
2515
2514
|
var n = (
|
|
2516
2515
|
/** @type {Batch} */
|
|
2517
2516
|
I
|
|
2518
|
-
)
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
effect: pe(() => r(a)),
|
|
2524
|
-
fragment: s
|
|
2525
|
-
});
|
|
2526
|
-
} else
|
|
2527
|
-
this.#t.set(
|
|
2528
|
-
t,
|
|
2529
|
-
pe(() => r(this.anchor))
|
|
2530
|
-
);
|
|
2531
|
-
if (this.#e.set(n, t), i) {
|
|
2532
|
-
for (const [o, u] of this.#t)
|
|
2533
|
-
o === t ? n.unskip_effect(u) : n.skip_effect(u);
|
|
2534
|
-
for (const [o, u] of this.#r)
|
|
2535
|
-
o === t ? n.unskip_effect(u.effect) : n.skip_effect(u.effect);
|
|
2536
|
-
n.oncommit(this.#a), n.ondiscard(this.#n);
|
|
2537
|
-
} else
|
|
2538
|
-
L && (this.anchor = B), this.#a(n);
|
|
2517
|
+
);
|
|
2518
|
+
r && !this.#t.has(t) && !this.#r.has(t) && this.#t.set(
|
|
2519
|
+
t,
|
|
2520
|
+
ge(() => r(this.anchor))
|
|
2521
|
+
), this.#e.set(n, t), C && (this.anchor = B), this.#a(n);
|
|
2539
2522
|
}
|
|
2540
2523
|
}
|
|
2541
|
-
function
|
|
2524
|
+
function Cn(e, t, r = !1) {
|
|
2542
2525
|
var n;
|
|
2543
|
-
|
|
2544
|
-
var i = new ka(e), s = r ?
|
|
2526
|
+
C && (n = B, mr());
|
|
2527
|
+
var i = new ka(e), s = r ? pt : 0;
|
|
2545
2528
|
function a(o, u) {
|
|
2546
|
-
if (
|
|
2547
|
-
var l =
|
|
2529
|
+
if (C) {
|
|
2530
|
+
var l = li(
|
|
2548
2531
|
/** @type {TemplateNode} */
|
|
2549
2532
|
n
|
|
2550
2533
|
);
|
|
2551
2534
|
if (o !== parseInt(l.substring(1))) {
|
|
2552
2535
|
var f = ar();
|
|
2553
|
-
|
|
2536
|
+
ue(f), i.anchor = f, Be(!1), i.ensure(o, u), Be(!0);
|
|
2554
2537
|
return;
|
|
2555
2538
|
}
|
|
2556
2539
|
}
|
|
2557
2540
|
i.ensure(o, u);
|
|
2558
2541
|
}
|
|
2559
|
-
|
|
2542
|
+
yn(() => {
|
|
2560
2543
|
var o = !1;
|
|
2561
2544
|
t((u, l = 0) => {
|
|
2562
2545
|
o = !0, a(l, u);
|
|
@@ -2569,7 +2552,7 @@ function ja(e, t) {
|
|
|
2569
2552
|
function Va(e, t, r) {
|
|
2570
2553
|
for (var n = [], i = t.length, s, a = t.length, o = 0; o < i; o++) {
|
|
2571
2554
|
let c = t[o];
|
|
2572
|
-
|
|
2555
|
+
Ze(
|
|
2573
2556
|
c,
|
|
2574
2557
|
() => {
|
|
2575
2558
|
if (s) {
|
|
@@ -2578,7 +2561,7 @@ function Va(e, t, r) {
|
|
|
2578
2561
|
/** @type {Set<EachOutroGroup>} */
|
|
2579
2562
|
e.outrogroups
|
|
2580
2563
|
);
|
|
2581
|
-
|
|
2564
|
+
qr(e, pr(s.done)), h.delete(s), h.size === 0 && (e.outrogroups = null);
|
|
2582
2565
|
}
|
|
2583
2566
|
} else
|
|
2584
2567
|
a -= 1;
|
|
@@ -2596,16 +2579,16 @@ function Va(e, t, r) {
|
|
|
2596
2579
|
/** @type {Element} */
|
|
2597
2580
|
l.parentNode
|
|
2598
2581
|
);
|
|
2599
|
-
|
|
2582
|
+
Oi(f), f.append(l), e.items.clear();
|
|
2600
2583
|
}
|
|
2601
|
-
|
|
2584
|
+
qr(e, t, !u);
|
|
2602
2585
|
} else
|
|
2603
2586
|
s = {
|
|
2604
2587
|
pending: new Set(t),
|
|
2605
2588
|
done: /* @__PURE__ */ new Set()
|
|
2606
2589
|
}, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(s);
|
|
2607
2590
|
}
|
|
2608
|
-
function
|
|
2591
|
+
function qr(e, t, r = !0) {
|
|
2609
2592
|
var n;
|
|
2610
2593
|
if (e.pending.size > 0) {
|
|
2611
2594
|
n = /* @__PURE__ */ new Set();
|
|
@@ -2621,113 +2604,103 @@ function Yr(e, t, r = !0) {
|
|
|
2621
2604
|
if (n?.has(s)) {
|
|
2622
2605
|
s.f |= He;
|
|
2623
2606
|
const a = document.createDocumentFragment();
|
|
2624
|
-
|
|
2607
|
+
xn(s, a);
|
|
2625
2608
|
} else
|
|
2626
|
-
|
|
2609
|
+
ie(t[i], r);
|
|
2627
2610
|
}
|
|
2628
2611
|
}
|
|
2629
|
-
var
|
|
2612
|
+
var Rn;
|
|
2630
2613
|
function Xa(e, t, r, n, i, s = null) {
|
|
2631
|
-
var a = e, o = /* @__PURE__ */ new Map(), u = (t &
|
|
2614
|
+
var a = e, o = /* @__PURE__ */ new Map(), u = (t & Kn) !== 0;
|
|
2632
2615
|
if (u) {
|
|
2633
2616
|
var l = (
|
|
2634
2617
|
/** @type {Element} */
|
|
2635
2618
|
e
|
|
2636
2619
|
);
|
|
2637
|
-
a =
|
|
2620
|
+
a = C ? ue(/* @__PURE__ */ et(l)) : l.appendChild(we());
|
|
2638
2621
|
}
|
|
2639
|
-
|
|
2622
|
+
C && mr();
|
|
2640
2623
|
var f = null, c = /* @__PURE__ */ ma(() => {
|
|
2641
|
-
var
|
|
2624
|
+
var $ = r();
|
|
2642
2625
|
return (
|
|
2643
2626
|
/** @type {V[]} */
|
|
2644
|
-
|
|
2627
|
+
ri($) ? $ : $ == null ? [] : pr($)
|
|
2645
2628
|
);
|
|
2646
2629
|
}), h, d = /* @__PURE__ */ new Map(), p = !0;
|
|
2647
|
-
function
|
|
2648
|
-
|
|
2630
|
+
function y($) {
|
|
2631
|
+
T.effect.f & ce || (T.pending.delete($), T.fallback = f, Wa(T, h, a, t, n), f !== null && (h.length === 0 ? f.f & He ? (f.f ^= He, Lt(f, null, a)) : fr(f) : Ze(f, () => {
|
|
2649
2632
|
f = null;
|
|
2650
2633
|
})));
|
|
2651
2634
|
}
|
|
2652
|
-
|
|
2653
|
-
R.pending.delete(M);
|
|
2654
|
-
}
|
|
2655
|
-
var H = gn(() => {
|
|
2635
|
+
var m = yn(() => {
|
|
2656
2636
|
h = /** @type {V[]} */
|
|
2657
2637
|
w(c);
|
|
2658
|
-
var
|
|
2659
|
-
let
|
|
2660
|
-
if (
|
|
2661
|
-
var
|
|
2662
|
-
|
|
2638
|
+
var $ = h.length;
|
|
2639
|
+
let L = !1;
|
|
2640
|
+
if (C) {
|
|
2641
|
+
var Y = li(a) === an;
|
|
2642
|
+
Y !== ($ === 0) && (a = ar(), ue(a), Be(!1), L = !0);
|
|
2663
2643
|
}
|
|
2664
|
-
for (var
|
|
2644
|
+
for (var j = /* @__PURE__ */ new Set(), G = (
|
|
2665
2645
|
/** @type {Batch} */
|
|
2666
2646
|
I
|
|
2667
|
-
),
|
|
2668
|
-
|
|
2669
|
-
B.data ===
|
|
2670
|
-
B,
|
|
2671
|
-
var
|
|
2672
|
-
|
|
2647
|
+
), W = 0; W < $; W += 1) {
|
|
2648
|
+
C && B.nodeType === Xt && /** @type {Comment} */
|
|
2649
|
+
B.data === on && (a = /** @type {Comment} */
|
|
2650
|
+
B, L = !0, Be(!1));
|
|
2651
|
+
var le = h[W], fe = n(le, W), b = p ? null : o.get(fe);
|
|
2652
|
+
b ? (b.v && _t(b.v, le), b.i && _t(b.i, W)) : (b = Ya(
|
|
2673
2653
|
o,
|
|
2674
|
-
p ? a :
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2654
|
+
p ? a : Rn ??= we(),
|
|
2655
|
+
le,
|
|
2656
|
+
fe,
|
|
2657
|
+
W,
|
|
2678
2658
|
i,
|
|
2679
2659
|
t,
|
|
2680
2660
|
r
|
|
2681
|
-
), p || (
|
|
2661
|
+
), p || (b.e.f |= He), o.set(fe, b)), j.add(fe);
|
|
2682
2662
|
}
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
D.has(Xe) || Y.skip_effect(x.e);
|
|
2687
|
-
Y.oncommit(b), Y.ondiscard(m);
|
|
2688
|
-
} else
|
|
2689
|
-
b(Y);
|
|
2690
|
-
V && Ie(!0), w(c);
|
|
2691
|
-
}), R = { effect: H, items: o, pending: d, outrogroups: null, fallback: f };
|
|
2692
|
-
p = !1, L && (a = B);
|
|
2663
|
+
$ === 0 && s && !f && (p ? f = ge(() => s(a)) : (f = ge(() => s(Rn ??= we())), f.f |= He)), $ > j.size && Vs(), C && $ > 0 && ue(ar()), p || (d.set(G, j), y(G)), L && Be(!0), w(c);
|
|
2664
|
+
}), T = { effect: m, items: o, pending: d, outrogroups: null, fallback: f };
|
|
2665
|
+
p = !1, C && (a = B);
|
|
2693
2666
|
}
|
|
2694
2667
|
function Nt(e) {
|
|
2695
|
-
for (; e !== null && !(e.f &
|
|
2668
|
+
for (; e !== null && !(e.f & _e); )
|
|
2696
2669
|
e = e.next;
|
|
2697
2670
|
return e;
|
|
2698
2671
|
}
|
|
2699
2672
|
function Wa(e, t, r, n, i) {
|
|
2700
|
-
var s = (n & Os) !== 0, a = t.length, o = e.items, u = Nt(e.effect.first), l, f = null, c, h = [], d = [], p,
|
|
2673
|
+
var s = (n & Os) !== 0, a = t.length, o = e.items, u = Nt(e.effect.first), l, f = null, c, h = [], d = [], p, y, m, T;
|
|
2701
2674
|
if (s)
|
|
2702
|
-
for (
|
|
2703
|
-
p = t[
|
|
2704
|
-
o.get(
|
|
2705
|
-
for (
|
|
2706
|
-
if (p = t[
|
|
2707
|
-
o.get(
|
|
2708
|
-
for (const
|
|
2709
|
-
|
|
2710
|
-
if (m.f &
|
|
2675
|
+
for (T = 0; T < a; T += 1)
|
|
2676
|
+
p = t[T], y = i(p, T), m = /** @type {EachItem} */
|
|
2677
|
+
o.get(y).e, m.f & He || (m.nodes?.a?.measure(), (c ??= /* @__PURE__ */ new Set()).add(m));
|
|
2678
|
+
for (T = 0; T < a; T += 1) {
|
|
2679
|
+
if (p = t[T], y = i(p, T), m = /** @type {EachItem} */
|
|
2680
|
+
o.get(y).e, e.outrogroups !== null)
|
|
2681
|
+
for (const b of e.outrogroups)
|
|
2682
|
+
b.pending.delete(m), b.done.delete(m);
|
|
2683
|
+
if (m.f & re && (fr(m), s && (m.nodes?.a?.unfix(), (c ??= /* @__PURE__ */ new Set()).delete(m))), m.f & He)
|
|
2711
2684
|
if (m.f ^= He, m === u)
|
|
2712
2685
|
Lt(m, null, r);
|
|
2713
2686
|
else {
|
|
2714
|
-
var
|
|
2715
|
-
m === e.effect.last && (e.effect.last = m.prev), m.prev && (m.prev.next = m.next), m.next && (m.next.prev = m.prev),
|
|
2687
|
+
var $ = f ? f.next : u;
|
|
2688
|
+
m === e.effect.last && (e.effect.last = m.prev), m.prev && (m.prev.next = m.next), m.next && (m.next.prev = m.prev), Fe(e, f, m), Fe(e, m, $), Lt(m, $, r), f = m, h = [], d = [], u = Nt(f.next);
|
|
2716
2689
|
continue;
|
|
2717
2690
|
}
|
|
2718
2691
|
if (m !== u) {
|
|
2719
2692
|
if (l !== void 0 && l.has(m)) {
|
|
2720
2693
|
if (h.length < d.length) {
|
|
2721
|
-
var
|
|
2722
|
-
f =
|
|
2723
|
-
var
|
|
2724
|
-
for (
|
|
2725
|
-
Lt(h[
|
|
2726
|
-
for (
|
|
2727
|
-
l.delete(d[
|
|
2728
|
-
|
|
2694
|
+
var L = d[0], Y;
|
|
2695
|
+
f = L.prev;
|
|
2696
|
+
var j = h[0], G = h[h.length - 1];
|
|
2697
|
+
for (Y = 0; Y < h.length; Y += 1)
|
|
2698
|
+
Lt(h[Y], L, r);
|
|
2699
|
+
for (Y = 0; Y < d.length; Y += 1)
|
|
2700
|
+
l.delete(d[Y]);
|
|
2701
|
+
Fe(e, j.prev, G.next), Fe(e, f, j), Fe(e, G, L), u = L, f = G, T -= 1, h = [], d = [];
|
|
2729
2702
|
} else
|
|
2730
|
-
l.delete(m), Lt(m, u, r),
|
|
2703
|
+
l.delete(m), Lt(m, u, r), Fe(e, m.prev, m.next), Fe(e, m, f === null ? e.effect.first : f.next), Fe(e, f, m), f = m;
|
|
2731
2704
|
continue;
|
|
2732
2705
|
}
|
|
2733
2706
|
for (h = [], d = []; u !== null && u !== m; )
|
|
@@ -2738,41 +2711,41 @@ function Wa(e, t, r, n, i) {
|
|
|
2738
2711
|
m.f & He || h.push(m), f = m, u = Nt(m.next);
|
|
2739
2712
|
}
|
|
2740
2713
|
if (e.outrogroups !== null) {
|
|
2741
|
-
for (const
|
|
2742
|
-
|
|
2714
|
+
for (const b of e.outrogroups)
|
|
2715
|
+
b.pending.size === 0 && (qr(e, pr(b.done)), e.outrogroups?.delete(b));
|
|
2743
2716
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2744
2717
|
}
|
|
2745
2718
|
if (u !== null || l !== void 0) {
|
|
2746
|
-
var
|
|
2719
|
+
var W = [];
|
|
2747
2720
|
if (l !== void 0)
|
|
2748
2721
|
for (m of l)
|
|
2749
|
-
m.f &
|
|
2722
|
+
m.f & re || W.push(m);
|
|
2750
2723
|
for (; u !== null; )
|
|
2751
|
-
!(u.f &
|
|
2752
|
-
var
|
|
2753
|
-
if (
|
|
2754
|
-
var
|
|
2724
|
+
!(u.f & re) && u !== e.fallback && W.push(u), u = Nt(u.next);
|
|
2725
|
+
var le = W.length;
|
|
2726
|
+
if (le > 0) {
|
|
2727
|
+
var fe = n & Kn && a === 0 ? r : null;
|
|
2755
2728
|
if (s) {
|
|
2756
|
-
for (
|
|
2757
|
-
|
|
2758
|
-
for (
|
|
2759
|
-
|
|
2729
|
+
for (T = 0; T < le; T += 1)
|
|
2730
|
+
W[T].nodes?.a?.measure();
|
|
2731
|
+
for (T = 0; T < le; T += 1)
|
|
2732
|
+
W[T].nodes?.a?.fix();
|
|
2760
2733
|
}
|
|
2761
|
-
Va(e,
|
|
2734
|
+
Va(e, W, fe);
|
|
2762
2735
|
}
|
|
2763
2736
|
}
|
|
2764
|
-
s &&
|
|
2737
|
+
s && Ge(() => {
|
|
2765
2738
|
if (c !== void 0)
|
|
2766
2739
|
for (m of c)
|
|
2767
2740
|
m.nodes?.a?.apply();
|
|
2768
2741
|
});
|
|
2769
2742
|
}
|
|
2770
2743
|
function Ya(e, t, r, n, i, s, a, o) {
|
|
2771
|
-
var u = a & Hs ? a & Ns ?
|
|
2744
|
+
var u = a & Hs ? a & Ns ? Ke(r) : /* @__PURE__ */ vn(r, !1, !1) : null, l = a & Ms ? Ke(i) : null;
|
|
2772
2745
|
return {
|
|
2773
2746
|
v: u,
|
|
2774
2747
|
i: l,
|
|
2775
|
-
e:
|
|
2748
|
+
e: ge(() => (s(t, u ?? r, l ?? i, o), () => {
|
|
2776
2749
|
e.delete(n);
|
|
2777
2750
|
}))
|
|
2778
2751
|
};
|
|
@@ -2785,18 +2758,19 @@ function Lt(e, t, r) {
|
|
|
2785
2758
|
) : r; n !== null; ) {
|
|
2786
2759
|
var a = (
|
|
2787
2760
|
/** @type {TemplateNode} */
|
|
2788
|
-
/* @__PURE__ */
|
|
2761
|
+
/* @__PURE__ */ $e(n)
|
|
2789
2762
|
);
|
|
2790
2763
|
if (s.before(n), n === i)
|
|
2791
2764
|
return;
|
|
2792
2765
|
n = a;
|
|
2793
2766
|
}
|
|
2794
2767
|
}
|
|
2795
|
-
function
|
|
2768
|
+
function Fe(e, t, r) {
|
|
2796
2769
|
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
2797
2770
|
}
|
|
2798
2771
|
function za(e, t) {
|
|
2799
2772
|
Ii(() => {
|
|
2773
|
+
e = M?.parent?.nodes?.start ?? e;
|
|
2800
2774
|
var r = e.getRootNode(), n = (
|
|
2801
2775
|
/** @type {ShadowRoot} */
|
|
2802
2776
|
r.host ? (
|
|
@@ -2809,12 +2783,12 @@ function za(e, t) {
|
|
|
2809
2783
|
)
|
|
2810
2784
|
);
|
|
2811
2785
|
if (!n.querySelector("#" + t.hash)) {
|
|
2812
|
-
const i =
|
|
2786
|
+
const i = _n("style");
|
|
2813
2787
|
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
2814
2788
|
}
|
|
2815
2789
|
});
|
|
2816
2790
|
}
|
|
2817
|
-
const
|
|
2791
|
+
const Dn = [...`
|
|
2818
2792
|
\r\f \v\uFEFF`];
|
|
2819
2793
|
function qa(e, t, r) {
|
|
2820
2794
|
var n = e == null ? "" : "" + e;
|
|
@@ -2825,7 +2799,7 @@ function qa(e, t, r) {
|
|
|
2825
2799
|
else if (n.length)
|
|
2826
2800
|
for (var s = i.length, a = 0; (a = n.indexOf(i, a)) >= 0; ) {
|
|
2827
2801
|
var o = a + s;
|
|
2828
|
-
(a === 0 ||
|
|
2802
|
+
(a === 0 || Dn.includes(n[a - 1])) && (o === n.length || Dn.includes(n[o])) ? n = (a === 0 ? "" : n.substring(0, a)) + n.substring(o + 1) : a = o;
|
|
2829
2803
|
}
|
|
2830
2804
|
}
|
|
2831
2805
|
return n === "" ? null : n;
|
|
@@ -2833,11 +2807,11 @@ function qa(e, t, r) {
|
|
|
2833
2807
|
function Za(e, t, r, n, i, s) {
|
|
2834
2808
|
var a = (
|
|
2835
2809
|
/** @type {any} */
|
|
2836
|
-
e[
|
|
2810
|
+
e[Gr]
|
|
2837
2811
|
);
|
|
2838
|
-
if (
|
|
2812
|
+
if (C || a !== r || a === void 0) {
|
|
2839
2813
|
var o = qa(r, n, s);
|
|
2840
|
-
(!
|
|
2814
|
+
(!C || o !== e.getAttribute("class")) && (o == null ? e.removeAttribute("class") : e.className = o), e[Gr] = r;
|
|
2841
2815
|
} else if (s && i !== s)
|
|
2842
2816
|
for (var u in s) {
|
|
2843
2817
|
var l = !!s[u];
|
|
@@ -2848,55 +2822,55 @@ function Za(e, t, r, n, i, s) {
|
|
|
2848
2822
|
const Ja = Symbol("is custom element"), Qa = Symbol("is html"), Ka = ks ? "link" : "LINK";
|
|
2849
2823
|
function cl(e, t, r, n) {
|
|
2850
2824
|
var i = eo(e);
|
|
2851
|
-
|
|
2825
|
+
C && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Ka) || i[t] !== (i[t] = r) && (t === "loading" && (e[Fs] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && to(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2852
2826
|
}
|
|
2853
2827
|
function eo(e) {
|
|
2854
2828
|
return (
|
|
2855
2829
|
/** @type {Record<string | symbol, unknown>} **/
|
|
2856
2830
|
/** @type {any} */
|
|
2857
|
-
e[
|
|
2831
|
+
e[ui] ??= {
|
|
2858
2832
|
[Ja]: e.nodeName.includes("-"),
|
|
2859
2833
|
[Qa]: e.namespaceURI === Is
|
|
2860
2834
|
}
|
|
2861
2835
|
);
|
|
2862
2836
|
}
|
|
2863
|
-
var
|
|
2837
|
+
var Un = /* @__PURE__ */ new Map();
|
|
2864
2838
|
function to(e) {
|
|
2865
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
2839
|
+
var t = e.getAttribute("is") || e.nodeName, r = Un.get(t);
|
|
2866
2840
|
if (r) return r;
|
|
2867
|
-
|
|
2841
|
+
Un.set(t, r = []);
|
|
2868
2842
|
for (var n, i = e, s = Element.prototype; s !== i; ) {
|
|
2869
2843
|
n = Ls(i);
|
|
2870
2844
|
for (var a in n)
|
|
2871
2845
|
n[a].set && // better safe than sorry, we don't want spread attributes to mess with HTML content
|
|
2872
2846
|
a !== "innerHTML" && a !== "textContent" && a !== "innerText" && r.push(a);
|
|
2873
|
-
i =
|
|
2847
|
+
i = ni(i);
|
|
2874
2848
|
}
|
|
2875
2849
|
return r;
|
|
2876
2850
|
}
|
|
2877
|
-
function
|
|
2851
|
+
function $r(e, t) {
|
|
2878
2852
|
return e === t || e?.[Zt] === t;
|
|
2879
2853
|
}
|
|
2880
2854
|
function dl(e = {}, t, r, n) {
|
|
2881
2855
|
var i = (
|
|
2882
2856
|
/** @type {ComponentContext} */
|
|
2883
|
-
|
|
2857
|
+
ne.r
|
|
2884
2858
|
), s = (
|
|
2885
2859
|
/** @type {Effect} */
|
|
2886
|
-
|
|
2860
|
+
M
|
|
2887
2861
|
);
|
|
2888
2862
|
return Ii(() => {
|
|
2889
2863
|
var a, o;
|
|
2890
|
-
return
|
|
2891
|
-
a = o, o = [],
|
|
2892
|
-
|
|
2864
|
+
return bn(() => {
|
|
2865
|
+
a = o, o = [], wn(() => {
|
|
2866
|
+
$r(r(...o), e) || (t(e, ...o), a && $r(r(...a), e) && t(null, ...a));
|
|
2893
2867
|
});
|
|
2894
2868
|
}), () => {
|
|
2895
2869
|
let u = s;
|
|
2896
|
-
for (; u !== i && u.parent !== null && u.parent.f &
|
|
2870
|
+
for (; u !== i && u.parent !== null && u.parent.f & Fr; )
|
|
2897
2871
|
u = u.parent;
|
|
2898
2872
|
const l = () => {
|
|
2899
|
-
o &&
|
|
2873
|
+
o && $r(r(...o), e) && t(null, ...o);
|
|
2900
2874
|
}, f = u.teardown;
|
|
2901
2875
|
u.teardown = () => {
|
|
2902
2876
|
l(), f?.();
|
|
@@ -2922,16 +2896,16 @@ function Se(e, t, r, n) {
|
|
|
2922
2896
|
};
|
|
2923
2897
|
var l = !1, f = /* @__PURE__ */ yr(() => (l = !1, u())), c = (
|
|
2924
2898
|
/** @type {Effect} */
|
|
2925
|
-
|
|
2899
|
+
M
|
|
2926
2900
|
);
|
|
2927
2901
|
return (
|
|
2928
2902
|
/** @type {() => V} */
|
|
2929
2903
|
function(h, d) {
|
|
2930
2904
|
if (arguments.length > 0) {
|
|
2931
2905
|
const p = d ? w(f) : h;
|
|
2932
|
-
return
|
|
2906
|
+
return z(f, p), l = !0, i !== void 0 && (i = p), h;
|
|
2933
2907
|
}
|
|
2934
|
-
return
|
|
2908
|
+
return Re && l || c.f & ce ? f.v : w(f);
|
|
2935
2909
|
}
|
|
2936
2910
|
);
|
|
2937
2911
|
}
|
|
@@ -2950,7 +2924,7 @@ class no {
|
|
|
2950
2924
|
*/
|
|
2951
2925
|
constructor(t) {
|
|
2952
2926
|
var r = /* @__PURE__ */ new Map(), n = (s, a) => {
|
|
2953
|
-
var o = /* @__PURE__ */
|
|
2927
|
+
var o = /* @__PURE__ */ vn(a, !1, !1);
|
|
2954
2928
|
return r.set(s, o), o;
|
|
2955
2929
|
};
|
|
2956
2930
|
const i = new Proxy(
|
|
@@ -2963,7 +2937,7 @@ class no {
|
|
|
2963
2937
|
return a === Us ? !0 : (w(r.get(a) ?? n(a, Reflect.get(s, a))), Reflect.has(s, a));
|
|
2964
2938
|
},
|
|
2965
2939
|
set(s, a, o) {
|
|
2966
|
-
return
|
|
2940
|
+
return z(r.get(a) ?? n(a, o), o), Reflect.set(s, a, o);
|
|
2967
2941
|
}
|
|
2968
2942
|
}
|
|
2969
2943
|
);
|
|
@@ -2975,7 +2949,7 @@ class no {
|
|
|
2975
2949
|
intro: t.intro ?? !1,
|
|
2976
2950
|
recover: t.recover,
|
|
2977
2951
|
transformError: t.transformError
|
|
2978
|
-
}), (!t?.props?.$$host || t.sync === !1) &&
|
|
2952
|
+
}), (!t?.props?.$$host || t.sync === !1) && pe(), this.#e = i.$$events;
|
|
2979
2953
|
for (const s of Object.keys(this.#t))
|
|
2980
2954
|
s === "$set" || s === "$destroy" || s === "$on" || Ut(this, s, {
|
|
2981
2955
|
get() {
|
|
@@ -3076,8 +3050,8 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
|
|
|
3076
3050
|
if (this.$$cn = !0, !this.$$c) {
|
|
3077
3051
|
let e = function(n) {
|
|
3078
3052
|
return (i) => {
|
|
3079
|
-
const s =
|
|
3080
|
-
n !== "default" && (s.name = n),
|
|
3053
|
+
const s = _n("slot");
|
|
3054
|
+
n !== "default" && (s.name = n), ot(i, s);
|
|
3081
3055
|
};
|
|
3082
3056
|
};
|
|
3083
3057
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
@@ -3100,7 +3074,7 @@ typeof HTMLElement == "function" && (zi = class extends HTMLElement {
|
|
|
3100
3074
|
$$host: this
|
|
3101
3075
|
}
|
|
3102
3076
|
}), this.$$me = Sa(() => {
|
|
3103
|
-
|
|
3077
|
+
bn(() => {
|
|
3104
3078
|
this.$$r = !0;
|
|
3105
3079
|
for (const n of nr(this.$$c)) {
|
|
3106
3080
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
@@ -3206,7 +3180,7 @@ function qi(e, t, r, n, i, s) {
|
|
|
3206
3180
|
u = Kt(o, u, t), this.$$d[o] = u;
|
|
3207
3181
|
var l = this.$$c;
|
|
3208
3182
|
if (l) {
|
|
3209
|
-
var f =
|
|
3183
|
+
var f = lt(l, o)?.get;
|
|
3210
3184
|
f ? l[o] = u : l.$set({ [o]: u });
|
|
3211
3185
|
}
|
|
3212
3186
|
}
|
|
@@ -3269,15 +3243,15 @@ var Ki = { exports: {} };
|
|
|
3269
3243
|
(function(r, n) {
|
|
3270
3244
|
e.exports = n();
|
|
3271
3245
|
})(lo, function() {
|
|
3272
|
-
var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", u = "hour", l = "day", f = "week", c = "month", h = "quarter", d = "year", p = "date",
|
|
3246
|
+
var r = 1e3, n = 6e4, i = 36e5, s = "millisecond", a = "second", o = "minute", u = "hour", l = "day", f = "week", c = "month", h = "quarter", d = "year", p = "date", y = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, $ = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(x) {
|
|
3273
3247
|
var g = ["th", "st", "nd", "rd"], v = x % 100;
|
|
3274
3248
|
return "[" + x + (g[(v - 20) % 10] || g[v] || g[0]) + "]";
|
|
3275
|
-
} },
|
|
3249
|
+
} }, L = function(x, g, v) {
|
|
3276
3250
|
var E = String(x);
|
|
3277
3251
|
return !E || E.length >= g ? x : "" + Array(g + 1 - E.length).join(v) + x;
|
|
3278
|
-
},
|
|
3252
|
+
}, Y = { s: L, z: function(x) {
|
|
3279
3253
|
var g = -x.utcOffset(), v = Math.abs(g), E = Math.floor(v / 60), _ = v % 60;
|
|
3280
|
-
return (g <= 0 ? "+" : "-") +
|
|
3254
|
+
return (g <= 0 ? "+" : "-") + L(E, 2, "0") + ":" + L(_, 2, "0");
|
|
3281
3255
|
}, m: function x(g, v) {
|
|
3282
3256
|
if (g.date() < v.date()) return -x(v, g);
|
|
3283
3257
|
var E = 12 * (v.year() - g.year()) + (v.month() - g.month()), _ = g.clone().add(E, c), S = v - _ < 0, A = g.clone().add(E + (S ? -1 : 1), c);
|
|
@@ -3288,47 +3262,47 @@ var Ki = { exports: {} };
|
|
|
3288
3262
|
return { M: c, y: d, w: f, d: l, D: p, h: u, m: o, s: a, ms: s, Q: h }[x] || String(x || "").toLowerCase().replace(/s$/, "");
|
|
3289
3263
|
}, u: function(x) {
|
|
3290
3264
|
return x === void 0;
|
|
3291
|
-
} },
|
|
3292
|
-
|
|
3293
|
-
var
|
|
3294
|
-
return x instanceof
|
|
3295
|
-
},
|
|
3265
|
+
} }, j = "en", G = {};
|
|
3266
|
+
G[j] = $;
|
|
3267
|
+
var W = "$isDayjsObject", le = function(x) {
|
|
3268
|
+
return x instanceof se || !(!x || !x[W]);
|
|
3269
|
+
}, fe = function x(g, v, E) {
|
|
3296
3270
|
var _;
|
|
3297
|
-
if (!g) return
|
|
3271
|
+
if (!g) return j;
|
|
3298
3272
|
if (typeof g == "string") {
|
|
3299
3273
|
var S = g.toLowerCase();
|
|
3300
|
-
|
|
3274
|
+
G[S] && (_ = S), v && (G[S] = v, _ = S);
|
|
3301
3275
|
var A = g.split("-");
|
|
3302
3276
|
if (!_ && A.length > 1) return x(A[0]);
|
|
3303
3277
|
} else {
|
|
3304
|
-
var
|
|
3305
|
-
|
|
3278
|
+
var R = g.name;
|
|
3279
|
+
G[R] = g, _ = R;
|
|
3306
3280
|
}
|
|
3307
|
-
return !E && _ && (
|
|
3308
|
-
},
|
|
3309
|
-
if (
|
|
3281
|
+
return !E && _ && (j = _), _ || !E && j;
|
|
3282
|
+
}, b = function(x, g) {
|
|
3283
|
+
if (le(x)) return x.clone();
|
|
3310
3284
|
var v = typeof g == "object" ? g : {};
|
|
3311
|
-
return v.date = x, v.args = arguments, new
|
|
3312
|
-
},
|
|
3313
|
-
|
|
3314
|
-
return
|
|
3285
|
+
return v.date = x, v.args = arguments, new se(v);
|
|
3286
|
+
}, H = Y;
|
|
3287
|
+
H.l = fe, H.i = le, H.w = function(x, g) {
|
|
3288
|
+
return b(x, { locale: g.$L, utc: g.$u, x: g.$x, $offset: g.$offset });
|
|
3315
3289
|
};
|
|
3316
|
-
var
|
|
3290
|
+
var se = function() {
|
|
3317
3291
|
function x(v) {
|
|
3318
|
-
this.$L =
|
|
3292
|
+
this.$L = fe(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[W] = !0;
|
|
3319
3293
|
}
|
|
3320
3294
|
var g = x.prototype;
|
|
3321
3295
|
return g.parse = function(v) {
|
|
3322
3296
|
this.$d = function(E) {
|
|
3323
3297
|
var _ = E.date, S = E.utc;
|
|
3324
3298
|
if (_ === null) return /* @__PURE__ */ new Date(NaN);
|
|
3325
|
-
if (
|
|
3299
|
+
if (H.u(_)) return /* @__PURE__ */ new Date();
|
|
3326
3300
|
if (_ instanceof Date) return new Date(_);
|
|
3327
3301
|
if (typeof _ == "string" && !/Z$/i.test(_)) {
|
|
3328
3302
|
var A = _.match(m);
|
|
3329
3303
|
if (A) {
|
|
3330
|
-
var
|
|
3331
|
-
return S ? new Date(Date.UTC(A[1],
|
|
3304
|
+
var R = A[2] - 1 || 0, k = (A[7] || "0").substring(0, 3);
|
|
3305
|
+
return S ? new Date(Date.UTC(A[1], R, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, k)) : new Date(A[1], R, A[3] || 1, A[4] || 0, A[5] || 0, A[6] || 0, k);
|
|
3332
3306
|
}
|
|
3333
3307
|
}
|
|
3334
3308
|
return new Date(_);
|
|
@@ -3337,188 +3311,188 @@ var Ki = { exports: {} };
|
|
|
3337
3311
|
var v = this.$d;
|
|
3338
3312
|
this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
|
|
3339
3313
|
}, g.$utils = function() {
|
|
3340
|
-
return
|
|
3314
|
+
return H;
|
|
3341
3315
|
}, g.isValid = function() {
|
|
3342
|
-
return this.$d.toString() !==
|
|
3316
|
+
return this.$d.toString() !== y;
|
|
3343
3317
|
}, g.isSame = function(v, E) {
|
|
3344
|
-
var _ =
|
|
3318
|
+
var _ = b(v);
|
|
3345
3319
|
return this.startOf(E) <= _ && _ <= this.endOf(E);
|
|
3346
3320
|
}, g.isAfter = function(v, E) {
|
|
3347
|
-
return
|
|
3321
|
+
return b(v) < this.startOf(E);
|
|
3348
3322
|
}, g.isBefore = function(v, E) {
|
|
3349
|
-
return this.endOf(E) <
|
|
3323
|
+
return this.endOf(E) < b(v);
|
|
3350
3324
|
}, g.$g = function(v, E, _) {
|
|
3351
|
-
return
|
|
3325
|
+
return H.u(v) ? this[E] : this.set(_, v);
|
|
3352
3326
|
}, g.unix = function() {
|
|
3353
3327
|
return Math.floor(this.valueOf() / 1e3);
|
|
3354
3328
|
}, g.valueOf = function() {
|
|
3355
3329
|
return this.$d.getTime();
|
|
3356
3330
|
}, g.startOf = function(v, E) {
|
|
3357
|
-
var _ = this, S = !!
|
|
3358
|
-
var
|
|
3359
|
-
return S ?
|
|
3360
|
-
},
|
|
3361
|
-
return
|
|
3362
|
-
},
|
|
3331
|
+
var _ = this, S = !!H.u(E) || E, A = H.p(v), R = function(Ye, ae) {
|
|
3332
|
+
var Ue = H.w(_.$u ? Date.UTC(_.$y, ae, Ye) : new Date(_.$y, ae, Ye), _);
|
|
3333
|
+
return S ? Ue : Ue.endOf(l);
|
|
3334
|
+
}, k = function(Ye, ae) {
|
|
3335
|
+
return H.w(_.toDate()[Ye].apply(_.toDate("s"), (S ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), _);
|
|
3336
|
+
}, D = this.$W, U = this.$M, K = this.$D, De = "set" + (this.$u ? "UTC" : "");
|
|
3363
3337
|
switch (A) {
|
|
3364
3338
|
case d:
|
|
3365
|
-
return S ?
|
|
3339
|
+
return S ? R(1, 0) : R(31, 11);
|
|
3366
3340
|
case c:
|
|
3367
|
-
return S ?
|
|
3341
|
+
return S ? R(1, U) : R(0, U + 1);
|
|
3368
3342
|
case f:
|
|
3369
|
-
var We = this.$locale().weekStart || 0, At = (
|
|
3370
|
-
return
|
|
3343
|
+
var We = this.$locale().weekStart || 0, At = (D < We ? D + 7 : D) - We;
|
|
3344
|
+
return R(S ? K - At : K + (6 - At), U);
|
|
3371
3345
|
case l:
|
|
3372
3346
|
case p:
|
|
3373
|
-
return
|
|
3347
|
+
return k(De + "Hours", 0);
|
|
3374
3348
|
case u:
|
|
3375
|
-
return
|
|
3349
|
+
return k(De + "Minutes", 1);
|
|
3376
3350
|
case o:
|
|
3377
|
-
return
|
|
3351
|
+
return k(De + "Seconds", 2);
|
|
3378
3352
|
case a:
|
|
3379
|
-
return
|
|
3353
|
+
return k(De + "Milliseconds", 3);
|
|
3380
3354
|
default:
|
|
3381
3355
|
return this.clone();
|
|
3382
3356
|
}
|
|
3383
3357
|
}, g.endOf = function(v) {
|
|
3384
3358
|
return this.startOf(v, !1);
|
|
3385
3359
|
}, g.$set = function(v, E) {
|
|
3386
|
-
var _, S =
|
|
3360
|
+
var _, S = H.p(v), A = "set" + (this.$u ? "UTC" : ""), R = (_ = {}, _[l] = A + "Date", _[p] = A + "Date", _[c] = A + "Month", _[d] = A + "FullYear", _[u] = A + "Hours", _[o] = A + "Minutes", _[a] = A + "Seconds", _[s] = A + "Milliseconds", _)[S], k = S === l ? this.$D + (E - this.$W) : E;
|
|
3387
3361
|
if (S === c || S === d) {
|
|
3388
|
-
var
|
|
3389
|
-
|
|
3390
|
-
} else
|
|
3362
|
+
var D = this.clone().set(p, 1);
|
|
3363
|
+
D.$d[R](k), D.init(), this.$d = D.set(p, Math.min(this.$D, D.daysInMonth())).$d;
|
|
3364
|
+
} else R && this.$d[R](k);
|
|
3391
3365
|
return this.init(), this;
|
|
3392
3366
|
}, g.set = function(v, E) {
|
|
3393
3367
|
return this.clone().$set(v, E);
|
|
3394
3368
|
}, g.get = function(v) {
|
|
3395
|
-
return this[
|
|
3369
|
+
return this[H.p(v)]();
|
|
3396
3370
|
}, g.add = function(v, E) {
|
|
3397
3371
|
var _, S = this;
|
|
3398
3372
|
v = Number(v);
|
|
3399
|
-
var A =
|
|
3400
|
-
var
|
|
3401
|
-
return
|
|
3373
|
+
var A = H.p(E), R = function(U) {
|
|
3374
|
+
var K = b(S);
|
|
3375
|
+
return H.w(K.date(K.date() + Math.round(U * v)), S);
|
|
3402
3376
|
};
|
|
3403
3377
|
if (A === c) return this.set(c, this.$M + v);
|
|
3404
3378
|
if (A === d) return this.set(d, this.$y + v);
|
|
3405
|
-
if (A === l) return
|
|
3406
|
-
if (A === f) return
|
|
3407
|
-
var
|
|
3408
|
-
return
|
|
3379
|
+
if (A === l) return R(1);
|
|
3380
|
+
if (A === f) return R(7);
|
|
3381
|
+
var k = (_ = {}, _[o] = n, _[u] = i, _[a] = r, _)[A] || 1, D = this.$d.getTime() + v * k;
|
|
3382
|
+
return H.w(D, this);
|
|
3409
3383
|
}, g.subtract = function(v, E) {
|
|
3410
3384
|
return this.add(-1 * v, E);
|
|
3411
3385
|
}, g.format = function(v) {
|
|
3412
3386
|
var E = this, _ = this.$locale();
|
|
3413
|
-
if (!this.isValid()) return _.invalidDate ||
|
|
3414
|
-
var S = v || "YYYY-MM-DDTHH:mm:ssZ", A =
|
|
3415
|
-
return
|
|
3416
|
-
}, At = function(
|
|
3417
|
-
return
|
|
3418
|
-
}, Ye =
|
|
3419
|
-
var Yt =
|
|
3387
|
+
if (!this.isValid()) return _.invalidDate || y;
|
|
3388
|
+
var S = v || "YYYY-MM-DDTHH:mm:ssZ", A = H.z(this), R = this.$H, k = this.$m, D = this.$M, U = _.weekdays, K = _.months, De = _.meridiem, We = function(ae, Ue, Ht, Yt) {
|
|
3389
|
+
return ae && (ae[Ue] || ae(E, S)) || Ht[Ue].slice(0, Yt);
|
|
3390
|
+
}, At = function(ae) {
|
|
3391
|
+
return H.s(R % 12 || 12, ae, "0");
|
|
3392
|
+
}, Ye = De || function(ae, Ue, Ht) {
|
|
3393
|
+
var Yt = ae < 12 ? "AM" : "PM";
|
|
3420
3394
|
return Ht ? Yt.toLowerCase() : Yt;
|
|
3421
3395
|
};
|
|
3422
|
-
return S.replace(
|
|
3423
|
-
return
|
|
3396
|
+
return S.replace(T, function(ae, Ue) {
|
|
3397
|
+
return Ue || function(Ht) {
|
|
3424
3398
|
switch (Ht) {
|
|
3425
3399
|
case "YY":
|
|
3426
3400
|
return String(E.$y).slice(-2);
|
|
3427
3401
|
case "YYYY":
|
|
3428
|
-
return
|
|
3402
|
+
return H.s(E.$y, 4, "0");
|
|
3429
3403
|
case "M":
|
|
3430
|
-
return
|
|
3404
|
+
return D + 1;
|
|
3431
3405
|
case "MM":
|
|
3432
|
-
return
|
|
3406
|
+
return H.s(D + 1, 2, "0");
|
|
3433
3407
|
case "MMM":
|
|
3434
|
-
return We(_.monthsShort,
|
|
3408
|
+
return We(_.monthsShort, D, K, 3);
|
|
3435
3409
|
case "MMMM":
|
|
3436
|
-
return We(
|
|
3410
|
+
return We(K, D);
|
|
3437
3411
|
case "D":
|
|
3438
3412
|
return E.$D;
|
|
3439
3413
|
case "DD":
|
|
3440
|
-
return
|
|
3414
|
+
return H.s(E.$D, 2, "0");
|
|
3441
3415
|
case "d":
|
|
3442
3416
|
return String(E.$W);
|
|
3443
3417
|
case "dd":
|
|
3444
|
-
return We(_.weekdaysMin, E.$W,
|
|
3418
|
+
return We(_.weekdaysMin, E.$W, U, 2);
|
|
3445
3419
|
case "ddd":
|
|
3446
|
-
return We(_.weekdaysShort, E.$W,
|
|
3420
|
+
return We(_.weekdaysShort, E.$W, U, 3);
|
|
3447
3421
|
case "dddd":
|
|
3448
|
-
return
|
|
3422
|
+
return U[E.$W];
|
|
3449
3423
|
case "H":
|
|
3450
|
-
return String(
|
|
3424
|
+
return String(R);
|
|
3451
3425
|
case "HH":
|
|
3452
|
-
return
|
|
3426
|
+
return H.s(R, 2, "0");
|
|
3453
3427
|
case "h":
|
|
3454
3428
|
return At(1);
|
|
3455
3429
|
case "hh":
|
|
3456
3430
|
return At(2);
|
|
3457
3431
|
case "a":
|
|
3458
|
-
return Ye(
|
|
3432
|
+
return Ye(R, k, !0);
|
|
3459
3433
|
case "A":
|
|
3460
|
-
return Ye(
|
|
3434
|
+
return Ye(R, k, !1);
|
|
3461
3435
|
case "m":
|
|
3462
|
-
return String(
|
|
3436
|
+
return String(k);
|
|
3463
3437
|
case "mm":
|
|
3464
|
-
return
|
|
3438
|
+
return H.s(k, 2, "0");
|
|
3465
3439
|
case "s":
|
|
3466
3440
|
return String(E.$s);
|
|
3467
3441
|
case "ss":
|
|
3468
|
-
return
|
|
3442
|
+
return H.s(E.$s, 2, "0");
|
|
3469
3443
|
case "SSS":
|
|
3470
|
-
return
|
|
3444
|
+
return H.s(E.$ms, 3, "0");
|
|
3471
3445
|
case "Z":
|
|
3472
3446
|
return A;
|
|
3473
3447
|
}
|
|
3474
3448
|
return null;
|
|
3475
|
-
}(
|
|
3449
|
+
}(ae) || A.replace(":", "");
|
|
3476
3450
|
});
|
|
3477
3451
|
}, g.utcOffset = function() {
|
|
3478
3452
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
3479
3453
|
}, g.diff = function(v, E, _) {
|
|
3480
|
-
var S, A = this,
|
|
3481
|
-
return
|
|
3454
|
+
var S, A = this, R = H.p(E), k = b(v), D = (k.utcOffset() - this.utcOffset()) * n, U = this - k, K = function() {
|
|
3455
|
+
return H.m(A, k);
|
|
3482
3456
|
};
|
|
3483
|
-
switch (
|
|
3457
|
+
switch (R) {
|
|
3484
3458
|
case d:
|
|
3485
|
-
S =
|
|
3459
|
+
S = K() / 12;
|
|
3486
3460
|
break;
|
|
3487
3461
|
case c:
|
|
3488
|
-
S =
|
|
3462
|
+
S = K();
|
|
3489
3463
|
break;
|
|
3490
3464
|
case h:
|
|
3491
|
-
S =
|
|
3465
|
+
S = K() / 3;
|
|
3492
3466
|
break;
|
|
3493
3467
|
case f:
|
|
3494
|
-
S = (
|
|
3468
|
+
S = (U - D) / 6048e5;
|
|
3495
3469
|
break;
|
|
3496
3470
|
case l:
|
|
3497
|
-
S = (
|
|
3471
|
+
S = (U - D) / 864e5;
|
|
3498
3472
|
break;
|
|
3499
3473
|
case u:
|
|
3500
|
-
S =
|
|
3474
|
+
S = U / i;
|
|
3501
3475
|
break;
|
|
3502
3476
|
case o:
|
|
3503
|
-
S =
|
|
3477
|
+
S = U / n;
|
|
3504
3478
|
break;
|
|
3505
3479
|
case a:
|
|
3506
|
-
S =
|
|
3480
|
+
S = U / r;
|
|
3507
3481
|
break;
|
|
3508
3482
|
default:
|
|
3509
|
-
S =
|
|
3483
|
+
S = U;
|
|
3510
3484
|
}
|
|
3511
|
-
return _ ? S :
|
|
3485
|
+
return _ ? S : H.a(S);
|
|
3512
3486
|
}, g.daysInMonth = function() {
|
|
3513
3487
|
return this.endOf(c).$D;
|
|
3514
3488
|
}, g.$locale = function() {
|
|
3515
|
-
return
|
|
3489
|
+
return G[this.$L];
|
|
3516
3490
|
}, g.locale = function(v, E) {
|
|
3517
3491
|
if (!v) return this.$L;
|
|
3518
|
-
var _ = this.clone(), S =
|
|
3492
|
+
var _ = this.clone(), S = fe(v, E, !0);
|
|
3519
3493
|
return S && (_.$L = S), _;
|
|
3520
3494
|
}, g.clone = function() {
|
|
3521
|
-
return
|
|
3495
|
+
return H.w(this.$d, this);
|
|
3522
3496
|
}, g.toDate = function() {
|
|
3523
3497
|
return new Date(this.valueOf());
|
|
3524
3498
|
}, g.toJSON = function() {
|
|
@@ -3528,16 +3502,16 @@ var Ki = { exports: {} };
|
|
|
3528
3502
|
}, g.toString = function() {
|
|
3529
3503
|
return this.$d.toUTCString();
|
|
3530
3504
|
}, x;
|
|
3531
|
-
}(),
|
|
3532
|
-
return
|
|
3533
|
-
|
|
3505
|
+
}(), St = se.prototype;
|
|
3506
|
+
return b.prototype = St, [["$ms", s], ["$s", a], ["$m", o], ["$H", u], ["$W", l], ["$M", c], ["$y", d], ["$D", p]].forEach(function(x) {
|
|
3507
|
+
St[x[1]] = function(g) {
|
|
3534
3508
|
return this.$g(g, x[0], x[1]);
|
|
3535
3509
|
};
|
|
3536
|
-
}),
|
|
3537
|
-
return x.$i || (x(g,
|
|
3538
|
-
},
|
|
3539
|
-
return
|
|
3540
|
-
},
|
|
3510
|
+
}), b.extend = function(x, g) {
|
|
3511
|
+
return x.$i || (x(g, se, b), x.$i = !0), b;
|
|
3512
|
+
}, b.locale = fe, b.isDayjs = le, b.unix = function(x) {
|
|
3513
|
+
return b(1e3 * x);
|
|
3514
|
+
}, b.en = G[j], b.Ls = G, b.p = {}, b;
|
|
3541
3515
|
});
|
|
3542
3516
|
})(Ki);
|
|
3543
3517
|
var fo = Ki.exports;
|
|
@@ -3573,7 +3547,7 @@ function bo(e) {
|
|
|
3573
3547
|
return Array.isArray(e) ? [] : {};
|
|
3574
3548
|
}
|
|
3575
3549
|
function Gt(e, t) {
|
|
3576
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
3550
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? gt(bo(e), e, t) : e;
|
|
3577
3551
|
}
|
|
3578
3552
|
function yo(e, t, r) {
|
|
3579
3553
|
return e.concat(t).map(function(n) {
|
|
@@ -3582,16 +3556,16 @@ function yo(e, t, r) {
|
|
|
3582
3556
|
}
|
|
3583
3557
|
function Eo(e, t) {
|
|
3584
3558
|
if (!t.customMerge)
|
|
3585
|
-
return
|
|
3559
|
+
return gt;
|
|
3586
3560
|
var r = t.customMerge(e);
|
|
3587
|
-
return typeof r == "function" ? r :
|
|
3561
|
+
return typeof r == "function" ? r : gt;
|
|
3588
3562
|
}
|
|
3589
3563
|
function xo(e) {
|
|
3590
3564
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
3591
3565
|
return Object.propertyIsEnumerable.call(e, t);
|
|
3592
3566
|
}) : [];
|
|
3593
3567
|
}
|
|
3594
|
-
function
|
|
3568
|
+
function Fn(e) {
|
|
3595
3569
|
return Object.keys(e).concat(xo(e));
|
|
3596
3570
|
}
|
|
3597
3571
|
function es(e, t) {
|
|
@@ -3606,37 +3580,37 @@ function wo(e, t) {
|
|
|
3606
3580
|
}
|
|
3607
3581
|
function To(e, t, r) {
|
|
3608
3582
|
var n = {};
|
|
3609
|
-
return r.isMergeableObject(e) &&
|
|
3583
|
+
return r.isMergeableObject(e) && Fn(e).forEach(function(i) {
|
|
3610
3584
|
n[i] = Gt(e[i], r);
|
|
3611
|
-
}),
|
|
3585
|
+
}), Fn(t).forEach(function(i) {
|
|
3612
3586
|
wo(e, i) || (es(e, i) && r.isMergeableObject(t[i]) ? n[i] = Eo(i, r)(e[i], t[i], r) : n[i] = Gt(t[i], r));
|
|
3613
3587
|
}), n;
|
|
3614
3588
|
}
|
|
3615
|
-
function
|
|
3589
|
+
function gt(e, t, r) {
|
|
3616
3590
|
r = r || {}, r.arrayMerge = r.arrayMerge || yo, r.isMergeableObject = r.isMergeableObject || co, r.cloneUnlessOtherwiseSpecified = Gt;
|
|
3617
3591
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
3618
3592
|
return s ? n ? r.arrayMerge(e, t, r) : To(e, t, r) : Gt(t, r);
|
|
3619
3593
|
}
|
|
3620
|
-
|
|
3594
|
+
gt.all = function(t, r) {
|
|
3621
3595
|
if (!Array.isArray(t))
|
|
3622
3596
|
throw new Error("first argument should be an array");
|
|
3623
3597
|
return t.reduce(function(n, i) {
|
|
3624
|
-
return
|
|
3598
|
+
return gt(n, i, r);
|
|
3625
3599
|
}, {});
|
|
3626
3600
|
};
|
|
3627
|
-
var So =
|
|
3601
|
+
var So = gt, Ao = So;
|
|
3628
3602
|
const Ho = /* @__PURE__ */ Qi(Ao);
|
|
3629
|
-
var
|
|
3630
|
-
return
|
|
3603
|
+
var Zr = function(e, t) {
|
|
3604
|
+
return Zr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
3631
3605
|
r.__proto__ = n;
|
|
3632
3606
|
} || function(r, n) {
|
|
3633
3607
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
3634
|
-
},
|
|
3608
|
+
}, Zr(e, t);
|
|
3635
3609
|
};
|
|
3636
3610
|
function xr(e, t) {
|
|
3637
3611
|
if (typeof t != "function" && t !== null)
|
|
3638
3612
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
3639
|
-
|
|
3613
|
+
Zr(e, t);
|
|
3640
3614
|
function r() {
|
|
3641
3615
|
this.constructor = e;
|
|
3642
3616
|
}
|
|
@@ -3659,12 +3633,12 @@ function Mo(e, t) {
|
|
|
3659
3633
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
3660
3634
|
return r;
|
|
3661
3635
|
}
|
|
3662
|
-
function
|
|
3636
|
+
function Ir(e, t, r) {
|
|
3663
3637
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
3664
3638
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
3665
3639
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
3666
3640
|
}
|
|
3667
|
-
function
|
|
3641
|
+
function Br(e, t) {
|
|
3668
3642
|
var r = t && t.cache ? t.cache : Lo, n = t && t.serializer ? t.serializer : Io, i = t && t.strategy ? t.strategy : Po;
|
|
3669
3643
|
return i(e, {
|
|
3670
3644
|
cache: r,
|
|
@@ -3710,7 +3684,7 @@ var Io = function() {
|
|
|
3710
3684
|
create: function() {
|
|
3711
3685
|
return new Bo();
|
|
3712
3686
|
}
|
|
3713
|
-
},
|
|
3687
|
+
}, Lr = {
|
|
3714
3688
|
variadic: $o
|
|
3715
3689
|
}, hr = function() {
|
|
3716
3690
|
return hr = Object.assign || function(t) {
|
|
@@ -3721,50 +3695,50 @@ var Io = function() {
|
|
|
3721
3695
|
return t;
|
|
3722
3696
|
}, hr.apply(this, arguments);
|
|
3723
3697
|
};
|
|
3724
|
-
var
|
|
3698
|
+
var O;
|
|
3725
3699
|
(function(e) {
|
|
3726
3700
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
3727
|
-
})(
|
|
3728
|
-
var
|
|
3701
|
+
})(O || (O = {}));
|
|
3702
|
+
var F;
|
|
3729
3703
|
(function(e) {
|
|
3730
3704
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
3731
|
-
})(
|
|
3732
|
-
var
|
|
3705
|
+
})(F || (F = {}));
|
|
3706
|
+
var bt;
|
|
3733
3707
|
(function(e) {
|
|
3734
3708
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
3735
|
-
})(
|
|
3736
|
-
function
|
|
3737
|
-
return e.type ===
|
|
3709
|
+
})(bt || (bt = {}));
|
|
3710
|
+
function Gn(e) {
|
|
3711
|
+
return e.type === F.literal;
|
|
3738
3712
|
}
|
|
3739
3713
|
function Co(e) {
|
|
3740
|
-
return e.type ===
|
|
3714
|
+
return e.type === F.argument;
|
|
3741
3715
|
}
|
|
3742
3716
|
function ns(e) {
|
|
3743
|
-
return e.type ===
|
|
3717
|
+
return e.type === F.number;
|
|
3744
3718
|
}
|
|
3745
3719
|
function is(e) {
|
|
3746
|
-
return e.type ===
|
|
3720
|
+
return e.type === F.date;
|
|
3747
3721
|
}
|
|
3748
3722
|
function ss(e) {
|
|
3749
|
-
return e.type ===
|
|
3723
|
+
return e.type === F.time;
|
|
3750
3724
|
}
|
|
3751
3725
|
function as(e) {
|
|
3752
|
-
return e.type ===
|
|
3726
|
+
return e.type === F.select;
|
|
3753
3727
|
}
|
|
3754
3728
|
function os(e) {
|
|
3755
|
-
return e.type ===
|
|
3729
|
+
return e.type === F.plural;
|
|
3756
3730
|
}
|
|
3757
3731
|
function Ro(e) {
|
|
3758
|
-
return e.type ===
|
|
3732
|
+
return e.type === F.pound;
|
|
3759
3733
|
}
|
|
3760
3734
|
function us(e) {
|
|
3761
|
-
return e.type ===
|
|
3735
|
+
return e.type === F.tag;
|
|
3762
3736
|
}
|
|
3763
3737
|
function ls(e) {
|
|
3764
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
3738
|
+
return !!(e && typeof e == "object" && e.type === bt.number);
|
|
3765
3739
|
}
|
|
3766
|
-
function
|
|
3767
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
3740
|
+
function Jr(e) {
|
|
3741
|
+
return !!(e && typeof e == "object" && e.type === bt.dateTime);
|
|
3768
3742
|
}
|
|
3769
3743
|
var fs = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Do = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
3770
3744
|
function Uo(e) {
|
|
@@ -3858,14 +3832,14 @@ function Uo(e) {
|
|
|
3858
3832
|
return "";
|
|
3859
3833
|
}), t;
|
|
3860
3834
|
}
|
|
3861
|
-
var
|
|
3862
|
-
return
|
|
3835
|
+
var V = function() {
|
|
3836
|
+
return V = Object.assign || function(t) {
|
|
3863
3837
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
3864
3838
|
r = arguments[n];
|
|
3865
3839
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
3866
3840
|
}
|
|
3867
3841
|
return t;
|
|
3868
|
-
},
|
|
3842
|
+
}, V.apply(this, arguments);
|
|
3869
3843
|
};
|
|
3870
3844
|
var Fo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
3871
3845
|
function Go(e) {
|
|
@@ -3889,8 +3863,8 @@ function Go(e) {
|
|
|
3889
3863
|
function ko(e) {
|
|
3890
3864
|
return e.replace(/^(.*?)-/, "");
|
|
3891
3865
|
}
|
|
3892
|
-
var
|
|
3893
|
-
function
|
|
3866
|
+
var kn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hs = /^(@+)?(\+|#+)?[rs]?$/g, jo = /(\*)(0+)|(#+)(0+)|(0+)/g, cs = /^(0+)$/;
|
|
3867
|
+
function jn(e) {
|
|
3894
3868
|
var t = {};
|
|
3895
3869
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(hs, function(r, n, i) {
|
|
3896
3870
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
@@ -3950,7 +3924,7 @@ function Vo(e) {
|
|
|
3950
3924
|
}
|
|
3951
3925
|
return t;
|
|
3952
3926
|
}
|
|
3953
|
-
function
|
|
3927
|
+
function Vn(e) {
|
|
3954
3928
|
var t = {}, r = ds(e);
|
|
3955
3929
|
return r || t;
|
|
3956
3930
|
}
|
|
@@ -3989,13 +3963,13 @@ function Xo(e) {
|
|
|
3989
3963
|
t.notation = "compact", t.compactDisplay = "long";
|
|
3990
3964
|
continue;
|
|
3991
3965
|
case "scientific":
|
|
3992
|
-
t =
|
|
3993
|
-
return
|
|
3966
|
+
t = V(V(V({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
3967
|
+
return V(V({}, u), Vn(l));
|
|
3994
3968
|
}, {}));
|
|
3995
3969
|
continue;
|
|
3996
3970
|
case "engineering":
|
|
3997
|
-
t =
|
|
3998
|
-
return
|
|
3971
|
+
t = V(V(V({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
3972
|
+
return V(V({}, u), Vn(l));
|
|
3999
3973
|
}, {}));
|
|
4000
3974
|
continue;
|
|
4001
3975
|
case "notation-simple":
|
|
@@ -4057,24 +4031,24 @@ function Xo(e) {
|
|
|
4057
4031
|
t.minimumIntegerDigits = i.stem.length;
|
|
4058
4032
|
continue;
|
|
4059
4033
|
}
|
|
4060
|
-
if (
|
|
4034
|
+
if (kn.test(i.stem)) {
|
|
4061
4035
|
if (i.options.length > 1)
|
|
4062
4036
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
4063
|
-
i.stem.replace(
|
|
4037
|
+
i.stem.replace(kn, function(u, l, f, c, h, d) {
|
|
4064
4038
|
return f === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : h && d ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
4065
4039
|
});
|
|
4066
4040
|
var s = i.options[0];
|
|
4067
|
-
s === "w" ? t =
|
|
4041
|
+
s === "w" ? t = V(V({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = V(V({}, t), jn(s)));
|
|
4068
4042
|
continue;
|
|
4069
4043
|
}
|
|
4070
4044
|
if (hs.test(i.stem)) {
|
|
4071
|
-
t =
|
|
4045
|
+
t = V(V({}, t), jn(i.stem));
|
|
4072
4046
|
continue;
|
|
4073
4047
|
}
|
|
4074
4048
|
var a = ds(i.stem);
|
|
4075
|
-
a && (t =
|
|
4049
|
+
a && (t = V(V({}, t), a));
|
|
4076
4050
|
var o = Vo(i.stem);
|
|
4077
|
-
o && (t =
|
|
4051
|
+
o && (t = V(V({}, t), o));
|
|
4078
4052
|
}
|
|
4079
4053
|
return t;
|
|
4080
4054
|
}
|
|
@@ -5530,20 +5504,20 @@ function Yo(e) {
|
|
|
5530
5504
|
var i = qt[n || ""] || qt[r || ""] || qt["".concat(r, "-001")] || qt["001"];
|
|
5531
5505
|
return i[0];
|
|
5532
5506
|
}
|
|
5533
|
-
var
|
|
5534
|
-
function
|
|
5507
|
+
var Cr, zo = new RegExp("^".concat(fs.source, "*")), qo = new RegExp("".concat(fs.source, "*$"));
|
|
5508
|
+
function P(e, t) {
|
|
5535
5509
|
return { start: e, end: t };
|
|
5536
5510
|
}
|
|
5537
5511
|
var Zo = !!String.prototype.startsWith && "_a".startsWith("a", 1), Jo = !!String.fromCodePoint, Qo = !!Object.fromEntries, Ko = !!String.prototype.codePointAt, eu = !!String.prototype.trimStart, tu = !!String.prototype.trimEnd, ru = !!Number.isSafeInteger, nu = ru ? Number.isSafeInteger : function(e) {
|
|
5538
5512
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
5539
|
-
},
|
|
5513
|
+
}, Qr = !0;
|
|
5540
5514
|
try {
|
|
5541
5515
|
var iu = vs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5542
|
-
|
|
5516
|
+
Qr = ((Cr = iu.exec("a")) === null || Cr === void 0 ? void 0 : Cr[0]) === "a";
|
|
5543
5517
|
} catch {
|
|
5544
|
-
|
|
5518
|
+
Qr = !1;
|
|
5545
5519
|
}
|
|
5546
|
-
var
|
|
5520
|
+
var Xn = Zo ? (
|
|
5547
5521
|
// Native
|
|
5548
5522
|
function(t, r, n) {
|
|
5549
5523
|
return t.startsWith(r, n);
|
|
@@ -5553,7 +5527,7 @@ var Vn = Zo ? (
|
|
|
5553
5527
|
function(t, r, n) {
|
|
5554
5528
|
return t.slice(n, n + r.length) === r;
|
|
5555
5529
|
}
|
|
5556
|
-
),
|
|
5530
|
+
), Kr = Jo ? String.fromCodePoint : (
|
|
5557
5531
|
// IE11
|
|
5558
5532
|
function() {
|
|
5559
5533
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -5565,7 +5539,7 @@ var Vn = Zo ? (
|
|
|
5565
5539
|
}
|
|
5566
5540
|
return n;
|
|
5567
5541
|
}
|
|
5568
|
-
),
|
|
5542
|
+
), Wn = (
|
|
5569
5543
|
// native
|
|
5570
5544
|
Qo ? Object.fromEntries : (
|
|
5571
5545
|
// Ponyfill
|
|
@@ -5615,24 +5589,24 @@ var Vn = Zo ? (
|
|
|
5615
5589
|
function vs(e, t) {
|
|
5616
5590
|
return new RegExp(e, t);
|
|
5617
5591
|
}
|
|
5618
|
-
var
|
|
5619
|
-
if (
|
|
5620
|
-
var
|
|
5621
|
-
|
|
5592
|
+
var en;
|
|
5593
|
+
if (Qr) {
|
|
5594
|
+
var Yn = vs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
5595
|
+
en = function(t, r) {
|
|
5622
5596
|
var n;
|
|
5623
|
-
|
|
5624
|
-
var i =
|
|
5597
|
+
Yn.lastIndex = r;
|
|
5598
|
+
var i = Yn.exec(t);
|
|
5625
5599
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
5626
5600
|
};
|
|
5627
5601
|
} else
|
|
5628
|
-
|
|
5602
|
+
en = function(t, r) {
|
|
5629
5603
|
for (var n = []; ; ) {
|
|
5630
5604
|
var i = ps(t, r);
|
|
5631
5605
|
if (i === void 0 || _s(i) || fu(i))
|
|
5632
5606
|
break;
|
|
5633
5607
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
5634
5608
|
}
|
|
5635
|
-
return
|
|
5609
|
+
return Kr.apply(void 0, n);
|
|
5636
5610
|
};
|
|
5637
5611
|
var ou = (
|
|
5638
5612
|
/** @class */
|
|
@@ -5658,14 +5632,14 @@ var ou = (
|
|
|
5658
5632
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
5659
5633
|
var o = this.clonePosition();
|
|
5660
5634
|
this.bump(), i.push({
|
|
5661
|
-
type:
|
|
5662
|
-
location:
|
|
5635
|
+
type: F.pound,
|
|
5636
|
+
location: P(o, this.clonePosition())
|
|
5663
5637
|
});
|
|
5664
5638
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
5665
5639
|
if (n)
|
|
5666
5640
|
break;
|
|
5667
|
-
return this.error(
|
|
5668
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
5641
|
+
return this.error(O.UNMATCHED_CLOSING_TAG, P(this.clonePosition(), this.clonePosition()));
|
|
5642
|
+
} else if (s === 60 && !this.ignoreTag && tn(this.peek() || 0)) {
|
|
5669
5643
|
var a = this.parseTag(t, r);
|
|
5670
5644
|
if (a.err)
|
|
5671
5645
|
return a;
|
|
@@ -5686,9 +5660,9 @@ var ou = (
|
|
|
5686
5660
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
5687
5661
|
return {
|
|
5688
5662
|
val: {
|
|
5689
|
-
type:
|
|
5663
|
+
type: F.literal,
|
|
5690
5664
|
value: "<".concat(i, "/>"),
|
|
5691
|
-
location:
|
|
5665
|
+
location: P(n, this.clonePosition())
|
|
5692
5666
|
},
|
|
5693
5667
|
err: null
|
|
5694
5668
|
};
|
|
@@ -5698,22 +5672,22 @@ var ou = (
|
|
|
5698
5672
|
return s;
|
|
5699
5673
|
var a = s.val, o = this.clonePosition();
|
|
5700
5674
|
if (this.bumpIf("</")) {
|
|
5701
|
-
if (this.isEOF() || !
|
|
5702
|
-
return this.error(
|
|
5675
|
+
if (this.isEOF() || !tn(this.char()))
|
|
5676
|
+
return this.error(O.INVALID_TAG, P(o, this.clonePosition()));
|
|
5703
5677
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
5704
|
-
return i !== l ? this.error(
|
|
5678
|
+
return i !== l ? this.error(O.UNMATCHED_CLOSING_TAG, P(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
5705
5679
|
val: {
|
|
5706
|
-
type:
|
|
5680
|
+
type: F.tag,
|
|
5707
5681
|
value: i,
|
|
5708
5682
|
children: a,
|
|
5709
|
-
location:
|
|
5683
|
+
location: P(n, this.clonePosition())
|
|
5710
5684
|
},
|
|
5711
5685
|
err: null
|
|
5712
|
-
} : this.error(
|
|
5686
|
+
} : this.error(O.INVALID_TAG, P(o, this.clonePosition())));
|
|
5713
5687
|
} else
|
|
5714
|
-
return this.error(
|
|
5688
|
+
return this.error(O.UNCLOSED_TAG, P(n, this.clonePosition()));
|
|
5715
5689
|
} else
|
|
5716
|
-
return this.error(
|
|
5690
|
+
return this.error(O.INVALID_TAG, P(n, this.clonePosition()));
|
|
5717
5691
|
}, e.prototype.parseTagName = function() {
|
|
5718
5692
|
var t = this.offset();
|
|
5719
5693
|
for (this.bump(); !this.isEOF() && lu(this.char()); )
|
|
@@ -5738,9 +5712,9 @@ var ou = (
|
|
|
5738
5712
|
}
|
|
5739
5713
|
break;
|
|
5740
5714
|
}
|
|
5741
|
-
var u =
|
|
5715
|
+
var u = P(n, this.clonePosition());
|
|
5742
5716
|
return {
|
|
5743
|
-
val: { type:
|
|
5717
|
+
val: { type: F.literal, value: i, location: u },
|
|
5744
5718
|
err: null
|
|
5745
5719
|
};
|
|
5746
5720
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -5779,49 +5753,49 @@ var ou = (
|
|
|
5779
5753
|
r.push(n);
|
|
5780
5754
|
this.bump();
|
|
5781
5755
|
}
|
|
5782
|
-
return
|
|
5756
|
+
return Kr.apply(void 0, r);
|
|
5783
5757
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
5784
5758
|
if (this.isEOF())
|
|
5785
5759
|
return null;
|
|
5786
5760
|
var n = this.char();
|
|
5787
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
5761
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Kr(n));
|
|
5788
5762
|
}, e.prototype.parseArgument = function(t, r) {
|
|
5789
5763
|
var n = this.clonePosition();
|
|
5790
5764
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
5791
|
-
return this.error(
|
|
5765
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, P(n, this.clonePosition()));
|
|
5792
5766
|
if (this.char() === 125)
|
|
5793
|
-
return this.bump(), this.error(
|
|
5767
|
+
return this.bump(), this.error(O.EMPTY_ARGUMENT, P(n, this.clonePosition()));
|
|
5794
5768
|
var i = this.parseIdentifierIfPossible().value;
|
|
5795
5769
|
if (!i)
|
|
5796
|
-
return this.error(
|
|
5770
|
+
return this.error(O.MALFORMED_ARGUMENT, P(n, this.clonePosition()));
|
|
5797
5771
|
if (this.bumpSpace(), this.isEOF())
|
|
5798
|
-
return this.error(
|
|
5772
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, P(n, this.clonePosition()));
|
|
5799
5773
|
switch (this.char()) {
|
|
5800
5774
|
case 125:
|
|
5801
5775
|
return this.bump(), {
|
|
5802
5776
|
val: {
|
|
5803
|
-
type:
|
|
5777
|
+
type: F.argument,
|
|
5804
5778
|
// value does not include the opening and closing braces.
|
|
5805
5779
|
value: i,
|
|
5806
|
-
location:
|
|
5780
|
+
location: P(n, this.clonePosition())
|
|
5807
5781
|
},
|
|
5808
5782
|
err: null
|
|
5809
5783
|
};
|
|
5810
5784
|
case 44:
|
|
5811
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
5785
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, P(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
5812
5786
|
default:
|
|
5813
|
-
return this.error(
|
|
5787
|
+
return this.error(O.MALFORMED_ARGUMENT, P(n, this.clonePosition()));
|
|
5814
5788
|
}
|
|
5815
5789
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
5816
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
5790
|
+
var t = this.clonePosition(), r = this.offset(), n = en(this.message, r), i = r + n.length;
|
|
5817
5791
|
this.bumpTo(i);
|
|
5818
|
-
var s = this.clonePosition(), a =
|
|
5792
|
+
var s = this.clonePosition(), a = P(t, s);
|
|
5819
5793
|
return { value: n, location: a };
|
|
5820
5794
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
5821
5795
|
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
5822
5796
|
switch (o) {
|
|
5823
5797
|
case "":
|
|
5824
|
-
return this.error(
|
|
5798
|
+
return this.error(O.EXPECT_ARGUMENT_TYPE, P(a, u));
|
|
5825
5799
|
case "number":
|
|
5826
5800
|
case "date":
|
|
5827
5801
|
case "time": {
|
|
@@ -5834,44 +5808,44 @@ var ou = (
|
|
|
5834
5808
|
return c;
|
|
5835
5809
|
var h = au(c.val);
|
|
5836
5810
|
if (h.length === 0)
|
|
5837
|
-
return this.error(
|
|
5838
|
-
var d =
|
|
5811
|
+
return this.error(O.EXPECT_ARGUMENT_STYLE, P(this.clonePosition(), this.clonePosition()));
|
|
5812
|
+
var d = P(f, this.clonePosition());
|
|
5839
5813
|
l = { style: h, styleLocation: d };
|
|
5840
5814
|
}
|
|
5841
5815
|
var p = this.tryParseArgumentClose(i);
|
|
5842
5816
|
if (p.err)
|
|
5843
5817
|
return p;
|
|
5844
|
-
var
|
|
5845
|
-
if (l &&
|
|
5818
|
+
var y = P(i, this.clonePosition());
|
|
5819
|
+
if (l && Xn(l?.style, "::", 0)) {
|
|
5846
5820
|
var m = su(l.style.slice(2));
|
|
5847
5821
|
if (o === "number") {
|
|
5848
5822
|
var c = this.parseNumberSkeletonFromString(m, l.styleLocation);
|
|
5849
5823
|
return c.err ? c : {
|
|
5850
|
-
val: { type:
|
|
5824
|
+
val: { type: F.number, value: n, location: y, style: c.val },
|
|
5851
5825
|
err: null
|
|
5852
5826
|
};
|
|
5853
5827
|
} else {
|
|
5854
5828
|
if (m.length === 0)
|
|
5855
|
-
return this.error(
|
|
5856
|
-
var
|
|
5857
|
-
this.locale && (
|
|
5829
|
+
return this.error(O.EXPECT_DATE_TIME_SKELETON, y);
|
|
5830
|
+
var T = m;
|
|
5831
|
+
this.locale && (T = Wo(m, this.locale));
|
|
5858
5832
|
var h = {
|
|
5859
|
-
type:
|
|
5860
|
-
pattern:
|
|
5833
|
+
type: bt.dateTime,
|
|
5834
|
+
pattern: T,
|
|
5861
5835
|
location: l.styleLocation,
|
|
5862
|
-
parsedOptions: this.shouldParseSkeletons ? Uo(
|
|
5863
|
-
},
|
|
5836
|
+
parsedOptions: this.shouldParseSkeletons ? Uo(T) : {}
|
|
5837
|
+
}, $ = o === "date" ? F.date : F.time;
|
|
5864
5838
|
return {
|
|
5865
|
-
val: { type:
|
|
5839
|
+
val: { type: $, value: n, location: y, style: h },
|
|
5866
5840
|
err: null
|
|
5867
5841
|
};
|
|
5868
5842
|
}
|
|
5869
5843
|
}
|
|
5870
5844
|
return {
|
|
5871
5845
|
val: {
|
|
5872
|
-
type: o === "number" ?
|
|
5846
|
+
type: o === "number" ? F.number : o === "date" ? F.date : F.time,
|
|
5873
5847
|
value: n,
|
|
5874
|
-
location:
|
|
5848
|
+
location: y,
|
|
5875
5849
|
style: (s = l?.style) !== null && s !== void 0 ? s : null
|
|
5876
5850
|
},
|
|
5877
5851
|
err: null
|
|
@@ -5880,52 +5854,52 @@ var ou = (
|
|
|
5880
5854
|
case "plural":
|
|
5881
5855
|
case "selectordinal":
|
|
5882
5856
|
case "select": {
|
|
5883
|
-
var
|
|
5857
|
+
var L = this.clonePosition();
|
|
5884
5858
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
5885
|
-
return this.error(
|
|
5859
|
+
return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, P(L, hr({}, L)));
|
|
5886
5860
|
this.bumpSpace();
|
|
5887
|
-
var
|
|
5888
|
-
if (o !== "select" &&
|
|
5861
|
+
var Y = this.parseIdentifierIfPossible(), j = 0;
|
|
5862
|
+
if (o !== "select" && Y.value === "offset") {
|
|
5889
5863
|
if (!this.bumpIf(":"))
|
|
5890
|
-
return this.error(
|
|
5864
|
+
return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, P(this.clonePosition(), this.clonePosition()));
|
|
5891
5865
|
this.bumpSpace();
|
|
5892
|
-
var c = this.tryParseDecimalInteger(
|
|
5866
|
+
var c = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
5893
5867
|
if (c.err)
|
|
5894
5868
|
return c;
|
|
5895
|
-
this.bumpSpace(),
|
|
5869
|
+
this.bumpSpace(), Y = this.parseIdentifierIfPossible(), j = c.val;
|
|
5896
5870
|
}
|
|
5897
|
-
var
|
|
5898
|
-
if (
|
|
5899
|
-
return
|
|
5871
|
+
var G = this.tryParsePluralOrSelectOptions(t, o, r, Y);
|
|
5872
|
+
if (G.err)
|
|
5873
|
+
return G;
|
|
5900
5874
|
var p = this.tryParseArgumentClose(i);
|
|
5901
5875
|
if (p.err)
|
|
5902
5876
|
return p;
|
|
5903
|
-
var
|
|
5877
|
+
var W = P(i, this.clonePosition());
|
|
5904
5878
|
return o === "select" ? {
|
|
5905
5879
|
val: {
|
|
5906
|
-
type:
|
|
5880
|
+
type: F.select,
|
|
5907
5881
|
value: n,
|
|
5908
|
-
options:
|
|
5909
|
-
location:
|
|
5882
|
+
options: Wn(G.val),
|
|
5883
|
+
location: W
|
|
5910
5884
|
},
|
|
5911
5885
|
err: null
|
|
5912
5886
|
} : {
|
|
5913
5887
|
val: {
|
|
5914
|
-
type:
|
|
5888
|
+
type: F.plural,
|
|
5915
5889
|
value: n,
|
|
5916
|
-
options:
|
|
5917
|
-
offset:
|
|
5890
|
+
options: Wn(G.val),
|
|
5891
|
+
offset: j,
|
|
5918
5892
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
5919
|
-
location:
|
|
5893
|
+
location: W
|
|
5920
5894
|
},
|
|
5921
5895
|
err: null
|
|
5922
5896
|
};
|
|
5923
5897
|
}
|
|
5924
5898
|
default:
|
|
5925
|
-
return this.error(
|
|
5899
|
+
return this.error(O.INVALID_ARGUMENT_TYPE, P(a, u));
|
|
5926
5900
|
}
|
|
5927
5901
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
5928
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
5902
|
+
return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, P(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
5929
5903
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
5930
5904
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
5931
5905
|
var n = this.char();
|
|
@@ -5934,7 +5908,7 @@ var ou = (
|
|
|
5934
5908
|
this.bump();
|
|
5935
5909
|
var i = this.clonePosition();
|
|
5936
5910
|
if (!this.bumpUntil("'"))
|
|
5937
|
-
return this.error(
|
|
5911
|
+
return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, P(i, this.clonePosition()));
|
|
5938
5912
|
this.bump();
|
|
5939
5913
|
break;
|
|
5940
5914
|
}
|
|
@@ -5966,11 +5940,11 @@ var ou = (
|
|
|
5966
5940
|
try {
|
|
5967
5941
|
n = Go(t);
|
|
5968
5942
|
} catch {
|
|
5969
|
-
return this.error(
|
|
5943
|
+
return this.error(O.INVALID_NUMBER_SKELETON, r);
|
|
5970
5944
|
}
|
|
5971
5945
|
return {
|
|
5972
5946
|
val: {
|
|
5973
|
-
type:
|
|
5947
|
+
type: bt.number,
|
|
5974
5948
|
tokens: n,
|
|
5975
5949
|
location: r,
|
|
5976
5950
|
parsedOptions: this.shouldParseSkeletons ? Xo(n) : {}
|
|
@@ -5982,34 +5956,34 @@ var ou = (
|
|
|
5982
5956
|
if (l.length === 0) {
|
|
5983
5957
|
var c = this.clonePosition();
|
|
5984
5958
|
if (r !== "select" && this.bumpIf("=")) {
|
|
5985
|
-
var h = this.tryParseDecimalInteger(
|
|
5959
|
+
var h = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
5986
5960
|
if (h.err)
|
|
5987
5961
|
return h;
|
|
5988
|
-
f =
|
|
5962
|
+
f = P(c, this.clonePosition()), l = this.message.slice(c.offset, this.offset());
|
|
5989
5963
|
} else
|
|
5990
5964
|
break;
|
|
5991
5965
|
}
|
|
5992
5966
|
if (u.has(l))
|
|
5993
|
-
return this.error(r === "select" ?
|
|
5967
|
+
return this.error(r === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
5994
5968
|
l === "other" && (a = !0), this.bumpSpace();
|
|
5995
5969
|
var d = this.clonePosition();
|
|
5996
5970
|
if (!this.bumpIf("{"))
|
|
5997
|
-
return this.error(r === "select" ?
|
|
5971
|
+
return this.error(r === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, P(this.clonePosition(), this.clonePosition()));
|
|
5998
5972
|
var p = this.parseMessage(t + 1, r, n);
|
|
5999
5973
|
if (p.err)
|
|
6000
5974
|
return p;
|
|
6001
|
-
var
|
|
6002
|
-
if (
|
|
6003
|
-
return
|
|
5975
|
+
var y = this.tryParseArgumentClose(d);
|
|
5976
|
+
if (y.err)
|
|
5977
|
+
return y;
|
|
6004
5978
|
o.push([
|
|
6005
5979
|
l,
|
|
6006
5980
|
{
|
|
6007
5981
|
value: p.val,
|
|
6008
|
-
location:
|
|
5982
|
+
location: P(d, this.clonePosition())
|
|
6009
5983
|
}
|
|
6010
5984
|
]), u.add(l), this.bumpSpace(), s = this.parseIdentifierIfPossible(), l = s.value, f = s.location;
|
|
6011
5985
|
}
|
|
6012
|
-
return o.length === 0 ? this.error(r === "select" ?
|
|
5986
|
+
return o.length === 0 ? this.error(r === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, P(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(O.MISSING_OTHER_CLAUSE, P(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
6013
5987
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
6014
5988
|
var n = 1, i = this.clonePosition();
|
|
6015
5989
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -6020,7 +5994,7 @@ var ou = (
|
|
|
6020
5994
|
else
|
|
6021
5995
|
break;
|
|
6022
5996
|
}
|
|
6023
|
-
var u =
|
|
5997
|
+
var u = P(i, this.clonePosition());
|
|
6024
5998
|
return s ? (a *= n, nu(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
6025
5999
|
}, e.prototype.offset = function() {
|
|
6026
6000
|
return this.position.offset;
|
|
@@ -6055,7 +6029,7 @@ var ou = (
|
|
|
6055
6029
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
6056
6030
|
}
|
|
6057
6031
|
}, e.prototype.bumpIf = function(t) {
|
|
6058
|
-
if (
|
|
6032
|
+
if (Xn(this.message, t, this.offset())) {
|
|
6059
6033
|
for (var r = 0; r < t.length; r++)
|
|
6060
6034
|
this.bump();
|
|
6061
6035
|
return !0;
|
|
@@ -6087,11 +6061,11 @@ var ou = (
|
|
|
6087
6061
|
}, e;
|
|
6088
6062
|
}()
|
|
6089
6063
|
);
|
|
6090
|
-
function
|
|
6064
|
+
function tn(e) {
|
|
6091
6065
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
6092
6066
|
}
|
|
6093
6067
|
function uu(e) {
|
|
6094
|
-
return
|
|
6068
|
+
return tn(e) || e === 47;
|
|
6095
6069
|
}
|
|
6096
6070
|
function lu(e) {
|
|
6097
6071
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
@@ -6102,27 +6076,27 @@ function _s(e) {
|
|
|
6102
6076
|
function fu(e) {
|
|
6103
6077
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
6104
6078
|
}
|
|
6105
|
-
function
|
|
6079
|
+
function rn(e) {
|
|
6106
6080
|
e.forEach(function(t) {
|
|
6107
6081
|
if (delete t.location, as(t) || os(t))
|
|
6108
6082
|
for (var r in t.options)
|
|
6109
|
-
delete t.options[r].location,
|
|
6110
|
-
else ns(t) && ls(t.style) || (is(t) || ss(t)) &&
|
|
6083
|
+
delete t.options[r].location, rn(t.options[r].value);
|
|
6084
|
+
else ns(t) && ls(t.style) || (is(t) || ss(t)) && Jr(t.style) ? delete t.style.location : us(t) && rn(t.children);
|
|
6111
6085
|
});
|
|
6112
6086
|
}
|
|
6113
6087
|
function hu(e, t) {
|
|
6114
6088
|
t === void 0 && (t = {}), t = hr({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
6115
6089
|
var r = new ou(e, t).parse();
|
|
6116
6090
|
if (r.err) {
|
|
6117
|
-
var n = SyntaxError(
|
|
6091
|
+
var n = SyntaxError(O[r.err.kind]);
|
|
6118
6092
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
6119
6093
|
}
|
|
6120
|
-
return t?.captureLocation ||
|
|
6094
|
+
return t?.captureLocation || rn(r.val), r.val;
|
|
6121
6095
|
}
|
|
6122
|
-
var
|
|
6096
|
+
var yt;
|
|
6123
6097
|
(function(e) {
|
|
6124
6098
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
6125
|
-
})(
|
|
6099
|
+
})(yt || (yt = {}));
|
|
6126
6100
|
var wr = (
|
|
6127
6101
|
/** @class */
|
|
6128
6102
|
function(e) {
|
|
@@ -6135,12 +6109,12 @@ var wr = (
|
|
|
6135
6109
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
6136
6110
|
}, t;
|
|
6137
6111
|
}(Error)
|
|
6138
|
-
),
|
|
6112
|
+
), zn = (
|
|
6139
6113
|
/** @class */
|
|
6140
6114
|
function(e) {
|
|
6141
6115
|
xr(t, e);
|
|
6142
6116
|
function t(r, n, i, s) {
|
|
6143
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
6117
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), yt.INVALID_VALUE, s) || this;
|
|
6144
6118
|
}
|
|
6145
6119
|
return t;
|
|
6146
6120
|
}(wr)
|
|
@@ -6149,7 +6123,7 @@ var wr = (
|
|
|
6149
6123
|
function(e) {
|
|
6150
6124
|
xr(t, e);
|
|
6151
6125
|
function t(r, n, i) {
|
|
6152
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
6126
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), yt.INVALID_VALUE, i) || this;
|
|
6153
6127
|
}
|
|
6154
6128
|
return t;
|
|
6155
6129
|
}(wr)
|
|
@@ -6158,43 +6132,43 @@ var wr = (
|
|
|
6158
6132
|
function(e) {
|
|
6159
6133
|
xr(t, e);
|
|
6160
6134
|
function t(r, n) {
|
|
6161
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
6135
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), yt.MISSING_VALUE, n) || this;
|
|
6162
6136
|
}
|
|
6163
6137
|
return t;
|
|
6164
6138
|
}(wr)
|
|
6165
|
-
),
|
|
6139
|
+
), ee;
|
|
6166
6140
|
(function(e) {
|
|
6167
6141
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
6168
|
-
})(
|
|
6142
|
+
})(ee || (ee = {}));
|
|
6169
6143
|
function pu(e) {
|
|
6170
6144
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
6171
6145
|
var n = t[t.length - 1];
|
|
6172
|
-
return !n || n.type !==
|
|
6146
|
+
return !n || n.type !== ee.literal || r.type !== ee.literal ? t.push(r) : n.value += r.value, t;
|
|
6173
6147
|
}, []);
|
|
6174
6148
|
}
|
|
6175
6149
|
function vu(e) {
|
|
6176
6150
|
return typeof e == "function";
|
|
6177
6151
|
}
|
|
6178
6152
|
function er(e, t, r, n, i, s, a) {
|
|
6179
|
-
if (e.length === 1 &&
|
|
6153
|
+
if (e.length === 1 && Gn(e[0]))
|
|
6180
6154
|
return [
|
|
6181
6155
|
{
|
|
6182
|
-
type:
|
|
6156
|
+
type: ee.literal,
|
|
6183
6157
|
value: e[0].value
|
|
6184
6158
|
}
|
|
6185
6159
|
];
|
|
6186
6160
|
for (var o = [], u = 0, l = e; u < l.length; u++) {
|
|
6187
6161
|
var f = l[u];
|
|
6188
|
-
if (
|
|
6162
|
+
if (Gn(f)) {
|
|
6189
6163
|
o.push({
|
|
6190
|
-
type:
|
|
6164
|
+
type: ee.literal,
|
|
6191
6165
|
value: f.value
|
|
6192
6166
|
});
|
|
6193
6167
|
continue;
|
|
6194
6168
|
}
|
|
6195
6169
|
if (Ro(f)) {
|
|
6196
6170
|
typeof s == "number" && o.push({
|
|
6197
|
-
type:
|
|
6171
|
+
type: ee.literal,
|
|
6198
6172
|
value: r.getNumberFormat(t).format(s)
|
|
6199
6173
|
});
|
|
6200
6174
|
continue;
|
|
@@ -6205,23 +6179,23 @@ function er(e, t, r, n, i, s, a) {
|
|
|
6205
6179
|
var h = i[c];
|
|
6206
6180
|
if (Co(f)) {
|
|
6207
6181
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), o.push({
|
|
6208
|
-
type: typeof h == "string" ?
|
|
6182
|
+
type: typeof h == "string" ? ee.literal : ee.object,
|
|
6209
6183
|
value: h
|
|
6210
6184
|
});
|
|
6211
6185
|
continue;
|
|
6212
6186
|
}
|
|
6213
6187
|
if (is(f)) {
|
|
6214
|
-
var d = typeof f.style == "string" ? n.date[f.style] :
|
|
6188
|
+
var d = typeof f.style == "string" ? n.date[f.style] : Jr(f.style) ? f.style.parsedOptions : void 0;
|
|
6215
6189
|
o.push({
|
|
6216
|
-
type:
|
|
6190
|
+
type: ee.literal,
|
|
6217
6191
|
value: r.getDateTimeFormat(t, d).format(h)
|
|
6218
6192
|
});
|
|
6219
6193
|
continue;
|
|
6220
6194
|
}
|
|
6221
6195
|
if (ss(f)) {
|
|
6222
|
-
var d = typeof f.style == "string" ? n.time[f.style] :
|
|
6196
|
+
var d = typeof f.style == "string" ? n.time[f.style] : Jr(f.style) ? f.style.parsedOptions : n.time.medium;
|
|
6223
6197
|
o.push({
|
|
6224
|
-
type:
|
|
6198
|
+
type: ee.literal,
|
|
6225
6199
|
value: r.getDateTimeFormat(t, d).format(h)
|
|
6226
6200
|
});
|
|
6227
6201
|
continue;
|
|
@@ -6229,45 +6203,45 @@ function er(e, t, r, n, i, s, a) {
|
|
|
6229
6203
|
if (ns(f)) {
|
|
6230
6204
|
var d = typeof f.style == "string" ? n.number[f.style] : ls(f.style) ? f.style.parsedOptions : void 0;
|
|
6231
6205
|
d && d.scale && (h = h * (d.scale || 1)), o.push({
|
|
6232
|
-
type:
|
|
6206
|
+
type: ee.literal,
|
|
6233
6207
|
value: r.getNumberFormat(t, d).format(h)
|
|
6234
6208
|
});
|
|
6235
6209
|
continue;
|
|
6236
6210
|
}
|
|
6237
6211
|
if (us(f)) {
|
|
6238
|
-
var p = f.children,
|
|
6212
|
+
var p = f.children, y = f.value, m = i[y];
|
|
6239
6213
|
if (!vu(m))
|
|
6240
|
-
throw new cu(
|
|
6241
|
-
var
|
|
6242
|
-
return
|
|
6214
|
+
throw new cu(y, "function", a);
|
|
6215
|
+
var T = er(p, t, r, n, i, s), $ = m(T.map(function(j) {
|
|
6216
|
+
return j.value;
|
|
6243
6217
|
}));
|
|
6244
|
-
Array.isArray(
|
|
6218
|
+
Array.isArray($) || ($ = [$]), o.push.apply(o, $.map(function(j) {
|
|
6245
6219
|
return {
|
|
6246
|
-
type: typeof
|
|
6247
|
-
value:
|
|
6220
|
+
type: typeof j == "string" ? ee.literal : ee.object,
|
|
6221
|
+
value: j
|
|
6248
6222
|
};
|
|
6249
6223
|
}));
|
|
6250
6224
|
}
|
|
6251
6225
|
if (as(f)) {
|
|
6252
|
-
var
|
|
6253
|
-
if (!
|
|
6254
|
-
throw new
|
|
6255
|
-
o.push.apply(o, er(
|
|
6226
|
+
var L = f.options[h] || f.options.other;
|
|
6227
|
+
if (!L)
|
|
6228
|
+
throw new zn(f.value, h, Object.keys(f.options), a);
|
|
6229
|
+
o.push.apply(o, er(L.value, t, r, n, i));
|
|
6256
6230
|
continue;
|
|
6257
6231
|
}
|
|
6258
6232
|
if (os(f)) {
|
|
6259
|
-
var
|
|
6260
|
-
if (!
|
|
6233
|
+
var L = f.options["=".concat(h)];
|
|
6234
|
+
if (!L) {
|
|
6261
6235
|
if (!Intl.PluralRules)
|
|
6262
6236
|
throw new wr(`Intl.PluralRules is not available in this environment.
|
|
6263
6237
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
6264
|
-
`,
|
|
6265
|
-
var
|
|
6266
|
-
|
|
6238
|
+
`, yt.MISSING_INTL_API, a);
|
|
6239
|
+
var Y = r.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
|
|
6240
|
+
L = f.options[Y] || f.options.other;
|
|
6267
6241
|
}
|
|
6268
|
-
if (!
|
|
6269
|
-
throw new
|
|
6270
|
-
o.push.apply(o, er(
|
|
6242
|
+
if (!L)
|
|
6243
|
+
throw new zn(f.value, h, Object.keys(f.options), a);
|
|
6244
|
+
o.push.apply(o, er(L.value, t, r, n, i, h - (f.offset || 0)));
|
|
6271
6245
|
continue;
|
|
6272
6246
|
}
|
|
6273
6247
|
}
|
|
@@ -6283,7 +6257,7 @@ function mu(e, t) {
|
|
|
6283
6257
|
return r[n] = _u(e[n], t[n]), r;
|
|
6284
6258
|
}, Ae({}, e)) : e;
|
|
6285
6259
|
}
|
|
6286
|
-
function
|
|
6260
|
+
function Rr(e) {
|
|
6287
6261
|
return {
|
|
6288
6262
|
create: function() {
|
|
6289
6263
|
return {
|
|
@@ -6303,29 +6277,29 @@ function gu(e) {
|
|
|
6303
6277
|
dateTime: {},
|
|
6304
6278
|
pluralRules: {}
|
|
6305
6279
|
}), {
|
|
6306
|
-
getNumberFormat:
|
|
6280
|
+
getNumberFormat: Br(function() {
|
|
6307
6281
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
6308
6282
|
r[n] = arguments[n];
|
|
6309
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
6283
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ir([void 0], r, !1)))();
|
|
6310
6284
|
}, {
|
|
6311
|
-
cache:
|
|
6312
|
-
strategy:
|
|
6285
|
+
cache: Rr(e.number),
|
|
6286
|
+
strategy: Lr.variadic
|
|
6313
6287
|
}),
|
|
6314
|
-
getDateTimeFormat:
|
|
6288
|
+
getDateTimeFormat: Br(function() {
|
|
6315
6289
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
6316
6290
|
r[n] = arguments[n];
|
|
6317
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
6291
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ir([void 0], r, !1)))();
|
|
6318
6292
|
}, {
|
|
6319
|
-
cache:
|
|
6320
|
-
strategy:
|
|
6293
|
+
cache: Rr(e.dateTime),
|
|
6294
|
+
strategy: Lr.variadic
|
|
6321
6295
|
}),
|
|
6322
|
-
getPluralRules:
|
|
6296
|
+
getPluralRules: Br(function() {
|
|
6323
6297
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
6324
6298
|
r[n] = arguments[n];
|
|
6325
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
6299
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ir([void 0], r, !1)))();
|
|
6326
6300
|
}, {
|
|
6327
|
-
cache:
|
|
6328
|
-
strategy:
|
|
6301
|
+
cache: Rr(e.pluralRules),
|
|
6302
|
+
strategy: Lr.variadic
|
|
6329
6303
|
})
|
|
6330
6304
|
};
|
|
6331
6305
|
}
|
|
@@ -6344,7 +6318,7 @@ var bu = (
|
|
|
6344
6318
|
if (l.length === 1)
|
|
6345
6319
|
return l[0].value;
|
|
6346
6320
|
var f = l.reduce(function(c, h) {
|
|
6347
|
-
return !c.length || h.type !==
|
|
6321
|
+
return !c.length || h.type !== ee.literal || typeof c[c.length - 1] != "string" ? c.push(h.value) : c[c.length - 1] += h.value, c;
|
|
6348
6322
|
}, []);
|
|
6349
6323
|
return f.length <= 1 ? f[0] || "" : f;
|
|
6350
6324
|
}, this.formatToParts = function(u) {
|
|
@@ -6462,11 +6436,11 @@ function yu(e, t) {
|
|
|
6462
6436
|
n = void 0;
|
|
6463
6437
|
return n;
|
|
6464
6438
|
}
|
|
6465
|
-
const
|
|
6439
|
+
const je = {}, Eu = (e, t, r) => r && (t in je || (je[t] = {}), e in je[t] || (je[t][e] = r), r), ms = (e, t) => {
|
|
6466
6440
|
if (t == null)
|
|
6467
6441
|
return;
|
|
6468
|
-
if (t in
|
|
6469
|
-
return
|
|
6442
|
+
if (t in je && e in je[t])
|
|
6443
|
+
return je[t][e];
|
|
6470
6444
|
const r = Tr(t);
|
|
6471
6445
|
for (let n = 0; n < r.length; n++) {
|
|
6472
6446
|
const i = r[n], s = wu(i, e);
|
|
@@ -6474,13 +6448,13 @@ const ke = {}, Eu = (e, t, r) => r && (t in ke || (ke[t] = {}), e in ke[t] || (k
|
|
|
6474
6448
|
return Eu(e, t, s);
|
|
6475
6449
|
}
|
|
6476
6450
|
};
|
|
6477
|
-
let
|
|
6478
|
-
const
|
|
6451
|
+
let Tn;
|
|
6452
|
+
const wt = gr({});
|
|
6479
6453
|
function xu(e) {
|
|
6480
|
-
return
|
|
6454
|
+
return Tn[e] || null;
|
|
6481
6455
|
}
|
|
6482
6456
|
function gs(e) {
|
|
6483
|
-
return e in
|
|
6457
|
+
return e in Tn;
|
|
6484
6458
|
}
|
|
6485
6459
|
function wu(e, t) {
|
|
6486
6460
|
if (!gs(e))
|
|
@@ -6499,13 +6473,13 @@ function Tu(e) {
|
|
|
6499
6473
|
}
|
|
6500
6474
|
}
|
|
6501
6475
|
function bs(e, ...t) {
|
|
6502
|
-
delete
|
|
6476
|
+
delete je[e], wt.update((r) => (r[e] = Ho.all([r[e] || {}, ...t]), r));
|
|
6503
6477
|
}
|
|
6504
|
-
|
|
6505
|
-
[
|
|
6478
|
+
xt(
|
|
6479
|
+
[wt],
|
|
6506
6480
|
([e]) => Object.keys(e)
|
|
6507
6481
|
);
|
|
6508
|
-
|
|
6482
|
+
wt.subscribe((e) => Tn = e);
|
|
6509
6483
|
const tr = {};
|
|
6510
6484
|
function Su(e, t) {
|
|
6511
6485
|
tr[e].delete(t), tr[e].size === 0 && delete tr[e];
|
|
@@ -6519,7 +6493,7 @@ function Au(e) {
|
|
|
6519
6493
|
return [t, r ? [...r] : []];
|
|
6520
6494
|
}).filter(([, t]) => t.length > 0);
|
|
6521
6495
|
}
|
|
6522
|
-
function
|
|
6496
|
+
function nn(e) {
|
|
6523
6497
|
return e == null ? !1 : Tr(e).some(
|
|
6524
6498
|
(t) => {
|
|
6525
6499
|
var r;
|
|
@@ -6534,7 +6508,7 @@ function Hu(e, t) {
|
|
|
6534
6508
|
}
|
|
6535
6509
|
const Pt = {};
|
|
6536
6510
|
function Es(e) {
|
|
6537
|
-
if (!
|
|
6511
|
+
if (!nn(e))
|
|
6538
6512
|
return e in Pt ? Pt[e] : Promise.resolve();
|
|
6539
6513
|
const t = Au(e);
|
|
6540
6514
|
return Pt[e] = Promise.all(
|
|
@@ -6542,7 +6516,7 @@ function Es(e) {
|
|
|
6542
6516
|
([r, n]) => Hu(r, n)
|
|
6543
6517
|
)
|
|
6544
6518
|
).then(() => {
|
|
6545
|
-
if (
|
|
6519
|
+
if (nn(e))
|
|
6546
6520
|
return Es(e);
|
|
6547
6521
|
delete Pt[e];
|
|
6548
6522
|
}), Pt[e];
|
|
@@ -6584,48 +6558,48 @@ const Mu = {
|
|
|
6584
6558
|
handleMissingMessage: void 0,
|
|
6585
6559
|
ignoreTag: !0
|
|
6586
6560
|
}, Nu = Ou;
|
|
6587
|
-
function
|
|
6561
|
+
function Et() {
|
|
6588
6562
|
return Nu;
|
|
6589
6563
|
}
|
|
6590
|
-
const
|
|
6591
|
-
var Pu = Object.defineProperty, $u = Object.defineProperties, Iu = Object.getOwnPropertyDescriptors,
|
|
6564
|
+
const Dr = gr(!1);
|
|
6565
|
+
var Pu = Object.defineProperty, $u = Object.defineProperties, Iu = Object.getOwnPropertyDescriptors, qn = Object.getOwnPropertySymbols, Bu = Object.prototype.hasOwnProperty, Lu = Object.prototype.propertyIsEnumerable, Zn = (e, t, r) => t in e ? Pu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Cu = (e, t) => {
|
|
6592
6566
|
for (var r in t || (t = {}))
|
|
6593
|
-
Bu.call(t, r) &&
|
|
6594
|
-
if (
|
|
6595
|
-
for (var r of
|
|
6596
|
-
Lu.call(t, r) &&
|
|
6567
|
+
Bu.call(t, r) && Zn(e, r, t[r]);
|
|
6568
|
+
if (qn)
|
|
6569
|
+
for (var r of qn(t))
|
|
6570
|
+
Lu.call(t, r) && Zn(e, r, t[r]);
|
|
6597
6571
|
return e;
|
|
6598
6572
|
}, Ru = (e, t) => $u(e, Iu(t));
|
|
6599
|
-
let
|
|
6573
|
+
let sn;
|
|
6600
6574
|
const cr = gr(null);
|
|
6601
|
-
function
|
|
6575
|
+
function Jn(e) {
|
|
6602
6576
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
6603
6577
|
}
|
|
6604
|
-
function Tr(e, t =
|
|
6605
|
-
const r =
|
|
6606
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
6578
|
+
function Tr(e, t = Et().fallbackLocale) {
|
|
6579
|
+
const r = Jn(e);
|
|
6580
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Jn(t)])] : r;
|
|
6607
6581
|
}
|
|
6608
|
-
function
|
|
6609
|
-
return
|
|
6582
|
+
function nt() {
|
|
6583
|
+
return sn ?? void 0;
|
|
6610
6584
|
}
|
|
6611
6585
|
cr.subscribe((e) => {
|
|
6612
|
-
|
|
6586
|
+
sn = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
6613
6587
|
});
|
|
6614
6588
|
const Du = (e) => {
|
|
6615
|
-
if (e && Tu(e) &&
|
|
6616
|
-
const { loadingDelay: t } =
|
|
6589
|
+
if (e && Tu(e) && nn(e)) {
|
|
6590
|
+
const { loadingDelay: t } = Et();
|
|
6617
6591
|
let r;
|
|
6618
|
-
return typeof window < "u" &&
|
|
6619
|
-
() =>
|
|
6592
|
+
return typeof window < "u" && nt() != null && t ? r = window.setTimeout(
|
|
6593
|
+
() => Dr.set(!0),
|
|
6620
6594
|
t
|
|
6621
|
-
) :
|
|
6595
|
+
) : Dr.set(!0), Es(e).then(() => {
|
|
6622
6596
|
cr.set(e);
|
|
6623
6597
|
}).finally(() => {
|
|
6624
|
-
clearTimeout(r),
|
|
6598
|
+
clearTimeout(r), Dr.set(!1);
|
|
6625
6599
|
});
|
|
6626
6600
|
}
|
|
6627
6601
|
return cr.set(e);
|
|
6628
|
-
},
|
|
6602
|
+
}, Xe = Ru(Cu({}, cr), {
|
|
6629
6603
|
set: Du
|
|
6630
6604
|
}), Sr = (e) => {
|
|
6631
6605
|
const t = /* @__PURE__ */ Object.create(null);
|
|
@@ -6634,14 +6608,14 @@ const Du = (e) => {
|
|
|
6634
6608
|
return i in t ? t[i] : t[i] = e(n);
|
|
6635
6609
|
};
|
|
6636
6610
|
};
|
|
6637
|
-
var Uu = Object.defineProperty, dr = Object.getOwnPropertySymbols, xs = Object.prototype.hasOwnProperty, ws = Object.prototype.propertyIsEnumerable,
|
|
6611
|
+
var Uu = Object.defineProperty, dr = Object.getOwnPropertySymbols, xs = Object.prototype.hasOwnProperty, ws = Object.prototype.propertyIsEnumerable, Qn = (e, t, r) => t in e ? Uu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Sn = (e, t) => {
|
|
6638
6612
|
for (var r in t || (t = {}))
|
|
6639
|
-
xs.call(t, r) &&
|
|
6613
|
+
xs.call(t, r) && Qn(e, r, t[r]);
|
|
6640
6614
|
if (dr)
|
|
6641
6615
|
for (var r of dr(t))
|
|
6642
|
-
ws.call(t, r) &&
|
|
6616
|
+
ws.call(t, r) && Qn(e, r, t[r]);
|
|
6643
6617
|
return e;
|
|
6644
|
-
},
|
|
6618
|
+
}, Tt = (e, t) => {
|
|
6645
6619
|
var r = {};
|
|
6646
6620
|
for (var n in e)
|
|
6647
6621
|
xs.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -6651,27 +6625,27 @@ var Uu = Object.defineProperty, dr = Object.getOwnPropertySymbols, xs = Object.p
|
|
|
6651
6625
|
return r;
|
|
6652
6626
|
};
|
|
6653
6627
|
const kt = (e, t) => {
|
|
6654
|
-
const { formats: r } =
|
|
6628
|
+
const { formats: r } = Et();
|
|
6655
6629
|
if (e in r && t in r[e])
|
|
6656
6630
|
return r[e][t];
|
|
6657
6631
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
6658
6632
|
}, Fu = Sr(
|
|
6659
6633
|
(e) => {
|
|
6660
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6634
|
+
var t = e, { locale: r, format: n } = t, i = Tt(t, ["locale", "format"]);
|
|
6661
6635
|
if (r == null)
|
|
6662
6636
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
6663
6637
|
return n && (i = kt("number", n)), new Intl.NumberFormat(r, i);
|
|
6664
6638
|
}
|
|
6665
6639
|
), Gu = Sr(
|
|
6666
6640
|
(e) => {
|
|
6667
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6641
|
+
var t = e, { locale: r, format: n } = t, i = Tt(t, ["locale", "format"]);
|
|
6668
6642
|
if (r == null)
|
|
6669
6643
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
6670
6644
|
return n ? i = kt("date", n) : Object.keys(i).length === 0 && (i = kt("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
6671
6645
|
}
|
|
6672
6646
|
), ku = Sr(
|
|
6673
6647
|
(e) => {
|
|
6674
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
6648
|
+
var t = e, { locale: r, format: n } = t, i = Tt(t, ["locale", "format"]);
|
|
6675
6649
|
if (r == null)
|
|
6676
6650
|
throw new Error(
|
|
6677
6651
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
@@ -6680,29 +6654,29 @@ const kt = (e, t) => {
|
|
|
6680
6654
|
}
|
|
6681
6655
|
), ju = (e = {}) => {
|
|
6682
6656
|
var t = e, {
|
|
6683
|
-
locale: r =
|
|
6684
|
-
} = t, n =
|
|
6657
|
+
locale: r = nt()
|
|
6658
|
+
} = t, n = Tt(t, [
|
|
6685
6659
|
"locale"
|
|
6686
6660
|
]);
|
|
6687
|
-
return Fu(
|
|
6661
|
+
return Fu(Sn({ locale: r }, n));
|
|
6688
6662
|
}, Vu = (e = {}) => {
|
|
6689
6663
|
var t = e, {
|
|
6690
|
-
locale: r =
|
|
6691
|
-
} = t, n =
|
|
6664
|
+
locale: r = nt()
|
|
6665
|
+
} = t, n = Tt(t, [
|
|
6692
6666
|
"locale"
|
|
6693
6667
|
]);
|
|
6694
|
-
return Gu(
|
|
6668
|
+
return Gu(Sn({ locale: r }, n));
|
|
6695
6669
|
}, Xu = (e = {}) => {
|
|
6696
6670
|
var t = e, {
|
|
6697
|
-
locale: r =
|
|
6698
|
-
} = t, n =
|
|
6671
|
+
locale: r = nt()
|
|
6672
|
+
} = t, n = Tt(t, [
|
|
6699
6673
|
"locale"
|
|
6700
6674
|
]);
|
|
6701
|
-
return ku(
|
|
6675
|
+
return ku(Sn({ locale: r }, n));
|
|
6702
6676
|
}, Wu = Sr(
|
|
6703
6677
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
6704
|
-
(e, t =
|
|
6705
|
-
ignoreTag:
|
|
6678
|
+
(e, t = nt()) => new bu(e, t, Et().formats, {
|
|
6679
|
+
ignoreTag: Et().ignoreTag
|
|
6706
6680
|
})
|
|
6707
6681
|
), Yu = (e, t = {}) => {
|
|
6708
6682
|
var r, n, i, s;
|
|
@@ -6710,7 +6684,7 @@ const kt = (e, t) => {
|
|
|
6710
6684
|
typeof e == "object" && (a = e, e = a.id);
|
|
6711
6685
|
const {
|
|
6712
6686
|
values: o,
|
|
6713
|
-
locale: u =
|
|
6687
|
+
locale: u = nt(),
|
|
6714
6688
|
default: l
|
|
6715
6689
|
} = a;
|
|
6716
6690
|
if (u == null)
|
|
@@ -6719,7 +6693,7 @@ const kt = (e, t) => {
|
|
|
6719
6693
|
);
|
|
6720
6694
|
let f = ms(e, u);
|
|
6721
6695
|
if (!f)
|
|
6722
|
-
f = (s = (i = (n = (r =
|
|
6696
|
+
f = (s = (i = (n = (r = Et()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
|
6723
6697
|
else if (typeof f != "string")
|
|
6724
6698
|
return console.warn(
|
|
6725
6699
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -6736,47 +6710,47 @@ const kt = (e, t) => {
|
|
|
6736
6710
|
);
|
|
6737
6711
|
}
|
|
6738
6712
|
return c;
|
|
6739
|
-
}, zu = (e, t) => Xu(t).format(e), qu = (e, t) => Vu(t).format(e), Zu = (e, t) => ju(t).format(e), Ju = (e, t =
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6713
|
+
}, zu = (e, t) => Xu(t).format(e), qu = (e, t) => Vu(t).format(e), Zu = (e, t) => ju(t).format(e), Ju = (e, t = nt()) => ms(e, t), Qu = xt([Xe, wt], () => Yu);
|
|
6714
|
+
xt([Xe], () => zu);
|
|
6715
|
+
xt([Xe], () => qu);
|
|
6716
|
+
xt([Xe], () => Zu);
|
|
6717
|
+
xt([Xe, wt], () => Ju);
|
|
6744
6718
|
function Ku({ withLocale: e, translations: t }) {
|
|
6745
|
-
|
|
6746
|
-
r == null && (
|
|
6719
|
+
Xe.subscribe((r) => {
|
|
6720
|
+
r == null && (wt.set(t), Xe.set(e));
|
|
6747
6721
|
});
|
|
6748
6722
|
}
|
|
6749
6723
|
function el(e, t) {
|
|
6750
6724
|
bs(e, t);
|
|
6751
6725
|
}
|
|
6752
6726
|
function tl(e) {
|
|
6753
|
-
|
|
6727
|
+
Xe.set(e);
|
|
6754
6728
|
}
|
|
6755
6729
|
const Hl = (e) => {
|
|
6756
|
-
let t = /* @__PURE__ */
|
|
6730
|
+
let t = /* @__PURE__ */ te(void 0), r = /* @__PURE__ */ te(void 0), n = /* @__PURE__ */ te(void 0), i = /* @__PURE__ */ te(void 0), s = /* @__PURE__ */ te(!1), a = /* @__PURE__ */ te(void 0);
|
|
6757
6731
|
const o = async () => {
|
|
6758
6732
|
const { apiEndpoint: u, userSession: l, locale: f, loadLevels: c, onLevelLoaded: h } = e();
|
|
6759
6733
|
if (!(!u || !l)) {
|
|
6760
|
-
|
|
6734
|
+
z(s, !0), z(a, void 0);
|
|
6761
6735
|
try {
|
|
6762
6736
|
const d = [
|
|
6763
6737
|
so({ apiEndpoint: u, userSession: l, locale: f }).then((p) => {
|
|
6764
|
-
const
|
|
6765
|
-
|
|
6738
|
+
const y = p.level;
|
|
6739
|
+
y.name = y.presentation?.displayName || y.name, y.spendablePoints = p.spendableWallet?.total.points || 0, z(t, y, !0), z(n, p.loyaltyWallet?.total, !0), z(i, p.spendableWallet?.total, !0), h?.({ elevateLevel: y }), h?.({
|
|
6766
6740
|
elevateLevelWalletTotal: p.spendableWallet?.total,
|
|
6767
6741
|
loyaltyWalletTotal: p.loyaltyWallet?.total
|
|
6768
6742
|
});
|
|
6769
6743
|
})
|
|
6770
6744
|
];
|
|
6771
6745
|
c && d.push(ao({ apiEndpoint: u, userSession: l, locale: f }).then((p) => {
|
|
6772
|
-
|
|
6746
|
+
z(r, p, !0);
|
|
6773
6747
|
})), await Promise.all(d), await $a(), w(r) && w(t) && h?.({
|
|
6774
6748
|
calculatedLevelFlag: uo(w(r), w(t).loyaltyPoints ?? 0)
|
|
6775
6749
|
});
|
|
6776
6750
|
} catch (d) {
|
|
6777
|
-
|
|
6751
|
+
z(a, d, !0), console.error("Failed to load elevate info:", d);
|
|
6778
6752
|
} finally {
|
|
6779
|
-
|
|
6753
|
+
z(s, !1);
|
|
6780
6754
|
}
|
|
6781
6755
|
}
|
|
6782
6756
|
};
|
|
@@ -6856,98 +6830,98 @@ const ll = {
|
|
|
6856
6830
|
}`
|
|
6857
6831
|
};
|
|
6858
6832
|
function Ts(e, t) {
|
|
6859
|
-
|
|
6860
|
-
const r = () => ua(Qu, "$_", n), [n, i] = la(), s = Se(t, "offset", 7, 0), a = Se(t, "limit", 7, Dt), o = Se(t, "total", 7, 0), u = Se(t, "onPageChange", 7, (
|
|
6833
|
+
un(t, !0), za(e, ll);
|
|
6834
|
+
const r = () => ua(Qu, "$_", n), [n, i] = la(), s = Se(t, "offset", 7, 0), a = Se(t, "limit", 7, Dt), o = Se(t, "total", 7, 0), u = Se(t, "onPageChange", 7, (b) => {
|
|
6861
6835
|
}), l = Se(t, "locale", 7, "en");
|
|
6862
|
-
Ku({ withLocale: l(), translations: {} }), Object.entries(rl).forEach(([
|
|
6863
|
-
el(
|
|
6836
|
+
Ku({ withLocale: l(), translations: {} }), Object.entries(rl).forEach(([b, H]) => {
|
|
6837
|
+
el(b, H);
|
|
6864
6838
|
}), lr(() => {
|
|
6865
6839
|
tl(l() ?? "en");
|
|
6866
6840
|
});
|
|
6867
|
-
const f = /* @__PURE__ */
|
|
6868
|
-
let
|
|
6841
|
+
const f = /* @__PURE__ */ st(() => Number(s()) || 0), c = /* @__PURE__ */ st(() => Number(a()) || Dt), h = /* @__PURE__ */ st(() => Number(o()) || 0), d = /* @__PURE__ */ st(() => Math.max(1, Math.ceil(w(h) / Math.max(1, w(c))))), p = /* @__PURE__ */ st(() => w(c) > 0 ? Math.floor(w(f) / w(c)) : 0);
|
|
6842
|
+
let y = /* @__PURE__ */ te(!1);
|
|
6869
6843
|
lr(() => {
|
|
6870
|
-
const
|
|
6871
|
-
|
|
6844
|
+
const b = window.matchMedia("(max-width: 767px)"), H = (se) => {
|
|
6845
|
+
z(y, se.matches, !0);
|
|
6872
6846
|
};
|
|
6873
|
-
return
|
|
6847
|
+
return z(y, b.matches, !0), b.addEventListener("change", H), () => b.removeEventListener("change", H);
|
|
6874
6848
|
});
|
|
6875
|
-
const m = (
|
|
6876
|
-
var
|
|
6849
|
+
const m = (b, H, se) => b <= (se ? il : nl) ? Array.from({ length: b }, (v, E) => E) : H <= 1 || H >= b - 2 ? [0, 1, "ellipsis", b - 2, b - 1] : [0, "ellipsis", H, "ellipsis", b - 1], T = /* @__PURE__ */ st(() => m(w(d), w(p), w(y))), $ = (b) => u()(b * w(c)), L = () => u()(Math.max(0, w(p) - 1) * w(c)), Y = () => u()(Math.min(w(d) - 1, w(p) + 1) * w(c));
|
|
6850
|
+
var j = {
|
|
6877
6851
|
get offset() {
|
|
6878
6852
|
return s();
|
|
6879
6853
|
},
|
|
6880
|
-
set offset(
|
|
6881
|
-
s(
|
|
6854
|
+
set offset(b = 0) {
|
|
6855
|
+
s(b), pe();
|
|
6882
6856
|
},
|
|
6883
6857
|
get limit() {
|
|
6884
6858
|
return a();
|
|
6885
6859
|
},
|
|
6886
|
-
set limit(
|
|
6887
|
-
a(
|
|
6860
|
+
set limit(b = Dt) {
|
|
6861
|
+
a(b), pe();
|
|
6888
6862
|
},
|
|
6889
6863
|
get total() {
|
|
6890
6864
|
return o();
|
|
6891
6865
|
},
|
|
6892
|
-
set total(
|
|
6893
|
-
o(
|
|
6866
|
+
set total(b = 0) {
|
|
6867
|
+
o(b), pe();
|
|
6894
6868
|
},
|
|
6895
6869
|
get onPageChange() {
|
|
6896
6870
|
return u();
|
|
6897
6871
|
},
|
|
6898
|
-
set onPageChange(
|
|
6872
|
+
set onPageChange(b = (H) => {
|
|
6899
6873
|
}) {
|
|
6900
|
-
u(
|
|
6874
|
+
u(b), pe();
|
|
6901
6875
|
},
|
|
6902
6876
|
get locale() {
|
|
6903
6877
|
return l();
|
|
6904
6878
|
},
|
|
6905
|
-
set locale(
|
|
6906
|
-
l(
|
|
6879
|
+
set locale(b = "en") {
|
|
6880
|
+
l(b), pe();
|
|
6907
6881
|
}
|
|
6908
|
-
},
|
|
6882
|
+
}, G = ul(), W = Ot(G);
|
|
6909
6883
|
{
|
|
6910
|
-
var
|
|
6911
|
-
var
|
|
6912
|
-
Mt(
|
|
6913
|
-
var x =
|
|
6914
|
-
Xa(x, 17, () => w(
|
|
6884
|
+
var le = (b) => {
|
|
6885
|
+
var H = ol(), se = Ot(H), St = Ot(se, !0);
|
|
6886
|
+
Mt(se);
|
|
6887
|
+
var x = Pn(se, 2);
|
|
6888
|
+
Xa(x, 17, () => w(T), ja, (E, _) => {
|
|
6915
6889
|
var S = Ra(), A = wa(S);
|
|
6916
6890
|
{
|
|
6917
|
-
var
|
|
6918
|
-
var
|
|
6919
|
-
|
|
6920
|
-
},
|
|
6921
|
-
var
|
|
6922
|
-
let
|
|
6923
|
-
var
|
|
6924
|
-
Mt(
|
|
6925
|
-
|
|
6891
|
+
var R = (D) => {
|
|
6892
|
+
var U = sl();
|
|
6893
|
+
ot(D, U);
|
|
6894
|
+
}, k = (D) => {
|
|
6895
|
+
var U = al();
|
|
6896
|
+
let K;
|
|
6897
|
+
var De = Ot(U, !0);
|
|
6898
|
+
Mt(U), $n(() => {
|
|
6899
|
+
K = Za(U, 1, "loyalty-pagination__btn svelte-1op0ean", null, K, {
|
|
6926
6900
|
"loyalty-pagination__btn--active": w(_) === w(p)
|
|
6927
|
-
}),
|
|
6928
|
-
}), Mr("click",
|
|
6901
|
+
}), Pr(De, w(_) + 1);
|
|
6902
|
+
}), Mr("click", U, () => $(w(_))), ot(D, U);
|
|
6929
6903
|
};
|
|
6930
|
-
|
|
6931
|
-
w(_) === "ellipsis" ?
|
|
6904
|
+
Cn(A, (D) => {
|
|
6905
|
+
w(_) === "ellipsis" ? D(R) : D(k, -1);
|
|
6932
6906
|
});
|
|
6933
6907
|
}
|
|
6934
|
-
|
|
6908
|
+
ot(E, S);
|
|
6935
6909
|
});
|
|
6936
|
-
var g =
|
|
6937
|
-
Mt(g), Mt(
|
|
6910
|
+
var g = Pn(x, 2), v = Ot(g, !0);
|
|
6911
|
+
Mt(g), Mt(H), $n(
|
|
6938
6912
|
(E, _) => {
|
|
6939
|
-
|
|
6913
|
+
se.disabled = w(p) <= 0, Pr(St, E), g.disabled = w(p) >= w(d) - 1, Pr(v, _);
|
|
6940
6914
|
},
|
|
6941
6915
|
[() => r()("prev"), () => r()("next")]
|
|
6942
|
-
), Mr("click",
|
|
6916
|
+
), Mr("click", se, L), Mr("click", g, Y), ot(b, H);
|
|
6943
6917
|
};
|
|
6944
|
-
|
|
6945
|
-
w(d) > 1 &&
|
|
6918
|
+
Cn(W, (b) => {
|
|
6919
|
+
w(d) > 1 && b(le);
|
|
6946
6920
|
});
|
|
6947
6921
|
}
|
|
6948
|
-
Mt(
|
|
6949
|
-
var
|
|
6950
|
-
return i(),
|
|
6922
|
+
Mt(G), ot(e, G);
|
|
6923
|
+
var fe = ln(j);
|
|
6924
|
+
return i(), fe;
|
|
6951
6925
|
}
|
|
6952
6926
|
Ia(["click"]);
|
|
6953
6927
|
qi(
|
|
@@ -6964,38 +6938,38 @@ qi(
|
|
|
6964
6938
|
{ mode: "open" }
|
|
6965
6939
|
);
|
|
6966
6940
|
function Ss(e, t) {
|
|
6967
|
-
|
|
6941
|
+
un(t, !0);
|
|
6968
6942
|
let r = Se(t, "offset", 7, 0), n = Se(t, "limit", 7, Dt), i = Se(t, "total", 7, 0), s = Se(t, "onPageChange"), a = Se(t, "locale", 7, "en");
|
|
6969
6943
|
var o = {
|
|
6970
6944
|
get offset() {
|
|
6971
6945
|
return r();
|
|
6972
6946
|
},
|
|
6973
6947
|
set offset(u = 0) {
|
|
6974
|
-
r(u),
|
|
6948
|
+
r(u), pe();
|
|
6975
6949
|
},
|
|
6976
6950
|
get limit() {
|
|
6977
6951
|
return n();
|
|
6978
6952
|
},
|
|
6979
6953
|
set limit(u = Dt) {
|
|
6980
|
-
n(u),
|
|
6954
|
+
n(u), pe();
|
|
6981
6955
|
},
|
|
6982
6956
|
get total() {
|
|
6983
6957
|
return i();
|
|
6984
6958
|
},
|
|
6985
6959
|
set total(u = 0) {
|
|
6986
|
-
i(u),
|
|
6960
|
+
i(u), pe();
|
|
6987
6961
|
},
|
|
6988
6962
|
get onPageChange() {
|
|
6989
6963
|
return s();
|
|
6990
6964
|
},
|
|
6991
6965
|
set onPageChange(u) {
|
|
6992
|
-
s(u),
|
|
6966
|
+
s(u), pe();
|
|
6993
6967
|
},
|
|
6994
6968
|
get locale() {
|
|
6995
6969
|
return a();
|
|
6996
6970
|
},
|
|
6997
6971
|
set locale(u = "en") {
|
|
6998
|
-
a(u),
|
|
6972
|
+
a(u), pe();
|
|
6999
6973
|
}
|
|
7000
6974
|
};
|
|
7001
6975
|
return Ts(e, {
|
|
@@ -7014,7 +6988,7 @@ function Ss(e, t) {
|
|
|
7014
6988
|
get locale() {
|
|
7015
6989
|
return a();
|
|
7016
6990
|
}
|
|
7017
|
-
}),
|
|
6991
|
+
}), ln(o);
|
|
7018
6992
|
}
|
|
7019
6993
|
customElements.define("loyalty-pagination", qi(
|
|
7020
6994
|
Ss,
|
|
@@ -7038,7 +7012,7 @@ export {
|
|
|
7038
7012
|
hl as B,
|
|
7039
7013
|
lr as C,
|
|
7040
7014
|
ml as D,
|
|
7041
|
-
|
|
7015
|
+
z as E,
|
|
7042
7016
|
bl as F,
|
|
7043
7017
|
pl as G,
|
|
7044
7018
|
yl as H,
|
|
@@ -7066,23 +7040,23 @@ export {
|
|
|
7066
7040
|
Hl as e,
|
|
7067
7041
|
Ra as f,
|
|
7068
7042
|
wa as g,
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7043
|
+
ot as h,
|
|
7044
|
+
Cn as i,
|
|
7045
|
+
ln as j,
|
|
7046
|
+
pe as k,
|
|
7073
7047
|
la as l,
|
|
7074
7048
|
w as m,
|
|
7075
7049
|
Ot as n,
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
7050
|
+
Pn as o,
|
|
7051
|
+
un as p,
|
|
7052
|
+
Pr as q,
|
|
7079
7053
|
Mt as r,
|
|
7080
7054
|
Ku as s,
|
|
7081
|
-
|
|
7082
|
-
|
|
7055
|
+
$n as t,
|
|
7056
|
+
st as u,
|
|
7083
7057
|
Er as v,
|
|
7084
7058
|
ua as w,
|
|
7085
7059
|
El as x,
|
|
7086
7060
|
Ia as y,
|
|
7087
|
-
|
|
7061
|
+
te as z
|
|
7088
7062
|
};
|