@20minutes/hela 2.22.4 → 2.22.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -123,7 +123,7 @@ const Kt = () => /Android/i.test(navigator.userAgent), Xt = typeof window < "u"
123
123
  minutesElement: i,
124
124
  secondsElement: n
125
125
  };
126
- }, dt = (s, t) => {
126
+ }, ht = (s, t) => {
127
127
  const e = s - Date.now();
128
128
  if (e <= 0)
129
129
  return !1;
@@ -138,12 +138,12 @@ const Kt = () => /Android/i.test(navigator.userAgent), Xt = typeof window < "u"
138
138
  t.remove();
139
139
  return;
140
140
  }
141
- if (!dt(i, n)) {
141
+ if (!ht(i, n)) {
142
142
  t.remove();
143
143
  return;
144
144
  }
145
145
  const o = setInterval(() => {
146
- dt(i, n) || (clearInterval(o), t.remove());
146
+ ht(i, n) || (clearInterval(o), t.remove());
147
147
  }, 1e3);
148
148
  });
149
149
  }, ae = (s) => {
@@ -291,7 +291,7 @@ const Kt = () => /Android/i.test(navigator.userAgent), Xt = typeof window < "u"
291
291
  n.setAttribute("aria-hidden", "false");
292
292
  })) : e.addEventListener("click", ge);
293
293
  });
