@deot/docs-client 1.1.9 → 1.2.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.
Files changed (87) hide show
  1. package/README.md +6 -4
  2. package/dist/{chunks/chunk-rhk8Qtmk-CUgXtmq_.js → bundle/chunk-rhk8Qtmk-CbLEbM7n.js} +0 -1
  3. package/dist/{chunks/compile-BHlM2G35-gLGYT56A.js → bundle/compile-D33div4Y-CVbeyITp.js} +21848 -21852
  4. package/dist/{chunks/compiler-sfc.esm-browser-5dA1IWMJ.js → bundle/compiler-sfc.esm-browser-DmhYZRPB.js} +1374 -1378
  5. package/dist/bundle/css-sV_dM9Hl-BpgypWsW.js +18927 -0
  6. package/dist/{chunks/echarts-BBzcOaek.js → bundle/echarts-BWkcVFuU.js} +1 -2
  7. package/dist/bundle/index.js +103578 -0
  8. package/dist/{eval → bundle}/index.style.css +1 -1
  9. package/dist/{chunks/jsx-CwMPlI4_-CBhlIHLh.js → bundle/jsx-CwMPlI4_-D02C9U5w.js} +9057 -9061
  10. package/dist/{chunks/photoswipe.esm-D52MAtDT.js → bundle/photoswipe.esm-CvVKUjTj.js} +114 -116
  11. package/dist/{chunks/rolldown-runtime-Ce3zPWPd.js → bundle/rolldown-runtime-DArdT4gl.js} +0 -1
  12. package/dist/index.d.ts +0 -1
  13. package/dist/index.js +6839 -103273
  14. package/dist/index.style.css +1 -1
  15. package/package.json +10 -9
  16. package/dist/chunks/browser-Cmwcvs-d.js +0 -505
  17. package/dist/chunks/css-C25yWQa_-B6uwKgDA.js +0 -15160
  18. package/dist/chunks/dayjs.min-B3g34Qcz.js +0 -300
  19. package/dist/chunks/dist-0ySyXNpo.js +0 -415
  20. package/dist/chunks/dist-B44jICwZ.js +0 -22
  21. package/dist/chunks/dist-BUw25nXJ.js +0 -65
  22. package/dist/chunks/dist-BeOE8qTX.js +0 -345
  23. package/dist/chunks/dist-C3V7reR4.js +0 -197
  24. package/dist/chunks/dist-CI9Lp9Cj.js +0 -247
  25. package/dist/chunks/dist-CQir6D4y.js +0 -244
  26. package/dist/chunks/dist-Cxf7_ocf.js +0 -44
  27. package/dist/chunks/dist-DF4kisl2.js +0 -43
  28. package/dist/chunks/dist-DHJhaOSs.js +0 -426
  29. package/dist/chunks/dist-DLj8yJdm.js +0 -38
  30. package/dist/chunks/dist-DSypl37f.js +0 -58
  31. package/dist/chunks/dist-DWn6r6un.js +0 -76
  32. package/dist/chunks/dist-DWqBe2Ah.js +0 -132
  33. package/dist/chunks/dist-D_Uqh6m9.js +0 -80
  34. package/dist/chunks/dist-DcIU51zW.js +0 -166
  35. package/dist/chunks/dist-Wm6vE6kM.js +0 -17
  36. package/dist/chunks/dist-kiZUqqzR.js +0 -27
  37. package/dist/chunks/dist-oZ12SGqg.js +0 -6
  38. package/dist/chunks/dist-va7FmnW4.js +0 -156
  39. package/dist/chunks/html2canvas-DoKTvaOT.js +0 -4012
  40. package/dist/chunks/index.es-wVPQxEPP.js +0 -5752
  41. package/dist/chunks/jspdf.es.min-Zm27YeAg.js +0 -17900
  42. package/dist/chunks/jszip.min-Da8UgalE.js +0 -3044
  43. package/dist/chunks/lodash-CYyW02I7.js +0 -5157
  44. package/dist/chunks/purify.es-DhHsvqCe.js +0 -845
  45. package/dist/chunks/vue-router-LT2FR3OX.js +0 -1208
  46. package/dist/chunks/vue.runtime.esm-bundler-Bk0CnRBe.js +0 -4851
  47. package/dist/eval/chunks/browser-Cmwcvs-d.js +0 -4
  48. package/dist/eval/chunks/chunk-rhk8Qtmk-CUgXtmq_.js +0 -4
  49. package/dist/eval/chunks/compile-BHlM2G35-gLGYT56A.js +0 -7
  50. package/dist/eval/chunks/compiler-sfc.esm-browser-5dA1IWMJ.js +0 -4
  51. package/dist/eval/chunks/css-C25yWQa_-B6uwKgDA.js +0 -8
  52. package/dist/eval/chunks/dayjs.min-B3g34Qcz.js +0 -4
  53. package/dist/eval/chunks/dist-0ySyXNpo.js +0 -4
  54. package/dist/eval/chunks/dist-B44jICwZ.js +0 -5
  55. package/dist/eval/chunks/dist-BUw25nXJ.js +0 -6
  56. package/dist/eval/chunks/dist-BeOE8qTX.js +0 -4
  57. package/dist/eval/chunks/dist-C3V7reR4.js +0 -4
  58. package/dist/eval/chunks/dist-CI9Lp9Cj.js +0 -4
  59. package/dist/eval/chunks/dist-CQir6D4y.js +0 -5
  60. package/dist/eval/chunks/dist-Cxf7_ocf.js +0 -4
  61. package/dist/eval/chunks/dist-DF4kisl2.js +0 -5
  62. package/dist/eval/chunks/dist-DHJhaOSs.js +0 -5
  63. package/dist/eval/chunks/dist-DLj8yJdm.js +0 -4
  64. package/dist/eval/chunks/dist-DSypl37f.js +0 -5
  65. package/dist/eval/chunks/dist-DWn6r6un.js +0 -4
  66. package/dist/eval/chunks/dist-DWqBe2Ah.js +0 -6
  67. package/dist/eval/chunks/dist-D_Uqh6m9.js +0 -4
  68. package/dist/eval/chunks/dist-DcIU51zW.js +0 -4
  69. package/dist/eval/chunks/dist-Wm6vE6kM.js +0 -1
  70. package/dist/eval/chunks/dist-kiZUqqzR.js +0 -4
  71. package/dist/eval/chunks/dist-oZ12SGqg.js +0 -4
  72. package/dist/eval/chunks/dist-va7FmnW4.js +0 -4
  73. package/dist/eval/chunks/echarts-BBzcOaek.js +0 -4
  74. package/dist/eval/chunks/eval-runtime-e7f6eb9af5d4.js +0 -1
  75. package/dist/eval/chunks/html2canvas-DoKTvaOT.js +0 -4
  76. package/dist/eval/chunks/index.es-wVPQxEPP.js +0 -5
  77. package/dist/eval/chunks/jspdf.es.min-Zm27YeAg.js +0 -78
  78. package/dist/eval/chunks/jsx-CwMPlI4_-CBhlIHLh.js +0 -4
  79. package/dist/eval/chunks/jszip.min-Da8UgalE.js +0 -4
  80. package/dist/eval/chunks/lodash-CYyW02I7.js +0 -4
  81. package/dist/eval/chunks/photoswipe.esm-D52MAtDT.js +0 -4
  82. package/dist/eval/chunks/purify.es-DhHsvqCe.js +0 -4
  83. package/dist/eval/chunks/rolldown-runtime-Ce3zPWPd.js +0 -4
  84. package/dist/eval/chunks/vue-router-LT2FR3OX.js +0 -5
  85. package/dist/eval/chunks/vue.runtime.esm-bundler-Bk0CnRBe.js +0 -4
  86. package/dist/eval/index.js +0 -24
  87. package/dist/index.cjs +0 -23
