@wix/bookings 1.0.1781 → 1.0.1783

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 (63) hide show
  1. package/build/cjs/context-booking-checkout.d.ts +32 -0
  2. package/build/cjs/context-booking-checkout.js +2002 -1762
  3. package/build/cjs/context-booking-checkout.js.map +1 -1
  4. package/build/cjs/context-my-booking.d.ts +2832 -0
  5. package/build/cjs/context-my-booking.js +592 -0
  6. package/build/cjs/context-my-booking.js.map +1 -0
  7. package/build/cjs/context-my-bookings.d.ts +2862 -0
  8. package/build/cjs/context-my-bookings.js +12885 -0
  9. package/build/cjs/context-my-bookings.js.map +1 -0
  10. package/build/cjs/context-service-addons.d.ts +54 -3
  11. package/build/cjs/context-service-addons.js +1065 -578
  12. package/build/cjs/context-service-addons.js.map +1 -1
  13. package/build/cjs/context-service.d.ts +35 -24
  14. package/build/cjs/context-service.js +985 -966
  15. package/build/cjs/context-service.js.map +1 -1
  16. package/build/cjs/context-time-slots.d.ts +44 -98
  17. package/build/cjs/context-time-slots.js +456 -474
  18. package/build/cjs/context-time-slots.js.map +1 -1
  19. package/build/es/context-booking-checkout.d.mts +32 -0
  20. package/build/es/context-booking-checkout.mjs +2002 -1762
  21. package/build/es/context-booking-checkout.mjs.map +1 -1
  22. package/build/es/context-my-booking.d.mts +2832 -0
  23. package/build/es/context-my-booking.mjs +562 -0
  24. package/build/es/context-my-booking.mjs.map +1 -0
  25. package/build/es/context-my-bookings.d.mts +2862 -0
  26. package/build/es/context-my-bookings.mjs +12844 -0
  27. package/build/es/context-my-bookings.mjs.map +1 -0
  28. package/build/es/context-service-addons.d.mts +54 -3
  29. package/build/es/context-service-addons.mjs +1061 -574
  30. package/build/es/context-service-addons.mjs.map +1 -1
  31. package/build/es/context-service.d.mts +35 -24
  32. package/build/es/context-service.mjs +985 -966
  33. package/build/es/context-service.mjs.map +1 -1
  34. package/build/es/context-time-slots.d.mts +44 -98
  35. package/build/es/context-time-slots.mjs +456 -474
  36. package/build/es/context-time-slots.mjs.map +1 -1
  37. package/build/internal/cjs/context-booking-checkout.d.ts +32 -0
  38. package/build/internal/cjs/context-my-booking.d.ts +2832 -0
  39. package/build/internal/cjs/context-my-bookings.d.ts +2862 -0
  40. package/build/internal/cjs/context-service-addons.d.ts +54 -3
  41. package/build/internal/cjs/context-service.d.ts +35 -24
  42. package/build/internal/cjs/context-time-slots.d.ts +44 -98
  43. package/build/internal/es/context-booking-checkout.d.mts +32 -0
  44. package/build/internal/es/context-my-booking.d.mts +2832 -0
  45. package/build/internal/es/context-my-bookings.d.mts +2862 -0
  46. package/build/internal/es/context-service-addons.d.mts +54 -3
  47. package/build/internal/es/context-service.d.mts +35 -24
  48. package/build/internal/es/context-time-slots.d.mts +44 -98
  49. package/context/my-booking/package.json +3 -0
  50. package/context/my-bookings/package.json +3 -0
  51. package/context-runtime/context-booking-checkout/runtime.d.ts +32 -0
  52. package/context-runtime/context-booking-checkout/runtime.js +3 -3
  53. package/context-runtime/context-my-booking/runtime.d.ts +2832 -0
  54. package/context-runtime/context-my-booking/runtime.js +2 -0
  55. package/context-runtime/context-my-bookings/runtime.d.ts +2862 -0
  56. package/context-runtime/context-my-bookings/runtime.js +11 -0
  57. package/context-runtime/context-service/runtime.d.ts +35 -24
  58. package/context-runtime/context-service/runtime.js +3 -3
  59. package/context-runtime/context-service-addons/runtime.d.ts +54 -3
  60. package/context-runtime/context-service-addons/runtime.js +2 -2
  61. package/context-runtime/context-time-slots/runtime.d.ts +44 -98
  62. package/context-runtime/context-time-slots/runtime.js +3 -3
  63. package/package.json +20 -4
@@ -432,21 +432,21 @@ function Ue(e5) {
432
432
  if (typeof n3 == `string` || n3 instanceof URL) {
433
433
  let e6 = await i3(n3, { ...r3, headers: c3 });
434
434
  l3?.handleError(e6, { requestOptions: { url: n3.toString(), method: r3?.method } });
435
- let a3 = E(e6);
435
+ let a3 = We(e6);
436
436
  return a3 && (t2[T] = a3), e6;
437
437
  }
438
438
  {
439
439
  for (let [e7, t3] of Object.entries(c3)) typeof t3 == `string` && n3.headers.set(e7, t3);
440
440
  let e6 = await i3(n3, r3);
441
441
  l3?.handleError(e6, { requestOptions: { url: n3.url, method: r3?.method } });
442
- let a3 = E(e6);
442
+ let a3 = We(e6);
443
443
  return a3 && (t2[T] = a3), e6;
444
444
  }
445
445
  } catch (e6) {
446
446
  throw l3?.handleError(e6, { requestOptions: { url: typeof n3 == `string` || n3 instanceof URL ? n3.toString() : n3.url, method: r3?.method } }), e6;
447
447
  }
448
448
  }, { client: c2, initModule: l2 } = He(i2), { client: u2, initModule: d2 } = Be(i2), f2 = async (n3, r3) => {
449
- let i3 = o2(), s3 = await a2(), c3 = ee(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e5.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [T]: t2[T] } : {} } }), u3 = E(l3);
449
+ let i3 = o2(), s3 = await a2(), c3 = ee(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e5.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [T]: t2[T] } : {} } }), u3 = We(l3);
450
450
  return u3 && (t2[T] = u3), l3;
451
451
  }, m2 = (t3, n3) => {
452
452
  if (Re(t3)) return d2(t3);
@@ -479,19 +479,497 @@ function Ue(e5) {
479
479
  return { data: o3 ?? {}, errors: s3 };
480
480
  }, webhooks: u2, servicePlugins: c2 };
481
481
  }
