@innovastudio/contentbox-runtime-base 1.0.1

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.
@@ -0,0 +1,3725 @@
1
+ var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function be(o) {
3
+ return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
4
+ }
5
+ var fe = { exports: {} }, $e = fe.exports, je;
6
+ function Fe() {
7
+ return je || (je = 1, (function(o, e) {
8
+ (function(i, s) {
9
+ o.exports = s();
10
+ })($e, function() {
11
+ var i = typeof window < "u" ? window : typeof Ee < "u" ? Ee : typeof self < "u" ? self : {}, s = "Expected a function", t = NaN, n = "[object Symbol]", r = /^\s+|\s+$/g, a = /^[-+]0x[0-9a-f]+$/i, f = /^0b[01]+$/i, d = /^0o[0-7]+$/i, y = parseInt, b = typeof i == "object" && i && i.Object === Object && i, _ = typeof self == "object" && self && self.Object === Object && self, q = b || _ || Function("return this")(), P = Object.prototype.toString, M = Math.max, dt = Math.min, et = function() {
12
+ return q.Date.now();
13
+ };
14
+ function It(p, w, S) {
15
+ var A, V, it, R, Y, K, z = 0, mt = !1, nt = !1, at = !0;
16
+ if (typeof p != "function") throw new TypeError(s);
17
+ function bt(N) {
18
+ var ut = A, Et = V;
19
+ return A = V = void 0, z = N, R = p.apply(Et, ut);
20
+ }
21
+ function Dt(N) {
22
+ var ut = N - K;
23
+ return K === void 0 || ut >= w || ut < 0 || nt && N - z >= it;
24
+ }
25
+ function Nt() {
26
+ var N = et();
27
+ if (Dt(N)) return Ht(N);
28
+ Y = setTimeout(Nt, (function(ut) {
29
+ var Et = w - (ut - K);
30
+ return nt ? dt(Et, it - (ut - z)) : Et;
31
+ })(N));
32
+ }
33
+ function Ht(N) {
34
+ return Y = void 0, at && A ? bt(N) : (A = V = void 0, R);
35
+ }
36
+ function St() {
37
+ var N = et(), ut = Dt(N);
38
+ if (A = arguments, V = this, K = N, ut) {
39
+ if (Y === void 0) return (function(Et) {
40
+ return z = Et, Y = setTimeout(Nt, w), mt ? bt(Et) : R;
41
+ })(K);
42
+ if (nt) return Y = setTimeout(Nt, w), bt(K);
43
+ }
44
+ return Y === void 0 && (Y = setTimeout(Nt, w)), R;
45
+ }
46
+ return w = jt(w) || 0, _t(S) && (mt = !!S.leading, it = (nt = "maxWait" in S) ? M(jt(S.maxWait) || 0, w) : it, at = "trailing" in S ? !!S.trailing : at), St.cancel = function() {
47
+ Y !== void 0 && clearTimeout(Y), z = 0, A = K = V = Y = void 0;
48
+ }, St.flush = function() {
49
+ return Y === void 0 ? R : Ht(et());
50
+ }, St;
51
+ }
52
+ function _t(p) {
53
+ var w = typeof p;
54
+ return !!p && (w == "object" || w == "function");
55
+ }
56
+ function jt(p) {
57
+ if (typeof p == "number") return p;
58
+ if ((function(A) {
59
+ return typeof A == "symbol" || /* @__PURE__ */ (function(V) {
60
+ return !!V && typeof V == "object";
61
+ })(A) && P.call(A) == n;
62
+ })(p)) return t;
63
+ if (_t(p)) {
64
+ var w = typeof p.valueOf == "function" ? p.valueOf() : p;
65
+ p = _t(w) ? w + "" : w;
66
+ }
67
+ if (typeof p != "string") return p === 0 ? p : +p;
68
+ p = p.replace(r, "");
69
+ var S = f.test(p);
70
+ return S || d.test(p) ? y(p.slice(2), S ? 2 : 8) : a.test(p) ? t : +p;
71
+ }
72
+ var Ct = function(p, w, S) {
73
+ var A = !0, V = !0;
74
+ if (typeof p != "function") throw new TypeError(s);
75
+ return _t(S) && (A = "leading" in S ? !!S.leading : A, V = "trailing" in S ? !!S.trailing : V), It(p, w, { leading: A, maxWait: w, trailing: V });
76
+ }, l = "Expected a function", g = NaN, E = "[object Symbol]", L = /^\s+|\s+$/g, j = /^[-+]0x[0-9a-f]+$/i, D = /^0b[01]+$/i, st = /^0o[0-7]+$/i, T = parseInt, v = typeof i == "object" && i && i.Object === Object && i, c = typeof self == "object" && self && self.Object === Object && self, u = v || c || Function("return this")(), O = Object.prototype.toString, I = Math.max, C = Math.min, $ = function() {
77
+ return u.Date.now();
78
+ };
79
+ function B(p) {
80
+ var w = typeof p;
81
+ return !!p && (w == "object" || w == "function");
82
+ }
83
+ function F(p) {
84
+ if (typeof p == "number") return p;
85
+ if ((function(A) {
86
+ return typeof A == "symbol" || /* @__PURE__ */ (function(V) {
87
+ return !!V && typeof V == "object";
88
+ })(A) && O.call(A) == E;
89
+ })(p)) return g;
90
+ if (B(p)) {
91
+ var w = typeof p.valueOf == "function" ? p.valueOf() : p;
92
+ p = B(w) ? w + "" : w;
93
+ }
94
+ if (typeof p != "string") return p === 0 ? p : +p;
95
+ p = p.replace(L, "");
96
+ var S = D.test(p);
97
+ return S || st.test(p) ? T(p.slice(2), S ? 2 : 8) : j.test(p) ? g : +p;
98
+ }
99
+ var ot = function(p, w, S) {
100
+ var A, V, it, R, Y, K, z = 0, mt = !1, nt = !1, at = !0;
101
+ if (typeof p != "function") throw new TypeError(l);
102
+ function bt(N) {
103
+ var ut = A, Et = V;
104
+ return A = V = void 0, z = N, R = p.apply(Et, ut);
105
+ }
106
+ function Dt(N) {
107
+ var ut = N - K;
108
+ return K === void 0 || ut >= w || ut < 0 || nt && N - z >= it;
109
+ }
110
+ function Nt() {
111
+ var N = $();
112
+ if (Dt(N)) return Ht(N);
113
+ Y = setTimeout(Nt, (function(ut) {
114
+ var Et = w - (ut - K);
115
+ return nt ? C(Et, it - (ut - z)) : Et;
116
+ })(N));
117
+ }
118
+ function Ht(N) {
119
+ return Y = void 0, at && A ? bt(N) : (A = V = void 0, R);
120
+ }
121
+ function St() {
122
+ var N = $(), ut = Dt(N);
123
+ if (A = arguments, V = this, K = N, ut) {
124
+ if (Y === void 0) return (function(Et) {
125
+ return z = Et, Y = setTimeout(Nt, w), mt ? bt(Et) : R;
126
+ })(K);
127
+ if (nt) return Y = setTimeout(Nt, w), bt(K);
128
+ }
129
+ return Y === void 0 && (Y = setTimeout(Nt, w)), R;
130
+ }
131
+ return w = F(w) || 0, B(S) && (mt = !!S.leading, it = (nt = "maxWait" in S) ? I(F(S.maxWait) || 0, w) : it, at = "trailing" in S ? !!S.trailing : at), St.cancel = function() {
132
+ Y !== void 0 && clearTimeout(Y), z = 0, A = K = V = Y = void 0;
133
+ }, St.flush = function() {
134
+ return Y === void 0 ? R : Ht($());
135
+ }, St;
136
+ }, lt = function() {
137
+ };
138
+ function G(p) {
139
+ p && p.forEach(function(w) {
140
+ var S = Array.prototype.slice.call(w.addedNodes), A = Array.prototype.slice.call(w.removedNodes);
141
+ if ((function V(it) {
142
+ var R = void 0, Y = void 0;
143
+ for (R = 0; R < it.length; R += 1)
144
+ if ((Y = it[R]).dataset && Y.dataset.aos || Y.children && V(Y.children)) return !0;
145
+ return !1;
146
+ })(S.concat(A))) return lt();
147
+ });
148
+ }
149
+ function U() {
150
+ return window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
151
+ }
152
+ var ct = { isSupported: function() {
153
+ return !!U();
154
+ }, ready: function(p, w) {
155
+ var S = window.document, A = new (U())(G);
156
+ lt = w, A.observe(S.documentElement, { childList: !0, subtree: !0, removedNodes: !0 });
157
+ } }, Vt = function(p, w) {
158
+ if (!(p instanceof w)) throw new TypeError("Cannot call a class as a function");
159
+ }, ft = /* @__PURE__ */ (function() {
160
+ function p(w, S) {
161
+ for (var A = 0; A < S.length; A++) {
162
+ var V = S[A];
163
+ V.enumerable = V.enumerable || !1, V.configurable = !0, "value" in V && (V.writable = !0), Object.defineProperty(w, V.key, V);
164
+ }
165
+ }
166
+ return function(w, S, A) {
167
+ return S && p(w.prototype, S), A && p(w, A), w;
168
+ };
169
+ })(), Tt = Object.assign || function(p) {
170
+ for (var w = 1; w < arguments.length; w++) {
171
+ var S = arguments[w];
172
+ for (var A in S) Object.prototype.hasOwnProperty.call(S, A) && (p[A] = S[A]);
173
+ }
174
+ return p;
175
+ }, yt = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i, J = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i, vt = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i, tt = /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;
176
+ function ht() {
177
+ return navigator.userAgent || navigator.vendor || window.opera || "";
178
+ }
179
+ var gt = new ((function() {
180
+ function p() {
181
+ Vt(this, p);
182
+ }
183
+ return ft(p, [{ key: "phone", value: function() {
184
+ var w = ht();
185
+ return !(!yt.test(w) && !J.test(w.substr(0, 4)));
186
+ } }, { key: "mobile", value: function() {
187
+ var w = ht();
188
+ return !(!vt.test(w) && !tt.test(w.substr(0, 4)));
189
+ } }, { key: "tablet", value: function() {
190
+ return this.mobile() && !this.phone();
191
+ } }, { key: "ie11", value: function() {
192
+ return "-ms-scroll-limit" in document.documentElement.style && "-ms-ime-align" in document.documentElement.style;
193
+ } }]), p;
194
+ })())(), wt = function(p, w) {
195
+ var S = void 0;
196
+ return gt.ie11() ? (S = document.createEvent("CustomEvent")).initCustomEvent(p, !0, !0, { detail: w }) : S = new CustomEvent(p, { detail: w }), document.dispatchEvent(S);
197
+ }, pt = function(p) {
198
+ return p.forEach(function(w, S) {
199
+ return (function(A, V) {
200
+ var it = A.options, R = A.position, Y = A.node, K = (A.data, function() {
201
+ A.animated && ((function(z, mt) {
202
+ mt && mt.forEach(function(nt) {
203
+ return z.classList.remove(nt);
204
+ });
205
+ })(Y, it.animatedClassNames), wt("aos:out", Y), A.options.id && wt("aos:in:" + A.options.id, Y), A.animated = !1);
206
+ });
207
+ it.mirror && V >= R.out && !it.once ? K() : V >= R.in ? A.animated || ((function(z, mt) {
208
+ mt && mt.forEach(function(nt) {
209
+ return z.classList.add(nt);
210
+ });
211
+ })(Y, it.animatedClassNames), wt("aos:in", Y), A.options.id && wt("aos:in:" + A.options.id, Y), A.animated = !0) : A.animated && !it.once && K();
212
+ })(w, window.pageYOffset);
213
+ });
214
+ }, Ot = function(p) {
215
+ for (var w = 0, S = 0; p && !isNaN(p.offsetLeft) && !isNaN(p.offsetTop); ) w += p.offsetLeft - (p.tagName != "BODY" ? p.scrollLeft : 0), S += p.offsetTop - (p.tagName != "BODY" ? p.scrollTop : 0), p = p.offsetParent;
216
+ return { top: S, left: w };
217
+ }, Q = function(p, w, S) {
218
+ var A = p.getAttribute("data-aos-" + w);
219
+ if (A !== void 0) {
220
+ if (A === "true") return !0;
221
+ if (A === "false") return !1;
222
+ }
223
+ return A || S;
224
+ }, Yt = function(p, w) {
225
+ return p.forEach(function(S, A) {
226
+ var V = Q(S.node, "mirror", w.mirror), it = Q(S.node, "once", w.once), R = Q(S.node, "id"), Y = w.useClassNames && S.node.getAttribute("data-aos"), K = [w.animatedClassName].concat(Y ? Y.split(" ") : []).filter(function(z) {
227
+ return typeof z == "string";
228
+ });
229
+ w.initClassName && S.node.classList.add(w.initClassName), S.position = { in: (function(z, mt, nt) {
230
+ var at = window.innerHeight, bt = Q(z, "anchor"), Dt = Q(z, "anchor-placement"), Nt = Number(Q(z, "offset", Dt ? 0 : mt)), Ht = Dt || nt, St = z;
231
+ bt && document.querySelectorAll(bt) && (St = document.querySelectorAll(bt)[0]);
232
+ var N = Ot(St).top - at;
233
+ switch (Ht) {
234
+ case "top-bottom":
235
+ break;
236
+ case "center-bottom":
237
+ N += St.offsetHeight / 2;
238
+ break;
239
+ case "bottom-bottom":
240
+ N += St.offsetHeight;
241
+ break;
242
+ case "top-center":
243
+ N += at / 2;
244
+ break;
245
+ case "center-center":
246
+ N += at / 2 + St.offsetHeight / 2;
247
+ break;
248
+ case "bottom-center":
249
+ N += at / 2 + St.offsetHeight;
250
+ break;
251
+ case "top-top":
252
+ N += at;
253
+ break;
254
+ case "bottom-top":
255
+ N += at + St.offsetHeight;
256
+ break;
257
+ case "center-top":
258
+ N += at + St.offsetHeight / 2;
259
+ }
260
+ return N + Nt;
261
+ })(S.node, w.offset, w.anchorPlacement), out: V && (function(z, mt) {
262
+ var nt = Q(z, "anchor"), at = Q(z, "offset", mt), bt = z;
263
+ return nt && document.querySelectorAll(nt) && (bt = document.querySelectorAll(nt)[0]), Ot(bt).top + bt.offsetHeight - at;
264
+ })(S.node, w.offset) }, S.options = { once: it, mirror: V, animatedClassNames: K, id: R };
265
+ }), p;
266
+ }, Mt = function() {
267
+ var p = document.querySelectorAll("[data-aos]");
268
+ return Array.prototype.map.call(p, function(w) {
269
+ return { node: w };
270
+ });
271
+ }, xt = [], qt = !1, X = { 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 }, h = function() {
272
+ return document.all && !window.atob;
273
+ }, x = function() {
274
+ arguments.length > 0 && arguments[0] !== void 0 && arguments[0] && (qt = !0), qt && (xt = Yt(xt, X), pt(xt), window.addEventListener("scroll", Ct(function() {
275
+ pt(xt, X.once);
276
+ }, X.throttleDelay)));
277
+ }, k = function() {
278
+ if (xt = Mt(), W(X.disable) || h()) return H();
279
+ x();
280
+ }, H = function() {
281
+ xt.forEach(function(p, w) {
282
+ p.node.removeAttribute("data-aos"), p.node.removeAttribute("data-aos-easing"), p.node.removeAttribute("data-aos-duration"), p.node.removeAttribute("data-aos-delay"), X.initClassName && p.node.classList.remove(X.initClassName), X.animatedClassName && p.node.classList.remove(X.animatedClassName);
283
+ });
284
+ }, W = function(p) {
285
+ return p === !0 || p === "mobile" && gt.mobile() || p === "phone" && gt.phone() || p === "tablet" && gt.tablet() || typeof p == "function" && p() === !0;
286
+ };
287
+ return { init: function(p) {
288
+ return X = Tt(X, p), xt = Mt(), X.disableMutationObserver || ct.isSupported() || (console.info(`
289
+ aos: MutationObserver is not supported on this browser,
290
+ code mutations observing has been disabled.
291
+ You may have to call "refreshHard()" by yourself.
292
+ `), X.disableMutationObserver = !0), X.disableMutationObserver || ct.ready("[data-aos]", k), W(X.disable) || h() ? H() : (document.querySelector("body").setAttribute("data-aos-easing", X.easing), document.querySelector("body").setAttribute("data-aos-duration", X.duration), document.querySelector("body").setAttribute("data-aos-delay", X.delay), ["DOMContentLoaded", "load"].indexOf(X.startEvent) === -1 ? document.addEventListener(X.startEvent, function() {
293
+ x(!0);
294
+ }) : window.addEventListener("load", function() {
295
+ x(!0);
296
+ }), X.startEvent === "DOMContentLoaded" && ["complete", "interactive"].indexOf(document.readyState) > -1 && x(!0), window.addEventListener("resize", ot(x, X.debounceDelay, !0)), window.addEventListener("orientationchange", ot(x, X.debounceDelay, !0)), xt);
297
+ }, refresh: x, refreshHard: k };
298
+ });
299
+ })(fe)), fe.exports;
300
+ }
301
+ var Ue = Fe();
302
+ const Ze = /* @__PURE__ */ be(Ue);
303
+ var ye = { exports: {} }, Ce;
304
+ function Ge() {
305
+ return Ce || (Ce = 1, (function(o) {
306
+ function e(d, y) {
307
+ if (!(d instanceof y)) throw new TypeError("Cannot call a class as a function");
308
+ }
309
+ function i(d, y, b) {
310
+ return y in d ? Object.defineProperty(d, y, { value: b, enumerable: !0, configurable: !0, writable: !0 }) : d[y] = b, d;
311
+ }
312
+ function s(d, y) {
313
+ return f(d) || a(d, y) || n(d, y) || t();
314
+ }
315
+ function t() {
316
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
317
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
318
+ }
319
+ function n(d, y) {
320
+ if (d) {
321
+ if (typeof d == "string") return r(d, y);
322
+ var b = Object.prototype.toString.call(d).slice(8, -1);
323
+ return b === "Object" && d.constructor && (b = d.constructor.name), b === "Map" || b === "Set" ? Array.from(d) : b === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b) ? r(d, y) : void 0;
324
+ }
325
+ }
326
+ function r(d, y) {
327
+ (y == null || y > d.length) && (y = d.length);
328
+ for (var b = 0, _ = new Array(y); b < y; b++) _[b] = d[b];
329
+ return _;
330
+ }
331
+ function a(d, y) {
332
+ if (typeof Symbol < "u" && Symbol.iterator in Object(d)) {
333
+ var b = [], _ = !0, q = !1, P = void 0;
334
+ try {
335
+ for (var M, dt = d[Symbol.iterator](); !(_ = (M = dt.next()).done) && (b.push(M.value), !y || b.length !== y); _ = !0) ;
336
+ } catch (et) {
337
+ q = !0, P = et;
338
+ } finally {
339
+ try {
340
+ _ || dt.return == null || dt.return();
341
+ } finally {
342
+ if (q) throw P;
343
+ }
344
+ }
345
+ return b;
346
+ }
347
+ }
348
+ function f(d) {
349
+ if (Array.isArray(d)) return d;
350
+ }
351
+ (function() {
352
+ function d(l) {
353
+ return ["elInY+elHeight", "elCenterY-".concat(l = 0 < arguments.length && l !== void 0 ? l : 30), "elCenterY", "elCenterY+".concat(l), "elOutY-elHeight"];
354
+ }
355
+ var y, b, _, q, P, M, dt = { fadeInOut: function(l, g) {
356
+ return g = 1 < arguments.length && g !== void 0 ? g : 0, { opacity: [d(0 < arguments.length && l !== void 0 ? l : 30), [g, 1, 1, 1, g]] };
357
+ }, fadeIn: function(l, g) {
358
+ return { opacity: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length && g !== void 0 ? g : 0, 1]] };
359
+ }, fadeOut: function(l, g) {
360
+ return { opacity: [[0 < arguments.length && l !== void 0 ? l : "elCenterY", "elOutY-elHeight"], [1, 1 < arguments.length && g !== void 0 ? g : 0]] };
361
+ }, blurInOut: function(l, g) {
362
+ return g = 1 < arguments.length && g !== void 0 ? g : 20, { blur: [d(0 < arguments.length && l !== void 0 ? l : 100), [g, 0, 0, 0, g]] };
363
+ }, blurIn: function(l, g) {
364
+ return { blur: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length && g !== void 0 ? g : 20, 0]] };
365
+ }, blurOut: function(l, g) {
366
+ return { opacity: [[0 < arguments.length && l !== void 0 ? l : "elCenterY", "elOutY-elHeight"], [0, 1 < arguments.length && g !== void 0 ? g : 20]] };
367
+ }, scaleInOut: function(l, g) {
368
+ return g = 1 < arguments.length && g !== void 0 ? g : 0.6, { scale: [d(0 < arguments.length && l !== void 0 ? l : 100), [g, 1, 1, 1, g]] };
369
+ }, scaleIn: function(l, g) {
370
+ return { scale: [["elInY+elHeight", 0 < arguments.length && l !== void 0 ? l : "elCenterY"], [1 < arguments.length && g !== void 0 ? g : 0.6, 1]] };
371
+ }, scaleOut: function(l, g) {
372
+ return { scale: [[0 < arguments.length && l !== void 0 ? l : "elCenterY", "elOutY-elHeight"], [1, 1 < arguments.length && g !== void 0 ? g : 0.6]] };
373
+ }, slideX: function(l, g) {
374
+ return { translateX: [["elInY", 0 < arguments.length && l !== void 0 ? l : 0], [0, 1 < arguments.length && g !== void 0 ? g : 500]] };
375
+ }, slideY: function(l, g) {
376
+ return { translateY: [["elInY", 0 < arguments.length && l !== void 0 ? l : 0], [0, 1 < arguments.length && g !== void 0 ? g : 500]] };
377
+ }, spin: function(l, g) {
378
+ return l = 0 < arguments.length && l !== void 0 ? l : 1e3, { rotate: [[0, l], [0, 1 < arguments.length && g !== void 0 ? g : 360], { modValue: l }] };
379
+ }, flipX: function(l, g) {
380
+ return l = 0 < arguments.length && l !== void 0 ? l : 1e3, { rotateX: [[0, l], [0, 1 < arguments.length && g !== void 0 ? g : 360], { modValue: l }] };
381
+ }, flipY: function(l, g) {
382
+ return l = 0 < arguments.length && l !== void 0 ? l : 1e3, { rotateY: [[0, l], [0, 1 < arguments.length && g !== void 0 ? g : 360], { modValue: l }] };
383
+ }, jiggle: function(l, g) {
384
+ return l = 0 < arguments.length && l !== void 0 ? l : 50, g = 1 < arguments.length && g !== void 0 ? g : 40, { skewX: [[0, +l, 2 * l, 3 * l, 4 * l], [0, g, 0, -g, 0], { modValue: 4 * l }] };
385
+ }, seesaw: function(l, g) {
386
+ return l = 0 < arguments.length && l !== void 0 ? l : 50, g = 1 < arguments.length && g !== void 0 ? g : 40, { skewY: [[0, +l, 2 * l, 3 * l, 4 * l], [0, g, 0, -g, 0], { modValue: 4 * l }] };
387
+ }, zigzag: function(l, g) {
388
+ return l = 0 < arguments.length && l !== void 0 ? l : 100, g = 1 < arguments.length && g !== void 0 ? g : 100, { translateX: [[0, +l, 2 * l, 3 * l, 4 * l], [0, g, 0, -g, 0], { modValue: 4 * l }] };
389
+ }, hueRotate: function(l, g) {
390
+ return l = 0 < arguments.length && l !== void 0 ? l : 600, { "hue-rotate": [[0, l], [0, 1 < arguments.length && g !== void 0 ? g : 360], { modValue: l }] };
391
+ } }, et = (y = ["perspective", "scaleX", "scaleY", "scale", "skewX", "skewY", "skew", "rotateX", "rotateY", "rotate"], b = ["blur", "hue-rotate", "brightness"], _ = ["translateX", "translateY", "translateZ"], q = ["perspective", "border-radius", "blur", "translateX", "translateY", "translateZ"], P = ["hue-rotate", "rotate", "rotateX", "rotateY", "skew", "skewX", "skewY"], M = { easeInQuad: function(l) {
392
+ return l * l;
393
+ }, easeOutQuad: function(l) {
394
+ return l * (2 - l);
395
+ }, easeInOutQuad: function(l) {
396
+ return l < 0.5 ? 2 * l * l : (4 - 2 * l) * l - 1;
397
+ }, easeInCubic: function(l) {
398
+ return l * l * l;
399
+ }, easeOutCubic: function(l) {
400
+ return --l * l * l + 1;
401
+ }, easeInOutCubic: function(l) {
402
+ return l < 0.5 ? 4 * l * l * l : (l - 1) * (2 * l - 2) * (2 * l - 2) + 1;
403
+ }, easeInQuart: function(l) {
404
+ return l * l * l * l;
405
+ }, easeOutQuart: function(l) {
406
+ return 1 - --l * l * l * l;
407
+ }, easeInOutQuart: function(l) {
408
+ return l < 0.5 ? 8 * l * l * l * l : 1 - 8 * --l * l * l * l;
409
+ }, easeInQuint: function(l) {
410
+ return l * l * l * l * l;
411
+ }, easeOutQuint: function(l) {
412
+ return 1 + --l * l * l * l * l;
413
+ }, easeInOutQuint: function(l) {
414
+ return l < 0.5 ? 16 * l * l * l * l * l : 1 + 16 * --l * l * l * l * l;
415
+ }, easeOutBounce: function(l) {
416
+ var g = 7.5625, E = 2.75;
417
+ return l < 1 / E ? g * l * l : l < 2 / E ? g * (l -= 1.5 / E) * l + 0.75 : l < 2.5 / E ? g * (l -= 2.25 / E) * l + 0.9375 : g * (l -= 2.625 / E) * l + 0.984375;
418
+ }, easeInBounce: function(l) {
419
+ return 1 - M.easeOutBounce(1 - l);
420
+ }, easeOutBack: function(l) {
421
+ return 1 + 2.70158 * Math.pow(l - 1, 3) + 1.70158 * Math.pow(l - 1, 2);
422
+ }, easeInBack: function(l) {
423
+ return 2.70158 * l * l * l - 1.70158 * l * l;
424
+ } }, new function l() {
425
+ var g = this;
426
+ e(this, l), i(this, "drivers", []), i(this, "elements", []), i(this, "frame", 0), i(this, "debug", !1), i(this, "windowWidth", 0), i(this, "windowHeight", 0), i(this, "presets", dt), i(this, "debugData", { frameLengths: [] }), i(this, "init", function() {
427
+ g.findAndAddElements(), window.requestAnimationFrame(g.onAnimationFrame), g.windowWidth = document.body.clientWidth, g.windowHeight = document.body.clientHeight, window.onresize = g.onWindowResize;
428
+ }), i(this, "onWindowResize", function() {
429
+ document.body.clientWidth === g.windowWidth && document.body.clientHeight === g.windowHeight || (g.windowWidth = document.body.clientWidth, g.windowHeight = document.body.clientHeight, g.elements.forEach(function(E) {
430
+ return E.calculateTransforms();
431
+ }));
432
+ }), i(this, "onAnimationFrame", function(E) {
433
+ g.debug && (g.debugData.frameStart = Date.now());
434
+ var L, j = {};
435
+ g.drivers.forEach(function(D) {
436
+ j[D.name] = D.getValue(g.frame);
437
+ }), g.elements.forEach(function(D) {
438
+ D.update(j, g.frame);
439
+ }), g.debug && g.debugData.frameLengths.push(Date.now() - g.debugData.frameStart), g.frame % 60 == 0 && g.debug && (L = Math.ceil(g.debugData.frameLengths.reduce(function(D, st) {
440
+ return D + st;
441
+ }, 0) / 60), console.log("Average frame calculation time: ".concat(L, "ms")), g.debugData.frameLengths = []), g.frame++, window.requestAnimationFrame(g.onAnimationFrame);
442
+ }), i(this, "addDriver", function(E, L) {
443
+ var j = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
444
+ g.drivers.push(new jt(E, L, j));
445
+ }), i(this, "removeDriver", function(E) {
446
+ g.drivers = g.drivers.filter(function(L) {
447
+ return L.name !== E;
448
+ });
449
+ }), i(this, "findAndAddElements", function() {
450
+ g.elements = [], document.querySelectorAll(".lax").forEach(function(E) {
451
+ var L = [];
452
+ E.classList.forEach(function(D) {
453
+ D.includes("lax_preset") && (D = D.replace("lax_preset_", ""), L.push(D));
454
+ });
455
+ var j = i({}, "scrollY", { presets: L });
456
+ g.elements.push(new Ct(".lax", g, E, j, 0, {}));
457
+ });
458
+ }), i(this, "addElements", function(E, L, j) {
459
+ document.querySelectorAll(E).forEach(function(D, st) {
460
+ g.elements.push(new Ct(E, g, D, L, st, j));
461
+ });
462
+ }), i(this, "removeElements", function(E) {
463
+ g.elements = g.elements.filter(function(L) {
464
+ return L.selector !== E;
465
+ });
466
+ }), i(this, "addElement", function(E, L, j) {
467
+ g.elements.push(new Ct("", g, E, L, 0, j));
468
+ }), i(this, "removeElement", function(E) {
469
+ g.elements = g.elements.filter(function(L) {
470
+ return L.domElement !== E;
471
+ });
472
+ });
473
+ }());
474
+ function It(l, g) {
475
+ if (Array.isArray(l)) return l;
476
+ for (var E = Object.keys(l).map(function(st) {
477
+ return parseInt(st);
478
+ }).sort(function(st, T) {
479
+ return T < st ? 1 : -1;
480
+ }), L = E[E.length - 1], j = 0; j < E.length; j++) {
481
+ var D = E[j];
482
+ if (g < D) {
483
+ L = D;
484
+ break;
485
+ }
486
+ }
487
+ return l[L];
488
+ }
489
+ function _t(l, C, E) {
490
+ var L = C.width, j = C.height, u = C.x, I = C.y;
491
+ if (typeof l == "number") return l;
492
+ var D, st = document.body.scrollHeight, T = document.body.scrollWidth, v = window.innerWidth, c = window.innerHeight, O = s((D = window.pageXOffset !== void 0, O = (document.compatMode || "") === "CSS1Compat", C = D ? window.pageXOffset : (O ? document.documentElement : document.body).scrollLeft, [D ? window.pageYOffset : (O ? document.documentElement : document.body).scrollTop, C]), 2), C = O[0], u = u + O[1], O = u + L, I = I + C, C = I + j;
493
+ return Function("return ".concat(l.replace(/screenWidth/g, v).replace(/screenHeight/g, c).replace(/pageHeight/g, st).replace(/pageWidth/g, T).replace(/elWidth/g, L).replace(/elHeight/g, j).replace(/elInY/g, I - c).replace(/elOutY/g, C).replace(/elCenterY/g, I + j / 2 - c / 2).replace(/elInX/g, u - v).replace(/elOutX/g, O).replace(/elCenterX/g, u + L / 2 - v / 2).replace(/index/g, E)))();
494
+ }
495
+ function jt(l, g) {
496
+ var E = this, L = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : {};
497
+ e(this, jt), i(this, "getValueFn", void 0), i(this, "name", ""), i(this, "lastValue", 0), i(this, "frameStep", 1), i(this, "m1", 0), i(this, "m2", 0), i(this, "inertia", 0), i(this, "inertiaEnabled", !1), i(this, "getValue", function(j) {
498
+ var D = E.lastValue;
499
+ return j % E.frameStep == 0 && (D = E.getValueFn(j)), E.inertiaEnabled && (j = D - E.lastValue, E.m1 = 0.8 * E.m1 + j * (1 - 0.8), E.m2 = 0.8 * E.m2 + E.m1 * (1 - 0.8), E.inertia = Math.round(5e3 * E.m2) / 15e3), E.lastValue = D, [E.lastValue, E.inertia];
500
+ }), this.name = l, this.getValueFn = g, Object.keys(L).forEach(function(j) {
501
+ E[j] = L[j];
502
+ }), this.lastValue = this.getValueFn(0);
503
+ }
504
+ function Ct(l, g, E, L) {
505
+ var j = this, D = 4 < arguments.length && arguments[4] !== void 0 ? arguments[4] : 0, T = 5 < arguments.length && arguments[5] !== void 0 ? arguments[5] : {};
506
+ e(this, Ct), i(this, "domElement", void 0), i(this, "transformsData", void 0), i(this, "styles", {}), i(this, "selector", ""), i(this, "groupIndex", 0), i(this, "laxInstance", void 0), i(this, "onUpdate", void 0), i(this, "update", function(v, c) {
507
+ var u, O = j.transforms, I = {};
508
+ for (u in O) {
509
+ var C = O[u];
510
+ v[u] || console.error("No lax driver with name: ", u);
511
+ var $, B = s(v[u], 2), F = B[0], ot = B[1];
512
+ for ($ in C) {
513
+ var lt, ft = s(C[$], 3), G = ft[0], U = ft[1], Tt = ft[2], J = Tt === void 0 ? {} : Tt, ct = J.modValue, yt = J.frameStep, Vt = yt === void 0 ? 1 : yt, vt = J.easing, ft = J.inertia, Tt = J.inertiaMode, yt = J.cssFn, J = J.cssUnit, J = J === void 0 ? "" : J, vt = M[vt];
514
+ c % Vt == 0 && (vt = (function(tt, ht, gt, wt) {
515
+ var pt = 0;
516
+ if (tt.forEach(function(Yt) {
517
+ Yt < gt && pt++;
518
+ }), pt <= 0) return ht[0];
519
+ if (pt >= tt.length) return ht[tt.length - 1];
520
+ var Ot, Q = (Q = tt[Ot = pt - 1], tt = tt[pt], (gt - Q) / (tt - Q));
521
+ return wt && (Q = wt(Q)), Ot = ht[Ot], ht = ht[pt], Ot * (1 - (Q = Q)) + ht * Q;
522
+ })(G, U, ct ? F % ct : F, vt), ft && (lt = ot * ft, Tt === "absolute" && (lt = Math.abs(lt)), vt += lt), lt = (J || q.includes($) ? "px" : P.includes($) ? "deg" : "") == "px" ? 0 : 3, lt = vt.toFixed(lt), I[$] = yt ? yt(lt, j.domElement) : lt + J);
523
+ }
524
+ }
525
+ j.applyStyles(I), j.onUpdate && j.onUpdate(v, j.domElement);
526
+ }), i(this, "calculateTransforms", function() {
527
+ j.transforms = {};
528
+ var v, c = j.laxInstance.windowWidth;
529
+ for (v in j.transformsData) (function(u) {
530
+ var O = j.transformsData[u], I = {}, C = O.presets;
531
+ (C === void 0 ? [] : C).forEach(function(G) {
532
+ var F, U = s(G.split(":"), 3), ot = U[0], lt = U[1], G = U[2], U = window.lax.presets[ot];
533
+ U ? (F = U(lt, G), Object.keys(F).forEach(function(ct) {
534
+ O[ct] = F[ct];
535
+ })) : console.error("Lax preset cannot be found with name: ", ot);
536
+ }), delete O.presets;
537
+ for (var $ in O) (function(B) {
538
+ var F = s(O[B], 3), G = F[0], lt = G === void 0 ? [-1e9, 1e9] : G, G = F[1], G = G === void 0 ? [-1e9, 1e9] : G, F = F[2], F = F === void 0 ? {} : F, ot = j.domElement.getBoundingClientRect(), lt = It(lt, c).map(function(U) {
539
+ return _t(U, ot, j.groupIndex);
540
+ }), G = It(G, c).map(function(U) {
541
+ return _t(U, ot, j.groupIndex);
542
+ });
543
+ I[B] = [lt, G, F];
544
+ })($);
545
+ j.transforms[u] = I;
546
+ })(v);
547
+ }), i(this, "applyStyles", function(v) {
548
+ var c, u, O, I = (c = v, u = { transform: "", filter: "" }, O = { translateX: 1e-5, translateY: 1e-5, translateZ: 1e-5 }, Object.keys(c).forEach(function(C) {
549
+ var $ = c[C], B = q.includes(C) ? "px" : P.includes(C) ? "deg" : "";
550
+ _.includes(C) ? O[C] = $ : y.includes(C) ? u.transform += "".concat(C, "(").concat($).concat(B, ") ") : b.includes(C) ? u.filter += "".concat(C, "(").concat($).concat(B, ") ") : u[C] = "".concat($).concat(B, " ");
551
+ }), u.transform = "translate3d(".concat(O.translateX, "px, ").concat(O.translateY, "px, ").concat(O.translateZ, "px) ").concat(u.transform), u);
552
+ Object.keys(I).forEach(function(C) {
553
+ j.domElement.style.setProperty(C, I[C]);
554
+ });
555
+ }), this.selector = l, this.laxInstance = g, this.domElement = E, this.transformsData = L, this.groupIndex = D;
556
+ var st = (D = T.style) === void 0 ? {} : D, T = T.onUpdate;
557
+ Object.keys(st).forEach(function(v) {
558
+ E.style.setProperty(v, st[v]);
559
+ }), T && (this.onUpdate = T), this.calculateTransforms();
560
+ }
561
+ o.exports !== void 0 ? o.exports = et : window.lax = et;
562
+ })();
563
+ })(ye)), ye.exports;
564
+ }
565
+ var Qe = Ge();
566
+ const Zt = /* @__PURE__ */ be(Qe);
567
+ class Ke {
568
+ constructor(e = {}) {
569
+ const i = {
570
+ // transition: 'all 0.3s ease-out',
571
+ };
572
+ this.settings = Object.assign(this, i, e), this.elements = [];
573
+ }
574
+ init() {
575
+ Zt.init(), Zt.addDriver("scrollY", function() {
576
+ return window.scrollY;
577
+ }), this.refresh(), this.lax = Zt, Object.assign(this, Zt);
578
+ }
579
+ refresh() {
580
+ let e = !1;
581
+ document.body.hasAttribute("data-skrollrr-off") && (e = !0), this.elements.forEach((t) => {
582
+ Zt.removeElement(t), t.style && (t.style.transition && (t.style.transition = ""), t.style.transform && (t.style.transform = ""));
583
+ }), this.elements = [];
584
+ let i = window.innerWidth;
585
+ document.querySelectorAll("[data-bottom-top],[data-center],[data-center-bottom],[data-100-top],[data-50-top],[data-top],[data-top-bottom],[data-center-top],[data--300-bottom],[data--150-bottom],[data--50-bottom],[data-bottom],[data-100-bottom],[data-150-bottom],[data-400-bottom],[data--400-bottom],[data--200-bottom],[data--100-bottom],[data-50-bottom],[data-200-bottom],[data-300-bottom],[data-in],[data-in-150],[data-in-300],[data-cen--150],[data-cen],[data-cen-150],[data-out--300],[data-out--150],[data-out][data-t],[data-t-100],[data-t-200],[data-t-300],[data-t-400],[data-t-500],[data-t-600],[data-t-700],[data-t-800],[data-t-900],[data-t-1000],[data-t-1100],[data-t-1200],[data-t-1300],[data-t-1400],[data-t-1500],[data-t-1600],[data-t-1700],[data-t-1800],[data-t-1900],[data-t-2000],[data-t-2100],[data-t-2200],[data-t-2300],[data-t-2400],[data-t-2500],[data-t-2600],[data-t-2700],[data-t-2800]").forEach((t) => {
586
+ let n = !1;
587
+ if (i <= 760 && t.closest(".m-skrollrr-off") && (n = !0), e || n) {
588
+ t.style.transform = "", t.style.transition = "", t.style.opacity = "";
589
+ return;
590
+ }
591
+ t.style.transform = "";
592
+ let r = this.getObjVal(t, "data-top-bottom"), a = this.getObjVal(t, "data-top"), f = this.getObjVal(t, "data-50-top"), d = this.getObjVal(t, "data-100-top"), y = this.getObjVal(t, "data-center-bottom"), b = this.getObjVal(t, "data-center"), _ = this.getObjVal(t, "data-center-top"), q = this.getObjVal(t, "data--400-bottom"), P = this.getObjVal(t, "data--300-bottom"), M = this.getObjVal(t, "data--200-bottom"), dt = this.getObjVal(t, "data--150-bottom"), et = this.getObjVal(t, "data--100-bottom"), It = this.getObjVal(t, "data--50-bottom"), _t = this.getObjVal(t, "data-bottom"), jt = this.getObjVal(t, "data-50-bottom"), Ct = this.getObjVal(t, "data-100-bottom"), l = this.getObjVal(t, "data-150-bottom"), g = this.getObjVal(t, "data-200-bottom"), E = this.getObjVal(t, "data-300-bottom"), L = this.getObjVal(t, "data-400-bottom"), j = this.getObjVal(t, "data-bottom-top"), D = this.getObjVal(t, "data-in"), st = this.getObjVal(t, "data-in-150"), T = this.getObjVal(t, "data-in-300"), v = this.getObjVal(t, "data-cen--150"), c = this.getObjVal(t, "data-cen"), u = this.getObjVal(t, "data-cen-150"), O = this.getObjVal(t, "data-out--300"), I = this.getObjVal(t, "data-out--150"), C = this.getObjVal(t, "data-out"), $ = !1;
593
+ t.hasAttribute("data-xs") && ($ = !0);
594
+ let B = !1;
595
+ t.hasAttribute("data-sm") && (B = !0);
596
+ let F = !1;
597
+ t.hasAttribute("data-md") && (F = !0), t.hasAttribute("data-lg"), t.hasAttribute("data-xl");
598
+ let ot = {}, lt = {}, G = {}, U = {}, ct = {}, Vt = {}, ft = {}, Tt = {}, yt = {}, J = {}, vt = {}, tt = {}, ht = {}, gt = {}, wt = {}, pt = {}, Ot = {}, Q = {}, Yt = {}, Mt = {}, xt = {}, qt = {}, X = {}, h = {}, x = {}, k = {}, H = {}, W = {}, p = {}, w = {}, S = {}, A = {}, V = {};
599
+ (i > 1280 || i > 970 && i <= 1280 && !F || i > 760 && i <= 970 && !B || i <= 760 && !$) && (G = this.getObjVal(t, "data-t"), U = this.getObjVal(t, "data-t-100"), ct = this.getObjVal(t, "data-t-200"), Vt = this.getObjVal(t, "data-t-300"), ft = this.getObjVal(t, "data-t-400"), Tt = this.getObjVal(t, "data-t-500"), yt = this.getObjVal(t, "data-t-600"), J = this.getObjVal(t, "data-t-700"), vt = this.getObjVal(t, "data-t-800"), tt = this.getObjVal(t, "data-t-900"), ht = this.getObjVal(t, "data-t-1000"), gt = this.getObjVal(t, "data-t-1100"), wt = this.getObjVal(t, "data-t-1200"), pt = this.getObjVal(t, "data-t-1300"), Ot = this.getObjVal(t, "data-t-1400"), Q = this.getObjVal(t, "data-t-1500"), Yt = this.getObjVal(t, "data-t-1600"), Mt = this.getObjVal(t, "data-t-1700"), xt = this.getObjVal(t, "data-t-1800"), qt = this.getObjVal(t, "data-t-1900"), X = this.getObjVal(t, "data-t-2000"), h = this.getObjVal(t, "data-t-2100"), x = this.getObjVal(t, "data-t-2200"), k = this.getObjVal(t, "data-t-2300"), H = this.getObjVal(t, "data-t-2400"), W = this.getObjVal(t, "data-t-2500"), p = this.getObjVal(t, "data-t-2600"), w = this.getObjVal(t, "data-t-2700"), S = this.getObjVal(t, "data-t-2800")), i > 970 && i <= 1280 && F && (t.hasAttribute("data-md-t") && (G = this.getObjVal(t, "data-md-t")), t.hasAttribute("data-md-t-100") && (U = this.getObjVal(t, "data-md-t-100")), t.hasAttribute("data-md-t-200") && (ct = this.getObjVal(t, "data-md-t-200")), t.hasAttribute("data-md-t-300") && (Vt = this.getObjVal(t, "data-md-t-300")), t.hasAttribute("data-md-t-400") && (ft = this.getObjVal(t, "data-md-t-400")), t.hasAttribute("data-md-t-500") && (Tt = this.getObjVal(t, "data-md-t-500")), t.hasAttribute("data-md-t-600") && (yt = this.getObjVal(t, "data-md-t-600")), t.hasAttribute("data-md-t-700") && (J = this.getObjVal(t, "data-md-t-700")), t.hasAttribute("data-md-t-800") && (vt = this.getObjVal(t, "data-md-t-800")), t.hasAttribute("data-md-t-900") && (tt = this.getObjVal(t, "data-md-t-900")), t.hasAttribute("data-md-t-1000") && (ht = this.getObjVal(t, "data-md-t-1000")), t.hasAttribute("data-md-t-1100") && (gt = this.getObjVal(t, "data-md-t-1100")), t.hasAttribute("data-md-t-1200") && (wt = this.getObjVal(t, "data-md-t-1200")), t.hasAttribute("data-md-t-1300") && (pt = this.getObjVal(t, "data-md-t-1300")), t.hasAttribute("data-md-t-1400") && (Ot = this.getObjVal(t, "data-md-t-1400")), t.hasAttribute("data-md-t-1500") && (Q = this.getObjVal(t, "data-md-t-1500")), t.hasAttribute("data-md-t-1600") && (Yt = this.getObjVal(t, "data-md-t-1600")), t.hasAttribute("data-md-t-1700") && (Mt = this.getObjVal(t, "data-md-t-1700")), t.hasAttribute("data-md-t-1800") && (xt = this.getObjVal(t, "data-md-t-1800")), t.hasAttribute("data-md-t-1900") && (qt = this.getObjVal(t, "data-md-t-1900")), t.hasAttribute("data-md-t-2000") && (X = this.getObjVal(t, "data-md-t-2000")), t.hasAttribute("data-md-t-2100") && (h = this.getObjVal(t, "data-md-t-2100")), t.hasAttribute("data-md-t-2200") && (x = this.getObjVal(t, "data-md-t-2200")), t.hasAttribute("data-md-t-2300") && (k = this.getObjVal(t, "data-md-t-2300")), t.hasAttribute("data-md-t-2400") && (H = this.getObjVal(t, "data-md-t-2400")), t.hasAttribute("data-md-t-2500") && (W = this.getObjVal(t, "data-md-t-2500")), t.hasAttribute("data-md-t-2600") && (p = this.getObjVal(t, "data-md-t-2600")), t.hasAttribute("data-md-t-2700") && (w = this.getObjVal(t, "data-md-t-2700")), t.hasAttribute("data-md-t-2800") && (S = this.getObjVal(t, "data-md-t-2800"))), i <= 970 && t.hasAttribute("m-data-out") && (C = this.getObjVal(t, "m-data-out")), (i > 760 && i <= 970 && B || i <= 760 && !$ && B) && (t.hasAttribute("data-sm-t") && (G = this.getObjVal(t, "data-sm-t")), t.hasAttribute("data-sm-t-100") && (U = this.getObjVal(t, "data-sm-t-100")), t.hasAttribute("data-sm-t-200") && (ct = this.getObjVal(t, "data-sm-t-200")), t.hasAttribute("data-sm-t-300") && (Vt = this.getObjVal(t, "data-sm-t-300")), t.hasAttribute("data-sm-t-400") && (ft = this.getObjVal(t, "data-sm-t-400")), t.hasAttribute("data-sm-t-500") && (Tt = this.getObjVal(t, "data-sm-t-500")), t.hasAttribute("data-sm-t-600") && (yt = this.getObjVal(t, "data-sm-t-600")), t.hasAttribute("data-sm-t-700") && (J = this.getObjVal(t, "data-sm-t-700")), t.hasAttribute("data-sm-t-800") && (vt = this.getObjVal(t, "data-sm-t-800")), t.hasAttribute("data-sm-t-900") && (tt = this.getObjVal(t, "data-sm-t-900")), t.hasAttribute("data-sm-t-1000") && (ht = this.getObjVal(t, "data-sm-t-1000")), t.hasAttribute("data-sm-t-1100") && (gt = this.getObjVal(t, "data-sm-t-1100")), t.hasAttribute("data-sm-t-1200") && (wt = this.getObjVal(t, "data-sm-t-1200")), t.hasAttribute("data-sm-t-1300") && (pt = this.getObjVal(t, "data-sm-t-1300")), t.hasAttribute("data-sm-t-1400") && (Ot = this.getObjVal(t, "data-sm-t-1400")), t.hasAttribute("data-sm-t-1500") && (Q = this.getObjVal(t, "data-sm-t-1500")), t.hasAttribute("data-sm-t-1600") && (Yt = this.getObjVal(t, "data-sm-t-1600")), t.hasAttribute("data-sm-t-1700") && (Mt = this.getObjVal(t, "data-sm-t-1700")), t.hasAttribute("data-sm-t-1800") && (xt = this.getObjVal(t, "data-sm-t-1800")), t.hasAttribute("data-sm-t-1900") && (qt = this.getObjVal(t, "data-sm-t-1900")), t.hasAttribute("data-sm-t-2000") && (X = this.getObjVal(t, "data-sm-t-2000")), t.hasAttribute("data-sm-t-2100") && (h = this.getObjVal(t, "data-sm-t-2100")), t.hasAttribute("data-sm-t-2200") && (x = this.getObjVal(t, "data-sm-t-2200")), t.hasAttribute("data-sm-t-2300") && (k = this.getObjVal(t, "data-sm-t-2300")), t.hasAttribute("data-sm-t-2400") && (H = this.getObjVal(t, "data-sm-t-2400")), t.hasAttribute("data-sm-t-2500") && (W = this.getObjVal(t, "data-sm-t-2500")), t.hasAttribute("data-sm-t-2600") && (p = this.getObjVal(t, "data-sm-t-2600")), t.hasAttribute("data-sm-t-2700") && (w = this.getObjVal(t, "data-sm-t-2700")), t.hasAttribute("data-sm-t-2800") && (S = this.getObjVal(t, "data-sm-t-2800"))), i <= 414 && $ && (t.hasAttribute("data-xs-t") && (G = this.getObjVal(t, "data-xs-t")), t.hasAttribute("data-xs-t-100") && (U = this.getObjVal(t, "data-xs-t-100")), t.hasAttribute("data-xs-t-200") && (ct = this.getObjVal(t, "data-xs-t-200")), t.hasAttribute("data-xs-t-300") && (Vt = this.getObjVal(t, "data-xs-t-300")), t.hasAttribute("data-xs-t-400") && (ft = this.getObjVal(t, "data-xs-t-400")), t.hasAttribute("data-xs-t-500") && (Tt = this.getObjVal(t, "data-xs-t-500")), t.hasAttribute("data-xs-t-600") && (yt = this.getObjVal(t, "data-xs-t-600")), t.hasAttribute("data-xs-t-700") && (J = this.getObjVal(t, "data-xs-t-700")), t.hasAttribute("data-xs-t-800") && (vt = this.getObjVal(t, "data-xs-t-800")), t.hasAttribute("data-xs-t-900") && (tt = this.getObjVal(t, "data-xs-t-900")), t.hasAttribute("data-xs-t-1000") && (ht = this.getObjVal(t, "data-xs-t-1000")), t.hasAttribute("data-xs-t-1100") && (gt = this.getObjVal(t, "data-xs-t-1100")), t.hasAttribute("data-xs-t-1200") && (wt = this.getObjVal(t, "data-xs-t-1200")), t.hasAttribute("data-xs-t-1300") && (pt = this.getObjVal(t, "data-xs-t-1300")), t.hasAttribute("data-xs-t-1400") && (Ot = this.getObjVal(t, "data-xs-t-1400")), t.hasAttribute("data-xs-t-1500") && (Q = this.getObjVal(t, "data-xs-t-1500")), t.hasAttribute("data-xs-t-1600") && (Yt = this.getObjVal(t, "data-xs-t-1600")), t.hasAttribute("data-xs-t-1700") && (Mt = this.getObjVal(t, "data-xs-t-1700")), t.hasAttribute("data-xs-t-1800") && (xt = this.getObjVal(t, "data-xs-t-1800")), t.hasAttribute("data-xs-t-1900") && (qt = this.getObjVal(t, "data-xs-t-1900")), t.hasAttribute("data-xs-t-2000") && (X = this.getObjVal(t, "data-xs-t-2000")), t.hasAttribute("data-xs-t-2100") && (h = this.getObjVal(t, "data-xs-t-2100")), t.hasAttribute("data-xs-t-2200") && (x = this.getObjVal(t, "data-xs-t-2200")), t.hasAttribute("data-xs-t-2300") && (k = this.getObjVal(t, "data-xs-t-2300")), t.hasAttribute("data-xs-t-2400") && (H = this.getObjVal(t, "data-xs-t-2400")), t.hasAttribute("data-xs-t-2500") && (W = this.getObjVal(t, "data-xs-t-2500")), t.hasAttribute("data-xs-t-2600") && (p = this.getObjVal(t, "data-xs-t-2600")), t.hasAttribute("data-xs-t-2700") && (w = this.getObjVal(t, "data-xs-t-2700")), t.hasAttribute("data-xs-t-2800") && (S = this.getObjVal(t, "data-xs-t-2800")));
600
+ let it = G, R = U, Y = ct, K = Vt, z = ft, mt = Tt, nt = yt, at = J, bt = vt, Dt = tt, Nt = ht, Ht = gt, St = wt, N = pt, ut = Ot, Et = Q, Jt = Yt, te = Mt, ee = xt, ie = qt, se = X, ne = h, ae = x, re = k, oe = H, le = W, de = p, ce = w, he = S, Ft = window.innerHeight;
601
+ Ft < 730 ? (ot = it, lt = R, G = Y, U = K, ct = z, Vt = mt, ft = nt, Tt = at, yt = bt, J = Dt, vt = Nt, tt = Ht, ht = St, gt = N, wt = ut, pt = Et, Ot = Jt, Q = te, Yt = ee, Mt = ie, xt = se, qt = ne, X = ae, h = re, x = oe, k = le, H = de, W = ce, p = he, w = {}, S = {}) : Ft >= 730 && Ft < 790 ? (lt = it, G = R, U = Y, ct = K, Vt = z, ft = mt, Tt = nt, yt = at, J = bt, vt = Dt, tt = Nt, ht = Ht, gt = St, wt = N, pt = ut, Ot = Et, Q = Jt, Yt = te, Mt = ee, xt = ie, qt = se, X = ne, h = ae, x = re, k = oe, H = le, W = de, p = ce, w = he, S = {}) : Ft >= 790 && Ft < 840 || (Ft >= 840 && Ft < 1125 ? (G = {}, U = it, ct = R, Vt = Y, ft = K, Tt = z, yt = mt, J = nt, vt = at, tt = bt, ht = Dt, gt = Nt, wt = Ht, pt = St, Ot = N, Q = ut, Yt = Et, Mt = Jt, xt = te, qt = ee, X = ie, h = se, x = ne, k = ae, H = re, W = oe, p = le, w = de, S = ce, A = he) : (G = {}, U = {}, ct = it, Vt = R, ft = Y, Tt = K, yt = z, J = mt, vt = nt, tt = at, ht = bt, gt = Dt, wt = Nt, pt = Ht, Ot = St, Q = N, Yt = ut, Mt = Et, xt = Jt, qt = te, X = ee, h = ie, x = se, k = ne, H = ae, W = re, p = oe, w = le, S = de, A = ce, V = he));
602
+ let m = {};
603
+ Object.keys(j).length !== 0 && (m = this.parseObj(j, "elInY", m)), Object.keys(L).length !== 0 && (m = this.parseObj(L, "elInY+50", m)), Object.keys(E).length !== 0 && (m = this.parseObj(E, "elInY+100", m)), Object.keys(g).length !== 0 && (m = this.parseObj(g, "elInY+150", m)), Object.keys(l).length !== 0 && (m = this.parseObj(l, "elInY+200", m)), Object.keys(Ct).length !== 0 && (m = this.parseObj(Ct, "elInY+250", m)), Object.keys(jt).length !== 0 && (m = this.parseObj(jt, "elInY+300", m)), Object.keys(_t).length !== 0 && (m = this.parseObj(_t, "elInY+350", m)), Object.keys(It).length !== 0 && (m = this.parseObj(It, "elInY+400", m)), Object.keys(et).length !== 0 && (m = this.parseObj(et, "elInY+450", m)), Object.keys(dt).length !== 0 && (m = this.parseObj(dt, "elInY+500", m)), Object.keys(M).length !== 0 && (m = this.parseObj(M, "elInY+550", m)), Object.keys(P).length !== 0 && (m = this.parseObj(P, "elInY+600", m)), Object.keys(q).length !== 0 && (m = this.parseObj(q, "elInY+650", m)), Object.keys(_).length !== 0 && (m = this.parseObj(_, "elCenterY-300", m)), Object.keys(b).length !== 0 && (m = this.parseObj(b, "elCenterY", m)), Object.keys(y).length !== 0 && (m = this.parseObj(y, "elCenterY+100", m)), Object.keys(d).length !== 0 && (m = this.parseObj(d, "elCenterY+200", m)), Object.keys(f).length !== 0 && (m = this.parseObj(f, "elCenterY+300", m)), Object.keys(a).length !== 0 && (m = this.parseObj(a, "elOutY-300", m)), Object.keys(r).length !== 0 && (m = this.parseObj(r, "elOutY", m)), Object.keys(D).length !== 0 && (m = this.parseObj(D, "elInY", m)), Object.keys(st).length !== 0 && (m = this.parseObj(st, "elInY+150", m)), Object.keys(T).length !== 0 && (m = this.parseObj(T, "elInY+300 ", m)), Object.keys(v).length !== 0 && (m = this.parseObj(v, "elCenterY-150", m)), Object.keys(c).length !== 0 && (m = this.parseObj(c, "elCenterY", m)), Object.keys(u).length !== 0 && (m = this.parseObj(u, "elCenterY+150", m)), Object.keys(O).length !== 0 && (m = this.parseObj(O, "elOutY-300 ", m)), Object.keys(I).length !== 0 && (m = this.parseObj(I, "elOutY-150 ", m)), Object.keys(C).length !== 0 && (m = this.parseObj(C, "elOutY", m)), Object.keys(ot).length !== 0 && (m = this.parseObj(ot, "elInY-200", m)), Object.keys(lt).length !== 0 && (m = this.parseObj(lt, "elInY-100", m)), Object.keys(G).length !== 0 && (m = this.parseObj(G, "elInY", m)), Object.keys(U).length !== 0 && (m = this.parseObj(U, "elInY+100", m)), Object.keys(ct).length !== 0 && (m = this.parseObj(ct, "elInY+200", m)), Object.keys(Vt).length !== 0 && (m = this.parseObj(Vt, "elInY+300 ", m)), Object.keys(ft).length !== 0 && (m = this.parseObj(ft, "elInY+400 ", m)), Object.keys(Tt).length !== 0 && (m = this.parseObj(Tt, "elInY+500 ", m)), Object.keys(yt).length !== 0 && (m = this.parseObj(yt, "elInY+600 ", m)), Object.keys(J).length !== 0 && (m = this.parseObj(J, "elInY+700 ", m)), Object.keys(vt).length !== 0 && (m = this.parseObj(vt, "elInY+800 ", m)), Object.keys(tt).length !== 0 && (m = this.parseObj(tt, "elInY+900 ", m)), Object.keys(ht).length !== 0 && (m = this.parseObj(ht, "elInY+1000 ", m)), Object.keys(gt).length !== 0 && (m = this.parseObj(gt, "elInY+1100 ", m)), Object.keys(wt).length !== 0 && (m = this.parseObj(wt, "elInY+1200 ", m)), Object.keys(pt).length !== 0 && (m = this.parseObj(pt, "elInY+1300 ", m)), Object.keys(Ot).length !== 0 && (m = this.parseObj(Ot, "elInY+1400 ", m)), Object.keys(Q).length !== 0 && (m = this.parseObj(Q, "elInY+1500 ", m)), Object.keys(Yt).length !== 0 && (m = this.parseObj(Yt, "elInY+1600 ", m)), Object.keys(Mt).length !== 0 && (m = this.parseObj(Mt, "elInY+1700 ", m)), Object.keys(xt).length !== 0 && (m = this.parseObj(xt, "elInY+1800 ", m)), Object.keys(qt).length !== 0 && (m = this.parseObj(qt, "elInY+1900 ", m)), Object.keys(X).length !== 0 && (m = this.parseObj(X, "elInY+2000 ", m)), Object.keys(h).length !== 0 && (m = this.parseObj(h, "elInY+2100 ", m)), Object.keys(x).length !== 0 && (m = this.parseObj(x, "elInY+2200 ", m)), Object.keys(k).length !== 0 && (m = this.parseObj(k, "elInY+2300 ", m)), Object.keys(H).length !== 0 && (m = this.parseObj(H, "elInY+2400 ", m)), Object.keys(W).length !== 0 && (m = this.parseObj(W, "elInY+2500 ", m)), Object.keys(p).length !== 0 && (m = this.parseObj(p, "elInY+2600 ", m)), Object.keys(w).length !== 0 && (m = this.parseObj(w, "elInY+2700 ", m)), Object.keys(S).length !== 0 && (m = this.parseObj(S, "elInY+2800 ", m)), Object.keys(A).length !== 0 && (m = this.parseObj(A, "elInY+2900 ", m)), Object.keys(V).length !== 0 && (m = this.parseObj(V, "elInY+3000 ", m)), t.style.transition = "", t.setAttribute("data-dummy-selector", "1"), Zt.addElements("[data-dummy-selector]", {
604
+ scrollY: m
605
+ }), this.elements.push(document.querySelector("[data-dummy-selector]")), t.removeAttribute("data-dummy-selector"), setTimeout(() => {
606
+ t.style.opacity = 1, t.getAttribute("data-smooth-scrolling") === "off" || this.settings.transition && (t.style.transition = this.settings.transition);
607
+ }, 100);
608
+ });
609
+ }
610
+ parseTransformProperty(e) {
611
+ for (var i = /(\w+)\((.+?)\)/g, s = {}, t; t = i.exec(e); )
612
+ s[t[1]] = s[t[1]] ? s[t[1]].concat([t[2]]) : [t[2]];
613
+ return s;
614
+ }
615
+ getObjVal(e, i) {
616
+ let s = {}, t = e.getAttribute(i);
617
+ return t && t.split(";").forEach((r) => {
618
+ if (r.indexOf("transform") !== -1 && (s = this.parseTransformProperty(r)), r.indexOf("opacity") !== -1) {
619
+ let a = r.replace("opacity:", "").replace(";", "");
620
+ s.opacity = [parseFloat(a)];
621
+ }
622
+ }), s;
623
+ }
624
+ // this.parseObj(data_150_bottom,'elInY+200',result);
625
+ parseObj(e, i, s) {
626
+ if (e.translateY) {
627
+ let t;
628
+ e.translateY[0].indexOf("%") !== -1 ? t = parseFloat(e.translateY[0]) / 100 * window.innerHeight : t = parseFloat(e.translateY[0]), s.translateY || (s.translateY = [[], []]), s.translateY[0].push(i), s.translateY[1].push(t);
629
+ }
630
+ if (e.translateX) {
631
+ let t;
632
+ e.translateX[0].indexOf("%") !== -1 ? t = parseFloat(e.translateX[0]) / 100 * window.innerWidth : t = parseFloat(e.translateX[0]), s.translateX || (s.translateX = [[], []]), s.translateX[0].push(i), s.translateX[1].push(t);
633
+ }
634
+ if (e.scale) {
635
+ let t = parseFloat(e.scale[0]);
636
+ s.scale || (s.scale = [[], []]), s.scale[0].push(i), s.scale[1].push(t);
637
+ }
638
+ if (e.rotate) {
639
+ let t = parseFloat(e.rotate[0]);
640
+ s.rotate || (s.rotate = [[], []]), s.rotate[0].push(i), s.rotate[1].push(t);
641
+ }
642
+ if (e.opacity) {
643
+ let t = parseFloat(e.opacity[0]);
644
+ s.opacity || (s.opacity = [[], []]), s.opacity[0].push(i), s.opacity[1].push(t);
645
+ }
646
+ return s;
647
+ }
648
+ }
649
+ var ve = { exports: {} }, ke;
650
+ function Je() {
651
+ return ke || (ke = 1, (function(o, e) {
652
+ (function(s, t) {
653
+ o.exports = t();
654
+ })(window, function() {
655
+ return (
656
+ /******/
657
+ (function(i) {
658
+ var s = {};
659
+ function t(n) {
660
+ if (s[n])
661
+ return s[n].exports;
662
+ var r = s[n] = {
663
+ /******/
664
+ i: n,
665
+ /******/
666
+ l: !1,
667
+ /******/
668
+ exports: {}
669
+ /******/
670
+ };
671
+ return i[n].call(r.exports, r, r.exports, t), r.l = !0, r.exports;
672
+ }
673
+ return t.m = i, t.c = s, t.d = function(n, r, a) {
674
+ t.o(n, r) || Object.defineProperty(n, r, { enumerable: !0, get: a });
675
+ }, t.r = function(n) {
676
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(n, "__esModule", { value: !0 });
677
+ }, t.t = function(n, r) {
678
+ if (r & 1 && (n = t(n)), r & 8 || r & 4 && typeof n == "object" && n && n.__esModule) return n;
679
+ var a = /* @__PURE__ */ Object.create(null);
680
+ if (t.r(a), Object.defineProperty(a, "default", { enumerable: !0, value: n }), r & 2 && typeof n != "string") for (var f in n) t.d(a, f, (function(d) {
681
+ return n[d];
682
+ }).bind(null, f));
683
+ return a;
684
+ }, t.n = function(n) {
685
+ var r = n && n.__esModule ? (
686
+ /******/
687
+ function() {
688
+ return n.default;
689
+ }
690
+ ) : (
691
+ /******/
692
+ function() {
693
+ return n;
694
+ }
695
+ );
696
+ return t.d(r, "a", r), r;
697
+ }, t.o = function(n, r) {
698
+ return Object.prototype.hasOwnProperty.call(n, r);
699
+ }, t.p = "", t(t.s = 2);
700
+ })([
701
+ /* 0 */
702
+ /***/
703
+ (function(i, s) {
704
+ /*!
705
+ * object-extend
706
+ * A well-tested function to deep extend (or merge) JavaScript objects without further dependencies.
707
+ *
708
+ * http://github.com/bernhardw
709
+ *
710
+ * Copyright 2013, Bernhard Wanger <mail@bernhardwanger.com>
711
+ * Released under the MIT license.
712
+ *
713
+ * Date: 2013-04-10
714
+ */
715
+ i.exports = function t(n, r) {
716
+ return n == null || r == null || Object.keys(r).forEach(function(a) {
717
+ Object.prototype.toString.call(r[a]) == "[object Object]" ? Object.prototype.toString.call(n[a]) != "[object Object]" ? n[a] = r[a] : n[a] = t(n[a], r[a]) : n[a] = r[a];
718
+ }), n;
719
+ };
720
+ }),
721
+ /* 1 */
722
+ /***/
723
+ (function(i, s) {
724
+ Array.prototype.each = function(t) {
725
+ for (var n = this.length, r = 0; r < n; r++) {
726
+ var a = this[r];
727
+ a && t(a, r);
728
+ }
729
+ }, NodeList.prototype.each = Array.prototype.each, NodeList.prototype.filter = Array.prototype.filter;
730
+ }),
731
+ /* 2 */
732
+ /***/
733
+ (function(i, s, t) {
734
+ t.r(s);
735
+ var n = (function() {
736
+ this.trigger = {
737
+ once: !1,
738
+ offset: {
739
+ viewport: {
740
+ x: 0,
741
+ y: 0
742
+ },
743
+ element: {
744
+ x: 0,
745
+ y: 0
746
+ }
747
+ },
748
+ toggle: {
749
+ class: {
750
+ in: "visible",
751
+ out: "invisible"
752
+ },
753
+ callback: {
754
+ in: null,
755
+ visible: null,
756
+ out: null
757
+ }
758
+ }
759
+ }, this.scroll = {
760
+ sustain: 300,
761
+ element: window,
762
+ callback: function() {
763
+ },
764
+ start: function() {
765
+ },
766
+ stop: function() {
767
+ },
768
+ directionChange: function() {
769
+ }
770
+ };
771
+ }), r = t(0), a = /* @__PURE__ */ t.n(r);
772
+ t(1);
773
+ function f(T, v) {
774
+ if (!(T instanceof v))
775
+ throw new TypeError("Cannot call a class as a function");
776
+ }
777
+ function d(T, v) {
778
+ for (var c = 0; c < v.length; c++) {
779
+ var u = v[c];
780
+ u.enumerable = u.enumerable || !1, u.configurable = !0, "value" in u && (u.writable = !0), Object.defineProperty(T, u.key, u);
781
+ }
782
+ }
783
+ function y(T, v, c) {
784
+ return v && d(T.prototype, v), T;
785
+ }
786
+ function b(T) {
787
+ return Number(T) === T && T % 1 === 0;
788
+ }
789
+ function _(T) {
790
+ return Number(T) === T && T % 1 !== 0;
791
+ }
792
+ var q = /* @__PURE__ */ (function() {
793
+ function T(v, c) {
794
+ f(this, T), this.element = v, c = a()(new n().trigger, c), this.offset = c.offset, this.toggle = c.toggle, this.once = c.once, this.visible = null, this.active = !0;
795
+ }
796
+ return y(T, [{
797
+ key: "checkVisibility",
798
+ value: function(c, u) {
799
+ if (!this.active)
800
+ return this.visible;
801
+ var O = c.offsetWidth || c.innerWidth || 0, I = c.offsetHeight || c.innerHeight || 0, C = {
802
+ w: O,
803
+ h: I
804
+ }, $ = this.getBounds(), B = this._checkVisibility($, C, u);
805
+ if (B !== this.visible) {
806
+ this.visible = B;
807
+ var F = this._toggleCallback();
808
+ F instanceof Promise ? F.then(this._toggleClass.bind(this)).catch(function(ot) {
809
+ console.error("Trigger promise failed"), console.error(ot);
810
+ }) : this._toggleClass(), this.visible && this.once && (this.active = !1);
811
+ } else if (B && typeof this.toggle.callback.visible == "function")
812
+ return this.toggle.callback.visible.call(this.element, this);
813
+ return B;
814
+ }
815
+ /**
816
+ * Get the bounds of this element
817
+ * @return {ClientRect | DOMRect}
818
+ */
819
+ }, {
820
+ key: "getBounds",
821
+ value: function() {
822
+ return this.element.getBoundingClientRect();
823
+ }
824
+ /**
825
+ * Get the calculated offset to place on the element
826
+ * @param {ClientRect} rect
827
+ * @param {string} direction top, bottom, left, right
828
+ * @returns {{x: number, y: number}}
829
+ * @private
830
+ */
831
+ }, {
832
+ key: "_getElementOffset",
833
+ value: function(c, u) {
834
+ var O = {
835
+ x: 0,
836
+ y: 0
837
+ };
838
+ return typeof this.offset.element.x == "function" ? O.x = c.width * this.offset.element.x(this, c, u) : _(this.offset.element.x) ? O.x = c.width * this.offset.element.x : b(this.offset.element.x) && (O.x = this.offset.element.x), typeof this.offset.element.y == "function" ? O.y = c.height * this.offset.element.y(this, c, u) : _(this.offset.element.y) ? O.y = c.height * this.offset.element.y : b(this.offset.element.y) && (O.y = this.offset.element.y), O;
839
+ }
840
+ /**
841
+ * Get the calculated offset to place on the viewport
842
+ * @param {{w: number, h: number}} parent
843
+ * @param {string} direction top, bottom, left, right
844
+ * @returns {{x: number, y: number}}
845
+ * @private
846
+ */
847
+ }, {
848
+ key: "_getViewportOffset",
849
+ value: function(c, u) {
850
+ var O = {
851
+ x: 0,
852
+ y: 0
853
+ };
854
+ return typeof this.offset.viewport.x == "function" ? O.x = c.w * this.offset.viewport.x(this, c, u) : _(this.offset.viewport.x) ? O.x = c.w * this.offset.viewport.x : b(this.offset.viewport.x) && (O.x = this.offset.viewport.x), typeof this.offset.viewport.y == "function" ? O.y = c.h * this.offset.viewport.y(this, c, u) : _(this.offset.viewport.y) ? O.y = c.h * this.offset.viewport.y : b(this.offset.viewport.y) && (O.y = this.offset.viewport.y), O;
855
+ }
856
+ /**
857
+ * Check the visibility of the trigger in the viewport, with offsets applied
858
+ * @param {ClientRect} rect
859
+ * @param {{w: number, h: number}} parent
860
+ * @param {string} direction top, bottom, left, right
861
+ * @returns {boolean}
862
+ * @private
863
+ */
864
+ }, {
865
+ key: "_checkVisibility",
866
+ value: function(c, u, O) {
867
+ var I = this._getElementOffset(c, O), C = this._getViewportOffset(u, O), $ = !0;
868
+ return c.left - C.x < -(c.width - I.x) && ($ = !1), c.left + C.x > u.w - I.x && ($ = !1), c.top - C.y < -(c.height - I.y) && ($ = !1), c.top + C.y > u.h - I.y && ($ = !1), $;
869
+ }
870
+ /**
871
+ * Toggles the classes
872
+ * @private
873
+ */
874
+ }, {
875
+ key: "_toggleClass",
876
+ value: function() {
877
+ var c = this;
878
+ if (this.visible) {
879
+ Array.isArray(this.toggle.class.in) ? this.toggle.class.in.each(function(u) {
880
+ c.element.classList.add(u);
881
+ }) : this.element.classList.add(this.toggle.class.in), Array.isArray(this.toggle.class.out) ? this.toggle.class.out.each(function(u) {
882
+ c.element.classList.remove(u);
883
+ }) : this.element.classList.remove(this.toggle.class.out);
884
+ return;
885
+ }
886
+ Array.isArray(this.toggle.class.in) ? this.toggle.class.in.each(function(u) {
887
+ c.element.classList.remove(u);
888
+ }) : this.element.classList.remove(this.toggle.class.in), Array.isArray(this.toggle.class.out) ? this.toggle.class.out.each(function(u) {
889
+ c.element.classList.add(u);
890
+ }) : this.element.classList.add(this.toggle.class.out);
891
+ }
892
+ /**
893
+ * Toggles the callback
894
+ * @private
895
+ * @return null|Promise
896
+ */
897
+ }, {
898
+ key: "_toggleCallback",
899
+ value: function() {
900
+ if (this.visible) {
901
+ if (typeof this.toggle.callback.in == "function")
902
+ return this.toggle.callback.in.call(this.element, this);
903
+ } else if (typeof this.toggle.callback.out == "function")
904
+ return this.toggle.callback.out.call(this.element, this);
905
+ }
906
+ }]), T;
907
+ })();
908
+ function P(T, v) {
909
+ if (!(T instanceof v))
910
+ throw new TypeError("Cannot call a class as a function");
911
+ }
912
+ function M(T, v) {
913
+ for (var c = 0; c < v.length; c++) {
914
+ var u = v[c];
915
+ u.enumerable = u.enumerable || !1, u.configurable = !0, "value" in u && (u.writable = !0), Object.defineProperty(T, u.key, u);
916
+ }
917
+ }
918
+ function dt(T, v, c) {
919
+ return v && M(T.prototype, v), T;
920
+ }
921
+ var et = /* @__PURE__ */ (function() {
922
+ function T(v) {
923
+ P(this, T), this.triggers = v instanceof Array ? v : [];
924
+ }
925
+ return dt(T, [{
926
+ key: "add",
927
+ value: function(c) {
928
+ var u = this;
929
+ if (c instanceof q)
930
+ return this.triggers.push(c);
931
+ c.each(function(O) {
932
+ O instanceof q ? u.triggers.push(O) : console.error("Object added to TriggerCollection is not a Trigger. Object: ", O);
933
+ });
934
+ }
935
+ /**
936
+ * Removes one or multiple Trigger objects
937
+ * @param {Trigger|Trigger[]} objects
938
+ */
939
+ }, {
940
+ key: "remove",
941
+ value: function(c) {
942
+ c instanceof q && (c = [c]), this.triggers = this.triggers.filter(function(u) {
943
+ var O = !1;
944
+ return c.each(function(I) {
945
+ I == u && (O = !0);
946
+ }), !O;
947
+ });
948
+ }
949
+ /**
950
+ * Lookup one or multiple triggers by a query string
951
+ * @param {string} selector
952
+ * @returns {Trigger[]}
953
+ */
954
+ }, {
955
+ key: "query",
956
+ value: function(c) {
957
+ return this.triggers.filter(function(u) {
958
+ var O = u.element, I = O.parentNode, C = [].slice.call(I.querySelectorAll(c));
959
+ return C.indexOf(O) > -1;
960
+ });
961
+ }
962
+ /**
963
+ * Lookup one or multiple triggers by a certain HTMLElement or NodeList
964
+ * @param {HTMLElement|HTMLElement[]|NodeList} element
965
+ * @returns {Trigger|Trigger[]|null}
966
+ */
967
+ }, {
968
+ key: "search",
969
+ value: function(c) {
970
+ var u = this.triggers.filter(function(O) {
971
+ if (c instanceof NodeList || Array.isArray(c)) {
972
+ var I = !1;
973
+ return c.each(function(C) {
974
+ O.element == C && (I = !0);
975
+ }), I;
976
+ }
977
+ return O.element == c;
978
+ });
979
+ return u.length == 0 ? null : u.length > 1 ? u : u[0];
980
+ }
981
+ /**
982
+ * Calls a function on all triggers
983
+ * @param {(function())} callback
984
+ */
985
+ }, {
986
+ key: "call",
987
+ value: function(c) {
988
+ this.triggers.each(c);
989
+ }
990
+ }]), T;
991
+ })();
992
+ function It(T, v) {
993
+ if (!(T instanceof v))
994
+ throw new TypeError("Cannot call a class as a function");
995
+ }
996
+ function _t(T, v) {
997
+ for (var c = 0; c < v.length; c++) {
998
+ var u = v[c];
999
+ u.enumerable = u.enumerable || !1, u.configurable = !0, "value" in u && (u.writable = !0), Object.defineProperty(T, u.key, u);
1000
+ }
1001
+ }
1002
+ function jt(T, v, c) {
1003
+ return v && _t(T.prototype, v), T;
1004
+ }
1005
+ var Ct = /* @__PURE__ */ (function() {
1006
+ function T(v, c) {
1007
+ It(this, T), this._parseOptions(v), typeof c == "function" && (this.callback = c), this.direction = "none", this.position = this.getPosition(), this.lastAction = this._getTimestamp(), this._startRun(), this._boundListener = this._didScroll.bind(this), this.element.addEventListener("scroll", this._boundListener);
1008
+ }
1009
+ return jt(T, [{
1010
+ key: "_parseOptions",
1011
+ value: function(c) {
1012
+ var u = new n().scroll;
1013
+ typeof c != "function" ? (u.callback = function() {
1014
+ }, u = a()(u, c)) : u.callback = c, this.element = u.element, this.sustain = u.sustain, this.callback = u.callback, this.startCallback = u.start, this.stopCallback = u.stop, this.directionChange = u.directionChange;
1015
+ }
1016
+ /**
1017
+ * Callback when the user scrolled the element
1018
+ * @private
1019
+ */
1020
+ }, {
1021
+ key: "_didScroll",
1022
+ value: function() {
1023
+ var c = this.getPosition();
1024
+ if (this.position !== c) {
1025
+ var u = this.direction;
1026
+ c.x !== this.position.x ? u = c.x > this.position.x ? "right" : "left" : c.y !== this.position.y ? u = c.y > this.position.y ? "bottom" : "top" : u = "none", u !== this.direction && (this.direction = u, typeof this.directionChange == "function" && this.directionChange(this.direction)), this.position = c, this.lastAction = this._getTimestamp();
1027
+ } else
1028
+ this.direction = "none";
1029
+ this.running || this._startRun();
1030
+ }
1031
+ /**
1032
+ * Starts the loop, calls the start callback
1033
+ * @private
1034
+ */
1035
+ }, {
1036
+ key: "_startRun",
1037
+ value: function() {
1038
+ this.running = !0, typeof this.startCallback == "function" && this.startCallback(), this._loop();
1039
+ }
1040
+ /**
1041
+ * Stops the loop, calls the stop callback
1042
+ * @private
1043
+ */
1044
+ }, {
1045
+ key: "_stopRun",
1046
+ value: function() {
1047
+ this.running = !1, typeof this.stopCallback == "function" && this.stopCallback();
1048
+ }
1049
+ /**
1050
+ * The current position of the element
1051
+ * @returns {{x: number, y: number}}
1052
+ */
1053
+ }, {
1054
+ key: "getPosition",
1055
+ value: function() {
1056
+ var c = this.element.pageXOffset || this.element.scrollLeft || document.documentElement.scrollLeft || 0, u = this.element.pageYOffset || this.element.scrollTop || document.documentElement.scrollTop || 0;
1057
+ return {
1058
+ x: c,
1059
+ y: u
1060
+ };
1061
+ }
1062
+ /**
1063
+ * The current timestamp in ms
1064
+ * @returns {number}
1065
+ * @private
1066
+ */
1067
+ }, {
1068
+ key: "_getTimestamp",
1069
+ value: function() {
1070
+ return Number(Date.now());
1071
+ }
1072
+ /**
1073
+ * One single tick of the animation
1074
+ * @private
1075
+ */
1076
+ }, {
1077
+ key: "_tick",
1078
+ value: function() {
1079
+ this.callback(this.position, this.direction);
1080
+ var c = this._getTimestamp();
1081
+ c - this.lastAction > this.sustain && this._stopRun(), this.running && this._loop();
1082
+ }
1083
+ /**
1084
+ * Requests an animation frame
1085
+ * @private
1086
+ */
1087
+ }, {
1088
+ key: "_loop",
1089
+ value: function() {
1090
+ var c = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame || function(u) {
1091
+ setTimeout(u, 16.666666666666668);
1092
+ };
1093
+ c(this._tick.bind(this));
1094
+ }
1095
+ /**
1096
+ * Kills the loop forever
1097
+ */
1098
+ }, {
1099
+ key: "kill",
1100
+ value: function() {
1101
+ this.running = !1, this.element.removeEventListener("scroll", this._boundListener);
1102
+ }
1103
+ }]), T;
1104
+ })();
1105
+ t.d(s, "Trigger", function() {
1106
+ return L;
1107
+ }), t.d(s, "TriggerCollection", function() {
1108
+ return j;
1109
+ }), t.d(s, "ScrollAnimationLoop", function() {
1110
+ return D;
1111
+ }), t.d(s, "default", function() {
1112
+ return st;
1113
+ });
1114
+ function l(T, v) {
1115
+ if (!(T instanceof v))
1116
+ throw new TypeError("Cannot call a class as a function");
1117
+ }
1118
+ function g(T, v) {
1119
+ for (var c = 0; c < v.length; c++) {
1120
+ var u = v[c];
1121
+ u.enumerable = u.enumerable || !1, u.configurable = !0, "value" in u && (u.writable = !0), Object.defineProperty(T, u.key, u);
1122
+ }
1123
+ }
1124
+ function E(T, v, c) {
1125
+ return v && g(T.prototype, v), T;
1126
+ }
1127
+ /*!
1128
+ * ScrollTrigger
1129
+ *
1130
+ *
1131
+ * http://github.com/terwanerik
1132
+ *
1133
+ * Copyright 2017, Erik Terwan <erik@erikterwan.com>
1134
+ * Released under the MIT license.
1135
+ *
1136
+ * Date: 2017-07-09
1137
+ */
1138
+ var L = q, j = et, D = Ct, st = /* @__PURE__ */ (function() {
1139
+ function T(v) {
1140
+ l(this, T), this._parseOptions(v), this._initCollection(), this._initLoop();
1141
+ }
1142
+ return E(T, [{
1143
+ key: "_parseOptions",
1144
+ value: function(c) {
1145
+ c = a()(new n(), c), this.defaultTrigger = c.trigger, this.scrollOptions = c.scroll;
1146
+ }
1147
+ /**
1148
+ * Initializes the collection, picks all [data-scroll] elements as initial elements
1149
+ * @private
1150
+ */
1151
+ }, {
1152
+ key: "_initCollection",
1153
+ value: function() {
1154
+ var c = document.querySelectorAll("[data-scroll]"), u = [];
1155
+ c.length > 0 && (u = this.createTriggers(c)), this.collection = new j(u);
1156
+ }
1157
+ /**
1158
+ * Initializes the scroll loop
1159
+ * @private
1160
+ */
1161
+ }, {
1162
+ key: "_initLoop",
1163
+ value: function() {
1164
+ var c = this;
1165
+ this.loop = new D({
1166
+ sustain: this.scrollOptions.sustain,
1167
+ element: this.scrollOptions.element,
1168
+ callback: function(O, I) {
1169
+ c._scrollCallback(O, I);
1170
+ },
1171
+ start: function() {
1172
+ c._scrollStart();
1173
+ },
1174
+ stop: function() {
1175
+ c._scrollStop();
1176
+ },
1177
+ directionChange: function(O) {
1178
+ c._scrollDirectionChange(O);
1179
+ }
1180
+ });
1181
+ }
1182
+ /**
1183
+ * Callback for checking triggers
1184
+ * @param {{x: number, y: number}} position
1185
+ * @param {string} direction
1186
+ * @private
1187
+ */
1188
+ }, {
1189
+ key: "_scrollCallback",
1190
+ value: function(c, u) {
1191
+ var O = this;
1192
+ this.collection.call(function(I) {
1193
+ I.checkVisibility(O.scrollOptions.element, u);
1194
+ }), this.scrollOptions.callback(c, u);
1195
+ }
1196
+ /**
1197
+ * When the scrolling started
1198
+ * @private
1199
+ */
1200
+ }, {
1201
+ key: "_scrollStart",
1202
+ value: function() {
1203
+ this.scrollOptions.start();
1204
+ }
1205
+ /**
1206
+ * When the scrolling stopped
1207
+ * @private
1208
+ */
1209
+ }, {
1210
+ key: "_scrollStop",
1211
+ value: function() {
1212
+ this.scrollOptions.stop();
1213
+ }
1214
+ /**
1215
+ * When the direction changes
1216
+ * @param {string} direction
1217
+ * @private
1218
+ */
1219
+ }, {
1220
+ key: "_scrollDirectionChange",
1221
+ value: function(c) {
1222
+ this.scrollOptions.directionChange(c);
1223
+ }
1224
+ /**
1225
+ * Creates a Trigger object from a given element and optional option set
1226
+ * @param {HTMLElement} element
1227
+ * @param {DefaultOptions.trigger} [options=DefaultOptions.trigger] options
1228
+ * @returns Trigger
1229
+ */
1230
+ }, {
1231
+ key: "createTrigger",
1232
+ value: function(c, u) {
1233
+ return new L(c, a()(this.defaultTrigger, u));
1234
+ }
1235
+ /**
1236
+ * Creates an array of triggers
1237
+ * @param {HTMLElement[]|NodeList} elements
1238
+ * @param {Object} [options=null] options
1239
+ * @returns {Trigger[]} Array of triggers
1240
+ */
1241
+ }, {
1242
+ key: "createTriggers",
1243
+ value: function(c, u) {
1244
+ var O = this, I = [];
1245
+ return c.each(function(C) {
1246
+ I.push(O.createTrigger(C, u));
1247
+ }), I;
1248
+ }
1249
+ /**
1250
+ * Adds triggers
1251
+ * @param {string|HTMLElement|NodeList|Trigger|Trigger[]} objects A list of objects or a query
1252
+ * @param {Object} [options=null] options
1253
+ * @returns {ScrollTrigger}
1254
+ */
1255
+ }, {
1256
+ key: "add",
1257
+ value: function(c, u) {
1258
+ return c instanceof HTMLElement ? (this.collection.add(this.createTrigger(c, u)), this) : c instanceof L ? (this.collection.add(c), this) : c instanceof NodeList ? (this.collection.add(this.createTriggers(c, u)), this) : Array.isArray(c) && c.length && c[0] instanceof L ? (this.collection.add(c), this) : Array.isArray(c) && c.length && c[0] instanceof HTMLElement ? (this.collection.add(this.createTriggers(c, u)), this) : (this.collection.add(this.createTriggers(document.querySelectorAll(c), u)), this);
1259
+ }
1260
+ /**
1261
+ * Removes triggers
1262
+ * @param {string|HTMLElement|NodeList|Trigger|Trigger[]} objects A list of objects or a query
1263
+ * @returns {ScrollTrigger}
1264
+ */
1265
+ }, {
1266
+ key: "remove",
1267
+ value: function(c) {
1268
+ return c instanceof L ? (this.collection.remove(c), this) : Array.isArray(c) && c.length && c[0] instanceof L ? (this.collection.remove(c), this) : c instanceof HTMLElement ? (this.collection.remove(this.search(c)), this) : Array.isArray(c) && c.length && c[0] instanceof HTMLElement ? (this.collection.remove(this.search(c)), this) : c instanceof NodeList ? (this.collection.remove(this.search(c)), this) : Array.isArray(c) && c.length && c[0] instanceof L ? (this.collection.remove(c), this) : (this.collection.remove(this.query(c.toString())), this);
1269
+ }
1270
+ /**
1271
+ * Lookup one or multiple triggers by a query string
1272
+ * @param {string} selector
1273
+ * @returns {Trigger[]}
1274
+ */
1275
+ }, {
1276
+ key: "query",
1277
+ value: function(c) {
1278
+ return this.collection.query(c);
1279
+ }
1280
+ /**
1281
+ * Lookup one or multiple triggers by a certain HTMLElement or NodeList
1282
+ * @param {HTMLElement|HTMLElement[]|NodeList} element
1283
+ * @returns {Trigger|Trigger[]|null}
1284
+ */
1285
+ }, {
1286
+ key: "search",
1287
+ value: function(c) {
1288
+ return this.collection.search(c);
1289
+ }
1290
+ /**
1291
+ * Reattaches the scroll listener
1292
+ */
1293
+ }, {
1294
+ key: "listen",
1295
+ value: function() {
1296
+ this.loop || this._initLoop();
1297
+ }
1298
+ /**
1299
+ * Kills the scroll listener
1300
+ */
1301
+ }, {
1302
+ key: "kill",
1303
+ value: function() {
1304
+ this.loop.kill(), this.loop = null;
1305
+ }
1306
+ }]), T;
1307
+ })();
1308
+ })
1309
+ /******/
1310
+ ])
1311
+ );
1312
+ });
1313
+ })(ve)), ve.exports;
1314
+ }
1315
+ var ti = Je();
1316
+ const ei = /* @__PURE__ */ be(ti), Le = Date.now();
1317
+ function Rt() {
1318
+ let o = {}, e = !0, i = 0, s = arguments.length;
1319
+ Object.prototype.toString.call(arguments[0]) === "[object Boolean]" && (e = arguments[0], i++);
1320
+ let t = (n) => {
1321
+ for (let r in n)
1322
+ Object.prototype.hasOwnProperty.call(n, r) && (e && Object.prototype.toString.call(n[r]) === "[object Object]" ? o[r] = Rt(!0, o[r], n[r]) : o[r] = n[r]);
1323
+ };
1324
+ for (; i < s; i++) {
1325
+ let n = arguments[i];
1326
+ t(n);
1327
+ }
1328
+ return o;
1329
+ }
1330
+ function At(o, e) {
1331
+ if (($t(o) || o === window || o === document) && (o = [o]), !Me(o) && !Qt(o) && (o = [o]), Re(o) != 0) {
1332
+ if (Me(o) && !Qt(o)) {
1333
+ let i = o.length, s = 0;
1334
+ for (; s < i && e.call(o[s], o[s], s, o) !== !1; s++)
1335
+ ;
1336
+ } else if (Qt(o)) {
1337
+ for (let i in o)
1338
+ if (Lt(o, i) && e.call(o[i], o[i], i, o) === !1)
1339
+ break;
1340
+ }
1341
+ }
1342
+ }
1343
+ function Ie(o, e = null, i = null) {
1344
+ const s = o[Le] = o[Le] || [], t = { all: s, evt: null, found: null };
1345
+ return e && i && Re(s) > 0 && At(s, (n, r) => {
1346
+ if (n.eventName == e && n.fn.toString() == i.toString())
1347
+ return t.found = !0, t.evt = r, !1;
1348
+ }), t;
1349
+ }
1350
+ function Bt(o, { onElement: e, withCallback: i, avoidDuplicate: s = !0, once: t = !1, useCapture: n = !1 } = {}, r) {
1351
+ let a = e || [];
1352
+ Kt(a) && (a = document.querySelectorAll(a));
1353
+ function f(d) {
1354
+ rt(i) && i.call(r, d, this), t && f.destroy();
1355
+ }
1356
+ return f.destroy = function() {
1357
+ At(a, (d) => {
1358
+ const y = Ie(d, o, f);
1359
+ y.found && y.all.splice(y.evt, 1), d.removeEventListener && d.removeEventListener(o, f, n);
1360
+ });
1361
+ }, At(a, (d) => {
1362
+ const y = Ie(d, o, f);
1363
+ (d.addEventListener && s && !y.found || !s) && (d.addEventListener(o, f, n), y.all.push({ eventName: o, fn: f }));
1364
+ }), f;
1365
+ }
1366
+ function Z(o, e) {
1367
+ At(e.split(" "), (i) => o.classList.add(i));
1368
+ }
1369
+ function kt(o, e) {
1370
+ At(e.split(" "), (i) => o.classList.remove(i));
1371
+ }
1372
+ function Pt(o, e) {
1373
+ return o.classList.contains(e);
1374
+ }
1375
+ function Wt(o, e) {
1376
+ for (; o !== document.body; ) {
1377
+ if (o = o.parentElement, !o)
1378
+ return !1;
1379
+ if (typeof o.matches == "function" ? o.matches(e) : o.msMatchesSelector(e))
1380
+ return o;
1381
+ }
1382
+ }
1383
+ function Gt(o, e = "", i = !1) {
1384
+ if (!o || e === "")
1385
+ return !1;
1386
+ if (e === "none")
1387
+ return rt(i) && i(), !1;
1388
+ const s = ii(), t = e.split(" ");
1389
+ At(t, (n) => {
1390
+ Z(o, "g" + n);
1391
+ }), Bt(s, {
1392
+ onElement: o,
1393
+ avoidDuplicate: !1,
1394
+ once: !0,
1395
+ withCallback: (n, r) => {
1396
+ At(t, (a) => {
1397
+ kt(r, "g" + a);
1398
+ }), rt(i) && i();
1399
+ }
1400
+ });
1401
+ }
1402
+ function ge(o, e = "") {
1403
+ if (e === "")
1404
+ return o.style.webkitTransform = "", o.style.MozTransform = "", o.style.msTransform = "", o.style.OTransform = "", o.style.transform = "", !1;
1405
+ o.style.webkitTransform = e, o.style.MozTransform = e, o.style.msTransform = e, o.style.OTransform = e, o.style.transform = e;
1406
+ }
1407
+ function Ve(o) {
1408
+ o.style.display = "block";
1409
+ }
1410
+ function we(o) {
1411
+ o.style.display = "none";
1412
+ }
1413
+ function Ut(o) {
1414
+ let e = document.createDocumentFragment(), i = document.createElement("div");
1415
+ for (i.innerHTML = o; i.firstChild; )
1416
+ e.appendChild(i.firstChild);
1417
+ return e;
1418
+ }
1419
+ function Be() {
1420
+ return {
1421
+ width: window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth,
1422
+ height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
1423
+ };
1424
+ }
1425
+ function ii() {
1426
+ let o, e = document.createElement("fakeelement"), i = {
1427
+ animation: "animationend",
1428
+ OAnimation: "oAnimationEnd",
1429
+ MozAnimation: "animationend",
1430
+ WebkitAnimation: "webkitAnimationEnd"
1431
+ };
1432
+ for (o in i)
1433
+ if (e.style[o] !== void 0)
1434
+ return i[o];
1435
+ }
1436
+ function si() {
1437
+ let o, e = document.createElement("fakeelement");
1438
+ const i = {
1439
+ transition: "transitionend",
1440
+ OTransition: "oTransitionEnd",
1441
+ MozTransition: "transitionend",
1442
+ WebkitTransition: "webkitTransitionEnd"
1443
+ };
1444
+ for (o in i)
1445
+ if (e.style[o] !== void 0)
1446
+ return i[o];
1447
+ }
1448
+ function ni(o) {
1449
+ let { url: e, allow: i, callback: s, appendTo: t } = o, n = document.createElement("iframe");
1450
+ return n.className = "vimeo-video gvideo", n.src = e, n.style.width = "100%", n.style.height = "100%", i && n.setAttribute("allow", i), n.onload = function() {
1451
+ n.onload = null, Z(n, "node-ready"), rt(s) && s();
1452
+ }, t && t.appendChild(n), n;
1453
+ }
1454
+ function Se(o, e, i, s) {
1455
+ if (o()) {
1456
+ e();
1457
+ return;
1458
+ }
1459
+ i || (i = 100);
1460
+ let t = setInterval(() => {
1461
+ o() && (clearInterval(t), e());
1462
+ }, i);
1463
+ }
1464
+ function Ye(o, e, i) {
1465
+ if (Xt(o)) {
1466
+ console.error("Inject assets error");
1467
+ return;
1468
+ }
1469
+ if (rt(e) && (i = e, e = !1), Kt(e) && e in window) {
1470
+ rt(i) && i();
1471
+ return;
1472
+ }
1473
+ let s;
1474
+ if (o.indexOf(".css") !== -1) {
1475
+ if (s = document.querySelectorAll('link[href="' + o + '"]'), s && s.length > 0) {
1476
+ rt(i) && i();
1477
+ return;
1478
+ }
1479
+ const n = document.getElementsByTagName("head")[0], r = n.querySelectorAll('link[rel="stylesheet"]'), a = document.createElement("link");
1480
+ a.rel = "stylesheet", a.type = "text/css", a.href = o, a.media = "all", r ? n.insertBefore(a, r[0]) : n.appendChild(a), rt(i) && i();
1481
+ return;
1482
+ }
1483
+ if (s = document.querySelectorAll('script[src="' + o + '"]'), s && s.length > 0) {
1484
+ if (rt(i)) {
1485
+ if (Kt(e))
1486
+ return Se(
1487
+ () => typeof window[e] < "u",
1488
+ () => {
1489
+ i();
1490
+ }
1491
+ ), !1;
1492
+ i();
1493
+ }
1494
+ return;
1495
+ }
1496
+ let t = document.createElement("script");
1497
+ t.type = "text/javascript", t.src = o, t.onload = () => {
1498
+ if (rt(i)) {
1499
+ if (Kt(e))
1500
+ return Se(
1501
+ () => typeof window[e] < "u",
1502
+ () => {
1503
+ i();
1504
+ }
1505
+ ), !1;
1506
+ i();
1507
+ }
1508
+ }, document.body.appendChild(t);
1509
+ }
1510
+ function _e() {
1511
+ return typeof window > "u" ? !1 : "navigator" in window && window.navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i);
1512
+ }
1513
+ function ai() {
1514
+ return typeof document > "u" ? !1 : _e() !== null || document.createTouch !== void 0 || "ontouchstart" in window || "onmsgesturechange" in window || navigator.msMaxTouchPoints;
1515
+ }
1516
+ function rt(o) {
1517
+ return typeof o == "function";
1518
+ }
1519
+ function Kt(o) {
1520
+ return typeof o == "string";
1521
+ }
1522
+ function $t(o) {
1523
+ return !!(o && o.nodeType && o.nodeType == 1);
1524
+ }
1525
+ function We(o) {
1526
+ return Array.isArray(o);
1527
+ }
1528
+ function Me(o) {
1529
+ return o && o.length && isFinite(o.length);
1530
+ }
1531
+ function Qt(o) {
1532
+ return typeof o === "object" && o != null && !rt(o) && !We(o);
1533
+ }
1534
+ function Xt(o) {
1535
+ return o == null;
1536
+ }
1537
+ function Lt(o, e) {
1538
+ return o !== null && hasOwnProperty.call(o, e);
1539
+ }
1540
+ function Re(o) {
1541
+ if (Qt(o)) {
1542
+ if (o.keys)
1543
+ return o.keys().length;
1544
+ let e = 0;
1545
+ for (let i in o)
1546
+ Lt(o, i) && e++;
1547
+ return e;
1548
+ } else
1549
+ return o.length;
1550
+ }
1551
+ function pe(o) {
1552
+ return !isNaN(parseFloat(o)) && isFinite(o);
1553
+ }
1554
+ function qe(o = -1) {
1555
+ const e = document.querySelectorAll(".gbtn[data-taborder]:not(.disabled)");
1556
+ if (!e.length)
1557
+ return !1;
1558
+ if (e.length == 1)
1559
+ return e[0];
1560
+ typeof o == "string" && (o = parseInt(o));
1561
+ const i = [];
1562
+ At(e, (a) => {
1563
+ i.push(a.getAttribute("data-taborder"));
1564
+ });
1565
+ const s = Math.max.apply(Math, i.map((a) => parseInt(a)));
1566
+ let t = o < 0 ? 1 : o + 1;
1567
+ t > s && (t = "1");
1568
+ const r = i.filter((a) => a >= parseInt(t)).sort()[0];
1569
+ return document.querySelector(`.gbtn[data-taborder="${r}"]`);
1570
+ }
1571
+ function ri(o) {
1572
+ if (o.events.hasOwnProperty("keyboard"))
1573
+ return !1;
1574
+ o.events.keyboard = Bt("keydown", {
1575
+ onElement: window,
1576
+ withCallback: (e, i) => {
1577
+ e = e || window.event;
1578
+ const s = e.keyCode;
1579
+ if (s == 9) {
1580
+ const t = document.querySelector(".gbtn.focused");
1581
+ if (!t) {
1582
+ const f = document.activeElement && document.activeElement.nodeName ? document.activeElement.nodeName.toLocaleLowerCase() : !1;
1583
+ if (f == "input" || f == "textarea" || f == "button")
1584
+ return;
1585
+ }
1586
+ e.preventDefault();
1587
+ const n = document.querySelectorAll(".gbtn[data-taborder]");
1588
+ if (!n || n.length <= 0)
1589
+ return;
1590
+ if (!t) {
1591
+ const f = qe();
1592
+ f && (f.focus(), Z(f, "focused"));
1593
+ return;
1594
+ }
1595
+ let r = t.getAttribute("data-taborder"), a = qe(r);
1596
+ kt(t, "focused"), a && (a.focus(), Z(a, "focused"));
1597
+ }
1598
+ s == 39 && o.nextSlide(), s == 37 && o.prevSlide(), s == 27 && o.close();
1599
+ }
1600
+ });
1601
+ }
1602
+ function me(o) {
1603
+ return Math.sqrt(o.x * o.x + o.y * o.y);
1604
+ }
1605
+ function oi(o, e) {
1606
+ return o.x * e.x + o.y * e.y;
1607
+ }
1608
+ function li(o, e) {
1609
+ var i = me(o) * me(e);
1610
+ if (i === 0)
1611
+ return 0;
1612
+ var s = oi(o, e) / i;
1613
+ return s > 1 && (s = 1), Math.acos(s);
1614
+ }
1615
+ function di(o, e) {
1616
+ return o.x * e.y - e.x * o.y;
1617
+ }
1618
+ function ci(o, e) {
1619
+ var i = li(o, e);
1620
+ return di(o, e) > 0 && (i *= -1), i * 180 / Math.PI;
1621
+ }
1622
+ class hi {
1623
+ constructor(e) {
1624
+ this.handlers = [], this.el = e;
1625
+ }
1626
+ add(e) {
1627
+ this.handlers.push(e);
1628
+ }
1629
+ del(e) {
1630
+ e || (this.handlers = []);
1631
+ for (var i = this.handlers.length; i >= 0; i--)
1632
+ this.handlers[i] === e && this.handlers.splice(i, 1);
1633
+ }
1634
+ dispatch() {
1635
+ for (var e = 0, i = this.handlers.length; e < i; e++) {
1636
+ var s = this.handlers[e];
1637
+ typeof s == "function" && s.apply(this.el, arguments);
1638
+ }
1639
+ }
1640
+ }
1641
+ function zt(o, e) {
1642
+ var i = new hi(o);
1643
+ return i.add(e), i;
1644
+ }
1645
+ class ui {
1646
+ constructor(e, i) {
1647
+ this.element = typeof e == "string" ? document.querySelector(e) : e, this.start = this.start.bind(this), this.move = this.move.bind(this), this.end = this.end.bind(this), this.cancel = this.cancel.bind(this), this.element.addEventListener("touchstart", this.start, !1), this.element.addEventListener("touchmove", this.move, !1), this.element.addEventListener("touchend", this.end, !1), this.element.addEventListener("touchcancel", this.cancel, !1), this.preV = { x: null, y: null }, this.pinchStartLen = null, this.zoom = 1, this.isDoubleTap = !1;
1648
+ var s = function() {
1649
+ };
1650
+ this.rotate = zt(this.element, i.rotate || s), this.touchStart = zt(this.element, i.touchStart || s), this.multipointStart = zt(this.element, i.multipointStart || s), this.multipointEnd = zt(this.element, i.multipointEnd || s), this.pinch = zt(this.element, i.pinch || s), this.swipe = zt(this.element, i.swipe || s), this.tap = zt(this.element, i.tap || s), this.doubleTap = zt(this.element, i.doubleTap || s), this.longTap = zt(this.element, i.longTap || s), this.singleTap = zt(this.element, i.singleTap || s), this.pressMove = zt(this.element, i.pressMove || s), this.twoFingerPressMove = zt(this.element, i.twoFingerPressMove || s), this.touchMove = zt(this.element, i.touchMove || s), this.touchEnd = zt(this.element, i.touchEnd || s), this.touchCancel = zt(this.element, i.touchCancel || s), this.translateContainer = this.element, this._cancelAllHandler = this.cancelAll.bind(this), window.addEventListener("scroll", this._cancelAllHandler), this.delta = null, this.last = null, this.now = null, this.tapTimeout = null, this.singleTapTimeout = null, this.longTapTimeout = null, this.swipeTimeout = null, this.x1 = this.x2 = this.y1 = this.y2 = null, this.preTapPosition = { x: null, y: null };
1651
+ }
1652
+ start(e) {
1653
+ if (!e.touches)
1654
+ return;
1655
+ const i = ["a", "button", "input"];
1656
+ if (e.target && e.target.nodeName && i.indexOf(e.target.nodeName.toLowerCase()) >= 0) {
1657
+ console.log("ignore drag for this touched element", e.target.nodeName.toLowerCase());
1658
+ return;
1659
+ }
1660
+ this.now = Date.now(), this.x1 = e.touches[0].pageX, this.y1 = e.touches[0].pageY, this.delta = this.now - (this.last || this.now), this.touchStart.dispatch(e, this.element), this.preTapPosition.x !== null && (this.isDoubleTap = this.delta > 0 && this.delta <= 250 && Math.abs(this.preTapPosition.x - this.x1) < 30 && Math.abs(this.preTapPosition.y - this.y1) < 30, this.isDoubleTap && clearTimeout(this.singleTapTimeout)), this.preTapPosition.x = this.x1, this.preTapPosition.y = this.y1, this.last = this.now;
1661
+ var s = this.preV, t = e.touches.length;
1662
+ if (t > 1) {
1663
+ this._cancelLongTap(), this._cancelSingleTap();
1664
+ var n = { x: e.touches[1].pageX - this.x1, y: e.touches[1].pageY - this.y1 };
1665
+ s.x = n.x, s.y = n.y, this.pinchStartLen = me(s), this.multipointStart.dispatch(e, this.element);
1666
+ }
1667
+ this._preventTap = !1, this.longTapTimeout = setTimeout(
1668
+ (function() {
1669
+ this.longTap.dispatch(e, this.element), this._preventTap = !0;
1670
+ }).bind(this),
1671
+ 750
1672
+ );
1673
+ }
1674
+ move(e) {
1675
+ if (e.touches) {
1676
+ var i = this.preV, s = e.touches.length, t = e.touches[0].pageX, n = e.touches[0].pageY;
1677
+ if (this.isDoubleTap = !1, s > 1) {
1678
+ var r = e.touches[1].pageX, a = e.touches[1].pageY, f = { x: e.touches[1].pageX - t, y: e.touches[1].pageY - n };
1679
+ i.x !== null && (this.pinchStartLen > 0 && (e.zoom = me(f) / this.pinchStartLen, this.pinch.dispatch(e, this.element)), e.angle = ci(f, i), this.rotate.dispatch(e, this.element)), i.x = f.x, i.y = f.y, this.x2 !== null && this.sx2 !== null ? (e.deltaX = (t - 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;
1680
+ } else {
1681
+ if (this.x2 !== null) {
1682
+ e.deltaX = t - this.x2, e.deltaY = n - this.y2;
1683
+ var d = Math.abs(this.x1 - this.x2), y = Math.abs(this.y1 - this.y2);
1684
+ (d > 10 || y > 10) && (this._preventTap = !0);
1685
+ } else
1686
+ e.deltaX = 0, e.deltaY = 0;
1687
+ this.pressMove.dispatch(e, this.element);
1688
+ }
1689
+ this.touchMove.dispatch(e, this.element), this._cancelLongTap(), this.x2 = t, this.y2 = n, s > 1 && e.preventDefault();
1690
+ }
1691
+ }
1692
+ end(e) {
1693
+ if (e.changedTouches) {
1694
+ this._cancelLongTap();
1695
+ var i = this;
1696
+ e.touches.length < 2 && (this.multipointEnd.dispatch(e, this.element), this.sx2 = this.sy2 = null), this.x2 && Math.abs(this.x1 - this.x2) > 30 || this.y2 && Math.abs(this.y1 - this.y2) > 30 ? (e.direction = this._swipeDirection(this.x1, this.x2, this.y1, this.y2), this.swipeTimeout = setTimeout(function() {
1697
+ i.swipe.dispatch(e, i.element);
1698
+ }, 0)) : (this.tapTimeout = setTimeout(function() {
1699
+ i._preventTap || i.tap.dispatch(e, i.element), i.isDoubleTap && (i.doubleTap.dispatch(e, i.element), i.isDoubleTap = !1);
1700
+ }, 0), i.isDoubleTap || (i.singleTapTimeout = setTimeout(function() {
1701
+ i.singleTap.dispatch(e, i.element);
1702
+ }, 250))), this.touchEnd.dispatch(e, this.element), this.preV.x = 0, this.preV.y = 0, this.zoom = 1, this.pinchStartLen = null, this.x1 = this.x2 = this.y1 = this.y2 = null;
1703
+ }
1704
+ }
1705
+ cancelAll() {
1706
+ this._preventTap = !0, clearTimeout(this.singleTapTimeout), clearTimeout(this.tapTimeout), clearTimeout(this.longTapTimeout), clearTimeout(this.swipeTimeout);
1707
+ }
1708
+ cancel(e) {
1709
+ this.cancelAll(), this.touchCancel.dispatch(e, this.element);
1710
+ }
1711
+ _cancelLongTap() {
1712
+ clearTimeout(this.longTapTimeout);
1713
+ }
1714
+ _cancelSingleTap() {
1715
+ clearTimeout(this.singleTapTimeout);
1716
+ }
1717
+ _swipeDirection(e, i, s, t) {
1718
+ return Math.abs(e - i) >= Math.abs(s - t) ? e - i > 0 ? "Left" : "Right" : s - t > 0 ? "Up" : "Down";
1719
+ }
1720
+ on(e, i) {
1721
+ this[e] && this[e].add(i);
1722
+ }
1723
+ off(e, i) {
1724
+ this[e] && this[e].del(i);
1725
+ }
1726
+ destroy() {
1727
+ 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;
1728
+ }
1729
+ }
1730
+ function xe(o) {
1731
+ const e = si(), i = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
1732
+ let s = Pt(o, "gslide-media") ? o : o.querySelector(".gslide-media"), t = Wt(s, ".ginner-container"), n = o.querySelector(".gslide-description");
1733
+ i > 769 && (s = t), Z(s, "greset"), ge(s, "translate3d(0, 0, 0)"), Bt(e, {
1734
+ onElement: s,
1735
+ once: !0,
1736
+ withCallback: (r, a) => {
1737
+ kt(s, "greset");
1738
+ }
1739
+ }), s.style.opacity = "", n && (n.style.opacity = "");
1740
+ }
1741
+ function fi(o) {
1742
+ if (o.events.hasOwnProperty("touch"))
1743
+ return !1;
1744
+ let e = Be(), i = e.width, s = e.height, t = !1, n = null, r = null, a = null, f = !1, d = 1, y = 4.5, b = 1, _ = !1, q = !1, P = null, M = null, dt = null, et = null, It, _t, jt = 0, Ct = 0, l = !1, g = !1, E = {}, L = {}, j = 0, D = 0, st;
1745
+ const T = document.getElementById("glightbox-slider"), v = document.querySelector(".goverlay"), c = new ui(T, {
1746
+ touchStart: (u) => {
1747
+ if (t = !0, (Pt(u.targetTouches[0].target, "ginner-container") || Wt(u.targetTouches[0].target, ".gslide-desc") || u.targetTouches[0].target.nodeName.toLowerCase() == "a") && (t = !1), Wt(u.targetTouches[0].target, ".gslide-inline") && !Pt(u.targetTouches[0].target.parentNode, "gslide-inline") && (t = !1), t) {
1748
+ if (L = u.targetTouches[0], E.pageX = u.targetTouches[0].pageX, E.pageY = u.targetTouches[0].pageY, j = u.targetTouches[0].clientX, D = u.targetTouches[0].clientY, n = o.activeSlide, r = n.querySelector(".gslide-media"), st = n.querySelector(".gslide-inline"), a = null, Pt(r, "gslide-image") && (a = r.querySelector("img")), (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) > 769 && (r = n.querySelector(".ginner-container")), kt(v, "greset"), u.pageX > 20 && u.pageX < window.innerWidth - 20)
1749
+ return;
1750
+ u.preventDefault();
1751
+ }
1752
+ },
1753
+ touchMove: (u) => {
1754
+ if (!t || (L = u.targetTouches[0], _ || q))
1755
+ return;
1756
+ if (st && st.offsetHeight > s) {
1757
+ const F = E.pageX - L.pageX;
1758
+ if (Math.abs(F) <= 13)
1759
+ return !1;
1760
+ }
1761
+ f = !0;
1762
+ let O = u.targetTouches[0].clientX, I = u.targetTouches[0].clientY, C = j - O, $ = D - I;
1763
+ Math.abs(C) > Math.abs($) ? (l = !1, g = !0) : (g = !1, l = !0), It = L.pageX - E.pageX, jt = It * 100 / i, _t = L.pageY - E.pageY, Ct = _t * 100 / s;
1764
+ let B;
1765
+ if (l && a && (B = 1 - Math.abs(_t) / s, v.style.opacity = B, o.settings.touchFollowAxis && (jt = 0)), g && (B = 1 - Math.abs(It) / i, r.style.opacity = B, o.settings.touchFollowAxis && (Ct = 0)), !a)
1766
+ return ge(r, `translate3d(${jt}%, 0, 0)`);
1767
+ ge(r, `translate3d(${jt}%, ${Ct}%, 0)`);
1768
+ },
1769
+ touchEnd: () => {
1770
+ if (!t)
1771
+ return;
1772
+ if (f = !1, q || _) {
1773
+ dt = P, et = M;
1774
+ return;
1775
+ }
1776
+ const u = Math.abs(parseInt(Ct)), O = Math.abs(parseInt(jt));
1777
+ if (u > 29 && a) {
1778
+ o.close();
1779
+ return;
1780
+ }
1781
+ if (u < 29 && O < 25)
1782
+ return Z(v, "greset"), v.style.opacity = 1, xe(r);
1783
+ },
1784
+ multipointEnd: () => {
1785
+ setTimeout(() => {
1786
+ _ = !1;
1787
+ }, 50);
1788
+ },
1789
+ multipointStart: () => {
1790
+ _ = !0, d = b || 1;
1791
+ },
1792
+ pinch: (u) => {
1793
+ if (!a || f)
1794
+ return !1;
1795
+ _ = !0, a.scaleX = a.scaleY = d * u.zoom;
1796
+ let O = d * u.zoom;
1797
+ if (q = !0, O <= 1) {
1798
+ q = !1, O = 1, et = null, dt = null, P = null, M = null, a.setAttribute("style", "");
1799
+ return;
1800
+ }
1801
+ O > y && (O = y), a.style.transform = `scale3d(${O}, ${O}, 1)`, b = O;
1802
+ },
1803
+ pressMove: (u) => {
1804
+ if (q && !_) {
1805
+ var O = L.pageX - E.pageX, I = L.pageY - E.pageY;
1806
+ dt && (O = O + dt), et && (I = I + et), P = O, M = I;
1807
+ let C = `translate3d(${O}px, ${I}px, 0)`;
1808
+ b && (C += ` scale3d(${b}, ${b}, 1)`), ge(a, C);
1809
+ }
1810
+ },
1811
+ swipe: (u) => {
1812
+ if (!q) {
1813
+ if (_) {
1814
+ _ = !1;
1815
+ return;
1816
+ }
1817
+ if (u.direction == "Left") {
1818
+ if (o.index == o.elements.length - 1)
1819
+ return xe(r);
1820
+ o.nextSlide();
1821
+ }
1822
+ if (u.direction == "Right") {
1823
+ if (o.index == 0)
1824
+ return xe(r);
1825
+ o.prevSlide();
1826
+ }
1827
+ }
1828
+ }
1829
+ });
1830
+ o.events.touch = c;
1831
+ }
1832
+ class gi {
1833
+ constructor(e, i, s = null) {
1834
+ if (this.img = e, this.slide = i, this.onclose = s, this.img.setZoomEvents)
1835
+ return !1;
1836
+ this.active = !1, this.zoomedIn = !1, this.dragging = !1, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.img.addEventListener("mousedown", (t) => this.dragStart(t), !1), this.img.addEventListener("mouseup", (t) => this.dragEnd(t), !1), this.img.addEventListener("mousemove", (t) => this.drag(t), !1), this.img.addEventListener(
1837
+ "click",
1838
+ (t) => {
1839
+ if (this.slide.classList.contains("dragging-nav"))
1840
+ return this.zoomOut(), !1;
1841
+ if (!this.zoomedIn)
1842
+ return this.zoomIn();
1843
+ this.zoomedIn && !this.dragging && this.zoomOut();
1844
+ },
1845
+ !1
1846
+ ), this.img.setZoomEvents = !0;
1847
+ }
1848
+ zoomIn() {
1849
+ let e = this.widowWidth();
1850
+ if (this.zoomedIn || e <= 768)
1851
+ return;
1852
+ const i = this.img;
1853
+ if (i.setAttribute("data-style", i.getAttribute("style")), i.style.maxWidth = i.naturalWidth + "px", i.style.maxHeight = i.naturalHeight + "px", i.naturalWidth > e) {
1854
+ let s = e / 2 - i.naturalWidth / 2;
1855
+ this.setTranslate(this.img.parentNode, s, 0);
1856
+ }
1857
+ this.slide.classList.add("zoomed"), this.zoomedIn = !0;
1858
+ }
1859
+ zoomOut() {
1860
+ this.img.parentNode.setAttribute("style", ""), this.img.setAttribute("style", this.img.getAttribute("data-style")), this.slide.classList.remove("zoomed"), this.zoomedIn = !1, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.onclose && typeof this.onclose == "function" && this.onclose();
1861
+ }
1862
+ dragStart(e) {
1863
+ if (e.preventDefault(), !this.zoomedIn) {
1864
+ this.active = !1;
1865
+ return;
1866
+ }
1867
+ e.type === "touchstart" ? (this.initialX = e.touches[0].clientX - this.xOffset, this.initialY = e.touches[0].clientY - this.yOffset) : (this.initialX = e.clientX - this.xOffset, this.initialY = e.clientY - this.yOffset), e.target === this.img && (this.active = !0, this.img.classList.add("dragging"));
1868
+ }
1869
+ dragEnd(e) {
1870
+ e.preventDefault(), this.initialX = this.currentX, this.initialY = this.currentY, this.active = !1, setTimeout(() => {
1871
+ this.dragging = !1, this.img.isDragging = !1, this.img.classList.remove("dragging");
1872
+ }, 100);
1873
+ }
1874
+ drag(e) {
1875
+ this.active && (e.preventDefault(), e.type === "touchmove" ? (this.currentX = e.touches[0].clientX - this.initialX, this.currentY = e.touches[0].clientY - this.initialY) : (this.currentX = e.clientX - this.initialX, this.currentY = e.clientY - this.initialY), this.xOffset = this.currentX, this.yOffset = this.currentY, this.img.isDragging = !0, this.dragging = !0, this.setTranslate(this.img, this.currentX, this.currentY));
1876
+ }
1877
+ onMove(e) {
1878
+ if (!this.zoomedIn)
1879
+ return;
1880
+ let i = e.clientX - this.img.naturalWidth / 2, s = e.clientY - this.img.naturalHeight / 2;
1881
+ this.setTranslate(this.img, i, s);
1882
+ }
1883
+ setTranslate(e, i, s) {
1884
+ e.style.transform = "translate3d(" + i + "px, " + s + "px, 0)";
1885
+ }
1886
+ widowWidth() {
1887
+ return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
1888
+ }
1889
+ }
1890
+ class De {
1891
+ constructor(e = {}) {
1892
+ let { dragEl: i, toleranceX: s = 40, toleranceY: t = 65, slide: n = null, instance: r = null } = e;
1893
+ this.el = i, this.active = !1, this.dragging = !1, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.direction = null, this.lastDirection = null, this.toleranceX = s, this.toleranceY = t, this.toleranceReached = !1, this.dragContainer = this.el, this.slide = n, this.instance = r, this.el.addEventListener("mousedown", (a) => this.dragStart(a), !1), this.el.addEventListener("mouseup", (a) => this.dragEnd(a), !1), this.el.addEventListener("mousemove", (a) => this.drag(a), !1);
1894
+ }
1895
+ dragStart(e) {
1896
+ if (this.slide.classList.contains("zoomed")) {
1897
+ this.active = !1;
1898
+ return;
1899
+ }
1900
+ e.type === "touchstart" ? (this.initialX = e.touches[0].clientX - this.xOffset, this.initialY = e.touches[0].clientY - this.yOffset) : (this.initialX = e.clientX - this.xOffset, this.initialY = e.clientY - this.yOffset);
1901
+ let i = e.target.nodeName.toLowerCase(), s = ["input", "select", "textarea", "button", "a"];
1902
+ if (e.target.classList.contains("nodrag") || Wt(e.target, ".nodrag") || s.indexOf(i) !== -1) {
1903
+ this.active = !1;
1904
+ return;
1905
+ }
1906
+ e.preventDefault(), (e.target === this.el || i !== "img" && Wt(e.target, ".gslide-inline")) && (this.active = !0, this.el.classList.add("dragging"), this.dragContainer = Wt(e.target, ".ginner-container"));
1907
+ }
1908
+ dragEnd(e) {
1909
+ e && e.preventDefault(), this.initialX = 0, this.initialY = 0, this.currentX = null, this.currentY = null, this.initialX = null, this.initialY = null, this.xOffset = 0, this.yOffset = 0, this.active = !1, this.doSlideChange && (this.instance.preventOutsideClick = !0, this.doSlideChange == "right" && this.instance.prevSlide(), this.doSlideChange == "left" && this.instance.nextSlide()), this.doSlideClose && this.instance.close(), this.toleranceReached || this.setTranslate(this.dragContainer, 0, 0, !0), setTimeout(() => {
1910
+ this.instance.preventOutsideClick = !1, this.toleranceReached = !1, this.lastDirection = null, this.dragging = !1, this.el.isDragging = !1, this.el.classList.remove("dragging"), this.slide.classList.remove("dragging-nav"), this.dragContainer.style.transform = "", this.dragContainer.style.transition = "";
1911
+ }, 100);
1912
+ }
1913
+ drag(e) {
1914
+ if (this.active) {
1915
+ e.preventDefault(), this.slide.classList.add("dragging-nav"), e.type === "touchmove" ? (this.currentX = e.touches[0].clientX - this.initialX, this.currentY = e.touches[0].clientY - this.initialY) : (this.currentX = e.clientX - this.initialX, this.currentY = e.clientY - this.initialY), this.xOffset = this.currentX, this.yOffset = this.currentY, this.el.isDragging = !0, this.dragging = !0, this.doSlideChange = !1, this.doSlideClose = !1;
1916
+ let i = Math.abs(this.currentX), s = Math.abs(this.currentY);
1917
+ if (i > 0 && i >= Math.abs(this.currentY) && (!this.lastDirection || this.lastDirection == "x")) {
1918
+ this.yOffset = 0, this.lastDirection = "x", this.setTranslate(this.dragContainer, this.currentX, 0);
1919
+ let t = this.shouldChange();
1920
+ if (!this.instance.settings.dragAutoSnap && t && (this.doSlideChange = t), this.instance.settings.dragAutoSnap && t) {
1921
+ this.instance.preventOutsideClick = !0, this.toleranceReached = !0, this.active = !1, this.instance.preventOutsideClick = !0, this.dragEnd(null), t == "right" && this.instance.prevSlide(), t == "left" && this.instance.nextSlide();
1922
+ return;
1923
+ }
1924
+ }
1925
+ if (this.toleranceY > 0 && s > 0 && s >= i && (!this.lastDirection || this.lastDirection == "y")) {
1926
+ this.xOffset = 0, this.lastDirection = "y", this.setTranslate(this.dragContainer, 0, this.currentY);
1927
+ let t = this.shouldClose();
1928
+ !this.instance.settings.dragAutoSnap && t && (this.doSlideClose = !0), this.instance.settings.dragAutoSnap && t && this.instance.close();
1929
+ return;
1930
+ }
1931
+ }
1932
+ }
1933
+ shouldChange() {
1934
+ let e = !1;
1935
+ if (Math.abs(this.currentX) >= this.toleranceX) {
1936
+ let s = this.currentX > 0 ? "right" : "left";
1937
+ (s == "left" && this.slide !== this.slide.parentNode.lastChild || s == "right" && this.slide !== this.slide.parentNode.firstChild) && (e = s);
1938
+ }
1939
+ return e;
1940
+ }
1941
+ shouldClose() {
1942
+ let e = !1;
1943
+ return Math.abs(this.currentY) >= this.toleranceY && (e = !0), e;
1944
+ }
1945
+ setTranslate(e, i, s, t = !1) {
1946
+ t ? e.style.transition = "all .2s ease" : e.style.transition = "", e.style.transform = `translate3d(${i}px, ${s}px, 0)`;
1947
+ }
1948
+ }
1949
+ function pi(o, e, i, s) {
1950
+ const t = o.querySelector(".gslide-media");
1951
+ let n = new Image(), r = "gSlideTitle_" + i, a = "gSlideDesc_" + i;
1952
+ n.addEventListener("load", () => {
1953
+ rt(s) && s();
1954
+ }, !1), n.src = e.href, e.sizes != "" && e.srcset != "" && (n.sizes = e.sizes, n.srcset = e.srcset), n.alt = "", !Xt(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), t.insertBefore(n, t.firstChild);
1955
+ }
1956
+ function mi(o, e, i, s) {
1957
+ const t = o.querySelector(".ginner-container"), n = "gvideo" + i, r = o.querySelector(".gslide-media"), a = this.getAllPlayers();
1958
+ Z(t, "gvideo-container"), r.insertBefore(Ut('<div class="gvideo-wrapper"></div>'), r.firstChild);
1959
+ const f = o.querySelector(".gvideo-wrapper");
1960
+ Ye(this.settings.plyr.css, "Plyr");
1961
+ let d = e.href, y = e?.videoProvider, b = !1;
1962
+ r.style.maxWidth = e.width, Ye(this.settings.plyr.js, "Plyr", () => {
1963
+ if (!y && d.match(/vimeo\.com\/([0-9]*)/) && (y = "vimeo"), !y && (d.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || d.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || d.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/)) && (y = "youtube"), y === "local" || !y) {
1964
+ y = "local";
1965
+ let M = '<video id="' + n + '" ';
1966
+ M += `style="background:#000; max-width: ${e.width};" `, M += 'preload="metadata" ', M += 'x-webkit-airplay="allow" ', M += "playsinline ", M += "controls ", M += 'class="gvideo-local">', M += `<source src="${d}">`, M += "</video>", b = Ut(M);
1967
+ }
1968
+ const _ = b || Ut(`<div id="${n}" data-plyr-provider="${y}" data-plyr-embed-id="${d}"></div>`);
1969
+ Z(f, `${y}-video gvideo`), f.appendChild(_), f.setAttribute("data-id", n), f.setAttribute("data-index", i);
1970
+ const q = Lt(this.settings.plyr, "config") ? this.settings.plyr.config : {}, P = new Plyr("#" + n, q);
1971
+ P.on("ready", (M) => {
1972
+ a[n] = M.detail.plyr, rt(s) && s();
1973
+ }), Se(
1974
+ () => o.querySelector("iframe") && o.querySelector("iframe").dataset.ready == "true",
1975
+ () => {
1976
+ this.resize(o);
1977
+ }
1978
+ ), P.on("enterfullscreen", Ne), P.on("exitfullscreen", Ne);
1979
+ });
1980
+ }
1981
+ function Ne(o) {
1982
+ const e = Wt(o.target, ".gslide-media");
1983
+ o.type === "enterfullscreen" && Z(e, "fullscreen"), o.type === "exitfullscreen" && kt(e, "fullscreen");
1984
+ }
1985
+ function bi(o, e, i, s) {
1986
+ const t = o.querySelector(".gslide-media"), n = Lt(e, "href") && e.href ? e.href.split("#").pop().trim() : !1, r = Lt(e, "content") && e.content ? e.content : !1;
1987
+ let a;
1988
+ if (r && (Kt(r) && (a = Ut(`<div class="ginlined-content">${r}</div>`)), $t(r))) {
1989
+ r.style.display == "none" && (r.style.display = "block");
1990
+ const f = document.createElement("div");
1991
+ f.className = "ginlined-content", f.appendChild(r), a = f;
1992
+ }
1993
+ if (n) {
1994
+ let f = document.getElementById(n);
1995
+ if (!f)
1996
+ return !1;
1997
+ const d = f.cloneNode(!0);
1998
+ d.style.height = e.height, d.style.maxWidth = e.width, Z(d, "ginlined-content"), a = d;
1999
+ }
2000
+ if (!a)
2001
+ return console.error("Unable to append inline slide content", e), !1;
2002
+ t.style.height = e.height, t.style.width = e.width, t.appendChild(a), this.events["inlineclose" + n] = Bt("click", {
2003
+ onElement: t.querySelectorAll(".gtrigger-close"),
2004
+ withCallback: (f) => {
2005
+ f.preventDefault(), this.close();
2006
+ }
2007
+ }), rt(s) && s();
2008
+ }
2009
+ function yi(o, e, i, s) {
2010
+ const t = o.querySelector(".gslide-media"), n = ni({
2011
+ url: e.href,
2012
+ callback: s
2013
+ });
2014
+ t.parentNode.style.maxWidth = e.width, t.parentNode.style.height = e.height, t.appendChild(n);
2015
+ }
2016
+ class vi {
2017
+ constructor(e = {}) {
2018
+ this.defaults = {
2019
+ href: "",
2020
+ sizes: "",
2021
+ srcset: "",
2022
+ title: "",
2023
+ type: "",
2024
+ videoProvider: "",
2025
+ description: "",
2026
+ alt: "",
2027
+ descPosition: "bottom",
2028
+ effect: "",
2029
+ width: "",
2030
+ height: "",
2031
+ content: !1,
2032
+ zoomable: !0,
2033
+ draggable: !0
2034
+ }, Qt(e) && (this.defaults = Rt(this.defaults, e));
2035
+ }
2036
+ /**
2037
+ * Get source type
2038
+ * gte the source type of a url
2039
+ *
2040
+ * @param {string} url
2041
+ */
2042
+ sourceType(e) {
2043
+ let i = e;
2044
+ return e = e.toLowerCase(), e.match(/\.(jpeg|jpg|jpe|gif|png|apn|webp|avif|svg)/) !== null ? "image" : e.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/) || e.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/) || e.match(/(youtube\.com|youtube-nocookie\.com)\/embed\/([a-zA-Z0-9\-_]+)/) || e.match(/vimeo\.com\/([0-9]*)/) || e.match(/\.(mp4|ogg|webm|mov)/) !== null ? "video" : e.match(/\.(mp3|wav|wma|aac|ogg)/) !== null ? "audio" : e.indexOf("#") > -1 && i.split("#").pop().trim() !== "" ? "inline" : e.indexOf("goajax=true") > -1 ? "ajax" : "external";
2045
+ }
2046
+ parseConfig(e, i) {
2047
+ let s = Rt({ descPosition: i.descPosition }, this.defaults);
2048
+ if (Qt(e) && !$t(e)) {
2049
+ Lt(e, "type") || (Lt(e, "content") && e.content ? e.type = "inline" : Lt(e, "href") && (e.type = this.sourceType(e.href)));
2050
+ let a = Rt(s, e);
2051
+ return this.setSize(a, i), a;
2052
+ }
2053
+ let t = "", n = e.getAttribute("data-glightbox"), r = e.nodeName.toLowerCase();
2054
+ if (r === "a" && (t = e.href), r === "img" && (t = e.src, s.alt = e.alt), s.href = t, At(s, (a, f) => {
2055
+ Lt(i, f) && f !== "width" && (s[f] = i[f]);
2056
+ const d = e.dataset[f];
2057
+ Xt(d) || (s[f] = this.sanitizeValue(d));
2058
+ }), s.content && (s.type = "inline"), !s.type && t && (s.type = this.sourceType(t)), Xt(n)) {
2059
+ if (!s.title && r == "a") {
2060
+ let a = e.title;
2061
+ !Xt(a) && a !== "" && (s.title = a);
2062
+ }
2063
+ if (!s.title && r == "img") {
2064
+ let a = e.alt;
2065
+ !Xt(a) && a !== "" && (s.title = a);
2066
+ }
2067
+ } else {
2068
+ let a = [];
2069
+ At(s, (f, d) => {
2070
+ a.push(";\\s?" + d);
2071
+ }), a = a.join("\\s?:|"), n.trim() !== "" && At(s, (f, d) => {
2072
+ const y = n, b = "s?" + d + "s?:s?(.*?)(" + a + "s?:|$)", _ = new RegExp(b), q = y.match(_);
2073
+ if (q && q.length && q[1]) {
2074
+ const P = q[1].trim().replace(/;\s*$/, "");
2075
+ s[d] = this.sanitizeValue(P);
2076
+ }
2077
+ });
2078
+ }
2079
+ if (s.description && s.description.substring(0, 1) === ".") {
2080
+ let a;
2081
+ try {
2082
+ a = document.querySelector(s.description).innerHTML;
2083
+ } catch (f) {
2084
+ if (!(f instanceof DOMException))
2085
+ throw f;
2086
+ }
2087
+ a && (s.description = a);
2088
+ }
2089
+ if (!s.description) {
2090
+ let a = e.querySelector(".glightbox-desc");
2091
+ a && (s.description = a.innerHTML);
2092
+ }
2093
+ return this.setSize(s, i, e), this.slideConfig = s, s;
2094
+ }
2095
+ /**
2096
+ * Set slide data size
2097
+ * set the correct size dependin
2098
+ * on the slide type
2099
+ *
2100
+ * @param { object } data
2101
+ * @param { object } settings
2102
+ * @return { object }
2103
+ */
2104
+ setSize(e, i, s = null) {
2105
+ const t = e.type == "video" ? this.checkSize(i.videosWidth) : this.checkSize(i.width), n = this.checkSize(i.height);
2106
+ return e.width = Lt(e, "width") && e.width !== "" ? this.checkSize(e.width) : t, e.height = Lt(e, "height") && e.height !== "" ? this.checkSize(e.height) : n, s && e.type == "image" && (e._hasCustomWidth = !!s.dataset.width, e._hasCustomHeight = !!s.dataset.height), e;
2107
+ }
2108
+ /**
2109
+ * [checkSize size
2110
+ * check if the passed size has a correct unit
2111
+ *
2112
+ * @param {string} size
2113
+ * @return {string}
2114
+ */
2115
+ checkSize(e) {
2116
+ return pe(e) ? `${e}px` : e;
2117
+ }
2118
+ /**
2119
+ * Sanitize data attributes value
2120
+ *
2121
+ * @param string val
2122
+ * @return mixed
2123
+ */
2124
+ sanitizeValue(e) {
2125
+ return e !== "true" && e !== "false" ? e : e === "true";
2126
+ }
2127
+ }
2128
+ class ue {
2129
+ constructor(e, i, s) {
2130
+ this.element = e, this.instance = i, this.index = s;
2131
+ }
2132
+ /**
2133
+ * Set slide content
2134
+ *
2135
+ * @param {node} slide
2136
+ * @param {object} data
2137
+ * @param {function} callback
2138
+ */
2139
+ setContent(e = null, i = !1) {
2140
+ if (Pt(e, "loaded"))
2141
+ return !1;
2142
+ const s = this.instance.settings, t = this.slideConfig, n = _e();
2143
+ rt(s.beforeSlideLoad) && s.beforeSlideLoad({
2144
+ index: this.index,
2145
+ slide: e,
2146
+ player: !1
2147
+ });
2148
+ let r = t.type, a = t.descPosition, f = e.querySelector(".gslide-media"), d = e.querySelector(".gslide-title"), y = e.querySelector(".gslide-desc"), b = e.querySelector(".gdesc-inner"), _ = i, q = "gSlideTitle_" + this.index, P = "gSlideDesc_" + this.index;
2149
+ if (rt(s.afterSlideLoad) && (_ = () => {
2150
+ rt(i) && i(), s.afterSlideLoad({
2151
+ index: this.index,
2152
+ slide: e,
2153
+ player: this.instance.getSlidePlayerInstance(this.index)
2154
+ });
2155
+ }), t.title == "" && t.description == "" ? b && b.parentNode.parentNode.removeChild(b.parentNode) : (d && t.title !== "" ? (d.id = q, d.innerHTML = t.title) : d.parentNode.removeChild(d), y && t.description !== "" ? (y.id = P, n && s.moreLength > 0 ? (t.smallDescription = this.slideShortDesc(t.description, s.moreLength, s.moreText), y.innerHTML = t.smallDescription, this.descriptionEvents(y, t)) : y.innerHTML = t.description) : y.parentNode.removeChild(y), Z(f.parentNode, `desc-${a}`), Z(b.parentNode, `description-${a}`)), Z(f, `gslide-${r}`), Z(e, "loaded"), r === "video") {
2156
+ mi.apply(this.instance, [e, t, this.index, _]);
2157
+ return;
2158
+ }
2159
+ if (r === "external") {
2160
+ yi.apply(this, [e, t, this.index, _]);
2161
+ return;
2162
+ }
2163
+ if (r === "inline") {
2164
+ bi.apply(this.instance, [e, t, this.index, _]), t.draggable && new De({
2165
+ dragEl: e.querySelector(".gslide-inline"),
2166
+ toleranceX: s.dragToleranceX,
2167
+ toleranceY: s.dragToleranceY,
2168
+ slide: e,
2169
+ instance: this.instance
2170
+ });
2171
+ return;
2172
+ }
2173
+ if (r === "image") {
2174
+ pi(e, t, this.index, () => {
2175
+ const M = e.querySelector("img");
2176
+ t.draggable && new De({
2177
+ dragEl: M,
2178
+ toleranceX: s.dragToleranceX,
2179
+ toleranceY: s.dragToleranceY,
2180
+ slide: e,
2181
+ instance: this.instance
2182
+ }), t.zoomable && M.naturalWidth > M.offsetWidth && (Z(M, "zoomable"), new gi(M, e, () => {
2183
+ this.instance.resize();
2184
+ })), rt(_) && _();
2185
+ });
2186
+ return;
2187
+ }
2188
+ rt(_) && _();
2189
+ }
2190
+ slideShortDesc(e, i = 50, s = !1) {
2191
+ let t = document.createElement("div");
2192
+ t.innerHTML = e;
2193
+ let n = t.innerText, r = s;
2194
+ if (e = n.trim(), e.length <= i)
2195
+ return e;
2196
+ let a = e.substr(0, i - 1);
2197
+ return r ? (t = null, a + '... <a href="#" class="desc-more">' + s + "</a>") : a;
2198
+ }
2199
+ descriptionEvents(e, i) {
2200
+ let s = e.querySelector(".desc-more");
2201
+ if (!s)
2202
+ return !1;
2203
+ Bt("click", {
2204
+ onElement: s,
2205
+ withCallback: (t, n) => {
2206
+ t.preventDefault();
2207
+ const r = document.body;
2208
+ let a = Wt(n, ".gslide-desc");
2209
+ if (!a)
2210
+ return !1;
2211
+ a.innerHTML = i.description, Z(r, "gdesc-open");
2212
+ let f = Bt("click", {
2213
+ onElement: [r, Wt(a, ".gslide-description")],
2214
+ withCallback: (d, y) => {
2215
+ d.target.nodeName.toLowerCase() !== "a" && (kt(r, "gdesc-open"), Z(r, "gdesc-closed"), a.innerHTML = i.smallDescription, this.descriptionEvents(a, i), setTimeout(() => {
2216
+ kt(r, "gdesc-closed");
2217
+ }, 400), f.destroy());
2218
+ }
2219
+ });
2220
+ }
2221
+ });
2222
+ }
2223
+ /**
2224
+ * Create Slide Node
2225
+ *
2226
+ * @return { node }
2227
+ */
2228
+ create() {
2229
+ return Ut(this.instance.settings.slideHTML);
2230
+ }
2231
+ /**
2232
+ * Get slide config
2233
+ * returns each individual slide config
2234
+ * it uses SlideConfigParser
2235
+ * each slide can overwrite a global setting
2236
+ * read more in the SlideConfigParser class
2237
+ *
2238
+ * @return { object }
2239
+ */
2240
+ getConfig() {
2241
+ !$t(this.element) && !this.element.hasOwnProperty("draggable") && (this.element.draggable = this.instance.settings.draggable);
2242
+ const e = new vi(this.instance.settings.slideExtraAttributes);
2243
+ return this.slideConfig = e.parseConfig(this.element, this.instance.settings), this.slideConfig;
2244
+ }
2245
+ }
2246
+ const wi = "3.2.0", ze = _e(), Pe = ai();
2247
+ let Ae;
2248
+ typeof document > "u" || (Ae = document.getElementsByTagName("html")[0]);
2249
+ const Te = {
2250
+ selector: ".glightbox",
2251
+ elements: null,
2252
+ skin: "clean",
2253
+ theme: "clean",
2254
+ closeButton: !0,
2255
+ startAt: null,
2256
+ autoplayVideos: !0,
2257
+ autofocusVideos: !0,
2258
+ descPosition: "bottom",
2259
+ width: "900px",
2260
+ height: "506px",
2261
+ videosWidth: "960px",
2262
+ beforeSlideChange: null,
2263
+ afterSlideChange: null,
2264
+ beforeSlideLoad: null,
2265
+ afterSlideLoad: null,
2266
+ slideInserted: null,
2267
+ slideRemoved: null,
2268
+ slideExtraAttributes: null,
2269
+ onOpen: null,
2270
+ onClose: null,
2271
+ loop: !1,
2272
+ zoomable: !0,
2273
+ draggable: !0,
2274
+ dragAutoSnap: !1,
2275
+ dragToleranceX: 40,
2276
+ dragToleranceY: 65,
2277
+ preload: !0,
2278
+ oneSlidePerOpen: !1,
2279
+ touchNavigation: !0,
2280
+ touchFollowAxis: !0,
2281
+ keyboardNavigation: !0,
2282
+ closeOnOutsideClick: !0,
2283
+ plugins: !1,
2284
+ plyr: {
2285
+ css: "https://cdn.plyr.io/3.6.12/plyr.css",
2286
+ js: "https://cdn.plyr.io/3.6.12/plyr.js",
2287
+ config: {
2288
+ ratio: "16:9",
2289
+ // or '4:3'
2290
+ fullscreen: { enabled: !0, iosNative: !0 },
2291
+ youtube: {
2292
+ noCookie: !0,
2293
+ rel: 0,
2294
+ showinfo: 0,
2295
+ iv_load_policy: 3
2296
+ // eslint-disable-line camelcase
2297
+ },
2298
+ vimeo: {
2299
+ byline: !1,
2300
+ portrait: !1,
2301
+ title: !1,
2302
+ transparent: !1
2303
+ }
2304
+ }
2305
+ },
2306
+ openEffect: "zoom",
2307
+ // fade, zoom, none
2308
+ closeEffect: "zoom",
2309
+ // fade, zoom, none
2310
+ slideEffect: "slide",
2311
+ // fade, slide, zoom, none
2312
+ moreText: "See more",
2313
+ moreLength: 60,
2314
+ cssEfects: {
2315
+ fade: { in: "fadeIn", out: "fadeOut" },
2316
+ zoom: { in: "zoomIn", out: "zoomOut" },
2317
+ slide: { in: "slideInRight", out: "slideOutLeft" },
2318
+ slideBack: { in: "slideInLeft", out: "slideOutRight" },
2319
+ none: { in: "none", out: "none" }
2320
+ },
2321
+ svg: {
2322
+ close: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512" xml:space="preserve"><g><g><path d="M505.943,6.058c-8.077-8.077-21.172-8.077-29.249,0L6.058,476.693c-8.077,8.077-8.077,21.172,0,29.249C10.096,509.982,15.39,512,20.683,512c5.293,0,10.586-2.019,14.625-6.059L505.943,35.306C514.019,27.23,514.019,14.135,505.943,6.058z"/></g></g><g><g><path d="M505.942,476.694L35.306,6.059c-8.076-8.077-21.172-8.077-29.248,0c-8.077,8.076-8.077,21.171,0,29.248l470.636,470.636c4.038,4.039,9.332,6.058,14.625,6.058c5.293,0,10.587-2.019,14.624-6.057C514.018,497.866,514.018,484.771,505.942,476.694z"/></g></g></svg>',
2323
+ next: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"> <g><path d="M360.731,229.075l-225.1-225.1c-5.3-5.3-13.8-5.3-19.1,0s-5.3,13.8,0,19.1l215.5,215.5l-215.5,215.5c-5.3,5.3-5.3,13.8,0,19.1c2.6,2.6,6.1,4,9.5,4c3.4,0,6.9-1.3,9.5-4l225.1-225.1C365.931,242.875,365.931,234.275,360.731,229.075z"/></g></svg>',
2324
+ prev: '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 477.175 477.175" xml:space="preserve"><g><path d="M145.188,238.575l215.5-215.5c5.3-5.3,5.3-13.8,0-19.1s-13.8-5.3-19.1,0l-225.1,225.1c-5.3,5.3-5.3,13.8,0,19.1l225.1,225c2.6,2.6,6.1,4,9.5,4s6.9-1.3,9.5-4c5.3-5.3,5.3-13.8,0-19.1L145.188,238.575z"/></g></svg>'
2325
+ }
2326
+ };
2327
+ Te.slideHTML = `<div class="gslide">
2328
+ <div class="gslide-inner-content">
2329
+ <div class="ginner-container">
2330
+ <div class="gslide-media">
2331
+ </div>
2332
+ <div class="gslide-description">
2333
+ <div class="gdesc-inner">
2334
+ <h4 class="gslide-title"></h4>
2335
+ <div class="gslide-desc"></div>
2336
+ </div>
2337
+ </div>
2338
+ </div>
2339
+ </div>
2340
+ </div>`;
2341
+ Te.lightboxHTML = `<div id="glightbox-body" class="glightbox-container" tabindex="-1" role="dialog" aria-hidden="false">
2342
+ <div class="gloader visible"></div>
2343
+ <div class="goverlay"></div>
2344
+ <div class="gcontainer">
2345
+ <div id="glightbox-slider" class="gslider"></div>
2346
+ <button class="gclose gbtn" aria-label="Close" data-taborder="3">{closeSVG}</button>
2347
+ <button class="gprev gbtn" aria-label="Previous" data-taborder="2">{prevSVG}</button>
2348
+ <button class="gnext gbtn" aria-label="Next" data-taborder="1">{nextSVG}</button>
2349
+ </div>
2350
+ </div>`;
2351
+ class Xe {
2352
+ constructor(e = {}) {
2353
+ this.customOptions = e, this.settings = Rt(Te, e), this.effectsClasses = this.getAnimationClasses(), this.videoPlayers = {}, this.apiEvents = [], this.fullElementsList = !1;
2354
+ }
2355
+ init() {
2356
+ const e = this.getSelector();
2357
+ e && (this.baseEvents = Bt("click", {
2358
+ onElement: e,
2359
+ withCallback: (i, s) => {
2360
+ i.preventDefault(), this.open(s);
2361
+ }
2362
+ })), this.elements = this.getElements();
2363
+ }
2364
+ open(e = null, i = null) {
2365
+ if (this.elements.length === 0)
2366
+ return !1;
2367
+ this.activeSlide = null, this.prevActiveSlideIndex = null, this.prevActiveSlide = null;
2368
+ let s = pe(i) ? i : this.settings.startAt;
2369
+ if ($t(e)) {
2370
+ const a = e.getAttribute("data-gallery");
2371
+ a && (this.fullElementsList = this.elements, this.elements = this.getGalleryElements(this.elements, a)), Xt(s) && (s = this.getElementIndex(e), s < 0 && (s = 0));
2372
+ }
2373
+ pe(s) || (s = 0), this.build(), Gt(this.overlay, this.settings.openEffect === "none" ? "none" : this.settings.cssEfects.fade.in);
2374
+ const t = document.body, n = window.innerWidth - document.documentElement.clientWidth;
2375
+ if (n > 0) {
2376
+ var r = document.createElement("style");
2377
+ r.type = "text/css", r.className = "gcss-styles", r.innerText = `.gscrollbar-fixer {margin-right: ${n}px}`, document.head.appendChild(r), Z(t, "gscrollbar-fixer");
2378
+ }
2379
+ Z(t, "glightbox-open"), Z(Ae, "glightbox-open"), ze && (Z(document.body, "glightbox-mobile"), this.settings.slideEffect = "slide"), this.showSlide(s, !0), this.elements.length === 1 ? (Z(this.prevButton, "glightbox-button-hidden"), Z(this.nextButton, "glightbox-button-hidden")) : (kt(this.prevButton, "glightbox-button-hidden"), kt(this.nextButton, "glightbox-button-hidden")), this.lightboxOpen = !0, this.trigger("open"), rt(this.settings.onOpen) && this.settings.onOpen(), Pe && this.settings.touchNavigation && fi(this), this.settings.keyboardNavigation && ri(this);
2380
+ }
2381
+ /**
2382
+ * Open at specific index
2383
+ * @param {int} index
2384
+ */
2385
+ openAt(e = 0) {
2386
+ this.open(null, e);
2387
+ }
2388
+ /**
2389
+ * Set Slide
2390
+ */
2391
+ showSlide(e = 0, i = !1) {
2392
+ Ve(this.loader), this.index = parseInt(e);
2393
+ let s = this.slidesContainer.querySelector(".current");
2394
+ s && kt(s, "current"), this.slideAnimateOut();
2395
+ let t = this.slidesContainer.querySelectorAll(".gslide")[e];
2396
+ if (Pt(t, "loaded"))
2397
+ this.slideAnimateIn(t, i), we(this.loader);
2398
+ else {
2399
+ Ve(this.loader);
2400
+ const n = this.elements[e], r = {
2401
+ index: this.index,
2402
+ slide: t,
2403
+ //this will be removed in the future
2404
+ slideNode: t,
2405
+ slideConfig: n.slideConfig,
2406
+ slideIndex: this.index,
2407
+ trigger: n.node,
2408
+ player: null
2409
+ };
2410
+ this.trigger("slide_before_load", r), n.instance.setContent(t, () => {
2411
+ we(this.loader), this.resize(), this.slideAnimateIn(t, i), this.trigger("slide_after_load", r);
2412
+ });
2413
+ }
2414
+ this.slideDescription = t.querySelector(".gslide-description"), this.slideDescriptionContained = this.slideDescription && Pt(this.slideDescription.parentNode, "gslide-media"), this.settings.preload && (this.preloadSlide(e + 1), this.preloadSlide(e - 1)), this.updateNavigationClasses(), this.activeSlide = t;
2415
+ }
2416
+ /**
2417
+ * Preload slides
2418
+ * @param {Int} index slide index
2419
+ * @return {null}
2420
+ */
2421
+ preloadSlide(e) {
2422
+ if (e < 0 || e > this.elements.length - 1 || Xt(this.elements[e]))
2423
+ return !1;
2424
+ let i = this.slidesContainer.querySelectorAll(".gslide")[e];
2425
+ if (Pt(i, "loaded"))
2426
+ return !1;
2427
+ const s = this.elements[e], t = s.type, n = {
2428
+ index: e,
2429
+ slide: i,
2430
+ //this will be removed in the future
2431
+ slideNode: i,
2432
+ slideConfig: s.slideConfig,
2433
+ slideIndex: e,
2434
+ trigger: s.node,
2435
+ player: null
2436
+ };
2437
+ this.trigger("slide_before_load", n), t === "video" || t === "external" ? setTimeout(() => {
2438
+ s.instance.setContent(i, () => {
2439
+ this.trigger("slide_after_load", n);
2440
+ });
2441
+ }, 200) : s.instance.setContent(i, () => {
2442
+ this.trigger("slide_after_load", n);
2443
+ });
2444
+ }
2445
+ /**
2446
+ * Load previous slide
2447
+ * calls goToslide
2448
+ */
2449
+ prevSlide() {
2450
+ this.goToSlide(this.index - 1);
2451
+ }
2452
+ /**
2453
+ * Load next slide
2454
+ * calls goToslide
2455
+ */
2456
+ nextSlide() {
2457
+ this.goToSlide(this.index + 1);
2458
+ }
2459
+ /**
2460
+ * Go to sldei
2461
+ * calls set slide
2462
+ * @param {Int} - index
2463
+ */
2464
+ goToSlide(e = !1) {
2465
+ if (this.prevActiveSlide = this.activeSlide, this.prevActiveSlideIndex = this.index, !this.loop() && (e < 0 || e > this.elements.length - 1))
2466
+ return !1;
2467
+ e < 0 ? e = this.elements.length - 1 : e >= this.elements.length && (e = 0), this.showSlide(e);
2468
+ }
2469
+ /**
2470
+ * Insert slide
2471
+ *
2472
+ * @param { object } data
2473
+ * @param { numeric } position
2474
+ */
2475
+ insertSlide(e = {}, i = -1) {
2476
+ i < 0 && (i = this.elements.length);
2477
+ const s = new ue(e, this, i), t = s.getConfig(), n = Rt({}, t), r = s.create(), a = this.elements.length - 1;
2478
+ n.index = i, n.node = !1, n.instance = s, n.slideConfig = t, this.elements.splice(i, 0, n);
2479
+ let f = null, d = null;
2480
+ if (this.slidesContainer) {
2481
+ if (i > a)
2482
+ this.slidesContainer.appendChild(r);
2483
+ else {
2484
+ let y = this.slidesContainer.querySelectorAll(".gslide")[i];
2485
+ this.slidesContainer.insertBefore(r, y);
2486
+ }
2487
+ (this.settings.preload && this.index == 0 && i == 0 || this.index - 1 == i || this.index + 1 == i) && this.preloadSlide(i), this.index === 0 && i === 0 && (this.index = 1), this.updateNavigationClasses(), f = this.slidesContainer.querySelectorAll(".gslide")[i], d = this.getSlidePlayerInstance(i), n.slideNode = f;
2488
+ }
2489
+ this.trigger("slide_inserted", {
2490
+ index: i,
2491
+ slide: f,
2492
+ slideNode: f,
2493
+ slideConfig: t,
2494
+ slideIndex: i,
2495
+ trigger: null,
2496
+ player: d
2497
+ }), rt(this.settings.slideInserted) && this.settings.slideInserted({
2498
+ index: i,
2499
+ slide: f,
2500
+ player: d
2501
+ });
2502
+ }
2503
+ /**
2504
+ * Remove slide
2505
+ *
2506
+ * @param { numeric } position
2507
+ */
2508
+ removeSlide(e = -1) {
2509
+ if (e < 0 || e > this.elements.length - 1)
2510
+ return !1;
2511
+ const i = this.slidesContainer && this.slidesContainer.querySelectorAll(".gslide")[e];
2512
+ i && (this.getActiveSlideIndex() == e && (e == this.elements.length - 1 ? this.prevSlide() : this.nextSlide()), i.parentNode.removeChild(i)), this.elements.splice(e, 1), this.trigger("slide_removed", e), rt(this.settings.slideRemoved) && this.settings.slideRemoved(e);
2513
+ }
2514
+ /**
2515
+ * Slide In
2516
+ * @return {null}
2517
+ */
2518
+ slideAnimateIn(e, i) {
2519
+ let s = e.querySelector(".gslide-media"), t = e.querySelector(".gslide-description"), n = {
2520
+ index: this.prevActiveSlideIndex,
2521
+ slide: this.prevActiveSlide,
2522
+ //this will be removed in the future
2523
+ slideNode: this.prevActiveSlide,
2524
+ slideIndex: this.prevActiveSlide,
2525
+ slideConfig: Xt(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig,
2526
+ trigger: Xt(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node,
2527
+ player: this.getSlidePlayerInstance(this.prevActiveSlideIndex)
2528
+ }, r = {
2529
+ index: this.index,
2530
+ slide: this.activeSlide,
2531
+ //this will be removed in the future
2532
+ slideNode: this.activeSlide,
2533
+ slideConfig: this.elements[this.index].slideConfig,
2534
+ slideIndex: this.index,
2535
+ trigger: this.elements[this.index].node,
2536
+ player: this.getSlidePlayerInstance(this.index)
2537
+ };
2538
+ if (s.offsetWidth > 0 && t && (we(t), t.style.display = ""), kt(e, this.effectsClasses), i)
2539
+ Gt(e, this.settings.cssEfects[this.settings.openEffect].in, () => {
2540
+ this.settings.autoplayVideos && this.slidePlayerPlay(e), this.trigger("slide_changed", {
2541
+ prev: n,
2542
+ current: r
2543
+ }), rt(this.settings.afterSlideChange) && this.settings.afterSlideChange.apply(this, [n, r]);
2544
+ });
2545
+ else {
2546
+ let a = this.settings.slideEffect, f = a !== "none" ? this.settings.cssEfects[a].in : a;
2547
+ this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (f = this.settings.cssEfects.slideBack.in), Gt(e, f, () => {
2548
+ this.settings.autoplayVideos && this.slidePlayerPlay(e), this.trigger("slide_changed", {
2549
+ prev: n,
2550
+ current: r
2551
+ }), rt(this.settings.afterSlideChange) && this.settings.afterSlideChange.apply(this, [n, r]);
2552
+ });
2553
+ }
2554
+ setTimeout(() => {
2555
+ this.resize(e);
2556
+ }, 100), Z(e, "current");
2557
+ }
2558
+ /**
2559
+ * Slide out
2560
+ */
2561
+ slideAnimateOut() {
2562
+ if (!this.prevActiveSlide)
2563
+ return !1;
2564
+ let e = this.prevActiveSlide;
2565
+ kt(e, this.effectsClasses), Z(e, "prev");
2566
+ let i = this.settings.slideEffect, s = i !== "none" ? this.settings.cssEfects[i].out : i;
2567
+ this.slidePlayerPause(e), this.trigger("slide_before_change", {
2568
+ prev: {
2569
+ index: this.prevActiveSlideIndex,
2570
+ //this will be removed in the future
2571
+ slide: this.prevActiveSlide,
2572
+ //this will be removed in the future
2573
+ slideNode: this.prevActiveSlide,
2574
+ slideIndex: this.prevActiveSlideIndex,
2575
+ slideConfig: Xt(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].slideConfig,
2576
+ trigger: Xt(this.prevActiveSlideIndex) ? null : this.elements[this.prevActiveSlideIndex].node,
2577
+ player: this.getSlidePlayerInstance(this.prevActiveSlideIndex)
2578
+ },
2579
+ current: {
2580
+ index: this.index,
2581
+ //this will be removed in the future
2582
+ slide: this.activeSlide,
2583
+ //this will be removed in the future
2584
+ slideNode: this.activeSlide,
2585
+ slideIndex: this.index,
2586
+ slideConfig: this.elements[this.index].slideConfig,
2587
+ trigger: this.elements[this.index].node,
2588
+ player: this.getSlidePlayerInstance(this.index)
2589
+ }
2590
+ }), rt(this.settings.beforeSlideChange) && this.settings.beforeSlideChange.apply(this, [
2591
+ {
2592
+ index: this.prevActiveSlideIndex,
2593
+ slide: this.prevActiveSlide,
2594
+ player: this.getSlidePlayerInstance(this.prevActiveSlideIndex)
2595
+ },
2596
+ {
2597
+ index: this.index,
2598
+ slide: this.activeSlide,
2599
+ player: this.getSlidePlayerInstance(this.index)
2600
+ }
2601
+ ]), this.prevActiveSlideIndex > this.index && this.settings.slideEffect == "slide" && (s = this.settings.cssEfects.slideBack.out), Gt(e, s, () => {
2602
+ let t = e.querySelector(".ginner-container"), n = e.querySelector(".gslide-media"), r = e.querySelector(".gslide-description");
2603
+ t.style.transform = "", n.style.transform = "", kt(n, "greset"), n.style.opacity = "", r && (r.style.opacity = ""), kt(e, "prev");
2604
+ });
2605
+ }
2606
+ /**
2607
+ * Get all defined players
2608
+ */
2609
+ getAllPlayers() {
2610
+ return this.videoPlayers;
2611
+ }
2612
+ /**
2613
+ * Get player at index
2614
+ *
2615
+ * @param index
2616
+ * @return bool|object
2617
+ */
2618
+ getSlidePlayerInstance(e) {
2619
+ const i = "gvideo" + e, s = this.getAllPlayers();
2620
+ return Lt(s, i) && s[i] ? s[i] : !1;
2621
+ }
2622
+ /**
2623
+ * Stop video at specified
2624
+ * node or index
2625
+ *
2626
+ * @param slide node or index
2627
+ * @return void
2628
+ */
2629
+ stopSlideVideo(e) {
2630
+ if ($t(e)) {
2631
+ let s = e.querySelector(".gvideo-wrapper");
2632
+ s && (e = s.getAttribute("data-index"));
2633
+ }
2634
+ console.log("stopSlideVideo is deprecated, use slidePlayerPause");
2635
+ const i = this.getSlidePlayerInstance(e);
2636
+ i && i.playing && i.pause();
2637
+ }
2638
+ /**
2639
+ * Stop player at specified index
2640
+ *
2641
+ * @param slide node or index
2642
+ * @return void
2643
+ */
2644
+ slidePlayerPause(e) {
2645
+ if ($t(e)) {
2646
+ let s = e.querySelector(".gvideo-wrapper");
2647
+ s && (e = s.getAttribute("data-index"));
2648
+ }
2649
+ const i = this.getSlidePlayerInstance(e);
2650
+ i && i.playing && i.pause();
2651
+ }
2652
+ /**
2653
+ * Play video at specified
2654
+ * node or index
2655
+ *
2656
+ * @param slide node or index
2657
+ * @return void
2658
+ */
2659
+ playSlideVideo(e) {
2660
+ if ($t(e)) {
2661
+ let s = e.querySelector(".gvideo-wrapper");
2662
+ s && (e = s.getAttribute("data-index"));
2663
+ }
2664
+ console.log("playSlideVideo is deprecated, use slidePlayerPlay");
2665
+ const i = this.getSlidePlayerInstance(e);
2666
+ i && !i.playing && i.play();
2667
+ }
2668
+ /**
2669
+ * Play media player at specified
2670
+ * node or index
2671
+ *
2672
+ * @param slide node or index
2673
+ * @return void
2674
+ */
2675
+ slidePlayerPlay(e) {
2676
+ if (ze && !this.settings.plyr.config?.muted)
2677
+ return;
2678
+ if ($t(e)) {
2679
+ let s = e.querySelector(".gvideo-wrapper");
2680
+ s && (e = s.getAttribute("data-index"));
2681
+ }
2682
+ const i = this.getSlidePlayerInstance(e);
2683
+ i && !i.playing && (i.play(), this.settings.autofocusVideos && i.elements.container.focus());
2684
+ }
2685
+ /**
2686
+ * Set the entire elements
2687
+ * in the gallery, it replaces all
2688
+ * the existing elements
2689
+ * with the specified list
2690
+ *
2691
+ * @param {array} elements
2692
+ */
2693
+ setElements(e) {
2694
+ this.settings.elements = !1;
2695
+ const i = [];
2696
+ e && e.length && At(e, (s, t) => {
2697
+ const n = new ue(s, this, t), r = n.getConfig(), a = Rt({}, r);
2698
+ a.slideConfig = r, a.instance = n, a.index = t, i.push(a);
2699
+ }), this.elements = i, this.lightboxOpen && (this.slidesContainer.innerHTML = "", this.elements.length && (At(this.elements, () => {
2700
+ let s = Ut(this.settings.slideHTML);
2701
+ this.slidesContainer.appendChild(s);
2702
+ }), this.showSlide(0, !0)));
2703
+ }
2704
+ /**
2705
+ * Return the index
2706
+ * of the specified node,
2707
+ * this node is for example an image, link, etc.
2708
+ * that when clicked it opens the lightbox
2709
+ * its position in the elements array can change
2710
+ * when using insertSlide or removeSlide so we
2711
+ * need to find it in the elements list
2712
+ *
2713
+ * @param {node} node
2714
+ * @return bool|int
2715
+ */
2716
+ getElementIndex(e) {
2717
+ let i = !1;
2718
+ return At(this.elements, (s, t) => {
2719
+ if (Lt(s, "node") && s.node == e)
2720
+ return i = t, !0;
2721
+ }), i;
2722
+ }
2723
+ /**
2724
+ * Get elements
2725
+ * returns an array containing all
2726
+ * the elements that must be displayed in the
2727
+ * lightbox
2728
+ *
2729
+ * @return { array }
2730
+ */
2731
+ getElements() {
2732
+ let e = [];
2733
+ this.elements = this.elements ? this.elements : [], !Xt(this.settings.elements) && We(this.settings.elements) && this.settings.elements.length && At(this.settings.elements, (t, n) => {
2734
+ const r = new ue(t, this, n), a = r.getConfig(), f = Rt({}, a);
2735
+ f.node = !1, f.index = n, f.instance = r, f.slideConfig = a, e.push(f);
2736
+ });
2737
+ let i = !1;
2738
+ return this.getSelector() && (i = document.querySelectorAll(this.getSelector())), i && At(i, (t, n) => {
2739
+ const r = new ue(t, this, n), a = r.getConfig(), f = Rt({}, a);
2740
+ f.node = t, f.index = n, f.instance = r, f.slideConfig = a, f.gallery = t.getAttribute("data-gallery"), e.push(f);
2741
+ }), e;
2742
+ }
2743
+ /**
2744
+ * Return only the elements
2745
+ * from a specific gallery
2746
+ *
2747
+ * @return array
2748
+ */
2749
+ getGalleryElements(e, i) {
2750
+ return e.filter((s) => s.gallery == i);
2751
+ }
2752
+ /**
2753
+ * Get selector
2754
+ */
2755
+ getSelector() {
2756
+ return this.settings.elements ? !1 : this.settings.selector && this.settings.selector.substring(0, 5) == "data-" ? `*[${this.settings.selector}]` : this.settings.selector;
2757
+ }
2758
+ /**
2759
+ * Get the active slide
2760
+ */
2761
+ getActiveSlide() {
2762
+ return this.slidesContainer.querySelectorAll(".gslide")[this.index];
2763
+ }
2764
+ /**
2765
+ * Get the active index
2766
+ */
2767
+ getActiveSlideIndex() {
2768
+ return this.index;
2769
+ }
2770
+ /**
2771
+ * Get the defined
2772
+ * effects as string
2773
+ */
2774
+ getAnimationClasses() {
2775
+ let e = [];
2776
+ for (let i in this.settings.cssEfects)
2777
+ if (this.settings.cssEfects.hasOwnProperty(i)) {
2778
+ let s = this.settings.cssEfects[i];
2779
+ e.push(`g${s.in}`), e.push(`g${s.out}`);
2780
+ }
2781
+ return e.join(" ");
2782
+ }
2783
+ /**
2784
+ * Build the structure
2785
+ * @return {null}
2786
+ */
2787
+ build() {
2788
+ if (this.built)
2789
+ return !1;
2790
+ const e = document.body.childNodes, i = [];
2791
+ At(e, (d) => {
2792
+ d.parentNode == document.body && d.nodeName.charAt(0) !== "#" && d.hasAttribute && !d.hasAttribute("aria-hidden") && (i.push(d), d.setAttribute("aria-hidden", "true"));
2793
+ });
2794
+ const s = Lt(this.settings.svg, "next") ? this.settings.svg.next : "", t = Lt(this.settings.svg, "prev") ? this.settings.svg.prev : "", n = Lt(this.settings.svg, "close") ? this.settings.svg.close : "";
2795
+ let r = this.settings.lightboxHTML;
2796
+ r = r.replace(/{nextSVG}/g, s), r = r.replace(/{prevSVG}/g, t), r = r.replace(/{closeSVG}/g, n), r = Ut(r), document.body.appendChild(r);
2797
+ const a = document.getElementById("glightbox-body");
2798
+ this.modal = a;
2799
+ let f = a.querySelector(".gclose");
2800
+ 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 = i, this.events = {}, Z(this.modal, "glightbox-" + this.settings.skin), this.settings.closeButton && f && (this.events.close = Bt("click", {
2801
+ onElement: f,
2802
+ withCallback: (d, y) => {
2803
+ d.preventDefault(), this.close();
2804
+ }
2805
+ })), f && !this.settings.closeButton && f.parentNode.removeChild(f), this.nextButton && (this.events.next = Bt("click", {
2806
+ onElement: this.nextButton,
2807
+ withCallback: (d, y) => {
2808
+ d.preventDefault(), this.nextSlide();
2809
+ }
2810
+ })), this.prevButton && (this.events.prev = Bt("click", {
2811
+ onElement: this.prevButton,
2812
+ withCallback: (d, y) => {
2813
+ d.preventDefault(), this.prevSlide();
2814
+ }
2815
+ })), this.settings.closeOnOutsideClick && (this.events.outClose = Bt("click", {
2816
+ onElement: a,
2817
+ withCallback: (d, y) => {
2818
+ !this.preventOutsideClick && !Pt(document.body, "glightbox-mobile") && !Wt(d.target, ".ginner-container") && !Wt(d.target, ".gbtn") && !Pt(d.target, "gnext") && !Pt(d.target, "gprev") && this.close();
2819
+ }
2820
+ })), At(this.elements, (d, y) => {
2821
+ this.slidesContainer.appendChild(d.instance.create()), d.slideNode = this.slidesContainer.querySelectorAll(".gslide")[y];
2822
+ }), Pe && Z(document.body, "glightbox-touch"), this.events.resize = Bt("resize", {
2823
+ onElement: window,
2824
+ withCallback: () => {
2825
+ this.resize();
2826
+ }
2827
+ }), this.built = !0;
2828
+ }
2829
+ /**
2830
+ * Handle resize
2831
+ * Create only to handle
2832
+ * when the height of the screen
2833
+ * is lower than the slide content
2834
+ * this helps to resize videos vertically
2835
+ * and images with description
2836
+ */
2837
+ resize(e = null) {
2838
+ if (e = e || this.activeSlide, !e || Pt(e, "zoomed"))
2839
+ return;
2840
+ const i = Be(), s = e.querySelector(".gvideo-wrapper"), t = e.querySelector(".gslide-image"), n = this.slideDescription;
2841
+ let r = i.width, a = i.height;
2842
+ if (r <= 768 ? Z(document.body, "glightbox-mobile") : kt(document.body, "glightbox-mobile"), !s && !t)
2843
+ return;
2844
+ let f = !1;
2845
+ if (n && (Pt(n, "description-bottom") || Pt(n, "description-top")) && !Pt(n, "gabsolute") && (f = !0), t) {
2846
+ if (r <= 768)
2847
+ t.querySelector("img");
2848
+ else if (f) {
2849
+ let d = n.offsetHeight, y = t.querySelector("img");
2850
+ const _ = this.elements[this.index].node.getAttribute("data-height") ?? "100vh";
2851
+ y.setAttribute("style", `max-height: calc(${_} - ${d}px)`), n.setAttribute("style", `max-width: ${y.offsetWidth}px;`);
2852
+ }
2853
+ }
2854
+ if (s) {
2855
+ let d = Lt(this.settings.plyr.config, "ratio") ? this.settings.plyr.config.ratio : "";
2856
+ if (!d) {
2857
+ const P = s.clientWidth, M = s.clientHeight, dt = P / M;
2858
+ d = `${P / dt}:${M / dt}`;
2859
+ }
2860
+ let y = d.split(":"), b = this.settings.videosWidth, _ = this.settings.videosWidth;
2861
+ pe(b) || b.indexOf("px") !== -1 ? _ = parseInt(b) : b.indexOf("vw") !== -1 ? _ = r * parseInt(b) / 100 : b.indexOf("vh") !== -1 ? _ = a * parseInt(b) / 100 : b.indexOf("%") !== -1 ? _ = r * parseInt(b) / 100 : _ = parseInt(s.clientWidth);
2862
+ let q = _ / (parseInt(y[0]) / parseInt(y[1]));
2863
+ if (q = Math.floor(q), f && (a = a - n.offsetHeight), _ > r || q > a || a < q && r > _) {
2864
+ let P = s.offsetWidth, M = s.offsetHeight, dt = a / M, et = { width: P * dt };
2865
+ s.parentNode.setAttribute("style", `max-width: ${et.width}px`), f && n.setAttribute("style", `max-width: ${et.width}px;`);
2866
+ } else
2867
+ s.parentNode.style.maxWidth = `${b}`, f && n.setAttribute("style", `max-width: ${b};`);
2868
+ }
2869
+ }
2870
+ /**
2871
+ * Reload Lightbox
2872
+ * reload and apply events to nodes
2873
+ */
2874
+ reload() {
2875
+ this.init();
2876
+ }
2877
+ /**
2878
+ * Update navigation classes on slide change
2879
+ */
2880
+ updateNavigationClasses() {
2881
+ const e = this.loop();
2882
+ kt(this.nextButton, "disabled"), kt(this.prevButton, "disabled"), this.index == 0 && this.elements.length - 1 == 0 ? (Z(this.prevButton, "disabled"), Z(this.nextButton, "disabled")) : this.index === 0 && !e ? Z(this.prevButton, "disabled") : this.index === this.elements.length - 1 && !e && Z(this.nextButton, "disabled");
2883
+ }
2884
+ /**
2885
+ * Handle loop config
2886
+ */
2887
+ loop() {
2888
+ let e = Lt(this.settings, "loopAtEnd") ? this.settings.loopAtEnd : null;
2889
+ return e = Lt(this.settings, "loop") ? this.settings.loop : e, e;
2890
+ }
2891
+ /**
2892
+ * Close Lightbox
2893
+ * closes the lightbox and removes the slides
2894
+ * and some classes
2895
+ */
2896
+ close() {
2897
+ if (!this.lightboxOpen) {
2898
+ if (this.events) {
2899
+ for (let e in this.events)
2900
+ this.events.hasOwnProperty(e) && this.events[e].destroy();
2901
+ this.events = null;
2902
+ }
2903
+ return !1;
2904
+ }
2905
+ if (this.closing)
2906
+ return !1;
2907
+ this.closing = !0, this.slidePlayerPause(this.activeSlide), this.fullElementsList && (this.elements = this.fullElementsList), this.bodyHiddenChildElms.length && At(this.bodyHiddenChildElms, (e) => {
2908
+ e.removeAttribute("aria-hidden");
2909
+ }), Z(this.modal, "glightbox-closing"), Gt(this.overlay, this.settings.openEffect == "none" ? "none" : this.settings.cssEfects.fade.out), Gt(this.activeSlide, this.settings.cssEfects[this.settings.closeEffect].out, () => {
2910
+ if (this.activeSlide = null, this.prevActiveSlideIndex = null, this.prevActiveSlide = null, this.built = !1, this.events) {
2911
+ for (let s in this.events)
2912
+ this.events.hasOwnProperty(s) && this.events[s].destroy();
2913
+ this.events = null;
2914
+ }
2915
+ const e = document.body;
2916
+ kt(Ae, "glightbox-open"), kt(e, "glightbox-open touching gdesc-open glightbox-touch glightbox-mobile gscrollbar-fixer"), this.modal.parentNode.removeChild(this.modal), this.trigger("close"), rt(this.settings.onClose) && this.settings.onClose();
2917
+ const i = document.querySelector(".gcss-styles");
2918
+ i && i.parentNode.removeChild(i), this.lightboxOpen = !1, this.closing = null;
2919
+ });
2920
+ }
2921
+ /**
2922
+ * Destroy lightbox
2923
+ * and all events
2924
+ */
2925
+ destroy() {
2926
+ this.close(), this.clearAllEvents(), this.baseEvents && this.baseEvents.destroy();
2927
+ }
2928
+ /**
2929
+ * Set event
2930
+ */
2931
+ on(e, i, s = !1) {
2932
+ if (!e || !rt(i))
2933
+ throw new TypeError("Event name and callback must be defined");
2934
+ this.apiEvents.push({ evt: e, once: s, callback: i });
2935
+ }
2936
+ /**
2937
+ * Set event
2938
+ */
2939
+ once(e, i) {
2940
+ this.on(e, i, !0);
2941
+ }
2942
+ /**
2943
+ * Triggers an specific event
2944
+ * with data
2945
+ *
2946
+ * @param string eventName
2947
+ */
2948
+ trigger(e, i = null) {
2949
+ const s = [];
2950
+ At(this.apiEvents, (t, n) => {
2951
+ const { evt: r, once: a, callback: f } = t;
2952
+ r == e && (f(i), a && s.push(n));
2953
+ }), s.length && At(s, (t) => this.apiEvents.splice(t, 1));
2954
+ }
2955
+ /**
2956
+ * Removes all events
2957
+ * set using the API
2958
+ */
2959
+ clearAllEvents() {
2960
+ this.apiEvents.splice(0, this.apiEvents.length);
2961
+ }
2962
+ /**
2963
+ * Get Version
2964
+ */
2965
+ version() {
2966
+ return wi;
2967
+ }
2968
+ }
2969
+ var Oe = { exports: {} }, He;
2970
+ function xi() {
2971
+ return He || (He = 1, (function(o, e) {
2972
+ (function() {
2973
+ var i = {
2974
+ // Scrolling Core
2975
+ frameRate: 150,
2976
+ // [Hz]
2977
+ animationTime: 400,
2978
+ // [ms]
2979
+ stepSize: 100,
2980
+ // [px]
2981
+ // Pulse (less tweakable)
2982
+ // ratio of "tail" to "acceleration"
2983
+ pulseAlgorithm: !0,
2984
+ pulseScale: 4,
2985
+ pulseNormalize: 1,
2986
+ // Acceleration
2987
+ accelerationDelta: 50,
2988
+ // 50
2989
+ accelerationMax: 3,
2990
+ // 3
2991
+ // Keyboard Settings
2992
+ keyboardSupport: !0,
2993
+ // option
2994
+ arrowScroll: 50,
2995
+ // [px]
2996
+ // Other
2997
+ fixedBackground: !0,
2998
+ excluded: ""
2999
+ }, s = i, t = !1, n = { x: 0, y: 0 }, r = !1, a = document.documentElement, f, d, y, b = [], _, q = /^Mac/.test(navigator.platform);
3000
+ function P() {
3001
+ s.keyboardSupport && B("keydown", l);
3002
+ }
3003
+ function M() {
3004
+ if (!(r || !document.body)) {
3005
+ r = !0;
3006
+ var h = document.body, x = document.documentElement, k = window.innerHeight, H = h.scrollHeight;
3007
+ if (a = document.compatMode.indexOf("CSS") >= 0 ? x : h, f = h, P(), top != self)
3008
+ t = !0;
3009
+ else if (Q && H > k && (h.offsetHeight <= k || x.offsetHeight <= k)) {
3010
+ var W = document.createElement("div");
3011
+ W.style.cssText = "position:absolute; z-index:-10000; top:0; left:0; right:0; height:" + a.scrollHeight + "px", document.body.appendChild(W);
3012
+ var p;
3013
+ y = function() {
3014
+ p || (p = setTimeout(function() {
3015
+ W.style.height = "0", W.style.height = a.scrollHeight + "px", p = null;
3016
+ }, 500));
3017
+ }, setTimeout(y, 10), B("resize", y);
3018
+ var w = {
3019
+ attributes: !0,
3020
+ childList: !0,
3021
+ characterData: !1
3022
+ // subtree: true
3023
+ };
3024
+ if (d = new Tt(y), d.observe(h, w), a.offsetHeight <= k) {
3025
+ var S = document.createElement("div");
3026
+ S.style.clear = "both", h.appendChild(S);
3027
+ }
3028
+ }
3029
+ s.fixedBackground || (h.style.backgroundAttachment = "scroll", x.style.backgroundAttachment = "scroll");
3030
+ }
3031
+ }
3032
+ function dt() {
3033
+ d && d.disconnect(), F(qt, Ct), F("mousedown", g), F("keydown", l), F("resize", y), F("load", M);
3034
+ }
3035
+ var et = [], It = !1, _t = Date.now();
3036
+ function jt(h, x, k) {
3037
+ if (lt(x, k), s.accelerationMax != 1) {
3038
+ var H = Date.now(), W = H - _t;
3039
+ if (W < s.accelerationDelta) {
3040
+ var p = (1 + 50 / W) / 2;
3041
+ p > 1 && (p = Math.min(p, s.accelerationMax), x *= p, k *= p);
3042
+ }
3043
+ _t = Date.now();
3044
+ }
3045
+ if (et.push({
3046
+ x,
3047
+ y: k,
3048
+ lastX: x < 0 ? 0.99 : -0.99,
3049
+ lastY: k < 0 ? 0.99 : -0.99,
3050
+ start: Date.now()
3051
+ }), !It) {
3052
+ var w = yt(), S = h === w || h === document.body;
3053
+ h.$scrollBehavior == null && $(h) && (h.$scrollBehavior = h.style.scrollBehavior, h.style.scrollBehavior = "auto");
3054
+ var A = function(V) {
3055
+ for (var it = Date.now(), R = 0, Y = 0, K = 0; K < et.length; K++) {
3056
+ var z = et[K], mt = it - z.start, nt = mt >= s.animationTime, at = nt ? 1 : mt / s.animationTime;
3057
+ s.pulseAlgorithm && (at = vt(at));
3058
+ var bt = z.x * at - z.lastX >> 0, Dt = z.y * at - z.lastY >> 0;
3059
+ R += bt, Y += Dt, z.lastX += bt, z.lastY += Dt, nt && (et.splice(K, 1), K--);
3060
+ }
3061
+ S ? window.scrollBy(R, Y) : (R && (h.scrollLeft += R), Y && (h.scrollTop += Y)), !x && !k && (et = []), et.length ? ft(A, h, 1e3 / s.frameRate + 1) : (It = !1, h.$scrollBehavior != null && (h.style.scrollBehavior = h.$scrollBehavior, h.$scrollBehavior = null));
3062
+ };
3063
+ ft(A, h, 0), It = !0;
3064
+ }
3065
+ }
3066
+ function Ct(h) {
3067
+ r || M();
3068
+ var x = E(h);
3069
+ if (h.defaultPrevented || h.ctrlKey || ot(f, "embed") || ot(x, "embed") && /\.pdf/i.test(x.src) || ot(f, "object"))
3070
+ return !0;
3071
+ var k = -h.wheelDeltaX || h.deltaX || 0, H = -h.wheelDeltaY || h.deltaY || 0;
3072
+ q && (h.wheelDeltaX && U(h.wheelDeltaX, 120) && (k = -120 * (h.wheelDeltaX / Math.abs(h.wheelDeltaX))), h.wheelDeltaY && U(h.wheelDeltaY, 120) && (H = -120 * (h.wheelDeltaY / Math.abs(h.wheelDeltaY)))), !k && !H && (H = -h.wheelDelta || 0), h.deltaMode === 1 && (k *= 40, H *= 40);
3073
+ var W = u(x);
3074
+ if (!W)
3075
+ return t && gt ? (Object.defineProperty(h, "target", { value: window.frameElement }), parent.wheel(h)) : !0;
3076
+ if (G(H))
3077
+ return !0;
3078
+ Math.abs(k) > 1.2 && (k *= s.stepSize / 120), Math.abs(H) > 1.2 && (H *= s.stepSize / 120), jt(W, k, H), h.preventDefault(), T();
3079
+ }
3080
+ function l(h) {
3081
+ var x = E(h), k = h.ctrlKey || h.altKey || h.metaKey || h.shiftKey && h.code !== "Space";
3082
+ document.body.contains(f) || (f = document.activeElement);
3083
+ var H = /^(textarea|select|embed|object)$/i, W = /^(button|submit|radio|checkbox|file|color|image)$/i;
3084
+ if (h.defaultPrevented || H.test(x.nodeName) || ot(x, "input") && !W.test(x.type) || ot(f, "video") || Vt(h) || x.isContentEditable || k || (ot(x, "button") || ot(x, "input") && W.test(x.type)) && h.code === "Space" || ot(x, "input") && x.type == "radio" && (h.code === "ArrowUp" || h.code === "ArrowDown" || h.code === "ArrowLeft" || h.code === "ArrowRight"))
3085
+ return !0;
3086
+ var p, w = 0, S = 0, A = u(f);
3087
+ if (!A)
3088
+ return t && gt ? parent.keydown(h) : !0;
3089
+ var V = A.clientHeight;
3090
+ switch (A == document.body && (V = window.innerHeight), h.code) {
3091
+ case "ArrowUp":
3092
+ S = -s.arrowScroll;
3093
+ break;
3094
+ case "ArrowDown":
3095
+ S = s.arrowScroll;
3096
+ break;
3097
+ case "Space":
3098
+ p = h.shiftKey ? 1 : -1, S = -p * V * 0.9;
3099
+ break;
3100
+ case "PageUp":
3101
+ S = -V * 0.9;
3102
+ break;
3103
+ case "PageDown":
3104
+ S = V * 0.9;
3105
+ break;
3106
+ case "Home":
3107
+ A == document.body && document.scrollingElement && (A = document.scrollingElement), S = -A.scrollTop;
3108
+ break;
3109
+ case "End":
3110
+ var it = A.scrollHeight - A.scrollTop, R = it - V;
3111
+ S = R > 0 ? R + 10 : 0;
3112
+ break;
3113
+ case "ArrowLeft":
3114
+ w = -s.arrowScroll;
3115
+ break;
3116
+ case "ArrowRight":
3117
+ w = s.arrowScroll;
3118
+ break;
3119
+ default:
3120
+ return !0;
3121
+ }
3122
+ jt(A, w, S), h.preventDefault(), T();
3123
+ }
3124
+ function g(h) {
3125
+ f = E(h);
3126
+ }
3127
+ function E(h) {
3128
+ return h.composedPath ? h.composedPath()[0] : h.target;
3129
+ }
3130
+ var L = /* @__PURE__ */ (function() {
3131
+ var h = 0;
3132
+ return function(x) {
3133
+ return x.uniqueID || (x.uniqueID = h++);
3134
+ };
3135
+ })(), j = {}, D, st = {};
3136
+ function T() {
3137
+ clearTimeout(D), D = setInterval(function() {
3138
+ j = st = {};
3139
+ }, 1 * 1e3);
3140
+ }
3141
+ function v(h, x, k) {
3142
+ for (var H = j, W = h.length; W--; )
3143
+ H[L(h[W])] = x;
3144
+ return x;
3145
+ }
3146
+ function c(h, x) {
3147
+ return j[L(h)];
3148
+ }
3149
+ function u(h) {
3150
+ for (var x = [], k = document.body, H = a.scrollHeight; h; ) {
3151
+ var W = c(h);
3152
+ if (W)
3153
+ return v(x, W);
3154
+ if (x.push(h), H === h.scrollHeight) {
3155
+ var p = I(a) && I(k), w = p || C(a);
3156
+ if (t && O(a) || !t && w)
3157
+ return v(x, yt());
3158
+ } else if (O(h) && C(h))
3159
+ return v(x, h);
3160
+ h = h.parentElement || h.getRootNode && h.getRootNode().host;
3161
+ }
3162
+ }
3163
+ function O(h) {
3164
+ return h.clientHeight + 10 < h.scrollHeight;
3165
+ }
3166
+ function I(h) {
3167
+ var x = getComputedStyle(h, "").getPropertyValue("overflow-y");
3168
+ return x !== "hidden";
3169
+ }
3170
+ function C(h) {
3171
+ var x = getComputedStyle(h, "").getPropertyValue("overflow-y");
3172
+ return x === "scroll" || x === "auto";
3173
+ }
3174
+ function $(h) {
3175
+ var x = L(h);
3176
+ if (st[x] == null) {
3177
+ var k = getComputedStyle(h, "")["scroll-behavior"];
3178
+ st[x] = k == "smooth";
3179
+ }
3180
+ return st[x];
3181
+ }
3182
+ function B(h, x, k) {
3183
+ window.addEventListener(h, x, k || !1);
3184
+ }
3185
+ function F(h, x, k) {
3186
+ window.removeEventListener(h, x, !1);
3187
+ }
3188
+ function ot(h, x) {
3189
+ return h && (h.nodeName || "").toLowerCase() === x.toLowerCase();
3190
+ }
3191
+ function lt(h, x) {
3192
+ h = h > 0 ? 1 : -1, x = x > 0 ? 1 : -1, (n.x !== h || n.y !== x) && (n.x = h, n.y = x, et = [], _t = 0);
3193
+ }
3194
+ try {
3195
+ localStorage.SS_deltaBuffer && (b = localStorage.SS_deltaBuffer.split(","));
3196
+ } catch {
3197
+ }
3198
+ function G(h) {
3199
+ if (h) {
3200
+ b.length || (b = [h, h, h]), h = Math.abs(h), b.push(h), b.shift(), clearTimeout(_), _ = setTimeout(function() {
3201
+ try {
3202
+ localStorage.SS_deltaBuffer = b.join(",");
3203
+ } catch {
3204
+ }
3205
+ }, 1e3);
3206
+ var x = h > 120 && ct(h), k = !ct(120) && !ct(100) && !x;
3207
+ return h < 50 ? !0 : k;
3208
+ }
3209
+ }
3210
+ function U(h, x) {
3211
+ return Math.floor(h / x) == h / x;
3212
+ }
3213
+ function ct(h) {
3214
+ return U(b[0], h) && U(b[1], h) && U(b[2], h);
3215
+ }
3216
+ function Vt(h) {
3217
+ var x = E(h), k = !1;
3218
+ if (document.URL.indexOf("www.youtube.com/watch") != -1)
3219
+ do
3220
+ if (k = x.classList && x.classList.contains("html5-video-controls"), k) break;
3221
+ while (x = x.parentNode);
3222
+ return k;
3223
+ }
3224
+ var ft = (function() {
3225
+ return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(h, x, k) {
3226
+ window.setTimeout(h, k || 1e3 / 60);
3227
+ };
3228
+ })(), Tt = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver, yt = (function() {
3229
+ var h = document.scrollingElement;
3230
+ return function() {
3231
+ if (!h) {
3232
+ var x = document.createElement("div");
3233
+ x.style.cssText = "height:10000px;width:1px;", document.body.appendChild(x);
3234
+ var k = document.body.scrollTop;
3235
+ document.documentElement.scrollTop, window.scrollBy(0, 3), document.body.scrollTop != k ? h = document.body : h = document.documentElement, window.scrollBy(0, -3), document.body.removeChild(x);
3236
+ }
3237
+ return h;
3238
+ };
3239
+ })();
3240
+ function J(h) {
3241
+ var x, k, H;
3242
+ return h = h * s.pulseScale, h < 1 ? x = h - (1 - Math.exp(-h)) : (k = Math.exp(-1), h -= 1, H = 1 - Math.exp(-h), x = k + H * (1 - k)), x * s.pulseNormalize;
3243
+ }
3244
+ function vt(h) {
3245
+ return h >= 1 ? 1 : h <= 0 ? 0 : (s.pulseNormalize == 1 && (s.pulseNormalize /= J(1)), J(h));
3246
+ }
3247
+ var tt = window.navigator.userAgent, ht = /Edge/.test(tt), gt = /chrome/i.test(tt) && !ht, wt = /safari/i.test(tt) && !ht, pt = /mobile/i.test(tt), Ot = /Windows NT 6.1/i.test(tt) && /rv:11/i.test(tt), Q = wt && (/Version\/8/i.test(tt) || /Version\/9/i.test(tt)), Yt = (gt || wt || Ot) && !pt, Mt = !1;
3248
+ try {
3249
+ window.addEventListener("test", null, Object.defineProperty({}, "passive", {
3250
+ get: function() {
3251
+ Mt = !0;
3252
+ }
3253
+ }));
3254
+ } catch {
3255
+ }
3256
+ var xt = Mt ? { passive: !1 } : !1, qt = "onwheel" in document.createElement("div") ? "wheel" : "mousewheel";
3257
+ Yt && (B(qt, Ct, xt), B("mousedown", g), B("load", M));
3258
+ function X(h) {
3259
+ for (var x in h)
3260
+ i.hasOwnProperty(x) && (s[x] = h[x]);
3261
+ }
3262
+ X.destroy = dt, window.SmoothScrollOptions && X(window.SmoothScrollOptions), o.exports = X;
3263
+ })();
3264
+ })(Oe)), Oe.exports;
3265
+ }
3266
+ var Oi = xi();
3267
+ const Si = /* @__PURE__ */ be(Oi);
3268
+ class Ai {
3269
+ constructor(e = {}) {
3270
+ const i = {
3271
+ skin: "light"
3272
+ };
3273
+ this.settings = Object.assign(this, i, e), window.pageReRender = () => {
3274
+ this.pageReRender();
3275
+ };
3276
+ }
3277
+ init() {
3278
+ this.prepareContent(), this.updateOnResize(), this.blockInit(), this.initeSkrollrr(), this.contentBoxOnRenderUpdate(), this.functionLightboxInit(), this.inViewSetup(), setTimeout(() => {
3279
+ Ze.init({
3280
+ duration: 1200
3281
+ });
3282
+ }, 300), Si({
3283
+ frameRate: 150,
3284
+ animationTime: 800,
3285
+ stepSize: 120,
3286
+ pulseAlgorithm: 1,
3287
+ pulseScale: 4,
3288
+ pulseNormalize: 1,
3289
+ accelerationDelta: 300,
3290
+ accelerationMax: 2,
3291
+ keyboardSupport: 1,
3292
+ arrowScroll: 50,
3293
+ fixedBackground: 0
3294
+ });
3295
+ }
3296
+ prepareContent() {
3297
+ const e = document.querySelector(".is-wrapper");
3298
+ e.classList.add("box-v2");
3299
+ const i = function(r) {
3300
+ let a = r.nextElementSibling;
3301
+ return a ? a.classList.contains("is-section") ? a : i(a) : !1;
3302
+ };
3303
+ document.querySelectorAll(".is-arrow-down a").forEach(function(r) {
3304
+ r.addEventListener("click", function(a) {
3305
+ let f = a.target.closest(".is-section");
3306
+ if (f) {
3307
+ let d = i(f);
3308
+ d && this.scrollIt(d, 1e3, "easeInQuad");
3309
+ }
3310
+ a.preventDefault(), a.stopImmediatePropagation();
3311
+ });
3312
+ }), e && (e.classList.contains("is-edit") || e.querySelectorAll("a").forEach(function(a) {
3313
+ a.addEventListener("click", function(f) {
3314
+ let d = a.getAttribute("href");
3315
+ if (d && d.indexOf("#") === 0)
3316
+ if (d.indexOf("#section") === 0) {
3317
+ let y = d.replace("#section", "");
3318
+ if (!isNaN(parseInt(y))) {
3319
+ let b = document.querySelectorAll(".is-section"), _, q = 0;
3320
+ b.forEach(function(P) {
3321
+ P.classList.contains("is-section-navbar") || (q === y - 1 && (_ = P), q++);
3322
+ }), _ && scrollIt(_, 1e3, "easeInQuad"), f.preventDefault();
3323
+ }
3324
+ } else
3325
+ try {
3326
+ let y = document.querySelector(d);
3327
+ y && (scrollIt(y, 1e3, "easeInQuad"), f.preventDefault());
3328
+ } catch {
3329
+ }
3330
+ });
3331
+ })), document.querySelectorAll(".section-inview").forEach(function(r) {
3332
+ r.classList.remove("section-inview");
3333
+ });
3334
+ let n = document.querySelectorAll(".is-animated,.is-scale-animated");
3335
+ n.forEach(function(r) {
3336
+ r.classList.contains("once") ? (r.removeAttribute("data-scroll", ""), r.setAttribute("data-scroll-once", "")) : (r.removeAttribute("data-scroll-once", ""), r.setAttribute("data-scroll", ""));
3337
+ }), n = document.querySelectorAll(".is-container > div"), n.forEach(function(r) {
3338
+ let a = r.querySelectorAll(".is-animated[data-scroll],.is-animated[data-scroll-once]"), f = 0;
3339
+ a.length > 1 && a.forEach(function(d) {
3340
+ d.className.indexOf("delay-") === -1 && (f > 0 && (d.style.transitionDelay = f + "s", d.style.animationDelay = f + "s"), f = f + 0.2);
3341
+ });
3342
+ }), this.skrollrSetup(), this.adjustBgPos();
3343
+ }
3344
+ updateOnResize() {
3345
+ function e(s) {
3346
+ var t;
3347
+ return function(n) {
3348
+ t && clearTimeout(t), t = setTimeout(s, 100, n);
3349
+ };
3350
+ }
3351
+ const i = document.querySelector(".is-wrapper");
3352
+ window.addEventListener("resize", e((s) => {
3353
+ document.body.classList.contains("data-editor") && (i.querySelector(".pin-wrap") && !window.noRender ? this.pageReRender() : window.skrollrr && window.skrollrr.refresh(), window.noRender = !1, this.adjustBgPos());
3354
+ })), i.classList.contains("is-edit") && (window.onbeforeunload = function(s) {
3355
+ localStorage.setItem("_lastscrollpos", document.documentElement.scrollTop), window.scrollTo(0, 0);
3356
+ }, setTimeout(() => {
3357
+ localStorage.getItem("_lastscrollpos") && window.scrollTo(0, localStorage.getItem("_lastscrollpos"));
3358
+ }, 300));
3359
+ }
3360
+ // Must be used after Skrollrr script loaded
3361
+ initeSkrollrr() {
3362
+ var e = document.querySelectorAll(".is-overlay-bg");
3363
+ e.forEach((s) => {
3364
+ s.style && s.style.filter && s.style.filter.indexOf("grayscale") !== -1 && (s.parentNode.style.filter = "grayscale(1)");
3365
+ });
3366
+ const i = new Ke({
3367
+ transition: "all 0.3s ease-out"
3368
+ });
3369
+ i.init(), window.skrollrr = i;
3370
+ }
3371
+ _scrollTo(e, i = 0) {
3372
+ const s = e.getBoundingClientRect().top + window.pageYOffset + i;
3373
+ window.scrollTo({ top: s, behavior: "smooth" });
3374
+ }
3375
+ scrollIt(e, i = 200, s = "linear", t) {
3376
+ _scrollTo(e);
3377
+ }
3378
+ skrollrSetup() {
3379
+ document.querySelectorAll(".pin-wrap").forEach((a) => {
3380
+ const f = a.firstElementChild;
3381
+ a.after(f), a.parentNode.removeChild(a);
3382
+ }), document.querySelectorAll(".is-section").forEach((a) => {
3383
+ a.hasAttribute("data-section-clone") && a.parentNode.removeChild(a), a.hasAttribute("data-section-original") && (a.style.display = "", a.removeAttribute("data-section-original"));
3384
+ });
3385
+ let s = window.innerWidth;
3386
+ s <= 760 && document.querySelectorAll(".section-wrap").forEach((f) => {
3387
+ f.outerHTML = f.innerHTML;
3388
+ });
3389
+ const t = window.self !== window.top;
3390
+ let n;
3391
+ t ? 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) {
3392
+ s <= 970 && a.querySelector(".is-box") && (a.querySelectorAll(".is-box").forEach((d) => {
3393
+ const y = a.cloneNode(!1);
3394
+ d.getAttributeNames().map((b) => {
3395
+ b.indexOf("data-") !== -1 && y.setAttribute(b, d.getAttribute(b));
3396
+ }), y.classList.add("is-box"), d.classList.forEach((b) => {
3397
+ (b.indexOf("is-box-") !== -1 || b.indexOf("is-content-") !== -1 || b.indexOf("box-autofit") !== -1 || b.indexOf("is-light-text") !== -1 || b.indexOf("is-dark-text") !== -1 || b.indexOf("is-align-") !== -1 || b.indexOf("type-") !== -1 || b.indexOf("block-click") !== -1 || b.indexOf("hover-zoom") !== -1) && y.classList.add(b);
3398
+ }), y.setAttribute("data-section-clone", ""), y.innerHTML = d.innerHTML, a.parentNode.insertBefore(y, a);
3399
+ }), a.setAttribute("data-section-original", ""), a.style.display = "none");
3400
+ }), t ? n = document.querySelectorAll(".is-wrapper .section-pin") : n = document.querySelectorAll(".is-wrapper:not(.is-edit) .section-pin"), n.forEach(function(a) {
3401
+ if (a.parentNode.closest(".section-wrap") || s <= 970 && a.hasAttribute("data-section-original")) return;
3402
+ const f = document.createElement("div");
3403
+ f.classList.add("pin-wrap"), a.classList.contains("m-skrollrr-off") && f.classList.add("m-skrollrr-off"), a.classList.contains("pin-space-lg") && f.classList.add("pin-space-lg"), a.classList.contains("pin-space-xl") && f.classList.add("pin-space-xl"), a.classList.contains("xs-hidden") && f.classList.add("xs-hidden"), a.classList.contains("sm-hidden") && f.classList.add("sm-hidden"), a.classList.contains("desktop-hidden") && f.classList.add("desktop-hidden"), a.after(f), f.appendChild(a);
3404
+ });
3405
+ const r = (a) => {
3406
+ document.querySelectorAll(".is-section").forEach((d) => {
3407
+ const y = d.getBoundingClientRect().top;
3408
+ let b, _;
3409
+ d.parentNode.classList.contains("pin-wrap") ? (b = d.parentNode.nextElementSibling, _ = d.parentNode.previousElementSibling) : (b = d.nextElementSibling, _ = d.previousElementSibling), b && b.classList.contains("pin-wrap") && (b = b.querySelector(".is-section")), _ && _.classList.contains("pin-wrap") && (_ = _.querySelector(".is-section")), y <= 0 && ((d.classList.contains("no-spacing") || d.classList.contains("pin-overlap")) && d.classList.add("section-inview"), document.querySelectorAll(".is-section").forEach((P) => {
3410
+ P !== d && P.classList.remove("section-inview");
3411
+ }));
3412
+ });
3413
+ };
3414
+ setTimeout(() => {
3415
+ (!document.querySelector(".is-wrapper").classList.contains("is-edit") || t) && !window.funcScroll && (window.addEventListener("scroll", r), window.funcScroll = !0);
3416
+ }, 300);
3417
+ }
3418
+ adjustBgPos() {
3419
+ const e = (n) => {
3420
+ const r = document.createElement("div");
3421
+ r.style.backgroundPositionX = n.style.backgroundPositionX, r.style.backgroundPositionY = n.style.backgroundPositionY, r.style.backgroundSize = n.style.backgroundSize, n.hasAttribute("data-bg-ori") || n.setAttribute("data-bg-ori", r.style.cssText);
3422
+ }, i = (n) => {
3423
+ if (n.hasAttribute("data-bg-ori")) {
3424
+ const r = document.createElement("div");
3425
+ r.style.cssText = n.getAttribute("data-bg-ori"), n.style.backgroundPositionX = r.style.backgroundPositionX, n.style.backgroundPositionY = r.style.backgroundPositionY, n.style.backgroundSize = r.style.backgroundSize, n.removeAttribute("data-bg-ori");
3426
+ }
3427
+ };
3428
+ let s = window.innerWidth;
3429
+ document.querySelectorAll("[data-bg-xs],[data-bg-sm],[data-bg-md],[data-bg-lg]").forEach((n) => {
3430
+ e(n), s <= 760 && (n.hasAttribute("data-bg-xs") ? n.style.cssText = n.style.cssText + ";" + n.getAttribute("data-bg-xs") : i(n)), s > 760 && s <= 970 && (n.hasAttribute("data-bg-sm") ? n.style.cssText = n.style.cssText + ";" + n.getAttribute("data-bg-sm") : i(n)), s > 970 && s <= 1280 && (n.hasAttribute("data-bg-md") ? n.style.cssText = n.style.cssText + ";" + n.getAttribute("data-bg-md") : i(n)), s > 1280 && (n.hasAttribute("data-bg-lg") ? n.style.cssText = n.style.cssText + ";" + n.getAttribute("data-bg-lg") : i(n));
3431
+ });
3432
+ }
3433
+ inViewSetup() {
3434
+ document.querySelectorAll(".is-overlay-content").forEach((t) => {
3435
+ t.querySelector("video.is-video-bg") && t.setAttribute("data-scroll", "");
3436
+ }), document.querySelectorAll(".is-container video").forEach((t) => {
3437
+ t.parentNode.setAttribute("data-scroll", "");
3438
+ });
3439
+ const s = new ei({
3440
+ trigger: {
3441
+ once: !0,
3442
+ offset: {
3443
+ element: {
3444
+ x: 0,
3445
+ y: (t, n, r) => 0.1
3446
+ },
3447
+ viewport: {
3448
+ x: 0,
3449
+ y: (t, n, r) => t.visible ? 0 : 0.1
3450
+ }
3451
+ },
3452
+ toggle: {
3453
+ class: {
3454
+ in: "is-inview",
3455
+ out: [""]
3456
+ },
3457
+ callback: {
3458
+ in: (t) => {
3459
+ t.element.querySelectorAll("video").forEach((r) => {
3460
+ if (r.innerHTML.trim() === "") return;
3461
+ let a = r.parentNode.querySelector(".video-bg-play");
3462
+ r.autoplay ? a ? a.innerHTML.indexOf("play") === -1 && r.play() : r.play() : a && a.innerHTML.indexOf("play") === -1 && r.play();
3463
+ });
3464
+ },
3465
+ out: (t) => {
3466
+ t.element.querySelectorAll("video").forEach((r) => {
3467
+ !r.paused && !r.closest("[data-html]") && r.pause();
3468
+ });
3469
+ }
3470
+ }
3471
+ }
3472
+ }
3473
+ });
3474
+ s.add("[data-scroll-once]"), s.add("[data-scroll]", { once: !1 }), window.trigger = s;
3475
+ }
3476
+ contentBoxOnRenderUpdate() {
3477
+ try {
3478
+ if (window.contentbox || parent.contentbox) {
3479
+ let e;
3480
+ window.contentbox ? e = window.contentbox.onRender : parent.contentbox && (e = parent.contentbox.onRender);
3481
+ const i = () => {
3482
+ e.call(this);
3483
+ try {
3484
+ window.trigger && window.trigger.kill();
3485
+ } catch {
3486
+ }
3487
+ let s = document.querySelectorAll(".is-animated,.is-scale-animated");
3488
+ s.forEach(function(t) {
3489
+ t.classList.contains("once") ? (t.removeAttribute("data-scroll", ""), t.setAttribute("data-scroll-once", "")) : (t.removeAttribute("data-scroll-once", ""), t.setAttribute("data-scroll", ""));
3490
+ }), s = document.querySelectorAll(".is-container > div"), s.forEach(function(t) {
3491
+ let n = t.querySelectorAll(".is-animated[data-scroll],.is-animated[data-scroll-once]"), r = 0;
3492
+ n.length > 1 && n.forEach(function(a) {
3493
+ a.className.indexOf("delay-") === -1 && (r > 0 && (a.style.transitionDelay = r + "s", a.style.animationDelay = r + "s"), r = r + 0.2);
3494
+ });
3495
+ }), setTimeout(() => {
3496
+ this.inViewSetup();
3497
+ }, 100);
3498
+ };
3499
+ window.contentbox ? window.contentbox.onRender = i : parent.contentbox && (parent.contentbox.onRender = i);
3500
+ }
3501
+ } catch {
3502
+ }
3503
+ }
3504
+ // Lightbox
3505
+ functionLightboxInit() {
3506
+ const e = {
3507
+ touchNavigation: !0,
3508
+ selector: ".glightbox",
3509
+ // do not use .is-lightbox if used for programmatically open
3510
+ loop: !0,
3511
+ autoplayVideos: !0,
3512
+ zoomable: !0,
3513
+ slideEffect: "slide",
3514
+ descPosition: "bottom",
3515
+ skin: this.settings.skin
3516
+ };
3517
+ this.refreshLightbox(e), document.querySelectorAll(".is-lightbox,.block-click").forEach((s) => {
3518
+ const t = (n) => {
3519
+ let r = s.getAttribute("href") || s.getAttribute("data-modal-url");
3520
+ this.openLightbox(r, s, e), n.preventDefault(), n.stopImmediatePropagation();
3521
+ };
3522
+ s.addEventListener("click", t), s._lightboxHandler = t;
3523
+ });
3524
+ }
3525
+ refreshLightbox(e) {
3526
+ this.glightbox && this.glightbox.destroy(), this.glightbox = new Xe(e), window.GLightbox = Xe.default;
3527
+ }
3528
+ openLightbox(e, i, s) {
3529
+ let t = [], n = 0;
3530
+ if (i) {
3531
+ const a = i.closest("[data-gallery]");
3532
+ let f = [];
3533
+ a ? f = a.querySelectorAll(".is-lightbox") : document.querySelectorAll(".is-lightbox,.block-click").forEach((y) => {
3534
+ y.closest("[data-gallery]") || f.push(y);
3535
+ }), f.forEach((d, y) => {
3536
+ let b = d.getAttribute("href");
3537
+ b || (b = d.getAttribute("data-modal-url")), t.push({
3538
+ href: b
3539
+ }), e === b && (n = y);
3540
+ });
3541
+ }
3542
+ const r = document.activeElement;
3543
+ r?.blur(), t.length > 0 ? (this.glightbox.setElements(t), this.glightbox.openAt(n)) : (this.glightbox.setElements([
3544
+ {
3545
+ href: e
3546
+ }
3547
+ ]), this.glightbox.open()), this.glightbox.on("close", () => {
3548
+ this.refreshLightbox(s), r?.focus();
3549
+ });
3550
+ }
3551
+ // box-canvas
3552
+ blockInit() {
3553
+ const e = {
3554
+ start: () => {
3555
+ document.querySelectorAll(".is-block").forEach((t) => {
3556
+ t.hasAttribute("data--t") || t.setAttribute("data--t", t.style.top), t.hasAttribute("data--l") || t.setAttribute("data--l", t.style.left), t.hasAttribute("data--b") || t.setAttribute("data--b", t.style.bottom), t.hasAttribute("data--r") || t.setAttribute("data--r", t.style.right), t.hasAttribute("data--w") || t.setAttribute("data--w", t.style.width), t.hasAttribute("data--h") || t.setAttribute("data--h", t.style.height), t.removeAttribute("data-prev"), t.removeAttribute("data-fluid"), t.removeAttribute("data-fluid-val"), t.classList.remove("fluid"), t.style.transition = "";
3557
+ });
3558
+ },
3559
+ apply: (t, n, r) => {
3560
+ if (n && t.getAttribute("data-prev") !== n + "") {
3561
+ if (r || (t.style.transition = "all 0.35s ease"), n !== 1e4) {
3562
+ if (t.setAttribute("data-breakpoint", n), t.hasAttribute("data--t-" + n)) {
3563
+ let a = t.getAttribute("data--t-" + n);
3564
+ t.style.top = a;
3565
+ }
3566
+ if (t.hasAttribute("data--l-" + n)) {
3567
+ let a = t.getAttribute("data--l-" + n);
3568
+ t.style.left = a;
3569
+ }
3570
+ if (t.hasAttribute("data--b-" + n)) {
3571
+ let a = t.getAttribute("data--b-" + n);
3572
+ t.style.bottom = a;
3573
+ }
3574
+ if (t.hasAttribute("data--r-" + n)) {
3575
+ let a = t.getAttribute("data--r-" + n);
3576
+ t.style.right = a;
3577
+ }
3578
+ if (t.hasAttribute("data--w-" + n)) {
3579
+ let a = t.getAttribute("data--w-" + n);
3580
+ t.style.width = a;
3581
+ }
3582
+ if (t.hasAttribute("data--h-" + n)) {
3583
+ let a = t.getAttribute("data--h-" + n);
3584
+ t.style.height = a;
3585
+ }
3586
+ if (t.hasAttribute("data--transform-" + n)) {
3587
+ let a = t.getAttribute("data--transform-" + n);
3588
+ t.style.transform = a, t.setAttribute("data--transform-val", n);
3589
+ }
3590
+ } else {
3591
+ if (t.removeAttribute("data-breakpoint"), t.hasAttribute("data--t")) {
3592
+ let a = t.getAttribute("data--t");
3593
+ t.style.top = a;
3594
+ }
3595
+ if (t.hasAttribute("data--l")) {
3596
+ let a = t.getAttribute("data--l");
3597
+ t.style.left = a;
3598
+ }
3599
+ if (t.hasAttribute("data--b")) {
3600
+ let a = t.getAttribute("data--b");
3601
+ t.style.bottom = a;
3602
+ }
3603
+ if (t.hasAttribute("data--r")) {
3604
+ let a = t.getAttribute("data--r");
3605
+ t.style.right = a;
3606
+ }
3607
+ if (t.hasAttribute("data--w")) {
3608
+ let a = t.getAttribute("data--w");
3609
+ t.style.width = a;
3610
+ }
3611
+ if (t.hasAttribute("data--h")) {
3612
+ let a = t.getAttribute("data--h");
3613
+ t.style.height = a;
3614
+ }
3615
+ if (t.hasAttribute("data--transform")) {
3616
+ let a = t.getAttribute("data--transform");
3617
+ t.style.transform = a, t.setAttribute("data--transform-val", "");
3618
+ }
3619
+ }
3620
+ t.setAttribute("data-prev", n), setTimeout(() => {
3621
+ r || (t.style.transition = "");
3622
+ }, 400);
3623
+ }
3624
+ },
3625
+ applyFluid: (t, n) => {
3626
+ t.classList.toggle("fluid", n === "yes"), t.setAttribute("data-fluid", n);
3627
+ },
3628
+ resize: (t) => {
3629
+ const n = window.innerWidth;
3630
+ document.querySelectorAll(".is-box").forEach((r) => {
3631
+ let a = [];
3632
+ const f = r.attributes;
3633
+ for (let d = 0; d < f.length; d++) {
3634
+ let b = f[d].name.match(/^data--h-(\d+)$/);
3635
+ if (b) {
3636
+ const _ = parseInt(b[1], 10);
3637
+ a.push(_);
3638
+ }
3639
+ }
3640
+ a = [...new Set(a)], a.sort((d, y) => y - d);
3641
+ for (let d = 0; d < a.length; d++) {
3642
+ const y = a[d];
3643
+ if (d === 0) {
3644
+ if (n > y) {
3645
+ let b = r.getAttribute("data--h");
3646
+ b ? r.style.height = b : r.style.height = "";
3647
+ }
3648
+ } else {
3649
+ const b = a[d - 1];
3650
+ if (b >= n && n > y) {
3651
+ let _ = r.getAttribute("data--h-" + b);
3652
+ _ && (r.style.height = _);
3653
+ }
3654
+ }
3655
+ }
3656
+ if (a.length > 0 && a[a.length - 1] >= n) {
3657
+ const y = a[a.length - 1];
3658
+ let b = r.getAttribute("data--h-" + y);
3659
+ b && (r.style.height = b);
3660
+ }
3661
+ }), document.querySelectorAll(".is-block").forEach((r) => {
3662
+ if (!r.classList.contains("locked")) {
3663
+ r.offsetWidth + 0 > n && !r.classList.contains("fluid") && (r.setAttribute("data-fluid-val", r.offsetWidth), e.applyFluid(r, "yes"));
3664
+ let d = r.getAttribute("data-fluid-val");
3665
+ d && parseInt(d) + 0 <= n && r.classList.contains("fluid") && e.applyFluid(r, "no");
3666
+ }
3667
+ let a = [];
3668
+ const f = r.attributes;
3669
+ for (let d = 0; d < f.length; d++) {
3670
+ const y = f[d].name;
3671
+ let b = y.match(/^data--t-(\d+)$/);
3672
+ if (b) {
3673
+ const _ = parseInt(b[1], 10);
3674
+ a.push(_);
3675
+ }
3676
+ if (b = y.match(/^data--w-(\d+)$/), b) {
3677
+ const _ = parseInt(b[1], 10);
3678
+ a.push(_);
3679
+ }
3680
+ if (b = y.match(/^data--transform-(\d+)$/), b) {
3681
+ const _ = parseInt(b[1], 10);
3682
+ a.push(_);
3683
+ }
3684
+ }
3685
+ a = [...new Set(a)], a.sort((d, y) => y - d);
3686
+ for (let d = 0; d < a.length; d++) {
3687
+ const y = a[d];
3688
+ if (d === 0)
3689
+ n > y && e.apply(r, 1e4, t);
3690
+ else {
3691
+ const b = a[d - 1];
3692
+ b >= n && n > y && e.apply(r, b, t);
3693
+ }
3694
+ }
3695
+ if (a.length > 0) {
3696
+ const d = a[a.length - 1];
3697
+ d >= n && e.apply(r, d, t);
3698
+ }
3699
+ });
3700
+ },
3701
+ render: () => {
3702
+ e.start(), e.resize(!0);
3703
+ }
3704
+ }, s = ((t, n) => {
3705
+ let r;
3706
+ return (...a) => {
3707
+ clearTimeout(r), r = setTimeout(() => t(...a), n);
3708
+ };
3709
+ })(() => {
3710
+ e.resize();
3711
+ }, 0);
3712
+ window.addEventListener("resize", s), e.start(), e.resize(!0), this.Block = e;
3713
+ }
3714
+ pageReRender() {
3715
+ this.prepareContent(), this.contentBoxOnRenderUpdate(), window.skrollrr ? window.skrollrr.refresh() : this.initeSkrollrr(), this.functionLightboxInit(), this.inViewSetup(), this.Block.start(), this.Block.resize();
3716
+ }
3717
+ destroy() {
3718
+ this.glightbox && (this.glightbox.destroy(), this.glightbox = null), document.querySelectorAll(".is-lightbox,.block-click").forEach((i) => {
3719
+ i._lightboxHandler && (i.removeEventListener("click", i._lightboxHandler), delete i._lightboxHandler);
3720
+ });
3721
+ }
3722
+ }
3723
+ export {
3724
+ Ai as default
3725
+ };