294
- }, Mt = (s, t) => {
294
+ }, zt = (s, t) => {
295
295
  const e = document.querySelector(".js-content-header"), i = document.querySelector(t), n = document.querySelector(s), o = document.querySelector(".c-header-mobile"), r = o instanceof HTMLElement ? o.offsetHeight : 0;
296
296
  if (e && i && n) {
297
297
  const a = new IntersectionObserver(
@@ -305,7 +305,7 @@ const Kt = () => /Android/i.test(navigator.userAgent), Xt = typeof window < "u"
305
305
  );
306
306
  a.observe(e), a.observe(i);
307
307
  }
308
- }, _e = () => Mt(".js-close-article-btn", ".js-limit-scroll-close-article-btn"), we = () => Mt(".js-chatbot-btn", ".js-limit-scroll-chatbot-btn"), be = () => {
308
+ }, _e = () => zt(".js-close-article-btn", ".js-limit-scroll-close-article-btn"), we = () => zt(".js-chatbot-btn", ".js-limit-scroll-chatbot-btn"), be = () => {
309
309
  const s = document.querySelector(".js-game-alert");
310
310
  Xt && s && s.classList.remove("u-hidden");
311
311
  }, Se = () => {
@@ -421,7 +421,7 @@ var Ce = [
421
421
  `[contenteditable]${v.inert}${v.negTabIndex}`,
422
422
  `[tabindex]${v.inert}${v.negTabIndex}`
423
423
  ];
424
- function ht(s) {
424
+ function ut(s) {
425
425
  (s.querySelector("[autofocus]") || s).focus();
426
426
  }
427
427
  function xe(s) {
@@ -429,16 +429,16 @@ function xe(s) {
429
429
  return [t, e];
430
430
  }
431
431
  function W(s, t) {
432
- if (t && mt(s))
432
+ if (t && ft(s))
433
433
  return s;
434
434
  if (Te(s))
435
435
  if (s.shadowRoot) {
436
- let e = ut(s.shadowRoot, t);
436
+ let e = pt(s.shadowRoot, t);
437
437
  for (; e; ) {
438
438
  const i = W(e, t);
439
439
  if (i)
440
440
  return i;
441
- e = pt(e, t);
441
+ e = mt(e, t);
442
442
  }
443
443
  } else if (s.localName === "slot") {
444
444
  const e = s.assignedElements({
@@ -451,23 +451,23 @@ function W(s, t) {
451
451
  return n;
452
452
  }
453
453
  } else {
454
- let e = ut(s, t);
454
+ let e = pt(s, t);
455
455
  for (; e; ) {
456
456
  const i = W(e, t);
457
457
  if (i)
458
458
  return i;
459
- e = pt(e, t);
459
+ e = mt(e, t);
460
460
  }
461
461
  }
462
- return !t && mt(s) ? s : null;
462
+ return !t && ft(s) ? s : null;
463
463
  }
464
- function ut(s, t) {
464
+ function pt(s, t) {
465
465
  return t ? s.firstElementChild : s.lastElementChild;
466
466
  }
467
- function pt(s, t) {
467
+ function mt(s, t) {
468
468
  return t ? s.nextElementSibling : s.previousElementSibling;
469
469
  }
470
- const Pe = (s) => s.matches("details:not([open]) *") && !s.matches("details>summary:first-of-type") ? !0 : !(s.offsetWidth || s.offsetHeight || s.getClientRects().length), mt = (s) => s.shadowRoot?.delegatesFocus ? !1 : s.matches(Ce.join(",")) && !Pe(s);
470
+ const Pe = (s) => s.matches("details:not([open]) *") && !s.matches("details>summary:first-of-type") ? !0 : !(s.offsetWidth || s.offsetHeight || s.getClientRects().length), ft = (s) => s.shadowRoot?.delegatesFocus ? !1 : s.matches(Ce.join(",")) && !Pe(s);
471
471
  function Te(s) {
472
472
  return s.shadowRoot && s.getAttribute("tabindex") === "-1" ? !1 : !s.matches(":disabled,[hidden],[inert]");
473
473
  }
@@ -482,20 +482,20 @@ function Ie(s, t) {
482
482
  const n = V();
483
483
  t.shiftKey && n === e ? (i.focus(), t.preventDefault()) : !t.shiftKey && n === i && (e.focus(), t.preventDefault());
484
484
  }
485
- function R(s, t) {
485
+ function $(s, t) {
486
486
  function e(i) {
487
487
  if (!i || i === document || i === window)
488
488
  return null;
489
- const n = zt(i);
489
+ const n = Ot(i);
490
490
  return n && (i = n), i.closest(s) || e(i.getRootNode().host);
491
491
  }
492
492
  return e(t);
493
493
  }
494
- function zt(s) {
495
- return s.assignedSlot || (s.parentNode ? zt(s.parentNode) : null);
494
+ function Ot(s) {
495
+ return s.assignedSlot || (s.parentNode ? Ot(s.parentNode) : null);
496
496
  }
497
- const Z = "data-a11y-dialog";
498
- class Ot {
497
+ const k = "data-a11y-dialog";
498
+ class Dt {
499
499
  $el;
500
500
  id;
501
501
  previouslyFocused;
@@ -518,7 +518,7 @@ class Ot {
518
518
  * `[data-a11y-dialog-show="<id>"]` and `[data-a11y-dialog-hide="<id>"]`.
519
519
  */
520
520
  constructor(t) {
521
- this.$el = t, this.id = this.$el.getAttribute(Z) || this.$el.id, this.previouslyFocused = null, this.shown = !1, this.maintainFocus = this.maintainFocus.bind(this), this.bindKeypress = this.bindKeypress.bind(this), this.handleTriggerClicks = this.handleTriggerClicks.bind(this), this.show = this.show.bind(this), this.hide = this.hide.bind(this), this.$el.setAttribute("aria-hidden", "true"), this.$el.setAttribute("aria-modal", "true"), this.$el.setAttribute("tabindex", "-1"), this.$el.hasAttribute("role") || this.$el.setAttribute("role", "dialog"), document.addEventListener("click", this.handleTriggerClicks, !0);
521
+ this.$el = t, this.id = this.$el.getAttribute(k) || this.$el.id, this.previouslyFocused = null, this.shown = !1, this.maintainFocus = this.maintainFocus.bind(this), this.bindKeypress = this.bindKeypress.bind(this), this.handleTriggerClicks = this.handleTriggerClicks.bind(this), this.show = this.show.bind(this), this.hide = this.hide.bind(this), this.$el.setAttribute("aria-hidden", "true"), this.$el.setAttribute("aria-modal", "true"), this.$el.setAttribute("tabindex", "-1"), this.$el.hasAttribute("role") || this.$el.setAttribute("role", "dialog"), document.addEventListener("click", this.handleTriggerClicks, !0);
522
522
  }
523
523
  /**
524
524
  * Destroy the current instance (after making sure the dialog has been hidden)
@@ -544,7 +544,7 @@ class Ot {
544
544
  * Returns the instance to allow method chaining.
545
545
  */
546
546
  show(t) {
547
- return this.shown ? this : this.fire("show", t).defaultPrevented ? this : (this.shown = !0, this.$el.removeAttribute("aria-hidden"), this.previouslyFocused = V(), this.previouslyFocused?.tagName === "BODY" && t?.target && (this.previouslyFocused = t.target), t?.type === "focus" ? this.maintainFocus() : ht(this.$el), document.body.addEventListener("focus", this.maintainFocus, !0), this.$el.addEventListener("keydown", this.bindKeypress, !0), this);
547
+ return this.shown ? this : this.fire("show", t).defaultPrevented ? this : (this.shown = !0, this.$el.removeAttribute("aria-hidden"), this.previouslyFocused = V(), this.previouslyFocused?.tagName === "BODY" && t?.target && (this.previouslyFocused = t.target), t?.type === "focus" ? this.maintainFocus() : ut(this.$el), document.body.addEventListener("focus", this.maintainFocus, !0), this.$el.addEventListener("keydown", this.bindKeypress, !0), this);
548
548
  }
549
549
  /**
550
550
  * Hide the dialog.
@@ -592,7 +592,7 @@ class Ot {
592
592
  * dialog are clicked, and call `show` or `hide`, respectively
593
593
  */
594
594
  handleTriggerClicks(t) {
595
- const e = t.composedPath()[0], i = R(`[${Z}-show="${this.id}"]`, e), n = R(`[${Z}-hide="${this.id}"]`, e), o = R(`[${Z}-hide]`, e) && R('[aria-modal="true"]', e) === this.$el;
595
+ const e = t.composedPath()[0], i = $(`[${k}-show="${this.id}"]`, e), n = $(`[${k}-hide="${this.id}"]`, e), o = $(`[${k}-hide]`, e) && $('[aria-modal="true"]', e) === this.$el;
596
596
  i && this.show(t), (n || o) && this.hide(t);
597
597
  }
598
598
  /**
@@ -600,7 +600,7 @@ class Ot {
600
600
  * (namely ESC and TAB)
601
601
  */
602
602
  bindKeypress(t) {
603
- if (R('[aria-modal="true"]', V()) !== this.$el)
603
+ if ($('[aria-modal="true"]', V()) !== this.$el)
604
604
  return;
605
605
  let e = !1;
606
606
  try {
@@ -617,18 +617,18 @@ class Ot {
617
617
  */
618
618
  maintainFocus() {
619
619
  const t = V();
620
- R(`[aria-modal="true"], [${Z}-ignore-focus-trap]`, t) || ht(this.$el);
620
+ $(`[aria-modal="true"], [${k}-ignore-focus-trap]`, t) || ut(this.$el);
621
621
  }
622
622
  }
623
- function ft() {
623
+ function gt() {
624
624
  for (const s of document.querySelectorAll("[data-a11y-dialog]"))
625
- new Ot(s);
625
+ new Dt(s);
626
626
  }
627
- typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", ft) : ft());
627
+ typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", gt) : gt());
628
628
  const Me = () => document.querySelectorAll(".js-modal").forEach((s) => {
629
629
  if (!(s instanceof HTMLElement))
630
630
  return;
631
- const t = new Ot(s);
631
+ const t = new Dt(s);
632
632
  if (s.id === "dialog-menu") {
633
633
  const e = document.querySelectorAll("button[data-a11y-dialog-show='dialog-menu']"), i = document.querySelectorAll("button[data-a11y-dialog-hide='dialog-menu']");
634
634
  e.length > 0 && i.length > 0 && (t.on("show", () => {
@@ -770,7 +770,7 @@ const Me = () => document.querySelectorAll(".js-modal").forEach((s) => {
770
770
  prevBtn: i
771
771
  });
772
772
  }
773
- }, $e = ({
773
+ }, Re = ({
774
774
  navigationContainer: s,
775
775
  navigatedList: t,
776
776
  nextBtn: e,
@@ -782,7 +782,7 @@ const Me = () => document.querySelectorAll(".js-modal").forEach((s) => {
782
782
  nextBtn: e,
783
783
  prevBtn: i
784
784
  });
785
- }, Re = (s) => {
785
+ }, $e = (s) => {
786
786
  const { sliderVariant: t } = s.dataset, { sliderAuto: e } = s.dataset, { sliderDelay: i } = s.dataset, n = i ? parseInt(i, 10) : 3e3, r = s.closest(".js-overview-bar-container")?.querySelector(".c-stepper"), a = r?.querySelectorAll(".c-stepper__item"), l = s.querySelector(
787
787
  ".js-navigation-container__list"
788
788
  ), c = s.querySelector(".o-nav-button--next-button"), d = s.querySelector(
@@ -833,7 +833,7 @@ const Me = () => document.querySelectorAll(".js-modal").forEach((s) => {
833
833
  const i = new ResizeObserver((n) => {
834
834
  n.forEach((o) => {
835
835
  const { width: r } = o.contentRect;
836
- r > 0 && (Re(t), i.disconnect());
836
+ r > 0 && ($e(t), i.disconnect());
837
837
  });
838
838
  });
839
839
  i.observe(e);
@@ -852,7 +852,7 @@ const Me = () => document.querySelectorAll(".js-modal").forEach((s) => {
852
852
  );
853
853
  e && i && n && window.addEventListener(
854
854
  "resize",
855
- $e.bind(!1, {
855
+ Re.bind(!1, {
856
856
  navigationContainer: t,
857
857
  navigatedList: e,
858
858
  nextBtn: i,
@@ -868,7 +868,7 @@ function x(s, t, e) {
868
868
  function S(s, t) {
869
869
  return s.x = t.x, s.y = t.y, t.id !== void 0 && (s.id = t.id), s;
870
870
  }
871
- function Dt(s) {
871
+ function Rt(s) {
872
872
  s.x = Math.round(s.x), s.y = Math.round(s.y);
873
873
  }
874
874
  function it(s, t) {
@@ -888,17 +888,17 @@ function G(s, t, e) {
888
888
  function D(s, t, e, i) {
889
889
  s.style.transform = G(t, e, i);
890
890
  }
891
- const Ze = "cubic-bezier(.4,0,.22,1)";
891
+ const ke = "cubic-bezier(.4,0,.22,1)";
892
892
  function $t(s, t, e, i) {
893
- s.style.transition = t ? `${t} ${e}ms ${i || Ze}` : "none";
893
+ s.style.transition = t ? `${t} ${e}ms ${i || ke}` : "none";
894
894
  }
895
895
  function st(s, t, e) {
896
896
  s.style.width = typeof t == "number" ? `${t}px` : t, s.style.height = typeof e == "number" ? `${e}px` : e;
897
897
  }
898
- function ke(s) {
898
+ function Ze(s) {
899
899
  $t(s);
900
900
  }
901
- function qe(s) {
901
+ function Ne(s) {
902
902
  return "decode" in s ? s.decode().catch(() => {
903
903
  }) : s.complete ? Promise.resolve(s) : new Promise((t, e) => {
904
904
  s.onload = () => t(s), s.onerror = e;
@@ -910,7 +910,7 @@ const P = {
910
910
  LOADED: "loaded",
911
911
  ERROR: "error"
912
912
  };
913
- function Ne(s) {
913
+ function qe(s) {
914
914
  return "button" in s && s.button === 1 || s.ctrlKey || s.metaKey || s.altKey || s.shiftKey;
915
915
  }
916
916
  function He(s, t, e = document) {
@@ -925,14 +925,14 @@ function He(s, t, e = document) {
925
925
  }
926
926
  return i;
927
927
  }
928
- function gt() {
928
+ function vt() {
929
929
  return !!(navigator.vendor && navigator.vendor.match(/apple/i));
930
930
  }
931
- let Rt = !1;
931
+ let Bt = !1;
932
932
  try {
933
933
  window.addEventListener("test", null, Object.defineProperty({}, "passive", {
934
934
  get: () => {
935
- Rt = !0;
935
+ Bt = !0;
936
936
  }
937
937
  }));
938
938
  } catch {
@@ -994,7 +994,7 @@ class We {
994
994
  listener: i,
995
995
  passive: n
996
996
  }));
997
- const d = Rt ? {
997
+ const d = Bt ? {
998
998
  passive: n || !1
999
999
  } : !1;
1000
1000
  t[a](c, i, d);
@@ -1002,7 +1002,7 @@ class We {
1002
1002
  });
1003
1003
  }
1004
1004
  }
1005
- function Bt(s, t) {
1005
+ function Ft(s, t) {
1006
1006
  if (s.getViewportSizeFn) {
1007
1007
  const e = s.getViewportSizeFn(s, t);
1008
1008
  if (e)
@@ -1017,7 +1017,7 @@ function Bt(s, t) {
1017
1017
  y: window.innerHeight
1018
1018
  };
1019
1019
  }
1020
- function q(s, t, e, i, n) {
1020
+ function N(s, t, e, i, n) {
1021
1021
  let o = 0;
1022
1022
  if (t.paddingFn)
1023
1023
  o = t.paddingFn(e, i, n)[s];
@@ -1029,10 +1029,10 @@ function q(s, t, e, i, n) {
1029
1029
  }
1030
1030
  return Number(o) || 0;
1031
1031
  }
1032
- function Ft(s, t, e, i) {
1032
+ function kt(s, t, e, i) {
1033
1033
  return {
1034
- x: t.x - q("left", s, t, e, i) - q("right", s, t, e, i),
1035
- y: t.y - q("top", s, t, e, i) - q("bottom", s, t, e, i)
1034
+ x: t.x - N("left", s, t, e, i) - N("right", s, t, e, i),
1035
+ y: t.y - N("top", s, t, e, i) - N("bottom", s, t, e, i)
1036
1036
  };
1037
1037
  }
1038
1038
  class Ve {
@@ -1072,7 +1072,7 @@ class Ve {
1072
1072
  _updateAxis(t) {
1073
1073
  const {
1074
1074
  pswp: e
1075
- } = this.slide, i = this.slide[t === "x" ? "width" : "height"] * this.currZoomLevel, o = q(t === "x" ? "left" : "top", e.options, e.viewportSize, this.slide.data, this.slide.index), r = this.slide.panAreaSize[t];
1075
+ } = this.slide, i = this.slide[t === "x" ? "width" : "height"] * this.currZoomLevel, o = N(t === "x" ? "left" : "top", e.options, e.viewportSize, this.slide.data, this.slide.index), r = this.slide.panAreaSize[t];
1076
1076
  this.center[t] = Math.round((r - i) / 2) + o, this.max[t] = i > r ? Math.round(r - i) + o : this.center[t], this.min[t] = i > r ? o : this.center[t];
1077
1077
  }
1078
1078
  // _getZeroBounds
@@ -1090,7 +1090,7 @@ class Ve {
1090
1090
  return U(e, this.max[t], this.min[t]);
1091
1091
  }
1092
1092
  }
1093
- const vt = 4e3;
1093
+ const yt = 4e3;
1094
1094
  let Zt = class {
1095
1095
  /**
1096
1096
  * @param {PhotoSwipeOptions} options PhotoSwipe options
@@ -1148,7 +1148,7 @@ let Zt = class {
1148
1148
  */
1149
1149
  _getSecondary() {
1150
1150
  let t = this._parseZoomLevelOption("secondary");
1151
- return t || (t = Math.min(1, this.fit * 3), this.elementSize && t * this.elementSize.x > vt && (t = vt / this.elementSize.x), t);
1151
+ return t || (t = Math.min(1, this.fit * 3), this.elementSize && t * this.elementSize.x > yt && (t = yt / this.elementSize.x), t);
1152
1152
  }
1153
1153
  /**
1154
1154
  * Get initial image zoom level.
@@ -1312,7 +1312,7 @@ class je {
1312
1312
  transitionDuration: i
1313
1313
  }), o.animations.stopAllPan();
1314
1314
  const r = this.currZoomLevel;
1315
- n || (t = U(t, this.zoomLevels.min, this.zoomLevels.max)), this.setZoomLevel(t), this.pan.x = this.calculateZoomToPanOffset("x", e, r), this.pan.y = this.calculateZoomToPanOffset("y", e, r), Dt(this.pan);
1315
+ n || (t = U(t, this.zoomLevels.min, this.zoomLevels.max)), this.setZoomLevel(t), this.pan.x = this.calculateZoomToPanOffset("x", e, r), this.pan.y = this.calculateZoomToPanOffset("y", e, r), Rt(this.pan);
1316
1316
  const a = () => {
1317
1317
  this._setResolution(t), this.applyCurrentZoomPan();
1318
1318
  };
@@ -1413,7 +1413,7 @@ class je {
1413
1413
  const {
1414
1414
  pswp: t
1415
1415
  } = this;
1416
- S(this.panAreaSize, Ft(t.options, t.viewportSize, this.data, this.index)), this.zoomLevels.update(this.width, this.height, this.panAreaSize), t.dispatch("calcSlideSize", {
1416
+ S(this.panAreaSize, kt(t.options, t.viewportSize, this.data, this.index)), this.zoomLevels.update(this.width, this.height, this.panAreaSize), t.dispatch("calcSlideSize", {
1417
1417
  slide: this
1418
1418
  });
1419
1419
  }
@@ -1441,7 +1441,7 @@ class je {
1441
1441
  t !== this.currentResolution && (this.currentResolution = t, this.updateContentSize(), this.pswp.dispatch("resolutionChanged"));
1442
1442
  }
1443
1443
  }
1444
- const Ge = 0.35, Ue = 0.6, yt = 0.4, _t = 0.5;
1444
+ const Ge = 0.35, Ue = 0.6, _t = 0.4, wt = 0.5;
1445
1445
  function Ke(s, t) {
1446
1446
  return s * t / (1 - t);
1447
1447
  }
@@ -1476,7 +1476,7 @@ class Xe {
1476
1476
  this.pswp.applyBgOpacity(r), n.applyCurrentZoomPan();
1477
1477
  }
1478
1478
  } else
1479
- this._panOrMoveMainScroll("x") || (this._panOrMoveMainScroll("y"), n && (Dt(n.pan), n.applyCurrentZoomPan()));
1479
+ this._panOrMoveMainScroll("x") || (this._panOrMoveMainScroll("y"), n && (Rt(n.pan), n.applyCurrentZoomPan()));
1480
1480
  }
1481
1481
  end() {
1482
1482
  const {
@@ -1488,7 +1488,7 @@ class Xe {
1488
1488
  let n = 0;
1489
1489
  if (this.pswp.animations.stopAll(), e.isShifted()) {
1490
1490
  const r = (e.x - e.getCurrSlideX()) / this.pswp.viewportSize.x;
1491
- t.x < -_t && r < 0 || t.x < 0.1 && r < -0.5 ? (n = 1, t.x = Math.min(t.x, 0)) : (t.x > _t && r > 0 || t.x > -0.1 && r > 0.5) && (n = -1, t.x = Math.max(t.x, 0)), e.moveIndexBy(n, !0, t.x);
1491
+ t.x < -wt && r < 0 || t.x < 0.1 && r < -0.5 ? (n = 1, t.x = Math.min(t.x, 0)) : (t.x > wt && r > 0 || t.x > -0.1 && r > 0.5) && (n = -1, t.x = Math.max(t.x, 0)), e.moveIndexBy(n, !0, t.x);
1492
1492
  }
1493
1493
  i && i.currZoomLevel > i.zoomLevels.max || this.gestures.isMultitouch ? this.gestures.zoomLevels.correctZoomPan(!0) : (this._finishPanGestureForAxis("x"), this._finishPanGestureForAxis("y"));
1494
1494
  }
@@ -1510,7 +1510,7 @@ class Xe {
1510
1510
  } = i, r = n[t], a = this.pswp.bgOpacity < 1 && t === "y", c = r + Ke(e[t], 0.995);
1511
1511
  if (a) {
1512
1512
  const m = this._getVerticalDragRatio(r), p = this._getVerticalDragRatio(c);
1513
- if (m < 0 && p < -yt || m > 0 && p > yt) {
1513
+ if (m < 0 && p < -_t || m > 0 && p > _t) {
1514
1514
  this.pswp.close();
1515
1515
  return;
1516
1516
  }
@@ -1628,7 +1628,7 @@ class Xe {
1628
1628
  }
1629
1629
  }
1630
1630
  const Ye = 0.05, Je = 0.15;
1631
- function wt(s, t, e) {
1631
+ function bt(s, t, e) {
1632
1632
  return s.x = (t.x + e.x) / 2, s.y = (t.y + e.y) / 2, s;
1633
1633
  }
1634
1634
  class Qe {
@@ -1668,7 +1668,7 @@ class Qe {
1668
1668
  const a = r.zoomLevels.min, l = r.zoomLevels.max;
1669
1669
  if (!r.isZoomable() || o.mainScroll.isShifted())
1670
1670
  return;
1671
- wt(this._startZoomPoint, e, n), wt(this._zoomPoint, t, i);
1671
+ bt(this._startZoomPoint, e, n), bt(this._zoomPoint, t, i);
1672
1672
  let c = 1 / it(e, n) * it(t, i) * this._startZoomLevel;
1673
1673
  if (c > r.zoomLevels.initial + r.zoomLevels.initial / 15 && (this._wasOverFitZoomLevel = !0), c < a)
1674
1674
  if (o.options.pinchToClose && !this._wasOverFitZoomLevel && this._startZoomLevel <= r.zoomLevels.initial) {
@@ -1762,7 +1762,7 @@ class Qe {
1762
1762
  });
1763
1763
  }
1764
1764
  }
1765
- function bt(s) {
1765
+ function St(s) {
1766
1766
  return !!/** @type {HTMLElement} */
1767
1767
  s.target.closest(".pswp__container");
1768
1768
  }
@@ -1789,14 +1789,14 @@ class ti {
1789
1789
  * @param {PointerEvent} originalEvent
1790
1790
  */
1791
1791
  tap(t, e) {
1792
- bt(e) && this._doClickOrTapAction("tap", t, e);
1792
+ St(e) && this._doClickOrTapAction("tap", t, e);
1793
1793
  }
1794
1794
  /**
1795
1795
  * @param {Point} point
1796
1796
  * @param {PointerEvent} originalEvent
1797
1797
  */
1798
1798
  doubleTap(t, e) {
1799
- bt(e) && this._doClickOrTapAction("doubleTap", t, e);
1799
+ St(e) && this._doClickOrTapAction("doubleTap", t, e);
1800
1800
  }
1801
1801
  /**
1802
1802
  * @private
@@ -2315,7 +2315,7 @@ class li {
2315
2315
  } = this;
2316
2316
  if (e.dispatch("keydown", {
2317
2317
  originalEvent: t
2318
- }).defaultPrevented || Ne(t))
2318
+ }).defaultPrevented || qe(t))
2319
2319
  return;
2320
2320
  let i, n, o = !1;
2321
2321
  const r = "key" in t;
@@ -2411,7 +2411,7 @@ class di {
2411
2411
  }
2412
2412
  // Destroy is called automatically onFinish
2413
2413
  destroy() {
2414
- this._helperTimeout && clearTimeout(this._helperTimeout), ke(this._target), this._target.removeEventListener("transitionend", this._onTransitionEnd, !1), this._target.removeEventListener("transitioncancel", this._onTransitionEnd, !1), this._finished || this._finalizeAnimation();
2414
+ this._helperTimeout && clearTimeout(this._helperTimeout), Ze(this._target), this._target.removeEventListener("transitionend", this._onTransitionEnd, !1), this._target.removeEventListener("transitioncancel", this._onTransitionEnd, !1), this._finished || this._finalizeAnimation();
2415
2415
  }
2416
2416
  }
2417
2417
  const hi = 12, ui = 0.75;
@@ -2647,7 +2647,7 @@ class yi {
2647
2647
  c === "bar" ? (t.topBar || (t.topBar = x("pswp__top-bar pswp__hide-on-close", "div", t.scrollWrap)), d = t.topBar) : (l.classList.add("pswp__hide-on-close"), c === "wrapper" && (d = t.scrollWrap)), (i = d) === null || i === void 0 || i.appendChild(t.applyFilters("uiElement", l, e));
2648
2648
  }
2649
2649
  }
2650
- function kt(s, t, e) {
2650
+ function Nt(s, t, e) {
2651
2651
  s.classList.add("pswp__button--arrow"), s.setAttribute("aria-controls", "pswp__items"), t.on("change", () => {
2652
2652
  t.options.loop || (e ? s.disabled = !(t.currIndex < t.getNumItems() - 1) : s.disabled = !(t.currIndex > 0));
2653
2653
  });
@@ -2666,7 +2666,7 @@ const _i = {
2666
2666
  outlineID: "pswp__icn-arrow"
2667
2667
  },
2668
2668
  onClick: "prev",
2669
- onInit: kt
2669
+ onInit: Nt
2670
2670
  }, wi = {
2671
2671
  name: "arrowNext",
2672
2672
  className: "pswp__button--arrow--next",
@@ -2682,7 +2682,7 @@ const _i = {
2682
2682
  },
2683
2683
  onClick: "next",
2684
2684
  onInit: (s, t) => {
2685
- kt(s, t, !0);
2685
+ Nt(s, t, !0);
2686
2686
  }
2687
2687
  }, bi = {
2688
2688
  name: "close",
@@ -2747,7 +2747,7 @@ const _i = {
2747
2747
  });
2748
2748
  }
2749
2749
  };
2750
- function St(s, t) {
2750
+ function Lt(s, t) {
2751
2751
  s.classList.toggle("pswp--zoomed-in", t);
2752
2752
  }
2753
2753
  class Ai {
@@ -2797,12 +2797,12 @@ class Ai {
2797
2797
  this._lastUpdatedZoomLevel = n;
2798
2798
  const o = e.zoomLevels.initial - e.zoomLevels.secondary;
2799
2799
  if (Math.abs(o) < 0.01 || !e.isZoomable()) {
2800
- St(t, !1), t.classList.remove("pswp--zoom-allowed");
2800
+ Lt(t, !1), t.classList.remove("pswp--zoom-allowed");
2801
2801
  return;
2802
2802
  }
2803
2803
  t.classList.add("pswp--zoom-allowed");
2804
2804
  const r = n === e.zoomLevels.initial ? e.zoomLevels.secondary : e.zoomLevels.initial;
2805
- St(t, r <= n), (i.imageClickAction === "zoom" || i.imageClickAction === "zoom-or-close") && t.classList.add("pswp--click-to-zoom");
2805
+ Lt(t, r <= n), (i.imageClickAction === "zoom" || i.imageClickAction === "zoom-or-close") && t.classList.add("pswp--click-to-zoom");
2806
2806
  }
2807
2807
  }
2808
2808
  function Ci(s) {
@@ -3162,7 +3162,7 @@ let Ti = class {
3162
3162
  }).defaultPrevented)
3163
3163
  return;
3164
3164
  const t = "decode" in this.element;
3165
- this.isImageContent() ? t && this.slide && (!this.slide.isActive || gt()) ? (this.isDecoding = !0, this.element.decode().catch(() => {
3165
+ this.isImageContent() ? t && this.slide && (!this.slide.isActive || vt()) ? (this.isDecoding = !0, this.element.decode().catch(() => {
3166
3166
  }).finally(() => {
3167
3167
  this.isDecoding = !1, this.appendImage();
3168
3168
  })) : this.appendImage() : this.slide && !this.element.parentNode && this.slide.container.appendChild(this.element);
@@ -3175,7 +3175,7 @@ let Ti = class {
3175
3175
  activate() {
3176
3176
  this.instance.dispatch("contentActivate", {
3177
3177
  content: this
3178
- }).defaultPrevented || !this.slide || (this.isImageContent() && this.isDecoding && !gt() ? this.appendImage() : this.isError() && this.load(!1, !0), this.slide.holderElement && this.slide.holderElement.setAttribute("aria-hidden", "false"));
3178
+ }).defaultPrevented || !this.slide || (this.isImageContent() && this.isDecoding && !vt() ? this.appendImage() : this.isError() && this.load(!1, !0), this.slide.holderElement && this.slide.holderElement.setAttribute("aria-hidden", "false"));
3179
3179
  }
3180
3180
  /**
3181
3181
  * Deactivate the content
@@ -3212,8 +3212,8 @@ function qt(s, t, e) {
3212
3212
  if (o) {
3213
3213
  n = new Zt(o, s, -1);
3214
3214
  let r;
3215
- t.pswp ? r = t.pswp.viewportSize : r = Bt(o, t);
3216
- const a = Ft(o, r, s, e);
3215
+ t.pswp ? r = t.pswp.viewportSize : r = Ft(o, t);
3216
+ const a = kt(o, r, s, e);
3217
3217
  n.update(i.width, i.height, a);
3218
3218
  }
3219
3219
  return i.lazyLoad(), n && i.setDisplayedSize(Math.ceil(i.width * n.initial), Math.ceil(i.height * n.initial)), i;
@@ -3226,7 +3226,7 @@ function Di(s, t) {
3226
3226
  }).defaultPrevented)
3227
3227
  return qt(e, t, s);
3228
3228
  }
3229
- class $i {
3229
+ class Ri {
3230
3230
  /**
3231
3231
  * @param {PhotoSwipe} pswp
3232
3232
  */
@@ -3298,7 +3298,7 @@ class $i {
3298
3298
  this._cachedItems.forEach((t) => t.destroy()), this._cachedItems = [];
3299
3299
  }
3300
3300
  }
3301
- let Ri = class extends Ii {
3301
+ let $i = class extends Ii {
3302
3302
  /**
3303
3303
  * Get total number of slides
3304
3304
  *
@@ -3392,7 +3392,7 @@ let Ri = class extends Ii {
3392
3392
  return qt(t, this, e);
3393
3393
  }
3394
3394
  };
3395
- const k = 3e-3;
3395
+ const Z = 3e-3;
3396
3396
  class Bi {
3397
3397
  /**
3398
3398
  * @param {PhotoSwipe} pswp
@@ -3431,8 +3431,8 @@ class Bi {
3431
3431
  var n;
3432
3432
  this._animateRootOpacity = (n = i.showHideOpacity) !== null && n !== void 0 ? n : !1;
3433
3433
  }
3434
- if (this._animateBgOpacity = !this._animateRootOpacity && this.pswp.options.bgOpacity > k, this._opacityElement = this._animateRootOpacity ? t.element : t.bg, !this._useAnimation) {
3435
- this._duration = 0, this._animateZoom = !1, this._animateBgOpacity = !1, this._animateRootOpacity = !0, this.isOpening && (t.element && (t.element.style.opacity = String(k)), t.applyBgOpacity(1));
3434
+ if (this._animateBgOpacity = !this._animateRootOpacity && this.pswp.options.bgOpacity > Z, this._opacityElement = this._animateRootOpacity ? t.element : t.bg, !this._useAnimation) {
3435
+ this._duration = 0, this._animateZoom = !1, this._animateBgOpacity = !1, this._animateRootOpacity = !0, this.isOpening && (t.element && (t.element.style.opacity = String(Z)), t.applyBgOpacity(1));
3436
3436
  return;
3437
3437
  }
3438
3438
  if (this._animateZoom && this._thumbBounds && this._thumbBounds.innerRect) {
@@ -3440,13 +3440,13 @@ class Bi {
3440
3440
  this._croppedZoom = !0, this._cropContainer1 = this.pswp.container, this._cropContainer2 = (o = this.pswp.currSlide) === null || o === void 0 ? void 0 : o.holderElement, t.container && (t.container.style.overflow = "hidden", t.container.style.width = t.viewportSize.x + "px");
3441
3441
  } else
3442
3442
  this._croppedZoom = !1;
3443
- this.isOpening ? (this._animateRootOpacity ? (t.element && (t.element.style.opacity = String(k)), t.applyBgOpacity(1)) : (this._animateBgOpacity && t.bg && (t.bg.style.opacity = String(k)), t.element && (t.element.style.opacity = "1")), this._animateZoom && (this._setClosedStateZoomPan(), this._placeholder && (this._placeholder.style.willChange = "transform", this._placeholder.style.opacity = String(k)))) : this.isClosing && (t.mainScroll.itemHolders[0] && (t.mainScroll.itemHolders[0].el.style.display = "none"), t.mainScroll.itemHolders[2] && (t.mainScroll.itemHolders[2].el.style.display = "none"), this._croppedZoom && t.mainScroll.x !== 0 && (t.mainScroll.resetPosition(), t.mainScroll.resize()));
3443
+ this.isOpening ? (this._animateRootOpacity ? (t.element && (t.element.style.opacity = String(Z)), t.applyBgOpacity(1)) : (this._animateBgOpacity && t.bg && (t.bg.style.opacity = String(Z)), t.element && (t.element.style.opacity = "1")), this._animateZoom && (this._setClosedStateZoomPan(), this._placeholder && (this._placeholder.style.willChange = "transform", this._placeholder.style.opacity = String(Z)))) : this.isClosing && (t.mainScroll.itemHolders[0] && (t.mainScroll.itemHolders[0].el.style.display = "none"), t.mainScroll.itemHolders[2] && (t.mainScroll.itemHolders[2].el.style.display = "none"), this._croppedZoom && t.mainScroll.x !== 0 && (t.mainScroll.resetPosition(), t.mainScroll.resize()));
3444
3444
  }
3445
3445
  /** @private */
3446
3446
  _start() {
3447
3447
  this.isOpening && this._useAnimation && this._placeholder && this._placeholder.tagName === "IMG" ? new Promise((t) => {
3448
3448
  let e = !1, i = !0;
3449
- qe(
3449
+ Ne(
3450
3450
  /** @type {HTMLImageElement} */
3451
3451
  this._placeholder
3452
3452
  ).finally(() => {
@@ -3564,7 +3564,7 @@ const Fi = {
3564
3564
  preload: [1, 2],
3565
3565
  easing: "cubic-bezier(.4,0,.22,1)"
3566
3566
  };
3567
- class Zi extends Ri {
3567
+ class ki extends $i {
3568
3568
  /**
3569
3569
  * @param {PhotoSwipeOptions} [options]
3570
3570
  */
@@ -3578,7 +3578,7 @@ class Zi extends Ri {
3578
3578
  }, this.viewportSize = {
3579
3579
  x: 0,
3580
3580
  y: 0
3581
- }, this.bgOpacity = 1, this.currIndex = 0, this.potentialIndex = 0, this.isOpen = !1, this.isDestroying = !1, this.hasMouse = !1, this._initialItemData = {}, this._initialThumbBounds = void 0, this.topBar = void 0, this.element = void 0, this.template = void 0, this.container = void 0, this.scrollWrap = void 0, this.currSlide = void 0, this.events = new We(), this.animations = new fi(), this.mainScroll = new ri(this), this.gestures = new ni(this), this.opener = new Bi(this), this.keyboard = new li(this), this.contentLoader = new $i(this);
3581
+ }, this.bgOpacity = 1, this.currIndex = 0, this.potentialIndex = 0, this.isOpen = !1, this.isDestroying = !1, this.hasMouse = !1, this._initialItemData = {}, this._initialThumbBounds = void 0, this.topBar = void 0, this.element = void 0, this.template = void 0, this.container = void 0, this.scrollWrap = void 0, this.currSlide = void 0, this.events = new We(), this.animations = new fi(), this.mainScroll = new ri(this), this.gestures = new ni(this), this.opener = new Bi(this), this.keyboard = new li(this), this.contentLoader = new Ri(this);
3582
3582
  }
3583
3583
  /** @returns {boolean} */
3584
3584
  init() {
@@ -3723,7 +3723,7 @@ class Zi extends Ri {
3723
3723
  updateSize(t) {
3724
3724
  if (this.isDestroying)
3725
3725
  return;
3726
- const e = Bt(this.options, this);
3726
+ const e = Ft(this.options, this);
3727
3727
  !t && j(e, this._prevViewportSize) || (S(this._prevViewportSize, e), this.dispatch("beforeResize"), S(this.viewportSize, this._prevViewportSize), this._updatePageScrollOffset(), this.dispatch("viewportSize"), this.mainScroll.resize(this.opener.isOpen), !this.hasMouse && window.matchMedia("(any-hover: hover)").matches && this.mouseDetected(), this.dispatch("resize"));
3728
3728
  }
3729
3729
  /**
@@ -3807,11 +3807,11 @@ class Zi extends Ri {
3807
3807
  };
3808
3808
  }
3809
3809
  }
3810
- function N(s, t, e) {
3810
+ function q(s, t, e) {
3811
3811
  const i = document.createElement(t);
3812
3812
  return s && (i.className = s), e && e.appendChild(i), i;
3813
3813
  }
3814
- function ki(s, t, e) {
3814
+ function Zi(s, t, e) {
3815
3815
  let i = `translate3d(${s}px,0px,0)`;
3816
3816
  return e !== void 0 && (i += ` scale3d(${e},${e},1)`), i;
3817
3817
  }
@@ -3824,7 +3824,7 @@ const T = {
3824
3824
  LOADED: "loaded",
3825
3825
  ERROR: "error"
3826
3826
  };
3827
- function qi(s) {
3827
+ function Ni(s) {
3828
3828
  return "button" in s && s.button === 1 || s.ctrlKey || s.metaKey || s.altKey || s.shiftKey;
3829
3829
  }
3830
3830
  function H(s, t, e = document) {
@@ -3839,10 +3839,10 @@ function H(s, t, e = document) {
3839
3839
  }
3840
3840
  return i;
3841
3841
  }
3842
- function Ni(s) {
3842
+ function qi(s) {
3843
3843
  return typeof s == "function" && s.prototype && s.prototype.goTo;
3844
3844
  }
3845
- function Lt() {
3845
+ function Et() {
3846
3846
  return !!(navigator.vendor && navigator.vendor.match(/apple/i));
3847
3847
  }
3848
3848
  class Hi {
@@ -3937,7 +3937,7 @@ class Vi {
3937
3937
  * @param {HTMLElement} container
3938
3938
  */
3939
3939
  constructor(t, e) {
3940
- if (this.element = N("pswp__img pswp__img--placeholder", t ? "img" : "div", e), t) {
3940
+ if (this.element = q("pswp__img pswp__img--placeholder", t ? "img" : "div", e), t) {
3941
3941
  const i = (
3942
3942
  /** @type {HTMLImageElement} */
3943
3943
  this.element
@@ -3951,7 +3951,7 @@ class Vi {
3951
3951
  * @param {number} height
3952
3952
  */
3953
3953
  setDisplayedSize(t, e) {
3954
- this.element && (this.element.tagName === "IMG" ? (nt(this.element, 250, "auto"), this.element.style.transformOrigin = "0 0", this.element.style.transform = ki(0, 0, t / 250)) : nt(this.element, t, e));
3954
+ this.element && (this.element.tagName === "IMG" ? (nt(this.element, 250, "auto"), this.element.style.transformOrigin = "0 0", this.element.style.transform = Zi(0, 0, t / 250)) : nt(this.element, t, e));
3955
3955
  }
3956
3956
  destroy() {
3957
3957
  var t;
@@ -3998,7 +3998,7 @@ class ji {
3998
3998
  this.element && !e || this.instance.dispatch("contentLoad", {
3999
3999
  content: this,
4000
4000
  isLazy: t
4001
- }).defaultPrevented || (this.isImageContent() ? (this.element = N("pswp__img", "img"), this.displayedImageWidth && this.loadImage(t)) : (this.element = N("pswp__content", "div"), this.element.innerHTML = this.data.html || ""), e && this.slide && this.slide.updateContentSize(!0));
4001
+ }).defaultPrevented || (this.isImageContent() ? (this.element = q("pswp__img", "img"), this.displayedImageWidth && this.loadImage(t)) : (this.element = q("pswp__content", "div"), this.element.innerHTML = this.data.html || ""), e && this.slide && this.slide.updateContentSize(!0));
4002
4002
  }
4003
4003
  /**
4004
4004
  * Preload image
@@ -4143,9 +4143,9 @@ class ji {
4143
4143
  displayError() {
4144
4144
  if (this.slide) {
4145
4145
  var t, e;
4146
- let i = N("pswp__error-msg", "div");
4146
+ let i = q("pswp__error-msg", "div");
4147
4147
  i.innerText = (t = (e = this.instance.options) === null || e === void 0 ? void 0 : e.errorMsg) !== null && t !== void 0 ? t : "", i = /** @type {HTMLDivElement} */
4148
- this.instance.applyFilters("contentErrorElement", i, this), this.element = N("pswp__content pswp__error-msg-container", "div"), this.element.appendChild(i), this.slide.container.innerText = "", this.slide.container.appendChild(this.element), this.slide.updateContentSize(!0), this.removePlaceholder();
4148
+ this.instance.applyFilters("contentErrorElement", i, this), this.element = q("pswp__content pswp__error-msg-container", "div"), this.element.appendChild(i), this.slide.container.innerText = "", this.slide.container.appendChild(this.element), this.slide.updateContentSize(!0), this.removePlaceholder();
4149
4149
  }
4150
4150
  }
4151
4151
  /**
@@ -4163,7 +4163,7 @@ class ji {
4163
4163
  }).defaultPrevented)
4164
4164
  return;
4165
4165
  const t = "decode" in this.element;
4166
- this.isImageContent() ? t && this.slide && (!this.slide.isActive || Lt()) ? (this.isDecoding = !0, this.element.decode().catch(() => {
4166
+ this.isImageContent() ? t && this.slide && (!this.slide.isActive || Et()) ? (this.isDecoding = !0, this.element.decode().catch(() => {
4167
4167
  }).finally(() => {
4168
4168
  this.isDecoding = !1, this.appendImage();
4169
4169
  })) : this.appendImage() : this.slide && !this.element.parentNode && this.slide.container.appendChild(this.element);
@@ -4176,7 +4176,7 @@ class ji {
4176
4176
  activate() {
4177
4177
  this.instance.dispatch("contentActivate", {
4178
4178
  content: this
4179
- }).defaultPrevented || !this.slide || (this.isImageContent() && this.isDecoding && !Lt() ? this.appendImage() : this.isError() && this.load(!1, !0), this.slide.holderElement && this.slide.holderElement.setAttribute("aria-hidden", "false"));
4179
+ }).defaultPrevented || !this.slide || (this.isImageContent() && this.isDecoding && !Et() ? this.appendImage() : this.isError() && this.load(!1, !0), this.slide.holderElement && this.slide.holderElement.setAttribute("aria-hidden", "false"));
4180
4180
  }
4181
4181
  /**
4182
4182
  * Deactivate the content
@@ -4236,7 +4236,7 @@ function Ui(s, t, e, i) {
4236
4236
  y: t.y - K("top", s, t, e, i) - K("bottom", s, t, e, i)
4237
4237
  };
4238
4238
  }
4239
- const Et = 4e3;
4239
+ const At = 4e3;
4240
4240
  class Ki {
4241
4241
  /**
4242
4242
  * @param {PhotoSwipeOptions} options PhotoSwipe options
@@ -4294,7 +4294,7 @@ class Ki {
4294
4294
  */
4295
4295
  _getSecondary() {
4296
4296
  let t = this._parseZoomLevelOption("secondary");
4297
- return t || (t = Math.min(1, this.fit * 3), this.elementSize && t * this.elementSize.x > Et && (t = Et / this.elementSize.x), t);
4297
+ return t || (t = Math.min(1, this.fit * 3), this.elementSize && t * this.elementSize.x > At && (t = At / this.elementSize.x), t);
4298
4298
  }
4299
4299
  /**
4300
4300
  * Get initial image zoom level.
@@ -4317,7 +4317,7 @@ class Ki {
4317
4317
  return this._parseZoomLevelOption("max") || Math.max(1, this.fit * 4);
4318
4318
  }
4319
4319
  }
4320
- function Nt(s, t, e) {
4320
+ function Ht(s, t, e) {
4321
4321
  const i = t.createContentFromData(s, e);
4322
4322
  let n;
4323
4323
  const {
@@ -4338,7 +4338,7 @@ function Xi(s, t) {
4338
4338
  index: s,
4339
4339
  itemData: e
4340
4340
  }).defaultPrevented)
4341
- return Nt(e, t, s);
4341
+ return Ht(e, t, s);
4342
4342
  }
4343
4343
  class Yi extends Wi {
4344
4344
  /**
@@ -4431,7 +4431,7 @@ class Yi extends Wi {
4431
4431
  * @returns {Content} Image that is being decoded or false.
4432
4432
  */
4433
4433
  lazyLoadData(t, e) {
4434
- return Nt(t, this, e);
4434
+ return Ht(t, this, e);
4435
4435
  }
4436
4436
  }
4437
4437
  class Ji extends Yi {
@@ -4454,7 +4454,7 @@ class Ji extends Yi {
4454
4454
  * @param {MouseEvent} e
4455
4455
  */
4456
4456
  onThumbnailsClick(t) {
4457
- if (qi(t) || window.pswp)
4457
+ if (Ni(t) || window.pswp)
4458
4458
  return;
4459
4459
  let e = {
4460
4460
  x: t.clientX,
@@ -4522,7 +4522,7 @@ class Ji extends Yi {
4522
4522
  } = this;
4523
4523
  e && (i.dataSource = e);
4524
4524
  const n = [], o = typeof i.pswpModule;
4525
- if (Ni(i.pswpModule))
4525
+ if (qi(i.pswpModule))
4526
4526
  n.push(Promise.resolve(
4527
4527
  /** @type {Type<PhotoSwipe>} */
4528
4528
  i.pswpModule
@@ -4589,7 +4589,7 @@ const Qi = () => {
4589
4589
  return s = new Ji({
4590
4590
  gallery: "#photoswipe-gallery",
4591
4591
  children: "a",
4592
- pswpModule: Zi,
4592
+ pswpModule: ki,
4593
4593
  zoom: !1,
4594
4594
  imageClickAction: "next",
4595
4595
  tapAction: "next"
@@ -4610,7 +4610,12 @@ const Qi = () => {
4610
4610
  }), s.init(), () => {
4611
4611
  s && (s.destroy(), s = null);
4612
4612
  };
4613
- }, At = (s) => Math.min(100, Math.max(0, Math.round(s))), ts = () => {
4613
+ }, ts = "mbrs-game-ranking", es = ".c-header-page__ranking-button", is = () => {
4614
+ const s = document.querySelector(es), t = s?.querySelector("button");
4615
+ !s || !t || t.addEventListener("click", () => {
4616
+ document.getElementById(ts)?.scrollIntoView({ behavior: "smooth" });
4617
+ });
4618
+ }, Ct = (s) => Math.min(100, Math.max(0, Math.round(s))), ss = () => {
4614
4619
  const s = document.querySelector(".js-limit-scroll-progress-bar"), t = document.querySelector(".c-progress__bar"), e = document.querySelector(".c-btn__close-progress");
4615
4620
  if (!t && !e)
4616
4621
  return;
@@ -4619,14 +4624,14 @@ const Qi = () => {
4619
4624
  let o = i.scrollHeight - i.clientHeight;
4620
4625
  if (!o)
4621
4626
  return;
4622
- s && (o = s.scrollHeight - i.clientHeight + (window.pageYOffset + s.getBoundingClientRect().top)), t.style.width = `${At(n / o * 100)}%`;
4627
+ s && (o = s.scrollHeight - i.clientHeight + (window.pageYOffset + s.getBoundingClientRect().top)), t.style.width = `${Ct(n / o * 100)}%`;
4623
4628
  }
4624
4629
  if (e) {
4625
4630
  const o = document.querySelector(".js-content-header"), r = document.querySelector(".js-limit-scroll-close-article-btn");
4626
4631
  if (o && r) {
4627
4632
  const a = window.pageYOffset + o.getBoundingClientRect().bottom, c = window.pageYOffset + r.getBoundingClientRect().bottom - i.clientHeight - a;
4628
4633
  if (c > 0) {
4629
- const d = At((n - a) / c * 100);
4634
+ const d = Ct((n - a) / c * 100);
4630
4635
  e.style.setProperty("--progress", `${d}`), e.parentElement?.classList.toggle(
4631
4636
  "c-btn--close-progress-complete",
4632
4637
  d >= 100
@@ -4634,10 +4639,10 @@ const Qi = () => {
4634
4639
  }
4635
4640
  }
4636
4641
  }
4637
- }, es = () => {
4642
+ }, ns = () => {
4638
4643
  const s = document.querySelector(".c-progress"), t = document.querySelector(".c-btn__close-progress");
4639
- (s || t) && window.addEventListener("scroll", ts);
4640
- }, is = (s = {}) => {
4644
+ (s || t) && window.addEventListener("scroll", ss);
4645
+ }, os = (s = {}) => {
4641
4646
  const { buttonSelector: t = ".c-scroll-to-top" } = s, e = document.querySelector(t), i = e?.querySelector("button");
4642
4647
  if (!e || !i)
4643
4648
  return;
@@ -4659,7 +4664,7 @@ const Qi = () => {
4659
4664
  });
4660
4665
  };
4661
4666
  window.addEventListener("scroll", r), i.addEventListener("click", a), r();
4662
- }, ss = 500, ns = () => {
4667
+ }, rs = 500, as = () => {
4663
4668
  const s = document.querySelector("#mbrs-comments-container"), t = document.querySelector(".c-scroll-to-top-comment");
4664
4669
  if (!s || !t)
4665
4670
  return;
@@ -4675,7 +4680,7 @@ const Qi = () => {
4675
4680
  }, o = () => {
4676
4681
  e && (e = !1, window.removeEventListener("scroll", i), t.style.display = "none");
4677
4682
  }, r = (u) => {
4678
- u.offsetHeight > ss ? n() : o();
4683
+ u.offsetHeight > rs ? n() : o();
4679
4684
  }, a = (u) => {
4680
4685
  new ResizeObserver(() => {
4681
4686
  r(u);
@@ -4712,7 +4717,7 @@ const Qi = () => {
4712
4717
  ) && h.disconnect();
4713
4718
  });
4714
4719
  h.observe(s, { childList: !0, subtree: !0 });
4715
- }, tt = "#page-content", ot = "#text-tooltip", os = ".tooltip-btn", Ht = "c-text-tooltip--show", rs = [
4720
+ }, tt = "#page-content", ot = "#text-tooltip", ls = ".tooltip-btn", Wt = "c-text-tooltip--show", cs = [
4716
4721
  "#page-content .c-content p",
4717
4722
  "#page-content .c-content h2",
4718
4723
  "#page-content .c-content h3",
@@ -4724,17 +4729,17 @@ const Qi = () => {
4724
4729
  "#page-content header span",
4725
4730
  "#page-content header h1",
4726
4731
  "#page-content header h2"
4727
- ], Ct = (s, t) => s instanceof Element ? t.some((e) => s.matches(e)) : !1, as = (s, t) => {
4732
+ ], xt = (s, t) => s instanceof Element ? t.some((e) => s.matches(e)) : !1, ds = (s, t) => {
4728
4733
  const e = s.startContainer.nodeType === Node.ELEMENT_NODE ? s.startContainer : s.startContainer.parentElement, i = s.endContainer.nodeType === Node.ELEMENT_NODE ? s.endContainer : s.endContainer.parentElement;
4729
- return !!e && Ct(e, t) || !!i && Ct(i, t);
4730
- }, ls = (s) => {
4734
+ return !!e && xt(e, t) || !!i && xt(i, t);
4735
+ }, hs = (s) => {
4731
4736
  if (!s.focusNode)
4732
4737
  return null;
4733
4738
  const t = s.anchorNode?.compareDocumentPosition(s.focusNode);
4734
4739
  return t ? (t & 4) > 0 : s.anchorOffset < s.focusOffset;
4735
- }, cs = (s, t, e) => {
4740
+ }, us = (s, t, e) => {
4736
4741
  const i = document.querySelector(`${tt} ${ot}`), n = document.querySelector(`${tt}`), o = document.querySelectorAll(
4737
- `${tt} ${ot} ${os}`
4742
+ `${tt} ${ot} ${ls}`
4738
4743
  );
4739
4744
  if (!i || !n) {
4740
4745
  console.warn("Text tooltip : Tooltip or it's parent are not found in the DOM");
@@ -4744,58 +4749,64 @@ const Qi = () => {
4744
4749
  l.setAttribute("data-selected-text", e);
4745
4750
  });
4746
4751
  const r = s.getClientRects(), a = r[t ? r.length - 1 : 0];
4747
- i.style.top = `${a.top - n.getBoundingClientRect().top - (i.offsetHeight + 10)}px`, a.width < i.offsetWidth ? i.style.left = `${a.left - n.getBoundingClientRect().left + a.width / 2 - i.offsetWidth / 2}px` : t ? i.style.left = `${a.left - n.getBoundingClientRect().left + a.width - i.offsetWidth}px` : i.style.left = `${a.left - n.getBoundingClientRect().left}px`, i.classList.add(Ht);
4748
- }, xt = () => {
4752
+ i.style.top = `${a.top - n.getBoundingClientRect().top - (i.offsetHeight + 10)}px`, a.width < i.offsetWidth ? i.style.left = `${a.left - n.getBoundingClientRect().left + a.width / 2 - i.offsetWidth / 2}px` : t ? i.style.left = `${a.left - n.getBoundingClientRect().left + a.width - i.offsetWidth}px` : i.style.left = `${a.left - n.getBoundingClientRect().left}px`, i.classList.add(Wt);
4753
+ }, Pt = () => {
4749
4754
  const s = document.querySelector(`${ot}`);
4750
- s && s.classList.remove(Ht);
4755
+ s && s.classList.remove(Wt);
4751
4756
  }, X = ({ type: s }) => {
4752
4757
  const t = window.getSelection();
4753
4758
  if (s === "selectionchange") {
4754
- xt();
4759
+ Pt();
4755
4760
  return;
4756
4761
  }
4757
4762
  if (!t?.rangeCount)
4758
4763
  return;
4759
4764
  const e = t.getRangeAt(0), i = t.toString().trim();
4760
4765
  if (i.length) {
4761
- const n = as(e, rs), o = ls(t) || !1;
4762
- n && cs(e, o, i);
4766
+ const n = ds(e, cs), o = hs(t) || !1;
4767
+ n && us(e, o, i);
4763
4768
  return;
4764
4769
  }
4765
- xt();
4766
- }, ds = () => {
4770
+ Pt();
4771
+ }, ps = () => {
4767
4772
  if (!window?.getSelection) {
4768
4773
  console.warn("Selection API isn't supported");
4769
4774
  return;
4770
4775
  }
4771
4776
  document.addEventListener("mouseup", X), document.addEventListener("selectionchange", X), document.addEventListener("touchend", X), document.addEventListener("touchcancel", X);
4772
- }, hs = "[data-social-bar-action-row]", Wt = "button, a[href], [data-a11y-dialog-show], [data-a11y-dialog-hide]";
4773
- let Pt = !1;
4777
+ }, ms = "[data-social-bar-action-row]", ct = 'button, a[href], [role="button"], [data-a11y-dialog-show], [data-a11y-dialog-hide], [data-event-name], .js-mobile-share-button';
4778
+ let Tt = !1;
4774
4779
  const Vt = (s) => {
4775
- s.querySelector(Wt)?.click();
4776
- }, jt = (s) => s instanceof HTMLElement ? s.closest(hs) : null, us = (s) => {
4780
+ s.querySelector(ct)?.click();
4781
+ }, jt = (s) => s instanceof HTMLElement ? s.closest(ms) : null, fs = (s) => {
4777
4782
  const t = jt(s.target);
4778
- !t || s.target.closest(Wt) || Vt(t);
4779
- }, ps = (s) => {
4783
+ if (!t)
4784
+ return;
4785
+ const i = s.target.closest(ct);
4786
+ i && i !== t || Vt(t);
4787
+ }, gs = (s) => {
4780
4788
  if (s.key !== "Enter" && s.key !== " ")
4781
4789
  return;
4782
- const t = jt(s.target);
4783
- t && (s.preventDefault(), Vt(t));
4784
- }, ms = () => {
4785
- Pt || (document.addEventListener("click", us), document.addEventListener("keydown", ps), Pt = !0);
4786
- }, fs = (s) => {
4790
+ const t = s.target, e = jt(t);
4791
+ if (!e || !(t instanceof HTMLElement))
4792
+ return;
4793
+ const i = t.closest(ct);
4794
+ i && i !== e || (s.key === " " && s.preventDefault(), Vt(e));
4795
+ }, vs = () => {
4796
+ Tt || (document.addEventListener("click", fs), document.addEventListener("keydown", gs), Tt = !0);
4797
+ }, ys = (s) => {
4787
4798
  const { target: t } = s;
4788
4799
  if (t instanceof Element) {
4789
4800
  const e = t.closest(".c-search-form--button");
4790
4801
  e && (s.preventDefault(), e.classList.remove("c-search-form--button"));
4791
4802
  }
4792
- }, gs = (s = document.querySelector(
4803
+ }, _s = (s = document.querySelector(
4793
4804
  ".c-search-form--button"
4794
4805
  )) => {
4795
4806
  s && s.addEventListener("click", (t) => {
4796
- fs(t);
4807
+ ys(t);
4797
4808
  });
4798
- }, vs = ({
4809
+ }, ws = ({
4799
4810
  tabsContainerElement: s,
4800
4811
  event: t
4801
4812
  }) => {
@@ -4811,21 +4822,21 @@ const Vt = (s) => {
4811
4822
  }), n.forEach((a) => {
4812
4823
  a.setAttribute("aria-hidden", "true");
4813
4824
  }), e.setAttribute("aria-selected", "true"), r && r.removeAttribute("aria-hidden");
4814
- }, Tt = (s) => s.code === "ArrowLeft" || s.keyCode === 39, It = (s) => s.code === "ArrowRight" || s.keyCode === 37, ys = (s = document.querySelectorAll(
4825
+ }, It = (s) => s.code === "ArrowLeft" || s.keyCode === 39, Mt = (s) => s.code === "ArrowRight" || s.keyCode === 37, bs = (s = document.querySelectorAll(
4815
4826
  ".js-tabs"
4816
4827
  )) => {
4817
4828
  s.length > 0 && s.forEach((t) => {
4818
4829
  const e = t.querySelectorAll('[role="tab"]');
4819
4830
  e.forEach((n) => {
4820
4831
  n.addEventListener("click", (o) => {
4821
- vs({ tabsContainerElement: t, event: o });
4832
+ ws({ tabsContainerElement: t, event: o });
4822
4833
  });
4823
4834
  });
4824
4835
  const i = t.querySelector('[role="tablist"]');
4825
4836
  if (i && e.length > 0) {
4826
4837
  let n = 0;
4827
4838
  i.addEventListener("keydown", (o) => {
4828
- o instanceof KeyboardEvent && (Tt(o) || It(o)) && (e[n].setAttribute("tabindex", "-1"), Tt(o) ? (n += 1, n >= e.length && (n = 0)) : It(o) && (n -= 1, n < 0 && (n = e.length - 1)), e[n].setAttribute("tabindex", "0"), e[n].focus());
4839
+ o instanceof KeyboardEvent && (It(o) || Mt(o)) && (e[n].setAttribute("tabindex", "-1"), It(o) ? (n += 1, n >= e.length && (n = 0)) : Mt(o) && (n -= 1, n < 0 && (n = e.length - 1)), e[n].setAttribute("tabindex", "0"), e[n].focus());
4829
4840
  });
4830
4841
  }
4831
4842
  });
@@ -4835,13 +4846,13 @@ const Vt = (s) => {
4835
4846
  }, Gt = () => {
4836
4847
  const s = /* @__PURE__ */ new Date(), t = s.getHours(), e = s.getMinutes();
4837
4848
  return t * 60 + e;
4838
- }, _s = (s, t) => {
4849
+ }, Ss = (s, t) => {
4839
4850
  const e = Gt();
4840
4851
  if (e < s || e > t)
4841
4852
  return 0;
4842
4853
  const i = t - s;
4843
4854
  return (e - s) / i;
4844
- }, ws = (s) => {
4855
+ }, Ls = (s) => {
4845
4856
  const t = Gt();
4846
4857
  let e = null, i = null, n = -1;
4847
4858
  return Array.from(s).find((o, r, a) => {
@@ -4853,14 +4864,14 @@ const Vt = (s) => {
4853
4864
  const d = Q(l), h = Q(c);
4854
4865
  return t >= d && t < h ? (e = l, i = c, n = r, !0) : !1;
4855
4866
  }), { currentIntervalStartTime: e, currentIntervalEndTime: i, currentIntervalIndex: n };
4856
- }, bs = () => {
4867
+ }, Es = () => {
4857
4868
  const s = document.querySelectorAll(".c-timeline__time");
4858
4869
  if (!s || s.length < 2)
4859
4870
  return;
4860
- const t = document.querySelector(".c-timeline__progress-bar"), { currentIntervalStartTime: e, currentIntervalEndTime: i, currentIntervalIndex: n } = ws(s);
4871
+ const t = document.querySelector(".c-timeline__progress-bar"), { currentIntervalStartTime: e, currentIntervalEndTime: i, currentIntervalIndex: n } = Ls(s);
4861
4872
  if (!e || !i)
4862
4873
  return;
4863
- const o = Q(e), r = Q(i), a = _s(o, r);
4874
+ const o = Q(e), r = Q(i), a = Ss(o, r);
4864
4875
  if (t instanceof HTMLElement) {
4865
4876
  if (t.classList.contains("c-timeline__progress-bar--is-desktop") && s.length >= 5) {
4866
4877
  const l = "172px / 2";
@@ -4899,25 +4910,25 @@ const Vt = (s) => {
4899
4910
  }
4900
4911
  }
4901
4912
  }
4902
- }, rt = "c-icon-item__container--is-highlighted", Ss = (s) => {
4913
+ }, rt = "c-icon-item__container--is-highlighted", As = (s) => {
4903
4914
  s.find(
4904
4915
  (e) => e.classList.contains(rt)
4905
4916
  )?.classList.remove(rt);
4906
- }, Ls = () => {
4917
+ }, Cs = () => {
4907
4918
  const s = document.querySelector(".c-toolbar");
4908
4919
  if (s) {
4909
4920
  const t = window.location.origin + window.location.pathname, e = Array.from(s.querySelectorAll(".c-icon-item__container"));
4910
- Ss(e), e.find(
4921
+ As(e), e.find(
4911
4922
  (n) => n.querySelector("a")?.getAttribute("href") === t
4912
4923
  )?.classList.add(rt);
4913
4924
  }
4914
- }, Es = 12, ct = (s) => {
4925
+ }, xs = 12, dt = (s) => {
4915
4926
  const t = s || document.querySelector(".c-map-towns");
4916
4927
  if (!t) {
4917
4928
  new MutationObserver((o, r) => {
4918
4929
  if (typeof document < "u") {
4919
4930
  const a = document.querySelector(".c-map-towns");
4920
- a && (r.disconnect(), ct(a));
4931
+ a && (r.disconnect(), dt(a));
4921
4932
  }
4922
4933
  }).observe(document.body, { childList: !0, subtree: !0 });
4923
4934
  return;
@@ -4947,7 +4958,7 @@ const Vt = (s) => {
4947
4958
  d.setAttribute("y", `${A}`), l.setAttribute("aria-hidden", "false");
4948
4959
  } else
4949
4960
  a = !1;
4950
- }), !a && r < Es && requestAnimationFrame(() => o(r + 1));
4961
+ }), !a && r < xs && requestAnimationFrame(() => o(r + 1));
4951
4962
  };
4952
4963
  return requestAnimationFrame(() => o()), !0;
4953
4964
  };
@@ -4959,7 +4970,7 @@ const Vt = (s) => {
4959
4970
  childList: !0,
4960
4971
  subtree: !0
4961
4972
  });
4962
- }, As = {
4973
+ }, Ps = {
4963
4974
  10: [{ id: "10387", name: "Troyes" }, { id: "10323", name: "Romilly-sur-Seine" }, { id: "10033", name: "Bar-sur-Aube" }],
4964
4975
  11: [{ id: "11262", name: "Narbonne" }, { id: "11069", name: "Carcassonne" }, { id: "11076", name: "Castelnaudary" }],
4965
4976
  12: [{ id: "12202", name: "Rodez" }, { id: "12145", name: "Millau" }, { id: "12300", name: "Villefranche-de-Rouergue" }],
@@ -5060,14 +5071,14 @@ const Vt = (s) => {
5060
5071
  "07": [{ id: "07010", name: "Annonay" }, { id: "07019", name: "Aubenas" }, { id: "07324", name: "Tournon-sur-Rhône" }],
5061
5072
  "05": [{ id: "05061", name: "Gap" }, { id: "05023", name: "Briançon" }, { id: "05046", name: "Embrun" }],
5062
5073
  "08": [{ id: "08105", name: "Charleville-Mézières" }, { id: "08362", name: "Rethel" }, { id: "08190", name: "Givet" }]
5063
- }, Cs = /<path\b([^>]*?)\/>/g, xs = /\b([:\w-]+)="([^"]*)"/g, Ps = (s) => {
5074
+ }, Ts = /<path\b([^>]*?)\/>/g, Is = /\b([:\w-]+)="([^"]*)"/g, Ms = (s) => {
5064
5075
  const t = [];
5065
- for (const e of s.matchAll(Cs)) {
5076
+ for (const e of s.matchAll(Ts)) {
5066
5077
  const i = e[1];
5067
5078
  if (!i)
5068
5079
  continue;
5069
5080
  const n = /* @__PURE__ */ new Map();
5070
- for (const c of i.matchAll(xs)) {
5081
+ for (const c of i.matchAll(Is)) {
5071
5082
  const [, d, h] = c;
5072
5083
  d && n.set(d, h || "");
5073
5084
  }
@@ -5080,11 +5091,11 @@ const Vt = (s) => {
5080
5091
  });
5081
5092
  }
5082
5093
  return t;
5083
- }, Ts = (s) => new Map(s.map((t) => [t.id, t]));
5094
+ }, zs = (s) => new Map(s.map((t) => [t.id, t]));
5084
5095
  var Ut = /* @__PURE__ */ ((s) => (s.MOBILE = "mobile", s.DESKTOP = "desktop", s))(Ut || {});
5085
5096
  const Y = (s) => {
5086
5097
  window.location.href = s;
5087
- }, Is = (s, t, e) => {
5098
+ }, Os = (s, t, e) => {
5088
5099
  const i = e.get(s);
5089
5100
  if (i)
5090
5101
  return i;
@@ -5099,7 +5110,7 @@ const Y = (s) => {
5099
5110
  (o) => o.id.startsWith(`town-${s}`)
5100
5111
  );
5101
5112
  return e.set(s, n), n;
5102
- }, Ms = (s, t) => t.get(s), zs = (s) => {
5113
+ }, Ds = (s, t) => t.get(s), Rs = (s) => {
5103
5114
  if (s.size > 0)
5104
5115
  return;
5105
5116
  document.querySelectorAll(
@@ -5111,13 +5122,13 @@ const Y = (s) => {
5111
5122
  Array.from(e.classList).filter((n) => n.startsWith("c-map-towns__path--"))
5112
5123
  );
5113
5124
  });
5114
- }, Os = (s, t) => {
5125
+ }, $s = (s, t) => {
5115
5126
  const e = s.id, i = s.url, n = s.name;
5116
5127
  if (!e || !i)
5117
5128
  return null;
5118
5129
  const o = document.createElementNS("http://www.w3.org/2000/svg", "path");
5119
5130
  o.setAttribute("d", s.path), o.setAttribute("class", "c-map-towns__path c-map-towns__zoom-town"), o.setAttribute("data-url", i);
5120
- const r = Ms(e, t);
5131
+ const r = Ds(e, t);
5121
5132
  if (r && r.forEach((a) => {
5122
5133
  o.classList.add(a);
5123
5134
  }), n) {
@@ -5125,15 +5136,15 @@ const Y = (s) => {
5125
5136
  a.textContent = n, o.appendChild(a);
5126
5137
  }
5127
5138
  return o;
5128
- }, Ds = (s, t) => {
5139
+ }, Bs = (s, t) => {
5129
5140
  const e = document.createDocumentFragment();
5130
5141
  return s.forEach((i) => {
5131
- const n = Os(i, t);
5142
+ const n = $s(i, t);
5132
5143
  n && e.appendChild(n);
5133
5144
  }), e;
5134
- }, $s = (s, t) => {
5145
+ }, Fs = (s, t) => {
5135
5146
  s.replaceChildren(t);
5136
- }, Rs = (s, t, e) => {
5147
+ }, ks = (s, t, e) => {
5137
5148
  const i = document.createElementNS("http://www.w3.org/2000/svg", "g");
5138
5149
  i.setAttribute("class", "js-city-marker c-map-towns__city-marker"), i.setAttribute("aria-hidden", "true"), i.setAttribute("data-scale", e.toString());
5139
5150
  const n = document.createElementNS("http://www.w3.org/2000/svg", "path");
@@ -5144,7 +5155,7 @@ const Y = (s) => {
5144
5155
  r.setAttribute("class", "js-city-bg"), r.setAttribute("fill", "white"), r.setAttribute("rx", "4"), r.setAttribute("ry", "4");
5145
5156
  const a = document.createElementNS("http://www.w3.org/2000/svg", "text");
5146
5157
  return a.setAttribute("class", "js-city-text c-map-towns__city-text"), a.textContent = s, i.appendChild(n), i.appendChild(o), i.appendChild(r), i.appendChild(a), i;
5147
- }, Bs = (s, t) => {
5158
+ }, Zs = (s, t) => {
5148
5159
  const e = t.getBBox(), i = 5, n = e.width + i * 2, o = e.height + i * 2;
5149
5160
  s.setAttribute(
5150
5161
  "viewBox",
@@ -5169,8 +5180,8 @@ const at = () => {
5169
5180
  return;
5170
5181
  const A = b.closest(".js-city-marker");
5171
5182
  if (A) {
5172
- const $ = A.getAttribute("data-url");
5173
- $ && Y($);
5183
+ const R = A.getAttribute("data-url");
5184
+ R && Y(R);
5174
5185
  return;
5175
5186
  }
5176
5187
  const M = b.closest(".c-map-towns__zoom-item")?.getAttribute("data-city-url");
@@ -5197,11 +5208,11 @@ const at = () => {
5197
5208
  if (p)
5198
5209
  return p;
5199
5210
  const L = u instanceof HTMLScriptElement ? JSON.parse(u.textContent || '""') : "";
5200
- return p = Ts(Ps(L)), p;
5211
+ return p = zs(Ms(L)), p;
5201
5212
  }, w = () => {
5202
5213
  r.setAttribute("aria-hidden", "true"), l.replaceChildren();
5203
5214
  }, C = (L, b) => L.startsWith("97") ? document.querySelector(`path[id="town-${b}-drom"]`)?.getAttribute("d") || null : y().get(`town-${b}`)?.path || null, g = (L, b) => {
5204
- const I = As[L] || [];
5215
+ const I = Ps[L] || [];
5205
5216
  if (I.length === 0)
5206
5217
  return;
5207
5218
  const M = document.createDocumentFragment();
@@ -5209,10 +5220,10 @@ const at = () => {
5209
5220
  const z = C(L, F.id);
5210
5221
  if (!z)
5211
5222
  return;
5212
- const $ = Rs(F.name, z, b);
5213
- M.appendChild($);
5223
+ const R = ks(F.name, z, b);
5224
+ M.appendChild(R);
5214
5225
  }), l.appendChild(M), requestAnimationFrame(() => {
5215
- ct(l);
5226
+ dt(l);
5216
5227
  });
5217
5228
  }, _ = (L) => {
5218
5229
  const { target: b } = L;
@@ -5221,13 +5232,13 @@ const at = () => {
5221
5232
  const A = b?.closest(".c-map-towns__dept-trigger");
5222
5233
  if (!A)
5223
5234
  return;
5224
- const I = A.getAttribute("id")?.replace("out-", "") || "", M = A.getAttribute("data-name"), F = Is(I, y, f);
5225
- zs(m);
5226
- const z = Ds(F, m);
5235
+ const I = A.getAttribute("id")?.replace("out-", "") || "", M = A.getAttribute("data-name"), F = Os(I, y, f);
5236
+ Rs(m);
5237
+ const z = Bs(F, m);
5227
5238
  if (d && h && M && (d.textContent = M, h.textContent = `Carte détaillée du département : ${M}`), !(A instanceof SVGGraphicsElement))
5228
5239
  return;
5229
- const $ = Bs(a, A);
5230
- r.setAttribute("aria-hidden", "false"), $s(l, z), g(I, $);
5240
+ const R = Zs(a, A);
5241
+ r.setAttribute("aria-hidden", "false"), Fs(l, z), g(I, R);
5231
5242
  }, E = (L) => {
5232
5243
  const { target: b } = L;
5233
5244
  if (!(b instanceof Element))
@@ -5240,15 +5251,15 @@ const at = () => {
5240
5251
  }), r.addEventListener("click", (L) => {
5241
5252
  L.target === r && w();
5242
5253
  });
5243
- }, Ws = () => {
5244
- ye(), ys(), se(), Ae(), pe(), es(), Qi(), Me(), gs(), ms(), re(), ds(), _e(), we(), Se(), ce(), ee(
5254
+ }, Gs = () => {
5255
+ ye(), bs(), se(), Ae(), pe(), ns(), Qi(), Me(), _s(), vs(), re(), ps(), _e(), we(), Se(), ce(), ee(
5245
5256
  "localisation-input",
5246
5257
  "https://www.20minutes.fr/elections/resultats/recherche",
5247
5258
  "?searchValue=",
5248
5259
  "text",
5249
5260
  "text"
5250
- ), le(), ct(), Ls(), Jt(), Qt(), Le(), at(), Be(), Fe(), be(), Yt(), bs(), is(), ns();
5261
+ ), le(), dt(), Cs(), Jt(), Qt(), Le(), at(), Be(), Fe(), be(), Yt(), Es(), os(), as(), is();
5251
5262
  };
5252
5263
  export {
5253
- Ws as initScripts
5264
+ Gs as initScripts
5254
5265
  };