@wix/blog 1.0.708 → 1.0.710

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.
Files changed (31) hide show
  1. package/_sdk-exports/context-blog-feed/runtime.js +4 -4
  2. package/_sdk-exports/context-post/runtime.d.ts +36 -1
  3. package/_sdk-exports/context-post-by-id/runtime.js +4 -4
  4. package/_sdk-exports/context-post-by-slug/runtime.js +4 -4
  5. package/_sdk-exports/context-post-list-item/runtime.js +4 -4
  6. package/_sdk-exports/context-related-posts/runtime.js +4 -4
  7. package/build/cjs/context-blog-feed.js +1422 -1366
  8. package/build/cjs/context-blog-feed.js.map +1 -1
  9. package/build/cjs/context-post-by-id.js +750 -694
  10. package/build/cjs/context-post-by-id.js.map +1 -1
  11. package/build/cjs/context-post-by-slug.js +1345 -1289
  12. package/build/cjs/context-post-by-slug.js.map +1 -1
  13. package/build/cjs/context-post-list-item.js +265 -237
  14. package/build/cjs/context-post-list-item.js.map +1 -1
  15. package/build/cjs/context-post.d.ts +36 -1
  16. package/build/cjs/context-related-posts.js +1075 -1019
  17. package/build/cjs/context-related-posts.js.map +1 -1
  18. package/build/es/context-blog-feed.mjs +1422 -1366
  19. package/build/es/context-blog-feed.mjs.map +1 -1
  20. package/build/es/context-post-by-id.mjs +750 -694
  21. package/build/es/context-post-by-id.mjs.map +1 -1
  22. package/build/es/context-post-by-slug.mjs +1345 -1289
  23. package/build/es/context-post-by-slug.mjs.map +1 -1
  24. package/build/es/context-post-list-item.mjs +265 -237
  25. package/build/es/context-post-list-item.mjs.map +1 -1
  26. package/build/es/context-post.d.mts +36 -1
  27. package/build/es/context-related-posts.mjs +1075 -1019
  28. package/build/es/context-related-posts.mjs.map +1 -1
  29. package/build/internal/cjs/context-post.d.ts +36 -1
  30. package/build/internal/es/context-post.d.mts +36 -1
  31. package/package.json +2 -2
