@everymatrix/player-account-general-confirmation-modal 1.68.0 → 1.69.0
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/{PlayerAccountGeneralConfirmationModal-CkfFFof4.js → PlayerAccountGeneralConfirmationModal-C6A0byEQ.js} +504 -509
- package/components/PlayerAccountGeneralConfirmationModal-CyX4hu1Y.cjs +18 -0
- package/components/{PlayerAccountGeneralConfirmationModal-TSUMEy-p.js → PlayerAccountGeneralConfirmationModal-DjvlJWq1.js} +513 -518
- package/es2015/player-account-general-confirmation-modal.cjs +1 -1
- package/es2015/player-account-general-confirmation-modal.js +1 -1
- package/esnext/player-account-general-confirmation-modal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountGeneralConfirmationModal-Dk2mhUvc.cjs +0 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function N() {
|
|
2
2
|
}
|
|
3
3
|
function dr(e, t) {
|
|
4
4
|
for (const r in t)
|
|
@@ -14,10 +14,10 @@ function Ot(e) {
|
|
|
14
14
|
function nt() {
|
|
15
15
|
return /* @__PURE__ */ Object.create(null);
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function z(e) {
|
|
18
18
|
e.forEach(Ot);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function qe(e) {
|
|
21
21
|
return typeof e == "function";
|
|
22
22
|
}
|
|
23
23
|
function It(e, t) {
|
|
@@ -26,25 +26,25 @@ function It(e, t) {
|
|
|
26
26
|
function br(e) {
|
|
27
27
|
return Object.keys(e).length === 0;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Mt(e, ...t) {
|
|
30
30
|
if (e == null) {
|
|
31
31
|
for (const n of t)
|
|
32
32
|
n(void 0);
|
|
33
|
-
return
|
|
33
|
+
return N;
|
|
34
34
|
}
|
|
35
35
|
const r = e.subscribe(...t);
|
|
36
36
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
37
37
|
}
|
|
38
38
|
function gr(e, t, r) {
|
|
39
|
-
e.$$.on_destroy.push(
|
|
39
|
+
e.$$.on_destroy.push(Mt(t, r));
|
|
40
40
|
}
|
|
41
41
|
function vr(e, t, r, n) {
|
|
42
42
|
if (e) {
|
|
43
|
-
const i =
|
|
43
|
+
const i = Nt(e, t, r, n);
|
|
44
44
|
return e[0](i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Nt(e, t, r, n) {
|
|
48
48
|
return e[1] && n ? dr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
49
49
|
}
|
|
50
50
|
function yr(e, t, r, n) {
|
|
@@ -64,7 +64,7 @@ function yr(e, t, r, n) {
|
|
|
64
64
|
}
|
|
65
65
|
function _r(e, t, r, n, i, o) {
|
|
66
66
|
if (i) {
|
|
67
|
-
const s =
|
|
67
|
+
const s = Nt(t, r, n, o);
|
|
68
68
|
e.p(s, i);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -83,7 +83,7 @@ function B(e, t) {
|
|
|
83
83
|
function Er(e, t, r) {
|
|
84
84
|
const n = Sr(e);
|
|
85
85
|
if (!n.getElementById(t)) {
|
|
86
|
-
const i =
|
|
86
|
+
const i = I("style");
|
|
87
87
|
i.id = t, i.textContent = r, wr(n, i);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -104,34 +104,34 @@ function wr(e, t) {
|
|
|
104
104
|
t
|
|
105
105
|
), t.sheet;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function ne(e, t, r) {
|
|
108
108
|
e.insertBefore(t, r || null);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Z(e) {
|
|
111
111
|
e.parentNode && e.parentNode.removeChild(e);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function I(e) {
|
|
114
114
|
return document.createElement(e);
|
|
115
115
|
}
|
|
116
116
|
function it(e) {
|
|
117
117
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function ve(e) {
|
|
120
120
|
return document.createTextNode(e);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
return
|
|
122
|
+
function ae() {
|
|
123
|
+
return ve(" ");
|
|
124
124
|
}
|
|
125
125
|
function Me(e, t, r, n) {
|
|
126
126
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function T(e, t, r) {
|
|
129
129
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
130
130
|
}
|
|
131
131
|
function Tr(e) {
|
|
132
132
|
return Array.from(e.childNodes);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Ke(e, t) {
|
|
135
135
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
136
136
|
t);
|
|
137
137
|
}
|
|
@@ -144,103 +144,103 @@ function Hr(e) {
|
|
|
144
144
|
}
|
|
145
145
|
), t;
|
|
146
146
|
}
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
|
|
147
|
+
let ee;
|
|
148
|
+
function K(e) {
|
|
149
|
+
ee = e;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
152
|
-
if (!
|
|
151
|
+
function Ar() {
|
|
152
|
+
if (!ee)
|
|
153
153
|
throw new Error("Function called outside component initialization");
|
|
154
|
-
return
|
|
154
|
+
return ee;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
156
|
+
function Br(e) {
|
|
157
|
+
Ar().$$.on_mount.push(e);
|
|
158
158
|
}
|
|
159
|
-
const
|
|
160
|
-
let
|
|
159
|
+
const F = [], Ne = [];
|
|
160
|
+
let j = [];
|
|
161
161
|
const ot = [], Cr = /* @__PURE__ */ Promise.resolve();
|
|
162
|
-
let
|
|
162
|
+
let Le = !1;
|
|
163
163
|
function Pr() {
|
|
164
|
-
|
|
164
|
+
Le || (Le = !0, Cr.then(O));
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
|
|
166
|
+
function Re(e) {
|
|
167
|
+
j.push(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
170
|
-
let
|
|
169
|
+
const Te = /* @__PURE__ */ new Set();
|
|
170
|
+
let U = 0;
|
|
171
171
|
function O() {
|
|
172
|
-
if (
|
|
172
|
+
if (U !== 0)
|
|
173
173
|
return;
|
|
174
|
-
const e =
|
|
174
|
+
const e = ee;
|
|
175
175
|
do {
|
|
176
176
|
try {
|
|
177
|
-
for (;
|
|
178
|
-
const t =
|
|
179
|
-
|
|
177
|
+
for (; U < F.length; ) {
|
|
178
|
+
const t = F[U];
|
|
179
|
+
U++, K(t), Or(t.$$);
|
|
180
180
|
}
|
|
181
181
|
} catch (t) {
|
|
182
|
-
throw
|
|
182
|
+
throw F.length = 0, U = 0, t;
|
|
183
183
|
}
|
|
184
|
-
for (
|
|
185
|
-
|
|
186
|
-
for (let t = 0; t <
|
|
187
|
-
const r =
|
|
188
|
-
|
|
184
|
+
for (K(null), F.length = 0, U = 0; Ne.length; )
|
|
185
|
+
Ne.pop()();
|
|
186
|
+
for (let t = 0; t < j.length; t += 1) {
|
|
187
|
+
const r = j[t];
|
|
188
|
+
Te.has(r) || (Te.add(r), r());
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
} while (
|
|
190
|
+
j.length = 0;
|
|
191
|
+
} while (F.length);
|
|
192
192
|
for (; ot.length; )
|
|
193
193
|
ot.pop()();
|
|
194
|
-
|
|
194
|
+
Le = !1, Te.clear(), K(e);
|
|
195
195
|
}
|
|
196
196
|
function Or(e) {
|
|
197
197
|
if (e.fragment !== null) {
|
|
198
|
-
e.update(),
|
|
198
|
+
e.update(), z(e.before_update);
|
|
199
199
|
const t = e.dirty;
|
|
200
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
200
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
function Ir(e) {
|
|
204
204
|
const t = [], r = [];
|
|
205
|
-
|
|
205
|
+
j.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), j = t;
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
let
|
|
207
|
+
const he = /* @__PURE__ */ new Set();
|
|
208
|
+
let Mr;
|
|
209
209
|
function Lt(e, t) {
|
|
210
|
-
e && e.i && (
|
|
210
|
+
e && e.i && (he.delete(e), e.i(t));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Nr(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), Mr.c.push(() => {
|
|
217
|
+
he.delete(e);
|
|
218
218
|
}), e.o(t);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
function Lr(e, t, r) {
|
|
222
222
|
const { fragment: n, after_update: i } = e.$$;
|
|
223
|
-
n && n.m(t, r),
|
|
224
|
-
const o = e.$$.on_mount.map(Ot).filter(
|
|
225
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
226
|
-
}), i.forEach(
|
|
223
|
+
n && n.m(t, r), Re(() => {
|
|
224
|
+
const o = e.$$.on_mount.map(Ot).filter(qe);
|
|
225
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : z(o), e.$$.on_mount = [];
|
|
226
|
+
}), i.forEach(Re);
|
|
227
227
|
}
|
|
228
228
|
function Rr(e, t) {
|
|
229
229
|
const r = e.$$;
|
|
230
|
-
r.fragment !== null && (Ir(r.after_update),
|
|
230
|
+
r.fragment !== null && (Ir(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
231
231
|
}
|
|
232
232
|
function $r(e, t) {
|
|
233
|
-
e.$$.dirty[0] === -1 && (
|
|
233
|
+
e.$$.dirty[0] === -1 && (F.push(e), Pr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
234
234
|
}
|
|
235
235
|
function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
236
|
-
const l =
|
|
237
|
-
|
|
236
|
+
const l = ee;
|
|
237
|
+
K(e);
|
|
238
238
|
const u = e.$$ = {
|
|
239
239
|
fragment: null,
|
|
240
240
|
ctx: [],
|
|
241
241
|
// state
|
|
242
242
|
props: o,
|
|
243
|
-
update:
|
|
243
|
+
update: N,
|
|
244
244
|
not_equal: i,
|
|
245
245
|
bound: nt(),
|
|
246
246
|
// lifecycle
|
|
@@ -259,17 +259,17 @@ function Gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
259
259
|
s && s(u.root);
|
|
260
260
|
let h = !1;
|
|
261
261
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...m) => {
|
|
262
|
-
const
|
|
263
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] =
|
|
264
|
-
}) : [], u.update(), h = !0,
|
|
262
|
+
const v = m.length ? m[0] : f;
|
|
263
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = v) && (!u.skip_bound && u.bound[c] && u.bound[c](v), h && $r(e, c)), f;
|
|
264
|
+
}) : [], u.update(), h = !0, z(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
265
265
|
if (t.hydrate) {
|
|
266
266
|
const c = Tr(t.target);
|
|
267
|
-
u.fragment && u.fragment.l(c), c.forEach(
|
|
267
|
+
u.fragment && u.fragment.l(c), c.forEach(Z);
|
|
268
268
|
} else
|
|
269
269
|
u.fragment && u.fragment.c();
|
|
270
270
|
t.intro && Lt(e.$$.fragment), Lr(e, t.target, t.anchor), O();
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
K(l);
|
|
273
273
|
}
|
|
274
274
|
let Rt;
|
|
275
275
|
typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
@@ -314,17 +314,17 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
314
314
|
let o;
|
|
315
315
|
return {
|
|
316
316
|
c: function() {
|
|
317
|
-
o =
|
|
317
|
+
o = I("slot"), i !== "default" && T(o, "name", i);
|
|
318
318
|
},
|
|
319
319
|
/**
|
|
320
320
|
* @param {HTMLElement} target
|
|
321
321
|
* @param {HTMLElement} [anchor]
|
|
322
322
|
*/
|
|
323
323
|
m: function(l, u) {
|
|
324
|
-
|
|
324
|
+
ne(l, o, u);
|
|
325
325
|
},
|
|
326
326
|
d: function(l) {
|
|
327
|
-
l &&
|
|
327
|
+
l && Z(o);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
};
|
|
@@ -336,7 +336,7 @@ typeof HTMLElement == "function" && (Rt = class extends HTMLElement {
|
|
|
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] = ce(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" && (Rt = 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 = ce(
|
|
358
358
|
i,
|
|
359
359
|
this.$$d[i],
|
|
360
360
|
this.$$p_d,
|
|
@@ -376,7 +376,7 @@ typeof HTMLElement == "function" && (Rt = 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] = ce(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" && (Rt = class extends HTMLElement {
|
|
|
389
389
|
) || e;
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
|
-
function
|
|
392
|
+
function ce(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;
|
|
@@ -435,7 +435,7 @@ function Ur(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(l) {
|
|
438
|
-
l =
|
|
438
|
+
l = ce(a, l, t), this.$$d[a] = l, this.$$c?.$set({ [a]: l });
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
441
|
}), n.forEach((a) => {
|
|
@@ -466,7 +466,7 @@ class Dr {
|
|
|
466
466
|
$$set = void 0;
|
|
467
467
|
/** @returns {void} */
|
|
468
468
|
$destroy() {
|
|
469
|
-
Rr(this, 1), this.$destroy =
|
|
469
|
+
Rr(this, 1), this.$destroy = N;
|
|
470
470
|
}
|
|
471
471
|
/**
|
|
472
472
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -475,8 +475,8 @@ class Dr {
|
|
|
475
475
|
* @returns {() => void}
|
|
476
476
|
*/
|
|
477
477
|
$on(t, r) {
|
|
478
|
-
if (!
|
|
479
|
-
return
|
|
478
|
+
if (!qe(r))
|
|
479
|
+
return N;
|
|
480
480
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
481
481
|
return n.push(r), () => {
|
|
482
482
|
const i = n.indexOf(r);
|
|
@@ -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 $e = function(e, t) {
|
|
511
|
+
return $e = 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
|
+
}, $e(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
|
+
$e(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 Ge(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 Ue(e) {
|
|
|
536
536
|
};
|
|
537
537
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function Ue(e, t) {
|
|
540
540
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
541
541
|
if (!r)
|
|
542
542
|
return e;
|
|
@@ -556,13 +556,13 @@ function De(e, t) {
|
|
|
556
556
|
}
|
|
557
557
|
return o;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function De(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 L(e) {
|
|
566
566
|
return typeof e == "function";
|
|
567
567
|
}
|
|
568
568
|
function $t(e) {
|
|
@@ -571,7 +571,7 @@ function $t(e) {
|
|
|
571
571
|
}, r = e(t);
|
|
572
572
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
573
573
|
}
|
|
574
|
-
var
|
|
574
|
+
var He = $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 = $t(function(e) {
|
|
|
580
580
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
581
581
|
};
|
|
582
582
|
});
|
|
583
|
-
function
|
|
583
|
+
function Fe(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 _e = 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 = Ge(s), l = a.next(); !l.done; l = a.next()) {
|
|
602
602
|
var u = l.value;
|
|
603
603
|
u.remove(this);
|
|
604
604
|
}
|
|
@@ -615,22 +615,22 @@ var _e = function() {
|
|
|
615
615
|
else
|
|
616
616
|
s.remove(this);
|
|
617
617
|
var h = this.initialTeardown;
|
|
618
|
-
if (
|
|
618
|
+
if (L(h))
|
|
619
619
|
try {
|
|
620
620
|
h();
|
|
621
621
|
} catch (d) {
|
|
622
|
-
o = d instanceof
|
|
622
|
+
o = d instanceof He ? d.errors : [d];
|
|
623
623
|
}
|
|
624
624
|
var c = this._finalizers;
|
|
625
625
|
if (c) {
|
|
626
626
|
this._finalizers = null;
|
|
627
627
|
try {
|
|
628
|
-
for (var f =
|
|
629
|
-
var
|
|
628
|
+
for (var f = Ge(c), m = f.next(); !m.done; m = f.next()) {
|
|
629
|
+
var v = m.value;
|
|
630
630
|
try {
|
|
631
|
-
st(
|
|
631
|
+
st(v);
|
|
632
632
|
} catch (d) {
|
|
633
|
-
o = o ?? [], d instanceof
|
|
633
|
+
o = o ?? [], d instanceof He ? o = De(De([], Ue(o)), Ue(d.errors)) : o.push(d);
|
|
634
634
|
}
|
|
635
635
|
}
|
|
636
636
|
} catch (d) {
|
|
@@ -645,7 +645,7 @@ var _e = function() {
|
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
if (o)
|
|
648
|
-
throw new
|
|
648
|
+
throw new He(o);
|
|
649
649
|
}
|
|
650
650
|
}, e.prototype.add = function(t) {
|
|
651
651
|
var r;
|
|
@@ -668,20 +668,20 @@ var _e = 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) && Fe(r, t);
|
|
672
672
|
}, e.prototype.remove = function(t) {
|
|
673
673
|
var r = this._finalizers;
|
|
674
|
-
r &&
|
|
674
|
+
r && Fe(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
|
-
}(), Gt =
|
|
679
|
+
}(), Gt = ye.EMPTY;
|
|
680
680
|
function Ut(e) {
|
|
681
|
-
return e instanceof
|
|
681
|
+
return e instanceof ye || e && "closed" in e && L(e.remove) && L(e.add) && L(e.unsubscribe);
|
|
682
682
|
}
|
|
683
683
|
function st(e) {
|
|
684
|
-
|
|
684
|
+
L(e) ? e() : e.unsubscribe();
|
|
685
685
|
}
|
|
686
686
|
var jr = {
|
|
687
687
|
Promise: void 0
|
|
@@ -689,7 +689,7 @@ var jr = {
|
|
|
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, De([e, t], Ue(r)));
|
|
693
693
|
},
|
|
694
694
|
clearTimeout: function(e) {
|
|
695
695
|
return clearTimeout(e);
|
|
@@ -703,17 +703,17 @@ function Vr(e) {
|
|
|
703
703
|
}
|
|
704
704
|
function at() {
|
|
705
705
|
}
|
|
706
|
-
function
|
|
706
|
+
function fe(e) {
|
|
707
707
|
e();
|
|
708
708
|
}
|
|
709
709
|
var Dt = function(e) {
|
|
710
|
-
|
|
710
|
+
ie(t, e);
|
|
711
711
|
function t(r) {
|
|
712
712
|
var n = e.call(this) || this;
|
|
713
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 je(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 Dt = 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 Dt = function(e) {
|
|
|
747
747
|
try {
|
|
748
748
|
r.next(t);
|
|
749
749
|
} catch (n) {
|
|
750
|
-
|
|
750
|
+
ue(n);
|
|
751
751
|
}
|
|
752
752
|
}, e.prototype.error = function(t) {
|
|
753
753
|
var r = this.partialObserver;
|
|
@@ -755,24 +755,24 @@ var Dt = function(e) {
|
|
|
755
755
|
try {
|
|
756
756
|
r.error(t);
|
|
757
757
|
} catch (n) {
|
|
758
|
-
|
|
758
|
+
ue(n);
|
|
759
759
|
}
|
|
760
760
|
else
|
|
761
|
-
|
|
761
|
+
ue(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
|
+
ue(r);
|
|
769
769
|
}
|
|
770
770
|
}, e;
|
|
771
|
-
}(),
|
|
772
|
-
|
|
771
|
+
}(), je = 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 L(r) || !r ? s = {
|
|
776
776
|
next: r ?? void 0,
|
|
777
777
|
error: n ?? void 0,
|
|
778
778
|
complete: i ?? void 0
|
|
@@ -780,7 +780,7 @@ var Dt = function(e) {
|
|
|
780
780
|
}
|
|
781
781
|
return t;
|
|
782
782
|
}(Dt);
|
|
783
|
-
function
|
|
783
|
+
function ue(e) {
|
|
784
784
|
Vr(e);
|
|
785
785
|
}
|
|
786
786
|
function Wr(e) {
|
|
@@ -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 = qr(t) ? t : new
|
|
816
|
-
return
|
|
815
|
+
var i = this, o = qr(t) ? t : new je(t, r, n);
|
|
816
|
+
return fe(function() {
|
|
817
817
|
var s = i, a = s.operator, l = s.source;
|
|
818
818
|
o.add(a ? a.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
819
819
|
}), o;
|
|
@@ -826,7 +826,7 @@ var ut = function() {
|
|
|
826
826
|
}, e.prototype.forEach = function(t, r) {
|
|
827
827
|
var n = this;
|
|
828
828
|
return r = lt(r), new r(function(i, o) {
|
|
829
|
-
var s = new
|
|
829
|
+
var s = new je({
|
|
830
830
|
next: function(a) {
|
|
831
831
|
try {
|
|
832
832
|
t(a);
|
|
@@ -869,7 +869,7 @@ function lt(e) {
|
|
|
869
869
|
return (t = e ?? jr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
870
870
|
}
|
|
871
871
|
function Yr(e) {
|
|
872
|
-
return e &&
|
|
872
|
+
return e && L(e.next) && L(e.error) && L(e.complete);
|
|
873
873
|
}
|
|
874
874
|
function qr(e) {
|
|
875
875
|
return e && e instanceof Dt || Yr(e) && Ut(e);
|
|
@@ -879,7 +879,7 @@ var Kr = $t(function(e) {
|
|
|
879
879
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
880
880
|
};
|
|
881
881
|
}), Ft = function(e) {
|
|
882
|
-
|
|
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;
|
|
@@ -892,12 +892,12 @@ var Kr = $t(function(e) {
|
|
|
892
892
|
throw new Kr();
|
|
893
893
|
}, t.prototype.next = function(r) {
|
|
894
894
|
var n = this;
|
|
895
|
-
|
|
895
|
+
fe(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 = Ge(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
901
901
|
var l = a.value;
|
|
902
902
|
l.next(r);
|
|
903
903
|
}
|
|
@@ -915,7 +915,7 @@ var Kr = $t(function(e) {
|
|
|
915
915
|
});
|
|
916
916
|
}, t.prototype.error = function(r) {
|
|
917
917
|
var n = this;
|
|
918
|
-
|
|
918
|
+
fe(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 Kr = $t(function(e) {
|
|
|
924
924
|
});
|
|
925
925
|
}, t.prototype.complete = function() {
|
|
926
926
|
var r = this;
|
|
927
|
-
|
|
927
|
+
fe(function() {
|
|
928
928
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
929
929
|
r.isStopped = !0;
|
|
930
930
|
for (var n = r.observers; n.length; )
|
|
@@ -946,8 +946,8 @@ var Kr = $t(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 ? Gt : (this.currentObservers = null, a.push(r), new
|
|
950
|
-
n.currentObservers = null,
|
|
949
|
+
return o || s ? Gt : (this.currentObservers = null, a.push(r), new ye(function() {
|
|
950
|
+
n.currentObservers = null, Fe(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;
|
|
@@ -959,7 +959,7 @@ var Kr = $t(function(e) {
|
|
|
959
959
|
return new ht(r, n);
|
|
960
960
|
}, t;
|
|
961
961
|
}(ut), ht = function(e) {
|
|
962
|
-
|
|
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;
|
|
@@ -983,7 +983,7 @@ var Kr = $t(function(e) {
|
|
|
983
983
|
},
|
|
984
984
|
delegate: void 0
|
|
985
985
|
}, en = function(e) {
|
|
986
|
-
|
|
986
|
+
ie(t, e);
|
|
987
987
|
function t(r, n, i) {
|
|
988
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;
|
|
@@ -1012,39 +1012,39 @@ const ct = [], ft = {}, tn = (e, t = 0) => {
|
|
|
1012
1012
|
ft[e] = r, ct.push(e);
|
|
1013
1013
|
}
|
|
1014
1014
|
return ft[e];
|
|
1015
|
-
},
|
|
1015
|
+
}, D = [];
|
|
1016
1016
|
function rn(e, t) {
|
|
1017
1017
|
return {
|
|
1018
|
-
subscribe:
|
|
1018
|
+
subscribe: _e(e, t).subscribe
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function _e(e, t = N) {
|
|
1022
1022
|
let r;
|
|
1023
1023
|
const n = /* @__PURE__ */ new Set();
|
|
1024
1024
|
function i(a) {
|
|
1025
1025
|
if (It(e, a) && (e = a, r)) {
|
|
1026
|
-
const l = !
|
|
1026
|
+
const l = !D.length;
|
|
1027
1027
|
for (const u of n)
|
|
1028
|
-
u[1](),
|
|
1028
|
+
u[1](), D.push(u, e);
|
|
1029
1029
|
if (l) {
|
|
1030
|
-
for (let u = 0; u <
|
|
1031
|
-
|
|
1032
|
-
|
|
1030
|
+
for (let u = 0; u < D.length; u += 2)
|
|
1031
|
+
D[u][0](D[u + 1]);
|
|
1032
|
+
D.length = 0;
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
1036
|
function o(a) {
|
|
1037
1037
|
i(a(e));
|
|
1038
1038
|
}
|
|
1039
|
-
function s(a, l =
|
|
1039
|
+
function s(a, l = N) {
|
|
1040
1040
|
const u = [a, l];
|
|
1041
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
1041
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || N), a(e), () => {
|
|
1042
1042
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
1043
1043
|
};
|
|
1044
1044
|
}
|
|
1045
1045
|
return { set: i, update: o, subscribe: s };
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function Q(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");
|
|
@@ -1052,16 +1052,16 @@ function J(e, t, r) {
|
|
|
1052
1052
|
return rn(r, (s, a) => {
|
|
1053
1053
|
let l = !1;
|
|
1054
1054
|
const u = [];
|
|
1055
|
-
let h = 0, c =
|
|
1055
|
+
let h = 0, c = N;
|
|
1056
1056
|
const f = () => {
|
|
1057
1057
|
if (h)
|
|
1058
1058
|
return;
|
|
1059
1059
|
c();
|
|
1060
|
-
const
|
|
1061
|
-
o ? s(
|
|
1060
|
+
const v = t(n ? u[0] : u, s, a);
|
|
1061
|
+
o ? s(v) : c = qe(v) ? v : N;
|
|
1062
1062
|
}, m = i.map(
|
|
1063
|
-
(
|
|
1064
|
-
|
|
1063
|
+
(v, d) => Mt(
|
|
1064
|
+
v,
|
|
1065
1065
|
(S) => {
|
|
1066
1066
|
u[d] = S, h &= ~(1 << d), l && f();
|
|
1067
1067
|
},
|
|
@@ -1071,7 +1071,7 @@ function J(e, t, r) {
|
|
|
1071
1071
|
)
|
|
1072
1072
|
);
|
|
1073
1073
|
return l = !0, f(), function() {
|
|
1074
|
-
|
|
1074
|
+
z(m), c(), l = !1;
|
|
1075
1075
|
};
|
|
1076
1076
|
});
|
|
1077
1077
|
}
|
|
@@ -1095,19 +1095,19 @@ function hn(e) {
|
|
|
1095
1095
|
function cn(e) {
|
|
1096
1096
|
return Array.isArray(e) ? [] : {};
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1098
|
+
function te(e, t) {
|
|
1099
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? k(cn(e), e, t) : e;
|
|
1100
1100
|
}
|
|
1101
1101
|
function fn(e, t, r) {
|
|
1102
1102
|
return e.concat(t).map(function(n) {
|
|
1103
|
-
return
|
|
1103
|
+
return te(n, r);
|
|
1104
1104
|
});
|
|
1105
1105
|
}
|
|
1106
1106
|
function mn(e, t) {
|
|
1107
1107
|
if (!t.customMerge)
|
|
1108
|
-
return
|
|
1108
|
+
return k;
|
|
1109
1109
|
var r = t.customMerge(e);
|
|
1110
|
-
return typeof r == "function" ? r :
|
|
1110
|
+
return typeof r == "function" ? r : k;
|
|
1111
1111
|
}
|
|
1112
1112
|
function pn(e) {
|
|
1113
1113
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -1130,37 +1130,37 @@ function dn(e, t) {
|
|
|
1130
1130
|
function bn(e, t, r) {
|
|
1131
1131
|
var n = {};
|
|
1132
1132
|
return r.isMergeableObject(e) && mt(e).forEach(function(i) {
|
|
1133
|
-
n[i] =
|
|
1133
|
+
n[i] = te(e[i], r);
|
|
1134
1134
|
}), mt(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] =
|
|
1135
|
+
dn(e, i) || (kt(e, i) && r.isMergeableObject(t[i]) ? n[i] = mn(i, r)(e[i], t[i], r) : n[i] = te(t[i], r));
|
|
1136
1136
|
}), n;
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1139
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified =
|
|
1138
|
+
function k(e, t, r) {
|
|
1139
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified = te;
|
|
1140
1140
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1141
|
-
return o ? n ? r.arrayMerge(e, t, r) : bn(e, t, r) :
|
|
1141
|
+
return o ? n ? r.arrayMerge(e, t, r) : bn(e, t, r) : te(t, r);
|
|
1142
1142
|
}
|
|
1143
|
-
|
|
1143
|
+
k.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 k(n, i, r);
|
|
1148
1148
|
}, {});
|
|
1149
1149
|
};
|
|
1150
|
-
var gn =
|
|
1150
|
+
var gn = k, vn = gn;
|
|
1151
1151
|
const yn = /* @__PURE__ */ nn(vn);
|
|
1152
|
-
var
|
|
1153
|
-
return
|
|
1152
|
+
var ke = function(e, t) {
|
|
1153
|
+
return ke = 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
|
+
}, ke(e, t);
|
|
1159
1159
|
};
|
|
1160
|
-
function
|
|
1160
|
+
function xe(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
|
+
ke(e, t);
|
|
1164
1164
|
function r() {
|
|
1165
1165
|
this.constructor = e;
|
|
1166
1166
|
}
|
|
@@ -1191,8 +1191,8 @@ function Ae(e, t, r) {
|
|
|
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 Be(e, t) {
|
|
1195
|
+
var r = t && t.cache ? t.cache : An, 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
|
|
@@ -1233,38 +1233,38 @@ var Tn = function() {
|
|
|
1233
1233
|
this.cache[t] = r;
|
|
1234
1234
|
}, e;
|
|
1235
1235
|
}()
|
|
1236
|
-
),
|
|
1236
|
+
), An = {
|
|
1237
1237
|
create: function() {
|
|
1238
1238
|
return new Hn();
|
|
1239
1239
|
}
|
|
1240
|
-
},
|
|
1240
|
+
}, Ce = {
|
|
1241
1241
|
variadic: wn
|
|
1242
|
-
},
|
|
1243
|
-
return
|
|
1242
|
+
}, de = function() {
|
|
1243
|
+
return de = 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
|
+
}, de.apply(this, arguments);
|
|
1251
1251
|
};
|
|
1252
|
-
var
|
|
1252
|
+
var p;
|
|
1253
1253
|
(function(e) {
|
|
1254
1254
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1255
|
-
})(
|
|
1255
|
+
})(p || (p = {}));
|
|
1256
1256
|
var E;
|
|
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
|
})(E || (E = {}));
|
|
1260
|
-
var
|
|
1260
|
+
var V;
|
|
1261
1261
|
(function(e) {
|
|
1262
1262
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1263
|
-
})(
|
|
1263
|
+
})(V || (V = {}));
|
|
1264
1264
|
function pt(e) {
|
|
1265
1265
|
return e.type === E.literal;
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function Bn(e) {
|
|
1268
1268
|
return e.type === E.argument;
|
|
1269
1269
|
}
|
|
1270
1270
|
function Wt(e) {
|
|
@@ -1289,10 +1289,10 @@ function Yt(e) {
|
|
|
1289
1289
|
return e.type === E.tag;
|
|
1290
1290
|
}
|
|
1291
1291
|
function qt(e) {
|
|
1292
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1292
|
+
return !!(e && typeof e == "object" && e.type === V.number);
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1295
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1294
|
+
function Ve(e) {
|
|
1295
|
+
return !!(e && typeof e == "object" && e.type === V.dateTime);
|
|
1296
1296
|
}
|
|
1297
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
1298
|
function On(e) {
|
|
@@ -1386,18 +1386,18 @@ function On(e) {
|
|
|
1386
1386
|
return "";
|
|
1387
1387
|
}), t;
|
|
1388
1388
|
}
|
|
1389
|
-
var
|
|
1390
|
-
return
|
|
1389
|
+
var w = function() {
|
|
1390
|
+
return w = 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
|
+
}, w.apply(this, arguments);
|
|
1398
1398
|
};
|
|
1399
1399
|
var In = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1400
|
-
function
|
|
1400
|
+
function Mn(e) {
|
|
1401
1401
|
if (e.length === 0)
|
|
1402
1402
|
throw new Error("Number skeleton cannot be empty");
|
|
1403
1403
|
for (var t = e.split(In).filter(function(f) {
|
|
@@ -1415,7 +1415,7 @@ function Nn(e) {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
return r;
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function Nn(e) {
|
|
1419
1419
|
return e.replace(/^(.*?)-/, "");
|
|
1420
1420
|
}
|
|
1421
1421
|
var dt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, er = /^(@+)?(\+|#+)?[rs]?$/g, Ln = /(\*)(0+)|(#+)(0+)|(0+)/g, tr = /^(0+)$/;
|
|
@@ -1507,7 +1507,7 @@ function $n(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 = Nn(i.options[0]);
|
|
1511
1511
|
continue;
|
|
1512
1512
|
case "compact-short":
|
|
1513
1513
|
case "K":
|
|
@@ -1518,13 +1518,13 @@ function $n(e) {
|
|
|
1518
1518
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1519
1519
|
continue;
|
|
1520
1520
|
case "scientific":
|
|
1521
|
-
t =
|
|
1522
|
-
return
|
|
1521
|
+
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1522
|
+
return w(w({}, l), gt(u));
|
|
1523
1523
|
}, {}));
|
|
1524
1524
|
continue;
|
|
1525
1525
|
case "engineering":
|
|
1526
|
-
t =
|
|
1527
|
-
return
|
|
1526
|
+
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1527
|
+
return w(w({}, l), gt(u));
|
|
1528
1528
|
}, {}));
|
|
1529
1529
|
continue;
|
|
1530
1530
|
case "notation-simple":
|
|
@@ -1593,21 +1593,21 @@ function $n(e) {
|
|
|
1593
1593
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && m ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + m.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 = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), bt(o)));
|
|
1597
1597
|
continue;
|
|
1598
1598
|
}
|
|
1599
1599
|
if (er.test(i.stem)) {
|
|
1600
|
-
t =
|
|
1600
|
+
t = w(w({}, t), bt(i.stem));
|
|
1601
1601
|
continue;
|
|
1602
1602
|
}
|
|
1603
1603
|
var s = rr(i.stem);
|
|
1604
|
-
s && (t =
|
|
1604
|
+
s && (t = w(w({}, t), s));
|
|
1605
1605
|
var a = Rn(i.stem);
|
|
1606
|
-
a && (t =
|
|
1606
|
+
a && (t = w(w({}, t), a));
|
|
1607
1607
|
}
|
|
1608
1608
|
return t;
|
|
1609
1609
|
}
|
|
1610
|
-
var
|
|
1610
|
+
var le = {
|
|
1611
1611
|
"001": [
|
|
1612
1612
|
"H",
|
|
1613
1613
|
"h"
|
|
@@ -3057,21 +3057,21 @@ function Un(e) {
|
|
|
3057
3057
|
}
|
|
3058
3058
|
var r = e.language, n;
|
|
3059
3059
|
r !== "root" && (n = e.maximize().region);
|
|
3060
|
-
var i =
|
|
3060
|
+
var i = le[n || ""] || le[r || ""] || le["".concat(r, "-001")] || le["001"];
|
|
3061
3061
|
return i[0];
|
|
3062
3062
|
}
|
|
3063
|
-
var
|
|
3064
|
-
function
|
|
3063
|
+
var Pe, Dn = new RegExp("^".concat(Kt.source, "*")), Fn = new RegExp("".concat(Kt.source, "*$"));
|
|
3064
|
+
function g(e, t) {
|
|
3065
3065
|
return { start: e, end: t };
|
|
3066
3066
|
}
|
|
3067
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
|
+
}, Xe = !0;
|
|
3070
3070
|
try {
|
|
3071
3071
|
var Jn = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3072
|
-
|
|
3072
|
+
Xe = ((Pe = Jn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
3073
3073
|
} catch {
|
|
3074
|
-
|
|
3074
|
+
Xe = !1;
|
|
3075
3075
|
}
|
|
3076
3076
|
var vt = jn ? (
|
|
3077
3077
|
// Native
|
|
@@ -3083,7 +3083,7 @@ var vt = jn ? (
|
|
|
3083
3083
|
function(t, r, n) {
|
|
3084
3084
|
return t.slice(n, n + r.length) === r;
|
|
3085
3085
|
}
|
|
3086
|
-
),
|
|
3086
|
+
), We = kn ? String.fromCodePoint : (
|
|
3087
3087
|
// IE11
|
|
3088
3088
|
function() {
|
|
3089
3089
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3145,24 +3145,24 @@ var vt = jn ? (
|
|
|
3145
3145
|
function ir(e, t) {
|
|
3146
3146
|
return new RegExp(e, t);
|
|
3147
3147
|
}
|
|
3148
|
-
var
|
|
3149
|
-
if (
|
|
3148
|
+
var ze;
|
|
3149
|
+
if (Xe) {
|
|
3150
3150
|
var _t = ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3151
|
-
|
|
3151
|
+
ze = function(t, r) {
|
|
3152
3152
|
var n;
|
|
3153
3153
|
_t.lastIndex = r;
|
|
3154
3154
|
var i = _t.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
3160
|
var i = nr(t, r);
|
|
3161
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 We.apply(void 0, n);
|
|
3166
3166
|
};
|
|
3167
3167
|
var Kn = (
|
|
3168
3168
|
/** @class */
|
|
@@ -3189,13 +3189,13 @@ var Kn = (
|
|
|
3189
3189
|
var a = this.clonePosition();
|
|
3190
3190
|
this.bump(), i.push({
|
|
3191
3191
|
type: E.pound,
|
|
3192
|
-
location:
|
|
3192
|
+
location: g(a, this.clonePosition())
|
|
3193
3193
|
});
|
|
3194
3194
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3195
3195
|
if (n)
|
|
3196
3196
|
break;
|
|
3197
|
-
return this.error(
|
|
3198
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3197
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3198
|
+
} else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
|
|
3199
3199
|
var s = this.parseTag(t, r);
|
|
3200
3200
|
if (s.err)
|
|
3201
3201
|
return s;
|
|
@@ -3218,7 +3218,7 @@ var Kn = (
|
|
|
3218
3218
|
val: {
|
|
3219
3219
|
type: E.literal,
|
|
3220
3220
|
value: "<".concat(i, "/>"),
|
|
3221
|
-
location:
|
|
3221
|
+
location: g(n, this.clonePosition())
|
|
3222
3222
|
},
|
|
3223
3223
|
err: null
|
|
3224
3224
|
};
|
|
@@ -3228,22 +3228,22 @@ var Kn = (
|
|
|
3228
3228
|
return o;
|
|
3229
3229
|
var s = o.val, a = this.clonePosition();
|
|
3230
3230
|
if (this.bumpIf("</")) {
|
|
3231
|
-
if (this.isEOF() || !
|
|
3232
|
-
return this.error(
|
|
3231
|
+
if (this.isEOF() || !Ze(this.char()))
|
|
3232
|
+
return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
|
|
3233
3233
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3234
|
-
return i !== u ? this.error(
|
|
3234
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3235
3235
|
val: {
|
|
3236
3236
|
type: E.tag,
|
|
3237
3237
|
value: i,
|
|
3238
3238
|
children: s,
|
|
3239
|
-
location:
|
|
3239
|
+
location: g(n, this.clonePosition())
|
|
3240
3240
|
},
|
|
3241
3241
|
err: null
|
|
3242
|
-
} : this.error(
|
|
3242
|
+
} : this.error(p.INVALID_TAG, g(a, this.clonePosition())));
|
|
3243
3243
|
} else
|
|
3244
|
-
return this.error(
|
|
3244
|
+
return this.error(p.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3245
3245
|
} else
|
|
3246
|
-
return this.error(
|
|
3246
|
+
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
|
3247
3247
|
}, e.prototype.parseTagName = function() {
|
|
3248
3248
|
var t = this.offset();
|
|
3249
3249
|
for (this.bump(); !this.isEOF() && ti(this.char()); )
|
|
@@ -3268,7 +3268,7 @@ var Kn = (
|
|
|
3268
3268
|
}
|
|
3269
3269
|
break;
|
|
3270
3270
|
}
|
|
3271
|
-
var l =
|
|
3271
|
+
var l = g(n, this.clonePosition());
|
|
3272
3272
|
return {
|
|
3273
3273
|
val: { type: E.literal, value: i, location: l },
|
|
3274
3274
|
err: null
|
|
@@ -3309,23 +3309,23 @@ var Kn = (
|
|
|
3309
3309
|
r.push(n);
|
|
3310
3310
|
this.bump();
|
|
3311
3311
|
}
|
|
3312
|
-
return
|
|
3312
|
+
return We.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(), We(n));
|
|
3318
3318
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3319
3319
|
var n = this.clonePosition();
|
|
3320
3320
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3321
|
-
return this.error(
|
|
3321
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3322
3322
|
if (this.char() === 125)
|
|
3323
|
-
return this.bump(), this.error(
|
|
3323
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3324
3324
|
var i = this.parseIdentifierIfPossible().value;
|
|
3325
3325
|
if (!i)
|
|
3326
|
-
return this.error(
|
|
3326
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3327
3327
|
if (this.bumpSpace(), this.isEOF())
|
|
3328
|
-
return this.error(
|
|
3328
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3329
3329
|
switch (this.char()) {
|
|
3330
3330
|
case 125:
|
|
3331
3331
|
return this.bump(), {
|
|
@@ -3333,25 +3333,25 @@ var Kn = (
|
|
|
3333
3333
|
type: E.argument,
|
|
3334
3334
|
// value does not include the opening and closing braces.
|
|
3335
3335
|
value: i,
|
|
3336
|
-
location:
|
|
3336
|
+
location: g(n, this.clonePosition())
|
|
3337
3337
|
},
|
|
3338
3338
|
err: null
|
|
3339
3339
|
};
|
|
3340
3340
|
case 44:
|
|
3341
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
3341
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3342
3342
|
default:
|
|
3343
|
-
return this.error(
|
|
3343
|
+
return this.error(p.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
|
-
var o = this.clonePosition(), s =
|
|
3348
|
+
var o = this.clonePosition(), s = g(t, o);
|
|
3349
3349
|
return { value: n, location: s };
|
|
3350
3350
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3351
3351
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3352
3352
|
switch (a) {
|
|
3353
3353
|
case "":
|
|
3354
|
-
return this.error(
|
|
3354
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, g(s, l));
|
|
3355
3355
|
case "number":
|
|
3356
3356
|
case "date":
|
|
3357
3357
|
case "time": {
|
|
@@ -3364,14 +3364,14 @@ var Kn = (
|
|
|
3364
3364
|
return c;
|
|
3365
3365
|
var f = qn(c.val);
|
|
3366
3366
|
if (f.length === 0)
|
|
3367
|
-
return this.error(
|
|
3368
|
-
var m =
|
|
3367
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3368
|
+
var m = g(h, this.clonePosition());
|
|
3369
3369
|
u = { style: f, styleLocation: m };
|
|
3370
3370
|
}
|
|
3371
|
-
var
|
|
3372
|
-
if (
|
|
3373
|
-
return
|
|
3374
|
-
var d =
|
|
3371
|
+
var v = this.tryParseArgumentClose(i);
|
|
3372
|
+
if (v.err)
|
|
3373
|
+
return v;
|
|
3374
|
+
var d = g(i, this.clonePosition());
|
|
3375
3375
|
if (u && vt(u?.style, "::", 0)) {
|
|
3376
3376
|
var S = Yn(u.style.slice(2));
|
|
3377
3377
|
if (a === "number") {
|
|
@@ -3382,17 +3382,17 @@ var Kn = (
|
|
|
3382
3382
|
};
|
|
3383
3383
|
} else {
|
|
3384
3384
|
if (S.length === 0)
|
|
3385
|
-
return this.error(
|
|
3386
|
-
var
|
|
3387
|
-
this.locale && (
|
|
3385
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, d);
|
|
3386
|
+
var P = S;
|
|
3387
|
+
this.locale && (P = Gn(S, this.locale));
|
|
3388
3388
|
var f = {
|
|
3389
|
-
type:
|
|
3390
|
-
pattern:
|
|
3389
|
+
type: V.dateTime,
|
|
3390
|
+
pattern: P,
|
|
3391
3391
|
location: u.styleLocation,
|
|
3392
|
-
parsedOptions: this.shouldParseSkeletons ? On(
|
|
3393
|
-
},
|
|
3392
|
+
parsedOptions: this.shouldParseSkeletons ? On(P) : {}
|
|
3393
|
+
}, H = a === "date" ? E.date : E.time;
|
|
3394
3394
|
return {
|
|
3395
|
-
val: { type:
|
|
3395
|
+
val: { type: H, value: n, location: d, style: f },
|
|
3396
3396
|
err: null
|
|
3397
3397
|
};
|
|
3398
3398
|
}
|
|
@@ -3410,52 +3410,52 @@ var Kn = (
|
|
|
3410
3410
|
case "plural":
|
|
3411
3411
|
case "selectordinal":
|
|
3412
3412
|
case "select": {
|
|
3413
|
-
var
|
|
3413
|
+
var _ = this.clonePosition();
|
|
3414
3414
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3415
|
-
return this.error(
|
|
3415
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(_, de({}, _)));
|
|
3416
3416
|
this.bumpSpace();
|
|
3417
|
-
var
|
|
3418
|
-
if (a !== "select" &&
|
|
3417
|
+
var x = this.parseIdentifierIfPossible(), y = 0;
|
|
3418
|
+
if (a !== "select" && x.value === "offset") {
|
|
3419
3419
|
if (!this.bumpIf(":"))
|
|
3420
|
-
return this.error(
|
|
3420
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3421
3421
|
this.bumpSpace();
|
|
3422
|
-
var c = this.tryParseDecimalInteger(
|
|
3422
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3423
3423
|
if (c.err)
|
|
3424
3424
|
return c;
|
|
3425
|
-
this.bumpSpace(),
|
|
3425
|
+
this.bumpSpace(), x = this.parseIdentifierIfPossible(), y = c.val;
|
|
3426
3426
|
}
|
|
3427
|
-
var
|
|
3428
|
-
if (
|
|
3429
|
-
return
|
|
3430
|
-
var
|
|
3431
|
-
if (
|
|
3432
|
-
return
|
|
3433
|
-
var
|
|
3427
|
+
var A = this.tryParsePluralOrSelectOptions(t, a, r, x);
|
|
3428
|
+
if (A.err)
|
|
3429
|
+
return A;
|
|
3430
|
+
var v = this.tryParseArgumentClose(i);
|
|
3431
|
+
if (v.err)
|
|
3432
|
+
return v;
|
|
3433
|
+
var se = g(i, this.clonePosition());
|
|
3434
3434
|
return a === "select" ? {
|
|
3435
3435
|
val: {
|
|
3436
3436
|
type: E.select,
|
|
3437
3437
|
value: n,
|
|
3438
|
-
options: yt(
|
|
3439
|
-
location:
|
|
3438
|
+
options: yt(A.val),
|
|
3439
|
+
location: se
|
|
3440
3440
|
},
|
|
3441
3441
|
err: null
|
|
3442
3442
|
} : {
|
|
3443
3443
|
val: {
|
|
3444
3444
|
type: E.plural,
|
|
3445
3445
|
value: n,
|
|
3446
|
-
options: yt(
|
|
3447
|
-
offset:
|
|
3446
|
+
options: yt(A.val),
|
|
3447
|
+
offset: y,
|
|
3448
3448
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3449
|
-
location:
|
|
3449
|
+
location: se
|
|
3450
3450
|
},
|
|
3451
3451
|
err: null
|
|
3452
3452
|
};
|
|
3453
3453
|
}
|
|
3454
3454
|
default:
|
|
3455
|
-
return this.error(
|
|
3455
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, g(s, l));
|
|
3456
3456
|
}
|
|
3457
3457
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3458
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3458
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3459
3459
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3460
3460
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3461
3461
|
var n = this.char();
|
|
@@ -3464,7 +3464,7 @@ var Kn = (
|
|
|
3464
3464
|
this.bump();
|
|
3465
3465
|
var i = this.clonePosition();
|
|
3466
3466
|
if (!this.bumpUntil("'"))
|
|
3467
|
-
return this.error(
|
|
3467
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3468
3468
|
this.bump();
|
|
3469
3469
|
break;
|
|
3470
3470
|
}
|
|
@@ -3494,13 +3494,13 @@ var Kn = (
|
|
|
3494
3494
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3495
3495
|
var n = [];
|
|
3496
3496
|
try {
|
|
3497
|
-
n =
|
|
3497
|
+
n = Mn(t);
|
|
3498
3498
|
} catch {
|
|
3499
|
-
return this.error(
|
|
3499
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3500
3500
|
}
|
|
3501
3501
|
return {
|
|
3502
3502
|
val: {
|
|
3503
|
-
type:
|
|
3503
|
+
type: V.number,
|
|
3504
3504
|
tokens: n,
|
|
3505
3505
|
location: r,
|
|
3506
3506
|
parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
|
|
@@ -3512,34 +3512,34 @@ var Kn = (
|
|
|
3512
3512
|
if (u.length === 0) {
|
|
3513
3513
|
var c = this.clonePosition();
|
|
3514
3514
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3515
|
-
var f = this.tryParseDecimalInteger(
|
|
3515
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3516
3516
|
if (f.err)
|
|
3517
3517
|
return f;
|
|
3518
|
-
h =
|
|
3518
|
+
h = g(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3519
3519
|
} else
|
|
3520
3520
|
break;
|
|
3521
3521
|
}
|
|
3522
3522
|
if (l.has(u))
|
|
3523
|
-
return this.error(r === "select" ?
|
|
3523
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3524
3524
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3525
3525
|
var m = this.clonePosition();
|
|
3526
3526
|
if (!this.bumpIf("{"))
|
|
3527
|
-
return this.error(r === "select" ?
|
|
3528
|
-
var
|
|
3529
|
-
if (
|
|
3530
|
-
return
|
|
3527
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3528
|
+
var v = this.parseMessage(t + 1, r, n);
|
|
3529
|
+
if (v.err)
|
|
3530
|
+
return v;
|
|
3531
3531
|
var d = this.tryParseArgumentClose(m);
|
|
3532
3532
|
if (d.err)
|
|
3533
3533
|
return d;
|
|
3534
3534
|
a.push([
|
|
3535
3535
|
u,
|
|
3536
3536
|
{
|
|
3537
|
-
value:
|
|
3538
|
-
location:
|
|
3537
|
+
value: v.val,
|
|
3538
|
+
location: g(m, this.clonePosition())
|
|
3539
3539
|
}
|
|
3540
3540
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3541
3541
|
}
|
|
3542
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3542
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3543
3543
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3544
3544
|
var n = 1, i = this.clonePosition();
|
|
3545
3545
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3550,7 +3550,7 @@ var Kn = (
|
|
|
3550
3550
|
else
|
|
3551
3551
|
break;
|
|
3552
3552
|
}
|
|
3553
|
-
var l =
|
|
3553
|
+
var l = g(i, this.clonePosition());
|
|
3554
3554
|
return o ? (s *= n, Qn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3555
3555
|
}, e.prototype.offset = function() {
|
|
3556
3556
|
return this.position.offset;
|
|
@@ -3617,11 +3617,11 @@ var Kn = (
|
|
|
3617
3617
|
}, e;
|
|
3618
3618
|
}()
|
|
3619
3619
|
);
|
|
3620
|
-
function
|
|
3620
|
+
function Ze(e) {
|
|
3621
3621
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3622
3622
|
}
|
|
3623
3623
|
function ei(e) {
|
|
3624
|
-
return
|
|
3624
|
+
return Ze(e) || e === 47;
|
|
3625
3625
|
}
|
|
3626
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;
|
|
@@ -3632,32 +3632,32 @@ function or(e) {
|
|
|
3632
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 Qe(e) {
|
|
3636
3636
|
e.forEach(function(t) {
|
|
3637
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, Qe(t.options[r].value);
|
|
3640
3640
|
else
|
|
3641
|
-
Wt(t) && qt(t.style) || (zt(t) || Zt(t)) &&
|
|
3641
|
+
Wt(t) && qt(t.style) || (zt(t) || Zt(t)) && Ve(t.style) ? delete t.style.location : Yt(t) && Qe(t.children);
|
|
3642
3642
|
});
|
|
3643
3643
|
}
|
|
3644
3644
|
function ni(e, t) {
|
|
3645
|
-
t === void 0 && (t = {}), t =
|
|
3645
|
+
t === void 0 && (t = {}), t = de({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3646
3646
|
var r = new Kn(e, t).parse();
|
|
3647
3647
|
if (r.err) {
|
|
3648
|
-
var n = SyntaxError(
|
|
3648
|
+
var n = SyntaxError(p[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 || Qe(r.val), r.val;
|
|
3652
3652
|
}
|
|
3653
|
-
var
|
|
3653
|
+
var X;
|
|
3654
3654
|
(function(e) {
|
|
3655
3655
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3656
|
-
})(
|
|
3657
|
-
var
|
|
3656
|
+
})(X || (X = {}));
|
|
3657
|
+
var Ee = (
|
|
3658
3658
|
/** @class */
|
|
3659
3659
|
function(e) {
|
|
3660
|
-
|
|
3660
|
+
xe(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;
|
|
@@ -3669,48 +3669,48 @@ var Se = (
|
|
|
3669
3669
|
), xt = (
|
|
3670
3670
|
/** @class */
|
|
3671
3671
|
function(e) {
|
|
3672
|
-
|
|
3672
|
+
xe(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('", "'), '"'), X.INVALID_VALUE, o) || this;
|
|
3675
3675
|
}
|
|
3676
3676
|
return t;
|
|
3677
|
-
}(
|
|
3677
|
+
}(Ee)
|
|
3678
3678
|
), ii = (
|
|
3679
3679
|
/** @class */
|
|
3680
3680
|
function(e) {
|
|
3681
|
-
|
|
3681
|
+
xe(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), X.INVALID_VALUE, i) || this;
|
|
3684
3684
|
}
|
|
3685
3685
|
return t;
|
|
3686
|
-
}(
|
|
3686
|
+
}(Ee)
|
|
3687
3687
|
), oi = (
|
|
3688
3688
|
/** @class */
|
|
3689
3689
|
function(e) {
|
|
3690
|
-
|
|
3690
|
+
xe(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, '"'), X.MISSING_VALUE, n) || this;
|
|
3693
3693
|
}
|
|
3694
3694
|
return t;
|
|
3695
|
-
}(
|
|
3696
|
-
),
|
|
3695
|
+
}(Ee)
|
|
3696
|
+
), C;
|
|
3697
3697
|
(function(e) {
|
|
3698
3698
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3699
|
-
})(
|
|
3699
|
+
})(C || (C = {}));
|
|
3700
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
|
-
return !n || n.type !==
|
|
3703
|
+
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3704
3704
|
}, []);
|
|
3705
3705
|
}
|
|
3706
3706
|
function ai(e) {
|
|
3707
3707
|
return typeof e == "function";
|
|
3708
3708
|
}
|
|
3709
|
-
function
|
|
3709
|
+
function me(e, t, r, n, i, o, s) {
|
|
3710
3710
|
if (e.length === 1 && pt(e[0]))
|
|
3711
3711
|
return [
|
|
3712
3712
|
{
|
|
3713
|
-
type:
|
|
3713
|
+
type: C.literal,
|
|
3714
3714
|
value: e[0].value
|
|
3715
3715
|
}
|
|
3716
3716
|
];
|
|
@@ -3718,14 +3718,14 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3718
3718
|
var h = u[l];
|
|
3719
3719
|
if (pt(h)) {
|
|
3720
3720
|
a.push({
|
|
3721
|
-
type:
|
|
3721
|
+
type: C.literal,
|
|
3722
3722
|
value: h.value
|
|
3723
3723
|
});
|
|
3724
3724
|
continue;
|
|
3725
3725
|
}
|
|
3726
3726
|
if (Cn(h)) {
|
|
3727
3727
|
typeof o == "number" && a.push({
|
|
3728
|
-
type:
|
|
3728
|
+
type: C.literal,
|
|
3729
3729
|
value: r.getNumberFormat(t).format(o)
|
|
3730
3730
|
});
|
|
3731
3731
|
continue;
|
|
@@ -3734,25 +3734,25 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3734
3734
|
if (!(i && c in i))
|
|
3735
3735
|
throw new oi(c, s);
|
|
3736
3736
|
var f = i[c];
|
|
3737
|
-
if (
|
|
3737
|
+
if (Bn(h)) {
|
|
3738
3738
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3739
|
-
type: typeof f == "string" ?
|
|
3739
|
+
type: typeof f == "string" ? C.literal : C.object,
|
|
3740
3740
|
value: f
|
|
3741
3741
|
});
|
|
3742
3742
|
continue;
|
|
3743
3743
|
}
|
|
3744
3744
|
if (zt(h)) {
|
|
3745
|
-
var m = typeof h.style == "string" ? n.date[h.style] :
|
|
3745
|
+
var m = typeof h.style == "string" ? n.date[h.style] : Ve(h.style) ? h.style.parsedOptions : void 0;
|
|
3746
3746
|
a.push({
|
|
3747
|
-
type:
|
|
3747
|
+
type: C.literal,
|
|
3748
3748
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3749
3749
|
});
|
|
3750
3750
|
continue;
|
|
3751
3751
|
}
|
|
3752
3752
|
if (Zt(h)) {
|
|
3753
|
-
var m = typeof h.style == "string" ? n.time[h.style] :
|
|
3753
|
+
var m = typeof h.style == "string" ? n.time[h.style] : Ve(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3754
3754
|
a.push({
|
|
3755
|
-
type:
|
|
3755
|
+
type: C.literal,
|
|
3756
3756
|
value: r.getDateTimeFormat(t, m).format(f)
|
|
3757
3757
|
});
|
|
3758
3758
|
continue;
|
|
@@ -3760,45 +3760,45 @@ function pe(e, t, r, n, i, o, s) {
|
|
|
3760
3760
|
if (Wt(h)) {
|
|
3761
3761
|
var m = typeof h.style == "string" ? n.number[h.style] : qt(h.style) ? h.style.parsedOptions : void 0;
|
|
3762
3762
|
m && m.scale && (f = f * (m.scale || 1)), a.push({
|
|
3763
|
-
type:
|
|
3763
|
+
type: C.literal,
|
|
3764
3764
|
value: r.getNumberFormat(t, m).format(f)
|
|
3765
3765
|
});
|
|
3766
3766
|
continue;
|
|
3767
3767
|
}
|
|
3768
3768
|
if (Yt(h)) {
|
|
3769
|
-
var
|
|
3769
|
+
var v = h.children, d = h.value, S = i[d];
|
|
3770
3770
|
if (!ai(S))
|
|
3771
3771
|
throw new ii(d, "function", s);
|
|
3772
|
-
var
|
|
3773
|
-
return
|
|
3772
|
+
var P = me(v, t, r, n, i, o), H = S(P.map(function(y) {
|
|
3773
|
+
return y.value;
|
|
3774
3774
|
}));
|
|
3775
|
-
Array.isArray(
|
|
3775
|
+
Array.isArray(H) || (H = [H]), a.push.apply(a, H.map(function(y) {
|
|
3776
3776
|
return {
|
|
3777
|
-
type: typeof
|
|
3778
|
-
value:
|
|
3777
|
+
type: typeof y == "string" ? C.literal : C.object,
|
|
3778
|
+
value: y
|
|
3779
3779
|
};
|
|
3780
3780
|
}));
|
|
3781
3781
|
}
|
|
3782
3782
|
if (Qt(h)) {
|
|
3783
|
-
var
|
|
3784
|
-
if (!
|
|
3783
|
+
var _ = h.options[f] || h.options.other;
|
|
3784
|
+
if (!_)
|
|
3785
3785
|
throw new xt(h.value, f, Object.keys(h.options), s);
|
|
3786
|
-
a.push.apply(a,
|
|
3786
|
+
a.push.apply(a, me(_.value, t, r, n, i));
|
|
3787
3787
|
continue;
|
|
3788
3788
|
}
|
|
3789
3789
|
if (Jt(h)) {
|
|
3790
|
-
var
|
|
3791
|
-
if (!
|
|
3790
|
+
var _ = h.options["=".concat(f)];
|
|
3791
|
+
if (!_) {
|
|
3792
3792
|
if (!Intl.PluralRules)
|
|
3793
|
-
throw new
|
|
3793
|
+
throw new Ee(`Intl.PluralRules is not available in this environment.
|
|
3794
3794
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3795
|
-
`,
|
|
3796
|
-
var
|
|
3797
|
-
|
|
3795
|
+
`, X.MISSING_INTL_API, s);
|
|
3796
|
+
var x = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
|
|
3797
|
+
_ = h.options[x] || h.options.other;
|
|
3798
3798
|
}
|
|
3799
|
-
if (!
|
|
3799
|
+
if (!_)
|
|
3800
3800
|
throw new xt(h.value, f, Object.keys(h.options), s);
|
|
3801
|
-
a.push.apply(a,
|
|
3801
|
+
a.push.apply(a, me(_.value, t, r, n, i, f - (h.offset || 0)));
|
|
3802
3802
|
continue;
|
|
3803
3803
|
}
|
|
3804
3804
|
}
|
|
@@ -3814,7 +3814,7 @@ function li(e, t) {
|
|
|
3814
3814
|
return r[n] = ui(e[n], t[n]), r;
|
|
3815
3815
|
}, M({}, e)) : e;
|
|
3816
3816
|
}
|
|
3817
|
-
function
|
|
3817
|
+
function Oe(e) {
|
|
3818
3818
|
return {
|
|
3819
3819
|
create: function() {
|
|
3820
3820
|
return {
|
|
@@ -3834,29 +3834,29 @@ function hi(e) {
|
|
|
3834
3834
|
dateTime: {},
|
|
3835
3835
|
pluralRules: {}
|
|
3836
3836
|
}), {
|
|
3837
|
-
getNumberFormat:
|
|
3837
|
+
getNumberFormat: Be(function() {
|
|
3838
3838
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3839
3839
|
r[n] = arguments[n];
|
|
3840
3840
|
return new ((t = Intl.NumberFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3841
3841
|
}, {
|
|
3842
|
-
cache:
|
|
3843
|
-
strategy:
|
|
3842
|
+
cache: Oe(e.number),
|
|
3843
|
+
strategy: Ce.variadic
|
|
3844
3844
|
}),
|
|
3845
|
-
getDateTimeFormat:
|
|
3845
|
+
getDateTimeFormat: Be(function() {
|
|
3846
3846
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3847
3847
|
r[n] = arguments[n];
|
|
3848
3848
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3849
3849
|
}, {
|
|
3850
|
-
cache:
|
|
3851
|
-
strategy:
|
|
3850
|
+
cache: Oe(e.dateTime),
|
|
3851
|
+
strategy: Ce.variadic
|
|
3852
3852
|
}),
|
|
3853
|
-
getPluralRules:
|
|
3853
|
+
getPluralRules: Be(function() {
|
|
3854
3854
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3855
3855
|
r[n] = arguments[n];
|
|
3856
3856
|
return new ((t = Intl.PluralRules).bind.apply(t, Ae([void 0], r, !1)))();
|
|
3857
3857
|
}, {
|
|
3858
|
-
cache:
|
|
3859
|
-
strategy:
|
|
3858
|
+
cache: Oe(e.pluralRules),
|
|
3859
|
+
strategy: Ce.variadic
|
|
3860
3860
|
})
|
|
3861
3861
|
};
|
|
3862
3862
|
}
|
|
@@ -3875,11 +3875,11 @@ var ci = (
|
|
|
3875
3875
|
if (u.length === 1)
|
|
3876
3876
|
return u[0].value;
|
|
3877
3877
|
var h = u.reduce(function(c, f) {
|
|
3878
|
-
return !c.length || f.type !==
|
|
3878
|
+
return !c.length || f.type !== C.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3879
3879
|
}, []);
|
|
3880
3880
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3881
3881
|
}, this.formatToParts = function(l) {
|
|
3882
|
-
return
|
|
3882
|
+
return me(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3883
3883
|
}, this.resolvedOptions = function() {
|
|
3884
3884
|
var l;
|
|
3885
3885
|
return {
|
|
@@ -3993,12 +3993,12 @@ function fi(e, t) {
|
|
|
3993
3993
|
n = void 0;
|
|
3994
3994
|
return n;
|
|
3995
3995
|
}
|
|
3996
|
-
const
|
|
3996
|
+
const R = {}, mi = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[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 R && e in R[t])
|
|
4000
|
+
return R[t][e];
|
|
4001
|
+
const r = Se(t);
|
|
4002
4002
|
for (let n = 0; n < r.length; n++) {
|
|
4003
4003
|
const i = r[n], o = di(i, e);
|
|
4004
4004
|
if (o)
|
|
@@ -4006,7 +4006,7 @@ const $ = {}, mi = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][
|
|
|
4006
4006
|
}
|
|
4007
4007
|
};
|
|
4008
4008
|
let et;
|
|
4009
|
-
const
|
|
4009
|
+
const oe = _e({});
|
|
4010
4010
|
function pi(e) {
|
|
4011
4011
|
return et[e] || null;
|
|
4012
4012
|
}
|
|
@@ -4022,7 +4022,7 @@ function di(e, t) {
|
|
|
4022
4022
|
function bi(e) {
|
|
4023
4023
|
if (e == null)
|
|
4024
4024
|
return;
|
|
4025
|
-
const t =
|
|
4025
|
+
const t = Se(e);
|
|
4026
4026
|
for (let r = 0; r < t.length; r++) {
|
|
4027
4027
|
const n = t[r];
|
|
4028
4028
|
if (ar(n))
|
|
@@ -4030,28 +4030,28 @@ function bi(e) {
|
|
|
4030
4030
|
}
|
|
4031
4031
|
}
|
|
4032
4032
|
function ur(e, ...t) {
|
|
4033
|
-
delete
|
|
4033
|
+
delete R[e], oe.update((r) => (r[e] = yn.all([r[e] || {}, ...t]), r));
|
|
4034
4034
|
}
|
|
4035
|
-
|
|
4036
|
-
[
|
|
4035
|
+
Q(
|
|
4036
|
+
[oe],
|
|
4037
4037
|
([e]) => Object.keys(e)
|
|
4038
4038
|
);
|
|
4039
|
-
|
|
4040
|
-
const
|
|
4039
|
+
oe.subscribe((e) => et = e);
|
|
4040
|
+
const pe = {};
|
|
4041
4041
|
function gi(e, t) {
|
|
4042
|
-
|
|
4042
|
+
pe[e].delete(t), pe[e].size === 0 && delete pe[e];
|
|
4043
4043
|
}
|
|
4044
4044
|
function lr(e) {
|
|
4045
|
-
return
|
|
4045
|
+
return pe[e];
|
|
4046
4046
|
}
|
|
4047
4047
|
function vi(e) {
|
|
4048
|
-
return
|
|
4048
|
+
return Se(e).map((t) => {
|
|
4049
4049
|
const r = lr(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 Je(e) {
|
|
4054
|
+
return e == null ? !1 : Se(e).some(
|
|
4055
4055
|
(t) => {
|
|
4056
4056
|
var r;
|
|
4057
4057
|
return (r = lr(t)) == null ? void 0 : r.size;
|
|
@@ -4063,20 +4063,20 @@ function yi(e, t) {
|
|
|
4063
4063
|
t.map((n) => (gi(e, n), n().then((i) => i.default || i)))
|
|
4064
4064
|
).then((n) => ur(e, ...n));
|
|
4065
4065
|
}
|
|
4066
|
-
const
|
|
4066
|
+
const q = {};
|
|
4067
4067
|
function hr(e) {
|
|
4068
|
-
if (!
|
|
4069
|
-
return e in
|
|
4068
|
+
if (!Je(e))
|
|
4069
|
+
return e in q ? q[e] : Promise.resolve();
|
|
4070
4070
|
const t = vi(e);
|
|
4071
|
-
return
|
|
4071
|
+
return q[e] = Promise.all(
|
|
4072
4072
|
t.map(
|
|
4073
4073
|
([r, n]) => yi(r, n)
|
|
4074
4074
|
)
|
|
4075
4075
|
).then(() => {
|
|
4076
|
-
if (
|
|
4076
|
+
if (Je(e))
|
|
4077
4077
|
return hr(e);
|
|
4078
|
-
delete
|
|
4079
|
-
}),
|
|
4078
|
+
delete q[e];
|
|
4079
|
+
}), q[e];
|
|
4080
4080
|
}
|
|
4081
4081
|
const _i = {
|
|
4082
4082
|
number: {
|
|
@@ -4115,125 +4115,125 @@ const _i = {
|
|
|
4115
4115
|
handleMissingMessage: void 0,
|
|
4116
4116
|
ignoreTag: !0
|
|
4117
4117
|
}, Ei = xi;
|
|
4118
|
-
function
|
|
4118
|
+
function W() {
|
|
4119
4119
|
return Ei;
|
|
4120
4120
|
}
|
|
4121
|
-
const
|
|
4122
|
-
var Si = Object.defineProperty, wi = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty,
|
|
4121
|
+
const Ie = _e(!1);
|
|
4122
|
+
var Si = Object.defineProperty, wi = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Ai = Object.prototype.propertyIsEnumerable, St = (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
4124
|
Hi.call(t, r) && St(e, r, t[r]);
|
|
4125
4125
|
if (Et)
|
|
4126
4126
|
for (var r of Et(t))
|
|
4127
|
-
|
|
4127
|
+
Ai.call(t, r) && St(e, r, t[r]);
|
|
4128
4128
|
return e;
|
|
4129
4129
|
}, Ci = (e, t) => wi(e, Ti(t));
|
|
4130
|
-
let
|
|
4131
|
-
const
|
|
4130
|
+
let Ye;
|
|
4131
|
+
const be = _e(null);
|
|
4132
4132
|
function wt(e) {
|
|
4133
4133
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4134
4134
|
}
|
|
4135
|
-
function
|
|
4135
|
+
function Se(e, t = W().fallbackLocale) {
|
|
4136
4136
|
const r = wt(e);
|
|
4137
4137
|
return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
|
|
4138
4138
|
}
|
|
4139
|
-
function
|
|
4140
|
-
return
|
|
4139
|
+
function $() {
|
|
4140
|
+
return Ye ?? void 0;
|
|
4141
4141
|
}
|
|
4142
|
-
|
|
4143
|
-
|
|
4142
|
+
be.subscribe((e) => {
|
|
4143
|
+
Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4144
4144
|
});
|
|
4145
4145
|
const Pi = (e) => {
|
|
4146
|
-
if (e && bi(e) &&
|
|
4147
|
-
const { loadingDelay: t } =
|
|
4146
|
+
if (e && bi(e) && Je(e)) {
|
|
4147
|
+
const { loadingDelay: t } = W();
|
|
4148
4148
|
let r;
|
|
4149
|
-
return typeof window < "u" &&
|
|
4150
|
-
() =>
|
|
4149
|
+
return typeof window < "u" && $() != null && t ? r = window.setTimeout(
|
|
4150
|
+
() => Ie.set(!0),
|
|
4151
4151
|
t
|
|
4152
|
-
) :
|
|
4153
|
-
|
|
4152
|
+
) : Ie.set(!0), hr(e).then(() => {
|
|
4153
|
+
be.set(e);
|
|
4154
4154
|
}).finally(() => {
|
|
4155
|
-
clearTimeout(r),
|
|
4155
|
+
clearTimeout(r), Ie.set(!1);
|
|
4156
4156
|
});
|
|
4157
4157
|
}
|
|
4158
|
-
return
|
|
4159
|
-
},
|
|
4158
|
+
return be.set(e);
|
|
4159
|
+
}, J = Ci(Bi({}, be), {
|
|
4160
4160
|
set: Pi
|
|
4161
|
-
}),
|
|
4161
|
+
}), we = (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 Oi = Object.defineProperty,
|
|
4168
|
+
var Oi = Object.defineProperty, ge = Object.getOwnPropertySymbols, cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
4169
4169
|
for (var r in t || (t = {}))
|
|
4170
4170
|
cr.call(t, r) && Tt(e, r, t[r]);
|
|
4171
|
-
if (
|
|
4172
|
-
for (var r of
|
|
4171
|
+
if (ge)
|
|
4172
|
+
for (var r of ge(t))
|
|
4173
4173
|
fr.call(t, r) && Tt(e, r, t[r]);
|
|
4174
4174
|
return e;
|
|
4175
|
-
},
|
|
4175
|
+
}, Y = (e, t) => {
|
|
4176
4176
|
var r = {};
|
|
4177
4177
|
for (var n in e)
|
|
4178
4178
|
cr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4179
|
-
if (e != null &&
|
|
4180
|
-
for (var n of
|
|
4179
|
+
if (e != null && ge)
|
|
4180
|
+
for (var n of ge(e))
|
|
4181
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 re = (e, t) => {
|
|
4185
|
+
const { formats: r } = W();
|
|
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
|
-
}, Ii =
|
|
4189
|
+
}, Ii = we(
|
|
4190
4190
|
(e) => {
|
|
4191
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4191
|
+
var t = e, { locale: r, format: n } = t, i = Y(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 = re("number", n)), new Intl.NumberFormat(r, i);
|
|
4195
4195
|
}
|
|
4196
|
-
),
|
|
4196
|
+
), Mi = we(
|
|
4197
4197
|
(e) => {
|
|
4198
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4198
|
+
var t = e, { locale: r, format: n } = t, i = Y(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 = re("date", n) : Object.keys(i).length === 0 && (i = re("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4202
4202
|
}
|
|
4203
|
-
),
|
|
4203
|
+
), Ni = we(
|
|
4204
4204
|
(e) => {
|
|
4205
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4205
|
+
var t = e, { locale: r, format: n } = t, i = Y(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 = re("time", n) : Object.keys(i).length === 0 && (i = re("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4211
4211
|
}
|
|
4212
4212
|
), Li = (e = {}) => {
|
|
4213
4213
|
var t = e, {
|
|
4214
|
-
locale: r =
|
|
4215
|
-
} = t, n =
|
|
4214
|
+
locale: r = $()
|
|
4215
|
+
} = t, n = Y(t, [
|
|
4216
4216
|
"locale"
|
|
4217
4217
|
]);
|
|
4218
4218
|
return Ii(tt({ locale: r }, n));
|
|
4219
4219
|
}, Ri = (e = {}) => {
|
|
4220
4220
|
var t = e, {
|
|
4221
|
-
locale: r =
|
|
4222
|
-
} = t, n =
|
|
4221
|
+
locale: r = $()
|
|
4222
|
+
} = t, n = Y(t, [
|
|
4223
4223
|
"locale"
|
|
4224
4224
|
]);
|
|
4225
|
-
return
|
|
4225
|
+
return Mi(tt({ locale: r }, n));
|
|
4226
4226
|
}, $i = (e = {}) => {
|
|
4227
4227
|
var t = e, {
|
|
4228
|
-
locale: r =
|
|
4229
|
-
} = t, n =
|
|
4228
|
+
locale: r = $()
|
|
4229
|
+
} = t, n = Y(t, [
|
|
4230
4230
|
"locale"
|
|
4231
4231
|
]);
|
|
4232
|
-
return
|
|
4233
|
-
}, Gi =
|
|
4232
|
+
return Ni(tt({ locale: r }, n));
|
|
4233
|
+
}, Gi = we(
|
|
4234
4234
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4235
|
-
(e, t =
|
|
4236
|
-
ignoreTag:
|
|
4235
|
+
(e, t = $()) => new ci(e, t, W().formats, {
|
|
4236
|
+
ignoreTag: W().ignoreTag
|
|
4237
4237
|
})
|
|
4238
4238
|
), Ui = (e, t = {}) => {
|
|
4239
4239
|
var r, n, i, o;
|
|
@@ -4241,7 +4241,7 @@ const ie = (e, t) => {
|
|
|
4241
4241
|
typeof e == "object" && (s = e, e = s.id);
|
|
4242
4242
|
const {
|
|
4243
4243
|
values: a,
|
|
4244
|
-
locale: l =
|
|
4244
|
+
locale: l = $(),
|
|
4245
4245
|
default: u
|
|
4246
4246
|
} = s;
|
|
4247
4247
|
if (l == null)
|
|
@@ -4250,7 +4250,7 @@ const ie = (e, t) => {
|
|
|
4250
4250
|
);
|
|
4251
4251
|
let h = sr(e, l);
|
|
4252
4252
|
if (!h)
|
|
4253
|
-
h = (o = (i = (n = (r =
|
|
4253
|
+
h = (o = (i = (n = (r = W()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4254
4254
|
else if (typeof h != "string")
|
|
4255
4255
|
return console.warn(
|
|
4256
4256
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4267,20 +4267,20 @@ const ie = (e, t) => {
|
|
|
4267
4267
|
);
|
|
4268
4268
|
}
|
|
4269
4269
|
return c;
|
|
4270
|
-
}, Di = (e, t) => $i(t).format(e), Fi = (e, t) => Ri(t).format(e), ji = (e, t) => Li(t).format(e), ki = (e, t =
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4270
|
+
}, Di = (e, t) => $i(t).format(e), Fi = (e, t) => Ri(t).format(e), ji = (e, t) => Li(t).format(e), ki = (e, t = $()) => sr(e, t), Vi = Q([J, oe], () => Ui);
|
|
4271
|
+
Q([J], () => Di);
|
|
4272
|
+
Q([J], () => Fi);
|
|
4273
|
+
Q([J], () => ji);
|
|
4274
|
+
Q([J, oe], () => ki);
|
|
4275
4275
|
window.emWidgets = { topic: tn };
|
|
4276
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
|
function Ht(e, t) {
|
|
4278
4278
|
ur(e, t);
|
|
4279
4279
|
}
|
|
4280
4280
|
function Wi(e) {
|
|
4281
|
-
|
|
4281
|
+
J.set(e);
|
|
4282
4282
|
}
|
|
4283
|
-
const
|
|
4283
|
+
const At = {
|
|
4284
4284
|
en: {
|
|
4285
4285
|
cancel: "Cancel",
|
|
4286
4286
|
confirm: "Confirm"
|
|
@@ -4350,21 +4350,21 @@ function Qi(e, t, r) {
|
|
|
4350
4350
|
}
|
|
4351
4351
|
}
|
|
4352
4352
|
function Ji(e) {
|
|
4353
|
-
Er(e, "svelte-
|
|
4353
|
+
Er(e, "svelte-8g0wf4", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GeneralConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--emw--color-background, rgba(0, 0, 0, 0.7));display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #ffffff)}.GeneralConfirmationTitle{margin-bottom:20px}.GeneralConfirmationContainer{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);text-align:center}.GeneralConfirmationContainer::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)}.GeneralConfirmationContainer::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)}.GeneralConfirmationContainerMobile{padding:40px;max-width:330px}.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralCancelButton,.GeneralConfirmationContainerMobile .GeneralConfirmationControlAreaMobile .GeneralConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GeneralConfirmationContent{font-size:var(--emw--font-size-medium, 18px);font-weight:300}.GeneralConfirmationControlArea{display:flex;gap:10px;direction:ltr;margin-top:30px}.GeneralConfirmationControlArea .GeneralCancelButton,.GeneralConfirmationControlArea .GeneralConfirmButton{flex:1;background:transparent;border:1px solid var(--emw--color-gray-100, #bfcbc3);color:var(--emw--color-gray-100, #bfcbc3);cursor:pointer;border-radius:var(--emw--button-border-radius, 50px);width:200px;height:50px;font-size:var(--emw--font-size-small, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GeneralConfirmationControlArea .GeneralConfirmButton{background-color:var(--emw--color-primary, #22b04e);border:2px solid var(--emw--button-border-color, #063b17);border-radius:var(--emw--button-border-radius, 50px);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)}.GeneralConfirmationMobileWrapper{border:none;padding:0}');
|
|
4354
4354
|
}
|
|
4355
|
-
const Yi = (e) => ({}),
|
|
4355
|
+
const Yi = (e) => ({}), Bt = (e) => ({});
|
|
4356
4356
|
function qi(e) {
|
|
4357
4357
|
let t, r;
|
|
4358
4358
|
return {
|
|
4359
4359
|
c() {
|
|
4360
|
-
t = it("svg"), r = it("path"),
|
|
4360
|
+
t = it("svg"), r = it("path"), T(r, "stroke-linecap", "round"), T(r, "stroke-linejoin", "round"), T(r, "stroke-width", "2"), T(r, "d", "M6 18L18 6M6 6l12 12"), T(t, "class", "w-6 h-6"), T(t, "fill", "none"), T(t, "stroke", "currentColor"), T(t, "viewBox", "0 0 24 24"), T(t, "xmlns", "http://www.w3.org/2000/svg");
|
|
4361
4361
|
},
|
|
4362
4362
|
m(n, i) {
|
|
4363
|
-
|
|
4363
|
+
ne(n, t, i), B(t, r);
|
|
4364
4364
|
},
|
|
4365
|
-
p:
|
|
4365
|
+
p: N,
|
|
4366
4366
|
d(n) {
|
|
4367
|
-
n &&
|
|
4367
|
+
n && Z(t);
|
|
4368
4368
|
}
|
|
4369
4369
|
};
|
|
4370
4370
|
}
|
|
@@ -4372,24 +4372,24 @@ function Ct(e) {
|
|
|
4372
4372
|
let t, r, n;
|
|
4373
4373
|
return {
|
|
4374
4374
|
c() {
|
|
4375
|
-
t =
|
|
4375
|
+
t = I("div"), r = I("h2"), n = ve(
|
|
4376
4376
|
/*modaltitle*/
|
|
4377
4377
|
e[1]
|
|
4378
|
-
),
|
|
4378
|
+
), T(t, "class", "GeneralConfirmationTitle");
|
|
4379
4379
|
},
|
|
4380
4380
|
m(i, o) {
|
|
4381
|
-
|
|
4381
|
+
ne(i, t, o), B(t, r), B(r, n);
|
|
4382
4382
|
},
|
|
4383
4383
|
p(i, o) {
|
|
4384
4384
|
o & /*modaltitle*/
|
|
4385
|
-
2 &&
|
|
4385
|
+
2 && Ke(
|
|
4386
4386
|
n,
|
|
4387
4387
|
/*modaltitle*/
|
|
4388
4388
|
i[1]
|
|
4389
4389
|
);
|
|
4390
4390
|
},
|
|
4391
4391
|
d(i) {
|
|
4392
|
-
i &&
|
|
4392
|
+
i && Z(t);
|
|
4393
4393
|
}
|
|
4394
4394
|
};
|
|
4395
4395
|
}
|
|
@@ -4400,10 +4400,10 @@ function Pt(e) {
|
|
|
4400
4400
|
), n, i, o;
|
|
4401
4401
|
return {
|
|
4402
4402
|
c() {
|
|
4403
|
-
t =
|
|
4403
|
+
t = I("button"), n = ve(r), T(t, "class", "GeneralCancelButton");
|
|
4404
4404
|
},
|
|
4405
4405
|
m(s, a) {
|
|
4406
|
-
|
|
4406
|
+
ne(s, t, a), B(t, n), i || (o = Me(
|
|
4407
4407
|
t,
|
|
4408
4408
|
"click",
|
|
4409
4409
|
/*click_handler*/
|
|
@@ -4413,28 +4413,28 @@ function Pt(e) {
|
|
|
4413
4413
|
p(s, a) {
|
|
4414
4414
|
a & /*$_*/
|
|
4415
4415
|
16 && r !== (r = /*$_*/
|
|
4416
|
-
s[4]("cancel") + "") &&
|
|
4416
|
+
s[4]("cancel") + "") && Ke(n, r);
|
|
4417
4417
|
},
|
|
4418
4418
|
d(s) {
|
|
4419
|
-
s &&
|
|
4419
|
+
s && Z(t), i = !1, o();
|
|
4420
4420
|
}
|
|
4421
4421
|
};
|
|
4422
4422
|
}
|
|
4423
4423
|
function Ki(e) {
|
|
4424
|
-
let t, r, n, i, o, s, a, l, u, h, c
|
|
4424
|
+
let t, r, n, i, o, s, a, l, u, h, c = (
|
|
4425
4425
|
/*$_*/
|
|
4426
4426
|
e[4]("confirm") + ""
|
|
4427
|
-
), m,
|
|
4428
|
-
const
|
|
4427
|
+
), f, m, v, d;
|
|
4428
|
+
const S = (
|
|
4429
4429
|
/*#slots*/
|
|
4430
4430
|
e[16].close
|
|
4431
|
-
),
|
|
4432
|
-
|
|
4431
|
+
), P = vr(
|
|
4432
|
+
S,
|
|
4433
4433
|
e,
|
|
4434
4434
|
/*$$scope*/
|
|
4435
4435
|
e[15],
|
|
4436
|
-
|
|
4437
|
-
),
|
|
4436
|
+
Bt
|
|
4437
|
+
), H = P || qi();
|
|
4438
4438
|
let _ = (
|
|
4439
4439
|
/*modaltitle*/
|
|
4440
4440
|
e[1] && Ct(e)
|
|
@@ -4444,16 +4444,14 @@ function Ki(e) {
|
|
|
4444
4444
|
);
|
|
4445
4445
|
return {
|
|
4446
4446
|
c() {
|
|
4447
|
-
t =
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
), l = ue(), u = N("div"), x && x.c(), h = ue(), c = N("button"), m = te(f), H(n, "class", "ModalCloseBtn"), H(n, "role", "button"), H(s, "class", "GeneralConfirmationContent"), H(c, "class", "GeneralConfirmButton"), H(u, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4451
|
-
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), H(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4452
|
-
(e[5] ? "GeneralConfirmationContainerMobile" : "")), H(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4447
|
+
t = I("div"), r = I("div"), n = I("span"), H && H.c(), i = ae(), _ && _.c(), o = ae(), s = I("div"), a = ae(), l = I("div"), x && x.c(), u = ae(), h = I("button"), f = ve(c), T(n, "class", "ModalCloseBtn"), T(n, "role", "button"), T(s, "class", "GeneralConfirmationContent"), T(h, "class", "GeneralConfirmButton"), T(l, "class", "GeneralConfirmationControlArea " + /*isMobile*/
|
|
4448
|
+
(e[5] ? "GeneralConfirmationControlAreaMobile" : "")), T(r, "class", "GeneralConfirmationContainer " + /*isMobile*/
|
|
4449
|
+
(e[5] ? "GeneralConfirmationContainerMobile" : "")), T(t, "class", "GeneralConfirmationWrapper " + /*isMobile*/
|
|
4453
4450
|
(e[5] ? "GeneralConfirmationMobileWrapper" : ""));
|
|
4454
4451
|
},
|
|
4455
|
-
m(y,
|
|
4456
|
-
|
|
4452
|
+
m(y, A) {
|
|
4453
|
+
ne(y, t, A), B(t, r), B(r, n), H && H.m(n, null), B(r, i), _ && _.m(r, null), B(r, o), B(r, s), s.innerHTML = /*modaltext*/
|
|
4454
|
+
e[0], B(r, a), B(r, l), x && x.m(l, null), B(l, u), B(l, h), B(h, f), e[19](t), m = !0, v || (d = [
|
|
4457
4455
|
Me(
|
|
4458
4456
|
n,
|
|
4459
4457
|
"click",
|
|
@@ -4461,113 +4459,110 @@ function Ki(e) {
|
|
|
4461
4459
|
e[6]
|
|
4462
4460
|
),
|
|
4463
4461
|
Me(
|
|
4464
|
-
|
|
4462
|
+
h,
|
|
4465
4463
|
"click",
|
|
4466
4464
|
/*click_handler_1*/
|
|
4467
4465
|
e[18]
|
|
4468
4466
|
)
|
|
4469
|
-
],
|
|
4467
|
+
], v = !0);
|
|
4470
4468
|
},
|
|
4471
|
-
p(y, [
|
|
4472
|
-
|
|
4469
|
+
p(y, [A]) {
|
|
4470
|
+
P && P.p && (!m || A & /*$$scope*/
|
|
4473
4471
|
32768) && _r(
|
|
4474
|
-
|
|
4475
|
-
|
|
4472
|
+
P,
|
|
4473
|
+
S,
|
|
4476
4474
|
y,
|
|
4477
4475
|
/*$$scope*/
|
|
4478
4476
|
y[15],
|
|
4479
|
-
|
|
4480
|
-
|
|
4477
|
+
m ? yr(
|
|
4478
|
+
S,
|
|
4481
4479
|
/*$$scope*/
|
|
4482
4480
|
y[15],
|
|
4483
|
-
|
|
4481
|
+
A,
|
|
4484
4482
|
Yi
|
|
4485
4483
|
) : xr(
|
|
4486
4484
|
/*$$scope*/
|
|
4487
4485
|
y[15]
|
|
4488
4486
|
),
|
|
4489
|
-
|
|
4487
|
+
Bt
|
|
4490
4488
|
), /*modaltitle*/
|
|
4491
|
-
y[1] ? _ ? _.p(y,
|
|
4492
|
-
1) &&
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
),
|
|
4497
|
-
y[2] ? x ? x.p(y, P) : (x = Pt(y), x.c(), x.m(u, h)) : x && (x.d(1), x = null), (!p || P & /*$_*/
|
|
4498
|
-
16) && f !== (f = /*$_*/
|
|
4499
|
-
y[4]("confirm") + "") && be(m, f);
|
|
4489
|
+
y[1] ? _ ? _.p(y, A) : (_ = Ct(y), _.c(), _.m(r, o)) : _ && (_.d(1), _ = null), (!m || A & /*modaltext*/
|
|
4490
|
+
1) && (s.innerHTML = /*modaltext*/
|
|
4491
|
+
y[0]), /*hascancelbutton*/
|
|
4492
|
+
y[2] ? x ? x.p(y, A) : (x = Pt(y), x.c(), x.m(l, u)) : x && (x.d(1), x = null), (!m || A & /*$_*/
|
|
4493
|
+
16) && c !== (c = /*$_*/
|
|
4494
|
+
y[4]("confirm") + "") && Ke(f, c);
|
|
4500
4495
|
},
|
|
4501
4496
|
i(y) {
|
|
4502
|
-
|
|
4497
|
+
m || (Lt(H, y), m = !0);
|
|
4503
4498
|
},
|
|
4504
4499
|
o(y) {
|
|
4505
|
-
|
|
4500
|
+
Nr(H, y), m = !1;
|
|
4506
4501
|
},
|
|
4507
4502
|
d(y) {
|
|
4508
|
-
y &&
|
|
4503
|
+
y && Z(t), H && H.d(y), _ && _.d(), x && x.d(), e[19](null), v = !1, z(d);
|
|
4509
4504
|
}
|
|
4510
4505
|
};
|
|
4511
4506
|
}
|
|
4512
4507
|
function eo(e, t, r) {
|
|
4513
4508
|
let n;
|
|
4514
|
-
gr(e, Vi, (
|
|
4515
|
-
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl:
|
|
4516
|
-
const
|
|
4509
|
+
gr(e, Vi, (b) => r(4, n = b));
|
|
4510
|
+
let { $$slots: i = {}, $$scope: o } = t, { modaltext: s = "Are you sure that you want to perform this action?" } = t, { modaltitle: a = "" } = t, { hascancelbutton: l = !1 } = t, { modalconfirmevent: u = {} } = t, { modalcancelevent: h = {} } = t, { lang: c = "en" } = t, { clientstyling: f = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: v = "" } = t, { mbsource: d } = t, S, P = window.navigator.userAgent, H = Xi(P) !== "PC";
|
|
4511
|
+
const _ = () => {
|
|
4517
4512
|
window.postMessage({ type: "ModalClosed" }, window.location.href);
|
|
4518
|
-
},
|
|
4519
|
-
|
|
4520
|
-
},
|
|
4521
|
-
fetch(
|
|
4522
|
-
Object.keys(
|
|
4523
|
-
Ht(rt,
|
|
4513
|
+
}, x = (b) => {
|
|
4514
|
+
b === "confirm" && u && window.postMessage(u, window.location.href), b === "cancel" && h && window.postMessage(h, window.location.href), _();
|
|
4515
|
+
}, y = () => {
|
|
4516
|
+
fetch(v).then((G) => G.json()).then((G) => {
|
|
4517
|
+
Object.keys(G).forEach((rt) => {
|
|
4518
|
+
Ht(rt, G[rt]);
|
|
4524
4519
|
});
|
|
4525
|
-
}).catch((
|
|
4526
|
-
console.log(
|
|
4520
|
+
}).catch((G) => {
|
|
4521
|
+
console.log(G);
|
|
4527
4522
|
});
|
|
4528
4523
|
};
|
|
4529
|
-
Object.keys(
|
|
4530
|
-
Ht(
|
|
4524
|
+
Object.keys(At).forEach((b) => {
|
|
4525
|
+
Ht(b, At[b]);
|
|
4531
4526
|
});
|
|
4532
|
-
const
|
|
4527
|
+
const A = () => {
|
|
4533
4528
|
Wi(c);
|
|
4534
4529
|
};
|
|
4535
|
-
|
|
4530
|
+
Br(() => () => {
|
|
4536
4531
|
});
|
|
4537
|
-
const
|
|
4538
|
-
function pr(
|
|
4539
|
-
|
|
4540
|
-
S =
|
|
4532
|
+
const se = () => x("cancel"), mr = () => x("confirm");
|
|
4533
|
+
function pr(b) {
|
|
4534
|
+
Ne[b ? "unshift" : "push"](() => {
|
|
4535
|
+
S = b, r(3, S);
|
|
4541
4536
|
});
|
|
4542
4537
|
}
|
|
4543
|
-
return e.$$set = (
|
|
4544
|
-
"modaltext" in
|
|
4538
|
+
return e.$$set = (b) => {
|
|
4539
|
+
"modaltext" in b && r(0, s = b.modaltext), "modaltitle" in b && r(1, a = b.modaltitle), "hascancelbutton" in b && r(2, l = b.hascancelbutton), "modalconfirmevent" in b && r(8, u = b.modalconfirmevent), "modalcancelevent" in b && r(9, h = b.modalcancelevent), "lang" in b && r(10, c = b.lang), "clientstyling" in b && r(11, f = b.clientstyling), "clientstylingurl" in b && r(12, m = b.clientstylingurl), "translationurl" in b && r(13, v = b.translationurl), "mbsource" in b && r(14, d = b.mbsource), "$$scope" in b && r(15, o = b.$$scope);
|
|
4545
4540
|
}, e.$$.update = () => {
|
|
4546
4541
|
e.$$.dirty & /*modaltext, lang*/
|
|
4547
|
-
1025 && s && c &&
|
|
4542
|
+
1025 && s && c && A(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4548
4543
|
2056 && f && S && zi(S, f), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4549
4544
|
4104 && m && S && Zi(S, m), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4550
4545
|
16392 && d && S && Qi(S, `${d}.Style`), e.$$.dirty & /*translationurl*/
|
|
4551
|
-
8192 &&
|
|
4546
|
+
8192 && v && y();
|
|
4552
4547
|
}, [
|
|
4553
4548
|
s,
|
|
4554
4549
|
a,
|
|
4555
4550
|
l,
|
|
4556
4551
|
S,
|
|
4557
4552
|
n,
|
|
4558
|
-
|
|
4559
|
-
w,
|
|
4553
|
+
H,
|
|
4560
4554
|
_,
|
|
4555
|
+
x,
|
|
4561
4556
|
u,
|
|
4562
4557
|
h,
|
|
4563
4558
|
c,
|
|
4564
4559
|
f,
|
|
4565
4560
|
m,
|
|
4566
|
-
|
|
4561
|
+
v,
|
|
4567
4562
|
d,
|
|
4568
4563
|
o,
|
|
4569
4564
|
i,
|
|
4570
|
-
|
|
4565
|
+
se,
|
|
4571
4566
|
mr,
|
|
4572
4567
|
pr
|
|
4573
4568
|
];
|