@everymatrix/player-withdrawal 1.60.0 → 1.60.2
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/{PlayerWithdrawal-W0w-cUiE.js → PlayerWithdrawal-BI2Xx4I8.js} +486 -508
- package/components/PlayerWithdrawal-CC2bBXB3.cjs +18 -0
- package/components/{PlayerWithdrawal-tMssUcxd.js → PlayerWithdrawal-ykyAHx6h.js} +499 -521
- package/es2015/player-withdrawal.cjs +1 -1
- package/es2015/player-withdrawal.js +1 -1
- package/esnext/player-withdrawal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerWithdrawal-CJJuuEnU.cjs +0 -18
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function wt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Ye() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function se(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(wt);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ze(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function St(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let le;
|
|
19
|
-
function
|
|
19
|
+
function Ke(e, t) {
|
|
20
20
|
return e === t ? !0 : (le || (le = document.createElement("a")), le.href = t, e === le.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function sr(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Tt(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function Pt(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function ar(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Tt(t, r));
|
|
36
36
|
}
|
|
37
37
|
function x(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function ur(e, t, r) {
|
|
41
|
+
const n = hr(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
43
|
const i = I("style");
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
44
|
+
i.id = t, i.textContent = r, lr(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function hr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function pr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function lr(e, t) {
|
|
58
58
|
return x(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -76,23 +76,23 @@ function G(e) {
|
|
|
76
76
|
function re(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Ie() {
|
|
80
80
|
return re(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function cr(e, t, r, n) {
|
|
83
83
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
84
84
|
}
|
|
85
85
|
function E(e, t, r) {
|
|
86
86
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function fr(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Qe(e, t) {
|
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
93
93
|
t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function pr(e) {
|
|
96
96
|
const t = {};
|
|
97
97
|
return e.childNodes.forEach(
|
|
98
98
|
/** @param {Element} node */
|
|
@@ -105,22 +105,22 @@ let ne;
|
|
|
105
105
|
function te(e) {
|
|
106
106
|
ne = e;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function dr() {
|
|
109
109
|
if (!ne)
|
|
110
110
|
throw new Error("Function called outside component initialization");
|
|
111
111
|
return ne;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
113
|
+
function mr(e) {
|
|
114
|
+
dr().$$.on_mount.push(e);
|
|
115
115
|
}
|
|
116
|
-
const k = [],
|
|
116
|
+
const k = [], Ne = [];
|
|
117
117
|
let W = [];
|
|
118
|
-
const
|
|
119
|
-
let
|
|
120
|
-
function
|
|
121
|
-
|
|
118
|
+
const et = [], br = /* @__PURE__ */ Promise.resolve();
|
|
119
|
+
let Le = !1;
|
|
120
|
+
function gr() {
|
|
121
|
+
Le || (Le = !0, br.then(H));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Me(e) {
|
|
124
124
|
W.push(e);
|
|
125
125
|
}
|
|
126
126
|
const Se = /* @__PURE__ */ new Set();
|
|
@@ -133,53 +133,53 @@ function H() {
|
|
|
133
133
|
try {
|
|
134
134
|
for (; F < k.length; ) {
|
|
135
135
|
const t = k[F];
|
|
136
|
-
F++, te(t),
|
|
136
|
+
F++, te(t), yr(t.$$);
|
|
137
137
|
}
|
|
138
138
|
} catch (t) {
|
|
139
139
|
throw k.length = 0, F = 0, t;
|
|
140
140
|
}
|
|
141
|
-
for (te(null), k.length = 0, F = 0;
|
|
142
|
-
|
|
141
|
+
for (te(null), k.length = 0, F = 0; Ne.length; )
|
|
142
|
+
Ne.pop()();
|
|
143
143
|
for (let t = 0; t < W.length; t += 1) {
|
|
144
144
|
const r = W[t];
|
|
145
145
|
Se.has(r) || (Se.add(r), r());
|
|
146
146
|
}
|
|
147
147
|
W.length = 0;
|
|
148
148
|
} while (k.length);
|
|
149
|
-
for (;
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
for (; et.length; )
|
|
150
|
+
et.pop()();
|
|
151
|
+
Le = !1, Se.clear(), te(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function yr(e) {
|
|
154
154
|
if (e.fragment !== null) {
|
|
155
155
|
e.update(), se(e.before_update);
|
|
156
156
|
const t = e.dirty;
|
|
157
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
157
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Me);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function vr(e) {
|
|
161
161
|
const t = [], r = [];
|
|
162
162
|
W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
|
|
163
163
|
}
|
|
164
|
-
const
|
|
165
|
-
function
|
|
166
|
-
e && e.i && (
|
|
164
|
+
const _r = /* @__PURE__ */ new Set();
|
|
165
|
+
function Er(e, t) {
|
|
166
|
+
e && e.i && (_r.delete(e), e.i(t));
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function xr(e, t, r) {
|
|
169
169
|
const { fragment: n, after_update: i } = e.$$;
|
|
170
|
-
n && n.m(t, r),
|
|
171
|
-
const o = e.$$.on_mount.map(
|
|
170
|
+
n && n.m(t, r), Me(() => {
|
|
171
|
+
const o = e.$$.on_mount.map(wt).filter(Ze);
|
|
172
172
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : se(o), e.$$.on_mount = [];
|
|
173
|
-
}), i.forEach(
|
|
173
|
+
}), i.forEach(Me);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function wr(e, t) {
|
|
176
176
|
const r = e.$$;
|
|
177
|
-
r.fragment !== null && (
|
|
177
|
+
r.fragment !== null && (vr(r.after_update), se(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
e.$$.dirty[0] === -1 && (k.push(e),
|
|
179
|
+
function Sr(e, t) {
|
|
180
|
+
e.$$.dirty[0] === -1 && (k.push(e), gr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Tr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
183
183
|
const l = ne;
|
|
184
184
|
te(e);
|
|
185
185
|
const u = e.$$ = {
|
|
@@ -189,7 +189,7 @@ function Ar(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
189
189
|
props: o,
|
|
190
190
|
update: B,
|
|
191
191
|
not_equal: i,
|
|
192
|
-
bound:
|
|
192
|
+
bound: Ye(),
|
|
193
193
|
// lifecycle
|
|
194
194
|
on_mount: [],
|
|
195
195
|
on_destroy: [],
|
|
@@ -198,7 +198,7 @@ function Ar(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
198
198
|
after_update: [],
|
|
199
199
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
200
200
|
// everything else
|
|
201
|
-
callbacks:
|
|
201
|
+
callbacks: Ye(),
|
|
202
202
|
dirty: s,
|
|
203
203
|
skip_bound: !1,
|
|
204
204
|
root: t.target || l.$$.root
|
|
@@ -207,19 +207,19 @@ function Ar(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
207
207
|
let h = !1;
|
|
208
208
|
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
209
209
|
const m = p.length ? p[0] : f;
|
|
210
|
-
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), h &&
|
|
210
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = m) && (!u.skip_bound && u.bound[c] && u.bound[c](m), h && Sr(e, c)), f;
|
|
211
211
|
}) : [], u.update(), h = !0, se(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
212
212
|
if (t.hydrate) {
|
|
213
|
-
const c =
|
|
213
|
+
const c = fr(t.target);
|
|
214
214
|
u.fragment && u.fragment.l(c), c.forEach(J);
|
|
215
215
|
} else
|
|
216
216
|
u.fragment && u.fragment.c();
|
|
217
|
-
t.intro &&
|
|
217
|
+
t.intro && Er(e.$$.fragment), xr(e, t.target, t.anchor), H();
|
|
218
218
|
}
|
|
219
219
|
te(l);
|
|
220
220
|
}
|
|
221
|
-
let
|
|
222
|
-
typeof HTMLElement == "function" && (
|
|
221
|
+
let Ht;
|
|
222
|
+
typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
223
223
|
/** The Svelte component constructor */
|
|
224
224
|
$$ctor;
|
|
225
225
|
/** Slots */
|
|
@@ -278,7 +278,7 @@ typeof HTMLElement == "function" && (At = class extends HTMLElement {
|
|
|
278
278
|
};
|
|
279
279
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
280
280
|
return;
|
|
281
|
-
const t = {}, r =
|
|
281
|
+
const t = {}, r = pr(this);
|
|
282
282
|
for (const i of this.$$s)
|
|
283
283
|
i in r && (t[i] = [e(i)]);
|
|
284
284
|
for (const i of this.attributes) {
|
|
@@ -365,8 +365,8 @@ function pe(e, t, r, n) {
|
|
|
365
365
|
return t;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
let a = class extends
|
|
368
|
+
function Hr(e, t, r, n, i, o) {
|
|
369
|
+
let a = class extends Ht {
|
|
370
370
|
constructor() {
|
|
371
371
|
super(e, r, i), this.$$p_d = t;
|
|
372
372
|
}
|
|
@@ -394,7 +394,7 @@ function Or(e, t, r, n, i, o) {
|
|
|
394
394
|
}), e.element = /** @type {any} */
|
|
395
395
|
a, a;
|
|
396
396
|
}
|
|
397
|
-
class
|
|
397
|
+
class Br {
|
|
398
398
|
/**
|
|
399
399
|
* ### PRIVATE API
|
|
400
400
|
*
|
|
@@ -413,7 +413,7 @@ class Ir {
|
|
|
413
413
|
$$set = void 0;
|
|
414
414
|
/** @returns {void} */
|
|
415
415
|
$destroy() {
|
|
416
|
-
|
|
416
|
+
wr(this, 1), this.$destroy = B;
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
419
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -422,7 +422,7 @@ class Ir {
|
|
|
422
422
|
* @returns {() => void}
|
|
423
423
|
*/
|
|
424
424
|
$on(t, r) {
|
|
425
|
-
if (!
|
|
425
|
+
if (!Ze(r))
|
|
426
426
|
return B;
|
|
427
427
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
428
428
|
return n.push(r), () => {
|
|
@@ -435,18 +435,18 @@ class Ir {
|
|
|
435
435
|
* @returns {void}
|
|
436
436
|
*/
|
|
437
437
|
$set(t) {
|
|
438
|
-
this.$$set && !
|
|
438
|
+
this.$$set && !sr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
const
|
|
442
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
443
|
-
function
|
|
441
|
+
const Pr = "4";
|
|
442
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pr);
|
|
443
|
+
function Ar(e, t) {
|
|
444
444
|
if (e) {
|
|
445
445
|
const r = document.createElement("style");
|
|
446
446
|
r.innerHTML = t, e.appendChild(r);
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function Or(e, t) {
|
|
450
450
|
const r = new URL(t);
|
|
451
451
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
452
452
|
const i = document.createElement("style");
|
|
@@ -455,7 +455,7 @@ function Mr(e, t) {
|
|
|
455
455
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function Ir(e, t, r) {
|
|
459
459
|
if (window.emMessageBus) {
|
|
460
460
|
const n = document.createElement("style");
|
|
461
461
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -477,18 +477,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
477
477
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
478
478
|
PERFORMANCE OF THIS SOFTWARE.
|
|
479
479
|
***************************************************************************** */
|
|
480
|
-
var
|
|
481
|
-
return
|
|
480
|
+
var Ce = function(e, t) {
|
|
481
|
+
return Ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
482
482
|
r.__proto__ = n;
|
|
483
483
|
} || function(r, n) {
|
|
484
484
|
for (var i in n)
|
|
485
485
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
486
|
-
},
|
|
486
|
+
}, Ce(e, t);
|
|
487
487
|
};
|
|
488
488
|
function N(e, t) {
|
|
489
489
|
if (typeof t != "function" && t !== null)
|
|
490
490
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
491
|
-
|
|
491
|
+
Ce(e, t);
|
|
492
492
|
function r() {
|
|
493
493
|
this.constructor = e;
|
|
494
494
|
}
|
|
@@ -504,7 +504,7 @@ var v = function() {
|
|
|
504
504
|
return t;
|
|
505
505
|
}, v.apply(this, arguments);
|
|
506
506
|
};
|
|
507
|
-
function
|
|
507
|
+
function Nr(e, t) {
|
|
508
508
|
var r = {};
|
|
509
509
|
for (var n in e)
|
|
510
510
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -513,7 +513,7 @@ function Rr(e, t) {
|
|
|
513
513
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
514
514
|
return r;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Re(e) {
|
|
517
517
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
518
518
|
if (r)
|
|
519
519
|
return r.call(e);
|
|
@@ -525,7 +525,7 @@ function $e(e) {
|
|
|
525
525
|
};
|
|
526
526
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function $e(e, t) {
|
|
529
529
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
530
530
|
if (!r)
|
|
531
531
|
return e;
|
|
@@ -554,13 +554,13 @@ function V(e, t, r) {
|
|
|
554
554
|
function O(e) {
|
|
555
555
|
return typeof e == "function";
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Bt(e) {
|
|
558
558
|
var t = function(n) {
|
|
559
559
|
Error.call(n), n.stack = new Error().stack;
|
|
560
560
|
}, r = e(t);
|
|
561
561
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
562
562
|
}
|
|
563
|
-
var Te =
|
|
563
|
+
var Te = Bt(function(e) {
|
|
564
564
|
return function(r) {
|
|
565
565
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
566
566
|
` + r.map(function(n, i) {
|
|
@@ -569,7 +569,7 @@ var Te = Ot(function(e) {
|
|
|
569
569
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
570
570
|
};
|
|
571
571
|
});
|
|
572
|
-
function
|
|
572
|
+
function Ue(e, t) {
|
|
573
573
|
if (e) {
|
|
574
574
|
var r = e.indexOf(t);
|
|
575
575
|
0 <= r && e.splice(r, 1);
|
|
@@ -587,7 +587,7 @@ var ve = function() {
|
|
|
587
587
|
if (a)
|
|
588
588
|
if (this._parentage = null, Array.isArray(a))
|
|
589
589
|
try {
|
|
590
|
-
for (var s =
|
|
590
|
+
for (var s = Re(a), l = s.next(); !l.done; l = s.next()) {
|
|
591
591
|
var u = l.value;
|
|
592
592
|
u.remove(this);
|
|
593
593
|
}
|
|
@@ -614,12 +614,12 @@ var ve = function() {
|
|
|
614
614
|
if (c) {
|
|
615
615
|
this._finalizers = null;
|
|
616
616
|
try {
|
|
617
|
-
for (var f =
|
|
617
|
+
for (var f = Re(c), p = f.next(); !p.done; p = f.next()) {
|
|
618
618
|
var m = p.value;
|
|
619
619
|
try {
|
|
620
|
-
|
|
620
|
+
tt(m);
|
|
621
621
|
} catch (g) {
|
|
622
|
-
o = o ?? [], g instanceof Te ? o = V(V([],
|
|
622
|
+
o = o ?? [], g instanceof Te ? o = V(V([], $e(o)), $e(g.errors)) : o.push(g);
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
} catch (g) {
|
|
@@ -640,7 +640,7 @@ var ve = function() {
|
|
|
640
640
|
var r;
|
|
641
641
|
if (t && t !== this)
|
|
642
642
|
if (this.closed)
|
|
643
|
-
|
|
643
|
+
tt(t);
|
|
644
644
|
else {
|
|
645
645
|
if (t instanceof e) {
|
|
646
646
|
if (t.closed || t._hasParent(this))
|
|
@@ -657,56 +657,52 @@ var ve = function() {
|
|
|
657
657
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
658
658
|
}, e.prototype._removeParent = function(t) {
|
|
659
659
|
var r = this._parentage;
|
|
660
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
660
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
661
661
|
}, e.prototype.remove = function(t) {
|
|
662
662
|
var r = this._finalizers;
|
|
663
|
-
r &&
|
|
663
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
664
664
|
}, e.EMPTY = function() {
|
|
665
665
|
var t = new e();
|
|
666
666
|
return t.closed = !0, t;
|
|
667
667
|
}(), e;
|
|
668
|
-
}(),
|
|
669
|
-
function
|
|
668
|
+
}(), Pt = ve.EMPTY;
|
|
669
|
+
function At(e) {
|
|
670
670
|
return e instanceof ve || e && "closed" in e && O(e.remove) && O(e.add) && O(e.unsubscribe);
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function tt(e) {
|
|
673
673
|
O(e) ? e() : e.unsubscribe();
|
|
674
674
|
}
|
|
675
|
-
var
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
Promise: void 0,
|
|
679
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
680
|
-
useDeprecatedNextContext: !1
|
|
681
|
-
}, $r = {
|
|
675
|
+
var Lr = {
|
|
676
|
+
Promise: void 0
|
|
677
|
+
}, Mr = {
|
|
682
678
|
setTimeout: function(e, t) {
|
|
683
679
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
684
680
|
r[n - 2] = arguments[n];
|
|
685
|
-
return setTimeout.apply(void 0, V([e, t],
|
|
681
|
+
return setTimeout.apply(void 0, V([e, t], $e(r)));
|
|
686
682
|
},
|
|
687
683
|
clearTimeout: function(e) {
|
|
688
684
|
return clearTimeout(e);
|
|
689
685
|
},
|
|
690
686
|
delegate: void 0
|
|
691
687
|
};
|
|
692
|
-
function
|
|
693
|
-
|
|
688
|
+
function Cr(e) {
|
|
689
|
+
Mr.setTimeout(function() {
|
|
694
690
|
throw e;
|
|
695
691
|
});
|
|
696
692
|
}
|
|
697
|
-
function
|
|
693
|
+
function rt() {
|
|
698
694
|
}
|
|
699
695
|
function de(e) {
|
|
700
696
|
e();
|
|
701
697
|
}
|
|
702
|
-
var
|
|
698
|
+
var Ot = function(e) {
|
|
703
699
|
N(t, e);
|
|
704
700
|
function t(r) {
|
|
705
701
|
var n = e.call(this) || this;
|
|
706
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
702
|
+
return n.isStopped = !1, r ? (n.destination = r, At(r) && r.add(n)) : n.destination = Ur, n;
|
|
707
703
|
}
|
|
708
704
|
return t.create = function(r, n, i) {
|
|
709
|
-
return new
|
|
705
|
+
return new De(r, n, i);
|
|
710
706
|
}, t.prototype.next = function(r) {
|
|
711
707
|
this.isStopped || this._next(r);
|
|
712
708
|
}, t.prototype.error = function(r) {
|
|
@@ -730,11 +726,7 @@ var Mt = function(e) {
|
|
|
730
726
|
this.unsubscribe();
|
|
731
727
|
}
|
|
732
728
|
}, t;
|
|
733
|
-
}(ve),
|
|
734
|
-
function He(e, t) {
|
|
735
|
-
return Dr.call(e, t);
|
|
736
|
-
}
|
|
737
|
-
var Gr = function() {
|
|
729
|
+
}(ve), Rr = function() {
|
|
738
730
|
function e(t) {
|
|
739
731
|
this.partialObserver = t;
|
|
740
732
|
}
|
|
@@ -765,55 +757,43 @@ var Gr = function() {
|
|
|
765
757
|
ce(r);
|
|
766
758
|
}
|
|
767
759
|
}, e;
|
|
768
|
-
}(),
|
|
760
|
+
}(), De = function(e) {
|
|
769
761
|
N(t, e);
|
|
770
762
|
function t(r, n, i) {
|
|
771
763
|
var o = e.call(this) || this, a;
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
};
|
|
778
|
-
else {
|
|
779
|
-
var s;
|
|
780
|
-
o && Lt.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
|
|
781
|
-
return o.unsubscribe();
|
|
782
|
-
}, a = {
|
|
783
|
-
next: r.next && He(r.next, s),
|
|
784
|
-
error: r.error && He(r.error, s),
|
|
785
|
-
complete: r.complete && He(r.complete, s)
|
|
786
|
-
}) : a = r;
|
|
787
|
-
}
|
|
788
|
-
return o.destination = new Gr(a), o;
|
|
764
|
+
return O(r) || !r ? a = {
|
|
765
|
+
next: r ?? void 0,
|
|
766
|
+
error: n ?? void 0,
|
|
767
|
+
complete: i ?? void 0
|
|
768
|
+
} : a = r, o.destination = new Rr(a), o;
|
|
789
769
|
}
|
|
790
770
|
return t;
|
|
791
|
-
}(
|
|
771
|
+
}(Ot);
|
|
792
772
|
function ce(e) {
|
|
793
|
-
|
|
773
|
+
Cr(e);
|
|
794
774
|
}
|
|
795
|
-
function
|
|
775
|
+
function $r(e) {
|
|
796
776
|
throw e;
|
|
797
777
|
}
|
|
798
|
-
var
|
|
778
|
+
var Ur = {
|
|
799
779
|
closed: !0,
|
|
800
|
-
next:
|
|
801
|
-
error:
|
|
802
|
-
complete:
|
|
803
|
-
},
|
|
780
|
+
next: rt,
|
|
781
|
+
error: $r,
|
|
782
|
+
complete: rt
|
|
783
|
+
}, Dr = function() {
|
|
804
784
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
805
785
|
}();
|
|
806
|
-
function
|
|
786
|
+
function Gr(e) {
|
|
807
787
|
return e;
|
|
808
788
|
}
|
|
809
|
-
function
|
|
810
|
-
return e.length === 0 ?
|
|
789
|
+
function Fr(e) {
|
|
790
|
+
return e.length === 0 ? Gr : e.length === 1 ? e[0] : function(r) {
|
|
811
791
|
return e.reduce(function(n, i) {
|
|
812
792
|
return i(n);
|
|
813
793
|
}, r);
|
|
814
794
|
};
|
|
815
795
|
}
|
|
816
|
-
var
|
|
796
|
+
var nt = function() {
|
|
817
797
|
function e(t) {
|
|
818
798
|
t && (this._subscribe = t);
|
|
819
799
|
}
|
|
@@ -821,7 +801,7 @@ var st = function() {
|
|
|
821
801
|
var r = new e();
|
|
822
802
|
return r.source = this, r.operator = t, r;
|
|
823
803
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
824
|
-
var i = this, o =
|
|
804
|
+
var i = this, o = kr(t) ? t : new De(t, r, n);
|
|
825
805
|
return de(function() {
|
|
826
806
|
var a = i, s = a.operator, l = a.source;
|
|
827
807
|
o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -834,8 +814,8 @@ var st = function() {
|
|
|
834
814
|
}
|
|
835
815
|
}, e.prototype.forEach = function(t, r) {
|
|
836
816
|
var n = this;
|
|
837
|
-
return r =
|
|
838
|
-
var a = new
|
|
817
|
+
return r = it(r), new r(function(i, o) {
|
|
818
|
+
var a = new De({
|
|
839
819
|
next: function(s) {
|
|
840
820
|
try {
|
|
841
821
|
t(s);
|
|
@@ -851,15 +831,15 @@ var st = function() {
|
|
|
851
831
|
}, e.prototype._subscribe = function(t) {
|
|
852
832
|
var r;
|
|
853
833
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
854
|
-
}, e.prototype[
|
|
834
|
+
}, e.prototype[Dr] = function() {
|
|
855
835
|
return this;
|
|
856
836
|
}, e.prototype.pipe = function() {
|
|
857
837
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
858
838
|
t[r] = arguments[r];
|
|
859
|
-
return
|
|
839
|
+
return Fr(t)(this);
|
|
860
840
|
}, e.prototype.toPromise = function(t) {
|
|
861
841
|
var r = this;
|
|
862
|
-
return t =
|
|
842
|
+
return t = it(t), new t(function(n, i) {
|
|
863
843
|
var o;
|
|
864
844
|
r.subscribe(function(a) {
|
|
865
845
|
return o = a;
|
|
@@ -873,32 +853,32 @@ var st = function() {
|
|
|
873
853
|
return new e(t);
|
|
874
854
|
}, e;
|
|
875
855
|
}();
|
|
876
|
-
function
|
|
856
|
+
function it(e) {
|
|
877
857
|
var t;
|
|
878
|
-
return (t = e ??
|
|
858
|
+
return (t = e ?? Lr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
879
859
|
}
|
|
880
|
-
function
|
|
860
|
+
function jr(e) {
|
|
881
861
|
return e && O(e.next) && O(e.error) && O(e.complete);
|
|
882
862
|
}
|
|
883
|
-
function
|
|
884
|
-
return e && e instanceof
|
|
863
|
+
function kr(e) {
|
|
864
|
+
return e && e instanceof Ot || jr(e) && At(e);
|
|
885
865
|
}
|
|
886
|
-
var
|
|
866
|
+
var Wr = Bt(function(e) {
|
|
887
867
|
return function() {
|
|
888
868
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
889
869
|
};
|
|
890
|
-
}),
|
|
870
|
+
}), It = function(e) {
|
|
891
871
|
N(t, e);
|
|
892
872
|
function t() {
|
|
893
873
|
var r = e.call(this) || this;
|
|
894
874
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
895
875
|
}
|
|
896
876
|
return t.prototype.lift = function(r) {
|
|
897
|
-
var n = new
|
|
877
|
+
var n = new ot(this, this);
|
|
898
878
|
return n.operator = r, n;
|
|
899
879
|
}, t.prototype._throwIfClosed = function() {
|
|
900
880
|
if (this.closed)
|
|
901
|
-
throw new
|
|
881
|
+
throw new Wr();
|
|
902
882
|
}, t.prototype.next = function(r) {
|
|
903
883
|
var n = this;
|
|
904
884
|
de(function() {
|
|
@@ -906,7 +886,7 @@ var Zr = Ot(function(e) {
|
|
|
906
886
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
907
887
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
908
888
|
try {
|
|
909
|
-
for (var a =
|
|
889
|
+
for (var a = Re(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
|
|
910
890
|
var l = s.value;
|
|
911
891
|
l.next(r);
|
|
912
892
|
}
|
|
@@ -955,19 +935,19 @@ var Zr = Ot(function(e) {
|
|
|
955
935
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
956
936
|
}, t.prototype._innerSubscribe = function(r) {
|
|
957
937
|
var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
|
|
958
|
-
return o || a ?
|
|
959
|
-
n.currentObservers = null,
|
|
938
|
+
return o || a ? Pt : (this.currentObservers = null, s.push(r), new ve(function() {
|
|
939
|
+
n.currentObservers = null, Ue(s, r);
|
|
960
940
|
}));
|
|
961
941
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
962
942
|
var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
|
|
963
943
|
i ? r.error(o) : a && r.complete();
|
|
964
944
|
}, t.prototype.asObservable = function() {
|
|
965
|
-
var r = new
|
|
945
|
+
var r = new nt();
|
|
966
946
|
return r.source = this, r;
|
|
967
947
|
}, t.create = function(r, n) {
|
|
968
|
-
return new
|
|
948
|
+
return new ot(r, n);
|
|
969
949
|
}, t;
|
|
970
|
-
}(
|
|
950
|
+
}(nt), ot = function(e) {
|
|
971
951
|
N(t, e);
|
|
972
952
|
function t(r, n) {
|
|
973
953
|
var i = e.call(this) || this;
|
|
@@ -984,17 +964,17 @@ var Zr = Ot(function(e) {
|
|
|
984
964
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
985
965
|
}, t.prototype._subscribe = function(r) {
|
|
986
966
|
var n, i;
|
|
987
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
967
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Pt;
|
|
988
968
|
}, t;
|
|
989
|
-
}(
|
|
969
|
+
}(It), Nt = {
|
|
990
970
|
now: function() {
|
|
991
|
-
return (
|
|
971
|
+
return (Nt.delegate || Date).now();
|
|
992
972
|
},
|
|
993
973
|
delegate: void 0
|
|
994
|
-
},
|
|
974
|
+
}, Vr = function(e) {
|
|
995
975
|
N(t, e);
|
|
996
976
|
function t(r, n, i) {
|
|
997
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
977
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Nt);
|
|
998
978
|
var o = e.call(this) || this;
|
|
999
979
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
1000
980
|
}
|
|
@@ -1014,15 +994,15 @@ var Zr = Ot(function(e) {
|
|
|
1014
994
|
u && o.splice(0, u + 1);
|
|
1015
995
|
}
|
|
1016
996
|
}, t;
|
|
1017
|
-
}(
|
|
1018
|
-
const
|
|
1019
|
-
if (
|
|
1020
|
-
const r = new
|
|
1021
|
-
|
|
997
|
+
}(It);
|
|
998
|
+
const st = [], at = {}, Xr = (e, t = 0) => {
|
|
999
|
+
if (st.indexOf(e) == -1) {
|
|
1000
|
+
const r = new Vr(t);
|
|
1001
|
+
at[e] = r, st.push(e);
|
|
1022
1002
|
}
|
|
1023
|
-
return
|
|
1003
|
+
return at[e];
|
|
1024
1004
|
}, j = [];
|
|
1025
|
-
function
|
|
1005
|
+
function zr(e, t) {
|
|
1026
1006
|
return {
|
|
1027
1007
|
subscribe: _e(e, t).subscribe
|
|
1028
1008
|
};
|
|
@@ -1031,7 +1011,7 @@ function _e(e, t = B) {
|
|
|
1031
1011
|
let r;
|
|
1032
1012
|
const n = /* @__PURE__ */ new Set();
|
|
1033
1013
|
function i(s) {
|
|
1034
|
-
if (
|
|
1014
|
+
if (St(e, s) && (e = s, r)) {
|
|
1035
1015
|
const l = !j.length;
|
|
1036
1016
|
for (const u of n)
|
|
1037
1017
|
u[1](), j.push(u, e);
|
|
@@ -1058,7 +1038,7 @@ function q(e, t, r) {
|
|
|
1058
1038
|
if (!i.every(Boolean))
|
|
1059
1039
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1060
1040
|
const o = t.length < 2;
|
|
1061
|
-
return
|
|
1041
|
+
return zr(r, (a, s) => {
|
|
1062
1042
|
let l = !1;
|
|
1063
1043
|
const u = [];
|
|
1064
1044
|
let h = 0, c = B;
|
|
@@ -1067,9 +1047,9 @@ function q(e, t, r) {
|
|
|
1067
1047
|
return;
|
|
1068
1048
|
c();
|
|
1069
1049
|
const m = t(n ? u[0] : u, a, s);
|
|
1070
|
-
o ? a(m) : c =
|
|
1050
|
+
o ? a(m) : c = Ze(m) ? m : B;
|
|
1071
1051
|
}, p = i.map(
|
|
1072
|
-
(m, g) =>
|
|
1052
|
+
(m, g) => Tt(
|
|
1073
1053
|
m,
|
|
1074
1054
|
(w) => {
|
|
1075
1055
|
u[g] = w, h &= ~(1 << g), l && f();
|
|
@@ -1084,70 +1064,70 @@ function q(e, t, r) {
|
|
|
1084
1064
|
};
|
|
1085
1065
|
});
|
|
1086
1066
|
}
|
|
1087
|
-
function
|
|
1067
|
+
function Zr(e) {
|
|
1088
1068
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1089
1069
|
}
|
|
1090
|
-
var
|
|
1091
|
-
return
|
|
1070
|
+
var Qr = function(t) {
|
|
1071
|
+
return Jr(t) && !qr(t);
|
|
1092
1072
|
};
|
|
1093
|
-
function
|
|
1073
|
+
function Jr(e) {
|
|
1094
1074
|
return !!e && typeof e == "object";
|
|
1095
1075
|
}
|
|
1096
|
-
function
|
|
1076
|
+
function qr(e) {
|
|
1097
1077
|
var t = Object.prototype.toString.call(e);
|
|
1098
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1078
|
+
return t === "[object RegExp]" || t === "[object Date]" || en(e);
|
|
1099
1079
|
}
|
|
1100
|
-
var
|
|
1101
|
-
function
|
|
1102
|
-
return e.$$typeof ===
|
|
1080
|
+
var Yr = typeof Symbol == "function" && Symbol.for, Kr = Yr ? Symbol.for("react.element") : 60103;
|
|
1081
|
+
function en(e) {
|
|
1082
|
+
return e.$$typeof === Kr;
|
|
1103
1083
|
}
|
|
1104
|
-
function
|
|
1084
|
+
function tn(e) {
|
|
1105
1085
|
return Array.isArray(e) ? [] : {};
|
|
1106
1086
|
}
|
|
1107
1087
|
function ie(e, t) {
|
|
1108
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? X(
|
|
1088
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? X(tn(e), e, t) : e;
|
|
1109
1089
|
}
|
|
1110
|
-
function
|
|
1090
|
+
function rn(e, t, r) {
|
|
1111
1091
|
return e.concat(t).map(function(n) {
|
|
1112
1092
|
return ie(n, r);
|
|
1113
1093
|
});
|
|
1114
1094
|
}
|
|
1115
|
-
function
|
|
1095
|
+
function nn(e, t) {
|
|
1116
1096
|
if (!t.customMerge)
|
|
1117
1097
|
return X;
|
|
1118
1098
|
var r = t.customMerge(e);
|
|
1119
1099
|
return typeof r == "function" ? r : X;
|
|
1120
1100
|
}
|
|
1121
|
-
function
|
|
1101
|
+
function on(e) {
|
|
1122
1102
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1123
1103
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1124
1104
|
}) : [];
|
|
1125
1105
|
}
|
|
1126
|
-
function
|
|
1127
|
-
return Object.keys(e).concat(
|
|
1106
|
+
function ut(e) {
|
|
1107
|
+
return Object.keys(e).concat(on(e));
|
|
1128
1108
|
}
|
|
1129
|
-
function
|
|
1109
|
+
function Lt(e, t) {
|
|
1130
1110
|
try {
|
|
1131
1111
|
return t in e;
|
|
1132
1112
|
} catch {
|
|
1133
1113
|
return !1;
|
|
1134
1114
|
}
|
|
1135
1115
|
}
|
|
1136
|
-
function
|
|
1137
|
-
return
|
|
1116
|
+
function sn(e, t) {
|
|
1117
|
+
return Lt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1138
1118
|
}
|
|
1139
|
-
function
|
|
1119
|
+
function an(e, t, r) {
|
|
1140
1120
|
var n = {};
|
|
1141
|
-
return r.isMergeableObject(e) &&
|
|
1121
|
+
return r.isMergeableObject(e) && ut(e).forEach(function(i) {
|
|
1142
1122
|
n[i] = ie(e[i], r);
|
|
1143
|
-
}),
|
|
1144
|
-
|
|
1123
|
+
}), ut(t).forEach(function(i) {
|
|
1124
|
+
sn(e, i) || (Lt(e, i) && r.isMergeableObject(t[i]) ? n[i] = nn(i, r)(e[i], t[i], r) : n[i] = ie(t[i], r));
|
|
1145
1125
|
}), n;
|
|
1146
1126
|
}
|
|
1147
1127
|
function X(e, t, r) {
|
|
1148
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1128
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || rn, r.isMergeableObject = r.isMergeableObject || Qr, r.cloneUnlessOtherwiseSpecified = ie;
|
|
1149
1129
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1150
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1130
|
+
return o ? n ? r.arrayMerge(e, t, r) : an(e, t, r) : ie(t, r);
|
|
1151
1131
|
}
|
|
1152
1132
|
X.all = function(t, r) {
|
|
1153
1133
|
if (!Array.isArray(t))
|
|
@@ -1156,58 +1136,56 @@ X.all = function(t, r) {
|
|
|
1156
1136
|
return X(n, i, r);
|
|
1157
1137
|
}, {});
|
|
1158
1138
|
};
|
|
1159
|
-
var
|
|
1160
|
-
const
|
|
1161
|
-
function
|
|
1162
|
-
var r = t && t.cache ? t.cache :
|
|
1139
|
+
var un = X, hn = un;
|
|
1140
|
+
const ln = /* @__PURE__ */ Zr(hn);
|
|
1141
|
+
function He(e, t) {
|
|
1142
|
+
var r = t && t.cache ? t.cache : gn, n = t && t.serializer ? t.serializer : mn, i = t && t.strategy ? t.strategy : pn;
|
|
1163
1143
|
return i(e, {
|
|
1164
1144
|
cache: r,
|
|
1165
1145
|
serializer: n
|
|
1166
1146
|
});
|
|
1167
1147
|
}
|
|
1168
|
-
function
|
|
1148
|
+
function cn(e) {
|
|
1169
1149
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1170
1150
|
}
|
|
1171
|
-
function
|
|
1172
|
-
var i =
|
|
1151
|
+
function fn(e, t, r, n) {
|
|
1152
|
+
var i = cn(n) ? n : r(n), o = t.get(i);
|
|
1173
1153
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1174
1154
|
}
|
|
1175
|
-
function
|
|
1155
|
+
function Mt(e, t, r) {
|
|
1176
1156
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1177
1157
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1178
1158
|
}
|
|
1179
|
-
function
|
|
1159
|
+
function Ct(e, t, r, n, i) {
|
|
1180
1160
|
return r.bind(t, e, n, i);
|
|
1181
1161
|
}
|
|
1182
|
-
function
|
|
1183
|
-
var r = e.length === 1 ?
|
|
1184
|
-
return
|
|
1162
|
+
function pn(e, t) {
|
|
1163
|
+
var r = e.length === 1 ? fn : Mt;
|
|
1164
|
+
return Ct(e, this, r, t.cache.create(), t.serializer);
|
|
1185
1165
|
}
|
|
1186
|
-
function
|
|
1187
|
-
return
|
|
1166
|
+
function dn(e, t) {
|
|
1167
|
+
return Ct(e, this, Mt, t.cache.create(), t.serializer);
|
|
1188
1168
|
}
|
|
1189
|
-
function
|
|
1190
|
-
return qe(e, this, Ut, t.cache.create(), t.serializer);
|
|
1191
|
-
}
|
|
1192
|
-
var vn = function() {
|
|
1169
|
+
var mn = function() {
|
|
1193
1170
|
return JSON.stringify(arguments);
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1171
|
+
}, bn = (
|
|
1172
|
+
/** @class */
|
|
1173
|
+
function() {
|
|
1174
|
+
function e() {
|
|
1175
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1176
|
+
}
|
|
1177
|
+
return e.prototype.get = function(t) {
|
|
1178
|
+
return this.cache[t];
|
|
1179
|
+
}, e.prototype.set = function(t, r) {
|
|
1180
|
+
this.cache[t] = r;
|
|
1181
|
+
}, e;
|
|
1182
|
+
}()
|
|
1183
|
+
), gn = {
|
|
1205
1184
|
create: function() {
|
|
1206
|
-
return new
|
|
1185
|
+
return new bn();
|
|
1207
1186
|
}
|
|
1208
|
-
},
|
|
1209
|
-
variadic:
|
|
1210
|
-
monadic: yn
|
|
1187
|
+
}, Be = {
|
|
1188
|
+
variadic: dn
|
|
1211
1189
|
}, b;
|
|
1212
1190
|
(function(e) {
|
|
1213
1191
|
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";
|
|
@@ -1220,43 +1198,43 @@ var z;
|
|
|
1220
1198
|
(function(e) {
|
|
1221
1199
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1222
1200
|
})(z || (z = {}));
|
|
1223
|
-
function
|
|
1201
|
+
function ht(e) {
|
|
1224
1202
|
return e.type === _.literal;
|
|
1225
1203
|
}
|
|
1226
|
-
function
|
|
1204
|
+
function yn(e) {
|
|
1227
1205
|
return e.type === _.argument;
|
|
1228
1206
|
}
|
|
1229
|
-
function
|
|
1207
|
+
function Rt(e) {
|
|
1230
1208
|
return e.type === _.number;
|
|
1231
1209
|
}
|
|
1232
|
-
function
|
|
1210
|
+
function $t(e) {
|
|
1233
1211
|
return e.type === _.date;
|
|
1234
1212
|
}
|
|
1235
|
-
function
|
|
1213
|
+
function Ut(e) {
|
|
1236
1214
|
return e.type === _.time;
|
|
1237
1215
|
}
|
|
1238
|
-
function
|
|
1216
|
+
function Dt(e) {
|
|
1239
1217
|
return e.type === _.select;
|
|
1240
1218
|
}
|
|
1241
|
-
function
|
|
1219
|
+
function Gt(e) {
|
|
1242
1220
|
return e.type === _.plural;
|
|
1243
1221
|
}
|
|
1244
|
-
function
|
|
1222
|
+
function vn(e) {
|
|
1245
1223
|
return e.type === _.pound;
|
|
1246
1224
|
}
|
|
1247
|
-
function
|
|
1225
|
+
function Ft(e) {
|
|
1248
1226
|
return e.type === _.tag;
|
|
1249
1227
|
}
|
|
1250
|
-
function
|
|
1228
|
+
function jt(e) {
|
|
1251
1229
|
return !!(e && typeof e == "object" && e.type === z.number);
|
|
1252
1230
|
}
|
|
1253
|
-
function
|
|
1231
|
+
function Ge(e) {
|
|
1254
1232
|
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
1255
1233
|
}
|
|
1256
|
-
var
|
|
1257
|
-
function
|
|
1234
|
+
var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, _n = /(?:[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;
|
|
1235
|
+
function En(e) {
|
|
1258
1236
|
var t = {};
|
|
1259
|
-
return e.replace(
|
|
1237
|
+
return e.replace(_n, function(r) {
|
|
1260
1238
|
var n = r.length;
|
|
1261
1239
|
switch (r[0]) {
|
|
1262
1240
|
case "G":
|
|
@@ -1345,11 +1323,11 @@ function Sn(e) {
|
|
|
1345
1323
|
return "";
|
|
1346
1324
|
}), t;
|
|
1347
1325
|
}
|
|
1348
|
-
var
|
|
1349
|
-
function
|
|
1326
|
+
var xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1327
|
+
function wn(e) {
|
|
1350
1328
|
if (e.length === 0)
|
|
1351
1329
|
throw new Error("Number skeleton cannot be empty");
|
|
1352
|
-
for (var t = e.split(
|
|
1330
|
+
for (var t = e.split(xn).filter(function(f) {
|
|
1353
1331
|
return f.length > 0;
|
|
1354
1332
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1355
1333
|
var o = i[n], a = o.split("/");
|
|
@@ -1364,17 +1342,17 @@ function Hn(e) {
|
|
|
1364
1342
|
}
|
|
1365
1343
|
return r;
|
|
1366
1344
|
}
|
|
1367
|
-
function
|
|
1345
|
+
function Sn(e) {
|
|
1368
1346
|
return e.replace(/^(.*?)-/, "");
|
|
1369
1347
|
}
|
|
1370
|
-
var
|
|
1371
|
-
function
|
|
1348
|
+
var lt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wt = /^(@+)?(\+|#+)?[rs]?$/g, Tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
|
|
1349
|
+
function ct(e) {
|
|
1372
1350
|
var t = {};
|
|
1373
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1351
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wt, function(r, n, i) {
|
|
1374
1352
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
1375
1353
|
}), t;
|
|
1376
1354
|
}
|
|
1377
|
-
function
|
|
1355
|
+
function Xt(e) {
|
|
1378
1356
|
switch (e) {
|
|
1379
1357
|
case "sign-auto":
|
|
1380
1358
|
return {
|
|
@@ -1414,7 +1392,7 @@ function Jt(e) {
|
|
|
1414
1392
|
};
|
|
1415
1393
|
}
|
|
1416
1394
|
}
|
|
1417
|
-
function
|
|
1395
|
+
function Hn(e) {
|
|
1418
1396
|
var t;
|
|
1419
1397
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1420
1398
|
notation: "engineering"
|
|
@@ -1422,17 +1400,17 @@ function An(e) {
|
|
|
1422
1400
|
notation: "scientific"
|
|
1423
1401
|
}, e = e.slice(1)), t) {
|
|
1424
1402
|
var r = e.slice(0, 2);
|
|
1425
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1403
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Vt.test(e))
|
|
1426
1404
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1427
1405
|
t.minimumIntegerDigits = e.length;
|
|
1428
1406
|
}
|
|
1429
1407
|
return t;
|
|
1430
1408
|
}
|
|
1431
|
-
function
|
|
1432
|
-
var t = {}, r =
|
|
1409
|
+
function ft(e) {
|
|
1410
|
+
var t = {}, r = Xt(e);
|
|
1433
1411
|
return r || t;
|
|
1434
1412
|
}
|
|
1435
|
-
function
|
|
1413
|
+
function Bn(e) {
|
|
1436
1414
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1437
1415
|
var i = n[r];
|
|
1438
1416
|
switch (i.stem) {
|
|
@@ -1456,7 +1434,7 @@ function On(e) {
|
|
|
1456
1434
|
continue;
|
|
1457
1435
|
case "measure-unit":
|
|
1458
1436
|
case "unit":
|
|
1459
|
-
t.style = "unit", t.unit =
|
|
1437
|
+
t.style = "unit", t.unit = Sn(i.options[0]);
|
|
1460
1438
|
continue;
|
|
1461
1439
|
case "compact-short":
|
|
1462
1440
|
case "K":
|
|
@@ -1468,12 +1446,12 @@ function On(e) {
|
|
|
1468
1446
|
continue;
|
|
1469
1447
|
case "scientific":
|
|
1470
1448
|
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1471
|
-
return v(v({}, l),
|
|
1449
|
+
return v(v({}, l), ft(u));
|
|
1472
1450
|
}, {}));
|
|
1473
1451
|
continue;
|
|
1474
1452
|
case "engineering":
|
|
1475
1453
|
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1476
|
-
return v(v({}, l),
|
|
1454
|
+
return v(v({}, l), ft(u));
|
|
1477
1455
|
}, {}));
|
|
1478
1456
|
continue;
|
|
1479
1457
|
case "notation-simple":
|
|
@@ -1518,7 +1496,7 @@ function On(e) {
|
|
|
1518
1496
|
case "integer-width":
|
|
1519
1497
|
if (i.options.length > 1)
|
|
1520
1498
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1521
|
-
i.options[0].replace(
|
|
1499
|
+
i.options[0].replace(Tn, function(l, u, h, c, f, p) {
|
|
1522
1500
|
if (u)
|
|
1523
1501
|
t.minimumIntegerDigits = h.length;
|
|
1524
1502
|
else {
|
|
@@ -1531,27 +1509,27 @@ function On(e) {
|
|
|
1531
1509
|
});
|
|
1532
1510
|
continue;
|
|
1533
1511
|
}
|
|
1534
|
-
if (
|
|
1512
|
+
if (Vt.test(i.stem)) {
|
|
1535
1513
|
t.minimumIntegerDigits = i.stem.length;
|
|
1536
1514
|
continue;
|
|
1537
1515
|
}
|
|
1538
|
-
if (
|
|
1516
|
+
if (lt.test(i.stem)) {
|
|
1539
1517
|
if (i.options.length > 1)
|
|
1540
1518
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1541
|
-
i.stem.replace(
|
|
1519
|
+
i.stem.replace(lt, function(l, u, h, c, f, p) {
|
|
1542
1520
|
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1543
1521
|
});
|
|
1544
1522
|
var o = i.options[0];
|
|
1545
|
-
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t),
|
|
1523
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), ct(o)));
|
|
1546
1524
|
continue;
|
|
1547
1525
|
}
|
|
1548
|
-
if (
|
|
1549
|
-
t = v(v({}, t),
|
|
1526
|
+
if (Wt.test(i.stem)) {
|
|
1527
|
+
t = v(v({}, t), ct(i.stem));
|
|
1550
1528
|
continue;
|
|
1551
1529
|
}
|
|
1552
|
-
var a =
|
|
1530
|
+
var a = Xt(i.stem);
|
|
1553
1531
|
a && (t = v(v({}, t), a));
|
|
1554
|
-
var s =
|
|
1532
|
+
var s = Hn(i.stem);
|
|
1555
1533
|
s && (t = v(v({}, t), s));
|
|
1556
1534
|
}
|
|
1557
1535
|
return t;
|
|
@@ -2971,13 +2949,13 @@ var fe = {
|
|
|
2971
2949
|
"h"
|
|
2972
2950
|
]
|
|
2973
2951
|
};
|
|
2974
|
-
function
|
|
2952
|
+
function Pn(e, t) {
|
|
2975
2953
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2976
2954
|
var i = e.charAt(n);
|
|
2977
2955
|
if (i === "j") {
|
|
2978
2956
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2979
2957
|
o++, n++;
|
|
2980
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2958
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = An(t);
|
|
2981
2959
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2982
2960
|
r += l;
|
|
2983
2961
|
for (; a-- > 0; )
|
|
@@ -2987,7 +2965,7 @@ function In(e, t) {
|
|
|
2987
2965
|
}
|
|
2988
2966
|
return r;
|
|
2989
2967
|
}
|
|
2990
|
-
function
|
|
2968
|
+
function An(e) {
|
|
2991
2969
|
var t = e.hourCycle;
|
|
2992
2970
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2993
2971
|
e.hourCycles && // @ts-ignore
|
|
@@ -3009,20 +2987,20 @@ function Nn(e) {
|
|
|
3009
2987
|
var i = fe[n || ""] || fe[r || ""] || fe["".concat(r, "-001")] || fe["001"];
|
|
3010
2988
|
return i[0];
|
|
3011
2989
|
}
|
|
3012
|
-
var
|
|
2990
|
+
var Pe, On = new RegExp("^".concat(kt.source, "*")), In = new RegExp("".concat(kt.source, "*$"));
|
|
3013
2991
|
function y(e, t) {
|
|
3014
2992
|
return { start: e, end: t };
|
|
3015
2993
|
}
|
|
3016
|
-
var
|
|
2994
|
+
var Nn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ln = !!String.fromCodePoint, Mn = !!Object.fromEntries, Cn = !!String.prototype.codePointAt, Rn = !!String.prototype.trimStart, $n = !!String.prototype.trimEnd, Un = !!Number.isSafeInteger, Dn = Un ? Number.isSafeInteger : function(e) {
|
|
3017
2995
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3018
|
-
},
|
|
2996
|
+
}, Fe = !0;
|
|
3019
2997
|
try {
|
|
3020
|
-
var
|
|
3021
|
-
|
|
2998
|
+
var Gn = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2999
|
+
Fe = ((Pe = Gn.exec("a")) === null || Pe === void 0 ? void 0 : Pe[0]) === "a";
|
|
3022
3000
|
} catch {
|
|
3023
|
-
|
|
3001
|
+
Fe = !1;
|
|
3024
3002
|
}
|
|
3025
|
-
var
|
|
3003
|
+
var pt = Nn ? (
|
|
3026
3004
|
// Native
|
|
3027
3005
|
function(t, r, n) {
|
|
3028
3006
|
return t.startsWith(r, n);
|
|
@@ -3032,7 +3010,7 @@ var bt = Cn ? (
|
|
|
3032
3010
|
function(t, r, n) {
|
|
3033
3011
|
return t.slice(n, n + r.length) === r;
|
|
3034
3012
|
}
|
|
3035
|
-
),
|
|
3013
|
+
), je = Ln ? String.fromCodePoint : (
|
|
3036
3014
|
// IE11
|
|
3037
3015
|
function() {
|
|
3038
3016
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3044,9 +3022,9 @@ var bt = Cn ? (
|
|
|
3044
3022
|
}
|
|
3045
3023
|
return n;
|
|
3046
3024
|
}
|
|
3047
|
-
),
|
|
3025
|
+
), dt = (
|
|
3048
3026
|
// native
|
|
3049
|
-
|
|
3027
|
+
Mn ? Object.fromEntries : (
|
|
3050
3028
|
// Ponyfill
|
|
3051
3029
|
function(t) {
|
|
3052
3030
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3056,7 +3034,7 @@ var bt = Cn ? (
|
|
|
3056
3034
|
return r;
|
|
3057
3035
|
}
|
|
3058
3036
|
)
|
|
3059
|
-
),
|
|
3037
|
+
), zt = Cn ? (
|
|
3060
3038
|
// Native
|
|
3061
3039
|
function(t, r) {
|
|
3062
3040
|
return t.codePointAt(r);
|
|
@@ -3070,7 +3048,7 @@ var bt = Cn ? (
|
|
|
3070
3048
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3071
3049
|
}
|
|
3072
3050
|
}
|
|
3073
|
-
),
|
|
3051
|
+
), Fn = Rn ? (
|
|
3074
3052
|
// Native
|
|
3075
3053
|
function(t) {
|
|
3076
3054
|
return t.trimStart();
|
|
@@ -3078,9 +3056,9 @@ var bt = Cn ? (
|
|
|
3078
3056
|
) : (
|
|
3079
3057
|
// Ponyfill
|
|
3080
3058
|
function(t) {
|
|
3081
|
-
return t.replace(
|
|
3059
|
+
return t.replace(On, "");
|
|
3082
3060
|
}
|
|
3083
|
-
),
|
|
3061
|
+
), jn = $n ? (
|
|
3084
3062
|
// Native
|
|
3085
3063
|
function(t) {
|
|
3086
3064
|
return t.trimEnd();
|
|
@@ -3088,32 +3066,32 @@ var bt = Cn ? (
|
|
|
3088
3066
|
) : (
|
|
3089
3067
|
// Ponyfill
|
|
3090
3068
|
function(t) {
|
|
3091
|
-
return t.replace(
|
|
3069
|
+
return t.replace(In, "");
|
|
3092
3070
|
}
|
|
3093
3071
|
);
|
|
3094
|
-
function
|
|
3072
|
+
function Zt(e, t) {
|
|
3095
3073
|
return new RegExp(e, t);
|
|
3096
3074
|
}
|
|
3097
|
-
var
|
|
3098
|
-
if (
|
|
3099
|
-
var
|
|
3100
|
-
|
|
3075
|
+
var ke;
|
|
3076
|
+
if (Fe) {
|
|
3077
|
+
var mt = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3078
|
+
ke = function(t, r) {
|
|
3101
3079
|
var n;
|
|
3102
|
-
|
|
3103
|
-
var i =
|
|
3080
|
+
mt.lastIndex = r;
|
|
3081
|
+
var i = mt.exec(t);
|
|
3104
3082
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3105
3083
|
};
|
|
3106
3084
|
} else
|
|
3107
|
-
|
|
3085
|
+
ke = function(t, r) {
|
|
3108
3086
|
for (var n = []; ; ) {
|
|
3109
|
-
var i =
|
|
3110
|
-
if (i === void 0 ||
|
|
3087
|
+
var i = zt(t, r);
|
|
3088
|
+
if (i === void 0 || Qt(i) || Xn(i))
|
|
3111
3089
|
break;
|
|
3112
3090
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3113
3091
|
}
|
|
3114
|
-
return
|
|
3092
|
+
return je.apply(void 0, n);
|
|
3115
3093
|
};
|
|
3116
|
-
var
|
|
3094
|
+
var kn = (
|
|
3117
3095
|
/** @class */
|
|
3118
3096
|
function() {
|
|
3119
3097
|
function e(t, r) {
|
|
@@ -3144,7 +3122,7 @@ var Xn = (
|
|
|
3144
3122
|
if (n)
|
|
3145
3123
|
break;
|
|
3146
3124
|
return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
3147
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3125
|
+
} else if (o === 60 && !this.ignoreTag && We(this.peek() || 0)) {
|
|
3148
3126
|
var a = this.parseTag(t, r);
|
|
3149
3127
|
if (a.err)
|
|
3150
3128
|
return a;
|
|
@@ -3177,7 +3155,7 @@ var Xn = (
|
|
|
3177
3155
|
return o;
|
|
3178
3156
|
var a = o.val, s = this.clonePosition();
|
|
3179
3157
|
if (this.bumpIf("</")) {
|
|
3180
|
-
if (this.isEOF() || !
|
|
3158
|
+
if (this.isEOF() || !We(this.char()))
|
|
3181
3159
|
return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
|
|
3182
3160
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3183
3161
|
return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3195,7 +3173,7 @@ var Xn = (
|
|
|
3195
3173
|
return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
|
|
3196
3174
|
}, e.prototype.parseTagName = function() {
|
|
3197
3175
|
var t = this.offset();
|
|
3198
|
-
for (this.bump(); !this.isEOF() &&
|
|
3176
|
+
for (this.bump(); !this.isEOF() && Vn(this.char()); )
|
|
3199
3177
|
this.bump();
|
|
3200
3178
|
return this.message.slice(t, this.offset());
|
|
3201
3179
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3224,7 +3202,7 @@ var Xn = (
|
|
|
3224
3202
|
};
|
|
3225
3203
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3226
3204
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3227
|
-
!
|
|
3205
|
+
!Wn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3228
3206
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3229
3207
|
if (this.isEOF() || this.char() !== 39)
|
|
3230
3208
|
return null;
|
|
@@ -3258,12 +3236,12 @@ var Xn = (
|
|
|
3258
3236
|
r.push(n);
|
|
3259
3237
|
this.bump();
|
|
3260
3238
|
}
|
|
3261
|
-
return
|
|
3239
|
+
return je.apply(void 0, r);
|
|
3262
3240
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3263
3241
|
if (this.isEOF())
|
|
3264
3242
|
return null;
|
|
3265
3243
|
var n = this.char();
|
|
3266
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3244
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
|
|
3267
3245
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3268
3246
|
var n = this.clonePosition();
|
|
3269
3247
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3292,7 +3270,7 @@ var Xn = (
|
|
|
3292
3270
|
return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
3293
3271
|
}
|
|
3294
3272
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3295
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3273
|
+
var t = this.clonePosition(), r = this.offset(), n = ke(this.message, r), i = r + n.length;
|
|
3296
3274
|
this.bumpTo(i);
|
|
3297
3275
|
var o = this.clonePosition(), a = y(t, o);
|
|
3298
3276
|
return { value: n, location: a };
|
|
@@ -3311,7 +3289,7 @@ var Xn = (
|
|
|
3311
3289
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3312
3290
|
if (c.err)
|
|
3313
3291
|
return c;
|
|
3314
|
-
var f =
|
|
3292
|
+
var f = jn(c.val);
|
|
3315
3293
|
if (f.length === 0)
|
|
3316
3294
|
return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
3317
3295
|
var p = y(h, this.clonePosition());
|
|
@@ -3321,8 +3299,8 @@ var Xn = (
|
|
|
3321
3299
|
if (m.err)
|
|
3322
3300
|
return m;
|
|
3323
3301
|
var g = y(i, this.clonePosition());
|
|
3324
|
-
if (u &&
|
|
3325
|
-
var w =
|
|
3302
|
+
if (u && pt(u?.style, "::", 0)) {
|
|
3303
|
+
var w = Fn(u.style.slice(2));
|
|
3326
3304
|
if (s === "number") {
|
|
3327
3305
|
var c = this.parseNumberSkeletonFromString(w, u.styleLocation);
|
|
3328
3306
|
return c.err ? c : {
|
|
@@ -3333,12 +3311,12 @@ var Xn = (
|
|
|
3333
3311
|
if (w.length === 0)
|
|
3334
3312
|
return this.error(b.EXPECT_DATE_TIME_SKELETON, g);
|
|
3335
3313
|
var L = w;
|
|
3336
|
-
this.locale && (L =
|
|
3314
|
+
this.locale && (L = Pn(w, this.locale));
|
|
3337
3315
|
var f = {
|
|
3338
3316
|
type: z.dateTime,
|
|
3339
3317
|
pattern: L,
|
|
3340
3318
|
location: u.styleLocation,
|
|
3341
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3319
|
+
parsedOptions: this.shouldParseSkeletons ? En(L) : {}
|
|
3342
3320
|
}, P = s === "date" ? _.date : _.time;
|
|
3343
3321
|
return {
|
|
3344
3322
|
val: { type: P, value: n, location: g, style: f },
|
|
@@ -3384,7 +3362,7 @@ var Xn = (
|
|
|
3384
3362
|
val: {
|
|
3385
3363
|
type: _.select,
|
|
3386
3364
|
value: n,
|
|
3387
|
-
options:
|
|
3365
|
+
options: dt(U.val),
|
|
3388
3366
|
location: he
|
|
3389
3367
|
},
|
|
3390
3368
|
err: null
|
|
@@ -3392,7 +3370,7 @@ var Xn = (
|
|
|
3392
3370
|
val: {
|
|
3393
3371
|
type: _.plural,
|
|
3394
3372
|
value: n,
|
|
3395
|
-
options:
|
|
3373
|
+
options: dt(U.val),
|
|
3396
3374
|
offset: A,
|
|
3397
3375
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3398
3376
|
location: he
|
|
@@ -3443,7 +3421,7 @@ var Xn = (
|
|
|
3443
3421
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3444
3422
|
var n = [];
|
|
3445
3423
|
try {
|
|
3446
|
-
n =
|
|
3424
|
+
n = wn(t);
|
|
3447
3425
|
} catch {
|
|
3448
3426
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3449
3427
|
}
|
|
@@ -3452,7 +3430,7 @@ var Xn = (
|
|
|
3452
3430
|
type: z.number,
|
|
3453
3431
|
tokens: n,
|
|
3454
3432
|
location: r,
|
|
3455
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3433
|
+
parsedOptions: this.shouldParseSkeletons ? Bn(n) : {}
|
|
3456
3434
|
},
|
|
3457
3435
|
err: null
|
|
3458
3436
|
};
|
|
@@ -3500,7 +3478,7 @@ var Xn = (
|
|
|
3500
3478
|
break;
|
|
3501
3479
|
}
|
|
3502
3480
|
var l = y(i, this.clonePosition());
|
|
3503
|
-
return o ? (a *= n,
|
|
3481
|
+
return o ? (a *= n, Dn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3504
3482
|
}, e.prototype.offset = function() {
|
|
3505
3483
|
return this.position.offset;
|
|
3506
3484
|
}, e.prototype.isEOF = function() {
|
|
@@ -3515,7 +3493,7 @@ var Xn = (
|
|
|
3515
3493
|
var t = this.position.offset;
|
|
3516
3494
|
if (t >= this.message.length)
|
|
3517
3495
|
throw Error("out of bound");
|
|
3518
|
-
var r =
|
|
3496
|
+
var r = zt(this.message, t);
|
|
3519
3497
|
if (r === void 0)
|
|
3520
3498
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3521
3499
|
return r;
|
|
@@ -3534,7 +3512,7 @@ var Xn = (
|
|
|
3534
3512
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3535
3513
|
}
|
|
3536
3514
|
}, e.prototype.bumpIf = function(t) {
|
|
3537
|
-
if (
|
|
3515
|
+
if (pt(this.message, t, this.offset())) {
|
|
3538
3516
|
for (var r = 0; r < t.length; r++)
|
|
3539
3517
|
this.bump();
|
|
3540
3518
|
return !0;
|
|
@@ -3556,7 +3534,7 @@ var Xn = (
|
|
|
3556
3534
|
break;
|
|
3557
3535
|
}
|
|
3558
3536
|
}, e.prototype.bumpSpace = function() {
|
|
3559
|
-
for (; !this.isEOF() &&
|
|
3537
|
+
for (; !this.isEOF() && Qt(this.char()); )
|
|
3560
3538
|
this.bump();
|
|
3561
3539
|
}, e.prototype.peek = function() {
|
|
3562
3540
|
if (this.isEOF())
|
|
@@ -3566,38 +3544,38 @@ var Xn = (
|
|
|
3566
3544
|
}, e;
|
|
3567
3545
|
}()
|
|
3568
3546
|
);
|
|
3569
|
-
function
|
|
3547
|
+
function We(e) {
|
|
3570
3548
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3571
3549
|
}
|
|
3572
|
-
function
|
|
3573
|
-
return
|
|
3550
|
+
function Wn(e) {
|
|
3551
|
+
return We(e) || e === 47;
|
|
3574
3552
|
}
|
|
3575
|
-
function
|
|
3553
|
+
function Vn(e) {
|
|
3576
3554
|
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;
|
|
3577
3555
|
}
|
|
3578
|
-
function
|
|
3556
|
+
function Qt(e) {
|
|
3579
3557
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3580
3558
|
}
|
|
3581
|
-
function
|
|
3559
|
+
function Xn(e) {
|
|
3582
3560
|
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;
|
|
3583
3561
|
}
|
|
3584
|
-
function
|
|
3562
|
+
function Ve(e) {
|
|
3585
3563
|
e.forEach(function(t) {
|
|
3586
|
-
if (delete t.location,
|
|
3564
|
+
if (delete t.location, Dt(t) || Gt(t))
|
|
3587
3565
|
for (var r in t.options)
|
|
3588
|
-
delete t.options[r].location,
|
|
3566
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3589
3567
|
else
|
|
3590
|
-
|
|
3568
|
+
Rt(t) && jt(t.style) || ($t(t) || Ut(t)) && Ge(t.style) ? delete t.style.location : Ft(t) && Ve(t.children);
|
|
3591
3569
|
});
|
|
3592
3570
|
}
|
|
3593
|
-
function
|
|
3571
|
+
function zn(e, t) {
|
|
3594
3572
|
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3595
|
-
var r = new
|
|
3573
|
+
var r = new kn(e, t).parse();
|
|
3596
3574
|
if (r.err) {
|
|
3597
3575
|
var n = SyntaxError(b[r.err.kind]);
|
|
3598
3576
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3599
3577
|
}
|
|
3600
|
-
return t?.captureLocation ||
|
|
3578
|
+
return t?.captureLocation || Ve(r.val), r.val;
|
|
3601
3579
|
}
|
|
3602
3580
|
var Z;
|
|
3603
3581
|
(function(e) {
|
|
@@ -3615,7 +3593,7 @@ var Ee = (
|
|
|
3615
3593
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3616
3594
|
}, t;
|
|
3617
3595
|
}(Error)
|
|
3618
|
-
),
|
|
3596
|
+
), bt = (
|
|
3619
3597
|
/** @class */
|
|
3620
3598
|
function(e) {
|
|
3621
3599
|
N(t, e);
|
|
@@ -3624,7 +3602,7 @@ var Ee = (
|
|
|
3624
3602
|
}
|
|
3625
3603
|
return t;
|
|
3626
3604
|
}(Ee)
|
|
3627
|
-
),
|
|
3605
|
+
), Zn = (
|
|
3628
3606
|
/** @class */
|
|
3629
3607
|
function(e) {
|
|
3630
3608
|
N(t, e);
|
|
@@ -3633,7 +3611,7 @@ var Ee = (
|
|
|
3633
3611
|
}
|
|
3634
3612
|
return t;
|
|
3635
3613
|
}(Ee)
|
|
3636
|
-
),
|
|
3614
|
+
), Qn = (
|
|
3637
3615
|
/** @class */
|
|
3638
3616
|
function(e) {
|
|
3639
3617
|
N(t, e);
|
|
@@ -3646,17 +3624,17 @@ var Ee = (
|
|
|
3646
3624
|
(function(e) {
|
|
3647
3625
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3648
3626
|
})(S || (S = {}));
|
|
3649
|
-
function
|
|
3627
|
+
function Jn(e) {
|
|
3650
3628
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3651
3629
|
var n = t[t.length - 1];
|
|
3652
3630
|
return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
|
|
3653
3631
|
}, []);
|
|
3654
3632
|
}
|
|
3655
|
-
function
|
|
3633
|
+
function qn(e) {
|
|
3656
3634
|
return typeof e == "function";
|
|
3657
3635
|
}
|
|
3658
3636
|
function me(e, t, r, n, i, o, a) {
|
|
3659
|
-
if (e.length === 1 &&
|
|
3637
|
+
if (e.length === 1 && ht(e[0]))
|
|
3660
3638
|
return [
|
|
3661
3639
|
{
|
|
3662
3640
|
type: S.literal,
|
|
@@ -3665,14 +3643,14 @@ function me(e, t, r, n, i, o, a) {
|
|
|
3665
3643
|
];
|
|
3666
3644
|
for (var s = [], l = 0, u = e; l < u.length; l++) {
|
|
3667
3645
|
var h = u[l];
|
|
3668
|
-
if (
|
|
3646
|
+
if (ht(h)) {
|
|
3669
3647
|
s.push({
|
|
3670
3648
|
type: S.literal,
|
|
3671
3649
|
value: h.value
|
|
3672
3650
|
});
|
|
3673
3651
|
continue;
|
|
3674
3652
|
}
|
|
3675
|
-
if (
|
|
3653
|
+
if (vn(h)) {
|
|
3676
3654
|
typeof o == "number" && s.push({
|
|
3677
3655
|
type: S.literal,
|
|
3678
3656
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3681,43 +3659,43 @@ function me(e, t, r, n, i, o, a) {
|
|
|
3681
3659
|
}
|
|
3682
3660
|
var c = h.value;
|
|
3683
3661
|
if (!(i && c in i))
|
|
3684
|
-
throw new
|
|
3662
|
+
throw new Qn(c, a);
|
|
3685
3663
|
var f = i[c];
|
|
3686
|
-
if (
|
|
3664
|
+
if (yn(h)) {
|
|
3687
3665
|
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), s.push({
|
|
3688
3666
|
type: typeof f == "string" ? S.literal : S.object,
|
|
3689
3667
|
value: f
|
|
3690
3668
|
});
|
|
3691
3669
|
continue;
|
|
3692
3670
|
}
|
|
3693
|
-
if (
|
|
3694
|
-
var p = typeof h.style == "string" ? n.date[h.style] :
|
|
3671
|
+
if ($t(h)) {
|
|
3672
|
+
var p = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
|
|
3695
3673
|
s.push({
|
|
3696
3674
|
type: S.literal,
|
|
3697
3675
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3698
3676
|
});
|
|
3699
3677
|
continue;
|
|
3700
3678
|
}
|
|
3701
|
-
if (
|
|
3702
|
-
var p = typeof h.style == "string" ? n.time[h.style] :
|
|
3679
|
+
if (Ut(h)) {
|
|
3680
|
+
var p = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3703
3681
|
s.push({
|
|
3704
3682
|
type: S.literal,
|
|
3705
3683
|
value: r.getDateTimeFormat(t, p).format(f)
|
|
3706
3684
|
});
|
|
3707
3685
|
continue;
|
|
3708
3686
|
}
|
|
3709
|
-
if (
|
|
3710
|
-
var p = typeof h.style == "string" ? n.number[h.style] :
|
|
3687
|
+
if (Rt(h)) {
|
|
3688
|
+
var p = typeof h.style == "string" ? n.number[h.style] : jt(h.style) ? h.style.parsedOptions : void 0;
|
|
3711
3689
|
p && p.scale && (f = f * (p.scale || 1)), s.push({
|
|
3712
3690
|
type: S.literal,
|
|
3713
3691
|
value: r.getNumberFormat(t, p).format(f)
|
|
3714
3692
|
});
|
|
3715
3693
|
continue;
|
|
3716
3694
|
}
|
|
3717
|
-
if (
|
|
3695
|
+
if (Ft(h)) {
|
|
3718
3696
|
var m = h.children, g = h.value, w = i[g];
|
|
3719
|
-
if (!
|
|
3720
|
-
throw new
|
|
3697
|
+
if (!qn(w))
|
|
3698
|
+
throw new Zn(g, "function", a);
|
|
3721
3699
|
var L = me(m, t, r, n, i, o), P = w(L.map(function(A) {
|
|
3722
3700
|
return A.value;
|
|
3723
3701
|
}));
|
|
@@ -3728,14 +3706,14 @@ function me(e, t, r, n, i, o, a) {
|
|
|
3728
3706
|
};
|
|
3729
3707
|
}));
|
|
3730
3708
|
}
|
|
3731
|
-
if (
|
|
3709
|
+
if (Dt(h)) {
|
|
3732
3710
|
var T = h.options[f] || h.options.other;
|
|
3733
3711
|
if (!T)
|
|
3734
|
-
throw new
|
|
3712
|
+
throw new bt(h.value, f, Object.keys(h.options), a);
|
|
3735
3713
|
s.push.apply(s, me(T.value, t, r, n, i));
|
|
3736
3714
|
continue;
|
|
3737
3715
|
}
|
|
3738
|
-
if (
|
|
3716
|
+
if (Gt(h)) {
|
|
3739
3717
|
var T = h.options["=".concat(f)];
|
|
3740
3718
|
if (!T) {
|
|
3741
3719
|
if (!Intl.PluralRules)
|
|
@@ -3746,24 +3724,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3746
3724
|
T = h.options[$] || h.options.other;
|
|
3747
3725
|
}
|
|
3748
3726
|
if (!T)
|
|
3749
|
-
throw new
|
|
3727
|
+
throw new bt(h.value, f, Object.keys(h.options), a);
|
|
3750
3728
|
s.push.apply(s, me(T.value, t, r, n, i, f - (h.offset || 0)));
|
|
3751
3729
|
continue;
|
|
3752
3730
|
}
|
|
3753
3731
|
}
|
|
3754
|
-
return
|
|
3732
|
+
return Jn(s);
|
|
3755
3733
|
}
|
|
3756
|
-
function
|
|
3734
|
+
function Yn(e, t) {
|
|
3757
3735
|
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3758
3736
|
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3759
3737
|
}, {})) : e;
|
|
3760
3738
|
}
|
|
3761
|
-
function
|
|
3739
|
+
function Kn(e, t) {
|
|
3762
3740
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3763
|
-
return r[n] =
|
|
3741
|
+
return r[n] = Yn(e[n], t[n]), r;
|
|
3764
3742
|
}, v({}, e)) : e;
|
|
3765
3743
|
}
|
|
3766
|
-
function
|
|
3744
|
+
function Ae(e) {
|
|
3767
3745
|
return {
|
|
3768
3746
|
create: function() {
|
|
3769
3747
|
return {
|
|
@@ -3777,39 +3755,39 @@ function Oe(e) {
|
|
|
3777
3755
|
}
|
|
3778
3756
|
};
|
|
3779
3757
|
}
|
|
3780
|
-
function
|
|
3758
|
+
function ei(e) {
|
|
3781
3759
|
return e === void 0 && (e = {
|
|
3782
3760
|
number: {},
|
|
3783
3761
|
dateTime: {},
|
|
3784
3762
|
pluralRules: {}
|
|
3785
3763
|
}), {
|
|
3786
|
-
getNumberFormat:
|
|
3764
|
+
getNumberFormat: He(function() {
|
|
3787
3765
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3788
3766
|
r[n] = arguments[n];
|
|
3789
3767
|
return new ((t = Intl.NumberFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3790
3768
|
}, {
|
|
3791
|
-
cache:
|
|
3792
|
-
strategy:
|
|
3769
|
+
cache: Ae(e.number),
|
|
3770
|
+
strategy: Be.variadic
|
|
3793
3771
|
}),
|
|
3794
|
-
getDateTimeFormat:
|
|
3772
|
+
getDateTimeFormat: He(function() {
|
|
3795
3773
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3796
3774
|
r[n] = arguments[n];
|
|
3797
3775
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, V([void 0], r, !1)))();
|
|
3798
3776
|
}, {
|
|
3799
|
-
cache:
|
|
3800
|
-
strategy:
|
|
3777
|
+
cache: Ae(e.dateTime),
|
|
3778
|
+
strategy: Be.variadic
|
|
3801
3779
|
}),
|
|
3802
|
-
getPluralRules:
|
|
3780
|
+
getPluralRules: He(function() {
|
|
3803
3781
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3804
3782
|
r[n] = arguments[n];
|
|
3805
3783
|
return new ((t = Intl.PluralRules).bind.apply(t, V([void 0], r, !1)))();
|
|
3806
3784
|
}, {
|
|
3807
|
-
cache:
|
|
3808
|
-
strategy:
|
|
3785
|
+
cache: Ae(e.pluralRules),
|
|
3786
|
+
strategy: Be.variadic
|
|
3809
3787
|
})
|
|
3810
3788
|
};
|
|
3811
3789
|
}
|
|
3812
|
-
var
|
|
3790
|
+
var ti = (
|
|
3813
3791
|
/** @class */
|
|
3814
3792
|
function() {
|
|
3815
3793
|
function e(t, r, n, i) {
|
|
@@ -3841,13 +3819,13 @@ var ii = (
|
|
|
3841
3819
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3842
3820
|
var a = i || {};
|
|
3843
3821
|
a.formatters;
|
|
3844
|
-
var s =
|
|
3822
|
+
var s = Nr(a, ["formatters"]);
|
|
3845
3823
|
this.ast = e.__parse(t, v(v({}, s), { locale: this.resolvedLocale }));
|
|
3846
3824
|
} else
|
|
3847
3825
|
this.ast = t;
|
|
3848
3826
|
if (!Array.isArray(this.ast))
|
|
3849
3827
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3850
|
-
this.formats =
|
|
3828
|
+
this.formats = Kn(e.formats, n), this.formatters = i && i.formatters || ei(this.formatterCache);
|
|
3851
3829
|
}
|
|
3852
3830
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3853
3831
|
get: function() {
|
|
@@ -3860,7 +3838,7 @@ var ii = (
|
|
|
3860
3838
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3861
3839
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3862
3840
|
}
|
|
3863
|
-
}, e.__parse =
|
|
3841
|
+
}, e.__parse = zn, e.formats = {
|
|
3864
3842
|
number: {
|
|
3865
3843
|
integer: {
|
|
3866
3844
|
maximumFractionDigits: 0
|
|
@@ -3921,7 +3899,7 @@ var ii = (
|
|
|
3921
3899
|
}, e;
|
|
3922
3900
|
}()
|
|
3923
3901
|
);
|
|
3924
|
-
function
|
|
3902
|
+
function ri(e, t) {
|
|
3925
3903
|
if (t == null)
|
|
3926
3904
|
return;
|
|
3927
3905
|
if (t in e)
|
|
@@ -3942,92 +3920,92 @@ function oi(e, t) {
|
|
|
3942
3920
|
n = void 0;
|
|
3943
3921
|
return n;
|
|
3944
3922
|
}
|
|
3945
|
-
const R = {},
|
|
3923
|
+
const R = {}, ni = (e, t, r) => r && (t in R || (R[t] = {}), e in R[t] || (R[t][e] = r), r), Jt = (e, t) => {
|
|
3946
3924
|
if (t == null)
|
|
3947
3925
|
return;
|
|
3948
3926
|
if (t in R && e in R[t])
|
|
3949
3927
|
return R[t][e];
|
|
3950
3928
|
const r = xe(t);
|
|
3951
3929
|
for (let n = 0; n < r.length; n++) {
|
|
3952
|
-
const i = r[n], o =
|
|
3930
|
+
const i = r[n], o = oi(i, e);
|
|
3953
3931
|
if (o)
|
|
3954
|
-
return
|
|
3932
|
+
return ni(e, t, o);
|
|
3955
3933
|
}
|
|
3956
3934
|
};
|
|
3957
|
-
let
|
|
3935
|
+
let Je;
|
|
3958
3936
|
const ue = _e({});
|
|
3959
|
-
function
|
|
3960
|
-
return
|
|
3937
|
+
function ii(e) {
|
|
3938
|
+
return Je[e] || null;
|
|
3961
3939
|
}
|
|
3962
|
-
function
|
|
3963
|
-
return e in
|
|
3940
|
+
function qt(e) {
|
|
3941
|
+
return e in Je;
|
|
3964
3942
|
}
|
|
3965
|
-
function
|
|
3966
|
-
if (!
|
|
3943
|
+
function oi(e, t) {
|
|
3944
|
+
if (!qt(e))
|
|
3967
3945
|
return null;
|
|
3968
|
-
const r =
|
|
3969
|
-
return
|
|
3946
|
+
const r = ii(e);
|
|
3947
|
+
return ri(r, t);
|
|
3970
3948
|
}
|
|
3971
|
-
function
|
|
3949
|
+
function si(e) {
|
|
3972
3950
|
if (e == null)
|
|
3973
3951
|
return;
|
|
3974
3952
|
const t = xe(e);
|
|
3975
3953
|
for (let r = 0; r < t.length; r++) {
|
|
3976
3954
|
const n = t[r];
|
|
3977
|
-
if (
|
|
3955
|
+
if (qt(n))
|
|
3978
3956
|
return n;
|
|
3979
3957
|
}
|
|
3980
3958
|
}
|
|
3981
|
-
function
|
|
3982
|
-
delete R[e], ue.update((r) => (r[e] =
|
|
3959
|
+
function Yt(e, ...t) {
|
|
3960
|
+
delete R[e], ue.update((r) => (r[e] = ln.all([r[e] || {}, ...t]), r));
|
|
3983
3961
|
}
|
|
3984
3962
|
q(
|
|
3985
3963
|
[ue],
|
|
3986
3964
|
([e]) => Object.keys(e)
|
|
3987
3965
|
);
|
|
3988
|
-
ue.subscribe((e) =>
|
|
3966
|
+
ue.subscribe((e) => Je = e);
|
|
3989
3967
|
const be = {};
|
|
3990
|
-
function
|
|
3968
|
+
function ai(e, t) {
|
|
3991
3969
|
be[e].delete(t), be[e].size === 0 && delete be[e];
|
|
3992
3970
|
}
|
|
3993
|
-
function
|
|
3971
|
+
function Kt(e) {
|
|
3994
3972
|
return be[e];
|
|
3995
3973
|
}
|
|
3996
|
-
function
|
|
3974
|
+
function ui(e) {
|
|
3997
3975
|
return xe(e).map((t) => {
|
|
3998
|
-
const r =
|
|
3976
|
+
const r = Kt(t);
|
|
3999
3977
|
return [t, r ? [...r] : []];
|
|
4000
3978
|
}).filter(([, t]) => t.length > 0);
|
|
4001
3979
|
}
|
|
4002
|
-
function
|
|
3980
|
+
function Xe(e) {
|
|
4003
3981
|
return e == null ? !1 : xe(e).some(
|
|
4004
3982
|
(t) => {
|
|
4005
3983
|
var r;
|
|
4006
|
-
return (r =
|
|
3984
|
+
return (r = Kt(t)) == null ? void 0 : r.size;
|
|
4007
3985
|
}
|
|
4008
3986
|
);
|
|
4009
3987
|
}
|
|
4010
|
-
function
|
|
3988
|
+
function hi(e, t) {
|
|
4011
3989
|
return Promise.all(
|
|
4012
|
-
t.map((n) => (
|
|
4013
|
-
).then((n) =>
|
|
3990
|
+
t.map((n) => (ai(e, n), n().then((i) => i.default || i)))
|
|
3991
|
+
).then((n) => Yt(e, ...n));
|
|
4014
3992
|
}
|
|
4015
3993
|
const ee = {};
|
|
4016
|
-
function
|
|
4017
|
-
if (!
|
|
3994
|
+
function er(e) {
|
|
3995
|
+
if (!Xe(e))
|
|
4018
3996
|
return e in ee ? ee[e] : Promise.resolve();
|
|
4019
|
-
const t =
|
|
3997
|
+
const t = ui(e);
|
|
4020
3998
|
return ee[e] = Promise.all(
|
|
4021
3999
|
t.map(
|
|
4022
|
-
([r, n]) =>
|
|
4000
|
+
([r, n]) => hi(r, n)
|
|
4023
4001
|
)
|
|
4024
4002
|
).then(() => {
|
|
4025
|
-
if (
|
|
4026
|
-
return
|
|
4003
|
+
if (Xe(e))
|
|
4004
|
+
return er(e);
|
|
4027
4005
|
delete ee[e];
|
|
4028
4006
|
}), ee[e];
|
|
4029
4007
|
}
|
|
4030
|
-
const
|
|
4008
|
+
const li = {
|
|
4031
4009
|
number: {
|
|
4032
4010
|
scientific: { notation: "scientific" },
|
|
4033
4011
|
engineering: { notation: "engineering" },
|
|
@@ -4056,57 +4034,57 @@ const pi = {
|
|
|
4056
4034
|
timeZoneName: "short"
|
|
4057
4035
|
}
|
|
4058
4036
|
}
|
|
4059
|
-
},
|
|
4037
|
+
}, ci = {
|
|
4060
4038
|
fallbackLocale: null,
|
|
4061
4039
|
loadingDelay: 200,
|
|
4062
|
-
formats:
|
|
4040
|
+
formats: li,
|
|
4063
4041
|
warnOnMissingMessages: !0,
|
|
4064
4042
|
handleMissingMessage: void 0,
|
|
4065
4043
|
ignoreTag: !0
|
|
4066
|
-
},
|
|
4044
|
+
}, fi = ci;
|
|
4067
4045
|
function Q() {
|
|
4068
|
-
return
|
|
4046
|
+
return fi;
|
|
4069
4047
|
}
|
|
4070
|
-
const
|
|
4071
|
-
var
|
|
4048
|
+
const Oe = _e(!1);
|
|
4049
|
+
var pi = Object.defineProperty, di = Object.defineProperties, mi = Object.getOwnPropertyDescriptors, gt = Object.getOwnPropertySymbols, bi = Object.prototype.hasOwnProperty, gi = Object.prototype.propertyIsEnumerable, yt = (e, t, r) => t in e ? pi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yi = (e, t) => {
|
|
4072
4050
|
for (var r in t || (t = {}))
|
|
4073
|
-
|
|
4074
|
-
if (
|
|
4075
|
-
for (var r of
|
|
4076
|
-
|
|
4051
|
+
bi.call(t, r) && yt(e, r, t[r]);
|
|
4052
|
+
if (gt)
|
|
4053
|
+
for (var r of gt(t))
|
|
4054
|
+
gi.call(t, r) && yt(e, r, t[r]);
|
|
4077
4055
|
return e;
|
|
4078
|
-
},
|
|
4079
|
-
let
|
|
4056
|
+
}, vi = (e, t) => di(e, mi(t));
|
|
4057
|
+
let ze;
|
|
4080
4058
|
const ge = _e(null);
|
|
4081
|
-
function
|
|
4059
|
+
function vt(e) {
|
|
4082
4060
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4083
4061
|
}
|
|
4084
4062
|
function xe(e, t = Q().fallbackLocale) {
|
|
4085
|
-
const r =
|
|
4086
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4063
|
+
const r = vt(e);
|
|
4064
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...vt(t)])] : r;
|
|
4087
4065
|
}
|
|
4088
4066
|
function D() {
|
|
4089
|
-
return
|
|
4067
|
+
return ze ?? void 0;
|
|
4090
4068
|
}
|
|
4091
4069
|
ge.subscribe((e) => {
|
|
4092
|
-
|
|
4070
|
+
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4093
4071
|
});
|
|
4094
|
-
const
|
|
4095
|
-
if (e &&
|
|
4072
|
+
const _i = (e) => {
|
|
4073
|
+
if (e && si(e) && Xe(e)) {
|
|
4096
4074
|
const { loadingDelay: t } = Q();
|
|
4097
4075
|
let r;
|
|
4098
4076
|
return typeof window < "u" && D() != null && t ? r = window.setTimeout(
|
|
4099
|
-
() =>
|
|
4077
|
+
() => Oe.set(!0),
|
|
4100
4078
|
t
|
|
4101
|
-
) :
|
|
4079
|
+
) : Oe.set(!0), er(e).then(() => {
|
|
4102
4080
|
ge.set(e);
|
|
4103
4081
|
}).finally(() => {
|
|
4104
|
-
clearTimeout(r),
|
|
4082
|
+
clearTimeout(r), Oe.set(!1);
|
|
4105
4083
|
});
|
|
4106
4084
|
}
|
|
4107
4085
|
return ge.set(e);
|
|
4108
|
-
}, Y =
|
|
4109
|
-
set:
|
|
4086
|
+
}, Y = vi(yi({}, ge), {
|
|
4087
|
+
set: _i
|
|
4110
4088
|
}), we = (e) => {
|
|
4111
4089
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4112
4090
|
return (n) => {
|
|
@@ -4114,20 +4092,20 @@ const wi = (e) => {
|
|
|
4114
4092
|
return i in t ? t[i] : t[i] = e(n);
|
|
4115
4093
|
};
|
|
4116
4094
|
};
|
|
4117
|
-
var
|
|
4095
|
+
var Ei = Object.defineProperty, ye = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
4118
4096
|
for (var r in t || (t = {}))
|
|
4119
|
-
|
|
4097
|
+
tr.call(t, r) && _t(e, r, t[r]);
|
|
4120
4098
|
if (ye)
|
|
4121
4099
|
for (var r of ye(t))
|
|
4122
|
-
|
|
4100
|
+
rr.call(t, r) && _t(e, r, t[r]);
|
|
4123
4101
|
return e;
|
|
4124
4102
|
}, K = (e, t) => {
|
|
4125
4103
|
var r = {};
|
|
4126
4104
|
for (var n in e)
|
|
4127
|
-
|
|
4105
|
+
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4128
4106
|
if (e != null && ye)
|
|
4129
4107
|
for (var n of ye(e))
|
|
4130
|
-
t.indexOf(n) < 0 &&
|
|
4108
|
+
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
4131
4109
|
return r;
|
|
4132
4110
|
};
|
|
4133
4111
|
const oe = (e, t) => {
|
|
@@ -4135,21 +4113,21 @@ const oe = (e, t) => {
|
|
|
4135
4113
|
if (e in r && t in r[e])
|
|
4136
4114
|
return r[e][t];
|
|
4137
4115
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4138
|
-
},
|
|
4116
|
+
}, xi = we(
|
|
4139
4117
|
(e) => {
|
|
4140
4118
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4141
4119
|
if (r == null)
|
|
4142
4120
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4143
4121
|
return n && (i = oe("number", n)), new Intl.NumberFormat(r, i);
|
|
4144
4122
|
}
|
|
4145
|
-
),
|
|
4123
|
+
), wi = we(
|
|
4146
4124
|
(e) => {
|
|
4147
4125
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4148
4126
|
if (r == null)
|
|
4149
4127
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4150
4128
|
return n ? i = oe("date", n) : Object.keys(i).length === 0 && (i = oe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4151
4129
|
}
|
|
4152
|
-
),
|
|
4130
|
+
), Si = we(
|
|
4153
4131
|
(e) => {
|
|
4154
4132
|
var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
|
|
4155
4133
|
if (r == null)
|
|
@@ -4158,33 +4136,33 @@ const oe = (e, t) => {
|
|
|
4158
4136
|
);
|
|
4159
4137
|
return n ? i = oe("time", n) : Object.keys(i).length === 0 && (i = oe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4160
4138
|
}
|
|
4161
|
-
),
|
|
4139
|
+
), Ti = (e = {}) => {
|
|
4162
4140
|
var t = e, {
|
|
4163
4141
|
locale: r = D()
|
|
4164
4142
|
} = t, n = K(t, [
|
|
4165
4143
|
"locale"
|
|
4166
4144
|
]);
|
|
4167
|
-
return
|
|
4168
|
-
},
|
|
4145
|
+
return xi(qe({ locale: r }, n));
|
|
4146
|
+
}, Hi = (e = {}) => {
|
|
4169
4147
|
var t = e, {
|
|
4170
4148
|
locale: r = D()
|
|
4171
4149
|
} = t, n = K(t, [
|
|
4172
4150
|
"locale"
|
|
4173
4151
|
]);
|
|
4174
|
-
return
|
|
4175
|
-
},
|
|
4152
|
+
return wi(qe({ locale: r }, n));
|
|
4153
|
+
}, Bi = (e = {}) => {
|
|
4176
4154
|
var t = e, {
|
|
4177
4155
|
locale: r = D()
|
|
4178
4156
|
} = t, n = K(t, [
|
|
4179
4157
|
"locale"
|
|
4180
4158
|
]);
|
|
4181
|
-
return
|
|
4182
|
-
},
|
|
4159
|
+
return Si(qe({ locale: r }, n));
|
|
4160
|
+
}, Pi = we(
|
|
4183
4161
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4184
|
-
(e, t = D()) => new
|
|
4162
|
+
(e, t = D()) => new ti(e, t, Q().formats, {
|
|
4185
4163
|
ignoreTag: Q().ignoreTag
|
|
4186
4164
|
})
|
|
4187
|
-
),
|
|
4165
|
+
), Ai = (e, t = {}) => {
|
|
4188
4166
|
var r, n, i, o;
|
|
4189
4167
|
let a = t;
|
|
4190
4168
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -4197,7 +4175,7 @@ const oe = (e, t) => {
|
|
|
4197
4175
|
throw new Error(
|
|
4198
4176
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4199
4177
|
);
|
|
4200
|
-
let h =
|
|
4178
|
+
let h = Jt(e, l);
|
|
4201
4179
|
if (!h)
|
|
4202
4180
|
h = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
4203
4181
|
else if (typeof h != "string")
|
|
@@ -4208,7 +4186,7 @@ const oe = (e, t) => {
|
|
|
4208
4186
|
return h;
|
|
4209
4187
|
let c = h;
|
|
4210
4188
|
try {
|
|
4211
|
-
c =
|
|
4189
|
+
c = Pi(h, l).format(s);
|
|
4212
4190
|
} catch (f) {
|
|
4213
4191
|
f instanceof Error && console.warn(
|
|
4214
4192
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4216,20 +4194,20 @@ const oe = (e, t) => {
|
|
|
4216
4194
|
);
|
|
4217
4195
|
}
|
|
4218
4196
|
return c;
|
|
4219
|
-
},
|
|
4220
|
-
q([Y], () =>
|
|
4221
|
-
q([Y], () =>
|
|
4222
|
-
q([Y], () =>
|
|
4223
|
-
q([Y, ue], () =>
|
|
4224
|
-
window.emWidgets = { topic:
|
|
4225
|
-
const
|
|
4226
|
-
function
|
|
4227
|
-
|
|
4228
|
-
}
|
|
4229
|
-
function
|
|
4197
|
+
}, Oi = (e, t) => Bi(t).format(e), Ii = (e, t) => Hi(t).format(e), Ni = (e, t) => Ti(t).format(e), Li = (e, t = D()) => Jt(e, t), Mi = q([Y, ue], () => Ai);
|
|
4198
|
+
q([Y], () => Oi);
|
|
4199
|
+
q([Y], () => Ii);
|
|
4200
|
+
q([Y], () => Ni);
|
|
4201
|
+
q([Y, ue], () => Li);
|
|
4202
|
+
window.emWidgets = { topic: Xr };
|
|
4203
|
+
const Ci = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4204
|
+
function Et(e, t) {
|
|
4205
|
+
Yt(e, t);
|
|
4206
|
+
}
|
|
4207
|
+
function Ri(e) {
|
|
4230
4208
|
Y.set(e);
|
|
4231
4209
|
}
|
|
4232
|
-
const
|
|
4210
|
+
const xt = {
|
|
4233
4211
|
en: {
|
|
4234
4212
|
titlePlayerWithdrawal: "Withdrawal",
|
|
4235
4213
|
loading: "Loading, please wait ..."
|
|
@@ -4263,20 +4241,20 @@ const Tt = {
|
|
|
4263
4241
|
loading: "Loading, please wait ..."
|
|
4264
4242
|
}
|
|
4265
4243
|
};
|
|
4266
|
-
function
|
|
4267
|
-
|
|
4244
|
+
function $i(e) {
|
|
4245
|
+
ur(e, "svelte-zw6451", "button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.WithdrawalWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.WithdrawalWrapper.WithdrawalWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.WithdrawalTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.WithdrawalTitleMobile{font-size:var(--emw--size-standard, 16px)}.WithdrawalTitleNone{display:none}.WithdrawalIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}");
|
|
4268
4246
|
}
|
|
4269
|
-
function
|
|
4247
|
+
function Ui(e) {
|
|
4270
4248
|
let t, r, n, i, o, a, s, l, u, h, c = (
|
|
4271
4249
|
/*$_*/
|
|
4272
4250
|
e[3]("titlePlayerWithdrawal") + ""
|
|
4273
4251
|
), f, p, m;
|
|
4274
4252
|
return {
|
|
4275
4253
|
c() {
|
|
4276
|
-
t = I("div"), r = G("svg"), n = G("defs"), i = G("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u =
|
|
4254
|
+
t = I("div"), r = G("svg"), n = G("defs"), i = G("style"), o = re(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), a = G("g"), s = G("g"), l = G("path"), u = Ie(), h = I("h2"), f = re(c), E(l, "class", "aaa"), E(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(l, "transform", "translate(15 15) rotate(180)"), E(s, "transform", "translate(20 158)"), E(a, "transform", "translate(-20 -158)"), E(r, "xmlns", "http://www.w3.org/2000/svg"), E(r, "width", "15"), E(r, "height", "15"), E(r, "viewBox", "0 0 15 15"), E(h, "class", "WithdrawalTitleMobile"), E(t, "class", "MenuReturnButton"), E(t, "part", "MenuReturnButton");
|
|
4277
4255
|
},
|
|
4278
4256
|
m(g, w) {
|
|
4279
|
-
ae(g, t, w), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, f), p || (m =
|
|
4257
|
+
ae(g, t, w), x(t, r), x(r, n), x(n, i), x(i, o), x(r, a), x(a, s), x(s, l), x(t, u), x(t, h), x(h, f), p || (m = cr(
|
|
4280
4258
|
t,
|
|
4281
4259
|
"click",
|
|
4282
4260
|
/*click_handler*/
|
|
@@ -4286,18 +4264,18 @@ function Fi(e) {
|
|
|
4286
4264
|
p(g, w) {
|
|
4287
4265
|
w & /*$_*/
|
|
4288
4266
|
8 && c !== (c = /*$_*/
|
|
4289
|
-
g[3]("titlePlayerWithdrawal") + "") &&
|
|
4267
|
+
g[3]("titlePlayerWithdrawal") + "") && Qe(f, c);
|
|
4290
4268
|
},
|
|
4291
4269
|
d(g) {
|
|
4292
4270
|
g && J(t), p = !1, m();
|
|
4293
4271
|
}
|
|
4294
4272
|
};
|
|
4295
4273
|
}
|
|
4296
|
-
function
|
|
4274
|
+
function Di(e) {
|
|
4297
4275
|
let t, r, n;
|
|
4298
4276
|
return {
|
|
4299
4277
|
c() {
|
|
4300
|
-
t = I("div"), r = I("iframe"),
|
|
4278
|
+
t = I("div"), r = I("iframe"), Ke(r.src, n = /*iframeUrl*/
|
|
4301
4279
|
e[2]) || E(r, "src", n), E(r, "title", "Withdrawal Iframe"), E(t, "class", "WithdrawalIframeWrapper");
|
|
4302
4280
|
},
|
|
4303
4281
|
m(i, o) {
|
|
@@ -4305,7 +4283,7 @@ function ji(e) {
|
|
|
4305
4283
|
},
|
|
4306
4284
|
p(i, o) {
|
|
4307
4285
|
o & /*iframeUrl*/
|
|
4308
|
-
4 && !
|
|
4286
|
+
4 && !Ke(r.src, n = /*iframeUrl*/
|
|
4309
4287
|
i[2]) && E(r, "src", n);
|
|
4310
4288
|
},
|
|
4311
4289
|
d(i) {
|
|
@@ -4313,7 +4291,7 @@ function ji(e) {
|
|
|
4313
4291
|
}
|
|
4314
4292
|
};
|
|
4315
4293
|
}
|
|
4316
|
-
function
|
|
4294
|
+
function Gi(e) {
|
|
4317
4295
|
let t, r = (
|
|
4318
4296
|
/*$_*/
|
|
4319
4297
|
e[3]("loading") + ""
|
|
@@ -4328,31 +4306,31 @@ function ki(e) {
|
|
|
4328
4306
|
p(i, o) {
|
|
4329
4307
|
o & /*$_*/
|
|
4330
4308
|
8 && r !== (r = /*$_*/
|
|
4331
|
-
i[3]("loading") + "") &&
|
|
4309
|
+
i[3]("loading") + "") && Qe(n, r);
|
|
4332
4310
|
},
|
|
4333
4311
|
d(i) {
|
|
4334
4312
|
i && J(t);
|
|
4335
4313
|
}
|
|
4336
4314
|
};
|
|
4337
4315
|
}
|
|
4338
|
-
function
|
|
4316
|
+
function Fi(e) {
|
|
4339
4317
|
let t, r, n, i = (
|
|
4340
4318
|
/*$_*/
|
|
4341
4319
|
e[3]("titlePlayerWithdrawal") + ""
|
|
4342
4320
|
), o, a, s = (
|
|
4343
4321
|
/*isMobile*/
|
|
4344
|
-
e[4] &&
|
|
4322
|
+
e[4] && Ui(e)
|
|
4345
4323
|
);
|
|
4346
4324
|
function l(c, f) {
|
|
4347
4325
|
return (
|
|
4348
4326
|
/*isLoading*/
|
|
4349
|
-
c[1] ?
|
|
4327
|
+
c[1] ? Gi : Di
|
|
4350
4328
|
);
|
|
4351
4329
|
}
|
|
4352
4330
|
let u = l(e), h = u(e);
|
|
4353
4331
|
return {
|
|
4354
4332
|
c() {
|
|
4355
|
-
t = I("div"), s && s.c(), r =
|
|
4333
|
+
t = I("div"), s && s.c(), r = Ie(), n = I("h2"), o = re(i), a = Ie(), h.c(), E(n, "class", "WithdrawalTitle " + /*isMobile*/
|
|
4356
4334
|
(e[4] ? "WithdrawalTitleNone" : "")), E(t, "class", "WithdrawalWrapper " + /*isMobile*/
|
|
4357
4335
|
(e[4] ? "WithdrawalWrapperMobile" : ""));
|
|
4358
4336
|
},
|
|
@@ -4363,7 +4341,7 @@ function Wi(e) {
|
|
|
4363
4341
|
/*isMobile*/
|
|
4364
4342
|
c[4] && s.p(c, f), f & /*$_*/
|
|
4365
4343
|
8 && i !== (i = /*$_*/
|
|
4366
|
-
c[3]("titlePlayerWithdrawal") + "") &&
|
|
4344
|
+
c[3]("titlePlayerWithdrawal") + "") && Qe(o, i), u === (u = l(c)) && h ? h.p(c, f) : (h.d(1), h = u(c), h && (h.c(), h.m(t, null)));
|
|
4367
4345
|
},
|
|
4368
4346
|
i: B,
|
|
4369
4347
|
o: B,
|
|
@@ -4372,21 +4350,21 @@ function Wi(e) {
|
|
|
4372
4350
|
}
|
|
4373
4351
|
};
|
|
4374
4352
|
}
|
|
4375
|
-
function
|
|
4353
|
+
function ji(e, t, r) {
|
|
4376
4354
|
let n;
|
|
4377
|
-
|
|
4378
|
-
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { hasdefaultamount: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t, { currency: p = "" } = t, m, g = window.navigator.userAgent, w =
|
|
4355
|
+
ar(e, Mi, (d) => r(3, n = d));
|
|
4356
|
+
let { endpoint: i = "" } = t, { session: o = "" } = t, { playerid: a = "" } = t, { lang: s = "en" } = t, { hasdefaultamount: l = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { mbsource: c } = t, { translationurl: f = "" } = t, { currency: p = "" } = t, m, g = window.navigator.userAgent, w = Ci(g) !== "PC", L = !0, P = 0, T = "";
|
|
4379
4357
|
const $ = () => {
|
|
4380
4358
|
fetch(f).then((M) => M.json()).then((M) => {
|
|
4381
4359
|
Object.keys(M).forEach((C) => {
|
|
4382
|
-
|
|
4360
|
+
Et(C, M[C]);
|
|
4383
4361
|
});
|
|
4384
4362
|
}).catch((M) => {
|
|
4385
4363
|
console.log(M);
|
|
4386
4364
|
});
|
|
4387
4365
|
};
|
|
4388
|
-
Object.keys(
|
|
4389
|
-
|
|
4366
|
+
Object.keys(xt).forEach((d) => {
|
|
4367
|
+
Et(d, xt[d]);
|
|
4390
4368
|
});
|
|
4391
4369
|
const A = () => {
|
|
4392
4370
|
window.postMessage(
|
|
@@ -4456,15 +4434,15 @@ function Vi(e, t, r) {
|
|
|
4456
4434
|
console.error(C);
|
|
4457
4435
|
}
|
|
4458
4436
|
);
|
|
4459
|
-
},
|
|
4460
|
-
|
|
4437
|
+
}, nr = () => {
|
|
4438
|
+
Ri(s);
|
|
4461
4439
|
};
|
|
4462
|
-
|
|
4440
|
+
mr(() => (window.addEventListener("message", U, !1), () => {
|
|
4463
4441
|
window.removeEventListener("message", U);
|
|
4464
4442
|
}));
|
|
4465
|
-
const
|
|
4466
|
-
function
|
|
4467
|
-
|
|
4443
|
+
const ir = () => A();
|
|
4444
|
+
function or(d) {
|
|
4445
|
+
Ne[d ? "unshift" : "push"](() => {
|
|
4468
4446
|
m = d, r(0, m);
|
|
4469
4447
|
});
|
|
4470
4448
|
}
|
|
@@ -4472,10 +4450,10 @@ function Vi(e, t, r) {
|
|
|
4472
4450
|
"endpoint" in d && r(7, i = d.endpoint), "session" in d && r(8, o = d.session), "playerid" in d && r(9, a = d.playerid), "lang" in d && r(10, s = d.lang), "hasdefaultamount" in d && r(11, l = d.hasdefaultamount), "clientstyling" in d && r(12, u = d.clientstyling), "clientstylingurl" in d && r(13, h = d.clientstylingurl), "mbsource" in d && r(14, c = d.mbsource), "translationurl" in d && r(15, f = d.translationurl), "currency" in d && r(6, p = d.currency);
|
|
4473
4451
|
}, e.$$.update = () => {
|
|
4474
4452
|
e.$$.dirty & /*lang*/
|
|
4475
|
-
1024 && s &&
|
|
4476
|
-
4097 && u && m &&
|
|
4477
|
-
8193 && h && m &&
|
|
4478
|
-
16385 && c && m &&
|
|
4453
|
+
1024 && s && nr(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4454
|
+
4097 && u && m && Ar(m, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4455
|
+
8193 && h && m && Or(m, h), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4456
|
+
16385 && c && m && Ir(m, `${c}.Style`), e.$$.dirty & /*translationurl*/
|
|
4479
4457
|
32768 && f && $(), e.$$.dirty & /*session, playerid, endpoint, currency, lang*/
|
|
4480
4458
|
1984 && o && a && i && p && s && he();
|
|
4481
4459
|
}, [
|
|
@@ -4495,18 +4473,18 @@ function Vi(e, t, r) {
|
|
|
4495
4473
|
h,
|
|
4496
4474
|
c,
|
|
4497
4475
|
f,
|
|
4498
|
-
|
|
4499
|
-
|
|
4476
|
+
ir,
|
|
4477
|
+
or
|
|
4500
4478
|
];
|
|
4501
4479
|
}
|
|
4502
|
-
class
|
|
4480
|
+
class ki extends Br {
|
|
4503
4481
|
constructor(t) {
|
|
4504
|
-
super(),
|
|
4482
|
+
super(), Tr(
|
|
4505
4483
|
this,
|
|
4506
4484
|
t,
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4485
|
+
ji,
|
|
4486
|
+
Fi,
|
|
4487
|
+
St,
|
|
4510
4488
|
{
|
|
4511
4489
|
endpoint: 7,
|
|
4512
4490
|
session: 8,
|
|
@@ -4519,7 +4497,7 @@ class Xi extends Ir {
|
|
|
4519
4497
|
translationurl: 15,
|
|
4520
4498
|
currency: 6
|
|
4521
4499
|
},
|
|
4522
|
-
|
|
4500
|
+
$i
|
|
4523
4501
|
);
|
|
4524
4502
|
}
|
|
4525
4503
|
get endpoint() {
|
|
@@ -4583,7 +4561,7 @@ class Xi extends Ir {
|
|
|
4583
4561
|
this.$$set({ currency: t }), H();
|
|
4584
4562
|
}
|
|
4585
4563
|
}
|
|
4586
|
-
|
|
4564
|
+
Hr(ki, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currency: {} }, [], [], !0);
|
|
4587
4565
|
export {
|
|
4588
|
-
|
|
4566
|
+
ki as P
|
|
4589
4567
|
};
|