@everymatrix/player-email-verification 1.74.3 → 1.74.4
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/{PlayerEmailVerification-DDMXxvg7.js → PlayerEmailVerification-64YgAa6l.js} +417 -419
- package/components/PlayerEmailVerification-CC6x_teP.cjs +16 -0
- package/components/{PlayerEmailVerification-CX5FO4BG.js → PlayerEmailVerification-DIJ00Em1.js} +401 -403
- package/es2015/player-email-verification.cjs +1 -1
- package/es2015/player-email-verification.js +1 -1
- package/esnext/player-email-verification.js +1 -1
- package/package.json +1 -1
- package/components/PlayerEmailVerification-D5UtfOCT.cjs +0 -16
package/components/{PlayerEmailVerification-DDMXxvg7.js → PlayerEmailVerification-64YgAa6l.js}
RENAMED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var ae = (e, t, r) => t in e ?
|
|
1
|
+
var wt = Object.defineProperty, $t = Object.defineProperties;
|
|
2
|
+
var Lt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Le = Object.getOwnPropertySymbols;
|
|
4
|
+
var Mt = Object.prototype.hasOwnProperty, Ct = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ae = (e, t, r) => t in e ? wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Me = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
Mt.call(t, r) && ae(e, r, t[r]);
|
|
8
|
+
if (Le)
|
|
9
|
+
for (var r of Le(t))
|
|
10
|
+
Ct.call(t, r) && ae(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var s = (
|
|
12
|
+
}, Ce = (e, t) => $t(e, Lt(t));
|
|
13
|
+
var v = (e, t, r) => (ae(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var Re = (e, t, r) => new Promise((n, i) => {
|
|
15
|
+
var s = (u) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
h(r.next(u));
|
|
18
18
|
} catch (a) {
|
|
19
19
|
i(a);
|
|
20
20
|
}
|
|
21
|
-
}, o = (
|
|
21
|
+
}, o = (u) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
h(r.throw(u));
|
|
24
24
|
} catch (a) {
|
|
25
25
|
i(a);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, h = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(s, o);
|
|
28
|
+
h((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function _() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function rt(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Ue() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function z(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(rt);
|
|
40
40
|
}
|
|
41
41
|
function Be(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function nt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Rt(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function it(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const n of t)
|
|
53
53
|
n(void 0);
|
|
54
|
-
return
|
|
54
|
+
return _;
|
|
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 Ut(e, t, r) {
|
|
60
|
+
e.$$.on_destroy.push(it(t, r));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function st(e, t, r) {
|
|
63
63
|
e.insertBefore(t, r || null);
|
|
64
64
|
}
|
|
65
65
|
function Ae(e) {
|
|
66
66
|
e.parentNode && e.parentNode.removeChild(e);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function ot(e) {
|
|
69
69
|
return document.createElement(e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Gt(e, t, r) {
|
|
72
72
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function Dt(e) {
|
|
75
75
|
return Array.from(e.childNodes);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Ft(e) {
|
|
78
78
|
const t = {};
|
|
79
79
|
return e.childNodes.forEach(
|
|
80
80
|
/** @param {Element} node */
|
|
@@ -87,17 +87,17 @@ let Pe;
|
|
|
87
87
|
function k(e) {
|
|
88
88
|
Pe = e;
|
|
89
89
|
}
|
|
90
|
-
const I = [],
|
|
90
|
+
const I = [], Ge = [];
|
|
91
91
|
let $ = [];
|
|
92
|
-
const
|
|
93
|
-
let
|
|
94
|
-
function
|
|
95
|
-
|
|
92
|
+
const De = [], jt = /* @__PURE__ */ Promise.resolve();
|
|
93
|
+
let de = !1;
|
|
94
|
+
function Vt() {
|
|
95
|
+
de || (de = !0, jt.then(w));
|
|
96
96
|
}
|
|
97
97
|
function be(e) {
|
|
98
98
|
$.push(e);
|
|
99
99
|
}
|
|
100
|
-
const
|
|
100
|
+
const he = /* @__PURE__ */ new Set();
|
|
101
101
|
let N = 0;
|
|
102
102
|
function w() {
|
|
103
103
|
if (N !== 0)
|
|
@@ -107,113 +107,113 @@ function w() {
|
|
|
107
107
|
try {
|
|
108
108
|
for (; N < I.length; ) {
|
|
109
109
|
const t = I[N];
|
|
110
|
-
N++, k(t),
|
|
110
|
+
N++, k(t), kt(t.$$);
|
|
111
111
|
}
|
|
112
112
|
} catch (t) {
|
|
113
113
|
throw I.length = 0, N = 0, t;
|
|
114
114
|
}
|
|
115
|
-
for (k(null), I.length = 0, N = 0;
|
|
116
|
-
|
|
115
|
+
for (k(null), I.length = 0, N = 0; Ge.length; )
|
|
116
|
+
Ge.pop()();
|
|
117
117
|
for (let t = 0; t < $.length; t += 1) {
|
|
118
118
|
const r = $[t];
|
|
119
|
-
|
|
119
|
+
he.has(r) || (he.add(r), r());
|
|
120
120
|
}
|
|
121
121
|
$.length = 0;
|
|
122
122
|
} while (I.length);
|
|
123
|
-
for (;
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
for (; De.length; )
|
|
124
|
+
De.pop()();
|
|
125
|
+
de = !1, he.clear(), k(e);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function kt(e) {
|
|
128
128
|
if (e.fragment !== null) {
|
|
129
129
|
e.update(), z(e.before_update);
|
|
130
130
|
const t = e.dirty;
|
|
131
131
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(be);
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Xt(e) {
|
|
135
135
|
const t = [], r = [];
|
|
136
136
|
$.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), $ = t;
|
|
137
137
|
}
|
|
138
|
-
const
|
|
139
|
-
function
|
|
140
|
-
e && e.i && (
|
|
138
|
+
const Wt = /* @__PURE__ */ new Set();
|
|
139
|
+
function zt(e, t) {
|
|
140
|
+
e && e.i && (Wt.delete(e), e.i(t));
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function Zt(e, t, r) {
|
|
143
143
|
const { fragment: n, after_update: i } = e.$$;
|
|
144
144
|
n && n.m(t, r), be(() => {
|
|
145
|
-
const s = e.$$.on_mount.map(
|
|
145
|
+
const s = e.$$.on_mount.map(rt).filter(Be);
|
|
146
146
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : z(s), e.$$.on_mount = [];
|
|
147
147
|
}), i.forEach(be);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Qt(e, t) {
|
|
150
150
|
const r = e.$$;
|
|
151
|
-
r.fragment !== null && (
|
|
151
|
+
r.fragment !== null && (Xt(r.after_update), z(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
e.$$.dirty[0] === -1 && (I.push(e),
|
|
153
|
+
function Jt(e, t) {
|
|
154
|
+
e.$$.dirty[0] === -1 && (I.push(e), Vt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
const
|
|
156
|
+
function qt(e, t, r, n, i, s, o = null, h = [-1]) {
|
|
157
|
+
const u = Pe;
|
|
158
158
|
k(e);
|
|
159
159
|
const a = e.$$ = {
|
|
160
160
|
fragment: null,
|
|
161
161
|
ctx: [],
|
|
162
162
|
// state
|
|
163
163
|
props: s,
|
|
164
|
-
update:
|
|
164
|
+
update: _,
|
|
165
165
|
not_equal: i,
|
|
166
|
-
bound:
|
|
166
|
+
bound: Ue(),
|
|
167
167
|
// lifecycle
|
|
168
168
|
on_mount: [],
|
|
169
169
|
on_destroy: [],
|
|
170
170
|
on_disconnect: [],
|
|
171
171
|
before_update: [],
|
|
172
172
|
after_update: [],
|
|
173
|
-
context: new Map(t.context || (
|
|
173
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
174
174
|
// everything else
|
|
175
|
-
callbacks:
|
|
176
|
-
dirty:
|
|
175
|
+
callbacks: Ue(),
|
|
176
|
+
dirty: h,
|
|
177
177
|
skip_bound: !1,
|
|
178
|
-
root: t.target ||
|
|
178
|
+
root: t.target || u.$$.root
|
|
179
179
|
};
|
|
180
180
|
o && o(a.root);
|
|
181
181
|
let l = !1;
|
|
182
|
-
if (a.ctx = r(e, t.props || {}, (f, c, ...b) => {
|
|
182
|
+
if (a.ctx = r ? r(e, t.props || {}, (f, c, ...b) => {
|
|
183
183
|
const g = b.length ? b[0] : c;
|
|
184
|
-
return a.ctx && i(a.ctx[f], a.ctx[f] = g) && (!a.skip_bound && a.bound[f] && a.bound[f](g), l &&
|
|
185
|
-
}), a.update(), l = !0, z(a.before_update), a.fragment = n(a.ctx), t.target) {
|
|
184
|
+
return a.ctx && i(a.ctx[f], a.ctx[f] = g) && (!a.skip_bound && a.bound[f] && a.bound[f](g), l && Jt(e, f)), c;
|
|
185
|
+
}) : [], a.update(), l = !0, z(a.before_update), a.fragment = n ? n(a.ctx) : !1, t.target) {
|
|
186
186
|
if (t.hydrate) {
|
|
187
|
-
const f =
|
|
187
|
+
const f = Dt(t.target);
|
|
188
188
|
a.fragment && a.fragment.l(f), f.forEach(Ae);
|
|
189
189
|
} else
|
|
190
190
|
a.fragment && a.fragment.c();
|
|
191
|
-
t.intro &&
|
|
191
|
+
t.intro && zt(e.$$.fragment), Zt(e, t.target, t.anchor), w();
|
|
192
192
|
}
|
|
193
|
-
k(
|
|
193
|
+
k(u);
|
|
194
194
|
}
|
|
195
|
-
let
|
|
196
|
-
typeof HTMLElement == "function" && (
|
|
195
|
+
let at;
|
|
196
|
+
typeof HTMLElement == "function" && (at = class extends HTMLElement {
|
|
197
197
|
constructor(t, r, n) {
|
|
198
198
|
super();
|
|
199
199
|
/** The Svelte component constructor */
|
|
200
|
-
|
|
200
|
+
v(this, "$$ctor");
|
|
201
201
|
/** Slots */
|
|
202
|
-
|
|
202
|
+
v(this, "$$s");
|
|
203
203
|
/** The Svelte component instance */
|
|
204
|
-
|
|
204
|
+
v(this, "$$c");
|
|
205
205
|
/** Whether or not the custom element is connected */
|
|
206
|
-
|
|
206
|
+
v(this, "$$cn", !1);
|
|
207
207
|
/** Component props data */
|
|
208
|
-
|
|
208
|
+
v(this, "$$d", {});
|
|
209
209
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
210
|
-
|
|
210
|
+
v(this, "$$r", !1);
|
|
211
211
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
212
|
-
|
|
212
|
+
v(this, "$$p_d", {});
|
|
213
213
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
214
|
-
|
|
214
|
+
v(this, "$$l", {});
|
|
215
215
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
216
|
-
|
|
216
|
+
v(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
217
217
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
218
218
|
}
|
|
219
219
|
addEventListener(t, r, n) {
|
|
@@ -230,21 +230,21 @@ typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
connectedCallback() {
|
|
233
|
-
return
|
|
233
|
+
return Re(this, null, function* () {
|
|
234
234
|
if (this.$$cn = !0, !this.$$c) {
|
|
235
235
|
let t = function(s) {
|
|
236
236
|
return () => {
|
|
237
237
|
let o;
|
|
238
238
|
return {
|
|
239
239
|
c: function() {
|
|
240
|
-
o =
|
|
240
|
+
o = ot("slot"), s !== "default" && Gt(o, "name", s);
|
|
241
241
|
},
|
|
242
242
|
/**
|
|
243
243
|
* @param {HTMLElement} target
|
|
244
244
|
* @param {HTMLElement} [anchor]
|
|
245
245
|
*/
|
|
246
246
|
m: function(a, l) {
|
|
247
|
-
|
|
247
|
+
st(a, o, l);
|
|
248
248
|
},
|
|
249
249
|
d: function(a) {
|
|
250
250
|
a && Ae(o);
|
|
@@ -254,7 +254,7 @@ typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
|
|
254
254
|
};
|
|
255
255
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
256
256
|
return;
|
|
257
|
-
const r = {}, n =
|
|
257
|
+
const r = {}, n = Ft(this);
|
|
258
258
|
for (const s of this.$$s)
|
|
259
259
|
s in n && (r[s] = [t(s)]);
|
|
260
260
|
for (const s of this.attributes) {
|
|
@@ -265,7 +265,7 @@ typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
|
|
265
265
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
266
266
|
this.$$c = new this.$$ctor({
|
|
267
267
|
target: this.shadowRoot || this,
|
|
268
|
-
props: Me(
|
|
268
|
+
props: Ce(Me({}, this.$$d), {
|
|
269
269
|
$$slots: r,
|
|
270
270
|
$$scope: {
|
|
271
271
|
ctx: []
|
|
@@ -289,8 +289,8 @@ typeof HTMLElement == "function" && (ot = class extends HTMLElement {
|
|
|
289
289
|
this.$$c.$$.after_update.push(i), i();
|
|
290
290
|
for (const s in this.$$l)
|
|
291
291
|
for (const o of this.$$l[s]) {
|
|
292
|
-
const
|
|
293
|
-
this.$$l_u.set(o,
|
|
292
|
+
const h = this.$$c.$on(s, o);
|
|
293
|
+
this.$$l_u.set(o, h);
|
|
294
294
|
}
|
|
295
295
|
this.$$l = {};
|
|
296
296
|
}
|
|
@@ -343,38 +343,38 @@ function q(e, t, r, n) {
|
|
|
343
343
|
return t;
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
let o = class extends
|
|
346
|
+
function Yt(e, t, r, n, i, s) {
|
|
347
|
+
let o = class extends at {
|
|
348
348
|
constructor() {
|
|
349
349
|
super(e, r, i), this.$$p_d = t;
|
|
350
350
|
}
|
|
351
351
|
static get observedAttributes() {
|
|
352
352
|
return Object.keys(t).map(
|
|
353
|
-
(
|
|
353
|
+
(h) => (t[h].attribute || h).toLowerCase()
|
|
354
354
|
);
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
|
-
return Object.keys(t).forEach((
|
|
358
|
-
Object.defineProperty(o.prototype,
|
|
357
|
+
return Object.keys(t).forEach((h) => {
|
|
358
|
+
Object.defineProperty(o.prototype, h, {
|
|
359
359
|
get() {
|
|
360
|
-
return this.$$c &&
|
|
360
|
+
return this.$$c && h in this.$$c ? this.$$c[h] : this.$$d[h];
|
|
361
361
|
},
|
|
362
|
-
set(
|
|
362
|
+
set(u) {
|
|
363
363
|
var a;
|
|
364
|
-
|
|
364
|
+
u = q(h, u, t), this.$$d[h] = u, (a = this.$$c) == null || a.$set({ [h]: u });
|
|
365
365
|
}
|
|
366
366
|
});
|
|
367
|
-
}), n.forEach((
|
|
368
|
-
Object.defineProperty(o.prototype,
|
|
367
|
+
}), n.forEach((h) => {
|
|
368
|
+
Object.defineProperty(o.prototype, h, {
|
|
369
369
|
get() {
|
|
370
|
-
var
|
|
371
|
-
return (
|
|
370
|
+
var u;
|
|
371
|
+
return (u = this.$$c) == null ? void 0 : u[h];
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
}), e.element = /** @type {any} */
|
|
375
375
|
o, o;
|
|
376
376
|
}
|
|
377
|
-
class
|
|
377
|
+
class Kt {
|
|
378
378
|
constructor() {
|
|
379
379
|
/**
|
|
380
380
|
* ### PRIVATE API
|
|
@@ -383,7 +383,7 @@ class Yt {
|
|
|
383
383
|
*
|
|
384
384
|
* @type {any}
|
|
385
385
|
*/
|
|
386
|
-
|
|
386
|
+
v(this, "$$");
|
|
387
387
|
/**
|
|
388
388
|
* ### PRIVATE API
|
|
389
389
|
*
|
|
@@ -391,11 +391,11 @@ class Yt {
|
|
|
391
391
|
*
|
|
392
392
|
* @type {any}
|
|
393
393
|
*/
|
|
394
|
-
|
|
394
|
+
v(this, "$$set");
|
|
395
395
|
}
|
|
396
396
|
/** @returns {void} */
|
|
397
397
|
$destroy() {
|
|
398
|
-
|
|
398
|
+
Qt(this, 1), this.$destroy = _;
|
|
399
399
|
}
|
|
400
400
|
/**
|
|
401
401
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -405,7 +405,7 @@ class Yt {
|
|
|
405
405
|
*/
|
|
406
406
|
$on(t, r) {
|
|
407
407
|
if (!Be(r))
|
|
408
|
-
return
|
|
408
|
+
return _;
|
|
409
409
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
410
410
|
return n.push(r), () => {
|
|
411
411
|
const i = n.indexOf(r);
|
|
@@ -417,38 +417,38 @@ class Yt {
|
|
|
417
417
|
* @returns {void}
|
|
418
418
|
*/
|
|
419
419
|
$set(t) {
|
|
420
|
-
this.$$set && !
|
|
420
|
+
this.$$set && !Rt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
const
|
|
424
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
423
|
+
const er = "4";
|
|
424
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(er);
|
|
425
425
|
const O = [];
|
|
426
|
-
function
|
|
426
|
+
function tr(e, t) {
|
|
427
427
|
return {
|
|
428
428
|
subscribe: re(e, t).subscribe
|
|
429
429
|
};
|
|
430
430
|
}
|
|
431
|
-
function re(e, t =
|
|
431
|
+
function re(e, t = _) {
|
|
432
432
|
let r;
|
|
433
433
|
const n = /* @__PURE__ */ new Set();
|
|
434
|
-
function i(
|
|
435
|
-
if (
|
|
436
|
-
const
|
|
434
|
+
function i(h) {
|
|
435
|
+
if (nt(e, h) && (e = h, r)) {
|
|
436
|
+
const u = !O.length;
|
|
437
437
|
for (const a of n)
|
|
438
438
|
a[1](), O.push(a, e);
|
|
439
|
-
if (
|
|
439
|
+
if (u) {
|
|
440
440
|
for (let a = 0; a < O.length; a += 2)
|
|
441
441
|
O[a][0](O[a + 1]);
|
|
442
442
|
O.length = 0;
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
function s(
|
|
447
|
-
i(
|
|
446
|
+
function s(h) {
|
|
447
|
+
i(h(e));
|
|
448
448
|
}
|
|
449
|
-
function o(
|
|
450
|
-
const a = [
|
|
451
|
-
return n.add(a), n.size === 1 && (r = t(i, s) ||
|
|
449
|
+
function o(h, u = _) {
|
|
450
|
+
const a = [h, u];
|
|
451
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || _), h(e), () => {
|
|
452
452
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
453
453
|
};
|
|
454
454
|
}
|
|
@@ -459,48 +459,48 @@ function U(e, t, r) {
|
|
|
459
459
|
if (!i.every(Boolean))
|
|
460
460
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
461
461
|
const s = t.length < 2;
|
|
462
|
-
return
|
|
463
|
-
let
|
|
462
|
+
return tr(r, (o, h) => {
|
|
463
|
+
let u = !1;
|
|
464
464
|
const a = [];
|
|
465
|
-
let l = 0, f =
|
|
465
|
+
let l = 0, f = _;
|
|
466
466
|
const c = () => {
|
|
467
467
|
if (l)
|
|
468
468
|
return;
|
|
469
469
|
f();
|
|
470
|
-
const g = t(n ? a[0] : a, o,
|
|
471
|
-
s ? o(g) : f = Be(g) ? g :
|
|
470
|
+
const g = t(n ? a[0] : a, o, h);
|
|
471
|
+
s ? o(g) : f = Be(g) ? g : _;
|
|
472
472
|
}, b = i.map(
|
|
473
|
-
(g, y) =>
|
|
473
|
+
(g, y) => it(
|
|
474
474
|
g,
|
|
475
475
|
(T) => {
|
|
476
|
-
a[y] = T, l &= ~(1 << y),
|
|
476
|
+
a[y] = T, l &= ~(1 << y), u && c();
|
|
477
477
|
},
|
|
478
478
|
() => {
|
|
479
479
|
l |= 1 << y;
|
|
480
480
|
}
|
|
481
481
|
)
|
|
482
482
|
);
|
|
483
|
-
return
|
|
484
|
-
z(b), f(),
|
|
483
|
+
return u = !0, c(), function() {
|
|
484
|
+
z(b), f(), u = !1;
|
|
485
485
|
};
|
|
486
486
|
});
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
488
|
+
function rr(e) {
|
|
489
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
490
490
|
}
|
|
491
|
-
var
|
|
492
|
-
return
|
|
491
|
+
var nr = function(t) {
|
|
492
|
+
return ir(t) && !sr(t);
|
|
493
493
|
};
|
|
494
|
-
function
|
|
494
|
+
function ir(e) {
|
|
495
495
|
return !!e && typeof e == "object";
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function sr(e) {
|
|
498
498
|
var t = Object.prototype.toString.call(e);
|
|
499
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
499
|
+
return t === "[object RegExp]" || t === "[object Date]" || hr(e);
|
|
500
500
|
}
|
|
501
|
-
var
|
|
502
|
-
function
|
|
503
|
-
return e.$$typeof ===
|
|
501
|
+
var or = typeof Symbol == "function" && Symbol.for, ar = or ? Symbol.for("react.element") : 60103;
|
|
502
|
+
function hr(e) {
|
|
503
|
+
return e.$$typeof === ar;
|
|
504
504
|
}
|
|
505
505
|
function ur(e) {
|
|
506
506
|
return Array.isArray(e) ? [] : {};
|
|
@@ -508,47 +508,47 @@ function ur(e) {
|
|
|
508
508
|
function X(e, t) {
|
|
509
509
|
return t.clone !== !1 && t.isMergeableObject(e) ? L(ur(e), e, t) : e;
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function lr(e, t, r) {
|
|
512
512
|
return e.concat(t).map(function(n) {
|
|
513
513
|
return X(n, r);
|
|
514
514
|
});
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function fr(e, t) {
|
|
517
517
|
if (!t.customMerge)
|
|
518
518
|
return L;
|
|
519
519
|
var r = t.customMerge(e);
|
|
520
520
|
return typeof r == "function" ? r : L;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function cr(e) {
|
|
523
523
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
524
524
|
return Object.propertyIsEnumerable.call(e, t);
|
|
525
525
|
}) : [];
|
|
526
526
|
}
|
|
527
|
-
function
|
|
528
|
-
return Object.keys(e).concat(
|
|
527
|
+
function Fe(e) {
|
|
528
|
+
return Object.keys(e).concat(cr(e));
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function ht(e, t) {
|
|
531
531
|
try {
|
|
532
532
|
return t in e;
|
|
533
533
|
} catch (r) {
|
|
534
534
|
return !1;
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
function
|
|
538
|
-
return
|
|
537
|
+
function mr(e, t) {
|
|
538
|
+
return ht(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function pr(e, t, r) {
|
|
541
541
|
var n = {};
|
|
542
|
-
return r.isMergeableObject(e) &&
|
|
542
|
+
return r.isMergeableObject(e) && Fe(e).forEach(function(i) {
|
|
543
543
|
n[i] = X(e[i], r);
|
|
544
|
-
}),
|
|
545
|
-
|
|
544
|
+
}), Fe(t).forEach(function(i) {
|
|
545
|
+
mr(e, i) || (ht(e, i) && r.isMergeableObject(t[i]) ? n[i] = fr(i, r)(e[i], t[i], r) : n[i] = X(t[i], r));
|
|
546
546
|
}), n;
|
|
547
547
|
}
|
|
548
548
|
function L(e, t, r) {
|
|
549
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
549
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || lr, r.isMergeableObject = r.isMergeableObject || nr, r.cloneUnlessOtherwiseSpecified = X;
|
|
550
550
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
551
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
551
|
+
return s ? n ? r.arrayMerge(e, t, r) : pr(e, t, r) : X(t, r);
|
|
552
552
|
}
|
|
553
553
|
L.all = function(t, r) {
|
|
554
554
|
if (!Array.isArray(t))
|
|
@@ -557,8 +557,8 @@ L.all = function(t, r) {
|
|
|
557
557
|
return L(n, i, r);
|
|
558
558
|
}, {});
|
|
559
559
|
};
|
|
560
|
-
var dr = L,
|
|
561
|
-
const
|
|
560
|
+
var dr = L, br = dr;
|
|
561
|
+
const gr = /* @__PURE__ */ rr(br);
|
|
562
562
|
/*! *****************************************************************************
|
|
563
563
|
Copyright (c) Microsoft Corporation.
|
|
564
564
|
|
|
@@ -590,17 +590,17 @@ function ne(e, t) {
|
|
|
590
590
|
}
|
|
591
591
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
592
592
|
}
|
|
593
|
-
var
|
|
594
|
-
return
|
|
593
|
+
var d = function() {
|
|
594
|
+
return d = Object.assign || function(t) {
|
|
595
595
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
596
596
|
r = arguments[n];
|
|
597
597
|
for (var s in r)
|
|
598
598
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
599
599
|
}
|
|
600
600
|
return t;
|
|
601
|
-
},
|
|
601
|
+
}, d.apply(this, arguments);
|
|
602
602
|
};
|
|
603
|
-
function
|
|
603
|
+
function Er(e, t) {
|
|
604
604
|
var r = {};
|
|
605
605
|
for (var n in e)
|
|
606
606
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -609,63 +609,61 @@ function gr(e, t) {
|
|
|
609
609
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
610
610
|
return r;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function ue(e, t, r) {
|
|
613
613
|
if (arguments.length === 2)
|
|
614
614
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
615
615
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
616
616
|
return e.concat(s || t);
|
|
617
617
|
}
|
|
618
618
|
function le(e, t) {
|
|
619
|
-
var r = t && t.cache ? t.cache : Tr, n = t && t.serializer ? t.serializer :
|
|
619
|
+
var r = t && t.cache ? t.cache : Tr, n = t && t.serializer ? t.serializer : Hr, i = t && t.strategy ? t.strategy : yr;
|
|
620
620
|
return i(e, {
|
|
621
621
|
cache: r,
|
|
622
622
|
serializer: n
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function xr(e) {
|
|
626
626
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
627
627
|
}
|
|
628
628
|
function ut(e, t, r, n) {
|
|
629
|
-
var i =
|
|
629
|
+
var i = xr(n) ? n : r(n), s = t.get(i);
|
|
630
630
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function lt(e, t, r) {
|
|
633
633
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
634
634
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
635
635
|
}
|
|
636
636
|
function Ne(e, t, r, n, i) {
|
|
637
637
|
return r.bind(t, e, n, i);
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
var r = e.length === 1 ? ut :
|
|
639
|
+
function yr(e, t) {
|
|
640
|
+
var r = e.length === 1 ? ut : lt;
|
|
641
641
|
return Ne(e, this, r, t.cache.create(), t.serializer);
|
|
642
642
|
}
|
|
643
|
-
function
|
|
644
|
-
return Ne(e, this,
|
|
643
|
+
function vr(e, t) {
|
|
644
|
+
return Ne(e, this, lt, t.cache.create(), t.serializer);
|
|
645
645
|
}
|
|
646
646
|
function _r(e, t) {
|
|
647
647
|
return Ne(e, this, ut, t.cache.create(), t.serializer);
|
|
648
648
|
}
|
|
649
|
-
var
|
|
649
|
+
var Hr = function() {
|
|
650
650
|
return JSON.stringify(arguments);
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
}()
|
|
663
|
-
), Tr = {
|
|
651
|
+
};
|
|
652
|
+
function Oe() {
|
|
653
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
654
|
+
}
|
|
655
|
+
Oe.prototype.get = function(e) {
|
|
656
|
+
return this.cache[e];
|
|
657
|
+
};
|
|
658
|
+
Oe.prototype.set = function(e, t) {
|
|
659
|
+
this.cache[e] = t;
|
|
660
|
+
};
|
|
661
|
+
var Tr = {
|
|
664
662
|
create: function() {
|
|
665
|
-
return new
|
|
663
|
+
return new Oe();
|
|
666
664
|
}
|
|
667
665
|
}, fe = {
|
|
668
|
-
variadic:
|
|
666
|
+
variadic: vr,
|
|
669
667
|
monadic: _r
|
|
670
668
|
}, m;
|
|
671
669
|
(function(e) {
|
|
@@ -679,22 +677,22 @@ var M;
|
|
|
679
677
|
(function(e) {
|
|
680
678
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
681
679
|
})(M || (M = {}));
|
|
682
|
-
function
|
|
680
|
+
function je(e) {
|
|
683
681
|
return e.type === E.literal;
|
|
684
682
|
}
|
|
685
683
|
function Sr(e) {
|
|
686
684
|
return e.type === E.argument;
|
|
687
685
|
}
|
|
688
|
-
function
|
|
686
|
+
function ft(e) {
|
|
689
687
|
return e.type === E.number;
|
|
690
688
|
}
|
|
691
|
-
function
|
|
689
|
+
function ct(e) {
|
|
692
690
|
return e.type === E.date;
|
|
693
691
|
}
|
|
694
|
-
function
|
|
692
|
+
function mt(e) {
|
|
695
693
|
return e.type === E.time;
|
|
696
694
|
}
|
|
697
|
-
function
|
|
695
|
+
function pt(e) {
|
|
698
696
|
return e.type === E.select;
|
|
699
697
|
}
|
|
700
698
|
function dt(e) {
|
|
@@ -703,16 +701,16 @@ function dt(e) {
|
|
|
703
701
|
function Br(e) {
|
|
704
702
|
return e.type === E.pound;
|
|
705
703
|
}
|
|
706
|
-
function
|
|
704
|
+
function bt(e) {
|
|
707
705
|
return e.type === E.tag;
|
|
708
706
|
}
|
|
709
|
-
function
|
|
707
|
+
function gt(e) {
|
|
710
708
|
return !!(e && typeof e == "object" && e.type === M.number);
|
|
711
709
|
}
|
|
712
710
|
function Ee(e) {
|
|
713
711
|
return !!(e && typeof e == "object" && e.type === M.dateTime);
|
|
714
712
|
}
|
|
715
|
-
var
|
|
713
|
+
var Et = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ar = /(?:[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;
|
|
716
714
|
function Pr(e) {
|
|
717
715
|
var t = {};
|
|
718
716
|
return e.replace(Ar, function(r) {
|
|
@@ -814,26 +812,26 @@ function Or(e) {
|
|
|
814
812
|
var s = i[n], o = s.split("/");
|
|
815
813
|
if (o.length === 0)
|
|
816
814
|
throw new Error("Invalid number skeleton");
|
|
817
|
-
for (var
|
|
815
|
+
for (var h = o[0], u = o.slice(1), a = 0, l = u; a < l.length; a++) {
|
|
818
816
|
var f = l[a];
|
|
819
817
|
if (f.length === 0)
|
|
820
818
|
throw new Error("Invalid number skeleton");
|
|
821
819
|
}
|
|
822
|
-
r.push({ stem:
|
|
820
|
+
r.push({ stem: h, options: u });
|
|
823
821
|
}
|
|
824
822
|
return r;
|
|
825
823
|
}
|
|
826
824
|
function Ir(e) {
|
|
827
825
|
return e.replace(/^(.*?)-/, "");
|
|
828
826
|
}
|
|
829
|
-
var
|
|
830
|
-
function
|
|
827
|
+
var Ve = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, xt = /^(@+)?(\+|#+)?[rs]?$/g, wr = /(\*)(0+)|(#+)(0+)|(0+)/g, yt = /^(0+)$/;
|
|
828
|
+
function ke(e) {
|
|
831
829
|
var t = {};
|
|
832
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
830
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(xt, function(r, n, i) {
|
|
833
831
|
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)), "";
|
|
834
832
|
}), t;
|
|
835
833
|
}
|
|
836
|
-
function
|
|
834
|
+
function vt(e) {
|
|
837
835
|
switch (e) {
|
|
838
836
|
case "sign-auto":
|
|
839
837
|
return {
|
|
@@ -881,14 +879,14 @@ function $r(e) {
|
|
|
881
879
|
notation: "scientific"
|
|
882
880
|
}, e = e.slice(1)), t) {
|
|
883
881
|
var r = e.slice(0, 2);
|
|
884
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
882
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !yt.test(e))
|
|
885
883
|
throw new Error("Malformed concise eng/scientific notation");
|
|
886
884
|
t.minimumIntegerDigits = e.length;
|
|
887
885
|
}
|
|
888
886
|
return t;
|
|
889
887
|
}
|
|
890
|
-
function
|
|
891
|
-
var t = {}, r =
|
|
888
|
+
function Xe(e) {
|
|
889
|
+
var t = {}, r = vt(e);
|
|
892
890
|
return r || t;
|
|
893
891
|
}
|
|
894
892
|
function Lr(e) {
|
|
@@ -926,13 +924,13 @@ function Lr(e) {
|
|
|
926
924
|
t.notation = "compact", t.compactDisplay = "long";
|
|
927
925
|
continue;
|
|
928
926
|
case "scientific":
|
|
929
|
-
t =
|
|
930
|
-
return
|
|
927
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(u, a) {
|
|
928
|
+
return d(d({}, u), Xe(a));
|
|
931
929
|
}, {}));
|
|
932
930
|
continue;
|
|
933
931
|
case "engineering":
|
|
934
|
-
t =
|
|
935
|
-
return
|
|
932
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(u, a) {
|
|
933
|
+
return d(d({}, u), Xe(a));
|
|
936
934
|
}, {}));
|
|
937
935
|
continue;
|
|
938
936
|
case "notation-simple":
|
|
@@ -977,7 +975,7 @@ function Lr(e) {
|
|
|
977
975
|
case "integer-width":
|
|
978
976
|
if (i.options.length > 1)
|
|
979
977
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
980
|
-
i.options[0].replace(wr, function(
|
|
978
|
+
i.options[0].replace(wr, function(u, a, l, f, c, b) {
|
|
981
979
|
if (a)
|
|
982
980
|
t.minimumIntegerDigits = l.length;
|
|
983
981
|
else {
|
|
@@ -990,28 +988,28 @@ function Lr(e) {
|
|
|
990
988
|
});
|
|
991
989
|
continue;
|
|
992
990
|
}
|
|
993
|
-
if (
|
|
991
|
+
if (yt.test(i.stem)) {
|
|
994
992
|
t.minimumIntegerDigits = i.stem.length;
|
|
995
993
|
continue;
|
|
996
994
|
}
|
|
997
|
-
if (
|
|
995
|
+
if (Ve.test(i.stem)) {
|
|
998
996
|
if (i.options.length > 1)
|
|
999
997
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1000
|
-
i.stem.replace(
|
|
998
|
+
i.stem.replace(Ve, function(u, a, l, f, c, b) {
|
|
1001
999
|
return l === "*" ? t.minimumFractionDigits = a.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1002
1000
|
});
|
|
1003
1001
|
var s = i.options[0];
|
|
1004
|
-
s === "w" ? t =
|
|
1002
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), ke(s)));
|
|
1005
1003
|
continue;
|
|
1006
1004
|
}
|
|
1007
|
-
if (
|
|
1008
|
-
t =
|
|
1005
|
+
if (xt.test(i.stem)) {
|
|
1006
|
+
t = d(d({}, t), ke(i.stem));
|
|
1009
1007
|
continue;
|
|
1010
1008
|
}
|
|
1011
|
-
var o =
|
|
1012
|
-
o && (t =
|
|
1013
|
-
var
|
|
1014
|
-
|
|
1009
|
+
var o = vt(i.stem);
|
|
1010
|
+
o && (t = d(d({}, t), o));
|
|
1011
|
+
var h = $r(i.stem);
|
|
1012
|
+
h && (t = d(d({}, t), h));
|
|
1015
1013
|
}
|
|
1016
1014
|
return t;
|
|
1017
1015
|
}
|
|
@@ -2436,9 +2434,9 @@ function Mr(e, t) {
|
|
|
2436
2434
|
if (i === "j") {
|
|
2437
2435
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2438
2436
|
s++, n++;
|
|
2439
|
-
var o = 1 + (s & 1),
|
|
2440
|
-
for ((a == "H" || a == "k") && (
|
|
2441
|
-
r +=
|
|
2437
|
+
var o = 1 + (s & 1), h = s < 2 ? 1 : 3 + (s >> 1), u = "a", a = Cr(t);
|
|
2438
|
+
for ((a == "H" || a == "k") && (h = 0); h-- > 0; )
|
|
2439
|
+
r += u;
|
|
2442
2440
|
for (; o-- > 0; )
|
|
2443
2441
|
r = a + r;
|
|
2444
2442
|
} else
|
|
@@ -2468,20 +2466,20 @@ function Cr(e) {
|
|
|
2468
2466
|
var i = J[n || ""] || J[r || ""] || J["".concat(r, "-001")] || J["001"];
|
|
2469
2467
|
return i[0];
|
|
2470
2468
|
}
|
|
2471
|
-
var ce, Rr = new RegExp("^".concat(
|
|
2472
|
-
function
|
|
2469
|
+
var ce, Rr = new RegExp("^".concat(Et.source, "*")), Ur = new RegExp("".concat(Et.source, "*$"));
|
|
2470
|
+
function p(e, t) {
|
|
2473
2471
|
return { start: e, end: t };
|
|
2474
2472
|
}
|
|
2475
2473
|
var Gr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Dr = !!String.fromCodePoint, Fr = !!Object.fromEntries, jr = !!String.prototype.codePointAt, Vr = !!String.prototype.trimStart, kr = !!String.prototype.trimEnd, Xr = !!Number.isSafeInteger, Wr = Xr ? Number.isSafeInteger : function(e) {
|
|
2476
2474
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2477
2475
|
}, xe = !0;
|
|
2478
2476
|
try {
|
|
2479
|
-
var zr =
|
|
2477
|
+
var zr = Ht("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2480
2478
|
xe = ((ce = zr.exec("a")) === null || ce === void 0 ? void 0 : ce[0]) === "a";
|
|
2481
2479
|
} catch (e) {
|
|
2482
2480
|
xe = !1;
|
|
2483
2481
|
}
|
|
2484
|
-
var
|
|
2482
|
+
var We = Gr ? (
|
|
2485
2483
|
// Native
|
|
2486
2484
|
function(t, r, n) {
|
|
2487
2485
|
return t.startsWith(r, n);
|
|
@@ -2503,14 +2501,14 @@ var Xe = Gr ? (
|
|
|
2503
2501
|
}
|
|
2504
2502
|
return n;
|
|
2505
2503
|
}
|
|
2506
|
-
),
|
|
2504
|
+
), ze = (
|
|
2507
2505
|
// native
|
|
2508
2506
|
Fr ? Object.fromEntries : (
|
|
2509
2507
|
// Ponyfill
|
|
2510
2508
|
function(t) {
|
|
2511
2509
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2512
|
-
var s = i[n], o = s[0],
|
|
2513
|
-
r[o] =
|
|
2510
|
+
var s = i[n], o = s[0], h = s[1];
|
|
2511
|
+
r[o] = h;
|
|
2514
2512
|
}
|
|
2515
2513
|
return r;
|
|
2516
2514
|
}
|
|
@@ -2550,23 +2548,23 @@ var Xe = Gr ? (
|
|
|
2550
2548
|
return t.replace(Ur, "");
|
|
2551
2549
|
}
|
|
2552
2550
|
);
|
|
2553
|
-
function
|
|
2551
|
+
function Ht(e, t) {
|
|
2554
2552
|
return new RegExp(e, t);
|
|
2555
2553
|
}
|
|
2556
|
-
var
|
|
2554
|
+
var ve;
|
|
2557
2555
|
if (xe) {
|
|
2558
|
-
var
|
|
2559
|
-
|
|
2556
|
+
var Ze = Ht("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2557
|
+
ve = function(t, r) {
|
|
2560
2558
|
var n;
|
|
2561
|
-
|
|
2562
|
-
var i =
|
|
2559
|
+
Ze.lastIndex = r;
|
|
2560
|
+
var i = Ze.exec(t);
|
|
2563
2561
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2564
2562
|
};
|
|
2565
2563
|
} else
|
|
2566
|
-
|
|
2564
|
+
ve = function(t, r) {
|
|
2567
2565
|
for (var n = []; ; ) {
|
|
2568
2566
|
var i = _t(t, r);
|
|
2569
|
-
if (i === void 0 ||
|
|
2567
|
+
if (i === void 0 || Tt(i) || Kr(i))
|
|
2570
2568
|
break;
|
|
2571
2569
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2572
2570
|
}
|
|
@@ -2594,16 +2592,16 @@ var Jr = (
|
|
|
2594
2592
|
if (s === 125 && t > 0)
|
|
2595
2593
|
break;
|
|
2596
2594
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2597
|
-
var
|
|
2595
|
+
var h = this.clonePosition();
|
|
2598
2596
|
this.bump(), i.push({
|
|
2599
2597
|
type: E.pound,
|
|
2600
|
-
location:
|
|
2598
|
+
location: p(h, this.clonePosition())
|
|
2601
2599
|
});
|
|
2602
2600
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2603
2601
|
if (n)
|
|
2604
2602
|
break;
|
|
2605
|
-
return this.error(m.UNMATCHED_CLOSING_TAG,
|
|
2606
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2603
|
+
return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2604
|
+
} else if (s === 60 && !this.ignoreTag && _e(this.peek() || 0)) {
|
|
2607
2605
|
var o = this.parseTag(t, r);
|
|
2608
2606
|
if (o.err)
|
|
2609
2607
|
return o;
|
|
@@ -2626,7 +2624,7 @@ var Jr = (
|
|
|
2626
2624
|
val: {
|
|
2627
2625
|
type: E.literal,
|
|
2628
2626
|
value: "<".concat(i, "/>"),
|
|
2629
|
-
location:
|
|
2627
|
+
location: p(n, this.clonePosition())
|
|
2630
2628
|
},
|
|
2631
2629
|
err: null
|
|
2632
2630
|
};
|
|
@@ -2634,24 +2632,24 @@ var Jr = (
|
|
|
2634
2632
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2635
2633
|
if (s.err)
|
|
2636
2634
|
return s;
|
|
2637
|
-
var o = s.val,
|
|
2635
|
+
var o = s.val, h = this.clonePosition();
|
|
2638
2636
|
if (this.bumpIf("</")) {
|
|
2639
|
-
if (this.isEOF() || !
|
|
2640
|
-
return this.error(m.INVALID_TAG,
|
|
2641
|
-
var
|
|
2642
|
-
return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG,
|
|
2637
|
+
if (this.isEOF() || !_e(this.char()))
|
|
2638
|
+
return this.error(m.INVALID_TAG, p(h, this.clonePosition()));
|
|
2639
|
+
var u = this.clonePosition(), a = this.parseTagName();
|
|
2640
|
+
return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG, p(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2643
2641
|
val: {
|
|
2644
2642
|
type: E.tag,
|
|
2645
2643
|
value: i,
|
|
2646
2644
|
children: o,
|
|
2647
|
-
location:
|
|
2645
|
+
location: p(n, this.clonePosition())
|
|
2648
2646
|
},
|
|
2649
2647
|
err: null
|
|
2650
|
-
} : this.error(m.INVALID_TAG,
|
|
2648
|
+
} : this.error(m.INVALID_TAG, p(h, this.clonePosition())));
|
|
2651
2649
|
} else
|
|
2652
|
-
return this.error(m.UNCLOSED_TAG,
|
|
2650
|
+
return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
|
|
2653
2651
|
} else
|
|
2654
|
-
return this.error(m.INVALID_TAG,
|
|
2652
|
+
return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
|
|
2655
2653
|
}, e.prototype.parseTagName = function() {
|
|
2656
2654
|
var t = this.offset();
|
|
2657
2655
|
for (this.bump(); !this.isEOF() && Yr(this.char()); )
|
|
@@ -2669,16 +2667,16 @@ var Jr = (
|
|
|
2669
2667
|
i += o;
|
|
2670
2668
|
continue;
|
|
2671
2669
|
}
|
|
2672
|
-
var
|
|
2673
|
-
if (
|
|
2674
|
-
i +=
|
|
2670
|
+
var h = this.tryParseLeftAngleBracket();
|
|
2671
|
+
if (h) {
|
|
2672
|
+
i += h;
|
|
2675
2673
|
continue;
|
|
2676
2674
|
}
|
|
2677
2675
|
break;
|
|
2678
2676
|
}
|
|
2679
|
-
var
|
|
2677
|
+
var u = p(n, this.clonePosition());
|
|
2680
2678
|
return {
|
|
2681
|
-
val: { type: E.literal, value: i, location:
|
|
2679
|
+
val: { type: E.literal, value: i, location: u },
|
|
2682
2680
|
err: null
|
|
2683
2681
|
};
|
|
2684
2682
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2726,14 +2724,14 @@ var Jr = (
|
|
|
2726
2724
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2727
2725
|
var n = this.clonePosition();
|
|
2728
2726
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2729
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2727
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
2730
2728
|
if (this.char() === 125)
|
|
2731
|
-
return this.bump(), this.error(m.EMPTY_ARGUMENT,
|
|
2729
|
+
return this.bump(), this.error(m.EMPTY_ARGUMENT, p(n, this.clonePosition()));
|
|
2732
2730
|
var i = this.parseIdentifierIfPossible().value;
|
|
2733
2731
|
if (!i)
|
|
2734
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2732
|
+
return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2735
2733
|
if (this.bumpSpace(), this.isEOF())
|
|
2736
|
-
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2734
|
+
return this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition()));
|
|
2737
2735
|
switch (this.char()) {
|
|
2738
2736
|
case 125:
|
|
2739
2737
|
return this.bump(), {
|
|
@@ -2741,25 +2739,25 @@ var Jr = (
|
|
|
2741
2739
|
type: E.argument,
|
|
2742
2740
|
// value does not include the opening and closing braces.
|
|
2743
2741
|
value: i,
|
|
2744
|
-
location:
|
|
2742
|
+
location: p(n, this.clonePosition())
|
|
2745
2743
|
},
|
|
2746
2744
|
err: null
|
|
2747
2745
|
};
|
|
2748
2746
|
case 44:
|
|
2749
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2747
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2750
2748
|
default:
|
|
2751
|
-
return this.error(m.MALFORMED_ARGUMENT,
|
|
2749
|
+
return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2752
2750
|
}
|
|
2753
2751
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2754
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2752
|
+
var t = this.clonePosition(), r = this.offset(), n = ve(this.message, r), i = r + n.length;
|
|
2755
2753
|
this.bumpTo(i);
|
|
2756
|
-
var s = this.clonePosition(), o =
|
|
2754
|
+
var s = this.clonePosition(), o = p(t, s);
|
|
2757
2755
|
return { value: n, location: o };
|
|
2758
2756
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2759
|
-
var s, o = this.clonePosition(),
|
|
2760
|
-
switch (
|
|
2757
|
+
var s, o = this.clonePosition(), h = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2758
|
+
switch (h) {
|
|
2761
2759
|
case "":
|
|
2762
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE,
|
|
2760
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, p(o, u));
|
|
2763
2761
|
case "number":
|
|
2764
2762
|
case "date":
|
|
2765
2763
|
case "time": {
|
|
@@ -2772,17 +2770,17 @@ var Jr = (
|
|
|
2772
2770
|
return f;
|
|
2773
2771
|
var c = Qr(f.val);
|
|
2774
2772
|
if (c.length === 0)
|
|
2775
|
-
return this.error(m.EXPECT_ARGUMENT_STYLE,
|
|
2776
|
-
var b =
|
|
2773
|
+
return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2774
|
+
var b = p(l, this.clonePosition());
|
|
2777
2775
|
a = { style: c, styleLocation: b };
|
|
2778
2776
|
}
|
|
2779
2777
|
var g = this.tryParseArgumentClose(i);
|
|
2780
2778
|
if (g.err)
|
|
2781
2779
|
return g;
|
|
2782
|
-
var y =
|
|
2783
|
-
if (a &&
|
|
2780
|
+
var y = p(i, this.clonePosition());
|
|
2781
|
+
if (a && We(a == null ? void 0 : a.style, "::", 0)) {
|
|
2784
2782
|
var T = Zr(a.style.slice(2));
|
|
2785
|
-
if (
|
|
2783
|
+
if (h === "number") {
|
|
2786
2784
|
var f = this.parseNumberSkeletonFromString(T, a.styleLocation);
|
|
2787
2785
|
return f.err ? f : {
|
|
2788
2786
|
val: { type: E.number, value: n, location: y, style: f.val },
|
|
@@ -2798,7 +2796,7 @@ var Jr = (
|
|
|
2798
2796
|
pattern: F,
|
|
2799
2797
|
location: a.styleLocation,
|
|
2800
2798
|
parsedOptions: this.shouldParseSkeletons ? Pr(F) : {}
|
|
2801
|
-
}, P =
|
|
2799
|
+
}, P = h === "date" ? E.date : E.time;
|
|
2802
2800
|
return {
|
|
2803
2801
|
val: { type: P, value: n, location: y, style: c },
|
|
2804
2802
|
err: null
|
|
@@ -2807,7 +2805,7 @@ var Jr = (
|
|
|
2807
2805
|
}
|
|
2808
2806
|
return {
|
|
2809
2807
|
val: {
|
|
2810
|
-
type:
|
|
2808
|
+
type: h === "number" ? E.number : h === "date" ? E.date : E.time,
|
|
2811
2809
|
value: n,
|
|
2812
2810
|
location: y,
|
|
2813
2811
|
style: (s = a == null ? void 0 : a.style) !== null && s !== void 0 ? s : null
|
|
@@ -2820,50 +2818,50 @@ var Jr = (
|
|
|
2820
2818
|
case "select": {
|
|
2821
2819
|
var H = this.clonePosition();
|
|
2822
2820
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2823
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2821
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(H, d({}, H)));
|
|
2824
2822
|
this.bumpSpace();
|
|
2825
2823
|
var j = this.parseIdentifierIfPossible(), B = 0;
|
|
2826
|
-
if (
|
|
2824
|
+
if (h !== "select" && j.value === "offset") {
|
|
2827
2825
|
if (!this.bumpIf(":"))
|
|
2828
|
-
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2826
|
+
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
2829
2827
|
this.bumpSpace();
|
|
2830
2828
|
var f = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2831
2829
|
if (f.err)
|
|
2832
2830
|
return f;
|
|
2833
2831
|
this.bumpSpace(), j = this.parseIdentifierIfPossible(), B = f.val;
|
|
2834
2832
|
}
|
|
2835
|
-
var Q = this.tryParsePluralOrSelectOptions(t,
|
|
2833
|
+
var Q = this.tryParsePluralOrSelectOptions(t, h, r, j);
|
|
2836
2834
|
if (Q.err)
|
|
2837
2835
|
return Q;
|
|
2838
2836
|
var g = this.tryParseArgumentClose(i);
|
|
2839
2837
|
if (g.err)
|
|
2840
2838
|
return g;
|
|
2841
|
-
var
|
|
2842
|
-
return
|
|
2839
|
+
var $e = p(i, this.clonePosition());
|
|
2840
|
+
return h === "select" ? {
|
|
2843
2841
|
val: {
|
|
2844
2842
|
type: E.select,
|
|
2845
2843
|
value: n,
|
|
2846
|
-
options:
|
|
2847
|
-
location:
|
|
2844
|
+
options: ze(Q.val),
|
|
2845
|
+
location: $e
|
|
2848
2846
|
},
|
|
2849
2847
|
err: null
|
|
2850
2848
|
} : {
|
|
2851
2849
|
val: {
|
|
2852
2850
|
type: E.plural,
|
|
2853
2851
|
value: n,
|
|
2854
|
-
options:
|
|
2852
|
+
options: ze(Q.val),
|
|
2855
2853
|
offset: B,
|
|
2856
|
-
pluralType:
|
|
2857
|
-
location:
|
|
2854
|
+
pluralType: h === "plural" ? "cardinal" : "ordinal",
|
|
2855
|
+
location: $e
|
|
2858
2856
|
},
|
|
2859
2857
|
err: null
|
|
2860
2858
|
};
|
|
2861
2859
|
}
|
|
2862
2860
|
default:
|
|
2863
|
-
return this.error(m.INVALID_ARGUMENT_TYPE,
|
|
2861
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, p(o, u));
|
|
2864
2862
|
}
|
|
2865
2863
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2866
|
-
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2864
|
+
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2867
2865
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2868
2866
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2869
2867
|
var n = this.char();
|
|
@@ -2872,7 +2870,7 @@ var Jr = (
|
|
|
2872
2870
|
this.bump();
|
|
2873
2871
|
var i = this.clonePosition();
|
|
2874
2872
|
if (!this.bumpUntil("'"))
|
|
2875
|
-
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2873
|
+
return this.error(m.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, p(i, this.clonePosition()));
|
|
2876
2874
|
this.bump();
|
|
2877
2875
|
break;
|
|
2878
2876
|
}
|
|
@@ -2916,50 +2914,50 @@ var Jr = (
|
|
|
2916
2914
|
err: null
|
|
2917
2915
|
};
|
|
2918
2916
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2919
|
-
for (var s, o = !1,
|
|
2917
|
+
for (var s, o = !1, h = [], u = /* @__PURE__ */ new Set(), a = i.value, l = i.location; ; ) {
|
|
2920
2918
|
if (a.length === 0) {
|
|
2921
2919
|
var f = this.clonePosition();
|
|
2922
2920
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2923
2921
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2924
2922
|
if (c.err)
|
|
2925
2923
|
return c;
|
|
2926
|
-
l =
|
|
2924
|
+
l = p(f, this.clonePosition()), a = this.message.slice(f.offset, this.offset());
|
|
2927
2925
|
} else
|
|
2928
2926
|
break;
|
|
2929
2927
|
}
|
|
2930
|
-
if (
|
|
2928
|
+
if (u.has(a))
|
|
2931
2929
|
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2932
2930
|
a === "other" && (o = !0), this.bumpSpace();
|
|
2933
2931
|
var b = this.clonePosition();
|
|
2934
2932
|
if (!this.bumpIf("{"))
|
|
2935
|
-
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
2933
|
+
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
2936
2934
|
var g = this.parseMessage(t + 1, r, n);
|
|
2937
2935
|
if (g.err)
|
|
2938
2936
|
return g;
|
|
2939
2937
|
var y = this.tryParseArgumentClose(b);
|
|
2940
2938
|
if (y.err)
|
|
2941
2939
|
return y;
|
|
2942
|
-
|
|
2940
|
+
h.push([
|
|
2943
2941
|
a,
|
|
2944
2942
|
{
|
|
2945
2943
|
value: g.val,
|
|
2946
|
-
location:
|
|
2944
|
+
location: p(b, this.clonePosition())
|
|
2947
2945
|
}
|
|
2948
|
-
]),
|
|
2946
|
+
]), u.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, l = s.location;
|
|
2949
2947
|
}
|
|
2950
|
-
return
|
|
2948
|
+
return h.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: h, err: null };
|
|
2951
2949
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2952
2950
|
var n = 1, i = this.clonePosition();
|
|
2953
2951
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2954
2952
|
for (var s = !1, o = 0; !this.isEOF(); ) {
|
|
2955
|
-
var
|
|
2956
|
-
if (
|
|
2957
|
-
s = !0, o = o * 10 + (
|
|
2953
|
+
var h = this.char();
|
|
2954
|
+
if (h >= 48 && h <= 57)
|
|
2955
|
+
s = !0, o = o * 10 + (h - 48), this.bump();
|
|
2958
2956
|
else
|
|
2959
2957
|
break;
|
|
2960
2958
|
}
|
|
2961
|
-
var
|
|
2962
|
-
return s ? (o *= n, Wr(o) ? { val: o, err: null } : this.error(r,
|
|
2959
|
+
var u = p(i, this.clonePosition());
|
|
2960
|
+
return s ? (o *= n, Wr(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
|
|
2963
2961
|
}, e.prototype.offset = function() {
|
|
2964
2962
|
return this.position.offset;
|
|
2965
2963
|
}, e.prototype.isEOF = function() {
|
|
@@ -2993,7 +2991,7 @@ var Jr = (
|
|
|
2993
2991
|
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);
|
|
2994
2992
|
}
|
|
2995
2993
|
}, e.prototype.bumpIf = function(t) {
|
|
2996
|
-
if (
|
|
2994
|
+
if (We(this.message, t, this.offset())) {
|
|
2997
2995
|
for (var r = 0; r < t.length; r++)
|
|
2998
2996
|
this.bump();
|
|
2999
2997
|
return !0;
|
|
@@ -3015,7 +3013,7 @@ var Jr = (
|
|
|
3015
3013
|
break;
|
|
3016
3014
|
}
|
|
3017
3015
|
}, e.prototype.bumpSpace = function() {
|
|
3018
|
-
for (; !this.isEOF() &&
|
|
3016
|
+
for (; !this.isEOF() && Tt(this.char()); )
|
|
3019
3017
|
this.bump();
|
|
3020
3018
|
}, e.prototype.peek = function() {
|
|
3021
3019
|
if (this.isEOF())
|
|
@@ -3025,16 +3023,16 @@ var Jr = (
|
|
|
3025
3023
|
}, e;
|
|
3026
3024
|
}()
|
|
3027
3025
|
);
|
|
3028
|
-
function
|
|
3026
|
+
function _e(e) {
|
|
3029
3027
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3030
3028
|
}
|
|
3031
3029
|
function qr(e) {
|
|
3032
|
-
return
|
|
3030
|
+
return _e(e) || e === 47;
|
|
3033
3031
|
}
|
|
3034
3032
|
function Yr(e) {
|
|
3035
3033
|
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;
|
|
3036
3034
|
}
|
|
3037
|
-
function
|
|
3035
|
+
function Tt(e) {
|
|
3038
3036
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3039
3037
|
}
|
|
3040
3038
|
function Kr(e) {
|
|
@@ -3042,15 +3040,15 @@ function Kr(e) {
|
|
|
3042
3040
|
}
|
|
3043
3041
|
function He(e) {
|
|
3044
3042
|
e.forEach(function(t) {
|
|
3045
|
-
if (delete t.location,
|
|
3043
|
+
if (delete t.location, pt(t) || dt(t))
|
|
3046
3044
|
for (var r in t.options)
|
|
3047
3045
|
delete t.options[r].location, He(t.options[r].value);
|
|
3048
3046
|
else
|
|
3049
|
-
|
|
3047
|
+
ft(t) && gt(t.style) || (ct(t) || mt(t)) && Ee(t.style) ? delete t.style.location : bt(t) && He(t.children);
|
|
3050
3048
|
});
|
|
3051
3049
|
}
|
|
3052
3050
|
function en(e, t) {
|
|
3053
|
-
t === void 0 && (t = {}), t =
|
|
3051
|
+
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3054
3052
|
var r = new Jr(e, t).parse();
|
|
3055
3053
|
if (r.err) {
|
|
3056
3054
|
var n = SyntaxError(m[r.err.kind]);
|
|
@@ -3074,7 +3072,7 @@ var ie = (
|
|
|
3074
3072
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3075
3073
|
}, t;
|
|
3076
3074
|
}(Error)
|
|
3077
|
-
),
|
|
3075
|
+
), Qe = (
|
|
3078
3076
|
/** @class */
|
|
3079
3077
|
function(e) {
|
|
3080
3078
|
ne(t, e);
|
|
@@ -3115,24 +3113,24 @@ function sn(e) {
|
|
|
3115
3113
|
return typeof e == "function";
|
|
3116
3114
|
}
|
|
3117
3115
|
function Y(e, t, r, n, i, s, o) {
|
|
3118
|
-
if (e.length === 1 &&
|
|
3116
|
+
if (e.length === 1 && je(e[0]))
|
|
3119
3117
|
return [
|
|
3120
3118
|
{
|
|
3121
3119
|
type: x.literal,
|
|
3122
3120
|
value: e[0].value
|
|
3123
3121
|
}
|
|
3124
3122
|
];
|
|
3125
|
-
for (var
|
|
3126
|
-
var l = a[
|
|
3127
|
-
if (
|
|
3128
|
-
|
|
3123
|
+
for (var h = [], u = 0, a = e; u < a.length; u++) {
|
|
3124
|
+
var l = a[u];
|
|
3125
|
+
if (je(l)) {
|
|
3126
|
+
h.push({
|
|
3129
3127
|
type: x.literal,
|
|
3130
3128
|
value: l.value
|
|
3131
3129
|
});
|
|
3132
3130
|
continue;
|
|
3133
3131
|
}
|
|
3134
3132
|
if (Br(l)) {
|
|
3135
|
-
typeof s == "number" &&
|
|
3133
|
+
typeof s == "number" && h.push({
|
|
3136
3134
|
type: x.literal,
|
|
3137
3135
|
value: r.getNumberFormat(t).format(s)
|
|
3138
3136
|
});
|
|
@@ -3143,55 +3141,55 @@ function Y(e, t, r, n, i, s, o) {
|
|
|
3143
3141
|
throw new rn(f, o);
|
|
3144
3142
|
var c = i[f];
|
|
3145
3143
|
if (Sr(l)) {
|
|
3146
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3144
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), h.push({
|
|
3147
3145
|
type: typeof c == "string" ? x.literal : x.object,
|
|
3148
3146
|
value: c
|
|
3149
3147
|
});
|
|
3150
3148
|
continue;
|
|
3151
3149
|
}
|
|
3152
|
-
if (
|
|
3150
|
+
if (ct(l)) {
|
|
3153
3151
|
var b = typeof l.style == "string" ? n.date[l.style] : Ee(l.style) ? l.style.parsedOptions : void 0;
|
|
3154
|
-
|
|
3152
|
+
h.push({
|
|
3155
3153
|
type: x.literal,
|
|
3156
3154
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3157
3155
|
});
|
|
3158
3156
|
continue;
|
|
3159
3157
|
}
|
|
3160
|
-
if (
|
|
3158
|
+
if (mt(l)) {
|
|
3161
3159
|
var b = typeof l.style == "string" ? n.time[l.style] : Ee(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3162
|
-
|
|
3160
|
+
h.push({
|
|
3163
3161
|
type: x.literal,
|
|
3164
3162
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3165
3163
|
});
|
|
3166
3164
|
continue;
|
|
3167
3165
|
}
|
|
3168
|
-
if (
|
|
3169
|
-
var b = typeof l.style == "string" ? n.number[l.style] :
|
|
3170
|
-
b && b.scale && (c = c * (b.scale || 1)),
|
|
3166
|
+
if (ft(l)) {
|
|
3167
|
+
var b = typeof l.style == "string" ? n.number[l.style] : gt(l.style) ? l.style.parsedOptions : void 0;
|
|
3168
|
+
b && b.scale && (c = c * (b.scale || 1)), h.push({
|
|
3171
3169
|
type: x.literal,
|
|
3172
3170
|
value: r.getNumberFormat(t, b).format(c)
|
|
3173
3171
|
});
|
|
3174
3172
|
continue;
|
|
3175
3173
|
}
|
|
3176
|
-
if (
|
|
3174
|
+
if (bt(l)) {
|
|
3177
3175
|
var g = l.children, y = l.value, T = i[y];
|
|
3178
3176
|
if (!sn(T))
|
|
3179
3177
|
throw new tn(y, "function", o);
|
|
3180
3178
|
var F = Y(g, t, r, n, i, s), P = T(F.map(function(B) {
|
|
3181
3179
|
return B.value;
|
|
3182
3180
|
}));
|
|
3183
|
-
Array.isArray(P) || (P = [P]),
|
|
3181
|
+
Array.isArray(P) || (P = [P]), h.push.apply(h, P.map(function(B) {
|
|
3184
3182
|
return {
|
|
3185
3183
|
type: typeof B == "string" ? x.literal : x.object,
|
|
3186
3184
|
value: B
|
|
3187
3185
|
};
|
|
3188
3186
|
}));
|
|
3189
3187
|
}
|
|
3190
|
-
if (
|
|
3188
|
+
if (pt(l)) {
|
|
3191
3189
|
var H = l.options[c] || l.options.other;
|
|
3192
3190
|
if (!H)
|
|
3193
|
-
throw new
|
|
3194
|
-
|
|
3191
|
+
throw new Qe(l.value, c, Object.keys(l.options), o);
|
|
3192
|
+
h.push.apply(h, Y(H.value, t, r, n, i));
|
|
3195
3193
|
continue;
|
|
3196
3194
|
}
|
|
3197
3195
|
if (dt(l)) {
|
|
@@ -3205,22 +3203,22 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3205
3203
|
H = l.options[j] || l.options.other;
|
|
3206
3204
|
}
|
|
3207
3205
|
if (!H)
|
|
3208
|
-
throw new
|
|
3209
|
-
|
|
3206
|
+
throw new Qe(l.value, c, Object.keys(l.options), o);
|
|
3207
|
+
h.push.apply(h, Y(H.value, t, r, n, i, c - (l.offset || 0)));
|
|
3210
3208
|
continue;
|
|
3211
3209
|
}
|
|
3212
3210
|
}
|
|
3213
|
-
return nn(
|
|
3211
|
+
return nn(h);
|
|
3214
3212
|
}
|
|
3215
3213
|
function on(e, t) {
|
|
3216
|
-
return t ?
|
|
3217
|
-
return r[n] =
|
|
3214
|
+
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3215
|
+
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
|
3218
3216
|
}, {})) : e;
|
|
3219
3217
|
}
|
|
3220
3218
|
function an(e, t) {
|
|
3221
3219
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3222
3220
|
return r[n] = on(e[n], t[n]), r;
|
|
3223
|
-
},
|
|
3221
|
+
}, d({}, e)) : e;
|
|
3224
3222
|
}
|
|
3225
3223
|
function me(e) {
|
|
3226
3224
|
return {
|
|
@@ -3236,7 +3234,7 @@ function me(e) {
|
|
|
3236
3234
|
}
|
|
3237
3235
|
};
|
|
3238
3236
|
}
|
|
3239
|
-
function
|
|
3237
|
+
function hn(e) {
|
|
3240
3238
|
return e === void 0 && (e = {
|
|
3241
3239
|
number: {},
|
|
3242
3240
|
dateTime: {},
|
|
@@ -3245,7 +3243,7 @@ function un(e) {
|
|
|
3245
3243
|
getNumberFormat: le(function() {
|
|
3246
3244
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3247
3245
|
r[n] = arguments[n];
|
|
3248
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3246
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ue([void 0], r, !1)))();
|
|
3249
3247
|
}, {
|
|
3250
3248
|
cache: me(e.number),
|
|
3251
3249
|
strategy: fe.variadic
|
|
@@ -3253,7 +3251,7 @@ function un(e) {
|
|
|
3253
3251
|
getDateTimeFormat: le(function() {
|
|
3254
3252
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3255
3253
|
r[n] = arguments[n];
|
|
3256
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3254
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ue([void 0], r, !1)))();
|
|
3257
3255
|
}, {
|
|
3258
3256
|
cache: me(e.dateTime),
|
|
3259
3257
|
strategy: fe.variadic
|
|
@@ -3261,14 +3259,14 @@ function un(e) {
|
|
|
3261
3259
|
getPluralRules: le(function() {
|
|
3262
3260
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3263
3261
|
r[n] = arguments[n];
|
|
3264
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3262
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ue([void 0], r, !1)))();
|
|
3265
3263
|
}, {
|
|
3266
3264
|
cache: me(e.pluralRules),
|
|
3267
3265
|
strategy: fe.variadic
|
|
3268
3266
|
})
|
|
3269
3267
|
};
|
|
3270
3268
|
}
|
|
3271
|
-
var
|
|
3269
|
+
var un = (
|
|
3272
3270
|
/** @class */
|
|
3273
3271
|
function() {
|
|
3274
3272
|
function e(t, r, n, i) {
|
|
@@ -3278,20 +3276,20 @@ var hn = (
|
|
|
3278
3276
|
number: {},
|
|
3279
3277
|
dateTime: {},
|
|
3280
3278
|
pluralRules: {}
|
|
3281
|
-
}, this.format = function(
|
|
3282
|
-
var a = s.formatToParts(
|
|
3279
|
+
}, this.format = function(u) {
|
|
3280
|
+
var a = s.formatToParts(u);
|
|
3283
3281
|
if (a.length === 1)
|
|
3284
3282
|
return a[0].value;
|
|
3285
3283
|
var l = a.reduce(function(f, c) {
|
|
3286
3284
|
return !f.length || c.type !== x.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
|
|
3287
3285
|
}, []);
|
|
3288
3286
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3289
|
-
}, this.formatToParts = function(
|
|
3290
|
-
return Y(s.ast, s.locales, s.formatters, s.formats,
|
|
3287
|
+
}, this.formatToParts = function(u) {
|
|
3288
|
+
return Y(s.ast, s.locales, s.formatters, s.formats, u, void 0, s.message);
|
|
3291
3289
|
}, this.resolvedOptions = function() {
|
|
3292
|
-
var
|
|
3290
|
+
var u;
|
|
3293
3291
|
return {
|
|
3294
|
-
locale: ((
|
|
3292
|
+
locale: ((u = s.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3295
3293
|
};
|
|
3296
3294
|
}, this.getAst = function() {
|
|
3297
3295
|
return s.ast;
|
|
@@ -3300,13 +3298,13 @@ var hn = (
|
|
|
3300
3298
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3301
3299
|
var o = i || {};
|
|
3302
3300
|
o.formatters;
|
|
3303
|
-
var
|
|
3304
|
-
this.ast = e.__parse(t,
|
|
3301
|
+
var h = Er(o, ["formatters"]);
|
|
3302
|
+
this.ast = e.__parse(t, d(d({}, h), { locale: this.resolvedLocale }));
|
|
3305
3303
|
} else
|
|
3306
3304
|
this.ast = t;
|
|
3307
3305
|
if (!Array.isArray(this.ast))
|
|
3308
3306
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3309
|
-
this.formats = an(e.formats, n), this.formatters = i && i.formatters ||
|
|
3307
|
+
this.formats = an(e.formats, n), this.formatters = i && i.formatters || hn(this.formatterCache);
|
|
3310
3308
|
}
|
|
3311
3309
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3312
3310
|
get: function() {
|
|
@@ -3401,7 +3399,7 @@ function ln(e, t) {
|
|
|
3401
3399
|
n = void 0;
|
|
3402
3400
|
return n;
|
|
3403
3401
|
}
|
|
3404
|
-
const S = {}, fn = (e, t, r) => r && (t in S || (S[t] = {}), e in S[t] || (S[t][e] = r), r),
|
|
3402
|
+
const S = {}, fn = (e, t, r) => r && (t in S || (S[t] = {}), e in S[t] || (S[t][e] = r), r), St = (e, t) => {
|
|
3405
3403
|
if (t == null)
|
|
3406
3404
|
return;
|
|
3407
3405
|
if (t in S && e in S[t])
|
|
@@ -3413,48 +3411,48 @@ const S = {}, fn = (e, t, r) => r && (t in S || (S[t] = {}), e in S[t] || (S[t][
|
|
|
3413
3411
|
return fn(e, t, s);
|
|
3414
3412
|
}
|
|
3415
3413
|
};
|
|
3416
|
-
let
|
|
3414
|
+
let Ie;
|
|
3417
3415
|
const Z = re({});
|
|
3418
3416
|
function cn(e) {
|
|
3419
|
-
return
|
|
3417
|
+
return Ie[e] || null;
|
|
3420
3418
|
}
|
|
3421
|
-
function
|
|
3422
|
-
return e in
|
|
3419
|
+
function Bt(e) {
|
|
3420
|
+
return e in Ie;
|
|
3423
3421
|
}
|
|
3424
3422
|
function mn(e, t) {
|
|
3425
|
-
if (!
|
|
3423
|
+
if (!Bt(e))
|
|
3426
3424
|
return null;
|
|
3427
3425
|
const r = cn(e);
|
|
3428
3426
|
return ln(r, t);
|
|
3429
3427
|
}
|
|
3430
|
-
function
|
|
3428
|
+
function pn(e) {
|
|
3431
3429
|
if (e == null)
|
|
3432
3430
|
return;
|
|
3433
3431
|
const t = se(e);
|
|
3434
3432
|
for (let r = 0; r < t.length; r++) {
|
|
3435
3433
|
const n = t[r];
|
|
3436
|
-
if (
|
|
3434
|
+
if (Bt(n))
|
|
3437
3435
|
return n;
|
|
3438
3436
|
}
|
|
3439
3437
|
}
|
|
3440
|
-
function
|
|
3441
|
-
delete S[e], Z.update((r) => (r[e] =
|
|
3438
|
+
function At(e, ...t) {
|
|
3439
|
+
delete S[e], Z.update((r) => (r[e] = gr.all([r[e] || {}, ...t]), r));
|
|
3442
3440
|
}
|
|
3443
3441
|
U(
|
|
3444
3442
|
[Z],
|
|
3445
3443
|
([e]) => Object.keys(e)
|
|
3446
3444
|
);
|
|
3447
|
-
Z.subscribe((e) =>
|
|
3445
|
+
Z.subscribe((e) => Ie = e);
|
|
3448
3446
|
const K = {};
|
|
3449
|
-
function
|
|
3447
|
+
function dn(e, t) {
|
|
3450
3448
|
K[e].delete(t), K[e].size === 0 && delete K[e];
|
|
3451
3449
|
}
|
|
3452
|
-
function
|
|
3450
|
+
function Pt(e) {
|
|
3453
3451
|
return K[e];
|
|
3454
3452
|
}
|
|
3455
3453
|
function bn(e) {
|
|
3456
3454
|
return se(e).map((t) => {
|
|
3457
|
-
const r =
|
|
3455
|
+
const r = Pt(t);
|
|
3458
3456
|
return [t, r ? [...r] : []];
|
|
3459
3457
|
}).filter(([, t]) => t.length > 0);
|
|
3460
3458
|
}
|
|
@@ -3462,17 +3460,17 @@ function Te(e) {
|
|
|
3462
3460
|
return e == null ? !1 : se(e).some(
|
|
3463
3461
|
(t) => {
|
|
3464
3462
|
var r;
|
|
3465
|
-
return (r =
|
|
3463
|
+
return (r = Pt(t)) == null ? void 0 : r.size;
|
|
3466
3464
|
}
|
|
3467
3465
|
);
|
|
3468
3466
|
}
|
|
3469
3467
|
function gn(e, t) {
|
|
3470
3468
|
return Promise.all(
|
|
3471
|
-
t.map((n) => (
|
|
3472
|
-
).then((n) =>
|
|
3469
|
+
t.map((n) => (dn(e, n), n().then((i) => i.default || i)))
|
|
3470
|
+
).then((n) => At(e, ...n));
|
|
3473
3471
|
}
|
|
3474
3472
|
const V = {};
|
|
3475
|
-
function
|
|
3473
|
+
function Nt(e) {
|
|
3476
3474
|
if (!Te(e))
|
|
3477
3475
|
return e in V ? V[e] : Promise.resolve();
|
|
3478
3476
|
const t = bn(e);
|
|
@@ -3482,7 +3480,7 @@ function Pt(e) {
|
|
|
3482
3480
|
)
|
|
3483
3481
|
).then(() => {
|
|
3484
3482
|
if (Te(e))
|
|
3485
|
-
return
|
|
3483
|
+
return Nt(e);
|
|
3486
3484
|
delete V[e];
|
|
3487
3485
|
}), V[e];
|
|
3488
3486
|
}
|
|
@@ -3526,23 +3524,23 @@ const En = {
|
|
|
3526
3524
|
function R() {
|
|
3527
3525
|
return yn;
|
|
3528
3526
|
}
|
|
3529
|
-
const
|
|
3530
|
-
var
|
|
3531
|
-
for (var r in t)
|
|
3532
|
-
Tn.call(t, r) &&
|
|
3533
|
-
if (
|
|
3534
|
-
for (var r of
|
|
3535
|
-
Sn.call(t, r) &&
|
|
3527
|
+
const pe = re(!1);
|
|
3528
|
+
var vn = Object.defineProperty, _n = Object.defineProperties, Hn = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, Tn = Object.prototype.hasOwnProperty, Sn = Object.prototype.propertyIsEnumerable, qe = (e, t, r) => t in e ? vn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bn = (e, t) => {
|
|
3529
|
+
for (var r in t || (t = {}))
|
|
3530
|
+
Tn.call(t, r) && qe(e, r, t[r]);
|
|
3531
|
+
if (Je)
|
|
3532
|
+
for (var r of Je(t))
|
|
3533
|
+
Sn.call(t, r) && qe(e, r, t[r]);
|
|
3536
3534
|
return e;
|
|
3537
|
-
}, An = (e, t) =>
|
|
3535
|
+
}, An = (e, t) => _n(e, Hn(t));
|
|
3538
3536
|
let Se;
|
|
3539
3537
|
const ee = re(null);
|
|
3540
|
-
function
|
|
3538
|
+
function Ye(e) {
|
|
3541
3539
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3542
3540
|
}
|
|
3543
3541
|
function se(e, t = R().fallbackLocale) {
|
|
3544
|
-
const r =
|
|
3545
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3542
|
+
const r = Ye(e);
|
|
3543
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Ye(t)])] : r;
|
|
3546
3544
|
}
|
|
3547
3545
|
function A() {
|
|
3548
3546
|
return Se != null ? Se : void 0;
|
|
@@ -3551,16 +3549,16 @@ ee.subscribe((e) => {
|
|
|
3551
3549
|
Se = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3552
3550
|
});
|
|
3553
3551
|
const Pn = (e) => {
|
|
3554
|
-
if (e &&
|
|
3552
|
+
if (e && pn(e) && Te(e)) {
|
|
3555
3553
|
const { loadingDelay: t } = R();
|
|
3556
3554
|
let r;
|
|
3557
3555
|
return typeof window != "undefined" && A() != null && t ? r = window.setTimeout(
|
|
3558
|
-
() =>
|
|
3556
|
+
() => pe.set(!0),
|
|
3559
3557
|
t
|
|
3560
|
-
) :
|
|
3558
|
+
) : pe.set(!0), Nt(e).then(() => {
|
|
3561
3559
|
ee.set(e);
|
|
3562
3560
|
}).finally(() => {
|
|
3563
|
-
clearTimeout(r),
|
|
3561
|
+
clearTimeout(r), pe.set(!1);
|
|
3564
3562
|
});
|
|
3565
3563
|
}
|
|
3566
3564
|
return ee.set(e);
|
|
@@ -3573,20 +3571,20 @@ const Pn = (e) => {
|
|
|
3573
3571
|
return i in t ? t[i] : t[i] = e(n);
|
|
3574
3572
|
};
|
|
3575
3573
|
};
|
|
3576
|
-
var Nn = Object.defineProperty, te = Object.getOwnPropertySymbols,
|
|
3574
|
+
var Nn = Object.defineProperty, te = Object.getOwnPropertySymbols, Ot = Object.prototype.hasOwnProperty, It = Object.prototype.propertyIsEnumerable, Ke = (e, t, r) => t in e ? Nn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, we = (e, t) => {
|
|
3577
3575
|
for (var r in t || (t = {}))
|
|
3578
|
-
|
|
3576
|
+
Ot.call(t, r) && Ke(e, r, t[r]);
|
|
3579
3577
|
if (te)
|
|
3580
3578
|
for (var r of te(t))
|
|
3581
|
-
|
|
3579
|
+
It.call(t, r) && Ke(e, r, t[r]);
|
|
3582
3580
|
return e;
|
|
3583
3581
|
}, D = (e, t) => {
|
|
3584
3582
|
var r = {};
|
|
3585
3583
|
for (var n in e)
|
|
3586
|
-
|
|
3584
|
+
Ot.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3587
3585
|
if (e != null && te)
|
|
3588
3586
|
for (var n of te(e))
|
|
3589
|
-
t.indexOf(n) < 0 &&
|
|
3587
|
+
t.indexOf(n) < 0 && It.call(e, n) && (r[n] = e[n]);
|
|
3590
3588
|
return r;
|
|
3591
3589
|
};
|
|
3592
3590
|
const W = (e, t) => {
|
|
@@ -3623,24 +3621,24 @@ const W = (e, t) => {
|
|
|
3623
3621
|
} = t, n = D(t, [
|
|
3624
3622
|
"locale"
|
|
3625
3623
|
]);
|
|
3626
|
-
return On(
|
|
3624
|
+
return On(we({ locale: r }, n));
|
|
3627
3625
|
}, Ln = (e = {}) => {
|
|
3628
3626
|
var t = e, {
|
|
3629
3627
|
locale: r = A()
|
|
3630
3628
|
} = t, n = D(t, [
|
|
3631
3629
|
"locale"
|
|
3632
3630
|
]);
|
|
3633
|
-
return In(
|
|
3631
|
+
return In(we({ locale: r }, n));
|
|
3634
3632
|
}, Mn = (e = {}) => {
|
|
3635
3633
|
var t = e, {
|
|
3636
3634
|
locale: r = A()
|
|
3637
3635
|
} = t, n = D(t, [
|
|
3638
3636
|
"locale"
|
|
3639
3637
|
]);
|
|
3640
|
-
return wn(
|
|
3638
|
+
return wn(we({ locale: r }, n));
|
|
3641
3639
|
}, Cn = oe(
|
|
3642
3640
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3643
|
-
(e, t = A()) => new
|
|
3641
|
+
(e, t = A()) => new un(e, t, R().formats, {
|
|
3644
3642
|
ignoreTag: R().ignoreTag
|
|
3645
3643
|
})
|
|
3646
3644
|
), Rn = (e, t = {}) => {
|
|
@@ -3648,26 +3646,26 @@ const W = (e, t) => {
|
|
|
3648
3646
|
let o = t;
|
|
3649
3647
|
typeof e == "object" && (o = e, e = o.id);
|
|
3650
3648
|
const {
|
|
3651
|
-
values:
|
|
3652
|
-
locale:
|
|
3649
|
+
values: h,
|
|
3650
|
+
locale: u = A(),
|
|
3653
3651
|
default: a
|
|
3654
3652
|
} = o;
|
|
3655
|
-
if (
|
|
3653
|
+
if (u == null)
|
|
3656
3654
|
throw new Error(
|
|
3657
3655
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3658
3656
|
);
|
|
3659
|
-
let l =
|
|
3657
|
+
let l = St(e, u);
|
|
3660
3658
|
if (!l)
|
|
3661
|
-
l = (s = (i = (n = (r = R()).handleMissingMessage) == null ? void 0 : n.call(r, { locale:
|
|
3659
|
+
l = (s = (i = (n = (r = R()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3662
3660
|
else if (typeof l != "string")
|
|
3663
3661
|
return console.warn(
|
|
3664
3662
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3665
3663
|
), l;
|
|
3666
|
-
if (!
|
|
3664
|
+
if (!h)
|
|
3667
3665
|
return l;
|
|
3668
3666
|
let f = l;
|
|
3669
3667
|
try {
|
|
3670
|
-
f = Cn(l,
|
|
3668
|
+
f = Cn(l, u).format(h);
|
|
3671
3669
|
} catch (c) {
|
|
3672
3670
|
c instanceof Error && console.warn(
|
|
3673
3671
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3675,18 +3673,18 @@ const W = (e, t) => {
|
|
|
3675
3673
|
);
|
|
3676
3674
|
}
|
|
3677
3675
|
return f;
|
|
3678
|
-
}, Un = (e, t) => Mn(t).format(e), Gn = (e, t) => Ln(t).format(e), Dn = (e, t) => $n(t).format(e), Fn = (e, t = A()) =>
|
|
3676
|
+
}, Un = (e, t) => Mn(t).format(e), Gn = (e, t) => Ln(t).format(e), Dn = (e, t) => $n(t).format(e), Fn = (e, t = A()) => St(e, t), jn = U([G, Z], () => Rn);
|
|
3679
3677
|
U([G], () => Un);
|
|
3680
3678
|
U([G], () => Gn);
|
|
3681
3679
|
U([G], () => Dn);
|
|
3682
3680
|
U([G, Z], () => Fn);
|
|
3683
|
-
function
|
|
3684
|
-
|
|
3681
|
+
function et(e, t) {
|
|
3682
|
+
At(e, t);
|
|
3685
3683
|
}
|
|
3686
3684
|
function Vn(e) {
|
|
3687
3685
|
G.set(e);
|
|
3688
3686
|
}
|
|
3689
|
-
const
|
|
3687
|
+
const tt = {
|
|
3690
3688
|
en: {
|
|
3691
3689
|
errServerUnavailable: "Server unavailable",
|
|
3692
3690
|
errEmailVerification: "Sorry! Your e-mail could not be verified. Please try again",
|
|
@@ -3704,14 +3702,14 @@ function kn(e) {
|
|
|
3704
3702
|
let t;
|
|
3705
3703
|
return {
|
|
3706
3704
|
c() {
|
|
3707
|
-
t =
|
|
3705
|
+
t = ot("div");
|
|
3708
3706
|
},
|
|
3709
3707
|
m(r, n) {
|
|
3710
|
-
|
|
3708
|
+
st(r, t, n);
|
|
3711
3709
|
},
|
|
3712
|
-
p:
|
|
3713
|
-
i:
|
|
3714
|
-
o:
|
|
3710
|
+
p: _,
|
|
3711
|
+
i: _,
|
|
3712
|
+
o: _,
|
|
3715
3713
|
d(r) {
|
|
3716
3714
|
r && Ae(t);
|
|
3717
3715
|
}
|
|
@@ -3719,19 +3717,19 @@ function kn(e) {
|
|
|
3719
3717
|
}
|
|
3720
3718
|
function Xn(e, t, r) {
|
|
3721
3719
|
let n;
|
|
3722
|
-
|
|
3723
|
-
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: o = "" } = t, { translationurl:
|
|
3724
|
-
const
|
|
3725
|
-
fetch(
|
|
3720
|
+
Ut(e, jn, (f) => r(4, n = f));
|
|
3721
|
+
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: o = "" } = t, { translationurl: h = "" } = t;
|
|
3722
|
+
const u = () => {
|
|
3723
|
+
fetch(h).then((c) => c.json()).then((c) => {
|
|
3726
3724
|
Object.keys(c).forEach((b) => {
|
|
3727
|
-
|
|
3725
|
+
et(b, c[b]);
|
|
3728
3726
|
});
|
|
3729
3727
|
}).catch((c) => {
|
|
3730
3728
|
console.log(c);
|
|
3731
3729
|
});
|
|
3732
3730
|
};
|
|
3733
|
-
Object.keys(
|
|
3734
|
-
|
|
3731
|
+
Object.keys(tt).forEach((f) => {
|
|
3732
|
+
et(f, tt[f]);
|
|
3735
3733
|
});
|
|
3736
3734
|
const a = () => {
|
|
3737
3735
|
Vn(i);
|
|
@@ -3785,17 +3783,17 @@ function Xn(e, t, r) {
|
|
|
3785
3783
|
});
|
|
3786
3784
|
};
|
|
3787
3785
|
return e.$$set = (f) => {
|
|
3788
|
-
"lang" in f && r(0, i = f.lang), "endpoint" in f && r(1, s = f.endpoint), "key" in f && r(2, o = f.key), "translationurl" in f && r(3,
|
|
3786
|
+
"lang" in f && r(0, i = f.lang), "endpoint" in f && r(1, s = f.endpoint), "key" in f && r(2, o = f.key), "translationurl" in f && r(3, h = f.translationurl);
|
|
3789
3787
|
}, e.$$.update = () => {
|
|
3790
3788
|
e.$$.dirty & /*lang*/
|
|
3791
3789
|
1 && i && a(), e.$$.dirty & /*translationurl*/
|
|
3792
|
-
8 &&
|
|
3790
|
+
8 && h && u(), e.$$.dirty & /*endpoint, key*/
|
|
3793
3791
|
6 && s && o && l();
|
|
3794
|
-
}, [i, s, o,
|
|
3792
|
+
}, [i, s, o, h];
|
|
3795
3793
|
}
|
|
3796
|
-
class Wn extends
|
|
3794
|
+
class Wn extends Kt {
|
|
3797
3795
|
constructor(t) {
|
|
3798
|
-
super(),
|
|
3796
|
+
super(), qt(this, t, Xn, kn, nt, {
|
|
3799
3797
|
lang: 0,
|
|
3800
3798
|
endpoint: 1,
|
|
3801
3799
|
key: 2,
|
|
@@ -3827,7 +3825,7 @@ class Wn extends Yt {
|
|
|
3827
3825
|
this.$$set({ translationurl: t }), w();
|
|
3828
3826
|
}
|
|
3829
3827
|
}
|
|
3830
|
-
|
|
3828
|
+
Yt(Wn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
|
|
3831
3829
|
export {
|
|
3832
3830
|
Wn as default
|
|
3833
3831
|
};
|