@innovastudio/contentbox-interactive-runtime 1.0.11 → 1.0.13

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.
@@ -1,14 +1,14 @@
1
1
  var Ai = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function gi(u) {
3
- return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
2
+ function gi(d) {
3
+ return d && d.__esModule && Object.prototype.hasOwnProperty.call(d, "default") ? d.default : d;
4
4
  }
5
5
  var Dt = { exports: {} }, ws = Dt.exports, Oi;
6
6
  function xs() {
7
- return Oi || (Oi = 1, (function(u, e) {
7
+ return Oi || (Oi = 1, (function(d, e) {
8
8
  (function(t, s) {
9
- u.exports = s();
9
+ d.exports = s();
10
10
  })(ws, function() {
11
- var t = typeof window < "u" ? window : typeof Ai < "u" ? Ai : typeof self < "u" ? self : {}, s = "Expected a function", i = NaN, n = "[object Symbol]", r = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, l = /^0b[01]+$/i, c = /^0o[0-7]+$/i, d = parseInt, o = typeof t == "object" && t && t.Object === Object && t, h = typeof self == "object" && self && self.Object === Object && self, p = o || h || Function("return this")(), g = Object.prototype.toString, w = Math.max, S = Math.min, b = function() {
11
+ var t = typeof window < "u" ? window : typeof Ai < "u" ? Ai : typeof self < "u" ? self : {}, s = "Expected a function", i = NaN, n = "[object Symbol]", r = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, l = /^0b[01]+$/i, c = /^0o[0-7]+$/i, u = parseInt, o = typeof t == "object" && t && t.Object === Object && t, h = typeof self == "object" && self && self.Object === Object && self, p = o || h || Function("return this")(), g = Object.prototype.toString, w = Math.max, S = Math.min, b = function() {
12
12
  return p.Date.now();
13
13
  };
14
14
  function x(A, j, z) {
@@ -18,13 +18,13 @@ function xs() {
18
18
  var _e = V, Ie = K;
19
19
  return V = K = void 0, ue = Z, be = A.apply(Ie, _e);
20
20
  }
21
- function Fe(Z) {
21
+ function Ye(Z) {
22
22
  var _e = Z - we;
23
23
  return we === void 0 || _e >= j || _e < 0 || xe && Z - ue >= ve;
24
24
  }
25
25
  function He() {
26
26
  var Z = b();
27
- if (Fe(Z)) return Ge(Z);
27
+ if (Ye(Z)) return Ge(Z);
28
28
  X = setTimeout(He, (function(_e) {
29
29
  var Ie = j - (_e - we);
30
30
  return xe ? S(Ie, ve - (_e - ue)) : Ie;
@@ -34,7 +34,7 @@ function xs() {
34
34
  return X = void 0, Le && V ? Re(Z) : (V = K = void 0, be);
35
35
  }
36
36
  function Ae() {
37
- var Z = b(), _e = Fe(Z);
37
+ var Z = b(), _e = Ye(Z);
38
38
  if (V = arguments, K = this, we = Z, _e) {
39
39
  if (X === void 0) return (function(Ie) {
40
40
  return ue = Ie, X = setTimeout(He, j), qe ? Re(Ie) : be;
@@ -67,7 +67,7 @@ function xs() {
67
67
  if (typeof A != "string") return A === 0 ? A : +A;
68
68
  A = A.replace(r, "");
69
69
  var z = l.test(A);
70
- return z || c.test(A) ? d(A.slice(2), z ? 2 : 8) : a.test(A) ? i : +A;
70
+ return z || c.test(A) ? u(A.slice(2), z ? 2 : 8) : a.test(A) ? i : +A;
71
71
  }
72
72
  var _ = function(A, j, z) {
73
73
  var V = !0, K = !0;
@@ -103,13 +103,13 @@ function xs() {
103
103
  var _e = V, Ie = K;
104
104
  return V = K = void 0, ue = Z, be = A.apply(Ie, _e);
105
105
  }
106
- function Fe(Z) {
106
+ function Ye(Z) {
107
107
  var _e = Z - we;
108
108
  return we === void 0 || _e >= j || _e < 0 || xe && Z - ue >= ve;
109
109
  }
110
110
  function He() {
111
111
  var Z = $();
112
- if (Fe(Z)) return Ge(Z);
112
+ if (Ye(Z)) return Ge(Z);
113
113
  X = setTimeout(He, (function(_e) {
114
114
  var Ie = j - (_e - we);
115
115
  return xe ? E(Ie, ve - (_e - ue)) : Ie;
@@ -119,7 +119,7 @@ function xs() {
119
119
  return X = void 0, Le && V ? Re(Z) : (V = K = void 0, be);
120
120
  }
121
121
  function Ae() {
122
- var Z = $(), _e = Fe(Z);
122
+ var Z = $(), _e = Ye(Z);
123
123
  if (V = arguments, K = this, we = Z, _e) {
124
124
  if (X === void 0) return (function(Ie) {
125
125
  return ue = Ie, X = setTimeout(He, j), qe ? Re(Ie) : be;
@@ -133,7 +133,7 @@ function xs() {
133
133
  }, Ae.flush = function() {
134
134
  return X === void 0 ? be : Ge($());
135
135
  }, Ae;
136
- }, F = function() {
136
+ }, Y = function() {
137
137
  };
138
138
  function ee(A) {
139
139
  A && A.forEach(function(j) {
@@ -143,7 +143,7 @@ function xs() {
143
143
  for (be = 0; be < ve.length; be += 1)
144
144
  if ((X = ve[be]).dataset && X.dataset.aos || X.children && K(X.children)) return !0;
145
145
  return !1;
146
- })(z.concat(V))) return F();
146
+ })(z.concat(V))) return Y();
147
147
  });
148
148
  }
149
149
  function Q() {
@@ -153,7 +153,7 @@ function xs() {
153
153
  return !!Q();
154
154
  }, ready: function(A, j) {
155
155
  var z = window.document, V = new (Q())(ee);
156
- F = j, V.observe(z.documentElement, { childList: !0, subtree: !0, removedNodes: !0 });
156
+ Y = j, V.observe(z.documentElement, { childList: !0, subtree: !0, removedNodes: !0 });
157
157
  } }, Ee = function(A, j) {
158
158
  if (!(A instanceof j)) throw new TypeError("Cannot call a class as a function");
159
159
  }, me = /* @__PURE__ */ (function() {
@@ -221,13 +221,13 @@ function xs() {
221
221
  if (V === "false") return !1;
222
222
  }
223
223
  return V || z;
224
- }, Y = function(A, j) {
224
+ }, F = function(A, j) {
225
225
  return A.forEach(function(z, V) {
226
226
  var K = te(z.node, "mirror", j.mirror), ve = te(z.node, "once", j.once), be = te(z.node, "id"), X = j.useClassNames && z.node.getAttribute("data-aos"), we = [j.animatedClassName].concat(X ? X.split(" ") : []).filter(function(ue) {
227
227
  return typeof ue == "string";
228
228
  });
229
229
  j.initClassName && z.node.classList.add(j.initClassName), z.position = { in: (function(ue, qe, xe) {
230
- var Le = window.innerHeight, Re = te(ue, "anchor"), Fe = te(ue, "anchor-placement"), He = Number(te(ue, "offset", Fe ? 0 : qe)), Ge = Fe || xe, Ae = ue;
230
+ var Le = window.innerHeight, Re = te(ue, "anchor"), Ye = te(ue, "anchor-placement"), He = Number(te(ue, "offset", Ye ? 0 : qe)), Ge = Ye || xe, Ae = ue;
231
231
  Re && document.querySelectorAll(Re) && (Ae = document.querySelectorAll(Re)[0]);
232
232
  var Z = se(Ae).top - Le;
233
233
  switch (Ge) {
@@ -271,17 +271,17 @@ function xs() {
271
271
  }, pe = [], Me = !1, ne = { offset: 120, delay: 0, easing: "ease", duration: 400, disable: !1, once: !1, mirror: !1, anchorPlacement: "top-bottom", startEvent: "DOMContentLoaded", animatedClassName: "aos-animate", initClassName: "aos-init", useClassNames: !1, disableMutationObserver: !1, throttleDelay: 99, debounceDelay: 50 }, Pe = function() {
272
272
  return document.all && !window.atob;
273
273
  }, Ce = function() {
274
- arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (Me = !0), Me && (pe = Y(pe, ne), le(pe), window.addEventListener("scroll", _(function() {
274
+ arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (Me = !0), Me && (pe = F(pe, ne), le(pe), window.addEventListener("scroll", _(function() {
275
275
  le(pe, ne.once);
276
276
  }, ne.throttleDelay)));
277
277
  }, De = function() {
278
- if (pe = Se(), Ye(ne.disable) || Pe()) return Ue();
278
+ if (pe = Se(), Fe(ne.disable) || Pe()) return Ue();
279
279
  Ce();
280
280
  }, Ue = function() {
281
281
  pe.forEach(function(A, j) {
282
282
  A.node.removeAttribute("data-aos"), A.node.removeAttribute("data-aos-easing"), A.node.removeAttribute("data-aos-duration"), A.node.removeAttribute("data-aos-delay"), ne.initClassName && A.node.classList.remove(ne.initClassName), ne.animatedClassName && A.node.classList.remove(ne.animatedClassName);
283
283
  });
284
- }, Ye = function(A) {
284
+ }, Fe = function(A) {
285
285
  return A === !0 || A === "mobile" && ce.mobile() || A === "phone" && ce.phone() || A === "tablet" && ce.tablet() || typeof A == "function" && A() === !0;
286
286
  };
287
287
  return { init: function(A) {
@@ -289,7 +289,7 @@ function xs() {
289
289
  aos: MutationObserver is not supported on this browser,
290
290
  code mutations observing has been disabled.
291
291
  You may have to call "refreshHard()" by yourself.
292
- `), ne.disableMutationObserver = !0), ne.disableMutationObserver || he.ready("[data-aos]", De), Ye(ne.disable) || Pe() ? Ue() : (document.querySelector("body").setAttribute("data-aos-easing", ne.easing), document.querySelector("body").setAttribute("data-aos-duration", ne.duration), document.querySelector("body").setAttribute("data-aos-delay", ne.delay), ["DOMContentLoaded", "load"].indexOf(ne.startEvent) === -1 ? document.addEventListener(ne.startEvent, function() {
292
+ `), ne.disableMutationObserver = !0), ne.disableMutationObserver || he.ready("[data-aos]", De), Fe(ne.disable) || Pe() ? Ue() : (document.querySelector("body").setAttribute("data-aos-easing", ne.easing), document.querySelector("body").setAttribute("data-aos-duration", ne.duration), document.querySelector("body").setAttribute("data-aos-delay", ne.delay), ["DOMContentLoaded", "load"].indexOf(ne.startEvent) === -1 ? document.addEventListener(ne.startEvent, function() {
293
293
  Ce(!0);
294
294
  }) : window.addEventListener("load", function() {
295
295
  Ce(!0);
@@ -302,37 +302,37 @@ var _s = xs();
302
302
  const ks = /* @__PURE__ */ gi(_s);
303
303
  var ii = { exports: {} }, Mi;
304
304
  function Ss() {
305
- return Mi || (Mi = 1, (function(u) {
306
- function e(c, d) {
307
- if (!(c instanceof d)) throw new TypeError("Cannot call a class as a function");
305
+ return Mi || (Mi = 1, (function(d) {
306
+ function e(c, u) {
307
+ if (!(c instanceof u)) throw new TypeError("Cannot call a class as a function");
308
308
  }
309
- function t(c, d, o) {
310
- return d in c ? Object.defineProperty(c, d, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : c[d] = o, c;
309
+ function t(c, u, o) {
310
+ return u in c ? Object.defineProperty(c, u, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : c[u] = o, c;
311
311
  }
312
- function s(c, d) {
313
- return l(c) || a(c, d) || n(c, d) || i();
312
+ function s(c, u) {
313
+ return l(c) || a(c, u) || n(c, u) || i();
314
314
  }
315
315
  function i() {
316
316
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
317
317
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
318
318
  }
319
- function n(c, d) {
319
+ function n(c, u) {
320
320
  if (c) {
321
- if (typeof c == "string") return r(c, d);
321
+ if (typeof c == "string") return r(c, u);
322
322
  var o = Object.prototype.toString.call(c).slice(8, -1);
323
- return o === "Object" && c.constructor && (o = c.constructor.name), o === "Map" || o === "Set" ? Array.from(c) : o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o) ? r(c, d) : void 0;
323
+ return o === "Object" && c.constructor && (o = c.constructor.name), o === "Map" || o === "Set" ? Array.from(c) : o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o) ? r(c, u) : void 0;
324
324
  }
325
325
  }
326
- function r(c, d) {
327
- (d == null || d > c.length) && (d = c.length);
328
- for (var o = 0, h = new Array(d); o < d; o++) h[o] = c[o];
326
+ function r(c, u) {
327
+ (u == null || u > c.length) && (u = c.length);
328
+ for (var o = 0, h = new Array(u); o < u; o++) h[o] = c[o];
329
329
  return h;
330
330
  }
331
- function a(c, d) {
331
+ function a(c, u) {
332
332
  if (typeof Symbol < "u" && Symbol.iterator in Object(c)) {
333
333
  var o = [], h = !0, p = !1, g = void 0;
334
334
  try {
335
- for (var w, S = c[Symbol.iterator](); !(h = (w = S.next()).done) && (o.push(w.value), !d || o.length !== d); h = !0) ;
335
+ for (var w, S = c[Symbol.iterator](); !(h = (w = S.next()).done) && (o.push(w.value), !u || o.length !== u); h = !0) ;
336
336
  } catch (b) {
337
337
  p = !0, g = b;
338
338
  } finally {
@@ -352,7 +352,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
352
352
  function c(f) {
353
353
  return ["elInY+elHeight", "elCenterY-".concat(f = 0 < arguments.length && f !== void 0 ? f : 30), "elCenterY", "elCenterY+".concat(f), "elOutY-elHeight"];
354
354
  }
355
- var d, o, h, p, g, w, S = { fadeInOut: function(f, y) {
355
+ var u, o, h, p, g, w, S = { fadeInOut: function(f, y) {
356
356
  return y = 1 < arguments.length && y !== void 0 ? y : 0, { opacity: [c(0 < arguments.length && f !== void 0 ? f : 30), [y, 1, 1, 1, y]] };
357
357
  }, fadeIn: function(f, y) {
358
358
  return { opacity: [["elInY+elHeight", 0 < arguments.length && f !== void 0 ? f : "elCenterY"], [1 < arguments.length && y !== void 0 ? y : 0, 1]] };
@@ -388,7 +388,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
388
388
  return f = 0 < arguments.length && f !== void 0 ? f : 100, y = 1 < arguments.length && y !== void 0 ? y : 100, { translateX: [[0, +f, 2 * f, 3 * f, 4 * f], [0, y, 0, -y, 0], { modValue: 4 * f }] };
389
389
  }, hueRotate: function(f, y) {
390
390
  return f = 0 < arguments.length && f !== void 0 ? f : 600, { "hue-rotate": [[0, f], [0, 1 < arguments.length && y !== void 0 ? y : 360], { modValue: f }] };
391
- } }, b = (d = ["perspective", "scaleX", "scaleY", "scale", "skewX", "skewY", "skew", "rotateX", "rotateY", "rotate"], o = ["blur", "hue-rotate", "brightness"], h = ["translateX", "translateY", "translateZ"], p = ["perspective", "border-radius", "blur", "translateX", "translateY", "translateZ"], g = ["hue-rotate", "rotate", "rotateX", "rotateY", "skew", "skewX", "skewY"], w = { easeInQuad: function(f) {
391
+ } }, b = (u = ["perspective", "scaleX", "scaleY", "scale", "skewX", "skewY", "skew", "rotateX", "rotateY", "rotate"], o = ["blur", "hue-rotate", "brightness"], h = ["translateX", "translateY", "translateZ"], p = ["perspective", "border-radius", "blur", "translateX", "translateY", "translateZ"], g = ["hue-rotate", "rotate", "rotateX", "rotateY", "skew", "skewX", "skewY"], w = { easeInQuad: function(f) {
392
392
  return f * f;
393
393
  }, easeOutQuad: function(f) {
394
394
  return f * (2 - f);
@@ -510,16 +510,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
510
510
  P[M] || console.error("No lax driver with name: ", M);
511
511
  var $, H = s(P[M], 2), U = H[0], J = H[1];
512
512
  for ($ in E) {
513
- var F, me = s(E[$], 3), ee = me[0], Q = me[1], Te = me[2], re = Te === void 0 ? {} : Te, he = re.modValue, ye = re.frameStep, Ee = ye === void 0 ? 1 : ye, N = re.easing, me = re.inertia, Te = re.inertiaMode, ye = re.cssFn, re = re.cssUnit, re = re === void 0 ? "" : re, N = w[N];
513
+ var Y, me = s(E[$], 3), ee = me[0], Q = me[1], Te = me[2], re = Te === void 0 ? {} : Te, he = re.modValue, ye = re.frameStep, Ee = ye === void 0 ? 1 : ye, N = re.easing, me = re.inertia, Te = re.inertiaMode, ye = re.cssFn, re = re.cssUnit, re = re === void 0 ? "" : re, N = w[N];
514
514
  D % Ee == 0 && (N = (function(G, ie, ce, fe) {
515
515
  var le = 0;
516
- if (G.forEach(function(Y) {
517
- Y < ce && le++;
516
+ if (G.forEach(function(F) {
517
+ F < ce && le++;
518
518
  }), le <= 0) return ie[0];
519
519
  if (le >= G.length) return ie[G.length - 1];
520
520
  var se, te = (te = G[se = le - 1], G = G[le], (ce - te) / (G - te));
521
521
  return fe && (te = fe(te)), se = ie[se], ie = ie[le], se * (1 - (te = te)) + ie * te;
522
- })(ee, Q, he ? U % he : U, N), me && (F = J * me, Te === "absolute" && (F = Math.abs(F)), N += F), F = (re || p.includes($) ? "px" : g.includes($) ? "deg" : "") == "px" ? 0 : 3, F = N.toFixed(F), I[$] = ye ? ye(F, T.domElement) : F + re);
522
+ })(ee, Q, he ? U % he : U, N), me && (Y = J * me, Te === "absolute" && (Y = Math.abs(Y)), N += Y), Y = (re || p.includes($) ? "px" : g.includes($) ? "deg" : "") == "px" ? 0 : 3, Y = N.toFixed(Y), I[$] = ye ? ye(Y, T.domElement) : Y + re);
523
523
  }
524
524
  }
525
525
  T.applyStyles(I), T.onUpdate && T.onUpdate(P, T.domElement);
@@ -529,25 +529,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
529
529
  for (P in T.transformsData) (function(M) {
530
530
  var q = T.transformsData[M], I = {}, E = q.presets;
531
531
  (E === void 0 ? [] : E).forEach(function(ee) {
532
- var U, Q = s(ee.split(":"), 3), J = Q[0], F = Q[1], ee = Q[2], Q = window.lax.presets[J];
533
- Q ? (U = Q(F, ee), Object.keys(U).forEach(function(he) {
532
+ var U, Q = s(ee.split(":"), 3), J = Q[0], Y = Q[1], ee = Q[2], Q = window.lax.presets[J];
533
+ Q ? (U = Q(Y, ee), Object.keys(U).forEach(function(he) {
534
534
  q[he] = U[he];
535
535
  })) : console.error("Lax preset cannot be found with name: ", J);
536
536
  }), delete q.presets;
537
537
  for (var $ in q) (function(H) {
538
- var U = s(q[H], 3), ee = U[0], F = ee === void 0 ? [-1e9, 1e9] : ee, ee = U[1], ee = ee === void 0 ? [-1e9, 1e9] : ee, U = U[2], U = U === void 0 ? {} : U, J = T.domElement.getBoundingClientRect(), F = x(F, D).map(function(Q) {
538
+ var U = s(q[H], 3), ee = U[0], Y = ee === void 0 ? [-1e9, 1e9] : ee, ee = U[1], ee = ee === void 0 ? [-1e9, 1e9] : ee, U = U[2], U = U === void 0 ? {} : U, J = T.domElement.getBoundingClientRect(), Y = x(Y, D).map(function(Q) {
539
539
  return m(Q, J, T.groupIndex);
540
540
  }), ee = x(ee, D).map(function(Q) {
541
541
  return m(Q, J, T.groupIndex);
542
542
  });
543
- I[H] = [F, ee, U];
543
+ I[H] = [Y, ee, U];
544
544
  })($);
545
545
  T.transforms[M] = I;
546
546
  })(P);
547
547
  }), t(this, "applyStyles", function(P) {
548
548
  var D, M, q, I = (D = P, M = { transform: "", filter: "" }, q = { translateX: 1e-5, translateY: 1e-5, translateZ: 1e-5 }, Object.keys(D).forEach(function(E) {
549
549
  var $ = D[E], H = p.includes(E) ? "px" : g.includes(E) ? "deg" : "";
550
- h.includes(E) ? q[E] = $ : d.includes(E) ? M.transform += "".concat(E, "(").concat($).concat(H, ") ") : o.includes(E) ? M.filter += "".concat(E, "(").concat($).concat(H, ") ") : M[E] = "".concat($).concat(H, " ");
550
+ h.includes(E) ? q[E] = $ : u.includes(E) ? M.transform += "".concat(E, "(").concat($).concat(H, ") ") : o.includes(E) ? M.filter += "".concat(E, "(").concat($).concat(H, ") ") : M[E] = "".concat($).concat(H, " ");
551
551
  }), M.transform = "translate3d(".concat(q.translateX, "px, ").concat(q.translateY, "px, ").concat(q.translateZ, "px) ").concat(M.transform), M);
552
552
  Object.keys(I).forEach(function(E) {
553
553
  T.domElement.style.setProperty(E, I[E]);
@@ -558,7 +558,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
558
558
  k.style.setProperty(P, R[P]);
559
559
  }), B && (this.onUpdate = B), this.calculateTransforms();
560
560
  }
561
- u.exports !== void 0 ? u.exports = b : window.lax = b;
561
+ d.exports !== void 0 ? d.exports = b : window.lax = b;
562
562
  })();
563
563
  })(ii)), ii.exports;
564
564
  }
@@ -589,18 +589,18 @@ class Ts {
589
589
  return;
590
590
  }
591
591
  i.style.transform = "";
592
- let r = this.getObjVal(i, "data-top-bottom"), a = this.getObjVal(i, "data-top"), l = this.getObjVal(i, "data-50-top"), c = this.getObjVal(i, "data-100-top"), d = this.getObjVal(i, "data-center-bottom"), o = this.getObjVal(i, "data-center"), h = this.getObjVal(i, "data-center-top"), p = this.getObjVal(i, "data--400-bottom"), g = this.getObjVal(i, "data--300-bottom"), w = this.getObjVal(i, "data--200-bottom"), S = this.getObjVal(i, "data--150-bottom"), b = this.getObjVal(i, "data--100-bottom"), x = this.getObjVal(i, "data--50-bottom"), m = this.getObjVal(i, "data-bottom"), v = this.getObjVal(i, "data-50-bottom"), _ = this.getObjVal(i, "data-100-bottom"), f = this.getObjVal(i, "data-150-bottom"), y = this.getObjVal(i, "data-200-bottom"), k = this.getObjVal(i, "data-300-bottom"), C = this.getObjVal(i, "data-400-bottom"), T = this.getObjVal(i, "data-bottom-top"), O = this.getObjVal(i, "data-in"), R = this.getObjVal(i, "data-in-150"), B = this.getObjVal(i, "data-in-300"), P = this.getObjVal(i, "data-cen--150"), D = this.getObjVal(i, "data-cen"), M = this.getObjVal(i, "data-cen-150"), q = this.getObjVal(i, "data-out--300"), I = this.getObjVal(i, "data-out--150"), E = this.getObjVal(i, "data-out"), $ = !1;
592
+ let r = this.getObjVal(i, "data-top-bottom"), a = this.getObjVal(i, "data-top"), l = this.getObjVal(i, "data-50-top"), c = this.getObjVal(i, "data-100-top"), u = this.getObjVal(i, "data-center-bottom"), o = this.getObjVal(i, "data-center"), h = this.getObjVal(i, "data-center-top"), p = this.getObjVal(i, "data--400-bottom"), g = this.getObjVal(i, "data--300-bottom"), w = this.getObjVal(i, "data--200-bottom"), S = this.getObjVal(i, "data--150-bottom"), b = this.getObjVal(i, "data--100-bottom"), x = this.getObjVal(i, "data--50-bottom"), m = this.getObjVal(i, "data-bottom"), v = this.getObjVal(i, "data-50-bottom"), _ = this.getObjVal(i, "data-100-bottom"), f = this.getObjVal(i, "data-150-bottom"), y = this.getObjVal(i, "data-200-bottom"), k = this.getObjVal(i, "data-300-bottom"), C = this.getObjVal(i, "data-400-bottom"), T = this.getObjVal(i, "data-bottom-top"), O = this.getObjVal(i, "data-in"), R = this.getObjVal(i, "data-in-150"), B = this.getObjVal(i, "data-in-300"), P = this.getObjVal(i, "data-cen--150"), D = this.getObjVal(i, "data-cen"), M = this.getObjVal(i, "data-cen-150"), q = this.getObjVal(i, "data-out--300"), I = this.getObjVal(i, "data-out--150"), E = this.getObjVal(i, "data-out"), $ = !1;
593
593
  i.hasAttribute("data-xs") && ($ = !0);
594
594
  let H = !1;
595
595
  i.hasAttribute("data-sm") && (H = !0);
596
596
  let U = !1;
597
597
  i.hasAttribute("data-md") && (U = !0), i.hasAttribute("data-lg"), i.hasAttribute("data-xl");
598
- let J = {}, F = {}, ee = {}, Q = {}, he = {}, Ee = {}, me = {}, Te = {}, ye = {}, re = {}, N = {}, G = {}, ie = {}, ce = {}, fe = {}, le = {}, se = {}, te = {}, Y = {}, Se = {}, pe = {}, Me = {}, ne = {}, Pe = {}, Ce = {}, De = {}, Ue = {}, Ye = {}, A = {}, j = {}, z = {}, V = {}, K = {};
599
- (t > 1280 || t > 970 && t <= 1280 && !U || t > 760 && t <= 970 && !H || t <= 760 && !$) && (ee = this.getObjVal(i, "data-t"), Q = this.getObjVal(i, "data-t-100"), he = this.getObjVal(i, "data-t-200"), Ee = this.getObjVal(i, "data-t-300"), me = this.getObjVal(i, "data-t-400"), Te = this.getObjVal(i, "data-t-500"), ye = this.getObjVal(i, "data-t-600"), re = this.getObjVal(i, "data-t-700"), N = this.getObjVal(i, "data-t-800"), G = this.getObjVal(i, "data-t-900"), ie = this.getObjVal(i, "data-t-1000"), ce = this.getObjVal(i, "data-t-1100"), fe = this.getObjVal(i, "data-t-1200"), le = this.getObjVal(i, "data-t-1300"), se = this.getObjVal(i, "data-t-1400"), te = this.getObjVal(i, "data-t-1500"), Y = this.getObjVal(i, "data-t-1600"), Se = this.getObjVal(i, "data-t-1700"), pe = this.getObjVal(i, "data-t-1800"), Me = this.getObjVal(i, "data-t-1900"), ne = this.getObjVal(i, "data-t-2000"), Pe = this.getObjVal(i, "data-t-2100"), Ce = this.getObjVal(i, "data-t-2200"), De = this.getObjVal(i, "data-t-2300"), Ue = this.getObjVal(i, "data-t-2400"), Ye = this.getObjVal(i, "data-t-2500"), A = this.getObjVal(i, "data-t-2600"), j = this.getObjVal(i, "data-t-2700"), z = this.getObjVal(i, "data-t-2800")), t > 970 && t <= 1280 && U && (i.hasAttribute("data-md-t") && (ee = this.getObjVal(i, "data-md-t")), i.hasAttribute("data-md-t-100") && (Q = this.getObjVal(i, "data-md-t-100")), i.hasAttribute("data-md-t-200") && (he = this.getObjVal(i, "data-md-t-200")), i.hasAttribute("data-md-t-300") && (Ee = this.getObjVal(i, "data-md-t-300")), i.hasAttribute("data-md-t-400") && (me = this.getObjVal(i, "data-md-t-400")), i.hasAttribute("data-md-t-500") && (Te = this.getObjVal(i, "data-md-t-500")), i.hasAttribute("data-md-t-600") && (ye = this.getObjVal(i, "data-md-t-600")), i.hasAttribute("data-md-t-700") && (re = this.getObjVal(i, "data-md-t-700")), i.hasAttribute("data-md-t-800") && (N = this.getObjVal(i, "data-md-t-800")), i.hasAttribute("data-md-t-900") && (G = this.getObjVal(i, "data-md-t-900")), i.hasAttribute("data-md-t-1000") && (ie = this.getObjVal(i, "data-md-t-1000")), i.hasAttribute("data-md-t-1100") && (ce = this.getObjVal(i, "data-md-t-1100")), i.hasAttribute("data-md-t-1200") && (fe = this.getObjVal(i, "data-md-t-1200")), i.hasAttribute("data-md-t-1300") && (le = this.getObjVal(i, "data-md-t-1300")), i.hasAttribute("data-md-t-1400") && (se = this.getObjVal(i, "data-md-t-1400")), i.hasAttribute("data-md-t-1500") && (te = this.getObjVal(i, "data-md-t-1500")), i.hasAttribute("data-md-t-1600") && (Y = this.getObjVal(i, "data-md-t-1600")), i.hasAttribute("data-md-t-1700") && (Se = this.getObjVal(i, "data-md-t-1700")), i.hasAttribute("data-md-t-1800") && (pe = this.getObjVal(i, "data-md-t-1800")), i.hasAttribute("data-md-t-1900") && (Me = this.getObjVal(i, "data-md-t-1900")), i.hasAttribute("data-md-t-2000") && (ne = this.getObjVal(i, "data-md-t-2000")), i.hasAttribute("data-md-t-2100") && (Pe = this.getObjVal(i, "data-md-t-2100")), i.hasAttribute("data-md-t-2200") && (Ce = this.getObjVal(i, "data-md-t-2200")), i.hasAttribute("data-md-t-2300") && (De = this.getObjVal(i, "data-md-t-2300")), i.hasAttribute("data-md-t-2400") && (Ue = this.getObjVal(i, "data-md-t-2400")), i.hasAttribute("data-md-t-2500") && (Ye = this.getObjVal(i, "data-md-t-2500")), i.hasAttribute("data-md-t-2600") && (A = this.getObjVal(i, "data-md-t-2600")), i.hasAttribute("data-md-t-2700") && (j = this.getObjVal(i, "data-md-t-2700")), i.hasAttribute("data-md-t-2800") && (z = this.getObjVal(i, "data-md-t-2800"))), t <= 970 && i.hasAttribute("m-data-out") && (E = this.getObjVal(i, "m-data-out")), (t > 760 && t <= 970 && H || t <= 760 && !$ && H) && (i.hasAttribute("data-sm-t") && (ee = this.getObjVal(i, "data-sm-t")), i.hasAttribute("data-sm-t-100") && (Q = this.getObjVal(i, "data-sm-t-100")), i.hasAttribute("data-sm-t-200") && (he = this.getObjVal(i, "data-sm-t-200")), i.hasAttribute("data-sm-t-300") && (Ee = this.getObjVal(i, "data-sm-t-300")), i.hasAttribute("data-sm-t-400") && (me = this.getObjVal(i, "data-sm-t-400")), i.hasAttribute("data-sm-t-500") && (Te = this.getObjVal(i, "data-sm-t-500")), i.hasAttribute("data-sm-t-600") && (ye = this.getObjVal(i, "data-sm-t-600")), i.hasAttribute("data-sm-t-700") && (re = this.getObjVal(i, "data-sm-t-700")), i.hasAttribute("data-sm-t-800") && (N = this.getObjVal(i, "data-sm-t-800")), i.hasAttribute("data-sm-t-900") && (G = this.getObjVal(i, "data-sm-t-900")), i.hasAttribute("data-sm-t-1000") && (ie = this.getObjVal(i, "data-sm-t-1000")), i.hasAttribute("data-sm-t-1100") && (ce = this.getObjVal(i, "data-sm-t-1100")), i.hasAttribute("data-sm-t-1200") && (fe = this.getObjVal(i, "data-sm-t-1200")), i.hasAttribute("data-sm-t-1300") && (le = this.getObjVal(i, "data-sm-t-1300")), i.hasAttribute("data-sm-t-1400") && (se = this.getObjVal(i, "data-sm-t-1400")), i.hasAttribute("data-sm-t-1500") && (te = this.getObjVal(i, "data-sm-t-1500")), i.hasAttribute("data-sm-t-1600") && (Y = this.getObjVal(i, "data-sm-t-1600")), i.hasAttribute("data-sm-t-1700") && (Se = this.getObjVal(i, "data-sm-t-1700")), i.hasAttribute("data-sm-t-1800") && (pe = this.getObjVal(i, "data-sm-t-1800")), i.hasAttribute("data-sm-t-1900") && (Me = this.getObjVal(i, "data-sm-t-1900")), i.hasAttribute("data-sm-t-2000") && (ne = this.getObjVal(i, "data-sm-t-2000")), i.hasAttribute("data-sm-t-2100") && (Pe = this.getObjVal(i, "data-sm-t-2100")), i.hasAttribute("data-sm-t-2200") && (Ce = this.getObjVal(i, "data-sm-t-2200")), i.hasAttribute("data-sm-t-2300") && (De = this.getObjVal(i, "data-sm-t-2300")), i.hasAttribute("data-sm-t-2400") && (Ue = this.getObjVal(i, "data-sm-t-2400")), i.hasAttribute("data-sm-t-2500") && (Ye = this.getObjVal(i, "data-sm-t-2500")), i.hasAttribute("data-sm-t-2600") && (A = this.getObjVal(i, "data-sm-t-2600")), i.hasAttribute("data-sm-t-2700") && (j = this.getObjVal(i, "data-sm-t-2700")), i.hasAttribute("data-sm-t-2800") && (z = this.getObjVal(i, "data-sm-t-2800"))), t <= 414 && $ && (i.hasAttribute("data-xs-t") && (ee = this.getObjVal(i, "data-xs-t")), i.hasAttribute("data-xs-t-100") && (Q = this.getObjVal(i, "data-xs-t-100")), i.hasAttribute("data-xs-t-200") && (he = this.getObjVal(i, "data-xs-t-200")), i.hasAttribute("data-xs-t-300") && (Ee = this.getObjVal(i, "data-xs-t-300")), i.hasAttribute("data-xs-t-400") && (me = this.getObjVal(i, "data-xs-t-400")), i.hasAttribute("data-xs-t-500") && (Te = this.getObjVal(i, "data-xs-t-500")), i.hasAttribute("data-xs-t-600") && (ye = this.getObjVal(i, "data-xs-t-600")), i.hasAttribute("data-xs-t-700") && (re = this.getObjVal(i, "data-xs-t-700")), i.hasAttribute("data-xs-t-800") && (N = this.getObjVal(i, "data-xs-t-800")), i.hasAttribute("data-xs-t-900") && (G = this.getObjVal(i, "data-xs-t-900")), i.hasAttribute("data-xs-t-1000") && (ie = this.getObjVal(i, "data-xs-t-1000")), i.hasAttribute("data-xs-t-1100") && (ce = this.getObjVal(i, "data-xs-t-1100")), i.hasAttribute("data-xs-t-1200") && (fe = this.getObjVal(i, "data-xs-t-1200")), i.hasAttribute("data-xs-t-1300") && (le = this.getObjVal(i, "data-xs-t-1300")), i.hasAttribute("data-xs-t-1400") && (se = this.getObjVal(i, "data-xs-t-1400")), i.hasAttribute("data-xs-t-1500") && (te = this.getObjVal(i, "data-xs-t-1500")), i.hasAttribute("data-xs-t-1600") && (Y = this.getObjVal(i, "data-xs-t-1600")), i.hasAttribute("data-xs-t-1700") && (Se = this.getObjVal(i, "data-xs-t-1700")), i.hasAttribute("data-xs-t-1800") && (pe = this.getObjVal(i, "data-xs-t-1800")), i.hasAttribute("data-xs-t-1900") && (Me = this.getObjVal(i, "data-xs-t-1900")), i.hasAttribute("data-xs-t-2000") && (ne = this.getObjVal(i, "data-xs-t-2000")), i.hasAttribute("data-xs-t-2100") && (Pe = this.getObjVal(i, "data-xs-t-2100")), i.hasAttribute("data-xs-t-2200") && (Ce = this.getObjVal(i, "data-xs-t-2200")), i.hasAttribute("data-xs-t-2300") && (De = this.getObjVal(i, "data-xs-t-2300")), i.hasAttribute("data-xs-t-2400") && (Ue = this.getObjVal(i, "data-xs-t-2400")), i.hasAttribute("data-xs-t-2500") && (Ye = this.getObjVal(i, "data-xs-t-2500")), i.hasAttribute("data-xs-t-2600") && (A = this.getObjVal(i, "data-xs-t-2600")), i.hasAttribute("data-xs-t-2700") && (j = this.getObjVal(i, "data-xs-t-2700")), i.hasAttribute("data-xs-t-2800") && (z = this.getObjVal(i, "data-xs-t-2800")));
600
- let ve = ee, be = Q, X = he, we = Ee, ue = me, qe = Te, xe = ye, Le = re, Re = N, Fe = G, He = ie, Ge = ce, Ae = fe, Z = le, _e = se, Ie = te, vt = Y, wt = Se, xt = pe, _t = Me, kt = ne, St = Pe, Et = Ce, Tt = De, Lt = Ue, Ct = Ye, At = A, Ot = j, Mt = z, nt = window.innerHeight;
601
- nt < 730 ? (J = ve, F = be, ee = X, Q = we, he = ue, Ee = qe, me = xe, Te = Le, ye = Re, re = Fe, N = He, G = Ge, ie = Ae, ce = Z, fe = _e, le = Ie, se = vt, te = wt, Y = xt, Se = _t, pe = kt, Me = St, ne = Et, Pe = Tt, Ce = Lt, De = Ct, Ue = At, Ye = Ot, A = Mt, j = {}, z = {}) : nt >= 730 && nt < 790 ? (F = ve, ee = be, Q = X, he = we, Ee = ue, me = qe, Te = xe, ye = Le, re = Re, N = Fe, G = He, ie = Ge, ce = Ae, fe = Z, le = _e, se = Ie, te = vt, Y = wt, Se = xt, pe = _t, Me = kt, ne = St, Pe = Et, Ce = Tt, De = Lt, Ue = Ct, Ye = At, A = Ot, j = Mt, z = {}) : nt >= 790 && nt < 840 || (nt >= 840 && nt < 1125 ? (ee = {}, Q = ve, he = be, Ee = X, me = we, Te = ue, ye = qe, re = xe, N = Le, G = Re, ie = Fe, ce = He, fe = Ge, le = Ae, se = Z, te = _e, Y = Ie, Se = vt, pe = wt, Me = xt, ne = _t, Pe = kt, Ce = St, De = Et, Ue = Tt, Ye = Lt, A = Ct, j = At, z = Ot, V = Mt) : (ee = {}, Q = {}, he = ve, Ee = be, me = X, Te = we, ye = ue, re = qe, N = xe, G = Le, ie = Re, ce = Fe, fe = He, le = Ge, se = Ae, te = Z, Y = _e, Se = Ie, pe = vt, Me = wt, ne = xt, Pe = _t, Ce = kt, De = St, Ue = Et, Ye = Tt, A = Lt, j = Ct, z = At, V = Ot, K = Mt));
598
+ let J = {}, Y = {}, ee = {}, Q = {}, he = {}, Ee = {}, me = {}, Te = {}, ye = {}, re = {}, N = {}, G = {}, ie = {}, ce = {}, fe = {}, le = {}, se = {}, te = {}, F = {}, Se = {}, pe = {}, Me = {}, ne = {}, Pe = {}, Ce = {}, De = {}, Ue = {}, Fe = {}, A = {}, j = {}, z = {}, V = {}, K = {};
599
+ (t > 1280 || t > 970 && t <= 1280 && !U || t > 760 && t <= 970 && !H || t <= 760 && !$) && (ee = this.getObjVal(i, "data-t"), Q = this.getObjVal(i, "data-t-100"), he = this.getObjVal(i, "data-t-200"), Ee = this.getObjVal(i, "data-t-300"), me = this.getObjVal(i, "data-t-400"), Te = this.getObjVal(i, "data-t-500"), ye = this.getObjVal(i, "data-t-600"), re = this.getObjVal(i, "data-t-700"), N = this.getObjVal(i, "data-t-800"), G = this.getObjVal(i, "data-t-900"), ie = this.getObjVal(i, "data-t-1000"), ce = this.getObjVal(i, "data-t-1100"), fe = this.getObjVal(i, "data-t-1200"), le = this.getObjVal(i, "data-t-1300"), se = this.getObjVal(i, "data-t-1400"), te = this.getObjVal(i, "data-t-1500"), F = this.getObjVal(i, "data-t-1600"), Se = this.getObjVal(i, "data-t-1700"), pe = this.getObjVal(i, "data-t-1800"), Me = this.getObjVal(i, "data-t-1900"), ne = this.getObjVal(i, "data-t-2000"), Pe = this.getObjVal(i, "data-t-2100"), Ce = this.getObjVal(i, "data-t-2200"), De = this.getObjVal(i, "data-t-2300"), Ue = this.getObjVal(i, "data-t-2400"), Fe = this.getObjVal(i, "data-t-2500"), A = this.getObjVal(i, "data-t-2600"), j = this.getObjVal(i, "data-t-2700"), z = this.getObjVal(i, "data-t-2800")), t > 970 && t <= 1280 && U && (i.hasAttribute("data-md-t") && (ee = this.getObjVal(i, "data-md-t")), i.hasAttribute("data-md-t-100") && (Q = this.getObjVal(i, "data-md-t-100")), i.hasAttribute("data-md-t-200") && (he = this.getObjVal(i, "data-md-t-200")), i.hasAttribute("data-md-t-300") && (Ee = this.getObjVal(i, "data-md-t-300")), i.hasAttribute("data-md-t-400") && (me = this.getObjVal(i, "data-md-t-400")), i.hasAttribute("data-md-t-500") && (Te = this.getObjVal(i, "data-md-t-500")), i.hasAttribute("data-md-t-600") && (ye = this.getObjVal(i, "data-md-t-600")), i.hasAttribute("data-md-t-700") && (re = this.getObjVal(i, "data-md-t-700")), i.hasAttribute("data-md-t-800") && (N = this.getObjVal(i, "data-md-t-800")), i.hasAttribute("data-md-t-900") && (G = this.getObjVal(i, "data-md-t-900")), i.hasAttribute("data-md-t-1000") && (ie = this.getObjVal(i, "data-md-t-1000")), i.hasAttribute("data-md-t-1100") && (ce = this.getObjVal(i, "data-md-t-1100")), i.hasAttribute("data-md-t-1200") && (fe = this.getObjVal(i, "data-md-t-1200")), i.hasAttribute("data-md-t-1300") && (le = this.getObjVal(i, "data-md-t-1300")), i.hasAttribute("data-md-t-1400") && (se = this.getObjVal(i, "data-md-t-1400")), i.hasAttribute("data-md-t-1500") && (te = this.getObjVal(i, "data-md-t-1500")), i.hasAttribute("data-md-t-1600") && (F = this.getObjVal(i, "data-md-t-1600")), i.hasAttribute("data-md-t-1700") && (Se = this.getObjVal(i, "data-md-t-1700")), i.hasAttribute("data-md-t-1800") && (pe = this.getObjVal(i, "data-md-t-1800")), i.hasAttribute("data-md-t-1900") && (Me = this.getObjVal(i, "data-md-t-1900")), i.hasAttribute("data-md-t-2000") && (ne = this.getObjVal(i, "data-md-t-2000")), i.hasAttribute("data-md-t-2100") && (Pe = this.getObjVal(i, "data-md-t-2100")), i.hasAttribute("data-md-t-2200") && (Ce = this.getObjVal(i, "data-md-t-2200")), i.hasAttribute("data-md-t-2300") && (De = this.getObjVal(i, "data-md-t-2300")), i.hasAttribute("data-md-t-2400") && (Ue = this.getObjVal(i, "data-md-t-2400")), i.hasAttribute("data-md-t-2500") && (Fe = this.getObjVal(i, "data-md-t-2500")), i.hasAttribute("data-md-t-2600") && (A = this.getObjVal(i, "data-md-t-2600")), i.hasAttribute("data-md-t-2700") && (j = this.getObjVal(i, "data-md-t-2700")), i.hasAttribute("data-md-t-2800") && (z = this.getObjVal(i, "data-md-t-2800"))), t <= 970 && i.hasAttribute("m-data-out") && (E = this.getObjVal(i, "m-data-out")), (t > 760 && t <= 970 && H || t <= 760 && !$ && H) && (i.hasAttribute("data-sm-t") && (ee = this.getObjVal(i, "data-sm-t")), i.hasAttribute("data-sm-t-100") && (Q = this.getObjVal(i, "data-sm-t-100")), i.hasAttribute("data-sm-t-200") && (he = this.getObjVal(i, "data-sm-t-200")), i.hasAttribute("data-sm-t-300") && (Ee = this.getObjVal(i, "data-sm-t-300")), i.hasAttribute("data-sm-t-400") && (me = this.getObjVal(i, "data-sm-t-400")), i.hasAttribute("data-sm-t-500") && (Te = this.getObjVal(i, "data-sm-t-500")), i.hasAttribute("data-sm-t-600") && (ye = this.getObjVal(i, "data-sm-t-600")), i.hasAttribute("data-sm-t-700") && (re = this.getObjVal(i, "data-sm-t-700")), i.hasAttribute("data-sm-t-800") && (N = this.getObjVal(i, "data-sm-t-800")), i.hasAttribute("data-sm-t-900") && (G = this.getObjVal(i, "data-sm-t-900")), i.hasAttribute("data-sm-t-1000") && (ie = this.getObjVal(i, "data-sm-t-1000")), i.hasAttribute("data-sm-t-1100") && (ce = this.getObjVal(i, "data-sm-t-1100")), i.hasAttribute("data-sm-t-1200") && (fe = this.getObjVal(i, "data-sm-t-1200")), i.hasAttribute("data-sm-t-1300") && (le = this.getObjVal(i, "data-sm-t-1300")), i.hasAttribute("data-sm-t-1400") && (se = this.getObjVal(i, "data-sm-t-1400")), i.hasAttribute("data-sm-t-1500") && (te = this.getObjVal(i, "data-sm-t-1500")), i.hasAttribute("data-sm-t-1600") && (F = this.getObjVal(i, "data-sm-t-1600")), i.hasAttribute("data-sm-t-1700") && (Se = this.getObjVal(i, "data-sm-t-1700")), i.hasAttribute("data-sm-t-1800") && (pe = this.getObjVal(i, "data-sm-t-1800")), i.hasAttribute("data-sm-t-1900") && (Me = this.getObjVal(i, "data-sm-t-1900")), i.hasAttribute("data-sm-t-2000") && (ne = this.getObjVal(i, "data-sm-t-2000")), i.hasAttribute("data-sm-t-2100") && (Pe = this.getObjVal(i, "data-sm-t-2100")), i.hasAttribute("data-sm-t-2200") && (Ce = this.getObjVal(i, "data-sm-t-2200")), i.hasAttribute("data-sm-t-2300") && (De = this.getObjVal(i, "data-sm-t-2300")), i.hasAttribute("data-sm-t-2400") && (Ue = this.getObjVal(i, "data-sm-t-2400")), i.hasAttribute("data-sm-t-2500") && (Fe = this.getObjVal(i, "data-sm-t-2500")), i.hasAttribute("data-sm-t-2600") && (A = this.getObjVal(i, "data-sm-t-2600")), i.hasAttribute("data-sm-t-2700") && (j = this.getObjVal(i, "data-sm-t-2700")), i.hasAttribute("data-sm-t-2800") && (z = this.getObjVal(i, "data-sm-t-2800"))), t <= 414 && $ && (i.hasAttribute("data-xs-t") && (ee = this.getObjVal(i, "data-xs-t")), i.hasAttribute("data-xs-t-100") && (Q = this.getObjVal(i, "data-xs-t-100")), i.hasAttribute("data-xs-t-200") && (he = this.getObjVal(i, "data-xs-t-200")), i.hasAttribute("data-xs-t-300") && (Ee = this.getObjVal(i, "data-xs-t-300")), i.hasAttribute("data-xs-t-400") && (me = this.getObjVal(i, "data-xs-t-400")), i.hasAttribute("data-xs-t-500") && (Te = this.getObjVal(i, "data-xs-t-500")), i.hasAttribute("data-xs-t-600") && (ye = this.getObjVal(i, "data-xs-t-600")), i.hasAttribute("data-xs-t-700") && (re = this.getObjVal(i, "data-xs-t-700")), i.hasAttribute("data-xs-t-800") && (N = this.getObjVal(i, "data-xs-t-800")), i.hasAttribute("data-xs-t-900") && (G = this.getObjVal(i, "data-xs-t-900")), i.hasAttribute("data-xs-t-1000") && (ie = this.getObjVal(i, "data-xs-t-1000")), i.hasAttribute("data-xs-t-1100") && (ce = this.getObjVal(i, "data-xs-t-1100")), i.hasAttribute("data-xs-t-1200") && (fe = this.getObjVal(i, "data-xs-t-1200")), i.hasAttribute("data-xs-t-1300") && (le = this.getObjVal(i, "data-xs-t-1300")), i.hasAttribute("data-xs-t-1400") && (se = this.getObjVal(i, "data-xs-t-1400")), i.hasAttribute("data-xs-t-1500") && (te = this.getObjVal(i, "data-xs-t-1500")), i.hasAttribute("data-xs-t-1600") && (F = this.getObjVal(i, "data-xs-t-1600")), i.hasAttribute("data-xs-t-1700") && (Se = this.getObjVal(i, "data-xs-t-1700")), i.hasAttribute("data-xs-t-1800") && (pe = this.getObjVal(i, "data-xs-t-1800")), i.hasAttribute("data-xs-t-1900") && (Me = this.getObjVal(i, "data-xs-t-1900")), i.hasAttribute("data-xs-t-2000") && (ne = this.getObjVal(i, "data-xs-t-2000")), i.hasAttribute("data-xs-t-2100") && (Pe = this.getObjVal(i, "data-xs-t-2100")), i.hasAttribute("data-xs-t-2200") && (Ce = this.getObjVal(i, "data-xs-t-2200")), i.hasAttribute("data-xs-t-2300") && (De = this.getObjVal(i, "data-xs-t-2300")), i.hasAttribute("data-xs-t-2400") && (Ue = this.getObjVal(i, "data-xs-t-2400")), i.hasAttribute("data-xs-t-2500") && (Fe = this.getObjVal(i, "data-xs-t-2500")), i.hasAttribute("data-xs-t-2600") && (A = this.getObjVal(i, "data-xs-t-2600")), i.hasAttribute("data-xs-t-2700") && (j = this.getObjVal(i, "data-xs-t-2700")), i.hasAttribute("data-xs-t-2800") && (z = this.getObjVal(i, "data-xs-t-2800")));
600
+ let ve = ee, be = Q, X = he, we = Ee, ue = me, qe = Te, xe = ye, Le = re, Re = N, Ye = G, He = ie, Ge = ce, Ae = fe, Z = le, _e = se, Ie = te, vt = F, wt = Se, xt = pe, _t = Me, kt = ne, St = Pe, Et = Ce, Tt = De, Lt = Ue, Ct = Fe, At = A, Ot = j, Mt = z, nt = window.innerHeight;
601
+ nt < 730 ? (J = ve, Y = be, ee = X, Q = we, he = ue, Ee = qe, me = xe, Te = Le, ye = Re, re = Ye, N = He, G = Ge, ie = Ae, ce = Z, fe = _e, le = Ie, se = vt, te = wt, F = xt, Se = _t, pe = kt, Me = St, ne = Et, Pe = Tt, Ce = Lt, De = Ct, Ue = At, Fe = Ot, A = Mt, j = {}, z = {}) : nt >= 730 && nt < 790 ? (Y = ve, ee = be, Q = X, he = we, Ee = ue, me = qe, Te = xe, ye = Le, re = Re, N = Ye, G = He, ie = Ge, ce = Ae, fe = Z, le = _e, se = Ie, te = vt, F = wt, Se = xt, pe = _t, Me = kt, ne = St, Pe = Et, Ce = Tt, De = Lt, Ue = Ct, Fe = At, A = Ot, j = Mt, z = {}) : nt >= 790 && nt < 840 || (nt >= 840 && nt < 1125 ? (ee = {}, Q = ve, he = be, Ee = X, me = we, Te = ue, ye = qe, re = xe, N = Le, G = Re, ie = Ye, ce = He, fe = Ge, le = Ae, se = Z, te = _e, F = Ie, Se = vt, pe = wt, Me = xt, ne = _t, Pe = kt, Ce = St, De = Et, Ue = Tt, Fe = Lt, A = Ct, j = At, z = Ot, V = Mt) : (ee = {}, Q = {}, he = ve, Ee = be, me = X, Te = we, ye = ue, re = qe, N = xe, G = Le, ie = Re, ce = Ye, fe = He, le = Ge, se = Ae, te = Z, F = _e, Se = Ie, pe = vt, Me = wt, ne = xt, Pe = _t, Ce = kt, De = St, Ue = Et, Fe = Tt, A = Lt, j = Ct, z = At, V = Ot, K = Mt));
602
602
  let L = {};
603
- Object.keys(T).length !== 0 && (L = this.parseObj(T, "elInY", L)), Object.keys(C).length !== 0 && (L = this.parseObj(C, "elInY+50", L)), Object.keys(k).length !== 0 && (L = this.parseObj(k, "elInY+100", L)), Object.keys(y).length !== 0 && (L = this.parseObj(y, "elInY+150", L)), Object.keys(f).length !== 0 && (L = this.parseObj(f, "elInY+200", L)), Object.keys(_).length !== 0 && (L = this.parseObj(_, "elInY+250", L)), Object.keys(v).length !== 0 && (L = this.parseObj(v, "elInY+300", L)), Object.keys(m).length !== 0 && (L = this.parseObj(m, "elInY+350", L)), Object.keys(x).length !== 0 && (L = this.parseObj(x, "elInY+400", L)), Object.keys(b).length !== 0 && (L = this.parseObj(b, "elInY+450", L)), Object.keys(S).length !== 0 && (L = this.parseObj(S, "elInY+500", L)), Object.keys(w).length !== 0 && (L = this.parseObj(w, "elInY+550", L)), Object.keys(g).length !== 0 && (L = this.parseObj(g, "elInY+600", L)), Object.keys(p).length !== 0 && (L = this.parseObj(p, "elInY+650", L)), Object.keys(h).length !== 0 && (L = this.parseObj(h, "elCenterY-300", L)), Object.keys(o).length !== 0 && (L = this.parseObj(o, "elCenterY", L)), Object.keys(d).length !== 0 && (L = this.parseObj(d, "elCenterY+100", L)), Object.keys(c).length !== 0 && (L = this.parseObj(c, "elCenterY+200", L)), Object.keys(l).length !== 0 && (L = this.parseObj(l, "elCenterY+300", L)), Object.keys(a).length !== 0 && (L = this.parseObj(a, "elOutY-300", L)), Object.keys(r).length !== 0 && (L = this.parseObj(r, "elOutY", L)), Object.keys(O).length !== 0 && (L = this.parseObj(O, "elInY", L)), Object.keys(R).length !== 0 && (L = this.parseObj(R, "elInY+150", L)), Object.keys(B).length !== 0 && (L = this.parseObj(B, "elInY+300 ", L)), Object.keys(P).length !== 0 && (L = this.parseObj(P, "elCenterY-150", L)), Object.keys(D).length !== 0 && (L = this.parseObj(D, "elCenterY", L)), Object.keys(M).length !== 0 && (L = this.parseObj(M, "elCenterY+150", L)), Object.keys(q).length !== 0 && (L = this.parseObj(q, "elOutY-300 ", L)), Object.keys(I).length !== 0 && (L = this.parseObj(I, "elOutY-150 ", L)), Object.keys(E).length !== 0 && (L = this.parseObj(E, "elOutY", L)), Object.keys(J).length !== 0 && (L = this.parseObj(J, "elInY-200", L)), Object.keys(F).length !== 0 && (L = this.parseObj(F, "elInY-100", L)), Object.keys(ee).length !== 0 && (L = this.parseObj(ee, "elInY", L)), Object.keys(Q).length !== 0 && (L = this.parseObj(Q, "elInY+100", L)), Object.keys(he).length !== 0 && (L = this.parseObj(he, "elInY+200", L)), Object.keys(Ee).length !== 0 && (L = this.parseObj(Ee, "elInY+300 ", L)), Object.keys(me).length !== 0 && (L = this.parseObj(me, "elInY+400 ", L)), Object.keys(Te).length !== 0 && (L = this.parseObj(Te, "elInY+500 ", L)), Object.keys(ye).length !== 0 && (L = this.parseObj(ye, "elInY+600 ", L)), Object.keys(re).length !== 0 && (L = this.parseObj(re, "elInY+700 ", L)), Object.keys(N).length !== 0 && (L = this.parseObj(N, "elInY+800 ", L)), Object.keys(G).length !== 0 && (L = this.parseObj(G, "elInY+900 ", L)), Object.keys(ie).length !== 0 && (L = this.parseObj(ie, "elInY+1000 ", L)), Object.keys(ce).length !== 0 && (L = this.parseObj(ce, "elInY+1100 ", L)), Object.keys(fe).length !== 0 && (L = this.parseObj(fe, "elInY+1200 ", L)), Object.keys(le).length !== 0 && (L = this.parseObj(le, "elInY+1300 ", L)), Object.keys(se).length !== 0 && (L = this.parseObj(se, "elInY+1400 ", L)), Object.keys(te).length !== 0 && (L = this.parseObj(te, "elInY+1500 ", L)), Object.keys(Y).length !== 0 && (L = this.parseObj(Y, "elInY+1600 ", L)), Object.keys(Se).length !== 0 && (L = this.parseObj(Se, "elInY+1700 ", L)), Object.keys(pe).length !== 0 && (L = this.parseObj(pe, "elInY+1800 ", L)), Object.keys(Me).length !== 0 && (L = this.parseObj(Me, "elInY+1900 ", L)), Object.keys(ne).length !== 0 && (L = this.parseObj(ne, "elInY+2000 ", L)), Object.keys(Pe).length !== 0 && (L = this.parseObj(Pe, "elInY+2100 ", L)), Object.keys(Ce).length !== 0 && (L = this.parseObj(Ce, "elInY+2200 ", L)), Object.keys(De).length !== 0 && (L = this.parseObj(De, "elInY+2300 ", L)), Object.keys(Ue).length !== 0 && (L = this.parseObj(Ue, "elInY+2400 ", L)), Object.keys(Ye).length !== 0 && (L = this.parseObj(Ye, "elInY+2500 ", L)), Object.keys(A).length !== 0 && (L = this.parseObj(A, "elInY+2600 ", L)), Object.keys(j).length !== 0 && (L = this.parseObj(j, "elInY+2700 ", L)), Object.keys(z).length !== 0 && (L = this.parseObj(z, "elInY+2800 ", L)), Object.keys(V).length !== 0 && (L = this.parseObj(V, "elInY+2900 ", L)), Object.keys(K).length !== 0 && (L = this.parseObj(K, "elInY+3000 ", L)), i.style.transition = "", i.setAttribute("data-dummy-selector", "1"), lt.addElements("[data-dummy-selector]", {
603
+ Object.keys(T).length !== 0 && (L = this.parseObj(T, "elInY", L)), Object.keys(C).length !== 0 && (L = this.parseObj(C, "elInY+50", L)), Object.keys(k).length !== 0 && (L = this.parseObj(k, "elInY+100", L)), Object.keys(y).length !== 0 && (L = this.parseObj(y, "elInY+150", L)), Object.keys(f).length !== 0 && (L = this.parseObj(f, "elInY+200", L)), Object.keys(_).length !== 0 && (L = this.parseObj(_, "elInY+250", L)), Object.keys(v).length !== 0 && (L = this.parseObj(v, "elInY+300", L)), Object.keys(m).length !== 0 && (L = this.parseObj(m, "elInY+350", L)), Object.keys(x).length !== 0 && (L = this.parseObj(x, "elInY+400", L)), Object.keys(b).length !== 0 && (L = this.parseObj(b, "elInY+450", L)), Object.keys(S).length !== 0 && (L = this.parseObj(S, "elInY+500", L)), Object.keys(w).length !== 0 && (L = this.parseObj(w, "elInY+550", L)), Object.keys(g).length !== 0 && (L = this.parseObj(g, "elInY+600", L)), Object.keys(p).length !== 0 && (L = this.parseObj(p, "elInY+650", L)), Object.keys(h).length !== 0 && (L = this.parseObj(h, "elCenterY-300", L)), Object.keys(o).length !== 0 && (L = this.parseObj(o, "elCenterY", L)), Object.keys(u).length !== 0 && (L = this.parseObj(u, "elCenterY+100", L)), Object.keys(c).length !== 0 && (L = this.parseObj(c, "elCenterY+200", L)), Object.keys(l).length !== 0 && (L = this.parseObj(l, "elCenterY+300", L)), Object.keys(a).length !== 0 && (L = this.parseObj(a, "elOutY-300", L)), Object.keys(r).length !== 0 && (L = this.parseObj(r, "elOutY", L)), Object.keys(O).length !== 0 && (L = this.parseObj(O, "elInY", L)), Object.keys(R).length !== 0 && (L = this.parseObj(R, "elInY+150", L)), Object.keys(B).length !== 0 && (L = this.parseObj(B, "elInY+300 ", L)), Object.keys(P).length !== 0 && (L = this.parseObj(P, "elCenterY-150", L)), Object.keys(D).length !== 0 && (L = this.parseObj(D, "elCenterY", L)), Object.keys(M).length !== 0 && (L = this.parseObj(M, "elCenterY+150", L)), Object.keys(q).length !== 0 && (L = this.parseObj(q, "elOutY-300 ", L)), Object.keys(I).length !== 0 && (L = this.parseObj(I, "elOutY-150 ", L)), Object.keys(E).length !== 0 && (L = this.parseObj(E, "elOutY", L)), Object.keys(J).length !== 0 && (L = this.parseObj(J, "elInY-200", L)), Object.keys(Y).length !== 0 && (L = this.parseObj(Y, "elInY-100", L)), Object.keys(ee).length !== 0 && (L = this.parseObj(ee, "elInY", L)), Object.keys(Q).length !== 0 && (L = this.parseObj(Q, "elInY+100", L)), Object.keys(he).length !== 0 && (L = this.parseObj(he, "elInY+200", L)), Object.keys(Ee).length !== 0 && (L = this.parseObj(Ee, "elInY+300 ", L)), Object.keys(me).length !== 0 && (L = this.parseObj(me, "elInY+400 ", L)), Object.keys(Te).length !== 0 && (L = this.parseObj(Te, "elInY+500 ", L)), Object.keys(ye).length !== 0 && (L = this.parseObj(ye, "elInY+600 ", L)), Object.keys(re).length !== 0 && (L = this.parseObj(re, "elInY+700 ", L)), Object.keys(N).length !== 0 && (L = this.parseObj(N, "elInY+800 ", L)), Object.keys(G).length !== 0 && (L = this.parseObj(G, "elInY+900 ", L)), Object.keys(ie).length !== 0 && (L = this.parseObj(ie, "elInY+1000 ", L)), Object.keys(ce).length !== 0 && (L = this.parseObj(ce, "elInY+1100 ", L)), Object.keys(fe).length !== 0 && (L = this.parseObj(fe, "elInY+1200 ", L)), Object.keys(le).length !== 0 && (L = this.parseObj(le, "elInY+1300 ", L)), Object.keys(se).length !== 0 && (L = this.parseObj(se, "elInY+1400 ", L)), Object.keys(te).length !== 0 && (L = this.parseObj(te, "elInY+1500 ", L)), Object.keys(F).length !== 0 && (L = this.parseObj(F, "elInY+1600 ", L)), Object.keys(Se).length !== 0 && (L = this.parseObj(Se, "elInY+1700 ", L)), Object.keys(pe).length !== 0 && (L = this.parseObj(pe, "elInY+1800 ", L)), Object.keys(Me).length !== 0 && (L = this.parseObj(Me, "elInY+1900 ", L)), Object.keys(ne).length !== 0 && (L = this.parseObj(ne, "elInY+2000 ", L)), Object.keys(Pe).length !== 0 && (L = this.parseObj(Pe, "elInY+2100 ", L)), Object.keys(Ce).length !== 0 && (L = this.parseObj(Ce, "elInY+2200 ", L)), Object.keys(De).length !== 0 && (L = this.parseObj(De, "elInY+2300 ", L)), Object.keys(Ue).length !== 0 && (L = this.parseObj(Ue, "elInY+2400 ", L)), Object.keys(Fe).length !== 0 && (L = this.parseObj(Fe, "elInY+2500 ", L)), Object.keys(A).length !== 0 && (L = this.parseObj(A, "elInY+2600 ", L)), Object.keys(j).length !== 0 && (L = this.parseObj(j, "elInY+2700 ", L)), Object.keys(z).length !== 0 && (L = this.parseObj(z, "elInY+2800 ", L)), Object.keys(V).length !== 0 && (L = this.parseObj(V, "elInY+2900 ", L)), Object.keys(K).length !== 0 && (L = this.parseObj(K, "elInY+3000 ", L)), i.style.transition = "", i.setAttribute("data-dummy-selector", "1"), lt.addElements("[data-dummy-selector]", {
604
604
  scrollY: L
605
605
  }), this.elements.push(document.querySelector("[data-dummy-selector]")), i.removeAttribute("data-dummy-selector"), setTimeout(() => {
606
606
  i.style.opacity = 1, i.getAttribute("data-smooth-scrolling") === "off" || this.settings.transition && (i.style.transition = this.settings.transition);
@@ -696,27 +696,27 @@ function mi() {
696
696
  */
697
697
  var si, qi;
698
698
  function Ls() {
699
- return qi || (qi = 1, si = function u(e, t) {
699
+ return qi || (qi = 1, si = function d(e, t) {
700
700
  return e == null || t == null || Object.keys(t).forEach(function(s) {
701
- Object.prototype.toString.call(t[s]) == "[object Object]" ? Object.prototype.toString.call(e[s]) != "[object Object]" ? e[s] = t[s] : e[s] = u(e[s], t[s]) : e[s] = t[s];
701
+ Object.prototype.toString.call(t[s]) == "[object Object]" ? Object.prototype.toString.call(e[s]) != "[object Object]" ? e[s] = t[s] : e[s] = d(e[s], t[s]) : e[s] = t[s];
702
702
  }), e;
703
703
  }), si;
704
704
  }
705
705
  var Cs = Ls();
706
- const Yt = /* @__PURE__ */ gi(Cs);
707
- Array.prototype.each = function(u) {
706
+ const Ft = /* @__PURE__ */ gi(Cs);
707
+ Array.prototype.each = function(d) {
708
708
  const e = this.length;
709
709
  for (let t = 0; t < e; t++) {
710
710
  const s = this[t];
711
- s && u(s, t);
711
+ s && d(s, t);
712
712
  }
713
713
  };
714
714
  typeof window < "u" && typeof NodeList < "u" && (NodeList.prototype.each = Array.prototype.each, NodeList.prototype.filter = Array.prototype.filter);
715
- function qt(u) {
716
- return Number(u) === u && u % 1 === 0;
715
+ function qt(d) {
716
+ return Number(d) === d && d % 1 === 0;
717
717
  }
718
- function Rt(u) {
719
- return Number(u) === u && u % 1 !== 0;
718
+ function Rt(d) {
719
+ return Number(d) === d && d % 1 !== 0;
720
720
  }
721
721
  let $t = class {
722
722
  /**
@@ -726,7 +726,7 @@ let $t = class {
726
726
  * @param {DefaultOptions.trigger} [options=DefaultOptions.trigger] options
727
727
  */
728
728
  constructor(e, t) {
729
- this.element = e, t = Yt(new mi().trigger, t), this.offset = t.offset, this.toggle = t.toggle, this.once = t.once, this.visible = null, this.active = !0;
729
+ this.element = e, t = Ft(new mi().trigger, t), this.offset = t.offset, this.toggle = t.toggle, this.once = t.once, this.visible = null, this.active = !0;
730
730
  }
731
731
  /**
732
732
  * Checks if the Trigger is in the viewport, calls the callbacks and toggles the classes
@@ -907,7 +907,7 @@ let $t = class {
907
907
  _parseOptions(e) {
908
908
  let t = new mi().scroll;
909
909
  typeof e != "function" ? (t.callback = () => {
910
- }, t = Yt(t, e)) : t.callback = e, this.element = t.element, this.sustain = t.sustain, this.callback = t.callback, this.startCallback = t.start, this.stopCallback = t.stop, this.directionChange = t.directionChange;
910
+ }, t = Ft(t, e)) : t.callback = e, this.element = t.element, this.sustain = t.sustain, this.callback = t.callback, this.startCallback = t.start, this.stopCallback = t.stop, this.directionChange = t.directionChange;
911
911
  }
912
912
  /**
913
913
  * Callback when the user scrolled the element
@@ -1001,7 +1001,7 @@ class Rs {
1001
1001
  * @private
1002
1002
  */
1003
1003
  _parseOptions(e) {
1004
- e = Yt(new mi(), e), this.defaultTrigger = e.trigger, this.scrollOptions = e.scroll;
1004
+ e = Ft(new mi(), e), this.defaultTrigger = e.trigger, this.scrollOptions = e.scroll;
1005
1005
  }
1006
1006
  /**
1007
1007
  * Initializes the collection, picks all [data-scroll] elements as initial elements
@@ -1074,7 +1074,7 @@ class Rs {
1074
1074
  * @returns Trigger
1075
1075
  */
1076
1076
  createTrigger(e, t) {
1077
- return new ct(e, Yt(this.defaultTrigger, t));
1077
+ return new ct(e, Ft(this.defaultTrigger, t));
1078
1078
  }
1079
1079
  /**
1080
1080
  * Creates an array of triggers
@@ -1136,39 +1136,39 @@ class Rs {
1136
1136
  }
1137
1137
  const Ri = Date.now();
1138
1138
  function et() {
1139
- let u = {}, e = !0, t = 0, s = arguments.length;
1139
+ let d = {}, e = !0, t = 0, s = arguments.length;
1140
1140
  Object.prototype.toString.call(arguments[0]) === "[object Boolean]" && (e = arguments[0], t++);
1141
1141
  let i = (n) => {
1142
1142
  for (let r in n)
1143
- Object.prototype.hasOwnProperty.call(n, r) && (e && Object.prototype.toString.call(n[r]) === "[object Object]" ? u[r] = et(!0, u[r], n[r]) : u[r] = n[r]);
1143
+ Object.prototype.hasOwnProperty.call(n, r) && (e && Object.prototype.toString.call(n[r]) === "[object Object]" ? d[r] = et(!0, d[r], n[r]) : d[r] = n[r]);
1144
1144
  };
1145
1145
  for (; t < s; t++) {
1146
1146
  let n = arguments[t];
1147
1147
  i(n);
1148
1148
  }
1149
- return u;
1149
+ return d;
1150
1150
  }
1151
- function Oe(u, e) {
1152
- if ((tt(u) || u === window || u === document) && (u = [u]), !Pi(u) && !dt(u) && (u = [u]), rs(u) != 0) {
1153
- if (Pi(u) && !dt(u)) {
1154
- let t = u.length, s = 0;
1155
- for (; s < t && e.call(u[s], u[s], s, u) !== !1; s++)
1151
+ function Oe(d, e) {
1152
+ if ((tt(d) || d === window || d === document) && (d = [d]), !Pi(d) && !dt(d) && (d = [d]), rs(d) != 0) {
1153
+ if (Pi(d) && !dt(d)) {
1154
+ let t = d.length, s = 0;
1155
+ for (; s < t && e.call(d[s], d[s], s, d) !== !1; s++)
1156
1156
  ;
1157
- } else if (dt(u)) {
1158
- for (let t in u)
1159
- if (Ne(u, t) && e.call(u[t], u[t], t, u) === !1)
1157
+ } else if (dt(d)) {
1158
+ for (let t in d)
1159
+ if (Ne(d, t) && e.call(d[t], d[t], t, d) === !1)
1160
1160
  break;
1161
1161
  }
1162
1162
  }
1163
1163
  }
1164
- function Ii(u, e = null, t = null) {
1165
- const s = u[Ri] = u[Ri] || [], i = { all: s, evt: null, found: null };
1164
+ function Ii(d, e = null, t = null) {
1165
+ const s = d[Ri] = d[Ri] || [], i = { all: s, evt: null, found: null };
1166
1166
  return e && t && rs(s) > 0 && Oe(s, (n, r) => {
1167
1167
  if (n.eventName == e && n.fn.toString() == t.toString())
1168
1168
  return i.found = !0, i.evt = r, !1;
1169
1169
  }), i;
1170
1170
  }
1171
- function Xe(u, { onElement: e, withCallback: t, avoidDuplicate: s = !0, once: i = !1, useCapture: n = !1 } = {}, r) {
1171
+ function Xe(d, { onElement: e, withCallback: t, avoidDuplicate: s = !0, once: i = !1, useCapture: n = !1 } = {}, r) {
1172
1172
  let a = e || [];
1173
1173
  mt(a) && (a = document.querySelectorAll(a));
1174
1174
  function l(c) {
@@ -1176,41 +1176,41 @@ function Xe(u, { onElement: e, withCallback: t, avoidDuplicate: s = !0, once: i
1176
1176
  }
1177
1177
  return l.destroy = function() {
1178
1178
  Oe(a, (c) => {
1179
- const d = Ii(c, u, l);
1180
- d.found && d.all.splice(d.evt, 1), c.removeEventListener && c.removeEventListener(u, l, n);
1179
+ const u = Ii(c, d, l);
1180
+ u.found && u.all.splice(u.evt, 1), c.removeEventListener && c.removeEventListener(d, l, n);
1181
1181
  });
1182
1182
  }, Oe(a, (c) => {
1183
- const d = Ii(c, u, l);
1184
- (c.addEventListener && s && !d.found || !s) && (c.addEventListener(u, l, n), d.all.push({ eventName: u, fn: l }));
1183
+ const u = Ii(c, d, l);
1184
+ (c.addEventListener && s && !u.found || !s) && (c.addEventListener(d, l, n), u.all.push({ eventName: d, fn: l }));
1185
1185
  }), l;
1186
1186
  }
1187
- function ae(u, e) {
1188
- Oe(e.split(" "), (t) => u.classList.add(t));
1187
+ function ae(d, e) {
1188
+ Oe(e.split(" "), (t) => d.classList.add(t));
1189
1189
  }
1190
- function je(u, e) {
1191
- Oe(e.split(" "), (t) => u.classList.remove(t));
1190
+ function je(d, e) {
1191
+ Oe(e.split(" "), (t) => d.classList.remove(t));
1192
1192
  }
1193
- function Ve(u, e) {
1194
- return u.classList.contains(e);
1193
+ function Ve(d, e) {
1194
+ return d.classList.contains(e);
1195
1195
  }
1196
- function Qe(u, e) {
1197
- for (; u !== document.body; ) {
1198
- if (u = u.parentElement, !u)
1196
+ function Qe(d, e) {
1197
+ for (; d !== document.body; ) {
1198
+ if (d = d.parentElement, !d)
1199
1199
  return !1;
1200
- if (typeof u.matches == "function" ? u.matches(e) : u.msMatchesSelector(e))
1201
- return u;
1200
+ if (typeof d.matches == "function" ? d.matches(e) : d.msMatchesSelector(e))
1201
+ return d;
1202
1202
  }
1203
1203
  }
1204
- function ut(u, e = "", t = !1) {
1205
- if (!u || e === "")
1204
+ function ut(d, e = "", t = !1) {
1205
+ if (!d || e === "")
1206
1206
  return !1;
1207
1207
  if (e === "none")
1208
1208
  return ge(t) && t(), !1;
1209
1209
  const s = Is(), i = e.split(" ");
1210
1210
  Oe(i, (n) => {
1211
- ae(u, "g" + n);
1211
+ ae(d, "g" + n);
1212
1212
  }), Xe(s, {
1213
- onElement: u,
1213
+ onElement: d,
1214
1214
  avoidDuplicate: !1,
1215
1215
  once: !0,
1216
1216
  withCallback: (n, r) => {
@@ -1220,20 +1220,20 @@ function ut(u, e = "", t = !1) {
1220
1220
  }
1221
1221
  });
1222
1222
  }
1223
- function Ht(u, e = "") {
1223
+ function Ht(d, e = "") {
1224
1224
  if (e === "")
1225
- return u.style.webkitTransform = "", u.style.MozTransform = "", u.style.msTransform = "", u.style.OTransform = "", u.style.transform = "", !1;
1226
- u.style.webkitTransform = e, u.style.MozTransform = e, u.style.msTransform = e, u.style.OTransform = e, u.style.transform = e;
1225
+ return d.style.webkitTransform = "", d.style.MozTransform = "", d.style.msTransform = "", d.style.OTransform = "", d.style.transform = "", !1;
1226
+ d.style.webkitTransform = e, d.style.MozTransform = e, d.style.msTransform = e, d.style.OTransform = e, d.style.transform = e;
1227
1227
  }
1228
- function ji(u) {
1229
- u.style.display = "block";
1228
+ function ji(d) {
1229
+ d.style.display = "block";
1230
1230
  }
1231
- function ni(u) {
1232
- u.style.display = "none";
1231
+ function ni(d) {
1232
+ d.style.display = "none";
1233
1233
  }
1234
- function rt(u) {
1234
+ function rt(d) {
1235
1235
  let e = document.createDocumentFragment(), t = document.createElement("div");
1236
- for (t.innerHTML = u; t.firstChild; )
1236
+ for (t.innerHTML = d; t.firstChild; )
1237
1237
  e.appendChild(t.firstChild);
1238
1238
  return e;
1239
1239
  }
@@ -1244,46 +1244,46 @@ function ss() {
1244
1244
  };
1245
1245
  }
1246
1246
  function Is() {
1247
- let u, e = document.createElement("fakeelement"), t = {
1247
+ let d, e = document.createElement("fakeelement"), t = {
1248
1248
  animation: "animationend",
1249
1249
  OAnimation: "oAnimationEnd",
1250
1250
  MozAnimation: "animationend",
1251
1251
  WebkitAnimation: "webkitAnimationEnd"
1252
1252
  };
1253
- for (u in t)
1254
- if (e.style[u] !== void 0)
1255
- return t[u];
1253
+ for (d in t)
1254
+ if (e.style[d] !== void 0)
1255
+ return t[d];
1256
1256
  }
1257
1257
  function js() {
1258
- let u, e = document.createElement("fakeelement");
1258
+ let d, e = document.createElement("fakeelement");
1259
1259
  const t = {
1260
1260
  transition: "transitionend",
1261
1261
  OTransition: "oTransitionEnd",
1262
1262
  MozTransition: "transitionend",
1263
1263
  WebkitTransition: "webkitTransitionEnd"
1264
1264
  };
1265
- for (u in t)
1266
- if (e.style[u] !== void 0)
1267
- return t[u];
1265
+ for (d in t)
1266
+ if (e.style[d] !== void 0)
1267
+ return t[d];
1268
1268
  }
1269
- function Ns(u) {
1270
- let { url: e, allow: t, callback: s, appendTo: i } = u, n = document.createElement("iframe");
1269
+ function Ns(d) {
1270
+ let { url: e, allow: t, callback: s, appendTo: i } = d, n = document.createElement("iframe");
1271
1271
  return n.className = "vimeo-video gvideo", n.src = e, n.style.width = "100%", n.style.height = "100%", t && n.setAttribute("allow", t), n.onload = function() {
1272
1272
  n.onload = null, ae(n, "node-ready"), ge(s) && s();
1273
1273
  }, i && i.appendChild(n), n;
1274
1274
  }
1275
- function ai(u, e, t, s) {
1276
- if (u()) {
1275
+ function ai(d, e, t, s) {
1276
+ if (d()) {
1277
1277
  e();
1278
1278
  return;
1279
1279
  }
1280
1280
  t || (t = 100);
1281
1281
  let i = setInterval(() => {
1282
- u() && (clearInterval(i), e());
1282
+ d() && (clearInterval(i), e());
1283
1283
  }, t);
1284
1284
  }
1285
- function Ni(u, e, t) {
1286
- if (We(u)) {
1285
+ function Ni(d, e, t) {
1286
+ if (We(d)) {
1287
1287
  console.error("Inject assets error");
1288
1288
  return;
1289
1289
  }
@@ -1292,16 +1292,16 @@ function Ni(u, e, t) {
1292
1292
  return;
1293
1293
  }
1294
1294
  let s;
1295
- if (u.indexOf(".css") !== -1) {
1296
- if (s = document.querySelectorAll('link[href="' + u + '"]'), s && s.length > 0) {
1295
+ if (d.indexOf(".css") !== -1) {
1296
+ if (s = document.querySelectorAll('link[href="' + d + '"]'), s && s.length > 0) {
1297
1297
  ge(t) && t();
1298
1298
  return;
1299
1299
  }
1300
1300
  const n = document.getElementsByTagName("head")[0], r = n.querySelectorAll('link[rel="stylesheet"]'), a = document.createElement("link");
1301
- a.rel = "stylesheet", a.type = "text/css", a.href = u, a.media = "all", r ? n.insertBefore(a, r[0]) : n.appendChild(a), ge(t) && t();
1301
+ a.rel = "stylesheet", a.type = "text/css", a.href = d, a.media = "all", r ? n.insertBefore(a, r[0]) : n.appendChild(a), ge(t) && t();
1302
1302
  return;
1303
1303
  }
1304
- if (s = document.querySelectorAll('script[src="' + u + '"]'), s && s.length > 0) {
1304
+ if (s = document.querySelectorAll('script[src="' + d + '"]'), s && s.length > 0) {
1305
1305
  if (ge(t)) {
1306
1306
  if (mt(e))
1307
1307
  return ai(
@@ -1315,7 +1315,7 @@ function Ni(u, e, t) {
1315
1315
  return;
1316
1316
  }
1317
1317
  let i = document.createElement("script");
1318
- i.type = "text/javascript", i.src = u, i.onload = () => {
1318
+ i.type = "text/javascript", i.src = d, i.onload = () => {
1319
1319
  if (ge(t)) {
1320
1320
  if (mt(e))
1321
1321
  return ai(
@@ -1334,65 +1334,65 @@ function bi() {
1334
1334
  function Ps() {
1335
1335
  return typeof document > "u" ? !1 : bi() !== null || document.createTouch !== void 0 || "ontouchstart" in window || "onmsgesturechange" in window || navigator.msMaxTouchPoints;
1336
1336
  }
1337
- function ge(u) {
1338
- return typeof u == "function";
1337
+ function ge(d) {
1338
+ return typeof d == "function";
1339
1339
  }
1340
- function mt(u) {
1341
- return typeof u == "string";
1340
+ function mt(d) {
1341
+ return typeof d == "string";
1342
1342
  }
1343
- function tt(u) {
1344
- return !!(u && u.nodeType && u.nodeType == 1);
1343
+ function tt(d) {
1344
+ return !!(d && d.nodeType && d.nodeType == 1);
1345
1345
  }
1346
- function ns(u) {
1347
- return Array.isArray(u);
1346
+ function ns(d) {
1347
+ return Array.isArray(d);
1348
1348
  }
1349
- function Pi(u) {
1350
- return u && u.length && isFinite(u.length);
1349
+ function Pi(d) {
1350
+ return d && d.length && isFinite(d.length);
1351
1351
  }
1352
- function dt(u) {
1353
- return typeof u === "object" && u != null && !ge(u) && !ns(u);
1352
+ function dt(d) {
1353
+ return typeof d === "object" && d != null && !ge(d) && !ns(d);
1354
1354
  }
1355
- function We(u) {
1356
- return u == null;
1355
+ function We(d) {
1356
+ return d == null;
1357
1357
  }
1358
- function Ne(u, e) {
1359
- return u !== null && hasOwnProperty.call(u, e);
1358
+ function Ne(d, e) {
1359
+ return d !== null && hasOwnProperty.call(d, e);
1360
1360
  }
1361
- function rs(u) {
1362
- if (dt(u)) {
1363
- if (u.keys)
1364
- return u.keys().length;
1361
+ function rs(d) {
1362
+ if (dt(d)) {
1363
+ if (d.keys)
1364
+ return d.keys().length;
1365
1365
  let e = 0;
1366
- for (let t in u)
1367
- Ne(u, t) && e++;
1366
+ for (let t in d)
1367
+ Ne(d, t) && e++;
1368
1368
  return e;
1369
1369
  } else
1370
- return u.length;
1370
+ return d.length;
1371
1371
  }
1372
- function zt(u) {
1373
- return !isNaN(parseFloat(u)) && isFinite(u);
1372
+ function zt(d) {
1373
+ return !isNaN(parseFloat(d)) && isFinite(d);
1374
1374
  }
1375
- function Di(u = -1) {
1375
+ function Di(d = -1) {
1376
1376
  const e = document.querySelectorAll(".gbtn[data-taborder]:not(.disabled)");
1377
1377
  if (!e.length)
1378
1378
  return !1;
1379
1379
  if (e.length == 1)
1380
1380
  return e[0];
1381
- typeof u == "string" && (u = parseInt(u));
1381
+ typeof d == "string" && (d = parseInt(d));
1382
1382
  const t = [];
1383
1383
  Oe(e, (a) => {
1384
1384
  t.push(a.getAttribute("data-taborder"));
1385
1385
  });
1386
1386
  const s = Math.max.apply(Math, t.map((a) => parseInt(a)));
1387
- let i = u < 0 ? 1 : u + 1;
1387
+ let i = d < 0 ? 1 : d + 1;
1388
1388
  i > s && (i = "1");
1389
1389
  const r = t.filter((a) => a >= parseInt(i)).sort()[0];
1390
1390
  return document.querySelector(`.gbtn[data-taborder="${r}"]`);
1391
1391
  }
1392
- function Ds(u) {
1393
- if (u.events.hasOwnProperty("keyboard"))
1392
+ function Ds(d) {
1393
+ if (d.events.hasOwnProperty("keyboard"))
1394
1394
  return !1;
1395
- u.events.keyboard = Xe("keydown", {
1395
+ d.events.keyboard = Xe("keydown", {
1396
1396
  onElement: window,
1397
1397
  withCallback: (e, t) => {
1398
1398
  e = e || window.event;
@@ -1416,29 +1416,29 @@ function Ds(u) {
1416
1416
  let r = i.getAttribute("data-taborder"), a = Di(r);
1417
1417
  je(i, "focused"), a && (a.focus(), ae(a, "focused"));
1418
1418
  }
1419
- s == 39 && u.nextSlide(), s == 37 && u.prevSlide(), s == 27 && u.close();
1419
+ s == 39 && d.nextSlide(), s == 37 && d.prevSlide(), s == 27 && d.close();
1420
1420
  }
1421
1421
  });
1422
1422
  }
1423
- function Ft(u) {
1424
- return Math.sqrt(u.x * u.x + u.y * u.y);
1423
+ function Yt(d) {
1424
+ return Math.sqrt(d.x * d.x + d.y * d.y);
1425
1425
  }
1426
- function $s(u, e) {
1427
- return u.x * e.x + u.y * e.y;
1426
+ function $s(d, e) {
1427
+ return d.x * e.x + d.y * e.y;
1428
1428
  }
1429
- function Hs(u, e) {
1430
- var t = Ft(u) * Ft(e);
1429
+ function Hs(d, e) {
1430
+ var t = Yt(d) * Yt(e);
1431
1431
  if (t === 0)
1432
1432
  return 0;
1433
- var s = $s(u, e) / t;
1433
+ var s = $s(d, e) / t;
1434
1434
  return s > 1 && (s = 1), Math.acos(s);
1435
1435
  }
1436
- function zs(u, e) {
1437
- return u.x * e.y - e.x * u.y;
1436
+ function zs(d, e) {
1437
+ return d.x * e.y - e.x * d.y;
1438
1438
  }
1439
- function Vs(u, e) {
1440
- var t = Hs(u, e);
1441
- return zs(u, e) > 0 && (t *= -1), t * 180 / Math.PI;
1439
+ function Vs(d, e) {
1440
+ var t = Hs(d, e);
1441
+ return zs(d, e) > 0 && (t *= -1), t * 180 / Math.PI;
1442
1442
  }
1443
1443
  class Bs {
1444
1444
  constructor(e) {
@@ -1459,8 +1459,8 @@ class Bs {
1459
1459
  }
1460
1460
  }
1461
1461
  }
1462
- function ze(u, e) {
1463
- var t = new Bs(u);
1462
+ function ze(d, e) {
1463
+ var t = new Bs(d);
1464
1464
  return t.add(e), t;
1465
1465
  }
1466
1466
  class Us {
@@ -1483,7 +1483,7 @@ class Us {
1483
1483
  if (i > 1) {
1484
1484
  this._cancelLongTap(), this._cancelSingleTap();
1485
1485
  var n = { x: e.touches[1].pageX - this.x1, y: e.touches[1].pageY - this.y1 };
1486
- s.x = n.x, s.y = n.y, this.pinchStartLen = Ft(s), this.multipointStart.dispatch(e, this.element);
1486
+ s.x = n.x, s.y = n.y, this.pinchStartLen = Yt(s), this.multipointStart.dispatch(e, this.element);
1487
1487
  }
1488
1488
  this._preventTap = !1, this.longTapTimeout = setTimeout(
1489
1489
  (function() {
@@ -1497,12 +1497,12 @@ class Us {
1497
1497
  var t = this.preV, s = e.touches.length, i = e.touches[0].pageX, n = e.touches[0].pageY;
1498
1498
  if (this.isDoubleTap = !1, s > 1) {
1499
1499
  var r = e.touches[1].pageX, a = e.touches[1].pageY, l = { x: e.touches[1].pageX - i, y: e.touches[1].pageY - n };
1500
- t.x !== null && (this.pinchStartLen > 0 && (e.zoom = Ft(l) / this.pinchStartLen, this.pinch.dispatch(e, this.element)), e.angle = Vs(l, t), this.rotate.dispatch(e, this.element)), t.x = l.x, t.y = l.y, this.x2 !== null && this.sx2 !== null ? (e.deltaX = (i - this.x2 + r - this.sx2) / 2, e.deltaY = (n - this.y2 + a - this.sy2) / 2) : (e.deltaX = 0, e.deltaY = 0), this.twoFingerPressMove.dispatch(e, this.element), this.sx2 = r, this.sy2 = a;
1500
+ t.x !== null && (this.pinchStartLen > 0 && (e.zoom = Yt(l) / this.pinchStartLen, this.pinch.dispatch(e, this.element)), e.angle = Vs(l, t), this.rotate.dispatch(e, this.element)), t.x = l.x, t.y = l.y, this.x2 !== null && this.sx2 !== null ? (e.deltaX = (i - this.x2 + r - this.sx2) / 2, e.deltaY = (n - this.y2 + a - this.sy2) / 2) : (e.deltaX = 0, e.deltaY = 0), this.twoFingerPressMove.dispatch(e, this.element), this.sx2 = r, this.sy2 = a;
1501
1501
  } else {
1502
1502
  if (this.x2 !== null) {
1503
1503
  e.deltaX = i - this.x2, e.deltaY = n - this.y2;
1504
- var c = Math.abs(this.x1 - this.x2), d = Math.abs(this.y1 - this.y2);
1505
- (c > 10 || d > 10) && (this._preventTap = !0);
1504
+ var c = Math.abs(this.x1 - this.x2), u = Math.abs(this.y1 - this.y2);
1505
+ (c > 10 || u > 10) && (this._preventTap = !0);
1506
1506
  } else
1507
1507
  e.deltaX = 0, e.deltaY = 0;
1508
1508
  this.pressMove.dispatch(e, this.element);
@@ -1548,9 +1548,9 @@ class Us {
1548
1548
  return this.singleTapTimeout && clearTimeout(this.singleTapTimeout), this.tapTimeout && clearTimeout(this.tapTimeout), this.longTapTimeout && clearTimeout(this.longTapTimeout), this.swipeTimeout && clearTimeout(this.swipeTimeout), this.element.removeEventListener("touchstart", this.start), this.element.removeEventListener("touchmove", this.move), this.element.removeEventListener("touchend", this.end), this.element.removeEventListener("touchcancel", this.cancel), this.rotate.del(), this.touchStart.del(), this.multipointStart.del(), this.multipointEnd.del(), this.pinch.del(), this.swipe.del(), this.tap.del(), this.doubleTap.del(), this.longTap.del(), this.singleTap.del(), this.pressMove.del(), this.twoFingerPressMove.del(), this.touchMove.del(), this.touchEnd.del(), this.touchCancel.del(), this.preV = this.pinchStartLen = this.zoom = this.isDoubleTap = this.delta = this.last = this.now = this.tapTimeout = this.singleTapTimeout = this.longTapTimeout = this.swipeTimeout = this.x1 = this.x2 = this.y1 = this.y2 = this.preTapPosition = this.rotate = this.touchStart = this.multipointStart = this.multipointEnd = this.pinch = this.swipe = this.tap = this.doubleTap = this.longTap = this.singleTap = this.pressMove = this.touchMove = this.touchEnd = this.touchCancel = this.twoFingerPressMove = null, window.removeEventListener("scroll", this._cancelAllHandler), null;
1549
1549
  }
1550
1550
  }
1551
- function ri(u) {
1551
+ function ri(d) {
1552
1552
  const e = js(), t = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
1553
- let s = Ve(u, "gslide-media") ? u : u.querySelector(".gslide-media"), i = Qe(s, ".ginner-container"), n = u.querySelector(".gslide-description");
1553
+ let s = Ve(d, "gslide-media") ? d : d.querySelector(".gslide-media"), i = Qe(s, ".ginner-container"), n = d.querySelector(".gslide-description");
1554
1554
  t > 769 && (s = i), ae(s, "greset"), Ht(s, "translate3d(0, 0, 0)"), Xe(e, {
1555
1555
  onElement: s,
1556
1556
  once: !0,
@@ -1559,14 +1559,14 @@ function ri(u) {
1559
1559
  }
1560
1560
  }), s.style.opacity = "", n && (n.style.opacity = "");
1561
1561
  }
1562
- function Ys(u) {
1563
- if (u.events.hasOwnProperty("touch"))
1562
+ function Fs(d) {
1563
+ if (d.events.hasOwnProperty("touch"))
1564
1564
  return !1;
1565
- let e = ss(), t = e.width, s = e.height, i = !1, n = null, r = null, a = null, l = !1, c = 1, d = 4.5, o = 1, h = !1, p = !1, g = null, w = null, S = null, b = null, x, m, v = 0, _ = 0, f = !1, y = !1, k = {}, C = {}, T = 0, O = 0, R;
1565
+ let e = ss(), t = e.width, s = e.height, i = !1, n = null, r = null, a = null, l = !1, c = 1, u = 4.5, o = 1, h = !1, p = !1, g = null, w = null, S = null, b = null, x, m, v = 0, _ = 0, f = !1, y = !1, k = {}, C = {}, T = 0, O = 0, R;
1566
1566
  const B = document.getElementById("glightbox-slider"), P = document.querySelector(".goverlay"), D = new Us(B, {
1567
1567
  touchStart: (M) => {
1568
1568
  if (i = !0, (Ve(M.targetTouches[0].target, "ginner-container") || Qe(M.targetTouches[0].target, ".gslide-desc") || M.targetTouches[0].target.nodeName.toLowerCase() == "a") && (i = !1), Qe(M.targetTouches[0].target, ".gslide-inline") && !Ve(M.targetTouches[0].target.parentNode, "gslide-inline") && (i = !1), i) {
1569
- if (C = M.targetTouches[0], k.pageX = M.targetTouches[0].pageX, k.pageY = M.targetTouches[0].pageY, T = M.targetTouches[0].clientX, O = M.targetTouches[0].clientY, n = u.activeSlide, r = n.querySelector(".gslide-media"), R = n.querySelector(".gslide-inline"), a = null, Ve(r, "gslide-image") && (a = r.querySelector("img")), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) > 769 && (r = n.querySelector(".ginner-container")), je(P, "greset"), M.pageX > 20 && M.pageX < window.innerWidth - 20)
1569
+ if (C = M.targetTouches[0], k.pageX = M.targetTouches[0].pageX, k.pageY = M.targetTouches[0].pageY, T = M.targetTouches[0].clientX, O = M.targetTouches[0].clientY, n = d.activeSlide, r = n.querySelector(".gslide-media"), R = n.querySelector(".gslide-inline"), a = null, Ve(r, "gslide-image") && (a = r.querySelector("img")), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) > 769 && (r = n.querySelector(".ginner-container")), je(P, "greset"), M.pageX > 20 && M.pageX < window.innerWidth - 20)
1570
1570
  return;
1571
1571
  M.preventDefault();
1572
1572
  }
@@ -1583,7 +1583,7 @@ function Ys(u) {
1583
1583
  let q = M.targetTouches[0].clientX, I = M.targetTouches[0].clientY, E = T - q, $ = O - I;
1584
1584
  Math.abs(E) > Math.abs($) ? (f = !1, y = !0) : (y = !1, f = !0), x = C.pageX - k.pageX, v = x * 100 / t, m = C.pageY - k.pageY, _ = m * 100 / s;
1585
1585
  let H;
1586
- if (f && a && (H = 1 - Math.abs(m) / s, P.style.opacity = H, u.settings.touchFollowAxis && (v = 0)), y && (H = 1 - Math.abs(x) / t, r.style.opacity = H, u.settings.touchFollowAxis && (_ = 0)), !a)
1586
+ if (f && a && (H = 1 - Math.abs(m) / s, P.style.opacity = H, d.settings.touchFollowAxis && (v = 0)), y && (H = 1 - Math.abs(x) / t, r.style.opacity = H, d.settings.touchFollowAxis && (_ = 0)), !a)
1587
1587
  return Ht(r, `translate3d(${v}%, 0, 0)`);
1588
1588
  Ht(r, `translate3d(${v}%, ${_}%, 0)`);
1589
1589
  },
@@ -1596,7 +1596,7 @@ function Ys(u) {
1596
1596
  }
1597
1597
  const M = Math.abs(parseInt(_)), q = Math.abs(parseInt(v));
1598
1598
  if (M > 29 && a) {
1599
- u.close();
1599
+ d.close();
1600
1600
  return;
1601
1601
  }
1602
1602
  if (M < 29 && q < 25)
@@ -1619,7 +1619,7 @@ function Ys(u) {
1619
1619
  p = !1, q = 1, b = null, S = null, g = null, w = null, a.setAttribute("style", "");
1620
1620
  return;
1621
1621
  }
1622
- q > d && (q = d), a.style.transform = `scale3d(${q}, ${q}, 1)`, o = q;
1622
+ q > u && (q = u), a.style.transform = `scale3d(${q}, ${q}, 1)`, o = q;
1623
1623
  },
1624
1624
  pressMove: (M) => {
1625
1625
  if (p && !h) {
@@ -1636,21 +1636,21 @@ function Ys(u) {
1636
1636
  return;
1637
1637
  }
1638
1638
  if (M.direction == "Left") {
1639
- if (u.index == u.elements.length - 1)
1639
+ if (d.index == d.elements.length - 1)
1640
1640
  return ri(r);
1641
- u.nextSlide();
1641
+ d.nextSlide();
1642
1642
  }
1643
1643
  if (M.direction == "Right") {
1644
- if (u.index == 0)
1644
+ if (d.index == 0)
1645
1645
  return ri(r);
1646
- u.prevSlide();
1646
+ d.prevSlide();
1647
1647
  }
1648
1648
  }
1649
1649
  }
1650
1650
  });
1651
- u.events.touch = D;
1651
+ d.events.touch = D;
1652
1652
  }
1653
- class Fs {
1653
+ class Ys {
1654
1654
  constructor(e, t, s = null) {
1655
1655
  if (this.img = e, this.slide = t, this.onclose = s, this.img.setZoomEvents)
1656
1656
  return !1;
@@ -1767,44 +1767,44 @@ class $i {
1767
1767
  i ? e.style.transition = "all .2s ease" : e.style.transition = "", e.style.transform = `translate3d(${t}px, ${s}px, 0)`;
1768
1768
  }
1769
1769
  }
1770
- function Ws(u, e, t, s) {
1771
- const i = u.querySelector(".gslide-media");
1770
+ function Ws(d, e, t, s) {
1771
+ const i = d.querySelector(".gslide-media");
1772
1772
  let n = new Image(), r = "gSlideTitle_" + t, a = "gSlideDesc_" + t;
1773
1773
  n.addEventListener("load", () => {
1774
1774
  ge(s) && s();
1775
1775
  }, !1), n.src = e.href, e.sizes != "" && e.srcset != "" && (n.sizes = e.sizes, n.srcset = e.srcset), n.alt = "", !We(e.alt) && e.alt !== "" && (n.alt = e.alt), e.title !== "" && n.setAttribute("aria-labelledby", r), e.description !== "" && n.setAttribute("aria-describedby", a), e.hasOwnProperty("_hasCustomWidth") && e._hasCustomWidth && (n.style.width = e.width), e.hasOwnProperty("_hasCustomHeight") && e._hasCustomHeight && (n.style.height = e.height), i.insertBefore(n, i.firstChild);
1776
1776
  }
1777
- function Gs(u, e, t, s) {
1778
- const i = u.querySelector(".ginner-container"), n = "gvideo" + t, r = u.querySelector(".gslide-media"), a = this.getAllPlayers();
1777
+ function Gs(d, e, t, s) {
1778
+ const i = d.querySelector(".ginner-container"), n = "gvideo" + t, r = d.querySelector(".gslide-media"), a = this.getAllPlayers();
1779
1779
  ae(i, "gvideo-container"), r.insertBefore(rt('<div class="gvideo-wrapper"></div>'), r.firstChild);
1780
- const l = u.querySelector(".gvideo-wrapper");
1780
+ const l = d.querySelector(".gvideo-wrapper");
1781
1781
  Ni(this.settings.plyr.css, "Plyr");
1782
- let c = e.href, d = e?.videoProvider, o = !1;
1782
+ let c = e.href, u = e?.videoProvider, o = !1;
1783
1783
  r.style.maxWidth = e.width, Ni(this.settings.plyr.js, "Plyr", () => {
1784
- if (!d && c.match(/vimeo\.com\/([0-9]*)/) && (d = "vimeo"), !d && (c.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || c.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || c.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)) && (d = "youtube"), d === "local" || !d) {
1785
- d = "local";
1784
+ if (!u && c.match(/vimeo\.com\/([0-9]*)/) && (u = "vimeo"), !u && (c.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || c.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || c.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)) && (u = "youtube"), u === "local" || !u) {
1785
+ u = "local";
1786
1786
  let w = '<video id="' + n + '" ';
1787
1787
  w += `style="background:#000; max-width: ${e.width};" `, w += 'preload="metadata" ', w += 'x-webkit-airplay="allow" ', w += "playsinline ", w += "controls ", w += 'class="gvideo-local">', w += `<source src="${c}">`, w += "</video>", o = rt(w);
1788
1788
  }
1789
- const h = o || rt(`<div id="${n}" data-plyr-provider="${d}" data-plyr-embed-id="${c}"></div>`);
1790
- ae(l, `${d}-video gvideo`), l.appendChild(h), l.setAttribute("data-id", n), l.setAttribute("data-index", t);
1789
+ const h = o || rt(`<div id="${n}" data-plyr-provider="${u}" data-plyr-embed-id="${c}"></div>`);
1790
+ ae(l, `${u}-video gvideo`), l.appendChild(h), l.setAttribute("data-id", n), l.setAttribute("data-index", t);
1791
1791
  const p = Ne(this.settings.plyr, "config") ? this.settings.plyr.config : {}, g = new Plyr("#" + n, p);
1792
1792
  g.on("ready", (w) => {
1793
1793
  a[n] = w.detail.plyr, ge(s) && s();
1794
1794
  }), ai(
1795
- () => u.querySelector("iframe") && u.querySelector("iframe").dataset.ready == "true",
1795
+ () => d.querySelector("iframe") && d.querySelector("iframe").dataset.ready == "true",
1796
1796
  () => {
1797
- this.resize(u);
1797
+ this.resize(d);
1798
1798
  }
1799
1799
  ), g.on("enterfullscreen", Hi), g.on("exitfullscreen", Hi);
1800
1800
  });
1801
1801
  }
1802
- function Hi(u) {
1803
- const e = Qe(u.target, ".gslide-media");
1804
- u.type === "enterfullscreen" && ae(e, "fullscreen"), u.type === "exitfullscreen" && je(e, "fullscreen");
1802
+ function Hi(d) {
1803
+ const e = Qe(d.target, ".gslide-media");
1804
+ d.type === "enterfullscreen" && ae(e, "fullscreen"), d.type === "exitfullscreen" && je(e, "fullscreen");
1805
1805
  }
1806
- function Xs(u, e, t, s) {
1807
- const i = u.querySelector(".gslide-media"), n = Ne(e, "href") && e.href ? e.href.split("#").pop().trim() : !1, r = Ne(e, "content") && e.content ? e.content : !1;
1806
+ function Xs(d, e, t, s) {
1807
+ const i = d.querySelector(".gslide-media"), n = Ne(e, "href") && e.href ? e.href.split("#").pop().trim() : !1, r = Ne(e, "content") && e.content ? e.content : !1;
1808
1808
  let a;
1809
1809
  if (r && (mt(r) && (a = rt(`<div class="ginlined-content">${r}</div>`)), tt(r))) {
1810
1810
  r.style.display == "none" && (r.style.display = "block");
@@ -1827,8 +1827,8 @@ function Xs(u, e, t, s) {
1827
1827
  }
1828
1828
  }), ge(s) && s();
1829
1829
  }
1830
- function Js(u, e, t, s) {
1831
- const i = u.querySelector(".gslide-media"), n = Ns({
1830
+ function Js(d, e, t, s) {
1831
+ const i = d.querySelector(".gslide-media"), n = Ns({
1832
1832
  url: e.href,
1833
1833
  callback: s
1834
1834
  });
@@ -1890,7 +1890,7 @@ class Zs {
1890
1890
  Oe(s, (l, c) => {
1891
1891
  a.push(";\\s?" + c);
1892
1892
  }), a = a.join("\\s?:|"), n.trim() !== "" && Oe(s, (l, c) => {
1893
- const d = n, o = "s?" + c + "s?:s?(.*?)(" + a + "s?:|$)", h = new RegExp(o), p = d.match(h);
1893
+ const u = n, o = "s?" + c + "s?:s?(.*?)(" + a + "s?:|$)", h = new RegExp(o), p = u.match(h);
1894
1894
  if (p && p.length && p[1]) {
1895
1895
  const g = p[1].trim().replace(/;\s*$/, "");
1896
1896
  s[c] = this.sanitizeValue(g);
@@ -1966,14 +1966,14 @@ class It {
1966
1966
  slide: e,
1967
1967
  player: !1
1968
1968
  });
1969
- let r = i.type, a = i.descPosition, l = e.querySelector(".gslide-media"), c = e.querySelector(".gslide-title"), d = e.querySelector(".gslide-desc"), o = e.querySelector(".gdesc-inner"), h = t, p = "gSlideTitle_" + this.index, g = "gSlideDesc_" + this.index;
1969
+ let r = i.type, a = i.descPosition, l = e.querySelector(".gslide-media"), c = e.querySelector(".gslide-title"), u = e.querySelector(".gslide-desc"), o = e.querySelector(".gdesc-inner"), h = t, p = "gSlideTitle_" + this.index, g = "gSlideDesc_" + this.index;
1970
1970
  if (ge(s.afterSlideLoad) && (h = () => {
1971
1971
  ge(t) && t(), s.afterSlideLoad({
1972
1972
  index: this.index,
1973
1973
  slide: e,
1974
1974
  player: this.instance.getSlidePlayerInstance(this.index)
1975
1975
  });
1976
- }), i.title == "" && i.description == "" ? o && o.parentNode.parentNode.removeChild(o.parentNode) : (c && i.title !== "" ? (c.id = p, c.innerHTML = i.title) : c.parentNode.removeChild(c), d && i.description !== "" ? (d.id = g, n && s.moreLength > 0 ? (i.smallDescription = this.slideShortDesc(i.description, s.moreLength, s.moreText), d.innerHTML = i.smallDescription, this.descriptionEvents(d, i)) : d.innerHTML = i.description) : d.parentNode.removeChild(d), ae(l.parentNode, `desc-${a}`), ae(o.parentNode, `description-${a}`)), ae(l, `gslide-${r}`), ae(e, "loaded"), r === "video") {
1976
+ }), i.title == "" && i.description == "" ? o && o.parentNode.parentNode.removeChild(o.parentNode) : (c && i.title !== "" ? (c.id = p, c.innerHTML = i.title) : c.parentNode.removeChild(c), u && i.description !== "" ? (u.id = g, n && s.moreLength > 0 ? (i.smallDescription = this.slideShortDesc(i.description, s.moreLength, s.moreText), u.innerHTML = i.smallDescription, this.descriptionEvents(u, i)) : u.innerHTML = i.description) : u.parentNode.removeChild(u), ae(l.parentNode, `desc-${a}`), ae(o.parentNode, `description-${a}`)), ae(l, `gslide-${r}`), ae(e, "loaded"), r === "video") {
1977
1977
  Gs.apply(this.instance, [e, i, this.index, h]);
1978
1978
  return;
1979
1979
  }
@@ -2000,7 +2000,7 @@ class It {
2000
2000
  toleranceY: s.dragToleranceY,
2001
2001
  slide: e,
2002
2002
  instance: this.instance
2003
- }), i.zoomable && w.naturalWidth > w.offsetWidth && (ae(w, "zoomable"), new Fs(w, e, () => {
2003
+ }), i.zoomable && w.naturalWidth > w.offsetWidth && (ae(w, "zoomable"), new Ys(w, e, () => {
2004
2004
  this.instance.resize();
2005
2005
  })), ge(h) && h();
2006
2006
  });
@@ -2032,7 +2032,7 @@ class It {
2032
2032
  a.innerHTML = t.description, ae(r, "gdesc-open");
2033
2033
  let l = Xe("click", {
2034
2034
  onElement: [r, Qe(a, ".gslide-description")],
2035
- withCallback: (c, d) => {
2035
+ withCallback: (c, u) => {
2036
2036
  c.target.nodeName.toLowerCase() !== "a" && (je(r, "gdesc-open"), ae(r, "gdesc-closed"), a.innerHTML = t.smallDescription, this.descriptionEvents(a, t), setTimeout(() => {
2037
2037
  je(r, "gdesc-closed");
2038
2038
  }, 400), l.destroy());
@@ -2197,7 +2197,7 @@ class Bi {
2197
2197
  var r = document.createElement("style");
2198
2198
  r.type = "text/css", r.className = "gcss-styles", r.innerText = `.gscrollbar-fixer {margin-right: ${n}px}`, document.head.appendChild(r), ae(i, "gscrollbar-fixer");
2199
2199
  }
2200
- ae(i, "glightbox-open"), ae(oi, "glightbox-open"), zi && (ae(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(s, !0), this.elements.length === 1 ? (ae(this.prevButton, "glightbox-button-hidden"), ae(this.nextButton, "glightbox-button-hidden")) : (je(this.prevButton, "glightbox-button-hidden"), je(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), ge(this.settings.onOpen) && this.settings.onOpen(), Vi && this.settings.touchNavigation && Ys(this), this.settings.keyboardNavigation && Ds(this);
2200
+ ae(i, "glightbox-open"), ae(oi, "glightbox-open"), zi && (ae(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(s, !0), this.elements.length === 1 ? (ae(this.prevButton, "glightbox-button-hidden"), ae(this.nextButton, "glightbox-button-hidden")) : (je(this.prevButton, "glightbox-button-hidden"), je(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), ge(this.settings.onOpen) && this.settings.onOpen(), Vi && this.settings.touchNavigation && Fs(this), this.settings.keyboardNavigation && Ds(this);
2201
2201
  }
2202
2202
  /**
2203
2203
  * Open at specific index
@@ -2302,8 +2302,8 @@ class Bi {
2302
2302
  if (t > a)
2303
2303
  this.slidesContainer.appendChild(r);
2304
2304
  else {
2305
- let d = this.slidesContainer.querySelectorAll(".gslide")[t];
2306
- this.slidesContainer.insertBefore(r, d);
2305
+ let u = this.slidesContainer.querySelectorAll(".gslide")[t];
2306
+ this.slidesContainer.insertBefore(r, u);
2307
2307
  }
2308
2308
  (this.settings.preload && this.index == 0 && t == 0 || this.index - 1 == t || this.index + 1 == t) && this.preloadSlide(t), this.index === 0 && t === 0 && (this.index = 1), this.updateNavigationClasses(), l = this.slidesContainer.querySelectorAll(".gslide")[t], c = this.getSlidePlayerInstance(t), n.slideNode = l;
2309
2309
  }
@@ -2620,26 +2620,26 @@ class Bi {
2620
2620
  let l = a.querySelector(".gclose");
2621
2621
  this.prevButton = a.querySelector(".gprev"), this.nextButton = a.querySelector(".gnext"), this.overlay = a.querySelector(".goverlay"), this.loader = a.querySelector(".gloader"), this.slidesContainer = document.getElementById("glightbox-slider"), this.bodyHiddenChildElms = t, this.events = {}, ae(this.modal, "glightbox-" + this.settings.skin), this.settings.closeButton && l && (this.events.close = Xe("click", {
2622
2622
  onElement: l,
2623
- withCallback: (c, d) => {
2623
+ withCallback: (c, u) => {
2624
2624
  c.preventDefault(), this.close();
2625
2625
  }
2626
2626
  })), l && !this.settings.closeButton && l.parentNode.removeChild(l), this.nextButton && (this.events.next = Xe("click", {
2627
2627
  onElement: this.nextButton,
2628
- withCallback: (c, d) => {
2628
+ withCallback: (c, u) => {
2629
2629
  c.preventDefault(), this.nextSlide();
2630
2630
  }
2631
2631
  })), this.prevButton && (this.events.prev = Xe("click", {
2632
2632
  onElement: this.prevButton,
2633
- withCallback: (c, d) => {
2633
+ withCallback: (c, u) => {
2634
2634
  c.preventDefault(), this.prevSlide();
2635
2635
  }
2636
2636
  })), this.settings.closeOnOutsideClick && (this.events.outClose = Xe("click", {
2637
2637
  onElement: a,
2638
- withCallback: (c, d) => {
2638
+ withCallback: (c, u) => {
2639
2639
  !this.preventOutsideClick && !Ve(document.body, "glightbox-mobile") && !Qe(c.target, ".ginner-container") && !Qe(c.target, ".gbtn") && !Ve(c.target, "gnext") && !Ve(c.target, "gprev") && this.close();
2640
2640
  }
2641
- })), Oe(this.elements, (c, d) => {
2642
- this.slidesContainer.appendChild(c.instance.create()), c.slideNode = this.slidesContainer.querySelectorAll(".gslide")[d];
2641
+ })), Oe(this.elements, (c, u) => {
2642
+ this.slidesContainer.appendChild(c.instance.create()), c.slideNode = this.slidesContainer.querySelectorAll(".gslide")[u];
2643
2643
  }), Vi && ae(document.body, "glightbox-touch"), this.events.resize = Xe("resize", {
2644
2644
  onElement: window,
2645
2645
  withCallback: () => {
@@ -2667,9 +2667,9 @@ class Bi {
2667
2667
  if (r <= 768)
2668
2668
  i.querySelector("img");
2669
2669
  else if (l) {
2670
- let c = n.offsetHeight, d = i.querySelector("img");
2670
+ let c = n.offsetHeight, u = i.querySelector("img");
2671
2671
  const h = this.elements[this.index].node.getAttribute("data-height") ?? "100vh";
2672
- d.setAttribute("style", `max-height: calc(${h} - ${c}px)`), n.setAttribute("style", `max-width: ${d.offsetWidth}px;`);
2672
+ u.setAttribute("style", `max-height: calc(${h} - ${c}px)`), n.setAttribute("style", `max-width: ${u.offsetWidth}px;`);
2673
2673
  }
2674
2674
  }
2675
2675
  if (s) {
@@ -2678,9 +2678,9 @@ class Bi {
2678
2678
  const g = s.clientWidth, w = s.clientHeight, S = g / w;
2679
2679
  c = `${g / S}:${w / S}`;
2680
2680
  }
2681
- let d = c.split(":"), o = this.settings.videosWidth, h = this.settings.videosWidth;
2681
+ let u = c.split(":"), o = this.settings.videosWidth, h = this.settings.videosWidth;
2682
2682
  zt(o) || o.indexOf("px") !== -1 ? h = parseInt(o) : o.indexOf("vw") !== -1 ? h = r * parseInt(o) / 100 : o.indexOf("vh") !== -1 ? h = a * parseInt(o) / 100 : o.indexOf("%") !== -1 ? h = r * parseInt(o) / 100 : h = parseInt(s.clientWidth);
2683
- let p = h / (parseInt(d[0]) / parseInt(d[1]));
2683
+ let p = h / (parseInt(u[0]) / parseInt(u[1]));
2684
2684
  if (p = Math.floor(p), l && (a = a - n.offsetHeight), h > r || p > a || a < p && r > h) {
2685
2685
  let g = s.offsetWidth, w = s.offsetHeight, S = a / w, b = { width: g * S };
2686
2686
  s.parentNode.setAttribute("style", `max-width: ${b.width}px`), l && n.setAttribute("style", `max-width: ${b.width}px;`);
@@ -2856,9 +2856,9 @@ class Ks {
2856
2856
  (r !== this.direction.x || a !== this.direction.y) && (this.direction = { x: r, y: a }, this.queue = [], this.lastScrollTime = 0);
2857
2857
  const l = Date.now(), c = l - this.lastScrollTime;
2858
2858
  if (c < this.accelerationDelta) {
2859
- const d = (1 + 50 / c) / 2;
2860
- if (d > 1) {
2861
- const o = Math.min(d, this.accelerationMax);
2859
+ const u = (1 + 50 / c) / 2;
2860
+ if (u > 1) {
2861
+ const o = Math.min(u, this.accelerationMax);
2862
2862
  t *= o, s *= o;
2863
2863
  }
2864
2864
  }
@@ -2881,8 +2881,8 @@ class Ks {
2881
2881
  const t = document.scrollingElement || document.documentElement;
2882
2882
  let s = e;
2883
2883
  for (; s && s !== document.body; ) {
2884
- const i = window.getComputedStyle(s), n = i.overflowY, r = i.overflowX, a = ["auto", "scroll"].includes(n), l = ["auto", "scroll"].includes(r), c = s.scrollHeight > s.clientHeight, d = s.scrollWidth > s.clientWidth;
2885
- if (a && c || l && d)
2884
+ const i = window.getComputedStyle(s), n = i.overflowY, r = i.overflowX, a = ["auto", "scroll"].includes(n), l = ["auto", "scroll"].includes(r), c = s.scrollHeight > s.clientHeight, u = s.scrollWidth > s.clientWidth;
2885
+ if (a && c || l && u)
2886
2886
  return s;
2887
2887
  if (s === t) return t;
2888
2888
  s = s.parentElement;
@@ -2908,8 +2908,8 @@ class Ks {
2908
2908
  const s = Date.now();
2909
2909
  let i = 0, n = 0;
2910
2910
  for (let a = this.queue.length - 1; a >= 0; a--) {
2911
- const l = this.queue[a], c = s - l.start, d = c >= this.animationTime, o = d ? 1 : c / this.animationTime, h = this._pulse(o), p = l.x * h - l.lastX >> 0, g = l.y * h - l.lastY >> 0;
2912
- i += p, n += g, l.lastX += p, l.lastY += g, d && this.queue.splice(a, 1);
2911
+ const l = this.queue[a], c = s - l.start, u = c >= this.animationTime, o = u ? 1 : c / this.animationTime, h = this._pulse(o), p = l.x * h - l.lastX >> 0, g = l.y * h - l.lastY >> 0;
2912
+ i += p, n += g, l.lastX += p, l.lastY += g, u && this.queue.splice(a, 1);
2913
2913
  }
2914
2914
  if (e === document.scrollingElement || e === document.documentElement || e === document.body ? window.scrollBy(i, n) : (i && (e.scrollLeft += i), n && (e.scrollTop += n)), this.queue.length > 0)
2915
2915
  requestAnimationFrame(t);
@@ -2939,76 +2939,76 @@ class Ks {
2939
2939
  * (c) 2013-2024 Jędrzej Chałubek (https://github.com/jedrzejchalubek/)
2940
2940
  * Released under the MIT License.
2941
2941
  */
2942
- function Ui(u, e) {
2943
- var t = Object.keys(u);
2942
+ function Ui(d, e) {
2943
+ var t = Object.keys(d);
2944
2944
  if (Object.getOwnPropertySymbols) {
2945
- var s = Object.getOwnPropertySymbols(u);
2945
+ var s = Object.getOwnPropertySymbols(d);
2946
2946
  e && (s = s.filter(function(i) {
2947
- return Object.getOwnPropertyDescriptor(u, i).enumerable;
2947
+ return Object.getOwnPropertyDescriptor(d, i).enumerable;
2948
2948
  })), t.push.apply(t, s);
2949
2949
  }
2950
2950
  return t;
2951
2951
  }
2952
- function Yi(u) {
2952
+ function Fi(d) {
2953
2953
  for (var e = 1; e < arguments.length; e++) {
2954
2954
  var t = arguments[e] != null ? arguments[e] : {};
2955
2955
  e % 2 ? Ui(Object(t), !0).forEach(function(s) {
2956
- tn(u, s, t[s]);
2957
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(u, Object.getOwnPropertyDescriptors(t)) : Ui(Object(t)).forEach(function(s) {
2958
- Object.defineProperty(u, s, Object.getOwnPropertyDescriptor(t, s));
2956
+ tn(d, s, t[s]);
2957
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(d, Object.getOwnPropertyDescriptors(t)) : Ui(Object(t)).forEach(function(s) {
2958
+ Object.defineProperty(d, s, Object.getOwnPropertyDescriptor(t, s));
2959
2959
  });
2960
2960
  }
2961
- return u;
2961
+ return d;
2962
2962
  }
2963
- function Vt(u) {
2963
+ function Vt(d) {
2964
2964
  "@babel/helpers - typeof";
2965
2965
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Vt = function(e) {
2966
2966
  return typeof e;
2967
2967
  } : Vt = function(e) {
2968
2968
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2969
- }, Vt(u);
2969
+ }, Vt(d);
2970
2970
  }
2971
- function Zt(u, e) {
2972
- if (!(u instanceof e))
2971
+ function Zt(d, e) {
2972
+ if (!(d instanceof e))
2973
2973
  throw new TypeError("Cannot call a class as a function");
2974
2974
  }
2975
- function en(u, e) {
2975
+ function en(d, e) {
2976
2976
  for (var t = 0; t < e.length; t++) {
2977
2977
  var s = e[t];
2978
- s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(u, s.key, s);
2978
+ s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(d, s.key, s);
2979
2979
  }
2980
2980
  }
2981
- function Qt(u, e, t) {
2982
- return e && en(u.prototype, e), u;
2981
+ function Qt(d, e, t) {
2982
+ return e && en(d.prototype, e), d;
2983
2983
  }
2984
- function tn(u, e, t) {
2985
- return e in u ? Object.defineProperty(u, e, {
2984
+ function tn(d, e, t) {
2985
+ return e in d ? Object.defineProperty(d, e, {
2986
2986
  value: t,
2987
2987
  enumerable: !0,
2988
2988
  configurable: !0,
2989
2989
  writable: !0
2990
- }) : u[e] = t, u;
2990
+ }) : d[e] = t, d;
2991
2991
  }
2992
- function sn(u, e) {
2992
+ function sn(d, e) {
2993
2993
  if (typeof e != "function" && e !== null)
2994
2994
  throw new TypeError("Super expression must either be null or a function");
2995
- u.prototype = Object.create(e && e.prototype, {
2995
+ d.prototype = Object.create(e && e.prototype, {
2996
2996
  constructor: {
2997
- value: u,
2997
+ value: d,
2998
2998
  writable: !0,
2999
2999
  configurable: !0
3000
3000
  }
3001
- }), e && li(u, e);
3001
+ }), e && li(d, e);
3002
3002
  }
3003
- function ht(u) {
3003
+ function ht(d) {
3004
3004
  return ht = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
3005
3005
  return t.__proto__ || Object.getPrototypeOf(t);
3006
- }, ht(u);
3006
+ }, ht(d);
3007
3007
  }
3008
- function li(u, e) {
3008
+ function li(d, e) {
3009
3009
  return li = Object.setPrototypeOf || function(s, i) {
3010
3010
  return s.__proto__ = i, s;
3011
- }, li(u, e);
3011
+ }, li(d, e);
3012
3012
  }
3013
3013
  function nn() {
3014
3014
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
@@ -3020,22 +3020,22 @@ function nn() {
3020
3020
  return !1;
3021
3021
  }
3022
3022
  }
3023
- function rn(u) {
3024
- if (u === void 0)
3023
+ function rn(d) {
3024
+ if (d === void 0)
3025
3025
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
3026
- return u;
3026
+ return d;
3027
3027
  }
3028
- function an(u, e) {
3028
+ function an(d, e) {
3029
3029
  if (e && (typeof e == "object" || typeof e == "function"))
3030
3030
  return e;
3031
3031
  if (e !== void 0)
3032
3032
  throw new TypeError("Derived constructors may only return object or undefined");
3033
- return rn(u);
3033
+ return rn(d);
3034
3034
  }
3035
- function on(u) {
3035
+ function on(d) {
3036
3036
  var e = nn();
3037
3037
  return function() {
3038
- var s = ht(u), i;
3038
+ var s = ht(d), i;
3039
3039
  if (e) {
3040
3040
  var n = ht(this).constructor;
3041
3041
  i = Reflect.construct(s, arguments, n);
@@ -3044,10 +3044,10 @@ function on(u) {
3044
3044
  return an(this, i);
3045
3045
  };
3046
3046
  }
3047
- function ln(u, e) {
3048
- for (; !Object.prototype.hasOwnProperty.call(u, e) && (u = ht(u), u !== null); )
3047
+ function ln(d, e) {
3048
+ for (; !Object.prototype.hasOwnProperty.call(d, e) && (d = ht(d), d !== null); )
3049
3049
  ;
3050
- return u;
3050
+ return d;
3051
3051
  }
3052
3052
  function Bt() {
3053
3053
  return typeof Reflect < "u" && Reflect.get ? Bt = Reflect.get : Bt = function(e, t, s) {
@@ -3262,64 +3262,64 @@ var cn = {
3262
3262
  }
3263
3263
  }
3264
3264
  };
3265
- function it(u) {
3266
- console.error("[Glide warn]: ".concat(u));
3265
+ function it(d) {
3266
+ console.error("[Glide warn]: ".concat(d));
3267
3267
  }
3268
- function $e(u) {
3269
- return parseInt(u);
3268
+ function $e(d) {
3269
+ return parseInt(d);
3270
3270
  }
3271
- function un(u) {
3272
- return parseFloat(u);
3271
+ function un(d) {
3272
+ return parseFloat(d);
3273
3273
  }
3274
- function ci(u) {
3275
- return typeof u == "string";
3274
+ function ci(d) {
3275
+ return typeof d == "string";
3276
3276
  }
3277
- function pt(u) {
3278
- var e = Vt(u);
3279
- return e === "function" || e === "object" && !!u;
3277
+ function pt(d) {
3278
+ var e = Vt(d);
3279
+ return e === "function" || e === "object" && !!d;
3280
3280
  }
3281
- function Wt(u) {
3282
- return typeof u == "function";
3281
+ function Wt(d) {
3282
+ return typeof d == "function";
3283
3283
  }
3284
- function as(u) {
3285
- return typeof u > "u";
3284
+ function as(d) {
3285
+ return typeof d > "u";
3286
3286
  }
3287
- function ui(u) {
3288
- return u.constructor === Array;
3287
+ function ui(d) {
3288
+ return d.constructor === Array;
3289
3289
  }
3290
- function dn(u, e, t) {
3290
+ function dn(d, e, t) {
3291
3291
  var s = {};
3292
3292
  for (var i in e)
3293
- Wt(e[i]) ? s[i] = e[i](u, s, t) : it("Extension must be a function");
3293
+ Wt(e[i]) ? s[i] = e[i](d, s, t) : it("Extension must be a function");
3294
3294
  for (var n in s)
3295
3295
  Wt(s[n].mount) && s[n].mount();
3296
3296
  return s;
3297
3297
  }
3298
- function ke(u, e, t) {
3299
- Object.defineProperty(u, e, t);
3298
+ function ke(d, e, t) {
3299
+ Object.defineProperty(d, e, t);
3300
3300
  }
3301
- function hn(u) {
3302
- return Object.keys(u).sort().reduce(function(e, t) {
3303
- return e[t] = u[t], e[t], e;
3301
+ function hn(d) {
3302
+ return Object.keys(d).sort().reduce(function(e, t) {
3303
+ return e[t] = d[t], e[t], e;
3304
3304
  }, {});
3305
3305
  }
3306
- function di(u, e) {
3307
- var t = Object.assign({}, u, e);
3306
+ function di(d, e) {
3307
+ var t = Object.assign({}, d, e);
3308
3308
  if (e.hasOwnProperty("classes")) {
3309
- t.classes = Object.assign({}, u.classes, e.classes);
3309
+ t.classes = Object.assign({}, d.classes, e.classes);
3310
3310
  var s = ["direction", "type", "slide", "arrow", "nav"];
3311
3311
  s.forEach(function(i) {
3312
- e.classes.hasOwnProperty(i) && (t.classes[i] = Yi(Yi({}, u.classes[i]), e.classes[i]));
3312
+ e.classes.hasOwnProperty(i) && (t.classes[i] = Fi(Fi({}, d.classes[i]), e.classes[i]));
3313
3313
  });
3314
3314
  }
3315
- return e.hasOwnProperty("breakpoints") && (t.breakpoints = Object.assign({}, u.breakpoints, e.breakpoints)), t;
3315
+ return e.hasOwnProperty("breakpoints") && (t.breakpoints = Object.assign({}, d.breakpoints, e.breakpoints)), t;
3316
3316
  }
3317
3317
  var pn = /* @__PURE__ */ (function() {
3318
- function u() {
3318
+ function d() {
3319
3319
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3320
- Zt(this, u), this.events = e, this.hop = e.hasOwnProperty;
3320
+ Zt(this, d), this.events = e, this.hop = e.hasOwnProperty;
3321
3321
  }
3322
- return Qt(u, [{
3322
+ return Qt(d, [{
3323
3323
  key: "on",
3324
3324
  value: function(t, s) {
3325
3325
  if (ui(t)) {
@@ -3353,13 +3353,13 @@ var pn = /* @__PURE__ */ (function() {
3353
3353
  n(s || {});
3354
3354
  });
3355
3355
  }
3356
- }]), u;
3356
+ }]), d;
3357
3357
  })(), fn = /* @__PURE__ */ (function() {
3358
- function u(e) {
3358
+ function d(e) {
3359
3359
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3360
- Zt(this, u), this._c = {}, this._t = [], this._e = new pn(), this.disabled = !1, this.selector = e, this.settings = di(cn, t), this.index = this.settings.startAt;
3360
+ Zt(this, d), this._c = {}, this._t = [], this._e = new pn(), this.disabled = !1, this.selector = e, this.settings = di(cn, t), this.index = this.settings.startAt;
3361
3361
  }
3362
- return Qt(u, [{
3362
+ return Qt(d, [{
3363
3363
  key: "mount",
3364
3364
  value: function() {
3365
3365
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -3542,9 +3542,9 @@ var pn = /* @__PURE__ */ (function() {
3542
3542
  set: function(t) {
3543
3543
  this._d = !!t;
3544
3544
  }
3545
- }]), u;
3545
+ }]), d;
3546
3546
  })();
3547
- function gn(u, e, t) {
3547
+ function gn(d, e, t) {
3548
3548
  var s = {
3549
3549
  /**
3550
3550
  * Initializes autorunning of the glide.
@@ -3560,9 +3560,9 @@ function gn(u, e, t) {
3560
3560
  * @param {String} move
3561
3561
  */
3562
3562
  make: function(c) {
3563
- var d = this;
3564
- u.disabled || (!u.settings.waitForTransition || u.disable(), this.move = c, t.emit("run.before", this.move), this.calculate(), t.emit("run", this.move), e.Transition.after(function() {
3565
- d.isStart() && t.emit("run.start", d.move), d.isEnd() && t.emit("run.end", d.move), d.isOffset() && (d._o = !1, t.emit("run.offset", d.move)), t.emit("run.after", d.move), u.enable();
3563
+ var u = this;
3564
+ d.disabled || (!d.settings.waitForTransition || d.disable(), this.move = c, t.emit("run.before", this.move), this.calculate(), t.emit("run", this.move), e.Transition.after(function() {
3565
+ u.isStart() && t.emit("run.start", u.move), u.isEnd() && t.emit("run.end", u.move), u.isOffset() && (u._o = !1, t.emit("run.offset", u.move)), t.emit("run.after", u.move), d.enable();
3566
3566
  }));
3567
3567
  },
3568
3568
  /**
@@ -3571,31 +3571,31 @@ function gn(u, e, t) {
3571
3571
  * @return {Number|Undefined}
3572
3572
  */
3573
3573
  calculate: function() {
3574
- var c = this.move, d = this.length, o = c.steps, h = c.direction, p = 1;
3574
+ var c = this.move, u = this.length, o = c.steps, h = c.direction, p = 1;
3575
3575
  if (h === "=") {
3576
- if (u.settings.bound && $e(o) > d) {
3577
- u.index = d;
3576
+ if (d.settings.bound && $e(o) > u) {
3577
+ d.index = u;
3578
3578
  return;
3579
3579
  }
3580
- u.index = o;
3580
+ d.index = o;
3581
3581
  return;
3582
3582
  }
3583
3583
  if (h === ">" && o === ">") {
3584
- u.index = d;
3584
+ d.index = u;
3585
3585
  return;
3586
3586
  }
3587
3587
  if (h === "<" && o === "<") {
3588
- u.index = 0;
3588
+ d.index = 0;
3589
3589
  return;
3590
3590
  }
3591
- if (h === "|" && (p = u.settings.perView || 1), h === ">" || h === "|" && o === ">") {
3591
+ if (h === "|" && (p = d.settings.perView || 1), h === ">" || h === "|" && o === ">") {
3592
3592
  var g = i(p);
3593
- g > d && (this._o = !0), u.index = n(g, p);
3593
+ g > u && (this._o = !0), d.index = n(g, p);
3594
3594
  return;
3595
3595
  }
3596
3596
  if (h === "<" || h === "|" && o === "<") {
3597
3597
  var w = r(p);
3598
- w < 0 && (this._o = !0), u.index = a(w, p);
3598
+ w < 0 && (this._o = !0), d.index = a(w, p);
3599
3599
  return;
3600
3600
  }
3601
3601
  it("Invalid direction pattern [".concat(h).concat(o, "] has been used"));
@@ -3606,7 +3606,7 @@ function gn(u, e, t) {
3606
3606
  * @return {Boolean}
3607
3607
  */
3608
3608
  isStart: function() {
3609
- return u.index <= 0;
3609
+ return d.index <= 0;
3610
3610
  },
3611
3611
  /**
3612
3612
  * Checks if we are on the last slide.
@@ -3614,7 +3614,7 @@ function gn(u, e, t) {
3614
3614
  * @return {Boolean}
3615
3615
  */
3616
3616
  isEnd: function() {
3617
- return u.index >= this.length;
3617
+ return d.index >= this.length;
3618
3618
  },
3619
3619
  /**
3620
3620
  * Checks if we are making a offset run.
@@ -3632,27 +3632,27 @@ function gn(u, e, t) {
3632
3632
  * @return {Boolean}
3633
3633
  */
3634
3634
  isBound: function() {
3635
- return u.isType("slider") && u.settings.focusAt !== "center" && u.settings.bound;
3635
+ return d.isType("slider") && d.settings.focusAt !== "center" && d.settings.bound;
3636
3636
  }
3637
3637
  };
3638
3638
  function i(l) {
3639
- var c = u.index;
3640
- return u.isType("carousel") ? c + l : c + (l - c % l);
3639
+ var c = d.index;
3640
+ return d.isType("carousel") ? c + l : c + (l - c % l);
3641
3641
  }
3642
3642
  function n(l, c) {
3643
- var d = s.length;
3644
- return l <= d ? l : u.isType("carousel") ? l - (d + 1) : u.settings.rewind ? s.isBound() && !s.isEnd() ? d : 0 : s.isBound() ? d : Math.floor(d / c) * c;
3643
+ var u = s.length;
3644
+ return l <= u ? l : d.isType("carousel") ? l - (u + 1) : d.settings.rewind ? s.isBound() && !s.isEnd() ? u : 0 : s.isBound() ? u : Math.floor(u / c) * c;
3645
3645
  }
3646
3646
  function r(l) {
3647
- var c = u.index;
3648
- if (u.isType("carousel"))
3647
+ var c = d.index;
3648
+ if (d.isType("carousel"))
3649
3649
  return c - l;
3650
- var d = Math.ceil(c / l);
3651
- return (d - 1) * l;
3650
+ var u = Math.ceil(c / l);
3651
+ return (u - 1) * l;
3652
3652
  }
3653
3653
  function a(l, c) {
3654
- var d = s.length;
3655
- return l >= 0 ? l : u.isType("carousel") ? l + (d + 1) : u.settings.rewind ? s.isBound() && s.isStart() ? d : Math.floor(d / c) * c : 0;
3654
+ var u = s.length;
3655
+ return l >= 0 ? l : d.isType("carousel") ? l + (u + 1) : d.settings.rewind ? s.isBound() && s.isStart() ? u : Math.floor(u / c) * c : 0;
3656
3656
  }
3657
3657
  return ke(s, "move", {
3658
3658
  /**
@@ -3669,10 +3669,10 @@ function gn(u, e, t) {
3669
3669
  * @returns {Object}
3670
3670
  */
3671
3671
  set: function(c) {
3672
- var d = c.substr(1);
3672
+ var u = c.substr(1);
3673
3673
  this._m = {
3674
3674
  direction: c.substr(0, 1),
3675
- steps: d ? $e(d) ? $e(d) : d : 0
3675
+ steps: u ? $e(u) ? $e(u) : u : 0
3676
3676
  };
3677
3677
  }
3678
3678
  }), ke(s, "length", {
@@ -3683,8 +3683,8 @@ function gn(u, e, t) {
3683
3683
  * @return {Number}
3684
3684
  */
3685
3685
  get: function() {
3686
- var c = u.settings, d = e.Html.slides.length;
3687
- return this.isBound() ? d - 1 - ($e(c.perView) - 1) + $e(c.focusAt) : d - 1;
3686
+ var c = d.settings, u = e.Html.slides.length;
3687
+ return this.isBound() ? u - 1 - ($e(c.perView) - 1) + $e(c.focusAt) : u - 1;
3688
3688
  }
3689
3689
  }), ke(s, "offset", {
3690
3690
  /**
@@ -3697,17 +3697,17 @@ function gn(u, e, t) {
3697
3697
  }
3698
3698
  }), s;
3699
3699
  }
3700
- function Fi() {
3700
+ function Yi() {
3701
3701
  return (/* @__PURE__ */ new Date()).getTime();
3702
3702
  }
3703
- function Kt(u, e) {
3703
+ function Kt(d, e) {
3704
3704
  var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s, i, n, r, a = 0, l = function() {
3705
- a = t.leading === !1 ? 0 : Fi(), s = null, r = u.apply(i, n), s || (i = n = null);
3705
+ a = t.leading === !1 ? 0 : Yi(), s = null, r = d.apply(i, n), s || (i = n = null);
3706
3706
  }, c = function() {
3707
- var o = Fi();
3707
+ var o = Yi();
3708
3708
  !a && t.leading === !1 && (a = o);
3709
3709
  var h = e - (o - a);
3710
- return i = this, n = arguments, h <= 0 || h > e ? (s && (clearTimeout(s), s = null), a = o, r = u.apply(i, n), s || (i = n = null)) : !s && t.trailing !== !1 && (s = setTimeout(l, h)), r;
3710
+ return i = this, n = arguments, h <= 0 || h > e ? (s && (clearTimeout(s), s = null), a = o, r = d.apply(i, n), s || (i = n = null)) : !s && t.trailing !== !1 && (s = setTimeout(l, h)), r;
3711
3711
  };
3712
3712
  return c.cancel = function() {
3713
3713
  clearTimeout(s), a = 0, s = i = n = null;
@@ -3717,7 +3717,7 @@ var jt = {
3717
3717
  ltr: ["marginLeft", "marginRight"],
3718
3718
  rtl: ["marginRight", "marginLeft"]
3719
3719
  };
3720
- function mn(u, e, t) {
3720
+ function mn(d, e, t) {
3721
3721
  var s = {
3722
3722
  /**
3723
3723
  * Applies gaps between slides. First and last
@@ -3752,7 +3752,7 @@ function mn(u, e, t) {
3752
3752
  * @returns {Number}
3753
3753
  */
3754
3754
  get: function() {
3755
- return $e(u.settings.gap);
3755
+ return $e(d.settings.gap);
3756
3756
  }
3757
3757
  }), ke(s, "grow", {
3758
3758
  /**
@@ -3772,7 +3772,7 @@ function mn(u, e, t) {
3772
3772
  * @returns {Number}
3773
3773
  */
3774
3774
  get: function() {
3775
- var n = u.settings.perView;
3775
+ var n = d.settings.perView;
3776
3776
  return s.value * (n - 1) / n;
3777
3777
  }
3778
3778
  }), t.on(["build.after", "update"], Kt(function() {
@@ -3781,19 +3781,19 @@ function mn(u, e, t) {
3781
3781
  s.remove(e.Html.wrapper.children);
3782
3782
  }), s;
3783
3783
  }
3784
- function os(u) {
3785
- if (u && u.parentNode) {
3786
- for (var e = u.parentNode.firstChild, t = []; e; e = e.nextSibling)
3787
- e.nodeType === 1 && e !== u && t.push(e);
3784
+ function os(d) {
3785
+ if (d && d.parentNode) {
3786
+ for (var e = d.parentNode.firstChild, t = []; e; e = e.nextSibling)
3787
+ e.nodeType === 1 && e !== d && t.push(e);
3788
3788
  return t;
3789
3789
  }
3790
3790
  return [];
3791
3791
  }
3792
- function hi(u) {
3793
- return Array.prototype.slice.call(u);
3792
+ function hi(d) {
3793
+ return Array.prototype.slice.call(d);
3794
3794
  }
3795
3795
  var bn = '[data-glide-el="track"]';
3796
- function yn(u, e, t) {
3796
+ function yn(d, e, t) {
3797
3797
  var s = {
3798
3798
  /**
3799
3799
  * Setup slider HTML nodes.
@@ -3801,14 +3801,14 @@ function yn(u, e, t) {
3801
3801
  * @param {Glide} glide
3802
3802
  */
3803
3803
  mount: function() {
3804
- this.root = u.selector, this.track = this.root.querySelector(bn), this.collectSlides();
3804
+ this.root = d.selector, this.track = this.root.querySelector(bn), this.collectSlides();
3805
3805
  },
3806
3806
  /**
3807
3807
  * Collect slides
3808
3808
  */
3809
3809
  collectSlides: function() {
3810
3810
  this.slides = hi(this.wrapper.children).filter(function(n) {
3811
- return !n.classList.contains(u.settings.classes.slide.clone);
3811
+ return !n.classList.contains(d.settings.classes.slide.clone);
3812
3812
  });
3813
3813
  }
3814
3814
  };
@@ -3859,7 +3859,7 @@ function yn(u, e, t) {
3859
3859
  s.collectSlides();
3860
3860
  }), s;
3861
3861
  }
3862
- function vn(u, e, t) {
3862
+ function vn(d, e, t) {
3863
3863
  var s = {
3864
3864
  /**
3865
3865
  * Setups how much to peek based on settings.
@@ -3867,7 +3867,7 @@ function vn(u, e, t) {
3867
3867
  * @return {Void}
3868
3868
  */
3869
3869
  mount: function() {
3870
- this.value = u.settings.peek;
3870
+ this.value = d.settings.peek;
3871
3871
  }
3872
3872
  };
3873
3873
  return ke(s, "value", {
@@ -3895,14 +3895,14 @@ function vn(u, e, t) {
3895
3895
  * @returns {Number}
3896
3896
  */
3897
3897
  get: function() {
3898
- var n = s.value, r = u.settings.perView;
3898
+ var n = s.value, r = d.settings.perView;
3899
3899
  return pt(n) ? n.before / r + n.after / r : n * 2 / r;
3900
3900
  }
3901
3901
  }), t.on(["resize", "update"], function() {
3902
3902
  s.mount();
3903
3903
  }), s;
3904
3904
  }
3905
- function wn(u, e, t) {
3905
+ function wn(d, e, t) {
3906
3906
  var s = {
3907
3907
  /**
3908
3908
  * Constructs move component.
@@ -3953,7 +3953,7 @@ function wn(u, e, t) {
3953
3953
  * @return {Number}
3954
3954
  */
3955
3955
  get: function() {
3956
- return e.Sizes.slideWidth * u.index;
3956
+ return e.Sizes.slideWidth * d.index;
3957
3957
  }
3958
3958
  }), ke(s, "value", {
3959
3959
  /**
@@ -3969,7 +3969,7 @@ function wn(u, e, t) {
3969
3969
  s.make();
3970
3970
  }), s;
3971
3971
  }
3972
- function xn(u, e, t) {
3972
+ function xn(d, e, t) {
3973
3973
  var s = {
3974
3974
  /**
3975
3975
  * Setups dimensions of slides.
@@ -4033,7 +4033,7 @@ function xn(u, e, t) {
4033
4033
  * @return {Number}
4034
4034
  */
4035
4035
  get: function() {
4036
- return s.width / u.settings.perView - e.Peek.reductor - e.Gaps.reductor;
4036
+ return s.width / d.settings.perView - e.Peek.reductor - e.Gaps.reductor;
4037
4037
  }
4038
4038
  }), t.on(["build.before", "resize", "update"], function() {
4039
4039
  s.setupSlides(), s.setupWrapper();
@@ -4041,7 +4041,7 @@ function xn(u, e, t) {
4041
4041
  s.remove();
4042
4042
  }), s;
4043
4043
  }
4044
- function _n(u, e, t) {
4044
+ function _n(d, e, t) {
4045
4045
  var s = {
4046
4046
  /**
4047
4047
  * Init glide building. Adds classes, sets
@@ -4058,7 +4058,7 @@ function _n(u, e, t) {
4058
4058
  * @return {Void}
4059
4059
  */
4060
4060
  typeClass: function() {
4061
- e.Html.root.classList.add(u.settings.classes.type[u.settings.type]);
4061
+ e.Html.root.classList.add(d.settings.classes.type[d.settings.type]);
4062
4062
  },
4063
4063
  /**
4064
4064
  * Sets active class to current slide.
@@ -4066,7 +4066,7 @@ function _n(u, e, t) {
4066
4066
  * @return {Void}
4067
4067
  */
4068
4068
  activeClass: function() {
4069
- var n = u.settings.classes, r = e.Html.slides[u.index];
4069
+ var n = d.settings.classes, r = e.Html.slides[d.index];
4070
4070
  r && (r.classList.add(n.slide.active), os(r).forEach(function(a) {
4071
4071
  a.classList.remove(n.slide.active);
4072
4072
  }));
@@ -4077,8 +4077,8 @@ function _n(u, e, t) {
4077
4077
  * @return {Void}
4078
4078
  */
4079
4079
  removeClasses: function() {
4080
- var n = u.settings.classes, r = n.type, a = n.slide;
4081
- e.Html.root.classList.remove(r[u.settings.type]), e.Html.slides.forEach(function(l) {
4080
+ var n = d.settings.classes, r = n.type, a = n.slide;
4081
+ e.Html.root.classList.remove(r[d.settings.type]), e.Html.slides.forEach(function(l) {
4082
4082
  l.classList.remove(a.active);
4083
4083
  });
4084
4084
  }
@@ -4091,13 +4091,13 @@ function _n(u, e, t) {
4091
4091
  s.activeClass();
4092
4092
  }), s;
4093
4093
  }
4094
- function kn(u, e, t) {
4094
+ function kn(d, e, t) {
4095
4095
  var s = {
4096
4096
  /**
4097
4097
  * Create pattern map and collect slides to be cloned.
4098
4098
  */
4099
4099
  mount: function() {
4100
- this.items = [], u.isType("carousel") && (this.items = this.collect());
4100
+ this.items = [], d.isType("carousel") && (this.items = this.collect());
4101
4101
  },
4102
4102
  /**
4103
4103
  * Collect clones with pattern.
@@ -4105,9 +4105,9 @@ function kn(u, e, t) {
4105
4105
  * @return {[]}
4106
4106
  */
4107
4107
  collect: function() {
4108
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], r = e.Html.slides, a = u.settings, l = a.perView, c = a.classes, d = a.cloningRatio;
4108
+ var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], r = e.Html.slides, a = d.settings, l = a.perView, c = a.classes, u = a.cloningRatio;
4109
4109
  if (r.length > 0)
4110
- for (var o = +!!u.settings.peek, h = l + o + Math.round(l / 2), p = r.slice(0, h).reverse(), g = r.slice(h * -1), w = 0; w < Math.max(d, Math.floor(l / r.length)); w++) {
4110
+ for (var o = +!!d.settings.peek, h = l + o + Math.round(l / 2), p = r.slice(0, h).reverse(), g = r.slice(h * -1), w = 0; w < Math.max(u, Math.floor(l / r.length)); w++) {
4111
4111
  for (var S = 0; S < p.length; S++) {
4112
4112
  var b = p[S].cloneNode(!0);
4113
4113
  b.classList.add(c.slide.clone), n.push(b);
@@ -4125,10 +4125,10 @@ function kn(u, e, t) {
4125
4125
  * @return {Void}
4126
4126
  */
4127
4127
  append: function() {
4128
- for (var n = this.items, r = e.Html, a = r.wrapper, l = r.slides, c = Math.floor(n.length / 2), d = n.slice(0, c).reverse(), o = n.slice(c * -1).reverse(), h = "".concat(e.Sizes.slideWidth, "px"), p = 0; p < o.length; p++)
4128
+ for (var n = this.items, r = e.Html, a = r.wrapper, l = r.slides, c = Math.floor(n.length / 2), u = n.slice(0, c).reverse(), o = n.slice(c * -1).reverse(), h = "".concat(e.Sizes.slideWidth, "px"), p = 0; p < o.length; p++)
4129
4129
  a.appendChild(o[p]);
4130
- for (var g = 0; g < d.length; g++)
4131
- a.insertBefore(d[g], l[0]);
4130
+ for (var g = 0; g < u.length; g++)
4131
+ a.insertBefore(u[g], l[0]);
4132
4132
  for (var w = 0; w < n.length; w++)
4133
4133
  n[w].style.width = h;
4134
4134
  },
@@ -4154,17 +4154,17 @@ function kn(u, e, t) {
4154
4154
  }), t.on("update", function() {
4155
4155
  s.remove(), s.mount(), s.append();
4156
4156
  }), t.on("build.before", function() {
4157
- u.isType("carousel") && s.append();
4157
+ d.isType("carousel") && s.append();
4158
4158
  }), t.on("destroy", function() {
4159
4159
  s.remove();
4160
4160
  }), s;
4161
4161
  }
4162
4162
  var st = /* @__PURE__ */ (function() {
4163
- function u() {
4163
+ function d() {
4164
4164
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4165
- Zt(this, u), this.listeners = e;
4165
+ Zt(this, d), this.listeners = e;
4166
4166
  }
4167
- return Qt(u, [{
4167
+ return Qt(d, [{
4168
4168
  key: "on",
4169
4169
  value: function(t, s, i) {
4170
4170
  var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
@@ -4198,9 +4198,9 @@ var st = /* @__PURE__ */ (function() {
4198
4198
  value: function() {
4199
4199
  delete this.listeners;
4200
4200
  }
4201
- }]), u;
4201
+ }]), d;
4202
4202
  })();
4203
- function Sn(u, e, t) {
4203
+ function Sn(d, e, t) {
4204
4204
  var s = new st(), i = {
4205
4205
  /**
4206
4206
  * Initializes window bindings.
@@ -4217,7 +4217,7 @@ function Sn(u, e, t) {
4217
4217
  bind: function() {
4218
4218
  s.on("resize", window, Kt(function() {
4219
4219
  t.emit("resize");
4220
- }, u.settings.throttle));
4220
+ }, d.settings.throttle));
4221
4221
  },
4222
4222
  /**
4223
4223
  * Unbinds listeners from the window.
@@ -4237,7 +4237,7 @@ var En = ["ltr", "rtl"], Tn = {
4237
4237
  "<": ">",
4238
4238
  "=": "="
4239
4239
  };
4240
- function Ln(u, e, t) {
4240
+ function Ln(d, e, t) {
4241
4241
  var s = {
4242
4242
  /**
4243
4243
  * Setups gap value based on settings.
@@ -4245,7 +4245,7 @@ function Ln(u, e, t) {
4245
4245
  * @return {Void}
4246
4246
  */
4247
4247
  mount: function() {
4248
- this.value = u.settings.direction;
4248
+ this.value = d.settings.direction;
4249
4249
  },
4250
4250
  /**
4251
4251
  * Resolves pattern based on direction value
@@ -4272,7 +4272,7 @@ function Ln(u, e, t) {
4272
4272
  * @return {Void}
4273
4273
  */
4274
4274
  addClass: function() {
4275
- e.Html.root.classList.add(u.settings.classes.direction[this.value]);
4275
+ e.Html.root.classList.add(d.settings.classes.direction[this.value]);
4276
4276
  },
4277
4277
  /**
4278
4278
  * Removes direction class from the root HTML element.
@@ -4280,7 +4280,7 @@ function Ln(u, e, t) {
4280
4280
  * @return {Void}
4281
4281
  */
4282
4282
  removeClass: function() {
4283
- e.Html.root.classList.remove(u.settings.classes.direction[this.value]);
4283
+ e.Html.root.classList.remove(d.settings.classes.direction[this.value]);
4284
4284
  }
4285
4285
  };
4286
4286
  return ke(s, "value", {
@@ -4309,7 +4309,7 @@ function Ln(u, e, t) {
4309
4309
  s.addClass();
4310
4310
  }), s;
4311
4311
  }
4312
- function Cn(u, e) {
4312
+ function Cn(d, e) {
4313
4313
  return {
4314
4314
  /**
4315
4315
  * Negates the passed translate if glide is in RTL option.
@@ -4322,7 +4322,7 @@ function Cn(u, e) {
4322
4322
  }
4323
4323
  };
4324
4324
  }
4325
- function An(u, e) {
4325
+ function An(d, e) {
4326
4326
  return {
4327
4327
  /**
4328
4328
  * Modifies passed translate value with number in the `gap` settings.
@@ -4336,7 +4336,7 @@ function An(u, e) {
4336
4336
  }
4337
4337
  };
4338
4338
  }
4339
- function On(u, e) {
4339
+ function On(d, e) {
4340
4340
  return {
4341
4341
  /**
4342
4342
  * Adds to the passed translate width of the half of clones.
@@ -4349,7 +4349,7 @@ function On(u, e) {
4349
4349
  }
4350
4350
  };
4351
4351
  }
4352
- function Mn(u, e) {
4352
+ function Mn(d, e) {
4353
4353
  return {
4354
4354
  /**
4355
4355
  * Modifies passed translate value with a `peek` setting.
@@ -4358,7 +4358,7 @@ function Mn(u, e) {
4358
4358
  * @return {Number}
4359
4359
  */
4360
4360
  modify: function(s) {
4361
- if (u.settings.focusAt >= 0) {
4361
+ if (d.settings.focusAt >= 0) {
4362
4362
  var i = e.Peek.value;
4363
4363
  return pt(i) ? s - i.before : s - i;
4364
4364
  }
@@ -4366,7 +4366,7 @@ function Mn(u, e) {
4366
4366
  }
4367
4367
  };
4368
4368
  }
4369
- function qn(u, e) {
4369
+ function qn(d, e) {
4370
4370
  return {
4371
4371
  /**
4372
4372
  * Modifies passed translate value with index in the `focusAt` setting.
@@ -4375,13 +4375,13 @@ function qn(u, e) {
4375
4375
  * @return {Number}
4376
4376
  */
4377
4377
  modify: function(s) {
4378
- var i = e.Gaps.value, n = e.Sizes.width, r = u.settings.focusAt, a = e.Sizes.slideWidth;
4378
+ var i = e.Gaps.value, n = e.Sizes.width, r = d.settings.focusAt, a = e.Sizes.slideWidth;
4379
4379
  return r === "center" ? s - (n / 2 - a / 2) : s - a * r - i * r;
4380
4380
  }
4381
4381
  };
4382
4382
  }
4383
- function Rn(u, e, t) {
4384
- var s = [An, On, Mn, qn].concat(u._t, [Cn]);
4383
+ function Rn(d, e, t) {
4384
+ var s = [An, On, Mn, qn].concat(d._t, [Cn]);
4385
4385
  return {
4386
4386
  /**
4387
4387
  * Piplines translate value with registered transformers.
@@ -4392,13 +4392,13 @@ function Rn(u, e, t) {
4392
4392
  mutate: function(n) {
4393
4393
  for (var r = 0; r < s.length; r++) {
4394
4394
  var a = s[r];
4395
- Wt(a) && Wt(a().modify) ? n = a(u, e, t).modify(n) : it("Transformer should be a function that returns an object with `modify()` method");
4395
+ Wt(a) && Wt(a().modify) ? n = a(d, e, t).modify(n) : it("Transformer should be a function that returns an object with `modify()` method");
4396
4396
  }
4397
4397
  return n;
4398
4398
  }
4399
4399
  };
4400
4400
  }
4401
- function In(u, e, t) {
4401
+ function In(d, e, t) {
4402
4402
  var s = {
4403
4403
  /**
4404
4404
  * Sets value of translate on HTML element.
@@ -4407,7 +4407,7 @@ function In(u, e, t) {
4407
4407
  * @return {Void}
4408
4408
  */
4409
4409
  set: function(n) {
4410
- var r = Rn(u, e).mutate(n), a = "translate3d(".concat(-1 * r, "px, 0px, 0px)");
4410
+ var r = Rn(d, e).mutate(n), a = "translate3d(".concat(-1 * r, "px, 0px, 0px)");
4411
4411
  e.Html.wrapper.style.mozTransform = a, e.Html.wrapper.style.webkitTransform = a, e.Html.wrapper.style.transform = a;
4412
4412
  },
4413
4413
  /**
@@ -4422,22 +4422,22 @@ function In(u, e, t) {
4422
4422
  * @return {number}
4423
4423
  */
4424
4424
  getStartIndex: function() {
4425
- var n = e.Sizes.length, r = u.index, a = u.settings.perView;
4425
+ var n = e.Sizes.length, r = d.index, a = d.settings.perView;
4426
4426
  return e.Run.isOffset(">") || e.Run.isOffset("|>") ? n + (r - a) : (r + a) % n;
4427
4427
  },
4428
4428
  /**
4429
4429
  * @return {number}
4430
4430
  */
4431
4431
  getTravelDistance: function() {
4432
- var n = e.Sizes.slideWidth * u.settings.perView;
4432
+ var n = e.Sizes.slideWidth * d.settings.perView;
4433
4433
  return e.Run.isOffset(">") || e.Run.isOffset("|>") ? n * -1 : n;
4434
4434
  }
4435
4435
  };
4436
4436
  return t.on("move", function(i) {
4437
- if (!u.isType("carousel") || !e.Run.isOffset())
4437
+ if (!d.isType("carousel") || !e.Run.isOffset())
4438
4438
  return s.set(i.movement);
4439
4439
  e.Transition.after(function() {
4440
- t.emit("translate.jump"), s.set(e.Sizes.slideWidth * u.index);
4440
+ t.emit("translate.jump"), s.set(e.Sizes.slideWidth * d.index);
4441
4441
  });
4442
4442
  var n = e.Sizes.slideWidth * e.Translate.getStartIndex();
4443
4443
  return s.set(n - e.Translate.getTravelDistance());
@@ -4445,7 +4445,7 @@ function In(u, e, t) {
4445
4445
  s.remove();
4446
4446
  }), s;
4447
4447
  }
4448
- function jn(u, e, t) {
4448
+ function jn(d, e, t) {
4449
4449
  var s = !1, i = {
4450
4450
  /**
4451
4451
  * Composes string of the CSS transition.
@@ -4454,7 +4454,7 @@ function jn(u, e, t) {
4454
4454
  * @return {String}
4455
4455
  */
4456
4456
  compose: function(r) {
4457
- var a = u.settings;
4457
+ var a = d.settings;
4458
4458
  return s ? "".concat(r, " 0ms ").concat(a.animationTimingFunc) : "".concat(r, " ").concat(this.duration, "ms ").concat(a.animationTimingFunc);
4459
4459
  },
4460
4460
  /**
@@ -4511,8 +4511,8 @@ function jn(u, e, t) {
4511
4511
  * @return {Number}
4512
4512
  */
4513
4513
  get: function() {
4514
- var r = u.settings;
4515
- return u.isType("slider") && e.Run.offset ? r.rewindDuration : r.animationDuration;
4514
+ var r = d.settings;
4515
+ return d.isType("slider") && e.Run.offset ? r.rewindDuration : r.animationDuration;
4516
4516
  }
4517
4517
  }), t.on("move", function() {
4518
4518
  i.set();
@@ -4535,7 +4535,7 @@ try {
4535
4535
  } catch {
4536
4536
  }
4537
4537
  var pi = ls, Nt = ["touchstart", "mousedown"], Gi = ["touchmove", "mousemove"], Xi = ["touchend", "touchcancel", "mouseup", "mouseleave"], Ji = ["mousedown", "mousemove", "mouseup", "mouseleave"];
4538
- function Nn(u, e, t) {
4538
+ function Nn(d, e, t) {
4539
4539
  var s = new st(), i = 0, n = 0, r = 0, a = !1, l = pi ? {
4540
4540
  passive: !0
4541
4541
  } : !1, c = {
@@ -4554,7 +4554,7 @@ function Nn(u, e, t) {
4554
4554
  * @return {Void}
4555
4555
  */
4556
4556
  start: function(o) {
4557
- if (!a && !u.disabled) {
4557
+ if (!a && !d.disabled) {
4558
4558
  this.disable();
4559
4559
  var h = this.touches(o);
4560
4560
  i = null, n = $e(h.pageX), r = $e(h.pageY), this.bindSwipeMove(), this.bindSwipeEnd(), t.emit("swipe.start");
@@ -4566,8 +4566,8 @@ function Nn(u, e, t) {
4566
4566
  * @param {Object} event
4567
4567
  */
4568
4568
  move: function(o) {
4569
- if (!u.disabled) {
4570
- var h = u.settings, p = h.touchAngle, g = h.touchRatio, w = h.classes, S = this.touches(o), b = $e(S.pageX) - n, x = $e(S.pageY) - r, m = Math.abs(b << 2), v = Math.abs(x << 2), _ = Math.sqrt(m + v), f = Math.sqrt(v);
4569
+ if (!d.disabled) {
4570
+ var h = d.settings, p = h.touchAngle, g = h.touchRatio, w = h.classes, S = this.touches(o), b = $e(S.pageX) - n, x = $e(S.pageY) - r, m = Math.abs(b << 2), v = Math.abs(x << 2), _ = Math.sqrt(m + v), f = Math.sqrt(v);
4571
4571
  if (i = Math.asin(f / _), i * 180 / Math.PI < p)
4572
4572
  o.stopPropagation(), e.Move.make(b * un(g)), e.Html.root.classList.add(w.dragging), t.emit("swipe.move");
4573
4573
  else
@@ -4581,8 +4581,8 @@ function Nn(u, e, t) {
4581
4581
  * @return {Void}
4582
4582
  */
4583
4583
  end: function(o) {
4584
- if (!u.disabled) {
4585
- var h = u.settings, p = h.perSwipe, g = h.touchAngle, w = h.classes, S = this.touches(o), b = this.threshold(o), x = S.pageX - n, m = i * 180 / Math.PI;
4584
+ if (!d.disabled) {
4585
+ var h = d.settings, p = h.perSwipe, g = h.touchAngle, w = h.classes, S = this.touches(o), b = this.threshold(o), x = S.pageX - n, m = i * 180 / Math.PI;
4586
4586
  this.enable(), x > b && m < g ? e.Run.make(e.Direction.resolve("".concat(p, "<"))) : x < -b && m < g ? e.Run.make(e.Direction.resolve("".concat(p, ">"))) : e.Move.make(), e.Html.root.classList.remove(w.dragging), this.unbindSwipeMove(), this.unbindSwipeEnd(), t.emit("swipe.end");
4587
4587
  }
4588
4588
  },
@@ -4592,7 +4592,7 @@ function Nn(u, e, t) {
4592
4592
  * @return {Void}
4593
4593
  */
4594
4594
  bindSwipeStart: function() {
4595
- var o = this, h = u.settings, p = h.swipeThreshold, g = h.dragThreshold;
4595
+ var o = this, h = d.settings, p = h.swipeThreshold, g = h.dragThreshold;
4596
4596
  p && s.on(Nt[0], e.Html.wrapper, function(w) {
4597
4597
  o.start(w);
4598
4598
  }, l), g && s.on(Nt[1], e.Html.wrapper, function(w) {
@@ -4616,7 +4616,7 @@ function Nn(u, e, t) {
4616
4616
  var o = this;
4617
4617
  s.on(Gi, e.Html.wrapper, Kt(function(h) {
4618
4618
  o.move(h);
4619
- }, u.settings.throttle), l);
4619
+ }, d.settings.throttle), l);
4620
4620
  },
4621
4621
  /**
4622
4622
  * Unbinds swipe's moving event.
@@ -4659,7 +4659,7 @@ function Nn(u, e, t) {
4659
4659
  * @return {Number}
4660
4660
  */
4661
4661
  threshold: function(o) {
4662
- var h = u.settings;
4662
+ var h = d.settings;
4663
4663
  return Ji.indexOf(o.type) > -1 ? h.dragThreshold : h.swipeThreshold;
4664
4664
  },
4665
4665
  /**
@@ -4680,12 +4680,12 @@ function Nn(u, e, t) {
4680
4680
  }
4681
4681
  };
4682
4682
  return t.on("build.after", function() {
4683
- e.Html.root.classList.add(u.settings.classes.swipeable);
4683
+ e.Html.root.classList.add(d.settings.classes.swipeable);
4684
4684
  }), t.on("destroy", function() {
4685
4685
  c.unbindSwipeStart(), c.unbindSwipeMove(), c.unbindSwipeEnd(), s.destroy();
4686
4686
  }), c;
4687
4687
  }
4688
- function Pn(u, e, t) {
4688
+ function Pn(d, e, t) {
4689
4689
  var s = new st(), i = {
4690
4690
  /**
4691
4691
  * Binds listener to glide wrapper.
@@ -4724,7 +4724,7 @@ function Pn(u, e, t) {
4724
4724
  i.unbind(), s.destroy();
4725
4725
  }), i;
4726
4726
  }
4727
- function Dn(u, e, t) {
4727
+ function Dn(d, e, t) {
4728
4728
  var s = new st(), i = !1, n = !1, r = {
4729
4729
  /**
4730
4730
  * Setups a initial state of anchors component.
@@ -4806,7 +4806,7 @@ function Dn(u, e, t) {
4806
4806
  }), r;
4807
4807
  }
4808
4808
  var $n = '[data-glide-el="controls[nav]"]', vi = '[data-glide-el^="controls"]', Hn = "".concat(vi, ' [data-glide-dir*="<"]'), zn = "".concat(vi, ' [data-glide-dir*=">"]');
4809
- function Vn(u, e, t) {
4809
+ function Vn(d, e, t) {
4810
4810
  var s = new st(), i = pi ? {
4811
4811
  passive: !0
4812
4812
  } : !1, n = {
@@ -4847,9 +4847,9 @@ function Vn(u, e, t) {
4847
4847
  * @return {Void}
4848
4848
  */
4849
4849
  addClass: function(a) {
4850
- var l = u.settings, c = a[u.index];
4851
- c && (c.classList.add(l.classes.nav.active), os(c).forEach(function(d) {
4852
- d.classList.remove(l.classes.nav.active);
4850
+ var l = d.settings, c = a[d.index];
4851
+ c && (c.classList.add(l.classes.nav.active), os(c).forEach(function(u) {
4852
+ u.classList.remove(l.classes.nav.active);
4853
4853
  }));
4854
4854
  },
4855
4855
  /**
@@ -4859,16 +4859,16 @@ function Vn(u, e, t) {
4859
4859
  * @return {Void}
4860
4860
  */
4861
4861
  removeClass: function(a) {
4862
- var l = a[u.index];
4863
- l?.classList.remove(u.settings.classes.nav.active);
4862
+ var l = a[d.index];
4863
+ l?.classList.remove(d.settings.classes.nav.active);
4864
4864
  },
4865
4865
  /**
4866
4866
  * Calculates, removes or adds `Glide.settings.classes.disabledArrow` class on the control arrows
4867
4867
  */
4868
4868
  setArrowState: function() {
4869
- if (!u.settings.rewind) {
4869
+ if (!d.settings.rewind) {
4870
4870
  var a = n._arrowControls.next, l = n._arrowControls.previous;
4871
- this.resetArrowState(a, l), u.index === 0 && this.disableArrow(l), u.index === e.Run.length && this.disableArrow(a);
4871
+ this.resetArrowState(a, l), d.index === 0 && this.disableArrow(l), d.index === e.Run.length && this.disableArrow(a);
4872
4872
  }
4873
4873
  },
4874
4874
  /**
@@ -4877,8 +4877,8 @@ function Vn(u, e, t) {
4877
4877
  * @param {NodeList[]} lists
4878
4878
  */
4879
4879
  resetArrowState: function() {
4880
- for (var a = u.settings, l = arguments.length, c = new Array(l), d = 0; d < l; d++)
4881
- c[d] = arguments[d];
4880
+ for (var a = d.settings, l = arguments.length, c = new Array(l), u = 0; u < l; u++)
4881
+ c[u] = arguments[u];
4882
4882
  c.forEach(function(o) {
4883
4883
  hi(o).forEach(function(h) {
4884
4884
  h.classList.remove(a.classes.arrow.disabled);
@@ -4891,8 +4891,8 @@ function Vn(u, e, t) {
4891
4891
  * @param {NodeList[]} lists
4892
4892
  */
4893
4893
  disableArrow: function() {
4894
- for (var a = u.settings, l = arguments.length, c = new Array(l), d = 0; d < l; d++)
4895
- c[d] = arguments[d];
4894
+ for (var a = d.settings, l = arguments.length, c = new Array(l), u = 0; u < l; u++)
4895
+ c[u] = arguments[u];
4896
4896
  c.forEach(function(o) {
4897
4897
  hi(o).forEach(function(h) {
4898
4898
  h.classList.add(a.classes.arrow.disabled);
@@ -4968,7 +4968,7 @@ function Vn(u, e, t) {
4968
4968
  n.removeBindings(), n.removeActive(), s.destroy();
4969
4969
  }), n;
4970
4970
  }
4971
- function Bn(u, e, t) {
4971
+ function Bn(d, e, t) {
4972
4972
  var s = new st(), i = {
4973
4973
  /**
4974
4974
  * Binds keyboard events on component mount.
@@ -4976,7 +4976,7 @@ function Bn(u, e, t) {
4976
4976
  * @return {Void}
4977
4977
  */
4978
4978
  mount: function() {
4979
- u.settings.keyboard && this.bind();
4979
+ d.settings.keyboard && this.bind();
4980
4980
  },
4981
4981
  /**
4982
4982
  * Adds keyboard press events.
@@ -5001,7 +5001,7 @@ function Bn(u, e, t) {
5001
5001
  * @return {Void}
5002
5002
  */
5003
5003
  press: function(r) {
5004
- var a = u.settings.perSwipe, l = {
5004
+ var a = d.settings.perSwipe, l = {
5005
5005
  ArrowRight: ">",
5006
5006
  ArrowLeft: "<"
5007
5007
  };
@@ -5016,7 +5016,7 @@ function Bn(u, e, t) {
5016
5016
  s.destroy();
5017
5017
  }), i;
5018
5018
  }
5019
- function Un(u, e, t) {
5019
+ function Un(d, e, t) {
5020
5020
  var s = new st(), i = {
5021
5021
  /**
5022
5022
  * Initializes autoplaying and events.
@@ -5024,7 +5024,7 @@ function Un(u, e, t) {
5024
5024
  * @return {Void}
5025
5025
  */
5026
5026
  mount: function() {
5027
- this.enable(), this.start(), u.settings.hoverpause && this.bind();
5027
+ this.enable(), this.start(), d.settings.hoverpause && this.bind();
5028
5028
  },
5029
5029
  /**
5030
5030
  * Enables autoplaying
@@ -5050,7 +5050,7 @@ function Un(u, e, t) {
5050
5050
  */
5051
5051
  start: function() {
5052
5052
  var r = this;
5053
- this._e && (this.enable(), u.settings.autoplay && as(this._i) && (this._i = setInterval(function() {
5053
+ this._e && (this.enable(), d.settings.autoplay && as(this._i) && (this._i = setInterval(function() {
5054
5054
  r.stop(), e.Run.make(">"), r.start(), t.emit("autoplay");
5055
5055
  }, this.time)));
5056
5056
  },
@@ -5092,8 +5092,8 @@ function Un(u, e, t) {
5092
5092
  * @return {Number}
5093
5093
  */
5094
5094
  get: function() {
5095
- var r = e.Html.slides[u.index].getAttribute("data-glide-autoplay");
5096
- return $e(r || u.settings.autoplay);
5095
+ var r = e.Html.slides[d.index].getAttribute("data-glide-autoplay");
5096
+ return $e(r || d.settings.autoplay);
5097
5097
  }
5098
5098
  }), t.on(["destroy", "update"], function() {
5099
5099
  i.unbind();
@@ -5111,11 +5111,11 @@ function Un(u, e, t) {
5111
5111
  s.destroy();
5112
5112
  }), i;
5113
5113
  }
5114
- function Zi(u) {
5115
- return pt(u) ? hn(u) : (it("Breakpoints option must be an object"), {});
5114
+ function Zi(d) {
5115
+ return pt(d) ? hn(d) : (it("Breakpoints option must be an object"), {});
5116
5116
  }
5117
- function Yn(u, e, t) {
5118
- var s = new st(), i = u.settings, n = Zi(i.breakpoints), r = Object.assign({}, i), a = {
5117
+ function Fn(d, e, t) {
5118
+ var s = new st(), i = d.settings, n = Zi(i.breakpoints), r = Object.assign({}, i), a = {
5119
5119
  /**
5120
5120
  * Matches settings for currectly matching media breakpoint.
5121
5121
  *
@@ -5124,22 +5124,22 @@ function Yn(u, e, t) {
5124
5124
  */
5125
5125
  match: function(c) {
5126
5126
  if (typeof window.matchMedia < "u") {
5127
- for (var d in c)
5128
- if (c.hasOwnProperty(d) && window.matchMedia("(max-width: ".concat(d, "px)")).matches)
5129
- return c[d];
5127
+ for (var u in c)
5128
+ if (c.hasOwnProperty(u) && window.matchMedia("(max-width: ".concat(u, "px)")).matches)
5129
+ return c[u];
5130
5130
  }
5131
5131
  return r;
5132
5132
  }
5133
5133
  };
5134
5134
  return Object.assign(i, a.match(n)), s.on("resize", window, Kt(function() {
5135
- u.settings = di(i, a.match(n));
5136
- }, u.settings.throttle)), t.on("update", function() {
5135
+ d.settings = di(i, a.match(n));
5136
+ }, d.settings.throttle)), t.on("update", function() {
5137
5137
  n = Zi(n), r = Object.assign({}, i);
5138
5138
  }), t.on("destroy", function() {
5139
5139
  s.off("resize", window);
5140
5140
  }), a;
5141
5141
  }
5142
- var Fn = {
5142
+ var Yn = {
5143
5143
  // Required
5144
5144
  Html: yn,
5145
5145
  Translate: In,
@@ -5160,9 +5160,9 @@ var Fn = {
5160
5160
  Controls: Vn,
5161
5161
  Keyboard: Bn,
5162
5162
  Autoplay: Un,
5163
- Breakpoints: Yn
5164
- }, Wn = /* @__PURE__ */ (function(u) {
5165
- sn(t, u);
5163
+ Breakpoints: Fn
5164
+ }, Wn = /* @__PURE__ */ (function(d) {
5165
+ sn(t, d);
5166
5166
  var e = on(t);
5167
5167
  function t() {
5168
5168
  return Zt(this, t), e.apply(this, arguments);
@@ -5171,7 +5171,7 @@ var Fn = {
5171
5171
  key: "mount",
5172
5172
  value: function() {
5173
5173
  var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5174
- return Bt(ht(t.prototype), "mount", this).call(this, Object.assign({}, Fn, i));
5174
+ return Bt(ht(t.prototype), "mount", this).call(this, Object.assign({}, Yn, i));
5175
5175
  }
5176
5176
  }]), t;
5177
5177
  })(fn);
@@ -5190,12 +5190,12 @@ function wi() {
5190
5190
  };
5191
5191
  }
5192
5192
  let ot = wi();
5193
- function cs(u) {
5194
- ot = u;
5193
+ function cs(d) {
5194
+ ot = d;
5195
5195
  }
5196
5196
  const bt = { exec: () => null };
5197
- function de(u, e = "") {
5198
- let t = typeof u == "string" ? u : u.source;
5197
+ function de(d, e = "") {
5198
+ let t = typeof d == "string" ? d : d.source;
5199
5199
  const s = {
5200
5200
  replace: (i, n) => {
5201
5201
  let r = typeof n == "string" ? n : n.source;
@@ -5256,12 +5256,12 @@ const Be = {
5256
5256
  spaceLine: /^ +$/gm,
5257
5257
  notSpaceStart: /^\S*/,
5258
5258
  endingNewline: /\n$/,
5259
- listItemRegex: (u) => new RegExp(`^( {0,3}${u})((?:[ ][^\\n]*)?(?:\\n|$))`),
5260
- nextBulletRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
5261
- hrRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
5262
- fencesBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}(?:\`\`\`|~~~)`),
5263
- headingBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}#`),
5264
- htmlBeginRegex: (u) => new RegExp(`^ {0,${Math.min(3, u - 1)}}<(?:[a-z].*>|!--)`, "i")
5259
+ listItemRegex: (d) => new RegExp(`^( {0,3}${d})((?:[ ][^\\n]*)?(?:\\n|$))`),
5260
+ nextBulletRegex: (d) => new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),
5261
+ hrRegex: (d) => new RegExp(`^ {0,${Math.min(3, d - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),
5262
+ fencesBeginRegex: (d) => new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:\`\`\`|~~~)`),
5263
+ headingBeginRegex: (d) => new RegExp(`^ {0,${Math.min(3, d - 1)}}#`),
5264
+ htmlBeginRegex: (d) => new RegExp(`^ {0,${Math.min(3, d - 1)}}<(?:[a-z].*>|!--)`, "i")
5265
5265
  }, Gn = /^(?:[ \t]*(?:\n|$))+/, Xn = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Jn = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, yt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Zn = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, xi = /(?:[*+-]|\d{1,9}[.)])/, us = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ds = de(us).replace(/bull/g, xi).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Qn = de(us).replace(/bull/g, xi).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), _i = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Kn = /^[^\n]+/, ki = /(?!\s*\])(?:\\.|[^\[\]\\])+/, er = de(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ki).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), tr = de(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, xi).getRegex(), ei = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Si = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ir = de("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Si).replace("tag", ei).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), hs = de(_i).replace("hr", yt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ei).getRegex(), sr = de(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", hs).getRegex(), Ei = {
5266
5266
  blockquote: sr,
5267
5267
  code: Xn,
@@ -5343,25 +5343,25 @@ const Be = {
5343
5343
  ">": "&gt;",
5344
5344
  '"': "&quot;",
5345
5345
  "'": "&#39;"
5346
- }, Ki = (u) => Tr[u];
5347
- function Ke(u, e) {
5346
+ }, Ki = (d) => Tr[d];
5347
+ function Ke(d, e) {
5348
5348
  if (e) {
5349
- if (Be.escapeTest.test(u))
5350
- return u.replace(Be.escapeReplace, Ki);
5351
- } else if (Be.escapeTestNoEncode.test(u))
5352
- return u.replace(Be.escapeReplaceNoEncode, Ki);
5353
- return u;
5349
+ if (Be.escapeTest.test(d))
5350
+ return d.replace(Be.escapeReplace, Ki);
5351
+ } else if (Be.escapeTestNoEncode.test(d))
5352
+ return d.replace(Be.escapeReplaceNoEncode, Ki);
5353
+ return d;
5354
5354
  }
5355
- function es(u) {
5355
+ function es(d) {
5356
5356
  try {
5357
- u = encodeURI(u).replace(Be.percentDecode, "%");
5357
+ d = encodeURI(d).replace(Be.percentDecode, "%");
5358
5358
  } catch {
5359
5359
  return null;
5360
5360
  }
5361
- return u;
5361
+ return d;
5362
5362
  }
5363
- function ts(u, e) {
5364
- const t = u.replace(Be.findPipe, (n, r, a) => {
5363
+ function ts(d, e) {
5364
+ const t = d.replace(Be.findPipe, (n, r, a) => {
5365
5365
  let l = !1, c = r;
5366
5366
  for (; --c >= 0 && a[c] === "\\"; )
5367
5367
  l = !l;
@@ -5378,33 +5378,33 @@ function ts(u, e) {
5378
5378
  s[i] = s[i].trim().replace(Be.slashPipe, "|");
5379
5379
  return s;
5380
5380
  }
5381
- function gt(u, e, t) {
5382
- const s = u.length;
5381
+ function gt(d, e, t) {
5382
+ const s = d.length;
5383
5383
  if (s === 0)
5384
5384
  return "";
5385
5385
  let i = 0;
5386
- for (; i < s && u.charAt(s - i - 1) === e; )
5386
+ for (; i < s && d.charAt(s - i - 1) === e; )
5387
5387
  i++;
5388
- return u.slice(0, s - i);
5388
+ return d.slice(0, s - i);
5389
5389
  }
5390
- function Lr(u, e) {
5391
- if (u.indexOf(e[1]) === -1)
5390
+ function Lr(d, e) {
5391
+ if (d.indexOf(e[1]) === -1)
5392
5392
  return -1;
5393
5393
  let t = 0;
5394
- for (let s = 0; s < u.length; s++)
5395
- if (u[s] === "\\")
5394
+ for (let s = 0; s < d.length; s++)
5395
+ if (d[s] === "\\")
5396
5396
  s++;
5397
- else if (u[s] === e[0])
5397
+ else if (d[s] === e[0])
5398
5398
  t++;
5399
- else if (u[s] === e[1] && (t--, t < 0))
5399
+ else if (d[s] === e[1] && (t--, t < 0))
5400
5400
  return s;
5401
5401
  return t > 0 ? -2 : -1;
5402
5402
  }
5403
- function is(u, e, t, s, i) {
5404
- const n = e.href, r = e.title || null, a = u[1].replace(i.other.outputLinkReplace, "$1");
5403
+ function is(d, e, t, s, i) {
5404
+ const n = e.href, r = e.title || null, a = d[1].replace(i.other.outputLinkReplace, "$1");
5405
5405
  s.state.inLink = !0;
5406
5406
  const l = {
5407
- type: u[0].charAt(0) === "!" ? "image" : "link",
5407
+ type: d[0].charAt(0) === "!" ? "image" : "link",
5408
5408
  raw: t,
5409
5409
  href: n,
5410
5410
  title: r,
@@ -5413,8 +5413,8 @@ function is(u, e, t, s, i) {
5413
5413
  };
5414
5414
  return s.state.inLink = !1, l;
5415
5415
  }
5416
- function Cr(u, e, t) {
5417
- const s = u.match(t.other.indentCodeCompensation);
5416
+ function Cr(d, e, t) {
5417
+ const s = d.match(t.other.indentCodeCompensation);
5418
5418
  if (s === null)
5419
5419
  return e;
5420
5420
  const i = s[1];
@@ -5515,11 +5515,11 @@ class Xt {
5515
5515
  else
5516
5516
  break;
5517
5517
  s = s.slice(c);
5518
- const d = l.join(`
5519
- `), o = d.replace(this.rules.other.blockquoteSetextReplace, `
5518
+ const u = l.join(`
5519
+ `), o = u.replace(this.rules.other.blockquoteSetextReplace, `
5520
5520
  $1`).replace(this.rules.other.blockquoteSetextReplace2, "");
5521
5521
  i = i ? `${i}
5522
- ${d}` : d, n = n ? `${n}
5522
+ ${u}` : u, n = n ? `${n}
5523
5523
  ${o}` : o;
5524
5524
  const h = this.lexer.state.top;
5525
5525
  if (this.lexer.state.top = !0, this.lexer.blockTokens(o, r, !0), this.lexer.state.top = h, s.length === 0)
@@ -5566,14 +5566,14 @@ ${o}` : o;
5566
5566
  const r = this.rules.other.listItemRegex(s);
5567
5567
  let a = !1;
5568
5568
  for (; e; ) {
5569
- let c = !1, d = "", o = "";
5569
+ let c = !1, u = "", o = "";
5570
5570
  if (!(t = r.exec(e)) || this.rules.block.hr.test(e))
5571
5571
  break;
5572
- d = t[0], e = e.substring(d.length);
5572
+ u = t[0], e = e.substring(u.length);
5573
5573
  let h = t[2].split(`
5574
5574
  `, 1)[0].replace(this.rules.other.listReplaceTabs, (x) => " ".repeat(3 * x.length)), p = e.split(`
5575
5575
  `, 1)[0], g = !h.trim(), w = 0;
5576
- if (this.options.pedantic ? (w = 2, o = h.trimStart()) : g ? w = t[1].length + 1 : (w = t[2].search(this.rules.other.nonSpaceChar), w = w > 4 ? 1 : w, o = h.slice(w), w += t[1].length), g && this.rules.other.blankLine.test(p) && (d += p + `
5576
+ if (this.options.pedantic ? (w = 2, o = h.trimStart()) : g ? w = t[1].length + 1 : (w = t[2].search(this.rules.other.nonSpaceChar), w = w > 4 ? 1 : w, o = h.slice(w), w += t[1].length), g && this.rules.other.blankLine.test(p) && (u += p + `
5577
5577
  `, e = e.substring(p.length + 1), c = !0), !c) {
5578
5578
  const x = this.rules.other.nextBulletRegex(w), m = this.rules.other.hrRegex(w), v = this.rules.other.fencesBeginRegex(w), _ = this.rules.other.headingBeginRegex(w), f = this.rules.other.htmlBeginRegex(w);
5579
5579
  for (; e; ) {
@@ -5591,21 +5591,21 @@ ${o}` : o;
5591
5591
  o += `
5592
5592
  ` + p;
5593
5593
  }
5594
- !g && !p.trim() && (g = !0), d += y + `
5594
+ !g && !p.trim() && (g = !0), u += y + `
5595
5595
  `, e = e.substring(y.length + 1), h = k.slice(w);
5596
5596
  }
5597
5597
  }
5598
- n.loose || (a ? n.loose = !0 : this.rules.other.doubleBlankLine.test(d) && (a = !0));
5598
+ n.loose || (a ? n.loose = !0 : this.rules.other.doubleBlankLine.test(u) && (a = !0));
5599
5599
  let S = null, b;
5600
5600
  this.options.gfm && (S = this.rules.other.listIsTask.exec(o), S && (b = S[0] !== "[ ] ", o = o.replace(this.rules.other.listReplaceTask, ""))), n.items.push({
5601
5601
  type: "list_item",
5602
- raw: d,
5602
+ raw: u,
5603
5603
  task: !!S,
5604
5604
  checked: b,
5605
5605
  loose: !1,
5606
5606
  text: o,
5607
5607
  tokens: []
5608
- }), n.raw += d;
5608
+ }), n.raw += u;
5609
5609
  }
5610
5610
  const l = n.items.at(-1);
5611
5611
  if (l)
@@ -5615,7 +5615,7 @@ ${o}` : o;
5615
5615
  n.raw = n.raw.trimEnd();
5616
5616
  for (let c = 0; c < n.items.length; c++)
5617
5617
  if (this.lexer.state.top = !1, n.items[c].tokens = this.lexer.blockTokens(n.items[c].text, []), !n.loose) {
5618
- const d = n.items[c].tokens.filter((h) => h.type === "space"), o = d.length > 0 && d.some((h) => this.rules.other.anyLine.test(h.raw));
5618
+ const u = n.items[c].tokens.filter((h) => h.type === "space"), o = u.length > 0 && u.some((h) => this.rules.other.anyLine.test(h.raw));
5619
5619
  n.loose = o;
5620
5620
  }
5621
5621
  if (n.loose)
@@ -5787,7 +5787,7 @@ ${o}` : o;
5787
5787
  return;
5788
5788
  if (!(i[1] || i[2] || "") || !s || this.rules.inline.punctuation.exec(s)) {
5789
5789
  const r = [...i[0]].length - 1;
5790
- let a, l, c = r, d = 0;
5790
+ let a, l, c = r, u = 0;
5791
5791
  const o = i[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
5792
5792
  for (o.lastIndex = 0, t = t.slice(-1 * e.length + r); (i = o.exec(t)) != null; ) {
5793
5793
  if (a = i[1] || i[2] || i[3] || i[4] || i[5] || i[6], !a)
@@ -5796,12 +5796,12 @@ ${o}` : o;
5796
5796
  c += l;
5797
5797
  continue;
5798
5798
  } else if ((i[5] || i[6]) && r % 3 && !((r + l) % 3)) {
5799
- d += l;
5799
+ u += l;
5800
5800
  continue;
5801
5801
  }
5802
5802
  if (c -= l, c > 0)
5803
5803
  continue;
5804
- l = Math.min(l, l + c + d);
5804
+ l = Math.min(l, l + c + u);
5805
5805
  const h = [...i[0]][0].length, p = e.slice(0, r + i.index + h + l);
5806
5806
  if (Math.min(r, l) % 2) {
5807
5807
  const w = p.slice(1, -1);
@@ -6131,10 +6131,10 @@ class Je {
6131
6131
  let l = e;
6132
6132
  if (this.options.extensions?.startInline) {
6133
6133
  let c = 1 / 0;
6134
- const d = e.slice(1);
6134
+ const u = e.slice(1);
6135
6135
  let o;
6136
6136
  this.options.extensions.startInline.forEach((h) => {
6137
- o = h.call({ lexer: this }, d), typeof o == "number" && o >= 0 && (c = Math.min(c, o));
6137
+ o = h.call({ lexer: this }, u), typeof o == "number" && o >= 0 && (c = Math.min(c, o));
6138
6138
  }), c < 1 / 0 && c >= 0 && (l = e.substring(0, c + 1));
6139
6139
  }
6140
6140
  if (a = this.tokenizer.inlineText(l)) {
@@ -6596,9 +6596,9 @@ class Ar {
6596
6596
  if (["options", "parser"].includes(r))
6597
6597
  continue;
6598
6598
  const a = r, l = s.renderer[a], c = n[a];
6599
- n[a] = (...d) => {
6600
- let o = l.apply(n, d);
6601
- return o === !1 && (o = c.apply(n, d)), o || "";
6599
+ n[a] = (...u) => {
6600
+ let o = l.apply(n, u);
6601
+ return o === !1 && (o = c.apply(n, u)), o || "";
6602
6602
  };
6603
6603
  }
6604
6604
  i.renderer = n;
@@ -6611,9 +6611,9 @@ class Ar {
6611
6611
  if (["options", "rules", "lexer"].includes(r))
6612
6612
  continue;
6613
6613
  const a = r, l = s.tokenizer[a], c = n[a];
6614
- n[a] = (...d) => {
6615
- let o = l.apply(n, d);
6616
- return o === !1 && (o = c.apply(n, d)), o;
6614
+ n[a] = (...u) => {
6615
+ let o = l.apply(n, u);
6616
+ return o === !1 && (o = c.apply(n, u)), o;
6617
6617
  };
6618
6618
  }
6619
6619
  i.tokenizer = n;
@@ -6626,14 +6626,14 @@ class Ar {
6626
6626
  if (["options", "block"].includes(r))
6627
6627
  continue;
6628
6628
  const a = r, l = s.hooks[a], c = n[a];
6629
- Ut.passThroughHooks.has(r) ? n[a] = (d) => {
6629
+ Ut.passThroughHooks.has(r) ? n[a] = (u) => {
6630
6630
  if (this.defaults.async)
6631
- return Promise.resolve(l.call(n, d)).then((h) => c.call(n, h));
6632
- const o = l.call(n, d);
6631
+ return Promise.resolve(l.call(n, u)).then((h) => c.call(n, h));
6632
+ const o = l.call(n, u);
6633
6633
  return c.call(n, o);
6634
- } : n[a] = (...d) => {
6635
- let o = l.apply(n, d);
6636
- return o === !1 && (o = c.apply(n, d)), o;
6634
+ } : n[a] = (...u) => {
6635
+ let o = l.apply(n, u);
6636
+ return o === !1 && (o = c.apply(n, u)), o;
6637
6637
  };
6638
6638
  }
6639
6639
  i.hooks = n;
@@ -6669,15 +6669,15 @@ class Ar {
6669
6669
  r.hooks && (r.hooks.options = r, r.hooks.block = e);
6670
6670
  const l = r.hooks ? r.hooks.provideLexer() : e ? Je.lex : Je.lexInline, c = r.hooks ? r.hooks.provideParser() : e ? Ze.parse : Ze.parseInline;
6671
6671
  if (r.async)
6672
- return Promise.resolve(r.hooks ? r.hooks.preprocess(s) : s).then((d) => l(d, r)).then((d) => r.hooks ? r.hooks.processAllTokens(d) : d).then((d) => r.walkTokens ? Promise.all(this.walkTokens(d, r.walkTokens)).then(() => d) : d).then((d) => c(d, r)).then((d) => r.hooks ? r.hooks.postprocess(d) : d).catch(a);
6672
+ return Promise.resolve(r.hooks ? r.hooks.preprocess(s) : s).then((u) => l(u, r)).then((u) => r.hooks ? r.hooks.processAllTokens(u) : u).then((u) => r.walkTokens ? Promise.all(this.walkTokens(u, r.walkTokens)).then(() => u) : u).then((u) => c(u, r)).then((u) => r.hooks ? r.hooks.postprocess(u) : u).catch(a);
6673
6673
  try {
6674
6674
  r.hooks && (s = r.hooks.preprocess(s));
6675
- let d = l(s, r);
6676
- r.hooks && (d = r.hooks.processAllTokens(d)), r.walkTokens && this.walkTokens(d, r.walkTokens);
6677
- let o = c(d, r);
6675
+ let u = l(s, r);
6676
+ r.hooks && (u = r.hooks.processAllTokens(u)), r.walkTokens && this.walkTokens(u, r.walkTokens);
6677
+ let o = c(u, r);
6678
6678
  return r.hooks && (o = r.hooks.postprocess(o)), o;
6679
- } catch (d) {
6680
- return a(d);
6679
+ } catch (u) {
6680
+ return a(u);
6681
6681
  }
6682
6682
  };
6683
6683
  }
@@ -6695,19 +6695,19 @@ Please report this to https://github.com/markedjs/marked.`, e) {
6695
6695
  }
6696
6696
  }
6697
6697
  const at = new Ar();
6698
- function oe(u, e) {
6699
- return at.parse(u, e);
6698
+ function oe(d, e) {
6699
+ return at.parse(d, e);
6700
6700
  }
6701
- oe.options = oe.setOptions = function(u) {
6702
- return at.setOptions(u), oe.defaults = at.defaults, cs(oe.defaults), oe;
6701
+ oe.options = oe.setOptions = function(d) {
6702
+ return at.setOptions(d), oe.defaults = at.defaults, cs(oe.defaults), oe;
6703
6703
  };
6704
6704
  oe.getDefaults = wi;
6705
6705
  oe.defaults = ot;
6706
- oe.use = function(...u) {
6707
- return at.use(...u), oe.defaults = at.defaults, cs(oe.defaults), oe;
6706
+ oe.use = function(...d) {
6707
+ return at.use(...d), oe.defaults = at.defaults, cs(oe.defaults), oe;
6708
6708
  };
6709
- oe.walkTokens = function(u, e) {
6710
- return at.walkTokens(u, e);
6709
+ oe.walkTokens = function(d, e) {
6710
+ return at.walkTokens(d, e);
6711
6711
  };
6712
6712
  oe.parseInline = at.parseInline;
6713
6713
  oe.Parser = Ze;
@@ -7005,10 +7005,10 @@ Check the request and return the details.
7005
7005
  // 'prompt'
7006
7006
  ]
7007
7007
  }
7008
- }], d = await this.builder.send(l, a, n, "", c);
7009
- if (!d)
7008
+ }], u = await this.builder.send(l, a, n, "", c);
7009
+ if (!u)
7010
7010
  return !1;
7011
- let o = JSON.parse(d);
7011
+ let o = JSON.parse(u);
7012
7012
  return {
7013
7013
  ...e,
7014
7014
  ...o
@@ -7051,10 +7051,10 @@ Check the request and return the details.
7051
7051
  // 'image_url'
7052
7052
  ]
7053
7053
  }
7054
- }], d = await this.builder.send(l, a, n, "", c);
7055
- if (!d)
7054
+ }], u = await this.builder.send(l, a, n, "", c);
7055
+ if (!u)
7056
7056
  return !1;
7057
- let o = JSON.parse(d);
7057
+ let o = JSON.parse(u);
7058
7058
  return {
7059
7059
  ...e,
7060
7060
  ...o
@@ -7093,10 +7093,10 @@ Check the request and return the details.
7093
7093
  // 'prompt'
7094
7094
  ]
7095
7095
  }
7096
- }], d = await this.builder.send(l, a, n, "", c);
7097
- if (!d)
7096
+ }], u = await this.builder.send(l, a, n, "", c);
7097
+ if (!u)
7098
7098
  return !1;
7099
- let o = JSON.parse(d);
7099
+ let o = JSON.parse(u);
7100
7100
  return {
7101
7101
  ...e,
7102
7102
  ...o
@@ -7123,10 +7123,10 @@ Check the request and return the details.
7123
7123
  }], c = await this.builder.send(a, r, n, "", l);
7124
7124
  if (!c)
7125
7125
  return !1;
7126
- let d = JSON.parse(c);
7126
+ let u = JSON.parse(c);
7127
7127
  return {
7128
7128
  ...e,
7129
- ...d
7129
+ ...u
7130
7130
  };
7131
7131
  } else if (e.upscale_image) {
7132
7132
  const n = "You are an assistant", a = `
@@ -7158,10 +7158,10 @@ Check the request and return the details.
7158
7158
  // 'image_url'
7159
7159
  ]
7160
7160
  }
7161
- }], d = await this.builder.send(l, a, n, "", c);
7162
- if (!d)
7161
+ }], u = await this.builder.send(l, a, n, "", c);
7162
+ if (!u)
7163
7163
  return !1;
7164
- let o = JSON.parse(d);
7164
+ let o = JSON.parse(u);
7165
7165
  return {
7166
7166
  ...e,
7167
7167
  ...o
@@ -7198,10 +7198,10 @@ Check the request and return the details.
7198
7198
  },
7199
7199
  required: ["image_url", "prompt"]
7200
7200
  }
7201
- }], d = await this.builder.send(l, a, n, "", c);
7202
- if (!d)
7201
+ }], u = await this.builder.send(l, a, n, "", c);
7202
+ if (!u)
7203
7203
  return !1;
7204
- let o = JSON.parse(d);
7204
+ let o = JSON.parse(u);
7205
7205
  return {
7206
7206
  ...e,
7207
7207
  ...o
@@ -7246,10 +7246,10 @@ Check the request and return the details.
7246
7246
  // 'image_url'
7247
7247
  ]
7248
7248
  }
7249
- }], d = await this.builder.send(l, a, n, "", c);
7250
- if (!d)
7249
+ }], u = await this.builder.send(l, a, n, "", c);
7250
+ if (!u)
7251
7251
  return !1;
7252
- let o = JSON.parse(d);
7252
+ let o = JSON.parse(u);
7253
7253
  return {
7254
7254
  ...e,
7255
7255
  ...o
@@ -7368,10 +7368,10 @@ Check the request and return the details.
7368
7368
  // 'prompt'
7369
7369
  ]
7370
7370
  }
7371
- }], d = await this.builder.send(l, a, n, "", c);
7372
- if (!d)
7371
+ }], u = await this.builder.send(l, a, n, "", c);
7372
+ if (!u)
7373
7373
  return !1;
7374
- let o = JSON.parse(d);
7374
+ let o = JSON.parse(u);
7375
7375
  return {
7376
7376
  ...e,
7377
7377
  ...o
@@ -7490,10 +7490,10 @@ Check the request and return the details.
7490
7490
  // 'prompt'
7491
7491
  ]
7492
7492
  }
7493
- }], d = await this.builder.send(l, a, n, "", c);
7494
- if (!d)
7493
+ }], u = await this.builder.send(l, a, n, "", c);
7494
+ if (!u)
7495
7495
  return !1;
7496
- let o = JSON.parse(d);
7496
+ let o = JSON.parse(u);
7497
7497
  return {
7498
7498
  ...e,
7499
7499
  ...o
@@ -7608,10 +7608,10 @@ Check the request and return the details.
7608
7608
  // 'prompt'
7609
7609
  ]
7610
7610
  }
7611
- }], d = await this.builder.send(l, a, n, "", c);
7612
- if (!d)
7611
+ }], u = await this.builder.send(l, a, n, "", c);
7612
+ if (!u)
7613
7613
  return !1;
7614
- let o = JSON.parse(d);
7614
+ let o = JSON.parse(u);
7615
7615
  return {
7616
7616
  ...e,
7617
7617
  ...o
@@ -7652,10 +7652,10 @@ Check the request and return the details.
7652
7652
  },
7653
7653
  required: ["text"]
7654
7654
  }
7655
- }], d = await this.builder.send(l, a, n, "", c);
7656
- if (!d)
7655
+ }], u = await this.builder.send(l, a, n, "", c);
7656
+ if (!u)
7657
7657
  return !1;
7658
- let o = JSON.parse(d);
7658
+ let o = JSON.parse(u);
7659
7659
  return {
7660
7660
  ...e,
7661
7661
  ...o
@@ -7753,9 +7753,9 @@ Check the information and return the details.
7753
7753
  //this.out('Request failed.')
7754
7754
  };
7755
7755
  {
7756
- const d = r.data;
7756
+ const u = r.data;
7757
7757
  let o = "", h = "", p, g = !1, w = [], S = [];
7758
- return d.entries && d.entries.forEach((b) => {
7758
+ return u.entries && u.entries.forEach((b) => {
7759
7759
  p = b.url.split(".").pop().toLowerCase(), p === "mp4" ? (o += `
7760
7760
  <p class="responsive-video">
7761
7761
  <video controls>
@@ -7779,7 +7779,7 @@ Check the information and return the details.
7779
7779
  </div>
7780
7780
  </div>
7781
7781
  `, h += `![](${b.url})`, g = !0), w.push(b.url), S.push(b.file_url);
7782
- }), g && (o = `<div class="image-container">${o}</div>`), typeof d == "string" && (o = d, h = d), i ? (s.innerHTML = "", s.remove()) : (s.innerHTML = o, this.builder.outputHtml += `<div class="result-container">${o}</div>`), {
7782
+ }), g && (o = `<div class="image-container">${o}</div>`), typeof u == "string" && (o = u, h = u), i ? (s.innerHTML = "", s.remove()) : (s.innerHTML = o, this.builder.outputHtml += `<div class="result-container">${o}</div>`), {
7783
7783
  mediaGenerated: !0,
7784
7784
  status: "success",
7785
7785
  markdown: h,
@@ -7821,8 +7821,8 @@ Check the information and return the details.
7821
7821
  //this.out('Request failed.')
7822
7822
  };
7823
7823
  {
7824
- const d = r.data;
7825
- let o = this.renderResult(d, s, i);
7824
+ const u = r.data;
7825
+ let o = this.renderResult(u, s, i);
7826
7826
  return {
7827
7827
  mediaGenerated: !0,
7828
7828
  status: "success",
@@ -7835,7 +7835,7 @@ Check the information and return the details.
7835
7835
  async waitingReplicate(e, t, s, i) {
7836
7836
  let n, r, a, l = e.model, c = this.builder.settings.replicateStatusEndpoint;
7837
7837
  c = c.replace("{REQUEST_ID}", t);
7838
- let d = {
7838
+ let u = {
7839
7839
  "Content-Type": "application/json",
7840
7840
  ...this.builder.settings.headers
7841
7841
  }, o = {
@@ -7848,7 +7848,7 @@ Check the information and return the details.
7848
7848
  if (r = await fetch(this.builder.settings.checkRequestStatusUrl_Replicate, {
7849
7849
  signal: this.builder.mediaSignal,
7850
7850
  method: "POST",
7851
- headers: d,
7851
+ headers: u,
7852
7852
  body: JSON.stringify(o)
7853
7853
  }), a = await r.json(), a.ok && (n = a.data.status), !n)
7854
7854
  return {
@@ -7871,7 +7871,7 @@ Check the information and return the details.
7871
7871
  async waitingFal(e, t, s, i) {
7872
7872
  let n, r, a, l = e.model;
7873
7873
  const c = this.getEndpoint(l, t, this.builder.settings.falStatusEndpoint);
7874
- let d = {
7874
+ let u = {
7875
7875
  "Content-Type": "application/json",
7876
7876
  ...this.builder.settings.headers
7877
7877
  }, o = {
@@ -7884,7 +7884,7 @@ Check the information and return the details.
7884
7884
  if (r = await fetch(this.builder.settings.checkRequestStatusUrl_Fal, {
7885
7885
  signal: this.builder.mediaSignal,
7886
7886
  method: "POST",
7887
- headers: d,
7887
+ headers: u,
7888
7888
  body: JSON.stringify(o)
7889
7889
  }), a = await r.json(), a.ok && a.status)
7890
7890
  n = a.status;
@@ -7909,30 +7909,30 @@ Check the information and return the details.
7909
7909
  let i = "", n = "", r = [], a = [];
7910
7910
  if (e.entries) {
7911
7911
  let l, c = !1;
7912
- e.entries.forEach((d) => {
7913
- l = d.url.split(".").pop().toLowerCase(), l === "mp4" ? (i += `
7912
+ e.entries.forEach((u) => {
7913
+ l = u.url.split(".").pop().toLowerCase(), l === "mp4" ? (i += `
7914
7914
  <p class="responsive-video">
7915
7915
  <video controls>
7916
- <source src="${d.url}" type="video/mp4">
7916
+ <source src="${u.url}" type="video/mp4">
7917
7917
  Your browser does not support the video tag.
7918
7918
  </video>
7919
7919
  </p>
7920
- `, n += `![](${d.url})`, r.push(d.url), a.push(d.file_url)) : l === "wav" || l === "mp3" ? (i += `
7920
+ `, n += `![](${u.url})`, r.push(u.url), a.push(u.file_url)) : l === "wav" || l === "mp3" ? (i += `
7921
7921
  <p class="responsive-audio">
7922
7922
  <audio controls>
7923
- <source src="${d.url}" type="audio/mpeg">
7923
+ <source src="${u.url}" type="audio/mpeg">
7924
7924
  Your browser does not support the audio tag.
7925
7925
  </audio>
7926
7926
  </p>
7927
- `, n += `![](${d.url})`, r.push(d.url), a.push(d.file_url)) : (i += `
7927
+ `, n += `![](${u.url})`, r.push(u.url), a.push(u.file_url)) : (i += `
7928
7928
  <div>
7929
- <img src="${d.url}" />
7929
+ <img src="${u.url}" />
7930
7930
  <div>
7931
- <a class="link-view" href="${d.url}" target="_blank" rel="noopener noreferrer">${this.out("View")}</a>
7932
- <a class="link-download" href="${d.url}" download>${this.out("Download")}</a>
7931
+ <a class="link-view" href="${u.url}" target="_blank" rel="noopener noreferrer">${this.out("View")}</a>
7932
+ <a class="link-download" href="${u.url}" download>${this.out("Download")}</a>
7933
7933
  </div>
7934
7934
  </div>
7935
- `, n += `![](${d.url})`, r.push(d.url), a.push(d.file_url), c = !0);
7935
+ `, n += `![](${u.url})`, r.push(u.url), a.push(u.file_url), c = !0);
7936
7936
  }), c && (i = `<div class="image-container">${i}</div>`);
7937
7937
  } else typeof e == "string" && (i = `
7938
7938
  <p>
@@ -7962,10 +7962,10 @@ Check the information and return the details.
7962
7962
  status: "error",
7963
7963
  message: this.out("Please input a prompt.")
7964
7964
  };
7965
- let d = e.aspect_ratio || "16:9", o = e.num_images || 1;
7965
+ let u = e.aspect_ratio || "16:9", o = e.num_images || 1;
7966
7966
  o > 4 && (o = 4), i = {
7967
7967
  prompt: c,
7968
- aspect_ratio: d,
7968
+ aspect_ratio: u,
7969
7969
  num_outputs: o
7970
7970
  }, n.model = l, n.customData = this.builder.settings.customData;
7971
7971
  } else if (e.edit_area_in_image) {
@@ -8025,17 +8025,17 @@ Check the information and return the details.
8025
8025
  status: "error",
8026
8026
  message: this.out("Please input a prompt.")
8027
8027
  };
8028
- let d = e.width || 1280, o = e.height || 768;
8028
+ let u = e.width || 1280, o = e.height || 768;
8029
8029
  e.num_images, i = {
8030
8030
  prompt: c,
8031
- size: `${d}x${o}`,
8031
+ size: `${u}x${o}`,
8032
8032
  // num_images,
8033
8033
  style: "digital_illustration"
8034
8034
  // style_id,
8035
8035
  // colors,
8036
8036
  }, n.model = l, n.customData = this.builder.settings.customData;
8037
8037
  } else if (e.upscale_image) {
8038
- let l = this.validateModel(e.model, d, "upscale_image");
8038
+ let l = this.validateModel(e.model, u, "upscale_image");
8039
8039
  if (!l)
8040
8040
  return {
8041
8041
  mediaGenerated: !1,
@@ -8048,8 +8048,8 @@ Check the information and return the details.
8048
8048
  status: "error",
8049
8049
  message: this.out("Image reference not found.")
8050
8050
  };
8051
- let d = "replicate";
8052
- const o = await this.builder.upload.getInputURLs(d);
8051
+ let u = "replicate";
8052
+ const o = await this.builder.upload.getInputURLs(u);
8053
8053
  if (o.error)
8054
8054
  return {
8055
8055
  mediaGenerated: !1,
@@ -8115,8 +8115,8 @@ Check the information and return the details.
8115
8115
  status: "error",
8116
8116
  message: this.out("Model not found.")
8117
8117
  };
8118
- let c = e.prompt || "stunning video", d = e.duration || 5;
8119
- d > 10 && (d = 5);
8118
+ let c = e.prompt || "stunning video", u = e.duration || 5;
8119
+ u > 10 && (u = 5);
8120
8120
  let o = "replicate";
8121
8121
  const h = await this.builder.upload.getInputURLs(o);
8122
8122
  if (h.error)
@@ -8135,11 +8135,11 @@ Check the information and return the details.
8135
8135
  l === "kwaivgi/kling-v1.6-pro" && (i = {
8136
8136
  start_image: p,
8137
8137
  prompt: c,
8138
- duration: d
8138
+ duration: u
8139
8139
  }), l === "kwaivgi/kling-v1.6-standard" && (i = {
8140
8140
  start_image: p,
8141
8141
  prompt: c,
8142
- duration: d
8142
+ duration: u
8143
8143
  }), l === "minimax/video-01-live" && (i = {
8144
8144
  first_frame_image: p,
8145
8145
  prompt: c
@@ -8162,10 +8162,10 @@ Check the information and return the details.
8162
8162
  status: "error",
8163
8163
  message: this.out("Please input a prompt.")
8164
8164
  };
8165
- let d = e.duration || 5;
8166
- d > 10 && (d = 5), l === "kwaivgi/kling-v1.6-standard" && (i = {
8165
+ let u = e.duration || 5;
8166
+ u > 10 && (u = 5), l === "kwaivgi/kling-v1.6-standard" && (i = {
8167
8167
  prompt: c,
8168
- duration: d
8168
+ duration: u
8169
8169
  }), l === "minimax/video-01" && (i = {
8170
8170
  prompt: c
8171
8171
  }), l === "luma/ray" && (i = {
@@ -8194,8 +8194,8 @@ Check the information and return the details.
8194
8194
  if (n.model.indexOf(":") !== -1) {
8195
8195
  const c = n.model.split(":")[1];
8196
8196
  n.version = c;
8197
- let d = this.builder.settings.replicateEndpoint1;
8198
- n.endpoint = d, n.payload = i, this.builder.settings.consoleLog && console.log("PAYLOAD 1");
8197
+ let u = this.builder.settings.replicateEndpoint1;
8198
+ n.endpoint = u, n.payload = i, this.builder.settings.consoleLog && console.log("PAYLOAD 1");
8199
8199
  } else {
8200
8200
  let l = this.builder.settings.replicateEndpoint2;
8201
8201
  l = l.replace("{MODEL}", n.model), n.endpoint = l, n.payload = i, this.builder.settings.consoleLog && console.log("PAYLOAD 2");
@@ -8210,13 +8210,13 @@ Check the information and return the details.
8210
8210
  status: "error",
8211
8211
  message: this.out("Endpoint not configured.")
8212
8212
  };
8213
- let c, d = {
8213
+ let c, u = {
8214
8214
  "Content-Type": "application/json",
8215
8215
  ...this.builder.settings.headers
8216
8216
  }, h = await (await fetch(l, {
8217
8217
  signal: this.builder.mediaSignal,
8218
8218
  method: "POST",
8219
- headers: d,
8219
+ headers: u,
8220
8220
  body: JSON.stringify(n)
8221
8221
  })).json();
8222
8222
  if (h.ok) {
@@ -8282,19 +8282,19 @@ Check the information and return the details.
8282
8282
  };
8283
8283
  const c = new FormData();
8284
8284
  c.append("customData", JSON.stringify(this.builder.settings.customData)), c.append("model", a), c.append("prompt", l);
8285
- let d = !1, o = this.builder.getFormValues();
8285
+ let u = !1, o = this.builder.getFormValues();
8286
8286
  for (const m of o) {
8287
8287
  if (m.value instanceof FileList && m.type === "multifile") {
8288
8288
  const v = m.value;
8289
8289
  if (v.length > 0)
8290
8290
  for (const _ of v)
8291
- c.append("file[]", _), d = !0;
8291
+ c.append("file[]", _), u = !0;
8292
8292
  }
8293
8293
  if (m.value instanceof FileList && m.type === "file") {
8294
8294
  const v = m.value;
8295
8295
  if (v.length > 0) {
8296
8296
  const _ = v[0];
8297
- c.append("file[]", _), d = !0;
8297
+ c.append("file[]", _), u = !0;
8298
8298
  }
8299
8299
  }
8300
8300
  if (typeof m.value == "string" && m.value.indexOf("base64") !== -1) {
@@ -8305,10 +8305,10 @@ Check the information and return the details.
8305
8305
  if (this.builder.selectedFiles && this.builder.selectedFiles.length > 0)
8306
8306
  for (let m = 0; m < this.builder.selectedFiles.length; m++) {
8307
8307
  const v = this.builder.selectedFiles[m];
8308
- c.append("file[]", v), d = !0;
8308
+ c.append("file[]", v), u = !0;
8309
8309
  }
8310
8310
  let h, p = e.size || "auto", g = e.quality || "auto", w = e.num_images || 1;
8311
- if (d) {
8311
+ if (u) {
8312
8312
  c.append("size", p), c.append("n", w), c.append("quality", g), i = {
8313
8313
  prompt: l,
8314
8314
  size: p,
@@ -8374,9 +8374,9 @@ Check the information and return the details.
8374
8374
  c.push({
8375
8375
  text: l
8376
8376
  });
8377
- let d = this.builder.getFormValues();
8378
- if (!(d && Object.keys(d).length === 0)) {
8379
- for (const b of d)
8377
+ let u = this.builder.getFormValues();
8378
+ if (!(u && Object.keys(u).length === 0)) {
8379
+ for (const b of u)
8380
8380
  if (b.value instanceof FileList && b.type === "multifile") {
8381
8381
  const x = b.value;
8382
8382
  if (x.length > 0)
@@ -8471,9 +8471,9 @@ Check the information and return the details.
8471
8471
  });
8472
8472
  let H = await (async () => {
8473
8473
  let U = [], J = this.builder.getFormValues();
8474
- for (const F of J)
8475
- if (F.value instanceof FileList && F.type === "multifile") {
8476
- const ee = F.value;
8474
+ for (const Y of J)
8475
+ if (Y.value instanceof FileList && Y.type === "multifile") {
8476
+ const ee = Y.value;
8477
8477
  if (ee.length > 0) {
8478
8478
  let Q = 0;
8479
8479
  for (const he of ee) {
@@ -8863,13 +8863,13 @@ Check the information and return the details.
8863
8863
  status: "error",
8864
8864
  message: this.out("Endpoint not configured: generateMediaUrl_Fal.")
8865
8865
  };
8866
- let c, d = {
8866
+ let c, u = {
8867
8867
  "Content-Type": "application/json",
8868
8868
  ...this.builder.settings.headers
8869
8869
  }, h = await (await fetch(l, {
8870
8870
  signal: this.builder.mediaSignal,
8871
8871
  method: "POST",
8872
- headers: d,
8872
+ headers: u,
8873
8873
  body: JSON.stringify(r)
8874
8874
  })).json();
8875
8875
  if (h.ok)
@@ -8942,8 +8942,8 @@ Check the information and return the details.
8942
8942
  for (let a = 0; a < this.builder.selectedFiles.length; a++) {
8943
8943
  const l = this.builder.selectedFiles[a], c = new FormData();
8944
8944
  c.append("file", l), c.append("customData", this.builder.settings.customData);
8945
- let d = this.builder.settings.uploadMediaUrl_Fal;
8946
- const h = await (await fetch(d, {
8945
+ let u = this.builder.settings.uploadMediaUrl_Fal;
8946
+ const h = await (await fetch(u, {
8947
8947
  method: "POST",
8948
8948
  body: c
8949
8949
  })).json();
@@ -8981,10 +8981,10 @@ Check the information and return the details.
8981
8981
  if (s = s || this.builder.settings.defaultMediaGenerationProvider, s === "google" && e.trim().startsWith("{"))
8982
8982
  return this.generate_GoogleMediaByJSON(e, t, r, a);
8983
8983
  this.builder.isMediaGenerating = !0, this.mediaController = new AbortController(), this.builder.mediaSignal = this.mediaController.signal;
8984
- let l, c = !1, d;
8984
+ let l, c = !1, u;
8985
8985
  if (e.trim().startsWith("{"))
8986
8986
  try {
8987
- d = JSON.parse(e), d && typeof d == "object" && (c = !0);
8987
+ u = JSON.parse(e), u && typeof u == "object" && (c = !0);
8988
8988
  } catch {
8989
8989
  return {
8990
8990
  mediaGenerated: !1,
@@ -9015,7 +9015,7 @@ Check the information and return the details.
9015
9015
  return v;
9016
9016
  };
9017
9017
  return m(b);
9018
- })(d, h), s || (o.startsWith("fal") ? s = "fal" : s = "replicate");
9018
+ })(u, h), s || (o.startsWith("fal") ? s = "fal" : s = "replicate");
9019
9019
  const g = (b) => typeof b == "object" && b !== null && !Array.isArray(b), w = await this.builder.upload.getInputURLs(s);
9020
9020
  if (w.error)
9021
9021
  return {
@@ -9023,22 +9023,22 @@ Check the information and return the details.
9023
9023
  status: "error",
9024
9024
  message: w.error
9025
9025
  };
9026
- Object.keys(d).forEach((b) => {
9026
+ Object.keys(u).forEach((b) => {
9027
9027
  Object.keys(w).forEach((x) => {
9028
- if (d[b] === x) {
9028
+ if (u[b] === x) {
9029
9029
  let m = w[x];
9030
- d[b] = m;
9030
+ u[b] = m;
9031
9031
  }
9032
- if (Array.isArray(d[b])) {
9033
- for (let m = 0; m < d[b].length; m++)
9034
- if (d[b][m] === x) {
9032
+ if (Array.isArray(u[b])) {
9033
+ for (let m = 0; m < u[b].length; m++)
9034
+ if (u[b][m] === x) {
9035
9035
  let v = w[x];
9036
- d[b][m] = v;
9036
+ u[b][m] = v;
9037
9037
  }
9038
9038
  }
9039
9039
  });
9040
- }), Object.keys(d).forEach((b) => {
9041
- let x = d[b];
9040
+ }), Object.keys(u).forEach((b) => {
9041
+ let x = u[b];
9042
9042
  if (g(x))
9043
9043
  for (const m in x)
9044
9044
  Object.prototype.hasOwnProperty.call(x, m) && Object.keys(w).forEach((v) => {
@@ -9057,7 +9057,7 @@ Check the information and return the details.
9057
9057
  x[m][v] = f, _ === f && !f.startsWith("http") && (x[m][v] = "");
9058
9058
  }
9059
9059
  });
9060
- d[b] = [...x.filter((m) => m !== "")];
9060
+ u[b] = [...x.filter((m) => m !== "")];
9061
9061
  }
9062
9062
  });
9063
9063
  let S = {};
@@ -9068,14 +9068,14 @@ Check the information and return the details.
9068
9068
  if (s === "replicate")
9069
9069
  if (o.indexOf(":") !== -1) {
9070
9070
  let b = this.builder.settings.replicateEndpoint1;
9071
- S.endpoint = b, S.payload = d, this.builder.settings.consoleLog && console.log("JSON PAYLOAD 1");
9071
+ S.endpoint = b, S.payload = u, this.builder.settings.consoleLog && console.log("JSON PAYLOAD 1");
9072
9072
  } else {
9073
9073
  let b = this.builder.settings.replicateEndpoint2;
9074
- b = b.replace("{MODEL}", S.model), S.endpoint = b, S.payload = d, this.builder.settings.consoleLog && console.log("JSON PAYLOAD 2");
9074
+ b = b.replace("{MODEL}", S.model), S.endpoint = b, S.payload = u, this.builder.settings.consoleLog && console.log("JSON PAYLOAD 2");
9075
9075
  }
9076
9076
  else if (s === "fal") {
9077
9077
  let b = `https://queue.fal.run/${S.model}`;
9078
- S.endpoint = b, S.payload = d, this.builder.settings.consoleLog && console.log("JSON PAYLOAD");
9078
+ S.endpoint = b, S.payload = u, this.builder.settings.consoleLog && console.log("JSON PAYLOAD");
9079
9079
  }
9080
9080
  return this.builder.payloads.push(S), this.builder.settings.consoleLog && console.log(S), this.generateMediaByJSON(S, s, r, a);
9081
9081
  }
@@ -9203,8 +9203,8 @@ Check the information and return the details.
9203
9203
  body: JSON.stringify(e)
9204
9204
  })).json();
9205
9205
  if (this.builder.isMediaGenerating = !1, t === "fal") {
9206
- let d = c.request_id;
9207
- return this.waitingFal(e, d, s, i);
9206
+ let u = c.request_id;
9207
+ return this.waitingFal(e, u, s, i);
9208
9208
  }
9209
9209
  if (c.error)
9210
9210
  return this.builder.settings.consoleLog && console.log(c.error), {
@@ -9214,9 +9214,9 @@ Check the information and return the details.
9214
9214
  //this.out('Request failed.')
9215
9215
  };
9216
9216
  if (r) {
9217
- let d;
9217
+ let u;
9218
9218
  if (c.ok) {
9219
- if (d = c.data.id, !d)
9219
+ if (u = c.data.id, !u)
9220
9220
  return {
9221
9221
  mediaGenerated: !1,
9222
9222
  status: "error",
@@ -9229,10 +9229,10 @@ Check the information and return the details.
9229
9229
  message: c.error
9230
9230
  //this.out('Generating video request failed.')
9231
9231
  };
9232
- return this.waitingReplicate(e, d, s, i);
9232
+ return this.waitingReplicate(e, u, s, i);
9233
9233
  } else {
9234
- const d = c.data;
9235
- let o = this.renderResult(d, s, i);
9234
+ const u = c.data;
9235
+ let o = this.renderResult(u, s, i);
9236
9236
  return {
9237
9237
  mediaGenerated: !0,
9238
9238
  status: "success",
@@ -9369,13 +9369,13 @@ class Mr {
9369
9369
  customData: this.builder.settings.customData
9370
9370
  }, c;
9371
9371
  t === "replicate" ? c = this.builder.settings.uploadBase64Url : t === "fal" ? c = this.builder.settings.uploadBase64Url_Fal : c = this.builder.settings.uploadBase64Url_Fal || this.builder.settings.uploadBase64Url;
9372
- let d = {
9372
+ let u = {
9373
9373
  "Content-Type": "application/json",
9374
9374
  ...this.builder.settings.headers
9375
9375
  }, h = await (await fetch(c, {
9376
9376
  signal: this.builder.mediaSignal,
9377
9377
  method: "POST",
9378
- headers: d,
9378
+ headers: u,
9379
9379
  body: JSON.stringify(l)
9380
9380
  })).json();
9381
9381
  return h.ok && (r = h.url), r ? {
@@ -9399,11 +9399,11 @@ class Mr {
9399
9399
  a.append("file", this.builder.photoBlob[e], `photo_${r}.jpg`), a.append("customData", this.builder.settings.customData);
9400
9400
  let l;
9401
9401
  t === "replicate" ? l = this.builder.settings.uploadMediaUrl : t === "fal" ? l = this.builder.settings.uploadMediaUrl_Fal : l = this.builder.settings.uploadMediaUrl_Fal || this.builder.settings.uploadMediaUrl;
9402
- const d = await (await fetch(l, {
9402
+ const u = await (await fetch(l, {
9403
9403
  method: "POST",
9404
9404
  body: a
9405
9405
  })).json();
9406
- return d.ok ? (n = d.url, i = d.filename, {
9406
+ return u.ok ? (n = u.url, i = u.filename, {
9407
9407
  filename: i,
9408
9408
  url: n
9409
9409
  }) : {
@@ -9434,12 +9434,12 @@ class Mr {
9434
9434
  a.append("file", r), a.append("customData", this.builder.settings.customData);
9435
9435
  let l;
9436
9436
  t === "replicate" ? l = this.builder.settings.uploadMediaUrl : t === "fal" ? l = this.builder.settings.uploadMediaUrl_Fal : l = this.builder.settings.uploadMediaUrl_Fal || this.builder.settings.uploadMediaUrl;
9437
- const d = await (await fetch(l, {
9437
+ const u = await (await fetch(l, {
9438
9438
  method: "POST",
9439
9439
  body: a
9440
9440
  })).json();
9441
- if (d.ok)
9442
- n = d.url, i = d.filename;
9441
+ if (u.ok)
9442
+ n = u.url, i = u.filename;
9443
9443
  else
9444
9444
  return {
9445
9445
  error: this.out("Upload file failed.")
@@ -9536,14 +9536,14 @@ class qr {
9536
9536
  <path d="M9 14l-4 -4l4 -4"></path>
9537
9537
  <path d="M5 10h11a4 4 0 1 1 0 8h-1"></path>
9538
9538
  </svg>`, r.appendChild(c);
9539
- const d = document.createElement("button");
9540
- d.className = "btn-redobrush", d.title = this.out("Redo"), d.innerHTML = `
9539
+ const u = document.createElement("button");
9540
+ u.className = "btn-redobrush", u.title = this.out("Redo"), u.innerHTML = `
9541
9541
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
9542
9542
  class="icon-redo">
9543
9543
  <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
9544
9544
  <path d="M15 14l4 -4l-4 -4"></path>
9545
9545
  <path d="M19 10h-11a4 4 0 1 0 0 8h1"></path>
9546
- </svg>`, r.appendChild(d);
9546
+ </svg>`, r.appendChild(u);
9547
9547
  const o = document.createElement("button");
9548
9548
  o.className = "btn-clearbrush", o.title = this.out("Clear"), o.innerHTML = `
9549
9549
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
@@ -9593,7 +9593,7 @@ class qr {
9593
9593
  f();
9594
9594
  }), c.addEventListener("click", (E) => {
9595
9595
  E.preventDefault(), v.length > 0 && (_.push(g.toDataURL()), y(v.pop()));
9596
- }), d.addEventListener("click", (E) => {
9596
+ }), u.addEventListener("click", (E) => {
9597
9597
  E.preventDefault(), _.length > 0 && (v.push(g.toDataURL()), y(_.pop()));
9598
9598
  });
9599
9599
  const k = document.createElement("img");
@@ -9615,10 +9615,10 @@ class qr {
9615
9615
  g.width = E * H, g.height = $ * H, w.scale(H, H), g.style.width = `${E}px`, g.style.height = `${$}px`;
9616
9616
  const U = k.naturalWidth, J = k.naturalHeight;
9617
9617
  if (S.width = U * H, S.height = J * H, b.scale(H, H), S.style.width = `${U}px`, S.style.height = `${J}px`, C) {
9618
- const F = document.createElement("canvas");
9619
- F.width = C.width, F.height = C.height, F.getContext("2d").putImageData(C, 0, 0);
9618
+ const Y = document.createElement("canvas");
9619
+ Y.width = C.width, Y.height = C.height, Y.getContext("2d").putImageData(C, 0, 0);
9620
9620
  const Q = document.createElement("canvas");
9621
- Q.width = T.width, Q.height = T.height, Q.getContext("2d").putImageData(T, 0, 0), w.drawImage(F, 0, 0, C.width, C.height, 0, 0, g.width, g.height), b.drawImage(Q, 0, 0, T.width, T.height, 0, 0, S.width, S.height);
9621
+ Q.width = T.width, Q.height = T.height, Q.getContext("2d").putImageData(T, 0, 0), w.drawImage(Y, 0, 0, C.width, C.height, 0, 0, g.width, g.height), b.drawImage(Q, 0, 0, T.width, T.height, 0, 0, S.width, S.height);
9622
9622
  }
9623
9623
  };
9624
9624
  let R = !1, B = parseInt(l.value, 10);
@@ -9647,8 +9647,8 @@ class qr {
9647
9647
  const {
9648
9648
  x: $,
9649
9649
  y: H
9650
- } = P(E), U = S.width / g.width, J = S.height / g.height, F = $ * U, ee = H * J;
9651
- w.fillStyle = "rgb(255, 255, 255)", w.beginPath(), w.arc($, H, B / 2, 0, Math.PI * 2), w.fill(), b.fillStyle = "rgb(255, 255, 255)", b.beginPath(), b.arc(F, ee, B / 2 * U, 0, Math.PI * 2), b.fill();
9650
+ } = P(E), U = S.width / g.width, J = S.height / g.height, Y = $ * U, ee = H * J;
9651
+ w.fillStyle = "rgb(255, 255, 255)", w.beginPath(), w.arc($, H, B / 2, 0, Math.PI * 2), w.fill(), b.fillStyle = "rgb(255, 255, 255)", b.beginPath(), b.arc(Y, ee, B / 2 * U, 0, Math.PI * 2), b.fill();
9652
9652
  };
9653
9653
  g.addEventListener("mousedown", D), g.addEventListener("mouseup", M), g.addEventListener("mousemove", q), g.addEventListener("touchstart", (E) => {
9654
9654
  D(E), E.preventDefault();
@@ -9884,7 +9884,7 @@ class Rr {
9884
9884
  l.className = "app-filters", e.appendChild(l);
9885
9885
  const c = document.createElement("ul");
9886
9886
  c.className = "app-list", e.appendChild(c);
9887
- const d = (o) => {
9887
+ const u = (o) => {
9888
9888
  let h = i.filter((g) => o === "all" || g.categories.includes(o));
9889
9889
  const p = this.settings.templateOutput || ["image", "video", "audio", "text"];
9890
9890
  h = h.filter((g) => g.categories.every((w) => p.includes(w))), this.renderList(h, c);
@@ -9892,9 +9892,9 @@ class Rr {
9892
9892
  r.forEach((o) => {
9893
9893
  const h = document.createElement("button");
9894
9894
  h.textContent = a[o].desc, h.setAttribute("data-value", o), o === "all" && h.classList.add("active"), h.addEventListener("click", () => {
9895
- l.querySelectorAll("button").forEach((g) => g.classList.remove("active")), h.classList.add("active"), d(o);
9895
+ l.querySelectorAll("button").forEach((g) => g.classList.remove("active")), h.classList.add("active"), u(o);
9896
9896
  }), l.appendChild(h);
9897
- }), d("all");
9897
+ }), u("all");
9898
9898
  }
9899
9899
  }
9900
9900
  //NEW
@@ -9910,7 +9910,7 @@ class Rr {
9910
9910
  const r = await (await fetch(i)).blob(), a = new File([r], e.split("/").pop(), {
9911
9911
  type: r.type
9912
9912
  });
9913
- this.element.querySelector(".div-selected-preview") || (this.selectedFiles = []), s && s.hasAttribute("multiple") ? this.selectedFiles.some((d) => d.name === a.name) || this.selectedFiles.push(a) : this.selectedFiles = [a], this.setSelectedFiles(this.selectedFiles), this.renderSelectedFiles(), t.closest(".image-mask") && this.objImageMask && this.objImageMask.loadImage(a);
9913
+ this.element.querySelector(".div-selected-preview") || (this.selectedFiles = []), s && s.hasAttribute("multiple") ? this.selectedFiles.some((u) => u.name === a.name) || this.selectedFiles.push(a) : this.selectedFiles = [a], this.setSelectedFiles(this.selectedFiles), this.renderSelectedFiles(), t.closest(".image-mask") && this.objImageMask && this.objImageMask.loadImage(a);
9914
9914
  }
9915
9915
  setSelectedFiles(e) {
9916
9916
  this.selectedFiles = e;
@@ -9980,7 +9980,7 @@ class Rr {
9980
9980
  }
9981
9981
  const c = document.createElement("div");
9982
9982
  c.className = "div-template-buttons";
9983
- let d = !1, o = !1;
9983
+ let u = !1, o = !1;
9984
9984
  if (this.settings.templateButtons && this.settings.templateButtons.viewButton && this.settings.templateButtons.viewButton.text) {
9985
9985
  const h = document.createElement("button");
9986
9986
  h.className = "btn-template-view", h.innerText = this.out(this.settings.templateButtons.viewButton.text), c.appendChild(h), h.addEventListener("click", (p) => {
@@ -9989,7 +9989,7 @@ class Rr {
9989
9989
  return;
9990
9990
  }
9991
9991
  this.settings.onSelectTemplate && this.settings.onSelectTemplate(s), this.trigger("templateView", s);
9992
- }), d = !0;
9992
+ }), u = !0;
9993
9993
  }
9994
9994
  if (this.settings.templateButtons && this.settings.templateButtons.useButton && this.settings.templateButtons.useButton.text) {
9995
9995
  const h = document.createElement("button");
@@ -10004,7 +10004,7 @@ class Rr {
10004
10004
  <div class="description">${s.form.description}</div>
10005
10005
  ${s.info ? ` <div class="info mt-1">${s.info}</div>` : ""}
10006
10006
  </div>
10007
- `, d || o ? (n.querySelector(".card-text").appendChild(c), n.classList.remove("cursor-pointer"), n.classList.add("cursor-default")) : (n.classList.add("cursor-pointer"), n.classList.remove("cursor-default")), i.appendChild(n), d || o || n.addEventListener("click", (h) => {
10007
+ `, u || o ? (n.querySelector(".card-text").appendChild(c), n.classList.remove("cursor-pointer"), n.classList.add("cursor-default")) : (n.classList.add("cursor-pointer"), n.classList.remove("cursor-default")), i.appendChild(n), u || o || n.addEventListener("click", (h) => {
10008
10008
  if (h.preventDefault(), this.isGenerating) {
10009
10009
  alert(this.out("Please wait until generation is complete."));
10010
10010
  return;
@@ -10026,33 +10026,33 @@ class Rr {
10026
10026
  i.body.innerText.trim() === "" && (a = !0);
10027
10027
  const c = document.createElement("div");
10028
10028
  c.className = "result-tool", e.appendChild(c);
10029
- const d = document.createElement("button");
10030
- d.className = "btn-result-tool", d.innerHTML = `
10029
+ const u = document.createElement("button");
10030
+ u.className = "btn-result-tool", u.innerHTML = `
10031
10031
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round">
10032
10032
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z" /><path d="M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1" />
10033
10033
  </svg>
10034
10034
  <span>${this.out("Copy")}</span>
10035
- `, a || c.appendChild(d);
10035
+ `, a || c.appendChild(u);
10036
10036
  const o = document.createElement("button");
10037
10037
  o.className = "btn-result-tool", o.innerHTML = `
10038
10038
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round">
10039
10039
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M4 7l16 0" /><path d="M10 11l0 6" /><path d="M14 11l0 6" /><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" /><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3" />
10040
10040
  </svg>
10041
10041
  <span>${this.out("Clear")}</span>
10042
- `, c.appendChild(o), d && d.addEventListener("click", (h) => {
10042
+ `, c.appendChild(o), u && u.addEventListener("click", (h) => {
10043
10043
  h.preventDefault();
10044
10044
  const p = e.cloneNode(!0), g = p.querySelector(".result-tool");
10045
10045
  g && g.remove(), p.querySelectorAll(".link-view, .link-download").forEach((b) => {
10046
10046
  b.remove();
10047
10047
  }), p.style.position = "fixed", p.style.left = "-9999px", document.body.appendChild(p);
10048
10048
  const S = p.innerText.trim();
10049
- document.body.removeChild(p), navigator.clipboard.writeText(S), d.innerHTML = `
10049
+ document.body.removeChild(p), navigator.clipboard.writeText(S), u.innerHTML = `
10050
10050
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round">
10051
10051
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path stroke="none" d="M0 0h24v24H0z" /><path d="M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z" /><path d="M4.012 16.737a2 2 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1" /><path d="M11 14l2 2l4 -4" />
10052
10052
  </svg>
10053
10053
  <span>${this.out("Copied")}</span>
10054
10054
  `, setTimeout(() => {
10055
- d.innerHTML = `
10055
+ u.innerHTML = `
10056
10056
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round">
10057
10057
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z" /><path d="M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1" />
10058
10058
  </svg>
@@ -10659,7 +10659,7 @@ class Rr {
10659
10659
  </div>
10660
10660
  `;
10661
10661
  this.appendHtml(m, E);
10662
- const $ = p.querySelector(".livevideo"), H = p.querySelector(".photo-captured"), U = p.querySelector(".btn-selectfile2"), J = p.querySelector(".btn-takephoto2"), F = p.querySelector(".btn-capturephoto"), ee = p.querySelector(".btn-clearphoto"), Q = p.querySelector(".btn-stopcamera");
10662
+ const $ = p.querySelector(".livevideo"), H = p.querySelector(".photo-captured"), U = p.querySelector(".btn-selectfile2"), J = p.querySelector(".btn-takephoto2"), Y = p.querySelector(".btn-capturephoto"), ee = p.querySelector(".btn-clearphoto"), Q = p.querySelector(".btn-stopcamera");
10663
10663
  this.photoBlob = {};
10664
10664
  let he;
10665
10665
  U && U.addEventListener("click", (N) => {
@@ -10673,10 +10673,10 @@ class Rr {
10673
10673
  video: !0
10674
10674
  }), $.srcObject = he;
10675
10675
  } catch {
10676
- alert("Unable to access the camera."), $.style.display = "none", F.style.display = "none", Q.style.display = "none", y.style.display = "none", R.style.display = "none";
10676
+ alert("Unable to access the camera."), $.style.display = "none", Y.style.display = "none", Q.style.display = "none", y.style.display = "none", R.style.display = "none";
10677
10677
  }
10678
10678
  setTimeout(() => {
10679
- J.style.display = "none", H.style.display = "none", $.style.display = "", F.style.display = "", ee.style.display = "none", U && (U.style.display = "none"), J.style.display = "none", Q.style.display = "", y.style.display = "none", R.style.display = "none";
10679
+ J.style.display = "none", H.style.display = "none", $.style.display = "", Y.style.display = "", ee.style.display = "none", U && (U.style.display = "none"), J.style.display = "none", Q.style.display = "", y.style.display = "none", R.style.display = "none";
10680
10680
  }, 100);
10681
10681
  };
10682
10682
  T && T.addEventListener("click", async (N) => {
@@ -10684,9 +10684,9 @@ class Rr {
10684
10684
  }), J.addEventListener("click", async (N) => {
10685
10685
  N.preventDefault(), Ee();
10686
10686
  }), Q.addEventListener("click", () => {
10687
- he && he.getTracks().forEach((N) => N.stop()), $.style.display = "none", F.style.display = "none", Q.style.display = "none", J.style.display = "none", y.style.display = "", R.style.display = "";
10688
- }), F.addEventListener("click", (N) => {
10689
- if (N.preventDefault(), H.style.display = "", H.width = $.videoWidth, H.height = $.videoHeight, H.getContext("2d").drawImage($, 0, 0, H.width, H.height), he.getTracks().forEach((G) => G.stop()), $.style.display = "none", F.style.display = "none", ee.style.display = "", U && (U.style.display = ""), J.style.display = "", Q.style.display = "none", H.toBlob((G) => {
10687
+ he && he.getTracks().forEach((N) => N.stop()), $.style.display = "none", Y.style.display = "none", Q.style.display = "none", J.style.display = "none", y.style.display = "", R.style.display = "";
10688
+ }), Y.addEventListener("click", (N) => {
10689
+ if (N.preventDefault(), H.style.display = "", H.width = $.videoWidth, H.height = $.videoHeight, H.getContext("2d").drawImage($, 0, 0, H.width, H.height), he.getTracks().forEach((G) => G.stop()), $.style.display = "none", Y.style.display = "none", ee.style.display = "", U && (U.style.display = ""), J.style.display = "", Q.style.display = "none", H.toBlob((G) => {
10690
10690
  this.photoBlob[w] = G, _.removeAttribute("required");
10691
10691
  }, "image/jpeg"), J.style.display = "", o.useImageMask) {
10692
10692
  const G = H.toDataURL("image/jpeg");
@@ -10702,9 +10702,9 @@ class Rr {
10702
10702
  });
10703
10703
  const Te = (N, G) => {
10704
10704
  const ie = `.${N.split(".").pop().toLowerCase()}`;
10705
- if (!P.some((Y) => Y.extensions.split(", ").includes(ie)))
10705
+ if (!P.some((F) => F.extensions.split(", ").includes(ie)))
10706
10706
  return;
10707
- let fe = B.images.some((Y) => Y.extensions.split(", ").includes(ie));
10707
+ let fe = B.images.some((F) => F.extensions.split(", ").includes(ie));
10708
10708
  if (o.useImageMask) {
10709
10709
  if (!fe)
10710
10710
  return;
@@ -10718,21 +10718,21 @@ class Rr {
10718
10718
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
10719
10719
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M19 20h-10.5l-4.21 -4.3a1 1 0 0 1 0 -1.41l10 -10a1 1 0 0 1 1.41 0l5 5a1 1 0 0 1 0 1.41l-9.2 9.3" /><path d="M18 13.3l-6.3 -6.3" />
10720
10720
  </svg>
10721
- `, R.appendChild(se), se.addEventListener("click", (Y) => {
10721
+ `, R.appendChild(se), se.addEventListener("click", (F) => {
10722
10722
  let pe = se.closest(".form-field").querySelector(".img-preview");
10723
10723
  pe && pe.remove(), v.value = "", _.value = "", R.innerHTML = "", k.innerText = this.out(this.settings.fileUploadText), o.useImageMask && q.clearImage();
10724
10724
  const Me = document.querySelector(".formview-container .submit-container");
10725
10725
  Me && setTimeout(() => {
10726
10726
  this.stickyElement(Me);
10727
- }, 1e3), Y.preventDefault(), Y.stopImmediatePropagation();
10727
+ }, 1e3), F.preventDefault(), F.stopImmediatePropagation();
10728
10728
  }), fe) {
10729
- let Y = m.querySelector(".formview-container .img-preview");
10730
- Y || (Y = document.createElement("img"), Y.className = "img-preview", m.appendChild(Y)), Y.src = N;
10729
+ let F = m.querySelector(".formview-container .img-preview");
10730
+ F || (F = document.createElement("img"), F.className = "img-preview", m.appendChild(F)), F.src = N;
10731
10731
  } else
10732
10732
  I();
10733
10733
  if (!G) {
10734
- const Y = this.getFormValues();
10735
- this.settings.onInputChange && this.settings.onInputChange(Y);
10734
+ const F = this.getFormValues();
10735
+ this.settings.onInputChange && this.settings.onInputChange(F);
10736
10736
  }
10737
10737
  const te = document.querySelector(".formview-container .submit-container");
10738
10738
  te && setTimeout(() => {
@@ -10762,8 +10762,8 @@ class Rr {
10762
10762
  <path stroke-linecap="round" stroke-linejoin="round" d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0" />
10763
10763
  </svg>
10764
10764
  `, R.appendChild(ce), ce.addEventListener("click", (se) => {
10765
- let Y = ce.closest(".form-field").querySelector(".img-preview");
10766
- Y && Y.remove(), _.value = "", R.innerHTML = "", k.innerText = this.out(this.settings.fileUploadText), o.useImageMask && q.clearImage();
10765
+ let F = ce.closest(".form-field").querySelector(".img-preview");
10766
+ F && F.remove(), _.value = "", R.innerHTML = "", k.innerText = this.out(this.settings.fileUploadText), o.useImageMask && q.clearImage();
10767
10767
  const Se = document.querySelector(".formview-container .submit-container");
10768
10768
  Se && setTimeout(() => {
10769
10769
  this.stickyElement(Se);
@@ -10771,8 +10771,8 @@ class Rr {
10771
10771
  }), N.type.startsWith("image/")) {
10772
10772
  const se = new FileReader();
10773
10773
  se.onload = function(te) {
10774
- let Y = m.querySelector(".formview-container .img-preview");
10775
- Y || (Y = document.createElement("img"), Y.className = "img-preview", m.appendChild(Y)), Y.src = te.target.result;
10774
+ let F = m.querySelector(".formview-container .img-preview");
10775
+ F || (F = document.createElement("img"), F.className = "img-preview", m.appendChild(F)), F.src = te.target.result;
10776
10776
  }, se.readAsDataURL(N);
10777
10777
  } else
10778
10778
  I();
@@ -10785,7 +10785,7 @@ class Rr {
10785
10785
  }
10786
10786
  }, re = (N) => {
10787
10787
  if (N) {
10788
- if (P = P.concat(B.images), !P.some((Y) => Y.type === N.type)) {
10788
+ if (P = P.concat(B.images), !P.some((F) => F.type === N.type)) {
10789
10789
  alert(this.out("Invalid file type."));
10790
10790
  return;
10791
10791
  }
@@ -10800,7 +10800,7 @@ class Rr {
10800
10800
  <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
10801
10801
  <path stroke-linecap="round" stroke-linejoin="round" d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0" />
10802
10802
  </svg>
10803
- `, ce.appendChild(le), le.addEventListener("click", (Y) => {
10803
+ `, ce.appendChild(le), le.addEventListener("click", (F) => {
10804
10804
  const Se = le.closest(".image-item");
10805
10805
  Se && Se.remove(), ((ne) => {
10806
10806
  const Pe = new DataTransfer(), Ce = _.files;
@@ -10811,13 +10811,13 @@ class Rr {
10811
10811
  const Me = document.querySelector(".formview-container .submit-container");
10812
10812
  Me && setTimeout(() => {
10813
10813
  this.stickyElement(Me);
10814
- }, 1e3), Y.preventDefault(), Y.stopImmediatePropagation();
10814
+ }, 1e3), F.preventDefault(), F.stopImmediatePropagation();
10815
10815
  }), N.type.startsWith("image/")) {
10816
- const Y = new FileReader();
10817
- Y.onload = function(Se) {
10816
+ const F = new FileReader();
10817
+ F.onload = function(Se) {
10818
10818
  let pe = document.createElement("img");
10819
10819
  pe.className = "img-preview", ie.appendChild(pe), pe.src = Se.target.result;
10820
- }, Y.readAsDataURL(N);
10820
+ }, F.readAsDataURL(N);
10821
10821
  }
10822
10822
  const se = this.getFormValues();
10823
10823
  this.settings.onInputChange && this.settings.onInputChange(se);
@@ -10941,34 +10941,34 @@ class Rr {
10941
10941
  });
10942
10942
  }
10943
10943
  }
10944
- let c, d;
10945
- this.settings.resultSelector && (c = document.querySelector(this.settings.resultSelector), c.classList.add("result-wrapper"), c.innerHTML = "", d = document.createElement("div"), d.classList.add("result-container"), c.appendChild(d)), t.elements && c && t.elements.forEach((o) => {
10944
+ let c, u;
10945
+ this.settings.resultSelector && (c = document.querySelector(this.settings.resultSelector), c.classList.add("result-wrapper"), c.innerHTML = "", u = document.createElement("div"), u.classList.add("result-container"), c.appendChild(u)), t.elements && c && t.elements.forEach((o) => {
10946
10946
  if (o.displayInOutput) {
10947
10947
  if (o.type === "spacer") {
10948
10948
  const p = document.createElement("div");
10949
- p.className = "form-spacer", o.spacerHeight && !isNaN(parseFloat(o.spacerHeight)) && (p.style.height = o.spacerHeight + "px"), d.appendChild(p);
10949
+ p.className = "form-spacer", o.spacerHeight && !isNaN(parseFloat(o.spacerHeight)) && (p.style.height = o.spacerHeight + "px"), u.appendChild(p);
10950
10950
  return;
10951
10951
  }
10952
10952
  if (o.type === "separator") {
10953
10953
  const p = document.createElement("hr");
10954
- p.style.borderTopColor = o.color, d.appendChild(p);
10954
+ p.style.borderTopColor = o.color, u.appendChild(p);
10955
10955
  return;
10956
10956
  }
10957
10957
  if (o.type === "html") {
10958
10958
  if (o.html) {
10959
10959
  const p = document.createElement("div");
10960
- p.innerHTML = o.html, d.appendChild(p);
10960
+ p.innerHTML = o.html, u.appendChild(p);
10961
10961
  }
10962
10962
  return;
10963
10963
  }
10964
10964
  if (o.type === "heading") {
10965
10965
  const p = document.createElement(o.heading || "h2");
10966
- p.innerHTML = o.headingText || this.out("Your Heading Here!"), d.appendChild(p);
10966
+ p.innerHTML = o.headingText || this.out("Your Heading Here!"), u.appendChild(p);
10967
10967
  return;
10968
10968
  }
10969
10969
  if (o.type === "paragraph") {
10970
10970
  const p = document.createElement("p");
10971
- p.innerHTML = o.paragraphText || this.out("Your paragraph content here!"), d.appendChild(p);
10971
+ p.innerHTML = o.paragraphText || this.out("Your paragraph content here!"), u.appendChild(p);
10972
10972
  return;
10973
10973
  }
10974
10974
  if (o.type === "media") {
@@ -10976,35 +10976,35 @@ class Rr {
10976
10976
  const p = document.createElement("video");
10977
10977
  p.style.width = "100%", p.style.height = "auto", p.controls = !0;
10978
10978
  var h = document.createElement("source");
10979
- h.src = o.url, h.type = "video/mp4", p.appendChild(h), d.appendChild(p);
10979
+ h.src = o.url, h.type = "video/mp4", p.appendChild(h), u.appendChild(p);
10980
10980
  } else if (o.tag === "audio") {
10981
10981
  const p = document.createElement("audio");
10982
10982
  p.controls = !0;
10983
10983
  let g = document.createElement("source");
10984
- g.src = o.url, g.type = "audio/mp3", p.appendChild(g), d.appendChild(p);
10984
+ g.src = o.url, g.type = "audio/mp3", p.appendChild(g), u.appendChild(p);
10985
10985
  } else if (o.tag === "img") {
10986
10986
  const p = document.createElement("img");
10987
- p.src = o.url, p.setAttribute("alt", this.out("Output Image")), d.appendChild(p);
10987
+ p.src = o.url, p.setAttribute("alt", this.out("Output Image")), u.appendChild(p);
10988
10988
  }
10989
10989
  return;
10990
10990
  }
10991
10991
  if (o.type === "image") {
10992
10992
  const p = document.createElement("img");
10993
- p.src = o.url, p.setAttribute("alt", this.out("Output Image")), d.appendChild(p);
10993
+ p.src = o.url, p.setAttribute("alt", this.out("Output Image")), u.appendChild(p);
10994
10994
  return;
10995
10995
  }
10996
10996
  if (o.type === "video") {
10997
10997
  const p = document.createElement("video");
10998
10998
  p.style.width = "100%", p.style.height = "auto", p.controls = !0;
10999
10999
  let g = document.createElement("source");
11000
- g.src = o.url, g.type = "video/mp4", p.appendChild(g), d.appendChild(p);
11000
+ g.src = o.url, g.type = "video/mp4", p.appendChild(g), u.appendChild(p);
11001
11001
  return;
11002
11002
  }
11003
11003
  if (o.type === "audio") {
11004
11004
  const p = document.createElement("audio");
11005
11005
  p.controls = !0;
11006
11006
  let g = document.createElement("source");
11007
- g.src = o.url, g.type = "audio/mp3", p.appendChild(g), d.appendChild(p);
11007
+ g.src = o.url, g.type = "audio/mp3", p.appendChild(g), u.appendChild(p);
11008
11008
  return;
11009
11009
  }
11010
11010
  }
@@ -11018,13 +11018,13 @@ class Rr {
11018
11018
  r.innerHTML = n, this.addResultTool(), r.querySelectorAll(".link-download").forEach((l) => {
11019
11019
  l.addEventListener("click", async (c) => {
11020
11020
  c.preventDefault();
11021
- const d = c.target.href;
11021
+ const u = c.target.href;
11022
11022
  try {
11023
- const o = await fetch(d, {
11023
+ const o = await fetch(u, {
11024
11024
  mode: "cors"
11025
11025
  });
11026
11026
  if (!o.ok) throw new Error("Failed to fetch the image.");
11027
- const h = await o.blob(), p = d.substring(d.lastIndexOf("/") + 1), g = document.createElement("a");
11027
+ const h = await o.blob(), p = u.substring(u.lastIndexOf("/") + 1), g = document.createElement("a");
11028
11028
  g.href = URL.createObjectURL(h), g.download = p, g.click(), URL.revokeObjectURL(g.href);
11029
11029
  } catch (o) {
11030
11030
  console.error("Error downloading the image:", o);
@@ -11099,7 +11099,7 @@ class Rr {
11099
11099
  let r = [], a = [];
11100
11100
  if (this.settings.scrapeProvider === "firecrawl" && n.forEach((l) => {
11101
11101
  if (l.success) {
11102
- const c = l.metadata.title, d = l.markdown, o = l.metadata.url;
11102
+ const c = l.metadata.title, u = l.markdown, o = l.metadata.url;
11103
11103
  r.push(o), i += `
11104
11104
 
11105
11105
 
@@ -11107,7 +11107,7 @@ class Rr {
11107
11107
 
11108
11108
  Source: ${o}
11109
11109
 
11110
- ${d}
11110
+ ${u}
11111
11111
 
11112
11112
 
11113
11113
  ----------------
@@ -11117,8 +11117,8 @@ class Rr {
11117
11117
  } else {
11118
11118
  let c = l.url;
11119
11119
  if (c) {
11120
- const d = l.url;
11121
- a.push(d);
11120
+ const u = l.url;
11121
+ a.push(u);
11122
11122
  } else
11123
11123
  c = l.url.link, a.push(c);
11124
11124
  }
@@ -11126,13 +11126,13 @@ class Rr {
11126
11126
  for (let l = 0; l < n.length; l++) {
11127
11127
  let c = e[l];
11128
11128
  r.push(c);
11129
- let d = n[l];
11129
+ let u = n[l];
11130
11130
  i += `
11131
11131
 
11132
11132
 
11133
11133
  ## ${c}
11134
11134
 
11135
- ${d}
11135
+ ${u}
11136
11136
 
11137
11137
 
11138
11138
  ----------------
@@ -11224,16 +11224,16 @@ ${e}`);
11224
11224
  if (r.url && r.needscrape && this.settings.scrapeUrl) {
11225
11225
  let c = document.createElement("p");
11226
11226
  c.innerHTML = this.out("Fetching data from the web..."), i.appendChild(c);
11227
- let d = [];
11228
- r.url && d.push(r.url), r.url2 && d.push(r.url2), r.url3 && d.push(r.url3), r.url4 && d.push(r.url4), r.url5 && d.push(r.url5), r.url6 && d.push(r.url6), r.url7 && d.push(r.url7), r.url8 && d.push(r.url8);
11229
- let o = await this.scrapeUrls(d);
11227
+ let u = [];
11228
+ r.url && u.push(r.url), r.url2 && u.push(r.url2), r.url3 && u.push(r.url3), r.url4 && u.push(r.url4), r.url5 && u.push(r.url5), r.url6 && u.push(r.url6), r.url7 && u.push(r.url7), r.url8 && u.push(r.url8);
11229
+ let o = await this.scrapeUrls(u);
11230
11230
  n += o.data, a = o.urls, l = o.failed;
11231
11231
  } else if (this.settings.searchUrl && this.settings.scrapeUrl) {
11232
11232
  let c = document.createElement("p");
11233
11233
  c.innerHTML = this.out("Searching the web.."), i.appendChild(c);
11234
- let d = await this.search(e);
11234
+ let u = await this.search(e);
11235
11235
  const o = this.settings.scrapeExclude;
11236
- let h = d.filter((b) => {
11236
+ let h = u.filter((b) => {
11237
11237
  let x = new URL(b.link).hostname;
11238
11238
  return !o.some((m) => x.includes(m));
11239
11239
  });
@@ -11241,7 +11241,7 @@ ${e}`);
11241
11241
  i.innerHTML = "", c = document.createElement("p"), c.innerHTML = this.out("Getting more information..."), i.appendChild(c);
11242
11242
  let w = [];
11243
11243
  for (let b = 0; b < g.length; b++)
11244
- w.push(d[b].link);
11244
+ w.push(u[b].link);
11245
11245
  let S = await this.scrapeUrls(w);
11246
11246
  n += S.data, a = S.urls, l = S.failed;
11247
11247
  }
@@ -11372,7 +11372,7 @@ ${e}`);
11372
11372
  </span>
11373
11373
  ${this.out("Abort")}
11374
11374
  `, this.isNormal = !0), this.isGenerating = !0;
11375
- let d = (v, _) => {
11375
+ let u = (v, _) => {
11376
11376
  if (v === void 0) return "";
11377
11377
  if (!isNaN(v)) return v;
11378
11378
  let f = v;
@@ -11407,7 +11407,7 @@ ${e}`);
11407
11407
  if (f.value === void 0 && (f.value = ""), typeof f.value == "object" && Array.isArray(f.value)) {
11408
11408
  const y = f.value.join(", ");
11409
11409
  _ = _.replaceAll(`{{${f.name}}}`, y), _ = _.replaceAll(`{{${f.name.toUpperCase()}}}`, y);
11410
- } else f.value instanceof FileList || typeof f.value == "string" && f.value.indexOf("base64") !== -1 ? (_ = _.replaceAll(`{{${f.name}}}`, f.name), _ = _.replaceAll(`{{${f.name.toUpperCase()}}}`, f.name)) : (_ = _.replaceAll(`{{${f.name}}}`, d(f.value, v.prompt)), _ = _.replaceAll(`{{${f.name.toUpperCase()}}}`, d(f.value, v.prompt)));
11410
+ } else f.value instanceof FileList || typeof f.value == "string" && f.value.indexOf("base64") !== -1 ? (_ = _.replaceAll(`{{${f.name}}}`, f.name), _ = _.replaceAll(`{{${f.name.toUpperCase()}}}`, f.name)) : (_ = _.replaceAll(`{{${f.name}}}`, u(f.value, v.prompt)), _ = _.replaceAll(`{{${f.name.toUpperCase()}}}`, u(f.value, v.prompt)));
11411
11411
  }), v.prompt = _;
11412
11412
  }), o.forEach((v) => {
11413
11413
  let _ = v.context;
@@ -11415,7 +11415,7 @@ ${e}`);
11415
11415
  if (f.value || (f.value = ""), typeof f.value == "object" && Array.isArray(f.value)) {
11416
11416
  const y = f.value.join(", ");
11417
11417
  _ = _.replaceAll(`{{${f.name}}}`, y), _ = _.replaceAll(`{{${f.name.toUpperCase()}}}`, y);
11418
- } else f.value instanceof FileList || typeof f.value == "string" && f.value.indexOf("base64") !== -1 ? (_ = _.replaceAll(`{{${f.name}}}`, f.name), _ = _.replaceAll(`{{${f.name.toUpperCase()}}}`, f.name)) : (_ = _.replaceAll(`{{${f.name}}}`, d(f.value, v.prompt)), _ = _.replaceAll(`{{${f.name.toUpperCase()}}}`, d(f.value, v.prompt)));
11418
+ } else f.value instanceof FileList || typeof f.value == "string" && f.value.indexOf("base64") !== -1 ? (_ = _.replaceAll(`{{${f.name}}}`, f.name), _ = _.replaceAll(`{{${f.name.toUpperCase()}}}`, f.name)) : (_ = _.replaceAll(`{{${f.name}}}`, u(f.value, v.prompt)), _ = _.replaceAll(`{{${f.name.toUpperCase()}}}`, u(f.value, v.prompt)));
11419
11419
  }), v.context = _;
11420
11420
  });
11421
11421
  }
@@ -11495,10 +11495,10 @@ ${q.data}
11495
11495
  let J = 0;
11496
11496
  for (; J < U.length; ) {
11497
11497
  if ($ = I.slice(0, $.length + 1), J++, !O) {
11498
- const F = oe.parse($);
11499
- R.innerHTML = F, E = F;
11498
+ const Y = oe.parse($);
11499
+ R.innerHTML = Y, E = Y;
11500
11500
  }
11501
- await new Promise((F) => setTimeout(F, 50));
11501
+ await new Promise((Y) => setTimeout(Y, 50));
11502
11502
  }
11503
11503
  };
11504
11504
  await this.sendStream(v, _, k, y, C, async (U) => {
@@ -11559,10 +11559,10 @@ ${q.data}
11559
11559
  let P = f;
11560
11560
  this.previousResults.forEach((M, q) => {
11561
11561
  const I = `{{output_step_${q + 1}}}`;
11562
- P = P.replace(new RegExp(I, "g"), d(M, f)), P = P.replace(new RegExp(I.toUpperCase(), "g"), d(M, f));
11562
+ P = P.replace(new RegExp(I, "g"), u(M, f)), P = P.replace(new RegExp(I.toUpperCase(), "g"), u(M, f));
11563
11563
  }), f = P, f = f.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim(), this.settings.consoleLog && console.log(f), P = y, this.previousResults.forEach((M, q) => {
11564
11564
  const I = `{{output_step_${q + 1}}}`;
11565
- P = P.replace(new RegExp(I, "g"), d(M, f)), P = P.replace(new RegExp(I.toUpperCase(), "g"), d(M, f));
11565
+ P = P.replace(new RegExp(I, "g"), u(M, f)), P = P.replace(new RegExp(I.toUpperCase(), "g"), u(M, f));
11566
11566
  }), y = P, y = y.replace(/[\u00A0\u2000-\u200B\u202F\u205F\u3000\uFEFF]/g, " ").trim();
11567
11567
  let D = await p(f, y, k, C, T, O, R, B);
11568
11568
  if (!D)
@@ -11690,13 +11690,13 @@ ${q.data}
11690
11690
  name: a,
11691
11691
  type: l,
11692
11692
  value: c,
11693
- checked: d,
11693
+ checked: u,
11694
11694
  files: o
11695
11695
  } = r;
11696
11696
  if (l === "checkbox")
11697
- a = a.replace("[]", ""), d && (s[a] = s[a] || [], c === "other" && (c = e.querySelector(`[name="${a + "_other"}"]`).value), s[a].push(c));
11697
+ a = a.replace("[]", ""), u && (s[a] = s[a] || [], c === "other" && (c = e.querySelector(`[name="${a + "_other"}"]`).value), s[a].push(c));
11698
11698
  else if (l === "radio")
11699
- d && (c === "other" && (c = e.querySelector(`[name="${a + "_other"}"]`).value), s[a] = c);
11699
+ u && (c === "other" && (c = e.querySelector(`[name="${a + "_other"}"]`).value), s[a] = c);
11700
11700
  else if (l === "select-one")
11701
11701
  c === "other" && (c = e.querySelector(`[name="${a + "_other"}"]`).value), s[a] = c;
11702
11702
  else if (l === "file")
@@ -11715,40 +11715,40 @@ ${q.data}
11715
11715
  return this.json.elements.forEach((r) => {
11716
11716
  let a = r.title, l = r.name, c = r.type;
11717
11717
  if (l === "") return;
11718
- let d = s[l], o = {
11718
+ let u = s[l], o = {
11719
11719
  questions: a,
11720
11720
  name: l,
11721
- value: d,
11721
+ value: u,
11722
11722
  type: c
11723
11723
  };
11724
11724
  i.push(o);
11725
11725
  let h = l + "__url";
11726
- d = s[h], d && (o = {
11726
+ u = s[h], u && (o = {
11727
11727
  questions: a,
11728
11728
  name: h,
11729
- value: d
11730
- }, i.push(o)), r.useImageMask && (l = l + "_mask", d = s[l], o = {
11729
+ value: u
11730
+ }, i.push(o)), r.useImageMask && (l = l + "_mask", u = s[l], o = {
11731
11731
  questions: a,
11732
11732
  name: l,
11733
- value: d
11733
+ value: u
11734
11734
  }, i.push(o));
11735
11735
  let p = l + "_red";
11736
- d = s[p], d !== void 0 && (o = {
11736
+ u = s[p], u !== void 0 && (o = {
11737
11737
  questions: a,
11738
11738
  name: p,
11739
- value: d
11739
+ value: u
11740
11740
  }, i.push(o));
11741
11741
  let g = l + "_green";
11742
- d = s[g], d !== void 0 && (o = {
11742
+ u = s[g], u !== void 0 && (o = {
11743
11743
  questions: a,
11744
11744
  name: g,
11745
- value: d
11745
+ value: u
11746
11746
  }, i.push(o));
11747
11747
  let w = l + "_blue";
11748
- d = s[w], d !== void 0 && (o = {
11748
+ u = s[w], u !== void 0 && (o = {
11749
11749
  questions: a,
11750
11750
  name: w,
11751
- value: d
11751
+ value: u
11752
11752
  }, i.push(o));
11753
11753
  }), this.settings.consoleLog && console.log(i), i;
11754
11754
  }
@@ -11782,14 +11782,14 @@ ${q.data}
11782
11782
  customData: this.settings.customData
11783
11783
  };
11784
11784
  try {
11785
- let d = {
11785
+ let u = {
11786
11786
  "Content-Type": "application/json",
11787
11787
  ...this.settings.headers
11788
11788
  }, h = await (await fetch(this.settings.sendCommandUrl, {
11789
11789
  signal: this.signal,
11790
11790
  // Abort
11791
11791
  method: "POST",
11792
- headers: d,
11792
+ headers: u,
11793
11793
  body: JSON.stringify(c)
11794
11794
  })).json();
11795
11795
  if (h.error)
@@ -11802,15 +11802,15 @@ ${q.data}
11802
11802
  }), p;
11803
11803
  } else
11804
11804
  return h.answer;
11805
- } catch (d) {
11806
- return d.name === "AbortError" ? this.settings.consoleLog && console.log("Request aborted by user.") : console.error("Error:", d), !1;
11805
+ } catch (u) {
11806
+ return u.name === "AbortError" ? this.settings.consoleLog && console.log("Request aborted by user.") : console.error("Error:", u), !1;
11807
11807
  }
11808
11808
  }
11809
11809
  async sendStream(e, t, s, i, n, r) {
11810
11810
  this.controller = new AbortController(), this.signal = this.controller.signal;
11811
11811
  let a = 0.6, l = 0.9, c = 1;
11812
11812
  n || (n = []), i = i || this.settings.model;
11813
- const d = {
11813
+ const u = {
11814
11814
  question: e,
11815
11815
  context: t,
11816
11816
  system: s,
@@ -11831,7 +11831,7 @@ ${q.data}
11831
11831
  // Abort
11832
11832
  method: "POST",
11833
11833
  headers: o,
11834
- body: JSON.stringify(d)
11834
+ body: JSON.stringify(u)
11835
11835
  });
11836
11836
  if (!h.ok)
11837
11837
  return console.error("Error:", h.statusText), !1;
@@ -11895,20 +11895,20 @@ ${q.data}
11895
11895
  customData: this.settings.customData
11896
11896
  };
11897
11897
  try {
11898
- let d = {
11898
+ let u = {
11899
11899
  "Content-Type": "application/json",
11900
11900
  ...this.settings.headers
11901
11901
  }, h = await (await fetch(this.settings.assistantUrl, {
11902
11902
  signal: this.signal,
11903
11903
  // Abort
11904
11904
  method: "POST",
11905
- headers: d,
11905
+ headers: u,
11906
11906
  body: JSON.stringify(c)
11907
11907
  })).json();
11908
11908
  return h.error ? (console.log(`Error:
11909
11909
  ` + h.error), !1) : (h.usage && (this.tokenInput += h.usage.prompt_tokens, this.tokenOutput += h.usage.completion_tokens), h.answer.content[0].text.value);
11910
- } catch (d) {
11911
- return d.name === "AbortError" ? this.settings.consoleLog && console.log("Request aborted by user.") : console.error("Error:", d), !1;
11910
+ } catch (u) {
11911
+ return u.name === "AbortError" ? this.settings.consoleLog && console.log("Request aborted by user.") : console.error("Error:", u), !1;
11912
11912
  }
11913
11913
  }
11914
11914
  async assistantStream(e, t, s, i, n) {
@@ -11928,7 +11928,7 @@ ${q.data}
11928
11928
  customData: this.settings.customData
11929
11929
  };
11930
11930
  try {
11931
- let d = {
11931
+ let u = {
11932
11932
  "Content-Type": "application/json",
11933
11933
  ...this.settings.headers
11934
11934
  };
@@ -11936,7 +11936,7 @@ ${q.data}
11936
11936
  signal: this.signal,
11937
11937
  // Abort
11938
11938
  method: "POST",
11939
- headers: d,
11939
+ headers: u,
11940
11940
  body: JSON.stringify(c)
11941
11941
  });
11942
11942
  if (!o.ok)
@@ -11978,8 +11978,8 @@ ${q.data}
11978
11978
  }
11979
11979
  }
11980
11980
  return !0;
11981
- } catch (d) {
11982
- return d.name === "AbortError" ? this.settings.consoleLog && console.log("Request aborted by user.") : console.error("Error:", d), !1;
11981
+ } catch (u) {
11982
+ return u.name === "AbortError" ? this.settings.consoleLog && console.log("Request aborted by user.") : console.error("Error:", u), !1;
11983
11983
  }
11984
11984
  }
11985
11985
  hexToRgb(e) {
@@ -12035,9 +12035,9 @@ class Ir {
12035
12035
  let s, i, n, r, a = t.split(" ");
12036
12036
  for (s = 0, n = a.length; s < n; ++s) {
12037
12037
  if (!a[s]) continue;
12038
- let l = a[s], c = "", d = e.className.split(" ");
12039
- for (i = 0, r = d.length; i < r; ++i)
12040
- d[i] && d[i] !== l && (c += d[i] + " ");
12038
+ let l = a[s], c = "", u = e.className.split(" ");
12039
+ for (i = 0, r = u.length; i < r; ++i)
12040
+ u[i] && u[i] !== l && (c += u[i] + " ");
12041
12041
  e.className = c.trim();
12042
12042
  }
12043
12043
  e.className === "" && e.removeAttribute("class");
@@ -12294,14 +12294,14 @@ class jr {
12294
12294
  W.removeClass(g, "active");
12295
12295
  }
12296
12296
  });
12297
- const d = document.querySelector("#is_txtSearch");
12298
- d.addEventListener("keydown", (h) => {
12299
- if (h.which == 13 && this.settings.onSearch(d.value), h.which == 27) {
12297
+ const u = document.querySelector("#is_txtSearch");
12298
+ u.addEventListener("keydown", (h) => {
12299
+ if (h.which == 13 && this.settings.onSearch(u.value), h.which == 27) {
12300
12300
  const p = document.querySelector(".is-menu-search-input");
12301
12301
  W.removeClass(p, "active"), document.querySelector(".is-menu-search").focus();
12302
12302
  }
12303
12303
  }), document.querySelector("#is_btnSearch").addEventListener("click", () => {
12304
- this.settings.onSearch(d.value);
12304
+ this.settings.onSearch(u.value);
12305
12305
  });
12306
12306
  }
12307
12307
  getScrollbarWidth() {
@@ -12322,6 +12322,8 @@ class Nr {
12322
12322
  // Simple on/off for external plugins
12323
12323
  trustedDomains: [],
12324
12324
  // Optional: whitelist specific domains
12325
+ onReInit: () => {
12326
+ },
12325
12327
  ...e
12326
12328
  }, this.plugins = /* @__PURE__ */ new Map(), this.loadedStyles = /* @__PURE__ */ new Set(), this.components = /* @__PURE__ */ new Map(), this.externalPlugins = /* @__PURE__ */ new Map();
12327
12329
  }
@@ -12401,19 +12403,22 @@ class Nr {
12401
12403
  * Initialize all components in the page
12402
12404
  */
12403
12405
  initializeComponents() {
12404
- return document.querySelectorAll("[data-cb-type]").forEach((t) => {
12405
- const s = t.dataset.cbType, i = this.plugins.get(s);
12406
- if (i && typeof i.mount == "function")
12406
+ return document.querySelectorAll("[data-cb-type]").forEach((t, s) => {
12407
+ const i = t.dataset.cbType, n = this.plugins.get(i);
12408
+ if (n && typeof n.mount == "function")
12407
12409
  try {
12408
- const n = this.parseOptions(t);
12409
- let r = t.querySelector(".grid-sortable");
12410
- r || t.classList.contains("grid-sortable") && (r = t), r && Array.from(r.children).forEach((l, c) => {
12411
- l.nodeType === 1 && l.tagName !== "STYLE" && l.tagName !== "SCRIPT" && l.setAttribute("data-index", c);
12410
+ const r = this.parseOptions(t);
12411
+ let a = t.querySelector(".grid-sortable");
12412
+ a || t.classList.contains("grid-sortable") && (a = t), a && Array.from(a.children).forEach((u, o) => {
12413
+ u.nodeType === 1 && u.tagName !== "STYLE" && u.tagName !== "SCRIPT" && u.setAttribute("data-index", o);
12414
+ }), t.querySelectorAll(".edit").forEach((u, o) => {
12415
+ const h = `content-${Date.now()}-${s}-${o}`;
12416
+ u.setAttribute("data-edit-id", h);
12412
12417
  }), t.hasAttribute("data-cb-original-content") || t.setAttribute("data-cb-original-content", t.innerHTML);
12413
- const a = i.mount(t, n);
12414
- this.components.set(t, a), t.setAttribute("data-cb-loaded", "true");
12415
- } catch (n) {
12416
- console.error(`[PluginManager] Failed to mount component "${s}":`, n);
12418
+ const c = n.mount(t, r);
12419
+ this.components.set(t, c), this.setupInlineEditing(t, r), t.setAttribute("data-cb-loaded", "true"), typeof t.mount == "function" && t.mount();
12420
+ } catch (r) {
12421
+ console.error(`[PluginManager] Failed to mount component "${i}":`, r);
12417
12422
  }
12418
12423
  }), this.components.size;
12419
12424
  }
@@ -12442,6 +12447,52 @@ class Nr {
12442
12447
  return e;
12443
12448
  }
12444
12449
  }
12450
+ /**
12451
+ * Setup inline editing for elements with .edit[data-edit-id]
12452
+ * Automatically enables contenteditable and syncs changes to data-cb-original-content
12453
+ * @param {HTMLElement} element - Plugin element
12454
+ * @param {Object} options - Plugin options
12455
+ */
12456
+ setupInlineEditing(e, t) {
12457
+ if (!e.closest(".data-editor")) return;
12458
+ const s = e.querySelectorAll(".edit[data-edit-id]");
12459
+ if (s.length === 0)
12460
+ return;
12461
+ e.querySelectorAll('[contenteditable="true"]').forEach((r) => {
12462
+ r.removeAttribute("contenteditable"), r._cbObserver && (r._cbObserver.disconnect(), delete r._cbObserver);
12463
+ });
12464
+ const n = (r, a) => {
12465
+ const l = e.getAttribute("data-cb-original-content");
12466
+ if (!l) return;
12467
+ const c = document.createElement("template");
12468
+ c.innerHTML = l.trim();
12469
+ const o = c.content.querySelector(`[data-edit-id="${r}"]`);
12470
+ if (o) {
12471
+ o.innerHTML = a;
12472
+ const h = c.innerHTML;
12473
+ e.setAttribute("data-cb-original-content", h);
12474
+ }
12475
+ };
12476
+ s.forEach((r) => {
12477
+ r.setAttribute("contenteditable", "true");
12478
+ const a = new MutationObserver(() => {
12479
+ const l = r.getAttribute("data-edit-id"), c = r.innerHTML;
12480
+ n(l, c);
12481
+ });
12482
+ a.observe(r, {
12483
+ childList: !0,
12484
+ // Child elements added/removed
12485
+ characterData: !0,
12486
+ // Text content changes
12487
+ subtree: !0,
12488
+ // Watch all descendants
12489
+ attributes: !0,
12490
+ // Attribute changes
12491
+ attributeFilter: ["style"]
12492
+ // Specifically watch style (color picker)
12493
+ }), r._cbObserver = a;
12494
+ });
12495
+ }
12445
12496
  /**
12446
12497
  * Manually load a plugin (if not auto-loaded)
12447
12498
  */
@@ -12477,71 +12528,6 @@ class Nr {
12477
12528
  * Useful when content is dynamically updated
12478
12529
  * @param {HTMLElement} container - Container element (defaults to document)
12479
12530
  */
12480
- /*
12481
- async reinitialize(container = document) {
12482
- console.log('[PluginManager] Reinitializing components in container');
12483
-
12484
- // Step 1: Destroy existing components in this container
12485
- const elementsToDestroy = [];
12486
- this.components.forEach((instance, element) => {
12487
- if (container === document || container.contains(element)) {
12488
- elementsToDestroy.push({ element, instance });
12489
- }
12490
- });
12491
-
12492
- elementsToDestroy.forEach(({ element, instance }) => {
12493
- const type = element.dataset.cbType;
12494
- const plugin = this.plugins.get(type);
12495
-
12496
- if (plugin && typeof plugin.unmount === 'function') {
12497
- plugin.unmount(element, instance);
12498
- }
12499
-
12500
- this.components.delete(element);
12501
- });
12502
-
12503
- console.log(`[PluginManager] Destroyed ${elementsToDestroy.length} components`);
12504
-
12505
- // Step 2: Detect new component types in container
12506
- const componentTypes = this.detectComponentTypesInContainer(container);
12507
-
12508
- // Step 3: Load any new plugins that aren't loaded yet
12509
- const pluginsToLoad = componentTypes.filter(type =>
12510
- this.config.plugins[type] && !this.plugins.has(type)
12511
- );
12512
-
12513
- if (pluginsToLoad.length > 0) {
12514
- await Promise.all(
12515
- pluginsToLoad.map(type => this.loadPlugin(type))
12516
- );
12517
- }
12518
-
12519
- // Step 4: Initialize all components in container
12520
- const newElements = container.querySelectorAll('[data-cb-type]');
12521
- let mountedCount = 0;
12522
-
12523
- newElements.forEach(el => {
12524
- const type = el.dataset.cbType;
12525
- const plugin = this.plugins.get(type);
12526
-
12527
- if (plugin && typeof plugin.mount === 'function') {
12528
- try {
12529
- const options = this.parseOptions(el);
12530
- const instance = plugin.mount(el, options);
12531
- this.components.set(el, instance);
12532
- mountedCount++;
12533
- } catch (error) {
12534
- console.error(`[PluginManager] Failed to mount component "${type}":`, error);
12535
- }
12536
- }
12537
- });
12538
-
12539
- console.log(`[PluginManager] Mounted ${mountedCount} new components`);
12540
- this.emit('reinitialized', { container, count: mountedCount });
12541
-
12542
- return mountedCount;
12543
- }
12544
- */
12545
12531
  async reinitialize(e = document) {
12546
12532
  if (this.reinitializeInProgress)
12547
12533
  return clearTimeout(this.pendingReinitialize), new Promise((t) => {
@@ -12557,8 +12543,8 @@ class Nr {
12557
12543
  this.components.forEach((a, l) => {
12558
12544
  (e === document || e.contains(l)) && t.push({ element: l, instance: a });
12559
12545
  }), t.forEach(({ element: a, instance: l }) => {
12560
- const c = a.dataset.cbType, d = this.plugins.get(c);
12561
- d && typeof d.unmount == "function" && d.unmount(a, l), this.components.delete(a);
12546
+ const c = a.dataset.cbType, u = this.plugins.get(c);
12547
+ u && typeof u.unmount == "function" && u.unmount(a, l), this.components.delete(a);
12562
12548
  });
12563
12549
  const i = this.detectComponentTypesInContainer(e).filter(
12564
12550
  (a) => this.config.plugins[a] && !this.plugins.has(a)
@@ -12572,18 +12558,26 @@ class Nr {
12572
12558
  const l = a.dataset.cbType, c = this.plugins.get(l);
12573
12559
  if (c && typeof c.mount == "function")
12574
12560
  try {
12575
- const d = this.parseOptions(a);
12561
+ const u = this.parseOptions(a);
12576
12562
  let o = a.querySelector(".grid-sortable");
12577
- o || a.classList.contains("grid-sortable") && (o = a), o && Array.from(o.children).forEach((p, g) => {
12578
- p.nodeType === 1 && p.tagName !== "STYLE" && p.tagName !== "SCRIPT" && p.setAttribute("data-index", g);
12579
- }), a.hasAttribute("data-cb-original-content") ? a.innerHTML = a.getAttribute("data-cb-original-content") : a.setAttribute("data-cb-original-content", a.innerHTML);
12580
- const h = await c.mount(a, d);
12581
- this.components.set(a, h), a.setAttribute("data-cb-loaded", "true"), r++;
12582
- } catch (d) {
12583
- console.error(`[PluginManager] Failed to mount component "${l}":`, d);
12563
+ if (o || a.classList.contains("grid-sortable") && (o = a), o && Array.from(o.children).forEach((g, w) => {
12564
+ g.nodeType === 1 && g.tagName !== "STYLE" && g.tagName !== "SCRIPT" && g.setAttribute("data-index", w);
12565
+ }), a.querySelectorAll(".edit").forEach((g, w) => {
12566
+ const S = `content-${Date.now()}-${r}-${w}`;
12567
+ g.setAttribute("data-edit-id", S);
12568
+ }), !a.hasAttribute("data-cb-original-content"))
12569
+ a.setAttribute("data-cb-original-content", a.innerHTML);
12570
+ else {
12571
+ let g = document.createRange();
12572
+ a.innerHTML = "", a.appendChild(g.createContextualFragment(a.getAttribute("data-cb-original-content")));
12573
+ }
12574
+ const p = await c.mount(a, u);
12575
+ this.components.set(a, p), this.setupInlineEditing(a, u), a.setAttribute("data-cb-loaded", "true"), typeof a.mount == "function" && a.mount(), r++;
12576
+ } catch (u) {
12577
+ console.error(`[PluginManager] Failed to mount component "${l}":`, u);
12584
12578
  }
12585
12579
  }
12586
- return this.emit("reinitialized", { container: e, count: r }), r;
12580
+ return typeof this.config.onReInit == "function" && this.config.onReInit(), this.emit("reinitialized", { container: e, count: r }), r;
12587
12581
  } finally {
12588
12582
  this.reinitializeInProgress = !1;
12589
12583
  }
@@ -12722,11 +12716,13 @@ class Nr {
12722
12716
  * Destroy all components and plugins
12723
12717
  */
12724
12718
  destroy() {
12725
- this.components.forEach((e, t) => {
12726
- const s = t.dataset.cbType, i = this.plugins.get(s);
12727
- i && typeof i.unmount == "function" && i.unmount(t, e);
12728
- }), this.plugins.forEach((e, t) => {
12729
- typeof e.destroy == "function" && e.destroy(this);
12719
+ this.components.forEach((t, s) => {
12720
+ const i = s.dataset.cbType, n = this.plugins.get(i);
12721
+ n && typeof n.unmount == "function" && n.unmount(s, t);
12722
+ }), element.querySelectorAll('[contenteditable="true"]').forEach((t) => {
12723
+ t.removeAttribute("contenteditable"), t._cbObserver && (t._cbObserver.disconnect(), delete t._cbObserver);
12724
+ }), this.plugins.forEach((t, s) => {
12725
+ typeof t.destroy == "function" && t.destroy(this);
12730
12726
  }), this.components.clear(), this.plugins.clear();
12731
12727
  }
12732
12728
  /**
@@ -12768,7 +12764,10 @@ class Hr {
12768
12764
  autoLoad: this.settings.autoLoadPlugins,
12769
12765
  pluginBaseUrl: this.settings.pluginBaseUrl,
12770
12766
  allowExternalPlugins: this.settings.allowExternalPlugins,
12771
- trustedDomains: this.settings.trustedDomains
12767
+ trustedDomains: this.settings.trustedDomains,
12768
+ onReInit: () => {
12769
+ this.functionLightboxInit();
12770
+ }
12772
12771
  }), this.pluginManager.setRuntime(this), window.Glide = Wn, window.FormViewer = Rr, window.NavBar = jr, window.pageReRender = () => {
12773
12772
  this.pageReRender();
12774
12773
  };
@@ -12890,17 +12889,17 @@ class Hr {
12890
12889
  let c = a.getAttribute("href");
12891
12890
  if (c && c.indexOf("#") === 0)
12892
12891
  if (c.indexOf("#section") === 0) {
12893
- let d = c.replace("#section", "");
12894
- if (!isNaN(parseInt(d))) {
12892
+ let u = c.replace("#section", "");
12893
+ if (!isNaN(parseInt(u))) {
12895
12894
  let o = document.querySelectorAll(".is-section"), h, p = 0;
12896
12895
  o.forEach(function(g) {
12897
- g.classList.contains("is-section-navbar") || (p === d - 1 && (h = g), p++);
12896
+ g.classList.contains("is-section-navbar") || (p === u - 1 && (h = g), p++);
12898
12897
  }), h && this.scrollIt(h, 1e3, "easeInQuad"), l.preventDefault();
12899
12898
  }
12900
12899
  } else
12901
12900
  try {
12902
- let d = document.querySelector(c);
12903
- d && (this.scrollIt(d, 1e3, "easeInQuad"), l.preventDefault());
12901
+ let u = document.querySelector(c);
12902
+ u && (this.scrollIt(u, 1e3, "easeInQuad"), l.preventDefault());
12904
12903
  } catch {
12905
12904
  }
12906
12905
  });
@@ -12966,12 +12965,12 @@ class Hr {
12966
12965
  let n;
12967
12966
  i ? n = document.querySelectorAll(".is-wrapper .section-pin") : n = document.querySelectorAll(".is-wrapper:not(.is-edit) .section-pin"), n.length > 0 && window.scrollTo(0, 0), n.forEach(function(a) {
12968
12967
  s <= 970 && a.querySelector(".is-box") && (a.querySelectorAll(".is-box").forEach((c) => {
12969
- const d = a.cloneNode(!1);
12968
+ const u = a.cloneNode(!1);
12970
12969
  c.getAttributeNames().map((o) => {
12971
- o.indexOf("data-") !== -1 && d.setAttribute(o, c.getAttribute(o));
12972
- }), d.classList.add("is-box"), c.classList.forEach((o) => {
12973
- (o.indexOf("is-box-") !== -1 || o.indexOf("is-content-") !== -1 || o.indexOf("box-autofit") !== -1 || o.indexOf("is-light-text") !== -1 || o.indexOf("is-dark-text") !== -1 || o.indexOf("is-align-") !== -1 || o.indexOf("type-") !== -1 || o.indexOf("block-click") !== -1 || o.indexOf("hover-zoom") !== -1) && d.classList.add(o);
12974
- }), d.setAttribute("data-section-clone", ""), d.innerHTML = c.innerHTML, a.parentNode.insertBefore(d, a);
12970
+ o.indexOf("data-") !== -1 && u.setAttribute(o, c.getAttribute(o));
12971
+ }), u.classList.add("is-box"), c.classList.forEach((o) => {
12972
+ (o.indexOf("is-box-") !== -1 || o.indexOf("is-content-") !== -1 || o.indexOf("box-autofit") !== -1 || o.indexOf("is-light-text") !== -1 || o.indexOf("is-dark-text") !== -1 || o.indexOf("is-align-") !== -1 || o.indexOf("type-") !== -1 || o.indexOf("block-click") !== -1 || o.indexOf("hover-zoom") !== -1) && u.classList.add(o);
12973
+ }), u.setAttribute("data-section-clone", ""), u.innerHTML = c.innerHTML, a.parentNode.insertBefore(u, a);
12975
12974
  }), a.setAttribute("data-section-original", ""), a.style.display = "none");
12976
12975
  }), i ? n = document.querySelectorAll(".is-wrapper .section-pin") : n = document.querySelectorAll(".is-wrapper:not(.is-edit) .section-pin"), n.forEach(function(a) {
12977
12976
  if (a.parentNode.closest(".section-wrap") || s <= 970 && a.hasAttribute("data-section-original")) return;
@@ -12980,9 +12979,9 @@ class Hr {
12980
12979
  });
12981
12980
  const r = (a) => {
12982
12981
  document.querySelectorAll(".is-section").forEach((c) => {
12983
- const d = c.getBoundingClientRect().top;
12982
+ const u = c.getBoundingClientRect().top;
12984
12983
  let o, h;
12985
- c.parentNode.classList.contains("pin-wrap") ? (o = c.parentNode.nextElementSibling, h = c.parentNode.previousElementSibling) : (o = c.nextElementSibling, h = c.previousElementSibling), o && o.classList.contains("pin-wrap") && (o = o.querySelector(".is-section")), h && h.classList.contains("pin-wrap") && (h = h.querySelector(".is-section")), d <= 0 && ((c.classList.contains("no-spacing") || c.classList.contains("pin-overlap")) && c.classList.add("section-inview"), document.querySelectorAll(".is-section").forEach((g) => {
12984
+ c.parentNode.classList.contains("pin-wrap") ? (o = c.parentNode.nextElementSibling, h = c.parentNode.previousElementSibling) : (o = c.nextElementSibling, h = c.previousElementSibling), o && o.classList.contains("pin-wrap") && (o = o.querySelector(".is-section")), h && h.classList.contains("pin-wrap") && (h = h.querySelector(".is-section")), u <= 0 && ((c.classList.contains("no-spacing") || c.classList.contains("pin-overlap")) && c.classList.add("section-inview"), document.querySelectorAll(".is-section").forEach((g) => {
12986
12985
  g !== c && g.classList.remove("section-inview");
12987
12986
  }));
12988
12987
  });
@@ -13106,13 +13105,13 @@ class Hr {
13106
13105
  if (t) {
13107
13106
  const a = t.closest("[data-gallery]");
13108
13107
  let l = [];
13109
- a ? l = a.querySelectorAll(".is-lightbox") : document.querySelectorAll(".is-lightbox,.block-click").forEach((d) => {
13110
- d.closest("[data-gallery]") || l.push(d);
13111
- }), l.forEach((c, d) => {
13108
+ a ? l = a.querySelectorAll(".is-lightbox") : document.querySelectorAll(".is-lightbox,.block-click").forEach((u) => {
13109
+ u.closest("[data-gallery]") || l.push(u);
13110
+ }), l.forEach((c, u) => {
13112
13111
  let o = c.getAttribute("href");
13113
13112
  o || (o = c.getAttribute("data-modal-url")), i.push({
13114
13113
  href: o
13115
- }), e === o && (n = d);
13114
+ }), e === o && (n = u);
13116
13115
  });
13117
13116
  }
13118
13117
  const r = document.activeElement;
@@ -13213,25 +13212,25 @@ class Hr {
13213
13212
  a.push(h);
13214
13213
  }
13215
13214
  }
13216
- a = [...new Set(a)], a.sort((c, d) => d - c);
13215
+ a = [...new Set(a)], a.sort((c, u) => u - c);
13217
13216
  for (let c = 0; c < a.length; c++) {
13218
- const d = a[c];
13217
+ const u = a[c];
13219
13218
  if (c === 0) {
13220
- if (n > d) {
13219
+ if (n > u) {
13221
13220
  let o = r.getAttribute("data--h");
13222
13221
  o ? r.style.height = o : r.style.height = "";
13223
13222
  }
13224
13223
  } else {
13225
13224
  const o = a[c - 1];
13226
- if (o >= n && n > d) {
13225
+ if (o >= n && n > u) {
13227
13226
  let h = r.getAttribute("data--h-" + o);
13228
13227
  h && (r.style.height = h);
13229
13228
  }
13230
13229
  }
13231
13230
  }
13232
13231
  if (a.length > 0 && a[a.length - 1] >= n) {
13233
- const d = a[a.length - 1];
13234
- let o = r.getAttribute("data--h-" + d);
13232
+ const u = a[a.length - 1];
13233
+ let o = r.getAttribute("data--h-" + u);
13235
13234
  o && (r.style.height = o);
13236
13235
  }
13237
13236
  }), document.querySelectorAll(".is-block").forEach((r) => {
@@ -13243,29 +13242,29 @@ class Hr {
13243
13242
  let a = [];
13244
13243
  const l = r.attributes;
13245
13244
  for (let c = 0; c < l.length; c++) {
13246
- const d = l[c].name;
13247
- let o = d.match(/^data--t-(\d+)$/);
13245
+ const u = l[c].name;
13246
+ let o = u.match(/^data--t-(\d+)$/);
13248
13247
  if (o) {
13249
13248
  const h = parseInt(o[1], 10);
13250
13249
  a.push(h);
13251
13250
  }
13252
- if (o = d.match(/^data--w-(\d+)$/), o) {
13251
+ if (o = u.match(/^data--w-(\d+)$/), o) {
13253
13252
  const h = parseInt(o[1], 10);
13254
13253
  a.push(h);
13255
13254
  }
13256
- if (o = d.match(/^data--transform-(\d+)$/), o) {
13255
+ if (o = u.match(/^data--transform-(\d+)$/), o) {
13257
13256
  const h = parseInt(o[1], 10);
13258
13257
  a.push(h);
13259
13258
  }
13260
13259
  }
13261
- a = [...new Set(a)], a.sort((c, d) => d - c);
13260
+ a = [...new Set(a)], a.sort((c, u) => u - c);
13262
13261
  for (let c = 0; c < a.length; c++) {
13263
- const d = a[c];
13262
+ const u = a[c];
13264
13263
  if (c === 0)
13265
- n > d && e.apply(r, 1e4, i);
13264
+ n > u && e.apply(r, 1e4, i);
13266
13265
  else {
13267
13266
  const o = a[c - 1];
13268
- o >= n && n > d && e.apply(r, o, i);
13267
+ o >= n && n > u && e.apply(r, o, i);
13269
13268
  }
13270
13269
  }
13271
13270
  if (a.length > 0) {