@everymatrix/player-account-closure 1.67.0 → 1.67.3
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/{PlayerAccountClosure-JdG06bPX.js → PlayerAccountClosure-BqhOrK6c.js} +789 -824
- package/components/{PlayerAccountClosure-DshjEyVb.js → PlayerAccountClosure-C1zCWQSS.js} +761 -796
- package/components/PlayerAccountClosure-CofAuA2Y.cjs +18 -0
- package/es2015/player-account-closure.cjs +1 -1
- package/es2015/player-account-closure.js +1 -1
- package/esnext/player-account-closure.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountClosure-Wg7ZF8Mn.cjs +0 -18
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var lr = Object.defineProperty, cr = Object.defineProperties;
|
|
2
|
+
var hr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var et = Object.getOwnPropertySymbols;
|
|
4
|
+
var fr = Object.prototype.hasOwnProperty, dr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ae = (e, t, r) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
fr.call(t, r) && Ae(e, r, t[r]);
|
|
8
|
+
if (et)
|
|
9
|
+
for (var r of et(t))
|
|
10
|
+
dr.call(t, r) && Ae(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var O = (e, t, r) => (
|
|
14
|
-
var
|
|
12
|
+
}, rt = (e, t) => cr(e, hr(t));
|
|
13
|
+
var O = (e, t, r) => (Ae(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var nt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (u) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(u));
|
|
@@ -27,49 +27,49 @@ var at = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function N() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Ht(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function it() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function K(e) {
|
|
39
|
+
e.forEach(Ht);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function qe(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Mt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function pr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Pt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
54
|
-
return
|
|
54
|
+
return N;
|
|
55
55
|
}
|
|
56
56
|
const r = e.subscribe(...t);
|
|
57
57
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
59
|
+
function mr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Pt(t, r));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function y(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function br(e, t, r) {
|
|
66
|
+
const n = gr(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
68
|
const i = B("style");
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
69
|
+
i.id = t, i.textContent = r, yr(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function gr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,17 +79,17 @@ function _r(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function yr(e, t) {
|
|
83
|
+
return y(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function ve(e, t, r) {
|
|
90
90
|
e.insertBefore(t, r || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ue(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
95
|
function B(e) {
|
|
@@ -107,17 +107,17 @@ function U() {
|
|
|
107
107
|
function be(e, t, r, n) {
|
|
108
108
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function E(e, t, r) {
|
|
111
111
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function vr(e) {
|
|
114
114
|
return Array.from(e.childNodes);
|
|
115
115
|
}
|
|
116
116
|
function V(e, t) {
|
|
117
117
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
118
118
|
t);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function xr(e) {
|
|
121
121
|
const t = {};
|
|
122
122
|
return e.childNodes.forEach(
|
|
123
123
|
/** @param {Element} node */
|
|
@@ -126,95 +126,95 @@ function Cr(e) {
|
|
|
126
126
|
}
|
|
127
127
|
), t;
|
|
128
128
|
}
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
129
|
+
let oe;
|
|
130
|
+
function ie(e) {
|
|
131
|
+
oe = e;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
if (!
|
|
133
|
+
function Er() {
|
|
134
|
+
if (!oe)
|
|
135
135
|
throw new Error("Function called outside component initialization");
|
|
136
|
-
return
|
|
136
|
+
return oe;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
|
|
138
|
+
function _r(e) {
|
|
139
|
+
Er().$$.on_mount.push(e);
|
|
140
140
|
}
|
|
141
|
-
const W = [],
|
|
141
|
+
const W = [], Ne = [];
|
|
142
142
|
let X = [];
|
|
143
|
-
const
|
|
144
|
-
let
|
|
145
|
-
function
|
|
146
|
-
|
|
143
|
+
const ot = [], wr = /* @__PURE__ */ Promise.resolve();
|
|
144
|
+
let Ie = !1;
|
|
145
|
+
function Cr() {
|
|
146
|
+
Ie || (Ie = !0, wr.then(D));
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Le(e) {
|
|
149
149
|
X.push(e);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
151
|
+
const Se = /* @__PURE__ */ new Set();
|
|
152
152
|
let k = 0;
|
|
153
153
|
function D() {
|
|
154
154
|
if (k !== 0)
|
|
155
155
|
return;
|
|
156
|
-
const e =
|
|
156
|
+
const e = oe;
|
|
157
157
|
do {
|
|
158
158
|
try {
|
|
159
159
|
for (; k < W.length; ) {
|
|
160
160
|
const t = W[k];
|
|
161
|
-
k++,
|
|
161
|
+
k++, ie(t), Ar(t.$$);
|
|
162
162
|
}
|
|
163
163
|
} catch (t) {
|
|
164
164
|
throw W.length = 0, k = 0, t;
|
|
165
165
|
}
|
|
166
|
-
for (
|
|
167
|
-
|
|
166
|
+
for (ie(null), W.length = 0, k = 0; Ne.length; )
|
|
167
|
+
Ne.pop()();
|
|
168
168
|
for (let t = 0; t < X.length; t += 1) {
|
|
169
169
|
const r = X[t];
|
|
170
|
-
|
|
170
|
+
Se.has(r) || (Se.add(r), r());
|
|
171
171
|
}
|
|
172
172
|
X.length = 0;
|
|
173
173
|
} while (W.length);
|
|
174
|
-
for (;
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
for (; ot.length; )
|
|
175
|
+
ot.pop()();
|
|
176
|
+
Ie = !1, Se.clear(), ie(e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function Ar(e) {
|
|
179
179
|
if (e.fragment !== null) {
|
|
180
|
-
e.update(),
|
|
180
|
+
e.update(), K(e.before_update);
|
|
181
181
|
const t = e.dirty;
|
|
182
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
182
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Sr(e) {
|
|
186
186
|
const t = [], r = [];
|
|
187
187
|
X.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), X = t;
|
|
188
188
|
}
|
|
189
|
-
const
|
|
190
|
-
function
|
|
191
|
-
e && e.i && (
|
|
189
|
+
const Tr = /* @__PURE__ */ new Set();
|
|
190
|
+
function Br(e, t) {
|
|
191
|
+
e && e.i && (Tr.delete(e), e.i(t));
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Hr(e, t, r) {
|
|
194
194
|
const { fragment: n, after_update: i } = e.$$;
|
|
195
|
-
n && n.m(t, r),
|
|
196
|
-
const o = e.$$.on_mount.map(
|
|
197
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
198
|
-
}), i.forEach(
|
|
195
|
+
n && n.m(t, r), Le(() => {
|
|
196
|
+
const o = e.$$.on_mount.map(Ht).filter(qe);
|
|
197
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : K(o), e.$$.on_mount = [];
|
|
198
|
+
}), i.forEach(Le);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Mr(e, t) {
|
|
201
201
|
const r = e.$$;
|
|
202
|
-
r.fragment !== null && (
|
|
202
|
+
r.fragment !== null && (Sr(r.after_update), K(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
e.$$.dirty[0] === -1 && (W.push(e),
|
|
204
|
+
function Pr(e, t) {
|
|
205
|
+
e.$$.dirty[0] === -1 && (W.push(e), Cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
const u =
|
|
209
|
-
|
|
207
|
+
function Or(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
208
|
+
const u = oe;
|
|
209
|
+
ie(e);
|
|
210
210
|
const l = e.$$ = {
|
|
211
211
|
fragment: null,
|
|
212
212
|
ctx: [],
|
|
213
213
|
// state
|
|
214
214
|
props: o,
|
|
215
|
-
update:
|
|
215
|
+
update: N,
|
|
216
216
|
not_equal: i,
|
|
217
|
-
bound:
|
|
217
|
+
bound: it(),
|
|
218
218
|
// lifecycle
|
|
219
219
|
on_mount: [],
|
|
220
220
|
on_destroy: [],
|
|
@@ -223,28 +223,28 @@ function $r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
223
223
|
after_update: [],
|
|
224
224
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
225
225
|
// everything else
|
|
226
|
-
callbacks:
|
|
226
|
+
callbacks: it(),
|
|
227
227
|
dirty: a,
|
|
228
228
|
skip_bound: !1,
|
|
229
229
|
root: t.target || u.$$.root
|
|
230
230
|
};
|
|
231
231
|
s && s(l.root);
|
|
232
232
|
let c = !1;
|
|
233
|
-
if (l.ctx = r
|
|
234
|
-
const m =
|
|
235
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), c &&
|
|
236
|
-
})
|
|
233
|
+
if (l.ctx = r(e, t.props || {}, (f, h, ...d) => {
|
|
234
|
+
const m = d.length ? d[0] : h;
|
|
235
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = m) && (!l.skip_bound && l.bound[f] && l.bound[f](m), c && Pr(e, f)), h;
|
|
236
|
+
}), l.update(), c = !0, K(l.before_update), l.fragment = n(l.ctx), t.target) {
|
|
237
237
|
if (t.hydrate) {
|
|
238
|
-
const f =
|
|
239
|
-
l.fragment && l.fragment.l(f), f.forEach(
|
|
238
|
+
const f = vr(t.target);
|
|
239
|
+
l.fragment && l.fragment.l(f), f.forEach(ue);
|
|
240
240
|
} else
|
|
241
241
|
l.fragment && l.fragment.c();
|
|
242
|
-
t.intro &&
|
|
242
|
+
t.intro && Br(e.$$.fragment), Hr(e, t.target, t.anchor), D();
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
ie(u);
|
|
245
245
|
}
|
|
246
|
-
let
|
|
247
|
-
typeof HTMLElement == "function" && (
|
|
246
|
+
let Ot;
|
|
247
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
248
248
|
constructor(t, r, n) {
|
|
249
249
|
super();
|
|
250
250
|
/** The Svelte component constructor */
|
|
@@ -281,31 +281,31 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
connectedCallback() {
|
|
284
|
-
return
|
|
284
|
+
return nt(this, null, function* () {
|
|
285
285
|
if (this.$$cn = !0, !this.$$c) {
|
|
286
286
|
let t = function(o) {
|
|
287
287
|
return () => {
|
|
288
288
|
let s;
|
|
289
289
|
return {
|
|
290
290
|
c: function() {
|
|
291
|
-
s = B("slot"), o !== "default" &&
|
|
291
|
+
s = B("slot"), o !== "default" && E(s, "name", o);
|
|
292
292
|
},
|
|
293
293
|
/**
|
|
294
294
|
* @param {HTMLElement} target
|
|
295
295
|
* @param {HTMLElement} [anchor]
|
|
296
296
|
*/
|
|
297
297
|
m: function(l, c) {
|
|
298
|
-
|
|
298
|
+
ve(l, s, c);
|
|
299
299
|
},
|
|
300
300
|
d: function(l) {
|
|
301
|
-
l &&
|
|
301
|
+
l && ue(s);
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
304
|
};
|
|
305
305
|
};
|
|
306
306
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
307
307
|
return;
|
|
308
|
-
const r = {}, n =
|
|
308
|
+
const r = {}, n = xr(this);
|
|
309
309
|
for (const o of this.$$s)
|
|
310
310
|
o in n && (r[o] = [t(o)]);
|
|
311
311
|
for (const o of this.attributes) {
|
|
@@ -316,7 +316,7 @@ typeof HTMLElement == "function" && ($t = class extends HTMLElement {
|
|
|
316
316
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
317
317
|
this.$$c = new this.$$ctor({
|
|
318
318
|
target: this.shadowRoot || this,
|
|
319
|
-
props:
|
|
319
|
+
props: rt(tt({}, this.$$d), {
|
|
320
320
|
$$slots: r,
|
|
321
321
|
$$scope: {
|
|
322
322
|
ctx: []
|
|
@@ -394,8 +394,8 @@ function fe(e, t, r, n) {
|
|
|
394
394
|
return t;
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
let s = class extends
|
|
397
|
+
function Nr(e, t, r, n, i, o) {
|
|
398
|
+
let s = class extends Ot {
|
|
399
399
|
constructor() {
|
|
400
400
|
super(e, r, i), this.$$p_d = t;
|
|
401
401
|
}
|
|
@@ -425,7 +425,7 @@ function Rr(e, t, r, n, i, o) {
|
|
|
425
425
|
}), e.element = /** @type {any} */
|
|
426
426
|
s, s;
|
|
427
427
|
}
|
|
428
|
-
class
|
|
428
|
+
class Ir {
|
|
429
429
|
constructor() {
|
|
430
430
|
/**
|
|
431
431
|
* ### PRIVATE API
|
|
@@ -446,7 +446,7 @@ class Dr {
|
|
|
446
446
|
}
|
|
447
447
|
/** @returns {void} */
|
|
448
448
|
$destroy() {
|
|
449
|
-
|
|
449
|
+
Mr(this, 1), this.$destroy = N;
|
|
450
450
|
}
|
|
451
451
|
/**
|
|
452
452
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -455,8 +455,8 @@ class Dr {
|
|
|
455
455
|
* @returns {() => void}
|
|
456
456
|
*/
|
|
457
457
|
$on(t, r) {
|
|
458
|
-
if (!
|
|
459
|
-
return
|
|
458
|
+
if (!qe(r))
|
|
459
|
+
return N;
|
|
460
460
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
461
461
|
return n.push(r), () => {
|
|
462
462
|
const i = n.indexOf(r);
|
|
@@ -468,11 +468,11 @@ class Dr {
|
|
|
468
468
|
* @returns {void}
|
|
469
469
|
*/
|
|
470
470
|
$set(t) {
|
|
471
|
-
this.$$set && !
|
|
471
|
+
this.$$set && !pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
const
|
|
475
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
474
|
+
const Lr = "4";
|
|
475
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lr);
|
|
476
476
|
/*! *****************************************************************************
|
|
477
477
|
Copyright (c) Microsoft Corporation.
|
|
478
478
|
|
|
@@ -487,24 +487,43 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
487
487
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
488
488
|
PERFORMANCE OF THIS SOFTWARE.
|
|
489
489
|
***************************************************************************** */
|
|
490
|
-
var
|
|
491
|
-
return
|
|
490
|
+
var $e = function(e, t) {
|
|
491
|
+
return $e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
492
492
|
r.__proto__ = n;
|
|
493
493
|
} || function(r, n) {
|
|
494
494
|
for (var i in n)
|
|
495
495
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
496
|
-
},
|
|
496
|
+
}, $e(e, t);
|
|
497
497
|
};
|
|
498
|
-
function
|
|
498
|
+
function L(e, t) {
|
|
499
499
|
if (typeof t != "function" && t !== null)
|
|
500
500
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
501
|
-
|
|
501
|
+
$e(e, t);
|
|
502
502
|
function r() {
|
|
503
503
|
this.constructor = e;
|
|
504
504
|
}
|
|
505
505
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
var v = function() {
|
|
508
|
+
return v = Object.assign || function(t) {
|
|
509
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
510
|
+
r = arguments[n];
|
|
511
|
+
for (var o in r)
|
|
512
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
513
|
+
}
|
|
514
|
+
return t;
|
|
515
|
+
}, v.apply(this, arguments);
|
|
516
|
+
};
|
|
517
|
+
function $r(e, t) {
|
|
518
|
+
var r = {};
|
|
519
|
+
for (var n in e)
|
|
520
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
521
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
522
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
523
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
524
|
+
return r;
|
|
525
|
+
}
|
|
526
|
+
function Re(e) {
|
|
508
527
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
509
528
|
if (r)
|
|
510
529
|
return r.call(e);
|
|
@@ -516,7 +535,7 @@ function Fe(e) {
|
|
|
516
535
|
};
|
|
517
536
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
518
537
|
}
|
|
519
|
-
function
|
|
538
|
+
function De(e, t) {
|
|
520
539
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
521
540
|
if (!r)
|
|
522
541
|
return e;
|
|
@@ -536,22 +555,22 @@ function Ge(e, t) {
|
|
|
536
555
|
}
|
|
537
556
|
return o;
|
|
538
557
|
}
|
|
539
|
-
function
|
|
540
|
-
if (arguments.length === 2)
|
|
558
|
+
function Z(e, t, r) {
|
|
559
|
+
if (r || arguments.length === 2)
|
|
541
560
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
542
561
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
543
562
|
return e.concat(o || t);
|
|
544
563
|
}
|
|
545
|
-
function
|
|
564
|
+
function I(e) {
|
|
546
565
|
return typeof e == "function";
|
|
547
566
|
}
|
|
548
|
-
function
|
|
567
|
+
function Nt(e) {
|
|
549
568
|
var t = function(n) {
|
|
550
569
|
Error.call(n), n.stack = new Error().stack;
|
|
551
570
|
}, r = e(t);
|
|
552
571
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
553
572
|
}
|
|
554
|
-
var
|
|
573
|
+
var Te = Nt(function(e) {
|
|
555
574
|
return function(r) {
|
|
556
575
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
557
576
|
` + r.map(function(n, i) {
|
|
@@ -560,13 +579,13 @@ var He = Rt(function(e) {
|
|
|
560
579
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
561
580
|
};
|
|
562
581
|
});
|
|
563
|
-
function
|
|
582
|
+
function Ue(e, t) {
|
|
564
583
|
if (e) {
|
|
565
584
|
var r = e.indexOf(t);
|
|
566
585
|
0 <= r && e.splice(r, 1);
|
|
567
586
|
}
|
|
568
587
|
}
|
|
569
|
-
var
|
|
588
|
+
var xe = function() {
|
|
570
589
|
function e(t) {
|
|
571
590
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
572
591
|
}
|
|
@@ -578,12 +597,12 @@ var _e = function() {
|
|
|
578
597
|
if (s)
|
|
579
598
|
if (this._parentage = null, Array.isArray(s))
|
|
580
599
|
try {
|
|
581
|
-
for (var a =
|
|
600
|
+
for (var a = Re(s), u = a.next(); !u.done; u = a.next()) {
|
|
582
601
|
var l = u.value;
|
|
583
602
|
l.remove(this);
|
|
584
603
|
}
|
|
585
|
-
} catch (
|
|
586
|
-
t = { error:
|
|
604
|
+
} catch (p) {
|
|
605
|
+
t = { error: p };
|
|
587
606
|
} finally {
|
|
588
607
|
try {
|
|
589
608
|
u && !u.done && (r = a.return) && r.call(a);
|
|
@@ -595,29 +614,29 @@ var _e = function() {
|
|
|
595
614
|
else
|
|
596
615
|
s.remove(this);
|
|
597
616
|
var c = this.initialTeardown;
|
|
598
|
-
if (
|
|
617
|
+
if (I(c))
|
|
599
618
|
try {
|
|
600
619
|
c();
|
|
601
|
-
} catch (
|
|
602
|
-
o =
|
|
620
|
+
} catch (p) {
|
|
621
|
+
o = p instanceof Te ? p.errors : [p];
|
|
603
622
|
}
|
|
604
623
|
var f = this._finalizers;
|
|
605
624
|
if (f) {
|
|
606
625
|
this._finalizers = null;
|
|
607
626
|
try {
|
|
608
|
-
for (var h =
|
|
609
|
-
var m =
|
|
627
|
+
for (var h = Re(f), d = h.next(); !d.done; d = h.next()) {
|
|
628
|
+
var m = d.value;
|
|
610
629
|
try {
|
|
611
|
-
|
|
612
|
-
} catch (
|
|
613
|
-
o = o != null ? o : [],
|
|
630
|
+
st(m);
|
|
631
|
+
} catch (p) {
|
|
632
|
+
o = o != null ? o : [], p instanceof Te ? o = Z(Z([], De(o)), De(p.errors)) : o.push(p);
|
|
614
633
|
}
|
|
615
634
|
}
|
|
616
|
-
} catch (
|
|
617
|
-
n = { error:
|
|
635
|
+
} catch (p) {
|
|
636
|
+
n = { error: p };
|
|
618
637
|
} finally {
|
|
619
638
|
try {
|
|
620
|
-
|
|
639
|
+
d && !d.done && (i = h.return) && i.call(h);
|
|
621
640
|
} finally {
|
|
622
641
|
if (n)
|
|
623
642
|
throw n.error;
|
|
@@ -625,13 +644,13 @@ var _e = function() {
|
|
|
625
644
|
}
|
|
626
645
|
}
|
|
627
646
|
if (o)
|
|
628
|
-
throw new
|
|
647
|
+
throw new Te(o);
|
|
629
648
|
}
|
|
630
649
|
}, e.prototype.add = function(t) {
|
|
631
650
|
var r;
|
|
632
651
|
if (t && t !== this)
|
|
633
652
|
if (this.closed)
|
|
634
|
-
|
|
653
|
+
st(t);
|
|
635
654
|
else {
|
|
636
655
|
if (t instanceof e) {
|
|
637
656
|
if (t.closed || t._hasParent(this))
|
|
@@ -648,52 +667,56 @@ var _e = function() {
|
|
|
648
667
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
649
668
|
}, e.prototype._removeParent = function(t) {
|
|
650
669
|
var r = this._parentage;
|
|
651
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
670
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ue(r, t);
|
|
652
671
|
}, e.prototype.remove = function(t) {
|
|
653
672
|
var r = this._finalizers;
|
|
654
|
-
r &&
|
|
673
|
+
r && Ue(r, t), t instanceof e && t._removeParent(this);
|
|
655
674
|
}, e.EMPTY = function() {
|
|
656
675
|
var t = new e();
|
|
657
676
|
return t.closed = !0, t;
|
|
658
677
|
}(), e;
|
|
659
|
-
}(),
|
|
660
|
-
function
|
|
661
|
-
return e instanceof
|
|
662
|
-
}
|
|
663
|
-
function
|
|
664
|
-
|
|
665
|
-
}
|
|
666
|
-
var
|
|
667
|
-
|
|
668
|
-
|
|
678
|
+
}(), It = xe.EMPTY;
|
|
679
|
+
function Lt(e) {
|
|
680
|
+
return e instanceof xe || e && "closed" in e && I(e.remove) && I(e.add) && I(e.unsubscribe);
|
|
681
|
+
}
|
|
682
|
+
function st(e) {
|
|
683
|
+
I(e) ? e() : e.unsubscribe();
|
|
684
|
+
}
|
|
685
|
+
var Rr = {
|
|
686
|
+
onUnhandledError: null,
|
|
687
|
+
onStoppedNotification: null,
|
|
688
|
+
Promise: void 0,
|
|
689
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
|
690
|
+
useDeprecatedNextContext: !1
|
|
691
|
+
}, Dr = {
|
|
669
692
|
setTimeout: function(e, t) {
|
|
670
693
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
671
694
|
r[n - 2] = arguments[n];
|
|
672
|
-
return setTimeout.apply(void 0,
|
|
695
|
+
return setTimeout.apply(void 0, Z([e, t], De(r)));
|
|
673
696
|
},
|
|
674
697
|
clearTimeout: function(e) {
|
|
675
698
|
return clearTimeout(e);
|
|
676
699
|
},
|
|
677
700
|
delegate: void 0
|
|
678
701
|
};
|
|
679
|
-
function
|
|
680
|
-
|
|
702
|
+
function Ur(e) {
|
|
703
|
+
Dr.setTimeout(function() {
|
|
681
704
|
throw e;
|
|
682
705
|
});
|
|
683
706
|
}
|
|
684
|
-
function
|
|
707
|
+
function at() {
|
|
685
708
|
}
|
|
686
|
-
function
|
|
709
|
+
function de(e) {
|
|
687
710
|
e();
|
|
688
711
|
}
|
|
689
|
-
var
|
|
690
|
-
|
|
712
|
+
var $t = function(e) {
|
|
713
|
+
L(t, e);
|
|
691
714
|
function t(r) {
|
|
692
715
|
var n = e.call(this) || this;
|
|
693
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
716
|
+
return n.isStopped = !1, r ? (n.destination = r, Lt(r) && r.add(n)) : n.destination = jr, n;
|
|
694
717
|
}
|
|
695
718
|
return t.create = function(r, n, i) {
|
|
696
|
-
return new
|
|
719
|
+
return new Fe(r, n, i);
|
|
697
720
|
}, t.prototype.next = function(r) {
|
|
698
721
|
this.isStopped || this._next(r);
|
|
699
722
|
}, t.prototype.error = function(r) {
|
|
@@ -717,7 +740,7 @@ var Ft = function(e) {
|
|
|
717
740
|
this.unsubscribe();
|
|
718
741
|
}
|
|
719
742
|
}, t;
|
|
720
|
-
}(
|
|
743
|
+
}(xe), Fr = function() {
|
|
721
744
|
function e(t) {
|
|
722
745
|
this.partialObserver = t;
|
|
723
746
|
}
|
|
@@ -748,43 +771,43 @@ var Ft = function(e) {
|
|
|
748
771
|
ce(r);
|
|
749
772
|
}
|
|
750
773
|
}, e;
|
|
751
|
-
}(),
|
|
752
|
-
|
|
774
|
+
}(), Fe = function(e) {
|
|
775
|
+
L(t, e);
|
|
753
776
|
function t(r, n, i) {
|
|
754
777
|
var o = e.call(this) || this, s;
|
|
755
|
-
return
|
|
778
|
+
return I(r) || !r ? s = {
|
|
756
779
|
next: r != null ? r : void 0,
|
|
757
780
|
error: n != null ? n : void 0,
|
|
758
781
|
complete: i != null ? i : void 0
|
|
759
|
-
} : s = r, o.destination = new
|
|
782
|
+
} : s = r, o.destination = new Fr(s), o;
|
|
760
783
|
}
|
|
761
784
|
return t;
|
|
762
|
-
}(
|
|
785
|
+
}($t);
|
|
763
786
|
function ce(e) {
|
|
764
|
-
|
|
787
|
+
Ur(e);
|
|
765
788
|
}
|
|
766
|
-
function
|
|
789
|
+
function Gr(e) {
|
|
767
790
|
throw e;
|
|
768
791
|
}
|
|
769
|
-
var
|
|
792
|
+
var jr = {
|
|
770
793
|
closed: !0,
|
|
771
|
-
next:
|
|
772
|
-
error:
|
|
773
|
-
complete:
|
|
774
|
-
},
|
|
794
|
+
next: at,
|
|
795
|
+
error: Gr,
|
|
796
|
+
complete: at
|
|
797
|
+
}, kr = function() {
|
|
775
798
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
776
799
|
}();
|
|
777
|
-
function
|
|
800
|
+
function zr(e) {
|
|
778
801
|
return e;
|
|
779
802
|
}
|
|
780
|
-
function
|
|
781
|
-
return e.length === 0 ?
|
|
803
|
+
function Wr(e) {
|
|
804
|
+
return e.length === 0 ? zr : e.length === 1 ? e[0] : function(r) {
|
|
782
805
|
return e.reduce(function(n, i) {
|
|
783
806
|
return i(n);
|
|
784
807
|
}, r);
|
|
785
808
|
};
|
|
786
809
|
}
|
|
787
|
-
var
|
|
810
|
+
var ut = function() {
|
|
788
811
|
function e(t) {
|
|
789
812
|
t && (this._subscribe = t);
|
|
790
813
|
}
|
|
@@ -792,8 +815,8 @@ var ft = function() {
|
|
|
792
815
|
var r = new e();
|
|
793
816
|
return r.source = this, r.operator = t, r;
|
|
794
817
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
795
|
-
var i = this, o =
|
|
796
|
-
return
|
|
818
|
+
var i = this, o = Xr(t) ? t : new Fe(t, r, n);
|
|
819
|
+
return de(function() {
|
|
797
820
|
var s = i, a = s.operator, u = s.source;
|
|
798
821
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
799
822
|
}), o;
|
|
@@ -805,8 +828,8 @@ var ft = function() {
|
|
|
805
828
|
}
|
|
806
829
|
}, e.prototype.forEach = function(t, r) {
|
|
807
830
|
var n = this;
|
|
808
|
-
return r =
|
|
809
|
-
var s = new
|
|
831
|
+
return r = lt(r), new r(function(i, o) {
|
|
832
|
+
var s = new Fe({
|
|
810
833
|
next: function(a) {
|
|
811
834
|
try {
|
|
812
835
|
t(a);
|
|
@@ -822,15 +845,15 @@ var ft = function() {
|
|
|
822
845
|
}, e.prototype._subscribe = function(t) {
|
|
823
846
|
var r;
|
|
824
847
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
825
|
-
}, e.prototype[
|
|
848
|
+
}, e.prototype[kr] = function() {
|
|
826
849
|
return this;
|
|
827
850
|
}, e.prototype.pipe = function() {
|
|
828
851
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
829
852
|
t[r] = arguments[r];
|
|
830
|
-
return
|
|
853
|
+
return Wr(t)(this);
|
|
831
854
|
}, e.prototype.toPromise = function(t) {
|
|
832
855
|
var r = this;
|
|
833
|
-
return t =
|
|
856
|
+
return t = lt(t), new t(function(n, i) {
|
|
834
857
|
var o;
|
|
835
858
|
r.subscribe(function(s) {
|
|
836
859
|
return o = s;
|
|
@@ -844,40 +867,40 @@ var ft = function() {
|
|
|
844
867
|
return new e(t);
|
|
845
868
|
}, e;
|
|
846
869
|
}();
|
|
847
|
-
function
|
|
870
|
+
function lt(e) {
|
|
848
871
|
var t;
|
|
849
|
-
return (t = e != null ? e :
|
|
872
|
+
return (t = e != null ? e : Rr.Promise) !== null && t !== void 0 ? t : Promise;
|
|
850
873
|
}
|
|
851
|
-
function
|
|
852
|
-
return e &&
|
|
874
|
+
function Vr(e) {
|
|
875
|
+
return e && I(e.next) && I(e.error) && I(e.complete);
|
|
853
876
|
}
|
|
854
|
-
function
|
|
855
|
-
return e && e instanceof
|
|
877
|
+
function Xr(e) {
|
|
878
|
+
return e && e instanceof $t || Vr(e) && Lt(e);
|
|
856
879
|
}
|
|
857
|
-
var
|
|
880
|
+
var Zr = Nt(function(e) {
|
|
858
881
|
return function() {
|
|
859
882
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
860
883
|
};
|
|
861
|
-
}),
|
|
862
|
-
|
|
884
|
+
}), Rt = function(e) {
|
|
885
|
+
L(t, e);
|
|
863
886
|
function t() {
|
|
864
887
|
var r = e.call(this) || this;
|
|
865
888
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
866
889
|
}
|
|
867
890
|
return t.prototype.lift = function(r) {
|
|
868
|
-
var n = new
|
|
891
|
+
var n = new ct(this, this);
|
|
869
892
|
return n.operator = r, n;
|
|
870
893
|
}, t.prototype._throwIfClosed = function() {
|
|
871
894
|
if (this.closed)
|
|
872
|
-
throw new
|
|
895
|
+
throw new Zr();
|
|
873
896
|
}, t.prototype.next = function(r) {
|
|
874
897
|
var n = this;
|
|
875
|
-
|
|
898
|
+
de(function() {
|
|
876
899
|
var i, o;
|
|
877
900
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
878
901
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
879
902
|
try {
|
|
880
|
-
for (var s =
|
|
903
|
+
for (var s = Re(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
881
904
|
var u = a.value;
|
|
882
905
|
u.next(r);
|
|
883
906
|
}
|
|
@@ -895,7 +918,7 @@ var Yr = Rt(function(e) {
|
|
|
895
918
|
});
|
|
896
919
|
}, t.prototype.error = function(r) {
|
|
897
920
|
var n = this;
|
|
898
|
-
|
|
921
|
+
de(function() {
|
|
899
922
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
900
923
|
n.hasError = n.isStopped = !0, n.thrownError = r;
|
|
901
924
|
for (var i = n.observers; i.length; )
|
|
@@ -904,7 +927,7 @@ var Yr = Rt(function(e) {
|
|
|
904
927
|
});
|
|
905
928
|
}, t.prototype.complete = function() {
|
|
906
929
|
var r = this;
|
|
907
|
-
|
|
930
|
+
de(function() {
|
|
908
931
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
909
932
|
r.isStopped = !0;
|
|
910
933
|
for (var n = r.observers; n.length; )
|
|
@@ -926,20 +949,20 @@ var Yr = Rt(function(e) {
|
|
|
926
949
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
927
950
|
}, t.prototype._innerSubscribe = function(r) {
|
|
928
951
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
929
|
-
return o || s ?
|
|
930
|
-
n.currentObservers = null,
|
|
952
|
+
return o || s ? It : (this.currentObservers = null, a.push(r), new xe(function() {
|
|
953
|
+
n.currentObservers = null, Ue(a, r);
|
|
931
954
|
}));
|
|
932
955
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
933
956
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
934
957
|
i ? r.error(o) : s && r.complete();
|
|
935
958
|
}, t.prototype.asObservable = function() {
|
|
936
|
-
var r = new
|
|
959
|
+
var r = new ut();
|
|
937
960
|
return r.source = this, r;
|
|
938
961
|
}, t.create = function(r, n) {
|
|
939
|
-
return new
|
|
962
|
+
return new ct(r, n);
|
|
940
963
|
}, t;
|
|
941
|
-
}(
|
|
942
|
-
|
|
964
|
+
}(ut), ct = function(e) {
|
|
965
|
+
L(t, e);
|
|
943
966
|
function t(r, n) {
|
|
944
967
|
var i = e.call(this) || this;
|
|
945
968
|
return i.destination = r, i.source = n, i;
|
|
@@ -955,17 +978,17 @@ var Yr = Rt(function(e) {
|
|
|
955
978
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
956
979
|
}, t.prototype._subscribe = function(r) {
|
|
957
980
|
var n, i;
|
|
958
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
981
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : It;
|
|
959
982
|
}, t;
|
|
960
|
-
}(
|
|
983
|
+
}(Rt), Dt = {
|
|
961
984
|
now: function() {
|
|
962
|
-
return (
|
|
985
|
+
return (Dt.delegate || Date).now();
|
|
963
986
|
},
|
|
964
987
|
delegate: void 0
|
|
965
|
-
},
|
|
966
|
-
|
|
988
|
+
}, qr = function(e) {
|
|
989
|
+
L(t, e);
|
|
967
990
|
function t(r, n, i) {
|
|
968
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
991
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Dt);
|
|
969
992
|
var o = e.call(this) || this;
|
|
970
993
|
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;
|
|
971
994
|
}
|
|
@@ -985,24 +1008,24 @@ var Yr = Rt(function(e) {
|
|
|
985
1008
|
l && o.splice(0, l + 1);
|
|
986
1009
|
}
|
|
987
1010
|
}, t;
|
|
988
|
-
}(
|
|
989
|
-
const
|
|
990
|
-
if (
|
|
991
|
-
const r = new
|
|
992
|
-
|
|
1011
|
+
}(Rt);
|
|
1012
|
+
const ht = [], ft = {}, Qr = (e, t = 0) => {
|
|
1013
|
+
if (ht.indexOf(e) == -1) {
|
|
1014
|
+
const r = new qr(t);
|
|
1015
|
+
ft[e] = r, ht.push(e);
|
|
993
1016
|
}
|
|
994
|
-
return
|
|
1017
|
+
return ft[e];
|
|
995
1018
|
}, z = [];
|
|
996
|
-
function
|
|
1019
|
+
function Yr(e, t) {
|
|
997
1020
|
return {
|
|
998
1021
|
subscribe: Ee(e, t).subscribe
|
|
999
1022
|
};
|
|
1000
1023
|
}
|
|
1001
|
-
function Ee(e, t =
|
|
1024
|
+
function Ee(e, t = N) {
|
|
1002
1025
|
let r;
|
|
1003
1026
|
const n = /* @__PURE__ */ new Set();
|
|
1004
1027
|
function i(a) {
|
|
1005
|
-
if (
|
|
1028
|
+
if (Mt(e, a) && (e = a, r)) {
|
|
1006
1029
|
const u = !z.length;
|
|
1007
1030
|
for (const l of n)
|
|
1008
1031
|
l[1](), z.push(l, e);
|
|
@@ -1016,192 +1039,153 @@ function Ee(e, t = I) {
|
|
|
1016
1039
|
function o(a) {
|
|
1017
1040
|
i(a(e));
|
|
1018
1041
|
}
|
|
1019
|
-
function s(a, u =
|
|
1042
|
+
function s(a, u = N) {
|
|
1020
1043
|
const l = [a, u];
|
|
1021
|
-
return n.add(l), n.size === 1 && (r = t(i, o) ||
|
|
1044
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || N), a(e), () => {
|
|
1022
1045
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
1023
1046
|
};
|
|
1024
1047
|
}
|
|
1025
1048
|
return { set: i, update: o, subscribe: s };
|
|
1026
1049
|
}
|
|
1027
|
-
function
|
|
1050
|
+
function ee(e, t, r) {
|
|
1028
1051
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1029
1052
|
if (!i.every(Boolean))
|
|
1030
1053
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1031
1054
|
const o = t.length < 2;
|
|
1032
|
-
return
|
|
1055
|
+
return Yr(r, (s, a) => {
|
|
1033
1056
|
let u = !1;
|
|
1034
1057
|
const l = [];
|
|
1035
|
-
let c = 0, f =
|
|
1058
|
+
let c = 0, f = N;
|
|
1036
1059
|
const h = () => {
|
|
1037
1060
|
if (c)
|
|
1038
1061
|
return;
|
|
1039
1062
|
f();
|
|
1040
1063
|
const m = t(n ? l[0] : l, s, a);
|
|
1041
|
-
o ? s(m) : f =
|
|
1042
|
-
},
|
|
1043
|
-
(m,
|
|
1064
|
+
o ? s(m) : f = qe(m) ? m : N;
|
|
1065
|
+
}, d = i.map(
|
|
1066
|
+
(m, p) => Pt(
|
|
1044
1067
|
m,
|
|
1045
|
-
(
|
|
1046
|
-
l[
|
|
1068
|
+
(C) => {
|
|
1069
|
+
l[p] = C, c &= ~(1 << p), u && h();
|
|
1047
1070
|
},
|
|
1048
1071
|
() => {
|
|
1049
|
-
c |= 1 <<
|
|
1072
|
+
c |= 1 << p;
|
|
1050
1073
|
}
|
|
1051
1074
|
)
|
|
1052
1075
|
);
|
|
1053
1076
|
return u = !0, h(), function() {
|
|
1054
|
-
|
|
1077
|
+
K(d), f(), u = !1;
|
|
1055
1078
|
};
|
|
1056
1079
|
});
|
|
1057
1080
|
}
|
|
1058
|
-
function
|
|
1059
|
-
return e
|
|
1081
|
+
function Jr(e) {
|
|
1082
|
+
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1060
1083
|
}
|
|
1061
|
-
var
|
|
1062
|
-
return
|
|
1084
|
+
var Kr = function(t) {
|
|
1085
|
+
return en(t) && !tn(t);
|
|
1063
1086
|
};
|
|
1064
|
-
function
|
|
1087
|
+
function en(e) {
|
|
1065
1088
|
return !!e && typeof e == "object";
|
|
1066
1089
|
}
|
|
1067
|
-
function
|
|
1090
|
+
function tn(e) {
|
|
1068
1091
|
var t = Object.prototype.toString.call(e);
|
|
1069
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1092
|
+
return t === "[object RegExp]" || t === "[object Date]" || on(e);
|
|
1070
1093
|
}
|
|
1071
|
-
var
|
|
1072
|
-
function
|
|
1073
|
-
return e.$$typeof ===
|
|
1094
|
+
var rn = typeof Symbol == "function" && Symbol.for, nn = rn ? Symbol.for("react.element") : 60103;
|
|
1095
|
+
function on(e) {
|
|
1096
|
+
return e.$$typeof === nn;
|
|
1074
1097
|
}
|
|
1075
|
-
function
|
|
1098
|
+
function sn(e) {
|
|
1076
1099
|
return Array.isArray(e) ? [] : {};
|
|
1077
1100
|
}
|
|
1078
|
-
function
|
|
1079
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1101
|
+
function se(e, t) {
|
|
1102
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? q(sn(e), e, t) : e;
|
|
1080
1103
|
}
|
|
1081
|
-
function
|
|
1104
|
+
function an(e, t, r) {
|
|
1082
1105
|
return e.concat(t).map(function(n) {
|
|
1083
|
-
return
|
|
1106
|
+
return se(n, r);
|
|
1084
1107
|
});
|
|
1085
1108
|
}
|
|
1086
|
-
function
|
|
1109
|
+
function un(e, t) {
|
|
1087
1110
|
if (!t.customMerge)
|
|
1088
|
-
return
|
|
1111
|
+
return q;
|
|
1089
1112
|
var r = t.customMerge(e);
|
|
1090
|
-
return typeof r == "function" ? r :
|
|
1113
|
+
return typeof r == "function" ? r : q;
|
|
1091
1114
|
}
|
|
1092
|
-
function
|
|
1115
|
+
function ln(e) {
|
|
1093
1116
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1094
1117
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1095
1118
|
}) : [];
|
|
1096
1119
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return Object.keys(e).concat(
|
|
1120
|
+
function dt(e) {
|
|
1121
|
+
return Object.keys(e).concat(ln(e));
|
|
1099
1122
|
}
|
|
1100
|
-
function
|
|
1123
|
+
function Ut(e, t) {
|
|
1101
1124
|
try {
|
|
1102
1125
|
return t in e;
|
|
1103
1126
|
} catch (r) {
|
|
1104
1127
|
return !1;
|
|
1105
1128
|
}
|
|
1106
1129
|
}
|
|
1107
|
-
function
|
|
1108
|
-
return
|
|
1130
|
+
function cn(e, t) {
|
|
1131
|
+
return Ut(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1109
1132
|
}
|
|
1110
|
-
function
|
|
1133
|
+
function hn(e, t, r) {
|
|
1111
1134
|
var n = {};
|
|
1112
|
-
return r.isMergeableObject(e) &&
|
|
1113
|
-
n[i] =
|
|
1114
|
-
}),
|
|
1115
|
-
|
|
1135
|
+
return r.isMergeableObject(e) && dt(e).forEach(function(i) {
|
|
1136
|
+
n[i] = se(e[i], r);
|
|
1137
|
+
}), dt(t).forEach(function(i) {
|
|
1138
|
+
cn(e, i) || (Ut(e, i) && r.isMergeableObject(t[i]) ? n[i] = un(i, r)(e[i], t[i], r) : n[i] = se(t[i], r));
|
|
1116
1139
|
}), n;
|
|
1117
1140
|
}
|
|
1118
|
-
function
|
|
1119
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1141
|
+
function q(e, t, r) {
|
|
1142
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || an, r.isMergeableObject = r.isMergeableObject || Kr, r.cloneUnlessOtherwiseSpecified = se;
|
|
1120
1143
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1121
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1144
|
+
return o ? n ? r.arrayMerge(e, t, r) : hn(e, t, r) : se(t, r);
|
|
1122
1145
|
}
|
|
1123
|
-
|
|
1146
|
+
q.all = function(t, r) {
|
|
1124
1147
|
if (!Array.isArray(t))
|
|
1125
1148
|
throw new Error("first argument should be an array");
|
|
1126
1149
|
return t.reduce(function(n, i) {
|
|
1127
|
-
return
|
|
1150
|
+
return q(n, i, r);
|
|
1128
1151
|
}, {});
|
|
1129
1152
|
};
|
|
1130
|
-
var
|
|
1131
|
-
const
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
r.__proto__ = n;
|
|
1135
|
-
} || function(r, n) {
|
|
1136
|
-
for (var i in n)
|
|
1137
|
-
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1138
|
-
}, We(e, t);
|
|
1139
|
-
};
|
|
1140
|
-
function we(e, t) {
|
|
1141
|
-
if (typeof t != "function" && t !== null)
|
|
1142
|
-
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1143
|
-
We(e, t);
|
|
1144
|
-
function r() {
|
|
1145
|
-
this.constructor = e;
|
|
1146
|
-
}
|
|
1147
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1148
|
-
}
|
|
1149
|
-
var N = function() {
|
|
1150
|
-
return N = Object.assign || function(t) {
|
|
1151
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1152
|
-
r = arguments[n];
|
|
1153
|
-
for (var o in r)
|
|
1154
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1155
|
-
}
|
|
1156
|
-
return t;
|
|
1157
|
-
}, N.apply(this, arguments);
|
|
1158
|
-
};
|
|
1159
|
-
function gn(e, t) {
|
|
1160
|
-
var r = {};
|
|
1161
|
-
for (var n in e)
|
|
1162
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1163
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1164
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1165
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1166
|
-
return r;
|
|
1167
|
-
}
|
|
1168
|
-
function Me(e, t, r) {
|
|
1169
|
-
if (r || arguments.length === 2)
|
|
1170
|
-
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1171
|
-
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1172
|
-
return e.concat(o || Array.prototype.slice.call(t));
|
|
1173
|
-
}
|
|
1174
|
-
function Pe(e, t) {
|
|
1175
|
-
var r = t && t.cache ? t.cache : An, n = t && t.serializer ? t.serializer : wn, i = t && t.strategy ? t.strategy : _n;
|
|
1153
|
+
var fn = q, dn = fn;
|
|
1154
|
+
const pn = /* @__PURE__ */ Jr(dn);
|
|
1155
|
+
function Be(e, t) {
|
|
1156
|
+
var r = t && t.cache ? t.cache : En, n = t && t.serializer ? t.serializer : vn, i = t && t.strategy ? t.strategy : bn;
|
|
1176
1157
|
return i(e, {
|
|
1177
1158
|
cache: r,
|
|
1178
1159
|
serializer: n
|
|
1179
1160
|
});
|
|
1180
1161
|
}
|
|
1181
|
-
function
|
|
1162
|
+
function mn(e) {
|
|
1182
1163
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1183
1164
|
}
|
|
1184
|
-
function
|
|
1185
|
-
var i =
|
|
1165
|
+
function Ft(e, t, r, n) {
|
|
1166
|
+
var i = mn(n) ? n : r(n), o = t.get(i);
|
|
1186
1167
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1187
1168
|
}
|
|
1188
|
-
function
|
|
1169
|
+
function Gt(e, t, r) {
|
|
1189
1170
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1190
1171
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1191
1172
|
}
|
|
1192
|
-
function
|
|
1173
|
+
function Qe(e, t, r, n, i) {
|
|
1193
1174
|
return r.bind(t, e, n, i);
|
|
1194
1175
|
}
|
|
1195
|
-
function
|
|
1196
|
-
var r = e.length === 1 ?
|
|
1197
|
-
return
|
|
1176
|
+
function bn(e, t) {
|
|
1177
|
+
var r = e.length === 1 ? Ft : Gt;
|
|
1178
|
+
return Qe(e, this, r, t.cache.create(), t.serializer);
|
|
1179
|
+
}
|
|
1180
|
+
function gn(e, t) {
|
|
1181
|
+
return Qe(e, this, Gt, t.cache.create(), t.serializer);
|
|
1198
1182
|
}
|
|
1199
|
-
function
|
|
1200
|
-
return
|
|
1183
|
+
function yn(e, t) {
|
|
1184
|
+
return Qe(e, this, Ft, t.cache.create(), t.serializer);
|
|
1201
1185
|
}
|
|
1202
|
-
var
|
|
1186
|
+
var vn = function() {
|
|
1203
1187
|
return JSON.stringify(arguments);
|
|
1204
|
-
},
|
|
1188
|
+
}, xn = (
|
|
1205
1189
|
/** @class */
|
|
1206
1190
|
function() {
|
|
1207
1191
|
function e() {
|
|
@@ -1213,71 +1197,62 @@ var wn = function() {
|
|
|
1213
1197
|
this.cache[t] = r;
|
|
1214
1198
|
}, e;
|
|
1215
1199
|
}()
|
|
1216
|
-
),
|
|
1200
|
+
), En = {
|
|
1217
1201
|
create: function() {
|
|
1218
|
-
return new
|
|
1202
|
+
return new xn();
|
|
1219
1203
|
}
|
|
1220
|
-
},
|
|
1221
|
-
variadic:
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1225
|
-
r = arguments[n];
|
|
1226
|
-
for (var o in r)
|
|
1227
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1228
|
-
}
|
|
1229
|
-
return t;
|
|
1230
|
-
}, ve.apply(this, arguments);
|
|
1231
|
-
};
|
|
1232
|
-
var b;
|
|
1204
|
+
}, He = {
|
|
1205
|
+
variadic: gn,
|
|
1206
|
+
monadic: yn
|
|
1207
|
+
}, b;
|
|
1233
1208
|
(function(e) {
|
|
1234
1209
|
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";
|
|
1235
1210
|
})(b || (b = {}));
|
|
1236
|
-
var
|
|
1211
|
+
var w;
|
|
1237
1212
|
(function(e) {
|
|
1238
1213
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1239
|
-
})(
|
|
1240
|
-
var
|
|
1214
|
+
})(w || (w = {}));
|
|
1215
|
+
var Q;
|
|
1241
1216
|
(function(e) {
|
|
1242
1217
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1243
|
-
})(
|
|
1244
|
-
function
|
|
1245
|
-
return e.type ===
|
|
1218
|
+
})(Q || (Q = {}));
|
|
1219
|
+
function pt(e) {
|
|
1220
|
+
return e.type === w.literal;
|
|
1246
1221
|
}
|
|
1247
|
-
function
|
|
1248
|
-
return e.type ===
|
|
1222
|
+
function _n(e) {
|
|
1223
|
+
return e.type === w.argument;
|
|
1249
1224
|
}
|
|
1250
|
-
function
|
|
1251
|
-
return e.type ===
|
|
1225
|
+
function jt(e) {
|
|
1226
|
+
return e.type === w.number;
|
|
1252
1227
|
}
|
|
1253
|
-
function
|
|
1254
|
-
return e.type ===
|
|
1228
|
+
function kt(e) {
|
|
1229
|
+
return e.type === w.date;
|
|
1255
1230
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return e.type ===
|
|
1231
|
+
function zt(e) {
|
|
1232
|
+
return e.type === w.time;
|
|
1258
1233
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return e.type ===
|
|
1234
|
+
function Wt(e) {
|
|
1235
|
+
return e.type === w.select;
|
|
1261
1236
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return e.type ===
|
|
1237
|
+
function Vt(e) {
|
|
1238
|
+
return e.type === w.plural;
|
|
1264
1239
|
}
|
|
1265
|
-
function
|
|
1266
|
-
return e.type ===
|
|
1240
|
+
function wn(e) {
|
|
1241
|
+
return e.type === w.pound;
|
|
1267
1242
|
}
|
|
1268
|
-
function
|
|
1269
|
-
return e.type ===
|
|
1243
|
+
function Xt(e) {
|
|
1244
|
+
return e.type === w.tag;
|
|
1270
1245
|
}
|
|
1271
|
-
function
|
|
1272
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1246
|
+
function Zt(e) {
|
|
1247
|
+
return !!(e && typeof e == "object" && e.type === Q.number);
|
|
1273
1248
|
}
|
|
1274
|
-
function
|
|
1275
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1249
|
+
function Ge(e) {
|
|
1250
|
+
return !!(e && typeof e == "object" && e.type === Q.dateTime);
|
|
1276
1251
|
}
|
|
1277
|
-
var
|
|
1278
|
-
function
|
|
1252
|
+
var qt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Cn = /(?:[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;
|
|
1253
|
+
function An(e) {
|
|
1279
1254
|
var t = {};
|
|
1280
|
-
return e.replace(
|
|
1255
|
+
return e.replace(Cn, function(r) {
|
|
1281
1256
|
var n = r.length;
|
|
1282
1257
|
switch (r[0]) {
|
|
1283
1258
|
case "G":
|
|
@@ -1366,21 +1341,11 @@ function Hn(e) {
|
|
|
1366
1341
|
return "";
|
|
1367
1342
|
}), t;
|
|
1368
1343
|
}
|
|
1369
|
-
var
|
|
1370
|
-
|
|
1371
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1372
|
-
r = arguments[n];
|
|
1373
|
-
for (var o in r)
|
|
1374
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1375
|
-
}
|
|
1376
|
-
return t;
|
|
1377
|
-
}, S.apply(this, arguments);
|
|
1378
|
-
};
|
|
1379
|
-
var Mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1380
|
-
function Pn(e) {
|
|
1344
|
+
var Sn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1345
|
+
function Tn(e) {
|
|
1381
1346
|
if (e.length === 0)
|
|
1382
1347
|
throw new Error("Number skeleton cannot be empty");
|
|
1383
|
-
for (var t = e.split(
|
|
1348
|
+
for (var t = e.split(Sn).filter(function(h) {
|
|
1384
1349
|
return h.length > 0;
|
|
1385
1350
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1386
1351
|
var o = i[n], s = o.split("/");
|
|
@@ -1395,17 +1360,17 @@ function Pn(e) {
|
|
|
1395
1360
|
}
|
|
1396
1361
|
return r;
|
|
1397
1362
|
}
|
|
1398
|
-
function
|
|
1363
|
+
function Bn(e) {
|
|
1399
1364
|
return e.replace(/^(.*?)-/, "");
|
|
1400
1365
|
}
|
|
1401
|
-
var
|
|
1402
|
-
function
|
|
1366
|
+
var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Qt = /^(@+)?(\+|#+)?[rs]?$/g, Hn = /(\*)(0+)|(#+)(0+)|(0+)/g, Yt = /^(0+)$/;
|
|
1367
|
+
function bt(e) {
|
|
1403
1368
|
var t = {};
|
|
1404
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1369
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Qt, function(r, n, i) {
|
|
1405
1370
|
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)), "";
|
|
1406
1371
|
}), t;
|
|
1407
1372
|
}
|
|
1408
|
-
function
|
|
1373
|
+
function Jt(e) {
|
|
1409
1374
|
switch (e) {
|
|
1410
1375
|
case "sign-auto":
|
|
1411
1376
|
return {
|
|
@@ -1445,7 +1410,7 @@ function rr(e) {
|
|
|
1445
1410
|
};
|
|
1446
1411
|
}
|
|
1447
1412
|
}
|
|
1448
|
-
function
|
|
1413
|
+
function Mn(e) {
|
|
1449
1414
|
var t;
|
|
1450
1415
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1451
1416
|
notation: "engineering"
|
|
@@ -1453,17 +1418,17 @@ function Nn(e) {
|
|
|
1453
1418
|
notation: "scientific"
|
|
1454
1419
|
}, e = e.slice(1)), t) {
|
|
1455
1420
|
var r = e.slice(0, 2);
|
|
1456
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1421
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Yt.test(e))
|
|
1457
1422
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1458
1423
|
t.minimumIntegerDigits = e.length;
|
|
1459
1424
|
}
|
|
1460
1425
|
return t;
|
|
1461
1426
|
}
|
|
1462
|
-
function
|
|
1463
|
-
var t = {}, r =
|
|
1427
|
+
function gt(e) {
|
|
1428
|
+
var t = {}, r = Jt(e);
|
|
1464
1429
|
return r || t;
|
|
1465
1430
|
}
|
|
1466
|
-
function
|
|
1431
|
+
function Pn(e) {
|
|
1467
1432
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1468
1433
|
var i = n[r];
|
|
1469
1434
|
switch (i.stem) {
|
|
@@ -1487,7 +1452,7 @@ function Ln(e) {
|
|
|
1487
1452
|
continue;
|
|
1488
1453
|
case "measure-unit":
|
|
1489
1454
|
case "unit":
|
|
1490
|
-
t.style = "unit", t.unit =
|
|
1455
|
+
t.style = "unit", t.unit = Bn(i.options[0]);
|
|
1491
1456
|
continue;
|
|
1492
1457
|
case "compact-short":
|
|
1493
1458
|
case "K":
|
|
@@ -1498,13 +1463,13 @@ function Ln(e) {
|
|
|
1498
1463
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1499
1464
|
continue;
|
|
1500
1465
|
case "scientific":
|
|
1501
|
-
t =
|
|
1502
|
-
return
|
|
1466
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1467
|
+
return v(v({}, u), gt(l));
|
|
1503
1468
|
}, {}));
|
|
1504
1469
|
continue;
|
|
1505
1470
|
case "engineering":
|
|
1506
|
-
t =
|
|
1507
|
-
return
|
|
1471
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1472
|
+
return v(v({}, u), gt(l));
|
|
1508
1473
|
}, {}));
|
|
1509
1474
|
continue;
|
|
1510
1475
|
case "notation-simple":
|
|
@@ -1549,41 +1514,41 @@ function Ln(e) {
|
|
|
1549
1514
|
case "integer-width":
|
|
1550
1515
|
if (i.options.length > 1)
|
|
1551
1516
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1552
|
-
i.options[0].replace(
|
|
1517
|
+
i.options[0].replace(Hn, function(u, l, c, f, h, d) {
|
|
1553
1518
|
if (l)
|
|
1554
1519
|
t.minimumIntegerDigits = c.length;
|
|
1555
1520
|
else {
|
|
1556
1521
|
if (f && h)
|
|
1557
1522
|
throw new Error("We currently do not support maximum integer digits");
|
|
1558
|
-
if (
|
|
1523
|
+
if (d)
|
|
1559
1524
|
throw new Error("We currently do not support exact integer digits");
|
|
1560
1525
|
}
|
|
1561
1526
|
return "";
|
|
1562
1527
|
});
|
|
1563
1528
|
continue;
|
|
1564
1529
|
}
|
|
1565
|
-
if (
|
|
1530
|
+
if (Yt.test(i.stem)) {
|
|
1566
1531
|
t.minimumIntegerDigits = i.stem.length;
|
|
1567
1532
|
continue;
|
|
1568
1533
|
}
|
|
1569
|
-
if (
|
|
1534
|
+
if (mt.test(i.stem)) {
|
|
1570
1535
|
if (i.options.length > 1)
|
|
1571
1536
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1572
|
-
i.stem.replace(
|
|
1573
|
-
return c === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h &&
|
|
1537
|
+
i.stem.replace(mt, function(u, l, c, f, h, d) {
|
|
1538
|
+
return c === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && d ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + d.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1574
1539
|
});
|
|
1575
1540
|
var o = i.options[0];
|
|
1576
|
-
o === "w" ? t =
|
|
1541
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), bt(o)));
|
|
1577
1542
|
continue;
|
|
1578
1543
|
}
|
|
1579
|
-
if (
|
|
1580
|
-
t =
|
|
1544
|
+
if (Qt.test(i.stem)) {
|
|
1545
|
+
t = v(v({}, t), bt(i.stem));
|
|
1581
1546
|
continue;
|
|
1582
1547
|
}
|
|
1583
|
-
var s =
|
|
1584
|
-
s && (t =
|
|
1585
|
-
var a =
|
|
1586
|
-
a && (t =
|
|
1548
|
+
var s = Jt(i.stem);
|
|
1549
|
+
s && (t = v(v({}, t), s));
|
|
1550
|
+
var a = Mn(i.stem);
|
|
1551
|
+
a && (t = v(v({}, t), a));
|
|
1587
1552
|
}
|
|
1588
1553
|
return t;
|
|
1589
1554
|
}
|
|
@@ -3002,13 +2967,13 @@ var he = {
|
|
|
3002
2967
|
"h"
|
|
3003
2968
|
]
|
|
3004
2969
|
};
|
|
3005
|
-
function
|
|
2970
|
+
function On(e, t) {
|
|
3006
2971
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3007
2972
|
var i = e.charAt(n);
|
|
3008
2973
|
if (i === "j") {
|
|
3009
2974
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3010
2975
|
o++, n++;
|
|
3011
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l =
|
|
2976
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Nn(t);
|
|
3012
2977
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
3013
2978
|
r += u;
|
|
3014
2979
|
for (; s-- > 0; )
|
|
@@ -3018,7 +2983,7 @@ function $n(e, t) {
|
|
|
3018
2983
|
}
|
|
3019
2984
|
return r;
|
|
3020
2985
|
}
|
|
3021
|
-
function
|
|
2986
|
+
function Nn(e) {
|
|
3022
2987
|
var t = e.hourCycle;
|
|
3023
2988
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3024
2989
|
e.hourCycles && // @ts-ignore
|
|
@@ -3040,20 +3005,20 @@ function Rn(e) {
|
|
|
3040
3005
|
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
3041
3006
|
return i[0];
|
|
3042
3007
|
}
|
|
3043
|
-
var
|
|
3044
|
-
function
|
|
3008
|
+
var Me, In = new RegExp("^".concat(qt.source, "*")), Ln = new RegExp("".concat(qt.source, "*$"));
|
|
3009
|
+
function g(e, t) {
|
|
3045
3010
|
return { start: e, end: t };
|
|
3046
3011
|
}
|
|
3047
|
-
var
|
|
3012
|
+
var $n = !!String.prototype.startsWith && "_a".startsWith("a", 1), Rn = !!String.fromCodePoint, Dn = !!Object.fromEntries, Un = !!String.prototype.codePointAt, Fn = !!String.prototype.trimStart, Gn = !!String.prototype.trimEnd, jn = !!Number.isSafeInteger, kn = jn ? Number.isSafeInteger : function(e) {
|
|
3048
3013
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3049
|
-
},
|
|
3014
|
+
}, je = !0;
|
|
3050
3015
|
try {
|
|
3051
|
-
var
|
|
3052
|
-
|
|
3016
|
+
var zn = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3017
|
+
je = ((Me = zn.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
|
|
3053
3018
|
} catch (e) {
|
|
3054
|
-
|
|
3019
|
+
je = !1;
|
|
3055
3020
|
}
|
|
3056
|
-
var
|
|
3021
|
+
var yt = $n ? (
|
|
3057
3022
|
// Native
|
|
3058
3023
|
function(t, r, n) {
|
|
3059
3024
|
return t.startsWith(r, n);
|
|
@@ -3063,7 +3028,7 @@ var Et = Fn ? (
|
|
|
3063
3028
|
function(t, r, n) {
|
|
3064
3029
|
return t.slice(n, n + r.length) === r;
|
|
3065
3030
|
}
|
|
3066
|
-
),
|
|
3031
|
+
), ke = Rn ? String.fromCodePoint : (
|
|
3067
3032
|
// IE11
|
|
3068
3033
|
function() {
|
|
3069
3034
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3075,9 +3040,9 @@ var Et = Fn ? (
|
|
|
3075
3040
|
}
|
|
3076
3041
|
return n;
|
|
3077
3042
|
}
|
|
3078
|
-
),
|
|
3043
|
+
), vt = (
|
|
3079
3044
|
// native
|
|
3080
|
-
|
|
3045
|
+
Dn ? Object.fromEntries : (
|
|
3081
3046
|
// Ponyfill
|
|
3082
3047
|
function(t) {
|
|
3083
3048
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3087,7 +3052,7 @@ var Et = Fn ? (
|
|
|
3087
3052
|
return r;
|
|
3088
3053
|
}
|
|
3089
3054
|
)
|
|
3090
|
-
),
|
|
3055
|
+
), Kt = Un ? (
|
|
3091
3056
|
// Native
|
|
3092
3057
|
function(t, r) {
|
|
3093
3058
|
return t.codePointAt(r);
|
|
@@ -3101,7 +3066,7 @@ var Et = Fn ? (
|
|
|
3101
3066
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3102
3067
|
}
|
|
3103
3068
|
}
|
|
3104
|
-
),
|
|
3069
|
+
), Wn = Fn ? (
|
|
3105
3070
|
// Native
|
|
3106
3071
|
function(t) {
|
|
3107
3072
|
return t.trimStart();
|
|
@@ -3109,9 +3074,9 @@ var Et = Fn ? (
|
|
|
3109
3074
|
) : (
|
|
3110
3075
|
// Ponyfill
|
|
3111
3076
|
function(t) {
|
|
3112
|
-
return t.replace(
|
|
3077
|
+
return t.replace(In, "");
|
|
3113
3078
|
}
|
|
3114
|
-
),
|
|
3079
|
+
), Vn = Gn ? (
|
|
3115
3080
|
// Native
|
|
3116
3081
|
function(t) {
|
|
3117
3082
|
return t.trimEnd();
|
|
@@ -3119,32 +3084,32 @@ var Et = Fn ? (
|
|
|
3119
3084
|
) : (
|
|
3120
3085
|
// Ponyfill
|
|
3121
3086
|
function(t) {
|
|
3122
|
-
return t.replace(
|
|
3087
|
+
return t.replace(Ln, "");
|
|
3123
3088
|
}
|
|
3124
3089
|
);
|
|
3125
|
-
function
|
|
3090
|
+
function er(e, t) {
|
|
3126
3091
|
return new RegExp(e, t);
|
|
3127
3092
|
}
|
|
3128
|
-
var
|
|
3129
|
-
if (
|
|
3130
|
-
var
|
|
3131
|
-
|
|
3093
|
+
var ze;
|
|
3094
|
+
if (je) {
|
|
3095
|
+
var xt = er("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3096
|
+
ze = function(t, r) {
|
|
3132
3097
|
var n;
|
|
3133
|
-
|
|
3134
|
-
var i =
|
|
3098
|
+
xt.lastIndex = r;
|
|
3099
|
+
var i = xt.exec(t);
|
|
3135
3100
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3136
3101
|
};
|
|
3137
3102
|
} else
|
|
3138
|
-
|
|
3103
|
+
ze = function(t, r) {
|
|
3139
3104
|
for (var n = []; ; ) {
|
|
3140
|
-
var i =
|
|
3141
|
-
if (i === void 0 ||
|
|
3105
|
+
var i = Kt(t, r);
|
|
3106
|
+
if (i === void 0 || tr(i) || Qn(i))
|
|
3142
3107
|
break;
|
|
3143
3108
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3144
3109
|
}
|
|
3145
|
-
return
|
|
3110
|
+
return ke.apply(void 0, n);
|
|
3146
3111
|
};
|
|
3147
|
-
var
|
|
3112
|
+
var Xn = (
|
|
3148
3113
|
/** @class */
|
|
3149
3114
|
function() {
|
|
3150
3115
|
function e(t, r) {
|
|
@@ -3168,14 +3133,14 @@ var Yn = (
|
|
|
3168
3133
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3169
3134
|
var a = this.clonePosition();
|
|
3170
3135
|
this.bump(), i.push({
|
|
3171
|
-
type:
|
|
3172
|
-
location:
|
|
3136
|
+
type: w.pound,
|
|
3137
|
+
location: g(a, this.clonePosition())
|
|
3173
3138
|
});
|
|
3174
3139
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3175
3140
|
if (n)
|
|
3176
3141
|
break;
|
|
3177
|
-
return this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3178
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3142
|
+
return this.error(b.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
3143
|
+
} else if (o === 60 && !this.ignoreTag && We(this.peek() || 0)) {
|
|
3179
3144
|
var s = this.parseTag(t, r);
|
|
3180
3145
|
if (s.err)
|
|
3181
3146
|
return s;
|
|
@@ -3196,9 +3161,9 @@ var Yn = (
|
|
|
3196
3161
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3197
3162
|
return {
|
|
3198
3163
|
val: {
|
|
3199
|
-
type:
|
|
3164
|
+
type: w.literal,
|
|
3200
3165
|
value: "<".concat(i, "/>"),
|
|
3201
|
-
location:
|
|
3166
|
+
location: g(n, this.clonePosition())
|
|
3202
3167
|
},
|
|
3203
3168
|
err: null
|
|
3204
3169
|
};
|
|
@@ -3208,25 +3173,25 @@ var Yn = (
|
|
|
3208
3173
|
return o;
|
|
3209
3174
|
var s = o.val, a = this.clonePosition();
|
|
3210
3175
|
if (this.bumpIf("</")) {
|
|
3211
|
-
if (this.isEOF() || !
|
|
3212
|
-
return this.error(b.INVALID_TAG,
|
|
3176
|
+
if (this.isEOF() || !We(this.char()))
|
|
3177
|
+
return this.error(b.INVALID_TAG, g(a, this.clonePosition()));
|
|
3213
3178
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
3214
|
-
return i !== l ? this.error(b.UNMATCHED_CLOSING_TAG,
|
|
3179
|
+
return i !== l ? this.error(b.UNMATCHED_CLOSING_TAG, g(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3215
3180
|
val: {
|
|
3216
|
-
type:
|
|
3181
|
+
type: w.tag,
|
|
3217
3182
|
value: i,
|
|
3218
3183
|
children: s,
|
|
3219
|
-
location:
|
|
3184
|
+
location: g(n, this.clonePosition())
|
|
3220
3185
|
},
|
|
3221
3186
|
err: null
|
|
3222
|
-
} : this.error(b.INVALID_TAG,
|
|
3187
|
+
} : this.error(b.INVALID_TAG, g(a, this.clonePosition())));
|
|
3223
3188
|
} else
|
|
3224
|
-
return this.error(b.UNCLOSED_TAG,
|
|
3189
|
+
return this.error(b.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
3225
3190
|
} else
|
|
3226
|
-
return this.error(b.INVALID_TAG,
|
|
3191
|
+
return this.error(b.INVALID_TAG, g(n, this.clonePosition()));
|
|
3227
3192
|
}, e.prototype.parseTagName = function() {
|
|
3228
3193
|
var t = this.offset();
|
|
3229
|
-
for (this.bump(); !this.isEOF() &&
|
|
3194
|
+
for (this.bump(); !this.isEOF() && qn(this.char()); )
|
|
3230
3195
|
this.bump();
|
|
3231
3196
|
return this.message.slice(t, this.offset());
|
|
3232
3197
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3248,14 +3213,14 @@ var Yn = (
|
|
|
3248
3213
|
}
|
|
3249
3214
|
break;
|
|
3250
3215
|
}
|
|
3251
|
-
var u =
|
|
3216
|
+
var u = g(n, this.clonePosition());
|
|
3252
3217
|
return {
|
|
3253
|
-
val: { type:
|
|
3218
|
+
val: { type: w.literal, value: i, location: u },
|
|
3254
3219
|
err: null
|
|
3255
3220
|
};
|
|
3256
3221
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3257
3222
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3258
|
-
!
|
|
3223
|
+
!Zn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3259
3224
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3260
3225
|
if (this.isEOF() || this.char() !== 39)
|
|
3261
3226
|
return null;
|
|
@@ -3289,49 +3254,49 @@ var Yn = (
|
|
|
3289
3254
|
r.push(n);
|
|
3290
3255
|
this.bump();
|
|
3291
3256
|
}
|
|
3292
|
-
return
|
|
3257
|
+
return ke.apply(void 0, r);
|
|
3293
3258
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3294
3259
|
if (this.isEOF())
|
|
3295
3260
|
return null;
|
|
3296
3261
|
var n = this.char();
|
|
3297
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3262
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
3298
3263
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3299
3264
|
var n = this.clonePosition();
|
|
3300
3265
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3301
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3266
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3302
3267
|
if (this.char() === 125)
|
|
3303
|
-
return this.bump(), this.error(b.EMPTY_ARGUMENT,
|
|
3268
|
+
return this.bump(), this.error(b.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
3304
3269
|
var i = this.parseIdentifierIfPossible().value;
|
|
3305
3270
|
if (!i)
|
|
3306
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3271
|
+
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3307
3272
|
if (this.bumpSpace(), this.isEOF())
|
|
3308
|
-
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3273
|
+
return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
3309
3274
|
switch (this.char()) {
|
|
3310
3275
|
case 125:
|
|
3311
3276
|
return this.bump(), {
|
|
3312
3277
|
val: {
|
|
3313
|
-
type:
|
|
3278
|
+
type: w.argument,
|
|
3314
3279
|
// value does not include the opening and closing braces.
|
|
3315
3280
|
value: i,
|
|
3316
|
-
location:
|
|
3281
|
+
location: g(n, this.clonePosition())
|
|
3317
3282
|
},
|
|
3318
3283
|
err: null
|
|
3319
3284
|
};
|
|
3320
3285
|
case 44:
|
|
3321
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3286
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
3322
3287
|
default:
|
|
3323
|
-
return this.error(b.MALFORMED_ARGUMENT,
|
|
3288
|
+
return this.error(b.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
3324
3289
|
}
|
|
3325
3290
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3326
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3291
|
+
var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
|
|
3327
3292
|
this.bumpTo(i);
|
|
3328
|
-
var o = this.clonePosition(), s =
|
|
3293
|
+
var o = this.clonePosition(), s = g(t, o);
|
|
3329
3294
|
return { value: n, location: s };
|
|
3330
3295
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
3331
3296
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
3332
3297
|
switch (a) {
|
|
3333
3298
|
case "":
|
|
3334
|
-
return this.error(b.EXPECT_ARGUMENT_TYPE,
|
|
3299
|
+
return this.error(b.EXPECT_ARGUMENT_TYPE, g(s, u));
|
|
3335
3300
|
case "number":
|
|
3336
3301
|
case "date":
|
|
3337
3302
|
case "time": {
|
|
@@ -3342,46 +3307,46 @@ var Yn = (
|
|
|
3342
3307
|
var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3343
3308
|
if (f.err)
|
|
3344
3309
|
return f;
|
|
3345
|
-
var h =
|
|
3310
|
+
var h = Vn(f.val);
|
|
3346
3311
|
if (h.length === 0)
|
|
3347
|
-
return this.error(b.EXPECT_ARGUMENT_STYLE,
|
|
3348
|
-
var
|
|
3349
|
-
l = { style: h, styleLocation:
|
|
3312
|
+
return this.error(b.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
3313
|
+
var d = g(c, this.clonePosition());
|
|
3314
|
+
l = { style: h, styleLocation: d };
|
|
3350
3315
|
}
|
|
3351
3316
|
var m = this.tryParseArgumentClose(i);
|
|
3352
3317
|
if (m.err)
|
|
3353
3318
|
return m;
|
|
3354
|
-
var
|
|
3355
|
-
if (l &&
|
|
3356
|
-
var
|
|
3319
|
+
var p = g(i, this.clonePosition());
|
|
3320
|
+
if (l && yt(l == null ? void 0 : l.style, "::", 0)) {
|
|
3321
|
+
var C = Wn(l.style.slice(2));
|
|
3357
3322
|
if (a === "number") {
|
|
3358
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3323
|
+
var f = this.parseNumberSkeletonFromString(C, l.styleLocation);
|
|
3359
3324
|
return f.err ? f : {
|
|
3360
|
-
val: { type:
|
|
3325
|
+
val: { type: w.number, value: n, location: p, style: f.val },
|
|
3361
3326
|
err: null
|
|
3362
3327
|
};
|
|
3363
3328
|
} else {
|
|
3364
|
-
if (
|
|
3365
|
-
return this.error(b.EXPECT_DATE_TIME_SKELETON,
|
|
3366
|
-
var M =
|
|
3367
|
-
this.locale && (M =
|
|
3329
|
+
if (C.length === 0)
|
|
3330
|
+
return this.error(b.EXPECT_DATE_TIME_SKELETON, p);
|
|
3331
|
+
var M = C;
|
|
3332
|
+
this.locale && (M = On(C, this.locale));
|
|
3368
3333
|
var h = {
|
|
3369
|
-
type:
|
|
3334
|
+
type: Q.dateTime,
|
|
3370
3335
|
pattern: M,
|
|
3371
3336
|
location: l.styleLocation,
|
|
3372
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3373
|
-
}, T = a === "date" ?
|
|
3337
|
+
parsedOptions: this.shouldParseSkeletons ? An(M) : {}
|
|
3338
|
+
}, T = a === "date" ? w.date : w.time;
|
|
3374
3339
|
return {
|
|
3375
|
-
val: { type: T, value: n, location:
|
|
3340
|
+
val: { type: T, value: n, location: p, style: h },
|
|
3376
3341
|
err: null
|
|
3377
3342
|
};
|
|
3378
3343
|
}
|
|
3379
3344
|
}
|
|
3380
3345
|
return {
|
|
3381
3346
|
val: {
|
|
3382
|
-
type: a === "number" ?
|
|
3347
|
+
type: a === "number" ? w.number : a === "date" ? w.date : w.time,
|
|
3383
3348
|
value: n,
|
|
3384
|
-
location:
|
|
3349
|
+
location: p,
|
|
3385
3350
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
3386
3351
|
},
|
|
3387
3352
|
err: null
|
|
@@ -3390,41 +3355,41 @@ var Yn = (
|
|
|
3390
3355
|
case "plural":
|
|
3391
3356
|
case "selectordinal":
|
|
3392
3357
|
case "select": {
|
|
3393
|
-
var
|
|
3358
|
+
var x = this.clonePosition();
|
|
3394
3359
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3395
|
-
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3360
|
+
return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, g(x, v({}, x)));
|
|
3396
3361
|
this.bumpSpace();
|
|
3397
|
-
var
|
|
3398
|
-
if (a !== "select" &&
|
|
3362
|
+
var A = this.parseIdentifierIfPossible(), S = 0;
|
|
3363
|
+
if (a !== "select" && A.value === "offset") {
|
|
3399
3364
|
if (!this.bumpIf(":"))
|
|
3400
|
-
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3365
|
+
return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
3401
3366
|
this.bumpSpace();
|
|
3402
3367
|
var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3403
3368
|
if (f.err)
|
|
3404
3369
|
return f;
|
|
3405
|
-
this.bumpSpace(),
|
|
3370
|
+
this.bumpSpace(), A = this.parseIdentifierIfPossible(), S = f.val;
|
|
3406
3371
|
}
|
|
3407
|
-
var P = this.tryParsePluralOrSelectOptions(t, a, r,
|
|
3372
|
+
var P = this.tryParsePluralOrSelectOptions(t, a, r, A);
|
|
3408
3373
|
if (P.err)
|
|
3409
3374
|
return P;
|
|
3410
3375
|
var m = this.tryParseArgumentClose(i);
|
|
3411
3376
|
if (m.err)
|
|
3412
3377
|
return m;
|
|
3413
|
-
var _ =
|
|
3378
|
+
var _ = g(i, this.clonePosition());
|
|
3414
3379
|
return a === "select" ? {
|
|
3415
3380
|
val: {
|
|
3416
|
-
type:
|
|
3381
|
+
type: w.select,
|
|
3417
3382
|
value: n,
|
|
3418
|
-
options:
|
|
3383
|
+
options: vt(P.val),
|
|
3419
3384
|
location: _
|
|
3420
3385
|
},
|
|
3421
3386
|
err: null
|
|
3422
3387
|
} : {
|
|
3423
3388
|
val: {
|
|
3424
|
-
type:
|
|
3389
|
+
type: w.plural,
|
|
3425
3390
|
value: n,
|
|
3426
|
-
options:
|
|
3427
|
-
offset:
|
|
3391
|
+
options: vt(P.val),
|
|
3392
|
+
offset: S,
|
|
3428
3393
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3429
3394
|
location: _
|
|
3430
3395
|
},
|
|
@@ -3432,10 +3397,10 @@ var Yn = (
|
|
|
3432
3397
|
};
|
|
3433
3398
|
}
|
|
3434
3399
|
default:
|
|
3435
|
-
return this.error(b.INVALID_ARGUMENT_TYPE,
|
|
3400
|
+
return this.error(b.INVALID_ARGUMENT_TYPE, g(s, u));
|
|
3436
3401
|
}
|
|
3437
3402
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3438
|
-
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3403
|
+
return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3439
3404
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3440
3405
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3441
3406
|
var n = this.char();
|
|
@@ -3444,7 +3409,7 @@ var Yn = (
|
|
|
3444
3409
|
this.bump();
|
|
3445
3410
|
var i = this.clonePosition();
|
|
3446
3411
|
if (!this.bumpUntil("'"))
|
|
3447
|
-
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3412
|
+
return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3448
3413
|
this.bump();
|
|
3449
3414
|
break;
|
|
3450
3415
|
}
|
|
@@ -3474,16 +3439,16 @@ var Yn = (
|
|
|
3474
3439
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3475
3440
|
var n = [];
|
|
3476
3441
|
try {
|
|
3477
|
-
n =
|
|
3442
|
+
n = Tn(t);
|
|
3478
3443
|
} catch (i) {
|
|
3479
3444
|
return this.error(b.INVALID_NUMBER_SKELETON, r);
|
|
3480
3445
|
}
|
|
3481
3446
|
return {
|
|
3482
3447
|
val: {
|
|
3483
|
-
type:
|
|
3448
|
+
type: Q.number,
|
|
3484
3449
|
tokens: n,
|
|
3485
3450
|
location: r,
|
|
3486
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3451
|
+
parsedOptions: this.shouldParseSkeletons ? Pn(n) : {}
|
|
3487
3452
|
},
|
|
3488
3453
|
err: null
|
|
3489
3454
|
};
|
|
@@ -3495,31 +3460,31 @@ var Yn = (
|
|
|
3495
3460
|
var h = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3496
3461
|
if (h.err)
|
|
3497
3462
|
return h;
|
|
3498
|
-
c =
|
|
3463
|
+
c = g(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
3499
3464
|
} else
|
|
3500
3465
|
break;
|
|
3501
3466
|
}
|
|
3502
3467
|
if (u.has(l))
|
|
3503
3468
|
return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3504
3469
|
l === "other" && (s = !0), this.bumpSpace();
|
|
3505
|
-
var
|
|
3470
|
+
var d = this.clonePosition();
|
|
3506
3471
|
if (!this.bumpIf("{"))
|
|
3507
|
-
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3472
|
+
return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3508
3473
|
var m = this.parseMessage(t + 1, r, n);
|
|
3509
3474
|
if (m.err)
|
|
3510
3475
|
return m;
|
|
3511
|
-
var
|
|
3512
|
-
if (
|
|
3513
|
-
return
|
|
3476
|
+
var p = this.tryParseArgumentClose(d);
|
|
3477
|
+
if (p.err)
|
|
3478
|
+
return p;
|
|
3514
3479
|
a.push([
|
|
3515
3480
|
l,
|
|
3516
3481
|
{
|
|
3517
3482
|
value: m.val,
|
|
3518
|
-
location:
|
|
3483
|
+
location: g(d, this.clonePosition())
|
|
3519
3484
|
}
|
|
3520
3485
|
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, c = o.location;
|
|
3521
3486
|
}
|
|
3522
|
-
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3487
|
+
return a.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(b.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3523
3488
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3524
3489
|
var n = 1, i = this.clonePosition();
|
|
3525
3490
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3530,8 +3495,8 @@ var Yn = (
|
|
|
3530
3495
|
else
|
|
3531
3496
|
break;
|
|
3532
3497
|
}
|
|
3533
|
-
var u =
|
|
3534
|
-
return o ? (s *= n,
|
|
3498
|
+
var u = g(i, this.clonePosition());
|
|
3499
|
+
return o ? (s *= n, kn(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3535
3500
|
}, e.prototype.offset = function() {
|
|
3536
3501
|
return this.position.offset;
|
|
3537
3502
|
}, e.prototype.isEOF = function() {
|
|
@@ -3546,7 +3511,7 @@ var Yn = (
|
|
|
3546
3511
|
var t = this.position.offset;
|
|
3547
3512
|
if (t >= this.message.length)
|
|
3548
3513
|
throw Error("out of bound");
|
|
3549
|
-
var r =
|
|
3514
|
+
var r = Kt(this.message, t);
|
|
3550
3515
|
if (r === void 0)
|
|
3551
3516
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3552
3517
|
return r;
|
|
@@ -3565,7 +3530,7 @@ var Yn = (
|
|
|
3565
3530
|
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);
|
|
3566
3531
|
}
|
|
3567
3532
|
}, e.prototype.bumpIf = function(t) {
|
|
3568
|
-
if (
|
|
3533
|
+
if (yt(this.message, t, this.offset())) {
|
|
3569
3534
|
for (var r = 0; r < t.length; r++)
|
|
3570
3535
|
this.bump();
|
|
3571
3536
|
return !0;
|
|
@@ -3587,7 +3552,7 @@ var Yn = (
|
|
|
3587
3552
|
break;
|
|
3588
3553
|
}
|
|
3589
3554
|
}, e.prototype.bumpSpace = function() {
|
|
3590
|
-
for (; !this.isEOF() &&
|
|
3555
|
+
for (; !this.isEOF() && tr(this.char()); )
|
|
3591
3556
|
this.bump();
|
|
3592
3557
|
}, e.prototype.peek = function() {
|
|
3593
3558
|
if (this.isEOF())
|
|
@@ -3597,47 +3562,47 @@ var Yn = (
|
|
|
3597
3562
|
}, e;
|
|
3598
3563
|
}()
|
|
3599
3564
|
);
|
|
3600
|
-
function
|
|
3565
|
+
function We(e) {
|
|
3601
3566
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3602
3567
|
}
|
|
3603
|
-
function
|
|
3604
|
-
return
|
|
3568
|
+
function Zn(e) {
|
|
3569
|
+
return We(e) || e === 47;
|
|
3605
3570
|
}
|
|
3606
|
-
function
|
|
3571
|
+
function qn(e) {
|
|
3607
3572
|
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;
|
|
3608
3573
|
}
|
|
3609
|
-
function
|
|
3574
|
+
function tr(e) {
|
|
3610
3575
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3611
3576
|
}
|
|
3612
|
-
function
|
|
3577
|
+
function Qn(e) {
|
|
3613
3578
|
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;
|
|
3614
3579
|
}
|
|
3615
|
-
function
|
|
3580
|
+
function Ve(e) {
|
|
3616
3581
|
e.forEach(function(t) {
|
|
3617
|
-
if (delete t.location,
|
|
3582
|
+
if (delete t.location, Wt(t) || Vt(t))
|
|
3618
3583
|
for (var r in t.options)
|
|
3619
|
-
delete t.options[r].location,
|
|
3584
|
+
delete t.options[r].location, Ve(t.options[r].value);
|
|
3620
3585
|
else
|
|
3621
|
-
|
|
3586
|
+
jt(t) && Zt(t.style) || (kt(t) || zt(t)) && Ge(t.style) ? delete t.style.location : Xt(t) && Ve(t.children);
|
|
3622
3587
|
});
|
|
3623
3588
|
}
|
|
3624
|
-
function
|
|
3625
|
-
t === void 0 && (t = {}), t =
|
|
3626
|
-
var r = new
|
|
3589
|
+
function Yn(e, t) {
|
|
3590
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3591
|
+
var r = new Xn(e, t).parse();
|
|
3627
3592
|
if (r.err) {
|
|
3628
3593
|
var n = SyntaxError(b[r.err.kind]);
|
|
3629
3594
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3630
3595
|
}
|
|
3631
|
-
return t != null && t.captureLocation ||
|
|
3596
|
+
return t != null && t.captureLocation || Ve(r.val), r.val;
|
|
3632
3597
|
}
|
|
3633
|
-
var
|
|
3598
|
+
var Y;
|
|
3634
3599
|
(function(e) {
|
|
3635
3600
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3636
|
-
})(
|
|
3637
|
-
var
|
|
3601
|
+
})(Y || (Y = {}));
|
|
3602
|
+
var _e = (
|
|
3638
3603
|
/** @class */
|
|
3639
3604
|
function(e) {
|
|
3640
|
-
|
|
3605
|
+
L(t, e);
|
|
3641
3606
|
function t(r, n, i) {
|
|
3642
3607
|
var o = e.call(this, r) || this;
|
|
3643
3608
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3646,48 +3611,48 @@ var Ce = (
|
|
|
3646
3611
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3647
3612
|
}, t;
|
|
3648
3613
|
}(Error)
|
|
3649
|
-
),
|
|
3614
|
+
), Et = (
|
|
3650
3615
|
/** @class */
|
|
3651
3616
|
function(e) {
|
|
3652
|
-
|
|
3617
|
+
L(t, e);
|
|
3653
3618
|
function t(r, n, i, o) {
|
|
3654
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3619
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Y.INVALID_VALUE, o) || this;
|
|
3655
3620
|
}
|
|
3656
3621
|
return t;
|
|
3657
|
-
}(
|
|
3658
|
-
),
|
|
3622
|
+
}(_e)
|
|
3623
|
+
), Jn = (
|
|
3659
3624
|
/** @class */
|
|
3660
3625
|
function(e) {
|
|
3661
|
-
|
|
3626
|
+
L(t, e);
|
|
3662
3627
|
function t(r, n, i) {
|
|
3663
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3628
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Y.INVALID_VALUE, i) || this;
|
|
3664
3629
|
}
|
|
3665
3630
|
return t;
|
|
3666
|
-
}(
|
|
3667
|
-
),
|
|
3631
|
+
}(_e)
|
|
3632
|
+
), Kn = (
|
|
3668
3633
|
/** @class */
|
|
3669
3634
|
function(e) {
|
|
3670
|
-
|
|
3635
|
+
L(t, e);
|
|
3671
3636
|
function t(r, n) {
|
|
3672
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3637
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Y.MISSING_VALUE, n) || this;
|
|
3673
3638
|
}
|
|
3674
3639
|
return t;
|
|
3675
|
-
}(
|
|
3640
|
+
}(_e)
|
|
3676
3641
|
), H;
|
|
3677
3642
|
(function(e) {
|
|
3678
3643
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3679
3644
|
})(H || (H = {}));
|
|
3680
|
-
function
|
|
3645
|
+
function ei(e) {
|
|
3681
3646
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3682
3647
|
var n = t[t.length - 1];
|
|
3683
3648
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3684
3649
|
}, []);
|
|
3685
3650
|
}
|
|
3686
|
-
function
|
|
3651
|
+
function ti(e) {
|
|
3687
3652
|
return typeof e == "function";
|
|
3688
3653
|
}
|
|
3689
|
-
function
|
|
3690
|
-
if (e.length === 1 &&
|
|
3654
|
+
function pe(e, t, r, n, i, o, s) {
|
|
3655
|
+
if (e.length === 1 && pt(e[0]))
|
|
3691
3656
|
return [
|
|
3692
3657
|
{
|
|
3693
3658
|
type: H.literal,
|
|
@@ -3696,14 +3661,14 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3696
3661
|
];
|
|
3697
3662
|
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
3698
3663
|
var c = l[u];
|
|
3699
|
-
if (
|
|
3664
|
+
if (pt(c)) {
|
|
3700
3665
|
a.push({
|
|
3701
3666
|
type: H.literal,
|
|
3702
3667
|
value: c.value
|
|
3703
3668
|
});
|
|
3704
3669
|
continue;
|
|
3705
3670
|
}
|
|
3706
|
-
if (
|
|
3671
|
+
if (wn(c)) {
|
|
3707
3672
|
typeof o == "number" && a.push({
|
|
3708
3673
|
type: H.literal,
|
|
3709
3674
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3712,89 +3677,89 @@ function de(e, t, r, n, i, o, s) {
|
|
|
3712
3677
|
}
|
|
3713
3678
|
var f = c.value;
|
|
3714
3679
|
if (!(i && f in i))
|
|
3715
|
-
throw new
|
|
3680
|
+
throw new Kn(f, s);
|
|
3716
3681
|
var h = i[f];
|
|
3717
|
-
if (
|
|
3682
|
+
if (_n(c)) {
|
|
3718
3683
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
|
|
3719
3684
|
type: typeof h == "string" ? H.literal : H.object,
|
|
3720
3685
|
value: h
|
|
3721
3686
|
});
|
|
3722
3687
|
continue;
|
|
3723
3688
|
}
|
|
3724
|
-
if (
|
|
3725
|
-
var
|
|
3689
|
+
if (kt(c)) {
|
|
3690
|
+
var d = typeof c.style == "string" ? n.date[c.style] : Ge(c.style) ? c.style.parsedOptions : void 0;
|
|
3726
3691
|
a.push({
|
|
3727
3692
|
type: H.literal,
|
|
3728
|
-
value: r.getDateTimeFormat(t,
|
|
3693
|
+
value: r.getDateTimeFormat(t, d).format(h)
|
|
3729
3694
|
});
|
|
3730
3695
|
continue;
|
|
3731
3696
|
}
|
|
3732
|
-
if (
|
|
3733
|
-
var
|
|
3697
|
+
if (zt(c)) {
|
|
3698
|
+
var d = typeof c.style == "string" ? n.time[c.style] : Ge(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3734
3699
|
a.push({
|
|
3735
3700
|
type: H.literal,
|
|
3736
|
-
value: r.getDateTimeFormat(t,
|
|
3701
|
+
value: r.getDateTimeFormat(t, d).format(h)
|
|
3737
3702
|
});
|
|
3738
3703
|
continue;
|
|
3739
3704
|
}
|
|
3740
|
-
if (
|
|
3741
|
-
var
|
|
3742
|
-
|
|
3705
|
+
if (jt(c)) {
|
|
3706
|
+
var d = typeof c.style == "string" ? n.number[c.style] : Zt(c.style) ? c.style.parsedOptions : void 0;
|
|
3707
|
+
d && d.scale && (h = h * (d.scale || 1)), a.push({
|
|
3743
3708
|
type: H.literal,
|
|
3744
|
-
value: r.getNumberFormat(t,
|
|
3709
|
+
value: r.getNumberFormat(t, d).format(h)
|
|
3745
3710
|
});
|
|
3746
3711
|
continue;
|
|
3747
3712
|
}
|
|
3748
|
-
if (
|
|
3749
|
-
var m = c.children,
|
|
3750
|
-
if (!
|
|
3751
|
-
throw new
|
|
3752
|
-
var M =
|
|
3753
|
-
return
|
|
3713
|
+
if (Xt(c)) {
|
|
3714
|
+
var m = c.children, p = c.value, C = i[p];
|
|
3715
|
+
if (!ti(C))
|
|
3716
|
+
throw new Jn(p, "function", s);
|
|
3717
|
+
var M = pe(m, t, r, n, i, o), T = C(M.map(function(S) {
|
|
3718
|
+
return S.value;
|
|
3754
3719
|
}));
|
|
3755
|
-
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(
|
|
3720
|
+
Array.isArray(T) || (T = [T]), a.push.apply(a, T.map(function(S) {
|
|
3756
3721
|
return {
|
|
3757
|
-
type: typeof
|
|
3758
|
-
value:
|
|
3722
|
+
type: typeof S == "string" ? H.literal : H.object,
|
|
3723
|
+
value: S
|
|
3759
3724
|
};
|
|
3760
3725
|
}));
|
|
3761
3726
|
}
|
|
3762
|
-
if (
|
|
3763
|
-
var
|
|
3764
|
-
if (!
|
|
3765
|
-
throw new
|
|
3766
|
-
a.push.apply(a,
|
|
3727
|
+
if (Wt(c)) {
|
|
3728
|
+
var x = c.options[h] || c.options.other;
|
|
3729
|
+
if (!x)
|
|
3730
|
+
throw new Et(c.value, h, Object.keys(c.options), s);
|
|
3731
|
+
a.push.apply(a, pe(x.value, t, r, n, i));
|
|
3767
3732
|
continue;
|
|
3768
3733
|
}
|
|
3769
|
-
if (
|
|
3770
|
-
var
|
|
3771
|
-
if (!
|
|
3734
|
+
if (Vt(c)) {
|
|
3735
|
+
var x = c.options["=".concat(h)];
|
|
3736
|
+
if (!x) {
|
|
3772
3737
|
if (!Intl.PluralRules)
|
|
3773
|
-
throw new
|
|
3738
|
+
throw new _e(`Intl.PluralRules is not available in this environment.
|
|
3774
3739
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3775
|
-
`,
|
|
3776
|
-
var
|
|
3777
|
-
|
|
3740
|
+
`, Y.MISSING_INTL_API, s);
|
|
3741
|
+
var A = r.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3742
|
+
x = c.options[A] || c.options.other;
|
|
3778
3743
|
}
|
|
3779
|
-
if (!
|
|
3780
|
-
throw new
|
|
3781
|
-
a.push.apply(a,
|
|
3744
|
+
if (!x)
|
|
3745
|
+
throw new Et(c.value, h, Object.keys(c.options), s);
|
|
3746
|
+
a.push.apply(a, pe(x.value, t, r, n, i, h - (c.offset || 0)));
|
|
3782
3747
|
continue;
|
|
3783
3748
|
}
|
|
3784
3749
|
}
|
|
3785
|
-
return
|
|
3750
|
+
return ei(a);
|
|
3786
3751
|
}
|
|
3787
|
-
function
|
|
3788
|
-
return t ?
|
|
3789
|
-
return r[n] =
|
|
3752
|
+
function ri(e, t) {
|
|
3753
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3754
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3790
3755
|
}, {})) : e;
|
|
3791
3756
|
}
|
|
3792
|
-
function
|
|
3757
|
+
function ni(e, t) {
|
|
3793
3758
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3794
|
-
return r[n] =
|
|
3795
|
-
},
|
|
3759
|
+
return r[n] = ri(e[n], t[n]), r;
|
|
3760
|
+
}, v({}, e)) : e;
|
|
3796
3761
|
}
|
|
3797
|
-
function
|
|
3762
|
+
function Pe(e) {
|
|
3798
3763
|
return {
|
|
3799
3764
|
create: function() {
|
|
3800
3765
|
return {
|
|
@@ -3808,39 +3773,39 @@ function Ne(e) {
|
|
|
3808
3773
|
}
|
|
3809
3774
|
};
|
|
3810
3775
|
}
|
|
3811
|
-
function
|
|
3776
|
+
function ii(e) {
|
|
3812
3777
|
return e === void 0 && (e = {
|
|
3813
3778
|
number: {},
|
|
3814
3779
|
dateTime: {},
|
|
3815
3780
|
pluralRules: {}
|
|
3816
3781
|
}), {
|
|
3817
|
-
getNumberFormat:
|
|
3782
|
+
getNumberFormat: Be(function() {
|
|
3818
3783
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3819
3784
|
r[n] = arguments[n];
|
|
3820
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3785
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Z([void 0], r, !1)))();
|
|
3821
3786
|
}, {
|
|
3822
|
-
cache:
|
|
3823
|
-
strategy:
|
|
3787
|
+
cache: Pe(e.number),
|
|
3788
|
+
strategy: He.variadic
|
|
3824
3789
|
}),
|
|
3825
|
-
getDateTimeFormat:
|
|
3790
|
+
getDateTimeFormat: Be(function() {
|
|
3826
3791
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3827
3792
|
r[n] = arguments[n];
|
|
3828
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3793
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Z([void 0], r, !1)))();
|
|
3829
3794
|
}, {
|
|
3830
|
-
cache:
|
|
3831
|
-
strategy:
|
|
3795
|
+
cache: Pe(e.dateTime),
|
|
3796
|
+
strategy: He.variadic
|
|
3832
3797
|
}),
|
|
3833
|
-
getPluralRules:
|
|
3798
|
+
getPluralRules: Be(function() {
|
|
3834
3799
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3835
3800
|
r[n] = arguments[n];
|
|
3836
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3801
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Z([void 0], r, !1)))();
|
|
3837
3802
|
}, {
|
|
3838
|
-
cache:
|
|
3839
|
-
strategy:
|
|
3803
|
+
cache: Pe(e.pluralRules),
|
|
3804
|
+
strategy: He.variadic
|
|
3840
3805
|
})
|
|
3841
3806
|
};
|
|
3842
3807
|
}
|
|
3843
|
-
var
|
|
3808
|
+
var oi = (
|
|
3844
3809
|
/** @class */
|
|
3845
3810
|
function() {
|
|
3846
3811
|
function e(t, r, n, i) {
|
|
@@ -3859,7 +3824,7 @@ var li = (
|
|
|
3859
3824
|
}, []);
|
|
3860
3825
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3861
3826
|
}, this.formatToParts = function(u) {
|
|
3862
|
-
return
|
|
3827
|
+
return pe(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3863
3828
|
}, this.resolvedOptions = function() {
|
|
3864
3829
|
var u;
|
|
3865
3830
|
return {
|
|
@@ -3872,13 +3837,13 @@ var li = (
|
|
|
3872
3837
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3873
3838
|
var s = i || {};
|
|
3874
3839
|
s.formatters;
|
|
3875
|
-
var a =
|
|
3876
|
-
this.ast = e.__parse(t,
|
|
3840
|
+
var a = $r(s, ["formatters"]);
|
|
3841
|
+
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3877
3842
|
} else
|
|
3878
3843
|
this.ast = t;
|
|
3879
3844
|
if (!Array.isArray(this.ast))
|
|
3880
3845
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3881
|
-
this.formats =
|
|
3846
|
+
this.formats = ni(e.formats, n), this.formatters = i && i.formatters || ii(this.formatterCache);
|
|
3882
3847
|
}
|
|
3883
3848
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3884
3849
|
get: function() {
|
|
@@ -3891,7 +3856,7 @@ var li = (
|
|
|
3891
3856
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3892
3857
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3893
3858
|
}
|
|
3894
|
-
}, e.__parse =
|
|
3859
|
+
}, e.__parse = Yn, e.formats = {
|
|
3895
3860
|
number: {
|
|
3896
3861
|
integer: {
|
|
3897
3862
|
maximumFractionDigits: 0
|
|
@@ -3952,7 +3917,7 @@ var li = (
|
|
|
3952
3917
|
}, e;
|
|
3953
3918
|
}()
|
|
3954
3919
|
);
|
|
3955
|
-
function
|
|
3920
|
+
function si(e, t) {
|
|
3956
3921
|
if (t == null)
|
|
3957
3922
|
return;
|
|
3958
3923
|
if (t in e)
|
|
@@ -3973,92 +3938,92 @@ function ci(e, t) {
|
|
|
3973
3938
|
n = void 0;
|
|
3974
3939
|
return n;
|
|
3975
3940
|
}
|
|
3976
|
-
const $ = {},
|
|
3941
|
+
const $ = {}, ai = (e, t, r) => r && (t in $ || ($[t] = {}), e in $[t] || ($[t][e] = r), r), rr = (e, t) => {
|
|
3977
3942
|
if (t == null)
|
|
3978
3943
|
return;
|
|
3979
3944
|
if (t in $ && e in $[t])
|
|
3980
3945
|
return $[t][e];
|
|
3981
|
-
const r =
|
|
3946
|
+
const r = we(t);
|
|
3982
3947
|
for (let n = 0; n < r.length; n++) {
|
|
3983
|
-
const i = r[n], o =
|
|
3948
|
+
const i = r[n], o = li(i, e);
|
|
3984
3949
|
if (o)
|
|
3985
|
-
return
|
|
3950
|
+
return ai(e, t, o);
|
|
3986
3951
|
}
|
|
3987
3952
|
};
|
|
3988
|
-
let
|
|
3953
|
+
let Ye;
|
|
3989
3954
|
const le = Ee({});
|
|
3990
|
-
function
|
|
3991
|
-
return
|
|
3955
|
+
function ui(e) {
|
|
3956
|
+
return Ye[e] || null;
|
|
3992
3957
|
}
|
|
3993
|
-
function
|
|
3994
|
-
return e in
|
|
3958
|
+
function nr(e) {
|
|
3959
|
+
return e in Ye;
|
|
3995
3960
|
}
|
|
3996
|
-
function
|
|
3997
|
-
if (!
|
|
3961
|
+
function li(e, t) {
|
|
3962
|
+
if (!nr(e))
|
|
3998
3963
|
return null;
|
|
3999
|
-
const r =
|
|
4000
|
-
return
|
|
3964
|
+
const r = ui(e);
|
|
3965
|
+
return si(r, t);
|
|
4001
3966
|
}
|
|
4002
|
-
function
|
|
3967
|
+
function ci(e) {
|
|
4003
3968
|
if (e == null)
|
|
4004
3969
|
return;
|
|
4005
|
-
const t =
|
|
3970
|
+
const t = we(e);
|
|
4006
3971
|
for (let r = 0; r < t.length; r++) {
|
|
4007
3972
|
const n = t[r];
|
|
4008
|
-
if (
|
|
3973
|
+
if (nr(n))
|
|
4009
3974
|
return n;
|
|
4010
3975
|
}
|
|
4011
3976
|
}
|
|
4012
|
-
function
|
|
4013
|
-
delete $[e], le.update((r) => (r[e] =
|
|
3977
|
+
function ir(e, ...t) {
|
|
3978
|
+
delete $[e], le.update((r) => (r[e] = pn.all([r[e] || {}, ...t]), r));
|
|
4014
3979
|
}
|
|
4015
|
-
|
|
3980
|
+
ee(
|
|
4016
3981
|
[le],
|
|
4017
3982
|
([e]) => Object.keys(e)
|
|
4018
3983
|
);
|
|
4019
|
-
le.subscribe((e) =>
|
|
3984
|
+
le.subscribe((e) => Ye = e);
|
|
4020
3985
|
const me = {};
|
|
4021
|
-
function
|
|
3986
|
+
function hi(e, t) {
|
|
4022
3987
|
me[e].delete(t), me[e].size === 0 && delete me[e];
|
|
4023
3988
|
}
|
|
4024
|
-
function
|
|
3989
|
+
function or(e) {
|
|
4025
3990
|
return me[e];
|
|
4026
3991
|
}
|
|
4027
|
-
function
|
|
4028
|
-
return
|
|
4029
|
-
const r =
|
|
3992
|
+
function fi(e) {
|
|
3993
|
+
return we(e).map((t) => {
|
|
3994
|
+
const r = or(t);
|
|
4030
3995
|
return [t, r ? [...r] : []];
|
|
4031
3996
|
}).filter(([, t]) => t.length > 0);
|
|
4032
3997
|
}
|
|
4033
|
-
function
|
|
4034
|
-
return e == null ? !1 :
|
|
3998
|
+
function Xe(e) {
|
|
3999
|
+
return e == null ? !1 : we(e).some(
|
|
4035
4000
|
(t) => {
|
|
4036
4001
|
var r;
|
|
4037
|
-
return (r =
|
|
4002
|
+
return (r = or(t)) == null ? void 0 : r.size;
|
|
4038
4003
|
}
|
|
4039
4004
|
);
|
|
4040
4005
|
}
|
|
4041
|
-
function
|
|
4006
|
+
function di(e, t) {
|
|
4042
4007
|
return Promise.all(
|
|
4043
|
-
t.map((n) => (
|
|
4044
|
-
).then((n) =>
|
|
4045
|
-
}
|
|
4046
|
-
const
|
|
4047
|
-
function
|
|
4048
|
-
if (!
|
|
4049
|
-
return e in
|
|
4050
|
-
const t =
|
|
4051
|
-
return
|
|
4008
|
+
t.map((n) => (hi(e, n), n().then((i) => i.default || i)))
|
|
4009
|
+
).then((n) => ir(e, ...n));
|
|
4010
|
+
}
|
|
4011
|
+
const ne = {};
|
|
4012
|
+
function sr(e) {
|
|
4013
|
+
if (!Xe(e))
|
|
4014
|
+
return e in ne ? ne[e] : Promise.resolve();
|
|
4015
|
+
const t = fi(e);
|
|
4016
|
+
return ne[e] = Promise.all(
|
|
4052
4017
|
t.map(
|
|
4053
|
-
([r, n]) =>
|
|
4018
|
+
([r, n]) => di(r, n)
|
|
4054
4019
|
)
|
|
4055
4020
|
).then(() => {
|
|
4056
|
-
if (
|
|
4057
|
-
return
|
|
4058
|
-
delete
|
|
4059
|
-
}),
|
|
4021
|
+
if (Xe(e))
|
|
4022
|
+
return sr(e);
|
|
4023
|
+
delete ne[e];
|
|
4024
|
+
}), ne[e];
|
|
4060
4025
|
}
|
|
4061
|
-
const
|
|
4026
|
+
const pi = {
|
|
4062
4027
|
number: {
|
|
4063
4028
|
scientific: { notation: "scientific" },
|
|
4064
4029
|
engineering: { notation: "engineering" },
|
|
@@ -4087,135 +4052,135 @@ const gi = {
|
|
|
4087
4052
|
timeZoneName: "short"
|
|
4088
4053
|
}
|
|
4089
4054
|
}
|
|
4090
|
-
},
|
|
4055
|
+
}, mi = {
|
|
4091
4056
|
fallbackLocale: null,
|
|
4092
4057
|
loadingDelay: 200,
|
|
4093
|
-
formats:
|
|
4058
|
+
formats: pi,
|
|
4094
4059
|
warnOnMissingMessages: !0,
|
|
4095
4060
|
handleMissingMessage: void 0,
|
|
4096
4061
|
ignoreTag: !0
|
|
4097
|
-
},
|
|
4098
|
-
function
|
|
4099
|
-
return
|
|
4100
|
-
}
|
|
4101
|
-
const
|
|
4102
|
-
var
|
|
4103
|
-
for (var r in t
|
|
4104
|
-
|
|
4105
|
-
if (
|
|
4106
|
-
for (var r of
|
|
4107
|
-
|
|
4062
|
+
}, bi = mi;
|
|
4063
|
+
function J() {
|
|
4064
|
+
return bi;
|
|
4065
|
+
}
|
|
4066
|
+
const Oe = Ee(!1);
|
|
4067
|
+
var gi = Object.defineProperty, yi = Object.defineProperties, vi = Object.getOwnPropertyDescriptors, _t = Object.getOwnPropertySymbols, xi = Object.prototype.hasOwnProperty, Ei = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? gi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, _i = (e, t) => {
|
|
4068
|
+
for (var r in t)
|
|
4069
|
+
xi.call(t, r) && wt(e, r, t[r]);
|
|
4070
|
+
if (_t)
|
|
4071
|
+
for (var r of _t(t))
|
|
4072
|
+
Ei.call(t, r) && wt(e, r, t[r]);
|
|
4108
4073
|
return e;
|
|
4109
|
-
},
|
|
4110
|
-
let
|
|
4074
|
+
}, wi = (e, t) => yi(e, vi(t));
|
|
4075
|
+
let Ze;
|
|
4111
4076
|
const ge = Ee(null);
|
|
4112
|
-
function
|
|
4077
|
+
function Ct(e) {
|
|
4113
4078
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4114
4079
|
}
|
|
4115
|
-
function
|
|
4116
|
-
const r =
|
|
4117
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4080
|
+
function we(e, t = J().fallbackLocale) {
|
|
4081
|
+
const r = Ct(e);
|
|
4082
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ct(t)])] : r;
|
|
4118
4083
|
}
|
|
4119
4084
|
function F() {
|
|
4120
|
-
return
|
|
4085
|
+
return Ze != null ? Ze : void 0;
|
|
4121
4086
|
}
|
|
4122
4087
|
ge.subscribe((e) => {
|
|
4123
|
-
|
|
4088
|
+
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4124
4089
|
});
|
|
4125
|
-
const
|
|
4126
|
-
if (e &&
|
|
4127
|
-
const { loadingDelay: t } =
|
|
4090
|
+
const Ci = (e) => {
|
|
4091
|
+
if (e && ci(e) && Xe(e)) {
|
|
4092
|
+
const { loadingDelay: t } = J();
|
|
4128
4093
|
let r;
|
|
4129
4094
|
return typeof window != "undefined" && F() != null && t ? r = window.setTimeout(
|
|
4130
|
-
() =>
|
|
4095
|
+
() => Oe.set(!0),
|
|
4131
4096
|
t
|
|
4132
|
-
) :
|
|
4097
|
+
) : Oe.set(!0), sr(e).then(() => {
|
|
4133
4098
|
ge.set(e);
|
|
4134
4099
|
}).finally(() => {
|
|
4135
|
-
clearTimeout(r),
|
|
4100
|
+
clearTimeout(r), Oe.set(!1);
|
|
4136
4101
|
});
|
|
4137
4102
|
}
|
|
4138
4103
|
return ge.set(e);
|
|
4139
|
-
},
|
|
4140
|
-
set:
|
|
4141
|
-
}),
|
|
4104
|
+
}, te = wi(_i({}, ge), {
|
|
4105
|
+
set: Ci
|
|
4106
|
+
}), Ce = (e) => {
|
|
4142
4107
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4143
4108
|
return (n) => {
|
|
4144
4109
|
const i = JSON.stringify(n);
|
|
4145
4110
|
return i in t ? t[i] : t[i] = e(n);
|
|
4146
4111
|
};
|
|
4147
4112
|
};
|
|
4148
|
-
var
|
|
4113
|
+
var Ai = Object.defineProperty, ye = Object.getOwnPropertySymbols, ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable, At = (e, t, r) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
4149
4114
|
for (var r in t || (t = {}))
|
|
4150
|
-
|
|
4115
|
+
ar.call(t, r) && At(e, r, t[r]);
|
|
4151
4116
|
if (ye)
|
|
4152
4117
|
for (var r of ye(t))
|
|
4153
|
-
|
|
4118
|
+
ur.call(t, r) && At(e, r, t[r]);
|
|
4154
4119
|
return e;
|
|
4155
|
-
},
|
|
4120
|
+
}, re = (e, t) => {
|
|
4156
4121
|
var r = {};
|
|
4157
4122
|
for (var n in e)
|
|
4158
|
-
|
|
4123
|
+
ar.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4159
4124
|
if (e != null && ye)
|
|
4160
4125
|
for (var n of ye(e))
|
|
4161
|
-
t.indexOf(n) < 0 &&
|
|
4126
|
+
t.indexOf(n) < 0 && ur.call(e, n) && (r[n] = e[n]);
|
|
4162
4127
|
return r;
|
|
4163
4128
|
};
|
|
4164
|
-
const
|
|
4165
|
-
const { formats: r } =
|
|
4129
|
+
const ae = (e, t) => {
|
|
4130
|
+
const { formats: r } = J();
|
|
4166
4131
|
if (e in r && t in r[e])
|
|
4167
4132
|
return r[e][t];
|
|
4168
4133
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4169
|
-
},
|
|
4134
|
+
}, Si = Ce(
|
|
4170
4135
|
(e) => {
|
|
4171
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4136
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
4172
4137
|
if (r == null)
|
|
4173
4138
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4174
|
-
return n && (i =
|
|
4139
|
+
return n && (i = ae("number", n)), new Intl.NumberFormat(r, i);
|
|
4175
4140
|
}
|
|
4176
|
-
),
|
|
4141
|
+
), Ti = Ce(
|
|
4177
4142
|
(e) => {
|
|
4178
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4143
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
4179
4144
|
if (r == null)
|
|
4180
4145
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4181
|
-
return n ? i =
|
|
4146
|
+
return n ? i = ae("date", n) : Object.keys(i).length === 0 && (i = ae("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4182
4147
|
}
|
|
4183
|
-
),
|
|
4148
|
+
), Bi = Ce(
|
|
4184
4149
|
(e) => {
|
|
4185
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4150
|
+
var t = e, { locale: r, format: n } = t, i = re(t, ["locale", "format"]);
|
|
4186
4151
|
if (r == null)
|
|
4187
4152
|
throw new Error(
|
|
4188
4153
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4189
4154
|
);
|
|
4190
|
-
return n ? i =
|
|
4155
|
+
return n ? i = ae("time", n) : Object.keys(i).length === 0 && (i = ae("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4191
4156
|
}
|
|
4192
|
-
),
|
|
4157
|
+
), Hi = (e = {}) => {
|
|
4193
4158
|
var t = e, {
|
|
4194
4159
|
locale: r = F()
|
|
4195
|
-
} = t, n =
|
|
4160
|
+
} = t, n = re(t, [
|
|
4196
4161
|
"locale"
|
|
4197
4162
|
]);
|
|
4198
|
-
return
|
|
4199
|
-
},
|
|
4163
|
+
return Si(Je({ locale: r }, n));
|
|
4164
|
+
}, Mi = (e = {}) => {
|
|
4200
4165
|
var t = e, {
|
|
4201
4166
|
locale: r = F()
|
|
4202
|
-
} = t, n =
|
|
4167
|
+
} = t, n = re(t, [
|
|
4203
4168
|
"locale"
|
|
4204
4169
|
]);
|
|
4205
|
-
return
|
|
4206
|
-
},
|
|
4170
|
+
return Ti(Je({ locale: r }, n));
|
|
4171
|
+
}, Pi = (e = {}) => {
|
|
4207
4172
|
var t = e, {
|
|
4208
4173
|
locale: r = F()
|
|
4209
|
-
} = t, n =
|
|
4174
|
+
} = t, n = re(t, [
|
|
4210
4175
|
"locale"
|
|
4211
4176
|
]);
|
|
4212
|
-
return
|
|
4213
|
-
},
|
|
4177
|
+
return Bi(Je({ locale: r }, n));
|
|
4178
|
+
}, Oi = Ce(
|
|
4214
4179
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4215
|
-
(e, t = F()) => new
|
|
4216
|
-
ignoreTag:
|
|
4180
|
+
(e, t = F()) => new oi(e, t, J().formats, {
|
|
4181
|
+
ignoreTag: J().ignoreTag
|
|
4217
4182
|
})
|
|
4218
|
-
),
|
|
4183
|
+
), Ni = (e, t = {}) => {
|
|
4219
4184
|
var r, n, i, o;
|
|
4220
4185
|
let s = t;
|
|
4221
4186
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4228,9 +4193,9 @@ const se = (e, t) => {
|
|
|
4228
4193
|
throw new Error(
|
|
4229
4194
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4230
4195
|
);
|
|
4231
|
-
let c =
|
|
4196
|
+
let c = rr(e, u);
|
|
4232
4197
|
if (!c)
|
|
4233
|
-
c = (o = (i = (n = (r =
|
|
4198
|
+
c = (o = (i = (n = (r = J()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4234
4199
|
else if (typeof c != "string")
|
|
4235
4200
|
return console.warn(
|
|
4236
4201
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4239,7 +4204,7 @@ const se = (e, t) => {
|
|
|
4239
4204
|
return c;
|
|
4240
4205
|
let f = c;
|
|
4241
4206
|
try {
|
|
4242
|
-
f =
|
|
4207
|
+
f = Oi(c, u).format(a);
|
|
4243
4208
|
} catch (h) {
|
|
4244
4209
|
h instanceof Error && console.warn(
|
|
4245
4210
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4247,20 +4212,20 @@ const se = (e, t) => {
|
|
|
4247
4212
|
);
|
|
4248
4213
|
}
|
|
4249
4214
|
return f;
|
|
4250
|
-
},
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
window.emWidgets = { topic:
|
|
4256
|
-
const
|
|
4257
|
-
function
|
|
4258
|
-
|
|
4259
|
-
}
|
|
4260
|
-
function
|
|
4261
|
-
|
|
4262
|
-
}
|
|
4263
|
-
const
|
|
4215
|
+
}, Ii = (e, t) => Pi(t).format(e), Li = (e, t) => Mi(t).format(e), $i = (e, t) => Hi(t).format(e), Ri = (e, t = F()) => rr(e, t), Di = ee([te, le], () => Ni);
|
|
4216
|
+
ee([te], () => Ii);
|
|
4217
|
+
ee([te], () => Li);
|
|
4218
|
+
ee([te], () => $i);
|
|
4219
|
+
ee([te, le], () => Ri);
|
|
4220
|
+
window.emWidgets = { topic: Qr };
|
|
4221
|
+
const Ui = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
|
|
4222
|
+
function St(e, t) {
|
|
4223
|
+
ir(e, t);
|
|
4224
|
+
}
|
|
4225
|
+
function Fi(e) {
|
|
4226
|
+
te.set(e);
|
|
4227
|
+
}
|
|
4228
|
+
const Tt = {
|
|
4264
4229
|
en: {
|
|
4265
4230
|
titleAccountClosure: "Account Closure",
|
|
4266
4231
|
accountClosureDescription: "Account Closure provides a permanent access restriction to your account if you feel you need a break, or you just want to stop using our services.",
|
|
@@ -4350,13 +4315,13 @@ const Pt = {
|
|
|
4350
4315
|
accountClosureConfirm: "Yes"
|
|
4351
4316
|
}
|
|
4352
4317
|
};
|
|
4353
|
-
function
|
|
4318
|
+
function Gi(e, t) {
|
|
4354
4319
|
if (e) {
|
|
4355
4320
|
const r = document.createElement("style");
|
|
4356
4321
|
r.innerHTML = t, e.appendChild(r);
|
|
4357
4322
|
}
|
|
4358
4323
|
}
|
|
4359
|
-
function
|
|
4324
|
+
function ji(e, t) {
|
|
4360
4325
|
const r = new URL(t);
|
|
4361
4326
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4362
4327
|
const i = document.createElement("style");
|
|
@@ -4365,7 +4330,7 @@ function Vi(e, t) {
|
|
|
4365
4330
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4366
4331
|
});
|
|
4367
4332
|
}
|
|
4368
|
-
function
|
|
4333
|
+
function ki(e, t, r) {
|
|
4369
4334
|
if (window.emMessageBus) {
|
|
4370
4335
|
const n = document.createElement("style");
|
|
4371
4336
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4373,54 +4338,54 @@ function Xi(e, t, r) {
|
|
|
4373
4338
|
});
|
|
4374
4339
|
}
|
|
4375
4340
|
}
|
|
4376
|
-
function
|
|
4377
|
-
|
|
4341
|
+
function zi(e) {
|
|
4342
|
+
br(e, "svelte-11607qo", '.AccountClosureWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background-color:var(--emw--pam-color-bg, var(--emw--background-color, #F1F1F1));border-radius:5%;padding:50px;max-width:760px}.AccountClosureWrapper.AccountClosureWrapperMobile{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 .aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountClosureTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-normal, 400)}.AccountClosureTitleMobile{font-size:var(--emw--font-size-large, 20px)}.AccountClosureTitleNone{display:none}.AccountClosureDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.AccountClosureDescription.AccountClosureDescriptionMobile{font-size:var(--emw--font-size-small, 14px);line-height:18px}.AccountClosureActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.AccountClosureActionButtons.AccountClosureActionButtonsMobile{width:100%;grid-template-columns:1fr}.AccountClosureSave{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:30px 0;color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;cursor:pointer}.AccountClosureSave.AccountClosureSaveMobile{width:100%;height:40px;font-size:var(--emw--font-size-small, 14px);grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:100}.ModalWrapper .ModalContent{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.ModalWrapper .ModalContent::before{content:"";position:absolute;top:-6px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.ModalWrapper .ModalContent::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.ModalWrapper .ModalBody{background:transparent;padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:var(--emw--font-size-x-large, 24px);margin-bottom:40px;color:white}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:var(--emw--font-size-medium, 16px)}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:var(--emw--font-size-small, 14px)}');
|
|
4378
4343
|
}
|
|
4379
|
-
function
|
|
4344
|
+
function Wi(e) {
|
|
4380
4345
|
let t, r, n, i, o, s, a, u, l, c, f = (
|
|
4381
4346
|
/*$_*/
|
|
4382
4347
|
e[2]("titleAccountClosure") + ""
|
|
4383
|
-
), h,
|
|
4348
|
+
), h, d, m;
|
|
4384
4349
|
return {
|
|
4385
4350
|
c() {
|
|
4386
|
-
t = B("div"), r = j("svg"), n = j("defs"), i = j("style"), o = R(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = j("g"), a = j("g"), u = j("path"), l = U(), c = B("h2"), h = R(f),
|
|
4351
|
+
t = B("div"), r = j("svg"), n = j("defs"), i = j("style"), o = R(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = j("g"), a = j("g"), u = j("path"), l = U(), c = B("h2"), h = R(f), E(u, "class", "aaa"), E(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), E(u, "transform", "translate(15 15) rotate(180)"), E(a, "transform", "translate(20 158)"), E(s, "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(c, "class", "AccountClosureTitleMobile"), E(c, "part", "AccountClosureTitleMobile"), E(t, "class", "MenuReturnButton"), E(t, "part", "MenuReturnButton");
|
|
4387
4352
|
},
|
|
4388
|
-
m(
|
|
4389
|
-
|
|
4353
|
+
m(p, C) {
|
|
4354
|
+
ve(p, t, C), y(t, r), y(r, n), y(n, i), y(i, o), y(r, s), y(s, a), y(a, u), y(t, l), y(t, c), y(c, h), d || (m = be(
|
|
4390
4355
|
t,
|
|
4391
4356
|
"click",
|
|
4392
4357
|
/*click_handler*/
|
|
4393
4358
|
e[12]
|
|
4394
|
-
),
|
|
4359
|
+
), d = !0);
|
|
4395
4360
|
},
|
|
4396
|
-
p(
|
|
4397
|
-
|
|
4361
|
+
p(p, C) {
|
|
4362
|
+
C & /*$_*/
|
|
4398
4363
|
4 && f !== (f = /*$_*/
|
|
4399
|
-
|
|
4364
|
+
p[2]("titleAccountClosure") + "") && V(h, f);
|
|
4400
4365
|
},
|
|
4401
|
-
d(
|
|
4402
|
-
|
|
4366
|
+
d(p) {
|
|
4367
|
+
p && ue(t), d = !1, m();
|
|
4403
4368
|
}
|
|
4404
4369
|
};
|
|
4405
4370
|
}
|
|
4406
|
-
function
|
|
4371
|
+
function Bt(e) {
|
|
4407
4372
|
let t, r, n, i, o = (
|
|
4408
4373
|
/*$_*/
|
|
4409
4374
|
e[2]("modal") + ""
|
|
4410
4375
|
), s, a, u, l, c = (
|
|
4411
4376
|
/*$_*/
|
|
4412
4377
|
e[2]("accountClosureCancel") + ""
|
|
4413
|
-
), f, h,
|
|
4378
|
+
), f, h, d, m = (
|
|
4414
4379
|
/*$_*/
|
|
4415
4380
|
e[2]("accountClosureConfirm") + ""
|
|
4416
|
-
),
|
|
4381
|
+
), p, C, M;
|
|
4417
4382
|
return {
|
|
4418
4383
|
c() {
|
|
4419
|
-
t = B("div"), r = B("div"), n = B("div"), i = B("p"), s = R(o), a = U(), u = B("div"), l = B("button"), f = R(c), h = U(),
|
|
4384
|
+
t = B("div"), r = B("div"), n = B("div"), i = B("p"), s = R(o), a = U(), u = B("div"), l = B("button"), f = R(c), h = U(), d = B("button"), p = R(m), E(i, "class", "ModalText"), E(l, "class", "ModalCancel"), E(d, "class", "ModalConfirm"), E(u, "class", "ModalButtons"), E(n, "class", "ModalBody"), E(r, "class", "ModalContent"), E(t, "class", "ModalWrapper " + /*isMobile*/
|
|
4420
4385
|
(e[3] ? "ModalWrapperMobile" : ""));
|
|
4421
4386
|
},
|
|
4422
|
-
m(T,
|
|
4423
|
-
|
|
4387
|
+
m(T, x) {
|
|
4388
|
+
ve(T, t, x), y(t, r), y(r, n), y(n, i), y(i, s), y(n, a), y(n, u), y(u, l), y(l, f), y(u, h), y(u, d), y(d, p), C || (M = [
|
|
4424
4389
|
be(
|
|
4425
4390
|
l,
|
|
4426
4391
|
"click",
|
|
@@ -4428,100 +4393,100 @@ function Ot(e) {
|
|
|
4428
4393
|
e[14]
|
|
4429
4394
|
),
|
|
4430
4395
|
be(
|
|
4431
|
-
|
|
4396
|
+
d,
|
|
4432
4397
|
"click",
|
|
4433
4398
|
/*click_handler_3*/
|
|
4434
4399
|
e[15]
|
|
4435
4400
|
)
|
|
4436
|
-
],
|
|
4401
|
+
], C = !0);
|
|
4437
4402
|
},
|
|
4438
|
-
p(T,
|
|
4439
|
-
|
|
4403
|
+
p(T, x) {
|
|
4404
|
+
x & /*$_*/
|
|
4440
4405
|
4 && o !== (o = /*$_*/
|
|
4441
|
-
T[2]("modal") + "") && V(s, o),
|
|
4406
|
+
T[2]("modal") + "") && V(s, o), x & /*$_*/
|
|
4442
4407
|
4 && c !== (c = /*$_*/
|
|
4443
|
-
T[2]("accountClosureCancel") + "") && V(f, c),
|
|
4408
|
+
T[2]("accountClosureCancel") + "") && V(f, c), x & /*$_*/
|
|
4444
4409
|
4 && m !== (m = /*$_*/
|
|
4445
|
-
T[2]("accountClosureConfirm") + "") && V(
|
|
4410
|
+
T[2]("accountClosureConfirm") + "") && V(p, m);
|
|
4446
4411
|
},
|
|
4447
4412
|
d(T) {
|
|
4448
|
-
T &&
|
|
4413
|
+
T && ue(t), C = !1, K(M);
|
|
4449
4414
|
}
|
|
4450
4415
|
};
|
|
4451
4416
|
}
|
|
4452
|
-
function
|
|
4417
|
+
function Vi(e) {
|
|
4453
4418
|
let t, r, n, i, o = (
|
|
4454
4419
|
/*$_*/
|
|
4455
4420
|
e[2]("titleAccountClosure") + ""
|
|
4456
4421
|
), s, a, u, l, c = (
|
|
4457
4422
|
/*$_*/
|
|
4458
4423
|
e[2]("accountClosureDescription") + ""
|
|
4459
|
-
), f, h,
|
|
4424
|
+
), f, h, d, m = (
|
|
4460
4425
|
/*$_*/
|
|
4461
4426
|
e[2]("closeAccount") + ""
|
|
4462
|
-
),
|
|
4427
|
+
), p, C, M, T, x = (
|
|
4463
4428
|
/*isMobile*/
|
|
4464
|
-
e[3] &&
|
|
4465
|
-
),
|
|
4429
|
+
e[3] && Wi(e)
|
|
4430
|
+
), A = (
|
|
4466
4431
|
/*closureModal*/
|
|
4467
|
-
e[1] &&
|
|
4432
|
+
e[1] && Bt(e)
|
|
4468
4433
|
);
|
|
4469
4434
|
return {
|
|
4470
4435
|
c() {
|
|
4471
|
-
t = B("div"), r = B("div"),
|
|
4472
|
-
(e[3] ? "AccountClosureTitleNone" : "")),
|
|
4473
|
-
(e[3] ? "AccountClosureDescriptionMobile" : "")),
|
|
4474
|
-
(e[3] ? "AccountClosureSaveMobile" : "")),
|
|
4475
|
-
(e[3] ? "AccountClosureActionButtonsMobile" : "")),
|
|
4436
|
+
t = B("div"), r = B("div"), x && x.c(), n = U(), i = B("h2"), s = R(o), a = U(), u = B("div"), l = B("p"), f = U(), h = B("div"), d = B("button"), p = R(m), C = U(), A && A.c(), E(i, "class", "AccountClosureTitle " + /*isMobile*/
|
|
4437
|
+
(e[3] ? "AccountClosureTitleNone" : "")), E(u, "class", "AccountClosureDescription " + /*isMobile*/
|
|
4438
|
+
(e[3] ? "AccountClosureDescriptionMobile" : "")), E(d, "class", "AccountClosureSave " + /*isMobile*/
|
|
4439
|
+
(e[3] ? "AccountClosureSaveMobile" : "")), E(h, "class", "AccountClosureActionButtons " + /*isMobile*/
|
|
4440
|
+
(e[3] ? "AccountClosureActionButtonsMobile" : "")), E(r, "class", "AccountClosureWrapper " + /*isMobile*/
|
|
4476
4441
|
(e[3] ? "AccountClosureWrapperMobile" : ""));
|
|
4477
4442
|
},
|
|
4478
|
-
m(
|
|
4479
|
-
|
|
4480
|
-
|
|
4443
|
+
m(S, P) {
|
|
4444
|
+
ve(S, t, P), y(t, r), x && x.m(r, null), y(r, n), y(r, i), y(i, s), y(r, a), y(r, u), y(u, l), l.innerHTML = c, y(r, f), y(r, h), y(h, d), y(d, p), y(t, C), A && A.m(t, null), e[16](t), M || (T = be(
|
|
4445
|
+
d,
|
|
4481
4446
|
"click",
|
|
4482
4447
|
/*click_handler_1*/
|
|
4483
4448
|
e[13]
|
|
4484
4449
|
), M = !0);
|
|
4485
4450
|
},
|
|
4486
|
-
p(
|
|
4451
|
+
p(S, [P]) {
|
|
4487
4452
|
/*isMobile*/
|
|
4488
|
-
|
|
4453
|
+
S[3] && x.p(S, P), P & /*$_*/
|
|
4489
4454
|
4 && o !== (o = /*$_*/
|
|
4490
|
-
|
|
4455
|
+
S[2]("titleAccountClosure") + "") && V(s, o), P & /*$_*/
|
|
4491
4456
|
4 && c !== (c = /*$_*/
|
|
4492
|
-
|
|
4457
|
+
S[2]("accountClosureDescription") + "") && (l.innerHTML = c), P & /*$_*/
|
|
4493
4458
|
4 && m !== (m = /*$_*/
|
|
4494
|
-
|
|
4495
|
-
|
|
4459
|
+
S[2]("closeAccount") + "") && V(p, m), /*closureModal*/
|
|
4460
|
+
S[1] ? A ? A.p(S, P) : (A = Bt(S), A.c(), A.m(t, null)) : A && (A.d(1), A = null);
|
|
4496
4461
|
},
|
|
4497
|
-
i:
|
|
4498
|
-
o:
|
|
4499
|
-
d(
|
|
4500
|
-
|
|
4462
|
+
i: N,
|
|
4463
|
+
o: N,
|
|
4464
|
+
d(S) {
|
|
4465
|
+
S && ue(t), x && x.d(), A && A.d(), e[16](null), M = !1, T();
|
|
4501
4466
|
}
|
|
4502
4467
|
};
|
|
4503
4468
|
}
|
|
4504
|
-
function
|
|
4469
|
+
function Xi(e, t, r) {
|
|
4505
4470
|
let n;
|
|
4506
|
-
|
|
4507
|
-
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: a } = t, { translationurl: u = "" } = t, l = window.navigator.userAgent, c =
|
|
4508
|
-
const
|
|
4471
|
+
mr(e, Di, (_) => r(2, n = _));
|
|
4472
|
+
let { lang: i = "en" } = t, { clientstyling: o = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: a } = t, { translationurl: u = "" } = t, l = window.navigator.userAgent, c = Ui(l) !== "PC", f = !1, h;
|
|
4473
|
+
const d = () => {
|
|
4509
4474
|
fetch(u).then((G) => G.json()).then((G) => {
|
|
4510
|
-
Object.keys(G).forEach((
|
|
4511
|
-
|
|
4475
|
+
Object.keys(G).forEach((Ke) => {
|
|
4476
|
+
St(Ke, G[Ke]);
|
|
4512
4477
|
});
|
|
4513
4478
|
}).catch((G) => {
|
|
4514
4479
|
console.log(G);
|
|
4515
4480
|
});
|
|
4516
4481
|
};
|
|
4517
|
-
Object.keys(
|
|
4518
|
-
|
|
4482
|
+
Object.keys(Tt).forEach((_) => {
|
|
4483
|
+
St(_, Tt[_]);
|
|
4519
4484
|
});
|
|
4520
4485
|
const m = (_) => {
|
|
4521
4486
|
r(1, f = _), _ === !0 ? window.postMessage({ type: "DisableScroll" }, window.location.href) : window.postMessage({ type: "EnableScroll" }, window.location.href);
|
|
4522
|
-
},
|
|
4487
|
+
}, p = () => {
|
|
4523
4488
|
m(!1), window.postMessage({ type: "AccountClosure" }, window.location.href);
|
|
4524
|
-
},
|
|
4489
|
+
}, C = () => {
|
|
4525
4490
|
window.postMessage(
|
|
4526
4491
|
{
|
|
4527
4492
|
type: "PlayerAccountMenuActive",
|
|
@@ -4530,13 +4495,13 @@ function Yi(e, t, r) {
|
|
|
4530
4495
|
window.location.href
|
|
4531
4496
|
);
|
|
4532
4497
|
}, M = () => {
|
|
4533
|
-
|
|
4498
|
+
Fi(i);
|
|
4534
4499
|
};
|
|
4535
|
-
|
|
4500
|
+
_r(() => () => {
|
|
4536
4501
|
});
|
|
4537
|
-
const T = () =>
|
|
4502
|
+
const T = () => C(), x = () => m(!0), A = () => m(!1), S = () => p();
|
|
4538
4503
|
function P(_) {
|
|
4539
|
-
|
|
4504
|
+
Ne[_ ? "unshift" : "push"](() => {
|
|
4540
4505
|
h = _, r(0, h);
|
|
4541
4506
|
});
|
|
4542
4507
|
}
|
|
@@ -4545,38 +4510,38 @@ function Yi(e, t, r) {
|
|
|
4545
4510
|
}, e.$$.update = () => {
|
|
4546
4511
|
e.$$.dirty & /*lang*/
|
|
4547
4512
|
128 && i && M(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4548
|
-
257 && o && h &&
|
|
4549
|
-
513 && s && h &&
|
|
4550
|
-
1025 && a && h &&
|
|
4551
|
-
2048 && u &&
|
|
4513
|
+
257 && o && h && Gi(h, o), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4514
|
+
513 && s && h && ji(h, s), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4515
|
+
1025 && a && h && ki(h, `${a}.Style`), e.$$.dirty & /*translationurl*/
|
|
4516
|
+
2048 && u && d();
|
|
4552
4517
|
}, [
|
|
4553
4518
|
h,
|
|
4554
4519
|
f,
|
|
4555
4520
|
n,
|
|
4556
4521
|
c,
|
|
4557
4522
|
m,
|
|
4558
|
-
|
|
4559
|
-
|
|
4523
|
+
p,
|
|
4524
|
+
C,
|
|
4560
4525
|
i,
|
|
4561
4526
|
o,
|
|
4562
4527
|
s,
|
|
4563
4528
|
a,
|
|
4564
4529
|
u,
|
|
4565
4530
|
T,
|
|
4566
|
-
|
|
4567
|
-
C,
|
|
4531
|
+
x,
|
|
4568
4532
|
A,
|
|
4533
|
+
S,
|
|
4569
4534
|
P
|
|
4570
4535
|
];
|
|
4571
4536
|
}
|
|
4572
|
-
class
|
|
4537
|
+
class Zi extends Ir {
|
|
4573
4538
|
constructor(t) {
|
|
4574
|
-
super(),
|
|
4539
|
+
super(), Or(
|
|
4575
4540
|
this,
|
|
4576
4541
|
t,
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4542
|
+
Xi,
|
|
4543
|
+
Vi,
|
|
4544
|
+
Mt,
|
|
4580
4545
|
{
|
|
4581
4546
|
lang: 7,
|
|
4582
4547
|
clientstyling: 8,
|
|
@@ -4584,7 +4549,7 @@ class Ji extends Dr {
|
|
|
4584
4549
|
mbsource: 10,
|
|
4585
4550
|
translationurl: 11
|
|
4586
4551
|
},
|
|
4587
|
-
|
|
4552
|
+
zi
|
|
4588
4553
|
);
|
|
4589
4554
|
}
|
|
4590
4555
|
get lang() {
|
|
@@ -4618,7 +4583,7 @@ class Ji extends Dr {
|
|
|
4618
4583
|
this.$$set({ translationurl: t }), D();
|
|
4619
4584
|
}
|
|
4620
4585
|
}
|
|
4621
|
-
|
|
4586
|
+
Nr(Zi, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
|
|
4622
4587
|
export {
|
|
4623
|
-
|
|
4588
|
+
Zi as default
|
|
4624
4589
|
};
|