@everymatrix/cashier-error 1.77.18 → 1.77.20
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-B2YHI7js.cjs +18 -0
- package/components/{CashierError-OmH93Eyn.js → CashierError-DVQMfATa.js} +807 -813
- package/components/{CashierError-DkeM_bkc.js → CashierError-Zqr3hWHZ.js} +789 -795
- package/es2015/cashier-error.cjs +1 -1
- package/es2015/cashier-error.js +1 -1
- package/esnext/cashier-error.js +1 -1
- package/package.json +1 -1
- package/stencil/{index-97d17652-CCFHkzJw.js → index-97d17652-B0NIExnR.js} +2 -2
- package/stencil/{index-97d17652--F7PvMq9.js → index-97d17652-D6HPqRtr.js} +2 -2
- package/stencil/index-97d17652-DNpK20ur.cjs +1 -0
- package/stencil/{ui-image-CHeV8e9p.js → ui-image-BY8ZO6br.js} +1 -1
- package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-DJSOH8ZL.cjs} +1 -1
- package/stencil/{ui-image-C7s6Uvn5.js → ui-image-DfVgiF6v.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-BXmf73Ou.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-DaWM2RbJ.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-c0NIgcTj.js} +1 -1
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-Cdo33umq.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-DbQ7SENq.js} +2 -2
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-L-CYescb.js} +2 -2
- package/components/CashierError-CbOMMFF_.cjs +0 -5
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var rr = Object.defineProperty, nr = Object.defineProperties;
|
|
2
|
+
var ir = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Qe = Object.getOwnPropertySymbols;
|
|
4
|
+
var or = Object.prototype.hasOwnProperty, sr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var we = (e, t, r) => t in e ? rr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ye = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
or.call(t, r) && we(e, r, t[r]);
|
|
8
|
+
if (Qe)
|
|
9
|
+
for (var r of Qe(t))
|
|
10
|
+
sr.call(t, r) && we(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, Ke = (e, t) => nr(e, ir(t));
|
|
13
|
+
var w = (e, t, r) => (we(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
|
+
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
a(r.next(l));
|
|
@@ -27,10 +27,10 @@ var rt = (e, t, r) => new Promise((n, i) => {
|
|
|
27
27
|
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(o, s);
|
|
28
28
|
a((r = r.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
import "../stencil/ui-image-
|
|
31
|
-
function
|
|
30
|
+
import "../stencil/ui-image-DfVgiF6v.js";
|
|
31
|
+
function O() {
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function ar(e, t) {
|
|
34
34
|
for (const r in t)
|
|
35
35
|
e[r] = t[r];
|
|
36
36
|
return (
|
|
@@ -38,50 +38,50 @@ function lr(e, t) {
|
|
|
38
38
|
e
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function wt(e) {
|
|
42
42
|
return e();
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function tt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
e.forEach(
|
|
47
|
+
function J(e) {
|
|
48
|
+
e.forEach(wt);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Xe(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function St(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
let
|
|
57
|
-
function
|
|
58
|
-
return e === t ? !0 : (
|
|
56
|
+
let ue;
|
|
57
|
+
function rt(e, t) {
|
|
58
|
+
return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function ur(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function At(e, ...t) {
|
|
64
64
|
if (e == null) {
|
|
65
65
|
for (const n of t)
|
|
66
66
|
n(void 0);
|
|
67
|
-
return
|
|
67
|
+
return O;
|
|
68
68
|
}
|
|
69
69
|
const r = e.subscribe(...t);
|
|
70
70
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
e.$$.on_destroy.push(
|
|
72
|
+
function lr(e, t, r) {
|
|
73
|
+
e.$$.on_destroy.push(At(t, r));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function ce(e, t, r, n) {
|
|
76
76
|
if (e) {
|
|
77
|
-
const i =
|
|
77
|
+
const i = Pt(e, t, r, n);
|
|
78
78
|
return e[0](i);
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return e[1] && n ?
|
|
81
|
+
function Pt(e, t, r, n) {
|
|
82
|
+
return e[1] && n ? ar(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)
|
|
@@ -96,13 +96,13 @@ function me(e, t, r, n) {
|
|
|
96
96
|
}
|
|
97
97
|
return t.dirty;
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function me(e, t, r, n, i, o) {
|
|
100
100
|
if (i) {
|
|
101
|
-
const s =
|
|
101
|
+
const s = Pt(t, r, n, o);
|
|
102
102
|
e.p(s, 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,17 +111,17 @@ function pe(e) {
|
|
|
111
111
|
}
|
|
112
112
|
return -1;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function P(e, t) {
|
|
115
115
|
e.appendChild(t);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
const n =
|
|
117
|
+
function hr(e, t, r) {
|
|
118
|
+
const n = cr(e);
|
|
119
119
|
if (!n.getElementById(t)) {
|
|
120
|
-
const i =
|
|
121
|
-
i.id = t, i.textContent = r,
|
|
120
|
+
const i = I("style");
|
|
121
|
+
i.id = t, i.textContent = r, fr(n, i);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function cr(e) {
|
|
125
125
|
if (!e)
|
|
126
126
|
return document;
|
|
127
127
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -131,49 +131,49 @@ function mr(e) {
|
|
|
131
131
|
t
|
|
132
132
|
) : e.ownerDocument;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
return
|
|
134
|
+
function fr(e, t) {
|
|
135
|
+
return P(
|
|
136
136
|
/** @type {Document} */
|
|
137
137
|
e.head || e,
|
|
138
138
|
t
|
|
139
139
|
), t.sheet;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function D(e, t, r) {
|
|
142
142
|
e.insertBefore(t, r || null);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function L(e) {
|
|
145
145
|
e.parentNode && e.parentNode.removeChild(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function I(e) {
|
|
148
148
|
return document.createElement(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function ie(e) {
|
|
151
151
|
return document.createTextNode(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
153
|
+
function Se() {
|
|
154
|
+
return ie(" ");
|
|
155
155
|
}
|
|
156
|
-
function
|
|
157
|
-
return
|
|
156
|
+
function mr() {
|
|
157
|
+
return ie("");
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function dr(e, t, r, n) {
|
|
160
160
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function R(e, t, r) {
|
|
163
163
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function le(e, t, r) {
|
|
166
166
|
const n = t.toLowerCase();
|
|
167
|
-
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r :
|
|
167
|
+
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : R(e, t, r);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function br(e) {
|
|
170
170
|
return Array.from(e.childNodes);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function We(e, t) {
|
|
173
173
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
174
174
|
t);
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function pr(e) {
|
|
177
177
|
const t = {};
|
|
178
178
|
return e.childNodes.forEach(
|
|
179
179
|
/** @param {Element} node */
|
|
@@ -182,87 +182,87 @@ function yr(e) {
|
|
|
182
182
|
}
|
|
183
183
|
), t;
|
|
184
184
|
}
|
|
185
|
-
let
|
|
186
|
-
function
|
|
187
|
-
|
|
185
|
+
let te;
|
|
186
|
+
function ee(e) {
|
|
187
|
+
te = e;
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
if (!
|
|
189
|
+
function gr() {
|
|
190
|
+
if (!te)
|
|
191
191
|
throw new Error("Function called outside component initialization");
|
|
192
|
-
return
|
|
192
|
+
return te;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
|
|
194
|
+
function yr(e) {
|
|
195
|
+
gr().$$.on_mount.push(e);
|
|
196
196
|
}
|
|
197
|
-
const
|
|
198
|
-
let
|
|
199
|
-
const
|
|
200
|
-
let
|
|
201
|
-
function
|
|
202
|
-
|
|
197
|
+
const F = [], Me = [];
|
|
198
|
+
let z = [];
|
|
199
|
+
const nt = [], _r = /* @__PURE__ */ Promise.resolve();
|
|
200
|
+
let $e = !1;
|
|
201
|
+
function Er() {
|
|
202
|
+
$e || ($e = !0, _r.then(A));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
204
|
+
function Re(e) {
|
|
205
|
+
z.push(e);
|
|
206
206
|
}
|
|
207
|
-
const
|
|
208
|
-
let
|
|
207
|
+
const Ae = /* @__PURE__ */ new Set();
|
|
208
|
+
let G = 0;
|
|
209
209
|
function A() {
|
|
210
|
-
if (
|
|
210
|
+
if (G !== 0)
|
|
211
211
|
return;
|
|
212
|
-
const e =
|
|
212
|
+
const e = te;
|
|
213
213
|
do {
|
|
214
214
|
try {
|
|
215
|
-
for (;
|
|
216
|
-
const t =
|
|
217
|
-
|
|
215
|
+
for (; G < F.length; ) {
|
|
216
|
+
const t = F[G];
|
|
217
|
+
G++, ee(t), vr(t.$$);
|
|
218
218
|
}
|
|
219
219
|
} catch (t) {
|
|
220
|
-
throw
|
|
220
|
+
throw F.length = 0, G = 0, t;
|
|
221
221
|
}
|
|
222
|
-
for (
|
|
223
|
-
|
|
224
|
-
for (let t = 0; t <
|
|
225
|
-
const r =
|
|
226
|
-
|
|
222
|
+
for (ee(null), F.length = 0, G = 0; Me.length; )
|
|
223
|
+
Me.pop()();
|
|
224
|
+
for (let t = 0; t < z.length; t += 1) {
|
|
225
|
+
const r = z[t];
|
|
226
|
+
Ae.has(r) || (Ae.add(r), r());
|
|
227
227
|
}
|
|
228
|
-
|
|
229
|
-
} while (
|
|
230
|
-
for (;
|
|
231
|
-
|
|
232
|
-
|
|
228
|
+
z.length = 0;
|
|
229
|
+
} while (F.length);
|
|
230
|
+
for (; nt.length; )
|
|
231
|
+
nt.pop()();
|
|
232
|
+
$e = !1, Ae.clear(), ee(e);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function vr(e) {
|
|
235
235
|
if (e.fragment !== null) {
|
|
236
|
-
e.update(),
|
|
236
|
+
e.update(), J(e.before_update);
|
|
237
237
|
const t = e.dirty;
|
|
238
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
238
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Re);
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function xr(e) {
|
|
242
242
|
const t = [], r = [];
|
|
243
|
-
|
|
243
|
+
z.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), z = t;
|
|
244
244
|
}
|
|
245
245
|
const be = /* @__PURE__ */ new Set();
|
|
246
|
-
let
|
|
247
|
-
function
|
|
248
|
-
|
|
246
|
+
let $;
|
|
247
|
+
function Tr() {
|
|
248
|
+
$ = {
|
|
249
249
|
r: 0,
|
|
250
250
|
c: [],
|
|
251
|
-
p:
|
|
251
|
+
p: $
|
|
252
252
|
// parent group
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
|
-
function
|
|
256
|
-
|
|
255
|
+
function Hr() {
|
|
256
|
+
$.r || J($.c), $ = $.p;
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function C(e, t) {
|
|
259
259
|
e && e.i && (be.delete(e), e.i(t));
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function j(e, t, r, n) {
|
|
262
262
|
if (e && e.o) {
|
|
263
263
|
if (be.has(e))
|
|
264
264
|
return;
|
|
265
|
-
be.add(e),
|
|
265
|
+
be.add(e), $.c.push(() => {
|
|
266
266
|
be.delete(e), n && (r && e.d(1), n());
|
|
267
267
|
}), e.o(t);
|
|
268
268
|
} else
|
|
@@ -270,29 +270,29 @@ function z(e, t, r, n) {
|
|
|
270
270
|
}
|
|
271
271
|
function Br(e, t, r) {
|
|
272
272
|
const { fragment: n, after_update: i } = e.$$;
|
|
273
|
-
n && n.m(t, r),
|
|
274
|
-
const o = e.$$.on_mount.map(
|
|
275
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
276
|
-
}), i.forEach(
|
|
273
|
+
n && n.m(t, r), Re(() => {
|
|
274
|
+
const o = e.$$.on_mount.map(wt).filter(Xe);
|
|
275
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
|
276
|
+
}), i.forEach(Re);
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function wr(e, t) {
|
|
279
279
|
const r = e.$$;
|
|
280
|
-
r.fragment !== null && (
|
|
280
|
+
r.fragment !== null && (xr(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
281
281
|
}
|
|
282
|
-
function
|
|
283
|
-
e.$$.dirty[0] === -1 && (
|
|
282
|
+
function Sr(e, t) {
|
|
283
|
+
e.$$.dirty[0] === -1 && (F.push(e), Er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
const l =
|
|
287
|
-
|
|
285
|
+
function Ar(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
286
|
+
const l = te;
|
|
287
|
+
ee(e);
|
|
288
288
|
const u = e.$$ = {
|
|
289
289
|
fragment: null,
|
|
290
290
|
ctx: [],
|
|
291
291
|
// state
|
|
292
292
|
props: o,
|
|
293
|
-
update:
|
|
293
|
+
update: O,
|
|
294
294
|
not_equal: i,
|
|
295
|
-
bound:
|
|
295
|
+
bound: tt(),
|
|
296
296
|
// lifecycle
|
|
297
297
|
on_mount: [],
|
|
298
298
|
on_destroy: [],
|
|
@@ -301,7 +301,7 @@ function Or(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
301
301
|
after_update: [],
|
|
302
302
|
context: new Map(t.context || (l ? l.$$.context : [])),
|
|
303
303
|
// everything else
|
|
304
|
-
callbacks:
|
|
304
|
+
callbacks: tt(),
|
|
305
305
|
dirty: a,
|
|
306
306
|
skip_bound: !1,
|
|
307
307
|
root: t.target || l.$$.root
|
|
@@ -309,40 +309,40 @@ function Or(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
309
309
|
s && s(u.root);
|
|
310
310
|
let h = !1;
|
|
311
311
|
if (u.ctx = r ? r(e, t.props || {}, (f, c, ...y) => {
|
|
312
|
-
const
|
|
313
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] =
|
|
314
|
-
}) : [], u.update(), h = !0,
|
|
312
|
+
const b = y.length ? y[0] : c;
|
|
313
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h && Sr(e, f)), c;
|
|
314
|
+
}) : [], u.update(), h = !0, J(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
315
315
|
if (t.hydrate) {
|
|
316
|
-
const f =
|
|
317
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
316
|
+
const f = br(t.target);
|
|
317
|
+
u.fragment && u.fragment.l(f), f.forEach(L);
|
|
318
318
|
} else
|
|
319
319
|
u.fragment && u.fragment.c();
|
|
320
|
-
t.intro &&
|
|
320
|
+
t.intro && C(e.$$.fragment), Br(e, t.target, t.anchor), A();
|
|
321
321
|
}
|
|
322
|
-
|
|
322
|
+
ee(l);
|
|
323
323
|
}
|
|
324
|
-
let
|
|
325
|
-
typeof HTMLElement == "function" && (
|
|
324
|
+
let Ot;
|
|
325
|
+
typeof HTMLElement == "function" && (Ot = class extends HTMLElement {
|
|
326
326
|
constructor(t, r, n) {
|
|
327
327
|
super();
|
|
328
328
|
/** The Svelte component constructor */
|
|
329
|
-
|
|
329
|
+
w(this, "$$ctor");
|
|
330
330
|
/** Slots */
|
|
331
|
-
|
|
331
|
+
w(this, "$$s");
|
|
332
332
|
/** The Svelte component instance */
|
|
333
|
-
|
|
333
|
+
w(this, "$$c");
|
|
334
334
|
/** Whether or not the custom element is connected */
|
|
335
|
-
|
|
335
|
+
w(this, "$$cn", !1);
|
|
336
336
|
/** Component props data */
|
|
337
|
-
|
|
337
|
+
w(this, "$$d", {});
|
|
338
338
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
339
|
-
|
|
339
|
+
w(this, "$$r", !1);
|
|
340
340
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
341
|
-
|
|
341
|
+
w(this, "$$p_d", {});
|
|
342
342
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
343
|
-
|
|
343
|
+
w(this, "$$l", {});
|
|
344
344
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
345
|
-
|
|
345
|
+
w(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
346
346
|
this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
347
347
|
}
|
|
348
348
|
addEventListener(t, r, n) {
|
|
@@ -359,42 +359,42 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
connectedCallback() {
|
|
362
|
-
return
|
|
362
|
+
return et(this, null, function* () {
|
|
363
363
|
if (this.$$cn = !0, !this.$$c) {
|
|
364
364
|
let t = function(o) {
|
|
365
365
|
return () => {
|
|
366
366
|
let s;
|
|
367
367
|
return {
|
|
368
368
|
c: function() {
|
|
369
|
-
s =
|
|
369
|
+
s = I("slot"), o !== "default" && R(s, "name", o);
|
|
370
370
|
},
|
|
371
371
|
/**
|
|
372
372
|
* @param {HTMLElement} target
|
|
373
373
|
* @param {HTMLElement} [anchor]
|
|
374
374
|
*/
|
|
375
375
|
m: function(u, h) {
|
|
376
|
-
|
|
376
|
+
D(u, s, h);
|
|
377
377
|
},
|
|
378
378
|
d: function(u) {
|
|
379
|
-
u &&
|
|
379
|
+
u && L(s);
|
|
380
380
|
}
|
|
381
381
|
};
|
|
382
382
|
};
|
|
383
383
|
};
|
|
384
384
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
385
385
|
return;
|
|
386
|
-
const r = {}, n =
|
|
386
|
+
const r = {}, n = pr(this);
|
|
387
387
|
for (const o of this.$$s)
|
|
388
388
|
o in n && (r[o] = [t(o)]);
|
|
389
389
|
for (const o of this.attributes) {
|
|
390
390
|
const s = this.$$g_p(o.name);
|
|
391
|
-
s in this.$$d || (this.$$d[s] =
|
|
391
|
+
s in this.$$d || (this.$$d[s] = pe(s, o.value, this.$$p_d, "toProp"));
|
|
392
392
|
}
|
|
393
393
|
for (const o in this.$$p_d)
|
|
394
394
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
395
395
|
this.$$c = new this.$$ctor({
|
|
396
396
|
target: this.shadowRoot || this,
|
|
397
|
-
props:
|
|
397
|
+
props: Ke(Ye({}, this.$$d), {
|
|
398
398
|
$$slots: r,
|
|
399
399
|
$$scope: {
|
|
400
400
|
ctx: []
|
|
@@ -405,7 +405,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
405
405
|
this.$$r = !0;
|
|
406
406
|
for (const o in this.$$p_d)
|
|
407
407
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
408
|
-
const s =
|
|
408
|
+
const s = pe(
|
|
409
409
|
o,
|
|
410
410
|
this.$$d[o],
|
|
411
411
|
this.$$p_d,
|
|
@@ -429,7 +429,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
429
429
|
// and setting attributes through setAttribute etc, this is helpful
|
|
430
430
|
attributeChangedCallback(t, r, n) {
|
|
431
431
|
var i;
|
|
432
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
432
|
+
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] }));
|
|
433
433
|
}
|
|
434
434
|
disconnectedCallback() {
|
|
435
435
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -442,7 +442,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
442
442
|
) || t;
|
|
443
443
|
}
|
|
444
444
|
});
|
|
445
|
-
function
|
|
445
|
+
function pe(e, t, r, n) {
|
|
446
446
|
var o;
|
|
447
447
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
448
448
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -472,8 +472,8 @@ function ge(e, t, r, n) {
|
|
|
472
472
|
return t;
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
|
-
function
|
|
476
|
-
let s = class extends
|
|
475
|
+
function Pr(e, t, r, n, i, o) {
|
|
476
|
+
let s = class extends Ot {
|
|
477
477
|
constructor() {
|
|
478
478
|
super(e, r, i), this.$$p_d = t;
|
|
479
479
|
}
|
|
@@ -490,7 +490,7 @@ function Ir(e, t, r, n, i, o) {
|
|
|
490
490
|
},
|
|
491
491
|
set(l) {
|
|
492
492
|
var u;
|
|
493
|
-
l =
|
|
493
|
+
l = pe(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
|
|
494
494
|
}
|
|
495
495
|
});
|
|
496
496
|
}), n.forEach((a) => {
|
|
@@ -503,7 +503,7 @@ function Ir(e, t, r, n, i, o) {
|
|
|
503
503
|
}), e.element = /** @type {any} */
|
|
504
504
|
s, s;
|
|
505
505
|
}
|
|
506
|
-
class
|
|
506
|
+
class Or {
|
|
507
507
|
constructor() {
|
|
508
508
|
/**
|
|
509
509
|
* ### PRIVATE API
|
|
@@ -512,7 +512,7 @@ class Cr {
|
|
|
512
512
|
*
|
|
513
513
|
* @type {any}
|
|
514
514
|
*/
|
|
515
|
-
|
|
515
|
+
w(this, "$$");
|
|
516
516
|
/**
|
|
517
517
|
* ### PRIVATE API
|
|
518
518
|
*
|
|
@@ -520,11 +520,11 @@ class Cr {
|
|
|
520
520
|
*
|
|
521
521
|
* @type {any}
|
|
522
522
|
*/
|
|
523
|
-
|
|
523
|
+
w(this, "$$set");
|
|
524
524
|
}
|
|
525
525
|
/** @returns {void} */
|
|
526
526
|
$destroy() {
|
|
527
|
-
|
|
527
|
+
wr(this, 1), this.$destroy = O;
|
|
528
528
|
}
|
|
529
529
|
/**
|
|
530
530
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -533,8 +533,8 @@ class Cr {
|
|
|
533
533
|
* @returns {() => void}
|
|
534
534
|
*/
|
|
535
535
|
$on(t, r) {
|
|
536
|
-
if (!
|
|
537
|
-
return
|
|
536
|
+
if (!Xe(r))
|
|
537
|
+
return O;
|
|
538
538
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
539
539
|
return n.push(r), () => {
|
|
540
540
|
const i = n.indexOf(r);
|
|
@@ -546,18 +546,18 @@ class Cr {
|
|
|
546
546
|
* @returns {void}
|
|
547
547
|
*/
|
|
548
548
|
$set(t) {
|
|
549
|
-
this.$$set && !
|
|
549
|
+
this.$$set && !ur(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
const
|
|
553
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
554
|
-
function
|
|
552
|
+
const Ir = "4";
|
|
553
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ir);
|
|
554
|
+
function Cr(e, t) {
|
|
555
555
|
if (e) {
|
|
556
556
|
const r = document.createElement("style");
|
|
557
557
|
r.innerHTML = t, e.appendChild(r);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function Nr(e, t) {
|
|
561
561
|
const r = new URL(t);
|
|
562
562
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
563
563
|
const i = document.createElement("style");
|
|
@@ -566,7 +566,7 @@ function Mr(e, t) {
|
|
|
566
566
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
567
567
|
});
|
|
568
568
|
}
|
|
569
|
-
function
|
|
569
|
+
function Lr(e, t, r) {
|
|
570
570
|
if (window.emMessageBus) {
|
|
571
571
|
const n = document.createElement("style");
|
|
572
572
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -574,171 +574,185 @@ function $r(e, t, r) {
|
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
const
|
|
578
|
-
function
|
|
577
|
+
const k = [];
|
|
578
|
+
function Mr(e, t) {
|
|
579
579
|
return {
|
|
580
|
-
subscribe:
|
|
580
|
+
subscribe: xe(e, t).subscribe
|
|
581
581
|
};
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function xe(e, t = O) {
|
|
584
584
|
let r;
|
|
585
585
|
const n = /* @__PURE__ */ new Set();
|
|
586
586
|
function i(a) {
|
|
587
|
-
if (
|
|
588
|
-
const l = !
|
|
587
|
+
if (St(e, a) && (e = a, r)) {
|
|
588
|
+
const l = !k.length;
|
|
589
589
|
for (const u of n)
|
|
590
|
-
u[1](),
|
|
590
|
+
u[1](), k.push(u, e);
|
|
591
591
|
if (l) {
|
|
592
|
-
for (let u = 0; u <
|
|
593
|
-
|
|
594
|
-
|
|
592
|
+
for (let u = 0; u < k.length; u += 2)
|
|
593
|
+
k[u][0](k[u + 1]);
|
|
594
|
+
k.length = 0;
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
function o(a) {
|
|
599
599
|
i(a(e));
|
|
600
600
|
}
|
|
601
|
-
function s(a, l =
|
|
601
|
+
function s(a, l = O) {
|
|
602
602
|
const u = [a, l];
|
|
603
|
-
return n.add(u), n.size === 1 && (r = t(i, o) ||
|
|
603
|
+
return n.add(u), n.size === 1 && (r = t(i, o) || O), a(e), () => {
|
|
604
604
|
n.delete(u), n.size === 0 && r && (r(), r = null);
|
|
605
605
|
};
|
|
606
606
|
}
|
|
607
607
|
return { set: i, update: o, subscribe: s };
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function q(e, t, r) {
|
|
610
610
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
611
611
|
if (!i.every(Boolean))
|
|
612
612
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
613
613
|
const o = t.length < 2;
|
|
614
|
-
return
|
|
614
|
+
return Mr(r, (s, a) => {
|
|
615
615
|
let l = !1;
|
|
616
616
|
const u = [];
|
|
617
|
-
let h = 0, f =
|
|
617
|
+
let h = 0, f = O;
|
|
618
618
|
const c = () => {
|
|
619
619
|
if (h)
|
|
620
620
|
return;
|
|
621
621
|
f();
|
|
622
|
-
const
|
|
623
|
-
o ? s(
|
|
622
|
+
const b = t(n ? u[0] : u, s, a);
|
|
623
|
+
o ? s(b) : f = Xe(b) ? b : O;
|
|
624
624
|
}, y = i.map(
|
|
625
|
-
(
|
|
626
|
-
|
|
627
|
-
(
|
|
628
|
-
u[
|
|
625
|
+
(b, v) => At(
|
|
626
|
+
b,
|
|
627
|
+
(E) => {
|
|
628
|
+
u[v] = E, h &= ~(1 << v), l && c();
|
|
629
629
|
},
|
|
630
630
|
() => {
|
|
631
|
-
h |= 1 <<
|
|
631
|
+
h |= 1 << v;
|
|
632
632
|
}
|
|
633
633
|
)
|
|
634
634
|
);
|
|
635
635
|
return l = !0, c(), function() {
|
|
636
|
-
|
|
636
|
+
J(y), f(), l = !1;
|
|
637
637
|
};
|
|
638
638
|
});
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function $r(e) {
|
|
641
641
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
642
642
|
}
|
|
643
|
-
var
|
|
644
|
-
return
|
|
643
|
+
var Rr = function(t) {
|
|
644
|
+
return Dr(t) && !Ur(t);
|
|
645
645
|
};
|
|
646
|
-
function
|
|
646
|
+
function Dr(e) {
|
|
647
647
|
return !!e && typeof e == "object";
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function Ur(e) {
|
|
650
650
|
var t = Object.prototype.toString.call(e);
|
|
651
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
651
|
+
return t === "[object RegExp]" || t === "[object Date]" || Fr(e);
|
|
652
652
|
}
|
|
653
|
-
var
|
|
654
|
-
function
|
|
655
|
-
return e.$$typeof ===
|
|
653
|
+
var Gr = typeof Symbol == "function" && Symbol.for, kr = Gr ? Symbol.for("react.element") : 60103;
|
|
654
|
+
function Fr(e) {
|
|
655
|
+
return e.$$typeof === kr;
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function jr(e) {
|
|
658
658
|
return Array.isArray(e) ? [] : {};
|
|
659
659
|
}
|
|
660
|
-
function
|
|
661
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
660
|
+
function re(e, t) {
|
|
661
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? V(jr(e), e, t) : e;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function zr(e, t, r) {
|
|
664
664
|
return e.concat(t).map(function(n) {
|
|
665
|
-
return
|
|
665
|
+
return re(n, r);
|
|
666
666
|
});
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function Vr(e, t) {
|
|
669
669
|
if (!t.customMerge)
|
|
670
|
-
return
|
|
670
|
+
return V;
|
|
671
671
|
var r = t.customMerge(e);
|
|
672
|
-
return typeof r == "function" ? r :
|
|
672
|
+
return typeof r == "function" ? r : V;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function Xr(e) {
|
|
675
675
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
676
676
|
return Object.propertyIsEnumerable.call(e, t);
|
|
677
677
|
}) : [];
|
|
678
678
|
}
|
|
679
|
-
function
|
|
680
|
-
return Object.keys(e).concat(
|
|
679
|
+
function it(e) {
|
|
680
|
+
return Object.keys(e).concat(Xr(e));
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function It(e, t) {
|
|
683
683
|
try {
|
|
684
684
|
return t in e;
|
|
685
685
|
} catch (r) {
|
|
686
686
|
return !1;
|
|
687
687
|
}
|
|
688
688
|
}
|
|
689
|
-
function
|
|
690
|
-
return
|
|
689
|
+
function Wr(e, t) {
|
|
690
|
+
return It(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function Zr(e, t, r) {
|
|
693
693
|
var n = {};
|
|
694
|
-
return r.isMergeableObject(e) &&
|
|
695
|
-
n[i] =
|
|
696
|
-
}),
|
|
697
|
-
|
|
694
|
+
return r.isMergeableObject(e) && it(e).forEach(function(i) {
|
|
695
|
+
n[i] = re(e[i], r);
|
|
696
|
+
}), it(t).forEach(function(i) {
|
|
697
|
+
Wr(e, i) || (It(e, i) && r.isMergeableObject(t[i]) ? n[i] = Vr(i, r)(e[i], t[i], r) : n[i] = re(t[i], r));
|
|
698
698
|
}), n;
|
|
699
699
|
}
|
|
700
|
-
function
|
|
701
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
700
|
+
function V(e, t, r) {
|
|
701
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || zr, r.isMergeableObject = r.isMergeableObject || Rr, r.cloneUnlessOtherwiseSpecified = re;
|
|
702
702
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
703
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
703
|
+
return o ? n ? r.arrayMerge(e, t, r) : Zr(e, t, r) : re(t, r);
|
|
704
704
|
}
|
|
705
|
-
|
|
705
|
+
V.all = function(t, r) {
|
|
706
706
|
if (!Array.isArray(t))
|
|
707
707
|
throw new Error("first argument should be an array");
|
|
708
708
|
return t.reduce(function(n, i) {
|
|
709
|
-
return
|
|
709
|
+
return V(n, i, r);
|
|
710
710
|
}, {});
|
|
711
711
|
};
|
|
712
|
-
var
|
|
713
|
-
const
|
|
714
|
-
|
|
715
|
-
|
|
712
|
+
var Jr = V, qr = Jr;
|
|
713
|
+
const Qr = /* @__PURE__ */ $r(qr);
|
|
714
|
+
/*! *****************************************************************************
|
|
715
|
+
Copyright (c) Microsoft Corporation.
|
|
716
|
+
|
|
717
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
718
|
+
purpose with or without fee is hereby granted.
|
|
719
|
+
|
|
720
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
721
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
722
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
723
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
724
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
725
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
726
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
727
|
+
***************************************************************************** */
|
|
728
|
+
var De = function(e, t) {
|
|
729
|
+
return De = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
716
730
|
r.__proto__ = n;
|
|
717
731
|
} || function(r, n) {
|
|
718
732
|
for (var i in n)
|
|
719
733
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
720
|
-
},
|
|
734
|
+
}, De(e, t);
|
|
721
735
|
};
|
|
722
|
-
function
|
|
736
|
+
function Te(e, t) {
|
|
723
737
|
if (typeof t != "function" && t !== null)
|
|
724
738
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
725
|
-
|
|
739
|
+
De(e, t);
|
|
726
740
|
function r() {
|
|
727
741
|
this.constructor = e;
|
|
728
742
|
}
|
|
729
743
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
730
744
|
}
|
|
731
|
-
var
|
|
732
|
-
return
|
|
745
|
+
var _ = function() {
|
|
746
|
+
return _ = Object.assign || function(t) {
|
|
733
747
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
734
748
|
r = arguments[n];
|
|
735
749
|
for (var o in r)
|
|
736
750
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
737
751
|
}
|
|
738
752
|
return t;
|
|
739
|
-
},
|
|
753
|
+
}, _.apply(this, arguments);
|
|
740
754
|
};
|
|
741
|
-
function
|
|
755
|
+
function Yr(e, t) {
|
|
742
756
|
var r = {};
|
|
743
757
|
for (var n in e)
|
|
744
758
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -747,43 +761,43 @@ function en(e, t) {
|
|
|
747
761
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
748
762
|
return r;
|
|
749
763
|
}
|
|
750
|
-
function
|
|
751
|
-
if (
|
|
764
|
+
function Pe(e, t, r) {
|
|
765
|
+
if (arguments.length === 2)
|
|
752
766
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
753
767
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
754
|
-
return e.concat(o ||
|
|
768
|
+
return e.concat(o || t);
|
|
755
769
|
}
|
|
756
|
-
function
|
|
757
|
-
var r = t && t.cache ? t.cache :
|
|
770
|
+
function Oe(e, t) {
|
|
771
|
+
var r = t && t.cache ? t.cache : sn, n = t && t.serializer ? t.serializer : nn, i = t && t.strategy ? t.strategy : tn;
|
|
758
772
|
return i(e, {
|
|
759
773
|
cache: r,
|
|
760
774
|
serializer: n
|
|
761
775
|
});
|
|
762
776
|
}
|
|
763
|
-
function
|
|
777
|
+
function Kr(e) {
|
|
764
778
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
765
779
|
}
|
|
766
|
-
function
|
|
767
|
-
var i =
|
|
780
|
+
function en(e, t, r, n) {
|
|
781
|
+
var i = Kr(n) ? n : r(n), o = t.get(i);
|
|
768
782
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
769
783
|
}
|
|
770
|
-
function
|
|
784
|
+
function Ct(e, t, r) {
|
|
771
785
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
772
786
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
773
787
|
}
|
|
774
|
-
function
|
|
788
|
+
function Nt(e, t, r, n, i) {
|
|
775
789
|
return r.bind(t, e, n, i);
|
|
776
790
|
}
|
|
777
|
-
function
|
|
778
|
-
var r = e.length === 1 ?
|
|
779
|
-
return
|
|
791
|
+
function tn(e, t) {
|
|
792
|
+
var r = e.length === 1 ? en : Ct;
|
|
793
|
+
return Nt(e, this, r, t.cache.create(), t.serializer);
|
|
780
794
|
}
|
|
781
|
-
function
|
|
782
|
-
return
|
|
795
|
+
function rn(e, t) {
|
|
796
|
+
return Nt(e, this, Ct, t.cache.create(), t.serializer);
|
|
783
797
|
}
|
|
784
|
-
var
|
|
798
|
+
var nn = function() {
|
|
785
799
|
return JSON.stringify(arguments);
|
|
786
|
-
},
|
|
800
|
+
}, on = (
|
|
787
801
|
/** @class */
|
|
788
802
|
function() {
|
|
789
803
|
function e() {
|
|
@@ -795,71 +809,61 @@ var sn = function() {
|
|
|
795
809
|
this.cache[t] = r;
|
|
796
810
|
}, e;
|
|
797
811
|
}()
|
|
798
|
-
),
|
|
812
|
+
), sn = {
|
|
799
813
|
create: function() {
|
|
800
|
-
return new
|
|
814
|
+
return new on();
|
|
801
815
|
}
|
|
802
|
-
},
|
|
803
|
-
variadic:
|
|
804
|
-
},
|
|
805
|
-
return Ee = Object.assign || function(t) {
|
|
806
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
807
|
-
r = arguments[n];
|
|
808
|
-
for (var o in r)
|
|
809
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
810
|
-
}
|
|
811
|
-
return t;
|
|
812
|
-
}, Ee.apply(this, arguments);
|
|
813
|
-
};
|
|
814
|
-
var b;
|
|
816
|
+
}, Ie = {
|
|
817
|
+
variadic: rn
|
|
818
|
+
}, p;
|
|
815
819
|
(function(e) {
|
|
816
820
|
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";
|
|
817
|
-
})(
|
|
818
|
-
var
|
|
821
|
+
})(p || (p = {}));
|
|
822
|
+
var T;
|
|
819
823
|
(function(e) {
|
|
820
824
|
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";
|
|
821
|
-
})(
|
|
822
|
-
var
|
|
825
|
+
})(T || (T = {}));
|
|
826
|
+
var X;
|
|
823
827
|
(function(e) {
|
|
824
828
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
825
|
-
})(
|
|
826
|
-
function
|
|
827
|
-
return e.type ===
|
|
829
|
+
})(X || (X = {}));
|
|
830
|
+
function ot(e) {
|
|
831
|
+
return e.type === T.literal;
|
|
832
|
+
}
|
|
833
|
+
function an(e) {
|
|
834
|
+
return e.type === T.argument;
|
|
828
835
|
}
|
|
829
|
-
function
|
|
830
|
-
return e.type ===
|
|
836
|
+
function Lt(e) {
|
|
837
|
+
return e.type === T.number;
|
|
838
|
+
}
|
|
839
|
+
function Mt(e) {
|
|
840
|
+
return e.type === T.date;
|
|
831
841
|
}
|
|
832
842
|
function $t(e) {
|
|
833
|
-
return e.type ===
|
|
843
|
+
return e.type === T.time;
|
|
834
844
|
}
|
|
835
845
|
function Rt(e) {
|
|
836
|
-
return e.type ===
|
|
846
|
+
return e.type === T.select;
|
|
837
847
|
}
|
|
838
848
|
function Dt(e) {
|
|
839
|
-
return e.type ===
|
|
849
|
+
return e.type === T.plural;
|
|
850
|
+
}
|
|
851
|
+
function un(e) {
|
|
852
|
+
return e.type === T.pound;
|
|
840
853
|
}
|
|
841
854
|
function Ut(e) {
|
|
842
|
-
return e.type ===
|
|
855
|
+
return e.type === T.tag;
|
|
843
856
|
}
|
|
844
857
|
function Gt(e) {
|
|
845
|
-
return e.type ===
|
|
846
|
-
}
|
|
847
|
-
function hn(e) {
|
|
848
|
-
return e.type === x.pound;
|
|
849
|
-
}
|
|
850
|
-
function kt(e) {
|
|
851
|
-
return e.type === x.tag;
|
|
852
|
-
}
|
|
853
|
-
function Ft(e) {
|
|
854
|
-
return !!(e && typeof e == "object" && e.type === W.number);
|
|
858
|
+
return !!(e && typeof e == "object" && e.type === X.number);
|
|
855
859
|
}
|
|
856
|
-
function
|
|
857
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
860
|
+
function Ue(e) {
|
|
861
|
+
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
858
862
|
}
|
|
859
|
-
var
|
|
860
|
-
function
|
|
863
|
+
var kt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ln = /(?:[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;
|
|
864
|
+
function hn(e) {
|
|
861
865
|
var t = {};
|
|
862
|
-
return e.replace(
|
|
866
|
+
return e.replace(ln, function(r) {
|
|
863
867
|
var n = r.length;
|
|
864
868
|
switch (r[0]) {
|
|
865
869
|
case "G":
|
|
@@ -948,21 +952,11 @@ function fn(e) {
|
|
|
948
952
|
return "";
|
|
949
953
|
}), t;
|
|
950
954
|
}
|
|
951
|
-
var
|
|
952
|
-
|
|
953
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
954
|
-
r = arguments[n];
|
|
955
|
-
for (var o in r)
|
|
956
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
957
|
-
}
|
|
958
|
-
return t;
|
|
959
|
-
}, T.apply(this, arguments);
|
|
960
|
-
};
|
|
961
|
-
var mn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
962
|
-
function dn(e) {
|
|
955
|
+
var cn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
956
|
+
function fn(e) {
|
|
963
957
|
if (e.length === 0)
|
|
964
958
|
throw new Error("Number skeleton cannot be empty");
|
|
965
|
-
for (var t = e.split(
|
|
959
|
+
for (var t = e.split(cn).filter(function(c) {
|
|
966
960
|
return c.length > 0;
|
|
967
961
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
968
962
|
var o = i[n], s = o.split("/");
|
|
@@ -977,17 +971,17 @@ function dn(e) {
|
|
|
977
971
|
}
|
|
978
972
|
return r;
|
|
979
973
|
}
|
|
980
|
-
function
|
|
974
|
+
function mn(e) {
|
|
981
975
|
return e.replace(/^(.*?)-/, "");
|
|
982
976
|
}
|
|
983
|
-
var
|
|
984
|
-
function
|
|
977
|
+
var st = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ft = /^(@+)?(\+|#+)?[rs]?$/g, dn = /(\*)(0+)|(#+)(0+)|(0+)/g, jt = /^(0+)$/;
|
|
978
|
+
function at(e) {
|
|
985
979
|
var t = {};
|
|
986
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
980
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ft, function(r, n, i) {
|
|
987
981
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
988
982
|
}), t;
|
|
989
983
|
}
|
|
990
|
-
function
|
|
984
|
+
function zt(e) {
|
|
991
985
|
switch (e) {
|
|
992
986
|
case "sign-auto":
|
|
993
987
|
return {
|
|
@@ -1027,7 +1021,7 @@ function Xt(e) {
|
|
|
1027
1021
|
};
|
|
1028
1022
|
}
|
|
1029
1023
|
}
|
|
1030
|
-
function
|
|
1024
|
+
function bn(e) {
|
|
1031
1025
|
var t;
|
|
1032
1026
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1033
1027
|
notation: "engineering"
|
|
@@ -1035,17 +1029,17 @@ function gn(e) {
|
|
|
1035
1029
|
notation: "scientific"
|
|
1036
1030
|
}, e = e.slice(1)), t) {
|
|
1037
1031
|
var r = e.slice(0, 2);
|
|
1038
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1032
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jt.test(e))
|
|
1039
1033
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1040
1034
|
t.minimumIntegerDigits = e.length;
|
|
1041
1035
|
}
|
|
1042
1036
|
return t;
|
|
1043
1037
|
}
|
|
1044
|
-
function
|
|
1045
|
-
var t = {}, r =
|
|
1038
|
+
function ut(e) {
|
|
1039
|
+
var t = {}, r = zt(e);
|
|
1046
1040
|
return r || t;
|
|
1047
1041
|
}
|
|
1048
|
-
function
|
|
1042
|
+
function pn(e) {
|
|
1049
1043
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1050
1044
|
var i = n[r];
|
|
1051
1045
|
switch (i.stem) {
|
|
@@ -1069,7 +1063,7 @@ function yn(e) {
|
|
|
1069
1063
|
continue;
|
|
1070
1064
|
case "measure-unit":
|
|
1071
1065
|
case "unit":
|
|
1072
|
-
t.style = "unit", t.unit =
|
|
1066
|
+
t.style = "unit", t.unit = mn(i.options[0]);
|
|
1073
1067
|
continue;
|
|
1074
1068
|
case "compact-short":
|
|
1075
1069
|
case "K":
|
|
@@ -1080,13 +1074,13 @@ function yn(e) {
|
|
|
1080
1074
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1081
1075
|
continue;
|
|
1082
1076
|
case "scientific":
|
|
1083
|
-
t =
|
|
1084
|
-
return
|
|
1077
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1078
|
+
return _(_({}, l), ut(u));
|
|
1085
1079
|
}, {}));
|
|
1086
1080
|
continue;
|
|
1087
1081
|
case "engineering":
|
|
1088
|
-
t =
|
|
1089
|
-
return
|
|
1082
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1083
|
+
return _(_({}, l), ut(u));
|
|
1090
1084
|
}, {}));
|
|
1091
1085
|
continue;
|
|
1092
1086
|
case "notation-simple":
|
|
@@ -1131,7 +1125,7 @@ function yn(e) {
|
|
|
1131
1125
|
case "integer-width":
|
|
1132
1126
|
if (i.options.length > 1)
|
|
1133
1127
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1134
|
-
i.options[0].replace(
|
|
1128
|
+
i.options[0].replace(dn, function(l, u, h, f, c, y) {
|
|
1135
1129
|
if (u)
|
|
1136
1130
|
t.minimumIntegerDigits = h.length;
|
|
1137
1131
|
else {
|
|
@@ -1144,32 +1138,32 @@ function yn(e) {
|
|
|
1144
1138
|
});
|
|
1145
1139
|
continue;
|
|
1146
1140
|
}
|
|
1147
|
-
if (
|
|
1141
|
+
if (jt.test(i.stem)) {
|
|
1148
1142
|
t.minimumIntegerDigits = i.stem.length;
|
|
1149
1143
|
continue;
|
|
1150
1144
|
}
|
|
1151
|
-
if (
|
|
1145
|
+
if (st.test(i.stem)) {
|
|
1152
1146
|
if (i.options.length > 1)
|
|
1153
1147
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1154
|
-
i.stem.replace(
|
|
1148
|
+
i.stem.replace(st, function(l, u, h, f, c, y) {
|
|
1155
1149
|
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), "";
|
|
1156
1150
|
});
|
|
1157
1151
|
var o = i.options[0];
|
|
1158
|
-
o === "w" ? t =
|
|
1152
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), at(o)));
|
|
1159
1153
|
continue;
|
|
1160
1154
|
}
|
|
1161
|
-
if (
|
|
1162
|
-
t =
|
|
1155
|
+
if (Ft.test(i.stem)) {
|
|
1156
|
+
t = _(_({}, t), at(i.stem));
|
|
1163
1157
|
continue;
|
|
1164
1158
|
}
|
|
1165
|
-
var s =
|
|
1166
|
-
s && (t =
|
|
1167
|
-
var a =
|
|
1168
|
-
a && (t =
|
|
1159
|
+
var s = zt(i.stem);
|
|
1160
|
+
s && (t = _(_({}, t), s));
|
|
1161
|
+
var a = bn(i.stem);
|
|
1162
|
+
a && (t = _(_({}, t), a));
|
|
1169
1163
|
}
|
|
1170
1164
|
return t;
|
|
1171
1165
|
}
|
|
1172
|
-
var
|
|
1166
|
+
var he = {
|
|
1173
1167
|
"001": [
|
|
1174
1168
|
"H",
|
|
1175
1169
|
"h"
|
|
@@ -2584,13 +2578,13 @@ var ce = {
|
|
|
2584
2578
|
"h"
|
|
2585
2579
|
]
|
|
2586
2580
|
};
|
|
2587
|
-
function
|
|
2581
|
+
function gn(e, t) {
|
|
2588
2582
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2589
2583
|
var i = e.charAt(n);
|
|
2590
2584
|
if (i === "j") {
|
|
2591
2585
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2592
2586
|
o++, n++;
|
|
2593
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2587
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = yn(t);
|
|
2594
2588
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2595
2589
|
r += l;
|
|
2596
2590
|
for (; s-- > 0; )
|
|
@@ -2600,7 +2594,7 @@ function _n(e, t) {
|
|
|
2600
2594
|
}
|
|
2601
2595
|
return r;
|
|
2602
2596
|
}
|
|
2603
|
-
function
|
|
2597
|
+
function yn(e) {
|
|
2604
2598
|
var t = e.hourCycle;
|
|
2605
2599
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2606
2600
|
e.hourCycles && // @ts-ignore
|
|
@@ -2619,23 +2613,23 @@ function En(e) {
|
|
|
2619
2613
|
}
|
|
2620
2614
|
var r = e.language, n;
|
|
2621
2615
|
r !== "root" && (n = e.maximize().region);
|
|
2622
|
-
var i =
|
|
2616
|
+
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2623
2617
|
return i[0];
|
|
2624
2618
|
}
|
|
2625
|
-
var
|
|
2619
|
+
var Ce, _n = new RegExp("^".concat(kt.source, "*")), En = new RegExp("".concat(kt.source, "*$"));
|
|
2626
2620
|
function g(e, t) {
|
|
2627
2621
|
return { start: e, end: t };
|
|
2628
2622
|
}
|
|
2629
|
-
var
|
|
2623
|
+
var vn = !!String.prototype.startsWith && "_a".startsWith("a", 1), xn = !!String.fromCodePoint, Tn = !!Object.fromEntries, Hn = !!String.prototype.codePointAt, Bn = !!String.prototype.trimStart, wn = !!String.prototype.trimEnd, Sn = !!Number.isSafeInteger, An = Sn ? Number.isSafeInteger : function(e) {
|
|
2630
2624
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2631
|
-
},
|
|
2625
|
+
}, Ge = !0;
|
|
2632
2626
|
try {
|
|
2633
|
-
var
|
|
2634
|
-
|
|
2627
|
+
var Pn = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2628
|
+
Ge = ((Ce = Pn.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
2635
2629
|
} catch (e) {
|
|
2636
|
-
|
|
2630
|
+
Ge = !1;
|
|
2637
2631
|
}
|
|
2638
|
-
var
|
|
2632
|
+
var lt = vn ? (
|
|
2639
2633
|
// Native
|
|
2640
2634
|
function(t, r, n) {
|
|
2641
2635
|
return t.startsWith(r, n);
|
|
@@ -2645,7 +2639,7 @@ var ct = Tn ? (
|
|
|
2645
2639
|
function(t, r, n) {
|
|
2646
2640
|
return t.slice(n, n + r.length) === r;
|
|
2647
2641
|
}
|
|
2648
|
-
),
|
|
2642
|
+
), ke = xn ? String.fromCodePoint : (
|
|
2649
2643
|
// IE11
|
|
2650
2644
|
function() {
|
|
2651
2645
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2657,9 +2651,9 @@ var ct = Tn ? (
|
|
|
2657
2651
|
}
|
|
2658
2652
|
return n;
|
|
2659
2653
|
}
|
|
2660
|
-
),
|
|
2654
|
+
), ht = (
|
|
2661
2655
|
// native
|
|
2662
|
-
|
|
2656
|
+
Tn ? Object.fromEntries : (
|
|
2663
2657
|
// Ponyfill
|
|
2664
2658
|
function(t) {
|
|
2665
2659
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2669,7 +2663,7 @@ var ct = Tn ? (
|
|
|
2669
2663
|
return r;
|
|
2670
2664
|
}
|
|
2671
2665
|
)
|
|
2672
|
-
),
|
|
2666
|
+
), Vt = Hn ? (
|
|
2673
2667
|
// Native
|
|
2674
2668
|
function(t, r) {
|
|
2675
2669
|
return t.codePointAt(r);
|
|
@@ -2683,7 +2677,7 @@ var ct = Tn ? (
|
|
|
2683
2677
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2684
2678
|
}
|
|
2685
2679
|
}
|
|
2686
|
-
),
|
|
2680
|
+
), On = Bn ? (
|
|
2687
2681
|
// Native
|
|
2688
2682
|
function(t) {
|
|
2689
2683
|
return t.trimStart();
|
|
@@ -2691,9 +2685,9 @@ var ct = Tn ? (
|
|
|
2691
2685
|
) : (
|
|
2692
2686
|
// Ponyfill
|
|
2693
2687
|
function(t) {
|
|
2694
|
-
return t.replace(
|
|
2688
|
+
return t.replace(_n, "");
|
|
2695
2689
|
}
|
|
2696
|
-
),
|
|
2690
|
+
), In = wn ? (
|
|
2697
2691
|
// Native
|
|
2698
2692
|
function(t) {
|
|
2699
2693
|
return t.trimEnd();
|
|
@@ -2701,32 +2695,32 @@ var ct = Tn ? (
|
|
|
2701
2695
|
) : (
|
|
2702
2696
|
// Ponyfill
|
|
2703
2697
|
function(t) {
|
|
2704
|
-
return t.replace(
|
|
2698
|
+
return t.replace(En, "");
|
|
2705
2699
|
}
|
|
2706
2700
|
);
|
|
2707
|
-
function
|
|
2701
|
+
function Xt(e, t) {
|
|
2708
2702
|
return new RegExp(e, t);
|
|
2709
2703
|
}
|
|
2710
|
-
var
|
|
2711
|
-
if (
|
|
2712
|
-
var
|
|
2713
|
-
|
|
2704
|
+
var Fe;
|
|
2705
|
+
if (Ge) {
|
|
2706
|
+
var ct = Xt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2707
|
+
Fe = function(t, r) {
|
|
2714
2708
|
var n;
|
|
2715
|
-
|
|
2716
|
-
var i =
|
|
2709
|
+
ct.lastIndex = r;
|
|
2710
|
+
var i = ct.exec(t);
|
|
2717
2711
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2718
2712
|
};
|
|
2719
2713
|
} else
|
|
2720
|
-
|
|
2714
|
+
Fe = function(t, r) {
|
|
2721
2715
|
for (var n = []; ; ) {
|
|
2722
|
-
var i =
|
|
2723
|
-
if (i === void 0 ||
|
|
2716
|
+
var i = Vt(t, r);
|
|
2717
|
+
if (i === void 0 || Wt(i) || Mn(i))
|
|
2724
2718
|
break;
|
|
2725
2719
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2726
2720
|
}
|
|
2727
|
-
return
|
|
2721
|
+
return ke.apply(void 0, n);
|
|
2728
2722
|
};
|
|
2729
|
-
var
|
|
2723
|
+
var Cn = (
|
|
2730
2724
|
/** @class */
|
|
2731
2725
|
function() {
|
|
2732
2726
|
function e(t, r) {
|
|
@@ -2750,14 +2744,14 @@ var Ln = (
|
|
|
2750
2744
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2751
2745
|
var a = this.clonePosition();
|
|
2752
2746
|
this.bump(), i.push({
|
|
2753
|
-
type:
|
|
2747
|
+
type: T.pound,
|
|
2754
2748
|
location: g(a, this.clonePosition())
|
|
2755
2749
|
});
|
|
2756
2750
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2757
2751
|
if (n)
|
|
2758
2752
|
break;
|
|
2759
|
-
return this.error(
|
|
2760
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2753
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
2754
|
+
} else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
2761
2755
|
var s = this.parseTag(t, r);
|
|
2762
2756
|
if (s.err)
|
|
2763
2757
|
return s;
|
|
@@ -2778,7 +2772,7 @@ var Ln = (
|
|
|
2778
2772
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2779
2773
|
return {
|
|
2780
2774
|
val: {
|
|
2781
|
-
type:
|
|
2775
|
+
type: T.literal,
|
|
2782
2776
|
value: "<".concat(i, "/>"),
|
|
2783
2777
|
location: g(n, this.clonePosition())
|
|
2784
2778
|
},
|
|
@@ -2790,25 +2784,25 @@ var Ln = (
|
|
|
2790
2784
|
return o;
|
|
2791
2785
|
var s = o.val, a = this.clonePosition();
|
|
2792
2786
|
if (this.bumpIf("</")) {
|
|
2793
|
-
if (this.isEOF() || !
|
|
2794
|
-
return this.error(
|
|
2787
|
+
if (this.isEOF() || !je(this.char()))
|
|
2788
|
+
return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
|
|
2795
2789
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2796
|
-
return i !== u ? this.error(
|
|
2790
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2797
2791
|
val: {
|
|
2798
|
-
type:
|
|
2792
|
+
type: T.tag,
|
|
2799
2793
|
value: i,
|
|
2800
2794
|
children: s,
|
|
2801
2795
|
location: g(n, this.clonePosition())
|
|
2802
2796
|
},
|
|
2803
2797
|
err: null
|
|
2804
|
-
} : this.error(
|
|
2798
|
+
} : this.error(p.INVALID_TAG, g(a, this.clonePosition())));
|
|
2805
2799
|
} else
|
|
2806
|
-
return this.error(
|
|
2800
|
+
return this.error(p.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
2807
2801
|
} else
|
|
2808
|
-
return this.error(
|
|
2802
|
+
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
|
2809
2803
|
}, e.prototype.parseTagName = function() {
|
|
2810
2804
|
var t = this.offset();
|
|
2811
|
-
for (this.bump(); !this.isEOF() &&
|
|
2805
|
+
for (this.bump(); !this.isEOF() && Ln(this.char()); )
|
|
2812
2806
|
this.bump();
|
|
2813
2807
|
return this.message.slice(t, this.offset());
|
|
2814
2808
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2832,12 +2826,12 @@ var Ln = (
|
|
|
2832
2826
|
}
|
|
2833
2827
|
var l = g(n, this.clonePosition());
|
|
2834
2828
|
return {
|
|
2835
|
-
val: { type:
|
|
2829
|
+
val: { type: T.literal, value: i, location: l },
|
|
2836
2830
|
err: null
|
|
2837
2831
|
};
|
|
2838
2832
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2839
2833
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2840
|
-
!
|
|
2834
|
+
!Nn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2841
2835
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2842
2836
|
if (this.isEOF() || this.char() !== 39)
|
|
2843
2837
|
return null;
|
|
@@ -2871,28 +2865,28 @@ var Ln = (
|
|
|
2871
2865
|
r.push(n);
|
|
2872
2866
|
this.bump();
|
|
2873
2867
|
}
|
|
2874
|
-
return
|
|
2868
|
+
return ke.apply(void 0, r);
|
|
2875
2869
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2876
2870
|
if (this.isEOF())
|
|
2877
2871
|
return null;
|
|
2878
2872
|
var n = this.char();
|
|
2879
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2873
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
2880
2874
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2881
2875
|
var n = this.clonePosition();
|
|
2882
2876
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2883
|
-
return this.error(
|
|
2877
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
2884
2878
|
if (this.char() === 125)
|
|
2885
|
-
return this.bump(), this.error(
|
|
2879
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
2886
2880
|
var i = this.parseIdentifierIfPossible().value;
|
|
2887
2881
|
if (!i)
|
|
2888
|
-
return this.error(
|
|
2882
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
2889
2883
|
if (this.bumpSpace(), this.isEOF())
|
|
2890
|
-
return this.error(
|
|
2884
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
2891
2885
|
switch (this.char()) {
|
|
2892
2886
|
case 125:
|
|
2893
2887
|
return this.bump(), {
|
|
2894
2888
|
val: {
|
|
2895
|
-
type:
|
|
2889
|
+
type: T.argument,
|
|
2896
2890
|
// value does not include the opening and closing braces.
|
|
2897
2891
|
value: i,
|
|
2898
2892
|
location: g(n, this.clonePosition())
|
|
@@ -2900,12 +2894,12 @@ var Ln = (
|
|
|
2900
2894
|
err: null
|
|
2901
2895
|
};
|
|
2902
2896
|
case 44:
|
|
2903
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2897
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
|
|
2904
2898
|
default:
|
|
2905
|
-
return this.error(
|
|
2899
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
2906
2900
|
}
|
|
2907
2901
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2908
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2902
|
+
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
2909
2903
|
this.bumpTo(i);
|
|
2910
2904
|
var o = this.clonePosition(), s = g(t, o);
|
|
2911
2905
|
return { value: n, location: s };
|
|
@@ -2913,7 +2907,7 @@ var Ln = (
|
|
|
2913
2907
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2914
2908
|
switch (a) {
|
|
2915
2909
|
case "":
|
|
2916
|
-
return this.error(
|
|
2910
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, g(s, l));
|
|
2917
2911
|
case "number":
|
|
2918
2912
|
case "date":
|
|
2919
2913
|
case "time": {
|
|
@@ -2924,46 +2918,46 @@ var Ln = (
|
|
|
2924
2918
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2925
2919
|
if (f.err)
|
|
2926
2920
|
return f;
|
|
2927
|
-
var c =
|
|
2921
|
+
var c = In(f.val);
|
|
2928
2922
|
if (c.length === 0)
|
|
2929
|
-
return this.error(
|
|
2923
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
2930
2924
|
var y = g(h, this.clonePosition());
|
|
2931
2925
|
u = { style: c, styleLocation: y };
|
|
2932
2926
|
}
|
|
2933
|
-
var
|
|
2934
|
-
if (
|
|
2935
|
-
return
|
|
2936
|
-
var
|
|
2937
|
-
if (u &&
|
|
2938
|
-
var
|
|
2927
|
+
var b = this.tryParseArgumentClose(i);
|
|
2928
|
+
if (b.err)
|
|
2929
|
+
return b;
|
|
2930
|
+
var v = g(i, this.clonePosition());
|
|
2931
|
+
if (u && lt(u == null ? void 0 : u.style, "::", 0)) {
|
|
2932
|
+
var E = On(u.style.slice(2));
|
|
2939
2933
|
if (a === "number") {
|
|
2940
|
-
var f = this.parseNumberSkeletonFromString(
|
|
2934
|
+
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
2941
2935
|
return f.err ? f : {
|
|
2942
|
-
val: { type:
|
|
2936
|
+
val: { type: T.number, value: n, location: v, style: f.val },
|
|
2943
2937
|
err: null
|
|
2944
2938
|
};
|
|
2945
2939
|
} else {
|
|
2946
|
-
if (
|
|
2947
|
-
return this.error(
|
|
2948
|
-
var m =
|
|
2949
|
-
this.locale && (m =
|
|
2940
|
+
if (E.length === 0)
|
|
2941
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, v);
|
|
2942
|
+
var m = E;
|
|
2943
|
+
this.locale && (m = gn(E, this.locale));
|
|
2950
2944
|
var c = {
|
|
2951
|
-
type:
|
|
2945
|
+
type: X.dateTime,
|
|
2952
2946
|
pattern: m,
|
|
2953
2947
|
location: u.styleLocation,
|
|
2954
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2955
|
-
},
|
|
2948
|
+
parsedOptions: this.shouldParseSkeletons ? hn(m) : {}
|
|
2949
|
+
}, x = a === "date" ? T.date : T.time;
|
|
2956
2950
|
return {
|
|
2957
|
-
val: { type:
|
|
2951
|
+
val: { type: x, value: n, location: v, style: c },
|
|
2958
2952
|
err: null
|
|
2959
2953
|
};
|
|
2960
2954
|
}
|
|
2961
2955
|
}
|
|
2962
2956
|
return {
|
|
2963
2957
|
val: {
|
|
2964
|
-
type: a === "number" ?
|
|
2958
|
+
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
|
2965
2959
|
value: n,
|
|
2966
|
-
location:
|
|
2960
|
+
location: v,
|
|
2967
2961
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2968
2962
|
},
|
|
2969
2963
|
err: null
|
|
@@ -2974,50 +2968,50 @@ var Ln = (
|
|
|
2974
2968
|
case "select": {
|
|
2975
2969
|
var d = this.clonePosition();
|
|
2976
2970
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2977
|
-
return this.error(
|
|
2971
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(d, _({}, d)));
|
|
2978
2972
|
this.bumpSpace();
|
|
2979
|
-
var
|
|
2980
|
-
if (a !== "select" &&
|
|
2973
|
+
var B = this.parseIdentifierIfPossible(), S = 0;
|
|
2974
|
+
if (a !== "select" && B.value === "offset") {
|
|
2981
2975
|
if (!this.bumpIf(":"))
|
|
2982
|
-
return this.error(
|
|
2976
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
2983
2977
|
this.bumpSpace();
|
|
2984
|
-
var f = this.tryParseDecimalInteger(
|
|
2978
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2985
2979
|
if (f.err)
|
|
2986
2980
|
return f;
|
|
2987
|
-
this.bumpSpace(),
|
|
2981
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), S = f.val;
|
|
2988
2982
|
}
|
|
2989
|
-
var
|
|
2990
|
-
if (
|
|
2991
|
-
return
|
|
2992
|
-
var
|
|
2993
|
-
if (
|
|
2994
|
-
return
|
|
2995
|
-
var
|
|
2983
|
+
var ae = this.tryParsePluralOrSelectOptions(t, a, r, B);
|
|
2984
|
+
if (ae.err)
|
|
2985
|
+
return ae;
|
|
2986
|
+
var b = this.tryParseArgumentClose(i);
|
|
2987
|
+
if (b.err)
|
|
2988
|
+
return b;
|
|
2989
|
+
var qe = g(i, this.clonePosition());
|
|
2996
2990
|
return a === "select" ? {
|
|
2997
2991
|
val: {
|
|
2998
|
-
type:
|
|
2992
|
+
type: T.select,
|
|
2999
2993
|
value: n,
|
|
3000
|
-
options:
|
|
3001
|
-
location:
|
|
2994
|
+
options: ht(ae.val),
|
|
2995
|
+
location: qe
|
|
3002
2996
|
},
|
|
3003
2997
|
err: null
|
|
3004
2998
|
} : {
|
|
3005
2999
|
val: {
|
|
3006
|
-
type:
|
|
3000
|
+
type: T.plural,
|
|
3007
3001
|
value: n,
|
|
3008
|
-
options:
|
|
3009
|
-
offset:
|
|
3002
|
+
options: ht(ae.val),
|
|
3003
|
+
offset: S,
|
|
3010
3004
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3011
|
-
location:
|
|
3005
|
+
location: qe
|
|
3012
3006
|
},
|
|
3013
3007
|
err: null
|
|
3014
3008
|
};
|
|
3015
3009
|
}
|
|
3016
3010
|
default:
|
|
3017
|
-
return this.error(
|
|
3011
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, g(s, l));
|
|
3018
3012
|
}
|
|
3019
3013
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3020
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3014
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3021
3015
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3022
3016
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3023
3017
|
var n = this.char();
|
|
@@ -3026,7 +3020,7 @@ var Ln = (
|
|
|
3026
3020
|
this.bump();
|
|
3027
3021
|
var i = this.clonePosition();
|
|
3028
3022
|
if (!this.bumpUntil("'"))
|
|
3029
|
-
return this.error(
|
|
3023
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3030
3024
|
this.bump();
|
|
3031
3025
|
break;
|
|
3032
3026
|
}
|
|
@@ -3056,16 +3050,16 @@ var Ln = (
|
|
|
3056
3050
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3057
3051
|
var n = [];
|
|
3058
3052
|
try {
|
|
3059
|
-
n =
|
|
3053
|
+
n = fn(t);
|
|
3060
3054
|
} catch (i) {
|
|
3061
|
-
return this.error(
|
|
3055
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3062
3056
|
}
|
|
3063
3057
|
return {
|
|
3064
3058
|
val: {
|
|
3065
|
-
type:
|
|
3059
|
+
type: X.number,
|
|
3066
3060
|
tokens: n,
|
|
3067
3061
|
location: r,
|
|
3068
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3062
|
+
parsedOptions: this.shouldParseSkeletons ? pn(n) : {}
|
|
3069
3063
|
},
|
|
3070
3064
|
err: null
|
|
3071
3065
|
};
|
|
@@ -3074,7 +3068,7 @@ var Ln = (
|
|
|
3074
3068
|
if (u.length === 0) {
|
|
3075
3069
|
var f = this.clonePosition();
|
|
3076
3070
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3077
|
-
var c = this.tryParseDecimalInteger(
|
|
3071
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3078
3072
|
if (c.err)
|
|
3079
3073
|
return c;
|
|
3080
3074
|
h = g(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
@@ -3082,26 +3076,26 @@ var Ln = (
|
|
|
3082
3076
|
break;
|
|
3083
3077
|
}
|
|
3084
3078
|
if (l.has(u))
|
|
3085
|
-
return this.error(r === "select" ?
|
|
3079
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3086
3080
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3087
3081
|
var y = this.clonePosition();
|
|
3088
3082
|
if (!this.bumpIf("{"))
|
|
3089
|
-
return this.error(r === "select" ?
|
|
3090
|
-
var
|
|
3091
|
-
if (
|
|
3092
|
-
return
|
|
3093
|
-
var
|
|
3094
|
-
if (
|
|
3095
|
-
return
|
|
3083
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3084
|
+
var b = this.parseMessage(t + 1, r, n);
|
|
3085
|
+
if (b.err)
|
|
3086
|
+
return b;
|
|
3087
|
+
var v = this.tryParseArgumentClose(y);
|
|
3088
|
+
if (v.err)
|
|
3089
|
+
return v;
|
|
3096
3090
|
a.push([
|
|
3097
3091
|
u,
|
|
3098
3092
|
{
|
|
3099
|
-
value:
|
|
3093
|
+
value: b.val,
|
|
3100
3094
|
location: g(y, this.clonePosition())
|
|
3101
3095
|
}
|
|
3102
3096
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3103
3097
|
}
|
|
3104
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3098
|
+
return a.length === 0 ? this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(p.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3105
3099
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3106
3100
|
var n = 1, i = this.clonePosition();
|
|
3107
3101
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3113,7 +3107,7 @@ var Ln = (
|
|
|
3113
3107
|
break;
|
|
3114
3108
|
}
|
|
3115
3109
|
var l = g(i, this.clonePosition());
|
|
3116
|
-
return o ? (s *= n,
|
|
3110
|
+
return o ? (s *= n, An(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3117
3111
|
}, e.prototype.offset = function() {
|
|
3118
3112
|
return this.position.offset;
|
|
3119
3113
|
}, e.prototype.isEOF = function() {
|
|
@@ -3128,7 +3122,7 @@ var Ln = (
|
|
|
3128
3122
|
var t = this.position.offset;
|
|
3129
3123
|
if (t >= this.message.length)
|
|
3130
3124
|
throw Error("out of bound");
|
|
3131
|
-
var r =
|
|
3125
|
+
var r = Vt(this.message, t);
|
|
3132
3126
|
if (r === void 0)
|
|
3133
3127
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3134
3128
|
return r;
|
|
@@ -3147,7 +3141,7 @@ var Ln = (
|
|
|
3147
3141
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3148
3142
|
}
|
|
3149
3143
|
}, e.prototype.bumpIf = function(t) {
|
|
3150
|
-
if (
|
|
3144
|
+
if (lt(this.message, t, this.offset())) {
|
|
3151
3145
|
for (var r = 0; r < t.length; r++)
|
|
3152
3146
|
this.bump();
|
|
3153
3147
|
return !0;
|
|
@@ -3169,7 +3163,7 @@ var Ln = (
|
|
|
3169
3163
|
break;
|
|
3170
3164
|
}
|
|
3171
3165
|
}, e.prototype.bumpSpace = function() {
|
|
3172
|
-
for (; !this.isEOF() &&
|
|
3166
|
+
for (; !this.isEOF() && Wt(this.char()); )
|
|
3173
3167
|
this.bump();
|
|
3174
3168
|
}, e.prototype.peek = function() {
|
|
3175
3169
|
if (this.isEOF())
|
|
@@ -3179,47 +3173,47 @@ var Ln = (
|
|
|
3179
3173
|
}, e;
|
|
3180
3174
|
}()
|
|
3181
3175
|
);
|
|
3182
|
-
function
|
|
3176
|
+
function je(e) {
|
|
3183
3177
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3184
3178
|
}
|
|
3185
|
-
function
|
|
3186
|
-
return
|
|
3179
|
+
function Nn(e) {
|
|
3180
|
+
return je(e) || e === 47;
|
|
3187
3181
|
}
|
|
3188
|
-
function
|
|
3182
|
+
function Ln(e) {
|
|
3189
3183
|
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;
|
|
3190
3184
|
}
|
|
3191
|
-
function
|
|
3185
|
+
function Wt(e) {
|
|
3192
3186
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3193
3187
|
}
|
|
3194
|
-
function
|
|
3188
|
+
function Mn(e) {
|
|
3195
3189
|
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;
|
|
3196
3190
|
}
|
|
3197
|
-
function
|
|
3191
|
+
function ze(e) {
|
|
3198
3192
|
e.forEach(function(t) {
|
|
3199
|
-
if (delete t.location,
|
|
3193
|
+
if (delete t.location, Rt(t) || Dt(t))
|
|
3200
3194
|
for (var r in t.options)
|
|
3201
|
-
delete t.options[r].location,
|
|
3195
|
+
delete t.options[r].location, ze(t.options[r].value);
|
|
3202
3196
|
else
|
|
3203
|
-
|
|
3197
|
+
Lt(t) && Gt(t.style) || (Mt(t) || $t(t)) && Ue(t.style) ? delete t.style.location : Ut(t) && ze(t.children);
|
|
3204
3198
|
});
|
|
3205
3199
|
}
|
|
3206
|
-
function
|
|
3207
|
-
t === void 0 && (t = {}), t =
|
|
3208
|
-
var r = new
|
|
3200
|
+
function $n(e, t) {
|
|
3201
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3202
|
+
var r = new Cn(e, t).parse();
|
|
3209
3203
|
if (r.err) {
|
|
3210
|
-
var n = SyntaxError(
|
|
3204
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3211
3205
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3212
3206
|
}
|
|
3213
|
-
return t != null && t.captureLocation ||
|
|
3207
|
+
return t != null && t.captureLocation || ze(r.val), r.val;
|
|
3214
3208
|
}
|
|
3215
|
-
var
|
|
3209
|
+
var W;
|
|
3216
3210
|
(function(e) {
|
|
3217
3211
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3218
|
-
})(
|
|
3219
|
-
var
|
|
3212
|
+
})(W || (W = {}));
|
|
3213
|
+
var He = (
|
|
3220
3214
|
/** @class */
|
|
3221
3215
|
function(e) {
|
|
3222
|
-
|
|
3216
|
+
Te(t, e);
|
|
3223
3217
|
function t(r, n, i) {
|
|
3224
3218
|
var o = e.call(this, r) || this;
|
|
3225
3219
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3228,48 +3222,48 @@ var Se = (
|
|
|
3228
3222
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3229
3223
|
}, t;
|
|
3230
3224
|
}(Error)
|
|
3231
|
-
),
|
|
3225
|
+
), ft = (
|
|
3232
3226
|
/** @class */
|
|
3233
3227
|
function(e) {
|
|
3234
|
-
|
|
3228
|
+
Te(t, e);
|
|
3235
3229
|
function t(r, n, i, o) {
|
|
3236
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3230
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, o) || this;
|
|
3237
3231
|
}
|
|
3238
3232
|
return t;
|
|
3239
|
-
}(
|
|
3240
|
-
),
|
|
3233
|
+
}(He)
|
|
3234
|
+
), Rn = (
|
|
3241
3235
|
/** @class */
|
|
3242
3236
|
function(e) {
|
|
3243
|
-
|
|
3237
|
+
Te(t, e);
|
|
3244
3238
|
function t(r, n, i) {
|
|
3245
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3239
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3246
3240
|
}
|
|
3247
3241
|
return t;
|
|
3248
|
-
}(
|
|
3249
|
-
),
|
|
3242
|
+
}(He)
|
|
3243
|
+
), Dn = (
|
|
3250
3244
|
/** @class */
|
|
3251
3245
|
function(e) {
|
|
3252
|
-
|
|
3246
|
+
Te(t, e);
|
|
3253
3247
|
function t(r, n) {
|
|
3254
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3248
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), W.MISSING_VALUE, n) || this;
|
|
3255
3249
|
}
|
|
3256
3250
|
return t;
|
|
3257
|
-
}(
|
|
3251
|
+
}(He)
|
|
3258
3252
|
), H;
|
|
3259
3253
|
(function(e) {
|
|
3260
3254
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3261
3255
|
})(H || (H = {}));
|
|
3262
|
-
function
|
|
3256
|
+
function Un(e) {
|
|
3263
3257
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3264
3258
|
var n = t[t.length - 1];
|
|
3265
3259
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3266
3260
|
}, []);
|
|
3267
3261
|
}
|
|
3268
|
-
function
|
|
3262
|
+
function Gn(e) {
|
|
3269
3263
|
return typeof e == "function";
|
|
3270
3264
|
}
|
|
3271
|
-
function
|
|
3272
|
-
if (e.length === 1 &&
|
|
3265
|
+
function ge(e, t, r, n, i, o, s) {
|
|
3266
|
+
if (e.length === 1 && ot(e[0]))
|
|
3273
3267
|
return [
|
|
3274
3268
|
{
|
|
3275
3269
|
type: H.literal,
|
|
@@ -3278,14 +3272,14 @@ function ye(e, t, r, n, i, o, s) {
|
|
|
3278
3272
|
];
|
|
3279
3273
|
for (var a = [], l = 0, u = e; l < u.length; l++) {
|
|
3280
3274
|
var h = u[l];
|
|
3281
|
-
if (
|
|
3275
|
+
if (ot(h)) {
|
|
3282
3276
|
a.push({
|
|
3283
3277
|
type: H.literal,
|
|
3284
3278
|
value: h.value
|
|
3285
3279
|
});
|
|
3286
3280
|
continue;
|
|
3287
3281
|
}
|
|
3288
|
-
if (
|
|
3282
|
+
if (un(h)) {
|
|
3289
3283
|
typeof o == "number" && a.push({
|
|
3290
3284
|
type: H.literal,
|
|
3291
3285
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3294,89 +3288,89 @@ function ye(e, t, r, n, i, o, s) {
|
|
|
3294
3288
|
}
|
|
3295
3289
|
var f = h.value;
|
|
3296
3290
|
if (!(i && f in i))
|
|
3297
|
-
throw new
|
|
3291
|
+
throw new Dn(f, s);
|
|
3298
3292
|
var c = i[f];
|
|
3299
|
-
if (
|
|
3293
|
+
if (an(h)) {
|
|
3300
3294
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3301
3295
|
type: typeof c == "string" ? H.literal : H.object,
|
|
3302
3296
|
value: c
|
|
3303
3297
|
});
|
|
3304
3298
|
continue;
|
|
3305
3299
|
}
|
|
3306
|
-
if (
|
|
3307
|
-
var y = typeof h.style == "string" ? n.date[h.style] :
|
|
3300
|
+
if (Mt(h)) {
|
|
3301
|
+
var y = typeof h.style == "string" ? n.date[h.style] : Ue(h.style) ? h.style.parsedOptions : void 0;
|
|
3308
3302
|
a.push({
|
|
3309
3303
|
type: H.literal,
|
|
3310
3304
|
value: r.getDateTimeFormat(t, y).format(c)
|
|
3311
3305
|
});
|
|
3312
3306
|
continue;
|
|
3313
3307
|
}
|
|
3314
|
-
if (
|
|
3315
|
-
var y = typeof h.style == "string" ? n.time[h.style] :
|
|
3308
|
+
if ($t(h)) {
|
|
3309
|
+
var y = typeof h.style == "string" ? n.time[h.style] : Ue(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3316
3310
|
a.push({
|
|
3317
3311
|
type: H.literal,
|
|
3318
3312
|
value: r.getDateTimeFormat(t, y).format(c)
|
|
3319
3313
|
});
|
|
3320
3314
|
continue;
|
|
3321
3315
|
}
|
|
3322
|
-
if (
|
|
3323
|
-
var y = typeof h.style == "string" ? n.number[h.style] :
|
|
3316
|
+
if (Lt(h)) {
|
|
3317
|
+
var y = typeof h.style == "string" ? n.number[h.style] : Gt(h.style) ? h.style.parsedOptions : void 0;
|
|
3324
3318
|
y && y.scale && (c = c * (y.scale || 1)), a.push({
|
|
3325
3319
|
type: H.literal,
|
|
3326
3320
|
value: r.getNumberFormat(t, y).format(c)
|
|
3327
3321
|
});
|
|
3328
3322
|
continue;
|
|
3329
3323
|
}
|
|
3330
|
-
if (
|
|
3331
|
-
var
|
|
3332
|
-
if (!
|
|
3333
|
-
throw new
|
|
3334
|
-
var m =
|
|
3335
|
-
return
|
|
3324
|
+
if (Ut(h)) {
|
|
3325
|
+
var b = h.children, v = h.value, E = i[v];
|
|
3326
|
+
if (!Gn(E))
|
|
3327
|
+
throw new Rn(v, "function", s);
|
|
3328
|
+
var m = ge(b, t, r, n, i, o), x = E(m.map(function(S) {
|
|
3329
|
+
return S.value;
|
|
3336
3330
|
}));
|
|
3337
|
-
Array.isArray(
|
|
3331
|
+
Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(S) {
|
|
3338
3332
|
return {
|
|
3339
|
-
type: typeof
|
|
3340
|
-
value:
|
|
3333
|
+
type: typeof S == "string" ? H.literal : H.object,
|
|
3334
|
+
value: S
|
|
3341
3335
|
};
|
|
3342
3336
|
}));
|
|
3343
3337
|
}
|
|
3344
|
-
if (
|
|
3338
|
+
if (Rt(h)) {
|
|
3345
3339
|
var d = h.options[c] || h.options.other;
|
|
3346
3340
|
if (!d)
|
|
3347
|
-
throw new
|
|
3348
|
-
a.push.apply(a,
|
|
3341
|
+
throw new ft(h.value, c, Object.keys(h.options), s);
|
|
3342
|
+
a.push.apply(a, ge(d.value, t, r, n, i));
|
|
3349
3343
|
continue;
|
|
3350
3344
|
}
|
|
3351
|
-
if (
|
|
3345
|
+
if (Dt(h)) {
|
|
3352
3346
|
var d = h.options["=".concat(c)];
|
|
3353
3347
|
if (!d) {
|
|
3354
3348
|
if (!Intl.PluralRules)
|
|
3355
|
-
throw new
|
|
3349
|
+
throw new He(`Intl.PluralRules is not available in this environment.
|
|
3356
3350
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3357
|
-
`,
|
|
3358
|
-
var
|
|
3359
|
-
d = h.options[
|
|
3351
|
+
`, W.MISSING_INTL_API, s);
|
|
3352
|
+
var B = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3353
|
+
d = h.options[B] || h.options.other;
|
|
3360
3354
|
}
|
|
3361
3355
|
if (!d)
|
|
3362
|
-
throw new
|
|
3363
|
-
a.push.apply(a,
|
|
3356
|
+
throw new ft(h.value, c, Object.keys(h.options), s);
|
|
3357
|
+
a.push.apply(a, ge(d.value, t, r, n, i, c - (h.offset || 0)));
|
|
3364
3358
|
continue;
|
|
3365
3359
|
}
|
|
3366
3360
|
}
|
|
3367
|
-
return
|
|
3361
|
+
return Un(a);
|
|
3368
3362
|
}
|
|
3369
|
-
function
|
|
3370
|
-
return t ?
|
|
3371
|
-
return r[n] =
|
|
3363
|
+
function kn(e, t) {
|
|
3364
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3365
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3372
3366
|
}, {})) : e;
|
|
3373
3367
|
}
|
|
3374
|
-
function
|
|
3368
|
+
function Fn(e, t) {
|
|
3375
3369
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3376
|
-
return r[n] =
|
|
3377
|
-
},
|
|
3370
|
+
return r[n] = kn(e[n], t[n]), r;
|
|
3371
|
+
}, _({}, e)) : e;
|
|
3378
3372
|
}
|
|
3379
|
-
function
|
|
3373
|
+
function Ne(e) {
|
|
3380
3374
|
return {
|
|
3381
3375
|
create: function() {
|
|
3382
3376
|
return {
|
|
@@ -3390,39 +3384,39 @@ function Me(e) {
|
|
|
3390
3384
|
}
|
|
3391
3385
|
};
|
|
3392
3386
|
}
|
|
3393
|
-
function
|
|
3387
|
+
function jn(e) {
|
|
3394
3388
|
return e === void 0 && (e = {
|
|
3395
3389
|
number: {},
|
|
3396
3390
|
dateTime: {},
|
|
3397
3391
|
pluralRules: {}
|
|
3398
3392
|
}), {
|
|
3399
|
-
getNumberFormat:
|
|
3393
|
+
getNumberFormat: Oe(function() {
|
|
3400
3394
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3401
3395
|
r[n] = arguments[n];
|
|
3402
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3396
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3403
3397
|
}, {
|
|
3404
|
-
cache:
|
|
3405
|
-
strategy:
|
|
3398
|
+
cache: Ne(e.number),
|
|
3399
|
+
strategy: Ie.variadic
|
|
3406
3400
|
}),
|
|
3407
|
-
getDateTimeFormat:
|
|
3401
|
+
getDateTimeFormat: Oe(function() {
|
|
3408
3402
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3409
3403
|
r[n] = arguments[n];
|
|
3410
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3404
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3411
3405
|
}, {
|
|
3412
|
-
cache:
|
|
3413
|
-
strategy:
|
|
3406
|
+
cache: Ne(e.dateTime),
|
|
3407
|
+
strategy: Ie.variadic
|
|
3414
3408
|
}),
|
|
3415
|
-
getPluralRules:
|
|
3409
|
+
getPluralRules: Oe(function() {
|
|
3416
3410
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3417
3411
|
r[n] = arguments[n];
|
|
3418
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3412
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3419
3413
|
}, {
|
|
3420
|
-
cache:
|
|
3421
|
-
strategy:
|
|
3414
|
+
cache: Ne(e.pluralRules),
|
|
3415
|
+
strategy: Ie.variadic
|
|
3422
3416
|
})
|
|
3423
3417
|
};
|
|
3424
3418
|
}
|
|
3425
|
-
var
|
|
3419
|
+
var Zt = (
|
|
3426
3420
|
/** @class */
|
|
3427
3421
|
function() {
|
|
3428
3422
|
function e(t, r, n, i) {
|
|
@@ -3441,7 +3435,7 @@ var qt = (
|
|
|
3441
3435
|
}, []);
|
|
3442
3436
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3443
3437
|
}, this.formatToParts = function(l) {
|
|
3444
|
-
return
|
|
3438
|
+
return ge(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3445
3439
|
}, this.resolvedOptions = function() {
|
|
3446
3440
|
var l;
|
|
3447
3441
|
return {
|
|
@@ -3454,13 +3448,13 @@ var qt = (
|
|
|
3454
3448
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3455
3449
|
var s = i || {};
|
|
3456
3450
|
s.formatters;
|
|
3457
|
-
var a =
|
|
3458
|
-
this.ast = e.__parse(t,
|
|
3451
|
+
var a = Yr(s, ["formatters"]);
|
|
3452
|
+
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
|
3459
3453
|
} else
|
|
3460
3454
|
this.ast = t;
|
|
3461
3455
|
if (!Array.isArray(this.ast))
|
|
3462
3456
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3463
|
-
this.formats =
|
|
3457
|
+
this.formats = Fn(e.formats, n), this.formatters = i && i.formatters || jn(this.formatterCache);
|
|
3464
3458
|
}
|
|
3465
3459
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3466
3460
|
get: function() {
|
|
@@ -3473,7 +3467,7 @@ var qt = (
|
|
|
3473
3467
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3474
3468
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3475
3469
|
}
|
|
3476
|
-
}, e.__parse =
|
|
3470
|
+
}, e.__parse = $n, e.formats = {
|
|
3477
3471
|
number: {
|
|
3478
3472
|
integer: {
|
|
3479
3473
|
maximumFractionDigits: 0
|
|
@@ -3534,7 +3528,7 @@ var qt = (
|
|
|
3534
3528
|
}, e;
|
|
3535
3529
|
}()
|
|
3536
3530
|
);
|
|
3537
|
-
function
|
|
3531
|
+
function zn(e, t) {
|
|
3538
3532
|
if (t == null)
|
|
3539
3533
|
return;
|
|
3540
3534
|
if (t in e)
|
|
@@ -3555,101 +3549,101 @@ function Xn(e, t) {
|
|
|
3555
3549
|
n = void 0;
|
|
3556
3550
|
return n;
|
|
3557
3551
|
}
|
|
3558
|
-
const
|
|
3552
|
+
const N = {}, Vn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), Jt = (e, t) => {
|
|
3559
3553
|
if (t == null)
|
|
3560
3554
|
return;
|
|
3561
|
-
if (t in
|
|
3562
|
-
return
|
|
3563
|
-
const r =
|
|
3555
|
+
if (t in N && e in N[t])
|
|
3556
|
+
return N[t][e];
|
|
3557
|
+
const r = se(t);
|
|
3564
3558
|
for (let n = 0; n < r.length; n++) {
|
|
3565
|
-
const i = r[n], o =
|
|
3559
|
+
const i = r[n], o = Wn(i, e);
|
|
3566
3560
|
if (o)
|
|
3567
|
-
return
|
|
3561
|
+
return Vn(e, t, o);
|
|
3568
3562
|
}
|
|
3569
3563
|
};
|
|
3570
|
-
let
|
|
3571
|
-
const
|
|
3572
|
-
function
|
|
3573
|
-
return
|
|
3564
|
+
let Ze;
|
|
3565
|
+
const oe = xe({});
|
|
3566
|
+
function Xn(e) {
|
|
3567
|
+
return Ze[e] || null;
|
|
3574
3568
|
}
|
|
3575
|
-
function
|
|
3576
|
-
return e in
|
|
3569
|
+
function qt(e) {
|
|
3570
|
+
return e in Ze;
|
|
3577
3571
|
}
|
|
3578
|
-
function
|
|
3579
|
-
if (!
|
|
3572
|
+
function Wn(e, t) {
|
|
3573
|
+
if (!qt(e))
|
|
3580
3574
|
return null;
|
|
3581
|
-
const r =
|
|
3582
|
-
return
|
|
3575
|
+
const r = Xn(e);
|
|
3576
|
+
return zn(r, t);
|
|
3583
3577
|
}
|
|
3584
|
-
function
|
|
3578
|
+
function Zn(e) {
|
|
3585
3579
|
if (e == null)
|
|
3586
3580
|
return;
|
|
3587
|
-
const t =
|
|
3581
|
+
const t = se(e);
|
|
3588
3582
|
for (let r = 0; r < t.length; r++) {
|
|
3589
3583
|
const n = t[r];
|
|
3590
|
-
if (
|
|
3584
|
+
if (qt(n))
|
|
3591
3585
|
return n;
|
|
3592
3586
|
}
|
|
3593
3587
|
}
|
|
3594
|
-
function
|
|
3595
|
-
delete
|
|
3588
|
+
function Qt(e, ...t) {
|
|
3589
|
+
delete N[e], oe.update((r) => (r[e] = Qr.all([r[e] || {}, ...t]), r));
|
|
3596
3590
|
}
|
|
3597
|
-
|
|
3598
|
-
[
|
|
3591
|
+
q(
|
|
3592
|
+
[oe],
|
|
3599
3593
|
([e]) => Object.keys(e)
|
|
3600
3594
|
);
|
|
3601
|
-
|
|
3602
|
-
const
|
|
3603
|
-
function
|
|
3604
|
-
|
|
3595
|
+
oe.subscribe((e) => Ze = e);
|
|
3596
|
+
const ye = {};
|
|
3597
|
+
function Jn(e, t) {
|
|
3598
|
+
ye[e].delete(t), ye[e].size === 0 && delete ye[e];
|
|
3605
3599
|
}
|
|
3606
|
-
function
|
|
3607
|
-
return
|
|
3600
|
+
function Yt(e) {
|
|
3601
|
+
return ye[e];
|
|
3608
3602
|
}
|
|
3609
|
-
function
|
|
3610
|
-
return
|
|
3611
|
-
const r =
|
|
3603
|
+
function qn(e) {
|
|
3604
|
+
return se(e).map((t) => {
|
|
3605
|
+
const r = Yt(t);
|
|
3612
3606
|
return [t, r ? [...r] : []];
|
|
3613
3607
|
}).filter(([, t]) => t.length > 0);
|
|
3614
3608
|
}
|
|
3615
|
-
function
|
|
3616
|
-
return e == null ? !1 :
|
|
3609
|
+
function _e(e) {
|
|
3610
|
+
return e == null ? !1 : se(e).some(
|
|
3617
3611
|
(t) => {
|
|
3618
3612
|
var r;
|
|
3619
|
-
return (r =
|
|
3613
|
+
return (r = Yt(t)) == null ? void 0 : r.size;
|
|
3620
3614
|
}
|
|
3621
3615
|
);
|
|
3622
3616
|
}
|
|
3623
|
-
function
|
|
3617
|
+
function Qn(e, t) {
|
|
3624
3618
|
return Promise.all(
|
|
3625
|
-
t.map((n) => (
|
|
3626
|
-
).then((n) =>
|
|
3627
|
-
}
|
|
3628
|
-
const
|
|
3629
|
-
function
|
|
3630
|
-
if (!
|
|
3631
|
-
return e in
|
|
3632
|
-
const t =
|
|
3633
|
-
return
|
|
3619
|
+
t.map((n) => (Jn(e, n), n().then((i) => i.default || i)))
|
|
3620
|
+
).then((n) => Qt(e, ...n));
|
|
3621
|
+
}
|
|
3622
|
+
const Y = {};
|
|
3623
|
+
function Kt(e) {
|
|
3624
|
+
if (!_e(e))
|
|
3625
|
+
return e in Y ? Y[e] : Promise.resolve();
|
|
3626
|
+
const t = qn(e);
|
|
3627
|
+
return Y[e] = Promise.all(
|
|
3634
3628
|
t.map(
|
|
3635
|
-
([r, n]) =>
|
|
3629
|
+
([r, n]) => Qn(r, n)
|
|
3636
3630
|
)
|
|
3637
3631
|
).then(() => {
|
|
3638
|
-
if (
|
|
3639
|
-
return
|
|
3640
|
-
delete
|
|
3641
|
-
}),
|
|
3632
|
+
if (_e(e))
|
|
3633
|
+
return Kt(e);
|
|
3634
|
+
delete Y[e];
|
|
3635
|
+
}), Y[e];
|
|
3642
3636
|
}
|
|
3643
|
-
var
|
|
3637
|
+
var mt = Object.getOwnPropertySymbols, Yn = Object.prototype.hasOwnProperty, Kn = Object.prototype.propertyIsEnumerable, ei = (e, t) => {
|
|
3644
3638
|
var r = {};
|
|
3645
3639
|
for (var n in e)
|
|
3646
|
-
|
|
3647
|
-
if (e != null &&
|
|
3648
|
-
for (var n of
|
|
3649
|
-
t.indexOf(n) < 0 &&
|
|
3640
|
+
Yn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3641
|
+
if (e != null && mt)
|
|
3642
|
+
for (var n of mt(e))
|
|
3643
|
+
t.indexOf(n) < 0 && Kn.call(e, n) && (r[n] = e[n]);
|
|
3650
3644
|
return r;
|
|
3651
3645
|
};
|
|
3652
|
-
const
|
|
3646
|
+
const ti = {
|
|
3653
3647
|
number: {
|
|
3654
3648
|
scientific: { notation: "scientific" },
|
|
3655
3649
|
engineering: { notation: "engineering" },
|
|
@@ -3679,81 +3673,81 @@ const ni = {
|
|
|
3679
3673
|
}
|
|
3680
3674
|
}
|
|
3681
3675
|
};
|
|
3682
|
-
function
|
|
3676
|
+
function ri({ locale: e, id: t }) {
|
|
3683
3677
|
console.warn(
|
|
3684
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3678
|
+
`[svelte-i18n] The message "${t}" was not found in "${se(
|
|
3685
3679
|
e
|
|
3686
|
-
).join('", "')}".${
|
|
3680
|
+
).join('", "')}".${_e(M()) ? `
|
|
3687
3681
|
|
|
3688
3682
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3689
3683
|
);
|
|
3690
3684
|
}
|
|
3691
|
-
const
|
|
3685
|
+
const ni = {
|
|
3692
3686
|
fallbackLocale: null,
|
|
3693
3687
|
loadingDelay: 200,
|
|
3694
|
-
formats:
|
|
3688
|
+
formats: ti,
|
|
3695
3689
|
warnOnMissingMessages: !0,
|
|
3696
3690
|
handleMissingMessage: void 0,
|
|
3697
3691
|
ignoreTag: !0
|
|
3698
|
-
},
|
|
3699
|
-
function
|
|
3700
|
-
return
|
|
3692
|
+
}, K = ni;
|
|
3693
|
+
function Z() {
|
|
3694
|
+
return K;
|
|
3701
3695
|
}
|
|
3702
|
-
function
|
|
3703
|
-
const t = e, { formats: r } = t, n =
|
|
3696
|
+
function ii(e) {
|
|
3697
|
+
const t = e, { formats: r } = t, n = ei(t, ["formats"]);
|
|
3704
3698
|
let i = e.fallbackLocale;
|
|
3705
3699
|
if (e.initialLocale)
|
|
3706
3700
|
try {
|
|
3707
|
-
|
|
3701
|
+
Zt.resolveLocale(e.initialLocale) && (i = e.initialLocale);
|
|
3708
3702
|
} catch (o) {
|
|
3709
3703
|
console.warn(
|
|
3710
3704
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3711
3705
|
);
|
|
3712
3706
|
}
|
|
3713
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3707
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ri : console.warn(
|
|
3714
3708
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3715
|
-
)), Object.assign(
|
|
3709
|
+
)), 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);
|
|
3716
3710
|
}
|
|
3717
|
-
const
|
|
3718
|
-
var
|
|
3711
|
+
const Le = xe(!1);
|
|
3712
|
+
var oi = Object.defineProperty, si = Object.defineProperties, ai = Object.getOwnPropertyDescriptors, dt = Object.getOwnPropertySymbols, ui = Object.prototype.hasOwnProperty, li = Object.prototype.propertyIsEnumerable, bt = (e, t, r) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, hi = (e, t) => {
|
|
3719
3713
|
for (var r in t || (t = {}))
|
|
3720
|
-
|
|
3721
|
-
if (
|
|
3722
|
-
for (var r of
|
|
3723
|
-
|
|
3714
|
+
ui.call(t, r) && bt(e, r, t[r]);
|
|
3715
|
+
if (dt)
|
|
3716
|
+
for (var r of dt(t))
|
|
3717
|
+
li.call(t, r) && bt(e, r, t[r]);
|
|
3724
3718
|
return e;
|
|
3725
|
-
},
|
|
3726
|
-
let
|
|
3727
|
-
const
|
|
3728
|
-
function
|
|
3719
|
+
}, ci = (e, t) => si(e, ai(t));
|
|
3720
|
+
let Ve;
|
|
3721
|
+
const Ee = xe(null);
|
|
3722
|
+
function pt(e) {
|
|
3729
3723
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3730
3724
|
}
|
|
3731
|
-
function
|
|
3732
|
-
const r =
|
|
3733
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3725
|
+
function se(e, t = Z().fallbackLocale) {
|
|
3726
|
+
const r = pt(e);
|
|
3727
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...pt(t)])] : r;
|
|
3734
3728
|
}
|
|
3735
|
-
function
|
|
3736
|
-
return
|
|
3729
|
+
function M() {
|
|
3730
|
+
return Ve != null ? Ve : void 0;
|
|
3737
3731
|
}
|
|
3738
|
-
|
|
3739
|
-
|
|
3732
|
+
Ee.subscribe((e) => {
|
|
3733
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3740
3734
|
});
|
|
3741
|
-
const
|
|
3742
|
-
if (e &&
|
|
3743
|
-
const { loadingDelay: t } =
|
|
3735
|
+
const fi = (e) => {
|
|
3736
|
+
if (e && Zn(e) && _e(e)) {
|
|
3737
|
+
const { loadingDelay: t } = Z();
|
|
3744
3738
|
let r;
|
|
3745
|
-
return typeof window != "undefined" &&
|
|
3746
|
-
() =>
|
|
3739
|
+
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
|
3740
|
+
() => Le.set(!0),
|
|
3747
3741
|
t
|
|
3748
|
-
) :
|
|
3749
|
-
|
|
3742
|
+
) : Le.set(!0), Kt(e).then(() => {
|
|
3743
|
+
Ee.set(e);
|
|
3750
3744
|
}).finally(() => {
|
|
3751
|
-
clearTimeout(r),
|
|
3745
|
+
clearTimeout(r), Le.set(!1);
|
|
3752
3746
|
});
|
|
3753
3747
|
}
|
|
3754
|
-
return
|
|
3755
|
-
},
|
|
3756
|
-
set:
|
|
3748
|
+
return Ee.set(e);
|
|
3749
|
+
}, U = ci(hi({}, Ee), {
|
|
3750
|
+
set: fi
|
|
3757
3751
|
}), Be = (e) => {
|
|
3758
3752
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3759
3753
|
return (n) => {
|
|
@@ -3761,92 +3755,92 @@ const di = (e) => {
|
|
|
3761
3755
|
return i in t ? t[i] : t[i] = e(n);
|
|
3762
3756
|
};
|
|
3763
3757
|
};
|
|
3764
|
-
var
|
|
3758
|
+
var mi = Object.defineProperty, ve = Object.getOwnPropertySymbols, er = Object.prototype.hasOwnProperty, tr = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? mi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Je = (e, t) => {
|
|
3765
3759
|
for (var r in t || (t = {}))
|
|
3766
|
-
|
|
3767
|
-
if (
|
|
3768
|
-
for (var r of
|
|
3769
|
-
|
|
3760
|
+
er.call(t, r) && gt(e, r, t[r]);
|
|
3761
|
+
if (ve)
|
|
3762
|
+
for (var r of ve(t))
|
|
3763
|
+
tr.call(t, r) && gt(e, r, t[r]);
|
|
3770
3764
|
return e;
|
|
3771
|
-
},
|
|
3765
|
+
}, Q = (e, t) => {
|
|
3772
3766
|
var r = {};
|
|
3773
3767
|
for (var n in e)
|
|
3774
|
-
|
|
3775
|
-
if (e != null &&
|
|
3776
|
-
for (var n of
|
|
3777
|
-
t.indexOf(n) < 0 &&
|
|
3768
|
+
er.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3769
|
+
if (e != null && ve)
|
|
3770
|
+
for (var n of ve(e))
|
|
3771
|
+
t.indexOf(n) < 0 && tr.call(e, n) && (r[n] = e[n]);
|
|
3778
3772
|
return r;
|
|
3779
3773
|
};
|
|
3780
|
-
const
|
|
3781
|
-
const { formats: r } =
|
|
3774
|
+
const ne = (e, t) => {
|
|
3775
|
+
const { formats: r } = Z();
|
|
3782
3776
|
if (e in r && t in r[e])
|
|
3783
3777
|
return r[e][t];
|
|
3784
3778
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3785
|
-
},
|
|
3779
|
+
}, di = Be(
|
|
3786
3780
|
(e) => {
|
|
3787
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3781
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3788
3782
|
if (r == null)
|
|
3789
3783
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3790
|
-
return n && (i =
|
|
3784
|
+
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
3791
3785
|
}
|
|
3792
|
-
),
|
|
3786
|
+
), bi = Be(
|
|
3793
3787
|
(e) => {
|
|
3794
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3788
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3795
3789
|
if (r == null)
|
|
3796
3790
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3797
|
-
return n ? i =
|
|
3791
|
+
return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3798
3792
|
}
|
|
3799
|
-
),
|
|
3793
|
+
), pi = Be(
|
|
3800
3794
|
(e) => {
|
|
3801
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3795
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3802
3796
|
if (r == null)
|
|
3803
3797
|
throw new Error(
|
|
3804
3798
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3805
3799
|
);
|
|
3806
|
-
return n ? i =
|
|
3800
|
+
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3807
3801
|
}
|
|
3808
|
-
),
|
|
3802
|
+
), gi = (e = {}) => {
|
|
3809
3803
|
var t = e, {
|
|
3810
|
-
locale: r =
|
|
3811
|
-
} = t, n =
|
|
3804
|
+
locale: r = M()
|
|
3805
|
+
} = t, n = Q(t, [
|
|
3812
3806
|
"locale"
|
|
3813
3807
|
]);
|
|
3814
|
-
return
|
|
3815
|
-
},
|
|
3808
|
+
return di(Je({ locale: r }, n));
|
|
3809
|
+
}, yi = (e = {}) => {
|
|
3816
3810
|
var t = e, {
|
|
3817
|
-
locale: r =
|
|
3818
|
-
} = t, n =
|
|
3811
|
+
locale: r = M()
|
|
3812
|
+
} = t, n = Q(t, [
|
|
3819
3813
|
"locale"
|
|
3820
3814
|
]);
|
|
3821
|
-
return
|
|
3822
|
-
},
|
|
3815
|
+
return bi(Je({ locale: r }, n));
|
|
3816
|
+
}, _i = (e = {}) => {
|
|
3823
3817
|
var t = e, {
|
|
3824
|
-
locale: r =
|
|
3825
|
-
} = t, n =
|
|
3818
|
+
locale: r = M()
|
|
3819
|
+
} = t, n = Q(t, [
|
|
3826
3820
|
"locale"
|
|
3827
3821
|
]);
|
|
3828
|
-
return
|
|
3829
|
-
},
|
|
3822
|
+
return pi(Je({ locale: r }, n));
|
|
3823
|
+
}, Ei = Be(
|
|
3830
3824
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3831
|
-
(e, t =
|
|
3832
|
-
ignoreTag:
|
|
3825
|
+
(e, t = M()) => new Zt(e, t, Z().formats, {
|
|
3826
|
+
ignoreTag: Z().ignoreTag
|
|
3833
3827
|
})
|
|
3834
|
-
),
|
|
3828
|
+
), vi = (e, t = {}) => {
|
|
3835
3829
|
var r, n, i, o;
|
|
3836
3830
|
let s = t;
|
|
3837
3831
|
typeof e == "object" && (s = e, e = s.id);
|
|
3838
3832
|
const {
|
|
3839
3833
|
values: a,
|
|
3840
|
-
locale: l =
|
|
3834
|
+
locale: l = M(),
|
|
3841
3835
|
default: u
|
|
3842
3836
|
} = s;
|
|
3843
3837
|
if (l == null)
|
|
3844
3838
|
throw new Error(
|
|
3845
3839
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3846
3840
|
);
|
|
3847
|
-
let h =
|
|
3841
|
+
let h = Jt(e, l);
|
|
3848
3842
|
if (!h)
|
|
3849
|
-
h = (o = (i = (n = (r =
|
|
3843
|
+
h = (o = (i = (n = (r = Z()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3850
3844
|
else if (typeof h != "string")
|
|
3851
3845
|
return console.warn(
|
|
3852
3846
|
`[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.`
|
|
@@ -3855,7 +3849,7 @@ const ie = (e, t) => {
|
|
|
3855
3849
|
return h;
|
|
3856
3850
|
let f = h;
|
|
3857
3851
|
try {
|
|
3858
|
-
f =
|
|
3852
|
+
f = Ei(h, l).format(a);
|
|
3859
3853
|
} catch (c) {
|
|
3860
3854
|
c instanceof Error && console.warn(
|
|
3861
3855
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3863,20 +3857,20 @@ const ie = (e, t) => {
|
|
|
3863
3857
|
);
|
|
3864
3858
|
}
|
|
3865
3859
|
return f;
|
|
3866
|
-
},
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
function
|
|
3872
|
-
|
|
3873
|
-
}
|
|
3874
|
-
function
|
|
3875
|
-
|
|
3860
|
+
}, xi = (e, t) => _i(t).format(e), Ti = (e, t) => yi(t).format(e), Hi = (e, t) => gi(t).format(e), Bi = (e, t = M()) => Jt(e, t), wi = q([U, oe], () => vi);
|
|
3861
|
+
q([U], () => xi);
|
|
3862
|
+
q([U], () => Ti);
|
|
3863
|
+
q([U], () => Hi);
|
|
3864
|
+
q([U, oe], () => Bi);
|
|
3865
|
+
function yt(e, t) {
|
|
3866
|
+
Qt(e, t);
|
|
3867
|
+
}
|
|
3868
|
+
function Si(e) {
|
|
3869
|
+
ii({
|
|
3876
3870
|
fallbackLocale: "en"
|
|
3877
|
-
}),
|
|
3871
|
+
}), U.set(e);
|
|
3878
3872
|
}
|
|
3879
|
-
const
|
|
3873
|
+
const _t = {
|
|
3880
3874
|
en: {
|
|
3881
3875
|
errorGeneralTitle: "Error Occurred",
|
|
3882
3876
|
errorGeneralText: "Something went wrong",
|
|
@@ -3930,74 +3924,74 @@ const vt = {
|
|
|
3930
3924
|
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."
|
|
3931
3925
|
}
|
|
3932
3926
|
};
|
|
3933
|
-
function
|
|
3934
|
-
|
|
3927
|
+
function Ai(e) {
|
|
3928
|
+
hr(e, "svelte-1dt5wyw", ".CashierError{display:flex;width:100%;justify-content:center;align-items:center;overflow:hidden auto;border-radius:10px;border:1px solid var(--emw--color-grey-105, #E8E9EB);background-color:var(--emw--color-white, #ffffff);padding:15px 0}.CashierErrorContent{display:flex;flex-direction:column;width:100%;max-width:300px;align-items:center;gap:var(--emw--spacing-large, 20px);box-sizing:border-box;padding:1px var(--emw--spacing-medium, 15px);height:inherit}.CashierErrorTitle{color:var(--emw--color-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}.CashierErrorButton{width:100%;height:36px;color:var(--emw--color-white, #fff);text-align:center;cursor:pointer;font-size:var(--emw--font-size-x-small, 12px);font-style:normal;font-weight:var(--emw--font-weight-semibold, 500);font-family:inherit;line-height:36px;border:none;border-radius:var(--emw--border-radius-medium, 10px);background:var(--emw--color-primary, #3854FF)}.CashierErrorButton:hover{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorButton:active{background:var(--emw--color-main-button-active, #3348ce)}.CashierErrorContent ui-image img{width:300px}");
|
|
3935
3929
|
}
|
|
3936
|
-
const
|
|
3937
|
-
function
|
|
3930
|
+
const Pi = (e) => ({}), Et = (e) => ({}), Oi = (e) => ({}), vt = (e) => ({}), Ii = (e) => ({}), xt = (e) => ({}), Ci = (e) => ({}), Tt = (e) => ({ class: "CashierErrorIcon" });
|
|
3931
|
+
function Ht(e) {
|
|
3938
3932
|
let t, r;
|
|
3939
3933
|
return {
|
|
3940
3934
|
c() {
|
|
3941
|
-
t =
|
|
3942
|
-
e[0]}/error-general-icon.png`) ||
|
|
3935
|
+
t = I("ui-image"), rt(t.src, r = `${/*assetsurl*/
|
|
3936
|
+
e[0]}/error-general-icon.png`) || le(t, "src", r), le(t, "width", "300px"), le(t, "alt", "error");
|
|
3943
3937
|
},
|
|
3944
3938
|
m(n, i) {
|
|
3945
|
-
|
|
3939
|
+
D(n, t, i);
|
|
3946
3940
|
},
|
|
3947
3941
|
p(n, i) {
|
|
3948
3942
|
i & /*assetsurl*/
|
|
3949
|
-
1 && !
|
|
3950
|
-
n[0]}/error-general-icon.png`) &&
|
|
3943
|
+
1 && !rt(t.src, r = `${/*assetsurl*/
|
|
3944
|
+
n[0]}/error-general-icon.png`) && le(t, "src", r);
|
|
3951
3945
|
},
|
|
3952
3946
|
d(n) {
|
|
3953
|
-
n &&
|
|
3947
|
+
n && L(t);
|
|
3954
3948
|
}
|
|
3955
3949
|
};
|
|
3956
3950
|
}
|
|
3957
|
-
function
|
|
3951
|
+
function Ni(e) {
|
|
3958
3952
|
let t, r = (
|
|
3959
3953
|
/*assetsurl*/
|
|
3960
|
-
e[0] &&
|
|
3954
|
+
e[0] && Ht(e)
|
|
3961
3955
|
);
|
|
3962
3956
|
return {
|
|
3963
3957
|
c() {
|
|
3964
|
-
r && r.c(), t =
|
|
3958
|
+
r && r.c(), t = mr();
|
|
3965
3959
|
},
|
|
3966
3960
|
m(n, i) {
|
|
3967
|
-
r && r.m(n, i),
|
|
3961
|
+
r && r.m(n, i), D(n, t, i);
|
|
3968
3962
|
},
|
|
3969
3963
|
p(n, i) {
|
|
3970
3964
|
/*assetsurl*/
|
|
3971
|
-
n[0] ? r ? r.p(n, i) : (r =
|
|
3965
|
+
n[0] ? r ? r.p(n, i) : (r = Ht(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3972
3966
|
},
|
|
3973
3967
|
d(n) {
|
|
3974
|
-
n &&
|
|
3968
|
+
n && L(t), r && r.d(n);
|
|
3975
3969
|
}
|
|
3976
3970
|
};
|
|
3977
3971
|
}
|
|
3978
|
-
function
|
|
3972
|
+
function Li(e) {
|
|
3979
3973
|
let t, r = (
|
|
3980
3974
|
/*$_*/
|
|
3981
3975
|
e[4]("errorGeneralTitle") + ""
|
|
3982
3976
|
), n;
|
|
3983
3977
|
return {
|
|
3984
3978
|
c() {
|
|
3985
|
-
t =
|
|
3979
|
+
t = I("span"), n = ie(r), R(t, "class", "CashierErrorTitle");
|
|
3986
3980
|
},
|
|
3987
3981
|
m(i, o) {
|
|
3988
|
-
|
|
3982
|
+
D(i, t, o), P(t, n);
|
|
3989
3983
|
},
|
|
3990
3984
|
p(i, o) {
|
|
3991
3985
|
o & /*$_*/
|
|
3992
3986
|
16 && r !== (r = /*$_*/
|
|
3993
|
-
i[4]("errorGeneralTitle") + "") &&
|
|
3987
|
+
i[4]("errorGeneralTitle") + "") && We(n, r);
|
|
3994
3988
|
},
|
|
3995
3989
|
d(i) {
|
|
3996
|
-
i &&
|
|
3990
|
+
i && L(t);
|
|
3997
3991
|
}
|
|
3998
3992
|
};
|
|
3999
3993
|
}
|
|
4000
|
-
function
|
|
3994
|
+
function Mi(e) {
|
|
4001
3995
|
let t, r = (
|
|
4002
3996
|
/*$_*/
|
|
4003
3997
|
e[4](`${/*errorcode*/
|
|
@@ -4005,19 +3999,19 @@ function Ri(e) {
|
|
|
4005
3999
|
), n;
|
|
4006
4000
|
return {
|
|
4007
4001
|
c() {
|
|
4008
|
-
t =
|
|
4002
|
+
t = I("span"), n = ie(r), R(t, "class", "CashierErrorText");
|
|
4009
4003
|
},
|
|
4010
4004
|
m(i, o) {
|
|
4011
|
-
|
|
4005
|
+
D(i, t, o), P(t, n);
|
|
4012
4006
|
},
|
|
4013
4007
|
p(i, o) {
|
|
4014
4008
|
o & /*$_, errorcode*/
|
|
4015
4009
|
20 && r !== (r = /*$_*/
|
|
4016
4010
|
i[4](`${/*errorcode*/
|
|
4017
|
-
i[2] || "errorGeneralText"}`) + "") &&
|
|
4011
|
+
i[2] || "errorGeneralText"}`) + "") && We(n, r);
|
|
4018
4012
|
},
|
|
4019
4013
|
d(i) {
|
|
4020
|
-
i &&
|
|
4014
|
+
i && L(t);
|
|
4021
4015
|
}
|
|
4022
4016
|
};
|
|
4023
4017
|
}
|
|
@@ -4026,13 +4020,13 @@ function Bt(e) {
|
|
|
4026
4020
|
const r = (
|
|
4027
4021
|
/*#slots*/
|
|
4028
4022
|
e[12].button
|
|
4029
|
-
), n =
|
|
4023
|
+
), n = ce(
|
|
4030
4024
|
r,
|
|
4031
4025
|
e,
|
|
4032
4026
|
/*$$scope*/
|
|
4033
4027
|
e[11],
|
|
4034
|
-
|
|
4035
|
-
), i = n ||
|
|
4028
|
+
Et
|
|
4029
|
+
), i = n || $i(e);
|
|
4036
4030
|
return {
|
|
4037
4031
|
c() {
|
|
4038
4032
|
i && i.c();
|
|
@@ -4042,48 +4036,48 @@ function Bt(e) {
|
|
|
4042
4036
|
},
|
|
4043
4037
|
p(o, s) {
|
|
4044
4038
|
n ? n.p && (!t || s & /*$$scope*/
|
|
4045
|
-
2048) &&
|
|
4039
|
+
2048) && me(
|
|
4046
4040
|
n,
|
|
4047
4041
|
r,
|
|
4048
4042
|
o,
|
|
4049
4043
|
/*$$scope*/
|
|
4050
4044
|
o[11],
|
|
4051
|
-
t ?
|
|
4045
|
+
t ? fe(
|
|
4052
4046
|
r,
|
|
4053
4047
|
/*$$scope*/
|
|
4054
4048
|
o[11],
|
|
4055
4049
|
s,
|
|
4056
|
-
|
|
4057
|
-
) :
|
|
4050
|
+
Pi
|
|
4051
|
+
) : de(
|
|
4058
4052
|
/*$$scope*/
|
|
4059
4053
|
o[11]
|
|
4060
4054
|
),
|
|
4061
|
-
|
|
4055
|
+
Et
|
|
4062
4056
|
) : i && i.p && (!t || s & /*$_*/
|
|
4063
4057
|
16) && i.p(o, t ? s : -1);
|
|
4064
4058
|
},
|
|
4065
4059
|
i(o) {
|
|
4066
|
-
t || (
|
|
4060
|
+
t || (C(i, o), t = !0);
|
|
4067
4061
|
},
|
|
4068
4062
|
o(o) {
|
|
4069
|
-
|
|
4063
|
+
j(i, o), t = !1;
|
|
4070
4064
|
},
|
|
4071
4065
|
d(o) {
|
|
4072
4066
|
i && i.d(o);
|
|
4073
4067
|
}
|
|
4074
4068
|
};
|
|
4075
4069
|
}
|
|
4076
|
-
function
|
|
4070
|
+
function $i(e) {
|
|
4077
4071
|
let t, r, n = (
|
|
4078
4072
|
/*$_*/
|
|
4079
4073
|
e[4]("errorGeneralButton") + ""
|
|
4080
4074
|
), i, o, s;
|
|
4081
4075
|
return {
|
|
4082
4076
|
c() {
|
|
4083
|
-
t =
|
|
4077
|
+
t = I("button"), r = I("span"), i = ie(n), R(t, "class", "CashierErrorButton");
|
|
4084
4078
|
},
|
|
4085
4079
|
m(a, l) {
|
|
4086
|
-
|
|
4080
|
+
D(a, t, l), P(t, r), P(r, i), o || (s = dr(
|
|
4087
4081
|
t,
|
|
4088
4082
|
"click",
|
|
4089
4083
|
/*close*/
|
|
@@ -4093,171 +4087,171 @@ function Di(e) {
|
|
|
4093
4087
|
p(a, l) {
|
|
4094
4088
|
l & /*$_*/
|
|
4095
4089
|
16 && n !== (n = /*$_*/
|
|
4096
|
-
a[4]("errorGeneralButton") + "") &&
|
|
4090
|
+
a[4]("errorGeneralButton") + "") && We(i, n);
|
|
4097
4091
|
},
|
|
4098
4092
|
d(a) {
|
|
4099
|
-
a &&
|
|
4093
|
+
a && L(t), o = !1, s();
|
|
4100
4094
|
}
|
|
4101
4095
|
};
|
|
4102
4096
|
}
|
|
4103
|
-
function
|
|
4097
|
+
function Ri(e) {
|
|
4104
4098
|
let t, r, n, i, o, s;
|
|
4105
4099
|
const a = (
|
|
4106
4100
|
/*#slots*/
|
|
4107
4101
|
e[12].icon
|
|
4108
|
-
), l =
|
|
4102
|
+
), l = ce(
|
|
4109
4103
|
a,
|
|
4110
4104
|
e,
|
|
4111
4105
|
/*$$scope*/
|
|
4112
4106
|
e[11],
|
|
4113
|
-
|
|
4114
|
-
), u = l ||
|
|
4107
|
+
Tt
|
|
4108
|
+
), u = l || Ni(e), h = (
|
|
4115
4109
|
/*#slots*/
|
|
4116
4110
|
e[12].title
|
|
4117
|
-
), f =
|
|
4111
|
+
), f = ce(
|
|
4118
4112
|
h,
|
|
4119
4113
|
e,
|
|
4120
4114
|
/*$$scope*/
|
|
4121
4115
|
e[11],
|
|
4122
|
-
|
|
4123
|
-
), c = f ||
|
|
4116
|
+
xt
|
|
4117
|
+
), c = f || Li(e), y = (
|
|
4124
4118
|
/*#slots*/
|
|
4125
4119
|
e[12].text
|
|
4126
|
-
),
|
|
4120
|
+
), b = ce(
|
|
4127
4121
|
y,
|
|
4128
4122
|
e,
|
|
4129
4123
|
/*$$scope*/
|
|
4130
4124
|
e[11],
|
|
4131
|
-
|
|
4132
|
-
),
|
|
4133
|
-
let
|
|
4125
|
+
vt
|
|
4126
|
+
), v = b || Mi(e);
|
|
4127
|
+
let E = (!/*hidebuttons*/
|
|
4134
4128
|
e[1] || /*hidebuttons*/
|
|
4135
4129
|
e[1] === "false") && Bt(e);
|
|
4136
4130
|
return {
|
|
4137
4131
|
c() {
|
|
4138
|
-
t =
|
|
4132
|
+
t = I("div"), r = I("div"), u && u.c(), n = Se(), c && c.c(), i = Se(), v && v.c(), o = Se(), E && E.c(), R(r, "class", "CashierErrorContent"), R(t, "class", "CashierError");
|
|
4139
4133
|
},
|
|
4140
|
-
m(m,
|
|
4141
|
-
|
|
4134
|
+
m(m, x) {
|
|
4135
|
+
D(m, t, x), P(t, r), u && u.m(r, null), P(r, n), c && c.m(r, null), P(r, i), v && v.m(r, null), P(r, o), E && E.m(r, null), e[13](t), s = !0;
|
|
4142
4136
|
},
|
|
4143
|
-
p(m, [
|
|
4144
|
-
l ? l.p && (!s ||
|
|
4145
|
-
2048) &&
|
|
4137
|
+
p(m, [x]) {
|
|
4138
|
+
l ? l.p && (!s || x & /*$$scope*/
|
|
4139
|
+
2048) && me(
|
|
4146
4140
|
l,
|
|
4147
4141
|
a,
|
|
4148
4142
|
m,
|
|
4149
4143
|
/*$$scope*/
|
|
4150
4144
|
m[11],
|
|
4151
|
-
s ?
|
|
4145
|
+
s ? fe(
|
|
4152
4146
|
a,
|
|
4153
4147
|
/*$$scope*/
|
|
4154
4148
|
m[11],
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
) :
|
|
4149
|
+
x,
|
|
4150
|
+
Ci
|
|
4151
|
+
) : de(
|
|
4158
4152
|
/*$$scope*/
|
|
4159
4153
|
m[11]
|
|
4160
4154
|
),
|
|
4161
|
-
|
|
4162
|
-
) : u && u.p && (!s ||
|
|
4163
|
-
1) && u.p(m, s ?
|
|
4164
|
-
2048) &&
|
|
4155
|
+
Tt
|
|
4156
|
+
) : u && u.p && (!s || x & /*assetsurl*/
|
|
4157
|
+
1) && u.p(m, s ? x : -1), f ? f.p && (!s || x & /*$$scope*/
|
|
4158
|
+
2048) && me(
|
|
4165
4159
|
f,
|
|
4166
4160
|
h,
|
|
4167
4161
|
m,
|
|
4168
4162
|
/*$$scope*/
|
|
4169
4163
|
m[11],
|
|
4170
|
-
s ?
|
|
4164
|
+
s ? fe(
|
|
4171
4165
|
h,
|
|
4172
4166
|
/*$$scope*/
|
|
4173
4167
|
m[11],
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
) :
|
|
4168
|
+
x,
|
|
4169
|
+
Ii
|
|
4170
|
+
) : de(
|
|
4177
4171
|
/*$$scope*/
|
|
4178
4172
|
m[11]
|
|
4179
4173
|
),
|
|
4180
|
-
|
|
4181
|
-
) : c && c.p && (!s ||
|
|
4182
|
-
16) && c.p(m, s ?
|
|
4183
|
-
2048) &&
|
|
4184
|
-
|
|
4174
|
+
xt
|
|
4175
|
+
) : c && c.p && (!s || x & /*$_*/
|
|
4176
|
+
16) && c.p(m, s ? x : -1), b ? b.p && (!s || x & /*$$scope*/
|
|
4177
|
+
2048) && me(
|
|
4178
|
+
b,
|
|
4185
4179
|
y,
|
|
4186
4180
|
m,
|
|
4187
4181
|
/*$$scope*/
|
|
4188
4182
|
m[11],
|
|
4189
|
-
s ?
|
|
4183
|
+
s ? fe(
|
|
4190
4184
|
y,
|
|
4191
4185
|
/*$$scope*/
|
|
4192
4186
|
m[11],
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
) :
|
|
4187
|
+
x,
|
|
4188
|
+
Oi
|
|
4189
|
+
) : de(
|
|
4196
4190
|
/*$$scope*/
|
|
4197
4191
|
m[11]
|
|
4198
4192
|
),
|
|
4199
|
-
|
|
4200
|
-
) :
|
|
4201
|
-
20) &&
|
|
4193
|
+
vt
|
|
4194
|
+
) : v && v.p && (!s || x & /*$_, errorcode*/
|
|
4195
|
+
20) && v.p(m, s ? x : -1), !/*hidebuttons*/
|
|
4202
4196
|
m[1] || /*hidebuttons*/
|
|
4203
|
-
m[1] === "false" ?
|
|
4204
|
-
2 &&
|
|
4205
|
-
|
|
4206
|
-
}),
|
|
4197
|
+
m[1] === "false" ? E ? (E.p(m, x), x & /*hidebuttons*/
|
|
4198
|
+
2 && C(E, 1)) : (E = Bt(m), E.c(), C(E, 1), E.m(r, null)) : E && (Tr(), j(E, 1, 1, () => {
|
|
4199
|
+
E = null;
|
|
4200
|
+
}), Hr());
|
|
4207
4201
|
},
|
|
4208
4202
|
i(m) {
|
|
4209
|
-
s || (
|
|
4203
|
+
s || (C(u, m), C(c, m), C(v, m), C(E), s = !0);
|
|
4210
4204
|
},
|
|
4211
4205
|
o(m) {
|
|
4212
|
-
|
|
4206
|
+
j(u, m), j(c, m), j(v, m), j(E), s = !1;
|
|
4213
4207
|
},
|
|
4214
4208
|
d(m) {
|
|
4215
|
-
m &&
|
|
4209
|
+
m && L(t), u && u.d(m), c && c.d(m), v && v.d(m), E && E.d(), e[13](null);
|
|
4216
4210
|
}
|
|
4217
4211
|
};
|
|
4218
4212
|
}
|
|
4219
|
-
function
|
|
4213
|
+
function Di(e, t, r) {
|
|
4220
4214
|
let n;
|
|
4221
|
-
|
|
4222
|
-
let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: a = "en" } = t, { hidebuttons: l = "" } = t, { errorcode: u = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: c = "" } = t, { mbsource: y = "" } = t,
|
|
4223
|
-
const
|
|
4224
|
-
|
|
4225
|
-
},
|
|
4226
|
-
fetch(c).then((
|
|
4227
|
-
Object.keys(
|
|
4228
|
-
|
|
4215
|
+
lr(e, wi, (d) => r(4, n = d));
|
|
4216
|
+
let { $$slots: i = {}, $$scope: o } = t, { assetsurl: s = "" } = t, { lang: a = "en" } = t, { hidebuttons: l = "" } = t, { errorcode: u = "" } = t, { clientstyling: h = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: c = "" } = t, { mbsource: y = "" } = t, b;
|
|
4217
|
+
const v = () => {
|
|
4218
|
+
Si(a);
|
|
4219
|
+
}, E = () => {
|
|
4220
|
+
fetch(c).then((B) => B.json()).then((B) => {
|
|
4221
|
+
Object.keys(B).forEach((S) => {
|
|
4222
|
+
yt(S, B[S]);
|
|
4229
4223
|
});
|
|
4230
|
-
}).catch((
|
|
4231
|
-
console.error(
|
|
4224
|
+
}).catch((B) => {
|
|
4225
|
+
console.error(B);
|
|
4232
4226
|
});
|
|
4233
4227
|
};
|
|
4234
|
-
Object.keys(
|
|
4235
|
-
|
|
4228
|
+
Object.keys(_t).forEach((d) => {
|
|
4229
|
+
yt(d, _t[d]);
|
|
4236
4230
|
});
|
|
4237
4231
|
const m = () => {
|
|
4238
4232
|
window.postMessage({ type: "ErrorClose" }, window.location.href);
|
|
4239
4233
|
};
|
|
4240
|
-
|
|
4234
|
+
yr(() => () => {
|
|
4241
4235
|
});
|
|
4242
|
-
function
|
|
4243
|
-
|
|
4244
|
-
|
|
4236
|
+
function x(d) {
|
|
4237
|
+
Me[d ? "unshift" : "push"](() => {
|
|
4238
|
+
b = d, r(3, b);
|
|
4245
4239
|
});
|
|
4246
4240
|
}
|
|
4247
4241
|
return e.$$set = (d) => {
|
|
4248
4242
|
"assetsurl" in d && r(0, s = d.assetsurl), "lang" in d && r(6, a = 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, o = d.$$scope);
|
|
4249
4243
|
}, e.$$.update = () => {
|
|
4250
4244
|
e.$$.dirty & /*lang*/
|
|
4251
|
-
64 && a &&
|
|
4252
|
-
136 && h &&
|
|
4253
|
-
264 && f &&
|
|
4254
|
-
1032 && y &&
|
|
4255
|
-
512 && c &&
|
|
4245
|
+
64 && a && v(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4246
|
+
136 && h && b && Cr(b, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4247
|
+
264 && f && b && Nr(b, f), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4248
|
+
1032 && y && b && Lr(b, `${y}.Style`), e.$$.dirty & /*translationurl*/
|
|
4249
|
+
512 && c && E();
|
|
4256
4250
|
}, [
|
|
4257
4251
|
s,
|
|
4258
4252
|
l,
|
|
4259
4253
|
u,
|
|
4260
|
-
|
|
4254
|
+
b,
|
|
4261
4255
|
n,
|
|
4262
4256
|
m,
|
|
4263
4257
|
a,
|
|
@@ -4267,17 +4261,17 @@ function Gi(e, t, r) {
|
|
|
4267
4261
|
y,
|
|
4268
4262
|
o,
|
|
4269
4263
|
i,
|
|
4270
|
-
|
|
4264
|
+
x
|
|
4271
4265
|
];
|
|
4272
4266
|
}
|
|
4273
|
-
class
|
|
4267
|
+
class Ui extends Or {
|
|
4274
4268
|
constructor(t) {
|
|
4275
|
-
super(),
|
|
4269
|
+
super(), Ar(
|
|
4276
4270
|
this,
|
|
4277
4271
|
t,
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4272
|
+
Di,
|
|
4273
|
+
Ri,
|
|
4274
|
+
St,
|
|
4281
4275
|
{
|
|
4282
4276
|
assetsurl: 0,
|
|
4283
4277
|
lang: 6,
|
|
@@ -4288,7 +4282,7 @@ class ki extends Cr {
|
|
|
4288
4282
|
translationurl: 9,
|
|
4289
4283
|
mbsource: 10
|
|
4290
4284
|
},
|
|
4291
|
-
|
|
4285
|
+
Ai
|
|
4292
4286
|
);
|
|
4293
4287
|
}
|
|
4294
4288
|
get assetsurl() {
|
|
@@ -4340,7 +4334,7 @@ class ki extends Cr {
|
|
|
4340
4334
|
this.$$set({ mbsource: t }), A();
|
|
4341
4335
|
}
|
|
4342
4336
|
}
|
|
4343
|
-
|
|
4337
|
+
Pr(Ui, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4344
4338
|
export {
|
|
4345
|
-
|
|
4339
|
+
Ui as default
|
|
4346
4340
|
};
|