@everymatrix/player-account-gaming-limits-confirmation-modal 1.87.25 → 1.87.27
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/{PlayerAccountGamingLimitsConfirmationModal-BOZz_2rZ.js → PlayerAccountGamingLimitsConfirmationModal-D1lW9tZr.js} +734 -707
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Bgn1MgRG.cjs → PlayerAccountGamingLimitsConfirmationModal-DIcazmIL.cjs} +4 -4
- package/components/{PlayerAccountGamingLimitsConfirmationModal-CkBJVq8s.js → PlayerAccountGamingLimitsConfirmationModal-DJCFV8bp.js} +768 -740
- package/es2015/player-account-gaming-limits-confirmation-modal.cjs +1 -1
- package/es2015/player-account-gaming-limits-confirmation-modal.js +1 -1
- package/esnext/player-account-gaming-limits-confirmation-modal.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function I() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function dr(e, t) {
|
|
4
4
|
for (const r in t)
|
|
5
5
|
e[r] = t[r];
|
|
6
6
|
return (
|
|
@@ -8,25 +8,25 @@ function mr(e, t) {
|
|
|
8
8
|
e
|
|
9
9
|
);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function Ot(e) {
|
|
12
12
|
return e();
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function ot() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
e.forEach(
|
|
17
|
+
function Q(e) {
|
|
18
|
+
e.forEach(Ot);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ke(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Lt(e, t) {
|
|
24
24
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function br(e) {
|
|
27
27
|
return Object.keys(e).length === 0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function It(e, ...t) {
|
|
30
30
|
if (e == null) {
|
|
31
31
|
for (const n of t)
|
|
32
32
|
n(void 0);
|
|
@@ -35,19 +35,19 @@ function Ot(e, ...t) {
|
|
|
35
35
|
const r = e.subscribe(...t);
|
|
36
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.$$.on_destroy.push(
|
|
38
|
+
function gr(e, t, r) {
|
|
39
|
+
e.$$.on_destroy.push(It(t, r));
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function yr(e, t, r, n) {
|
|
42
42
|
if (e) {
|
|
43
|
-
const i =
|
|
43
|
+
const i = Mt(e, t, r, n);
|
|
44
44
|
return e[0](i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return e[1] && n ?
|
|
47
|
+
function Mt(e, t, r, n) {
|
|
48
|
+
return e[1] && n ? dr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function vr(e, t, r, n) {
|
|
51
51
|
if (e[2] && n) {
|
|
52
52
|
const i = e[2](n(r));
|
|
53
53
|
if (t.dirty === void 0)
|
|
@@ -62,13 +62,13 @@ function gr(e, t, r, n) {
|
|
|
62
62
|
}
|
|
63
63
|
return t.dirty;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function _r(e, t, r, n, i, o) {
|
|
66
66
|
if (i) {
|
|
67
|
-
const s =
|
|
67
|
+
const s = Mt(t, r, n, o);
|
|
68
68
|
e.p(s, i);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function xr(e) {
|
|
72
72
|
if (e.ctx.length > 32) {
|
|
73
73
|
const t = [], r = e.ctx.length / 32;
|
|
74
74
|
for (let n = 0; n < r; n++)
|
|
@@ -77,17 +77,17 @@ function vr(e) {
|
|
|
77
77
|
}
|
|
78
78
|
return -1;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function C(e, t) {
|
|
81
81
|
e.appendChild(t);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
const n =
|
|
83
|
+
function Er(e, t, r) {
|
|
84
|
+
const n = Sr(e);
|
|
85
85
|
if (!n.getElementById(t)) {
|
|
86
86
|
const i = M("style");
|
|
87
|
-
i.id = t, i.textContent = r,
|
|
87
|
+
i.id = t, i.textContent = r, wr(n, i);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Sr(e) {
|
|
91
91
|
if (!e)
|
|
92
92
|
return document;
|
|
93
93
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -97,45 +97,45 @@ function _r(e) {
|
|
|
97
97
|
t
|
|
98
98
|
) : e.ownerDocument;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
return
|
|
100
|
+
function wr(e, t) {
|
|
101
|
+
return C(
|
|
102
102
|
/** @type {Document} */
|
|
103
103
|
e.head || e,
|
|
104
104
|
t
|
|
105
105
|
), t.sheet;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function et(e, t, r) {
|
|
108
108
|
e.insertBefore(t, r || null);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function ge(e) {
|
|
111
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
112
112
|
}
|
|
113
113
|
function M(e) {
|
|
114
114
|
return document.createElement(e);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function st(e) {
|
|
117
117
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function ue(e) {
|
|
120
120
|
return document.createTextNode(e);
|
|
121
121
|
}
|
|
122
122
|
function we() {
|
|
123
|
-
return
|
|
123
|
+
return ue(" ");
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Te(e, t, r, n) {
|
|
126
126
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function w(e, t, r) {
|
|
129
129
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Tr(e) {
|
|
132
132
|
return Array.from(e.childNodes);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function He(e, t) {
|
|
135
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
136
136
|
t);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function Hr(e) {
|
|
139
139
|
const t = {};
|
|
140
140
|
return e.childNodes.forEach(
|
|
141
141
|
/** @param {Element} node */
|
|
@@ -144,97 +144,97 @@ function Sr(e) {
|
|
|
144
144
|
}
|
|
145
145
|
), t;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
147
|
+
let te;
|
|
148
|
+
function ee(e) {
|
|
149
|
+
te = e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
if (!
|
|
151
|
+
function Cr() {
|
|
152
|
+
if (!te)
|
|
153
153
|
throw new Error("Function called outside component initialization");
|
|
154
|
-
return
|
|
154
|
+
return te;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
156
|
+
function Br(e) {
|
|
157
|
+
Cr().$$.on_mount.push(e);
|
|
158
158
|
}
|
|
159
|
-
const j = [],
|
|
160
|
-
let
|
|
161
|
-
const
|
|
162
|
-
let
|
|
163
|
-
function
|
|
164
|
-
|
|
159
|
+
const j = [], Ne = [];
|
|
160
|
+
let V = [];
|
|
161
|
+
const at = [], Ar = /* @__PURE__ */ Promise.resolve();
|
|
162
|
+
let Re = !1;
|
|
163
|
+
function Pr() {
|
|
164
|
+
Re || (Re = !0, Ar.then(N));
|
|
165
165
|
}
|
|
166
166
|
function $e(e) {
|
|
167
|
-
|
|
167
|
+
V.push(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
169
|
+
const Ce = /* @__PURE__ */ new Set();
|
|
170
170
|
let D = 0;
|
|
171
171
|
function N() {
|
|
172
172
|
if (D !== 0)
|
|
173
173
|
return;
|
|
174
|
-
const e =
|
|
174
|
+
const e = te;
|
|
175
175
|
do {
|
|
176
176
|
try {
|
|
177
177
|
for (; D < j.length; ) {
|
|
178
178
|
const t = j[D];
|
|
179
|
-
D++,
|
|
179
|
+
D++, ee(t), Or(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
182
|
throw j.length = 0, D = 0, t;
|
|
183
183
|
}
|
|
184
|
-
for (
|
|
185
|
-
|
|
186
|
-
for (let t = 0; t <
|
|
187
|
-
const r =
|
|
188
|
-
|
|
184
|
+
for (ee(null), j.length = 0, D = 0; Ne.length; )
|
|
185
|
+
Ne.pop()();
|
|
186
|
+
for (let t = 0; t < V.length; t += 1) {
|
|
187
|
+
const r = V[t];
|
|
188
|
+
Ce.has(r) || (Ce.add(r), r());
|
|
189
189
|
}
|
|
190
|
-
|
|
190
|
+
V.length = 0;
|
|
191
191
|
} while (j.length);
|
|
192
|
-
for (;
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
for (; at.length; )
|
|
193
|
+
at.pop()();
|
|
194
|
+
Re = !1, Ce.clear(), ee(e);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Or(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
|
-
e.update(),
|
|
198
|
+
e.update(), Q(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
200
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function Lr(e) {
|
|
204
204
|
const t = [], r = [];
|
|
205
|
-
|
|
205
|
+
V.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), V = t;
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
let
|
|
209
|
-
function
|
|
210
|
-
e && e.i && (
|
|
207
|
+
const he = /* @__PURE__ */ new Set();
|
|
208
|
+
let Ir;
|
|
209
|
+
function Nt(e, t) {
|
|
210
|
+
e && e.i && (he.delete(e), e.i(t));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Mr(e, t, r, n) {
|
|
213
213
|
if (e && e.o) {
|
|
214
|
-
if (
|
|
214
|
+
if (he.has(e))
|
|
215
215
|
return;
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
he.add(e), Ir.c.push(() => {
|
|
217
|
+
he.delete(e);
|
|
218
218
|
}), e.o(t);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Nr(e, t, r) {
|
|
222
222
|
const { fragment: n, after_update: i } = e.$$;
|
|
223
223
|
n && n.m(t, r), $e(() => {
|
|
224
|
-
const o = e.$$.on_mount.map(
|
|
225
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
224
|
+
const o = e.$$.on_mount.map(Ot).filter(Ke);
|
|
225
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Q(o), e.$$.on_mount = [];
|
|
226
226
|
}), i.forEach($e);
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function Rr(e, t) {
|
|
229
229
|
const r = e.$$;
|
|
230
|
-
r.fragment !== null && (
|
|
230
|
+
r.fragment !== null && (Lr(r.after_update), Q(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
e.$$.dirty[0] === -1 && (j.push(e),
|
|
232
|
+
function $r(e, t) {
|
|
233
|
+
e.$$.dirty[0] === -1 && (j.push(e), Pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
const h =
|
|
237
|
-
|
|
235
|
+
function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
236
|
+
const h = te;
|
|
237
|
+
ee(e);
|
|
238
238
|
const u = e.$$ = {
|
|
239
239
|
fragment: null,
|
|
240
240
|
ctx: [],
|
|
@@ -242,7 +242,7 @@ function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
242
242
|
props: o,
|
|
243
243
|
update: I,
|
|
244
244
|
not_equal: i,
|
|
245
|
-
bound:
|
|
245
|
+
bound: ot(),
|
|
246
246
|
// lifecycle
|
|
247
247
|
on_mount: [],
|
|
248
248
|
on_destroy: [],
|
|
@@ -251,7 +251,7 @@ function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
251
251
|
after_update: [],
|
|
252
252
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
253
253
|
// everything else
|
|
254
|
-
callbacks:
|
|
254
|
+
callbacks: ot(),
|
|
255
255
|
dirty: a,
|
|
256
256
|
skip_bound: !1,
|
|
257
257
|
root: t.target || h.$$.root
|
|
@@ -260,19 +260,19 @@ function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
260
260
|
let l = !1;
|
|
261
261
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
262
262
|
const m = p.length ? p[0] : f;
|
|
263
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l &&
|
|
264
|
-
}) : [], u.update(), l = !0,
|
|
263
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), l && $r(e, c)), f;
|
|
264
|
+
}) : [], u.update(), l = !0, Q(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
265
265
|
if (t.hydrate) {
|
|
266
|
-
const c =
|
|
267
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
266
|
+
const c = Tr(t.target);
|
|
267
|
+
u.fragment && u.fragment.l(c), c.forEach(ge);
|
|
268
268
|
} else
|
|
269
269
|
u.fragment && u.fragment.c();
|
|
270
|
-
t.intro &&
|
|
270
|
+
t.intro && Nt(e.$$.fragment), Nr(e, t.target, t.anchor), N();
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
ee(h);
|
|
273
273
|
}
|
|
274
|
-
let
|
|
275
|
-
typeof HTMLElement == "function" && (
|
|
274
|
+
let Rt;
|
|
275
|
+
typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
276
276
|
/** The Svelte component constructor */
|
|
277
277
|
$$ctor;
|
|
278
278
|
/** Slots */
|
|
@@ -314,29 +314,29 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
314
314
|
let o;
|
|
315
315
|
return {
|
|
316
316
|
c: function() {
|
|
317
|
-
o = M("slot"), i !== "default" &&
|
|
317
|
+
o = M("slot"), i !== "default" && w(o, "name", i);
|
|
318
318
|
},
|
|
319
319
|
/**
|
|
320
320
|
* @param {HTMLElement} target
|
|
321
321
|
* @param {HTMLElement} [anchor]
|
|
322
322
|
*/
|
|
323
323
|
m: function(h, u) {
|
|
324
|
-
|
|
324
|
+
et(h, o, u);
|
|
325
325
|
},
|
|
326
326
|
d: function(h) {
|
|
327
|
-
h &&
|
|
327
|
+
h && ge(o);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
};
|
|
331
331
|
};
|
|
332
332
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
333
333
|
return;
|
|
334
|
-
const t = {}, r =
|
|
334
|
+
const t = {}, r = Hr(this);
|
|
335
335
|
for (const i of this.$$s)
|
|
336
336
|
i in r && (t[i] = [e(i)]);
|
|
337
337
|
for (const i of this.attributes) {
|
|
338
338
|
const o = this.$$g_p(i.name);
|
|
339
|
-
o in this.$$d || (this.$$d[o] =
|
|
339
|
+
o in this.$$d || (this.$$d[o] = le(o, i.value, this.$$p_d, "toProp"));
|
|
340
340
|
}
|
|
341
341
|
for (const i in this.$$p_d)
|
|
342
342
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -354,7 +354,7 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
354
354
|
this.$$r = !0;
|
|
355
355
|
for (const i in this.$$p_d)
|
|
356
356
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
357
|
-
const o =
|
|
357
|
+
const o = le(
|
|
358
358
|
i,
|
|
359
359
|
this.$$d[i],
|
|
360
360
|
this.$$p_d,
|
|
@@ -376,7 +376,7 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
376
376
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
377
377
|
// and setting attributes through setAttribute etc, this is helpful
|
|
378
378
|
attributeChangedCallback(e, t, r) {
|
|
379
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
379
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = le(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
380
380
|
}
|
|
381
381
|
disconnectedCallback() {
|
|
382
382
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -389,7 +389,7 @@ typeof HTMLElement == "function" && (Mt = class extends HTMLElement {
|
|
|
389
389
|
) || e;
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
|
-
function
|
|
392
|
+
function le(e, t, r, n) {
|
|
393
393
|
const i = r[e]?.type;
|
|
394
394
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
395
395
|
return t;
|
|
@@ -418,8 +418,8 @@ function he(e, t, r, n) {
|
|
|
418
418
|
return t;
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
let s = class extends
|
|
421
|
+
function Ur(e, t, r, n, i, o) {
|
|
422
|
+
let s = class extends Rt {
|
|
423
423
|
constructor() {
|
|
424
424
|
super(e, r, i), this.$$p_d = t;
|
|
425
425
|
}
|
|
@@ -435,7 +435,7 @@ function Rr(e, t, r, n, i, o) {
|
|
|
435
435
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
436
436
|
},
|
|
437
437
|
set(h) {
|
|
438
|
-
h =
|
|
438
|
+
h = le(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
441
|
}), n.forEach((a) => {
|
|
@@ -447,7 +447,7 @@ function Rr(e, t, r, n, i, o) {
|
|
|
447
447
|
}), e.element = /** @type {any} */
|
|
448
448
|
s, s;
|
|
449
449
|
}
|
|
450
|
-
class
|
|
450
|
+
class Dr {
|
|
451
451
|
/**
|
|
452
452
|
* ### PRIVATE API
|
|
453
453
|
*
|
|
@@ -466,7 +466,7 @@ class Gr {
|
|
|
466
466
|
$$set = void 0;
|
|
467
467
|
/** @returns {void} */
|
|
468
468
|
$destroy() {
|
|
469
|
-
|
|
469
|
+
Rr(this, 1), this.$destroy = I;
|
|
470
470
|
}
|
|
471
471
|
/**
|
|
472
472
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -475,7 +475,7 @@ class Gr {
|
|
|
475
475
|
* @returns {() => void}
|
|
476
476
|
*/
|
|
477
477
|
$on(t, r) {
|
|
478
|
-
if (!
|
|
478
|
+
if (!Ke(r))
|
|
479
479
|
return I;
|
|
480
480
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
481
481
|
return n.push(r), () => {
|
|
@@ -488,11 +488,11 @@ class Gr {
|
|
|
488
488
|
* @returns {void}
|
|
489
489
|
*/
|
|
490
490
|
$set(t) {
|
|
491
|
-
this.$$set && !
|
|
491
|
+
this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
|
-
const
|
|
495
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
494
|
+
const Fr = "4";
|
|
495
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
|
|
496
496
|
/*! *****************************************************************************
|
|
497
497
|
Copyright (c) Microsoft Corporation.
|
|
498
498
|
|
|
@@ -507,24 +507,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
507
507
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
508
508
|
PERFORMANCE OF THIS SOFTWARE.
|
|
509
509
|
***************************************************************************** */
|
|
510
|
-
var
|
|
511
|
-
return
|
|
510
|
+
var Ge = function(e, t) {
|
|
511
|
+
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
512
512
|
r.__proto__ = n;
|
|
513
513
|
} || function(r, n) {
|
|
514
514
|
for (var i in n)
|
|
515
515
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
516
|
-
},
|
|
516
|
+
}, Ge(e, t);
|
|
517
517
|
};
|
|
518
|
-
function
|
|
518
|
+
function ie(e, t) {
|
|
519
519
|
if (typeof t != "function" && t !== null)
|
|
520
520
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
521
|
-
|
|
521
|
+
Ge(e, t);
|
|
522
522
|
function r() {
|
|
523
523
|
this.constructor = e;
|
|
524
524
|
}
|
|
525
525
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function Ue(e) {
|
|
528
528
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
529
529
|
if (r)
|
|
530
530
|
return r.call(e);
|
|
@@ -536,7 +536,7 @@ function Ge(e) {
|
|
|
536
536
|
};
|
|
537
537
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function De(e, t) {
|
|
540
540
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
541
541
|
if (!r)
|
|
542
542
|
return e;
|
|
@@ -556,22 +556,22 @@ function Ue(e, t) {
|
|
|
556
556
|
}
|
|
557
557
|
return o;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function Fe(e, t, r) {
|
|
560
560
|
if (arguments.length === 2)
|
|
561
561
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
562
562
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
563
563
|
return e.concat(o || t);
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function R(e) {
|
|
566
566
|
return typeof e == "function";
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function $t(e) {
|
|
569
569
|
var t = function(n) {
|
|
570
570
|
Error.call(n), n.stack = new Error().stack;
|
|
571
571
|
}, r = e(t);
|
|
572
572
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
573
573
|
}
|
|
574
|
-
var Be =
|
|
574
|
+
var Be = $t(function(e) {
|
|
575
575
|
return function(r) {
|
|
576
576
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
577
577
|
` + r.map(function(n, i) {
|
|
@@ -580,13 +580,13 @@ var Be = Nt(function(e) {
|
|
|
580
580
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
581
581
|
};
|
|
582
582
|
});
|
|
583
|
-
function
|
|
583
|
+
function je(e, t) {
|
|
584
584
|
if (e) {
|
|
585
585
|
var r = e.indexOf(t);
|
|
586
586
|
0 <= r && e.splice(r, 1);
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
var
|
|
589
|
+
var ye = function() {
|
|
590
590
|
function e(t) {
|
|
591
591
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
592
592
|
}
|
|
@@ -598,7 +598,7 @@ var ge = function() {
|
|
|
598
598
|
if (s)
|
|
599
599
|
if (this._parentage = null, Array.isArray(s))
|
|
600
600
|
try {
|
|
601
|
-
for (var a =
|
|
601
|
+
for (var a = Ue(s), h = a.next(); !h.done; h = a.next()) {
|
|
602
602
|
var u = h.value;
|
|
603
603
|
u.remove(this);
|
|
604
604
|
}
|
|
@@ -615,7 +615,7 @@ var ge = function() {
|
|
|
615
615
|
else
|
|
616
616
|
s.remove(this);
|
|
617
617
|
var l = this.initialTeardown;
|
|
618
|
-
if (
|
|
618
|
+
if (R(l))
|
|
619
619
|
try {
|
|
620
620
|
l();
|
|
621
621
|
} catch (y) {
|
|
@@ -625,12 +625,12 @@ var ge = function() {
|
|
|
625
625
|
if (c) {
|
|
626
626
|
this._finalizers = null;
|
|
627
627
|
try {
|
|
628
|
-
for (var f =
|
|
628
|
+
for (var f = Ue(c), p = f.next(); !p.done; p = f.next()) {
|
|
629
629
|
var m = p.value;
|
|
630
630
|
try {
|
|
631
|
-
|
|
631
|
+
ut(m);
|
|
632
632
|
} catch (y) {
|
|
633
|
-
o = o ?? [], y instanceof Be ? o =
|
|
633
|
+
o = o ?? [], y instanceof Be ? o = Fe(Fe([], De(o)), De(y.errors)) : o.push(y);
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
636
|
} catch (y) {
|
|
@@ -651,7 +651,7 @@ var ge = function() {
|
|
|
651
651
|
var r;
|
|
652
652
|
if (t && t !== this)
|
|
653
653
|
if (this.closed)
|
|
654
|
-
|
|
654
|
+
ut(t);
|
|
655
655
|
else {
|
|
656
656
|
if (t instanceof e) {
|
|
657
657
|
if (t.closed || t._hasParent(this))
|
|
@@ -668,52 +668,52 @@ var ge = function() {
|
|
|
668
668
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
669
669
|
}, e.prototype._removeParent = function(t) {
|
|
670
670
|
var r = this._parentage;
|
|
671
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
671
|
+
r === t ? this._parentage = null : Array.isArray(r) && je(r, t);
|
|
672
672
|
}, e.prototype.remove = function(t) {
|
|
673
673
|
var r = this._finalizers;
|
|
674
|
-
r &&
|
|
674
|
+
r && je(r, t), t instanceof e && t._removeParent(this);
|
|
675
675
|
}, e.EMPTY = function() {
|
|
676
676
|
var t = new e();
|
|
677
677
|
return t.closed = !0, t;
|
|
678
678
|
}(), e;
|
|
679
|
-
}(),
|
|
680
|
-
function
|
|
681
|
-
return e instanceof
|
|
679
|
+
}(), Gt = ye.EMPTY;
|
|
680
|
+
function Ut(e) {
|
|
681
|
+
return e instanceof ye || e && "closed" in e && R(e.remove) && R(e.add) && R(e.unsubscribe);
|
|
682
682
|
}
|
|
683
|
-
function
|
|
684
|
-
|
|
683
|
+
function ut(e) {
|
|
684
|
+
R(e) ? e() : e.unsubscribe();
|
|
685
685
|
}
|
|
686
|
-
var
|
|
686
|
+
var jr = {
|
|
687
687
|
Promise: void 0
|
|
688
|
-
},
|
|
688
|
+
}, kr = {
|
|
689
689
|
setTimeout: function(e, t) {
|
|
690
690
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
691
691
|
r[n - 2] = arguments[n];
|
|
692
|
-
return setTimeout.apply(void 0,
|
|
692
|
+
return setTimeout.apply(void 0, Fe([e, t], De(r)));
|
|
693
693
|
},
|
|
694
694
|
clearTimeout: function(e) {
|
|
695
695
|
return clearTimeout(e);
|
|
696
696
|
},
|
|
697
697
|
delegate: void 0
|
|
698
698
|
};
|
|
699
|
-
function
|
|
700
|
-
|
|
699
|
+
function Vr(e) {
|
|
700
|
+
kr.setTimeout(function() {
|
|
701
701
|
throw e;
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function ht() {
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function ce(e) {
|
|
707
707
|
e();
|
|
708
708
|
}
|
|
709
|
-
var
|
|
710
|
-
|
|
709
|
+
var Dt = function(e) {
|
|
710
|
+
ie(t, e);
|
|
711
711
|
function t(r) {
|
|
712
712
|
var n = e.call(this) || this;
|
|
713
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
713
|
+
return n.isStopped = !1, r ? (n.destination = r, Ut(r) && r.add(n)) : n.destination = zr, n;
|
|
714
714
|
}
|
|
715
715
|
return t.create = function(r, n, i) {
|
|
716
|
-
return new
|
|
716
|
+
return new ke(r, n, i);
|
|
717
717
|
}, t.prototype.next = function(r) {
|
|
718
718
|
this.isStopped || this._next(r);
|
|
719
719
|
}, t.prototype.error = function(r) {
|
|
@@ -737,7 +737,7 @@ var Gt = function(e) {
|
|
|
737
737
|
this.unsubscribe();
|
|
738
738
|
}
|
|
739
739
|
}, t;
|
|
740
|
-
}(
|
|
740
|
+
}(ye), Xr = function() {
|
|
741
741
|
function e(t) {
|
|
742
742
|
this.partialObserver = t;
|
|
743
743
|
}
|
|
@@ -747,7 +747,7 @@ var Gt = function(e) {
|
|
|
747
747
|
try {
|
|
748
748
|
r.next(t);
|
|
749
749
|
} catch (n) {
|
|
750
|
-
|
|
750
|
+
se(n);
|
|
751
751
|
}
|
|
752
752
|
}, e.prototype.error = function(t) {
|
|
753
753
|
var r = this.partialObserver;
|
|
@@ -755,56 +755,56 @@ var Gt = function(e) {
|
|
|
755
755
|
try {
|
|
756
756
|
r.error(t);
|
|
757
757
|
} catch (n) {
|
|
758
|
-
|
|
758
|
+
se(n);
|
|
759
759
|
}
|
|
760
760
|
else
|
|
761
|
-
|
|
761
|
+
se(t);
|
|
762
762
|
}, e.prototype.complete = function() {
|
|
763
763
|
var t = this.partialObserver;
|
|
764
764
|
if (t.complete)
|
|
765
765
|
try {
|
|
766
766
|
t.complete();
|
|
767
767
|
} catch (r) {
|
|
768
|
-
|
|
768
|
+
se(r);
|
|
769
769
|
}
|
|
770
770
|
}, e;
|
|
771
|
-
}(),
|
|
772
|
-
|
|
771
|
+
}(), ke = function(e) {
|
|
772
|
+
ie(t, e);
|
|
773
773
|
function t(r, n, i) {
|
|
774
774
|
var o = e.call(this) || this, s;
|
|
775
|
-
return
|
|
775
|
+
return R(r) || !r ? s = {
|
|
776
776
|
next: r ?? void 0,
|
|
777
777
|
error: n ?? void 0,
|
|
778
778
|
complete: i ?? void 0
|
|
779
|
-
} : s = r, o.destination = new
|
|
779
|
+
} : s = r, o.destination = new Xr(s), o;
|
|
780
780
|
}
|
|
781
781
|
return t;
|
|
782
|
-
}(
|
|
783
|
-
function
|
|
784
|
-
|
|
782
|
+
}(Dt);
|
|
783
|
+
function se(e) {
|
|
784
|
+
Vr(e);
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function Wr(e) {
|
|
787
787
|
throw e;
|
|
788
788
|
}
|
|
789
|
-
var
|
|
789
|
+
var zr = {
|
|
790
790
|
closed: !0,
|
|
791
|
-
next:
|
|
792
|
-
error:
|
|
793
|
-
complete:
|
|
794
|
-
},
|
|
791
|
+
next: ht,
|
|
792
|
+
error: Wr,
|
|
793
|
+
complete: ht
|
|
794
|
+
}, Zr = function() {
|
|
795
795
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
796
796
|
}();
|
|
797
|
-
function
|
|
797
|
+
function Qr(e) {
|
|
798
798
|
return e;
|
|
799
799
|
}
|
|
800
|
-
function
|
|
801
|
-
return e.length === 0 ?
|
|
800
|
+
function Jr(e) {
|
|
801
|
+
return e.length === 0 ? Qr : e.length === 1 ? e[0] : function(r) {
|
|
802
802
|
return e.reduce(function(n, i) {
|
|
803
803
|
return i(n);
|
|
804
804
|
}, r);
|
|
805
805
|
};
|
|
806
806
|
}
|
|
807
|
-
var
|
|
807
|
+
var lt = function() {
|
|
808
808
|
function e(t) {
|
|
809
809
|
t && (this._subscribe = t);
|
|
810
810
|
}
|
|
@@ -812,8 +812,8 @@ var ut = function() {
|
|
|
812
812
|
var r = new e();
|
|
813
813
|
return r.source = this, r.operator = t, r;
|
|
814
814
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
815
|
-
var i = this, o =
|
|
816
|
-
return
|
|
815
|
+
var i = this, o = qr(t) ? t : new ke(t, r, n);
|
|
816
|
+
return ce(function() {
|
|
817
817
|
var s = i, a = s.operator, h = s.source;
|
|
818
818
|
o.add(a ? a.call(o, h) : h ? i._subscribe(o) : i._trySubscribe(o));
|
|
819
819
|
}), o;
|
|
@@ -825,8 +825,8 @@ var ut = function() {
|
|
|
825
825
|
}
|
|
826
826
|
}, e.prototype.forEach = function(t, r) {
|
|
827
827
|
var n = this;
|
|
828
|
-
return r =
|
|
829
|
-
var s = new
|
|
828
|
+
return r = ct(r), new r(function(i, o) {
|
|
829
|
+
var s = new ke({
|
|
830
830
|
next: function(a) {
|
|
831
831
|
try {
|
|
832
832
|
t(a);
|
|
@@ -842,15 +842,15 @@ var ut = function() {
|
|
|
842
842
|
}, e.prototype._subscribe = function(t) {
|
|
843
843
|
var r;
|
|
844
844
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
845
|
-
}, e.prototype[
|
|
845
|
+
}, e.prototype[Zr] = function() {
|
|
846
846
|
return this;
|
|
847
847
|
}, e.prototype.pipe = function() {
|
|
848
848
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
849
849
|
t[r] = arguments[r];
|
|
850
|
-
return
|
|
850
|
+
return Jr(t)(this);
|
|
851
851
|
}, e.prototype.toPromise = function(t) {
|
|
852
852
|
var r = this;
|
|
853
|
-
return t =
|
|
853
|
+
return t = ct(t), new t(function(n, i) {
|
|
854
854
|
var o;
|
|
855
855
|
r.subscribe(function(s) {
|
|
856
856
|
return o = s;
|
|
@@ -864,40 +864,40 @@ var ut = function() {
|
|
|
864
864
|
return new e(t);
|
|
865
865
|
}, e;
|
|
866
866
|
}();
|
|
867
|
-
function
|
|
867
|
+
function ct(e) {
|
|
868
868
|
var t;
|
|
869
|
-
return (t = e ??
|
|
869
|
+
return (t = e ?? jr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
870
870
|
}
|
|
871
|
-
function
|
|
872
|
-
return e &&
|
|
871
|
+
function Yr(e) {
|
|
872
|
+
return e && R(e.next) && R(e.error) && R(e.complete);
|
|
873
873
|
}
|
|
874
|
-
function
|
|
875
|
-
return e && e instanceof
|
|
874
|
+
function qr(e) {
|
|
875
|
+
return e && e instanceof Dt || Yr(e) && Ut(e);
|
|
876
876
|
}
|
|
877
|
-
var
|
|
877
|
+
var Kr = $t(function(e) {
|
|
878
878
|
return function() {
|
|
879
879
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
880
880
|
};
|
|
881
|
-
}),
|
|
882
|
-
|
|
881
|
+
}), Ft = function(e) {
|
|
882
|
+
ie(t, e);
|
|
883
883
|
function t() {
|
|
884
884
|
var r = e.call(this) || this;
|
|
885
885
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
886
886
|
}
|
|
887
887
|
return t.prototype.lift = function(r) {
|
|
888
|
-
var n = new
|
|
888
|
+
var n = new ft(this, this);
|
|
889
889
|
return n.operator = r, n;
|
|
890
890
|
}, t.prototype._throwIfClosed = function() {
|
|
891
891
|
if (this.closed)
|
|
892
|
-
throw new
|
|
892
|
+
throw new Kr();
|
|
893
893
|
}, t.prototype.next = function(r) {
|
|
894
894
|
var n = this;
|
|
895
|
-
|
|
895
|
+
ce(function() {
|
|
896
896
|
var i, o;
|
|
897
897
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
898
898
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
899
899
|
try {
|
|
900
|
-
for (var s =
|
|
900
|
+
for (var s = Ue(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
901
901
|
var h = a.value;
|
|
902
902
|
h.next(r);
|
|
903
903
|
}
|
|
@@ -915,7 +915,7 @@ var Yr = Nt(function(e) {
|
|
|
915
915
|
});
|
|
916
916
|
}, t.prototype.error = function(r) {
|
|
917
917
|
var n = this;
|
|
918
|
-
|
|
918
|
+
ce(function() {
|
|
919
919
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
920
920
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
921
921
|
for (var i = n.observers; i.length; )
|
|
@@ -924,7 +924,7 @@ var Yr = Nt(function(e) {
|
|
|
924
924
|
});
|
|
925
925
|
}, t.prototype.complete = function() {
|
|
926
926
|
var r = this;
|
|
927
|
-
|
|
927
|
+
ce(function() {
|
|
928
928
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
929
929
|
r.isStopped = !0;
|
|
930
930
|
for (var n = r.observers; n.length; )
|
|
@@ -946,20 +946,20 @@ var Yr = Nt(function(e) {
|
|
|
946
946
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
947
947
|
}, t.prototype._innerSubscribe = function(r) {
|
|
948
948
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
949
|
-
return o || s ?
|
|
950
|
-
n.currentObservers = null,
|
|
949
|
+
return o || s ? Gt : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
950
|
+
n.currentObservers = null, je(a, r);
|
|
951
951
|
}));
|
|
952
952
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
953
953
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
954
954
|
i ? r.error(o) : s && r.complete();
|
|
955
955
|
}, t.prototype.asObservable = function() {
|
|
956
|
-
var r = new
|
|
956
|
+
var r = new lt();
|
|
957
957
|
return r.source = this, r;
|
|
958
958
|
}, t.create = function(r, n) {
|
|
959
|
-
return new
|
|
959
|
+
return new ft(r, n);
|
|
960
960
|
}, t;
|
|
961
|
-
}(
|
|
962
|
-
|
|
961
|
+
}(lt), ft = function(e) {
|
|
962
|
+
ie(t, e);
|
|
963
963
|
function t(r, n) {
|
|
964
964
|
var i = e.call(this) || this;
|
|
965
965
|
return i.destination = r, i.source = n, i;
|
|
@@ -975,17 +975,17 @@ var Yr = Nt(function(e) {
|
|
|
975
975
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
976
976
|
}, t.prototype._subscribe = function(r) {
|
|
977
977
|
var n, i;
|
|
978
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
978
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Gt;
|
|
979
979
|
}, t;
|
|
980
|
-
}(
|
|
980
|
+
}(Ft), jt = {
|
|
981
981
|
now: function() {
|
|
982
|
-
return (
|
|
982
|
+
return (jt.delegate || Date).now();
|
|
983
983
|
},
|
|
984
984
|
delegate: void 0
|
|
985
|
-
},
|
|
986
|
-
|
|
985
|
+
}, en = function(e) {
|
|
986
|
+
ie(t, e);
|
|
987
987
|
function t(r, n, i) {
|
|
988
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
988
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = jt);
|
|
989
989
|
var o = e.call(this) || this;
|
|
990
990
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
991
991
|
}
|
|
@@ -1005,24 +1005,24 @@ var Yr = Nt(function(e) {
|
|
|
1005
1005
|
u && o.splice(0, u + 1);
|
|
1006
1006
|
}
|
|
1007
1007
|
}, t;
|
|
1008
|
-
}(
|
|
1009
|
-
const
|
|
1010
|
-
if (
|
|
1011
|
-
const r = new
|
|
1012
|
-
|
|
1008
|
+
}(Ft);
|
|
1009
|
+
const mt = [], pt = {}, tn = (e, t = 0) => {
|
|
1010
|
+
if (mt.indexOf(e) == -1) {
|
|
1011
|
+
const r = new en(t);
|
|
1012
|
+
pt[e] = r, mt.push(e);
|
|
1013
1013
|
}
|
|
1014
|
-
return
|
|
1014
|
+
return pt[e];
|
|
1015
1015
|
}, F = [];
|
|
1016
|
-
function
|
|
1016
|
+
function rn(e, t) {
|
|
1017
1017
|
return {
|
|
1018
|
-
subscribe:
|
|
1018
|
+
subscribe: ve(e, t).subscribe
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function ve(e, t = I) {
|
|
1022
1022
|
let r;
|
|
1023
1023
|
const n = /* @__PURE__ */ new Set();
|
|
1024
1024
|
function i(a) {
|
|
1025
|
-
if (
|
|
1025
|
+
if (Lt(e, a) && (e = a, r)) {
|
|
1026
1026
|
const h = !F.length;
|
|
1027
1027
|
for (const u of n)
|
|
1028
1028
|
u[1](), F.push(u, e);
|
|
@@ -1044,12 +1044,12 @@ function ye(e, t = I) {
|
|
|
1044
1044
|
}
|
|
1045
1045
|
return { set: i, update: o, subscribe: s };
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function J(e, t, r) {
|
|
1048
1048
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1049
1049
|
if (!i.every(Boolean))
|
|
1050
1050
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1051
1051
|
const o = t.length < 2;
|
|
1052
|
-
return
|
|
1052
|
+
return rn(r, (s, a) => {
|
|
1053
1053
|
let h = !1;
|
|
1054
1054
|
const u = [];
|
|
1055
1055
|
let l = 0, c = I;
|
|
@@ -1058,9 +1058,9 @@ function Q(e, t, r) {
|
|
|
1058
1058
|
return;
|
|
1059
1059
|
c();
|
|
1060
1060
|
const m = t(n ? u[0] : u, s, a);
|
|
1061
|
-
o ? s(m) : c =
|
|
1061
|
+
o ? s(m) : c = Ke(m) ? m : I;
|
|
1062
1062
|
}, p = i.map(
|
|
1063
|
-
(m, y) =>
|
|
1063
|
+
(m, y) => It(
|
|
1064
1064
|
m,
|
|
1065
1065
|
(E) => {
|
|
1066
1066
|
u[y] = E, l &= ~(1 << y), h && f();
|
|
@@ -1071,96 +1071,96 @@ function Q(e, t, r) {
|
|
|
1071
1071
|
)
|
|
1072
1072
|
);
|
|
1073
1073
|
return h = !0, f(), function() {
|
|
1074
|
-
|
|
1074
|
+
Q(p), c(), h = !1;
|
|
1075
1075
|
};
|
|
1076
1076
|
});
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1078
|
+
function nn(e) {
|
|
1079
1079
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1080
1080
|
}
|
|
1081
|
-
var
|
|
1082
|
-
return
|
|
1081
|
+
var on = function(t) {
|
|
1082
|
+
return sn(t) && !an(t);
|
|
1083
1083
|
};
|
|
1084
|
-
function
|
|
1084
|
+
function sn(e) {
|
|
1085
1085
|
return !!e && typeof e == "object";
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function an(e) {
|
|
1088
1088
|
var t = Object.prototype.toString.call(e);
|
|
1089
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1089
|
+
return t === "[object RegExp]" || t === "[object Date]" || ln(e);
|
|
1090
1090
|
}
|
|
1091
|
-
var
|
|
1092
|
-
function
|
|
1093
|
-
return e.$$typeof ===
|
|
1091
|
+
var un = typeof Symbol == "function" && Symbol.for, hn = un ? Symbol.for("react.element") : 60103;
|
|
1092
|
+
function ln(e) {
|
|
1093
|
+
return e.$$typeof === hn;
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function cn(e) {
|
|
1096
1096
|
return Array.isArray(e) ? [] : {};
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1098
|
+
function re(e, t) {
|
|
1099
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(cn(e), e, t) : e;
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function fn(e, t, r) {
|
|
1102
1102
|
return e.concat(t).map(function(n) {
|
|
1103
|
-
return
|
|
1103
|
+
return re(n, r);
|
|
1104
1104
|
});
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function mn(e, t) {
|
|
1107
1107
|
if (!t.customMerge)
|
|
1108
|
-
return
|
|
1108
|
+
return X;
|
|
1109
1109
|
var r = t.customMerge(e);
|
|
1110
|
-
return typeof r == "function" ? r :
|
|
1110
|
+
return typeof r == "function" ? r : X;
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function pn(e) {
|
|
1113
1113
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1114
1114
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1115
1115
|
}) : [];
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return Object.keys(e).concat(
|
|
1117
|
+
function dt(e) {
|
|
1118
|
+
return Object.keys(e).concat(pn(e));
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1120
|
+
function kt(e, t) {
|
|
1121
1121
|
try {
|
|
1122
1122
|
return t in e;
|
|
1123
1123
|
} catch {
|
|
1124
1124
|
return !1;
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1128
|
-
return
|
|
1127
|
+
function dn(e, t) {
|
|
1128
|
+
return kt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function bn(e, t, r) {
|
|
1131
1131
|
var n = {};
|
|
1132
|
-
return r.isMergeableObject(e) &&
|
|
1133
|
-
n[i] =
|
|
1134
|
-
}),
|
|
1135
|
-
|
|
1132
|
+
return r.isMergeableObject(e) && dt(e).forEach(function(i) {
|
|
1133
|
+
n[i] = re(e[i], r);
|
|
1134
|
+
}), dt(t).forEach(function(i) {
|
|
1135
|
+
dn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = mn(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
|
|
1136
1136
|
}), n;
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1139
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1138
|
+
function X(e, t, r) {
|
|
1139
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified = re;
|
|
1140
1140
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1141
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1141
|
+
return o ? n ? r.arrayMerge(e, t, r) : bn(e, t, r) : re(t, r);
|
|
1142
1142
|
}
|
|
1143
|
-
|
|
1143
|
+
X.all = function(t, r) {
|
|
1144
1144
|
if (!Array.isArray(t))
|
|
1145
1145
|
throw new Error("first argument should be an array");
|
|
1146
1146
|
return t.reduce(function(n, i) {
|
|
1147
|
-
return
|
|
1147
|
+
return X(n, i, r);
|
|
1148
1148
|
}, {});
|
|
1149
1149
|
};
|
|
1150
|
-
var
|
|
1151
|
-
const
|
|
1152
|
-
var
|
|
1153
|
-
return
|
|
1150
|
+
var gn = X, yn = gn;
|
|
1151
|
+
const vn = /* @__PURE__ */ nn(yn);
|
|
1152
|
+
var Ve = function(e, t) {
|
|
1153
|
+
return Ve = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1154
1154
|
r.__proto__ = n;
|
|
1155
1155
|
} || function(r, n) {
|
|
1156
1156
|
for (var i in n)
|
|
1157
1157
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1158
|
-
},
|
|
1158
|
+
}, Ve(e, t);
|
|
1159
1159
|
};
|
|
1160
|
-
function
|
|
1160
|
+
function _e(e, t) {
|
|
1161
1161
|
if (typeof t != "function" && t !== null)
|
|
1162
1162
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1163
|
-
|
|
1163
|
+
Ve(e, t);
|
|
1164
1164
|
function r() {
|
|
1165
1165
|
this.constructor = e;
|
|
1166
1166
|
}
|
|
@@ -1176,7 +1176,7 @@ var L = function() {
|
|
|
1176
1176
|
return t;
|
|
1177
1177
|
}, L.apply(this, arguments);
|
|
1178
1178
|
};
|
|
1179
|
-
function
|
|
1179
|
+
function _n(e, t) {
|
|
1180
1180
|
var r = {};
|
|
1181
1181
|
for (var n in e)
|
|
1182
1182
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -1185,43 +1185,43 @@ function yn(e, t) {
|
|
|
1185
1185
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1186
1186
|
return r;
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function Ae(e, t, r) {
|
|
1189
1189
|
if (r || arguments.length === 2)
|
|
1190
1190
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1191
1191
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1192
1192
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1195
|
-
var r = t && t.cache ? t.cache :
|
|
1194
|
+
function Pe(e, t) {
|
|
1195
|
+
var r = t && t.cache ? t.cache : Cn, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : Sn;
|
|
1196
1196
|
return i(e, {
|
|
1197
1197
|
cache: r,
|
|
1198
1198
|
serializer: n
|
|
1199
1199
|
});
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function xn(e) {
|
|
1202
1202
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1205
|
-
var i =
|
|
1204
|
+
function En(e, t, r, n) {
|
|
1205
|
+
var i = xn(n) ? n : r(n), o = t.get(i);
|
|
1206
1206
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1208
|
+
function Vt(e, t, r) {
|
|
1209
1209
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1210
1210
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function Xt(e, t, r, n, i) {
|
|
1213
1213
|
return r.bind(t, e, n, i);
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1216
|
-
var r = e.length === 1 ?
|
|
1217
|
-
return
|
|
1215
|
+
function Sn(e, t) {
|
|
1216
|
+
var r = e.length === 1 ? En : Vt;
|
|
1217
|
+
return Xt(e, this, r, t.cache.create(), t.serializer);
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1220
|
-
return
|
|
1219
|
+
function wn(e, t) {
|
|
1220
|
+
return Xt(e, this, Vt, t.cache.create(), t.serializer);
|
|
1221
1221
|
}
|
|
1222
|
-
var
|
|
1222
|
+
var Tn = function() {
|
|
1223
1223
|
return JSON.stringify(arguments);
|
|
1224
|
-
},
|
|
1224
|
+
}, Hn = (
|
|
1225
1225
|
/** @class */
|
|
1226
1226
|
function() {
|
|
1227
1227
|
function e() {
|
|
@@ -1233,21 +1233,21 @@ var wn = function() {
|
|
|
1233
1233
|
this.cache[t] = r;
|
|
1234
1234
|
}, e;
|
|
1235
1235
|
}()
|
|
1236
|
-
),
|
|
1236
|
+
), Cn = {
|
|
1237
1237
|
create: function() {
|
|
1238
|
-
return new
|
|
1238
|
+
return new Hn();
|
|
1239
1239
|
}
|
|
1240
|
-
},
|
|
1241
|
-
variadic:
|
|
1242
|
-
},
|
|
1243
|
-
return
|
|
1240
|
+
}, Oe = {
|
|
1241
|
+
variadic: wn
|
|
1242
|
+
}, pe = function() {
|
|
1243
|
+
return pe = Object.assign || function(t) {
|
|
1244
1244
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1245
1245
|
r = arguments[n];
|
|
1246
1246
|
for (var o in r)
|
|
1247
1247
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1248
1248
|
}
|
|
1249
1249
|
return t;
|
|
1250
|
-
},
|
|
1250
|
+
}, pe.apply(this, arguments);
|
|
1251
1251
|
};
|
|
1252
1252
|
var d;
|
|
1253
1253
|
(function(e) {
|
|
@@ -1257,47 +1257,47 @@ var v;
|
|
|
1257
1257
|
(function(e) {
|
|
1258
1258
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1259
1259
|
})(v || (v = {}));
|
|
1260
|
-
var
|
|
1260
|
+
var W;
|
|
1261
1261
|
(function(e) {
|
|
1262
1262
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1263
|
-
})(
|
|
1264
|
-
function
|
|
1263
|
+
})(W || (W = {}));
|
|
1264
|
+
function bt(e) {
|
|
1265
1265
|
return e.type === v.literal;
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function Bn(e) {
|
|
1268
1268
|
return e.type === v.argument;
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function Wt(e) {
|
|
1271
1271
|
return e.type === v.number;
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function zt(e) {
|
|
1274
1274
|
return e.type === v.date;
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1276
|
+
function Zt(e) {
|
|
1277
1277
|
return e.type === v.time;
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function Qt(e) {
|
|
1280
1280
|
return e.type === v.select;
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function Jt(e) {
|
|
1283
1283
|
return e.type === v.plural;
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function An(e) {
|
|
1286
1286
|
return e.type === v.pound;
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function Yt(e) {
|
|
1289
1289
|
return e.type === v.tag;
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1292
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1291
|
+
function qt(e) {
|
|
1292
|
+
return !!(e && typeof e == "object" && e.type === W.number);
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1295
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1294
|
+
function Xe(e) {
|
|
1295
|
+
return !!(e && typeof e == "object" && e.type === W.dateTime);
|
|
1296
1296
|
}
|
|
1297
|
-
var
|
|
1298
|
-
function
|
|
1297
|
+
var Kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pn = /(?:[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;
|
|
1298
|
+
function On(e) {
|
|
1299
1299
|
var t = {};
|
|
1300
|
-
return e.replace(
|
|
1300
|
+
return e.replace(Pn, function(r) {
|
|
1301
1301
|
var n = r.length;
|
|
1302
1302
|
switch (r[0]) {
|
|
1303
1303
|
case "G":
|
|
@@ -1386,21 +1386,21 @@ function An(e) {
|
|
|
1386
1386
|
return "";
|
|
1387
1387
|
}), t;
|
|
1388
1388
|
}
|
|
1389
|
-
var
|
|
1390
|
-
return
|
|
1389
|
+
var x = function() {
|
|
1390
|
+
return x = Object.assign || function(t) {
|
|
1391
1391
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1392
1392
|
r = arguments[n];
|
|
1393
1393
|
for (var o in r)
|
|
1394
1394
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1395
1395
|
}
|
|
1396
1396
|
return t;
|
|
1397
|
-
},
|
|
1397
|
+
}, x.apply(this, arguments);
|
|
1398
1398
|
};
|
|
1399
|
-
var
|
|
1400
|
-
function
|
|
1399
|
+
var Ln = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1400
|
+
function In(e) {
|
|
1401
1401
|
if (e.length === 0)
|
|
1402
1402
|
throw new Error("Number skeleton cannot be empty");
|
|
1403
|
-
for (var t = e.split(
|
|
1403
|
+
for (var t = e.split(Ln).filter(function(f) {
|
|
1404
1404
|
return f.length > 0;
|
|
1405
1405
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1406
1406
|
var o = i[n], s = o.split("/");
|
|
@@ -1415,17 +1415,17 @@ function On(e) {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
return r;
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function Mn(e) {
|
|
1419
1419
|
return e.replace(/^(.*?)-/, "");
|
|
1420
1420
|
}
|
|
1421
|
-
var
|
|
1422
|
-
function
|
|
1421
|
+
var gt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, Nn = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
|
|
1422
|
+
function yt(e) {
|
|
1423
1423
|
var t = {};
|
|
1424
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1424
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(er, function(r, n, i) {
|
|
1425
1425
|
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)), "";
|
|
1426
1426
|
}), t;
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1428
|
+
function rr(e) {
|
|
1429
1429
|
switch (e) {
|
|
1430
1430
|
case "sign-auto":
|
|
1431
1431
|
return {
|
|
@@ -1465,7 +1465,7 @@ function er(e) {
|
|
|
1465
1465
|
};
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function Rn(e) {
|
|
1469
1469
|
var t;
|
|
1470
1470
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1471
1471
|
notation: "engineering"
|
|
@@ -1473,17 +1473,17 @@ function Mn(e) {
|
|
|
1473
1473
|
notation: "scientific"
|
|
1474
1474
|
}, e = e.slice(1)), t) {
|
|
1475
1475
|
var r = e.slice(0, 2);
|
|
1476
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1476
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !tr.test(e))
|
|
1477
1477
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1478
1478
|
t.minimumIntegerDigits = e.length;
|
|
1479
1479
|
}
|
|
1480
1480
|
return t;
|
|
1481
1481
|
}
|
|
1482
|
-
function
|
|
1483
|
-
var t = {}, r =
|
|
1482
|
+
function vt(e) {
|
|
1483
|
+
var t = {}, r = rr(e);
|
|
1484
1484
|
return r || t;
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1486
|
+
function $n(e) {
|
|
1487
1487
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1488
1488
|
var i = n[r];
|
|
1489
1489
|
switch (i.stem) {
|
|
@@ -1507,7 +1507,7 @@ function Nn(e) {
|
|
|
1507
1507
|
continue;
|
|
1508
1508
|
case "measure-unit":
|
|
1509
1509
|
case "unit":
|
|
1510
|
-
t.style = "unit", t.unit =
|
|
1510
|
+
t.style = "unit", t.unit = Mn(i.options[0]);
|
|
1511
1511
|
continue;
|
|
1512
1512
|
case "compact-short":
|
|
1513
1513
|
case "K":
|
|
@@ -1518,13 +1518,13 @@ function Nn(e) {
|
|
|
1518
1518
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1519
1519
|
continue;
|
|
1520
1520
|
case "scientific":
|
|
1521
|
-
t =
|
|
1522
|
-
return
|
|
1521
|
+
t = x(x(x({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1522
|
+
return x(x({}, h), vt(u));
|
|
1523
1523
|
}, {}));
|
|
1524
1524
|
continue;
|
|
1525
1525
|
case "engineering":
|
|
1526
|
-
t =
|
|
1527
|
-
return
|
|
1526
|
+
t = x(x(x({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1527
|
+
return x(x({}, h), vt(u));
|
|
1528
1528
|
}, {}));
|
|
1529
1529
|
continue;
|
|
1530
1530
|
case "notation-simple":
|
|
@@ -1569,7 +1569,7 @@ function Nn(e) {
|
|
|
1569
1569
|
case "integer-width":
|
|
1570
1570
|
if (i.options.length > 1)
|
|
1571
1571
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1572
|
-
i.options[0].replace(
|
|
1572
|
+
i.options[0].replace(Nn, function(h, u, l, c, f, p) {
|
|
1573
1573
|
if (u)
|
|
1574
1574
|
t.minimumIntegerDigits = l.length;
|
|
1575
1575
|
else {
|
|
@@ -1582,32 +1582,32 @@ function Nn(e) {
|
|
|
1582
1582
|
});
|
|
1583
1583
|
continue;
|
|
1584
1584
|
}
|
|
1585
|
-
if (
|
|
1585
|
+
if (tr.test(i.stem)) {
|
|
1586
1586
|
t.minimumIntegerDigits = i.stem.length;
|
|
1587
1587
|
continue;
|
|
1588
1588
|
}
|
|
1589
|
-
if (
|
|
1589
|
+
if (gt.test(i.stem)) {
|
|
1590
1590
|
if (i.options.length > 1)
|
|
1591
1591
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1592
|
-
i.stem.replace(
|
|
1592
|
+
i.stem.replace(gt, function(h, u, l, c, f, p) {
|
|
1593
1593
|
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1594
1594
|
});
|
|
1595
1595
|
var o = i.options[0];
|
|
1596
|
-
o === "w" ? t =
|
|
1596
|
+
o === "w" ? t = x(x({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = x(x({}, t), yt(o)));
|
|
1597
1597
|
continue;
|
|
1598
1598
|
}
|
|
1599
|
-
if (
|
|
1600
|
-
t =
|
|
1599
|
+
if (er.test(i.stem)) {
|
|
1600
|
+
t = x(x({}, t), yt(i.stem));
|
|
1601
1601
|
continue;
|
|
1602
1602
|
}
|
|
1603
|
-
var s =
|
|
1604
|
-
s && (t =
|
|
1605
|
-
var a =
|
|
1606
|
-
a && (t =
|
|
1603
|
+
var s = rr(i.stem);
|
|
1604
|
+
s && (t = x(x({}, t), s));
|
|
1605
|
+
var a = Rn(i.stem);
|
|
1606
|
+
a && (t = x(x({}, t), a));
|
|
1607
1607
|
}
|
|
1608
1608
|
return t;
|
|
1609
1609
|
}
|
|
1610
|
-
var
|
|
1610
|
+
var ae = {
|
|
1611
1611
|
"001": [
|
|
1612
1612
|
"H",
|
|
1613
1613
|
"h"
|
|
@@ -3022,13 +3022,13 @@ var se = {
|
|
|
3022
3022
|
"h"
|
|
3023
3023
|
]
|
|
3024
3024
|
};
|
|
3025
|
-
function
|
|
3025
|
+
function Gn(e, t) {
|
|
3026
3026
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3027
3027
|
var i = e.charAt(n);
|
|
3028
3028
|
if (i === "j") {
|
|
3029
3029
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3030
3030
|
o++, n++;
|
|
3031
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
3031
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Un(t);
|
|
3032
3032
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
3033
3033
|
r += h;
|
|
3034
3034
|
for (; s-- > 0; )
|
|
@@ -3038,7 +3038,7 @@ function $n(e, t) {
|
|
|
3038
3038
|
}
|
|
3039
3039
|
return r;
|
|
3040
3040
|
}
|
|
3041
|
-
function
|
|
3041
|
+
function Un(e) {
|
|
3042
3042
|
var t = e.hourCycle;
|
|
3043
3043
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3044
3044
|
e.hourCycles && // @ts-ignore
|
|
@@ -3057,23 +3057,23 @@ function Rn(e) {
|
|
|
3057
3057
|
}
|
|
3058
3058
|
var r = e.language, n;
|
|
3059
3059
|
r !== "root" && (n = e.maximize().region);
|
|
3060
|
-
var i =
|
|
3060
|
+
var i = ae[n || ""] || ae[r || ""] || ae["".concat(r, "-001")] || ae["001"];
|
|
3061
3061
|
return i[0];
|
|
3062
3062
|
}
|
|
3063
|
-
var
|
|
3063
|
+
var Le, Dn = new RegExp("^".concat(Kt.source, "*")), Fn = new RegExp("".concat(Kt.source, "*$"));
|
|
3064
3064
|
function g(e, t) {
|
|
3065
3065
|
return { start: e, end: t };
|
|
3066
3066
|
}
|
|
3067
|
-
var
|
|
3067
|
+
var jn = !!String.prototype.startsWith && "_a".startsWith("a", 1), kn = !!String.fromCodePoint, Vn = !!Object.fromEntries, Xn = !!String.prototype.codePointAt, Wn = !!String.prototype.trimStart, zn = !!String.prototype.trimEnd, Zn = !!Number.isSafeInteger, Qn = Zn ? Number.isSafeInteger : function(e) {
|
|
3068
3068
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3069
|
-
},
|
|
3069
|
+
}, We = !0;
|
|
3070
3070
|
try {
|
|
3071
|
-
var
|
|
3072
|
-
|
|
3071
|
+
var Jn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3072
|
+
We = ((Le = Jn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
|
|
3073
3073
|
} catch {
|
|
3074
|
-
|
|
3074
|
+
We = !1;
|
|
3075
3075
|
}
|
|
3076
|
-
var
|
|
3076
|
+
var _t = jn ? (
|
|
3077
3077
|
// Native
|
|
3078
3078
|
function(t, r, n) {
|
|
3079
3079
|
return t.startsWith(r, n);
|
|
@@ -3083,7 +3083,7 @@ var yt = Dn ? (
|
|
|
3083
3083
|
function(t, r, n) {
|
|
3084
3084
|
return t.slice(n, n + r.length) === r;
|
|
3085
3085
|
}
|
|
3086
|
-
),
|
|
3086
|
+
), ze = kn ? String.fromCodePoint : (
|
|
3087
3087
|
// IE11
|
|
3088
3088
|
function() {
|
|
3089
3089
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3095,9 +3095,9 @@ var yt = Dn ? (
|
|
|
3095
3095
|
}
|
|
3096
3096
|
return n;
|
|
3097
3097
|
}
|
|
3098
|
-
),
|
|
3098
|
+
), xt = (
|
|
3099
3099
|
// native
|
|
3100
|
-
|
|
3100
|
+
Vn ? Object.fromEntries : (
|
|
3101
3101
|
// Ponyfill
|
|
3102
3102
|
function(t) {
|
|
3103
3103
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3107,7 +3107,7 @@ var yt = Dn ? (
|
|
|
3107
3107
|
return r;
|
|
3108
3108
|
}
|
|
3109
3109
|
)
|
|
3110
|
-
),
|
|
3110
|
+
), nr = Xn ? (
|
|
3111
3111
|
// Native
|
|
3112
3112
|
function(t, r) {
|
|
3113
3113
|
return t.codePointAt(r);
|
|
@@ -3121,7 +3121,7 @@ var yt = Dn ? (
|
|
|
3121
3121
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3122
3122
|
}
|
|
3123
3123
|
}
|
|
3124
|
-
),
|
|
3124
|
+
), Yn = Wn ? (
|
|
3125
3125
|
// Native
|
|
3126
3126
|
function(t) {
|
|
3127
3127
|
return t.trimStart();
|
|
@@ -3129,9 +3129,9 @@ var yt = Dn ? (
|
|
|
3129
3129
|
) : (
|
|
3130
3130
|
// Ponyfill
|
|
3131
3131
|
function(t) {
|
|
3132
|
-
return t.replace(
|
|
3132
|
+
return t.replace(Dn, "");
|
|
3133
3133
|
}
|
|
3134
|
-
),
|
|
3134
|
+
), qn = zn ? (
|
|
3135
3135
|
// Native
|
|
3136
3136
|
function(t) {
|
|
3137
3137
|
return t.trimEnd();
|
|
@@ -3139,32 +3139,32 @@ var yt = Dn ? (
|
|
|
3139
3139
|
) : (
|
|
3140
3140
|
// Ponyfill
|
|
3141
3141
|
function(t) {
|
|
3142
|
-
return t.replace(
|
|
3142
|
+
return t.replace(Fn, "");
|
|
3143
3143
|
}
|
|
3144
3144
|
);
|
|
3145
|
-
function
|
|
3145
|
+
function ir(e, t) {
|
|
3146
3146
|
return new RegExp(e, t);
|
|
3147
3147
|
}
|
|
3148
|
-
var
|
|
3149
|
-
if (
|
|
3150
|
-
var
|
|
3151
|
-
|
|
3148
|
+
var Ze;
|
|
3149
|
+
if (We) {
|
|
3150
|
+
var Et = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3151
|
+
Ze = function(t, r) {
|
|
3152
3152
|
var n;
|
|
3153
|
-
|
|
3154
|
-
var i =
|
|
3153
|
+
Et.lastIndex = r;
|
|
3154
|
+
var i = Et.exec(t);
|
|
3155
3155
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3156
3156
|
};
|
|
3157
3157
|
} else
|
|
3158
|
-
|
|
3158
|
+
Ze = function(t, r) {
|
|
3159
3159
|
for (var n = []; ; ) {
|
|
3160
|
-
var i =
|
|
3161
|
-
if (i === void 0 ||
|
|
3160
|
+
var i = nr(t, r);
|
|
3161
|
+
if (i === void 0 || or(i) || ri(i))
|
|
3162
3162
|
break;
|
|
3163
3163
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3164
3164
|
}
|
|
3165
|
-
return
|
|
3165
|
+
return ze.apply(void 0, n);
|
|
3166
3166
|
};
|
|
3167
|
-
var
|
|
3167
|
+
var Kn = (
|
|
3168
3168
|
/** @class */
|
|
3169
3169
|
function() {
|
|
3170
3170
|
function e(t, r) {
|
|
@@ -3195,7 +3195,7 @@ var Yn = (
|
|
|
3195
3195
|
if (n)
|
|
3196
3196
|
break;
|
|
3197
3197
|
return this.error(d.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3198
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3198
|
+
} else if (o === 60 && !this.ignoreTag && Qe(this.peek() || 0)) {
|
|
3199
3199
|
var s = this.parseTag(t, r);
|
|
3200
3200
|
if (s.err)
|
|
3201
3201
|
return s;
|
|
@@ -3228,7 +3228,7 @@ var Yn = (
|
|
|
3228
3228
|
return o;
|
|
3229
3229
|
var s = o.val, a = this.clonePosition();
|
|
3230
3230
|
if (this.bumpIf("</")) {
|
|
3231
|
-
if (this.isEOF() || !
|
|
3231
|
+
if (this.isEOF() || !Qe(this.char()))
|
|
3232
3232
|
return this.error(d.INVALID_TAG, g(a, this.clonePosition()));
|
|
3233
3233
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
3234
3234
|
return i !== u ? this.error(d.UNMATCHED_CLOSING_TAG, g(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3246,7 +3246,7 @@ var Yn = (
|
|
|
3246
3246
|
return this.error(d.INVALID_TAG, g(n, this.clonePosition()));
|
|
3247
3247
|
}, e.prototype.parseTagName = function() {
|
|
3248
3248
|
var t = this.offset();
|
|
3249
|
-
for (this.bump(); !this.isEOF() &&
|
|
3249
|
+
for (this.bump(); !this.isEOF() && ti(this.char()); )
|
|
3250
3250
|
this.bump();
|
|
3251
3251
|
return this.message.slice(t, this.offset());
|
|
3252
3252
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3275,7 +3275,7 @@ var Yn = (
|
|
|
3275
3275
|
};
|
|
3276
3276
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3277
3277
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3278
|
-
!
|
|
3278
|
+
!ei(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3279
3279
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3280
3280
|
if (this.isEOF() || this.char() !== 39)
|
|
3281
3281
|
return null;
|
|
@@ -3309,12 +3309,12 @@ var Yn = (
|
|
|
3309
3309
|
r.push(n);
|
|
3310
3310
|
this.bump();
|
|
3311
3311
|
}
|
|
3312
|
-
return
|
|
3312
|
+
return ze.apply(void 0, r);
|
|
3313
3313
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3314
3314
|
if (this.isEOF())
|
|
3315
3315
|
return null;
|
|
3316
3316
|
var n = this.char();
|
|
3317
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3317
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
|
|
3318
3318
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3319
3319
|
var n = this.clonePosition();
|
|
3320
3320
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3343,7 +3343,7 @@ var Yn = (
|
|
|
3343
3343
|
return this.error(d.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3344
3344
|
}
|
|
3345
3345
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3346
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3346
|
+
var t = this.clonePosition(), r = this.offset(), n = Ze(this.message, r), i = r + n.length;
|
|
3347
3347
|
this.bumpTo(i);
|
|
3348
3348
|
var o = this.clonePosition(), s = g(t, o);
|
|
3349
3349
|
return { value: n, location: s };
|
|
@@ -3362,7 +3362,7 @@ var Yn = (
|
|
|
3362
3362
|
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3363
3363
|
if (c.err)
|
|
3364
3364
|
return c;
|
|
3365
|
-
var f =
|
|
3365
|
+
var f = qn(c.val);
|
|
3366
3366
|
if (f.length === 0)
|
|
3367
3367
|
return this.error(d.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3368
3368
|
var p = g(l, this.clonePosition());
|
|
@@ -3372,8 +3372,8 @@ var Yn = (
|
|
|
3372
3372
|
if (m.err)
|
|
3373
3373
|
return m;
|
|
3374
3374
|
var y = g(i, this.clonePosition());
|
|
3375
|
-
if (u &&
|
|
3376
|
-
var E =
|
|
3375
|
+
if (u && _t(u?.style, "::", 0)) {
|
|
3376
|
+
var E = Yn(u.style.slice(2));
|
|
3377
3377
|
if (a === "number") {
|
|
3378
3378
|
var c = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
3379
3379
|
return c.err ? c : {
|
|
@@ -3383,16 +3383,16 @@ var Yn = (
|
|
|
3383
3383
|
} else {
|
|
3384
3384
|
if (E.length === 0)
|
|
3385
3385
|
return this.error(d.EXPECT_DATE_TIME_SKELETON, y);
|
|
3386
|
-
var
|
|
3387
|
-
this.locale && (
|
|
3386
|
+
var O = E;
|
|
3387
|
+
this.locale && (O = Gn(E, this.locale));
|
|
3388
3388
|
var f = {
|
|
3389
|
-
type:
|
|
3390
|
-
pattern:
|
|
3389
|
+
type: W.dateTime,
|
|
3390
|
+
pattern: O,
|
|
3391
3391
|
location: u.styleLocation,
|
|
3392
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3393
|
-
},
|
|
3392
|
+
parsedOptions: this.shouldParseSkeletons ? On(O) : {}
|
|
3393
|
+
}, B = a === "date" ? v.date : v.time;
|
|
3394
3394
|
return {
|
|
3395
|
-
val: { type:
|
|
3395
|
+
val: { type: B, value: n, location: y, style: f },
|
|
3396
3396
|
err: null
|
|
3397
3397
|
};
|
|
3398
3398
|
}
|
|
@@ -3412,41 +3412,41 @@ var Yn = (
|
|
|
3412
3412
|
case "select": {
|
|
3413
3413
|
var T = this.clonePosition();
|
|
3414
3414
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3415
|
-
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, g(T,
|
|
3415
|
+
return this.error(d.EXPECT_SELECT_ARGUMENT_OPTIONS, g(T, pe({}, T)));
|
|
3416
3416
|
this.bumpSpace();
|
|
3417
|
-
var
|
|
3418
|
-
if (a !== "select" &&
|
|
3417
|
+
var A = this.parseIdentifierIfPossible(), S = 0;
|
|
3418
|
+
if (a !== "select" && A.value === "offset") {
|
|
3419
3419
|
if (!this.bumpIf(":"))
|
|
3420
3420
|
return this.error(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3421
3421
|
this.bumpSpace();
|
|
3422
3422
|
var c = this.tryParseDecimalInteger(d.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, d.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3423
3423
|
if (c.err)
|
|
3424
3424
|
return c;
|
|
3425
|
-
this.bumpSpace(),
|
|
3425
|
+
this.bumpSpace(), A = this.parseIdentifierIfPossible(), S = c.val;
|
|
3426
3426
|
}
|
|
3427
|
-
var
|
|
3428
|
-
if (
|
|
3429
|
-
return
|
|
3427
|
+
var _ = this.tryParsePluralOrSelectOptions(t, a, r, A);
|
|
3428
|
+
if (_.err)
|
|
3429
|
+
return _;
|
|
3430
3430
|
var m = this.tryParseArgumentClose(i);
|
|
3431
3431
|
if (m.err)
|
|
3432
3432
|
return m;
|
|
3433
|
-
var
|
|
3433
|
+
var P = g(i, this.clonePosition());
|
|
3434
3434
|
return a === "select" ? {
|
|
3435
3435
|
val: {
|
|
3436
3436
|
type: v.select,
|
|
3437
3437
|
value: n,
|
|
3438
|
-
options:
|
|
3439
|
-
location:
|
|
3438
|
+
options: xt(_.val),
|
|
3439
|
+
location: P
|
|
3440
3440
|
},
|
|
3441
3441
|
err: null
|
|
3442
3442
|
} : {
|
|
3443
3443
|
val: {
|
|
3444
3444
|
type: v.plural,
|
|
3445
3445
|
value: n,
|
|
3446
|
-
options:
|
|
3447
|
-
offset:
|
|
3446
|
+
options: xt(_.val),
|
|
3447
|
+
offset: S,
|
|
3448
3448
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3449
|
-
location:
|
|
3449
|
+
location: P
|
|
3450
3450
|
},
|
|
3451
3451
|
err: null
|
|
3452
3452
|
};
|
|
@@ -3494,16 +3494,16 @@ var Yn = (
|
|
|
3494
3494
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3495
3495
|
var n = [];
|
|
3496
3496
|
try {
|
|
3497
|
-
n =
|
|
3497
|
+
n = In(t);
|
|
3498
3498
|
} catch {
|
|
3499
3499
|
return this.error(d.INVALID_NUMBER_SKELETON, r);
|
|
3500
3500
|
}
|
|
3501
3501
|
return {
|
|
3502
3502
|
val: {
|
|
3503
|
-
type:
|
|
3503
|
+
type: W.number,
|
|
3504
3504
|
tokens: n,
|
|
3505
3505
|
location: r,
|
|
3506
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3506
|
+
parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
|
|
3507
3507
|
},
|
|
3508
3508
|
err: null
|
|
3509
3509
|
};
|
|
@@ -3551,7 +3551,7 @@ var Yn = (
|
|
|
3551
3551
|
break;
|
|
3552
3552
|
}
|
|
3553
3553
|
var h = g(i, this.clonePosition());
|
|
3554
|
-
return o ? (s *= n,
|
|
3554
|
+
return o ? (s *= n, Qn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3555
3555
|
}, e.prototype.offset = function() {
|
|
3556
3556
|
return this.position.offset;
|
|
3557
3557
|
}, e.prototype.isEOF = function() {
|
|
@@ -3566,7 +3566,7 @@ var Yn = (
|
|
|
3566
3566
|
var t = this.position.offset;
|
|
3567
3567
|
if (t >= this.message.length)
|
|
3568
3568
|
throw Error("out of bound");
|
|
3569
|
-
var r =
|
|
3569
|
+
var r = nr(this.message, t);
|
|
3570
3570
|
if (r === void 0)
|
|
3571
3571
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3572
3572
|
return r;
|
|
@@ -3585,7 +3585,7 @@ var Yn = (
|
|
|
3585
3585
|
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);
|
|
3586
3586
|
}
|
|
3587
3587
|
}, e.prototype.bumpIf = function(t) {
|
|
3588
|
-
if (
|
|
3588
|
+
if (_t(this.message, t, this.offset())) {
|
|
3589
3589
|
for (var r = 0; r < t.length; r++)
|
|
3590
3590
|
this.bump();
|
|
3591
3591
|
return !0;
|
|
@@ -3607,7 +3607,7 @@ var Yn = (
|
|
|
3607
3607
|
break;
|
|
3608
3608
|
}
|
|
3609
3609
|
}, e.prototype.bumpSpace = function() {
|
|
3610
|
-
for (; !this.isEOF() &&
|
|
3610
|
+
for (; !this.isEOF() && or(this.char()); )
|
|
3611
3611
|
this.bump();
|
|
3612
3612
|
}, e.prototype.peek = function() {
|
|
3613
3613
|
if (this.isEOF())
|
|
@@ -3617,47 +3617,47 @@ var Yn = (
|
|
|
3617
3617
|
}, e;
|
|
3618
3618
|
}()
|
|
3619
3619
|
);
|
|
3620
|
-
function
|
|
3620
|
+
function Qe(e) {
|
|
3621
3621
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3622
3622
|
}
|
|
3623
|
-
function
|
|
3624
|
-
return
|
|
3623
|
+
function ei(e) {
|
|
3624
|
+
return Qe(e) || e === 47;
|
|
3625
3625
|
}
|
|
3626
|
-
function
|
|
3626
|
+
function ti(e) {
|
|
3627
3627
|
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;
|
|
3628
3628
|
}
|
|
3629
|
-
function
|
|
3629
|
+
function or(e) {
|
|
3630
3630
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3631
3631
|
}
|
|
3632
|
-
function
|
|
3632
|
+
function ri(e) {
|
|
3633
3633
|
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;
|
|
3634
3634
|
}
|
|
3635
|
-
function
|
|
3635
|
+
function Je(e) {
|
|
3636
3636
|
e.forEach(function(t) {
|
|
3637
|
-
if (delete t.location,
|
|
3637
|
+
if (delete t.location, Qt(t) || Jt(t))
|
|
3638
3638
|
for (var r in t.options)
|
|
3639
|
-
delete t.options[r].location,
|
|
3639
|
+
delete t.options[r].location, Je(t.options[r].value);
|
|
3640
3640
|
else
|
|
3641
|
-
|
|
3641
|
+
Wt(t) && qt(t.style) || (zt(t) || Zt(t)) && Xe(t.style) ? delete t.style.location : Yt(t) && Je(t.children);
|
|
3642
3642
|
});
|
|
3643
3643
|
}
|
|
3644
|
-
function
|
|
3645
|
-
t === void 0 && (t = {}), t =
|
|
3646
|
-
var r = new
|
|
3644
|
+
function ni(e, t) {
|
|
3645
|
+
t === void 0 && (t = {}), t = pe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3646
|
+
var r = new Kn(e, t).parse();
|
|
3647
3647
|
if (r.err) {
|
|
3648
3648
|
var n = SyntaxError(d[r.err.kind]);
|
|
3649
3649
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3650
3650
|
}
|
|
3651
|
-
return t?.captureLocation ||
|
|
3651
|
+
return t?.captureLocation || Je(r.val), r.val;
|
|
3652
3652
|
}
|
|
3653
|
-
var
|
|
3653
|
+
var z;
|
|
3654
3654
|
(function(e) {
|
|
3655
3655
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3656
|
-
})(
|
|
3656
|
+
})(z || (z = {}));
|
|
3657
3657
|
var xe = (
|
|
3658
3658
|
/** @class */
|
|
3659
3659
|
function(e) {
|
|
3660
|
-
|
|
3660
|
+
_e(t, e);
|
|
3661
3661
|
function t(r, n, i) {
|
|
3662
3662
|
var o = e.call(this, r) || this;
|
|
3663
3663
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3666,30 +3666,30 @@ var xe = (
|
|
|
3666
3666
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3667
3667
|
}, t;
|
|
3668
3668
|
}(Error)
|
|
3669
|
-
),
|
|
3669
|
+
), St = (
|
|
3670
3670
|
/** @class */
|
|
3671
3671
|
function(e) {
|
|
3672
|
-
|
|
3672
|
+
_e(t, e);
|
|
3673
3673
|
function t(r, n, i, o) {
|
|
3674
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3674
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), z.INVALID_VALUE, o) || this;
|
|
3675
3675
|
}
|
|
3676
3676
|
return t;
|
|
3677
3677
|
}(xe)
|
|
3678
|
-
),
|
|
3678
|
+
), ii = (
|
|
3679
3679
|
/** @class */
|
|
3680
3680
|
function(e) {
|
|
3681
|
-
|
|
3681
|
+
_e(t, e);
|
|
3682
3682
|
function t(r, n, i) {
|
|
3683
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3683
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), z.INVALID_VALUE, i) || this;
|
|
3684
3684
|
}
|
|
3685
3685
|
return t;
|
|
3686
3686
|
}(xe)
|
|
3687
|
-
),
|
|
3687
|
+
), oi = (
|
|
3688
3688
|
/** @class */
|
|
3689
3689
|
function(e) {
|
|
3690
|
-
|
|
3690
|
+
_e(t, e);
|
|
3691
3691
|
function t(r, n) {
|
|
3692
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3692
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), z.MISSING_VALUE, n) || this;
|
|
3693
3693
|
}
|
|
3694
3694
|
return t;
|
|
3695
3695
|
}(xe)
|
|
@@ -3697,17 +3697,17 @@ var xe = (
|
|
|
3697
3697
|
(function(e) {
|
|
3698
3698
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3699
3699
|
})(H || (H = {}));
|
|
3700
|
-
function
|
|
3700
|
+
function si(e) {
|
|
3701
3701
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3702
3702
|
var n = t[t.length - 1];
|
|
3703
3703
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3704
3704
|
}, []);
|
|
3705
3705
|
}
|
|
3706
|
-
function
|
|
3706
|
+
function ai(e) {
|
|
3707
3707
|
return typeof e == "function";
|
|
3708
3708
|
}
|
|
3709
|
-
function
|
|
3710
|
-
if (e.length === 1 &&
|
|
3709
|
+
function fe(e, t, r, n, i, o, s) {
|
|
3710
|
+
if (e.length === 1 && bt(e[0]))
|
|
3711
3711
|
return [
|
|
3712
3712
|
{
|
|
3713
3713
|
type: H.literal,
|
|
@@ -3716,14 +3716,14 @@ function ce(e, t, r, n, i, o, s) {
|
|
|
3716
3716
|
];
|
|
3717
3717
|
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3718
3718
|
var l = u[h];
|
|
3719
|
-
if (
|
|
3719
|
+
if (bt(l)) {
|
|
3720
3720
|
a.push({
|
|
3721
3721
|
type: H.literal,
|
|
3722
3722
|
value: l.value
|
|
3723
3723
|
});
|
|
3724
3724
|
continue;
|
|
3725
3725
|
}
|
|
3726
|
-
if (
|
|
3726
|
+
if (An(l)) {
|
|
3727
3727
|
typeof o == "number" && a.push({
|
|
3728
3728
|
type: H.literal,
|
|
3729
3729
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3732,89 +3732,89 @@ function ce(e, t, r, n, i, o, s) {
|
|
|
3732
3732
|
}
|
|
3733
3733
|
var c = l.value;
|
|
3734
3734
|
if (!(i && c in i))
|
|
3735
|
-
throw new
|
|
3735
|
+
throw new oi(c, s);
|
|
3736
3736
|
var f = i[c];
|
|
3737
|
-
if (
|
|
3737
|
+
if (Bn(l)) {
|
|
3738
3738
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3739
3739
|
type: typeof f == "string" ? H.literal : H.object,
|
|
3740
3740
|
value: f
|
|
3741
3741
|
});
|
|
3742
3742
|
continue;
|
|
3743
3743
|
}
|
|
3744
|
-
if (
|
|
3745
|
-
var p = typeof l.style == "string" ? n.date[l.style] :
|
|
3744
|
+
if (zt(l)) {
|
|
3745
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Xe(l.style) ? l.style.parsedOptions : void 0;
|
|
3746
3746
|
a.push({
|
|
3747
3747
|
type: H.literal,
|
|
3748
3748
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3749
3749
|
});
|
|
3750
3750
|
continue;
|
|
3751
3751
|
}
|
|
3752
|
-
if (
|
|
3753
|
-
var p = typeof l.style == "string" ? n.time[l.style] :
|
|
3752
|
+
if (Zt(l)) {
|
|
3753
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Xe(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3754
3754
|
a.push({
|
|
3755
3755
|
type: H.literal,
|
|
3756
3756
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3757
3757
|
});
|
|
3758
3758
|
continue;
|
|
3759
3759
|
}
|
|
3760
|
-
if (
|
|
3761
|
-
var p = typeof l.style == "string" ? n.number[l.style] :
|
|
3760
|
+
if (Wt(l)) {
|
|
3761
|
+
var p = typeof l.style == "string" ? n.number[l.style] : qt(l.style) ? l.style.parsedOptions : void 0;
|
|
3762
3762
|
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3763
3763
|
type: H.literal,
|
|
3764
3764
|
value: r.getNumberFormat(t, p).format(f)
|
|
3765
3765
|
});
|
|
3766
3766
|
continue;
|
|
3767
3767
|
}
|
|
3768
|
-
if (
|
|
3768
|
+
if (Yt(l)) {
|
|
3769
3769
|
var m = l.children, y = l.value, E = i[y];
|
|
3770
|
-
if (!
|
|
3771
|
-
throw new
|
|
3772
|
-
var
|
|
3773
|
-
return
|
|
3770
|
+
if (!ai(E))
|
|
3771
|
+
throw new ii(y, "function", s);
|
|
3772
|
+
var O = fe(m, t, r, n, i, o), B = E(O.map(function(S) {
|
|
3773
|
+
return S.value;
|
|
3774
3774
|
}));
|
|
3775
|
-
Array.isArray(
|
|
3775
|
+
Array.isArray(B) || (B = [B]), a.push.apply(a, B.map(function(S) {
|
|
3776
3776
|
return {
|
|
3777
|
-
type: typeof
|
|
3778
|
-
value:
|
|
3777
|
+
type: typeof S == "string" ? H.literal : H.object,
|
|
3778
|
+
value: S
|
|
3779
3779
|
};
|
|
3780
3780
|
}));
|
|
3781
3781
|
}
|
|
3782
|
-
if (
|
|
3782
|
+
if (Qt(l)) {
|
|
3783
3783
|
var T = l.options[f] || l.options.other;
|
|
3784
3784
|
if (!T)
|
|
3785
|
-
throw new
|
|
3786
|
-
a.push.apply(a,
|
|
3785
|
+
throw new St(l.value, f, Object.keys(l.options), s);
|
|
3786
|
+
a.push.apply(a, fe(T.value, t, r, n, i));
|
|
3787
3787
|
continue;
|
|
3788
3788
|
}
|
|
3789
|
-
if (
|
|
3789
|
+
if (Jt(l)) {
|
|
3790
3790
|
var T = l.options["=".concat(f)];
|
|
3791
3791
|
if (!T) {
|
|
3792
3792
|
if (!Intl.PluralRules)
|
|
3793
3793
|
throw new xe(`Intl.PluralRules is not available in this environment.
|
|
3794
3794
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3795
|
-
`,
|
|
3796
|
-
var
|
|
3797
|
-
T = l.options[
|
|
3795
|
+
`, z.MISSING_INTL_API, s);
|
|
3796
|
+
var A = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3797
|
+
T = l.options[A] || l.options.other;
|
|
3798
3798
|
}
|
|
3799
3799
|
if (!T)
|
|
3800
|
-
throw new
|
|
3801
|
-
a.push.apply(a,
|
|
3800
|
+
throw new St(l.value, f, Object.keys(l.options), s);
|
|
3801
|
+
a.push.apply(a, fe(T.value, t, r, n, i, f - (l.offset || 0)));
|
|
3802
3802
|
continue;
|
|
3803
3803
|
}
|
|
3804
3804
|
}
|
|
3805
|
-
return
|
|
3805
|
+
return si(a);
|
|
3806
3806
|
}
|
|
3807
|
-
function
|
|
3807
|
+
function ui(e, t) {
|
|
3808
3808
|
return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3809
3809
|
return r[n] = L(L({}, e[n]), t[n] || {}), r;
|
|
3810
3810
|
}, {})) : e;
|
|
3811
3811
|
}
|
|
3812
|
-
function
|
|
3812
|
+
function hi(e, t) {
|
|
3813
3813
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3814
|
-
return r[n] =
|
|
3814
|
+
return r[n] = ui(e[n], t[n]), r;
|
|
3815
3815
|
}, L({}, e)) : e;
|
|
3816
3816
|
}
|
|
3817
|
-
function
|
|
3817
|
+
function Ie(e) {
|
|
3818
3818
|
return {
|
|
3819
3819
|
create: function() {
|
|
3820
3820
|
return {
|
|
@@ -3828,39 +3828,39 @@ function Le(e) {
|
|
|
3828
3828
|
}
|
|
3829
3829
|
};
|
|
3830
3830
|
}
|
|
3831
|
-
function
|
|
3831
|
+
function li(e) {
|
|
3832
3832
|
return e === void 0 && (e = {
|
|
3833
3833
|
number: {},
|
|
3834
3834
|
dateTime: {},
|
|
3835
3835
|
pluralRules: {}
|
|
3836
3836
|
}), {
|
|
3837
|
-
getNumberFormat:
|
|
3837
|
+
getNumberFormat: Pe(function() {
|
|
3838
3838
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3839
3839
|
r[n] = arguments[n];
|
|
3840
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3840
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3841
3841
|
}, {
|
|
3842
|
-
cache:
|
|
3843
|
-
strategy:
|
|
3842
|
+
cache: Ie(e.number),
|
|
3843
|
+
strategy: Oe.variadic
|
|
3844
3844
|
}),
|
|
3845
|
-
getDateTimeFormat:
|
|
3845
|
+
getDateTimeFormat: Pe(function() {
|
|
3846
3846
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3847
3847
|
r[n] = arguments[n];
|
|
3848
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3848
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3849
3849
|
}, {
|
|
3850
|
-
cache:
|
|
3851
|
-
strategy:
|
|
3850
|
+
cache: Ie(e.dateTime),
|
|
3851
|
+
strategy: Oe.variadic
|
|
3852
3852
|
}),
|
|
3853
|
-
getPluralRules:
|
|
3853
|
+
getPluralRules: Pe(function() {
|
|
3854
3854
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3855
3855
|
r[n] = arguments[n];
|
|
3856
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3856
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3857
3857
|
}, {
|
|
3858
|
-
cache:
|
|
3859
|
-
strategy:
|
|
3858
|
+
cache: Ie(e.pluralRules),
|
|
3859
|
+
strategy: Oe.variadic
|
|
3860
3860
|
})
|
|
3861
3861
|
};
|
|
3862
3862
|
}
|
|
3863
|
-
var
|
|
3863
|
+
var ci = (
|
|
3864
3864
|
/** @class */
|
|
3865
3865
|
function() {
|
|
3866
3866
|
function e(t, r, n, i) {
|
|
@@ -3879,7 +3879,7 @@ var hi = (
|
|
|
3879
3879
|
}, []);
|
|
3880
3880
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3881
3881
|
}, this.formatToParts = function(h) {
|
|
3882
|
-
return
|
|
3882
|
+
return fe(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3883
3883
|
}, this.resolvedOptions = function() {
|
|
3884
3884
|
var h;
|
|
3885
3885
|
return {
|
|
@@ -3892,13 +3892,13 @@ var hi = (
|
|
|
3892
3892
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3893
3893
|
var s = i || {};
|
|
3894
3894
|
s.formatters;
|
|
3895
|
-
var a =
|
|
3895
|
+
var a = _n(s, ["formatters"]);
|
|
3896
3896
|
this.ast = e.__parse(t, L(L({}, a), { locale: this.resolvedLocale }));
|
|
3897
3897
|
} else
|
|
3898
3898
|
this.ast = t;
|
|
3899
3899
|
if (!Array.isArray(this.ast))
|
|
3900
3900
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3901
|
-
this.formats =
|
|
3901
|
+
this.formats = hi(e.formats, n), this.formatters = i && i.formatters || li(this.formatterCache);
|
|
3902
3902
|
}
|
|
3903
3903
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3904
3904
|
get: function() {
|
|
@@ -3911,7 +3911,7 @@ var hi = (
|
|
|
3911
3911
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3912
3912
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3913
3913
|
}
|
|
3914
|
-
}, e.__parse =
|
|
3914
|
+
}, e.__parse = ni, e.formats = {
|
|
3915
3915
|
number: {
|
|
3916
3916
|
integer: {
|
|
3917
3917
|
maximumFractionDigits: 0
|
|
@@ -3972,7 +3972,7 @@ var hi = (
|
|
|
3972
3972
|
}, e;
|
|
3973
3973
|
}()
|
|
3974
3974
|
);
|
|
3975
|
-
function
|
|
3975
|
+
function fi(e, t) {
|
|
3976
3976
|
if (t == null)
|
|
3977
3977
|
return;
|
|
3978
3978
|
if (t in e)
|
|
@@ -3993,92 +3993,92 @@ function li(e, t) {
|
|
|
3993
3993
|
n = void 0;
|
|
3994
3994
|
return n;
|
|
3995
3995
|
}
|
|
3996
|
-
const
|
|
3996
|
+
const $ = {}, mi = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), sr = (e, t) => {
|
|
3997
3997
|
if (t == null)
|
|
3998
3998
|
return;
|
|
3999
|
-
if (t in
|
|
4000
|
-
return
|
|
4001
|
-
const r =
|
|
3999
|
+
if (t in $ && e in $[t])
|
|
4000
|
+
return $[t][e];
|
|
4001
|
+
const r = Ee(t);
|
|
4002
4002
|
for (let n = 0; n < r.length; n++) {
|
|
4003
|
-
const i = r[n], o =
|
|
4003
|
+
const i = r[n], o = di(i, e);
|
|
4004
4004
|
if (o)
|
|
4005
|
-
return
|
|
4005
|
+
return mi(e, t, o);
|
|
4006
4006
|
}
|
|
4007
4007
|
};
|
|
4008
|
-
let
|
|
4009
|
-
const
|
|
4010
|
-
function
|
|
4011
|
-
return
|
|
4008
|
+
let tt;
|
|
4009
|
+
const oe = ve({});
|
|
4010
|
+
function pi(e) {
|
|
4011
|
+
return tt[e] || null;
|
|
4012
4012
|
}
|
|
4013
|
-
function
|
|
4014
|
-
return e in
|
|
4013
|
+
function ar(e) {
|
|
4014
|
+
return e in tt;
|
|
4015
4015
|
}
|
|
4016
|
-
function
|
|
4017
|
-
if (!
|
|
4016
|
+
function di(e, t) {
|
|
4017
|
+
if (!ar(e))
|
|
4018
4018
|
return null;
|
|
4019
|
-
const r =
|
|
4020
|
-
return
|
|
4019
|
+
const r = pi(e);
|
|
4020
|
+
return fi(r, t);
|
|
4021
4021
|
}
|
|
4022
|
-
function
|
|
4022
|
+
function bi(e) {
|
|
4023
4023
|
if (e == null)
|
|
4024
4024
|
return;
|
|
4025
|
-
const t =
|
|
4025
|
+
const t = Ee(e);
|
|
4026
4026
|
for (let r = 0; r < t.length; r++) {
|
|
4027
4027
|
const n = t[r];
|
|
4028
|
-
if (
|
|
4028
|
+
if (ar(n))
|
|
4029
4029
|
return n;
|
|
4030
4030
|
}
|
|
4031
4031
|
}
|
|
4032
|
-
function
|
|
4033
|
-
delete
|
|
4032
|
+
function ur(e, ...t) {
|
|
4033
|
+
delete $[e], oe.update((r) => (r[e] = vn.all([r[e] || {}, ...t]), r));
|
|
4034
4034
|
}
|
|
4035
|
-
|
|
4036
|
-
[
|
|
4035
|
+
J(
|
|
4036
|
+
[oe],
|
|
4037
4037
|
([e]) => Object.keys(e)
|
|
4038
4038
|
);
|
|
4039
|
-
|
|
4040
|
-
const
|
|
4041
|
-
function
|
|
4042
|
-
|
|
4039
|
+
oe.subscribe((e) => tt = e);
|
|
4040
|
+
const me = {};
|
|
4041
|
+
function gi(e, t) {
|
|
4042
|
+
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
4043
4043
|
}
|
|
4044
|
-
function
|
|
4045
|
-
return
|
|
4044
|
+
function hr(e) {
|
|
4045
|
+
return me[e];
|
|
4046
4046
|
}
|
|
4047
|
-
function
|
|
4048
|
-
return
|
|
4049
|
-
const r =
|
|
4047
|
+
function yi(e) {
|
|
4048
|
+
return Ee(e).map((t) => {
|
|
4049
|
+
const r = hr(t);
|
|
4050
4050
|
return [t, r ? [...r] : []];
|
|
4051
4051
|
}).filter(([, t]) => t.length > 0);
|
|
4052
4052
|
}
|
|
4053
|
-
function
|
|
4054
|
-
return e == null ? !1 :
|
|
4053
|
+
function Ye(e) {
|
|
4054
|
+
return e == null ? !1 : Ee(e).some(
|
|
4055
4055
|
(t) => {
|
|
4056
4056
|
var r;
|
|
4057
|
-
return (r =
|
|
4057
|
+
return (r = hr(t)) == null ? void 0 : r.size;
|
|
4058
4058
|
}
|
|
4059
4059
|
);
|
|
4060
4060
|
}
|
|
4061
|
-
function
|
|
4061
|
+
function vi(e, t) {
|
|
4062
4062
|
return Promise.all(
|
|
4063
|
-
t.map((n) => (
|
|
4064
|
-
).then((n) =>
|
|
4065
|
-
}
|
|
4066
|
-
const
|
|
4067
|
-
function
|
|
4068
|
-
if (!
|
|
4069
|
-
return e in
|
|
4070
|
-
const t =
|
|
4071
|
-
return
|
|
4063
|
+
t.map((n) => (gi(e, n), n().then((i) => i.default || i)))
|
|
4064
|
+
).then((n) => ur(e, ...n));
|
|
4065
|
+
}
|
|
4066
|
+
const K = {};
|
|
4067
|
+
function lr(e) {
|
|
4068
|
+
if (!Ye(e))
|
|
4069
|
+
return e in K ? K[e] : Promise.resolve();
|
|
4070
|
+
const t = yi(e);
|
|
4071
|
+
return K[e] = Promise.all(
|
|
4072
4072
|
t.map(
|
|
4073
|
-
([r, n]) =>
|
|
4073
|
+
([r, n]) => vi(r, n)
|
|
4074
4074
|
)
|
|
4075
4075
|
).then(() => {
|
|
4076
|
-
if (
|
|
4077
|
-
return
|
|
4078
|
-
delete
|
|
4079
|
-
}),
|
|
4076
|
+
if (Ye(e))
|
|
4077
|
+
return lr(e);
|
|
4078
|
+
delete K[e];
|
|
4079
|
+
}), K[e];
|
|
4080
4080
|
}
|
|
4081
|
-
const
|
|
4081
|
+
const _i = {
|
|
4082
4082
|
number: {
|
|
4083
4083
|
scientific: { notation: "scientific" },
|
|
4084
4084
|
engineering: { notation: "engineering" },
|
|
@@ -4107,135 +4107,135 @@ const yi = {
|
|
|
4107
4107
|
timeZoneName: "short"
|
|
4108
4108
|
}
|
|
4109
4109
|
}
|
|
4110
|
-
},
|
|
4110
|
+
}, xi = {
|
|
4111
4111
|
fallbackLocale: null,
|
|
4112
4112
|
loadingDelay: 200,
|
|
4113
|
-
formats:
|
|
4113
|
+
formats: _i,
|
|
4114
4114
|
warnOnMissingMessages: !0,
|
|
4115
4115
|
handleMissingMessage: void 0,
|
|
4116
4116
|
ignoreTag: !0
|
|
4117
|
-
},
|
|
4118
|
-
function
|
|
4119
|
-
return
|
|
4117
|
+
}, Ei = xi;
|
|
4118
|
+
function Z() {
|
|
4119
|
+
return Ei;
|
|
4120
4120
|
}
|
|
4121
|
-
const
|
|
4122
|
-
var
|
|
4121
|
+
const Me = ve(!1);
|
|
4122
|
+
var Si = Object.defineProperty, wi = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, wt = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Ci = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
|
|
4123
4123
|
for (var r in t || (t = {}))
|
|
4124
|
-
|
|
4125
|
-
if (
|
|
4126
|
-
for (var r of
|
|
4127
|
-
|
|
4124
|
+
Hi.call(t, r) && Tt(e, r, t[r]);
|
|
4125
|
+
if (wt)
|
|
4126
|
+
for (var r of wt(t))
|
|
4127
|
+
Ci.call(t, r) && Tt(e, r, t[r]);
|
|
4128
4128
|
return e;
|
|
4129
|
-
},
|
|
4130
|
-
let
|
|
4131
|
-
const
|
|
4132
|
-
function
|
|
4129
|
+
}, Ai = (e, t) => wi(e, Ti(t));
|
|
4130
|
+
let qe;
|
|
4131
|
+
const de = ve(null);
|
|
4132
|
+
function Ht(e) {
|
|
4133
4133
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4134
4134
|
}
|
|
4135
|
-
function
|
|
4136
|
-
const r =
|
|
4137
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4135
|
+
function Ee(e, t = Z().fallbackLocale) {
|
|
4136
|
+
const r = Ht(e);
|
|
4137
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ht(t)])] : r;
|
|
4138
4138
|
}
|
|
4139
4139
|
function G() {
|
|
4140
|
-
return
|
|
4140
|
+
return qe ?? void 0;
|
|
4141
4141
|
}
|
|
4142
|
-
|
|
4143
|
-
|
|
4142
|
+
de.subscribe((e) => {
|
|
4143
|
+
qe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4144
4144
|
});
|
|
4145
|
-
const
|
|
4146
|
-
if (e &&
|
|
4147
|
-
const { loadingDelay: t } =
|
|
4145
|
+
const Pi = (e) => {
|
|
4146
|
+
if (e && bi(e) && Ye(e)) {
|
|
4147
|
+
const { loadingDelay: t } = Z();
|
|
4148
4148
|
let r;
|
|
4149
4149
|
return typeof window < "u" && G() != null && t ? r = window.setTimeout(
|
|
4150
|
-
() =>
|
|
4150
|
+
() => Me.set(!0),
|
|
4151
4151
|
t
|
|
4152
|
-
) :
|
|
4153
|
-
|
|
4152
|
+
) : Me.set(!0), lr(e).then(() => {
|
|
4153
|
+
de.set(e);
|
|
4154
4154
|
}).finally(() => {
|
|
4155
|
-
clearTimeout(r),
|
|
4155
|
+
clearTimeout(r), Me.set(!1);
|
|
4156
4156
|
});
|
|
4157
4157
|
}
|
|
4158
|
-
return
|
|
4159
|
-
},
|
|
4160
|
-
set:
|
|
4161
|
-
}),
|
|
4158
|
+
return de.set(e);
|
|
4159
|
+
}, Y = Ai(Bi({}, de), {
|
|
4160
|
+
set: Pi
|
|
4161
|
+
}), Se = (e) => {
|
|
4162
4162
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4163
4163
|
return (n) => {
|
|
4164
4164
|
const i = JSON.stringify(n);
|
|
4165
4165
|
return i in t ? t[i] : t[i] = e(n);
|
|
4166
4166
|
};
|
|
4167
4167
|
};
|
|
4168
|
-
var
|
|
4168
|
+
var Oi = Object.defineProperty, be = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
|
|
4169
4169
|
for (var r in t || (t = {}))
|
|
4170
|
-
|
|
4171
|
-
if (
|
|
4172
|
-
for (var r of
|
|
4173
|
-
|
|
4170
|
+
cr.call(t, r) && Ct(e, r, t[r]);
|
|
4171
|
+
if (be)
|
|
4172
|
+
for (var r of be(t))
|
|
4173
|
+
fr.call(t, r) && Ct(e, r, t[r]);
|
|
4174
4174
|
return e;
|
|
4175
|
-
},
|
|
4175
|
+
}, q = (e, t) => {
|
|
4176
4176
|
var r = {};
|
|
4177
4177
|
for (var n in e)
|
|
4178
|
-
|
|
4179
|
-
if (e != null &&
|
|
4180
|
-
for (var n of
|
|
4181
|
-
t.indexOf(n) < 0 &&
|
|
4178
|
+
cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4179
|
+
if (e != null && be)
|
|
4180
|
+
for (var n of be(e))
|
|
4181
|
+
t.indexOf(n) < 0 && fr.call(e, n) && (r[n] = e[n]);
|
|
4182
4182
|
return r;
|
|
4183
4183
|
};
|
|
4184
|
-
const
|
|
4185
|
-
const { formats: r } =
|
|
4184
|
+
const ne = (e, t) => {
|
|
4185
|
+
const { formats: r } = Z();
|
|
4186
4186
|
if (e in r && t in r[e])
|
|
4187
4187
|
return r[e][t];
|
|
4188
4188
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4189
|
-
},
|
|
4189
|
+
}, Li = Se(
|
|
4190
4190
|
(e) => {
|
|
4191
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4191
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4192
4192
|
if (r == null)
|
|
4193
4193
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4194
|
-
return n && (i =
|
|
4194
|
+
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
4195
4195
|
}
|
|
4196
|
-
),
|
|
4196
|
+
), Ii = Se(
|
|
4197
4197
|
(e) => {
|
|
4198
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4198
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4199
4199
|
if (r == null)
|
|
4200
4200
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4201
|
-
return n ? i =
|
|
4201
|
+
return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4202
4202
|
}
|
|
4203
|
-
),
|
|
4203
|
+
), Mi = Se(
|
|
4204
4204
|
(e) => {
|
|
4205
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4205
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
4206
4206
|
if (r == null)
|
|
4207
4207
|
throw new Error(
|
|
4208
4208
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4209
4209
|
);
|
|
4210
|
-
return n ? i =
|
|
4210
|
+
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4211
4211
|
}
|
|
4212
|
-
),
|
|
4212
|
+
), Ni = (e = {}) => {
|
|
4213
4213
|
var t = e, {
|
|
4214
4214
|
locale: r = G()
|
|
4215
|
-
} = t, n =
|
|
4215
|
+
} = t, n = q(t, [
|
|
4216
4216
|
"locale"
|
|
4217
4217
|
]);
|
|
4218
|
-
return
|
|
4219
|
-
},
|
|
4218
|
+
return Li(rt({ locale: r }, n));
|
|
4219
|
+
}, Ri = (e = {}) => {
|
|
4220
4220
|
var t = e, {
|
|
4221
4221
|
locale: r = G()
|
|
4222
|
-
} = t, n =
|
|
4222
|
+
} = t, n = q(t, [
|
|
4223
4223
|
"locale"
|
|
4224
4224
|
]);
|
|
4225
|
-
return
|
|
4226
|
-
},
|
|
4225
|
+
return Ii(rt({ locale: r }, n));
|
|
4226
|
+
}, $i = (e = {}) => {
|
|
4227
4227
|
var t = e, {
|
|
4228
4228
|
locale: r = G()
|
|
4229
|
-
} = t, n =
|
|
4229
|
+
} = t, n = q(t, [
|
|
4230
4230
|
"locale"
|
|
4231
4231
|
]);
|
|
4232
|
-
return
|
|
4233
|
-
},
|
|
4232
|
+
return Mi(rt({ locale: r }, n));
|
|
4233
|
+
}, Gi = Se(
|
|
4234
4234
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4235
|
-
(e, t = G()) => new
|
|
4236
|
-
ignoreTag:
|
|
4235
|
+
(e, t = G()) => new ci(e, t, Z().formats, {
|
|
4236
|
+
ignoreTag: Z().ignoreTag
|
|
4237
4237
|
})
|
|
4238
|
-
),
|
|
4238
|
+
), Ui = (e, t = {}) => {
|
|
4239
4239
|
var r, n, i, o;
|
|
4240
4240
|
let s = t;
|
|
4241
4241
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4248,9 +4248,9 @@ const re = (e, t) => {
|
|
|
4248
4248
|
throw new Error(
|
|
4249
4249
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4250
4250
|
);
|
|
4251
|
-
let l =
|
|
4251
|
+
let l = sr(e, h);
|
|
4252
4252
|
if (!l)
|
|
4253
|
-
l = (o = (i = (n = (r =
|
|
4253
|
+
l = (o = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4254
4254
|
else if (typeof l != "string")
|
|
4255
4255
|
return console.warn(
|
|
4256
4256
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4259,7 +4259,7 @@ const re = (e, t) => {
|
|
|
4259
4259
|
return l;
|
|
4260
4260
|
let c = l;
|
|
4261
4261
|
try {
|
|
4262
|
-
c =
|
|
4262
|
+
c = Gi(l, h).format(a);
|
|
4263
4263
|
} catch (f) {
|
|
4264
4264
|
f instanceof Error && console.warn(
|
|
4265
4265
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4267,21 +4267,21 @@ const re = (e, t) => {
|
|
|
4267
4267
|
);
|
|
4268
4268
|
}
|
|
4269
4269
|
return c;
|
|
4270
|
-
},
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
window.emWidgets = { topic:
|
|
4276
|
-
const
|
|
4270
|
+
}, Di = (e, t) => $i(t).format(e), Fi = (e, t) => Ri(t).format(e), ji = (e, t) => Ni(t).format(e), ki = (e, t = G()) => sr(e, t), Vi = J([Y, oe], () => Ui);
|
|
4271
|
+
J([Y], () => Di);
|
|
4272
|
+
J([Y], () => Fi);
|
|
4273
|
+
J([Y], () => ji);
|
|
4274
|
+
J([Y, oe], () => ki);
|
|
4275
|
+
window.emWidgets = { topic: tn };
|
|
4276
|
+
const Xi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4277
4277
|
String(Number.MAX_SAFE_INTEGER).length;
|
|
4278
|
-
function
|
|
4279
|
-
|
|
4278
|
+
function Bt(e, t) {
|
|
4279
|
+
ur(e, t);
|
|
4280
4280
|
}
|
|
4281
|
-
function
|
|
4282
|
-
|
|
4281
|
+
function Wi(e) {
|
|
4282
|
+
Y.set(e);
|
|
4283
4283
|
}
|
|
4284
|
-
const
|
|
4284
|
+
const At = {
|
|
4285
4285
|
en: {
|
|
4286
4286
|
cancel: "Cancel",
|
|
4287
4287
|
confirm: "Confirm"
|
|
@@ -4326,14 +4326,14 @@ const Bt = {
|
|
|
4326
4326
|
cancel: "Cancel",
|
|
4327
4327
|
confirm: "Confirm"
|
|
4328
4328
|
}
|
|
4329
|
-
};
|
|
4330
|
-
function
|
|
4329
|
+
}, k = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
4330
|
+
function zi(e, t) {
|
|
4331
4331
|
if (e) {
|
|
4332
4332
|
const r = document.createElement("style");
|
|
4333
4333
|
r.innerHTML = t, e.appendChild(r);
|
|
4334
4334
|
}
|
|
4335
4335
|
}
|
|
4336
|
-
function
|
|
4336
|
+
function Zi(e, t) {
|
|
4337
4337
|
if (!e || !t)
|
|
4338
4338
|
return;
|
|
4339
4339
|
const r = new URL(t);
|
|
@@ -4344,169 +4344,196 @@ function Wi(e, t) {
|
|
|
4344
4344
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4345
4345
|
});
|
|
4346
4346
|
}
|
|
4347
|
-
function
|
|
4348
|
-
if (window.emMessageBus)
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4347
|
+
function Qi(e, t, r, n = !1) {
|
|
4348
|
+
if (!window.emMessageBus)
|
|
4349
|
+
return;
|
|
4350
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
4351
|
+
return r = Ji(e, t), r;
|
|
4352
|
+
window[k] || (window[k] = {}), r = Yi(e, t);
|
|
4353
|
+
const o = r.unsubscribe.bind(r), s = () => {
|
|
4354
|
+
if (window[k][t]) {
|
|
4355
|
+
const a = window[k][t];
|
|
4356
|
+
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[k][t];
|
|
4357
|
+
}
|
|
4358
|
+
o();
|
|
4359
|
+
};
|
|
4360
|
+
return r.unsubscribe = s, r;
|
|
4361
|
+
}
|
|
4362
|
+
function Ji(e, t) {
|
|
4363
|
+
const r = document.createElement("style");
|
|
4364
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
4365
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
4366
|
+
});
|
|
4367
|
+
}
|
|
4368
|
+
function Yi(e, t) {
|
|
4369
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
4370
|
+
if (!e)
|
|
4371
|
+
return;
|
|
4372
|
+
const n = e.getRootNode(), i = window[k];
|
|
4373
|
+
let o = i[t]?.sheet;
|
|
4374
|
+
o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
|
|
4375
|
+
sheet: o,
|
|
4376
|
+
refCount: 1
|
|
4352
4377
|
});
|
|
4353
|
-
|
|
4378
|
+
const s = n.adoptedStyleSheets || [];
|
|
4379
|
+
s.includes(o) || (n.adoptedStyleSheets = [...s, o]);
|
|
4380
|
+
});
|
|
4354
4381
|
}
|
|
4355
|
-
function
|
|
4356
|
-
|
|
4382
|
+
function qi(e) {
|
|
4383
|
+
Er(e, "svelte-n224ff", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainerMobile{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}');
|
|
4357
4384
|
}
|
|
4358
|
-
const
|
|
4359
|
-
function
|
|
4385
|
+
const Ki = (e) => ({}), Pt = (e) => ({});
|
|
4386
|
+
function eo(e) {
|
|
4360
4387
|
let t, r;
|
|
4361
4388
|
return {
|
|
4362
4389
|
c() {
|
|
4363
|
-
t =
|
|
4390
|
+
t = st("svg"), r = st("path"), w(r, "stroke-linecap", "round"), w(r, "stroke-linejoin", "round"), w(r, "stroke-width", "2"), w(r, "d", "M6 18L18 6M6 6l12 12"), w(t, "class", "w-6 h-6"), w(t, "fill", "none"), w(t, "stroke", "currentColor"), w(t, "viewBox", "0 0 24 24"), w(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4364
4391
|
},
|
|
4365
4392
|
m(n, i) {
|
|
4366
|
-
|
|
4393
|
+
et(n, t, i), C(t, r);
|
|
4367
4394
|
},
|
|
4368
4395
|
p: I,
|
|
4369
4396
|
d(n) {
|
|
4370
|
-
n &&
|
|
4397
|
+
n && ge(t);
|
|
4371
4398
|
}
|
|
4372
4399
|
};
|
|
4373
4400
|
}
|
|
4374
|
-
function
|
|
4401
|
+
function to(e) {
|
|
4375
4402
|
let t, r, n, i, o, s, a, h, u, l = (
|
|
4376
4403
|
/*$_*/
|
|
4377
4404
|
e[2]("cancel") + ""
|
|
4378
4405
|
), c, f, p, m = (
|
|
4379
4406
|
/*$_*/
|
|
4380
4407
|
e[2]("confirm") + ""
|
|
4381
|
-
), y, E,
|
|
4408
|
+
), y, E, O, B;
|
|
4382
4409
|
const T = (
|
|
4383
4410
|
/*#slots*/
|
|
4384
4411
|
e[14].close
|
|
4385
|
-
),
|
|
4412
|
+
), A = yr(
|
|
4386
4413
|
T,
|
|
4387
4414
|
e,
|
|
4388
4415
|
/*$$scope*/
|
|
4389
4416
|
e[13],
|
|
4390
|
-
|
|
4391
|
-
),
|
|
4417
|
+
Pt
|
|
4418
|
+
), S = A || eo();
|
|
4392
4419
|
return {
|
|
4393
4420
|
c() {
|
|
4394
|
-
t = M("div"), r = M("div"), n = M("span"),
|
|
4421
|
+
t = M("div"), r = M("div"), n = M("span"), S && S.c(), i = we(), o = M("div"), s = ue(
|
|
4395
4422
|
/*modaltext*/
|
|
4396
4423
|
e[0]
|
|
4397
|
-
), a = we(), h = M("div"), u = M("button"), c =
|
|
4398
|
-
(e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")),
|
|
4399
|
-
(e[3] ? "GamingLimitsConfirmationContainerMobile" : "")),
|
|
4424
|
+
), a = we(), h = M("div"), u = M("button"), c = ue(l), f = we(), p = M("button"), y = ue(m), w(n, "class", "ModalCloseBtn"), w(n, "role", "button"), w(o, "class", "GamingLimitsConfirmationContent"), w(u, "class", "GamingLimitsCancelButton"), w(p, "class", "GamingLimitsConfirmButton"), w(h, "class", "GamingLimitsConfirmationControlArea " + /*isMobile*/
|
|
4425
|
+
(e[3] ? "GamingLimitsConfirmationControlAreaMobile" : "")), w(r, "class", "GamingLimitsConfirmationContainer " + /*isMobile*/
|
|
4426
|
+
(e[3] ? "GamingLimitsConfirmationContainerMobile" : "")), w(t, "class", "GamingLimitsConfirmationWrapper " + /*isMobile*/
|
|
4400
4427
|
(e[3] ? "GamingLimitsConfirmationMobileWrapper" : ""));
|
|
4401
4428
|
},
|
|
4402
|
-
m(
|
|
4403
|
-
|
|
4404
|
-
|
|
4429
|
+
m(_, P) {
|
|
4430
|
+
et(_, t, P), C(t, r), C(r, n), S && S.m(n, null), C(r, i), C(r, o), C(o, s), C(r, a), C(r, h), C(h, u), C(u, c), C(h, f), C(h, p), C(p, y), e[15](t), E = !0, O || (B = [
|
|
4431
|
+
Te(
|
|
4405
4432
|
n,
|
|
4406
4433
|
"click",
|
|
4407
4434
|
/*close*/
|
|
4408
4435
|
e[4]
|
|
4409
4436
|
),
|
|
4410
|
-
|
|
4437
|
+
Te(
|
|
4411
4438
|
u,
|
|
4412
4439
|
"click",
|
|
4413
4440
|
/*cancelChanges*/
|
|
4414
4441
|
e[6]
|
|
4415
4442
|
),
|
|
4416
|
-
|
|
4443
|
+
Te(
|
|
4417
4444
|
p,
|
|
4418
4445
|
"click",
|
|
4419
4446
|
/*confirmChanges*/
|
|
4420
4447
|
e[5]
|
|
4421
4448
|
)
|
|
4422
|
-
],
|
|
4449
|
+
], O = !0);
|
|
4423
4450
|
},
|
|
4424
|
-
p(
|
|
4425
|
-
|
|
4426
|
-
8192) &&
|
|
4427
|
-
|
|
4451
|
+
p(_, [P]) {
|
|
4452
|
+
A && A.p && (!E || P & /*$$scope*/
|
|
4453
|
+
8192) && _r(
|
|
4454
|
+
A,
|
|
4428
4455
|
T,
|
|
4429
|
-
|
|
4456
|
+
_,
|
|
4430
4457
|
/*$$scope*/
|
|
4431
|
-
|
|
4432
|
-
E ?
|
|
4458
|
+
_[13],
|
|
4459
|
+
E ? vr(
|
|
4433
4460
|
T,
|
|
4434
4461
|
/*$$scope*/
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
) :
|
|
4462
|
+
_[13],
|
|
4463
|
+
P,
|
|
4464
|
+
Ki
|
|
4465
|
+
) : xr(
|
|
4439
4466
|
/*$$scope*/
|
|
4440
|
-
|
|
4467
|
+
_[13]
|
|
4441
4468
|
),
|
|
4442
|
-
|
|
4443
|
-
), (!E ||
|
|
4444
|
-
1) &&
|
|
4469
|
+
Pt
|
|
4470
|
+
), (!E || P & /*modaltext*/
|
|
4471
|
+
1) && He(
|
|
4445
4472
|
s,
|
|
4446
4473
|
/*modaltext*/
|
|
4447
|
-
|
|
4448
|
-
), (!E ||
|
|
4474
|
+
_[0]
|
|
4475
|
+
), (!E || P & /*$_*/
|
|
4449
4476
|
4) && l !== (l = /*$_*/
|
|
4450
|
-
|
|
4477
|
+
_[2]("cancel") + "") && He(c, l), (!E || P & /*$_*/
|
|
4451
4478
|
4) && m !== (m = /*$_*/
|
|
4452
|
-
|
|
4479
|
+
_[2]("confirm") + "") && He(y, m);
|
|
4453
4480
|
},
|
|
4454
|
-
i(
|
|
4455
|
-
E || (
|
|
4481
|
+
i(_) {
|
|
4482
|
+
E || (Nt(S, _), E = !0);
|
|
4456
4483
|
},
|
|
4457
|
-
o(
|
|
4458
|
-
|
|
4484
|
+
o(_) {
|
|
4485
|
+
Mr(S, _), E = !1;
|
|
4459
4486
|
},
|
|
4460
|
-
d(
|
|
4461
|
-
|
|
4487
|
+
d(_) {
|
|
4488
|
+
_ && ge(t), S && S.d(_), e[15](null), O = !1, Q(B);
|
|
4462
4489
|
}
|
|
4463
4490
|
};
|
|
4464
4491
|
}
|
|
4465
|
-
function
|
|
4492
|
+
function ro(e, t, r) {
|
|
4466
4493
|
let n;
|
|
4467
|
-
|
|
4494
|
+
gr(e, Vi, (b) => r(2, n = b));
|
|
4468
4495
|
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modalsource: a = "" } = t, { lang: h = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t;
|
|
4469
4496
|
const p = () => {
|
|
4470
4497
|
fetch(f).then((U) => U.json()).then((U) => {
|
|
4471
|
-
Object.keys(U).forEach((
|
|
4472
|
-
|
|
4498
|
+
Object.keys(U).forEach((it) => {
|
|
4499
|
+
Bt(it, U[it]);
|
|
4473
4500
|
});
|
|
4474
4501
|
}).catch((U) => {
|
|
4475
4502
|
console.log(U);
|
|
4476
4503
|
});
|
|
4477
4504
|
};
|
|
4478
|
-
Object.keys(
|
|
4479
|
-
|
|
4505
|
+
Object.keys(At).forEach((b) => {
|
|
4506
|
+
Bt(b, At[b]);
|
|
4480
4507
|
});
|
|
4481
|
-
let m, y = window.navigator.userAgent,
|
|
4482
|
-
const
|
|
4508
|
+
let m, y, E = window.navigator.userAgent, O = Xi(E) !== "PC", B = {}, T = "";
|
|
4509
|
+
const A = () => {
|
|
4483
4510
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4484
|
-
},
|
|
4511
|
+
}, S = () => {
|
|
4485
4512
|
a === "groupEdit" ? window.postMessage({ type: "GamingLimitsConfirmChanges" }, window.location.href) : a === "infoCard" && window.postMessage(
|
|
4486
4513
|
{
|
|
4487
4514
|
type: "PlayerAccountGamingLimitDelete",
|
|
4488
|
-
limit:
|
|
4489
|
-
name:
|
|
4515
|
+
limit: B,
|
|
4516
|
+
name: T
|
|
4490
4517
|
},
|
|
4491
4518
|
window.location.href
|
|
4492
4519
|
), window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4493
|
-
},
|
|
4520
|
+
}, _ = () => {
|
|
4494
4521
|
a === "groupEdit" ? window.postMessage({ type: "CancelGamingLimitsChanges" }, window.location.href) : a === "infoCard" && window.postMessage({ type: "CancelGamingLimitsRemove" }, window.location.href), window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4495
|
-
},
|
|
4522
|
+
}, P = (b) => b === "Time Limit" ? "cumulativeSessionLimits" : b === "Deposit Limit" ? "depositLimits" : b === "Wagering Limit" ? "wageringLimit" : "lossLimit", nt = (b) => {
|
|
4496
4523
|
if (b.data)
|
|
4497
4524
|
switch (b.data.type) {
|
|
4498
4525
|
case "DeleteLimitsItem":
|
|
4499
|
-
|
|
4526
|
+
B = b.data.removeData, T = P(b.data.removeName);
|
|
4500
4527
|
break;
|
|
4501
4528
|
}
|
|
4502
|
-
},
|
|
4503
|
-
|
|
4529
|
+
}, mr = () => {
|
|
4530
|
+
Wi(h);
|
|
4504
4531
|
};
|
|
4505
|
-
|
|
4506
|
-
window.removeEventListener("message",
|
|
4532
|
+
Br(() => (window.addEventListener("message", nt, !1), () => {
|
|
4533
|
+
window.removeEventListener("message", nt);
|
|
4507
4534
|
}));
|
|
4508
|
-
function
|
|
4509
|
-
|
|
4535
|
+
function pr(b) {
|
|
4536
|
+
Ne[b ? "unshift" : "push"](() => {
|
|
4510
4537
|
m = b, r(1, m);
|
|
4511
4538
|
});
|
|
4512
4539
|
}
|
|
@@ -4514,19 +4541,19 @@ function qi(e, t, r) {
|
|
|
4514
4541
|
"modaltext" in b && r(0, s = b.modaltext), "modalsource" in b && r(7, a = b.modalsource), "lang" in b && r(8, h = b.lang), "clientstyling" in b && r(9, u = b.clientstyling), "clientstylingurl" in b && r(10, l = b.clientstylingurl), "mbsource" in b && r(11, c = b.mbsource), "translationurl" in b && r(12, f = b.translationurl), "$$scope" in b && r(13, o = b.$$scope);
|
|
4515
4542
|
}, e.$$.update = () => {
|
|
4516
4543
|
e.$$.dirty & /*modaltext, modalsource, lang*/
|
|
4517
|
-
385 && s && a && h &&
|
|
4518
|
-
514 && u && m &&
|
|
4519
|
-
1026 && l && m &&
|
|
4520
|
-
2050 && c && m &&
|
|
4544
|
+
385 && s && a && h && mr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4545
|
+
514 && u && m && zi(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4546
|
+
1026 && l && m && Zi(m, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4547
|
+
2050 && c && m && Qi(m, `${c}.Style`, y), e.$$.dirty & /*translationurl*/
|
|
4521
4548
|
4096 && f && p();
|
|
4522
4549
|
}, [
|
|
4523
4550
|
s,
|
|
4524
4551
|
m,
|
|
4525
4552
|
n,
|
|
4526
|
-
E,
|
|
4527
|
-
T,
|
|
4528
4553
|
O,
|
|
4529
|
-
|
|
4554
|
+
A,
|
|
4555
|
+
S,
|
|
4556
|
+
_,
|
|
4530
4557
|
a,
|
|
4531
4558
|
h,
|
|
4532
4559
|
u,
|
|
@@ -4535,17 +4562,17 @@ function qi(e, t, r) {
|
|
|
4535
4562
|
f,
|
|
4536
4563
|
o,
|
|
4537
4564
|
i,
|
|
4538
|
-
|
|
4565
|
+
pr
|
|
4539
4566
|
];
|
|
4540
4567
|
}
|
|
4541
|
-
class
|
|
4568
|
+
class no extends Dr {
|
|
4542
4569
|
constructor(t) {
|
|
4543
|
-
super(),
|
|
4570
|
+
super(), Gr(
|
|
4544
4571
|
this,
|
|
4545
4572
|
t,
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4573
|
+
ro,
|
|
4574
|
+
to,
|
|
4575
|
+
Lt,
|
|
4549
4576
|
{
|
|
4550
4577
|
modaltext: 0,
|
|
4551
4578
|
modalsource: 7,
|
|
@@ -4555,7 +4582,7 @@ class Ki extends Gr {
|
|
|
4555
4582
|
mbsource: 11,
|
|
4556
4583
|
translationurl: 12
|
|
4557
4584
|
},
|
|
4558
|
-
|
|
4585
|
+
qi
|
|
4559
4586
|
);
|
|
4560
4587
|
}
|
|
4561
4588
|
get modaltext() {
|
|
@@ -4601,7 +4628,7 @@ class Ki extends Gr {
|
|
|
4601
4628
|
this.$$set({ translationurl: t }), N();
|
|
4602
4629
|
}
|
|
4603
4630
|
}
|
|
4604
|
-
|
|
4631
|
+
Ur(no, { modaltext: {}, modalsource: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, ["close"], [], !0);
|
|
4605
4632
|
export {
|
|
4606
|
-
|
|
4633
|
+
no as P
|
|
4607
4634
|
};
|