gt-react 10.19.18 → 10.19.19
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/CHANGELOG.md +10 -0
- package/dist/browser.cjs +236 -232
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.mjs +236 -232
- package/dist/browser.mjs.map +1 -1
- package/dist/client.cjs +183 -182
- package/dist/client.cjs.map +1 -1
- package/dist/client.mjs +183 -182
- package/dist/client.mjs.map +1 -1
- package/dist/index.cjs +183 -182
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +183 -182
- package/dist/index.mjs.map +1 -1
- package/dist/internal.cjs +327 -326
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.mjs +301 -300
- package/dist/internal.mjs.map +1 -1
- package/dist/macros.cjs +4 -1
- package/dist/macros.cjs.map +1 -1
- package/dist/macros.mjs +4 -1
- package/dist/macros.mjs.map +1 -1
- package/package.json +5 -5
package/dist/browser.cjs
CHANGED
|
@@ -4198,14 +4198,17 @@ function extractVars(icuString) {
|
|
|
4198
4198
|
});
|
|
4199
4199
|
return variables;
|
|
4200
4200
|
}
|
|
4201
|
+
const CONTAINS_INDEXED_GT_REGEX = new RegExp(`${VAR_IDENTIFIER}\\d+`);
|
|
4201
4202
|
/**
|
|
4202
4203
|
* Given an indexed ICU string, condenses any select to an argument
|
|
4204
|
+
* Unindexed _gt_ source strings and indexed _gt_# translation strings
|
|
4205
|
+
* are mutually exclusive.
|
|
4203
4206
|
* indexVars('Hello {_gt_1, select, other {World}}') => 'Hello {_gt_1}'
|
|
4204
4207
|
* @param {string} icuString - The ICU string to condense.
|
|
4205
4208
|
* @returns {string} The condensed ICU string.
|
|
4206
4209
|
*/
|
|
4207
4210
|
function condenseVars(icuString) {
|
|
4208
|
-
if (!
|
|
4211
|
+
if (!CONTAINS_INDEXED_GT_REGEX.test(icuString)) return icuString;
|
|
4209
4212
|
function visitor(child) {
|
|
4210
4213
|
child.type = import_types.TYPE.argument;
|
|
4211
4214
|
Reflect.deleteProperty(child, "options");
|
|
@@ -6179,7 +6182,7 @@ function S({ source: e, severity: t, whatHappened: n, reassurance: r, why: i, fi
|
|
|
6179
6182
|
let p = f.join(` `);
|
|
6180
6183
|
return l ? `${l} ${p}` : p;
|
|
6181
6184
|
}
|
|
6182
|
-
function
|
|
6185
|
+
function ie(e) {
|
|
6183
6186
|
let t = e;
|
|
6184
6187
|
if (t && typeof t == `object` && typeof t.k == `string`) {
|
|
6185
6188
|
let e = Object.keys(t);
|
|
@@ -6187,43 +6190,43 @@ function E(e) {
|
|
|
6187
6190
|
}
|
|
6188
6191
|
return !1;
|
|
6189
6192
|
}
|
|
6190
|
-
function
|
|
6193
|
+
function ae(e) {
|
|
6191
6194
|
return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === `Uint8Array` && `BYTES_PER_ELEMENT` in e && e.BYTES_PER_ELEMENT === 1;
|
|
6192
6195
|
}
|
|
6193
|
-
function
|
|
6194
|
-
let r =
|
|
6196
|
+
function E(e, t, n = ``) {
|
|
6197
|
+
let r = ae(e), i = e?.length, a = t !== void 0;
|
|
6195
6198
|
if (!r || a && i !== t) {
|
|
6196
6199
|
let o = n && `"${n}" `, s = a ? ` of length ${t}` : ``, c = r ? `length=${i}` : `type=${typeof e}`, l = o + `expected Uint8Array` + s + `, got ` + c;
|
|
6197
6200
|
throw r ? RangeError(l) : TypeError(l);
|
|
6198
6201
|
}
|
|
6199
6202
|
return e;
|
|
6200
6203
|
}
|
|
6201
|
-
function
|
|
6204
|
+
function oe(e, t = !0) {
|
|
6202
6205
|
if (e.destroyed) throw Error(`Hash instance has been destroyed`);
|
|
6203
6206
|
if (t && e.finished) throw Error(`Hash#digest() has already been called`);
|
|
6204
6207
|
}
|
|
6205
|
-
function
|
|
6206
|
-
|
|
6208
|
+
function se(e, t) {
|
|
6209
|
+
E(e, void 0, `digestInto() output`);
|
|
6207
6210
|
let n = t.outputLen;
|
|
6208
6211
|
if (e.length < n) throw RangeError(`"digestInto() output" expected to be of length >=` + n);
|
|
6209
6212
|
}
|
|
6210
|
-
function
|
|
6213
|
+
function ce(...e) {
|
|
6211
6214
|
for (let t = 0; t < e.length; t++) e[t].fill(0);
|
|
6212
6215
|
}
|
|
6213
|
-
function
|
|
6216
|
+
function le(e) {
|
|
6214
6217
|
return new DataView(e.buffer, e.byteOffset, e.byteLength);
|
|
6215
6218
|
}
|
|
6216
|
-
function
|
|
6219
|
+
function D(e, t) {
|
|
6217
6220
|
return e << 32 - t | e >>> t;
|
|
6218
6221
|
}
|
|
6219
6222
|
new Uint8Array(new Uint32Array([287454020]).buffer)[0];
|
|
6220
6223
|
typeof Uint8Array.from([]).toHex == `function` && Uint8Array.fromHex;
|
|
6221
6224
|
Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, `0`));
|
|
6222
|
-
function
|
|
6225
|
+
function me(e, t = {}) {
|
|
6223
6226
|
let n = (t, n) => e(n).update(t).digest(), r = e(void 0);
|
|
6224
6227
|
return n.outputLen = r.outputLen, n.blockLen = r.blockLen, n.canXOF = r.canXOF, n.create = (t) => e(t), Object.assign(n, t), Object.freeze(n);
|
|
6225
6228
|
}
|
|
6226
|
-
const
|
|
6229
|
+
const he = (e) => ({ oid: Uint8Array.from([
|
|
6227
6230
|
6,
|
|
6228
6231
|
9,
|
|
6229
6232
|
96,
|
|
@@ -6236,13 +6239,13 @@ const me = (e) => ({ oid: Uint8Array.from([
|
|
|
6236
6239
|
2,
|
|
6237
6240
|
e
|
|
6238
6241
|
]) });
|
|
6239
|
-
function
|
|
6242
|
+
function ge(e, t, n) {
|
|
6240
6243
|
return e & t ^ ~e & n;
|
|
6241
6244
|
}
|
|
6242
|
-
function
|
|
6245
|
+
function _e(e, t, n) {
|
|
6243
6246
|
return e & t ^ e & n ^ t & n;
|
|
6244
6247
|
}
|
|
6245
|
-
var
|
|
6248
|
+
var ve = class {
|
|
6246
6249
|
blockLen;
|
|
6247
6250
|
outputLen;
|
|
6248
6251
|
canXOF = !1;
|
|
@@ -6255,15 +6258,15 @@ var _e = class {
|
|
|
6255
6258
|
pos = 0;
|
|
6256
6259
|
destroyed = !1;
|
|
6257
6260
|
constructor(e, t, n, r) {
|
|
6258
|
-
this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view =
|
|
6261
|
+
this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = le(this.buffer);
|
|
6259
6262
|
}
|
|
6260
6263
|
update(e) {
|
|
6261
|
-
|
|
6264
|
+
oe(this), E(e);
|
|
6262
6265
|
let { view: t, buffer: n, blockLen: r } = this, i = e.length;
|
|
6263
6266
|
for (let a = 0; a < i;) {
|
|
6264
6267
|
let o = Math.min(r - this.pos, i - a);
|
|
6265
6268
|
if (o === r) {
|
|
6266
|
-
let t =
|
|
6269
|
+
let t = le(e);
|
|
6267
6270
|
for (; r <= i - a; a += r) this.process(t, a);
|
|
6268
6271
|
continue;
|
|
6269
6272
|
}
|
|
@@ -6272,12 +6275,12 @@ var _e = class {
|
|
|
6272
6275
|
return this.length += e.length, this.roundClean(), this;
|
|
6273
6276
|
}
|
|
6274
6277
|
digestInto(e) {
|
|
6275
|
-
|
|
6278
|
+
oe(this), se(e, this), this.finished = !0;
|
|
6276
6279
|
let { buffer: t, view: n, blockLen: r, isLE: i } = this, { pos: a } = this;
|
|
6277
|
-
t[a++] = 128,
|
|
6280
|
+
t[a++] = 128, ce(this.buffer.subarray(a)), this.padOffset > r - a && (this.process(n, 0), a = 0);
|
|
6278
6281
|
for (let e = a; e < r; e++) t[e] = 0;
|
|
6279
6282
|
n.setBigUint64(r - 8, BigInt(this.length * 8), i), this.process(n, 0);
|
|
6280
|
-
let o =
|
|
6283
|
+
let o = le(e), s = this.outputLen;
|
|
6281
6284
|
if (s % 4) throw Error(`_sha2: outputLen must be aligned to 32bit`);
|
|
6282
6285
|
let c = s / 4, l = this.get();
|
|
6283
6286
|
if (c > l.length) throw Error(`_sha2: outputLen bigger than state`);
|
|
@@ -6298,7 +6301,7 @@ var _e = class {
|
|
|
6298
6301
|
return this._cloneInto();
|
|
6299
6302
|
}
|
|
6300
6303
|
};
|
|
6301
|
-
const
|
|
6304
|
+
const O = Uint32Array.from([
|
|
6302
6305
|
1779033703,
|
|
6303
6306
|
3144134277,
|
|
6304
6307
|
1013904242,
|
|
@@ -6307,25 +6310,25 @@ const k = Uint32Array.from([
|
|
|
6307
6310
|
2600822924,
|
|
6308
6311
|
528734635,
|
|
6309
6312
|
1541459225
|
|
6310
|
-
]),
|
|
6311
|
-
function
|
|
6313
|
+
]), k = BigInt(2 ** 32 - 1), ye = BigInt(32);
|
|
6314
|
+
function be(e, t = !1) {
|
|
6312
6315
|
return t ? {
|
|
6313
|
-
h: Number(e &
|
|
6314
|
-
l: Number(e >>
|
|
6316
|
+
h: Number(e & k),
|
|
6317
|
+
l: Number(e >> ye & k)
|
|
6315
6318
|
} : {
|
|
6316
|
-
h: Number(e >>
|
|
6317
|
-
l: Number(e &
|
|
6319
|
+
h: Number(e >> ye & k) | 0,
|
|
6320
|
+
l: Number(e & k) | 0
|
|
6318
6321
|
};
|
|
6319
6322
|
}
|
|
6320
|
-
function
|
|
6323
|
+
function xe(e, t = !1) {
|
|
6321
6324
|
let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
|
|
6322
6325
|
for (let a = 0; a < n; a++) {
|
|
6323
|
-
let { h: n, l: o } =
|
|
6326
|
+
let { h: n, l: o } = be(e[a], t);
|
|
6324
6327
|
[r[a], i[a]] = [n, o];
|
|
6325
6328
|
}
|
|
6326
6329
|
return [r, i];
|
|
6327
6330
|
}
|
|
6328
|
-
const
|
|
6331
|
+
const Se = Uint32Array.from([
|
|
6329
6332
|
1116352408,
|
|
6330
6333
|
1899447441,
|
|
6331
6334
|
3049323471,
|
|
@@ -6390,8 +6393,8 @@ const xe = Uint32Array.from([
|
|
|
6390
6393
|
2756734187,
|
|
6391
6394
|
3204031479,
|
|
6392
6395
|
3329325298
|
|
6393
|
-
]),
|
|
6394
|
-
var
|
|
6396
|
+
]), A = new Uint32Array(64);
|
|
6397
|
+
var Ce = class extends ve {
|
|
6395
6398
|
constructor(e) {
|
|
6396
6399
|
super(64, e, 8, !1);
|
|
6397
6400
|
}
|
|
@@ -6412,41 +6415,41 @@ var Se = class extends _e {
|
|
|
6412
6415
|
this.A = e | 0, this.B = t | 0, this.C = n | 0, this.D = r | 0, this.E = i | 0, this.F = a | 0, this.G = o | 0, this.H = s | 0;
|
|
6413
6416
|
}
|
|
6414
6417
|
process(e, t) {
|
|
6415
|
-
for (let n = 0; n < 16; n++, t += 4)
|
|
6418
|
+
for (let n = 0; n < 16; n++, t += 4) A[n] = e.getUint32(t, !1);
|
|
6416
6419
|
for (let e = 16; e < 64; e++) {
|
|
6417
|
-
let t =
|
|
6418
|
-
|
|
6420
|
+
let t = A[e - 15], n = A[e - 2], r = D(t, 7) ^ D(t, 18) ^ t >>> 3;
|
|
6421
|
+
A[e] = (D(n, 17) ^ D(n, 19) ^ n >>> 10) + A[e - 7] + r + A[e - 16] | 0;
|
|
6419
6422
|
}
|
|
6420
6423
|
let { A: n, B: r, C: i, D: a, E: o, F: s, G: c, H: l } = this;
|
|
6421
6424
|
for (let e = 0; e < 64; e++) {
|
|
6422
|
-
let t =
|
|
6425
|
+
let t = D(o, 6) ^ D(o, 11) ^ D(o, 25), u = l + t + ge(o, s, c) + Se[e] + A[e] | 0, d = (D(n, 2) ^ D(n, 13) ^ D(n, 22)) + _e(n, r, i) | 0;
|
|
6423
6426
|
l = c, c = s, s = o, o = a + u | 0, a = i, i = r, r = n, n = u + d | 0;
|
|
6424
6427
|
}
|
|
6425
6428
|
n = n + this.A | 0, r = r + this.B | 0, i = i + this.C | 0, a = a + this.D | 0, o = o + this.E | 0, s = s + this.F | 0, c = c + this.G | 0, l = l + this.H | 0, this.set(n, r, i, a, o, s, c, l);
|
|
6426
6429
|
}
|
|
6427
6430
|
roundClean() {
|
|
6428
|
-
|
|
6431
|
+
ce(A);
|
|
6429
6432
|
}
|
|
6430
6433
|
destroy() {
|
|
6431
|
-
this.destroyed = !0, this.set(0, 0, 0, 0, 0, 0, 0, 0),
|
|
6432
|
-
}
|
|
6433
|
-
},
|
|
6434
|
-
A =
|
|
6435
|
-
B =
|
|
6436
|
-
C =
|
|
6437
|
-
D =
|
|
6438
|
-
E =
|
|
6439
|
-
F =
|
|
6440
|
-
G =
|
|
6441
|
-
H =
|
|
6434
|
+
this.destroyed = !0, this.set(0, 0, 0, 0, 0, 0, 0, 0), ce(this.buffer);
|
|
6435
|
+
}
|
|
6436
|
+
}, we = class extends Ce {
|
|
6437
|
+
A = O[0] | 0;
|
|
6438
|
+
B = O[1] | 0;
|
|
6439
|
+
C = O[2] | 0;
|
|
6440
|
+
D = O[3] | 0;
|
|
6441
|
+
E = O[4] | 0;
|
|
6442
|
+
F = O[5] | 0;
|
|
6443
|
+
G = O[6] | 0;
|
|
6444
|
+
H = O[7] | 0;
|
|
6442
6445
|
constructor() {
|
|
6443
6446
|
super(32);
|
|
6444
6447
|
}
|
|
6445
6448
|
};
|
|
6446
|
-
const
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
const
|
|
6449
|
+
const Te = xe(`0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817`.split(`.`).map((e) => BigInt(e)));
|
|
6450
|
+
Te[0], Te[1];
|
|
6451
|
+
me(() => new we(), he(1));
|
|
6452
|
+
const De = (e) => `generaltranslation Formatting Error: Invalid cutoff style: ${e}.`, Oe = `DEFAULT_TERMINATOR_KEY`, ke = {
|
|
6450
6453
|
ellipsis: {
|
|
6451
6454
|
fr: {
|
|
6452
6455
|
terminator: `…`,
|
|
@@ -6460,17 +6463,17 @@ const Ee = (e) => `generaltranslation Formatting Error: Invalid cutoff style: ${
|
|
|
6460
6463
|
terminator: `……`,
|
|
6461
6464
|
separator: void 0
|
|
6462
6465
|
},
|
|
6463
|
-
[
|
|
6466
|
+
[Oe]: {
|
|
6464
6467
|
terminator: `…`,
|
|
6465
6468
|
separator: void 0
|
|
6466
6469
|
}
|
|
6467
6470
|
},
|
|
6468
|
-
none: { [
|
|
6471
|
+
none: { [Oe]: {
|
|
6469
6472
|
terminator: void 0,
|
|
6470
6473
|
separator: void 0
|
|
6471
6474
|
} }
|
|
6472
6475
|
};
|
|
6473
|
-
var
|
|
6476
|
+
var Ae = class e {
|
|
6474
6477
|
static resolveLocale(e) {
|
|
6475
6478
|
try {
|
|
6476
6479
|
let t = e ? Array.isArray(e) ? e.map(String) : [String(e)] : [`en`], [n] = Intl.getCanonicalLocales(t);
|
|
@@ -6482,8 +6485,8 @@ var ke = class e {
|
|
|
6482
6485
|
constructor(t, n = {}) {
|
|
6483
6486
|
this.locale = e.resolveLocale(t);
|
|
6484
6487
|
let r = n.style ?? `ellipsis`;
|
|
6485
|
-
if (!
|
|
6486
|
-
let i = n.maxChars === void 0 ? void 0 :
|
|
6488
|
+
if (!ke[r]) throw Error(De(r));
|
|
6489
|
+
let i = n.maxChars === void 0 ? void 0 : ke[r][new Intl.Locale(this.locale).language] || ke[r].DEFAULT_TERMINATOR_KEY, a = n.terminator ?? i?.terminator, o = a == null ? void 0 : n.separator ?? i?.separator;
|
|
6487
6490
|
this.additionLength = (a?.length ?? 0) + (o?.length ?? 0), n.maxChars !== void 0 && Math.abs(n.maxChars) < this.additionLength && (a = void 0, o = void 0), this.options = {
|
|
6488
6491
|
maxChars: n.maxChars,
|
|
6489
6492
|
style: n.maxChars === void 0 ? void 0 : r,
|
|
@@ -6510,7 +6513,7 @@ var ke = class e {
|
|
|
6510
6513
|
return this.options;
|
|
6511
6514
|
}
|
|
6512
6515
|
};
|
|
6513
|
-
const
|
|
6516
|
+
const je = {
|
|
6514
6517
|
Collator: Intl.Collator,
|
|
6515
6518
|
DateTimeFormat: Intl.DateTimeFormat,
|
|
6516
6519
|
DisplayNames: Intl.DisplayNames,
|
|
@@ -6520,8 +6523,8 @@ const Ae = {
|
|
|
6520
6523
|
PluralRules: Intl.PluralRules,
|
|
6521
6524
|
RelativeTimeFormat: Intl.RelativeTimeFormat,
|
|
6522
6525
|
Segmenter: Intl.Segmenter,
|
|
6523
|
-
CutoffFormat:
|
|
6524
|
-
},
|
|
6526
|
+
CutoffFormat: Ae
|
|
6527
|
+
}, Me = new class {
|
|
6525
6528
|
constructor() {
|
|
6526
6529
|
this.cache = {};
|
|
6527
6530
|
}
|
|
@@ -6532,73 +6535,73 @@ const Ae = {
|
|
|
6532
6535
|
let [n = `en`, r = {}] = t, i = this.generateKey(n, r), a = this.cache[e];
|
|
6533
6536
|
a === void 0 && (a = {}, this.cache[e] = a);
|
|
6534
6537
|
let o = a[i];
|
|
6535
|
-
return o === void 0 && (o = new
|
|
6538
|
+
return o === void 0 && (o = new je[e](...t), a[i] = o), o;
|
|
6536
6539
|
}
|
|
6537
6540
|
}();
|
|
6538
|
-
function
|
|
6539
|
-
return
|
|
6541
|
+
function Ne(e) {
|
|
6542
|
+
return Me.get(`PluralRules`, e);
|
|
6540
6543
|
}
|
|
6541
|
-
var
|
|
6542
|
-
__addDisposableResource: () =>
|
|
6544
|
+
var j = m({
|
|
6545
|
+
__addDisposableResource: () => at,
|
|
6543
6546
|
__assign: () => F,
|
|
6544
|
-
__asyncDelegator: () =>
|
|
6545
|
-
__asyncGenerator: () =>
|
|
6546
|
-
__asyncValues: () =>
|
|
6547
|
-
__await: () =>
|
|
6548
|
-
__awaiter: () =>
|
|
6549
|
-
__classPrivateFieldGet: () =>
|
|
6550
|
-
__classPrivateFieldIn: () =>
|
|
6551
|
-
__classPrivateFieldSet: () =>
|
|
6547
|
+
__asyncDelegator: () => Ze,
|
|
6548
|
+
__asyncGenerator: () => Xe,
|
|
6549
|
+
__asyncValues: () => Qe,
|
|
6550
|
+
__await: () => N,
|
|
6551
|
+
__awaiter: () => Ue,
|
|
6552
|
+
__classPrivateFieldGet: () => nt,
|
|
6553
|
+
__classPrivateFieldIn: () => it,
|
|
6554
|
+
__classPrivateFieldSet: () => rt,
|
|
6552
6555
|
__createBinding: () => I,
|
|
6553
|
-
__decorate: () =>
|
|
6554
|
-
__disposeResources: () =>
|
|
6555
|
-
__esDecorate: () =>
|
|
6556
|
-
__exportStar: () =>
|
|
6557
|
-
__extends: () =>
|
|
6558
|
-
__generator: () =>
|
|
6559
|
-
__importDefault: () =>
|
|
6560
|
-
__importStar: () =>
|
|
6561
|
-
__makeTemplateObject: () =>
|
|
6562
|
-
__metadata: () =>
|
|
6563
|
-
__param: () =>
|
|
6564
|
-
__propKey: () =>
|
|
6565
|
-
__read: () =>
|
|
6566
|
-
__rest: () =>
|
|
6567
|
-
__rewriteRelativeImportExtension: () =>
|
|
6568
|
-
__runInitializers: () =>
|
|
6569
|
-
__setFunctionName: () =>
|
|
6570
|
-
__spread: () =>
|
|
6571
|
-
__spreadArray: () =>
|
|
6572
|
-
__spreadArrays: () =>
|
|
6573
|
-
__values: () =>
|
|
6556
|
+
__decorate: () => Ie,
|
|
6557
|
+
__disposeResources: () => ot,
|
|
6558
|
+
__esDecorate: () => Re,
|
|
6559
|
+
__exportStar: () => Ge,
|
|
6560
|
+
__extends: () => Pe,
|
|
6561
|
+
__generator: () => We,
|
|
6562
|
+
__importDefault: () => tt,
|
|
6563
|
+
__importStar: () => et,
|
|
6564
|
+
__makeTemplateObject: () => $e,
|
|
6565
|
+
__metadata: () => He,
|
|
6566
|
+
__param: () => Le,
|
|
6567
|
+
__propKey: () => Be,
|
|
6568
|
+
__read: () => Ke,
|
|
6569
|
+
__rest: () => Fe,
|
|
6570
|
+
__rewriteRelativeImportExtension: () => st,
|
|
6571
|
+
__runInitializers: () => ze,
|
|
6572
|
+
__setFunctionName: () => Ve,
|
|
6573
|
+
__spread: () => qe,
|
|
6574
|
+
__spreadArray: () => Ye,
|
|
6575
|
+
__spreadArrays: () => Je,
|
|
6576
|
+
__values: () => M,
|
|
6574
6577
|
default: () => ut
|
|
6575
6578
|
});
|
|
6576
|
-
function
|
|
6579
|
+
function Pe(e, t) {
|
|
6577
6580
|
if (typeof t != `function` && t !== null) throw TypeError(`Class extends value ` + String(t) + ` is not a constructor or null`);
|
|
6578
|
-
|
|
6581
|
+
P(e, t);
|
|
6579
6582
|
function n() {
|
|
6580
6583
|
this.constructor = e;
|
|
6581
6584
|
}
|
|
6582
6585
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
6583
6586
|
}
|
|
6584
|
-
function
|
|
6587
|
+
function Fe(e, t) {
|
|
6585
6588
|
var n = {};
|
|
6586
6589
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
6587
6590
|
if (e != null && typeof Object.getOwnPropertySymbols == `function`) for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
6588
6591
|
return n;
|
|
6589
6592
|
}
|
|
6590
|
-
function
|
|
6593
|
+
function Ie(e, t, n, r) {
|
|
6591
6594
|
var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
|
|
6592
6595
|
if (typeof Reflect == `object` && typeof Reflect.decorate == `function`) a = Reflect.decorate(e, t, n, r);
|
|
6593
6596
|
else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
|
|
6594
6597
|
return i > 3 && a && Object.defineProperty(t, n, a), a;
|
|
6595
6598
|
}
|
|
6596
|
-
function
|
|
6599
|
+
function Le(e, t) {
|
|
6597
6600
|
return function(n, r) {
|
|
6598
6601
|
t(n, r, e);
|
|
6599
6602
|
};
|
|
6600
6603
|
}
|
|
6601
|
-
function
|
|
6604
|
+
function Re(e, t, n, r, i, a) {
|
|
6602
6605
|
function o(e) {
|
|
6603
6606
|
if (e !== void 0 && typeof e != `function`) throw TypeError(`Function expected`);
|
|
6604
6607
|
return e;
|
|
@@ -6623,23 +6626,23 @@ function Le(e, t, n, r, i, a) {
|
|
|
6623
6626
|
}
|
|
6624
6627
|
l && Object.defineProperty(l, r.name, u), f = !0;
|
|
6625
6628
|
}
|
|
6626
|
-
function
|
|
6629
|
+
function ze(e, t, n) {
|
|
6627
6630
|
for (var r = arguments.length > 2, i = 0; i < t.length; i++) n = r ? t[i].call(e, n) : t[i].call(e);
|
|
6628
6631
|
return r ? n : void 0;
|
|
6629
6632
|
}
|
|
6630
|
-
function
|
|
6633
|
+
function Be(e) {
|
|
6631
6634
|
return typeof e == `symbol` ? e : `${e}`;
|
|
6632
6635
|
}
|
|
6633
|
-
function
|
|
6636
|
+
function Ve(e, t, n) {
|
|
6634
6637
|
return typeof t == `symbol` && (t = t.description ? `[${t.description}]` : ``), Object.defineProperty(e, `name`, {
|
|
6635
6638
|
configurable: !0,
|
|
6636
6639
|
value: n ? `${n} ${t}` : t
|
|
6637
6640
|
});
|
|
6638
6641
|
}
|
|
6639
|
-
function
|
|
6642
|
+
function He(e, t) {
|
|
6640
6643
|
if (typeof Reflect == `object` && typeof Reflect.metadata == `function`) return Reflect.metadata(e, t);
|
|
6641
6644
|
}
|
|
6642
|
-
function
|
|
6645
|
+
function Ue(e, t, n, r) {
|
|
6643
6646
|
function i(e) {
|
|
6644
6647
|
return e instanceof n ? e : new n(function(t) {
|
|
6645
6648
|
t(e);
|
|
@@ -6666,7 +6669,7 @@ function He(e, t, n, r) {
|
|
|
6666
6669
|
c((r = r.apply(e, t || [])).next());
|
|
6667
6670
|
});
|
|
6668
6671
|
}
|
|
6669
|
-
function
|
|
6672
|
+
function We(e, t) {
|
|
6670
6673
|
var n = {
|
|
6671
6674
|
label: 0,
|
|
6672
6675
|
sent: function() {
|
|
@@ -6736,10 +6739,10 @@ function Ue(e, t) {
|
|
|
6736
6739
|
};
|
|
6737
6740
|
}
|
|
6738
6741
|
}
|
|
6739
|
-
function
|
|
6742
|
+
function Ge(e, t) {
|
|
6740
6743
|
for (var n in e) n !== `default` && !Object.prototype.hasOwnProperty.call(t, n) && I(t, e, n);
|
|
6741
6744
|
}
|
|
6742
|
-
function
|
|
6745
|
+
function M(e) {
|
|
6743
6746
|
var t = typeof Symbol == `function` && Symbol.iterator, n = t && e[t], r = 0;
|
|
6744
6747
|
if (n) return n.call(e);
|
|
6745
6748
|
if (e && typeof e.length == `number`) return { next: function() {
|
|
@@ -6750,7 +6753,7 @@ function N(e) {
|
|
|
6750
6753
|
} };
|
|
6751
6754
|
throw TypeError(t ? `Object is not iterable.` : `Symbol.iterator is not defined.`);
|
|
6752
6755
|
}
|
|
6753
|
-
function
|
|
6756
|
+
function Ke(e, t) {
|
|
6754
6757
|
var n = typeof Symbol == `function` && e[Symbol.iterator];
|
|
6755
6758
|
if (!n) return e;
|
|
6756
6759
|
var r = n.call(e), i, a = [], o;
|
|
@@ -6767,23 +6770,23 @@ function Ge(e, t) {
|
|
|
6767
6770
|
}
|
|
6768
6771
|
return a;
|
|
6769
6772
|
}
|
|
6770
|
-
function
|
|
6771
|
-
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(
|
|
6773
|
+
function qe() {
|
|
6774
|
+
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(Ke(arguments[t]));
|
|
6772
6775
|
return e;
|
|
6773
6776
|
}
|
|
6774
|
-
function
|
|
6777
|
+
function Je() {
|
|
6775
6778
|
for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
|
|
6776
6779
|
for (var r = Array(e), i = 0, t = 0; t < n; t++) for (var a = arguments[t], o = 0, s = a.length; o < s; o++, i++) r[i] = a[o];
|
|
6777
6780
|
return r;
|
|
6778
6781
|
}
|
|
6779
|
-
function
|
|
6782
|
+
function Ye(e, t, n) {
|
|
6780
6783
|
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
6781
6784
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
6782
6785
|
}
|
|
6783
|
-
function
|
|
6784
|
-
return this instanceof
|
|
6786
|
+
function N(e) {
|
|
6787
|
+
return this instanceof N ? (this.v = e, this) : new N(e);
|
|
6785
6788
|
}
|
|
6786
|
-
function
|
|
6789
|
+
function Xe(e, t, n) {
|
|
6787
6790
|
if (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);
|
|
6788
6791
|
var r = n.apply(e, t || []), i, a = [];
|
|
6789
6792
|
return i = Object.create((typeof AsyncIterator == `function` ? AsyncIterator : Object).prototype), s(`next`), s(`throw`), s(`return`, o), i[Symbol.asyncIterator] = function() {
|
|
@@ -6814,7 +6817,7 @@ function Ye(e, t, n) {
|
|
|
6814
6817
|
}
|
|
6815
6818
|
}
|
|
6816
6819
|
function l(e) {
|
|
6817
|
-
e.value instanceof
|
|
6820
|
+
e.value instanceof N ? Promise.resolve(e.value.v).then(u, d) : f(a[0][2], e);
|
|
6818
6821
|
}
|
|
6819
6822
|
function u(e) {
|
|
6820
6823
|
c(`next`, e);
|
|
@@ -6826,7 +6829,7 @@ function Ye(e, t, n) {
|
|
|
6826
6829
|
e(t), a.shift(), a.length && c(a[0][0], a[0][1]);
|
|
6827
6830
|
}
|
|
6828
6831
|
}
|
|
6829
|
-
function
|
|
6832
|
+
function Ze(e) {
|
|
6830
6833
|
var t, n;
|
|
6831
6834
|
return t = {}, r(`next`), r(`throw`, function(e) {
|
|
6832
6835
|
throw e;
|
|
@@ -6836,16 +6839,16 @@ function Xe(e) {
|
|
|
6836
6839
|
function r(r, i) {
|
|
6837
6840
|
t[r] = e[r] ? function(t) {
|
|
6838
6841
|
return (n = !n) ? {
|
|
6839
|
-
value:
|
|
6842
|
+
value: N(e[r](t)),
|
|
6840
6843
|
done: !1
|
|
6841
6844
|
} : i ? i(t) : t;
|
|
6842
6845
|
} : i;
|
|
6843
6846
|
}
|
|
6844
6847
|
}
|
|
6845
|
-
function
|
|
6848
|
+
function Qe(e) {
|
|
6846
6849
|
if (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);
|
|
6847
6850
|
var t = e[Symbol.asyncIterator], n;
|
|
6848
|
-
return t ? t.call(e) : (e = typeof
|
|
6851
|
+
return t ? t.call(e) : (e = typeof M == `function` ? M(e) : e[Symbol.iterator](), n = {}, r(`next`), r(`throw`), r(`return`), n[Symbol.asyncIterator] = function() {
|
|
6849
6852
|
return this;
|
|
6850
6853
|
}, n);
|
|
6851
6854
|
function r(t) {
|
|
@@ -6864,34 +6867,34 @@ function Ze(e) {
|
|
|
6864
6867
|
}, t);
|
|
6865
6868
|
}
|
|
6866
6869
|
}
|
|
6867
|
-
function
|
|
6870
|
+
function $e(e, t) {
|
|
6868
6871
|
return Object.defineProperty ? Object.defineProperty(e, `raw`, { value: t }) : e.raw = t, e;
|
|
6869
6872
|
}
|
|
6870
|
-
function
|
|
6873
|
+
function et(e) {
|
|
6871
6874
|
if (e && e.__esModule) return e;
|
|
6872
6875
|
var t = {};
|
|
6873
6876
|
if (e != null) for (var n = L(e), r = 0; r < n.length; r++) n[r] !== `default` && I(t, e, n[r]);
|
|
6874
6877
|
return ct(t, e), t;
|
|
6875
6878
|
}
|
|
6876
|
-
function
|
|
6879
|
+
function tt(e) {
|
|
6877
6880
|
return e && e.__esModule ? e : { default: e };
|
|
6878
6881
|
}
|
|
6879
|
-
function
|
|
6882
|
+
function nt(e, t, n, r) {
|
|
6880
6883
|
if (n === `a` && !r) throw TypeError(`Private accessor was defined without a getter`);
|
|
6881
6884
|
if (typeof t == `function` ? e !== t || !r : !t.has(e)) throw TypeError(`Cannot read private member from an object whose class did not declare it`);
|
|
6882
6885
|
return n === `m` ? r : n === `a` ? r.call(e) : r ? r.value : t.get(e);
|
|
6883
6886
|
}
|
|
6884
|
-
function
|
|
6887
|
+
function rt(e, t, n, r, i) {
|
|
6885
6888
|
if (r === `m`) throw TypeError(`Private method is not writable`);
|
|
6886
6889
|
if (r === `a` && !i) throw TypeError(`Private accessor was defined without a setter`);
|
|
6887
6890
|
if (typeof t == `function` ? e !== t || !i : !t.has(e)) throw TypeError(`Cannot write private member to an object whose class did not declare it`);
|
|
6888
6891
|
return r === `a` ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
|
|
6889
6892
|
}
|
|
6890
|
-
function
|
|
6893
|
+
function it(e, t) {
|
|
6891
6894
|
if (t === null || typeof t != `object` && typeof t != `function`) throw TypeError(`Cannot use 'in' operator on non-object`);
|
|
6892
6895
|
return typeof e == `function` ? t === e : e.has(t);
|
|
6893
6896
|
}
|
|
6894
|
-
function
|
|
6897
|
+
function at(e, t, n) {
|
|
6895
6898
|
if (t != null) {
|
|
6896
6899
|
if (typeof t != `object` && typeof t != `function`) throw TypeError(`Object expected.`);
|
|
6897
6900
|
var r, i;
|
|
@@ -6918,7 +6921,7 @@ function it(e, t, n) {
|
|
|
6918
6921
|
} else n && e.stack.push({ async: !0 });
|
|
6919
6922
|
return t;
|
|
6920
6923
|
}
|
|
6921
|
-
function
|
|
6924
|
+
function ot(e) {
|
|
6922
6925
|
function t(t) {
|
|
6923
6926
|
e.error = e.hasError ? new lt(t, e.error, `An error was suppressed during disposal.`) : t, e.hasError = !0;
|
|
6924
6927
|
}
|
|
@@ -6940,18 +6943,18 @@ function at(e) {
|
|
|
6940
6943
|
}
|
|
6941
6944
|
return i();
|
|
6942
6945
|
}
|
|
6943
|
-
function
|
|
6946
|
+
function st(e, t) {
|
|
6944
6947
|
return typeof e == `string` && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(e, n, r, i, a) {
|
|
6945
6948
|
return n ? t ? `.jsx` : `.js` : r && (!i || !a) ? e : r + i + `.` + a.toLowerCase() + `js`;
|
|
6946
6949
|
}) : e;
|
|
6947
6950
|
}
|
|
6948
|
-
var
|
|
6949
|
-
|
|
6950
|
-
return
|
|
6951
|
+
var P, F, I, ct, L, lt, ut, R = f((() => {
|
|
6952
|
+
P = function(e, t) {
|
|
6953
|
+
return P = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
|
|
6951
6954
|
e.__proto__ = t;
|
|
6952
6955
|
} || function(e, t) {
|
|
6953
6956
|
for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
6954
|
-
},
|
|
6957
|
+
}, P(e, t);
|
|
6955
6958
|
}, F = function() {
|
|
6956
6959
|
return F = Object.assign || function(e) {
|
|
6957
6960
|
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
@@ -6985,38 +6988,38 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
6985
6988
|
var r = Error(n);
|
|
6986
6989
|
return r.name = `SuppressedError`, r.error = e, r.suppressed = t, r;
|
|
6987
6990
|
}, ut = {
|
|
6988
|
-
__extends:
|
|
6991
|
+
__extends: Pe,
|
|
6989
6992
|
__assign: F,
|
|
6990
|
-
__rest:
|
|
6991
|
-
__decorate:
|
|
6992
|
-
__param:
|
|
6993
|
-
__esDecorate:
|
|
6994
|
-
__runInitializers:
|
|
6995
|
-
__propKey:
|
|
6996
|
-
__setFunctionName:
|
|
6997
|
-
__metadata:
|
|
6998
|
-
__awaiter:
|
|
6999
|
-
__generator:
|
|
6993
|
+
__rest: Fe,
|
|
6994
|
+
__decorate: Ie,
|
|
6995
|
+
__param: Le,
|
|
6996
|
+
__esDecorate: Re,
|
|
6997
|
+
__runInitializers: ze,
|
|
6998
|
+
__propKey: Be,
|
|
6999
|
+
__setFunctionName: Ve,
|
|
7000
|
+
__metadata: He,
|
|
7001
|
+
__awaiter: Ue,
|
|
7002
|
+
__generator: We,
|
|
7000
7003
|
__createBinding: I,
|
|
7001
|
-
__exportStar:
|
|
7002
|
-
__values:
|
|
7003
|
-
__read:
|
|
7004
|
-
__spread:
|
|
7005
|
-
__spreadArrays:
|
|
7006
|
-
__spreadArray:
|
|
7007
|
-
__await:
|
|
7008
|
-
__asyncGenerator:
|
|
7009
|
-
__asyncDelegator:
|
|
7010
|
-
__asyncValues:
|
|
7011
|
-
__makeTemplateObject:
|
|
7012
|
-
__importStar:
|
|
7013
|
-
__importDefault:
|
|
7014
|
-
__classPrivateFieldGet:
|
|
7015
|
-
__classPrivateFieldSet:
|
|
7016
|
-
__classPrivateFieldIn:
|
|
7017
|
-
__addDisposableResource:
|
|
7018
|
-
__disposeResources:
|
|
7019
|
-
__rewriteRelativeImportExtension:
|
|
7004
|
+
__exportStar: Ge,
|
|
7005
|
+
__values: M,
|
|
7006
|
+
__read: Ke,
|
|
7007
|
+
__spread: qe,
|
|
7008
|
+
__spreadArrays: Je,
|
|
7009
|
+
__spreadArray: Ye,
|
|
7010
|
+
__await: N,
|
|
7011
|
+
__asyncGenerator: Xe,
|
|
7012
|
+
__asyncDelegator: Ze,
|
|
7013
|
+
__asyncValues: Qe,
|
|
7014
|
+
__makeTemplateObject: $e,
|
|
7015
|
+
__importStar: et,
|
|
7016
|
+
__importDefault: tt,
|
|
7017
|
+
__classPrivateFieldGet: nt,
|
|
7018
|
+
__classPrivateFieldSet: rt,
|
|
7019
|
+
__classPrivateFieldIn: it,
|
|
7020
|
+
__addDisposableResource: at,
|
|
7021
|
+
__disposeResources: ot,
|
|
7022
|
+
__rewriteRelativeImportExtension: st
|
|
7020
7023
|
};
|
|
7021
7024
|
})), dt = p(((e) => {
|
|
7022
7025
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.ErrorKind = void 0;
|
|
@@ -7186,7 +7189,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
7186
7189
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.WHITE_SPACE_REGEX = void 0, e.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
7187
7190
|
})), ht = p(((e) => {
|
|
7188
7191
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.parseNumberSkeletonFromString = r, e.parseNumberSkeleton = p;
|
|
7189
|
-
var t = (R(), g(
|
|
7192
|
+
var t = (R(), g(j)), n = mt();
|
|
7190
7193
|
function r(e) {
|
|
7191
7194
|
if (e.length === 0) throw Error(`Number skeleton cannot be empty`);
|
|
7192
7195
|
for (var t = e.split(n.WHITE_SPACE_REGEX).filter(function(e) {
|
|
@@ -7366,7 +7369,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
7366
7369
|
}
|
|
7367
7370
|
})), gt = p(((e) => {
|
|
7368
7371
|
Object.defineProperty(e, `__esModule`, { value: !0 });
|
|
7369
|
-
var t = (R(), g(
|
|
7372
|
+
var t = (R(), g(j));
|
|
7370
7373
|
t.__exportStar(pt(), e), t.__exportStar(ht(), e);
|
|
7371
7374
|
})), _t = p(((e) => {
|
|
7372
7375
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.timeData = void 0, e.timeData = {
|
|
@@ -8554,7 +8557,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
8554
8557
|
}
|
|
8555
8558
|
})), yt = p(((e) => {
|
|
8556
8559
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.Parser = void 0;
|
|
8557
|
-
var t = (R(), g(
|
|
8560
|
+
var t = (R(), g(j)), n = dt(), r = z(), i = ft(), a = gt(), o = vt(), s = RegExp(`^${i.SPACE_SEPARATOR_REGEX.source}*`), c = RegExp(`${i.SPACE_SEPARATOR_REGEX.source}*\$`);
|
|
8558
8561
|
function l(e, t) {
|
|
8559
8562
|
return {
|
|
8560
8563
|
start: e,
|
|
@@ -8614,7 +8617,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
8614
8617
|
} else C = function(e, t) {
|
|
8615
8618
|
for (var n = [];;) {
|
|
8616
8619
|
var r = x(e, t);
|
|
8617
|
-
if (r === void 0 ||
|
|
8620
|
+
if (r === void 0 || ae(r) || E(r)) break;
|
|
8618
8621
|
n.push(r), t += r >= 65536 ? 2 : 1;
|
|
8619
8622
|
}
|
|
8620
8623
|
return y.apply(void 0, n);
|
|
@@ -8693,7 +8696,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
8693
8696
|
} else return this.error(n.ErrorKind.INVALID_TAG, l(i, this.clonePosition()));
|
|
8694
8697
|
}, e.prototype.parseTagName = function() {
|
|
8695
8698
|
var e = this.offset();
|
|
8696
|
-
for (this.bump(); !this.isEOF() &&
|
|
8699
|
+
for (this.bump(); !this.isEOF() && ie(this.char());) this.bump();
|
|
8697
8700
|
return this.message.slice(e, this.offset());
|
|
8698
8701
|
}, e.prototype.parseLiteral = function(e, t) {
|
|
8699
8702
|
for (var n = this.clonePosition(), i = ``;;) {
|
|
@@ -9021,7 +9024,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
9021
9024
|
if (this.bump(), this.isEOF()) break;
|
|
9022
9025
|
}
|
|
9023
9026
|
}, e.prototype.bumpSpace = function() {
|
|
9024
|
-
for (; !this.isEOF() &&
|
|
9027
|
+
for (; !this.isEOF() && ae(this.char());) this.bump();
|
|
9025
9028
|
}, e.prototype.peek = function() {
|
|
9026
9029
|
if (this.isEOF()) return null;
|
|
9027
9030
|
var e = this.char(), t = this.offset();
|
|
@@ -9034,18 +9037,18 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
9034
9037
|
function re(e) {
|
|
9035
9038
|
return T(e) || e === 47;
|
|
9036
9039
|
}
|
|
9037
|
-
function
|
|
9040
|
+
function ie(e) {
|
|
9038
9041
|
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;
|
|
9039
9042
|
}
|
|
9040
|
-
function
|
|
9043
|
+
function ae(e) {
|
|
9041
9044
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
9042
9045
|
}
|
|
9043
|
-
function
|
|
9046
|
+
function E(e) {
|
|
9044
9047
|
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;
|
|
9045
9048
|
}
|
|
9046
9049
|
})), bt = p(((e) => {
|
|
9047
9050
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.hoistSelectors = s, e.isStructurallySame = l;
|
|
9048
|
-
var t = (R(), g(
|
|
9051
|
+
var t = (R(), g(j)), n = z();
|
|
9049
9052
|
function r(e) {
|
|
9050
9053
|
return Array.isArray(e) ? t.__spreadArray([], e.map(r), !0) : typeof e == `object` && e ? Object.keys(e).reduce(function(t, n) {
|
|
9051
9054
|
return t[n] = r(e[n]), t;
|
|
@@ -9104,7 +9107,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
9104
9107
|
}
|
|
9105
9108
|
})), xt = p(((e) => {
|
|
9106
9109
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.isStructurallySame = e._Parser = void 0, e.parse = o;
|
|
9107
|
-
var t = (R(), g(
|
|
9110
|
+
var t = (R(), g(j)), n = dt(), r = yt(), i = z();
|
|
9108
9111
|
function a(e) {
|
|
9109
9112
|
e.forEach(function(e) {
|
|
9110
9113
|
if (delete e.location, (0, i.isSelectElement)(e) || (0, i.isPluralElement)(e)) for (var t in e.options) delete e.options[t].location, a(e.options[t].value);
|
|
@@ -9133,7 +9136,7 @@ var st, F, I, ct, L, lt, ut, R = f((() => {
|
|
|
9133
9136
|
});
|
|
9134
9137
|
})), St = p(((e) => {
|
|
9135
9138
|
Object.defineProperty(e, `__esModule`, { value: !0 }), e.printAST = r;
|
|
9136
|
-
var t = (R(), g(
|
|
9139
|
+
var t = (R(), g(j)), n = z();
|
|
9137
9140
|
function r(e) {
|
|
9138
9141
|
return i(e, !1);
|
|
9139
9142
|
}
|
|
@@ -9214,7 +9217,7 @@ function Tt(e) {
|
|
|
9214
9217
|
return wt.includes(e);
|
|
9215
9218
|
}
|
|
9216
9219
|
function Et(e, t = wt, n = [`en`]) {
|
|
9217
|
-
let r =
|
|
9220
|
+
let r = Ne(n).select(e), i = Math.abs(e);
|
|
9218
9221
|
if (i === 0 && t.includes(`zero`)) return `zero`;
|
|
9219
9222
|
if (i === 1) {
|
|
9220
9223
|
if (t.includes(`singular`)) return `singular`;
|
|
@@ -9240,7 +9243,8 @@ function Ot(e) {
|
|
|
9240
9243
|
const U = `_gt_`;
|
|
9241
9244
|
RegExp(`^${U}\\d+$`);
|
|
9242
9245
|
RegExp(`^${U}$`);
|
|
9243
|
-
|
|
9246
|
+
RegExp(`${U}\\d+`);
|
|
9247
|
+
function Ht(e, n = 0) {
|
|
9244
9248
|
let r = n, a = (e) => {
|
|
9245
9249
|
let { type: t, props: n } = e;
|
|
9246
9250
|
r += 1;
|
|
@@ -9254,11 +9258,11 @@ function Vt(e, n = 0) {
|
|
|
9254
9258
|
if (a) {
|
|
9255
9259
|
let e = a.split(`-`);
|
|
9256
9260
|
if ((e[1] === `automatic` || e[2] === `automatic`) && (i.injectionType = `automatic`), e[0] === `translate` && (e[0] = `fragment`), e[0] === `variable` && (i.variableType = e?.[1] || `variable`), e[0] === `plural`) {
|
|
9257
|
-
let e = Object.entries(n).reduce((e, [t, n]) => (Tt(t) && (e[t] =
|
|
9261
|
+
let e = Object.entries(n).reduce((e, [t, n]) => (Tt(t) && (e[t] = Ht(n, r)), e), {});
|
|
9258
9262
|
Object.keys(e).length && (i.branches = e);
|
|
9259
9263
|
}
|
|
9260
9264
|
if (e[0] === `branch`) {
|
|
9261
|
-
let { children: e, branch: t, ...a } = n, o = Object.fromEntries(Object.entries(a).filter(([e]) => !e.startsWith(`data-`))), s = Object.entries(o).reduce((e, [t, n]) => (e[t] =
|
|
9265
|
+
let { children: e, branch: t, ...a } = n, o = Object.fromEntries(Object.entries(a).filter(([e]) => !e.startsWith(`data-`))), s = Object.entries(o).reduce((e, [t, n]) => (e[t] = Ht(n, r), e), {});
|
|
9262
9266
|
Object.keys(s).length && (i.branches = s);
|
|
9263
9267
|
}
|
|
9264
9268
|
i.transformation = e[0];
|
|
@@ -9280,10 +9284,10 @@ function Vt(e, n = 0) {
|
|
|
9280
9284
|
}
|
|
9281
9285
|
return c(e);
|
|
9282
9286
|
}
|
|
9283
|
-
const
|
|
9287
|
+
const Ut = `@generaltranslation/react-core`;
|
|
9284
9288
|
function W(e) {
|
|
9285
9289
|
return S({
|
|
9286
|
-
source:
|
|
9290
|
+
source: Ut,
|
|
9287
9291
|
...e
|
|
9288
9292
|
});
|
|
9289
9293
|
}
|
|
@@ -9330,12 +9334,12 @@ W({
|
|
|
9330
9334
|
whatHappened: `No dictionary was found`,
|
|
9331
9335
|
fix: `Pass a dictionary to <GTProvider> or configure a dictionary loader before rendering translations`
|
|
9332
9336
|
});
|
|
9333
|
-
const
|
|
9334
|
-
function
|
|
9337
|
+
const qt = `${Ut} Warning: A <_T> component was found injected outside of a <Derive> boundary. This may affect translation resolution for this component.`;
|
|
9338
|
+
function Jt(e) {
|
|
9335
9339
|
return K(e, 0);
|
|
9336
9340
|
}
|
|
9337
|
-
function
|
|
9338
|
-
let { type: n, props: i } = e, a =
|
|
9341
|
+
function Yt(e, t) {
|
|
9342
|
+
let { type: n, props: i } = e, a = Xt(n);
|
|
9339
9343
|
if (typeof i != `object` || !i) return e;
|
|
9340
9344
|
if (a) {
|
|
9341
9345
|
let { componentType: n, injectionType: o } = a;
|
|
@@ -9347,7 +9351,7 @@ function Jt(e, t) {
|
|
|
9347
9351
|
...`children` in i && { children: K(i.children, t + 1) }
|
|
9348
9352
|
});
|
|
9349
9353
|
if (n === `translate` && o === `automatic` && t > 0) return `children` in i ? K(i.children, t) : void 0;
|
|
9350
|
-
n === `translate` && o === `automatic` && console.warn(
|
|
9354
|
+
n === `translate` && o === `automatic` && console.warn(qt);
|
|
9351
9355
|
}
|
|
9352
9356
|
return (0, react.cloneElement)(e, {
|
|
9353
9357
|
...i,
|
|
@@ -9355,12 +9359,12 @@ function Jt(e, t) {
|
|
|
9355
9359
|
});
|
|
9356
9360
|
}
|
|
9357
9361
|
function G(e, t) {
|
|
9358
|
-
return (0, react.isValidElement)(e) ?
|
|
9362
|
+
return (0, react.isValidElement)(e) ? Yt(e, t) : e;
|
|
9359
9363
|
}
|
|
9360
9364
|
function K(e, t) {
|
|
9361
9365
|
return Array.isArray(e) ? react.Children.map(e, (e) => G(e, t)) : G(e, t);
|
|
9362
9366
|
}
|
|
9363
|
-
function
|
|
9367
|
+
function Xt(e) {
|
|
9364
9368
|
let t = typeof e == `function` && `_gtt` in e ? e._gtt : void 0;
|
|
9365
9369
|
if (t == null || typeof t != `string`) return;
|
|
9366
9370
|
let n = t.split(`-`);
|
|
@@ -9369,27 +9373,27 @@ function Yt(e) {
|
|
|
9369
9373
|
injectionType: n[1] === `automatic` || n[2] === `automatic` ? `automatic` : `manual`
|
|
9370
9374
|
};
|
|
9371
9375
|
}
|
|
9372
|
-
const
|
|
9376
|
+
const Zt = {
|
|
9373
9377
|
variable: `value`,
|
|
9374
9378
|
number: `n`,
|
|
9375
9379
|
datetime: `date`,
|
|
9376
9380
|
currency: `cost`,
|
|
9377
9381
|
"relative-time": `time`
|
|
9378
9382
|
};
|
|
9379
|
-
function
|
|
9380
|
-
return typeof e.name == `string` ? e.name : `_gt_${
|
|
9383
|
+
function Qt(e = {}, t) {
|
|
9384
|
+
return typeof e.name == `string` ? e.name : `_gt_${Zt[t] || `value`}_${e[`data-_gt`]?.id}`;
|
|
9381
9385
|
}
|
|
9382
|
-
function
|
|
9386
|
+
function $t(e) {
|
|
9383
9387
|
return react.default.isValidElement(e);
|
|
9384
9388
|
}
|
|
9385
|
-
const
|
|
9389
|
+
const en = {
|
|
9386
9390
|
pl: `placeholder`,
|
|
9387
9391
|
ti: `title`,
|
|
9388
9392
|
alt: `alt`,
|
|
9389
9393
|
arl: `aria-label`,
|
|
9390
9394
|
arb: `aria-labelledby`,
|
|
9391
9395
|
ard: `aria-describedby`
|
|
9392
|
-
},
|
|
9396
|
+
}, tn = (e) => {
|
|
9393
9397
|
if (!e) return ``;
|
|
9394
9398
|
let { type: t, props: n } = e;
|
|
9395
9399
|
if (t && typeof t == `function`) {
|
|
@@ -9397,8 +9401,8 @@ const $t = {
|
|
|
9397
9401
|
if (`name` in t && typeof t.name == `string` && t.name) return t.name;
|
|
9398
9402
|
}
|
|
9399
9403
|
return t && typeof t == `string` ? t : n.href ? `a` : n[`data-_gt`]?.id ? `C${n[`data-_gt`].id}` : `function`;
|
|
9400
|
-
},
|
|
9401
|
-
let r = Object.entries(
|
|
9404
|
+
}, nn = (e, t, n) => {
|
|
9405
|
+
let r = Object.entries(en).reduce((e, [n, r]) => {
|
|
9402
9406
|
let i = t[r];
|
|
9403
9407
|
return typeof i == `string` && (e[n] = i), e;
|
|
9404
9408
|
}, {});
|
|
@@ -9423,20 +9427,20 @@ const $t = {
|
|
|
9423
9427
|
};
|
|
9424
9428
|
}
|
|
9425
9429
|
return Object.keys(r).length ? r : void 0;
|
|
9426
|
-
},
|
|
9427
|
-
let { props: t } = e, n = { t:
|
|
9430
|
+
}, rn = (e) => {
|
|
9431
|
+
let { props: t } = e, n = { t: tn(e) };
|
|
9428
9432
|
if (t[`data-_gt`]) {
|
|
9429
9433
|
let e = t[`data-_gt`], r = e.transformation;
|
|
9430
9434
|
if (r === `variable`) {
|
|
9431
|
-
let n = e.variableType || `variable`, r =
|
|
9435
|
+
let n = e.variableType || `variable`, r = Qt(t, n), i = Ot(n);
|
|
9432
9436
|
return {
|
|
9433
9437
|
i: e.id,
|
|
9434
9438
|
k: r,
|
|
9435
9439
|
v: i
|
|
9436
9440
|
};
|
|
9437
9441
|
}
|
|
9438
|
-
n.i = e.id, n.d =
|
|
9439
|
-
let i = Object.entries(
|
|
9442
|
+
n.i = e.id, n.d = nn(r, t, e.branches);
|
|
9443
|
+
let i = Object.entries(en).reduce((e, [n, r]) => {
|
|
9440
9444
|
let i = t[r];
|
|
9441
9445
|
return typeof i == `string` && (e[n] = i), e;
|
|
9442
9446
|
}, {});
|
|
@@ -9463,21 +9467,21 @@ const $t = {
|
|
|
9463
9467
|
n.d = Object.keys(i).length ? i : void 0;
|
|
9464
9468
|
}
|
|
9465
9469
|
return t.children && (n.c = q(t.children)), n;
|
|
9466
|
-
},
|
|
9470
|
+
}, an = (e) => $t(e) ? rn(e) : typeof e == `number` ? e.toString() : e;
|
|
9467
9471
|
function q(e) {
|
|
9468
|
-
return Array.isArray(e) ? e.map(
|
|
9472
|
+
return Array.isArray(e) ? e.map(an) : an(e);
|
|
9469
9473
|
}
|
|
9470
9474
|
function J(e, t, n) {
|
|
9471
9475
|
let r = ``, i = null;
|
|
9472
9476
|
return typeof e == `number` && !i && n && (r = Et(e, Object.keys(n).filter(Tt), t)), r && !i && (i = n[r]), i;
|
|
9473
9477
|
}
|
|
9474
|
-
function
|
|
9478
|
+
function sn(e) {
|
|
9475
9479
|
return typeof e == `object` && !!e && `data-_gt` in e && typeof e[`data-_gt`] == `object` && !!e[`data-_gt`] && `transformation` in e[`data-_gt`] && e[`data-_gt`]?.transformation === `variable`;
|
|
9476
9480
|
}
|
|
9477
|
-
function
|
|
9481
|
+
function cn(e) {
|
|
9478
9482
|
let t = e[`data-_gt`]?.variableType || `variable`;
|
|
9479
9483
|
return {
|
|
9480
|
-
variableName:
|
|
9484
|
+
variableName: Qt(e, t),
|
|
9481
9485
|
variableType: Ot(t),
|
|
9482
9486
|
injectionType: e[`data-_gt`]?.injectionType || `manual`,
|
|
9483
9487
|
variableValue: (() => {
|
|
@@ -9497,14 +9501,14 @@ function sn(e) {
|
|
|
9497
9501
|
})()
|
|
9498
9502
|
};
|
|
9499
9503
|
}
|
|
9500
|
-
function
|
|
9504
|
+
function un(e) {
|
|
9501
9505
|
return e && e.props && e.props[`data-_gt`] ? e.props[`data-_gt`] : null;
|
|
9502
9506
|
}
|
|
9503
9507
|
function Z({ children: e, defaultLocale: n = `en`, renderVariable: r }) {
|
|
9504
9508
|
let i = (e) => {
|
|
9505
|
-
let i =
|
|
9506
|
-
if (
|
|
9507
|
-
let { variableType: t, variableValue: i, variableOptions: a, injectionType: o } =
|
|
9509
|
+
let i = un(e);
|
|
9510
|
+
if (sn(e.props)) {
|
|
9511
|
+
let { variableType: t, variableValue: i, variableOptions: a, injectionType: o } = cn(e.props);
|
|
9508
9512
|
return r({
|
|
9509
9513
|
variableType: t,
|
|
9510
9514
|
variableValue: i,
|
|
@@ -9537,9 +9541,9 @@ function Z({ children: e, defaultLocale: n = `en`, renderVariable: r }) {
|
|
|
9537
9541
|
}, a = (e) => react.default.isValidElement(e) ? i(e) : e, o = (e) => Array.isArray(e) ? react.default.Children.map(e, a) : a(e);
|
|
9538
9542
|
return o(e);
|
|
9539
9543
|
}
|
|
9540
|
-
function
|
|
9544
|
+
function dn({ sourceElement: e, targetElement: n, locales: r = [`en`], renderVariable: i }) {
|
|
9541
9545
|
let { props: a } = e, o = a[`data-_gt`], s = o?.transformation, c = n.d, l = {};
|
|
9542
|
-
if (c && Object.entries(
|
|
9546
|
+
if (c && Object.entries(en).forEach(([e, t]) => {
|
|
9543
9547
|
c[e] && (l[t] = c[e]);
|
|
9544
9548
|
}), s === `plural`) {
|
|
9545
9549
|
let t = e.props.n;
|
|
@@ -9598,18 +9602,18 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
|
|
|
9598
9602
|
if (typeof n == `string`) return n;
|
|
9599
9603
|
if (Array.isArray(n) && !Array.isArray(e) && e && (e = [e]), Array.isArray(e) && Array.isArray(n)) {
|
|
9600
9604
|
let a = {}, o = {}, c = {}, l = e.filter((e) => {
|
|
9601
|
-
if (react.default.isValidElement(e)) if (
|
|
9602
|
-
let { variableName: t, variableValue: n, variableOptions: r, injectionType: i } =
|
|
9605
|
+
if (react.default.isValidElement(e)) if (sn(e.props)) {
|
|
9606
|
+
let { variableName: t, variableValue: n, variableOptions: r, injectionType: i } = cn(e.props);
|
|
9603
9607
|
a[t] = n, o[t] = r, c[t] = i;
|
|
9604
9608
|
} else return !0;
|
|
9605
9609
|
return !1;
|
|
9606
9610
|
}), u = (e) => l.find((t) => {
|
|
9607
|
-
let n =
|
|
9611
|
+
let n = un(t);
|
|
9608
9612
|
return n?.id === void 0 ? !1 : n.id === e.i;
|
|
9609
9613
|
}) || l.shift();
|
|
9610
9614
|
return n.map((e, n) => {
|
|
9611
9615
|
if (typeof e == `string`) return (0, react_jsx_runtime.jsx)(react.default.Fragment, { children: e }, `string_${n}`);
|
|
9612
|
-
if (
|
|
9616
|
+
if (ie(e)) return (0, react_jsx_runtime.jsx)(react.default.Fragment, { children: i({
|
|
9613
9617
|
variableType: e.v || `v`,
|
|
9614
9618
|
variableValue: a[e.k],
|
|
9615
9619
|
variableOptions: o[e.k],
|
|
@@ -9617,7 +9621,7 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
|
|
|
9617
9621
|
injectionType: c[e.k] || `manual`
|
|
9618
9622
|
}) }, `var_${n}`);
|
|
9619
9623
|
let l = u(e);
|
|
9620
|
-
return l ? (0, react_jsx_runtime.jsx)(react.default.Fragment, { children:
|
|
9624
|
+
return l ? (0, react_jsx_runtime.jsx)(react.default.Fragment, { children: dn({
|
|
9621
9625
|
sourceElement: l,
|
|
9622
9626
|
targetElement: e,
|
|
9623
9627
|
locales: r,
|
|
@@ -9626,16 +9630,16 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
|
|
|
9626
9630
|
});
|
|
9627
9631
|
}
|
|
9628
9632
|
if (n && typeof n == `object` && !Array.isArray(n)) {
|
|
9629
|
-
let a =
|
|
9633
|
+
let a = ie(n) ? `variable` : `element`;
|
|
9630
9634
|
if (react.default.isValidElement(e)) {
|
|
9631
|
-
if (a === `element`) return
|
|
9635
|
+
if (a === `element`) return dn({
|
|
9632
9636
|
sourceElement: e,
|
|
9633
9637
|
targetElement: n,
|
|
9634
9638
|
locales: r,
|
|
9635
9639
|
renderVariable: i
|
|
9636
9640
|
});
|
|
9637
|
-
if (
|
|
9638
|
-
let { variableValue: t, variableOptions: n, variableType: a, injectionType: o } =
|
|
9641
|
+
if (sn(e.props)) {
|
|
9642
|
+
let { variableValue: t, variableOptions: n, variableType: a, injectionType: o } = cn(e.props);
|
|
9639
9643
|
return i({
|
|
9640
9644
|
variableType: a,
|
|
9641
9645
|
variableValue: t,
|
|
@@ -9652,15 +9656,15 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
|
|
|
9652
9656
|
renderVariable: i
|
|
9653
9657
|
});
|
|
9654
9658
|
}
|
|
9655
|
-
const
|
|
9659
|
+
const mn = `generaltranslation.locale`;
|
|
9656
9660
|
react.use;
|
|
9657
|
-
function
|
|
9661
|
+
function Yn({ children: e }) {
|
|
9658
9662
|
return e;
|
|
9659
9663
|
}
|
|
9660
|
-
function
|
|
9661
|
-
return
|
|
9664
|
+
function Xn(e) {
|
|
9665
|
+
return Yn(e);
|
|
9662
9666
|
}
|
|
9663
|
-
|
|
9667
|
+
Yn._gtt = `derive`, Xn._gtt = `derive`;
|
|
9664
9668
|
//#endregion
|
|
9665
9669
|
//#region src/shared/cookies.ts
|
|
9666
9670
|
/**
|
|
@@ -9691,7 +9695,7 @@ function setCookieValue(cookieName, value) {
|
|
|
9691
9695
|
* @returns The determined locale
|
|
9692
9696
|
*
|
|
9693
9697
|
*/
|
|
9694
|
-
function determineLocale({ defaultLocale, locales, customMapping, localeCookieName =
|
|
9698
|
+
function determineLocale({ defaultLocale, locales, customMapping, localeCookieName = mn, getLocale }) {
|
|
9695
9699
|
const localeConfig = {
|
|
9696
9700
|
defaultLocale,
|
|
9697
9701
|
locales,
|
|
@@ -9726,7 +9730,7 @@ var BrowserConditionStore = class {
|
|
|
9726
9730
|
/**
|
|
9727
9731
|
* @param {BrowserConditionStoreConstructorParams} params - The configuration for the BrowserConditionStore
|
|
9728
9732
|
*/
|
|
9729
|
-
constructor({ getLocale, localeCookieName =
|
|
9733
|
+
constructor({ getLocale, localeCookieName = mn, ...localeConfig } = {}) {
|
|
9730
9734
|
this.localeConfig = localeConfig;
|
|
9731
9735
|
this.customGetLocale = getLocale;
|
|
9732
9736
|
this.localeCookieName = localeCookieName;
|
|
@@ -10471,7 +10475,7 @@ GtInternalTranslateJsx._gtt = "translate-client-automatic";
|
|
|
10471
10475
|
* Implementation for the T component logic
|
|
10472
10476
|
*/
|
|
10473
10477
|
function useComputeT({ children: sourceChildren, ...params }) {
|
|
10474
|
-
const taggedSourceChildren = (0, react.useMemo)(() =>
|
|
10478
|
+
const taggedSourceChildren = (0, react.useMemo)(() => Ht(Jt(sourceChildren)), [sourceChildren]);
|
|
10475
10479
|
const sourceJsxChildren = (0, react.useMemo)(() => q(taggedSourceChildren), [taggedSourceChildren]);
|
|
10476
10480
|
const renderSourceChildren = () => Z({
|
|
10477
10481
|
children: taggedSourceChildren,
|