482
- function E(e5) {
482
+ function We(e5) {
483
483
  return e5.headers?.get(`X-Wix-Consistent`) ?? e5.headers?.get(`x-wix-consistent`);
484
484
  }
485
- var We = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
486
- var Ge = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
487
- function Ke(e5, t2) {
485
+ var Ge = 1920;
486
+ var Ke = 1920;
487
+ var qe = 1e3;
488
+ var Je = 1e3;
489
+ var E = { SCALE_TO_FILL: `fill`, SCALE_TO_FIT: `fit`, STRETCH: `stretch`, ORIGINAL_SIZE: `original_size`, TILE: `tile`, TILE_HORIZONTAL: `tile_horizontal`, TILE_VERTICAL: `tile_vertical`, FIT_AND_TILE: `fit_and_tile`, LEGACY_STRIP_TILE: `legacy_strip_tile`, LEGACY_STRIP_TILE_HORIZONTAL: `legacy_strip_tile_horizontal`, LEGACY_STRIP_TILE_VERTICAL: `legacy_strip_tile_vertical`, LEGACY_STRIP_SCALE_TO_FILL: `legacy_strip_fill`, LEGACY_STRIP_SCALE_TO_FIT: `legacy_strip_fit`, LEGACY_STRIP_FIT_AND_TILE: `legacy_strip_fit_and_tile`, LEGACY_STRIP_ORIGINAL_SIZE: `legacy_strip_original_size`, LEGACY_ORIGINAL_SIZE: `actual_size`, LEGACY_FIT_WIDTH: `fitWidth`, LEGACY_FIT_HEIGHT: `fitHeight`, LEGACY_FULL: `full`, LEGACY_BG_FIT_AND_TILE: `legacy_tile`, LEGACY_BG_FIT_AND_TILE_HORIZONTAL: `legacy_tile_horizontal`, LEGACY_BG_FIT_AND_TILE_VERTICAL: `legacy_tile_vertical`, LEGACY_BG_NORMAL: `legacy_normal` };
490
+ var D = { FIT: `fit`, FILL: `fill`, FILL_FOCAL: `fill_focal`, CROP: `crop`, LEGACY_CROP: `legacy_crop`, LEGACY_FILL: `legacy_fill` };
491
+ var O = { CENTER: `center`, TOP: `top`, TOP_LEFT: `top_left`, TOP_RIGHT: `top_right`, BOTTOM: `bottom`, BOTTOM_LEFT: `bottom_left`, BOTTOM_RIGHT: `bottom_right`, LEFT: `left`, RIGHT: `right` };
492
+ var Ye = { [O.CENTER]: { x: 0.5, y: 0.5 }, [O.TOP_LEFT]: { x: 0, y: 0 }, [O.TOP_RIGHT]: { x: 1, y: 0 }, [O.TOP]: { x: 0.5, y: 0 }, [O.BOTTOM_LEFT]: { x: 0, y: 1 }, [O.BOTTOM_RIGHT]: { x: 1, y: 1 }, [O.BOTTOM]: { x: 0.5, y: 1 }, [O.RIGHT]: { x: 1, y: 0.5 }, [O.LEFT]: { x: 0, y: 0.5 } };
493
+ var Xe = { center: `c`, top: `t`, top_left: `tl`, top_right: `tr`, bottom: `b`, bottom_left: `bl`, bottom_right: `br`, left: `l`, right: `r` };
494
+ var Ze = { BG: `bg`, IMG: `img`, SVG: `svg` };
495
+ var Qe = { AUTO: `auto`, CLASSIC: `classic`, SUPER: `super` };
496
+ var $e = { classic: 1, super: 2 };
497
+ var et = { radius: `0.66`, amount: `1.00`, threshold: `0.01` };
498
+ var tt = 25e6;
499
+ var nt = [1.5, 2, 4];
500
+ var k = { HIGH: { size: 196e4, quality: 90, maxUpscale: 1 }, MEDIUM: { size: 36e4, quality: 85, maxUpscale: 1 }, LOW: { size: 16e4, quality: 80, maxUpscale: 1.2 }, TINY: { size: 0, quality: 80, maxUpscale: 1.4 } };
501
+ var A = { HIGH: `HIGH`, MEDIUM: `MEDIUM`, LOW: `LOW`, TINY: `TINY` };
502
+ var j = { CONTRAST: `contrast`, BRIGHTNESS: `brightness`, SATURATION: `saturation`, HUE: `hue`, BLUR: `blur` };
503
+ var M = { JPG: `jpg`, JPEG: `jpeg`, JPE: `jpe`, PNG: `png`, WEBP: `webp`, WIX_ICO_MP: `wix_ico_mp`, WIX_MP: `wix_mp`, GIF: `gif`, SVG: `svg`, AVIF: `avif`, UNRECOGNIZED: `unrecognized` };
504
+ var rt = { AVIF: `AVIF`, PAVIF: `PAVIF` };
505
+ M.JPG, M.JPEG, M.JPE, M.PNG, M.GIF, M.WEBP;
506
+ function N(e5, ...t2) {
507
+ return function(...n2) {
508
+ let r2 = n2[n2.length - 1] || {}, i2 = [e5[0]];
509
+ return t2.forEach(function(t3, a2) {
510
+ let o2 = Number.isInteger(t3) ? n2[t3] : r2[t3];
511
+ i2.push(o2, e5[a2 + 1]);
512
+ }), i2.join(``);
513
+ };
514
+ }
515
+ function P(e5) {
516
+ return e5[e5.length - 1];
517
+ }
518
+ var it = [M.PNG, M.JPEG, M.JPG, M.JPE, M.WIX_ICO_MP, M.WIX_MP, M.WEBP, M.AVIF];
519
+ var at = [M.JPEG, M.JPG, M.JPE];
520
+ function ot(e5) {
521
+ return it.includes(L(e5));
522
+ }
523
+ function st(e5, t2, n2) {
524
+ return n2 && t2 && !ht(t2.id) && Object.values(E).includes(e5);
525
+ }
526
+ function ct(e5, t2, n2) {
527
+ return !(F(e5) || I(e5)) || !t2 || n2;
528
+ }
529
+ function lt(e5, t2, n2) {
530
+ return pt(e5) ? !!(t2 || n2) : false;
531
+ }
532
+ function ut(e5, t2, n2, r2) {
533
+ if (mt(e5) || !ct(e5, t2, n2)) return false;
534
+ let i2 = ot(e5), a2 = lt(e5, n2, r2);
535
+ return i2 || a2;
536
+ }
537
+ function dt(e5) {
538
+ return at.includes(L(e5));
539
+ }
540
+ function ft(e5) {
541
+ return L(e5) === M.PNG;
542
+ }
543
+ function F(e5) {
544
+ return L(e5) === M.WEBP;
545
+ }
546
+ function pt(e5) {
547
+ return L(e5) === M.GIF;
548
+ }
549
+ function I(e5) {
550
+ return L(e5) === M.AVIF;
551
+ }
552
+ function mt(e5) {
553
+ return /(^https?)|(^data)|(^\/\/)/.test(e5);
554
+ }
555
+ function ht(e5) {
556
+ return !e5 || !e5.trim() || e5.toLowerCase() === `none`;
557
+ }
558
+ function gt(e5) {
559
+ return e5?.isSEOBot ?? false;
560
+ }
561
+ var _t = [`/`, `\\`, `?`, `<`, `>`, `|`, `\u201C`, `:`, `"`].map(encodeURIComponent);
562
+ var vt = [`\\.`, `\\*`];
563
+ var yt = `_`;
564
+ function bt(e5, t2) {
565
+ let n2 = /\/(.*?)$/, r2 = /\.([^.]*)$/, i2 = RegExp(`(${_t.concat(vt).join(`|`)})`, `g`);
566
+ if (t2 && t2.length) {
567
+ let e6 = t2, n3 = t2.match(r2);
568
+ return n3 && it.includes(n3[1]) && (e6 = t2.replace(r2, ``)), encodeURIComponent(e6).replace(i2, yt);
569
+ }
570
+ let a2 = e5.match(n2);
571
+ return (a2 ? a2[1] : e5).replace(r2, ``);
572
+ }
573
+ function xt(e5) {
574
+ return dt(e5) ? M.JPG : ft(e5) ? M.PNG : F(e5) ? M.WEBP : pt(e5) ? M.GIF : I(e5) ? M.AVIF : M.UNRECOGNIZED;
575
+ }
576
+ function L(e5) {
577
+ return (/[.]([^.]+)$/.exec(e5) && /[.]([^.]+)$/.exec(e5)[1] || ``).toLowerCase();
578
+ }
579
+ function St(e5, t2, n2, r2) {
580
+ return Math.min(n2 / e5, r2 / t2);
581
+ }
582
+ function Ct(e5, t2, n2, r2) {
583
+ return Math.max(n2 / e5, r2 / t2);
584
+ }
585
+ function wt(e5, t2, n2, r2, i2) {
586
+ let a2;
587
+ return a2 = i2 === D.FILL ? Ct(e5, t2, n2, r2) : i2 === D.FIT ? St(e5, t2, n2, r2) : 1, a2;
588
+ }
589
+ function Tt(e5, t2, n2, r2, i2) {
590
+ let a2, o2 = n2, s2 = r2;
591
+ if (a2 = wt(e5, t2, n2, r2, i2), i2 === D.FIT && (o2 = e5 * a2, s2 = t2 * a2), o2 && s2 && o2 * s2 > 25e6) {
592
+ let n3 = Math.sqrt(tt / (o2 * s2));
593
+ o2 *= n3, s2 *= n3, a2 = wt(e5, t2, o2, s2, i2);
594
+ }
595
+ return { scaleFactor: a2, width: o2, height: s2 };
596
+ }
597
+ function Et(e5, t2, n2, r2, i2, a2) {
598
+ e5 ||= r2.width, t2 ||= r2.height;
599
+ let { scaleFactor: o2, width: s2, height: c2 } = Tt(e5, t2, r2.width * i2, r2.height * i2, n2);
600
+ return Rt(e5, t2, s2, c2, a2, o2, n2);
601
+ }
602
+ function Dt(e5 = O.CENTER) {
603
+ return Ye[e5];
604
+ }
605
+ function Ot(e5, t2, n2, r2) {
606
+ let i2 = Mt(n2) || Dt(r2);
607
+ return { x: Math.max(0, Math.min(e5.width - t2.width, i2.x * e5.width - t2.width / 2)), y: Math.max(0, Math.min(e5.height - t2.height, i2.y * e5.height - t2.height / 2)), width: Math.min(e5.width, t2.width), height: Math.min(e5.height, t2.height) };
608
+ }
609
+ function kt(e5, t2) {
610
+ let n2 = Math.max(0, Math.min(e5.width, t2.x + t2.width) - Math.max(0, t2.x)), r2 = Math.max(0, Math.min(e5.height, t2.y + t2.height) - Math.max(0, t2.y));
611
+ return n2 && r2 && (e5.width !== n2 || e5.height !== r2) ? { x: Math.max(0, t2.x), y: Math.max(0, t2.y), width: n2, height: r2 } : null;
612
+ }
613
+ function At(e5) {
614
+ return Math.min(e5.pixelAspectRatio || 1, 2);
615
+ }
616
+ function jt(e5) {
617
+ return e5.alignment && Xe[e5.alignment] || Xe[O.CENTER];
618
+ }
619
+ function Mt(e5) {
620
+ let t2;
621
+ return e5 && typeof e5.x == `number` && !isNaN(e5.x) && typeof e5.y == `number` && !isNaN(e5.y) && (t2 = { x: R(Math.max(0, Math.min(100, e5.x)) / 100, 2), y: R(Math.max(0, Math.min(100, e5.y)) / 100, 2) }), t2;
622
+ }
623
+ function Nt(e5, t2) {
624
+ return k[zt(e5, t2)].quality;
625
+ }
626
+ function Pt(e5, t2) {
627
+ return { optimizedScaleFactor: k[zt(e5, t2)].maxUpscale, upscaleMethodValue: $e.classic, forceUSM: false };
628
+ }
629
+ function Ft(e5, t2) {
630
+ return { optimizedScaleFactor: k[zt(e5, t2)].maxUpscale, upscaleMethodValue: $e.classic, forceUSM: false };
631
+ }
632
+ function It(e5) {
633
+ return { optimizedScaleFactor: P(nt), upscaleMethodValue: $e.super, forceUSM: !(nt.includes(e5) || e5 > P(nt)) };
634
+ }
635
+ function Lt(e5, t2, n2, r2) {
636
+ return r2 === `auto` ? Ft(e5, t2) : r2 === `super` ? It(n2) : Pt(e5, t2);
637
+ }
638
+ function Rt(e5, t2, n2, r2, i2, a2, o2) {
639
+ let { optimizedScaleFactor: s2, upscaleMethodValue: c2, forceUSM: l2 } = Lt(e5, t2, a2, i2), u2 = n2, d2 = r2;
640
+ if (a2 <= s2) return { width: u2, height: d2, scaleFactor: a2, upscaleMethodValue: c2, forceUSM: l2, cssUpscaleNeeded: false };
641
+ switch (o2) {
642
+ case D.FILL:
643
+ u2 = s2 / a2 * n2, d2 = s2 / a2 * r2;
644
+ break;
645
+ case D.FIT:
646
+ u2 = e5 * s2, d2 = t2 * s2;
647
+ }
648
+ return { width: u2, height: d2, scaleFactor: s2, upscaleMethodValue: c2, forceUSM: l2, cssUpscaleNeeded: true };
649
+ }
650
+ function zt(e5, t2) {
651
+ let n2 = e5 * t2;
652
+ return n2 > k[A.HIGH].size ? A.HIGH : n2 > k[A.MEDIUM].size ? A.MEDIUM : n2 > k[A.LOW].size ? A.LOW : A.TINY;
653
+ }
654
+ function R(e5, t2) {
655
+ let n2 = 10 ** (t2 || 0);
656
+ return (e5 * n2 / n2).toFixed(t2);
657
+ }
658
+ function Bt(e5) {
659
+ return !e5 || !e5.upscaleMethod ? Qe.AUTO : Qe[e5.upscaleMethod.toUpperCase()] || Qe.AUTO;
660
+ }
661
+ function Vt(e5, t2) {
662
+ let n2 = F(e5) || I(e5);
663
+ return L(e5) === M.GIF || n2 && t2;
664
+ }
665
+ var Ht = { isMobile: false };
666
+ var Ut = function(e5) {
667
+ return Ht[e5];
668
+ };
669
+ var Wt = function(e5, t2) {
670
+ Ht[e5] = t2;
671
+ };
672
+ function Gt() {
673
+ if (typeof window < `u` && typeof navigator < `u`) {
674
+ let e5 = window.matchMedia && window.matchMedia(`(max-width: 767px)`).matches, t2 = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
675
+ Wt(`isMobile`, e5 && t2);
676
+ }
677
+ }
678
+ O.CENTER, O.TOP, O.TOP_LEFT, O.TOP_RIGHT, O.BOTTOM, O.BOTTOM_LEFT, O.BOTTOM_RIGHT, O.LEFT, O.RIGHT;
679
+ function Kt() {
680
+ return Ut(`isMobile`);
681
+ }
682
+ function qt(e5, t2, n2) {
683
+ let r2;
684
+ switch (t2.crop && (r2 = kt(t2, t2.crop), r2 && (e5.src.width = r2.width, e5.src.height = r2.height, e5.src.isCropped = true, e5.parts.push(Zt(r2)))), e5.fittingType) {
685
+ case E.SCALE_TO_FIT:
686
+ case E.LEGACY_FIT_WIDTH:
687
+ case E.LEGACY_FIT_HEIGHT:
688
+ case E.LEGACY_FULL:
689
+ case E.FIT_AND_TILE:
690
+ case E.LEGACY_BG_FIT_AND_TILE:
691
+ case E.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:
692
+ case E.LEGACY_BG_FIT_AND_TILE_VERTICAL:
693
+ case E.LEGACY_BG_NORMAL:
694
+ e5.parts.push(Jt(e5, n2));
695
+ break;
696
+ case E.SCALE_TO_FILL:
697
+ e5.parts.push(Yt(e5, n2));
698
+ break;
699
+ case E.STRETCH:
700
+ e5.parts.push(Xt(e5, n2));
701
+ break;
702
+ case E.TILE_HORIZONTAL:
703
+ case E.TILE_VERTICAL:
704
+ case E.TILE:
705
+ case E.LEGACY_ORIGINAL_SIZE:
706
+ case E.ORIGINAL_SIZE:
707
+ r2 = Ot(e5.src, n2, e5.focalPoint, n2.alignment), e5.src.isCropped ? (Object.assign(e5.parts[0], r2), e5.src.width = r2.width, e5.src.height = r2.height) : e5.parts.push(Zt(r2));
708
+ break;
709
+ case E.LEGACY_STRIP_TILE_HORIZONTAL:
710
+ case E.LEGACY_STRIP_TILE_VERTICAL:
711
+ case E.LEGACY_STRIP_TILE:
712
+ case E.LEGACY_STRIP_ORIGINAL_SIZE:
713
+ e5.parts.push(en(n2));
714
+ break;
715
+ case E.LEGACY_STRIP_SCALE_TO_FIT:
716
+ case E.LEGACY_STRIP_FIT_AND_TILE:
717
+ e5.parts.push(Qt(n2));
718
+ break;
719
+ case E.LEGACY_STRIP_SCALE_TO_FILL:
720
+ e5.parts.push($t(n2));
721
+ }
722
+ }
723
+ function Jt(e5, t2) {
724
+ let n2 = Et(e5.src.width, e5.src.height, D.FIT, t2, e5.devicePixelRatio, e5.upscaleMethod);
725
+ return { transformType: !e5.src.width || !e5.src.height ? D.FIT : D.FILL, width: Math.round(n2.width), height: Math.round(n2.height), alignment: Xe.center, upscale: n2.scaleFactor > 1, forceUSM: n2.forceUSM, scaleFactor: n2.scaleFactor, cssUpscaleNeeded: n2.cssUpscaleNeeded, upscaleMethodValue: n2.upscaleMethodValue };
726
+ }
727
+ function Yt(e5, t2) {
728
+ let n2 = Et(e5.src.width, e5.src.height, D.FILL, t2, e5.devicePixelRatio, e5.upscaleMethod), r2 = Mt(e5.focalPoint);
729
+ return { transformType: r2 ? D.FILL_FOCAL : D.FILL, width: Math.round(n2.width), height: Math.round(n2.height), alignment: jt(t2), focalPointX: r2 && r2.x, focalPointY: r2 && r2.y, upscale: n2.scaleFactor > 1, forceUSM: n2.forceUSM, scaleFactor: n2.scaleFactor, cssUpscaleNeeded: n2.cssUpscaleNeeded, upscaleMethodValue: n2.upscaleMethodValue };
730
+ }
731
+ function Xt(e5, t2) {
732
+ let n2 = wt(e5.src.width, e5.src.height, t2.width, t2.height, D.FILL), r2 = { ...t2 };
733
+ return r2.width = e5.src.width * n2, r2.height = e5.src.height * n2, Jt(e5, r2);
734
+ }
735
+ function Zt(e5) {
736
+ return { transformType: D.CROP, x: Math.round(e5.x), y: Math.round(e5.y), width: Math.round(e5.width), height: Math.round(e5.height), upscale: false, forceUSM: false, scaleFactor: 1, cssUpscaleNeeded: false };
737
+ }
738
+ function Qt(e5) {
739
+ return { transformType: D.FIT, width: Math.round(e5.width), height: Math.round(e5.height), upscale: false, forceUSM: true, scaleFactor: 1, cssUpscaleNeeded: false };
740
+ }
741
+ function $t(e5) {
742
+ return { transformType: D.LEGACY_FILL, width: Math.round(e5.width), height: Math.round(e5.height), alignment: jt(e5), upscale: false, forceUSM: true, scaleFactor: 1, cssUpscaleNeeded: false };
743
+ }
744
+ function en(e5) {
745
+ return { transformType: D.LEGACY_CROP, width: Math.round(e5.width), height: Math.round(e5.height), alignment: jt(e5), upscale: false, forceUSM: false, scaleFactor: 1, cssUpscaleNeeded: false };
746
+ }
747
+ function tn(e5, t2) {
748
+ t2 ||= {}, e5.quality = an(e5, t2), e5.progressive = rn(t2), e5.watermark = nn(t2), e5.autoEncode = t2.autoEncode ?? true, e5.encoding = t2?.encoding, e5.unsharpMask = sn(e5, t2), e5.filters = on(t2);
749
+ }
750
+ function nn(e5) {
751
+ return e5.watermark;
752
+ }
753
+ function rn(e5) {
754
+ return e5.progressive !== false;
755
+ }
756
+ function an(e5, t2) {
757
+ let n2 = e5.fileType === M.PNG, r2 = e5.fileType === M.JPG, i2 = e5.fileType === M.WEBP, a2 = e5.fileType === M.AVIF;
758
+ if (r2 || n2 || i2 || a2) {
759
+ let r3 = P(e5.parts), i3 = Nt(r3.width, r3.height), a3 = t2.quality && t2.quality >= 5 && t2.quality <= 90 ? t2.quality : i3;
760
+ return a3 = n2 ? a3 + 5 : a3, a3;
761
+ }
762
+ return 0;
763
+ }
764
+ function on(e5) {
765
+ let t2 = e5.filters || {}, n2 = {};
766
+ return z(t2[j.CONTRAST], -100, 100) && (n2[j.CONTRAST] = t2[j.CONTRAST]), z(t2[j.BRIGHTNESS], -100, 100) && (n2[j.BRIGHTNESS] = t2[j.BRIGHTNESS]), z(t2[j.SATURATION], -100, 100) && (n2[j.SATURATION] = t2[j.SATURATION]), z(t2[j.HUE], -180, 180) && (n2[j.HUE] = t2[j.HUE]), z(t2[j.BLUR], 0, 100) && (n2[j.BLUR] = t2[j.BLUR]), n2;
767
+ }
768
+ function z(e5, t2, n2) {
769
+ return typeof e5 == `number` && !isNaN(e5) && e5 !== 0 && e5 >= t2 && e5 <= n2;
770
+ }
771
+ function sn(e5, t2) {
772
+ if (ln(t2.unsharpMask)) return { radius: R(t2.unsharpMask?.radius, 2), amount: R(t2.unsharpMask?.amount, 2), threshold: R(t2.unsharpMask?.threshold, 2) };
773
+ if (!un(t2.unsharpMask) && cn(e5)) return et;
774
+ }
775
+ function cn(e5) {
776
+ let t2 = P(e5.parts);
777
+ return !(t2.scaleFactor >= 1) || t2.forceUSM || t2.transformType === D.FIT;
778
+ }
779
+ function ln(e5) {
780
+ e5 ||= {};
781
+ let t2 = typeof e5.radius == `number` && !isNaN(e5.radius) && e5.radius >= 0.1 && e5.radius <= 500, n2 = typeof e5.amount == `number` && !isNaN(e5.amount) && e5.amount >= 0 && e5.amount <= 10, r2 = typeof e5.threshold == `number` && !isNaN(e5.threshold) && e5.threshold >= 0 && e5.threshold <= 255;
782
+ return t2 && n2 && r2;
783
+ }
784
+ function un(e5) {
785
+ return e5 ||= {}, typeof e5.radius == `number` && !isNaN(e5.radius) && e5.radius === 0 && typeof e5.amount == `number` && !isNaN(e5.amount) && e5.amount === 0 && typeof e5.threshold == `number` && !isNaN(e5.threshold) && e5.threshold === 0;
786
+ }
787
+ function dn(e5, t2, n2, r2) {
788
+ let i2 = gt(r2), a2 = xt(t2.id), o2 = bt(t2.id, t2.name), s2 = i2 ? 1 : At(n2), c2 = L(t2.id), l2 = c2, u2 = ut(t2.id, r2?.hasAnimation, r2?.allowAnimatedTransform, r2?.allowFullGIFTransformation), d2 = { fileName: o2, fileExtension: c2, fileType: a2, fittingType: e5, preferredExtension: l2, src: { id: t2.id, width: t2.width, height: t2.height, isCropped: false, isAnimated: Vt(t2.id, r2?.hasAnimation) }, focalPoint: { x: t2.focalPoint && t2.focalPoint.x, y: t2.focalPoint && t2.focalPoint.y }, parts: [], devicePixelRatio: s2, quality: 0, upscaleMethod: Bt(r2), progressive: true, watermark: ``, unsharpMask: {}, filters: {}, transformed: u2, allowFullGIFTransformation: r2?.allowFullGIFTransformation, isPlaceholderFlow: r2?.isPlaceholderFlow };
789
+ return u2 && (qt(d2, t2, n2), tn(d2, r2)), d2;
790
+ }
791
+ function fn(e5, t2, n2) {
792
+ let r2 = { ...n2 }, i2 = Kt();
793
+ switch (e5) {
794
+ case E.LEGACY_BG_FIT_AND_TILE:
795
+ case E.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:
796
+ case E.LEGACY_BG_FIT_AND_TILE_VERTICAL:
797
+ case E.LEGACY_BG_NORMAL:
798
+ let e6 = i2 ? qe : Ge, n3 = i2 ? Je : Ke;
799
+ r2.width = Math.min(e6, t2.width), r2.height = Math.min(n3, Math.round(r2.width / (t2.width / t2.height))), r2.pixelAspectRatio = 1;
800
+ }
801
+ return r2;
802
+ }
803
+ var pn = N`fit/w_${`width`},h_${`height`}`;
804
+ var mn = N`fill/w_${`width`},h_${`height`},al_${`alignment`}`;
805
+ var hn = N`fill/w_${`width`},h_${`height`},fp_${`focalPointX`}_${`focalPointY`}`;
806
+ var gn = N`crop/x_${`x`},y_${`y`},w_${`width`},h_${`height`}`;
807
+ var _n = N`crop/w_${`width`},h_${`height`},al_${`alignment`}`;
808
+ var vn = N`fill/w_${`width`},h_${`height`},al_${`alignment`}`;
809
+ var yn = N`,lg_${`upscaleMethodValue`}`;
810
+ var bn = N`,q_${`quality`}`;
811
+ var xn = N`,quality_auto`;
812
+ var Sn = N`,usm_${`radius`}_${`amount`}_${`threshold`}`;
813
+ var Cn = N`,bl`;
814
+ var wn = N`,wm_${`watermark`}`;
815
+ var Tn = { [j.CONTRAST]: N`,con_${`contrast`}`, [j.BRIGHTNESS]: N`,br_${`brightness`}`, [j.SATURATION]: N`,sat_${`saturation`}`, [j.HUE]: N`,hue_${`hue`}`, [j.BLUR]: N`,blur_${`blur`}` };
816
+ var En = N`,enc_auto`;
817
+ var Dn = N`,enc_avif`;
818
+ var On = N`,enc_pavif`;
819
+ var kn = N`,pstr`;
820
+ var An = N`,anm_all`;
821
+ function jn(e5) {
822
+ if (e5.parts.some(({ width: e6, height: t3 }) => !Number.isFinite(e6) || e6 <= 0 || !Number.isFinite(t3) || t3 <= 0)) return e5.src.id;
823
+ let t2 = [];
824
+ e5.parts.forEach((e6) => {
825
+ switch (e6.transformType) {
826
+ case D.CROP:
827
+ t2.push(gn(e6));
828
+ break;
829
+ case D.LEGACY_CROP:
830
+ t2.push(_n(e6));
831
+ break;
832
+ case D.LEGACY_FILL:
833
+ let n3 = vn(e6);
834
+ e6.upscale && (n3 += yn(e6)), t2.push(n3);
835
+ break;
836
+ case D.FIT:
837
+ let r2 = pn(e6);
838
+ e6.upscale && (r2 += yn(e6)), t2.push(r2);
839
+ break;
840
+ case D.FILL:
841
+ let i2 = mn(e6);
842
+ e6.upscale && (i2 += yn(e6)), t2.push(i2);
843
+ break;
844
+ case D.FILL_FOCAL:
845
+ let a2 = hn(e6);
846
+ e6.upscale && (a2 += yn(e6)), t2.push(a2);
847
+ }
848
+ });
849
+ let n2 = t2.join(`/`);
850
+ if (e5.quality && (n2 += bn(e5)), e5.unsharpMask && (n2 += Sn(e5.unsharpMask)), e5.progressive || (n2 += Cn(e5)), e5.watermark && (n2 += wn(e5)), e5.filters && (n2 += Object.keys(e5.filters).map((t3) => Tn[t3](e5.filters)).join(``)), e5.fileType !== M.GIF && (e5.encoding === rt.AVIF ? (n2 += Dn(e5), n2 += xn(e5)) : e5.encoding === rt.PAVIF ? (n2 += On(e5), n2 += xn(e5)) : e5.autoEncode && (n2 += En(e5))), e5.src?.isAnimated && e5.transformed) {
851
+ let t3 = pt(e5.src.id), r2 = e5.isPlaceholderFlow === true, i2 = e5.allowFullGIFTransformation === true;
852
+ r2 ? n2 += kn(e5) : t3 && i2 && (n2 += An(e5));
853
+ }
854
+ return `${e5.src.id}/v1/${n2}/${e5.fileName}.${e5.preferredExtension}`;
855
+ }
856
+ function Mn(e5, t2, n2, r2 = {}, i2) {
857
+ if (ut(t2.id, r2?.hasAnimation, r2?.allowAnimatedTransform, r2?.allowFullGIFTransformation)) {
858
+ if ((F(t2.id) || I(t2.id)) && !r2.allowWebpAvifTransforms) {
859
+ let { alignment: a2, ...o2 } = n2;
860
+ t2.focalPoint = { x: void 0, y: void 0 }, delete t2?.crop, i2 = dn(e5, t2, o2, r2);
861
+ } else i2 ||= dn(e5, t2, n2, r2);
862
+ return jn(i2);
863
+ }
864
+ return t2.id;
865
+ }
866
+ var Nn = { [O.CENTER]: `50% 50%`, [O.TOP_LEFT]: `0% 0%`, [O.TOP_RIGHT]: `100% 0%`, [O.TOP]: `50% 0%`, [O.BOTTOM_LEFT]: `0% 100%`, [O.BOTTOM_RIGHT]: `100% 100%`, [O.BOTTOM]: `50% 100%`, [O.RIGHT]: `100% 50%`, [O.LEFT]: `0% 50%` };
867
+ Object.entries(Nn).reduce((e5, [t2, n2]) => (e5[n2] = t2, e5), {}), E.TILE, E.TILE_HORIZONTAL, E.TILE_VERTICAL, E.LEGACY_BG_FIT_AND_TILE, E.LEGACY_BG_FIT_AND_TILE_HORIZONTAL, E.LEGACY_BG_FIT_AND_TILE_VERTICAL, E.LEGACY_ORIGINAL_SIZE, E.ORIGINAL_SIZE, E.LEGACY_BG_NORMAL;
868
+ function Pn(e5, t2, n2, r2) {
869
+ if (st(e5, t2, n2)) {
870
+ let i2 = fn(e5, t2, n2), a2 = dn(e5, t2, i2, r2);
871
+ return { uri: Mn(e5, t2, i2, r2 || {}, a2) };
872
+ }
873
+ return { uri: `` };
874
+ }
875
+ var Fn = `https://static.wixstatic.com/`;
876
+ var In = `https://static.wixstatic.com/media/`;
877
+ var Ln = /^media\//i;
878
+ var Rn = typeof window < `u` ? window.devicePixelRatio : 1;
879
+ var zn = (e5) => Ln.test(e5) ? `${Fn}${e5}` : `${In}${e5}`;
880
+ var Bn = (e5, t2) => {
881
+ let n2 = t2 && t2.baseHostURL;
882
+ return n2 ? `${n2}${e5}` : zn(e5);
883
+ };
884
+ function Vn(e5, t2, n2, r2, i2, a2) {
885
+ return Bn(Pn(E.SCALE_TO_FIT, { id: e5, width: t2, height: n2, name: a2 && a2.name }, { width: r2, height: i2, htmlTag: Ze.IMG, alignment: O.CENTER, pixelAspectRatio: a2?.devicePixelRatio ?? Rn }, a2).uri, a2);
886
+ }
887
+ function Hn(e5, t2, n2, r2, i2, a2) {
888
+ return Bn(Pn(E.SCALE_TO_FILL, { id: e5, width: t2, height: n2, name: a2 && a2.name, focalPoint: { x: a2 && a2.focalPoint && a2.focalPoint.x, y: a2 && a2.focalPoint && a2.focalPoint.y } }, { width: r2, height: i2, htmlTag: Ze.IMG, alignment: O.CENTER, pixelAspectRatio: a2?.devicePixelRatio ?? Rn }, a2).uri, a2);
889
+ }
890
+ function Un(e5, t2, n2, r2, i2, a2, o2, s2, c2, l2) {
891
+ return Bn(Pn(E.SCALE_TO_FILL, { id: e5, width: t2, height: n2, name: l2 && l2.name, crop: { x: r2, y: i2, width: a2, height: o2 } }, { width: s2, height: c2, htmlTag: Ze.IMG, alignment: O.CENTER, pixelAspectRatio: l2?.devicePixelRatio ?? Rn }, l2).uri, l2);
892
+ }
893
+ Gt(), Gt();
894
+ var Wn = { getScaleToFitImageURL: Vn, getScaleToFillImageURL: Hn, getCropImageURL: Un };
895
+ var Gn = `wix:`;
896
+ var Kn = `image`;
897
+ var qn = `video`;
898
+ var Jn = `audio`;
899
+ var Yn = `document`;
900
+ var Xn = `https://static.wixstatic.com/media/`;
901
+ var Zn = `https://static.wixstatic.com/shapes/`;
902
+ var Qn = `https://video.wixstatic.com/video/`;
903
+ var $n = `https://static.wixstatic.com/mp3/`;
904
+ var er = `https://d945e594-8657-47e2-9cd9-e9033c3d8da0.usrfiles.com/`;
905
+ function tr(e5, t2, n2, r2) {
906
+ let i2 = ir(e5);
907
+ return Wn.getScaleToFillImageURL(i2.id, i2.height, i2.width, t2, n2, r2);
908
+ }
909
+ function nr(e5, t2, n2, r2) {
910
+ let i2 = ir(e5);
911
+ return Wn.getScaleToFitImageURL(i2.id, i2.height, i2.width, t2, n2, r2);
912
+ }
913
+ function rr(e5, t2, n2, r2, i2, a2, o2, s2) {
914
+ let c2 = ir(e5);
915
+ return Wn.getCropImageURL(c2.id, c2.height, c2.width, t2, n2, r2, i2, a2, o2, s2);
916
+ }
917
+ function ir(e5) {
918
+ return or(e5, Xn);
919
+ }
920
+ function ar(e5) {
921
+ return or(e5, Zn);
922
+ }
923
+ function or(e5, t2 = Xn) {
924
+ let n2, r2, i2, a2;
925
+ if (e5.startsWith(t2)) n2 = e5.split(t2).pop().split(`/`)[0], a2 = e5.split(`/w_`).pop().split(`,`)[0], i2 = e5.split(`,h_`).pop().split(`,`)[0];
926
+ else {
927
+ let t3 = dr(e5, Kn), { hash: o3, pathname: s3 } = new URL(t3), c2 = new URLSearchParams(o3.replace(`#`, ``));
928
+ i2 = c2.get(`originHeight`), a2 = c2.get(`originWidth`), [n2, r2] = s3.replace(`${Kn}://v1/`, ``).split(`/`);
929
+ }
930
+ let o2 = ur(r2), s2 = { id: n2, url: `${t2}${n2}`, height: Number(i2), width: Number(a2) };
931
+ return o2 ? { ...s2, altText: o2, filename: o2 } : s2;
932
+ }
933
+ function sr(e5, t2) {
934
+ let n2, r2, i2, a2, o2 = ``;
935
+ if (e5.startsWith(Qn)) n2 = e5.split(Qn).pop().split(`/`)[0], r2 = `${n2}.jpg`, i2 = `50`, a2 = `50`;
936
+ else {
937
+ let t3 = dr(e5, qn), { pathname: s3, hash: c2 } = new URL(t3), l2 = new URLSearchParams(c2.replace(`#`, ``)), [u2, d2] = s3.replace(`${qn}://v1/`, ``).split(`/`);
938
+ n2 = u2, r2 = l2.get(`posterUri`) || `${n2}.jpg`, i2 = l2.get(`posterWidth`) || `50`, a2 = l2.get(`posterHeight`) || `50`, o2 = ur(d2);
939
+ }
940
+ let s2 = { id: n2, url: `${Qn}${n2}/${t2 ? `${t2}/mp4/file.mp4` : `file`}`, thumbnail: `${Gn}${Kn}://v1/${r2}#originWidth=${i2}&originHeight=${a2}` };
941
+ return o2 ? { ...s2, filename: o2 } : s2;
942
+ }
943
+ function cr(e5) {
944
+ let t2 = dr(e5, Jn), { pathname: n2, hash: r2 } = new URL(t2), [i2, a2] = n2.replace(`${Jn}://v1/`, ``).split(`/`), o2 = ur(a2), s2 = new URLSearchParams(r2.replace(`#`, ``)), c2 = { id: i2, duration: Number(s2.get(`duration`) || ``), url: `${$n}${i2}` };
945
+ return o2 ? { ...c2, filename: o2 } : c2;
946
+ }
947
+ function lr(e5) {
948
+ let t2 = dr(e5, Yn), { pathname: n2 } = new URL(t2), r2 = n2.replace(`${Yn}://v1/`, ``).split(`/`), i2 = r2[0] === `ugd` || r2[0] === `archives` ? r2.shift() : `ugd`, [a2, o2] = r2, s2 = ur(o2), c2 = { id: a2, url: `${er}${i2}/${a2}` };
949
+ return s2 ? { ...c2, filename: s2 } : c2;
950
+ }
951
+ function ur(e5) {
952
+ return e5 && decodeURIComponent(e5);
953
+ }
954
+ function dr(e5, t2) {
955
+ let { protocol: n2 } = new URL(e5);
956
+ return n2 === `${t2}:` ? `${Gn}${e5}` : e5;
957
+ }
958
+ var fr;
959
+ (function(e5) {
960
+ e5.MOBILE = `360p`, e5.LOW = `480p`, e5.MID = `720p`, e5.HIGH = `1080p`;
961
+ })(fr ||= {});
962
+ var pr = { getCroppedImageUrl: rr, getScaledToFillImageUrl: tr, getScaledToFitImageUrl: nr, getImageUrl: ir, getVideoUrl: sr, getAudioUrl: cr, getDocumentUrl: lr, getShapeUrl: ar };
963
+ var mr = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
964
+ var hr = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
965
+ function gr(e5, t2) {
488
966
  return e5?.split(`.`).map((e6) => t2?.[e6] ?? e6).join(`.`);
489
967
  }
490
- var qe = `sort.fieldName`;
491
- function Je(e5, t2, n2) {
492
- return (e5 === qe || e5.endsWith(`.${qe}`)) && typeof t2 == `string` ? Ke(t2, n2) : t2;
968
+ var _r = `sort.fieldName`;
969
+ function vr(e5, t2, n2) {
970
+ return (e5 === _r || e5.endsWith(`.${_r}`)) && typeof t2 == `string` ? gr(t2, n2) : t2;
493
971
  }
494
- function Ye(e5, t2, n2) {
972
+ function yr(e5, t2, n2) {
495
973
  let r2 = (e6) => n2.includes(e6), i2 = (e6, n3) => {
496
974
  if (Array.isArray(e6)) e6.forEach((e7) => {
497
975
  i2(e7, n3);
@@ -501,144 +979,144 @@ function Ye(e5, t2, n2) {
501
979
  Object.keys(a2).forEach((e7) => {
502
980
  let o2 = n3 === `` ? e7 : `${n3}.${e7}`;
503
981
  if (r2(o2)) return;
504
- let s2 = Xe(e7, t2);
505
- s2 !== e7 && !(s2 in a2) && (a2[s2] = a2[e7], delete a2[e7]), a2[s2] = Je(o2, a2[s2], t2), i2(a2[s2], o2);
982
+ let s2 = br(e7, t2);
983
+ s2 !== e7 && !(s2 in a2) && (a2[s2] = a2[e7], delete a2[e7]), a2[s2] = vr(o2, a2[s2], t2), i2(a2[s2], o2);
506
984
  });
507
985
  }
508
986
  };
509
987
  return i2(e5, ``), e5;
510
988
  }
511
- function Xe(e5, t2) {
989
+ function br(e5, t2) {
512
990
  let n2;
513
991
  return n2 = e5.includes(`.`) ? e5.split(`.`).map((e6) => t2[e6] ?? e6).join(`.`) : t2[e5] ?? e5, n2;
514
992
  }
515
- function Ze(e5, t2 = []) {
516
- return Ye(e5, We, t2);
993
+ function xr(e5, t2 = []) {
994
+ return yr(e5, mr, t2);
517
995
  }
518
- function Qe(e5, t2 = []) {
519
- return Ye(e5, Ge, t2);
996
+ function Sr(e5, t2 = []) {
997
+ return yr(e5, hr, t2);
520
998
  }
521
- function $e(e5) {
999
+ function Cr(e5) {
522
1000
  return e5 ? new Date(e5) : void 0;
523
1001
  }
524
- var et = /* @__PURE__ */ new WeakMap();
525
- function tt() {
1002
+ var wr = /* @__PURE__ */ new WeakMap();
1003
+ function Tr() {
526
1004
  return { leaves: void 0, fields: void 0, mapFields: void 0, anyField: void 0 };
527
1005
  }
528
- function nt(e5, t2) {
1006
+ function Er(e5, t2) {
529
1007
  let n2 = e5.get(t2);
530
- return n2 || (n2 = tt(), e5.set(t2, n2)), n2;
1008
+ return n2 || (n2 = Tr(), e5.set(t2, n2)), n2;
531
1009
  }
532
- function rt(e5, t2) {
533
- return t2 === `*` ? (e5.anyField ??= tt(), e5.anyField) : t2.endsWith(`{}`) ? (e5.mapFields ??= /* @__PURE__ */ new Map(), nt(e5.mapFields, t2.slice(0, -2))) : (e5.fields ??= /* @__PURE__ */ new Map(), nt(e5.fields, t2));
1010
+ function Dr(e5, t2) {
1011
+ return t2 === `*` ? (e5.anyField ??= Tr(), e5.anyField) : t2.endsWith(`{}`) ? (e5.mapFields ??= /* @__PURE__ */ new Map(), Er(e5.mapFields, t2.slice(0, -2))) : (e5.fields ??= /* @__PURE__ */ new Map(), Er(e5.fields, t2));
534
1012
  }
535
- function it(e5) {
536
- let t2 = tt();
1013
+ function Or(e5) {
1014
+ let t2 = Tr();
537
1015
  for (let n2 of e5) {
538
- let e6 = n2.path.split(`.`).reduce(rt, t2);
1016
+ let e6 = n2.path.split(`.`).reduce(Dr, t2);
539
1017
  e6.leaves ??= [], e6.leaves.push(n2);
540
1018
  }
541
1019
  return t2;
542
1020
  }
543
- function at(e5) {
544
- let t2 = et.get(e5);
545
- return t2 || (t2 = it(e5), et.set(e5, t2)), t2;
1021
+ function kr(e5) {
1022
+ let t2 = wr.get(e5);
1023
+ return t2 || (t2 = Or(e5), wr.set(e5, t2)), t2;
546
1024
  }
547
- function D(e5) {
1025
+ function Ar(e5) {
548
1026
  return typeof e5 == `object` && !!e5;
549
1027
  }
550
- function ot(e5, { isRepeated: t2, isMap: n2 }, r2) {
551
- return t2 ? Array.isArray(e5) ? e5.map(r2) : e5 : n2 ? D(e5) ? Object.fromEntries(Object.entries(e5).map(([e6, t3]) => [e6, r2(t3)])) : e5 : r2(e5);
1028
+ function jr(e5, { isRepeated: t2, isMap: n2 }, r2) {
1029
+ return t2 ? Array.isArray(e5) ? e5.map(r2) : e5 : n2 ? Ar(e5) ? Object.fromEntries(Object.entries(e5).map(([e6, t3]) => [e6, r2(t3)])) : e5 : r2(e5);
552
1030
  }
553
- function O(e5, t2, n2) {
554
- D(e5) && lt(e5, t2, n2);
1031
+ function Mr(e5, t2, n2) {
1032
+ Ar(e5) && Fr(e5, t2, n2);
555
1033
  }
556
- function st(e5, t2, n2) {
1034
+ function Nr(e5, t2, n2) {
557
1035
  for (let [r2, i2] of t2) {
558
1036
  if (!(r2 in e5)) continue;
559
- if (i2.leaves) for (let t4 of i2.leaves) e5[r2] = ot(e5[r2], t4, n2);
1037
+ if (i2.leaves) for (let t4 of i2.leaves) e5[r2] = jr(e5[r2], t4, n2);
560
1038
  let t3 = e5[r2];
561
- Array.isArray(t3) ? t3.forEach((e6) => O(e6, i2, n2)) : O(t3, i2, n2);
1039
+ Array.isArray(t3) ? t3.forEach((e6) => Mr(e6, i2, n2)) : Mr(t3, i2, n2);
562
1040
  }
563
1041
  }
564
- function ct(e5, t2, n2) {
1042
+ function Pr(e5, t2, n2) {
565
1043
  for (let [r2, i2] of t2) {
566
1044
  let t3 = e5[r2];
567
- D(t3) && Object.values(t3).forEach((e6) => O(e6, i2, n2));
1045
+ Ar(t3) && Object.values(t3).forEach((e6) => Mr(e6, i2, n2));
568
1046
  }
569
1047
  }
570
- function lt(e5, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
571
- t2 && st(e5, t2, i2), n2 && ct(e5, n2, i2), r2 && Object.values(e5).forEach((e6) => O(e6, r2, i2));
1048
+ function Fr(e5, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
1049
+ t2 && Nr(e5, t2, i2), n2 && Pr(e5, n2, i2), r2 && Object.values(e5).forEach((e6) => Mr(e6, r2, i2));
572
1050
  }
573
- function ut(e5, t2) {
574
- if (!D(e5)) return e5;
575
- for (let { paths: n2, transformFn: r2 } of t2) lt(e5, at(n2), r2);
1051
+ function Ir(e5, t2) {
1052
+ if (!Ar(e5)) return e5;
1053
+ for (let { paths: n2, transformFn: r2 } of t2) Fr(e5, kr(n2), r2);
576
1054
  return e5;
577
1055
  }
578
- function dt(e5) {
579
- return gt(e5).map((e6) => e6.toLocaleUpperCase()).join(`_`);
1056
+ function Lr(e5) {
1057
+ return Hr(e5).map((e6) => e6.toLocaleUpperCase()).join(`_`);
580
1058
  }
581
- var ft = /([\p{Ll}\d])(\p{Lu})/gu;
582
- var pt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
583
- var mt = `$1\0$2`;
584
- var ht = /[^\p{L}\d]+/giu;
585
- function gt(e5) {
1059
+ var Rr = /([\p{Ll}\d])(\p{Lu})/gu;
1060
+ var zr = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
1061
+ var Br = `$1\0$2`;
1062
+ var Vr = /[^\p{L}\d]+/giu;
1063
+ function Hr(e5) {
586
1064
  let t2 = e5.trim();
587
- t2 = t2.replace(ft, mt).replace(pt, mt), t2 = t2.replace(ht, `\0`);
1065
+ t2 = t2.replace(Rr, Br).replace(zr, Br), t2 = t2.replace(Vr, `\0`);
588
1066
  let n2 = 0, r2 = t2.length;
589
1067
  for (; t2.charAt(n2) === `\0`; ) n2++;
590
1068
  if (n2 === r2) return [];
591
1069
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
592
1070
  return t2.slice(n2, r2).split(/\0/g);
593
1071
  }
594
- var _t = (e5) => `validationError` in (e5.response?.data?.details ?? {});
595
- var vt = (e5) => `applicationError` in (e5.response?.data?.details ?? {});
596
- var yt = (e5) => (e5.response?.status ?? -1) >= 400 && (e5.response?.status ?? -1) < 500;
597
- function bt(e5, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
1072
+ var Ur = (e5) => `validationError` in (e5.response?.data?.details ?? {});
1073
+ var Wr = (e5) => `applicationError` in (e5.response?.data?.details ?? {});
1074
+ var Gr = (e5) => (e5.response?.status ?? -1) >= 400 && (e5.response?.status ?? -1) < 500;
1075
+ function Kr(e5, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
598
1076
  if (typeof e5 != `object` || !e5) throw e5;
599
- if (_t(e5)) return xt(e5, t2, n2);
600
- if (vt(e5)) return St(e5);
601
- if (yt(e5)) {
602
- let t3 = e5.response?.status, n3 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: dt(n3), data: {} }, requestId: e5.requestId };
603
- return k(e5, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
1077
+ if (Ur(e5)) return qr(e5, t2, n2);
1078
+ if (Wr(e5)) return Yr(e5);
1079
+ if (Gr(e5)) {
1080
+ let t3 = e5.response?.status, n3 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: Lr(n3), data: {} }, requestId: e5.requestId };
1081
+ return Jr(e5, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
604
1082
  }
605
- return Ct(e5);
1083
+ return Xr(e5);
606
1084
  }
607
- var xt = (e5, t2, n2) => {
608
- let r2 = e5.response?.data, i2 = e5.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = wt(t2, a2, n2)?.sort((e6, t3) => e6.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e6, description: t3 }) => `"${e6}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
609
- return k(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e5.response?.status, requestId: i2 } });
1085
+ var qr = (e5, t2, n2) => {
1086
+ let r2 = e5.response?.data, i2 = e5.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Zr(t2, a2, n2)?.sort((e6, t3) => e6.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e6, description: t3 }) => `"${e6}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
1087
+ return Jr(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e5.response?.status, requestId: i2 } });
610
1088
  };
611
- var k = (e5, { message: t2, extraProperties: n2 }) => Object.assign(e5, { ...n2, message: t2 });
612
- var St = (e5) => {
613
- let t2 = e5.response?.status, n2 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n2, i2 = e5.response?.data?.details?.applicationError?.description ?? n2, a2 = e5.response?.data?.details?.applicationError?.code ?? dt(n2), o2 = e5.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e5.requestId };
614
- return k(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e5.requestId } });
1089
+ var Jr = (e5, { message: t2, extraProperties: n2 }) => Object.assign(e5, { ...n2, message: t2 });
1090
+ var Yr = (e5) => {
1091
+ let t2 = e5.response?.status, n2 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n2, i2 = e5.response?.data?.details?.applicationError?.description ?? n2, a2 = e5.response?.data?.details?.applicationError?.code ?? Lr(n2), o2 = e5.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e5.requestId };
1092
+ return Jr(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e5.requestId } });
615
1093
  };
616
- var Ct = (e5) => k(e5, { message: e5.requestId ? `System error occurred, request-id: ${e5.requestId}` : `System error occurred: ${JSON.stringify(e5)}`, extraProperties: { requestId: e5.requestId, status: e5.response?.status, code: dt(e5.response?.statusText ?? `UNKNOWN`), ...!e5.response && { runtimeError: e5 } } });
617
- var wt = ({ spreadPathsToArguments: e5, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
1094
+ var Xr = (e5) => Jr(e5, { message: e5.requestId ? `System error occurred, request-id: ${e5.requestId}` : `System error occurred: ${JSON.stringify(e5)}`, extraProperties: { requestId: e5.requestId, status: e5.response?.status, code: Lr(e5.response?.statusText ?? `UNKNOWN`), ...!e5.response && { runtimeError: e5 } } });
1095
+ var Zr = ({ spreadPathsToArguments: e5, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
618
1096
  let a2 = { ...e5, ...t2 }, o2 = Object.keys(a2);
619
1097
  return r2?.filter((e6) => !r2.some((t3) => t3.field.length > e6.field.length && t3.field.startsWith(e6.field) && o2.includes(t3.field))).map((e6) => {
620
1098
  let r3 = t2[e6.field];
621
- if (r3) return { ...e6, field: Tt(r3, i2) };
1099
+ if (r3) return { ...e6, field: Qr(r3, i2) };
622
1100
  let s2 = o2?.sort((e7, t3) => t3.length - e7.length)?.find((t3) => e6.field.startsWith(t3));
623
1101
  if (s2) {
624
1102
  let t3 = a2[s2];
625
- if (t3) return { ...e6, field: e6.field.replace(s2, Tt(t3, i2)) };
1103
+ if (t3) return { ...e6, field: e6.field.replace(s2, Qr(t3, i2)) };
626
1104
  }
627
1105
  return n2 ? { ...e6, field: `${i2[0]}.${e6.field}` } : e6;
628
1106
  });
629
1107
  };
630
- var Tt = (e5, t2) => {
631
- let n2 = Et(e5);
1108
+ var Qr = (e5, t2) => {
1109
+ let n2 = $r(e5);
632
1110
  return n2 == null ? e5 : e5.replace(`$[${n2}]`, t2[n2]);
633
1111
  };
634
- var Et = (e5) => {
1112
+ var $r = (e5) => {
635
1113
  let t2 = e5.match(/\$\[(?<argIndex>\d+)\]/);
636
1114
  return t2 && t2.groups && Number(t2.groups.argIndex);
637
1115
  };
638
- function Dt() {
1116
+ function ei() {
639
1117
  let e5 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
640
1118
  if (e5) return { initWixModules(t3, n3) {
641
- return Ot(() => e5(t3, n3));
1119
+ return ti(() => e5(t3, n3));
642
1120
  }, fetchWithAuth() {
643
1121
  throw Error(`fetchWithAuth is not available in this context`);
644
1122
  }, graphql() {
@@ -648,10 +1126,10 @@ function Dt() {
648
1126
  if (t2 || n2) return { initWixModules(e6, r2) {
649
1127
  if (r2) {
650
1128
  if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
651
- return Ot(() => n2.use(e6));
1129
+ return ti(() => n2.use(e6));
652
1130
  }
653
1131
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
654
- return Ot(() => t2.use(e6));
1132
+ return ti(() => t2.use(e6));
655
1133
  }, fetchWithAuth: (e6, n3) => {
656
1134
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
657
1135
  return t2.fetchWithAuth(e6, n3);
@@ -663,7 +1141,7 @@ function Dt() {
663
1141
  return t2.graphql(e6, n3, r2);
664
1142
  } };
665
1143
  }
666
- function Ot(e5) {
1144
+ function ti(e5) {
667
1145
  let t2 = globalThis.__wix_context__, n2 = { client: p.client, elevatedClient: p.elevatedClient }, r2;
668
1146
  globalThis.__wix_context__ = void 0, p.client = void 0, p.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
669
1147
  try {
@@ -672,78 +1150,78 @@ function Ot(e5) {
672
1150
  globalThis.__wix_context__ = t2, p.client = n2.client, p.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
673
1151
  }
674
1152
  }
675
- function kt(e5, t2) {
1153
+ function ni(e5, t2) {
676
1154
  return (...n2) => {
677
- let r2 = Dt();
1155
+ let r2 = ei();
678
1156
  return r2 ? r2.initWixModules(e5, t2).apply(void 0, n2) : e5.apply(void 0, n2);
679
1157
  };
680
1158
  }
681
- function At(e5, t2 = false) {
682
- return kt(e5, t2);
683
- }
684
- function jt(e5) {
685
- let t2 = Wt(Ht(e5.host), e5.domainToMappings);
686
- return $t(Xt(e5.protoPath, e5.data || {}), t2);
687
- }
688
- var Mt = [`wix.com`, `editorx.com`];
689
- var Nt = `_`;
690
- var Pt = `*.`;
691
- var Ft = RegExp(`\\.(${Mt.join(`|`)})$`);
692
- var It = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
693
- var Lt = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
694
- var Rt = `dev.wix-code.com`;
695
- var zt = /{(.*)}/;
696
- var Bt = RegExp(`\\.(${It.join(`|`)})$`);
697
- var Vt = RegExp(`.*\\.${Rt}$`);
698
- function Ht(e5) {
699
- return Ut(e5).replace(Ft, `._base_domain_`).replace(Bt, `._api_base_domain_`).replace(Vt, `*.dev.wix-code.com`);
700
- }
701
- function Ut(e5) {
702
- return Lt[e5] ?? e5;
703
- }
704
- function Wt(e5, t2) {
1159
+ function ri(e5, t2 = false) {
1160
+ return ni(e5, t2);
1161
+ }
1162
+ function ii(e5) {
1163
+ let t2 = _i(hi(e5.host), e5.domainToMappings);
1164
+ return Ei(Ci(e5.protoPath, e5.data || {}), t2);
1165
+ }
1166
+ var ai = [`wix.com`, `editorx.com`];
1167
+ var oi = `_`;
1168
+ var si = `*.`;
1169
+ var ci = RegExp(`\\.(${ai.join(`|`)})$`);
1170
+ var li = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
1171
+ var ui = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
1172
+ var di = `dev.wix-code.com`;
1173
+ var fi = /{(.*)}/;
1174
+ var pi = RegExp(`\\.(${li.join(`|`)})$`);
1175
+ var mi = RegExp(`.*\\.${di}$`);
1176
+ function hi(e5) {
1177
+ return gi(e5).replace(ci, `._base_domain_`).replace(pi, `._api_base_domain_`).replace(mi, `*.dev.wix-code.com`);
1178
+ }
1179
+ function gi(e5) {
1180
+ return ui[e5] ?? e5;
1181
+ }
1182
+ function _i(e5, t2) {
705
1183
  let n2 = t2[e5];
706
1184
  if (n2) return n2;
707
- let r2 = Gt(e5, t2) ?? Kt(e5, t2);
1185
+ let r2 = vi(e5, t2) ?? yi(e5, t2);
708
1186
  if (!r2) {
709
- if (Jt(e5)) {
710
- let e6 = t2[Yt];
1187
+ if (xi(e5)) {
1188
+ let e6 = t2[Si];
711
1189
  if (e6) return e6;
712
1190
  }
713
- let n3 = t2[Nt];
1191
+ let n3 = t2[oi];
714
1192
  if (n3) return n3;
715
1193
  }
716
1194
  return r2 ?? [];
717
1195
  }
718
- function Gt(e5, t2) {
1196
+ function vi(e5, t2) {
719
1197
  return Object.entries(t2).find(([t3]) => {
720
1198
  let [, ...n2] = e5.split(`.`);
721
1199
  return n2.join(`.`) === t3;
722
1200
  })?.[1];
723
1201
  }
724
- function Kt(e5, t2) {
725
- let [n2] = Object.entries(t2).filter(([t3]) => qt(e5, t3)).sort(([e6], [t3]) => t3.length - e6.length);
1202
+ function yi(e5, t2) {
1203
+ let [n2] = Object.entries(t2).filter(([t3]) => bi(e5, t3)).sort(([e6], [t3]) => t3.length - e6.length);
726
1204
  if (!n2) return;
727
1205
  let [, r2] = n2;
728
1206
  return r2;
729
1207
  }
730
- function qt(e5, t2) {
731
- if (!t2.startsWith(Pt)) return false;
1208
+ function bi(e5, t2) {
1209
+ if (!t2.startsWith(si)) return false;
732
1210
  let n2 = t2.slice(1);
733
1211
  return e5.length > n2.length && e5.endsWith(n2);
734
1212
  }
735
- function Jt(e5) {
1213
+ function xi(e5) {
736
1214
  return !!e5.match(/\._base_domain_$/);
737
1215
  }
738
- var Yt = `www._base_domain_`;
739
- function Xt(e5, t2) {
740
- return e5.split(`/`).map((e6) => Zt(e6, t2)).join(`/`);
1216
+ var Si = `www._base_domain_`;
1217
+ function Ci(e5, t2) {
1218
+ return e5.split(`/`).map((e6) => wi(e6, t2)).join(`/`);
741
1219
  }
742
- function Zt(e5, t2) {
743
- let n2 = e5.match(zt) || [], r2 = n2[1];
744
- return r2 ? Qt(t2, r2, e5, e5.replace(n2[0], ``)) : e5;
1220
+ function wi(e5, t2) {
1221
+ let n2 = e5.match(fi) || [], r2 = n2[1];
1222
+ return r2 ? Ti(t2, r2, e5, e5.replace(n2[0], ``)) : e5;
745
1223
  }
746
- function Qt(e5, t2, n2, r2) {
1224
+ function Ti(e5, t2, n2, r2) {
747
1225
  let i2 = e5;
748
1226
  for (let e6 of t2.split(`.`)) {
749
1227
  if (!i2) return n2;
@@ -751,31 +1229,31 @@ function Qt(e5, t2, n2, r2) {
751
1229
  }
752
1230
  return `${i2}${r2}`;
753
1231
  }
754
- function $t(e5, t2) {
1232
+ function Ei(e5, t2) {
755
1233
  let n2 = t2?.find((t3) => e5.startsWith(t3.destPath));
756
1234
  return n2 ? n2.srcPath + e5.slice(n2.destPath.length) : e5;
757
1235
  }
758
- var A;
1236
+ var B;
759
1237
  (function(e5) {
760
1238
  e5.QUERY_PARAM = `QUERY_PARAM`, e5.SUBDOMAIN = `SUBDOMAIN`, e5.SUBDIRECTORY = `SUBDIRECTORY`;
761
- })(A ||= {});
762
- var en = { cs: `\u010Ce\u0161tina`, da: `Dansk`, de: `Deutsch`, en: `English`, es: `Espa\xF1ol`, fr: `Fran\xE7ais`, hi: `\u0939\u093F\u0928\u094D\u0926\u0940`, id: `Bahasa Indonesia`, it: `Italiano`, ja: `\u65E5\u672C\u8A9E`, ko: `\uD55C\uAD6D\uC5B4`, nl: `Nederlands`, no: `Norsk`, pl: `Polski`, pt: `Portugu\xEAs`, ru: `\u0420\u0443\u0441\u0441\u043A\u0438\u0439`, sv: `Svenska`, th: `\u0E44\u0E17\u0E22`, tr: `T\xFCrk\xE7e`, uk: `\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430`, vi: `Ti\u1EBFng Vi\u1EC7t`, zh: `\u7E41\u9AD4\u4E2D\u6587`, sq: `Shqip`, am: `\u12A0\u121B\u122D\u129B`, ar: `\u0627\u0644\u0639\u0631\u0628\u064A\u0629`, hy: `\u0540\u0561\u0575\u0565\u0580\u0565\u0576`, az: `Az\u0259rbaycan dili`, eu: `Euskara`, be: `\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F`, bn: `\u09AC\u09BE\u0982\u09B2\u09BE`, bs: `Bosanski`, bg: `\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438`, ca: `Catal\xE0`, ny: `ChiChe\u0175a`, co: `Corsu`, hr: `Hrvatski`, et: `Eesti`, fj: `Vosa Vakaviti`, fi: `Suomi`, ga: `Gaeilge`, gl: `Galego`, ka: `\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8`, el: `\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC`, gu: `\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0`, ht: `Krey\xF2l Ayisyen`, ha: `Hausa`, he: `\u05E2\u05D1\u05E8\u05D9\u05EA`, hu: `Magyar`, is: `\xCDslenska`, ig: `Igbo`, kn: `\u0C95\u0CA8\u0CCD\u0CA8\u0CA1`, kk: `\u049A\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456`, km: `\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A`, ku: `Kurd\xEE`, ky: `\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430`, lb: `L\xEBtzebuergesch`, lo: `\u0EA5\u0EB2\u0EA7`, la: `Latina`, lv: `Latvie\u0161u`, lt: `Lietuvi\u0173`, mk: `\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438`, mg: `Malagasy`, ms: `Bahasa Melayu`, ml: `\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02`, mt: `Malti`, mn: `\u041C\u043E\u043D\u0433\u043E\u043B`, ne: `\u0928\u0947\u092A\u093E\u0932\u0940`, ps: `\u067E\u069A\u062A\u0648`, fa: `\u0641\u0627\u0631\u0633\u06CC`, ro: `Rom\xE2n\u0103`, sm: `Gagana Samoa`, sr: `\u0421\u0440\u043F\u0441\u043A\u0438`, sn: `Shona`, sd: `\u0633\u0646\u068C\u064A`, si: `\u0DC3\u0DD2\u0D82\u0DC4\u0DBD`, sk: `Sloven\u010Dina`, sl: `Sloven\u0161\u010Dina`, so: `Soomaaliga`, su: `Basa Sunda`, sw: `Kiswahili`, tl: `Filipino`, tg: `\u0422\u043E\u04B7\u0438\u043A\u04E3`, ta: `\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD`, te: `\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41`, tk: `T\xFCrkmen`, ur: `\u0627\u0631\u062F\u0648`, uz: `O'zbek`, cy: `Cymraeg`, xh: `isiXhosa`, yi: `\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9`, yo: `Yor\xF9b\xE1`, zu: `isiZulu`, kl: `Kalaallisut`, fo: `F\xF8royskt`, ln: `Ling\xE1la`, mi: `M\u0101ori`, mr: `\u092E\u0930\u093E\u0920\u0940`, my: `\u1019\u103C\u1014\u103A\u1019\u102C`, se: `S\xE1megiella`, ug: `\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5`, qu: `Runa Simi`, aa: `Afar`, ab: `\u0410\u04A7\u0441\u0443\u0430`, ae: `Avestan`, ak: `Akan`, an: `Aragon\xE9s`, as: `\u0985\u09B8\u09AE\u09C0\u09AF\u09BC\u09BE`, av: `\u0410\u0432\u0430\u0440`, ay: `Aymar aru`, ba: `\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430`, bh: `\u092D\u094B\u091C\u092A\u0941\u0930\u0940`, bi: `Bislama`, bm: `Bamanankan`, bo: `\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B`, br: `Brezhoneg`, ce: `\u041D\u043E\u0445\u0447\u0438\u0439\u043D`, ch: `Chamoru`, cr: `\u14C0\u1426\u1403\u152D\u140D\u140F\u1423`, cu: `\u0426\u0440\u044C\u043A\u044A\u0432\u044C\u043D\u043E\u0441\u043B\u043E\u0432\u0463\u043D\u044C\u0441\u043A\u044A`, cv: `\u0427\u04D1\u0432\u0430\u0448\u043B\u0430`, dv: `\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0784\u07A6\u0790\u07B0`, dz: `\u0F62\u0FAB\u0F7C\u0F44\u0F0B\u0F41`, ee: `E\u028Begbe`, eo: `Esperanto`, ff: `Fulah`, fy: `Frysk`, gd: `G\xE0idhlig`, gn: `Ava\xF1e'\u1EBD`, gv: `Gaelg`, ho: `Hiri Motu`, hz: `Otjiherero`, ia: `Interlingua`, ie: `Interlingue`, ii: `\uA188\uA320\uA259`, ik: `I\xF1upiaq`, io: `Ido`, iu: `\u1403\u14C4\u1483\u144E\u1450\u1466`, jv: `Basa Jawa`, ki: `Gikuyu`, kr: `Kanuri`, ks: `\u06A9\u0672\u0634\u064F\u0631`, kw: `Kernewek`, lg: `Luganda`, li: `Limburgs`, lu: `Tshiluba`, mh: `Kajin M\u0327aje\u013C`, na: `Dorerin Naoero`, nb: `Norsk Bokm\xE5l`, nd: `isiNdebele`, ng: `Oshiwambo`, nn: `Norsk Nynorsk`, nr: `isiNdebele (South)`, nv: `Din\xE9 Bizaad`, oc: `Occitan`, oj: `Anishinaabemowin`, om: `Afaan Oromoo`, or: `\u0B13\u0B21\u0B3C\u0B3F\u0B06`, os: `\u0418\u0440\u043E\u043D`, pa: `\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40`, pi: `\u{11005}\u{1102F}\u{11022}`, rm: `Rumantsch`, rn: `Ikirundi`, rw: `Kinyarwanda`, sa: `\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D`, sc: `Sardu`, sg: `S\xE4ng\xF6`, ss: `SiSwati`, st: `Sesotho`, ti: `\u1275\u130D\u122D\u129B`, tn: `Setswana`, to: `Faka Tonga`, ts: `Xitsonga`, tt: `\u0422\u0430\u0442\u0430\u0440\u0447\u0430`, tw: `Twi`, ty: `Reo Tahiti`, ve: `Tshiven\u1E13a`, vo: `Volap\xFCk`, wa: `Walon`, wo: `Wolof`, za: `Sa\u026F cue\u014B\u0185` };
763
- var tn = (e5, t2) => {
1239
+ })(B ||= {});
1240
+ var Di = { cs: `\u010Ce\u0161tina`, da: `Dansk`, de: `Deutsch`, en: `English`, es: `Espa\xF1ol`, fr: `Fran\xE7ais`, hi: `\u0939\u093F\u0928\u094D\u0926\u0940`, id: `Bahasa Indonesia`, it: `Italiano`, ja: `\u65E5\u672C\u8A9E`, ko: `\uD55C\uAD6D\uC5B4`, nl: `Nederlands`, no: `Norsk`, pl: `Polski`, pt: `Portugu\xEAs`, ru: `\u0420\u0443\u0441\u0441\u043A\u0438\u0439`, sv: `Svenska`, th: `\u0E44\u0E17\u0E22`, tr: `T\xFCrk\xE7e`, uk: `\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430`, vi: `Ti\u1EBFng Vi\u1EC7t`, zh: `\u7E41\u9AD4\u4E2D\u6587`, sq: `Shqip`, am: `\u12A0\u121B\u122D\u129B`, ar: `\u0627\u0644\u0639\u0631\u0628\u064A\u0629`, hy: `\u0540\u0561\u0575\u0565\u0580\u0565\u0576`, az: `Az\u0259rbaycan dili`, eu: `Euskara`, be: `\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F`, bn: `\u09AC\u09BE\u0982\u09B2\u09BE`, bs: `Bosanski`, bg: `\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438`, ca: `Catal\xE0`, ny: `ChiChe\u0175a`, co: `Corsu`, hr: `Hrvatski`, et: `Eesti`, fj: `Vosa Vakaviti`, fi: `Suomi`, ga: `Gaeilge`, gl: `Galego`, ka: `\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8`, el: `\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC`, gu: `\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0`, ht: `Krey\xF2l Ayisyen`, ha: `Hausa`, he: `\u05E2\u05D1\u05E8\u05D9\u05EA`, hu: `Magyar`, is: `\xCDslenska`, ig: `Igbo`, kn: `\u0C95\u0CA8\u0CCD\u0CA8\u0CA1`, kk: `\u049A\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456`, km: `\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A`, ku: `Kurd\xEE`, ky: `\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430`, lb: `L\xEBtzebuergesch`, lo: `\u0EA5\u0EB2\u0EA7`, la: `Latina`, lv: `Latvie\u0161u`, lt: `Lietuvi\u0173`, mk: `\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438`, mg: `Malagasy`, ms: `Bahasa Melayu`, ml: `\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02`, mt: `Malti`, mn: `\u041C\u043E\u043D\u0433\u043E\u043B`, ne: `\u0928\u0947\u092A\u093E\u0932\u0940`, ps: `\u067E\u069A\u062A\u0648`, fa: `\u0641\u0627\u0631\u0633\u06CC`, ro: `Rom\xE2n\u0103`, sm: `Gagana Samoa`, sr: `\u0421\u0440\u043F\u0441\u043A\u0438`, sn: `Shona`, sd: `\u0633\u0646\u068C\u064A`, si: `\u0DC3\u0DD2\u0D82\u0DC4\u0DBD`, sk: `Sloven\u010Dina`, sl: `Sloven\u0161\u010Dina`, so: `Soomaaliga`, su: `Basa Sunda`, sw: `Kiswahili`, tl: `Filipino`, tg: `\u0422\u043E\u04B7\u0438\u043A\u04E3`, ta: `\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD`, te: `\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41`, tk: `T\xFCrkmen`, ur: `\u0627\u0631\u062F\u0648`, uz: `O'zbek`, cy: `Cymraeg`, xh: `isiXhosa`, yi: `\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9`, yo: `Yor\xF9b\xE1`, zu: `isiZulu`, kl: `Kalaallisut`, fo: `F\xF8royskt`, ln: `Ling\xE1la`, mi: `M\u0101ori`, mr: `\u092E\u0930\u093E\u0920\u0940`, my: `\u1019\u103C\u1014\u103A\u1019\u102C`, se: `S\xE1megiella`, ug: `\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5`, qu: `Runa Simi`, aa: `Afar`, ab: `\u0410\u04A7\u0441\u0443\u0430`, ae: `Avestan`, ak: `Akan`, an: `Aragon\xE9s`, as: `\u0985\u09B8\u09AE\u09C0\u09AF\u09BC\u09BE`, av: `\u0410\u0432\u0430\u0440`, ay: `Aymar aru`, ba: `\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430`, bh: `\u092D\u094B\u091C\u092A\u0941\u0930\u0940`, bi: `Bislama`, bm: `Bamanankan`, bo: `\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B`, br: `Brezhoneg`, ce: `\u041D\u043E\u0445\u0447\u0438\u0439\u043D`, ch: `Chamoru`, cr: `\u14C0\u1426\u1403\u152D\u140D\u140F\u1423`, cu: `\u0426\u0440\u044C\u043A\u044A\u0432\u044C\u043D\u043E\u0441\u043B\u043E\u0432\u0463\u043D\u044C\u0441\u043A\u044A`, cv: `\u0427\u04D1\u0432\u0430\u0448\u043B\u0430`, dv: `\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0784\u07A6\u0790\u07B0`, dz: `\u0F62\u0FAB\u0F7C\u0F44\u0F0B\u0F41`, ee: `E\u028Begbe`, eo: `Esperanto`, ff: `Fulah`, fy: `Frysk`, gd: `G\xE0idhlig`, gn: `Ava\xF1e'\u1EBD`, gv: `Gaelg`, ho: `Hiri Motu`, hz: `Otjiherero`, ia: `Interlingua`, ie: `Interlingue`, ii: `\uA188\uA320\uA259`, ik: `I\xF1upiaq`, io: `Ido`, iu: `\u1403\u14C4\u1483\u144E\u1450\u1466`, jv: `Basa Jawa`, ki: `Gikuyu`, kr: `Kanuri`, ks: `\u06A9\u0672\u0634\u064F\u0631`, kw: `Kernewek`, lg: `Luganda`, li: `Limburgs`, lu: `Tshiluba`, mh: `Kajin M\u0327aje\u013C`, na: `Dorerin Naoero`, nb: `Norsk Bokm\xE5l`, nd: `isiNdebele`, ng: `Oshiwambo`, nn: `Norsk Nynorsk`, nr: `isiNdebele (South)`, nv: `Din\xE9 Bizaad`, oc: `Occitan`, oj: `Anishinaabemowin`, om: `Afaan Oromoo`, or: `\u0B13\u0B21\u0B3C\u0B3F\u0B06`, os: `\u0418\u0440\u043E\u043D`, pa: `\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40`, pi: `\u{11005}\u{1102F}\u{11022}`, rm: `Rumantsch`, rn: `Ikirundi`, rw: `Kinyarwanda`, sa: `\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D`, sc: `Sardu`, sg: `S\xE4ng\xF6`, ss: `SiSwati`, st: `Sesotho`, ti: `\u1275\u130D\u122D\u129B`, tn: `Setswana`, to: `Faka Tonga`, ts: `Xitsonga`, tt: `\u0422\u0430\u0442\u0430\u0440\u0447\u0430`, tw: `Twi`, ty: `Reo Tahiti`, ve: `Tshiven\u1E13a`, vo: `Volap\xFCk`, wa: `Walon`, wo: `Wolof`, za: `Sa\u026F cue\u014B\u0185` };
1241
+ var Oi = (e5, t2) => {
764
1242
  e5.searchParams.set(`lang`, t2);
765
1243
  };
766
- var nn = (e5, t2) => {
1244
+ var ki = (e5, t2) => {
767
1245
  let n2 = e5.hostname.split(`.`);
768
1246
  n2[0] === `www` && (n2 = n2.slice(1)), n2 = [t2, ...n2], e5.hostname = n2.join(`.`);
769
1247
  };
770
- var rn = (e5, t2) => {
1248
+ var Ai = (e5, t2) => {
771
1249
  e5.pathname = `/${t2}${e5.pathname}`;
772
1250
  };
773
- var an = (e5, t2) => {
1251
+ var ji = (e5, t2) => {
774
1252
  if (!t2.languageCode || !t2?.resolutionMethod) return e5;
775
1253
  let n2 = new URL(e5);
776
- return (t2?.resolutionMethod === `QUERY_PARAM` ? tn : t2?.resolutionMethod === `SUBDOMAIN` ? nn : rn)(n2, t2.languageCode), n2.href;
1254
+ return (t2?.resolutionMethod === `QUERY_PARAM` ? Oi : t2?.resolutionMethod === `SUBDOMAIN` ? ki : Ai)(n2, t2.languageCode), n2.href;
777
1255
  };
778
- var on = (e5, t2) => {
1256
+ var Mi = (e5, t2) => {
779
1257
  if (!e5?.length) return e5;
780
1258
  let n2;
781
1259
  try {
@@ -796,91 +1274,91 @@ var on = (e5, t2) => {
796
1274
  }
797
1275
  return n2.href;
798
1276
  };
799
- function sn() {
800
- let e5 = cn();
801
- return e5 ? ln(e5) : [];
1277
+ function Ni() {
1278
+ let e5 = Pi();
1279
+ return e5 ? Fi(e5) : [];
802
1280
  }
803
- function cn() {
1281
+ function Pi() {
804
1282
  let e5 = typeof globals < `u` ? globals?.$ns?.[`wix-window`]?.multilingual : void 0, t2 = typeof window < `u` ? window?.essentials?.multilingual : void 0;
805
1283
  return e5 ?? t2 ?? globalThis?.__wix_site_metadata__?.multilingual;
806
1284
  }
807
- function ln(e5) {
1285
+ function Fi(e5) {
808
1286
  try {
809
1287
  if (e5?.supportedLanguages?.length) {
810
- let t2 = e5.supportedLanguages, n2 = t2.map((e6) => e6.languageCode).filter(Boolean), r2 = e5.cleanUrl ?? pn(n2);
811
- return t2.map((e6) => ({ id: e6.languageCode, displayName: un(e6), regionalFormat: [e6.locale?.languageCode, e6.locale?.country].filter(Boolean).join(`-`), url: dn(e6, r2), primary: e6.isPrimary, resolutionMethod: e6.resolutionMethod }));
1288
+ let t2 = e5.supportedLanguages, n2 = t2.map((e6) => e6.languageCode).filter(Boolean), r2 = e5.cleanUrl ?? zi(n2);
1289
+ return t2.map((e6) => ({ id: e6.languageCode, displayName: Ii(e6), regionalFormat: [e6.locale?.languageCode, e6.locale?.country].filter(Boolean).join(`-`), url: Li(e6, r2), primary: e6.isPrimary, resolutionMethod: e6.resolutionMethod }));
812
1290
  }
813
1291
  if (e5?.siteLanguages?.length) {
814
- let t2 = e5.siteLanguages, n2 = pn(t2.map((e6) => e6.languageCode).filter(Boolean));
815
- return t2.map((e6) => ({ id: e6.languageCode, displayName: un(e6), regionalFormat: e6.locale, url: dn(e6, n2), primary: e6.isPrimaryLanguage, resolutionMethod: e6.resolutionMethod ? fn(e6.resolutionMethod) : void 0 }));
1292
+ let t2 = e5.siteLanguages, n2 = zi(t2.map((e6) => e6.languageCode).filter(Boolean));
1293
+ return t2.map((e6) => ({ id: e6.languageCode, displayName: Ii(e6), regionalFormat: e6.locale, url: Li(e6, n2), primary: e6.isPrimaryLanguage, resolutionMethod: e6.resolutionMethod ? Ri(e6.resolutionMethod) : void 0 }));
816
1294
  }
817
1295
  } catch (e6) {
818
1296
  return console.warn(`[Multilingual Manager] listSupportedLanguages failed`, e6), [];
819
1297
  }
820
1298
  return console.warn(`[Multilingual Manager] listSupportedLanguages is not available`), [];
821
1299
  }
822
- function un(e5) {
823
- let t2 = en[e5.languageCode];
1300
+ function Ii(e5) {
1301
+ let t2 = Di[e5.languageCode];
824
1302
  if (t2) return t2;
825
1303
  let n2 = e5.name ?? e5.countryCode;
826
1304
  if (n2) return n2;
827
1305
  }
828
- function dn(e5, t2) {
1306
+ function Li(e5, t2) {
829
1307
  if (e5.url || !t2 || !e5.resolutionMethod) return e5.url;
830
1308
  if (e5.languageCode) try {
831
- return an(t2, { languageCode: e5.languageCode, countryCode: e5.countryCode, resolutionMethod: fn(e5.resolutionMethod), locale: { languageCode: e5.languageCode, country: e5.countryCode } });
1309
+ return ji(t2, { languageCode: e5.languageCode, countryCode: e5.countryCode, resolutionMethod: Ri(e5.resolutionMethod), locale: { languageCode: e5.languageCode, country: e5.countryCode } });
832
1310
  } catch (e6) {
833
1311
  console.warn(`[Multilingual Manager] buildUrlForLanguage failed`, e6);
834
1312
  return;
835
1313
  }
836
1314
  }
837
- function fn(e5) {
1315
+ function Ri(e5) {
838
1316
  switch (e5) {
839
1317
  case `QUERY_PARAM`:
840
1318
  case `QueryParam`:
841
- return A.QUERY_PARAM;
1319
+ return B.QUERY_PARAM;
842
1320
  case `SUBDOMAIN`:
843
1321
  case `Subdomain`:
844
- return A.SUBDOMAIN;
1322
+ return B.SUBDOMAIN;
845
1323
  case `SUBDIRECTORY`:
846
1324
  case `Subdirectory`:
847
- return A.SUBDIRECTORY;
1325
+ return B.SUBDIRECTORY;
848
1326
  default:
849
1327
  return;
850
1328
  }
851
1329
  }
852
- function pn(e5) {
1330
+ function zi(e5) {
853
1331
  let t2 = typeof window < `u` && window.location?.href ? window.location.href : ``;
854
1332
  try {
855
- return on(t2, e5);
1333
+ return Mi(t2, e5);
856
1334
  } catch (e6) {
857
1335
  return console.warn(`[Multilingual Manager] cleanCurrentUrl failed`, e6), t2;
858
1336
  }
859
1337
  }
860
- var mn = `x-wix-linguist`;
861
- var hn = `00000000-0000-0000-0000-000000000000`;
862
- var gn = `false`;
863
- var _n = () => {
864
- let e5 = j(`language`), t2 = j(`locale`);
865
- if (e5) return { [mn]: [e5, t2 || e5, gn, hn].join(`|`) };
1338
+ var Bi = `x-wix-linguist`;
1339
+ var Vi = `00000000-0000-0000-0000-000000000000`;
1340
+ var Hi = `false`;
1341
+ var Ui = () => {
1342
+ let e5 = V(`language`), t2 = V(`locale`);
1343
+ if (e5) return { [Bi]: [e5, t2 || e5, Hi, Vi].join(`|`) };
866
1344
  };
867
- function vn() {
1345
+ function Wi() {
868
1346
  let e5 = null, t2 = null;
869
1347
  return { promise: new Promise((n2, r2) => {
870
1348
  e5 = n2, t2 = r2;
871
1349
  }), resolve: e5, reject: t2 };
872
1350
  }
873
- var yn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
874
- var j = (e5) => yn()?.[e5];
875
- var bn = ({ createHost: e5 }) => ({ __type: `host`, create: (e6) => ({}), host: (t2) => {
876
- let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e5(t2), o2 = Sn();
877
- return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: j(`language`), locale: j(`locale`), get passThroughHeaders() {
878
- return _n();
1351
+ var Gi = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
1352
+ var V = (e5) => Gi()?.[e5];
1353
+ var Ki = ({ createHost: e5 }) => ({ __type: `host`, create: (e6) => ({}), host: (t2) => {
1354
+ let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e5(t2), o2 = Ji();
1355
+ return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: V(`language`), locale: V(`locale`), get passThroughHeaders() {
1356
+ return Ui();
879
1357
  } } };
880
1358
  }, auth: (e6) => {
881
1359
  let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
882
- !e6 && xn() && (e6 = t2?.getAccessTokenFunction?.());
883
- let n2 = false, { resolve: r2, promise: i2 } = vn();
1360
+ !e6 && qi() && (e6 = t2?.getAccessTokenFunction?.());
1361
+ let n2 = false, { resolve: r2, promise: i2 } = Wi();
884
1362
  return { getAuthHeaders: async () => {
885
1363
  if (!e6 && n2 && (e6 = await i2), !e6) throw Error(`Failed to resolve auth token`);
886
1364
  return { headers: { Authorization: await e6() } };
@@ -888,89 +1366,89 @@ var bn = ({ createHost: e5 }) => ({ __type: `host`, create: (e6) => ({}), host:
888
1366
  r2(e7);
889
1367
  }) };
890
1368
  } });
891
- function xn() {
1369
+ function qi() {
892
1370
  return typeof document < `u` && document.currentScript?.tagName === `SCRIPT`;
893
1371
  }
894
- function Sn() {
1372
+ function Ji() {
895
1373
  let e5 = (typeof window < `u` ? window.wixEmbedsAPI : void 0)?.getExternalBaseUrl?.();
896
1374
  if (!e5) return;
897
1375
  let t2 = new URL(e5);
898
1376
  return t2?.pathname && t2.pathname !== `/` ? `${t2.hostname}${t2.pathname}` : t2.hostname;
899
1377
  }
900
- var Cn = ({ clientSdk: e5, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
1378
+ var Yi = ({ clientSdk: e5, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
901
1379
  if (!e5) throw Error(`Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction`);
902
1380
  return e5.invoke({ namespace: n2, method: r2, args: i2, applicationId: t2, accessToken: `accessToken` });
903
1381
  }, getAccessToken: () => {
904
1382
  throw Error(`Not implemented`);
905
1383
  }, observeState: () => ({ disconnect: () => {
906
1384
  } }) });
907
- var wn = bn({ createHost: function(e5) {
1385
+ var Xi = Ki({ createHost: function(e5) {
908
1386
  let t2 = (typeof $wixContext < `u` ? $wixContext.clientSdk : void 0) ?? e5?.clientSdk ?? (typeof window < `u` ? window?.clientSdk : void 0), { applicationId: n2 } = e5 || {};
909
1387
  if (!n2) throw Error(`"createHost" was called without a required field "applicationId"`);
910
- return { channel: Cn({ clientSdk: t2, applicationId: n2 }), close: () => {
1388
+ return { channel: Yi({ clientSdk: t2, applicationId: n2 }), close: () => {
911
1389
  } };
912
1390
  } });
913
- var Tn = (e5, t2) => {
914
- let n2 = wn.host({ applicationId: e5, componentId: t2 }), r2 = wn.auth();
1391
+ var Zi = (e5, t2) => {
1392
+ let n2 = Xi.host({ applicationId: e5, componentId: t2 }), r2 = Xi.auth();
915
1393
  return Ue({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
916
1394
  };
917
- var En = (e5) => Tn(`13d21c63-b5ec-5912-8397-c3a5ddb27a97`, e5);
918
- function M(e5, t2) {
1395
+ var Qi = (e5) => Zi(`13d21c63-b5ec-5912-8397-c3a5ddb27a97`, e5);
1396
+ function H(e5, t2) {
919
1397
  for (let n2 of e5) {
920
1398
  let e6 = n2.addOns.find((e7) => e7.addOnId === t2);
921
1399
  if (e6) return { group: n2, addOn: e6 };
922
1400
  }
923
1401
  return null;
924
1402
  }
925
- function Dn(e5, t2) {
926
- return M(e5, t2)?.addOn ?? null;
1403
+ function $i(e5, t2) {
1404
+ return H(e5, t2)?.addOn ?? null;
927
1405
  }
928
- function N(e5, t2) {
929
- return t2.filter((t3) => M(e5, t3.id) !== null);
1406
+ function U(e5, t2) {
1407
+ return t2.filter((t3) => H(e5, t3.id) !== null);
930
1408
  }
931
- function On(e5, t2, n2) {
932
- return n2.filter((n3) => M(e5, n3.id)?.group === t2).length;
1409
+ function ea(e5, t2, n2) {
1410
+ return n2.filter((n3) => H(e5, n3.id)?.group === t2).length;
933
1411
  }
934
- function kn(e5, t2) {
1412
+ function ta(e5, t2) {
935
1413
  return !e5.maxNumberOfAddOns || t2 < e5.maxNumberOfAddOns;
936
1414
  }
937
- function An(e5, t2) {
1415
+ function na(e5, t2) {
938
1416
  return e5.map((n2) => {
939
- let r2 = On(e5, n2, t2);
1417
+ let r2 = ea(e5, n2, t2);
940
1418
  return { ...n2, addOns: n2.addOns.map((e6) => {
941
1419
  let n3 = t2.find((t3) => t3.id === e6.addOnId)?.quantity ?? 0;
942
1420
  return { ...e6, isSelected: n3 > 0, selectedQuantity: n3 };
943
- }), selectedCount: r2, canSelectMore: kn(n2, r2) };
1421
+ }), selectedCount: r2, canSelectMore: ta(n2, r2) };
944
1422
  });
945
1423
  }
946
- function jn(e5, t2, n2) {
947
- let r2 = M(e5, n2);
948
- return r2 ? t2.some((e6) => e6.id === n2) ? true : kn(r2.group, On(e5, r2.group, t2)) : false;
1424
+ function ra(e5, t2, n2) {
1425
+ let r2 = H(e5, n2);
1426
+ return r2 ? t2.some((e6) => e6.id === n2) ? true : ta(r2.group, ea(e5, r2.group, t2)) : false;
949
1427
  }
950
- function Mn(e5, t2) {
1428
+ function ia(e5, t2) {
951
1429
  let n2 = e5.maxQuantity ?? 1;
952
1430
  return Number.isFinite(t2) ? Math.min(Math.max(Math.trunc(t2), 0), n2) : 0;
953
1431
  }
954
- var Nn = { category: `category`, location: `location`, page: `page`, blob: `b`, resource: `resource`, referral: `referral`, timezone: `timezone`, bookingId: `bookingId`, token: `token`, rescheduleRedirectUrl: `rescheduleRedirectUrl` };
955
- function P(e5) {
1432
+ var aa = { category: `category`, location: `location`, page: `page`, blob: `b`, resource: `resource`, referral: `referral`, timezone: `timezone`, bookingId: `bookingId`, token: `token`, rescheduleRedirectUrl: `rescheduleRedirectUrl` };
1433
+ function W(e5) {
956
1434
  return e5.addOns ?? [];
957
1435
  }
958
- function Pn(e5, t2) {
1436
+ function oa(e5, t2) {
959
1437
  let n2 = { ...e5 };
960
1438
  return t2.length ? n2.addOns = t2 : delete n2.addOns, n2;
961
1439
  }
962
- function Fn(e5, t2) {
963
- let n2 = P(e5);
964
- return Pn(e5, n2.some((e6) => e6.id === t2) ? n2.filter((e6) => e6.id !== t2) : [...n2, { id: t2, quantity: 1 }]);
1440
+ function sa(e5, t2) {
1441
+ let n2 = W(e5);
1442
+ return oa(e5, n2.some((e6) => e6.id === t2) ? n2.filter((e6) => e6.id !== t2) : [...n2, { id: t2, quantity: 1 }]);
965
1443
  }
966
- function In(e5, t2, n2) {
967
- let r2 = P(e5);
968
- return n2 <= 0 ? Pn(e5, r2.filter((e6) => e6.id !== t2)) : Pn(e5, r2.some((e6) => e6.id === t2) ? r2.map((e6) => e6.id === t2 ? { ...e6, quantity: n2 } : e6) : [...r2, { id: t2, quantity: n2 }]);
1444
+ function ca(e5, t2, n2) {
1445
+ let r2 = W(e5);
1446
+ return n2 <= 0 ? oa(e5, r2.filter((e6) => e6.id !== t2)) : oa(e5, r2.some((e6) => e6.id === t2) ? r2.map((e6) => e6.id === t2 ? { ...e6, quantity: n2 } : e6) : [...r2, { id: t2, quantity: n2 }]);
969
1447
  }
970
- function Ln() {
1448
+ function la() {
971
1449
  let e5 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
972
1450
  if (e5) return { initWixModules(t3, n3) {
973
- return Rn(() => e5(t3, n3));
1451
+ return ua(() => e5(t3, n3));
974
1452
  }, fetchWithAuth() {
975
1453
  throw Error(`fetchWithAuth is not available in this context`);
976
1454
  }, graphql() {
@@ -980,10 +1458,10 @@ function Ln() {
980
1458
  if (t2 || n2) return { initWixModules(e6, r2) {
981
1459
  if (r2) {
982
1460
  if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
983
- return Rn(() => n2.use(e6));
1461
+ return ua(() => n2.use(e6));
984
1462
  }
985
1463
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
986
- return Rn(() => t2.use(e6));
1464
+ return ua(() => t2.use(e6));
987
1465
  }, fetchWithAuth: (e6, n3) => {
988
1466
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
989
1467
  return t2.fetchWithAuth(e6, n3);
@@ -995,7 +1473,7 @@ function Ln() {
995
1473
  return t2.graphql(e6, n3, r2);
996
1474
  } };
997
1475
  }
998
- function Rn(e5) {
1476
+ function ua(e5) {
999
1477
  let t2 = globalThis.__wix_context__, n2 = { client: p.client, elevatedClient: p.elevatedClient }, r2;
1000
1478
  globalThis.__wix_context__ = void 0, p.client = void 0, p.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
1001
1479
  try {
@@ -1004,71 +1482,71 @@ function Rn(e5) {
1004
1482
  globalThis.__wix_context__ = t2, p.client = n2.client, p.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
1005
1483
  }
1006
1484
  }
1007
- function zn(e5, t2) {
1485
+ function da(e5, t2) {
1008
1486
  return { ...e5, ...Object.fromEntries(t2.map((t3) => [t3, (...n2) => {
1009
- let r2 = Ln();
1487
+ let r2 = la();
1010
1488
  if (!r2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
1011
1489
  return r2.initWixModules(e5)[t3].apply(void 0, n2);
1012
1490
  }])) };
1013
1491
  }
1014
- function Bn(e5) {
1015
- return zn({ __type: `host`, create: (t2) => Object.entries(e5).reduce((e6, [n2, r2]) => ({ ...e6, [n2]: r2(t2) }), {}) }, Object.keys(e5));
1492
+ function fa(e5) {
1493
+ return da({ __type: `host`, create: (t2) => Object.entries(e5).reduce((e6, [n2, r2]) => ({ ...e6, [n2]: r2(t2) }), {}) }, Object.keys(e5));
1016
1494
  }
1017
- var F = (e5) => typeof e5 == `string`;
1018
- var I = () => {
1495
+ var G = (e5) => typeof e5 == `string`;
1496
+ var K = () => {
1019
1497
  let e5, t2, n2 = new Promise((n3, r2) => {
1020
1498
  e5 = n3, t2 = r2;
1021
1499
  });
1022
1500
  return n2.resolve = e5, n2.reject = t2, n2;
1023
1501
  };
1024
- var Vn = (e5) => e5 == null ? `` : `` + e5;
1025
- var Hn = (e5, t2, n2) => {
1502
+ var pa = (e5) => e5 == null ? `` : `` + e5;
1503
+ var ma = (e5, t2, n2) => {
1026
1504
  e5.forEach((e6) => {
1027
1505
  t2[e6] && (n2[e6] = t2[e6]);
1028
1506
  });
1029
1507
  };
1030
- var Un = /###/g;
1031
- var Wn = (e5) => e5 && e5.indexOf(`###`) > -1 ? e5.replace(Un, `.`) : e5;
1032
- var Gn = (e5) => !e5 || F(e5);
1033
- var L = (e5, t2, n2) => {
1034
- let r2 = F(t2) ? t2.split(`.`) : t2, i2 = 0;
1508
+ var ha = /###/g;
1509
+ var ga = (e5) => e5 && e5.indexOf(`###`) > -1 ? e5.replace(ha, `.`) : e5;
1510
+ var _a = (e5) => !e5 || G(e5);
1511
+ var q = (e5, t2, n2) => {
1512
+ let r2 = G(t2) ? t2.split(`.`) : t2, i2 = 0;
1035
1513
  for (; i2 < r2.length - 1; ) {
1036
- if (Gn(e5)) return {};
1037
- let t3 = Wn(r2[i2]);
1514
+ if (_a(e5)) return {};
1515
+ let t3 = ga(r2[i2]);
1038
1516
  !e5[t3] && n2 && (e5[t3] = new n2()), e5 = Object.prototype.hasOwnProperty.call(e5, t3) ? e5[t3] : {}, ++i2;
1039
1517
  }
1040
- return Gn(e5) ? {} : { obj: e5, k: Wn(r2[i2]) };
1518
+ return _a(e5) ? {} : { obj: e5, k: ga(r2[i2]) };
1041
1519
  };
1042
- var Kn = (e5, t2, n2) => {
1043
- let { obj: r2, k: i2 } = L(e5, t2, Object);
1520
+ var va = (e5, t2, n2) => {
1521
+ let { obj: r2, k: i2 } = q(e5, t2, Object);
1044
1522
  if (r2 !== void 0 || t2.length === 1) {
1045
1523
  r2[i2] = n2;
1046
1524
  return;
1047
1525
  }
1048
- let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = L(e5, o2, Object);
1049
- for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = L(e5, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1526
+ let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = q(e5, o2, Object);
1527
+ for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = q(e5, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1050
1528
  s2.obj[`${s2.k}.${a2}`] = n2;
1051
1529
  };
1052
- var qn = (e5, t2, n2, r2) => {
1053
- let { obj: i2, k: a2 } = L(e5, t2, Object);
1530
+ var ya = (e5, t2, n2, r2) => {
1531
+ let { obj: i2, k: a2 } = q(e5, t2, Object);
1054
1532
  i2[a2] = i2[a2] || [], i2[a2].push(n2);
1055
1533
  };
1056
- var R = (e5, t2) => {
1057
- let { obj: n2, k: r2 } = L(e5, t2);
1534
+ var ba = (e5, t2) => {
1535
+ let { obj: n2, k: r2 } = q(e5, t2);
1058
1536
  if (n2 && Object.prototype.hasOwnProperty.call(n2, r2)) return n2[r2];
1059
1537
  };
1060
- var Jn = (e5, t2, n2) => {
1061
- let r2 = R(e5, n2);
1062
- return r2 === void 0 ? R(t2, n2) : r2;
1538
+ var xa = (e5, t2, n2) => {
1539
+ let r2 = ba(e5, n2);
1540
+ return r2 === void 0 ? ba(t2, n2) : r2;
1063
1541
  };
1064
- var Yn = (e5, t2, n2) => {
1065
- for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (r2 in e5 ? F(e5[r2]) || e5[r2] instanceof String || F(t2[r2]) || t2[r2] instanceof String ? n2 && (e5[r2] = t2[r2]) : Yn(e5[r2], t2[r2], n2) : e5[r2] = t2[r2]);
1542
+ var Sa = (e5, t2, n2) => {
1543
+ for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (r2 in e5 ? G(e5[r2]) || e5[r2] instanceof String || G(t2[r2]) || t2[r2] instanceof String ? n2 && (e5[r2] = t2[r2]) : Sa(e5[r2], t2[r2], n2) : e5[r2] = t2[r2]);
1066
1544
  return e5;
1067
1545
  };
1068
- var z = (e5) => e5.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1069
- var Xn = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1070
- var Zn = (e5) => F(e5) ? e5.replace(/[&<>"'\/]/g, (e6) => Xn[e6]) : e5;
1071
- var Qn = class {
1546
+ var J = (e5) => e5.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1547
+ var Ca = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1548
+ var wa = (e5) => G(e5) ? e5.replace(/[&<>"'\/]/g, (e6) => Ca[e6]) : e5;
1549
+ var Ta = class {
1072
1550
  constructor(e5) {
1073
1551
  this.capacity = e5, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
1074
1552
  }
@@ -1079,20 +1557,20 @@ var Qn = class {
1079
1557
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e5, n2), this.regExpQueue.push(e5), n2;
1080
1558
  }
1081
1559
  };
1082
- var $n = [` `, `,`, `?`, `!`, `;`];
1083
- var er = new Qn(20);
1084
- var tr = (e5, t2, n2) => {
1560
+ var Ea = [` `, `,`, `?`, `!`, `;`];
1561
+ var Da = new Ta(20);
1562
+ var Oa = (e5, t2, n2) => {
1085
1563
  t2 ||= ``, n2 ||= ``;
1086
- let r2 = $n.filter((e6) => t2.indexOf(e6) < 0 && n2.indexOf(e6) < 0);
1564
+ let r2 = Ea.filter((e6) => t2.indexOf(e6) < 0 && n2.indexOf(e6) < 0);
1087
1565
  if (r2.length === 0) return true;
1088
- let i2 = er.getRegExp(`(${r2.map((e6) => e6 === `?` ? `\\?` : e6).join(`|`)})`), a2 = !i2.test(e5);
1566
+ let i2 = Da.getRegExp(`(${r2.map((e6) => e6 === `?` ? `\\?` : e6).join(`|`)})`), a2 = !i2.test(e5);
1089
1567
  if (!a2) {
1090
1568
  let t3 = e5.indexOf(n2);
1091
1569
  t3 > 0 && !i2.test(e5.substring(0, t3)) && (a2 = true);
1092
1570
  }
1093
1571
  return a2;
1094
1572
  };
1095
- var B = (e5, t2, n2 = `.`) => {
1573
+ var ka = (e5, t2, n2 = `.`) => {
1096
1574
  if (!e5) return;
1097
1575
  if (e5[t2]) return Object.prototype.hasOwnProperty.call(e5, t2) ? e5[t2] : void 0;
1098
1576
  let r2 = t2.split(n2), i2 = e5;
@@ -1108,8 +1586,8 @@ var B = (e5, t2, n2 = `.`) => {
1108
1586
  }
1109
1587
  return i2;
1110
1588
  };
1111
- var V = (e5) => e5?.replace(/_/g, `-`);
1112
- var nr = { type: `logger`, log(e5) {
1589
+ var Y = (e5) => e5?.replace(/_/g, `-`);
1590
+ var Aa = { type: `logger`, log(e5) {
1113
1591
  this.output(`log`, e5);
1114
1592
  }, warn(e5) {
1115
1593
  this.output(`warn`, e5);
@@ -1118,12 +1596,12 @@ var nr = { type: `logger`, log(e5) {
1118
1596
  }, output(e5, t2) {
1119
1597
  console?.[e5]?.apply?.(console, t2);
1120
1598
  } };
1121
- var H = new class e2 {
1599
+ var X = new class e2 {
1122
1600
  constructor(e5, t2 = {}) {
1123
1601
  this.init(e5, t2);
1124
1602
  }
1125
1603
  init(e5, t2 = {}) {
1126
- this.prefix = t2.prefix || `i18next:`, this.logger = e5 || nr, this.options = t2, this.debug = t2.debug;
1604
+ this.prefix = t2.prefix || `i18next:`, this.logger = e5 || Aa, this.options = t2, this.debug = t2.debug;
1127
1605
  }
1128
1606
  log(...e5) {
1129
1607
  return this.forward(e5, `log`, ``, true);
@@ -1138,7 +1616,7 @@ var H = new class e2 {
1138
1616
  return this.forward(e5, `warn`, `WARNING DEPRECATED: `, true);
1139
1617
  }
1140
1618
  forward(e5, t2, n2, r2) {
1141
- return r2 && !this.debug ? null : (F(e5[0]) && (e5[0] = `${n2}${this.prefix} ${e5[0]}`), this.logger[t2](e5));
1619
+ return r2 && !this.debug ? null : (G(e5[0]) && (e5[0] = `${n2}${this.prefix} ${e5[0]}`), this.logger[t2](e5));
1142
1620
  }
1143
1621
  create(t2) {
1144
1622
  return new e2(this.logger, { prefix: `${this.prefix}:${t2}:`, ...this.options });
@@ -1147,7 +1625,7 @@ var H = new class e2 {
1147
1625
  return t2 ||= this.options, t2.prefix = t2.prefix || this.prefix, new e2(this.logger, t2);
1148
1626
  }
1149
1627
  }();
1150
- var U = class {
1628
+ var ja = class {
1151
1629
  constructor() {
1152
1630
  this.observers = {};
1153
1631
  }
@@ -1175,7 +1653,7 @@ var U = class {
1175
1653
  });
1176
1654
  }
1177
1655
  };
1178
- var rr = class extends U {
1656
+ var Ma = class extends ja {
1179
1657
  constructor(e5, t2 = { ns: [`translation`], defaultNS: `translation` }) {
1180
1658
  super(), this.data = e5 || {}, this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = true);
1181
1659
  }
@@ -1188,23 +1666,23 @@ var rr = class extends U {
1188
1666
  }
1189
1667
  getResource(e5, t2, n2, r2 = {}) {
1190
1668
  let i2 = r2.keySeparator === void 0 ? this.options.keySeparator : r2.keySeparator, a2 = r2.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r2.ignoreJSONStructure, o2;
1191
- e5.indexOf(`.`) > -1 ? o2 = e5.split(`.`) : (o2 = [e5, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : F(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1192
- let s2 = R(this.data, o2);
1193
- return !s2 && !t2 && !n2 && e5.indexOf(`.`) > -1 && (e5 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !F(n2) ? s2 : B(this.data?.[e5]?.[t2], n2, i2);
1669
+ e5.indexOf(`.`) > -1 ? o2 = e5.split(`.`) : (o2 = [e5, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : G(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1670
+ let s2 = ba(this.data, o2);
1671
+ return !s2 && !t2 && !n2 && e5.indexOf(`.`) > -1 && (e5 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !G(n2) ? s2 : ka(this.data?.[e5]?.[t2], n2, i2);
1194
1672
  }
1195
1673
  addResource(e5, t2, n2, r2, i2 = { silent: false }) {
1196
1674
  let a2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, o2 = [e5, t2];
1197
- n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e5.indexOf(`.`) > -1 && (o2 = e5.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Kn(this.data, o2, r2), i2.silent || this.emit(`added`, e5, t2, n2, r2);
1675
+ n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e5.indexOf(`.`) > -1 && (o2 = e5.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), va(this.data, o2, r2), i2.silent || this.emit(`added`, e5, t2, n2, r2);
1198
1676
  }
1199
1677
  addResources(e5, t2, n2, r2 = { silent: false }) {
1200
- for (let r3 in n2) (F(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e5, t2, r3, n2[r3], { silent: true });
1678
+ for (let r3 in n2) (G(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e5, t2, r3, n2[r3], { silent: true });
1201
1679
  r2.silent || this.emit(`added`, e5, t2, n2);
1202
1680
  }
1203
1681
  addResourceBundle(e5, t2, n2, r2, i2, a2 = { silent: false, skipCopy: false }) {
1204
1682
  let o2 = [e5, t2];
1205
1683
  e5.indexOf(`.`) > -1 && (o2 = e5.split(`.`), r2 = n2, n2 = t2, t2 = o2[1]), this.addNamespaces(t2);
1206
- let s2 = R(this.data, o2) || {};
1207
- a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? Yn(s2, n2, i2) : s2 = { ...s2, ...n2 }, Kn(this.data, o2, s2), a2.silent || this.emit(`added`, e5, t2, n2);
1684
+ let s2 = ba(this.data, o2) || {};
1685
+ a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? Sa(s2, n2, i2) : s2 = { ...s2, ...n2 }, va(this.data, o2, s2), a2.silent || this.emit(`added`, e5, t2, n2);
1208
1686
  }
1209
1687
  removeResourceBundle(e5, t2) {
1210
1688
  this.hasResourceBundle(e5, t2) && delete this.data[e5][t2], this.removeNamespaces(t2), this.emit(`removed`, e5, t2);
@@ -1226,31 +1704,31 @@ var rr = class extends U {
1226
1704
  return this.data;
1227
1705
  }
1228
1706
  };
1229
- var ir = { processors: {}, addPostProcessor(e5) {
1707
+ var Na = { processors: {}, addPostProcessor(e5) {
1230
1708
  this.processors[e5.name] = e5;
1231
1709
  }, handle(e5, t2, n2, r2, i2) {
1232
1710
  return e5.forEach((e6) => {
1233
1711
  t2 = this.processors[e6]?.process(t2, n2, r2, i2) ?? t2;
1234
1712
  }), t2;
1235
1713
  } };
1236
- var ar = Symbol(`i18next/PATH_KEY`);
1237
- function or() {
1714
+ var Pa = Symbol(`i18next/PATH_KEY`);
1715
+ function Fa() {
1238
1716
  let e5 = [], t2 = /* @__PURE__ */ Object.create(null), n2;
1239
- return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === ar ? e5 : (e5.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1717
+ return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === Pa ? e5 : (e5.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1240
1718
  }
1241
- function W(e5, t2) {
1242
- let { [ar]: n2 } = e5(or()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`;
1719
+ function Z(e5, t2) {
1720
+ let { [Pa]: n2 } = e5(Fa()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`;
1243
1721
  if (n2.length > 1 && i2) {
1244
1722
  let e6 = t2?.ns, a2 = Array.isArray(e6) ? e6 : null;
1245
1723
  if (a2 && a2.length > 1 && a2.slice(1).includes(n2[0])) return `${n2[0]}${i2}${n2.slice(1).join(r2)}`;
1246
1724
  }
1247
1725
  return n2.join(r2);
1248
1726
  }
1249
- var sr = {};
1250
- var cr = (e5) => !F(e5) && typeof e5 != `boolean` && typeof e5 != `number`;
1251
- var lr = class e3 extends U {
1727
+ var Ia = {};
1728
+ var La = (e5) => !G(e5) && typeof e5 != `boolean` && typeof e5 != `number`;
1729
+ var Ra = class e3 extends ja {
1252
1730
  constructor(e5, t2 = {}) {
1253
- super(), Hn([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e5, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = H.create(`translator`);
1731
+ super(), ma([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e5, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = X.create(`translator`);
1254
1732
  }
1255
1733
  changeLanguage(e5) {
1256
1734
  e5 && (this.language = e5);
@@ -1260,33 +1738,33 @@ var lr = class e3 extends U {
1260
1738
  if (e5 == null) return false;
1261
1739
  let r2 = this.resolve(e5, n2);
1262
1740
  if (r2?.res === void 0) return false;
1263
- let i2 = cr(r2.res);
1741
+ let i2 = La(r2.res);
1264
1742
  return !(n2.returnObjects === false && i2);
1265
1743
  }
1266
1744
  extractFromKey(e5, t2) {
1267
1745
  let n2 = t2.nsSeparator === void 0 ? this.options.nsSeparator : t2.nsSeparator;
1268
1746
  n2 === void 0 && (n2 = `:`);
1269
- let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e5.indexOf(n2) > -1, o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !tr(e5, n2, r2);
1747
+ let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e5.indexOf(n2) > -1, o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !Oa(e5, n2, r2);
1270
1748
  if (a2 && !o2) {
1271
1749
  let t3 = e5.match(this.interpolator.nestingRegexp);
1272
- if (t3 && t3.length > 0) return { key: e5, namespaces: F(i2) ? [i2] : i2 };
1750
+ if (t3 && t3.length > 0) return { key: e5, namespaces: G(i2) ? [i2] : i2 };
1273
1751
  let a3 = e5.split(n2);
1274
1752
  (n2 !== r2 || n2 === r2 && this.options.ns.indexOf(a3[0]) > -1) && (i2 = a3.shift()), e5 = a3.join(r2);
1275
1753
  }
1276
- return { key: e5, namespaces: F(i2) ? [i2] : i2 };
1754
+ return { key: e5, namespaces: G(i2) ? [i2] : i2 };
1277
1755
  }
1278
1756
  translate(t2, n2, r2) {
1279
1757
  let i2 = typeof n2 == `object` ? { ...n2 } : n2;
1280
1758
  if (typeof i2 != `object` && this.options.overloadTranslationOptionHandler && (i2 = this.options.overloadTranslationOptionHandler(arguments)), typeof i2 == `object` && (i2 = { ...i2 }), i2 ||= {}, t2 == null) return ``;
1281
- typeof t2 == `function` && (t2 = W(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e5) => typeof e5 == `function` ? W(e5, { ...this.options, ...i2 }) : String(e5));
1759
+ typeof t2 == `function` && (t2 = Z(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e5) => typeof e5 == `function` ? Z(e5, { ...this.options, ...i2 }) : String(e5));
1282
1760
  let a2 = i2.returnDetails === void 0 ? this.options.returnDetails : i2.returnDetails, o2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, { key: s2, namespaces: c2 } = this.extractFromKey(t2[t2.length - 1], i2), l2 = c2[c2.length - 1], u2 = i2.nsSeparator === void 0 ? this.options.nsSeparator : i2.nsSeparator;
1283
1761
  u2 === void 0 && (u2 = `:`);
1284
1762
  let d2 = i2.lng || this.language, f2 = i2.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
1285
1763
  if (d2?.toLowerCase() === `cimode`) return f2 ? a2 ? { res: `${l2}${u2}${s2}`, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : `${l2}${u2}${s2}` : a2 ? { res: s2, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : s2;
1286
- let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !F(i2.count), x2 = e3.hasDefaultValue(i2), ee2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, te2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, ne2 = b2 && !i2.ordinal && i2.count === 0, S2 = ne2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${ee2}`] || i2[`defaultValue${te2}`] || i2.defaultValue, C2 = m2;
1764
+ let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !G(i2.count), x2 = e3.hasDefaultValue(i2), ee2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, te2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, ne2 = b2 && !i2.ordinal && i2.count === 0, S2 = ne2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${ee2}`] || i2[`defaultValue${te2}`] || i2.defaultValue, C2 = m2;
1287
1765
  y2 && !m2 && x2 && (C2 = S2);
1288
- let re2 = cr(C2), ie2 = Object.prototype.toString.apply(C2);
1289
- if (y2 && C2 && re2 && _2.indexOf(ie2) < 0 && !(F(v2) && Array.isArray(C2))) {
1766
+ let re2 = La(C2), ie2 = Object.prototype.toString.apply(C2);
1767
+ if (y2 && C2 && re2 && _2.indexOf(ie2) < 0 && !(G(v2) && Array.isArray(C2))) {
1290
1768
  if (!i2.returnObjects && !this.options.returnObjects) {
1291
1769
  this.options.returnedObjectHandler || this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);
1292
1770
  let e5 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h2, C2, { ...i2, ns: c2 }) : `key '${s2} (${this.language})' returned an object instead of string.`;
@@ -1296,11 +1774,11 @@ var lr = class e3 extends U {
1296
1774
  let e5 = Array.isArray(C2), t3 = e5 ? [] : {}, n3 = e5 ? g2 : h2;
1297
1775
  for (let e6 in C2) if (Object.prototype.hasOwnProperty.call(C2, e6)) {
1298
1776
  let r3 = `${n3}${o2}${e6}`;
1299
- t3[e6] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: cr(S2) ? S2[e6] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e6] === r3 && (t3[e6] = C2[e6]);
1777
+ t3[e6] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: La(S2) ? S2[e6] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e6] === r3 && (t3[e6] = C2[e6]);
1300
1778
  }
1301
1779
  m2 = t3;
1302
1780
  }
1303
- } else if (y2 && F(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1781
+ } else if (y2 && G(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1304
1782
  else {
1305
1783
  let e5 = false, n3 = false;
1306
1784
  !this.isValidLookup(m2) && x2 && (e5 = true, m2 = S2), this.isValidLookup(m2) || (n3 = true, m2 = s2);
@@ -1332,32 +1810,32 @@ var lr = class e3 extends U {
1332
1810
  if (this.i18nFormat?.parse) e5 = this.i18nFormat.parse(e5, { ...this.options.interpolation.defaultVariables, ...n2 }, n2.lng || this.language || r2.usedLng, r2.usedNS, r2.usedKey, { resolved: r2 });
1333
1811
  else if (!n2.skipInterpolation) {
1334
1812
  n2.interpolation && this.interpolator.init({ ...n2, interpolation: { ...this.options.interpolation, ...n2.interpolation } });
1335
- let a3 = F(e5) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1813
+ let a3 = G(e5) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1336
1814
  if (a3) {
1337
1815
  let t3 = e5.match(this.interpolator.nestingRegexp);
1338
1816
  o3 = t3 && t3.length;
1339
1817
  }
1340
- let s2 = n2.replace && !F(n2.replace) ? n2.replace : n2;
1818
+ let s2 = n2.replace && !G(n2.replace) ? n2.replace : n2;
1341
1819
  if (this.options.interpolation.defaultVariables && (s2 = { ...this.options.interpolation.defaultVariables, ...s2 }), e5 = this.interpolator.interpolate(e5, s2, n2.lng || this.language || r2.usedLng, n2), a3) {
1342
1820
  let t3 = e5.match(this.interpolator.nestingRegexp), r3 = t3 && t3.length;
1343
1821
  o3 < r3 && (n2.nest = false);
1344
1822
  }
1345
1823
  !n2.lng && r2 && r2.res && (n2.lng = this.language || r2.usedLng), n2.nest !== false && (e5 = this.interpolator.nest(e5, (...e6) => i2?.[0] === e6[0] && !n2.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e6[0]} in key: ${t2[0]}`), null) : this.translate(...e6, t2), n2)), n2.interpolation && this.interpolator.reset();
1346
1824
  }
1347
- let a2 = n2.postProcess || this.options.postProcess, o2 = F(a2) ? [a2] : a2;
1348
- return e5 != null && o2?.length && n2.applyPostProcessor !== false && (e5 = ir.handle(o2, e5, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e5;
1825
+ let a2 = n2.postProcess || this.options.postProcess, o2 = G(a2) ? [a2] : a2;
1826
+ return e5 != null && o2?.length && n2.applyPostProcessor !== false && (e5 = Na.handle(o2, e5, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e5;
1349
1827
  }
1350
1828
  resolve(e5, t2 = {}) {
1351
1829
  let n2, r2, i2, a2, o2;
1352
- return F(e5) && (e5 = [e5]), Array.isArray(e5) && (e5 = e5.map((e6) => typeof e6 == `function` ? W(e6, { ...this.options, ...t2 }) : e6)), e5.forEach((e6) => {
1830
+ return G(e5) && (e5 = [e5]), Array.isArray(e5) && (e5 = e5.map((e6) => typeof e6 == `function` ? Z(e6, { ...this.options, ...t2 }) : e6)), e5.forEach((e6) => {
1353
1831
  if (this.isValidLookup(n2)) return;
1354
1832
  let s2 = this.extractFromKey(e6, t2), c2 = s2.key;
1355
1833
  r2 = c2;
1356
1834
  let l2 = s2.namespaces;
1357
1835
  this.options.fallbackNS && (l2 = l2.concat(this.options.fallbackNS));
1358
- let u2 = t2.count !== void 0 && !F(t2.count), d2 = u2 && !t2.ordinal && t2.count === 0, f2 = t2.context !== void 0 && (F(t2.context) || typeof t2.context == `number`) && t2.context !== ``, p2 = t2.lngs ? t2.lngs : this.languageUtils.toResolveHierarchy(t2.lng || this.language, t2.fallbackLng);
1836
+ let u2 = t2.count !== void 0 && !G(t2.count), d2 = u2 && !t2.ordinal && t2.count === 0, f2 = t2.context !== void 0 && (G(t2.context) || typeof t2.context == `number`) && t2.context !== ``, p2 = t2.lngs ? t2.lngs : this.languageUtils.toResolveHierarchy(t2.lng || this.language, t2.fallbackLng);
1359
1837
  l2.forEach((e7) => {
1360
- this.isValidLookup(n2) || (o2 = e7, !sr[`${p2[0]}-${e7}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o2) && (sr[`${p2[0]}-${e7}`] = true, this.logger.warn(`key "${r2}" for languages "${p2.join(`, `)}" won't get resolved as namespace "${o2}" was not yet loaded`, `This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)), p2.forEach((r3) => {
1838
+ this.isValidLookup(n2) || (o2 = e7, !Ia[`${p2[0]}-${e7}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o2) && (Ia[`${p2[0]}-${e7}`] = true, this.logger.warn(`key "${r2}" for languages "${p2.join(`, `)}" won't get resolved as namespace "${o2}" was not yet loaded`, `This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)), p2.forEach((r3) => {
1361
1839
  if (this.isValidLookup(n2)) return;
1362
1840
  a2 = r3;
1363
1841
  let o3 = [c2];
@@ -1384,7 +1862,7 @@ var lr = class e3 extends U {
1384
1862
  return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e5, t2, n2, r2) : this.resourceStore.getResource(e5, t2, n2, r2);
1385
1863
  }
1386
1864
  getUsedParamsDetails(e5 = {}) {
1387
- let t2 = [`defaultValue`, `ordinal`, `context`, `replace`, `lng`, `lngs`, `fallbackLng`, `ns`, `keySeparator`, `nsSeparator`, `returnObjects`, `returnDetails`, `joinArrays`, `postProcess`, `interpolation`], n2 = e5.replace && !F(e5.replace), r2 = n2 ? e5.replace : e5;
1865
+ let t2 = [`defaultValue`, `ordinal`, `context`, `replace`, `lng`, `lngs`, `fallbackLng`, `ns`, `keySeparator`, `nsSeparator`, `returnObjects`, `returnDetails`, `joinArrays`, `postProcess`, `interpolation`], n2 = e5.replace && !G(e5.replace), r2 = n2 ? e5.replace : e5;
1388
1866
  if (n2 && e5.count !== void 0 && (r2.count = e5.count), this.options.interpolation.defaultVariables && (r2 = { ...this.options.interpolation.defaultVariables, ...r2 }), !n2) {
1389
1867
  r2 = { ...r2 };
1390
1868
  for (let e6 of t2) delete r2[e6];
@@ -1396,22 +1874,22 @@ var lr = class e3 extends U {
1396
1874
  return false;
1397
1875
  }
1398
1876
  };
1399
- var ur = class {
1877
+ var za = class {
1400
1878
  constructor(e5) {
1401
- this.options = e5, this.supportedLngs = this.options.supportedLngs || false, this.logger = H.create(`languageUtils`);
1879
+ this.options = e5, this.supportedLngs = this.options.supportedLngs || false, this.logger = X.create(`languageUtils`);
1402
1880
  }
1403
1881
  getScriptPartFromCode(e5) {
1404
- if (e5 = V(e5), !e5 || e5.indexOf(`-`) < 0) return null;
1882
+ if (e5 = Y(e5), !e5 || e5.indexOf(`-`) < 0) return null;
1405
1883
  let t2 = e5.split(`-`);
1406
1884
  return t2.length === 2 || (t2.pop(), t2[t2.length - 1].toLowerCase() === `x`) ? null : this.formatLanguageCode(t2.join(`-`));
1407
1885
  }
1408
1886
  getLanguagePartFromCode(e5) {
1409
- if (e5 = V(e5), !e5 || e5.indexOf(`-`) < 0) return e5;
1887
+ if (e5 = Y(e5), !e5 || e5.indexOf(`-`) < 0) return e5;
1410
1888
  let t2 = e5.split(`-`);
1411
1889
  return this.formatLanguageCode(t2[0]);
1412
1890
  }
1413
1891
  formatLanguageCode(e5) {
1414
- if (F(e5) && e5.indexOf(`-`) > -1) {
1892
+ if (G(e5) && e5.indexOf(`-`) > -1) {
1415
1893
  let t2;
1416
1894
  try {
1417
1895
  t2 = Intl.getCanonicalLocales(e5)[0];
@@ -1444,7 +1922,7 @@ var ur = class {
1444
1922
  }
1445
1923
  getFallbackCodes(e5, t2) {
1446
1924
  if (!e5) return [];
1447
- if (typeof e5 == `function` && (e5 = e5(t2)), F(e5) && (e5 = [e5]), Array.isArray(e5)) return e5;
1925
+ if (typeof e5 == `function` && (e5 = e5(t2)), G(e5) && (e5 = [e5]), Array.isArray(e5)) return e5;
1448
1926
  if (!t2) return e5.default || [];
1449
1927
  let n2 = e5[t2];
1450
1928
  return n2 ||= e5[this.getScriptPartFromCode(t2)], n2 ||= e5[this.formatLanguageCode(t2)], n2 ||= e5[this.getLanguagePartFromCode(t2)], n2 ||= e5.default, n2 || [];
@@ -1453,29 +1931,29 @@ var ur = class {
1453
1931
  let n2 = this.getFallbackCodes((t2 === false ? [] : t2) || this.options.fallbackLng || [], e5), r2 = [], i2 = (e6) => {
1454
1932
  e6 && (this.isSupportedCode(e6) ? r2.push(e6) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e6}`));
1455
1933
  };
1456
- return F(e5) && (e5.indexOf(`-`) > -1 || e5.indexOf(`_`) > -1) ? (this.options.load !== `languageOnly` && i2(this.formatLanguageCode(e5)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && i2(this.getScriptPartFromCode(e5)), this.options.load !== `currentOnly` && i2(this.getLanguagePartFromCode(e5))) : F(e5) && i2(this.formatLanguageCode(e5)), n2.forEach((e6) => {
1934
+ return G(e5) && (e5.indexOf(`-`) > -1 || e5.indexOf(`_`) > -1) ? (this.options.load !== `languageOnly` && i2(this.formatLanguageCode(e5)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && i2(this.getScriptPartFromCode(e5)), this.options.load !== `currentOnly` && i2(this.getLanguagePartFromCode(e5))) : G(e5) && i2(this.formatLanguageCode(e5)), n2.forEach((e6) => {
1457
1935
  r2.indexOf(e6) < 0 && i2(this.formatLanguageCode(e6));
1458
1936
  }), r2;
1459
1937
  }
1460
1938
  };
1461
- var dr = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1462
- var fr = { select: (e5) => e5 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1463
- var pr = class {
1939
+ var Ba = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1940
+ var Va = { select: (e5) => e5 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1941
+ var Ha = class {
1464
1942
  constructor(e5, t2 = {}) {
1465
- this.languageUtils = e5, this.options = t2, this.logger = H.create(`pluralResolver`), this.pluralRulesCache = {};
1943
+ this.languageUtils = e5, this.options = t2, this.logger = X.create(`pluralResolver`), this.pluralRulesCache = {};
1466
1944
  }
1467
1945
  clearCache() {
1468
1946
  this.pluralRulesCache = {};
1469
1947
  }
1470
1948
  getRule(e5, t2 = {}) {
1471
- let n2 = V(e5 === `dev` ? `en` : e5), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1949
+ let n2 = Y(e5 === `dev` ? `en` : e5), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1472
1950
  if (i2 in this.pluralRulesCache) return this.pluralRulesCache[i2];
1473
1951
  let a2;
1474
1952
  try {
1475
1953
  a2 = new Intl.PluralRules(n2, { type: r2 });
1476
1954
  } catch {
1477
- if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), fr;
1478
- if (!e5.match(/-|_/)) return fr;
1955
+ if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), Va;
1956
+ if (!e5.match(/-|_/)) return Va;
1479
1957
  let n3 = this.languageUtils.getLanguagePartFromCode(e5);
1480
1958
  a2 = this.getRule(n3, t2);
1481
1959
  }
@@ -1490,26 +1968,26 @@ var pr = class {
1490
1968
  }
1491
1969
  getSuffixes(e5, t2 = {}) {
1492
1970
  let n2 = this.getRule(e5, t2);
1493
- return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e6, t3) => dr[e6] - dr[t3]).map((e6) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e6}`) : [];
1971
+ return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e6, t3) => Ba[e6] - Ba[t3]).map((e6) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e6}`) : [];
1494
1972
  }
1495
1973
  getSuffix(e5, t2, n2 = {}) {
1496
1974
  let r2 = this.getRule(e5, n2);
1497
1975
  return r2 ? `${this.options.prepend}${n2.ordinal ? `ordinal${this.options.prepend}` : ``}${r2.select(t2)}` : (this.logger.warn(`no plural rule found for: ${e5}`), this.getSuffix(`dev`, t2, n2));
1498
1976
  }
1499
1977
  };
1500
- var mr = (e5, t2, n2, r2 = `.`, i2 = true) => {
1501
- let a2 = Jn(e5, t2, n2);
1502
- return !a2 && i2 && F(n2) && (a2 = B(e5, n2, r2), a2 === void 0 && (a2 = B(t2, n2, r2))), a2;
1978
+ var Ua = (e5, t2, n2, r2 = `.`, i2 = true) => {
1979
+ let a2 = xa(e5, t2, n2);
1980
+ return !a2 && i2 && G(n2) && (a2 = ka(e5, n2, r2), a2 === void 0 && (a2 = ka(t2, n2, r2))), a2;
1503
1981
  };
1504
- var hr = (e5) => e5.replace(/\$/g, `$$$$`);
1505
- var gr = class {
1982
+ var Wa = (e5) => e5.replace(/\$/g, `$$$$`);
1983
+ var Ga = class {
1506
1984
  constructor(e5 = {}) {
1507
- this.logger = H.create(`interpolator`), this.options = e5, this.format = e5?.interpolation?.format || ((e6) => e6), this.init(e5);
1985
+ this.logger = X.create(`interpolator`), this.options = e5, this.format = e5?.interpolation?.format || ((e6) => e6), this.init(e5);
1508
1986
  }
1509
1987
  init(e5 = {}) {
1510
1988
  e5.interpolation ||= { escapeValue: true };
1511
1989
  let { escape: t2, escapeValue: n2, useRawValueToEscape: r2, prefix: i2, prefixEscaped: a2, suffix: o2, suffixEscaped: s2, formatSeparator: c2, unescapeSuffix: l2, unescapePrefix: u2, nestingPrefix: d2, nestingPrefixEscaped: f2, nestingSuffix: p2, nestingSuffixEscaped: m2, nestingOptionsSeparator: h2, maxReplaces: g2, alwaysFormat: _2 } = e5.interpolation;
1512
- this.escape = t2 === void 0 ? Zn : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? z(i2) : a2 || `{{`, this.suffix = o2 ? z(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 || `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 || ``, this.nestingPrefix = d2 ? z(d2) : f2 || z(`$t(`), this.nestingSuffix = p2 ? z(p2) : m2 || z(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1990
+ this.escape = t2 === void 0 ? wa : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? J(i2) : a2 || `{{`, this.suffix = o2 ? J(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 || `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 || ``, this.nestingPrefix = d2 ? J(d2) : f2 || J(`$t(`), this.nestingSuffix = p2 ? J(p2) : m2 || J(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1513
1991
  }
1514
1992
  reset() {
1515
1993
  this.options && this.init(this.options);
@@ -1521,27 +1999,27 @@ var gr = class {
1521
1999
  interpolate(e5, t2, n2, r2) {
1522
2000
  let i2, a2, o2, s2 = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c2 = (e6) => {
1523
2001
  if (e6.indexOf(this.formatSeparator) < 0) {
1524
- let i4 = mr(t2, s2, e6, this.options.keySeparator, this.options.ignoreJSONStructure);
2002
+ let i4 = Ua(t2, s2, e6, this.options.keySeparator, this.options.ignoreJSONStructure);
1525
2003
  return this.alwaysFormat ? this.format(i4, void 0, n2, { ...r2, ...t2, interpolationkey: e6 }) : i4;
1526
2004
  }
1527
2005
  let i3 = e6.split(this.formatSeparator), a3 = i3.shift().trim(), o3 = i3.join(this.formatSeparator).trim();
1528
- return this.format(mr(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
2006
+ return this.format(Ua(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
1529
2007
  };
1530
2008
  this.resetRegExp();
1531
2009
  let l2 = r2?.missingInterpolationHandler || this.options.missingInterpolationHandler, u2 = r2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r2.interpolation.skipOnVariables;
1532
- return [{ regex: this.regexpUnescape, safeValue: (e6) => hr(e6) }, { regex: this.regexp, safeValue: (e6) => this.escapeValue ? hr(this.escape(e6)) : hr(e6) }].forEach((t3) => {
2010
+ return [{ regex: this.regexpUnescape, safeValue: (e6) => Wa(e6) }, { regex: this.regexp, safeValue: (e6) => this.escapeValue ? Wa(this.escape(e6)) : Wa(e6) }].forEach((t3) => {
1533
2011
  for (o2 = 0; i2 = t3.regex.exec(e5); ) {
1534
2012
  let n3 = i2[1].trim();
1535
2013
  if (a2 = c2(n3), a2 === void 0) {
1536
2014
  if (typeof l2 == `function`) {
1537
2015
  let t4 = l2(e5, i2, r2);
1538
- a2 = F(t4) ? t4 : ``;
2016
+ a2 = G(t4) ? t4 : ``;
1539
2017
  } else if (r2 && Object.prototype.hasOwnProperty.call(r2, n3)) a2 = ``;
1540
2018
  else if (u2) {
1541
2019
  a2 = i2[0];
1542
2020
  continue;
1543
2021
  } else this.logger.warn(`missed to pass in variable ${n3} for interpolating ${e5}`), a2 = ``;
1544
- } else !F(a2) && !this.useRawValueToEscape && (a2 = Vn(a2));
2022
+ } else !G(a2) && !this.useRawValueToEscape && (a2 = pa(a2));
1545
2023
  let s3 = t3.safeValue(a2);
1546
2024
  if (e5 = e5.replace(i2[0], s3), u2 ? (t3.regex.lastIndex += a2.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1547
2025
  }
@@ -1551,7 +2029,7 @@ var gr = class {
1551
2029
  let r2, i2, a2, o2 = (e6, t3) => {
1552
2030
  let n3 = this.nestingOptionsSeparator;
1553
2031
  if (e6.indexOf(n3) < 0) return e6;
1554
- let r3 = e6.split(RegExp(`${z(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
2032
+ let r3 = e6.split(RegExp(`${J(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1555
2033
  e6 = r3[0], i3 = this.interpolate(i3, a2);
1556
2034
  let o3 = i3.match(/'/g), s2 = i3.match(/"/g);
1557
2035
  ((o3?.length ?? 0) % 2 == 0 && !s2 || (s2?.length ?? 0) % 2 != 0) && (i3 = i3.replace(/'/g, `"`));
@@ -1564,15 +2042,15 @@ var gr = class {
1564
2042
  };
1565
2043
  for (; r2 = this.nestingRegexp.exec(e5); ) {
1566
2044
  let s2 = [];
1567
- a2 = { ...n2 }, a2 = a2.replace && !F(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
2045
+ a2 = { ...n2 }, a2 = a2.replace && !G(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1568
2046
  let c2 = /{.*}/.test(r2[1]) ? r2[1].lastIndexOf(`}`) + 1 : r2[1].indexOf(this.formatSeparator);
1569
- if (c2 !== -1 && (s2 = r2[1].slice(c2).split(this.formatSeparator).map((e6) => e6.trim()).filter(Boolean), r2[1] = r2[1].slice(0, c2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e5 && !F(i2)) return i2;
1570
- F(i2) || (i2 = Vn(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e5}`), ``), s2.length && (i2 = s2.reduce((e6, t3) => this.format(e6, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), e5 = e5.replace(r2[0], i2), this.regexp.lastIndex = 0;
2047
+ if (c2 !== -1 && (s2 = r2[1].slice(c2).split(this.formatSeparator).map((e6) => e6.trim()).filter(Boolean), r2[1] = r2[1].slice(0, c2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e5 && !G(i2)) return i2;
2048
+ G(i2) || (i2 = pa(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e5}`), ``), s2.length && (i2 = s2.reduce((e6, t3) => this.format(e6, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), e5 = e5.replace(r2[0], i2), this.regexp.lastIndex = 0;
1571
2049
  }
1572
2050
  return e5;
1573
2051
  }
1574
2052
  };
1575
- var _r = (e5) => {
2053
+ var Ka = (e5) => {
1576
2054
  let t2 = e5.toLowerCase().trim(), n2 = {};
1577
2055
  if (e5.indexOf(`(`) > -1) {
1578
2056
  let r2 = e5.split(`(`);
@@ -1587,23 +2065,23 @@ var _r = (e5) => {
1587
2065
  }
1588
2066
  return { formatName: t2, formatOptions: n2 };
1589
2067
  };
1590
- var vr = (e5) => {
2068
+ var qa = (e5) => {
1591
2069
  let t2 = {};
1592
2070
  return (n2, r2, i2) => {
1593
2071
  let a2 = i2;
1594
2072
  i2 && i2.interpolationkey && i2.formatParams && i2.formatParams[i2.interpolationkey] && i2[i2.interpolationkey] && (a2 = { ...a2, [i2.interpolationkey]: void 0 });
1595
2073
  let o2 = r2 + JSON.stringify(a2), s2 = t2[o2];
1596
- return s2 || (s2 = e5(V(r2), i2), t2[o2] = s2), s2(n2);
2074
+ return s2 || (s2 = e5(Y(r2), i2), t2[o2] = s2), s2(n2);
1597
2075
  };
1598
2076
  };
1599
- var yr = (e5) => (t2, n2, r2) => e5(V(n2), r2)(t2);
1600
- var br = class {
2077
+ var Ja = (e5) => (t2, n2, r2) => e5(Y(n2), r2)(t2);
2078
+ var Ya = class {
1601
2079
  constructor(e5 = {}) {
1602
- this.logger = H.create(`formatter`), this.options = e5, this.init(e5);
2080
+ this.logger = X.create(`formatter`), this.options = e5, this.init(e5);
1603
2081
  }
1604
2082
  init(e5, t2 = { interpolation: {} }) {
1605
2083
  this.formatSeparator = t2.interpolation.formatSeparator || `,`;
1606
- let n2 = t2.cacheInBuiltFormats ? vr : yr;
2084
+ let n2 = t2.cacheInBuiltFormats ? qa : Ja;
1607
2085
  this.formats = { number: n2((e6, t3) => {
1608
2086
  let n3 = new Intl.NumberFormat(e6, { ...t3 });
1609
2087
  return (e7) => n3.format(e7);
@@ -1625,7 +2103,7 @@ var br = class {
1625
2103
  this.formats[e5.toLowerCase().trim()] = t2;
1626
2104
  }
1627
2105
  addCached(e5, t2) {
1628
- this.formats[e5.toLowerCase().trim()] = vr(t2);
2106
+ this.formats[e5.toLowerCase().trim()] = qa(t2);
1629
2107
  }
1630
2108
  format(e5, t2, n2, r2 = {}) {
1631
2109
  let i2 = t2.split(this.formatSeparator);
@@ -1634,7 +2112,7 @@ var br = class {
1634
2112
  i2[0] = [i2[0], ...i2.splice(1, e6)].join(this.formatSeparator);
1635
2113
  }
1636
2114
  return i2.reduce((e6, t3) => {
1637
- let { formatName: i3, formatOptions: a2 } = _r(t3);
2115
+ let { formatName: i3, formatOptions: a2 } = Ka(t3);
1638
2116
  if (this.formats[i3]) {
1639
2117
  let t4 = e6;
1640
2118
  try {
@@ -1649,12 +2127,12 @@ var br = class {
1649
2127
  }, e5);
1650
2128
  }
1651
2129
  };
1652
- var xr = (e5, t2) => {
2130
+ var Xa = (e5, t2) => {
1653
2131
  e5.pending[t2] !== void 0 && (delete e5.pending[t2], e5.pendingCount--);
1654
2132
  };
1655
- var Sr = class extends U {
2133
+ var Za = class extends ja {
1656
2134
  constructor(e5, t2, n2, r2 = {}) {
1657
- super(), this.backend = e5, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = H.create(`backendConnector`), this.waitingReads = [], this.maxParallelReads = r2.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r2.maxRetries >= 0 ? r2.maxRetries : 5, this.retryTimeout = r2.retryTimeout >= 1 ? r2.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n2, r2.backend, r2);
2135
+ super(), this.backend = e5, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = X.create(`backendConnector`), this.waitingReads = [], this.maxParallelReads = r2.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r2.maxRetries >= 0 ? r2.maxRetries : 5, this.retryTimeout = r2.retryTimeout >= 1 ? r2.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n2, r2.backend, r2);
1658
2136
  }
1659
2137
  queueLoad(e5, t2, n2, r2) {
1660
2138
  let i2 = {}, a2 = {}, o2 = {}, s2 = {};
@@ -1671,7 +2149,7 @@ var Sr = class extends U {
1671
2149
  t2 && this.emit(`failedLoading`, i2, a2, t2), !t2 && n2 && this.store.addResourceBundle(i2, a2, n2, void 0, void 0, { skipCopy: true }), this.state[e5] = t2 ? -1 : 2, t2 && n2 && (this.state[e5] = 0);
1672
2150
  let o2 = {};
1673
2151
  this.queue.forEach((n3) => {
1674
- qn(n3.loaded, [i2], a2), xr(n3, e5), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e6) => {
2152
+ ya(n3.loaded, [i2], a2), Xa(n3, e5), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e6) => {
1675
2153
  o2[e6] || (o2[e6] = {});
1676
2154
  let t3 = n3.loaded[e6];
1677
2155
  t3.length && t3.forEach((t4) => {
@@ -1713,7 +2191,7 @@ var Sr = class extends U {
1713
2191
  }
1714
2192
  prepareLoading(e5, t2, n2 = {}, r2) {
1715
2193
  if (!this.backend) return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`), r2 && r2();
1716
- F(e5) && (e5 = this.languageUtils.toResolveHierarchy(e5)), F(t2) && (t2 = [t2]);
2194
+ G(e5) && (e5 = this.languageUtils.toResolveHierarchy(e5)), G(t2) && (t2 = [t2]);
1717
2195
  let i2 = this.queueLoad(e5, t2, n2, r2);
1718
2196
  if (!i2.toLoad.length) return i2.pending.length || r2(), null;
1719
2197
  i2.toLoad.forEach((e6) => {
@@ -1753,9 +2231,9 @@ var Sr = class extends U {
1753
2231
  }
1754
2232
  }
1755
2233
  };
1756
- var Cr = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, simplifyPluralSuffix: true, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: `fallback`, saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: false, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: (e5) => {
2234
+ var Qa = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, simplifyPluralSuffix: true, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: `fallback`, saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: false, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: (e5) => {
1757
2235
  let t2 = {};
1758
- if (typeof e5[1] == `object` && (t2 = e5[1]), F(e5[1]) && (t2.defaultValue = e5[1]), F(e5[2]) && (t2.tDescription = e5[2]), typeof e5[2] == `object` || typeof e5[3] == `object`) {
2236
+ if (typeof e5[1] == `object` && (t2 = e5[1]), G(e5[1]) && (t2.defaultValue = e5[1]), G(e5[2]) && (t2.tDescription = e5[2]), typeof e5[2] == `object` || typeof e5[3] == `object`) {
1759
2237
  let n2 = e5[3] || e5[2];
1760
2238
  Object.keys(n2).forEach((e6) => {
1761
2239
  t2[e6] = n2[e6];
@@ -1763,23 +2241,23 @@ var Cr = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS:
1763
2241
  }
1764
2242
  return t2;
1765
2243
  }, interpolation: { escapeValue: true, format: (e5) => e5, prefix: `{{`, suffix: `}}`, formatSeparator: `,`, unescapePrefix: `-`, nestingPrefix: `$t(`, nestingSuffix: `)`, nestingOptionsSeparator: `,`, maxReplaces: 1e3, skipOnVariables: true }, cacheInBuiltFormats: true });
1766
- var wr = (e5) => (F(e5.ns) && (e5.ns = [e5.ns]), F(e5.fallbackLng) && (e5.fallbackLng = [e5.fallbackLng]), F(e5.fallbackNS) && (e5.fallbackNS = [e5.fallbackNS]), e5.supportedLngs?.indexOf?.(`cimode`) < 0 && (e5.supportedLngs = e5.supportedLngs.concat([`cimode`])), typeof e5.initImmediate == `boolean` && (e5.initAsync = e5.initImmediate), e5);
1767
- var G = () => {
2244
+ var $a = (e5) => (G(e5.ns) && (e5.ns = [e5.ns]), G(e5.fallbackLng) && (e5.fallbackLng = [e5.fallbackLng]), G(e5.fallbackNS) && (e5.fallbackNS = [e5.fallbackNS]), e5.supportedLngs?.indexOf?.(`cimode`) < 0 && (e5.supportedLngs = e5.supportedLngs.concat([`cimode`])), typeof e5.initImmediate == `boolean` && (e5.initAsync = e5.initImmediate), e5);
2245
+ var eo = () => {
1768
2246
  };
1769
- var Tr = (e5) => {
2247
+ var to = (e5) => {
1770
2248
  Object.getOwnPropertyNames(Object.getPrototypeOf(e5)).forEach((t2) => {
1771
2249
  typeof e5[t2] == `function` && (e5[t2] = e5[t2].bind(e5));
1772
2250
  });
1773
2251
  };
1774
- var Er = `__i18next_supportNoticeShown`;
1775
- var Dr = () => !!(typeof globalThis < `u` && globalThis[Er] || typeof process < `u` && {}.I18NEXT_NO_SUPPORT_NOTICE || typeof process < `u`);
1776
- var Or = () => {
1777
- typeof globalThis < `u` && (globalThis[Er] = true);
2252
+ var no = `__i18next_supportNoticeShown`;
2253
+ var ro = () => !!(typeof globalThis < `u` && globalThis[no] || typeof process < `u` && {}.I18NEXT_NO_SUPPORT_NOTICE || typeof process < `u`);
2254
+ var io = () => {
2255
+ typeof globalThis < `u` && (globalThis[no] = true);
1778
2256
  };
1779
- var kr = (e5) => !!(e5?.modules?.backend?.name?.indexOf(`Locize`) > 0 || e5?.modules?.backend?.constructor?.name?.indexOf(`Locize`) > 0 || e5?.options?.backend?.backends && e5.options.backend.backends.some((e6) => e6?.name?.indexOf(`Locize`) > 0 || e6?.constructor?.name?.indexOf(`Locize`) > 0) || e5?.options?.backend?.projectId || e5?.options?.backend?.backendOptions && e5.options.backend.backendOptions.some((e6) => e6?.projectId));
1780
- var K = class e4 extends U {
2257
+ var ao = (e5) => !!(e5?.modules?.backend?.name?.indexOf(`Locize`) > 0 || e5?.modules?.backend?.constructor?.name?.indexOf(`Locize`) > 0 || e5?.options?.backend?.backends && e5.options.backend.backends.some((e6) => e6?.name?.indexOf(`Locize`) > 0 || e6?.constructor?.name?.indexOf(`Locize`) > 0) || e5?.options?.backend?.projectId || e5?.options?.backend?.backendOptions && e5.options.backend.backendOptions.some((e6) => e6?.projectId));
2258
+ var Q = class e4 extends ja {
1781
2259
  constructor(e5 = {}, t2) {
1782
- if (super(), this.options = wr(e5), this.services = {}, this.logger = H, this.modules = { external: [] }, Tr(this), t2 && !this.isInitialized && !e5.isClone) {
2260
+ if (super(), this.options = $a(e5), this.services = {}, this.logger = X, this.modules = { external: [] }, to(this), t2 && !this.isInitialized && !e5.isClone) {
1783
2261
  if (!this.options.initAsync) return this.init(e5, t2), this;
1784
2262
  setTimeout(() => {
1785
2263
  this.init(e5, t2);
@@ -1787,26 +2265,26 @@ var K = class e4 extends U {
1787
2265
  }
1788
2266
  }
1789
2267
  init(e5 = {}, t2) {
1790
- this.isInitializing = true, typeof e5 == `function` && (t2 = e5, e5 = {}), e5.defaultNS == null && e5.ns && (F(e5.ns) ? e5.defaultNS = e5.ns : e5.ns.indexOf(`translation`) < 0 && (e5.defaultNS = e5.ns[0]));
1791
- let n2 = Cr();
1792
- this.options = { ...n2, ...this.options, ...wr(e5) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e5.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e5.keySeparator), e5.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e5.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler), this.options.showSupportNotice !== false && !kr(this) && !Dr() && (typeof console < `u` && console.info !== void 0 && console.info(`\u{1F310} i18next is made possible by our own product, Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \u{1F499}`), Or());
2268
+ this.isInitializing = true, typeof e5 == `function` && (t2 = e5, e5 = {}), e5.defaultNS == null && e5.ns && (G(e5.ns) ? e5.defaultNS = e5.ns : e5.ns.indexOf(`translation`) < 0 && (e5.defaultNS = e5.ns[0]));
2269
+ let n2 = Qa();
2270
+ this.options = { ...n2, ...this.options, ...$a(e5) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e5.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e5.keySeparator), e5.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e5.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler), this.options.showSupportNotice !== false && !ao(this) && !ro() && (typeof console < `u` && console.info !== void 0 && console.info(`\u{1F310} i18next is made possible by our own product, Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \u{1F499}`), io());
1793
2271
  let r2 = (e6) => e6 ? typeof e6 == `function` ? new e6() : e6 : null;
1794
2272
  if (!this.options.isClone) {
1795
- this.modules.logger ? H.init(r2(this.modules.logger), this.options) : H.init(null, this.options);
2273
+ this.modules.logger ? X.init(r2(this.modules.logger), this.options) : X.init(null, this.options);
1796
2274
  let e6;
1797
- e6 = this.modules.formatter ? this.modules.formatter : br;
1798
- let t3 = new ur(this.options);
1799
- this.store = new rr(this.options.resources, this.options);
2275
+ e6 = this.modules.formatter ? this.modules.formatter : Ya;
2276
+ let t3 = new za(this.options);
2277
+ this.store = new Ma(this.options.resources, this.options);
1800
2278
  let i3 = this.services;
1801
- i3.logger = H, i3.resourceStore = this.store, i3.languageUtils = t3, i3.pluralResolver = new pr(t3, { prepend: this.options.pluralSeparator, simplifyPluralSuffix: this.options.simplifyPluralSuffix }), this.options.interpolation.format && this.options.interpolation.format !== n2.interpolation.format && this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`), e6 && (!this.options.interpolation.format || this.options.interpolation.format === n2.interpolation.format) && (i3.formatter = r2(e6), i3.formatter.init && i3.formatter.init(i3, this.options), this.options.interpolation.format = i3.formatter.format.bind(i3.formatter)), i3.interpolator = new gr(this.options), i3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i3.backendConnector = new Sr(r2(this.modules.backend), i3.resourceStore, i3, this.options), i3.backendConnector.on(`*`, (e7, ...t4) => {
2279
+ i3.logger = X, i3.resourceStore = this.store, i3.languageUtils = t3, i3.pluralResolver = new Ha(t3, { prepend: this.options.pluralSeparator, simplifyPluralSuffix: this.options.simplifyPluralSuffix }), this.options.interpolation.format && this.options.interpolation.format !== n2.interpolation.format && this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`), e6 && (!this.options.interpolation.format || this.options.interpolation.format === n2.interpolation.format) && (i3.formatter = r2(e6), i3.formatter.init && i3.formatter.init(i3, this.options), this.options.interpolation.format = i3.formatter.format.bind(i3.formatter)), i3.interpolator = new Ga(this.options), i3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i3.backendConnector = new Za(r2(this.modules.backend), i3.resourceStore, i3, this.options), i3.backendConnector.on(`*`, (e7, ...t4) => {
1802
2280
  this.emit(e7, ...t4);
1803
- }), this.modules.languageDetector && (i3.languageDetector = r2(this.modules.languageDetector), i3.languageDetector.init && i3.languageDetector.init(i3, this.options.detection, this.options)), this.modules.i18nFormat && (i3.i18nFormat = r2(this.modules.i18nFormat), i3.i18nFormat.init && i3.i18nFormat.init(this)), this.translator = new lr(this.services, this.options), this.translator.on(`*`, (e7, ...t4) => {
2281
+ }), this.modules.languageDetector && (i3.languageDetector = r2(this.modules.languageDetector), i3.languageDetector.init && i3.languageDetector.init(i3, this.options.detection, this.options)), this.modules.i18nFormat && (i3.i18nFormat = r2(this.modules.i18nFormat), i3.i18nFormat.init && i3.i18nFormat.init(this)), this.translator = new Ra(this.services, this.options), this.translator.on(`*`, (e7, ...t4) => {
1804
2282
  this.emit(e7, ...t4);
1805
2283
  }), this.modules.external.forEach((e7) => {
1806
2284
  e7.init && e7.init(this);
1807
2285
  });
1808
2286
  }
1809
- if (this.format = this.options.interpolation.format, t2 ||= G, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2287
+ if (this.format = this.options.interpolation.format, t2 ||= eo, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1810
2288
  let e6 = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1811
2289
  e6.length > 0 && e6[0] !== `dev` && (this.options.lng = e6[0]);
1812
2290
  }
@@ -1815,7 +2293,7 @@ var K = class e4 extends U {
1815
2293
  }), [`addResource`, `addResources`, `addResourceBundle`, `removeResourceBundle`].forEach((e6) => {
1816
2294
  this[e6] = (...t3) => (this.store[e6](...t3), this);
1817
2295
  });
1818
- let i2 = I(), a2 = () => {
2296
+ let i2 = K(), a2 = () => {
1819
2297
  let e6 = (e7, n3) => {
1820
2298
  this.isInitializing = false, this.isInitialized && !this.initializedStoreOnce && this.logger.warn(`init: i18next is already initialized. You should call init just once!`), this.isInitialized = true, this.options.isClone || this.logger.log(`initialized`, this.options), this.emit(`initialized`, this.options), i2.resolve(n3), t2(e7, n3);
1821
2299
  };
@@ -1824,8 +2302,8 @@ var K = class e4 extends U {
1824
2302
  };
1825
2303
  return this.options.resources || !this.options.initAsync ? a2() : setTimeout(a2, 0), i2;
1826
2304
  }
1827
- loadResources(e5, t2 = G) {
1828
- let n2 = t2, r2 = F(e5) ? e5 : this.language;
2305
+ loadResources(e5, t2 = eo) {
2306
+ let n2 = t2, r2 = G(e5) ? e5 : this.language;
1829
2307
  if (typeof e5 == `function` && (n2 = e5), !this.options.resources || this.options.partialBundledLanguages) {
1830
2308
  if (r2?.toLowerCase() === `cimode` && (!this.options.preload || this.options.preload.length === 0)) return n2();
1831
2309
  let e6 = [], t3 = (t4) => {
@@ -1839,15 +2317,15 @@ var K = class e4 extends U {
1839
2317
  } else n2(null);
1840
2318
  }
1841
2319
  reloadResources(e5, t2, n2) {
1842
- let r2 = I();
1843
- return typeof e5 == `function` && (n2 = e5, e5 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e5 ||= this.languages, t2 ||= this.options.ns, n2 ||= G, this.services.backendConnector.reload(e5, t2, (e6) => {
2320
+ let r2 = K();
2321
+ return typeof e5 == `function` && (n2 = e5, e5 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e5 ||= this.languages, t2 ||= this.options.ns, n2 ||= eo, this.services.backendConnector.reload(e5, t2, (e6) => {
1844
2322
  r2.resolve(), n2(e6);
1845
2323
  }), r2;
1846
2324
  }
1847
2325
  use(e5) {
1848
2326
  if (!e5) throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);
1849
2327
  if (!e5.type) throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);
1850
- return e5.type === `backend` && (this.modules.backend = e5), (e5.type === `logger` || e5.log && e5.warn && e5.error) && (this.modules.logger = e5), e5.type === `languageDetector` && (this.modules.languageDetector = e5), e5.type === `i18nFormat` && (this.modules.i18nFormat = e5), e5.type === `postProcessor` && ir.addPostProcessor(e5), e5.type === `formatter` && (this.modules.formatter = e5), e5.type === `3rdParty` && this.modules.external.push(e5), this;
2328
+ return e5.type === `backend` && (this.modules.backend = e5), (e5.type === `logger` || e5.log && e5.warn && e5.error) && (this.modules.logger = e5), e5.type === `languageDetector` && (this.modules.languageDetector = e5), e5.type === `i18nFormat` && (this.modules.i18nFormat = e5), e5.type === `postProcessor` && Na.addPostProcessor(e5), e5.type === `formatter` && (this.modules.formatter = e5), e5.type === `3rdParty` && this.modules.external.push(e5), this;
1851
2329
  }
1852
2330
  setResolvedLanguage(e5) {
1853
2331
  if (e5 && this.languages && !([`cimode`, `dev`].indexOf(e5) > -1)) {
@@ -1863,7 +2341,7 @@ var K = class e4 extends U {
1863
2341
  }
1864
2342
  changeLanguage(e5, t2) {
1865
2343
  this.isLanguageChangingTo = e5;
1866
- let n2 = I();
2344
+ let n2 = K();
1867
2345
  this.emit(`languageChanging`, e5);
1868
2346
  let r2 = (e6) => {
1869
2347
  this.language = e6, this.languages = this.services.languageUtils.toResolveHierarchy(e6), this.resolvedLanguage = void 0, this.setResolvedLanguage(e6);
@@ -1871,7 +2349,7 @@ var K = class e4 extends U {
1871
2349
  a3 ? this.isLanguageChangingTo === e5 && (r2(a3), this.translator.changeLanguage(a3), this.isLanguageChangingTo = void 0, this.emit(`languageChanged`, a3), this.logger.log(`languageChanged`, a3)) : this.isLanguageChangingTo = void 0, n2.resolve((...e6) => this.t(...e6)), t2 && t2(i3, (...e6) => this.t(...e6));
1872
2350
  }, a2 = (t3) => {
1873
2351
  !e5 && !t3 && this.services.languageDetector && (t3 = []);
1874
- let n3 = F(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(F(t3) ? [t3] : t3);
2352
+ let n3 = G(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(G(t3) ? [t3] : t3);
1875
2353
  a3 && (this.language || r2(a3), this.translator.language || this.translator.changeLanguage(a3), this.services.languageDetector?.cacheUserLanguage?.(a3)), this.loadResources(a3, (e6) => {
1876
2354
  i2(e6, a3);
1877
2355
  });
@@ -1883,11 +2361,11 @@ var K = class e4 extends U {
1883
2361
  let a2;
1884
2362
  a2 = typeof t3 == `object` ? { ...t3 } : this.options.overloadTranslationOptionHandler([e6, t3].concat(i2)), a2.lng = a2.lng || r2.lng, a2.lngs = a2.lngs || r2.lngs, a2.ns = a2.ns || r2.ns, a2.keyPrefix !== `` && (a2.keyPrefix = a2.keyPrefix || n2 || r2.keyPrefix);
1885
2363
  let o2 = { ...this.options, ...a2 };
1886
- typeof a2.keyPrefix == `function` && (a2.keyPrefix = W(a2.keyPrefix, o2));
2364
+ typeof a2.keyPrefix == `function` && (a2.keyPrefix = Z(a2.keyPrefix, o2));
1887
2365
  let s2 = this.options.keySeparator || `.`, c2;
1888
- return a2.keyPrefix && Array.isArray(e6) ? c2 = e6.map((e7) => (typeof e7 == `function` && (e7 = W(e7, o2)), `${a2.keyPrefix}${s2}${e7}`)) : (typeof e6 == `function` && (e6 = W(e6, o2)), c2 = a2.keyPrefix ? `${a2.keyPrefix}${s2}${e6}` : e6), this.t(c2, a2);
2366
+ return a2.keyPrefix && Array.isArray(e6) ? c2 = e6.map((e7) => (typeof e7 == `function` && (e7 = Z(e7, o2)), `${a2.keyPrefix}${s2}${e7}`)) : (typeof e6 == `function` && (e6 = Z(e6, o2)), c2 = a2.keyPrefix ? `${a2.keyPrefix}${s2}${e6}` : e6), this.t(c2, a2);
1889
2367
  };
1890
- return F(e5) ? r2.lng = e5 : r2.lngs = e5, r2.ns = t2, r2.keyPrefix = n2, r2;
2368
+ return G(e5) ? r2.lng = e5 : r2.lngs = e5, r2.ns = t2, r2.keyPrefix = n2, r2;
1891
2369
  }
1892
2370
  t(...e5) {
1893
2371
  return this.translator?.translate(...e5);
@@ -1914,16 +2392,16 @@ var K = class e4 extends U {
1914
2392
  return !!(this.hasResourceBundle(n2, e5) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a2(n2, e5) && (!r2 || a2(i2, e5)));
1915
2393
  }
1916
2394
  loadNamespaces(e5, t2) {
1917
- let n2 = I();
1918
- return this.options.ns ? (F(e5) && (e5 = [e5]), e5.forEach((e6) => {
2395
+ let n2 = K();
2396
+ return this.options.ns ? (G(e5) && (e5 = [e5]), e5.forEach((e6) => {
1919
2397
  this.options.ns.indexOf(e6) < 0 && this.options.ns.push(e6);
1920
2398
  }), this.loadResources((e6) => {
1921
2399
  n2.resolve(), t2 && t2(e6);
1922
2400
  }), n2) : (t2 && t2(), Promise.resolve());
1923
2401
  }
1924
2402
  loadLanguages(e5, t2) {
1925
- let n2 = I();
1926
- F(e5) && (e5 = [e5]);
2403
+ let n2 = K();
2404
+ G(e5) && (e5 = [e5]);
1927
2405
  let r2 = this.options.preload || [], i2 = e5.filter((e6) => r2.indexOf(e6) < 0 && this.services.languageUtils.isSupportedCode(e6));
1928
2406
  return i2.length ? (this.options.preload = r2.concat(i2), this.loadResources((e6) => {
1929
2407
  n2.resolve(), t2 && t2(e6);
@@ -1939,24 +2417,24 @@ var K = class e4 extends U {
1939
2417
  }
1940
2418
  } catch {
1941
2419
  }
1942
- let t2 = `ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`), n2 = this.services?.languageUtils || new ur(Cr());
2420
+ let t2 = `ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`), n2 = this.services?.languageUtils || new za(Qa());
1943
2421
  return e5.toLowerCase().indexOf(`-latn`) > 1 ? `ltr` : t2.indexOf(n2.getLanguagePartFromCode(e5)) > -1 || e5.toLowerCase().indexOf(`-arab`) > 1 ? `rtl` : `ltr`;
1944
2422
  }
1945
2423
  static createInstance(t2 = {}, n2) {
1946
2424
  let r2 = new e4(t2, n2);
1947
2425
  return r2.createInstance = e4.createInstance, r2;
1948
2426
  }
1949
- cloneInstance(t2 = {}, n2 = G) {
2427
+ cloneInstance(t2 = {}, n2 = eo) {
1950
2428
  let r2 = t2.forkResourceStore;
1951
2429
  r2 && delete t2.forkResourceStore;
1952
2430
  let i2 = { ...this.options, ...t2, isClone: true }, a2 = new e4(i2);
1953
2431
  if ((t2.debug !== void 0 || t2.prefix !== void 0) && (a2.logger = a2.logger.clone(t2)), [`store`, `services`, `language`].forEach((e5) => {
1954
2432
  a2[e5] = this[e5];
1955
- }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new rr(Object.keys(this.store.data).reduce((e5, t3) => (e5[t3] = { ...this.store.data[t3] }, e5[t3] = Object.keys(e5[t3]).reduce((n3, r3) => (n3[r3] = { ...e5[t3][r3] }, n3), e5[t3]), e5), {}), i2), a2.services.resourceStore = a2.store), t2.interpolation) {
1956
- let e5 = { ...Cr().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e5 };
1957
- a2.services.interpolator = new gr(n3);
2433
+ }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new Ma(Object.keys(this.store.data).reduce((e5, t3) => (e5[t3] = { ...this.store.data[t3] }, e5[t3] = Object.keys(e5[t3]).reduce((n3, r3) => (n3[r3] = { ...e5[t3][r3] }, n3), e5[t3]), e5), {}), i2), a2.services.resourceStore = a2.store), t2.interpolation) {
2434
+ let e5 = { ...Qa().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e5 };
2435
+ a2.services.interpolator = new Ga(n3);
1958
2436
  }
1959
- return a2.translator = new lr(a2.services, i2), a2.translator.on(`*`, (e5, ...t3) => {
2437
+ return a2.translator = new Ra(a2.services, i2), a2.translator.on(`*`, (e5, ...t3) => {
1960
2438
  a2.emit(e5, ...t3);
1961
2439
  }), a2.init(i2, n2), a2.translator.options = i2, a2.translator.backendConnector.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, a2;
1962
2440
  }
@@ -1964,54 +2442,54 @@ var K = class e4 extends U {
1964
2442
  return { options: this.options, store: this.store, language: this.language, languages: this.languages, resolvedLanguage: this.resolvedLanguage };
1965
2443
  }
1966
2444
  }.createInstance();
1967
- K.createInstance, K.dir, K.init, K.loadResources, K.reloadResources, K.use, K.changeLanguage, K.getFixedT, K.t, K.exists, K.setDefaultNamespace, K.hasLoadedNamespace, K.loadNamespaces, K.loadLanguages;
1968
- var Ar = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
1969
- var jr = { "&amp;": `&`, "&#38;": `&`, "&lt;": `<`, "&#60;": `<`, "&gt;": `>`, "&#62;": `>`, "&apos;": `'`, "&#39;": `'`, "&quot;": `"`, "&#34;": `"`, "&nbsp;": ` `, "&#160;": ` `, "&copy;": `\xA9`, "&#169;": `\xA9`, "&reg;": `\xAE`, "&#174;": `\xAE`, "&hellip;": `\u2026`, "&#8230;": `\u2026`, "&#x2F;": `/`, "&#47;": `/` };
1970
- var Mr = (e5) => jr[e5];
1971
- var Nr = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e5) => e5.replace(Ar, Mr), transDefaultProps: void 0 };
1972
- var Pr = (e5 = {}) => {
1973
- Nr = { ...Nr, ...e5 };
2445
+ Q.createInstance, Q.dir, Q.init, Q.loadResources, Q.reloadResources, Q.use, Q.changeLanguage, Q.getFixedT, Q.t, Q.exists, Q.setDefaultNamespace, Q.hasLoadedNamespace, Q.loadNamespaces, Q.loadLanguages;
2446
+ var oo = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
2447
+ var so = { "&amp;": `&`, "&#38;": `&`, "&lt;": `<`, "&#60;": `<`, "&gt;": `>`, "&#62;": `>`, "&apos;": `'`, "&#39;": `'`, "&quot;": `"`, "&#34;": `"`, "&nbsp;": ` `, "&#160;": ` `, "&copy;": `\xA9`, "&#169;": `\xA9`, "&reg;": `\xAE`, "&#174;": `\xAE`, "&hellip;": `\u2026`, "&#8230;": `\u2026`, "&#x2F;": `/`, "&#47;": `/` };
2448
+ var co = (e5) => so[e5];
2449
+ var lo = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e5) => e5.replace(oo, co), transDefaultProps: void 0 };
2450
+ var uo = (e5 = {}) => {
2451
+ lo = { ...lo, ...e5 };
1974
2452
  };
1975
- var Fr = { type: `3rdParty`, init(e5) {
1976
- Pr(e5.options.react);
2453
+ var fo = { type: `3rdParty`, init(e5) {
2454
+ uo(e5.options.react);
1977
2455
  } };
1978
- var q = /* @__PURE__ */ new Map();
1979
- var Ir = 500;
1980
- var J;
1981
- function Lr() {
1982
- if (J === void 0) try {
1983
- J = new Intl.NumberFormat(`en-US`, { useGrouping: false, maximumFractionDigits: 0 }).format(`9007199254740993`) === `9007199254740993`;
2456
+ var po = /* @__PURE__ */ new Map();
2457
+ var mo = 500;
2458
+ var $;
2459
+ function ho() {
2460
+ if ($ === void 0) try {
2461
+ $ = new Intl.NumberFormat(`en-US`, { useGrouping: false, maximumFractionDigits: 0 }).format(`9007199254740993`) === `9007199254740993`;
1984
2462
  } catch {
1985
- J = false;
2463
+ $ = false;
1986
2464
  }
1987
- return J;
2465
+ return $;
1988
2466
  }
1989
- var Rr = 15;
1990
- function zr(e5) {
1991
- if (!(typeof e5 != `string` || Lr()) && e5.replace(/[^0-9]/g, ``).replace(/^0+/, ``).length > Rr) throw Error(`Cannot format the amount '${e5}' exactly: this runtime's Intl implementation predates ES2023 string support and would lose precision. Use a runtime with ES2023 Intl support (for example Node 20+), or pass a value within 15 significant digits.`);
2467
+ var go = 15;
2468
+ function _o(e5) {
2469
+ if (!(typeof e5 != `string` || ho()) && e5.replace(/[^0-9]/g, ``).replace(/^0+/, ``).length > go) throw Error(`Cannot format the amount '${e5}' exactly: this runtime's Intl implementation predates ES2023 string support and would lose precision. Use a runtime with ES2023 Intl support (for example Node 20+), or pass a value within 15 significant digits.`);
1992
2470
  }
1993
- function Br(e5, t2, n2) {
2471
+ function vo(e5, t2, n2) {
1994
2472
  return `${e5}|${t2}|${Object.entries(n2).filter(([, e6]) => e6 !== void 0).sort(([e6], [t3]) => e6 < t3 ? -1 : 1).map(([e6, t3]) => `${e6}=${String(t3)}`).join(`&`)}`;
1995
2473
  }
1996
- function Vr(e5, t2, n2) {
1997
- let r2 = Br(e5, t2, n2), i2 = q.get(r2);
1998
- return i2 || (i2 = new Intl.NumberFormat(e5, { ...n2, style: `currency`, currency: t2 }), q.size >= Ir && q.clear(), q.set(r2, i2)), i2;
2474
+ function yo(e5, t2, n2) {
2475
+ let r2 = vo(e5, t2, n2), i2 = po.get(r2);
2476
+ return i2 || (i2 = new Intl.NumberFormat(e5, { ...n2, style: `currency`, currency: t2 }), po.size >= mo && po.clear(), po.set(r2, i2)), i2;
1999
2477
  }
2000
- function Hr(e5, { value: t2, currency: n2 }, r2 = {}) {
2001
- return zr(t2), Vr(e5, n2, r2).format(t2);
2478
+ function bo(e5, { value: t2, currency: n2 }, r2 = {}) {
2479
+ return _o(t2), yo(e5, n2, r2).format(t2);
2002
2480
  }
2003
- function Ur(e5, { value: t2, currency: n2 }, r2 = {}) {
2004
- return zr(t2), Vr(e5, n2, r2).formatToParts(t2);
2481
+ function xo(e5, { value: t2, currency: n2 }, r2 = {}) {
2482
+ return _o(t2), yo(e5, n2, r2).formatToParts(t2);
2005
2483
  }
2006
- function Wr(e5) {
2007
- return sn().find((e6) => e6.primary)?.id ?? e5;
2484
+ function So(e5) {
2485
+ return Ni().find((e6) => e6.primary)?.id ?? e5;
2008
2486
  }
2009
- function Gr(e5, t2) {
2487
+ function Co(e5, t2) {
2010
2488
  let { locale: n2, ...r2 } = t2 ?? {}, i2 = n2 ?? e5.essentials?.locale;
2011
2489
  if (!i2) throw Error(`Host locale is not available on the current host. Make sure to use an updated version of the host initialization package.`);
2012
2490
  return { locale: i2, formatOptions: r2 };
2013
2491
  }
2014
- var Kr = Bn({ getLanguage: (e5) => () => {
2492
+ var wo = fa({ getLanguage: (e5) => () => {
2015
2493
  let t2 = e5.essentials?.language;
2016
2494
  if (!t2) throw Error(`Host language is not available on the current host. Make sure to use an updated version of the host initialization package.`);
2017
2495
  return t2;
@@ -2020,20 +2498,20 @@ var Kr = Bn({ getLanguage: (e5) => () => {
2020
2498
  if (!t2) throw Error(`Host locale is not available on the current host. Make sure to use an updated version of the host initialization package.`);
2021
2499
  return t2;
2022
2500
  }, formatCurrency: (e5) => (t2, n2) => {
2023
- let { locale: r2, formatOptions: i2 } = Gr(e5, n2);
2024
- return Hr(r2, t2, i2);
2501
+ let { locale: r2, formatOptions: i2 } = Co(e5, n2);
2502
+ return bo(r2, t2, i2);
2025
2503
  }, formatCurrencyToParts: (e5) => (t2, n2) => {
2026
- let { locale: r2, formatOptions: i2 } = Gr(e5, n2);
2027
- return Ur(r2, t2, i2);
2504
+ let { locale: r2, formatOptions: i2 } = Co(e5, n2);
2505
+ return xo(r2, t2, i2);
2028
2506
  }, getTranslationFunction: (e5) => () => {
2029
2507
  let t2 = e5.translations?.();
2030
2508
  if (!t2) throw Error(`Host translation resources are not available.`);
2031
- let n2 = K.createInstance(), r2 = Wr(e5.essentials?.language) || `en`, i2 = { lng: e5.essentials?.language || r2, fallbackLng: r2, resources: t2 };
2032
- return n2.use(Fr).init(i2, (e6) => {
2509
+ let n2 = Q.createInstance(), r2 = So(e5.essentials?.language) || `en`, i2 = { lng: e5.essentials?.language || r2, fallbackLng: r2, resources: t2 };
2510
+ return n2.use(fo).init(i2, (e6) => {
2033
2511
  if (e6) throw e6;
2034
2512
  }), n2.t.bind(n2);
2035
2513
  } });
2036
- var qr = class {
2514
+ var To = class {
2037
2515
  constructor(e5) {
2038
2516
  this.message = e5, this.captureException = () => {
2039
2517
  console.error(this.message);
@@ -2048,42 +2526,42 @@ var qr = class {
2048
2526
  };
2049
2527
  }
2050
2528
  };
2051
- var Jr = (e5) => new qr(e5);
2052
- var Yr = Bn({ getMonitoringClient: (e5) => () => e5.getMonitoringClient ? e5.getMonitoringClient() : Jr(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
2053
- var Y = { service: `service`, services: `services`, categories: `categories`, locations: `locations`, sessions: `sessions`, timeSlots: `time-slots`, serviceAddOns: `service-addons`, bookingsSettings: `bookings-settings`, serviceCta: `service-cta`, preferences: `preferences`, bookingSummary: `booking-summary`, bookingCheckout: `booking-checkout`, formValues: `form-values`, paymentOptions: `payment-options`, seo: `seo`, warmup: `warmup`, reschedule: `reschedule` };
2054
- function Xr(e5) {
2529
+ var Eo = (e5) => new To(e5);
2530
+ var Do = fa({ getMonitoringClient: (e5) => () => e5.getMonitoringClient ? e5.getMonitoringClient() : Eo(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
2531
+ var Oo = { service: `service`, services: `services`, categories: `categories`, locations: `locations`, sessions: `sessions`, timeSlots: `time-slots`, serviceAddOns: `service-addons`, bookingsSettings: `bookings-settings`, serviceCta: `service-cta`, preferences: `preferences`, bookingSummary: `booking-summary`, bookingCheckout: `booking-checkout`, formValues: `form-values`, paymentOptions: `payment-options`, seo: `seo`, warmup: `warmup`, reschedule: `reschedule` };
2532
+ function ko(e5) {
2055
2533
  try {
2056
- let t2 = Yr.getMonitoringClient?.();
2534
+ let t2 = Do.getMonitoringClient?.();
2057
2535
  return t2 && typeof t2[e5] == `function` ? t2 : null;
2058
2536
  } catch {
2059
2537
  return null;
2060
2538
  }
2061
2539
  }
2062
- function Zr(e5, { feature: t2, action: n2, level: r2 = `error`, contexts: i2 }) {
2063
- let a2 = Xr(`captureException`);
2540
+ function Ao(e5, { feature: t2, action: n2, level: r2 = `error`, contexts: i2 }) {
2541
+ let a2 = ko(`captureException`);
2064
2542
  if (!a2) return;
2065
2543
  let o2 = e5 instanceof Error ? e5 : Error(String(e5));
2066
2544
  a2.captureException(o2, { level: r2, tags: { feature: t2, action: n2 }, ...i2 ? { contexts: i2 } : {} });
2067
2545
  }
2068
- function Qr(e5, { feature: t2, tags: n2 }, r2) {
2069
- let i2 = Xr(`startSpanManual`);
2546
+ function jo(e5, { feature: t2, tags: n2 }, r2) {
2547
+ let i2 = ko(`startSpanManual`);
2070
2548
  if (!i2) return r2;
2071
2549
  let a2 = i2.startSpanManual({ name: e5, tags: { feature: t2, ...n2 } });
2072
2550
  return r2.then(() => a2.end(), (e6) => a2.fail(e6)), r2;
2073
2551
  }
2074
- var $r = class extends e {
2552
+ var Mo = class extends e {
2075
2553
  state = { hasError: false };
2076
2554
  static getDerivedStateFromError() {
2077
2555
  return { hasError: true };
2078
2556
  }
2079
2557
  componentDidCatch(e5, t2) {
2080
- Zr(e5, { feature: this.props.feature ?? `service`, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
2558
+ Ao(e5, { feature: this.props.feature ?? `service`, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
2081
2559
  }
2082
2560
  render() {
2083
2561
  return this.state.hasError ? this.props.fallback : this.props.children;
2084
2562
  }
2085
2563
  };
2086
- function ei(e5) {
2564
+ function No(e5) {
2087
2565
  let t2 = e5;
2088
2566
  if (t2.__state || (t2.__state = { status: `pending` }, t2.then((e6) => {
2089
2567
  t2.__state = { status: `fulfilled`, value: e6 };
@@ -2092,49 +2570,49 @@ function ei(e5) {
2092
2570
  })), t2.__state.status === `fulfilled`) return t2.__state.value;
2093
2571
  throw t2.__state.status === `rejected` ? t2.__state.reason : t2;
2094
2572
  }
2095
- function X(e5) {
2573
+ function Po(e5) {
2096
2574
  let t2 = Promise.resolve(e5);
2097
2575
  return t2.__state = { status: `fulfilled`, value: e5 }, t2;
2098
2576
  }
2099
- var ti = /* @__PURE__ */ new WeakMap();
2100
- function ni(e5, t2, n2) {
2101
- let r2 = ti.get(e5);
2102
- r2 || (r2 = /* @__PURE__ */ new WeakMap(), ti.set(e5, r2));
2577
+ var Fo = /* @__PURE__ */ new WeakMap();
2578
+ function Io(e5, t2, n2) {
2579
+ let r2 = Fo.get(e5);
2580
+ r2 || (r2 = /* @__PURE__ */ new WeakMap(), Fo.set(e5, r2));
2103
2581
  let i2 = r2.get(t2);
2104
2582
  i2 || (i2 = /* @__PURE__ */ new WeakMap(), r2.set(t2, i2));
2105
2583
  let a2 = i2.get(n2);
2106
2584
  if (!a2) {
2107
2585
  let r3 = e5;
2108
- a2 = r3.__state?.status === `fulfilled` ? X(t2(r3.__state.value)) : r3.__state?.status === `rejected` ? X(n2(r3.__state.reason)) : e5.then(t2, n2), i2.set(n2, a2);
2586
+ a2 = r3.__state?.status === `fulfilled` ? Po(t2(r3.__state.value)) : r3.__state?.status === `rejected` ? Po(n2(r3.__state.reason)) : e5.then(t2, n2), i2.set(n2, a2);
2109
2587
  }
2110
2588
  return a2;
2111
2589
  }
2112
- function Z(e5) {
2590
+ function Lo(e5) {
2113
2591
  return e5;
2114
2592
  }
2115
- var ri = Z(`@wix/site-service-warmup-data`);
2116
- function ii() {
2593
+ var Ro = Lo(`@wix/site-service-warmup-data`);
2594
+ function zo() {
2117
2595
  try {
2118
2596
  return u();
2119
2597
  } catch {
2120
2598
  return null;
2121
2599
  }
2122
2600
  }
2123
- function ai(e5) {
2601
+ function Bo(e5) {
2124
2602
  try {
2125
- return e5 ? e5(ri) : null;
2603
+ return e5 ? e5(Ro) : null;
2126
2604
  } catch {
2127
2605
  return null;
2128
2606
  }
2129
2607
  }
2130
- function oi() {
2131
- let e5 = ai(ii()), t2 = typeof window > `u`;
2608
+ function Vo() {
2609
+ let e5 = Bo(zo()), t2 = typeof window > `u`;
2132
2610
  return { scope: e5 ?? void 0, get: async (n2) => {
2133
2611
  if (t2 || !e5) return null;
2134
2612
  try {
2135
2613
  return await e5.get(n2);
2136
2614
  } catch (e6) {
2137
- return Zr(e6, { feature: Y.warmup, action: `read`, level: `warning`, contexts: { warmup: { key: n2 } } }), null;
2615
+ return Ao(e6, { feature: Oo.warmup, action: `read`, level: `warning`, contexts: { warmup: { key: n2 } } }), null;
2138
2616
  }
2139
2617
  }, set: (n2, r2) => {
2140
2618
  if (t2 && e5) try {
@@ -2143,75 +2621,75 @@ function oi() {
2143
2621
  }
2144
2622
  } };
2145
2623
  }
2146
- var si = Z(`@wix/site-service-locale`);
2147
- var ci = Z;
2148
- var li = ci(`@wix/viewer-service-multilingual`);
2149
- function ui() {
2624
+ var Ho = Lo(`@wix/site-service-locale`);
2625
+ var Uo = Lo;
2626
+ var Wo = Uo(`@wix/viewer-service-multilingual`);
2627
+ function Go() {
2150
2628
  try {
2151
- return Kr.getLanguage() ?? `en`;
2629
+ return wo.getLanguage() ?? `en`;
2152
2630
  } catch {
2153
2631
  return `en`;
2154
2632
  }
2155
2633
  }
2156
- function di(e5) {
2634
+ function Ko(e5) {
2157
2635
  try {
2158
2636
  return d(e5);
2159
2637
  } catch {
2160
2638
  return null;
2161
2639
  }
2162
2640
  }
2163
- function fi() {
2164
- let e5 = di(si), t2 = di(li);
2165
- return t2?.multilingualEnabled && t2.currentLocale?.languageCode || e5?.language || ui();
2641
+ function qo() {
2642
+ let e5 = Ko(Ho), t2 = Ko(Wo);
2643
+ return t2?.multilingualEnabled && t2.currentLocale?.languageCode || e5?.language || Go();
2166
2644
  }
2167
- var pi = [];
2168
- var mi = [];
2169
- var hi = `useServiceAddOnsContext must be used within ServiceAddOnsContextProvider`;
2170
- function gi({ isLoading: e5, hasError: t2, children: n2 }) {
2171
- let r2 = { addOnGroups: pi, selected: mi, isLoading: e5, hasError: t2, toggleAddOn: () => {
2645
+ var Jo = [];
2646
+ var Yo = [];
2647
+ var Xo = `useServiceAddOnsContext must be used within ServiceAddOnsContextProvider`;
2648
+ function Zo({ isLoading: e5, hasError: t2, children: n2 }) {
2649
+ let r2 = { addOnGroups: Jo, selected: Yo, isLoading: e5, hasError: t2, toggleAddOn: () => {
2172
2650
  }, setAddOnQuantity: () => {
2173
2651
  } };
2174
- return f($.Provider, { value: r2, children: n2 });
2652
+ return f(Xs.Provider, { value: r2, children: n2 });
2175
2653
  }
2176
- function _i({ children: e5 }) {
2177
- return f(gi, { isLoading: true, hasError: false, children: e5 });
2654
+ function Qo({ children: e5 }) {
2655
+ return f(Zo, { isLoading: true, hasError: false, children: e5 });
2178
2656
  }
2179
- function vi({ children: e5 }) {
2180
- return f(gi, { isLoading: false, hasError: true, children: e5 });
2657
+ function $o({ children: e5 }) {
2658
+ return f(Zo, { isLoading: false, hasError: true, children: e5 });
2181
2659
  }
2182
- function yi(e5) {
2660
+ function es(e5) {
2183
2661
  if (!e5) return;
2184
2662
  let t2 = ``;
2185
2663
  return (e5.filename || e5.altText) && (t2 = `/${encodeURIComponent(e5.filename || e5.altText)}`), e5.id ? `wix:image://v1/${e5.id}${t2}#originWidth=${e5.width}&originHeight=${e5.height}` : e5.url;
2186
2664
  }
2187
- var bi = [{ path: `addOnGroupsDetails.addOns.mainMedia.image.urlExpirationDate` }];
2188
- function xi(e5) {
2189
- return jt(Object.assign(e5, { domainToMappings: { "*.dev.wix-code.com": [{ srcPath: `/_api/services-2`, destPath: `` }, { srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www.wixapis.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }, { srcPath: `/bookings/services/v2/bulk/services`, destPath: `/v2/bulk/services` }], "manage._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "editor._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "blocks._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "create.editorx": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], _: [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "bo._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wixbo.ai": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wix-bo.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "editor.wixapps.net": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "api._api_base_domain_": [{ srcPath: `/services-2`, destPath: `` }] } }));
2665
+ var ts = [{ path: `addOnGroupsDetails.addOns.mainMedia.image.urlExpirationDate` }];
2666
+ function ns(e5) {
2667
+ return ii(Object.assign(e5, { domainToMappings: { "*.dev.wix-code.com": [{ srcPath: `/_api/services-2`, destPath: `` }, { srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www.wixapis.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }, { srcPath: `/bookings/services/v2/bulk/services`, destPath: `/v2/bulk/services` }], "manage._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "editor._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "blocks._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "create.editorx": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], _: [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "bo._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wixbo.ai": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wix-bo.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "editor.wixapps.net": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "api._api_base_domain_": [{ srcPath: `/services-2`, destPath: `` }] } }));
2190
2668
  }
2191
- var Si = `@wix/auto_sdk_bookings_services`;
2192
- function Ci(e5) {
2669
+ var rs = `@wix/auto_sdk_bookings_services`;
2670
+ function is(e5) {
2193
2671
  function t2({ host: t3 }) {
2194
- return { entityFqdn: `wix.bookings.services.v2.service`, method: `POST`, methodFqn: `wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId`, packageName: Si, migrationOptions: { optInTransformResponse: true }, url: xi({ protoPath: `/v2/services/add-on-groups/list-add-on-groups-by-service-id`, data: e5, host: t3 }), data: e5, transformResponse: (e6) => ut(e6, [{ transformFn: $e, paths: bi }]) };
2672
+ return { entityFqdn: `wix.bookings.services.v2.service`, method: `POST`, methodFqn: `wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId`, packageName: rs, migrationOptions: { optInTransformResponse: true }, url: ns({ protoPath: `/v2/services/add-on-groups/list-add-on-groups-by-service-id`, data: e5, host: t3 }), data: e5, transformResponse: (e6) => Ir(e6, [{ transformFn: Cr, paths: ts }]) };
2195
2673
  }
2196
2674
  return t2;
2197
2675
  }
2198
- var wi = [{ path: `addOnGroupsDetails.addOns.mainMedia.image` }];
2199
- async function Ti(e5, t2) {
2200
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ci(Ze({ serviceId: e5, groupIds: t2?.groupIds }));
2676
+ var as = [{ path: `addOnGroupsDetails.addOns.mainMedia.image` }];
2677
+ async function os(e5, t2) {
2678
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = is(xr({ serviceId: e5, groupIds: t2?.groupIds }));
2201
2679
  r2?.onSiteCall?.();
2202
2680
  try {
2203
2681
  let e6 = await n2.request(i2);
2204
- return r2?.onSuccess?.(e6), Qe(ut(e6.data, [{ transformFn: yi, paths: wi }]));
2682
+ return r2?.onSuccess?.(e6), Sr(Ir(e6.data, [{ transformFn: es, paths: as }]));
2205
2683
  } catch (e6) {
2206
- let t3 = bt(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { serviceId: `$[0]`, groupIds: `$[1].groupIds` }, singleArgumentUnchanged: false }, [`serviceId`, `options`]);
2684
+ let t3 = Kr(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { serviceId: `$[0]`, groupIds: `$[1].groupIds` }, singleArgumentUnchanged: false }, [`serviceId`, `options`]);
2207
2685
  throw r2?.onError?.(e6), t3;
2208
2686
  }
2209
2687
  }
2210
- function Ei(e5) {
2211
- return (t2, n2) => Ti(t2, n2, { httpClient: e5 });
2688
+ function ss(e5) {
2689
+ return (t2, n2) => os(t2, n2, { httpClient: e5 });
2212
2690
  }
2213
- var Di = At(Ei);
2214
- function Oi(e5, t2) {
2691
+ var cs = ri(ss);
2692
+ function ls(e5, t2) {
2215
2693
  let n2 = e5?.value, r2 = e5?.currency;
2216
2694
  if (n2 == null || !r2) return null;
2217
2695
  let i2 = Number(n2);
@@ -2219,64 +2697,73 @@ function Oi(e5, t2) {
2219
2697
  let a2 = i2 % 1 == 0 ? 0 : 2;
2220
2698
  return new Intl.NumberFormat(t2, { style: `currency`, currency: r2, currencyDisplay: `symbol`, maximumFractionDigits: a2, minimumFractionDigits: a2 }).format(i2).replace(/\p{Zs}/gu, `\xA0`);
2221
2699
  }
2222
- async function ki(e5) {
2223
- return (await Di(e5)).addOnGroupsDetails ?? [];
2700
+ async function us(e5) {
2701
+ return (await cs(e5)).addOnGroupsDetails ?? [];
2224
2702
  }
2225
- function Ai(e5, t2) {
2703
+ function ds(e5) {
2704
+ if (!e5) return null;
2705
+ try {
2706
+ let { id: t2, url: n2, width: r2, height: i2 } = pr.getImageUrl(e5);
2707
+ return t2 && n2 ? { uri: t2, url: n2, width: r2, height: i2 } : null;
2708
+ } catch {
2709
+ return null;
2710
+ }
2711
+ }
2712
+ function fs(e5, t2) {
2226
2713
  let n2 = e5.price?.value == null ? null : Number(e5.price.value);
2227
- return { addOnId: e5.addOnId ?? null, addOnName: e5.nameTranslated ?? e5.name ?? null, addOnPrice: Oi(e5.price, t2), addOnPriceValue: n2 != null && Number.isFinite(n2) ? n2 : null, addOnCurrency: e5.price?.currency ?? null, durationInMinutes: e5.durationInMinutes ?? null, maxQuantity: e5.maxQuantity ?? null, isSelected: false, selectedQuantity: 0 };
2714
+ return { addOnId: e5.addOnId ?? null, addOnName: e5.nameTranslated ?? e5.name ?? null, addOnPrice: ls(e5.price, t2), addOnPriceValue: n2 != null && Number.isFinite(n2) ? n2 : null, addOnCurrency: e5.price?.currency ?? null, durationInMinutes: e5.durationInMinutes ?? null, maxQuantity: e5.maxQuantity ?? null, addOnImage: ds(e5.mainMedia?.image), isSelected: false, selectedQuantity: 0 };
2228
2715
  }
2229
- function ji(e5, t2) {
2230
- return e5.map((e6) => ({ groupId: e6.groupId ?? null, groupName: e6.groupNameTranslated ?? e6.groupName ?? null, prompt: e6.promptTranslated ?? e6.prompt ?? null, maxNumberOfAddOns: e6.maxNumberOfAddOns ?? null, addOns: (e6.addOns ?? []).map((e7) => Ai(e7, t2)), selectedCount: 0, canSelectMore: true }));
2716
+ function ps(e5, t2) {
2717
+ return e5.map((e6) => ({ groupId: e6.groupId ?? null, groupName: e6.groupNameTranslated ?? e6.groupName ?? null, prompt: e6.promptTranslated ?? e6.prompt ?? null, maxNumberOfAddOns: e6.maxNumberOfAddOns ?? null, addOns: (e6.addOns ?? []).map((e7) => fs(e7, t2)), selectedCount: 0, canSelectMore: true }));
2231
2718
  }
2232
- var Mi = `bookings-uou`;
2233
- function Ni(e5, t2, n2) {
2234
- return `${Mi}:${e5}:addons:${t2}:${n2}`;
2719
+ var ms = `bookings-uou`;
2720
+ function hs(e5, t2, n2) {
2721
+ return `${ms}:${e5}:addons:${t2}:${n2}`;
2235
2722
  }
2236
- var Pi = 5e3;
2237
- var Fi = 100;
2238
- var Ii = `wix-warmup-data`;
2239
- var Li = null;
2240
- function Ri(e5) {
2723
+ var gs = 5e3;
2724
+ var _s = 100;
2725
+ var vs = `wix-warmup-data`;
2726
+ var ys = null;
2727
+ function bs(e5) {
2241
2728
  if (typeof document < `u`) try {
2242
- let t2 = document.getElementById(Ii)?.textContent;
2243
- return t2 ? (Li?.text !== t2 && (Li = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), Li.data[e5] ?? void 0) : void 0;
2729
+ let t2 = document.getElementById(vs)?.textContent;
2730
+ return t2 ? (ys?.text !== t2 && (ys = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), ys.data[e5] ?? void 0) : void 0;
2244
2731
  } catch {
2245
2732
  return;
2246
2733
  }
2247
2734
  }
2248
- var zi = () => ({ promises: /* @__PURE__ */ new Map(), invalidatedWarmup: /* @__PURE__ */ new Set() });
2249
- var Bi = zi();
2250
- var Vi = /* @__PURE__ */ new WeakMap();
2251
- var Hi = /* @__PURE__ */ new WeakMap();
2252
- function Ui(e5) {
2253
- if (!e5) return Bi;
2254
- let t2 = Vi.get(e5);
2255
- return t2 || (t2 = zi(), Vi.set(e5, t2)), t2;
2735
+ var xs = () => ({ promises: /* @__PURE__ */ new Map(), invalidatedWarmup: /* @__PURE__ */ new Set() });
2736
+ var Ss = xs();
2737
+ var Cs = /* @__PURE__ */ new WeakMap();
2738
+ var ws = /* @__PURE__ */ new WeakMap();
2739
+ function Ts(e5) {
2740
+ if (!e5) return Ss;
2741
+ let t2 = Cs.get(e5);
2742
+ return t2 || (t2 = xs(), Cs.set(e5, t2)), t2;
2256
2743
  }
2257
- function Wi({ key: e5, warmupData: t2, fetchData: n2, refresh: r2 = false }) {
2744
+ function Es({ key: e5, warmupData: t2, fetchData: n2, refresh: r2 = false }) {
2258
2745
  if (e5 === null) return n2();
2259
2746
  if (typeof window > `u`) {
2260
2747
  let r3 = () => n2().then((n3) => (t2.set(e5, n3), n3)), { scope: i3 } = t2;
2261
2748
  if (!i3) return r3();
2262
- let a3 = Hi.get(i3);
2263
- a3 || (a3 = /* @__PURE__ */ new Map(), Hi.set(i3, a3));
2749
+ let a3 = ws.get(i3);
2750
+ a3 || (a3 = /* @__PURE__ */ new Map(), ws.set(i3, a3));
2264
2751
  let o3 = a3.get(e5);
2265
2752
  if (o3) return o3;
2266
2753
  let s3 = r3();
2267
2754
  return a3.set(e5, s3), s3.catch(() => a3.delete(e5)), s3;
2268
2755
  }
2269
- let i2 = Ui(t2.scope), a2 = Date.now();
2756
+ let i2 = Ts(t2.scope), a2 = Date.now();
2270
2757
  for (let [e6, t3] of i2.promises) t3.expiresAt <= a2 && i2.promises.delete(e6);
2271
2758
  let o2 = i2.promises.get(e5);
2272
2759
  if (o2 && !r2) return o2.promise;
2273
2760
  r2 && i2.invalidatedWarmup.add(e5);
2274
2761
  let s2 = !i2.invalidatedWarmup.has(e5);
2275
2762
  if (s2) {
2276
- let t3 = Ri(e5);
2763
+ let t3 = bs(e5);
2277
2764
  if (t3 !== void 0) {
2278
- let n3 = X(t3);
2279
- return i2.promises.set(e5, { promise: n3, expiresAt: a2 + Pi }), n3;
2765
+ let n3 = Po(t3);
2766
+ return i2.promises.set(e5, { promise: n3, expiresAt: a2 + gs }), n3;
2280
2767
  }
2281
2768
  }
2282
2769
  let c2 = (async () => {
@@ -2286,37 +2773,37 @@ function Wi({ key: e5, warmupData: t2, fetchData: n2, refresh: r2 = false }) {
2286
2773
  }
2287
2774
  return n2();
2288
2775
  })();
2289
- i2.promises.size >= Fi && i2.promises.delete(i2.promises.keys().next().value);
2776
+ i2.promises.size >= _s && i2.promises.delete(i2.promises.keys().next().value);
2290
2777
  let l2 = { promise: c2, expiresAt: 1 / 0 };
2291
2778
  return i2.promises.set(e5, l2), c2.then(() => {
2292
- l2.expiresAt = Date.now() + Pi;
2779
+ l2.expiresAt = Date.now() + gs;
2293
2780
  }, () => {
2294
2781
  i2.promises.get(e5) === l2 && i2.promises.delete(e5);
2295
2782
  }), c2;
2296
2783
  }
2297
- function Gi(e5, t2) {
2298
- return Qr(`service-addons-context-load`, { feature: Y.serviceAddOns, tags: { serviceId: e5 } }, ki(e5)).then((e6) => ji(e6, t2), (t3) => {
2299
- throw Zr(t3, { feature: Y.serviceAddOns, action: `fetch-add-on-groups`, level: `warning`, contexts: { service: { serviceId: e5 } } }), t3;
2784
+ function Ds(e5, t2) {
2785
+ return jo(`service-addons-context-load`, { feature: Oo.serviceAddOns, tags: { serviceId: e5 } }, us(e5)).then((e6) => ps(e6, t2), (t3) => {
2786
+ throw Ao(t3, { feature: Oo.serviceAddOns, action: `fetch-add-on-groups`, level: `warning`, contexts: { service: { serviceId: e5 } } }), t3;
2300
2787
  });
2301
2788
  }
2302
- function Ki({ serviceId: e5, locale: t2, language: n2, warmupData: r2 }) {
2303
- return Wi({ key: Ni(n2, e5, t2), warmupData: r2, fetchData: () => Gi(e5, t2) });
2789
+ function Os({ serviceId: e5, locale: t2, language: n2, warmupData: r2 }) {
2790
+ return Es({ key: hs(n2, e5, t2), warmupData: r2, fetchData: () => Ds(e5, t2) });
2304
2791
  }
2305
- var qi = ci(`@wix/site-service-business-logger`);
2306
- function Ji(e5) {
2792
+ var ks = Uo(`@wix/site-service-business-logger`);
2793
+ function As(e5) {
2307
2794
  return { evid: 32, src: 16, endpoint: ``, params: e5 };
2308
2795
  }
2309
- var Yi = Z(`@wix/site-service-url`);
2310
- var Xi = `appSectionParams`;
2311
- function Zi(e5) {
2312
- let t2 = e5.searchParams.get(Xi);
2796
+ var js = Lo(`@wix/site-service-url`);
2797
+ var Ms = `appSectionParams`;
2798
+ function Ns(e5) {
2799
+ let t2 = e5.searchParams.get(Ms);
2313
2800
  if (t2 === null) return e5;
2314
2801
  let n2 = new URL(e5);
2315
- n2.searchParams.delete(Xi);
2316
- for (let [e6, r2] of Object.entries(Qi(t2))) typeof r2 == `string` && !n2.searchParams.has(e6) && n2.searchParams.set(e6, r2);
2802
+ n2.searchParams.delete(Ms);
2803
+ for (let [e6, r2] of Object.entries(Ps(t2))) typeof r2 == `string` && !n2.searchParams.has(e6) && n2.searchParams.set(e6, r2);
2317
2804
  return n2;
2318
2805
  }
2319
- function Qi(e5) {
2806
+ function Ps(e5) {
2320
2807
  try {
2321
2808
  let t2 = JSON.parse(e5);
2322
2809
  return t2 && typeof t2 == `object` && !Array.isArray(t2) ? t2 : {};
@@ -2324,16 +2811,16 @@ function Qi(e5) {
2324
2811
  return {};
2325
2812
  }
2326
2813
  }
2327
- var Q = `bookings-uou:url-change`;
2328
- var $i = (e5) => {
2814
+ var Fs = `bookings-uou:url-change`;
2815
+ var Is = (e5) => {
2329
2816
  let t2 = new URL(e5);
2330
2817
  return t2.searchParams.sort(), t2.href;
2331
2818
  };
2332
- function ea(e5, { disableScrollToTop: t2, skipHistory: n2 } = {}) {
2819
+ function Ls(e5, { disableScrollToTop: t2, skipHistory: n2 } = {}) {
2333
2820
  let r2 = globalThis.window;
2334
2821
  if (!r2?.history) return;
2335
2822
  let i2 = new URL(r2.location.href);
2336
- if ($i(i2) === $i(e5)) return;
2823
+ if (Is(i2) === Is(e5)) return;
2337
2824
  let a2 = { scrollY: r2.scrollY };
2338
2825
  if (n2) r2.history.replaceState(a2, ``, e5.href);
2339
2826
  else {
@@ -2344,89 +2831,89 @@ function ea(e5, { disableScrollToTop: t2, skipHistory: n2 } = {}) {
2344
2831
  return;
2345
2832
  }
2346
2833
  }
2347
- r2.dispatchEvent(new Event(Q));
2834
+ r2.dispatchEvent(new Event(Fs));
2348
2835
  }
2349
- function ta(e5) {
2836
+ function Rs(e5) {
2350
2837
  let t2 = globalThis.window;
2351
- return t2 ? (t2.addEventListener(Q, e5), t2.addEventListener(`popstate`, e5), () => {
2352
- t2.removeEventListener(Q, e5), t2.removeEventListener(`popstate`, e5);
2838
+ return t2 ? (t2.addEventListener(Fs, e5), t2.addEventListener(`popstate`, e5), () => {
2839
+ t2.removeEventListener(Fs, e5), t2.removeEventListener(`popstate`, e5);
2353
2840
  }) : () => {
2354
2841
  };
2355
2842
  }
2356
- var na = (e5) => {
2843
+ var zs = (e5) => {
2357
2844
  try {
2358
2845
  return decodeURIComponent(e5);
2359
2846
  } catch {
2360
2847
  return e5;
2361
2848
  }
2362
2849
  };
2363
- function ra(e5, t2) {
2850
+ function Bs(e5, t2) {
2364
2851
  let n2 = t2 ? new URL(t2).pathname : `/`;
2365
- return `./${na(new URL(e5).pathname.replace(n2, ``).replace(/^\/|\/$/g, ``))}`;
2852
+ return `./${zs(new URL(e5).pathname.replace(n2, ``).replace(/^\/|\/$/g, ``))}`;
2366
2853
  }
2367
- function ia() {
2368
- let e5 = d(Yi), t2 = r(() => e5.currentUrl, [e5]), n2 = c(ta, t2, t2), i2 = o(() => Zi(new URL(n2)), [n2]), a2 = e5.siteUrl.replace(/\/$/, ``);
2369
- return { pathname: i2.pathname, search: i2.search, searchParams: i2.searchParams, href: i2.href, getParsedUrl: () => Zi(new URL(e5.currentUrl)), getRelativeUrl: () => ra(e5.currentUrl, a2), getExternalBaseUrl: () => a2, pushUrl: ea };
2854
+ function Vs() {
2855
+ let e5 = d(js), t2 = r(() => e5.currentUrl, [e5]), n2 = c(Rs, t2, t2), i2 = o(() => Ns(new URL(n2)), [n2]), a2 = e5.siteUrl.replace(/\/$/, ``);
2856
+ return { pathname: i2.pathname, search: i2.search, searchParams: i2.searchParams, href: i2.href, getParsedUrl: () => Ns(new URL(e5.currentUrl)), getRelativeUrl: () => Bs(e5.currentUrl, a2), getExternalBaseUrl: () => a2, pushUrl: Ls };
2370
2857
  }
2371
- var aa = function(e5) {
2858
+ var Hs = function(e5) {
2372
2859
  return e5.BOOK_ONLINE = `bookingsBookOnline`, e5.SERVICE_PAGE = `bookingsServicePage`, e5.CALENDAR_PAGE = `bookingsCalendar`, e5.FORM_PAGE = `bookingsForm`, e5;
2373
2860
  }({});
2374
- var oa = { SERVICES: `services_context`, SERVICE: `service_context`, TIME_SLOTS: `time_slots_context`, BOOKING_CHECKOUT: `booking_checkout_context`, CATEGORIES: `categories_context`, LOCATIONS: `locations_context`, SERVICE_ADD_ONS: `service_addons_context`, PREFERENCES: `preferences_context` };
2375
- aa.BOOK_ONLINE;
2376
- var sa = `new_bookings_server`;
2377
- var ca = (e5) => {
2378
- let { reportBi: t2 } = d(qi);
2861
+ var Us = { SERVICES: `services_context`, SERVICE: `service_context`, TIME_SLOTS: `time_slots_context`, BOOKING_CHECKOUT: `booking_checkout_context`, CATEGORIES: `categories_context`, LOCATIONS: `locations_context`, SERVICE_ADD_ONS: `service_addons_context`, PREFERENCES: `preferences_context` };
2862
+ Hs.BOOK_ONLINE;
2863
+ var Ws = `new_bookings_server`;
2864
+ var Gs = (e5) => {
2865
+ let { reportBi: t2 } = d(ks);
2379
2866
  return r((n2) => {
2380
- t2({ widget_name: e5, bookingsPlatform: sa, is_over_editor: false, ...n2.params, src: n2.src, evid: n2.evid }, { endpoint: n2.endpoint });
2867
+ t2({ widget_name: e5, bookingsPlatform: Ws, is_over_editor: false, ...n2.params, src: n2.src, evid: n2.evid }, { endpoint: n2.endpoint });
2381
2868
  }, [t2, e5]);
2382
2869
  };
2383
- var la = (e5, t2 = true) => {
2384
- let n2 = ca(e5), { getParsedUrl: r2 } = ia(), i2 = s(false);
2870
+ var Ks = (e5, t2 = true) => {
2871
+ let n2 = Gs(e5), { getParsedUrl: r2 } = Vs(), i2 = s(false);
2385
2872
  a(() => {
2386
- t2 && !i2.current && (i2.current = true, n2(Ji({ referralInfo: r2().searchParams.get(Nn.referral) ?? void 0 })));
2873
+ t2 && !i2.current && (i2.current = true, n2(As({ referralInfo: r2().searchParams.get(aa.referral) ?? void 0 })));
2387
2874
  }, [t2, n2, r2]);
2388
2875
  };
2389
- var ua = X({ addOnGroups: pi, hasError: false });
2390
- var da = (e5) => ({ addOnGroups: e5, hasError: false });
2391
- var fa = () => ({ addOnGroups: pi, hasError: true });
2392
- var $ = n(null);
2393
- function pa() {
2394
- let e5 = i($);
2395
- if (!e5) throw Error(hi);
2876
+ var qs = Po({ addOnGroups: Jo, hasError: false });
2877
+ var Js = (e5) => ({ addOnGroups: e5, hasError: false });
2878
+ var Ys = () => ({ addOnGroups: Jo, hasError: true });
2879
+ var Xs = n(null);
2880
+ function Zs() {
2881
+ let e5 = i(Xs);
2882
+ if (!e5) throw Error(Xo);
2396
2883
  return e5;
2397
2884
  }
2398
- function ma({ addOnsPromise: e5, isLoading: t2, pickedAddOns: n2, forwardToggleAddOn: i2, forwardSetAddOnQuantity: a2, children: c2 }) {
2399
- let { addOnGroups: l2, hasError: u2 } = ei(e5), d2 = o(() => N(l2, n2), [l2, n2]), p2 = o(() => An(l2, d2), [l2, d2]), m2 = s({ source: n2, picks: n2 });
2885
+ function Qs({ addOnsPromise: e5, isLoading: t2, pickedAddOns: n2, forwardToggleAddOn: i2, forwardSetAddOnQuantity: a2, children: c2 }) {
2886
+ let { addOnGroups: l2, hasError: u2 } = No(e5), d2 = o(() => U(l2, n2), [l2, n2]), p2 = o(() => na(l2, d2), [l2, d2]), m2 = s({ source: n2, picks: n2 });
2400
2887
  m2.current.source !== n2 && (m2.current = { source: n2, picks: n2 });
2401
2888
  let h2 = (e6) => {
2402
2889
  let t3 = m2.current;
2403
- t3.picks = P(e6({ serviceId: ``, addOns: t3.picks }));
2890
+ t3.picks = W(e6({ serviceId: ``, addOns: t3.picks }));
2404
2891
  }, g2 = r(() => {
2405
- let e6 = m2.current, t3 = N(l2, e6.picks);
2892
+ let e6 = m2.current, t3 = U(l2, e6.picks);
2406
2893
  return e6.picks.filter((e7) => !t3.includes(e7)).forEach((e7) => a2(e7.id, 0)), e6.picks = t3, t3;
2407
2894
  }, [l2, a2]), _2 = r((e6) => {
2408
- let n3 = N(l2, m2.current.picks);
2409
- !t2 && jn(l2, n3, e6) && (g2(), i2(e6), h2((t3) => Fn(t3, e6)));
2895
+ let n3 = U(l2, m2.current.picks);
2896
+ !t2 && ra(l2, n3, e6) && (g2(), i2(e6), h2((t3) => sa(t3, e6)));
2410
2897
  }, [t2, l2, g2, i2]), v2 = r((e6, n3) => {
2411
- let r2 = t2 ? null : Dn(l2, e6);
2898
+ let r2 = t2 ? null : $i(l2, e6);
2412
2899
  if (!r2) return;
2413
- let i3 = N(l2, m2.current.picks), o2 = i3.find((t3) => t3.id === e6)?.quantity ?? 0, s2 = Mn(r2, n3);
2414
- s2 === o2 || o2 === 0 && !jn(l2, i3, e6) || (g2(), a2(e6, s2), h2((t3) => In(t3, e6, s2)));
2900
+ let i3 = U(l2, m2.current.picks), o2 = i3.find((t3) => t3.id === e6)?.quantity ?? 0, s2 = ia(r2, n3);
2901
+ s2 === o2 || o2 === 0 && !ra(l2, i3, e6) || (g2(), a2(e6, s2), h2((t3) => ca(t3, e6, s2)));
2415
2902
  }, [t2, l2, g2, a2]), y2 = o(() => ({ addOnGroups: p2, selected: d2, isLoading: t2, hasError: u2, toggleAddOn: _2, setAddOnQuantity: v2 }), [p2, d2, t2, u2, _2, v2]);
2416
- return f($.Provider, { value: y2, children: c2 });
2903
+ return f(Xs.Provider, { value: y2, children: c2 });
2417
2904
  }
2418
- function ha({ children: e5 }) {
2905
+ function $s({ children: e5 }) {
2419
2906
  let { service: n2, serviceId: r2, hasAddOns: i2, locale: a2, isLoading: s2, bookingsSettingsLoading: c2, selection: u2, toggleAddOn: d2, setAddOnQuantity: p2 } = l();
2420
- la(oa.SERVICE_ADD_ONS, !s2 && !c2);
2421
- let m2 = o(() => P(u2), [u2]), h2 = oi(), g2 = fi(), _2 = n2 && i2 && r2 ? r2 : null, v2 = o(() => _2 ? ni(Ki({ serviceId: _2, locale: a2, language: g2, warmupData: h2 }), da, fa) : ua, [_2, a2, g2]), y2 = !_2 && !!s2;
2422
- return f($r, { fallback: f(vi, { children: e5 }), feature: Y.serviceAddOns, children: f(t, { fallback: f(_i, { children: e5 }), children: f(ma, { addOnsPromise: v2, isLoading: y2, pickedAddOns: m2, forwardToggleAddOn: d2, forwardSetAddOnQuantity: p2, children: e5 }) }) });
2907
+ Ks(Us.SERVICE_ADD_ONS, !s2 && !c2);
2908
+ let m2 = o(() => W(u2), [u2]), h2 = Vo(), g2 = qo(), _2 = n2 && i2 && r2 ? r2 : null, v2 = o(() => _2 ? Io(Os({ serviceId: _2, locale: a2, language: g2, warmupData: h2 }), Js, Ys) : qs, [_2, a2, g2]), y2 = !_2 && !!s2;
2909
+ return f(Mo, { fallback: f($o, { children: e5 }), feature: Oo.serviceAddOns, children: f(t, { fallback: f(Qo, { children: e5 }), children: f(Qs, { addOnsPromise: v2, isLoading: y2, pickedAddOns: m2, forwardToggleAddOn: d2, forwardSetAddOnQuantity: p2, children: e5 }) }) });
2423
2910
  }
2424
- var ga = En(`bcc1b809-bde5-4d7d-a7bb-89831fe5ccb8`);
2911
+ var ec = Qi(`bcc1b809-bde5-4d7d-a7bb-89831fe5ccb8`);
2425
2912
  export {
2426
- ha as ServiceAddOnsContextProvider,
2427
- ha as default,
2428
- ga as injectAccessTokenGetter,
2429
- $ as serviceAddOnsContext,
2430
- pa as useServiceAddOnsContext
2913
+ $s as ServiceAddOnsContextProvider,
2914
+ $s as default,
2915
+ ec as injectAccessTokenGetter,
2916
+ Xs as serviceAddOnsContext,
2917
+ Zs as useServiceAddOnsContext
2431
2918
  };
2432
2919
  //# sourceMappingURL=context-service-addons.mjs.map