@20minutes/hela 2.3.6 → 2.4.0

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.
@@ -24,7 +24,7 @@ const At = () => {
24
24
  }
25
25
  };
26
26
  function It(s) {
27
- var c, d, p;
27
+ var c, d, u;
28
28
  if (!(s.target instanceof HTMLFormElement))
29
29
  return;
30
30
  s.preventDefault();
@@ -32,7 +32,7 @@ function It(s) {
32
32
  n && (i["tags[]"] = n);
33
33
  const o = (d = e.get("adresse")) == null ? void 0 : d.toString();
34
34
  o && (i.adresse = o);
35
- const r = (p = e.get("distance")) == null ? void 0 : p.toString();
35
+ const r = (u = e.get("distance")) == null ? void 0 : u.toString();
36
36
  r && (i.distance = r);
37
37
  const a = "https://offres-emploi.20minutes.fr/offre-emploi", l = new URLSearchParams(i).toString(), h = `${a}?${l}&&utm_source=20minutes&utm_medium=referral&utm_campaign=job_offer&utm_term=actual&utm_content=search_bar&force_source=1`;
38
38
  window.open(h, "_blank");
@@ -78,34 +78,34 @@ const Ct = () => {
78
78
  const a = r.dataset.storybook, l = r.querySelector(`#${s}-search`), h = l == null ? void 0 : l.getAttribute("data-api-url"), c = r.querySelector(".c-autocomplete__menu");
79
79
  if (!l || !c || !h)
80
80
  return;
81
- const d = r.querySelector(".c-autocomplete__input-spinner"), p = l.getAttribute("data-trigger-message"), g = async (L) => {
81
+ const d = r.querySelector(".c-autocomplete__input-spinner"), u = l.getAttribute("data-trigger-message"), g = async (L) => {
82
82
  try {
83
- let v;
84
- return a && t.includes("20minutes.fr") ? v = Tt : v = await (await fetch(`${h}${e}${encodeURIComponent(L)}`)).json(), o ? v[o] : v;
85
- } catch (v) {
86
- return console.error("Error fetching autocomplete results:", v), [];
83
+ let y;
84
+ return a && t.includes("20minutes.fr") ? y = Tt : y = await (await fetch(`${h}${e}${encodeURIComponent(L)}`)).json(), o ? y[o] : y;
85
+ } catch (y) {
86
+ return console.error("Error fetching autocomplete results:", y), [];
87
87
  }
88
- }, u = (L, v) => {
88
+ }, p = (L, y) => {
89
89
  const A = document.createElement("li");
90
- A.id = `/${L}`, A.textContent = v, A.addEventListener("click", () => {
91
- l instanceof HTMLInputElement && (l.value = v, c.classList.add("u-hidden"));
90
+ A.id = `/${L}`, A.textContent = y, A.addEventListener("click", () => {
91
+ l instanceof HTMLInputElement && (l.value = y, c.classList.add("u-hidden"));
92
92
  }), c.appendChild(A);
93
- }, f = () => {
93
+ }, m = () => {
94
94
  d == null || d.classList.toggle("u-hidden");
95
- }, y = () => {
95
+ }, v = () => {
96
96
  const L = document.createElement("li");
97
- L.textContent = p, c.appendChild(L);
97
+ L.textContent = u, c.appendChild(L);
98
98
  }, E = async (L) => {
99
- f(), c.classList.remove("u-hidden");
100
- const v = await g(L);
101
- c.innerHTML = "", v.length === 0 && c.classList.add("u-hidden"), v.forEach((A) => {
102
- u(A[i], A[n]);
103
- }), f();
99
+ m(), c.classList.remove("u-hidden");
100
+ const y = await g(L);
101
+ c.innerHTML = "", y.length === 0 && c.classList.add("u-hidden"), y.forEach((A) => {
102
+ p(A[i], A[n]);
103
+ }), m();
104
104
  }, P = (L) => {
105
105
  if (!(L.target instanceof HTMLInputElement))
106
106
  return;
107
- const v = L.target.value;
108
- c.classList.remove("u-hidden"), v.length >= 3 ? E(v) : (c.innerHTML = "", y());
107
+ const y = L.target.value;
108
+ c.classList.remove("u-hidden"), y.length >= 3 ? E(y) : (c.innerHTML = "", v());
109
109
  };
110
110
  l.addEventListener("input", P), l.addEventListener("focusout", () => {
111
111
  setTimeout(() => c.classList.add("u-hidden"), 300);
@@ -158,17 +158,17 @@ const Ct = () => {
158
158
  if (d <= 0)
159
159
  clearInterval(h);
160
160
  else {
161
- const p = Math.floor(d / 864e5), g = Math.floor(d % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)), u = Math.floor(d % (1e3 * 60 * 60) / (1e3 * 60)), f = Math.floor(d % (1e3 * 60) / 1e3);
162
- i.innerHTML = p.toString(), n.innerHTML = g.toString(), o.innerHTML = u.toString(), r.innerHTML = f.toString();
161
+ const u = Math.floor(d / 864e5), g = Math.floor(d % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60)), p = Math.floor(d % (1e3 * 60 * 60) / (1e3 * 60)), m = Math.floor(d % (1e3 * 60) / 1e3);
162
+ i.innerHTML = u.toString(), n.innerHTML = g.toString(), o.innerHTML = p.toString(), r.innerHTML = m.toString();
163
163
  }
164
164
  }, 1e3);
165
165
  }
166
- }, Zt = (s) => {
166
+ }, $t = (s) => {
167
167
  const t = s.getBBox(), e = t.width / 20;
168
168
  return [t.x - e, t.y - e, t.width + e * 2, t.height + e * 2].join(
169
169
  " "
170
170
  );
171
- }, $t = () => {
171
+ }, Zt = () => {
172
172
  const s = document.querySelector(".c-map-districts-container"), t = document.querySelector(".c-map-districts");
173
173
  if (!s || !t)
174
174
  return;
@@ -180,56 +180,56 @@ const Ct = () => {
180
180
  ".c-map-districts-container__unzoom-button"
181
181
  );
182
182
  let o = t;
183
- const r = t.getAttribute("viewBox"), a = (u, f) => {
184
- var y;
185
- return (y = u.matches) == null ? void 0 : y.call(u, f);
186
- }, l = (u, f, y = ".c-map-districts__zoomable:not(.js-selected-area)") => {
187
- if (!u)
183
+ const r = t.getAttribute("viewBox"), a = (p, m) => {
184
+ var v;
185
+ return (v = p.matches) == null ? void 0 : v.call(p, m);
186
+ }, l = (p, m, v = ".c-map-districts__zoomable:not(.js-selected-area)") => {
187
+ if (!p)
188
188
  return;
189
- let E, P = u.parentElement;
190
- for (; P instanceof SVGGraphicsElement && P !== f; )
191
- a(P, y) && (E = P), P = P.parentElement;
189
+ let E, P = p.parentElement;
190
+ for (; P instanceof SVGGraphicsElement && P !== m; )
191
+ a(P, v) && (E = P), P = P.parentElement;
192
192
  return E;
193
- }, h = (u, f, y) => {
194
- if (!u)
193
+ }, h = (p, m, v) => {
194
+ if (!p)
195
195
  return;
196
- let E = u.parentElement;
197
- for (; E instanceof SVGGraphicsElement && E !== y; ) {
198
- if (f === E)
196
+ let E = p.parentElement;
197
+ for (; E instanceof SVGGraphicsElement && E !== v; ) {
198
+ if (m === E)
199
199
  return !0;
200
200
  E = E.parentElement;
201
201
  }
202
- return y === f;
203
- }, c = (u, f) => {
204
- if (f && n && e) {
205
- s.classList.remove("c-map-districts-container--department-view"), e.classList.remove("u-hidden"), i == null || i.classList.add("u-hidden"), n.classList.add("u-hidden"), f !== r && (e.classList.add("u-hidden"), n.classList.remove("u-hidden")), o.classList.remove("js-selected-area"), o = u;
206
- const y = o.getAttribute("data-info");
207
- i && y && (s.classList.add("c-map-districts-container--department-view"), i.classList.remove("u-hidden"), i.innerHTML = y), o.classList.add("js-selected-area"), t.setAttribute("viewBox", f);
202
+ return v === m;
203
+ }, c = (p, m) => {
204
+ if (m && n && e) {
205
+ s.classList.remove("c-map-districts-container--department-view"), e.classList.remove("u-hidden"), i == null || i.classList.add("u-hidden"), n.classList.add("u-hidden"), m !== r && (e.classList.add("u-hidden"), n.classList.remove("u-hidden")), o.classList.remove("js-selected-area"), o = p;
206
+ const v = o.getAttribute("data-info");
207
+ i && v && (s.classList.add("c-map-districts-container--department-view"), i.classList.remove("u-hidden"), i.innerHTML = v), o.classList.add("js-selected-area"), t.setAttribute("viewBox", m);
208
208
  }
209
- }, d = (u) => {
210
- u.stopPropagation();
211
- const f = u.currentTarget;
212
- if (o && t && f instanceof SVGGraphicsElement) {
213
- if (f === o)
209
+ }, d = (p) => {
210
+ p.stopPropagation();
211
+ const m = p.currentTarget;
212
+ if (o && t && m instanceof SVGGraphicsElement) {
213
+ if (m === o)
214
214
  return;
215
- if (u.preventDefault(), o !== t && !h(f, o, t)) {
215
+ if (p.preventDefault(), o !== t && !h(m, o, t)) {
216
216
  c(t, r);
217
217
  return;
218
218
  }
219
- const y = l(
220
- f,
219
+ const v = l(
220
+ m,
221
221
  o
222
222
  );
223
223
  c(
224
- y || f,
225
- Zt(y || f)
224
+ v || m,
225
+ $t(v || m)
226
226
  );
227
227
  }
228
- }, p = () => {
228
+ }, u = () => {
229
229
  t && o !== t && c(t, r);
230
230
  };
231
- t.addEventListener("click", p), n && n.addEventListener("click", p), document.querySelectorAll(".c-map-districts__zoomable").forEach((u) => {
232
- u.addEventListener("click", (f) => d(f));
231
+ t.addEventListener("click", u), n && n.addEventListener("click", u), document.querySelectorAll(".c-map-districts__zoomable").forEach((p) => {
232
+ p.addEventListener("click", (m) => d(m));
233
233
  });
234
234
  }, Ft = () => {
235
235
  const s = document.getElementById("elections-form-search"), t = document.querySelector(".c-search-form__autocomplete");
@@ -287,14 +287,14 @@ const Ct = () => {
287
287
  const i = e.getAttribute("data-multiple") === "true";
288
288
  e.addEventListener("click", (n) => qt(n, i));
289
289
  });
290
- }, Bt = (s) => {
290
+ }, Ht = (s) => {
291
291
  var i;
292
292
  s.setAttribute("aria-expanded", "true");
293
293
  const t = (i = s.parentNode) == null ? void 0 : i.querySelectorAll(".js-expand-target");
294
294
  t == null || t.forEach((n) => n.setAttribute("aria-hidden", "false"));
295
295
  const e = s.querySelector(".js-expand-button__label");
296
296
  e instanceof HTMLSpanElement && (e.innerHTML = "Voir moins");
297
- }, Ht = (s) => {
297
+ }, Bt = (s) => {
298
298
  var i;
299
299
  const t = (i = s.parentNode) == null ? void 0 : i.querySelectorAll(".js-expand-target");
300
300
  t == null || t.forEach((n) => n.setAttribute("aria-hidden", "true")), s.setAttribute("aria-expanded", "false");
@@ -302,7 +302,7 @@ const Ct = () => {
302
302
  e instanceof HTMLSpanElement && (e.innerHTML = "Voir plus");
303
303
  }, Wt = (s) => {
304
304
  const t = s.currentTarget;
305
- return s.preventDefault(), t instanceof HTMLButtonElement ? t.getAttribute("aria-expanded") === "true" ? Ht(t) : Bt(t) : null;
305
+ return s.preventDefault(), t instanceof HTMLButtonElement ? t.getAttribute("aria-expanded") === "true" ? Bt(t) : Ht(t) : null;
306
306
  }, Vt = (s = document.querySelector(
307
307
  ".js-expand-button"
308
308
  )) => {
@@ -329,44 +329,73 @@ const Ct = () => {
329
329
  });
330
330
  });
331
331
  }
332
- }, m = {
332
+ }, Kt = () => {
333
+ const s = document.querySelector(".c-image-slider__container");
334
+ if (!s)
335
+ return;
336
+ const t = document.querySelectorAll(".c-image-slider__slide"), e = document.querySelector(".c-image-slider__button-container--previous"), i = document.querySelector(".c-image-slider__button-container--next"), n = document.querySelectorAll(".c-image-slider__indicator");
337
+ let o = 0;
338
+ const r = () => {
339
+ n.forEach((h, c) => {
340
+ h.classList.toggle("c-image-slider__indicator--is-active", c === o);
341
+ });
342
+ }, a = () => {
343
+ if (!(s instanceof HTMLElement))
344
+ return;
345
+ const h = -o * 100;
346
+ s.style.transform = `translateX(${h}%)`, r();
347
+ }, l = (h) => {
348
+ o = h, a();
349
+ };
350
+ e == null || e.addEventListener("click", () => {
351
+ const h = (o - 1 + t.length) % t.length;
352
+ l(h);
353
+ }), i == null || i.addEventListener("click", () => {
354
+ const h = (o + 1) % t.length;
355
+ l(h);
356
+ }), n.forEach((h, c) => {
357
+ h.addEventListener("click", () => {
358
+ l(c);
359
+ });
360
+ }), a();
361
+ }, f = {
333
362
  inert: ":not([inert]):not([inert] *)",
334
363
  negTabIndex: ':not([tabindex^="-"])',
335
364
  disabled: ":not(:disabled)"
336
365
  };
337
- var Kt = [
338
- `a[href]${m.inert}${m.negTabIndex}`,
339
- `area[href]${m.inert}${m.negTabIndex}`,
340
- `input:not([type="hidden"]):not([type="radio"])${m.inert}${m.negTabIndex}${m.disabled}`,
341
- `input[type="radio"]${m.inert}${m.negTabIndex}${m.disabled}`,
342
- `select${m.inert}${m.negTabIndex}${m.disabled}`,
343
- `textarea${m.inert}${m.negTabIndex}${m.disabled}`,
344
- `button${m.inert}${m.negTabIndex}${m.disabled}`,
345
- `details${m.inert} > summary:first-of-type${m.negTabIndex}`,
366
+ var Xt = [
367
+ `a[href]${f.inert}${f.negTabIndex}`,
368
+ `area[href]${f.inert}${f.negTabIndex}`,
369
+ `input:not([type="hidden"]):not([type="radio"])${f.inert}${f.negTabIndex}${f.disabled}`,
370
+ `input[type="radio"]${f.inert}${f.negTabIndex}${f.disabled}`,
371
+ `select${f.inert}${f.negTabIndex}${f.disabled}`,
372
+ `textarea${f.inert}${f.negTabIndex}${f.disabled}`,
373
+ `button${f.inert}${f.negTabIndex}${f.disabled}`,
374
+ `details${f.inert} > summary:first-of-type${f.negTabIndex}`,
346
375
  // Discard until Firefox supports `:has()`
347
376
  // See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
348
377
  // `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
349
- `iframe${m.inert}${m.negTabIndex}`,
350
- `audio[controls]${m.inert}${m.negTabIndex}`,
351
- `video[controls]${m.inert}${m.negTabIndex}`,
352
- `[contenteditable]${m.inert}${m.negTabIndex}`,
353
- `[tabindex]${m.inert}${m.negTabIndex}`
378
+ `iframe${f.inert}${f.negTabIndex}`,
379
+ `audio[controls]${f.inert}${f.negTabIndex}`,
380
+ `video[controls]${f.inert}${f.negTabIndex}`,
381
+ `[contenteditable]${f.inert}${f.negTabIndex}`,
382
+ `[tabindex]${f.inert}${f.negTabIndex}`
354
383
  ];
355
384
  function X(s) {
356
385
  (s.querySelector("[autofocus]") || s).focus();
357
386
  }
358
- function Xt(s) {
359
- const t = $(s, !0), e = t ? $(s, !1) || t : null;
387
+ function Yt(s) {
388
+ const t = Z(s, !0), e = t ? Z(s, !1) || t : null;
360
389
  return [t, e];
361
390
  }
362
- function $(s, t) {
391
+ function Z(s, t) {
363
392
  if (t && J(s))
364
393
  return s;
365
- if (Qt(s))
394
+ if (Jt(s))
366
395
  if (s.shadowRoot) {
367
396
  let e = Y(s.shadowRoot, t);
368
397
  for (; e; ) {
369
- const i = $(e, t);
398
+ const i = Z(e, t);
370
399
  if (i)
371
400
  return i;
372
401
  e = Q(e, t);
@@ -377,14 +406,14 @@ function $(s, t) {
377
406
  });
378
407
  t || e.reverse();
379
408
  for (const i of e) {
380
- const n = $(i, t);
409
+ const n = Z(i, t);
381
410
  if (n)
382
411
  return n;
383
412
  }
384
413
  } else {
385
414
  let e = Y(s, t);
386
415
  for (; e; ) {
387
- const i = $(e, t);
416
+ const i = Z(e, t);
388
417
  if (i)
389
418
  return i;
390
419
  e = Q(e, t);
@@ -398,19 +427,19 @@ function Y(s, t) {
398
427
  function Q(s, t) {
399
428
  return t ? s.nextElementSibling : s.previousElementSibling;
400
429
  }
401
- const Yt = (s) => s.matches("details:not([open]) *") && !s.matches("details>summary:first-of-type") ? !0 : !(s.offsetWidth || s.offsetHeight || s.getClientRects().length), J = (s) => {
430
+ const Qt = (s) => s.matches("details:not([open]) *") && !s.matches("details>summary:first-of-type") ? !0 : !(s.offsetWidth || s.offsetHeight || s.getClientRects().length), J = (s) => {
402
431
  var t;
403
- return (t = s.shadowRoot) != null && t.delegatesFocus ? !1 : s.matches(Kt.join(",")) && !Yt(s);
432
+ return (t = s.shadowRoot) != null && t.delegatesFocus ? !1 : s.matches(Xt.join(",")) && !Qt(s);
404
433
  };
405
- function Qt(s) {
434
+ function Jt(s) {
406
435
  return s.shadowRoot && s.getAttribute("tabindex") === "-1" ? !1 : !s.matches(":disabled,[hidden],[inert]");
407
436
  }
408
437
  function F(s = document) {
409
438
  const t = s.activeElement;
410
439
  return t ? t.shadowRoot ? F(t.shadowRoot) || document.activeElement : t : null;
411
440
  }
412
- function Jt(s, t) {
413
- const [e, i] = Xt(s);
441
+ function te(s, t) {
442
+ const [e, i] = Yt(s);
414
443
  if (!e)
415
444
  return t.preventDefault();
416
445
  const n = F();
@@ -420,16 +449,16 @@ function C(s, t) {
420
449
  function e(i) {
421
450
  if (!i || i === document || i === window)
422
451
  return null;
423
- const n = ut(i);
452
+ const n = pt(i);
424
453
  return n && (i = n), i.closest(s) || e(i.getRootNode().host);
425
454
  }
426
455
  return e(t);
427
456
  }
428
- function ut(s) {
429
- return s.assignedSlot || (s.parentNode ? ut(s.parentNode) : null);
457
+ function pt(s) {
458
+ return s.assignedSlot || (s.parentNode ? pt(s.parentNode) : null);
430
459
  }
431
460
  const z = "data-a11y-dialog";
432
- class pt {
461
+ class ut {
433
462
  constructor(t) {
434
463
  T(this, "$el");
435
464
  T(this, "id");
@@ -505,7 +534,7 @@ class pt {
505
534
  e = !!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open');
506
535
  } catch {
507
536
  }
508
- t.key === "Escape" && this.$el.getAttribute("role") !== "alertdialog" && !e && (t.preventDefault(), this.hide(t)), t.key === "Tab" && Jt(this.$el, t);
537
+ t.key === "Escape" && this.$el.getAttribute("role") !== "alertdialog" && !e && (t.preventDefault(), this.hide(t)), t.key === "Tab" && te(this.$el, t);
509
538
  }
510
539
  /**
511
540
  * If the dialog is shown and the focus is not within a dialog element (either
@@ -520,13 +549,13 @@ class pt {
520
549
  }
521
550
  function tt() {
522
551
  for (const s of document.querySelectorAll("[data-a11y-dialog]"))
523
- new pt(s);
552
+ new ut(s);
524
553
  }
525
554
  typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", tt) : tt());
526
- const te = () => document.querySelectorAll(".js-modal").forEach((s) => {
555
+ const ee = () => document.querySelectorAll(".js-modal").forEach((s) => {
527
556
  if (!(s instanceof HTMLElement))
528
557
  return;
529
- const t = new pt(s);
558
+ const t = new ut(s);
530
559
  if (s.id === "dialog-menu") {
531
560
  const e = document.querySelectorAll("button[data-a11y-dialog-show='dialog-menu']"), i = document.querySelectorAll("button[data-a11y-dialog-hide='dialog-menu']");
532
561
  e.length > 0 && i.length > 0 && (t.on("show", () => {
@@ -540,11 +569,11 @@ const te = () => document.querySelectorAll(".js-modal").forEach((s) => {
540
569
  }).on("hide", () => {
541
570
  document.body.classList.remove("noscroll");
542
571
  });
543
- }), ee = ({ navigatedList: s, nextBtn: t, prevBtn: e }) => {
544
- var o, r, a, l, h, c, d, p;
572
+ }), ie = ({ navigatedList: s, nextBtn: t, prevBtn: e }) => {
573
+ var o, r, a, l, h, c, d, u;
545
574
  const i = s.scrollLeft > 0, n = s.scrollLeft + s.clientWidth < s.scrollWidth;
546
- i && n ? ((o = t.classList) == null || o.add("o-nav-button--visible"), (r = e.classList) == null || r.add("o-nav-button--visible")) : i ? ((a = t.classList) == null || a.remove("o-nav-button--visible"), (l = e.classList) == null || l.add("o-nav-button--visible")) : n ? ((h = t.classList) == null || h.add("o-nav-button--visible"), (c = e.classList) == null || c.remove("o-nav-button--visible")) : ((d = t.classList) == null || d.remove("o-nav-button--visible"), (p = e.classList) == null || p.remove("o-nav-button--visible"));
547
- }, ie = ({
575
+ i && n ? ((o = t.classList) == null || o.add("o-nav-button--visible"), (r = e.classList) == null || r.add("o-nav-button--visible")) : i ? ((a = t.classList) == null || a.remove("o-nav-button--visible"), (l = e.classList) == null || l.add("o-nav-button--visible")) : n ? ((h = t.classList) == null || h.add("o-nav-button--visible"), (c = e.classList) == null || c.remove("o-nav-button--visible")) : ((d = t.classList) == null || d.remove("o-nav-button--visible"), (u = e.classList) == null || u.remove("o-nav-button--visible"));
576
+ }, se = ({
548
577
  navigatedList: s,
549
578
  nextBtn: t,
550
579
  prevBtn: e,
@@ -589,7 +618,7 @@ const te = () => document.querySelectorAll(".js-modal").forEach((s) => {
589
618
  }), t.classList.remove("o-nav-button--visible"), e.classList.add("o-nav-button--visible");
590
619
  }
591
620
  }
592
- }, se = ({
621
+ }, ne = ({
593
622
  navigatedList: s,
594
623
  nextBtn: t,
595
624
  prevBtn: e,
@@ -630,13 +659,13 @@ const te = () => document.querySelectorAll(".js-modal").forEach((s) => {
630
659
  behavior: "smooth"
631
660
  }), e.classList.remove("o-nav-button--visible"), s.clientWidth < s.scrollWidth && t.classList.add("o-nav-button--visible");
632
661
  }
633
- }, ne = ({ navigatedList: s, nextBtn: t, prevBtn: e }) => {
634
- ee({
662
+ }, oe = ({ navigatedList: s, nextBtn: t, prevBtn: e }) => {
663
+ ie({
635
664
  navigatedList: s,
636
665
  nextBtn: t,
637
666
  prevBtn: e
638
667
  });
639
- }, oe = () => {
668
+ }, re = () => {
640
669
  const s = document.querySelectorAll(".js-navigation-container");
641
670
  for (const t of Array.from(s)) {
642
671
  const { sliderVariant: e } = t.dataset, { sliderAuto: i } = t.dataset, { sliderDelay: n } = t.dataset, o = n ? parseInt(n, 10) : 3e3, r = t.closest(".js-overview-bar-container"), a = r == null ? void 0 : r.querySelector(".c-stepper"), l = a == null ? void 0 : a.querySelectorAll(".c-stepper__item");
@@ -650,7 +679,7 @@ const te = () => document.querySelectorAll(".js-modal").forEach((s) => {
650
679
  );
651
680
  if (h && h.clientWidth < h.scrollWidth && (c == null || c.classList.add("o-nav-button--visible")), h && c && d && (c == null || c.addEventListener(
652
681
  "click",
653
- ie.bind(!1, {
682
+ se.bind(!1, {
654
683
  navigatedList: h,
655
684
  nextBtn: c,
656
685
  prevBtn: d,
@@ -658,7 +687,7 @@ const te = () => document.querySelectorAll(".js-modal").forEach((s) => {
658
687
  })
659
688
  ), d == null || d.addEventListener(
660
689
  "click",
661
- se.bind(!1, {
690
+ ne.bind(!1, {
662
691
  navigatedList: h,
663
692
  nextBtn: c,
664
693
  prevBtn: d,
@@ -666,15 +695,15 @@ const te = () => document.querySelectorAll(".js-modal").forEach((s) => {
666
695
  delay: o
667
696
  })
668
697
  )), i === "true" && c) {
669
- const p = a ? a.querySelector(".c-stepper__item--loading") : null;
698
+ const u = a ? a.querySelector(".c-stepper__item--loading") : null;
670
699
  l && (l.forEach((g) => {
671
- const u = g.querySelector(".c-stepper__loader");
672
- u && u instanceof HTMLElement && (u.style.transition = `width ${o / 1e3}s linear`);
673
- }), p || l[0].classList.add("c-stepper__item--loading")), setInterval(() => {
700
+ const p = g.querySelector(".c-stepper__loader");
701
+ p && p instanceof HTMLElement && (p.style.transition = `width ${o / 1e3}s linear`);
702
+ }), u || l[0].classList.add("c-stepper__item--loading")), setInterval(() => {
674
703
  c.classList.contains("o-nav-button--visible") ? c.click() : h && d && (h.scrollLeft = 0, l && (l.forEach((g) => {
675
- const u = g.querySelector(".c-stepper__loader");
676
- u && u instanceof HTMLElement && (u.style.transition = "width 0s linear"), g.classList.remove("c-stepper__item--loading"), g.classList.remove("c-stepper__item--loaded"), setTimeout(() => {
677
- u && u instanceof HTMLElement && (u.style.transition = `width ${o / 1e3}s linear`);
704
+ const p = g.querySelector(".c-stepper__loader");
705
+ p && p instanceof HTMLElement && (p.style.transition = "width 0s linear"), g.classList.remove("c-stepper__item--loading"), g.classList.remove("c-stepper__item--loaded"), setTimeout(() => {
706
+ p && p instanceof HTMLElement && (p.style.transition = `width ${o / 1e3}s linear`);
678
707
  }, 0);
679
708
  }), setTimeout(() => {
680
709
  l[0].classList.add("c-stepper__item--loading");
@@ -683,7 +712,7 @@ const te = () => document.querySelectorAll(".js-modal").forEach((s) => {
683
712
  }
684
713
  }
685
714
  }
686
- }, re = () => {
715
+ }, ae = () => {
687
716
  const s = document.querySelectorAll(".js-navigation-container");
688
717
  for (const t of Array.from(s))
689
718
  if (t) {
@@ -696,7 +725,7 @@ const te = () => document.querySelectorAll(".js-modal").forEach((s) => {
696
725
  );
697
726
  e && i && n && window.addEventListener(
698
727
  "resize",
699
- ne.bind(!1, {
728
+ oe.bind(!1, {
700
729
  navigatedList: e,
701
730
  nextBtn: i,
702
731
  prevBtn: n
@@ -715,7 +744,7 @@ function w(s, t, e) {
715
744
  function _(s, t) {
716
745
  return s.x = t.x, s.y = t.y, t.id !== void 0 && (s.id = t.id), s;
717
746
  }
718
- function ft(s) {
747
+ function mt(s) {
719
748
  s.x = Math.round(s.x), s.y = Math.round(s.y);
720
749
  }
721
750
  function W(s, t) {
@@ -735,17 +764,17 @@ function k(s, t, e) {
735
764
  function I(s, t, e, i) {
736
765
  s.style.transform = k(t, e, i);
737
766
  }
738
- const ae = "cubic-bezier(.4,0,.22,1)";
739
- function mt(s, t, e, i) {
740
- s.style.transition = t ? `${t} ${e}ms ${i || ae}` : "none";
767
+ const le = "cubic-bezier(.4,0,.22,1)";
768
+ function ft(s, t, e, i) {
769
+ s.style.transition = t ? `${t} ${e}ms ${i || le}` : "none";
741
770
  }
742
771
  function V(s, t, e) {
743
772
  s.style.width = typeof t == "number" ? `${t}px` : t, s.style.height = typeof e == "number" ? `${e}px` : e;
744
773
  }
745
- function le(s) {
746
- mt(s);
747
- }
748
774
  function he(s) {
775
+ ft(s);
776
+ }
777
+ function ce(s) {
749
778
  return "decode" in s ? s.decode().catch(() => {
750
779
  }) : s.complete ? Promise.resolve(s) : new Promise((t, e) => {
751
780
  s.onload = () => t(s), s.onerror = e;
@@ -757,10 +786,10 @@ const S = {
757
786
  LOADED: "loaded",
758
787
  ERROR: "error"
759
788
  };
760
- function ce(s) {
789
+ function de(s) {
761
790
  return "button" in s && s.button === 1 || s.ctrlKey || s.metaKey || s.altKey || s.shiftKey;
762
791
  }
763
- function de(s, t, e = document) {
792
+ function pe(s, t, e = document) {
764
793
  let i = [];
765
794
  if (s instanceof Element)
766
795
  i = [s];
@@ -876,13 +905,13 @@ function D(s, t, e, i, n) {
876
905
  }
877
906
  return Number(o) || 0;
878
907
  }
879
- function yt(s, t, e, i) {
908
+ function vt(s, t, e, i) {
880
909
  return {
881
910
  x: t.x - D("left", s, t, e, i) - D("right", s, t, e, i),
882
911
  y: t.y - D("top", s, t, e, i) - D("bottom", s, t, e, i)
883
912
  };
884
913
  }
885
- class pe {
914
+ class me {
886
915
  /**
887
916
  * @param {Slide} slide
888
917
  */
@@ -938,7 +967,7 @@ class pe {
938
967
  }
939
968
  }
940
969
  const it = 4e3;
941
- let vt = class {
970
+ let yt = class {
942
971
  /**
943
972
  * @param {PhotoSwipeOptions} options PhotoSwipe options
944
973
  * @param {SlideData} itemData Slide data
@@ -1031,11 +1060,11 @@ class fe {
1031
1060
  }, this.pan = {
1032
1061
  x: 0,
1033
1062
  y: 0
1034
- }, this.isFirstSlide = this.isActive && !i.opener.isOpen, this.zoomLevels = new vt(i.options, t, e, i), this.pswp.dispatch("gettingData", {
1063
+ }, this.isFirstSlide = this.isActive && !i.opener.isOpen, this.zoomLevels = new yt(i.options, t, e, i), this.pswp.dispatch("gettingData", {
1035
1064
  slide: this,
1036
1065
  data: this.data,
1037
1066
  index: e
1038
- }), this.content = this.pswp.contentLoader.getContentBySlide(this), this.container = w("pswp__zoom-wrap", "div"), this.holderElement = null, this.currZoomLevel = 1, this.width = this.content.width, this.height = this.content.height, this.heavyAppended = !1, this.bounds = new pe(this), this.prevDisplayedWidth = -1, this.prevDisplayedHeight = -1, this.pswp.dispatch("slideInit", {
1067
+ }), this.content = this.pswp.contentLoader.getContentBySlide(this), this.container = w("pswp__zoom-wrap", "div"), this.holderElement = null, this.currZoomLevel = 1, this.width = this.content.width, this.height = this.content.height, this.heavyAppended = !1, this.bounds = new me(this), this.prevDisplayedWidth = -1, this.prevDisplayedHeight = -1, this.pswp.dispatch("slideInit", {
1039
1068
  slide: this
1040
1069
  });
1041
1070
  }
@@ -1159,7 +1188,7 @@ class fe {
1159
1188
  transitionDuration: i
1160
1189
  }), o.animations.stopAllPan();
1161
1190
  const r = this.currZoomLevel;
1162
- n || (t = q(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), ft(this.pan);
1191
+ n || (t = q(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), mt(this.pan);
1163
1192
  const a = () => {
1164
1193
  this._setResolution(t), this.applyCurrentZoomPan();
1165
1194
  };
@@ -1260,7 +1289,7 @@ class fe {
1260
1289
  const {
1261
1290
  pswp: t
1262
1291
  } = this;
1263
- _(this.panAreaSize, yt(t.options, t.viewportSize, this.data, this.index)), this.zoomLevels.update(this.width, this.height, this.panAreaSize), t.dispatch("calcSlideSize", {
1292
+ _(this.panAreaSize, vt(t.options, t.viewportSize, this.data, this.index)), this.zoomLevels.update(this.width, this.height, this.panAreaSize), t.dispatch("calcSlideSize", {
1264
1293
  slide: this
1265
1294
  });
1266
1295
  }
@@ -1288,11 +1317,11 @@ class fe {
1288
1317
  t !== this.currentResolution && (this.currentResolution = t, this.updateContentSize(), this.pswp.dispatch("resolutionChanged"));
1289
1318
  }
1290
1319
  }
1291
- const me = 0.35, ge = 0.6, _e = 0.4, ye = 0.5;
1292
- function ve(s, t) {
1320
+ const ge = 0.35, _e = 0.6, ve = 0.4, ye = 0.5;
1321
+ function we(s, t) {
1293
1322
  return s * t / (1 - t);
1294
1323
  }
1295
- class we {
1324
+ class Se {
1296
1325
  /**
1297
1326
  * @param {Gestures} gestures
1298
1327
  */
@@ -1318,12 +1347,12 @@ class we {
1318
1347
  if (!this.pswp.dispatch("verticalDrag", {
1319
1348
  panY: o
1320
1349
  }).defaultPrevented) {
1321
- this._setPanWithFriction("y", o, ge);
1350
+ this._setPanWithFriction("y", o, _e);
1322
1351
  const r = 1 - Math.abs(this._getVerticalDragRatio(n.pan.y));
1323
1352
  this.pswp.applyBgOpacity(r), n.applyCurrentZoomPan();
1324
1353
  }
1325
1354
  } else
1326
- this._panOrMoveMainScroll("x") || (this._panOrMoveMainScroll("y"), n && (ft(n.pan), n.applyCurrentZoomPan()));
1355
+ this._panOrMoveMainScroll("x") || (this._panOrMoveMainScroll("y"), n && (mt(n.pan), n.applyCurrentZoomPan()));
1327
1356
  }
1328
1357
  end() {
1329
1358
  const {
@@ -1354,10 +1383,10 @@ class we {
1354
1383
  const {
1355
1384
  pan: n,
1356
1385
  bounds: o
1357
- } = i, r = n[t], a = this.pswp.bgOpacity < 1 && t === "y", h = r + ve(e[t], 0.995);
1386
+ } = i, r = n[t], a = this.pswp.bgOpacity < 1 && t === "y", h = r + we(e[t], 0.995);
1358
1387
  if (a) {
1359
- const u = this._getVerticalDragRatio(r), f = this._getVerticalDragRatio(h);
1360
- if (u < 0 && f < -0.4 || u > 0 && f > _e) {
1388
+ const p = this._getVerticalDragRatio(r), m = this._getVerticalDragRatio(h);
1389
+ if (p < 0 && m < -0.4 || p > 0 && m > ve) {
1361
1390
  this.pswp.close();
1362
1391
  return;
1363
1392
  }
@@ -1365,7 +1394,7 @@ class we {
1365
1394
  const c = o.correctPan(t, h);
1366
1395
  if (r === c)
1367
1396
  return;
1368
- const d = c === h ? 1 : 0.82, p = this.pswp.bgOpacity, g = c - r;
1397
+ const d = c === h ? 1 : 0.82, u = this.pswp.bgOpacity, g = c - r;
1369
1398
  this.pswp.animations.startSpring({
1370
1399
  name: "panGesture" + t,
1371
1400
  isPan: !0,
@@ -1373,12 +1402,12 @@ class we {
1373
1402
  end: c,
1374
1403
  velocity: e[t],
1375
1404
  dampingRatio: d,
1376
- onUpdate: (u) => {
1405
+ onUpdate: (p) => {
1377
1406
  if (a && this.pswp.bgOpacity < 1) {
1378
- const f = 1 - (c - u) / g;
1379
- this.pswp.applyBgOpacity(q(p + (1 - p) * f, 0, 1));
1407
+ const m = 1 - (c - p) / g;
1408
+ this.pswp.applyBgOpacity(q(u + (1 - u) * m, 0, 1));
1380
1409
  }
1381
- n[t] = Math.floor(u), i.applyCurrentZoomPan();
1410
+ n[t] = Math.floor(p), i.applyCurrentZoomPan();
1382
1411
  }
1383
1412
  });
1384
1413
  }
@@ -1410,20 +1439,20 @@ class we {
1410
1439
  bounds: c
1411
1440
  } = r, d = r.pan[t] + l;
1412
1441
  if (this.pswp.options.allowPanToNext && i === "x" && t === "x" && !o) {
1413
- const p = a.getCurrSlideX(), g = a.x - p, u = l > 0, f = !u;
1414
- if (d > c.min[t] && u) {
1442
+ const u = a.getCurrSlideX(), g = a.x - u, p = l > 0, m = !p;
1443
+ if (d > c.min[t] && p) {
1415
1444
  if (c.min[t] <= this.startPan[t])
1416
1445
  return a.moveTo(h, !0), !0;
1417
1446
  this._setPanWithFriction(t, d);
1418
- } else if (d < c.max[t] && f) {
1447
+ } else if (d < c.max[t] && m) {
1419
1448
  if (this.startPan[t] <= c.max[t])
1420
1449
  return a.moveTo(h, !0), !0;
1421
1450
  this._setPanWithFriction(t, d);
1422
1451
  } else if (g !== 0) {
1423
1452
  if (g > 0)
1424
- return a.moveTo(Math.max(h, p), !0), !0;
1453
+ return a.moveTo(Math.max(h, u), !0), !0;
1425
1454
  if (g < 0)
1426
- return a.moveTo(Math.min(h, p), !0), !0;
1455
+ return a.moveTo(Math.min(h, u), !0), !0;
1427
1456
  } else
1428
1457
  this._setPanWithFriction(t, d);
1429
1458
  } else
@@ -1469,16 +1498,16 @@ class we {
1469
1498
  } = n;
1470
1499
  if (r.correctPan(t, e) !== e || i) {
1471
1500
  const l = Math.round(e - o[t]);
1472
- o[t] += l * (i || me);
1501
+ o[t] += l * (i || ge);
1473
1502
  } else
1474
1503
  o[t] = e;
1475
1504
  }
1476
1505
  }
1477
- const Se = 0.05, be = 0.15;
1506
+ const be = 0.05, Le = 0.15;
1478
1507
  function st(s, t, e) {
1479
1508
  return s.x = (t.x + e.x) / 2, s.y = (t.y + e.y) / 2, s;
1480
1509
  }
1481
- class Le {
1510
+ class Ee {
1482
1511
  /**
1483
1512
  * @param {Gestures} gestures
1484
1513
  */
@@ -1524,8 +1553,8 @@ class Le {
1524
1553
  bgOpacity: c
1525
1554
  }).defaultPrevented || o.applyBgOpacity(c);
1526
1555
  } else
1527
- h = a - (a - h) * be;
1528
- else h > l && (h = l + (h - l) * Se);
1556
+ h = a - (a - h) * Le;
1557
+ else h > l && (h = l + (h - l) * be);
1529
1558
  r.pan.x = this._calculatePanForZoomLevel("x", h), r.pan.y = this._calculatePanForZoomLevel("y", h), r.setZoomLevel(h), r.applyCurrentZoomPan();
1530
1559
  }
1531
1560
  end() {
@@ -1593,15 +1622,15 @@ class Le {
1593
1622
  velocity: 0,
1594
1623
  dampingRatio: 1,
1595
1624
  naturalFrequency: 40,
1596
- onUpdate: (p) => {
1597
- if (p /= 1e3, d || r) {
1598
- if (d && (i.pan.x = h.x + (c.x - h.x) * p, i.pan.y = h.y + (c.y - h.y) * p), r) {
1599
- const g = n + (o - n) * p;
1625
+ onUpdate: (u) => {
1626
+ if (u /= 1e3, d || r) {
1627
+ if (d && (i.pan.x = h.x + (c.x - h.x) * u, i.pan.y = h.y + (c.y - h.y) * u), r) {
1628
+ const g = n + (o - n) * u;
1600
1629
  i.setZoomLevel(g);
1601
1630
  }
1602
1631
  i.applyCurrentZoomPan();
1603
1632
  }
1604
- l && e.bgOpacity < 1 && e.applyBgOpacity(q(a + (1 - a) * p, 0, 1));
1633
+ l && e.bgOpacity < 1 && e.applyBgOpacity(q(a + (1 - a) * u, 0, 1));
1605
1634
  },
1606
1635
  onComplete: () => {
1607
1636
  i._setResolution(o), i.applyCurrentZoomPan();
@@ -1613,7 +1642,7 @@ function nt(s) {
1613
1642
  return !!/** @type {HTMLElement} */
1614
1643
  s.target.closest(".pswp__container");
1615
1644
  }
1616
- class Ee {
1645
+ class Pe {
1617
1646
  /**
1618
1647
  * @param {Gestures} gestures
1619
1648
  */
@@ -1687,8 +1716,8 @@ class Ee {
1687
1716
  }
1688
1717
  }
1689
1718
  }
1690
- const Pe = 10, Ae = 300, xe = 25;
1691
- class Ie {
1719
+ const Ae = 10, xe = 300, Ie = 25;
1720
+ class Ce {
1692
1721
  /**
1693
1722
  * @param {PhotoSwipe} pswp
1694
1723
  */
@@ -1720,7 +1749,7 @@ class Ie {
1720
1749
  }, this._intervalP1 = {
1721
1750
  x: 0,
1722
1751
  y: 0
1723
- }, this._numActivePoints = 0, this._ongoingPointers = [], this._touchEventEnabled = "ontouchstart" in window, this._pointerEventEnabled = !!window.PointerEvent, this.supportsTouch = this._touchEventEnabled || this._pointerEventEnabled && navigator.maxTouchPoints > 1, this._numActivePoints = 0, this._intervalTime = 0, this._velocityCalculated = !1, this.isMultitouch = !1, this.isDragging = !1, this.isZooming = !1, this.raf = null, this._tapTimer = null, this.supportsTouch || (t.options.allowPanToNext = !1), this.drag = new we(this), this.zoomLevels = new Le(this), this.tapHandler = new Ee(this), t.on("bindEvents", () => {
1752
+ }, this._numActivePoints = 0, this._ongoingPointers = [], this._touchEventEnabled = "ontouchstart" in window, this._pointerEventEnabled = !!window.PointerEvent, this.supportsTouch = this._touchEventEnabled || this._pointerEventEnabled && navigator.maxTouchPoints > 1, this._numActivePoints = 0, this._intervalTime = 0, this._velocityCalculated = !1, this.isMultitouch = !1, this.isDragging = !1, this.isZooming = !1, this.raf = null, this._tapTimer = null, this.supportsTouch || (t.options.allowPanToNext = !1), this.drag = new Se(this), this.zoomLevels = new Ee(this), this.tapHandler = new Pe(this), t.on("bindEvents", () => {
1724
1753
  t.events.add(
1725
1754
  t.scrollWrap,
1726
1755
  "click",
@@ -1840,8 +1869,8 @@ class Ie {
1840
1869
  this.tapHandler.click(this.startP1, t);
1841
1870
  return;
1842
1871
  }
1843
- const i = this.pswp.options.doubleTapAction ? Ae : 0;
1844
- this._tapTimer ? (this._clearTapTimer(), W(this._lastStartP1, this.startP1) < xe && this.tapHandler.doubleTap(this.startP1, t)) : (_(this._lastStartP1, this.startP1), this._tapTimer = setTimeout(() => {
1872
+ const i = this.pswp.options.doubleTapAction ? xe : 0;
1873
+ this._tapTimer ? (this._clearTapTimer(), W(this._lastStartP1, this.startP1) < Ie && this.tapHandler.doubleTap(this.startP1, t)) : (_(this._lastStartP1, this.startP1), this._tapTimer = setTimeout(() => {
1845
1874
  this.tapHandler.tap(this.startP1, t), this._clearTapTimer();
1846
1875
  }, i));
1847
1876
  }
@@ -1927,7 +1956,7 @@ class Ie {
1927
1956
  const t = Math.abs(this.p1.x - this.startP1.x) - Math.abs(this.p1.y - this.startP1.y);
1928
1957
  if (t !== 0) {
1929
1958
  const e = t > 0 ? "x" : "y";
1930
- Math.abs(this.p1[e] - this.startP1[e]) >= Pe && (this.dragAxis = e);
1959
+ Math.abs(this.p1[e] - this.startP1[e]) >= Ae && (this.dragAxis = e);
1931
1960
  }
1932
1961
  }
1933
1962
  }
@@ -1951,8 +1980,8 @@ class Ie {
1951
1980
  this.pswp.mainScroll.isShifted() && (t.preventDefault(), t.stopPropagation());
1952
1981
  }
1953
1982
  }
1954
- const Ce = 0.35;
1955
- class Te {
1983
+ const Te = 0.35;
1984
+ class ze {
1956
1985
  /**
1957
1986
  * @param {PhotoSwipe} pswp
1958
1987
  */
@@ -2105,7 +2134,7 @@ class Te {
2105
2134
  let i = (this.slideWidth * this._currPositionIndex - t) / this.slideWidth;
2106
2135
  i += this.pswp.currIndex;
2107
2136
  const n = Math.round(t - this.x);
2108
- (i < 0 && n > 0 || i >= this.pswp.getNumItems() - 1 && n < 0) && (t = this.x + n * Ce);
2137
+ (i < 0 && n > 0 || i >= this.pswp.getNumItems() - 1 && n < 0) && (t = this.x + n * Te);
2109
2138
  }
2110
2139
  this.x = t, this.pswp.container && I(this.pswp.container, t), this.pswp.dispatch("moveMainScroll", {
2111
2140
  x: t,
@@ -2113,7 +2142,7 @@ class Te {
2113
2142
  });
2114
2143
  }
2115
2144
  }
2116
- const ze = {
2145
+ const Oe = {
2117
2146
  Escape: 27,
2118
2147
  z: 90,
2119
2148
  ArrowLeft: 37,
@@ -2121,8 +2150,8 @@ const ze = {
2121
2150
  ArrowRight: 39,
2122
2151
  ArrowDown: 40,
2123
2152
  Tab: 9
2124
- }, x = (s, t) => t ? s : ze[s];
2125
- class Oe {
2153
+ }, x = (s, t) => t ? s : Oe[s];
2154
+ class De {
2126
2155
  /**
2127
2156
  * @param {PhotoSwipe} pswp
2128
2157
  */
@@ -2162,7 +2191,7 @@ class Oe {
2162
2191
  } = this;
2163
2192
  if (e.dispatch("keydown", {
2164
2193
  originalEvent: t
2165
- }).defaultPrevented || ce(t))
2194
+ }).defaultPrevented || de(t))
2166
2195
  return;
2167
2196
  let i, n, o = !1;
2168
2197
  const r = "key" in t;
@@ -2214,8 +2243,8 @@ class Oe {
2214
2243
  ) && e.focus();
2215
2244
  }
2216
2245
  }
2217
- const De = "cubic-bezier(.4,0,.22,1)";
2218
- class Me {
2246
+ const Me = "cubic-bezier(.4,0,.22,1)";
2247
+ class $e {
2219
2248
  /**
2220
2249
  * onComplete can be unpredictable, be careful about current state
2221
2250
  *
@@ -2231,12 +2260,12 @@ class Me {
2231
2260
  onFinish: r = () => {
2232
2261
  },
2233
2262
  duration: a = 333,
2234
- easing: l = De
2263
+ easing: l = Me
2235
2264
  } = t;
2236
2265
  this.onFinish = r;
2237
2266
  const h = o ? "transform" : "opacity", c = (e = t[h]) !== null && e !== void 0 ? e : "";
2238
2267
  this._target = i, this._onComplete = n, this._finished = !1, this._onTransitionEnd = this._onTransitionEnd.bind(this), this._helperTimeout = setTimeout(() => {
2239
- mt(i, h, a, l), this._helperTimeout = setTimeout(() => {
2268
+ ft(i, h, a, l), this._helperTimeout = setTimeout(() => {
2240
2269
  i.addEventListener("transitionend", this._onTransitionEnd, !1), i.addEventListener("transitioncancel", this._onTransitionEnd, !1), this._helperTimeout = setTimeout(() => {
2241
2270
  this._finalizeAnimation();
2242
2271
  }, a + 500), i.style[h] = c;
@@ -2258,11 +2287,11 @@ class Me {
2258
2287
  }
2259
2288
  // Destroy is called automatically onFinish
2260
2289
  destroy() {
2261
- this._helperTimeout && clearTimeout(this._helperTimeout), le(this._target), this._target.removeEventListener("transitionend", this._onTransitionEnd, !1), this._target.removeEventListener("transitioncancel", this._onTransitionEnd, !1), this._finished || this._finalizeAnimation();
2290
+ this._helperTimeout && clearTimeout(this._helperTimeout), he(this._target), this._target.removeEventListener("transitionend", this._onTransitionEnd, !1), this._target.removeEventListener("transitioncancel", this._onTransitionEnd, !1), this._finished || this._finalizeAnimation();
2262
2291
  }
2263
2292
  }
2264
- const Ze = 12, $e = 0.75;
2265
- class Fe {
2293
+ const Ze = 12, Fe = 0.75;
2294
+ class Re {
2266
2295
  /**
2267
2296
  * @param {number} initialVelocity Initial velocity, px per ms.
2268
2297
  *
@@ -2279,7 +2308,7 @@ class Fe {
2279
2308
  * Recommended value from 10 to 50
2280
2309
  */
2281
2310
  constructor(t, e, i) {
2282
- this.velocity = t * 1e3, this._dampingRatio = e || $e, this._naturalFrequency = i || Ze, this._dampedFrequency = this._naturalFrequency, this._dampingRatio < 1 && (this._dampedFrequency *= Math.sqrt(1 - this._dampingRatio * this._dampingRatio));
2311
+ this.velocity = t * 1e3, this._dampingRatio = e || Fe, this._naturalFrequency = i || Ze, this._dampedFrequency = this._naturalFrequency, this._dampingRatio < 1 && (this._dampedFrequency *= Math.sqrt(1 - this._dampingRatio * this._dampingRatio));
2283
2312
  }
2284
2313
  /**
2285
2314
  * @param {number} deltaPosition Difference between current and end position of the animation
@@ -2301,7 +2330,7 @@ class Fe {
2301
2330
  return i;
2302
2331
  }
2303
2332
  }
2304
- class Re {
2333
+ class ke {
2305
2334
  /**
2306
2335
  * @param {SpringAnimationProps} props
2307
2336
  */
@@ -2319,10 +2348,10 @@ class Re {
2319
2348
  naturalFrequency: h
2320
2349
  } = t;
2321
2350
  this.onFinish = a;
2322
- const c = new Fe(n, l, h);
2323
- let d = Date.now(), p = e - i;
2351
+ const c = new Re(n, l, h);
2352
+ let d = Date.now(), u = e - i;
2324
2353
  const g = () => {
2325
- this._raf && (p = c.easeFrame(p, Date.now() - d), Math.abs(p) < 1 && Math.abs(c.velocity) < 50 ? (o(i), r && r(), this.onFinish()) : (d = Date.now(), o(p + i), this._raf = requestAnimationFrame(g)));
2354
+ this._raf && (u = c.easeFrame(u, Date.now() - d), Math.abs(u) < 1 && Math.abs(c.velocity) < 50 ? (o(i), r && r(), this.onFinish()) : (d = Date.now(), o(u + i), this._raf = requestAnimationFrame(g)));
2326
2355
  };
2327
2356
  this._raf = requestAnimationFrame(g);
2328
2357
  }
@@ -2331,7 +2360,7 @@ class Re {
2331
2360
  this._raf >= 0 && cancelAnimationFrame(this._raf), this._raf = 0;
2332
2361
  }
2333
2362
  }
2334
- class ke {
2363
+ class qe {
2335
2364
  constructor() {
2336
2365
  this.activeAnimations = [];
2337
2366
  }
@@ -2354,10 +2383,10 @@ class ke {
2354
2383
  * @returns {Animation}
2355
2384
  */
2356
2385
  _start(t, e) {
2357
- const i = e ? new Re(
2386
+ const i = e ? new ke(
2358
2387
  /** @type SpringAnimationProps */
2359
2388
  t
2360
- ) : new Me(
2389
+ ) : new $e(
2361
2390
  /** @type CssAnimationProps */
2362
2391
  t
2363
2392
  );
@@ -2400,7 +2429,7 @@ class ke {
2400
2429
  return this.activeAnimations.some((t) => t.props.isPan);
2401
2430
  }
2402
2431
  }
2403
- class qe {
2432
+ class Ne {
2404
2433
  /**
2405
2434
  * @param {PhotoSwipe} pswp
2406
2435
  */
@@ -2442,7 +2471,7 @@ class qe {
2442
2471
  e.isPannable() && (t.deltaMode === 1 && (i *= 18, n *= 18), e.panTo(e.pan.x - i, e.pan.y - n));
2443
2472
  }
2444
2473
  }
2445
- function Ne(s) {
2474
+ function He(s) {
2446
2475
  if (typeof s == "string")
2447
2476
  return s;
2448
2477
  if (!s || !s.isCustomSVG)
@@ -2480,13 +2509,13 @@ class Be {
2480
2509
  title: d
2481
2510
  } = e;
2482
2511
  const {
2483
- ariaLabel: p
2512
+ ariaLabel: u
2484
2513
  } = e;
2485
2514
  typeof t.options[n + "Title"] == "string" && (d = t.options[n + "Title"]), d && (l.title = d);
2486
- const g = p || d;
2515
+ const g = u || d;
2487
2516
  g && l.setAttribute("aria-label", g);
2488
2517
  }
2489
- l.innerHTML = Ne(o), e.onInit && e.onInit(l, t), e.onClick && (l.onclick = (d) => {
2518
+ l.innerHTML = He(o), e.onInit && e.onInit(l, t), e.onClick && (l.onclick = (d) => {
2490
2519
  typeof e.onClick == "string" ? t[e.onClick]() : typeof e.onClick == "function" && e.onClick(d, l, t);
2491
2520
  });
2492
2521
  const h = e.appendTo || "bar";
@@ -2499,7 +2528,7 @@ function wt(s, t, e) {
2499
2528
  t.options.loop || (e ? s.disabled = !(t.currIndex < t.getNumItems() - 1) : s.disabled = !(t.currIndex > 0));
2500
2529
  });
2501
2530
  }
2502
- const He = {
2531
+ const We = {
2503
2532
  name: "arrowPrev",
2504
2533
  className: "pswp__button--arrow--prev",
2505
2534
  title: "Previous",
@@ -2514,7 +2543,7 @@ const He = {
2514
2543
  },
2515
2544
  onClick: "prev",
2516
2545
  onInit: wt
2517
- }, We = {
2546
+ }, Ve = {
2518
2547
  name: "arrowNext",
2519
2548
  className: "pswp__button--arrow--next",
2520
2549
  title: "Next",
@@ -2531,7 +2560,7 @@ const He = {
2531
2560
  onInit: (s, t) => {
2532
2561
  wt(s, t, !0);
2533
2562
  }
2534
- }, Ve = {
2563
+ }, je = {
2535
2564
  name: "close",
2536
2565
  title: "Close",
2537
2566
  order: 20,
@@ -2542,7 +2571,7 @@ const He = {
2542
2571
  outlineID: "pswp__icn-close"
2543
2572
  },
2544
2573
  onClick: "close"
2545
- }, je = {
2574
+ }, Ue = {
2546
2575
  name: "zoom",
2547
2576
  title: "Zoom",
2548
2577
  order: 10,
@@ -2554,7 +2583,7 @@ const He = {
2554
2583
  outlineID: "pswp__icn-zoom"
2555
2584
  },
2556
2585
  onClick: "toggleZoom"
2557
- }, Ue = {
2586
+ }, Ge = {
2558
2587
  name: "preloader",
2559
2588
  appendTo: "bar",
2560
2589
  order: 7,
@@ -2585,7 +2614,7 @@ const He = {
2585
2614
  t.currSlide === a.slide && r();
2586
2615
  }), t.ui && (t.ui.updatePreloaderVisibility = r);
2587
2616
  }
2588
- }, Ge = {
2617
+ }, Ke = {
2589
2618
  name: "counter",
2590
2619
  order: 5,
2591
2620
  onInit: (s, t) => {
@@ -2597,7 +2626,7 @@ const He = {
2597
2626
  function ot(s, t) {
2598
2627
  s.classList.toggle("pswp--zoomed-in", t);
2599
2628
  }
2600
- class Ke {
2629
+ class Xe {
2601
2630
  /**
2602
2631
  * @param {PhotoSwipe} pswp
2603
2632
  */
@@ -2609,7 +2638,7 @@ class Ke {
2609
2638
  const {
2610
2639
  pswp: t
2611
2640
  } = this;
2612
- this.isRegistered = !1, this.uiElementsData = [Ve, He, We, je, Ue, Ge], t.dispatch("uiRegister"), this.uiElementsData.sort((e, i) => (e.order || 0) - (i.order || 0)), this.items = [], this.isRegistered = !0, this.uiElementsData.forEach((e) => {
2641
+ this.isRegistered = !1, this.uiElementsData = [je, We, Ve, Ue, Ge, Ke], t.dispatch("uiRegister"), this.uiElementsData.sort((e, i) => (e.order || 0) - (i.order || 0)), this.items = [], this.isRegistered = !0, this.uiElementsData.forEach((e) => {
2613
2642
  this.registerElement(e);
2614
2643
  }), t.on("change", () => {
2615
2644
  var e;
@@ -2652,7 +2681,7 @@ class Ke {
2652
2681
  ot(t, r <= n), (i.imageClickAction === "zoom" || i.imageClickAction === "zoom-or-close") && t.classList.add("pswp--click-to-zoom");
2653
2682
  }
2654
2683
  }
2655
- function Xe(s) {
2684
+ function Ye(s) {
2656
2685
  const t = s.getBoundingClientRect();
2657
2686
  return {
2658
2687
  x: t.left,
@@ -2660,7 +2689,7 @@ function Xe(s) {
2660
2689
  w: t.width
2661
2690
  };
2662
2691
  }
2663
- function Ye(s, t, e) {
2692
+ function Qe(s, t, e) {
2664
2693
  const i = s.getBoundingClientRect(), n = i.width / t, o = i.height / e, r = n > o ? n : o, a = (i.width - t * r) / 2, l = (i.height - e * r) / 2, h = {
2665
2694
  x: i.left + a,
2666
2695
  y: i.top + l,
@@ -2673,7 +2702,7 @@ function Ye(s, t, e) {
2673
2702
  y: l
2674
2703
  }, h;
2675
2704
  }
2676
- function Qe(s, t, e) {
2705
+ function Je(s, t, e) {
2677
2706
  const i = e.dispatch("thumbBounds", {
2678
2707
  index: s,
2679
2708
  itemData: t,
@@ -2692,9 +2721,9 @@ function Qe(s, t, e) {
2692
2721
  n.querySelector(a)
2693
2722
  );
2694
2723
  }
2695
- return r = e.applyFilters("thumbEl", r, t, s), r && (t.thumbCropped ? o = Ye(r, t.width || t.w || 0, t.height || t.h || 0) : o = Xe(r)), e.applyFilters("thumbBounds", o, t, s);
2724
+ return r = e.applyFilters("thumbEl", r, t, s), r && (t.thumbCropped ? o = Qe(r, t.width || t.w || 0, t.height || t.h || 0) : o = Ye(r)), e.applyFilters("thumbBounds", o, t, s);
2696
2725
  }
2697
- let Je = class {
2726
+ let ti = class {
2698
2727
  /**
2699
2728
  * @param {T} type
2700
2729
  * @param {PhotoSwipeEventsMap[T]} [details]
@@ -2705,7 +2734,7 @@ let Je = class {
2705
2734
  preventDefault() {
2706
2735
  this.defaultPrevented = !0;
2707
2736
  }
2708
- }, ti = class {
2737
+ }, ei = class {
2709
2738
  constructor() {
2710
2739
  this._listeners = {}, this._filters = {}, this.pswp = void 0, this.options = void 0;
2711
2740
  }
@@ -2772,13 +2801,13 @@ let Je = class {
2772
2801
  return this.pswp.dispatch(t, e);
2773
2802
  const n = (
2774
2803
  /** @type {AugmentedEvent<T>} */
2775
- new Je(t, e)
2804
+ new ti(t, e)
2776
2805
  );
2777
2806
  return (i = this._listeners[t]) === null || i === void 0 || i.forEach((o) => {
2778
2807
  o.call(this, n);
2779
2808
  }), n;
2780
2809
  }
2781
- }, ei = class {
2810
+ }, ii = class {
2782
2811
  /**
2783
2812
  * @param {string | false} imageSrc
2784
2813
  * @param {HTMLElement} container
@@ -2804,7 +2833,7 @@ let Je = class {
2804
2833
  var t;
2805
2834
  (t = this.element) !== null && t !== void 0 && t.parentNode && this.element.remove(), this.element = null;
2806
2835
  }
2807
- }, ii = class {
2836
+ }, si = class {
2808
2837
  /**
2809
2838
  * @param {SlideData} itemData Slide data
2810
2839
  * @param {PhotoSwipeBase} instance PhotoSwipe or PhotoSwipeLightbox instance
@@ -2839,7 +2868,7 @@ let Je = class {
2839
2868
  this.data.msrc && this.slide.isFirstSlide ? this.data.msrc : !1,
2840
2869
  this
2841
2870
  );
2842
- this.placeholder = new ei(i, this.slide.container);
2871
+ this.placeholder = new ii(i, this.slide.container);
2843
2872
  }
2844
2873
  this.element && !e || this.instance.dispatch("contentLoad", {
2845
2874
  content: this,
@@ -3049,7 +3078,7 @@ let Je = class {
3049
3078
  }).defaultPrevented || (this.slide && this.element && !this.element.parentNode && this.slide.container.appendChild(this.element), (this.state === S.LOADED || this.state === S.ERROR) && this.removePlaceholder()));
3050
3079
  }
3051
3080
  };
3052
- const si = 5;
3081
+ const ni = 5;
3053
3082
  function St(s, t, e) {
3054
3083
  const i = t.createContentFromData(s, e);
3055
3084
  let n;
@@ -3057,15 +3086,15 @@ function St(s, t, e) {
3057
3086
  options: o
3058
3087
  } = t;
3059
3088
  if (o) {
3060
- n = new vt(o, s, -1);
3089
+ n = new yt(o, s, -1);
3061
3090
  let r;
3062
3091
  t.pswp ? r = t.pswp.viewportSize : r = _t(o, t);
3063
- const a = yt(o, r, s, e);
3092
+ const a = vt(o, r, s, e);
3064
3093
  n.update(i.width, i.height, a);
3065
3094
  }
3066
3095
  return i.lazyLoad(), n && i.setDisplayedSize(Math.ceil(i.width * n.initial), Math.ceil(i.height * n.initial)), i;
3067
3096
  }
3068
- function ni(s, t) {
3097
+ function oi(s, t) {
3069
3098
  const e = t.getItemData(s);
3070
3099
  if (!t.dispatch("lazyLoadSlide", {
3071
3100
  index: s,
@@ -3073,12 +3102,12 @@ function ni(s, t) {
3073
3102
  }).defaultPrevented)
3074
3103
  return St(e, t, s);
3075
3104
  }
3076
- class oi {
3105
+ class ri {
3077
3106
  /**
3078
3107
  * @param {PhotoSwipe} pswp
3079
3108
  */
3080
3109
  constructor(t) {
3081
- this.pswp = t, this.limit = Math.max(t.options.preload[0] + t.options.preload[1] + 1, si), this._cachedItems = [];
3110
+ this.pswp = t, this.limit = Math.max(t.options.preload[0] + t.options.preload[1] + 1, ni), this._cachedItems = [];
3082
3111
  }
3083
3112
  /**
3084
3113
  * Lazy load nearby slides based on `preload` option.
@@ -3106,7 +3135,7 @@ class oi {
3106
3135
  loadSlideByIndex(t) {
3107
3136
  const e = this.pswp.getLoopedIndex(t);
3108
3137
  let i = this.getContentByIndex(e);
3109
- i || (i = ni(e, this.pswp), i && this.addToCache(i));
3138
+ i || (i = oi(e, this.pswp), i && this.addToCache(i));
3110
3139
  }
3111
3140
  /**
3112
3141
  * @param {Slide} slide
@@ -3145,7 +3174,7 @@ class oi {
3145
3174
  this._cachedItems.forEach((t) => t.destroy()), this._cachedItems = [];
3146
3175
  }
3147
3176
  }
3148
- let ri = class extends ti {
3177
+ let ai = class extends ei {
3149
3178
  /**
3150
3179
  * Get total number of slides
3151
3180
  *
@@ -3168,7 +3197,7 @@ let ri = class extends ti {
3168
3197
  * @returns {Content}
3169
3198
  */
3170
3199
  createContentFromData(t, e) {
3171
- return new ii(t, this, e);
3200
+ return new si(t, this, e);
3172
3201
  }
3173
3202
  /**
3174
3203
  * Get item data by index.
@@ -3202,7 +3231,7 @@ let ri = class extends ti {
3202
3231
  */
3203
3232
  _getGalleryDOMElements(t) {
3204
3233
  var e, i;
3205
- return (e = this.options) !== null && e !== void 0 && e.children || (i = this.options) !== null && i !== void 0 && i.childSelector ? de(this.options.children, this.options.childSelector, t) || [] : [t];
3234
+ return (e = this.options) !== null && e !== void 0 && e.children || (i = this.options) !== null && i !== void 0 && i.childSelector ? pe(this.options.children, this.options.childSelector, t) || [] : [t];
3206
3235
  }
3207
3236
  /**
3208
3237
  * Converts DOM element to item data object.
@@ -3240,7 +3269,7 @@ let ri = class extends ti {
3240
3269
  }
3241
3270
  };
3242
3271
  const O = 3e-3;
3243
- class ai {
3272
+ class li {
3244
3273
  /**
3245
3274
  * @param {PhotoSwipe} pswp
3246
3275
  */
@@ -3293,7 +3322,7 @@ class ai {
3293
3322
  _start() {
3294
3323
  this.isOpening && this._useAnimation && this._placeholder && this._placeholder.tagName === "IMG" ? new Promise((t) => {
3295
3324
  let e = !1, i = !0;
3296
- he(
3325
+ ce(
3297
3326
  /** @type {HTMLImageElement} */
3298
3327
  this._placeholder
3299
3328
  ).finally(() => {
@@ -3384,7 +3413,7 @@ class ai {
3384
3413
  o[e] = i, n.startTransition(o);
3385
3414
  }
3386
3415
  }
3387
- const li = {
3416
+ const hi = {
3388
3417
  allowPanToNext: !0,
3389
3418
  spacing: 0.1,
3390
3419
  loop: !0,
@@ -3411,7 +3440,7 @@ const li = {
3411
3440
  preload: [1, 2],
3412
3441
  easing: "cubic-bezier(.4,0,.22,1)"
3413
3442
  };
3414
- class hi extends ri {
3443
+ class ci extends ai {
3415
3444
  /**
3416
3445
  * @param {PhotoSwipeOptions} [options]
3417
3446
  */
@@ -3425,7 +3454,7 @@ class hi extends ri {
3425
3454
  }, this.viewportSize = {
3426
3455
  x: 0,
3427
3456
  y: 0
3428
- }, 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 ue(), this.animations = new ke(), this.mainScroll = new Te(this), this.gestures = new Ie(this), this.opener = new ai(this), this.keyboard = new Oe(this), this.contentLoader = new oi(this);
3457
+ }, 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 ue(), this.animations = new qe(), this.mainScroll = new ze(this), this.gestures = new Ce(this), this.opener = new li(this), this.keyboard = new De(this), this.contentLoader = new ri(this);
3429
3458
  }
3430
3459
  /** @returns {boolean} */
3431
3460
  init() {
@@ -3433,7 +3462,7 @@ class hi extends ri {
3433
3462
  return !1;
3434
3463
  this.isOpen = !0, this.dispatch("init"), this.dispatch("beforeOpen"), this._createMainStructure();
3435
3464
  let t = "pswp--open";
3436
- return this.gestures.supportsTouch && (t += " pswp--touch"), this.options.mainClass && (t += " " + this.options.mainClass), this.element && (this.element.className += " " + t), this.currIndex = this.options.index || 0, this.potentialIndex = this.currIndex, this.dispatch("firstUpdate"), this.scrollWheel = new qe(this), (Number.isNaN(this.currIndex) || this.currIndex < 0 || this.currIndex >= this.getNumItems()) && (this.currIndex = 0), this.gestures.supportsTouch || this.mouseDetected(), this.updateSize(), this.offset.y = window.pageYOffset, this._initialItemData = this.getItemData(this.currIndex), this.dispatch("gettingData", {
3465
+ return this.gestures.supportsTouch && (t += " pswp--touch"), this.options.mainClass && (t += " " + this.options.mainClass), this.element && (this.element.className += " " + t), this.currIndex = this.options.index || 0, this.potentialIndex = this.currIndex, this.dispatch("firstUpdate"), this.scrollWheel = new Ne(this), (Number.isNaN(this.currIndex) || this.currIndex < 0 || this.currIndex >= this.getNumItems()) && (this.currIndex = 0), this.gestures.supportsTouch || this.mouseDetected(), this.updateSize(), this.offset.y = window.pageYOffset, this._initialItemData = this.getItemData(this.currIndex), this.dispatch("gettingData", {
3437
3466
  index: this.currIndex,
3438
3467
  data: this._initialItemData,
3439
3468
  slide: void 0
@@ -3622,7 +3651,7 @@ class hi extends ri {
3622
3651
  * @private
3623
3652
  */
3624
3653
  _createMainStructure() {
3625
- this.element = w("pswp", "div"), this.element.setAttribute("tabindex", "-1"), this.element.setAttribute("role", "dialog"), this.template = this.element, this.bg = w("pswp__bg", "div", this.element), this.scrollWrap = w("pswp__scroll-wrap", "section", this.element), this.container = w("pswp__container", "div", this.scrollWrap), this.scrollWrap.setAttribute("aria-roledescription", "carousel"), this.container.setAttribute("aria-live", "off"), this.container.setAttribute("id", "pswp__items"), this.mainScroll.appendHolders(), this.ui = new Ke(this), this.ui.init(), (this.options.appendToEl || document.body).appendChild(this.element);
3654
+ this.element = w("pswp", "div"), this.element.setAttribute("tabindex", "-1"), this.element.setAttribute("role", "dialog"), this.template = this.element, this.bg = w("pswp__bg", "div", this.element), this.scrollWrap = w("pswp__scroll-wrap", "section", this.element), this.container = w("pswp__container", "div", this.scrollWrap), this.scrollWrap.setAttribute("aria-roledescription", "carousel"), this.container.setAttribute("aria-live", "off"), this.container.setAttribute("id", "pswp__items"), this.mainScroll.appendHolders(), this.ui = new Xe(this), this.ui.init(), (this.options.appendToEl || document.body).appendChild(this.element);
3626
3655
  }
3627
3656
  /**
3628
3657
  * Get position and dimensions of small thumbnail
@@ -3633,7 +3662,7 @@ class hi extends ri {
3633
3662
  * @returns {Bounds | undefined}
3634
3663
  */
3635
3664
  getThumbBounds() {
3636
- return Qe(this.currIndex, this.currSlide ? this.currSlide.data : this._initialItemData, this);
3665
+ return Je(this.currIndex, this.currSlide ? this.currSlide.data : this._initialItemData, this);
3637
3666
  }
3638
3667
  /**
3639
3668
  * If the PhotoSwipe can have continuous loop
@@ -3649,7 +3678,7 @@ class hi extends ri {
3649
3678
  */
3650
3679
  _prepareOptions(t) {
3651
3680
  return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches && (t.showHideAnimationType = "none", t.zoomAnimationDuration = 0), {
3652
- ...li,
3681
+ ...hi,
3653
3682
  ...t
3654
3683
  };
3655
3684
  }
@@ -3662,7 +3691,7 @@ function M(s, t, e) {
3662
3691
  const i = document.createElement(t);
3663
3692
  return s && (i.className = s), e && e.appendChild(i), i;
3664
3693
  }
3665
- function ci(s, t, e) {
3694
+ function di(s, t, e) {
3666
3695
  let i = `translate3d(${s}px,0px,0)`;
3667
3696
  return e !== void 0 && (i += ` scale3d(${e},${e},1)`), i;
3668
3697
  }
@@ -3675,10 +3704,10 @@ const b = {
3675
3704
  LOADED: "loaded",
3676
3705
  ERROR: "error"
3677
3706
  };
3678
- function di(s) {
3707
+ function pi(s) {
3679
3708
  return "button" in s && s.button === 1 || s.ctrlKey || s.metaKey || s.altKey || s.shiftKey;
3680
3709
  }
3681
- function Z(s, t, e = document) {
3710
+ function $(s, t, e = document) {
3682
3711
  let i = [];
3683
3712
  if (s instanceof Element)
3684
3713
  i = [s];
@@ -3696,7 +3725,7 @@ function ui(s) {
3696
3725
  function rt() {
3697
3726
  return !!(navigator.vendor && navigator.vendor.match(/apple/i));
3698
3727
  }
3699
- class pi {
3728
+ class mi {
3700
3729
  /**
3701
3730
  * @param {T} type
3702
3731
  * @param {PhotoSwipeEventsMap[T]} [details]
@@ -3775,14 +3804,14 @@ class fi {
3775
3804
  return this.pswp.dispatch(t, e);
3776
3805
  const n = (
3777
3806
  /** @type {AugmentedEvent<T>} */
3778
- new pi(t, e)
3807
+ new mi(t, e)
3779
3808
  );
3780
3809
  return (i = this._listeners[t]) === null || i === void 0 || i.forEach((o) => {
3781
3810
  o.call(this, n);
3782
3811
  }), n;
3783
3812
  }
3784
3813
  }
3785
- class mi {
3814
+ class gi {
3786
3815
  /**
3787
3816
  * @param {string | false} imageSrc
3788
3817
  * @param {HTMLElement} container
@@ -3802,14 +3831,14 @@ class mi {
3802
3831
  * @param {number} height
3803
3832
  */
3804
3833
  setDisplayedSize(t, e) {
3805
- this.element && (this.element.tagName === "IMG" ? (j(this.element, 250, "auto"), this.element.style.transformOrigin = "0 0", this.element.style.transform = ci(0, 0, t / 250)) : j(this.element, t, e));
3834
+ this.element && (this.element.tagName === "IMG" ? (j(this.element, 250, "auto"), this.element.style.transformOrigin = "0 0", this.element.style.transform = di(0, 0, t / 250)) : j(this.element, t, e));
3806
3835
  }
3807
3836
  destroy() {
3808
3837
  var t;
3809
3838
  (t = this.element) !== null && t !== void 0 && t.parentNode && this.element.remove(), this.element = null;
3810
3839
  }
3811
3840
  }
3812
- class gi {
3841
+ class _i {
3813
3842
  /**
3814
3843
  * @param {SlideData} itemData Slide data
3815
3844
  * @param {PhotoSwipeBase} instance PhotoSwipe or PhotoSwipeLightbox instance
@@ -3844,7 +3873,7 @@ class gi {
3844
3873
  this.data.msrc && this.slide.isFirstSlide ? this.data.msrc : !1,
3845
3874
  this
3846
3875
  );
3847
- this.placeholder = new mi(i, this.slide.container);
3876
+ this.placeholder = new gi(i, this.slide.container);
3848
3877
  }
3849
3878
  this.element && !e || this.instance.dispatch("contentLoad", {
3850
3879
  content: this,
@@ -4054,7 +4083,7 @@ class gi {
4054
4083
  }).defaultPrevented || (this.slide && this.element && !this.element.parentNode && this.slide.container.appendChild(this.element), (this.state === b.LOADED || this.state === b.ERROR) && this.removePlaceholder()));
4055
4084
  }
4056
4085
  }
4057
- function _i(s, t) {
4086
+ function vi(s, t) {
4058
4087
  if (s.getViewportSizeFn) {
4059
4088
  const e = s.getViewportSizeFn(s, t);
4060
4089
  if (e)
@@ -4088,7 +4117,7 @@ function yi(s, t, e, i) {
4088
4117
  };
4089
4118
  }
4090
4119
  const at = 4e3;
4091
- class vi {
4120
+ class wi {
4092
4121
  /**
4093
4122
  * @param {PhotoSwipeOptions} options PhotoSwipe options
4094
4123
  * @param {SlideData} itemData Slide data
@@ -4175,15 +4204,15 @@ function bt(s, t, e) {
4175
4204
  options: o
4176
4205
  } = t;
4177
4206
  if (o) {
4178
- n = new vi(o, s, -1);
4207
+ n = new wi(o, s, -1);
4179
4208
  let r;
4180
- t.pswp ? r = t.pswp.viewportSize : r = _i(o, t);
4209
+ t.pswp ? r = t.pswp.viewportSize : r = vi(o, t);
4181
4210
  const a = yi(o, r, s, e);
4182
4211
  n.update(i.width, i.height, a);
4183
4212
  }
4184
4213
  return i.lazyLoad(), n && i.setDisplayedSize(Math.ceil(i.width * n.initial), Math.ceil(i.height * n.initial)), i;
4185
4214
  }
4186
- function wi(s, t) {
4215
+ function Si(s, t) {
4187
4216
  const e = t.getItemData(s);
4188
4217
  if (!t.dispatch("lazyLoadSlide", {
4189
4218
  index: s,
@@ -4191,7 +4220,7 @@ function wi(s, t) {
4191
4220
  }).defaultPrevented)
4192
4221
  return bt(e, t, s);
4193
4222
  }
4194
- class Si extends fi {
4223
+ class bi extends fi {
4195
4224
  /**
4196
4225
  * Get total number of slides
4197
4226
  *
@@ -4214,7 +4243,7 @@ class Si extends fi {
4214
4243
  * @returns {Content}
4215
4244
  */
4216
4245
  createContentFromData(t, e) {
4217
- return new gi(t, this, e);
4246
+ return new _i(t, this, e);
4218
4247
  }
4219
4248
  /**
4220
4249
  * Get item data by index.
@@ -4248,7 +4277,7 @@ class Si extends fi {
4248
4277
  */
4249
4278
  _getGalleryDOMElements(t) {
4250
4279
  var e, i;
4251
- return (e = this.options) !== null && e !== void 0 && e.children || (i = this.options) !== null && i !== void 0 && i.childSelector ? Z(this.options.children, this.options.childSelector, t) || [] : [t];
4280
+ return (e = this.options) !== null && e !== void 0 && e.children || (i = this.options) !== null && i !== void 0 && i.childSelector ? $(this.options.children, this.options.childSelector, t) || [] : [t];
4252
4281
  }
4253
4282
  /**
4254
4283
  * Converts DOM element to item data object.
@@ -4285,7 +4314,7 @@ class Si extends fi {
4285
4314
  return bt(t, this, e);
4286
4315
  }
4287
4316
  }
4288
- class bi extends Si {
4317
+ class Li extends bi {
4289
4318
  /**
4290
4319
  * @param {PhotoSwipeOptions} [options]
4291
4320
  */
@@ -4297,7 +4326,7 @@ class bi extends Si {
4297
4326
  * It's not included in the main constructor, so you may bind events before it.
4298
4327
  */
4299
4328
  init() {
4300
- Z(this.options.gallery, this.options.gallerySelector).forEach((t) => {
4329
+ $(this.options.gallery, this.options.gallerySelector).forEach((t) => {
4301
4330
  t.addEventListener("click", this.onThumbnailsClick, !1);
4302
4331
  });
4303
4332
  }
@@ -4305,7 +4334,7 @@ class bi extends Si {
4305
4334
  * @param {MouseEvent} e
4306
4335
  */
4307
4336
  onThumbnailsClick(t) {
4308
- if (di(t) || window.pswp)
4337
+ if (pi(t) || window.pswp)
4309
4338
  return;
4310
4339
  let e = {
4311
4340
  x: t.clientX,
@@ -4334,7 +4363,7 @@ class bi extends Si {
4334
4363
  const e = (
4335
4364
  /** @type {HTMLElement} */
4336
4365
  t.target
4337
- ), n = Z(
4366
+ ), n = $(
4338
4367
  this.options.children,
4339
4368
  this.options.childSelector,
4340
4369
  /** @type {HTMLElement} */
@@ -4354,7 +4383,7 @@ class bi extends Si {
4354
4383
  if (window.pswp || !this.options)
4355
4384
  return !1;
4356
4385
  if (!e && this.options.gallery && this.options.children) {
4357
- const n = Z(this.options.gallery);
4386
+ const n = $(this.options.gallery);
4358
4387
  n[0] && (e = {
4359
4388
  gallery: n[0]
4360
4389
  });
@@ -4389,7 +4418,7 @@ class bi extends Si {
4389
4418
  else
4390
4419
  throw new Error("pswpModule is not valid");
4391
4420
  }
4392
- typeof i.openPromise == "function" && n.push(i.openPromise()), i.preloadFirstSlide !== !1 && t >= 0 && (this._preloadedContent = wi(t, this));
4421
+ typeof i.openPromise == "function" && n.push(i.openPromise()), i.preloadFirstSlide !== !1 && t >= 0 && (this._preloadedContent = Si(t, this));
4393
4422
  const r = ++this._uid;
4394
4423
  Promise.all(n).then((a) => {
4395
4424
  if (this.shouldOpen) {
@@ -4430,17 +4459,17 @@ class bi extends Si {
4430
4459
  */
4431
4460
  destroy() {
4432
4461
  var t;
4433
- (t = this.pswp) === null || t === void 0 || t.destroy(), this.shouldOpen = !1, this._listeners = {}, Z(this.options.gallery, this.options.gallerySelector).forEach((e) => {
4462
+ (t = this.pswp) === null || t === void 0 || t.destroy(), this.shouldOpen = !1, this._listeners = {}, $(this.options.gallery, this.options.gallerySelector).forEach((e) => {
4434
4463
  e.removeEventListener("click", this.onThumbnailsClick, !1);
4435
4464
  });
4436
4465
  }
4437
4466
  }
4438
- const Li = () => {
4467
+ const Ei = () => {
4439
4468
  let s = null;
4440
- return s = new bi({
4469
+ return s = new Li({
4441
4470
  gallery: "#photoswipe-gallery",
4442
4471
  children: "a",
4443
- pswpModule: hi,
4472
+ pswpModule: ci,
4444
4473
  zoom: !1,
4445
4474
  imageClickAction: "next",
4446
4475
  tapAction: "next"
@@ -4464,7 +4493,7 @@ const Li = () => {
4464
4493
  }), s.init(), () => {
4465
4494
  s && (s.destroy(), s = null);
4466
4495
  };
4467
- }, Ei = () => {
4496
+ }, Pi = () => {
4468
4497
  const s = document.querySelector(".js-limit-scroll-progress-bar"), t = document.querySelector(".c-progress__bar");
4469
4498
  if (!t)
4470
4499
  return;
@@ -4476,9 +4505,9 @@ const Li = () => {
4476
4505
  s && (i = s.scrollHeight - e.clientHeight + (window.pageYOffset + s.getBoundingClientRect().top));
4477
4506
  const o = Math.round(n / i * 100);
4478
4507
  t.style.width = `${o}%`, o >= 100 && (t.style.width = "100%");
4479
- }, Pi = () => {
4480
- document.querySelector(".c-progress") && window.addEventListener("scroll", Ei);
4481
- }, H = "#page-content", U = "#text-tooltip", Ai = ".tooltip-btn", Lt = "c-text-tooltip--show", xi = [
4508
+ }, Ai = () => {
4509
+ document.querySelector(".c-progress") && window.addEventListener("scroll", Pi);
4510
+ }, B = "#page-content", U = "#text-tooltip", xi = ".tooltip-btn", Lt = "c-text-tooltip--show", Ii = [
4482
4511
  "#page-content .c-content p",
4483
4512
  "#page-content .c-content h2",
4484
4513
  "#page-content .c-content h3",
@@ -4490,18 +4519,18 @@ const Li = () => {
4490
4519
  "#page-content header span",
4491
4520
  "#page-content header h1",
4492
4521
  "#page-content header h2"
4493
- ], lt = (s, t) => s instanceof Element ? t.some((e) => s.matches(e)) : !1, Ii = (s, t) => {
4522
+ ], lt = (s, t) => s instanceof Element ? t.some((e) => s.matches(e)) : !1, Ci = (s, t) => {
4494
4523
  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;
4495
4524
  return !!e && lt(e, t) || !!i && lt(i, t);
4496
- }, Ci = (s) => {
4525
+ }, Ti = (s) => {
4497
4526
  var e;
4498
4527
  if (!s.focusNode)
4499
4528
  return null;
4500
4529
  const t = (e = s.anchorNode) == null ? void 0 : e.compareDocumentPosition(s.focusNode);
4501
4530
  return t ? (t & 4) > 0 : s.anchorOffset < s.focusOffset;
4502
- }, Ti = (s, t, e) => {
4503
- const i = document.querySelector(`${H} ${U}`), n = document.querySelector(`${H}`), o = document.querySelectorAll(
4504
- `${H} ${U} ${Ai}`
4531
+ }, zi = (s, t, e) => {
4532
+ const i = document.querySelector(`${B} ${U}`), n = document.querySelector(`${B}`), o = document.querySelectorAll(
4533
+ `${B} ${U} ${xi}`
4505
4534
  );
4506
4535
  if (!i || !n) {
4507
4536
  console.warn("Text tooltip : Tooltip or it's parent are not found in the DOM");
@@ -4513,7 +4542,7 @@ const Li = () => {
4513
4542
  }, ht = () => {
4514
4543
  const s = document.querySelector(`${U}`);
4515
4544
  s && s.classList.remove(Lt);
4516
- }, B = ({ type: s }) => {
4545
+ }, H = ({ type: s }) => {
4517
4546
  const t = window.getSelection();
4518
4547
  if (s === "selectionchange") {
4519
4548
  ht();
@@ -4523,30 +4552,30 @@ const Li = () => {
4523
4552
  return;
4524
4553
  const e = t.getRangeAt(0), i = t.toString().trim();
4525
4554
  if (i.length) {
4526
- const n = Ii(e, xi), o = Ci(t) || !1;
4527
- n && Ti(e, o, i);
4555
+ const n = Ci(e, Ii), o = Ti(t) || !1;
4556
+ n && zi(e, o, i);
4528
4557
  return;
4529
4558
  }
4530
4559
  ht();
4531
- }, zi = () => {
4560
+ }, Oi = () => {
4532
4561
  if (!(window != null && window.getSelection)) {
4533
4562
  console.warn("Selection API isn't supported");
4534
4563
  return;
4535
4564
  }
4536
- document.addEventListener("mouseup", B), document.addEventListener("selectionchange", B), document.addEventListener("touchend", B), document.addEventListener("touchcancel", B);
4537
- }, Oi = (s) => {
4565
+ document.addEventListener("mouseup", H), document.addEventListener("selectionchange", H), document.addEventListener("touchend", H), document.addEventListener("touchcancel", H);
4566
+ }, Di = (s) => {
4538
4567
  const { target: t } = s;
4539
4568
  if (t instanceof Element) {
4540
4569
  const e = t.closest(".c-search-form--button");
4541
4570
  e && (s.preventDefault(), e.classList.remove("c-search-form--button"));
4542
4571
  }
4543
- }, Di = (s = document.querySelector(
4572
+ }, Mi = (s = document.querySelector(
4544
4573
  ".c-search-form--button"
4545
4574
  )) => {
4546
4575
  s && s.addEventListener("click", (t) => {
4547
- Oi(t);
4576
+ Di(t);
4548
4577
  });
4549
- }, Mi = ({
4578
+ }, $i = ({
4550
4579
  tabsContainerElement: s,
4551
4580
  event: t
4552
4581
  }) => {
@@ -4569,7 +4598,7 @@ const Li = () => {
4569
4598
  const e = t.querySelectorAll('[role="tab"]');
4570
4599
  e.forEach((n) => {
4571
4600
  n.addEventListener("click", (o) => {
4572
- Mi({ tabsContainerElement: t, event: o });
4601
+ $i({ tabsContainerElement: t, event: o });
4573
4602
  });
4574
4603
  });
4575
4604
  const i = t.querySelector('[role="tablist"]');
@@ -4580,16 +4609,16 @@ const Li = () => {
4580
4609
  });
4581
4610
  }
4582
4611
  });
4583
- }, G = "c-social-bar-item__container--is-highlighted", $i = (s) => {
4612
+ }, G = "c-social-bar-item__container--is-highlighted", Fi = (s) => {
4584
4613
  const t = s.find(
4585
4614
  (e) => e.classList.contains(G)
4586
4615
  );
4587
4616
  t == null || t.classList.remove(G);
4588
- }, Fi = () => {
4617
+ }, Ri = () => {
4589
4618
  const s = document.querySelector(".c-toolbar");
4590
4619
  if (s) {
4591
4620
  const t = window.location.origin + window.location.pathname, e = Array.from(s.querySelectorAll(".c-social-bar-item__container"));
4592
- $i(e);
4621
+ Fi(e);
4593
4622
  const i = e.find(
4594
4623
  (n) => {
4595
4624
  var o;
@@ -4598,8 +4627,8 @@ const Li = () => {
4598
4627
  );
4599
4628
  i == null || i.classList.add(G);
4600
4629
  }
4601
- }, Vi = () => {
4602
- Vt(), Zi(), Dt(), Nt(), Pi(), Li(), te(), Di(), Mt("paralympicsGames", "countdown-paralympics-games"), zi(), zt(), Gt(), Ft(), Ct(), K(
4630
+ }, ji = () => {
4631
+ Vt(), Zi(), Dt(), Nt(), Ai(), Ei(), ee(), Mi(), Mt("paralympicsGames", "countdown-paralympics-games"), Oi(), zt(), Gt(), Ft(), Ct(), K(
4603
4632
  "jobs-input",
4604
4633
  "https://www.groupeactual.eu/autocomplete/profession-simple?code&prefix&limit=75",
4605
4634
  "&term=",
@@ -4612,8 +4641,8 @@ const Li = () => {
4612
4641
  "?searchValue=",
4613
4642
  "text",
4614
4643
  "text"
4615
- ), $t(), Fi(), At(), xt(), oe(), re(), Ut();
4644
+ ), Zt(), Ri(), At(), xt(), Kt(), re(), ae(), Ut();
4616
4645
  };
4617
4646
  export {
4618
- Vi as initScripts
4647
+ ji as initScripts
4619
4648
  };