@everymatrix/cashier-error 1.87.26 → 1.87.28
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/{CashierError-8t9yqAM1.js → CashierError-Ak6bkMp4.js} +902 -868
- package/components/{CashierError-DjgN9EAb.js → CashierError-Zgfqyr0T.js} +952 -917
- package/components/CashierError-c_jrgBMH.cjs +5 -0
- package/es2015/cashier-error.cjs +1 -1
- package/es2015/cashier-error.js +1 -1
- package/esnext/cashier-error.js +1 -1
- package/package.json +1 -1
- package/components/CashierError-D1H2wo86.cjs +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../stencil/ui-image-Ch-GHki1.js";
|
|
2
|
-
function
|
|
2
|
+
function P() {
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function Yt(e, t) {
|
|
5
5
|
for (const r in t)
|
|
6
6
|
e[r] = t[r];
|
|
7
7
|
return (
|
|
@@ -9,71 +9,71 @@ function Zt(e, t) {
|
|
|
9
9
|
e
|
|
10
10
|
);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function _t(e) {
|
|
13
13
|
return e();
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Ze() {
|
|
16
16
|
return /* @__PURE__ */ Object.create(null);
|
|
17
17
|
}
|
|
18
|
-
function
|
|
19
|
-
e.forEach(
|
|
18
|
+
function re(e) {
|
|
19
|
+
e.forEach(_t);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function We(e) {
|
|
22
22
|
return typeof e == "function";
|
|
23
23
|
}
|
|
24
24
|
function Et(e, t) {
|
|
25
25
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
26
26
|
}
|
|
27
|
-
let
|
|
28
|
-
function
|
|
29
|
-
return e === t ? !0 : (
|
|
27
|
+
let se;
|
|
28
|
+
function Ye(e, t) {
|
|
29
|
+
return e === t ? !0 : (se || (se = document.createElement("a")), se.href = t, e === se.href);
|
|
30
30
|
}
|
|
31
31
|
function Qt(e) {
|
|
32
32
|
return Object.keys(e).length === 0;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function xt(e, ...t) {
|
|
35
35
|
if (e == null) {
|
|
36
36
|
for (const n of t)
|
|
37
37
|
n(void 0);
|
|
38
|
-
return
|
|
38
|
+
return P;
|
|
39
39
|
}
|
|
40
40
|
const r = e.subscribe(...t);
|
|
41
41
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
e.$$.on_destroy.push(
|
|
43
|
+
function Kt(e, t, r) {
|
|
44
|
+
e.$$.on_destroy.push(xt(t, r));
|
|
45
45
|
}
|
|
46
46
|
function ae(e, t, r, n) {
|
|
47
47
|
if (e) {
|
|
48
|
-
const i =
|
|
48
|
+
const i = Tt(e, t, r, n);
|
|
49
49
|
return e[0](i);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return e[1] && n ?
|
|
52
|
+
function Tt(e, t, r, n) {
|
|
53
|
+
return e[1] && n ? Yt(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function ue(e, t, r, n) {
|
|
56
56
|
if (e[2] && n) {
|
|
57
57
|
const i = e[2](n(r));
|
|
58
58
|
if (t.dirty === void 0)
|
|
59
59
|
return i;
|
|
60
60
|
if (typeof i == "object") {
|
|
61
|
-
const o = [],
|
|
62
|
-
for (let
|
|
63
|
-
o[
|
|
61
|
+
const o = [], s = Math.max(t.dirty.length, i.length);
|
|
62
|
+
for (let a = 0; a < s; a += 1)
|
|
63
|
+
o[a] = t.dirty[a] | i[a];
|
|
64
64
|
return o;
|
|
65
65
|
}
|
|
66
66
|
return t.dirty | i;
|
|
67
67
|
}
|
|
68
68
|
return t.dirty;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function le(e, t, r, n, i, o) {
|
|
71
71
|
if (i) {
|
|
72
|
-
const
|
|
73
|
-
e.p(
|
|
72
|
+
const s = Tt(t, r, n, o);
|
|
73
|
+
e.p(s, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function he(e) {
|
|
77
77
|
if (e.ctx.length > 32) {
|
|
78
78
|
const t = [], r = e.ctx.length / 32;
|
|
79
79
|
for (let n = 0; n < r; n++)
|
|
@@ -82,17 +82,17 @@ function le(e) {
|
|
|
82
82
|
}
|
|
83
83
|
return -1;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function O(e, t) {
|
|
86
86
|
e.appendChild(t);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
const n =
|
|
88
|
+
function er(e, t, r) {
|
|
89
|
+
const n = tr(e);
|
|
90
90
|
if (!n.getElementById(t)) {
|
|
91
|
-
const i =
|
|
92
|
-
i.id = t, i.textContent = r,
|
|
91
|
+
const i = L("style");
|
|
92
|
+
i.id = t, i.textContent = r, rr(n, i);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function tr(e) {
|
|
96
96
|
if (!e)
|
|
97
97
|
return document;
|
|
98
98
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -102,49 +102,49 @@ function er(e) {
|
|
|
102
102
|
t
|
|
103
103
|
) : e.ownerDocument;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
105
|
+
function rr(e, t) {
|
|
106
|
+
return O(
|
|
107
107
|
/** @type {Document} */
|
|
108
108
|
e.head || e,
|
|
109
109
|
t
|
|
110
110
|
), t.sheet;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function W(e, t, r) {
|
|
113
113
|
e.insertBefore(t, r || null);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function N(e) {
|
|
116
116
|
e.parentNode && e.parentNode.removeChild(e);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function L(e) {
|
|
119
119
|
return document.createElement(e);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function xe(e) {
|
|
122
122
|
return document.createTextNode(e);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
return
|
|
124
|
+
function Ae() {
|
|
125
|
+
return xe(" ");
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
return
|
|
127
|
+
function nr() {
|
|
128
|
+
return xe("");
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function ir(e, t, r, n) {
|
|
131
131
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function G(e, t, r) {
|
|
134
134
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function ce(e, t, r) {
|
|
137
137
|
const n = t.toLowerCase();
|
|
138
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
138
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : G(e, t, r);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function or(e) {
|
|
141
141
|
return Array.from(e.childNodes);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function Ht(e, t) {
|
|
144
144
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
145
145
|
t);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function sr(e) {
|
|
148
148
|
const t = {};
|
|
149
149
|
return e.childNodes.forEach(
|
|
150
150
|
/** @param {Element} node */
|
|
@@ -153,105 +153,105 @@ function or(e) {
|
|
|
153
153
|
}
|
|
154
154
|
), t;
|
|
155
155
|
}
|
|
156
|
-
let
|
|
156
|
+
let K;
|
|
157
157
|
function Q(e) {
|
|
158
|
-
|
|
158
|
+
K = e;
|
|
159
159
|
}
|
|
160
160
|
function ar() {
|
|
161
|
-
if (!
|
|
161
|
+
if (!K)
|
|
162
162
|
throw new Error("Function called outside component initialization");
|
|
163
|
-
return
|
|
163
|
+
return K;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function ur(e) {
|
|
166
166
|
ar().$$.on_mount.push(e);
|
|
167
167
|
}
|
|
168
168
|
const D = [], Me = [];
|
|
169
|
-
let
|
|
170
|
-
const Qe = [],
|
|
171
|
-
let
|
|
172
|
-
function
|
|
173
|
-
|
|
169
|
+
let k = [];
|
|
170
|
+
const Qe = [], lr = /* @__PURE__ */ Promise.resolve();
|
|
171
|
+
let Re = !1;
|
|
172
|
+
function hr() {
|
|
173
|
+
Re || (Re = !0, lr.then(B));
|
|
174
174
|
}
|
|
175
|
-
function
|
|
176
|
-
|
|
175
|
+
function $e(e) {
|
|
176
|
+
k.push(e);
|
|
177
177
|
}
|
|
178
178
|
const Be = /* @__PURE__ */ new Set();
|
|
179
179
|
let R = 0;
|
|
180
|
-
function
|
|
180
|
+
function B() {
|
|
181
181
|
if (R !== 0)
|
|
182
182
|
return;
|
|
183
|
-
const e =
|
|
183
|
+
const e = K;
|
|
184
184
|
do {
|
|
185
185
|
try {
|
|
186
186
|
for (; R < D.length; ) {
|
|
187
187
|
const t = D[R];
|
|
188
|
-
R++, Q(t),
|
|
188
|
+
R++, Q(t), cr(t.$$);
|
|
189
189
|
}
|
|
190
190
|
} catch (t) {
|
|
191
191
|
throw D.length = 0, R = 0, t;
|
|
192
192
|
}
|
|
193
193
|
for (Q(null), D.length = 0, R = 0; Me.length; )
|
|
194
194
|
Me.pop()();
|
|
195
|
-
for (let t = 0; t <
|
|
196
|
-
const r =
|
|
195
|
+
for (let t = 0; t < k.length; t += 1) {
|
|
196
|
+
const r = k[t];
|
|
197
197
|
Be.has(r) || (Be.add(r), r());
|
|
198
198
|
}
|
|
199
|
-
|
|
199
|
+
k.length = 0;
|
|
200
200
|
} while (D.length);
|
|
201
201
|
for (; Qe.length; )
|
|
202
202
|
Qe.pop()();
|
|
203
|
-
|
|
203
|
+
Re = !1, Be.clear(), Q(e);
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function cr(e) {
|
|
206
206
|
if (e.fragment !== null) {
|
|
207
|
-
e.update(),
|
|
207
|
+
e.update(), re(e.before_update);
|
|
208
208
|
const t = e.dirty;
|
|
209
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
209
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function fr(e) {
|
|
213
213
|
const t = [], r = [];
|
|
214
|
-
|
|
214
|
+
k.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), k = t;
|
|
215
215
|
}
|
|
216
|
-
const
|
|
217
|
-
let
|
|
218
|
-
function
|
|
219
|
-
e && e.i && (
|
|
216
|
+
const de = /* @__PURE__ */ new Set();
|
|
217
|
+
let mr;
|
|
218
|
+
function Z(e, t) {
|
|
219
|
+
e && e.i && (de.delete(e), e.i(t));
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function fe(e, t, r, n) {
|
|
222
222
|
if (e && e.o) {
|
|
223
|
-
if (
|
|
223
|
+
if (de.has(e))
|
|
224
224
|
return;
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
de.add(e), mr.c.push(() => {
|
|
226
|
+
de.delete(e);
|
|
227
227
|
}), e.o(t);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function dr(e, t, r) {
|
|
231
231
|
const { fragment: n, after_update: i } = e.$$;
|
|
232
|
-
n && n.m(t, r),
|
|
233
|
-
const o = e.$$.on_mount.map(
|
|
234
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
235
|
-
}), i.forEach(
|
|
232
|
+
n && n.m(t, r), $e(() => {
|
|
233
|
+
const o = e.$$.on_mount.map(_t).filter(We);
|
|
234
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : re(o), e.$$.on_mount = [];
|
|
235
|
+
}), i.forEach($e);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function pr(e, t) {
|
|
238
238
|
const r = e.$$;
|
|
239
|
-
r.fragment !== null && (
|
|
239
|
+
r.fragment !== null && (fr(r.after_update), re(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
e.$$.dirty[0] === -1 && (D.push(e),
|
|
241
|
+
function br(e, t) {
|
|
242
|
+
e.$$.dirty[0] === -1 && (D.push(e), hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
const h =
|
|
244
|
+
function gr(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
245
|
+
const h = K;
|
|
246
246
|
Q(e);
|
|
247
247
|
const u = e.$$ = {
|
|
248
248
|
fragment: null,
|
|
249
249
|
ctx: [],
|
|
250
250
|
// state
|
|
251
251
|
props: o,
|
|
252
|
-
update:
|
|
252
|
+
update: P,
|
|
253
253
|
not_equal: i,
|
|
254
|
-
bound:
|
|
254
|
+
bound: Ze(),
|
|
255
255
|
// lifecycle
|
|
256
256
|
on_mount: [],
|
|
257
257
|
on_destroy: [],
|
|
@@ -260,28 +260,28 @@ function br(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
260
260
|
after_update: [],
|
|
261
261
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
262
262
|
// everything else
|
|
263
|
-
callbacks:
|
|
264
|
-
dirty:
|
|
263
|
+
callbacks: Ze(),
|
|
264
|
+
dirty: a,
|
|
265
265
|
skip_bound: !1,
|
|
266
266
|
root: t.target || h.$$.root
|
|
267
267
|
};
|
|
268
|
-
|
|
268
|
+
s && s(u.root);
|
|
269
269
|
let l = !1;
|
|
270
|
-
if (u.ctx = r ? r(e, t.props || {}, (
|
|
271
|
-
const
|
|
272
|
-
return u.ctx && i(u.ctx[
|
|
273
|
-
}) : [], u.update(), l = !0,
|
|
270
|
+
if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
|
|
271
|
+
const b = p.length ? p[0] : f;
|
|
272
|
+
return u.ctx && i(u.ctx[c], u.ctx[c] = b) && (!u.skip_bound && u.bound[c] && u.bound[c](b), l && br(e, c)), f;
|
|
273
|
+
}) : [], u.update(), l = !0, re(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
274
274
|
if (t.hydrate) {
|
|
275
|
-
const
|
|
276
|
-
u.fragment && u.fragment.l(
|
|
275
|
+
const c = or(t.target);
|
|
276
|
+
u.fragment && u.fragment.l(c), c.forEach(N);
|
|
277
277
|
} else
|
|
278
278
|
u.fragment && u.fragment.c();
|
|
279
|
-
t.intro &&
|
|
279
|
+
t.intro && Z(e.$$.fragment), dr(e, t.target, t.anchor), B();
|
|
280
280
|
}
|
|
281
281
|
Q(h);
|
|
282
282
|
}
|
|
283
|
-
let
|
|
284
|
-
typeof HTMLElement == "function" && (
|
|
283
|
+
let St;
|
|
284
|
+
typeof HTMLElement == "function" && (St = class extends HTMLElement {
|
|
285
285
|
/** The Svelte component constructor */
|
|
286
286
|
$$ctor;
|
|
287
287
|
/** Slots */
|
|
@@ -323,29 +323,29 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
323
323
|
let o;
|
|
324
324
|
return {
|
|
325
325
|
c: function() {
|
|
326
|
-
o =
|
|
326
|
+
o = L("slot"), i !== "default" && G(o, "name", i);
|
|
327
327
|
},
|
|
328
328
|
/**
|
|
329
329
|
* @param {HTMLElement} target
|
|
330
330
|
* @param {HTMLElement} [anchor]
|
|
331
331
|
*/
|
|
332
332
|
m: function(h, u) {
|
|
333
|
-
|
|
333
|
+
W(h, o, u);
|
|
334
334
|
},
|
|
335
335
|
d: function(h) {
|
|
336
|
-
h &&
|
|
336
|
+
h && N(o);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
};
|
|
340
340
|
};
|
|
341
341
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
342
342
|
return;
|
|
343
|
-
const t = {}, r =
|
|
343
|
+
const t = {}, r = sr(this);
|
|
344
344
|
for (const i of this.$$s)
|
|
345
345
|
i in r && (t[i] = [e(i)]);
|
|
346
346
|
for (const i of this.attributes) {
|
|
347
347
|
const o = this.$$g_p(i.name);
|
|
348
|
-
o in this.$$d || (this.$$d[o] =
|
|
348
|
+
o in this.$$d || (this.$$d[o] = pe(o, i.value, this.$$p_d, "toProp"));
|
|
349
349
|
}
|
|
350
350
|
for (const i in this.$$p_d)
|
|
351
351
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -363,7 +363,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
363
363
|
this.$$r = !0;
|
|
364
364
|
for (const i in this.$$p_d)
|
|
365
365
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
366
|
-
const o =
|
|
366
|
+
const o = pe(
|
|
367
367
|
i,
|
|
368
368
|
this.$$d[i],
|
|
369
369
|
this.$$p_d,
|
|
@@ -376,8 +376,8 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
376
376
|
this.$$c.$$.after_update.push(n), n();
|
|
377
377
|
for (const i in this.$$l)
|
|
378
378
|
for (const o of this.$$l[i]) {
|
|
379
|
-
const
|
|
380
|
-
this.$$l_u.set(o,
|
|
379
|
+
const s = this.$$c.$on(i, o);
|
|
380
|
+
this.$$l_u.set(o, s);
|
|
381
381
|
}
|
|
382
382
|
this.$$l = {};
|
|
383
383
|
}
|
|
@@ -385,7 +385,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
385
385
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
386
386
|
// and setting attributes through setAttribute etc, this is helpful
|
|
387
387
|
attributeChangedCallback(e, t, r) {
|
|
388
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
388
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = pe(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
389
389
|
}
|
|
390
390
|
disconnectedCallback() {
|
|
391
391
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -398,7 +398,7 @@ typeof HTMLElement == "function" && (Ht = class extends HTMLElement {
|
|
|
398
398
|
) || e;
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
|
-
function
|
|
401
|
+
function pe(e, t, r, n) {
|
|
402
402
|
const i = r[e]?.type;
|
|
403
403
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
404
404
|
return t;
|
|
@@ -427,36 +427,36 @@ function de(e, t, r, n) {
|
|
|
427
427
|
return t;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
let
|
|
430
|
+
function yr(e, t, r, n, i, o) {
|
|
431
|
+
let s = class extends St {
|
|
432
432
|
constructor() {
|
|
433
433
|
super(e, r, i), this.$$p_d = t;
|
|
434
434
|
}
|
|
435
435
|
static get observedAttributes() {
|
|
436
436
|
return Object.keys(t).map(
|
|
437
|
-
(
|
|
437
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
438
438
|
);
|
|
439
439
|
}
|
|
440
440
|
};
|
|
441
|
-
return Object.keys(t).forEach((
|
|
442
|
-
Object.defineProperty(
|
|
441
|
+
return Object.keys(t).forEach((a) => {
|
|
442
|
+
Object.defineProperty(s.prototype, a, {
|
|
443
443
|
get() {
|
|
444
|
-
return this.$$c &&
|
|
444
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
445
445
|
},
|
|
446
446
|
set(h) {
|
|
447
|
-
h =
|
|
447
|
+
h = pe(a, h, t), this.$$d[a] = h, this.$$c?.$set({ [a]: h });
|
|
448
448
|
}
|
|
449
449
|
});
|
|
450
|
-
}), n.forEach((
|
|
451
|
-
Object.defineProperty(
|
|
450
|
+
}), n.forEach((a) => {
|
|
451
|
+
Object.defineProperty(s.prototype, a, {
|
|
452
452
|
get() {
|
|
453
|
-
return this.$$c?.[
|
|
453
|
+
return this.$$c?.[a];
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
456
|
}), e.element = /** @type {any} */
|
|
457
|
-
|
|
457
|
+
s, s;
|
|
458
458
|
}
|
|
459
|
-
class
|
|
459
|
+
class vr {
|
|
460
460
|
/**
|
|
461
461
|
* ### PRIVATE API
|
|
462
462
|
*
|
|
@@ -475,7 +475,7 @@ class yr {
|
|
|
475
475
|
$$set = void 0;
|
|
476
476
|
/** @returns {void} */
|
|
477
477
|
$destroy() {
|
|
478
|
-
|
|
478
|
+
pr(this, 1), this.$destroy = P;
|
|
479
479
|
}
|
|
480
480
|
/**
|
|
481
481
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -484,8 +484,8 @@ class yr {
|
|
|
484
484
|
* @returns {() => void}
|
|
485
485
|
*/
|
|
486
486
|
$on(t, r) {
|
|
487
|
-
if (!
|
|
488
|
-
return
|
|
487
|
+
if (!We(r))
|
|
488
|
+
return P;
|
|
489
489
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
490
490
|
return n.push(r), () => {
|
|
491
491
|
const i = n.indexOf(r);
|
|
@@ -500,15 +500,16 @@ class yr {
|
|
|
500
500
|
this.$$set && !Qt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
const
|
|
504
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
503
|
+
const _r = "4";
|
|
504
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_r);
|
|
505
|
+
const U = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
505
506
|
function Er(e, t) {
|
|
506
507
|
if (e) {
|
|
507
508
|
const r = document.createElement("style");
|
|
508
509
|
r.innerHTML = t, e.appendChild(r);
|
|
509
510
|
}
|
|
510
511
|
}
|
|
511
|
-
function
|
|
512
|
+
function xr(e, t) {
|
|
512
513
|
if (!e || !t)
|
|
513
514
|
return;
|
|
514
515
|
const r = new URL(t);
|
|
@@ -519,25 +520,52 @@ function _r(e, t) {
|
|
|
519
520
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
520
521
|
});
|
|
521
522
|
}
|
|
522
|
-
function
|
|
523
|
-
if (window.emMessageBus)
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
523
|
+
function Tr(e, t, r, n = !1) {
|
|
524
|
+
if (!window.emMessageBus)
|
|
525
|
+
return;
|
|
526
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
527
|
+
return r = Hr(e, t), r;
|
|
528
|
+
window[U] || (window[U] = {}), r = Sr(e, t);
|
|
529
|
+
const o = r.unsubscribe.bind(r), s = () => {
|
|
530
|
+
if (window[U][t]) {
|
|
531
|
+
const a = window[U][t];
|
|
532
|
+
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[U][t];
|
|
533
|
+
}
|
|
534
|
+
o();
|
|
535
|
+
};
|
|
536
|
+
return r.unsubscribe = s, r;
|
|
537
|
+
}
|
|
538
|
+
function Hr(e, t) {
|
|
539
|
+
const r = document.createElement("style");
|
|
540
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
541
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
function Sr(e, t) {
|
|
545
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
546
|
+
if (!e)
|
|
547
|
+
return;
|
|
548
|
+
const n = e.getRootNode(), i = window[U];
|
|
549
|
+
let o = i[t]?.sheet;
|
|
550
|
+
o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
|
|
551
|
+
sheet: o,
|
|
552
|
+
refCount: 1
|
|
527
553
|
});
|
|
528
|
-
|
|
554
|
+
const s = n.adoptedStyleSheets || [];
|
|
555
|
+
s.includes(o) || (n.adoptedStyleSheets = [...s, o]);
|
|
556
|
+
});
|
|
529
557
|
}
|
|
530
558
|
const $ = [];
|
|
531
|
-
function
|
|
559
|
+
function wr(e, t) {
|
|
532
560
|
return {
|
|
533
|
-
subscribe:
|
|
561
|
+
subscribe: Te(e, t).subscribe
|
|
534
562
|
};
|
|
535
563
|
}
|
|
536
|
-
function
|
|
564
|
+
function Te(e, t = P) {
|
|
537
565
|
let r;
|
|
538
566
|
const n = /* @__PURE__ */ new Set();
|
|
539
|
-
function i(
|
|
540
|
-
if (Et(e,
|
|
567
|
+
function i(a) {
|
|
568
|
+
if (Et(e, a) && (e = a, r)) {
|
|
541
569
|
const h = !$.length;
|
|
542
570
|
for (const u of n)
|
|
543
571
|
u[1](), $.push(u, e);
|
|
@@ -548,89 +576,89 @@ function xe(e, t = B) {
|
|
|
548
576
|
}
|
|
549
577
|
}
|
|
550
578
|
}
|
|
551
|
-
function o(
|
|
552
|
-
i(
|
|
579
|
+
function o(a) {
|
|
580
|
+
i(a(e));
|
|
553
581
|
}
|
|
554
|
-
function a
|
|
555
|
-
const u = [
|
|
556
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
582
|
+
function s(a, h = P) {
|
|
583
|
+
const u = [a, h];
|
|
584
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || P), a(e), () => {
|
|
557
585
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
558
586
|
};
|
|
559
587
|
}
|
|
560
|
-
return { set: i, update: o, subscribe:
|
|
588
|
+
return { set: i, update: o, subscribe: s };
|
|
561
589
|
}
|
|
562
590
|
function X(e, t, r) {
|
|
563
591
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
564
592
|
if (!i.every(Boolean))
|
|
565
593
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
566
594
|
const o = t.length < 2;
|
|
567
|
-
return
|
|
595
|
+
return wr(r, (s, a) => {
|
|
568
596
|
let h = !1;
|
|
569
597
|
const u = [];
|
|
570
|
-
let l = 0,
|
|
571
|
-
const
|
|
598
|
+
let l = 0, c = P;
|
|
599
|
+
const f = () => {
|
|
572
600
|
if (l)
|
|
573
601
|
return;
|
|
574
|
-
|
|
575
|
-
const
|
|
576
|
-
o ?
|
|
577
|
-
},
|
|
578
|
-
(
|
|
579
|
-
|
|
602
|
+
c();
|
|
603
|
+
const b = t(n ? u[0] : u, s, a);
|
|
604
|
+
o ? s(b) : c = We(b) ? b : P;
|
|
605
|
+
}, p = i.map(
|
|
606
|
+
(b, E) => xt(
|
|
607
|
+
b,
|
|
580
608
|
(T) => {
|
|
581
|
-
u[
|
|
609
|
+
u[E] = T, l &= ~(1 << E), h && f();
|
|
582
610
|
},
|
|
583
611
|
() => {
|
|
584
|
-
l |= 1 <<
|
|
612
|
+
l |= 1 << E;
|
|
585
613
|
}
|
|
586
614
|
)
|
|
587
615
|
);
|
|
588
|
-
return h = !0,
|
|
589
|
-
|
|
616
|
+
return h = !0, f(), function() {
|
|
617
|
+
re(p), c(), h = !1;
|
|
590
618
|
};
|
|
591
619
|
});
|
|
592
620
|
}
|
|
593
|
-
function
|
|
621
|
+
function Ar(e) {
|
|
594
622
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
595
623
|
}
|
|
596
|
-
var
|
|
597
|
-
return
|
|
624
|
+
var Br = function(t) {
|
|
625
|
+
return Pr(t) && !Or(t);
|
|
598
626
|
};
|
|
599
|
-
function
|
|
627
|
+
function Pr(e) {
|
|
600
628
|
return !!e && typeof e == "object";
|
|
601
629
|
}
|
|
602
|
-
function
|
|
630
|
+
function Or(e) {
|
|
603
631
|
var t = Object.prototype.toString.call(e);
|
|
604
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
632
|
+
return t === "[object RegExp]" || t === "[object Date]" || Ir(e);
|
|
605
633
|
}
|
|
606
|
-
var
|
|
607
|
-
function
|
|
608
|
-
return e.$$typeof ===
|
|
634
|
+
var Cr = typeof Symbol == "function" && Symbol.for, Lr = Cr ? Symbol.for("react.element") : 60103;
|
|
635
|
+
function Ir(e) {
|
|
636
|
+
return e.$$typeof === Lr;
|
|
609
637
|
}
|
|
610
|
-
function
|
|
638
|
+
function Nr(e) {
|
|
611
639
|
return Array.isArray(e) ? [] : {};
|
|
612
640
|
}
|
|
613
|
-
function
|
|
614
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
641
|
+
function ee(e, t) {
|
|
642
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? F(Nr(e), e, t) : e;
|
|
615
643
|
}
|
|
616
|
-
function
|
|
644
|
+
function Mr(e, t, r) {
|
|
617
645
|
return e.concat(t).map(function(n) {
|
|
618
|
-
return
|
|
646
|
+
return ee(n, r);
|
|
619
647
|
});
|
|
620
648
|
}
|
|
621
|
-
function
|
|
649
|
+
function Rr(e, t) {
|
|
622
650
|
if (!t.customMerge)
|
|
623
|
-
return
|
|
651
|
+
return F;
|
|
624
652
|
var r = t.customMerge(e);
|
|
625
|
-
return typeof r == "function" ? r :
|
|
653
|
+
return typeof r == "function" ? r : F;
|
|
626
654
|
}
|
|
627
|
-
function
|
|
655
|
+
function $r(e) {
|
|
628
656
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
629
657
|
return Object.propertyIsEnumerable.call(e, t);
|
|
630
658
|
}) : [];
|
|
631
659
|
}
|
|
632
|
-
function
|
|
633
|
-
return Object.keys(e).concat(
|
|
660
|
+
function Ke(e) {
|
|
661
|
+
return Object.keys(e).concat($r(e));
|
|
634
662
|
}
|
|
635
663
|
function wt(e, t) {
|
|
636
664
|
try {
|
|
@@ -639,59 +667,59 @@ function wt(e, t) {
|
|
|
639
667
|
return !1;
|
|
640
668
|
}
|
|
641
669
|
}
|
|
642
|
-
function
|
|
670
|
+
function Dr(e, t) {
|
|
643
671
|
return wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
644
672
|
}
|
|
645
|
-
function
|
|
673
|
+
function Ur(e, t, r) {
|
|
646
674
|
var n = {};
|
|
647
|
-
return r.isMergeableObject(e) &&
|
|
648
|
-
n[i] =
|
|
649
|
-
}),
|
|
650
|
-
|
|
675
|
+
return r.isMergeableObject(e) && Ke(e).forEach(function(i) {
|
|
676
|
+
n[i] = ee(e[i], r);
|
|
677
|
+
}), Ke(t).forEach(function(i) {
|
|
678
|
+
Dr(e, i) || (wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Rr(i, r)(e[i], t[i], r) : n[i] = ee(t[i], r));
|
|
651
679
|
}), n;
|
|
652
680
|
}
|
|
653
|
-
function
|
|
654
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
681
|
+
function F(e, t, r) {
|
|
682
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Mr, r.isMergeableObject = r.isMergeableObject || Br, r.cloneUnlessOtherwiseSpecified = ee;
|
|
655
683
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
656
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
684
|
+
return o ? n ? r.arrayMerge(e, t, r) : Ur(e, t, r) : ee(t, r);
|
|
657
685
|
}
|
|
658
|
-
|
|
686
|
+
F.all = function(t, r) {
|
|
659
687
|
if (!Array.isArray(t))
|
|
660
688
|
throw new Error("first argument should be an array");
|
|
661
689
|
return t.reduce(function(n, i) {
|
|
662
|
-
return
|
|
690
|
+
return F(n, i, r);
|
|
663
691
|
}, {});
|
|
664
692
|
};
|
|
665
|
-
var
|
|
666
|
-
const
|
|
667
|
-
var
|
|
668
|
-
return
|
|
693
|
+
var kr = F, Gr = kr;
|
|
694
|
+
const Fr = /* @__PURE__ */ Ar(Gr);
|
|
695
|
+
var De = function(e, t) {
|
|
696
|
+
return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
669
697
|
r.__proto__ = n;
|
|
670
698
|
} || function(r, n) {
|
|
671
699
|
for (var i in n)
|
|
672
700
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
673
|
-
},
|
|
701
|
+
}, De(e, t);
|
|
674
702
|
};
|
|
675
|
-
function
|
|
703
|
+
function He(e, t) {
|
|
676
704
|
if (typeof t != "function" && t !== null)
|
|
677
705
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
678
|
-
|
|
706
|
+
De(e, t);
|
|
679
707
|
function r() {
|
|
680
708
|
this.constructor = e;
|
|
681
709
|
}
|
|
682
710
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
683
711
|
}
|
|
684
|
-
var
|
|
685
|
-
return
|
|
712
|
+
var A = function() {
|
|
713
|
+
return A = Object.assign || function(t) {
|
|
686
714
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
687
715
|
r = arguments[n];
|
|
688
716
|
for (var o in r)
|
|
689
717
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
690
718
|
}
|
|
691
719
|
return t;
|
|
692
|
-
},
|
|
720
|
+
}, A.apply(this, arguments);
|
|
693
721
|
};
|
|
694
|
-
function
|
|
722
|
+
function zr(e, t) {
|
|
695
723
|
var r = {};
|
|
696
724
|
for (var n in e)
|
|
697
725
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -700,43 +728,43 @@ function kr(e, t) {
|
|
|
700
728
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
701
729
|
return r;
|
|
702
730
|
}
|
|
703
|
-
function
|
|
731
|
+
function Pe(e, t, r) {
|
|
704
732
|
if (r || arguments.length === 2)
|
|
705
733
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
706
734
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
707
735
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
708
736
|
}
|
|
709
|
-
function
|
|
710
|
-
var r = t && t.cache ? t.cache :
|
|
737
|
+
function Oe(e, t) {
|
|
738
|
+
var r = t && t.cache ? t.cache : Zr, n = t && t.serializer ? t.serializer : qr, i = t && t.strategy ? t.strategy : Wr;
|
|
711
739
|
return i(e, {
|
|
712
740
|
cache: r,
|
|
713
741
|
serializer: n
|
|
714
742
|
});
|
|
715
743
|
}
|
|
716
|
-
function
|
|
744
|
+
function jr(e) {
|
|
717
745
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
718
746
|
}
|
|
719
|
-
function
|
|
720
|
-
var i =
|
|
747
|
+
function Vr(e, t, r, n) {
|
|
748
|
+
var i = jr(n) ? n : r(n), o = t.get(i);
|
|
721
749
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
722
750
|
}
|
|
723
|
-
function
|
|
751
|
+
function At(e, t, r) {
|
|
724
752
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
725
753
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
726
754
|
}
|
|
727
755
|
function Bt(e, t, r, n, i) {
|
|
728
756
|
return r.bind(t, e, n, i);
|
|
729
757
|
}
|
|
730
|
-
function
|
|
731
|
-
var r = e.length === 1 ?
|
|
758
|
+
function Wr(e, t) {
|
|
759
|
+
var r = e.length === 1 ? Vr : At;
|
|
732
760
|
return Bt(e, this, r, t.cache.create(), t.serializer);
|
|
733
761
|
}
|
|
734
|
-
function
|
|
735
|
-
return Bt(e, this,
|
|
762
|
+
function Xr(e, t) {
|
|
763
|
+
return Bt(e, this, At, t.cache.create(), t.serializer);
|
|
736
764
|
}
|
|
737
|
-
var
|
|
765
|
+
var qr = function() {
|
|
738
766
|
return JSON.stringify(arguments);
|
|
739
|
-
},
|
|
767
|
+
}, Jr = (
|
|
740
768
|
/** @class */
|
|
741
769
|
function() {
|
|
742
770
|
function e() {
|
|
@@ -748,71 +776,71 @@ var Vr = function() {
|
|
|
748
776
|
this.cache[t] = r;
|
|
749
777
|
}, e;
|
|
750
778
|
}()
|
|
751
|
-
),
|
|
779
|
+
), Zr = {
|
|
752
780
|
create: function() {
|
|
753
|
-
return new
|
|
781
|
+
return new Jr();
|
|
754
782
|
}
|
|
755
|
-
},
|
|
756
|
-
variadic:
|
|
757
|
-
},
|
|
758
|
-
return
|
|
783
|
+
}, Ce = {
|
|
784
|
+
variadic: Xr
|
|
785
|
+
}, ye = function() {
|
|
786
|
+
return ye = Object.assign || function(t) {
|
|
759
787
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
760
788
|
r = arguments[n];
|
|
761
789
|
for (var o in r)
|
|
762
790
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
763
791
|
}
|
|
764
792
|
return t;
|
|
765
|
-
},
|
|
793
|
+
}, ye.apply(this, arguments);
|
|
766
794
|
};
|
|
767
|
-
var
|
|
795
|
+
var g;
|
|
768
796
|
(function(e) {
|
|
769
797
|
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";
|
|
770
|
-
})(
|
|
798
|
+
})(g || (g = {}));
|
|
771
799
|
var v;
|
|
772
800
|
(function(e) {
|
|
773
801
|
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";
|
|
774
802
|
})(v || (v = {}));
|
|
775
|
-
var
|
|
803
|
+
var z;
|
|
776
804
|
(function(e) {
|
|
777
805
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
778
|
-
})(
|
|
779
|
-
function
|
|
806
|
+
})(z || (z = {}));
|
|
807
|
+
function et(e) {
|
|
780
808
|
return e.type === v.literal;
|
|
781
809
|
}
|
|
782
|
-
function
|
|
810
|
+
function Yr(e) {
|
|
783
811
|
return e.type === v.argument;
|
|
784
812
|
}
|
|
785
|
-
function
|
|
813
|
+
function Pt(e) {
|
|
786
814
|
return e.type === v.number;
|
|
787
815
|
}
|
|
788
|
-
function
|
|
816
|
+
function Ot(e) {
|
|
789
817
|
return e.type === v.date;
|
|
790
818
|
}
|
|
791
|
-
function
|
|
819
|
+
function Ct(e) {
|
|
792
820
|
return e.type === v.time;
|
|
793
821
|
}
|
|
794
|
-
function
|
|
822
|
+
function Lt(e) {
|
|
795
823
|
return e.type === v.select;
|
|
796
824
|
}
|
|
797
825
|
function It(e) {
|
|
798
826
|
return e.type === v.plural;
|
|
799
827
|
}
|
|
800
|
-
function
|
|
828
|
+
function Qr(e) {
|
|
801
829
|
return e.type === v.pound;
|
|
802
830
|
}
|
|
803
|
-
function
|
|
831
|
+
function Nt(e) {
|
|
804
832
|
return e.type === v.tag;
|
|
805
833
|
}
|
|
806
834
|
function Mt(e) {
|
|
807
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
835
|
+
return !!(e && typeof e == "object" && e.type === z.number);
|
|
808
836
|
}
|
|
809
|
-
function
|
|
810
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
837
|
+
function Ue(e) {
|
|
838
|
+
return !!(e && typeof e == "object" && e.type === z.dateTime);
|
|
811
839
|
}
|
|
812
|
-
var
|
|
813
|
-
function
|
|
840
|
+
var Rt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Kr = /(?:[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;
|
|
841
|
+
function en(e) {
|
|
814
842
|
var t = {};
|
|
815
|
-
return e.replace(
|
|
843
|
+
return e.replace(Kr, function(r) {
|
|
816
844
|
var n = r.length;
|
|
817
845
|
switch (r[0]) {
|
|
818
846
|
case "G":
|
|
@@ -901,46 +929,46 @@ function Qr(e) {
|
|
|
901
929
|
return "";
|
|
902
930
|
}), t;
|
|
903
931
|
}
|
|
904
|
-
var
|
|
905
|
-
return
|
|
932
|
+
var _ = function() {
|
|
933
|
+
return _ = Object.assign || function(t) {
|
|
906
934
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
907
935
|
r = arguments[n];
|
|
908
936
|
for (var o in r)
|
|
909
937
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
910
938
|
}
|
|
911
939
|
return t;
|
|
912
|
-
},
|
|
940
|
+
}, _.apply(this, arguments);
|
|
913
941
|
};
|
|
914
|
-
var
|
|
915
|
-
function
|
|
942
|
+
var tn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
943
|
+
function rn(e) {
|
|
916
944
|
if (e.length === 0)
|
|
917
945
|
throw new Error("Number skeleton cannot be empty");
|
|
918
|
-
for (var t = e.split(
|
|
919
|
-
return
|
|
946
|
+
for (var t = e.split(tn).filter(function(f) {
|
|
947
|
+
return f.length > 0;
|
|
920
948
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
921
|
-
var o = i[n],
|
|
922
|
-
if (
|
|
949
|
+
var o = i[n], s = o.split("/");
|
|
950
|
+
if (s.length === 0)
|
|
923
951
|
throw new Error("Invalid number skeleton");
|
|
924
|
-
for (var
|
|
925
|
-
var
|
|
926
|
-
if (
|
|
952
|
+
for (var a = s[0], h = s.slice(1), u = 0, l = h; u < l.length; u++) {
|
|
953
|
+
var c = l[u];
|
|
954
|
+
if (c.length === 0)
|
|
927
955
|
throw new Error("Invalid number skeleton");
|
|
928
956
|
}
|
|
929
|
-
r.push({ stem:
|
|
957
|
+
r.push({ stem: a, options: h });
|
|
930
958
|
}
|
|
931
959
|
return r;
|
|
932
960
|
}
|
|
933
|
-
function
|
|
961
|
+
function nn(e) {
|
|
934
962
|
return e.replace(/^(.*?)-/, "");
|
|
935
963
|
}
|
|
936
|
-
var
|
|
937
|
-
function
|
|
964
|
+
var tt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $t = /^(@+)?(\+|#+)?[rs]?$/g, on = /(\*)(0+)|(#+)(0+)|(0+)/g, Dt = /^(0+)$/;
|
|
965
|
+
function rt(e) {
|
|
938
966
|
var t = {};
|
|
939
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
967
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($t, function(r, n, i) {
|
|
940
968
|
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)), "";
|
|
941
969
|
}), t;
|
|
942
970
|
}
|
|
943
|
-
function
|
|
971
|
+
function Ut(e) {
|
|
944
972
|
switch (e) {
|
|
945
973
|
case "sign-auto":
|
|
946
974
|
return {
|
|
@@ -980,7 +1008,7 @@ function Dt(e) {
|
|
|
980
1008
|
};
|
|
981
1009
|
}
|
|
982
1010
|
}
|
|
983
|
-
function
|
|
1011
|
+
function sn(e) {
|
|
984
1012
|
var t;
|
|
985
1013
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
986
1014
|
notation: "engineering"
|
|
@@ -988,17 +1016,17 @@ function rn(e) {
|
|
|
988
1016
|
notation: "scientific"
|
|
989
1017
|
}, e = e.slice(1)), t) {
|
|
990
1018
|
var r = e.slice(0, 2);
|
|
991
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)),
|
|
1019
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dt.test(e))
|
|
992
1020
|
throw new Error("Malformed concise eng/scientific notation");
|
|
993
1021
|
t.minimumIntegerDigits = e.length;
|
|
994
1022
|
}
|
|
995
1023
|
return t;
|
|
996
1024
|
}
|
|
997
|
-
function
|
|
998
|
-
var t = {}, r =
|
|
1025
|
+
function nt(e) {
|
|
1026
|
+
var t = {}, r = Ut(e);
|
|
999
1027
|
return r || t;
|
|
1000
1028
|
}
|
|
1001
|
-
function
|
|
1029
|
+
function an(e) {
|
|
1002
1030
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1003
1031
|
var i = n[r];
|
|
1004
1032
|
switch (i.stem) {
|
|
@@ -1022,7 +1050,7 @@ function nn(e) {
|
|
|
1022
1050
|
continue;
|
|
1023
1051
|
case "measure-unit":
|
|
1024
1052
|
case "unit":
|
|
1025
|
-
t.style = "unit", t.unit =
|
|
1053
|
+
t.style = "unit", t.unit = nn(i.options[0]);
|
|
1026
1054
|
continue;
|
|
1027
1055
|
case "compact-short":
|
|
1028
1056
|
case "K":
|
|
@@ -1033,13 +1061,13 @@ function nn(e) {
|
|
|
1033
1061
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1034
1062
|
continue;
|
|
1035
1063
|
case "scientific":
|
|
1036
|
-
t =
|
|
1037
|
-
return
|
|
1064
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
1065
|
+
return _(_({}, h), nt(u));
|
|
1038
1066
|
}, {}));
|
|
1039
1067
|
continue;
|
|
1040
1068
|
case "engineering":
|
|
1041
|
-
t =
|
|
1042
|
-
return
|
|
1069
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
1070
|
+
return _(_({}, h), nt(u));
|
|
1043
1071
|
}, {}));
|
|
1044
1072
|
continue;
|
|
1045
1073
|
case "notation-simple":
|
|
@@ -1084,45 +1112,45 @@ function nn(e) {
|
|
|
1084
1112
|
case "integer-width":
|
|
1085
1113
|
if (i.options.length > 1)
|
|
1086
1114
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1087
|
-
i.options[0].replace(
|
|
1115
|
+
i.options[0].replace(on, function(h, u, l, c, f, p) {
|
|
1088
1116
|
if (u)
|
|
1089
1117
|
t.minimumIntegerDigits = l.length;
|
|
1090
1118
|
else {
|
|
1091
|
-
if (
|
|
1119
|
+
if (c && f)
|
|
1092
1120
|
throw new Error("We currently do not support maximum integer digits");
|
|
1093
|
-
if (
|
|
1121
|
+
if (p)
|
|
1094
1122
|
throw new Error("We currently do not support exact integer digits");
|
|
1095
1123
|
}
|
|
1096
1124
|
return "";
|
|
1097
1125
|
});
|
|
1098
1126
|
continue;
|
|
1099
1127
|
}
|
|
1100
|
-
if (
|
|
1128
|
+
if (Dt.test(i.stem)) {
|
|
1101
1129
|
t.minimumIntegerDigits = i.stem.length;
|
|
1102
1130
|
continue;
|
|
1103
1131
|
}
|
|
1104
|
-
if (
|
|
1132
|
+
if (tt.test(i.stem)) {
|
|
1105
1133
|
if (i.options.length > 1)
|
|
1106
1134
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1107
|
-
i.stem.replace(
|
|
1108
|
-
return l === "*" ? t.minimumFractionDigits = u.length :
|
|
1135
|
+
i.stem.replace(tt, function(h, u, l, c, f, p) {
|
|
1136
|
+
return l === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1109
1137
|
});
|
|
1110
1138
|
var o = i.options[0];
|
|
1111
|
-
o === "w" ? t =
|
|
1139
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), rt(o)));
|
|
1112
1140
|
continue;
|
|
1113
1141
|
}
|
|
1114
|
-
if (
|
|
1115
|
-
t =
|
|
1142
|
+
if ($t.test(i.stem)) {
|
|
1143
|
+
t = _(_({}, t), rt(i.stem));
|
|
1116
1144
|
continue;
|
|
1117
1145
|
}
|
|
1118
|
-
var
|
|
1119
|
-
|
|
1120
|
-
var
|
|
1121
|
-
|
|
1146
|
+
var s = Ut(i.stem);
|
|
1147
|
+
s && (t = _(_({}, t), s));
|
|
1148
|
+
var a = sn(i.stem);
|
|
1149
|
+
a && (t = _(_({}, t), a));
|
|
1122
1150
|
}
|
|
1123
1151
|
return t;
|
|
1124
1152
|
}
|
|
1125
|
-
var
|
|
1153
|
+
var me = {
|
|
1126
1154
|
"001": [
|
|
1127
1155
|
"H",
|
|
1128
1156
|
"h"
|
|
@@ -2537,23 +2565,23 @@ var fe = {
|
|
|
2537
2565
|
"h"
|
|
2538
2566
|
]
|
|
2539
2567
|
};
|
|
2540
|
-
function
|
|
2568
|
+
function un(e, t) {
|
|
2541
2569
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2542
2570
|
var i = e.charAt(n);
|
|
2543
2571
|
if (i === "j") {
|
|
2544
2572
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2545
2573
|
o++, n++;
|
|
2546
|
-
var
|
|
2547
|
-
for ((u == "H" || u == "k") && (
|
|
2574
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = ln(t);
|
|
2575
|
+
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2548
2576
|
r += h;
|
|
2549
|
-
for (;
|
|
2577
|
+
for (; s-- > 0; )
|
|
2550
2578
|
r = u + r;
|
|
2551
2579
|
} else
|
|
2552
2580
|
i === "J" ? r += "H" : r += i;
|
|
2553
2581
|
}
|
|
2554
2582
|
return r;
|
|
2555
2583
|
}
|
|
2556
|
-
function
|
|
2584
|
+
function ln(e) {
|
|
2557
2585
|
var t = e.hourCycle;
|
|
2558
2586
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2559
2587
|
e.hourCycles && // @ts-ignore
|
|
@@ -2572,23 +2600,23 @@ function an(e) {
|
|
|
2572
2600
|
}
|
|
2573
2601
|
var r = e.language, n;
|
|
2574
2602
|
r !== "root" && (n = e.maximize().region);
|
|
2575
|
-
var i =
|
|
2603
|
+
var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
|
|
2576
2604
|
return i[0];
|
|
2577
2605
|
}
|
|
2578
|
-
var
|
|
2606
|
+
var Le, hn = new RegExp("^".concat(Rt.source, "*")), cn = new RegExp("".concat(Rt.source, "*$"));
|
|
2579
2607
|
function y(e, t) {
|
|
2580
2608
|
return { start: e, end: t };
|
|
2581
2609
|
}
|
|
2582
|
-
var
|
|
2610
|
+
var fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), mn = !!String.fromCodePoint, dn = !!Object.fromEntries, pn = !!String.prototype.codePointAt, bn = !!String.prototype.trimStart, gn = !!String.prototype.trimEnd, yn = !!Number.isSafeInteger, vn = yn ? Number.isSafeInteger : function(e) {
|
|
2583
2611
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2584
|
-
},
|
|
2612
|
+
}, ke = !0;
|
|
2585
2613
|
try {
|
|
2586
|
-
var
|
|
2587
|
-
|
|
2614
|
+
var _n = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2615
|
+
ke = ((Le = _n.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
|
|
2588
2616
|
} catch {
|
|
2589
|
-
|
|
2617
|
+
ke = !1;
|
|
2590
2618
|
}
|
|
2591
|
-
var
|
|
2619
|
+
var it = fn ? (
|
|
2592
2620
|
// Native
|
|
2593
2621
|
function(t, r, n) {
|
|
2594
2622
|
return t.startsWith(r, n);
|
|
@@ -2598,31 +2626,31 @@ var nt = ln ? (
|
|
|
2598
2626
|
function(t, r, n) {
|
|
2599
2627
|
return t.slice(n, n + r.length) === r;
|
|
2600
2628
|
}
|
|
2601
|
-
),
|
|
2629
|
+
), Ge = mn ? String.fromCodePoint : (
|
|
2602
2630
|
// IE11
|
|
2603
2631
|
function() {
|
|
2604
2632
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2605
2633
|
t[r] = arguments[r];
|
|
2606
|
-
for (var n = "", i = t.length, o = 0,
|
|
2607
|
-
if (
|
|
2608
|
-
throw RangeError(
|
|
2609
|
-
n +=
|
|
2634
|
+
for (var n = "", i = t.length, o = 0, s; i > o; ) {
|
|
2635
|
+
if (s = t[o++], s > 1114111)
|
|
2636
|
+
throw RangeError(s + " is not a valid code point");
|
|
2637
|
+
n += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
2610
2638
|
}
|
|
2611
2639
|
return n;
|
|
2612
2640
|
}
|
|
2613
|
-
),
|
|
2641
|
+
), ot = (
|
|
2614
2642
|
// native
|
|
2615
|
-
|
|
2643
|
+
dn ? Object.fromEntries : (
|
|
2616
2644
|
// Ponyfill
|
|
2617
2645
|
function(t) {
|
|
2618
2646
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2619
|
-
var o = i[n],
|
|
2620
|
-
r[
|
|
2647
|
+
var o = i[n], s = o[0], a = o[1];
|
|
2648
|
+
r[s] = a;
|
|
2621
2649
|
}
|
|
2622
2650
|
return r;
|
|
2623
2651
|
}
|
|
2624
2652
|
)
|
|
2625
|
-
),
|
|
2653
|
+
), kt = pn ? (
|
|
2626
2654
|
// Native
|
|
2627
2655
|
function(t, r) {
|
|
2628
2656
|
return t.codePointAt(r);
|
|
@@ -2636,7 +2664,7 @@ var nt = ln ? (
|
|
|
2636
2664
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2637
2665
|
}
|
|
2638
2666
|
}
|
|
2639
|
-
),
|
|
2667
|
+
), En = bn ? (
|
|
2640
2668
|
// Native
|
|
2641
2669
|
function(t) {
|
|
2642
2670
|
return t.trimStart();
|
|
@@ -2644,9 +2672,9 @@ var nt = ln ? (
|
|
|
2644
2672
|
) : (
|
|
2645
2673
|
// Ponyfill
|
|
2646
2674
|
function(t) {
|
|
2647
|
-
return t.replace(
|
|
2675
|
+
return t.replace(hn, "");
|
|
2648
2676
|
}
|
|
2649
|
-
),
|
|
2677
|
+
), xn = gn ? (
|
|
2650
2678
|
// Native
|
|
2651
2679
|
function(t) {
|
|
2652
2680
|
return t.trimEnd();
|
|
@@ -2654,32 +2682,32 @@ var nt = ln ? (
|
|
|
2654
2682
|
) : (
|
|
2655
2683
|
// Ponyfill
|
|
2656
2684
|
function(t) {
|
|
2657
|
-
return t.replace(
|
|
2685
|
+
return t.replace(cn, "");
|
|
2658
2686
|
}
|
|
2659
2687
|
);
|
|
2660
|
-
function
|
|
2688
|
+
function Gt(e, t) {
|
|
2661
2689
|
return new RegExp(e, t);
|
|
2662
2690
|
}
|
|
2663
|
-
var
|
|
2664
|
-
if (
|
|
2665
|
-
var
|
|
2666
|
-
|
|
2691
|
+
var Fe;
|
|
2692
|
+
if (ke) {
|
|
2693
|
+
var st = Gt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2694
|
+
Fe = function(t, r) {
|
|
2667
2695
|
var n;
|
|
2668
|
-
|
|
2669
|
-
var i =
|
|
2696
|
+
st.lastIndex = r;
|
|
2697
|
+
var i = st.exec(t);
|
|
2670
2698
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2671
2699
|
};
|
|
2672
2700
|
} else
|
|
2673
|
-
|
|
2701
|
+
Fe = function(t, r) {
|
|
2674
2702
|
for (var n = []; ; ) {
|
|
2675
|
-
var i =
|
|
2676
|
-
if (i === void 0 ||
|
|
2703
|
+
var i = kt(t, r);
|
|
2704
|
+
if (i === void 0 || Ft(i) || wn(i))
|
|
2677
2705
|
break;
|
|
2678
2706
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2679
2707
|
}
|
|
2680
|
-
return
|
|
2708
|
+
return Ge.apply(void 0, n);
|
|
2681
2709
|
};
|
|
2682
|
-
var
|
|
2710
|
+
var Tn = (
|
|
2683
2711
|
/** @class */
|
|
2684
2712
|
function() {
|
|
2685
2713
|
function e(t, r) {
|
|
@@ -2693,33 +2721,33 @@ var En = (
|
|
|
2693
2721
|
for (var i = []; !this.isEOF(); ) {
|
|
2694
2722
|
var o = this.char();
|
|
2695
2723
|
if (o === 123) {
|
|
2696
|
-
var
|
|
2697
|
-
if (
|
|
2698
|
-
return
|
|
2699
|
-
i.push(
|
|
2724
|
+
var s = this.parseArgument(t, n);
|
|
2725
|
+
if (s.err)
|
|
2726
|
+
return s;
|
|
2727
|
+
i.push(s.val);
|
|
2700
2728
|
} else {
|
|
2701
2729
|
if (o === 125 && t > 0)
|
|
2702
2730
|
break;
|
|
2703
2731
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2704
|
-
var
|
|
2732
|
+
var a = this.clonePosition();
|
|
2705
2733
|
this.bump(), i.push({
|
|
2706
2734
|
type: v.pound,
|
|
2707
|
-
location: y(
|
|
2735
|
+
location: y(a, this.clonePosition())
|
|
2708
2736
|
});
|
|
2709
2737
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2710
2738
|
if (n)
|
|
2711
2739
|
break;
|
|
2712
|
-
return this.error(
|
|
2713
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2714
|
-
var
|
|
2715
|
-
if (
|
|
2716
|
-
return
|
|
2717
|
-
i.push(
|
|
2740
|
+
return this.error(g.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
|
|
2741
|
+
} else if (o === 60 && !this.ignoreTag && ze(this.peek() || 0)) {
|
|
2742
|
+
var s = this.parseTag(t, r);
|
|
2743
|
+
if (s.err)
|
|
2744
|
+
return s;
|
|
2745
|
+
i.push(s.val);
|
|
2718
2746
|
} else {
|
|
2719
|
-
var
|
|
2720
|
-
if (
|
|
2721
|
-
return
|
|
2722
|
-
i.push(
|
|
2747
|
+
var s = this.parseLiteral(t, r);
|
|
2748
|
+
if (s.err)
|
|
2749
|
+
return s;
|
|
2750
|
+
i.push(s.val);
|
|
2723
2751
|
}
|
|
2724
2752
|
}
|
|
2725
2753
|
}
|
|
@@ -2741,27 +2769,27 @@ var En = (
|
|
|
2741
2769
|
var o = this.parseMessage(t + 1, r, !0);
|
|
2742
2770
|
if (o.err)
|
|
2743
2771
|
return o;
|
|
2744
|
-
var
|
|
2772
|
+
var s = o.val, a = this.clonePosition();
|
|
2745
2773
|
if (this.bumpIf("</")) {
|
|
2746
|
-
if (this.isEOF() || !
|
|
2747
|
-
return this.error(
|
|
2774
|
+
if (this.isEOF() || !ze(this.char()))
|
|
2775
|
+
return this.error(g.INVALID_TAG, y(a, this.clonePosition()));
|
|
2748
2776
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2749
|
-
return i !== u ? this.error(
|
|
2777
|
+
return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, y(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2750
2778
|
val: {
|
|
2751
2779
|
type: v.tag,
|
|
2752
2780
|
value: i,
|
|
2753
|
-
children:
|
|
2781
|
+
children: s,
|
|
2754
2782
|
location: y(n, this.clonePosition())
|
|
2755
2783
|
},
|
|
2756
2784
|
err: null
|
|
2757
|
-
} : this.error(
|
|
2785
|
+
} : this.error(g.INVALID_TAG, y(a, this.clonePosition())));
|
|
2758
2786
|
} else
|
|
2759
|
-
return this.error(
|
|
2787
|
+
return this.error(g.UNCLOSED_TAG, y(n, this.clonePosition()));
|
|
2760
2788
|
} else
|
|
2761
|
-
return this.error(
|
|
2789
|
+
return this.error(g.INVALID_TAG, y(n, this.clonePosition()));
|
|
2762
2790
|
}, e.prototype.parseTagName = function() {
|
|
2763
2791
|
var t = this.offset();
|
|
2764
|
-
for (this.bump(); !this.isEOF() &&
|
|
2792
|
+
for (this.bump(); !this.isEOF() && Sn(this.char()); )
|
|
2765
2793
|
this.bump();
|
|
2766
2794
|
return this.message.slice(t, this.offset());
|
|
2767
2795
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2771,16 +2799,16 @@ var En = (
|
|
|
2771
2799
|
i += o;
|
|
2772
2800
|
continue;
|
|
2773
2801
|
}
|
|
2774
|
-
var
|
|
2775
|
-
if (a) {
|
|
2776
|
-
i += a;
|
|
2777
|
-
continue;
|
|
2778
|
-
}
|
|
2779
|
-
var s = this.tryParseLeftAngleBracket();
|
|
2802
|
+
var s = this.tryParseUnquoted(t, r);
|
|
2780
2803
|
if (s) {
|
|
2781
2804
|
i += s;
|
|
2782
2805
|
continue;
|
|
2783
2806
|
}
|
|
2807
|
+
var a = this.tryParseLeftAngleBracket();
|
|
2808
|
+
if (a) {
|
|
2809
|
+
i += a;
|
|
2810
|
+
continue;
|
|
2811
|
+
}
|
|
2784
2812
|
break;
|
|
2785
2813
|
}
|
|
2786
2814
|
var h = y(n, this.clonePosition());
|
|
@@ -2790,7 +2818,7 @@ var En = (
|
|
|
2790
2818
|
};
|
|
2791
2819
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2792
2820
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2793
|
-
!
|
|
2821
|
+
!Hn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2794
2822
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2795
2823
|
if (this.isEOF() || this.char() !== 39)
|
|
2796
2824
|
return null;
|
|
@@ -2824,23 +2852,23 @@ var En = (
|
|
|
2824
2852
|
r.push(n);
|
|
2825
2853
|
this.bump();
|
|
2826
2854
|
}
|
|
2827
|
-
return
|
|
2855
|
+
return Ge.apply(void 0, r);
|
|
2828
2856
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2829
2857
|
if (this.isEOF())
|
|
2830
2858
|
return null;
|
|
2831
2859
|
var n = this.char();
|
|
2832
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2860
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ge(n));
|
|
2833
2861
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2834
2862
|
var n = this.clonePosition();
|
|
2835
2863
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2836
|
-
return this.error(
|
|
2864
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2837
2865
|
if (this.char() === 125)
|
|
2838
|
-
return this.bump(), this.error(
|
|
2866
|
+
return this.bump(), this.error(g.EMPTY_ARGUMENT, y(n, this.clonePosition()));
|
|
2839
2867
|
var i = this.parseIdentifierIfPossible().value;
|
|
2840
2868
|
if (!i)
|
|
2841
|
-
return this.error(
|
|
2869
|
+
return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2842
2870
|
if (this.bumpSpace(), this.isEOF())
|
|
2843
|
-
return this.error(
|
|
2871
|
+
return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
|
|
2844
2872
|
switch (this.char()) {
|
|
2845
2873
|
case 125:
|
|
2846
2874
|
return this.bump(), {
|
|
@@ -2853,20 +2881,20 @@ var En = (
|
|
|
2853
2881
|
err: null
|
|
2854
2882
|
};
|
|
2855
2883
|
case 44:
|
|
2856
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2884
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2857
2885
|
default:
|
|
2858
|
-
return this.error(
|
|
2886
|
+
return this.error(g.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
|
|
2859
2887
|
}
|
|
2860
2888
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2861
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2889
|
+
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
2862
2890
|
this.bumpTo(i);
|
|
2863
|
-
var o = this.clonePosition(),
|
|
2864
|
-
return { value: n, location:
|
|
2891
|
+
var o = this.clonePosition(), s = y(t, o);
|
|
2892
|
+
return { value: n, location: s };
|
|
2865
2893
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2866
|
-
var o,
|
|
2867
|
-
switch (
|
|
2894
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2895
|
+
switch (a) {
|
|
2868
2896
|
case "":
|
|
2869
|
-
return this.error(
|
|
2897
|
+
return this.error(g.EXPECT_ARGUMENT_TYPE, y(s, h));
|
|
2870
2898
|
case "number":
|
|
2871
2899
|
case "date":
|
|
2872
2900
|
case "time": {
|
|
@@ -2874,49 +2902,49 @@ var En = (
|
|
|
2874
2902
|
var u = null;
|
|
2875
2903
|
if (this.bumpIf(",")) {
|
|
2876
2904
|
this.bumpSpace();
|
|
2877
|
-
var l = this.clonePosition(),
|
|
2878
|
-
if (
|
|
2879
|
-
return
|
|
2880
|
-
var
|
|
2881
|
-
if (
|
|
2882
|
-
return this.error(
|
|
2883
|
-
var
|
|
2884
|
-
u = { style:
|
|
2905
|
+
var l = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2906
|
+
if (c.err)
|
|
2907
|
+
return c;
|
|
2908
|
+
var f = xn(c.val);
|
|
2909
|
+
if (f.length === 0)
|
|
2910
|
+
return this.error(g.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
|
|
2911
|
+
var p = y(l, this.clonePosition());
|
|
2912
|
+
u = { style: f, styleLocation: p };
|
|
2885
2913
|
}
|
|
2886
|
-
var
|
|
2887
|
-
if (
|
|
2888
|
-
return
|
|
2889
|
-
var
|
|
2890
|
-
if (u &&
|
|
2891
|
-
var T =
|
|
2892
|
-
if (
|
|
2893
|
-
var
|
|
2894
|
-
return
|
|
2895
|
-
val: { type: v.number, value: n, location:
|
|
2914
|
+
var b = this.tryParseArgumentClose(i);
|
|
2915
|
+
if (b.err)
|
|
2916
|
+
return b;
|
|
2917
|
+
var E = y(i, this.clonePosition());
|
|
2918
|
+
if (u && it(u?.style, "::", 0)) {
|
|
2919
|
+
var T = En(u.style.slice(2));
|
|
2920
|
+
if (a === "number") {
|
|
2921
|
+
var c = this.parseNumberSkeletonFromString(T, u.styleLocation);
|
|
2922
|
+
return c.err ? c : {
|
|
2923
|
+
val: { type: v.number, value: n, location: E, style: c.val },
|
|
2896
2924
|
err: null
|
|
2897
2925
|
};
|
|
2898
2926
|
} else {
|
|
2899
2927
|
if (T.length === 0)
|
|
2900
|
-
return this.error(
|
|
2928
|
+
return this.error(g.EXPECT_DATE_TIME_SKELETON, E);
|
|
2901
2929
|
var x = T;
|
|
2902
|
-
this.locale && (x =
|
|
2903
|
-
var
|
|
2904
|
-
type:
|
|
2930
|
+
this.locale && (x = un(T, this.locale));
|
|
2931
|
+
var f = {
|
|
2932
|
+
type: z.dateTime,
|
|
2905
2933
|
pattern: x,
|
|
2906
2934
|
location: u.styleLocation,
|
|
2907
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2908
|
-
},
|
|
2935
|
+
parsedOptions: this.shouldParseSkeletons ? en(x) : {}
|
|
2936
|
+
}, d = a === "date" ? v.date : v.time;
|
|
2909
2937
|
return {
|
|
2910
|
-
val: { type:
|
|
2938
|
+
val: { type: d, value: n, location: E, style: f },
|
|
2911
2939
|
err: null
|
|
2912
2940
|
};
|
|
2913
2941
|
}
|
|
2914
2942
|
}
|
|
2915
2943
|
return {
|
|
2916
2944
|
val: {
|
|
2917
|
-
type:
|
|
2945
|
+
type: a === "number" ? v.number : a === "date" ? v.date : v.time,
|
|
2918
2946
|
value: n,
|
|
2919
|
-
location:
|
|
2947
|
+
location: E,
|
|
2920
2948
|
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
2921
2949
|
},
|
|
2922
2950
|
err: null
|
|
@@ -2925,52 +2953,52 @@ var En = (
|
|
|
2925
2953
|
case "plural":
|
|
2926
2954
|
case "selectordinal":
|
|
2927
2955
|
case "select": {
|
|
2928
|
-
var
|
|
2956
|
+
var m = this.clonePosition();
|
|
2929
2957
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2930
|
-
return this.error(
|
|
2958
|
+
return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, y(m, ye({}, m)));
|
|
2931
2959
|
this.bumpSpace();
|
|
2932
|
-
var
|
|
2933
|
-
if (
|
|
2960
|
+
var S = this.parseIdentifierIfPossible(), w = 0;
|
|
2961
|
+
if (a !== "select" && S.value === "offset") {
|
|
2934
2962
|
if (!this.bumpIf(":"))
|
|
2935
|
-
return this.error(
|
|
2963
|
+
return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
|
|
2936
2964
|
this.bumpSpace();
|
|
2937
|
-
var
|
|
2938
|
-
if (
|
|
2939
|
-
return
|
|
2940
|
-
this.bumpSpace(),
|
|
2965
|
+
var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2966
|
+
if (c.err)
|
|
2967
|
+
return c;
|
|
2968
|
+
this.bumpSpace(), S = this.parseIdentifierIfPossible(), w = c.val;
|
|
2941
2969
|
}
|
|
2942
|
-
var
|
|
2943
|
-
if (
|
|
2944
|
-
return
|
|
2945
|
-
var
|
|
2946
|
-
if (
|
|
2947
|
-
return
|
|
2948
|
-
var
|
|
2949
|
-
return
|
|
2970
|
+
var oe = this.tryParsePluralOrSelectOptions(t, a, r, S);
|
|
2971
|
+
if (oe.err)
|
|
2972
|
+
return oe;
|
|
2973
|
+
var b = this.tryParseArgumentClose(i);
|
|
2974
|
+
if (b.err)
|
|
2975
|
+
return b;
|
|
2976
|
+
var Je = y(i, this.clonePosition());
|
|
2977
|
+
return a === "select" ? {
|
|
2950
2978
|
val: {
|
|
2951
2979
|
type: v.select,
|
|
2952
2980
|
value: n,
|
|
2953
|
-
options:
|
|
2954
|
-
location:
|
|
2981
|
+
options: ot(oe.val),
|
|
2982
|
+
location: Je
|
|
2955
2983
|
},
|
|
2956
2984
|
err: null
|
|
2957
2985
|
} : {
|
|
2958
2986
|
val: {
|
|
2959
2987
|
type: v.plural,
|
|
2960
2988
|
value: n,
|
|
2961
|
-
options:
|
|
2962
|
-
offset:
|
|
2963
|
-
pluralType:
|
|
2964
|
-
location:
|
|
2989
|
+
options: ot(oe.val),
|
|
2990
|
+
offset: w,
|
|
2991
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2992
|
+
location: Je
|
|
2965
2993
|
},
|
|
2966
2994
|
err: null
|
|
2967
2995
|
};
|
|
2968
2996
|
}
|
|
2969
2997
|
default:
|
|
2970
|
-
return this.error(
|
|
2998
|
+
return this.error(g.INVALID_ARGUMENT_TYPE, y(s, h));
|
|
2971
2999
|
}
|
|
2972
3000
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2973
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3001
|
+
return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2974
3002
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2975
3003
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
2976
3004
|
var n = this.char();
|
|
@@ -2979,7 +3007,7 @@ var En = (
|
|
|
2979
3007
|
this.bump();
|
|
2980
3008
|
var i = this.clonePosition();
|
|
2981
3009
|
if (!this.bumpUntil("'"))
|
|
2982
|
-
return this.error(
|
|
3010
|
+
return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
|
|
2983
3011
|
this.bump();
|
|
2984
3012
|
break;
|
|
2985
3013
|
}
|
|
@@ -3009,64 +3037,64 @@ var En = (
|
|
|
3009
3037
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3010
3038
|
var n = [];
|
|
3011
3039
|
try {
|
|
3012
|
-
n =
|
|
3040
|
+
n = rn(t);
|
|
3013
3041
|
} catch {
|
|
3014
|
-
return this.error(
|
|
3042
|
+
return this.error(g.INVALID_NUMBER_SKELETON, r);
|
|
3015
3043
|
}
|
|
3016
3044
|
return {
|
|
3017
3045
|
val: {
|
|
3018
|
-
type:
|
|
3046
|
+
type: z.number,
|
|
3019
3047
|
tokens: n,
|
|
3020
3048
|
location: r,
|
|
3021
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3049
|
+
parsedOptions: this.shouldParseSkeletons ? an(n) : {}
|
|
3022
3050
|
},
|
|
3023
3051
|
err: null
|
|
3024
3052
|
};
|
|
3025
3053
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3026
|
-
for (var o,
|
|
3054
|
+
for (var o, s = !1, a = [], h = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
3027
3055
|
if (u.length === 0) {
|
|
3028
|
-
var
|
|
3056
|
+
var c = this.clonePosition();
|
|
3029
3057
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3030
|
-
var
|
|
3031
|
-
if (
|
|
3032
|
-
return
|
|
3033
|
-
l = y(
|
|
3058
|
+
var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3059
|
+
if (f.err)
|
|
3060
|
+
return f;
|
|
3061
|
+
l = y(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3034
3062
|
} else
|
|
3035
3063
|
break;
|
|
3036
3064
|
}
|
|
3037
3065
|
if (h.has(u))
|
|
3038
|
-
return this.error(r === "select" ?
|
|
3039
|
-
u === "other" && (
|
|
3040
|
-
var
|
|
3066
|
+
return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
3067
|
+
u === "other" && (s = !0), this.bumpSpace();
|
|
3068
|
+
var p = this.clonePosition();
|
|
3041
3069
|
if (!this.bumpIf("{"))
|
|
3042
|
-
return this.error(r === "select" ?
|
|
3043
|
-
var
|
|
3044
|
-
if (
|
|
3045
|
-
return
|
|
3046
|
-
var
|
|
3047
|
-
if (
|
|
3048
|
-
return
|
|
3049
|
-
|
|
3070
|
+
return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
|
|
3071
|
+
var b = this.parseMessage(t + 1, r, n);
|
|
3072
|
+
if (b.err)
|
|
3073
|
+
return b;
|
|
3074
|
+
var E = this.tryParseArgumentClose(p);
|
|
3075
|
+
if (E.err)
|
|
3076
|
+
return E;
|
|
3077
|
+
a.push([
|
|
3050
3078
|
u,
|
|
3051
3079
|
{
|
|
3052
|
-
value:
|
|
3053
|
-
location: y(
|
|
3080
|
+
value: b.val,
|
|
3081
|
+
location: y(p, this.clonePosition())
|
|
3054
3082
|
}
|
|
3055
3083
|
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, l = o.location;
|
|
3056
3084
|
}
|
|
3057
|
-
return
|
|
3085
|
+
return a.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(g.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3058
3086
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3059
3087
|
var n = 1, i = this.clonePosition();
|
|
3060
3088
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3061
|
-
for (var o = !1,
|
|
3062
|
-
var
|
|
3063
|
-
if (
|
|
3064
|
-
o = !0,
|
|
3089
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3090
|
+
var a = this.char();
|
|
3091
|
+
if (a >= 48 && a <= 57)
|
|
3092
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
|
3065
3093
|
else
|
|
3066
3094
|
break;
|
|
3067
3095
|
}
|
|
3068
3096
|
var h = y(i, this.clonePosition());
|
|
3069
|
-
return o ? (
|
|
3097
|
+
return o ? (s *= n, vn(s) ? { val: s, err: null } : this.error(r, h)) : this.error(t, h);
|
|
3070
3098
|
}, e.prototype.offset = function() {
|
|
3071
3099
|
return this.position.offset;
|
|
3072
3100
|
}, e.prototype.isEOF = function() {
|
|
@@ -3081,7 +3109,7 @@ var En = (
|
|
|
3081
3109
|
var t = this.position.offset;
|
|
3082
3110
|
if (t >= this.message.length)
|
|
3083
3111
|
throw Error("out of bound");
|
|
3084
|
-
var r =
|
|
3112
|
+
var r = kt(this.message, t);
|
|
3085
3113
|
if (r === void 0)
|
|
3086
3114
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3087
3115
|
return r;
|
|
@@ -3100,7 +3128,7 @@ var En = (
|
|
|
3100
3128
|
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);
|
|
3101
3129
|
}
|
|
3102
3130
|
}, e.prototype.bumpIf = function(t) {
|
|
3103
|
-
if (
|
|
3131
|
+
if (it(this.message, t, this.offset())) {
|
|
3104
3132
|
for (var r = 0; r < t.length; r++)
|
|
3105
3133
|
this.bump();
|
|
3106
3134
|
return !0;
|
|
@@ -3122,7 +3150,7 @@ var En = (
|
|
|
3122
3150
|
break;
|
|
3123
3151
|
}
|
|
3124
3152
|
}, e.prototype.bumpSpace = function() {
|
|
3125
|
-
for (; !this.isEOF() &&
|
|
3153
|
+
for (; !this.isEOF() && Ft(this.char()); )
|
|
3126
3154
|
this.bump();
|
|
3127
3155
|
}, e.prototype.peek = function() {
|
|
3128
3156
|
if (this.isEOF())
|
|
@@ -3132,47 +3160,47 @@ var En = (
|
|
|
3132
3160
|
}, e;
|
|
3133
3161
|
}()
|
|
3134
3162
|
);
|
|
3135
|
-
function
|
|
3163
|
+
function ze(e) {
|
|
3136
3164
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3137
3165
|
}
|
|
3138
|
-
function
|
|
3139
|
-
return
|
|
3166
|
+
function Hn(e) {
|
|
3167
|
+
return ze(e) || e === 47;
|
|
3140
3168
|
}
|
|
3141
|
-
function
|
|
3169
|
+
function Sn(e) {
|
|
3142
3170
|
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;
|
|
3143
3171
|
}
|
|
3144
|
-
function
|
|
3172
|
+
function Ft(e) {
|
|
3145
3173
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3146
3174
|
}
|
|
3147
|
-
function
|
|
3175
|
+
function wn(e) {
|
|
3148
3176
|
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;
|
|
3149
3177
|
}
|
|
3150
|
-
function
|
|
3178
|
+
function je(e) {
|
|
3151
3179
|
e.forEach(function(t) {
|
|
3152
|
-
if (delete t.location,
|
|
3180
|
+
if (delete t.location, Lt(t) || It(t))
|
|
3153
3181
|
for (var r in t.options)
|
|
3154
|
-
delete t.options[r].location,
|
|
3182
|
+
delete t.options[r].location, je(t.options[r].value);
|
|
3155
3183
|
else
|
|
3156
|
-
|
|
3184
|
+
Pt(t) && Mt(t.style) || (Ot(t) || Ct(t)) && Ue(t.style) ? delete t.style.location : Nt(t) && je(t.children);
|
|
3157
3185
|
});
|
|
3158
3186
|
}
|
|
3159
|
-
function
|
|
3160
|
-
t === void 0 && (t = {}), t =
|
|
3161
|
-
var r = new
|
|
3187
|
+
function An(e, t) {
|
|
3188
|
+
t === void 0 && (t = {}), t = ye({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3189
|
+
var r = new Tn(e, t).parse();
|
|
3162
3190
|
if (r.err) {
|
|
3163
|
-
var n = SyntaxError(
|
|
3191
|
+
var n = SyntaxError(g[r.err.kind]);
|
|
3164
3192
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3165
3193
|
}
|
|
3166
|
-
return t?.captureLocation ||
|
|
3194
|
+
return t?.captureLocation || je(r.val), r.val;
|
|
3167
3195
|
}
|
|
3168
|
-
var
|
|
3196
|
+
var j;
|
|
3169
3197
|
(function(e) {
|
|
3170
3198
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3171
|
-
})(
|
|
3172
|
-
var
|
|
3199
|
+
})(j || (j = {}));
|
|
3200
|
+
var Se = (
|
|
3173
3201
|
/** @class */
|
|
3174
3202
|
function(e) {
|
|
3175
|
-
|
|
3203
|
+
He(t, e);
|
|
3176
3204
|
function t(r, n, i) {
|
|
3177
3205
|
var o = e.call(this, r) || this;
|
|
3178
3206
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3184,150 +3212,150 @@ var He = (
|
|
|
3184
3212
|
), at = (
|
|
3185
3213
|
/** @class */
|
|
3186
3214
|
function(e) {
|
|
3187
|
-
|
|
3215
|
+
He(t, e);
|
|
3188
3216
|
function t(r, n, i, o) {
|
|
3189
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3217
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), j.INVALID_VALUE, o) || this;
|
|
3190
3218
|
}
|
|
3191
3219
|
return t;
|
|
3192
|
-
}(
|
|
3193
|
-
),
|
|
3220
|
+
}(Se)
|
|
3221
|
+
), Bn = (
|
|
3194
3222
|
/** @class */
|
|
3195
3223
|
function(e) {
|
|
3196
|
-
|
|
3224
|
+
He(t, e);
|
|
3197
3225
|
function t(r, n, i) {
|
|
3198
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3226
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), j.INVALID_VALUE, i) || this;
|
|
3199
3227
|
}
|
|
3200
3228
|
return t;
|
|
3201
|
-
}(
|
|
3202
|
-
),
|
|
3229
|
+
}(Se)
|
|
3230
|
+
), Pn = (
|
|
3203
3231
|
/** @class */
|
|
3204
3232
|
function(e) {
|
|
3205
|
-
|
|
3233
|
+
He(t, e);
|
|
3206
3234
|
function t(r, n) {
|
|
3207
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3235
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), j.MISSING_VALUE, n) || this;
|
|
3208
3236
|
}
|
|
3209
3237
|
return t;
|
|
3210
|
-
}(
|
|
3238
|
+
}(Se)
|
|
3211
3239
|
), H;
|
|
3212
3240
|
(function(e) {
|
|
3213
3241
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3214
3242
|
})(H || (H = {}));
|
|
3215
|
-
function
|
|
3243
|
+
function On(e) {
|
|
3216
3244
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3217
3245
|
var n = t[t.length - 1];
|
|
3218
3246
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3219
3247
|
}, []);
|
|
3220
3248
|
}
|
|
3221
|
-
function
|
|
3249
|
+
function Cn(e) {
|
|
3222
3250
|
return typeof e == "function";
|
|
3223
3251
|
}
|
|
3224
|
-
function
|
|
3225
|
-
if (e.length === 1 &&
|
|
3252
|
+
function be(e, t, r, n, i, o, s) {
|
|
3253
|
+
if (e.length === 1 && et(e[0]))
|
|
3226
3254
|
return [
|
|
3227
3255
|
{
|
|
3228
3256
|
type: H.literal,
|
|
3229
3257
|
value: e[0].value
|
|
3230
3258
|
}
|
|
3231
3259
|
];
|
|
3232
|
-
for (var
|
|
3260
|
+
for (var a = [], h = 0, u = e; h < u.length; h++) {
|
|
3233
3261
|
var l = u[h];
|
|
3234
|
-
if (
|
|
3235
|
-
|
|
3262
|
+
if (et(l)) {
|
|
3263
|
+
a.push({
|
|
3236
3264
|
type: H.literal,
|
|
3237
3265
|
value: l.value
|
|
3238
3266
|
});
|
|
3239
3267
|
continue;
|
|
3240
3268
|
}
|
|
3241
|
-
if (
|
|
3242
|
-
typeof o == "number" &&
|
|
3269
|
+
if (Qr(l)) {
|
|
3270
|
+
typeof o == "number" && a.push({
|
|
3243
3271
|
type: H.literal,
|
|
3244
3272
|
value: r.getNumberFormat(t).format(o)
|
|
3245
3273
|
});
|
|
3246
3274
|
continue;
|
|
3247
3275
|
}
|
|
3248
|
-
var
|
|
3249
|
-
if (!(i &&
|
|
3250
|
-
throw new
|
|
3251
|
-
var
|
|
3252
|
-
if (
|
|
3253
|
-
(!
|
|
3254
|
-
type: typeof
|
|
3255
|
-
value:
|
|
3276
|
+
var c = l.value;
|
|
3277
|
+
if (!(i && c in i))
|
|
3278
|
+
throw new Pn(c, s);
|
|
3279
|
+
var f = i[c];
|
|
3280
|
+
if (Yr(l)) {
|
|
3281
|
+
(!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
|
|
3282
|
+
type: typeof f == "string" ? H.literal : H.object,
|
|
3283
|
+
value: f
|
|
3256
3284
|
});
|
|
3257
3285
|
continue;
|
|
3258
3286
|
}
|
|
3259
|
-
if (
|
|
3260
|
-
var
|
|
3261
|
-
|
|
3287
|
+
if (Ot(l)) {
|
|
3288
|
+
var p = typeof l.style == "string" ? n.date[l.style] : Ue(l.style) ? l.style.parsedOptions : void 0;
|
|
3289
|
+
a.push({
|
|
3262
3290
|
type: H.literal,
|
|
3263
|
-
value: r.getDateTimeFormat(t,
|
|
3291
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3264
3292
|
});
|
|
3265
3293
|
continue;
|
|
3266
3294
|
}
|
|
3267
|
-
if (
|
|
3268
|
-
var
|
|
3269
|
-
|
|
3295
|
+
if (Ct(l)) {
|
|
3296
|
+
var p = typeof l.style == "string" ? n.time[l.style] : Ue(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3297
|
+
a.push({
|
|
3270
3298
|
type: H.literal,
|
|
3271
|
-
value: r.getDateTimeFormat(t,
|
|
3299
|
+
value: r.getDateTimeFormat(t, p).format(f)
|
|
3272
3300
|
});
|
|
3273
3301
|
continue;
|
|
3274
3302
|
}
|
|
3275
|
-
if (
|
|
3276
|
-
var
|
|
3277
|
-
|
|
3303
|
+
if (Pt(l)) {
|
|
3304
|
+
var p = typeof l.style == "string" ? n.number[l.style] : Mt(l.style) ? l.style.parsedOptions : void 0;
|
|
3305
|
+
p && p.scale && (f = f * (p.scale || 1)), a.push({
|
|
3278
3306
|
type: H.literal,
|
|
3279
|
-
value: r.getNumberFormat(t,
|
|
3307
|
+
value: r.getNumberFormat(t, p).format(f)
|
|
3280
3308
|
});
|
|
3281
3309
|
continue;
|
|
3282
3310
|
}
|
|
3283
|
-
if (
|
|
3284
|
-
var
|
|
3285
|
-
if (!
|
|
3286
|
-
throw new
|
|
3287
|
-
var x =
|
|
3288
|
-
return
|
|
3311
|
+
if (Nt(l)) {
|
|
3312
|
+
var b = l.children, E = l.value, T = i[E];
|
|
3313
|
+
if (!Cn(T))
|
|
3314
|
+
throw new Bn(E, "function", s);
|
|
3315
|
+
var x = be(b, t, r, n, i, o), d = T(x.map(function(w) {
|
|
3316
|
+
return w.value;
|
|
3289
3317
|
}));
|
|
3290
|
-
Array.isArray(
|
|
3318
|
+
Array.isArray(d) || (d = [d]), a.push.apply(a, d.map(function(w) {
|
|
3291
3319
|
return {
|
|
3292
|
-
type: typeof
|
|
3293
|
-
value:
|
|
3320
|
+
type: typeof w == "string" ? H.literal : H.object,
|
|
3321
|
+
value: w
|
|
3294
3322
|
};
|
|
3295
3323
|
}));
|
|
3296
3324
|
}
|
|
3297
|
-
if (
|
|
3298
|
-
var
|
|
3299
|
-
if (!
|
|
3300
|
-
throw new at(l.value,
|
|
3301
|
-
|
|
3325
|
+
if (Lt(l)) {
|
|
3326
|
+
var m = l.options[f] || l.options.other;
|
|
3327
|
+
if (!m)
|
|
3328
|
+
throw new at(l.value, f, Object.keys(l.options), s);
|
|
3329
|
+
a.push.apply(a, be(m.value, t, r, n, i));
|
|
3302
3330
|
continue;
|
|
3303
3331
|
}
|
|
3304
3332
|
if (It(l)) {
|
|
3305
|
-
var
|
|
3306
|
-
if (!
|
|
3333
|
+
var m = l.options["=".concat(f)];
|
|
3334
|
+
if (!m) {
|
|
3307
3335
|
if (!Intl.PluralRules)
|
|
3308
|
-
throw new
|
|
3336
|
+
throw new Se(`Intl.PluralRules is not available in this environment.
|
|
3309
3337
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3310
|
-
`,
|
|
3311
|
-
var
|
|
3312
|
-
|
|
3338
|
+
`, j.MISSING_INTL_API, s);
|
|
3339
|
+
var S = r.getPluralRules(t, { type: l.pluralType }).select(f - (l.offset || 0));
|
|
3340
|
+
m = l.options[S] || l.options.other;
|
|
3313
3341
|
}
|
|
3314
|
-
if (!
|
|
3315
|
-
throw new at(l.value,
|
|
3316
|
-
|
|
3342
|
+
if (!m)
|
|
3343
|
+
throw new at(l.value, f, Object.keys(l.options), s);
|
|
3344
|
+
a.push.apply(a, be(m.value, t, r, n, i, f - (l.offset || 0)));
|
|
3317
3345
|
continue;
|
|
3318
3346
|
}
|
|
3319
3347
|
}
|
|
3320
|
-
return
|
|
3348
|
+
return On(a);
|
|
3321
3349
|
}
|
|
3322
|
-
function
|
|
3323
|
-
return t ?
|
|
3324
|
-
return r[n] =
|
|
3350
|
+
function Ln(e, t) {
|
|
3351
|
+
return t ? A(A(A({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3352
|
+
return r[n] = A(A({}, e[n]), t[n] || {}), r;
|
|
3325
3353
|
}, {})) : e;
|
|
3326
3354
|
}
|
|
3327
|
-
function
|
|
3355
|
+
function In(e, t) {
|
|
3328
3356
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3329
|
-
return r[n] =
|
|
3330
|
-
},
|
|
3357
|
+
return r[n] = Ln(e[n], t[n]), r;
|
|
3358
|
+
}, A({}, e)) : e;
|
|
3331
3359
|
}
|
|
3332
3360
|
function Ie(e) {
|
|
3333
3361
|
return {
|
|
@@ -3343,39 +3371,39 @@ function Ie(e) {
|
|
|
3343
3371
|
}
|
|
3344
3372
|
};
|
|
3345
3373
|
}
|
|
3346
|
-
function
|
|
3374
|
+
function Nn(e) {
|
|
3347
3375
|
return e === void 0 && (e = {
|
|
3348
3376
|
number: {},
|
|
3349
3377
|
dateTime: {},
|
|
3350
3378
|
pluralRules: {}
|
|
3351
3379
|
}), {
|
|
3352
|
-
getNumberFormat:
|
|
3380
|
+
getNumberFormat: Oe(function() {
|
|
3353
3381
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3354
3382
|
r[n] = arguments[n];
|
|
3355
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3383
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3356
3384
|
}, {
|
|
3357
3385
|
cache: Ie(e.number),
|
|
3358
|
-
strategy:
|
|
3386
|
+
strategy: Ce.variadic
|
|
3359
3387
|
}),
|
|
3360
|
-
getDateTimeFormat:
|
|
3388
|
+
getDateTimeFormat: Oe(function() {
|
|
3361
3389
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3362
3390
|
r[n] = arguments[n];
|
|
3363
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3391
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3364
3392
|
}, {
|
|
3365
3393
|
cache: Ie(e.dateTime),
|
|
3366
|
-
strategy:
|
|
3394
|
+
strategy: Ce.variadic
|
|
3367
3395
|
}),
|
|
3368
|
-
getPluralRules:
|
|
3396
|
+
getPluralRules: Oe(function() {
|
|
3369
3397
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3370
3398
|
r[n] = arguments[n];
|
|
3371
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3399
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3372
3400
|
}, {
|
|
3373
3401
|
cache: Ie(e.pluralRules),
|
|
3374
|
-
strategy:
|
|
3402
|
+
strategy: Ce.variadic
|
|
3375
3403
|
})
|
|
3376
3404
|
};
|
|
3377
3405
|
}
|
|
3378
|
-
var
|
|
3406
|
+
var zt = (
|
|
3379
3407
|
/** @class */
|
|
3380
3408
|
function() {
|
|
3381
3409
|
function e(t, r, n, i) {
|
|
@@ -3389,12 +3417,12 @@ var Ft = (
|
|
|
3389
3417
|
var u = o.formatToParts(h);
|
|
3390
3418
|
if (u.length === 1)
|
|
3391
3419
|
return u[0].value;
|
|
3392
|
-
var l = u.reduce(function(
|
|
3393
|
-
return !
|
|
3420
|
+
var l = u.reduce(function(c, f) {
|
|
3421
|
+
return !c.length || f.type !== H.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
|
|
3394
3422
|
}, []);
|
|
3395
3423
|
return l.length <= 1 ? l[0] || "" : l;
|
|
3396
3424
|
}, this.formatToParts = function(h) {
|
|
3397
|
-
return
|
|
3425
|
+
return be(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3398
3426
|
}, this.resolvedOptions = function() {
|
|
3399
3427
|
var h;
|
|
3400
3428
|
return {
|
|
@@ -3405,15 +3433,15 @@ var Ft = (
|
|
|
3405
3433
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3406
3434
|
if (this.message = t, !e.__parse)
|
|
3407
3435
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3408
|
-
var
|
|
3409
|
-
|
|
3410
|
-
var
|
|
3411
|
-
this.ast = e.__parse(t,
|
|
3436
|
+
var s = i || {};
|
|
3437
|
+
s.formatters;
|
|
3438
|
+
var a = zr(s, ["formatters"]);
|
|
3439
|
+
this.ast = e.__parse(t, A(A({}, a), { locale: this.resolvedLocale }));
|
|
3412
3440
|
} else
|
|
3413
3441
|
this.ast = t;
|
|
3414
3442
|
if (!Array.isArray(this.ast))
|
|
3415
3443
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3416
|
-
this.formats =
|
|
3444
|
+
this.formats = In(e.formats, n), this.formatters = i && i.formatters || Nn(this.formatterCache);
|
|
3417
3445
|
}
|
|
3418
3446
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3419
3447
|
get: function() {
|
|
@@ -3426,7 +3454,7 @@ var Ft = (
|
|
|
3426
3454
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3427
3455
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3428
3456
|
}
|
|
3429
|
-
}, e.__parse =
|
|
3457
|
+
}, e.__parse = An, e.formats = {
|
|
3430
3458
|
number: {
|
|
3431
3459
|
integer: {
|
|
3432
3460
|
maximumFractionDigits: 0
|
|
@@ -3487,7 +3515,7 @@ var Ft = (
|
|
|
3487
3515
|
}, e;
|
|
3488
3516
|
}()
|
|
3489
3517
|
);
|
|
3490
|
-
function
|
|
3518
|
+
function Mn(e, t) {
|
|
3491
3519
|
if (t == null)
|
|
3492
3520
|
return;
|
|
3493
3521
|
if (t in e)
|
|
@@ -3508,101 +3536,101 @@ function In(e, t) {
|
|
|
3508
3536
|
n = void 0;
|
|
3509
3537
|
return n;
|
|
3510
3538
|
}
|
|
3511
|
-
const
|
|
3539
|
+
const C = {}, Rn = (e, t, r) => r && (t in C || (C[t] = {}), e in C[t] || (C[t][e] = r), r), jt = (e, t) => {
|
|
3512
3540
|
if (t == null)
|
|
3513
3541
|
return;
|
|
3514
|
-
if (t in
|
|
3515
|
-
return
|
|
3516
|
-
const r =
|
|
3542
|
+
if (t in C && e in C[t])
|
|
3543
|
+
return C[t][e];
|
|
3544
|
+
const r = ie(t);
|
|
3517
3545
|
for (let n = 0; n < r.length; n++) {
|
|
3518
|
-
const i = r[n], o =
|
|
3546
|
+
const i = r[n], o = Dn(i, e);
|
|
3519
3547
|
if (o)
|
|
3520
|
-
return
|
|
3548
|
+
return Rn(e, t, o);
|
|
3521
3549
|
}
|
|
3522
3550
|
};
|
|
3523
3551
|
let Xe;
|
|
3524
|
-
const
|
|
3525
|
-
function
|
|
3552
|
+
const ne = Te({});
|
|
3553
|
+
function $n(e) {
|
|
3526
3554
|
return Xe[e] || null;
|
|
3527
3555
|
}
|
|
3528
|
-
function
|
|
3556
|
+
function Vt(e) {
|
|
3529
3557
|
return e in Xe;
|
|
3530
3558
|
}
|
|
3531
|
-
function
|
|
3532
|
-
if (!
|
|
3559
|
+
function Dn(e, t) {
|
|
3560
|
+
if (!Vt(e))
|
|
3533
3561
|
return null;
|
|
3534
|
-
const r =
|
|
3535
|
-
return
|
|
3562
|
+
const r = $n(e);
|
|
3563
|
+
return Mn(r, t);
|
|
3536
3564
|
}
|
|
3537
|
-
function
|
|
3565
|
+
function Un(e) {
|
|
3538
3566
|
if (e == null)
|
|
3539
3567
|
return;
|
|
3540
|
-
const t =
|
|
3568
|
+
const t = ie(e);
|
|
3541
3569
|
for (let r = 0; r < t.length; r++) {
|
|
3542
3570
|
const n = t[r];
|
|
3543
|
-
if (
|
|
3571
|
+
if (Vt(n))
|
|
3544
3572
|
return n;
|
|
3545
3573
|
}
|
|
3546
3574
|
}
|
|
3547
|
-
function
|
|
3548
|
-
delete
|
|
3575
|
+
function Wt(e, ...t) {
|
|
3576
|
+
delete C[e], ne.update((r) => (r[e] = Fr.all([r[e] || {}, ...t]), r));
|
|
3549
3577
|
}
|
|
3550
3578
|
X(
|
|
3551
|
-
[
|
|
3579
|
+
[ne],
|
|
3552
3580
|
([e]) => Object.keys(e)
|
|
3553
3581
|
);
|
|
3554
|
-
|
|
3555
|
-
const
|
|
3556
|
-
function
|
|
3557
|
-
|
|
3582
|
+
ne.subscribe((e) => Xe = e);
|
|
3583
|
+
const ge = {};
|
|
3584
|
+
function kn(e, t) {
|
|
3585
|
+
ge[e].delete(t), ge[e].size === 0 && delete ge[e];
|
|
3558
3586
|
}
|
|
3559
3587
|
function Xt(e) {
|
|
3560
|
-
return
|
|
3588
|
+
return ge[e];
|
|
3561
3589
|
}
|
|
3562
|
-
function
|
|
3563
|
-
return
|
|
3590
|
+
function Gn(e) {
|
|
3591
|
+
return ie(e).map((t) => {
|
|
3564
3592
|
const r = Xt(t);
|
|
3565
3593
|
return [t, r ? [...r] : []];
|
|
3566
3594
|
}).filter(([, t]) => t.length > 0);
|
|
3567
3595
|
}
|
|
3568
|
-
function
|
|
3569
|
-
return e == null ? !1 :
|
|
3596
|
+
function ve(e) {
|
|
3597
|
+
return e == null ? !1 : ie(e).some(
|
|
3570
3598
|
(t) => {
|
|
3571
3599
|
var r;
|
|
3572
3600
|
return (r = Xt(t)) == null ? void 0 : r.size;
|
|
3573
3601
|
}
|
|
3574
3602
|
);
|
|
3575
3603
|
}
|
|
3576
|
-
function
|
|
3604
|
+
function Fn(e, t) {
|
|
3577
3605
|
return Promise.all(
|
|
3578
|
-
t.map((n) => (
|
|
3579
|
-
).then((n) =>
|
|
3580
|
-
}
|
|
3581
|
-
const
|
|
3582
|
-
function
|
|
3583
|
-
if (!
|
|
3584
|
-
return e in
|
|
3585
|
-
const t =
|
|
3586
|
-
return
|
|
3606
|
+
t.map((n) => (kn(e, n), n().then((i) => i.default || i)))
|
|
3607
|
+
).then((n) => Wt(e, ...n));
|
|
3608
|
+
}
|
|
3609
|
+
const J = {};
|
|
3610
|
+
function qt(e) {
|
|
3611
|
+
if (!ve(e))
|
|
3612
|
+
return e in J ? J[e] : Promise.resolve();
|
|
3613
|
+
const t = Gn(e);
|
|
3614
|
+
return J[e] = Promise.all(
|
|
3587
3615
|
t.map(
|
|
3588
|
-
([r, n]) =>
|
|
3616
|
+
([r, n]) => Fn(r, n)
|
|
3589
3617
|
)
|
|
3590
3618
|
).then(() => {
|
|
3591
|
-
if (
|
|
3592
|
-
return
|
|
3593
|
-
delete
|
|
3594
|
-
}),
|
|
3619
|
+
if (ve(e))
|
|
3620
|
+
return qt(e);
|
|
3621
|
+
delete J[e];
|
|
3622
|
+
}), J[e];
|
|
3595
3623
|
}
|
|
3596
|
-
var
|
|
3624
|
+
var ut = Object.getOwnPropertySymbols, zn = Object.prototype.hasOwnProperty, jn = Object.prototype.propertyIsEnumerable, Vn = (e, t) => {
|
|
3597
3625
|
var r = {};
|
|
3598
3626
|
for (var n in e)
|
|
3599
|
-
|
|
3600
|
-
if (e != null &&
|
|
3601
|
-
for (var n of
|
|
3602
|
-
t.indexOf(n) < 0 &&
|
|
3627
|
+
zn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3628
|
+
if (e != null && ut)
|
|
3629
|
+
for (var n of ut(e))
|
|
3630
|
+
t.indexOf(n) < 0 && jn.call(e, n) && (r[n] = e[n]);
|
|
3603
3631
|
return r;
|
|
3604
3632
|
};
|
|
3605
|
-
const
|
|
3633
|
+
const Wn = {
|
|
3606
3634
|
number: {
|
|
3607
3635
|
scientific: { notation: "scientific" },
|
|
3608
3636
|
engineering: { notation: "engineering" },
|
|
@@ -3632,81 +3660,81 @@ const zn = {
|
|
|
3632
3660
|
}
|
|
3633
3661
|
}
|
|
3634
3662
|
};
|
|
3635
|
-
function
|
|
3663
|
+
function Xn({ locale: e, id: t }) {
|
|
3636
3664
|
console.warn(
|
|
3637
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3665
|
+
`[svelte-i18n] The message "${t}" was not found in "${ie(
|
|
3638
3666
|
e
|
|
3639
|
-
).join('", "')}".${
|
|
3667
|
+
).join('", "')}".${ve(I()) ? `
|
|
3640
3668
|
|
|
3641
3669
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3642
3670
|
);
|
|
3643
3671
|
}
|
|
3644
|
-
const
|
|
3672
|
+
const qn = {
|
|
3645
3673
|
fallbackLocale: null,
|
|
3646
3674
|
loadingDelay: 200,
|
|
3647
|
-
formats:
|
|
3675
|
+
formats: Wn,
|
|
3648
3676
|
warnOnMissingMessages: !0,
|
|
3649
3677
|
handleMissingMessage: void 0,
|
|
3650
3678
|
ignoreTag: !0
|
|
3651
|
-
},
|
|
3652
|
-
function
|
|
3653
|
-
return
|
|
3679
|
+
}, Y = qn;
|
|
3680
|
+
function V() {
|
|
3681
|
+
return Y;
|
|
3654
3682
|
}
|
|
3655
|
-
function
|
|
3656
|
-
const t = e, { formats: r } = t, n =
|
|
3683
|
+
function Jn(e) {
|
|
3684
|
+
const t = e, { formats: r } = t, n = Vn(t, ["formats"]);
|
|
3657
3685
|
let i = e.fallbackLocale;
|
|
3658
3686
|
if (e.initialLocale)
|
|
3659
3687
|
try {
|
|
3660
|
-
|
|
3688
|
+
zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3661
3689
|
} catch {
|
|
3662
3690
|
console.warn(
|
|
3663
3691
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3664
3692
|
);
|
|
3665
3693
|
}
|
|
3666
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3694
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = Xn : console.warn(
|
|
3667
3695
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3668
|
-
)), Object.assign(
|
|
3696
|
+
)), Object.assign(Y, n, { initialLocale: i }), r && ("number" in r && Object.assign(Y.formats.number, r.number), "date" in r && Object.assign(Y.formats.date, r.date), "time" in r && Object.assign(Y.formats.time, r.time)), M.set(i);
|
|
3669
3697
|
}
|
|
3670
|
-
const
|
|
3671
|
-
var
|
|
3698
|
+
const Ne = Te(!1);
|
|
3699
|
+
var Zn = Object.defineProperty, Yn = Object.defineProperties, Qn = Object.getOwnPropertyDescriptors, lt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, ei = Object.prototype.propertyIsEnumerable, ht = (e, t, r) => t in e ? Zn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ti = (e, t) => {
|
|
3672
3700
|
for (var r in t || (t = {}))
|
|
3673
|
-
|
|
3674
|
-
if (
|
|
3675
|
-
for (var r of
|
|
3676
|
-
|
|
3701
|
+
Kn.call(t, r) && ht(e, r, t[r]);
|
|
3702
|
+
if (lt)
|
|
3703
|
+
for (var r of lt(t))
|
|
3704
|
+
ei.call(t, r) && ht(e, r, t[r]);
|
|
3677
3705
|
return e;
|
|
3678
|
-
},
|
|
3679
|
-
let
|
|
3680
|
-
const
|
|
3681
|
-
function
|
|
3706
|
+
}, ri = (e, t) => Yn(e, Qn(t));
|
|
3707
|
+
let Ve;
|
|
3708
|
+
const _e = Te(null);
|
|
3709
|
+
function ct(e) {
|
|
3682
3710
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3683
3711
|
}
|
|
3684
|
-
function
|
|
3685
|
-
const r =
|
|
3686
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3712
|
+
function ie(e, t = V().fallbackLocale) {
|
|
3713
|
+
const r = ct(e);
|
|
3714
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ct(t)])] : r;
|
|
3687
3715
|
}
|
|
3688
3716
|
function I() {
|
|
3689
|
-
return
|
|
3717
|
+
return Ve ?? void 0;
|
|
3690
3718
|
}
|
|
3691
|
-
|
|
3692
|
-
|
|
3719
|
+
_e.subscribe((e) => {
|
|
3720
|
+
Ve = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3693
3721
|
});
|
|
3694
|
-
const
|
|
3695
|
-
if (e &&
|
|
3696
|
-
const { loadingDelay: t } =
|
|
3722
|
+
const ni = (e) => {
|
|
3723
|
+
if (e && Un(e) && ve(e)) {
|
|
3724
|
+
const { loadingDelay: t } = V();
|
|
3697
3725
|
let r;
|
|
3698
3726
|
return typeof window < "u" && I() != null && t ? r = window.setTimeout(
|
|
3699
|
-
() =>
|
|
3727
|
+
() => Ne.set(!0),
|
|
3700
3728
|
t
|
|
3701
|
-
) :
|
|
3702
|
-
|
|
3729
|
+
) : Ne.set(!0), qt(e).then(() => {
|
|
3730
|
+
_e.set(e);
|
|
3703
3731
|
}).finally(() => {
|
|
3704
|
-
clearTimeout(r),
|
|
3732
|
+
clearTimeout(r), Ne.set(!1);
|
|
3705
3733
|
});
|
|
3706
3734
|
}
|
|
3707
|
-
return
|
|
3708
|
-
},
|
|
3709
|
-
set:
|
|
3735
|
+
return _e.set(e);
|
|
3736
|
+
}, M = ri(ti({}, _e), {
|
|
3737
|
+
set: ni
|
|
3710
3738
|
}), we = (e) => {
|
|
3711
3739
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3712
3740
|
return (n) => {
|
|
@@ -3714,122 +3742,122 @@ const ei = (e) => {
|
|
|
3714
3742
|
return i in t ? t[i] : t[i] = e(n);
|
|
3715
3743
|
};
|
|
3716
3744
|
};
|
|
3717
|
-
var
|
|
3745
|
+
var ii = Object.defineProperty, Ee = Object.getOwnPropertySymbols, Jt = Object.prototype.hasOwnProperty, Zt = Object.prototype.propertyIsEnumerable, ft = (e, t, r) => t in e ? ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
3718
3746
|
for (var r in t || (t = {}))
|
|
3719
|
-
|
|
3747
|
+
Jt.call(t, r) && ft(e, r, t[r]);
|
|
3720
3748
|
if (Ee)
|
|
3721
3749
|
for (var r of Ee(t))
|
|
3722
|
-
|
|
3750
|
+
Zt.call(t, r) && ft(e, r, t[r]);
|
|
3723
3751
|
return e;
|
|
3724
|
-
},
|
|
3752
|
+
}, q = (e, t) => {
|
|
3725
3753
|
var r = {};
|
|
3726
3754
|
for (var n in e)
|
|
3727
|
-
|
|
3755
|
+
Jt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3728
3756
|
if (e != null && Ee)
|
|
3729
3757
|
for (var n of Ee(e))
|
|
3730
|
-
t.indexOf(n) < 0 &&
|
|
3758
|
+
t.indexOf(n) < 0 && Zt.call(e, n) && (r[n] = e[n]);
|
|
3731
3759
|
return r;
|
|
3732
3760
|
};
|
|
3733
|
-
const
|
|
3734
|
-
const { formats: r } =
|
|
3761
|
+
const te = (e, t) => {
|
|
3762
|
+
const { formats: r } = V();
|
|
3735
3763
|
if (e in r && t in r[e])
|
|
3736
3764
|
return r[e][t];
|
|
3737
3765
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3738
|
-
},
|
|
3766
|
+
}, oi = we(
|
|
3739
3767
|
(e) => {
|
|
3740
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3768
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3741
3769
|
if (r == null)
|
|
3742
3770
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3743
|
-
return n && (i =
|
|
3771
|
+
return n && (i = te("number", n)), new Intl.NumberFormat(r, i);
|
|
3744
3772
|
}
|
|
3745
|
-
),
|
|
3773
|
+
), si = we(
|
|
3746
3774
|
(e) => {
|
|
3747
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3775
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3748
3776
|
if (r == null)
|
|
3749
3777
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3750
|
-
return n ? i =
|
|
3778
|
+
return n ? i = te("date", n) : Object.keys(i).length === 0 && (i = te("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3751
3779
|
}
|
|
3752
|
-
),
|
|
3780
|
+
), ai = we(
|
|
3753
3781
|
(e) => {
|
|
3754
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3782
|
+
var t = e, { locale: r, format: n } = t, i = q(t, ["locale", "format"]);
|
|
3755
3783
|
if (r == null)
|
|
3756
3784
|
throw new Error(
|
|
3757
3785
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3758
3786
|
);
|
|
3759
|
-
return n ? i =
|
|
3787
|
+
return n ? i = te("time", n) : Object.keys(i).length === 0 && (i = te("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3760
3788
|
}
|
|
3761
|
-
),
|
|
3789
|
+
), ui = (e = {}) => {
|
|
3762
3790
|
var t = e, {
|
|
3763
3791
|
locale: r = I()
|
|
3764
|
-
} = t, n =
|
|
3792
|
+
} = t, n = q(t, [
|
|
3765
3793
|
"locale"
|
|
3766
3794
|
]);
|
|
3767
|
-
return
|
|
3768
|
-
},
|
|
3795
|
+
return oi(qe({ locale: r }, n));
|
|
3796
|
+
}, li = (e = {}) => {
|
|
3769
3797
|
var t = e, {
|
|
3770
3798
|
locale: r = I()
|
|
3771
|
-
} = t, n =
|
|
3799
|
+
} = t, n = q(t, [
|
|
3772
3800
|
"locale"
|
|
3773
3801
|
]);
|
|
3774
|
-
return
|
|
3775
|
-
},
|
|
3802
|
+
return si(qe({ locale: r }, n));
|
|
3803
|
+
}, hi = (e = {}) => {
|
|
3776
3804
|
var t = e, {
|
|
3777
3805
|
locale: r = I()
|
|
3778
|
-
} = t, n =
|
|
3806
|
+
} = t, n = q(t, [
|
|
3779
3807
|
"locale"
|
|
3780
3808
|
]);
|
|
3781
|
-
return
|
|
3782
|
-
},
|
|
3809
|
+
return ai(qe({ locale: r }, n));
|
|
3810
|
+
}, ci = we(
|
|
3783
3811
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3784
|
-
(e, t = I()) => new
|
|
3785
|
-
ignoreTag:
|
|
3812
|
+
(e, t = I()) => new zt(e, t, V().formats, {
|
|
3813
|
+
ignoreTag: V().ignoreTag
|
|
3786
3814
|
})
|
|
3787
|
-
),
|
|
3815
|
+
), fi = (e, t = {}) => {
|
|
3788
3816
|
var r, n, i, o;
|
|
3789
|
-
let
|
|
3790
|
-
typeof e == "object" && (
|
|
3817
|
+
let s = t;
|
|
3818
|
+
typeof e == "object" && (s = e, e = s.id);
|
|
3791
3819
|
const {
|
|
3792
|
-
values:
|
|
3820
|
+
values: a,
|
|
3793
3821
|
locale: h = I(),
|
|
3794
3822
|
default: u
|
|
3795
|
-
} =
|
|
3823
|
+
} = s;
|
|
3796
3824
|
if (h == null)
|
|
3797
3825
|
throw new Error(
|
|
3798
3826
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3799
3827
|
);
|
|
3800
|
-
let l =
|
|
3828
|
+
let l = jt(e, h);
|
|
3801
3829
|
if (!l)
|
|
3802
|
-
l = (o = (i = (n = (r =
|
|
3830
|
+
l = (o = (i = (n = (r = V()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3803
3831
|
else if (typeof l != "string")
|
|
3804
3832
|
return console.warn(
|
|
3805
3833
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3806
3834
|
), l;
|
|
3807
|
-
if (!
|
|
3835
|
+
if (!a)
|
|
3808
3836
|
return l;
|
|
3809
|
-
let
|
|
3837
|
+
let c = l;
|
|
3810
3838
|
try {
|
|
3811
|
-
|
|
3812
|
-
} catch (
|
|
3813
|
-
|
|
3839
|
+
c = ci(l, h).format(a);
|
|
3840
|
+
} catch (f) {
|
|
3841
|
+
f instanceof Error && console.warn(
|
|
3814
3842
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3815
|
-
|
|
3843
|
+
f.message
|
|
3816
3844
|
);
|
|
3817
3845
|
}
|
|
3818
|
-
return
|
|
3819
|
-
},
|
|
3820
|
-
X([
|
|
3821
|
-
X([
|
|
3822
|
-
X([
|
|
3823
|
-
X([
|
|
3824
|
-
function
|
|
3825
|
-
|
|
3826
|
-
}
|
|
3827
|
-
function
|
|
3828
|
-
|
|
3846
|
+
return c;
|
|
3847
|
+
}, mi = (e, t) => hi(t).format(e), di = (e, t) => li(t).format(e), pi = (e, t) => ui(t).format(e), bi = (e, t = I()) => jt(e, t), gi = X([M, ne], () => fi);
|
|
3848
|
+
X([M], () => mi);
|
|
3849
|
+
X([M], () => di);
|
|
3850
|
+
X([M], () => pi);
|
|
3851
|
+
X([M, ne], () => bi);
|
|
3852
|
+
function mt(e, t) {
|
|
3853
|
+
Wt(e, t);
|
|
3854
|
+
}
|
|
3855
|
+
function yi(e) {
|
|
3856
|
+
Jn({
|
|
3829
3857
|
fallbackLocale: "en"
|
|
3830
|
-
}),
|
|
3858
|
+
}), M.set(e);
|
|
3831
3859
|
}
|
|
3832
|
-
const
|
|
3860
|
+
const dt = {
|
|
3833
3861
|
en: {
|
|
3834
3862
|
errorGeneralTitle: "Error Occurred",
|
|
3835
3863
|
errorGeneralText: "Something went wrong",
|
|
@@ -3857,7 +3885,9 @@ const mt = {
|
|
|
3857
3885
|
DeclinedByMerchant: "We apologise, but transaction has been closed by merchant. Please contact Customer Support for further assistance.",
|
|
3858
3886
|
FraudSuspectedError: "We apologise, but we are unable to process your transaction at this time, please try later or contact Customer Support for further assistance. Error Code 22020",
|
|
3859
3887
|
OnlyOnePendingTransactionPerUserlsAllowed: "Only one pending transaction per user is allowed",
|
|
3860
|
-
TransactionFrequencyLimitReached: "Transaction frequency limit reached"
|
|
3888
|
+
TransactionFrequencyLimitReached: "Transaction frequency limit reached",
|
|
3889
|
+
NotMappedVendorError: "Your balance is insufficient or you may have reached your transaction limit. Please contact your Telecommunication service provider",
|
|
3890
|
+
LOW_BALANCE_OR_PAYEE_LIMIT_REACHED_OR_NOT_ALLOWED: "Your balance is insufficient or you may have reached your transaction limit. Please contact your Telecommunication service provider"
|
|
3861
3891
|
},
|
|
3862
3892
|
tr: {
|
|
3863
3893
|
errorGeneralTitle: "Hata oluştu",
|
|
@@ -3886,7 +3916,9 @@ const mt = {
|
|
|
3886
3916
|
DeclinedByMerchant: "Özür dileriz, ancak işlem satıcı tarafından kapatıldı. Daha fazla yardım için lütfen Müşteri Desteği ile iletişime geçin.",
|
|
3887
3917
|
FraudSuspectedError: "Üzgünüz, ancak işleminizi şu anda gerçekleştiremiyoruz. Lütfen daha sonra tekrar deneyin veya daha fazla yardım için Müşteri Desteği ile iletişime geçin. Hata Kodu 22020.",
|
|
3888
3918
|
OnlyOnePendingTransactionPerUserlsAllowed: "Devam eden bir talebiniz olduğu için șu anda yeni bir işlem başlatılamaz.",
|
|
3889
|
-
TransactionFrequencyLimitReached: "İşlem sıklığı limiti aşıldı"
|
|
3919
|
+
TransactionFrequencyLimitReached: "İşlem sıklığı limiti aşıldı",
|
|
3920
|
+
NotMappedVendorError: "Bakiyeniz yetersiz veya işlem limitinize ulaşmış olabilirsiniz. Lütfen Telekom servis sağlayıcınızla iletişime geçin",
|
|
3921
|
+
LOW_BALANCE_OR_PAYEE_LIMIT_REACHED_OR_NOT_ALLOWED: "Bakiyeniz yetersiz veya işlem limitinize ulaşmış olabilirsiniz. Lütfen Telekom servis sağlayıcınızla iletişime geçin"
|
|
3890
3922
|
},
|
|
3891
3923
|
fr: {
|
|
3892
3924
|
errorGeneralTitle: "Une erreur s’est produite",
|
|
@@ -3915,55 +3947,57 @@ const mt = {
|
|
|
3915
3947
|
DeclinedByMerchant: "Nous sommes désolés, mais la transaction a été clôturée par le marchand. Veuillez contacter le service client pour obtenir de l’aide.",
|
|
3916
3948
|
FraudSuspectedError: "Nous sommes désolés, mais nous ne pouvons pas traiter votre transaction pour le moment. Veuillez réessayer plus tard ou contacter le service client pour obtenir de l’aide. Code d’erreur 22020",
|
|
3917
3949
|
OnlyOnePendingTransactionPerUserlsAllowed: "Une seule transaction en attente par utilisateur est autorisée",
|
|
3918
|
-
TransactionFrequencyLimitReached: "Limite de fréquence des transactions atteinte"
|
|
3950
|
+
TransactionFrequencyLimitReached: "Limite de fréquence des transactions atteinte",
|
|
3951
|
+
NotMappedVendorError: "Votre solde est insuffisant ou vous avez peut-être atteint votre limite de transaction. Veuillez contacter votre fournisseur de services de télécommunication",
|
|
3952
|
+
LOW_BALANCE_OR_PAYEE_LIMIT_REACHED_OR_NOT_ALLOWED: "Votre solde est insuffisant ou vous avez peut-être atteint votre limite de transaction. Veuillez contacter votre fournisseur de services de télécommunication"
|
|
3919
3953
|
}
|
|
3920
3954
|
};
|
|
3921
|
-
function
|
|
3922
|
-
|
|
3955
|
+
function vi(e) {
|
|
3956
|
+
er(e, "svelte-m958fw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;background-color:transparent;padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 16px);line-height:125%;text-align:center}.CashierErrorText{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-typography-button, var(--emw--color-black, #000000));text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #F9C405)}.CashierErrorButton:hover{background:var(--emw--color-hover, #dbac03)}.CashierErrorButton:active{background:var(--emw--color-active, #fecd1c)}.CashierErrorContent ui-image img{width:300px}");
|
|
3923
3957
|
}
|
|
3924
|
-
const
|
|
3925
|
-
function
|
|
3958
|
+
const _i = (e) => ({}), pt = (e) => ({}), Ei = (e) => ({}), bt = (e) => ({}), xi = (e) => ({}), gt = (e) => ({}), Ti = (e) => ({}), yt = (e) => ({ class: "CashierErrorIcon" });
|
|
3959
|
+
function vt(e) {
|
|
3926
3960
|
let t, r;
|
|
3927
3961
|
return {
|
|
3928
3962
|
c() {
|
|
3929
|
-
t =
|
|
3930
|
-
e[0]}/error-general-icon.png`) ||
|
|
3963
|
+
t = L("ui-image"), Ye(t.src, r = `${/*assetsurl*/
|
|
3964
|
+
e[0]}/error-general-icon.png`) || ce(t, "src", r), ce(t, "width", "300px"), ce(t, "alt", "error");
|
|
3931
3965
|
},
|
|
3932
3966
|
m(n, i) {
|
|
3933
|
-
|
|
3967
|
+
W(n, t, i);
|
|
3934
3968
|
},
|
|
3935
3969
|
p(n, i) {
|
|
3936
3970
|
i & /*assetsurl*/
|
|
3937
|
-
1 && !
|
|
3938
|
-
n[0]}/error-general-icon.png`) &&
|
|
3971
|
+
1 && !Ye(t.src, r = `${/*assetsurl*/
|
|
3972
|
+
n[0]}/error-general-icon.png`) && ce(t, "src", r);
|
|
3939
3973
|
},
|
|
3940
3974
|
d(n) {
|
|
3941
|
-
n &&
|
|
3975
|
+
n && N(t);
|
|
3942
3976
|
}
|
|
3943
3977
|
};
|
|
3944
3978
|
}
|
|
3945
|
-
function
|
|
3979
|
+
function Hi(e) {
|
|
3946
3980
|
let t, r = (
|
|
3947
3981
|
/*assetsurl*/
|
|
3948
|
-
e[0] &&
|
|
3982
|
+
e[0] && vt(e)
|
|
3949
3983
|
);
|
|
3950
3984
|
return {
|
|
3951
3985
|
c() {
|
|
3952
|
-
r && r.c(), t =
|
|
3986
|
+
r && r.c(), t = nr();
|
|
3953
3987
|
},
|
|
3954
3988
|
m(n, i) {
|
|
3955
|
-
r && r.m(n, i),
|
|
3989
|
+
r && r.m(n, i), W(n, t, i);
|
|
3956
3990
|
},
|
|
3957
3991
|
p(n, i) {
|
|
3958
3992
|
/*assetsurl*/
|
|
3959
|
-
n[0] ? r ? r.p(n, i) : (r =
|
|
3993
|
+
n[0] ? r ? r.p(n, i) : (r = vt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3960
3994
|
},
|
|
3961
3995
|
d(n) {
|
|
3962
|
-
n &&
|
|
3996
|
+
n && N(t), r && r.d(n);
|
|
3963
3997
|
}
|
|
3964
3998
|
};
|
|
3965
3999
|
}
|
|
3966
|
-
function
|
|
4000
|
+
function Si(e) {
|
|
3967
4001
|
let t, r = (
|
|
3968
4002
|
/*$_*/
|
|
3969
4003
|
e[3](`${/*errorcode*/
|
|
@@ -3971,244 +4005,244 @@ function xi(e) {
|
|
|
3971
4005
|
), n;
|
|
3972
4006
|
return {
|
|
3973
4007
|
c() {
|
|
3974
|
-
t =
|
|
4008
|
+
t = L("span"), n = xe(r), G(t, "class", "CashierErrorText");
|
|
3975
4009
|
},
|
|
3976
4010
|
m(i, o) {
|
|
3977
|
-
|
|
4011
|
+
W(i, t, o), O(t, n);
|
|
3978
4012
|
},
|
|
3979
4013
|
p(i, o) {
|
|
3980
4014
|
o & /*$_, errorcode*/
|
|
3981
4015
|
10 && r !== (r = /*$_*/
|
|
3982
4016
|
i[3](`${/*errorcode*/
|
|
3983
|
-
i[1] || "errorGeneralText"}`) + "") &&
|
|
4017
|
+
i[1] || "errorGeneralText"}`) + "") && Ht(n, r);
|
|
3984
4018
|
},
|
|
3985
4019
|
d(i) {
|
|
3986
|
-
i &&
|
|
4020
|
+
i && N(t);
|
|
3987
4021
|
}
|
|
3988
4022
|
};
|
|
3989
4023
|
}
|
|
3990
|
-
function
|
|
4024
|
+
function wi(e) {
|
|
3991
4025
|
let t, r, n = (
|
|
3992
4026
|
/*$_*/
|
|
3993
4027
|
e[3]("errorGeneralButton") + ""
|
|
3994
|
-
), i, o,
|
|
4028
|
+
), i, o, s;
|
|
3995
4029
|
return {
|
|
3996
4030
|
c() {
|
|
3997
|
-
t =
|
|
4031
|
+
t = L("button"), r = L("span"), i = xe(n), G(t, "class", "CashierErrorButton");
|
|
3998
4032
|
},
|
|
3999
|
-
m(
|
|
4000
|
-
|
|
4033
|
+
m(a, h) {
|
|
4034
|
+
W(a, t, h), O(t, r), O(r, i), o || (s = ir(
|
|
4001
4035
|
t,
|
|
4002
4036
|
"click",
|
|
4003
4037
|
/*close*/
|
|
4004
4038
|
e[4]
|
|
4005
4039
|
), o = !0);
|
|
4006
4040
|
},
|
|
4007
|
-
p(
|
|
4041
|
+
p(a, h) {
|
|
4008
4042
|
h & /*$_*/
|
|
4009
4043
|
8 && n !== (n = /*$_*/
|
|
4010
|
-
|
|
4044
|
+
a[3]("errorGeneralButton") + "") && Ht(i, n);
|
|
4011
4045
|
},
|
|
4012
|
-
d(
|
|
4013
|
-
|
|
4046
|
+
d(a) {
|
|
4047
|
+
a && N(t), o = !1, s();
|
|
4014
4048
|
}
|
|
4015
4049
|
};
|
|
4016
4050
|
}
|
|
4017
|
-
function
|
|
4018
|
-
let t, r, n, i, o,
|
|
4019
|
-
const
|
|
4051
|
+
function Ai(e) {
|
|
4052
|
+
let t, r, n, i, o, s;
|
|
4053
|
+
const a = (
|
|
4020
4054
|
/*#slots*/
|
|
4021
4055
|
e[11].icon
|
|
4022
4056
|
), h = ae(
|
|
4023
|
-
|
|
4057
|
+
a,
|
|
4024
4058
|
e,
|
|
4025
4059
|
/*$$scope*/
|
|
4026
4060
|
e[10],
|
|
4027
|
-
|
|
4028
|
-
), u = h ||
|
|
4061
|
+
yt
|
|
4062
|
+
), u = h || Hi(e), l = (
|
|
4029
4063
|
/*#slots*/
|
|
4030
4064
|
e[11].title
|
|
4031
|
-
),
|
|
4065
|
+
), c = ae(
|
|
4032
4066
|
l,
|
|
4033
4067
|
e,
|
|
4034
4068
|
/*$$scope*/
|
|
4035
4069
|
e[10],
|
|
4036
|
-
|
|
4037
|
-
),
|
|
4070
|
+
gt
|
|
4071
|
+
), f = (
|
|
4038
4072
|
/*#slots*/
|
|
4039
4073
|
e[11].text
|
|
4040
|
-
),
|
|
4041
|
-
|
|
4074
|
+
), p = ae(
|
|
4075
|
+
f,
|
|
4042
4076
|
e,
|
|
4043
4077
|
/*$$scope*/
|
|
4044
4078
|
e[10],
|
|
4045
|
-
|
|
4046
|
-
),
|
|
4079
|
+
bt
|
|
4080
|
+
), b = p || Si(e), E = (
|
|
4047
4081
|
/*#slots*/
|
|
4048
4082
|
e[11].button
|
|
4049
4083
|
), T = ae(
|
|
4050
|
-
|
|
4084
|
+
E,
|
|
4051
4085
|
e,
|
|
4052
4086
|
/*$$scope*/
|
|
4053
4087
|
e[10],
|
|
4054
|
-
|
|
4055
|
-
), x = T ||
|
|
4088
|
+
pt
|
|
4089
|
+
), x = T || wi(e);
|
|
4056
4090
|
return {
|
|
4057
4091
|
c() {
|
|
4058
|
-
t =
|
|
4092
|
+
t = L("div"), r = L("div"), u && u.c(), n = Ae(), c && c.c(), i = Ae(), b && b.c(), o = Ae(), x && x.c(), G(r, "class", "CashierErrorContent"), G(t, "class", "CashierError");
|
|
4059
4093
|
},
|
|
4060
|
-
m(
|
|
4061
|
-
|
|
4094
|
+
m(d, m) {
|
|
4095
|
+
W(d, t, m), O(t, r), u && u.m(r, null), O(r, n), c && c.m(r, null), O(r, i), b && b.m(r, null), O(r, o), x && x.m(r, null), e[12](t), s = !0;
|
|
4062
4096
|
},
|
|
4063
|
-
p(
|
|
4064
|
-
h ? h.p && (!
|
|
4065
|
-
1024) &&
|
|
4097
|
+
p(d, [m]) {
|
|
4098
|
+
h ? h.p && (!s || m & /*$$scope*/
|
|
4099
|
+
1024) && le(
|
|
4066
4100
|
h,
|
|
4067
|
-
|
|
4068
|
-
|
|
4101
|
+
a,
|
|
4102
|
+
d,
|
|
4069
4103
|
/*$$scope*/
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4104
|
+
d[10],
|
|
4105
|
+
s ? ue(
|
|
4106
|
+
a,
|
|
4073
4107
|
/*$$scope*/
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
) :
|
|
4108
|
+
d[10],
|
|
4109
|
+
m,
|
|
4110
|
+
Ti
|
|
4111
|
+
) : he(
|
|
4078
4112
|
/*$$scope*/
|
|
4079
|
-
|
|
4113
|
+
d[10]
|
|
4080
4114
|
),
|
|
4081
|
-
|
|
4082
|
-
) : u && u.p && (!
|
|
4083
|
-
1) && u.p(
|
|
4084
|
-
1024) &&
|
|
4085
|
-
f,
|
|
4086
|
-
l,
|
|
4115
|
+
yt
|
|
4116
|
+
) : u && u.p && (!s || m & /*assetsurl*/
|
|
4117
|
+
1) && u.p(d, s ? m : -1), c && c.p && (!s || m & /*$$scope*/
|
|
4118
|
+
1024) && le(
|
|
4087
4119
|
c,
|
|
4120
|
+
l,
|
|
4121
|
+
d,
|
|
4088
4122
|
/*$$scope*/
|
|
4089
|
-
|
|
4090
|
-
|
|
4123
|
+
d[10],
|
|
4124
|
+
s ? ue(
|
|
4091
4125
|
l,
|
|
4092
4126
|
/*$$scope*/
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
) :
|
|
4127
|
+
d[10],
|
|
4128
|
+
m,
|
|
4129
|
+
xi
|
|
4130
|
+
) : he(
|
|
4097
4131
|
/*$$scope*/
|
|
4098
|
-
|
|
4132
|
+
d[10]
|
|
4099
4133
|
),
|
|
4100
|
-
|
|
4101
|
-
),
|
|
4102
|
-
1024) &&
|
|
4134
|
+
gt
|
|
4135
|
+
), p ? p.p && (!s || m & /*$$scope*/
|
|
4136
|
+
1024) && le(
|
|
4137
|
+
p,
|
|
4138
|
+
f,
|
|
4103
4139
|
d,
|
|
4104
|
-
m,
|
|
4105
|
-
c,
|
|
4106
4140
|
/*$$scope*/
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4141
|
+
d[10],
|
|
4142
|
+
s ? ue(
|
|
4143
|
+
f,
|
|
4110
4144
|
/*$$scope*/
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
) :
|
|
4145
|
+
d[10],
|
|
4146
|
+
m,
|
|
4147
|
+
Ei
|
|
4148
|
+
) : he(
|
|
4115
4149
|
/*$$scope*/
|
|
4116
|
-
|
|
4150
|
+
d[10]
|
|
4117
4151
|
),
|
|
4118
|
-
|
|
4119
|
-
) :
|
|
4120
|
-
10) &&
|
|
4121
|
-
1024) &&
|
|
4152
|
+
bt
|
|
4153
|
+
) : b && b.p && (!s || m & /*$_, errorcode*/
|
|
4154
|
+
10) && b.p(d, s ? m : -1), T ? T.p && (!s || m & /*$$scope*/
|
|
4155
|
+
1024) && le(
|
|
4122
4156
|
T,
|
|
4123
|
-
|
|
4124
|
-
|
|
4157
|
+
E,
|
|
4158
|
+
d,
|
|
4125
4159
|
/*$$scope*/
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4160
|
+
d[10],
|
|
4161
|
+
s ? ue(
|
|
4162
|
+
E,
|
|
4129
4163
|
/*$$scope*/
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
) :
|
|
4164
|
+
d[10],
|
|
4165
|
+
m,
|
|
4166
|
+
_i
|
|
4167
|
+
) : he(
|
|
4134
4168
|
/*$$scope*/
|
|
4135
|
-
|
|
4169
|
+
d[10]
|
|
4136
4170
|
),
|
|
4137
|
-
|
|
4138
|
-
) : x && x.p && (!
|
|
4139
|
-
8) && x.p(
|
|
4171
|
+
pt
|
|
4172
|
+
) : x && x.p && (!s || m & /*$_*/
|
|
4173
|
+
8) && x.p(d, s ? m : -1);
|
|
4140
4174
|
},
|
|
4141
|
-
i(
|
|
4142
|
-
|
|
4175
|
+
i(d) {
|
|
4176
|
+
s || (Z(u, d), Z(c, d), Z(b, d), Z(x, d), s = !0);
|
|
4143
4177
|
},
|
|
4144
|
-
o(
|
|
4145
|
-
|
|
4178
|
+
o(d) {
|
|
4179
|
+
fe(u, d), fe(c, d), fe(b, d), fe(x, d), s = !1;
|
|
4146
4180
|
},
|
|
4147
|
-
d(
|
|
4148
|
-
|
|
4181
|
+
d(d) {
|
|
4182
|
+
d && N(t), u && u.d(d), c && c.d(d), b && b.d(d), x && x.d(d), e[12](null);
|
|
4149
4183
|
}
|
|
4150
4184
|
};
|
|
4151
4185
|
}
|
|
4152
|
-
function
|
|
4186
|
+
function Bi(e, t, r) {
|
|
4153
4187
|
let n;
|
|
4154
|
-
|
|
4155
|
-
let { $$slots: i = {}, $$scope: o } = t, { assetsurl:
|
|
4156
|
-
const
|
|
4157
|
-
|
|
4158
|
-
},
|
|
4159
|
-
fetch(
|
|
4160
|
-
Object.keys(
|
|
4161
|
-
|
|
4188
|
+
Kt(e, gi, (m) => r(3, n = m));
|
|
4189
|
+
let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: a = "en" } = t, { errorcode: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: c = "" } = t, { mbsource: f = "" } = t, p, b;
|
|
4190
|
+
const E = () => {
|
|
4191
|
+
yi(a);
|
|
4192
|
+
}, T = () => {
|
|
4193
|
+
fetch(c).then((S) => S.json()).then((S) => {
|
|
4194
|
+
Object.keys(S).forEach((w) => {
|
|
4195
|
+
mt(w, S[w]);
|
|
4162
4196
|
});
|
|
4163
|
-
}).catch((
|
|
4164
|
-
console.error(
|
|
4197
|
+
}).catch((S) => {
|
|
4198
|
+
console.error(S);
|
|
4165
4199
|
});
|
|
4166
4200
|
};
|
|
4167
|
-
Object.keys(
|
|
4168
|
-
|
|
4201
|
+
Object.keys(dt).forEach((m) => {
|
|
4202
|
+
mt(m, dt[m]);
|
|
4169
4203
|
});
|
|
4170
|
-
const
|
|
4204
|
+
const x = () => {
|
|
4171
4205
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4172
4206
|
};
|
|
4173
|
-
|
|
4207
|
+
ur(() => () => {
|
|
4174
4208
|
});
|
|
4175
|
-
function
|
|
4176
|
-
Me[
|
|
4177
|
-
|
|
4209
|
+
function d(m) {
|
|
4210
|
+
Me[m ? "unshift" : "push"](() => {
|
|
4211
|
+
p = m, r(2, p);
|
|
4178
4212
|
});
|
|
4179
4213
|
}
|
|
4180
|
-
return e.$$set = (
|
|
4181
|
-
"assetsurl" in
|
|
4214
|
+
return e.$$set = (m) => {
|
|
4215
|
+
"assetsurl" in m && r(0, s = m.assetsurl), "lang" in m && r(5, a = m.lang), "errorcode" in m && r(1, h = m.errorcode), "clientstyling" in m && r(6, u = m.clientstyling), "clientstylingurl" in m && r(7, l = m.clientstylingurl), "translationurl" in m && r(8, c = m.translationurl), "mbsource" in m && r(9, f = m.mbsource), "$$scope" in m && r(10, o = m.$$scope);
|
|
4182
4216
|
}, e.$$.update = () => {
|
|
4183
4217
|
e.$$.dirty & /*lang*/
|
|
4184
|
-
32 &&
|
|
4185
|
-
68 && u &&
|
|
4186
|
-
132 && l &&
|
|
4187
|
-
516 &&
|
|
4188
|
-
256 &&
|
|
4218
|
+
32 && a && E(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4219
|
+
68 && u && p && Er(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4220
|
+
132 && l && p && xr(p, l), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4221
|
+
516 && f && p && Tr(p, `${f}.Style`, b), e.$$.dirty & /*translationurl*/
|
|
4222
|
+
256 && c && T();
|
|
4189
4223
|
}, [
|
|
4190
|
-
|
|
4224
|
+
s,
|
|
4191
4225
|
h,
|
|
4192
|
-
|
|
4226
|
+
p,
|
|
4193
4227
|
n,
|
|
4194
|
-
|
|
4195
|
-
|
|
4228
|
+
x,
|
|
4229
|
+
a,
|
|
4196
4230
|
u,
|
|
4197
4231
|
l,
|
|
4232
|
+
c,
|
|
4198
4233
|
f,
|
|
4199
|
-
m,
|
|
4200
4234
|
o,
|
|
4201
4235
|
i,
|
|
4202
|
-
|
|
4236
|
+
d
|
|
4203
4237
|
];
|
|
4204
4238
|
}
|
|
4205
|
-
class
|
|
4239
|
+
class Pi extends vr {
|
|
4206
4240
|
constructor(t) {
|
|
4207
|
-
super(),
|
|
4241
|
+
super(), gr(
|
|
4208
4242
|
this,
|
|
4209
4243
|
t,
|
|
4210
|
-
|
|
4211
|
-
|
|
4244
|
+
Bi,
|
|
4245
|
+
Ai,
|
|
4212
4246
|
Et,
|
|
4213
4247
|
{
|
|
4214
4248
|
assetsurl: 0,
|
|
@@ -4219,53 +4253,53 @@ class Si extends yr {
|
|
|
4219
4253
|
translationurl: 8,
|
|
4220
4254
|
mbsource: 9
|
|
4221
4255
|
},
|
|
4222
|
-
|
|
4256
|
+
vi
|
|
4223
4257
|
);
|
|
4224
4258
|
}
|
|
4225
4259
|
get assetsurl() {
|
|
4226
4260
|
return this.$$.ctx[0];
|
|
4227
4261
|
}
|
|
4228
4262
|
set assetsurl(t) {
|
|
4229
|
-
this.$$set({ assetsurl: t }),
|
|
4263
|
+
this.$$set({ assetsurl: t }), B();
|
|
4230
4264
|
}
|
|
4231
4265
|
get lang() {
|
|
4232
4266
|
return this.$$.ctx[5];
|
|
4233
4267
|
}
|
|
4234
4268
|
set lang(t) {
|
|
4235
|
-
this.$$set({ lang: t }),
|
|
4269
|
+
this.$$set({ lang: t }), B();
|
|
4236
4270
|
}
|
|
4237
4271
|
get errorcode() {
|
|
4238
4272
|
return this.$$.ctx[1];
|
|
4239
4273
|
}
|
|
4240
4274
|
set errorcode(t) {
|
|
4241
|
-
this.$$set({ errorcode: t }),
|
|
4275
|
+
this.$$set({ errorcode: t }), B();
|
|
4242
4276
|
}
|
|
4243
4277
|
get clientstyling() {
|
|
4244
4278
|
return this.$$.ctx[6];
|
|
4245
4279
|
}
|
|
4246
4280
|
set clientstyling(t) {
|
|
4247
|
-
this.$$set({ clientstyling: t }),
|
|
4281
|
+
this.$$set({ clientstyling: t }), B();
|
|
4248
4282
|
}
|
|
4249
4283
|
get clientstylingurl() {
|
|
4250
4284
|
return this.$$.ctx[7];
|
|
4251
4285
|
}
|
|
4252
4286
|
set clientstylingurl(t) {
|
|
4253
|
-
this.$$set({ clientstylingurl: t }),
|
|
4287
|
+
this.$$set({ clientstylingurl: t }), B();
|
|
4254
4288
|
}
|
|
4255
4289
|
get translationurl() {
|
|
4256
4290
|
return this.$$.ctx[8];
|
|
4257
4291
|
}
|
|
4258
4292
|
set translationurl(t) {
|
|
4259
|
-
this.$$set({ translationurl: t }),
|
|
4293
|
+
this.$$set({ translationurl: t }), B();
|
|
4260
4294
|
}
|
|
4261
4295
|
get mbsource() {
|
|
4262
4296
|
return this.$$.ctx[9];
|
|
4263
4297
|
}
|
|
4264
4298
|
set mbsource(t) {
|
|
4265
|
-
this.$$set({ mbsource: t }),
|
|
4299
|
+
this.$$set({ mbsource: t }), B();
|
|
4266
4300
|
}
|
|
4267
4301
|
}
|
|
4268
|
-
|
|
4302
|
+
yr(Pi, { assetsurl: {}, lang: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4269
4303
|
export {
|
|
4270
|
-
|
|
4304
|
+
Pi as C
|
|
4271
4305
|
};
|