@@ -947,11 +947,11 @@ var En = (e6, t2) => {
947
947
  var Dn = (e6) => En(`14bcded7-0066-7c35-14d7-466cb3f09103`, e6);
948
948
  var On = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
949
949
  var kn = (e6, t2) => e6 && typeof e6[t2] == `function` ? e6 : null;
950
- function An(e6, t2, { feature: n2, action: r2, level: i2 = `error`, contexts: a2 }) {
951
- let o2 = kn(e6, `captureException`);
952
- if (!o2) return;
953
- let s2 = t2 instanceof Error ? t2 : Error(String(t2));
954
- o2.captureException(s2, { level: i2, tags: { feature: n2, action: r2 }, ...a2 ? { contexts: a2 } : {} });
950
+ function An(e6, t2, { feature: n2, action: r2, level: i2 = `error`, tags: a2, contexts: o2 }) {
951
+ let s2 = kn(e6, `captureException`);
952
+ if (!s2) return;
953
+ let c2 = t2 instanceof Error ? t2 : Error(String(t2));
954
+ s2.captureException(c2, { level: i2, tags: { feature: n2, action: r2, ...a2 }, ...o2 ? { contexts: o2 } : {} });
955
955
  }
956
956
  function jn(e6) {
957
957
  return Object.keys(e6).length === 1 && `$and` in e6 && Array.isArray(e6.$and);
@@ -1874,7 +1874,8 @@ var pi = class {
1874
1874
  e7 && (this.isSupportedCode(e7) ? l2.push(e7) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e7}`));
1875
1875
  };
1876
1876
  return R(e6) && (e6.includes(`-`) || e6.includes(`_`)) ? (this.options.load !== `languageOnly` && u2(this.formatLanguageCode(e6)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && u2(this.getScriptPartFromCode(e6)), this.options.load !== `currentOnly` && u2(this.getLanguagePartFromCode(e6))) : R(e6) && u2(this.formatLanguageCode(e6)), c2.forEach((e7) => {
1877
- l2.includes(e7) || u2(this.formatLanguageCode(e7));
1877
+ let t3 = this.formatLanguageCode(e7);
1878
+ l2.includes(t3) || u2(t3);
1878
1879
  }), s2 === null ? l2 : (this.resolveHierarchyCache[s2] = l2, l2.slice());
1879
1880
  }
1880
1881
  };
@@ -2319,7 +2320,9 @@ var J = class e4 extends G {
2319
2320
  let e7 = t2.precheck(this, a2);
2320
2321
  if (e7 !== void 0) return e7;
2321
2322
  }
2322
- return !!(this.hasResourceBundle(n2, e6) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a2(n2, e6) && (!r2 || a2(i2, e6)));
2323
+ if (this.hasResourceBundle(n2, e6) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages) return true;
2324
+ let { languageUtils: o2 } = this.services, s2 = t2.lng ? o2.isSupportedCode(n2) && o2.toResolveHierarchy(n2, false)[0] : n2;
2325
+ return !(s2 && !a2(s2, e6) || r2 && !a2(i2, e6));
2323
2326
  }
2324
2327
  loadNamespaces(e6, t2) {
2325
2328
  let n2 = z();
@@ -2357,7 +2360,7 @@ var J = class e4 extends G {
2357
2360
  cloneInstance(t2 = {}, n2 = q) {
2358
2361
  let r2 = t2.forkResourceStore;
2359
2362
  r2 && delete t2.forkResourceStore;
2360
- let i2 = { ...this.options, ...t2, isClone: true }, a2 = new e4(i2);
2363
+ let i2 = { ...this.options, preload: false, ...t2, isClone: true }, a2 = new e4(i2);
2361
2364
  if ((t2.debug !== void 0 || t2.prefix !== void 0) && (a2.logger = a2.logger.clone(t2)), [`store`, `services`, `language`].forEach((e6) => {
2362
2365
  a2[e6] = this[e6];
2363
2366
  }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new si(Object.keys(this.store.data).reduce((e6, t3) => (e6[t3] = { ...this.store.data[t3] }, e6[t3] = Object.keys(e6[t3]).reduce((n3, r3) => (n3[r3] = { ...e6[t3][r3] }, n3), e6[t3]), e6), {}), i2), a2.services.resourceStore = a2.store), t2.interpolation) {
@@ -2383,75 +2386,38 @@ var ki = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 =
2383
2386
  }
2384
2387
  } }), n2 && (s2.resources = { [e6]: { translation: n2 } }), i2 || c2.init(s2), c2;
2385
2388
  };
2386
- var Ai = [`__proto__`, `constructor`, `prototype`];
2387
- function ji(e6, t2, n2) {
2388
- function r2(e7) {
2389
- return e7 && e7.indexOf(`###`) > -1 ? e7.replace(/###/g, `.`) : e7;
2390
- }
2391
- function i2() {
2392
- return !e6 || typeof e6 == `string`;
2393
- }
2394
- for (var a2 = typeof t2 == `string` ? t2.split(`.`) : [].concat(t2); a2.length > 1; ) {
2395
- if (i2()) return {};
2396
- var o2 = r2(a2.shift());
2397
- if (Ai.indexOf(o2) > -1) return {};
2398
- !e6[o2] && n2 && (e6[o2] = new n2()), e6 = e6[o2];
2399
- }
2400
- if (i2()) return {};
2401
- var s2 = r2(a2.shift());
2402
- return Ai.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
2389
+ function Ai(e6, t2) {
2390
+ let n2 = t2 && t2.cache ? t2.cache : Bi, r2 = t2 && t2.serializer ? t2.serializer : Ri;
2391
+ return (t2 && t2.strategy ? t2.strategy : Fi)(e6, { cache: n2, serializer: r2 });
2403
2392
  }
2404
- function Mi(e6, t2, n2) {
2405
- var r2 = ji(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
2406
- i2 !== void 0 && (i2[a2] = n2);
2407
- }
2408
- function Ni(e6, t2) {
2409
- var n2 = ji(e6, t2), r2 = n2.obj, i2 = n2.k;
2410
- if (r2) return r2[i2];
2411
- }
2412
- var Pi = [];
2413
- var Fi = Pi.forEach;
2414
- var Ii = Pi.slice;
2415
- function Li(e6) {
2416
- return Fi.call(Ii.call(arguments, 1), function(t2) {
2417
- if (t2) for (var n2 = 0, r2 = Object.keys(t2); n2 < r2.length; n2++) {
2418
- var i2 = r2[n2];
2419
- Ai.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
2420
- }
2421
- }), e6;
2422
- }
2423
- function Ri(e6, t2) {
2424
- let n2 = t2 && t2.cache ? t2.cache : Ji, r2 = t2 && t2.serializer ? t2.serializer : Ki;
2425
- return (t2 && t2.strategy ? t2.strategy : Ui)(e6, { cache: n2, serializer: r2 });
2426
- }
2427
- function zi(e6) {
2393
+ function ji(e6) {
2428
2394
  return e6 == null || typeof e6 == `number` || typeof e6 == `boolean`;
2429
2395
  }
2430
- function Bi(e6, t2, n2, r2) {
2431
- let i2 = zi(r2) ? r2 : n2(r2), a2 = t2.get(i2);
2396
+ function Mi(e6, t2, n2, r2) {
2397
+ let i2 = ji(r2) ? r2 : n2(r2), a2 = t2.get(i2);
2432
2398
  return a2 === void 0 && (a2 = e6.call(this, r2), t2.set(i2, a2)), a2;
2433
2399
  }
2434
- function Vi(e6, t2, n2) {
2400
+ function Ni(e6, t2, n2) {
2435
2401
  let r2 = Array.prototype.slice.call(arguments, 3), i2 = n2(r2), a2 = t2.get(i2);
2436
2402
  return a2 === void 0 && (a2 = e6.apply(this, r2), t2.set(i2, a2)), a2;
2437
2403
  }
2438
- function Hi(e6, t2, n2, r2, i2) {
2404
+ function Pi(e6, t2, n2, r2, i2) {
2439
2405
  return n2.bind(t2, e6, r2, i2);
2440
2406
  }
2441
- function Ui(e6, t2) {
2442
- let n2 = e6.length === 1 ? Bi : Vi;
2443
- return Hi(e6, this, n2, t2.cache.create(), t2.serializer);
2407
+ function Fi(e6, t2) {
2408
+ let n2 = e6.length === 1 ? Mi : Ni;
2409
+ return Pi(e6, this, n2, t2.cache.create(), t2.serializer);
2444
2410
  }
2445
- function Wi(e6, t2) {
2446
- return Hi(e6, this, Vi, t2.cache.create(), t2.serializer);
2411
+ function Ii(e6, t2) {
2412
+ return Pi(e6, this, Ni, t2.cache.create(), t2.serializer);
2447
2413
  }
2448
- function Gi(e6, t2) {
2449
- return Hi(e6, this, Bi, t2.cache.create(), t2.serializer);
2414
+ function Li(e6, t2) {
2415
+ return Pi(e6, this, Mi, t2.cache.create(), t2.serializer);
2450
2416
  }
2451
- var Ki = function() {
2417
+ var Ri = function() {
2452
2418
  return JSON.stringify(arguments);
2453
2419
  };
2454
- var qi = class {
2420
+ var zi = class {
2455
2421
  constructor() {
2456
2422
  this.cache = /* @__PURE__ */ Object.create(null);
2457
2423
  }
@@ -2462,14 +2428,14 @@ var qi = class {
2462
2428
  this.cache[e6] = t2;
2463
2429
  }
2464
2430
  };
2465
- var Ji = { create: function() {
2466
- return new qi();
2431
+ var Bi = { create: function() {
2432
+ return new zi();
2467
2433
  } };
2468
- var Yi = { variadic: Wi, monadic: Gi };
2469
- var Xi = /(?:[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;
2470
- function Zi(e6) {
2434
+ var Vi = { variadic: Ii, monadic: Li };
2435
+ var Hi = /(?:[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;
2436
+ function Ui(e6) {
2471
2437
  let t2 = {};
2472
- return e6.replace(Xi, (e7) => {
2438
+ return e6.replace(Hi, (e7) => {
2473
2439
  let n2 = e7.length;
2474
2440
  switch (e7[0]) {
2475
2441
  case `G`:
@@ -2556,10 +2522,10 @@ function Zi(e6) {
2556
2522
  return ``;
2557
2523
  }), t2;
2558
2524
  }
2559
- var Qi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2560
- function $i(e6) {
2525
+ var Wi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2526
+ function Gi(e6) {
2561
2527
  if (e6.length === 0) throw Error(`Number skeleton cannot be empty`);
2562
- let t2 = e6.split(Qi).filter((e7) => e7.length > 0), n2 = [];
2528
+ let t2 = e6.split(Wi).filter((e7) => e7.length > 0), n2 = [];
2563
2529
  for (let e7 of t2) {
2564
2530
  let t3 = e7.split(`/`);
2565
2531
  if (t3.length === 0) throw Error(`Invalid number skeleton`);
@@ -2569,20 +2535,20 @@ function $i(e6) {
2569
2535
  }
2570
2536
  return n2;
2571
2537
  }
2572
- function ea(e6) {
2538
+ function Ki(e6) {
2573
2539
  return e6.replace(/^(.*?)-/, ``);
2574
2540
  }
2575
- var ta = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
2576
- var na = /^(@+)?(\+|#+)?[rs]?$/g;
2577
- var ra = /(\*)(0+)|(#+)(0+)|(0+)/g;
2578
- var ia = /^(0+)$/;
2579
- function aa(e6) {
2541
+ var qi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
2542
+ var Ji = /^(@+)?(\+|#+)?[rs]?$/g;
2543
+ var Yi = /(\*)(0+)|(#+)(0+)|(0+)/g;
2544
+ var Xi = /^(0+)$/;
2545
+ function Zi(e6) {
2580
2546
  let t2 = {};
2581
- return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(na, function(e7, n2, r2) {
2547
+ return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(Ji, function(e7, n2, r2) {
2582
2548
  return typeof r2 == `string` ? r2 === `+` ? t2.minimumSignificantDigits = n2.length : n2[0] === `#` ? t2.maximumSignificantDigits = n2.length : (t2.minimumSignificantDigits = n2.length, t2.maximumSignificantDigits = n2.length + (typeof r2 == `string` ? r2.length : 0)) : (t2.minimumSignificantDigits = n2.length, t2.maximumSignificantDigits = n2.length), ``;
2583
2549
  }), t2;
2584
2550
  }
2585
- function oa(e6) {
2551
+ function Qi(e6) {
2586
2552
  switch (e6) {
2587
2553
  case `sign-auto`:
2588
2554
  return { signDisplay: `auto` };
@@ -2606,19 +2572,19 @@ function oa(e6) {
2606
2572
  return { signDisplay: `never` };
2607
2573
  }
2608
2574
  }
2609
- function sa(e6) {
2575
+ function $i(e6) {
2610
2576
  let t2;
2611
2577
  if (e6[0] === `E` && e6[1] === `E` ? (t2 = { notation: `engineering` }, e6 = e6.slice(2)) : e6[0] === `E` && (t2 = { notation: `scientific` }, e6 = e6.slice(1)), t2) {
2612
2578
  let n2 = e6.slice(0, 2);
2613
- if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !ia.test(e6)) throw Error(`Malformed concise eng/scientific notation`);
2579
+ if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !Xi.test(e6)) throw Error(`Malformed concise eng/scientific notation`);
2614
2580
  t2.minimumIntegerDigits = e6.length;
2615
2581
  }
2616
2582
  return t2;
2617
2583
  }
2618
- function ca(e6) {
2619
- return oa(e6) || {};
2584
+ function ea(e6) {
2585
+ return Qi(e6) || {};
2620
2586
  }
2621
- function la(e6) {
2587
+ function ta(e6) {
2622
2588
  let t2 = {};
2623
2589
  for (let n2 of e6) {
2624
2590
  switch (n2.stem) {
@@ -2642,7 +2608,7 @@ function la(e6) {
2642
2608
  continue;
2643
2609
  case `measure-unit`:
2644
2610
  case `unit`:
2645
- t2.style = `unit`, t2.unit = ea(n2.options[0]);
2611
+ t2.style = `unit`, t2.unit = Ki(n2.options[0]);
2646
2612
  continue;
2647
2613
  case `compact-short`:
2648
2614
  case `K`:
@@ -2653,10 +2619,10 @@ function la(e6) {
2653
2619
  t2.notation = `compact`, t2.compactDisplay = `long`;
2654
2620
  continue;
2655
2621
  case `scientific`:
2656
- t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ca(t3) }), {}) };
2622
+ t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ea(t3) }), {}) };
2657
2623
  continue;
2658
2624
  case `engineering`:
2659
- t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ca(t3) }), {}) };
2625
+ t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ea(t3) }), {}) };
2660
2626
  continue;
2661
2627
  case `notation-simple`:
2662
2628
  t2.notation = `standard`;
@@ -2699,7 +2665,7 @@ function la(e6) {
2699
2665
  continue;
2700
2666
  case `integer-width`:
2701
2667
  if (n2.options.length > 1) throw RangeError(`integer-width stems only accept a single optional option`);
2702
- n2.options[0].replace(ra, function(e8, n3, r3, i2, a2, o2) {
2668
+ n2.options[0].replace(Yi, function(e8, n3, r3, i2, a2, o2) {
2703
2669
  if (n3) t2.minimumIntegerDigits = r3.length;
2704
2670
  else if (i2 && a2) throw Error(`We currently do not support maximum integer digits`);
2705
2671
  else if (o2) throw Error(`We currently do not support exact integer digits`);
@@ -2707,83 +2673,83 @@ function la(e6) {
2707
2673
  });
2708
2674
  continue;
2709
2675
  }
2710
- if (ia.test(n2.stem)) {
2676
+ if (Xi.test(n2.stem)) {
2711
2677
  t2.minimumIntegerDigits = n2.stem.length;
2712
2678
  continue;
2713
2679
  }
2714
- if (ta.test(n2.stem)) {
2680
+ if (qi.test(n2.stem)) {
2715
2681
  if (n2.options.length > 1) throw RangeError(`Fraction-precision stems only accept a single optional option`);
2716
- n2.stem.replace(ta, function(e9, n3, r3, i2, a2, o2) {
2682
+ n2.stem.replace(qi, function(e9, n3, r3, i2, a2, o2) {
2717
2683
  return r3 === `*` ? t2.minimumFractionDigits = n3.length : i2 && i2[0] === `#` ? t2.maximumFractionDigits = i2.length : a2 && o2 ? (t2.minimumFractionDigits = a2.length, t2.maximumFractionDigits = a2.length + o2.length) : (t2.minimumFractionDigits = n3.length, t2.maximumFractionDigits = n3.length), ``;
2718
2684
  });
2719
2685
  let e8 = n2.options[0];
2720
- e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...aa(e8) });
2686
+ e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...Zi(e8) });
2721
2687
  continue;
2722
2688
  }
2723
- if (na.test(n2.stem)) {
2724
- t2 = { ...t2, ...aa(n2.stem) };
2689
+ if (Ji.test(n2.stem)) {
2690
+ t2 = { ...t2, ...Zi(n2.stem) };
2725
2691
  continue;
2726
2692
  }
2727
- let e7 = oa(n2.stem);
2693
+ let e7 = Qi(n2.stem);
2728
2694
  e7 && (t2 = { ...t2, ...e7 });
2729
- let r2 = sa(n2.stem);
2695
+ let r2 = $i(n2.stem);
2730
2696
  r2 && (t2 = { ...t2, ...r2 });
2731
2697
  }
2732
2698
  return t2;
2733
2699
  }
2734
- var ua = function(e6) {
2700
+ var na = function(e6) {
2735
2701
  return e6[e6.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = `EXPECT_ARGUMENT_CLOSING_BRACE`, e6[e6.EMPTY_ARGUMENT = 2] = `EMPTY_ARGUMENT`, e6[e6.MALFORMED_ARGUMENT = 3] = `MALFORMED_ARGUMENT`, e6[e6.EXPECT_ARGUMENT_TYPE = 4] = `EXPECT_ARGUMENT_TYPE`, e6[e6.INVALID_ARGUMENT_TYPE = 5] = `INVALID_ARGUMENT_TYPE`, e6[e6.EXPECT_ARGUMENT_STYLE = 6] = `EXPECT_ARGUMENT_STYLE`, e6[e6.INVALID_NUMBER_SKELETON = 7] = `INVALID_NUMBER_SKELETON`, e6[e6.INVALID_DATE_TIME_SKELETON = 8] = `INVALID_DATE_TIME_SKELETON`, e6[e6.EXPECT_NUMBER_SKELETON = 9] = `EXPECT_NUMBER_SKELETON`, e6[e6.EXPECT_DATE_TIME_SKELETON = 10] = `EXPECT_DATE_TIME_SKELETON`, e6[e6.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = `UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`, e6[e6.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = `EXPECT_SELECT_ARGUMENT_OPTIONS`, e6[e6.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = `EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`, e6[e6.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = `INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`, e6[e6.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = `EXPECT_SELECT_ARGUMENT_SELECTOR`, e6[e6.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = `EXPECT_PLURAL_ARGUMENT_SELECTOR`, e6[e6.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = `EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`, e6[e6.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = `EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`, e6[e6.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = `INVALID_PLURAL_ARGUMENT_SELECTOR`, e6[e6.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = `DUPLICATE_PLURAL_ARGUMENT_SELECTOR`, e6[e6.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = `DUPLICATE_SELECT_ARGUMENT_SELECTOR`, e6[e6.MISSING_OTHER_CLAUSE = 22] = `MISSING_OTHER_CLAUSE`, e6[e6.INVALID_TAG = 23] = `INVALID_TAG`, e6[e6.INVALID_TAG_NAME = 25] = `INVALID_TAG_NAME`, e6[e6.UNMATCHED_CLOSING_TAG = 26] = `UNMATCHED_CLOSING_TAG`, e6[e6.UNCLOSED_TAG = 27] = `UNCLOSED_TAG`, e6;
2736
2702
  }({});
2737
- function da(e6) {
2703
+ function ra(e6) {
2738
2704
  return e6.type === 0;
2739
2705
  }
2740
- function fa(e6) {
2706
+ function ia(e6) {
2741
2707
  return e6.type === 1;
2742
2708
  }
2743
- function pa(e6) {
2709
+ function aa(e6) {
2744
2710
  return e6.type === 2;
2745
2711
  }
2746
- function ma(e6) {
2712
+ function oa(e6) {
2747
2713
  return e6.type === 3;
2748
2714
  }
2749
- function ha(e6) {
2715
+ function sa(e6) {
2750
2716
  return e6.type === 4;
2751
2717
  }
2752
- function ga(e6) {
2718
+ function ca(e6) {
2753
2719
  return e6.type === 5;
2754
2720
  }
2755
- function _a(e6) {
2721
+ function la(e6) {
2756
2722
  return e6.type === 6;
2757
2723
  }
2758
- function va(e6) {
2724
+ function ua(e6) {
2759
2725
  return e6.type === 7;
2760
2726
  }
2761
- function ya(e6) {
2727
+ function da(e6) {
2762
2728
  return e6.type === 8;
2763
2729
  }
2764
- function ba(e6) {
2730
+ function fa(e6) {
2765
2731
  return !!(e6 && typeof e6 == `object` && e6.type === 0);
2766
2732
  }
2767
- function xa(e6) {
2733
+ function pa(e6) {
2768
2734
  return !!(e6 && typeof e6 == `object` && e6.type === 1);
2769
2735
  }
2770
- var Sa = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2736
+ var ma = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2771
2737
  var Y = { "001": [`H`, `h`], 419: [`h`, `H`, `hB`, `hb`], AC: [`H`, `h`, `hb`, `hB`], AD: [`H`, `hB`], AE: [`h`, `hB`, `hb`, `H`], AF: [`H`, `hb`, `hB`, `h`], AG: [`h`, `hb`, `H`, `hB`], AI: [`H`, `h`, `hb`, `hB`], AL: [`h`, `H`, `hB`], AM: [`H`, `hB`], AO: [`H`, `hB`], AR: [`h`, `H`, `hB`, `hb`], AS: [`h`, `H`], AT: [`H`, `hB`], AU: [`h`, `hb`, `H`, `hB`], AW: [`H`, `hB`], AX: [`H`], AZ: [`H`, `hB`, `h`], BA: [`H`, `hB`, `h`], BB: [`h`, `hb`, `H`, `hB`], BD: [`h`, `hB`, `H`], BE: [`H`, `hB`], BF: [`H`, `hB`], BG: [`H`, `hB`, `h`], BH: [`h`, `hB`, `hb`, `H`], BI: [`H`, `h`], BJ: [`H`, `hB`], BL: [`H`, `hB`], BM: [`h`, `hb`, `H`, `hB`], BN: [`hb`, `hB`, `h`, `H`], BO: [`h`, `H`, `hB`, `hb`], BQ: [`H`], BR: [`H`, `hB`], BS: [`h`, `hb`, `H`, `hB`], BT: [`h`, `H`], BW: [`H`, `h`, `hb`, `hB`], BY: [`H`, `h`], BZ: [`H`, `h`, `hb`, `hB`], CA: [`h`, `hb`, `H`, `hB`], CC: [`H`, `h`, `hb`, `hB`], CD: [`hB`, `H`], CF: [`H`, `h`, `hB`], CG: [`H`, `hB`], CH: [`H`, `hB`, `h`], CI: [`H`, `hB`], CK: [`H`, `h`, `hb`, `hB`], CL: [`h`, `H`, `hB`, `hb`], CM: [`H`, `h`, `hB`], CN: [`H`, `hB`, `hb`, `h`], CO: [`h`, `H`, `hB`, `hb`], CP: [`H`], CR: [`h`, `H`, `hB`, `hb`], CU: [`h`, `H`, `hB`, `hb`], CV: [`H`, `hB`], CW: [`H`, `hB`], CX: [`H`, `h`, `hb`, `hB`], CY: [`h`, `H`, `hb`, `hB`], CZ: [`H`], DE: [`H`, `hB`], DG: [`H`, `h`, `hb`, `hB`], DJ: [`h`, `H`], DK: [`H`], DM: [`h`, `hb`, `H`, `hB`], DO: [`h`, `H`, `hB`, `hb`], DZ: [`h`, `hB`, `hb`, `H`], EA: [`H`, `h`, `hB`, `hb`], EC: [`h`, `H`, `hB`, `hb`], EE: [`H`, `hB`], EG: [`h`, `hB`, `hb`, `H`], EH: [`h`, `hB`, `hb`, `H`], ER: [`h`, `H`], ES: [`H`, `hB`, `h`, `hb`], ET: [`hB`, `hb`, `h`, `H`], FI: [`H`], FJ: [`h`, `hb`, `H`, `hB`], FK: [`H`, `h`, `hb`, `hB`], FM: [`h`, `hb`, `H`, `hB`], FO: [`H`, `h`], FR: [`H`, `hB`], GA: [`H`, `hB`], GB: [`H`, `h`, `hb`, `hB`], GD: [`h`, `hb`, `H`, `hB`], GE: [`H`, `hB`, `h`], GF: [`H`, `hB`], GG: [`H`, `h`, `hb`, `hB`], GH: [`h`, `H`], GI: [`H`, `h`, `hb`, `hB`], GL: [`H`, `h`], GM: [`h`, `hb`, `H`, `hB`], GN: [`H`, `hB`], GP: [`H`, `hB`], GQ: [`H`, `hB`, `h`, `hb`], GR: [`h`, `H`, `hb`, `hB`], GS: [`H`, `h`, `hb`, `hB`], GT: [`h`, `H`, `hB`, `hb`], GU: [`h`, `hb`, `H`, `hB`], GW: [`H`, `hB`], GY: [`h`, `hb`, `H`, `hB`], HK: [`h`, `hB`, `hb`, `H`], HN: [`h`, `H`, `hB`, `hb`], HR: [`H`, `hB`], HU: [`H`, `h`], IC: [`H`, `h`, `hB`, `hb`], ID: [`H`], IE: [`H`, `h`, `hb`, `hB`], IL: [`H`, `hB`], IM: [`H`, `h`, `hb`, `hB`], IN: [`h`, `H`], IO: [`H`, `h`, `hb`, `hB`], IQ: [`h`, `hB`, `hb`, `H`], IR: [`hB`, `H`], IS: [`H`], IT: [`H`, `hB`], JE: [`H`, `h`, `hb`, `hB`], JM: [`h`, `hb`, `H`, `hB`], JO: [`h`, `hB`, `hb`, `H`], JP: [`H`, `K`, `h`], KE: [`hB`, `hb`, `H`, `h`], KG: [`H`, `h`, `hB`, `hb`], KH: [`hB`, `h`, `H`, `hb`], KI: [`h`, `hb`, `H`, `hB`], KM: [`H`, `h`, `hB`, `hb`], KN: [`h`, `hb`, `H`, `hB`], KP: [`h`, `H`, `hB`, `hb`], KR: [`h`, `H`, `hB`, `hb`], KW: [`h`, `hB`, `hb`, `H`], KY: [`h`, `hb`, `H`, `hB`], KZ: [`H`, `hB`], LA: [`H`, `hb`, `hB`, `h`], LB: [`h`, `hB`, `hb`, `H`], LC: [`h`, `hb`, `H`, `hB`], LI: [`H`, `hB`, `h`], LK: [`H`, `h`, `hB`, `hb`], LR: [`h`, `hb`, `H`, `hB`], LS: [`h`, `H`], LT: [`H`, `h`, `hb`, `hB`], LU: [`H`, `h`, `hB`], LV: [`H`, `hB`, `hb`, `h`], LY: [`h`, `hB`, `hb`, `H`], MA: [`H`, `h`, `hB`, `hb`], MC: [`H`, `hB`], MD: [`H`, `hB`], ME: [`H`, `hB`, `h`], MF: [`H`, `hB`], MG: [`H`, `h`], MH: [`h`, `hb`, `H`, `hB`], MK: [`H`, `h`, `hb`, `hB`], ML: [`H`], MM: [`hB`, `hb`, `H`, `h`], MN: [`H`, `h`, `hb`, `hB`], MO: [`h`, `hB`, `hb`, `H`], MP: [`h`, `hb`, `H`, `hB`], MQ: [`H`, `hB`], MR: [`h`, `hB`, `hb`, `H`], MS: [`H`, `h`, `hb`, `hB`], MT: [`H`, `h`], MU: [`H`, `h`], MV: [`H`, `h`], MW: [`h`, `hb`, `H`, `hB`], MX: [`h`, `H`, `hB`, `hb`], MY: [`hb`, `hB`, `h`, `H`], MZ: [`H`, `hB`], NA: [`h`, `H`, `hB`, `hb`], NC: [`H`, `hB`], NE: [`H`], NF: [`H`, `h`, `hb`, `hB`], NG: [`H`, `h`, `hb`, `hB`], NI: [`h`, `H`, `hB`, `hb`], NL: [`H`, `hB`], NO: [`H`, `h`], NP: [`H`, `h`, `hB`], NR: [`H`, `h`, `hb`, `hB`], NU: [`H`, `h`, `hb`, `hB`], NZ: [`h`, `hb`, `H`, `hB`], OM: [`h`, `hB`, `hb`, `H`], PA: [`h`, `H`, `hB`, `hb`], PE: [`h`, `H`, `hB`, `hb`], PF: [`H`, `h`, `hB`], PG: [`h`, `H`], PH: [`h`, `hB`, `hb`, `H`], PK: [`h`, `hB`, `H`], PL: [`H`, `h`], PM: [`H`, `hB`], PN: [`H`, `h`, `hb`, `hB`], PR: [`h`, `H`, `hB`, `hb`], PS: [`h`, `hB`, `hb`, `H`], PT: [`H`, `hB`], PW: [`h`, `H`], PY: [`h`, `H`, `hB`, `hb`], QA: [`h`, `hB`, `hb`, `H`], RE: [`H`, `hB`], RO: [`H`, `hB`], RS: [`H`, `hB`, `h`], RU: [`H`], RW: [`H`, `h`], SA: [`h`, `hB`, `hb`, `H`], SB: [`h`, `hb`, `H`, `hB`], SC: [`H`, `h`, `hB`], SD: [`h`, `hB`, `hb`, `H`], SE: [`H`], SG: [`h`, `hb`, `H`, `hB`], SH: [`H`, `h`, `hb`, `hB`], SI: [`H`, `hB`], SJ: [`H`], SK: [`H`], SL: [`h`, `hb`, `H`, `hB`], SM: [`H`, `h`, `hB`], SN: [`H`, `h`, `hB`], SO: [`h`, `H`], SR: [`H`, `hB`], SS: [`h`, `hb`, `H`, `hB`], ST: [`H`, `hB`], SV: [`h`, `H`, `hB`, `hb`], SX: [`H`, `h`, `hb`, `hB`], SY: [`h`, `hB`, `hb`, `H`], SZ: [`h`, `hb`, `H`, `hB`], TA: [`H`, `h`, `hb`, `hB`], TC: [`h`, `hb`, `H`, `hB`], TD: [`h`, `H`, `hB`], TF: [`H`, `h`, `hB`], TG: [`H`, `hB`], TH: [`H`, `h`], TJ: [`H`, `h`], TL: [`H`, `hB`, `hb`, `h`], TM: [`H`, `h`], TN: [`h`, `hB`, `hb`, `H`], TO: [`h`, `H`], TR: [`H`, `hB`], TT: [`h`, `hb`, `H`, `hB`], TW: [`hB`, `hb`, `h`, `H`], TZ: [`hB`, `hb`, `H`, `h`], UA: [`H`, `hB`, `h`], UG: [`hB`, `hb`, `H`, `h`], UM: [`h`, `hb`, `H`, `hB`], US: [`h`, `hb`, `H`, `hB`], UY: [`h`, `H`, `hB`, `hb`], UZ: [`H`, `hB`, `h`], VA: [`H`, `h`, `hB`], VC: [`h`, `hb`, `H`, `hB`], VE: [`h`, `H`, `hB`, `hb`], VG: [`h`, `hb`, `H`, `hB`], VI: [`h`, `hb`, `H`, `hB`], VN: [`H`, `h`], VU: [`h`, `H`], WF: [`H`, `hB`], WS: [`h`, `H`], XK: [`H`, `hB`, `h`], YE: [`h`, `hB`, `hb`, `H`], YT: [`H`, `hB`], ZA: [`H`, `h`, `hb`, `hB`], ZM: [`h`, `hb`, `H`, `hB`], ZW: [`H`, `h`], "af-ZA": [`H`, `h`, `hB`, `hb`], "ar-001": [`h`, `hB`, `hb`, `H`], "ca-ES": [`H`, `h`, `hB`], "en-001": [`h`, `hb`, `H`, `hB`], "en-HK": [`h`, `hb`, `H`, `hB`], "en-IL": [`H`, `h`, `hb`, `hB`], "en-MY": [`h`, `hb`, `H`, `hB`], "es-BR": [`H`, `h`, `hB`, `hb`], "es-ES": [`H`, `h`, `hB`, `hb`], "es-GQ": [`H`, `h`, `hB`, `hb`], "fr-CA": [`H`, `h`, `hB`], "gl-ES": [`H`, `h`, `hB`], "gu-IN": [`hB`, `hb`, `h`, `H`], "hi-IN": [`hB`, `h`, `H`], "it-CH": [`H`, `h`, `hB`], "it-IT": [`H`, `h`, `hB`], "kn-IN": [`hB`, `h`, `H`], "ku-SY": [`H`, `hB`], "ml-IN": [`hB`, `h`, `H`], "mr-IN": [`hB`, `hb`, `h`, `H`], "pa-IN": [`hB`, `hb`, `h`, `H`], "ta-IN": [`hB`, `h`, `hb`, `H`], "te-IN": [`hB`, `h`, `H`], "zu-ZA": [`H`, `hB`, `hb`, `h`] };
2772
- function Ca(e6, t2) {
2738
+ function ha(e6, t2) {
2773
2739
  let n2 = ``;
2774
2740
  for (let r2 = 0; r2 < e6.length; r2++) {
2775
2741
  let i2 = e6.charAt(r2);
2776
2742
  if (i2 === `j`) {
2777
2743
  let a2 = 0;
2778
2744
  for (; r2 + 1 < e6.length && e6.charAt(r2 + 1) === i2; ) a2++, r2++;
2779
- let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = wa(t2);
2745
+ let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = ga(t2);
2780
2746
  for ((c2 == `H` || c2 == `k`) && (s2 = 0); s2-- > 0; ) n2 += `a`;
2781
2747
  for (; o2-- > 0; ) n2 = c2 + n2;
2782
2748
  } else n2 += i2 === `J` ? `H` : i2;
2783
2749
  }
2784
2750
  return n2;
2785
2751
  }
2786
- function wa(e6) {
2752
+ function ga(e6) {
2787
2753
  let t2 = e6.hourCycle;
2788
2754
  if (t2 === void 0) {
2789
2755
  let n3 = e6;
@@ -2804,34 +2770,34 @@ function wa(e6) {
2804
2770
  let n2 = e6.language, r2;
2805
2771
  return n2 !== `root` && (r2 = e6.maximize().region), (Y[`${n2}-${r2}`] || Y[r2 || ``] || Y[n2 || ``] || Y[`${n2}-001`] || Y[`001`])[0].charAt(0);
2806
2772
  }
2807
- var Ta = RegExp(`^${Sa.source}*`);
2808
- var Ea = RegExp(`${Sa.source}*$`);
2773
+ var _a = RegExp(`^${ma.source}*`);
2774
+ var va = RegExp(`${ma.source}*$`);
2809
2775
  function X(e6, t2) {
2810
2776
  return { start: e6, end: t2 };
2811
2777
  }
2812
- var Da = !!Object.fromEntries;
2813
- var Oa = !!String.prototype.trimStart;
2814
- var ka = !!String.prototype.trimEnd;
2815
- var Aa = Da ? Object.fromEntries : function(e6) {
2778
+ var ya = !!Object.fromEntries;
2779
+ var ba = !!String.prototype.trimStart;
2780
+ var xa = !!String.prototype.trimEnd;
2781
+ var Sa = ya ? Object.fromEntries : function(e6) {
2816
2782
  let t2 = {};
2817
2783
  for (let [n2, r2] of e6) t2[n2] = r2;
2818
2784
  return t2;
2819
2785
  };
2820
- var ja = Oa ? function(e6) {
2786
+ var Ca = ba ? function(e6) {
2821
2787
  return e6.trimStart();
2822
2788
  } : function(e6) {
2823
- return e6.replace(Ta, ``);
2789
+ return e6.replace(_a, ``);
2824
2790
  };
2825
- var Ma = ka ? function(e6) {
2791
+ var wa = xa ? function(e6) {
2826
2792
  return e6.trimEnd();
2827
2793
  } : function(e6) {
2828
- return e6.replace(Ea, ``);
2794
+ return e6.replace(va, ``);
2829
2795
  };
2830
- var Na = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2831
- function Pa(e6, t2) {
2832
- return Na.lastIndex = t2, Na.exec(e6)[1] ?? ``;
2796
+ var Ta = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2797
+ function Ea(e6, t2) {
2798
+ return Ta.lastIndex = t2, Ta.exec(e6)[1] ?? ``;
2833
2799
  }
2834
- function Fa(e6) {
2800
+ function Da(e6) {
2835
2801
  if (e6.length === 0) return null;
2836
2802
  let t2 = 1, n2 = 1;
2837
2803
  for (let r2 = 0; r2 < e6.length; ) {
@@ -2852,7 +2818,7 @@ function Fa(e6) {
2852
2818
  }
2853
2819
  return { offset: e6.length, line: t2, column: n2 };
2854
2820
  }
2855
- var Ia = class {
2821
+ var Oa = class {
2856
2822
  constructor(e6, t2 = {}) {
2857
2823
  this.message = e6, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!t2.ignoreTag, this.locale = t2.locale, this.requiresOtherClause = !!t2.requiresOtherClause, this.shouldParseSkeletons = !!t2.shouldParseSkeletons;
2858
2824
  }
@@ -2861,7 +2827,7 @@ var Ia = class {
2861
2827
  if (this.message.length > 0) {
2862
2828
  let e6 = this.message.charCodeAt(0);
2863
2829
  if (e6 !== 35 && e6 !== 39 && e6 !== 60 && e6 !== 123 && e6 !== 125) {
2864
- let e7 = Fa(this.message);
2830
+ let e7 = Da(this.message);
2865
2831
  if (e7) {
2866
2832
  let t2 = this.clonePosition();
2867
2833
  return this.position = e7, { val: [{ type: 0, value: this.message, location: X(t2, this.clonePosition()) }], err: null };
@@ -2885,7 +2851,7 @@ var Ia = class {
2885
2851
  } else if (i2 === 60 && !this.ignoreTag && this.peek() === 47) {
2886
2852
  if (n2) break;
2887
2853
  return this.error(26, X(this.clonePosition(), this.clonePosition()));
2888
- } else if (i2 === 60 && !this.ignoreTag && La(this.peek() || 0)) {
2854
+ } else if (i2 === 60 && !this.ignoreTag && ka(this.peek() || 0)) {
2889
2855
  let n3 = this.parseTag(e6, t2);
2890
2856
  if (n3.err) return n3;
2891
2857
  r2.push(n3.val);
@@ -2907,7 +2873,7 @@ var Ia = class {
2907
2873
  if (i2.err) return i2;
2908
2874
  let a2 = i2.val, o2 = this.clonePosition();
2909
2875
  if (this.bumpIf(`</`)) {
2910
- if (this.isEOF() || !La(this.char())) return this.error(23, X(o2, this.clonePosition()));
2876
+ if (this.isEOF() || !ka(this.char())) return this.error(23, X(o2, this.clonePosition()));
2911
2877
  let e7 = this.clonePosition();
2912
2878
  return r2 === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? { val: { type: 8, value: r2, children: a2, location: X(n2, this.clonePosition()) }, err: null } : this.error(23, X(o2, this.clonePosition()))) : this.error(26, X(e7, this.clonePosition()));
2913
2879
  }
@@ -2917,7 +2883,7 @@ var Ia = class {
2917
2883
  }
2918
2884
  parseTagName() {
2919
2885
  let e6 = this.offset();
2920
- for (this.bump(); !this.isEOF() && za(this.char()); ) this.bump();
2886
+ for (this.bump(); !this.isEOF() && ja(this.char()); ) this.bump();
2921
2887
  return this.message.slice(e6, this.offset());
2922
2888
  }
2923
2889
  parseLiteral(e6, t2) {
@@ -2941,7 +2907,7 @@ var Ia = class {
2941
2907
  return { val: { type: 0, value: r2, location: i2 }, err: null };
2942
2908
  }
2943
2909
  tryParseLeftAngleBracket() {
2944
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !Ra(this.peek() || 0)) ? (this.bump(), `<`) : null;
2910
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !Aa(this.peek() || 0)) ? (this.bump(), `<`) : null;
2945
2911
  }
2946
2912
  tryParseQuote(e6) {
2947
2913
  if (this.isEOF() || this.char() !== 39) return null;
@@ -2996,7 +2962,7 @@ var Ia = class {
2996
2962
  }
2997
2963
  }
2998
2964
  parseIdentifierIfPossible() {
2999
- let e6 = this.clonePosition(), t2 = this.offset(), n2 = Pa(this.message, t2), r2 = t2 + n2.length;
2965
+ let e6 = this.clonePosition(), t2 = this.offset(), n2 = Ea(this.message, t2), r2 = t2 + n2.length;
3000
2966
  return this.bumpTo(r2), { value: n2, location: X(e6, this.clonePosition()) };
3001
2967
  }
3002
2968
  parseArgumentOptions(e6, t2, n2, r2) {
@@ -3013,7 +2979,7 @@ var Ia = class {
3013
2979
  this.bumpSpace();
3014
2980
  let t4 = this.clonePosition(), n3 = this.parseSimpleArgStyleIfPossible();
3015
2981
  if (n3.err) return n3;
3016
- let r3 = Ma(n3.val);
2982
+ let r3 = wa(n3.val);
3017
2983
  if (r3.length === 0) return this.error(6, X(this.clonePosition(), this.clonePosition()));
3018
2984
  e7 = { style: r3, styleLocation: X(t4, this.clonePosition()) };
3019
2985
  }
@@ -3021,7 +2987,7 @@ var Ia = class {
3021
2987
  if (t3.err) return t3;
3022
2988
  let i3 = X(r2, this.clonePosition());
3023
2989
  if (e7 && e7.style.startsWith(`::`)) {
3024
- let t4 = ja(e7.style.slice(2));
2990
+ let t4 = Ca(e7.style.slice(2));
3025
2991
  if (a2 === `number`) {
3026
2992
  let r3 = this.parseNumberSkeletonFromString(t4, e7.styleLocation);
3027
2993
  return r3.err ? r3 : { val: { type: 2, value: n2, location: i3, style: r3.val }, err: null };
@@ -3029,8 +2995,8 @@ var Ia = class {
3029
2995
  {
3030
2996
  if (t4.length === 0) return this.error(10, i3);
3031
2997
  let r3 = t4;
3032
- this.locale && (r3 = Ca(t4, this.locale));
3033
- let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? Zi(r3) : {} };
2998
+ this.locale && (r3 = ha(t4, this.locale));
2999
+ let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? Ui(r3) : {} };
3034
3000
  return { val: { type: a2 === `date` ? 3 : 4, value: n2, location: i3, style: o3 }, err: null };
3035
3001
  }
3036
3002
  }
@@ -3055,7 +3021,7 @@ var Ia = class {
3055
3021
  let l2 = this.tryParseArgumentClose(r2);
3056
3022
  if (l2.err) return l2;
3057
3023
  let u2 = X(r2, this.clonePosition());
3058
- return a2 === `select` ? { val: { type: 5, value: n2, options: Aa(c2.val), location: u2 }, err: null } : { val: { type: 6, value: n2, options: Aa(c2.val), offset: s2, pluralType: a2 === `plural` ? `cardinal` : `ordinal`, location: u2 }, err: null };
3024
+ return a2 === `select` ? { val: { type: 5, value: n2, options: Sa(c2.val), location: u2 }, err: null } : { val: { type: 6, value: n2, options: Sa(c2.val), offset: s2, pluralType: a2 === `plural` ? `cardinal` : `ordinal`, location: u2 }, err: null };
3059
3025
  }
3060
3026
  default:
3061
3027
  return this.error(5, X(i2, o2));
@@ -3089,11 +3055,11 @@ var Ia = class {
3089
3055
  parseNumberSkeletonFromString(e6, t2) {
3090
3056
  let n2 = [];
3091
3057
  try {
3092
- n2 = $i(e6);
3058
+ n2 = Gi(e6);
3093
3059
  } catch {
3094
3060
  return this.error(7, t2);
3095
3061
  }
3096
- return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? la(n2) : {} }, err: null };
3062
+ return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? ta(n2) : {} }, err: null };
3097
3063
  }
3098
3064
  tryParsePluralOrSelectOptions(e6, t2, n2, r2) {
3099
3065
  let i2 = false, a2 = [], o2 = /* @__PURE__ */ new Set(), { value: s2, location: c2 } = r2;
@@ -3175,7 +3141,7 @@ var Ia = class {
3175
3141
  }
3176
3142
  }
3177
3143
  bumpSpace() {
3178
- for (; !this.isEOF() && Ba(this.char()); ) this.bump();
3144
+ for (; !this.isEOF() && Ma(this.char()); ) this.bump();
3179
3145
  }
3180
3146
  peek() {
3181
3147
  if (this.isEOF()) return null;
@@ -3183,34 +3149,34 @@ var Ia = class {
3183
3149
  return this.message.charCodeAt(t2 + (e6 >= 65536 ? 2 : 1)) ?? null;
3184
3150
  }
3185
3151
  };
3186
- function La(e6) {
3152
+ function ka(e6) {
3187
3153
  return e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90;
3188
3154
  }
3189
- function Ra(e6) {
3190
- return La(e6) || e6 === 47;
3155
+ function Aa(e6) {
3156
+ return ka(e6) || e6 === 47;
3191
3157
  }
3192
- function za(e6) {
3158
+ function ja(e6) {
3193
3159
  return e6 === 45 || e6 === 46 || e6 >= 48 && e6 <= 57 || e6 === 95 || e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90 || e6 == 183 || e6 >= 192 && e6 <= 214 || e6 >= 216 && e6 <= 246 || e6 >= 248 && e6 <= 893 || e6 >= 895 && e6 <= 8191 || e6 >= 8204 && e6 <= 8205 || e6 >= 8255 && e6 <= 8256 || e6 >= 8304 && e6 <= 8591 || e6 >= 11264 && e6 <= 12271 || e6 >= 12289 && e6 <= 55295 || e6 >= 63744 && e6 <= 64975 || e6 >= 65008 && e6 <= 65533 || e6 >= 65536 && e6 <= 983039;
3194
3160
  }
3195
- function Ba(e6) {
3161
+ function Ma(e6) {
3196
3162
  return e6 >= 9 && e6 <= 13 || e6 === 32 || e6 === 133 || e6 >= 8206 && e6 <= 8207 || e6 === 8232 || e6 === 8233;
3197
3163
  }
3198
- function Va(e6) {
3164
+ function Na(e6) {
3199
3165
  e6.forEach((e7) => {
3200
- if (delete e7.location, ga(e7) || _a(e7)) for (let t2 in e7.options) delete e7.options[t2].location, Va(e7.options[t2].value);
3201
- else pa(e7) && ba(e7.style) || (ma(e7) || ha(e7)) && xa(e7.style) ? delete e7.style.location : ya(e7) && Va(e7.children);
3166
+ if (delete e7.location, ca(e7) || la(e7)) for (let t2 in e7.options) delete e7.options[t2].location, Na(e7.options[t2].value);
3167
+ else aa(e7) && fa(e7.style) || (oa(e7) || sa(e7)) && pa(e7.style) ? delete e7.style.location : da(e7) && Na(e7.children);
3202
3168
  });
3203
3169
  }
3204
- function Ha(e6, t2 = {}) {
3170
+ function Pa(e6, t2 = {}) {
3205
3171
  t2 = { shouldParseSkeletons: true, requiresOtherClause: true, ...t2 };
3206
- let n2 = new Ia(e6, t2).parse();
3172
+ let n2 = new Oa(e6, t2).parse();
3207
3173
  if (n2.err) {
3208
- let e7 = SyntaxError(ua[n2.err.kind]);
3174
+ let e7 = SyntaxError(na[n2.err.kind]);
3209
3175
  throw e7.location = n2.err.location, e7.originalMessage = n2.err.message, e7;
3210
3176
  }
3211
- return t2?.captureLocation || Va(n2.val), n2.val;
3177
+ return t2?.captureLocation || Na(n2.val), n2.val;
3212
3178
  }
3213
- var Ua = class extends Error {
3179
+ var Fa = class extends Error {
3214
3180
  constructor(e6, t2, n2) {
3215
3181
  super(e6), this.code = t2, this.originalMessage = n2;
3216
3182
  }
@@ -3218,54 +3184,54 @@ var Ua = class extends Error {
3218
3184
  return `[formatjs Error: ${this.code}] ${this.message}`;
3219
3185
  }
3220
3186
  };
3221
- var Wa = class extends Ua {
3187
+ var Ia = class extends Fa {
3222
3188
  constructor(e6, t2, n2, r2) {
3223
3189
  super(`Invalid values for "${e6}": "${t2}". Options are "${Object.keys(n2).join(`", "`)}"`, `INVALID_VALUE`, r2);
3224
3190
  }
3225
3191
  };
3226
- var Ga = class extends Ua {
3192
+ var La = class extends Fa {
3227
3193
  constructor(e6, t2, n2) {
3228
3194
  super(`Value for "${e6}" must be of type ${t2}`, `INVALID_VALUE`, n2);
3229
3195
  }
3230
3196
  };
3231
- var Ka = class extends Ua {
3197
+ var Ra = class extends Fa {
3232
3198
  constructor(e6, t2) {
3233
3199
  super(`The intl string context variable "${e6}" was not provided to the string "${t2}"`, `MISSING_VALUE`, t2);
3234
3200
  }
3235
3201
  };
3236
- function qa(e6) {
3202
+ function za(e6) {
3237
3203
  return e6.length < 2 ? e6 : e6.reduce((e7, t2) => {
3238
3204
  let n2 = e7[e7.length - 1];
3239
3205
  return !n2 || n2.type !== 0 || t2.type !== 0 ? e7.push(t2) : n2.value += t2.value, e7;
3240
3206
  }, []);
3241
3207
  }
3242
- function Ja(e6) {
3208
+ function Ba(e6) {
3243
3209
  return typeof e6 == `function`;
3244
3210
  }
3245
- function Ya(e6, t2, n2, r2, i2, a2, o2) {
3246
- if (e6.length === 1 && da(e6[0])) return [{ type: 0, value: e6[0].value }];
3211
+ function Va(e6, t2, n2, r2, i2, a2, o2) {
3212
+ if (e6.length === 1 && ra(e6[0])) return [{ type: 0, value: e6[0].value }];
3247
3213
  let s2 = [];
3248
3214
  for (let c2 of e6) {
3249
- if (da(c2)) {
3215
+ if (ra(c2)) {
3250
3216
  s2.push({ type: 0, value: c2.value });
3251
3217
  continue;
3252
3218
  }
3253
- if (va(c2)) {
3219
+ if (ua(c2)) {
3254
3220
  typeof a2 == `number` && s2.push({ type: 0, value: n2.getNumberFormat(t2).format(a2) });
3255
3221
  continue;
3256
3222
  }
3257
3223
  let { value: e7 } = c2;
3258
- if (!(i2 && e7 in i2)) throw new Ka(e7, o2);
3224
+ if (!(i2 && e7 in i2)) throw new Ra(e7, o2);
3259
3225
  let l2 = i2[e7];
3260
- if (fa(c2)) (!l2 || typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint`) && (l2 = typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint` ? String(l2) : ``), s2.push({ type: typeof l2 == `string` ? 0 : 1, value: l2 });
3261
- else if (ma(c2)) {
3262
- let e8 = typeof c2.style == `string` ? r2.date[c2.style] : xa(c2.style) ? c2.style.parsedOptions : void 0;
3226
+ if (ia(c2)) (!l2 || typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint`) && (l2 = typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint` ? String(l2) : ``), s2.push({ type: typeof l2 == `string` ? 0 : 1, value: l2 });
3227
+ else if (oa(c2)) {
3228
+ let e8 = typeof c2.style == `string` ? r2.date[c2.style] : pa(c2.style) ? c2.style.parsedOptions : void 0;
3263
3229
  s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
3264
- } else if (ha(c2)) {
3265
- let e8 = typeof c2.style == `string` ? r2.time[c2.style] : xa(c2.style) ? c2.style.parsedOptions : r2.time.medium;
3230
+ } else if (sa(c2)) {
3231
+ let e8 = typeof c2.style == `string` ? r2.time[c2.style] : pa(c2.style) ? c2.style.parsedOptions : r2.time.medium;
3266
3232
  s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
3267
- } else if (pa(c2)) {
3268
- let e8 = typeof c2.style == `string` ? r2.number[c2.style] : ba(c2.style) ? c2.style.parsedOptions : void 0;
3233
+ } else if (aa(c2)) {
3234
+ let e8 = typeof c2.style == `string` ? r2.number[c2.style] : fa(c2.style) ? c2.style.parsedOptions : void 0;
3269
3235
  if (e8 && e8.scale) {
3270
3236
  let t3 = e8.scale || 1;
3271
3237
  if (typeof l2 == `bigint`) {
@@ -3275,40 +3241,40 @@ function Ya(e6, t2, n2, r2, i2, a2, o2) {
3275
3241
  }
3276
3242
  s2.push({ type: 0, value: n2.getNumberFormat(t2, e8).format(l2) });
3277
3243
  } else {
3278
- if (ya(c2)) {
3244
+ if (da(c2)) {
3279
3245
  let { children: e8, value: l3 } = c2, u2 = i2[l3];
3280
- if (!Ja(u2)) throw new Ga(l3, `function`, o2);
3281
- let d2 = u2(Ya(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
3246
+ if (!Ba(u2)) throw new La(l3, `function`, o2);
3247
+ let d2 = u2(Va(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
3282
3248
  Array.isArray(d2) || (d2 = [d2]), s2.push(...d2.map((e9) => ({ type: typeof e9 == `string` ? 0 : 1, value: e9 })));
3283
3249
  }
3284
- if (ga(c2)) {
3250
+ if (ca(c2)) {
3285
3251
  let e8 = l2, a3 = (Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0) || c2.options.other;
3286
- if (!a3) throw new Wa(c2.value, l2, Object.keys(c2.options), o2);
3287
- s2.push(...Ya(a3.value, t2, n2, r2, i2));
3288
- } else if (_a(c2)) {
3252
+ if (!a3) throw new Ia(c2.value, l2, Object.keys(c2.options), o2);
3253
+ s2.push(...Va(a3.value, t2, n2, r2, i2));
3254
+ } else if (la(c2)) {
3289
3255
  let e8 = `=${l2}`, a3 = Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0;
3290
3256
  if (!a3) {
3291
- if (!Intl.PluralRules) throw new Ua(`Intl.PluralRules is not available in this environment.
3257
+ if (!Intl.PluralRules) throw new Fa(`Intl.PluralRules is not available in this environment.
3292
3258
  Try polyfilling it using "@formatjs/intl-pluralrules"
3293
3259
  `, `MISSING_INTL_API`, o2);
3294
3260
  let e9 = typeof l2 == `bigint` ? Number(l2) : l2, r3 = n2.getPluralRules(t2, { type: c2.pluralType }).select(e9 - (c2.offset || 0));
3295
3261
  a3 = (Object.prototype.hasOwnProperty.call(c2.options, r3) ? c2.options[r3] : void 0) || c2.options.other;
3296
3262
  }
3297
- if (!a3) throw new Wa(c2.value, l2, Object.keys(c2.options), o2);
3263
+ if (!a3) throw new Ia(c2.value, l2, Object.keys(c2.options), o2);
3298
3264
  let u2 = typeof l2 == `bigint` ? Number(l2) : l2;
3299
- s2.push(...Ya(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
3265
+ s2.push(...Va(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
3300
3266
  }
3301
3267
  }
3302
3268
  }
3303
- return qa(s2);
3269
+ return za(s2);
3304
3270
  }
3305
- function Xa(e6, t2) {
3271
+ function Ha(e6, t2) {
3306
3272
  return t2 ? { ...e6, ...t2, ...Object.keys(e6).reduce((n2, r2) => (n2[r2] = { ...e6[r2], ...t2[r2] }, n2), {}) } : e6;
3307
3273
  }
3308
- function Za(e6, t2) {
3309
- return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = Xa(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
3274
+ function Ua(e6, t2) {
3275
+ return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = Ha(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
3310
3276
  }
3311
- function Qa(e6) {
3277
+ function Wa(e6) {
3312
3278
  return { create() {
3313
3279
  return { get(t2) {
3314
3280
  return e6[t2];
@@ -3317,23 +3283,23 @@ function Qa(e6) {
3317
3283
  } };
3318
3284
  } };
3319
3285
  }
3320
- function $a(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
3321
- return { getNumberFormat: Ri((...e7) => new Intl.NumberFormat(...e7), { cache: Qa(e6.number), strategy: Yi.variadic }), getDateTimeFormat: Ri((...e7) => new Intl.DateTimeFormat(...e7), { cache: Qa(e6.dateTime), strategy: Yi.variadic }), getPluralRules: Ri((...e7) => new Intl.PluralRules(...e7), { cache: Qa(e6.pluralRules), strategy: Yi.variadic }) };
3286
+ function Ga(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
3287
+ return { getNumberFormat: Ai((...e7) => new Intl.NumberFormat(...e7), { cache: Wa(e6.number), strategy: Vi.variadic }), getDateTimeFormat: Ai((...e7) => new Intl.DateTimeFormat(...e7), { cache: Wa(e6.dateTime), strategy: Vi.variadic }), getPluralRules: Ai((...e7) => new Intl.PluralRules(...e7), { cache: Wa(e6.pluralRules), strategy: Vi.variadic }) };
3322
3288
  }
3323
- var eo = class e5 {
3289
+ var Ka = class e5 {
3324
3290
  constructor(t2, n2 = e5.defaultLocale, r2, i2) {
3325
3291
  if (this.formatterCache = { number: {}, dateTime: {}, pluralRules: {} }, this.format = (e6) => {
3326
3292
  let t3 = this.formatToParts(e6);
3327
3293
  if (t3.length === 1) return t3[0].value;
3328
3294
  let n3 = t3.reduce((e7, t4) => (!e7.length || t4.type !== 0 || typeof e7[e7.length - 1] != `string` ? e7.push(t4.value) : e7[e7.length - 1] += t4.value, e7), []);
3329
3295
  return n3.length <= 1 ? n3[0] || `` : n3;
3330
- }, this.formatToParts = (e6) => Ya(this.ast, this.locales, this.formatters, this.formats, e6, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n2, this.resolvedLocale = e5.resolveLocale(n2), typeof t2 == `string`) {
3296
+ }, this.formatToParts = (e6) => Va(this.ast, this.locales, this.formatters, this.formats, e6, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n2, this.resolvedLocale = e5.resolveLocale(n2), typeof t2 == `string`) {
3331
3297
  if (this.message = t2, !e5.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3332
3298
  let { ...n3 } = i2 || {};
3333
3299
  this.ast = e5.__parse(t2, { ...n3, locale: this.resolvedLocale });
3334
3300
  } else this.ast = t2;
3335
3301
  if (!Array.isArray(this.ast)) throw TypeError(`A message must be provided as a String or AST.`);
3336
- this.formats = Za(e5.formats, r2), this.formatters = i2 && i2.formatters || $a(this.formatterCache);
3302
+ this.formats = Ua(e5.formats, r2), this.formatters = i2 && i2.formatters || Ga(this.formatterCache);
3337
3303
  }
3338
3304
  static {
3339
3305
  this.memoizedDefaultLocale = null;
@@ -3349,32 +3315,66 @@ var eo = class e5 {
3349
3315
  };
3350
3316
  }
3351
3317
  static {
3352
- this.__parse = Ha;
3318
+ this.__parse = Pa;
3353
3319
  }
3354
3320
  static {
3355
3321
  this.formats = { number: { integer: { maximumFractionDigits: 0 }, currency: { style: `currency` }, percent: { style: `percent` } }, date: { short: { month: `numeric`, day: `numeric`, year: `2-digit` }, medium: { month: `short`, day: `numeric`, year: `numeric` }, long: { month: `long`, day: `numeric`, year: `numeric` }, full: { weekday: `long`, month: `long`, day: `numeric`, year: `numeric` } }, time: { short: { hour: `numeric`, minute: `numeric` }, medium: { hour: `numeric`, minute: `numeric`, second: `numeric` }, long: { hour: `numeric`, minute: `numeric`, second: `numeric`, timeZoneName: `short` }, full: { hour: `numeric`, minute: `numeric`, second: `numeric`, timeZoneName: `short` } } };
3356
3322
  }
3357
3323
  };
3358
- function to(e6, t2) {
3359
- return oo(e6) || ao(e6, t2) || ro(e6, t2) || no();
3324
+ var qa = [`__proto__`, `constructor`, `prototype`];
3325
+ function Ja(e6, t2, n2) {
3326
+ function r2(e7) {
3327
+ return e7 && e7.indexOf(`###`) > -1 ? e7.replace(/###/g, `.`) : e7;
3328
+ }
3329
+ function i2() {
3330
+ return !e6 || typeof e6 == `string`;
3331
+ }
3332
+ for (var a2 = typeof t2 == `string` ? t2.split(`.`) : [].concat(t2); a2.length > 1; ) {
3333
+ if (i2()) return {};
3334
+ var o2 = r2(a2.shift());
3335
+ if (qa.indexOf(o2) > -1) return {};
3336
+ !e6[o2] && n2 && (e6[o2] = new n2()), e6 = e6[o2];
3337
+ }
3338
+ if (i2()) return {};
3339
+ var s2 = r2(a2.shift());
3340
+ return qa.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
3360
3341
  }
3361
- function no() {
3342
+ function Ya(e6, t2, n2) {
3343
+ var r2 = Ja(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
3344
+ i2 !== void 0 && (i2[a2] = n2);
3345
+ }
3346
+ function Xa(e6, t2) {
3347
+ var n2 = Ja(e6, t2), r2 = n2.obj, i2 = n2.k;
3348
+ if (r2) return r2[i2];
3349
+ }
3350
+ function Za(e6) {
3351
+ return [...arguments].slice(1).forEach(function(t2) {
3352
+ if (t2) for (var n2 = 0, r2 = Object.keys(t2); n2 < r2.length; n2++) {
3353
+ var i2 = r2[n2];
3354
+ qa.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
3355
+ }
3356
+ }), e6;
3357
+ }
3358
+ function Qa(e6, t2) {
3359
+ return ro(e6) || no(e6, t2) || eo(e6, t2) || $a();
3360
+ }
3361
+ function $a() {
3362
3362
  throw TypeError(`Invalid attempt to destructure non-iterable instance.
3363
3363
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
3364
3364
  }
3365
- function ro(e6, t2) {
3365
+ function eo(e6, t2) {
3366
3366
  if (e6) {
3367
- if (typeof e6 == `string`) return io(e6, t2);
3367
+ if (typeof e6 == `string`) return to(e6, t2);
3368
3368
  var n2 = {}.toString.call(e6).slice(8, -1);
3369
- return n2 === `Object` && e6.constructor && (n2 = e6.constructor.name), n2 === `Map` || n2 === `Set` ? Array.from(e6) : n2 === `Arguments` || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ? io(e6, t2) : void 0;
3369
+ return n2 === `Object` && e6.constructor && (n2 = e6.constructor.name), n2 === `Map` || n2 === `Set` ? Array.from(e6) : n2 === `Arguments` || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ? to(e6, t2) : void 0;
3370
3370
  }
3371
3371
  }
3372
- function io(e6, t2) {
3372
+ function to(e6, t2) {
3373
3373
  (t2 == null || t2 > e6.length) && (t2 = e6.length);
3374
3374
  for (var n2 = 0, r2 = Array(t2); n2 < t2; n2++) r2[n2] = e6[n2];
3375
3375
  return r2;
3376
3376
  }
3377
- function ao(e6, t2) {
3377
+ function no(e6, t2) {
3378
3378
  var n2 = e6 == null ? null : typeof Symbol < `u` && e6[Symbol.iterator] || e6[`@@iterator`];
3379
3379
  if (n2 != null) {
3380
3380
  var r2, i2, a2, o2, s2 = [], c2 = true, l2 = false;
@@ -3395,18 +3395,10 @@ function ao(e6, t2) {
3395
3395
  return s2;
3396
3396
  }
3397
3397
  }
3398
- function oo(e6) {
3398
+ function ro(e6) {
3399
3399
  if (Array.isArray(e6)) return e6;
3400
3400
  }
3401
- function Z(e6) {
3402
- "@babel/helpers - typeof";
3403
- return Z = typeof Symbol == `function` && typeof Symbol.iterator == `symbol` ? function(e7) {
3404
- return typeof e7;
3405
- } : function(e7) {
3406
- return e7 && typeof Symbol == `function` && e7.constructor === Symbol && e7 !== Symbol.prototype ? `symbol` : typeof e7;
3407
- }, Z(e6);
3408
- }
3409
- function so(e6, t2) {
3401
+ function io(e6, t2) {
3410
3402
  var n2 = Object.keys(e6);
3411
3403
  if (Object.getOwnPropertySymbols) {
3412
3404
  var r2 = Object.getOwnPropertySymbols(e6);
@@ -3416,37 +3408,37 @@ function so(e6, t2) {
3416
3408
  }
3417
3409
  return n2;
3418
3410
  }
3419
- function co(e6) {
3411
+ function ao(e6) {
3420
3412
  for (var t2 = 1; t2 < arguments.length; t2++) {
3421
3413
  var n2 = arguments[t2] == null ? {} : arguments[t2];
3422
- t2 % 2 ? so(Object(n2), true).forEach(function(t3) {
3423
- lo(e6, t3, n2[t3]);
3424
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : so(Object(n2)).forEach(function(t3) {
3414
+ t2 % 2 ? io(Object(n2), true).forEach(function(t3) {
3415
+ oo(e6, t3, n2[t3]);
3416
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : io(Object(n2)).forEach(function(t3) {
3425
3417
  Object.defineProperty(e6, t3, Object.getOwnPropertyDescriptor(n2, t3));
3426
3418
  });
3427
3419
  }
3428
3420
  return e6;
3429
3421
  }
3430
- function lo(e6, t2, n2) {
3431
- return (t2 = mo(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
3422
+ function oo(e6, t2, n2) {
3423
+ return (t2 = uo(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
3432
3424
  }
3433
- function uo(e6, t2) {
3425
+ function so(e6, t2) {
3434
3426
  if (!(e6 instanceof t2)) throw TypeError(`Cannot call a class as a function`);
3435
3427
  }
3436
- function fo(e6, t2) {
3428
+ function co(e6, t2) {
3437
3429
  for (var n2 = 0; n2 < t2.length; n2++) {
3438
3430
  var r2 = t2[n2];
3439
- r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, mo(r2.key), r2);
3431
+ r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, uo(r2.key), r2);
3440
3432
  }
3441
3433
  }
3442
- function po(e6, t2, n2) {
3443
- return t2 && fo(e6.prototype, t2), n2 && fo(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
3434
+ function lo(e6, t2, n2) {
3435
+ return t2 && co(e6.prototype, t2), n2 && co(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
3444
3436
  }
3445
- function mo(e6) {
3446
- var t2 = ho(e6, `string`);
3437
+ function uo(e6) {
3438
+ var t2 = fo(e6, `string`);
3447
3439
  return Z(t2) == `symbol` ? t2 : t2 + ``;
3448
3440
  }
3449
- function ho(e6, t2) {
3441
+ function fo(e6, t2) {
3450
3442
  if (Z(e6) != `object` || !e6) return e6;
3451
3443
  var n2 = e6[Symbol.toPrimitive];
3452
3444
  if (n2 !== void 0) {
@@ -3456,45 +3448,81 @@ function ho(e6, t2) {
3456
3448
  }
3457
3449
  return (t2 === `string` ? String : Number)(e6);
3458
3450
  }
3459
- function go() {
3451
+ function Z(e6) {
3452
+ "@babel/helpers - typeof";
3453
+ return Z = typeof Symbol == `function` && typeof Symbol.iterator == `symbol` ? function(e7) {
3454
+ return typeof e7;
3455
+ } : function(e7) {
3456
+ return e7 && typeof Symbol == `function` && e7.constructor === Symbol && e7 !== Symbol.prototype ? `symbol` : typeof e7;
3457
+ }, Z(e6);
3458
+ }
3459
+ var po = `https://www.i18next.com/how-to/using-icu-or-mf2`;
3460
+ var mo = [`zero`, `one`, `two`, `few`, `many`, `other`];
3461
+ function ho() {
3460
3462
  return { memoize: true, memoizeFallback: false, bindI18n: ``, bindI18nStore: ``, parseErrorHandler: function(e6, t2, n2, r2) {
3461
3463
  return n2;
3462
3464
  }, parseLngForICU: function(e6) {
3463
3465
  return e6;
3464
3466
  }, escapeVariables: false };
3465
3467
  }
3468
+ function go(e6, t2, n2, r2) {
3469
+ return n2 && t2 && Z(t2) === `object` ? `${r2} resolved to an object or array, but i18next-icu does not support returnObjects or joinArrays and returns the raw value unformatted.` : n2 && typeof t2 == `string` && t2.indexOf(`{{`) > -1 ? `${r2} could not be parsed (${e6.message}). It contains "{{": i18next interpolation like {{name}} does not work with ICU, use {name}.` : `${r2} could not be ${n2 ? `parsed` : `formatted`}: ${e6.message}`;
3470
+ }
3466
3471
  var _o = function() {
3467
3472
  function e6(t2) {
3468
- uo(this, e6), this.type = `i18nFormat`, this.mem = {}, this.init(null, t2);
3473
+ so(this, e6), this.type = `i18nFormat`, this.mem = {}, this.warned = /* @__PURE__ */ new Set(), this.init(null, t2);
3469
3474
  }
3470
- return po(e6, [{ key: `init`, value: function(e7, t2) {
3475
+ return lo(e6, [{ key: `init`, value: function(e7, t2) {
3471
3476
  var n2 = this, r2 = e7 && e7.options && e7.options.i18nFormat || {};
3472
- if (this.options = Li(r2, t2, this.options || {}, go()), this.formats = this.options.formats, e7) {
3477
+ if (this.options = Za(r2, t2, this.options || {}, ho()), this.formats = this.options.formats, e7) {
3473
3478
  var i2 = this.options, a2 = i2.bindI18n, o2 = i2.bindI18nStore, s2 = i2.memoize;
3474
- e7.IntlMessageFormat = eo, e7.ICU = this, s2 && (a2 && e7.on(a2, function() {
3479
+ e7.IntlMessageFormat = Ka, e7.ICU = this, this.i18next = e7, this.debug = !!(e7.options && e7.options.debug), this.debug && e7.options.interpolation && e7.options.interpolation.escapeValue !== false && !this.options.escapeVariables && this.warn(`interpolation.escapeValue is not applied, values are inserted without HTML escaping. Set the i18next-icu option escapeVariables: true to escape them, or interpolation.escapeValue: false if your output is escaped elsewhere (e.g. by React).`), s2 && (a2 && e7.on(a2, function() {
3475
3480
  return n2.clearCache();
3476
3481
  }), o2 && e7.store.on(o2, function() {
3477
3482
  return n2.clearCache();
3478
3483
  }));
3479
3484
  }
3480
3485
  } }, { key: `addUserDefinedFormats`, value: function(e7) {
3481
- this.formats = this.formats ? co(co({}, this.formats), e7) : e7;
3486
+ this.formats = this.formats ? ao(ao({}, this.formats), e7) : e7, this.clearCache();
3482
3487
  } }, { key: `parse`, value: function(e7, t2, n2, r2, i2, a2) {
3483
- var o2 = a2 && a2.resolved && a2.resolved.res, s2 = this.options.memoize && `${n2}.${r2}.${i2.replace(/\./g, `###`)}`, c2;
3484
- this.options.memoize && (c2 = Ni(this.mem, s2));
3488
+ var o2 = a2 && a2.resolved && a2.resolved.res, s2 = this.options.memoize && [n2, r2, i2], c2;
3489
+ if (this.options.memoize) {
3490
+ var l2 = Xa(this.mem, s2);
3491
+ l2 && l2.res === e7 && (c2 = l2.fc);
3492
+ }
3485
3493
  try {
3486
- return c2 || (c2 = new eo(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && Mi(this.mem, s2, c2)), c2.format(this.escapeVariableValues(t2));
3487
- } catch (n3) {
3488
- return this.options.parseErrorHandler(n3, i2, e7, t2);
3494
+ c2 || (this.debug && typeof e7 == `string` && e7.indexOf(`$t(`) > -1 && this.firstTime(`nesting ${n2} ${r2} ${i2}`) && this.warn(`key "${i2}" (${n2}/${r2}) contains "$t(", but i18next-icu does not support nesting, the text is output as is.`), c2 = new Ka(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && Ya(this.mem, s2, { res: e7, fc: c2 }));
3495
+ var u2 = t2 && t2.replace && Z(t2.replace) === `object` ? ao(ao({}, t2), t2.replace) : t2;
3496
+ return c2.format(this.escapeVariableValues(u2));
3497
+ } catch (a3) {
3498
+ return this.debug && this.firstTime(`error ${n2} ${r2} ${i2}`) && this.warn(go(a3, e7, !c2, `key "${i2}" (${n2}/${r2})`)), this.options.parseErrorHandler(a3, i2, e7, t2);
3489
3499
  }
3490
3500
  } }, { key: `addLookupKeys`, value: function(e7, t2, n2, r2, i2) {
3491
- return e7;
3501
+ return this.debug && i2 && this.checkSuffixKeys(t2, n2, r2, i2), e7;
3502
+ } }, { key: `checkSuffixKeys`, value: function(e7, t2, n2, r2) {
3503
+ var i2 = r2.count, a2 = r2.context, o2 = this.i18next.options, s2 = o2.pluralSeparator, c2 = s2 === void 0 ? `_` : s2, l2 = o2.contextSeparator, u2 = l2 === void 0 ? `_` : l2, d2 = this.i18next.services.resourceStore, f2 = `key "${e7}" (${t2}/${n2})`;
3504
+ if (i2 !== void 0 && this.firstTime(`plural ${t2} ${n2} ${e7}`)) {
3505
+ var p2 = mo.concat(mo.map(function(e8) {
3506
+ return `ordinal${c2}${e8}`;
3507
+ })).map(function(t3) {
3508
+ return `${e7}${c2}${t3}`;
3509
+ }).filter(function(e8) {
3510
+ return d2.getResource(t2, n2, e8) !== void 0;
3511
+ });
3512
+ p2.length && this.warn(`${f2} was called with count, but i18next-icu does not look up plural suffix keys (${p2.join(`, `)}). Put the plural into the message: {count, plural, one {# item} other {# items}}.`);
3513
+ }
3514
+ var m2 = `${e7}${u2}${a2}`;
3515
+ a2 !== void 0 && a2 !== `` && this.firstTime(`context ${t2} ${n2} ${m2}`) && d2.getResource(t2, n2, m2) !== void 0 && this.warn(`${f2} was called with context "${a2}", but i18next-icu does not look up context keys (${m2}). Use a select in the message: {context, select, ${a2} {...} other {...}}.`);
3516
+ } }, { key: `firstTime`, value: function(e7) {
3517
+ return !this.warned.has(e7) && (this.warned.add(e7), true);
3518
+ } }, { key: `warn`, value: function(e7) {
3519
+ this.i18next.services.logger.warn(`i18next-icu: ${e7} See ${po}`);
3492
3520
  } }, { key: `clearCache`, value: function() {
3493
3521
  this.mem = {};
3494
3522
  } }, { key: `escapeVariableValues`, value: function(e7) {
3495
3523
  if (!this.options.escapeVariables || !e7 || Z(e7) !== `object`) return e7;
3496
3524
  for (var t2 = {}, n2 = 0, r2 = Object.entries(e7); n2 < r2.length; n2++) {
3497
- var i2 = to(r2[n2], 2), a2 = i2[0], o2 = i2[1];
3525
+ var i2 = Qa(r2[n2], 2), a2 = i2[0], o2 = i2[1];
3498
3526
  t2[a2] = typeof o2 == `string` ? o2.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`) : o2;
3499
3527
  }
3500
3528
  return t2;