@everymatrix/cashier-error 1.77.24 → 1.77.26
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-CBDXN_WJ.cjs +18 -0
- package/components/{CashierError-OmH93Eyn.js → CashierError-F1EFPPHW.js} +643 -647
- package/components/{CashierError-DkeM_bkc.js → CashierError-zLT6XQH9.js} +643 -647
- 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-BD-QREJe.js +558 -0
- package/stencil/index-97d17652-DJqGt8q2.js +542 -0
- package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
- package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-BMiZteNE.cjs} +1 -1
- package/stencil/{ui-image-CHeV8e9p.js → ui-image-BW8AeEVd.js} +1 -1
- package/stencil/{ui-image-C7s6Uvn5.js → ui-image-CX3MBBZL.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-Dh5Eqdlm.js} +2 -2
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-_K8Pt3w9.js} +2 -2
- package/components/CashierError-CbOMMFF_.cjs +0 -5
- package/stencil/index-97d17652--F7PvMq9.js +0 -542
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
- package/stencil/index-97d17652-CCFHkzJw.js +0 -558
|
@@ -2,15 +2,15 @@ var ir = Object.defineProperty, or = Object.defineProperties;
|
|
|
2
2
|
var sr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Ke = Object.getOwnPropertySymbols;
|
|
4
4
|
var ar = Object.prototype.hasOwnProperty, ur = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var we = (e, t, r) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
ar.call(t, r) &&
|
|
7
|
+
ar.call(t, r) && we(e, r, t[r]);
|
|
8
8
|
if (Ke)
|
|
9
9
|
for (var r of Ke(t))
|
|
10
|
-
ur.call(t, r) &&
|
|
10
|
+
ur.call(t, r) && we(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, tt = (e, t) => or(e, sr(t));
|
|
13
|
-
var
|
|
13
|
+
var w = (e, t, r) => (we(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var rt = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (l) => {
|
|
16
16
|
try {
|
|
@@ -27,8 +27,8 @@ 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-CX3MBBZL.js";
|
|
31
|
+
function O() {
|
|
32
32
|
}
|
|
33
33
|
function lr(e, t) {
|
|
34
34
|
for (const r in t)
|
|
@@ -44,18 +44,18 @@ function At(e) {
|
|
|
44
44
|
function nt() {
|
|
45
45
|
return /* @__PURE__ */ Object.create(null);
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function J(e) {
|
|
48
48
|
e.forEach(At);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Xe(e) {
|
|
51
51
|
return typeof e == "function";
|
|
52
52
|
}
|
|
53
53
|
function Pt(e, t) {
|
|
54
54
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
55
55
|
}
|
|
56
|
-
let
|
|
56
|
+
let ue;
|
|
57
57
|
function it(e, t) {
|
|
58
|
-
return e === t ? !0 : (
|
|
58
|
+
return e === t ? !0 : (ue || (ue = document.createElement("a")), ue.href = t, e === ue.href);
|
|
59
59
|
}
|
|
60
60
|
function hr(e) {
|
|
61
61
|
return Object.keys(e).length === 0;
|
|
@@ -64,7 +64,7 @@ function Ot(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;
|
|
@@ -72,7 +72,7 @@ function Ot(e, ...t) {
|
|
|
72
72
|
function cr(e, t, r) {
|
|
73
73
|
e.$$.on_destroy.push(Ot(t, r));
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function ce(e, t, r, n) {
|
|
76
76
|
if (e) {
|
|
77
77
|
const i = It(e, t, r, n);
|
|
78
78
|
return e[0](i);
|
|
@@ -81,7 +81,7 @@ function fe(e, t, r, n) {
|
|
|
81
81
|
function It(e, t, r, n) {
|
|
82
82
|
return e[1] && n ? lr(r.ctx.slice(), e[1](n(t))) : r.ctx;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function fe(e, t, r, n) {
|
|
85
85
|
if (e[2] && n) {
|
|
86
86
|
const i = e[2](n(r));
|
|
87
87
|
if (t.dirty === void 0)
|
|
@@ -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
101
|
const s = It(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,13 +111,13 @@ 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
117
|
function fr(e, t, r) {
|
|
118
118
|
const n = mr(e);
|
|
119
119
|
if (!n.getElementById(t)) {
|
|
120
|
-
const i =
|
|
120
|
+
const i = I("style");
|
|
121
121
|
i.id = t, i.textContent = r, dr(n, i);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -132,44 +132,44 @@ function mr(e) {
|
|
|
132
132
|
) : e.ownerDocument;
|
|
133
133
|
}
|
|
134
134
|
function dr(e, t) {
|
|
135
|
-
return
|
|
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 br() {
|
|
157
|
+
return ie("");
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function pr(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
169
|
function gr(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
|
}
|
|
@@ -182,115 +182,115 @@ 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
189
|
function _r() {
|
|
190
|
-
if (!
|
|
190
|
+
if (!te)
|
|
191
191
|
throw new Error("Function called outside component initialization");
|
|
192
|
-
return
|
|
192
|
+
return te;
|
|
193
193
|
}
|
|
194
194
|
function Er(e) {
|
|
195
195
|
_r().$$.on_mount.push(e);
|
|
196
196
|
}
|
|
197
|
-
const
|
|
198
|
-
let
|
|
197
|
+
const F = [], Me = [];
|
|
198
|
+
let z = [];
|
|
199
199
|
const ot = [], vr = /* @__PURE__ */ Promise.resolve();
|
|
200
|
-
let
|
|
200
|
+
let $e = !1;
|
|
201
201
|
function xr() {
|
|
202
|
-
|
|
202
|
+
$e || ($e = !0, vr.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), Tr(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 (
|
|
228
|
+
z.length = 0;
|
|
229
|
+
} while (F.length);
|
|
230
230
|
for (; ot.length; )
|
|
231
231
|
ot.pop()();
|
|
232
|
-
|
|
232
|
+
$e = !1, Ae.clear(), ee(e);
|
|
233
233
|
}
|
|
234
234
|
function Tr(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
241
|
function Hr(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 Br() {
|
|
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 wr() {
|
|
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
|
|
269
269
|
n && n();
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Sr(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(At).filter(
|
|
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(At).filter(Xe);
|
|
275
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : J(o), e.$$.on_mount = [];
|
|
276
|
+
}), i.forEach(Re);
|
|
277
277
|
}
|
|
278
278
|
function Ar(e, t) {
|
|
279
279
|
const r = e.$$;
|
|
280
|
-
r.fragment !== null && (Hr(r.after_update),
|
|
280
|
+
r.fragment !== null && (Hr(r.after_update), J(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
281
281
|
}
|
|
282
282
|
function Pr(e, t) {
|
|
283
|
-
e.$$.dirty[0] === -1 && (
|
|
283
|
+
e.$$.dirty[0] === -1 && (F.push(e), xr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
284
284
|
}
|
|
285
285
|
function Or(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
286
|
-
const l =
|
|
287
|
-
|
|
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
295
|
bound: nt(),
|
|
296
296
|
// lifecycle
|
|
@@ -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 && Pr(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
316
|
const f = gr(t.target);
|
|
317
|
-
u.fragment && u.fragment.l(f), f.forEach(
|
|
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), Sr(e, t.target, t.anchor), A();
|
|
321
321
|
}
|
|
322
|
-
|
|
322
|
+
ee(l);
|
|
323
323
|
}
|
|
324
324
|
let Ct;
|
|
325
325
|
typeof HTMLElement == "function" && (Ct = 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) {
|
|
@@ -366,17 +366,17 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
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
|
};
|
|
@@ -388,7 +388,7 @@ typeof HTMLElement == "function" && (Ct = class extends HTMLElement {
|
|
|
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]);
|
|
@@ -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])
|
|
@@ -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) => {
|
|
@@ -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
|
-
Ar(this, 1), this.$destroy =
|
|
527
|
+
Ar(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);
|
|
@@ -574,39 +574,39 @@ function $r(e, t, r) {
|
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
const
|
|
577
|
+
const k = [];
|
|
578
578
|
function Rr(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
587
|
if (Pt(e, a) && (e = a, r)) {
|
|
588
|
-
const l = !
|
|
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");
|
|
@@ -614,26 +614,26 @@ function Q(e, t, r) {
|
|
|
614
614
|
return Rr(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) => Ot(
|
|
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
|
}
|
|
@@ -657,19 +657,19 @@ function zr(e) {
|
|
|
657
657
|
function Vr(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(Vr(e), e, t) : e;
|
|
662
662
|
}
|
|
663
663
|
function Xr(e, t, r) {
|
|
664
664
|
return e.concat(t).map(function(n) {
|
|
665
|
-
return
|
|
665
|
+
return re(n, r);
|
|
666
666
|
});
|
|
667
667
|
}
|
|
668
668
|
function Wr(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
674
|
function Zr(e) {
|
|
675
675
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -692,51 +692,65 @@ function Jr(e, t) {
|
|
|
692
692
|
function qr(e, t, r) {
|
|
693
693
|
var n = {};
|
|
694
694
|
return r.isMergeableObject(e) && st(e).forEach(function(i) {
|
|
695
|
-
n[i] =
|
|
695
|
+
n[i] = re(e[i], r);
|
|
696
696
|
}), st(t).forEach(function(i) {
|
|
697
|
-
Jr(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Wr(i, r)(e[i], t[i], r) : n[i] =
|
|
697
|
+
Jr(e, i) || (Nt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Wr(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 || Xr, r.isMergeableObject = r.isMergeableObject || Ur, r.cloneUnlessOtherwiseSpecified =
|
|
700
|
+
function V(e, t, r) {
|
|
701
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Xr, r.isMergeableObject = r.isMergeableObject || Ur, 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) : qr(e, t, r) :
|
|
703
|
+
return o ? n ? r.arrayMerge(e, t, r) : qr(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 Qr =
|
|
712
|
+
var Qr = V, Yr = Qr;
|
|
713
713
|
const Kr = /* @__PURE__ */ Dr(Yr);
|
|
714
|
-
|
|
715
|
-
|
|
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
755
|
function en(e, t) {
|
|
742
756
|
var r = {};
|
|
@@ -747,14 +761,14 @@ 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 : an, n = t && t.serializer ? t.serializer : sn, i = t && t.strategy ? t.strategy : rn;
|
|
758
772
|
return i(e, {
|
|
759
773
|
cache: r,
|
|
760
774
|
serializer: n
|
|
@@ -763,103 +777,95 @@ function Ce(e, t) {
|
|
|
763
777
|
function tn(e) {
|
|
764
778
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
765
779
|
}
|
|
766
|
-
function
|
|
780
|
+
function Lt(e, t, r, n) {
|
|
767
781
|
var i = tn(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 Mt(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 Ze(e, t, r, n, i) {
|
|
775
789
|
return r.bind(t, e, n, i);
|
|
776
790
|
}
|
|
791
|
+
function rn(e, t) {
|
|
792
|
+
var r = e.length === 1 ? Lt : Mt;
|
|
793
|
+
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
794
|
+
}
|
|
777
795
|
function nn(e, t) {
|
|
778
|
-
|
|
779
|
-
return Mt(e, this, r, t.cache.create(), t.serializer);
|
|
796
|
+
return Ze(e, this, Mt, t.cache.create(), t.serializer);
|
|
780
797
|
}
|
|
781
798
|
function on(e, t) {
|
|
782
|
-
return
|
|
799
|
+
return Ze(e, this, Lt, t.cache.create(), t.serializer);
|
|
783
800
|
}
|
|
784
801
|
var sn = function() {
|
|
785
802
|
return JSON.stringify(arguments);
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
}()
|
|
798
|
-
), un = {
|
|
803
|
+
};
|
|
804
|
+
function Je() {
|
|
805
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
806
|
+
}
|
|
807
|
+
Je.prototype.get = function(e) {
|
|
808
|
+
return this.cache[e];
|
|
809
|
+
};
|
|
810
|
+
Je.prototype.set = function(e, t) {
|
|
811
|
+
this.cache[e] = t;
|
|
812
|
+
};
|
|
813
|
+
var an = {
|
|
799
814
|
create: function() {
|
|
800
|
-
return new
|
|
815
|
+
return new Je();
|
|
801
816
|
}
|
|
802
|
-
},
|
|
803
|
-
variadic:
|
|
804
|
-
|
|
805
|
-
|
|
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;
|
|
817
|
+
}, Ie = {
|
|
818
|
+
variadic: nn,
|
|
819
|
+
monadic: on
|
|
820
|
+
}, p;
|
|
815
821
|
(function(e) {
|
|
816
822
|
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
|
|
823
|
+
})(p || (p = {}));
|
|
824
|
+
var T;
|
|
819
825
|
(function(e) {
|
|
820
826
|
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
|
|
827
|
+
})(T || (T = {}));
|
|
828
|
+
var X;
|
|
823
829
|
(function(e) {
|
|
824
830
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
825
|
-
})(
|
|
831
|
+
})(X || (X = {}));
|
|
826
832
|
function at(e) {
|
|
827
|
-
return e.type ===
|
|
833
|
+
return e.type === T.literal;
|
|
828
834
|
}
|
|
829
|
-
function
|
|
830
|
-
return e.type ===
|
|
835
|
+
function un(e) {
|
|
836
|
+
return e.type === T.argument;
|
|
831
837
|
}
|
|
832
838
|
function $t(e) {
|
|
833
|
-
return e.type ===
|
|
839
|
+
return e.type === T.number;
|
|
834
840
|
}
|
|
835
841
|
function Rt(e) {
|
|
836
|
-
return e.type ===
|
|
842
|
+
return e.type === T.date;
|
|
837
843
|
}
|
|
838
844
|
function Dt(e) {
|
|
839
|
-
return e.type ===
|
|
845
|
+
return e.type === T.time;
|
|
840
846
|
}
|
|
841
847
|
function Ut(e) {
|
|
842
|
-
return e.type ===
|
|
848
|
+
return e.type === T.select;
|
|
843
849
|
}
|
|
844
850
|
function Gt(e) {
|
|
845
|
-
return e.type ===
|
|
851
|
+
return e.type === T.plural;
|
|
846
852
|
}
|
|
847
|
-
function
|
|
848
|
-
return e.type ===
|
|
853
|
+
function ln(e) {
|
|
854
|
+
return e.type === T.pound;
|
|
849
855
|
}
|
|
850
856
|
function kt(e) {
|
|
851
|
-
return e.type ===
|
|
857
|
+
return e.type === T.tag;
|
|
852
858
|
}
|
|
853
859
|
function Ft(e) {
|
|
854
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
860
|
+
return !!(e && typeof e == "object" && e.type === X.number);
|
|
855
861
|
}
|
|
856
|
-
function
|
|
857
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
862
|
+
function Ue(e) {
|
|
863
|
+
return !!(e && typeof e == "object" && e.type === X.dateTime);
|
|
858
864
|
}
|
|
859
|
-
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
860
|
-
function
|
|
865
|
+
var jt = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, hn = /(?:[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;
|
|
866
|
+
function cn(e) {
|
|
861
867
|
var t = {};
|
|
862
|
-
return e.replace(
|
|
868
|
+
return e.replace(hn, function(r) {
|
|
863
869
|
var n = r.length;
|
|
864
870
|
switch (r[0]) {
|
|
865
871
|
case "G":
|
|
@@ -948,21 +954,11 @@ function fn(e) {
|
|
|
948
954
|
return "";
|
|
949
955
|
}), t;
|
|
950
956
|
}
|
|
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) {
|
|
957
|
+
var fn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
958
|
+
function mn(e) {
|
|
963
959
|
if (e.length === 0)
|
|
964
960
|
throw new Error("Number skeleton cannot be empty");
|
|
965
|
-
for (var t = e.split(
|
|
961
|
+
for (var t = e.split(fn).filter(function(c) {
|
|
966
962
|
return c.length > 0;
|
|
967
963
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
968
964
|
var o = i[n], s = o.split("/");
|
|
@@ -977,7 +973,7 @@ function dn(e) {
|
|
|
977
973
|
}
|
|
978
974
|
return r;
|
|
979
975
|
}
|
|
980
|
-
function
|
|
976
|
+
function dn(e) {
|
|
981
977
|
return e.replace(/^(.*?)-/, "");
|
|
982
978
|
}
|
|
983
979
|
var ut = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zt = /^(@+)?(\+|#+)?[rs]?$/g, bn = /(\*)(0+)|(#+)(0+)|(0+)/g, Vt = /^(0+)$/;
|
|
@@ -1027,7 +1023,7 @@ function Xt(e) {
|
|
|
1027
1023
|
};
|
|
1028
1024
|
}
|
|
1029
1025
|
}
|
|
1030
|
-
function
|
|
1026
|
+
function pn(e) {
|
|
1031
1027
|
var t;
|
|
1032
1028
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1033
1029
|
notation: "engineering"
|
|
@@ -1045,7 +1041,7 @@ function ht(e) {
|
|
|
1045
1041
|
var t = {}, r = Xt(e);
|
|
1046
1042
|
return r || t;
|
|
1047
1043
|
}
|
|
1048
|
-
function
|
|
1044
|
+
function gn(e) {
|
|
1049
1045
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1050
1046
|
var i = n[r];
|
|
1051
1047
|
switch (i.stem) {
|
|
@@ -1069,7 +1065,7 @@ function yn(e) {
|
|
|
1069
1065
|
continue;
|
|
1070
1066
|
case "measure-unit":
|
|
1071
1067
|
case "unit":
|
|
1072
|
-
t.style = "unit", t.unit =
|
|
1068
|
+
t.style = "unit", t.unit = dn(i.options[0]);
|
|
1073
1069
|
continue;
|
|
1074
1070
|
case "compact-short":
|
|
1075
1071
|
case "K":
|
|
@@ -1080,13 +1076,13 @@ function yn(e) {
|
|
|
1080
1076
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1081
1077
|
continue;
|
|
1082
1078
|
case "scientific":
|
|
1083
|
-
t =
|
|
1084
|
-
return
|
|
1079
|
+
t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
|
|
1080
|
+
return _(_({}, l), ht(u));
|
|
1085
1081
|
}, {}));
|
|
1086
1082
|
continue;
|
|
1087
1083
|
case "engineering":
|
|
1088
|
-
t =
|
|
1089
|
-
return
|
|
1084
|
+
t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
|
|
1085
|
+
return _(_({}, l), ht(u));
|
|
1090
1086
|
}, {}));
|
|
1091
1087
|
continue;
|
|
1092
1088
|
case "notation-simple":
|
|
@@ -1155,21 +1151,21 @@ function yn(e) {
|
|
|
1155
1151
|
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
1152
|
});
|
|
1157
1153
|
var o = i.options[0];
|
|
1158
|
-
o === "w" ? t =
|
|
1154
|
+
o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), lt(o)));
|
|
1159
1155
|
continue;
|
|
1160
1156
|
}
|
|
1161
1157
|
if (zt.test(i.stem)) {
|
|
1162
|
-
t =
|
|
1158
|
+
t = _(_({}, t), lt(i.stem));
|
|
1163
1159
|
continue;
|
|
1164
1160
|
}
|
|
1165
1161
|
var s = Xt(i.stem);
|
|
1166
|
-
s && (t =
|
|
1167
|
-
var a =
|
|
1168
|
-
a && (t =
|
|
1162
|
+
s && (t = _(_({}, t), s));
|
|
1163
|
+
var a = pn(i.stem);
|
|
1164
|
+
a && (t = _(_({}, t), a));
|
|
1169
1165
|
}
|
|
1170
1166
|
return t;
|
|
1171
1167
|
}
|
|
1172
|
-
var
|
|
1168
|
+
var he = {
|
|
1173
1169
|
"001": [
|
|
1174
1170
|
"H",
|
|
1175
1171
|
"h"
|
|
@@ -2584,13 +2580,13 @@ var ce = {
|
|
|
2584
2580
|
"h"
|
|
2585
2581
|
]
|
|
2586
2582
|
};
|
|
2587
|
-
function
|
|
2583
|
+
function yn(e, t) {
|
|
2588
2584
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2589
2585
|
var i = e.charAt(n);
|
|
2590
2586
|
if (i === "j") {
|
|
2591
2587
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2592
2588
|
o++, n++;
|
|
2593
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u =
|
|
2589
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = _n(t);
|
|
2594
2590
|
for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
|
|
2595
2591
|
r += l;
|
|
2596
2592
|
for (; s-- > 0; )
|
|
@@ -2600,7 +2596,7 @@ function _n(e, t) {
|
|
|
2600
2596
|
}
|
|
2601
2597
|
return r;
|
|
2602
2598
|
}
|
|
2603
|
-
function
|
|
2599
|
+
function _n(e) {
|
|
2604
2600
|
var t = e.hourCycle;
|
|
2605
2601
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2606
2602
|
e.hourCycles && // @ts-ignore
|
|
@@ -2619,23 +2615,23 @@ function En(e) {
|
|
|
2619
2615
|
}
|
|
2620
2616
|
var r = e.language, n;
|
|
2621
2617
|
r !== "root" && (n = e.maximize().region);
|
|
2622
|
-
var i =
|
|
2618
|
+
var i = he[n || ""] || he[r || ""] || he["".concat(r, "-001")] || he["001"];
|
|
2623
2619
|
return i[0];
|
|
2624
2620
|
}
|
|
2625
|
-
var
|
|
2621
|
+
var Ce, En = new RegExp("^".concat(jt.source, "*")), vn = new RegExp("".concat(jt.source, "*$"));
|
|
2626
2622
|
function g(e, t) {
|
|
2627
2623
|
return { start: e, end: t };
|
|
2628
2624
|
}
|
|
2629
|
-
var
|
|
2625
|
+
var xn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Tn = !!String.fromCodePoint, Hn = !!Object.fromEntries, Bn = !!String.prototype.codePointAt, wn = !!String.prototype.trimStart, Sn = !!String.prototype.trimEnd, An = !!Number.isSafeInteger, Pn = An ? Number.isSafeInteger : function(e) {
|
|
2630
2626
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2631
|
-
},
|
|
2627
|
+
}, Ge = !0;
|
|
2632
2628
|
try {
|
|
2633
|
-
var
|
|
2634
|
-
|
|
2629
|
+
var On = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2630
|
+
Ge = ((Ce = On.exec("a")) === null || Ce === void 0 ? void 0 : Ce[0]) === "a";
|
|
2635
2631
|
} catch (e) {
|
|
2636
|
-
|
|
2632
|
+
Ge = !1;
|
|
2637
2633
|
}
|
|
2638
|
-
var ct =
|
|
2634
|
+
var ct = xn ? (
|
|
2639
2635
|
// Native
|
|
2640
2636
|
function(t, r, n) {
|
|
2641
2637
|
return t.startsWith(r, n);
|
|
@@ -2645,7 +2641,7 @@ var ct = Tn ? (
|
|
|
2645
2641
|
function(t, r, n) {
|
|
2646
2642
|
return t.slice(n, n + r.length) === r;
|
|
2647
2643
|
}
|
|
2648
|
-
),
|
|
2644
|
+
), ke = Tn ? String.fromCodePoint : (
|
|
2649
2645
|
// IE11
|
|
2650
2646
|
function() {
|
|
2651
2647
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2659,7 +2655,7 @@ var ct = Tn ? (
|
|
|
2659
2655
|
}
|
|
2660
2656
|
), ft = (
|
|
2661
2657
|
// native
|
|
2662
|
-
|
|
2658
|
+
Hn ? Object.fromEntries : (
|
|
2663
2659
|
// Ponyfill
|
|
2664
2660
|
function(t) {
|
|
2665
2661
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2669,7 +2665,7 @@ var ct = Tn ? (
|
|
|
2669
2665
|
return r;
|
|
2670
2666
|
}
|
|
2671
2667
|
)
|
|
2672
|
-
), Wt =
|
|
2668
|
+
), Wt = Bn ? (
|
|
2673
2669
|
// Native
|
|
2674
2670
|
function(t, r) {
|
|
2675
2671
|
return t.codePointAt(r);
|
|
@@ -2683,7 +2679,7 @@ var ct = Tn ? (
|
|
|
2683
2679
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2684
2680
|
}
|
|
2685
2681
|
}
|
|
2686
|
-
),
|
|
2682
|
+
), In = wn ? (
|
|
2687
2683
|
// Native
|
|
2688
2684
|
function(t) {
|
|
2689
2685
|
return t.trimStart();
|
|
@@ -2691,9 +2687,9 @@ var ct = Tn ? (
|
|
|
2691
2687
|
) : (
|
|
2692
2688
|
// Ponyfill
|
|
2693
2689
|
function(t) {
|
|
2694
|
-
return t.replace(
|
|
2690
|
+
return t.replace(En, "");
|
|
2695
2691
|
}
|
|
2696
|
-
),
|
|
2692
|
+
), Cn = Sn ? (
|
|
2697
2693
|
// Native
|
|
2698
2694
|
function(t) {
|
|
2699
2695
|
return t.trimEnd();
|
|
@@ -2701,32 +2697,32 @@ var ct = Tn ? (
|
|
|
2701
2697
|
) : (
|
|
2702
2698
|
// Ponyfill
|
|
2703
2699
|
function(t) {
|
|
2704
|
-
return t.replace(
|
|
2700
|
+
return t.replace(vn, "");
|
|
2705
2701
|
}
|
|
2706
2702
|
);
|
|
2707
2703
|
function Zt(e, t) {
|
|
2708
2704
|
return new RegExp(e, t);
|
|
2709
2705
|
}
|
|
2710
|
-
var
|
|
2711
|
-
if (
|
|
2706
|
+
var Fe;
|
|
2707
|
+
if (Ge) {
|
|
2712
2708
|
var mt = Zt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2713
|
-
|
|
2709
|
+
Fe = function(t, r) {
|
|
2714
2710
|
var n;
|
|
2715
2711
|
mt.lastIndex = r;
|
|
2716
2712
|
var i = mt.exec(t);
|
|
2717
2713
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2718
2714
|
};
|
|
2719
2715
|
} else
|
|
2720
|
-
|
|
2716
|
+
Fe = function(t, r) {
|
|
2721
2717
|
for (var n = []; ; ) {
|
|
2722
2718
|
var i = Wt(t, r);
|
|
2723
|
-
if (i === void 0 || Jt(i) ||
|
|
2719
|
+
if (i === void 0 || Jt(i) || $n(i))
|
|
2724
2720
|
break;
|
|
2725
2721
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2726
2722
|
}
|
|
2727
|
-
return
|
|
2723
|
+
return ke.apply(void 0, n);
|
|
2728
2724
|
};
|
|
2729
|
-
var
|
|
2725
|
+
var Nn = (
|
|
2730
2726
|
/** @class */
|
|
2731
2727
|
function() {
|
|
2732
2728
|
function e(t, r) {
|
|
@@ -2750,14 +2746,14 @@ var Ln = (
|
|
|
2750
2746
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2751
2747
|
var a = this.clonePosition();
|
|
2752
2748
|
this.bump(), i.push({
|
|
2753
|
-
type:
|
|
2749
|
+
type: T.pound,
|
|
2754
2750
|
location: g(a, this.clonePosition())
|
|
2755
2751
|
});
|
|
2756
2752
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2757
2753
|
if (n)
|
|
2758
2754
|
break;
|
|
2759
|
-
return this.error(
|
|
2760
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2755
|
+
return this.error(p.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
|
|
2756
|
+
} else if (o === 60 && !this.ignoreTag && je(this.peek() || 0)) {
|
|
2761
2757
|
var s = this.parseTag(t, r);
|
|
2762
2758
|
if (s.err)
|
|
2763
2759
|
return s;
|
|
@@ -2778,7 +2774,7 @@ var Ln = (
|
|
|
2778
2774
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2779
2775
|
return {
|
|
2780
2776
|
val: {
|
|
2781
|
-
type:
|
|
2777
|
+
type: T.literal,
|
|
2782
2778
|
value: "<".concat(i, "/>"),
|
|
2783
2779
|
location: g(n, this.clonePosition())
|
|
2784
2780
|
},
|
|
@@ -2790,25 +2786,25 @@ var Ln = (
|
|
|
2790
2786
|
return o;
|
|
2791
2787
|
var s = o.val, a = this.clonePosition();
|
|
2792
2788
|
if (this.bumpIf("</")) {
|
|
2793
|
-
if (this.isEOF() || !
|
|
2794
|
-
return this.error(
|
|
2789
|
+
if (this.isEOF() || !je(this.char()))
|
|
2790
|
+
return this.error(p.INVALID_TAG, g(a, this.clonePosition()));
|
|
2795
2791
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2796
|
-
return i !== u ? this.error(
|
|
2792
|
+
return i !== u ? this.error(p.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2797
2793
|
val: {
|
|
2798
|
-
type:
|
|
2794
|
+
type: T.tag,
|
|
2799
2795
|
value: i,
|
|
2800
2796
|
children: s,
|
|
2801
2797
|
location: g(n, this.clonePosition())
|
|
2802
2798
|
},
|
|
2803
2799
|
err: null
|
|
2804
|
-
} : this.error(
|
|
2800
|
+
} : this.error(p.INVALID_TAG, g(a, this.clonePosition())));
|
|
2805
2801
|
} else
|
|
2806
|
-
return this.error(
|
|
2802
|
+
return this.error(p.UNCLOSED_TAG, g(n, this.clonePosition()));
|
|
2807
2803
|
} else
|
|
2808
|
-
return this.error(
|
|
2804
|
+
return this.error(p.INVALID_TAG, g(n, this.clonePosition()));
|
|
2809
2805
|
}, e.prototype.parseTagName = function() {
|
|
2810
2806
|
var t = this.offset();
|
|
2811
|
-
for (this.bump(); !this.isEOF() &&
|
|
2807
|
+
for (this.bump(); !this.isEOF() && Mn(this.char()); )
|
|
2812
2808
|
this.bump();
|
|
2813
2809
|
return this.message.slice(t, this.offset());
|
|
2814
2810
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2832,12 +2828,12 @@ var Ln = (
|
|
|
2832
2828
|
}
|
|
2833
2829
|
var l = g(n, this.clonePosition());
|
|
2834
2830
|
return {
|
|
2835
|
-
val: { type:
|
|
2831
|
+
val: { type: T.literal, value: i, location: l },
|
|
2836
2832
|
err: null
|
|
2837
2833
|
};
|
|
2838
2834
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2839
2835
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2840
|
-
!
|
|
2836
|
+
!Ln(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2841
2837
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2842
2838
|
if (this.isEOF() || this.char() !== 39)
|
|
2843
2839
|
return null;
|
|
@@ -2871,28 +2867,28 @@ var Ln = (
|
|
|
2871
2867
|
r.push(n);
|
|
2872
2868
|
this.bump();
|
|
2873
2869
|
}
|
|
2874
|
-
return
|
|
2870
|
+
return ke.apply(void 0, r);
|
|
2875
2871
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2876
2872
|
if (this.isEOF())
|
|
2877
2873
|
return null;
|
|
2878
2874
|
var n = this.char();
|
|
2879
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2875
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ke(n));
|
|
2880
2876
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2881
2877
|
var n = this.clonePosition();
|
|
2882
2878
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2883
|
-
return this.error(
|
|
2879
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
2884
2880
|
if (this.char() === 125)
|
|
2885
|
-
return this.bump(), this.error(
|
|
2881
|
+
return this.bump(), this.error(p.EMPTY_ARGUMENT, g(n, this.clonePosition()));
|
|
2886
2882
|
var i = this.parseIdentifierIfPossible().value;
|
|
2887
2883
|
if (!i)
|
|
2888
|
-
return this.error(
|
|
2884
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
2889
2885
|
if (this.bumpSpace(), this.isEOF())
|
|
2890
|
-
return this.error(
|
|
2886
|
+
return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
|
|
2891
2887
|
switch (this.char()) {
|
|
2892
2888
|
case 125:
|
|
2893
2889
|
return this.bump(), {
|
|
2894
2890
|
val: {
|
|
2895
|
-
type:
|
|
2891
|
+
type: T.argument,
|
|
2896
2892
|
// value does not include the opening and closing braces.
|
|
2897
2893
|
value: i,
|
|
2898
2894
|
location: g(n, this.clonePosition())
|
|
@@ -2900,12 +2896,12 @@ var Ln = (
|
|
|
2900
2896
|
err: null
|
|
2901
2897
|
};
|
|
2902
2898
|
case 44:
|
|
2903
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2899
|
+
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
2900
|
default:
|
|
2905
|
-
return this.error(
|
|
2901
|
+
return this.error(p.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
|
|
2906
2902
|
}
|
|
2907
2903
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2908
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2904
|
+
var t = this.clonePosition(), r = this.offset(), n = Fe(this.message, r), i = r + n.length;
|
|
2909
2905
|
this.bumpTo(i);
|
|
2910
2906
|
var o = this.clonePosition(), s = g(t, o);
|
|
2911
2907
|
return { value: n, location: s };
|
|
@@ -2913,7 +2909,7 @@ var Ln = (
|
|
|
2913
2909
|
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2914
2910
|
switch (a) {
|
|
2915
2911
|
case "":
|
|
2916
|
-
return this.error(
|
|
2912
|
+
return this.error(p.EXPECT_ARGUMENT_TYPE, g(s, l));
|
|
2917
2913
|
case "number":
|
|
2918
2914
|
case "date":
|
|
2919
2915
|
case "time": {
|
|
@@ -2924,46 +2920,46 @@ var Ln = (
|
|
|
2924
2920
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2925
2921
|
if (f.err)
|
|
2926
2922
|
return f;
|
|
2927
|
-
var c =
|
|
2923
|
+
var c = Cn(f.val);
|
|
2928
2924
|
if (c.length === 0)
|
|
2929
|
-
return this.error(
|
|
2925
|
+
return this.error(p.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
|
|
2930
2926
|
var y = g(h, this.clonePosition());
|
|
2931
2927
|
u = { style: c, styleLocation: y };
|
|
2932
2928
|
}
|
|
2933
|
-
var
|
|
2934
|
-
if (
|
|
2935
|
-
return
|
|
2936
|
-
var
|
|
2929
|
+
var b = this.tryParseArgumentClose(i);
|
|
2930
|
+
if (b.err)
|
|
2931
|
+
return b;
|
|
2932
|
+
var v = g(i, this.clonePosition());
|
|
2937
2933
|
if (u && ct(u == null ? void 0 : u.style, "::", 0)) {
|
|
2938
|
-
var
|
|
2934
|
+
var E = In(u.style.slice(2));
|
|
2939
2935
|
if (a === "number") {
|
|
2940
|
-
var f = this.parseNumberSkeletonFromString(
|
|
2936
|
+
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
2941
2937
|
return f.err ? f : {
|
|
2942
|
-
val: { type:
|
|
2938
|
+
val: { type: T.number, value: n, location: v, style: f.val },
|
|
2943
2939
|
err: null
|
|
2944
2940
|
};
|
|
2945
2941
|
} else {
|
|
2946
|
-
if (
|
|
2947
|
-
return this.error(
|
|
2948
|
-
var m =
|
|
2949
|
-
this.locale && (m =
|
|
2942
|
+
if (E.length === 0)
|
|
2943
|
+
return this.error(p.EXPECT_DATE_TIME_SKELETON, v);
|
|
2944
|
+
var m = E;
|
|
2945
|
+
this.locale && (m = yn(E, this.locale));
|
|
2950
2946
|
var c = {
|
|
2951
|
-
type:
|
|
2947
|
+
type: X.dateTime,
|
|
2952
2948
|
pattern: m,
|
|
2953
2949
|
location: u.styleLocation,
|
|
2954
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2955
|
-
},
|
|
2950
|
+
parsedOptions: this.shouldParseSkeletons ? cn(m) : {}
|
|
2951
|
+
}, x = a === "date" ? T.date : T.time;
|
|
2956
2952
|
return {
|
|
2957
|
-
val: { type:
|
|
2953
|
+
val: { type: x, value: n, location: v, style: c },
|
|
2958
2954
|
err: null
|
|
2959
2955
|
};
|
|
2960
2956
|
}
|
|
2961
2957
|
}
|
|
2962
2958
|
return {
|
|
2963
2959
|
val: {
|
|
2964
|
-
type: a === "number" ?
|
|
2960
|
+
type: a === "number" ? T.number : a === "date" ? T.date : T.time,
|
|
2965
2961
|
value: n,
|
|
2966
|
-
location:
|
|
2962
|
+
location: v,
|
|
2967
2963
|
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2968
2964
|
},
|
|
2969
2965
|
err: null
|
|
@@ -2974,39 +2970,39 @@ var Ln = (
|
|
|
2974
2970
|
case "select": {
|
|
2975
2971
|
var d = this.clonePosition();
|
|
2976
2972
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2977
|
-
return this.error(
|
|
2973
|
+
return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, g(d, _({}, d)));
|
|
2978
2974
|
this.bumpSpace();
|
|
2979
|
-
var
|
|
2980
|
-
if (a !== "select" &&
|
|
2975
|
+
var B = this.parseIdentifierIfPossible(), S = 0;
|
|
2976
|
+
if (a !== "select" && B.value === "offset") {
|
|
2981
2977
|
if (!this.bumpIf(":"))
|
|
2982
|
-
return this.error(
|
|
2978
|
+
return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
|
|
2983
2979
|
this.bumpSpace();
|
|
2984
|
-
var f = this.tryParseDecimalInteger(
|
|
2980
|
+
var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2985
2981
|
if (f.err)
|
|
2986
2982
|
return f;
|
|
2987
|
-
this.bumpSpace(),
|
|
2983
|
+
this.bumpSpace(), B = this.parseIdentifierIfPossible(), S = f.val;
|
|
2988
2984
|
}
|
|
2989
|
-
var
|
|
2990
|
-
if (
|
|
2991
|
-
return
|
|
2992
|
-
var
|
|
2993
|
-
if (
|
|
2994
|
-
return
|
|
2985
|
+
var ae = this.tryParsePluralOrSelectOptions(t, a, r, B);
|
|
2986
|
+
if (ae.err)
|
|
2987
|
+
return ae;
|
|
2988
|
+
var b = this.tryParseArgumentClose(i);
|
|
2989
|
+
if (b.err)
|
|
2990
|
+
return b;
|
|
2995
2991
|
var Ye = g(i, this.clonePosition());
|
|
2996
2992
|
return a === "select" ? {
|
|
2997
2993
|
val: {
|
|
2998
|
-
type:
|
|
2994
|
+
type: T.select,
|
|
2999
2995
|
value: n,
|
|
3000
|
-
options: ft(
|
|
2996
|
+
options: ft(ae.val),
|
|
3001
2997
|
location: Ye
|
|
3002
2998
|
},
|
|
3003
2999
|
err: null
|
|
3004
3000
|
} : {
|
|
3005
3001
|
val: {
|
|
3006
|
-
type:
|
|
3002
|
+
type: T.plural,
|
|
3007
3003
|
value: n,
|
|
3008
|
-
options: ft(
|
|
3009
|
-
offset:
|
|
3004
|
+
options: ft(ae.val),
|
|
3005
|
+
offset: S,
|
|
3010
3006
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3011
3007
|
location: Ye
|
|
3012
3008
|
},
|
|
@@ -3014,10 +3010,10 @@ var Ln = (
|
|
|
3014
3010
|
};
|
|
3015
3011
|
}
|
|
3016
3012
|
default:
|
|
3017
|
-
return this.error(
|
|
3013
|
+
return this.error(p.INVALID_ARGUMENT_TYPE, g(s, l));
|
|
3018
3014
|
}
|
|
3019
3015
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3020
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
3016
|
+
return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3021
3017
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3022
3018
|
for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
|
|
3023
3019
|
var n = this.char();
|
|
@@ -3026,7 +3022,7 @@ var Ln = (
|
|
|
3026
3022
|
this.bump();
|
|
3027
3023
|
var i = this.clonePosition();
|
|
3028
3024
|
if (!this.bumpUntil("'"))
|
|
3029
|
-
return this.error(
|
|
3025
|
+
return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
|
|
3030
3026
|
this.bump();
|
|
3031
3027
|
break;
|
|
3032
3028
|
}
|
|
@@ -3056,16 +3052,16 @@ var Ln = (
|
|
|
3056
3052
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3057
3053
|
var n = [];
|
|
3058
3054
|
try {
|
|
3059
|
-
n =
|
|
3055
|
+
n = mn(t);
|
|
3060
3056
|
} catch (i) {
|
|
3061
|
-
return this.error(
|
|
3057
|
+
return this.error(p.INVALID_NUMBER_SKELETON, r);
|
|
3062
3058
|
}
|
|
3063
3059
|
return {
|
|
3064
3060
|
val: {
|
|
3065
|
-
type:
|
|
3061
|
+
type: X.number,
|
|
3066
3062
|
tokens: n,
|
|
3067
3063
|
location: r,
|
|
3068
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3064
|
+
parsedOptions: this.shouldParseSkeletons ? gn(n) : {}
|
|
3069
3065
|
},
|
|
3070
3066
|
err: null
|
|
3071
3067
|
};
|
|
@@ -3074,7 +3070,7 @@ var Ln = (
|
|
|
3074
3070
|
if (u.length === 0) {
|
|
3075
3071
|
var f = this.clonePosition();
|
|
3076
3072
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3077
|
-
var c = this.tryParseDecimalInteger(
|
|
3073
|
+
var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3078
3074
|
if (c.err)
|
|
3079
3075
|
return c;
|
|
3080
3076
|
h = g(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
@@ -3082,26 +3078,26 @@ var Ln = (
|
|
|
3082
3078
|
break;
|
|
3083
3079
|
}
|
|
3084
3080
|
if (l.has(u))
|
|
3085
|
-
return this.error(r === "select" ?
|
|
3081
|
+
return this.error(r === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3086
3082
|
u === "other" && (s = !0), this.bumpSpace();
|
|
3087
3083
|
var y = this.clonePosition();
|
|
3088
3084
|
if (!this.bumpIf("{"))
|
|
3089
|
-
return this.error(r === "select" ?
|
|
3090
|
-
var
|
|
3091
|
-
if (
|
|
3092
|
-
return
|
|
3093
|
-
var
|
|
3094
|
-
if (
|
|
3095
|
-
return
|
|
3085
|
+
return this.error(r === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
|
|
3086
|
+
var b = this.parseMessage(t + 1, r, n);
|
|
3087
|
+
if (b.err)
|
|
3088
|
+
return b;
|
|
3089
|
+
var v = this.tryParseArgumentClose(y);
|
|
3090
|
+
if (v.err)
|
|
3091
|
+
return v;
|
|
3096
3092
|
a.push([
|
|
3097
3093
|
u,
|
|
3098
3094
|
{
|
|
3099
|
-
value:
|
|
3095
|
+
value: b.val,
|
|
3100
3096
|
location: g(y, this.clonePosition())
|
|
3101
3097
|
}
|
|
3102
3098
|
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
|
|
3103
3099
|
}
|
|
3104
|
-
return a.length === 0 ? this.error(r === "select" ?
|
|
3100
|
+
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
3101
|
}, e.prototype.tryParseDecimalInteger = function(t, r) {
|
|
3106
3102
|
var n = 1, i = this.clonePosition();
|
|
3107
3103
|
this.bumpIf("+") || this.bumpIf("-") && (n = -1);
|
|
@@ -3113,7 +3109,7 @@ var Ln = (
|
|
|
3113
3109
|
break;
|
|
3114
3110
|
}
|
|
3115
3111
|
var l = g(i, this.clonePosition());
|
|
3116
|
-
return o ? (s *= n,
|
|
3112
|
+
return o ? (s *= n, Pn(s) ? { val: s, err: null } : this.error(r, l)) : this.error(t, l);
|
|
3117
3113
|
}, e.prototype.offset = function() {
|
|
3118
3114
|
return this.position.offset;
|
|
3119
3115
|
}, e.prototype.isEOF = function() {
|
|
@@ -3179,47 +3175,47 @@ var Ln = (
|
|
|
3179
3175
|
}, e;
|
|
3180
3176
|
}()
|
|
3181
3177
|
);
|
|
3182
|
-
function
|
|
3178
|
+
function je(e) {
|
|
3183
3179
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3184
3180
|
}
|
|
3185
|
-
function
|
|
3186
|
-
return
|
|
3181
|
+
function Ln(e) {
|
|
3182
|
+
return je(e) || e === 47;
|
|
3187
3183
|
}
|
|
3188
|
-
function
|
|
3184
|
+
function Mn(e) {
|
|
3189
3185
|
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
3186
|
}
|
|
3191
3187
|
function Jt(e) {
|
|
3192
3188
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3193
3189
|
}
|
|
3194
|
-
function
|
|
3190
|
+
function $n(e) {
|
|
3195
3191
|
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
3192
|
}
|
|
3197
|
-
function
|
|
3193
|
+
function ze(e) {
|
|
3198
3194
|
e.forEach(function(t) {
|
|
3199
3195
|
if (delete t.location, Ut(t) || Gt(t))
|
|
3200
3196
|
for (var r in t.options)
|
|
3201
|
-
delete t.options[r].location,
|
|
3197
|
+
delete t.options[r].location, ze(t.options[r].value);
|
|
3202
3198
|
else
|
|
3203
|
-
$t(t) && Ft(t.style) || (Rt(t) || Dt(t)) &&
|
|
3199
|
+
$t(t) && Ft(t.style) || (Rt(t) || Dt(t)) && Ue(t.style) ? delete t.style.location : kt(t) && ze(t.children);
|
|
3204
3200
|
});
|
|
3205
3201
|
}
|
|
3206
|
-
function
|
|
3207
|
-
t === void 0 && (t = {}), t =
|
|
3208
|
-
var r = new
|
|
3202
|
+
function Rn(e, t) {
|
|
3203
|
+
t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3204
|
+
var r = new Nn(e, t).parse();
|
|
3209
3205
|
if (r.err) {
|
|
3210
|
-
var n = SyntaxError(
|
|
3206
|
+
var n = SyntaxError(p[r.err.kind]);
|
|
3211
3207
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3212
3208
|
}
|
|
3213
|
-
return t != null && t.captureLocation ||
|
|
3209
|
+
return t != null && t.captureLocation || ze(r.val), r.val;
|
|
3214
3210
|
}
|
|
3215
|
-
var
|
|
3211
|
+
var W;
|
|
3216
3212
|
(function(e) {
|
|
3217
3213
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3218
|
-
})(
|
|
3219
|
-
var
|
|
3214
|
+
})(W || (W = {}));
|
|
3215
|
+
var He = (
|
|
3220
3216
|
/** @class */
|
|
3221
3217
|
function(e) {
|
|
3222
|
-
|
|
3218
|
+
Te(t, e);
|
|
3223
3219
|
function t(r, n, i) {
|
|
3224
3220
|
var o = e.call(this, r) || this;
|
|
3225
3221
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3231,44 +3227,44 @@ var Se = (
|
|
|
3231
3227
|
), dt = (
|
|
3232
3228
|
/** @class */
|
|
3233
3229
|
function(e) {
|
|
3234
|
-
|
|
3230
|
+
Te(t, e);
|
|
3235
3231
|
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('", "'), '"'),
|
|
3232
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), W.INVALID_VALUE, o) || this;
|
|
3237
3233
|
}
|
|
3238
3234
|
return t;
|
|
3239
|
-
}(
|
|
3240
|
-
),
|
|
3235
|
+
}(He)
|
|
3236
|
+
), Dn = (
|
|
3241
3237
|
/** @class */
|
|
3242
3238
|
function(e) {
|
|
3243
|
-
|
|
3239
|
+
Te(t, e);
|
|
3244
3240
|
function t(r, n, i) {
|
|
3245
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3241
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), W.INVALID_VALUE, i) || this;
|
|
3246
3242
|
}
|
|
3247
3243
|
return t;
|
|
3248
|
-
}(
|
|
3249
|
-
),
|
|
3244
|
+
}(He)
|
|
3245
|
+
), Un = (
|
|
3250
3246
|
/** @class */
|
|
3251
3247
|
function(e) {
|
|
3252
|
-
|
|
3248
|
+
Te(t, e);
|
|
3253
3249
|
function t(r, n) {
|
|
3254
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3250
|
+
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
3251
|
}
|
|
3256
3252
|
return t;
|
|
3257
|
-
}(
|
|
3253
|
+
}(He)
|
|
3258
3254
|
), H;
|
|
3259
3255
|
(function(e) {
|
|
3260
3256
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3261
3257
|
})(H || (H = {}));
|
|
3262
|
-
function
|
|
3258
|
+
function Gn(e) {
|
|
3263
3259
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3264
3260
|
var n = t[t.length - 1];
|
|
3265
3261
|
return !n || n.type !== H.literal || r.type !== H.literal ? t.push(r) : n.value += r.value, t;
|
|
3266
3262
|
}, []);
|
|
3267
3263
|
}
|
|
3268
|
-
function
|
|
3264
|
+
function kn(e) {
|
|
3269
3265
|
return typeof e == "function";
|
|
3270
3266
|
}
|
|
3271
|
-
function
|
|
3267
|
+
function ge(e, t, r, n, i, o, s) {
|
|
3272
3268
|
if (e.length === 1 && at(e[0]))
|
|
3273
3269
|
return [
|
|
3274
3270
|
{
|
|
@@ -3285,7 +3281,7 @@ function ye(e, t, r, n, i, o, s) {
|
|
|
3285
3281
|
});
|
|
3286
3282
|
continue;
|
|
3287
3283
|
}
|
|
3288
|
-
if (
|
|
3284
|
+
if (ln(h)) {
|
|
3289
3285
|
typeof o == "number" && a.push({
|
|
3290
3286
|
type: H.literal,
|
|
3291
3287
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3294,9 +3290,9 @@ function ye(e, t, r, n, i, o, s) {
|
|
|
3294
3290
|
}
|
|
3295
3291
|
var f = h.value;
|
|
3296
3292
|
if (!(i && f in i))
|
|
3297
|
-
throw new
|
|
3293
|
+
throw new Un(f, s);
|
|
3298
3294
|
var c = i[f];
|
|
3299
|
-
if (
|
|
3295
|
+
if (un(h)) {
|
|
3300
3296
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), a.push({
|
|
3301
3297
|
type: typeof c == "string" ? H.literal : H.object,
|
|
3302
3298
|
value: c
|
|
@@ -3304,7 +3300,7 @@ function ye(e, t, r, n, i, o, s) {
|
|
|
3304
3300
|
continue;
|
|
3305
3301
|
}
|
|
3306
3302
|
if (Rt(h)) {
|
|
3307
|
-
var y = typeof h.style == "string" ? n.date[h.style] :
|
|
3303
|
+
var y = typeof h.style == "string" ? n.date[h.style] : Ue(h.style) ? h.style.parsedOptions : void 0;
|
|
3308
3304
|
a.push({
|
|
3309
3305
|
type: H.literal,
|
|
3310
3306
|
value: r.getDateTimeFormat(t, y).format(c)
|
|
@@ -3312,7 +3308,7 @@ function ye(e, t, r, n, i, o, s) {
|
|
|
3312
3308
|
continue;
|
|
3313
3309
|
}
|
|
3314
3310
|
if (Dt(h)) {
|
|
3315
|
-
var y = typeof h.style == "string" ? n.time[h.style] :
|
|
3311
|
+
var y = typeof h.style == "string" ? n.time[h.style] : Ue(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3316
3312
|
a.push({
|
|
3317
3313
|
type: H.literal,
|
|
3318
3314
|
value: r.getDateTimeFormat(t, y).format(c)
|
|
@@ -3328,16 +3324,16 @@ function ye(e, t, r, n, i, o, s) {
|
|
|
3328
3324
|
continue;
|
|
3329
3325
|
}
|
|
3330
3326
|
if (kt(h)) {
|
|
3331
|
-
var
|
|
3332
|
-
if (!
|
|
3333
|
-
throw new
|
|
3334
|
-
var m =
|
|
3335
|
-
return
|
|
3327
|
+
var b = h.children, v = h.value, E = i[v];
|
|
3328
|
+
if (!kn(E))
|
|
3329
|
+
throw new Dn(v, "function", s);
|
|
3330
|
+
var m = ge(b, t, r, n, i, o), x = E(m.map(function(S) {
|
|
3331
|
+
return S.value;
|
|
3336
3332
|
}));
|
|
3337
|
-
Array.isArray(
|
|
3333
|
+
Array.isArray(x) || (x = [x]), a.push.apply(a, x.map(function(S) {
|
|
3338
3334
|
return {
|
|
3339
|
-
type: typeof
|
|
3340
|
-
value:
|
|
3335
|
+
type: typeof S == "string" ? H.literal : H.object,
|
|
3336
|
+
value: S
|
|
3341
3337
|
};
|
|
3342
3338
|
}));
|
|
3343
3339
|
}
|
|
@@ -3345,38 +3341,38 @@ function ye(e, t, r, n, i, o, s) {
|
|
|
3345
3341
|
var d = h.options[c] || h.options.other;
|
|
3346
3342
|
if (!d)
|
|
3347
3343
|
throw new dt(h.value, c, Object.keys(h.options), s);
|
|
3348
|
-
a.push.apply(a,
|
|
3344
|
+
a.push.apply(a, ge(d.value, t, r, n, i));
|
|
3349
3345
|
continue;
|
|
3350
3346
|
}
|
|
3351
3347
|
if (Gt(h)) {
|
|
3352
3348
|
var d = h.options["=".concat(c)];
|
|
3353
3349
|
if (!d) {
|
|
3354
3350
|
if (!Intl.PluralRules)
|
|
3355
|
-
throw new
|
|
3351
|
+
throw new He(`Intl.PluralRules is not available in this environment.
|
|
3356
3352
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3357
|
-
`,
|
|
3358
|
-
var
|
|
3359
|
-
d = h.options[
|
|
3353
|
+
`, W.MISSING_INTL_API, s);
|
|
3354
|
+
var B = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3355
|
+
d = h.options[B] || h.options.other;
|
|
3360
3356
|
}
|
|
3361
3357
|
if (!d)
|
|
3362
3358
|
throw new dt(h.value, c, Object.keys(h.options), s);
|
|
3363
|
-
a.push.apply(a,
|
|
3359
|
+
a.push.apply(a, ge(d.value, t, r, n, i, c - (h.offset || 0)));
|
|
3364
3360
|
continue;
|
|
3365
3361
|
}
|
|
3366
3362
|
}
|
|
3367
|
-
return
|
|
3363
|
+
return Gn(a);
|
|
3368
3364
|
}
|
|
3369
|
-
function
|
|
3370
|
-
return t ?
|
|
3371
|
-
return r[n] =
|
|
3365
|
+
function Fn(e, t) {
|
|
3366
|
+
return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3367
|
+
return r[n] = _(_({}, e[n]), t[n] || {}), r;
|
|
3372
3368
|
}, {})) : e;
|
|
3373
3369
|
}
|
|
3374
|
-
function
|
|
3370
|
+
function jn(e, t) {
|
|
3375
3371
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3376
|
-
return r[n] =
|
|
3377
|
-
},
|
|
3372
|
+
return r[n] = Fn(e[n], t[n]), r;
|
|
3373
|
+
}, _({}, e)) : e;
|
|
3378
3374
|
}
|
|
3379
|
-
function
|
|
3375
|
+
function Ne(e) {
|
|
3380
3376
|
return {
|
|
3381
3377
|
create: function() {
|
|
3382
3378
|
return {
|
|
@@ -3390,35 +3386,35 @@ function Me(e) {
|
|
|
3390
3386
|
}
|
|
3391
3387
|
};
|
|
3392
3388
|
}
|
|
3393
|
-
function
|
|
3389
|
+
function zn(e) {
|
|
3394
3390
|
return e === void 0 && (e = {
|
|
3395
3391
|
number: {},
|
|
3396
3392
|
dateTime: {},
|
|
3397
3393
|
pluralRules: {}
|
|
3398
3394
|
}), {
|
|
3399
|
-
getNumberFormat:
|
|
3395
|
+
getNumberFormat: Oe(function() {
|
|
3400
3396
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3401
3397
|
r[n] = arguments[n];
|
|
3402
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3398
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3403
3399
|
}, {
|
|
3404
|
-
cache:
|
|
3405
|
-
strategy:
|
|
3400
|
+
cache: Ne(e.number),
|
|
3401
|
+
strategy: Ie.variadic
|
|
3406
3402
|
}),
|
|
3407
|
-
getDateTimeFormat:
|
|
3403
|
+
getDateTimeFormat: Oe(function() {
|
|
3408
3404
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3409
3405
|
r[n] = arguments[n];
|
|
3410
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3406
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3411
3407
|
}, {
|
|
3412
|
-
cache:
|
|
3413
|
-
strategy:
|
|
3408
|
+
cache: Ne(e.dateTime),
|
|
3409
|
+
strategy: Ie.variadic
|
|
3414
3410
|
}),
|
|
3415
|
-
getPluralRules:
|
|
3411
|
+
getPluralRules: Oe(function() {
|
|
3416
3412
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3417
3413
|
r[n] = arguments[n];
|
|
3418
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3414
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Pe([void 0], r, !1)))();
|
|
3419
3415
|
}, {
|
|
3420
|
-
cache:
|
|
3421
|
-
strategy:
|
|
3416
|
+
cache: Ne(e.pluralRules),
|
|
3417
|
+
strategy: Ie.variadic
|
|
3422
3418
|
})
|
|
3423
3419
|
};
|
|
3424
3420
|
}
|
|
@@ -3441,7 +3437,7 @@ var qt = (
|
|
|
3441
3437
|
}, []);
|
|
3442
3438
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3443
3439
|
}, this.formatToParts = function(l) {
|
|
3444
|
-
return
|
|
3440
|
+
return ge(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3445
3441
|
}, this.resolvedOptions = function() {
|
|
3446
3442
|
var l;
|
|
3447
3443
|
return {
|
|
@@ -3455,12 +3451,12 @@ var qt = (
|
|
|
3455
3451
|
var s = i || {};
|
|
3456
3452
|
s.formatters;
|
|
3457
3453
|
var a = en(s, ["formatters"]);
|
|
3458
|
-
this.ast = e.__parse(t,
|
|
3454
|
+
this.ast = e.__parse(t, _(_({}, a), { locale: this.resolvedLocale }));
|
|
3459
3455
|
} else
|
|
3460
3456
|
this.ast = t;
|
|
3461
3457
|
if (!Array.isArray(this.ast))
|
|
3462
3458
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3463
|
-
this.formats =
|
|
3459
|
+
this.formats = jn(e.formats, n), this.formatters = i && i.formatters || zn(this.formatterCache);
|
|
3464
3460
|
}
|
|
3465
3461
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3466
3462
|
get: function() {
|
|
@@ -3473,7 +3469,7 @@ var qt = (
|
|
|
3473
3469
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3474
3470
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3475
3471
|
}
|
|
3476
|
-
}, e.__parse =
|
|
3472
|
+
}, e.__parse = Rn, e.formats = {
|
|
3477
3473
|
number: {
|
|
3478
3474
|
integer: {
|
|
3479
3475
|
maximumFractionDigits: 0
|
|
@@ -3534,7 +3530,7 @@ var qt = (
|
|
|
3534
3530
|
}, e;
|
|
3535
3531
|
}()
|
|
3536
3532
|
);
|
|
3537
|
-
function
|
|
3533
|
+
function Vn(e, t) {
|
|
3538
3534
|
if (t == null)
|
|
3539
3535
|
return;
|
|
3540
3536
|
if (t in e)
|
|
@@ -3555,36 +3551,36 @@ function Xn(e, t) {
|
|
|
3555
3551
|
n = void 0;
|
|
3556
3552
|
return n;
|
|
3557
3553
|
}
|
|
3558
|
-
const
|
|
3554
|
+
const N = {}, Xn = (e, t, r) => r && (t in N || (N[t] = {}), e in N[t] || (N[t][e] = r), r), Qt = (e, t) => {
|
|
3559
3555
|
if (t == null)
|
|
3560
3556
|
return;
|
|
3561
|
-
if (t in
|
|
3562
|
-
return
|
|
3563
|
-
const r =
|
|
3557
|
+
if (t in N && e in N[t])
|
|
3558
|
+
return N[t][e];
|
|
3559
|
+
const r = se(t);
|
|
3564
3560
|
for (let n = 0; n < r.length; n++) {
|
|
3565
|
-
const i = r[n], o =
|
|
3561
|
+
const i = r[n], o = Zn(i, e);
|
|
3566
3562
|
if (o)
|
|
3567
|
-
return
|
|
3563
|
+
return Xn(e, t, o);
|
|
3568
3564
|
}
|
|
3569
3565
|
};
|
|
3570
3566
|
let qe;
|
|
3571
|
-
const
|
|
3572
|
-
function
|
|
3567
|
+
const oe = xe({});
|
|
3568
|
+
function Wn(e) {
|
|
3573
3569
|
return qe[e] || null;
|
|
3574
3570
|
}
|
|
3575
3571
|
function Yt(e) {
|
|
3576
3572
|
return e in qe;
|
|
3577
3573
|
}
|
|
3578
|
-
function
|
|
3574
|
+
function Zn(e, t) {
|
|
3579
3575
|
if (!Yt(e))
|
|
3580
3576
|
return null;
|
|
3581
|
-
const r =
|
|
3582
|
-
return
|
|
3577
|
+
const r = Wn(e);
|
|
3578
|
+
return Vn(r, t);
|
|
3583
3579
|
}
|
|
3584
|
-
function
|
|
3580
|
+
function Jn(e) {
|
|
3585
3581
|
if (e == null)
|
|
3586
3582
|
return;
|
|
3587
|
-
const t =
|
|
3583
|
+
const t = se(e);
|
|
3588
3584
|
for (let r = 0; r < t.length; r++) {
|
|
3589
3585
|
const n = t[r];
|
|
3590
3586
|
if (Yt(n))
|
|
@@ -3592,64 +3588,64 @@ function qn(e) {
|
|
|
3592
3588
|
}
|
|
3593
3589
|
}
|
|
3594
3590
|
function Kt(e, ...t) {
|
|
3595
|
-
delete
|
|
3591
|
+
delete N[e], oe.update((r) => (r[e] = Kr.all([r[e] || {}, ...t]), r));
|
|
3596
3592
|
}
|
|
3597
|
-
|
|
3598
|
-
[
|
|
3593
|
+
q(
|
|
3594
|
+
[oe],
|
|
3599
3595
|
([e]) => Object.keys(e)
|
|
3600
3596
|
);
|
|
3601
|
-
|
|
3602
|
-
const
|
|
3603
|
-
function
|
|
3604
|
-
|
|
3597
|
+
oe.subscribe((e) => qe = e);
|
|
3598
|
+
const ye = {};
|
|
3599
|
+
function qn(e, t) {
|
|
3600
|
+
ye[e].delete(t), ye[e].size === 0 && delete ye[e];
|
|
3605
3601
|
}
|
|
3606
3602
|
function er(e) {
|
|
3607
|
-
return
|
|
3603
|
+
return ye[e];
|
|
3608
3604
|
}
|
|
3609
|
-
function
|
|
3610
|
-
return
|
|
3605
|
+
function Qn(e) {
|
|
3606
|
+
return se(e).map((t) => {
|
|
3611
3607
|
const r = er(t);
|
|
3612
3608
|
return [t, r ? [...r] : []];
|
|
3613
3609
|
}).filter(([, t]) => t.length > 0);
|
|
3614
3610
|
}
|
|
3615
|
-
function
|
|
3616
|
-
return e == null ? !1 :
|
|
3611
|
+
function _e(e) {
|
|
3612
|
+
return e == null ? !1 : se(e).some(
|
|
3617
3613
|
(t) => {
|
|
3618
3614
|
var r;
|
|
3619
3615
|
return (r = er(t)) == null ? void 0 : r.size;
|
|
3620
3616
|
}
|
|
3621
3617
|
);
|
|
3622
3618
|
}
|
|
3623
|
-
function
|
|
3619
|
+
function Yn(e, t) {
|
|
3624
3620
|
return Promise.all(
|
|
3625
|
-
t.map((n) => (
|
|
3621
|
+
t.map((n) => (qn(e, n), n().then((i) => i.default || i)))
|
|
3626
3622
|
).then((n) => Kt(e, ...n));
|
|
3627
3623
|
}
|
|
3628
|
-
const
|
|
3624
|
+
const Y = {};
|
|
3629
3625
|
function tr(e) {
|
|
3630
|
-
if (!
|
|
3631
|
-
return e in
|
|
3632
|
-
const t =
|
|
3633
|
-
return
|
|
3626
|
+
if (!_e(e))
|
|
3627
|
+
return e in Y ? Y[e] : Promise.resolve();
|
|
3628
|
+
const t = Qn(e);
|
|
3629
|
+
return Y[e] = Promise.all(
|
|
3634
3630
|
t.map(
|
|
3635
|
-
([r, n]) =>
|
|
3631
|
+
([r, n]) => Yn(r, n)
|
|
3636
3632
|
)
|
|
3637
3633
|
).then(() => {
|
|
3638
|
-
if (
|
|
3634
|
+
if (_e(e))
|
|
3639
3635
|
return tr(e);
|
|
3640
|
-
delete
|
|
3641
|
-
}),
|
|
3636
|
+
delete Y[e];
|
|
3637
|
+
}), Y[e];
|
|
3642
3638
|
}
|
|
3643
|
-
var
|
|
3639
|
+
var bt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, ei = Object.prototype.propertyIsEnumerable, ti = (e, t) => {
|
|
3644
3640
|
var r = {};
|
|
3645
3641
|
for (var n in e)
|
|
3646
|
-
|
|
3647
|
-
if (e != null &&
|
|
3648
|
-
for (var n of
|
|
3649
|
-
t.indexOf(n) < 0 &&
|
|
3642
|
+
Kn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3643
|
+
if (e != null && bt)
|
|
3644
|
+
for (var n of bt(e))
|
|
3645
|
+
t.indexOf(n) < 0 && ei.call(e, n) && (r[n] = e[n]);
|
|
3650
3646
|
return r;
|
|
3651
3647
|
};
|
|
3652
|
-
const
|
|
3648
|
+
const ri = {
|
|
3653
3649
|
number: {
|
|
3654
3650
|
scientific: { notation: "scientific" },
|
|
3655
3651
|
engineering: { notation: "engineering" },
|
|
@@ -3679,28 +3675,28 @@ const ni = {
|
|
|
3679
3675
|
}
|
|
3680
3676
|
}
|
|
3681
3677
|
};
|
|
3682
|
-
function
|
|
3678
|
+
function ni({ locale: e, id: t }) {
|
|
3683
3679
|
console.warn(
|
|
3684
|
-
`[svelte-i18n] The message "${t}" was not found in "${
|
|
3680
|
+
`[svelte-i18n] The message "${t}" was not found in "${se(
|
|
3685
3681
|
e
|
|
3686
|
-
).join('", "')}".${
|
|
3682
|
+
).join('", "')}".${_e(M()) ? `
|
|
3687
3683
|
|
|
3688
3684
|
Note: there are at least one loader still registered to this locale that wasn't executed.` : ""}`
|
|
3689
3685
|
);
|
|
3690
3686
|
}
|
|
3691
|
-
const
|
|
3687
|
+
const ii = {
|
|
3692
3688
|
fallbackLocale: null,
|
|
3693
3689
|
loadingDelay: 200,
|
|
3694
|
-
formats:
|
|
3690
|
+
formats: ri,
|
|
3695
3691
|
warnOnMissingMessages: !0,
|
|
3696
3692
|
handleMissingMessage: void 0,
|
|
3697
3693
|
ignoreTag: !0
|
|
3698
|
-
},
|
|
3699
|
-
function
|
|
3700
|
-
return
|
|
3694
|
+
}, K = ii;
|
|
3695
|
+
function Z() {
|
|
3696
|
+
return K;
|
|
3701
3697
|
}
|
|
3702
|
-
function
|
|
3703
|
-
const t = e, { formats: r } = t, n =
|
|
3698
|
+
function oi(e) {
|
|
3699
|
+
const t = e, { formats: r } = t, n = ti(t, ["formats"]);
|
|
3704
3700
|
let i = e.fallbackLocale;
|
|
3705
3701
|
if (e.initialLocale)
|
|
3706
3702
|
try {
|
|
@@ -3710,50 +3706,50 @@ function si(e) {
|
|
|
3710
3706
|
`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`
|
|
3711
3707
|
);
|
|
3712
3708
|
}
|
|
3713
|
-
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage =
|
|
3709
|
+
return n.warnOnMissingMessages && (delete n.warnOnMissingMessages, n.handleMissingMessage == null ? n.handleMissingMessage = ni : console.warn(
|
|
3714
3710
|
'[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.'
|
|
3715
|
-
)), Object.assign(
|
|
3711
|
+
)), 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
3712
|
}
|
|
3717
|
-
const
|
|
3718
|
-
var
|
|
3713
|
+
const Le = xe(!1);
|
|
3714
|
+
var si = Object.defineProperty, ai = Object.defineProperties, ui = Object.getOwnPropertyDescriptors, pt = Object.getOwnPropertySymbols, li = Object.prototype.hasOwnProperty, hi = Object.prototype.propertyIsEnumerable, gt = (e, t, r) => t in e ? si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ci = (e, t) => {
|
|
3719
3715
|
for (var r in t || (t = {}))
|
|
3720
|
-
|
|
3721
|
-
if (
|
|
3722
|
-
for (var r of
|
|
3723
|
-
|
|
3716
|
+
li.call(t, r) && gt(e, r, t[r]);
|
|
3717
|
+
if (pt)
|
|
3718
|
+
for (var r of pt(t))
|
|
3719
|
+
hi.call(t, r) && gt(e, r, t[r]);
|
|
3724
3720
|
return e;
|
|
3725
|
-
},
|
|
3726
|
-
let
|
|
3727
|
-
const
|
|
3721
|
+
}, fi = (e, t) => ai(e, ui(t));
|
|
3722
|
+
let Ve;
|
|
3723
|
+
const Ee = xe(null);
|
|
3728
3724
|
function yt(e) {
|
|
3729
3725
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3730
3726
|
}
|
|
3731
|
-
function
|
|
3727
|
+
function se(e, t = Z().fallbackLocale) {
|
|
3732
3728
|
const r = yt(e);
|
|
3733
3729
|
return t ? [.../* @__PURE__ */ new Set([...r, ...yt(t)])] : r;
|
|
3734
3730
|
}
|
|
3735
|
-
function
|
|
3736
|
-
return
|
|
3731
|
+
function M() {
|
|
3732
|
+
return Ve != null ? Ve : void 0;
|
|
3737
3733
|
}
|
|
3738
|
-
|
|
3739
|
-
|
|
3734
|
+
Ee.subscribe((e) => {
|
|
3735
|
+
Ve = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3740
3736
|
});
|
|
3741
|
-
const
|
|
3742
|
-
if (e &&
|
|
3743
|
-
const { loadingDelay: t } =
|
|
3737
|
+
const mi = (e) => {
|
|
3738
|
+
if (e && Jn(e) && _e(e)) {
|
|
3739
|
+
const { loadingDelay: t } = Z();
|
|
3744
3740
|
let r;
|
|
3745
|
-
return typeof window != "undefined" &&
|
|
3746
|
-
() =>
|
|
3741
|
+
return typeof window != "undefined" && M() != null && t ? r = window.setTimeout(
|
|
3742
|
+
() => Le.set(!0),
|
|
3747
3743
|
t
|
|
3748
|
-
) :
|
|
3749
|
-
|
|
3744
|
+
) : Le.set(!0), tr(e).then(() => {
|
|
3745
|
+
Ee.set(e);
|
|
3750
3746
|
}).finally(() => {
|
|
3751
|
-
clearTimeout(r),
|
|
3747
|
+
clearTimeout(r), Le.set(!1);
|
|
3752
3748
|
});
|
|
3753
3749
|
}
|
|
3754
|
-
return
|
|
3755
|
-
},
|
|
3756
|
-
set:
|
|
3750
|
+
return Ee.set(e);
|
|
3751
|
+
}, U = fi(ci({}, Ee), {
|
|
3752
|
+
set: mi
|
|
3757
3753
|
}), Be = (e) => {
|
|
3758
3754
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3759
3755
|
return (n) => {
|
|
@@ -3761,83 +3757,83 @@ const di = (e) => {
|
|
|
3761
3757
|
return i in t ? t[i] : t[i] = e(n);
|
|
3762
3758
|
};
|
|
3763
3759
|
};
|
|
3764
|
-
var
|
|
3760
|
+
var di = Object.defineProperty, ve = Object.getOwnPropertySymbols, rr = Object.prototype.hasOwnProperty, nr = Object.prototype.propertyIsEnumerable, _t = (e, t, r) => t in e ? di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Qe = (e, t) => {
|
|
3765
3761
|
for (var r in t || (t = {}))
|
|
3766
3762
|
rr.call(t, r) && _t(e, r, t[r]);
|
|
3767
|
-
if (
|
|
3768
|
-
for (var r of
|
|
3763
|
+
if (ve)
|
|
3764
|
+
for (var r of ve(t))
|
|
3769
3765
|
nr.call(t, r) && _t(e, r, t[r]);
|
|
3770
3766
|
return e;
|
|
3771
|
-
},
|
|
3767
|
+
}, Q = (e, t) => {
|
|
3772
3768
|
var r = {};
|
|
3773
3769
|
for (var n in e)
|
|
3774
3770
|
rr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3775
|
-
if (e != null &&
|
|
3776
|
-
for (var n of
|
|
3771
|
+
if (e != null && ve)
|
|
3772
|
+
for (var n of ve(e))
|
|
3777
3773
|
t.indexOf(n) < 0 && nr.call(e, n) && (r[n] = e[n]);
|
|
3778
3774
|
return r;
|
|
3779
3775
|
};
|
|
3780
|
-
const
|
|
3781
|
-
const { formats: r } =
|
|
3776
|
+
const ne = (e, t) => {
|
|
3777
|
+
const { formats: r } = Z();
|
|
3782
3778
|
if (e in r && t in r[e])
|
|
3783
3779
|
return r[e][t];
|
|
3784
3780
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3785
3781
|
}, bi = Be(
|
|
3786
3782
|
(e) => {
|
|
3787
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3783
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3788
3784
|
if (r == null)
|
|
3789
3785
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3790
|
-
return n && (i =
|
|
3786
|
+
return n && (i = ne("number", n)), new Intl.NumberFormat(r, i);
|
|
3791
3787
|
}
|
|
3792
|
-
),
|
|
3788
|
+
), pi = Be(
|
|
3793
3789
|
(e) => {
|
|
3794
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3790
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3795
3791
|
if (r == null)
|
|
3796
3792
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3797
|
-
return n ? i =
|
|
3793
|
+
return n ? i = ne("date", n) : Object.keys(i).length === 0 && (i = ne("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3798
3794
|
}
|
|
3799
|
-
),
|
|
3795
|
+
), gi = Be(
|
|
3800
3796
|
(e) => {
|
|
3801
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3797
|
+
var t = e, { locale: r, format: n } = t, i = Q(t, ["locale", "format"]);
|
|
3802
3798
|
if (r == null)
|
|
3803
3799
|
throw new Error(
|
|
3804
3800
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3805
3801
|
);
|
|
3806
|
-
return n ? i =
|
|
3802
|
+
return n ? i = ne("time", n) : Object.keys(i).length === 0 && (i = ne("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3807
3803
|
}
|
|
3808
|
-
),
|
|
3804
|
+
), yi = (e = {}) => {
|
|
3809
3805
|
var t = e, {
|
|
3810
|
-
locale: r =
|
|
3811
|
-
} = t, n =
|
|
3806
|
+
locale: r = M()
|
|
3807
|
+
} = t, n = Q(t, [
|
|
3812
3808
|
"locale"
|
|
3813
3809
|
]);
|
|
3814
3810
|
return bi(Qe({ locale: r }, n));
|
|
3815
|
-
},
|
|
3811
|
+
}, _i = (e = {}) => {
|
|
3816
3812
|
var t = e, {
|
|
3817
|
-
locale: r =
|
|
3818
|
-
} = t, n =
|
|
3813
|
+
locale: r = M()
|
|
3814
|
+
} = t, n = Q(t, [
|
|
3819
3815
|
"locale"
|
|
3820
3816
|
]);
|
|
3821
|
-
return
|
|
3822
|
-
},
|
|
3817
|
+
return pi(Qe({ locale: r }, n));
|
|
3818
|
+
}, Ei = (e = {}) => {
|
|
3823
3819
|
var t = e, {
|
|
3824
|
-
locale: r =
|
|
3825
|
-
} = t, n =
|
|
3820
|
+
locale: r = M()
|
|
3821
|
+
} = t, n = Q(t, [
|
|
3826
3822
|
"locale"
|
|
3827
3823
|
]);
|
|
3828
|
-
return
|
|
3829
|
-
},
|
|
3824
|
+
return gi(Qe({ locale: r }, n));
|
|
3825
|
+
}, vi = Be(
|
|
3830
3826
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3831
|
-
(e, t =
|
|
3832
|
-
ignoreTag:
|
|
3827
|
+
(e, t = M()) => new qt(e, t, Z().formats, {
|
|
3828
|
+
ignoreTag: Z().ignoreTag
|
|
3833
3829
|
})
|
|
3834
|
-
),
|
|
3830
|
+
), xi = (e, t = {}) => {
|
|
3835
3831
|
var r, n, i, o;
|
|
3836
3832
|
let s = t;
|
|
3837
3833
|
typeof e == "object" && (s = e, e = s.id);
|
|
3838
3834
|
const {
|
|
3839
3835
|
values: a,
|
|
3840
|
-
locale: l =
|
|
3836
|
+
locale: l = M(),
|
|
3841
3837
|
default: u
|
|
3842
3838
|
} = s;
|
|
3843
3839
|
if (l == null)
|
|
@@ -3846,7 +3842,7 @@ const ie = (e, t) => {
|
|
|
3846
3842
|
);
|
|
3847
3843
|
let h = Qt(e, l);
|
|
3848
3844
|
if (!h)
|
|
3849
|
-
h = (o = (i = (n = (r =
|
|
3845
|
+
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
3846
|
else if (typeof h != "string")
|
|
3851
3847
|
return console.warn(
|
|
3852
3848
|
`[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 +3851,7 @@ const ie = (e, t) => {
|
|
|
3855
3851
|
return h;
|
|
3856
3852
|
let f = h;
|
|
3857
3853
|
try {
|
|
3858
|
-
f =
|
|
3854
|
+
f = vi(h, l).format(a);
|
|
3859
3855
|
} catch (c) {
|
|
3860
3856
|
c instanceof Error && console.warn(
|
|
3861
3857
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3863,18 +3859,18 @@ const ie = (e, t) => {
|
|
|
3863
3859
|
);
|
|
3864
3860
|
}
|
|
3865
3861
|
return f;
|
|
3866
|
-
},
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3862
|
+
}, Ti = (e, t) => Ei(t).format(e), Hi = (e, t) => _i(t).format(e), Bi = (e, t) => yi(t).format(e), wi = (e, t = M()) => Qt(e, t), Si = q([U, oe], () => xi);
|
|
3863
|
+
q([U], () => Ti);
|
|
3864
|
+
q([U], () => Hi);
|
|
3865
|
+
q([U], () => Bi);
|
|
3866
|
+
q([U, oe], () => wi);
|
|
3871
3867
|
function Et(e, t) {
|
|
3872
3868
|
Kt(e, t);
|
|
3873
3869
|
}
|
|
3874
|
-
function
|
|
3875
|
-
|
|
3870
|
+
function Ai(e) {
|
|
3871
|
+
oi({
|
|
3876
3872
|
fallbackLocale: "en"
|
|
3877
|
-
}),
|
|
3873
|
+
}), U.set(e);
|
|
3878
3874
|
}
|
|
3879
3875
|
const vt = {
|
|
3880
3876
|
en: {
|
|
@@ -3930,74 +3926,74 @@ const vt = {
|
|
|
3930
3926
|
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
3927
|
}
|
|
3932
3928
|
};
|
|
3933
|
-
function
|
|
3929
|
+
function Pi(e) {
|
|
3934
3930
|
fr(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
3931
|
}
|
|
3936
|
-
const
|
|
3937
|
-
function
|
|
3932
|
+
const Oi = (e) => ({}), xt = (e) => ({}), Ii = (e) => ({}), Tt = (e) => ({}), Ci = (e) => ({}), Ht = (e) => ({}), Ni = (e) => ({}), Bt = (e) => ({ class: "CashierErrorIcon" });
|
|
3933
|
+
function wt(e) {
|
|
3938
3934
|
let t, r;
|
|
3939
3935
|
return {
|
|
3940
3936
|
c() {
|
|
3941
|
-
t =
|
|
3942
|
-
e[0]}/error-general-icon.png`) ||
|
|
3937
|
+
t = I("ui-image"), it(t.src, r = `${/*assetsurl*/
|
|
3938
|
+
e[0]}/error-general-icon.png`) || le(t, "src", r), le(t, "width", "300px"), le(t, "alt", "error");
|
|
3943
3939
|
},
|
|
3944
3940
|
m(n, i) {
|
|
3945
|
-
|
|
3941
|
+
D(n, t, i);
|
|
3946
3942
|
},
|
|
3947
3943
|
p(n, i) {
|
|
3948
3944
|
i & /*assetsurl*/
|
|
3949
3945
|
1 && !it(t.src, r = `${/*assetsurl*/
|
|
3950
|
-
n[0]}/error-general-icon.png`) &&
|
|
3946
|
+
n[0]}/error-general-icon.png`) && le(t, "src", r);
|
|
3951
3947
|
},
|
|
3952
3948
|
d(n) {
|
|
3953
|
-
n &&
|
|
3949
|
+
n && L(t);
|
|
3954
3950
|
}
|
|
3955
3951
|
};
|
|
3956
3952
|
}
|
|
3957
|
-
function
|
|
3953
|
+
function Li(e) {
|
|
3958
3954
|
let t, r = (
|
|
3959
3955
|
/*assetsurl*/
|
|
3960
|
-
e[0] &&
|
|
3956
|
+
e[0] && wt(e)
|
|
3961
3957
|
);
|
|
3962
3958
|
return {
|
|
3963
3959
|
c() {
|
|
3964
|
-
r && r.c(), t =
|
|
3960
|
+
r && r.c(), t = br();
|
|
3965
3961
|
},
|
|
3966
3962
|
m(n, i) {
|
|
3967
|
-
r && r.m(n, i),
|
|
3963
|
+
r && r.m(n, i), D(n, t, i);
|
|
3968
3964
|
},
|
|
3969
3965
|
p(n, i) {
|
|
3970
3966
|
/*assetsurl*/
|
|
3971
|
-
n[0] ? r ? r.p(n, i) : (r =
|
|
3967
|
+
n[0] ? r ? r.p(n, i) : (r = wt(n), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
3972
3968
|
},
|
|
3973
3969
|
d(n) {
|
|
3974
|
-
n &&
|
|
3970
|
+
n && L(t), r && r.d(n);
|
|
3975
3971
|
}
|
|
3976
3972
|
};
|
|
3977
3973
|
}
|
|
3978
|
-
function
|
|
3974
|
+
function Mi(e) {
|
|
3979
3975
|
let t, r = (
|
|
3980
3976
|
/*$_*/
|
|
3981
3977
|
e[4]("errorGeneralTitle") + ""
|
|
3982
3978
|
), n;
|
|
3983
3979
|
return {
|
|
3984
3980
|
c() {
|
|
3985
|
-
t =
|
|
3981
|
+
t = I("span"), n = ie(r), R(t, "class", "CashierErrorTitle");
|
|
3986
3982
|
},
|
|
3987
3983
|
m(i, o) {
|
|
3988
|
-
|
|
3984
|
+
D(i, t, o), P(t, n);
|
|
3989
3985
|
},
|
|
3990
3986
|
p(i, o) {
|
|
3991
3987
|
o & /*$_*/
|
|
3992
3988
|
16 && r !== (r = /*$_*/
|
|
3993
|
-
i[4]("errorGeneralTitle") + "") &&
|
|
3989
|
+
i[4]("errorGeneralTitle") + "") && We(n, r);
|
|
3994
3990
|
},
|
|
3995
3991
|
d(i) {
|
|
3996
|
-
i &&
|
|
3992
|
+
i && L(t);
|
|
3997
3993
|
}
|
|
3998
3994
|
};
|
|
3999
3995
|
}
|
|
4000
|
-
function
|
|
3996
|
+
function $i(e) {
|
|
4001
3997
|
let t, r = (
|
|
4002
3998
|
/*$_*/
|
|
4003
3999
|
e[4](`${/*errorcode*/
|
|
@@ -4005,34 +4001,34 @@ function Ri(e) {
|
|
|
4005
4001
|
), n;
|
|
4006
4002
|
return {
|
|
4007
4003
|
c() {
|
|
4008
|
-
t =
|
|
4004
|
+
t = I("span"), n = ie(r), R(t, "class", "CashierErrorText");
|
|
4009
4005
|
},
|
|
4010
4006
|
m(i, o) {
|
|
4011
|
-
|
|
4007
|
+
D(i, t, o), P(t, n);
|
|
4012
4008
|
},
|
|
4013
4009
|
p(i, o) {
|
|
4014
4010
|
o & /*$_, errorcode*/
|
|
4015
4011
|
20 && r !== (r = /*$_*/
|
|
4016
4012
|
i[4](`${/*errorcode*/
|
|
4017
|
-
i[2] || "errorGeneralText"}`) + "") &&
|
|
4013
|
+
i[2] || "errorGeneralText"}`) + "") && We(n, r);
|
|
4018
4014
|
},
|
|
4019
4015
|
d(i) {
|
|
4020
|
-
i &&
|
|
4016
|
+
i && L(t);
|
|
4021
4017
|
}
|
|
4022
4018
|
};
|
|
4023
4019
|
}
|
|
4024
|
-
function
|
|
4020
|
+
function St(e) {
|
|
4025
4021
|
let t;
|
|
4026
4022
|
const r = (
|
|
4027
4023
|
/*#slots*/
|
|
4028
4024
|
e[12].button
|
|
4029
|
-
), n =
|
|
4025
|
+
), n = ce(
|
|
4030
4026
|
r,
|
|
4031
4027
|
e,
|
|
4032
4028
|
/*$$scope*/
|
|
4033
4029
|
e[11],
|
|
4034
4030
|
xt
|
|
4035
|
-
), i = n ||
|
|
4031
|
+
), i = n || Ri(e);
|
|
4036
4032
|
return {
|
|
4037
4033
|
c() {
|
|
4038
4034
|
i && i.c();
|
|
@@ -4042,19 +4038,19 @@ function Bt(e) {
|
|
|
4042
4038
|
},
|
|
4043
4039
|
p(o, s) {
|
|
4044
4040
|
n ? n.p && (!t || s & /*$$scope*/
|
|
4045
|
-
2048) &&
|
|
4041
|
+
2048) && me(
|
|
4046
4042
|
n,
|
|
4047
4043
|
r,
|
|
4048
4044
|
o,
|
|
4049
4045
|
/*$$scope*/
|
|
4050
4046
|
o[11],
|
|
4051
|
-
t ?
|
|
4047
|
+
t ? fe(
|
|
4052
4048
|
r,
|
|
4053
4049
|
/*$$scope*/
|
|
4054
4050
|
o[11],
|
|
4055
4051
|
s,
|
|
4056
|
-
|
|
4057
|
-
) :
|
|
4052
|
+
Oi
|
|
4053
|
+
) : de(
|
|
4058
4054
|
/*$$scope*/
|
|
4059
4055
|
o[11]
|
|
4060
4056
|
),
|
|
@@ -4063,27 +4059,27 @@ function Bt(e) {
|
|
|
4063
4059
|
16) && i.p(o, t ? s : -1);
|
|
4064
4060
|
},
|
|
4065
4061
|
i(o) {
|
|
4066
|
-
t || (
|
|
4062
|
+
t || (C(i, o), t = !0);
|
|
4067
4063
|
},
|
|
4068
4064
|
o(o) {
|
|
4069
|
-
|
|
4065
|
+
j(i, o), t = !1;
|
|
4070
4066
|
},
|
|
4071
4067
|
d(o) {
|
|
4072
4068
|
i && i.d(o);
|
|
4073
4069
|
}
|
|
4074
4070
|
};
|
|
4075
4071
|
}
|
|
4076
|
-
function
|
|
4072
|
+
function Ri(e) {
|
|
4077
4073
|
let t, r, n = (
|
|
4078
4074
|
/*$_*/
|
|
4079
4075
|
e[4]("errorGeneralButton") + ""
|
|
4080
4076
|
), i, o, s;
|
|
4081
4077
|
return {
|
|
4082
4078
|
c() {
|
|
4083
|
-
t =
|
|
4079
|
+
t = I("button"), r = I("span"), i = ie(n), R(t, "class", "CashierErrorButton");
|
|
4084
4080
|
},
|
|
4085
4081
|
m(a, l) {
|
|
4086
|
-
|
|
4082
|
+
D(a, t, l), P(t, r), P(r, i), o || (s = pr(
|
|
4087
4083
|
t,
|
|
4088
4084
|
"click",
|
|
4089
4085
|
/*close*/
|
|
@@ -4093,142 +4089,142 @@ function Di(e) {
|
|
|
4093
4089
|
p(a, l) {
|
|
4094
4090
|
l & /*$_*/
|
|
4095
4091
|
16 && n !== (n = /*$_*/
|
|
4096
|
-
a[4]("errorGeneralButton") + "") &&
|
|
4092
|
+
a[4]("errorGeneralButton") + "") && We(i, n);
|
|
4097
4093
|
},
|
|
4098
4094
|
d(a) {
|
|
4099
|
-
a &&
|
|
4095
|
+
a && L(t), o = !1, s();
|
|
4100
4096
|
}
|
|
4101
4097
|
};
|
|
4102
4098
|
}
|
|
4103
|
-
function
|
|
4099
|
+
function Di(e) {
|
|
4104
4100
|
let t, r, n, i, o, s;
|
|
4105
4101
|
const a = (
|
|
4106
4102
|
/*#slots*/
|
|
4107
4103
|
e[12].icon
|
|
4108
|
-
), l =
|
|
4104
|
+
), l = ce(
|
|
4109
4105
|
a,
|
|
4110
4106
|
e,
|
|
4111
4107
|
/*$$scope*/
|
|
4112
4108
|
e[11],
|
|
4113
|
-
|
|
4114
|
-
), u = l ||
|
|
4109
|
+
Bt
|
|
4110
|
+
), u = l || Li(e), h = (
|
|
4115
4111
|
/*#slots*/
|
|
4116
4112
|
e[12].title
|
|
4117
|
-
), f =
|
|
4113
|
+
), f = ce(
|
|
4118
4114
|
h,
|
|
4119
4115
|
e,
|
|
4120
4116
|
/*$$scope*/
|
|
4121
4117
|
e[11],
|
|
4122
4118
|
Ht
|
|
4123
|
-
), c = f ||
|
|
4119
|
+
), c = f || Mi(e), y = (
|
|
4124
4120
|
/*#slots*/
|
|
4125
4121
|
e[12].text
|
|
4126
|
-
),
|
|
4122
|
+
), b = ce(
|
|
4127
4123
|
y,
|
|
4128
4124
|
e,
|
|
4129
4125
|
/*$$scope*/
|
|
4130
4126
|
e[11],
|
|
4131
4127
|
Tt
|
|
4132
|
-
),
|
|
4133
|
-
let
|
|
4128
|
+
), v = b || $i(e);
|
|
4129
|
+
let E = (!/*hidebuttons*/
|
|
4134
4130
|
e[1] || /*hidebuttons*/
|
|
4135
|
-
e[1] === "false") &&
|
|
4131
|
+
e[1] === "false") && St(e);
|
|
4136
4132
|
return {
|
|
4137
4133
|
c() {
|
|
4138
|
-
t =
|
|
4134
|
+
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
4135
|
},
|
|
4140
|
-
m(m,
|
|
4141
|
-
|
|
4136
|
+
m(m, x) {
|
|
4137
|
+
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
4138
|
},
|
|
4143
|
-
p(m, [
|
|
4144
|
-
l ? l.p && (!s ||
|
|
4145
|
-
2048) &&
|
|
4139
|
+
p(m, [x]) {
|
|
4140
|
+
l ? l.p && (!s || x & /*$$scope*/
|
|
4141
|
+
2048) && me(
|
|
4146
4142
|
l,
|
|
4147
4143
|
a,
|
|
4148
4144
|
m,
|
|
4149
4145
|
/*$$scope*/
|
|
4150
4146
|
m[11],
|
|
4151
|
-
s ?
|
|
4147
|
+
s ? fe(
|
|
4152
4148
|
a,
|
|
4153
4149
|
/*$$scope*/
|
|
4154
4150
|
m[11],
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
) :
|
|
4151
|
+
x,
|
|
4152
|
+
Ni
|
|
4153
|
+
) : de(
|
|
4158
4154
|
/*$$scope*/
|
|
4159
4155
|
m[11]
|
|
4160
4156
|
),
|
|
4161
|
-
|
|
4162
|
-
) : u && u.p && (!s ||
|
|
4163
|
-
1) && u.p(m, s ?
|
|
4164
|
-
2048) &&
|
|
4157
|
+
Bt
|
|
4158
|
+
) : u && u.p && (!s || x & /*assetsurl*/
|
|
4159
|
+
1) && u.p(m, s ? x : -1), f ? f.p && (!s || x & /*$$scope*/
|
|
4160
|
+
2048) && me(
|
|
4165
4161
|
f,
|
|
4166
4162
|
h,
|
|
4167
4163
|
m,
|
|
4168
4164
|
/*$$scope*/
|
|
4169
4165
|
m[11],
|
|
4170
|
-
s ?
|
|
4166
|
+
s ? fe(
|
|
4171
4167
|
h,
|
|
4172
4168
|
/*$$scope*/
|
|
4173
4169
|
m[11],
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
) :
|
|
4170
|
+
x,
|
|
4171
|
+
Ci
|
|
4172
|
+
) : de(
|
|
4177
4173
|
/*$$scope*/
|
|
4178
4174
|
m[11]
|
|
4179
4175
|
),
|
|
4180
4176
|
Ht
|
|
4181
|
-
) : c && c.p && (!s ||
|
|
4182
|
-
16) && c.p(m, s ?
|
|
4183
|
-
2048) &&
|
|
4184
|
-
|
|
4177
|
+
) : c && c.p && (!s || x & /*$_*/
|
|
4178
|
+
16) && c.p(m, s ? x : -1), b ? b.p && (!s || x & /*$$scope*/
|
|
4179
|
+
2048) && me(
|
|
4180
|
+
b,
|
|
4185
4181
|
y,
|
|
4186
4182
|
m,
|
|
4187
4183
|
/*$$scope*/
|
|
4188
4184
|
m[11],
|
|
4189
|
-
s ?
|
|
4185
|
+
s ? fe(
|
|
4190
4186
|
y,
|
|
4191
4187
|
/*$$scope*/
|
|
4192
4188
|
m[11],
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
) :
|
|
4189
|
+
x,
|
|
4190
|
+
Ii
|
|
4191
|
+
) : de(
|
|
4196
4192
|
/*$$scope*/
|
|
4197
4193
|
m[11]
|
|
4198
4194
|
),
|
|
4199
4195
|
Tt
|
|
4200
|
-
) :
|
|
4201
|
-
20) &&
|
|
4196
|
+
) : v && v.p && (!s || x & /*$_, errorcode*/
|
|
4197
|
+
20) && v.p(m, s ? x : -1), !/*hidebuttons*/
|
|
4202
4198
|
m[1] || /*hidebuttons*/
|
|
4203
|
-
m[1] === "false" ?
|
|
4204
|
-
2 &&
|
|
4205
|
-
|
|
4206
|
-
}),
|
|
4199
|
+
m[1] === "false" ? E ? (E.p(m, x), x & /*hidebuttons*/
|
|
4200
|
+
2 && C(E, 1)) : (E = St(m), E.c(), C(E, 1), E.m(r, null)) : E && (Br(), j(E, 1, 1, () => {
|
|
4201
|
+
E = null;
|
|
4202
|
+
}), wr());
|
|
4207
4203
|
},
|
|
4208
4204
|
i(m) {
|
|
4209
|
-
s || (
|
|
4205
|
+
s || (C(u, m), C(c, m), C(v, m), C(E), s = !0);
|
|
4210
4206
|
},
|
|
4211
4207
|
o(m) {
|
|
4212
|
-
|
|
4208
|
+
j(u, m), j(c, m), j(v, m), j(E), s = !1;
|
|
4213
4209
|
},
|
|
4214
4210
|
d(m) {
|
|
4215
|
-
m &&
|
|
4211
|
+
m && L(t), u && u.d(m), c && c.d(m), v && v.d(m), E && E.d(), e[13](null);
|
|
4216
4212
|
}
|
|
4217
4213
|
};
|
|
4218
4214
|
}
|
|
4219
|
-
function
|
|
4215
|
+
function Ui(e, t, r) {
|
|
4220
4216
|
let n;
|
|
4221
|
-
cr(e,
|
|
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
|
-
Et(
|
|
4217
|
+
cr(e, Si, (d) => r(4, n = d));
|
|
4218
|
+
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;
|
|
4219
|
+
const v = () => {
|
|
4220
|
+
Ai(a);
|
|
4221
|
+
}, E = () => {
|
|
4222
|
+
fetch(c).then((B) => B.json()).then((B) => {
|
|
4223
|
+
Object.keys(B).forEach((S) => {
|
|
4224
|
+
Et(S, B[S]);
|
|
4229
4225
|
});
|
|
4230
|
-
}).catch((
|
|
4231
|
-
console.error(
|
|
4226
|
+
}).catch((B) => {
|
|
4227
|
+
console.error(B);
|
|
4232
4228
|
});
|
|
4233
4229
|
};
|
|
4234
4230
|
Object.keys(vt).forEach((d) => {
|
|
@@ -4239,25 +4235,25 @@ function Gi(e, t, r) {
|
|
|
4239
4235
|
};
|
|
4240
4236
|
Er(() => () => {
|
|
4241
4237
|
});
|
|
4242
|
-
function
|
|
4243
|
-
|
|
4244
|
-
|
|
4238
|
+
function x(d) {
|
|
4239
|
+
Me[d ? "unshift" : "push"](() => {
|
|
4240
|
+
b = d, r(3, b);
|
|
4245
4241
|
});
|
|
4246
4242
|
}
|
|
4247
4243
|
return e.$$set = (d) => {
|
|
4248
4244
|
"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
4245
|
}, e.$$.update = () => {
|
|
4250
4246
|
e.$$.dirty & /*lang*/
|
|
4251
|
-
64 && a &&
|
|
4252
|
-
136 && h &&
|
|
4253
|
-
264 && f &&
|
|
4254
|
-
1032 && y &&
|
|
4255
|
-
512 && c &&
|
|
4247
|
+
64 && a && v(), e.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
4248
|
+
136 && h && b && Lr(b, h), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
4249
|
+
264 && f && b && Mr(b, f), e.$$.dirty & /*mbsource, customStylingContainer*/
|
|
4250
|
+
1032 && y && b && $r(b, `${y}.Style`), e.$$.dirty & /*translationurl*/
|
|
4251
|
+
512 && c && E();
|
|
4256
4252
|
}, [
|
|
4257
4253
|
s,
|
|
4258
4254
|
l,
|
|
4259
4255
|
u,
|
|
4260
|
-
|
|
4256
|
+
b,
|
|
4261
4257
|
n,
|
|
4262
4258
|
m,
|
|
4263
4259
|
a,
|
|
@@ -4267,16 +4263,16 @@ function Gi(e, t, r) {
|
|
|
4267
4263
|
y,
|
|
4268
4264
|
o,
|
|
4269
4265
|
i,
|
|
4270
|
-
|
|
4266
|
+
x
|
|
4271
4267
|
];
|
|
4272
4268
|
}
|
|
4273
|
-
class
|
|
4269
|
+
class Gi extends Cr {
|
|
4274
4270
|
constructor(t) {
|
|
4275
4271
|
super(), Or(
|
|
4276
4272
|
this,
|
|
4277
4273
|
t,
|
|
4278
|
-
Gi,
|
|
4279
4274
|
Ui,
|
|
4275
|
+
Di,
|
|
4280
4276
|
Pt,
|
|
4281
4277
|
{
|
|
4282
4278
|
assetsurl: 0,
|
|
@@ -4288,7 +4284,7 @@ class ki extends Cr {
|
|
|
4288
4284
|
translationurl: 9,
|
|
4289
4285
|
mbsource: 10
|
|
4290
4286
|
},
|
|
4291
|
-
|
|
4287
|
+
Pi
|
|
4292
4288
|
);
|
|
4293
4289
|
}
|
|
4294
4290
|
get assetsurl() {
|
|
@@ -4340,7 +4336,7 @@ class ki extends Cr {
|
|
|
4340
4336
|
this.$$set({ mbsource: t }), A();
|
|
4341
4337
|
}
|
|
4342
4338
|
}
|
|
4343
|
-
Ir(
|
|
4339
|
+
Ir(Gi, { assetsurl: {}, lang: {}, hidebuttons: {}, errorcode: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, ["icon", "title", "text", "button"], [], !0);
|
|
4344
4340
|
export {
|
|
4345
|
-
|
|
4341
|
+
Gi as default
|
|
4346
4342
|
};
|