gt-react 10.19.16 → 10.19.18

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/dist/internal.cjs CHANGED
@@ -48,57 +48,90 @@ function _(e, t) {
48
48
  function v(e, t, n) {
49
49
  e[t] = n;
50
50
  }
51
- const y = (e) => `Duplicate key found in dictionary: "${e}"`;
52
- function b(e, t = ``) {
51
+ const ee = (e) => `Duplicate key found in dictionary: "${e}"`;
52
+ function y(e, t = ``) {
53
53
  let n = {};
54
54
  for (let r in e) if (e.hasOwnProperty(r)) {
55
55
  let i = t ? `${t}.${r}` : r;
56
56
  if (typeof _(e, r) == `object` && _(e, r) !== null && !Array.isArray(_(e, r))) {
57
- let t = b(_(e, r), i);
57
+ let t = y(_(e, r), i);
58
58
  for (let e in t) {
59
- if (n.hasOwnProperty(e)) throw Error(y(e));
59
+ if (n.hasOwnProperty(e)) throw Error(ee(e));
60
60
  n[e] = t[e];
61
61
  }
62
62
  } else {
63
- if (n.hasOwnProperty(i)) throw Error(y(i));
63
+ if (n.hasOwnProperty(i)) throw Error(ee(i));
64
64
  n[i] = _(e, r);
65
65
  }
66
66
  }
67
67
  return n;
68
68
  }
69
- function ee(e) {
69
+ function b(e) {
70
+ let t = e.trim();
71
+ return t ? /[.!?)]$/.test(t) ? t : `${t}.` : ``;
72
+ }
73
+ function x(e) {
74
+ let t = e.trim(), n = t.length;
75
+ for (; n > 0;) {
76
+ let e = t[n - 1];
77
+ if (e !== `.` && e !== `!` && e !== `?`) break;
78
+ --n;
79
+ }
80
+ return t.slice(0, n);
81
+ }
82
+ function te(e) {
83
+ return e.replace(/^[A-Z][a-z]/, (e) => e.toLowerCase());
84
+ }
85
+ function ne(e) {
86
+ if (!e) return ``;
87
+ let t = Array.isArray(e) ? e.join(`, `) : e;
88
+ return t.trim() ? b(`Details: ${t}`) : ``;
89
+ }
90
+ function S({ source: e, severity: t, whatHappened: n, reassurance: r, why: i, fix: a, wayOut: o, details: s, docsUrl: c }) {
91
+ let l = e ? t ? `${e} ${t}:` : `${e}:` : t ? `${t}:` : ``, u = i ? `${x(n)} because ${te(x(i))}` : n, d = !!a && !!o && /^[a-z]/.test(x(o)), f = [
92
+ u,
93
+ r,
94
+ d ? `${x(a)}, or ${te(x(o))}` : a,
95
+ d ? void 0 : o,
96
+ ne(s)
97
+ ].filter((e) => !!e).map(b);
98
+ c && f.push(`Learn more: ${c}`);
99
+ let p = f.join(` `);
100
+ return l ? `${l} ${p}` : p;
101
+ }
102
+ function C(e) {
70
103
  if (typeof Buffer < `u`) return Buffer.from(e, `utf8`).toString(`base64`);
71
104
  let t = new TextEncoder().encode(e), n = ``;
72
105
  for (let e = 0; e < t.length; e++) n += String.fromCharCode(t[e]);
73
106
  return btoa(n);
74
107
  }
75
- function x(e) {
108
+ function w(e) {
76
109
  if (typeof Buffer < `u`) return Buffer.from(e, `base64`).toString(`utf8`);
77
110
  let t = atob(e), n = new Uint8Array(t.length);
78
111
  for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
79
112
  return new TextDecoder().decode(n);
80
113
  }
81
- function S(e) {
114
+ function T(e) {
82
115
  if (e === void 0) return;
83
116
  if (e === null) return `null`;
84
117
  if (typeof e == `number`) return isFinite(e) ? `` + e : `null`;
85
118
  if (typeof e != `object`) return JSON.stringify(e);
86
119
  if (Array.isArray(e)) {
87
120
  let t = `[`;
88
- for (let n = 0; n < e.length; n++) n && (t += `,`), t += S(e[n]) || `null`;
121
+ for (let n = 0; n < e.length; n++) n && (t += `,`), t += T(e[n]) || `null`;
89
122
  return t + `]`;
90
123
  }
91
124
  let t = Object.keys(e).sort(), n = ``;
92
125
  for (let r of t) {
93
- let t = S(e[r]);
126
+ let t = T(e[r]);
94
127
  t && (n && (n += `,`), n += JSON.stringify(r) + `:` + t);
95
128
  }
96
129
  return `{` + n + `}`;
97
130
  }
98
- function te(e) {
99
- return S(e) ?? ``;
131
+ function re(e) {
132
+ return T(e) ?? ``;
100
133
  }
101
- function C(e) {
134
+ function E(e) {
102
135
  let t = e;
103
136
  if (t && typeof t == `object` && typeof t.k == `string`) {
104
137
  let e = Object.keys(t);
@@ -106,52 +139,52 @@ function C(e) {
106
139
  }
107
140
  return !1;
108
141
  }
109
- function w(e) {
142
+ function ie(e) {
110
143
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === `Uint8Array` && `BYTES_PER_ELEMENT` in e && e.BYTES_PER_ELEMENT === 1;
111
144
  }
112
- function T(e, t, n = ``) {
113
- let r = w(e), i = e?.length, a = t !== void 0;
145
+ function D(e, t, n = ``) {
146
+ let r = ie(e), i = e?.length, a = t !== void 0;
114
147
  if (!r || a && i !== t) {
115
148
  let o = n && `"${n}" `, s = a ? ` of length ${t}` : ``, c = r ? `length=${i}` : `type=${typeof e}`, l = o + `expected Uint8Array` + s + `, got ` + c;
116
149
  throw r ? RangeError(l) : TypeError(l);
117
150
  }
118
151
  return e;
119
152
  }
120
- function E(e, t = !0) {
153
+ function ae(e, t = !0) {
121
154
  if (e.destroyed) throw Error(`Hash instance has been destroyed`);
122
155
  if (t && e.finished) throw Error(`Hash#digest() has already been called`);
123
156
  }
124
- function D(e, t) {
125
- T(e, void 0, `digestInto() output`);
157
+ function oe(e, t) {
158
+ D(e, void 0, `digestInto() output`);
126
159
  let n = t.outputLen;
127
160
  if (e.length < n) throw RangeError(`"digestInto() output" expected to be of length >=` + n);
128
161
  }
129
- function O(...e) {
162
+ function se(...e) {
130
163
  for (let t = 0; t < e.length; t++) e[t].fill(0);
131
164
  }
132
- function k(e) {
165
+ function ce(e) {
133
166
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
134
167
  }
135
- function A(e, t) {
168
+ function O(e, t) {
136
169
  return e << 32 - t | e >>> t;
137
170
  }
138
171
  new Uint8Array(new Uint32Array([287454020]).buffer)[0];
139
- const ne = typeof Uint8Array.from([]).toHex == `function` && typeof Uint8Array.fromHex == `function`, re = Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, `0`));
140
- function ie(e) {
141
- if (T(e), ne) return e.toHex();
172
+ const le = typeof Uint8Array.from([]).toHex == `function` && typeof Uint8Array.fromHex == `function`, ue = Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, `0`));
173
+ function de(e) {
174
+ if (D(e), le) return e.toHex();
142
175
  let t = ``;
143
- for (let n = 0; n < e.length; n++) t += re[e[n]];
176
+ for (let n = 0; n < e.length; n++) t += ue[e[n]];
144
177
  return t;
145
178
  }
146
- function ae(e) {
179
+ function fe(e) {
147
180
  if (typeof e != `string`) throw TypeError(`string expected`);
148
181
  return new Uint8Array(new TextEncoder().encode(e));
149
182
  }
150
- function oe(e, t = {}) {
183
+ function pe(e, t = {}) {
151
184
  let n = (t, n) => e(n).update(t).digest(), r = e(void 0);
152
185
  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);
153
186
  }
154
- const se = (e) => ({ oid: Uint8Array.from([
187
+ const me = (e) => ({ oid: Uint8Array.from([
155
188
  6,
156
189
  9,
157
190
  96,
@@ -164,13 +197,13 @@ const se = (e) => ({ oid: Uint8Array.from([
164
197
  2,
165
198
  e
166
199
  ]) });
167
- function ce(e, t, n) {
200
+ function he(e, t, n) {
168
201
  return e & t ^ ~e & n;
169
202
  }
170
- function le(e, t, n) {
203
+ function ge(e, t, n) {
171
204
  return e & t ^ e & n ^ t & n;
172
205
  }
173
- var ue = class {
206
+ var _e = class {
174
207
  blockLen;
175
208
  outputLen;
176
209
  canXOF = !1;
@@ -183,15 +216,15 @@ var ue = class {
183
216
  pos = 0;
184
217
  destroyed = !1;
185
218
  constructor(e, t, n, r) {
186
- this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = k(this.buffer);
219
+ this.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = ce(this.buffer);
187
220
  }
188
221
  update(e) {
189
- E(this), T(e);
222
+ ae(this), D(e);
190
223
  let { view: t, buffer: n, blockLen: r } = this, i = e.length;
191
224
  for (let a = 0; a < i;) {
192
225
  let o = Math.min(r - this.pos, i - a);
193
226
  if (o === r) {
194
- let t = k(e);
227
+ let t = ce(e);
195
228
  for (; r <= i - a; a += r) this.process(t, a);
196
229
  continue;
197
230
  }
@@ -200,12 +233,12 @@ var ue = class {
200
233
  return this.length += e.length, this.roundClean(), this;
201
234
  }
202
235
  digestInto(e) {
203
- E(this), D(e, this), this.finished = !0;
236
+ ae(this), oe(e, this), this.finished = !0;
204
237
  let { buffer: t, view: n, blockLen: r, isLE: i } = this, { pos: a } = this;
205
- t[a++] = 128, O(this.buffer.subarray(a)), this.padOffset > r - a && (this.process(n, 0), a = 0);
238
+ t[a++] = 128, se(this.buffer.subarray(a)), this.padOffset > r - a && (this.process(n, 0), a = 0);
206
239
  for (let e = a; e < r; e++) t[e] = 0;
207
240
  n.setBigUint64(r - 8, BigInt(this.length * 8), i), this.process(n, 0);
208
- let o = k(e), s = this.outputLen;
241
+ let o = ce(e), s = this.outputLen;
209
242
  if (s % 4) throw Error(`_sha2: outputLen must be aligned to 32bit`);
210
243
  let c = s / 4, l = this.get();
211
244
  if (c > l.length) throw Error(`_sha2: outputLen bigger than state`);
@@ -226,7 +259,7 @@ var ue = class {
226
259
  return this._cloneInto();
227
260
  }
228
261
  };
229
- const j = Uint32Array.from([
262
+ const k = Uint32Array.from([
230
263
  1779033703,
231
264
  3144134277,
232
265
  1013904242,
@@ -235,25 +268,25 @@ const j = Uint32Array.from([
235
268
  2600822924,
236
269
  528734635,
237
270
  1541459225
238
- ]), M = BigInt(2 ** 32 - 1), de = BigInt(32);
239
- function fe(e, t = !1) {
271
+ ]), A = BigInt(2 ** 32 - 1), ve = BigInt(32);
272
+ function ye(e, t = !1) {
240
273
  return t ? {
241
- h: Number(e & M),
242
- l: Number(e >> de & M)
274
+ h: Number(e & A),
275
+ l: Number(e >> ve & A)
243
276
  } : {
244
- h: Number(e >> de & M) | 0,
245
- l: Number(e & M) | 0
277
+ h: Number(e >> ve & A) | 0,
278
+ l: Number(e & A) | 0
246
279
  };
247
280
  }
248
- function pe(e, t = !1) {
281
+ function be(e, t = !1) {
249
282
  let n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);
250
283
  for (let a = 0; a < n; a++) {
251
- let { h: n, l: o } = fe(e[a], t);
284
+ let { h: n, l: o } = ye(e[a], t);
252
285
  [r[a], i[a]] = [n, o];
253
286
  }
254
287
  return [r, i];
255
288
  }
256
- const me = Uint32Array.from([
289
+ const xe = Uint32Array.from([
257
290
  1116352408,
258
291
  1899447441,
259
292
  3049323471,
@@ -318,8 +351,8 @@ const me = Uint32Array.from([
318
351
  2756734187,
319
352
  3204031479,
320
353
  3329325298
321
- ]), N = new Uint32Array(64);
322
- var he = class extends ue {
354
+ ]), j = new Uint32Array(64);
355
+ var Se = class extends _e {
323
356
  constructor(e) {
324
357
  super(64, e, 8, !1);
325
358
  }
@@ -340,40 +373,40 @@ var he = class extends ue {
340
373
  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;
341
374
  }
342
375
  process(e, t) {
343
- for (let n = 0; n < 16; n++, t += 4) N[n] = e.getUint32(t, !1);
376
+ for (let n = 0; n < 16; n++, t += 4) j[n] = e.getUint32(t, !1);
344
377
  for (let e = 16; e < 64; e++) {
345
- let t = N[e - 15], n = N[e - 2], r = A(t, 7) ^ A(t, 18) ^ t >>> 3;
346
- N[e] = (A(n, 17) ^ A(n, 19) ^ n >>> 10) + N[e - 7] + r + N[e - 16] | 0;
378
+ let t = j[e - 15], n = j[e - 2], r = O(t, 7) ^ O(t, 18) ^ t >>> 3;
379
+ j[e] = (O(n, 17) ^ O(n, 19) ^ n >>> 10) + j[e - 7] + r + j[e - 16] | 0;
347
380
  }
348
381
  let { A: n, B: r, C: i, D: a, E: o, F: s, G: c, H: l } = this;
349
382
  for (let e = 0; e < 64; e++) {
350
- let t = A(o, 6) ^ A(o, 11) ^ A(o, 25), u = l + t + ce(o, s, c) + me[e] + N[e] | 0, d = (A(n, 2) ^ A(n, 13) ^ A(n, 22)) + le(n, r, i) | 0;
383
+ let t = O(o, 6) ^ O(o, 11) ^ O(o, 25), u = l + t + he(o, s, c) + xe[e] + j[e] | 0, d = (O(n, 2) ^ O(n, 13) ^ O(n, 22)) + ge(n, r, i) | 0;
351
384
  l = c, c = s, s = o, o = a + u | 0, a = i, i = r, r = n, n = u + d | 0;
352
385
  }
353
386
  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);
354
387
  }
355
388
  roundClean() {
356
- O(N);
389
+ se(j);
357
390
  }
358
391
  destroy() {
359
- this.destroyed = !0, this.set(0, 0, 0, 0, 0, 0, 0, 0), O(this.buffer);
360
- }
361
- }, ge = class extends he {
362
- A = j[0] | 0;
363
- B = j[1] | 0;
364
- C = j[2] | 0;
365
- D = j[3] | 0;
366
- E = j[4] | 0;
367
- F = j[5] | 0;
368
- G = j[6] | 0;
369
- H = j[7] | 0;
392
+ this.destroyed = !0, this.set(0, 0, 0, 0, 0, 0, 0, 0), se(this.buffer);
393
+ }
394
+ }, Ce = class extends Se {
395
+ A = k[0] | 0;
396
+ B = k[1] | 0;
397
+ C = k[2] | 0;
398
+ D = k[3] | 0;
399
+ E = k[4] | 0;
400
+ F = k[5] | 0;
401
+ G = k[6] | 0;
402
+ H = k[7] | 0;
370
403
  constructor() {
371
404
  super(32);
372
405
  }
373
406
  };
374
- const _e = pe(`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)));
375
- _e[0], _e[1];
376
- const ve = oe(() => new ge(), se(1)), ye = (e) => `generaltranslation Formatting Error: Invalid cutoff style: ${e}.`, be = `DEFAULT_TERMINATOR_KEY`, xe = {
407
+ const we = be(`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)));
408
+ we[0], we[1];
409
+ const Te = pe(() => new Ce(), me(1)), Ee = (e) => `generaltranslation Formatting Error: Invalid cutoff style: ${e}.`, De = `DEFAULT_TERMINATOR_KEY`, Oe = {
377
410
  ellipsis: {
378
411
  fr: {
379
412
  terminator: `…`,
@@ -387,37 +420,35 @@ const ve = oe(() => new ge(), se(1)), ye = (e) => `generaltranslation Formatting
387
420
  terminator: `……`,
388
421
  separator: void 0
389
422
  },
390
- [be]: {
423
+ [De]: {
391
424
  terminator: `…`,
392
425
  separator: void 0
393
426
  }
394
427
  },
395
- none: { [be]: {
428
+ none: { [De]: {
396
429
  terminator: void 0,
397
430
  separator: void 0
398
431
  } }
399
432
  };
400
- var Se = class {
401
- constructor(e, t = {}) {
433
+ var ke = class e {
434
+ static resolveLocale(e) {
402
435
  try {
403
- let t = e ? Array.isArray(e) ? e.map((e) => String(e)) : [String(e)] : [`en`], n = Intl.getCanonicalLocales(t);
404
- this.locale = n.length ? n[0] : `en`;
436
+ let t = e ? Array.isArray(e) ? e.map(String) : [String(e)] : [`en`], [n] = Intl.getCanonicalLocales(t);
437
+ return n ?? `en`;
405
438
  } catch {
406
- this.locale = `en`;
439
+ return `en`;
407
440
  }
408
- if (!xe[t.style ?? `ellipsis`]) throw Error(ye(t.style ?? `ellipsis`));
409
- let n, r;
410
- if (t.maxChars !== void 0) {
411
- n = t.style ?? `ellipsis`;
412
- let e = new Intl.Locale(this.locale).language;
413
- r = xe[n][e] || xe[n].DEFAULT_TERMINATOR_KEY;
414
- }
415
- let i = t.terminator ?? r?.terminator, a = i == null ? void 0 : t.separator ?? r?.separator;
416
- this.additionLength = (i?.length ?? 0) + (a?.length ?? 0), t.maxChars !== void 0 && Math.abs(t.maxChars) < this.additionLength && (i = void 0, a = void 0), this.options = {
417
- maxChars: t.maxChars,
418
- style: n,
419
- terminator: i,
420
- separator: a
441
+ }
442
+ constructor(t, n = {}) {
443
+ this.locale = e.resolveLocale(t);
444
+ let r = n.style ?? `ellipsis`;
445
+ if (!Oe[r]) throw Error(Ee(r));
446
+ let i = n.maxChars === void 0 ? void 0 : Oe[r][new Intl.Locale(this.locale).language] || Oe[r].DEFAULT_TERMINATOR_KEY, a = n.terminator ?? i?.terminator, o = a == null ? void 0 : n.separator ?? i?.separator;
447
+ 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 = {
448
+ maxChars: n.maxChars,
449
+ style: n.maxChars === void 0 ? void 0 : r,
450
+ terminator: a,
451
+ separator: o
421
452
  };
422
453
  }
423
454
  format(e) {
@@ -439,7 +470,7 @@ var Se = class {
439
470
  return this.options;
440
471
  }
441
472
  };
442
- const Ce = {
473
+ const Ae = {
443
474
  Collator: Intl.Collator,
444
475
  DateTimeFormat: Intl.DateTimeFormat,
445
476
  DisplayNames: Intl.DisplayNames,
@@ -449,83 +480,85 @@ const Ce = {
449
480
  PluralRules: Intl.PluralRules,
450
481
  RelativeTimeFormat: Intl.RelativeTimeFormat,
451
482
  Segmenter: Intl.Segmenter,
452
- CutoffFormat: Se
453
- }, we = new class {
483
+ CutoffFormat: ke
484
+ }, je = new class {
454
485
  constructor() {
455
486
  this.cache = {};
456
487
  }
457
- _generateKey(e, t = {}) {
488
+ generateKey(e, t = {}) {
458
489
  return `${e ? Array.isArray(e) ? e.map((e) => String(e)).join(`,`) : String(e) : `undefined`}:${t ? JSON.stringify(t, Object.keys(t).sort()) : `{}`}`;
459
490
  }
460
491
  get(e, ...t) {
461
- let [n = `en`, r = {}] = t, i = this._generateKey(n, r), a = this.cache[e]?.[i];
462
- return a === void 0 && (a = new Ce[e](...t), this.cache[e] || (this.cache[e] = {}), this.cache[e][i] = a), a;
492
+ let [n = `en`, r = {}] = t, i = this.generateKey(n, r), a = this.cache[e];
493
+ a === void 0 && (a = {}, this.cache[e] = a);
494
+ let o = a[i];
495
+ return o === void 0 && (o = new Ae[e](...t), a[i] = o), o;
463
496
  }
464
497
  }();
465
- function Te(e) {
466
- return we.get(`PluralRules`, e);
467
- }
468
- var P = m({
469
- __addDisposableResource: () => Ze,
470
- __assign: () => R,
471
- __asyncDelegator: () => Ue,
472
- __asyncGenerator: () => He,
473
- __asyncValues: () => We,
474
- __await: () => I,
475
- __awaiter: () => Fe,
476
- __classPrivateFieldGet: () => Je,
477
- __classPrivateFieldIn: () => Xe,
478
- __classPrivateFieldSet: () => Ye,
479
- __createBinding: () => z,
480
- __decorate: () => Oe,
481
- __disposeResources: () => Qe,
482
- __esDecorate: () => Ae,
483
- __exportStar: () => Le,
484
- __extends: () => Ee,
485
- __generator: () => Ie,
486
- __importDefault: () => qe,
487
- __importStar: () => Ke,
488
- __makeTemplateObject: () => Ge,
489
- __metadata: () => Pe,
490
- __param: () => ke,
491
- __propKey: () => Me,
492
- __read: () => Re,
493
- __rest: () => De,
494
- __rewriteRelativeImportExtension: () => $e,
495
- __runInitializers: () => je,
496
- __setFunctionName: () => Ne,
497
- __spread: () => ze,
498
- __spreadArray: () => Ve,
499
- __spreadArrays: () => Be,
500
- __values: () => F,
501
- default: () => nt
498
+ function Me(e) {
499
+ return je.get(`PluralRules`, e);
500
+ }
501
+ var M = m({
502
+ __addDisposableResource: () => it,
503
+ __assign: () => F,
504
+ __asyncDelegator: () => Xe,
505
+ __asyncGenerator: () => Ye,
506
+ __asyncValues: () => Ze,
507
+ __await: () => P,
508
+ __awaiter: () => He,
509
+ __classPrivateFieldGet: () => tt,
510
+ __classPrivateFieldIn: () => rt,
511
+ __classPrivateFieldSet: () => nt,
512
+ __createBinding: () => I,
513
+ __decorate: () => Fe,
514
+ __disposeResources: () => at,
515
+ __esDecorate: () => Le,
516
+ __exportStar: () => We,
517
+ __extends: () => Ne,
518
+ __generator: () => Ue,
519
+ __importDefault: () => et,
520
+ __importStar: () => $e,
521
+ __makeTemplateObject: () => Qe,
522
+ __metadata: () => Ve,
523
+ __param: () => Ie,
524
+ __propKey: () => ze,
525
+ __read: () => Ge,
526
+ __rest: () => Pe,
527
+ __rewriteRelativeImportExtension: () => ot,
528
+ __runInitializers: () => Re,
529
+ __setFunctionName: () => Be,
530
+ __spread: () => Ke,
531
+ __spreadArray: () => Je,
532
+ __spreadArrays: () => qe,
533
+ __values: () => N,
534
+ default: () => ut
502
535
  });
503
- function Ee(e, t) {
536
+ function Ne(e, t) {
504
537
  if (typeof t != `function` && t !== null) throw TypeError(`Class extends value ` + String(t) + ` is not a constructor or null`);
505
- L(e, t);
538
+ st(e, t);
506
539
  function n() {
507
540
  this.constructor = e;
508
541
  }
509
542
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
510
543
  }
511
- function De(e, t) {
544
+ function Pe(e, t) {
512
545
  var n = {};
513
546
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
514
547
  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]]);
515
548
  return n;
516
549
  }
517
- function Oe(e, t, n, r) {
550
+ function Fe(e, t, n, r) {
518
551
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
519
552
  if (typeof Reflect == `object` && typeof Reflect.decorate == `function`) a = Reflect.decorate(e, t, n, r);
520
553
  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);
521
554
  return i > 3 && a && Object.defineProperty(t, n, a), a;
522
555
  }
523
- function ke(e, t) {
556
+ function Ie(e, t) {
524
557
  return function(n, r) {
525
558
  t(n, r, e);
526
559
  };
527
560
  }
528
- function Ae(e, t, n, r, i, a) {
561
+ function Le(e, t, n, r, i, a) {
529
562
  function o(e) {
530
563
  if (e !== void 0 && typeof e != `function`) throw TypeError(`Function expected`);
531
564
  return e;
@@ -550,23 +583,23 @@ function Ae(e, t, n, r, i, a) {
550
583
  }
551
584
  l && Object.defineProperty(l, r.name, u), f = !0;
552
585
  }
553
- function je(e, t, n) {
586
+ function Re(e, t, n) {
554
587
  for (var r = arguments.length > 2, i = 0; i < t.length; i++) n = r ? t[i].call(e, n) : t[i].call(e);
555
588
  return r ? n : void 0;
556
589
  }
557
- function Me(e) {
590
+ function ze(e) {
558
591
  return typeof e == `symbol` ? e : `${e}`;
559
592
  }
560
- function Ne(e, t, n) {
593
+ function Be(e, t, n) {
561
594
  return typeof t == `symbol` && (t = t.description ? `[${t.description}]` : ``), Object.defineProperty(e, `name`, {
562
595
  configurable: !0,
563
596
  value: n ? `${n} ${t}` : t
564
597
  });
565
598
  }
566
- function Pe(e, t) {
599
+ function Ve(e, t) {
567
600
  if (typeof Reflect == `object` && typeof Reflect.metadata == `function`) return Reflect.metadata(e, t);
568
601
  }
569
- function Fe(e, t, n, r) {
602
+ function He(e, t, n, r) {
570
603
  function i(e) {
571
604
  return e instanceof n ? e : new n(function(t) {
572
605
  t(e);
@@ -593,7 +626,7 @@ function Fe(e, t, n, r) {
593
626
  c((r = r.apply(e, t || [])).next());
594
627
  });
595
628
  }
596
- function Ie(e, t) {
629
+ function Ue(e, t) {
597
630
  var n = {
598
631
  label: 0,
599
632
  sent: function() {
@@ -663,10 +696,10 @@ function Ie(e, t) {
663
696
  };
664
697
  }
665
698
  }
666
- function Le(e, t) {
667
- for (var n in e) n !== `default` && !Object.prototype.hasOwnProperty.call(t, n) && z(t, e, n);
699
+ function We(e, t) {
700
+ for (var n in e) n !== `default` && !Object.prototype.hasOwnProperty.call(t, n) && I(t, e, n);
668
701
  }
669
- function F(e) {
702
+ function N(e) {
670
703
  var t = typeof Symbol == `function` && Symbol.iterator, n = t && e[t], r = 0;
671
704
  if (n) return n.call(e);
672
705
  if (e && typeof e.length == `number`) return { next: function() {
@@ -677,7 +710,7 @@ function F(e) {
677
710
  } };
678
711
  throw TypeError(t ? `Object is not iterable.` : `Symbol.iterator is not defined.`);
679
712
  }
680
- function Re(e, t) {
713
+ function Ge(e, t) {
681
714
  var n = typeof Symbol == `function` && e[Symbol.iterator];
682
715
  if (!n) return e;
683
716
  var r = n.call(e), i, a = [], o;
@@ -694,23 +727,23 @@ function Re(e, t) {
694
727
  }
695
728
  return a;
696
729
  }
697
- function ze() {
698
- for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(Re(arguments[t]));
730
+ function Ke() {
731
+ for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(Ge(arguments[t]));
699
732
  return e;
700
733
  }
701
- function Be() {
734
+ function qe() {
702
735
  for (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;
703
736
  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];
704
737
  return r;
705
738
  }
706
- function Ve(e, t, n) {
739
+ function Je(e, t, n) {
707
740
  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]);
708
741
  return e.concat(a || Array.prototype.slice.call(t));
709
742
  }
710
- function I(e) {
711
- return this instanceof I ? (this.v = e, this) : new I(e);
743
+ function P(e) {
744
+ return this instanceof P ? (this.v = e, this) : new P(e);
712
745
  }
713
- function He(e, t, n) {
746
+ function Ye(e, t, n) {
714
747
  if (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);
715
748
  var r = n.apply(e, t || []), i, a = [];
716
749
  return i = Object.create((typeof AsyncIterator == `function` ? AsyncIterator : Object).prototype), s(`next`), s(`throw`), s(`return`, o), i[Symbol.asyncIterator] = function() {
@@ -741,7 +774,7 @@ function He(e, t, n) {
741
774
  }
742
775
  }
743
776
  function l(e) {
744
- e.value instanceof I ? Promise.resolve(e.value.v).then(u, d) : f(a[0][2], e);
777
+ e.value instanceof P ? Promise.resolve(e.value.v).then(u, d) : f(a[0][2], e);
745
778
  }
746
779
  function u(e) {
747
780
  c(`next`, e);
@@ -753,7 +786,7 @@ function He(e, t, n) {
753
786
  e(t), a.shift(), a.length && c(a[0][0], a[0][1]);
754
787
  }
755
788
  }
756
- function Ue(e) {
789
+ function Xe(e) {
757
790
  var t, n;
758
791
  return t = {}, r(`next`), r(`throw`, function(e) {
759
792
  throw e;
@@ -763,16 +796,16 @@ function Ue(e) {
763
796
  function r(r, i) {
764
797
  t[r] = e[r] ? function(t) {
765
798
  return (n = !n) ? {
766
- value: I(e[r](t)),
799
+ value: P(e[r](t)),
767
800
  done: !1
768
801
  } : i ? i(t) : t;
769
802
  } : i;
770
803
  }
771
804
  }
772
- function We(e) {
805
+ function Ze(e) {
773
806
  if (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);
774
807
  var t = e[Symbol.asyncIterator], n;
775
- return t ? t.call(e) : (e = typeof F == `function` ? F(e) : e[Symbol.iterator](), n = {}, r(`next`), r(`throw`), r(`return`), n[Symbol.asyncIterator] = function() {
808
+ return t ? t.call(e) : (e = typeof N == `function` ? N(e) : e[Symbol.iterator](), n = {}, r(`next`), r(`throw`), r(`return`), n[Symbol.asyncIterator] = function() {
776
809
  return this;
777
810
  }, n);
778
811
  function r(t) {
@@ -791,34 +824,34 @@ function We(e) {
791
824
  }, t);
792
825
  }
793
826
  }
794
- function Ge(e, t) {
827
+ function Qe(e, t) {
795
828
  return Object.defineProperty ? Object.defineProperty(e, `raw`, { value: t }) : e.raw = t, e;
796
829
  }
797
- function Ke(e) {
830
+ function $e(e) {
798
831
  if (e && e.__esModule) return e;
799
832
  var t = {};
800
- if (e != null) for (var n = B(e), r = 0; r < n.length; r++) n[r] !== `default` && z(t, e, n[r]);
801
- return et(t, e), t;
833
+ if (e != null) for (var n = L(e), r = 0; r < n.length; r++) n[r] !== `default` && I(t, e, n[r]);
834
+ return ct(t, e), t;
802
835
  }
803
- function qe(e) {
836
+ function et(e) {
804
837
  return e && e.__esModule ? e : { default: e };
805
838
  }
806
- function Je(e, t, n, r) {
839
+ function tt(e, t, n, r) {
807
840
  if (n === `a` && !r) throw TypeError(`Private accessor was defined without a getter`);
808
841
  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`);
809
842
  return n === `m` ? r : n === `a` ? r.call(e) : r ? r.value : t.get(e);
810
843
  }
811
- function Ye(e, t, n, r, i) {
844
+ function nt(e, t, n, r, i) {
812
845
  if (r === `m`) throw TypeError(`Private method is not writable`);
813
846
  if (r === `a` && !i) throw TypeError(`Private accessor was defined without a setter`);
814
847
  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`);
815
848
  return r === `a` ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;
816
849
  }
817
- function Xe(e, t) {
850
+ function rt(e, t) {
818
851
  if (t === null || typeof t != `object` && typeof t != `function`) throw TypeError(`Cannot use 'in' operator on non-object`);
819
852
  return typeof e == `function` ? t === e : e.has(t);
820
853
  }
821
- function Ze(e, t, n) {
854
+ function it(e, t, n) {
822
855
  if (t != null) {
823
856
  if (typeof t != `object` && typeof t != `function`) throw TypeError(`Object expected.`);
824
857
  var r, i;
@@ -845,9 +878,9 @@ function Ze(e, t, n) {
845
878
  } else n && e.stack.push({ async: !0 });
846
879
  return t;
847
880
  }
848
- function Qe(e) {
881
+ function at(e) {
849
882
  function t(t) {
850
- e.error = e.hasError ? new tt(t, e.error, `An error was suppressed during disposal.`) : t, e.hasError = !0;
883
+ e.error = e.hasError ? new lt(t, e.error, `An error was suppressed during disposal.`) : t, e.hasError = !0;
851
884
  }
852
885
  var n, r = 0;
853
886
  function i() {
@@ -867,24 +900,24 @@ function Qe(e) {
867
900
  }
868
901
  return i();
869
902
  }
870
- function $e(e, t) {
903
+ function ot(e, t) {
871
904
  return typeof e == `string` && /^\.\.?\//.test(e) ? e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(e, n, r, i, a) {
872
905
  return n ? t ? `.jsx` : `.js` : r && (!i || !a) ? e : r + i + `.` + a.toLowerCase() + `js`;
873
906
  }) : e;
874
907
  }
875
- var L, R, z, et, B, tt, nt, V = f((() => {
876
- L = function(e, t) {
877
- return L = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
908
+ var st, F, I, ct, L, lt, ut, R = f((() => {
909
+ st = function(e, t) {
910
+ return st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
878
911
  e.__proto__ = t;
879
912
  } || function(e, t) {
880
913
  for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);
881
- }, L(e, t);
882
- }, R = function() {
883
- return R = Object.assign || function(e) {
914
+ }, st(e, t);
915
+ }, F = function() {
916
+ return F = Object.assign || function(e) {
884
917
  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]);
885
918
  return e;
886
- }, R.apply(this, arguments);
887
- }, z = Object.create ? (function(e, t, n, r) {
919
+ }, F.apply(this, arguments);
920
+ }, I = Object.create ? (function(e, t, n, r) {
888
921
  r === void 0 && (r = n);
889
922
  var i = Object.getOwnPropertyDescriptor(t, n);
890
923
  (!i || (`get` in i ? !t.__esModule : i.writable || i.configurable)) && (i = {
@@ -895,63 +928,63 @@ var L, R, z, et, B, tt, nt, V = f((() => {
895
928
  }), Object.defineProperty(e, r, i);
896
929
  }) : (function(e, t, n, r) {
897
930
  r === void 0 && (r = n), e[r] = t[n];
898
- }), et = Object.create ? (function(e, t) {
931
+ }), ct = Object.create ? (function(e, t) {
899
932
  Object.defineProperty(e, `default`, {
900
933
  enumerable: !0,
901
934
  value: t
902
935
  });
903
936
  }) : function(e, t) {
904
937
  e.default = t;
905
- }, B = function(e) {
906
- return B = Object.getOwnPropertyNames || function(e) {
938
+ }, L = function(e) {
939
+ return L = Object.getOwnPropertyNames || function(e) {
907
940
  var t = [];
908
941
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[t.length] = n);
909
942
  return t;
910
- }, B(e);
911
- }, tt = typeof SuppressedError == `function` ? SuppressedError : function(e, t, n) {
943
+ }, L(e);
944
+ }, lt = typeof SuppressedError == `function` ? SuppressedError : function(e, t, n) {
912
945
  var r = Error(n);
913
946
  return r.name = `SuppressedError`, r.error = e, r.suppressed = t, r;
914
- }, nt = {
915
- __extends: Ee,
916
- __assign: R,
917
- __rest: De,
918
- __decorate: Oe,
919
- __param: ke,
920
- __esDecorate: Ae,
921
- __runInitializers: je,
922
- __propKey: Me,
923
- __setFunctionName: Ne,
924
- __metadata: Pe,
925
- __awaiter: Fe,
926
- __generator: Ie,
927
- __createBinding: z,
928
- __exportStar: Le,
929
- __values: F,
930
- __read: Re,
931
- __spread: ze,
932
- __spreadArrays: Be,
933
- __spreadArray: Ve,
934
- __await: I,
935
- __asyncGenerator: He,
936
- __asyncDelegator: Ue,
937
- __asyncValues: We,
938
- __makeTemplateObject: Ge,
939
- __importStar: Ke,
940
- __importDefault: qe,
941
- __classPrivateFieldGet: Je,
942
- __classPrivateFieldSet: Ye,
943
- __classPrivateFieldIn: Xe,
944
- __addDisposableResource: Ze,
945
- __disposeResources: Qe,
946
- __rewriteRelativeImportExtension: $e
947
+ }, ut = {
948
+ __extends: Ne,
949
+ __assign: F,
950
+ __rest: Pe,
951
+ __decorate: Fe,
952
+ __param: Ie,
953
+ __esDecorate: Le,
954
+ __runInitializers: Re,
955
+ __propKey: ze,
956
+ __setFunctionName: Be,
957
+ __metadata: Ve,
958
+ __awaiter: He,
959
+ __generator: Ue,
960
+ __createBinding: I,
961
+ __exportStar: We,
962
+ __values: N,
963
+ __read: Ge,
964
+ __spread: Ke,
965
+ __spreadArrays: qe,
966
+ __spreadArray: Je,
967
+ __await: P,
968
+ __asyncGenerator: Ye,
969
+ __asyncDelegator: Xe,
970
+ __asyncValues: Ze,
971
+ __makeTemplateObject: Qe,
972
+ __importStar: $e,
973
+ __importDefault: et,
974
+ __classPrivateFieldGet: tt,
975
+ __classPrivateFieldSet: nt,
976
+ __classPrivateFieldIn: rt,
977
+ __addDisposableResource: it,
978
+ __disposeResources: at,
979
+ __rewriteRelativeImportExtension: ot
947
980
  };
948
- })), rt = p(((e) => {
981
+ })), dt = p(((e) => {
949
982
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.ErrorKind = void 0;
950
983
  var t;
951
984
  (function(e) {
952
985
  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`;
953
986
  })(t || (e.ErrorKind = t = {}));
954
- })), H = p(((e) => {
987
+ })), z = p(((e) => {
955
988
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.SKELETON_TYPE = e.TYPE = void 0, e.isLiteralElement = r, e.isArgumentElement = i, e.isNumberElement = a, e.isDateElement = o, e.isTimeElement = s, e.isSelectElement = c, e.isPluralElement = l, e.isPoundElement = u, e.isTagElement = d, e.isNumberSkeleton = f, e.isDateTimeSkeleton = p, e.createLiteralElement = m, e.createNumberElement = h;
956
989
  var t;
957
990
  (function(e) {
@@ -1007,9 +1040,9 @@ var L, R, z, et, B, tt, nt, V = f((() => {
1007
1040
  style: n
1008
1041
  };
1009
1042
  }
1010
- })), it = p(((e) => {
1043
+ })), ft = p(((e) => {
1011
1044
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.WHITE_SPACE_REGEX = e.SPACE_SEPARATOR_REGEX = void 0, e.SPACE_SEPARATOR_REGEX = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, e.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/;
1012
- })), at = p(((e) => {
1045
+ })), pt = p(((e) => {
1013
1046
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.parseDateTimeSkeleton = n;
1014
1047
  var t = /(?:[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;
1015
1048
  function n(e) {
@@ -1109,11 +1142,11 @@ var L, R, z, et, B, tt, nt, V = f((() => {
1109
1142
  return ``;
1110
1143
  }), n;
1111
1144
  }
1112
- })), ot = p(((e) => {
1145
+ })), mt = p(((e) => {
1113
1146
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.WHITE_SPACE_REGEX = void 0, e.WHITE_SPACE_REGEX = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1114
- })), st = p(((e) => {
1147
+ })), ht = p(((e) => {
1115
1148
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.parseNumberSkeletonFromString = r, e.parseNumberSkeleton = p;
1116
- var t = (V(), g(P)), n = ot();
1149
+ var t = (R(), g(M)), n = mt();
1117
1150
  function r(e) {
1118
1151
  if (e.length === 0) throw Error(`Number skeleton cannot be empty`);
1119
1152
  for (var t = e.split(n.WHITE_SPACE_REGEX).filter(function(e) {
@@ -1291,11 +1324,11 @@ var L, R, z, et, B, tt, nt, V = f((() => {
1291
1324
  }
1292
1325
  return n;
1293
1326
  }
1294
- })), ct = p(((e) => {
1327
+ })), gt = p(((e) => {
1295
1328
  Object.defineProperty(e, `__esModule`, { value: !0 });
1296
- var t = (V(), g(P));
1297
- t.__exportStar(at(), e), t.__exportStar(st(), e);
1298
- })), lt = p(((e) => {
1329
+ var t = (R(), g(M));
1330
+ t.__exportStar(pt(), e), t.__exportStar(ht(), e);
1331
+ })), _t = p(((e) => {
1299
1332
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.timeData = void 0, e.timeData = {
1300
1333
  "001": [`H`, `h`],
1301
1334
  419: [
@@ -2452,9 +2485,9 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2452
2485
  `h`
2453
2486
  ]
2454
2487
  };
2455
- })), ut = p(((e) => {
2488
+ })), vt = p(((e) => {
2456
2489
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.getBestPattern = n;
2457
- var t = lt();
2490
+ var t = _t();
2458
2491
  function n(e, t) {
2459
2492
  for (var n = ``, i = 0; i < e.length; i++) {
2460
2493
  var a = e.charAt(i);
@@ -2479,9 +2512,9 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2479
2512
  var r = e.language, i;
2480
2513
  return r !== `root` && (i = e.maximize().region), (t.timeData[i || ``] || t.timeData[r || ``] || t.timeData[`${r}-001`] || t.timeData[`001`])[0];
2481
2514
  }
2482
- })), dt = p(((e) => {
2515
+ })), yt = p(((e) => {
2483
2516
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.Parser = void 0;
2484
- var t = (V(), g(P)), n = rt(), r = H(), i = it(), a = ct(), o = ut(), s = RegExp(`^${i.SPACE_SEPARATOR_REGEX.source}*`), c = RegExp(`${i.SPACE_SEPARATOR_REGEX.source}*\$`);
2517
+ var t = (R(), g(M)), n = dt(), r = z(), i = ft(), a = gt(), o = vt(), s = RegExp(`^${i.SPACE_SEPARATOR_REGEX.source}*`), c = RegExp(`${i.SPACE_SEPARATOR_REGEX.source}*\$`);
2485
2518
  function l(e, t) {
2486
2519
  return {
2487
2520
  start: e,
@@ -2492,21 +2525,21 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2492
2525
  return typeof e == `number` && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2493
2526
  }, v = !0;
2494
2527
  try {
2495
- v = C(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`).exec(`a`)?.[0] === `a`;
2528
+ v = S(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`).exec(`a`)?.[0] === `a`;
2496
2529
  } catch {
2497
2530
  v = !1;
2498
2531
  }
2499
- var y = u ? function(e, t, n) {
2532
+ var ee = u ? function(e, t, n) {
2500
2533
  return e.startsWith(t, n);
2501
2534
  } : function(e, t, n) {
2502
2535
  return e.slice(n, n + t.length) === t;
2503
- }, b = d ? String.fromCodePoint : function() {
2536
+ }, y = d ? String.fromCodePoint : function() {
2504
2537
  for (var e = [...arguments], t = ``, n = e.length, r = 0, i; n > r;) {
2505
2538
  if (i = e[r++], i > 1114111) throw RangeError(i + ` is not a valid code point`);
2506
2539
  t += i < 65536 ? String.fromCharCode(i) : String.fromCharCode(((i -= 65536) >> 10) + 55296, i % 1024 + 56320);
2507
2540
  }
2508
2541
  return t;
2509
- }, ee = f ? Object.fromEntries : function(e) {
2542
+ }, b = f ? Object.fromEntries : function(e) {
2510
2543
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
2511
2544
  var i = r[n], a = i[0];
2512
2545
  t[a] = i[1];
@@ -2520,31 +2553,31 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2520
2553
  var r = e.charCodeAt(t), i;
2521
2554
  return r < 55296 || r > 56319 || t + 1 === n || (i = e.charCodeAt(t + 1)) < 56320 || i > 57343 ? r : (r - 55296 << 10) + (i - 56320) + 65536;
2522
2555
  }
2523
- }, S = m ? function(e) {
2556
+ }, te = m ? function(e) {
2524
2557
  return e.trimStart();
2525
2558
  } : function(e) {
2526
2559
  return e.replace(s, ``);
2527
- }, te = h ? function(e) {
2560
+ }, ne = h ? function(e) {
2528
2561
  return e.trimEnd();
2529
2562
  } : function(e) {
2530
2563
  return e.replace(c, ``);
2531
2564
  };
2532
- function C(e, t) {
2565
+ function S(e, t) {
2533
2566
  return new RegExp(e, t);
2534
2567
  }
2535
- var w;
2568
+ var C;
2536
2569
  if (v) {
2537
- var T = C(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2538
- w = function(e, t) {
2539
- return T.lastIndex = t, T.exec(e)[1] ?? ``;
2570
+ var w = S(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2571
+ C = function(e, t) {
2572
+ return w.lastIndex = t, w.exec(e)[1] ?? ``;
2540
2573
  };
2541
- } else w = function(e, t) {
2574
+ } else C = function(e, t) {
2542
2575
  for (var n = [];;) {
2543
2576
  var r = x(e, t);
2544
- if (r === void 0 || k(r) || A(r)) break;
2577
+ if (r === void 0 || ie(r) || D(r)) break;
2545
2578
  n.push(r), t += r >= 65536 ? 2 : 1;
2546
2579
  }
2547
- return b.apply(void 0, n);
2580
+ return y.apply(void 0, n);
2548
2581
  };
2549
2582
  e.Parser = function() {
2550
2583
  function e(e, t) {
@@ -2574,7 +2607,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2574
2607
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2575
2608
  if (i) break;
2576
2609
  return this.error(n.ErrorKind.UNMATCHED_CLOSING_TAG, l(this.clonePosition(), this.clonePosition()));
2577
- } else if (o === 60 && !this.ignoreTag && E(this.peek() || 0)) {
2610
+ } else if (o === 60 && !this.ignoreTag && T(this.peek() || 0)) {
2578
2611
  var s = this.parseTag(e, t);
2579
2612
  if (s.err) return s;
2580
2613
  a.push(s.val);
@@ -2605,7 +2638,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2605
2638
  if (o.err) return o;
2606
2639
  var s = o.val, c = this.clonePosition();
2607
2640
  if (this.bumpIf(`</`)) {
2608
- if (this.isEOF() || !E(this.char())) return this.error(n.ErrorKind.INVALID_TAG, l(c, this.clonePosition()));
2641
+ if (this.isEOF() || !T(this.char())) return this.error(n.ErrorKind.INVALID_TAG, l(c, this.clonePosition()));
2609
2642
  var u = this.clonePosition();
2610
2643
  return a === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? {
2611
2644
  val: {
@@ -2620,7 +2653,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2620
2653
  } else return this.error(n.ErrorKind.INVALID_TAG, l(i, this.clonePosition()));
2621
2654
  }, e.prototype.parseTagName = function() {
2622
2655
  var e = this.offset();
2623
- for (this.bump(); !this.isEOF() && O(this.char());) this.bump();
2656
+ for (this.bump(); !this.isEOF() && E(this.char());) this.bump();
2624
2657
  return this.message.slice(e, this.offset());
2625
2658
  }, e.prototype.parseLiteral = function(e, t) {
2626
2659
  for (var n = this.clonePosition(), i = ``;;) {
@@ -2651,7 +2684,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2651
2684
  err: null
2652
2685
  };
2653
2686
  }, e.prototype.tryParseLeftAngleBracket = function() {
2654
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !D(this.peek() || 0)) ? (this.bump(), `<`) : null;
2687
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !re(this.peek() || 0)) ? (this.bump(), `<`) : null;
2655
2688
  }, e.prototype.tryParseQuote = function(e) {
2656
2689
  if (this.isEOF() || this.char() !== 39) return null;
2657
2690
  switch (this.peek()) {
@@ -2677,11 +2710,11 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2677
2710
  else t.push(n);
2678
2711
  this.bump();
2679
2712
  }
2680
- return b.apply(void 0, t);
2713
+ return y.apply(void 0, t);
2681
2714
  }, e.prototype.tryParseUnquoted = function(e, t) {
2682
2715
  if (this.isEOF()) return null;
2683
2716
  var n = this.char();
2684
- return n === 60 || n === 123 || n === 35 && (t === `plural` || t === `selectordinal`) || n === 125 && e > 0 ? null : (this.bump(), b(n));
2717
+ return n === 60 || n === 123 || n === 35 && (t === `plural` || t === `selectordinal`) || n === 125 && e > 0 ? null : (this.bump(), y(n));
2685
2718
  }, e.prototype.parseArgument = function(e, t) {
2686
2719
  var i = this.clonePosition();
2687
2720
  if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(n.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, l(i, this.clonePosition()));
@@ -2702,7 +2735,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2702
2735
  default: return this.error(n.ErrorKind.MALFORMED_ARGUMENT, l(i, this.clonePosition()));
2703
2736
  }
2704
2737
  }, e.prototype.parseIdentifierIfPossible = function() {
2705
- var e = this.clonePosition(), t = this.offset(), n = w(this.message, t), r = t + n.length;
2738
+ var e = this.clonePosition(), t = this.offset(), n = C(this.message, t), r = t + n.length;
2706
2739
  return this.bumpTo(r), {
2707
2740
  value: n,
2708
2741
  location: l(e, this.clonePosition())
@@ -2720,7 +2753,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2720
2753
  this.bumpSpace();
2721
2754
  var m = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
2722
2755
  if (h.err) return h;
2723
- var g = te(h.val);
2756
+ var g = ne(h.val);
2724
2757
  if (g.length === 0) return this.error(n.ErrorKind.EXPECT_ARGUMENT_STYLE, l(this.clonePosition(), this.clonePosition()));
2725
2758
  p = {
2726
2759
  style: g,
@@ -2730,10 +2763,10 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2730
2763
  var _ = this.tryParseArgumentClose(c);
2731
2764
  if (_.err) return _;
2732
2765
  var v = l(c, this.clonePosition());
2733
- if (p && y(p?.style, `::`, 0)) {
2734
- var b = S(p.style.slice(2));
2766
+ if (p && ee(p?.style, `::`, 0)) {
2767
+ var y = te(p.style.slice(2));
2735
2768
  if (d === `number`) {
2736
- var h = this.parseNumberSkeletonFromString(b, p.styleLocation);
2769
+ var h = this.parseNumberSkeletonFromString(y, p.styleLocation);
2737
2770
  return h.err ? h : {
2738
2771
  val: {
2739
2772
  type: r.TYPE.number,
@@ -2744,9 +2777,9 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2744
2777
  err: null
2745
2778
  };
2746
2779
  } else {
2747
- if (b.length === 0) return this.error(n.ErrorKind.EXPECT_DATE_TIME_SKELETON, v);
2748
- var x = b;
2749
- this.locale && (x = (0, o.getBestPattern)(b, this.locale));
2780
+ if (y.length === 0) return this.error(n.ErrorKind.EXPECT_DATE_TIME_SKELETON, v);
2781
+ var x = y;
2782
+ this.locale && (x = (0, o.getBestPattern)(y, this.locale));
2750
2783
  var g = {
2751
2784
  type: r.SKELETON_TYPE.dateTime,
2752
2785
  pattern: x,
@@ -2776,38 +2809,38 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2776
2809
  case `plural`:
2777
2810
  case `selectordinal`:
2778
2811
  case `select`:
2779
- var C = this.clonePosition();
2780
- if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(n.ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, l(C, t.__assign({}, C)));
2812
+ var S = this.clonePosition();
2813
+ if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(n.ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, l(S, t.__assign({}, S)));
2781
2814
  this.bumpSpace();
2782
- var w = this.parseIdentifierIfPossible(), T = 0;
2783
- if (d !== `select` && w.value === `offset`) {
2815
+ var C = this.parseIdentifierIfPossible(), w = 0;
2816
+ if (d !== `select` && C.value === `offset`) {
2784
2817
  if (!this.bumpIf(`:`)) return this.error(n.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, l(this.clonePosition(), this.clonePosition()));
2785
2818
  this.bumpSpace();
2786
2819
  var h = this.tryParseDecimalInteger(n.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, n.ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2787
2820
  if (h.err) return h;
2788
- this.bumpSpace(), w = this.parseIdentifierIfPossible(), T = h.val;
2821
+ this.bumpSpace(), C = this.parseIdentifierIfPossible(), w = h.val;
2789
2822
  }
2790
- var E = this.tryParsePluralOrSelectOptions(e, d, i, w);
2791
- if (E.err) return E;
2823
+ var T = this.tryParsePluralOrSelectOptions(e, d, i, C);
2824
+ if (T.err) return T;
2792
2825
  var _ = this.tryParseArgumentClose(c);
2793
2826
  if (_.err) return _;
2794
- var D = l(c, this.clonePosition());
2827
+ var re = l(c, this.clonePosition());
2795
2828
  return d === `select` ? {
2796
2829
  val: {
2797
2830
  type: r.TYPE.select,
2798
2831
  value: s,
2799
- options: ee(E.val),
2800
- location: D
2832
+ options: b(T.val),
2833
+ location: re
2801
2834
  },
2802
2835
  err: null
2803
2836
  } : {
2804
2837
  val: {
2805
2838
  type: r.TYPE.plural,
2806
2839
  value: s,
2807
- options: ee(E.val),
2808
- offset: T,
2840
+ options: b(T.val),
2841
+ offset: w,
2809
2842
  pluralType: d === `plural` ? `cardinal` : `ordinal`,
2810
- location: D
2843
+ location: re
2811
2844
  },
2812
2845
  err: null
2813
2846
  };
@@ -2931,7 +2964,7 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2931
2964
  e === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += e < 65536 ? 1 : 2);
2932
2965
  }
2933
2966
  }, e.prototype.bumpIf = function(e) {
2934
- if (y(this.message, e, this.offset())) {
2967
+ if (ee(this.message, e, this.offset())) {
2935
2968
  for (var t = 0; t < e.length; t++) this.bump();
2936
2969
  return !0;
2937
2970
  }
@@ -2948,31 +2981,31 @@ var L, R, z, et, B, tt, nt, V = f((() => {
2948
2981
  if (this.bump(), this.isEOF()) break;
2949
2982
  }
2950
2983
  }, e.prototype.bumpSpace = function() {
2951
- for (; !this.isEOF() && k(this.char());) this.bump();
2984
+ for (; !this.isEOF() && ie(this.char());) this.bump();
2952
2985
  }, e.prototype.peek = function() {
2953
2986
  if (this.isEOF()) return null;
2954
2987
  var e = this.char(), t = this.offset();
2955
2988
  return this.message.charCodeAt(t + (e >= 65536 ? 2 : 1)) ?? null;
2956
2989
  }, e;
2957
2990
  }();
2958
- function E(e) {
2991
+ function T(e) {
2959
2992
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
2960
2993
  }
2961
- function D(e) {
2962
- return E(e) || e === 47;
2994
+ function re(e) {
2995
+ return T(e) || e === 47;
2963
2996
  }
2964
- function O(e) {
2997
+ function E(e) {
2965
2998
  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;
2966
2999
  }
2967
- function k(e) {
3000
+ function ie(e) {
2968
3001
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
2969
3002
  }
2970
- function A(e) {
3003
+ function D(e) {
2971
3004
  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;
2972
3005
  }
2973
- })), ft = p(((e) => {
3006
+ })), bt = p(((e) => {
2974
3007
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.hoistSelectors = s, e.isStructurallySame = l;
2975
- var t = (V(), g(P)), n = H();
3008
+ var t = (R(), g(M)), n = z();
2976
3009
  function r(e) {
2977
3010
  return Array.isArray(e) ? t.__spreadArray([], e.map(r), !0) : typeof e == `object` && e ? Object.keys(e).reduce(function(t, n) {
2978
3011
  return t[n] = r(e[n]), t;
@@ -3029,9 +3062,9 @@ var L, R, z, et, B, tt, nt, V = f((() => {
3029
3062
  error: Error(`Different number of variables: [${Array.from(r.keys()).join(`, `)}] vs [${Array.from(i.keys()).join(`, `)}]`)
3030
3063
  };
3031
3064
  }
3032
- })), pt = p(((e) => {
3065
+ })), xt = p(((e) => {
3033
3066
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.isStructurallySame = e._Parser = void 0, e.parse = o;
3034
- var t = (V(), g(P)), n = rt(), r = dt(), i = H();
3067
+ var t = (R(), g(M)), n = dt(), r = yt(), i = z();
3035
3068
  function a(e) {
3036
3069
  e.forEach(function(e) {
3037
3070
  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);
@@ -3050,17 +3083,17 @@ var L, R, z, et, B, tt, nt, V = f((() => {
3050
3083
  }
3051
3084
  return i?.captureLocation || a(o.val), o.val;
3052
3085
  }
3053
- t.__exportStar(H(), e), e._Parser = r.Parser;
3054
- var s = ft();
3086
+ t.__exportStar(z(), e), e._Parser = r.Parser;
3087
+ var s = bt();
3055
3088
  Object.defineProperty(e, `isStructurallySame`, {
3056
3089
  enumerable: !0,
3057
3090
  get: function() {
3058
3091
  return s.isStructurallySame;
3059
3092
  }
3060
3093
  });
3061
- })), mt = p(((e) => {
3094
+ })), St = p(((e) => {
3062
3095
  Object.defineProperty(e, `__esModule`, { value: !0 }), e.printAST = r;
3063
- var t = (V(), g(P)), n = H();
3096
+ var t = (R(), g(M)), n = z();
3064
3097
  function r(e) {
3065
3098
  return i(e, !1);
3066
3099
  }
@@ -3122,8 +3155,8 @@ var L, R, z, et, B, tt, nt, V = f((() => {
3122
3155
  }), !0).filter(Boolean).join(` `)
3123
3156
  ].join(`,`)}}`;
3124
3157
  }
3125
- })), U = pt(), W = H(), ht = mt();
3126
- const gt = [
3158
+ })), B = xt(), V = z(), Ct = St();
3159
+ const wt = [
3127
3160
  `singular`,
3128
3161
  `plural`,
3129
3162
  `dual`,
@@ -3134,11 +3167,11 @@ const gt = [
3134
3167
  `many`,
3135
3168
  `other`
3136
3169
  ];
3137
- function _t(e) {
3138
- return gt.includes(e);
3170
+ function Tt(e) {
3171
+ return wt.includes(e);
3139
3172
  }
3140
- function vt(e, t = gt, n = [`en`]) {
3141
- let r = Te(n).select(e), i = Math.abs(e);
3173
+ function Et(e, t = wt, n = [`en`]) {
3174
+ let r = Me(n).select(e), i = Math.abs(e);
3142
3175
  if (i === 0 && t.includes(`zero`)) return `zero`;
3143
3176
  if (i === 1) {
3144
3177
  if (t.includes(`singular`)) return `singular`;
@@ -3151,35 +3184,35 @@ function vt(e, t = gt, n = [`en`]) {
3151
3184
  }
3152
3185
  return r === `two` && t.includes(`dual`) ? `dual` : t.includes(r) ? r : r === `two` && t.includes(`dual`) ? `dual` : r === `two` && t.includes(`plural`) ? `plural` : r === `two` && t.includes(`other`) ? `other` : r === `few` && t.includes(`plural`) ? `plural` : r === `few` && t.includes(`other`) ? `other` : r === `many` && t.includes(`plural`) ? `plural` : r === `many` && t.includes(`other`) ? `other` : r === `other` && t.includes(`plural`) ? `plural` : ``;
3153
3186
  }
3154
- const yt = {
3187
+ const Dt = {
3155
3188
  variable: `v`,
3156
3189
  number: `n`,
3157
3190
  datetime: `d`,
3158
3191
  currency: `c`,
3159
3192
  "relative-time": `rt`
3160
3193
  };
3161
- function bt(e) {
3162
- return yt[e];
3194
+ function Ot(e) {
3195
+ return Dt[e];
3163
3196
  }
3164
- function G({ icuString: e, shouldVisit: t, visitor: n, options: { recurseIntoVisited: r = !0, ...i } }) {
3165
- let a = (0, U.parse)(e, i);
3197
+ function H({ icuString: e, shouldVisit: t, visitor: n, options: { recurseIntoVisited: r = !0, ...i } }) {
3198
+ let a = (0, B.parse)(e, i);
3166
3199
  return o(a), a;
3167
3200
  function o(e) {
3168
3201
  e.map(s);
3169
3202
  }
3170
3203
  function s(e) {
3171
3204
  let i = !1;
3172
- t(e) && (n(e), i = !0), (!i || r) && (e.type === U.TYPE.select || e.type === U.TYPE.plural ? Object.values(e.options).map((e) => e.value).map(o) : e.type === U.TYPE.tag && o(e.children));
3205
+ t(e) && (n(e), i = !0), (!i || r) && (e.type === B.TYPE.select || e.type === B.TYPE.plural ? Object.values(e.options).map((e) => e.value).map(o) : e.type === B.TYPE.tag && o(e.children));
3173
3206
  }
3174
3207
  }
3175
- const K = `_gt_`, xt = RegExp(`^${K}\\d+$`), St = RegExp(`^${K}$`);
3176
- function Ct(e) {
3177
- return e.type === W.TYPE.select && xt.test(e.value) && !!e.options.other && (e.options.other.value.length === 0 || e.options.other.value.length > 0 && e.options.other.value[0]?.type === W.TYPE.literal);
3208
+ const U = `_gt_`, kt = RegExp(`^${U}\\d+$`), At = RegExp(`^${U}$`);
3209
+ function jt(e) {
3210
+ return e.type === V.TYPE.select && kt.test(e.value) && !!e.options.other && (e.options.other.value.length === 0 || e.options.other.value.length > 0 && e.options.other.value[0]?.type === V.TYPE.literal);
3178
3211
  }
3179
- function wt(e) {
3180
- return e.type === W.TYPE.select && St.test(e.value) && !!e.options.other && (e.options.other.value.length === 0 || e.options.other.value.length > 0 && e.options.other.value[0]?.type === W.TYPE.literal);
3212
+ function Mt(e) {
3213
+ return e.type === V.TYPE.select && At.test(e.value) && !!e.options.other && (e.options.other.value.length === 0 || e.options.other.value.length > 0 && e.options.other.value[0]?.type === V.TYPE.literal);
3181
3214
  }
3182
- function Tt(e) {
3215
+ function Nt(e) {
3183
3216
  if (!e.includes(`_gt_`)) return e;
3184
3217
  let t = [];
3185
3218
  function n(e) {
@@ -3189,9 +3222,9 @@ function Tt(e) {
3189
3222
  value: e.options.other.value.length > 0 ? e.options.other.value[0].value : ``
3190
3223
  });
3191
3224
  }
3192
- G({
3225
+ H({
3193
3226
  icuString: e,
3194
- shouldVisit: wt,
3227
+ shouldVisit: Mt,
3195
3228
  visitor: n,
3196
3229
  options: {
3197
3230
  recurseIntoVisited: !1,
@@ -3202,7 +3235,7 @@ function Tt(e) {
3202
3235
  for (let n = 0; n < t.length; n++) i.push(e.slice(r, t[n].start)), i.push(t[n].value), r = t[n].end;
3203
3236
  return r < e.length && i.push(e.slice(r)), i.join(``);
3204
3237
  }
3205
- function Et(e) {
3238
+ function Pt(e) {
3206
3239
  let t = e.replace(/'/g, `''`), n = /[{}<>]/, r = t.search(n);
3207
3240
  if (r === -1) return t;
3208
3241
  let i = -1;
@@ -3212,15 +3245,15 @@ function Et(e) {
3212
3245
  }
3213
3246
  return t = t.slice(0, r) + `'` + t.slice(r, i + 1) + `'` + t.slice(i + 1), t;
3214
3247
  }
3215
- function Dt(e, t) {
3216
- let n = ` other {${Et(String(e ?? ``))}}`, r = ``;
3217
- return t?.$name && (r = ` _gt_var_name {${Et(t.$name)}}`), `{${K}, select,${n}${r}}`;
3248
+ function Ft(e, t) {
3249
+ let n = ` other {${Pt(String(e ?? ``))}}`, r = ``;
3250
+ return t?.$name && (r = ` _gt_var_name {${Pt(t.$name)}}`), `{${U}, select,${n}${r}}`;
3218
3251
  }
3219
- function Ot(e) {
3252
+ function It(e) {
3220
3253
  return e;
3221
3254
  }
3222
- const kt = Ot;
3223
- function At(e) {
3255
+ const Lt = It;
3256
+ function Rt(e) {
3224
3257
  if (!e.includes(`_gt_`)) return e;
3225
3258
  let t = [];
3226
3259
  function n(e) {
@@ -3231,9 +3264,9 @@ function At(e) {
3231
3264
  otherEnd: e.options.other.location?.end.offset ?? 0
3232
3265
  });
3233
3266
  }
3234
- G({
3267
+ H({
3235
3268
  icuString: e,
3236
- shouldVisit: wt,
3269
+ shouldVisit: Mt,
3237
3270
  visitor: n,
3238
3271
  options: {
3239
3272
  recurseIntoVisited: !1,
@@ -3247,32 +3280,32 @@ function At(e) {
3247
3280
  }
3248
3281
  return r.push(e.slice(i, e.length)), r.join(``);
3249
3282
  }
3250
- function jt(e) {
3283
+ function zt(e) {
3251
3284
  if (!e.includes(`_gt_`)) return {};
3252
3285
  let t = 1, n = {};
3253
3286
  function r(e) {
3254
3287
  n[e.value + t] = e.options.other.value.length ? e.options.other.value[0]?.value : ``, t += 1;
3255
3288
  }
3256
- return G({
3289
+ return H({
3257
3290
  icuString: e,
3258
- shouldVisit: wt,
3291
+ shouldVisit: Mt,
3259
3292
  visitor: r,
3260
3293
  options: { recurseIntoVisited: !1 }
3261
3294
  }), n;
3262
3295
  }
3263
- function Mt(e) {
3296
+ function Bt(e) {
3264
3297
  if (!e.includes(`_gt_`)) return e;
3265
3298
  function t(e) {
3266
- e.type = W.TYPE.argument, Reflect.deleteProperty(e, `options`);
3299
+ e.type = V.TYPE.argument, Reflect.deleteProperty(e, `options`);
3267
3300
  }
3268
- return (0, ht.printAST)(G({
3301
+ return (0, Ct.printAST)(H({
3269
3302
  icuString: e,
3270
- shouldVisit: Ct,
3303
+ shouldVisit: jt,
3271
3304
  visitor: t,
3272
3305
  options: { recurseIntoVisited: !1 }
3273
3306
  }));
3274
3307
  }
3275
- function Nt(e, n = 0) {
3308
+ function Vt(e, n = 0) {
3276
3309
  let r = n, a = (e) => {
3277
3310
  let { type: t, props: n } = e;
3278
3311
  r += 1;
@@ -3286,11 +3319,11 @@ function Nt(e, n = 0) {
3286
3319
  if (a) {
3287
3320
  let e = a.split(`-`);
3288
3321
  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`) {
3289
- let e = Object.entries(n).reduce((e, [t, n]) => (_t(t) && (e[t] = Nt(n, r)), e), {});
3322
+ let e = Object.entries(n).reduce((e, [t, n]) => (Tt(t) && (e[t] = Vt(n, r)), e), {});
3290
3323
  Object.keys(e).length && (i.branches = e);
3291
3324
  }
3292
3325
  if (e[0] === `branch`) {
3293
- 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] = Nt(n, r), e), {});
3326
+ 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] = Vt(n, r), e), {});
3294
3327
  Object.keys(s).length && (i.branches = s);
3295
3328
  }
3296
3329
  i.transformation = e[0];
@@ -3312,32 +3345,91 @@ function Nt(e, n = 0) {
3312
3345
  }
3313
3346
  return c(e);
3314
3347
  }
3315
- const q = `@generaltranslation/react-core`;
3316
- `${q}`, `${q}`, `${q}`, `${q}`, `${q}`, `${q}`;
3317
- const Pt = (e) => `${q} Error: Dictionary subtree not found for id: "${e}"`, Ft = () => `${q} Error: Cannot inject and merge a dictionary entry`, It = () => `${q} Error: Cannot inject and merge a dictionary entry`;
3318
- `${q}`, `${q}`, `${q}`, `${q}`;
3319
- `${q}`;
3320
- const Ht = {
3348
+ const Ht = `@generaltranslation/react-core`;
3349
+ function W(e) {
3350
+ return S({
3351
+ source: Ht,
3352
+ ...e
3353
+ });
3354
+ }
3355
+ W({
3356
+ severity: `Error`,
3357
+ whatHappened: `Runtime translation needs a project ID`,
3358
+ fix: `Add projectId to your <GTProvider> configuration or set GT_PROJECT_ID in your environment`,
3359
+ docsUrl: `https://generaltranslation.com/dashboard`
3360
+ }), W({
3361
+ severity: `Error`,
3362
+ whatHappened: `Production environments cannot use a development API key`,
3363
+ fix: `Replace it with a production API key before deploying`
3364
+ }), W({
3365
+ severity: `Error`,
3366
+ whatHappened: `The API key is available to client-side production code`,
3367
+ fix: `Move translation credentials to a server-only environment before deploying`
3368
+ }), W({
3369
+ severity: `Error`,
3370
+ whatHappened: `Runtime translation is not configured`,
3371
+ fix: `Add projectId and devApiKey to your environment, or pass them to <GTProvider> directly`
3372
+ }), W({
3373
+ severity: `Error`,
3374
+ whatHappened: `Runtime translations could not be loaded`,
3375
+ wayOut: `Source content will render as a fallback`,
3376
+ fix: `Check your runtime translation configuration and try again`
3377
+ }), W({
3378
+ severity: `Error`,
3379
+ whatHappened: `Runtime translation could not be completed`
3380
+ });
3381
+ const Ut = (e) => W({
3382
+ severity: `Error`,
3383
+ whatHappened: `Dictionary subtree "${e}" could not be found`,
3384
+ fix: `Check that the id matches your dictionary structure`
3385
+ }), Wt = () => W({
3386
+ severity: `Error`,
3387
+ whatHappened: `A dictionary entry cannot be injected as a subtree`,
3388
+ fix: `Pass a dictionary object instead`
3389
+ }), Gt = () => W({
3390
+ severity: `Error`,
3391
+ whatHappened: `A dictionary entry cannot be merged into another dictionary entry`,
3392
+ fix: `Pass a dictionary subtree instead`
3393
+ });
3394
+ W({
3395
+ severity: `Warning`,
3396
+ whatHappened: `Runtime translation needs a project ID`,
3397
+ fix: `Add projectId to <GTProvider> or set GT_PROJECT_ID in your environment`,
3398
+ docsUrl: `https://generaltranslation.com/dashboard`
3399
+ }), W({
3400
+ severity: `Warning`,
3401
+ whatHappened: `Runtime translation needs a development API key`,
3402
+ fix: `Find your development API key at generaltranslation.com/dashboard, or set runtimeUrl to an empty string to disable runtime translation`
3403
+ }), W({
3404
+ severity: `Warning`,
3405
+ whatHappened: `Runtime translation timed out`
3406
+ }), W({
3407
+ severity: `Warning`,
3408
+ whatHappened: `No dictionary was found`,
3409
+ fix: `Pass a dictionary to <GTProvider> or configure a dictionary loader before rendering translations`
3410
+ });
3411
+ `${Ht}`;
3412
+ const Xt = {
3321
3413
  variable: `value`,
3322
3414
  number: `n`,
3323
3415
  datetime: `date`,
3324
3416
  currency: `cost`,
3325
3417
  "relative-time": `time`
3326
3418
  };
3327
- function Ut(e = {}, t) {
3328
- return typeof e.name == `string` ? e.name : `_gt_${Ht[t] || `value`}_${e[`data-_gt`]?.id}`;
3419
+ function Zt(e = {}, t) {
3420
+ return typeof e.name == `string` ? e.name : `_gt_${Xt[t] || `value`}_${e[`data-_gt`]?.id}`;
3329
3421
  }
3330
- function Wt(e) {
3422
+ function Qt(e) {
3331
3423
  return react.default.isValidElement(e);
3332
3424
  }
3333
- const Gt = {
3425
+ const $t = {
3334
3426
  pl: `placeholder`,
3335
3427
  ti: `title`,
3336
3428
  alt: `alt`,
3337
3429
  arl: `aria-label`,
3338
3430
  arb: `aria-labelledby`,
3339
3431
  ard: `aria-describedby`
3340
- }, Kt = (e) => {
3432
+ }, en = (e) => {
3341
3433
  if (!e) return ``;
3342
3434
  let { type: t, props: n } = e;
3343
3435
  if (t && typeof t == `function`) {
@@ -3345,15 +3437,15 @@ const Gt = {
3345
3437
  if (`name` in t && typeof t.name == `string` && t.name) return t.name;
3346
3438
  }
3347
3439
  return t && typeof t == `string` ? t : n.href ? `a` : n[`data-_gt`]?.id ? `C${n[`data-_gt`].id}` : `function`;
3348
- }, qt = (e, t, n) => {
3349
- let r = Object.entries(Gt).reduce((e, [n, r]) => {
3440
+ }, tn = (e, t, n) => {
3441
+ let r = Object.entries($t).reduce((e, [n, r]) => {
3350
3442
  let i = t[r];
3351
3443
  return typeof i == `string` && (e[n] = i), e;
3352
3444
  }, {});
3353
3445
  if (e === `plural` && n) {
3354
3446
  let e = {};
3355
3447
  Object.entries(n).forEach(([t, n]) => {
3356
- e[t] = Y(n);
3448
+ e[t] = q(n);
3357
3449
  }), r = {
3358
3450
  ...r,
3359
3451
  b: e,
@@ -3363,7 +3455,7 @@ const Gt = {
3363
3455
  if (e === `branch` && n) {
3364
3456
  let e = {};
3365
3457
  Object.entries(n).forEach(([t, n]) => {
3366
- e[t] = Y(n);
3458
+ e[t] = q(n);
3367
3459
  }), r = {
3368
3460
  ...r,
3369
3461
  b: e,
@@ -3371,27 +3463,27 @@ const Gt = {
3371
3463
  };
3372
3464
  }
3373
3465
  return Object.keys(r).length ? r : void 0;
3374
- }, Jt = (e) => {
3375
- let { props: t } = e, n = { t: Kt(e) };
3466
+ }, nn = (e) => {
3467
+ let { props: t } = e, n = { t: en(e) };
3376
3468
  if (t[`data-_gt`]) {
3377
3469
  let e = t[`data-_gt`], r = e.transformation;
3378
3470
  if (r === `variable`) {
3379
- let n = e.variableType || `variable`, r = Ut(t, n), i = bt(n);
3471
+ let n = e.variableType || `variable`, r = Zt(t, n), i = Ot(n);
3380
3472
  return {
3381
3473
  i: e.id,
3382
3474
  k: r,
3383
3475
  v: i
3384
3476
  };
3385
3477
  }
3386
- n.i = e.id, n.d = qt(r, t, e.branches);
3387
- let i = Object.entries(Gt).reduce((e, [n, r]) => {
3478
+ n.i = e.id, n.d = tn(r, t, e.branches);
3479
+ let i = Object.entries($t).reduce((e, [n, r]) => {
3388
3480
  let i = t[r];
3389
3481
  return typeof i == `string` && (e[n] = i), e;
3390
3482
  }, {});
3391
3483
  if (r === `plural` && e.branches) {
3392
3484
  let t = {};
3393
3485
  Object.entries(e.branches).forEach(([e, n]) => {
3394
- t[e] = Y(n);
3486
+ t[e] = q(n);
3395
3487
  }), i = {
3396
3488
  ...i,
3397
3489
  b: t,
@@ -3401,7 +3493,7 @@ const Gt = {
3401
3493
  if (r === `branch` && e.branches) {
3402
3494
  let t = {};
3403
3495
  Object.entries(e.branches).forEach(([e, n]) => {
3404
- t[e] = Y(n);
3496
+ t[e] = q(n);
3405
3497
  }), i = {
3406
3498
  ...i,
3407
3499
  b: t,
@@ -3410,16 +3502,16 @@ const Gt = {
3410
3502
  }
3411
3503
  n.d = Object.keys(i).length ? i : void 0;
3412
3504
  }
3413
- return t.children && (n.c = Y(t.children)), n;
3414
- }, Yt = (e) => Wt(e) ? Jt(e) : typeof e == `number` ? e.toString() : e;
3415
- function Y(e) {
3416
- return Array.isArray(e) ? e.map(Yt) : Yt(e);
3505
+ return t.children && (n.c = q(t.children)), n;
3506
+ }, rn = (e) => Qt(e) ? nn(e) : typeof e == `number` ? e.toString() : e;
3507
+ function q(e) {
3508
+ return Array.isArray(e) ? e.map(rn) : rn(e);
3417
3509
  }
3418
- function Xt(e, t, n) {
3510
+ function J(e, t, n) {
3419
3511
  let r = ``, i = null;
3420
- return typeof e == `number` && !i && n && (r = vt(e, Object.keys(n).filter(_t), t)), r && !i && (i = n[r]), i;
3512
+ return typeof e == `number` && !i && n && (r = Et(e, Object.keys(n).filter(Tt), t)), r && !i && (i = n[r]), i;
3421
3513
  }
3422
- function Zt(e) {
3514
+ function an(e) {
3423
3515
  if (typeof e == `string`) return !0;
3424
3516
  if (Array.isArray(e)) {
3425
3517
  if (typeof e?.[0] != `string`) return !1;
@@ -3428,7 +3520,7 @@ function Zt(e) {
3428
3520
  }
3429
3521
  return !1;
3430
3522
  }
3431
- function Qt(e, t) {
3523
+ function Y(e, t) {
3432
3524
  let n = e, r = t.split(`.`);
3433
3525
  for (let e of r) {
3434
3526
  if (typeof n != `object` && !Array.isArray(n)) return;
@@ -3446,14 +3538,14 @@ function X(e) {
3446
3538
  }
3447
3539
  return { entry: e };
3448
3540
  }
3449
- function $t(e) {
3541
+ function on(e) {
3450
3542
  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`;
3451
3543
  }
3452
- function en(e) {
3544
+ function sn(e) {
3453
3545
  let t = e[`data-_gt`]?.variableType || `variable`;
3454
3546
  return {
3455
- variableName: Ut(e, t),
3456
- variableType: bt(t),
3547
+ variableName: Zt(e, t),
3548
+ variableType: Ot(t),
3457
3549
  injectionType: e[`data-_gt`]?.injectionType || `manual`,
3458
3550
  variableValue: (() => {
3459
3551
  if (e.value !== void 0) return e.value;
@@ -3472,7 +3564,7 @@ function en(e) {
3472
3564
  })()
3473
3565
  };
3474
3566
  }
3475
- function tn(e) {
3567
+ function cn(e) {
3476
3568
  let t = e;
3477
3569
  if (t && typeof t == `object` && typeof t.k == `string`) {
3478
3570
  let e = Object.keys(t);
@@ -3480,14 +3572,14 @@ function tn(e) {
3480
3572
  }
3481
3573
  return !1;
3482
3574
  }
3483
- function nn(e) {
3575
+ function ln(e) {
3484
3576
  return e && e.props && e.props[`data-_gt`] ? e.props[`data-_gt`] : null;
3485
3577
  }
3486
3578
  function Z({ children: e, defaultLocale: n = `en`, renderVariable: r }) {
3487
3579
  let i = (e) => {
3488
- let i = nn(e);
3489
- if ($t(e.props)) {
3490
- let { variableType: t, variableValue: i, variableOptions: a, injectionType: o } = en(e.props);
3580
+ let i = ln(e);
3581
+ if (on(e.props)) {
3582
+ let { variableType: t, variableValue: i, variableOptions: a, injectionType: o } = sn(e.props);
3491
3583
  return r({
3492
3584
  variableType: t,
3493
3585
  variableValue: i,
@@ -3499,7 +3591,7 @@ function Z({ children: e, defaultLocale: n = `en`, renderVariable: r }) {
3499
3591
  if (i?.transformation === `plural`) {
3500
3592
  let t = i.branches || {};
3501
3593
  if (typeof e.props.n != `number`) return e.props.children == null ? null : o(e.props.children);
3502
- let r = Xt(e.props.n, [n], t);
3594
+ let r = J(e.props.n, [n], t);
3503
3595
  return o(r === null ? e.props.children : r);
3504
3596
  }
3505
3597
  if (i?.transformation === `branch`) {
@@ -3520,9 +3612,9 @@ function Z({ children: e, defaultLocale: n = `en`, renderVariable: r }) {
3520
3612
  }, a = (e) => react.default.isValidElement(e) ? i(e) : e, o = (e) => Array.isArray(e) ? react.default.Children.map(e, a) : a(e);
3521
3613
  return o(e);
3522
3614
  }
3523
- function rn({ sourceElement: e, targetElement: n, locales: r = [`en`], renderVariable: i }) {
3615
+ function un({ sourceElement: e, targetElement: n, locales: r = [`en`], renderVariable: i }) {
3524
3616
  let { props: a } = e, o = a[`data-_gt`], s = o?.transformation, c = n.d, l = {};
3525
- if (c && Object.entries(Gt).forEach(([e, t]) => {
3617
+ if (c && Object.entries($t).forEach(([e, t]) => {
3526
3618
  c[e] && (l[t] = c[e]);
3527
3619
  }), s === `plural`) {
3528
3620
  let t = e.props.n;
@@ -3531,7 +3623,7 @@ function rn({ sourceElement: e, targetElement: n, locales: r = [`en`], renderVar
3531
3623
  defaultLocale: r[0],
3532
3624
  renderVariable: i
3533
3625
  });
3534
- let a = Xt(t, r, o.branches || {}), s = a === null ? e.props.children : a, c = Xt(t, r, n.d?.b || {});
3626
+ let a = J(t, r, o.branches || {}), s = a === null ? e.props.children : a, c = J(t, r, n.d?.b || {});
3535
3627
  return Q({
3536
3628
  source: s,
3537
3629
  target: c === null ? n.c : c,
@@ -3581,18 +3673,18 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
3581
3673
  if (typeof n == `string`) return n;
3582
3674
  if (Array.isArray(n) && !Array.isArray(e) && e && (e = [e]), Array.isArray(e) && Array.isArray(n)) {
3583
3675
  let a = {}, o = {}, c = {}, l = e.filter((e) => {
3584
- if (react.default.isValidElement(e)) if ($t(e.props)) {
3585
- let { variableName: t, variableValue: n, variableOptions: r, injectionType: i } = en(e.props);
3676
+ if (react.default.isValidElement(e)) if (on(e.props)) {
3677
+ let { variableName: t, variableValue: n, variableOptions: r, injectionType: i } = sn(e.props);
3586
3678
  a[t] = n, o[t] = r, c[t] = i;
3587
3679
  } else return !0;
3588
3680
  return !1;
3589
3681
  }), u = (e) => l.find((t) => {
3590
- let n = nn(t);
3682
+ let n = ln(t);
3591
3683
  return n?.id === void 0 ? !1 : n.id === e.i;
3592
3684
  }) || l.shift();
3593
3685
  return n.map((e, n) => {
3594
3686
  if (typeof e == `string`) return (0, react_jsx_runtime.jsx)(react.default.Fragment, { children: e }, `string_${n}`);
3595
- if (C(e)) return (0, react_jsx_runtime.jsx)(react.default.Fragment, { children: i({
3687
+ if (E(e)) return (0, react_jsx_runtime.jsx)(react.default.Fragment, { children: i({
3596
3688
  variableType: e.v || `v`,
3597
3689
  variableValue: a[e.k],
3598
3690
  variableOptions: o[e.k],
@@ -3600,7 +3692,7 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
3600
3692
  injectionType: c[e.k] || `manual`
3601
3693
  }) }, `var_${n}`);
3602
3694
  let l = u(e);
3603
- return l ? (0, react_jsx_runtime.jsx)(react.default.Fragment, { children: rn({
3695
+ return l ? (0, react_jsx_runtime.jsx)(react.default.Fragment, { children: un({
3604
3696
  sourceElement: l,
3605
3697
  targetElement: e,
3606
3698
  locales: r,
@@ -3609,16 +3701,16 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
3609
3701
  });
3610
3702
  }
3611
3703
  if (n && typeof n == `object` && !Array.isArray(n)) {
3612
- let a = C(n) ? `variable` : `element`;
3704
+ let a = E(n) ? `variable` : `element`;
3613
3705
  if (react.default.isValidElement(e)) {
3614
- if (a === `element`) return rn({
3706
+ if (a === `element`) return un({
3615
3707
  sourceElement: e,
3616
3708
  targetElement: n,
3617
3709
  locales: r,
3618
3710
  renderVariable: i
3619
3711
  });
3620
- if ($t(e.props)) {
3621
- let { variableValue: t, variableOptions: n, variableType: a, injectionType: o } = en(e.props);
3712
+ if (on(e.props)) {
3713
+ let { variableValue: t, variableOptions: n, variableType: a, injectionType: o } = sn(e.props);
3622
3714
  return i({
3623
3715
  variableType: a,
3624
3716
  variableValue: t,
@@ -3635,73 +3727,73 @@ function Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {
3635
3727
  renderVariable: i
3636
3728
  });
3637
3729
  }
3638
- const an = (e = `production`) => ({
3730
+ const dn = (e = `production`) => ({
3639
3731
  method: `default`,
3640
3732
  timeout: e === `development` ? 8e3 : 12e3
3641
3733
  });
3642
- function on() {
3734
+ function fn() {
3643
3735
  return ``;
3644
3736
  }
3645
- const sn = `generaltranslation.locale`, cn = `generaltranslation.region`;
3737
+ const pn = `generaltranslation.locale`, mn = `generaltranslation.region`;
3646
3738
  function $(e) {
3647
3739
  return e === void 0 ? !1 : typeof e == `string` ? !0 : Array.isArray(e) ? !(e.length !== 1 && e.length !== 2 || typeof e[0] != `string` || e.length === 2 && (typeof e[1] != `object` || e[1] === null || !(`$context` in e[1]) && !(`$maxChars` in e[1]) && !(`$_hash` in e[1]))) : !1;
3648
3740
  }
3649
- const un = (e) => typeof e == `string` || Array.isArray(e), dn = (e) => typeof e == `object` && !!e && !Array.isArray(e);
3650
- function fn(e, t) {
3651
- if (Array.isArray(e)) return e.map((e, n) => $(e) ? t[n] : fn(e, t[n]));
3741
+ const gn = (e) => typeof e == `string` || Array.isArray(e), _n = (e) => typeof e == `object` && !!e && !Array.isArray(e);
3742
+ function vn(e, t) {
3743
+ if (Array.isArray(e)) return e.map((e, n) => $(e) ? t[n] : vn(e, t[n]));
3652
3744
  let n = {
3653
- ...Object.fromEntries(Object.entries(e).filter(([, e]) => un(e))),
3654
- ...Object.fromEntries(Object.entries(t).filter(([, e]) => un(e)))
3655
- }, r = Object.entries(e).filter(([, e]) => dn(e)).map(([e]) => e), i = Object.entries(t).filter(([, e]) => dn(e)).map(([e]) => e), a = new Set([...r, ...i]);
3656
- for (let r of a) n[r] = fn(_(e, r) || {}, _(t, r) || {});
3745
+ ...Object.fromEntries(Object.entries(e).filter(([, e]) => gn(e))),
3746
+ ...Object.fromEntries(Object.entries(t).filter(([, e]) => gn(e)))
3747
+ }, r = Object.entries(e).filter(([, e]) => _n(e)).map(([e]) => e), i = Object.entries(t).filter(([, e]) => _n(e)).map(([e]) => e), a = new Set([...r, ...i]);
3748
+ for (let r of a) n[r] = vn(_(e, r) || {}, _(t, r) || {});
3657
3749
  return n;
3658
3750
  }
3659
- const pn = typeof react.use == `function`;
3660
- function mn({ dictionary: e, id: t }) {
3751
+ const yn = typeof react.use == `function`;
3752
+ function bn({ dictionary: e, id: t }) {
3661
3753
  if (t === ``) return e;
3662
3754
  let n = e, r = t.split(`.`);
3663
3755
  for (let e of r) n = _(n, e);
3664
3756
  return n;
3665
3757
  }
3666
- function hn({ dictionary: e, id: t, sourceDictionary: n }) {
3758
+ function xn({ dictionary: e, id: t, sourceDictionary: n }) {
3667
3759
  if (t === ``) return e;
3668
3760
  let r = e, i = n, a = t.split(`.`);
3669
3761
  for (let e of a) _(r, e) === void 0 && (Array.isArray(_(i, e)) ? v(r, e, []) : v(r, e, {})), r = _(r, e);
3670
3762
  return r;
3671
3763
  }
3672
- const gn = [
3764
+ const Sn = [
3673
3765
  `constructor`,
3674
3766
  `prototype`,
3675
3767
  `__proto__`
3676
3768
  ];
3677
- function _n(e) {
3678
- return !!gn.includes(e);
3769
+ function Cn(e) {
3770
+ return !!Sn.includes(e);
3679
3771
  }
3680
- function vn(e, t, n, r) {
3772
+ function wn(e, t, n, r) {
3681
3773
  if ($(t)) return e;
3682
3774
  let i = n.split(`.`);
3683
3775
  i.forEach((e) => {
3684
- if (_n(e)) throw Error(`Invalid key: ${e}`);
3776
+ if (Cn(e)) throw Error(`Invalid key: ${e}`);
3685
3777
  }), t ||= {};
3686
3778
  for (let e of i.slice(0, -1)) _(t, e) ?? v(t, e, Array.isArray(_(r, e)) ? [] : {}), t = _(t, e), r = _(r, e);
3687
3779
  let a = i[i.length - 1];
3688
3780
  v(t, a, e);
3689
3781
  }
3690
- function yn(e) {
3782
+ function Tn(e) {
3691
3783
  let t = {};
3692
3784
  return Array.isArray(e) && (t = []), Object.entries(e).forEach(([e, n]) => {
3693
3785
  if ($(n)) {
3694
3786
  let { entry: r } = X(n);
3695
3787
  v(t, e, r);
3696
- } else v(t, e, yn(n));
3788
+ } else v(t, e, Tn(n));
3697
3789
  }), t;
3698
3790
  }
3699
- function bn(e) {
3700
- return ie(ve(ae(e))).slice(0, 16);
3791
+ function En(e) {
3792
+ return de(Te(fe(e))).slice(0, 16);
3701
3793
  }
3702
- function xn({ source: e, context: t, id: n, maxChars: r, dataFormat: i }, a = bn) {
3794
+ function Dn({ source: e, context: t, id: n, maxChars: r, dataFormat: i }, a = En) {
3703
3795
  let o;
3704
- return o = i === `JSX` ? Cn(e) : e, a(te({
3796
+ return o = i === `JSX` ? kn(e) : e, a(re({
3705
3797
  source: o,
3706
3798
  ...n && { id: n },
3707
3799
  ...t && { context: t },
@@ -3709,38 +3801,38 @@ function xn({ source: e, context: t, id: n, maxChars: r, dataFormat: i }, a = bn
3709
3801
  ...i && { dataFormat: i }
3710
3802
  }));
3711
3803
  }
3712
- const Sn = (e) => {
3804
+ const On = (e) => {
3713
3805
  if (e && typeof e == `object`) {
3714
3806
  let t = {};
3715
- if (`c` in e && e.c && (t.c = Cn(e.c)), `d` in e) {
3807
+ if (`c` in e && e.c && (t.c = kn(e.c)), `d` in e) {
3716
3808
  let n = e?.d;
3717
- n?.b && (t.b = Object.fromEntries(Object.entries(n.b).map(([e, t]) => [e, Cn(t)]))), n?.t && (t.t = n.t);
3809
+ n?.b && (t.b = Object.fromEntries(Object.entries(n.b).map(([e, t]) => [e, kn(t)]))), n?.t && (t.t = n.t);
3718
3810
  }
3719
- return C(e) ? {
3811
+ return E(e) ? {
3720
3812
  k: e.k,
3721
3813
  ...e.v && { v: e.v }
3722
3814
  } : t;
3723
3815
  }
3724
3816
  return e;
3725
3817
  };
3726
- function Cn(e) {
3727
- return Array.isArray(e) ? e.map(Sn) : Sn(e);
3818
+ function kn(e) {
3819
+ return Array.isArray(e) ? e.map(On) : On(e);
3728
3820
  }
3729
- function wn(e, t = ``) {
3821
+ function An(e, t = ``) {
3730
3822
  let n = !1;
3731
3823
  return Object.entries(e).forEach(([r, i]) => {
3732
3824
  let a = t ? `${t}.${r}` : r;
3733
3825
  if ($(i)) {
3734
3826
  let { entry: t, metadata: o } = X(i);
3735
- o?.$_hash || (o ||= {}, o.$_hash = xn({
3736
- source: At(t),
3827
+ o?.$_hash || (o ||= {}, o.$_hash = Dn({
3828
+ source: Rt(t),
3737
3829
  ...o?.$context && { context: o.$context },
3738
3830
  ...o?.$maxChars != null && { maxChars: Math.abs(o.$maxChars) },
3739
3831
  id: a,
3740
3832
  dataFormat: `ICU`
3741
3833
  }), v(e, r, [t, o]), n = !0);
3742
3834
  } else {
3743
- let { updateDictionary: e } = wn(i, a);
3835
+ let { updateDictionary: e } = An(i, a);
3744
3836
  n ||= e;
3745
3837
  }
3746
3838
  }), {
@@ -3748,44 +3840,44 @@ function wn(e, t = ``) {
3748
3840
  updateDictionary: n
3749
3841
  };
3750
3842
  }
3751
- function Tn(e, t, n, r, i = ``) {
3843
+ function jn(e, t, n, r, i = ``) {
3752
3844
  let a = !1, o = i ? i.split(`.`) : [];
3753
3845
  return r.forEach(({ metadata: r }) => {
3754
- let { $_hash: i, $id: s } = r, c = o.length > 0 ? s.split(`.`).slice(o.length).join(`.`) : s, l = Qt(t, c), u;
3846
+ let { $_hash: i, $id: s } = r, c = o.length > 0 ? s.split(`.`).slice(o.length).join(`.`) : s, l = Y(t, c), u;
3755
3847
  $(l) && (u = X(l).entry);
3756
3848
  let d = n[i] || u;
3757
- d && (vn(d, t, c, e), a = !0);
3849
+ d && (wn(d, t, c, e), a = !0);
3758
3850
  }), {
3759
3851
  dictionary: t,
3760
3852
  updateDictionary: a
3761
3853
  };
3762
3854
  }
3763
- function En(e, t, n, r = ``) {
3855
+ function Mn(e, t, n, r = ``) {
3764
3856
  let i = r ? r.split(`.`) : [];
3765
3857
  return n.forEach(({ source: n, metadata: r }) => {
3766
- let { $id: a } = r, o = i.length > 0 ? a.split(`.`).slice(i.length).join(`.`) : a, s = Qt(t, o), c;
3767
- $(s) && (c = X(s).entry), vn(c || n, t, o, e);
3858
+ let { $id: a } = r, o = i.length > 0 ? a.split(`.`).slice(i.length).join(`.`) : a, s = Y(t, o), c;
3859
+ $(s) && (c = X(s).entry), wn(c || n, t, o, e);
3768
3860
  }), t;
3769
3861
  }
3770
- function Dn(e, t, n) {
3771
- let r = mn({
3862
+ function Nn(e, t, n) {
3863
+ let r = bn({
3772
3864
  dictionary: e,
3773
3865
  id: n
3774
3866
  });
3775
- if (!r) throw Error(Pt(n));
3776
- if ($(r)) throw Error(Ft());
3777
- return On(e, fn(r, t), n);
3778
- }
3779
- function On(e, t, n) {
3780
- let r = Qt(e, n);
3781
- if (!r) throw Error(Pt(n));
3782
- if ($(r)) throw Error(It());
3867
+ if (!r) throw Error(Ut(n));
3868
+ if ($(r)) throw Error(Wt());
3869
+ return Pn(e, vn(r, t), n);
3870
+ }
3871
+ function Pn(e, t, n) {
3872
+ let r = Y(e, n);
3873
+ if (!r) throw Error(Ut(n));
3874
+ if ($(r)) throw Error(Gt());
3783
3875
  let i = n.split(`.`), a = i.slice(0, -1), o = i[i.length - 1], s = e;
3784
3876
  return a.forEach((e) => {
3785
3877
  s = _(s, e);
3786
3878
  }), v(s, o, t), e;
3787
3879
  }
3788
- function kn(e, t, n = ``) {
3880
+ function Fn(e, t, n = ``) {
3789
3881
  let r = [];
3790
3882
  return Object.entries(e).forEach(([e, i]) => {
3791
3883
  let a = n ? `${n}.${e}` : e;
@@ -3800,10 +3892,10 @@ function kn(e, t, n = ``) {
3800
3892
  $_hash: o?.$_hash || ``
3801
3893
  }
3802
3894
  });
3803
- } else r.push(...kn(i, _(t, e) || (Array.isArray(i) ? [] : {}), a));
3895
+ } else r.push(...Fn(i, _(t, e) || (Array.isArray(i) ? [] : {}), a));
3804
3896
  }), r;
3805
3897
  }
3806
- var An = {
3898
+ var In = {
3807
3899
  warn(e) {
3808
3900
  console.warn(e);
3809
3901
  },
@@ -3817,11 +3909,11 @@ var An = {
3817
3909
  console.debug(e);
3818
3910
  }
3819
3911
  };
3820
- function jn(e) {
3912
+ function Ln(e) {
3821
3913
  return Object.fromEntries(Object.entries(e).filter(([e]) => e !== `$id` && e !== `$context` && e !== `$maxChars` && e !== `$hash` && e !== `$_hash` && e !== `$_source` && e !== `$_fallback` && e !== `$format` && e !== `$_locales` && e !== `$locale`));
3822
3914
  }
3823
- const Mn = (e) => `String interpolation failed for message: "${e}".`;
3824
- function Nn(e, t, n, r) {
3915
+ const Rn = (e) => `String interpolation failed for message: "${e}".`;
3916
+ function zn(e, t, n, r) {
3825
3917
  try {
3826
3918
  return (0, _generaltranslation_format.formatMessage)(e, {
3827
3919
  variables: t,
@@ -3829,126 +3921,126 @@ function Nn(e, t, n, r) {
3829
3921
  dataFormat: r
3830
3922
  });
3831
3923
  } catch {
3832
- return An.warn(Mn(e)), e;
3924
+ return In.warn(Rn(e)), e;
3833
3925
  }
3834
3926
  }
3835
- function Pn(e, t) {
3927
+ function Bn(e, t) {
3836
3928
  if (!e) return e;
3837
- let n = t.$_fallback, r = jn(t);
3929
+ let n = t.$_fallback, r = Ln(t);
3838
3930
  try {
3839
- let i = jt(n || ``);
3840
- return (0, _generaltranslation_format.formatCutoff)(Nn(Object.keys(i).length ? Mt(e) : e, {
3931
+ let i = zt(n || ``);
3932
+ return (0, _generaltranslation_format.formatCutoff)(zn(Object.keys(i).length ? Bt(e) : e, {
3841
3933
  ...r,
3842
3934
  ...i,
3843
- [K]: `other`
3935
+ [U]: `other`
3844
3936
  }, t.$locale ?? t.$_locales, t.$format), { maxChars: t.$maxChars });
3845
3937
  } catch {
3846
- return An.warn(Mn(e)), t.$_fallback == null ? (0, _generaltranslation_format.formatCutoff)(e, { maxChars: t.$maxChars }) : Pn(t.$_fallback, {
3938
+ return In.warn(Rn(e)), t.$_fallback == null ? (0, _generaltranslation_format.formatCutoff)(e, { maxChars: t.$maxChars }) : Bn(t.$_fallback, {
3847
3939
  ...t,
3848
3940
  $_fallback: void 0
3849
3941
  });
3850
3942
  }
3851
3943
  }
3852
- function Fn(e) {
3944
+ function Vn(e) {
3853
3945
  if (e.lastIndexOf(`:`) === -1) return null;
3854
3946
  let t = e.slice(e.lastIndexOf(`:`) + 1);
3855
3947
  try {
3856
- return JSON.parse(x(t));
3948
+ return JSON.parse(w(t));
3857
3949
  } catch {
3858
3950
  return null;
3859
3951
  }
3860
3952
  }
3861
- function In(e) {
3953
+ function Hn(e) {
3862
3954
  return !!(e.$_hash && e.$_source);
3863
3955
  }
3864
- function Ln(e, t) {
3956
+ function Un(e, t) {
3865
3957
  let n = t;
3866
- return n.$_hash == null ? xn({
3867
- source: t.$format === `ICU` ? At(e) : e,
3958
+ return n.$_hash == null ? Dn({
3959
+ source: t.$format === `ICU` ? Rt(e) : e,
3868
3960
  ...n.$context && { context: n.$context },
3869
3961
  ...n.$id && { id: n.$id },
3870
3962
  ...n.$maxChars != null && { maxChars: Math.abs(n.$maxChars) },
3871
3963
  dataFormat: t.$format
3872
3964
  }) : n.$_hash;
3873
3965
  }
3874
- function Rn(e) {
3966
+ function Wn(e) {
3875
3967
  return typeof e == `string` && e.lastIndexOf(`:`) !== -1 ? e.slice(0, e.lastIndexOf(`:`)) : e;
3876
3968
  }
3877
- const zn = (e, t = {}) => Pn(e, t), Bn = (e, t = {}) => e && (In(Fn(e) ?? {}) ? Rn(e) : Pn(e, t));
3878
- function Vn(e, t) {
3879
- if (typeof e != `string`) return t ? e.map((e, n) => Vn(e, {
3969
+ const Gn = (e, t = {}) => Bn(e, t), Kn = (e, t = {}) => e && (Hn(Vn(e) ?? {}) ? Wn(e) : Bn(e, t));
3970
+ function qn(e, t) {
3971
+ if (typeof e != `string`) return t ? e.map((e, n) => qn(e, {
3880
3972
  ...t,
3881
3973
  ...t.$id && { $id: `${t.$id}.${n}` }
3882
3974
  })) : e;
3883
3975
  if (!t) return e;
3884
- let n = jn(t), r = e;
3976
+ let n = Ln(t), r = e;
3885
3977
  try {
3886
3978
  r = (0, _generaltranslation_format.formatMessage)(e, {
3887
3979
  locales: [`en`],
3888
3980
  variables: {
3889
3981
  ...n,
3890
- [K]: `other`
3982
+ [U]: `other`
3891
3983
  }
3892
3984
  });
3893
3985
  } catch {
3894
- return An.warn(Mn(e)), e;
3986
+ return In.warn(Rn(e)), e;
3895
3987
  }
3896
- let i = e, a = t.$_hash || Ln(e, {
3988
+ let i = e, a = t.$_hash || Un(e, {
3897
3989
  $format: `ICU`,
3898
3990
  ...t
3899
3991
  }), s = {
3900
3992
  ...t,
3901
3993
  $_source: i,
3902
3994
  $_hash: a
3903
- }, c = ee(JSON.stringify(s));
3995
+ }, c = C(JSON.stringify(s));
3904
3996
  return `${r}:${c}`;
3905
3997
  }
3906
- function Hn({ children: e }) {
3998
+ function Jn({ children: e }) {
3907
3999
  return e;
3908
4000
  }
3909
- function Un(e) {
3910
- return Hn(e);
4001
+ function Yn(e) {
4002
+ return Jn(e);
3911
4003
  }
3912
- Hn._gtt = `derive`, Un._gtt = `derive`;
4004
+ Jn._gtt = `derive`, Yn._gtt = `derive`;
3913
4005
  //#endregion
3914
- exports.Derive = Hn;
3915
- exports.Static = Un;
3916
- exports.addGTIdentifier = Nt;
3917
- exports.collectUntranslatedEntries = kn;
3918
- exports.declareStatic = kt;
3919
- exports.declareVar = Dt;
3920
- exports.decodeMsg = Rn;
3921
- exports.decodeOptions = Fn;
3922
- exports.decodeVars = Tt;
3923
- exports.defaultLocaleCookieName = sn;
3924
- exports.defaultRegionCookieName = cn;
3925
- exports.derive = Ot;
3926
- exports.flattenDictionary = b;
3927
- exports.getDefaultRenderSettings = an;
3928
- exports.getDictionaryEntry = Qt;
4006
+ exports.Derive = Jn;
4007
+ exports.Static = Yn;
4008
+ exports.addGTIdentifier = Vt;
4009
+ exports.collectUntranslatedEntries = Fn;
4010
+ exports.declareStatic = Lt;
4011
+ exports.declareVar = Ft;
4012
+ exports.decodeMsg = Wn;
4013
+ exports.decodeOptions = Vn;
4014
+ exports.decodeVars = Nt;
4015
+ exports.defaultLocaleCookieName = pn;
4016
+ exports.defaultRegionCookieName = mn;
4017
+ exports.derive = It;
4018
+ exports.flattenDictionary = y;
4019
+ exports.getDefaultRenderSettings = dn;
4020
+ exports.getDictionaryEntry = Y;
3929
4021
  exports.getEntryAndMetadata = X;
3930
- exports.getPluralBranch = Xt;
3931
- exports.getSubtree = mn;
3932
- exports.getSubtreeWithCreation = hn;
3933
- exports.getVariableName = Ut;
3934
- exports.getVariableProps = en;
3935
- exports.gtFallback = zn;
3936
- exports.injectAndMerge = Dn;
3937
- exports.injectEntry = vn;
3938
- exports.injectFallbacks = En;
3939
- exports.injectHashes = wn;
3940
- exports.injectTranslations = Tn;
4022
+ exports.getPluralBranch = J;
4023
+ exports.getSubtree = bn;
4024
+ exports.getSubtreeWithCreation = xn;
4025
+ exports.getVariableName = Zt;
4026
+ exports.getVariableProps = sn;
4027
+ exports.gtFallback = Gn;
4028
+ exports.injectAndMerge = Nn;
4029
+ exports.injectEntry = wn;
4030
+ exports.injectFallbacks = Mn;
4031
+ exports.injectHashes = An;
4032
+ exports.injectTranslations = jn;
3941
4033
  exports.isDictionaryEntry = $;
3942
- exports.isValidDictionaryEntry = Zt;
3943
- exports.isVariableObject = tn;
3944
- exports.mFallback = Bn;
3945
- exports.mergeDictionaries = fn;
3946
- exports.msg = Vn;
3947
- exports.reactHasUse = pn;
4034
+ exports.isValidDictionaryEntry = an;
4035
+ exports.isVariableObject = cn;
4036
+ exports.mFallback = Kn;
4037
+ exports.mergeDictionaries = vn;
4038
+ exports.msg = qn;
4039
+ exports.reactHasUse = yn;
3948
4040
  exports.renderDefaultChildren = Z;
3949
- exports.renderSkeleton = on;
4041
+ exports.renderSkeleton = fn;
3950
4042
  exports.renderTranslatedChildren = Q;
3951
- exports.stripMetadataFromEntries = yn;
3952
- exports.writeChildrenAsObjects = Y;
4043
+ exports.stripMetadataFromEntries = Tn;
4044
+ exports.writeChildrenAsObjects = q;
3953
4045
 
3954
4046
  //# sourceMappingURL=internal.cjs.map