@everymatrix/loyalty-rakeback 0.1.7 → 0.1.8
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/LoyaltyRakeback-BRA3NRGa.cjs +23 -0
- package/components/{LoyaltyRakeback-DTcAzwGe.js → LoyaltyRakeback-BzTIy51V.js} +1299 -1227
- package/components/{LoyaltyRakeback-Dnu3D0kJ.js → LoyaltyRakeback-DlYDlMCh.js} +1520 -1448
- package/es2015/loyalty-rakeback.cjs +1 -1
- package/es2015/loyalty-rakeback.js +1 -1
- package/package.json +1 -1
- package/components/LoyaltyRakeback-CZoPK30h.cjs +0 -4
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
const
|
|
2
|
-
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(
|
|
3
|
-
const
|
|
4
|
-
var
|
|
5
|
-
const
|
|
1
|
+
const Si = "5";
|
|
2
|
+
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(Si);
|
|
3
|
+
const Hi = 2, Zr = "[", fr = "[!", Yr = "]", Me = {}, O = Symbol(), zt = !1;
|
|
4
|
+
var Ai = Array.isArray, Bi = Array.prototype.indexOf, Ni = Array.from, wt = Object.keys, rt = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, Oi = Object.prototype, Pi = Array.prototype, Ci = Object.getPrototypeOf, wr = Object.isExtensible;
|
|
5
|
+
const pe = () => {
|
|
6
6
|
};
|
|
7
|
-
function
|
|
7
|
+
function Qr(e) {
|
|
8
8
|
for (var t = 0; t < e.length; t++)
|
|
9
9
|
e[t]();
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Jr() {
|
|
12
12
|
var e, t, r = new Promise((n, i) => {
|
|
13
13
|
e = n, t = i;
|
|
14
14
|
});
|
|
15
15
|
return { promise: r, resolve: e, reject: t };
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const C = 2, Tt = 4, ut = 8, Kr = 1 << 24, le = 16, fe = 32, be = 64, hr = 128, X = 512, I = 1024, L = 2048, he = 4096, ee = 8192, se = 16384, Ct = 32768, $e = 65536, Tr = 1 << 17, en = 1 << 18, Be = 1 << 19, tn = 1 << 20, He = 32768, qt = 1 << 21, cr = 1 << 22, ve = 1 << 23, Ut = Symbol("$state"), Ii = Symbol("legacy props"), Ie = new class extends Error {
|
|
18
18
|
name = "StaleReactionError";
|
|
19
19
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
20
|
-
}(),
|
|
21
|
-
function
|
|
20
|
+
}(), dr = 3, lt = 8;
|
|
21
|
+
function Ri() {
|
|
22
22
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Li(e) {
|
|
25
25
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function Mi() {
|
|
28
28
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function $i(e) {
|
|
31
31
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function ki() {
|
|
34
34
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Di() {
|
|
37
37
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Ui() {
|
|
40
40
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Fi() {
|
|
43
43
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Gi() {
|
|
46
46
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function ji() {
|
|
49
49
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function It(e) {
|
|
52
52
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Vi() {
|
|
55
55
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
56
56
|
}
|
|
57
57
|
let A = !1;
|
|
58
|
-
function
|
|
58
|
+
function Re(e) {
|
|
59
59
|
A = e;
|
|
60
60
|
}
|
|
61
|
-
let
|
|
62
|
-
function
|
|
61
|
+
let x;
|
|
62
|
+
function Y(e) {
|
|
63
63
|
if (e === null)
|
|
64
|
-
throw
|
|
65
|
-
return
|
|
64
|
+
throw It(), Me;
|
|
65
|
+
return x = e;
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
return
|
|
67
|
+
function pr() {
|
|
68
|
+
return Y(/* @__PURE__ */ ce(x));
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function dt(e) {
|
|
71
71
|
if (A) {
|
|
72
|
-
if (/* @__PURE__ */
|
|
73
|
-
throw
|
|
74
|
-
|
|
72
|
+
if (/* @__PURE__ */ ce(x) !== null)
|
|
73
|
+
throw It(), Me;
|
|
74
|
+
x = e;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Xi(e = 1) {
|
|
78
78
|
if (A) {
|
|
79
|
-
for (var t = e, r =
|
|
79
|
+
for (var t = e, r = x; t--; )
|
|
80
80
|
r = /** @type {TemplateNode} */
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
|
|
81
|
+
/* @__PURE__ */ ce(r);
|
|
82
|
+
x = r;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
for (var t = 0, r =
|
|
87
|
-
if (r.nodeType ===
|
|
85
|
+
function rn(e = !0) {
|
|
86
|
+
for (var t = 0, r = x; ; ) {
|
|
87
|
+
if (r.nodeType === lt) {
|
|
88
88
|
var n = (
|
|
89
89
|
/** @type {Comment} */
|
|
90
90
|
r.data
|
|
91
91
|
);
|
|
92
|
-
if (n ===
|
|
92
|
+
if (n === Yr) {
|
|
93
93
|
if (t === 0) return r;
|
|
94
94
|
t -= 1;
|
|
95
|
-
} else (n ===
|
|
95
|
+
} else (n === Zr || n === fr) && (t += 1);
|
|
96
96
|
}
|
|
97
97
|
var i = (
|
|
98
98
|
/** @type {TemplateNode} */
|
|
99
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ ce(r)
|
|
100
100
|
);
|
|
101
101
|
e && r.remove(), r = i;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
function
|
|
105
|
-
if (!e || e.nodeType !==
|
|
106
|
-
throw
|
|
104
|
+
function Wi(e) {
|
|
105
|
+
if (!e || e.nodeType !== lt)
|
|
106
|
+
throw It(), Me;
|
|
107
107
|
return (
|
|
108
108
|
/** @type {Comment} */
|
|
109
109
|
e.data
|
|
110
110
|
);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function nn(e) {
|
|
113
113
|
return e === this.v;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function sn(e, t) {
|
|
116
116
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
117
117
|
}
|
|
118
|
-
function
|
|
119
|
-
return !
|
|
118
|
+
function zi(e) {
|
|
119
|
+
return !sn(e, this.v);
|
|
120
120
|
}
|
|
121
|
-
let
|
|
122
|
-
function
|
|
123
|
-
|
|
121
|
+
let qi = !1, W = null;
|
|
122
|
+
function ke(e) {
|
|
123
|
+
W = e;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
127
|
-
p:
|
|
125
|
+
function an(e, t = !1, r) {
|
|
126
|
+
W = {
|
|
127
|
+
p: W,
|
|
128
128
|
i: !1,
|
|
129
129
|
c: null,
|
|
130
130
|
e: null,
|
|
@@ -133,55 +133,55 @@ function Jr(e, t = !1, r) {
|
|
|
133
133
|
l: null
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function on(e) {
|
|
137
137
|
var t = (
|
|
138
138
|
/** @type {ComponentContext} */
|
|
139
|
-
|
|
139
|
+
W
|
|
140
140
|
), r = t.e;
|
|
141
141
|
if (r !== null) {
|
|
142
142
|
t.e = null;
|
|
143
143
|
for (var n of r)
|
|
144
|
-
|
|
144
|
+
An(n);
|
|
145
145
|
}
|
|
146
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
146
|
+
return e !== void 0 && (t.x = e), t.i = !0, W = t.p, e ?? /** @type {T} */
|
|
147
147
|
{};
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function un() {
|
|
150
150
|
return !0;
|
|
151
151
|
}
|
|
152
|
-
let
|
|
153
|
-
function
|
|
154
|
-
var e =
|
|
155
|
-
|
|
152
|
+
let xe = [];
|
|
153
|
+
function ln() {
|
|
154
|
+
var e = xe;
|
|
155
|
+
xe = [], Qr(e);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
if (
|
|
159
|
-
var t =
|
|
157
|
+
function vr(e) {
|
|
158
|
+
if (xe.length === 0 && !Ke) {
|
|
159
|
+
var t = xe;
|
|
160
160
|
queueMicrotask(() => {
|
|
161
|
-
t ===
|
|
161
|
+
t === xe && ln();
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
|
|
164
|
+
xe.push(e);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
for (;
|
|
168
|
-
|
|
166
|
+
function Zi() {
|
|
167
|
+
for (; xe.length > 0; )
|
|
168
|
+
ln();
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function fn(e) {
|
|
171
171
|
var t = b;
|
|
172
172
|
if (t === null)
|
|
173
|
-
return _.f |=
|
|
174
|
-
if (t.f &
|
|
175
|
-
|
|
173
|
+
return _.f |= ve, e;
|
|
174
|
+
if (t.f & Ct)
|
|
175
|
+
De(e, t);
|
|
176
176
|
else {
|
|
177
|
-
if (!(t.f &
|
|
177
|
+
if (!(t.f & hr))
|
|
178
178
|
throw e;
|
|
179
179
|
t.b.error(e);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function De(e, t) {
|
|
183
183
|
for (; t !== null; ) {
|
|
184
|
-
if (t.f &
|
|
184
|
+
if (t.f & hr)
|
|
185
185
|
try {
|
|
186
186
|
t.b.error(e);
|
|
187
187
|
return;
|
|
@@ -192,26 +192,26 @@ function $e(e, t) {
|
|
|
192
192
|
}
|
|
193
193
|
throw e;
|
|
194
194
|
}
|
|
195
|
-
const
|
|
195
|
+
const Yi = -7169;
|
|
196
196
|
function B(e, t) {
|
|
197
|
-
e.f = e.f &
|
|
197
|
+
e.f = e.f & Yi | t;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
200
|
-
e.f &
|
|
199
|
+
function _r(e) {
|
|
200
|
+
e.f & X || e.deps === null ? B(e, I) : B(e, he);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function hn(e) {
|
|
203
203
|
if (e !== null)
|
|
204
204
|
for (const t of e)
|
|
205
|
-
!(t.f &
|
|
205
|
+
!(t.f & C) || !(t.f & He) || (t.f ^= He, hn(
|
|
206
206
|
/** @type {Derived} */
|
|
207
207
|
t.deps
|
|
208
208
|
));
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
e.f &
|
|
210
|
+
function cn(e, t, r) {
|
|
211
|
+
e.f & L ? t.add(e) : e.f & he && r.add(e), hn(e.deps), B(e, I);
|
|
212
212
|
}
|
|
213
|
-
const
|
|
214
|
-
let
|
|
213
|
+
const pt = /* @__PURE__ */ new Set();
|
|
214
|
+
let H = null, z = null, V = [], Rt = null, Zt = !1, Ke = !1;
|
|
215
215
|
class q {
|
|
216
216
|
committed = !1;
|
|
217
217
|
/**
|
|
@@ -276,11 +276,11 @@ class q {
|
|
|
276
276
|
* @param {Effect[]} root_effects
|
|
277
277
|
*/
|
|
278
278
|
process(t) {
|
|
279
|
-
|
|
279
|
+
V = [], this.apply();
|
|
280
280
|
var r = [], n = [];
|
|
281
281
|
for (const i of t)
|
|
282
282
|
this.#o(i, r, n);
|
|
283
|
-
this.is_fork || this.#l(), this.is_deferred() ? (this.#u(n), this.#u(r)) : (
|
|
283
|
+
this.is_fork || this.#l(), this.is_deferred() ? (this.#u(n), this.#u(r)) : (H = null, Sr(n), Sr(r), this.#a?.resolve()), z = null;
|
|
284
284
|
}
|
|
285
285
|
/**
|
|
286
286
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -290,11 +290,11 @@ class q {
|
|
|
290
290
|
* @param {Effect[]} render_effects
|
|
291
291
|
*/
|
|
292
292
|
#o(t, r, n) {
|
|
293
|
-
t.f ^=
|
|
293
|
+
t.f ^= I;
|
|
294
294
|
for (var i = t.first, s = null; i !== null; ) {
|
|
295
|
-
var a = i.f, o = (a & (
|
|
295
|
+
var a = i.f, o = (a & (fe | be)) !== 0, u = o && (a & I) !== 0, l = u || (a & ee) !== 0 || this.skipped_effects.has(i);
|
|
296
296
|
if (!l && i.fn !== null) {
|
|
297
|
-
o ? i.f ^=
|
|
297
|
+
o ? i.f ^= I : s !== null && a & (Tt | ut | Kr) ? s.b.defer_effect(i) : a & Tt ? r.push(i) : ht(i) && (a & le && this.#i.add(i), it(i));
|
|
298
298
|
var f = i.first;
|
|
299
299
|
if (f !== null) {
|
|
300
300
|
i = f;
|
|
@@ -311,7 +311,7 @@ class q {
|
|
|
311
311
|
*/
|
|
312
312
|
#u(t) {
|
|
313
313
|
for (var r = 0; r < t.length; r += 1)
|
|
314
|
-
|
|
314
|
+
cn(t[r], this.#i, this.#n);
|
|
315
315
|
}
|
|
316
316
|
/**
|
|
317
317
|
* Associate a change to a given source with the current
|
|
@@ -320,17 +320,17 @@ class q {
|
|
|
320
320
|
* @param {any} value
|
|
321
321
|
*/
|
|
322
322
|
capture(t, r) {
|
|
323
|
-
r !==
|
|
323
|
+
r !== O && !this.previous.has(t) && this.previous.set(t, r), t.f & ve || (this.current.set(t, t.v), z?.set(t, t.v));
|
|
324
324
|
}
|
|
325
325
|
activate() {
|
|
326
|
-
|
|
326
|
+
H = this, this.apply();
|
|
327
327
|
}
|
|
328
328
|
deactivate() {
|
|
329
|
-
|
|
329
|
+
H === this && (H = null, z = null);
|
|
330
330
|
}
|
|
331
331
|
flush() {
|
|
332
|
-
if (this.activate(),
|
|
333
|
-
if (
|
|
332
|
+
if (this.activate(), V.length > 0) {
|
|
333
|
+
if (dn(), H !== null && H !== this)
|
|
334
334
|
return;
|
|
335
335
|
} else this.#r === 0 && this.process([]);
|
|
336
336
|
this.deactivate();
|
|
@@ -347,10 +347,10 @@ class q {
|
|
|
347
347
|
this.#r === 0 && this.#f();
|
|
348
348
|
}
|
|
349
349
|
#f() {
|
|
350
|
-
if (
|
|
350
|
+
if (pt.size > 1) {
|
|
351
351
|
this.previous.clear();
|
|
352
|
-
var t =
|
|
353
|
-
for (const i of
|
|
352
|
+
var t = z, r = !0;
|
|
353
|
+
for (const i of pt) {
|
|
354
354
|
if (i === this) {
|
|
355
355
|
r = !1;
|
|
356
356
|
continue;
|
|
@@ -368,23 +368,23 @@ class q {
|
|
|
368
368
|
continue;
|
|
369
369
|
const a = [...i.current.keys()].filter((o) => !this.current.has(o));
|
|
370
370
|
if (a.length > 0) {
|
|
371
|
-
var n =
|
|
372
|
-
|
|
371
|
+
var n = V;
|
|
372
|
+
V = [];
|
|
373
373
|
const o = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
|
|
374
374
|
for (const l of s)
|
|
375
|
-
|
|
376
|
-
if (
|
|
377
|
-
|
|
378
|
-
for (const l of
|
|
375
|
+
pn(l, a, o, u);
|
|
376
|
+
if (V.length > 0) {
|
|
377
|
+
H = i, i.apply();
|
|
378
|
+
for (const l of V)
|
|
379
379
|
i.#o(l, [], []);
|
|
380
380
|
i.deactivate();
|
|
381
381
|
}
|
|
382
|
-
|
|
382
|
+
V = n;
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
|
|
385
|
+
H = null, z = t;
|
|
386
386
|
}
|
|
387
|
-
this.committed = !0,
|
|
387
|
+
this.committed = !0, pt.delete(this);
|
|
388
388
|
}
|
|
389
389
|
/**
|
|
390
390
|
*
|
|
@@ -402,9 +402,9 @@ class q {
|
|
|
402
402
|
}
|
|
403
403
|
revive() {
|
|
404
404
|
for (const t of this.#i)
|
|
405
|
-
this.#n.delete(t), B(t,
|
|
405
|
+
this.#n.delete(t), B(t, L), oe(t);
|
|
406
406
|
for (const t of this.#n)
|
|
407
|
-
B(t,
|
|
407
|
+
B(t, he), oe(t);
|
|
408
408
|
this.flush();
|
|
409
409
|
}
|
|
410
410
|
/** @param {() => void} fn */
|
|
@@ -416,112 +416,112 @@ class q {
|
|
|
416
416
|
this.#t.add(t);
|
|
417
417
|
}
|
|
418
418
|
settled() {
|
|
419
|
-
return (this.#a ??=
|
|
419
|
+
return (this.#a ??= Jr()).promise;
|
|
420
420
|
}
|
|
421
421
|
static ensure() {
|
|
422
|
-
if (
|
|
423
|
-
const t =
|
|
424
|
-
|
|
425
|
-
|
|
422
|
+
if (H === null) {
|
|
423
|
+
const t = H = new q();
|
|
424
|
+
pt.add(H), Ke || q.enqueue(() => {
|
|
425
|
+
H === t && t.flush();
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
|
-
return
|
|
428
|
+
return H;
|
|
429
429
|
}
|
|
430
430
|
/** @param {() => void} task */
|
|
431
431
|
static enqueue(t) {
|
|
432
|
-
|
|
432
|
+
vr(t);
|
|
433
433
|
}
|
|
434
434
|
apply() {
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
function
|
|
438
|
-
var t =
|
|
439
|
-
|
|
437
|
+
function Ye(e) {
|
|
438
|
+
var t = Ke;
|
|
439
|
+
Ke = !0;
|
|
440
440
|
try {
|
|
441
441
|
for (var r; ; ) {
|
|
442
|
-
if (
|
|
443
|
-
return
|
|
442
|
+
if (Zi(), V.length === 0 && (H?.flush(), V.length === 0))
|
|
443
|
+
return Rt = null, /** @type {T} */
|
|
444
444
|
r;
|
|
445
|
-
|
|
445
|
+
dn();
|
|
446
446
|
}
|
|
447
447
|
} finally {
|
|
448
|
-
|
|
448
|
+
Ke = t;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
function
|
|
452
|
-
var e =
|
|
453
|
-
|
|
451
|
+
function dn() {
|
|
452
|
+
var e = Te;
|
|
453
|
+
Zt = !0;
|
|
454
454
|
var t = null;
|
|
455
455
|
try {
|
|
456
456
|
var r = 0;
|
|
457
|
-
for (
|
|
457
|
+
for (At(!0); V.length > 0; ) {
|
|
458
458
|
var n = q.ensure();
|
|
459
459
|
if (r++ > 1e3) {
|
|
460
460
|
var i, s;
|
|
461
|
-
|
|
461
|
+
Qi();
|
|
462
462
|
}
|
|
463
|
-
n.process(
|
|
463
|
+
n.process(V), _e.clear();
|
|
464
464
|
}
|
|
465
465
|
} finally {
|
|
466
|
-
|
|
466
|
+
Zt = !1, At(e), Rt = null;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Qi() {
|
|
470
470
|
try {
|
|
471
|
-
|
|
471
|
+
ki();
|
|
472
472
|
} catch (e) {
|
|
473
|
-
|
|
473
|
+
De(e, Rt);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
let
|
|
477
|
-
function
|
|
476
|
+
let ne = null;
|
|
477
|
+
function Sr(e) {
|
|
478
478
|
var t = e.length;
|
|
479
479
|
if (t !== 0) {
|
|
480
480
|
for (var r = 0; r < t; ) {
|
|
481
481
|
var n = e[r++];
|
|
482
|
-
if (!(n.f & (
|
|
483
|
-
|
|
484
|
-
for (const i of
|
|
485
|
-
if (i.f & (
|
|
482
|
+
if (!(n.f & (se | ee)) && ht(n) && (ne = /* @__PURE__ */ new Set(), it(n), n.deps === null && n.first === null && n.nodes === null && (n.teardown === null && n.ac === null ? Cn(n) : n.fn = null), ne?.size > 0)) {
|
|
483
|
+
_e.clear();
|
|
484
|
+
for (const i of ne) {
|
|
485
|
+
if (i.f & (se | ee)) continue;
|
|
486
486
|
const s = [i];
|
|
487
487
|
let a = i.parent;
|
|
488
488
|
for (; a !== null; )
|
|
489
|
-
|
|
489
|
+
ne.has(a) && (ne.delete(a), s.push(a)), a = a.parent;
|
|
490
490
|
for (let o = s.length - 1; o >= 0; o--) {
|
|
491
491
|
const u = s[o];
|
|
492
|
-
u.f & (
|
|
492
|
+
u.f & (se | ee) || it(u);
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
|
|
495
|
+
ne.clear();
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
|
|
498
|
+
ne = null;
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function pn(e, t, r, n) {
|
|
502
502
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
503
503
|
for (const i of e.reactions) {
|
|
504
504
|
const s = i.f;
|
|
505
|
-
s &
|
|
505
|
+
s & C ? pn(
|
|
506
506
|
/** @type {Derived} */
|
|
507
507
|
i,
|
|
508
508
|
t,
|
|
509
509
|
r,
|
|
510
510
|
n
|
|
511
|
-
) : s & (
|
|
511
|
+
) : s & (cr | le) && !(s & L) && vn(i, t, n) && (B(i, L), oe(
|
|
512
512
|
/** @type {Effect} */
|
|
513
513
|
i
|
|
514
514
|
));
|
|
515
515
|
}
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function vn(e, t, r) {
|
|
518
518
|
const n = r.get(e);
|
|
519
519
|
if (n !== void 0) return n;
|
|
520
520
|
if (e.deps !== null)
|
|
521
521
|
for (const i of e.deps) {
|
|
522
522
|
if (t.includes(i))
|
|
523
523
|
return !0;
|
|
524
|
-
if (i.f &
|
|
524
|
+
if (i.f & C && vn(
|
|
525
525
|
/** @type {Derived} */
|
|
526
526
|
i,
|
|
527
527
|
t,
|
|
@@ -535,41 +535,41 @@ function un(e, t, r) {
|
|
|
535
535
|
}
|
|
536
536
|
return r.set(e, !1), !1;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
for (var t =
|
|
538
|
+
function oe(e) {
|
|
539
|
+
for (var t = Rt = e; t.parent !== null; ) {
|
|
540
540
|
t = t.parent;
|
|
541
541
|
var r = t.f;
|
|
542
|
-
if (
|
|
542
|
+
if (Zt && t === b && r & le && !(r & en))
|
|
543
543
|
return;
|
|
544
|
-
if (r & (
|
|
545
|
-
if (!(r &
|
|
546
|
-
t.f ^=
|
|
544
|
+
if (r & (be | fe)) {
|
|
545
|
+
if (!(r & I)) return;
|
|
546
|
+
t.f ^= I;
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
|
-
|
|
549
|
+
V.push(t);
|
|
550
550
|
}
|
|
551
|
-
function
|
|
552
|
-
let t = 0, r =
|
|
551
|
+
function Ji(e) {
|
|
552
|
+
let t = 0, r = ft(0), n;
|
|
553
553
|
return () => {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
t -= 1, t === 0 && (n?.(), n = void 0,
|
|
554
|
+
gr() && (g(r), Bn(() => (t === 0 && (n = jn(() => e(() => et(r)))), t += 1, () => {
|
|
555
|
+
vr(() => {
|
|
556
|
+
t -= 1, t === 0 && (n?.(), n = void 0, et(r));
|
|
557
557
|
});
|
|
558
558
|
})));
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
|
-
var
|
|
562
|
-
function
|
|
563
|
-
new
|
|
561
|
+
var Ki = $e | Be | hr;
|
|
562
|
+
function es(e, t, r) {
|
|
563
|
+
new ts(e, t, r);
|
|
564
564
|
}
|
|
565
|
-
class
|
|
565
|
+
class ts {
|
|
566
566
|
/** @type {Boundary | null} */
|
|
567
567
|
parent;
|
|
568
568
|
is_pending = !1;
|
|
569
569
|
/** @type {TemplateNode} */
|
|
570
570
|
#e;
|
|
571
571
|
/** @type {TemplateNode | null} */
|
|
572
|
-
#t = A ?
|
|
572
|
+
#t = A ? x : null;
|
|
573
573
|
/** @type {BoundaryProps} */
|
|
574
574
|
#r;
|
|
575
575
|
/** @type {((anchor: Node) => void)} */
|
|
@@ -601,7 +601,7 @@ class Xi {
|
|
|
601
601
|
* @type {Source<number> | null}
|
|
602
602
|
*/
|
|
603
603
|
#c = null;
|
|
604
|
-
#y =
|
|
604
|
+
#y = Ji(() => (this.#c = ft(this.#f), () => {
|
|
605
605
|
this.#c = null;
|
|
606
606
|
}));
|
|
607
607
|
/**
|
|
@@ -611,16 +611,16 @@ class Xi {
|
|
|
611
611
|
*/
|
|
612
612
|
constructor(t, r, n) {
|
|
613
613
|
this.#e = t, this.#r = r, this.#s = n, this.parent = /** @type {Effect} */
|
|
614
|
-
b.b, this.is_pending = !!this.#r.pending, this.#a =
|
|
614
|
+
b.b, this.is_pending = !!this.#r.pending, this.#a = Nn(() => {
|
|
615
615
|
if (b.b = this, A) {
|
|
616
616
|
const s = this.#t;
|
|
617
|
-
|
|
618
|
-
s.nodeType ===
|
|
619
|
-
s.data ===
|
|
617
|
+
pr(), /** @type {Comment} */
|
|
618
|
+
s.nodeType === lt && /** @type {Comment} */
|
|
619
|
+
s.data === fr ? this.#x() : (this.#E(), this.#h === 0 && (this.is_pending = !1));
|
|
620
620
|
} else {
|
|
621
621
|
var i = this.#b();
|
|
622
622
|
try {
|
|
623
|
-
this.#i =
|
|
623
|
+
this.#i = ie(() => n(i));
|
|
624
624
|
} catch (s) {
|
|
625
625
|
this.error(s);
|
|
626
626
|
}
|
|
@@ -629,20 +629,20 @@ class Xi {
|
|
|
629
629
|
return () => {
|
|
630
630
|
this.#l?.remove();
|
|
631
631
|
};
|
|
632
|
-
},
|
|
632
|
+
}, Ki), A && (this.#e = x);
|
|
633
633
|
}
|
|
634
634
|
#E() {
|
|
635
635
|
try {
|
|
636
|
-
this.#i =
|
|
636
|
+
this.#i = ie(() => this.#s(this.#e));
|
|
637
637
|
} catch (t) {
|
|
638
638
|
this.error(t);
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
#x() {
|
|
642
642
|
const t = this.#r.pending;
|
|
643
|
-
t && (this.#n =
|
|
643
|
+
t && (this.#n = ie(() => t(this.#e)), q.enqueue(() => {
|
|
644
644
|
var r = this.#b();
|
|
645
|
-
this.#i = this.#_(() => (q.ensure(),
|
|
645
|
+
this.#i = this.#_(() => (q.ensure(), ie(() => this.#s(r)))), this.#h > 0 ? this.#m() : (tt(
|
|
646
646
|
/** @type {Effect} */
|
|
647
647
|
this.#n,
|
|
648
648
|
() => {
|
|
@@ -653,14 +653,14 @@ class Xi {
|
|
|
653
653
|
}
|
|
654
654
|
#b() {
|
|
655
655
|
var t = this.#e;
|
|
656
|
-
return this.is_pending && (this.#l =
|
|
656
|
+
return this.is_pending && (this.#l = ue(), this.#e.before(this.#l), t = this.#l), t;
|
|
657
657
|
}
|
|
658
658
|
/**
|
|
659
659
|
* Defer an effect inside a pending boundary until the boundary resolves
|
|
660
660
|
* @param {Effect} effect
|
|
661
661
|
*/
|
|
662
662
|
defer_effect(t) {
|
|
663
|
-
|
|
663
|
+
cn(t, this.#p, this.#v);
|
|
664
664
|
}
|
|
665
665
|
/**
|
|
666
666
|
* Returns `false` if the effect exists inside a boundary whose pending snippet is shown
|
|
@@ -676,14 +676,14 @@ class Xi {
|
|
|
676
676
|
* @param {() => Effect | null} fn
|
|
677
677
|
*/
|
|
678
678
|
#_(t) {
|
|
679
|
-
var r = b, n = _, i =
|
|
680
|
-
|
|
679
|
+
var r = b, n = _, i = W;
|
|
680
|
+
te(this.#a), $(this.#a), ke(this.#a.ctx);
|
|
681
681
|
try {
|
|
682
682
|
return t();
|
|
683
683
|
} catch (s) {
|
|
684
|
-
return
|
|
684
|
+
return fn(s), null;
|
|
685
685
|
} finally {
|
|
686
|
-
|
|
686
|
+
te(r), $(n), ke(i);
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
689
|
#m() {
|
|
@@ -694,7 +694,7 @@ class Xi {
|
|
|
694
694
|
this.#i !== null && (this.#u = document.createDocumentFragment(), this.#u.append(
|
|
695
695
|
/** @type {TemplateNode} */
|
|
696
696
|
this.#l
|
|
697
|
-
),
|
|
697
|
+
), Ln(this.#i, this.#u)), this.#n === null && (this.#n = ie(() => t(this.#e)));
|
|
698
698
|
}
|
|
699
699
|
/**
|
|
700
700
|
* Updates the pending count associated with the currently visible pending snippet,
|
|
@@ -709,10 +709,10 @@ class Xi {
|
|
|
709
709
|
if (this.#h += t, this.#h === 0) {
|
|
710
710
|
this.is_pending = !1;
|
|
711
711
|
for (const r of this.#p)
|
|
712
|
-
B(r,
|
|
712
|
+
B(r, L), oe(r);
|
|
713
713
|
for (const r of this.#v)
|
|
714
|
-
B(r,
|
|
715
|
-
this.#p.clear(), this.#v.clear(), this.#n &&
|
|
714
|
+
B(r, he), oe(r);
|
|
715
|
+
this.#p.clear(), this.#v.clear(), this.#n && tt(this.#n, () => {
|
|
716
716
|
this.#n = null;
|
|
717
717
|
}), this.#u && (this.#e.before(this.#u), this.#u = null);
|
|
718
718
|
}
|
|
@@ -724,7 +724,7 @@ class Xi {
|
|
|
724
724
|
* @param {1 | -1} d
|
|
725
725
|
*/
|
|
726
726
|
update_pending_count(t) {
|
|
727
|
-
this.#g(t), this.#f += t, this.#c &&
|
|
727
|
+
this.#g(t), this.#f += t, this.#c && Ht(this.#c, this.#f);
|
|
728
728
|
}
|
|
729
729
|
get_effect_pending() {
|
|
730
730
|
return this.#y(), g(
|
|
@@ -738,33 +738,33 @@ class Xi {
|
|
|
738
738
|
let n = this.#r.failed;
|
|
739
739
|
if (this.#d || !r && !n)
|
|
740
740
|
throw t;
|
|
741
|
-
this.#i && (
|
|
741
|
+
this.#i && (k(this.#i), this.#i = null), this.#n && (k(this.#n), this.#n = null), this.#o && (k(this.#o), this.#o = null), A && (Y(
|
|
742
742
|
/** @type {TemplateNode} */
|
|
743
743
|
this.#t
|
|
744
|
-
),
|
|
744
|
+
), Xi(), Y(rn()));
|
|
745
745
|
var i = !1, s = !1;
|
|
746
746
|
const a = () => {
|
|
747
747
|
if (i) {
|
|
748
|
-
|
|
748
|
+
Vi();
|
|
749
749
|
return;
|
|
750
750
|
}
|
|
751
|
-
i = !0, s &&
|
|
751
|
+
i = !0, s && ji(), q.ensure(), this.#f = 0, this.#o !== null && tt(this.#o, () => {
|
|
752
752
|
this.#o = null;
|
|
753
|
-
}), this.is_pending = this.has_pending_snippet(), this.#i = this.#_(() => (this.#d = !1,
|
|
753
|
+
}), this.is_pending = this.has_pending_snippet(), this.#i = this.#_(() => (this.#d = !1, ie(() => this.#s(this.#e)))), this.#h > 0 ? this.#m() : this.is_pending = !1;
|
|
754
754
|
};
|
|
755
755
|
var o = _;
|
|
756
756
|
try {
|
|
757
|
-
|
|
757
|
+
$(null), s = !0, r?.(t, a), s = !1;
|
|
758
758
|
} catch (u) {
|
|
759
|
-
|
|
759
|
+
De(u, this.#a && this.#a.parent);
|
|
760
760
|
} finally {
|
|
761
|
-
|
|
761
|
+
$(o);
|
|
762
762
|
}
|
|
763
|
-
n &&
|
|
763
|
+
n && vr(() => {
|
|
764
764
|
this.#o = this.#_(() => {
|
|
765
765
|
q.ensure(), this.#d = !0;
|
|
766
766
|
try {
|
|
767
|
-
return
|
|
767
|
+
return ie(() => {
|
|
768
768
|
n(
|
|
769
769
|
this.#e,
|
|
770
770
|
() => t,
|
|
@@ -772,7 +772,7 @@ class Xi {
|
|
|
772
772
|
);
|
|
773
773
|
});
|
|
774
774
|
} catch (u) {
|
|
775
|
-
return
|
|
775
|
+
return De(
|
|
776
776
|
u,
|
|
777
777
|
/** @type {Effect} */
|
|
778
778
|
this.#a.parent
|
|
@@ -784,27 +784,27 @@ class Xi {
|
|
|
784
784
|
});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
|
-
function
|
|
788
|
-
const i =
|
|
787
|
+
function rs(e, t, r, n) {
|
|
788
|
+
const i = mr;
|
|
789
789
|
if (r.length === 0 && e.length === 0) {
|
|
790
790
|
n(t.map(i));
|
|
791
791
|
return;
|
|
792
792
|
}
|
|
793
|
-
var s =
|
|
793
|
+
var s = H, a = (
|
|
794
794
|
/** @type {Effect} */
|
|
795
795
|
b
|
|
796
|
-
), o =
|
|
796
|
+
), o = ns();
|
|
797
797
|
function u() {
|
|
798
|
-
Promise.all(r.map((l) => /* @__PURE__ */
|
|
798
|
+
Promise.all(r.map((l) => /* @__PURE__ */ is(l))).then((l) => {
|
|
799
799
|
o();
|
|
800
800
|
try {
|
|
801
801
|
n([...t.map(i), ...l]);
|
|
802
802
|
} catch (f) {
|
|
803
|
-
a.f &
|
|
803
|
+
a.f & se || De(f, a);
|
|
804
804
|
}
|
|
805
|
-
s?.deactivate(),
|
|
805
|
+
s?.deactivate(), St();
|
|
806
806
|
}).catch((l) => {
|
|
807
|
-
|
|
807
|
+
De(l, a);
|
|
808
808
|
});
|
|
809
809
|
}
|
|
810
810
|
e.length > 0 ? Promise.all(e).then(() => {
|
|
@@ -812,37 +812,37 @@ function Wi(e, t, r, n) {
|
|
|
812
812
|
try {
|
|
813
813
|
return u();
|
|
814
814
|
} finally {
|
|
815
|
-
s?.deactivate(),
|
|
815
|
+
s?.deactivate(), St();
|
|
816
816
|
}
|
|
817
817
|
}) : u();
|
|
818
818
|
}
|
|
819
|
-
function
|
|
820
|
-
var e = b, t = _, r =
|
|
819
|
+
function ns() {
|
|
820
|
+
var e = b, t = _, r = W, n = H;
|
|
821
821
|
return function(s = !0) {
|
|
822
|
-
|
|
822
|
+
te(e), $(t), ke(r), s && n?.activate();
|
|
823
823
|
};
|
|
824
824
|
}
|
|
825
|
-
function
|
|
826
|
-
|
|
825
|
+
function St() {
|
|
826
|
+
te(null), $(null), ke(null);
|
|
827
827
|
}
|
|
828
828
|
// @__NO_SIDE_EFFECTS__
|
|
829
|
-
function
|
|
830
|
-
var t =
|
|
829
|
+
function mr(e) {
|
|
830
|
+
var t = C | L, r = _ !== null && _.f & C ? (
|
|
831
831
|
/** @type {Derived} */
|
|
832
832
|
_
|
|
833
833
|
) : null;
|
|
834
|
-
return b !== null && (b.f |=
|
|
835
|
-
ctx:
|
|
834
|
+
return b !== null && (b.f |= Be), {
|
|
835
|
+
ctx: W,
|
|
836
836
|
deps: null,
|
|
837
837
|
effects: null,
|
|
838
|
-
equals:
|
|
838
|
+
equals: nn,
|
|
839
839
|
f: t,
|
|
840
840
|
fn: e,
|
|
841
841
|
reactions: null,
|
|
842
842
|
rv: 0,
|
|
843
843
|
v: (
|
|
844
844
|
/** @type {V} */
|
|
845
|
-
|
|
845
|
+
O
|
|
846
846
|
),
|
|
847
847
|
wv: 0,
|
|
848
848
|
parent: r ?? b,
|
|
@@ -850,12 +850,12 @@ function pr(e) {
|
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
852
|
// @__NO_SIDE_EFFECTS__
|
|
853
|
-
function
|
|
853
|
+
function is(e, t, r) {
|
|
854
854
|
let n = (
|
|
855
855
|
/** @type {Effect | null} */
|
|
856
856
|
b
|
|
857
857
|
);
|
|
858
|
-
n === null &&
|
|
858
|
+
n === null && Ri();
|
|
859
859
|
var i = (
|
|
860
860
|
/** @type {Boundary} */
|
|
861
861
|
n.b
|
|
@@ -863,44 +863,44 @@ function zi(e, t, r) {
|
|
|
863
863
|
/** @type {Promise<V>} */
|
|
864
864
|
/** @type {unknown} */
|
|
865
865
|
void 0
|
|
866
|
-
), a =
|
|
866
|
+
), a = ft(
|
|
867
867
|
/** @type {V} */
|
|
868
|
-
|
|
868
|
+
O
|
|
869
869
|
), o = !_, u = /* @__PURE__ */ new Map();
|
|
870
|
-
return
|
|
871
|
-
var l =
|
|
870
|
+
return vs(() => {
|
|
871
|
+
var l = Jr();
|
|
872
872
|
s = l.promise;
|
|
873
873
|
try {
|
|
874
874
|
Promise.resolve(e()).then(l.resolve, l.reject).then(() => {
|
|
875
|
-
f ===
|
|
875
|
+
f === H && f.committed && f.deactivate(), St();
|
|
876
876
|
});
|
|
877
877
|
} catch (d) {
|
|
878
|
-
l.reject(d),
|
|
878
|
+
l.reject(d), St();
|
|
879
879
|
}
|
|
880
880
|
var f = (
|
|
881
881
|
/** @type {Batch} */
|
|
882
|
-
|
|
882
|
+
H
|
|
883
883
|
);
|
|
884
884
|
if (o) {
|
|
885
885
|
var c = i.is_rendered();
|
|
886
|
-
i.update_pending_count(1), f.increment(c), u.get(f)?.reject(
|
|
886
|
+
i.update_pending_count(1), f.increment(c), u.get(f)?.reject(Ie), u.delete(f), u.set(f, l);
|
|
887
887
|
}
|
|
888
888
|
const h = (d, p = void 0) => {
|
|
889
889
|
if (f.activate(), p)
|
|
890
|
-
p !==
|
|
890
|
+
p !== Ie && (a.f |= ve, Ht(a, p));
|
|
891
891
|
else {
|
|
892
|
-
a.f &
|
|
893
|
-
for (const [
|
|
894
|
-
if (u.delete(
|
|
895
|
-
|
|
892
|
+
a.f & ve && (a.f ^= ve), Ht(a, d);
|
|
893
|
+
for (const [E, T] of u) {
|
|
894
|
+
if (u.delete(E), E === f) break;
|
|
895
|
+
T.reject(Ie);
|
|
896
896
|
}
|
|
897
897
|
}
|
|
898
898
|
o && (i.update_pending_count(-1), f.decrement(c));
|
|
899
899
|
};
|
|
900
900
|
l.promise.then(h, (d) => h(null, d || "unknown"));
|
|
901
|
-
}),
|
|
901
|
+
}), Hn(() => {
|
|
902
902
|
for (const l of u.values())
|
|
903
|
-
l.reject(
|
|
903
|
+
l.reject(Ie);
|
|
904
904
|
}), new Promise((l) => {
|
|
905
905
|
function f(c) {
|
|
906
906
|
function h() {
|
|
@@ -912,25 +912,25 @@ function zi(e, t, r) {
|
|
|
912
912
|
});
|
|
913
913
|
}
|
|
914
914
|
// @__NO_SIDE_EFFECTS__
|
|
915
|
-
function
|
|
916
|
-
const t = /* @__PURE__ */
|
|
917
|
-
return
|
|
915
|
+
function vt(e) {
|
|
916
|
+
const t = /* @__PURE__ */ mr(e);
|
|
917
|
+
return Mn(t), t;
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function _n(e) {
|
|
920
920
|
var t = e.effects;
|
|
921
921
|
if (t !== null) {
|
|
922
922
|
e.effects = null;
|
|
923
923
|
for (var r = 0; r < t.length; r += 1)
|
|
924
|
-
|
|
924
|
+
k(
|
|
925
925
|
/** @type {Effect} */
|
|
926
926
|
t[r]
|
|
927
927
|
);
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function ss(e) {
|
|
931
931
|
for (var t = e.parent; t !== null; ) {
|
|
932
|
-
if (!(t.f &
|
|
933
|
-
return t.f &
|
|
932
|
+
if (!(t.f & C))
|
|
933
|
+
return t.f & se ? null : (
|
|
934
934
|
/** @type {Effect} */
|
|
935
935
|
t
|
|
936
936
|
);
|
|
@@ -938,123 +938,123 @@ function Zi(e) {
|
|
|
938
938
|
}
|
|
939
939
|
return null;
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function br(e) {
|
|
942
942
|
var t, r = b;
|
|
943
|
-
|
|
943
|
+
te(ss(e));
|
|
944
944
|
try {
|
|
945
|
-
e.f &= ~
|
|
945
|
+
e.f &= ~He, _n(e), t = Un(e);
|
|
946
946
|
} finally {
|
|
947
|
-
|
|
947
|
+
te(r);
|
|
948
948
|
}
|
|
949
949
|
return t;
|
|
950
950
|
}
|
|
951
|
-
function
|
|
952
|
-
var t =
|
|
953
|
-
if (!e.equals(t) && (e.wv =
|
|
954
|
-
B(e,
|
|
951
|
+
function mn(e) {
|
|
952
|
+
var t = br(e);
|
|
953
|
+
if (!e.equals(t) && (e.wv = kn(), (!H?.is_fork || e.deps === null) && (e.v = t, e.deps === null))) {
|
|
954
|
+
B(e, I);
|
|
955
955
|
return;
|
|
956
956
|
}
|
|
957
|
-
|
|
957
|
+
me || (z !== null ? (gr() || H?.is_fork) && z.set(e, t) : _r(e));
|
|
958
958
|
}
|
|
959
|
-
let
|
|
960
|
-
const
|
|
961
|
-
let
|
|
962
|
-
function
|
|
959
|
+
let Yt = /* @__PURE__ */ new Set();
|
|
960
|
+
const _e = /* @__PURE__ */ new Map();
|
|
961
|
+
let bn = !1;
|
|
962
|
+
function ft(e, t) {
|
|
963
963
|
var r = {
|
|
964
964
|
f: 0,
|
|
965
965
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
966
966
|
v: e,
|
|
967
967
|
reactions: null,
|
|
968
|
-
equals:
|
|
968
|
+
equals: nn,
|
|
969
969
|
rv: 0,
|
|
970
970
|
wv: 0
|
|
971
971
|
};
|
|
972
972
|
return r;
|
|
973
973
|
}
|
|
974
974
|
// @__NO_SIDE_EFFECTS__
|
|
975
|
-
function
|
|
976
|
-
const r =
|
|
977
|
-
return
|
|
975
|
+
function j(e, t) {
|
|
976
|
+
const r = ft(e);
|
|
977
|
+
return Mn(r), r;
|
|
978
978
|
}
|
|
979
979
|
// @__NO_SIDE_EFFECTS__
|
|
980
|
-
function
|
|
981
|
-
const n =
|
|
982
|
-
return t || (n.equals =
|
|
980
|
+
function gn(e, t = !1, r = !0) {
|
|
981
|
+
const n = ft(e);
|
|
982
|
+
return t || (n.equals = zi), n;
|
|
983
983
|
}
|
|
984
|
-
function
|
|
984
|
+
function P(e, t, r = !1) {
|
|
985
985
|
_ !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
986
986
|
// to ensure we error if state is set inside an inspect effect
|
|
987
|
-
(!
|
|
988
|
-
let n = r ?
|
|
989
|
-
return
|
|
987
|
+
(!Z || _.f & Tr) && un() && _.f & (C | le | cr | Tr) && !ae?.includes(e) && Gi();
|
|
988
|
+
let n = r ? Qe(t) : t;
|
|
989
|
+
return Ht(e, n);
|
|
990
990
|
}
|
|
991
|
-
function
|
|
991
|
+
function Ht(e, t) {
|
|
992
992
|
if (!e.equals(t)) {
|
|
993
993
|
var r = e.v;
|
|
994
|
-
|
|
994
|
+
me ? _e.set(e, t) : _e.set(e, r), e.v = t;
|
|
995
995
|
var n = q.ensure();
|
|
996
|
-
if (n.capture(e, r), e.f &
|
|
996
|
+
if (n.capture(e, r), e.f & C) {
|
|
997
997
|
const i = (
|
|
998
998
|
/** @type {Derived} */
|
|
999
999
|
e
|
|
1000
1000
|
);
|
|
1001
|
-
e.f &
|
|
1001
|
+
e.f & L && br(i), _r(i);
|
|
1002
1002
|
}
|
|
1003
|
-
e.wv =
|
|
1003
|
+
e.wv = kn(), yn(e, L), b !== null && b.f & I && !(b.f & (fe | be)) && (G === null ? ys([e]) : G.push(e)), !n.is_fork && Yt.size > 0 && !bn && as();
|
|
1004
1004
|
}
|
|
1005
1005
|
return t;
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1008
|
-
|
|
1009
|
-
var e =
|
|
1010
|
-
|
|
1011
|
-
const t = Array.from(
|
|
1007
|
+
function as() {
|
|
1008
|
+
bn = !1;
|
|
1009
|
+
var e = Te;
|
|
1010
|
+
At(!0);
|
|
1011
|
+
const t = Array.from(Yt);
|
|
1012
1012
|
try {
|
|
1013
1013
|
for (const r of t)
|
|
1014
|
-
r.f &
|
|
1014
|
+
r.f & I && B(r, he), ht(r) && it(r);
|
|
1015
1015
|
} finally {
|
|
1016
|
-
|
|
1016
|
+
At(e);
|
|
1017
1017
|
}
|
|
1018
|
-
|
|
1018
|
+
Yt.clear();
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1021
|
-
|
|
1020
|
+
function et(e) {
|
|
1021
|
+
P(e, e.v + 1);
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function yn(e, t) {
|
|
1024
1024
|
var r = e.reactions;
|
|
1025
1025
|
if (r !== null)
|
|
1026
1026
|
for (var n = r.length, i = 0; i < n; i++) {
|
|
1027
|
-
var s = r[i], a = s.f, o = (a &
|
|
1028
|
-
if (o && B(s, t), a &
|
|
1027
|
+
var s = r[i], a = s.f, o = (a & L) === 0;
|
|
1028
|
+
if (o && B(s, t), a & C) {
|
|
1029
1029
|
var u = (
|
|
1030
1030
|
/** @type {Derived} */
|
|
1031
1031
|
s
|
|
1032
1032
|
);
|
|
1033
|
-
|
|
1034
|
-
} else o && (a &
|
|
1033
|
+
z?.delete(u), a & He || (a & X && (s.f |= He), yn(u, he));
|
|
1034
|
+
} else o && (a & le && ne !== null && ne.add(
|
|
1035
1035
|
/** @type {Effect} */
|
|
1036
1036
|
s
|
|
1037
|
-
),
|
|
1037
|
+
), oe(
|
|
1038
1038
|
/** @type {Effect} */
|
|
1039
1039
|
s
|
|
1040
1040
|
));
|
|
1041
1041
|
}
|
|
1042
1042
|
}
|
|
1043
|
-
function
|
|
1044
|
-
if (typeof e != "object" || e === null ||
|
|
1043
|
+
function Qe(e) {
|
|
1044
|
+
if (typeof e != "object" || e === null || Ut in e)
|
|
1045
1045
|
return e;
|
|
1046
|
-
const t =
|
|
1047
|
-
if (t !==
|
|
1046
|
+
const t = Ci(e);
|
|
1047
|
+
if (t !== Oi && t !== Pi)
|
|
1048
1048
|
return e;
|
|
1049
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
1050
|
-
if (
|
|
1049
|
+
var r = /* @__PURE__ */ new Map(), n = Ai(e), i = /* @__PURE__ */ j(0), s = Se, a = (o) => {
|
|
1050
|
+
if (Se === s)
|
|
1051
1051
|
return o();
|
|
1052
|
-
var u = _, l =
|
|
1053
|
-
|
|
1052
|
+
var u = _, l = Se;
|
|
1053
|
+
$(null), Or(s);
|
|
1054
1054
|
var f = o();
|
|
1055
|
-
return
|
|
1055
|
+
return $(u), Or(l), f;
|
|
1056
1056
|
};
|
|
1057
|
-
return n && r.set("length", /* @__PURE__ */
|
|
1057
|
+
return n && r.set("length", /* @__PURE__ */ j(
|
|
1058
1058
|
/** @type {any[]} */
|
|
1059
1059
|
e.length
|
|
1060
1060
|
)), new Proxy(
|
|
@@ -1062,34 +1062,34 @@ function We(e) {
|
|
|
1062
1062
|
e,
|
|
1063
1063
|
{
|
|
1064
1064
|
defineProperty(o, u, l) {
|
|
1065
|
-
(!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) &&
|
|
1065
|
+
(!("value" in l) || l.configurable === !1 || l.enumerable === !1 || l.writable === !1) && Ui();
|
|
1066
1066
|
var f = r.get(u);
|
|
1067
1067
|
return f === void 0 ? f = a(() => {
|
|
1068
|
-
var c = /* @__PURE__ */
|
|
1068
|
+
var c = /* @__PURE__ */ j(l.value);
|
|
1069
1069
|
return r.set(u, c), c;
|
|
1070
|
-
}) :
|
|
1070
|
+
}) : P(f, l.value, !0), !0;
|
|
1071
1071
|
},
|
|
1072
1072
|
deleteProperty(o, u) {
|
|
1073
1073
|
var l = r.get(u);
|
|
1074
1074
|
if (l === void 0) {
|
|
1075
1075
|
if (u in o) {
|
|
1076
|
-
const f = a(() => /* @__PURE__ */
|
|
1077
|
-
r.set(u, f),
|
|
1076
|
+
const f = a(() => /* @__PURE__ */ j(O));
|
|
1077
|
+
r.set(u, f), et(i);
|
|
1078
1078
|
}
|
|
1079
1079
|
} else
|
|
1080
|
-
|
|
1080
|
+
P(l, O), et(i);
|
|
1081
1081
|
return !0;
|
|
1082
1082
|
},
|
|
1083
1083
|
get(o, u, l) {
|
|
1084
|
-
if (u ===
|
|
1084
|
+
if (u === Ut)
|
|
1085
1085
|
return e;
|
|
1086
1086
|
var f = r.get(u), c = u in o;
|
|
1087
|
-
if (f === void 0 && (!c ||
|
|
1088
|
-
var d =
|
|
1087
|
+
if (f === void 0 && (!c || Le(o, u)?.writable) && (f = a(() => {
|
|
1088
|
+
var d = Qe(c ? o[u] : O), p = /* @__PURE__ */ j(d);
|
|
1089
1089
|
return p;
|
|
1090
1090
|
}), r.set(u, f)), f !== void 0) {
|
|
1091
1091
|
var h = g(f);
|
|
1092
|
-
return h ===
|
|
1092
|
+
return h === O ? void 0 : h;
|
|
1093
1093
|
}
|
|
1094
1094
|
return Reflect.get(o, u, l);
|
|
1095
1095
|
},
|
|
@@ -1100,7 +1100,7 @@ function We(e) {
|
|
|
1100
1100
|
f && (l.value = g(f));
|
|
1101
1101
|
} else if (l === void 0) {
|
|
1102
1102
|
var c = r.get(u), h = c?.v;
|
|
1103
|
-
if (c !== void 0 && h !==
|
|
1103
|
+
if (c !== void 0 && h !== O)
|
|
1104
1104
|
return {
|
|
1105
1105
|
enumerable: !0,
|
|
1106
1106
|
configurable: !0,
|
|
@@ -1111,16 +1111,16 @@ function We(e) {
|
|
|
1111
1111
|
return l;
|
|
1112
1112
|
},
|
|
1113
1113
|
has(o, u) {
|
|
1114
|
-
if (u ===
|
|
1114
|
+
if (u === Ut)
|
|
1115
1115
|
return !0;
|
|
1116
|
-
var l = r.get(u), f = l !== void 0 && l.v !==
|
|
1117
|
-
if (l !== void 0 || b !== null && (!f ||
|
|
1116
|
+
var l = r.get(u), f = l !== void 0 && l.v !== O || Reflect.has(o, u);
|
|
1117
|
+
if (l !== void 0 || b !== null && (!f || Le(o, u)?.writable)) {
|
|
1118
1118
|
l === void 0 && (l = a(() => {
|
|
1119
|
-
var h = f ?
|
|
1119
|
+
var h = f ? Qe(o[u]) : O, d = /* @__PURE__ */ j(h);
|
|
1120
1120
|
return d;
|
|
1121
1121
|
}), r.set(u, l));
|
|
1122
1122
|
var c = g(l);
|
|
1123
|
-
if (c ===
|
|
1123
|
+
if (c === O)
|
|
1124
1124
|
return !1;
|
|
1125
1125
|
}
|
|
1126
1126
|
return f;
|
|
@@ -1131,25 +1131,25 @@ function We(e) {
|
|
|
1131
1131
|
for (var d = l; d < /** @type {Source<number>} */
|
|
1132
1132
|
c.v; d += 1) {
|
|
1133
1133
|
var p = r.get(d + "");
|
|
1134
|
-
p !== void 0 ?
|
|
1134
|
+
p !== void 0 ? P(p, O) : d in o && (p = a(() => /* @__PURE__ */ j(O)), r.set(d + "", p));
|
|
1135
1135
|
}
|
|
1136
1136
|
if (c === void 0)
|
|
1137
|
-
(!h ||
|
|
1137
|
+
(!h || Le(o, u)?.writable) && (c = a(() => /* @__PURE__ */ j(void 0)), P(c, Qe(l)), r.set(u, c));
|
|
1138
1138
|
else {
|
|
1139
|
-
h = c.v !==
|
|
1140
|
-
var
|
|
1141
|
-
|
|
1139
|
+
h = c.v !== O;
|
|
1140
|
+
var E = a(() => Qe(l));
|
|
1141
|
+
P(c, E);
|
|
1142
1142
|
}
|
|
1143
|
-
var
|
|
1144
|
-
if (
|
|
1143
|
+
var T = Reflect.getOwnPropertyDescriptor(o, u);
|
|
1144
|
+
if (T?.set && T.set.call(f, l), !h) {
|
|
1145
1145
|
if (n && typeof u == "string") {
|
|
1146
|
-
var
|
|
1146
|
+
var J = (
|
|
1147
1147
|
/** @type {Source<number>} */
|
|
1148
1148
|
r.get("length")
|
|
1149
|
-
),
|
|
1150
|
-
Number.isInteger(
|
|
1149
|
+
), D = Number(u);
|
|
1150
|
+
Number.isInteger(D) && D >= J.v && P(J, D + 1);
|
|
1151
1151
|
}
|
|
1152
|
-
|
|
1152
|
+
et(i);
|
|
1153
1153
|
}
|
|
1154
1154
|
return !0;
|
|
1155
1155
|
},
|
|
@@ -1157,109 +1157,109 @@ function We(e) {
|
|
|
1157
1157
|
g(i);
|
|
1158
1158
|
var u = Reflect.ownKeys(o).filter((c) => {
|
|
1159
1159
|
var h = r.get(c);
|
|
1160
|
-
return h === void 0 || h.v !==
|
|
1160
|
+
return h === void 0 || h.v !== O;
|
|
1161
1161
|
});
|
|
1162
1162
|
for (var [l, f] of r)
|
|
1163
|
-
f.v !==
|
|
1163
|
+
f.v !== O && !(l in o) && u.push(l);
|
|
1164
1164
|
return u;
|
|
1165
1165
|
},
|
|
1166
1166
|
setPrototypeOf() {
|
|
1167
|
-
|
|
1167
|
+
Fi();
|
|
1168
1168
|
}
|
|
1169
1169
|
}
|
|
1170
1170
|
);
|
|
1171
1171
|
}
|
|
1172
|
-
var
|
|
1173
|
-
function
|
|
1174
|
-
if (
|
|
1175
|
-
|
|
1172
|
+
var Hr, En, xn, wn;
|
|
1173
|
+
function Qt() {
|
|
1174
|
+
if (Hr === void 0) {
|
|
1175
|
+
Hr = window, En = /Firefox/.test(navigator.userAgent);
|
|
1176
1176
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1177
|
-
|
|
1177
|
+
xn = Le(t, "firstChild").get, wn = Le(t, "nextSibling").get, wr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), wr(r) && (r.__t = void 0);
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1180
|
+
function ue(e = "") {
|
|
1181
1181
|
return document.createTextNode(e);
|
|
1182
1182
|
}
|
|
1183
1183
|
// @__NO_SIDE_EFFECTS__
|
|
1184
|
-
function
|
|
1184
|
+
function nt(e) {
|
|
1185
1185
|
return (
|
|
1186
1186
|
/** @type {TemplateNode | null} */
|
|
1187
|
-
|
|
1187
|
+
xn.call(e)
|
|
1188
1188
|
);
|
|
1189
1189
|
}
|
|
1190
1190
|
// @__NO_SIDE_EFFECTS__
|
|
1191
|
-
function
|
|
1191
|
+
function ce(e) {
|
|
1192
1192
|
return (
|
|
1193
1193
|
/** @type {TemplateNode | null} */
|
|
1194
|
-
|
|
1194
|
+
wn.call(e)
|
|
1195
1195
|
);
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function _t(e, t) {
|
|
1198
1198
|
if (!A)
|
|
1199
|
-
return /* @__PURE__ */
|
|
1200
|
-
var r = /* @__PURE__ */
|
|
1199
|
+
return /* @__PURE__ */ nt(e);
|
|
1200
|
+
var r = /* @__PURE__ */ nt(x);
|
|
1201
1201
|
if (r === null)
|
|
1202
|
-
r =
|
|
1203
|
-
else if (t && r.nodeType !==
|
|
1204
|
-
var n =
|
|
1205
|
-
return r?.before(n),
|
|
1202
|
+
r = x.appendChild(ue());
|
|
1203
|
+
else if (t && r.nodeType !== dr) {
|
|
1204
|
+
var n = ue();
|
|
1205
|
+
return r?.before(n), Y(n), n;
|
|
1206
1206
|
}
|
|
1207
|
-
return
|
|
1207
|
+
return Y(r), r;
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function Ar(e, t = !1) {
|
|
1210
1210
|
if (!A) {
|
|
1211
|
-
var r = /* @__PURE__ */
|
|
1212
|
-
return r instanceof Comment && r.data === "" ? /* @__PURE__ */
|
|
1211
|
+
var r = /* @__PURE__ */ nt(e);
|
|
1212
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ ce(r) : r;
|
|
1213
1213
|
}
|
|
1214
|
-
if (t &&
|
|
1215
|
-
var n =
|
|
1216
|
-
return
|
|
1214
|
+
if (t && x?.nodeType !== dr) {
|
|
1215
|
+
var n = ue();
|
|
1216
|
+
return x?.before(n), Y(n), n;
|
|
1217
1217
|
}
|
|
1218
|
-
return
|
|
1218
|
+
return x;
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1221
|
-
let n = A ?
|
|
1220
|
+
function os(e, t = 1, r = !1) {
|
|
1221
|
+
let n = A ? x : e;
|
|
1222
1222
|
for (var i; t--; )
|
|
1223
1223
|
i = n, n = /** @type {TemplateNode} */
|
|
1224
|
-
/* @__PURE__ */
|
|
1224
|
+
/* @__PURE__ */ ce(n);
|
|
1225
1225
|
if (!A)
|
|
1226
1226
|
return n;
|
|
1227
|
-
if (r && n?.nodeType !==
|
|
1228
|
-
var s =
|
|
1229
|
-
return n === null ? i?.after(s) : n.before(s),
|
|
1227
|
+
if (r && n?.nodeType !== dr) {
|
|
1228
|
+
var s = ue();
|
|
1229
|
+
return n === null ? i?.after(s) : n.before(s), Y(s), s;
|
|
1230
1230
|
}
|
|
1231
|
-
return
|
|
1231
|
+
return Y(n), n;
|
|
1232
1232
|
}
|
|
1233
|
-
function
|
|
1233
|
+
function us(e) {
|
|
1234
1234
|
e.textContent = "";
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1236
|
+
function ls() {
|
|
1237
1237
|
return !1;
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function Tn(e) {
|
|
1240
1240
|
var t = _, r = b;
|
|
1241
|
-
|
|
1241
|
+
$(null), te(null);
|
|
1242
1242
|
try {
|
|
1243
1243
|
return e();
|
|
1244
1244
|
} finally {
|
|
1245
|
-
|
|
1245
|
+
$(t), te(r);
|
|
1246
1246
|
}
|
|
1247
1247
|
}
|
|
1248
|
-
function
|
|
1249
|
-
b === null && (_ === null &&
|
|
1248
|
+
function Sn(e) {
|
|
1249
|
+
b === null && (_ === null && $i(), Mi()), me && Li();
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function fs(e, t) {
|
|
1252
1252
|
var r = t.last;
|
|
1253
1253
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1254
1254
|
}
|
|
1255
|
-
function
|
|
1255
|
+
function Q(e, t, r) {
|
|
1256
1256
|
var n = b;
|
|
1257
|
-
n !== null && n.f &
|
|
1257
|
+
n !== null && n.f & ee && (e |= ee);
|
|
1258
1258
|
var i = {
|
|
1259
|
-
ctx:
|
|
1259
|
+
ctx: W,
|
|
1260
1260
|
deps: null,
|
|
1261
1261
|
nodes: null,
|
|
1262
|
-
f: e |
|
|
1262
|
+
f: e | L | X,
|
|
1263
1263
|
first: null,
|
|
1264
1264
|
fn: t,
|
|
1265
1265
|
last: null,
|
|
@@ -1273,14 +1273,14 @@ function ee(e, t, r) {
|
|
|
1273
1273
|
};
|
|
1274
1274
|
if (r)
|
|
1275
1275
|
try {
|
|
1276
|
-
|
|
1276
|
+
it(i), i.f |= Ct;
|
|
1277
1277
|
} catch (o) {
|
|
1278
|
-
throw
|
|
1278
|
+
throw k(i), o;
|
|
1279
1279
|
}
|
|
1280
|
-
else t !== null &&
|
|
1280
|
+
else t !== null && oe(i);
|
|
1281
1281
|
var s = i;
|
|
1282
1282
|
if (r && s.deps === null && s.teardown === null && s.nodes === null && s.first === s.last && // either `null`, or a singular child
|
|
1283
|
-
!(s.f &
|
|
1283
|
+
!(s.f & Be) && (s = s.first, e & le && e & $e && s !== null && (s.f |= $e)), s !== null && (s.parent = n, n !== null && fs(s, n), _ !== null && _.f & C && !(e & be))) {
|
|
1284
1284
|
var a = (
|
|
1285
1285
|
/** @type {Derived} */
|
|
1286
1286
|
_
|
|
@@ -1289,127 +1289,130 @@ function ee(e, t, r) {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
return i;
|
|
1291
1291
|
}
|
|
1292
|
-
function
|
|
1293
|
-
return _ !== null && !
|
|
1292
|
+
function gr() {
|
|
1293
|
+
return _ !== null && !Z;
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1296
|
-
const t =
|
|
1297
|
-
return B(t,
|
|
1295
|
+
function Hn(e) {
|
|
1296
|
+
const t = Q(ut, null, !1);
|
|
1297
|
+
return B(t, I), t.teardown = e, t;
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1300
|
-
|
|
1299
|
+
function Br(e) {
|
|
1300
|
+
Sn();
|
|
1301
1301
|
var t = (
|
|
1302
1302
|
/** @type {Effect} */
|
|
1303
1303
|
b.f
|
|
1304
|
-
), r = !_ && (t &
|
|
1304
|
+
), r = !_ && (t & fe) !== 0 && (t & Ct) === 0;
|
|
1305
1305
|
if (r) {
|
|
1306
1306
|
var n = (
|
|
1307
1307
|
/** @type {ComponentContext} */
|
|
1308
|
-
|
|
1308
|
+
W
|
|
1309
1309
|
);
|
|
1310
1310
|
(n.e ??= []).push(e);
|
|
1311
1311
|
} else
|
|
1312
|
-
return
|
|
1312
|
+
return An(e);
|
|
1313
|
+
}
|
|
1314
|
+
function An(e) {
|
|
1315
|
+
return Q(Tt | tn, e, !1);
|
|
1313
1316
|
}
|
|
1314
|
-
function
|
|
1315
|
-
return
|
|
1317
|
+
function hs(e) {
|
|
1318
|
+
return Sn(), Q(ut | tn, e, !0);
|
|
1316
1319
|
}
|
|
1317
|
-
function
|
|
1320
|
+
function cs(e) {
|
|
1318
1321
|
q.ensure();
|
|
1319
|
-
const t =
|
|
1322
|
+
const t = Q(be | Be, e, !0);
|
|
1320
1323
|
return () => {
|
|
1321
|
-
|
|
1324
|
+
k(t);
|
|
1322
1325
|
};
|
|
1323
1326
|
}
|
|
1324
|
-
function
|
|
1327
|
+
function ds(e) {
|
|
1325
1328
|
q.ensure();
|
|
1326
|
-
const t =
|
|
1329
|
+
const t = Q(be | Be, e, !0);
|
|
1327
1330
|
return (r = {}) => new Promise((n) => {
|
|
1328
|
-
r.outro ?
|
|
1329
|
-
|
|
1330
|
-
}) : (
|
|
1331
|
+
r.outro ? tt(t, () => {
|
|
1332
|
+
k(t), n(void 0);
|
|
1333
|
+
}) : (k(t), n(void 0));
|
|
1331
1334
|
});
|
|
1332
1335
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return
|
|
1336
|
+
function ps(e) {
|
|
1337
|
+
return Q(Tt, e, !1);
|
|
1335
1338
|
}
|
|
1336
|
-
function
|
|
1337
|
-
return
|
|
1339
|
+
function vs(e) {
|
|
1340
|
+
return Q(cr | Be, e, !0);
|
|
1338
1341
|
}
|
|
1339
|
-
function
|
|
1340
|
-
return
|
|
1342
|
+
function Bn(e, t = 0) {
|
|
1343
|
+
return Q(ut | t, e, !0);
|
|
1341
1344
|
}
|
|
1342
|
-
function
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
+
function _s(e, t = [], r = [], n = []) {
|
|
1346
|
+
rs(n, t, r, (i) => {
|
|
1347
|
+
Q(ut, () => e(...i.map(g)), !0);
|
|
1345
1348
|
});
|
|
1346
1349
|
}
|
|
1347
|
-
function
|
|
1348
|
-
var r =
|
|
1350
|
+
function Nn(e, t = 0) {
|
|
1351
|
+
var r = Q(le | t, e, !0);
|
|
1349
1352
|
return r;
|
|
1350
1353
|
}
|
|
1351
|
-
function
|
|
1352
|
-
return
|
|
1354
|
+
function ie(e) {
|
|
1355
|
+
return Q(fe | Be, e, !0);
|
|
1353
1356
|
}
|
|
1354
|
-
function
|
|
1357
|
+
function On(e) {
|
|
1355
1358
|
var t = e.teardown;
|
|
1356
1359
|
if (t !== null) {
|
|
1357
|
-
const r =
|
|
1358
|
-
|
|
1360
|
+
const r = me, n = _;
|
|
1361
|
+
Nr(!0), $(null);
|
|
1359
1362
|
try {
|
|
1360
1363
|
t.call(null);
|
|
1361
1364
|
} finally {
|
|
1362
|
-
|
|
1365
|
+
Nr(r), $(n);
|
|
1363
1366
|
}
|
|
1364
1367
|
}
|
|
1365
1368
|
}
|
|
1366
|
-
function
|
|
1369
|
+
function Pn(e, t = !1) {
|
|
1367
1370
|
var r = e.first;
|
|
1368
1371
|
for (e.first = e.last = null; r !== null; ) {
|
|
1369
1372
|
const i = r.ac;
|
|
1370
|
-
i !== null &&
|
|
1371
|
-
i.abort(
|
|
1373
|
+
i !== null && Tn(() => {
|
|
1374
|
+
i.abort(Ie);
|
|
1372
1375
|
});
|
|
1373
1376
|
var n = r.next;
|
|
1374
|
-
r.f &
|
|
1377
|
+
r.f & be ? r.parent = null : k(r, t), r = n;
|
|
1375
1378
|
}
|
|
1376
1379
|
}
|
|
1377
|
-
function
|
|
1380
|
+
function ms(e) {
|
|
1378
1381
|
for (var t = e.first; t !== null; ) {
|
|
1379
1382
|
var r = t.next;
|
|
1380
|
-
t.f &
|
|
1383
|
+
t.f & fe || k(t), t = r;
|
|
1381
1384
|
}
|
|
1382
1385
|
}
|
|
1383
|
-
function
|
|
1386
|
+
function k(e, t = !0) {
|
|
1384
1387
|
var r = !1;
|
|
1385
|
-
(t || e.f &
|
|
1388
|
+
(t || e.f & en) && e.nodes !== null && e.nodes.end !== null && (bs(
|
|
1386
1389
|
e.nodes.start,
|
|
1387
1390
|
/** @type {TemplateNode} */
|
|
1388
1391
|
e.nodes.end
|
|
1389
|
-
), r = !0),
|
|
1392
|
+
), r = !0), Pn(e, t && !r), Bt(e, 0), B(e, se);
|
|
1390
1393
|
var n = e.nodes && e.nodes.t;
|
|
1391
1394
|
if (n !== null)
|
|
1392
1395
|
for (const s of n)
|
|
1393
1396
|
s.stop();
|
|
1394
|
-
|
|
1397
|
+
On(e);
|
|
1395
1398
|
var i = e.parent;
|
|
1396
|
-
i !== null && i.first !== null &&
|
|
1399
|
+
i !== null && i.first !== null && Cn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1397
1400
|
}
|
|
1398
|
-
function
|
|
1401
|
+
function bs(e, t) {
|
|
1399
1402
|
for (; e !== null; ) {
|
|
1400
|
-
var r = e === t ? null : /* @__PURE__ */
|
|
1403
|
+
var r = e === t ? null : /* @__PURE__ */ ce(e);
|
|
1401
1404
|
e.remove(), e = r;
|
|
1402
1405
|
}
|
|
1403
1406
|
}
|
|
1404
|
-
function
|
|
1407
|
+
function Cn(e) {
|
|
1405
1408
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1406
1409
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1407
1410
|
}
|
|
1408
|
-
function
|
|
1411
|
+
function tt(e, t, r = !0) {
|
|
1409
1412
|
var n = [];
|
|
1410
|
-
|
|
1413
|
+
In(e, n, !0);
|
|
1411
1414
|
var i = () => {
|
|
1412
|
-
r &&
|
|
1415
|
+
r && k(e), t && t();
|
|
1413
1416
|
}, s = n.length;
|
|
1414
1417
|
if (s > 0) {
|
|
1415
1418
|
var a = () => --s || i();
|
|
@@ -1418,31 +1421,31 @@ function Ze(e, t, r = !0) {
|
|
|
1418
1421
|
} else
|
|
1419
1422
|
i();
|
|
1420
1423
|
}
|
|
1421
|
-
function
|
|
1422
|
-
if (!(e.f &
|
|
1423
|
-
e.f ^=
|
|
1424
|
+
function In(e, t, r) {
|
|
1425
|
+
if (!(e.f & ee)) {
|
|
1426
|
+
e.f ^= ee;
|
|
1424
1427
|
var n = e.nodes && e.nodes.t;
|
|
1425
1428
|
if (n !== null)
|
|
1426
1429
|
for (const o of n)
|
|
1427
1430
|
(o.is_global || r) && t.push(o);
|
|
1428
1431
|
for (var i = e.first; i !== null; ) {
|
|
1429
|
-
var s = i.next, a = (i.f &
|
|
1432
|
+
var s = i.next, a = (i.f & $e) !== 0 || // If this is a branch effect without a block effect parent,
|
|
1430
1433
|
// it means the parent block effect was pruned. In that case,
|
|
1431
1434
|
// transparency information was transferred to the branch effect.
|
|
1432
|
-
(i.f &
|
|
1433
|
-
|
|
1435
|
+
(i.f & fe) !== 0 && (e.f & le) !== 0;
|
|
1436
|
+
In(i, t, a ? r : !1), i = s;
|
|
1434
1437
|
}
|
|
1435
1438
|
}
|
|
1436
1439
|
}
|
|
1437
|
-
function
|
|
1438
|
-
|
|
1440
|
+
function gs(e) {
|
|
1441
|
+
Rn(e, !0);
|
|
1439
1442
|
}
|
|
1440
|
-
function
|
|
1441
|
-
if (e.f &
|
|
1442
|
-
e.f ^=
|
|
1443
|
+
function Rn(e, t) {
|
|
1444
|
+
if (e.f & ee) {
|
|
1445
|
+
e.f ^= ee, e.f & I || (B(e, L), oe(e));
|
|
1443
1446
|
for (var r = e.first; r !== null; ) {
|
|
1444
|
-
var n = r.next, i = (r.f &
|
|
1445
|
-
|
|
1447
|
+
var n = r.next, i = (r.f & $e) !== 0 || (r.f & fe) !== 0;
|
|
1448
|
+
Rn(r, i ? t : !1), r = n;
|
|
1446
1449
|
}
|
|
1447
1450
|
var s = e.nodes && e.nodes.t;
|
|
1448
1451
|
if (s !== null)
|
|
@@ -1450,184 +1453,184 @@ function Hn(e, t) {
|
|
|
1450
1453
|
(a.is_global || t) && a.in();
|
|
1451
1454
|
}
|
|
1452
1455
|
}
|
|
1453
|
-
function
|
|
1456
|
+
function Ln(e, t) {
|
|
1454
1457
|
if (e.nodes)
|
|
1455
1458
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1456
|
-
var i = r === n ? null : /* @__PURE__ */
|
|
1459
|
+
var i = r === n ? null : /* @__PURE__ */ ce(r);
|
|
1457
1460
|
t.append(r), r = i;
|
|
1458
1461
|
}
|
|
1459
1462
|
}
|
|
1460
|
-
let
|
|
1461
|
-
function
|
|
1462
|
-
|
|
1463
|
+
let Te = !1;
|
|
1464
|
+
function At(e) {
|
|
1465
|
+
Te = e;
|
|
1463
1466
|
}
|
|
1464
|
-
let
|
|
1465
|
-
function
|
|
1466
|
-
|
|
1467
|
+
let me = !1;
|
|
1468
|
+
function Nr(e) {
|
|
1469
|
+
me = e;
|
|
1467
1470
|
}
|
|
1468
|
-
let _ = null,
|
|
1469
|
-
function
|
|
1471
|
+
let _ = null, Z = !1;
|
|
1472
|
+
function $(e) {
|
|
1470
1473
|
_ = e;
|
|
1471
1474
|
}
|
|
1472
1475
|
let b = null;
|
|
1473
|
-
function
|
|
1476
|
+
function te(e) {
|
|
1474
1477
|
b = e;
|
|
1475
1478
|
}
|
|
1476
|
-
let
|
|
1477
|
-
function
|
|
1478
|
-
_ !== null && (
|
|
1479
|
+
let ae = null;
|
|
1480
|
+
function Mn(e) {
|
|
1481
|
+
_ !== null && (ae === null ? ae = [e] : ae.push(e));
|
|
1479
1482
|
}
|
|
1480
|
-
let
|
|
1481
|
-
function
|
|
1482
|
-
|
|
1483
|
+
let M = null, U = 0, G = null;
|
|
1484
|
+
function ys(e) {
|
|
1485
|
+
G = e;
|
|
1483
1486
|
}
|
|
1484
|
-
let
|
|
1485
|
-
function
|
|
1486
|
-
|
|
1487
|
+
let $n = 1, we = 0, Se = we;
|
|
1488
|
+
function Or(e) {
|
|
1489
|
+
Se = e;
|
|
1487
1490
|
}
|
|
1488
|
-
function
|
|
1489
|
-
return
|
|
1491
|
+
function kn() {
|
|
1492
|
+
return ++$n;
|
|
1490
1493
|
}
|
|
1491
|
-
function
|
|
1494
|
+
function ht(e) {
|
|
1492
1495
|
var t = e.f;
|
|
1493
|
-
if (t &
|
|
1496
|
+
if (t & L)
|
|
1494
1497
|
return !0;
|
|
1495
|
-
if (t &
|
|
1498
|
+
if (t & C && (e.f &= ~He), t & he) {
|
|
1496
1499
|
for (var r = (
|
|
1497
1500
|
/** @type {Value[]} */
|
|
1498
1501
|
e.deps
|
|
1499
1502
|
), n = r.length, i = 0; i < n; i++) {
|
|
1500
1503
|
var s = r[i];
|
|
1501
|
-
if (
|
|
1504
|
+
if (ht(
|
|
1502
1505
|
/** @type {Derived} */
|
|
1503
1506
|
s
|
|
1504
|
-
) &&
|
|
1507
|
+
) && mn(
|
|
1505
1508
|
/** @type {Derived} */
|
|
1506
1509
|
s
|
|
1507
1510
|
), s.wv > e.wv)
|
|
1508
1511
|
return !0;
|
|
1509
1512
|
}
|
|
1510
|
-
t &
|
|
1513
|
+
t & X && // During time traveling we don't want to reset the status so that
|
|
1511
1514
|
// traversal of the graph in the other batches still happens
|
|
1512
|
-
|
|
1515
|
+
z === null && B(e, I);
|
|
1513
1516
|
}
|
|
1514
1517
|
return !1;
|
|
1515
1518
|
}
|
|
1516
|
-
function
|
|
1519
|
+
function Dn(e, t, r = !0) {
|
|
1517
1520
|
var n = e.reactions;
|
|
1518
|
-
if (n !== null && !
|
|
1521
|
+
if (n !== null && !ae?.includes(e))
|
|
1519
1522
|
for (var i = 0; i < n.length; i++) {
|
|
1520
1523
|
var s = n[i];
|
|
1521
|
-
s.f &
|
|
1524
|
+
s.f & C ? Dn(
|
|
1522
1525
|
/** @type {Derived} */
|
|
1523
1526
|
s,
|
|
1524
1527
|
t,
|
|
1525
1528
|
!1
|
|
1526
|
-
) : t === s && (r ? B(s,
|
|
1529
|
+
) : t === s && (r ? B(s, L) : s.f & I && B(s, he), oe(
|
|
1527
1530
|
/** @type {Effect} */
|
|
1528
1531
|
s
|
|
1529
1532
|
));
|
|
1530
1533
|
}
|
|
1531
1534
|
}
|
|
1532
|
-
function
|
|
1533
|
-
var t =
|
|
1534
|
-
|
|
1535
|
-
null,
|
|
1536
|
-
e.ac.abort(
|
|
1535
|
+
function Un(e) {
|
|
1536
|
+
var t = M, r = U, n = G, i = _, s = ae, a = W, o = Z, u = Se, l = e.f;
|
|
1537
|
+
M = /** @type {null | Value[]} */
|
|
1538
|
+
null, U = 0, G = null, _ = l & (fe | be) ? null : e, ae = null, ke(e.ctx), Z = !1, Se = ++we, e.ac !== null && (Tn(() => {
|
|
1539
|
+
e.ac.abort(Ie);
|
|
1537
1540
|
}), e.ac = null);
|
|
1538
1541
|
try {
|
|
1539
|
-
e.f |=
|
|
1542
|
+
e.f |= qt;
|
|
1540
1543
|
var f = (
|
|
1541
1544
|
/** @type {Function} */
|
|
1542
1545
|
e.fn
|
|
1543
1546
|
), c = f(), h = e.deps;
|
|
1544
|
-
if (
|
|
1547
|
+
if (M !== null) {
|
|
1545
1548
|
var d;
|
|
1546
|
-
if (
|
|
1547
|
-
for (h.length =
|
|
1548
|
-
h[
|
|
1549
|
+
if (Bt(e, U), h !== null && U > 0)
|
|
1550
|
+
for (h.length = U + M.length, d = 0; d < M.length; d++)
|
|
1551
|
+
h[U + d] = M[d];
|
|
1549
1552
|
else
|
|
1550
|
-
e.deps = h =
|
|
1551
|
-
if (
|
|
1552
|
-
for (d =
|
|
1553
|
+
e.deps = h = M;
|
|
1554
|
+
if (gr() && e.f & X)
|
|
1555
|
+
for (d = U; d < h.length; d++)
|
|
1553
1556
|
(h[d].reactions ??= []).push(e);
|
|
1554
|
-
} else h !== null &&
|
|
1555
|
-
if (
|
|
1557
|
+
} else h !== null && U < h.length && (Bt(e, U), h.length = U);
|
|
1558
|
+
if (un() && G !== null && !Z && h !== null && !(e.f & (C | he | L)))
|
|
1556
1559
|
for (d = 0; d < /** @type {Source[]} */
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
+
G.length; d++)
|
|
1561
|
+
Dn(
|
|
1562
|
+
G[d],
|
|
1560
1563
|
/** @type {Effect} */
|
|
1561
1564
|
e
|
|
1562
1565
|
);
|
|
1563
1566
|
if (i !== null && i !== e) {
|
|
1564
|
-
if (
|
|
1567
|
+
if (we++, i.deps !== null)
|
|
1565
1568
|
for (let p = 0; p < r; p += 1)
|
|
1566
|
-
i.deps[p].rv =
|
|
1569
|
+
i.deps[p].rv = we;
|
|
1567
1570
|
if (t !== null)
|
|
1568
1571
|
for (const p of t)
|
|
1569
|
-
p.rv =
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
+
p.rv = we;
|
|
1573
|
+
G !== null && (n === null ? n = G : n.push(.../** @type {Source[]} */
|
|
1574
|
+
G));
|
|
1572
1575
|
}
|
|
1573
|
-
return e.f &
|
|
1576
|
+
return e.f & ve && (e.f ^= ve), c;
|
|
1574
1577
|
} catch (p) {
|
|
1575
|
-
return
|
|
1578
|
+
return fn(p);
|
|
1576
1579
|
} finally {
|
|
1577
|
-
e.f ^=
|
|
1580
|
+
e.f ^= qt, M = t, U = r, G = n, _ = i, ae = s, ke(a), Z = o, Se = u;
|
|
1578
1581
|
}
|
|
1579
1582
|
}
|
|
1580
|
-
function
|
|
1583
|
+
function Es(e, t) {
|
|
1581
1584
|
let r = t.reactions;
|
|
1582
1585
|
if (r !== null) {
|
|
1583
|
-
var n =
|
|
1586
|
+
var n = Bi.call(r, e);
|
|
1584
1587
|
if (n !== -1) {
|
|
1585
1588
|
var i = r.length - 1;
|
|
1586
1589
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
1587
1590
|
}
|
|
1588
1591
|
}
|
|
1589
|
-
if (r === null && t.f &
|
|
1592
|
+
if (r === null && t.f & C && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1590
1593
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1591
1594
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1592
|
-
(
|
|
1595
|
+
(M === null || !M.includes(t))) {
|
|
1593
1596
|
var s = (
|
|
1594
1597
|
/** @type {Derived} */
|
|
1595
1598
|
t
|
|
1596
1599
|
);
|
|
1597
|
-
s.f &
|
|
1600
|
+
s.f & X && (s.f ^= X, s.f &= ~He), _r(s), _n(s), Bt(s, 0);
|
|
1598
1601
|
}
|
|
1599
1602
|
}
|
|
1600
|
-
function
|
|
1603
|
+
function Bt(e, t) {
|
|
1601
1604
|
var r = e.deps;
|
|
1602
1605
|
if (r !== null)
|
|
1603
1606
|
for (var n = t; n < r.length; n++)
|
|
1604
|
-
|
|
1607
|
+
Es(e, r[n]);
|
|
1605
1608
|
}
|
|
1606
|
-
function
|
|
1609
|
+
function it(e) {
|
|
1607
1610
|
var t = e.f;
|
|
1608
|
-
if (!(t &
|
|
1609
|
-
B(e,
|
|
1610
|
-
var r = b, n =
|
|
1611
|
-
b = e,
|
|
1611
|
+
if (!(t & se)) {
|
|
1612
|
+
B(e, I);
|
|
1613
|
+
var r = b, n = Te;
|
|
1614
|
+
b = e, Te = !0;
|
|
1612
1615
|
try {
|
|
1613
|
-
t & (
|
|
1614
|
-
var i =
|
|
1615
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1616
|
+
t & (le | Kr) ? ms(e) : Pn(e), On(e);
|
|
1617
|
+
var i = Un(e);
|
|
1618
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = $n;
|
|
1616
1619
|
var s;
|
|
1617
|
-
|
|
1620
|
+
zt && qi && e.f & L && e.deps;
|
|
1618
1621
|
} finally {
|
|
1619
|
-
|
|
1622
|
+
Te = n, b = r;
|
|
1620
1623
|
}
|
|
1621
1624
|
}
|
|
1622
1625
|
}
|
|
1623
1626
|
function g(e) {
|
|
1624
|
-
var t = e.f, r = (t &
|
|
1625
|
-
if (_ !== null && !
|
|
1626
|
-
var n = b !== null && (b.f &
|
|
1627
|
-
if (!n && !
|
|
1627
|
+
var t = e.f, r = (t & C) !== 0;
|
|
1628
|
+
if (_ !== null && !Z) {
|
|
1629
|
+
var n = b !== null && (b.f & se) !== 0;
|
|
1630
|
+
if (!n && !ae?.includes(e)) {
|
|
1628
1631
|
var i = _.deps;
|
|
1629
|
-
if (_.f &
|
|
1630
|
-
e.rv <
|
|
1632
|
+
if (_.f & qt)
|
|
1633
|
+
e.rv < we && (e.rv = we, M === null && i !== null && i[U] === e ? U++ : M === null ? M = [e] : M.push(e));
|
|
1631
1634
|
else {
|
|
1632
1635
|
(_.deps ??= []).push(e);
|
|
1633
1636
|
var s = e.reactions;
|
|
@@ -1635,64 +1638,64 @@ function g(e) {
|
|
|
1635
1638
|
}
|
|
1636
1639
|
}
|
|
1637
1640
|
}
|
|
1638
|
-
if (
|
|
1639
|
-
return
|
|
1641
|
+
if (me && _e.has(e))
|
|
1642
|
+
return _e.get(e);
|
|
1640
1643
|
if (r) {
|
|
1641
1644
|
var a = (
|
|
1642
1645
|
/** @type {Derived} */
|
|
1643
1646
|
e
|
|
1644
1647
|
);
|
|
1645
|
-
if (
|
|
1648
|
+
if (me) {
|
|
1646
1649
|
var o = a.v;
|
|
1647
|
-
return (!(a.f &
|
|
1650
|
+
return (!(a.f & I) && a.reactions !== null || Gn(a)) && (o = br(a)), _e.set(a, o), o;
|
|
1648
1651
|
}
|
|
1649
|
-
var u = (a.f &
|
|
1650
|
-
|
|
1652
|
+
var u = (a.f & X) === 0 && !Z && _ !== null && (Te || (_.f & X) !== 0), l = a.deps === null;
|
|
1653
|
+
ht(a) && (u && (a.f |= X), mn(a)), u && !l && Fn(a);
|
|
1651
1654
|
}
|
|
1652
|
-
if (
|
|
1653
|
-
return
|
|
1654
|
-
if (e.f &
|
|
1655
|
+
if (z?.has(e))
|
|
1656
|
+
return z.get(e);
|
|
1657
|
+
if (e.f & ve)
|
|
1655
1658
|
throw e.v;
|
|
1656
1659
|
return e.v;
|
|
1657
1660
|
}
|
|
1658
|
-
function
|
|
1661
|
+
function Fn(e) {
|
|
1659
1662
|
if (e.deps !== null) {
|
|
1660
|
-
e.f |=
|
|
1663
|
+
e.f |= X;
|
|
1661
1664
|
for (const t of e.deps)
|
|
1662
|
-
(t.reactions ??= []).push(e), t.f &
|
|
1665
|
+
(t.reactions ??= []).push(e), t.f & C && !(t.f & X) && Fn(
|
|
1663
1666
|
/** @type {Derived} */
|
|
1664
1667
|
t
|
|
1665
1668
|
);
|
|
1666
1669
|
}
|
|
1667
1670
|
}
|
|
1668
|
-
function
|
|
1669
|
-
if (e.v ===
|
|
1671
|
+
function Gn(e) {
|
|
1672
|
+
if (e.v === O) return !0;
|
|
1670
1673
|
if (e.deps === null) return !1;
|
|
1671
1674
|
for (const t of e.deps)
|
|
1672
|
-
if (
|
|
1675
|
+
if (_e.has(t) || t.f & C && Gn(
|
|
1673
1676
|
/** @type {Derived} */
|
|
1674
1677
|
t
|
|
1675
1678
|
))
|
|
1676
1679
|
return !0;
|
|
1677
1680
|
return !1;
|
|
1678
1681
|
}
|
|
1679
|
-
function
|
|
1680
|
-
var t =
|
|
1682
|
+
function jn(e) {
|
|
1683
|
+
var t = Z;
|
|
1681
1684
|
try {
|
|
1682
|
-
return
|
|
1685
|
+
return Z = !0, e();
|
|
1683
1686
|
} finally {
|
|
1684
|
-
|
|
1687
|
+
Z = t;
|
|
1685
1688
|
}
|
|
1686
1689
|
}
|
|
1687
|
-
const
|
|
1688
|
-
function
|
|
1690
|
+
const Vn = /* @__PURE__ */ new Set(), Jt = /* @__PURE__ */ new Set();
|
|
1691
|
+
function xs(e) {
|
|
1689
1692
|
for (var t = 0; t < e.length; t++)
|
|
1690
|
-
|
|
1691
|
-
for (var r of
|
|
1693
|
+
Vn.add(e[t]);
|
|
1694
|
+
for (var r of Jt)
|
|
1692
1695
|
r(e);
|
|
1693
1696
|
}
|
|
1694
|
-
let
|
|
1695
|
-
function
|
|
1697
|
+
let Pr = null;
|
|
1698
|
+
function mt(e) {
|
|
1696
1699
|
var t = this, r = (
|
|
1697
1700
|
/** @type {Node} */
|
|
1698
1701
|
t.ownerDocument
|
|
@@ -1700,8 +1703,8 @@ function ft(e) {
|
|
|
1700
1703
|
/** @type {null | Element} */
|
|
1701
1704
|
i[0] || e.target
|
|
1702
1705
|
);
|
|
1703
|
-
|
|
1704
|
-
var a = 0, o =
|
|
1706
|
+
Pr = e;
|
|
1707
|
+
var a = 0, o = Pr === e && e.__root;
|
|
1705
1708
|
if (o) {
|
|
1706
1709
|
var u = i.indexOf(o);
|
|
1707
1710
|
if (u !== -1 && (t === document || t === /** @type {any} */
|
|
@@ -1716,48 +1719,48 @@ function ft(e) {
|
|
|
1716
1719
|
}
|
|
1717
1720
|
if (s = /** @type {Element} */
|
|
1718
1721
|
i[a] || e.target, s !== t) {
|
|
1719
|
-
|
|
1722
|
+
rt(e, "currentTarget", {
|
|
1720
1723
|
configurable: !0,
|
|
1721
1724
|
get() {
|
|
1722
1725
|
return s || r;
|
|
1723
1726
|
}
|
|
1724
1727
|
});
|
|
1725
1728
|
var f = _, c = b;
|
|
1726
|
-
|
|
1729
|
+
$(null), te(null);
|
|
1727
1730
|
try {
|
|
1728
1731
|
for (var h, d = []; s !== null; ) {
|
|
1729
1732
|
var p = s.assignedSlot || s.parentNode || /** @type {any} */
|
|
1730
1733
|
s.host || null;
|
|
1731
1734
|
try {
|
|
1732
|
-
var
|
|
1733
|
-
|
|
1735
|
+
var E = s["__" + n];
|
|
1736
|
+
E != null && (!/** @type {any} */
|
|
1734
1737
|
s.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1735
1738
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1736
|
-
e.target === s) &&
|
|
1737
|
-
} catch (
|
|
1738
|
-
h ? d.push(
|
|
1739
|
+
e.target === s) && E.call(s, e);
|
|
1740
|
+
} catch (T) {
|
|
1741
|
+
h ? d.push(T) : h = T;
|
|
1739
1742
|
}
|
|
1740
1743
|
if (e.cancelBubble || p === t || p === null)
|
|
1741
1744
|
break;
|
|
1742
1745
|
s = p;
|
|
1743
1746
|
}
|
|
1744
1747
|
if (h) {
|
|
1745
|
-
for (let
|
|
1748
|
+
for (let T of d)
|
|
1746
1749
|
queueMicrotask(() => {
|
|
1747
|
-
throw
|
|
1750
|
+
throw T;
|
|
1748
1751
|
});
|
|
1749
1752
|
throw h;
|
|
1750
1753
|
}
|
|
1751
1754
|
} finally {
|
|
1752
|
-
e.__root = t, delete e.currentTarget,
|
|
1755
|
+
e.__root = t, delete e.currentTarget, $(f), te(c);
|
|
1753
1756
|
}
|
|
1754
1757
|
}
|
|
1755
1758
|
}
|
|
1756
|
-
function
|
|
1759
|
+
function ws(e) {
|
|
1757
1760
|
var t = document.createElement("template");
|
|
1758
1761
|
return t.innerHTML = e.replaceAll("<!>", "<!---->"), t.content;
|
|
1759
1762
|
}
|
|
1760
|
-
function
|
|
1763
|
+
function st(e, t) {
|
|
1761
1764
|
var r = (
|
|
1762
1765
|
/** @type {Effect} */
|
|
1763
1766
|
b
|
|
@@ -1765,33 +1768,33 @@ function Ke(e, t) {
|
|
|
1765
1768
|
r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
|
|
1766
1769
|
}
|
|
1767
1770
|
// @__NO_SIDE_EFFECTS__
|
|
1768
|
-
function
|
|
1769
|
-
var r = (t &
|
|
1771
|
+
function Xn(e, t) {
|
|
1772
|
+
var r = (t & Hi) !== 0, n, i = !e.startsWith("<!>");
|
|
1770
1773
|
return () => {
|
|
1771
1774
|
if (A)
|
|
1772
|
-
return
|
|
1773
|
-
n === void 0 && (n =
|
|
1774
|
-
/* @__PURE__ */
|
|
1775
|
+
return st(x, null), x;
|
|
1776
|
+
n === void 0 && (n = ws(i ? e : "<!>" + e), n = /** @type {TemplateNode} */
|
|
1777
|
+
/* @__PURE__ */ nt(n));
|
|
1775
1778
|
var s = (
|
|
1776
1779
|
/** @type {TemplateNode} */
|
|
1777
|
-
r ||
|
|
1780
|
+
r || En ? document.importNode(n, !0) : n.cloneNode(!0)
|
|
1778
1781
|
);
|
|
1779
|
-
return
|
|
1782
|
+
return st(s, s), s;
|
|
1780
1783
|
};
|
|
1781
1784
|
}
|
|
1782
|
-
function
|
|
1785
|
+
function Cr() {
|
|
1783
1786
|
if (A)
|
|
1784
|
-
return
|
|
1785
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), r =
|
|
1786
|
-
return e.append(t, r),
|
|
1787
|
+
return st(x, null), x;
|
|
1788
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = ue();
|
|
1789
|
+
return e.append(t, r), st(t, r), e;
|
|
1787
1790
|
}
|
|
1788
|
-
function
|
|
1791
|
+
function Je(e, t) {
|
|
1789
1792
|
if (A) {
|
|
1790
1793
|
var r = (
|
|
1791
1794
|
/** @type {Effect & { nodes: EffectNodes }} */
|
|
1792
1795
|
b
|
|
1793
1796
|
);
|
|
1794
|
-
(!(r.f &
|
|
1797
|
+
(!(r.f & Ct) || r.nodes.end === null) && (r.nodes.end = x), pr();
|
|
1795
1798
|
return;
|
|
1796
1799
|
}
|
|
1797
1800
|
e !== null && e.before(
|
|
@@ -1799,61 +1802,61 @@ function Zt(e, t) {
|
|
|
1799
1802
|
t
|
|
1800
1803
|
);
|
|
1801
1804
|
}
|
|
1802
|
-
const
|
|
1803
|
-
function
|
|
1804
|
-
return
|
|
1805
|
+
const Ts = ["touchstart", "touchmove"];
|
|
1806
|
+
function Ss(e) {
|
|
1807
|
+
return Ts.includes(e);
|
|
1805
1808
|
}
|
|
1806
|
-
function
|
|
1809
|
+
function Ir(e, t) {
|
|
1807
1810
|
var r = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1808
1811
|
r !== (e.__t ??= e.nodeValue) && (e.__t = r, e.nodeValue = r + "");
|
|
1809
1812
|
}
|
|
1810
|
-
function
|
|
1811
|
-
return
|
|
1813
|
+
function Wn(e, t) {
|
|
1814
|
+
return zn(e, t);
|
|
1812
1815
|
}
|
|
1813
|
-
function
|
|
1814
|
-
|
|
1815
|
-
const r = t.target, n = A, i =
|
|
1816
|
+
function Hs(e, t) {
|
|
1817
|
+
Qt(), t.intro = t.intro ?? !1;
|
|
1818
|
+
const r = t.target, n = A, i = x;
|
|
1816
1819
|
try {
|
|
1817
|
-
for (var s = /* @__PURE__ */
|
|
1818
|
-
s.data !==
|
|
1819
|
-
s = /* @__PURE__ */
|
|
1820
|
+
for (var s = /* @__PURE__ */ nt(r); s && (s.nodeType !== lt || /** @type {Comment} */
|
|
1821
|
+
s.data !== Zr); )
|
|
1822
|
+
s = /* @__PURE__ */ ce(s);
|
|
1820
1823
|
if (!s)
|
|
1821
|
-
throw
|
|
1822
|
-
|
|
1824
|
+
throw Me;
|
|
1825
|
+
Re(!0), Y(
|
|
1823
1826
|
/** @type {Comment} */
|
|
1824
1827
|
s
|
|
1825
1828
|
);
|
|
1826
|
-
const a =
|
|
1827
|
-
return
|
|
1829
|
+
const a = zn(e, { ...t, anchor: s });
|
|
1830
|
+
return Re(!1), /** @type {Exports} */
|
|
1828
1831
|
a;
|
|
1829
1832
|
} catch (a) {
|
|
1830
1833
|
if (a instanceof Error && a.message.split(`
|
|
1831
1834
|
`).some((o) => o.startsWith("https://svelte.dev/e/")))
|
|
1832
1835
|
throw a;
|
|
1833
|
-
return a !==
|
|
1836
|
+
return a !== Me && console.warn("Failed to hydrate: ", a), t.recover === !1 && Di(), Qt(), us(r), Re(!1), Wn(e, t);
|
|
1834
1837
|
} finally {
|
|
1835
|
-
|
|
1838
|
+
Re(n), Y(i);
|
|
1836
1839
|
}
|
|
1837
1840
|
}
|
|
1838
|
-
const
|
|
1839
|
-
function
|
|
1840
|
-
|
|
1841
|
+
const Pe = /* @__PURE__ */ new Map();
|
|
1842
|
+
function zn(e, { target: t, anchor: r, props: n = {}, events: i, context: s, intro: a = !0 }) {
|
|
1843
|
+
Qt();
|
|
1841
1844
|
var o = /* @__PURE__ */ new Set(), u = (c) => {
|
|
1842
1845
|
for (var h = 0; h < c.length; h++) {
|
|
1843
1846
|
var d = c[h];
|
|
1844
1847
|
if (!o.has(d)) {
|
|
1845
1848
|
o.add(d);
|
|
1846
|
-
var p =
|
|
1847
|
-
t.addEventListener(d,
|
|
1848
|
-
var
|
|
1849
|
-
|
|
1849
|
+
var p = Ss(d);
|
|
1850
|
+
t.addEventListener(d, mt, { passive: p });
|
|
1851
|
+
var E = Pe.get(d);
|
|
1852
|
+
E === void 0 ? (document.addEventListener(d, mt, { passive: p }), Pe.set(d, 1)) : Pe.set(d, E + 1);
|
|
1850
1853
|
}
|
|
1851
1854
|
}
|
|
1852
1855
|
};
|
|
1853
|
-
u(
|
|
1854
|
-
var l = void 0, f =
|
|
1855
|
-
var c = r ?? t.appendChild(
|
|
1856
|
-
return
|
|
1856
|
+
u(Ni(Vn)), Jt.add(u);
|
|
1857
|
+
var l = void 0, f = ds(() => {
|
|
1858
|
+
var c = r ?? t.appendChild(ue());
|
|
1859
|
+
return es(
|
|
1857
1860
|
/** @type {TemplateNode} */
|
|
1858
1861
|
c,
|
|
1859
1862
|
{
|
|
@@ -1862,42 +1865,42 @@ function Dn(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
1862
1865
|
},
|
|
1863
1866
|
(h) => {
|
|
1864
1867
|
if (s) {
|
|
1865
|
-
|
|
1868
|
+
an({});
|
|
1866
1869
|
var d = (
|
|
1867
1870
|
/** @type {ComponentContext} */
|
|
1868
|
-
|
|
1871
|
+
W
|
|
1869
1872
|
);
|
|
1870
1873
|
d.c = s;
|
|
1871
1874
|
}
|
|
1872
|
-
if (i && (n.$$events = i), A &&
|
|
1875
|
+
if (i && (n.$$events = i), A && st(
|
|
1873
1876
|
/** @type {TemplateNode} */
|
|
1874
1877
|
h,
|
|
1875
1878
|
null
|
|
1876
|
-
), l = e(h, n) || {}, A && (b.nodes.end =
|
|
1877
|
-
|
|
1878
|
-
throw
|
|
1879
|
-
s &&
|
|
1879
|
+
), l = e(h, n) || {}, A && (b.nodes.end = x, x === null || x.nodeType !== lt || /** @type {Comment} */
|
|
1880
|
+
x.data !== Yr))
|
|
1881
|
+
throw It(), Me;
|
|
1882
|
+
s && on();
|
|
1880
1883
|
}
|
|
1881
1884
|
), () => {
|
|
1882
1885
|
for (var h of o) {
|
|
1883
|
-
t.removeEventListener(h,
|
|
1886
|
+
t.removeEventListener(h, mt);
|
|
1884
1887
|
var d = (
|
|
1885
1888
|
/** @type {number} */
|
|
1886
|
-
|
|
1889
|
+
Pe.get(h)
|
|
1887
1890
|
);
|
|
1888
|
-
--d === 0 ? (document.removeEventListener(h,
|
|
1891
|
+
--d === 0 ? (document.removeEventListener(h, mt), Pe.delete(h)) : Pe.set(h, d);
|
|
1889
1892
|
}
|
|
1890
|
-
|
|
1893
|
+
Jt.delete(u), c !== r && c.parentNode?.removeChild(c);
|
|
1891
1894
|
};
|
|
1892
1895
|
});
|
|
1893
|
-
return
|
|
1896
|
+
return Kt.set(l, f), l;
|
|
1894
1897
|
}
|
|
1895
|
-
let
|
|
1896
|
-
function
|
|
1897
|
-
const r =
|
|
1898
|
-
return r ? (
|
|
1898
|
+
let Kt = /* @__PURE__ */ new WeakMap();
|
|
1899
|
+
function As(e, t) {
|
|
1900
|
+
const r = Kt.get(e);
|
|
1901
|
+
return r ? (Kt.delete(e), r(t)) : Promise.resolve();
|
|
1899
1902
|
}
|
|
1900
|
-
class
|
|
1903
|
+
class Bs {
|
|
1901
1904
|
/** @type {TemplateNode} */
|
|
1902
1905
|
anchor;
|
|
1903
1906
|
/** @type {Map<Batch, Key>} */
|
|
@@ -1943,7 +1946,7 @@ class Es {
|
|
|
1943
1946
|
#i = () => {
|
|
1944
1947
|
var t = (
|
|
1945
1948
|
/** @type {Batch} */
|
|
1946
|
-
|
|
1949
|
+
H
|
|
1947
1950
|
);
|
|
1948
1951
|
if (this.#e.has(t)) {
|
|
1949
1952
|
var r = (
|
|
@@ -1951,7 +1954,7 @@ class Es {
|
|
|
1951
1954
|
this.#e.get(t)
|
|
1952
1955
|
), n = this.#t.get(r);
|
|
1953
1956
|
if (n)
|
|
1954
|
-
|
|
1957
|
+
gs(n), this.#s.delete(r);
|
|
1955
1958
|
else {
|
|
1956
1959
|
var i = this.#r.get(r);
|
|
1957
1960
|
i && (this.#t.set(r, i.effect), this.#r.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), n = i.effect);
|
|
@@ -1960,19 +1963,19 @@ class Es {
|
|
|
1960
1963
|
if (this.#e.delete(s), s === t)
|
|
1961
1964
|
break;
|
|
1962
1965
|
const o = this.#r.get(a);
|
|
1963
|
-
o && (
|
|
1966
|
+
o && (k(o.effect), this.#r.delete(a));
|
|
1964
1967
|
}
|
|
1965
1968
|
for (const [s, a] of this.#t) {
|
|
1966
1969
|
if (s === r || this.#s.has(s)) continue;
|
|
1967
1970
|
const o = () => {
|
|
1968
1971
|
if (Array.from(this.#e.values()).includes(s)) {
|
|
1969
1972
|
var l = document.createDocumentFragment();
|
|
1970
|
-
|
|
1973
|
+
Ln(a, l), l.append(ue()), this.#r.set(s, { effect: a, fragment: l });
|
|
1971
1974
|
} else
|
|
1972
|
-
|
|
1975
|
+
k(a);
|
|
1973
1976
|
this.#s.delete(s), this.#t.delete(s);
|
|
1974
1977
|
};
|
|
1975
|
-
this.#a || !n ? (this.#s.add(s),
|
|
1978
|
+
this.#a || !n ? (this.#s.add(s), tt(a, o, !1)) : o();
|
|
1976
1979
|
}
|
|
1977
1980
|
}
|
|
1978
1981
|
};
|
|
@@ -1983,7 +1986,7 @@ class Es {
|
|
|
1983
1986
|
this.#e.delete(t);
|
|
1984
1987
|
const r = Array.from(this.#e.values());
|
|
1985
1988
|
for (const [n, i] of this.#r)
|
|
1986
|
-
r.includes(n) || (
|
|
1989
|
+
r.includes(n) || (k(i.effect), this.#r.delete(n));
|
|
1987
1990
|
};
|
|
1988
1991
|
/**
|
|
1989
1992
|
*
|
|
@@ -1993,19 +1996,19 @@ class Es {
|
|
|
1993
1996
|
ensure(t, r) {
|
|
1994
1997
|
var n = (
|
|
1995
1998
|
/** @type {Batch} */
|
|
1996
|
-
|
|
1997
|
-
), i =
|
|
1999
|
+
H
|
|
2000
|
+
), i = ls();
|
|
1998
2001
|
if (r && !this.#t.has(t) && !this.#r.has(t))
|
|
1999
2002
|
if (i) {
|
|
2000
|
-
var s = document.createDocumentFragment(), a =
|
|
2003
|
+
var s = document.createDocumentFragment(), a = ue();
|
|
2001
2004
|
s.append(a), this.#r.set(t, {
|
|
2002
|
-
effect:
|
|
2005
|
+
effect: ie(() => r(a)),
|
|
2003
2006
|
fragment: s
|
|
2004
2007
|
});
|
|
2005
2008
|
} else
|
|
2006
2009
|
this.#t.set(
|
|
2007
2010
|
t,
|
|
2008
|
-
|
|
2011
|
+
ie(() => r(this.anchor))
|
|
2009
2012
|
);
|
|
2010
2013
|
if (this.#e.set(n, t), i) {
|
|
2011
2014
|
for (const [o, u] of this.#t)
|
|
@@ -2014,32 +2017,32 @@ class Es {
|
|
|
2014
2017
|
o === t ? n.skipped_effects.delete(u.effect) : n.skipped_effects.add(u.effect);
|
|
2015
2018
|
n.oncommit(this.#i), n.ondiscard(this.#n);
|
|
2016
2019
|
} else
|
|
2017
|
-
A && (this.anchor =
|
|
2020
|
+
A && (this.anchor = x), this.#i();
|
|
2018
2021
|
}
|
|
2019
2022
|
}
|
|
2020
|
-
function
|
|
2021
|
-
A &&
|
|
2022
|
-
var n = new
|
|
2023
|
+
function Rr(e, t, r = !1) {
|
|
2024
|
+
A && pr();
|
|
2025
|
+
var n = new Bs(e), i = r ? $e : 0;
|
|
2023
2026
|
function s(a, o) {
|
|
2024
2027
|
if (A) {
|
|
2025
|
-
const l =
|
|
2028
|
+
const l = Wi(e) === fr;
|
|
2026
2029
|
if (a === l) {
|
|
2027
|
-
var u =
|
|
2028
|
-
|
|
2030
|
+
var u = rn();
|
|
2031
|
+
Y(u), n.anchor = u, Re(!1), n.ensure(a, o), Re(!0);
|
|
2029
2032
|
return;
|
|
2030
2033
|
}
|
|
2031
2034
|
}
|
|
2032
2035
|
n.ensure(a, o);
|
|
2033
2036
|
}
|
|
2034
|
-
|
|
2037
|
+
Nn(() => {
|
|
2035
2038
|
var a = !1;
|
|
2036
2039
|
t((o, u = !0) => {
|
|
2037
2040
|
a = !0, s(u, o);
|
|
2038
2041
|
}), a || s(!1, null);
|
|
2039
2042
|
}, i);
|
|
2040
2043
|
}
|
|
2041
|
-
function
|
|
2042
|
-
|
|
2044
|
+
function Ns(e, t) {
|
|
2045
|
+
ps(() => {
|
|
2043
2046
|
var r = e.getRootNode(), n = (
|
|
2044
2047
|
/** @type {ShadowRoot} */
|
|
2045
2048
|
r.host ? (
|
|
@@ -2057,10 +2060,10 @@ function ws(e, t) {
|
|
|
2057
2060
|
}
|
|
2058
2061
|
});
|
|
2059
2062
|
}
|
|
2060
|
-
function
|
|
2063
|
+
function yr(e, t, r) {
|
|
2061
2064
|
if (e == null)
|
|
2062
|
-
return t(void 0), r && r(void 0),
|
|
2063
|
-
const n =
|
|
2065
|
+
return t(void 0), r && r(void 0), pe;
|
|
2066
|
+
const n = jn(
|
|
2064
2067
|
() => e.subscribe(
|
|
2065
2068
|
t,
|
|
2066
2069
|
// @ts-expect-error
|
|
@@ -2069,24 +2072,24 @@ function mr(e, t, r) {
|
|
|
2069
2072
|
);
|
|
2070
2073
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
2071
2074
|
}
|
|
2072
|
-
const
|
|
2073
|
-
function
|
|
2075
|
+
const Ce = [];
|
|
2076
|
+
function Os(e, t) {
|
|
2074
2077
|
return {
|
|
2075
|
-
subscribe:
|
|
2078
|
+
subscribe: Lt(e, t).subscribe
|
|
2076
2079
|
};
|
|
2077
2080
|
}
|
|
2078
|
-
function
|
|
2081
|
+
function Lt(e, t = pe) {
|
|
2079
2082
|
let r = null;
|
|
2080
2083
|
const n = /* @__PURE__ */ new Set();
|
|
2081
2084
|
function i(o) {
|
|
2082
|
-
if (
|
|
2083
|
-
const u = !
|
|
2085
|
+
if (sn(e, o) && (e = o, r)) {
|
|
2086
|
+
const u = !Ce.length;
|
|
2084
2087
|
for (const l of n)
|
|
2085
|
-
l[1](),
|
|
2088
|
+
l[1](), Ce.push(l, e);
|
|
2086
2089
|
if (u) {
|
|
2087
|
-
for (let l = 0; l <
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
+
for (let l = 0; l < Ce.length; l += 2)
|
|
2091
|
+
Ce[l][0](Ce[l + 1]);
|
|
2092
|
+
Ce.length = 0;
|
|
2090
2093
|
}
|
|
2091
2094
|
}
|
|
2092
2095
|
}
|
|
@@ -2096,9 +2099,9 @@ function Nt(e, t = de) {
|
|
|
2096
2099
|
e
|
|
2097
2100
|
));
|
|
2098
2101
|
}
|
|
2099
|
-
function a(o, u =
|
|
2102
|
+
function a(o, u = pe) {
|
|
2100
2103
|
const l = [o, u];
|
|
2101
|
-
return n.add(l), n.size === 1 && (r = t(i, s) ||
|
|
2104
|
+
return n.add(l), n.size === 1 && (r = t(i, s) || pe), o(
|
|
2102
2105
|
/** @type {T} */
|
|
2103
2106
|
e
|
|
2104
2107
|
), () => {
|
|
@@ -2107,66 +2110,66 @@ function Nt(e, t = de) {
|
|
|
2107
2110
|
}
|
|
2108
2111
|
return { set: i, update: s, subscribe: a };
|
|
2109
2112
|
}
|
|
2110
|
-
function
|
|
2113
|
+
function Ve(e, t, r) {
|
|
2111
2114
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
2112
2115
|
if (!i.every(Boolean))
|
|
2113
2116
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
2114
2117
|
const s = t.length < 2;
|
|
2115
|
-
return
|
|
2118
|
+
return Os(r, (a, o) => {
|
|
2116
2119
|
let u = !1;
|
|
2117
2120
|
const l = [];
|
|
2118
|
-
let f = 0, c =
|
|
2121
|
+
let f = 0, c = pe;
|
|
2119
2122
|
const h = () => {
|
|
2120
2123
|
if (f)
|
|
2121
2124
|
return;
|
|
2122
2125
|
c();
|
|
2123
2126
|
const p = t(n ? l[0] : l, a, o);
|
|
2124
|
-
s ? a(p) : c = typeof p == "function" ? p :
|
|
2127
|
+
s ? a(p) : c = typeof p == "function" ? p : pe;
|
|
2125
2128
|
}, d = i.map(
|
|
2126
|
-
(p,
|
|
2129
|
+
(p, E) => yr(
|
|
2127
2130
|
p,
|
|
2128
|
-
(
|
|
2129
|
-
l[
|
|
2131
|
+
(T) => {
|
|
2132
|
+
l[E] = T, f &= ~(1 << E), u && h();
|
|
2130
2133
|
},
|
|
2131
2134
|
() => {
|
|
2132
|
-
f |= 1 <<
|
|
2135
|
+
f |= 1 << E;
|
|
2133
2136
|
}
|
|
2134
2137
|
)
|
|
2135
2138
|
);
|
|
2136
2139
|
return u = !0, h(), function() {
|
|
2137
|
-
|
|
2140
|
+
Qr(d), c(), u = !1;
|
|
2138
2141
|
};
|
|
2139
2142
|
});
|
|
2140
2143
|
}
|
|
2141
|
-
function
|
|
2144
|
+
function Ps(e) {
|
|
2142
2145
|
let t;
|
|
2143
|
-
return
|
|
2146
|
+
return yr(e, (r) => t = r)(), t;
|
|
2144
2147
|
}
|
|
2145
|
-
let
|
|
2146
|
-
function
|
|
2148
|
+
let er = Symbol();
|
|
2149
|
+
function Cs(e, t, r) {
|
|
2147
2150
|
const n = r[t] ??= {
|
|
2148
2151
|
store: null,
|
|
2149
|
-
source: /* @__PURE__ */
|
|
2150
|
-
unsubscribe:
|
|
2152
|
+
source: /* @__PURE__ */ gn(void 0),
|
|
2153
|
+
unsubscribe: pe
|
|
2151
2154
|
};
|
|
2152
|
-
if (n.store !== e && !(
|
|
2155
|
+
if (n.store !== e && !(er in r))
|
|
2153
2156
|
if (n.unsubscribe(), n.store = e ?? null, e == null)
|
|
2154
|
-
n.source.v = void 0, n.unsubscribe =
|
|
2157
|
+
n.source.v = void 0, n.unsubscribe = pe;
|
|
2155
2158
|
else {
|
|
2156
2159
|
var i = !0;
|
|
2157
|
-
n.unsubscribe =
|
|
2158
|
-
i ? n.source.v = s :
|
|
2160
|
+
n.unsubscribe = yr(e, (s) => {
|
|
2161
|
+
i ? n.source.v = s : P(n.source, s);
|
|
2159
2162
|
}), i = !1;
|
|
2160
2163
|
}
|
|
2161
|
-
return e &&
|
|
2164
|
+
return e && er in r ? Ps(e) : g(n.source);
|
|
2162
2165
|
}
|
|
2163
|
-
function
|
|
2166
|
+
function Is() {
|
|
2164
2167
|
const e = {};
|
|
2165
2168
|
function t() {
|
|
2166
|
-
|
|
2169
|
+
Hn(() => {
|
|
2167
2170
|
for (var r in e)
|
|
2168
2171
|
e[r].unsubscribe();
|
|
2169
|
-
|
|
2172
|
+
rt(e, er, {
|
|
2170
2173
|
enumerable: !1,
|
|
2171
2174
|
value: !0
|
|
2172
2175
|
});
|
|
@@ -2174,7 +2177,7 @@ function As() {
|
|
|
2174
2177
|
}
|
|
2175
2178
|
return [e, t];
|
|
2176
2179
|
}
|
|
2177
|
-
function
|
|
2180
|
+
function bt(e, t, r, n) {
|
|
2178
2181
|
var i = (
|
|
2179
2182
|
/** @type {V} */
|
|
2180
2183
|
n
|
|
@@ -2190,7 +2193,7 @@ function Mt(e, t, r, n) {
|
|
|
2190
2193
|
);
|
|
2191
2194
|
return h === void 0 ? a() : (s = !0, h);
|
|
2192
2195
|
};
|
|
2193
|
-
var l = !1, f = /* @__PURE__ */
|
|
2196
|
+
var l = !1, f = /* @__PURE__ */ mr(() => (l = !1, u())), c = (
|
|
2194
2197
|
/** @type {Effect} */
|
|
2195
2198
|
b
|
|
2196
2199
|
);
|
|
@@ -2199,16 +2202,16 @@ function Mt(e, t, r, n) {
|
|
|
2199
2202
|
function(h, d) {
|
|
2200
2203
|
if (arguments.length > 0) {
|
|
2201
2204
|
const p = d ? g(f) : h;
|
|
2202
|
-
return
|
|
2205
|
+
return P(f, p), l = !0, i !== void 0 && (i = p), h;
|
|
2203
2206
|
}
|
|
2204
|
-
return
|
|
2207
|
+
return me && l || c.f & se ? f.v : g(f);
|
|
2205
2208
|
}
|
|
2206
2209
|
);
|
|
2207
2210
|
}
|
|
2208
|
-
function
|
|
2209
|
-
return new
|
|
2211
|
+
function Rs(e) {
|
|
2212
|
+
return new Ls(e);
|
|
2210
2213
|
}
|
|
2211
|
-
class
|
|
2214
|
+
class Ls {
|
|
2212
2215
|
/** @type {any} */
|
|
2213
2216
|
#e;
|
|
2214
2217
|
/** @type {Record<string, any>} */
|
|
@@ -2220,7 +2223,7 @@ class Ns {
|
|
|
2220
2223
|
*/
|
|
2221
2224
|
constructor(t) {
|
|
2222
2225
|
var r = /* @__PURE__ */ new Map(), n = (s, a) => {
|
|
2223
|
-
var o = /* @__PURE__ */
|
|
2226
|
+
var o = /* @__PURE__ */ gn(a, !1, !1);
|
|
2224
2227
|
return r.set(s, o), o;
|
|
2225
2228
|
};
|
|
2226
2229
|
const i = new Proxy(
|
|
@@ -2230,23 +2233,23 @@ class Ns {
|
|
|
2230
2233
|
return g(r.get(a) ?? n(a, Reflect.get(s, a)));
|
|
2231
2234
|
},
|
|
2232
2235
|
has(s, a) {
|
|
2233
|
-
return a ===
|
|
2236
|
+
return a === Ii ? !0 : (g(r.get(a) ?? n(a, Reflect.get(s, a))), Reflect.has(s, a));
|
|
2234
2237
|
},
|
|
2235
2238
|
set(s, a, o) {
|
|
2236
|
-
return
|
|
2239
|
+
return P(r.get(a) ?? n(a, o), o), Reflect.set(s, a, o);
|
|
2237
2240
|
}
|
|
2238
2241
|
}
|
|
2239
2242
|
);
|
|
2240
|
-
this.#t = (t.hydrate ?
|
|
2243
|
+
this.#t = (t.hydrate ? Hs : Wn)(t.component, {
|
|
2241
2244
|
target: t.target,
|
|
2242
2245
|
anchor: t.anchor,
|
|
2243
2246
|
props: i,
|
|
2244
2247
|
context: t.context,
|
|
2245
2248
|
intro: t.intro ?? !1,
|
|
2246
2249
|
recover: t.recover
|
|
2247
|
-
}), (!t?.props?.$$host || t.sync === !1) &&
|
|
2250
|
+
}), (!t?.props?.$$host || t.sync === !1) && Ye(), this.#e = i.$$events;
|
|
2248
2251
|
for (const s of Object.keys(this.#t))
|
|
2249
|
-
s === "$set" || s === "$destroy" || s === "$on" ||
|
|
2252
|
+
s === "$set" || s === "$destroy" || s === "$on" || rt(this, s, {
|
|
2250
2253
|
get() {
|
|
2251
2254
|
return this.#t[s];
|
|
2252
2255
|
},
|
|
@@ -2260,7 +2263,7 @@ class Ns {
|
|
|
2260
2263
|
(s) => {
|
|
2261
2264
|
Object.assign(i, s);
|
|
2262
2265
|
}, this.#t.$destroy = () => {
|
|
2263
|
-
|
|
2266
|
+
As(this.#t);
|
|
2264
2267
|
};
|
|
2265
2268
|
}
|
|
2266
2269
|
/** @param {Record<string, any>} props */
|
|
@@ -2286,8 +2289,8 @@ class Ns {
|
|
|
2286
2289
|
this.#t.$destroy();
|
|
2287
2290
|
}
|
|
2288
2291
|
}
|
|
2289
|
-
let
|
|
2290
|
-
typeof HTMLElement == "function" && (
|
|
2292
|
+
let qn;
|
|
2293
|
+
typeof HTMLElement == "function" && (qn = class extends HTMLElement {
|
|
2291
2294
|
/** The Svelte component constructor */
|
|
2292
2295
|
$$ctor;
|
|
2293
2296
|
/** Slots */
|
|
@@ -2344,21 +2347,21 @@ typeof HTMLElement == "function" && (Fn = class extends HTMLElement {
|
|
|
2344
2347
|
let e = function(n) {
|
|
2345
2348
|
return (i) => {
|
|
2346
2349
|
const s = document.createElement("slot");
|
|
2347
|
-
n !== "default" && (s.name = n),
|
|
2350
|
+
n !== "default" && (s.name = n), Je(i, s);
|
|
2348
2351
|
};
|
|
2349
2352
|
};
|
|
2350
2353
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
2351
2354
|
return;
|
|
2352
|
-
const t = {}, r =
|
|
2355
|
+
const t = {}, r = Ms(this);
|
|
2353
2356
|
for (const n of this.$$s)
|
|
2354
2357
|
n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2355
2358
|
for (const n of this.attributes) {
|
|
2356
2359
|
const i = this.$$g_p(n.name);
|
|
2357
|
-
i in this.$$d || (this.$$d[i] =
|
|
2360
|
+
i in this.$$d || (this.$$d[i] = yt(i, n.value, this.$$p_d, "toProp"));
|
|
2358
2361
|
}
|
|
2359
2362
|
for (const n in this.$$p_d)
|
|
2360
2363
|
!(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2361
|
-
this.$$c =
|
|
2364
|
+
this.$$c = Rs({
|
|
2362
2365
|
component: this.$$ctor,
|
|
2363
2366
|
target: this.shadowRoot || this,
|
|
2364
2367
|
props: {
|
|
@@ -2366,13 +2369,13 @@ typeof HTMLElement == "function" && (Fn = class extends HTMLElement {
|
|
|
2366
2369
|
$$slots: t,
|
|
2367
2370
|
$$host: this
|
|
2368
2371
|
}
|
|
2369
|
-
}), this.$$me =
|
|
2370
|
-
|
|
2372
|
+
}), this.$$me = cs(() => {
|
|
2373
|
+
Bn(() => {
|
|
2371
2374
|
this.$$r = !0;
|
|
2372
|
-
for (const n of
|
|
2375
|
+
for (const n of wt(this.$$c)) {
|
|
2373
2376
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
2374
2377
|
this.$$d[n] = this.$$c[n];
|
|
2375
|
-
const i =
|
|
2378
|
+
const i = yt(
|
|
2376
2379
|
n,
|
|
2377
2380
|
this.$$d[n],
|
|
2378
2381
|
this.$$p_d,
|
|
@@ -2399,7 +2402,7 @@ typeof HTMLElement == "function" && (Fn = class extends HTMLElement {
|
|
|
2399
2402
|
* @param {string} newValue
|
|
2400
2403
|
*/
|
|
2401
2404
|
attributeChangedCallback(e, t, r) {
|
|
2402
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2405
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = yt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2403
2406
|
}
|
|
2404
2407
|
disconnectedCallback() {
|
|
2405
2408
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2410,12 +2413,12 @@ typeof HTMLElement == "function" && (Fn = class extends HTMLElement {
|
|
|
2410
2413
|
* @param {string} attribute_name
|
|
2411
2414
|
*/
|
|
2412
2415
|
$$g_p(e) {
|
|
2413
|
-
return
|
|
2416
|
+
return wt(this.$$p_d).find(
|
|
2414
2417
|
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
2415
2418
|
) || e;
|
|
2416
2419
|
}
|
|
2417
2420
|
});
|
|
2418
|
-
function
|
|
2421
|
+
function yt(e, t, r, n) {
|
|
2419
2422
|
const i = r[e]?.type;
|
|
2420
2423
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
2421
2424
|
return t;
|
|
@@ -2444,7 +2447,7 @@ function dt(e, t, r, n) {
|
|
|
2444
2447
|
return t;
|
|
2445
2448
|
}
|
|
2446
2449
|
}
|
|
2447
|
-
function
|
|
2450
|
+
function Ms(e) {
|
|
2448
2451
|
const t = {};
|
|
2449
2452
|
return e.childNodes.forEach((r) => {
|
|
2450
2453
|
t[
|
|
@@ -2453,33 +2456,33 @@ function Os(e) {
|
|
|
2453
2456
|
] = !0;
|
|
2454
2457
|
}), t;
|
|
2455
2458
|
}
|
|
2456
|
-
function
|
|
2457
|
-
let a = class extends
|
|
2459
|
+
function $s(e, t, r, n, i, s) {
|
|
2460
|
+
let a = class extends qn {
|
|
2458
2461
|
constructor() {
|
|
2459
2462
|
super(e, r, i), this.$$p_d = t;
|
|
2460
2463
|
}
|
|
2461
2464
|
static get observedAttributes() {
|
|
2462
|
-
return
|
|
2465
|
+
return wt(t).map(
|
|
2463
2466
|
(o) => (t[o].attribute || o).toLowerCase()
|
|
2464
2467
|
);
|
|
2465
2468
|
}
|
|
2466
2469
|
};
|
|
2467
|
-
return
|
|
2468
|
-
|
|
2470
|
+
return wt(t).forEach((o) => {
|
|
2471
|
+
rt(a.prototype, o, {
|
|
2469
2472
|
get() {
|
|
2470
2473
|
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
2471
2474
|
},
|
|
2472
2475
|
set(u) {
|
|
2473
|
-
u =
|
|
2476
|
+
u = yt(o, u, t), this.$$d[o] = u;
|
|
2474
2477
|
var l = this.$$c;
|
|
2475
2478
|
if (l) {
|
|
2476
|
-
var f =
|
|
2479
|
+
var f = Le(l, o)?.get;
|
|
2477
2480
|
f ? l[o] = u : l.$set({ [o]: u });
|
|
2478
2481
|
}
|
|
2479
2482
|
}
|
|
2480
2483
|
});
|
|
2481
2484
|
}), n.forEach((o) => {
|
|
2482
|
-
|
|
2485
|
+
rt(a.prototype, o, {
|
|
2483
2486
|
get() {
|
|
2484
2487
|
return this.$$c?.[o];
|
|
2485
2488
|
}
|
|
@@ -2487,28 +2490,28 @@ function Ps(e, t, r, n, i, s) {
|
|
|
2487
2490
|
}), e.element = /** @type {any} */
|
|
2488
2491
|
a, a;
|
|
2489
2492
|
}
|
|
2490
|
-
class
|
|
2493
|
+
class Zn extends Error {
|
|
2491
2494
|
constructor(t, r) {
|
|
2492
2495
|
super(r), this.code = t, this.name = "ElevateApiError";
|
|
2493
2496
|
}
|
|
2494
2497
|
}
|
|
2495
|
-
const
|
|
2498
|
+
const ks = async (e) => {
|
|
2496
2499
|
const t = new URL(`${e.apiEndpoint}/elevate/playerInfo?language=${e.locale ?? ""}`), r = new Headers({ "Content-Type": "application/json" });
|
|
2497
2500
|
e.userSession && r.append("X-SessionId", e.userSession);
|
|
2498
2501
|
const i = await (await fetch(t.href, { method: "GET", headers: r })).json();
|
|
2499
2502
|
if (!i.success)
|
|
2500
|
-
throw new
|
|
2503
|
+
throw new Zn(i.errorCode, i.errorMessage);
|
|
2501
2504
|
return i.data;
|
|
2502
|
-
},
|
|
2505
|
+
}, Ds = async (e) => {
|
|
2503
2506
|
const t = new URL(`${e.apiEndpoint}/elevate/rakeback/claim`), r = new Headers({ "Content-Type": "application/json" });
|
|
2504
2507
|
e.userSession && r.append("X-Sessionid", e.userSession);
|
|
2505
2508
|
const i = await (await fetch(t.href, { method: "PUT", headers: r, body: JSON.stringify({}) })).json();
|
|
2506
2509
|
if (!i.success)
|
|
2507
|
-
throw new
|
|
2508
|
-
},
|
|
2510
|
+
throw new Zn(i.errorCode, i.errorMessage);
|
|
2511
|
+
}, Us = (e, t = 2) => {
|
|
2509
2512
|
const [r, n = ""] = e.toString().split(".");
|
|
2510
2513
|
return t <= 0 ? r : `${r}.${n ? n.slice(0, t).padEnd(t, "0") : "0".repeat(t)}`;
|
|
2511
|
-
},
|
|
2514
|
+
}, Fs = (e, t = "en") => {
|
|
2512
2515
|
if (!e)
|
|
2513
2516
|
return "";
|
|
2514
2517
|
try {
|
|
@@ -2520,115 +2523,115 @@ const Cs = async (e) => {
|
|
|
2520
2523
|
} catch {
|
|
2521
2524
|
return e;
|
|
2522
2525
|
}
|
|
2523
|
-
},
|
|
2526
|
+
}, Gs = (e) => {
|
|
2524
2527
|
window.postMessage({ type: "RakebackClaimTrigger", points: e }, window.location.href);
|
|
2525
|
-
},
|
|
2528
|
+
}, js = (e) => {
|
|
2526
2529
|
window.postMessage({ type: "RakebackClaimSuccess", points: e }, window.location.href);
|
|
2527
|
-
},
|
|
2530
|
+
}, Vs = (e) => {
|
|
2528
2531
|
window.postMessage({ type: "RakebackClaimFailed", message: e }, window.location.href);
|
|
2529
|
-
},
|
|
2532
|
+
}, Xs = () => {
|
|
2530
2533
|
window.postMessage({ type: "RakebackWalletMissing" }, window.location.href);
|
|
2531
2534
|
};
|
|
2532
|
-
function
|
|
2535
|
+
function Ws(e) {
|
|
2533
2536
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
2534
2537
|
}
|
|
2535
|
-
var
|
|
2536
|
-
return
|
|
2538
|
+
var zs = function(t) {
|
|
2539
|
+
return qs(t) && !Zs(t);
|
|
2537
2540
|
};
|
|
2538
|
-
function
|
|
2541
|
+
function qs(e) {
|
|
2539
2542
|
return !!e && typeof e == "object";
|
|
2540
2543
|
}
|
|
2541
|
-
function
|
|
2544
|
+
function Zs(e) {
|
|
2542
2545
|
var t = Object.prototype.toString.call(e);
|
|
2543
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
2546
|
+
return t === "[object RegExp]" || t === "[object Date]" || Js(e);
|
|
2544
2547
|
}
|
|
2545
|
-
var
|
|
2546
|
-
function
|
|
2547
|
-
return e.$$typeof ===
|
|
2548
|
+
var Ys = typeof Symbol == "function" && Symbol.for, Qs = Ys ? Symbol.for("react.element") : 60103;
|
|
2549
|
+
function Js(e) {
|
|
2550
|
+
return e.$$typeof === Qs;
|
|
2548
2551
|
}
|
|
2549
|
-
function
|
|
2552
|
+
function Ks(e) {
|
|
2550
2553
|
return Array.isArray(e) ? [] : {};
|
|
2551
2554
|
}
|
|
2552
|
-
function
|
|
2553
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
2555
|
+
function at(e, t) {
|
|
2556
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ue(Ks(e), e, t) : e;
|
|
2554
2557
|
}
|
|
2555
|
-
function
|
|
2558
|
+
function ea(e, t, r) {
|
|
2556
2559
|
return e.concat(t).map(function(n) {
|
|
2557
|
-
return
|
|
2560
|
+
return at(n, r);
|
|
2558
2561
|
});
|
|
2559
2562
|
}
|
|
2560
|
-
function
|
|
2563
|
+
function ta(e, t) {
|
|
2561
2564
|
if (!t.customMerge)
|
|
2562
|
-
return
|
|
2565
|
+
return Ue;
|
|
2563
2566
|
var r = t.customMerge(e);
|
|
2564
|
-
return typeof r == "function" ? r :
|
|
2567
|
+
return typeof r == "function" ? r : Ue;
|
|
2565
2568
|
}
|
|
2566
|
-
function
|
|
2569
|
+
function ra(e) {
|
|
2567
2570
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
2568
2571
|
return Object.propertyIsEnumerable.call(e, t);
|
|
2569
2572
|
}) : [];
|
|
2570
2573
|
}
|
|
2571
|
-
function
|
|
2572
|
-
return Object.keys(e).concat(
|
|
2574
|
+
function Lr(e) {
|
|
2575
|
+
return Object.keys(e).concat(ra(e));
|
|
2573
2576
|
}
|
|
2574
|
-
function
|
|
2577
|
+
function Yn(e, t) {
|
|
2575
2578
|
try {
|
|
2576
2579
|
return t in e;
|
|
2577
2580
|
} catch {
|
|
2578
2581
|
return !1;
|
|
2579
2582
|
}
|
|
2580
2583
|
}
|
|
2581
|
-
function
|
|
2582
|
-
return
|
|
2584
|
+
function na(e, t) {
|
|
2585
|
+
return Yn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
2583
2586
|
}
|
|
2584
|
-
function
|
|
2587
|
+
function ia(e, t, r) {
|
|
2585
2588
|
var n = {};
|
|
2586
|
-
return r.isMergeableObject(e) &&
|
|
2587
|
-
n[i] =
|
|
2588
|
-
}),
|
|
2589
|
-
|
|
2589
|
+
return r.isMergeableObject(e) && Lr(e).forEach(function(i) {
|
|
2590
|
+
n[i] = at(e[i], r);
|
|
2591
|
+
}), Lr(t).forEach(function(i) {
|
|
2592
|
+
na(e, i) || (Yn(e, i) && r.isMergeableObject(t[i]) ? n[i] = ta(i, r)(e[i], t[i], r) : n[i] = at(t[i], r));
|
|
2590
2593
|
}), n;
|
|
2591
2594
|
}
|
|
2592
|
-
function
|
|
2593
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
2595
|
+
function Ue(e, t, r) {
|
|
2596
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || ea, r.isMergeableObject = r.isMergeableObject || zs, r.cloneUnlessOtherwiseSpecified = at;
|
|
2594
2597
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
2595
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
2598
|
+
return s ? n ? r.arrayMerge(e, t, r) : ia(e, t, r) : at(t, r);
|
|
2596
2599
|
}
|
|
2597
|
-
|
|
2600
|
+
Ue.all = function(t, r) {
|
|
2598
2601
|
if (!Array.isArray(t))
|
|
2599
2602
|
throw new Error("first argument should be an array");
|
|
2600
2603
|
return t.reduce(function(n, i) {
|
|
2601
|
-
return
|
|
2604
|
+
return Ue(n, i, r);
|
|
2602
2605
|
}, {});
|
|
2603
2606
|
};
|
|
2604
|
-
var
|
|
2605
|
-
const
|
|
2606
|
-
var
|
|
2607
|
-
return
|
|
2607
|
+
var sa = Ue, aa = sa;
|
|
2608
|
+
const oa = /* @__PURE__ */ Ws(aa);
|
|
2609
|
+
var tr = function(e, t) {
|
|
2610
|
+
return tr = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
2608
2611
|
r.__proto__ = n;
|
|
2609
2612
|
} || function(r, n) {
|
|
2610
2613
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
2611
|
-
},
|
|
2614
|
+
}, tr(e, t);
|
|
2612
2615
|
};
|
|
2613
|
-
function
|
|
2616
|
+
function Mt(e, t) {
|
|
2614
2617
|
if (typeof t != "function" && t !== null)
|
|
2615
2618
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
2616
|
-
|
|
2619
|
+
tr(e, t);
|
|
2617
2620
|
function r() {
|
|
2618
2621
|
this.constructor = e;
|
|
2619
2622
|
}
|
|
2620
2623
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
2621
2624
|
}
|
|
2622
|
-
var
|
|
2623
|
-
return
|
|
2625
|
+
var K = function() {
|
|
2626
|
+
return K = Object.assign || function(t) {
|
|
2624
2627
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
2625
2628
|
r = arguments[n];
|
|
2626
2629
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
2627
2630
|
}
|
|
2628
2631
|
return t;
|
|
2629
|
-
},
|
|
2632
|
+
}, K.apply(this, arguments);
|
|
2630
2633
|
};
|
|
2631
|
-
function
|
|
2634
|
+
function ua(e, t) {
|
|
2632
2635
|
var r = {};
|
|
2633
2636
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
2634
2637
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -2636,42 +2639,42 @@ function ra(e, t) {
|
|
|
2636
2639
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
2637
2640
|
return r;
|
|
2638
2641
|
}
|
|
2639
|
-
function
|
|
2642
|
+
function Ft(e, t, r) {
|
|
2640
2643
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
2641
2644
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
2642
2645
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
2643
2646
|
}
|
|
2644
|
-
function
|
|
2645
|
-
var r = t && t.cache ? t.cache :
|
|
2647
|
+
function Gt(e, t) {
|
|
2648
|
+
var r = t && t.cache ? t.cache : va, n = t && t.serializer ? t.serializer : da, i = t && t.strategy ? t.strategy : ha;
|
|
2646
2649
|
return i(e, {
|
|
2647
2650
|
cache: r,
|
|
2648
2651
|
serializer: n
|
|
2649
2652
|
});
|
|
2650
2653
|
}
|
|
2651
|
-
function
|
|
2654
|
+
function la(e) {
|
|
2652
2655
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
2653
2656
|
}
|
|
2654
|
-
function
|
|
2655
|
-
var i =
|
|
2657
|
+
function fa(e, t, r, n) {
|
|
2658
|
+
var i = la(n) ? n : r(n), s = t.get(i);
|
|
2656
2659
|
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
2657
2660
|
}
|
|
2658
|
-
function
|
|
2661
|
+
function Qn(e, t, r) {
|
|
2659
2662
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
2660
2663
|
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
2661
2664
|
}
|
|
2662
|
-
function
|
|
2665
|
+
function Jn(e, t, r, n, i) {
|
|
2663
2666
|
return r.bind(t, e, n, i);
|
|
2664
2667
|
}
|
|
2665
|
-
function
|
|
2666
|
-
var r = e.length === 1 ?
|
|
2667
|
-
return
|
|
2668
|
+
function ha(e, t) {
|
|
2669
|
+
var r = e.length === 1 ? fa : Qn;
|
|
2670
|
+
return Jn(e, this, r, t.cache.create(), t.serializer);
|
|
2668
2671
|
}
|
|
2669
|
-
function
|
|
2670
|
-
return
|
|
2672
|
+
function ca(e, t) {
|
|
2673
|
+
return Jn(e, this, Qn, t.cache.create(), t.serializer);
|
|
2671
2674
|
}
|
|
2672
|
-
var
|
|
2675
|
+
var da = function() {
|
|
2673
2676
|
return JSON.stringify(arguments);
|
|
2674
|
-
},
|
|
2677
|
+
}, pa = (
|
|
2675
2678
|
/** @class */
|
|
2676
2679
|
function() {
|
|
2677
2680
|
function e() {
|
|
@@ -2683,20 +2686,20 @@ var oa = function() {
|
|
|
2683
2686
|
this.cache[t] = r;
|
|
2684
2687
|
}, e;
|
|
2685
2688
|
}()
|
|
2686
|
-
),
|
|
2689
|
+
), va = {
|
|
2687
2690
|
create: function() {
|
|
2688
|
-
return new
|
|
2691
|
+
return new pa();
|
|
2689
2692
|
}
|
|
2690
|
-
},
|
|
2691
|
-
variadic:
|
|
2692
|
-
},
|
|
2693
|
-
return
|
|
2693
|
+
}, jt = {
|
|
2694
|
+
variadic: ca
|
|
2695
|
+
}, Nt = function() {
|
|
2696
|
+
return Nt = Object.assign || function(t) {
|
|
2694
2697
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
2695
2698
|
r = arguments[n];
|
|
2696
2699
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
2697
2700
|
}
|
|
2698
2701
|
return t;
|
|
2699
|
-
},
|
|
2702
|
+
}, Nt.apply(this, arguments);
|
|
2700
2703
|
};
|
|
2701
2704
|
var v;
|
|
2702
2705
|
(function(e) {
|
|
@@ -2710,43 +2713,43 @@ var Fe;
|
|
|
2710
2713
|
(function(e) {
|
|
2711
2714
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
2712
2715
|
})(Fe || (Fe = {}));
|
|
2713
|
-
function
|
|
2716
|
+
function Mr(e) {
|
|
2714
2717
|
return e.type === w.literal;
|
|
2715
2718
|
}
|
|
2716
|
-
function
|
|
2719
|
+
function _a(e) {
|
|
2717
2720
|
return e.type === w.argument;
|
|
2718
2721
|
}
|
|
2719
|
-
function
|
|
2722
|
+
function Kn(e) {
|
|
2720
2723
|
return e.type === w.number;
|
|
2721
2724
|
}
|
|
2722
|
-
function
|
|
2725
|
+
function ei(e) {
|
|
2723
2726
|
return e.type === w.date;
|
|
2724
2727
|
}
|
|
2725
|
-
function
|
|
2728
|
+
function ti(e) {
|
|
2726
2729
|
return e.type === w.time;
|
|
2727
2730
|
}
|
|
2728
|
-
function
|
|
2731
|
+
function ri(e) {
|
|
2729
2732
|
return e.type === w.select;
|
|
2730
2733
|
}
|
|
2731
|
-
function
|
|
2734
|
+
function ni(e) {
|
|
2732
2735
|
return e.type === w.plural;
|
|
2733
2736
|
}
|
|
2734
|
-
function
|
|
2737
|
+
function ma(e) {
|
|
2735
2738
|
return e.type === w.pound;
|
|
2736
2739
|
}
|
|
2737
|
-
function
|
|
2740
|
+
function ii(e) {
|
|
2738
2741
|
return e.type === w.tag;
|
|
2739
2742
|
}
|
|
2740
|
-
function
|
|
2743
|
+
function si(e) {
|
|
2741
2744
|
return !!(e && typeof e == "object" && e.type === Fe.number);
|
|
2742
2745
|
}
|
|
2743
|
-
function
|
|
2746
|
+
function rr(e) {
|
|
2744
2747
|
return !!(e && typeof e == "object" && e.type === Fe.dateTime);
|
|
2745
2748
|
}
|
|
2746
|
-
var
|
|
2747
|
-
function
|
|
2749
|
+
var ai = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ba = /(?:[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;
|
|
2750
|
+
function ga(e) {
|
|
2748
2751
|
var t = {};
|
|
2749
|
-
return e.replace(
|
|
2752
|
+
return e.replace(ba, function(r) {
|
|
2750
2753
|
var n = r.length;
|
|
2751
2754
|
switch (r[0]) {
|
|
2752
2755
|
case "G":
|
|
@@ -2835,20 +2838,20 @@ function da(e) {
|
|
|
2835
2838
|
return "";
|
|
2836
2839
|
}), t;
|
|
2837
2840
|
}
|
|
2838
|
-
var
|
|
2839
|
-
return
|
|
2841
|
+
var S = function() {
|
|
2842
|
+
return S = Object.assign || function(t) {
|
|
2840
2843
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
2841
2844
|
r = arguments[n];
|
|
2842
2845
|
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
2843
2846
|
}
|
|
2844
2847
|
return t;
|
|
2845
|
-
},
|
|
2848
|
+
}, S.apply(this, arguments);
|
|
2846
2849
|
};
|
|
2847
|
-
var
|
|
2848
|
-
function
|
|
2850
|
+
var ya = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
2851
|
+
function Ea(e) {
|
|
2849
2852
|
if (e.length === 0)
|
|
2850
2853
|
throw new Error("Number skeleton cannot be empty");
|
|
2851
|
-
for (var t = e.split(
|
|
2854
|
+
for (var t = e.split(ya).filter(function(h) {
|
|
2852
2855
|
return h.length > 0;
|
|
2853
2856
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
2854
2857
|
var s = i[n], a = s.split("/");
|
|
@@ -2863,17 +2866,17 @@ function va(e) {
|
|
|
2863
2866
|
}
|
|
2864
2867
|
return r;
|
|
2865
2868
|
}
|
|
2866
|
-
function
|
|
2869
|
+
function xa(e) {
|
|
2867
2870
|
return e.replace(/^(.*?)-/, "");
|
|
2868
2871
|
}
|
|
2869
|
-
var
|
|
2870
|
-
function
|
|
2872
|
+
var $r = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, oi = /^(@+)?(\+|#+)?[rs]?$/g, wa = /(\*)(0+)|(#+)(0+)|(0+)/g, ui = /^(0+)$/;
|
|
2873
|
+
function kr(e) {
|
|
2871
2874
|
var t = {};
|
|
2872
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
2875
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(oi, function(r, n, i) {
|
|
2873
2876
|
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)), "";
|
|
2874
2877
|
}), t;
|
|
2875
2878
|
}
|
|
2876
|
-
function
|
|
2879
|
+
function li(e) {
|
|
2877
2880
|
switch (e) {
|
|
2878
2881
|
case "sign-auto":
|
|
2879
2882
|
return {
|
|
@@ -2913,7 +2916,7 @@ function ei(e) {
|
|
|
2913
2916
|
};
|
|
2914
2917
|
}
|
|
2915
2918
|
}
|
|
2916
|
-
function
|
|
2919
|
+
function Ta(e) {
|
|
2917
2920
|
var t;
|
|
2918
2921
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
2919
2922
|
notation: "engineering"
|
|
@@ -2921,17 +2924,17 @@ function ba(e) {
|
|
|
2921
2924
|
notation: "scientific"
|
|
2922
2925
|
}, e = e.slice(1)), t) {
|
|
2923
2926
|
var r = e.slice(0, 2);
|
|
2924
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
2927
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ui.test(e))
|
|
2925
2928
|
throw new Error("Malformed concise eng/scientific notation");
|
|
2926
2929
|
t.minimumIntegerDigits = e.length;
|
|
2927
2930
|
}
|
|
2928
2931
|
return t;
|
|
2929
2932
|
}
|
|
2930
|
-
function
|
|
2931
|
-
var t = {}, r =
|
|
2933
|
+
function Dr(e) {
|
|
2934
|
+
var t = {}, r = li(e);
|
|
2932
2935
|
return r || t;
|
|
2933
2936
|
}
|
|
2934
|
-
function
|
|
2937
|
+
function Sa(e) {
|
|
2935
2938
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
2936
2939
|
var i = n[r];
|
|
2937
2940
|
switch (i.stem) {
|
|
@@ -2955,7 +2958,7 @@ function ga(e) {
|
|
|
2955
2958
|
continue;
|
|
2956
2959
|
case "measure-unit":
|
|
2957
2960
|
case "unit":
|
|
2958
|
-
t.style = "unit", t.unit =
|
|
2961
|
+
t.style = "unit", t.unit = xa(i.options[0]);
|
|
2959
2962
|
continue;
|
|
2960
2963
|
case "compact-short":
|
|
2961
2964
|
case "K":
|
|
@@ -2966,13 +2969,13 @@ function ga(e) {
|
|
|
2966
2969
|
t.notation = "compact", t.compactDisplay = "long";
|
|
2967
2970
|
continue;
|
|
2968
2971
|
case "scientific":
|
|
2969
|
-
t =
|
|
2970
|
-
return
|
|
2972
|
+
t = S(S(S({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
2973
|
+
return S(S({}, u), Dr(l));
|
|
2971
2974
|
}, {}));
|
|
2972
2975
|
continue;
|
|
2973
2976
|
case "engineering":
|
|
2974
|
-
t =
|
|
2975
|
-
return
|
|
2977
|
+
t = S(S(S({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
2978
|
+
return S(S({}, u), Dr(l));
|
|
2976
2979
|
}, {}));
|
|
2977
2980
|
continue;
|
|
2978
2981
|
case "notation-simple":
|
|
@@ -3017,7 +3020,7 @@ function ga(e) {
|
|
|
3017
3020
|
case "integer-width":
|
|
3018
3021
|
if (i.options.length > 1)
|
|
3019
3022
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
3020
|
-
i.options[0].replace(
|
|
3023
|
+
i.options[0].replace(wa, function(u, l, f, c, h, d) {
|
|
3021
3024
|
if (l)
|
|
3022
3025
|
t.minimumIntegerDigits = f.length;
|
|
3023
3026
|
else {
|
|
@@ -3030,32 +3033,32 @@ function ga(e) {
|
|
|
3030
3033
|
});
|
|
3031
3034
|
continue;
|
|
3032
3035
|
}
|
|
3033
|
-
if (
|
|
3036
|
+
if (ui.test(i.stem)) {
|
|
3034
3037
|
t.minimumIntegerDigits = i.stem.length;
|
|
3035
3038
|
continue;
|
|
3036
3039
|
}
|
|
3037
|
-
if (
|
|
3040
|
+
if ($r.test(i.stem)) {
|
|
3038
3041
|
if (i.options.length > 1)
|
|
3039
3042
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
3040
|
-
i.stem.replace(
|
|
3043
|
+
i.stem.replace($r, function(u, l, f, c, h, d) {
|
|
3041
3044
|
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), "";
|
|
3042
3045
|
});
|
|
3043
3046
|
var s = i.options[0];
|
|
3044
|
-
s === "w" ? t =
|
|
3047
|
+
s === "w" ? t = S(S({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = S(S({}, t), kr(s)));
|
|
3045
3048
|
continue;
|
|
3046
3049
|
}
|
|
3047
|
-
if (
|
|
3048
|
-
t =
|
|
3050
|
+
if (oi.test(i.stem)) {
|
|
3051
|
+
t = S(S({}, t), kr(i.stem));
|
|
3049
3052
|
continue;
|
|
3050
3053
|
}
|
|
3051
|
-
var a =
|
|
3052
|
-
a && (t =
|
|
3053
|
-
var o =
|
|
3054
|
-
o && (t =
|
|
3054
|
+
var a = li(i.stem);
|
|
3055
|
+
a && (t = S(S({}, t), a));
|
|
3056
|
+
var o = Ta(i.stem);
|
|
3057
|
+
o && (t = S(S({}, t), o));
|
|
3055
3058
|
}
|
|
3056
3059
|
return t;
|
|
3057
3060
|
}
|
|
3058
|
-
var
|
|
3061
|
+
var gt = {
|
|
3059
3062
|
"001": [
|
|
3060
3063
|
"H",
|
|
3061
3064
|
"h"
|
|
@@ -4470,13 +4473,13 @@ var ht = {
|
|
|
4470
4473
|
"h"
|
|
4471
4474
|
]
|
|
4472
4475
|
};
|
|
4473
|
-
function
|
|
4476
|
+
function Ha(e, t) {
|
|
4474
4477
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
4475
4478
|
var i = e.charAt(n);
|
|
4476
4479
|
if (i === "j") {
|
|
4477
4480
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
4478
4481
|
s++, n++;
|
|
4479
|
-
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), u = "a", l =
|
|
4482
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), u = "a", l = Aa(t);
|
|
4480
4483
|
for ((l == "H" || l == "k") && (o = 0); o-- > 0; )
|
|
4481
4484
|
r += u;
|
|
4482
4485
|
for (; a-- > 0; )
|
|
@@ -4485,7 +4488,7 @@ function ya(e, t) {
|
|
|
4485
4488
|
}
|
|
4486
4489
|
return r;
|
|
4487
4490
|
}
|
|
4488
|
-
function
|
|
4491
|
+
function Aa(e) {
|
|
4489
4492
|
var t = e.hourCycle;
|
|
4490
4493
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
4491
4494
|
e.hourCycles && // @ts-ignore
|
|
@@ -4504,23 +4507,23 @@ function Ea(e) {
|
|
|
4504
4507
|
}
|
|
4505
4508
|
var r = e.language, n;
|
|
4506
4509
|
r !== "root" && (n = e.maximize().region);
|
|
4507
|
-
var i =
|
|
4510
|
+
var i = gt[n || ""] || gt[r || ""] || gt["".concat(r, "-001")] || gt["001"];
|
|
4508
4511
|
return i[0];
|
|
4509
4512
|
}
|
|
4510
|
-
var
|
|
4513
|
+
var Vt, Ba = new RegExp("^".concat(ai.source, "*")), Na = new RegExp("".concat(ai.source, "*$"));
|
|
4511
4514
|
function m(e, t) {
|
|
4512
4515
|
return { start: e, end: t };
|
|
4513
4516
|
}
|
|
4514
|
-
var
|
|
4517
|
+
var Oa = !!String.prototype.startsWith && "_a".startsWith("a", 1), Pa = !!String.fromCodePoint, Ca = !!Object.fromEntries, Ia = !!String.prototype.codePointAt, Ra = !!String.prototype.trimStart, La = !!String.prototype.trimEnd, Ma = !!Number.isSafeInteger, $a = Ma ? Number.isSafeInteger : function(e) {
|
|
4515
4518
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
4516
|
-
},
|
|
4519
|
+
}, nr = !0;
|
|
4517
4520
|
try {
|
|
4518
|
-
var
|
|
4519
|
-
|
|
4521
|
+
var ka = hi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
4522
|
+
nr = ((Vt = ka.exec("a")) === null || Vt === void 0 ? void 0 : Vt[0]) === "a";
|
|
4520
4523
|
} catch {
|
|
4521
|
-
|
|
4524
|
+
nr = !1;
|
|
4522
4525
|
}
|
|
4523
|
-
var
|
|
4526
|
+
var Ur = Oa ? (
|
|
4524
4527
|
// Native
|
|
4525
4528
|
function(t, r, n) {
|
|
4526
4529
|
return t.startsWith(r, n);
|
|
@@ -4530,7 +4533,7 @@ var Lr = Ta ? (
|
|
|
4530
4533
|
function(t, r, n) {
|
|
4531
4534
|
return t.slice(n, n + r.length) === r;
|
|
4532
4535
|
}
|
|
4533
|
-
),
|
|
4536
|
+
), ir = Pa ? String.fromCodePoint : (
|
|
4534
4537
|
// IE11
|
|
4535
4538
|
function() {
|
|
4536
4539
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -4542,9 +4545,9 @@ var Lr = Ta ? (
|
|
|
4542
4545
|
}
|
|
4543
4546
|
return n;
|
|
4544
4547
|
}
|
|
4545
|
-
),
|
|
4548
|
+
), Fr = (
|
|
4546
4549
|
// native
|
|
4547
|
-
|
|
4550
|
+
Ca ? Object.fromEntries : (
|
|
4548
4551
|
// Ponyfill
|
|
4549
4552
|
function(t) {
|
|
4550
4553
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -4554,7 +4557,7 @@ var Lr = Ta ? (
|
|
|
4554
4557
|
return r;
|
|
4555
4558
|
}
|
|
4556
4559
|
)
|
|
4557
|
-
),
|
|
4560
|
+
), fi = Ia ? (
|
|
4558
4561
|
// Native
|
|
4559
4562
|
function(t, r) {
|
|
4560
4563
|
return t.codePointAt(r);
|
|
@@ -4568,7 +4571,7 @@ var Lr = Ta ? (
|
|
|
4568
4571
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
4569
4572
|
}
|
|
4570
4573
|
}
|
|
4571
|
-
),
|
|
4574
|
+
), Da = Ra ? (
|
|
4572
4575
|
// Native
|
|
4573
4576
|
function(t) {
|
|
4574
4577
|
return t.trimStart();
|
|
@@ -4576,9 +4579,9 @@ var Lr = Ta ? (
|
|
|
4576
4579
|
) : (
|
|
4577
4580
|
// Ponyfill
|
|
4578
4581
|
function(t) {
|
|
4579
|
-
return t.replace(
|
|
4582
|
+
return t.replace(Ba, "");
|
|
4580
4583
|
}
|
|
4581
|
-
),
|
|
4584
|
+
), Ua = La ? (
|
|
4582
4585
|
// Native
|
|
4583
4586
|
function(t) {
|
|
4584
4587
|
return t.trimEnd();
|
|
@@ -4586,32 +4589,32 @@ var Lr = Ta ? (
|
|
|
4586
4589
|
) : (
|
|
4587
4590
|
// Ponyfill
|
|
4588
4591
|
function(t) {
|
|
4589
|
-
return t.replace(
|
|
4592
|
+
return t.replace(Na, "");
|
|
4590
4593
|
}
|
|
4591
4594
|
);
|
|
4592
|
-
function
|
|
4595
|
+
function hi(e, t) {
|
|
4593
4596
|
return new RegExp(e, t);
|
|
4594
4597
|
}
|
|
4595
|
-
var
|
|
4596
|
-
if (
|
|
4597
|
-
var
|
|
4598
|
-
|
|
4598
|
+
var sr;
|
|
4599
|
+
if (nr) {
|
|
4600
|
+
var Gr = hi("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
4601
|
+
sr = function(t, r) {
|
|
4599
4602
|
var n;
|
|
4600
|
-
|
|
4601
|
-
var i =
|
|
4603
|
+
Gr.lastIndex = r;
|
|
4604
|
+
var i = Gr.exec(t);
|
|
4602
4605
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
4603
4606
|
};
|
|
4604
4607
|
} else
|
|
4605
|
-
|
|
4608
|
+
sr = function(t, r) {
|
|
4606
4609
|
for (var n = []; ; ) {
|
|
4607
|
-
var i =
|
|
4608
|
-
if (i === void 0 ||
|
|
4610
|
+
var i = fi(t, r);
|
|
4611
|
+
if (i === void 0 || ci(i) || Va(i))
|
|
4609
4612
|
break;
|
|
4610
4613
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
4611
4614
|
}
|
|
4612
|
-
return
|
|
4615
|
+
return ir.apply(void 0, n);
|
|
4613
4616
|
};
|
|
4614
|
-
var
|
|
4617
|
+
var Fa = (
|
|
4615
4618
|
/** @class */
|
|
4616
4619
|
function() {
|
|
4617
4620
|
function e(t, r) {
|
|
@@ -4642,7 +4645,7 @@ var La = (
|
|
|
4642
4645
|
if (n)
|
|
4643
4646
|
break;
|
|
4644
4647
|
return this.error(v.UNMATCHED_CLOSING_TAG, m(this.clonePosition(), this.clonePosition()));
|
|
4645
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
4648
|
+
} else if (s === 60 && !this.ignoreTag && ar(this.peek() || 0)) {
|
|
4646
4649
|
var a = this.parseTag(t, r);
|
|
4647
4650
|
if (a.err)
|
|
4648
4651
|
return a;
|
|
@@ -4675,7 +4678,7 @@ var La = (
|
|
|
4675
4678
|
return s;
|
|
4676
4679
|
var a = s.val, o = this.clonePosition();
|
|
4677
4680
|
if (this.bumpIf("</")) {
|
|
4678
|
-
if (this.isEOF() || !
|
|
4681
|
+
if (this.isEOF() || !ar(this.char()))
|
|
4679
4682
|
return this.error(v.INVALID_TAG, m(o, this.clonePosition()));
|
|
4680
4683
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
4681
4684
|
return i !== l ? this.error(v.UNMATCHED_CLOSING_TAG, m(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -4693,7 +4696,7 @@ var La = (
|
|
|
4693
4696
|
return this.error(v.INVALID_TAG, m(n, this.clonePosition()));
|
|
4694
4697
|
}, e.prototype.parseTagName = function() {
|
|
4695
4698
|
var t = this.offset();
|
|
4696
|
-
for (this.bump(); !this.isEOF() &&
|
|
4699
|
+
for (this.bump(); !this.isEOF() && ja(this.char()); )
|
|
4697
4700
|
this.bump();
|
|
4698
4701
|
return this.message.slice(t, this.offset());
|
|
4699
4702
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -4722,7 +4725,7 @@ var La = (
|
|
|
4722
4725
|
};
|
|
4723
4726
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
4724
4727
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
4725
|
-
!
|
|
4728
|
+
!Ga(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
4726
4729
|
}, e.prototype.tryParseQuote = function(t) {
|
|
4727
4730
|
if (this.isEOF() || this.char() !== 39)
|
|
4728
4731
|
return null;
|
|
@@ -4756,12 +4759,12 @@ var La = (
|
|
|
4756
4759
|
r.push(n);
|
|
4757
4760
|
this.bump();
|
|
4758
4761
|
}
|
|
4759
|
-
return
|
|
4762
|
+
return ir.apply(void 0, r);
|
|
4760
4763
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
4761
4764
|
if (this.isEOF())
|
|
4762
4765
|
return null;
|
|
4763
4766
|
var n = this.char();
|
|
4764
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
4767
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ir(n));
|
|
4765
4768
|
}, e.prototype.parseArgument = function(t, r) {
|
|
4766
4769
|
var n = this.clonePosition();
|
|
4767
4770
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -4790,7 +4793,7 @@ var La = (
|
|
|
4790
4793
|
return this.error(v.MALFORMED_ARGUMENT, m(n, this.clonePosition()));
|
|
4791
4794
|
}
|
|
4792
4795
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
4793
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
4796
|
+
var t = this.clonePosition(), r = this.offset(), n = sr(this.message, r), i = r + n.length;
|
|
4794
4797
|
this.bumpTo(i);
|
|
4795
4798
|
var s = this.clonePosition(), a = m(t, s);
|
|
4796
4799
|
return { value: n, location: a };
|
|
@@ -4809,7 +4812,7 @@ var La = (
|
|
|
4809
4812
|
var f = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
4810
4813
|
if (c.err)
|
|
4811
4814
|
return c;
|
|
4812
|
-
var h =
|
|
4815
|
+
var h = Ua(c.val);
|
|
4813
4816
|
if (h.length === 0)
|
|
4814
4817
|
return this.error(v.EXPECT_ARGUMENT_STYLE, m(this.clonePosition(), this.clonePosition()));
|
|
4815
4818
|
var d = m(f, this.clonePosition());
|
|
@@ -4818,28 +4821,28 @@ var La = (
|
|
|
4818
4821
|
var p = this.tryParseArgumentClose(i);
|
|
4819
4822
|
if (p.err)
|
|
4820
4823
|
return p;
|
|
4821
|
-
var
|
|
4822
|
-
if (l &&
|
|
4823
|
-
var
|
|
4824
|
+
var E = m(i, this.clonePosition());
|
|
4825
|
+
if (l && Ur(l?.style, "::", 0)) {
|
|
4826
|
+
var T = Da(l.style.slice(2));
|
|
4824
4827
|
if (o === "number") {
|
|
4825
|
-
var c = this.parseNumberSkeletonFromString(
|
|
4828
|
+
var c = this.parseNumberSkeletonFromString(T, l.styleLocation);
|
|
4826
4829
|
return c.err ? c : {
|
|
4827
|
-
val: { type: w.number, value: n, location:
|
|
4830
|
+
val: { type: w.number, value: n, location: E, style: c.val },
|
|
4828
4831
|
err: null
|
|
4829
4832
|
};
|
|
4830
4833
|
} else {
|
|
4831
|
-
if (
|
|
4832
|
-
return this.error(v.EXPECT_DATE_TIME_SKELETON,
|
|
4833
|
-
var
|
|
4834
|
-
this.locale && (
|
|
4834
|
+
if (T.length === 0)
|
|
4835
|
+
return this.error(v.EXPECT_DATE_TIME_SKELETON, E);
|
|
4836
|
+
var J = T;
|
|
4837
|
+
this.locale && (J = Ha(T, this.locale));
|
|
4835
4838
|
var h = {
|
|
4836
4839
|
type: Fe.dateTime,
|
|
4837
|
-
pattern:
|
|
4840
|
+
pattern: J,
|
|
4838
4841
|
location: l.styleLocation,
|
|
4839
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
4840
|
-
},
|
|
4842
|
+
parsedOptions: this.shouldParseSkeletons ? ga(J) : {}
|
|
4843
|
+
}, D = o === "date" ? w.date : w.time;
|
|
4841
4844
|
return {
|
|
4842
|
-
val: { type:
|
|
4845
|
+
val: { type: D, value: n, location: E, style: h },
|
|
4843
4846
|
err: null
|
|
4844
4847
|
};
|
|
4845
4848
|
}
|
|
@@ -4848,7 +4851,7 @@ var La = (
|
|
|
4848
4851
|
val: {
|
|
4849
4852
|
type: o === "number" ? w.number : o === "date" ? w.date : w.time,
|
|
4850
4853
|
value: n,
|
|
4851
|
-
location:
|
|
4854
|
+
location: E,
|
|
4852
4855
|
style: (s = l?.style) !== null && s !== void 0 ? s : null
|
|
4853
4856
|
},
|
|
4854
4857
|
err: null
|
|
@@ -4857,43 +4860,43 @@ var La = (
|
|
|
4857
4860
|
case "plural":
|
|
4858
4861
|
case "selectordinal":
|
|
4859
4862
|
case "select": {
|
|
4860
|
-
var
|
|
4863
|
+
var F = this.clonePosition();
|
|
4861
4864
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
4862
|
-
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, m(
|
|
4865
|
+
return this.error(v.EXPECT_SELECT_ARGUMENT_OPTIONS, m(F, Nt({}, F)));
|
|
4863
4866
|
this.bumpSpace();
|
|
4864
|
-
var
|
|
4865
|
-
if (o !== "select" &&
|
|
4867
|
+
var ge = this.parseIdentifierIfPossible(), re = 0;
|
|
4868
|
+
if (o !== "select" && ge.value === "offset") {
|
|
4866
4869
|
if (!this.bumpIf(":"))
|
|
4867
4870
|
return this.error(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m(this.clonePosition(), this.clonePosition()));
|
|
4868
4871
|
this.bumpSpace();
|
|
4869
4872
|
var c = this.tryParseDecimalInteger(v.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
4870
4873
|
if (c.err)
|
|
4871
4874
|
return c;
|
|
4872
|
-
this.bumpSpace(),
|
|
4875
|
+
this.bumpSpace(), ge = this.parseIdentifierIfPossible(), re = c.val;
|
|
4873
4876
|
}
|
|
4874
|
-
var
|
|
4875
|
-
if (
|
|
4876
|
-
return
|
|
4877
|
+
var ye = this.tryParsePluralOrSelectOptions(t, o, r, ge);
|
|
4878
|
+
if (ye.err)
|
|
4879
|
+
return ye;
|
|
4877
4880
|
var p = this.tryParseArgumentClose(i);
|
|
4878
4881
|
if (p.err)
|
|
4879
4882
|
return p;
|
|
4880
|
-
var
|
|
4883
|
+
var ct = m(i, this.clonePosition());
|
|
4881
4884
|
return o === "select" ? {
|
|
4882
4885
|
val: {
|
|
4883
4886
|
type: w.select,
|
|
4884
4887
|
value: n,
|
|
4885
|
-
options:
|
|
4886
|
-
location:
|
|
4888
|
+
options: Fr(ye.val),
|
|
4889
|
+
location: ct
|
|
4887
4890
|
},
|
|
4888
4891
|
err: null
|
|
4889
4892
|
} : {
|
|
4890
4893
|
val: {
|
|
4891
4894
|
type: w.plural,
|
|
4892
4895
|
value: n,
|
|
4893
|
-
options:
|
|
4894
|
-
offset:
|
|
4896
|
+
options: Fr(ye.val),
|
|
4897
|
+
offset: re,
|
|
4895
4898
|
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
4896
|
-
location:
|
|
4899
|
+
location: ct
|
|
4897
4900
|
},
|
|
4898
4901
|
err: null
|
|
4899
4902
|
};
|
|
@@ -4941,7 +4944,7 @@ var La = (
|
|
|
4941
4944
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
4942
4945
|
var n = [];
|
|
4943
4946
|
try {
|
|
4944
|
-
n =
|
|
4947
|
+
n = Ea(t);
|
|
4945
4948
|
} catch {
|
|
4946
4949
|
return this.error(v.INVALID_NUMBER_SKELETON, r);
|
|
4947
4950
|
}
|
|
@@ -4950,7 +4953,7 @@ var La = (
|
|
|
4950
4953
|
type: Fe.number,
|
|
4951
4954
|
tokens: n,
|
|
4952
4955
|
location: r,
|
|
4953
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
4956
|
+
parsedOptions: this.shouldParseSkeletons ? Sa(n) : {}
|
|
4954
4957
|
},
|
|
4955
4958
|
err: null
|
|
4956
4959
|
};
|
|
@@ -4975,9 +4978,9 @@ var La = (
|
|
|
4975
4978
|
var p = this.parseMessage(t + 1, r, n);
|
|
4976
4979
|
if (p.err)
|
|
4977
4980
|
return p;
|
|
4978
|
-
var
|
|
4979
|
-
if (
|
|
4980
|
-
return
|
|
4981
|
+
var E = this.tryParseArgumentClose(d);
|
|
4982
|
+
if (E.err)
|
|
4983
|
+
return E;
|
|
4981
4984
|
o.push([
|
|
4982
4985
|
l,
|
|
4983
4986
|
{
|
|
@@ -4998,7 +5001,7 @@ var La = (
|
|
|
4998
5001
|
break;
|
|
4999
5002
|
}
|
|
5000
5003
|
var u = m(i, this.clonePosition());
|
|
5001
|
-
return s ? (a *= n,
|
|
5004
|
+
return s ? (a *= n, $a(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
5002
5005
|
}, e.prototype.offset = function() {
|
|
5003
5006
|
return this.position.offset;
|
|
5004
5007
|
}, e.prototype.isEOF = function() {
|
|
@@ -5013,7 +5016,7 @@ var La = (
|
|
|
5013
5016
|
var t = this.position.offset;
|
|
5014
5017
|
if (t >= this.message.length)
|
|
5015
5018
|
throw Error("out of bound");
|
|
5016
|
-
var r =
|
|
5019
|
+
var r = fi(this.message, t);
|
|
5017
5020
|
if (r === void 0)
|
|
5018
5021
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
5019
5022
|
return r;
|
|
@@ -5032,7 +5035,7 @@ var La = (
|
|
|
5032
5035
|
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);
|
|
5033
5036
|
}
|
|
5034
5037
|
}, e.prototype.bumpIf = function(t) {
|
|
5035
|
-
if (
|
|
5038
|
+
if (Ur(this.message, t, this.offset())) {
|
|
5036
5039
|
for (var r = 0; r < t.length; r++)
|
|
5037
5040
|
this.bump();
|
|
5038
5041
|
return !0;
|
|
@@ -5054,7 +5057,7 @@ var La = (
|
|
|
5054
5057
|
break;
|
|
5055
5058
|
}
|
|
5056
5059
|
}, e.prototype.bumpSpace = function() {
|
|
5057
|
-
for (; !this.isEOF() &&
|
|
5060
|
+
for (; !this.isEOF() && ci(this.char()); )
|
|
5058
5061
|
this.bump();
|
|
5059
5062
|
}, e.prototype.peek = function() {
|
|
5060
5063
|
if (this.isEOF())
|
|
@@ -5064,46 +5067,46 @@ var La = (
|
|
|
5064
5067
|
}, e;
|
|
5065
5068
|
}()
|
|
5066
5069
|
);
|
|
5067
|
-
function
|
|
5070
|
+
function ar(e) {
|
|
5068
5071
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
5069
5072
|
}
|
|
5070
|
-
function
|
|
5071
|
-
return
|
|
5073
|
+
function Ga(e) {
|
|
5074
|
+
return ar(e) || e === 47;
|
|
5072
5075
|
}
|
|
5073
|
-
function
|
|
5076
|
+
function ja(e) {
|
|
5074
5077
|
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;
|
|
5075
5078
|
}
|
|
5076
|
-
function
|
|
5079
|
+
function ci(e) {
|
|
5077
5080
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
5078
5081
|
}
|
|
5079
|
-
function
|
|
5082
|
+
function Va(e) {
|
|
5080
5083
|
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;
|
|
5081
5084
|
}
|
|
5082
|
-
function
|
|
5085
|
+
function or(e) {
|
|
5083
5086
|
e.forEach(function(t) {
|
|
5084
|
-
if (delete t.location,
|
|
5087
|
+
if (delete t.location, ri(t) || ni(t))
|
|
5085
5088
|
for (var r in t.options)
|
|
5086
|
-
delete t.options[r].location,
|
|
5087
|
-
else
|
|
5089
|
+
delete t.options[r].location, or(t.options[r].value);
|
|
5090
|
+
else Kn(t) && si(t.style) || (ei(t) || ti(t)) && rr(t.style) ? delete t.style.location : ii(t) && or(t.children);
|
|
5088
5091
|
});
|
|
5089
5092
|
}
|
|
5090
|
-
function
|
|
5091
|
-
t === void 0 && (t = {}), t =
|
|
5092
|
-
var r = new
|
|
5093
|
+
function Xa(e, t) {
|
|
5094
|
+
t === void 0 && (t = {}), t = Nt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
5095
|
+
var r = new Fa(e, t).parse();
|
|
5093
5096
|
if (r.err) {
|
|
5094
5097
|
var n = SyntaxError(v[r.err.kind]);
|
|
5095
5098
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
5096
5099
|
}
|
|
5097
|
-
return t?.captureLocation ||
|
|
5100
|
+
return t?.captureLocation || or(r.val), r.val;
|
|
5098
5101
|
}
|
|
5099
|
-
var
|
|
5102
|
+
var Ge;
|
|
5100
5103
|
(function(e) {
|
|
5101
5104
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
5102
|
-
})(
|
|
5103
|
-
var
|
|
5105
|
+
})(Ge || (Ge = {}));
|
|
5106
|
+
var $t = (
|
|
5104
5107
|
/** @class */
|
|
5105
5108
|
function(e) {
|
|
5106
|
-
|
|
5109
|
+
Mt(t, e);
|
|
5107
5110
|
function t(r, n, i) {
|
|
5108
5111
|
var s = e.call(this, r) || this;
|
|
5109
5112
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -5112,155 +5115,155 @@ var Pt = (
|
|
|
5112
5115
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
5113
5116
|
}, t;
|
|
5114
5117
|
}(Error)
|
|
5115
|
-
),
|
|
5118
|
+
), jr = (
|
|
5116
5119
|
/** @class */
|
|
5117
5120
|
function(e) {
|
|
5118
|
-
|
|
5121
|
+
Mt(t, e);
|
|
5119
5122
|
function t(r, n, i, s) {
|
|
5120
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
5123
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, s) || this;
|
|
5121
5124
|
}
|
|
5122
5125
|
return t;
|
|
5123
|
-
}(
|
|
5124
|
-
),
|
|
5126
|
+
}($t)
|
|
5127
|
+
), Wa = (
|
|
5125
5128
|
/** @class */
|
|
5126
5129
|
function(e) {
|
|
5127
|
-
|
|
5130
|
+
Mt(t, e);
|
|
5128
5131
|
function t(r, n, i) {
|
|
5129
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
5132
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ge.INVALID_VALUE, i) || this;
|
|
5130
5133
|
}
|
|
5131
5134
|
return t;
|
|
5132
|
-
}(
|
|
5133
|
-
),
|
|
5135
|
+
}($t)
|
|
5136
|
+
), za = (
|
|
5134
5137
|
/** @class */
|
|
5135
5138
|
function(e) {
|
|
5136
|
-
|
|
5139
|
+
Mt(t, e);
|
|
5137
5140
|
function t(r, n) {
|
|
5138
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
5141
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ge.MISSING_VALUE, n) || this;
|
|
5139
5142
|
}
|
|
5140
5143
|
return t;
|
|
5141
|
-
}(
|
|
5142
|
-
),
|
|
5144
|
+
}($t)
|
|
5145
|
+
), R;
|
|
5143
5146
|
(function(e) {
|
|
5144
5147
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
5145
|
-
})(
|
|
5146
|
-
function
|
|
5148
|
+
})(R || (R = {}));
|
|
5149
|
+
function qa(e) {
|
|
5147
5150
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
5148
5151
|
var n = t[t.length - 1];
|
|
5149
|
-
return !n || n.type !==
|
|
5152
|
+
return !n || n.type !== R.literal || r.type !== R.literal ? t.push(r) : n.value += r.value, t;
|
|
5150
5153
|
}, []);
|
|
5151
5154
|
}
|
|
5152
|
-
function
|
|
5155
|
+
function Za(e) {
|
|
5153
5156
|
return typeof e == "function";
|
|
5154
5157
|
}
|
|
5155
|
-
function
|
|
5156
|
-
if (e.length === 1 &&
|
|
5158
|
+
function Et(e, t, r, n, i, s, a) {
|
|
5159
|
+
if (e.length === 1 && Mr(e[0]))
|
|
5157
5160
|
return [
|
|
5158
5161
|
{
|
|
5159
|
-
type:
|
|
5162
|
+
type: R.literal,
|
|
5160
5163
|
value: e[0].value
|
|
5161
5164
|
}
|
|
5162
5165
|
];
|
|
5163
5166
|
for (var o = [], u = 0, l = e; u < l.length; u++) {
|
|
5164
5167
|
var f = l[u];
|
|
5165
|
-
if (
|
|
5168
|
+
if (Mr(f)) {
|
|
5166
5169
|
o.push({
|
|
5167
|
-
type:
|
|
5170
|
+
type: R.literal,
|
|
5168
5171
|
value: f.value
|
|
5169
5172
|
});
|
|
5170
5173
|
continue;
|
|
5171
5174
|
}
|
|
5172
|
-
if (
|
|
5175
|
+
if (ma(f)) {
|
|
5173
5176
|
typeof s == "number" && o.push({
|
|
5174
|
-
type:
|
|
5177
|
+
type: R.literal,
|
|
5175
5178
|
value: r.getNumberFormat(t).format(s)
|
|
5176
5179
|
});
|
|
5177
5180
|
continue;
|
|
5178
5181
|
}
|
|
5179
5182
|
var c = f.value;
|
|
5180
5183
|
if (!(i && c in i))
|
|
5181
|
-
throw new
|
|
5184
|
+
throw new za(c, a);
|
|
5182
5185
|
var h = i[c];
|
|
5183
|
-
if (
|
|
5186
|
+
if (_a(f)) {
|
|
5184
5187
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), o.push({
|
|
5185
|
-
type: typeof h == "string" ?
|
|
5188
|
+
type: typeof h == "string" ? R.literal : R.object,
|
|
5186
5189
|
value: h
|
|
5187
5190
|
});
|
|
5188
5191
|
continue;
|
|
5189
5192
|
}
|
|
5190
|
-
if (
|
|
5191
|
-
var d = typeof f.style == "string" ? n.date[f.style] :
|
|
5193
|
+
if (ei(f)) {
|
|
5194
|
+
var d = typeof f.style == "string" ? n.date[f.style] : rr(f.style) ? f.style.parsedOptions : void 0;
|
|
5192
5195
|
o.push({
|
|
5193
|
-
type:
|
|
5196
|
+
type: R.literal,
|
|
5194
5197
|
value: r.getDateTimeFormat(t, d).format(h)
|
|
5195
5198
|
});
|
|
5196
5199
|
continue;
|
|
5197
5200
|
}
|
|
5198
|
-
if (
|
|
5199
|
-
var d = typeof f.style == "string" ? n.time[f.style] :
|
|
5201
|
+
if (ti(f)) {
|
|
5202
|
+
var d = typeof f.style == "string" ? n.time[f.style] : rr(f.style) ? f.style.parsedOptions : n.time.medium;
|
|
5200
5203
|
o.push({
|
|
5201
|
-
type:
|
|
5204
|
+
type: R.literal,
|
|
5202
5205
|
value: r.getDateTimeFormat(t, d).format(h)
|
|
5203
5206
|
});
|
|
5204
5207
|
continue;
|
|
5205
5208
|
}
|
|
5206
|
-
if (
|
|
5207
|
-
var d = typeof f.style == "string" ? n.number[f.style] :
|
|
5209
|
+
if (Kn(f)) {
|
|
5210
|
+
var d = typeof f.style == "string" ? n.number[f.style] : si(f.style) ? f.style.parsedOptions : void 0;
|
|
5208
5211
|
d && d.scale && (h = h * (d.scale || 1)), o.push({
|
|
5209
|
-
type:
|
|
5212
|
+
type: R.literal,
|
|
5210
5213
|
value: r.getNumberFormat(t, d).format(h)
|
|
5211
5214
|
});
|
|
5212
5215
|
continue;
|
|
5213
5216
|
}
|
|
5214
|
-
if (
|
|
5215
|
-
var p = f.children,
|
|
5216
|
-
if (!
|
|
5217
|
-
throw new
|
|
5218
|
-
var
|
|
5219
|
-
return
|
|
5217
|
+
if (ii(f)) {
|
|
5218
|
+
var p = f.children, E = f.value, T = i[E];
|
|
5219
|
+
if (!Za(T))
|
|
5220
|
+
throw new Wa(E, "function", a);
|
|
5221
|
+
var J = Et(p, t, r, n, i, s), D = T(J.map(function(re) {
|
|
5222
|
+
return re.value;
|
|
5220
5223
|
}));
|
|
5221
|
-
Array.isArray(
|
|
5224
|
+
Array.isArray(D) || (D = [D]), o.push.apply(o, D.map(function(re) {
|
|
5222
5225
|
return {
|
|
5223
|
-
type: typeof
|
|
5224
|
-
value:
|
|
5226
|
+
type: typeof re == "string" ? R.literal : R.object,
|
|
5227
|
+
value: re
|
|
5225
5228
|
};
|
|
5226
5229
|
}));
|
|
5227
5230
|
}
|
|
5228
|
-
if (
|
|
5229
|
-
var
|
|
5230
|
-
if (!
|
|
5231
|
-
throw new
|
|
5232
|
-
o.push.apply(o,
|
|
5231
|
+
if (ri(f)) {
|
|
5232
|
+
var F = f.options[h] || f.options.other;
|
|
5233
|
+
if (!F)
|
|
5234
|
+
throw new jr(f.value, h, Object.keys(f.options), a);
|
|
5235
|
+
o.push.apply(o, Et(F.value, t, r, n, i));
|
|
5233
5236
|
continue;
|
|
5234
5237
|
}
|
|
5235
|
-
if (
|
|
5236
|
-
var
|
|
5237
|
-
if (!
|
|
5238
|
+
if (ni(f)) {
|
|
5239
|
+
var F = f.options["=".concat(h)];
|
|
5240
|
+
if (!F) {
|
|
5238
5241
|
if (!Intl.PluralRules)
|
|
5239
|
-
throw new
|
|
5242
|
+
throw new $t(`Intl.PluralRules is not available in this environment.
|
|
5240
5243
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5241
|
-
`,
|
|
5242
|
-
var
|
|
5243
|
-
|
|
5244
|
+
`, Ge.MISSING_INTL_API, a);
|
|
5245
|
+
var ge = r.getPluralRules(t, { type: f.pluralType }).select(h - (f.offset || 0));
|
|
5246
|
+
F = f.options[ge] || f.options.other;
|
|
5244
5247
|
}
|
|
5245
|
-
if (!
|
|
5246
|
-
throw new
|
|
5247
|
-
o.push.apply(o,
|
|
5248
|
+
if (!F)
|
|
5249
|
+
throw new jr(f.value, h, Object.keys(f.options), a);
|
|
5250
|
+
o.push.apply(o, Et(F.value, t, r, n, i, h - (f.offset || 0)));
|
|
5248
5251
|
continue;
|
|
5249
5252
|
}
|
|
5250
5253
|
}
|
|
5251
|
-
return
|
|
5254
|
+
return qa(o);
|
|
5252
5255
|
}
|
|
5253
|
-
function
|
|
5254
|
-
return t ?
|
|
5255
|
-
return r[n] =
|
|
5256
|
+
function Ya(e, t) {
|
|
5257
|
+
return t ? K(K(K({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
5258
|
+
return r[n] = K(K({}, e[n]), t[n] || {}), r;
|
|
5256
5259
|
}, {})) : e;
|
|
5257
5260
|
}
|
|
5258
|
-
function
|
|
5261
|
+
function Qa(e, t) {
|
|
5259
5262
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
5260
|
-
return r[n] =
|
|
5261
|
-
},
|
|
5263
|
+
return r[n] = Ya(e[n], t[n]), r;
|
|
5264
|
+
}, K({}, e)) : e;
|
|
5262
5265
|
}
|
|
5263
|
-
function
|
|
5266
|
+
function Xt(e) {
|
|
5264
5267
|
return {
|
|
5265
5268
|
create: function() {
|
|
5266
5269
|
return {
|
|
@@ -5274,39 +5277,39 @@ function Ut(e) {
|
|
|
5274
5277
|
}
|
|
5275
5278
|
};
|
|
5276
5279
|
}
|
|
5277
|
-
function
|
|
5280
|
+
function Ja(e) {
|
|
5278
5281
|
return e === void 0 && (e = {
|
|
5279
5282
|
number: {},
|
|
5280
5283
|
dateTime: {},
|
|
5281
5284
|
pluralRules: {}
|
|
5282
5285
|
}), {
|
|
5283
|
-
getNumberFormat:
|
|
5286
|
+
getNumberFormat: Gt(function() {
|
|
5284
5287
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
5285
5288
|
r[n] = arguments[n];
|
|
5286
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
5289
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ft([void 0], r, !1)))();
|
|
5287
5290
|
}, {
|
|
5288
|
-
cache:
|
|
5289
|
-
strategy:
|
|
5291
|
+
cache: Xt(e.number),
|
|
5292
|
+
strategy: jt.variadic
|
|
5290
5293
|
}),
|
|
5291
|
-
getDateTimeFormat:
|
|
5294
|
+
getDateTimeFormat: Gt(function() {
|
|
5292
5295
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
5293
5296
|
r[n] = arguments[n];
|
|
5294
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
5297
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ft([void 0], r, !1)))();
|
|
5295
5298
|
}, {
|
|
5296
|
-
cache:
|
|
5297
|
-
strategy:
|
|
5299
|
+
cache: Xt(e.dateTime),
|
|
5300
|
+
strategy: jt.variadic
|
|
5298
5301
|
}),
|
|
5299
|
-
getPluralRules:
|
|
5302
|
+
getPluralRules: Gt(function() {
|
|
5300
5303
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
5301
5304
|
r[n] = arguments[n];
|
|
5302
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
5305
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ft([void 0], r, !1)))();
|
|
5303
5306
|
}, {
|
|
5304
|
-
cache:
|
|
5305
|
-
strategy:
|
|
5307
|
+
cache: Xt(e.pluralRules),
|
|
5308
|
+
strategy: jt.variadic
|
|
5306
5309
|
})
|
|
5307
5310
|
};
|
|
5308
5311
|
}
|
|
5309
|
-
var
|
|
5312
|
+
var Ka = (
|
|
5310
5313
|
/** @class */
|
|
5311
5314
|
function() {
|
|
5312
5315
|
function e(t, r, n, i) {
|
|
@@ -5321,11 +5324,11 @@ var qa = (
|
|
|
5321
5324
|
if (l.length === 1)
|
|
5322
5325
|
return l[0].value;
|
|
5323
5326
|
var f = l.reduce(function(c, h) {
|
|
5324
|
-
return !c.length || h.type !==
|
|
5327
|
+
return !c.length || h.type !== R.literal || typeof c[c.length - 1] != "string" ? c.push(h.value) : c[c.length - 1] += h.value, c;
|
|
5325
5328
|
}, []);
|
|
5326
5329
|
return f.length <= 1 ? f[0] || "" : f;
|
|
5327
5330
|
}, this.formatToParts = function(u) {
|
|
5328
|
-
return
|
|
5331
|
+
return Et(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
|
|
5329
5332
|
}, this.resolvedOptions = function() {
|
|
5330
5333
|
var u;
|
|
5331
5334
|
return {
|
|
@@ -5338,13 +5341,13 @@ var qa = (
|
|
|
5338
5341
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
5339
5342
|
var a = i || {};
|
|
5340
5343
|
a.formatters;
|
|
5341
|
-
var o =
|
|
5342
|
-
this.ast = e.__parse(t,
|
|
5344
|
+
var o = ua(a, ["formatters"]);
|
|
5345
|
+
this.ast = e.__parse(t, K(K({}, o), { locale: this.resolvedLocale }));
|
|
5343
5346
|
} else
|
|
5344
5347
|
this.ast = t;
|
|
5345
5348
|
if (!Array.isArray(this.ast))
|
|
5346
5349
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
5347
|
-
this.formats =
|
|
5350
|
+
this.formats = Qa(e.formats, n), this.formatters = i && i.formatters || Ja(this.formatterCache);
|
|
5348
5351
|
}
|
|
5349
5352
|
return Object.defineProperty(e, "defaultLocale", {
|
|
5350
5353
|
get: function() {
|
|
@@ -5357,7 +5360,7 @@ var qa = (
|
|
|
5357
5360
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
5358
5361
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
5359
5362
|
}
|
|
5360
|
-
}, e.__parse =
|
|
5363
|
+
}, e.__parse = Xa, e.formats = {
|
|
5361
5364
|
number: {
|
|
5362
5365
|
integer: {
|
|
5363
5366
|
maximumFractionDigits: 0
|
|
@@ -5418,7 +5421,7 @@ var qa = (
|
|
|
5418
5421
|
}, e;
|
|
5419
5422
|
}()
|
|
5420
5423
|
);
|
|
5421
|
-
function
|
|
5424
|
+
function eo(e, t) {
|
|
5422
5425
|
if (t == null)
|
|
5423
5426
|
return;
|
|
5424
5427
|
if (t in e)
|
|
@@ -5439,92 +5442,92 @@ function za(e, t) {
|
|
|
5439
5442
|
n = void 0;
|
|
5440
5443
|
return n;
|
|
5441
5444
|
}
|
|
5442
|
-
const
|
|
5445
|
+
const de = {}, to = (e, t, r) => r && (t in de || (de[t] = {}), e in de[t] || (de[t][e] = r), r), di = (e, t) => {
|
|
5443
5446
|
if (t == null)
|
|
5444
5447
|
return;
|
|
5445
|
-
if (t in
|
|
5446
|
-
return
|
|
5447
|
-
const r =
|
|
5448
|
+
if (t in de && e in de[t])
|
|
5449
|
+
return de[t][e];
|
|
5450
|
+
const r = kt(t);
|
|
5448
5451
|
for (let n = 0; n < r.length; n++) {
|
|
5449
|
-
const i = r[n], s =
|
|
5452
|
+
const i = r[n], s = no(i, e);
|
|
5450
5453
|
if (s)
|
|
5451
|
-
return
|
|
5454
|
+
return to(e, t, s);
|
|
5452
5455
|
}
|
|
5453
5456
|
};
|
|
5454
|
-
let
|
|
5455
|
-
const
|
|
5456
|
-
function
|
|
5457
|
-
return
|
|
5457
|
+
let Er;
|
|
5458
|
+
const Xe = Lt({});
|
|
5459
|
+
function ro(e) {
|
|
5460
|
+
return Er[e] || null;
|
|
5458
5461
|
}
|
|
5459
|
-
function
|
|
5460
|
-
return e in
|
|
5462
|
+
function pi(e) {
|
|
5463
|
+
return e in Er;
|
|
5461
5464
|
}
|
|
5462
|
-
function
|
|
5463
|
-
if (!
|
|
5465
|
+
function no(e, t) {
|
|
5466
|
+
if (!pi(e))
|
|
5464
5467
|
return null;
|
|
5465
|
-
const r =
|
|
5466
|
-
return
|
|
5468
|
+
const r = ro(e);
|
|
5469
|
+
return eo(r, t);
|
|
5467
5470
|
}
|
|
5468
|
-
function
|
|
5471
|
+
function io(e) {
|
|
5469
5472
|
if (e == null)
|
|
5470
5473
|
return;
|
|
5471
|
-
const t =
|
|
5474
|
+
const t = kt(e);
|
|
5472
5475
|
for (let r = 0; r < t.length; r++) {
|
|
5473
5476
|
const n = t[r];
|
|
5474
|
-
if (
|
|
5477
|
+
if (pi(n))
|
|
5475
5478
|
return n;
|
|
5476
5479
|
}
|
|
5477
5480
|
}
|
|
5478
|
-
function
|
|
5479
|
-
delete
|
|
5481
|
+
function vi(e, ...t) {
|
|
5482
|
+
delete de[e], Xe.update((r) => (r[e] = oa.all([r[e] || {}, ...t]), r));
|
|
5480
5483
|
}
|
|
5481
|
-
|
|
5482
|
-
[
|
|
5484
|
+
Ve(
|
|
5485
|
+
[Xe],
|
|
5483
5486
|
([e]) => Object.keys(e)
|
|
5484
5487
|
);
|
|
5485
|
-
|
|
5486
|
-
const
|
|
5487
|
-
function
|
|
5488
|
-
|
|
5488
|
+
Xe.subscribe((e) => Er = e);
|
|
5489
|
+
const xt = {};
|
|
5490
|
+
function so(e, t) {
|
|
5491
|
+
xt[e].delete(t), xt[e].size === 0 && delete xt[e];
|
|
5489
5492
|
}
|
|
5490
|
-
function
|
|
5491
|
-
return
|
|
5493
|
+
function _i(e) {
|
|
5494
|
+
return xt[e];
|
|
5492
5495
|
}
|
|
5493
|
-
function
|
|
5494
|
-
return
|
|
5495
|
-
const r =
|
|
5496
|
+
function ao(e) {
|
|
5497
|
+
return kt(e).map((t) => {
|
|
5498
|
+
const r = _i(t);
|
|
5496
5499
|
return [t, r ? [...r] : []];
|
|
5497
5500
|
}).filter(([, t]) => t.length > 0);
|
|
5498
5501
|
}
|
|
5499
|
-
function
|
|
5500
|
-
return e == null ? !1 :
|
|
5502
|
+
function ur(e) {
|
|
5503
|
+
return e == null ? !1 : kt(e).some(
|
|
5501
5504
|
(t) => {
|
|
5502
5505
|
var r;
|
|
5503
|
-
return (r =
|
|
5506
|
+
return (r = _i(t)) == null ? void 0 : r.size;
|
|
5504
5507
|
}
|
|
5505
5508
|
);
|
|
5506
5509
|
}
|
|
5507
|
-
function
|
|
5510
|
+
function oo(e, t) {
|
|
5508
5511
|
return Promise.all(
|
|
5509
|
-
t.map((n) => (
|
|
5510
|
-
).then((n) =>
|
|
5511
|
-
}
|
|
5512
|
-
const
|
|
5513
|
-
function
|
|
5514
|
-
if (!
|
|
5515
|
-
return e in
|
|
5516
|
-
const t =
|
|
5517
|
-
return
|
|
5512
|
+
t.map((n) => (so(e, n), n().then((i) => i.default || i)))
|
|
5513
|
+
).then((n) => vi(e, ...n));
|
|
5514
|
+
}
|
|
5515
|
+
const Ze = {};
|
|
5516
|
+
function mi(e) {
|
|
5517
|
+
if (!ur(e))
|
|
5518
|
+
return e in Ze ? Ze[e] : Promise.resolve();
|
|
5519
|
+
const t = ao(e);
|
|
5520
|
+
return Ze[e] = Promise.all(
|
|
5518
5521
|
t.map(
|
|
5519
|
-
([r, n]) =>
|
|
5522
|
+
([r, n]) => oo(r, n)
|
|
5520
5523
|
)
|
|
5521
5524
|
).then(() => {
|
|
5522
|
-
if (
|
|
5523
|
-
return
|
|
5524
|
-
delete
|
|
5525
|
-
}),
|
|
5525
|
+
if (ur(e))
|
|
5526
|
+
return mi(e);
|
|
5527
|
+
delete Ze[e];
|
|
5528
|
+
}), Ze[e];
|
|
5526
5529
|
}
|
|
5527
|
-
const
|
|
5530
|
+
const uo = {
|
|
5528
5531
|
number: {
|
|
5529
5532
|
scientific: { notation: "scientific" },
|
|
5530
5533
|
engineering: { notation: "engineering" },
|
|
@@ -5553,150 +5556,150 @@ const ro = {
|
|
|
5553
5556
|
timeZoneName: "short"
|
|
5554
5557
|
}
|
|
5555
5558
|
}
|
|
5556
|
-
},
|
|
5559
|
+
}, lo = {
|
|
5557
5560
|
fallbackLocale: null,
|
|
5558
5561
|
loadingDelay: 200,
|
|
5559
|
-
formats:
|
|
5562
|
+
formats: uo,
|
|
5560
5563
|
warnOnMissingMessages: !0,
|
|
5561
5564
|
handleMissingMessage: void 0,
|
|
5562
5565
|
ignoreTag: !0
|
|
5563
|
-
},
|
|
5564
|
-
function
|
|
5565
|
-
return
|
|
5566
|
+
}, fo = lo;
|
|
5567
|
+
function je() {
|
|
5568
|
+
return fo;
|
|
5566
5569
|
}
|
|
5567
|
-
const
|
|
5568
|
-
var
|
|
5570
|
+
const Wt = Lt(!1);
|
|
5571
|
+
var ho = Object.defineProperty, co = Object.defineProperties, po = Object.getOwnPropertyDescriptors, Vr = Object.getOwnPropertySymbols, vo = Object.prototype.hasOwnProperty, _o = Object.prototype.propertyIsEnumerable, Xr = (e, t, r) => t in e ? ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, mo = (e, t) => {
|
|
5569
5572
|
for (var r in t || (t = {}))
|
|
5570
|
-
|
|
5571
|
-
if (
|
|
5572
|
-
for (var r of
|
|
5573
|
-
|
|
5573
|
+
vo.call(t, r) && Xr(e, r, t[r]);
|
|
5574
|
+
if (Vr)
|
|
5575
|
+
for (var r of Vr(t))
|
|
5576
|
+
_o.call(t, r) && Xr(e, r, t[r]);
|
|
5574
5577
|
return e;
|
|
5575
|
-
},
|
|
5576
|
-
let
|
|
5577
|
-
const
|
|
5578
|
-
function
|
|
5578
|
+
}, bo = (e, t) => co(e, po(t));
|
|
5579
|
+
let lr;
|
|
5580
|
+
const Ot = Lt(null);
|
|
5581
|
+
function Wr(e) {
|
|
5579
5582
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
5580
5583
|
}
|
|
5581
|
-
function
|
|
5582
|
-
const r =
|
|
5583
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
5584
|
+
function kt(e, t = je().fallbackLocale) {
|
|
5585
|
+
const r = Wr(e);
|
|
5586
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Wr(t)])] : r;
|
|
5584
5587
|
}
|
|
5585
|
-
function
|
|
5586
|
-
return
|
|
5588
|
+
function Ne() {
|
|
5589
|
+
return lr ?? void 0;
|
|
5587
5590
|
}
|
|
5588
|
-
|
|
5589
|
-
|
|
5591
|
+
Ot.subscribe((e) => {
|
|
5592
|
+
lr = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
5590
5593
|
});
|
|
5591
|
-
const
|
|
5592
|
-
if (e &&
|
|
5593
|
-
const { loadingDelay: t } =
|
|
5594
|
+
const go = (e) => {
|
|
5595
|
+
if (e && io(e) && ur(e)) {
|
|
5596
|
+
const { loadingDelay: t } = je();
|
|
5594
5597
|
let r;
|
|
5595
|
-
return typeof window < "u" &&
|
|
5596
|
-
() =>
|
|
5598
|
+
return typeof window < "u" && Ne() != null && t ? r = window.setTimeout(
|
|
5599
|
+
() => Wt.set(!0),
|
|
5597
5600
|
t
|
|
5598
|
-
) :
|
|
5599
|
-
|
|
5601
|
+
) : Wt.set(!0), mi(e).then(() => {
|
|
5602
|
+
Ot.set(e);
|
|
5600
5603
|
}).finally(() => {
|
|
5601
|
-
clearTimeout(r),
|
|
5604
|
+
clearTimeout(r), Wt.set(!1);
|
|
5602
5605
|
});
|
|
5603
5606
|
}
|
|
5604
|
-
return
|
|
5605
|
-
},
|
|
5606
|
-
set:
|
|
5607
|
-
}),
|
|
5607
|
+
return Ot.set(e);
|
|
5608
|
+
}, Ae = bo(mo({}, Ot), {
|
|
5609
|
+
set: go
|
|
5610
|
+
}), Dt = (e) => {
|
|
5608
5611
|
const t = /* @__PURE__ */ Object.create(null);
|
|
5609
5612
|
return (n) => {
|
|
5610
5613
|
const i = JSON.stringify(n);
|
|
5611
5614
|
return i in t ? t[i] : t[i] = e(n);
|
|
5612
5615
|
};
|
|
5613
5616
|
};
|
|
5614
|
-
var
|
|
5617
|
+
var yo = Object.defineProperty, Pt = Object.getOwnPropertySymbols, bi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, zr = (e, t, r) => t in e ? yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, xr = (e, t) => {
|
|
5615
5618
|
for (var r in t || (t = {}))
|
|
5616
|
-
|
|
5617
|
-
if (
|
|
5618
|
-
for (var r of
|
|
5619
|
-
|
|
5619
|
+
bi.call(t, r) && zr(e, r, t[r]);
|
|
5620
|
+
if (Pt)
|
|
5621
|
+
for (var r of Pt(t))
|
|
5622
|
+
gi.call(t, r) && zr(e, r, t[r]);
|
|
5620
5623
|
return e;
|
|
5621
|
-
},
|
|
5624
|
+
}, We = (e, t) => {
|
|
5622
5625
|
var r = {};
|
|
5623
5626
|
for (var n in e)
|
|
5624
|
-
|
|
5625
|
-
if (e != null &&
|
|
5626
|
-
for (var n of
|
|
5627
|
-
t.indexOf(n) < 0 &&
|
|
5627
|
+
bi.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
5628
|
+
if (e != null && Pt)
|
|
5629
|
+
for (var n of Pt(e))
|
|
5630
|
+
t.indexOf(n) < 0 && gi.call(e, n) && (r[n] = e[n]);
|
|
5628
5631
|
return r;
|
|
5629
5632
|
};
|
|
5630
|
-
const
|
|
5631
|
-
const { formats: r } =
|
|
5633
|
+
const ot = (e, t) => {
|
|
5634
|
+
const { formats: r } = je();
|
|
5632
5635
|
if (e in r && t in r[e])
|
|
5633
5636
|
return r[e][t];
|
|
5634
5637
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
5635
|
-
},
|
|
5638
|
+
}, Eo = Dt(
|
|
5636
5639
|
(e) => {
|
|
5637
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
5640
|
+
var t = e, { locale: r, format: n } = t, i = We(t, ["locale", "format"]);
|
|
5638
5641
|
if (r == null)
|
|
5639
5642
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
5640
|
-
return n && (i =
|
|
5643
|
+
return n && (i = ot("number", n)), new Intl.NumberFormat(r, i);
|
|
5641
5644
|
}
|
|
5642
|
-
),
|
|
5645
|
+
), xo = Dt(
|
|
5643
5646
|
(e) => {
|
|
5644
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
5647
|
+
var t = e, { locale: r, format: n } = t, i = We(t, ["locale", "format"]);
|
|
5645
5648
|
if (r == null)
|
|
5646
5649
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
5647
|
-
return n ? i =
|
|
5650
|
+
return n ? i = ot("date", n) : Object.keys(i).length === 0 && (i = ot("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
5648
5651
|
}
|
|
5649
|
-
),
|
|
5652
|
+
), wo = Dt(
|
|
5650
5653
|
(e) => {
|
|
5651
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
5654
|
+
var t = e, { locale: r, format: n } = t, i = We(t, ["locale", "format"]);
|
|
5652
5655
|
if (r == null)
|
|
5653
5656
|
throw new Error(
|
|
5654
5657
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
5655
5658
|
);
|
|
5656
|
-
return n ? i =
|
|
5659
|
+
return n ? i = ot("time", n) : Object.keys(i).length === 0 && (i = ot("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
5657
5660
|
}
|
|
5658
|
-
),
|
|
5661
|
+
), To = (e = {}) => {
|
|
5659
5662
|
var t = e, {
|
|
5660
|
-
locale: r =
|
|
5661
|
-
} = t, n =
|
|
5663
|
+
locale: r = Ne()
|
|
5664
|
+
} = t, n = We(t, [
|
|
5662
5665
|
"locale"
|
|
5663
5666
|
]);
|
|
5664
|
-
return
|
|
5665
|
-
},
|
|
5667
|
+
return Eo(xr({ locale: r }, n));
|
|
5668
|
+
}, So = (e = {}) => {
|
|
5666
5669
|
var t = e, {
|
|
5667
|
-
locale: r =
|
|
5668
|
-
} = t, n =
|
|
5670
|
+
locale: r = Ne()
|
|
5671
|
+
} = t, n = We(t, [
|
|
5669
5672
|
"locale"
|
|
5670
5673
|
]);
|
|
5671
|
-
return
|
|
5672
|
-
},
|
|
5674
|
+
return xo(xr({ locale: r }, n));
|
|
5675
|
+
}, Ho = (e = {}) => {
|
|
5673
5676
|
var t = e, {
|
|
5674
|
-
locale: r =
|
|
5675
|
-
} = t, n =
|
|
5677
|
+
locale: r = Ne()
|
|
5678
|
+
} = t, n = We(t, [
|
|
5676
5679
|
"locale"
|
|
5677
5680
|
]);
|
|
5678
|
-
return
|
|
5679
|
-
},
|
|
5681
|
+
return wo(xr({ locale: r }, n));
|
|
5682
|
+
}, Ao = Dt(
|
|
5680
5683
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
5681
|
-
(e, t =
|
|
5682
|
-
ignoreTag:
|
|
5684
|
+
(e, t = Ne()) => new Ka(e, t, je().formats, {
|
|
5685
|
+
ignoreTag: je().ignoreTag
|
|
5683
5686
|
})
|
|
5684
|
-
),
|
|
5687
|
+
), Bo = (e, t = {}) => {
|
|
5685
5688
|
var r, n, i, s;
|
|
5686
5689
|
let a = t;
|
|
5687
5690
|
typeof e == "object" && (a = e, e = a.id);
|
|
5688
5691
|
const {
|
|
5689
5692
|
values: o,
|
|
5690
|
-
locale: u =
|
|
5693
|
+
locale: u = Ne(),
|
|
5691
5694
|
default: l
|
|
5692
5695
|
} = a;
|
|
5693
5696
|
if (u == null)
|
|
5694
5697
|
throw new Error(
|
|
5695
5698
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
5696
5699
|
);
|
|
5697
|
-
let f =
|
|
5700
|
+
let f = di(e, u);
|
|
5698
5701
|
if (!f)
|
|
5699
|
-
f = (s = (i = (n = (r =
|
|
5702
|
+
f = (s = (i = (n = (r = je()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? s : e;
|
|
5700
5703
|
else if (typeof f != "string")
|
|
5701
5704
|
return console.warn(
|
|
5702
5705
|
`[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.`
|
|
@@ -5705,7 +5708,7 @@ const tt = (e, t) => {
|
|
|
5705
5708
|
return f;
|
|
5706
5709
|
let c = f;
|
|
5707
5710
|
try {
|
|
5708
|
-
c =
|
|
5711
|
+
c = Ao(f, u).format(o);
|
|
5709
5712
|
} catch (h) {
|
|
5710
5713
|
h instanceof Error && console.warn(
|
|
5711
5714
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -5713,125 +5716,194 @@ const tt = (e, t) => {
|
|
|
5713
5716
|
);
|
|
5714
5717
|
}
|
|
5715
5718
|
return c;
|
|
5716
|
-
},
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
function
|
|
5722
|
-
|
|
5723
|
-
r == null && (
|
|
5719
|
+
}, No = (e, t) => Ho(t).format(e), Oo = (e, t) => So(t).format(e), Po = (e, t) => To(t).format(e), Co = (e, t = Ne()) => di(e, t), Io = Ve([Ae, Xe], () => Bo);
|
|
5720
|
+
Ve([Ae], () => No);
|
|
5721
|
+
Ve([Ae], () => Oo);
|
|
5722
|
+
Ve([Ae], () => Po);
|
|
5723
|
+
Ve([Ae, Xe], () => Co);
|
|
5724
|
+
function Ro({ withLocale: e, translations: t }) {
|
|
5725
|
+
Ae.subscribe((r) => {
|
|
5726
|
+
r == null && (Xe.set(t), Ae.set(e));
|
|
5724
5727
|
});
|
|
5725
5728
|
}
|
|
5726
|
-
function
|
|
5727
|
-
|
|
5729
|
+
function qr(e, t) {
|
|
5730
|
+
vi(e, t);
|
|
5728
5731
|
}
|
|
5729
|
-
const
|
|
5732
|
+
const Lo = {
|
|
5730
5733
|
en: {
|
|
5731
5734
|
requestRackBack: "Request Rackeback"
|
|
5732
5735
|
},
|
|
5733
5736
|
tr: {
|
|
5734
5737
|
requestRackBack: "Request Rackeback"
|
|
5735
5738
|
}
|
|
5736
|
-
},
|
|
5737
|
-
var
|
|
5738
|
-
const
|
|
5739
|
+
}, Mo = "RakebackClaimConfirmed";
|
|
5740
|
+
var $o = /* @__PURE__ */ Xn('<div class="loyalty-rakeback-card svelte-7aljj5"><div class="loyalty-rakeback-card__content svelte-7aljj5"><span class="loyalty-rakeback-card__amount svelte-7aljj5"> </span> <button class="loyalty-rakeback-card__button svelte-7aljj5" type="button"> </button></div></div>'), ko = /* @__PURE__ */ Xn('<div class="loyalty-rakeback-card svelte-7aljj5" aria-busy="true"><div class="loyalty-rakeback-card__content loyalty-rakeback-card__content--skeleton svelte-7aljj5"><span class="loyalty-rakeback-skeleton loyalty-rakeback-skeleton--amount svelte-7aljj5"></span> <span class="loyalty-rakeback-skeleton loyalty-rakeback-skeleton--button svelte-7aljj5"></span></div></div>');
|
|
5741
|
+
const Do = {
|
|
5739
5742
|
hash: "svelte-7aljj5",
|
|
5740
|
-
code:
|
|
5743
|
+
code: `.loyalty-rakeback-card.svelte-7aljj5 {padding:14px 16px;display:inline-flex;flex-direction:column;background-color:var(--app-container-bg-default, #022652);border-radius:6px;border:1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));width:100%;box-sizing:border-box;}.loyalty-rakeback-card__content.svelte-7aljj5 {display:flex;align-items:baseline;gap:8px;justify-content:space-between;}.loyalty-rakeback-card__amount.svelte-7aljj5 {color:var(--text-default, #ffffff);font-size:16px;font-weight:700;line-height:140%;}.loyalty-rakeback-card__button.svelte-7aljj5 {height:37px;border-radius:6px;border-width:1px;padding:10px 16px;cursor:pointer;background:var(--button-secondary-bg-default, rgba(251, 251, 251, 0.1));border:solid 1px var(--button-secondary-border-default, rgba(251, 251, 251, 0.05));font-size:12px;font-weight:700;color:var(--button-secondary-text-default, #ffffff);}.loyalty-rakeback-card__button.svelte-7aljj5:disabled {opacity:0.4;cursor:default;}.loyalty-rakeback-skeleton.svelte-7aljj5 {display:block;border-radius:4px;background:linear-gradient(
|
|
5744
|
+
90deg,
|
|
5745
|
+
var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 0%,
|
|
5746
|
+
color-mix(in srgb, var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 80%, white) 50%,
|
|
5747
|
+
var(--app-container-bg-subtle, rgba(251, 251, 251, 0.1)) 100%
|
|
5748
|
+
);background-size:400% 100%;
|
|
5749
|
+
animation: svelte-7aljj5-loyalty-rakeback-shimmer 1.4s ease infinite;}.loyalty-rakeback-card__content--skeleton.svelte-7aljj5 {align-items:center;}.loyalty-rakeback-skeleton--amount.svelte-7aljj5 {width:120px;height:22px;}.loyalty-rakeback-skeleton--button.svelte-7aljj5 {width:110px;height:37px;border-radius:6px;}
|
|
5750
|
+
|
|
5751
|
+
@keyframes svelte-7aljj5-loyalty-rakeback-shimmer {
|
|
5752
|
+
0% {
|
|
5753
|
+
background-position: 100% 50%;
|
|
5754
|
+
}
|
|
5755
|
+
100% {
|
|
5756
|
+
background-position: 0 50%;
|
|
5757
|
+
}
|
|
5758
|
+
}
|
|
5759
|
+
|
|
5760
|
+
@media (prefers-reduced-motion: reduce) {.loyalty-rakeback-skeleton.svelte-7aljj5 {
|
|
5761
|
+
animation: none;}
|
|
5762
|
+
}`
|
|
5741
5763
|
};
|
|
5742
|
-
function
|
|
5743
|
-
|
|
5744
|
-
const r = () =>
|
|
5745
|
-
|
|
5746
|
-
|
|
5764
|
+
function Uo(e, t) {
|
|
5765
|
+
an(t, !0), Ns(e, Do);
|
|
5766
|
+
const r = () => Cs(Io, "$_", n), [n, i] = Is(), s = bt(t, "apiEndpoint", 7, ""), a = bt(t, "userSession", 7, ""), o = bt(t, "locale", 7, ""), u = bt(t, "translationUrl");
|
|
5767
|
+
Ro({ withLocale: o(), translations: {} }), Object.entries(Lo).forEach(([y, N]) => {
|
|
5768
|
+
qr(y, N);
|
|
5747
5769
|
});
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5770
|
+
const l = () => {
|
|
5771
|
+
let y = new URL(u(), window.location.href);
|
|
5772
|
+
fetch(y.href).then((N) => N.json()).then((N) => {
|
|
5773
|
+
Object.keys(N).forEach((Ee) => {
|
|
5774
|
+
qr(Ee, N[Ee]);
|
|
5775
|
+
});
|
|
5776
|
+
}).catch((N) => {
|
|
5777
|
+
console.log("loyalty rakeback translation url err:", N);
|
|
5778
|
+
});
|
|
5779
|
+
};
|
|
5780
|
+
hs(() => {
|
|
5781
|
+
u() && l();
|
|
5782
|
+
});
|
|
5783
|
+
let f = /* @__PURE__ */ j(void 0), c = /* @__PURE__ */ j(!1), h = /* @__PURE__ */ j(!1), d = /* @__PURE__ */ j(!1);
|
|
5784
|
+
const p = /* @__PURE__ */ vt(() => g(f) ? Us(g(f).total.points <= 0 ? 0 : g(f).total.points, 2) : "0.00"), E = /* @__PURE__ */ vt(() => Fs(g(f)?.currency ?? "", o())), T = /* @__PURE__ */ vt(() => !!g(f)?.claimable), J = /* @__PURE__ */ vt(() => g(c)), D = async () => {
|
|
5785
|
+
if (!(!s() || !a())) {
|
|
5786
|
+
P(d, !0);
|
|
5751
5787
|
try {
|
|
5752
|
-
const
|
|
5788
|
+
const y = await ks({
|
|
5753
5789
|
apiEndpoint: s(),
|
|
5754
5790
|
userSession: a(),
|
|
5755
5791
|
locale: o()
|
|
5756
5792
|
});
|
|
5757
|
-
if (!
|
|
5758
|
-
|
|
5793
|
+
if (!y.rakebackWallet) {
|
|
5794
|
+
P(c, !1), Xs();
|
|
5759
5795
|
return;
|
|
5760
5796
|
}
|
|
5761
|
-
|
|
5762
|
-
} catch (
|
|
5763
|
-
console.error("Failed to load rakeback info:",
|
|
5797
|
+
P(f, y.rakebackWallet, !0), P(c, !0);
|
|
5798
|
+
} catch (y) {
|
|
5799
|
+
console.error("Failed to load rakeback info:", y);
|
|
5800
|
+
} finally {
|
|
5801
|
+
P(d, !1);
|
|
5764
5802
|
}
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5803
|
+
}
|
|
5804
|
+
}, F = () => {
|
|
5805
|
+
!g(T) || g(h) || !g(f) || Gs(g(f).total.points);
|
|
5806
|
+
}, ge = async () => {
|
|
5807
|
+
if (!(!s() || !a() || !g(f))) {
|
|
5808
|
+
P(h, !0);
|
|
5770
5809
|
try {
|
|
5771
|
-
await
|
|
5810
|
+
await Ds({
|
|
5772
5811
|
apiEndpoint: s(),
|
|
5773
5812
|
userSession: a(),
|
|
5774
5813
|
locale: o()
|
|
5775
|
-
}), await
|
|
5776
|
-
} catch (
|
|
5777
|
-
console.error("Claim rakeback: ",
|
|
5814
|
+
}), await D(), js(g(f).total.points);
|
|
5815
|
+
} catch (y) {
|
|
5816
|
+
console.error("Claim rakeback: ", y), Vs(y.message);
|
|
5778
5817
|
} finally {
|
|
5779
|
-
|
|
5818
|
+
P(h, !1);
|
|
5780
5819
|
}
|
|
5781
5820
|
}
|
|
5782
5821
|
};
|
|
5783
|
-
|
|
5784
|
-
s(), a(), o(),
|
|
5785
|
-
}),
|
|
5786
|
-
const
|
|
5787
|
-
|
|
5822
|
+
Br(() => {
|
|
5823
|
+
s(), a(), o(), D();
|
|
5824
|
+
}), Br(() => {
|
|
5825
|
+
const y = (N) => {
|
|
5826
|
+
N.data?.type === Mo && ge();
|
|
5788
5827
|
};
|
|
5789
|
-
return window.addEventListener("message",
|
|
5828
|
+
return window.addEventListener("message", y), () => window.removeEventListener("message", y);
|
|
5790
5829
|
});
|
|
5791
|
-
var
|
|
5830
|
+
var re = {
|
|
5792
5831
|
get apiEndpoint() {
|
|
5793
5832
|
return s();
|
|
5794
5833
|
},
|
|
5795
|
-
set apiEndpoint(
|
|
5796
|
-
s(
|
|
5834
|
+
set apiEndpoint(y = "") {
|
|
5835
|
+
s(y), Ye();
|
|
5797
5836
|
},
|
|
5798
5837
|
get userSession() {
|
|
5799
5838
|
return a();
|
|
5800
5839
|
},
|
|
5801
|
-
set userSession(
|
|
5802
|
-
a(
|
|
5840
|
+
set userSession(y = "") {
|
|
5841
|
+
a(y), Ye();
|
|
5803
5842
|
},
|
|
5804
5843
|
get locale() {
|
|
5805
5844
|
return o();
|
|
5806
5845
|
},
|
|
5807
|
-
set locale(
|
|
5808
|
-
o(
|
|
5846
|
+
set locale(y = "") {
|
|
5847
|
+
o(y), Ye();
|
|
5848
|
+
},
|
|
5849
|
+
get translationUrl() {
|
|
5850
|
+
return u();
|
|
5851
|
+
},
|
|
5852
|
+
set translationUrl(y) {
|
|
5853
|
+
u(y), Ye();
|
|
5809
5854
|
}
|
|
5810
|
-
},
|
|
5855
|
+
}, ye = Cr(), ct = Ar(ye);
|
|
5811
5856
|
{
|
|
5812
|
-
var
|
|
5813
|
-
var
|
|
5814
|
-
|
|
5815
|
-
var
|
|
5816
|
-
|
|
5817
|
-
var
|
|
5818
|
-
|
|
5819
|
-
(
|
|
5820
|
-
|
|
5857
|
+
var yi = (y) => {
|
|
5858
|
+
var N = $o(), Ee = _t(N), ze = _t(Ee), qe = _t(ze);
|
|
5859
|
+
dt(ze);
|
|
5860
|
+
var Oe = os(ze, 2);
|
|
5861
|
+
Oe.__click = F;
|
|
5862
|
+
var wi = _t(Oe, !0);
|
|
5863
|
+
dt(Oe), dt(Ee), dt(N), _s(
|
|
5864
|
+
(Ti) => {
|
|
5865
|
+
Ir(qe, `${g(p) ?? ""} ${g(E) ?? ""}`), Oe.disabled = g(h) || !g(T), Ir(wi, Ti);
|
|
5821
5866
|
},
|
|
5822
5867
|
[() => r()("requestRackBack")]
|
|
5823
|
-
),
|
|
5868
|
+
), Je(y, N);
|
|
5869
|
+
}, Ei = (y) => {
|
|
5870
|
+
var N = Cr(), Ee = Ar(N);
|
|
5871
|
+
{
|
|
5872
|
+
var ze = (qe) => {
|
|
5873
|
+
var Oe = ko();
|
|
5874
|
+
Je(qe, Oe);
|
|
5875
|
+
};
|
|
5876
|
+
Rr(
|
|
5877
|
+
Ee,
|
|
5878
|
+
(qe) => {
|
|
5879
|
+
g(d) && qe(ze);
|
|
5880
|
+
},
|
|
5881
|
+
!0
|
|
5882
|
+
);
|
|
5883
|
+
}
|
|
5884
|
+
Je(y, N);
|
|
5824
5885
|
};
|
|
5825
|
-
|
|
5826
|
-
g(
|
|
5886
|
+
Rr(ct, (y) => {
|
|
5887
|
+
g(J) ? y(yi) : y(Ei, !1);
|
|
5827
5888
|
});
|
|
5828
5889
|
}
|
|
5829
|
-
|
|
5830
|
-
var
|
|
5831
|
-
return i(),
|
|
5890
|
+
Je(e, ye);
|
|
5891
|
+
var xi = on(re);
|
|
5892
|
+
return i(), xi;
|
|
5832
5893
|
}
|
|
5833
|
-
|
|
5834
|
-
customElements.define("loyalty-rakeback",
|
|
5894
|
+
xs(["click"]);
|
|
5895
|
+
customElements.define("loyalty-rakeback", $s(
|
|
5896
|
+
Uo,
|
|
5897
|
+
{
|
|
5898
|
+
apiEndpoint: {},
|
|
5899
|
+
userSession: {},
|
|
5900
|
+
locale: {},
|
|
5901
|
+
translationUrl: {}
|
|
5902
|
+
},
|
|
5903
|
+
[],
|
|
5904
|
+
[],
|
|
5905
|
+
!1
|
|
5906
|
+
));
|
|
5835
5907
|
export {
|
|
5836
|
-
|
|
5908
|
+
Uo as L
|
|
5837
5909
|
};
|