@everymatrix/player-email-verification 1.54.0 → 1.54.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerEmailVerification-DiNjiprr.js → PlayerEmailVerification-BbO-roiI.js} +817 -854
- package/esnext/player-email-verification.js +14 -0
- package/package.json +10 -8
- package/components/PlayerEmailVerification-DPV1-Z1Y.cjs +0 -3
- package/es2015/player-email-verification.cjs +0 -1
- package/es2015/player-email-verification.js +0 -16
package/components/{PlayerEmailVerification-DiNjiprr.js → PlayerEmailVerification-BbO-roiI.js}
RENAMED
|
@@ -1,80 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
var $t = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var $e = Object.getOwnPropertySymbols;
|
|
4
|
-
var Lt = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var ae = (e, t, r) => t in e ? It(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Le = (e, t) => {
|
|
6
|
-
for (var r in t || (t = {}))
|
|
7
|
-
Lt.call(t, r) && ae(e, r, t[r]);
|
|
8
|
-
if ($e)
|
|
9
|
-
for (var r of $e(t))
|
|
10
|
-
Mt.call(t, r) && ae(e, r, t[r]);
|
|
11
|
-
return e;
|
|
12
|
-
}, Me = (e, t) => wt(e, $t(t));
|
|
13
|
-
var _ = (e, t, r) => ae(e, typeof t != "symbol" ? t + "" : t, r);
|
|
14
|
-
var Ce = (e, t, r) => new Promise((n, i) => {
|
|
15
|
-
var s = (h) => {
|
|
16
|
-
try {
|
|
17
|
-
u(r.next(h));
|
|
18
|
-
} catch (a) {
|
|
19
|
-
i(a);
|
|
20
|
-
}
|
|
21
|
-
}, o = (h) => {
|
|
22
|
-
try {
|
|
23
|
-
u(r.throw(h));
|
|
24
|
-
} catch (a) {
|
|
25
|
-
i(a);
|
|
26
|
-
}
|
|
27
|
-
}, u = (h) => h.done ? n(h.value) : Promise.resolve(h.value).then(s, o);
|
|
28
|
-
u((r = r.apply(e, t)).next());
|
|
29
|
-
});
|
|
30
|
-
function v() {
|
|
1
|
+
function _() {
|
|
31
2
|
}
|
|
32
|
-
function
|
|
3
|
+
function Qe(e) {
|
|
33
4
|
return e();
|
|
34
5
|
}
|
|
35
|
-
function
|
|
6
|
+
function Ie() {
|
|
36
7
|
return /* @__PURE__ */ Object.create(null);
|
|
37
8
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
9
|
+
function W(e) {
|
|
10
|
+
e.forEach(Qe);
|
|
40
11
|
}
|
|
41
|
-
function
|
|
12
|
+
function Te(e) {
|
|
42
13
|
return typeof e == "function";
|
|
43
14
|
}
|
|
44
|
-
function
|
|
15
|
+
function Je(e, t) {
|
|
45
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
17
|
}
|
|
47
|
-
function
|
|
18
|
+
function St(e) {
|
|
48
19
|
return Object.keys(e).length === 0;
|
|
49
20
|
}
|
|
50
|
-
function
|
|
21
|
+
function qe(e, ...t) {
|
|
51
22
|
if (e == null) {
|
|
52
23
|
for (const n of t)
|
|
53
24
|
n(void 0);
|
|
54
|
-
return
|
|
25
|
+
return _;
|
|
55
26
|
}
|
|
56
27
|
const r = e.subscribe(...t);
|
|
57
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
58
29
|
}
|
|
59
|
-
function
|
|
60
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Bt(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(qe(t, r));
|
|
61
32
|
}
|
|
62
|
-
function
|
|
33
|
+
function Ye(e, t, r) {
|
|
63
34
|
e.insertBefore(t, r || null);
|
|
64
35
|
}
|
|
65
|
-
function
|
|
36
|
+
function Se(e) {
|
|
66
37
|
e.parentNode && e.parentNode.removeChild(e);
|
|
67
38
|
}
|
|
68
|
-
function
|
|
39
|
+
function Ke(e) {
|
|
69
40
|
return document.createElement(e);
|
|
70
41
|
}
|
|
71
|
-
function
|
|
42
|
+
function At(e, t, r) {
|
|
72
43
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
73
44
|
}
|
|
74
|
-
function
|
|
45
|
+
function Pt(e) {
|
|
75
46
|
return Array.from(e.childNodes);
|
|
76
47
|
}
|
|
77
|
-
function
|
|
48
|
+
function Nt(e) {
|
|
78
49
|
const t = {};
|
|
79
50
|
return e.childNodes.forEach(
|
|
80
51
|
/** @param {Element} node */
|
|
@@ -83,238 +54,234 @@ function Dt(e) {
|
|
|
83
54
|
}
|
|
84
55
|
), t;
|
|
85
56
|
}
|
|
86
|
-
let
|
|
87
|
-
function
|
|
88
|
-
|
|
57
|
+
let Be;
|
|
58
|
+
function V(e) {
|
|
59
|
+
Be = e;
|
|
89
60
|
}
|
|
90
|
-
const
|
|
91
|
-
let
|
|
92
|
-
const
|
|
93
|
-
let
|
|
94
|
-
function
|
|
95
|
-
|
|
61
|
+
const O = [], we = [];
|
|
62
|
+
let w = [];
|
|
63
|
+
const $e = [], Ot = /* @__PURE__ */ Promise.resolve();
|
|
64
|
+
let me = !1;
|
|
65
|
+
function It() {
|
|
66
|
+
me || (me = !0, Ot.then(I));
|
|
96
67
|
}
|
|
97
|
-
function
|
|
98
|
-
|
|
68
|
+
function pe(e) {
|
|
69
|
+
w.push(e);
|
|
99
70
|
}
|
|
100
|
-
const
|
|
101
|
-
let
|
|
102
|
-
function
|
|
103
|
-
if (
|
|
71
|
+
const oe = /* @__PURE__ */ new Set();
|
|
72
|
+
let P = 0;
|
|
73
|
+
function I() {
|
|
74
|
+
if (P !== 0)
|
|
104
75
|
return;
|
|
105
|
-
const e =
|
|
76
|
+
const e = Be;
|
|
106
77
|
do {
|
|
107
78
|
try {
|
|
108
|
-
for (;
|
|
109
|
-
const t =
|
|
110
|
-
|
|
79
|
+
for (; P < O.length; ) {
|
|
80
|
+
const t = O[P];
|
|
81
|
+
P++, V(t), wt(t.$$);
|
|
111
82
|
}
|
|
112
83
|
} catch (t) {
|
|
113
|
-
throw
|
|
84
|
+
throw O.length = 0, P = 0, t;
|
|
114
85
|
}
|
|
115
|
-
for (
|
|
116
|
-
for (let t = 0; t <
|
|
117
|
-
const r =
|
|
118
|
-
|
|
86
|
+
for (V(null), O.length = 0, P = 0; we.length; ) we.pop()();
|
|
87
|
+
for (let t = 0; t < w.length; t += 1) {
|
|
88
|
+
const r = w[t];
|
|
89
|
+
oe.has(r) || (oe.add(r), r());
|
|
119
90
|
}
|
|
120
|
-
|
|
121
|
-
} while (
|
|
122
|
-
for (;
|
|
123
|
-
|
|
124
|
-
|
|
91
|
+
w.length = 0;
|
|
92
|
+
} while (O.length);
|
|
93
|
+
for (; $e.length; )
|
|
94
|
+
$e.pop()();
|
|
95
|
+
me = !1, oe.clear(), V(e);
|
|
125
96
|
}
|
|
126
|
-
function
|
|
97
|
+
function wt(e) {
|
|
127
98
|
if (e.fragment !== null) {
|
|
128
|
-
e.update(),
|
|
99
|
+
e.update(), W(e.before_update);
|
|
129
100
|
const t = e.dirty;
|
|
130
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
101
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(pe);
|
|
131
102
|
}
|
|
132
103
|
}
|
|
133
|
-
function
|
|
104
|
+
function $t(e) {
|
|
134
105
|
const t = [], r = [];
|
|
135
|
-
|
|
106
|
+
w.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), w = t;
|
|
136
107
|
}
|
|
137
|
-
const
|
|
138
|
-
function
|
|
139
|
-
e && e.i && (
|
|
108
|
+
const Lt = /* @__PURE__ */ new Set();
|
|
109
|
+
function Mt(e, t) {
|
|
110
|
+
e && e.i && (Lt.delete(e), e.i(t));
|
|
140
111
|
}
|
|
141
|
-
function
|
|
112
|
+
function Ct(e, t, r) {
|
|
142
113
|
const { fragment: n, after_update: i } = e.$$;
|
|
143
|
-
n && n.m(t, r),
|
|
144
|
-
const s = e.$$.on_mount.map(
|
|
145
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
146
|
-
}), i.forEach(
|
|
114
|
+
n && n.m(t, r), pe(() => {
|
|
115
|
+
const s = e.$$.on_mount.map(Qe).filter(Te);
|
|
116
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : W(s), e.$$.on_mount = [];
|
|
117
|
+
}), i.forEach(pe);
|
|
147
118
|
}
|
|
148
|
-
function
|
|
119
|
+
function Rt(e, t) {
|
|
149
120
|
const r = e.$$;
|
|
150
|
-
r.fragment !== null && (
|
|
121
|
+
r.fragment !== null && ($t(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
151
122
|
}
|
|
152
|
-
function
|
|
153
|
-
e.$$.dirty[0] === -1 && (
|
|
123
|
+
function Ut(e, t) {
|
|
124
|
+
e.$$.dirty[0] === -1 && (O.push(e), It(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
154
125
|
}
|
|
155
|
-
function
|
|
156
|
-
const
|
|
157
|
-
|
|
126
|
+
function Gt(e, t, r, n, i, s, u = null, o = [-1]) {
|
|
127
|
+
const f = Be;
|
|
128
|
+
V(e);
|
|
158
129
|
const a = e.$$ = {
|
|
159
130
|
fragment: null,
|
|
160
131
|
ctx: [],
|
|
161
132
|
// state
|
|
162
133
|
props: s,
|
|
163
|
-
update:
|
|
134
|
+
update: _,
|
|
164
135
|
not_equal: i,
|
|
165
|
-
bound:
|
|
136
|
+
bound: Ie(),
|
|
166
137
|
// lifecycle
|
|
167
138
|
on_mount: [],
|
|
168
139
|
on_destroy: [],
|
|
169
140
|
on_disconnect: [],
|
|
170
141
|
before_update: [],
|
|
171
142
|
after_update: [],
|
|
172
|
-
context: new Map(t.context || (
|
|
143
|
+
context: new Map(t.context || (f ? f.$$.context : [])),
|
|
173
144
|
// everything else
|
|
174
|
-
callbacks:
|
|
175
|
-
dirty:
|
|
145
|
+
callbacks: Ie(),
|
|
146
|
+
dirty: o,
|
|
176
147
|
skip_bound: !1,
|
|
177
|
-
root: t.target ||
|
|
148
|
+
root: t.target || f.$$.root
|
|
178
149
|
};
|
|
179
|
-
|
|
180
|
-
let
|
|
181
|
-
if (a.ctx = r(e, t.props || {}, (
|
|
150
|
+
u && u(a.root);
|
|
151
|
+
let h = !1;
|
|
152
|
+
if (a.ctx = r(e, t.props || {}, (l, c, ...b) => {
|
|
182
153
|
const g = b.length ? b[0] : c;
|
|
183
|
-
return a.ctx && i(a.ctx[
|
|
184
|
-
}), a.update(),
|
|
154
|
+
return a.ctx && i(a.ctx[l], a.ctx[l] = g) && (!a.skip_bound && a.bound[l] && a.bound[l](g), h && Ut(e, l)), c;
|
|
155
|
+
}), a.update(), h = !0, W(a.before_update), a.fragment = n(a.ctx), t.target) {
|
|
185
156
|
if (t.hydrate) {
|
|
186
|
-
const
|
|
187
|
-
a.fragment && a.fragment.l(
|
|
157
|
+
const l = Pt(t.target);
|
|
158
|
+
a.fragment && a.fragment.l(l), l.forEach(Se);
|
|
188
159
|
} else
|
|
189
160
|
a.fragment && a.fragment.c();
|
|
190
|
-
t.intro &&
|
|
161
|
+
t.intro && Mt(e.$$.fragment), Ct(e, t.target, t.anchor), I();
|
|
191
162
|
}
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
let
|
|
195
|
-
typeof HTMLElement == "function" && (
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
163
|
+
V(f);
|
|
164
|
+
}
|
|
165
|
+
let et;
|
|
166
|
+
typeof HTMLElement == "function" && (et = class extends HTMLElement {
|
|
167
|
+
/** The Svelte component constructor */
|
|
168
|
+
$$ctor;
|
|
169
|
+
/** Slots */
|
|
170
|
+
$$s;
|
|
171
|
+
/** The Svelte component instance */
|
|
172
|
+
$$c;
|
|
173
|
+
/** Whether or not the custom element is connected */
|
|
174
|
+
$$cn = !1;
|
|
175
|
+
/** Component props data */
|
|
176
|
+
$$d = {};
|
|
177
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
178
|
+
$$r = !1;
|
|
179
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
180
|
+
$$p_d = {};
|
|
181
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
182
|
+
$$l = {};
|
|
183
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
184
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
185
|
+
constructor(e, t, r) {
|
|
186
|
+
super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
|
|
217
187
|
}
|
|
218
|
-
addEventListener(t, r
|
|
219
|
-
if (this.$$l[
|
|
220
|
-
const
|
|
221
|
-
this.$$l_u.set(
|
|
188
|
+
addEventListener(e, t, r) {
|
|
189
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
190
|
+
const n = this.$$c.$on(e, t);
|
|
191
|
+
this.$$l_u.set(t, n);
|
|
222
192
|
}
|
|
223
|
-
super.addEventListener(t, r
|
|
193
|
+
super.addEventListener(e, t, r);
|
|
224
194
|
}
|
|
225
|
-
removeEventListener(t, r
|
|
226
|
-
if (super.removeEventListener(t, r
|
|
227
|
-
const
|
|
228
|
-
|
|
195
|
+
removeEventListener(e, t, r) {
|
|
196
|
+
if (super.removeEventListener(e, t, r), this.$$c) {
|
|
197
|
+
const n = this.$$l_u.get(t);
|
|
198
|
+
n && (n(), this.$$l_u.delete(t));
|
|
229
199
|
}
|
|
230
200
|
}
|
|
231
|
-
connectedCallback() {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
};
|
|
201
|
+
async connectedCallback() {
|
|
202
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
203
|
+
let e = function(i) {
|
|
204
|
+
return () => {
|
|
205
|
+
let s;
|
|
206
|
+
return {
|
|
207
|
+
c: function() {
|
|
208
|
+
s = Ke("slot"), i !== "default" && At(s, "name", i);
|
|
209
|
+
},
|
|
210
|
+
/**
|
|
211
|
+
* @param {HTMLElement} target
|
|
212
|
+
* @param {HTMLElement} [anchor]
|
|
213
|
+
*/
|
|
214
|
+
m: function(f, a) {
|
|
215
|
+
Ye(f, s, a);
|
|
216
|
+
},
|
|
217
|
+
d: function(f) {
|
|
218
|
+
f && Se(s);
|
|
219
|
+
}
|
|
252
220
|
};
|
|
253
221
|
};
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
222
|
+
};
|
|
223
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
224
|
+
return;
|
|
225
|
+
const t = {}, r = Nt(this);
|
|
226
|
+
for (const i of this.$$s)
|
|
227
|
+
i in r && (t[i] = [e(i)]);
|
|
228
|
+
for (const i of this.attributes) {
|
|
229
|
+
const s = this.$$g_p(i.name);
|
|
230
|
+
s in this.$$d || (this.$$d[s] = J(s, i.value, this.$$p_d, "toProp"));
|
|
231
|
+
}
|
|
232
|
+
for (const i in this.$$p_d)
|
|
233
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
234
|
+
this.$$c = new this.$$ctor({
|
|
235
|
+
target: this.shadowRoot || this,
|
|
236
|
+
props: {
|
|
237
|
+
...this.$$d,
|
|
238
|
+
$$slots: t,
|
|
239
|
+
$$scope: {
|
|
240
|
+
ctx: []
|
|
241
|
+
}
|
|
262
242
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
this.$$
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
this.$$r = !0;
|
|
276
|
-
for (const s in this.$$p_d)
|
|
277
|
-
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
278
|
-
const o = q(
|
|
279
|
-
s,
|
|
280
|
-
this.$$d[s],
|
|
281
|
-
this.$$p_d,
|
|
282
|
-
"toAttribute"
|
|
283
|
-
);
|
|
284
|
-
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
285
|
-
}
|
|
286
|
-
this.$$r = !1;
|
|
287
|
-
};
|
|
288
|
-
this.$$c.$$.after_update.push(i), i();
|
|
289
|
-
for (const s in this.$$l)
|
|
290
|
-
for (const o of this.$$l[s]) {
|
|
291
|
-
const u = this.$$c.$on(s, o);
|
|
292
|
-
this.$$l_u.set(o, u);
|
|
243
|
+
});
|
|
244
|
+
const n = () => {
|
|
245
|
+
this.$$r = !0;
|
|
246
|
+
for (const i in this.$$p_d)
|
|
247
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
248
|
+
const s = J(
|
|
249
|
+
i,
|
|
250
|
+
this.$$d[i],
|
|
251
|
+
this.$$p_d,
|
|
252
|
+
"toAttribute"
|
|
253
|
+
);
|
|
254
|
+
s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
|
|
293
255
|
}
|
|
294
|
-
this.$$
|
|
295
|
-
}
|
|
296
|
-
|
|
256
|
+
this.$$r = !1;
|
|
257
|
+
};
|
|
258
|
+
this.$$c.$$.after_update.push(n), n();
|
|
259
|
+
for (const i in this.$$l)
|
|
260
|
+
for (const s of this.$$l[i]) {
|
|
261
|
+
const u = this.$$c.$on(i, s);
|
|
262
|
+
this.$$l_u.set(s, u);
|
|
263
|
+
}
|
|
264
|
+
this.$$l = {};
|
|
265
|
+
}
|
|
297
266
|
}
|
|
298
267
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
299
268
|
// and setting attributes through setAttribute etc, this is helpful
|
|
300
|
-
attributeChangedCallback(t, r
|
|
301
|
-
|
|
302
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] = q(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
269
|
+
attributeChangedCallback(e, t, r) {
|
|
270
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = J(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
303
271
|
}
|
|
304
272
|
disconnectedCallback() {
|
|
305
273
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
306
274
|
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
307
275
|
});
|
|
308
276
|
}
|
|
309
|
-
$$g_p(
|
|
277
|
+
$$g_p(e) {
|
|
310
278
|
return Object.keys(this.$$p_d).find(
|
|
311
|
-
(
|
|
312
|
-
) ||
|
|
279
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
280
|
+
) || e;
|
|
313
281
|
}
|
|
314
282
|
});
|
|
315
|
-
function
|
|
316
|
-
|
|
317
|
-
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
283
|
+
function J(e, t, r, n) {
|
|
284
|
+
const i = r[e]?.type;
|
|
318
285
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
319
286
|
return t;
|
|
320
287
|
if (n === "toAttribute")
|
|
@@ -325,7 +292,7 @@ function q(e, t, r, n) {
|
|
|
325
292
|
case "Boolean":
|
|
326
293
|
return t ? "" : null;
|
|
327
294
|
case "Number":
|
|
328
|
-
return t
|
|
295
|
+
return t ?? null;
|
|
329
296
|
default:
|
|
330
297
|
return t;
|
|
331
298
|
}
|
|
@@ -342,59 +309,55 @@ function q(e, t, r, n) {
|
|
|
342
309
|
return t;
|
|
343
310
|
}
|
|
344
311
|
}
|
|
345
|
-
function
|
|
346
|
-
let
|
|
312
|
+
function Dt(e, t, r, n, i, s) {
|
|
313
|
+
let u = class extends et {
|
|
347
314
|
constructor() {
|
|
348
315
|
super(e, r, i), this.$$p_d = t;
|
|
349
316
|
}
|
|
350
317
|
static get observedAttributes() {
|
|
351
318
|
return Object.keys(t).map(
|
|
352
|
-
(
|
|
319
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
353
320
|
);
|
|
354
321
|
}
|
|
355
322
|
};
|
|
356
|
-
return Object.keys(t).forEach((
|
|
357
|
-
Object.defineProperty(
|
|
323
|
+
return Object.keys(t).forEach((o) => {
|
|
324
|
+
Object.defineProperty(u.prototype, o, {
|
|
358
325
|
get() {
|
|
359
|
-
return this.$$c &&
|
|
326
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
360
327
|
},
|
|
361
|
-
set(
|
|
362
|
-
|
|
363
|
-
h = q(u, h, t), this.$$d[u] = h, (a = this.$$c) == null || a.$set({ [u]: h });
|
|
328
|
+
set(f) {
|
|
329
|
+
f = J(o, f, t), this.$$d[o] = f, this.$$c?.$set({ [o]: f });
|
|
364
330
|
}
|
|
365
331
|
});
|
|
366
|
-
}), n.forEach((
|
|
367
|
-
Object.defineProperty(
|
|
332
|
+
}), n.forEach((o) => {
|
|
333
|
+
Object.defineProperty(u.prototype, o, {
|
|
368
334
|
get() {
|
|
369
|
-
|
|
370
|
-
return (h = this.$$c) == null ? void 0 : h[u];
|
|
335
|
+
return this.$$c?.[o];
|
|
371
336
|
}
|
|
372
337
|
});
|
|
373
338
|
}), e.element = /** @type {any} */
|
|
374
|
-
|
|
375
|
-
}
|
|
376
|
-
class
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
_(this, "$$set");
|
|
394
|
-
}
|
|
339
|
+
u, u;
|
|
340
|
+
}
|
|
341
|
+
class Ft {
|
|
342
|
+
/**
|
|
343
|
+
* ### PRIVATE API
|
|
344
|
+
*
|
|
345
|
+
* Do not use, may change at any time
|
|
346
|
+
*
|
|
347
|
+
* @type {any}
|
|
348
|
+
*/
|
|
349
|
+
$$ = void 0;
|
|
350
|
+
/**
|
|
351
|
+
* ### PRIVATE API
|
|
352
|
+
*
|
|
353
|
+
* Do not use, may change at any time
|
|
354
|
+
*
|
|
355
|
+
* @type {any}
|
|
356
|
+
*/
|
|
357
|
+
$$set = void 0;
|
|
395
358
|
/** @returns {void} */
|
|
396
359
|
$destroy() {
|
|
397
|
-
|
|
360
|
+
Rt(this, 1), this.$destroy = _;
|
|
398
361
|
}
|
|
399
362
|
/**
|
|
400
363
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -403,8 +366,8 @@ class Yt {
|
|
|
403
366
|
* @returns {() => void}
|
|
404
367
|
*/
|
|
405
368
|
$on(t, r) {
|
|
406
|
-
if (!
|
|
407
|
-
return
|
|
369
|
+
if (!Te(r))
|
|
370
|
+
return _;
|
|
408
371
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
409
372
|
return n.push(r), () => {
|
|
410
373
|
const i = n.indexOf(r);
|
|
@@ -416,159 +379,159 @@ class Yt {
|
|
|
416
379
|
* @returns {void}
|
|
417
380
|
*/
|
|
418
381
|
$set(t) {
|
|
419
|
-
this.$$set && !
|
|
382
|
+
this.$$set && !St(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
420
383
|
}
|
|
421
384
|
}
|
|
422
|
-
const
|
|
423
|
-
typeof window
|
|
424
|
-
const
|
|
425
|
-
function
|
|
385
|
+
const jt = "4";
|
|
386
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(jt);
|
|
387
|
+
const N = [];
|
|
388
|
+
function Vt(e, t) {
|
|
426
389
|
return {
|
|
427
|
-
subscribe:
|
|
390
|
+
subscribe: te(e, t).subscribe
|
|
428
391
|
};
|
|
429
392
|
}
|
|
430
|
-
function
|
|
393
|
+
function te(e, t = _) {
|
|
431
394
|
let r;
|
|
432
395
|
const n = /* @__PURE__ */ new Set();
|
|
433
|
-
function i(
|
|
434
|
-
if (
|
|
435
|
-
const
|
|
396
|
+
function i(o) {
|
|
397
|
+
if (Je(e, o) && (e = o, r)) {
|
|
398
|
+
const f = !N.length;
|
|
436
399
|
for (const a of n)
|
|
437
|
-
a[1](),
|
|
438
|
-
if (
|
|
439
|
-
for (let a = 0; a <
|
|
440
|
-
|
|
441
|
-
|
|
400
|
+
a[1](), N.push(a, e);
|
|
401
|
+
if (f) {
|
|
402
|
+
for (let a = 0; a < N.length; a += 2)
|
|
403
|
+
N[a][0](N[a + 1]);
|
|
404
|
+
N.length = 0;
|
|
442
405
|
}
|
|
443
406
|
}
|
|
444
407
|
}
|
|
445
|
-
function s(
|
|
446
|
-
i(
|
|
408
|
+
function s(o) {
|
|
409
|
+
i(o(e));
|
|
447
410
|
}
|
|
448
|
-
function o
|
|
449
|
-
const a = [
|
|
450
|
-
return n.add(a), n.size === 1 && (r = t(i, s) ||
|
|
411
|
+
function u(o, f = _) {
|
|
412
|
+
const a = [o, f];
|
|
413
|
+
return n.add(a), n.size === 1 && (r = t(i, s) || _), o(e), () => {
|
|
451
414
|
n.delete(a), n.size === 0 && r && (r(), r = null);
|
|
452
415
|
};
|
|
453
416
|
}
|
|
454
|
-
return { set: i, update: s, subscribe:
|
|
417
|
+
return { set: i, update: s, subscribe: u };
|
|
455
418
|
}
|
|
456
|
-
function
|
|
419
|
+
function R(e, t, r) {
|
|
457
420
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
458
421
|
if (!i.every(Boolean))
|
|
459
422
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
460
423
|
const s = t.length < 2;
|
|
461
|
-
return
|
|
462
|
-
let
|
|
424
|
+
return Vt(r, (u, o) => {
|
|
425
|
+
let f = !1;
|
|
463
426
|
const a = [];
|
|
464
|
-
let
|
|
427
|
+
let h = 0, l = _;
|
|
465
428
|
const c = () => {
|
|
466
|
-
if (
|
|
429
|
+
if (h)
|
|
467
430
|
return;
|
|
468
|
-
|
|
469
|
-
const g = t(n ? a[0] : a,
|
|
470
|
-
s ?
|
|
431
|
+
l();
|
|
432
|
+
const g = t(n ? a[0] : a, u, o);
|
|
433
|
+
s ? u(g) : l = Te(g) ? g : _;
|
|
471
434
|
}, b = i.map(
|
|
472
|
-
(g, y) =>
|
|
435
|
+
(g, y) => qe(
|
|
473
436
|
g,
|
|
474
|
-
(
|
|
475
|
-
a[y] =
|
|
437
|
+
(H) => {
|
|
438
|
+
a[y] = H, h &= ~(1 << y), f && c();
|
|
476
439
|
},
|
|
477
440
|
() => {
|
|
478
|
-
|
|
441
|
+
h |= 1 << y;
|
|
479
442
|
}
|
|
480
443
|
)
|
|
481
444
|
);
|
|
482
|
-
return
|
|
483
|
-
|
|
445
|
+
return f = !0, c(), function() {
|
|
446
|
+
W(b), l(), f = !1;
|
|
484
447
|
};
|
|
485
448
|
});
|
|
486
449
|
}
|
|
487
|
-
function
|
|
450
|
+
function kt(e) {
|
|
488
451
|
return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
489
452
|
}
|
|
490
|
-
var
|
|
491
|
-
return
|
|
453
|
+
var Xt = function(t) {
|
|
454
|
+
return Wt(t) && !zt(t);
|
|
492
455
|
};
|
|
493
|
-
function
|
|
456
|
+
function Wt(e) {
|
|
494
457
|
return !!e && typeof e == "object";
|
|
495
458
|
}
|
|
496
|
-
function
|
|
459
|
+
function zt(e) {
|
|
497
460
|
var t = Object.prototype.toString.call(e);
|
|
498
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
461
|
+
return t === "[object RegExp]" || t === "[object Date]" || Jt(e);
|
|
499
462
|
}
|
|
500
|
-
var
|
|
501
|
-
function
|
|
502
|
-
return e.$$typeof ===
|
|
463
|
+
var Zt = typeof Symbol == "function" && Symbol.for, Qt = Zt ? Symbol.for("react.element") : 60103;
|
|
464
|
+
function Jt(e) {
|
|
465
|
+
return e.$$typeof === Qt;
|
|
503
466
|
}
|
|
504
|
-
function
|
|
467
|
+
function qt(e) {
|
|
505
468
|
return Array.isArray(e) ? [] : {};
|
|
506
469
|
}
|
|
507
|
-
function
|
|
508
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
470
|
+
function k(e, t) {
|
|
471
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? $(qt(e), e, t) : e;
|
|
509
472
|
}
|
|
510
|
-
function
|
|
473
|
+
function Yt(e, t, r) {
|
|
511
474
|
return e.concat(t).map(function(n) {
|
|
512
|
-
return
|
|
475
|
+
return k(n, r);
|
|
513
476
|
});
|
|
514
477
|
}
|
|
515
|
-
function
|
|
478
|
+
function Kt(e, t) {
|
|
516
479
|
if (!t.customMerge)
|
|
517
|
-
return
|
|
480
|
+
return $;
|
|
518
481
|
var r = t.customMerge(e);
|
|
519
|
-
return typeof r == "function" ? r :
|
|
482
|
+
return typeof r == "function" ? r : $;
|
|
520
483
|
}
|
|
521
|
-
function
|
|
484
|
+
function er(e) {
|
|
522
485
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
523
486
|
return Object.propertyIsEnumerable.call(e, t);
|
|
524
487
|
}) : [];
|
|
525
488
|
}
|
|
526
|
-
function
|
|
527
|
-
return Object.keys(e).concat(
|
|
489
|
+
function Le(e) {
|
|
490
|
+
return Object.keys(e).concat(er(e));
|
|
528
491
|
}
|
|
529
|
-
function
|
|
492
|
+
function tt(e, t) {
|
|
530
493
|
try {
|
|
531
494
|
return t in e;
|
|
532
|
-
} catch
|
|
495
|
+
} catch {
|
|
533
496
|
return !1;
|
|
534
497
|
}
|
|
535
498
|
}
|
|
536
|
-
function
|
|
537
|
-
return
|
|
499
|
+
function tr(e, t) {
|
|
500
|
+
return tt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
538
501
|
}
|
|
539
|
-
function
|
|
502
|
+
function rr(e, t, r) {
|
|
540
503
|
var n = {};
|
|
541
|
-
return r.isMergeableObject(e) &&
|
|
542
|
-
n[i] =
|
|
543
|
-
}),
|
|
544
|
-
|
|
504
|
+
return r.isMergeableObject(e) && Le(e).forEach(function(i) {
|
|
505
|
+
n[i] = k(e[i], r);
|
|
506
|
+
}), Le(t).forEach(function(i) {
|
|
507
|
+
tr(e, i) || (tt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Kt(i, r)(e[i], t[i], r) : n[i] = k(t[i], r));
|
|
545
508
|
}), n;
|
|
546
509
|
}
|
|
547
|
-
function
|
|
548
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
510
|
+
function $(e, t, r) {
|
|
511
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Yt, r.isMergeableObject = r.isMergeableObject || Xt, r.cloneUnlessOtherwiseSpecified = k;
|
|
549
512
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
550
|
-
return s ? n ? r.arrayMerge(e, t, r) :
|
|
513
|
+
return s ? n ? r.arrayMerge(e, t, r) : rr(e, t, r) : k(t, r);
|
|
551
514
|
}
|
|
552
|
-
|
|
515
|
+
$.all = function(t, r) {
|
|
553
516
|
if (!Array.isArray(t))
|
|
554
517
|
throw new Error("first argument should be an array");
|
|
555
518
|
return t.reduce(function(n, i) {
|
|
556
|
-
return
|
|
519
|
+
return $(n, i, r);
|
|
557
520
|
}, {});
|
|
558
521
|
};
|
|
559
|
-
var
|
|
560
|
-
const
|
|
561
|
-
var
|
|
562
|
-
return
|
|
522
|
+
var nr = $, ir = nr;
|
|
523
|
+
const sr = /* @__PURE__ */ kt(ir);
|
|
524
|
+
var de = function(e, t) {
|
|
525
|
+
return de = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
563
526
|
r.__proto__ = n;
|
|
564
527
|
} || function(r, n) {
|
|
565
528
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
566
|
-
},
|
|
529
|
+
}, de(e, t);
|
|
567
530
|
};
|
|
568
|
-
function
|
|
531
|
+
function re(e, t) {
|
|
569
532
|
if (typeof t != "function" && t !== null)
|
|
570
533
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
571
|
-
|
|
534
|
+
de(e, t);
|
|
572
535
|
function r() {
|
|
573
536
|
this.constructor = e;
|
|
574
537
|
}
|
|
@@ -583,7 +546,7 @@ var d = function() {
|
|
|
583
546
|
return t;
|
|
584
547
|
}, d.apply(this, arguments);
|
|
585
548
|
};
|
|
586
|
-
function
|
|
549
|
+
function or(e, t) {
|
|
587
550
|
var r = {};
|
|
588
551
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
589
552
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -591,45 +554,45 @@ function gr(e, t) {
|
|
|
591
554
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
592
555
|
return r;
|
|
593
556
|
}
|
|
594
|
-
function
|
|
557
|
+
function ae(e, t, r) {
|
|
595
558
|
if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
|
|
596
559
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
597
560
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
598
561
|
}
|
|
599
|
-
function
|
|
600
|
-
var r = t && t.cache ? t.cache :
|
|
562
|
+
function ue(e, t) {
|
|
563
|
+
var r = t && t.cache ? t.cache : mr, n = t && t.serializer ? t.serializer : fr, i = t && t.strategy ? t.strategy : ur;
|
|
601
564
|
return i(e, {
|
|
602
565
|
cache: r,
|
|
603
566
|
serializer: n
|
|
604
567
|
});
|
|
605
568
|
}
|
|
606
|
-
function
|
|
569
|
+
function ar(e) {
|
|
607
570
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
608
571
|
}
|
|
609
|
-
function
|
|
610
|
-
var i =
|
|
611
|
-
return typeof s
|
|
572
|
+
function rt(e, t, r, n) {
|
|
573
|
+
var i = ar(n) ? n : r(n), s = t.get(i);
|
|
574
|
+
return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
|
|
612
575
|
}
|
|
613
|
-
function
|
|
576
|
+
function nt(e, t, r) {
|
|
614
577
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
615
|
-
return typeof s
|
|
578
|
+
return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
616
579
|
}
|
|
617
|
-
function
|
|
580
|
+
function Ae(e, t, r, n, i) {
|
|
618
581
|
return r.bind(t, e, n, i);
|
|
619
582
|
}
|
|
620
|
-
function
|
|
621
|
-
var r = e.length === 1 ?
|
|
622
|
-
return
|
|
583
|
+
function ur(e, t) {
|
|
584
|
+
var r = e.length === 1 ? rt : nt;
|
|
585
|
+
return Ae(e, this, r, t.cache.create(), t.serializer);
|
|
623
586
|
}
|
|
624
|
-
function
|
|
625
|
-
return
|
|
587
|
+
function hr(e, t) {
|
|
588
|
+
return Ae(e, this, nt, t.cache.create(), t.serializer);
|
|
626
589
|
}
|
|
627
|
-
function
|
|
628
|
-
return
|
|
590
|
+
function lr(e, t) {
|
|
591
|
+
return Ae(e, this, rt, t.cache.create(), t.serializer);
|
|
629
592
|
}
|
|
630
|
-
var
|
|
593
|
+
var fr = function() {
|
|
631
594
|
return JSON.stringify(arguments);
|
|
632
|
-
},
|
|
595
|
+
}, cr = (
|
|
633
596
|
/** @class */
|
|
634
597
|
function() {
|
|
635
598
|
function e() {
|
|
@@ -641,13 +604,13 @@ var vr = function() {
|
|
|
641
604
|
this.cache[t] = r;
|
|
642
605
|
}, e;
|
|
643
606
|
}()
|
|
644
|
-
),
|
|
607
|
+
), mr = {
|
|
645
608
|
create: function() {
|
|
646
|
-
return new
|
|
609
|
+
return new cr();
|
|
647
610
|
}
|
|
648
|
-
},
|
|
649
|
-
variadic:
|
|
650
|
-
monadic:
|
|
611
|
+
}, he = {
|
|
612
|
+
variadic: hr,
|
|
613
|
+
monadic: lr
|
|
651
614
|
}, m;
|
|
652
615
|
(function(e) {
|
|
653
616
|
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";
|
|
@@ -656,47 +619,47 @@ var E;
|
|
|
656
619
|
(function(e) {
|
|
657
620
|
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";
|
|
658
621
|
})(E || (E = {}));
|
|
659
|
-
var
|
|
622
|
+
var L;
|
|
660
623
|
(function(e) {
|
|
661
624
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
662
|
-
})(
|
|
663
|
-
function
|
|
625
|
+
})(L || (L = {}));
|
|
626
|
+
function Me(e) {
|
|
664
627
|
return e.type === E.literal;
|
|
665
628
|
}
|
|
666
|
-
function
|
|
629
|
+
function pr(e) {
|
|
667
630
|
return e.type === E.argument;
|
|
668
631
|
}
|
|
669
|
-
function
|
|
632
|
+
function it(e) {
|
|
670
633
|
return e.type === E.number;
|
|
671
634
|
}
|
|
672
|
-
function
|
|
635
|
+
function st(e) {
|
|
673
636
|
return e.type === E.date;
|
|
674
637
|
}
|
|
675
|
-
function
|
|
638
|
+
function ot(e) {
|
|
676
639
|
return e.type === E.time;
|
|
677
640
|
}
|
|
678
|
-
function
|
|
641
|
+
function at(e) {
|
|
679
642
|
return e.type === E.select;
|
|
680
643
|
}
|
|
681
|
-
function
|
|
644
|
+
function ut(e) {
|
|
682
645
|
return e.type === E.plural;
|
|
683
646
|
}
|
|
684
|
-
function
|
|
647
|
+
function dr(e) {
|
|
685
648
|
return e.type === E.pound;
|
|
686
649
|
}
|
|
687
|
-
function
|
|
650
|
+
function ht(e) {
|
|
688
651
|
return e.type === E.tag;
|
|
689
652
|
}
|
|
690
|
-
function
|
|
691
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
653
|
+
function lt(e) {
|
|
654
|
+
return !!(e && typeof e == "object" && e.type === L.number);
|
|
692
655
|
}
|
|
693
|
-
function
|
|
694
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
656
|
+
function be(e) {
|
|
657
|
+
return !!(e && typeof e == "object" && e.type === L.dateTime);
|
|
695
658
|
}
|
|
696
|
-
var
|
|
697
|
-
function
|
|
659
|
+
var ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, br = /(?:[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;
|
|
660
|
+
function gr(e) {
|
|
698
661
|
var t = {};
|
|
699
|
-
return e.replace(
|
|
662
|
+
return e.replace(br, function(r) {
|
|
700
663
|
var n = r.length;
|
|
701
664
|
switch (r[0]) {
|
|
702
665
|
case "G":
|
|
@@ -785,36 +748,36 @@ function Pr(e) {
|
|
|
785
748
|
return "";
|
|
786
749
|
}), t;
|
|
787
750
|
}
|
|
788
|
-
var
|
|
789
|
-
function
|
|
751
|
+
var Er = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
752
|
+
function xr(e) {
|
|
790
753
|
if (e.length === 0)
|
|
791
754
|
throw new Error("Number skeleton cannot be empty");
|
|
792
|
-
for (var t = e.split(
|
|
755
|
+
for (var t = e.split(Er).filter(function(c) {
|
|
793
756
|
return c.length > 0;
|
|
794
757
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
795
|
-
var s = i[n],
|
|
796
|
-
if (
|
|
758
|
+
var s = i[n], u = s.split("/");
|
|
759
|
+
if (u.length === 0)
|
|
797
760
|
throw new Error("Invalid number skeleton");
|
|
798
|
-
for (var
|
|
799
|
-
var
|
|
800
|
-
if (
|
|
761
|
+
for (var o = u[0], f = u.slice(1), a = 0, h = f; a < h.length; a++) {
|
|
762
|
+
var l = h[a];
|
|
763
|
+
if (l.length === 0)
|
|
801
764
|
throw new Error("Invalid number skeleton");
|
|
802
765
|
}
|
|
803
|
-
r.push({ stem:
|
|
766
|
+
r.push({ stem: o, options: f });
|
|
804
767
|
}
|
|
805
768
|
return r;
|
|
806
769
|
}
|
|
807
|
-
function
|
|
770
|
+
function yr(e) {
|
|
808
771
|
return e.replace(/^(.*?)-/, "");
|
|
809
772
|
}
|
|
810
|
-
var
|
|
811
|
-
function
|
|
773
|
+
var Ce = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ct = /^(@+)?(\+|#+)?[rs]?$/g, _r = /(\*)(0+)|(#+)(0+)|(0+)/g, mt = /^(0+)$/;
|
|
774
|
+
function Re(e) {
|
|
812
775
|
var t = {};
|
|
813
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
776
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ct, function(r, n, i) {
|
|
814
777
|
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)), "";
|
|
815
778
|
}), t;
|
|
816
779
|
}
|
|
817
|
-
function
|
|
780
|
+
function pt(e) {
|
|
818
781
|
switch (e) {
|
|
819
782
|
case "sign-auto":
|
|
820
783
|
return {
|
|
@@ -854,7 +817,7 @@ function yt(e) {
|
|
|
854
817
|
};
|
|
855
818
|
}
|
|
856
819
|
}
|
|
857
|
-
function
|
|
820
|
+
function vr(e) {
|
|
858
821
|
var t;
|
|
859
822
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
860
823
|
notation: "engineering"
|
|
@@ -862,17 +825,17 @@ function $r(e) {
|
|
|
862
825
|
notation: "scientific"
|
|
863
826
|
}, e = e.slice(1)), t) {
|
|
864
827
|
var r = e.slice(0, 2);
|
|
865
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
828
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !mt.test(e))
|
|
866
829
|
throw new Error("Malformed concise eng/scientific notation");
|
|
867
830
|
t.minimumIntegerDigits = e.length;
|
|
868
831
|
}
|
|
869
832
|
return t;
|
|
870
833
|
}
|
|
871
|
-
function
|
|
872
|
-
var t = {}, r =
|
|
834
|
+
function Ue(e) {
|
|
835
|
+
var t = {}, r = pt(e);
|
|
873
836
|
return r || t;
|
|
874
837
|
}
|
|
875
|
-
function
|
|
838
|
+
function Hr(e) {
|
|
876
839
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
877
840
|
var i = n[r];
|
|
878
841
|
switch (i.stem) {
|
|
@@ -896,7 +859,7 @@ function Lr(e) {
|
|
|
896
859
|
continue;
|
|
897
860
|
case "measure-unit":
|
|
898
861
|
case "unit":
|
|
899
|
-
t.style = "unit", t.unit =
|
|
862
|
+
t.style = "unit", t.unit = yr(i.options[0]);
|
|
900
863
|
continue;
|
|
901
864
|
case "compact-short":
|
|
902
865
|
case "K":
|
|
@@ -907,13 +870,13 @@ function Lr(e) {
|
|
|
907
870
|
t.notation = "compact", t.compactDisplay = "long";
|
|
908
871
|
continue;
|
|
909
872
|
case "scientific":
|
|
910
|
-
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
911
|
-
return d(d({},
|
|
873
|
+
t = d(d(d({}, t), { notation: "scientific" }), i.options.reduce(function(f, a) {
|
|
874
|
+
return d(d({}, f), Ue(a));
|
|
912
875
|
}, {}));
|
|
913
876
|
continue;
|
|
914
877
|
case "engineering":
|
|
915
|
-
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
916
|
-
return d(d({},
|
|
878
|
+
t = d(d(d({}, t), { notation: "engineering" }), i.options.reduce(function(f, a) {
|
|
879
|
+
return d(d({}, f), Ue(a));
|
|
917
880
|
}, {}));
|
|
918
881
|
continue;
|
|
919
882
|
case "notation-simple":
|
|
@@ -958,11 +921,11 @@ function Lr(e) {
|
|
|
958
921
|
case "integer-width":
|
|
959
922
|
if (i.options.length > 1)
|
|
960
923
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
961
|
-
i.options[0].replace(
|
|
924
|
+
i.options[0].replace(_r, function(f, a, h, l, c, b) {
|
|
962
925
|
if (a)
|
|
963
|
-
t.minimumIntegerDigits =
|
|
926
|
+
t.minimumIntegerDigits = h.length;
|
|
964
927
|
else {
|
|
965
|
-
if (
|
|
928
|
+
if (l && c)
|
|
966
929
|
throw new Error("We currently do not support maximum integer digits");
|
|
967
930
|
if (b)
|
|
968
931
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -971,32 +934,32 @@ function Lr(e) {
|
|
|
971
934
|
});
|
|
972
935
|
continue;
|
|
973
936
|
}
|
|
974
|
-
if (
|
|
937
|
+
if (mt.test(i.stem)) {
|
|
975
938
|
t.minimumIntegerDigits = i.stem.length;
|
|
976
939
|
continue;
|
|
977
940
|
}
|
|
978
|
-
if (
|
|
941
|
+
if (Ce.test(i.stem)) {
|
|
979
942
|
if (i.options.length > 1)
|
|
980
943
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
981
|
-
i.stem.replace(
|
|
982
|
-
return
|
|
944
|
+
i.stem.replace(Ce, function(f, a, h, l, c, b) {
|
|
945
|
+
return h === "*" ? t.minimumFractionDigits = a.length : l && l[0] === "#" ? t.maximumFractionDigits = l.length : c && b ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + b.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
983
946
|
});
|
|
984
947
|
var s = i.options[0];
|
|
985
|
-
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t),
|
|
948
|
+
s === "w" ? t = d(d({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = d(d({}, t), Re(s)));
|
|
986
949
|
continue;
|
|
987
950
|
}
|
|
988
|
-
if (
|
|
989
|
-
t = d(d({}, t),
|
|
951
|
+
if (ct.test(i.stem)) {
|
|
952
|
+
t = d(d({}, t), Re(i.stem));
|
|
990
953
|
continue;
|
|
991
954
|
}
|
|
992
|
-
var
|
|
993
|
-
o && (t = d(d({}, t), o));
|
|
994
|
-
var u = $r(i.stem);
|
|
955
|
+
var u = pt(i.stem);
|
|
995
956
|
u && (t = d(d({}, t), u));
|
|
957
|
+
var o = vr(i.stem);
|
|
958
|
+
o && (t = d(d({}, t), o));
|
|
996
959
|
}
|
|
997
960
|
return t;
|
|
998
961
|
}
|
|
999
|
-
var
|
|
962
|
+
var Q = {
|
|
1000
963
|
"001": [
|
|
1001
964
|
"H",
|
|
1002
965
|
"h"
|
|
@@ -2411,22 +2374,22 @@ var J = {
|
|
|
2411
2374
|
"h"
|
|
2412
2375
|
]
|
|
2413
2376
|
};
|
|
2414
|
-
function
|
|
2377
|
+
function Tr(e, t) {
|
|
2415
2378
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2416
2379
|
var i = e.charAt(n);
|
|
2417
2380
|
if (i === "j") {
|
|
2418
2381
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2419
2382
|
s++, n++;
|
|
2420
|
-
var
|
|
2421
|
-
for ((a == "H" || a == "k") && (
|
|
2422
|
-
r +=
|
|
2423
|
-
for (;
|
|
2383
|
+
var u = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), f = "a", a = Sr(t);
|
|
2384
|
+
for ((a == "H" || a == "k") && (o = 0); o-- > 0; )
|
|
2385
|
+
r += f;
|
|
2386
|
+
for (; u-- > 0; )
|
|
2424
2387
|
r = a + r;
|
|
2425
2388
|
} else i === "J" ? r += "H" : r += i;
|
|
2426
2389
|
}
|
|
2427
2390
|
return r;
|
|
2428
2391
|
}
|
|
2429
|
-
function
|
|
2392
|
+
function Sr(e) {
|
|
2430
2393
|
var t = e.hourCycle;
|
|
2431
2394
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2432
2395
|
e.hourCycles && // @ts-ignore
|
|
@@ -2445,23 +2408,23 @@ function Cr(e) {
|
|
|
2445
2408
|
}
|
|
2446
2409
|
var r = e.language, n;
|
|
2447
2410
|
r !== "root" && (n = e.maximize().region);
|
|
2448
|
-
var i =
|
|
2411
|
+
var i = Q[n || ""] || Q[r || ""] || Q["".concat(r, "-001")] || Q["001"];
|
|
2449
2412
|
return i[0];
|
|
2450
2413
|
}
|
|
2451
|
-
var
|
|
2414
|
+
var le, Br = new RegExp("^".concat(ft.source, "*")), Ar = new RegExp("".concat(ft.source, "*$"));
|
|
2452
2415
|
function p(e, t) {
|
|
2453
2416
|
return { start: e, end: t };
|
|
2454
2417
|
}
|
|
2455
|
-
var
|
|
2418
|
+
var Pr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Nr = !!String.fromCodePoint, Or = !!Object.fromEntries, Ir = !!String.prototype.codePointAt, wr = !!String.prototype.trimStart, $r = !!String.prototype.trimEnd, Lr = !!Number.isSafeInteger, Mr = Lr ? Number.isSafeInteger : function(e) {
|
|
2456
2419
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2457
|
-
},
|
|
2420
|
+
}, ge = !0;
|
|
2458
2421
|
try {
|
|
2459
|
-
var
|
|
2460
|
-
|
|
2461
|
-
} catch
|
|
2462
|
-
|
|
2422
|
+
var Cr = bt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2423
|
+
ge = ((le = Cr.exec("a")) === null || le === void 0 ? void 0 : le[0]) === "a";
|
|
2424
|
+
} catch {
|
|
2425
|
+
ge = !1;
|
|
2463
2426
|
}
|
|
2464
|
-
var
|
|
2427
|
+
var Ge = Pr ? (
|
|
2465
2428
|
// Native
|
|
2466
2429
|
function(t, r, n) {
|
|
2467
2430
|
return t.startsWith(r, n);
|
|
@@ -2471,31 +2434,31 @@ var Xe = Gr ? (
|
|
|
2471
2434
|
function(t, r, n) {
|
|
2472
2435
|
return t.slice(n, n + r.length) === r;
|
|
2473
2436
|
}
|
|
2474
|
-
),
|
|
2437
|
+
), Ee = Nr ? String.fromCodePoint : (
|
|
2475
2438
|
// IE11
|
|
2476
2439
|
function() {
|
|
2477
2440
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2478
2441
|
t[r] = arguments[r];
|
|
2479
|
-
for (var n = "", i = t.length, s = 0,
|
|
2480
|
-
if (
|
|
2481
|
-
throw RangeError(
|
|
2482
|
-
n +=
|
|
2442
|
+
for (var n = "", i = t.length, s = 0, u; i > s; ) {
|
|
2443
|
+
if (u = t[s++], u > 1114111)
|
|
2444
|
+
throw RangeError(u + " is not a valid code point");
|
|
2445
|
+
n += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
|
|
2483
2446
|
}
|
|
2484
2447
|
return n;
|
|
2485
2448
|
}
|
|
2486
|
-
),
|
|
2449
|
+
), De = (
|
|
2487
2450
|
// native
|
|
2488
|
-
|
|
2451
|
+
Or ? Object.fromEntries : (
|
|
2489
2452
|
// Ponyfill
|
|
2490
2453
|
function(t) {
|
|
2491
2454
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2492
|
-
var s = i[n],
|
|
2493
|
-
r[
|
|
2455
|
+
var s = i[n], u = s[0], o = s[1];
|
|
2456
|
+
r[u] = o;
|
|
2494
2457
|
}
|
|
2495
2458
|
return r;
|
|
2496
2459
|
}
|
|
2497
2460
|
)
|
|
2498
|
-
),
|
|
2461
|
+
), dt = Ir ? (
|
|
2499
2462
|
// Native
|
|
2500
2463
|
function(t, r) {
|
|
2501
2464
|
return t.codePointAt(r);
|
|
@@ -2509,7 +2472,7 @@ var Xe = Gr ? (
|
|
|
2509
2472
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2510
2473
|
}
|
|
2511
2474
|
}
|
|
2512
|
-
),
|
|
2475
|
+
), Rr = wr ? (
|
|
2513
2476
|
// Native
|
|
2514
2477
|
function(t) {
|
|
2515
2478
|
return t.trimStart();
|
|
@@ -2517,9 +2480,9 @@ var Xe = Gr ? (
|
|
|
2517
2480
|
) : (
|
|
2518
2481
|
// Ponyfill
|
|
2519
2482
|
function(t) {
|
|
2520
|
-
return t.replace(
|
|
2483
|
+
return t.replace(Br, "");
|
|
2521
2484
|
}
|
|
2522
|
-
),
|
|
2485
|
+
), Ur = $r ? (
|
|
2523
2486
|
// Native
|
|
2524
2487
|
function(t) {
|
|
2525
2488
|
return t.trimEnd();
|
|
@@ -2527,32 +2490,32 @@ var Xe = Gr ? (
|
|
|
2527
2490
|
) : (
|
|
2528
2491
|
// Ponyfill
|
|
2529
2492
|
function(t) {
|
|
2530
|
-
return t.replace(
|
|
2493
|
+
return t.replace(Ar, "");
|
|
2531
2494
|
}
|
|
2532
2495
|
);
|
|
2533
|
-
function
|
|
2496
|
+
function bt(e, t) {
|
|
2534
2497
|
return new RegExp(e, t);
|
|
2535
2498
|
}
|
|
2536
|
-
var
|
|
2537
|
-
if (
|
|
2538
|
-
var
|
|
2539
|
-
|
|
2499
|
+
var xe;
|
|
2500
|
+
if (ge) {
|
|
2501
|
+
var Fe = bt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2502
|
+
xe = function(t, r) {
|
|
2540
2503
|
var n;
|
|
2541
|
-
|
|
2542
|
-
var i =
|
|
2504
|
+
Fe.lastIndex = r;
|
|
2505
|
+
var i = Fe.exec(t);
|
|
2543
2506
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2544
2507
|
};
|
|
2545
2508
|
} else
|
|
2546
|
-
|
|
2509
|
+
xe = function(t, r) {
|
|
2547
2510
|
for (var n = []; ; ) {
|
|
2548
|
-
var i =
|
|
2549
|
-
if (i === void 0 ||
|
|
2511
|
+
var i = dt(t, r);
|
|
2512
|
+
if (i === void 0 || gt(i) || jr(i))
|
|
2550
2513
|
break;
|
|
2551
2514
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2552
2515
|
}
|
|
2553
|
-
return
|
|
2516
|
+
return Ee.apply(void 0, n);
|
|
2554
2517
|
};
|
|
2555
|
-
var
|
|
2518
|
+
var Gr = (
|
|
2556
2519
|
/** @class */
|
|
2557
2520
|
function() {
|
|
2558
2521
|
function e(t, r) {
|
|
@@ -2566,33 +2529,33 @@ var Jr = (
|
|
|
2566
2529
|
for (var i = []; !this.isEOF(); ) {
|
|
2567
2530
|
var s = this.char();
|
|
2568
2531
|
if (s === 123) {
|
|
2569
|
-
var
|
|
2570
|
-
if (
|
|
2571
|
-
return
|
|
2572
|
-
i.push(
|
|
2532
|
+
var u = this.parseArgument(t, n);
|
|
2533
|
+
if (u.err)
|
|
2534
|
+
return u;
|
|
2535
|
+
i.push(u.val);
|
|
2573
2536
|
} else {
|
|
2574
2537
|
if (s === 125 && t > 0)
|
|
2575
2538
|
break;
|
|
2576
2539
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2577
|
-
var
|
|
2540
|
+
var o = this.clonePosition();
|
|
2578
2541
|
this.bump(), i.push({
|
|
2579
2542
|
type: E.pound,
|
|
2580
|
-
location: p(
|
|
2543
|
+
location: p(o, this.clonePosition())
|
|
2581
2544
|
});
|
|
2582
2545
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2583
2546
|
if (n)
|
|
2584
2547
|
break;
|
|
2585
2548
|
return this.error(m.UNMATCHED_CLOSING_TAG, p(this.clonePosition(), this.clonePosition()));
|
|
2586
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2587
|
-
var
|
|
2588
|
-
if (
|
|
2589
|
-
return
|
|
2590
|
-
i.push(
|
|
2549
|
+
} else if (s === 60 && !this.ignoreTag && ye(this.peek() || 0)) {
|
|
2550
|
+
var u = this.parseTag(t, r);
|
|
2551
|
+
if (u.err)
|
|
2552
|
+
return u;
|
|
2553
|
+
i.push(u.val);
|
|
2591
2554
|
} else {
|
|
2592
|
-
var
|
|
2593
|
-
if (
|
|
2594
|
-
return
|
|
2595
|
-
i.push(
|
|
2555
|
+
var u = this.parseLiteral(t, r);
|
|
2556
|
+
if (u.err)
|
|
2557
|
+
return u;
|
|
2558
|
+
i.push(u.val);
|
|
2596
2559
|
}
|
|
2597
2560
|
}
|
|
2598
2561
|
}
|
|
@@ -2614,27 +2577,27 @@ var Jr = (
|
|
|
2614
2577
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2615
2578
|
if (s.err)
|
|
2616
2579
|
return s;
|
|
2617
|
-
var
|
|
2580
|
+
var u = s.val, o = this.clonePosition();
|
|
2618
2581
|
if (this.bumpIf("</")) {
|
|
2619
|
-
if (this.isEOF() || !
|
|
2620
|
-
return this.error(m.INVALID_TAG, p(
|
|
2621
|
-
var
|
|
2622
|
-
return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG, p(
|
|
2582
|
+
if (this.isEOF() || !ye(this.char()))
|
|
2583
|
+
return this.error(m.INVALID_TAG, p(o, this.clonePosition()));
|
|
2584
|
+
var f = this.clonePosition(), a = this.parseTagName();
|
|
2585
|
+
return i !== a ? this.error(m.UNMATCHED_CLOSING_TAG, p(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2623
2586
|
val: {
|
|
2624
2587
|
type: E.tag,
|
|
2625
2588
|
value: i,
|
|
2626
|
-
children:
|
|
2589
|
+
children: u,
|
|
2627
2590
|
location: p(n, this.clonePosition())
|
|
2628
2591
|
},
|
|
2629
2592
|
err: null
|
|
2630
|
-
} : this.error(m.INVALID_TAG, p(
|
|
2593
|
+
} : this.error(m.INVALID_TAG, p(o, this.clonePosition())));
|
|
2631
2594
|
} else
|
|
2632
2595
|
return this.error(m.UNCLOSED_TAG, p(n, this.clonePosition()));
|
|
2633
2596
|
} else
|
|
2634
2597
|
return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
|
|
2635
2598
|
}, e.prototype.parseTagName = function() {
|
|
2636
2599
|
var t = this.offset();
|
|
2637
|
-
for (this.bump(); !this.isEOF() &&
|
|
2600
|
+
for (this.bump(); !this.isEOF() && Fr(this.char()); )
|
|
2638
2601
|
this.bump();
|
|
2639
2602
|
return this.message.slice(t, this.offset());
|
|
2640
2603
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2644,26 +2607,26 @@ var Jr = (
|
|
|
2644
2607
|
i += s;
|
|
2645
2608
|
continue;
|
|
2646
2609
|
}
|
|
2647
|
-
var
|
|
2648
|
-
if (o) {
|
|
2649
|
-
i += o;
|
|
2650
|
-
continue;
|
|
2651
|
-
}
|
|
2652
|
-
var u = this.tryParseLeftAngleBracket();
|
|
2610
|
+
var u = this.tryParseUnquoted(t, r);
|
|
2653
2611
|
if (u) {
|
|
2654
2612
|
i += u;
|
|
2655
2613
|
continue;
|
|
2656
2614
|
}
|
|
2615
|
+
var o = this.tryParseLeftAngleBracket();
|
|
2616
|
+
if (o) {
|
|
2617
|
+
i += o;
|
|
2618
|
+
continue;
|
|
2619
|
+
}
|
|
2657
2620
|
break;
|
|
2658
2621
|
}
|
|
2659
|
-
var
|
|
2622
|
+
var f = p(n, this.clonePosition());
|
|
2660
2623
|
return {
|
|
2661
|
-
val: { type: E.literal, value: i, location:
|
|
2624
|
+
val: { type: E.literal, value: i, location: f },
|
|
2662
2625
|
err: null
|
|
2663
2626
|
};
|
|
2664
2627
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2665
2628
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2666
|
-
!
|
|
2629
|
+
!Dr(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2667
2630
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2668
2631
|
if (this.isEOF() || this.char() !== 39)
|
|
2669
2632
|
return null;
|
|
@@ -2697,12 +2660,12 @@ var Jr = (
|
|
|
2697
2660
|
r.push(n);
|
|
2698
2661
|
this.bump();
|
|
2699
2662
|
}
|
|
2700
|
-
return
|
|
2663
|
+
return Ee.apply(void 0, r);
|
|
2701
2664
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2702
2665
|
if (this.isEOF())
|
|
2703
2666
|
return null;
|
|
2704
2667
|
var n = this.char();
|
|
2705
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2668
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ee(n));
|
|
2706
2669
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2707
2670
|
var n = this.clonePosition();
|
|
2708
2671
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2731,15 +2694,15 @@ var Jr = (
|
|
|
2731
2694
|
return this.error(m.MALFORMED_ARGUMENT, p(n, this.clonePosition()));
|
|
2732
2695
|
}
|
|
2733
2696
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2734
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2697
|
+
var t = this.clonePosition(), r = this.offset(), n = xe(this.message, r), i = r + n.length;
|
|
2735
2698
|
this.bumpTo(i);
|
|
2736
|
-
var s = this.clonePosition(),
|
|
2737
|
-
return { value: n, location:
|
|
2699
|
+
var s = this.clonePosition(), u = p(t, s);
|
|
2700
|
+
return { value: n, location: u };
|
|
2738
2701
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2739
|
-
var s,
|
|
2740
|
-
switch (
|
|
2702
|
+
var s, u = this.clonePosition(), o = this.parseIdentifierIfPossible().value, f = this.clonePosition();
|
|
2703
|
+
switch (o) {
|
|
2741
2704
|
case "":
|
|
2742
|
-
return this.error(m.EXPECT_ARGUMENT_TYPE, p(
|
|
2705
|
+
return this.error(m.EXPECT_ARGUMENT_TYPE, p(u, f));
|
|
2743
2706
|
case "number":
|
|
2744
2707
|
case "date":
|
|
2745
2708
|
case "time": {
|
|
@@ -2747,50 +2710,50 @@ var Jr = (
|
|
|
2747
2710
|
var a = null;
|
|
2748
2711
|
if (this.bumpIf(",")) {
|
|
2749
2712
|
this.bumpSpace();
|
|
2750
|
-
var
|
|
2751
|
-
if (
|
|
2752
|
-
return
|
|
2753
|
-
var c =
|
|
2713
|
+
var h = this.clonePosition(), l = this.parseSimpleArgStyleIfPossible();
|
|
2714
|
+
if (l.err)
|
|
2715
|
+
return l;
|
|
2716
|
+
var c = Ur(l.val);
|
|
2754
2717
|
if (c.length === 0)
|
|
2755
2718
|
return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2756
|
-
var b = p(
|
|
2719
|
+
var b = p(h, this.clonePosition());
|
|
2757
2720
|
a = { style: c, styleLocation: b };
|
|
2758
2721
|
}
|
|
2759
2722
|
var g = this.tryParseArgumentClose(i);
|
|
2760
2723
|
if (g.err)
|
|
2761
2724
|
return g;
|
|
2762
2725
|
var y = p(i, this.clonePosition());
|
|
2763
|
-
if (a &&
|
|
2764
|
-
var
|
|
2765
|
-
if (
|
|
2766
|
-
var
|
|
2767
|
-
return
|
|
2768
|
-
val: { type: E.number, value: n, location: y, style:
|
|
2726
|
+
if (a && Ge(a?.style, "::", 0)) {
|
|
2727
|
+
var H = Rr(a.style.slice(2));
|
|
2728
|
+
if (o === "number") {
|
|
2729
|
+
var l = this.parseNumberSkeletonFromString(H, a.styleLocation);
|
|
2730
|
+
return l.err ? l : {
|
|
2731
|
+
val: { type: E.number, value: n, location: y, style: l.val },
|
|
2769
2732
|
err: null
|
|
2770
2733
|
};
|
|
2771
2734
|
} else {
|
|
2772
|
-
if (
|
|
2735
|
+
if (H.length === 0)
|
|
2773
2736
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, y);
|
|
2774
|
-
var
|
|
2775
|
-
this.locale && (
|
|
2737
|
+
var D = H;
|
|
2738
|
+
this.locale && (D = Tr(H, this.locale));
|
|
2776
2739
|
var c = {
|
|
2777
|
-
type:
|
|
2778
|
-
pattern:
|
|
2740
|
+
type: L.dateTime,
|
|
2741
|
+
pattern: D,
|
|
2779
2742
|
location: a.styleLocation,
|
|
2780
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2781
|
-
},
|
|
2743
|
+
parsedOptions: this.shouldParseSkeletons ? gr(D) : {}
|
|
2744
|
+
}, A = o === "date" ? E.date : E.time;
|
|
2782
2745
|
return {
|
|
2783
|
-
val: { type:
|
|
2746
|
+
val: { type: A, value: n, location: y, style: c },
|
|
2784
2747
|
err: null
|
|
2785
2748
|
};
|
|
2786
2749
|
}
|
|
2787
2750
|
}
|
|
2788
2751
|
return {
|
|
2789
2752
|
val: {
|
|
2790
|
-
type:
|
|
2753
|
+
type: o === "number" ? E.number : o === "date" ? E.date : E.time,
|
|
2791
2754
|
value: n,
|
|
2792
2755
|
location: y,
|
|
2793
|
-
style: (s = a
|
|
2756
|
+
style: (s = a?.style) !== null && s !== void 0 ? s : null
|
|
2794
2757
|
},
|
|
2795
2758
|
err: null
|
|
2796
2759
|
};
|
|
@@ -2798,49 +2761,49 @@ var Jr = (
|
|
|
2798
2761
|
case "plural":
|
|
2799
2762
|
case "selectordinal":
|
|
2800
2763
|
case "select": {
|
|
2801
|
-
var
|
|
2764
|
+
var v = this.clonePosition();
|
|
2802
2765
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2803
|
-
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(
|
|
2766
|
+
return this.error(m.EXPECT_SELECT_ARGUMENT_OPTIONS, p(v, d({}, v)));
|
|
2804
2767
|
this.bumpSpace();
|
|
2805
|
-
var
|
|
2806
|
-
if (
|
|
2768
|
+
var F = this.parseIdentifierIfPossible(), S = 0;
|
|
2769
|
+
if (o !== "select" && F.value === "offset") {
|
|
2807
2770
|
if (!this.bumpIf(":"))
|
|
2808
2771
|
return this.error(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p(this.clonePosition(), this.clonePosition()));
|
|
2809
2772
|
this.bumpSpace();
|
|
2810
|
-
var
|
|
2811
|
-
if (
|
|
2812
|
-
return
|
|
2813
|
-
this.bumpSpace(),
|
|
2773
|
+
var l = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, m.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2774
|
+
if (l.err)
|
|
2775
|
+
return l;
|
|
2776
|
+
this.bumpSpace(), F = this.parseIdentifierIfPossible(), S = l.val;
|
|
2814
2777
|
}
|
|
2815
|
-
var
|
|
2816
|
-
if (
|
|
2817
|
-
return
|
|
2778
|
+
var Z = this.tryParsePluralOrSelectOptions(t, o, r, F);
|
|
2779
|
+
if (Z.err)
|
|
2780
|
+
return Z;
|
|
2818
2781
|
var g = this.tryParseArgumentClose(i);
|
|
2819
2782
|
if (g.err)
|
|
2820
2783
|
return g;
|
|
2821
|
-
var
|
|
2822
|
-
return
|
|
2784
|
+
var Oe = p(i, this.clonePosition());
|
|
2785
|
+
return o === "select" ? {
|
|
2823
2786
|
val: {
|
|
2824
2787
|
type: E.select,
|
|
2825
2788
|
value: n,
|
|
2826
|
-
options:
|
|
2827
|
-
location:
|
|
2789
|
+
options: De(Z.val),
|
|
2790
|
+
location: Oe
|
|
2828
2791
|
},
|
|
2829
2792
|
err: null
|
|
2830
2793
|
} : {
|
|
2831
2794
|
val: {
|
|
2832
2795
|
type: E.plural,
|
|
2833
2796
|
value: n,
|
|
2834
|
-
options:
|
|
2835
|
-
offset:
|
|
2836
|
-
pluralType:
|
|
2837
|
-
location:
|
|
2797
|
+
options: De(Z.val),
|
|
2798
|
+
offset: S,
|
|
2799
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2800
|
+
location: Oe
|
|
2838
2801
|
},
|
|
2839
2802
|
err: null
|
|
2840
2803
|
};
|
|
2841
2804
|
}
|
|
2842
2805
|
default:
|
|
2843
|
-
return this.error(m.INVALID_ARGUMENT_TYPE, p(
|
|
2806
|
+
return this.error(m.INVALID_ARGUMENT_TYPE, p(u, f));
|
|
2844
2807
|
}
|
|
2845
2808
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2846
2809
|
return this.isEOF() || this.char() !== 125 ? this.error(m.EXPECT_ARGUMENT_CLOSING_BRACE, p(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2882,34 +2845,34 @@ var Jr = (
|
|
|
2882
2845
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2883
2846
|
var n = [];
|
|
2884
2847
|
try {
|
|
2885
|
-
n =
|
|
2886
|
-
} catch
|
|
2848
|
+
n = xr(t);
|
|
2849
|
+
} catch {
|
|
2887
2850
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2888
2851
|
}
|
|
2889
2852
|
return {
|
|
2890
2853
|
val: {
|
|
2891
|
-
type:
|
|
2854
|
+
type: L.number,
|
|
2892
2855
|
tokens: n,
|
|
2893
2856
|
location: r,
|
|
2894
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2857
|
+
parsedOptions: this.shouldParseSkeletons ? Hr(n) : {}
|
|
2895
2858
|
},
|
|
2896
2859
|
err: null
|
|
2897
2860
|
};
|
|
2898
2861
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
2899
|
-
for (var s,
|
|
2862
|
+
for (var s, u = !1, o = [], f = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
2900
2863
|
if (a.length === 0) {
|
|
2901
|
-
var
|
|
2864
|
+
var l = this.clonePosition();
|
|
2902
2865
|
if (r !== "select" && this.bumpIf("=")) {
|
|
2903
2866
|
var c = this.tryParseDecimalInteger(m.EXPECT_PLURAL_ARGUMENT_SELECTOR, m.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2904
2867
|
if (c.err)
|
|
2905
2868
|
return c;
|
|
2906
|
-
|
|
2869
|
+
h = p(l, this.clonePosition()), a = this.message.slice(l.offset, this.offset());
|
|
2907
2870
|
} else
|
|
2908
2871
|
break;
|
|
2909
2872
|
}
|
|
2910
|
-
if (
|
|
2911
|
-
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
2912
|
-
a === "other" && (
|
|
2873
|
+
if (f.has(a))
|
|
2874
|
+
return this.error(r === "select" ? m.DUPLICATE_SELECT_ARGUMENT_SELECTOR : m.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2875
|
+
a === "other" && (u = !0), this.bumpSpace();
|
|
2913
2876
|
var b = this.clonePosition();
|
|
2914
2877
|
if (!this.bumpIf("{"))
|
|
2915
2878
|
return this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : m.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, p(this.clonePosition(), this.clonePosition()));
|
|
@@ -2919,27 +2882,27 @@ var Jr = (
|
|
|
2919
2882
|
var y = this.tryParseArgumentClose(b);
|
|
2920
2883
|
if (y.err)
|
|
2921
2884
|
return y;
|
|
2922
|
-
|
|
2885
|
+
o.push([
|
|
2923
2886
|
a,
|
|
2924
2887
|
{
|
|
2925
2888
|
value: g.val,
|
|
2926
2889
|
location: p(b, this.clonePosition())
|
|
2927
2890
|
}
|
|
2928
|
-
]),
|
|
2891
|
+
]), f.add(a), this.bumpSpace(), s = this.parseIdentifierIfPossible(), a = s.value, h = s.location;
|
|
2929
2892
|
}
|
|
2930
|
-
return
|
|
2893
|
+
return o.length === 0 ? this.error(r === "select" ? m.EXPECT_SELECT_ARGUMENT_SELECTOR : m.EXPECT_PLURAL_ARGUMENT_SELECTOR, p(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(m.MISSING_OTHER_CLAUSE, p(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
2931
2894
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
2932
2895
|
var n = 1, i = this.clonePosition();
|
|
2933
2896
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
2934
|
-
for (var s = !1,
|
|
2935
|
-
var
|
|
2936
|
-
if (
|
|
2937
|
-
s = !0,
|
|
2897
|
+
for (var s = !1, u = 0; !this.isEOF(); ) {
|
|
2898
|
+
var o = this.char();
|
|
2899
|
+
if (o >= 48 && o <= 57)
|
|
2900
|
+
s = !0, u = u * 10 + (o - 48), this.bump();
|
|
2938
2901
|
else
|
|
2939
2902
|
break;
|
|
2940
2903
|
}
|
|
2941
|
-
var
|
|
2942
|
-
return s ? (
|
|
2904
|
+
var f = p(i, this.clonePosition());
|
|
2905
|
+
return s ? (u *= n, Mr(u) ? { val: u, err: null } : this.error(r, f)) : this.error(t, f);
|
|
2943
2906
|
}, e.prototype.offset = function() {
|
|
2944
2907
|
return this.position.offset;
|
|
2945
2908
|
}, e.prototype.isEOF = function() {
|
|
@@ -2954,7 +2917,7 @@ var Jr = (
|
|
|
2954
2917
|
var t = this.position.offset;
|
|
2955
2918
|
if (t >= this.message.length)
|
|
2956
2919
|
throw Error("out of bound");
|
|
2957
|
-
var r =
|
|
2920
|
+
var r = dt(this.message, t);
|
|
2958
2921
|
if (r === void 0)
|
|
2959
2922
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2960
2923
|
return r;
|
|
@@ -2973,7 +2936,7 @@ var Jr = (
|
|
|
2973
2936
|
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);
|
|
2974
2937
|
}
|
|
2975
2938
|
}, e.prototype.bumpIf = function(t) {
|
|
2976
|
-
if (
|
|
2939
|
+
if (Ge(this.message, t, this.offset())) {
|
|
2977
2940
|
for (var r = 0; r < t.length; r++)
|
|
2978
2941
|
this.bump();
|
|
2979
2942
|
return !0;
|
|
@@ -2995,56 +2958,56 @@ var Jr = (
|
|
|
2995
2958
|
break;
|
|
2996
2959
|
}
|
|
2997
2960
|
}, e.prototype.bumpSpace = function() {
|
|
2998
|
-
for (; !this.isEOF() &&
|
|
2961
|
+
for (; !this.isEOF() && gt(this.char()); )
|
|
2999
2962
|
this.bump();
|
|
3000
2963
|
}, e.prototype.peek = function() {
|
|
3001
2964
|
if (this.isEOF())
|
|
3002
2965
|
return null;
|
|
3003
2966
|
var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
|
|
3004
|
-
return n
|
|
2967
|
+
return n ?? null;
|
|
3005
2968
|
}, e;
|
|
3006
2969
|
}()
|
|
3007
2970
|
);
|
|
3008
|
-
function
|
|
2971
|
+
function ye(e) {
|
|
3009
2972
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3010
2973
|
}
|
|
3011
|
-
function
|
|
3012
|
-
return
|
|
2974
|
+
function Dr(e) {
|
|
2975
|
+
return ye(e) || e === 47;
|
|
3013
2976
|
}
|
|
3014
|
-
function
|
|
2977
|
+
function Fr(e) {
|
|
3015
2978
|
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;
|
|
3016
2979
|
}
|
|
3017
|
-
function
|
|
2980
|
+
function gt(e) {
|
|
3018
2981
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3019
2982
|
}
|
|
3020
|
-
function
|
|
2983
|
+
function jr(e) {
|
|
3021
2984
|
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;
|
|
3022
2985
|
}
|
|
3023
|
-
function
|
|
2986
|
+
function _e(e) {
|
|
3024
2987
|
e.forEach(function(t) {
|
|
3025
|
-
if (delete t.location,
|
|
2988
|
+
if (delete t.location, at(t) || ut(t))
|
|
3026
2989
|
for (var r in t.options)
|
|
3027
|
-
delete t.options[r].location,
|
|
3028
|
-
else
|
|
2990
|
+
delete t.options[r].location, _e(t.options[r].value);
|
|
2991
|
+
else it(t) && lt(t.style) || (st(t) || ot(t)) && be(t.style) ? delete t.style.location : ht(t) && _e(t.children);
|
|
3029
2992
|
});
|
|
3030
2993
|
}
|
|
3031
|
-
function
|
|
2994
|
+
function Vr(e, t) {
|
|
3032
2995
|
t === void 0 && (t = {}), t = d({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3033
|
-
var r = new
|
|
2996
|
+
var r = new Gr(e, t).parse();
|
|
3034
2997
|
if (r.err) {
|
|
3035
2998
|
var n = SyntaxError(m[r.err.kind]);
|
|
3036
2999
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3037
3000
|
}
|
|
3038
|
-
return t
|
|
3001
|
+
return t?.captureLocation || _e(r.val), r.val;
|
|
3039
3002
|
}
|
|
3040
|
-
var
|
|
3003
|
+
var M;
|
|
3041
3004
|
(function(e) {
|
|
3042
3005
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3043
|
-
})(
|
|
3044
|
-
var
|
|
3006
|
+
})(M || (M = {}));
|
|
3007
|
+
var ne = (
|
|
3045
3008
|
/** @class */
|
|
3046
3009
|
function(e) {
|
|
3047
|
-
|
|
3010
|
+
re(t, e);
|
|
3048
3011
|
function t(r, n, i) {
|
|
3049
3012
|
var s = e.call(this, r) || this;
|
|
3050
3013
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3053,155 +3016,155 @@ var ie = (
|
|
|
3053
3016
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3054
3017
|
}, t;
|
|
3055
3018
|
}(Error)
|
|
3056
|
-
),
|
|
3019
|
+
), je = (
|
|
3057
3020
|
/** @class */
|
|
3058
3021
|
function(e) {
|
|
3059
|
-
|
|
3022
|
+
re(t, e);
|
|
3060
3023
|
function t(r, n, i, s) {
|
|
3061
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3024
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), M.INVALID_VALUE, s) || this;
|
|
3062
3025
|
}
|
|
3063
3026
|
return t;
|
|
3064
|
-
}(
|
|
3065
|
-
),
|
|
3027
|
+
}(ne)
|
|
3028
|
+
), kr = (
|
|
3066
3029
|
/** @class */
|
|
3067
3030
|
function(e) {
|
|
3068
|
-
|
|
3031
|
+
re(t, e);
|
|
3069
3032
|
function t(r, n, i) {
|
|
3070
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3033
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), M.INVALID_VALUE, i) || this;
|
|
3071
3034
|
}
|
|
3072
3035
|
return t;
|
|
3073
|
-
}(
|
|
3074
|
-
),
|
|
3036
|
+
}(ne)
|
|
3037
|
+
), Xr = (
|
|
3075
3038
|
/** @class */
|
|
3076
3039
|
function(e) {
|
|
3077
|
-
|
|
3040
|
+
re(t, e);
|
|
3078
3041
|
function t(r, n) {
|
|
3079
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3042
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), M.MISSING_VALUE, n) || this;
|
|
3080
3043
|
}
|
|
3081
3044
|
return t;
|
|
3082
|
-
}(
|
|
3045
|
+
}(ne)
|
|
3083
3046
|
), x;
|
|
3084
3047
|
(function(e) {
|
|
3085
3048
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3086
3049
|
})(x || (x = {}));
|
|
3087
|
-
function
|
|
3050
|
+
function Wr(e) {
|
|
3088
3051
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3089
3052
|
var n = t[t.length - 1];
|
|
3090
3053
|
return !n || n.type !== x.literal || r.type !== x.literal ? t.push(r) : n.value += r.value, t;
|
|
3091
3054
|
}, []);
|
|
3092
3055
|
}
|
|
3093
|
-
function
|
|
3056
|
+
function zr(e) {
|
|
3094
3057
|
return typeof e == "function";
|
|
3095
3058
|
}
|
|
3096
|
-
function
|
|
3097
|
-
if (e.length === 1 &&
|
|
3059
|
+
function q(e, t, r, n, i, s, u) {
|
|
3060
|
+
if (e.length === 1 && Me(e[0]))
|
|
3098
3061
|
return [
|
|
3099
3062
|
{
|
|
3100
3063
|
type: x.literal,
|
|
3101
3064
|
value: e[0].value
|
|
3102
3065
|
}
|
|
3103
3066
|
];
|
|
3104
|
-
for (var
|
|
3105
|
-
var
|
|
3106
|
-
if (
|
|
3107
|
-
|
|
3067
|
+
for (var o = [], f = 0, a = e; f < a.length; f++) {
|
|
3068
|
+
var h = a[f];
|
|
3069
|
+
if (Me(h)) {
|
|
3070
|
+
o.push({
|
|
3108
3071
|
type: x.literal,
|
|
3109
|
-
value:
|
|
3072
|
+
value: h.value
|
|
3110
3073
|
});
|
|
3111
3074
|
continue;
|
|
3112
3075
|
}
|
|
3113
|
-
if (
|
|
3114
|
-
typeof s == "number" &&
|
|
3076
|
+
if (dr(h)) {
|
|
3077
|
+
typeof s == "number" && o.push({
|
|
3115
3078
|
type: x.literal,
|
|
3116
3079
|
value: r.getNumberFormat(t).format(s)
|
|
3117
3080
|
});
|
|
3118
3081
|
continue;
|
|
3119
3082
|
}
|
|
3120
|
-
var
|
|
3121
|
-
if (!(i &&
|
|
3122
|
-
throw new
|
|
3123
|
-
var c = i[
|
|
3124
|
-
if (
|
|
3125
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3083
|
+
var l = h.value;
|
|
3084
|
+
if (!(i && l in i))
|
|
3085
|
+
throw new Xr(l, u);
|
|
3086
|
+
var c = i[l];
|
|
3087
|
+
if (pr(h)) {
|
|
3088
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3126
3089
|
type: typeof c == "string" ? x.literal : x.object,
|
|
3127
3090
|
value: c
|
|
3128
3091
|
});
|
|
3129
3092
|
continue;
|
|
3130
3093
|
}
|
|
3131
|
-
if (
|
|
3132
|
-
var b = typeof
|
|
3133
|
-
|
|
3094
|
+
if (st(h)) {
|
|
3095
|
+
var b = typeof h.style == "string" ? n.date[h.style] : be(h.style) ? h.style.parsedOptions : void 0;
|
|
3096
|
+
o.push({
|
|
3134
3097
|
type: x.literal,
|
|
3135
3098
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3136
3099
|
});
|
|
3137
3100
|
continue;
|
|
3138
3101
|
}
|
|
3139
|
-
if (
|
|
3140
|
-
var b = typeof
|
|
3141
|
-
|
|
3102
|
+
if (ot(h)) {
|
|
3103
|
+
var b = typeof h.style == "string" ? n.time[h.style] : be(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3104
|
+
o.push({
|
|
3142
3105
|
type: x.literal,
|
|
3143
3106
|
value: r.getDateTimeFormat(t, b).format(c)
|
|
3144
3107
|
});
|
|
3145
3108
|
continue;
|
|
3146
3109
|
}
|
|
3147
|
-
if (
|
|
3148
|
-
var b = typeof
|
|
3149
|
-
b && b.scale && (c = c * (b.scale || 1)),
|
|
3110
|
+
if (it(h)) {
|
|
3111
|
+
var b = typeof h.style == "string" ? n.number[h.style] : lt(h.style) ? h.style.parsedOptions : void 0;
|
|
3112
|
+
b && b.scale && (c = c * (b.scale || 1)), o.push({
|
|
3150
3113
|
type: x.literal,
|
|
3151
3114
|
value: r.getNumberFormat(t, b).format(c)
|
|
3152
3115
|
});
|
|
3153
3116
|
continue;
|
|
3154
3117
|
}
|
|
3155
|
-
if (
|
|
3156
|
-
var g =
|
|
3157
|
-
if (!
|
|
3158
|
-
throw new
|
|
3159
|
-
var
|
|
3160
|
-
return
|
|
3118
|
+
if (ht(h)) {
|
|
3119
|
+
var g = h.children, y = h.value, H = i[y];
|
|
3120
|
+
if (!zr(H))
|
|
3121
|
+
throw new kr(y, "function", u);
|
|
3122
|
+
var D = q(g, t, r, n, i, s), A = H(D.map(function(S) {
|
|
3123
|
+
return S.value;
|
|
3161
3124
|
}));
|
|
3162
|
-
Array.isArray(
|
|
3125
|
+
Array.isArray(A) || (A = [A]), o.push.apply(o, A.map(function(S) {
|
|
3163
3126
|
return {
|
|
3164
|
-
type: typeof
|
|
3165
|
-
value:
|
|
3127
|
+
type: typeof S == "string" ? x.literal : x.object,
|
|
3128
|
+
value: S
|
|
3166
3129
|
};
|
|
3167
3130
|
}));
|
|
3168
3131
|
}
|
|
3169
|
-
if (
|
|
3170
|
-
var
|
|
3171
|
-
if (!
|
|
3172
|
-
throw new
|
|
3173
|
-
|
|
3132
|
+
if (at(h)) {
|
|
3133
|
+
var v = h.options[c] || h.options.other;
|
|
3134
|
+
if (!v)
|
|
3135
|
+
throw new je(h.value, c, Object.keys(h.options), u);
|
|
3136
|
+
o.push.apply(o, q(v.value, t, r, n, i));
|
|
3174
3137
|
continue;
|
|
3175
3138
|
}
|
|
3176
|
-
if (
|
|
3177
|
-
var
|
|
3178
|
-
if (!
|
|
3139
|
+
if (ut(h)) {
|
|
3140
|
+
var v = h.options["=".concat(c)];
|
|
3141
|
+
if (!v) {
|
|
3179
3142
|
if (!Intl.PluralRules)
|
|
3180
|
-
throw new
|
|
3143
|
+
throw new ne(`Intl.PluralRules is not available in this environment.
|
|
3181
3144
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3182
|
-
`,
|
|
3183
|
-
var
|
|
3184
|
-
|
|
3145
|
+
`, M.MISSING_INTL_API, u);
|
|
3146
|
+
var F = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3147
|
+
v = h.options[F] || h.options.other;
|
|
3185
3148
|
}
|
|
3186
|
-
if (!
|
|
3187
|
-
throw new
|
|
3188
|
-
|
|
3149
|
+
if (!v)
|
|
3150
|
+
throw new je(h.value, c, Object.keys(h.options), u);
|
|
3151
|
+
o.push.apply(o, q(v.value, t, r, n, i, c - (h.offset || 0)));
|
|
3189
3152
|
continue;
|
|
3190
3153
|
}
|
|
3191
3154
|
}
|
|
3192
|
-
return
|
|
3155
|
+
return Wr(o);
|
|
3193
3156
|
}
|
|
3194
|
-
function
|
|
3157
|
+
function Zr(e, t) {
|
|
3195
3158
|
return t ? d(d(d({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3196
3159
|
return r[n] = d(d({}, e[n]), t[n] || {}), r;
|
|
3197
3160
|
}, {})) : e;
|
|
3198
3161
|
}
|
|
3199
|
-
function
|
|
3162
|
+
function Qr(e, t) {
|
|
3200
3163
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3201
|
-
return r[n] =
|
|
3164
|
+
return r[n] = Zr(e[n], t[n]), r;
|
|
3202
3165
|
}, d({}, e)) : e;
|
|
3203
3166
|
}
|
|
3204
|
-
function
|
|
3167
|
+
function fe(e) {
|
|
3205
3168
|
return {
|
|
3206
3169
|
create: function() {
|
|
3207
3170
|
return {
|
|
@@ -3215,39 +3178,39 @@ function me(e) {
|
|
|
3215
3178
|
}
|
|
3216
3179
|
};
|
|
3217
3180
|
}
|
|
3218
|
-
function
|
|
3181
|
+
function Jr(e) {
|
|
3219
3182
|
return e === void 0 && (e = {
|
|
3220
3183
|
number: {},
|
|
3221
3184
|
dateTime: {},
|
|
3222
3185
|
pluralRules: {}
|
|
3223
3186
|
}), {
|
|
3224
|
-
getNumberFormat:
|
|
3187
|
+
getNumberFormat: ue(function() {
|
|
3225
3188
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3226
3189
|
r[n] = arguments[n];
|
|
3227
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3190
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, ae([void 0], r, !1)))();
|
|
3228
3191
|
}, {
|
|
3229
|
-
cache:
|
|
3230
|
-
strategy:
|
|
3192
|
+
cache: fe(e.number),
|
|
3193
|
+
strategy: he.variadic
|
|
3231
3194
|
}),
|
|
3232
|
-
getDateTimeFormat:
|
|
3195
|
+
getDateTimeFormat: ue(function() {
|
|
3233
3196
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3234
3197
|
r[n] = arguments[n];
|
|
3235
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3198
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, ae([void 0], r, !1)))();
|
|
3236
3199
|
}, {
|
|
3237
|
-
cache:
|
|
3238
|
-
strategy:
|
|
3200
|
+
cache: fe(e.dateTime),
|
|
3201
|
+
strategy: he.variadic
|
|
3239
3202
|
}),
|
|
3240
|
-
getPluralRules:
|
|
3203
|
+
getPluralRules: ue(function() {
|
|
3241
3204
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3242
3205
|
r[n] = arguments[n];
|
|
3243
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3206
|
+
return new ((t = Intl.PluralRules).bind.apply(t, ae([void 0], r, !1)))();
|
|
3244
3207
|
}, {
|
|
3245
|
-
cache:
|
|
3246
|
-
strategy:
|
|
3208
|
+
cache: fe(e.pluralRules),
|
|
3209
|
+
strategy: he.variadic
|
|
3247
3210
|
})
|
|
3248
3211
|
};
|
|
3249
3212
|
}
|
|
3250
|
-
var
|
|
3213
|
+
var qr = (
|
|
3251
3214
|
/** @class */
|
|
3252
3215
|
function() {
|
|
3253
3216
|
function e(t, r, n, i) {
|
|
@@ -3257,35 +3220,35 @@ var hn = (
|
|
|
3257
3220
|
number: {},
|
|
3258
3221
|
dateTime: {},
|
|
3259
3222
|
pluralRules: {}
|
|
3260
|
-
}, this.format = function(
|
|
3261
|
-
var a = s.formatToParts(
|
|
3223
|
+
}, this.format = function(f) {
|
|
3224
|
+
var a = s.formatToParts(f);
|
|
3262
3225
|
if (a.length === 1)
|
|
3263
3226
|
return a[0].value;
|
|
3264
|
-
var
|
|
3265
|
-
return !
|
|
3227
|
+
var h = a.reduce(function(l, c) {
|
|
3228
|
+
return !l.length || c.type !== x.literal || typeof l[l.length - 1] != "string" ? l.push(c.value) : l[l.length - 1] += c.value, l;
|
|
3266
3229
|
}, []);
|
|
3267
|
-
return
|
|
3268
|
-
}, this.formatToParts = function(
|
|
3269
|
-
return
|
|
3230
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3231
|
+
}, this.formatToParts = function(f) {
|
|
3232
|
+
return q(s.ast, s.locales, s.formatters, s.formats, f, void 0, s.message);
|
|
3270
3233
|
}, this.resolvedOptions = function() {
|
|
3271
|
-
var
|
|
3234
|
+
var f;
|
|
3272
3235
|
return {
|
|
3273
|
-
locale: ((
|
|
3236
|
+
locale: ((f = s.resolvedLocale) === null || f === void 0 ? void 0 : f.toString()) || Intl.NumberFormat.supportedLocalesOf(s.locales)[0]
|
|
3274
3237
|
};
|
|
3275
3238
|
}, this.getAst = function() {
|
|
3276
3239
|
return s.ast;
|
|
3277
3240
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3278
3241
|
if (this.message = t, !e.__parse)
|
|
3279
3242
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3280
|
-
var
|
|
3281
|
-
|
|
3282
|
-
var
|
|
3283
|
-
this.ast = e.__parse(t, d(d({},
|
|
3243
|
+
var u = i || {};
|
|
3244
|
+
u.formatters;
|
|
3245
|
+
var o = or(u, ["formatters"]);
|
|
3246
|
+
this.ast = e.__parse(t, d(d({}, o), { locale: this.resolvedLocale }));
|
|
3284
3247
|
} else
|
|
3285
3248
|
this.ast = t;
|
|
3286
3249
|
if (!Array.isArray(this.ast))
|
|
3287
3250
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3288
|
-
this.formats =
|
|
3251
|
+
this.formats = Qr(e.formats, n), this.formatters = i && i.formatters || Jr(this.formatterCache);
|
|
3289
3252
|
}
|
|
3290
3253
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3291
3254
|
get: function() {
|
|
@@ -3294,11 +3257,11 @@ var hn = (
|
|
|
3294
3257
|
enumerable: !1,
|
|
3295
3258
|
configurable: !0
|
|
3296
3259
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3297
|
-
if (typeof Intl.Locale
|
|
3260
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3298
3261
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3299
3262
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3300
3263
|
}
|
|
3301
|
-
}, e.__parse =
|
|
3264
|
+
}, e.__parse = Vr, e.formats = {
|
|
3302
3265
|
number: {
|
|
3303
3266
|
integer: {
|
|
3304
3267
|
maximumFractionDigits: 0
|
|
@@ -3359,7 +3322,7 @@ var hn = (
|
|
|
3359
3322
|
}, e;
|
|
3360
3323
|
}()
|
|
3361
3324
|
);
|
|
3362
|
-
function
|
|
3325
|
+
function Yr(e, t) {
|
|
3363
3326
|
if (t == null)
|
|
3364
3327
|
return;
|
|
3365
3328
|
if (t in e)
|
|
@@ -3380,92 +3343,92 @@ function ln(e, t) {
|
|
|
3380
3343
|
n = void 0;
|
|
3381
3344
|
return n;
|
|
3382
3345
|
}
|
|
3383
|
-
const
|
|
3346
|
+
const T = {}, Kr = (e, t, r) => r && (t in T || (T[t] = {}), e in T[t] || (T[t][e] = r), r), Et = (e, t) => {
|
|
3384
3347
|
if (t == null)
|
|
3385
3348
|
return;
|
|
3386
|
-
if (t in
|
|
3387
|
-
return
|
|
3388
|
-
const r =
|
|
3349
|
+
if (t in T && e in T[t])
|
|
3350
|
+
return T[t][e];
|
|
3351
|
+
const r = ie(t);
|
|
3389
3352
|
for (let n = 0; n < r.length; n++) {
|
|
3390
|
-
const i = r[n], s =
|
|
3353
|
+
const i = r[n], s = tn(i, e);
|
|
3391
3354
|
if (s)
|
|
3392
|
-
return
|
|
3355
|
+
return Kr(e, t, s);
|
|
3393
3356
|
}
|
|
3394
3357
|
};
|
|
3395
|
-
let
|
|
3396
|
-
const
|
|
3397
|
-
function
|
|
3398
|
-
return
|
|
3358
|
+
let Pe;
|
|
3359
|
+
const z = te({});
|
|
3360
|
+
function en(e) {
|
|
3361
|
+
return Pe[e] || null;
|
|
3399
3362
|
}
|
|
3400
|
-
function
|
|
3401
|
-
return e in
|
|
3363
|
+
function xt(e) {
|
|
3364
|
+
return e in Pe;
|
|
3402
3365
|
}
|
|
3403
|
-
function
|
|
3404
|
-
if (!
|
|
3366
|
+
function tn(e, t) {
|
|
3367
|
+
if (!xt(e))
|
|
3405
3368
|
return null;
|
|
3406
|
-
const r =
|
|
3407
|
-
return
|
|
3369
|
+
const r = en(e);
|
|
3370
|
+
return Yr(r, t);
|
|
3408
3371
|
}
|
|
3409
|
-
function
|
|
3372
|
+
function rn(e) {
|
|
3410
3373
|
if (e == null)
|
|
3411
3374
|
return;
|
|
3412
|
-
const t =
|
|
3375
|
+
const t = ie(e);
|
|
3413
3376
|
for (let r = 0; r < t.length; r++) {
|
|
3414
3377
|
const n = t[r];
|
|
3415
|
-
if (
|
|
3378
|
+
if (xt(n))
|
|
3416
3379
|
return n;
|
|
3417
3380
|
}
|
|
3418
3381
|
}
|
|
3419
|
-
function
|
|
3420
|
-
delete
|
|
3382
|
+
function yt(e, ...t) {
|
|
3383
|
+
delete T[e], z.update((r) => (r[e] = sr.all([r[e] || {}, ...t]), r));
|
|
3421
3384
|
}
|
|
3422
|
-
|
|
3423
|
-
[
|
|
3385
|
+
R(
|
|
3386
|
+
[z],
|
|
3424
3387
|
([e]) => Object.keys(e)
|
|
3425
3388
|
);
|
|
3426
|
-
|
|
3427
|
-
const
|
|
3428
|
-
function
|
|
3429
|
-
|
|
3389
|
+
z.subscribe((e) => Pe = e);
|
|
3390
|
+
const Y = {};
|
|
3391
|
+
function nn(e, t) {
|
|
3392
|
+
Y[e].delete(t), Y[e].size === 0 && delete Y[e];
|
|
3430
3393
|
}
|
|
3431
|
-
function
|
|
3432
|
-
return
|
|
3394
|
+
function _t(e) {
|
|
3395
|
+
return Y[e];
|
|
3433
3396
|
}
|
|
3434
|
-
function
|
|
3435
|
-
return
|
|
3436
|
-
const r =
|
|
3397
|
+
function sn(e) {
|
|
3398
|
+
return ie(e).map((t) => {
|
|
3399
|
+
const r = _t(t);
|
|
3437
3400
|
return [t, r ? [...r] : []];
|
|
3438
3401
|
}).filter(([, t]) => t.length > 0);
|
|
3439
3402
|
}
|
|
3440
|
-
function
|
|
3441
|
-
return e == null ? !1 :
|
|
3403
|
+
function ve(e) {
|
|
3404
|
+
return e == null ? !1 : ie(e).some(
|
|
3442
3405
|
(t) => {
|
|
3443
3406
|
var r;
|
|
3444
|
-
return (r =
|
|
3407
|
+
return (r = _t(t)) == null ? void 0 : r.size;
|
|
3445
3408
|
}
|
|
3446
3409
|
);
|
|
3447
3410
|
}
|
|
3448
|
-
function
|
|
3411
|
+
function on(e, t) {
|
|
3449
3412
|
return Promise.all(
|
|
3450
|
-
t.map((n) => (
|
|
3451
|
-
).then((n) =>
|
|
3452
|
-
}
|
|
3453
|
-
const
|
|
3454
|
-
function
|
|
3455
|
-
if (!
|
|
3456
|
-
return e in
|
|
3457
|
-
const t =
|
|
3458
|
-
return
|
|
3413
|
+
t.map((n) => (nn(e, n), n().then((i) => i.default || i)))
|
|
3414
|
+
).then((n) => yt(e, ...n));
|
|
3415
|
+
}
|
|
3416
|
+
const j = {};
|
|
3417
|
+
function vt(e) {
|
|
3418
|
+
if (!ve(e))
|
|
3419
|
+
return e in j ? j[e] : Promise.resolve();
|
|
3420
|
+
const t = sn(e);
|
|
3421
|
+
return j[e] = Promise.all(
|
|
3459
3422
|
t.map(
|
|
3460
|
-
([r, n]) =>
|
|
3423
|
+
([r, n]) => on(r, n)
|
|
3461
3424
|
)
|
|
3462
3425
|
).then(() => {
|
|
3463
|
-
if (
|
|
3464
|
-
return
|
|
3465
|
-
delete
|
|
3466
|
-
}),
|
|
3426
|
+
if (ve(e))
|
|
3427
|
+
return vt(e);
|
|
3428
|
+
delete j[e];
|
|
3429
|
+
}), j[e];
|
|
3467
3430
|
}
|
|
3468
|
-
const
|
|
3431
|
+
const an = {
|
|
3469
3432
|
number: {
|
|
3470
3433
|
scientific: { notation: "scientific" },
|
|
3471
3434
|
engineering: { notation: "engineering" },
|
|
@@ -3494,178 +3457,178 @@ const En = {
|
|
|
3494
3457
|
timeZoneName: "short"
|
|
3495
3458
|
}
|
|
3496
3459
|
}
|
|
3497
|
-
},
|
|
3460
|
+
}, un = {
|
|
3498
3461
|
fallbackLocale: null,
|
|
3499
3462
|
loadingDelay: 200,
|
|
3500
|
-
formats:
|
|
3463
|
+
formats: an,
|
|
3501
3464
|
warnOnMissingMessages: !0,
|
|
3502
3465
|
handleMissingMessage: void 0,
|
|
3503
3466
|
ignoreTag: !0
|
|
3504
|
-
},
|
|
3505
|
-
function
|
|
3506
|
-
return
|
|
3467
|
+
}, hn = un;
|
|
3468
|
+
function C() {
|
|
3469
|
+
return hn;
|
|
3507
3470
|
}
|
|
3508
|
-
const
|
|
3509
|
-
var
|
|
3471
|
+
const ce = te(!1);
|
|
3472
|
+
var ln = Object.defineProperty, fn = Object.defineProperties, cn = Object.getOwnPropertyDescriptors, Ve = Object.getOwnPropertySymbols, mn = Object.prototype.hasOwnProperty, pn = Object.prototype.propertyIsEnumerable, ke = (e, t, r) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, dn = (e, t) => {
|
|
3510
3473
|
for (var r in t)
|
|
3511
|
-
|
|
3512
|
-
if (
|
|
3513
|
-
for (var r of
|
|
3514
|
-
|
|
3474
|
+
mn.call(t, r) && ke(e, r, t[r]);
|
|
3475
|
+
if (Ve)
|
|
3476
|
+
for (var r of Ve(t))
|
|
3477
|
+
pn.call(t, r) && ke(e, r, t[r]);
|
|
3515
3478
|
return e;
|
|
3516
|
-
},
|
|
3517
|
-
let
|
|
3518
|
-
const
|
|
3519
|
-
function
|
|
3479
|
+
}, bn = (e, t) => fn(e, cn(t));
|
|
3480
|
+
let He;
|
|
3481
|
+
const K = te(null);
|
|
3482
|
+
function Xe(e) {
|
|
3520
3483
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3521
3484
|
}
|
|
3522
|
-
function
|
|
3523
|
-
const r =
|
|
3524
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3485
|
+
function ie(e, t = C().fallbackLocale) {
|
|
3486
|
+
const r = Xe(e);
|
|
3487
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Xe(t)])] : r;
|
|
3525
3488
|
}
|
|
3526
|
-
function
|
|
3527
|
-
return
|
|
3489
|
+
function B() {
|
|
3490
|
+
return He ?? void 0;
|
|
3528
3491
|
}
|
|
3529
|
-
|
|
3530
|
-
|
|
3492
|
+
K.subscribe((e) => {
|
|
3493
|
+
He = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3531
3494
|
});
|
|
3532
|
-
const
|
|
3533
|
-
if (e &&
|
|
3534
|
-
const { loadingDelay: t } =
|
|
3495
|
+
const gn = (e) => {
|
|
3496
|
+
if (e && rn(e) && ve(e)) {
|
|
3497
|
+
const { loadingDelay: t } = C();
|
|
3535
3498
|
let r;
|
|
3536
|
-
return typeof window
|
|
3537
|
-
() =>
|
|
3499
|
+
return typeof window < "u" && B() != null && t ? r = window.setTimeout(
|
|
3500
|
+
() => ce.set(!0),
|
|
3538
3501
|
t
|
|
3539
|
-
) :
|
|
3540
|
-
|
|
3502
|
+
) : ce.set(!0), vt(e).then(() => {
|
|
3503
|
+
K.set(e);
|
|
3541
3504
|
}).finally(() => {
|
|
3542
|
-
clearTimeout(r),
|
|
3505
|
+
clearTimeout(r), ce.set(!1);
|
|
3543
3506
|
});
|
|
3544
3507
|
}
|
|
3545
|
-
return
|
|
3546
|
-
},
|
|
3547
|
-
set:
|
|
3548
|
-
}),
|
|
3508
|
+
return K.set(e);
|
|
3509
|
+
}, U = bn(dn({}, K), {
|
|
3510
|
+
set: gn
|
|
3511
|
+
}), se = (e) => {
|
|
3549
3512
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3550
3513
|
return (n) => {
|
|
3551
3514
|
const i = JSON.stringify(n);
|
|
3552
3515
|
return i in t ? t[i] : t[i] = e(n);
|
|
3553
3516
|
};
|
|
3554
3517
|
};
|
|
3555
|
-
var
|
|
3518
|
+
var En = Object.defineProperty, ee = Object.getOwnPropertySymbols, Ht = Object.prototype.hasOwnProperty, Tt = Object.prototype.propertyIsEnumerable, We = (e, t, r) => t in e ? En(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ne = (e, t) => {
|
|
3556
3519
|
for (var r in t || (t = {}))
|
|
3557
|
-
|
|
3558
|
-
if (
|
|
3559
|
-
for (var r of
|
|
3560
|
-
|
|
3520
|
+
Ht.call(t, r) && We(e, r, t[r]);
|
|
3521
|
+
if (ee)
|
|
3522
|
+
for (var r of ee(t))
|
|
3523
|
+
Tt.call(t, r) && We(e, r, t[r]);
|
|
3561
3524
|
return e;
|
|
3562
|
-
},
|
|
3525
|
+
}, G = (e, t) => {
|
|
3563
3526
|
var r = {};
|
|
3564
3527
|
for (var n in e)
|
|
3565
|
-
|
|
3566
|
-
if (e != null &&
|
|
3567
|
-
for (var n of
|
|
3568
|
-
t.indexOf(n) < 0 &&
|
|
3528
|
+
Ht.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3529
|
+
if (e != null && ee)
|
|
3530
|
+
for (var n of ee(e))
|
|
3531
|
+
t.indexOf(n) < 0 && Tt.call(e, n) && (r[n] = e[n]);
|
|
3569
3532
|
return r;
|
|
3570
3533
|
};
|
|
3571
|
-
const
|
|
3572
|
-
const { formats: r } =
|
|
3534
|
+
const X = (e, t) => {
|
|
3535
|
+
const { formats: r } = C();
|
|
3573
3536
|
if (e in r && t in r[e])
|
|
3574
3537
|
return r[e][t];
|
|
3575
3538
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3576
|
-
},
|
|
3539
|
+
}, xn = se(
|
|
3577
3540
|
(e) => {
|
|
3578
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3541
|
+
var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
|
|
3579
3542
|
if (r == null)
|
|
3580
3543
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3581
|
-
return n && (i =
|
|
3544
|
+
return n && (i = X("number", n)), new Intl.NumberFormat(r, i);
|
|
3582
3545
|
}
|
|
3583
|
-
),
|
|
3546
|
+
), yn = se(
|
|
3584
3547
|
(e) => {
|
|
3585
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3548
|
+
var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
|
|
3586
3549
|
if (r == null)
|
|
3587
3550
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3588
|
-
return n ? i =
|
|
3551
|
+
return n ? i = X("date", n) : Object.keys(i).length === 0 && (i = X("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3589
3552
|
}
|
|
3590
|
-
),
|
|
3553
|
+
), _n = se(
|
|
3591
3554
|
(e) => {
|
|
3592
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3555
|
+
var t = e, { locale: r, format: n } = t, i = G(t, ["locale", "format"]);
|
|
3593
3556
|
if (r == null)
|
|
3594
3557
|
throw new Error(
|
|
3595
3558
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3596
3559
|
);
|
|
3597
|
-
return n ? i =
|
|
3560
|
+
return n ? i = X("time", n) : Object.keys(i).length === 0 && (i = X("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3598
3561
|
}
|
|
3599
|
-
),
|
|
3562
|
+
), vn = (e = {}) => {
|
|
3600
3563
|
var t = e, {
|
|
3601
|
-
locale: r =
|
|
3602
|
-
} = t, n =
|
|
3564
|
+
locale: r = B()
|
|
3565
|
+
} = t, n = G(t, [
|
|
3603
3566
|
"locale"
|
|
3604
3567
|
]);
|
|
3605
|
-
return
|
|
3606
|
-
},
|
|
3568
|
+
return xn(Ne({ locale: r }, n));
|
|
3569
|
+
}, Hn = (e = {}) => {
|
|
3607
3570
|
var t = e, {
|
|
3608
|
-
locale: r =
|
|
3609
|
-
} = t, n =
|
|
3571
|
+
locale: r = B()
|
|
3572
|
+
} = t, n = G(t, [
|
|
3610
3573
|
"locale"
|
|
3611
3574
|
]);
|
|
3612
|
-
return
|
|
3613
|
-
},
|
|
3575
|
+
return yn(Ne({ locale: r }, n));
|
|
3576
|
+
}, Tn = (e = {}) => {
|
|
3614
3577
|
var t = e, {
|
|
3615
|
-
locale: r =
|
|
3616
|
-
} = t, n =
|
|
3578
|
+
locale: r = B()
|
|
3579
|
+
} = t, n = G(t, [
|
|
3617
3580
|
"locale"
|
|
3618
3581
|
]);
|
|
3619
|
-
return
|
|
3620
|
-
},
|
|
3582
|
+
return _n(Ne({ locale: r }, n));
|
|
3583
|
+
}, Sn = se(
|
|
3621
3584
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3622
|
-
(e, t =
|
|
3623
|
-
ignoreTag:
|
|
3585
|
+
(e, t = B()) => new qr(e, t, C().formats, {
|
|
3586
|
+
ignoreTag: C().ignoreTag
|
|
3624
3587
|
})
|
|
3625
|
-
),
|
|
3588
|
+
), Bn = (e, t = {}) => {
|
|
3626
3589
|
var r, n, i, s;
|
|
3627
|
-
let
|
|
3628
|
-
typeof e == "object" && (
|
|
3590
|
+
let u = t;
|
|
3591
|
+
typeof e == "object" && (u = e, e = u.id);
|
|
3629
3592
|
const {
|
|
3630
|
-
values:
|
|
3631
|
-
locale:
|
|
3593
|
+
values: o,
|
|
3594
|
+
locale: f = B(),
|
|
3632
3595
|
default: a
|
|
3633
|
-
} =
|
|
3634
|
-
if (
|
|
3596
|
+
} = u;
|
|
3597
|
+
if (f == null)
|
|
3635
3598
|
throw new Error(
|
|
3636
3599
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3637
3600
|
);
|
|
3638
|
-
let
|
|
3639
|
-
if (!
|
|
3640
|
-
|
|
3641
|
-
else if (typeof
|
|
3601
|
+
let h = Et(e, f);
|
|
3602
|
+
if (!h)
|
|
3603
|
+
h = (s = (i = (n = (r = C()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: f, id: e, defaultValue: a })) != null ? i : a) != null ? s : e;
|
|
3604
|
+
else if (typeof h != "string")
|
|
3642
3605
|
return console.warn(
|
|
3643
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3644
|
-
),
|
|
3645
|
-
if (!
|
|
3646
|
-
return
|
|
3647
|
-
let
|
|
3606
|
+
`[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.`
|
|
3607
|
+
), h;
|
|
3608
|
+
if (!o)
|
|
3609
|
+
return h;
|
|
3610
|
+
let l = h;
|
|
3648
3611
|
try {
|
|
3649
|
-
|
|
3612
|
+
l = Sn(h, f).format(o);
|
|
3650
3613
|
} catch (c) {
|
|
3651
3614
|
c instanceof Error && console.warn(
|
|
3652
3615
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3653
3616
|
c.message
|
|
3654
3617
|
);
|
|
3655
3618
|
}
|
|
3656
|
-
return
|
|
3657
|
-
},
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
function
|
|
3663
|
-
|
|
3664
|
-
}
|
|
3665
|
-
function
|
|
3666
|
-
|
|
3667
|
-
}
|
|
3668
|
-
const
|
|
3619
|
+
return l;
|
|
3620
|
+
}, An = (e, t) => Tn(t).format(e), Pn = (e, t) => Hn(t).format(e), Nn = (e, t) => vn(t).format(e), On = (e, t = B()) => Et(e, t), In = R([U, z], () => Bn);
|
|
3621
|
+
R([U], () => An);
|
|
3622
|
+
R([U], () => Pn);
|
|
3623
|
+
R([U], () => Nn);
|
|
3624
|
+
R([U, z], () => On);
|
|
3625
|
+
function ze(e, t) {
|
|
3626
|
+
yt(e, t);
|
|
3627
|
+
}
|
|
3628
|
+
function wn(e) {
|
|
3629
|
+
U.set(e);
|
|
3630
|
+
}
|
|
3631
|
+
const Ze = {
|
|
3669
3632
|
en: {
|
|
3670
3633
|
errServerUnavailable: "Server unavailable",
|
|
3671
3634
|
errEmailVerification: "Sorry! Your e-mail could not be verified. Please try again",
|
|
@@ -3679,51 +3642,51 @@ const et = {
|
|
|
3679
3642
|
msgEmailVerificationSuccess: "Succes! E-mailul tău a fost verificat cu succes"
|
|
3680
3643
|
}
|
|
3681
3644
|
};
|
|
3682
|
-
function
|
|
3645
|
+
function $n(e) {
|
|
3683
3646
|
let t;
|
|
3684
3647
|
return {
|
|
3685
3648
|
c() {
|
|
3686
|
-
t =
|
|
3649
|
+
t = Ke("div");
|
|
3687
3650
|
},
|
|
3688
3651
|
m(r, n) {
|
|
3689
|
-
|
|
3652
|
+
Ye(r, t, n);
|
|
3690
3653
|
},
|
|
3691
|
-
p:
|
|
3692
|
-
i:
|
|
3693
|
-
o:
|
|
3654
|
+
p: _,
|
|
3655
|
+
i: _,
|
|
3656
|
+
o: _,
|
|
3694
3657
|
d(r) {
|
|
3695
|
-
r &&
|
|
3658
|
+
r && Se(t);
|
|
3696
3659
|
}
|
|
3697
3660
|
};
|
|
3698
3661
|
}
|
|
3699
|
-
function
|
|
3662
|
+
function Ln(e, t, r) {
|
|
3700
3663
|
let n;
|
|
3701
|
-
|
|
3702
|
-
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key:
|
|
3703
|
-
const
|
|
3704
|
-
fetch(
|
|
3664
|
+
Bt(e, In, (l) => r(4, n = l));
|
|
3665
|
+
let { lang: i = "en" } = t, { endpoint: s = "" } = t, { key: u = "" } = t, { translationurl: o = "" } = t;
|
|
3666
|
+
const f = () => {
|
|
3667
|
+
fetch(o).then((c) => c.json()).then((c) => {
|
|
3705
3668
|
Object.keys(c).forEach((b) => {
|
|
3706
|
-
|
|
3669
|
+
ze(b, c[b]);
|
|
3707
3670
|
});
|
|
3708
3671
|
}).catch((c) => {
|
|
3709
3672
|
console.log(c);
|
|
3710
3673
|
});
|
|
3711
3674
|
};
|
|
3712
|
-
Object.keys(
|
|
3713
|
-
|
|
3675
|
+
Object.keys(Ze).forEach((l) => {
|
|
3676
|
+
ze(l, Ze[l]);
|
|
3714
3677
|
});
|
|
3715
3678
|
const a = () => {
|
|
3716
|
-
|
|
3717
|
-
},
|
|
3718
|
-
let
|
|
3679
|
+
wn(i);
|
|
3680
|
+
}, h = () => {
|
|
3681
|
+
let l = new URL(`${s}/v1/player/activatePlayerByHashKey`), b = {
|
|
3719
3682
|
method: "POST",
|
|
3720
3683
|
headers: {
|
|
3721
3684
|
"Content-Type": "application/json",
|
|
3722
3685
|
Accept: "application/json"
|
|
3723
3686
|
},
|
|
3724
|
-
body: JSON.stringify({ hashKey:
|
|
3687
|
+
body: JSON.stringify({ hashKey: u })
|
|
3725
3688
|
};
|
|
3726
|
-
fetch(
|
|
3689
|
+
fetch(l.href, b).then((g) => (g.status > 500 && (window.postMessage({ type: "ActivatePlayerResponseFailed" }, window.location.href), window.postMessage(
|
|
3727
3690
|
{
|
|
3728
3691
|
type: "WidgetNotification",
|
|
3729
3692
|
data: {
|
|
@@ -3763,18 +3726,18 @@ function Xn(e, t, r) {
|
|
|
3763
3726
|
);
|
|
3764
3727
|
});
|
|
3765
3728
|
};
|
|
3766
|
-
return e.$$set = (
|
|
3767
|
-
"lang" in
|
|
3729
|
+
return e.$$set = (l) => {
|
|
3730
|
+
"lang" in l && r(0, i = l.lang), "endpoint" in l && r(1, s = l.endpoint), "key" in l && r(2, u = l.key), "translationurl" in l && r(3, o = l.translationurl);
|
|
3768
3731
|
}, e.$$.update = () => {
|
|
3769
3732
|
e.$$.dirty & /*lang*/
|
|
3770
3733
|
1 && i && a(), e.$$.dirty & /*translationurl*/
|
|
3771
|
-
8 &&
|
|
3772
|
-
6 && s &&
|
|
3773
|
-
}, [i, s,
|
|
3734
|
+
8 && o && f(), e.$$.dirty & /*endpoint, key*/
|
|
3735
|
+
6 && s && u && h();
|
|
3736
|
+
}, [i, s, u, o];
|
|
3774
3737
|
}
|
|
3775
|
-
class
|
|
3738
|
+
class Mn extends Ft {
|
|
3776
3739
|
constructor(t) {
|
|
3777
|
-
super(),
|
|
3740
|
+
super(), Gt(this, t, Ln, $n, Je, {
|
|
3778
3741
|
lang: 0,
|
|
3779
3742
|
endpoint: 1,
|
|
3780
3743
|
key: 2,
|
|
@@ -3785,28 +3748,28 @@ class Wn extends Yt {
|
|
|
3785
3748
|
return this.$$.ctx[0];
|
|
3786
3749
|
}
|
|
3787
3750
|
set lang(t) {
|
|
3788
|
-
this.$$set({ lang: t }),
|
|
3751
|
+
this.$$set({ lang: t }), I();
|
|
3789
3752
|
}
|
|
3790
3753
|
get endpoint() {
|
|
3791
3754
|
return this.$$.ctx[1];
|
|
3792
3755
|
}
|
|
3793
3756
|
set endpoint(t) {
|
|
3794
|
-
this.$$set({ endpoint: t }),
|
|
3757
|
+
this.$$set({ endpoint: t }), I();
|
|
3795
3758
|
}
|
|
3796
3759
|
get key() {
|
|
3797
3760
|
return this.$$.ctx[2];
|
|
3798
3761
|
}
|
|
3799
3762
|
set key(t) {
|
|
3800
|
-
this.$$set({ key: t }),
|
|
3763
|
+
this.$$set({ key: t }), I();
|
|
3801
3764
|
}
|
|
3802
3765
|
get translationurl() {
|
|
3803
3766
|
return this.$$.ctx[3];
|
|
3804
3767
|
}
|
|
3805
3768
|
set translationurl(t) {
|
|
3806
|
-
this.$$set({ translationurl: t }),
|
|
3769
|
+
this.$$set({ translationurl: t }), I();
|
|
3807
3770
|
}
|
|
3808
3771
|
}
|
|
3809
|
-
|
|
3772
|
+
Dt(Mn, { lang: {}, endpoint: {}, key: {}, translationurl: {} }, [], [], !0);
|
|
3810
3773
|
export {
|
|
3811
|
-
|
|
3774
|
+
Mn as P
|
|
3812
3775
|
};
|