@everymatrix/general-player-sms-verification-form 1.55.0 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralPlayerSmsVerificationForm-Ba2loy8y.js → GeneralPlayerSmsVerificationForm-BEOcOn2l.js} +817 -803
- package/components/{GeneralPlayerSmsVerificationForm-Bocty56w.js → GeneralPlayerSmsVerificationForm-CXRbl8PW.js} +802 -788
- package/components/GeneralPlayerSmsVerificationForm-LLMx2Emm.cjs +3 -0
- package/es2015/general-player-sms-verification-form.cjs +1 -1
- package/es2015/general-player-sms-verification-form.js +1 -1
- package/esnext/general-player-sms-verification-form.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerSmsVerificationForm-CFar80th.cjs +0 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Qt = Object.defineProperty, qt = Object.defineProperties;
|
|
2
|
+
var Yt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Ye = Object.getOwnPropertySymbols;
|
|
4
|
+
var Kt = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Pe = (e, t, r) => t in e ? Qt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Kt.call(t, r) && Pe(e, r, t[r]);
|
|
8
|
+
if (Ye)
|
|
9
|
+
for (var r of Ye(t))
|
|
10
|
+
er.call(t, r) && Pe(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var $ = (e, t, r) =>
|
|
14
|
-
var
|
|
12
|
+
}, et = (e, t) => qt(e, Yt(t));
|
|
13
|
+
var $ = (e, t, r) => Pe(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
+
var be = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(l));
|
|
@@ -27,49 +27,49 @@ var ge = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function D() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function _t(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function tt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ie(e) {
|
|
39
|
+
e.forEach(_t);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Je(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function St(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function tr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Tt(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
54
|
-
return
|
|
54
|
+
return D;
|
|
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 rr(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(Tt(t, r));
|
|
61
61
|
}
|
|
62
62
|
function E(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n =
|
|
65
|
+
function nr(e, t, r) {
|
|
66
|
+
const n = ir(e);
|
|
67
67
|
if (!n.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = r,
|
|
68
|
+
const i = O("style");
|
|
69
|
+
i.id = t, i.textContent = r, or(n, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ir(e) {
|
|
73
73
|
if (!e) return document;
|
|
74
74
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
75
|
return t && /** @type {ShadowRoot} */
|
|
@@ -78,7 +78,7 @@ function ar(e) {
|
|
|
78
78
|
t
|
|
79
79
|
) : e.ownerDocument;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function or(e, t) {
|
|
82
82
|
return E(
|
|
83
83
|
/** @type {Document} */
|
|
84
84
|
e.head || e,
|
|
@@ -91,32 +91,32 @@ function Z(e, t, r) {
|
|
|
91
91
|
function j(e) {
|
|
92
92
|
e.parentNode && e.parentNode.removeChild(e);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function O(e) {
|
|
95
95
|
return document.createElement(e);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function M(e) {
|
|
98
98
|
return document.createTextNode(e);
|
|
99
99
|
}
|
|
100
100
|
function z() {
|
|
101
|
-
return
|
|
101
|
+
return M(" ");
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function ge(e, t, r, n) {
|
|
104
104
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
105
105
|
}
|
|
106
106
|
function A(e, t, r) {
|
|
107
107
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function sr(e) {
|
|
110
110
|
return Array.from(e.childNodes);
|
|
111
111
|
}
|
|
112
112
|
function G(e, t) {
|
|
113
113
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
114
114
|
t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function rt(e, t) {
|
|
117
117
|
e.value = t == null ? "" : t;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function ar(e) {
|
|
120
120
|
const t = {};
|
|
121
121
|
return e.childNodes.forEach(
|
|
122
122
|
/** @param {Element} node */
|
|
@@ -125,93 +125,93 @@ function hr(e) {
|
|
|
125
125
|
}
|
|
126
126
|
), t;
|
|
127
127
|
}
|
|
128
|
-
let
|
|
129
|
-
function
|
|
130
|
-
|
|
128
|
+
let de;
|
|
129
|
+
function fe(e) {
|
|
130
|
+
de = e;
|
|
131
131
|
}
|
|
132
|
+
function ur() {
|
|
133
|
+
if (!de) throw new Error("Function called outside component initialization");
|
|
134
|
+
return de;
|
|
135
|
+
}
|
|
136
|
+
function lr(e) {
|
|
137
|
+
ur().$$.on_mount.push(e);
|
|
138
|
+
}
|
|
139
|
+
const Y = [], $e = [];
|
|
140
|
+
let K = [];
|
|
141
|
+
const nt = [], hr = /* @__PURE__ */ Promise.resolve();
|
|
142
|
+
let Ue = !1;
|
|
132
143
|
function cr() {
|
|
133
|
-
|
|
134
|
-
return fe;
|
|
144
|
+
Ue || (Ue = !0, hr.then(U));
|
|
135
145
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
const
|
|
140
|
-
let
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
function mr() {
|
|
144
|
-
De || (De = !0, dr.then(F));
|
|
145
|
-
}
|
|
146
|
-
function Fe(e) {
|
|
147
|
-
te.push(e);
|
|
148
|
-
}
|
|
149
|
-
const Ie = /* @__PURE__ */ new Set();
|
|
150
|
-
let Y = 0;
|
|
151
|
-
function F() {
|
|
152
|
-
if (Y !== 0)
|
|
146
|
+
function De(e) {
|
|
147
|
+
K.push(e);
|
|
148
|
+
}
|
|
149
|
+
const Ce = /* @__PURE__ */ new Set();
|
|
150
|
+
let Q = 0;
|
|
151
|
+
function U() {
|
|
152
|
+
if (Q !== 0)
|
|
153
153
|
return;
|
|
154
|
-
const e =
|
|
154
|
+
const e = de;
|
|
155
155
|
do {
|
|
156
156
|
try {
|
|
157
|
-
for (;
|
|
158
|
-
const t =
|
|
159
|
-
|
|
157
|
+
for (; Q < Y.length; ) {
|
|
158
|
+
const t = Y[Q];
|
|
159
|
+
Q++, fe(t), fr(t.$$);
|
|
160
160
|
}
|
|
161
161
|
} catch (t) {
|
|
162
|
-
throw
|
|
162
|
+
throw Y.length = 0, Q = 0, t;
|
|
163
163
|
}
|
|
164
|
-
for (
|
|
165
|
-
for (let t = 0; t <
|
|
166
|
-
const r =
|
|
167
|
-
|
|
164
|
+
for (fe(null), Y.length = 0, Q = 0; $e.length; ) $e.pop()();
|
|
165
|
+
for (let t = 0; t < K.length; t += 1) {
|
|
166
|
+
const r = K[t];
|
|
167
|
+
Ce.has(r) || (Ce.add(r), r());
|
|
168
168
|
}
|
|
169
|
-
|
|
170
|
-
} while (
|
|
171
|
-
for (;
|
|
172
|
-
|
|
173
|
-
|
|
169
|
+
K.length = 0;
|
|
170
|
+
} while (Y.length);
|
|
171
|
+
for (; nt.length; )
|
|
172
|
+
nt.pop()();
|
|
173
|
+
Ue = !1, Ce.clear(), fe(e);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function fr(e) {
|
|
176
176
|
if (e.fragment !== null) {
|
|
177
|
-
e.update(),
|
|
177
|
+
e.update(), ie(e.before_update);
|
|
178
178
|
const t = e.dirty;
|
|
179
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
179
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(De);
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function dr(e) {
|
|
183
183
|
const t = [], r = [];
|
|
184
|
-
|
|
184
|
+
K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
|
|
185
185
|
}
|
|
186
|
-
const
|
|
187
|
-
function
|
|
188
|
-
e && e.i && (
|
|
186
|
+
const mr = /* @__PURE__ */ new Set();
|
|
187
|
+
function pr(e, t) {
|
|
188
|
+
e && e.i && (mr.delete(e), e.i(t));
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function br(e, t, r) {
|
|
191
191
|
const { fragment: n, after_update: i } = e.$$;
|
|
192
|
-
n && n.m(t, r),
|
|
193
|
-
const o = e.$$.on_mount.map(
|
|
194
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
195
|
-
}), i.forEach(
|
|
192
|
+
n && n.m(t, r), De(() => {
|
|
193
|
+
const o = e.$$.on_mount.map(_t).filter(Je);
|
|
194
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ie(o), e.$$.on_mount = [];
|
|
195
|
+
}), i.forEach(De);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function gr(e, t) {
|
|
198
198
|
const r = e.$$;
|
|
199
|
-
r.fragment !== null && (
|
|
199
|
+
r.fragment !== null && (dr(r.after_update), ie(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
e.$$.dirty[0] === -1 && (
|
|
201
|
+
function vr(e, t) {
|
|
202
|
+
e.$$.dirty[0] === -1 && (Y.push(e), cr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
const l =
|
|
206
|
-
|
|
204
|
+
function yr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
205
|
+
const l = de;
|
|
206
|
+
fe(e);
|
|
207
207
|
const u = e.$$ = {
|
|
208
208
|
fragment: null,
|
|
209
209
|
ctx: [],
|
|
210
210
|
// state
|
|
211
211
|
props: o,
|
|
212
|
-
update:
|
|
212
|
+
update: D,
|
|
213
213
|
not_equal: i,
|
|
214
|
-
bound:
|
|
214
|
+
bound: tt(),
|
|
215
215
|
// lifecycle
|
|
216
216
|
on_mount: [],
|
|
217
217
|
on_destroy: [],
|
|
@@ -220,28 +220,28 @@ function _r(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
220
220
|
after_update: [],
|
|
221
221
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
222
222
|
// everything else
|
|
223
|
-
callbacks:
|
|
223
|
+
callbacks: tt(),
|
|
224
224
|
dirty: a,
|
|
225
225
|
skip_bound: !1,
|
|
226
226
|
root: t.target || l.$$.root
|
|
227
227
|
};
|
|
228
228
|
s && s(u.root);
|
|
229
229
|
let h = !1;
|
|
230
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
231
|
-
const
|
|
232
|
-
return u.ctx && i(u.ctx[
|
|
233
|
-
}) : [], u.update(), h = !0,
|
|
230
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, d, ...g) => {
|
|
231
|
+
const y = g.length ? g[0] : d;
|
|
232
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = y) && (!u.skip_bound && u.bound[c] && u.bound[c](y), h && vr(e, c)), d;
|
|
233
|
+
}) : [], u.update(), h = !0, ie(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
234
234
|
if (t.hydrate) {
|
|
235
|
-
const
|
|
236
|
-
u.fragment && u.fragment.l(
|
|
235
|
+
const c = sr(t.target);
|
|
236
|
+
u.fragment && u.fragment.l(c), c.forEach(j);
|
|
237
237
|
} else
|
|
238
238
|
u.fragment && u.fragment.c();
|
|
239
|
-
t.intro &&
|
|
239
|
+
t.intro && pr(e.$$.fragment), br(e, t.target, t.anchor), U();
|
|
240
240
|
}
|
|
241
|
-
|
|
241
|
+
fe(l);
|
|
242
242
|
}
|
|
243
|
-
let
|
|
244
|
-
typeof HTMLElement == "function" && (
|
|
243
|
+
let Ht;
|
|
244
|
+
typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
245
245
|
constructor(t, r, n) {
|
|
246
246
|
super();
|
|
247
247
|
/** The Svelte component constructor */
|
|
@@ -278,14 +278,14 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
280
|
connectedCallback() {
|
|
281
|
-
return
|
|
281
|
+
return be(this, null, function* () {
|
|
282
282
|
if (this.$$cn = !0, !this.$$c) {
|
|
283
283
|
let t = function(o) {
|
|
284
284
|
return () => {
|
|
285
285
|
let s;
|
|
286
286
|
return {
|
|
287
287
|
c: function() {
|
|
288
|
-
s =
|
|
288
|
+
s = O("slot"), o !== "default" && A(s, "name", o);
|
|
289
289
|
},
|
|
290
290
|
/**
|
|
291
291
|
* @param {HTMLElement} target
|
|
@@ -302,18 +302,18 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
302
302
|
};
|
|
303
303
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
304
304
|
return;
|
|
305
|
-
const r = {}, n =
|
|
305
|
+
const r = {}, n = ar(this);
|
|
306
306
|
for (const o of this.$$s)
|
|
307
307
|
o in n && (r[o] = [t(o)]);
|
|
308
308
|
for (const o of this.attributes) {
|
|
309
309
|
const s = this.$$g_p(o.name);
|
|
310
|
-
s in this.$$d || (this.$$d[s] =
|
|
310
|
+
s in this.$$d || (this.$$d[s] = ye(s, o.value, this.$$p_d, "toProp"));
|
|
311
311
|
}
|
|
312
312
|
for (const o in this.$$p_d)
|
|
313
313
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
314
314
|
this.$$c = new this.$$ctor({
|
|
315
315
|
target: this.shadowRoot || this,
|
|
316
|
-
props:
|
|
316
|
+
props: et(Ke({}, this.$$d), {
|
|
317
317
|
$$slots: r,
|
|
318
318
|
$$scope: {
|
|
319
319
|
ctx: []
|
|
@@ -324,7 +324,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
324
324
|
this.$$r = !0;
|
|
325
325
|
for (const o in this.$$p_d)
|
|
326
326
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
327
|
-
const s =
|
|
327
|
+
const s = ye(
|
|
328
328
|
o,
|
|
329
329
|
this.$$d[o],
|
|
330
330
|
this.$$p_d,
|
|
@@ -348,7 +348,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
348
348
|
// and setting attributes through setAttribute etc, this is helpful
|
|
349
349
|
attributeChangedCallback(t, r, n) {
|
|
350
350
|
var i;
|
|
351
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
351
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ye(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
352
352
|
}
|
|
353
353
|
disconnectedCallback() {
|
|
354
354
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -361,7 +361,7 @@ typeof HTMLElement == "function" && (wt = class extends HTMLElement {
|
|
|
361
361
|
) || t;
|
|
362
362
|
}
|
|
363
363
|
});
|
|
364
|
-
function
|
|
364
|
+
function ye(e, t, r, n) {
|
|
365
365
|
var o;
|
|
366
366
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
367
367
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -391,8 +391,8 @@ function Ee(e, t, r, n) {
|
|
|
391
391
|
return t;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
let s = class extends
|
|
394
|
+
function Er(e, t, r, n, i, o) {
|
|
395
|
+
let s = class extends Ht {
|
|
396
396
|
constructor() {
|
|
397
397
|
super(e, r, i), this.$$p_d = t;
|
|
398
398
|
}
|
|
@@ -409,7 +409,7 @@ function Sr(e, t, r, n, i, o) {
|
|
|
409
409
|
},
|
|
410
410
|
set(l) {
|
|
411
411
|
var u;
|
|
412
|
-
l =
|
|
412
|
+
l = ye(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
415
|
}), n.forEach((a) => {
|
|
@@ -422,7 +422,7 @@ function Sr(e, t, r, n, i, o) {
|
|
|
422
422
|
}), e.element = /** @type {any} */
|
|
423
423
|
s, s;
|
|
424
424
|
}
|
|
425
|
-
class
|
|
425
|
+
class xr {
|
|
426
426
|
constructor() {
|
|
427
427
|
/**
|
|
428
428
|
* ### PRIVATE API
|
|
@@ -443,7 +443,7 @@ class Tr {
|
|
|
443
443
|
}
|
|
444
444
|
/** @returns {void} */
|
|
445
445
|
$destroy() {
|
|
446
|
-
|
|
446
|
+
gr(this, 1), this.$destroy = D;
|
|
447
447
|
}
|
|
448
448
|
/**
|
|
449
449
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -452,8 +452,8 @@ class Tr {
|
|
|
452
452
|
* @returns {() => void}
|
|
453
453
|
*/
|
|
454
454
|
$on(t, r) {
|
|
455
|
-
if (!
|
|
456
|
-
return
|
|
455
|
+
if (!Je(r))
|
|
456
|
+
return D;
|
|
457
457
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
458
458
|
return n.push(r), () => {
|
|
459
459
|
const i = n.indexOf(r);
|
|
@@ -465,63 +465,63 @@ class Tr {
|
|
|
465
465
|
* @returns {void}
|
|
466
466
|
*/
|
|
467
467
|
$set(t) {
|
|
468
|
-
this.$$set && !
|
|
468
|
+
this.$$set && !tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
const
|
|
472
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
473
|
-
const
|
|
474
|
-
function
|
|
471
|
+
const _r = "4";
|
|
472
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_r);
|
|
473
|
+
const q = [];
|
|
474
|
+
function Sr(e, t) {
|
|
475
475
|
return {
|
|
476
|
-
subscribe:
|
|
476
|
+
subscribe: Te(e, t).subscribe
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function Te(e, t = D) {
|
|
480
480
|
let r;
|
|
481
481
|
const n = /* @__PURE__ */ new Set();
|
|
482
482
|
function i(a) {
|
|
483
|
-
if (
|
|
484
|
-
const l = !
|
|
483
|
+
if (St(e, a) && (e = a, r)) {
|
|
484
|
+
const l = !q.length;
|
|
485
485
|
for (const u of n)
|
|
486
|
-
u[1](),
|
|
486
|
+
u[1](), q.push(u, e);
|
|
487
487
|
if (l) {
|
|
488
|
-
for (let u = 0; u <
|
|
489
|
-
|
|
490
|
-
|
|
488
|
+
for (let u = 0; u < q.length; u += 2)
|
|
489
|
+
q[u][0](q[u + 1]);
|
|
490
|
+
q.length = 0;
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
function o(a) {
|
|
495
495
|
i(a(e));
|
|
496
496
|
}
|
|
497
|
-
function s(a, l =
|
|
497
|
+
function s(a, l = D) {
|
|
498
498
|
const u = [a, l];
|
|
499
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
499
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || D), a(e), () => {
|
|
500
500
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
501
501
|
};
|
|
502
502
|
}
|
|
503
503
|
return { set: i, update: o, subscribe: s };
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function oe(e, t, r) {
|
|
506
506
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
507
507
|
if (!i.every(Boolean))
|
|
508
508
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
509
509
|
const o = t.length < 2;
|
|
510
|
-
return
|
|
510
|
+
return Sr(r, (s, a) => {
|
|
511
511
|
let l = !1;
|
|
512
512
|
const u = [];
|
|
513
|
-
let h = 0,
|
|
513
|
+
let h = 0, c = D;
|
|
514
514
|
const d = () => {
|
|
515
515
|
if (h)
|
|
516
516
|
return;
|
|
517
|
-
|
|
518
|
-
const
|
|
519
|
-
o ? s(
|
|
520
|
-
},
|
|
521
|
-
(
|
|
522
|
-
|
|
523
|
-
(
|
|
524
|
-
u[_] =
|
|
517
|
+
c();
|
|
518
|
+
const y = t(n ? u[0] : u, s, a);
|
|
519
|
+
o ? s(y) : c = Je(y) ? y : D;
|
|
520
|
+
}, g = i.map(
|
|
521
|
+
(y, _) => Tt(
|
|
522
|
+
y,
|
|
523
|
+
(T) => {
|
|
524
|
+
u[_] = T, h &= ~(1 << _), l && d();
|
|
525
525
|
},
|
|
526
526
|
() => {
|
|
527
527
|
h |= 1 << _;
|
|
@@ -529,110 +529,110 @@ function ae(e, t, r) {
|
|
|
529
529
|
)
|
|
530
530
|
);
|
|
531
531
|
return l = !0, d(), function() {
|
|
532
|
-
|
|
532
|
+
ie(g), c(), l = !1;
|
|
533
533
|
};
|
|
534
534
|
});
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function Tr(e) {
|
|
537
537
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
538
538
|
}
|
|
539
|
-
var
|
|
540
|
-
return
|
|
539
|
+
var Hr = function(t) {
|
|
540
|
+
return Ar(t) && !Br(t);
|
|
541
541
|
};
|
|
542
|
-
function
|
|
542
|
+
function Ar(e) {
|
|
543
543
|
return !!e && typeof e == "object";
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function Br(e) {
|
|
546
546
|
var t = Object.prototype.toString.call(e);
|
|
547
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
547
|
+
return t === "[object RegExp]" || t === "[object Date]" || Cr(e);
|
|
548
548
|
}
|
|
549
|
-
var
|
|
550
|
-
function
|
|
551
|
-
return e.$$typeof ===
|
|
549
|
+
var wr = typeof Symbol == "function" && Symbol.for, Pr = wr ? Symbol.for("react.element") : 60103;
|
|
550
|
+
function Cr(e) {
|
|
551
|
+
return e.$$typeof === Pr;
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function Ir(e) {
|
|
554
554
|
return Array.isArray(e) ? [] : {};
|
|
555
555
|
}
|
|
556
|
-
function
|
|
557
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
556
|
+
function me(e, t) {
|
|
557
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ee(Ir(e), e, t) : e;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function Nr(e, t, r) {
|
|
560
560
|
return e.concat(t).map(function(n) {
|
|
561
|
-
return
|
|
561
|
+
return me(n, r);
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Or(e, t) {
|
|
565
565
|
if (!t.customMerge)
|
|
566
|
-
return
|
|
566
|
+
return ee;
|
|
567
567
|
var r = t.customMerge(e);
|
|
568
|
-
return typeof r == "function" ? r :
|
|
568
|
+
return typeof r == "function" ? r : ee;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function Mr(e) {
|
|
571
571
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
572
572
|
return Object.propertyIsEnumerable.call(e, t);
|
|
573
573
|
}) : [];
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
return Object.keys(e).concat(
|
|
575
|
+
function it(e) {
|
|
576
|
+
return Object.keys(e).concat(Mr(e));
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function At(e, t) {
|
|
579
579
|
try {
|
|
580
580
|
return t in e;
|
|
581
581
|
} catch (r) {
|
|
582
582
|
return !1;
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
|
-
function
|
|
586
|
-
return
|
|
585
|
+
function Lr(e, t) {
|
|
586
|
+
return At(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
587
587
|
}
|
|
588
|
-
function
|
|
588
|
+
function Rr(e, t, r) {
|
|
589
589
|
var n = {};
|
|
590
|
-
return r.isMergeableObject(e) &&
|
|
591
|
-
n[i] =
|
|
592
|
-
}),
|
|
593
|
-
|
|
590
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
591
|
+
n[i] = me(e[i], r);
|
|
592
|
+
}), it(t).forEach(function(i) {
|
|
593
|
+
Lr(e, i) || (At(e, i) && r.isMergeableObject(t[i]) ? n[i] = Or(i, r)(e[i], t[i], r) : n[i] = me(t[i], r));
|
|
594
594
|
}), n;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
596
|
+
function ee(e, t, r) {
|
|
597
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Nr, r.isMergeableObject = r.isMergeableObject || Hr, r.cloneUnlessOtherwiseSpecified = me;
|
|
598
598
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
599
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
599
|
+
return o ? n ? r.arrayMerge(e, t, r) : Rr(e, t, r) : me(t, r);
|
|
600
600
|
}
|
|
601
|
-
|
|
601
|
+
ee.all = function(t, r) {
|
|
602
602
|
if (!Array.isArray(t))
|
|
603
603
|
throw new Error("first argument should be an array");
|
|
604
604
|
return t.reduce(function(n, i) {
|
|
605
|
-
return
|
|
605
|
+
return ee(n, i, r);
|
|
606
606
|
}, {});
|
|
607
607
|
};
|
|
608
|
-
var
|
|
609
|
-
const
|
|
610
|
-
var
|
|
611
|
-
return
|
|
608
|
+
var $r = ee, Ur = $r;
|
|
609
|
+
const Dr = /* @__PURE__ */ Tr(Ur);
|
|
610
|
+
var Fe = function(e, t) {
|
|
611
|
+
return Fe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
612
612
|
r.__proto__ = n;
|
|
613
613
|
} || function(r, n) {
|
|
614
614
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
615
|
-
},
|
|
615
|
+
}, Fe(e, t);
|
|
616
616
|
};
|
|
617
|
-
function
|
|
617
|
+
function He(e, t) {
|
|
618
618
|
if (typeof t != "function" && t !== null)
|
|
619
619
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
620
|
-
|
|
620
|
+
Fe(e, t);
|
|
621
621
|
function r() {
|
|
622
622
|
this.constructor = e;
|
|
623
623
|
}
|
|
624
624
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
625
625
|
}
|
|
626
|
-
var
|
|
627
|
-
return
|
|
626
|
+
var v = function() {
|
|
627
|
+
return v = Object.assign || function(t) {
|
|
628
628
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
629
629
|
r = arguments[n];
|
|
630
630
|
for (var o in r) Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
631
631
|
}
|
|
632
632
|
return t;
|
|
633
|
-
},
|
|
633
|
+
}, v.apply(this, arguments);
|
|
634
634
|
};
|
|
635
|
-
function
|
|
635
|
+
function Fr(e, t) {
|
|
636
636
|
var r = {};
|
|
637
637
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
638
638
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -640,61 +640,59 @@ function jr(e, t) {
|
|
|
640
640
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
641
641
|
return r;
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function Ie(e, t, r) {
|
|
644
644
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
|
|
645
645
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
646
646
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
var r = t && t.cache ? t.cache :
|
|
648
|
+
function Ne(e, t) {
|
|
649
|
+
var r = t && t.cache ? t.cache : Wr, n = t && t.serializer ? t.serializer : Xr, i = t && t.strategy ? t.strategy : jr;
|
|
650
650
|
return i(e, {
|
|
651
651
|
cache: r,
|
|
652
652
|
serializer: n
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function Gr(e) {
|
|
656
656
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
657
657
|
}
|
|
658
|
-
function
|
|
659
|
-
var i =
|
|
658
|
+
function kr(e, t, r, n) {
|
|
659
|
+
var i = Gr(n) ? n : r(n), o = t.get(i);
|
|
660
660
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Bt(e, t, r) {
|
|
663
663
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
664
664
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function wt(e, t, r, n, i) {
|
|
667
667
|
return r.bind(t, e, n, i);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
670
|
-
var r = e.length === 1 ?
|
|
671
|
-
return
|
|
672
|
-
}
|
|
673
|
-
function zr(e, t) {
|
|
674
|
-
return qe(e, this, It, t.cache.create(), t.serializer);
|
|
669
|
+
function jr(e, t) {
|
|
670
|
+
var r = e.length === 1 ? kr : Bt;
|
|
671
|
+
return wt(e, this, r, t.cache.create(), t.serializer);
|
|
675
672
|
}
|
|
676
|
-
function
|
|
677
|
-
return
|
|
673
|
+
function Vr(e, t) {
|
|
674
|
+
return wt(e, this, Bt, t.cache.create(), t.serializer);
|
|
678
675
|
}
|
|
679
|
-
var
|
|
676
|
+
var Xr = function() {
|
|
680
677
|
return JSON.stringify(arguments);
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
678
|
+
}, zr = (
|
|
679
|
+
/** @class */
|
|
680
|
+
function() {
|
|
681
|
+
function e() {
|
|
682
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
683
|
+
}
|
|
684
|
+
return e.prototype.get = function(t) {
|
|
685
|
+
return this.cache[t];
|
|
686
|
+
}, e.prototype.set = function(t, r) {
|
|
687
|
+
this.cache[t] = r;
|
|
688
|
+
}, e;
|
|
689
|
+
}()
|
|
690
|
+
), Wr = {
|
|
692
691
|
create: function() {
|
|
693
|
-
return new
|
|
692
|
+
return new zr();
|
|
694
693
|
}
|
|
695
|
-
},
|
|
696
|
-
variadic:
|
|
697
|
-
monadic: Wr
|
|
694
|
+
}, Oe = {
|
|
695
|
+
variadic: Vr
|
|
698
696
|
}, m;
|
|
699
697
|
(function(e) {
|
|
700
698
|
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";
|
|
@@ -703,47 +701,47 @@ var x;
|
|
|
703
701
|
(function(e) {
|
|
704
702
|
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";
|
|
705
703
|
})(x || (x = {}));
|
|
706
|
-
var
|
|
704
|
+
var te;
|
|
707
705
|
(function(e) {
|
|
708
706
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
709
|
-
})(
|
|
710
|
-
function
|
|
707
|
+
})(te || (te = {}));
|
|
708
|
+
function ot(e) {
|
|
711
709
|
return e.type === x.literal;
|
|
712
710
|
}
|
|
713
|
-
function
|
|
711
|
+
function Zr(e) {
|
|
714
712
|
return e.type === x.argument;
|
|
715
713
|
}
|
|
716
|
-
function
|
|
714
|
+
function Pt(e) {
|
|
717
715
|
return e.type === x.number;
|
|
718
716
|
}
|
|
719
|
-
function
|
|
717
|
+
function Ct(e) {
|
|
720
718
|
return e.type === x.date;
|
|
721
719
|
}
|
|
722
|
-
function
|
|
720
|
+
function It(e) {
|
|
723
721
|
return e.type === x.time;
|
|
724
722
|
}
|
|
725
|
-
function
|
|
723
|
+
function Nt(e) {
|
|
726
724
|
return e.type === x.select;
|
|
727
725
|
}
|
|
728
|
-
function
|
|
726
|
+
function Ot(e) {
|
|
729
727
|
return e.type === x.plural;
|
|
730
728
|
}
|
|
731
|
-
function
|
|
729
|
+
function Jr(e) {
|
|
732
730
|
return e.type === x.pound;
|
|
733
731
|
}
|
|
734
|
-
function
|
|
732
|
+
function Mt(e) {
|
|
735
733
|
return e.type === x.tag;
|
|
736
734
|
}
|
|
737
|
-
function
|
|
738
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
735
|
+
function Lt(e) {
|
|
736
|
+
return !!(e && typeof e == "object" && e.type === te.number);
|
|
739
737
|
}
|
|
740
|
-
function
|
|
741
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
738
|
+
function Ge(e) {
|
|
739
|
+
return !!(e && typeof e == "object" && e.type === te.dateTime);
|
|
742
740
|
}
|
|
743
|
-
var
|
|
744
|
-
function
|
|
741
|
+
var Rt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Qr = /(?:[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;
|
|
742
|
+
function qr(e) {
|
|
745
743
|
var t = {};
|
|
746
|
-
return e.replace(
|
|
744
|
+
return e.replace(Qr, function(r) {
|
|
747
745
|
var n = r.length;
|
|
748
746
|
switch (r[0]) {
|
|
749
747
|
case "G":
|
|
@@ -832,36 +830,36 @@ function Kr(e) {
|
|
|
832
830
|
return "";
|
|
833
831
|
}), t;
|
|
834
832
|
}
|
|
835
|
-
var
|
|
836
|
-
function
|
|
833
|
+
var Yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
834
|
+
function Kr(e) {
|
|
837
835
|
if (e.length === 0)
|
|
838
836
|
throw new Error("Number skeleton cannot be empty");
|
|
839
|
-
for (var t = e.split(
|
|
837
|
+
for (var t = e.split(Yr).filter(function(d) {
|
|
840
838
|
return d.length > 0;
|
|
841
839
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
842
840
|
var o = i[n], s = o.split("/");
|
|
843
841
|
if (s.length === 0)
|
|
844
842
|
throw new Error("Invalid number skeleton");
|
|
845
843
|
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
846
|
-
var
|
|
847
|
-
if (
|
|
844
|
+
var c = h[u];
|
|
845
|
+
if (c.length === 0)
|
|
848
846
|
throw new Error("Invalid number skeleton");
|
|
849
847
|
}
|
|
850
848
|
r.push({ stem: a, options: l });
|
|
851
849
|
}
|
|
852
850
|
return r;
|
|
853
851
|
}
|
|
854
|
-
function
|
|
852
|
+
function en(e) {
|
|
855
853
|
return e.replace(/^(.*?)-/, "");
|
|
856
854
|
}
|
|
857
|
-
var
|
|
858
|
-
function
|
|
855
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
|
|
856
|
+
function at(e) {
|
|
859
857
|
var t = {};
|
|
860
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
858
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
|
|
861
859
|
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)), "";
|
|
862
860
|
}), t;
|
|
863
861
|
}
|
|
864
|
-
function
|
|
862
|
+
function Dt(e) {
|
|
865
863
|
switch (e) {
|
|
866
864
|
case "sign-auto":
|
|
867
865
|
return {
|
|
@@ -901,7 +899,7 @@ function kt(e) {
|
|
|
901
899
|
};
|
|
902
900
|
}
|
|
903
901
|
}
|
|
904
|
-
function
|
|
902
|
+
function rn(e) {
|
|
905
903
|
var t;
|
|
906
904
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
907
905
|
notation: "engineering"
|
|
@@ -909,17 +907,17 @@ function on(e) {
|
|
|
909
907
|
notation: "scientific"
|
|
910
908
|
}, e = e.slice(1)), t) {
|
|
911
909
|
var r = e.slice(0, 2);
|
|
912
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
910
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Ut.test(e))
|
|
913
911
|
throw new Error("Malformed concise eng/scientific notation");
|
|
914
912
|
t.minimumIntegerDigits = e.length;
|
|
915
913
|
}
|
|
916
914
|
return t;
|
|
917
915
|
}
|
|
918
|
-
function
|
|
919
|
-
var t = {}, r =
|
|
916
|
+
function ut(e) {
|
|
917
|
+
var t = {}, r = Dt(e);
|
|
920
918
|
return r || t;
|
|
921
919
|
}
|
|
922
|
-
function
|
|
920
|
+
function nn(e) {
|
|
923
921
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
924
922
|
var i = n[r];
|
|
925
923
|
switch (i.stem) {
|
|
@@ -943,7 +941,7 @@ function sn(e) {
|
|
|
943
941
|
continue;
|
|
944
942
|
case "measure-unit":
|
|
945
943
|
case "unit":
|
|
946
|
-
t.style = "unit", t.unit =
|
|
944
|
+
t.style = "unit", t.unit = en(i.options[0]);
|
|
947
945
|
continue;
|
|
948
946
|
case "compact-short":
|
|
949
947
|
case "K":
|
|
@@ -954,13 +952,13 @@ function sn(e) {
|
|
|
954
952
|
t.notation = "compact", t.compactDisplay = "long";
|
|
955
953
|
continue;
|
|
956
954
|
case "scientific":
|
|
957
|
-
t =
|
|
958
|
-
return
|
|
955
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
956
|
+
return v(v({}, l), ut(u));
|
|
959
957
|
}, {}));
|
|
960
958
|
continue;
|
|
961
959
|
case "engineering":
|
|
962
|
-
t =
|
|
963
|
-
return
|
|
960
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
961
|
+
return v(v({}, l), ut(u));
|
|
964
962
|
}, {}));
|
|
965
963
|
continue;
|
|
966
964
|
case "notation-simple":
|
|
@@ -1005,45 +1003,45 @@ function sn(e) {
|
|
|
1005
1003
|
case "integer-width":
|
|
1006
1004
|
if (i.options.length > 1)
|
|
1007
1005
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1008
|
-
i.options[0].replace(
|
|
1006
|
+
i.options[0].replace(tn, function(l, u, h, c, d, g) {
|
|
1009
1007
|
if (u)
|
|
1010
1008
|
t.minimumIntegerDigits = h.length;
|
|
1011
1009
|
else {
|
|
1012
|
-
if (
|
|
1010
|
+
if (c && d)
|
|
1013
1011
|
throw new Error("We currently do not support maximum integer digits");
|
|
1014
|
-
if (
|
|
1012
|
+
if (g)
|
|
1015
1013
|
throw new Error("We currently do not support exact integer digits");
|
|
1016
1014
|
}
|
|
1017
1015
|
return "";
|
|
1018
1016
|
});
|
|
1019
1017
|
continue;
|
|
1020
1018
|
}
|
|
1021
|
-
if (
|
|
1019
|
+
if (Ut.test(i.stem)) {
|
|
1022
1020
|
t.minimumIntegerDigits = i.stem.length;
|
|
1023
1021
|
continue;
|
|
1024
1022
|
}
|
|
1025
|
-
if (
|
|
1023
|
+
if (st.test(i.stem)) {
|
|
1026
1024
|
if (i.options.length > 1)
|
|
1027
1025
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1028
|
-
i.stem.replace(
|
|
1029
|
-
return h === "*" ? t.minimumFractionDigits = u.length :
|
|
1026
|
+
i.stem.replace(st, function(l, u, h, c, d, g) {
|
|
1027
|
+
return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : d && g ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1030
1028
|
});
|
|
1031
1029
|
var o = i.options[0];
|
|
1032
|
-
o === "w" ? t =
|
|
1030
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), at(o)));
|
|
1033
1031
|
continue;
|
|
1034
1032
|
}
|
|
1035
|
-
if (
|
|
1036
|
-
t =
|
|
1033
|
+
if ($t.test(i.stem)) {
|
|
1034
|
+
t = v(v({}, t), at(i.stem));
|
|
1037
1035
|
continue;
|
|
1038
1036
|
}
|
|
1039
|
-
var s =
|
|
1040
|
-
s && (t =
|
|
1041
|
-
var a =
|
|
1042
|
-
a && (t =
|
|
1037
|
+
var s = Dt(i.stem);
|
|
1038
|
+
s && (t = v(v({}, t), s));
|
|
1039
|
+
var a = rn(i.stem);
|
|
1040
|
+
a && (t = v(v({}, t), a));
|
|
1043
1041
|
}
|
|
1044
1042
|
return t;
|
|
1045
1043
|
}
|
|
1046
|
-
var
|
|
1044
|
+
var ve = {
|
|
1047
1045
|
"001": [
|
|
1048
1046
|
"H",
|
|
1049
1047
|
"h"
|
|
@@ -2458,13 +2456,13 @@ var ye = {
|
|
|
2458
2456
|
"h"
|
|
2459
2457
|
]
|
|
2460
2458
|
};
|
|
2461
|
-
function
|
|
2459
|
+
function on(e, t) {
|
|
2462
2460
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2463
2461
|
var i = e.charAt(n);
|
|
2464
2462
|
if (i === "j") {
|
|
2465
2463
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2466
2464
|
o++, n++;
|
|
2467
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2465
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = sn(t);
|
|
2468
2466
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2469
2467
|
r += l;
|
|
2470
2468
|
for (; s-- > 0; )
|
|
@@ -2473,7 +2471,7 @@ function an(e, t) {
|
|
|
2473
2471
|
}
|
|
2474
2472
|
return r;
|
|
2475
2473
|
}
|
|
2476
|
-
function
|
|
2474
|
+
function sn(e) {
|
|
2477
2475
|
var t = e.hourCycle;
|
|
2478
2476
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2479
2477
|
e.hourCycles && // @ts-ignore
|
|
@@ -2492,23 +2490,23 @@ function un(e) {
|
|
|
2492
2490
|
}
|
|
2493
2491
|
var r = e.language, n;
|
|
2494
2492
|
r !== "root" && (n = e.maximize().region);
|
|
2495
|
-
var i =
|
|
2493
|
+
var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
|
|
2496
2494
|
return i[0];
|
|
2497
2495
|
}
|
|
2498
|
-
var
|
|
2499
|
-
function
|
|
2496
|
+
var Me, an = new RegExp("^".concat(Rt.source, "*")), un = new RegExp("".concat(Rt.source, "*$"));
|
|
2497
|
+
function b(e, t) {
|
|
2500
2498
|
return { start: e, end: t };
|
|
2501
2499
|
}
|
|
2502
|
-
var
|
|
2500
|
+
var ln = !!String.prototype.startsWith && "_a".startsWith("a", 1), hn = !!String.fromCodePoint, cn = !!Object.fromEntries, fn = !!String.prototype.codePointAt, dn = !!String.prototype.trimStart, mn = !!String.prototype.trimEnd, pn = !!Number.isSafeInteger, bn = pn ? Number.isSafeInteger : function(e) {
|
|
2503
2501
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2504
|
-
},
|
|
2502
|
+
}, ke = !0;
|
|
2505
2503
|
try {
|
|
2506
|
-
var
|
|
2507
|
-
|
|
2504
|
+
var gn = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2505
|
+
ke = ((Me = gn.exec("a")) === null || Me === void 0 ? void 0 : Me[0]) === "a";
|
|
2508
2506
|
} catch (e) {
|
|
2509
|
-
|
|
2507
|
+
ke = !1;
|
|
2510
2508
|
}
|
|
2511
|
-
var
|
|
2509
|
+
var lt = ln ? (
|
|
2512
2510
|
// Native
|
|
2513
2511
|
function(t, r, n) {
|
|
2514
2512
|
return t.startsWith(r, n);
|
|
@@ -2518,7 +2516,7 @@ var ft = cn ? (
|
|
|
2518
2516
|
function(t, r, n) {
|
|
2519
2517
|
return t.slice(n, n + r.length) === r;
|
|
2520
2518
|
}
|
|
2521
|
-
),
|
|
2519
|
+
), je = hn ? String.fromCodePoint : (
|
|
2522
2520
|
// IE11
|
|
2523
2521
|
function() {
|
|
2524
2522
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2530,9 +2528,9 @@ var ft = cn ? (
|
|
|
2530
2528
|
}
|
|
2531
2529
|
return n;
|
|
2532
2530
|
}
|
|
2533
|
-
),
|
|
2531
|
+
), ht = (
|
|
2534
2532
|
// native
|
|
2535
|
-
|
|
2533
|
+
cn ? Object.fromEntries : (
|
|
2536
2534
|
// Ponyfill
|
|
2537
2535
|
function(t) {
|
|
2538
2536
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2542,7 +2540,7 @@ var ft = cn ? (
|
|
|
2542
2540
|
return r;
|
|
2543
2541
|
}
|
|
2544
2542
|
)
|
|
2545
|
-
),
|
|
2543
|
+
), Ft = fn ? (
|
|
2546
2544
|
// Native
|
|
2547
2545
|
function(t, r) {
|
|
2548
2546
|
return t.codePointAt(r);
|
|
@@ -2556,7 +2554,7 @@ var ft = cn ? (
|
|
|
2556
2554
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2557
2555
|
}
|
|
2558
2556
|
}
|
|
2559
|
-
),
|
|
2557
|
+
), vn = dn ? (
|
|
2560
2558
|
// Native
|
|
2561
2559
|
function(t) {
|
|
2562
2560
|
return t.trimStart();
|
|
@@ -2564,9 +2562,9 @@ var ft = cn ? (
|
|
|
2564
2562
|
) : (
|
|
2565
2563
|
// Ponyfill
|
|
2566
2564
|
function(t) {
|
|
2567
|
-
return t.replace(
|
|
2565
|
+
return t.replace(an, "");
|
|
2568
2566
|
}
|
|
2569
|
-
),
|
|
2567
|
+
), yn = mn ? (
|
|
2570
2568
|
// Native
|
|
2571
2569
|
function(t) {
|
|
2572
2570
|
return t.trimEnd();
|
|
@@ -2574,32 +2572,32 @@ var ft = cn ? (
|
|
|
2574
2572
|
) : (
|
|
2575
2573
|
// Ponyfill
|
|
2576
2574
|
function(t) {
|
|
2577
|
-
return t.replace(
|
|
2575
|
+
return t.replace(un, "");
|
|
2578
2576
|
}
|
|
2579
2577
|
);
|
|
2580
|
-
function
|
|
2578
|
+
function Gt(e, t) {
|
|
2581
2579
|
return new RegExp(e, t);
|
|
2582
2580
|
}
|
|
2583
|
-
var
|
|
2584
|
-
if (
|
|
2585
|
-
var
|
|
2586
|
-
|
|
2581
|
+
var Ve;
|
|
2582
|
+
if (ke) {
|
|
2583
|
+
var ct = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2584
|
+
Ve = function(t, r) {
|
|
2587
2585
|
var n;
|
|
2588
|
-
|
|
2589
|
-
var i =
|
|
2586
|
+
ct.lastIndex = r;
|
|
2587
|
+
var i = ct.exec(t);
|
|
2590
2588
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2591
2589
|
};
|
|
2592
2590
|
} else
|
|
2593
|
-
|
|
2591
|
+
Ve = function(t, r) {
|
|
2594
2592
|
for (var n = []; ; ) {
|
|
2595
|
-
var i =
|
|
2596
|
-
if (i === void 0 ||
|
|
2593
|
+
var i = Ft(t, r);
|
|
2594
|
+
if (i === void 0 || kt(i) || Sn(i))
|
|
2597
2595
|
break;
|
|
2598
2596
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2599
2597
|
}
|
|
2600
|
-
return
|
|
2598
|
+
return je.apply(void 0, n);
|
|
2601
2599
|
};
|
|
2602
|
-
var
|
|
2600
|
+
var En = (
|
|
2603
2601
|
/** @class */
|
|
2604
2602
|
function() {
|
|
2605
2603
|
function e(t, r) {
|
|
@@ -2624,13 +2622,13 @@ var _n = (
|
|
|
2624
2622
|
var a = this.clonePosition();
|
|
2625
2623
|
this.bump(), i.push({
|
|
2626
2624
|
type: x.pound,
|
|
2627
|
-
location:
|
|
2625
|
+
location: b(a, this.clonePosition())
|
|
2628
2626
|
});
|
|
2629
2627
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2630
2628
|
if (n)
|
|
2631
2629
|
break;
|
|
2632
|
-
return this.error(m.UNMATCHED_CLOSING_TAG,
|
|
2633
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2630
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, b(this.clonePosition(), this.clonePosition()));
|
|
2631
|
+
} else if (o === 60 && !this.ignoreTag && Xe(this.peek() || 0)) {
|
|
2634
2632
|
var s = this.parseTag(t, r);
|
|
2635
2633
|
if (s.err)
|
|
2636
2634
|
return s;
|
|
@@ -2653,7 +2651,7 @@ var _n = (
|
|
|
2653
2651
|
val: {
|
|
2654
2652
|
type: x.literal,
|
|
2655
2653
|
value: "<".concat(i, "/>"),
|
|
2656
|
-
location:
|
|
2654
|
+
location: b(n, this.clonePosition())
|
|
2657
2655
|
},
|
|
2658
2656
|
err: null
|
|
2659
2657
|
};
|
|
@@ -2663,25 +2661,25 @@ var _n = (
|
|
|
2663
2661
|
return o;
|
|
2664
2662
|
var s = o.val, a = this.clonePosition();
|
|
2665
2663
|
if (this.bumpIf("</")) {
|
|
2666
|
-
if (this.isEOF() || !
|
|
2667
|
-
return this.error(m.INVALID_TAG,
|
|
2664
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
2665
|
+
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
2668
2666
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2669
|
-
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG,
|
|
2667
|
+
return i !== u ? this.error(m.UNMATCHED_CLOSING_TAG, b(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2670
2668
|
val: {
|
|
2671
2669
|
type: x.tag,
|
|
2672
2670
|
value: i,
|
|
2673
2671
|
children: s,
|
|
2674
|
-
location:
|
|
2672
|
+
location: b(n, this.clonePosition())
|
|
2675
2673
|
},
|
|
2676
2674
|
err: null
|
|
2677
|
-
} : this.error(m.INVALID_TAG,
|
|
2675
|
+
} : this.error(m.INVALID_TAG, b(a, this.clonePosition())));
|
|
2678
2676
|
} else
|
|
2679
|
-
return this.error(m.UNCLOSED_TAG,
|
|
2677
|
+
return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2680
2678
|
} else
|
|
2681
|
-
return this.error(m.INVALID_TAG,
|
|
2679
|
+
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
2682
2680
|
}, e.prototype.parseTagName = function() {
|
|
2683
2681
|
var t = this.offset();
|
|
2684
|
-
for (this.bump(); !this.isEOF() &&
|
|
2682
|
+
for (this.bump(); !this.isEOF() && _n(this.char()); )
|
|
2685
2683
|
this.bump();
|
|
2686
2684
|
return this.message.slice(t, this.offset());
|
|
2687
2685
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2703,14 +2701,14 @@ var _n = (
|
|
|
2703
2701
|
}
|
|
2704
2702
|
break;
|
|
2705
2703
|
}
|
|
2706
|
-
var l =
|
|
2704
|
+
var l = b(n, this.clonePosition());
|
|
2707
2705
|
return {
|
|
2708
2706
|
val: { type: x.literal, value: i, location: l },
|
|
2709
2707
|
err: null
|
|
2710
2708
|
};
|
|
2711
2709
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2712
2710
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2713
|
-
!
|
|
2711
|
+
!xn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2714
2712
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2715
2713
|
if (this.isEOF() || this.char() !== 39)
|
|
2716
2714
|
return null;
|
|
@@ -2744,23 +2742,23 @@ var _n = (
|
|
|
2744
2742
|
r.push(n);
|
|
2745
2743
|
this.bump();
|
|
2746
2744
|
}
|
|
2747
|
-
return
|
|
2745
|
+
return je.apply(void 0, r);
|
|
2748
2746
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2749
2747
|
if (this.isEOF())
|
|
2750
2748
|
return null;
|
|
2751
2749
|
var n = this.char();
|
|
2752
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2750
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), je(n));
|
|
2753
2751
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2754
2752
|
var n = this.clonePosition();
|
|
2755
2753
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2756
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2754
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2757
2755
|
if (this.char() === 125)
|
|
2758
|
-
return this.bump(), this.error(m.EMPTY_ARGUMENT,
|
|
2756
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2759
2757
|
var i = this.parseIdentifierIfPossible().value;
|
|
2760
2758
|
if (!i)
|
|
2761
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2759
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2762
2760
|
if (this.bumpSpace(), this.isEOF())
|
|
2763
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2761
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2764
2762
|
switch (this.char()) {
|
|
2765
2763
|
case 125:
|
|
2766
2764
|
return this.bump(), {
|
|
@@ -2768,25 +2766,25 @@ var _n = (
|
|
|
2768
2766
|
type: x.argument,
|
|
2769
2767
|
// value does not include the opening and closing braces.
|
|
2770
2768
|
value: i,
|
|
2771
|
-
location:
|
|
2769
|
+
location: b(n, this.clonePosition())
|
|
2772
2770
|
},
|
|
2773
2771
|
err: null
|
|
2774
2772
|
};
|
|
2775
2773
|
case 44:
|
|
2776
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2774
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2777
2775
|
default:
|
|
2778
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2776
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2779
2777
|
}
|
|
2780
2778
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2781
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2779
|
+
var t = this.clonePosition(), r = this.offset(), n = Ve(this.message, r), i = r + n.length;
|
|
2782
2780
|
this.bumpTo(i);
|
|
2783
|
-
var o = this.clonePosition(), s =
|
|
2781
|
+
var o = this.clonePosition(), s = b(t, o);
|
|
2784
2782
|
return { value: n, location: s };
|
|
2785
2783
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2786
2784
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2787
2785
|
switch (a) {
|
|
2788
2786
|
case "":
|
|
2789
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE,
|
|
2787
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(s, l));
|
|
2790
2788
|
case "number":
|
|
2791
2789
|
case "date":
|
|
2792
2790
|
case "time": {
|
|
@@ -2794,40 +2792,40 @@ var _n = (
|
|
|
2794
2792
|
var u = null;
|
|
2795
2793
|
if (this.bumpIf(",")) {
|
|
2796
2794
|
this.bumpSpace();
|
|
2797
|
-
var h = this.clonePosition(),
|
|
2798
|
-
if (
|
|
2799
|
-
return
|
|
2800
|
-
var d =
|
|
2795
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2796
|
+
if (c.err)
|
|
2797
|
+
return c;
|
|
2798
|
+
var d = yn(c.val);
|
|
2801
2799
|
if (d.length === 0)
|
|
2802
|
-
return this.error(m.EXPECT_ARGUMENT_STYLE,
|
|
2803
|
-
var
|
|
2804
|
-
u = { style: d, styleLocation:
|
|
2800
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, b(this.clonePosition(), this.clonePosition()));
|
|
2801
|
+
var g = b(h, this.clonePosition());
|
|
2802
|
+
u = { style: d, styleLocation: g };
|
|
2805
2803
|
}
|
|
2806
|
-
var
|
|
2807
|
-
if (
|
|
2808
|
-
return
|
|
2809
|
-
var _ =
|
|
2810
|
-
if (u &&
|
|
2811
|
-
var
|
|
2804
|
+
var y = this.tryParseArgumentClose(i);
|
|
2805
|
+
if (y.err)
|
|
2806
|
+
return y;
|
|
2807
|
+
var _ = b(i, this.clonePosition());
|
|
2808
|
+
if (u && lt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2809
|
+
var T = vn(u.style.slice(2));
|
|
2812
2810
|
if (a === "number") {
|
|
2813
|
-
var
|
|
2814
|
-
return
|
|
2815
|
-
val: { type: x.number, value: n, location: _, style:
|
|
2811
|
+
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
2812
|
+
return c.err ? c : {
|
|
2813
|
+
val: { type: x.number, value: n, location: _, style: c.val },
|
|
2816
2814
|
err: null
|
|
2817
2815
|
};
|
|
2818
2816
|
} else {
|
|
2819
|
-
if (
|
|
2817
|
+
if (T.length === 0)
|
|
2820
2818
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
|
|
2821
|
-
var
|
|
2822
|
-
this.locale && (
|
|
2819
|
+
var H = T;
|
|
2820
|
+
this.locale && (H = on(T, this.locale));
|
|
2823
2821
|
var d = {
|
|
2824
|
-
type:
|
|
2825
|
-
pattern:
|
|
2822
|
+
type: te.dateTime,
|
|
2823
|
+
pattern: H,
|
|
2826
2824
|
location: u.styleLocation,
|
|
2827
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2828
|
-
},
|
|
2825
|
+
parsedOptions: this.shouldParseSkeletons ? qr(H) : {}
|
|
2826
|
+
}, L = a === "date" ? x.date : x.time;
|
|
2829
2827
|
return {
|
|
2830
|
-
val: { type:
|
|
2828
|
+
val: { type: L, value: n, location: _, style: d },
|
|
2831
2829
|
err: null
|
|
2832
2830
|
};
|
|
2833
2831
|
}
|
|
@@ -2845,32 +2843,32 @@ var _n = (
|
|
|
2845
2843
|
case "plural":
|
|
2846
2844
|
case "selectordinal":
|
|
2847
2845
|
case "select": {
|
|
2848
|
-
var
|
|
2846
|
+
var B = this.clonePosition();
|
|
2849
2847
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2850
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2848
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(B, v({}, B)));
|
|
2851
2849
|
this.bumpSpace();
|
|
2852
|
-
var
|
|
2853
|
-
if (a !== "select" &&
|
|
2850
|
+
var S = this.parseIdentifierIfPossible(), N = 0;
|
|
2851
|
+
if (a !== "select" && S.value === "offset") {
|
|
2854
2852
|
if (!this.bumpIf(":"))
|
|
2855
|
-
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2853
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2856
2854
|
this.bumpSpace();
|
|
2857
|
-
var
|
|
2858
|
-
if (
|
|
2859
|
-
return
|
|
2860
|
-
this.bumpSpace(),
|
|
2855
|
+
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2856
|
+
if (c.err)
|
|
2857
|
+
return c;
|
|
2858
|
+
this.bumpSpace(), S = this.parseIdentifierIfPossible(), N = c.val;
|
|
2861
2859
|
}
|
|
2862
|
-
var
|
|
2863
|
-
if (
|
|
2864
|
-
return
|
|
2865
|
-
var
|
|
2866
|
-
if (
|
|
2867
|
-
return
|
|
2868
|
-
var V =
|
|
2860
|
+
var F = this.tryParsePluralOrSelectOptions(t, a, r, S);
|
|
2861
|
+
if (F.err)
|
|
2862
|
+
return F;
|
|
2863
|
+
var y = this.tryParseArgumentClose(i);
|
|
2864
|
+
if (y.err)
|
|
2865
|
+
return y;
|
|
2866
|
+
var V = b(i, this.clonePosition());
|
|
2869
2867
|
return a === "select" ? {
|
|
2870
2868
|
val: {
|
|
2871
2869
|
type: x.select,
|
|
2872
2870
|
value: n,
|
|
2873
|
-
options:
|
|
2871
|
+
options: ht(F.val),
|
|
2874
2872
|
location: V
|
|
2875
2873
|
},
|
|
2876
2874
|
err: null
|
|
@@ -2878,8 +2876,8 @@ var _n = (
|
|
|
2878
2876
|
val: {
|
|
2879
2877
|
type: x.plural,
|
|
2880
2878
|
value: n,
|
|
2881
|
-
options:
|
|
2882
|
-
offset:
|
|
2879
|
+
options: ht(F.val),
|
|
2880
|
+
offset: N,
|
|
2883
2881
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2884
2882
|
location: V
|
|
2885
2883
|
},
|
|
@@ -2887,10 +2885,10 @@ var _n = (
|
|
|
2887
2885
|
};
|
|
2888
2886
|
}
|
|
2889
2887
|
default:
|
|
2890
|
-
return this.error(m.INVALID_ARGUMENT_TYPE,
|
|
2888
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(s, l));
|
|
2891
2889
|
}
|
|
2892
2890
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2893
|
-
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2891
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2894
2892
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2895
2893
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2896
2894
|
var n = this.char();
|
|
@@ -2899,7 +2897,7 @@ var _n = (
|
|
|
2899
2897
|
this.bump();
|
|
2900
2898
|
var i = this.clonePosition();
|
|
2901
2899
|
if (!this.bumpUntil("'"))
|
|
2902
|
-
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2900
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2903
2901
|
this.bump();
|
|
2904
2902
|
break;
|
|
2905
2903
|
}
|
|
@@ -2929,52 +2927,52 @@ var _n = (
|
|
|
2929
2927
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2930
2928
|
var n = [];
|
|
2931
2929
|
try {
|
|
2932
|
-
n =
|
|
2930
|
+
n = Kr(t);
|
|
2933
2931
|
} catch (i) {
|
|
2934
2932
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2935
2933
|
}
|
|
2936
2934
|
return {
|
|
2937
2935
|
val: {
|
|
2938
|
-
type:
|
|
2936
|
+
type: te.number,
|
|
2939
2937
|
tokens: n,
|
|
2940
2938
|
location: r,
|
|
2941
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2939
|
+
parsedOptions: this.shouldParseSkeletons ? nn(n) : {}
|
|
2942
2940
|
},
|
|
2943
2941
|
err: null
|
|
2944
2942
|
};
|
|
2945
2943
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2946
2944
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
2947
2945
|
if (u.length === 0) {
|
|
2948
|
-
var
|
|
2946
|
+
var c = this.clonePosition();
|
|
2949
2947
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2950
2948
|
var d = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2951
2949
|
if (d.err)
|
|
2952
2950
|
return d;
|
|
2953
|
-
h =
|
|
2951
|
+
h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
2954
2952
|
} else
|
|
2955
2953
|
break;
|
|
2956
2954
|
}
|
|
2957
2955
|
if (l.has(u))
|
|
2958
2956
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2959
2957
|
u === "other" && (s = !0), this.bumpSpace();
|
|
2960
|
-
var
|
|
2958
|
+
var g = this.clonePosition();
|
|
2961
2959
|
if (!this.bumpIf("{"))
|
|
2962
|
-
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2963
|
-
var
|
|
2964
|
-
if (
|
|
2965
|
-
return
|
|
2966
|
-
var _ = this.tryParseArgumentClose(
|
|
2960
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, b(this.clonePosition(), this.clonePosition()));
|
|
2961
|
+
var y = this.parseMessage(t + 1, r, n);
|
|
2962
|
+
if (y.err)
|
|
2963
|
+
return y;
|
|
2964
|
+
var _ = this.tryParseArgumentClose(g);
|
|
2967
2965
|
if (_.err)
|
|
2968
2966
|
return _;
|
|
2969
2967
|
a.push([
|
|
2970
2968
|
u,
|
|
2971
2969
|
{
|
|
2972
|
-
value:
|
|
2973
|
-
location:
|
|
2970
|
+
value: y.val,
|
|
2971
|
+
location: b(g, this.clonePosition())
|
|
2974
2972
|
}
|
|
2975
2973
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
2976
2974
|
}
|
|
2977
|
-
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
2975
|
+
return a.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, b(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(m.MISSING_OTHER_CLAUSE, b(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
2978
2976
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2979
2977
|
var n = 1, i = this.clonePosition();
|
|
2980
2978
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -2985,8 +2983,8 @@ var _n = (
|
|
|
2985
2983
|
else
|
|
2986
2984
|
break;
|
|
2987
2985
|
}
|
|
2988
|
-
var l =
|
|
2989
|
-
return o ? (s *= n,
|
|
2986
|
+
var l = b(i, this.clonePosition());
|
|
2987
|
+
return o ? (s *= n, bn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
2990
2988
|
}, e.prototype.offset = function() {
|
|
2991
2989
|
return this.position.offset;
|
|
2992
2990
|
}, e.prototype.isEOF = function() {
|
|
@@ -3001,7 +2999,7 @@ var _n = (
|
|
|
3001
2999
|
var t = this.position.offset;
|
|
3002
3000
|
if (t >= this.message.length)
|
|
3003
3001
|
throw Error("out of bound");
|
|
3004
|
-
var r =
|
|
3002
|
+
var r = Ft(this.message, t);
|
|
3005
3003
|
if (r === void 0)
|
|
3006
3004
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3007
3005
|
return r;
|
|
@@ -3020,7 +3018,7 @@ var _n = (
|
|
|
3020
3018
|
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);
|
|
3021
3019
|
}
|
|
3022
3020
|
}, e.prototype.bumpIf = function(t) {
|
|
3023
|
-
if (
|
|
3021
|
+
if (lt(this.message, t, this.offset())) {
|
|
3024
3022
|
for (var r = 0; r < t.length; r++)
|
|
3025
3023
|
this.bump();
|
|
3026
3024
|
return !0;
|
|
@@ -3042,7 +3040,7 @@ var _n = (
|
|
|
3042
3040
|
break;
|
|
3043
3041
|
}
|
|
3044
3042
|
}, e.prototype.bumpSpace = function() {
|
|
3045
|
-
for (; !this.isEOF() &&
|
|
3043
|
+
for (; !this.isEOF() && kt(this.char()); )
|
|
3046
3044
|
this.bump();
|
|
3047
3045
|
}, e.prototype.peek = function() {
|
|
3048
3046
|
if (this.isEOF())
|
|
@@ -3052,46 +3050,46 @@ var _n = (
|
|
|
3052
3050
|
}, e;
|
|
3053
3051
|
}()
|
|
3054
3052
|
);
|
|
3055
|
-
function
|
|
3053
|
+
function Xe(e) {
|
|
3056
3054
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3057
3055
|
}
|
|
3058
|
-
function
|
|
3059
|
-
return
|
|
3056
|
+
function xn(e) {
|
|
3057
|
+
return Xe(e) || e === 47;
|
|
3060
3058
|
}
|
|
3061
|
-
function
|
|
3059
|
+
function _n(e) {
|
|
3062
3060
|
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;
|
|
3063
3061
|
}
|
|
3064
|
-
function
|
|
3062
|
+
function kt(e) {
|
|
3065
3063
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3066
3064
|
}
|
|
3067
|
-
function
|
|
3065
|
+
function Sn(e) {
|
|
3068
3066
|
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;
|
|
3069
3067
|
}
|
|
3070
|
-
function
|
|
3068
|
+
function ze(e) {
|
|
3071
3069
|
e.forEach(function(t) {
|
|
3072
|
-
if (delete t.location,
|
|
3070
|
+
if (delete t.location, Nt(t) || Ot(t))
|
|
3073
3071
|
for (var r in t.options)
|
|
3074
|
-
delete t.options[r].location,
|
|
3075
|
-
else
|
|
3072
|
+
delete t.options[r].location, ze(t.options[r].value);
|
|
3073
|
+
else Pt(t) && Lt(t.style) || (Ct(t) || It(t)) && Ge(t.style) ? delete t.style.location : Mt(t) && ze(t.children);
|
|
3076
3074
|
});
|
|
3077
3075
|
}
|
|
3078
|
-
function
|
|
3079
|
-
t === void 0 && (t = {}), t =
|
|
3080
|
-
var r = new
|
|
3076
|
+
function Tn(e, t) {
|
|
3077
|
+
t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3078
|
+
var r = new En(e, t).parse();
|
|
3081
3079
|
if (r.err) {
|
|
3082
3080
|
var n = SyntaxError(m[r.err.kind]);
|
|
3083
3081
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3084
3082
|
}
|
|
3085
|
-
return t != null && t.captureLocation ||
|
|
3083
|
+
return t != null && t.captureLocation || ze(r.val), r.val;
|
|
3086
3084
|
}
|
|
3087
|
-
var
|
|
3085
|
+
var re;
|
|
3088
3086
|
(function(e) {
|
|
3089
3087
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3090
|
-
})(
|
|
3091
|
-
var
|
|
3088
|
+
})(re || (re = {}));
|
|
3089
|
+
var Ae = (
|
|
3092
3090
|
/** @class */
|
|
3093
3091
|
function(e) {
|
|
3094
|
-
|
|
3092
|
+
He(t, e);
|
|
3095
3093
|
function t(r, n, i) {
|
|
3096
3094
|
var o = e.call(this, r) || this;
|
|
3097
3095
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3100,155 +3098,155 @@ var Be = (
|
|
|
3100
3098
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3101
3099
|
}, t;
|
|
3102
3100
|
}(Error)
|
|
3103
|
-
),
|
|
3101
|
+
), ft = (
|
|
3104
3102
|
/** @class */
|
|
3105
3103
|
function(e) {
|
|
3106
|
-
|
|
3104
|
+
He(t, e);
|
|
3107
3105
|
function t(r, n, i, o) {
|
|
3108
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3106
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, o) || this;
|
|
3109
3107
|
}
|
|
3110
3108
|
return t;
|
|
3111
|
-
}(
|
|
3112
|
-
),
|
|
3109
|
+
}(Ae)
|
|
3110
|
+
), Hn = (
|
|
3113
3111
|
/** @class */
|
|
3114
3112
|
function(e) {
|
|
3115
|
-
|
|
3113
|
+
He(t, e);
|
|
3116
3114
|
function t(r, n, i) {
|
|
3117
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3115
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
|
|
3118
3116
|
}
|
|
3119
3117
|
return t;
|
|
3120
|
-
}(
|
|
3121
|
-
),
|
|
3118
|
+
}(Ae)
|
|
3119
|
+
), An = (
|
|
3122
3120
|
/** @class */
|
|
3123
3121
|
function(e) {
|
|
3124
|
-
|
|
3122
|
+
He(t, e);
|
|
3125
3123
|
function t(r, n) {
|
|
3126
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3124
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
|
|
3127
3125
|
}
|
|
3128
3126
|
return t;
|
|
3129
|
-
}(
|
|
3130
|
-
),
|
|
3127
|
+
}(Ae)
|
|
3128
|
+
), I;
|
|
3131
3129
|
(function(e) {
|
|
3132
3130
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3133
|
-
})(
|
|
3134
|
-
function
|
|
3131
|
+
})(I || (I = {}));
|
|
3132
|
+
function Bn(e) {
|
|
3135
3133
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3136
3134
|
var n = t[t.length - 1];
|
|
3137
|
-
return !n || n.type !==
|
|
3135
|
+
return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
|
|
3138
3136
|
}, []);
|
|
3139
3137
|
}
|
|
3140
|
-
function
|
|
3138
|
+
function wn(e) {
|
|
3141
3139
|
return typeof e == "function";
|
|
3142
3140
|
}
|
|
3143
|
-
function
|
|
3144
|
-
if (e.length === 1 &&
|
|
3141
|
+
function Ee(e, t, r, n, i, o, s) {
|
|
3142
|
+
if (e.length === 1 && ot(e[0]))
|
|
3145
3143
|
return [
|
|
3146
3144
|
{
|
|
3147
|
-
type:
|
|
3145
|
+
type: I.literal,
|
|
3148
3146
|
value: e[0].value
|
|
3149
3147
|
}
|
|
3150
3148
|
];
|
|
3151
3149
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3152
3150
|
var h = u[l];
|
|
3153
|
-
if (
|
|
3151
|
+
if (ot(h)) {
|
|
3154
3152
|
a.push({
|
|
3155
|
-
type:
|
|
3153
|
+
type: I.literal,
|
|
3156
3154
|
value: h.value
|
|
3157
3155
|
});
|
|
3158
3156
|
continue;
|
|
3159
3157
|
}
|
|
3160
|
-
if (
|
|
3158
|
+
if (Jr(h)) {
|
|
3161
3159
|
typeof o == "number" && a.push({
|
|
3162
|
-
type:
|
|
3160
|
+
type: I.literal,
|
|
3163
3161
|
value: r.getNumberFormat(t).format(o)
|
|
3164
3162
|
});
|
|
3165
3163
|
continue;
|
|
3166
3164
|
}
|
|
3167
|
-
var
|
|
3168
|
-
if (!(i &&
|
|
3169
|
-
throw new
|
|
3170
|
-
var d = i[
|
|
3171
|
-
if (
|
|
3165
|
+
var c = h.value;
|
|
3166
|
+
if (!(i && c in i))
|
|
3167
|
+
throw new An(c, s);
|
|
3168
|
+
var d = i[c];
|
|
3169
|
+
if (Zr(h)) {
|
|
3172
3170
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
|
|
3173
|
-
type: typeof d == "string" ?
|
|
3171
|
+
type: typeof d == "string" ? I.literal : I.object,
|
|
3174
3172
|
value: d
|
|
3175
3173
|
});
|
|
3176
3174
|
continue;
|
|
3177
3175
|
}
|
|
3178
|
-
if (
|
|
3179
|
-
var
|
|
3176
|
+
if (Ct(h)) {
|
|
3177
|
+
var g = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
|
|
3180
3178
|
a.push({
|
|
3181
|
-
type:
|
|
3182
|
-
value: r.getDateTimeFormat(t,
|
|
3179
|
+
type: I.literal,
|
|
3180
|
+
value: r.getDateTimeFormat(t, g).format(d)
|
|
3183
3181
|
});
|
|
3184
3182
|
continue;
|
|
3185
3183
|
}
|
|
3186
|
-
if (
|
|
3187
|
-
var
|
|
3184
|
+
if (It(h)) {
|
|
3185
|
+
var g = typeof h.style == "string" ? n.time[h.style] : Ge(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3188
3186
|
a.push({
|
|
3189
|
-
type:
|
|
3190
|
-
value: r.getDateTimeFormat(t,
|
|
3187
|
+
type: I.literal,
|
|
3188
|
+
value: r.getDateTimeFormat(t, g).format(d)
|
|
3191
3189
|
});
|
|
3192
3190
|
continue;
|
|
3193
3191
|
}
|
|
3194
|
-
if (
|
|
3195
|
-
var
|
|
3196
|
-
|
|
3197
|
-
type:
|
|
3198
|
-
value: r.getNumberFormat(t,
|
|
3192
|
+
if (Pt(h)) {
|
|
3193
|
+
var g = typeof h.style == "string" ? n.number[h.style] : Lt(h.style) ? h.style.parsedOptions : void 0;
|
|
3194
|
+
g && g.scale && (d = d * (g.scale || 1)), a.push({
|
|
3195
|
+
type: I.literal,
|
|
3196
|
+
value: r.getNumberFormat(t, g).format(d)
|
|
3199
3197
|
});
|
|
3200
3198
|
continue;
|
|
3201
3199
|
}
|
|
3202
|
-
if (
|
|
3203
|
-
var
|
|
3204
|
-
if (!
|
|
3205
|
-
throw new
|
|
3206
|
-
var
|
|
3207
|
-
return
|
|
3200
|
+
if (Mt(h)) {
|
|
3201
|
+
var y = h.children, _ = h.value, T = i[_];
|
|
3202
|
+
if (!wn(T))
|
|
3203
|
+
throw new Hn(_, "function", s);
|
|
3204
|
+
var H = Ee(y, t, r, n, i, o), L = T(H.map(function(N) {
|
|
3205
|
+
return N.value;
|
|
3208
3206
|
}));
|
|
3209
|
-
Array.isArray(
|
|
3207
|
+
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(N) {
|
|
3210
3208
|
return {
|
|
3211
|
-
type: typeof
|
|
3212
|
-
value:
|
|
3209
|
+
type: typeof N == "string" ? I.literal : I.object,
|
|
3210
|
+
value: N
|
|
3213
3211
|
};
|
|
3214
3212
|
}));
|
|
3215
3213
|
}
|
|
3216
|
-
if (
|
|
3217
|
-
var
|
|
3218
|
-
if (!
|
|
3219
|
-
throw new
|
|
3220
|
-
a.push.apply(a,
|
|
3214
|
+
if (Nt(h)) {
|
|
3215
|
+
var B = h.options[d] || h.options.other;
|
|
3216
|
+
if (!B)
|
|
3217
|
+
throw new ft(h.value, d, Object.keys(h.options), s);
|
|
3218
|
+
a.push.apply(a, Ee(B.value, t, r, n, i));
|
|
3221
3219
|
continue;
|
|
3222
3220
|
}
|
|
3223
|
-
if (
|
|
3224
|
-
var
|
|
3225
|
-
if (!
|
|
3221
|
+
if (Ot(h)) {
|
|
3222
|
+
var B = h.options["=".concat(d)];
|
|
3223
|
+
if (!B) {
|
|
3226
3224
|
if (!Intl.PluralRules)
|
|
3227
|
-
throw new
|
|
3225
|
+
throw new Ae(`Intl.PluralRules is not available in this environment.
|
|
3228
3226
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3229
|
-
`,
|
|
3230
|
-
var
|
|
3231
|
-
|
|
3227
|
+
`, re.MISSING_INTL_API, s);
|
|
3228
|
+
var S = r.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
|
|
3229
|
+
B = h.options[S] || h.options.other;
|
|
3232
3230
|
}
|
|
3233
|
-
if (!
|
|
3234
|
-
throw new
|
|
3235
|
-
a.push.apply(a,
|
|
3231
|
+
if (!B)
|
|
3232
|
+
throw new ft(h.value, d, Object.keys(h.options), s);
|
|
3233
|
+
a.push.apply(a, Ee(B.value, t, r, n, i, d - (h.offset || 0)));
|
|
3236
3234
|
continue;
|
|
3237
3235
|
}
|
|
3238
3236
|
}
|
|
3239
|
-
return
|
|
3237
|
+
return Bn(a);
|
|
3240
3238
|
}
|
|
3241
|
-
function
|
|
3242
|
-
return t ?
|
|
3243
|
-
return r[n] =
|
|
3239
|
+
function Pn(e, t) {
|
|
3240
|
+
return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3241
|
+
return r[n] = v(v({}, e[n]), t[n] || {}), r;
|
|
3244
3242
|
}, {})) : e;
|
|
3245
3243
|
}
|
|
3246
|
-
function
|
|
3244
|
+
function Cn(e, t) {
|
|
3247
3245
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3248
|
-
return r[n] =
|
|
3249
|
-
},
|
|
3246
|
+
return r[n] = Pn(e[n], t[n]), r;
|
|
3247
|
+
}, v({}, e)) : e;
|
|
3250
3248
|
}
|
|
3251
|
-
function
|
|
3249
|
+
function Le(e) {
|
|
3252
3250
|
return {
|
|
3253
3251
|
create: function() {
|
|
3254
3252
|
return {
|
|
@@ -3262,39 +3260,39 @@ function Re(e) {
|
|
|
3262
3260
|
}
|
|
3263
3261
|
};
|
|
3264
3262
|
}
|
|
3265
|
-
function
|
|
3263
|
+
function In(e) {
|
|
3266
3264
|
return e === void 0 && (e = {
|
|
3267
3265
|
number: {},
|
|
3268
3266
|
dateTime: {},
|
|
3269
3267
|
pluralRules: {}
|
|
3270
3268
|
}), {
|
|
3271
|
-
getNumberFormat:
|
|
3269
|
+
getNumberFormat: Ne(function() {
|
|
3272
3270
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3273
3271
|
r[n] = arguments[n];
|
|
3274
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3272
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3275
3273
|
}, {
|
|
3276
|
-
cache:
|
|
3277
|
-
strategy:
|
|
3274
|
+
cache: Le(e.number),
|
|
3275
|
+
strategy: Oe.variadic
|
|
3278
3276
|
}),
|
|
3279
|
-
getDateTimeFormat:
|
|
3277
|
+
getDateTimeFormat: Ne(function() {
|
|
3280
3278
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3281
3279
|
r[n] = arguments[n];
|
|
3282
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3280
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3283
3281
|
}, {
|
|
3284
|
-
cache:
|
|
3285
|
-
strategy:
|
|
3282
|
+
cache: Le(e.dateTime),
|
|
3283
|
+
strategy: Oe.variadic
|
|
3286
3284
|
}),
|
|
3287
|
-
getPluralRules:
|
|
3285
|
+
getPluralRules: Ne(function() {
|
|
3288
3286
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3289
3287
|
r[n] = arguments[n];
|
|
3290
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3288
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3291
3289
|
}, {
|
|
3292
|
-
cache:
|
|
3293
|
-
strategy:
|
|
3290
|
+
cache: Le(e.pluralRules),
|
|
3291
|
+
strategy: Oe.variadic
|
|
3294
3292
|
})
|
|
3295
3293
|
};
|
|
3296
3294
|
}
|
|
3297
|
-
var
|
|
3295
|
+
var Nn = (
|
|
3298
3296
|
/** @class */
|
|
3299
3297
|
function() {
|
|
3300
3298
|
function e(t, r, n, i) {
|
|
@@ -3308,12 +3306,12 @@ var Mn = (
|
|
|
3308
3306
|
var u = o.formatToParts(l);
|
|
3309
3307
|
if (u.length === 1)
|
|
3310
3308
|
return u[0].value;
|
|
3311
|
-
var h = u.reduce(function(
|
|
3312
|
-
return !
|
|
3309
|
+
var h = u.reduce(function(c, d) {
|
|
3310
|
+
return !c.length || d.type !== I.literal || typeof c[c.length - 1] != "string" ? c.push(d.value) : c[c.length - 1] += d.value, c;
|
|
3313
3311
|
}, []);
|
|
3314
3312
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3315
3313
|
}, this.formatToParts = function(l) {
|
|
3316
|
-
return
|
|
3314
|
+
return Ee(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3317
3315
|
}, this.resolvedOptions = function() {
|
|
3318
3316
|
var l;
|
|
3319
3317
|
return {
|
|
@@ -3326,13 +3324,13 @@ var Mn = (
|
|
|
3326
3324
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3327
3325
|
var s = i || {};
|
|
3328
3326
|
s.formatters;
|
|
3329
|
-
var a =
|
|
3330
|
-
this.ast = e.__parse(t,
|
|
3327
|
+
var a = Fr(s, ["formatters"]);
|
|
3328
|
+
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3331
3329
|
} else
|
|
3332
3330
|
this.ast = t;
|
|
3333
3331
|
if (!Array.isArray(this.ast))
|
|
3334
3332
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3335
|
-
this.formats =
|
|
3333
|
+
this.formats = Cn(e.formats, n), this.formatters = i && i.formatters || In(this.formatterCache);
|
|
3336
3334
|
}
|
|
3337
3335
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3338
3336
|
get: function() {
|
|
@@ -3345,7 +3343,7 @@ var Mn = (
|
|
|
3345
3343
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3346
3344
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3347
3345
|
}
|
|
3348
|
-
}, e.__parse =
|
|
3346
|
+
}, e.__parse = Tn, e.formats = {
|
|
3349
3347
|
number: {
|
|
3350
3348
|
integer: {
|
|
3351
3349
|
maximumFractionDigits: 0
|
|
@@ -3406,7 +3404,7 @@ var Mn = (
|
|
|
3406
3404
|
}, e;
|
|
3407
3405
|
}()
|
|
3408
3406
|
);
|
|
3409
|
-
function
|
|
3407
|
+
function On(e, t) {
|
|
3410
3408
|
if (t == null)
|
|
3411
3409
|
return;
|
|
3412
3410
|
if (t in e)
|
|
@@ -3427,92 +3425,92 @@ function Ln(e, t) {
|
|
|
3427
3425
|
n = void 0;
|
|
3428
3426
|
return n;
|
|
3429
3427
|
}
|
|
3430
|
-
const k = {},
|
|
3428
|
+
const k = {}, Mn = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), jt = (e, t) => {
|
|
3431
3429
|
if (t == null)
|
|
3432
3430
|
return;
|
|
3433
3431
|
if (t in k && e in k[t])
|
|
3434
3432
|
return k[t][e];
|
|
3435
|
-
const r =
|
|
3433
|
+
const r = Be(t);
|
|
3436
3434
|
for (let n = 0; n < r.length; n++) {
|
|
3437
|
-
const i = r[n], o =
|
|
3435
|
+
const i = r[n], o = Rn(i, e);
|
|
3438
3436
|
if (o)
|
|
3439
|
-
return
|
|
3437
|
+
return Mn(e, t, o);
|
|
3440
3438
|
}
|
|
3441
3439
|
};
|
|
3442
|
-
let
|
|
3443
|
-
const
|
|
3444
|
-
function
|
|
3445
|
-
return
|
|
3440
|
+
let Qe;
|
|
3441
|
+
const se = Te({});
|
|
3442
|
+
function Ln(e) {
|
|
3443
|
+
return Qe[e] || null;
|
|
3446
3444
|
}
|
|
3447
|
-
function
|
|
3448
|
-
return e in
|
|
3445
|
+
function Vt(e) {
|
|
3446
|
+
return e in Qe;
|
|
3449
3447
|
}
|
|
3450
|
-
function
|
|
3451
|
-
if (!
|
|
3448
|
+
function Rn(e, t) {
|
|
3449
|
+
if (!Vt(e))
|
|
3452
3450
|
return null;
|
|
3453
|
-
const r =
|
|
3454
|
-
return
|
|
3451
|
+
const r = Ln(e);
|
|
3452
|
+
return On(r, t);
|
|
3455
3453
|
}
|
|
3456
|
-
function
|
|
3454
|
+
function $n(e) {
|
|
3457
3455
|
if (e == null)
|
|
3458
3456
|
return;
|
|
3459
|
-
const t =
|
|
3457
|
+
const t = Be(e);
|
|
3460
3458
|
for (let r = 0; r < t.length; r++) {
|
|
3461
3459
|
const n = t[r];
|
|
3462
|
-
if (
|
|
3460
|
+
if (Vt(n))
|
|
3463
3461
|
return n;
|
|
3464
3462
|
}
|
|
3465
3463
|
}
|
|
3466
|
-
function
|
|
3467
|
-
delete k[e],
|
|
3464
|
+
function Xt(e, ...t) {
|
|
3465
|
+
delete k[e], se.update((r) => (r[e] = Dr.all([r[e] || {}, ...t]), r));
|
|
3468
3466
|
}
|
|
3469
|
-
|
|
3470
|
-
[
|
|
3467
|
+
oe(
|
|
3468
|
+
[se],
|
|
3471
3469
|
([e]) => Object.keys(e)
|
|
3472
3470
|
);
|
|
3473
|
-
|
|
3474
|
-
const
|
|
3475
|
-
function
|
|
3476
|
-
|
|
3471
|
+
se.subscribe((e) => Qe = e);
|
|
3472
|
+
const xe = {};
|
|
3473
|
+
function Un(e, t) {
|
|
3474
|
+
xe[e].delete(t), xe[e].size === 0 && delete xe[e];
|
|
3477
3475
|
}
|
|
3478
|
-
function
|
|
3479
|
-
return
|
|
3476
|
+
function zt(e) {
|
|
3477
|
+
return xe[e];
|
|
3480
3478
|
}
|
|
3481
|
-
function
|
|
3482
|
-
return
|
|
3483
|
-
const r =
|
|
3479
|
+
function Dn(e) {
|
|
3480
|
+
return Be(e).map((t) => {
|
|
3481
|
+
const r = zt(t);
|
|
3484
3482
|
return [t, r ? [...r] : []];
|
|
3485
3483
|
}).filter(([, t]) => t.length > 0);
|
|
3486
3484
|
}
|
|
3487
|
-
function
|
|
3488
|
-
return e == null ? !1 :
|
|
3485
|
+
function We(e) {
|
|
3486
|
+
return e == null ? !1 : Be(e).some(
|
|
3489
3487
|
(t) => {
|
|
3490
3488
|
var r;
|
|
3491
|
-
return (r =
|
|
3489
|
+
return (r = zt(t)) == null ? void 0 : r.size;
|
|
3492
3490
|
}
|
|
3493
3491
|
);
|
|
3494
3492
|
}
|
|
3495
|
-
function
|
|
3493
|
+
function Fn(e, t) {
|
|
3496
3494
|
return Promise.all(
|
|
3497
|
-
t.map((n) => (
|
|
3498
|
-
).then((n) =>
|
|
3499
|
-
}
|
|
3500
|
-
const
|
|
3501
|
-
function
|
|
3502
|
-
if (!
|
|
3503
|
-
return e in
|
|
3504
|
-
const t =
|
|
3505
|
-
return
|
|
3495
|
+
t.map((n) => (Un(e, n), n().then((i) => i.default || i)))
|
|
3496
|
+
).then((n) => Xt(e, ...n));
|
|
3497
|
+
}
|
|
3498
|
+
const ce = {};
|
|
3499
|
+
function Wt(e) {
|
|
3500
|
+
if (!We(e))
|
|
3501
|
+
return e in ce ? ce[e] : Promise.resolve();
|
|
3502
|
+
const t = Dn(e);
|
|
3503
|
+
return ce[e] = Promise.all(
|
|
3506
3504
|
t.map(
|
|
3507
|
-
([r, n]) =>
|
|
3505
|
+
([r, n]) => Fn(r, n)
|
|
3508
3506
|
)
|
|
3509
3507
|
).then(() => {
|
|
3510
|
-
if (
|
|
3511
|
-
return
|
|
3512
|
-
delete
|
|
3513
|
-
}),
|
|
3508
|
+
if (We(e))
|
|
3509
|
+
return Wt(e);
|
|
3510
|
+
delete ce[e];
|
|
3511
|
+
}), ce[e];
|
|
3514
3512
|
}
|
|
3515
|
-
const
|
|
3513
|
+
const Gn = {
|
|
3516
3514
|
number: {
|
|
3517
3515
|
scientific: { notation: "scientific" },
|
|
3518
3516
|
engineering: { notation: "engineering" },
|
|
@@ -3541,135 +3539,135 @@ const jn = {
|
|
|
3541
3539
|
timeZoneName: "short"
|
|
3542
3540
|
}
|
|
3543
3541
|
}
|
|
3544
|
-
},
|
|
3542
|
+
}, kn = {
|
|
3545
3543
|
fallbackLocale: null,
|
|
3546
3544
|
loadingDelay: 200,
|
|
3547
|
-
formats:
|
|
3545
|
+
formats: Gn,
|
|
3548
3546
|
warnOnMissingMessages: !0,
|
|
3549
3547
|
handleMissingMessage: void 0,
|
|
3550
3548
|
ignoreTag: !0
|
|
3551
|
-
},
|
|
3552
|
-
function
|
|
3553
|
-
return
|
|
3549
|
+
}, jn = kn;
|
|
3550
|
+
function ne() {
|
|
3551
|
+
return jn;
|
|
3554
3552
|
}
|
|
3555
|
-
const
|
|
3556
|
-
var
|
|
3553
|
+
const Re = Te(!1);
|
|
3554
|
+
var Vn = Object.defineProperty, Xn = Object.defineProperties, zn = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, Wn = Object.prototype.hasOwnProperty, Zn = Object.prototype.propertyIsEnumerable, mt = (e, t, r) => t in e ? Vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Jn = (e, t) => {
|
|
3557
3555
|
for (var r in t || (t = {}))
|
|
3558
|
-
|
|
3559
|
-
if (
|
|
3560
|
-
for (var r of
|
|
3561
|
-
|
|
3556
|
+
Wn.call(t, r) && mt(e, r, t[r]);
|
|
3557
|
+
if (dt)
|
|
3558
|
+
for (var r of dt(t))
|
|
3559
|
+
Zn.call(t, r) && mt(e, r, t[r]);
|
|
3562
3560
|
return e;
|
|
3563
|
-
},
|
|
3564
|
-
let
|
|
3565
|
-
const
|
|
3566
|
-
function
|
|
3561
|
+
}, Qn = (e, t) => Xn(e, zn(t));
|
|
3562
|
+
let Ze;
|
|
3563
|
+
const _e = Te(null);
|
|
3564
|
+
function pt(e) {
|
|
3567
3565
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3568
3566
|
}
|
|
3569
|
-
function
|
|
3570
|
-
const r =
|
|
3571
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3567
|
+
function Be(e, t = ne().fallbackLocale) {
|
|
3568
|
+
const r = pt(e);
|
|
3569
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
|
|
3572
3570
|
}
|
|
3573
3571
|
function J() {
|
|
3574
|
-
return
|
|
3572
|
+
return Ze != null ? Ze : void 0;
|
|
3575
3573
|
}
|
|
3576
|
-
|
|
3577
|
-
|
|
3574
|
+
_e.subscribe((e) => {
|
|
3575
|
+
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3578
3576
|
});
|
|
3579
|
-
const
|
|
3580
|
-
if (e &&
|
|
3581
|
-
const { loadingDelay: t } =
|
|
3577
|
+
const qn = (e) => {
|
|
3578
|
+
if (e && $n(e) && We(e)) {
|
|
3579
|
+
const { loadingDelay: t } = ne();
|
|
3582
3580
|
let r;
|
|
3583
3581
|
return typeof window != "undefined" && J() != null && t ? r = window.setTimeout(
|
|
3584
|
-
() =>
|
|
3582
|
+
() => Re.set(!0),
|
|
3585
3583
|
t
|
|
3586
|
-
) :
|
|
3587
|
-
|
|
3584
|
+
) : Re.set(!0), Wt(e).then(() => {
|
|
3585
|
+
_e.set(e);
|
|
3588
3586
|
}).finally(() => {
|
|
3589
|
-
clearTimeout(r),
|
|
3587
|
+
clearTimeout(r), Re.set(!1);
|
|
3590
3588
|
});
|
|
3591
3589
|
}
|
|
3592
|
-
return
|
|
3593
|
-
}, W =
|
|
3594
|
-
set:
|
|
3595
|
-
}),
|
|
3590
|
+
return _e.set(e);
|
|
3591
|
+
}, W = Qn(Jn({}, _e), {
|
|
3592
|
+
set: qn
|
|
3593
|
+
}), we = (e) => {
|
|
3596
3594
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3597
3595
|
return (n) => {
|
|
3598
3596
|
const i = JSON.stringify(n);
|
|
3599
3597
|
return i in t ? t[i] : t[i] = e(n);
|
|
3600
3598
|
};
|
|
3601
3599
|
};
|
|
3602
|
-
var
|
|
3600
|
+
var Yn = Object.defineProperty, Se = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? Yn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
3603
3601
|
for (var r in t || (t = {}))
|
|
3604
|
-
|
|
3605
|
-
if (
|
|
3606
|
-
for (var r of
|
|
3607
|
-
|
|
3602
|
+
Zt.call(t, r) && bt(e, r, t[r]);
|
|
3603
|
+
if (Se)
|
|
3604
|
+
for (var r of Se(t))
|
|
3605
|
+
Jt.call(t, r) && bt(e, r, t[r]);
|
|
3608
3606
|
return e;
|
|
3609
|
-
},
|
|
3607
|
+
}, ae = (e, t) => {
|
|
3610
3608
|
var r = {};
|
|
3611
3609
|
for (var n in e)
|
|
3612
|
-
|
|
3613
|
-
if (e != null &&
|
|
3614
|
-
for (var n of
|
|
3615
|
-
t.indexOf(n) < 0 &&
|
|
3610
|
+
Zt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3611
|
+
if (e != null && Se)
|
|
3612
|
+
for (var n of Se(e))
|
|
3613
|
+
t.indexOf(n) < 0 && Jt.call(e, n) && (r[n] = e[n]);
|
|
3616
3614
|
return r;
|
|
3617
3615
|
};
|
|
3618
|
-
const
|
|
3619
|
-
const { formats: r } =
|
|
3616
|
+
const pe = (e, t) => {
|
|
3617
|
+
const { formats: r } = ne();
|
|
3620
3618
|
if (e in r && t in r[e])
|
|
3621
3619
|
return r[e][t];
|
|
3622
3620
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3623
|
-
},
|
|
3621
|
+
}, Kn = we(
|
|
3624
3622
|
(e) => {
|
|
3625
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3623
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3626
3624
|
if (r == null)
|
|
3627
3625
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3628
|
-
return n && (i =
|
|
3626
|
+
return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
|
|
3629
3627
|
}
|
|
3630
|
-
),
|
|
3628
|
+
), ei = we(
|
|
3631
3629
|
(e) => {
|
|
3632
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3630
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3633
3631
|
if (r == null)
|
|
3634
3632
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3635
|
-
return n ? i =
|
|
3633
|
+
return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3636
3634
|
}
|
|
3637
|
-
),
|
|
3635
|
+
), ti = we(
|
|
3638
3636
|
(e) => {
|
|
3639
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3637
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3640
3638
|
if (r == null)
|
|
3641
3639
|
throw new Error(
|
|
3642
3640
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3643
3641
|
);
|
|
3644
|
-
return n ? i =
|
|
3642
|
+
return n ? i = pe("time", n) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3645
3643
|
}
|
|
3646
|
-
),
|
|
3644
|
+
), ri = (e = {}) => {
|
|
3647
3645
|
var t = e, {
|
|
3648
3646
|
locale: r = J()
|
|
3649
|
-
} = t, n =
|
|
3647
|
+
} = t, n = ae(t, [
|
|
3650
3648
|
"locale"
|
|
3651
3649
|
]);
|
|
3652
|
-
return
|
|
3653
|
-
},
|
|
3650
|
+
return Kn(qe({ locale: r }, n));
|
|
3651
|
+
}, ni = (e = {}) => {
|
|
3654
3652
|
var t = e, {
|
|
3655
3653
|
locale: r = J()
|
|
3656
|
-
} = t, n =
|
|
3654
|
+
} = t, n = ae(t, [
|
|
3657
3655
|
"locale"
|
|
3658
3656
|
]);
|
|
3659
|
-
return
|
|
3660
|
-
},
|
|
3657
|
+
return ei(qe({ locale: r }, n));
|
|
3658
|
+
}, ii = (e = {}) => {
|
|
3661
3659
|
var t = e, {
|
|
3662
3660
|
locale: r = J()
|
|
3663
|
-
} = t, n =
|
|
3661
|
+
} = t, n = ae(t, [
|
|
3664
3662
|
"locale"
|
|
3665
3663
|
]);
|
|
3666
|
-
return
|
|
3667
|
-
},
|
|
3664
|
+
return ti(qe({ locale: r }, n));
|
|
3665
|
+
}, oi = we(
|
|
3668
3666
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3669
|
-
(e, t = J()) => new
|
|
3670
|
-
ignoreTag:
|
|
3667
|
+
(e, t = J()) => new Nn(e, t, ne().formats, {
|
|
3668
|
+
ignoreTag: ne().ignoreTag
|
|
3671
3669
|
})
|
|
3672
|
-
),
|
|
3670
|
+
), si = (e, t = {}) => {
|
|
3673
3671
|
var r, n, i, o;
|
|
3674
3672
|
let s = t;
|
|
3675
3673
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -3682,39 +3680,39 @@ const me = (e, t) => {
|
|
|
3682
3680
|
throw new Error(
|
|
3683
3681
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3684
3682
|
);
|
|
3685
|
-
let h =
|
|
3683
|
+
let h = jt(e, l);
|
|
3686
3684
|
if (!h)
|
|
3687
|
-
h = (o = (i = (n = (r =
|
|
3685
|
+
h = (o = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3688
3686
|
else if (typeof h != "string")
|
|
3689
3687
|
return console.warn(
|
|
3690
3688
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3691
3689
|
), h;
|
|
3692
3690
|
if (!a)
|
|
3693
3691
|
return h;
|
|
3694
|
-
let
|
|
3692
|
+
let c = h;
|
|
3695
3693
|
try {
|
|
3696
|
-
|
|
3694
|
+
c = oi(h, l).format(a);
|
|
3697
3695
|
} catch (d) {
|
|
3698
3696
|
d instanceof Error && console.warn(
|
|
3699
3697
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3700
3698
|
d.message
|
|
3701
3699
|
);
|
|
3702
3700
|
}
|
|
3703
|
-
return
|
|
3704
|
-
},
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
function
|
|
3701
|
+
return c;
|
|
3702
|
+
}, ai = (e, t) => ii(t).format(e), ui = (e, t) => ni(t).format(e), li = (e, t) => ri(t).format(e), hi = (e, t = J()) => jt(e, t), ci = oe([W, se], () => si);
|
|
3703
|
+
oe([W], () => ai);
|
|
3704
|
+
oe([W], () => ui);
|
|
3705
|
+
oe([W], () => li);
|
|
3706
|
+
oe([W, se], () => hi);
|
|
3707
|
+
function fi({ withLocale: e, translations: t }) {
|
|
3710
3708
|
W.subscribe((r) => {
|
|
3711
|
-
r == null && (
|
|
3709
|
+
r == null && (se.set(t), W.set(e));
|
|
3712
3710
|
});
|
|
3713
3711
|
}
|
|
3714
|
-
function
|
|
3715
|
-
|
|
3712
|
+
function gt(e, t) {
|
|
3713
|
+
Xt(e, t);
|
|
3716
3714
|
}
|
|
3717
|
-
const
|
|
3715
|
+
const vt = {
|
|
3718
3716
|
en: {
|
|
3719
3717
|
title: "Please enter the verification code you received on your number",
|
|
3720
3718
|
errorTitle: "Your code was invalid, you can resend the code and try again",
|
|
@@ -3821,17 +3819,40 @@ const xt = {
|
|
|
3821
3819
|
loginSMSHint: "A new verification code has been sent to your phone number"
|
|
3822
3820
|
}
|
|
3823
3821
|
};
|
|
3824
|
-
function
|
|
3825
|
-
|
|
3822
|
+
function di(e, t) {
|
|
3823
|
+
if (e) {
|
|
3824
|
+
const r = document.createElement("style");
|
|
3825
|
+
r.innerHTML = t, e.appendChild(r);
|
|
3826
|
+
}
|
|
3827
|
+
}
|
|
3828
|
+
function mi(e, t) {
|
|
3829
|
+
const r = new URL(t);
|
|
3830
|
+
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
3831
|
+
const i = document.createElement("style");
|
|
3832
|
+
i.innerHTML = n, e && e.appendChild(i);
|
|
3833
|
+
}).catch((n) => {
|
|
3834
|
+
console.error("There was an error while trying to load client styling from URL", n);
|
|
3835
|
+
});
|
|
3836
|
+
}
|
|
3837
|
+
function pi(e, t, r) {
|
|
3838
|
+
if (window.emMessageBus) {
|
|
3839
|
+
const n = document.createElement("style");
|
|
3840
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
3841
|
+
n.innerHTML = i, e && e.appendChild(n);
|
|
3842
|
+
});
|
|
3843
|
+
}
|
|
3826
3844
|
}
|
|
3827
3845
|
function bi(e) {
|
|
3846
|
+
nr(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
|
|
3847
|
+
}
|
|
3848
|
+
function gi(e) {
|
|
3828
3849
|
let t = (
|
|
3829
3850
|
/*$_*/
|
|
3830
3851
|
e[5]("errorTitle") + ""
|
|
3831
3852
|
), r;
|
|
3832
3853
|
return {
|
|
3833
3854
|
c() {
|
|
3834
|
-
r =
|
|
3855
|
+
r = M(t);
|
|
3835
3856
|
},
|
|
3836
3857
|
m(n, i) {
|
|
3837
3858
|
Z(n, r, i);
|
|
@@ -3846,14 +3867,14 @@ function bi(e) {
|
|
|
3846
3867
|
}
|
|
3847
3868
|
};
|
|
3848
3869
|
}
|
|
3849
|
-
function
|
|
3870
|
+
function vi(e) {
|
|
3850
3871
|
let t = (
|
|
3851
3872
|
/*$_*/
|
|
3852
3873
|
e[5]("title") + ""
|
|
3853
3874
|
), r;
|
|
3854
3875
|
return {
|
|
3855
3876
|
c() {
|
|
3856
|
-
r =
|
|
3877
|
+
r = M(t);
|
|
3857
3878
|
},
|
|
3858
3879
|
m(n, i) {
|
|
3859
3880
|
Z(n, r, i);
|
|
@@ -3868,14 +3889,14 @@ function gi(e) {
|
|
|
3868
3889
|
}
|
|
3869
3890
|
};
|
|
3870
3891
|
}
|
|
3871
|
-
function
|
|
3892
|
+
function yt(e) {
|
|
3872
3893
|
let t, r = (
|
|
3873
3894
|
/*$_*/
|
|
3874
3895
|
e[5]("smsCodeError") + ""
|
|
3875
3896
|
), n;
|
|
3876
3897
|
return {
|
|
3877
3898
|
c() {
|
|
3878
|
-
t =
|
|
3899
|
+
t = O("p"), n = M(r), A(t, "class", "InvalidInput");
|
|
3879
3900
|
},
|
|
3880
3901
|
m(i, o) {
|
|
3881
3902
|
Z(i, t, o), E(t, n);
|
|
@@ -3890,14 +3911,14 @@ function _t(e) {
|
|
|
3890
3911
|
}
|
|
3891
3912
|
};
|
|
3892
3913
|
}
|
|
3893
|
-
function
|
|
3914
|
+
function Et(e) {
|
|
3894
3915
|
let t, r = (
|
|
3895
3916
|
/*$_*/
|
|
3896
3917
|
e[5]("resendMessage") + ""
|
|
3897
3918
|
), n;
|
|
3898
3919
|
return {
|
|
3899
3920
|
c() {
|
|
3900
|
-
t =
|
|
3921
|
+
t = O("p"), n = M(r), A(t, "class", "SmsVerificationResendMessage");
|
|
3901
3922
|
},
|
|
3902
3923
|
m(i, o) {
|
|
3903
3924
|
Z(i, t, o), E(t, n);
|
|
@@ -3912,17 +3933,17 @@ function St(e) {
|
|
|
3912
3933
|
}
|
|
3913
3934
|
};
|
|
3914
3935
|
}
|
|
3915
|
-
function
|
|
3936
|
+
function xt(e) {
|
|
3916
3937
|
let t, r, n = (
|
|
3917
3938
|
/*secondsLeft*/
|
|
3918
3939
|
e[4] < 10 ? "0" : ""
|
|
3919
3940
|
), i, o, s;
|
|
3920
3941
|
return {
|
|
3921
3942
|
c() {
|
|
3922
|
-
t =
|
|
3943
|
+
t = O("span"), r = M("(0:"), i = M(n), o = M(
|
|
3923
3944
|
/*secondsLeft*/
|
|
3924
3945
|
e[4]
|
|
3925
|
-
), s =
|
|
3946
|
+
), s = M(")"), A(t, "class", "SmsVerificationResendTimer");
|
|
3926
3947
|
},
|
|
3927
3948
|
m(a, l) {
|
|
3928
3949
|
Z(a, t, l), E(t, r), E(t, i), E(t, o), E(t, s);
|
|
@@ -3942,125 +3963,125 @@ function Tt(e) {
|
|
|
3942
3963
|
}
|
|
3943
3964
|
};
|
|
3944
3965
|
}
|
|
3945
|
-
function
|
|
3966
|
+
function yi(e) {
|
|
3946
3967
|
let t, r, n, i, o, s = (
|
|
3947
3968
|
/*$_*/
|
|
3948
3969
|
e[5]("code") + ""
|
|
3949
|
-
), a, l, u, h,
|
|
3970
|
+
), a, l, u, h, c, d, g, y, _, T, H = (
|
|
3950
3971
|
/*$_*/
|
|
3951
3972
|
e[5]("activate") + ""
|
|
3952
|
-
),
|
|
3973
|
+
), L, B, S, N = (
|
|
3953
3974
|
/*$_*/
|
|
3954
3975
|
e[5]("resend") + ""
|
|
3955
|
-
),
|
|
3956
|
-
function
|
|
3976
|
+
), F, V, ue, le;
|
|
3977
|
+
function he(p, C) {
|
|
3957
3978
|
return (
|
|
3958
3979
|
/*isSmsValid*/
|
|
3959
|
-
|
|
3980
|
+
p[2] ? vi : gi
|
|
3960
3981
|
);
|
|
3961
3982
|
}
|
|
3962
|
-
let X =
|
|
3963
|
-
e[2] &&
|
|
3983
|
+
let X = he(e), R = X(e), w = !/*isSmsValid*/
|
|
3984
|
+
e[2] && yt(e), P = (
|
|
3964
3985
|
/*timer*/
|
|
3965
|
-
e[3] &&
|
|
3966
|
-
),
|
|
3986
|
+
e[3] && Et(e)
|
|
3987
|
+
), f = (
|
|
3967
3988
|
/*timer*/
|
|
3968
|
-
e[3] &&
|
|
3989
|
+
e[3] && xt(e)
|
|
3969
3990
|
);
|
|
3970
3991
|
return {
|
|
3971
3992
|
c() {
|
|
3972
|
-
t =
|
|
3973
|
-
e[2] ? "" : "InvalidField")), A(
|
|
3993
|
+
t = O("div"), r = O("h3"), R.c(), n = z(), i = O("div"), o = O("label"), a = M(s), l = M(":"), u = O("span"), u.textContent = "*", h = z(), c = O("input"), d = z(), w && w.c(), y = z(), P && P.c(), _ = z(), T = O("button"), L = M(H), B = z(), S = O("button"), F = M(N), V = z(), f && f.c(), A(r, "class", "Title"), A(u, "class", "FormRequired"), A(o, "for", "SmsCode"), A(c, "type", "text"), A(c, "id", "SmsCode"), A(c, "inputmode", "numeric"), A(c, "pattern", "[0-9]*"), A(c, "maxlength", "6"), A(i, "class", g = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
3994
|
+
e[2] ? "" : "InvalidField")), A(T, "class", "Button SmsVerificationValidate"), A(S, "class", "Button SmsVerificationResend"), S.disabled = /*timer*/
|
|
3974
3995
|
e[3], A(t, "class", "Container SmsVerificationContainer");
|
|
3975
3996
|
},
|
|
3976
|
-
m(
|
|
3977
|
-
Z(
|
|
3978
|
-
|
|
3997
|
+
m(p, C) {
|
|
3998
|
+
Z(p, t, C), E(t, r), R.m(r, null), E(t, n), E(t, i), E(i, o), E(o, a), E(o, l), E(o, u), E(i, h), E(i, c), rt(
|
|
3999
|
+
c,
|
|
3979
4000
|
/*smsCode*/
|
|
3980
4001
|
e[1]
|
|
3981
|
-
), E(i, d),
|
|
3982
|
-
|
|
3983
|
-
|
|
4002
|
+
), E(i, d), w && w.m(i, null), E(t, y), P && P.m(t, null), E(t, _), E(t, T), E(T, L), E(t, B), E(t, S), E(S, F), E(S, V), f && f.m(S, null), e[20](t), ue || (le = [
|
|
4003
|
+
ge(
|
|
4004
|
+
c,
|
|
3984
4005
|
"input",
|
|
3985
4006
|
/*input_input_handler*/
|
|
3986
|
-
e[
|
|
4007
|
+
e[18]
|
|
3987
4008
|
),
|
|
3988
|
-
|
|
3989
|
-
|
|
4009
|
+
ge(
|
|
4010
|
+
c,
|
|
3990
4011
|
"keydown",
|
|
3991
4012
|
/*keydown_handler*/
|
|
3992
|
-
e[
|
|
4013
|
+
e[19]
|
|
3993
4014
|
),
|
|
3994
|
-
|
|
3995
|
-
|
|
4015
|
+
ge(
|
|
4016
|
+
T,
|
|
3996
4017
|
"click",
|
|
3997
4018
|
/*activateUser*/
|
|
3998
4019
|
e[6]
|
|
3999
4020
|
),
|
|
4000
|
-
|
|
4001
|
-
|
|
4021
|
+
ge(
|
|
4022
|
+
S,
|
|
4002
4023
|
"click",
|
|
4003
4024
|
/*resendCode*/
|
|
4004
4025
|
e[7]
|
|
4005
4026
|
)
|
|
4006
|
-
],
|
|
4027
|
+
], ue = !0);
|
|
4007
4028
|
},
|
|
4008
|
-
p(
|
|
4009
|
-
X === (X =
|
|
4029
|
+
p(p, [C]) {
|
|
4030
|
+
X === (X = he(p)) && R ? R.p(p, C) : (R.d(1), R = X(p), R && (R.c(), R.m(r, null))), C & /*$_*/
|
|
4010
4031
|
32 && s !== (s = /*$_*/
|
|
4011
|
-
|
|
4012
|
-
2 &&
|
|
4013
|
-
|
|
4014
|
-
|
|
4032
|
+
p[5]("code") + "") && G(a, s), C & /*smsCode*/
|
|
4033
|
+
2 && c.value !== /*smsCode*/
|
|
4034
|
+
p[1] && rt(
|
|
4035
|
+
c,
|
|
4015
4036
|
/*smsCode*/
|
|
4016
|
-
|
|
4037
|
+
p[1]
|
|
4017
4038
|
), /*isSmsValid*/
|
|
4018
|
-
|
|
4019
|
-
4 &&
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
32 &&
|
|
4023
|
-
|
|
4024
|
-
32 &&
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
8 && (
|
|
4028
|
-
|
|
4039
|
+
p[2] ? w && (w.d(1), w = null) : w ? w.p(p, C) : (w = yt(p), w.c(), w.m(i, null)), C & /*isSmsValid*/
|
|
4040
|
+
4 && g !== (g = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
4041
|
+
p[2] ? "" : "InvalidField")) && A(i, "class", g), /*timer*/
|
|
4042
|
+
p[3] ? P ? P.p(p, C) : (P = Et(p), P.c(), P.m(t, _)) : P && (P.d(1), P = null), C & /*$_*/
|
|
4043
|
+
32 && H !== (H = /*$_*/
|
|
4044
|
+
p[5]("activate") + "") && G(L, H), C & /*$_*/
|
|
4045
|
+
32 && N !== (N = /*$_*/
|
|
4046
|
+
p[5]("resend") + "") && G(F, N), /*timer*/
|
|
4047
|
+
p[3] ? f ? f.p(p, C) : (f = xt(p), f.c(), f.m(S, null)) : f && (f.d(1), f = null), C & /*timer*/
|
|
4048
|
+
8 && (S.disabled = /*timer*/
|
|
4049
|
+
p[3]);
|
|
4029
4050
|
},
|
|
4030
|
-
i:
|
|
4031
|
-
o:
|
|
4032
|
-
d(
|
|
4033
|
-
|
|
4051
|
+
i: D,
|
|
4052
|
+
o: D,
|
|
4053
|
+
d(p) {
|
|
4054
|
+
p && j(t), R.d(), w && w.d(), P && P.d(), f && f.d(), e[20](null), ue = !1, ie(le);
|
|
4034
4055
|
}
|
|
4035
4056
|
};
|
|
4036
4057
|
}
|
|
4037
|
-
function
|
|
4058
|
+
function Ei(e, t, r) {
|
|
4038
4059
|
let n;
|
|
4039
|
-
|
|
4040
|
-
let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: s = "" } = t, { smstemplate: a = "Please use this code {0} to activate your accout" } = t, { number: l = "" } = t, {
|
|
4041
|
-
const
|
|
4042
|
-
|
|
4043
|
-
const
|
|
4044
|
-
fetch(
|
|
4045
|
-
Object.keys(
|
|
4046
|
-
|
|
4060
|
+
rr(e, ci, (f) => r(5, n = f));
|
|
4061
|
+
let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: s = "" } = t, { smstemplate: a = "Please use this code {0} to activate your accout" } = t, { number: l = "" } = t, { mbsource: u } = t, { clientstyling: h = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: d = "" } = t, g, y = !0, _ = !1, T, H, L = +localStorage.getItem("smsTimer") || 0, B = Date.now() / 1e3 - L, S = 60 - Math.floor(B);
|
|
4062
|
+
const N = { numeric: /^[0-9]{0,6}$/ };
|
|
4063
|
+
fi({ withLocale: "en", translations: {} });
|
|
4064
|
+
const F = () => {
|
|
4065
|
+
fetch(d).then((p) => p.json()).then((p) => {
|
|
4066
|
+
Object.keys(p).forEach((C) => {
|
|
4067
|
+
gt(C, p[C]);
|
|
4047
4068
|
});
|
|
4048
|
-
}).catch((
|
|
4049
|
-
console.log(
|
|
4069
|
+
}).catch((p) => {
|
|
4070
|
+
console.log(p);
|
|
4050
4071
|
});
|
|
4051
4072
|
};
|
|
4052
|
-
Object.keys(
|
|
4053
|
-
|
|
4073
|
+
Object.keys(vt).forEach((f) => {
|
|
4074
|
+
gt(f, vt[f]);
|
|
4054
4075
|
});
|
|
4055
|
-
const
|
|
4076
|
+
const V = () => be(this, null, function* () {
|
|
4056
4077
|
try {
|
|
4057
|
-
if ((yield fetch(`${i}/v1/player/${s}/activateSMS?tokenId=${o}&validationCode=${
|
|
4078
|
+
if ((yield fetch(`${i}/v1/player/${s}/activateSMS?tokenId=${o}&validationCode=${g}`, {
|
|
4058
4079
|
headers: {
|
|
4059
4080
|
"Content-Type": "application/json",
|
|
4060
4081
|
accept: "application/json"
|
|
4061
4082
|
}
|
|
4062
4083
|
})).ok)
|
|
4063
|
-
r(2,
|
|
4084
|
+
r(2, y = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
|
|
4064
4085
|
else
|
|
4065
4086
|
throw window.postMessage(
|
|
4066
4087
|
{
|
|
@@ -4071,14 +4092,14 @@ function yi(e, t, r) {
|
|
|
4071
4092
|
}
|
|
4072
4093
|
},
|
|
4073
4094
|
window.location.href
|
|
4074
|
-
), r(2,
|
|
4075
|
-
} catch (
|
|
4076
|
-
console.log(
|
|
4095
|
+
), r(2, y = !1), new Error("Could not activate user");
|
|
4096
|
+
} catch (f) {
|
|
4097
|
+
console.log(f);
|
|
4077
4098
|
}
|
|
4078
|
-
}),
|
|
4079
|
-
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))),
|
|
4099
|
+
}), ue = () => be(this, null, function* () {
|
|
4100
|
+
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), he();
|
|
4080
4101
|
try {
|
|
4081
|
-
const
|
|
4102
|
+
const f = yield fetch(`${i}/v1/player/sms/token`, {
|
|
4082
4103
|
method: "POST",
|
|
4083
4104
|
headers: {
|
|
4084
4105
|
"Content-Type": "application/json",
|
|
@@ -4089,77 +4110,62 @@ function yi(e, t, r) {
|
|
|
4089
4110
|
messageTemplate: a,
|
|
4090
4111
|
destination: l
|
|
4091
4112
|
})
|
|
4092
|
-
}),
|
|
4093
|
-
if (
|
|
4094
|
-
r(9, o =
|
|
4113
|
+
}), p = yield f.json();
|
|
4114
|
+
if (f.ok)
|
|
4115
|
+
r(9, o = p.id), _ = !1, le();
|
|
4095
4116
|
else
|
|
4096
|
-
throw
|
|
4097
|
-
} catch (
|
|
4098
|
-
|
|
4117
|
+
throw _ = !0, new Error("Failed to fetch");
|
|
4118
|
+
} catch (f) {
|
|
4119
|
+
_ = !0, console.error(f);
|
|
4099
4120
|
}
|
|
4100
|
-
}),
|
|
4101
|
-
|
|
4102
|
-
},
|
|
4103
|
-
|
|
4104
|
-
c.innerHTML = u, S.appendChild(c);
|
|
4105
|
-
}, be = () => {
|
|
4106
|
-
let c = new URL(h), y = document.createElement("style");
|
|
4107
|
-
fetch(c.href).then((q) => q.text()).then((q) => {
|
|
4108
|
-
y.innerHTML = q, setTimeout(
|
|
4109
|
-
() => {
|
|
4110
|
-
S.appendChild(y);
|
|
4111
|
-
},
|
|
4112
|
-
1
|
|
4113
|
-
), setTimeout(
|
|
4114
|
-
() => {
|
|
4115
|
-
},
|
|
4116
|
-
500
|
|
4117
|
-
);
|
|
4118
|
-
});
|
|
4119
|
-
}, X = () => {
|
|
4120
|
-
N < 60 && r(3, _ = setInterval(
|
|
4121
|
+
}), le = () => {
|
|
4122
|
+
S > 0 ? r(4, S--, S) : (clearInterval(T), r(3, T = !1), r(4, S = 60));
|
|
4123
|
+
}, he = () => {
|
|
4124
|
+
B < 60 && r(3, T = setInterval(
|
|
4121
4125
|
() => {
|
|
4122
|
-
|
|
4126
|
+
le();
|
|
4123
4127
|
},
|
|
4124
4128
|
1e3
|
|
4125
4129
|
));
|
|
4126
|
-
},
|
|
4127
|
-
!
|
|
4130
|
+
}, X = (f) => {
|
|
4131
|
+
!N.numeric.test(f.key) && f.keyCode !== 8 && f.keyCode !== 9 && f.keyCode !== 46 && f.preventDefault();
|
|
4128
4132
|
};
|
|
4129
|
-
|
|
4133
|
+
lr(() => {
|
|
4130
4134
|
if (!s || !l) {
|
|
4131
|
-
let
|
|
4132
|
-
r(10, s =
|
|
4135
|
+
let f = JSON.parse(localStorage.getItem("playerData"));
|
|
4136
|
+
r(10, s = f.playerid), r(11, l = f.number);
|
|
4133
4137
|
}
|
|
4134
|
-
|
|
4138
|
+
return he(), () => {
|
|
4139
|
+
};
|
|
4135
4140
|
});
|
|
4136
|
-
function
|
|
4137
|
-
|
|
4141
|
+
function R() {
|
|
4142
|
+
g = this.value, r(1, g);
|
|
4138
4143
|
}
|
|
4139
|
-
const w = (
|
|
4140
|
-
function P(
|
|
4141
|
-
|
|
4142
|
-
|
|
4144
|
+
const w = (f) => X(f);
|
|
4145
|
+
function P(f) {
|
|
4146
|
+
$e[f ? "unshift" : "push"](() => {
|
|
4147
|
+
H = f, r(0, H);
|
|
4143
4148
|
});
|
|
4144
4149
|
}
|
|
4145
|
-
return e.$$set = (
|
|
4146
|
-
"endpoint" in
|
|
4150
|
+
return e.$$set = (f) => {
|
|
4151
|
+
"endpoint" in f && r(12, i = f.endpoint), "tokenid" in f && r(9, o = f.tokenid), "playerid" in f && r(10, s = f.playerid), "smstemplate" in f && r(13, a = f.smstemplate), "number" in f && r(11, l = f.number), "mbsource" in f && r(14, u = f.mbsource), "clientstyling" in f && r(15, h = f.clientstyling), "clientstylingurl" in f && r(16, c = f.clientstylingurl), "translationurl" in f && r(17, d = f.translationurl);
|
|
4147
4152
|
}, e.$$.update = () => {
|
|
4148
4153
|
e.$$.dirty & /*tokenid, playerid, endpoint*/
|
|
4149
4154
|
5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4155
|
+
32769 && h && H && di(H, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4156
|
+
65537 && c && H && mi(H, c), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4157
|
+
16385 && u && H && pi(H, `${u}.Style`), e.$$.dirty & /*translationurl*/
|
|
4158
|
+
131072 && d && F();
|
|
4153
4159
|
}, [
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
_,
|
|
4160
|
+
H,
|
|
4161
|
+
g,
|
|
4162
|
+
y,
|
|
4158
4163
|
T,
|
|
4164
|
+
S,
|
|
4159
4165
|
n,
|
|
4160
|
-
D,
|
|
4161
4166
|
V,
|
|
4162
|
-
|
|
4167
|
+
ue,
|
|
4168
|
+
X,
|
|
4163
4169
|
o,
|
|
4164
4170
|
s,
|
|
4165
4171
|
l,
|
|
@@ -4167,83 +4173,91 @@ function yi(e, t, r) {
|
|
|
4167
4173
|
a,
|
|
4168
4174
|
u,
|
|
4169
4175
|
h,
|
|
4170
|
-
|
|
4171
|
-
|
|
4176
|
+
c,
|
|
4177
|
+
d,
|
|
4178
|
+
R,
|
|
4172
4179
|
w,
|
|
4173
4180
|
P
|
|
4174
4181
|
];
|
|
4175
4182
|
}
|
|
4176
|
-
class
|
|
4183
|
+
class xi extends xr {
|
|
4177
4184
|
constructor(t) {
|
|
4178
|
-
super(),
|
|
4185
|
+
super(), yr(
|
|
4179
4186
|
this,
|
|
4180
4187
|
t,
|
|
4188
|
+
Ei,
|
|
4181
4189
|
yi,
|
|
4182
|
-
|
|
4183
|
-
At,
|
|
4190
|
+
St,
|
|
4184
4191
|
{
|
|
4185
4192
|
endpoint: 12,
|
|
4186
4193
|
tokenid: 9,
|
|
4187
4194
|
playerid: 10,
|
|
4188
4195
|
smstemplate: 13,
|
|
4189
4196
|
number: 11,
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4197
|
+
mbsource: 14,
|
|
4198
|
+
clientstyling: 15,
|
|
4199
|
+
clientstylingurl: 16,
|
|
4200
|
+
translationurl: 17
|
|
4193
4201
|
},
|
|
4194
|
-
|
|
4202
|
+
bi
|
|
4195
4203
|
);
|
|
4196
4204
|
}
|
|
4197
4205
|
get endpoint() {
|
|
4198
4206
|
return this.$$.ctx[12];
|
|
4199
4207
|
}
|
|
4200
4208
|
set endpoint(t) {
|
|
4201
|
-
this.$$set({ endpoint: t }),
|
|
4209
|
+
this.$$set({ endpoint: t }), U();
|
|
4202
4210
|
}
|
|
4203
4211
|
get tokenid() {
|
|
4204
4212
|
return this.$$.ctx[9];
|
|
4205
4213
|
}
|
|
4206
4214
|
set tokenid(t) {
|
|
4207
|
-
this.$$set({ tokenid: t }),
|
|
4215
|
+
this.$$set({ tokenid: t }), U();
|
|
4208
4216
|
}
|
|
4209
4217
|
get playerid() {
|
|
4210
4218
|
return this.$$.ctx[10];
|
|
4211
4219
|
}
|
|
4212
4220
|
set playerid(t) {
|
|
4213
|
-
this.$$set({ playerid: t }),
|
|
4221
|
+
this.$$set({ playerid: t }), U();
|
|
4214
4222
|
}
|
|
4215
4223
|
get smstemplate() {
|
|
4216
4224
|
return this.$$.ctx[13];
|
|
4217
4225
|
}
|
|
4218
4226
|
set smstemplate(t) {
|
|
4219
|
-
this.$$set({ smstemplate: t }),
|
|
4227
|
+
this.$$set({ smstemplate: t }), U();
|
|
4220
4228
|
}
|
|
4221
4229
|
get number() {
|
|
4222
4230
|
return this.$$.ctx[11];
|
|
4223
4231
|
}
|
|
4224
4232
|
set number(t) {
|
|
4225
|
-
this.$$set({ number: t }),
|
|
4233
|
+
this.$$set({ number: t }), U();
|
|
4226
4234
|
}
|
|
4227
|
-
get
|
|
4235
|
+
get mbsource() {
|
|
4228
4236
|
return this.$$.ctx[14];
|
|
4229
4237
|
}
|
|
4238
|
+
set mbsource(t) {
|
|
4239
|
+
this.$$set({ mbsource: t }), U();
|
|
4240
|
+
}
|
|
4241
|
+
get clientstyling() {
|
|
4242
|
+
return this.$$.ctx[15];
|
|
4243
|
+
}
|
|
4230
4244
|
set clientstyling(t) {
|
|
4231
|
-
this.$$set({ clientstyling: t }),
|
|
4245
|
+
this.$$set({ clientstyling: t }), U();
|
|
4232
4246
|
}
|
|
4233
4247
|
get clientstylingurl() {
|
|
4234
|
-
return this.$$.ctx[
|
|
4248
|
+
return this.$$.ctx[16];
|
|
4235
4249
|
}
|
|
4236
4250
|
set clientstylingurl(t) {
|
|
4237
|
-
this.$$set({ clientstylingurl: t }),
|
|
4251
|
+
this.$$set({ clientstylingurl: t }), U();
|
|
4238
4252
|
}
|
|
4239
4253
|
get translationurl() {
|
|
4240
|
-
return this.$$.ctx[
|
|
4254
|
+
return this.$$.ctx[17];
|
|
4241
4255
|
}
|
|
4242
4256
|
set translationurl(t) {
|
|
4243
|
-
this.$$set({ translationurl: t }),
|
|
4257
|
+
this.$$set({ translationurl: t }), U();
|
|
4244
4258
|
}
|
|
4245
4259
|
}
|
|
4246
|
-
|
|
4260
|
+
Er(xi, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4247
4261
|
export {
|
|
4248
|
-
|
|
4262
|
+
xi as default
|
|
4249
4263
|
};
|