@everymatrix/cashier-receipt-page 1.76.13 → 1.76.14
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-BdTMuziH.cjs +18 -0
- package/components/{CashierError-BEf5oypu.js → CashierError-Bo3vS6cl.js} +844 -812
- package/components/{CashierError-DyEqnvZV.js → CashierError-DCJyzcqe.js} +861 -829
- package/components/{CashierReceiptPage-BBNh7Nia.js → CashierReceiptPage-A_pDp0Fb.js} +436 -485
- package/components/{CashierReceiptPage-DyKOEqtS.js → CashierReceiptPage-Bzut1oTm.js} +409 -458
- package/components/CashierReceiptPage-LU4dA5bB.cjs +3 -0
- package/components/{CashierSpinner-B-eLNQId.js → CashierSpinner-7i665NmW.js} +14 -14
- package/components/{CashierSpinner-C7r-qfs7.js → CashierSpinner-Dr1JxKNO.js} +14 -14
- package/components/{CashierSpinner-BzVJk0KY.cjs → CashierSpinner-VZeNa68z.cjs} +1 -1
- package/es2015/cashier-receipt-page.cjs +1 -1
- package/es2015/cashier-receipt-page.js +1 -1
- package/esnext/cashier-receipt-page.js +1 -1
- package/package.json +1 -1
- package/stencil/index-242ac81a-Bl2OSy8h.js +538 -0
- package/stencil/index-242ac81a-Czg480dJ.js +554 -0
- package/stencil/index-242ac81a-DDPF_SYN.cjs +1 -0
- package/stencil/{ui-image-2ff23cd5-BHGIWJop.cjs → ui-image-2ff23cd5-BU5r6gJa.cjs} +1 -1
- package/stencil/{ui-image-2ff23cd5-DCLQ0SIO.js → ui-image-2ff23cd5-CBX1vdMZ.js} +1 -1
- package/stencil/{ui-image-2ff23cd5-D0rXudCW.js → ui-image-2ff23cd5-DZZYCsK1.js} +1 -1
- package/stencil/{ui-image-DmRWEjrp.js → ui-image-BhXCYysO.js} +1 -1
- package/stencil/{ui-image-C0Jfm_O4.js → ui-image-CVwHW7a_.js} +1 -1
- package/stencil/{ui-image-EfKW3THf.cjs → ui-image-DrDalrqH.cjs} +1 -1
- package/stencil/{ui-image_2-CLk629jW.cjs → ui-image_2-Bsl4RJfi.cjs} +1 -1
- package/stencil/{ui-image_2-VgK3B8gQ.js → ui-image_2-ID_1Oi3k.js} +2 -2
- package/stencil/{ui-image_2-B21W_djK.js → ui-image_2-exO7RXKL.js} +2 -2
- package/components/CashierError-B9_ylQEa.cjs +0 -5
- package/components/CashierReceiptPage-DfDga2bZ.cjs +0 -16
- package/stencil/index-242ac81a-BqeIndhr.js +0 -554
- package/stencil/index-242ac81a-CI4JxPRf.js +0 -538
- package/stencil/index-242ac81a-CjjM4VND.cjs +0 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
var ir = Object.defineProperty, sr = Object.defineProperties;
|
|
2
|
-
var
|
|
2
|
+
var ar = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Ke = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var or = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Be = (e, t, r) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
or.call(t, r) && Be(e, r, t[r]);
|
|
8
8
|
if (Ke)
|
|
9
9
|
for (var r of Ke(t))
|
|
10
|
-
ur.call(t, r) &&
|
|
10
|
+
ur.call(t, r) && Be(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, tt = (e, t) => sr(e,
|
|
13
|
-
var
|
|
12
|
+
}, tt = (e, t) => sr(e, ar(t));
|
|
13
|
+
var B = (e, t, r) => (Be(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var rt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var s = (l) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
o(r.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
o(r.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
|
|
28
|
+
o((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-image-
|
|
31
|
-
function
|
|
30
|
+
import "../stencil/ui-image-BhXCYysO.js";
|
|
31
|
+
function P() {
|
|
32
32
|
}
|
|
33
33
|
function lr(e, t) {
|
|
34
34
|
for (const r in t)
|
|
@@ -38,24 +38,24 @@ function lr(e, t) {
|
|
|
38
38
|
e
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function St(e) {
|
|
42
42
|
return e();
|
|
43
43
|
}
|
|
44
44
|
function nt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
e.forEach(
|
|
47
|
+
function J(e) {
|
|
48
|
+
e.forEach(St);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Xe(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
53
|
function At(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
let
|
|
56
|
+
let ue;
|
|
57
57
|
function it(e, t) {
|
|
58
|
-
return e === t ? !0 : (
|
|
58
|
+
return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
|
|
59
59
|
}
|
|
60
60
|
function hr(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
@@ -64,7 +64,7 @@ function Pt(e, ...t) {
|
|
|
64
64
|
if (e == null) {
|
|
65
65
|
for (const n of t)
|
|
66
66
|
n(void 0);
|
|
67
|
-
return
|
|
67
|
+
return P;
|
|
68
68
|
}
|
|
69
69
|
const r = e.subscribe(...t);
|
|
70
70
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
@@ -72,7 +72,7 @@ function Pt(e, ...t) {
|
|
|
72
72
|
function cr(e, t, r) {
|
|
73
73
|
e.$$.on_destroy.push(Pt(t, r));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function ce(e, t, r, n) {
|
|
76
76
|
if (e) {
|
|
77
77
|
const i = Ot(e, t, r, n);
|
|
78
78
|
return e[0](i);
|
|
@@ -81,28 +81,28 @@ function fe(e, t, r, n) {
|
|
|
81
81
|
function Ot(e, t, r, n) {
|
|
82
82
|
return e[1] && n ? lr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function fe(e, t, r, n) {
|
|
85
85
|
if (e[2] && n) {
|
|
86
86
|
const i = e[2](n(r));
|
|
87
87
|
if (t.dirty === void 0)
|
|
88
88
|
return i;
|
|
89
89
|
if (typeof i == "object") {
|
|
90
|
-
const s = [],
|
|
91
|
-
for (let
|
|
92
|
-
s[
|
|
90
|
+
const s = [], a = Math.max(t.dirty.length, i.length);
|
|
91
|
+
for (let o = 0; o < a; o += 1)
|
|
92
|
+
s[o] = t.dirty[o] | i[o];
|
|
93
93
|
return s;
|
|
94
94
|
}
|
|
95
95
|
return t.dirty | i;
|
|
96
96
|
}
|
|
97
97
|
return t.dirty;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function me(e, t, r, n, i, s) {
|
|
100
100
|
if (i) {
|
|
101
|
-
const
|
|
102
|
-
e.p(
|
|
101
|
+
const a = Ot(t, r, n, s);
|
|
102
|
+
e.p(a, i);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function de(e) {
|
|
106
106
|
if (e.ctx.length > 32) {
|
|
107
107
|
const t = [], r = e.ctx.length / 32;
|
|
108
108
|
for (let n = 0; n < r; n++)
|
|
@@ -111,13 +111,13 @@ function pe(e) {
|
|
|
111
111
|
}
|
|
112
112
|
return -1;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function I(e, t) {
|
|
115
115
|
e.appendChild(t);
|
|
116
116
|
}
|
|
117
117
|
function fr(e, t, r) {
|
|
118
118
|
const n = mr(e);
|
|
119
119
|
if (!n.getElementById(t)) {
|
|
120
|
-
const i =
|
|
120
|
+
const i = O("style");
|
|
121
121
|
i.id = t, i.textContent = r, dr(n, i);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -132,48 +132,48 @@ function mr(e) {
|
|
|
132
132
|
) : e.ownerDocument;
|
|
133
133
|
}
|
|
134
134
|
function dr(e, t) {
|
|
135
|
-
return
|
|
135
|
+
return I(
|
|
136
136
|
/** @type {Document} */
|
|
137
137
|
e.head || e,
|
|
138
138
|
t
|
|
139
139
|
), t.sheet;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function $(e, t, r) {
|
|
142
142
|
e.insertBefore(t, r || null);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function C(e) {
|
|
145
145
|
e.parentNode && e.parentNode.removeChild(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function zi(e, t) {
|
|
148
148
|
for (let r = 0; r < e.length; r += 1)
|
|
149
149
|
e[r] && e[r].d(t);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function O(e) {
|
|
152
152
|
return document.createElement(e);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function ie(e) {
|
|
155
155
|
return document.createTextNode(e);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
return
|
|
157
|
+
function Se() {
|
|
158
|
+
return ie(" ");
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
return
|
|
160
|
+
function br() {
|
|
161
|
+
return ie("");
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function pr(e, t, r, n) {
|
|
164
164
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function M(e, t, r) {
|
|
167
167
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function le(e, t, r) {
|
|
170
170
|
const n = t.toLowerCase();
|
|
171
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
171
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : M(e, t, r);
|
|
172
172
|
}
|
|
173
173
|
function gr(e) {
|
|
174
174
|
return Array.from(e.childNodes);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function We(e, t) {
|
|
177
177
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
178
178
|
t);
|
|
179
179
|
}
|
|
@@ -186,118 +186,118 @@ function yr(e) {
|
|
|
186
186
|
}
|
|
187
187
|
), t;
|
|
188
188
|
}
|
|
189
|
-
let
|
|
190
|
-
function
|
|
191
|
-
|
|
189
|
+
let te;
|
|
190
|
+
function ee(e) {
|
|
191
|
+
te = e;
|
|
192
192
|
}
|
|
193
193
|
function _r() {
|
|
194
|
-
if (!
|
|
194
|
+
if (!te)
|
|
195
195
|
throw new Error("Function called outside component initialization");
|
|
196
|
-
return
|
|
196
|
+
return te;
|
|
197
197
|
}
|
|
198
198
|
function Er(e) {
|
|
199
199
|
_r().$$.on_mount.push(e);
|
|
200
200
|
}
|
|
201
|
-
const
|
|
202
|
-
let
|
|
201
|
+
const F = [], Me = [];
|
|
202
|
+
let z = [];
|
|
203
203
|
const st = [], vr = /* @__PURE__ */ Promise.resolve();
|
|
204
|
-
let
|
|
204
|
+
let $e = !1;
|
|
205
205
|
function xr() {
|
|
206
|
-
|
|
206
|
+
$e || ($e = !0, vr.then(A));
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
|
|
208
|
+
function Re(e) {
|
|
209
|
+
z.push(e);
|
|
210
210
|
}
|
|
211
|
-
const
|
|
212
|
-
let
|
|
211
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
212
|
+
let G = 0;
|
|
213
213
|
function A() {
|
|
214
|
-
if (
|
|
214
|
+
if (G !== 0)
|
|
215
215
|
return;
|
|
216
|
-
const e =
|
|
216
|
+
const e = te;
|
|
217
217
|
do {
|
|
218
218
|
try {
|
|
219
|
-
for (;
|
|
220
|
-
const t =
|
|
221
|
-
|
|
219
|
+
for (; G < F.length; ) {
|
|
220
|
+
const t = F[G];
|
|
221
|
+
G++, ee(t), Tr(t.$$);
|
|
222
222
|
}
|
|
223
223
|
} catch (t) {
|
|
224
|
-
throw
|
|
224
|
+
throw F.length = 0, G = 0, t;
|
|
225
225
|
}
|
|
226
|
-
for (
|
|
227
|
-
|
|
228
|
-
for (let t = 0; t <
|
|
229
|
-
const r =
|
|
230
|
-
|
|
226
|
+
for (ee(null), F.length = 0, G = 0; Me.length; )
|
|
227
|
+
Me.pop()();
|
|
228
|
+
for (let t = 0; t < z.length; t += 1) {
|
|
229
|
+
const r = z[t];
|
|
230
|
+
Ae.has(r) || (Ae.add(r), r());
|
|
231
231
|
}
|
|
232
|
-
|
|
233
|
-
} while (
|
|
232
|
+
z.length = 0;
|
|
233
|
+
} while (F.length);
|
|
234
234
|
for (; st.length; )
|
|
235
235
|
st.pop()();
|
|
236
|
-
|
|
236
|
+
$e = !1, Ae.clear(), ee(e);
|
|
237
237
|
}
|
|
238
238
|
function Tr(e) {
|
|
239
239
|
if (e.fragment !== null) {
|
|
240
|
-
e.update(),
|
|
240
|
+
e.update(), J(e.before_update);
|
|
241
241
|
const t = e.dirty;
|
|
242
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
242
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
function Hr(e) {
|
|
246
246
|
const t = [], r = [];
|
|
247
|
-
|
|
247
|
+
z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), z = t;
|
|
248
248
|
}
|
|
249
249
|
const be = /* @__PURE__ */ new Set();
|
|
250
|
-
let
|
|
251
|
-
function
|
|
252
|
-
|
|
250
|
+
let D;
|
|
251
|
+
function wr() {
|
|
252
|
+
D = {
|
|
253
253
|
r: 0,
|
|
254
254
|
c: [],
|
|
255
|
-
p:
|
|
255
|
+
p: D
|
|
256
256
|
// parent group
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
function
|
|
260
|
-
|
|
259
|
+
function Br() {
|
|
260
|
+
D.r || J(D.c), D = D.p;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function N(e, t) {
|
|
263
263
|
e && e.i && (be.delete(e), e.i(t));
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function j(e, t, r, n) {
|
|
266
266
|
if (e && e.o) {
|
|
267
267
|
if (be.has(e))
|
|
268
268
|
return;
|
|
269
|
-
be.add(e),
|
|
269
|
+
be.add(e), D.c.push(() => {
|
|
270
270
|
be.delete(e), n && (r && e.d(1), n());
|
|
271
271
|
}), e.o(t);
|
|
272
272
|
} else
|
|
273
273
|
n && n();
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function Vi(e) {
|
|
276
276
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Sr(e, t, r) {
|
|
279
279
|
const { fragment: n, after_update: i } = e.$$;
|
|
280
|
-
n && n.m(t, r),
|
|
281
|
-
const s = e.$$.on_mount.map(
|
|
282
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...s) :
|
|
283
|
-
}), i.forEach(
|
|
280
|
+
n && n.m(t, r), Re(() => {
|
|
281
|
+
const s = e.$$.on_mount.map(St).filter(Xe);
|
|
282
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : J(s), e.$$.on_mount = [];
|
|
283
|
+
}), i.forEach(Re);
|
|
284
284
|
}
|
|
285
285
|
function Ar(e, t) {
|
|
286
286
|
const r = e.$$;
|
|
287
|
-
r.fragment !== null && (Hr(r.after_update),
|
|
287
|
+
r.fragment !== null && (Hr(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
288
288
|
}
|
|
289
289
|
function Pr(e, t) {
|
|
290
|
-
e.$$.dirty[0] === -1 && (
|
|
290
|
+
e.$$.dirty[0] === -1 && (F.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
291
291
|
}
|
|
292
|
-
function Or(e, t, r, n, i, s,
|
|
293
|
-
const l =
|
|
294
|
-
|
|
292
|
+
function Or(e, t, r, n, i, s, a = null, o = [-1]) {
|
|
293
|
+
const l = te;
|
|
294
|
+
ee(e);
|
|
295
295
|
const u = e.$$ = {
|
|
296
296
|
fragment: null,
|
|
297
297
|
ctx: [],
|
|
298
298
|
// state
|
|
299
299
|
props: s,
|
|
300
|
-
update:
|
|
300
|
+
update: P,
|
|
301
301
|
not_equal: i,
|
|
302
302
|
bound: nt(),
|
|
303
303
|
// lifecycle
|
|
@@ -309,47 +309,47 @@ function Or(e, t, r, n, i, s, o = null, a = [-1]) {
|
|
|
309
309
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
310
310
|
// everything else
|
|
311
311
|
callbacks: nt(),
|
|
312
|
-
dirty:
|
|
312
|
+
dirty: o,
|
|
313
313
|
skip_bound: !1,
|
|
314
314
|
root: t.target || l.$$.root
|
|
315
315
|
};
|
|
316
|
-
|
|
316
|
+
a && a(u.root);
|
|
317
317
|
let h = !1;
|
|
318
318
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...y) => {
|
|
319
|
-
const
|
|
320
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
321
|
-
}) : [], u.update(), h = !0,
|
|
319
|
+
const b = y.length ? y[0] : c;
|
|
320
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h && Pr(e, f)), c;
|
|
321
|
+
}) : [], u.update(), h = !0, J(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
322
322
|
if (t.hydrate) {
|
|
323
323
|
const f = gr(t.target);
|
|
324
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
324
|
+
u.fragment && u.fragment.l(f), f.forEach(C);
|
|
325
325
|
} else
|
|
326
326
|
u.fragment && u.fragment.c();
|
|
327
|
-
t.intro &&
|
|
327
|
+
t.intro && N(e.$$.fragment), Sr(e, t.target, t.anchor), A();
|
|
328
328
|
}
|
|
329
|
-
|
|
329
|
+
ee(l);
|
|
330
330
|
}
|
|
331
331
|
let It;
|
|
332
332
|
typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
333
333
|
constructor(t, r, n) {
|
|
334
334
|
super();
|
|
335
335
|
/** The Svelte component constructor */
|
|
336
|
-
|
|
336
|
+
B(this, "$$ctor");
|
|
337
337
|
/** Slots */
|
|
338
|
-
|
|
338
|
+
B(this, "$$s");
|
|
339
339
|
/** The Svelte component instance */
|
|
340
|
-
|
|
340
|
+
B(this, "$$c");
|
|
341
341
|
/** Whether or not the custom element is connected */
|
|
342
|
-
|
|
342
|
+
B(this, "$$cn", !1);
|
|
343
343
|
/** Component props data */
|
|
344
|
-
|
|
344
|
+
B(this, "$$d", {});
|
|
345
345
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
346
|
-
|
|
346
|
+
B(this, "$$r", !1);
|
|
347
347
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
348
|
-
|
|
348
|
+
B(this, "$$p_d", {});
|
|
349
349
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
350
|
-
|
|
350
|
+
B(this, "$$l", {});
|
|
351
351
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
352
|
-
|
|
352
|
+
B(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
353
353
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
354
354
|
}
|
|
355
355
|
addEventListener(t, r, n) {
|
|
@@ -370,20 +370,20 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
370
370
|
if (this.$$cn = !0, !this.$$c) {
|
|
371
371
|
let t = function(s) {
|
|
372
372
|
return () => {
|
|
373
|
-
let
|
|
373
|
+
let a;
|
|
374
374
|
return {
|
|
375
375
|
c: function() {
|
|
376
|
-
|
|
376
|
+
a = O("slot"), s !== "default" && M(a, "name", s);
|
|
377
377
|
},
|
|
378
378
|
/**
|
|
379
379
|
* @param {HTMLElement} target
|
|
380
380
|
* @param {HTMLElement} [anchor]
|
|
381
381
|
*/
|
|
382
382
|
m: function(u, h) {
|
|
383
|
-
|
|
383
|
+
$(u, a, h);
|
|
384
384
|
},
|
|
385
385
|
d: function(u) {
|
|
386
|
-
u &&
|
|
386
|
+
u && C(a);
|
|
387
387
|
}
|
|
388
388
|
};
|
|
389
389
|
};
|
|
@@ -394,8 +394,8 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
394
394
|
for (const s of this.$$s)
|
|
395
395
|
s in n && (r[s] = [t(s)]);
|
|
396
396
|
for (const s of this.attributes) {
|
|
397
|
-
const
|
|
398
|
-
|
|
397
|
+
const a = this.$$g_p(s.name);
|
|
398
|
+
a in this.$$d || (this.$$d[a] = pe(a, s.value, this.$$p_d, "toProp"));
|
|
399
399
|
}
|
|
400
400
|
for (const s in this.$$p_d)
|
|
401
401
|
!(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
|
|
@@ -412,21 +412,21 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
412
412
|
this.$$r = !0;
|
|
413
413
|
for (const s in this.$$p_d)
|
|
414
414
|
if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
|
|
415
|
-
const
|
|
415
|
+
const a = pe(
|
|
416
416
|
s,
|
|
417
417
|
this.$$d[s],
|
|
418
418
|
this.$$p_d,
|
|
419
419
|
"toAttribute"
|
|
420
420
|
);
|
|
421
|
-
|
|
421
|
+
a == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, a);
|
|
422
422
|
}
|
|
423
423
|
this.$$r = !1;
|
|
424
424
|
};
|
|
425
425
|
this.$$c.$$.after_update.push(i), i();
|
|
426
426
|
for (const s in this.$$l)
|
|
427
|
-
for (const
|
|
428
|
-
const
|
|
429
|
-
this.$$l_u.set(
|
|
427
|
+
for (const a of this.$$l[s]) {
|
|
428
|
+
const o = this.$$c.$on(s, a);
|
|
429
|
+
this.$$l_u.set(a, o);
|
|
430
430
|
}
|
|
431
431
|
this.$$l = {};
|
|
432
432
|
}
|
|
@@ -436,7 +436,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
436
436
|
// and setting attributes through setAttribute etc, this is helpful
|
|
437
437
|
attributeChangedCallback(t, r, n) {
|
|
438
438
|
var i;
|
|
439
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
439
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = pe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
440
440
|
}
|
|
441
441
|
disconnectedCallback() {
|
|
442
442
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -449,7 +449,7 @@ typeof HTMLElement == "function" && (It = class extends HTMLElement {
|
|
|
449
449
|
) || t;
|
|
450
450
|
}
|
|
451
451
|
});
|
|
452
|
-
function
|
|
452
|
+
function pe(e, t, r, n) {
|
|
453
453
|
var s;
|
|
454
454
|
const i = (s = r[e]) == null ? void 0 : s.type;
|
|
455
455
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -480,35 +480,35 @@ function ge(e, t, r, n) {
|
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
function Ir(e, t, r, n, i, s) {
|
|
483
|
-
let
|
|
483
|
+
let a = class extends It {
|
|
484
484
|
constructor() {
|
|
485
485
|
super(e, r, i), this.$$p_d = t;
|
|
486
486
|
}
|
|
487
487
|
static get observedAttributes() {
|
|
488
488
|
return Object.keys(t).map(
|
|
489
|
-
(
|
|
489
|
+
(o) => (t[o].attribute || o).toLowerCase()
|
|
490
490
|
);
|
|
491
491
|
}
|
|
492
492
|
};
|
|
493
|
-
return Object.keys(t).forEach((
|
|
494
|
-
Object.defineProperty(
|
|
493
|
+
return Object.keys(t).forEach((o) => {
|
|
494
|
+
Object.defineProperty(a.prototype, o, {
|
|
495
495
|
get() {
|
|
496
|
-
return this.$$c &&
|
|
496
|
+
return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
|
|
497
497
|
},
|
|
498
498
|
set(l) {
|
|
499
499
|
var u;
|
|
500
|
-
l =
|
|
500
|
+
l = pe(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
|
|
501
501
|
}
|
|
502
502
|
});
|
|
503
|
-
}), n.forEach((
|
|
504
|
-
Object.defineProperty(
|
|
503
|
+
}), n.forEach((o) => {
|
|
504
|
+
Object.defineProperty(a.prototype, o, {
|
|
505
505
|
get() {
|
|
506
506
|
var l;
|
|
507
|
-
return (l = this.$$c) == null ? void 0 : l[
|
|
507
|
+
return (l = this.$$c) == null ? void 0 : l[o];
|
|
508
508
|
}
|
|
509
509
|
});
|
|
510
510
|
}), e.element = /** @type {any} */
|
|
511
|
-
|
|
511
|
+
a, a;
|
|
512
512
|
}
|
|
513
513
|
class Cr {
|
|
514
514
|
constructor() {
|
|
@@ -519,7 +519,7 @@ class Cr {
|
|
|
519
519
|
*
|
|
520
520
|
* @type {any}
|
|
521
521
|
*/
|
|
522
|
-
|
|
522
|
+
B(this, "$$");
|
|
523
523
|
/**
|
|
524
524
|
* ### PRIVATE API
|
|
525
525
|
*
|
|
@@ -527,11 +527,11 @@ class Cr {
|
|
|
527
527
|
*
|
|
528
528
|
* @type {any}
|
|
529
529
|
*/
|
|
530
|
-
|
|
530
|
+
B(this, "$$set");
|
|
531
531
|
}
|
|
532
532
|
/** @returns {void} */
|
|
533
533
|
$destroy() {
|
|
534
|
-
Ar(this, 1), this.$destroy =
|
|
534
|
+
Ar(this, 1), this.$destroy = P;
|
|
535
535
|
}
|
|
536
536
|
/**
|
|
537
537
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -540,8 +540,8 @@ class Cr {
|
|
|
540
540
|
* @returns {() => void}
|
|
541
541
|
*/
|
|
542
542
|
$on(t, r) {
|
|
543
|
-
if (!
|
|
544
|
-
return
|
|
543
|
+
if (!Xe(r))
|
|
544
|
+
return P;
|
|
545
545
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
546
546
|
return n.push(r), () => {
|
|
547
547
|
const i = n.indexOf(r);
|
|
@@ -558,70 +558,70 @@ class Cr {
|
|
|
558
558
|
}
|
|
559
559
|
const Nr = "4";
|
|
560
560
|
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
|
|
561
|
-
const
|
|
561
|
+
const k = [];
|
|
562
562
|
function Lr(e, t) {
|
|
563
563
|
return {
|
|
564
|
-
subscribe:
|
|
564
|
+
subscribe: xe(e, t).subscribe
|
|
565
565
|
};
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function xe(e, t = P) {
|
|
568
568
|
let r;
|
|
569
569
|
const n = /* @__PURE__ */ new Set();
|
|
570
|
-
function i(
|
|
571
|
-
if (At(e,
|
|
572
|
-
const l = !
|
|
570
|
+
function i(o) {
|
|
571
|
+
if (At(e, o) && (e = o, r)) {
|
|
572
|
+
const l = !k.length;
|
|
573
573
|
for (const u of n)
|
|
574
|
-
u[1](),
|
|
574
|
+
u[1](), k.push(u, e);
|
|
575
575
|
if (l) {
|
|
576
|
-
for (let u = 0; u <
|
|
577
|
-
|
|
578
|
-
|
|
576
|
+
for (let u = 0; u < k.length; u += 2)
|
|
577
|
+
k[u][0](k[u + 1]);
|
|
578
|
+
k.length = 0;
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
function s(
|
|
583
|
-
i(
|
|
582
|
+
function s(o) {
|
|
583
|
+
i(o(e));
|
|
584
584
|
}
|
|
585
|
-
function o
|
|
586
|
-
const u = [
|
|
587
|
-
return n.add(u), n.size === 1 && (r = t(i, s) ||
|
|
585
|
+
function a(o, l = P) {
|
|
586
|
+
const u = [o, l];
|
|
587
|
+
return n.add(u), n.size === 1 && (r = t(i, s) || P), o(e), () => {
|
|
588
588
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
589
589
|
};
|
|
590
590
|
}
|
|
591
|
-
return { set: i, update: s, subscribe:
|
|
591
|
+
return { set: i, update: s, subscribe: a };
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function q(e, t, r) {
|
|
594
594
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
595
595
|
if (!i.every(Boolean))
|
|
596
596
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
597
597
|
const s = t.length < 2;
|
|
598
|
-
return Lr(r, (
|
|
598
|
+
return Lr(r, (a, o) => {
|
|
599
599
|
let l = !1;
|
|
600
600
|
const u = [];
|
|
601
|
-
let h = 0, f =
|
|
601
|
+
let h = 0, f = P;
|
|
602
602
|
const c = () => {
|
|
603
603
|
if (h)
|
|
604
604
|
return;
|
|
605
605
|
f();
|
|
606
|
-
const
|
|
607
|
-
s ?
|
|
606
|
+
const b = t(n ? u[0] : u, a, o);
|
|
607
|
+
s ? a(b) : f = Xe(b) ? b : P;
|
|
608
608
|
}, y = i.map(
|
|
609
|
-
(
|
|
610
|
-
|
|
611
|
-
(
|
|
612
|
-
u[
|
|
609
|
+
(b, v) => Pt(
|
|
610
|
+
b,
|
|
611
|
+
(E) => {
|
|
612
|
+
u[v] = E, h &= ~(1 << v), l && c();
|
|
613
613
|
},
|
|
614
614
|
() => {
|
|
615
|
-
h |= 1 <<
|
|
615
|
+
h |= 1 << v;
|
|
616
616
|
}
|
|
617
617
|
)
|
|
618
618
|
);
|
|
619
619
|
return l = !0, c(), function() {
|
|
620
|
-
|
|
620
|
+
J(y), f(), l = !1;
|
|
621
621
|
};
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
|
-
var
|
|
624
|
+
var Xi = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
625
625
|
function Mr(e) {
|
|
626
626
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
627
627
|
}
|
|
@@ -642,26 +642,26 @@ function kr(e) {
|
|
|
642
642
|
function Fr(e) {
|
|
643
643
|
return Array.isArray(e) ? [] : {};
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
645
|
+
function re(e, t) {
|
|
646
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(Fr(e), e, t) : e;
|
|
647
647
|
}
|
|
648
648
|
function jr(e, t, r) {
|
|
649
649
|
return e.concat(t).map(function(n) {
|
|
650
|
-
return
|
|
650
|
+
return re(n, r);
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
653
|
function zr(e, t) {
|
|
654
654
|
if (!t.customMerge)
|
|
655
|
-
return
|
|
655
|
+
return V;
|
|
656
656
|
var r = t.customMerge(e);
|
|
657
|
-
return typeof r == "function" ? r :
|
|
657
|
+
return typeof r == "function" ? r : V;
|
|
658
658
|
}
|
|
659
659
|
function Vr(e) {
|
|
660
660
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
661
661
|
return Object.propertyIsEnumerable.call(e, t);
|
|
662
662
|
}) : [];
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function at(e) {
|
|
665
665
|
return Object.keys(e).concat(Vr(e));
|
|
666
666
|
}
|
|
667
667
|
function Ct(e, t) {
|
|
@@ -676,52 +676,66 @@ function Xr(e, t) {
|
|
|
676
676
|
}
|
|
677
677
|
function Wr(e, t, r) {
|
|
678
678
|
var n = {};
|
|
679
|
-
return r.isMergeableObject(e) &&
|
|
680
|
-
n[i] =
|
|
681
|
-
}),
|
|
682
|
-
Xr(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = zr(i, r)(e[i], t[i], r) : n[i] =
|
|
679
|
+
return r.isMergeableObject(e) && at(e).forEach(function(i) {
|
|
680
|
+
n[i] = re(e[i], r);
|
|
681
|
+
}), at(t).forEach(function(i) {
|
|
682
|
+
Xr(e, i) || (Ct(e, i) && r.isMergeableObject(t[i]) ? n[i] = zr(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
|
|
683
683
|
}), n;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || jr, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified =
|
|
685
|
+
function V(e, t, r) {
|
|
686
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || jr, r.isMergeableObject = r.isMergeableObject || $r, r.cloneUnlessOtherwiseSpecified = re;
|
|
687
687
|
var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
|
|
688
|
-
return s ? n ? r.arrayMerge(e, t, r) : Wr(e, t, r) :
|
|
688
|
+
return s ? n ? r.arrayMerge(e, t, r) : Wr(e, t, r) : re(t, r);
|
|
689
689
|
}
|
|
690
|
-
|
|
690
|
+
V.all = function(t, r) {
|
|
691
691
|
if (!Array.isArray(t))
|
|
692
692
|
throw new Error("first argument should be an array");
|
|
693
693
|
return t.reduce(function(n, i) {
|
|
694
|
-
return
|
|
694
|
+
return V(n, i, r);
|
|
695
695
|
}, {});
|
|
696
696
|
};
|
|
697
|
-
var Zr =
|
|
697
|
+
var Zr = V, Jr = Zr;
|
|
698
698
|
const qr = /* @__PURE__ */ Mr(Jr);
|
|
699
|
-
|
|
700
|
-
|
|
699
|
+
/*! *****************************************************************************
|
|
700
|
+
Copyright (c) Microsoft Corporation.
|
|
701
|
+
|
|
702
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
703
|
+
purpose with or without fee is hereby granted.
|
|
704
|
+
|
|
705
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
706
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
707
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
708
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
709
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
710
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
711
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
712
|
+
***************************************************************************** */
|
|
713
|
+
var De = function(e, t) {
|
|
714
|
+
return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
701
715
|
r.__proto__ = n;
|
|
702
716
|
} || function(r, n) {
|
|
703
717
|
for (var i in n)
|
|
704
718
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
705
|
-
},
|
|
719
|
+
}, De(e, t);
|
|
706
720
|
};
|
|
707
|
-
function
|
|
721
|
+
function Te(e, t) {
|
|
708
722
|
if (typeof t != "function" && t !== null)
|
|
709
723
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
710
|
-
|
|
724
|
+
De(e, t);
|
|
711
725
|
function r() {
|
|
712
726
|
this.constructor = e;
|
|
713
727
|
}
|
|
714
728
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
715
729
|
}
|
|
716
|
-
var
|
|
717
|
-
return
|
|
730
|
+
var _ = function() {
|
|
731
|
+
return _ = Object.assign || function(t) {
|
|
718
732
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
719
733
|
r = arguments[n];
|
|
720
734
|
for (var s in r)
|
|
721
735
|
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
722
736
|
}
|
|
723
737
|
return t;
|
|
724
|
-
},
|
|
738
|
+
}, _.apply(this, arguments);
|
|
725
739
|
};
|
|
726
740
|
function Qr(e, t) {
|
|
727
741
|
var r = {};
|
|
@@ -732,14 +746,46 @@ function Qr(e, t) {
|
|
|
732
746
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
733
747
|
return r;
|
|
734
748
|
}
|
|
735
|
-
function
|
|
749
|
+
function Wi(e) {
|
|
750
|
+
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
751
|
+
if (r)
|
|
752
|
+
return r.call(e);
|
|
753
|
+
if (e && typeof e.length == "number")
|
|
754
|
+
return {
|
|
755
|
+
next: function() {
|
|
756
|
+
return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
|
|
757
|
+
}
|
|
758
|
+
};
|
|
759
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
760
|
+
}
|
|
761
|
+
function Zi(e, t) {
|
|
762
|
+
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
763
|
+
if (!r)
|
|
764
|
+
return e;
|
|
765
|
+
var n = r.call(e), i, s = [], a;
|
|
766
|
+
try {
|
|
767
|
+
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
|
|
768
|
+
s.push(i.value);
|
|
769
|
+
} catch (o) {
|
|
770
|
+
a = { error: o };
|
|
771
|
+
} finally {
|
|
772
|
+
try {
|
|
773
|
+
i && !i.done && (r = n.return) && r.call(n);
|
|
774
|
+
} finally {
|
|
775
|
+
if (a)
|
|
776
|
+
throw a.error;
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
return s;
|
|
780
|
+
}
|
|
781
|
+
function Pe(e, t, r) {
|
|
736
782
|
if (r || arguments.length === 2)
|
|
737
783
|
for (var n = 0, i = t.length, s; n < i; n++)
|
|
738
784
|
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
739
|
-
return e.concat(s ||
|
|
785
|
+
return e.concat(s || t);
|
|
740
786
|
}
|
|
741
|
-
function
|
|
742
|
-
var r = t && t.cache ? t.cache :
|
|
787
|
+
function Oe(e, t) {
|
|
788
|
+
var r = t && t.cache ? t.cache : nn, n = t && t.serializer ? t.serializer : rn, i = t && t.strategy ? t.strategy : Kr;
|
|
743
789
|
return i(e, {
|
|
744
790
|
cache: r,
|
|
745
791
|
serializer: n
|
|
@@ -748,103 +794,95 @@ function Ce(e, t) {
|
|
|
748
794
|
function Yr(e) {
|
|
749
795
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
750
796
|
}
|
|
751
|
-
function
|
|
797
|
+
function Nt(e, t, r, n) {
|
|
752
798
|
var i = Yr(n) ? n : r(n), s = t.get(i);
|
|
753
799
|
return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
|
|
754
800
|
}
|
|
755
|
-
function
|
|
801
|
+
function Lt(e, t, r) {
|
|
756
802
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
|
|
757
803
|
return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
|
|
758
804
|
}
|
|
759
|
-
function
|
|
805
|
+
function Ze(e, t, r, n, i) {
|
|
760
806
|
return r.bind(t, e, n, i);
|
|
761
807
|
}
|
|
808
|
+
function Kr(e, t) {
|
|
809
|
+
var r = e.length === 1 ? Nt : Lt;
|
|
810
|
+
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
811
|
+
}
|
|
762
812
|
function en(e, t) {
|
|
763
|
-
|
|
764
|
-
return Lt(e, this, r, t.cache.create(), t.serializer);
|
|
813
|
+
return Ze(e, this, Lt, t.cache.create(), t.serializer);
|
|
765
814
|
}
|
|
766
815
|
function tn(e, t) {
|
|
767
|
-
return
|
|
816
|
+
return Ze(e, this, Nt, t.cache.create(), t.serializer);
|
|
768
817
|
}
|
|
769
818
|
var rn = function() {
|
|
770
819
|
return JSON.stringify(arguments);
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
}()
|
|
783
|
-
), sn = {
|
|
820
|
+
};
|
|
821
|
+
function Je() {
|
|
822
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
823
|
+
}
|
|
824
|
+
Je.prototype.get = function(e) {
|
|
825
|
+
return this.cache[e];
|
|
826
|
+
};
|
|
827
|
+
Je.prototype.set = function(e, t) {
|
|
828
|
+
this.cache[e] = t;
|
|
829
|
+
};
|
|
830
|
+
var nn = {
|
|
784
831
|
create: function() {
|
|
785
|
-
return new
|
|
832
|
+
return new Je();
|
|
786
833
|
}
|
|
787
|
-
},
|
|
788
|
-
variadic:
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
792
|
-
r = arguments[n];
|
|
793
|
-
for (var s in r)
|
|
794
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
795
|
-
}
|
|
796
|
-
return t;
|
|
797
|
-
}, Ee.apply(this, arguments);
|
|
798
|
-
};
|
|
799
|
-
var b;
|
|
834
|
+
}, Ie = {
|
|
835
|
+
variadic: en,
|
|
836
|
+
monadic: tn
|
|
837
|
+
}, p;
|
|
800
838
|
(function(e) {
|
|
801
839
|
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";
|
|
802
|
-
})(
|
|
803
|
-
var
|
|
840
|
+
})(p || (p = {}));
|
|
841
|
+
var T;
|
|
804
842
|
(function(e) {
|
|
805
843
|
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";
|
|
806
|
-
})(
|
|
807
|
-
var
|
|
844
|
+
})(T || (T = {}));
|
|
845
|
+
var X;
|
|
808
846
|
(function(e) {
|
|
809
847
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
810
|
-
})(
|
|
811
|
-
function
|
|
812
|
-
return e.type ===
|
|
848
|
+
})(X || (X = {}));
|
|
849
|
+
function ot(e) {
|
|
850
|
+
return e.type === T.literal;
|
|
813
851
|
}
|
|
814
|
-
function
|
|
815
|
-
return e.type ===
|
|
852
|
+
function sn(e) {
|
|
853
|
+
return e.type === T.argument;
|
|
816
854
|
}
|
|
817
855
|
function Mt(e) {
|
|
818
|
-
return e.type ===
|
|
856
|
+
return e.type === T.number;
|
|
819
857
|
}
|
|
820
858
|
function $t(e) {
|
|
821
|
-
return e.type ===
|
|
859
|
+
return e.type === T.date;
|
|
822
860
|
}
|
|
823
861
|
function Rt(e) {
|
|
824
|
-
return e.type ===
|
|
862
|
+
return e.type === T.time;
|
|
825
863
|
}
|
|
826
864
|
function Dt(e) {
|
|
827
|
-
return e.type ===
|
|
865
|
+
return e.type === T.select;
|
|
828
866
|
}
|
|
829
867
|
function Ut(e) {
|
|
830
|
-
return e.type ===
|
|
868
|
+
return e.type === T.plural;
|
|
831
869
|
}
|
|
832
870
|
function an(e) {
|
|
833
|
-
return e.type ===
|
|
871
|
+
return e.type === T.pound;
|
|
834
872
|
}
|
|
835
873
|
function Gt(e) {
|
|
836
|
-
return e.type ===
|
|
874
|
+
return e.type === T.tag;
|
|
837
875
|
}
|
|
838
876
|
function kt(e) {
|
|
839
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
877
|
+
return !!(e && typeof e == "object" && e.type === X.number);
|
|
840
878
|
}
|
|
841
|
-
function
|
|
842
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
879
|
+
function Ue(e) {
|
|
880
|
+
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
843
881
|
}
|
|
844
|
-
var Ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
845
|
-
function
|
|
882
|
+
var Ft = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, on = /(?:[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;
|
|
883
|
+
function un(e) {
|
|
846
884
|
var t = {};
|
|
847
|
-
return e.replace(
|
|
885
|
+
return e.replace(on, function(r) {
|
|
848
886
|
var n = r.length;
|
|
849
887
|
switch (r[0]) {
|
|
850
888
|
case "G":
|
|
@@ -933,39 +971,29 @@ function ln(e) {
|
|
|
933
971
|
return "";
|
|
934
972
|
}), t;
|
|
935
973
|
}
|
|
936
|
-
var
|
|
937
|
-
|
|
938
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
939
|
-
r = arguments[n];
|
|
940
|
-
for (var s in r)
|
|
941
|
-
Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
942
|
-
}
|
|
943
|
-
return t;
|
|
944
|
-
}, T.apply(this, arguments);
|
|
945
|
-
};
|
|
946
|
-
var hn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
947
|
-
function cn(e) {
|
|
974
|
+
var ln = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
975
|
+
function hn(e) {
|
|
948
976
|
if (e.length === 0)
|
|
949
977
|
throw new Error("Number skeleton cannot be empty");
|
|
950
|
-
for (var t = e.split(
|
|
978
|
+
for (var t = e.split(ln).filter(function(c) {
|
|
951
979
|
return c.length > 0;
|
|
952
980
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
953
|
-
var s = i[n],
|
|
954
|
-
if (
|
|
981
|
+
var s = i[n], a = s.split("/");
|
|
982
|
+
if (a.length === 0)
|
|
955
983
|
throw new Error("Invalid number skeleton");
|
|
956
|
-
for (var
|
|
984
|
+
for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
|
|
957
985
|
var f = h[u];
|
|
958
986
|
if (f.length === 0)
|
|
959
987
|
throw new Error("Invalid number skeleton");
|
|
960
988
|
}
|
|
961
|
-
r.push({ stem:
|
|
989
|
+
r.push({ stem: o, options: l });
|
|
962
990
|
}
|
|
963
991
|
return r;
|
|
964
992
|
}
|
|
965
|
-
function
|
|
993
|
+
function cn(e) {
|
|
966
994
|
return e.replace(/^(.*?)-/, "");
|
|
967
995
|
}
|
|
968
|
-
var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
996
|
+
var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jt = /^(@+)?(\+|#+)?[rs]?$/g, fn = /(\*)(0+)|(#+)(0+)|(0+)/g, zt = /^(0+)$/;
|
|
969
997
|
function lt(e) {
|
|
970
998
|
var t = {};
|
|
971
999
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jt, function(r, n, i) {
|
|
@@ -1012,7 +1040,7 @@ function Vt(e) {
|
|
|
1012
1040
|
};
|
|
1013
1041
|
}
|
|
1014
1042
|
}
|
|
1015
|
-
function
|
|
1043
|
+
function mn(e) {
|
|
1016
1044
|
var t;
|
|
1017
1045
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1018
1046
|
notation: "engineering"
|
|
@@ -1030,7 +1058,7 @@ function ht(e) {
|
|
|
1030
1058
|
var t = {}, r = Vt(e);
|
|
1031
1059
|
return r || t;
|
|
1032
1060
|
}
|
|
1033
|
-
function
|
|
1061
|
+
function dn(e) {
|
|
1034
1062
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1035
1063
|
var i = n[r];
|
|
1036
1064
|
switch (i.stem) {
|
|
@@ -1054,7 +1082,7 @@ function pn(e) {
|
|
|
1054
1082
|
continue;
|
|
1055
1083
|
case "measure-unit":
|
|
1056
1084
|
case "unit":
|
|
1057
|
-
t.style = "unit", t.unit =
|
|
1085
|
+
t.style = "unit", t.unit = cn(i.options[0]);
|
|
1058
1086
|
continue;
|
|
1059
1087
|
case "compact-short":
|
|
1060
1088
|
case "K":
|
|
@@ -1065,13 +1093,13 @@ function pn(e) {
|
|
|
1065
1093
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1066
1094
|
continue;
|
|
1067
1095
|
case "scientific":
|
|
1068
|
-
t =
|
|
1069
|
-
return
|
|
1096
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1097
|
+
return _(_({}, l), ht(u));
|
|
1070
1098
|
}, {}));
|
|
1071
1099
|
continue;
|
|
1072
1100
|
case "engineering":
|
|
1073
|
-
t =
|
|
1074
|
-
return
|
|
1101
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1102
|
+
return _(_({}, l), ht(u));
|
|
1075
1103
|
}, {}));
|
|
1076
1104
|
continue;
|
|
1077
1105
|
case "notation-simple":
|
|
@@ -1116,7 +1144,7 @@ function pn(e) {
|
|
|
1116
1144
|
case "integer-width":
|
|
1117
1145
|
if (i.options.length > 1)
|
|
1118
1146
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1119
|
-
i.options[0].replace(
|
|
1147
|
+
i.options[0].replace(fn, function(l, u, h, f, c, y) {
|
|
1120
1148
|
if (u)
|
|
1121
1149
|
t.minimumIntegerDigits = h.length;
|
|
1122
1150
|
else {
|
|
@@ -1140,21 +1168,21 @@ function pn(e) {
|
|
|
1140
1168
|
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && y ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1141
1169
|
});
|
|
1142
1170
|
var s = i.options[0];
|
|
1143
|
-
s === "w" ? t =
|
|
1171
|
+
s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t), lt(s)));
|
|
1144
1172
|
continue;
|
|
1145
1173
|
}
|
|
1146
1174
|
if (jt.test(i.stem)) {
|
|
1147
|
-
t =
|
|
1175
|
+
t = _(_({}, t), lt(i.stem));
|
|
1148
1176
|
continue;
|
|
1149
1177
|
}
|
|
1150
|
-
var
|
|
1151
|
-
|
|
1152
|
-
var
|
|
1153
|
-
|
|
1178
|
+
var a = Vt(i.stem);
|
|
1179
|
+
a && (t = _(_({}, t), a));
|
|
1180
|
+
var o = mn(i.stem);
|
|
1181
|
+
o && (t = _(_({}, t), o));
|
|
1154
1182
|
}
|
|
1155
1183
|
return t;
|
|
1156
1184
|
}
|
|
1157
|
-
var
|
|
1185
|
+
var he = {
|
|
1158
1186
|
"001": [
|
|
1159
1187
|
"H",
|
|
1160
1188
|
"h"
|
|
@@ -2575,17 +2603,17 @@ function bn(e, t) {
|
|
|
2575
2603
|
if (i === "j") {
|
|
2576
2604
|
for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2577
2605
|
s++, n++;
|
|
2578
|
-
var
|
|
2579
|
-
for ((u == "H" || u == "k") && (
|
|
2606
|
+
var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = pn(t);
|
|
2607
|
+
for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
|
|
2580
2608
|
r += l;
|
|
2581
|
-
for (;
|
|
2609
|
+
for (; a-- > 0; )
|
|
2582
2610
|
r = u + r;
|
|
2583
2611
|
} else
|
|
2584
2612
|
i === "J" ? r += "H" : r += i;
|
|
2585
2613
|
}
|
|
2586
2614
|
return r;
|
|
2587
2615
|
}
|
|
2588
|
-
function
|
|
2616
|
+
function pn(e) {
|
|
2589
2617
|
var t = e.hourCycle;
|
|
2590
2618
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2591
2619
|
e.hourCycles && // @ts-ignore
|
|
@@ -2604,23 +2632,23 @@ function gn(e) {
|
|
|
2604
2632
|
}
|
|
2605
2633
|
var r = e.language, n;
|
|
2606
2634
|
r !== "root" && (n = e.maximize().region);
|
|
2607
|
-
var i =
|
|
2635
|
+
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2608
2636
|
return i[0];
|
|
2609
2637
|
}
|
|
2610
|
-
var
|
|
2638
|
+
var Ce, gn = new RegExp("^".concat(Ft.source, "*")), yn = new RegExp("".concat(Ft.source, "*$"));
|
|
2611
2639
|
function g(e, t) {
|
|
2612
2640
|
return { start: e, end: t };
|
|
2613
2641
|
}
|
|
2614
|
-
var
|
|
2642
|
+
var _n = !!String.prototype.startsWith && "_a".startsWith("a", 1), En = !!String.fromCodePoint, vn = !!Object.fromEntries, xn = !!String.prototype.codePointAt, Tn = !!String.prototype.trimStart, Hn = !!String.prototype.trimEnd, wn = !!Number.isSafeInteger, Bn = wn ? Number.isSafeInteger : function(e) {
|
|
2615
2643
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2616
|
-
},
|
|
2644
|
+
}, Ge = !0;
|
|
2617
2645
|
try {
|
|
2618
|
-
var
|
|
2619
|
-
|
|
2646
|
+
var Sn = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2647
|
+
Ge = ((Ce = Sn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
2620
2648
|
} catch (e) {
|
|
2621
|
-
|
|
2649
|
+
Ge = !1;
|
|
2622
2650
|
}
|
|
2623
|
-
var ct =
|
|
2651
|
+
var ct = _n ? (
|
|
2624
2652
|
// Native
|
|
2625
2653
|
function(t, r, n) {
|
|
2626
2654
|
return t.startsWith(r, n);
|
|
@@ -2630,31 +2658,31 @@ var ct = En ? (
|
|
|
2630
2658
|
function(t, r, n) {
|
|
2631
2659
|
return t.slice(n, n + r.length) === r;
|
|
2632
2660
|
}
|
|
2633
|
-
),
|
|
2661
|
+
), ke = En ? String.fromCodePoint : (
|
|
2634
2662
|
// IE11
|
|
2635
2663
|
function() {
|
|
2636
2664
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
2637
2665
|
t[r] = arguments[r];
|
|
2638
|
-
for (var n = "", i = t.length, s = 0,
|
|
2639
|
-
if (
|
|
2640
|
-
throw RangeError(
|
|
2641
|
-
n +=
|
|
2666
|
+
for (var n = "", i = t.length, s = 0, a; i > s; ) {
|
|
2667
|
+
if (a = t[s++], a > 1114111)
|
|
2668
|
+
throw RangeError(a + " is not a valid code point");
|
|
2669
|
+
n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2642
2670
|
}
|
|
2643
2671
|
return n;
|
|
2644
2672
|
}
|
|
2645
2673
|
), ft = (
|
|
2646
2674
|
// native
|
|
2647
|
-
|
|
2675
|
+
vn ? Object.fromEntries : (
|
|
2648
2676
|
// Ponyfill
|
|
2649
2677
|
function(t) {
|
|
2650
2678
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
2651
|
-
var s = i[n],
|
|
2652
|
-
r[
|
|
2679
|
+
var s = i[n], a = s[0], o = s[1];
|
|
2680
|
+
r[a] = o;
|
|
2653
2681
|
}
|
|
2654
2682
|
return r;
|
|
2655
2683
|
}
|
|
2656
2684
|
)
|
|
2657
|
-
), Xt =
|
|
2685
|
+
), Xt = xn ? (
|
|
2658
2686
|
// Native
|
|
2659
2687
|
function(t, r) {
|
|
2660
2688
|
return t.codePointAt(r);
|
|
@@ -2668,7 +2696,7 @@ var ct = En ? (
|
|
|
2668
2696
|
return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
|
|
2669
2697
|
}
|
|
2670
2698
|
}
|
|
2671
|
-
),
|
|
2699
|
+
), An = Tn ? (
|
|
2672
2700
|
// Native
|
|
2673
2701
|
function(t) {
|
|
2674
2702
|
return t.trimStart();
|
|
@@ -2676,9 +2704,9 @@ var ct = En ? (
|
|
|
2676
2704
|
) : (
|
|
2677
2705
|
// Ponyfill
|
|
2678
2706
|
function(t) {
|
|
2679
|
-
return t.replace(
|
|
2707
|
+
return t.replace(gn, "");
|
|
2680
2708
|
}
|
|
2681
|
-
),
|
|
2709
|
+
), Pn = Hn ? (
|
|
2682
2710
|
// Native
|
|
2683
2711
|
function(t) {
|
|
2684
2712
|
return t.trimEnd();
|
|
@@ -2686,32 +2714,32 @@ var ct = En ? (
|
|
|
2686
2714
|
) : (
|
|
2687
2715
|
// Ponyfill
|
|
2688
2716
|
function(t) {
|
|
2689
|
-
return t.replace(
|
|
2717
|
+
return t.replace(yn, "");
|
|
2690
2718
|
}
|
|
2691
2719
|
);
|
|
2692
2720
|
function Wt(e, t) {
|
|
2693
2721
|
return new RegExp(e, t);
|
|
2694
2722
|
}
|
|
2695
|
-
var
|
|
2696
|
-
if (
|
|
2723
|
+
var Fe;
|
|
2724
|
+
if (Ge) {
|
|
2697
2725
|
var mt = Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2698
|
-
|
|
2726
|
+
Fe = function(t, r) {
|
|
2699
2727
|
var n;
|
|
2700
2728
|
mt.lastIndex = r;
|
|
2701
2729
|
var i = mt.exec(t);
|
|
2702
2730
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2703
2731
|
};
|
|
2704
2732
|
} else
|
|
2705
|
-
|
|
2733
|
+
Fe = function(t, r) {
|
|
2706
2734
|
for (var n = []; ; ) {
|
|
2707
2735
|
var i = Xt(t, r);
|
|
2708
|
-
if (i === void 0 || Zt(i) ||
|
|
2736
|
+
if (i === void 0 || Zt(i) || Nn(i))
|
|
2709
2737
|
break;
|
|
2710
2738
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2711
2739
|
}
|
|
2712
|
-
return
|
|
2740
|
+
return ke.apply(void 0, n);
|
|
2713
2741
|
};
|
|
2714
|
-
var
|
|
2742
|
+
var On = (
|
|
2715
2743
|
/** @class */
|
|
2716
2744
|
function() {
|
|
2717
2745
|
function e(t, r) {
|
|
@@ -2725,33 +2753,33 @@ var In = (
|
|
|
2725
2753
|
for (var i = []; !this.isEOF(); ) {
|
|
2726
2754
|
var s = this.char();
|
|
2727
2755
|
if (s === 123) {
|
|
2728
|
-
var
|
|
2729
|
-
if (
|
|
2730
|
-
return
|
|
2731
|
-
i.push(
|
|
2756
|
+
var a = this.parseArgument(t, n);
|
|
2757
|
+
if (a.err)
|
|
2758
|
+
return a;
|
|
2759
|
+
i.push(a.val);
|
|
2732
2760
|
} else {
|
|
2733
2761
|
if (s === 125 && t > 0)
|
|
2734
2762
|
break;
|
|
2735
2763
|
if (s === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2736
|
-
var
|
|
2764
|
+
var o = this.clonePosition();
|
|
2737
2765
|
this.bump(), i.push({
|
|
2738
|
-
type:
|
|
2739
|
-
location: g(
|
|
2766
|
+
type: T.pound,
|
|
2767
|
+
location: g(o, this.clonePosition())
|
|
2740
2768
|
});
|
|
2741
2769
|
} else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2742
2770
|
if (n)
|
|
2743
2771
|
break;
|
|
2744
|
-
return this.error(
|
|
2745
|
-
} else if (s === 60 && !this.ignoreTag &&
|
|
2746
|
-
var
|
|
2747
|
-
if (
|
|
2748
|
-
return
|
|
2749
|
-
i.push(
|
|
2772
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
2773
|
+
} else if (s === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
2774
|
+
var a = this.parseTag(t, r);
|
|
2775
|
+
if (a.err)
|
|
2776
|
+
return a;
|
|
2777
|
+
i.push(a.val);
|
|
2750
2778
|
} else {
|
|
2751
|
-
var
|
|
2752
|
-
if (
|
|
2753
|
-
return
|
|
2754
|
-
i.push(
|
|
2779
|
+
var a = this.parseLiteral(t, r);
|
|
2780
|
+
if (a.err)
|
|
2781
|
+
return a;
|
|
2782
|
+
i.push(a.val);
|
|
2755
2783
|
}
|
|
2756
2784
|
}
|
|
2757
2785
|
}
|
|
@@ -2763,7 +2791,7 @@ var In = (
|
|
|
2763
2791
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2764
2792
|
return {
|
|
2765
2793
|
val: {
|
|
2766
|
-
type:
|
|
2794
|
+
type: T.literal,
|
|
2767
2795
|
value: "<".concat(i, "/>"),
|
|
2768
2796
|
location: g(n, this.clonePosition())
|
|
2769
2797
|
},
|
|
@@ -2773,27 +2801,27 @@ var In = (
|
|
|
2773
2801
|
var s = this.parseMessage(t + 1, r, !0);
|
|
2774
2802
|
if (s.err)
|
|
2775
2803
|
return s;
|
|
2776
|
-
var
|
|
2804
|
+
var a = s.val, o = this.clonePosition();
|
|
2777
2805
|
if (this.bumpIf("</")) {
|
|
2778
|
-
if (this.isEOF() || !
|
|
2779
|
-
return this.error(
|
|
2806
|
+
if (this.isEOF() || !je(this.char()))
|
|
2807
|
+
return this.error(p.INVALID_TAG, g(o, this.clonePosition()));
|
|
2780
2808
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2781
|
-
return i !== u ? this.error(
|
|
2809
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2782
2810
|
val: {
|
|
2783
|
-
type:
|
|
2811
|
+
type: T.tag,
|
|
2784
2812
|
value: i,
|
|
2785
|
-
children:
|
|
2813
|
+
children: a,
|
|
2786
2814
|
location: g(n, this.clonePosition())
|
|
2787
2815
|
},
|
|
2788
2816
|
err: null
|
|
2789
|
-
} : this.error(
|
|
2817
|
+
} : this.error(p.INVALID_TAG, g(o, this.clonePosition())));
|
|
2790
2818
|
} else
|
|
2791
|
-
return this.error(
|
|
2819
|
+
return this.error(p.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
2792
2820
|
} else
|
|
2793
|
-
return this.error(
|
|
2821
|
+
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
|
2794
2822
|
}, e.prototype.parseTagName = function() {
|
|
2795
2823
|
var t = this.offset();
|
|
2796
|
-
for (this.bump(); !this.isEOF() &&
|
|
2824
|
+
for (this.bump(); !this.isEOF() && Cn(this.char()); )
|
|
2797
2825
|
this.bump();
|
|
2798
2826
|
return this.message.slice(t, this.offset());
|
|
2799
2827
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2803,26 +2831,26 @@ var In = (
|
|
|
2803
2831
|
i += s;
|
|
2804
2832
|
continue;
|
|
2805
2833
|
}
|
|
2806
|
-
var
|
|
2807
|
-
if (o) {
|
|
2808
|
-
i += o;
|
|
2809
|
-
continue;
|
|
2810
|
-
}
|
|
2811
|
-
var a = this.tryParseLeftAngleBracket();
|
|
2834
|
+
var a = this.tryParseUnquoted(t, r);
|
|
2812
2835
|
if (a) {
|
|
2813
2836
|
i += a;
|
|
2814
2837
|
continue;
|
|
2815
2838
|
}
|
|
2839
|
+
var o = this.tryParseLeftAngleBracket();
|
|
2840
|
+
if (o) {
|
|
2841
|
+
i += o;
|
|
2842
|
+
continue;
|
|
2843
|
+
}
|
|
2816
2844
|
break;
|
|
2817
2845
|
}
|
|
2818
2846
|
var l = g(n, this.clonePosition());
|
|
2819
2847
|
return {
|
|
2820
|
-
val: { type:
|
|
2848
|
+
val: { type: T.literal, value: i, location: l },
|
|
2821
2849
|
err: null
|
|
2822
2850
|
};
|
|
2823
2851
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2824
2852
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2825
|
-
!
|
|
2853
|
+
!In(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2826
2854
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2827
2855
|
if (this.isEOF() || this.char() !== 39)
|
|
2828
2856
|
return null;
|
|
@@ -2856,28 +2884,28 @@ var In = (
|
|
|
2856
2884
|
r.push(n);
|
|
2857
2885
|
this.bump();
|
|
2858
2886
|
}
|
|
2859
|
-
return
|
|
2887
|
+
return ke.apply(void 0, r);
|
|
2860
2888
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2861
2889
|
if (this.isEOF())
|
|
2862
2890
|
return null;
|
|
2863
2891
|
var n = this.char();
|
|
2864
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2892
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
2865
2893
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2866
2894
|
var n = this.clonePosition();
|
|
2867
2895
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2868
|
-
return this.error(
|
|
2896
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
2869
2897
|
if (this.char() === 125)
|
|
2870
|
-
return this.bump(), this.error(
|
|
2898
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
2871
2899
|
var i = this.parseIdentifierIfPossible().value;
|
|
2872
2900
|
if (!i)
|
|
2873
|
-
return this.error(
|
|
2901
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
2874
2902
|
if (this.bumpSpace(), this.isEOF())
|
|
2875
|
-
return this.error(
|
|
2903
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
2876
2904
|
switch (this.char()) {
|
|
2877
2905
|
case 125:
|
|
2878
2906
|
return this.bump(), {
|
|
2879
2907
|
val: {
|
|
2880
|
-
type:
|
|
2908
|
+
type: T.argument,
|
|
2881
2909
|
// value does not include the opening and closing braces.
|
|
2882
2910
|
value: i,
|
|
2883
2911
|
location: g(n, this.clonePosition())
|
|
@@ -2885,20 +2913,20 @@ var In = (
|
|
|
2885
2913
|
err: null
|
|
2886
2914
|
};
|
|
2887
2915
|
case 44:
|
|
2888
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2916
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2889
2917
|
default:
|
|
2890
|
-
return this.error(
|
|
2918
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
2891
2919
|
}
|
|
2892
2920
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2893
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2921
|
+
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
2894
2922
|
this.bumpTo(i);
|
|
2895
|
-
var s = this.clonePosition(),
|
|
2896
|
-
return { value: n, location:
|
|
2923
|
+
var s = this.clonePosition(), a = g(t, s);
|
|
2924
|
+
return { value: n, location: a };
|
|
2897
2925
|
}, e.prototype.parseArgumentOptions = function(t, r, n, i) {
|
|
2898
|
-
var s,
|
|
2899
|
-
switch (
|
|
2926
|
+
var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2927
|
+
switch (o) {
|
|
2900
2928
|
case "":
|
|
2901
|
-
return this.error(
|
|
2929
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, g(a, l));
|
|
2902
2930
|
case "number":
|
|
2903
2931
|
case "date":
|
|
2904
2932
|
case "time": {
|
|
@@ -2909,46 +2937,46 @@ var In = (
|
|
|
2909
2937
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2910
2938
|
if (f.err)
|
|
2911
2939
|
return f;
|
|
2912
|
-
var c =
|
|
2940
|
+
var c = Pn(f.val);
|
|
2913
2941
|
if (c.length === 0)
|
|
2914
|
-
return this.error(
|
|
2942
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
2915
2943
|
var y = g(h, this.clonePosition());
|
|
2916
2944
|
u = { style: c, styleLocation: y };
|
|
2917
2945
|
}
|
|
2918
|
-
var
|
|
2919
|
-
if (
|
|
2920
|
-
return
|
|
2921
|
-
var
|
|
2946
|
+
var b = this.tryParseArgumentClose(i);
|
|
2947
|
+
if (b.err)
|
|
2948
|
+
return b;
|
|
2949
|
+
var v = g(i, this.clonePosition());
|
|
2922
2950
|
if (u && ct(u == null ? void 0 : u.style, "::", 0)) {
|
|
2923
|
-
var
|
|
2924
|
-
if (
|
|
2925
|
-
var f = this.parseNumberSkeletonFromString(
|
|
2951
|
+
var E = An(u.style.slice(2));
|
|
2952
|
+
if (o === "number") {
|
|
2953
|
+
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
2926
2954
|
return f.err ? f : {
|
|
2927
|
-
val: { type:
|
|
2955
|
+
val: { type: T.number, value: n, location: v, style: f.val },
|
|
2928
2956
|
err: null
|
|
2929
2957
|
};
|
|
2930
2958
|
} else {
|
|
2931
|
-
if (
|
|
2932
|
-
return this.error(
|
|
2933
|
-
var m =
|
|
2934
|
-
this.locale && (m = bn(
|
|
2959
|
+
if (E.length === 0)
|
|
2960
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, v);
|
|
2961
|
+
var m = E;
|
|
2962
|
+
this.locale && (m = bn(E, this.locale));
|
|
2935
2963
|
var c = {
|
|
2936
|
-
type:
|
|
2964
|
+
type: X.dateTime,
|
|
2937
2965
|
pattern: m,
|
|
2938
2966
|
location: u.styleLocation,
|
|
2939
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2940
|
-
},
|
|
2967
|
+
parsedOptions: this.shouldParseSkeletons ? un(m) : {}
|
|
2968
|
+
}, x = o === "date" ? T.date : T.time;
|
|
2941
2969
|
return {
|
|
2942
|
-
val: { type:
|
|
2970
|
+
val: { type: x, value: n, location: v, style: c },
|
|
2943
2971
|
err: null
|
|
2944
2972
|
};
|
|
2945
2973
|
}
|
|
2946
2974
|
}
|
|
2947
2975
|
return {
|
|
2948
2976
|
val: {
|
|
2949
|
-
type:
|
|
2977
|
+
type: o === "number" ? T.number : o === "date" ? T.date : T.time,
|
|
2950
2978
|
value: n,
|
|
2951
|
-
location:
|
|
2979
|
+
location: v,
|
|
2952
2980
|
style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
|
|
2953
2981
|
},
|
|
2954
2982
|
err: null
|
|
@@ -2959,50 +2987,50 @@ var In = (
|
|
|
2959
2987
|
case "select": {
|
|
2960
2988
|
var d = this.clonePosition();
|
|
2961
2989
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2962
|
-
return this.error(
|
|
2990
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(d, _({}, d)));
|
|
2963
2991
|
this.bumpSpace();
|
|
2964
|
-
var
|
|
2965
|
-
if (
|
|
2992
|
+
var w = this.parseIdentifierIfPossible(), S = 0;
|
|
2993
|
+
if (o !== "select" && w.value === "offset") {
|
|
2966
2994
|
if (!this.bumpIf(":"))
|
|
2967
|
-
return this.error(
|
|
2995
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
2968
2996
|
this.bumpSpace();
|
|
2969
|
-
var f = this.tryParseDecimalInteger(
|
|
2997
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2970
2998
|
if (f.err)
|
|
2971
2999
|
return f;
|
|
2972
|
-
this.bumpSpace(),
|
|
3000
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), S = f.val;
|
|
2973
3001
|
}
|
|
2974
|
-
var
|
|
2975
|
-
if (
|
|
2976
|
-
return
|
|
2977
|
-
var
|
|
2978
|
-
if (
|
|
2979
|
-
return
|
|
3002
|
+
var oe = this.tryParsePluralOrSelectOptions(t, o, r, w);
|
|
3003
|
+
if (oe.err)
|
|
3004
|
+
return oe;
|
|
3005
|
+
var b = this.tryParseArgumentClose(i);
|
|
3006
|
+
if (b.err)
|
|
3007
|
+
return b;
|
|
2980
3008
|
var Ye = g(i, this.clonePosition());
|
|
2981
|
-
return
|
|
3009
|
+
return o === "select" ? {
|
|
2982
3010
|
val: {
|
|
2983
|
-
type:
|
|
3011
|
+
type: T.select,
|
|
2984
3012
|
value: n,
|
|
2985
|
-
options: ft(
|
|
3013
|
+
options: ft(oe.val),
|
|
2986
3014
|
location: Ye
|
|
2987
3015
|
},
|
|
2988
3016
|
err: null
|
|
2989
3017
|
} : {
|
|
2990
3018
|
val: {
|
|
2991
|
-
type:
|
|
3019
|
+
type: T.plural,
|
|
2992
3020
|
value: n,
|
|
2993
|
-
options: ft(
|
|
2994
|
-
offset:
|
|
2995
|
-
pluralType:
|
|
3021
|
+
options: ft(oe.val),
|
|
3022
|
+
offset: S,
|
|
3023
|
+
pluralType: o === "plural" ? "cardinal" : "ordinal",
|
|
2996
3024
|
location: Ye
|
|
2997
3025
|
},
|
|
2998
3026
|
err: null
|
|
2999
3027
|
};
|
|
3000
3028
|
}
|
|
3001
3029
|
default:
|
|
3002
|
-
return this.error(
|
|
3030
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, g(a, l));
|
|
3003
3031
|
}
|
|
3004
3032
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3005
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3033
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3006
3034
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3007
3035
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3008
3036
|
var n = this.char();
|
|
@@ -3011,7 +3039,7 @@ var In = (
|
|
|
3011
3039
|
this.bump();
|
|
3012
3040
|
var i = this.clonePosition();
|
|
3013
3041
|
if (!this.bumpUntil("'"))
|
|
3014
|
-
return this.error(
|
|
3042
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3015
3043
|
this.bump();
|
|
3016
3044
|
break;
|
|
3017
3045
|
}
|
|
@@ -3041,25 +3069,25 @@ var In = (
|
|
|
3041
3069
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3042
3070
|
var n = [];
|
|
3043
3071
|
try {
|
|
3044
|
-
n =
|
|
3072
|
+
n = hn(t);
|
|
3045
3073
|
} catch (i) {
|
|
3046
|
-
return this.error(
|
|
3074
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3047
3075
|
}
|
|
3048
3076
|
return {
|
|
3049
3077
|
val: {
|
|
3050
|
-
type:
|
|
3078
|
+
type: X.number,
|
|
3051
3079
|
tokens: n,
|
|
3052
3080
|
location: r,
|
|
3053
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3081
|
+
parsedOptions: this.shouldParseSkeletons ? dn(n) : {}
|
|
3054
3082
|
},
|
|
3055
3083
|
err: null
|
|
3056
3084
|
};
|
|
3057
3085
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
|
|
3058
|
-
for (var s,
|
|
3086
|
+
for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
3059
3087
|
if (u.length === 0) {
|
|
3060
3088
|
var f = this.clonePosition();
|
|
3061
3089
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3062
|
-
var c = this.tryParseDecimalInteger(
|
|
3090
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3063
3091
|
if (c.err)
|
|
3064
3092
|
return c;
|
|
3065
3093
|
h = g(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
@@ -3067,38 +3095,38 @@ var In = (
|
|
|
3067
3095
|
break;
|
|
3068
3096
|
}
|
|
3069
3097
|
if (l.has(u))
|
|
3070
|
-
return this.error(r === "select" ?
|
|
3071
|
-
u === "other" && (
|
|
3098
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3099
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3072
3100
|
var y = this.clonePosition();
|
|
3073
3101
|
if (!this.bumpIf("{"))
|
|
3074
|
-
return this.error(r === "select" ?
|
|
3075
|
-
var
|
|
3076
|
-
if (
|
|
3077
|
-
return
|
|
3078
|
-
var
|
|
3079
|
-
if (
|
|
3080
|
-
return
|
|
3081
|
-
|
|
3102
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3103
|
+
var b = this.parseMessage(t + 1, r, n);
|
|
3104
|
+
if (b.err)
|
|
3105
|
+
return b;
|
|
3106
|
+
var v = this.tryParseArgumentClose(y);
|
|
3107
|
+
if (v.err)
|
|
3108
|
+
return v;
|
|
3109
|
+
o.push([
|
|
3082
3110
|
u,
|
|
3083
3111
|
{
|
|
3084
|
-
value:
|
|
3112
|
+
value: b.val,
|
|
3085
3113
|
location: g(y, this.clonePosition())
|
|
3086
3114
|
}
|
|
3087
3115
|
]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
|
|
3088
3116
|
}
|
|
3089
|
-
return
|
|
3117
|
+
return o.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(p.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
|
|
3090
3118
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3091
3119
|
var n = 1, i = this.clonePosition();
|
|
3092
3120
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
3093
|
-
for (var s = !1,
|
|
3094
|
-
var
|
|
3095
|
-
if (
|
|
3096
|
-
s = !0,
|
|
3121
|
+
for (var s = !1, a = 0; !this.isEOF(); ) {
|
|
3122
|
+
var o = this.char();
|
|
3123
|
+
if (o >= 48 && o <= 57)
|
|
3124
|
+
s = !0, a = a * 10 + (o - 48), this.bump();
|
|
3097
3125
|
else
|
|
3098
3126
|
break;
|
|
3099
3127
|
}
|
|
3100
3128
|
var l = g(i, this.clonePosition());
|
|
3101
|
-
return s ? (
|
|
3129
|
+
return s ? (a *= n, Bn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3102
3130
|
}, e.prototype.offset = function() {
|
|
3103
3131
|
return this.position.offset;
|
|
3104
3132
|
}, e.prototype.isEOF = function() {
|
|
@@ -3164,47 +3192,47 @@ var In = (
|
|
|
3164
3192
|
}, e;
|
|
3165
3193
|
}()
|
|
3166
3194
|
);
|
|
3167
|
-
function
|
|
3195
|
+
function je(e) {
|
|
3168
3196
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3169
3197
|
}
|
|
3170
|
-
function
|
|
3171
|
-
return
|
|
3198
|
+
function In(e) {
|
|
3199
|
+
return je(e) || e === 47;
|
|
3172
3200
|
}
|
|
3173
|
-
function
|
|
3201
|
+
function Cn(e) {
|
|
3174
3202
|
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;
|
|
3175
3203
|
}
|
|
3176
3204
|
function Zt(e) {
|
|
3177
3205
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3178
3206
|
}
|
|
3179
|
-
function
|
|
3207
|
+
function Nn(e) {
|
|
3180
3208
|
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;
|
|
3181
3209
|
}
|
|
3182
|
-
function
|
|
3210
|
+
function ze(e) {
|
|
3183
3211
|
e.forEach(function(t) {
|
|
3184
3212
|
if (delete t.location, Dt(t) || Ut(t))
|
|
3185
3213
|
for (var r in t.options)
|
|
3186
|
-
delete t.options[r].location,
|
|
3214
|
+
delete t.options[r].location, ze(t.options[r].value);
|
|
3187
3215
|
else
|
|
3188
|
-
Mt(t) && kt(t.style) || ($t(t) || Rt(t)) &&
|
|
3216
|
+
Mt(t) && kt(t.style) || ($t(t) || Rt(t)) && Ue(t.style) ? delete t.style.location : Gt(t) && ze(t.children);
|
|
3189
3217
|
});
|
|
3190
3218
|
}
|
|
3191
|
-
function
|
|
3192
|
-
t === void 0 && (t = {}), t =
|
|
3193
|
-
var r = new
|
|
3219
|
+
function Ln(e, t) {
|
|
3220
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3221
|
+
var r = new On(e, t).parse();
|
|
3194
3222
|
if (r.err) {
|
|
3195
|
-
var n = SyntaxError(
|
|
3223
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3196
3224
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3197
3225
|
}
|
|
3198
|
-
return t != null && t.captureLocation ||
|
|
3226
|
+
return t != null && t.captureLocation || ze(r.val), r.val;
|
|
3199
3227
|
}
|
|
3200
|
-
var
|
|
3228
|
+
var W;
|
|
3201
3229
|
(function(e) {
|
|
3202
3230
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3203
|
-
})(
|
|
3204
|
-
var
|
|
3231
|
+
})(W || (W = {}));
|
|
3232
|
+
var He = (
|
|
3205
3233
|
/** @class */
|
|
3206
3234
|
function(e) {
|
|
3207
|
-
|
|
3235
|
+
Te(t, e);
|
|
3208
3236
|
function t(r, n, i) {
|
|
3209
3237
|
var s = e.call(this, r) || this;
|
|
3210
3238
|
return s.code = n, s.originalMessage = i, s;
|
|
@@ -3216,62 +3244,62 @@ var we = (
|
|
|
3216
3244
|
), dt = (
|
|
3217
3245
|
/** @class */
|
|
3218
3246
|
function(e) {
|
|
3219
|
-
|
|
3247
|
+
Te(t, e);
|
|
3220
3248
|
function t(r, n, i, s) {
|
|
3221
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3249
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, s) || this;
|
|
3222
3250
|
}
|
|
3223
3251
|
return t;
|
|
3224
|
-
}(
|
|
3225
|
-
),
|
|
3252
|
+
}(He)
|
|
3253
|
+
), Mn = (
|
|
3226
3254
|
/** @class */
|
|
3227
3255
|
function(e) {
|
|
3228
|
-
|
|
3256
|
+
Te(t, e);
|
|
3229
3257
|
function t(r, n, i) {
|
|
3230
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3258
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3231
3259
|
}
|
|
3232
3260
|
return t;
|
|
3233
|
-
}(
|
|
3234
|
-
),
|
|
3261
|
+
}(He)
|
|
3262
|
+
), $n = (
|
|
3235
3263
|
/** @class */
|
|
3236
3264
|
function(e) {
|
|
3237
|
-
|
|
3265
|
+
Te(t, e);
|
|
3238
3266
|
function t(r, n) {
|
|
3239
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3267
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
|
|
3240
3268
|
}
|
|
3241
3269
|
return t;
|
|
3242
|
-
}(
|
|
3270
|
+
}(He)
|
|
3243
3271
|
), H;
|
|
3244
3272
|
(function(e) {
|
|
3245
3273
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3246
3274
|
})(H || (H = {}));
|
|
3247
|
-
function
|
|
3275
|
+
function Rn(e) {
|
|
3248
3276
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3249
3277
|
var n = t[t.length - 1];
|
|
3250
3278
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3251
3279
|
}, []);
|
|
3252
3280
|
}
|
|
3253
|
-
function
|
|
3281
|
+
function Dn(e) {
|
|
3254
3282
|
return typeof e == "function";
|
|
3255
3283
|
}
|
|
3256
|
-
function
|
|
3257
|
-
if (e.length === 1 &&
|
|
3284
|
+
function ge(e, t, r, n, i, s, a) {
|
|
3285
|
+
if (e.length === 1 && ot(e[0]))
|
|
3258
3286
|
return [
|
|
3259
3287
|
{
|
|
3260
3288
|
type: H.literal,
|
|
3261
3289
|
value: e[0].value
|
|
3262
3290
|
}
|
|
3263
3291
|
];
|
|
3264
|
-
for (var
|
|
3292
|
+
for (var o = [], l = 0, u = e; l < u.length; l++) {
|
|
3265
3293
|
var h = u[l];
|
|
3266
|
-
if (
|
|
3267
|
-
|
|
3294
|
+
if (ot(h)) {
|
|
3295
|
+
o.push({
|
|
3268
3296
|
type: H.literal,
|
|
3269
3297
|
value: h.value
|
|
3270
3298
|
});
|
|
3271
3299
|
continue;
|
|
3272
3300
|
}
|
|
3273
3301
|
if (an(h)) {
|
|
3274
|
-
typeof s == "number" &&
|
|
3302
|
+
typeof s == "number" && o.push({
|
|
3275
3303
|
type: H.literal,
|
|
3276
3304
|
value: r.getNumberFormat(t).format(s)
|
|
3277
3305
|
});
|
|
@@ -3279,26 +3307,26 @@ function ye(e, t, r, n, i, s, o) {
|
|
|
3279
3307
|
}
|
|
3280
3308
|
var f = h.value;
|
|
3281
3309
|
if (!(i && f in i))
|
|
3282
|
-
throw new
|
|
3310
|
+
throw new $n(f, a);
|
|
3283
3311
|
var c = i[f];
|
|
3284
|
-
if (
|
|
3285
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3312
|
+
if (sn(h)) {
|
|
3313
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
|
|
3286
3314
|
type: typeof c == "string" ? H.literal : H.object,
|
|
3287
3315
|
value: c
|
|
3288
3316
|
});
|
|
3289
3317
|
continue;
|
|
3290
3318
|
}
|
|
3291
3319
|
if ($t(h)) {
|
|
3292
|
-
var y = typeof h.style == "string" ? n.date[h.style] :
|
|
3293
|
-
|
|
3320
|
+
var y = typeof h.style == "string" ? n.date[h.style] : Ue(h.style) ? h.style.parsedOptions : void 0;
|
|
3321
|
+
o.push({
|
|
3294
3322
|
type: H.literal,
|
|
3295
3323
|
value: r.getDateTimeFormat(t, y).format(c)
|
|
3296
3324
|
});
|
|
3297
3325
|
continue;
|
|
3298
3326
|
}
|
|
3299
3327
|
if (Rt(h)) {
|
|
3300
|
-
var y = typeof h.style == "string" ? n.time[h.style] :
|
|
3301
|
-
|
|
3328
|
+
var y = typeof h.style == "string" ? n.time[h.style] : Ue(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3329
|
+
o.push({
|
|
3302
3330
|
type: H.literal,
|
|
3303
3331
|
value: r.getDateTimeFormat(t, y).format(c)
|
|
3304
3332
|
});
|
|
@@ -3306,62 +3334,62 @@ function ye(e, t, r, n, i, s, o) {
|
|
|
3306
3334
|
}
|
|
3307
3335
|
if (Mt(h)) {
|
|
3308
3336
|
var y = typeof h.style == "string" ? n.number[h.style] : kt(h.style) ? h.style.parsedOptions : void 0;
|
|
3309
|
-
y && y.scale && (c = c * (y.scale || 1)),
|
|
3337
|
+
y && y.scale && (c = c * (y.scale || 1)), o.push({
|
|
3310
3338
|
type: H.literal,
|
|
3311
3339
|
value: r.getNumberFormat(t, y).format(c)
|
|
3312
3340
|
});
|
|
3313
3341
|
continue;
|
|
3314
3342
|
}
|
|
3315
3343
|
if (Gt(h)) {
|
|
3316
|
-
var
|
|
3317
|
-
if (!
|
|
3318
|
-
throw new
|
|
3319
|
-
var m =
|
|
3320
|
-
return
|
|
3344
|
+
var b = h.children, v = h.value, E = i[v];
|
|
3345
|
+
if (!Dn(E))
|
|
3346
|
+
throw new Mn(v, "function", a);
|
|
3347
|
+
var m = ge(b, t, r, n, i, s), x = E(m.map(function(S) {
|
|
3348
|
+
return S.value;
|
|
3321
3349
|
}));
|
|
3322
|
-
Array.isArray(
|
|
3350
|
+
Array.isArray(x) || (x = [x]), o.push.apply(o, x.map(function(S) {
|
|
3323
3351
|
return {
|
|
3324
|
-
type: typeof
|
|
3325
|
-
value:
|
|
3352
|
+
type: typeof S == "string" ? H.literal : H.object,
|
|
3353
|
+
value: S
|
|
3326
3354
|
};
|
|
3327
3355
|
}));
|
|
3328
3356
|
}
|
|
3329
3357
|
if (Dt(h)) {
|
|
3330
3358
|
var d = h.options[c] || h.options.other;
|
|
3331
3359
|
if (!d)
|
|
3332
|
-
throw new dt(h.value, c, Object.keys(h.options),
|
|
3333
|
-
|
|
3360
|
+
throw new dt(h.value, c, Object.keys(h.options), a);
|
|
3361
|
+
o.push.apply(o, ge(d.value, t, r, n, i));
|
|
3334
3362
|
continue;
|
|
3335
3363
|
}
|
|
3336
3364
|
if (Ut(h)) {
|
|
3337
3365
|
var d = h.options["=".concat(c)];
|
|
3338
3366
|
if (!d) {
|
|
3339
3367
|
if (!Intl.PluralRules)
|
|
3340
|
-
throw new
|
|
3368
|
+
throw new He(`Intl.PluralRules is not available in this environment.
|
|
3341
3369
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3342
|
-
`,
|
|
3343
|
-
var
|
|
3344
|
-
d = h.options[
|
|
3370
|
+
`, W.MISSING_INTL_API, a);
|
|
3371
|
+
var w = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3372
|
+
d = h.options[w] || h.options.other;
|
|
3345
3373
|
}
|
|
3346
3374
|
if (!d)
|
|
3347
|
-
throw new dt(h.value, c, Object.keys(h.options),
|
|
3348
|
-
|
|
3375
|
+
throw new dt(h.value, c, Object.keys(h.options), a);
|
|
3376
|
+
o.push.apply(o, ge(d.value, t, r, n, i, c - (h.offset || 0)));
|
|
3349
3377
|
continue;
|
|
3350
3378
|
}
|
|
3351
3379
|
}
|
|
3352
|
-
return
|
|
3380
|
+
return Rn(o);
|
|
3353
3381
|
}
|
|
3354
|
-
function
|
|
3355
|
-
return t ?
|
|
3356
|
-
return r[n] =
|
|
3382
|
+
function Un(e, t) {
|
|
3383
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3384
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3357
3385
|
}, {})) : e;
|
|
3358
3386
|
}
|
|
3359
|
-
function
|
|
3387
|
+
function Gn(e, t) {
|
|
3360
3388
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3361
|
-
return r[n] =
|
|
3362
|
-
},
|
|
3389
|
+
return r[n] = Un(e[n], t[n]), r;
|
|
3390
|
+
}, _({}, e)) : e;
|
|
3363
3391
|
}
|
|
3364
|
-
function
|
|
3392
|
+
function Ne(e) {
|
|
3365
3393
|
return {
|
|
3366
3394
|
create: function() {
|
|
3367
3395
|
return {
|
|
@@ -3375,35 +3403,35 @@ function Me(e) {
|
|
|
3375
3403
|
}
|
|
3376
3404
|
};
|
|
3377
3405
|
}
|
|
3378
|
-
function
|
|
3406
|
+
function kn(e) {
|
|
3379
3407
|
return e === void 0 && (e = {
|
|
3380
3408
|
number: {},
|
|
3381
3409
|
dateTime: {},
|
|
3382
3410
|
pluralRules: {}
|
|
3383
3411
|
}), {
|
|
3384
|
-
getNumberFormat:
|
|
3412
|
+
getNumberFormat: Oe(function() {
|
|
3385
3413
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3386
3414
|
r[n] = arguments[n];
|
|
3387
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3415
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3388
3416
|
}, {
|
|
3389
|
-
cache:
|
|
3390
|
-
strategy:
|
|
3417
|
+
cache: Ne(e.number),
|
|
3418
|
+
strategy: Ie.variadic
|
|
3391
3419
|
}),
|
|
3392
|
-
getDateTimeFormat:
|
|
3420
|
+
getDateTimeFormat: Oe(function() {
|
|
3393
3421
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3394
3422
|
r[n] = arguments[n];
|
|
3395
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3423
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3396
3424
|
}, {
|
|
3397
|
-
cache:
|
|
3398
|
-
strategy:
|
|
3425
|
+
cache: Ne(e.dateTime),
|
|
3426
|
+
strategy: Ie.variadic
|
|
3399
3427
|
}),
|
|
3400
|
-
getPluralRules:
|
|
3428
|
+
getPluralRules: Oe(function() {
|
|
3401
3429
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3402
3430
|
r[n] = arguments[n];
|
|
3403
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3431
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3404
3432
|
}, {
|
|
3405
|
-
cache:
|
|
3406
|
-
strategy:
|
|
3433
|
+
cache: Ne(e.pluralRules),
|
|
3434
|
+
strategy: Ie.variadic
|
|
3407
3435
|
})
|
|
3408
3436
|
};
|
|
3409
3437
|
}
|
|
@@ -3426,7 +3454,7 @@ var Jt = (
|
|
|
3426
3454
|
}, []);
|
|
3427
3455
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3428
3456
|
}, this.formatToParts = function(l) {
|
|
3429
|
-
return
|
|
3457
|
+
return ge(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
|
|
3430
3458
|
}, this.resolvedOptions = function() {
|
|
3431
3459
|
var l;
|
|
3432
3460
|
return {
|
|
@@ -3437,15 +3465,15 @@ var Jt = (
|
|
|
3437
3465
|
}, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
|
|
3438
3466
|
if (this.message = t, !e.__parse)
|
|
3439
3467
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3440
|
-
var
|
|
3441
|
-
|
|
3442
|
-
var
|
|
3443
|
-
this.ast = e.__parse(t,
|
|
3468
|
+
var a = i || {};
|
|
3469
|
+
a.formatters;
|
|
3470
|
+
var o = Qr(a, ["formatters"]);
|
|
3471
|
+
this.ast = e.__parse(t, _(_({}, o), { locale: this.resolvedLocale }));
|
|
3444
3472
|
} else
|
|
3445
3473
|
this.ast = t;
|
|
3446
3474
|
if (!Array.isArray(this.ast))
|
|
3447
3475
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3448
|
-
this.formats =
|
|
3476
|
+
this.formats = Gn(e.formats, n), this.formatters = i && i.formatters || kn(this.formatterCache);
|
|
3449
3477
|
}
|
|
3450
3478
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3451
3479
|
get: function() {
|
|
@@ -3458,7 +3486,7 @@ var Jt = (
|
|
|
3458
3486
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3459
3487
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3460
3488
|
}
|
|
3461
|
-
}, e.__parse =
|
|
3489
|
+
}, e.__parse = Ln, e.formats = {
|
|
3462
3490
|
number: {
|
|
3463
3491
|
integer: {
|
|
3464
3492
|
maximumFractionDigits: 0
|
|
@@ -3519,7 +3547,7 @@ var Jt = (
|
|
|
3519
3547
|
}, e;
|
|
3520
3548
|
}()
|
|
3521
3549
|
);
|
|
3522
|
-
function
|
|
3550
|
+
function Fn(e, t) {
|
|
3523
3551
|
if (t == null)
|
|
3524
3552
|
return;
|
|
3525
3553
|
if (t in e)
|
|
@@ -3540,33 +3568,33 @@ function jn(e, t) {
|
|
|
3540
3568
|
n = void 0;
|
|
3541
3569
|
return n;
|
|
3542
3570
|
}
|
|
3543
|
-
const
|
|
3571
|
+
const L = {}, jn = (e, t, r) => r && (t in L || (L[t] = {}), e in L[t] || (L[t][e] = r), r), qt = (e, t) => {
|
|
3544
3572
|
if (t == null)
|
|
3545
3573
|
return;
|
|
3546
|
-
if (t in
|
|
3547
|
-
return
|
|
3574
|
+
if (t in L && e in L[t])
|
|
3575
|
+
return L[t][e];
|
|
3548
3576
|
const r = ae(t);
|
|
3549
3577
|
for (let n = 0; n < r.length; n++) {
|
|
3550
|
-
const i = r[n], s =
|
|
3578
|
+
const i = r[n], s = Vn(i, e);
|
|
3551
3579
|
if (s)
|
|
3552
|
-
return
|
|
3580
|
+
return jn(e, t, s);
|
|
3553
3581
|
}
|
|
3554
3582
|
};
|
|
3555
3583
|
let qe;
|
|
3556
|
-
const
|
|
3557
|
-
function
|
|
3584
|
+
const se = xe({});
|
|
3585
|
+
function zn(e) {
|
|
3558
3586
|
return qe[e] || null;
|
|
3559
3587
|
}
|
|
3560
3588
|
function Qt(e) {
|
|
3561
3589
|
return e in qe;
|
|
3562
3590
|
}
|
|
3563
|
-
function
|
|
3591
|
+
function Vn(e, t) {
|
|
3564
3592
|
if (!Qt(e))
|
|
3565
3593
|
return null;
|
|
3566
|
-
const r =
|
|
3567
|
-
return
|
|
3594
|
+
const r = zn(e);
|
|
3595
|
+
return Fn(r, t);
|
|
3568
3596
|
}
|
|
3569
|
-
function
|
|
3597
|
+
function Xn(e) {
|
|
3570
3598
|
if (e == null)
|
|
3571
3599
|
return;
|
|
3572
3600
|
const t = ae(e);
|
|
@@ -3577,27 +3605,27 @@ function Wn(e) {
|
|
|
3577
3605
|
}
|
|
3578
3606
|
}
|
|
3579
3607
|
function Yt(e, ...t) {
|
|
3580
|
-
delete
|
|
3608
|
+
delete L[e], se.update((r) => (r[e] = qr.all([r[e] || {}, ...t]), r));
|
|
3581
3609
|
}
|
|
3582
|
-
|
|
3583
|
-
[
|
|
3610
|
+
q(
|
|
3611
|
+
[se],
|
|
3584
3612
|
([e]) => Object.keys(e)
|
|
3585
3613
|
);
|
|
3586
|
-
|
|
3587
|
-
const
|
|
3588
|
-
function
|
|
3589
|
-
|
|
3614
|
+
se.subscribe((e) => qe = e);
|
|
3615
|
+
const ye = {};
|
|
3616
|
+
function Wn(e, t) {
|
|
3617
|
+
ye[e].delete(t), ye[e].size === 0 && delete ye[e];
|
|
3590
3618
|
}
|
|
3591
3619
|
function Kt(e) {
|
|
3592
|
-
return
|
|
3620
|
+
return ye[e];
|
|
3593
3621
|
}
|
|
3594
|
-
function
|
|
3622
|
+
function Zn(e) {
|
|
3595
3623
|
return ae(e).map((t) => {
|
|
3596
3624
|
const r = Kt(t);
|
|
3597
3625
|
return [t, r ? [...r] : []];
|
|
3598
3626
|
}).filter(([, t]) => t.length > 0);
|
|
3599
3627
|
}
|
|
3600
|
-
function
|
|
3628
|
+
function _e(e) {
|
|
3601
3629
|
return e == null ? !1 : ae(e).some(
|
|
3602
3630
|
(t) => {
|
|
3603
3631
|
var r;
|
|
@@ -3605,36 +3633,36 @@ function ve(e) {
|
|
|
3605
3633
|
}
|
|
3606
3634
|
);
|
|
3607
3635
|
}
|
|
3608
|
-
function
|
|
3636
|
+
function Jn(e, t) {
|
|
3609
3637
|
return Promise.all(
|
|
3610
|
-
t.map((n) => (
|
|
3638
|
+
t.map((n) => (Wn(e, n), n().then((i) => i.default || i)))
|
|
3611
3639
|
).then((n) => Yt(e, ...n));
|
|
3612
3640
|
}
|
|
3613
|
-
const
|
|
3641
|
+
const Y = {};
|
|
3614
3642
|
function er(e) {
|
|
3615
|
-
if (!
|
|
3616
|
-
return e in
|
|
3617
|
-
const t =
|
|
3618
|
-
return
|
|
3643
|
+
if (!_e(e))
|
|
3644
|
+
return e in Y ? Y[e] : Promise.resolve();
|
|
3645
|
+
const t = Zn(e);
|
|
3646
|
+
return Y[e] = Promise.all(
|
|
3619
3647
|
t.map(
|
|
3620
|
-
([r, n]) =>
|
|
3648
|
+
([r, n]) => Jn(r, n)
|
|
3621
3649
|
)
|
|
3622
3650
|
).then(() => {
|
|
3623
|
-
if (
|
|
3651
|
+
if (_e(e))
|
|
3624
3652
|
return er(e);
|
|
3625
|
-
delete
|
|
3626
|
-
}),
|
|
3653
|
+
delete Y[e];
|
|
3654
|
+
}), Y[e];
|
|
3627
3655
|
}
|
|
3628
|
-
var
|
|
3656
|
+
var bt = Object.getOwnPropertySymbols, qn = Object.prototype.hasOwnProperty, Qn = Object.prototype.propertyIsEnumerable, Yn = (e, t) => {
|
|
3629
3657
|
var r = {};
|
|
3630
3658
|
for (var n in e)
|
|
3631
|
-
|
|
3632
|
-
if (e != null &&
|
|
3633
|
-
for (var n of
|
|
3634
|
-
t.indexOf(n) < 0 &&
|
|
3659
|
+
qn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3660
|
+
if (e != null && bt)
|
|
3661
|
+
for (var n of bt(e))
|
|
3662
|
+
t.indexOf(n) < 0 && Qn.call(e, n) && (r[n] = e[n]);
|
|
3635
3663
|
return r;
|
|
3636
3664
|
};
|
|
3637
|
-
const
|
|
3665
|
+
const Kn = {
|
|
3638
3666
|
number: {
|
|
3639
3667
|
scientific: { notation: "scientific" },
|
|
3640
3668
|
engineering: { notation: "engineering" },
|
|
@@ -3664,28 +3692,28 @@ const ei = {
|
|
|
3664
3692
|
}
|
|
3665
3693
|
}
|
|
3666
3694
|
};
|
|
3667
|
-
function
|
|
3695
|
+
function ei({ locale: e, id: t }) {
|
|
3668
3696
|
console.warn(
|
|
3669
3697
|
`[svelte-i18n] The message "${t}" was not found in "${ae(
|
|
3670
3698
|
e
|
|
3671
|
-
).join('", "')}".${
|
|
3699
|
+
).join('", "')}".${_e(R()) ? `
|
|
3672
3700
|
|
|
3673
3701
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3674
3702
|
);
|
|
3675
3703
|
}
|
|
3676
|
-
const
|
|
3704
|
+
const ti = {
|
|
3677
3705
|
fallbackLocale: null,
|
|
3678
3706
|
loadingDelay: 200,
|
|
3679
|
-
formats:
|
|
3707
|
+
formats: Kn,
|
|
3680
3708
|
warnOnMissingMessages: !0,
|
|
3681
3709
|
handleMissingMessage: void 0,
|
|
3682
3710
|
ignoreTag: !0
|
|
3683
|
-
},
|
|
3684
|
-
function
|
|
3685
|
-
return
|
|
3711
|
+
}, K = ti;
|
|
3712
|
+
function Z() {
|
|
3713
|
+
return K;
|
|
3686
3714
|
}
|
|
3687
|
-
function
|
|
3688
|
-
const t = e, { formats: r } = t, n =
|
|
3715
|
+
function ri(e) {
|
|
3716
|
+
const t = e, { formats: r } = t, n = Yn(t, ["formats"]);
|
|
3689
3717
|
let i = e.fallbackLocale;
|
|
3690
3718
|
if (e.initialLocale)
|
|
3691
3719
|
try {
|
|
@@ -3695,152 +3723,152 @@ function ni(e) {
|
|
|
3695
3723
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3696
3724
|
);
|
|
3697
3725
|
}
|
|
3698
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3726
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ei : console.warn(
|
|
3699
3727
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3700
|
-
)), Object.assign(
|
|
3728
|
+
)), Object.assign(K, n, { initialLocale: i }), r && ("number" in r && Object.assign(K.formats.number, r.number), "date" in r && Object.assign(K.formats.date, r.date), "time" in r && Object.assign(K.formats.time, r.time)), U.set(i);
|
|
3701
3729
|
}
|
|
3702
|
-
const
|
|
3703
|
-
var
|
|
3730
|
+
const Le = xe(!1);
|
|
3731
|
+
var ni = Object.defineProperty, ii = Object.defineProperties, si = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, ai = Object.prototype.hasOwnProperty, oi = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ui = (e, t) => {
|
|
3704
3732
|
for (var r in t || (t = {}))
|
|
3705
3733
|
ai.call(t, r) && gt(e, r, t[r]);
|
|
3706
|
-
if (
|
|
3707
|
-
for (var r of
|
|
3708
|
-
|
|
3734
|
+
if (pt)
|
|
3735
|
+
for (var r of pt(t))
|
|
3736
|
+
oi.call(t, r) && gt(e, r, t[r]);
|
|
3709
3737
|
return e;
|
|
3710
|
-
},
|
|
3711
|
-
let
|
|
3712
|
-
const
|
|
3738
|
+
}, li = (e, t) => ii(e, si(t));
|
|
3739
|
+
let Ve;
|
|
3740
|
+
const Ee = xe(null);
|
|
3713
3741
|
function yt(e) {
|
|
3714
3742
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3715
3743
|
}
|
|
3716
|
-
function ae(e, t =
|
|
3744
|
+
function ae(e, t = Z().fallbackLocale) {
|
|
3717
3745
|
const r = yt(e);
|
|
3718
3746
|
return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
|
|
3719
3747
|
}
|
|
3720
|
-
function
|
|
3721
|
-
return
|
|
3748
|
+
function R() {
|
|
3749
|
+
return Ve != null ? Ve : void 0;
|
|
3722
3750
|
}
|
|
3723
|
-
|
|
3724
|
-
|
|
3751
|
+
Ee.subscribe((e) => {
|
|
3752
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3725
3753
|
});
|
|
3726
|
-
const
|
|
3727
|
-
if (e &&
|
|
3728
|
-
const { loadingDelay: t } =
|
|
3754
|
+
const hi = (e) => {
|
|
3755
|
+
if (e && Xn(e) && _e(e)) {
|
|
3756
|
+
const { loadingDelay: t } = Z();
|
|
3729
3757
|
let r;
|
|
3730
|
-
return typeof window != "undefined" &&
|
|
3731
|
-
() =>
|
|
3758
|
+
return typeof window != "undefined" && R() != null && t ? r = window.setTimeout(
|
|
3759
|
+
() => Le.set(!0),
|
|
3732
3760
|
t
|
|
3733
|
-
) :
|
|
3734
|
-
|
|
3761
|
+
) : Le.set(!0), er(e).then(() => {
|
|
3762
|
+
Ee.set(e);
|
|
3735
3763
|
}).finally(() => {
|
|
3736
|
-
clearTimeout(r),
|
|
3764
|
+
clearTimeout(r), Le.set(!1);
|
|
3737
3765
|
});
|
|
3738
3766
|
}
|
|
3739
|
-
return
|
|
3740
|
-
},
|
|
3741
|
-
set:
|
|
3742
|
-
}),
|
|
3767
|
+
return Ee.set(e);
|
|
3768
|
+
}, U = li(ui({}, Ee), {
|
|
3769
|
+
set: hi
|
|
3770
|
+
}), we = (e) => {
|
|
3743
3771
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3744
3772
|
return (n) => {
|
|
3745
3773
|
const i = JSON.stringify(n);
|
|
3746
3774
|
return i in t ? t[i] : t[i] = e(n);
|
|
3747
3775
|
};
|
|
3748
3776
|
};
|
|
3749
|
-
var
|
|
3777
|
+
var ci = Object.defineProperty, ve = Object.getOwnPropertySymbols, tr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
3750
3778
|
for (var r in t || (t = {}))
|
|
3751
3779
|
tr.call(t, r) && _t(e, r, t[r]);
|
|
3752
|
-
if (
|
|
3753
|
-
for (var r of
|
|
3780
|
+
if (ve)
|
|
3781
|
+
for (var r of ve(t))
|
|
3754
3782
|
rr.call(t, r) && _t(e, r, t[r]);
|
|
3755
3783
|
return e;
|
|
3756
|
-
},
|
|
3784
|
+
}, Q = (e, t) => {
|
|
3757
3785
|
var r = {};
|
|
3758
3786
|
for (var n in e)
|
|
3759
3787
|
tr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3760
|
-
if (e != null &&
|
|
3761
|
-
for (var n of
|
|
3788
|
+
if (e != null && ve)
|
|
3789
|
+
for (var n of ve(e))
|
|
3762
3790
|
t.indexOf(n) < 0 && rr.call(e, n) && (r[n] = e[n]);
|
|
3763
3791
|
return r;
|
|
3764
3792
|
};
|
|
3765
|
-
const
|
|
3766
|
-
const { formats: r } =
|
|
3793
|
+
const ne = (e, t) => {
|
|
3794
|
+
const { formats: r } = Z();
|
|
3767
3795
|
if (e in r && t in r[e])
|
|
3768
3796
|
return r[e][t];
|
|
3769
3797
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3770
|
-
},
|
|
3798
|
+
}, fi = we(
|
|
3771
3799
|
(e) => {
|
|
3772
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3800
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3773
3801
|
if (r == null)
|
|
3774
3802
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3775
|
-
return n && (i =
|
|
3803
|
+
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
3776
3804
|
}
|
|
3777
|
-
),
|
|
3805
|
+
), mi = we(
|
|
3778
3806
|
(e) => {
|
|
3779
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3807
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3780
3808
|
if (r == null)
|
|
3781
3809
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3782
|
-
return n ? i =
|
|
3810
|
+
return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3783
3811
|
}
|
|
3784
|
-
),
|
|
3812
|
+
), di = we(
|
|
3785
3813
|
(e) => {
|
|
3786
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3814
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3787
3815
|
if (r == null)
|
|
3788
3816
|
throw new Error(
|
|
3789
3817
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3790
3818
|
);
|
|
3791
|
-
return n ? i =
|
|
3819
|
+
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3792
3820
|
}
|
|
3793
3821
|
), bi = (e = {}) => {
|
|
3794
3822
|
var t = e, {
|
|
3795
|
-
locale: r =
|
|
3796
|
-
} = t, n =
|
|
3823
|
+
locale: r = R()
|
|
3824
|
+
} = t, n = Q(t, [
|
|
3797
3825
|
"locale"
|
|
3798
3826
|
]);
|
|
3799
|
-
return
|
|
3800
|
-
},
|
|
3827
|
+
return fi(Qe({ locale: r }, n));
|
|
3828
|
+
}, pi = (e = {}) => {
|
|
3801
3829
|
var t = e, {
|
|
3802
|
-
locale: r =
|
|
3803
|
-
} = t, n =
|
|
3830
|
+
locale: r = R()
|
|
3831
|
+
} = t, n = Q(t, [
|
|
3804
3832
|
"locale"
|
|
3805
3833
|
]);
|
|
3806
|
-
return
|
|
3807
|
-
},
|
|
3834
|
+
return mi(Qe({ locale: r }, n));
|
|
3835
|
+
}, gi = (e = {}) => {
|
|
3808
3836
|
var t = e, {
|
|
3809
|
-
locale: r =
|
|
3810
|
-
} = t, n =
|
|
3837
|
+
locale: r = R()
|
|
3838
|
+
} = t, n = Q(t, [
|
|
3811
3839
|
"locale"
|
|
3812
3840
|
]);
|
|
3813
|
-
return
|
|
3814
|
-
},
|
|
3841
|
+
return di(Qe({ locale: r }, n));
|
|
3842
|
+
}, yi = we(
|
|
3815
3843
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3816
|
-
(e, t =
|
|
3817
|
-
ignoreTag:
|
|
3844
|
+
(e, t = R()) => new Jt(e, t, Z().formats, {
|
|
3845
|
+
ignoreTag: Z().ignoreTag
|
|
3818
3846
|
})
|
|
3819
|
-
),
|
|
3847
|
+
), _i = (e, t = {}) => {
|
|
3820
3848
|
var r, n, i, s;
|
|
3821
|
-
let
|
|
3822
|
-
typeof e == "object" && (
|
|
3849
|
+
let a = t;
|
|
3850
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
3823
3851
|
const {
|
|
3824
|
-
values:
|
|
3825
|
-
locale: l =
|
|
3852
|
+
values: o,
|
|
3853
|
+
locale: l = R(),
|
|
3826
3854
|
default: u
|
|
3827
|
-
} =
|
|
3855
|
+
} = a;
|
|
3828
3856
|
if (l == null)
|
|
3829
3857
|
throw new Error(
|
|
3830
3858
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3831
3859
|
);
|
|
3832
3860
|
let h = qt(e, l);
|
|
3833
3861
|
if (!h)
|
|
3834
|
-
h = (s = (i = (n = (r =
|
|
3862
|
+
h = (s = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
|
|
3835
3863
|
else if (typeof h != "string")
|
|
3836
3864
|
return console.warn(
|
|
3837
3865
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3838
3866
|
), h;
|
|
3839
|
-
if (!
|
|
3867
|
+
if (!o)
|
|
3840
3868
|
return h;
|
|
3841
3869
|
let f = h;
|
|
3842
3870
|
try {
|
|
3843
|
-
f =
|
|
3871
|
+
f = yi(h, l).format(o);
|
|
3844
3872
|
} catch (c) {
|
|
3845
3873
|
c instanceof Error && console.warn(
|
|
3846
3874
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3848,11 +3876,11 @@ const ie = (e, t) => {
|
|
|
3848
3876
|
);
|
|
3849
3877
|
}
|
|
3850
3878
|
return f;
|
|
3851
|
-
},
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3879
|
+
}, Ei = (e, t) => gi(t).format(e), vi = (e, t) => pi(t).format(e), xi = (e, t) => bi(t).format(e), Ti = (e, t = R()) => qt(e, t), Hi = q([U, se], () => _i);
|
|
3880
|
+
q([U], () => Ei);
|
|
3881
|
+
q([U], () => vi);
|
|
3882
|
+
q([U], () => xi);
|
|
3883
|
+
q([U, se], () => Ti);
|
|
3856
3884
|
function wi(e, t) {
|
|
3857
3885
|
if (e) {
|
|
3858
3886
|
const r = document.createElement("style");
|
|
@@ -3868,7 +3896,7 @@ function Bi(e, t) {
|
|
|
3868
3896
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
3869
3897
|
});
|
|
3870
3898
|
}
|
|
3871
|
-
function
|
|
3899
|
+
function Si(e, t, r) {
|
|
3872
3900
|
if (window.emMessageBus) {
|
|
3873
3901
|
const n = document.createElement("style");
|
|
3874
3902
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -3879,10 +3907,10 @@ function Ai(e, t, r) {
|
|
|
3879
3907
|
function Et(e, t) {
|
|
3880
3908
|
Yt(e, t);
|
|
3881
3909
|
}
|
|
3882
|
-
function
|
|
3883
|
-
|
|
3910
|
+
function Ai(e) {
|
|
3911
|
+
ri({
|
|
3884
3912
|
fallbackLocale: "en"
|
|
3885
|
-
}),
|
|
3913
|
+
}), U.set(e);
|
|
3886
3914
|
}
|
|
3887
3915
|
const vt = {
|
|
3888
3916
|
en: {
|
|
@@ -3938,92 +3966,92 @@ const vt = {
|
|
|
3938
3966
|
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."
|
|
3939
3967
|
}
|
|
3940
3968
|
};
|
|
3941
|
-
function
|
|
3969
|
+
function Pi(e) {
|
|
3942
3970
|
fr(e, "svelte-s6qloq", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto}.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-black, #000);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-gray-290, #666);font-weight:var(--emw--font-weight-normal, 400);font-size:var(--emw--font-size-small, 14px);line-height:125%;text-align:center}.ImagePlaceholder{margin-top:20px;height:200px;width:100%;background:#E6E6E6}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #FFF);text-align:center;cursor:pointer;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:120%;border:none;border-radius:var(--emw--border-radius-medium, 4px);background:var(--emw--color-primary, #7EC51E)}.CashierErrorButton:hover{background:var(--emw--color-main-button-hover, #71B11B)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #5C950F)}.CashierErrorContent ui-image img{width:300px}");
|
|
3943
3971
|
}
|
|
3944
|
-
const
|
|
3945
|
-
function
|
|
3972
|
+
const Oi = (e) => ({}), xt = (e) => ({}), Ii = (e) => ({}), Tt = (e) => ({}), Ci = (e) => ({}), Ht = (e) => ({}), Ni = (e) => ({}), wt = (e) => ({ class: "CashierErrorIcon" });
|
|
3973
|
+
function Li(e) {
|
|
3946
3974
|
let t;
|
|
3947
3975
|
return {
|
|
3948
3976
|
c() {
|
|
3949
|
-
t =
|
|
3977
|
+
t = O("div"), M(t, "class", "ImagePlaceholder Error");
|
|
3950
3978
|
},
|
|
3951
3979
|
m(r, n) {
|
|
3952
|
-
|
|
3980
|
+
$(r, t, n);
|
|
3953
3981
|
},
|
|
3954
|
-
p:
|
|
3982
|
+
p: P,
|
|
3955
3983
|
d(r) {
|
|
3956
|
-
r &&
|
|
3984
|
+
r && C(t);
|
|
3957
3985
|
}
|
|
3958
3986
|
};
|
|
3959
3987
|
}
|
|
3960
|
-
function
|
|
3988
|
+
function Mi(e) {
|
|
3961
3989
|
let t, r;
|
|
3962
3990
|
return {
|
|
3963
3991
|
c() {
|
|
3964
|
-
t =
|
|
3965
|
-
e[0]}/error-general-icon.png`) ||
|
|
3992
|
+
t = O("ui-image"), it(t.src, r = `${/*assetsurl*/
|
|
3993
|
+
e[0]}/error-general-icon.png`) || le(t, "src", r), le(t, "width", "300px"), le(t, "alt", "error");
|
|
3966
3994
|
},
|
|
3967
3995
|
m(n, i) {
|
|
3968
|
-
|
|
3996
|
+
$(n, t, i);
|
|
3969
3997
|
},
|
|
3970
3998
|
p(n, i) {
|
|
3971
3999
|
i & /*assetsurl*/
|
|
3972
4000
|
1 && !it(t.src, r = `${/*assetsurl*/
|
|
3973
|
-
n[0]}/error-general-icon.png`) &&
|
|
4001
|
+
n[0]}/error-general-icon.png`) && le(t, "src", r);
|
|
3974
4002
|
},
|
|
3975
4003
|
d(n) {
|
|
3976
|
-
n &&
|
|
4004
|
+
n && C(t);
|
|
3977
4005
|
}
|
|
3978
4006
|
};
|
|
3979
4007
|
}
|
|
3980
|
-
function
|
|
4008
|
+
function $i(e) {
|
|
3981
4009
|
let t;
|
|
3982
|
-
function r(s,
|
|
4010
|
+
function r(s, a) {
|
|
3983
4011
|
return (
|
|
3984
4012
|
/*assetsurl*/
|
|
3985
|
-
s[0] ?
|
|
4013
|
+
s[0] ? Mi : Li
|
|
3986
4014
|
);
|
|
3987
4015
|
}
|
|
3988
4016
|
let n = r(e), i = n(e);
|
|
3989
4017
|
return {
|
|
3990
4018
|
c() {
|
|
3991
|
-
i.c(), t =
|
|
4019
|
+
i.c(), t = br();
|
|
3992
4020
|
},
|
|
3993
|
-
m(s,
|
|
3994
|
-
i.m(s,
|
|
4021
|
+
m(s, a) {
|
|
4022
|
+
i.m(s, a), $(s, t, a);
|
|
3995
4023
|
},
|
|
3996
|
-
p(s,
|
|
3997
|
-
n === (n = r(s)) && i ? i.p(s,
|
|
4024
|
+
p(s, a) {
|
|
4025
|
+
n === (n = r(s)) && i ? i.p(s, a) : (i.d(1), i = n(s), i && (i.c(), i.m(t.parentNode, t)));
|
|
3998
4026
|
},
|
|
3999
4027
|
d(s) {
|
|
4000
|
-
s &&
|
|
4028
|
+
s && C(t), i.d(s);
|
|
4001
4029
|
}
|
|
4002
4030
|
};
|
|
4003
4031
|
}
|
|
4004
|
-
function
|
|
4032
|
+
function Ri(e) {
|
|
4005
4033
|
let t, r = (
|
|
4006
4034
|
/*$_*/
|
|
4007
4035
|
e[4]("errorGeneralTitle") + ""
|
|
4008
4036
|
), n;
|
|
4009
4037
|
return {
|
|
4010
4038
|
c() {
|
|
4011
|
-
t =
|
|
4039
|
+
t = O("span"), n = ie(r), M(t, "class", "CashierErrorTitle");
|
|
4012
4040
|
},
|
|
4013
4041
|
m(i, s) {
|
|
4014
|
-
|
|
4042
|
+
$(i, t, s), I(t, n);
|
|
4015
4043
|
},
|
|
4016
4044
|
p(i, s) {
|
|
4017
4045
|
s & /*$_*/
|
|
4018
4046
|
16 && r !== (r = /*$_*/
|
|
4019
|
-
i[4]("errorGeneralTitle") + "") &&
|
|
4047
|
+
i[4]("errorGeneralTitle") + "") && We(n, r);
|
|
4020
4048
|
},
|
|
4021
4049
|
d(i) {
|
|
4022
|
-
i &&
|
|
4050
|
+
i && C(t);
|
|
4023
4051
|
}
|
|
4024
4052
|
};
|
|
4025
4053
|
}
|
|
4026
|
-
function
|
|
4054
|
+
function Di(e) {
|
|
4027
4055
|
let t, r = (
|
|
4028
4056
|
/*$_*/
|
|
4029
4057
|
e[4](`${/*errorcode*/
|
|
@@ -4031,230 +4059,230 @@ function Ui(e) {
|
|
|
4031
4059
|
), n;
|
|
4032
4060
|
return {
|
|
4033
4061
|
c() {
|
|
4034
|
-
t =
|
|
4062
|
+
t = O("span"), n = ie(r), M(t, "class", "CashierErrorText");
|
|
4035
4063
|
},
|
|
4036
4064
|
m(i, s) {
|
|
4037
|
-
|
|
4065
|
+
$(i, t, s), I(t, n);
|
|
4038
4066
|
},
|
|
4039
4067
|
p(i, s) {
|
|
4040
4068
|
s & /*$_, errorcode*/
|
|
4041
4069
|
20 && r !== (r = /*$_*/
|
|
4042
4070
|
i[4](`${/*errorcode*/
|
|
4043
|
-
i[2] || "errorGeneralText"}`) + "") &&
|
|
4071
|
+
i[2] || "errorGeneralText"}`) + "") && We(n, r);
|
|
4044
4072
|
},
|
|
4045
4073
|
d(i) {
|
|
4046
|
-
i &&
|
|
4074
|
+
i && C(t);
|
|
4047
4075
|
}
|
|
4048
4076
|
};
|
|
4049
4077
|
}
|
|
4050
|
-
function
|
|
4078
|
+
function Bt(e) {
|
|
4051
4079
|
let t;
|
|
4052
4080
|
const r = (
|
|
4053
4081
|
/*#slots*/
|
|
4054
4082
|
e[12].button
|
|
4055
|
-
), n =
|
|
4083
|
+
), n = ce(
|
|
4056
4084
|
r,
|
|
4057
4085
|
e,
|
|
4058
4086
|
/*$$scope*/
|
|
4059
4087
|
e[11],
|
|
4060
4088
|
xt
|
|
4061
|
-
), i = n ||
|
|
4089
|
+
), i = n || Ui(e);
|
|
4062
4090
|
return {
|
|
4063
4091
|
c() {
|
|
4064
4092
|
i && i.c();
|
|
4065
4093
|
},
|
|
4066
|
-
m(s,
|
|
4067
|
-
i && i.m(s,
|
|
4094
|
+
m(s, a) {
|
|
4095
|
+
i && i.m(s, a), t = !0;
|
|
4068
4096
|
},
|
|
4069
|
-
p(s,
|
|
4070
|
-
n ? n.p && (!t ||
|
|
4071
|
-
2048) &&
|
|
4097
|
+
p(s, a) {
|
|
4098
|
+
n ? n.p && (!t || a & /*$$scope*/
|
|
4099
|
+
2048) && me(
|
|
4072
4100
|
n,
|
|
4073
4101
|
r,
|
|
4074
4102
|
s,
|
|
4075
4103
|
/*$$scope*/
|
|
4076
4104
|
s[11],
|
|
4077
|
-
t ?
|
|
4105
|
+
t ? fe(
|
|
4078
4106
|
r,
|
|
4079
4107
|
/*$$scope*/
|
|
4080
4108
|
s[11],
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
) :
|
|
4109
|
+
a,
|
|
4110
|
+
Oi
|
|
4111
|
+
) : de(
|
|
4084
4112
|
/*$$scope*/
|
|
4085
4113
|
s[11]
|
|
4086
4114
|
),
|
|
4087
4115
|
xt
|
|
4088
|
-
) : i && i.p && (!t ||
|
|
4089
|
-
16) && i.p(s, t ?
|
|
4116
|
+
) : i && i.p && (!t || a & /*$_*/
|
|
4117
|
+
16) && i.p(s, t ? a : -1);
|
|
4090
4118
|
},
|
|
4091
4119
|
i(s) {
|
|
4092
|
-
t || (
|
|
4120
|
+
t || (N(i, s), t = !0);
|
|
4093
4121
|
},
|
|
4094
4122
|
o(s) {
|
|
4095
|
-
|
|
4123
|
+
j(i, s), t = !1;
|
|
4096
4124
|
},
|
|
4097
4125
|
d(s) {
|
|
4098
4126
|
i && i.d(s);
|
|
4099
4127
|
}
|
|
4100
4128
|
};
|
|
4101
4129
|
}
|
|
4102
|
-
function
|
|
4130
|
+
function Ui(e) {
|
|
4103
4131
|
let t, r, n = (
|
|
4104
4132
|
/*$_*/
|
|
4105
4133
|
e[4]("errorGeneralButton") + ""
|
|
4106
|
-
), i, s,
|
|
4134
|
+
), i, s, a;
|
|
4107
4135
|
return {
|
|
4108
4136
|
c() {
|
|
4109
|
-
t =
|
|
4137
|
+
t = O("button"), r = O("span"), i = ie(n), M(t, "class", "CashierErrorButton");
|
|
4110
4138
|
},
|
|
4111
|
-
m(
|
|
4112
|
-
|
|
4139
|
+
m(o, l) {
|
|
4140
|
+
$(o, t, l), I(t, r), I(r, i), s || (a = pr(
|
|
4113
4141
|
t,
|
|
4114
4142
|
"click",
|
|
4115
4143
|
/*close*/
|
|
4116
4144
|
e[5]
|
|
4117
4145
|
), s = !0);
|
|
4118
4146
|
},
|
|
4119
|
-
p(
|
|
4147
|
+
p(o, l) {
|
|
4120
4148
|
l & /*$_*/
|
|
4121
4149
|
16 && n !== (n = /*$_*/
|
|
4122
|
-
|
|
4150
|
+
o[4]("errorGeneralButton") + "") && We(i, n);
|
|
4123
4151
|
},
|
|
4124
|
-
d(
|
|
4125
|
-
|
|
4152
|
+
d(o) {
|
|
4153
|
+
o && C(t), s = !1, a();
|
|
4126
4154
|
}
|
|
4127
4155
|
};
|
|
4128
4156
|
}
|
|
4129
|
-
function
|
|
4130
|
-
let t, r, n, i, s,
|
|
4131
|
-
const
|
|
4157
|
+
function Gi(e) {
|
|
4158
|
+
let t, r, n, i, s, a;
|
|
4159
|
+
const o = (
|
|
4132
4160
|
/*#slots*/
|
|
4133
4161
|
e[12].icon
|
|
4134
|
-
), l =
|
|
4135
|
-
|
|
4162
|
+
), l = ce(
|
|
4163
|
+
o,
|
|
4136
4164
|
e,
|
|
4137
4165
|
/*$$scope*/
|
|
4138
4166
|
e[11],
|
|
4139
|
-
|
|
4140
|
-
), u = l ||
|
|
4167
|
+
wt
|
|
4168
|
+
), u = l || $i(e), h = (
|
|
4141
4169
|
/*#slots*/
|
|
4142
4170
|
e[12].title
|
|
4143
|
-
), f =
|
|
4171
|
+
), f = ce(
|
|
4144
4172
|
h,
|
|
4145
4173
|
e,
|
|
4146
4174
|
/*$$scope*/
|
|
4147
4175
|
e[11],
|
|
4148
4176
|
Ht
|
|
4149
|
-
), c = f ||
|
|
4177
|
+
), c = f || Ri(e), y = (
|
|
4150
4178
|
/*#slots*/
|
|
4151
4179
|
e[12].text
|
|
4152
|
-
),
|
|
4180
|
+
), b = ce(
|
|
4153
4181
|
y,
|
|
4154
4182
|
e,
|
|
4155
4183
|
/*$$scope*/
|
|
4156
4184
|
e[11],
|
|
4157
4185
|
Tt
|
|
4158
|
-
),
|
|
4159
|
-
let
|
|
4186
|
+
), v = b || Di(e);
|
|
4187
|
+
let E = (!/*hidebuttons*/
|
|
4160
4188
|
e[1] || /*hidebuttons*/
|
|
4161
|
-
e[1] === "false") &&
|
|
4189
|
+
e[1] === "false") && Bt(e);
|
|
4162
4190
|
return {
|
|
4163
4191
|
c() {
|
|
4164
|
-
t =
|
|
4192
|
+
t = O("div"), r = O("div"), u && u.c(), n = Se(), c && c.c(), i = Se(), v && v.c(), s = Se(), E && E.c(), M(r, "class", "CashierErrorContent"), M(t, "class", "CashierError");
|
|
4165
4193
|
},
|
|
4166
|
-
m(m,
|
|
4167
|
-
|
|
4194
|
+
m(m, x) {
|
|
4195
|
+
$(m, t, x), I(t, r), u && u.m(r, null), I(r, n), c && c.m(r, null), I(r, i), v && v.m(r, null), I(r, s), E && E.m(r, null), e[13](t), a = !0;
|
|
4168
4196
|
},
|
|
4169
|
-
p(m, [
|
|
4170
|
-
l ? l.p && (!
|
|
4171
|
-
2048) &&
|
|
4197
|
+
p(m, [x]) {
|
|
4198
|
+
l ? l.p && (!a || x & /*$$scope*/
|
|
4199
|
+
2048) && me(
|
|
4172
4200
|
l,
|
|
4173
|
-
|
|
4201
|
+
o,
|
|
4174
4202
|
m,
|
|
4175
4203
|
/*$$scope*/
|
|
4176
4204
|
m[11],
|
|
4177
|
-
|
|
4178
|
-
|
|
4205
|
+
a ? fe(
|
|
4206
|
+
o,
|
|
4179
4207
|
/*$$scope*/
|
|
4180
4208
|
m[11],
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
) :
|
|
4209
|
+
x,
|
|
4210
|
+
Ni
|
|
4211
|
+
) : de(
|
|
4184
4212
|
/*$$scope*/
|
|
4185
4213
|
m[11]
|
|
4186
4214
|
),
|
|
4187
|
-
|
|
4188
|
-
) : u && u.p && (!
|
|
4189
|
-
1) && u.p(m,
|
|
4190
|
-
2048) &&
|
|
4215
|
+
wt
|
|
4216
|
+
) : u && u.p && (!a || x & /*assetsurl*/
|
|
4217
|
+
1) && u.p(m, a ? x : -1), f ? f.p && (!a || x & /*$$scope*/
|
|
4218
|
+
2048) && me(
|
|
4191
4219
|
f,
|
|
4192
4220
|
h,
|
|
4193
4221
|
m,
|
|
4194
4222
|
/*$$scope*/
|
|
4195
4223
|
m[11],
|
|
4196
|
-
|
|
4224
|
+
a ? fe(
|
|
4197
4225
|
h,
|
|
4198
4226
|
/*$$scope*/
|
|
4199
4227
|
m[11],
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
) :
|
|
4228
|
+
x,
|
|
4229
|
+
Ci
|
|
4230
|
+
) : de(
|
|
4203
4231
|
/*$$scope*/
|
|
4204
4232
|
m[11]
|
|
4205
4233
|
),
|
|
4206
4234
|
Ht
|
|
4207
|
-
) : c && c.p && (!
|
|
4208
|
-
16) && c.p(m,
|
|
4209
|
-
2048) &&
|
|
4210
|
-
|
|
4235
|
+
) : c && c.p && (!a || x & /*$_*/
|
|
4236
|
+
16) && c.p(m, a ? x : -1), b ? b.p && (!a || x & /*$$scope*/
|
|
4237
|
+
2048) && me(
|
|
4238
|
+
b,
|
|
4211
4239
|
y,
|
|
4212
4240
|
m,
|
|
4213
4241
|
/*$$scope*/
|
|
4214
4242
|
m[11],
|
|
4215
|
-
|
|
4243
|
+
a ? fe(
|
|
4216
4244
|
y,
|
|
4217
4245
|
/*$$scope*/
|
|
4218
4246
|
m[11],
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
) :
|
|
4247
|
+
x,
|
|
4248
|
+
Ii
|
|
4249
|
+
) : de(
|
|
4222
4250
|
/*$$scope*/
|
|
4223
4251
|
m[11]
|
|
4224
4252
|
),
|
|
4225
4253
|
Tt
|
|
4226
|
-
) :
|
|
4227
|
-
20) &&
|
|
4254
|
+
) : v && v.p && (!a || x & /*$_, errorcode*/
|
|
4255
|
+
20) && v.p(m, a ? x : -1), !/*hidebuttons*/
|
|
4228
4256
|
m[1] || /*hidebuttons*/
|
|
4229
|
-
m[1] === "false" ?
|
|
4230
|
-
2 &&
|
|
4231
|
-
|
|
4232
|
-
}),
|
|
4257
|
+
m[1] === "false" ? E ? (E.p(m, x), x & /*hidebuttons*/
|
|
4258
|
+
2 && N(E, 1)) : (E = Bt(m), E.c(), N(E, 1), E.m(r, null)) : E && (wr(), j(E, 1, 1, () => {
|
|
4259
|
+
E = null;
|
|
4260
|
+
}), Br());
|
|
4233
4261
|
},
|
|
4234
4262
|
i(m) {
|
|
4235
|
-
|
|
4263
|
+
a || (N(u, m), N(c, m), N(v, m), N(E), a = !0);
|
|
4236
4264
|
},
|
|
4237
4265
|
o(m) {
|
|
4238
|
-
|
|
4266
|
+
j(u, m), j(c, m), j(v, m), j(E), a = !1;
|
|
4239
4267
|
},
|
|
4240
4268
|
d(m) {
|
|
4241
|
-
m &&
|
|
4269
|
+
m && C(t), u && u.d(m), c && c.d(m), v && v.d(m), E && E.d(), e[13](null);
|
|
4242
4270
|
}
|
|
4243
4271
|
};
|
|
4244
4272
|
}
|
|
4245
|
-
function
|
|
4273
|
+
function ki(e, t, r) {
|
|
4246
4274
|
let n;
|
|
4247
|
-
cr(e,
|
|
4248
|
-
let { $$slots: i = {}, $$scope: s } = t, { assetsurl:
|
|
4249
|
-
const
|
|
4250
|
-
|
|
4251
|
-
},
|
|
4252
|
-
fetch(c).then((
|
|
4253
|
-
Object.keys(
|
|
4254
|
-
Et(
|
|
4275
|
+
cr(e, Hi, (d) => r(4, n = d));
|
|
4276
|
+
let { $$slots: i = {}, $$scope: s } = t, { assetsurl: a = "" } = t, { lang: o = "en" } = t, { hidebuttons: l = "" } = t, { errorcode: u = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: c = "" } = t, { mbsource: y = "" } = t, b;
|
|
4277
|
+
const v = () => {
|
|
4278
|
+
Ai(o);
|
|
4279
|
+
}, E = () => {
|
|
4280
|
+
fetch(c).then((w) => w.json()).then((w) => {
|
|
4281
|
+
Object.keys(w).forEach((S) => {
|
|
4282
|
+
Et(S, w[S]);
|
|
4255
4283
|
});
|
|
4256
|
-
}).catch((
|
|
4257
|
-
console.error(
|
|
4284
|
+
}).catch((w) => {
|
|
4285
|
+
console.error(w);
|
|
4258
4286
|
});
|
|
4259
4287
|
};
|
|
4260
4288
|
Object.keys(vt).forEach((d) => {
|
|
@@ -4265,35 +4293,35 @@ function Fi(e, t, r) {
|
|
|
4265
4293
|
};
|
|
4266
4294
|
Er(() => () => {
|
|
4267
4295
|
});
|
|
4268
|
-
function
|
|
4269
|
-
|
|
4270
|
-
|
|
4296
|
+
function x(d) {
|
|
4297
|
+
Me[d ? "unshift" : "push"](() => {
|
|
4298
|
+
b = d, r(3, b);
|
|
4271
4299
|
});
|
|
4272
4300
|
}
|
|
4273
4301
|
return e.$$set = (d) => {
|
|
4274
|
-
"assetsurl" in d && r(0,
|
|
4302
|
+
"assetsurl" in d && r(0, a = d.assetsurl), "lang" in d && r(6, o = d.lang), "hidebuttons" in d && r(1, l = d.hidebuttons), "errorcode" in d && r(2, u = d.errorcode), "clientstyling" in d && r(7, h = d.clientstyling), "clientstylingurl" in d && r(8, f = d.clientstylingurl), "translationurl" in d && r(9, c = d.translationurl), "mbsource" in d && r(10, y = d.mbsource), "$$scope" in d && r(11, s = d.$$scope);
|
|
4275
4303
|
}, e.$$.update = () => {
|
|
4276
4304
|
e.$$.dirty & /*lang*/
|
|
4277
|
-
64 &&
|
|
4278
|
-
136 && h &&
|
|
4279
|
-
264 && f &&
|
|
4280
|
-
1032 && y &&
|
|
4281
|
-
512 && c &&
|
|
4305
|
+
64 && o && v(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4306
|
+
136 && h && b && wi(b, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4307
|
+
264 && f && b && Bi(b, f), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4308
|
+
1032 && y && b && Si(b, `${y}.Style`), e.$$.dirty & /*translationurl*/
|
|
4309
|
+
512 && c && E();
|
|
4282
4310
|
}, [
|
|
4283
|
-
|
|
4311
|
+
a,
|
|
4284
4312
|
l,
|
|
4285
4313
|
u,
|
|
4286
|
-
|
|
4314
|
+
b,
|
|
4287
4315
|
n,
|
|
4288
4316
|
m,
|
|
4289
|
-
|
|
4317
|
+
o,
|
|
4290
4318
|
h,
|
|
4291
4319
|
f,
|
|
4292
4320
|
c,
|
|
4293
4321
|
y,
|
|
4294
4322
|
s,
|
|
4295
4323
|
i,
|
|
4296
|
-
|
|
4324
|
+
x
|
|
4297
4325
|
];
|
|
4298
4326
|
}
|
|
4299
4327
|
class nr extends Cr {
|
|
@@ -4301,8 +4329,8 @@ class nr extends Cr {
|
|
|
4301
4329
|
super(), Or(
|
|
4302
4330
|
this,
|
|
4303
4331
|
t,
|
|
4304
|
-
Fi,
|
|
4305
4332
|
ki,
|
|
4333
|
+
Gi,
|
|
4306
4334
|
At,
|
|
4307
4335
|
{
|
|
4308
4336
|
assetsurl: 0,
|
|
@@ -4314,7 +4342,7 @@ class nr extends Cr {
|
|
|
4314
4342
|
translationurl: 9,
|
|
4315
4343
|
mbsource: 10
|
|
4316
4344
|
},
|
|
4317
|
-
|
|
4345
|
+
Pi
|
|
4318
4346
|
);
|
|
4319
4347
|
}
|
|
4320
4348
|
get assetsurl() {
|
|
@@ -4367,43 +4395,47 @@ class nr extends Cr {
|
|
|
4367
4395
|
}
|
|
4368
4396
|
}
|
|
4369
4397
|
Ir(nr, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4370
|
-
const
|
|
4398
|
+
const Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4371
4399
|
__proto__: null,
|
|
4372
4400
|
default: nr
|
|
4373
4401
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4374
4402
|
export {
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4403
|
+
U as $,
|
|
4404
|
+
ie as A,
|
|
4405
|
+
br as B,
|
|
4406
|
+
I as C,
|
|
4407
|
+
We as D,
|
|
4408
|
+
pr as E,
|
|
4409
|
+
Vi as F,
|
|
4410
|
+
zi as G,
|
|
4411
|
+
it as H,
|
|
4412
|
+
Ji as I,
|
|
4382
4413
|
Cr as S,
|
|
4414
|
+
Wi as _,
|
|
4383
4415
|
Yt as a,
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4416
|
+
Pe as b,
|
|
4417
|
+
Xi as c,
|
|
4418
|
+
Zi as d,
|
|
4419
|
+
Te as e,
|
|
4420
|
+
Or as f,
|
|
4389
4421
|
Mr as g,
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4422
|
+
A as h,
|
|
4423
|
+
ri as i,
|
|
4424
|
+
Ir as j,
|
|
4425
|
+
fr as k,
|
|
4426
|
+
O as l,
|
|
4427
|
+
M as m,
|
|
4428
|
+
$ as n,
|
|
4429
|
+
P as o,
|
|
4430
|
+
C as p,
|
|
4431
|
+
cr as q,
|
|
4432
|
+
Er as r,
|
|
4401
4433
|
At as s,
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4434
|
+
Bi as t,
|
|
4435
|
+
Si as u,
|
|
4436
|
+
Me as v,
|
|
4437
|
+
wi as w,
|
|
4438
|
+
le as x,
|
|
4439
|
+
Hi as y,
|
|
4440
|
+
Se as z
|
|
4409
4441
|
};
|