@everymatrix/general-player-sms-verification-form 1.54.12 → 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-3zGohhSt.js → GeneralPlayerSmsVerificationForm-BEOcOn2l.js} +806 -790
- package/components/{GeneralPlayerSmsVerificationForm-CNEhQ6hn.js → GeneralPlayerSmsVerificationForm-CXRbl8PW.js} +792 -776
- 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-DyJ0tzSZ.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 or(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 ur(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
|
|
133
|
-
if (!
|
|
134
|
-
return
|
|
132
|
+
function ur() {
|
|
133
|
+
if (!de) throw new Error("Function called outside component initialization");
|
|
134
|
+
return de;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
|
|
136
|
+
function lr(e) {
|
|
137
|
+
ur().$$.on_mount.push(e);
|
|
138
138
|
}
|
|
139
|
-
const
|
|
140
|
-
let
|
|
141
|
-
const
|
|
142
|
-
let
|
|
143
|
-
function
|
|
144
|
-
|
|
139
|
+
const Y = [], $e = [];
|
|
140
|
+
let K = [];
|
|
141
|
+
const nt = [], hr = /* @__PURE__ */ Promise.resolve();
|
|
142
|
+
let Ue = !1;
|
|
143
|
+
function cr() {
|
|
144
|
+
Ue || (Ue = !0, hr.then(U));
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
|
|
146
|
+
function De(e) {
|
|
147
|
+
K.push(e);
|
|
148
148
|
}
|
|
149
|
-
const
|
|
150
|
-
let
|
|
151
|
-
function
|
|
152
|
-
if (
|
|
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 Er(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" && (At = 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" && (At = 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" && (At = 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" && (At = 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" && (At = 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 xr(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 xr(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 _r {
|
|
|
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 _r {
|
|
|
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 _r {
|
|
|
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,42 +640,42 @@ function Gr(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
|
|
669
|
+
function jr(e, t) {
|
|
670
|
+
var r = e.length === 1 ? kr : Bt;
|
|
671
|
+
return wt(e, this, r, t.cache.create(), t.serializer);
|
|
672
672
|
}
|
|
673
|
-
function
|
|
674
|
-
return
|
|
673
|
+
function Vr(e, t) {
|
|
674
|
+
return wt(e, this, Bt, t.cache.create(), t.serializer);
|
|
675
675
|
}
|
|
676
|
-
var
|
|
676
|
+
var Xr = function() {
|
|
677
677
|
return JSON.stringify(arguments);
|
|
678
|
-
},
|
|
678
|
+
}, zr = (
|
|
679
679
|
/** @class */
|
|
680
680
|
function() {
|
|
681
681
|
function e() {
|
|
@@ -687,12 +687,12 @@ var zr = function() {
|
|
|
687
687
|
this.cache[t] = r;
|
|
688
688
|
}, e;
|
|
689
689
|
}()
|
|
690
|
-
),
|
|
690
|
+
), Wr = {
|
|
691
691
|
create: function() {
|
|
692
|
-
return new
|
|
692
|
+
return new zr();
|
|
693
693
|
}
|
|
694
|
-
},
|
|
695
|
-
variadic:
|
|
694
|
+
}, Oe = {
|
|
695
|
+
variadic: Vr
|
|
696
696
|
}, m;
|
|
697
697
|
(function(e) {
|
|
698
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";
|
|
@@ -701,47 +701,47 @@ var x;
|
|
|
701
701
|
(function(e) {
|
|
702
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";
|
|
703
703
|
})(x || (x = {}));
|
|
704
|
-
var
|
|
704
|
+
var te;
|
|
705
705
|
(function(e) {
|
|
706
706
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
707
|
-
})(
|
|
708
|
-
function
|
|
707
|
+
})(te || (te = {}));
|
|
708
|
+
function ot(e) {
|
|
709
709
|
return e.type === x.literal;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Zr(e) {
|
|
712
712
|
return e.type === x.argument;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function Pt(e) {
|
|
715
715
|
return e.type === x.number;
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function Ct(e) {
|
|
718
718
|
return e.type === x.date;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function It(e) {
|
|
721
721
|
return e.type === x.time;
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function Nt(e) {
|
|
724
724
|
return e.type === x.select;
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function Ot(e) {
|
|
727
727
|
return e.type === x.plural;
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function Jr(e) {
|
|
730
730
|
return e.type === x.pound;
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function Mt(e) {
|
|
733
733
|
return e.type === x.tag;
|
|
734
734
|
}
|
|
735
|
-
function
|
|
736
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
735
|
+
function Lt(e) {
|
|
736
|
+
return !!(e && typeof e == "object" && e.type === te.number);
|
|
737
737
|
}
|
|
738
|
-
function
|
|
739
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
738
|
+
function Ge(e) {
|
|
739
|
+
return !!(e && typeof e == "object" && e.type === te.dateTime);
|
|
740
740
|
}
|
|
741
|
-
var
|
|
742
|
-
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) {
|
|
743
743
|
var t = {};
|
|
744
|
-
return e.replace(
|
|
744
|
+
return e.replace(Qr, function(r) {
|
|
745
745
|
var n = r.length;
|
|
746
746
|
switch (r[0]) {
|
|
747
747
|
case "G":
|
|
@@ -830,36 +830,36 @@ function Yr(e) {
|
|
|
830
830
|
return "";
|
|
831
831
|
}), t;
|
|
832
832
|
}
|
|
833
|
-
var
|
|
834
|
-
function
|
|
833
|
+
var Yr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
834
|
+
function Kr(e) {
|
|
835
835
|
if (e.length === 0)
|
|
836
836
|
throw new Error("Number skeleton cannot be empty");
|
|
837
|
-
for (var t = e.split(
|
|
837
|
+
for (var t = e.split(Yr).filter(function(d) {
|
|
838
838
|
return d.length > 0;
|
|
839
839
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
840
840
|
var o = i[n], s = o.split("/");
|
|
841
841
|
if (s.length === 0)
|
|
842
842
|
throw new Error("Invalid number skeleton");
|
|
843
843
|
for (var a = s[0], l = s.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
844
|
-
var
|
|
845
|
-
if (
|
|
844
|
+
var c = h[u];
|
|
845
|
+
if (c.length === 0)
|
|
846
846
|
throw new Error("Invalid number skeleton");
|
|
847
847
|
}
|
|
848
848
|
r.push({ stem: a, options: l });
|
|
849
849
|
}
|
|
850
850
|
return r;
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function en(e) {
|
|
853
853
|
return e.replace(/^(.*?)-/, "");
|
|
854
854
|
}
|
|
855
|
-
var
|
|
856
|
-
function
|
|
855
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, tn = /(\*)(0+)|(#+)(0+)|(0+)/g, Ut = /^(0+)$/;
|
|
856
|
+
function at(e) {
|
|
857
857
|
var t = {};
|
|
858
|
-
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) {
|
|
859
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)), "";
|
|
860
860
|
}), t;
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function Dt(e) {
|
|
863
863
|
switch (e) {
|
|
864
864
|
case "sign-auto":
|
|
865
865
|
return {
|
|
@@ -899,7 +899,7 @@ function Ft(e) {
|
|
|
899
899
|
};
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function rn(e) {
|
|
903
903
|
var t;
|
|
904
904
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
905
905
|
notation: "engineering"
|
|
@@ -907,17 +907,17 @@ function nn(e) {
|
|
|
907
907
|
notation: "scientific"
|
|
908
908
|
}, e = e.slice(1)), t) {
|
|
909
909
|
var r = e.slice(0, 2);
|
|
910
|
-
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))
|
|
911
911
|
throw new Error("Malformed concise eng/scientific notation");
|
|
912
912
|
t.minimumIntegerDigits = e.length;
|
|
913
913
|
}
|
|
914
914
|
return t;
|
|
915
915
|
}
|
|
916
|
-
function
|
|
917
|
-
var t = {}, r =
|
|
916
|
+
function ut(e) {
|
|
917
|
+
var t = {}, r = Dt(e);
|
|
918
918
|
return r || t;
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function nn(e) {
|
|
921
921
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
922
922
|
var i = n[r];
|
|
923
923
|
switch (i.stem) {
|
|
@@ -941,7 +941,7 @@ function on(e) {
|
|
|
941
941
|
continue;
|
|
942
942
|
case "measure-unit":
|
|
943
943
|
case "unit":
|
|
944
|
-
t.style = "unit", t.unit =
|
|
944
|
+
t.style = "unit", t.unit = en(i.options[0]);
|
|
945
945
|
continue;
|
|
946
946
|
case "compact-short":
|
|
947
947
|
case "K":
|
|
@@ -952,13 +952,13 @@ function on(e) {
|
|
|
952
952
|
t.notation = "compact", t.compactDisplay = "long";
|
|
953
953
|
continue;
|
|
954
954
|
case "scientific":
|
|
955
|
-
t =
|
|
956
|
-
return
|
|
955
|
+
t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
956
|
+
return v(v({}, l), ut(u));
|
|
957
957
|
}, {}));
|
|
958
958
|
continue;
|
|
959
959
|
case "engineering":
|
|
960
|
-
t =
|
|
961
|
-
return
|
|
960
|
+
t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
961
|
+
return v(v({}, l), ut(u));
|
|
962
962
|
}, {}));
|
|
963
963
|
continue;
|
|
964
964
|
case "notation-simple":
|
|
@@ -1003,45 +1003,45 @@ function on(e) {
|
|
|
1003
1003
|
case "integer-width":
|
|
1004
1004
|
if (i.options.length > 1)
|
|
1005
1005
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1006
|
-
i.options[0].replace(
|
|
1006
|
+
i.options[0].replace(tn, function(l, u, h, c, d, g) {
|
|
1007
1007
|
if (u)
|
|
1008
1008
|
t.minimumIntegerDigits = h.length;
|
|
1009
1009
|
else {
|
|
1010
|
-
if (
|
|
1010
|
+
if (c && d)
|
|
1011
1011
|
throw new Error("We currently do not support maximum integer digits");
|
|
1012
|
-
if (
|
|
1012
|
+
if (g)
|
|
1013
1013
|
throw new Error("We currently do not support exact integer digits");
|
|
1014
1014
|
}
|
|
1015
1015
|
return "";
|
|
1016
1016
|
});
|
|
1017
1017
|
continue;
|
|
1018
1018
|
}
|
|
1019
|
-
if (
|
|
1019
|
+
if (Ut.test(i.stem)) {
|
|
1020
1020
|
t.minimumIntegerDigits = i.stem.length;
|
|
1021
1021
|
continue;
|
|
1022
1022
|
}
|
|
1023
|
-
if (
|
|
1023
|
+
if (st.test(i.stem)) {
|
|
1024
1024
|
if (i.options.length > 1)
|
|
1025
1025
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1026
|
-
i.stem.replace(
|
|
1027
|
-
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), "";
|
|
1028
1028
|
});
|
|
1029
1029
|
var o = i.options[0];
|
|
1030
|
-
o === "w" ? t =
|
|
1030
|
+
o === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = v(v({}, t), at(o)));
|
|
1031
1031
|
continue;
|
|
1032
1032
|
}
|
|
1033
|
-
if (
|
|
1034
|
-
t =
|
|
1033
|
+
if ($t.test(i.stem)) {
|
|
1034
|
+
t = v(v({}, t), at(i.stem));
|
|
1035
1035
|
continue;
|
|
1036
1036
|
}
|
|
1037
|
-
var s =
|
|
1038
|
-
s && (t =
|
|
1039
|
-
var a =
|
|
1040
|
-
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));
|
|
1041
1041
|
}
|
|
1042
1042
|
return t;
|
|
1043
1043
|
}
|
|
1044
|
-
var
|
|
1044
|
+
var ve = {
|
|
1045
1045
|
"001": [
|
|
1046
1046
|
"H",
|
|
1047
1047
|
"h"
|
|
@@ -2456,13 +2456,13 @@ var ye = {
|
|
|
2456
2456
|
"h"
|
|
2457
2457
|
]
|
|
2458
2458
|
};
|
|
2459
|
-
function
|
|
2459
|
+
function on(e, t) {
|
|
2460
2460
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2461
2461
|
var i = e.charAt(n);
|
|
2462
2462
|
if (i === "j") {
|
|
2463
2463
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2464
2464
|
o++, n++;
|
|
2465
|
-
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);
|
|
2466
2466
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2467
2467
|
r += l;
|
|
2468
2468
|
for (; s-- > 0; )
|
|
@@ -2471,7 +2471,7 @@ function sn(e, t) {
|
|
|
2471
2471
|
}
|
|
2472
2472
|
return r;
|
|
2473
2473
|
}
|
|
2474
|
-
function
|
|
2474
|
+
function sn(e) {
|
|
2475
2475
|
var t = e.hourCycle;
|
|
2476
2476
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2477
2477
|
e.hourCycles && // @ts-ignore
|
|
@@ -2490,23 +2490,23 @@ function an(e) {
|
|
|
2490
2490
|
}
|
|
2491
2491
|
var r = e.language, n;
|
|
2492
2492
|
r !== "root" && (n = e.maximize().region);
|
|
2493
|
-
var i =
|
|
2493
|
+
var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
|
|
2494
2494
|
return i[0];
|
|
2495
2495
|
}
|
|
2496
|
-
var
|
|
2497
|
-
function
|
|
2496
|
+
var Me, an = new RegExp("^".concat(Rt.source, "*")), un = new RegExp("".concat(Rt.source, "*$"));
|
|
2497
|
+
function b(e, t) {
|
|
2498
2498
|
return { start: e, end: t };
|
|
2499
2499
|
}
|
|
2500
|
-
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) {
|
|
2501
2501
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2502
|
-
},
|
|
2502
|
+
}, ke = !0;
|
|
2503
2503
|
try {
|
|
2504
|
-
var
|
|
2505
|
-
|
|
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";
|
|
2506
2506
|
} catch (e) {
|
|
2507
|
-
|
|
2507
|
+
ke = !1;
|
|
2508
2508
|
}
|
|
2509
|
-
var
|
|
2509
|
+
var lt = ln ? (
|
|
2510
2510
|
// Native
|
|
2511
2511
|
function(t, r, n) {
|
|
2512
2512
|
return t.startsWith(r, n);
|
|
@@ -2516,7 +2516,7 @@ var ht = hn ? (
|
|
|
2516
2516
|
function(t, r, n) {
|
|
2517
2517
|
return t.slice(n, n + r.length) === r;
|
|
2518
2518
|
}
|
|
2519
|
-
),
|
|
2519
|
+
), je = hn ? String.fromCodePoint : (
|
|
2520
2520
|
// IE11
|
|
2521
2521
|
function() {
|
|
2522
2522
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2528,9 +2528,9 @@ var ht = hn ? (
|
|
|
2528
2528
|
}
|
|
2529
2529
|
return n;
|
|
2530
2530
|
}
|
|
2531
|
-
),
|
|
2531
|
+
), ht = (
|
|
2532
2532
|
// native
|
|
2533
|
-
|
|
2533
|
+
cn ? Object.fromEntries : (
|
|
2534
2534
|
// Ponyfill
|
|
2535
2535
|
function(t) {
|
|
2536
2536
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2540,7 +2540,7 @@ var ht = hn ? (
|
|
|
2540
2540
|
return r;
|
|
2541
2541
|
}
|
|
2542
2542
|
)
|
|
2543
|
-
),
|
|
2543
|
+
), Ft = fn ? (
|
|
2544
2544
|
// Native
|
|
2545
2545
|
function(t, r) {
|
|
2546
2546
|
return t.codePointAt(r);
|
|
@@ -2554,7 +2554,7 @@ var ht = hn ? (
|
|
|
2554
2554
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2555
2555
|
}
|
|
2556
2556
|
}
|
|
2557
|
-
),
|
|
2557
|
+
), vn = dn ? (
|
|
2558
2558
|
// Native
|
|
2559
2559
|
function(t) {
|
|
2560
2560
|
return t.trimStart();
|
|
@@ -2562,9 +2562,9 @@ var ht = hn ? (
|
|
|
2562
2562
|
) : (
|
|
2563
2563
|
// Ponyfill
|
|
2564
2564
|
function(t) {
|
|
2565
|
-
return t.replace(
|
|
2565
|
+
return t.replace(an, "");
|
|
2566
2566
|
}
|
|
2567
|
-
),
|
|
2567
|
+
), yn = mn ? (
|
|
2568
2568
|
// Native
|
|
2569
2569
|
function(t) {
|
|
2570
2570
|
return t.trimEnd();
|
|
@@ -2572,32 +2572,32 @@ var ht = hn ? (
|
|
|
2572
2572
|
) : (
|
|
2573
2573
|
// Ponyfill
|
|
2574
2574
|
function(t) {
|
|
2575
|
-
return t.replace(
|
|
2575
|
+
return t.replace(un, "");
|
|
2576
2576
|
}
|
|
2577
2577
|
);
|
|
2578
|
-
function
|
|
2578
|
+
function Gt(e, t) {
|
|
2579
2579
|
return new RegExp(e, t);
|
|
2580
2580
|
}
|
|
2581
|
-
var
|
|
2582
|
-
if (
|
|
2583
|
-
var
|
|
2584
|
-
|
|
2581
|
+
var Ve;
|
|
2582
|
+
if (ke) {
|
|
2583
|
+
var ct = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2584
|
+
Ve = function(t, r) {
|
|
2585
2585
|
var n;
|
|
2586
|
-
|
|
2587
|
-
var i =
|
|
2586
|
+
ct.lastIndex = r;
|
|
2587
|
+
var i = ct.exec(t);
|
|
2588
2588
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2589
2589
|
};
|
|
2590
2590
|
} else
|
|
2591
|
-
|
|
2591
|
+
Ve = function(t, r) {
|
|
2592
2592
|
for (var n = []; ; ) {
|
|
2593
|
-
var i =
|
|
2594
|
-
if (i === void 0 ||
|
|
2593
|
+
var i = Ft(t, r);
|
|
2594
|
+
if (i === void 0 || kt(i) || Sn(i))
|
|
2595
2595
|
break;
|
|
2596
2596
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2597
2597
|
}
|
|
2598
|
-
return
|
|
2598
|
+
return je.apply(void 0, n);
|
|
2599
2599
|
};
|
|
2600
|
-
var
|
|
2600
|
+
var En = (
|
|
2601
2601
|
/** @class */
|
|
2602
2602
|
function() {
|
|
2603
2603
|
function e(t, r) {
|
|
@@ -2622,13 +2622,13 @@ var xn = (
|
|
|
2622
2622
|
var a = this.clonePosition();
|
|
2623
2623
|
this.bump(), i.push({
|
|
2624
2624
|
type: x.pound,
|
|
2625
|
-
location:
|
|
2625
|
+
location: b(a, this.clonePosition())
|
|
2626
2626
|
});
|
|
2627
2627
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2628
2628
|
if (n)
|
|
2629
2629
|
break;
|
|
2630
|
-
return this.error(m.UNMATCHED_CLOSING_TAG,
|
|
2631
|
-
} 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)) {
|
|
2632
2632
|
var s = this.parseTag(t, r);
|
|
2633
2633
|
if (s.err)
|
|
2634
2634
|
return s;
|
|
@@ -2651,7 +2651,7 @@ var xn = (
|
|
|
2651
2651
|
val: {
|
|
2652
2652
|
type: x.literal,
|
|
2653
2653
|
value: "<".concat(i, "/>"),
|
|
2654
|
-
location:
|
|
2654
|
+
location: b(n, this.clonePosition())
|
|
2655
2655
|
},
|
|
2656
2656
|
err: null
|
|
2657
2657
|
};
|
|
@@ -2661,25 +2661,25 @@ var xn = (
|
|
|
2661
2661
|
return o;
|
|
2662
2662
|
var s = o.val, a = this.clonePosition();
|
|
2663
2663
|
if (this.bumpIf("</")) {
|
|
2664
|
-
if (this.isEOF() || !
|
|
2665
|
-
return this.error(m.INVALID_TAG,
|
|
2664
|
+
if (this.isEOF() || !Xe(this.char()))
|
|
2665
|
+
return this.error(m.INVALID_TAG, b(a, this.clonePosition()));
|
|
2666
2666
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2667
|
-
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(">") ? {
|
|
2668
2668
|
val: {
|
|
2669
2669
|
type: x.tag,
|
|
2670
2670
|
value: i,
|
|
2671
2671
|
children: s,
|
|
2672
|
-
location:
|
|
2672
|
+
location: b(n, this.clonePosition())
|
|
2673
2673
|
},
|
|
2674
2674
|
err: null
|
|
2675
|
-
} : this.error(m.INVALID_TAG,
|
|
2675
|
+
} : this.error(m.INVALID_TAG, b(a, this.clonePosition())));
|
|
2676
2676
|
} else
|
|
2677
|
-
return this.error(m.UNCLOSED_TAG,
|
|
2677
|
+
return this.error(m.UNCLOSED_TAG, b(n, this.clonePosition()));
|
|
2678
2678
|
} else
|
|
2679
|
-
return this.error(m.INVALID_TAG,
|
|
2679
|
+
return this.error(m.INVALID_TAG, b(n, this.clonePosition()));
|
|
2680
2680
|
}, e.prototype.parseTagName = function() {
|
|
2681
2681
|
var t = this.offset();
|
|
2682
|
-
for (this.bump(); !this.isEOF() &&
|
|
2682
|
+
for (this.bump(); !this.isEOF() && _n(this.char()); )
|
|
2683
2683
|
this.bump();
|
|
2684
2684
|
return this.message.slice(t, this.offset());
|
|
2685
2685
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2701,14 +2701,14 @@ var xn = (
|
|
|
2701
2701
|
}
|
|
2702
2702
|
break;
|
|
2703
2703
|
}
|
|
2704
|
-
var l =
|
|
2704
|
+
var l = b(n, this.clonePosition());
|
|
2705
2705
|
return {
|
|
2706
2706
|
val: { type: x.literal, value: i, location: l },
|
|
2707
2707
|
err: null
|
|
2708
2708
|
};
|
|
2709
2709
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2710
2710
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2711
|
-
!
|
|
2711
|
+
!xn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2712
2712
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2713
2713
|
if (this.isEOF() || this.char() !== 39)
|
|
2714
2714
|
return null;
|
|
@@ -2742,23 +2742,23 @@ var xn = (
|
|
|
2742
2742
|
r.push(n);
|
|
2743
2743
|
this.bump();
|
|
2744
2744
|
}
|
|
2745
|
-
return
|
|
2745
|
+
return je.apply(void 0, r);
|
|
2746
2746
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2747
2747
|
if (this.isEOF())
|
|
2748
2748
|
return null;
|
|
2749
2749
|
var n = this.char();
|
|
2750
|
-
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));
|
|
2751
2751
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2752
2752
|
var n = this.clonePosition();
|
|
2753
2753
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2754
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2754
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2755
2755
|
if (this.char() === 125)
|
|
2756
|
-
return this.bump(), this.error(m.EMPTY_ARGUMENT,
|
|
2756
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, b(n, this.clonePosition()));
|
|
2757
2757
|
var i = this.parseIdentifierIfPossible().value;
|
|
2758
2758
|
if (!i)
|
|
2759
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2759
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2760
2760
|
if (this.bumpSpace(), this.isEOF())
|
|
2761
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2761
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, b(n, this.clonePosition()));
|
|
2762
2762
|
switch (this.char()) {
|
|
2763
2763
|
case 125:
|
|
2764
2764
|
return this.bump(), {
|
|
@@ -2766,25 +2766,25 @@ var xn = (
|
|
|
2766
2766
|
type: x.argument,
|
|
2767
2767
|
// value does not include the opening and closing braces.
|
|
2768
2768
|
value: i,
|
|
2769
|
-
location:
|
|
2769
|
+
location: b(n, this.clonePosition())
|
|
2770
2770
|
},
|
|
2771
2771
|
err: null
|
|
2772
2772
|
};
|
|
2773
2773
|
case 44:
|
|
2774
|
-
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);
|
|
2775
2775
|
default:
|
|
2776
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2776
|
+
return this.error(m.MALFORMED_ARGUMENT, b(n, this.clonePosition()));
|
|
2777
2777
|
}
|
|
2778
2778
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2779
|
-
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;
|
|
2780
2780
|
this.bumpTo(i);
|
|
2781
|
-
var o = this.clonePosition(), s =
|
|
2781
|
+
var o = this.clonePosition(), s = b(t, o);
|
|
2782
2782
|
return { value: n, location: s };
|
|
2783
2783
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2784
2784
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2785
2785
|
switch (a) {
|
|
2786
2786
|
case "":
|
|
2787
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE,
|
|
2787
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, b(s, l));
|
|
2788
2788
|
case "number":
|
|
2789
2789
|
case "date":
|
|
2790
2790
|
case "time": {
|
|
@@ -2792,40 +2792,40 @@ var xn = (
|
|
|
2792
2792
|
var u = null;
|
|
2793
2793
|
if (this.bumpIf(",")) {
|
|
2794
2794
|
this.bumpSpace();
|
|
2795
|
-
var h = this.clonePosition(),
|
|
2796
|
-
if (
|
|
2797
|
-
return
|
|
2798
|
-
var d =
|
|
2795
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2796
|
+
if (c.err)
|
|
2797
|
+
return c;
|
|
2798
|
+
var d = yn(c.val);
|
|
2799
2799
|
if (d.length === 0)
|
|
2800
|
-
return this.error(m.EXPECT_ARGUMENT_STYLE,
|
|
2801
|
-
var
|
|
2802
|
-
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 };
|
|
2803
2803
|
}
|
|
2804
|
-
var
|
|
2805
|
-
if (
|
|
2806
|
-
return
|
|
2807
|
-
var _ =
|
|
2808
|
-
if (u &&
|
|
2809
|
-
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));
|
|
2810
2810
|
if (a === "number") {
|
|
2811
|
-
var
|
|
2812
|
-
return
|
|
2813
|
-
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 },
|
|
2814
2814
|
err: null
|
|
2815
2815
|
};
|
|
2816
2816
|
} else {
|
|
2817
|
-
if (
|
|
2817
|
+
if (T.length === 0)
|
|
2818
2818
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
|
|
2819
|
-
var
|
|
2820
|
-
this.locale && (
|
|
2819
|
+
var H = T;
|
|
2820
|
+
this.locale && (H = on(T, this.locale));
|
|
2821
2821
|
var d = {
|
|
2822
|
-
type:
|
|
2823
|
-
pattern:
|
|
2822
|
+
type: te.dateTime,
|
|
2823
|
+
pattern: H,
|
|
2824
2824
|
location: u.styleLocation,
|
|
2825
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2826
|
-
},
|
|
2825
|
+
parsedOptions: this.shouldParseSkeletons ? qr(H) : {}
|
|
2826
|
+
}, L = a === "date" ? x.date : x.time;
|
|
2827
2827
|
return {
|
|
2828
|
-
val: { type:
|
|
2828
|
+
val: { type: L, value: n, location: _, style: d },
|
|
2829
2829
|
err: null
|
|
2830
2830
|
};
|
|
2831
2831
|
}
|
|
@@ -2843,32 +2843,32 @@ var xn = (
|
|
|
2843
2843
|
case "plural":
|
|
2844
2844
|
case "selectordinal":
|
|
2845
2845
|
case "select": {
|
|
2846
|
-
var
|
|
2846
|
+
var B = this.clonePosition();
|
|
2847
2847
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2848
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2848
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, b(B, v({}, B)));
|
|
2849
2849
|
this.bumpSpace();
|
|
2850
|
-
var
|
|
2851
|
-
if (a !== "select" &&
|
|
2850
|
+
var S = this.parseIdentifierIfPossible(), N = 0;
|
|
2851
|
+
if (a !== "select" && S.value === "offset") {
|
|
2852
2852
|
if (!this.bumpIf(":"))
|
|
2853
|
-
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2853
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b(this.clonePosition(), this.clonePosition()));
|
|
2854
2854
|
this.bumpSpace();
|
|
2855
|
-
var
|
|
2856
|
-
if (
|
|
2857
|
-
return
|
|
2858
|
-
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;
|
|
2859
2859
|
}
|
|
2860
|
-
var
|
|
2861
|
-
if (
|
|
2862
|
-
return
|
|
2863
|
-
var
|
|
2864
|
-
if (
|
|
2865
|
-
return
|
|
2866
|
-
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());
|
|
2867
2867
|
return a === "select" ? {
|
|
2868
2868
|
val: {
|
|
2869
2869
|
type: x.select,
|
|
2870
2870
|
value: n,
|
|
2871
|
-
options:
|
|
2871
|
+
options: ht(F.val),
|
|
2872
2872
|
location: V
|
|
2873
2873
|
},
|
|
2874
2874
|
err: null
|
|
@@ -2876,8 +2876,8 @@ var xn = (
|
|
|
2876
2876
|
val: {
|
|
2877
2877
|
type: x.plural,
|
|
2878
2878
|
value: n,
|
|
2879
|
-
options:
|
|
2880
|
-
offset:
|
|
2879
|
+
options: ht(F.val),
|
|
2880
|
+
offset: N,
|
|
2881
2881
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2882
2882
|
location: V
|
|
2883
2883
|
},
|
|
@@ -2885,10 +2885,10 @@ var xn = (
|
|
|
2885
2885
|
};
|
|
2886
2886
|
}
|
|
2887
2887
|
default:
|
|
2888
|
-
return this.error(m.INVALID_ARGUMENT_TYPE,
|
|
2888
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, b(s, l));
|
|
2889
2889
|
}
|
|
2890
2890
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2891
|
-
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 });
|
|
2892
2892
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2893
2893
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2894
2894
|
var n = this.char();
|
|
@@ -2897,7 +2897,7 @@ var xn = (
|
|
|
2897
2897
|
this.bump();
|
|
2898
2898
|
var i = this.clonePosition();
|
|
2899
2899
|
if (!this.bumpUntil("'"))
|
|
2900
|
-
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2900
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, b(i, this.clonePosition()));
|
|
2901
2901
|
this.bump();
|
|
2902
2902
|
break;
|
|
2903
2903
|
}
|
|
@@ -2927,52 +2927,52 @@ var xn = (
|
|
|
2927
2927
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2928
2928
|
var n = [];
|
|
2929
2929
|
try {
|
|
2930
|
-
n =
|
|
2930
|
+
n = Kr(t);
|
|
2931
2931
|
} catch (i) {
|
|
2932
2932
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2933
2933
|
}
|
|
2934
2934
|
return {
|
|
2935
2935
|
val: {
|
|
2936
|
-
type:
|
|
2936
|
+
type: te.number,
|
|
2937
2937
|
tokens: n,
|
|
2938
2938
|
location: r,
|
|
2939
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2939
|
+
parsedOptions: this.shouldParseSkeletons ? nn(n) : {}
|
|
2940
2940
|
},
|
|
2941
2941
|
err: null
|
|
2942
2942
|
};
|
|
2943
2943
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2944
2944
|
for (var o, s = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
2945
2945
|
if (u.length === 0) {
|
|
2946
|
-
var
|
|
2946
|
+
var c = this.clonePosition();
|
|
2947
2947
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2948
2948
|
var d = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2949
2949
|
if (d.err)
|
|
2950
2950
|
return d;
|
|
2951
|
-
h =
|
|
2951
|
+
h = b(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
2952
2952
|
} else
|
|
2953
2953
|
break;
|
|
2954
2954
|
}
|
|
2955
2955
|
if (l.has(u))
|
|
2956
2956
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2957
2957
|
u === "other" && (s = !0), this.bumpSpace();
|
|
2958
|
-
var
|
|
2958
|
+
var g = this.clonePosition();
|
|
2959
2959
|
if (!this.bumpIf("{"))
|
|
2960
|
-
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2961
|
-
var
|
|
2962
|
-
if (
|
|
2963
|
-
return
|
|
2964
|
-
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);
|
|
2965
2965
|
if (_.err)
|
|
2966
2966
|
return _;
|
|
2967
2967
|
a.push([
|
|
2968
2968
|
u,
|
|
2969
2969
|
{
|
|
2970
|
-
value:
|
|
2971
|
-
location:
|
|
2970
|
+
value: y.val,
|
|
2971
|
+
location: b(g, this.clonePosition())
|
|
2972
2972
|
}
|
|
2973
2973
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
2974
2974
|
}
|
|
2975
|
-
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 };
|
|
2976
2976
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2977
2977
|
var n = 1, i = this.clonePosition();
|
|
2978
2978
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -2983,8 +2983,8 @@ var xn = (
|
|
|
2983
2983
|
else
|
|
2984
2984
|
break;
|
|
2985
2985
|
}
|
|
2986
|
-
var l =
|
|
2987
|
-
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);
|
|
2988
2988
|
}, e.prototype.offset = function() {
|
|
2989
2989
|
return this.position.offset;
|
|
2990
2990
|
}, e.prototype.isEOF = function() {
|
|
@@ -2999,7 +2999,7 @@ var xn = (
|
|
|
2999
2999
|
var t = this.position.offset;
|
|
3000
3000
|
if (t >= this.message.length)
|
|
3001
3001
|
throw Error("out of bound");
|
|
3002
|
-
var r =
|
|
3002
|
+
var r = Ft(this.message, t);
|
|
3003
3003
|
if (r === void 0)
|
|
3004
3004
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3005
3005
|
return r;
|
|
@@ -3018,7 +3018,7 @@ var xn = (
|
|
|
3018
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);
|
|
3019
3019
|
}
|
|
3020
3020
|
}, e.prototype.bumpIf = function(t) {
|
|
3021
|
-
if (
|
|
3021
|
+
if (lt(this.message, t, this.offset())) {
|
|
3022
3022
|
for (var r = 0; r < t.length; r++)
|
|
3023
3023
|
this.bump();
|
|
3024
3024
|
return !0;
|
|
@@ -3040,7 +3040,7 @@ var xn = (
|
|
|
3040
3040
|
break;
|
|
3041
3041
|
}
|
|
3042
3042
|
}, e.prototype.bumpSpace = function() {
|
|
3043
|
-
for (; !this.isEOF() &&
|
|
3043
|
+
for (; !this.isEOF() && kt(this.char()); )
|
|
3044
3044
|
this.bump();
|
|
3045
3045
|
}, e.prototype.peek = function() {
|
|
3046
3046
|
if (this.isEOF())
|
|
@@ -3050,46 +3050,46 @@ var xn = (
|
|
|
3050
3050
|
}, e;
|
|
3051
3051
|
}()
|
|
3052
3052
|
);
|
|
3053
|
-
function
|
|
3053
|
+
function Xe(e) {
|
|
3054
3054
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3055
3055
|
}
|
|
3056
|
-
function
|
|
3057
|
-
return
|
|
3056
|
+
function xn(e) {
|
|
3057
|
+
return Xe(e) || e === 47;
|
|
3058
3058
|
}
|
|
3059
|
-
function
|
|
3059
|
+
function _n(e) {
|
|
3060
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;
|
|
3061
3061
|
}
|
|
3062
|
-
function
|
|
3062
|
+
function kt(e) {
|
|
3063
3063
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3064
3064
|
}
|
|
3065
|
-
function
|
|
3065
|
+
function Sn(e) {
|
|
3066
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;
|
|
3067
3067
|
}
|
|
3068
|
-
function
|
|
3068
|
+
function ze(e) {
|
|
3069
3069
|
e.forEach(function(t) {
|
|
3070
|
-
if (delete t.location,
|
|
3070
|
+
if (delete t.location, Nt(t) || Ot(t))
|
|
3071
3071
|
for (var r in t.options)
|
|
3072
|
-
delete t.options[r].location,
|
|
3073
|
-
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);
|
|
3074
3074
|
});
|
|
3075
3075
|
}
|
|
3076
|
-
function
|
|
3077
|
-
t === void 0 && (t = {}), t =
|
|
3078
|
-
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();
|
|
3079
3079
|
if (r.err) {
|
|
3080
3080
|
var n = SyntaxError(m[r.err.kind]);
|
|
3081
3081
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3082
3082
|
}
|
|
3083
|
-
return t != null && t.captureLocation ||
|
|
3083
|
+
return t != null && t.captureLocation || ze(r.val), r.val;
|
|
3084
3084
|
}
|
|
3085
|
-
var
|
|
3085
|
+
var re;
|
|
3086
3086
|
(function(e) {
|
|
3087
3087
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3088
|
-
})(
|
|
3089
|
-
var
|
|
3088
|
+
})(re || (re = {}));
|
|
3089
|
+
var Ae = (
|
|
3090
3090
|
/** @class */
|
|
3091
3091
|
function(e) {
|
|
3092
|
-
|
|
3092
|
+
He(t, e);
|
|
3093
3093
|
function t(r, n, i) {
|
|
3094
3094
|
var o = e.call(this, r) || this;
|
|
3095
3095
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3098,155 +3098,155 @@ var Be = (
|
|
|
3098
3098
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3099
3099
|
}, t;
|
|
3100
3100
|
}(Error)
|
|
3101
|
-
),
|
|
3101
|
+
), ft = (
|
|
3102
3102
|
/** @class */
|
|
3103
3103
|
function(e) {
|
|
3104
|
-
|
|
3104
|
+
He(t, e);
|
|
3105
3105
|
function t(r, n, i, o) {
|
|
3106
|
-
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;
|
|
3107
3107
|
}
|
|
3108
3108
|
return t;
|
|
3109
|
-
}(
|
|
3110
|
-
),
|
|
3109
|
+
}(Ae)
|
|
3110
|
+
), Hn = (
|
|
3111
3111
|
/** @class */
|
|
3112
3112
|
function(e) {
|
|
3113
|
-
|
|
3113
|
+
He(t, e);
|
|
3114
3114
|
function t(r, n, i) {
|
|
3115
|
-
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;
|
|
3116
3116
|
}
|
|
3117
3117
|
return t;
|
|
3118
|
-
}(
|
|
3119
|
-
),
|
|
3118
|
+
}(Ae)
|
|
3119
|
+
), An = (
|
|
3120
3120
|
/** @class */
|
|
3121
3121
|
function(e) {
|
|
3122
|
-
|
|
3122
|
+
He(t, e);
|
|
3123
3123
|
function t(r, n) {
|
|
3124
|
-
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;
|
|
3125
3125
|
}
|
|
3126
3126
|
return t;
|
|
3127
|
-
}(
|
|
3128
|
-
),
|
|
3127
|
+
}(Ae)
|
|
3128
|
+
), I;
|
|
3129
3129
|
(function(e) {
|
|
3130
3130
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3131
|
-
})(
|
|
3132
|
-
function
|
|
3131
|
+
})(I || (I = {}));
|
|
3132
|
+
function Bn(e) {
|
|
3133
3133
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3134
3134
|
var n = t[t.length - 1];
|
|
3135
|
-
return !n || n.type !==
|
|
3135
|
+
return !n || n.type !== I.literal || r.type !== I.literal ? t.push(r) : n.value += r.value, t;
|
|
3136
3136
|
}, []);
|
|
3137
3137
|
}
|
|
3138
|
-
function
|
|
3138
|
+
function wn(e) {
|
|
3139
3139
|
return typeof e == "function";
|
|
3140
3140
|
}
|
|
3141
|
-
function
|
|
3142
|
-
if (e.length === 1 &&
|
|
3141
|
+
function Ee(e, t, r, n, i, o, s) {
|
|
3142
|
+
if (e.length === 1 && ot(e[0]))
|
|
3143
3143
|
return [
|
|
3144
3144
|
{
|
|
3145
|
-
type:
|
|
3145
|
+
type: I.literal,
|
|
3146
3146
|
value: e[0].value
|
|
3147
3147
|
}
|
|
3148
3148
|
];
|
|
3149
3149
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3150
3150
|
var h = u[l];
|
|
3151
|
-
if (
|
|
3151
|
+
if (ot(h)) {
|
|
3152
3152
|
a.push({
|
|
3153
|
-
type:
|
|
3153
|
+
type: I.literal,
|
|
3154
3154
|
value: h.value
|
|
3155
3155
|
});
|
|
3156
3156
|
continue;
|
|
3157
3157
|
}
|
|
3158
|
-
if (
|
|
3158
|
+
if (Jr(h)) {
|
|
3159
3159
|
typeof o == "number" && a.push({
|
|
3160
|
-
type:
|
|
3160
|
+
type: I.literal,
|
|
3161
3161
|
value: r.getNumberFormat(t).format(o)
|
|
3162
3162
|
});
|
|
3163
3163
|
continue;
|
|
3164
3164
|
}
|
|
3165
|
-
var
|
|
3166
|
-
if (!(i &&
|
|
3167
|
-
throw new
|
|
3168
|
-
var d = i[
|
|
3169
|
-
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)) {
|
|
3170
3170
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
|
|
3171
|
-
type: typeof d == "string" ?
|
|
3171
|
+
type: typeof d == "string" ? I.literal : I.object,
|
|
3172
3172
|
value: d
|
|
3173
3173
|
});
|
|
3174
3174
|
continue;
|
|
3175
3175
|
}
|
|
3176
|
-
if (
|
|
3177
|
-
var
|
|
3176
|
+
if (Ct(h)) {
|
|
3177
|
+
var g = typeof h.style == "string" ? n.date[h.style] : Ge(h.style) ? h.style.parsedOptions : void 0;
|
|
3178
3178
|
a.push({
|
|
3179
|
-
type:
|
|
3180
|
-
value: r.getDateTimeFormat(t,
|
|
3179
|
+
type: I.literal,
|
|
3180
|
+
value: r.getDateTimeFormat(t, g).format(d)
|
|
3181
3181
|
});
|
|
3182
3182
|
continue;
|
|
3183
3183
|
}
|
|
3184
|
-
if (
|
|
3185
|
-
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;
|
|
3186
3186
|
a.push({
|
|
3187
|
-
type:
|
|
3188
|
-
value: r.getDateTimeFormat(t,
|
|
3187
|
+
type: I.literal,
|
|
3188
|
+
value: r.getDateTimeFormat(t, g).format(d)
|
|
3189
3189
|
});
|
|
3190
3190
|
continue;
|
|
3191
3191
|
}
|
|
3192
|
-
if (
|
|
3193
|
-
var
|
|
3194
|
-
|
|
3195
|
-
type:
|
|
3196
|
-
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)
|
|
3197
3197
|
});
|
|
3198
3198
|
continue;
|
|
3199
3199
|
}
|
|
3200
|
-
if (
|
|
3201
|
-
var
|
|
3202
|
-
if (!
|
|
3203
|
-
throw new
|
|
3204
|
-
var
|
|
3205
|
-
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;
|
|
3206
3206
|
}));
|
|
3207
|
-
Array.isArray(
|
|
3207
|
+
Array.isArray(L) || (L = [L]), a.push.apply(a, L.map(function(N) {
|
|
3208
3208
|
return {
|
|
3209
|
-
type: typeof
|
|
3210
|
-
value:
|
|
3209
|
+
type: typeof N == "string" ? I.literal : I.object,
|
|
3210
|
+
value: N
|
|
3211
3211
|
};
|
|
3212
3212
|
}));
|
|
3213
3213
|
}
|
|
3214
|
-
if (
|
|
3215
|
-
var
|
|
3216
|
-
if (!
|
|
3217
|
-
throw new
|
|
3218
|
-
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));
|
|
3219
3219
|
continue;
|
|
3220
3220
|
}
|
|
3221
|
-
if (
|
|
3222
|
-
var
|
|
3223
|
-
if (!
|
|
3221
|
+
if (Ot(h)) {
|
|
3222
|
+
var B = h.options["=".concat(d)];
|
|
3223
|
+
if (!B) {
|
|
3224
3224
|
if (!Intl.PluralRules)
|
|
3225
|
-
throw new
|
|
3225
|
+
throw new Ae(`Intl.PluralRules is not available in this environment.
|
|
3226
3226
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3227
|
-
`,
|
|
3228
|
-
var
|
|
3229
|
-
|
|
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;
|
|
3230
3230
|
}
|
|
3231
|
-
if (!
|
|
3232
|
-
throw new
|
|
3233
|
-
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)));
|
|
3234
3234
|
continue;
|
|
3235
3235
|
}
|
|
3236
3236
|
}
|
|
3237
|
-
return
|
|
3237
|
+
return Bn(a);
|
|
3238
3238
|
}
|
|
3239
|
-
function
|
|
3240
|
-
return t ?
|
|
3241
|
-
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;
|
|
3242
3242
|
}, {})) : e;
|
|
3243
3243
|
}
|
|
3244
|
-
function
|
|
3244
|
+
function Cn(e, t) {
|
|
3245
3245
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3246
|
-
return r[n] =
|
|
3247
|
-
},
|
|
3246
|
+
return r[n] = Pn(e[n], t[n]), r;
|
|
3247
|
+
}, v({}, e)) : e;
|
|
3248
3248
|
}
|
|
3249
|
-
function
|
|
3249
|
+
function Le(e) {
|
|
3250
3250
|
return {
|
|
3251
3251
|
create: function() {
|
|
3252
3252
|
return {
|
|
@@ -3260,39 +3260,39 @@ function Re(e) {
|
|
|
3260
3260
|
}
|
|
3261
3261
|
};
|
|
3262
3262
|
}
|
|
3263
|
-
function
|
|
3263
|
+
function In(e) {
|
|
3264
3264
|
return e === void 0 && (e = {
|
|
3265
3265
|
number: {},
|
|
3266
3266
|
dateTime: {},
|
|
3267
3267
|
pluralRules: {}
|
|
3268
3268
|
}), {
|
|
3269
|
-
getNumberFormat:
|
|
3269
|
+
getNumberFormat: Ne(function() {
|
|
3270
3270
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3271
3271
|
r[n] = arguments[n];
|
|
3272
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3272
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3273
3273
|
}, {
|
|
3274
|
-
cache:
|
|
3275
|
-
strategy:
|
|
3274
|
+
cache: Le(e.number),
|
|
3275
|
+
strategy: Oe.variadic
|
|
3276
3276
|
}),
|
|
3277
|
-
getDateTimeFormat:
|
|
3277
|
+
getDateTimeFormat: Ne(function() {
|
|
3278
3278
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3279
3279
|
r[n] = arguments[n];
|
|
3280
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3280
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3281
3281
|
}, {
|
|
3282
|
-
cache:
|
|
3283
|
-
strategy:
|
|
3282
|
+
cache: Le(e.dateTime),
|
|
3283
|
+
strategy: Oe.variadic
|
|
3284
3284
|
}),
|
|
3285
|
-
getPluralRules:
|
|
3285
|
+
getPluralRules: Ne(function() {
|
|
3286
3286
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3287
3287
|
r[n] = arguments[n];
|
|
3288
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3288
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3289
3289
|
}, {
|
|
3290
|
-
cache:
|
|
3291
|
-
strategy:
|
|
3290
|
+
cache: Le(e.pluralRules),
|
|
3291
|
+
strategy: Oe.variadic
|
|
3292
3292
|
})
|
|
3293
3293
|
};
|
|
3294
3294
|
}
|
|
3295
|
-
var
|
|
3295
|
+
var Nn = (
|
|
3296
3296
|
/** @class */
|
|
3297
3297
|
function() {
|
|
3298
3298
|
function e(t, r, n, i) {
|
|
@@ -3306,12 +3306,12 @@ var On = (
|
|
|
3306
3306
|
var u = o.formatToParts(l);
|
|
3307
3307
|
if (u.length === 1)
|
|
3308
3308
|
return u[0].value;
|
|
3309
|
-
var h = u.reduce(function(
|
|
3310
|
-
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;
|
|
3311
3311
|
}, []);
|
|
3312
3312
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3313
3313
|
}, this.formatToParts = function(l) {
|
|
3314
|
-
return
|
|
3314
|
+
return Ee(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3315
3315
|
}, this.resolvedOptions = function() {
|
|
3316
3316
|
var l;
|
|
3317
3317
|
return {
|
|
@@ -3324,13 +3324,13 @@ var On = (
|
|
|
3324
3324
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3325
3325
|
var s = i || {};
|
|
3326
3326
|
s.formatters;
|
|
3327
|
-
var a =
|
|
3328
|
-
this.ast = e.__parse(t,
|
|
3327
|
+
var a = Fr(s, ["formatters"]);
|
|
3328
|
+
this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
|
|
3329
3329
|
} else
|
|
3330
3330
|
this.ast = t;
|
|
3331
3331
|
if (!Array.isArray(this.ast))
|
|
3332
3332
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3333
|
-
this.formats =
|
|
3333
|
+
this.formats = Cn(e.formats, n), this.formatters = i && i.formatters || In(this.formatterCache);
|
|
3334
3334
|
}
|
|
3335
3335
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3336
3336
|
get: function() {
|
|
@@ -3343,7 +3343,7 @@ var On = (
|
|
|
3343
3343
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3344
3344
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3345
3345
|
}
|
|
3346
|
-
}, e.__parse =
|
|
3346
|
+
}, e.__parse = Tn, e.formats = {
|
|
3347
3347
|
number: {
|
|
3348
3348
|
integer: {
|
|
3349
3349
|
maximumFractionDigits: 0
|
|
@@ -3404,7 +3404,7 @@ var On = (
|
|
|
3404
3404
|
}, e;
|
|
3405
3405
|
}()
|
|
3406
3406
|
);
|
|
3407
|
-
function
|
|
3407
|
+
function On(e, t) {
|
|
3408
3408
|
if (t == null)
|
|
3409
3409
|
return;
|
|
3410
3410
|
if (t in e)
|
|
@@ -3425,92 +3425,92 @@ function Mn(e, t) {
|
|
|
3425
3425
|
n = void 0;
|
|
3426
3426
|
return n;
|
|
3427
3427
|
}
|
|
3428
|
-
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) => {
|
|
3429
3429
|
if (t == null)
|
|
3430
3430
|
return;
|
|
3431
3431
|
if (t in k && e in k[t])
|
|
3432
3432
|
return k[t][e];
|
|
3433
|
-
const r =
|
|
3433
|
+
const r = Be(t);
|
|
3434
3434
|
for (let n = 0; n < r.length; n++) {
|
|
3435
|
-
const i = r[n], o =
|
|
3435
|
+
const i = r[n], o = Rn(i, e);
|
|
3436
3436
|
if (o)
|
|
3437
|
-
return
|
|
3437
|
+
return Mn(e, t, o);
|
|
3438
3438
|
}
|
|
3439
3439
|
};
|
|
3440
|
-
let
|
|
3441
|
-
const
|
|
3442
|
-
function
|
|
3443
|
-
return
|
|
3440
|
+
let Qe;
|
|
3441
|
+
const se = Te({});
|
|
3442
|
+
function Ln(e) {
|
|
3443
|
+
return Qe[e] || null;
|
|
3444
3444
|
}
|
|
3445
|
-
function
|
|
3446
|
-
return e in
|
|
3445
|
+
function Vt(e) {
|
|
3446
|
+
return e in Qe;
|
|
3447
3447
|
}
|
|
3448
|
-
function
|
|
3449
|
-
if (!
|
|
3448
|
+
function Rn(e, t) {
|
|
3449
|
+
if (!Vt(e))
|
|
3450
3450
|
return null;
|
|
3451
|
-
const r =
|
|
3452
|
-
return
|
|
3451
|
+
const r = Ln(e);
|
|
3452
|
+
return On(r, t);
|
|
3453
3453
|
}
|
|
3454
|
-
function
|
|
3454
|
+
function $n(e) {
|
|
3455
3455
|
if (e == null)
|
|
3456
3456
|
return;
|
|
3457
|
-
const t =
|
|
3457
|
+
const t = Be(e);
|
|
3458
3458
|
for (let r = 0; r < t.length; r++) {
|
|
3459
3459
|
const n = t[r];
|
|
3460
|
-
if (
|
|
3460
|
+
if (Vt(n))
|
|
3461
3461
|
return n;
|
|
3462
3462
|
}
|
|
3463
3463
|
}
|
|
3464
|
-
function
|
|
3465
|
-
delete k[e],
|
|
3464
|
+
function Xt(e, ...t) {
|
|
3465
|
+
delete k[e], se.update((r) => (r[e] = Dr.all([r[e] || {}, ...t]), r));
|
|
3466
3466
|
}
|
|
3467
|
-
|
|
3468
|
-
[
|
|
3467
|
+
oe(
|
|
3468
|
+
[se],
|
|
3469
3469
|
([e]) => Object.keys(e)
|
|
3470
3470
|
);
|
|
3471
|
-
|
|
3472
|
-
const
|
|
3473
|
-
function
|
|
3474
|
-
|
|
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];
|
|
3475
3475
|
}
|
|
3476
|
-
function
|
|
3477
|
-
return
|
|
3476
|
+
function zt(e) {
|
|
3477
|
+
return xe[e];
|
|
3478
3478
|
}
|
|
3479
|
-
function
|
|
3480
|
-
return
|
|
3481
|
-
const r =
|
|
3479
|
+
function Dn(e) {
|
|
3480
|
+
return Be(e).map((t) => {
|
|
3481
|
+
const r = zt(t);
|
|
3482
3482
|
return [t, r ? [...r] : []];
|
|
3483
3483
|
}).filter(([, t]) => t.length > 0);
|
|
3484
3484
|
}
|
|
3485
|
-
function
|
|
3486
|
-
return e == null ? !1 :
|
|
3485
|
+
function We(e) {
|
|
3486
|
+
return e == null ? !1 : Be(e).some(
|
|
3487
3487
|
(t) => {
|
|
3488
3488
|
var r;
|
|
3489
|
-
return (r =
|
|
3489
|
+
return (r = zt(t)) == null ? void 0 : r.size;
|
|
3490
3490
|
}
|
|
3491
3491
|
);
|
|
3492
3492
|
}
|
|
3493
|
-
function
|
|
3493
|
+
function Fn(e, t) {
|
|
3494
3494
|
return Promise.all(
|
|
3495
|
-
t.map((n) => (
|
|
3496
|
-
).then((n) =>
|
|
3497
|
-
}
|
|
3498
|
-
const
|
|
3499
|
-
function
|
|
3500
|
-
if (!
|
|
3501
|
-
return e in
|
|
3502
|
-
const t =
|
|
3503
|
-
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(
|
|
3504
3504
|
t.map(
|
|
3505
|
-
([r, n]) =>
|
|
3505
|
+
([r, n]) => Fn(r, n)
|
|
3506
3506
|
)
|
|
3507
3507
|
).then(() => {
|
|
3508
|
-
if (
|
|
3509
|
-
return
|
|
3510
|
-
delete
|
|
3511
|
-
}),
|
|
3508
|
+
if (We(e))
|
|
3509
|
+
return Wt(e);
|
|
3510
|
+
delete ce[e];
|
|
3511
|
+
}), ce[e];
|
|
3512
3512
|
}
|
|
3513
|
-
const
|
|
3513
|
+
const Gn = {
|
|
3514
3514
|
number: {
|
|
3515
3515
|
scientific: { notation: "scientific" },
|
|
3516
3516
|
engineering: { notation: "engineering" },
|
|
@@ -3539,135 +3539,135 @@ const kn = {
|
|
|
3539
3539
|
timeZoneName: "short"
|
|
3540
3540
|
}
|
|
3541
3541
|
}
|
|
3542
|
-
},
|
|
3542
|
+
}, kn = {
|
|
3543
3543
|
fallbackLocale: null,
|
|
3544
3544
|
loadingDelay: 200,
|
|
3545
|
-
formats:
|
|
3545
|
+
formats: Gn,
|
|
3546
3546
|
warnOnMissingMessages: !0,
|
|
3547
3547
|
handleMissingMessage: void 0,
|
|
3548
3548
|
ignoreTag: !0
|
|
3549
|
-
},
|
|
3550
|
-
function
|
|
3551
|
-
return
|
|
3549
|
+
}, jn = kn;
|
|
3550
|
+
function ne() {
|
|
3551
|
+
return jn;
|
|
3552
3552
|
}
|
|
3553
|
-
const
|
|
3554
|
-
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) => {
|
|
3555
3555
|
for (var r in t || (t = {}))
|
|
3556
|
-
|
|
3557
|
-
if (
|
|
3558
|
-
for (var r of
|
|
3559
|
-
|
|
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]);
|
|
3560
3560
|
return e;
|
|
3561
|
-
},
|
|
3562
|
-
let
|
|
3563
|
-
const
|
|
3564
|
-
function
|
|
3561
|
+
}, Qn = (e, t) => Xn(e, zn(t));
|
|
3562
|
+
let Ze;
|
|
3563
|
+
const _e = Te(null);
|
|
3564
|
+
function pt(e) {
|
|
3565
3565
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3566
3566
|
}
|
|
3567
|
-
function
|
|
3568
|
-
const r =
|
|
3569
|
-
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;
|
|
3570
3570
|
}
|
|
3571
3571
|
function J() {
|
|
3572
|
-
return
|
|
3572
|
+
return Ze != null ? Ze : void 0;
|
|
3573
3573
|
}
|
|
3574
|
-
|
|
3575
|
-
|
|
3574
|
+
_e.subscribe((e) => {
|
|
3575
|
+
Ze = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3576
3576
|
});
|
|
3577
|
-
const
|
|
3578
|
-
if (e &&
|
|
3579
|
-
const { loadingDelay: t } =
|
|
3577
|
+
const qn = (e) => {
|
|
3578
|
+
if (e && $n(e) && We(e)) {
|
|
3579
|
+
const { loadingDelay: t } = ne();
|
|
3580
3580
|
let r;
|
|
3581
3581
|
return typeof window != "undefined" && J() != null && t ? r = window.setTimeout(
|
|
3582
|
-
() =>
|
|
3582
|
+
() => Re.set(!0),
|
|
3583
3583
|
t
|
|
3584
|
-
) :
|
|
3585
|
-
|
|
3584
|
+
) : Re.set(!0), Wt(e).then(() => {
|
|
3585
|
+
_e.set(e);
|
|
3586
3586
|
}).finally(() => {
|
|
3587
|
-
clearTimeout(r),
|
|
3587
|
+
clearTimeout(r), Re.set(!1);
|
|
3588
3588
|
});
|
|
3589
3589
|
}
|
|
3590
|
-
return
|
|
3591
|
-
}, W =
|
|
3592
|
-
set:
|
|
3593
|
-
}),
|
|
3590
|
+
return _e.set(e);
|
|
3591
|
+
}, W = Qn(Jn({}, _e), {
|
|
3592
|
+
set: qn
|
|
3593
|
+
}), we = (e) => {
|
|
3594
3594
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3595
3595
|
return (n) => {
|
|
3596
3596
|
const i = JSON.stringify(n);
|
|
3597
3597
|
return i in t ? t[i] : t[i] = e(n);
|
|
3598
3598
|
};
|
|
3599
3599
|
};
|
|
3600
|
-
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) => {
|
|
3601
3601
|
for (var r in t || (t = {}))
|
|
3602
|
-
|
|
3603
|
-
if (
|
|
3604
|
-
for (var r of
|
|
3605
|
-
|
|
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]);
|
|
3606
3606
|
return e;
|
|
3607
|
-
},
|
|
3607
|
+
}, ae = (e, t) => {
|
|
3608
3608
|
var r = {};
|
|
3609
3609
|
for (var n in e)
|
|
3610
|
-
|
|
3611
|
-
if (e != null &&
|
|
3612
|
-
for (var n of
|
|
3613
|
-
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]);
|
|
3614
3614
|
return r;
|
|
3615
3615
|
};
|
|
3616
|
-
const
|
|
3617
|
-
const { formats: r } =
|
|
3616
|
+
const pe = (e, t) => {
|
|
3617
|
+
const { formats: r } = ne();
|
|
3618
3618
|
if (e in r && t in r[e])
|
|
3619
3619
|
return r[e][t];
|
|
3620
3620
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3621
|
-
},
|
|
3621
|
+
}, Kn = we(
|
|
3622
3622
|
(e) => {
|
|
3623
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3623
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3624
3624
|
if (r == null)
|
|
3625
3625
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3626
|
-
return n && (i =
|
|
3626
|
+
return n && (i = pe("number", n)), new Intl.NumberFormat(r, i);
|
|
3627
3627
|
}
|
|
3628
|
-
),
|
|
3628
|
+
), ei = we(
|
|
3629
3629
|
(e) => {
|
|
3630
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3630
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3631
3631
|
if (r == null)
|
|
3632
3632
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3633
|
-
return n ? i =
|
|
3633
|
+
return n ? i = pe("date", n) : Object.keys(i).length === 0 && (i = pe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3634
3634
|
}
|
|
3635
|
-
),
|
|
3635
|
+
), ti = we(
|
|
3636
3636
|
(e) => {
|
|
3637
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3637
|
+
var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
|
|
3638
3638
|
if (r == null)
|
|
3639
3639
|
throw new Error(
|
|
3640
3640
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3641
3641
|
);
|
|
3642
|
-
return n ? i =
|
|
3642
|
+
return n ? i = pe("time", n) : Object.keys(i).length === 0 && (i = pe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3643
3643
|
}
|
|
3644
|
-
),
|
|
3644
|
+
), ri = (e = {}) => {
|
|
3645
3645
|
var t = e, {
|
|
3646
3646
|
locale: r = J()
|
|
3647
|
-
} = t, n =
|
|
3647
|
+
} = t, n = ae(t, [
|
|
3648
3648
|
"locale"
|
|
3649
3649
|
]);
|
|
3650
|
-
return
|
|
3651
|
-
},
|
|
3650
|
+
return Kn(qe({ locale: r }, n));
|
|
3651
|
+
}, ni = (e = {}) => {
|
|
3652
3652
|
var t = e, {
|
|
3653
3653
|
locale: r = J()
|
|
3654
|
-
} = t, n =
|
|
3654
|
+
} = t, n = ae(t, [
|
|
3655
3655
|
"locale"
|
|
3656
3656
|
]);
|
|
3657
|
-
return
|
|
3658
|
-
},
|
|
3657
|
+
return ei(qe({ locale: r }, n));
|
|
3658
|
+
}, ii = (e = {}) => {
|
|
3659
3659
|
var t = e, {
|
|
3660
3660
|
locale: r = J()
|
|
3661
|
-
} = t, n =
|
|
3661
|
+
} = t, n = ae(t, [
|
|
3662
3662
|
"locale"
|
|
3663
3663
|
]);
|
|
3664
|
-
return
|
|
3665
|
-
},
|
|
3664
|
+
return ti(qe({ locale: r }, n));
|
|
3665
|
+
}, oi = we(
|
|
3666
3666
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3667
|
-
(e, t = J()) => new
|
|
3668
|
-
ignoreTag:
|
|
3667
|
+
(e, t = J()) => new Nn(e, t, ne().formats, {
|
|
3668
|
+
ignoreTag: ne().ignoreTag
|
|
3669
3669
|
})
|
|
3670
|
-
),
|
|
3670
|
+
), si = (e, t = {}) => {
|
|
3671
3671
|
var r, n, i, o;
|
|
3672
3672
|
let s = t;
|
|
3673
3673
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -3680,39 +3680,39 @@ const me = (e, t) => {
|
|
|
3680
3680
|
throw new Error(
|
|
3681
3681
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3682
3682
|
);
|
|
3683
|
-
let h =
|
|
3683
|
+
let h = jt(e, l);
|
|
3684
3684
|
if (!h)
|
|
3685
|
-
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;
|
|
3686
3686
|
else if (typeof h != "string")
|
|
3687
3687
|
return console.warn(
|
|
3688
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.`
|
|
3689
3689
|
), h;
|
|
3690
3690
|
if (!a)
|
|
3691
3691
|
return h;
|
|
3692
|
-
let
|
|
3692
|
+
let c = h;
|
|
3693
3693
|
try {
|
|
3694
|
-
|
|
3694
|
+
c = oi(h, l).format(a);
|
|
3695
3695
|
} catch (d) {
|
|
3696
3696
|
d instanceof Error && console.warn(
|
|
3697
3697
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3698
3698
|
d.message
|
|
3699
3699
|
);
|
|
3700
3700
|
}
|
|
3701
|
-
return
|
|
3702
|
-
},
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
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 }) {
|
|
3708
3708
|
W.subscribe((r) => {
|
|
3709
|
-
r == null && (
|
|
3709
|
+
r == null && (se.set(t), W.set(e));
|
|
3710
3710
|
});
|
|
3711
3711
|
}
|
|
3712
|
-
function
|
|
3713
|
-
|
|
3712
|
+
function gt(e, t) {
|
|
3713
|
+
Xt(e, t);
|
|
3714
3714
|
}
|
|
3715
|
-
const
|
|
3715
|
+
const vt = {
|
|
3716
3716
|
en: {
|
|
3717
3717
|
title: "Please enter the verification code you received on your number",
|
|
3718
3718
|
errorTitle: "Your code was invalid, you can resend the code and try again",
|
|
@@ -3819,17 +3819,40 @@ const yt = {
|
|
|
3819
3819
|
loginSMSHint: "A new verification code has been sent to your phone number"
|
|
3820
3820
|
}
|
|
3821
3821
|
};
|
|
3822
|
-
function
|
|
3823
|
-
|
|
3822
|
+
function di(e, t) {
|
|
3823
|
+
if (e) {
|
|
3824
|
+
const r = document.createElement("style");
|
|
3825
|
+
r.innerHTML = t, e.appendChild(r);
|
|
3826
|
+
}
|
|
3824
3827
|
}
|
|
3825
|
-
function
|
|
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
|
+
}
|
|
3844
|
+
}
|
|
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) {
|
|
3826
3849
|
let t = (
|
|
3827
3850
|
/*$_*/
|
|
3828
3851
|
e[5]("errorTitle") + ""
|
|
3829
3852
|
), r;
|
|
3830
3853
|
return {
|
|
3831
3854
|
c() {
|
|
3832
|
-
r =
|
|
3855
|
+
r = M(t);
|
|
3833
3856
|
},
|
|
3834
3857
|
m(n, i) {
|
|
3835
3858
|
Z(n, r, i);
|
|
@@ -3844,14 +3867,14 @@ function pi(e) {
|
|
|
3844
3867
|
}
|
|
3845
3868
|
};
|
|
3846
3869
|
}
|
|
3847
|
-
function
|
|
3870
|
+
function vi(e) {
|
|
3848
3871
|
let t = (
|
|
3849
3872
|
/*$_*/
|
|
3850
3873
|
e[5]("title") + ""
|
|
3851
3874
|
), r;
|
|
3852
3875
|
return {
|
|
3853
3876
|
c() {
|
|
3854
|
-
r =
|
|
3877
|
+
r = M(t);
|
|
3855
3878
|
},
|
|
3856
3879
|
m(n, i) {
|
|
3857
3880
|
Z(n, r, i);
|
|
@@ -3866,14 +3889,14 @@ function bi(e) {
|
|
|
3866
3889
|
}
|
|
3867
3890
|
};
|
|
3868
3891
|
}
|
|
3869
|
-
function
|
|
3892
|
+
function yt(e) {
|
|
3870
3893
|
let t, r = (
|
|
3871
3894
|
/*$_*/
|
|
3872
3895
|
e[5]("smsCodeError") + ""
|
|
3873
3896
|
), n;
|
|
3874
3897
|
return {
|
|
3875
3898
|
c() {
|
|
3876
|
-
t =
|
|
3899
|
+
t = O("p"), n = M(r), A(t, "class", "InvalidInput");
|
|
3877
3900
|
},
|
|
3878
3901
|
m(i, o) {
|
|
3879
3902
|
Z(i, t, o), E(t, n);
|
|
@@ -3888,14 +3911,14 @@ function Et(e) {
|
|
|
3888
3911
|
}
|
|
3889
3912
|
};
|
|
3890
3913
|
}
|
|
3891
|
-
function
|
|
3914
|
+
function Et(e) {
|
|
3892
3915
|
let t, r = (
|
|
3893
3916
|
/*$_*/
|
|
3894
3917
|
e[5]("resendMessage") + ""
|
|
3895
3918
|
), n;
|
|
3896
3919
|
return {
|
|
3897
3920
|
c() {
|
|
3898
|
-
t =
|
|
3921
|
+
t = O("p"), n = M(r), A(t, "class", "SmsVerificationResendMessage");
|
|
3899
3922
|
},
|
|
3900
3923
|
m(i, o) {
|
|
3901
3924
|
Z(i, t, o), E(t, n);
|
|
@@ -3910,17 +3933,17 @@ function xt(e) {
|
|
|
3910
3933
|
}
|
|
3911
3934
|
};
|
|
3912
3935
|
}
|
|
3913
|
-
function
|
|
3936
|
+
function xt(e) {
|
|
3914
3937
|
let t, r, n = (
|
|
3915
3938
|
/*secondsLeft*/
|
|
3916
3939
|
e[4] < 10 ? "0" : ""
|
|
3917
3940
|
), i, o, s;
|
|
3918
3941
|
return {
|
|
3919
3942
|
c() {
|
|
3920
|
-
t =
|
|
3943
|
+
t = O("span"), r = M("(0:"), i = M(n), o = M(
|
|
3921
3944
|
/*secondsLeft*/
|
|
3922
3945
|
e[4]
|
|
3923
|
-
), s =
|
|
3946
|
+
), s = M(")"), A(t, "class", "SmsVerificationResendTimer");
|
|
3924
3947
|
},
|
|
3925
3948
|
m(a, l) {
|
|
3926
3949
|
Z(a, t, l), E(t, r), E(t, i), E(t, o), E(t, s);
|
|
@@ -3940,125 +3963,125 @@ function _t(e) {
|
|
|
3940
3963
|
}
|
|
3941
3964
|
};
|
|
3942
3965
|
}
|
|
3943
|
-
function
|
|
3966
|
+
function yi(e) {
|
|
3944
3967
|
let t, r, n, i, o, s = (
|
|
3945
3968
|
/*$_*/
|
|
3946
3969
|
e[5]("code") + ""
|
|
3947
|
-
), a, l, u, h,
|
|
3970
|
+
), a, l, u, h, c, d, g, y, _, T, H = (
|
|
3948
3971
|
/*$_*/
|
|
3949
3972
|
e[5]("activate") + ""
|
|
3950
|
-
),
|
|
3973
|
+
), L, B, S, N = (
|
|
3951
3974
|
/*$_*/
|
|
3952
3975
|
e[5]("resend") + ""
|
|
3953
|
-
),
|
|
3954
|
-
function
|
|
3976
|
+
), F, V, ue, le;
|
|
3977
|
+
function he(p, C) {
|
|
3955
3978
|
return (
|
|
3956
3979
|
/*isSmsValid*/
|
|
3957
|
-
|
|
3980
|
+
p[2] ? vi : gi
|
|
3958
3981
|
);
|
|
3959
3982
|
}
|
|
3960
|
-
let X =
|
|
3961
|
-
e[2] &&
|
|
3983
|
+
let X = he(e), R = X(e), w = !/*isSmsValid*/
|
|
3984
|
+
e[2] && yt(e), P = (
|
|
3962
3985
|
/*timer*/
|
|
3963
|
-
e[3] &&
|
|
3964
|
-
),
|
|
3986
|
+
e[3] && Et(e)
|
|
3987
|
+
), f = (
|
|
3965
3988
|
/*timer*/
|
|
3966
|
-
e[3] &&
|
|
3989
|
+
e[3] && xt(e)
|
|
3967
3990
|
);
|
|
3968
3991
|
return {
|
|
3969
3992
|
c() {
|
|
3970
|
-
t =
|
|
3971
|
-
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*/
|
|
3972
3995
|
e[3], A(t, "class", "Container SmsVerificationContainer");
|
|
3973
3996
|
},
|
|
3974
|
-
m(
|
|
3975
|
-
Z(
|
|
3976
|
-
|
|
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,
|
|
3977
4000
|
/*smsCode*/
|
|
3978
4001
|
e[1]
|
|
3979
|
-
), E(i, d),
|
|
3980
|
-
|
|
3981
|
-
|
|
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,
|
|
3982
4005
|
"input",
|
|
3983
4006
|
/*input_input_handler*/
|
|
3984
|
-
e[
|
|
4007
|
+
e[18]
|
|
3985
4008
|
),
|
|
3986
|
-
|
|
3987
|
-
|
|
4009
|
+
ge(
|
|
4010
|
+
c,
|
|
3988
4011
|
"keydown",
|
|
3989
4012
|
/*keydown_handler*/
|
|
3990
|
-
e[
|
|
4013
|
+
e[19]
|
|
3991
4014
|
),
|
|
3992
|
-
|
|
3993
|
-
|
|
4015
|
+
ge(
|
|
4016
|
+
T,
|
|
3994
4017
|
"click",
|
|
3995
4018
|
/*activateUser*/
|
|
3996
4019
|
e[6]
|
|
3997
4020
|
),
|
|
3998
|
-
|
|
3999
|
-
|
|
4021
|
+
ge(
|
|
4022
|
+
S,
|
|
4000
4023
|
"click",
|
|
4001
4024
|
/*resendCode*/
|
|
4002
4025
|
e[7]
|
|
4003
4026
|
)
|
|
4004
|
-
],
|
|
4027
|
+
], ue = !0);
|
|
4005
4028
|
},
|
|
4006
|
-
p(
|
|
4007
|
-
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 & /*$_*/
|
|
4008
4031
|
32 && s !== (s = /*$_*/
|
|
4009
|
-
|
|
4010
|
-
2 &&
|
|
4011
|
-
|
|
4012
|
-
|
|
4032
|
+
p[5]("code") + "") && G(a, s), C & /*smsCode*/
|
|
4033
|
+
2 && c.value !== /*smsCode*/
|
|
4034
|
+
p[1] && rt(
|
|
4035
|
+
c,
|
|
4013
4036
|
/*smsCode*/
|
|
4014
|
-
|
|
4037
|
+
p[1]
|
|
4015
4038
|
), /*isSmsValid*/
|
|
4016
|
-
|
|
4017
|
-
4 &&
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
32 &&
|
|
4021
|
-
|
|
4022
|
-
32 &&
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
8 && (
|
|
4026
|
-
|
|
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]);
|
|
4027
4050
|
},
|
|
4028
|
-
i:
|
|
4029
|
-
o:
|
|
4030
|
-
d(
|
|
4031
|
-
|
|
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);
|
|
4032
4055
|
}
|
|
4033
4056
|
};
|
|
4034
4057
|
}
|
|
4035
|
-
function
|
|
4058
|
+
function Ei(e, t, r) {
|
|
4036
4059
|
let n;
|
|
4037
|
-
|
|
4038
|
-
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, {
|
|
4039
|
-
const
|
|
4040
|
-
|
|
4041
|
-
const
|
|
4042
|
-
fetch(
|
|
4043
|
-
Object.keys(
|
|
4044
|
-
|
|
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]);
|
|
4045
4068
|
});
|
|
4046
|
-
}).catch((
|
|
4047
|
-
console.log(
|
|
4069
|
+
}).catch((p) => {
|
|
4070
|
+
console.log(p);
|
|
4048
4071
|
});
|
|
4049
4072
|
};
|
|
4050
|
-
Object.keys(
|
|
4051
|
-
|
|
4073
|
+
Object.keys(vt).forEach((f) => {
|
|
4074
|
+
gt(f, vt[f]);
|
|
4052
4075
|
});
|
|
4053
|
-
const
|
|
4076
|
+
const V = () => be(this, null, function* () {
|
|
4054
4077
|
try {
|
|
4055
|
-
if ((yield fetch(`${i}/v1/player/${s}/activateSMS?tokenId=${o}&validationCode=${
|
|
4078
|
+
if ((yield fetch(`${i}/v1/player/${s}/activateSMS?tokenId=${o}&validationCode=${g}`, {
|
|
4056
4079
|
headers: {
|
|
4057
4080
|
"Content-Type": "application/json",
|
|
4058
4081
|
accept: "application/json"
|
|
4059
4082
|
}
|
|
4060
4083
|
})).ok)
|
|
4061
|
-
r(2,
|
|
4084
|
+
r(2, y = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
|
|
4062
4085
|
else
|
|
4063
4086
|
throw window.postMessage(
|
|
4064
4087
|
{
|
|
@@ -4069,14 +4092,14 @@ function vi(e, t, r) {
|
|
|
4069
4092
|
}
|
|
4070
4093
|
},
|
|
4071
4094
|
window.location.href
|
|
4072
|
-
), r(2,
|
|
4073
|
-
} catch (
|
|
4074
|
-
console.log(
|
|
4095
|
+
), r(2, y = !1), new Error("Could not activate user");
|
|
4096
|
+
} catch (f) {
|
|
4097
|
+
console.log(f);
|
|
4075
4098
|
}
|
|
4076
|
-
}),
|
|
4077
|
-
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();
|
|
4078
4101
|
try {
|
|
4079
|
-
const
|
|
4102
|
+
const f = yield fetch(`${i}/v1/player/sms/token`, {
|
|
4080
4103
|
method: "POST",
|
|
4081
4104
|
headers: {
|
|
4082
4105
|
"Content-Type": "application/json",
|
|
@@ -4087,77 +4110,62 @@ function vi(e, t, r) {
|
|
|
4087
4110
|
messageTemplate: a,
|
|
4088
4111
|
destination: l
|
|
4089
4112
|
})
|
|
4090
|
-
}),
|
|
4091
|
-
if (
|
|
4092
|
-
r(9, o =
|
|
4113
|
+
}), p = yield f.json();
|
|
4114
|
+
if (f.ok)
|
|
4115
|
+
r(9, o = p.id), _ = !1, le();
|
|
4093
4116
|
else
|
|
4094
|
-
throw
|
|
4095
|
-
} catch (
|
|
4096
|
-
|
|
4117
|
+
throw _ = !0, new Error("Failed to fetch");
|
|
4118
|
+
} catch (f) {
|
|
4119
|
+
_ = !0, console.error(f);
|
|
4097
4120
|
}
|
|
4098
|
-
}),
|
|
4099
|
-
|
|
4100
|
-
},
|
|
4101
|
-
|
|
4102
|
-
c.innerHTML = u, S.appendChild(c);
|
|
4103
|
-
}, be = () => {
|
|
4104
|
-
let c = new URL(h), y = document.createElement("style");
|
|
4105
|
-
fetch(c.href).then((q) => q.text()).then((q) => {
|
|
4106
|
-
y.innerHTML = q, setTimeout(
|
|
4107
|
-
() => {
|
|
4108
|
-
S.appendChild(y);
|
|
4109
|
-
},
|
|
4110
|
-
1
|
|
4111
|
-
), setTimeout(
|
|
4112
|
-
() => {
|
|
4113
|
-
},
|
|
4114
|
-
500
|
|
4115
|
-
);
|
|
4116
|
-
});
|
|
4117
|
-
}, X = () => {
|
|
4118
|
-
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(
|
|
4119
4125
|
() => {
|
|
4120
|
-
|
|
4126
|
+
le();
|
|
4121
4127
|
},
|
|
4122
4128
|
1e3
|
|
4123
4129
|
));
|
|
4124
|
-
},
|
|
4125
|
-
!
|
|
4130
|
+
}, X = (f) => {
|
|
4131
|
+
!N.numeric.test(f.key) && f.keyCode !== 8 && f.keyCode !== 9 && f.keyCode !== 46 && f.preventDefault();
|
|
4126
4132
|
};
|
|
4127
|
-
|
|
4133
|
+
lr(() => {
|
|
4128
4134
|
if (!s || !l) {
|
|
4129
|
-
let
|
|
4130
|
-
r(10, s =
|
|
4135
|
+
let f = JSON.parse(localStorage.getItem("playerData"));
|
|
4136
|
+
r(10, s = f.playerid), r(11, l = f.number);
|
|
4131
4137
|
}
|
|
4132
|
-
|
|
4138
|
+
return he(), () => {
|
|
4139
|
+
};
|
|
4133
4140
|
});
|
|
4134
|
-
function
|
|
4135
|
-
|
|
4141
|
+
function R() {
|
|
4142
|
+
g = this.value, r(1, g);
|
|
4136
4143
|
}
|
|
4137
|
-
const w = (
|
|
4138
|
-
function P(
|
|
4139
|
-
|
|
4140
|
-
|
|
4144
|
+
const w = (f) => X(f);
|
|
4145
|
+
function P(f) {
|
|
4146
|
+
$e[f ? "unshift" : "push"](() => {
|
|
4147
|
+
H = f, r(0, H);
|
|
4141
4148
|
});
|
|
4142
4149
|
}
|
|
4143
|
-
return e.$$set = (
|
|
4144
|
-
"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);
|
|
4145
4152
|
}, e.$$.update = () => {
|
|
4146
4153
|
e.$$.dirty & /*tokenid, playerid, endpoint*/
|
|
4147
4154
|
5632, e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
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();
|
|
4151
4159
|
}, [
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
_,
|
|
4160
|
+
H,
|
|
4161
|
+
g,
|
|
4162
|
+
y,
|
|
4156
4163
|
T,
|
|
4164
|
+
S,
|
|
4157
4165
|
n,
|
|
4158
|
-
D,
|
|
4159
4166
|
V,
|
|
4160
|
-
|
|
4167
|
+
ue,
|
|
4168
|
+
X,
|
|
4161
4169
|
o,
|
|
4162
4170
|
s,
|
|
4163
4171
|
l,
|
|
@@ -4165,83 +4173,91 @@ function vi(e, t, r) {
|
|
|
4165
4173
|
a,
|
|
4166
4174
|
u,
|
|
4167
4175
|
h,
|
|
4168
|
-
|
|
4169
|
-
|
|
4176
|
+
c,
|
|
4177
|
+
d,
|
|
4178
|
+
R,
|
|
4170
4179
|
w,
|
|
4171
4180
|
P
|
|
4172
4181
|
];
|
|
4173
4182
|
}
|
|
4174
|
-
class
|
|
4183
|
+
class xi extends xr {
|
|
4175
4184
|
constructor(t) {
|
|
4176
|
-
super(),
|
|
4185
|
+
super(), yr(
|
|
4177
4186
|
this,
|
|
4178
4187
|
t,
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4188
|
+
Ei,
|
|
4189
|
+
yi,
|
|
4190
|
+
St,
|
|
4182
4191
|
{
|
|
4183
4192
|
endpoint: 12,
|
|
4184
4193
|
tokenid: 9,
|
|
4185
4194
|
playerid: 10,
|
|
4186
4195
|
smstemplate: 13,
|
|
4187
4196
|
number: 11,
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4197
|
+
mbsource: 14,
|
|
4198
|
+
clientstyling: 15,
|
|
4199
|
+
clientstylingurl: 16,
|
|
4200
|
+
translationurl: 17
|
|
4191
4201
|
},
|
|
4192
|
-
|
|
4202
|
+
bi
|
|
4193
4203
|
);
|
|
4194
4204
|
}
|
|
4195
4205
|
get endpoint() {
|
|
4196
4206
|
return this.$$.ctx[12];
|
|
4197
4207
|
}
|
|
4198
4208
|
set endpoint(t) {
|
|
4199
|
-
this.$$set({ endpoint: t }),
|
|
4209
|
+
this.$$set({ endpoint: t }), U();
|
|
4200
4210
|
}
|
|
4201
4211
|
get tokenid() {
|
|
4202
4212
|
return this.$$.ctx[9];
|
|
4203
4213
|
}
|
|
4204
4214
|
set tokenid(t) {
|
|
4205
|
-
this.$$set({ tokenid: t }),
|
|
4215
|
+
this.$$set({ tokenid: t }), U();
|
|
4206
4216
|
}
|
|
4207
4217
|
get playerid() {
|
|
4208
4218
|
return this.$$.ctx[10];
|
|
4209
4219
|
}
|
|
4210
4220
|
set playerid(t) {
|
|
4211
|
-
this.$$set({ playerid: t }),
|
|
4221
|
+
this.$$set({ playerid: t }), U();
|
|
4212
4222
|
}
|
|
4213
4223
|
get smstemplate() {
|
|
4214
4224
|
return this.$$.ctx[13];
|
|
4215
4225
|
}
|
|
4216
4226
|
set smstemplate(t) {
|
|
4217
|
-
this.$$set({ smstemplate: t }),
|
|
4227
|
+
this.$$set({ smstemplate: t }), U();
|
|
4218
4228
|
}
|
|
4219
4229
|
get number() {
|
|
4220
4230
|
return this.$$.ctx[11];
|
|
4221
4231
|
}
|
|
4222
4232
|
set number(t) {
|
|
4223
|
-
this.$$set({ number: t }),
|
|
4233
|
+
this.$$set({ number: t }), U();
|
|
4224
4234
|
}
|
|
4225
|
-
get
|
|
4235
|
+
get mbsource() {
|
|
4226
4236
|
return this.$$.ctx[14];
|
|
4227
4237
|
}
|
|
4238
|
+
set mbsource(t) {
|
|
4239
|
+
this.$$set({ mbsource: t }), U();
|
|
4240
|
+
}
|
|
4241
|
+
get clientstyling() {
|
|
4242
|
+
return this.$$.ctx[15];
|
|
4243
|
+
}
|
|
4228
4244
|
set clientstyling(t) {
|
|
4229
|
-
this.$$set({ clientstyling: t }),
|
|
4245
|
+
this.$$set({ clientstyling: t }), U();
|
|
4230
4246
|
}
|
|
4231
4247
|
get clientstylingurl() {
|
|
4232
|
-
return this.$$.ctx[
|
|
4248
|
+
return this.$$.ctx[16];
|
|
4233
4249
|
}
|
|
4234
4250
|
set clientstylingurl(t) {
|
|
4235
|
-
this.$$set({ clientstylingurl: t }),
|
|
4251
|
+
this.$$set({ clientstylingurl: t }), U();
|
|
4236
4252
|
}
|
|
4237
4253
|
get translationurl() {
|
|
4238
|
-
return this.$$.ctx[
|
|
4254
|
+
return this.$$.ctx[17];
|
|
4239
4255
|
}
|
|
4240
4256
|
set translationurl(t) {
|
|
4241
|
-
this.$$set({ translationurl: t }),
|
|
4257
|
+
this.$$set({ translationurl: t }), U();
|
|
4242
4258
|
}
|
|
4243
4259
|
}
|
|
4244
|
-
|
|
4260
|
+
Er(xi, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4245
4261
|
export {
|
|
4246
|
-
|
|
4262
|
+
xi as default
|
|
4247
4263
|
};
|