@@ -1,4 +1,3 @@
1
- globalThis.process;
2
1
  //#region node_modules/.pnpm/photoswipe@5.4.4/node_modules/photoswipe/dist/photoswipe.esm.js
3
2
  function e(e, t, n) {
4
3
  let r = document.createElement(t);
@@ -27,31 +26,30 @@ function o(e, t, n) {
27
26
  function s(e, t, n, r) {
28
27
  e.style.transform = o(t, n, r);
29
28
  }
30
- var c = "cubic-bezier(.4,0,.22,1)";
31
- function l(e, t, n, r) {
32
- e.style.transition = t ? `${t} ${n}ms ${r || c}` : "none";
29
+ function c(e, t, n, r) {
30
+ e.style.transition = t ? `${t} ${n}ms ${r || "cubic-bezier(.4,0,.22,1)"}` : "none";
33
31
  }
34
- function u(e, t, n) {
32
+ function l(e, t, n) {
35
33
  e.style.width = typeof t == "number" ? `${t}px` : t, e.style.height = typeof n == "number" ? `${n}px` : n;
36
34
  }
37
- function d(e) {
38
- l(e);
35
+ function u(e) {
36
+ c(e);
39
37
  }
40
- function f(e) {
38
+ function d(e) {
41
39
  return "decode" in e ? e.decode().catch(() => {}) : e.complete ? Promise.resolve(e) : new Promise((t, n) => {
42
40
  e.onload = () => t(e), e.onerror = n;
43
41
  });
44
42
  }
45
- var p = {
43
+ var f = {
46
44
  IDLE: "idle",
47
45
  LOADING: "loading",
48
46
  LOADED: "loaded",
49
47
  ERROR: "error"
50
48
  };
51
- function m(e) {
49
+ function p(e) {
52
50
  return "button" in e && e.button === 1 || e.ctrlKey || e.metaKey || e.altKey || e.shiftKey;
53
51
  }
54
- function ee(e, t, n = document) {
52
+ function m(e, t, n = document) {
55
53
  let r = [];
56
54
  if (e instanceof Element) r = [e];
57
55
  else if (e instanceof NodeList || Array.isArray(e)) r = Array.from(e);
@@ -184,7 +182,7 @@ var x = class {
184
182
  _getMax() {
185
183
  return this._parseZoomLevelOption("max") || Math.max(1, this.fit * 4);
186
184
  }
187
- }, te = class {
185
+ }, ee = class {
188
186
  constructor(t, n, r) {
189
187
  this.data = t, this.index = n, this.pswp = r, this.isActive = n === r.currIndex, this.currentResolution = 0, this.panAreaSize = {
190
188
  x: 0,
@@ -299,11 +297,11 @@ var x = class {
299
297
  _setResolution(e) {
300
298
  e !== this.currentResolution && (this.currentResolution = e, this.updateContentSize(), this.pswp.dispatch("resolutionChanged"));
301
299
  }
302
- }, ne = .35, re = .6, ie = .4, w = .5;
303
- function T(e, t) {
300
+ }, te = .35, ne = .6, re = .4, ie = .5;
301
+ function w(e, t) {
304
302
  return e * t / (1 - t);
305
303
  }
306
- var E = class {
304
+ var T = class {
307
305
  constructor(e) {
308
306
  this.gestures = e, this.pswp = e.pswp, this.startPan = {
309
307
  x: 0,
@@ -318,7 +316,7 @@ var E = class {
318
316
  if (r === "y" && this.pswp.options.closeOnVerticalDrag && i && i.currZoomLevel <= i.zoomLevels.fit && !this.gestures.isMultitouch) {
319
317
  let n = i.pan.y + (e.y - t.y);
320
318
  if (!this.pswp.dispatch("verticalDrag", { panY: n }).defaultPrevented) {
321
- this._setPanWithFriction("y", n, re);
319
+ this._setPanWithFriction("y", n, ne);
322
320
  let e = 1 - Math.abs(this._getVerticalDragRatio(i.pan.y));
323
321
  this.pswp.applyBgOpacity(e), i.applyCurrentZoomPan();
324
322
  }
@@ -328,17 +326,17 @@ var E = class {
328
326
  let { velocity: e } = this.gestures, { mainScroll: t, currSlide: n } = this.pswp, r = 0;
329
327
  if (this.pswp.animations.stopAll(), t.isShifted()) {
330
328
  let n = (t.x - t.getCurrSlideX()) / this.pswp.viewportSize.x;
331
- e.x < -.5 && n < 0 || e.x < .1 && n < -.5 ? (r = 1, e.x = Math.min(e.x, 0)) : (e.x > w && n > 0 || e.x > -.1 && n > .5) && (r = -1, e.x = Math.max(e.x, 0)), t.moveIndexBy(r, !0, e.x);
329
+ e.x < -.5 && n < 0 || e.x < .1 && n < -.5 ? (r = 1, e.x = Math.min(e.x, 0)) : (e.x > ie && n > 0 || e.x > -.1 && n > .5) && (r = -1, e.x = Math.max(e.x, 0)), t.moveIndexBy(r, !0, e.x);
332
330
  }
333
331
  n && n.currZoomLevel > n.zoomLevels.max || this.gestures.isMultitouch ? this.gestures.zoomLevels.correctZoomPan(!0) : (this._finishPanGestureForAxis("x"), this._finishPanGestureForAxis("y"));
334
332
  }
335
333
  _finishPanGestureForAxis(e) {
336
334
  let { velocity: t } = this.gestures, { currSlide: n } = this.pswp;
337
335
  if (!n) return;
338
- let { pan: r, bounds: i } = n, o = r[e], s = this.pswp.bgOpacity < 1 && e === "y", c = o + T(t[e], .995);
336
+ let { pan: r, bounds: i } = n, o = r[e], s = this.pswp.bgOpacity < 1 && e === "y", c = o + w(t[e], .995);
339
337
  if (s) {
340
338
  let e = this._getVerticalDragRatio(o), t = this._getVerticalDragRatio(c);
341
- if (e < 0 && t < -.4 || e > 0 && t > ie) {
339
+ if (e < 0 && t < -.4 || e > 0 && t > re) {
342
340
  this.pswp.close();
343
341
  return;
344
342
  }
@@ -391,14 +389,14 @@ var E = class {
391
389
  let { pan: i, bounds: a } = r;
392
390
  if (a.correctPan(e, t) !== t || n) {
393
391
  let r = Math.round(t - i[e]);
394
- i[e] += r * (n || ne);
392
+ i[e] += r * (n || te);
395
393
  } else i[e] = t;
396
394
  }
397
- }, D = .05, O = .15;
398
- function k(e, t, n) {
395
+ }, E = .05, D = .15;
396
+ function O(e, t, n) {
399
397
  return e.x = (t.x + n.x) / 2, e.y = (t.y + n.y) / 2, e;
400
398
  }
401
- var A = class {
399
+ var k = class {
402
400
  constructor(e) {
403
401
  this.gestures = e, this._startPan = {
404
402
  x: 0,
@@ -420,14 +418,14 @@ var A = class {
420
418
  if (!o) return;
421
419
  let s = o.zoomLevels.min, c = o.zoomLevels.max;
422
420
  if (!o.isZoomable() || a.mainScroll.isShifted()) return;
423
- k(this._startZoomPoint, t, i), k(this._zoomPoint, e, n);
421
+ O(this._startZoomPoint, t, i), O(this._zoomPoint, e, n);
424
422
  let l = 1 / r(t, i) * r(e, n) * this._startZoomLevel;
425
423
  if (l > o.zoomLevels.initial + o.zoomLevels.initial / 15 && (this._wasOverFitZoomLevel = !0), l < s) {
426
424
  if (a.options.pinchToClose && !this._wasOverFitZoomLevel && this._startZoomLevel <= o.zoomLevels.initial) {
427
425
  let e = 1 - (s - l) / (s / 1.2);
428
426
  a.dispatch("pinchClose", { bgOpacity: e }).defaultPrevented || a.applyBgOpacity(e);
429
- } else l = s - (s - l) * O;
430
- } else l > c && (l = c + (l - c) * D);
427
+ } else l = s - (s - l) * D;
428
+ } else l > c && (l = c + (l - c) * E);
431
429
  o.pan.x = this._calculatePanForZoomLevel("x", l), o.pan.y = this._calculatePanForZoomLevel("y", l), o.setZoomLevel(l), o.applyCurrentZoomPan();
432
430
  }
433
431
  end() {
@@ -482,10 +480,10 @@ var A = class {
482
480
  }));
483
481
  }
484
482
  };
485
- function j(e) {
483
+ function A(e) {
486
484
  return !!e.target.closest(".pswp__container");
487
485
  }
488
- var M = class {
486
+ var j = class {
489
487
  constructor(e) {
490
488
  this.gestures = e;
491
489
  }
@@ -494,10 +492,10 @@ var M = class {
494
492
  r ? this._doClickOrTapAction("imageClick", e, t) : i && this._doClickOrTapAction("bgClick", e, t);
495
493
  }
496
494
  tap(e, t) {
497
- j(t) && this._doClickOrTapAction("tap", e, t);
495
+ A(t) && this._doClickOrTapAction("tap", e, t);
498
496
  }
499
497
  doubleTap(e, t) {
500
- j(t) && this._doClickOrTapAction("doubleTap", e, t);
498
+ A(t) && this._doClickOrTapAction("doubleTap", e, t);
501
499
  }
502
500
  _doClickOrTapAction(e, t, n) {
503
501
  var r;
@@ -522,7 +520,7 @@ var M = class {
522
520
  }
523
521
  }
524
522
  }
525
- }, N = 10, P = 300, F = 25, I = class {
523
+ }, M = 10, N = 300, P = 25, F = class {
526
524
  constructor(e) {
527
525
  this.pswp = e, this.dragAxis = null, this.p1 = {
528
526
  x: 0,
@@ -551,7 +549,7 @@ var M = class {
551
549
  }, this._intervalP1 = {
552
550
  x: 0,
553
551
  y: 0
554
- }, 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 || (e.options.allowPanToNext = !1), this.drag = new E(this), this.zoomLevels = new A(this), this.tapHandler = new M(this), e.on("bindEvents", () => {
552
+ }, 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 || (e.options.allowPanToNext = !1), this.drag = new T(this), this.zoomLevels = new k(this), this.tapHandler = new j(this), e.on("bindEvents", () => {
555
553
  e.events.add(e.scrollWrap, "click", this._onClick.bind(this)), this._pointerEventEnabled ? this._bindEvents("pointer", "down", "up", "cancel") : this._touchEventEnabled ? (this._bindEvents("touch", "start", "end", "cancel"), e.scrollWrap && (e.scrollWrap.ontouchmove = () => {}, e.scrollWrap.ontouchend = () => {})) : this._bindEvents("mouse", "down", "up");
556
554
  });
557
555
  }
@@ -592,8 +590,8 @@ var M = class {
592
590
  this.tapHandler.click(this.startP1, e);
593
591
  return;
594
592
  }
595
- let i = this.pswp.options.doubleTapAction ? P : 0;
596
- this._tapTimer ? (this._clearTapTimer(), r(this._lastStartP1, this.startP1) < F && this.tapHandler.doubleTap(this.startP1, e)) : (t(this._lastStartP1, this.startP1), this._tapTimer = setTimeout(() => {
593
+ let i = this.pswp.options.doubleTapAction ? N : 0;
594
+ this._tapTimer ? (this._clearTapTimer(), r(this._lastStartP1, this.startP1) < P && this.tapHandler.doubleTap(this.startP1, e)) : (t(this._lastStartP1, this.startP1), this._tapTimer = setTimeout(() => {
597
595
  this.tapHandler.tap(this.startP1, e), this._clearTapTimer();
598
596
  }, i));
599
597
  }
@@ -634,7 +632,7 @@ var M = class {
634
632
  let e = Math.abs(this.p1.x - this.startP1.x) - Math.abs(this.p1.y - this.startP1.y);
635
633
  if (e !== 0) {
636
634
  let t = e > 0 ? "x" : "y";
637
- Math.abs(this.p1[t] - this.startP1[t]) >= N && (this.dragAxis = t);
635
+ Math.abs(this.p1[t] - this.startP1[t]) >= M && (this.dragAxis = t);
638
636
  }
639
637
  }
640
638
  }
@@ -644,7 +642,7 @@ var M = class {
644
642
  _onClick(e) {
645
643
  this.pswp.mainScroll.isShifted() && (e.preventDefault(), e.stopPropagation());
646
644
  }
647
- }, L = .35, R = class {
645
+ }, I = .35, L = class {
648
646
  constructor(e) {
649
647
  this.pswp = e, this.x = 0, this.slideWidth = 0, this._currPositionIndex = 0, this._prevPositionIndex = 0, this._containerShiftIndex = -1, this.itemHolders = [];
650
648
  }
@@ -726,14 +724,14 @@ var M = class {
726
724
  let t = (this.slideWidth * this._currPositionIndex - e) / this.slideWidth;
727
725
  t += this.pswp.currIndex;
728
726
  let n = Math.round(e - this.x);
729
- (t < 0 && n > 0 || t >= this.pswp.getNumItems() - 1 && n < 0) && (e = this.x + n * L);
727
+ (t < 0 && n > 0 || t >= this.pswp.getNumItems() - 1 && n < 0) && (e = this.x + n * I);
730
728
  }
731
729
  this.x = e, this.pswp.container && s(this.pswp.container, e), this.pswp.dispatch("moveMainScroll", {
732
730
  x: e,
733
731
  dragging: t ?? !1
734
732
  });
735
733
  }
736
- }, z = {
734
+ }, R = {
737
735
  Escape: 27,
738
736
  z: 90,
739
737
  ArrowLeft: 37,
@@ -741,7 +739,7 @@ var M = class {
741
739
  ArrowRight: 39,
742
740
  ArrowDown: 40,
743
741
  Tab: 9
744
- }, B = (e, t) => t ? e : z[e], V = class {
742
+ }, z = (e, t) => t ? e : R[e], B = class {
745
743
  constructor(e) {
746
744
  this.pswp = e, this._wasFocused = !1, e.on("bindEvents", () => {
747
745
  e.options.trapFocus && (e.options.initialPointerPos || this._focusRoot(), e.events.add(document, "focusin", this._onFocusIn.bind(this))), e.events.add(document, "keydown", this._onKeyDown.bind(this));
@@ -756,28 +754,28 @@ var M = class {
756
754
  }
757
755
  _onKeyDown(e) {
758
756
  let { pswp: t } = this;
759
- if (t.dispatch("keydown", { originalEvent: e }).defaultPrevented || m(e)) return;
757
+ if (t.dispatch("keydown", { originalEvent: e }).defaultPrevented || p(e)) return;
760
758
  let n, r, i = !1, a = "key" in e;
761
759
  switch (a ? e.key : e.keyCode) {
762
- case B("Escape", a):
760
+ case z("Escape", a):
763
761
  t.options.escKey && (n = "close");
764
762
  break;
765
- case B("z", a):
763
+ case z("z", a):
766
764
  n = "toggleZoom";
767
765
  break;
768
- case B("ArrowLeft", a):
766
+ case z("ArrowLeft", a):
769
767
  r = "x";
770
768
  break;
771
- case B("ArrowUp", a):
769
+ case z("ArrowUp", a):
772
770
  r = "y";
773
771
  break;
774
- case B("ArrowRight", a):
772
+ case z("ArrowRight", a):
775
773
  r = "x", i = !0;
776
774
  break;
777
- case B("ArrowDown", a):
775
+ case z("ArrowDown", a):
778
776
  i = !0, r = "y";
779
777
  break;
780
- case B("Tab", a): this._focusRoot();
778
+ case z("Tab", a): this._focusRoot();
781
779
  }
782
780
  if (r) {
783
781
  e.preventDefault();
@@ -790,17 +788,17 @@ var M = class {
790
788
  let { template: t } = this.pswp;
791
789
  t && document !== e.target && t !== e.target && !t.contains(e.target) && t.focus();
792
790
  }
793
- }, H = "cubic-bezier(.4,0,.22,1)", U = class {
791
+ }, V = "cubic-bezier(.4,0,.22,1)", H = class {
794
792
  constructor(e) {
795
793
  this.props = e;
796
- let { target: t, onComplete: n, transform: r, onFinish: i = () => {}, duration: a = 333, easing: o = H } = e;
794
+ let { target: t, onComplete: n, transform: r, onFinish: i = () => {}, duration: a = 333, easing: o = V } = e;
797
795
  this.onFinish = i;
798
- let s = r ? "transform" : "opacity", c = e[s] ?? "";
796
+ let s = r ? "transform" : "opacity", l = e[s] ?? "";
799
797
  this._target = t, this._onComplete = n, this._finished = !1, this._onTransitionEnd = this._onTransitionEnd.bind(this), this._helperTimeout = setTimeout(() => {
800
- l(t, s, a, o), this._helperTimeout = setTimeout(() => {
798
+ c(t, s, a, o), this._helperTimeout = setTimeout(() => {
801
799
  t.addEventListener("transitionend", this._onTransitionEnd, !1), t.addEventListener("transitioncancel", this._onTransitionEnd, !1), this._helperTimeout = setTimeout(() => {
802
800
  this._finalizeAnimation();
803
- }, a + 500), t.style[s] = c;
801
+ }, a + 500), t.style[s] = l;
804
802
  }, 30);
805
803
  }, 0);
806
804
  }
@@ -811,11 +809,11 @@ var M = class {
811
809
  this._finished || (this._finished = !0, this.onFinish(), this._onComplete && this._onComplete());
812
810
  }
813
811
  destroy() {
814
- this._helperTimeout && clearTimeout(this._helperTimeout), d(this._target), this._target.removeEventListener("transitionend", this._onTransitionEnd, !1), this._target.removeEventListener("transitioncancel", this._onTransitionEnd, !1), this._finished || this._finalizeAnimation();
812
+ this._helperTimeout && clearTimeout(this._helperTimeout), u(this._target), this._target.removeEventListener("transitionend", this._onTransitionEnd, !1), this._target.removeEventListener("transitioncancel", this._onTransitionEnd, !1), this._finished || this._finalizeAnimation();
815
813
  }
816
- }, W = 12, G = .75, K = class {
814
+ }, U = 12, W = .75, G = class {
817
815
  constructor(e, t, n) {
818
- this.velocity = e * 1e3, this._dampingRatio = t || G, this._naturalFrequency = n || W, this._dampedFrequency = this._naturalFrequency, this._dampingRatio < 1 && (this._dampedFrequency *= Math.sqrt(1 - this._dampingRatio * this._dampingRatio));
816
+ this.velocity = e * 1e3, this._dampingRatio = t || W, this._naturalFrequency = n || U, this._dampedFrequency = this._naturalFrequency, this._dampingRatio < 1 && (this._dampedFrequency *= Math.sqrt(1 - this._dampingRatio * this._dampingRatio));
819
817
  }
820
818
  easeFrame(e, t) {
821
819
  let n = 0, r;
@@ -829,12 +827,12 @@ var M = class {
829
827
  }
830
828
  return n;
831
829
  }
832
- }, q = class {
830
+ }, K = class {
833
831
  constructor(e) {
834
832
  this.props = e, this._raf = 0;
835
833
  let { start: t, end: n, velocity: r, onUpdate: i, onComplete: a, onFinish: o = () => {}, dampingRatio: s, naturalFrequency: c } = e;
836
834
  this.onFinish = o;
837
- let l = new K(r, s, c), u = Date.now(), d = t - n, f = () => {
835
+ let l = new G(r, s, c), u = Date.now(), d = t - n, f = () => {
838
836
  this._raf && (d = l.easeFrame(d, Date.now() - u), Math.abs(d) < 1 && Math.abs(l.velocity) < 50 ? (i(n), a && a(), this.onFinish()) : (u = Date.now(), i(d + n), this._raf = requestAnimationFrame(f)));
839
837
  };
840
838
  this._raf = requestAnimationFrame(f);
@@ -842,7 +840,7 @@ var M = class {
842
840
  destroy() {
843
841
  this._raf >= 0 && cancelAnimationFrame(this._raf), this._raf = 0;
844
842
  }
845
- }, ae = class {
843
+ }, q = class {
846
844
  constructor() {
847
845
  this.activeAnimations = [];
848
846
  }
@@ -853,7 +851,7 @@ var M = class {
853
851
  this._start(e);
854
852
  }
855
853
  _start(e, t) {
856
- let n = t ? new q(e) : new U(e);
854
+ let n = t ? new K(e) : new H(e);
857
855
  return this.activeAnimations.push(n), n.onFinish = () => this.stop(n), n;
858
856
  }
859
857
  stop(e) {
@@ -875,7 +873,7 @@ var M = class {
875
873
  isPanRunning() {
876
874
  return this.activeAnimations.some((e) => e.props.isPan);
877
875
  }
878
- }, J = class {
876
+ }, ae = class {
879
877
  constructor(e) {
880
878
  this.pswp = e, e.events.add(e.element, "wheel", this._onWheel.bind(this));
881
879
  }
@@ -897,13 +895,13 @@ var M = class {
897
895
  }
898
896
  }
899
897
  };
900
- function oe(e) {
898
+ function J(e) {
901
899
  if (typeof e == "string") return e;
902
900
  if (!e || !e.isCustomSVG) return "";
903
901
  let t = e, n = "<svg aria-hidden=\"true\" class=\"pswp__icn\" viewBox=\"0 0 %d %d\" width=\"%d\" height=\"%d\">";
904
902
  return n = n.split("%d").join(t.size || 32), t.outlineID && (n += "<use class=\"pswp__icn-shadow\" xlink:href=\"#" + t.outlineID + "\"/>"), n += t.inner, n += "</svg>", n;
905
903
  }
906
- var se = class {
904
+ var oe = class {
907
905
  constructor(t, n) {
908
906
  var r;
909
907
  let i = n.name || n.className, a = n.html;
@@ -921,7 +919,7 @@ var se = class {
921
919
  let a = r || e;
922
920
  a && c.setAttribute("aria-label", a);
923
921
  }
924
- c.innerHTML = oe(a), n.onInit && n.onInit(c, t), n.onClick && (c.onclick = (e) => {
922
+ c.innerHTML = J(a), n.onInit && n.onInit(c, t), n.onClick && (c.onclick = (e) => {
925
923
  typeof n.onClick == "string" ? t[n.onClick]() : typeof n.onClick == "function" && n.onClick(e, c, t);
926
924
  });
927
925
  let l = n.appendTo || "bar", u = t.element;
@@ -933,7 +931,7 @@ function Y(e, t, n) {
933
931
  t.options.loop || (e.disabled = n ? !(t.currIndex < t.getNumItems() - 1) : !(t.currIndex > 0));
934
932
  });
935
933
  }
936
- var ce = {
934
+ var se = {
937
935
  name: "arrowPrev",
938
936
  className: "pswp__button--arrow--prev",
939
937
  title: "Previous",
@@ -948,7 +946,7 @@ var ce = {
948
946
  },
949
947
  onClick: "prev",
950
948
  onInit: Y
951
- }, le = {
949
+ }, ce = {
952
950
  name: "arrowNext",
953
951
  className: "pswp__button--arrow--next",
954
952
  title: "Next",
@@ -965,7 +963,7 @@ var ce = {
965
963
  onInit: (e, t) => {
966
964
  Y(e, t, !0);
967
965
  }
968
- }, ue = {
966
+ }, le = {
969
967
  name: "close",
970
968
  title: "Close",
971
969
  order: 20,
@@ -976,7 +974,7 @@ var ce = {
976
974
  outlineID: "pswp__icn-close"
977
975
  },
978
976
  onClick: "close"
979
- }, de = {
977
+ }, ue = {
980
978
  name: "zoom",
981
979
  title: "Zoom",
982
980
  order: 10,
@@ -987,7 +985,7 @@ var ce = {
987
985
  outlineID: "pswp__icn-zoom"
988
986
  },
989
987
  onClick: "toggleZoom"
990
- }, fe = {
988
+ }, de = {
991
989
  name: "preloader",
992
990
  appendTo: "bar",
993
991
  order: 7,
@@ -1011,7 +1009,7 @@ var ce = {
1011
1009
  t.currSlide === e.slide && o();
1012
1010
  }), t.ui && (t.ui.updatePreloaderVisibility = o);
1013
1011
  }
1014
- }, pe = {
1012
+ }, fe = {
1015
1013
  name: "counter",
1016
1014
  order: 5,
1017
1015
  onInit: (e, t) => {
@@ -1023,19 +1021,19 @@ var ce = {
1023
1021
  function X(e, t) {
1024
1022
  e.classList.toggle("pswp--zoomed-in", t);
1025
1023
  }
1026
- var me = class {
1024
+ var pe = class {
1027
1025
  constructor(e) {
1028
1026
  this.pswp = e, this.isRegistered = !1, this.uiElementsData = [], this.items = [], this.updatePreloaderVisibility = () => {}, this._lastUpdatedZoomLevel = void 0;
1029
1027
  }
1030
1028
  init() {
1031
1029
  let { pswp: e } = this;
1032
1030
  this.isRegistered = !1, this.uiElementsData = [
1033
- ue,
1034
- ce,
1035
1031
  le,
1032
+ se,
1033
+ ce,
1034
+ ue,
1036
1035
  de,
1037
- fe,
1038
- pe
1036
+ fe
1039
1037
  ], e.dispatch("uiRegister"), this.uiElementsData.sort((e, t) => (e.order || 0) - (t.order || 0)), this.items = [], this.isRegistered = !0, this.uiElementsData.forEach((e) => {
1040
1038
  this.registerElement(e);
1041
1039
  }), e.on("change", () => {
@@ -1044,7 +1042,7 @@ var me = class {
1044
1042
  }), e.on("zoomPanUpdate", () => this._onZoomPanUpdate());
1045
1043
  }
1046
1044
  registerElement(e) {
1047
- this.isRegistered ? this.items.push(new se(this.pswp, e)) : this.uiElementsData.push(e);
1045
+ this.isRegistered ? this.items.push(new oe(this.pswp, e)) : this.uiElementsData.push(e);
1048
1046
  }
1049
1047
  _onZoomPanUpdate() {
1050
1048
  let { template: e, currSlide: t, options: n } = this.pswp;
@@ -1056,7 +1054,7 @@ var me = class {
1056
1054
  Math.abs(i) < .01 || !t.isZoomable() ? (X(e, !1), e.classList.remove("pswp--zoom-allowed")) : (e.classList.add("pswp--zoom-allowed"), X(e, (r === t.zoomLevels.initial ? t.zoomLevels.secondary : t.zoomLevels.initial) <= r), (n.imageClickAction === "zoom" || n.imageClickAction === "zoom-or-close") && e.classList.add("pswp--click-to-zoom"));
1057
1055
  }
1058
1056
  };
1059
- function he(e) {
1057
+ function me(e) {
1060
1058
  let t = e.getBoundingClientRect();
1061
1059
  return {
1062
1060
  x: t.left,
@@ -1064,7 +1062,7 @@ function he(e) {
1064
1062
  w: t.width
1065
1063
  };
1066
1064
  }
1067
- function ge(e, t, n) {
1065
+ function he(e, t, n) {
1068
1066
  let r = e.getBoundingClientRect(), i = r.width / t, a = r.height / n, o = i > a ? i : a, s = (r.width - t * o) / 2, c = (r.height - n * o) / 2, l = {
1069
1067
  x: r.left + s,
1070
1068
  y: r.top + c,
@@ -1077,7 +1075,7 @@ function ge(e, t, n) {
1077
1075
  y: c
1078
1076
  }, l;
1079
1077
  }
1080
- function _e(e, t, n) {
1078
+ function ge(e, t, n) {
1081
1079
  let r = n.dispatch("thumbBounds", {
1082
1080
  index: e,
1083
1081
  itemData: t,
@@ -1089,16 +1087,16 @@ function _e(e, t, n) {
1089
1087
  let e = n.options.thumbSelector || "img";
1090
1088
  o = i.matches(e) ? i : i.querySelector(e);
1091
1089
  }
1092
- return o = n.applyFilters("thumbEl", o, t, e), o && (a = t.thumbCropped ? ge(o, t.width || t.w || 0, t.height || t.h || 0) : he(o)), n.applyFilters("thumbBounds", a, t, e);
1090
+ return o = n.applyFilters("thumbEl", o, t, e), o && (a = t.thumbCropped ? he(o, t.width || t.w || 0, t.height || t.h || 0) : me(o)), n.applyFilters("thumbBounds", a, t, e);
1093
1091
  }
1094
- var ve = class {
1092
+ var _e = class {
1095
1093
  constructor(e, t) {
1096
1094
  this.type = e, this.defaultPrevented = !1, t && Object.assign(this, t);
1097
1095
  }
1098
1096
  preventDefault() {
1099
1097
  this.defaultPrevented = !0;
1100
1098
  }
1101
- }, ye = class {
1099
+ }, ve = class {
1102
1100
  constructor() {
1103
1101
  this._listeners = {}, this._filters = {}, this.pswp = void 0, this.options = void 0;
1104
1102
  }
@@ -1129,12 +1127,12 @@ var ve = class {
1129
1127
  dispatch(e, t) {
1130
1128
  var n;
1131
1129
  if (this.pswp) return this.pswp.dispatch(e, t);
1132
- let r = new ve(e, t);
1130
+ let r = new _e(e, t);
1133
1131
  return (n = this._listeners[e]) == null || n.forEach((e) => {
1134
1132
  e.call(this, r);
1135
1133
  }), r;
1136
1134
  }
1137
- }, be = class {
1135
+ }, ye = class {
1138
1136
  constructor(t, n) {
1139
1137
  if (this.element = e("pswp__img pswp__img--placeholder", t ? "img" : "div", n), t) {
1140
1138
  let e = this.element;
@@ -1143,15 +1141,15 @@ var ve = class {
1143
1141
  this.element.setAttribute("aria-hidden", "true");
1144
1142
  }
1145
1143
  setDisplayedSize(e, t) {
1146
- this.element && (this.element.tagName === "IMG" ? (u(this.element, 250, "auto"), this.element.style.transformOrigin = "0 0", this.element.style.transform = o(0, 0, e / 250)) : u(this.element, e, t));
1144
+ this.element && (this.element.tagName === "IMG" ? (l(this.element, 250, "auto"), this.element.style.transformOrigin = "0 0", this.element.style.transform = o(0, 0, e / 250)) : l(this.element, e, t));
1147
1145
  }
1148
1146
  destroy() {
1149
1147
  var e;
1150
1148
  (e = this.element) != null && e.parentNode && this.element.remove(), this.element = null;
1151
1149
  }
1152
- }, xe = class {
1150
+ }, be = class {
1153
1151
  constructor(e, t, n) {
1154
- this.instance = t, this.data = e, this.index = n, this.element = void 0, this.placeholder = void 0, this.slide = void 0, this.displayedImageWidth = 0, this.displayedImageHeight = 0, this.width = Number(this.data.w) || Number(this.data.width) || 0, this.height = Number(this.data.h) || Number(this.data.height) || 0, this.isAttached = !1, this.hasSlide = !1, this.isDecoding = !1, this.state = p.IDLE, this.type = this.data.type ? this.data.type : this.data.src ? "image" : "html", this.instance.dispatch("contentInit", { content: this });
1152
+ this.instance = t, this.data = e, this.index = n, this.element = void 0, this.placeholder = void 0, this.slide = void 0, this.displayedImageWidth = 0, this.displayedImageHeight = 0, this.width = Number(this.data.w) || Number(this.data.width) || 0, this.height = Number(this.data.h) || Number(this.data.height) || 0, this.isAttached = !1, this.hasSlide = !1, this.isDecoding = !1, this.state = f.IDLE, this.type = this.data.type ? this.data.type : this.data.src ? "image" : "html", this.instance.dispatch("contentInit", { content: this });
1155
1153
  }
1156
1154
  removePlaceholder() {
1157
1155
  this.placeholder && !this.keepPlaceholder() && setTimeout(() => {
@@ -1165,7 +1163,7 @@ var ve = class {
1165
1163
  e && !e.parentElement && this.slide.container.prepend(e);
1166
1164
  } else {
1167
1165
  let e = this.instance.applyFilters("placeholderSrc", this.data.msrc && this.slide.isFirstSlide ? this.data.msrc : !1, this);
1168
- this.placeholder = new be(e, this.slide.container);
1166
+ this.placeholder = new ye(e, this.slide.container);
1169
1167
  }
1170
1168
  }
1171
1169
  (!this.element || n) && (this.instance.dispatch("contentLoad", {
@@ -1179,7 +1177,7 @@ var ve = class {
1179
1177
  isLazy: e
1180
1178
  }).defaultPrevented) return;
1181
1179
  let t = this.element;
1182
- this.updateSrcsetSizes(), this.data.srcset && (t.srcset = this.data.srcset), t.src = this.data.src ?? "", t.alt = this.data.alt ?? "", this.state = p.LOADING, t.complete ? this.onLoaded() : (t.onload = () => {
1180
+ this.updateSrcsetSizes(), this.data.srcset && (t.srcset = this.data.srcset), t.src = this.data.src ?? "", t.alt = this.data.alt ?? "", this.state = f.LOADING, t.complete ? this.onLoaded() : (t.onload = () => {
1183
1181
  this.onLoaded();
1184
1182
  }, t.onerror = () => {
1185
1183
  this.onError();
@@ -1189,13 +1187,13 @@ var ve = class {
1189
1187
  this.slide = e, this.hasSlide = !0, this.instance = e.pswp;
1190
1188
  }
1191
1189
  onLoaded() {
1192
- this.state = p.LOADED, this.slide && this.element && (this.instance.dispatch("loadComplete", {
1190
+ this.state = f.LOADED, this.slide && this.element && (this.instance.dispatch("loadComplete", {
1193
1191
  slide: this.slide,
1194
1192
  content: this
1195
- }), this.slide.isActive && this.slide.heavyAppended && !this.element.parentNode && (this.append(), this.slide.updateContentSize(!0)), (this.state === p.LOADED || this.state === p.ERROR) && this.removePlaceholder());
1193
+ }), this.slide.isActive && this.slide.heavyAppended && !this.element.parentNode && (this.append(), this.slide.updateContentSize(!0)), (this.state === f.LOADED || this.state === f.ERROR) && this.removePlaceholder());
1196
1194
  }
1197
1195
  onError() {
1198
- this.state = p.ERROR, this.slide && (this.displayError(), this.instance.dispatch("loadComplete", {
1196
+ this.state = f.ERROR, this.slide && (this.displayError(), this.instance.dispatch("loadComplete", {
1199
1197
  slide: this.slide,
1200
1198
  isError: !0,
1201
1199
  content: this
@@ -1205,10 +1203,10 @@ var ve = class {
1205
1203
  }));
1206
1204
  }
1207
1205
  isLoading() {
1208
- return this.instance.applyFilters("isContentLoading", this.state === p.LOADING, this);
1206
+ return this.instance.applyFilters("isContentLoading", this.state === f.LOADING, this);
1209
1207
  }
1210
1208
  isError() {
1211
- return this.state === p.ERROR;
1209
+ return this.state === f.ERROR;
1212
1210
  }
1213
1211
  isImageContent() {
1214
1212
  return this.type === "image";
@@ -1218,7 +1216,7 @@ var ve = class {
1218
1216
  content: this,
1219
1217
  width: e,
1220
1218
  height: t
1221
- }).defaultPrevented && (u(this.element, e, t), this.isImageContent() && !this.isError()))) {
1219
+ }).defaultPrevented && (l(this.element, e, t), this.isImageContent() && !this.isError()))) {
1222
1220
  let n = !this.displayedImageWidth && e;
1223
1221
  this.displayedImageWidth = e, this.displayedImageHeight = t, n ? this.loadImage(!1) : this.updateSrcsetSizes(), this.slide && this.instance.dispatch("imageSizeChange", {
1224
1222
  slide: this.slide,
@@ -1229,7 +1227,7 @@ var ve = class {
1229
1227
  }
1230
1228
  }
1231
1229
  isZoomable() {
1232
- return this.instance.applyFilters("isContentZoomable", this.isImageContent() && this.state !== p.ERROR, this);
1230
+ return this.instance.applyFilters("isContentZoomable", this.isImageContent() && this.state !== f.ERROR, this);
1233
1231
  }
1234
1232
  updateSrcsetSizes() {
1235
1233
  if (!this.isImageContent() || !this.element || !this.data.srcset) return;
@@ -1256,7 +1254,7 @@ var ve = class {
1256
1254
  }
1257
1255
  append() {
1258
1256
  if (this.isAttached || !this.element) return;
1259
- if (this.isAttached = !0, this.state === p.ERROR) {
1257
+ if (this.isAttached = !0, this.state === f.ERROR) {
1260
1258
  this.displayError();
1261
1259
  return;
1262
1260
  }
@@ -1276,9 +1274,9 @@ var ve = class {
1276
1274
  this.isAttached = !1, !this.instance.dispatch("contentRemove", { content: this }).defaultPrevented && (this.element && this.element.parentNode && this.element.remove(), this.placeholder && this.placeholder.element && this.placeholder.element.remove());
1277
1275
  }
1278
1276
  appendImage() {
1279
- this.isAttached && (this.instance.dispatch("contentAppendImage", { content: this }).defaultPrevented || (this.slide && this.element && !this.element.parentNode && this.slide.container.appendChild(this.element), (this.state === p.LOADED || this.state === p.ERROR) && this.removePlaceholder()));
1277
+ this.isAttached && (this.instance.dispatch("contentAppendImage", { content: this }).defaultPrevented || (this.slide && this.element && !this.element.parentNode && this.slide.container.appendChild(this.element), (this.state === f.LOADED || this.state === f.ERROR) && this.removePlaceholder()));
1280
1278
  }
1281
- }, Se = 5;
1279
+ }, xe = 5;
1282
1280
  function Z(e, t, n) {
1283
1281
  let r = t.createContentFromData(e, n), i, { options: a } = t;
1284
1282
  if (a) {
@@ -1290,16 +1288,16 @@ function Z(e, t, n) {
1290
1288
  }
1291
1289
  return r.lazyLoad(), i && r.setDisplayedSize(Math.ceil(r.width * i.initial), Math.ceil(r.height * i.initial)), r;
1292
1290
  }
1293
- function Ce(e, t) {
1291
+ function Q(e, t) {
1294
1292
  let n = t.getItemData(e);
1295
1293
  if (!t.dispatch("lazyLoadSlide", {
1296
1294
  index: e,
1297
1295
  itemData: n
1298
1296
  }).defaultPrevented) return Z(n, t, e);
1299
1297
  }
1300
- var we = class {
1298
+ var Se = class {
1301
1299
  constructor(e) {
1302
- this.pswp = e, this.limit = Math.max(e.options.preload[0] + e.options.preload[1] + 1, Se), this._cachedItems = [];
1300
+ this.pswp = e, this.limit = Math.max(e.options.preload[0] + e.options.preload[1] + 1, xe), this._cachedItems = [];
1303
1301
  }
1304
1302
  updateLazy(e) {
1305
1303
  let { pswp: t } = this;
@@ -1310,7 +1308,7 @@ var we = class {
1310
1308
  }
1311
1309
  loadSlideByIndex(e) {
1312
1310
  let t = this.pswp.getLoopedIndex(e), n = this.getContentByIndex(t);
1313
- n || (n = Ce(t, this.pswp), n && this.addToCache(n));
1311
+ n || (n = Q(t, this.pswp), n && this.addToCache(n));
1314
1312
  }
1315
1313
  getContentBySlide(e) {
1316
1314
  let t = this.getContentByIndex(e.index);
@@ -1332,7 +1330,7 @@ var we = class {
1332
1330
  destroy() {
1333
1331
  this._cachedItems.forEach((e) => e.destroy()), this._cachedItems = [];
1334
1332
  }
1335
- }, Q = class extends ye {
1333
+ }, Ce = class extends ve {
1336
1334
  getNumItems() {
1337
1335
  let e = 0, t = this.options?.dataSource;
1338
1336
  t && "length" in t ? e = t.length : t && "gallery" in t && (t.items ||= this._getGalleryDOMElements(t.gallery), t.items && (e = t.items.length));
@@ -1343,7 +1341,7 @@ var we = class {
1343
1341
  return this.applyFilters("numItems", n.numItems, t);
1344
1342
  }
1345
1343
  createContentFromData(e, t) {
1346
- return new xe(e, this, t);
1344
+ return new be(e, this, t);
1347
1345
  }
1348
1346
  getItemData(e) {
1349
1347
  let t = this.options?.dataSource, n = {};
@@ -1358,7 +1356,7 @@ var we = class {
1358
1356
  }
1359
1357
  _getGalleryDOMElements(e) {
1360
1358
  var t, n;
1361
- return (t = this.options) != null && t.children || (n = this.options) != null && n.childSelector ? ee(this.options.children, this.options.childSelector, e) || [] : [e];
1359
+ return (t = this.options) != null && t.children || (n = this.options) != null && n.childSelector ? m(this.options.children, this.options.childSelector, e) || [] : [e];
1362
1360
  }
1363
1361
  _domElementToItemData(e) {
1364
1362
  let t = { element: e }, n = e.tagName === "A" ? e : e.querySelector("a");
@@ -1372,7 +1370,7 @@ var we = class {
1372
1370
  lazyLoadData(e, t) {
1373
1371
  return Z(e, this, t);
1374
1372
  }
1375
- }, $ = .003, Te = class {
1373
+ }, $ = .003, we = class {
1376
1374
  constructor(e) {
1377
1375
  this.pswp = e, this.isClosed = !0, this.isOpen = !1, this.isClosing = !1, this.isOpening = !1, this._duration = void 0, this._useAnimation = !1, this._croppedZoom = !1, this._animateRootOpacity = !1, this._animateBgOpacity = !1, this._placeholder = void 0, this._opacityElement = void 0, this._cropContainer1 = void 0, this._cropContainer2 = void 0, this._thumbBounds = void 0, this._prepareOpen = this._prepareOpen.bind(this), e.on("firstZoomPan", this._prepareOpen);
1378
1376
  }
@@ -1399,7 +1397,7 @@ var we = class {
1399
1397
  _start() {
1400
1398
  this.isOpening && this._useAnimation && this._placeholder && this._placeholder.tagName === "IMG" ? new Promise((e) => {
1401
1399
  let t = !1, n = !0;
1402
- f(this._placeholder).finally(() => {
1400
+ d(this._placeholder).finally(() => {
1403
1401
  t = !0, n || e(!0);
1404
1402
  }), setTimeout(() => {
1405
1403
  n = !1, t && e(!0);
@@ -1450,7 +1448,7 @@ var we = class {
1450
1448
  };
1451
1449
  i[t] = n, r.startTransition(i);
1452
1450
  }
1453
- }, Ee = {
1451
+ }, Te = {
1454
1452
  allowPanToNext: !0,
1455
1453
  spacing: .1,
1456
1454
  loop: !0,
@@ -1476,7 +1474,7 @@ var we = class {
1476
1474
  errorMsg: "The image cannot be loaded",
1477
1475
  preload: [1, 2],
1478
1476
  easing: "cubic-bezier(.4,0,.22,1)"
1479
- }, De = class extends Q {
1477
+ }, Ee = class extends Ce {
1480
1478
  constructor(e) {
1481
1479
  super(), this.options = this._prepareOptions(e || {}), this.offset = {
1482
1480
  x: 0,
@@ -1487,13 +1485,13 @@ var we = class {
1487
1485
  }, this.viewportSize = {
1488
1486
  x: 0,
1489
1487
  y: 0
1490
- }, 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 _(), this.animations = new ae(), this.mainScroll = new R(this), this.gestures = new I(this), this.opener = new Te(this), this.keyboard = new V(this), this.contentLoader = new we(this);
1488
+ }, 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 _(), this.animations = new q(), this.mainScroll = new L(this), this.gestures = new F(this), this.opener = new we(this), this.keyboard = new B(this), this.contentLoader = new Se(this);
1491
1489
  }
1492
1490
  init() {
1493
1491
  if (this.isOpen || this.isDestroying) return !1;
1494
1492
  this.isOpen = !0, this.dispatch("init"), this.dispatch("beforeOpen"), this._createMainStructure();
1495
1493
  let e = "pswp--open";
1496
- return this.gestures.supportsTouch && (e += " pswp--touch"), this.options.mainClass && (e += " " + this.options.mainClass), this.element && (this.element.className += " " + e), this.currIndex = this.options.index || 0, this.potentialIndex = this.currIndex, this.dispatch("firstUpdate"), this.scrollWheel = new J(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", {
1494
+ return this.gestures.supportsTouch && (e += " pswp--touch"), this.options.mainClass && (e += " " + this.options.mainClass), this.element && (this.element.className += " " + e), this.currIndex = this.options.index || 0, this.potentialIndex = this.currIndex, this.dispatch("firstUpdate"), this.scrollWheel = new ae(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", {
1497
1495
  index: this.currIndex,
1498
1496
  data: this._initialItemData,
1499
1497
  slide: void 0
@@ -1553,7 +1551,7 @@ var we = class {
1553
1551
  if (e.slide.index === t && !n) return;
1554
1552
  e.slide.destroy(), e.slide = void 0;
1555
1553
  }
1556
- !this.canLoop() && (t < 0 || t >= this.getNumItems()) || (e.slide = new te(this.getItemData(t), t, this), t === this.currIndex && (this.currSlide = e.slide), e.slide.append(e.el));
1554
+ !this.canLoop() && (t < 0 || t >= this.getNumItems()) || (e.slide = new ee(this.getItemData(t), t, this), t === this.currIndex && (this.currSlide = e.slide), e.slide.append(e.el));
1557
1555
  }
1558
1556
  getViewportCenterPoint() {
1559
1557
  return {
@@ -1587,20 +1585,20 @@ var we = class {
1587
1585
  this.offset.x = e, this.offset.y = t, this.dispatch("updateScrollOffset");
1588
1586
  }
1589
1587
  _createMainStructure() {
1590
- this.element = e("pswp", "div"), this.element.setAttribute("tabindex", "-1"), this.element.setAttribute("role", "dialog"), this.template = this.element, this.bg = e("pswp__bg", "div", this.element), this.scrollWrap = e("pswp__scroll-wrap", "section", this.element), this.container = e("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 me(this), this.ui.init(), (this.options.appendToEl || document.body).appendChild(this.element);
1588
+ this.element = e("pswp", "div"), this.element.setAttribute("tabindex", "-1"), this.element.setAttribute("role", "dialog"), this.template = this.element, this.bg = e("pswp__bg", "div", this.element), this.scrollWrap = e("pswp__scroll-wrap", "section", this.element), this.container = e("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 pe(this), this.ui.init(), (this.options.appendToEl || document.body).appendChild(this.element);
1591
1589
  }
1592
1590
  getThumbBounds() {
1593
- return _e(this.currIndex, this.currSlide ? this.currSlide.data : this._initialItemData, this);
1591
+ return ge(this.currIndex, this.currSlide ? this.currSlide.data : this._initialItemData, this);
1594
1592
  }
1595
1593
  canLoop() {
1596
1594
  return this.options.loop && this.getNumItems() > 2;
1597
1595
  }
1598
1596
  _prepareOptions(e) {
1599
1597
  return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches && (e.showHideAnimationType = "none", e.zoomAnimationDuration = 0), {
1600
- ...Ee,
1598
+ ...Te,
1601
1599
  ...e
1602
1600
  };
1603
1601
  }
1604
1602
  };
1605
1603
  //#endregion
1606
- export { De as default };
1604
+ export { Ee as default };