gc_i18n 1.1.4 → 1.1.6

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/lib/gc_i18n.js CHANGED
@@ -50,8 +50,8 @@ function zs(e, t = 0, n = e.length) {
50
50
  for (let l = o - dn; l <= o + dn || n > a; l++) {
51
51
  if (l < 0 || l >= s.length)
52
52
  continue;
53
- const u = l + 1;
54
- r.push(`${u}${" ".repeat(3 - String(u).length)}| ${s[l]}`);
53
+ const c = l + 1;
54
+ r.push(`${c}${" ".repeat(3 - String(c).length)}| ${s[l]}`);
55
55
  const _ = s[l].length;
56
56
  if (l === o) {
57
57
  const N = t - (a - _) + 1, T = Math.max(1, n > a ? _ - N : n - t);
@@ -171,7 +171,7 @@ const aa = /<\/?[\w\s="/.':;#-\/]+>/, ra = (e) => aa.test(e), ge = " ", oa = "\r
171
171
  function ca(e) {
172
172
  const t = e;
173
173
  let n = 0, s = 1, a = 1, r = 0;
174
- const o = (p) => t[p] === oa && t[p + 1] === Z, l = (p) => t[p] === Z, u = (p) => t[p] === ia, _ = (p) => t[p] === la, N = (p) => o(p) || l(p) || u(p) || _(p), T = () => n, E = () => s, A = () => a, C = () => r, y = (p) => o(p) || u(p) || _(p) ? Z : t[p], S = () => y(n), f = () => y(n + r);
174
+ const o = (p) => t[p] === oa && t[p + 1] === Z, l = (p) => t[p] === Z, c = (p) => t[p] === ia, _ = (p) => t[p] === la, N = (p) => o(p) || l(p) || c(p) || _(p), T = () => n, E = () => s, A = () => a, C = () => r, y = (p) => o(p) || c(p) || _(p) ? Z : t[p], S = () => y(n), f = () => y(n + r);
175
175
  function d() {
176
176
  return r = 0, N(n) && (s++, a = 0), o(n) && n++, n++, a++, t[n];
177
177
  }
@@ -207,7 +207,7 @@ function ca(e) {
207
207
  }
208
208
  const pe = void 0, ua = ".", En = "'", fa = "tokenizer";
209
209
  function _a(e, t = {}) {
210
- const n = t.location !== !1, s = ca(e), a = () => s.index(), r = () => ea(s.line(), s.column(), s.index()), o = r(), l = a(), u = {
210
+ const n = t.location !== !1, s = ca(e), a = () => s.index(), r = () => ea(s.line(), s.column(), s.index()), o = r(), l = a(), c = {
211
211
  currentType: 13,
212
212
  offset: l,
213
213
  startLoc: o,
@@ -219,20 +219,20 @@ function _a(e, t = {}) {
219
219
  braceNest: 0,
220
220
  inLinked: !1,
221
221
  text: ""
222
- }, _ = () => u, { onError: N } = t;
223
- function T(i, c, h, ...D) {
222
+ }, _ = () => c, { onError: N } = t;
223
+ function T(i, u, h, ...D) {
224
224
  const Y = _();
225
- if (c.column += h, c.offset += h, N) {
226
- const H = n ? Mt(Y.startLoc, c) : null, w = Ve(i, H, {
225
+ if (u.column += h, u.offset += h, N) {
226
+ const H = n ? Mt(Y.startLoc, u) : null, w = Ve(i, H, {
227
227
  domain: fa,
228
228
  args: D
229
229
  });
230
230
  N(w);
231
231
  }
232
232
  }
233
- function E(i, c, h) {
234
- i.endLoc = r(), i.currentType = c;
235
- const D = { type: c };
233
+ function E(i, u, h) {
234
+ i.endLoc = r(), i.currentType = u;
235
+ const D = { type: u };
236
236
  return n && (D.loc = Mt(i.startLoc, i.endLoc)), h != null && (D.value = h), D;
237
237
  }
238
238
  const A = (i) => E(
@@ -240,83 +240,83 @@ function _a(e, t = {}) {
240
240
  13
241
241
  /* TokenTypes.EOF */
242
242
  );
243
- function C(i, c) {
244
- return i.currentChar() === c ? (i.next(), c) : (T(k.EXPECTED_TOKEN, r(), 0, c), "");
243
+ function C(i, u) {
244
+ return i.currentChar() === u ? (i.next(), u) : (T(k.EXPECTED_TOKEN, r(), 0, u), "");
245
245
  }
246
246
  function y(i) {
247
- let c = "";
247
+ let u = "";
248
248
  for (; i.currentPeek() === ge || i.currentPeek() === Z; )
249
- c += i.currentPeek(), i.peek();
250
- return c;
249
+ u += i.currentPeek(), i.peek();
250
+ return u;
251
251
  }
252
252
  function S(i) {
253
- const c = y(i);
254
- return i.skipToPeek(), c;
253
+ const u = y(i);
254
+ return i.skipToPeek(), u;
255
255
  }
256
256
  function f(i) {
257
257
  if (i === pe)
258
258
  return !1;
259
- const c = i.charCodeAt(0);
260
- return c >= 97 && c <= 122 || // a-z
261
- c >= 65 && c <= 90 || // A-Z
262
- c === 95;
259
+ const u = i.charCodeAt(0);
260
+ return u >= 97 && u <= 122 || // a-z
261
+ u >= 65 && u <= 90 || // A-Z
262
+ u === 95;
263
263
  }
264
264
  function d(i) {
265
265
  if (i === pe)
266
266
  return !1;
267
- const c = i.charCodeAt(0);
268
- return c >= 48 && c <= 57;
267
+ const u = i.charCodeAt(0);
268
+ return u >= 48 && u <= 57;
269
269
  }
270
- function O(i, c) {
271
- const { currentType: h } = c;
270
+ function O(i, u) {
271
+ const { currentType: h } = u;
272
272
  if (h !== 2)
273
273
  return !1;
274
274
  y(i);
275
275
  const D = f(i.currentPeek());
276
276
  return i.resetPeek(), D;
277
277
  }
278
- function g(i, c) {
279
- const { currentType: h } = c;
278
+ function g(i, u) {
279
+ const { currentType: h } = u;
280
280
  if (h !== 2)
281
281
  return !1;
282
282
  y(i);
283
283
  const D = i.currentPeek() === "-" ? i.peek() : i.currentPeek(), Y = d(D);
284
284
  return i.resetPeek(), Y;
285
285
  }
286
- function b(i, c) {
287
- const { currentType: h } = c;
286
+ function b(i, u) {
287
+ const { currentType: h } = u;
288
288
  if (h !== 2)
289
289
  return !1;
290
290
  y(i);
291
291
  const D = i.currentPeek() === En;
292
292
  return i.resetPeek(), D;
293
293
  }
294
- function v(i, c) {
295
- const { currentType: h } = c;
294
+ function v(i, u) {
295
+ const { currentType: h } = u;
296
296
  if (h !== 7)
297
297
  return !1;
298
298
  y(i);
299
299
  const D = i.currentPeek() === ".";
300
300
  return i.resetPeek(), D;
301
301
  }
302
- function p(i, c) {
303
- const { currentType: h } = c;
302
+ function p(i, u) {
303
+ const { currentType: h } = u;
304
304
  if (h !== 8)
305
305
  return !1;
306
306
  y(i);
307
307
  const D = f(i.currentPeek());
308
308
  return i.resetPeek(), D;
309
309
  }
310
- function P(i, c) {
311
- const { currentType: h } = c;
310
+ function P(i, u) {
311
+ const { currentType: h } = u;
312
312
  if (!(h === 7 || h === 11))
313
313
  return !1;
314
314
  y(i);
315
315
  const D = i.currentPeek() === ":";
316
316
  return i.resetPeek(), D;
317
317
  }
318
- function U(i, c) {
319
- const { currentType: h } = c;
318
+ function U(i, u) {
319
+ const { currentType: h } = u;
320
320
  if (h !== 9)
321
321
  return !1;
322
322
  const D = () => {
@@ -327,272 +327,272 @@ function _a(e, t = {}) {
327
327
  }
328
328
  function X(i) {
329
329
  y(i);
330
- const c = i.currentPeek() === "|";
331
- return i.resetPeek(), c;
330
+ const u = i.currentPeek() === "|";
331
+ return i.resetPeek(), u;
332
332
  }
333
- function oe(i, c = !0) {
333
+ function oe(i, u = !0) {
334
334
  const h = (Y = !1, H = "") => {
335
335
  const w = i.currentPeek();
336
336
  return w === "{" || w === "@" || !w ? Y : w === "|" ? !(H === ge || H === Z) : w === ge ? (i.peek(), h(!0, ge)) : w === Z ? (i.peek(), h(!0, Z)) : !0;
337
337
  }, D = h();
338
- return c && i.resetPeek(), D;
338
+ return u && i.resetPeek(), D;
339
339
  }
340
- function J(i, c) {
340
+ function J(i, u) {
341
341
  const h = i.currentChar();
342
- return h === pe ? pe : c(h) ? (i.next(), h) : null;
342
+ return h === pe ? pe : u(h) ? (i.next(), h) : null;
343
343
  }
344
344
  function Pe(i) {
345
- const c = i.charCodeAt(0);
346
- return c >= 97 && c <= 122 || // a-z
347
- c >= 65 && c <= 90 || // A-Z
348
- c >= 48 && c <= 57 || // 0-9
349
- c === 95 || // _
350
- c === 36;
345
+ const u = i.charCodeAt(0);
346
+ return u >= 97 && u <= 122 || // a-z
347
+ u >= 65 && u <= 90 || // A-Z
348
+ u >= 48 && u <= 57 || // 0-9
349
+ u === 95 || // _
350
+ u === 36;
351
351
  }
352
352
  function _t(i) {
353
353
  return J(i, Pe);
354
354
  }
355
355
  function mt(i) {
356
- const c = i.charCodeAt(0);
357
- return c >= 97 && c <= 122 || // a-z
358
- c >= 65 && c <= 90 || // A-Z
359
- c >= 48 && c <= 57 || // 0-9
360
- c === 95 || // _
361
- c === 36 || // $
362
- c === 45;
356
+ const u = i.charCodeAt(0);
357
+ return u >= 97 && u <= 122 || // a-z
358
+ u >= 65 && u <= 90 || // A-Z
359
+ u >= 48 && u <= 57 || // 0-9
360
+ u === 95 || // _
361
+ u === 36 || // $
362
+ u === 45;
363
363
  }
364
364
  function dt(i) {
365
365
  return J(i, mt);
366
366
  }
367
367
  function gt(i) {
368
- const c = i.charCodeAt(0);
369
- return c >= 48 && c <= 57;
368
+ const u = i.charCodeAt(0);
369
+ return u >= 48 && u <= 57;
370
370
  }
371
371
  function Et(i) {
372
372
  return J(i, gt);
373
373
  }
374
374
  function pt(i) {
375
- const c = i.charCodeAt(0);
376
- return c >= 48 && c <= 57 || // 0-9
377
- c >= 65 && c <= 70 || // A-F
378
- c >= 97 && c <= 102;
375
+ const u = i.charCodeAt(0);
376
+ return u >= 48 && u <= 57 || // 0-9
377
+ u >= 65 && u <= 70 || // A-F
378
+ u >= 97 && u <= 102;
379
379
  }
380
380
  function me(i) {
381
381
  return J(i, pt);
382
382
  }
383
383
  function We(i) {
384
- let c = "", h = "";
385
- for (; c = Et(i); )
386
- h += c;
384
+ let u = "", h = "";
385
+ for (; u = Et(i); )
386
+ h += u;
387
387
  return h;
388
388
  }
389
389
  function ht(i) {
390
- let c = "";
390
+ let u = "";
391
391
  for (; ; ) {
392
392
  const h = i.currentChar();
393
393
  if (h === "{" || h === "}" || h === "@" || h === "|" || !h)
394
394
  break;
395
395
  if (h === ge || h === Z)
396
396
  if (oe(i))
397
- c += h, i.next();
397
+ u += h, i.next();
398
398
  else {
399
399
  if (X(i))
400
400
  break;
401
- c += h, i.next();
401
+ u += h, i.next();
402
402
  }
403
403
  else
404
- c += h, i.next();
404
+ u += h, i.next();
405
405
  }
406
- return c;
406
+ return u;
407
407
  }
408
408
  function Nt(i) {
409
409
  S(i);
410
- let c = "", h = "";
411
- for (; c = dt(i); )
412
- h += c;
410
+ let u = "", h = "";
411
+ for (; u = dt(i); )
412
+ h += u;
413
413
  return i.currentChar() === pe && T(k.UNTERMINATED_CLOSING_BRACE, r(), 0), h;
414
414
  }
415
415
  function Tt(i) {
416
416
  S(i);
417
- let c = "";
418
- return i.currentChar() === "-" ? (i.next(), c += `-${We(i)}`) : c += We(i), i.currentChar() === pe && T(k.UNTERMINATED_CLOSING_BRACE, r(), 0), c;
417
+ let u = "";
418
+ return i.currentChar() === "-" ? (i.next(), u += `-${We(i)}`) : u += We(i), i.currentChar() === pe && T(k.UNTERMINATED_CLOSING_BRACE, r(), 0), u;
419
419
  }
420
420
  function Lt(i) {
421
421
  return i !== En && i !== Z;
422
422
  }
423
423
  function on(i) {
424
424
  S(i), C(i, "'");
425
- let c = "", h = "";
426
- for (; c = J(i, Lt); )
427
- c === "\\" ? h += Ot(i) : h += c;
425
+ let u = "", h = "";
426
+ for (; u = J(i, Lt); )
427
+ u === "\\" ? h += Ot(i) : h += u;
428
428
  const D = i.currentChar();
429
429
  return D === Z || D === pe ? (T(k.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, r(), 0), D === Z && (i.next(), C(i, "'")), h) : (C(i, "'"), h);
430
430
  }
431
431
  function Ot(i) {
432
- const c = i.currentChar();
433
- switch (c) {
432
+ const u = i.currentChar();
433
+ switch (u) {
434
434
  case "\\":
435
435
  case "'":
436
- return i.next(), `\\${c}`;
436
+ return i.next(), `\\${u}`;
437
437
  case "u":
438
- return ze(i, c, 4);
438
+ return ze(i, u, 4);
439
439
  case "U":
440
- return ze(i, c, 6);
440
+ return ze(i, u, 6);
441
441
  default:
442
- return T(k.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, c), "";
442
+ return T(k.UNKNOWN_ESCAPE_SEQUENCE, r(), 0, u), "";
443
443
  }
444
444
  }
445
- function ze(i, c, h) {
446
- C(i, c);
445
+ function ze(i, u, h) {
446
+ C(i, u);
447
447
  let D = "";
448
448
  for (let Y = 0; Y < h; Y++) {
449
449
  const H = me(i);
450
450
  if (!H) {
451
- T(k.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${c}${D}${i.currentChar()}`);
451
+ T(k.INVALID_UNICODE_ESCAPE_SEQUENCE, r(), 0, `\\${u}${D}${i.currentChar()}`);
452
452
  break;
453
453
  }
454
454
  D += H;
455
455
  }
456
- return `\\${c}${D}`;
456
+ return `\\${u}${D}`;
457
457
  }
458
458
  function bt(i) {
459
459
  return i !== "{" && i !== "}" && i !== ge && i !== Z;
460
460
  }
461
461
  function It(i) {
462
462
  S(i);
463
- let c = "", h = "";
464
- for (; c = J(i, bt); )
465
- h += c;
463
+ let u = "", h = "";
464
+ for (; u = J(i, bt); )
465
+ h += u;
466
466
  return h;
467
467
  }
468
468
  function vt(i) {
469
- let c = "", h = "";
470
- for (; c = _t(i); )
471
- h += c;
469
+ let u = "", h = "";
470
+ for (; u = _t(i); )
471
+ h += u;
472
472
  return h;
473
473
  }
474
474
  function yt(i) {
475
- const c = (h) => {
475
+ const u = (h) => {
476
476
  const D = i.currentChar();
477
- return D === "{" || D === "@" || D === "|" || D === "(" || D === ")" || !D || D === ge ? h : (h += D, i.next(), c(h));
477
+ return D === "{" || D === "@" || D === "|" || D === "(" || D === ")" || !D || D === ge ? h : (h += D, i.next(), u(h));
478
478
  };
479
- return c("");
479
+ return u("");
480
480
  }
481
481
  function $e(i) {
482
482
  S(i);
483
- const c = C(
483
+ const u = C(
484
484
  i,
485
485
  "|"
486
486
  /* TokenChars.Pipe */
487
487
  );
488
- return S(i), c;
488
+ return S(i), u;
489
489
  }
490
- function xe(i, c) {
490
+ function xe(i, u) {
491
491
  let h = null;
492
492
  switch (i.currentChar()) {
493
493
  case "{":
494
- return c.braceNest >= 1 && T(k.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), i.next(), h = E(
495
- c,
494
+ return u.braceNest >= 1 && T(k.NOT_ALLOW_NEST_PLACEHOLDER, r(), 0), i.next(), h = E(
495
+ u,
496
496
  2,
497
497
  "{"
498
498
  /* TokenChars.BraceLeft */
499
- ), S(i), c.braceNest++, h;
499
+ ), S(i), u.braceNest++, h;
500
500
  case "}":
501
- return c.braceNest > 0 && c.currentType === 2 && T(k.EMPTY_PLACEHOLDER, r(), 0), i.next(), h = E(
502
- c,
501
+ return u.braceNest > 0 && u.currentType === 2 && T(k.EMPTY_PLACEHOLDER, r(), 0), i.next(), h = E(
502
+ u,
503
503
  3,
504
504
  "}"
505
505
  /* TokenChars.BraceRight */
506
- ), c.braceNest--, c.braceNest > 0 && S(i), c.inLinked && c.braceNest === 0 && (c.inLinked = !1), h;
506
+ ), u.braceNest--, u.braceNest > 0 && S(i), u.inLinked && u.braceNest === 0 && (u.inLinked = !1), h;
507
507
  case "@":
508
- return c.braceNest > 0 && T(k.UNTERMINATED_CLOSING_BRACE, r(), 0), h = Le(i, c) || A(c), c.braceNest = 0, h;
508
+ return u.braceNest > 0 && T(k.UNTERMINATED_CLOSING_BRACE, r(), 0), h = Le(i, u) || A(u), u.braceNest = 0, h;
509
509
  default: {
510
510
  let Y = !0, H = !0, w = !0;
511
511
  if (X(i))
512
- return c.braceNest > 0 && T(k.UNTERMINATED_CLOSING_BRACE, r(), 0), h = E(c, 1, $e(i)), c.braceNest = 0, c.inLinked = !1, h;
513
- if (c.braceNest > 0 && (c.currentType === 4 || c.currentType === 5 || c.currentType === 6))
514
- return T(k.UNTERMINATED_CLOSING_BRACE, r(), 0), c.braceNest = 0, Ge(i, c);
515
- if (Y = O(i, c))
516
- return h = E(c, 4, Nt(i)), S(i), h;
517
- if (H = g(i, c))
518
- return h = E(c, 5, Tt(i)), S(i), h;
519
- if (w = b(i, c))
520
- return h = E(c, 6, on(i)), S(i), h;
512
+ return u.braceNest > 0 && T(k.UNTERMINATED_CLOSING_BRACE, r(), 0), h = E(u, 1, $e(i)), u.braceNest = 0, u.inLinked = !1, h;
513
+ if (u.braceNest > 0 && (u.currentType === 4 || u.currentType === 5 || u.currentType === 6))
514
+ return T(k.UNTERMINATED_CLOSING_BRACE, r(), 0), u.braceNest = 0, Ge(i, u);
515
+ if (Y = O(i, u))
516
+ return h = E(u, 4, Nt(i)), S(i), h;
517
+ if (H = g(i, u))
518
+ return h = E(u, 5, Tt(i)), S(i), h;
519
+ if (w = b(i, u))
520
+ return h = E(u, 6, on(i)), S(i), h;
521
521
  if (!Y && !H && !w)
522
- return h = E(c, 12, It(i)), T(k.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, h.value), S(i), h;
522
+ return h = E(u, 12, It(i)), T(k.INVALID_TOKEN_IN_PLACEHOLDER, r(), 0, h.value), S(i), h;
523
523
  break;
524
524
  }
525
525
  }
526
526
  return h;
527
527
  }
528
- function Le(i, c) {
529
- const { currentType: h } = c;
528
+ function Le(i, u) {
529
+ const { currentType: h } = u;
530
530
  let D = null;
531
531
  const Y = i.currentChar();
532
532
  switch ((h === 7 || h === 8 || h === 11 || h === 9) && (Y === Z || Y === ge) && T(k.INVALID_LINKED_FORMAT, r(), 0), Y) {
533
533
  case "@":
534
534
  return i.next(), D = E(
535
- c,
535
+ u,
536
536
  7,
537
537
  "@"
538
538
  /* TokenChars.LinkedAlias */
539
- ), c.inLinked = !0, D;
539
+ ), u.inLinked = !0, D;
540
540
  case ".":
541
541
  return S(i), i.next(), E(
542
- c,
542
+ u,
543
543
  8,
544
544
  "."
545
545
  /* TokenChars.LinkedDot */
546
546
  );
547
547
  case ":":
548
548
  return S(i), i.next(), E(
549
- c,
549
+ u,
550
550
  9,
551
551
  ":"
552
552
  /* TokenChars.LinkedDelimiter */
553
553
  );
554
554
  default:
555
- return X(i) ? (D = E(c, 1, $e(i)), c.braceNest = 0, c.inLinked = !1, D) : v(i, c) || P(i, c) ? (S(i), Le(i, c)) : p(i, c) ? (S(i), E(c, 11, vt(i))) : U(i, c) ? (S(i), Y === "{" ? xe(i, c) || D : E(c, 10, yt(i))) : (h === 7 && T(k.INVALID_LINKED_FORMAT, r(), 0), c.braceNest = 0, c.inLinked = !1, Ge(i, c));
555
+ return X(i) ? (D = E(u, 1, $e(i)), u.braceNest = 0, u.inLinked = !1, D) : v(i, u) || P(i, u) ? (S(i), Le(i, u)) : p(i, u) ? (S(i), E(u, 11, vt(i))) : U(i, u) ? (S(i), Y === "{" ? xe(i, u) || D : E(u, 10, yt(i))) : (h === 7 && T(k.INVALID_LINKED_FORMAT, r(), 0), u.braceNest = 0, u.inLinked = !1, Ge(i, u));
556
556
  }
557
557
  }
558
- function Ge(i, c) {
558
+ function Ge(i, u) {
559
559
  let h = {
560
560
  type: 13
561
561
  /* TokenTypes.EOF */
562
562
  };
563
- if (c.braceNest > 0)
564
- return xe(i, c) || A(c);
565
- if (c.inLinked)
566
- return Le(i, c) || A(c);
563
+ if (u.braceNest > 0)
564
+ return xe(i, u) || A(u);
565
+ if (u.inLinked)
566
+ return Le(i, u) || A(u);
567
567
  switch (i.currentChar()) {
568
568
  case "{":
569
- return xe(i, c) || A(c);
569
+ return xe(i, u) || A(u);
570
570
  case "}":
571
571
  return T(k.UNBALANCED_CLOSING_BRACE, r(), 0), i.next(), E(
572
- c,
572
+ u,
573
573
  3,
574
574
  "}"
575
575
  /* TokenChars.BraceRight */
576
576
  );
577
577
  case "@":
578
- return Le(i, c) || A(c);
578
+ return Le(i, u) || A(u);
579
579
  default: {
580
580
  if (X(i))
581
- return h = E(c, 1, $e(i)), c.braceNest = 0, c.inLinked = !1, h;
581
+ return h = E(u, 1, $e(i)), u.braceNest = 0, u.inLinked = !1, h;
582
582
  if (oe(i))
583
- return E(c, 0, ht(i));
583
+ return E(u, 0, ht(i));
584
584
  break;
585
585
  }
586
586
  }
587
587
  return h;
588
588
  }
589
589
  function At() {
590
- const { currentType: i, offset: c, startLoc: h, endLoc: D } = u;
591
- return u.lastType = i, u.lastOffset = c, u.lastStartLoc = h, u.lastEndLoc = D, u.offset = a(), u.startLoc = r(), s.currentChar() === pe ? E(
592
- u,
590
+ const { currentType: i, offset: u, startLoc: h, endLoc: D } = c;
591
+ return c.lastType = i, c.lastOffset = u, c.lastStartLoc = h, c.lastEndLoc = D, c.offset = a(), c.startLoc = r(), s.currentChar() === pe ? E(
592
+ c,
593
593
  13
594
594
  /* TokenTypes.EOF */
595
- ) : Ge(s, u);
595
+ ) : Ge(s, c);
596
596
  }
597
597
  return {
598
598
  nextToken: At,
@@ -642,7 +642,7 @@ function Ea(e = {}) {
642
642
  const O = f.context(), { lastOffset: g, lastStartLoc: b } = O, v = a(5, g, b);
643
643
  return v.index = parseInt(d, 10), f.nextToken(), r(v, f.currentOffset(), f.currentPosition()), v;
644
644
  }
645
- function u(f, d) {
645
+ function c(f, d) {
646
646
  const O = f.context(), { lastOffset: g, lastStartLoc: b } = O, v = a(4, g, b);
647
647
  return v.key = d, f.nextToken(), r(v, f.currentOffset(), f.currentPosition()), v;
648
648
  }
@@ -675,7 +675,7 @@ function Ea(e = {}) {
675
675
  g.value == null && s(f, k.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(g)), O.key = T(f, g.value || "");
676
676
  break;
677
677
  case 4:
678
- g.value == null && s(f, k.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(g)), O.key = u(f, g.value || "");
678
+ g.value == null && s(f, k.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(g)), O.key = c(f, g.value || "");
679
679
  break;
680
680
  case 5:
681
681
  g.value == null && s(f, k.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(g)), O.key = l(f, g.value || "");
@@ -710,7 +710,7 @@ function Ea(e = {}) {
710
710
  U.value == null && s(f, k.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(U)), b.items.push(l(f, U.value || ""));
711
711
  break;
712
712
  case 4:
713
- U.value == null && s(f, k.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(U)), b.items.push(u(f, U.value || ""));
713
+ U.value == null && s(f, k.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(U)), b.items.push(c(f, U.value || ""));
714
714
  break;
715
715
  case 6:
716
716
  U.value == null && s(f, k.UNEXPECTED_LEXICAL_ANALYSIS, d.lastStartLoc, 0, ue(U)), b.items.push(_(f, U.value || ""));
@@ -907,12 +907,12 @@ function Oa(e, t) {
907
907
  };
908
908
  r && e.loc && (o.source = e.loc.source);
909
909
  const l = () => o;
910
- function u(y, S) {
910
+ function c(y, S) {
911
911
  o.code += y;
912
912
  }
913
913
  function _(y, S = !0) {
914
914
  const f = S ? s : "";
915
- u(a ? f + " ".repeat(y) : f);
915
+ c(a ? f + " ".repeat(y) : f);
916
916
  }
917
917
  function N(y = !0) {
918
918
  const S = ++o.indentLevel;
@@ -927,7 +927,7 @@ function Oa(e, t) {
927
927
  }
928
928
  return {
929
929
  context: l,
930
- push: u,
930
+ push: c,
931
931
  indent: N,
932
932
  deindent: T,
933
933
  newline: E,
@@ -1032,10 +1032,10 @@ const Aa = (e, t = {}) => {
1032
1032
  needIndent: r
1033
1033
  });
1034
1034
  l.push(n === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), l.indent(r), o.length > 0 && (l.push(`const { ${Xt(o.map((N) => `${N}: _${N}`), ", ")} } = ctx`), l.newline()), l.push("return "), Ue(l, e), l.deindent(r), l.push("}"), delete e.helpers;
1035
- const { code: u, map: _ } = l.context();
1035
+ const { code: c, map: _ } = l.context();
1036
1036
  return {
1037
1037
  ast: e,
1038
- code: u,
1038
+ code: c,
1039
1039
  map: _ ? _.toJSON() : void 0
1040
1040
  // eslint-disable-line @typescript-eslint/no-explicit-any
1041
1041
  };
@@ -1205,8 +1205,8 @@ function xa(e, t) {
1205
1205
  ...t,
1206
1206
  location: process.env.NODE_ENV !== "production",
1207
1207
  jit: !0
1208
- }), u = St(o);
1209
- return l ? u : at[a] = u;
1208
+ }), c = St(o);
1209
+ return l ? c : at[a] = c;
1210
1210
  } else {
1211
1211
  if (process.env.NODE_ENV !== "production" && !re(e))
1212
1212
  return he(`the message that is resolve with key '${t.key}' is not supported for jit compilation`), () => e;
@@ -1534,7 +1534,7 @@ function tr(e) {
1534
1534
  }
1535
1535
  function nr(e) {
1536
1536
  const t = [];
1537
- let n = -1, s = 0, a = 0, r, o, l, u, _, N, T;
1537
+ let n = -1, s = 0, a = 0, r, o, l, c, _, N, T;
1538
1538
  const E = [];
1539
1539
  E[
1540
1540
  0
@@ -1582,7 +1582,7 @@ function nr(e) {
1582
1582
  }
1583
1583
  for (; s !== null; )
1584
1584
  if (n++, r = e[n], !(r === "\\" && A())) {
1585
- if (u = er(r), T = Te[s], _ = T[u] || T.l || 8, _ === 8 || (s = _[0], _[1] !== void 0 && (N = E[_[1]], N && (l = r, N() === !1))))
1585
+ if (c = er(r), T = Te[s], _ = T[c] || T.l || 8, _ === 8 || (s = _[0], _[1] !== void 0 && (N = E[_[1]], N && (l = r, N() === !1))))
1586
1586
  return;
1587
1587
  if (s === 7)
1588
1588
  return t;
@@ -1661,7 +1661,7 @@ const In = (e) => {
1661
1661
  }, dr = () => _s;
1662
1662
  let vn = 0;
1663
1663
  function gr(e = {}) {
1664
- const t = x(e.onWarn) ? e.onWarn : he, n = I(e.version) ? e.version : lr, s = I(e.locale) || x(e.locale) ? e.locale : Xe, a = x(s) ? Xe : s, r = B(e.fallbackLocale) || R(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = R(e.messages) ? e.messages : Dt(a), l = R(e.datetimeFormats) ? e.datetimeFormats : Dt(a), u = R(e.numberFormats) ? e.numberFormats : Dt(a), _ = Q(W(), e.modifiers, ir()), N = e.pluralRules || W(), T = x(e.missing) ? e.missing : null, E = F(e.missingWarn) || we(e.missingWarn) ? e.missingWarn : !0, A = F(e.fallbackWarn) || we(e.fallbackWarn) ? e.fallbackWarn : !0, C = !!e.fallbackFormat, y = !!e.unresolving, S = x(e.postTranslation) ? e.postTranslation : null, f = R(e.processor) ? e.processor : null, d = F(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter, g = x(e.messageCompiler) ? e.messageCompiler : is;
1664
+ const t = x(e.onWarn) ? e.onWarn : he, n = I(e.version) ? e.version : lr, s = I(e.locale) || x(e.locale) ? e.locale : Xe, a = x(s) ? Xe : s, r = B(e.fallbackLocale) || R(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = R(e.messages) ? e.messages : Dt(a), l = R(e.datetimeFormats) ? e.datetimeFormats : Dt(a), c = R(e.numberFormats) ? e.numberFormats : Dt(a), _ = Q(W(), e.modifiers, ir()), N = e.pluralRules || W(), T = x(e.missing) ? e.missing : null, E = F(e.missingWarn) || we(e.missingWarn) ? e.missingWarn : !0, A = F(e.fallbackWarn) || we(e.fallbackWarn) ? e.fallbackWarn : !0, C = !!e.fallbackFormat, y = !!e.unresolving, S = x(e.postTranslation) ? e.postTranslation : null, f = R(e.processor) ? e.processor : null, d = F(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, O = !!e.escapeParameter, g = x(e.messageCompiler) ? e.messageCompiler : is;
1665
1665
  process.env.NODE_ENV !== "production" && x(e.messageCompiler) && Jt(Ce(z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
1666
1666
  const b = x(e.messageResolver) ? e.messageResolver : cs || sr, v = x(e.localeFallbacker) ? e.localeFallbacker : us || Xa, p = M(e.fallbackContext) ? e.fallbackContext : void 0, P = e, U = M(P.__datetimeFormatters) ? P.__datetimeFormatters : /* @__PURE__ */ new Map(), X = M(P.__numberFormatters) ? P.__numberFormatters : /* @__PURE__ */ new Map(), oe = M(P.__meta) ? P.__meta : {};
1667
1667
  vn++;
@@ -1689,7 +1689,7 @@ function gr(e = {}) {
1689
1689
  onWarn: t,
1690
1690
  __meta: oe
1691
1691
  };
1692
- return J.datetimeFormats = l, J.numberFormats = u, J.__datetimeFormatters = U, J.__numberFormatters = X, process.env.NODE_ENV !== "production" && (J.__v_emitter = P.__v_emitter != null ? P.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Ya(J, n, oe), J;
1692
+ return J.datetimeFormats = l, J.numberFormats = c, J.__datetimeFormatters = U, J.__numberFormatters = X, process.env.NODE_ENV !== "production" && (J.__v_emitter = P.__v_emitter != null ? P.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Ya(J, n, oe), J;
1693
1693
  }
1694
1694
  const Dt = (e) => ({ [e]: W() });
1695
1695
  function ut(e, t) {
@@ -1739,37 +1739,37 @@ function An(e, ...t) {
1739
1739
  const { datetimeFormats: n, unresolving: s, fallbackLocale: a, onWarn: r, localeFallbacker: o } = e, { __datetimeFormatters: l } = e;
1740
1740
  if (process.env.NODE_ENV !== "production" && !gs.dateTimeFormat)
1741
1741
  return r(Ce(z.CANNOT_FORMAT_DATE)), ot;
1742
- const [u, _, N, T] = wt(...t), E = F(N.missingWarn) ? N.missingWarn : e.missingWarn, A = F(N.fallbackWarn) ? N.fallbackWarn : e.fallbackWarn, C = !!N.part, y = zt(e, N), S = o(
1742
+ const [c, _, N, T] = wt(...t), E = F(N.missingWarn) ? N.missingWarn : e.missingWarn, A = F(N.fallbackWarn) ? N.fallbackWarn : e.fallbackWarn, C = !!N.part, y = zt(e, N), S = o(
1743
1743
  e,
1744
1744
  // eslint-disable-line @typescript-eslint/no-explicit-any
1745
1745
  a,
1746
1746
  y
1747
1747
  );
1748
- if (!I(u) || u === "")
1748
+ if (!I(c) || c === "")
1749
1749
  return new Intl.DateTimeFormat(y, T).format(_);
1750
1750
  let f = {}, d, O = null, g = y, b = null;
1751
1751
  const v = "datetime format";
1752
1752
  for (let U = 0; U < S.length; U++) {
1753
- if (d = b = S[U], process.env.NODE_ENV !== "production" && y !== d && ut(A, u) && r(Ce(z.FALLBACK_TO_DATE_FORMAT, {
1754
- key: u,
1753
+ if (d = b = S[U], process.env.NODE_ENV !== "production" && y !== d && ut(A, c) && r(Ce(z.FALLBACK_TO_DATE_FORMAT, {
1754
+ key: c,
1755
1755
  target: d
1756
1756
  })), process.env.NODE_ENV !== "production" && y !== d) {
1757
1757
  const X = e.__v_emitter;
1758
1758
  X && X.emit("fallback", {
1759
1759
  type: v,
1760
- key: u,
1760
+ key: c,
1761
1761
  from: g,
1762
1762
  to: b,
1763
- groupId: `${v}:${u}`
1763
+ groupId: `${v}:${c}`
1764
1764
  });
1765
1765
  }
1766
- if (f = n[d] || {}, O = f[u], R(O))
1766
+ if (f = n[d] || {}, O = f[c], R(O))
1767
1767
  break;
1768
- en(e, u, d, E, v), g = b;
1768
+ en(e, c, d, E, v), g = b;
1769
1769
  }
1770
1770
  if (!R(O) || !I(d))
1771
- return s ? ct : u;
1772
- let p = `${d}__${u}`;
1771
+ return s ? ct : c;
1772
+ let p = `${d}__${c}`;
1773
1773
  it(T) || (p = `${p}__${JSON.stringify(T)}`);
1774
1774
  let P = l.get(p);
1775
1775
  return P || (P = new Intl.DateTimeFormat(d, Q({}, O, T)), l.set(p, P)), C ? P.formatToParts(_) : P.format(_);
@@ -1800,10 +1800,10 @@ function wt(...e) {
1800
1800
  const [t, n, s, a] = e, r = W();
1801
1801
  let o = W(), l;
1802
1802
  if (I(t)) {
1803
- const u = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
1804
- if (!u)
1803
+ const c = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
1804
+ if (!c)
1805
1805
  throw Ee(q.INVALID_ISO_DATE_ARGUMENT);
1806
- const _ = u[3] ? u[3].trim().startsWith("T") ? `${u[1].trim()}${u[3].trim()}` : `${u[1].trim()}T${u[3].trim()}` : u[1].trim();
1806
+ const _ = c[3] ? c[3].trim().startsWith("T") ? `${c[1].trim()}${c[3].trim()}` : `${c[1].trim()}T${c[3].trim()}` : c[1].trim();
1807
1807
  l = new Date(_);
1808
1808
  try {
1809
1809
  l.toISOString();
@@ -1818,8 +1818,8 @@ function wt(...e) {
1818
1818
  l = t;
1819
1819
  else
1820
1820
  throw Ee(q.INVALID_ARGUMENT);
1821
- return I(n) ? r.key = n : R(n) && Object.keys(n).forEach((u) => {
1822
- Es.includes(u) ? o[u] = n[u] : r[u] = n[u];
1821
+ return I(n) ? r.key = n : R(n) && Object.keys(n).forEach((c) => {
1822
+ Es.includes(c) ? o[c] = n[c] : r[c] = n[c];
1823
1823
  }), I(s) ? r.locale = s : R(s) && (o = s), R(a) && (o = a), [r.key || "", l, r, o];
1824
1824
  }
1825
1825
  function Sn(e, t, n) {
@@ -1833,37 +1833,37 @@ function Cn(e, ...t) {
1833
1833
  const { numberFormats: n, unresolving: s, fallbackLocale: a, onWarn: r, localeFallbacker: o } = e, { __numberFormatters: l } = e;
1834
1834
  if (process.env.NODE_ENV !== "production" && !gs.numberFormat)
1835
1835
  return r(Ce(z.CANNOT_FORMAT_NUMBER)), ot;
1836
- const [u, _, N, T] = Ut(...t), E = F(N.missingWarn) ? N.missingWarn : e.missingWarn, A = F(N.fallbackWarn) ? N.fallbackWarn : e.fallbackWarn, C = !!N.part, y = zt(e, N), S = o(
1836
+ const [c, _, N, T] = Ut(...t), E = F(N.missingWarn) ? N.missingWarn : e.missingWarn, A = F(N.fallbackWarn) ? N.fallbackWarn : e.fallbackWarn, C = !!N.part, y = zt(e, N), S = o(
1837
1837
  e,
1838
1838
  // eslint-disable-line @typescript-eslint/no-explicit-any
1839
1839
  a,
1840
1840
  y
1841
1841
  );
1842
- if (!I(u) || u === "")
1842
+ if (!I(c) || c === "")
1843
1843
  return new Intl.NumberFormat(y, T).format(_);
1844
1844
  let f = {}, d, O = null, g = y, b = null;
1845
1845
  const v = "number format";
1846
1846
  for (let U = 0; U < S.length; U++) {
1847
- if (d = b = S[U], process.env.NODE_ENV !== "production" && y !== d && ut(A, u) && r(Ce(z.FALLBACK_TO_NUMBER_FORMAT, {
1848
- key: u,
1847
+ if (d = b = S[U], process.env.NODE_ENV !== "production" && y !== d && ut(A, c) && r(Ce(z.FALLBACK_TO_NUMBER_FORMAT, {
1848
+ key: c,
1849
1849
  target: d
1850
1850
  })), process.env.NODE_ENV !== "production" && y !== d) {
1851
1851
  const X = e.__v_emitter;
1852
1852
  X && X.emit("fallback", {
1853
1853
  type: v,
1854
- key: u,
1854
+ key: c,
1855
1855
  from: g,
1856
1856
  to: b,
1857
- groupId: `${v}:${u}`
1857
+ groupId: `${v}:${c}`
1858
1858
  });
1859
1859
  }
1860
- if (f = n[d] || {}, O = f[u], R(O))
1860
+ if (f = n[d] || {}, O = f[c], R(O))
1861
1861
  break;
1862
- en(e, u, d, E, v), g = b;
1862
+ en(e, c, d, E, v), g = b;
1863
1863
  }
1864
1864
  if (!R(O) || !I(d))
1865
- return s ? ct : u;
1866
- let p = `${d}__${u}`;
1865
+ return s ? ct : c;
1866
+ let p = `${d}__${c}`;
1867
1867
  it(T) || (p = `${p}__${JSON.stringify(T)}`);
1868
1868
  let P = l.get(p);
1869
1869
  return P || (P = new Intl.NumberFormat(d, Q({}, O, T)), l.set(p, P)), C ? P.formatToParts(_) : P.format(_);
@@ -1896,8 +1896,8 @@ function Ut(...e) {
1896
1896
  if (!j(t))
1897
1897
  throw Ee(q.INVALID_ARGUMENT);
1898
1898
  const l = t;
1899
- return I(n) ? r.key = n : R(n) && Object.keys(n).forEach((u) => {
1900
- ps.includes(u) ? o[u] = n[u] : r[u] = n[u];
1899
+ return I(n) ? r.key = n : R(n) && Object.keys(n).forEach((c) => {
1900
+ ps.includes(c) ? o[c] = n[c] : r[c] = n[c];
1901
1901
  }), I(s) ? r.locale = s : R(s) && (o = s), R(a) && (o = a), [r.key || "", l, r, o];
1902
1902
  }
1903
1903
  function Dn(e, t, n) {
@@ -1919,9 +1919,9 @@ function br(e, t) {
1919
1919
  t.count || (t.count = e), t.n || (t.n = e);
1920
1920
  }
1921
1921
  function Ir(e = {}) {
1922
- const t = e.locale, n = Or(e), s = M(e.pluralRules) && I(t) && x(e.pluralRules[t]) ? e.pluralRules[t] : kn, a = M(e.pluralRules) && I(t) && x(e.pluralRules[t]) ? kn : void 0, r = (f) => f[s(n, f.length, a)], o = e.list || [], l = (f) => o[f], u = e.named || W();
1923
- j(e.pluralIndex) && br(n, u);
1924
- const _ = (f) => u[f];
1922
+ const t = e.locale, n = Or(e), s = M(e.pluralRules) && I(t) && x(e.pluralRules[t]) ? e.pluralRules[t] : kn, a = M(e.pluralRules) && I(t) && x(e.pluralRules[t]) ? kn : void 0, r = (f) => f[s(n, f.length, a)], o = e.list || [], l = (f) => o[f], c = e.named || W();
1923
+ j(e.pluralIndex) && br(n, c);
1924
+ const _ = (f) => c[f];
1925
1925
  function N(f, d) {
1926
1926
  const O = x(e.messages) ? e.messages(f, !!d) : M(e.messages) ? e.messages[f] : !1;
1927
1927
  return O || (e.parent ? e.parent.message(f) : hr);
@@ -1944,34 +1944,34 @@ function Ir(e = {}) {
1944
1944
  type: C,
1945
1945
  interpolate: A,
1946
1946
  normalize: E,
1947
- values: Q(W(), o, u)
1947
+ values: Q(W(), o, c)
1948
1948
  };
1949
1949
  return S;
1950
1950
  }
1951
1951
  const Pn = () => "", ae = (e) => x(e);
1952
1952
  function Rn(e, ...t) {
1953
- const { fallbackFormat: n, postTranslation: s, unresolving: a, messageCompiler: r, fallbackLocale: o, messages: l } = e, [u, _] = Vt(...t), N = F(_.missingWarn) ? _.missingWarn : e.missingWarn, T = F(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, E = F(_.escapeParameter) ? _.escapeParameter : e.escapeParameter, A = !!_.resolvedMessage, C = I(_.default) || F(_.default) ? F(_.default) ? r ? u : () => u : _.default : n ? r ? u : () => u : null, y = n || C != null && (I(C) || x(C)), S = zt(e, _);
1953
+ const { fallbackFormat: n, postTranslation: s, unresolving: a, messageCompiler: r, fallbackLocale: o, messages: l } = e, [c, _] = Vt(...t), N = F(_.missingWarn) ? _.missingWarn : e.missingWarn, T = F(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, E = F(_.escapeParameter) ? _.escapeParameter : e.escapeParameter, A = !!_.resolvedMessage, C = I(_.default) || F(_.default) ? F(_.default) ? r ? c : () => c : _.default : n ? r ? c : () => c : null, y = n || C != null && (I(C) || x(C)), S = zt(e, _);
1954
1954
  E && vr(_);
1955
1955
  let [f, d, O] = A ? [
1956
- u,
1956
+ c,
1957
1957
  S,
1958
1958
  l[S] || W()
1959
- ] : hs(e, u, S, o, T, N), g = f, b = u;
1959
+ ] : hs(e, c, S, o, T, N), g = f, b = c;
1960
1960
  if (!A && !(I(g) || re(g) || ae(g)) && y && (g = C, b = g), !A && (!(I(g) || re(g) || ae(g)) || !I(d)))
1961
- return a ? ct : u;
1961
+ return a ? ct : c;
1962
1962
  if (process.env.NODE_ENV !== "production" && I(g) && e.messageCompiler == null)
1963
- return he(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${u}'.`), u;
1963
+ return he(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`), c;
1964
1964
  let v = !1;
1965
1965
  const p = () => {
1966
1966
  v = !0;
1967
- }, P = ae(g) ? g : Ns(e, u, d, g, b, p);
1967
+ }, P = ae(g) ? g : Ns(e, c, d, g, b, p);
1968
1968
  if (v)
1969
1969
  return g;
1970
- const U = Cr(e, d, O, _), X = Ir(U), oe = yr(e, P, X), J = s ? s(oe, u) : oe;
1970
+ const U = Cr(e, d, O, _), X = Ir(U), oe = yr(e, P, X), J = s ? s(oe, c) : oe;
1971
1971
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
1972
1972
  const Pe = {
1973
1973
  timestamp: Date.now(),
1974
- key: I(u) ? u : ae(g) ? g.key : "",
1974
+ key: I(c) ? c : ae(g) ? g.key : "",
1975
1975
  locale: d || (ae(g) ? g.locale : ""),
1976
1976
  format: I(g) ? g : ae(g) ? g.source : "",
1977
1977
  message: J
@@ -1986,7 +1986,7 @@ function vr(e) {
1986
1986
  });
1987
1987
  }
1988
1988
  function hs(e, t, n, s, a, r) {
1989
- const { messages: o, onWarn: l, messageResolver: u, localeFallbacker: _ } = e, N = _(e, s, n);
1989
+ const { messages: o, onWarn: l, messageResolver: c, localeFallbacker: _ } = e, N = _(e, s, n);
1990
1990
  let T = W(), E, A = null, C = n, y = null;
1991
1991
  const S = "translate";
1992
1992
  for (let f = 0; f < N.length; f++) {
@@ -2005,7 +2005,7 @@ function hs(e, t, n, s, a, r) {
2005
2005
  }
2006
2006
  T = o[E] || W();
2007
2007
  let d = null, O, g;
2008
- if (process.env.NODE_ENV !== "production" && ce && (d = window.performance.now(), O = "intlify-message-resolve-start", g = "intlify-message-resolve-end", ne && ne(O)), (A = u(T, t)) === null && (A = T[t]), process.env.NODE_ENV !== "production" && ce) {
2008
+ if (process.env.NODE_ENV !== "production" && ce && (d = window.performance.now(), O = "intlify-message-resolve-start", g = "intlify-message-resolve-end", ne && ne(O)), (A = c(T, t)) === null && (A = T[t]), process.env.NODE_ENV !== "production" && ce) {
2009
2009
  const b = window.performance.now(), v = e.__v_emitter;
2010
2010
  v && d && A && v.emit("message-resolve", {
2011
2011
  type: "message-resolve",
@@ -2042,15 +2042,15 @@ function Ns(e, t, n, s, a, r) {
2042
2042
  const E = () => s;
2043
2043
  return E.locale = n, E.key = t, E;
2044
2044
  }
2045
- let u = null, _, N;
2046
- process.env.NODE_ENV !== "production" && ce && (u = window.performance.now(), _ = "intlify-message-compilation-start", N = "intlify-message-compilation-end", ne && ne(_));
2045
+ let c = null, _, N;
2046
+ process.env.NODE_ENV !== "production" && ce && (c = window.performance.now(), _ = "intlify-message-compilation-start", N = "intlify-message-compilation-end", ne && ne(_));
2047
2047
  const T = o(s, Ar(e, n, a, s, l, r));
2048
2048
  if (process.env.NODE_ENV !== "production" && ce) {
2049
2049
  const E = window.performance.now(), A = e.__v_emitter;
2050
- A && u && A.emit("message-compilation", {
2050
+ A && c && A.emit("message-compilation", {
2051
2051
  type: "message-compilation",
2052
2052
  message: s,
2053
- time: E - u,
2053
+ time: E - c,
2054
2054
  groupId: `translate:${t}`
2055
2055
  }), _ && N && ne && Se && (ne(N), Se("intlify message compilation", _, N));
2056
2056
  }
@@ -2061,8 +2061,8 @@ function yr(e, t, n) {
2061
2061
  process.env.NODE_ENV !== "production" && ce && (s = window.performance.now(), a = "intlify-message-evaluation-start", r = "intlify-message-evaluation-end", ne && ne(a));
2062
2062
  const o = t(n);
2063
2063
  if (process.env.NODE_ENV !== "production" && ce) {
2064
- const l = window.performance.now(), u = e.__v_emitter;
2065
- u && s && u.emit("message-evaluation", {
2064
+ const l = window.performance.now(), c = e.__v_emitter;
2065
+ c && s && c.emit("message-evaluation", {
2066
2066
  type: "message-evaluation",
2067
2067
  value: o,
2068
2068
  time: l - s,
@@ -2085,15 +2085,15 @@ function Ar(e, t, n, s, a, r) {
2085
2085
  warnHtmlMessage: a,
2086
2086
  onError: (o) => {
2087
2087
  if (r && r(o), process.env.NODE_ENV !== "production") {
2088
- const l = Sr(s), u = `Message compilation error: ${o.message}`, _ = o.location && l && zs(l, o.location.start.offset, o.location.end.offset), N = e.__v_emitter;
2088
+ const l = Sr(s), c = `Message compilation error: ${o.message}`, _ = o.location && l && zs(l, o.location.start.offset, o.location.end.offset), N = e.__v_emitter;
2089
2089
  N && l && N.emit("compile-error", {
2090
2090
  message: l,
2091
2091
  error: o.message,
2092
2092
  start: o.location && o.location.start.offset,
2093
2093
  end: o.location && o.location.end.offset,
2094
2094
  groupId: `translate:${n}`
2095
- }), console.error(_ ? `${u}
2096
- ${_}` : u);
2095
+ }), console.error(_ ? `${c}
2096
+ ${_}` : c);
2097
2097
  } else
2098
2098
  throw o;
2099
2099
  },
@@ -2107,7 +2107,7 @@ function Sr(e) {
2107
2107
  return e.loc.source;
2108
2108
  }
2109
2109
  function Cr(e, t, n, s) {
2110
- const { modifiers: a, pluralRules: r, messageResolver: o, fallbackLocale: l, fallbackWarn: u, missingWarn: _, fallbackContext: N } = e, E = {
2110
+ const { modifiers: a, pluralRules: r, messageResolver: o, fallbackLocale: l, fallbackWarn: c, missingWarn: _, fallbackContext: N } = e, E = {
2111
2111
  locale: t,
2112
2112
  modifiers: a,
2113
2113
  pluralRules: r,
@@ -2120,7 +2120,7 @@ function Cr(e, t, n, s) {
2120
2120
  A,
2121
2121
  t,
2122
2122
  l,
2123
- u,
2123
+ c,
2124
2124
  _
2125
2125
  );
2126
2126
  y = o(S, A);
@@ -2185,22 +2185,22 @@ class wr {
2185
2185
  }, n && n.on(Rr, (o, l) => {
2186
2186
  o === this.plugin.id && this.fallbacks.setSettings(l);
2187
2187
  }), this.proxiedOn = new Proxy({}, {
2188
- get: (o, l) => this.target ? this.target.on[l] : (...u) => {
2188
+ get: (o, l) => this.target ? this.target.on[l] : (...c) => {
2189
2189
  this.onQueue.push({
2190
2190
  method: l,
2191
- args: u
2191
+ args: c
2192
2192
  });
2193
2193
  }
2194
2194
  }), this.proxiedTarget = new Proxy({}, {
2195
- get: (o, l) => this.target ? this.target[l] : l === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(l) ? (...u) => (this.targetQueue.push({
2195
+ get: (o, l) => this.target ? this.target[l] : l === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(l) ? (...c) => (this.targetQueue.push({
2196
2196
  method: l,
2197
- args: u,
2197
+ args: c,
2198
2198
  resolve: () => {
2199
2199
  }
2200
- }), this.fallbacks[l](...u)) : (...u) => new Promise((_) => {
2200
+ }), this.fallbacks[l](...c)) : (...c) => new Promise((_) => {
2201
2201
  this.targetQueue.push({
2202
2202
  method: l,
2203
- args: u,
2203
+ args: c,
2204
2204
  resolve: _
2205
2205
  });
2206
2206
  })
@@ -2335,8 +2335,8 @@ function tn(e, t) {
2335
2335
  const { messages: n, __i18n: s, messageResolver: a, flatJson: r } = t, o = R(n) ? n : B(s) ? W() : { [e]: W() };
2336
2336
  if (B(s) && s.forEach((l) => {
2337
2337
  if ("locale" in l && "resource" in l) {
2338
- const { locale: u, resource: _ } = l;
2339
- u ? (o[u] = o[u] || W(), rt(_, o[u])) : rt(_, o);
2338
+ const { locale: c, resource: _ } = l;
2339
+ c ? (o[c] = o[c] || W(), rt(_, o[c])) : rt(_, o);
2340
2340
  } else
2341
2341
  I(l) && rt(JSON.parse(l), o);
2342
2342
  }), a == null && r)
@@ -2391,7 +2391,7 @@ function nn(e = {}) {
2391
2391
  const l = r(
2392
2392
  // prettier-ignore
2393
2393
  t && o ? t.locale.value : I(e.locale) ? e.locale : Xe
2394
- ), u = r(
2394
+ ), c = r(
2395
2395
  // prettier-ignore
2396
2396
  t && o ? t.fallbackLocale.value : I(e.fallbackLocale) || B(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : l.value
2397
2397
  ), _ = r(tn(l.value, e)), N = r(R(e.datetimeFormats) ? e.datetimeFormats : { [l.value]: {} }), T = r(R(e.numberFormats) ? e.numberFormats : { [l.value]: {} });
@@ -2403,7 +2403,7 @@ function nn(e = {}) {
2403
2403
  const m = {
2404
2404
  version: Vr,
2405
2405
  locale: l.value,
2406
- fallbackLocale: u.value,
2406
+ fallbackLocale: c.value,
2407
2407
  messages: _.value,
2408
2408
  modifiers: b,
2409
2409
  pluralRules: v,
@@ -2422,11 +2422,11 @@ function nn(e = {}) {
2422
2422
  m.datetimeFormats = N.value, m.numberFormats = T.value, m.__datetimeFormatters = R(p) ? p.__datetimeFormatters : void 0, m.__numberFormatters = R(p) ? p.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (m.__v_emitter = R(p) ? p.__v_emitter : void 0);
2423
2423
  const L = gr(m);
2424
2424
  return s && In(L), L;
2425
- })(), He(p, l.value, u.value);
2425
+ })(), He(p, l.value, c.value);
2426
2426
  function U() {
2427
2427
  return [
2428
2428
  l.value,
2429
- u.value,
2429
+ c.value,
2430
2430
  _.value,
2431
2431
  N.value,
2432
2432
  T.value
@@ -2438,9 +2438,9 @@ function nn(e = {}) {
2438
2438
  p.locale = m, l.value = m;
2439
2439
  }
2440
2440
  }), oe = Ye({
2441
- get: () => u.value,
2441
+ get: () => c.value,
2442
2442
  set: (m) => {
2443
- p.fallbackLocale = m, u.value = m, He(p, l.value, m);
2443
+ p.fallbackLocale = m, c.value = m, He(p, l.value, m);
2444
2444
  }
2445
2445
  }), J = Ye(() => _.value), Pe = /* @__PURE__ */ Ye(() => N.value), _t = /* @__PURE__ */ Ye(() => T.value);
2446
2446
  function mt() {
@@ -2542,7 +2542,7 @@ function nn(e = {}) {
2542
2542
  }
2543
2543
  function $e(m) {
2544
2544
  let L = null;
2545
- const V = ls(p, u.value, l.value);
2545
+ const V = ls(p, c.value, l.value);
2546
2546
  for (let K = 0; K < V.length; K++) {
2547
2547
  const Oe = _.value[V[K]] || {}, et = p.messageResolver(Oe, m);
2548
2548
  if (et != null) {
@@ -2579,7 +2579,7 @@ function nn(e = {}) {
2579
2579
  function i(m) {
2580
2580
  return N.value[m] || {};
2581
2581
  }
2582
- function c(m, L) {
2582
+ function u(m, L) {
2583
2583
  N.value[m] = L, p.datetimeFormats = N.value, Sn(p, m, L);
2584
2584
  }
2585
2585
  function h(m, L) {
@@ -2595,9 +2595,9 @@ function nn(e = {}) {
2595
2595
  T.value[m] = Q(T.value[m] || {}, L), p.numberFormats = T.value, Dn(p, m, L);
2596
2596
  }
2597
2597
  Un++, t && ce && (Pt(t.locale, (m) => {
2598
- o && (l.value = m, p.locale = m, He(p, l.value, u.value));
2598
+ o && (l.value = m, p.locale = m, He(p, l.value, c.value));
2599
2599
  }), Pt(t.fallbackLocale, (m) => {
2600
- o && (u.value = m, p.fallbackLocale = m, He(p, l.value, u.value));
2600
+ o && (c.value = m, p.fallbackLocale = m, He(p, l.value, c.value));
2601
2601
  }));
2602
2602
  const w = {
2603
2603
  id: Un,
@@ -2607,7 +2607,7 @@ function nn(e = {}) {
2607
2607
  return o;
2608
2608
  },
2609
2609
  set inheritLocale(m) {
2610
- o = m, m && t && (l.value = t.locale.value, u.value = t.fallbackLocale.value, He(p, l.value, u.value));
2610
+ o = m, m && t && (l.value = t.locale.value, c.value = t.fallbackLocale.value, He(p, l.value, c.value));
2611
2611
  },
2612
2612
  get availableLocales() {
2613
2613
  return Object.keys(_.value).sort();
@@ -2668,7 +2668,7 @@ function nn(e = {}) {
2668
2668
  setMissingHandler: Et,
2669
2669
  [Ls]: vt
2670
2670
  };
2671
- return w.datetimeFormats = Pe, w.numberFormats = _t, w.rt = ht, w.te = yt, w.tm = xe, w.d = Nt, w.n = Tt, w.getDateTimeFormat = i, w.setDateTimeFormat = c, w.mergeDateTimeFormat = h, w.getNumberFormat = D, w.setNumberFormat = Y, w.mergeNumberFormat = H, w[Os] = n, w[$t] = ze, w[xt] = It, w[Gt] = bt, process.env.NODE_ENV !== "production" && (w[De] = (m) => {
2671
+ return w.datetimeFormats = Pe, w.numberFormats = _t, w.rt = ht, w.te = yt, w.tm = xe, w.d = Nt, w.n = Tt, w.getDateTimeFormat = i, w.setDateTimeFormat = u, w.mergeDateTimeFormat = h, w.getNumberFormat = D, w.setNumberFormat = Y, w.mergeNumberFormat = H, w[Os] = n, w[$t] = ze, w[xt] = It, w[Gt] = bt, process.env.NODE_ENV !== "production" && (w[De] = (m) => {
2672
2672
  p.__v_emitter = m;
2673
2673
  }, w[Je] = () => {
2674
2674
  p.__v_emitter = void 0;
@@ -2899,15 +2899,15 @@ function to(e) {
2899
2899
  }
2900
2900
  ];
2901
2901
  t[o] = l;
2902
- const u = "Datetime formats info", _ = [
2902
+ const c = "Datetime formats info", _ = [
2903
2903
  {
2904
- type: u,
2904
+ type: c,
2905
2905
  key: "numberFormats",
2906
2906
  editable: !1,
2907
2907
  value: e.numberFormats.value
2908
2908
  }
2909
2909
  ];
2910
- t[u] = _;
2910
+ t[c] = _;
2911
2911
  }
2912
2912
  return t;
2913
2913
  }
@@ -2935,7 +2935,7 @@ function no(e, t) {
2935
2935
  }
2936
2936
  }
2937
2937
  function so(e) {
2938
- const t = I(e.locale) ? e.locale : Xe, n = I(e.fallbackLocale) || B(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = x(e.missing) ? e.missing : void 0, a = F(e.silentTranslationWarn) || we(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = F(e.silentFallbackWarn) || we(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = F(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, u = R(e.modifiers) ? e.modifiers : {}, _ = e.pluralizationRules, N = x(e.postTranslation) ? e.postTranslation : void 0, T = I(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, E = !!e.escapeParameterHtml, A = F(e.sync) ? e.sync : !0;
2938
+ const t = I(e.locale) ? e.locale : Xe, n = I(e.fallbackLocale) || B(e.fallbackLocale) || R(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, s = x(e.missing) ? e.missing : void 0, a = F(e.silentTranslationWarn) || we(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = F(e.silentFallbackWarn) || we(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = F(e.fallbackRoot) ? e.fallbackRoot : !0, l = !!e.formatFallbackMessages, c = R(e.modifiers) ? e.modifiers : {}, _ = e.pluralizationRules, N = x(e.postTranslation) ? e.postTranslation : void 0, T = I(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, E = !!e.escapeParameterHtml, A = F(e.sync) ? e.sync : !0;
2939
2939
  let C = e.messages;
2940
2940
  if (R(e.sharedMessages)) {
2941
2941
  const b = e.sharedMessages;
@@ -2957,7 +2957,7 @@ function so(e) {
2957
2957
  fallbackWarn: r,
2958
2958
  fallbackRoot: o,
2959
2959
  fallbackFormat: l,
2960
- modifiers: u,
2960
+ modifiers: c,
2961
2961
  pluralRules: _,
2962
2962
  postTranslation: N,
2963
2963
  warnHtmlMessage: T,
@@ -3250,8 +3250,8 @@ const oo = /* @__PURE__ */ Bt({
3250
3250
  return () => {
3251
3251
  const r = Object.keys(n).filter((T) => T !== "_"), o = W();
3252
3252
  e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = I(e.plural) ? +e.plural : e.plural);
3253
- const l = ro(t, r), u = a[$t](e.keypath, l, o), _ = Q(W(), s), N = I(e.tag) || M(e.tag) ? e.tag : Ss();
3254
- return Jn(N, _, u);
3253
+ const l = ro(t, r), c = a[$t](e.keypath, l, o), _ = Q(W(), s), N = I(e.tag) || M(e.tag) ? e.tag : Ss();
3254
+ return Jn(N, _, c);
3255
3255
  };
3256
3256
  }
3257
3257
  }), xn = oo;
@@ -3264,12 +3264,12 @@ function Cs(e, t, n, s) {
3264
3264
  const o = { part: !0 };
3265
3265
  let l = W();
3266
3266
  e.locale && (o.locale = e.locale), I(e.format) ? o.key = e.format : M(e.format) && (I(e.format.key) && (o.key = e.format.key), l = Object.keys(e.format).reduce((E, A) => n.includes(A) ? Q(W(), E, { [A]: e.format[A] }) : E, W()));
3267
- const u = s(e.value, o, l);
3267
+ const c = s(e.value, o, l);
3268
3268
  let _ = [o.key];
3269
- B(u) ? _ = u.map((E, A) => {
3270
- const C = a[E.type], y = C ? C({ [E.type]: E.value, index: A, parts: u }) : [E.value];
3269
+ B(c) ? _ = c.map((E, A) => {
3270
+ const C = a[E.type], y = C ? C({ [E.type]: E.value, index: A, parts: c }) : [E.value];
3271
3271
  return lo(y) && (y[0].key = `${E.type}-${A}`), y;
3272
- }) : I(u) && (_ = [u]);
3272
+ }) : I(c) && (_ = [c]);
3273
3273
  const N = Q(W(), r), T = I(e.tag) || M(e.tag) ? e.tag : Ss();
3274
3274
  return Jn(T, N, _);
3275
3275
  };
@@ -3311,10 +3311,10 @@ function co(e, t) {
3311
3311
  function uo(e) {
3312
3312
  const t = (o) => {
3313
3313
  process.env.NODE_ENV !== "production" && Jt(Ze(fe.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
3314
- const { instance: l, value: u } = o;
3314
+ const { instance: l, value: c } = o;
3315
3315
  if (!l || !l.$)
3316
3316
  throw ee(G.UNEXPECTED_ERROR);
3317
- const _ = co(e, l.$), N = Yn(u);
3317
+ const _ = co(e, l.$), N = Yn(c);
3318
3318
  return [
3319
3319
  Reflect.apply(_.t, _, [...Hn(N)]),
3320
3320
  _
@@ -3322,18 +3322,18 @@ function uo(e) {
3322
3322
  };
3323
3323
  return {
3324
3324
  created: (o, l) => {
3325
- const [u, _] = t(l);
3325
+ const [c, _] = t(l);
3326
3326
  ce && e.global === _ && (o.__i18nWatcher = Pt(_.locale, () => {
3327
3327
  l.instance && l.instance.$forceUpdate();
3328
- })), o.__composer = _, o.textContent = u;
3328
+ })), o.__composer = _, o.textContent = c;
3329
3329
  },
3330
3330
  unmounted: (o) => {
3331
3331
  ce && o.__i18nWatcher && (o.__i18nWatcher(), o.__i18nWatcher = void 0, delete o.__i18nWatcher), o.__composer && (o.__composer = void 0, delete o.__composer);
3332
3332
  },
3333
3333
  beforeUpdate: (o, { value: l }) => {
3334
3334
  if (o.__composer) {
3335
- const u = o.__composer, _ = Yn(l);
3336
- o.textContent = Reflect.apply(u.t, u, [
3335
+ const c = o.__composer, _ = Yn(l);
3336
+ o.textContent = Reflect.apply(c.t, c, [
3337
3337
  ...Hn(_)
3338
3338
  ]);
3339
3339
  }
@@ -3370,7 +3370,7 @@ function mo(e = {}) {
3370
3370
  function l(T) {
3371
3371
  return s.get(T) || null;
3372
3372
  }
3373
- function u(T, E) {
3373
+ function c(T, E) {
3374
3374
  s.set(T, E);
3375
3375
  }
3376
3376
  function _(T) {
@@ -3418,7 +3418,7 @@ function mo(e = {}) {
3418
3418
  // @internal
3419
3419
  __getInstance: l,
3420
3420
  // @internal
3421
- __setInstance: u,
3421
+ __setInstance: c,
3422
3422
  // @internal
3423
3423
  __deleteInstance: _
3424
3424
  };
@@ -3434,14 +3434,14 @@ function rn(e = {}) {
3434
3434
  if (r === "global")
3435
3435
  return Is(s, e, a), s;
3436
3436
  if (r === "parent") {
3437
- let u = No(n, t, e.__useComponent);
3438
- return u == null && (process.env.NODE_ENV !== "production" && he(Ze(fe.NOT_FOUND_PARENT_SCOPE)), u = s), u;
3437
+ let c = No(n, t, e.__useComponent);
3438
+ return c == null && (process.env.NODE_ENV !== "production" && he(Ze(fe.NOT_FOUND_PARENT_SCOPE)), c = s), c;
3439
3439
  }
3440
3440
  const o = n;
3441
3441
  let l = o.__getInstance(t);
3442
3442
  if (l == null) {
3443
- const u = Q({}, e);
3444
- "__i18n" in a && (u.__i18n = a.__i18n), s && (u.__root = s), l = nn(u), o.__composerExtend && (l[Yt] = o.__composerExtend(l)), Lo(o, t, l), o.__setInstance(t, l);
3443
+ const c = Q({}, e);
3444
+ "__i18n" in a && (c.__i18n = a.__i18n), s && (c.__root = s), l = nn(c), o.__composerExtend && (l[Yt] = o.__composerExtend(l)), Lo(o, t, l), o.__setInstance(t, l);
3445
3445
  }
3446
3446
  return l;
3447
3447
  }
@@ -3588,8 +3588,8 @@ const vo = (e) => {
3588
3588
  lastPullDate: s,
3589
3589
  token: a
3590
3590
  }) => new Promise(async (r, o) => {
3591
- const l = ft + "/i18n-web/kv_translate/kv_translates", u = s ? l + "?lastPullDate=" + s : l, _ = await ke({
3592
- url: u,
3591
+ const l = ft + "/i18n-web/kv_translate/kv_translates", c = s ? l + "?lastPullDate=" + s : l, _ = await ke({
3592
+ url: c,
3593
3593
  method: "GET",
3594
3594
  headers: {
3595
3595
  appCode: e,
@@ -3618,12 +3618,12 @@ const vo = (e) => {
3618
3618
  token: n
3619
3619
  }, l = r.get(t);
3620
3620
  if (!l || !l.lastPullDate) {
3621
- const u = await jn(o);
3622
- u && (r.set(t, u), s(u.translatesDTOs));
3621
+ const c = await jn(o);
3622
+ c && (r.set(t, c), s(c.translatesDTOs));
3623
3623
  } else {
3624
- const { lastPullDate: u } = l, _ = await jn({
3624
+ const { lastPullDate: c } = l, _ = await jn({
3625
3625
  ...o,
3626
- lastPullDate: u
3626
+ lastPullDate: c
3627
3627
  });
3628
3628
  if (_) {
3629
3629
  const N = $.get(l, "translatesDTOs");
@@ -3717,16 +3717,16 @@ const vo = (e) => {
3717
3717
  return te(le("Input"), {
3718
3718
  modelValue: o,
3719
3719
  onOnChange: (l) => {
3720
- const u = l.target.value, {
3720
+ const c = l.target.value, {
3721
3721
  dictKey: _
3722
3722
  } = a;
3723
3723
  console.log("dictKey", _);
3724
3724
  const N = $.findIndex(this.mySaveData, {
3725
3725
  dictKey: _
3726
3726
  });
3727
- N > -1 ? this.mySaveData[N][n] = u : this.mySaveData.push({
3727
+ N > -1 ? this.mySaveData[N][n] = c : this.mySaveData.push({
3728
3728
  ...a,
3729
- [n]: u,
3729
+ [n]: c,
3730
3730
  page: this.type === "pageData" ? this.name : "common"
3731
3731
  });
3732
3732
  }
@@ -3775,6 +3775,7 @@ const vo = (e) => {
3775
3775
  }
3776
3776
  const s = await Ao({
3777
3777
  appCode: this.appCode,
3778
+ isLocal: "F",
3778
3779
  data: n
3779
3780
  }, this.token);
3780
3781
  s && s.data.result === 0 ? (se.success({
@@ -3865,7 +3866,7 @@ const vo = (e) => {
3865
3866
  class: "extra"
3866
3867
  }, Ro = { class: "gc_i18n_page" }, Mo = { style: { display: "flex" } };
3867
3868
  function Fo(e, t, n, s, a, r) {
3868
- const o = le("Spin"), l = le("Table"), u = le("TabPane"), _ = le("Input"), N = le("Tabs"), T = le("Page"), E = le("Button"), A = le("Modal");
3869
+ const o = le("Spin"), l = le("Table"), c = le("TabPane"), _ = le("Input"), N = le("Tabs"), T = le("Page"), E = le("Button"), A = le("Modal");
3869
3870
  return de(), Ie(A, {
3870
3871
  modelValue: a.isModalVisible,
3871
3872
  "onUpdate:modelValue": t[4] || (t[4] = (C) => a.isModalVisible = C),
@@ -3898,7 +3899,7 @@ function Fo(e, t, n, s, a, r) {
3898
3899
  ])) : fn("", !0)
3899
3900
  ]),
3900
3901
  default: ve(() => [
3901
- te(u, {
3902
+ te(c, {
3902
3903
  name: "pageData",
3903
3904
  label: "当前页面"
3904
3905
  }, {
@@ -3916,7 +3917,7 @@ function Fo(e, t, n, s, a, r) {
3916
3917
  ]),
3917
3918
  _: 1
3918
3919
  }),
3919
- te(u, {
3920
+ te(c, {
3920
3921
  name: "data",
3921
3922
  label: "当前应用"
3922
3923
  }, {
@@ -3986,7 +3987,7 @@ function Fo(e, t, n, s, a, r) {
3986
3987
  _: 1
3987
3988
  }, 8, ["modelValue", "onOnCancel"]);
3988
3989
  }
3989
- const wo = /* @__PURE__ */ Do(Co, [["render", Fo], ["__scopeId", "data-v-72726a48"]]);
3990
+ const wo = /* @__PURE__ */ Do(Co, [["render", Fo], ["__scopeId", "data-v-8d821627"]]);
3990
3991
  function ks(e) {
3991
3992
  const t = [], n = /(?:\$t|_ctx\.\$t)\s*\(\s*(['"])([^'"]+?)\1/gs;
3992
3993
  if (e.template) {
@@ -4055,12 +4056,8 @@ function Uo(e) {
4055
4056
  class Ko {
4056
4057
  constructor(t = {}) {
4057
4058
  const { router: n, appCode: s, messages: a, token: r, orgCode: o } = t;
4058
- this.token = r || Uo(o), this.loadI18n = !0, this.appCode = s, this.router = n, this.locale = ye.get("I18N_LANGUAGE") || navigator.language || "zh-CN", this.modalLoad = !1, this.name = "", this.messages = a || {}, this.translationKeys = [], this.initRouterGuards(), this.initI18n(t), this.router.isReady().then(async () => {
4059
- this.createModal();
4060
- }).catch((l) => {
4061
- console.error("路由首次加载出错:", l);
4062
- }), Rs.bind("shift > t", (l) => {
4063
- this.configInstance.openModal({ name: this.name });
4059
+ this.token = r || Uo(o), this.loadI18n = !0, this.appCode = s, this.router = n, this.locale = ye.get("I18N_LANGUAGE") || navigator.language || "zh-CN", this.modalLoad = !1, this.name = "", this.messages = a || {}, this.translationKeys = [], this.initRouterGuards(), this.initI18n(t), Rs.bind("shift > t", (l) => {
4060
+ this.configInstance = this.createModal(this.name), this.configInstance.openModal({ name: this.name });
4064
4061
  }), this.setupLanguageChangeListener();
4065
4062
  }
4066
4063
  // 监听浏览器语言变化
@@ -4075,15 +4072,22 @@ class Ko {
4075
4072
  this.router.beforeEach(async (t, n, s) => {
4076
4073
  const { language: a, token: r } = t.query;
4077
4074
  if (this.configInstance && this.configInstance.closeModal(), this.name = t.name, r && this.setToken(r), this.loadI18n && await this.setLanguage(a || this.locale), this.loadI18n = !1, t.matched.length > 0) {
4078
- let o = t.matched[0].components.default;
4079
- if (typeof o == "function" && o.toString().includes("import("))
4080
- try {
4081
- o = await o(), o = o.default;
4082
- } catch (l) {
4083
- console.error("加载异步组件时出错:", l), s();
4084
- return;
4075
+ const o = [];
4076
+ for (const l of t.matched) {
4077
+ let c = l.components.default;
4078
+ if (typeof c == "function" && c.toString().includes("import("))
4079
+ try {
4080
+ c = await c(), c = c.default;
4081
+ } catch (_) {
4082
+ console.error("加载异步组件时出错:", _), s();
4083
+ return;
4084
+ }
4085
+ if (c) {
4086
+ const _ = ks(c);
4087
+ o.push(..._);
4085
4088
  }
4086
- this.translationKeys = ks(o);
4089
+ }
4090
+ this.translationKeys = o;
4087
4091
  }
4088
4092
  s();
4089
4093
  });
@@ -4102,8 +4106,8 @@ class Ko {
4102
4106
  });
4103
4107
  const n = this.i18n.global.t;
4104
4108
  globalThis.$t = this.i18n.global.t = (s, a) => {
4105
- var o, l, u;
4106
- const r = (u = (l = (o = this.router) == null ? void 0 : o.currentRoute) == null ? void 0 : l.value) == null ? void 0 : u.name;
4109
+ var o, l, c;
4110
+ const r = (c = (l = (o = this.router) == null ? void 0 : o.currentRoute) == null ? void 0 : l.value) == null ? void 0 : c.name;
4107
4111
  if (r) {
4108
4112
  const _ = `${r}.${s}`, N = n(_);
4109
4113
  if (N !== _)
@@ -4160,7 +4164,7 @@ class Ko {
4160
4164
  });
4161
4165
  }
4162
4166
  createModal(t) {
4163
- this.modalLoad = !0, this.configInstance = Ys(wo, {
4167
+ return this.modalLoad = !0, Ys(wo, {
4164
4168
  appCode: this.appCode,
4165
4169
  token: this.token,
4166
4170
  setLanguage: this.setLanguage.bind(this, this.locale),