@xwadex/fesd 0.0.12 → 0.0.14
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.
- package/dist/assets/fesd-bundle.js +725 -725
- package/dist/assets/fesd-bundle.js.map +1 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
var
|
1
|
+
var ll = (t, s, e) => {
|
2
2
|
if (!s.has(t))
|
3
3
|
throw TypeError("Cannot " + e);
|
4
4
|
};
|
@@ -7,7 +7,7 @@ var N = (t, s, e) => {
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
8
8
|
s instanceof WeakSet ? s.add(t) : s.set(t, e);
|
9
9
|
};
|
10
|
-
var O = (t, s, e) => (
|
10
|
+
var O = (t, s, e) => (ll(t, s, "access private method"), e);
|
11
11
|
const et = {
|
12
12
|
library: {},
|
13
13
|
// 紀錄使用的瀏覽器及裝置資訊
|
@@ -293,8 +293,8 @@ const et = {
|
|
293
293
|
speed: 600
|
294
294
|
}
|
295
295
|
}
|
296
|
-
},
|
297
|
-
|
296
|
+
}, cl = {};
|
297
|
+
cl.init = function() {
|
298
298
|
const t = navigator.userAgent;
|
299
299
|
fesdDB.library.browser = {
|
300
300
|
// Firefox 1.0+
|
@@ -355,10 +355,10 @@ const Mt = {
|
|
355
355
|
after: "afterend",
|
356
356
|
append: "beforeend",
|
357
357
|
prepend: "afterbegin"
|
358
|
-
}, xe = (t) => typeof t == "string" && t !== "", Qn = (t) => t instanceof HTMLElement, _e = (t) => t instanceof NodeList, mt = (t) => Dt(t) !== null, be = (t) => typeof t == "function", Dt = (t) => Qn(t) ? t : document.querySelector(t), le = (t) => _e(t) ? t : document.querySelectorAll(t), to = () => Math.random().toString(36).substr(2, 9),
|
358
|
+
}, xe = (t) => typeof t == "string" && t !== "", Qn = (t) => t instanceof HTMLElement, _e = (t) => t instanceof NodeList, mt = (t) => Dt(t) !== null, be = (t) => typeof t == "function", Dt = (t) => Qn(t) ? t : document.querySelector(t), le = (t) => _e(t) ? t : document.querySelectorAll(t), to = () => Math.random().toString(36).substr(2, 9), dl = (t) => {
|
359
359
|
const s = document.createElement("div");
|
360
360
|
return s.innerHTML = t, s.childNodes;
|
361
|
-
},
|
361
|
+
}, ul = (t) => {
|
362
362
|
try {
|
363
363
|
JSON.parse(t);
|
364
364
|
} catch {
|
@@ -400,7 +400,7 @@ const Mt = {
|
|
400
400
|
be(i) && i.apply(this, n);
|
401
401
|
}), this) : this;
|
402
402
|
}
|
403
|
-
},
|
403
|
+
}, fl = {
|
404
404
|
easeInOutCirc(t, s, e, n) {
|
405
405
|
return (t /= n / 2) < 1 ? -e / 2 * (Math.sqrt(1 - t * t) - 1) + s : e / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + s;
|
406
406
|
},
|
@@ -422,13 +422,13 @@ const Mt = {
|
|
422
422
|
$("beforeScroll");
|
423
423
|
const M = () => {
|
424
424
|
y += v;
|
425
|
-
const L =
|
425
|
+
const L = fl[u](y, g, b, a);
|
426
426
|
m[l] = L, y < a && requestAnimationFrame(M), y >= a && $("afterScroll");
|
427
427
|
};
|
428
428
|
requestAnimationFrame(M);
|
429
429
|
};
|
430
430
|
var ss, ki, Gs, eo, Rs, so;
|
431
|
-
class
|
431
|
+
class pl {
|
432
432
|
constructor(s, e = {}) {
|
433
433
|
N(this, ss);
|
434
434
|
N(this, Gs);
|
@@ -495,7 +495,7 @@ ss = new WeakSet(), ki = function() {
|
|
495
495
|
vi(i, n);
|
496
496
|
}, i.delay);
|
497
497
|
};
|
498
|
-
Object.assign(
|
498
|
+
Object.assign(pl.prototype, ce);
|
499
499
|
/*!
|
500
500
|
* OverlayScrollbars
|
501
501
|
* Version: 2.4.4
|
@@ -513,11 +513,11 @@ const _t = (t, s) => {
|
|
513
513
|
return (g || i) && (a = m, o = f), [a, g, o];
|
514
514
|
};
|
515
515
|
return [s ? (l) => u(s(a, o), l) : u, (l) => [a, !!l, o]];
|
516
|
-
}, ea = typeof window < "u", no = ea && Node.ELEMENT_NODE, { toString:
|
516
|
+
}, ea = typeof window < "u", no = ea && Node.ELEMENT_NODE, { toString: hl, hasOwnProperty: bi } = Object.prototype, ml = /^\[object (.+)\]$/, de = (t) => t === void 0, ti = (t) => t === null, gl = (t) => de(t) || ti(t) ? `${t}` : hl.call(t).replace(ml, "$1").toLowerCase(), Bt = (t) => typeof t == "number", ms = (t) => typeof t == "string", io = (t) => typeof t == "boolean", Gt = (t) => typeof t == "function", Pt = (t) => Array.isArray(t), Ke = (t) => typeof t == "object" && !Pt(t) && !ti(t), ei = (t) => {
|
517
517
|
const s = !!t && t.length, e = Bt(s) && s > -1 && s % 1 == 0;
|
518
518
|
return Pt(t) || !Gt(t) && e ? s > 0 && Ke(t) ? s - 1 in t : !0 : !1;
|
519
519
|
}, As = (t) => {
|
520
|
-
if (!t || !Ke(t) ||
|
520
|
+
if (!t || !Ke(t) || gl(t) !== "object")
|
521
521
|
return !1;
|
522
522
|
let s;
|
523
523
|
const e = "constructor", n = t[e], i = n && n.prototype, a = bi.call(t, e), o = i && bi.call(i, "isPrototypeOf");
|
@@ -585,10 +585,10 @@ const ni = (t, s) => t.indexOf(s) >= 0, ie = (t, s) => t.concat(s), at = (t, s,
|
|
585
585
|
const a = He(i).join(" ").trim();
|
586
586
|
bt(t, s, a);
|
587
587
|
}
|
588
|
-
},
|
588
|
+
}, vl = (t, s, e) => oo(t, s).has(e), Pi = ea && Element.prototype, ro = (t, s) => {
|
589
589
|
const e = [], n = s ? si(s) && s : document;
|
590
590
|
return n ? at(e, n.querySelectorAll(t)) : e;
|
591
|
-
},
|
591
|
+
}, bl = (t, s) => {
|
592
592
|
const e = s ? si(s) && s : document;
|
593
593
|
return e ? e.querySelector(t) : null;
|
594
594
|
}, ks = (t, s) => si(t) ? (Pi.matches || Pi.msMatchesSelector).call(t, s) : !1, Oi = (t) => t ? He(t.childNodes) : [], Ft = (t) => t && t.parentElement, Ae = (t, s) => {
|
@@ -602,8 +602,8 @@ const ni = (t, s) => t.indexOf(s) >= 0, ie = (t, s) => t.concat(s), at = (t, s,
|
|
602
602
|
t = Ft(t);
|
603
603
|
} while (t);
|
604
604
|
}
|
605
|
-
},
|
606
|
-
const n = Ae(t, s), i = t &&
|
605
|
+
}, yl = (t, s, e) => {
|
606
|
+
const n = Ae(t, s), i = t && bl(e, n), a = Ae(i, s) === n;
|
607
607
|
return n && i ? n === t || i === t || a && Ae(Ae(t, e), s) !== n : !1;
|
608
608
|
}, kt = () => {
|
609
609
|
}, Vt = (t) => {
|
@@ -621,25 +621,25 @@ const ni = (t, s) => t.indexOf(s) >= 0, ie = (t, s) => t.concat(s), at = (t, s,
|
|
621
621
|
})) : i = e, s && (n ? n !== s && (n = n.nextSibling) : n = t.firstChild), t.insertBefore(i, n || null), () => Vt(e);
|
622
622
|
}
|
623
623
|
return kt;
|
624
|
-
}, At = (t, s) => na(t, null, s),
|
624
|
+
}, At = (t, s) => na(t, null, s), Tl = (t, s) => na(Ft(t), t, s), Ta = (t, s) => na(Ft(t), t && t.nextSibling, s), Te = (t) => {
|
625
625
|
const s = document.createElement("div");
|
626
626
|
return bt(s, "class", t), s;
|
627
627
|
}, lo = (t) => {
|
628
628
|
const s = Te();
|
629
629
|
return s.innerHTML = t.trim(), ot(Oi(s), (e) => Vt(e));
|
630
|
-
}, Tt = ea ? window : {}, Ue = Math.max,
|
630
|
+
}, Tt = ea ? window : {}, Ue = Math.max, El = Math.min, Qe = Math.round, co = Tt.cancelAnimationFrame, uo = Tt.requestAnimationFrame, Ps = Tt.setTimeout, Ii = Tt.clearTimeout, zi = (t) => t.charAt(0).toUpperCase() + t.slice(1), Sl = () => Te().style, xl = ["-webkit-", "-moz-", "-o-", "-ms-"], $l = ["WebKit", "Moz", "O", "MS", "webkit", "moz", "o", "ms"], yi = {}, Ti = {}, Cl = (t) => {
|
631
631
|
let s = Ti[t];
|
632
632
|
if (ii(Ti, t))
|
633
633
|
return s;
|
634
|
-
const e = zi(t), n =
|
635
|
-
return ot(
|
634
|
+
const e = zi(t), n = Sl();
|
635
|
+
return ot(xl, (i) => {
|
636
636
|
const a = i.replace(/-/g, "");
|
637
637
|
return !(s = [t, i + t, a + e, zi(a) + e].find((u) => n[u] !== void 0));
|
638
638
|
}), Ti[t] = s || "";
|
639
639
|
}, ai = (t) => {
|
640
640
|
let s = yi[t] || Tt[t];
|
641
|
-
return ii(yi, t) || (ot(
|
642
|
-
},
|
641
|
+
return ii(yi, t) || (ot($l, (e) => (s = s || Tt[e + zi(t)], !s)), yi[t] = s), s;
|
642
|
+
}, wl = ai("MutationObserver"), Ea = ai("IntersectionObserver"), Os = ai("ResizeObserver"), _i = ai("ScrollTimeline"), J = (t, ...s) => t.bind(0, ...s), me = (t) => {
|
643
643
|
let s;
|
644
644
|
const e = t ? Ps : uo, n = t ? Ii : co;
|
645
645
|
return [(i) => {
|
@@ -662,27 +662,27 @@ const ni = (t, s) => t.indexOf(s) >= 0, ie = (t, s) => t.concat(s), at = (t, s,
|
|
662
662
|
d(g);
|
663
663
|
};
|
664
664
|
return f.m = c, f;
|
665
|
-
},
|
665
|
+
}, Ml = /[^\x20\t\r\n\f]+/g, po = (t, s, e) => {
|
666
666
|
const n = t && t.classList;
|
667
667
|
let i, a = 0, o = !1;
|
668
668
|
if (n && s && ms(s)) {
|
669
|
-
const u = s.match(
|
669
|
+
const u = s.match(Ml) || [];
|
670
670
|
for (o = u.length > 0; i = u[a++]; )
|
671
671
|
o = !!e(n, i) && o;
|
672
672
|
}
|
673
673
|
return o;
|
674
674
|
}, ia = (t, s) => {
|
675
675
|
po(t, s, (e, n) => e.remove(n));
|
676
|
-
}, oe = (t, s) => (po(t, s, (e, n) => e.add(n)), J(ia, t, s)),
|
676
|
+
}, oe = (t, s) => (po(t, s, (e, n) => e.add(n)), J(ia, t, s)), Ll = {
|
677
677
|
opacity: 1,
|
678
678
|
zIndex: 1
|
679
679
|
}, xs = (t, s) => {
|
680
680
|
const e = t || "", n = s ? parseFloat(e) : parseInt(e, 10);
|
681
681
|
return n === n ? n : 0;
|
682
|
-
},
|
682
|
+
}, Al = (t, s) => !Ll[t] && Bt(s) ? `${s}px` : s, Sa = (t, s, e) => String((s != null ? s[e] || s.getPropertyValue(e) : t.style[e]) || ""), Dl = (t, s, e) => {
|
683
683
|
try {
|
684
684
|
const { style: n } = t;
|
685
|
-
de(n[s]) ? n.setProperty(s, e) : n[s] =
|
685
|
+
de(n[s]) ? n.setProperty(s, e) : n[s] = Al(s, e);
|
686
686
|
} catch {
|
687
687
|
}
|
688
688
|
};
|
@@ -696,7 +696,7 @@ function vt(t, s) {
|
|
696
696
|
}
|
697
697
|
return i;
|
698
698
|
}
|
699
|
-
t && ot(s, (i, a) =>
|
699
|
+
t && ot(s, (i, a) => Dl(t, a, s[a]));
|
700
700
|
}
|
701
701
|
const ts = (t) => vt(t, "direction") === "rtl", xa = (t, s, e) => {
|
702
702
|
const n = s ? `${s}-` : "", i = e ? `-${e}` : "", a = `${n}top${i}`, o = `${n}right${i}`, u = `${n}bottom${i}`, r = `${n}left${i}`, d = vt(t, [a, o, u, r]);
|
@@ -706,13 +706,13 @@ const ts = (t) => vt(t, "direction") === "rtl", xa = (t, s, e) => {
|
|
706
706
|
b: xs(d[u], !0),
|
707
707
|
l: xs(d[r], !0)
|
708
708
|
};
|
709
|
-
}, Me = (t, s) => `translate${Ke(t) ? `(${t.x},${t.y})` : `${s ? "X" : "Y"}(${t})`}`, ho = "paddingTop", aa = "paddingRight", oa = "paddingLeft", Is = "paddingBottom", zs = "marginLeft", _s = "marginRight", Ze = "marginBottom", We = "overflowX", je = "overflowY", Zt = "width", Jt = "height", Ie = "hidden",
|
709
|
+
}, Me = (t, s) => `translate${Ke(t) ? `(${t.x},${t.y})` : `${s ? "X" : "Y"}(${t})`}`, ho = "paddingTop", aa = "paddingRight", oa = "paddingLeft", Is = "paddingBottom", zs = "marginLeft", _s = "marginRight", Ze = "marginBottom", We = "overflowX", je = "overflowY", Zt = "width", Jt = "height", Ie = "hidden", kl = {
|
710
710
|
w: 0,
|
711
711
|
h: 0
|
712
712
|
}, oi = (t, s) => s ? {
|
713
713
|
w: s[`${t}Width`],
|
714
714
|
h: s[`${t}Height`]
|
715
|
-
} :
|
715
|
+
} : kl, Pl = (t) => oi("inner", t || Tt), Je = J(oi, "offset"), Cs = J(oi, "client"), Hs = J(oi, "scroll"), Ns = (t) => {
|
716
716
|
const s = parseFloat(vt(t, Zt)) || 0, e = parseFloat(vt(t, Jt)) || 0;
|
717
717
|
return {
|
718
718
|
w: s - Qe(s),
|
@@ -730,9 +730,9 @@ const ts = (t) => vt(t, "direction") === "rtl", xa = (t, s, e) => {
|
|
730
730
|
}), i;
|
731
731
|
}
|
732
732
|
return !1;
|
733
|
-
}, go = (t, s) => ri(t, s, ["w", "h"]), vo = (t, s) => ri(t, s, ["x", "y"]),
|
733
|
+
}, go = (t, s) => ri(t, s, ["w", "h"]), vo = (t, s) => ri(t, s, ["x", "y"]), Ol = (t, s) => ri(t, s, ["t", "r", "b", "l"]), $a = (t, s, e) => ri(t, s, [Zt, Jt], e && ((n) => Qe(n)));
|
734
734
|
let $s;
|
735
|
-
const Ca = "passive",
|
735
|
+
const Ca = "passive", Il = () => {
|
736
736
|
if (de($s)) {
|
737
737
|
$s = !1;
|
738
738
|
try {
|
@@ -751,7 +751,7 @@ const Ca = "passive", Ol = () => {
|
|
751
751
|
});
|
752
752
|
}, ut = (t, s, e, n) => {
|
753
753
|
var i;
|
754
|
-
const a =
|
754
|
+
const a = Il(), o = (i = a && n && n.S) != null ? i : a, u = n && n.$ || !1, r = n && n.O || !1, d = a ? {
|
755
755
|
passive: o,
|
756
756
|
capture: u
|
757
757
|
} : u;
|
@@ -761,7 +761,7 @@ const Ca = "passive", Ol = () => {
|
|
761
761
|
} : e;
|
762
762
|
return t.addEventListener(l, c, d), J(wa, t, l, c, u);
|
763
763
|
}));
|
764
|
-
}, yo = (t) => t.stopPropagation(), Ma = (t) => t.preventDefault(),
|
764
|
+
}, yo = (t) => t.stopPropagation(), Ma = (t) => t.preventDefault(), zl = {
|
765
765
|
x: 0,
|
766
766
|
y: 0
|
767
767
|
}, Ei = (t) => {
|
@@ -769,8 +769,8 @@ const Ca = "passive", Ol = () => {
|
|
769
769
|
return s ? {
|
770
770
|
x: s.left + Tt.pageYOffset,
|
771
771
|
y: s.top + Tt.pageXOffset
|
772
|
-
} :
|
773
|
-
}, To = (t, s, e) => e ? e.n ? -t : e.i ? s - t : t : t,
|
772
|
+
} : zl;
|
773
|
+
}, To = (t, s, e) => e ? e.n ? -t : e.i ? s - t : t : t, _l = (t, s) => [s && s.i ? t : 0, To(t, t, s)], Ee = (t, s) => {
|
774
774
|
const { x: e, y: n } = Bt(s) ? {
|
775
775
|
x: s,
|
776
776
|
y: s
|
@@ -815,7 +815,7 @@ const Ca = "passive", Ol = () => {
|
|
815
815
|
if (Gt(e))
|
816
816
|
throw 0;
|
817
817
|
return e;
|
818
|
-
}), Da = (t, s) => t ? `${s}`.split(".").reduce((e, n) => e && ii(e, n) ? e[n] : void 0, t) : void 0,
|
818
|
+
}), Da = (t, s) => t ? `${s}`.split(".").reduce((e, n) => e && ii(e, n) ? e[n] : void 0, t) : void 0, Hl = {
|
819
819
|
paddingAbsolute: !1,
|
820
820
|
showNativeOverlaidScrollbars: !1,
|
821
821
|
update: {
|
@@ -854,7 +854,7 @@ const Ca = "passive", Ol = () => {
|
|
854
854
|
u && (e[i] = o);
|
855
855
|
}
|
856
856
|
}), e;
|
857
|
-
},
|
857
|
+
}, Nl = (t, s, e) => (n) => [Da(t, n), e || Da(s, n) !== void 0], gs = "data-overlayscrollbars", So = "os-environment", xo = `${So}-flexbox-glue`, ql = `${xo}-max`, $o = "os-scrollbar-hidden", Si = `${gs}-initialize`, Ht = gs, Co = `${Ht}-overflow-x`, wo = `${Ht}-overflow-y`, De = "overflowVisible", Bl = "scrollbarHidden", ka = "scrollbarPressed", qs = "updating", se = `${gs}-viewport`, xi = "arrange", Mo = "scrollbarHidden", ke = De, qi = `${gs}-padding`, Gl = ke, Pa = `${gs}-content`, ra = "os-size-observer", Rl = `${ra}-appear`, Wl = `${ra}-listener`, jl = "os-trinsic-observer", Xl = "os-no-css-vars", Yl = "os-theme-none", St = "os-scrollbar", Fl = `${St}-rtl`, Vl = `${St}-horizontal`, Ul = `${St}-vertical`, Lo = `${St}-track`, la = `${St}-handle`, Zl = `${St}-visible`, Jl = `${St}-cornerless`, Oa = `${St}-transitionless`, Ia = `${St}-interaction`, za = `${St}-unusable`, Bi = `${St}-auto-hide`, _a = `${Bi}-hidden`, Ha = `${St}-wheel`, Kl = `${Lo}-interactive`, Ql = `${la}-interactive`, Ao = {}, Do = {}, tc = (t) => {
|
858
858
|
ot(t, (s) => ot(s, (e, n) => {
|
859
859
|
Ao[n] = s[n];
|
860
860
|
}));
|
@@ -864,7 +864,7 @@ const Ca = "passive", Ol = () => {
|
|
864
864
|
const l = e ? d(o, u, s) : d(s);
|
865
865
|
return (r || Do)[n] = l;
|
866
866
|
}
|
867
|
-
}), Ne = (t) => Do[t],
|
867
|
+
}), Ne = (t) => Do[t], ec = "__osOptionsValidationPlugin", sc = "__osSizeObserverPlugin", ca = "__osScrollbarsHidingPlugin", nc = "__osClickScrollPlugin";
|
868
868
|
let $i;
|
869
869
|
const Na = (t, s, e, n) => {
|
870
870
|
At(t, s);
|
@@ -873,15 +873,15 @@ const Na = (t, s, e, n) => {
|
|
873
873
|
x: a.h - i.h + o.h,
|
874
874
|
y: a.w - i.w + o.w
|
875
875
|
};
|
876
|
-
},
|
876
|
+
}, ic = (t) => {
|
877
877
|
let s = !1;
|
878
878
|
const e = oe(t, $o);
|
879
879
|
try {
|
880
|
-
s = vt(t,
|
880
|
+
s = vt(t, Cl("scrollbar-width")) === "none" || Tt.getComputedStyle(t, "::-webkit-scrollbar").getPropertyValue("display") === "none";
|
881
881
|
} catch {
|
882
882
|
}
|
883
883
|
return e(), s;
|
884
|
-
},
|
884
|
+
}, ac = (t, s) => {
|
885
885
|
vt(t, {
|
886
886
|
[We]: Ie,
|
887
887
|
[je]: Ie,
|
@@ -898,14 +898,14 @@ const Na = (t, s, e, n) => {
|
|
898
898
|
i: e.x === n.x,
|
899
899
|
n: n.x !== i.x
|
900
900
|
};
|
901
|
-
},
|
902
|
-
const e = oe(t, xo), n = qt(t), i = qt(s), a = $a(i, n, !0), o = oe(t,
|
901
|
+
}, oc = (t, s) => {
|
902
|
+
const e = oe(t, xo), n = qt(t), i = qt(s), a = $a(i, n, !0), o = oe(t, ql), u = qt(t), r = qt(s), d = $a(r, u, !0);
|
903
903
|
return e(), o(), a && d;
|
904
|
-
},
|
904
|
+
}, rc = () => {
|
905
905
|
const { body: t } = document, e = lo(`<div class="${So}"><div></div></div>`)[0], n = e.firstChild, [i, , a] = Ni(), [o, u] = _t({
|
906
906
|
o: Na(t, e, n),
|
907
907
|
u: vo
|
908
|
-
}, J(Na, t, e, n, !0)), [r] = u(), d =
|
908
|
+
}, J(Na, t, e, n, !0)), [r] = u(), d = ic(e), l = {
|
909
909
|
x: r.x === 0,
|
910
910
|
y: r.y === 0
|
911
911
|
}, c = {
|
@@ -922,14 +922,14 @@ const Na = (t, s, e, n) => {
|
|
922
922
|
nativeScrollbarsOverlaid: !1,
|
923
923
|
body: null
|
924
924
|
}
|
925
|
-
}, f = st({},
|
925
|
+
}, f = st({}, Hl), m = J(st, {}, f), g = J(st, {}, c), p = {
|
926
926
|
L: r,
|
927
927
|
I: l,
|
928
928
|
H: d,
|
929
929
|
A: vt(e, "zIndex") === "-1",
|
930
930
|
P: !!_i,
|
931
|
-
V:
|
932
|
-
U:
|
931
|
+
V: ac(e, n),
|
932
|
+
U: oc(e, n),
|
933
933
|
B: J(i, "r"),
|
934
934
|
j: g,
|
935
935
|
N: (h) => st(c, h) && g(),
|
@@ -946,20 +946,20 @@ const Na = (t, s, e, n) => {
|
|
946
946
|
}
|
947
947
|
a("r", [h]);
|
948
948
|
}), p;
|
949
|
-
}, Et = () => ($i || ($i =
|
949
|
+
}, Et = () => ($i || ($i = rc()), $i), da = (t, s) => Gt(s) ? s.apply(0, t) : s, lc = (t, s, e, n) => {
|
950
950
|
const i = de(n) ? e : n;
|
951
951
|
return da(t, i) || s.apply(0, t);
|
952
952
|
}, Po = (t, s, e, n) => {
|
953
953
|
const i = de(n) ? e : n, a = da(t, i);
|
954
954
|
return !!a && (Ve(a) ? a : s.apply(0, t));
|
955
|
-
},
|
955
|
+
}, cc = (t, s) => {
|
956
956
|
const { nativeScrollbarsOverlaid: e, body: n } = s || {}, { I: i, H: a, j: o } = Et(), { nativeScrollbarsOverlaid: u, body: r } = o().cancel, d = e ?? u, l = de(n) ? r : n, c = (i.x || i.y) && d, f = t && (ti(l) ? !a : l);
|
957
957
|
return !!c || !!f;
|
958
|
-
}, ua = /* @__PURE__ */ new WeakMap(),
|
958
|
+
}, ua = /* @__PURE__ */ new WeakMap(), dc = (t, s) => {
|
959
959
|
ua.set(t, s);
|
960
|
-
},
|
960
|
+
}, uc = (t) => {
|
961
961
|
ua.delete(t);
|
962
|
-
}, Oo = (t) => ua.get(t),
|
962
|
+
}, Oo = (t) => ua.get(t), fc = (t, s, e) => {
|
963
963
|
let n = !1;
|
964
964
|
const i = e ? /* @__PURE__ */ new WeakMap() : !1, a = () => {
|
965
965
|
n = !0;
|
@@ -987,7 +987,7 @@ const Na = (t, s, e, n) => {
|
|
987
987
|
const { X: a, Y: o, J: u, K: r, Z: d, tt: l } = n || {}, c = fo(() => i && e(!0), {
|
988
988
|
v: 33,
|
989
989
|
p: 99
|
990
|
-
}), [f, m] =
|
990
|
+
}), [f, m] = fc(t, c, u), g = a || [], p = o || [], h = ie(g, p), b = (y, $) => {
|
991
991
|
if (!Ds($)) {
|
992
992
|
const M = d || kt, L = l || kt, w = [], D = [];
|
993
993
|
let k = !1, C = !1;
|
@@ -1005,7 +1005,7 @@ const Na = (t, s, e, n) => {
|
|
1005
1005
|
return !y && e.apply(0, E), E;
|
1006
1006
|
}
|
1007
1007
|
}
|
1008
|
-
}, v = new
|
1008
|
+
}, v = new wl(J(b, !1));
|
1009
1009
|
return [() => (v.observe(t, {
|
1010
1010
|
attributes: !0,
|
1011
1011
|
attributeOldValue: !0,
|
@@ -1020,12 +1020,12 @@ const Na = (t, s, e, n) => {
|
|
1020
1020
|
return c.m(), b(!0, v.takeRecords());
|
1021
1021
|
}];
|
1022
1022
|
}, Io = (t, s, e) => {
|
1023
|
-
const { nt: i, ot: a } = e || {}, o = Ne(
|
1023
|
+
const { nt: i, ot: a } = e || {}, o = Ne(sc), { V: u } = Et(), r = J(ts, t), [d] = _t({
|
1024
1024
|
o: !1,
|
1025
1025
|
_: !0
|
1026
1026
|
});
|
1027
1027
|
return () => {
|
1028
|
-
const l = [], f = lo(`<div class="${ra}"><div class="${
|
1028
|
+
const l = [], f = lo(`<div class="${ra}"><div class="${Wl}"></div></div>`)[0], m = f.firstChild, g = (p) => {
|
1029
1029
|
const h = p instanceof ResizeObserverEntry, b = !h && Pt(p);
|
1030
1030
|
let v = !1, y = !1, $ = !0;
|
1031
1031
|
if (h) {
|
@@ -1053,7 +1053,7 @@ const Na = (t, s, e, n) => {
|
|
1053
1053
|
});
|
1054
1054
|
} else if (o) {
|
1055
1055
|
const [p, h] = o(m, g, a);
|
1056
|
-
at(l, ie([oe(f,
|
1056
|
+
at(l, ie([oe(f, Rl), ut(f, "animationstart", p)], h));
|
1057
1057
|
} else
|
1058
1058
|
return kt;
|
1059
1059
|
if (i) {
|
@@ -1067,9 +1067,9 @@ const Na = (t, s, e, n) => {
|
|
1067
1067
|
}
|
1068
1068
|
return J(Ot, at(l, At(t, f)));
|
1069
1069
|
};
|
1070
|
-
},
|
1070
|
+
}, pc = (t, s) => {
|
1071
1071
|
let e;
|
1072
|
-
const n = (r) => r.h === 0 || r.isIntersecting || r.intersectionRatio > 0, i = Te(
|
1072
|
+
const n = (r) => r.h === 0 || r.isIntersecting || r.intersectionRatio > 0, i = Te(jl), [a] = _t({
|
1073
1073
|
o: !1
|
1074
1074
|
}), o = (r, d) => {
|
1075
1075
|
if (r) {
|
@@ -1094,7 +1094,7 @@ const Na = (t, s, e, n) => {
|
|
1094
1094
|
}
|
1095
1095
|
return J(Ot, at(r, At(t, i)));
|
1096
1096
|
}, () => e && u(!0, e.takeRecords())];
|
1097
|
-
},
|
1097
|
+
}, hc = (t, s) => {
|
1098
1098
|
let e, n, i, a, o;
|
1099
1099
|
const { H: u } = Et(), r = `[${Ht}]`, d = `[${se}]`, l = ["tabindex"], c = ["wrap", "cols", "rows"], f = ["id", "class", "style", "open"], m = {
|
1100
1100
|
ct: !1,
|
@@ -1153,7 +1153,7 @@ const Na = (t, s, e, n) => {
|
|
1153
1153
|
wt: B
|
1154
1154
|
};
|
1155
1155
|
return B && !j ? k(V) : v || C(W), V;
|
1156
|
-
}, [_, x] = h || !M ?
|
1156
|
+
}, [_, x] = h || !M ? pc(g, E) : [], z = !v && Io(g, T, {
|
1157
1157
|
ot: !0,
|
1158
1158
|
nt: !0
|
1159
1159
|
}), [A, G] = qa(g, !1, P, {
|
@@ -1188,7 +1188,7 @@ const Na = (t, s, e, n) => {
|
|
1188
1188
|
K: r,
|
1189
1189
|
tt: (it, ct) => {
|
1190
1190
|
const { target: pt, attributeName: xt } = it;
|
1191
|
-
return (!ct && xt && !v ?
|
1191
|
+
return (!ct && xt && !v ? yl(pt, r, d) : !1) || !!Ae(pt, `.${St}`) || !!U(it);
|
1192
1192
|
}
|
1193
1193
|
});
|
1194
1194
|
a = F(), i = tt;
|
@@ -1205,8 +1205,8 @@ const Na = (t, s, e, n) => {
|
|
1205
1205
|
}
|
1206
1206
|
return V;
|
1207
1207
|
}, m];
|
1208
|
-
}, Gi = (t, s, e) => Ue(t,
|
1209
|
-
const n = Qe(s), [i, a] =
|
1208
|
+
}, Gi = (t, s, e) => Ue(t, El(s, e)), mc = (t, s, e) => {
|
1209
|
+
const n = Qe(s), [i, a] = _l(n, e), o = (a - t) / a, u = t / i, r = t / a, d = e ? e.n ? o : e.i ? u : r : r;
|
1210
1210
|
return Gi(0, 1, d);
|
1211
1211
|
}, zo = (t, s, e, n) => {
|
1212
1212
|
if (n) {
|
@@ -1218,7 +1218,7 @@ const Na = (t, s, e, n) => {
|
|
1218
1218
|
}, Ba = (t, s, e, n) => {
|
1219
1219
|
const i = zo(t, s, n);
|
1220
1220
|
return 1 / i * (1 - i) * e;
|
1221
|
-
},
|
1221
|
+
}, gc = (t, s, e) => {
|
1222
1222
|
const { j: n, A: i } = Et(), { scrollbars: a } = n(), { slot: o } = a, { Ht: u, lt: r, it: d, zt: l, It: c, At: f, _t: m } = s, { scrollbars: g } = l ? {} : t, { slot: p } = g || {}, h = /* @__PURE__ */ new Map(), b = (q) => _i && new _i({
|
1223
1223
|
source: c,
|
1224
1224
|
axis: q
|
@@ -1250,7 +1250,7 @@ const Na = (t, s, e, n) => {
|
|
1250
1250
|
});
|
1251
1251
|
}, S = (q, R, X) => {
|
1252
1252
|
D(q, (Z) => {
|
1253
|
-
const { Tt: U, kt: F, Et: tt } = Z, { V: it } = Et(), ct = X ? "x" : "y", pt = X ? "Left" : "Top", { Ot: xt } = R, It = ts(tt), zt = Ba(U, F,
|
1253
|
+
const { Tt: U, kt: F, Et: tt } = Z, { V: it } = Et(), ct = X ? "x" : "y", pt = X ? "Left" : "Top", { Ot: xt } = R, It = ts(tt), zt = Ba(U, F, mc(c[`scroll${pt}`], xt[ct], X && It && it), X);
|
1254
1254
|
return [U, {
|
1255
1255
|
transform: Me(C(zt), X)
|
1256
1256
|
}];
|
@@ -1292,12 +1292,12 @@ const Na = (t, s, e, n) => {
|
|
1292
1292
|
L(R), M(R) && h.set(R, [x(R, v, q.x, !0), x(R, y, q.y)]);
|
1293
1293
|
});
|
1294
1294
|
}, K = (q) => {
|
1295
|
-
const R = q ?
|
1295
|
+
const R = q ? Vl : Ul, X = q ? A : G, Z = Ds(X) ? Oa : "", U = Te(`${St} ${R} ${Z}`), F = Te(Lo), tt = Te(la), it = {
|
1296
1296
|
Et: U,
|
1297
1297
|
kt: F,
|
1298
1298
|
Tt: tt
|
1299
1299
|
};
|
1300
|
-
return i || oe(U,
|
1300
|
+
return i || oe(U, Xl), at(X, it), at(z, [At(U, F), At(F, tt), J(Vt, U), L, e(it, Y, q)]), it;
|
1301
1301
|
}, Q = J(K, !0), rt = J(K, !1), nt = () => (At($, A[0].Et), At($, G[0].Et), Ps(() => {
|
1302
1302
|
Y(Oa);
|
1303
1303
|
}, 300), J(Ot, z));
|
@@ -1321,7 +1321,7 @@ const Na = (t, s, e, n) => {
|
|
1321
1321
|
Nt: J(D, G)
|
1322
1322
|
}
|
1323
1323
|
}, nt];
|
1324
|
-
},
|
1324
|
+
}, vc = (t, s, e) => {
|
1325
1325
|
const { lt: n, It: i, qt: a } = s, o = (u, r) => {
|
1326
1326
|
const { Tt: d, kt: l } = u, c = `scroll${r ? "Left" : "Top"}`, f = `client${r ? "X" : "Y"}`, m = r ? Zt : Jt, g = r ? "left" : "top", p = r ? "w" : "h", h = r ? "x" : "y", b = "pointerup pointerleave pointercancel lostpointercapture", v = (y, $) => (M) => {
|
1327
1327
|
const { Ot: L } = e, w = Je(l)[p] - Je(d)[p], k = $ * M / w * L[h];
|
@@ -1341,7 +1341,7 @@ const Na = (t, s, e, n) => {
|
|
1341
1341
|
if (T)
|
1342
1342
|
z(V);
|
1343
1343
|
else if (!$) {
|
1344
|
-
const Q = Ne(
|
1344
|
+
const Q = Ne(nc);
|
1345
1345
|
Q && at(K, Q(z, _, V, W, j));
|
1346
1346
|
}
|
1347
1347
|
M.setPointerCapture(y.pointerId);
|
@@ -1374,9 +1374,9 @@ const Na = (t, s, e, n) => {
|
|
1374
1374
|
$: !0
|
1375
1375
|
}), o(u, d), f]);
|
1376
1376
|
};
|
1377
|
-
},
|
1377
|
+
}, bc = (t, s, e, n, i, a) => {
|
1378
1378
|
let o, u, r, d, l, c = kt, f = 0;
|
1379
|
-
const [m, g] = me(), [p, h] = me(), [b, v] = me(100), [y, $] = me(100), [M, L] = me(100), [w, D] = me(() => f), [k, C] =
|
1379
|
+
const [m, g] = me(), [p, h] = me(), [b, v] = me(100), [y, $] = me(100), [M, L] = me(100), [w, D] = me(() => f), [k, C] = gc(t, i, vc(s, i, n)), { lt: E, Ft: T, At: S } = i, { Vt: P, Dt: _, Mt: x, Rt: z, Lt: A, Pt: G } = k, Y = (H) => {
|
1380
1380
|
P(Bi, H, !0), P(Bi, H, !1);
|
1381
1381
|
}, W = (H, K) => {
|
1382
1382
|
if (D(), H)
|
@@ -1407,20 +1407,20 @@ const Na = (t, s, e, n) => {
|
|
1407
1407
|
return [() => J(Ot, at(V, C())), ({ St: H, xt: K, Wt: Q, Xt: rt }) => {
|
1408
1408
|
const { Yt: nt, Jt: q, Kt: R } = rt || {}, { gt: X, ot: Z } = Q || {}, { rt: U } = e, { I: F } = Et(), { Ot: tt, Zt: it, Qt: ct } = n, [pt, xt] = H("showNativeOverlaidScrollbars"), [It, zt] = H("scrollbars.theme"), [ue, ht] = H("scrollbars.visibility"), [gt, dt] = H("scrollbars.autoHide"), [Kt, fe] = H("scrollbars.autoHideSuspend"), [Qt] = H("scrollbars.autoHideDelay"), [ys, Ts] = H("scrollbars.dragScroll"), [$e, Es] = H("scrollbars.clickScroll"), di = Z && !K, ui = ct.x || ct.y, fi = nt || q || X || K, pi = R || ht, Nt = pt && F.x && F.y, Be = (Ss, Ge) => {
|
1409
1409
|
const Re = ue === "visible" || ue === "auto" && Ss === "scroll";
|
1410
|
-
return P(
|
1410
|
+
return P(Zl, Re, Ge), Re;
|
1411
1411
|
};
|
1412
1412
|
if (f = Qt, di && (Kt && ui ? (Y(!1), c(), M(() => {
|
1413
1413
|
c = ut(T, "scroll", J(Y, !0), {
|
1414
1414
|
O: !0
|
1415
1415
|
});
|
1416
|
-
})) : Y(!0)), xt && P(
|
1416
|
+
})) : Y(!0)), xt && P(Yl, Nt), zt && (P(l), P(It, !0), l = It), fe && !Kt && Y(!0), dt && (o = gt === "move", u = gt === "leave", r = gt !== "never", W(!r, !0)), Ts && P(Ql, ys), Es && P(Kl, $e), pi) {
|
1417
1417
|
const Ss = Be(it.x, !0), Ge = Be(it.y, !1);
|
1418
|
-
P(
|
1418
|
+
P(Jl, !(Ss && Ge));
|
1419
1419
|
}
|
1420
|
-
fi && (_(n), x(n), z(n), G(), A(n), P(za, !tt.x, !0), P(za, !tt.y, !1), P(
|
1420
|
+
fi && (_(n), x(n), z(n), G(), A(n), P(za, !tt.x, !0), P(za, !tt.y, !1), P(Fl, U && !S));
|
1421
1421
|
}, {}, k];
|
1422
|
-
},
|
1423
|
-
const s = Et(), { j: e, H: n } = s, i = Ne(ca), a = i && i.C, { elements: o } = e(), { host: u, padding: r, viewport: d, content: l } = o, c = Ve(t), f = c ? {} : t, { elements: m } = f, { host: g, padding: p, viewport: h, content: b } = m || {}, v = c ? t : f.target, y = ks(v, "textarea"), $ = v.ownerDocument, M = $.documentElement, L = v === $.body, w = $.defaultView, D = J(
|
1422
|
+
}, yc = (t) => {
|
1423
|
+
const s = Et(), { j: e, H: n } = s, i = Ne(ca), a = i && i.C, { elements: o } = e(), { host: u, padding: r, viewport: d, content: l } = o, c = Ve(t), f = c ? {} : t, { elements: m } = f, { host: g, padding: p, viewport: h, content: b } = m || {}, v = c ? t : f.target, y = ks(v, "textarea"), $ = v.ownerDocument, M = $.documentElement, L = v === $.body, w = $.defaultView, D = J(lc, [v]), k = J(Po, [v]), C = J(da, [v]), E = J(Te, ""), T = J(D, E, d), S = J(k, E, l), P = T(h), _ = P === v, x = _ && L, z = !_ && S(b), A = !_ && Ve(P) && P === z, G = A && !!C(l), Y = G ? T() : P, W = G ? z : S(), j = x ? M : A ? Y : P, V = y ? D(E, u, g) : v, H = x ? j : V, K = A ? W : z, Q = $.activeElement, rt = !_ && w.top === w && Q === v, nt = {
|
1424
1424
|
Ht: v,
|
1425
1425
|
lt: H,
|
1426
1426
|
it: j,
|
@@ -1436,7 +1436,7 @@ const Na = (t, s, e, n) => {
|
|
1436
1436
|
zt: c,
|
1437
1437
|
_t: _,
|
1438
1438
|
en: A,
|
1439
|
-
dt: (ht, gt) =>
|
1439
|
+
dt: (ht, gt) => vl(j, _ ? Ht : se, _ ? gt : ht),
|
1440
1440
|
vt: (ht, gt, dt) => ye(j, _ ? Ht : se, _ ? gt : ht, dt)
|
1441
1441
|
}, q = Ut(nt).reduce((ht, gt) => {
|
1442
1442
|
const dt = nt[gt];
|
@@ -1455,7 +1455,7 @@ const Na = (t, s, e, n) => {
|
|
1455
1455
|
Ta(Z, X), Vt(Z);
|
1456
1456
|
})), At(It, xt), At(Z, U), At(U || Z, !_ && F), At(F, tt), at(ct, () => {
|
1457
1457
|
ht(), yt(U, qi), yt(tt, Pa), yt(F, Co), yt(F, wo), yt(F, se), R(tt) && gt(tt), R(F) && gt(F), R(U) && gt(U);
|
1458
|
-
}), n && !_ && (ye(F, se, Mo, !0), at(ct, J(yt, F, se))), it && (
|
1458
|
+
}), n && !_ && (ye(F, se, Mo, !0), at(ct, J(yt, F, se))), it && (Tl(F, it), at(ct, J(Vt, it))), rt) {
|
1459
1459
|
const dt = "tabindex", Kt = bt(F, dt);
|
1460
1460
|
bt(F, dt, "-1"), F.focus();
|
1461
1461
|
const fe = () => Kt ? bt(F, dt, Kt) : yt(F, dt), Qt = ut($, "pointerdown keydown", () => {
|
@@ -1466,14 +1466,14 @@ const Na = (t, s, e, n) => {
|
|
1466
1466
|
Q && Q.focus && Q.focus();
|
1467
1467
|
return xt = 0, zt;
|
1468
1468
|
}, zt];
|
1469
|
-
},
|
1469
|
+
}, Tc = ({ ut: t }) => ({ Wt: s, cn: e, xt: n }) => {
|
1470
1470
|
const { U: i } = Et(), { ht: a } = s || {}, { ct: o } = e;
|
1471
1471
|
(t || !i) && (a || n) && vt(t, {
|
1472
1472
|
[Jt]: o ? "" : "100%"
|
1473
1473
|
});
|
1474
|
-
},
|
1474
|
+
}, Ec = ({ lt: t, tn: s, it: e, _t: n }, i) => {
|
1475
1475
|
const [a, o] = _t({
|
1476
|
-
u:
|
1476
|
+
u: Ol,
|
1477
1477
|
o: xa()
|
1478
1478
|
}, J(xa, t, "padding", ""));
|
1479
1479
|
return ({ St: u, Wt: r, cn: d, xt: l }) => {
|
@@ -1506,7 +1506,7 @@ const Na = (t, s, e, n) => {
|
|
1506
1506
|
ln: L
|
1507
1507
|
};
|
1508
1508
|
};
|
1509
|
-
},
|
1509
|
+
}, Sc = ({ lt: t, tn: s, it: e, nn: n, _t: i, vt: a, At: o, sn: u }, r) => {
|
1510
1510
|
const d = J(Ue, 0), l = "visible", c = 42, f = {
|
1511
1511
|
u: go,
|
1512
1512
|
o: {
|
@@ -1573,19 +1573,19 @@ const Na = (t, s, e, n) => {
|
|
1573
1573
|
return ({ St: B, Wt: j, cn: V, xt: H }, { ln: K }) => {
|
1574
1574
|
const { et: Q, wt: rt, bt: nt, ht: q, gt: R, yt: X } = j || {}, { ct: Z, rt: U } = V, [F, tt] = B("showNativeOverlaidScrollbars"), [it, ct] = B("overflow"), pt = F && y.x && y.y, xt = !i && !b && (Q || nt || rt || tt || q), It = Q || K || nt || R || X || tt, zt = p(it.x), ue = p(it.y), ht = zt || ue;
|
1575
1575
|
let gt = D(H), dt = C(H), Kt = T(H), fe = P(H), Qt;
|
1576
|
-
if (tt && v && a(Mo,
|
1576
|
+
if (tt && v && a(Mo, Bl, !pt), xt && (Qt = z(pt), x(Qt, Z)), It) {
|
1577
1577
|
ht && a(ke, De, !1);
|
1578
|
-
const [pe, Ce] = W(pt, U, Qt), [he,
|
1578
|
+
const [pe, Ce] = W(pt, U, Qt), [he, al] = gt = w(H), [we, ol] = dt = k(H), hi = Cs(e);
|
1579
1579
|
let mi = we, gi = hi;
|
1580
|
-
pe(), (
|
1581
|
-
const ga =
|
1580
|
+
pe(), (ol || al || tt) && Ce && !pt && Y(Ce, we, he, U) && (gi = Cs(e), mi = Hs(e));
|
1581
|
+
const ga = Pl(u), rl = {
|
1582
1582
|
w: d(Ue(we.w, mi.w) + he.w),
|
1583
1583
|
h: d(Ue(we.h, mi.h) + he.h)
|
1584
1584
|
}, va = {
|
1585
1585
|
w: d((L ? ga.w : gi.w + d(hi.w - we.w)) + he.w),
|
1586
1586
|
h: d((L ? ga.h : gi.h + d(hi.h - we.h)) + he.h)
|
1587
1587
|
};
|
1588
|
-
fe = S(va), Kt = E(g(
|
1588
|
+
fe = S(va), Kt = E(g(rl, va), H);
|
1589
1589
|
}
|
1590
1590
|
const [ys, Ts] = fe, [$e, Es] = Kt, [di, ui] = dt, [fi, pi] = gt, Nt = {
|
1591
1591
|
x: $e.w > 0,
|
@@ -1602,7 +1602,7 @@ const Na = (t, s, e, n) => {
|
|
1602
1602
|
}, Ce = A(pt, Nt, it, pe), he = Y(Ce, di, fi, U);
|
1603
1603
|
i || G(Ce, U, he, pe), xt && x(Ce, Z), i ? (bt(t, Co, pe[We]), bt(t, wo, pe[je])) : vt(e, pe);
|
1604
1604
|
}
|
1605
|
-
ye(t, Ht, De, Be), ye(s, qi,
|
1605
|
+
ye(t, Ht, De, Be), ye(s, qi, Gl, Be), i || ye(e, se, ke, ht);
|
1606
1606
|
const [Ge, Re] = _(z(pt).Zt);
|
1607
1607
|
return st(r, {
|
1608
1608
|
Zt: Ge,
|
@@ -1621,8 +1621,8 @@ const Na = (t, s, e, n) => {
|
|
1621
1621
|
Jt: Es
|
1622
1622
|
};
|
1623
1623
|
};
|
1624
|
-
},
|
1625
|
-
const [s, e, n] =
|
1624
|
+
}, xc = (t) => {
|
1625
|
+
const [s, e, n] = yc(t), i = {
|
1626
1626
|
tn: {
|
1627
1627
|
t: 0,
|
1628
1628
|
r: 0,
|
@@ -1655,19 +1655,19 @@ const Na = (t, s, e, n) => {
|
|
1655
1655
|
x: !1,
|
1656
1656
|
y: !1
|
1657
1657
|
}
|
1658
|
-
}, { Ht: a, it: o, vt: u, _t: r } = s, { H: d, I: l, U: c } = Et(), f = !d && (l.x || l.y), m = [
|
1658
|
+
}, { Ht: a, it: o, vt: u, _t: r } = s, { H: d, I: l, U: c } = Et(), f = !d && (l.x || l.y), m = [Tc(s), Ec(s, i), Sc(s, i)];
|
1659
1659
|
return [e, (g) => {
|
1660
1660
|
const p = {}, b = (f || !c) && li(o);
|
1661
1661
|
return u("", qs, !0), ot(m, (v) => {
|
1662
1662
|
st(p, v(g, p) || {});
|
1663
1663
|
}), u("", qs), Ee(o, b), !r && Ee(a, 0), p;
|
1664
1664
|
}, i, s, n];
|
1665
|
-
},
|
1666
|
-
const [i, a, o, u, r] =
|
1665
|
+
}, $c = (t, s, e, n) => {
|
1666
|
+
const [i, a, o, u, r] = xc(t), [d, l, c] = hc(u, (b) => {
|
1667
1667
|
h({}, b);
|
1668
|
-
}), [f, m, , g] =
|
1668
|
+
}), [f, m, , g] = bc(t, s, c, o, u, n), p = (b) => Ut(b).some((v) => !!b[v]), h = (b, v) => {
|
1669
1669
|
const { un: y, xt: $, $t: M, fn: L } = b, w = y || {}, D = !!$, k = {
|
1670
|
-
St:
|
1670
|
+
St: Nl(s, w, D),
|
1671
1671
|
un: w,
|
1672
1672
|
xt: D
|
1673
1673
|
};
|
@@ -1704,11 +1704,11 @@ const Na = (t, s, e, n) => {
|
|
1704
1704
|
if (s && !o) {
|
1705
1705
|
let u = !1;
|
1706
1706
|
const r = [], d = {}, l = (C) => {
|
1707
|
-
const E = ao(C, !0), T = Ne(
|
1707
|
+
const E = ao(C, !0), T = Ne(ec);
|
1708
1708
|
return T ? T(E, !0) : E;
|
1709
1709
|
}, c = st({}, n(), l(s)), [f, m, g] = Ni(), [p, h, b] = Ni(e), v = (C, E) => {
|
1710
1710
|
b(C, E), g(C, E);
|
1711
|
-
}, [y, $, M, L, w] =
|
1711
|
+
}, [y, $, M, L, w] = $c(t, c, ({ un: C, xt: E }, { Wt: T, Xt: S }) => {
|
1712
1712
|
const { et: P, gt: _, ht: x, bt: z, wt: A, ot: G } = T, { Yt: Y, Jt: W, Kt: B } = S;
|
1713
1713
|
v("updated", [k, {
|
1714
1714
|
updateHints: {
|
@@ -1726,7 +1726,7 @@ const Na = (t, s, e, n) => {
|
|
1726
1726
|
force: !!E
|
1727
1727
|
}]);
|
1728
1728
|
}, (C) => v("scroll", [k, C])), D = (C) => {
|
1729
|
-
|
1729
|
+
uc(a), Ot(r), u = !0, v("destroyed", [k, C]), m(), h();
|
1730
1730
|
}, k = {
|
1731
1731
|
options(C, E) {
|
1732
1732
|
if (C) {
|
@@ -1792,13 +1792,13 @@ const Na = (t, s, e, n) => {
|
|
1792
1792
|
destroy: J(D, !1),
|
1793
1793
|
plugin: (C) => d[Ut(C)[0]]
|
1794
1794
|
};
|
1795
|
-
return at(r, [w]),
|
1795
|
+
return at(r, [w]), dc(a, k), ko(Ao, Se, [k, f, d]), cc(L.vn.At, !i && t.cancel) ? (D(!0), k) : (at(r, y()), v("initialized", [k]), k.update(!0), k);
|
1796
1796
|
}
|
1797
1797
|
return o;
|
1798
1798
|
};
|
1799
1799
|
Se.plugin = (t) => {
|
1800
1800
|
const s = Pt(t), e = s ? t : [t], n = e.map((i) => ko(i, Se)[0]);
|
1801
|
-
return
|
1801
|
+
return tc(e), s ? n : n[0];
|
1802
1802
|
};
|
1803
1803
|
Se.valid = (t) => {
|
1804
1804
|
const s = t && t.elements, e = Gt(s) && s();
|
@@ -1823,7 +1823,7 @@ Se.env = () => {
|
|
1823
1823
|
});
|
1824
1824
|
};
|
1825
1825
|
window.MODALS || (window.MODALS = {});
|
1826
|
-
const { MODALS: te } = window,
|
1826
|
+
const { MODALS: te } = window, Cc = (t) => {
|
1827
1827
|
const { TEMPLATE: s } = et.modal4, { childDom: e } = t, n = document.createElement("div");
|
1828
1828
|
n.innerHTML = s(t.getAttribute("data-modal-template-setting"));
|
1829
1829
|
const i = n.querySelector(".modal-content");
|
@@ -1871,7 +1871,7 @@ Ws = new WeakSet(), Ho = function() {
|
|
1871
1871
|
const n = this.getAttribute(e.id) || to();
|
1872
1872
|
this.getAttribute(e.id) || (Lt(`modern-modal needs a ${e.id} attribute with a unique id.`), this.setAttribute(e.id, n)), te[n] && Lt(`the ${e.id} "${n}" is already be used.`), te[n] = this, O(this, js, No).call(this);
|
1873
1873
|
}, js = new WeakSet(), No = function() {
|
1874
|
-
this.childDom = this.childNodes, this.template =
|
1874
|
+
this.childDom = this.childNodes, this.template = Cc(this), this.innerHTML = "", this.append(this.template), O(this, Xs, qo).call(this);
|
1875
1875
|
}, Xs = new WeakSet(), qo = function() {
|
1876
1876
|
const e = this.querySelector(".modal-scroller");
|
1877
1877
|
this.__scroller__ = Se(e, {
|
@@ -1937,7 +1937,7 @@ const { MODALS: fa } = window, Ro = (t, s, ...e) => {
|
|
1937
1937
|
t && be(t) && t.apply(es, s);
|
1938
1938
|
}, Ga = (t, s) => {
|
1939
1939
|
const { target: e } = t, n = fa[e] || Dt(t.target);
|
1940
|
-
n && jo(t, s), n ||
|
1940
|
+
n && jo(t, s), n || wc(t, s);
|
1941
1941
|
}, jo = (t, s) => {
|
1942
1942
|
const { target: e, action: n, on: i, e: a } = t, o = fa[e] || Dt(t.target);
|
1943
1943
|
switch (["open", "close", "destroy"].forEach((r) => {
|
@@ -1959,7 +1959,7 @@ const { MODALS: fa } = window, Ro = (t, s, ...e) => {
|
|
1959
1959
|
r === "close" && o.open(), r === "open" && o.close();
|
1960
1960
|
break;
|
1961
1961
|
}
|
1962
|
-
},
|
1962
|
+
}, wc = async (t, s) => {
|
1963
1963
|
const { target: e, route: n, container: i, on: a, e: o } = t;
|
1964
1964
|
if (!n)
|
1965
1965
|
return Lt("modal4", "cannot find target or data-modal-route is not defined");
|
@@ -1967,7 +1967,7 @@ const { MODALS: fa } = window, Ro = (t, s, ...e) => {
|
|
1967
1967
|
s && (s.emit(r, ...d), Ro(s, a[r], ...d)), s || Wo(a[r], ...d);
|
1968
1968
|
};
|
1969
1969
|
fetch(n).then((r) => (u("success", o), r.text())).then((r) => {
|
1970
|
-
const d =
|
1970
|
+
const d = dl(r), l = Dt(i) || Dt(et.modal4.SETTINGS.container);
|
1971
1971
|
[...d].forEach((f) => {
|
1972
1972
|
l.append(f);
|
1973
1973
|
});
|
@@ -2027,7 +2027,7 @@ ns = new WeakSet(), Ri = function() {
|
|
2027
2027
|
n.modal = {}, n.modal.instance = this, n.modal.eventHandler = O(this, Us, Yo), n.modal.defaultOptions = e, n.addEventListener("click", n.modal.eventHandler);
|
2028
2028
|
}), this.emit("init");
|
2029
2029
|
}, Us = new WeakSet(), Yo = function(s) {
|
2030
|
-
const { defaultOptions: e, eventHandler: n, instance: i } = this.modal, a =
|
2030
|
+
const { defaultOptions: e, eventHandler: n, instance: i } = this.modal, a = ul(this.getAttribute("data-modal-on"));
|
2031
2031
|
a && typeof a != "object" && Lt("modal4", "data-modal-on must be a json string.");
|
2032
2032
|
const o = {
|
2033
2033
|
target: this.getAttribute("data-modal-target") || e.target,
|
@@ -2043,7 +2043,7 @@ ns = new WeakSet(), Ri = function() {
|
|
2043
2043
|
};
|
2044
2044
|
let es = ge;
|
2045
2045
|
Object.assign(es.prototype, ce);
|
2046
|
-
const
|
2046
|
+
const Mc = (t, s) => {
|
2047
2047
|
const e = t === window ? t.innerHeight : t.getBoundingClientRect().height, n = t === window ? 0 : t.getBoundingClientRect().top;
|
2048
2048
|
s.forEach((i) => {
|
2049
2049
|
const { class: a, delay: o, start: u, end: r, repeat: d, instance: l } = i.aost, { top: c, bottom: f } = i.getBoundingClientRect(), m = e * (u / 100), g = e * (r / 100);
|
@@ -2058,9 +2058,9 @@ const wc = (t, s) => {
|
|
2058
2058
|
}, o);
|
2059
2059
|
}
|
2060
2060
|
});
|
2061
|
-
},
|
2061
|
+
}, Lc = (t, s) => t === "up" || t === "down" ? t : t !== null ? t === "true" ? !0 : t === "false" ? !1 : s.repeat : s.repeat;
|
2062
2062
|
var is, Wi, Zs, Fo;
|
2063
|
-
class
|
2063
|
+
class Ac {
|
2064
2064
|
constructor(s, e = {}) {
|
2065
2065
|
N(this, is);
|
2066
2066
|
N(this, Zs);
|
@@ -2098,23 +2098,226 @@ is = new WeakSet(), Wi = function() {
|
|
2098
2098
|
}, Zs = new WeakSet(), Fo = function() {
|
2099
2099
|
const { elements: s, options: e } = this, { scroller: n } = e, i = n === window || !mt(n) ? window : Dt(n);
|
2100
2100
|
this.eventHandler = () => {
|
2101
|
-
|
2101
|
+
Mc(i, s);
|
2102
2102
|
}, s.forEach((o) => {
|
2103
|
-
o.aost = {}, o.aost.class = o.getAttribute("data-aost-class") || e.class, o.aost.delay = parseInt(o.getAttribute("data-aost-delay")) || e.delay, o.aost.start = parseInt(o.getAttribute("data-aost-start")) || e.start, o.aost.end = parseInt(o.getAttribute("data-aost-end")) || e.end, o.aost.repeat =
|
2103
|
+
o.aost = {}, o.aost.class = o.getAttribute("data-aost-class") || e.class, o.aost.delay = parseInt(o.getAttribute("data-aost-delay")) || e.delay, o.aost.start = parseInt(o.getAttribute("data-aost-start")) || e.start, o.aost.end = parseInt(o.getAttribute("data-aost-end")) || e.end, o.aost.repeat = Lc(o.getAttribute("data-aost-repeat"), e), o.aost.instance = this;
|
2104
2104
|
});
|
2105
2105
|
const { eventHandler: a } = this;
|
2106
2106
|
a(), i.aost = {}, i.aost.eventHandler = a, i.addEventListener("scroll", i.aost.eventHandler, !1);
|
2107
2107
|
};
|
2108
|
-
Object.assign(
|
2109
|
-
|
2108
|
+
Object.assign(Ac.prototype, ce);
|
2109
|
+
const Dc = (t) => {
|
2110
|
+
const { TEMPLATE: s } = et.video4, { childDom: e } = t, n = document.createElement("div");
|
2111
|
+
n.innerHTML = s();
|
2112
|
+
const i = n.querySelector(".player-wrapper");
|
2113
|
+
return [...e].forEach((a) => {
|
2114
|
+
i.append(a);
|
2115
|
+
}), n.children[0];
|
2116
|
+
};
|
2117
|
+
var Js, Vo, Ks, Uo, Qs, Zo, tn, Jo, en, Ko, sn, Qo, nn, tr;
|
2118
|
+
class kc extends HTMLElement {
|
2119
|
+
constructor() {
|
2120
|
+
super();
|
2121
|
+
N(this, Js);
|
2122
|
+
N(this, Ks);
|
2123
|
+
N(this, Qs);
|
2124
|
+
// youtube iframe
|
2125
|
+
N(this, tn);
|
2126
|
+
// vimeo iframe
|
2127
|
+
N(this, en);
|
2128
|
+
// youku iframe
|
2129
|
+
N(this, sn);
|
2130
|
+
N(this, nn);
|
2131
|
+
O(this, Js, Vo).call(this);
|
2132
|
+
}
|
2133
|
+
play() {
|
2134
|
+
const { videoType: e } = this;
|
2135
|
+
switch (e) {
|
2136
|
+
case "youtubeAPI":
|
2137
|
+
break;
|
2138
|
+
case "youtube":
|
2139
|
+
this.querySelector("iframe").contentWindow.postMessage(JSON.stringify({ event: "command", func: "playVideo" }), "*");
|
2140
|
+
break;
|
2141
|
+
case "youkuAPI":
|
2142
|
+
break;
|
2143
|
+
case "youku":
|
2144
|
+
break;
|
2145
|
+
case "vimeo":
|
2146
|
+
this.querySelector("iframe").contentWindow.postMessage(JSON.stringify({ value: "true", method: "play" }), "*");
|
2147
|
+
break;
|
2148
|
+
}
|
2149
|
+
}
|
2150
|
+
pause() {
|
2151
|
+
const { videoType: e } = this;
|
2152
|
+
switch (e) {
|
2153
|
+
case "youtubeAPI":
|
2154
|
+
break;
|
2155
|
+
case "youtube":
|
2156
|
+
this.querySelector("iframe").contentWindow.postMessage(JSON.stringify({ event: "command", func: "pauseVideo" }), "*");
|
2157
|
+
break;
|
2158
|
+
case "youkuAPI":
|
2159
|
+
break;
|
2160
|
+
case "youku":
|
2161
|
+
break;
|
2162
|
+
case "vimeo":
|
2163
|
+
this.querySelector("iframe").contentWindow.postMessage(JSON.stringify({ value: "true", method: "pause" }), "*");
|
2164
|
+
break;
|
2165
|
+
}
|
2166
|
+
}
|
2167
|
+
}
|
2168
|
+
Js = new WeakSet(), Vo = function() {
|
2169
|
+
if (!this.getAttribute("video-id")) {
|
2170
|
+
Lt("videoPlayer", "video-render needs a ['video-id'] attribute to creat player.");
|
2171
|
+
return;
|
2172
|
+
}
|
2173
|
+
this.videoId = this.getAttribute("video-id"), this.videoType = this.getAttribute("video-type"), this.autoplay = this.getAttribute("video-autoplay"), O(this, Ks, Uo).call(this);
|
2174
|
+
}, Ks = new WeakSet(), Uo = function() {
|
2175
|
+
this.childDom = this.childNodes, this.template = Dc(this), this.innerHTML = "", this.append(this.template), O(this, Qs, Zo).call(this);
|
2176
|
+
}, Qs = new WeakSet(), Zo = function() {
|
2177
|
+
const { videoType: e } = this;
|
2178
|
+
let n = "";
|
2179
|
+
switch (e) {
|
2180
|
+
case "youtubeAPI":
|
2181
|
+
break;
|
2182
|
+
case "youtube":
|
2183
|
+
n = O(this, tn, Jo).call(this);
|
2184
|
+
break;
|
2185
|
+
case "youkuAPI":
|
2186
|
+
break;
|
2187
|
+
case "youku":
|
2188
|
+
n = O(this, sn, Qo).call(this);
|
2189
|
+
break;
|
2190
|
+
case "vimeo":
|
2191
|
+
n = O(this, en, Ko).call(this);
|
2192
|
+
break;
|
2193
|
+
case "bilibili":
|
2194
|
+
n = O(this, nn, tr).call(this);
|
2195
|
+
break;
|
2196
|
+
}
|
2197
|
+
this.querySelector(".player-wrapper").insertAdjacentHTML(Mt.prepend, n);
|
2198
|
+
}, tn = new WeakSet(), Jo = function() {
|
2199
|
+
const { videoId: e, autoplay: n } = this;
|
2200
|
+
return `<iframe src="https://www.youtube.com/embed/${e}?rel=0&${n === "on" ? "autoplay=1" : ""}&mute=1&loop=1&enablejsapi=1" frameborder="0" allowfullscreen="0" volumn="0" allow="${n === "on" ? "autoplay;" : ""} encrypted-media; gyroscope; picture-in-picture;"></iframe>`;
|
2201
|
+
}, en = new WeakSet(), Ko = function() {
|
2202
|
+
const { videoId: e, autoplay: n, hash: i } = this;
|
2203
|
+
return `<iframe src="https://player.vimeo.com/video/${e}?h=${i}&${n === "on" ? "autoplay=1" : ""}&loop=1&color=ffffff&title=0&byline=0&portrait=0" frameborder="0" allow="${n === "on" ? "autoplay;" : ""} fullscreen; picture-in-picture" allowfullscreen></iframe><script src="https://player.vimeo.com/api/player.js"><\/script>`;
|
2204
|
+
}, sn = new WeakSet(), Qo = function() {
|
2205
|
+
const { videoId: e, autoplay: n } = this;
|
2206
|
+
return `<iframe src="https://player.youku.com/embed/${e}?rel=0&${n === "on" ? "autoplay=1" : ""}" frameborder=0 "allowfullscreen"></iframe>`;
|
2207
|
+
}, nn = new WeakSet(), tr = function() {
|
2208
|
+
const { videoId: e, autoplay: n } = this;
|
2209
|
+
return `<iframe src="//player.bilibili.com/player.html?bvid=${e}&page=1&as_wide=1&high_quality=1&danmaku=0" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>`;
|
2210
|
+
};
|
2211
|
+
customElements.get("video-player") || customElements.define("video-player", kc);
|
2212
|
+
const Ra = (t) => t.videoId !== "" || typeof t.videoId < "u", Pc = (t) => t.$selector.getAttribute("video4-active") === "on", Ci = (t) => `<video-player video-id="${t.videoId}" video-type="${t.videoType}" video-autoplay="${t.videoAutoplay}"></video-player>`;
|
2213
|
+
var as, ji, an, sr, on, nr, os, Xi, rn, ir;
|
2214
|
+
class er {
|
2215
|
+
constructor(s, e = {}) {
|
2216
|
+
N(this, as);
|
2217
|
+
N(this, an);
|
2218
|
+
N(this, on);
|
2219
|
+
N(this, os);
|
2220
|
+
N(this, rn);
|
2221
|
+
if (!xe(s) && !Qn(s) && !_e(s)) {
|
2222
|
+
ba("video4", `找不到該物件 -> ${s}`);
|
2223
|
+
return;
|
2224
|
+
}
|
2225
|
+
this.__storage__ = {
|
2226
|
+
el: s,
|
2227
|
+
options: e
|
2228
|
+
}, O(this, as, ji).call(this);
|
2229
|
+
}
|
2230
|
+
update() {
|
2231
|
+
O(this, as, ji).call(this);
|
2232
|
+
}
|
2233
|
+
}
|
2234
|
+
as = new WeakSet(), ji = function() {
|
2235
|
+
const { el: s, options: e } = this.__storage__, { SETTINGS: n, EVENTS: i } = et.video4;
|
2236
|
+
if (this.elements = le(s), this.options = Object.assign({}, n, e), this.__events__ = Object.assign({}, i), this.options.on)
|
2237
|
+
for (const [a, o] of Object.entries(this.options.on))
|
2238
|
+
this.__events__[a] = [o];
|
2239
|
+
O(this, an, sr).call(this);
|
2240
|
+
}, an = new WeakSet(), sr = function() {
|
2241
|
+
const { elements: s, options: e } = this;
|
2242
|
+
s.forEach((n) => {
|
2243
|
+
n.video = {}, n.video.instance = this, n.video.defaultOptions = e, n.video.params = O(this, rn, ir).call(this, n), Ra(n.video.params) && !Pc(n.video.params) && (n.setAttribute("video4-active", "on"), O(this, on, nr).call(this, n)), Ra(n.video.params) || ba("video4", "無法取得影片 ID");
|
2244
|
+
}), this.emit("init");
|
2245
|
+
}, on = new WeakSet(), nr = function(s) {
|
2246
|
+
const { LAYOUT: e } = et.video4, n = s.video.params, { $selector: i, videoLayoutNo: a, videoId: o, videoType: u, videoMode: r, videoButton: d, videoCover: l } = n;
|
2247
|
+
if (r === "onBox") {
|
2248
|
+
let c = null;
|
2249
|
+
if (l === "on") {
|
2250
|
+
s.classList.add("video4-cover"), i.querySelector("img") || (i.insertAdjacentHTML(Mt.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), Lt("video4", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構,若無結構則自動加入圖片結構"));
|
2251
|
+
const f = i.querySelector("img");
|
2252
|
+
f.insertAdjacentHTML(Mt.after, e[a]);
|
2253
|
+
const m = (f == null ? void 0 : f.getAttribute("src")) || (f == null ? void 0 : f.getAttribute("data-src"));
|
2254
|
+
!m && u == "youtube" ? f.setAttribute("src", `https://img.youtube.com/vi/${o}/0.jpg`) : !m && u == "vimeo" ? f.setAttribute("src", `https://vumbnail.com/${o}_large.jpg`) : Lt("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片");
|
2255
|
+
}
|
2256
|
+
d == "off" ? c = i : (c = i.querySelector(d) ?? i, i.querySelector(d) || Lt("video4", `找不到 videoButton 設定的 element -> '${d}' , 點擊物件轉移至 '${this.__storage__.el}'`)), c.video || (c.video = {}, c.video.params = n), c.video.eventHandler = O(this, os, Xi), c.addEventListener("click", c.video.eventHandler);
|
2257
|
+
} else if (r === "onPage") {
|
2258
|
+
let c = null;
|
2259
|
+
if (l == "on") {
|
2260
|
+
s.classList.add("video4-cover"), i.querySelector("img") || (i.insertAdjacentHTML(Mt.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), Lt("video", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構"));
|
2261
|
+
const f = i.querySelector("img");
|
2262
|
+
f.insertAdjacentHTML(Mt.after, e[a]);
|
2263
|
+
const m = (f == null ? void 0 : f.getAttribute("src")) || (f == null ? void 0 : f.getAttribute("data-src"));
|
2264
|
+
!m && u == "youtube" ? f.setAttribute("src", `https://img.youtube.com/vi/${o}/0.jpg`) : !m && u == "vimeo" ? f.setAttribute("src", `https://vumbnail.com/${o}_large.jpg`) : m || Lt("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片"), d == "off" ? c = i : (c = i.querySelector(d) ?? i, i.querySelector(d) || Lt("video4", `找不到 videoButton 設定的 element -> '${d}', 點擊物件轉移至 '${this.__storage__.el}'`));
|
2265
|
+
} else {
|
2266
|
+
i.innerHTML = Ci(n);
|
2267
|
+
return;
|
2268
|
+
}
|
2269
|
+
c.video || (c.video = {}, c.video.params = n), c.video.eventHandler = O(this, os, Xi), c.addEventListener("click", c.video.eventHandler);
|
2270
|
+
}
|
2271
|
+
}, os = new WeakSet(), Xi = function(s) {
|
2272
|
+
const { video: e } = this, { $selector: n, videoMode: i, videoTarget: a, videoTargetRoute: o } = e.params;
|
2273
|
+
if (i == "onBox") {
|
2274
|
+
const u = {
|
2275
|
+
target: a,
|
2276
|
+
route: o,
|
2277
|
+
on: {
|
2278
|
+
complete(r) {
|
2279
|
+
r.querySelector(".modal-content").insertAdjacentHTML("beforeend", Ci(e.params));
|
2280
|
+
},
|
2281
|
+
open(r) {
|
2282
|
+
const d = r.querySelectorAll("[data-overlayscrollbars-viewport]");
|
2283
|
+
_g.lazy.update(), _g.scrollLock([...d]);
|
2284
|
+
},
|
2285
|
+
close(r) {
|
2286
|
+
const d = r.querySelectorAll("[data-overlayscrollbars-viewport]");
|
2287
|
+
_g.scrollUnlock([...d]);
|
2288
|
+
},
|
2289
|
+
destroy(r) {
|
2290
|
+
}
|
2291
|
+
}
|
2292
|
+
};
|
2293
|
+
es.open(u);
|
2294
|
+
} else
|
2295
|
+
i == "onPage" && (e.params.videoAutoplay = "on", n.innerHTML = Ci(e.params));
|
2296
|
+
}, rn = new WeakSet(), ir = function(s) {
|
2297
|
+
const { SETTINGS: e } = et.video4;
|
2298
|
+
return {
|
2299
|
+
$selector: s,
|
2300
|
+
videoId: s.getAttribute("video-id"),
|
2301
|
+
videoType: s.getAttribute("video-type"),
|
2302
|
+
videoAutoplay: s.getAttribute("video-autoplay") || e.videoAutoplay,
|
2303
|
+
videoMode: s.getAttribute("video-mode") || e.videoMode,
|
2304
|
+
videoButton: s.getAttribute("video-button") || e.videoButton,
|
2305
|
+
videoCover: s.getAttribute("video-cover") || e.videoCover,
|
2306
|
+
videoLayoutNo: s.getAttribute("video-layout-no") || e.videoLayoutNo,
|
2307
|
+
videoTarget: s.getAttribute("video-target") || e.videoTarget,
|
2308
|
+
videoTargetRoute: s.getAttribute("video-target-route") || e.videoTargetRoute
|
2309
|
+
};
|
2310
|
+
};
|
2311
|
+
Object.assign(er.prototype, ce);
|
2312
|
+
function Wa(t) {
|
2110
2313
|
return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
|
2111
2314
|
}
|
2112
2315
|
function pa(t = {}, s = {}) {
|
2113
2316
|
Object.keys(s).forEach((e) => {
|
2114
|
-
typeof t[e] > "u" ? t[e] = s[e] :
|
2317
|
+
typeof t[e] > "u" ? t[e] = s[e] : Wa(s[e]) && Wa(t[e]) && Object.keys(s[e]).length > 0 && pa(t[e], s[e]);
|
2115
2318
|
});
|
2116
2319
|
}
|
2117
|
-
const
|
2320
|
+
const ar = {
|
2118
2321
|
body: {},
|
2119
2322
|
addEventListener() {
|
2120
2323
|
},
|
@@ -2171,10 +2374,10 @@ const Vo = {
|
|
2171
2374
|
};
|
2172
2375
|
function ft() {
|
2173
2376
|
const t = typeof document < "u" ? document : {};
|
2174
|
-
return pa(t,
|
2377
|
+
return pa(t, ar), t;
|
2175
2378
|
}
|
2176
|
-
const
|
2177
|
-
document:
|
2379
|
+
const Oc = {
|
2380
|
+
document: ar,
|
2178
2381
|
navigator: {
|
2179
2382
|
userAgent: ""
|
2180
2383
|
},
|
@@ -2233,9 +2436,9 @@ const Ac = {
|
|
2233
2436
|
};
|
2234
2437
|
function lt() {
|
2235
2438
|
const t = typeof window < "u" ? window : {};
|
2236
|
-
return pa(t,
|
2439
|
+
return pa(t, Oc), t;
|
2237
2440
|
}
|
2238
|
-
function
|
2441
|
+
function Ic(t) {
|
2239
2442
|
const s = t.__proto__;
|
2240
2443
|
Object.defineProperty(t, "__proto__", {
|
2241
2444
|
get() {
|
@@ -2248,7 +2451,7 @@ function Dc(t) {
|
|
2248
2451
|
}
|
2249
2452
|
class ae extends Array {
|
2250
2453
|
constructor(s) {
|
2251
|
-
typeof s == "number" ? super(s) : (super(...s || []),
|
2454
|
+
typeof s == "number" ? super(s) : (super(...s || []), Ic(this));
|
2252
2455
|
}
|
2253
2456
|
}
|
2254
2457
|
function vs(t = []) {
|
@@ -2257,16 +2460,16 @@ function vs(t = []) {
|
|
2257
2460
|
Array.isArray(e) ? s.push(...vs(e)) : s.push(e);
|
2258
2461
|
}), s;
|
2259
2462
|
}
|
2260
|
-
function
|
2463
|
+
function or(t, s) {
|
2261
2464
|
return Array.prototype.filter.call(t, s);
|
2262
2465
|
}
|
2263
|
-
function
|
2466
|
+
function zc(t) {
|
2264
2467
|
const s = [];
|
2265
2468
|
for (let e = 0; e < t.length; e += 1)
|
2266
2469
|
s.indexOf(t[e]) === -1 && s.push(t[e]);
|
2267
2470
|
return s;
|
2268
2471
|
}
|
2269
|
-
function
|
2472
|
+
function _c(t, s) {
|
2270
2473
|
if (typeof t != "string")
|
2271
2474
|
return [t];
|
2272
2475
|
const e = [], n = s.querySelectorAll(t);
|
@@ -2291,7 +2494,7 @@ function I(t, s) {
|
|
2291
2494
|
for (let r = 0; r < u.childNodes.length; r += 1)
|
2292
2495
|
i.push(u.childNodes[r]);
|
2293
2496
|
} else
|
2294
|
-
i =
|
2497
|
+
i = _c(t.trim(), s || n);
|
2295
2498
|
} else if (t.nodeType || t === e || t === n)
|
2296
2499
|
i.push(t);
|
2297
2500
|
else if (Array.isArray(t)) {
|
@@ -2299,22 +2502,22 @@ function I(t, s) {
|
|
2299
2502
|
return t;
|
2300
2503
|
i = t;
|
2301
2504
|
}
|
2302
|
-
return new ae(
|
2505
|
+
return new ae(zc(i));
|
2303
2506
|
}
|
2304
2507
|
I.fn = ae.prototype;
|
2305
|
-
function
|
2508
|
+
function Hc(...t) {
|
2306
2509
|
const s = vs(t.map((e) => e.split(" ")));
|
2307
2510
|
return this.forEach((e) => {
|
2308
2511
|
e.classList.add(...s);
|
2309
2512
|
}), this;
|
2310
2513
|
}
|
2311
|
-
function
|
2514
|
+
function Nc(...t) {
|
2312
2515
|
const s = vs(t.map((e) => e.split(" ")));
|
2313
2516
|
return this.forEach((e) => {
|
2314
2517
|
e.classList.remove(...s);
|
2315
2518
|
}), this;
|
2316
2519
|
}
|
2317
|
-
function
|
2520
|
+
function qc(...t) {
|
2318
2521
|
const s = vs(t.map((e) => e.split(" ")));
|
2319
2522
|
this.forEach((e) => {
|
2320
2523
|
s.forEach((n) => {
|
@@ -2322,11 +2525,11 @@ function zc(...t) {
|
|
2322
2525
|
});
|
2323
2526
|
});
|
2324
2527
|
}
|
2325
|
-
function
|
2528
|
+
function Bc(...t) {
|
2326
2529
|
const s = vs(t.map((e) => e.split(" ")));
|
2327
|
-
return
|
2530
|
+
return or(this, (e) => s.filter((n) => e.classList.contains(n)).length > 0).length > 0;
|
2328
2531
|
}
|
2329
|
-
function
|
2532
|
+
function Gc(t, s) {
|
2330
2533
|
if (arguments.length === 1 && typeof t == "string")
|
2331
2534
|
return this[0] ? this[0].getAttribute(t) : void 0;
|
2332
2535
|
for (let e = 0; e < this.length; e += 1)
|
@@ -2337,22 +2540,22 @@ function Hc(t, s) {
|
|
2337
2540
|
this[e][n] = t[n], this[e].setAttribute(n, t[n]);
|
2338
2541
|
return this;
|
2339
2542
|
}
|
2340
|
-
function
|
2543
|
+
function Rc(t) {
|
2341
2544
|
for (let s = 0; s < this.length; s += 1)
|
2342
2545
|
this[s].removeAttribute(t);
|
2343
2546
|
return this;
|
2344
2547
|
}
|
2345
|
-
function
|
2548
|
+
function Wc(t) {
|
2346
2549
|
for (let s = 0; s < this.length; s += 1)
|
2347
2550
|
this[s].style.transform = t;
|
2348
2551
|
return this;
|
2349
2552
|
}
|
2350
|
-
function
|
2553
|
+
function jc(t) {
|
2351
2554
|
for (let s = 0; s < this.length; s += 1)
|
2352
2555
|
this[s].style.transitionDuration = typeof t != "string" ? `${t}ms` : t;
|
2353
2556
|
return this;
|
2354
2557
|
}
|
2355
|
-
function
|
2558
|
+
function Xc(...t) {
|
2356
2559
|
let [s, e, n, i] = t;
|
2357
2560
|
typeof t[1] == "function" && ([s, n, i] = t, e = void 0), i || (i = !1);
|
2358
2561
|
function a(d) {
|
@@ -2395,7 +2598,7 @@ function Gc(...t) {
|
|
2395
2598
|
}
|
2396
2599
|
return this;
|
2397
2600
|
}
|
2398
|
-
function
|
2601
|
+
function Yc(...t) {
|
2399
2602
|
let [s, e, n, i] = t;
|
2400
2603
|
typeof t[1] == "function" && ([s, n, i] = t, e = void 0), i || (i = !1);
|
2401
2604
|
const a = s.split(" ");
|
@@ -2413,7 +2616,7 @@ function Rc(...t) {
|
|
2413
2616
|
}
|
2414
2617
|
return this;
|
2415
2618
|
}
|
2416
|
-
function
|
2619
|
+
function Fc(...t) {
|
2417
2620
|
const s = lt(), e = t[0].split(" "), n = t[1];
|
2418
2621
|
for (let i = 0; i < e.length; i += 1) {
|
2419
2622
|
const a = e[i];
|
@@ -2431,14 +2634,14 @@ function Wc(...t) {
|
|
2431
2634
|
}
|
2432
2635
|
return this;
|
2433
2636
|
}
|
2434
|
-
function
|
2637
|
+
function Vc(t) {
|
2435
2638
|
const s = this;
|
2436
2639
|
function e(n) {
|
2437
2640
|
n.target === this && (t.call(this, n), s.off("transitionend", e));
|
2438
2641
|
}
|
2439
2642
|
return t && s.on("transitionend", e), this;
|
2440
2643
|
}
|
2441
|
-
function
|
2644
|
+
function Uc(t) {
|
2442
2645
|
if (this.length > 0) {
|
2443
2646
|
if (t) {
|
2444
2647
|
const s = this.styles();
|
@@ -2448,7 +2651,7 @@ function Xc(t) {
|
|
2448
2651
|
}
|
2449
2652
|
return null;
|
2450
2653
|
}
|
2451
|
-
function
|
2654
|
+
function Zc(t) {
|
2452
2655
|
if (this.length > 0) {
|
2453
2656
|
if (t) {
|
2454
2657
|
const s = this.styles();
|
@@ -2458,7 +2661,7 @@ function Yc(t) {
|
|
2458
2661
|
}
|
2459
2662
|
return null;
|
2460
2663
|
}
|
2461
|
-
function
|
2664
|
+
function Jc() {
|
2462
2665
|
if (this.length > 0) {
|
2463
2666
|
const t = lt(), s = ft(), e = this[0], n = e.getBoundingClientRect(), i = s.body, a = e.clientTop || i.clientTop || 0, o = e.clientLeft || i.clientLeft || 0, u = e === t ? t.scrollY : e.scrollTop, r = e === t ? t.scrollX : e.scrollLeft;
|
2464
2667
|
return {
|
@@ -2468,11 +2671,11 @@ function Fc() {
|
|
2468
2671
|
}
|
2469
2672
|
return null;
|
2470
2673
|
}
|
2471
|
-
function
|
2674
|
+
function Kc() {
|
2472
2675
|
const t = lt();
|
2473
2676
|
return this[0] ? t.getComputedStyle(this[0], null) : {};
|
2474
2677
|
}
|
2475
|
-
function
|
2678
|
+
function Qc(t, s) {
|
2476
2679
|
const e = lt();
|
2477
2680
|
let n;
|
2478
2681
|
if (arguments.length === 1)
|
@@ -2492,30 +2695,30 @@ function Uc(t, s) {
|
|
2492
2695
|
}
|
2493
2696
|
return this;
|
2494
2697
|
}
|
2495
|
-
function
|
2698
|
+
function td(t) {
|
2496
2699
|
return t ? (this.forEach((s, e) => {
|
2497
2700
|
t.apply(s, [s, e]);
|
2498
2701
|
}), this) : this;
|
2499
2702
|
}
|
2500
|
-
function
|
2501
|
-
const s =
|
2703
|
+
function ed(t) {
|
2704
|
+
const s = or(this, t);
|
2502
2705
|
return I(s);
|
2503
2706
|
}
|
2504
|
-
function
|
2707
|
+
function sd(t) {
|
2505
2708
|
if (typeof t > "u")
|
2506
2709
|
return this[0] ? this[0].innerHTML : null;
|
2507
2710
|
for (let s = 0; s < this.length; s += 1)
|
2508
2711
|
this[s].innerHTML = t;
|
2509
2712
|
return this;
|
2510
2713
|
}
|
2511
|
-
function
|
2714
|
+
function nd(t) {
|
2512
2715
|
if (typeof t > "u")
|
2513
2716
|
return this[0] ? this[0].textContent.trim() : null;
|
2514
2717
|
for (let s = 0; s < this.length; s += 1)
|
2515
2718
|
this[s].textContent = t;
|
2516
2719
|
return this;
|
2517
2720
|
}
|
2518
|
-
function
|
2721
|
+
function id(t) {
|
2519
2722
|
const s = lt(), e = ft(), n = this[0];
|
2520
2723
|
let i, a;
|
2521
2724
|
if (!n || typeof t > "u")
|
@@ -2544,7 +2747,7 @@ function td(t) {
|
|
2544
2747
|
}
|
2545
2748
|
return !1;
|
2546
2749
|
}
|
2547
|
-
function
|
2750
|
+
function ad() {
|
2548
2751
|
let t = this[0], s;
|
2549
2752
|
if (t) {
|
2550
2753
|
for (s = 0; (t = t.previousSibling) !== null; )
|
@@ -2552,7 +2755,7 @@ function ed() {
|
|
2552
2755
|
return s;
|
2553
2756
|
}
|
2554
2757
|
}
|
2555
|
-
function
|
2758
|
+
function od(t) {
|
2556
2759
|
if (typeof t > "u")
|
2557
2760
|
return this;
|
2558
2761
|
const s = this.length;
|
@@ -2564,7 +2767,7 @@ function sd(t) {
|
|
2564
2767
|
}
|
2565
2768
|
return I([this[t]]);
|
2566
2769
|
}
|
2567
|
-
function
|
2770
|
+
function rd(...t) {
|
2568
2771
|
let s;
|
2569
2772
|
const e = ft();
|
2570
2773
|
for (let n = 0; n < t.length; n += 1) {
|
@@ -2582,7 +2785,7 @@ function nd(...t) {
|
|
2582
2785
|
}
|
2583
2786
|
return this;
|
2584
2787
|
}
|
2585
|
-
function
|
2788
|
+
function ld(t) {
|
2586
2789
|
const s = ft();
|
2587
2790
|
let e, n;
|
2588
2791
|
for (e = 0; e < this.length; e += 1)
|
@@ -2597,10 +2800,10 @@ function id(t) {
|
|
2597
2800
|
this[e].insertBefore(t, this[e].childNodes[0]);
|
2598
2801
|
return this;
|
2599
2802
|
}
|
2600
|
-
function
|
2803
|
+
function cd(t) {
|
2601
2804
|
return this.length > 0 ? t ? this[0].nextElementSibling && I(this[0].nextElementSibling).is(t) ? I([this[0].nextElementSibling]) : I([]) : this[0].nextElementSibling ? I([this[0].nextElementSibling]) : I([]) : I([]);
|
2602
2805
|
}
|
2603
|
-
function
|
2806
|
+
function dd(t) {
|
2604
2807
|
const s = [];
|
2605
2808
|
let e = this[0];
|
2606
2809
|
if (!e)
|
@@ -2611,14 +2814,14 @@ function od(t) {
|
|
2611
2814
|
}
|
2612
2815
|
return I(s);
|
2613
2816
|
}
|
2614
|
-
function
|
2817
|
+
function ud(t) {
|
2615
2818
|
if (this.length > 0) {
|
2616
2819
|
const s = this[0];
|
2617
2820
|
return t ? s.previousElementSibling && I(s.previousElementSibling).is(t) ? I([s.previousElementSibling]) : I([]) : s.previousElementSibling ? I([s.previousElementSibling]) : I([]);
|
2618
2821
|
}
|
2619
2822
|
return I([]);
|
2620
2823
|
}
|
2621
|
-
function
|
2824
|
+
function fd(t) {
|
2622
2825
|
const s = [];
|
2623
2826
|
let e = this[0];
|
2624
2827
|
if (!e)
|
@@ -2629,13 +2832,13 @@ function ld(t) {
|
|
2629
2832
|
}
|
2630
2833
|
return I(s);
|
2631
2834
|
}
|
2632
|
-
function
|
2835
|
+
function pd(t) {
|
2633
2836
|
const s = [];
|
2634
2837
|
for (let e = 0; e < this.length; e += 1)
|
2635
2838
|
this[e].parentNode !== null && (t ? I(this[e].parentNode).is(t) && s.push(this[e].parentNode) : s.push(this[e].parentNode));
|
2636
2839
|
return I(s);
|
2637
2840
|
}
|
2638
|
-
function
|
2841
|
+
function hd(t) {
|
2639
2842
|
const s = [];
|
2640
2843
|
for (let e = 0; e < this.length; e += 1) {
|
2641
2844
|
let n = this[e].parentNode;
|
@@ -2644,11 +2847,11 @@ function dd(t) {
|
|
2644
2847
|
}
|
2645
2848
|
return I(s);
|
2646
2849
|
}
|
2647
|
-
function
|
2850
|
+
function md(t) {
|
2648
2851
|
let s = this;
|
2649
2852
|
return typeof t > "u" ? I([]) : (s.is(t) || (s = s.parents(t).eq(0)), s);
|
2650
2853
|
}
|
2651
|
-
function
|
2854
|
+
function gd(t) {
|
2652
2855
|
const s = [];
|
2653
2856
|
for (let e = 0; e < this.length; e += 1) {
|
2654
2857
|
const n = this[e].querySelectorAll(t);
|
@@ -2657,7 +2860,7 @@ function fd(t) {
|
|
2657
2860
|
}
|
2658
2861
|
return I(s);
|
2659
2862
|
}
|
2660
|
-
function
|
2863
|
+
function vd(t) {
|
2661
2864
|
const s = [];
|
2662
2865
|
for (let e = 0; e < this.length; e += 1) {
|
2663
2866
|
const n = this[e].children;
|
@@ -2666,56 +2869,56 @@ function pd(t) {
|
|
2666
2869
|
}
|
2667
2870
|
return I(s);
|
2668
2871
|
}
|
2669
|
-
function
|
2872
|
+
function bd() {
|
2670
2873
|
for (let t = 0; t < this.length; t += 1)
|
2671
2874
|
this[t].parentNode && this[t].parentNode.removeChild(this[t]);
|
2672
2875
|
return this;
|
2673
2876
|
}
|
2674
|
-
const
|
2675
|
-
addClass:
|
2676
|
-
removeClass:
|
2677
|
-
hasClass:
|
2678
|
-
toggleClass:
|
2679
|
-
attr:
|
2680
|
-
removeAttr:
|
2681
|
-
transform:
|
2682
|
-
transition:
|
2683
|
-
on:
|
2684
|
-
off:
|
2685
|
-
trigger:
|
2686
|
-
transitionEnd:
|
2687
|
-
outerWidth:
|
2688
|
-
outerHeight:
|
2689
|
-
styles:
|
2690
|
-
offset:
|
2691
|
-
css:
|
2692
|
-
each:
|
2693
|
-
html:
|
2694
|
-
text:
|
2695
|
-
is:
|
2696
|
-
index:
|
2697
|
-
eq:
|
2698
|
-
append:
|
2699
|
-
prepend:
|
2700
|
-
next:
|
2701
|
-
nextAll:
|
2702
|
-
prev:
|
2703
|
-
prevAll:
|
2704
|
-
parent:
|
2705
|
-
parents:
|
2706
|
-
closest:
|
2707
|
-
find:
|
2708
|
-
children:
|
2709
|
-
filter:
|
2710
|
-
remove:
|
2877
|
+
const ja = {
|
2878
|
+
addClass: Hc,
|
2879
|
+
removeClass: Nc,
|
2880
|
+
hasClass: Bc,
|
2881
|
+
toggleClass: qc,
|
2882
|
+
attr: Gc,
|
2883
|
+
removeAttr: Rc,
|
2884
|
+
transform: Wc,
|
2885
|
+
transition: jc,
|
2886
|
+
on: Xc,
|
2887
|
+
off: Yc,
|
2888
|
+
trigger: Fc,
|
2889
|
+
transitionEnd: Vc,
|
2890
|
+
outerWidth: Uc,
|
2891
|
+
outerHeight: Zc,
|
2892
|
+
styles: Kc,
|
2893
|
+
offset: Jc,
|
2894
|
+
css: Qc,
|
2895
|
+
each: td,
|
2896
|
+
html: sd,
|
2897
|
+
text: nd,
|
2898
|
+
is: id,
|
2899
|
+
index: ad,
|
2900
|
+
eq: od,
|
2901
|
+
append: rd,
|
2902
|
+
prepend: ld,
|
2903
|
+
next: cd,
|
2904
|
+
nextAll: dd,
|
2905
|
+
prev: ud,
|
2906
|
+
prevAll: fd,
|
2907
|
+
parent: pd,
|
2908
|
+
parents: hd,
|
2909
|
+
closest: md,
|
2910
|
+
find: gd,
|
2911
|
+
children: vd,
|
2912
|
+
filter: ed,
|
2913
|
+
remove: bd
|
2711
2914
|
};
|
2712
|
-
Object.keys(
|
2915
|
+
Object.keys(ja).forEach((t) => {
|
2713
2916
|
Object.defineProperty(I.fn, t, {
|
2714
|
-
value:
|
2917
|
+
value: ja[t],
|
2715
2918
|
writable: !0
|
2716
2919
|
});
|
2717
2920
|
});
|
2718
|
-
function
|
2921
|
+
function yd(t) {
|
2719
2922
|
const s = t;
|
2720
2923
|
Object.keys(s).forEach((e) => {
|
2721
2924
|
try {
|
@@ -2734,28 +2937,28 @@ function re(t, s = 0) {
|
|
2734
2937
|
function wt() {
|
2735
2938
|
return Date.now();
|
2736
2939
|
}
|
2737
|
-
function
|
2940
|
+
function Td(t) {
|
2738
2941
|
const s = lt();
|
2739
2942
|
let e;
|
2740
2943
|
return s.getComputedStyle && (e = s.getComputedStyle(t, null)), !e && t.currentStyle && (e = t.currentStyle), e || (e = t.style), e;
|
2741
2944
|
}
|
2742
|
-
function
|
2945
|
+
function Yi(t, s = "x") {
|
2743
2946
|
const e = lt();
|
2744
2947
|
let n, i, a;
|
2745
|
-
const o =
|
2948
|
+
const o = Td(t);
|
2746
2949
|
return e.WebKitCSSMatrix ? (i = o.transform || o.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((u) => u.replace(",", ".")).join(", ")), a = new e.WebKitCSSMatrix(i === "none" ? "" : i)) : (a = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), n = a.toString().split(",")), s === "x" && (e.WebKitCSSMatrix ? i = a.m41 : n.length === 16 ? i = parseFloat(n[12]) : i = parseFloat(n[4])), s === "y" && (e.WebKitCSSMatrix ? i = a.m42 : n.length === 16 ? i = parseFloat(n[13]) : i = parseFloat(n[5])), i || 0;
|
2747
2950
|
}
|
2748
2951
|
function Xe(t) {
|
2749
2952
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
|
2750
2953
|
}
|
2751
|
-
function
|
2954
|
+
function Ed(t) {
|
2752
2955
|
return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
|
2753
2956
|
}
|
2754
2957
|
function Ct(...t) {
|
2755
2958
|
const s = Object(t[0]), e = ["__proto__", "constructor", "prototype"];
|
2756
2959
|
for (let n = 1; n < t.length; n += 1) {
|
2757
2960
|
const i = t[n];
|
2758
|
-
if (i != null && !
|
2961
|
+
if (i != null && !Ed(i)) {
|
2759
2962
|
const a = Object.keys(Object(i)).filter((o) => e.indexOf(o) < 0);
|
2760
2963
|
for (let o = 0, u = a.length; o < u; o += 1) {
|
2761
2964
|
const r = a[o], d = Object.getOwnPropertyDescriptor(i, r);
|
@@ -2768,7 +2971,7 @@ function Ct(...t) {
|
|
2768
2971
|
function Ye(t, s, e) {
|
2769
2972
|
t.style.setProperty(s, e);
|
2770
2973
|
}
|
2771
|
-
function
|
2974
|
+
function rr({
|
2772
2975
|
swiper: t,
|
2773
2976
|
targetPosition: s,
|
2774
2977
|
side: e
|
@@ -2795,8 +2998,8 @@ function Zo({
|
|
2795
2998
|
};
|
2796
2999
|
l();
|
2797
3000
|
}
|
2798
|
-
let
|
2799
|
-
function
|
3001
|
+
let wi;
|
3002
|
+
function Sd() {
|
2800
3003
|
const t = lt(), s = ft();
|
2801
3004
|
return {
|
2802
3005
|
smoothScroll: s.documentElement && "scrollBehavior" in s.documentElement.style,
|
@@ -2820,14 +3023,14 @@ function bd() {
|
|
2820
3023
|
}()
|
2821
3024
|
};
|
2822
3025
|
}
|
2823
|
-
function
|
2824
|
-
return
|
3026
|
+
function lr() {
|
3027
|
+
return wi || (wi = Sd()), wi;
|
2825
3028
|
}
|
2826
|
-
let
|
2827
|
-
function
|
3029
|
+
let Mi;
|
3030
|
+
function xd({
|
2828
3031
|
userAgent: t
|
2829
3032
|
} = {}) {
|
2830
|
-
const s =
|
3033
|
+
const s = lr(), e = lt(), n = e.navigator.platform, i = t || e.navigator.userAgent, a = {
|
2831
3034
|
ios: !1,
|
2832
3035
|
android: !1
|
2833
3036
|
}, o = e.screen.width, u = e.screen.height, r = i.match(/(Android);?[\s\/]+([\d.]+)?/);
|
@@ -2837,11 +3040,11 @@ function yd({
|
|
2837
3040
|
const g = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
2838
3041
|
return !d && m && s.touch && g.indexOf(`${o}x${u}`) >= 0 && (d = i.match(/(Version)\/([\d.]+)/), d || (d = [0, 1, "13_0_0"]), m = !1), r && !f && (a.os = "android", a.android = !0), (d || c || l) && (a.os = "ios", a.ios = !0), a;
|
2839
3042
|
}
|
2840
|
-
function
|
2841
|
-
return
|
3043
|
+
function $d(t = {}) {
|
3044
|
+
return Mi || (Mi = xd(t)), Mi;
|
2842
3045
|
}
|
2843
|
-
let
|
2844
|
-
function
|
3046
|
+
let Li;
|
3047
|
+
function Cd() {
|
2845
3048
|
const t = lt();
|
2846
3049
|
function s() {
|
2847
3050
|
const e = t.navigator.userAgent.toLowerCase();
|
@@ -2852,10 +3055,10 @@ function Ed() {
|
|
2852
3055
|
isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)
|
2853
3056
|
};
|
2854
3057
|
}
|
2855
|
-
function
|
2856
|
-
return
|
3058
|
+
function wd() {
|
3059
|
+
return Li || (Li = Cd()), Li;
|
2857
3060
|
}
|
2858
|
-
function
|
3061
|
+
function Md({
|
2859
3062
|
swiper: t,
|
2860
3063
|
on: s,
|
2861
3064
|
emit: e
|
@@ -2896,7 +3099,7 @@ function xd({
|
|
2896
3099
|
r(), n.removeEventListener("resize", o), n.removeEventListener("orientationchange", d);
|
2897
3100
|
});
|
2898
3101
|
}
|
2899
|
-
function
|
3102
|
+
function Ld({
|
2900
3103
|
swiper: t,
|
2901
3104
|
extendParams: s,
|
2902
3105
|
on: e,
|
@@ -2942,7 +3145,7 @@ function $d({
|
|
2942
3145
|
observeSlideChildren: !1
|
2943
3146
|
}), e("init", u), e("destroy", r);
|
2944
3147
|
}
|
2945
|
-
const
|
3148
|
+
const Ad = {
|
2946
3149
|
on(t, s, e) {
|
2947
3150
|
const n = this;
|
2948
3151
|
if (!n.eventsListeners || n.destroyed || typeof s != "function")
|
@@ -2997,7 +3200,7 @@ const Cd = {
|
|
2997
3200
|
}), s;
|
2998
3201
|
}
|
2999
3202
|
};
|
3000
|
-
function
|
3203
|
+
function Dd() {
|
3001
3204
|
const t = this;
|
3002
3205
|
let s, e;
|
3003
3206
|
const n = t.$el;
|
@@ -3007,7 +3210,7 @@ function wd() {
|
|
3007
3210
|
size: t.isHorizontal() ? s : e
|
3008
3211
|
}));
|
3009
3212
|
}
|
3010
|
-
function
|
3213
|
+
function kd() {
|
3011
3214
|
const t = this;
|
3012
3215
|
function s(C) {
|
3013
3216
|
return t.isHorizontal() ? C : {
|
@@ -3134,7 +3337,7 @@ function Md() {
|
|
3134
3337
|
c <= n.maxBackfaceHiddenSlides ? E || t.$el.addClass(C) : E && t.$el.removeClass(C);
|
3135
3338
|
}
|
3136
3339
|
}
|
3137
|
-
function
|
3340
|
+
function Pd(t) {
|
3138
3341
|
const s = this, e = [], n = s.virtual && s.params.virtual.enabled;
|
3139
3342
|
let i = 0, a;
|
3140
3343
|
typeof t == "number" ? s.setTransition(t) : t === !0 && s.setTransition(s.params.speed);
|
@@ -3160,12 +3363,12 @@ function Ld(t) {
|
|
3160
3363
|
}
|
3161
3364
|
(i || i === 0) && s.$wrapperEl.css("height", `${i}px`);
|
3162
3365
|
}
|
3163
|
-
function
|
3366
|
+
function Od() {
|
3164
3367
|
const t = this, s = t.slides;
|
3165
3368
|
for (let e = 0; e < s.length; e += 1)
|
3166
3369
|
s[e].swiperSlideOffset = t.isHorizontal() ? s[e].offsetLeft : s[e].offsetTop;
|
3167
3370
|
}
|
3168
|
-
function
|
3371
|
+
function Id(t = this && this.translate || 0) {
|
3169
3372
|
const s = this, e = s.params, {
|
3170
3373
|
slides: n,
|
3171
3374
|
rtlTranslate: i,
|
@@ -3185,7 +3388,7 @@ function Dd(t = this && this.translate || 0) {
|
|
3185
3388
|
}
|
3186
3389
|
s.visibleSlides = I(s.visibleSlides);
|
3187
3390
|
}
|
3188
|
-
function
|
3391
|
+
function zd(t) {
|
3189
3392
|
const s = this;
|
3190
3393
|
if (typeof t > "u") {
|
3191
3394
|
const d = s.rtlTranslate ? -1 : 1;
|
@@ -3204,7 +3407,7 @@ function kd(t) {
|
|
3204
3407
|
isEnd: o
|
3205
3408
|
}), (e.watchSlidesProgress || e.centeredSlides && e.autoHeight) && s.updateSlidesProgress(t), a && !u && s.emit("reachBeginning toEdge"), o && !r && s.emit("reachEnd toEdge"), (u && !a || r && !o) && s.emit("fromEdge"), s.emit("progress", i);
|
3206
3409
|
}
|
3207
|
-
function
|
3410
|
+
function _d() {
|
3208
3411
|
const t = this, {
|
3209
3412
|
slides: s,
|
3210
3413
|
params: e,
|
@@ -3220,7 +3423,7 @@ function Pd() {
|
|
3220
3423
|
let d = u.prevAll(`.${e.slideClass}`).eq(0).addClass(e.slidePrevClass);
|
3221
3424
|
e.loop && d.length === 0 && (d = s.eq(-1), d.addClass(e.slidePrevClass)), e.loop && (r.hasClass(e.slideDuplicateClass) ? n.children(`.${e.slideClass}:not(.${e.slideDuplicateClass})[data-swiper-slide-index="${r.attr("data-swiper-slide-index")}"]`).addClass(e.slideDuplicateNextClass) : n.children(`.${e.slideClass}.${e.slideDuplicateClass}[data-swiper-slide-index="${r.attr("data-swiper-slide-index")}"]`).addClass(e.slideDuplicateNextClass), d.hasClass(e.slideDuplicateClass) ? n.children(`.${e.slideClass}:not(.${e.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(e.slideDuplicatePrevClass) : n.children(`.${e.slideClass}.${e.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(e.slideDuplicatePrevClass)), t.emitSlidesClasses();
|
3222
3425
|
}
|
3223
|
-
function
|
3426
|
+
function Hd(t) {
|
3224
3427
|
const s = this, e = s.rtlTranslate ? s.translate : -s.translate, {
|
3225
3428
|
slidesGrid: n,
|
3226
3429
|
snapGrid: i,
|
@@ -3253,7 +3456,7 @@ function Od(t) {
|
|
3253
3456
|
activeIndex: d
|
3254
3457
|
}), s.emit("activeIndexChange"), s.emit("snapIndexChange"), u !== c && s.emit("realIndexChange"), (s.initialized || s.params.runCallbacksOnInit) && s.emit("slideChange");
|
3255
3458
|
}
|
3256
|
-
function
|
3459
|
+
function Nd(t) {
|
3257
3460
|
const s = this, e = s.params, n = I(t).closest(`.${e.slideClass}`)[0];
|
3258
3461
|
let i = !1, a;
|
3259
3462
|
if (n) {
|
@@ -3271,18 +3474,18 @@ function Id(t) {
|
|
3271
3474
|
}
|
3272
3475
|
e.slideToClickedSlide && s.clickedIndex !== void 0 && s.clickedIndex !== s.activeIndex && s.slideToClickedSlide();
|
3273
3476
|
}
|
3274
|
-
const
|
3275
|
-
updateSize:
|
3276
|
-
updateSlides:
|
3277
|
-
updateAutoHeight:
|
3278
|
-
updateSlidesOffset:
|
3279
|
-
updateSlidesProgress:
|
3280
|
-
updateProgress:
|
3281
|
-
updateSlidesClasses:
|
3282
|
-
updateActiveIndex:
|
3283
|
-
updateClickedSlide:
|
3477
|
+
const qd = {
|
3478
|
+
updateSize: Dd,
|
3479
|
+
updateSlides: kd,
|
3480
|
+
updateAutoHeight: Pd,
|
3481
|
+
updateSlidesOffset: Od,
|
3482
|
+
updateSlidesProgress: Id,
|
3483
|
+
updateProgress: zd,
|
3484
|
+
updateSlidesClasses: _d,
|
3485
|
+
updateActiveIndex: Hd,
|
3486
|
+
updateClickedSlide: Nd
|
3284
3487
|
};
|
3285
|
-
function
|
3488
|
+
function Bd(t = this.isHorizontal() ? "x" : "y") {
|
3286
3489
|
const s = this, {
|
3287
3490
|
params: e,
|
3288
3491
|
rtlTranslate: n,
|
@@ -3293,10 +3496,10 @@ function _d(t = this.isHorizontal() ? "x" : "y") {
|
|
3293
3496
|
return n ? -i : i;
|
3294
3497
|
if (e.cssMode)
|
3295
3498
|
return i;
|
3296
|
-
let o =
|
3499
|
+
let o = Yi(a[0], t);
|
3297
3500
|
return n && (o = -o), o || 0;
|
3298
3501
|
}
|
3299
|
-
function
|
3502
|
+
function Gd(t, s) {
|
3300
3503
|
const e = this, {
|
3301
3504
|
rtlTranslate: n,
|
3302
3505
|
params: i,
|
@@ -3311,13 +3514,13 @@ function Hd(t, s) {
|
|
3311
3514
|
const f = e.maxTranslate() - e.minTranslate();
|
3312
3515
|
f === 0 ? c = 0 : c = (t - e.minTranslate()) / f, c !== u && e.updateProgress(t), e.emit("setTranslate", e.translate, s);
|
3313
3516
|
}
|
3314
|
-
function
|
3517
|
+
function Rd() {
|
3315
3518
|
return -this.snapGrid[0];
|
3316
3519
|
}
|
3317
|
-
function
|
3520
|
+
function Wd() {
|
3318
3521
|
return -this.snapGrid[this.snapGrid.length - 1];
|
3319
3522
|
}
|
3320
|
-
function
|
3523
|
+
function jd(t = 0, s = this.params.speed, e = !0, n = !0, i) {
|
3321
3524
|
const a = this, {
|
3322
3525
|
params: o,
|
3323
3526
|
wrapperEl: u
|
@@ -3332,7 +3535,7 @@ function Bd(t = 0, s = this.params.speed, e = !0, n = !0, i) {
|
|
3332
3535
|
u[c ? "scrollLeft" : "scrollTop"] = -l;
|
3333
3536
|
else {
|
3334
3537
|
if (!a.support.smoothScroll)
|
3335
|
-
return
|
3538
|
+
return rr({
|
3336
3539
|
swiper: a,
|
3337
3540
|
targetPosition: -l,
|
3338
3541
|
side: c ? "left" : "top"
|
@@ -3348,18 +3551,18 @@ function Bd(t = 0, s = this.params.speed, e = !0, n = !0, i) {
|
|
3348
3551
|
!a || a.destroyed || f.target === this && (a.$wrapperEl[0].removeEventListener("transitionend", a.onTranslateToWrapperTransitionEnd), a.$wrapperEl[0].removeEventListener("webkitTransitionEnd", a.onTranslateToWrapperTransitionEnd), a.onTranslateToWrapperTransitionEnd = null, delete a.onTranslateToWrapperTransitionEnd, e && a.emit("transitionEnd"));
|
3349
3552
|
}), a.$wrapperEl[0].addEventListener("transitionend", a.onTranslateToWrapperTransitionEnd), a.$wrapperEl[0].addEventListener("webkitTransitionEnd", a.onTranslateToWrapperTransitionEnd))), !0;
|
3350
3553
|
}
|
3351
|
-
const
|
3352
|
-
getTranslate:
|
3353
|
-
setTranslate:
|
3354
|
-
minTranslate:
|
3355
|
-
maxTranslate:
|
3356
|
-
translateTo:
|
3554
|
+
const Xd = {
|
3555
|
+
getTranslate: Bd,
|
3556
|
+
setTranslate: Gd,
|
3557
|
+
minTranslate: Rd,
|
3558
|
+
maxTranslate: Wd,
|
3559
|
+
translateTo: jd
|
3357
3560
|
};
|
3358
|
-
function
|
3561
|
+
function Yd(t, s) {
|
3359
3562
|
const e = this;
|
3360
3563
|
e.params.cssMode || e.$wrapperEl.transition(t), e.emit("setTransition", t, s);
|
3361
3564
|
}
|
3362
|
-
function
|
3565
|
+
function cr({
|
3363
3566
|
swiper: t,
|
3364
3567
|
runCallbacks: s,
|
3365
3568
|
direction: e,
|
@@ -3378,34 +3581,34 @@ function Ko({
|
|
3378
3581
|
t.emit(`slideChangeTransition${n}`), o === "next" ? t.emit(`slideNextTransition${n}`) : t.emit(`slidePrevTransition${n}`);
|
3379
3582
|
}
|
3380
3583
|
}
|
3381
|
-
function
|
3584
|
+
function Fd(t = !0, s) {
|
3382
3585
|
const e = this, {
|
3383
3586
|
params: n
|
3384
3587
|
} = e;
|
3385
|
-
n.cssMode || (n.autoHeight && e.updateAutoHeight(),
|
3588
|
+
n.cssMode || (n.autoHeight && e.updateAutoHeight(), cr({
|
3386
3589
|
swiper: e,
|
3387
3590
|
runCallbacks: t,
|
3388
3591
|
direction: s,
|
3389
3592
|
step: "Start"
|
3390
3593
|
}));
|
3391
3594
|
}
|
3392
|
-
function
|
3595
|
+
function Vd(t = !0, s) {
|
3393
3596
|
const e = this, {
|
3394
3597
|
params: n
|
3395
3598
|
} = e;
|
3396
|
-
e.animating = !1, !n.cssMode && (e.setTransition(0),
|
3599
|
+
e.animating = !1, !n.cssMode && (e.setTransition(0), cr({
|
3397
3600
|
swiper: e,
|
3398
3601
|
runCallbacks: t,
|
3399
3602
|
direction: s,
|
3400
3603
|
step: "End"
|
3401
3604
|
}));
|
3402
3605
|
}
|
3403
|
-
const
|
3404
|
-
setTransition:
|
3405
|
-
transitionStart:
|
3406
|
-
transitionEnd:
|
3606
|
+
const Ud = {
|
3607
|
+
setTransition: Yd,
|
3608
|
+
transitionStart: Fd,
|
3609
|
+
transitionEnd: Vd
|
3407
3610
|
};
|
3408
|
-
function
|
3611
|
+
function Zd(t = 0, s = this.params.speed, e = !0, n, i) {
|
3409
3612
|
if (typeof t != "number" && typeof t != "string")
|
3410
3613
|
throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof t}] given.`);
|
3411
3614
|
if (typeof t == "string") {
|
@@ -3453,7 +3656,7 @@ function Yd(t = 0, s = this.params.speed, e = !0, n, i) {
|
|
3453
3656
|
});
|
3454
3657
|
} else {
|
3455
3658
|
if (!a.support.smoothScroll)
|
3456
|
-
return
|
3659
|
+
return rr({
|
3457
3660
|
swiper: a,
|
3458
3661
|
targetPosition: $,
|
3459
3662
|
side: y ? "left" : "top"
|
@@ -3469,7 +3672,7 @@ function Yd(t = 0, s = this.params.speed, e = !0, n, i) {
|
|
3469
3672
|
!a || a.destroyed || $.target === this && (a.$wrapperEl[0].removeEventListener("transitionend", a.onSlideToWrapperTransitionEnd), a.$wrapperEl[0].removeEventListener("webkitTransitionEnd", a.onSlideToWrapperTransitionEnd), a.onSlideToWrapperTransitionEnd = null, delete a.onSlideToWrapperTransitionEnd, a.transitionEnd(e, v));
|
3470
3673
|
}), a.$wrapperEl[0].addEventListener("transitionend", a.onSlideToWrapperTransitionEnd), a.$wrapperEl[0].addEventListener("webkitTransitionEnd", a.onSlideToWrapperTransitionEnd)), !0;
|
3471
3674
|
}
|
3472
|
-
function
|
3675
|
+
function Jd(t = 0, s = this.params.speed, e = !0, n) {
|
3473
3676
|
if (typeof t == "string") {
|
3474
3677
|
const o = parseInt(t, 10);
|
3475
3678
|
if (!isFinite(o))
|
@@ -3480,7 +3683,7 @@ function Fd(t = 0, s = this.params.speed, e = !0, n) {
|
|
3480
3683
|
let a = t;
|
3481
3684
|
return i.params.loop && (a += i.loopedSlides), i.slideTo(a, s, e, n);
|
3482
3685
|
}
|
3483
|
-
function
|
3686
|
+
function Kd(t = this.params.speed, s = !0, e) {
|
3484
3687
|
const n = this, {
|
3485
3688
|
animating: i,
|
3486
3689
|
enabled: a,
|
@@ -3498,7 +3701,7 @@ function Vd(t = this.params.speed, s = !0, e) {
|
|
3498
3701
|
}
|
3499
3702
|
return o.rewind && n.isEnd ? n.slideTo(0, t, s, e) : n.slideTo(n.activeIndex + r, t, s, e);
|
3500
3703
|
}
|
3501
|
-
function
|
3704
|
+
function Qd(t = this.params.speed, s = !0, e) {
|
3502
3705
|
const n = this, {
|
3503
3706
|
params: i,
|
3504
3707
|
animating: a,
|
@@ -3533,11 +3736,11 @@ function Ud(t = this.params.speed, s = !0, e) {
|
|
3533
3736
|
}
|
3534
3737
|
return n.slideTo(p, t, s, e);
|
3535
3738
|
}
|
3536
|
-
function
|
3739
|
+
function tu(t = this.params.speed, s = !0, e) {
|
3537
3740
|
const n = this;
|
3538
3741
|
return n.slideTo(n.activeIndex, t, s, e);
|
3539
3742
|
}
|
3540
|
-
function
|
3743
|
+
function eu(t = this.params.speed, s = !0, e, n = 0.5) {
|
3541
3744
|
const i = this;
|
3542
3745
|
let a = i.activeIndex;
|
3543
3746
|
const o = Math.min(i.params.slidesPerGroupSkip, a), u = o + Math.floor((a - o) / i.params.slidesPerGroup), r = i.rtlTranslate ? i.translate : -i.translate;
|
@@ -3550,7 +3753,7 @@ function Jd(t = this.params.speed, s = !0, e, n = 0.5) {
|
|
3550
3753
|
}
|
3551
3754
|
return a = Math.max(a, 0), a = Math.min(a, i.slidesGrid.length - 1), i.slideTo(a, t, s, e);
|
3552
3755
|
}
|
3553
|
-
function
|
3756
|
+
function su() {
|
3554
3757
|
const t = this, {
|
3555
3758
|
params: s,
|
3556
3759
|
$wrapperEl: e
|
@@ -3567,16 +3770,16 @@ function Kd() {
|
|
3567
3770
|
} else
|
3568
3771
|
t.slideTo(i);
|
3569
3772
|
}
|
3570
|
-
const
|
3571
|
-
slideTo:
|
3572
|
-
slideToLoop:
|
3573
|
-
slideNext:
|
3574
|
-
slidePrev:
|
3575
|
-
slideReset:
|
3576
|
-
slideToClosest:
|
3577
|
-
slideToClickedSlide:
|
3773
|
+
const nu = {
|
3774
|
+
slideTo: Zd,
|
3775
|
+
slideToLoop: Jd,
|
3776
|
+
slideNext: Kd,
|
3777
|
+
slidePrev: Qd,
|
3778
|
+
slideReset: tu,
|
3779
|
+
slideToClosest: eu,
|
3780
|
+
slideToClickedSlide: su
|
3578
3781
|
};
|
3579
|
-
function
|
3782
|
+
function iu() {
|
3580
3783
|
const t = this, s = ft(), {
|
3581
3784
|
params: e,
|
3582
3785
|
$wrapperEl: n
|
@@ -3607,7 +3810,7 @@ function tu() {
|
|
3607
3810
|
for (let r = o.length - 1; r >= 0; r -= 1)
|
3608
3811
|
i.prepend(I(o[r].cloneNode(!0)).addClass(e.slideDuplicateClass));
|
3609
3812
|
}
|
3610
|
-
function
|
3813
|
+
function au() {
|
3611
3814
|
const t = this;
|
3612
3815
|
t.emit("beforeLoopFix");
|
3613
3816
|
const {
|
@@ -3624,7 +3827,7 @@ function eu() {
|
|
3624
3827
|
const l = -o[s] - t.getTranslate();
|
3625
3828
|
s < n ? (r = e.length - n * 3 + s, r += n, t.slideTo(r, 0, !1, !0) && l !== 0 && t.setTranslate((u ? -t.translate : t.translate) - l)) : s >= e.length - n && (r = -e.length + s + n, r += n, t.slideTo(r, 0, !1, !0) && l !== 0 && t.setTranslate((u ? -t.translate : t.translate) - l)), t.allowSlidePrev = i, t.allowSlideNext = a, t.emit("loopFix");
|
3626
3829
|
}
|
3627
|
-
function
|
3830
|
+
function ou() {
|
3628
3831
|
const t = this, {
|
3629
3832
|
$wrapperEl: s,
|
3630
3833
|
params: e,
|
@@ -3632,27 +3835,27 @@ function su() {
|
|
3632
3835
|
} = t;
|
3633
3836
|
s.children(`.${e.slideClass}.${e.slideDuplicateClass},.${e.slideClass}.${e.slideBlankClass}`).remove(), n.removeAttr("data-swiper-slide-index");
|
3634
3837
|
}
|
3635
|
-
const
|
3636
|
-
loopCreate:
|
3637
|
-
loopFix:
|
3638
|
-
loopDestroy:
|
3838
|
+
const ru = {
|
3839
|
+
loopCreate: iu,
|
3840
|
+
loopFix: au,
|
3841
|
+
loopDestroy: ou
|
3639
3842
|
};
|
3640
|
-
function
|
3843
|
+
function lu(t) {
|
3641
3844
|
const s = this;
|
3642
3845
|
if (s.support.touch || !s.params.simulateTouch || s.params.watchOverflow && s.isLocked || s.params.cssMode)
|
3643
3846
|
return;
|
3644
3847
|
const e = s.params.touchEventsTarget === "container" ? s.el : s.wrapperEl;
|
3645
3848
|
e.style.cursor = "move", e.style.cursor = t ? "grabbing" : "grab";
|
3646
3849
|
}
|
3647
|
-
function
|
3850
|
+
function cu() {
|
3648
3851
|
const t = this;
|
3649
3852
|
t.support.touch || t.params.watchOverflow && t.isLocked || t.params.cssMode || (t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "");
|
3650
3853
|
}
|
3651
|
-
const
|
3652
|
-
setGrabCursor:
|
3653
|
-
unsetGrabCursor:
|
3854
|
+
const du = {
|
3855
|
+
setGrabCursor: lu,
|
3856
|
+
unsetGrabCursor: cu
|
3654
3857
|
};
|
3655
|
-
function
|
3858
|
+
function uu(t, s = this) {
|
3656
3859
|
function e(n) {
|
3657
3860
|
if (!n || n === ft() || n === lt())
|
3658
3861
|
return null;
|
@@ -3662,7 +3865,7 @@ function ru(t, s = this) {
|
|
3662
3865
|
}
|
3663
3866
|
return e(s);
|
3664
3867
|
}
|
3665
|
-
function
|
3868
|
+
function fu(t) {
|
3666
3869
|
const s = this, e = ft(), n = lt(), i = s.touchEventsData, {
|
3667
3870
|
params: a,
|
3668
3871
|
touches: o,
|
@@ -3679,7 +3882,7 @@ function lu(t) {
|
|
3679
3882
|
const l = !!a.noSwipingClass && a.noSwipingClass !== "", c = t.composedPath ? t.composedPath() : t.path;
|
3680
3883
|
l && r.target && r.target.shadowRoot && c && (d = I(c[0]));
|
3681
3884
|
const f = a.noSwipingSelector ? a.noSwipingSelector : `.${a.noSwipingClass}`, m = !!(r.target && r.target.shadowRoot);
|
3682
|
-
if (a.noSwiping && (m ?
|
3885
|
+
if (a.noSwiping && (m ? uu(f, d[0]) : d.closest(f)[0])) {
|
3683
3886
|
s.allowClick = !0;
|
3684
3887
|
return;
|
3685
3888
|
}
|
@@ -3706,7 +3909,7 @@ function lu(t) {
|
|
3706
3909
|
}
|
3707
3910
|
s.params.freeMode && s.params.freeMode.enabled && s.freeMode && s.animating && !a.cssMode && s.freeMode.onTouchStart(), s.emit("touchStart", r);
|
3708
3911
|
}
|
3709
|
-
function
|
3912
|
+
function pu(t) {
|
3710
3913
|
const s = ft(), e = this, n = e.touchEventsData, {
|
3711
3914
|
params: i,
|
3712
3915
|
touches: a,
|
@@ -3781,7 +3984,7 @@ function cu(t) {
|
|
3781
3984
|
}
|
3782
3985
|
!i.followFinger || i.cssMode || ((i.freeMode && i.freeMode.enabled && e.freeMode || i.watchSlidesProgress) && (e.updateActiveIndex(), e.updateSlidesClasses()), e.params.freeMode && i.freeMode.enabled && e.freeMode && e.freeMode.onTouchMove(), e.updateProgress(n.currentTranslate), e.setTranslate(n.currentTranslate));
|
3783
3986
|
}
|
3784
|
-
function
|
3987
|
+
function hu(t) {
|
3785
3988
|
const s = this, e = s.touchEventsData, {
|
3786
3989
|
params: n,
|
3787
3990
|
touches: i,
|
@@ -3840,7 +4043,7 @@ function du(t) {
|
|
3840
4043
|
s.navigation && (r.target === s.navigation.nextEl || r.target === s.navigation.prevEl) ? r.target === s.navigation.nextEl ? s.slideTo(f + b) : s.slideTo(f) : (s.swipeDirection === "next" && s.slideTo(g !== null ? g : f + b), s.swipeDirection === "prev" && s.slideTo(p !== null ? p : f));
|
3841
4044
|
}
|
3842
4045
|
}
|
3843
|
-
function
|
4046
|
+
function Xa() {
|
3844
4047
|
const t = this, {
|
3845
4048
|
params: s,
|
3846
4049
|
el: e
|
@@ -3855,11 +4058,11 @@ function ja() {
|
|
3855
4058
|
} = t;
|
3856
4059
|
t.allowSlideNext = !0, t.allowSlidePrev = !0, t.updateSize(), t.updateSlides(), t.updateSlidesClasses(), (s.slidesPerView === "auto" || s.slidesPerView > 1) && t.isEnd && !t.isBeginning && !t.params.centeredSlides ? t.slideTo(t.slides.length - 1, 0, !1, !0) : t.slideTo(t.activeIndex, 0, !1, !0), t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.run(), t.allowSlidePrev = i, t.allowSlideNext = n, t.params.watchOverflow && a !== t.snapGrid && t.checkOverflow();
|
3857
4060
|
}
|
3858
|
-
function
|
4061
|
+
function mu(t) {
|
3859
4062
|
const s = this;
|
3860
4063
|
s.enabled && (s.allowClick || (s.params.preventClicks && t.preventDefault(), s.params.preventClicksPropagation && s.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
|
3861
4064
|
}
|
3862
|
-
function
|
4065
|
+
function gu() {
|
3863
4066
|
const t = this, {
|
3864
4067
|
wrapperEl: s,
|
3865
4068
|
rtlTranslate: e,
|
@@ -3872,10 +4075,10 @@ function fu() {
|
|
3872
4075
|
const a = t.maxTranslate() - t.minTranslate();
|
3873
4076
|
a === 0 ? i = 0 : i = (t.translate - t.minTranslate()) / a, i !== t.progress && t.updateProgress(e ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
|
3874
4077
|
}
|
3875
|
-
let
|
3876
|
-
function
|
4078
|
+
let Ya = !1;
|
4079
|
+
function vu() {
|
3877
4080
|
}
|
3878
|
-
const
|
4081
|
+
const dr = (t, s) => {
|
3879
4082
|
const e = ft(), {
|
3880
4083
|
params: n,
|
3881
4084
|
touchEvents: i,
|
@@ -3896,23 +4099,23 @@ const Qo = (t, s) => {
|
|
3896
4099
|
capture: d
|
3897
4100
|
} : d), a[l](i.end, t.onTouchEnd, f), i.cancel && a[l](i.cancel, t.onTouchEnd, f);
|
3898
4101
|
}
|
3899
|
-
(n.preventClicks || n.preventClicksPropagation) && a[l]("click", t.onClick, !0), n.cssMode && o[l]("scroll", t.onScroll), n.updateOnWindowResize ? t[c](u.ios || u.android ? "resize orientationchange observerUpdate" : "resize observerUpdate",
|
4102
|
+
(n.preventClicks || n.preventClicksPropagation) && a[l]("click", t.onClick, !0), n.cssMode && o[l]("scroll", t.onScroll), n.updateOnWindowResize ? t[c](u.ios || u.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", Xa, !0) : t[c]("observerUpdate", Xa, !0);
|
3900
4103
|
};
|
3901
|
-
function
|
4104
|
+
function bu() {
|
3902
4105
|
const t = this, s = ft(), {
|
3903
4106
|
params: e,
|
3904
4107
|
support: n
|
3905
4108
|
} = t;
|
3906
|
-
t.onTouchStart =
|
4109
|
+
t.onTouchStart = fu.bind(t), t.onTouchMove = pu.bind(t), t.onTouchEnd = hu.bind(t), e.cssMode && (t.onScroll = gu.bind(t)), t.onClick = mu.bind(t), n.touch && !Ya && (s.addEventListener("touchstart", vu), Ya = !0), dr(t, "on");
|
3907
4110
|
}
|
3908
|
-
function
|
3909
|
-
|
4111
|
+
function yu() {
|
4112
|
+
dr(this, "off");
|
3910
4113
|
}
|
3911
|
-
const
|
3912
|
-
attachEvents:
|
3913
|
-
detachEvents:
|
3914
|
-
},
|
3915
|
-
function
|
4114
|
+
const Tu = {
|
4115
|
+
attachEvents: bu,
|
4116
|
+
detachEvents: yu
|
4117
|
+
}, Fa = (t, s) => t.grid && s.grid && s.grid.rows > 1;
|
4118
|
+
function Eu() {
|
3916
4119
|
const t = this, {
|
3917
4120
|
activeIndex: s,
|
3918
4121
|
initialized: e,
|
@@ -3925,7 +4128,7 @@ function vu() {
|
|
3925
4128
|
const u = t.getBreakpoint(o, t.params.breakpointsBase, t.el);
|
3926
4129
|
if (!u || t.currentBreakpoint === u)
|
3927
4130
|
return;
|
3928
|
-
const d = (u in o ? o[u] : void 0) || t.originalParams, l =
|
4131
|
+
const d = (u in o ? o[u] : void 0) || t.originalParams, l = Fa(t, i), c = Fa(t, d), f = i.enabled;
|
3929
4132
|
l && !c ? (a.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`), t.emitContainerClasses()) : !l && c && (a.addClass(`${i.containerModifierClass}grid`), (d.grid.fill && d.grid.fill === "column" || !d.grid.fill && i.grid.fill === "column") && a.addClass(`${i.containerModifierClass}grid-column`), t.emitContainerClasses()), ["navigation", "pagination", "scrollbar"].forEach((h) => {
|
3930
4133
|
const b = i[h] && i[h].enabled, v = d[h] && d[h].enabled;
|
3931
4134
|
b && !v && t[h].disable(), !b && v && t[h].enable();
|
@@ -3939,7 +4142,7 @@ function vu() {
|
|
3939
4142
|
allowSlidePrev: t.params.allowSlidePrev
|
3940
4143
|
}), f && !p ? t.disable() : !f && p && t.enable(), t.currentBreakpoint = u, t.emit("_beforeBreakpoint", d), g && e && (t.loopDestroy(), t.loopCreate(), t.updateSlides(), t.slideTo(s - n + t.loopedSlides, 0, !1)), t.emit("breakpoint", d);
|
3941
4144
|
}
|
3942
|
-
function
|
4145
|
+
function Su(t, s = "window", e) {
|
3943
4146
|
if (!t || s === "container" && !e)
|
3944
4147
|
return;
|
3945
4148
|
let n = !1;
|
@@ -3966,11 +4169,11 @@ function bu(t, s = "window", e) {
|
|
3966
4169
|
}
|
3967
4170
|
return n || "max";
|
3968
4171
|
}
|
3969
|
-
const
|
3970
|
-
setBreakpoint:
|
3971
|
-
getBreakpoint:
|
4172
|
+
const xu = {
|
4173
|
+
setBreakpoint: Eu,
|
4174
|
+
getBreakpoint: Su
|
3972
4175
|
};
|
3973
|
-
function
|
4176
|
+
function $u(t, s) {
|
3974
4177
|
const e = [];
|
3975
4178
|
return t.forEach((n) => {
|
3976
4179
|
typeof n == "object" ? Object.keys(n).forEach((i) => {
|
@@ -3978,7 +4181,7 @@ function Tu(t, s) {
|
|
3978
4181
|
}) : typeof n == "string" && e.push(s + n);
|
3979
4182
|
}), e;
|
3980
4183
|
}
|
3981
|
-
function
|
4184
|
+
function Cu() {
|
3982
4185
|
const t = this, {
|
3983
4186
|
classNames: s,
|
3984
4187
|
params: e,
|
@@ -3986,7 +4189,7 @@ function Eu() {
|
|
3986
4189
|
$el: i,
|
3987
4190
|
device: a,
|
3988
4191
|
support: o
|
3989
|
-
} = t, u =
|
4192
|
+
} = t, u = $u(["initialized", e.direction, {
|
3990
4193
|
"pointer-events": !o.touch
|
3991
4194
|
}, {
|
3992
4195
|
"free-mode": t.params.freeMode && e.freeMode.enabled
|
@@ -4011,18 +4214,18 @@ function Eu() {
|
|
4011
4214
|
}], e.containerModifierClass);
|
4012
4215
|
s.push(...u), i.addClass([...s].join(" ")), t.emitContainerClasses();
|
4013
4216
|
}
|
4014
|
-
function
|
4217
|
+
function wu() {
|
4015
4218
|
const t = this, {
|
4016
4219
|
$el: s,
|
4017
4220
|
classNames: e
|
4018
4221
|
} = t;
|
4019
4222
|
s.removeClass(e.join(" ")), t.emitContainerClasses();
|
4020
4223
|
}
|
4021
|
-
const
|
4022
|
-
addClasses:
|
4023
|
-
removeClasses:
|
4224
|
+
const Mu = {
|
4225
|
+
addClasses: Cu,
|
4226
|
+
removeClasses: wu
|
4024
4227
|
};
|
4025
|
-
function
|
4228
|
+
function Lu(t, s, e, n, i, a) {
|
4026
4229
|
const o = lt();
|
4027
4230
|
let u;
|
4028
4231
|
function r() {
|
@@ -4030,7 +4233,7 @@ function $u(t, s, e, n, i, a) {
|
|
4030
4233
|
}
|
4031
4234
|
!I(t).parent("picture")[0] && (!t.complete || !i) && s ? (u = new o.Image(), u.onload = r, u.onerror = r, n && (u.sizes = n), e && (u.srcset = e), s && (u.src = s)) : r();
|
4032
4235
|
}
|
4033
|
-
function
|
4236
|
+
function Au() {
|
4034
4237
|
const t = this;
|
4035
4238
|
t.imagesToLoad = t.$el.find("img");
|
4036
4239
|
function s() {
|
@@ -4041,11 +4244,11 @@ function Cu() {
|
|
4041
4244
|
t.loadImage(n, n.currentSrc || n.getAttribute("src"), n.srcset || n.getAttribute("srcset"), n.sizes || n.getAttribute("sizes"), !0, s);
|
4042
4245
|
}
|
4043
4246
|
}
|
4044
|
-
const
|
4045
|
-
loadImage:
|
4046
|
-
preloadImages:
|
4247
|
+
const Du = {
|
4248
|
+
loadImage: Lu,
|
4249
|
+
preloadImages: Au
|
4047
4250
|
};
|
4048
|
-
function
|
4251
|
+
function ku() {
|
4049
4252
|
const t = this, {
|
4050
4253
|
isLocked: s,
|
4051
4254
|
params: e
|
@@ -4059,9 +4262,9 @@ function Mu() {
|
|
4059
4262
|
t.isLocked = t.snapGrid.length === 1;
|
4060
4263
|
e.allowSlideNext === !0 && (t.allowSlideNext = !t.isLocked), e.allowSlidePrev === !0 && (t.allowSlidePrev = !t.isLocked), s && s !== t.isLocked && (t.isEnd = !1), s !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
|
4061
4264
|
}
|
4062
|
-
const
|
4063
|
-
checkOverflow:
|
4064
|
-
},
|
4265
|
+
const Pu = {
|
4266
|
+
checkOverflow: ku
|
4267
|
+
}, Va = {
|
4065
4268
|
init: !0,
|
4066
4269
|
direction: "horizontal",
|
4067
4270
|
touchEventsTarget: "wrapper",
|
@@ -4185,7 +4388,7 @@ const Lu = {
|
|
4185
4388
|
// Internals
|
4186
4389
|
_emitClasses: !1
|
4187
4390
|
};
|
4188
|
-
function
|
4391
|
+
function Ou(t, s) {
|
4189
4392
|
return function(n = {}) {
|
4190
4393
|
const i = Object.keys(n)[0], a = n[i];
|
4191
4394
|
if (typeof a != "object" || a === null) {
|
@@ -4205,20 +4408,20 @@ function Au(t, s) {
|
|
4205
4408
|
}), Ct(s, n);
|
4206
4409
|
};
|
4207
4410
|
}
|
4208
|
-
const
|
4209
|
-
eventsEmitter:
|
4210
|
-
update:
|
4211
|
-
translate:
|
4212
|
-
transition:
|
4213
|
-
slide:
|
4214
|
-
loop:
|
4215
|
-
grabCursor:
|
4216
|
-
events:
|
4217
|
-
breakpoints:
|
4218
|
-
checkOverflow:
|
4219
|
-
classes:
|
4220
|
-
images:
|
4221
|
-
},
|
4411
|
+
const Ai = {
|
4412
|
+
eventsEmitter: Ad,
|
4413
|
+
update: qd,
|
4414
|
+
translate: Xd,
|
4415
|
+
transition: Ud,
|
4416
|
+
slide: nu,
|
4417
|
+
loop: ru,
|
4418
|
+
grabCursor: du,
|
4419
|
+
events: Tu,
|
4420
|
+
breakpoints: xu,
|
4421
|
+
checkOverflow: Pu,
|
4422
|
+
classes: Mu,
|
4423
|
+
images: Du
|
4424
|
+
}, Di = {};
|
4222
4425
|
class $t {
|
4223
4426
|
constructor(...s) {
|
4224
4427
|
let e, n;
|
@@ -4232,22 +4435,22 @@ class $t {
|
|
4232
4435
|
}), u;
|
4233
4436
|
}
|
4234
4437
|
const i = this;
|
4235
|
-
i.__swiper__ = !0, i.support =
|
4438
|
+
i.__swiper__ = !0, i.support = lr(), i.device = $d({
|
4236
4439
|
userAgent: n.userAgent
|
4237
|
-
}), i.browser =
|
4440
|
+
}), i.browser = wd(), i.eventsListeners = {}, i.eventsAnyListeners = [], i.modules = [...i.__modules__], n.modules && Array.isArray(n.modules) && i.modules.push(...n.modules);
|
4238
4441
|
const a = {};
|
4239
4442
|
i.modules.forEach((u) => {
|
4240
4443
|
u({
|
4241
4444
|
swiper: i,
|
4242
|
-
extendParams:
|
4445
|
+
extendParams: Ou(n, a),
|
4243
4446
|
on: i.on.bind(i),
|
4244
4447
|
once: i.once.bind(i),
|
4245
4448
|
off: i.off.bind(i),
|
4246
4449
|
emit: i.emit.bind(i)
|
4247
4450
|
});
|
4248
4451
|
});
|
4249
|
-
const o = Ct({},
|
4250
|
-
return i.params = Ct({}, o,
|
4452
|
+
const o = Ct({}, Va, a);
|
4453
|
+
return i.params = Ct({}, o, Di, n), i.originalParams = Ct({}, i.params), i.passedParams = Ct({}, n), i.params && i.params.on && Object.keys(i.params.on).forEach((u) => {
|
4251
4454
|
i.on(u, i.params.on[u]);
|
4252
4455
|
}), i.params && i.params.onAny && i.onAny(i.params.onAny), i.$ = I, Object.assign(i, {
|
4253
4456
|
enabled: i.params.enabled,
|
@@ -4466,16 +4669,16 @@ class $t {
|
|
4466
4669
|
} = n;
|
4467
4670
|
return typeof n.params > "u" || n.destroyed || (n.emit("beforeDestroy"), n.initialized = !1, n.detachEvents(), i.loop && n.loopDestroy(), e && (n.removeClasses(), a.removeAttr("style"), o.removeAttr("style"), u && u.length && u.removeClass([i.slideVisibleClass, i.slideActiveClass, i.slideNextClass, i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")), n.emit("destroy"), Object.keys(n.eventsListeners).forEach((r) => {
|
4468
4671
|
n.off(r);
|
4469
|
-
}), s !== !1 && (n.$el[0].swiper = null,
|
4672
|
+
}), s !== !1 && (n.$el[0].swiper = null, yd(n)), n.destroyed = !0), null;
|
4470
4673
|
}
|
4471
4674
|
static extendDefaults(s) {
|
4472
|
-
Ct(
|
4675
|
+
Ct(Di, s);
|
4473
4676
|
}
|
4474
4677
|
static get extendedDefaults() {
|
4475
|
-
return
|
4678
|
+
return Di;
|
4476
4679
|
}
|
4477
4680
|
static get defaults() {
|
4478
|
-
return
|
4681
|
+
return Va;
|
4479
4682
|
}
|
4480
4683
|
static installModule(s) {
|
4481
4684
|
$t.prototype.__modules__ || ($t.prototype.__modules__ = []);
|
@@ -4486,13 +4689,13 @@ class $t {
|
|
4486
4689
|
return Array.isArray(s) ? (s.forEach((e) => $t.installModule(e)), $t) : ($t.installModule(s), $t);
|
4487
4690
|
}
|
4488
4691
|
}
|
4489
|
-
Object.keys(
|
4490
|
-
Object.keys(
|
4491
|
-
$t.prototype[s] =
|
4692
|
+
Object.keys(Ai).forEach((t) => {
|
4693
|
+
Object.keys(Ai[t]).forEach((s) => {
|
4694
|
+
$t.prototype[s] = Ai[t][s];
|
4492
4695
|
});
|
4493
4696
|
});
|
4494
|
-
$t.use([
|
4495
|
-
function
|
4697
|
+
$t.use([Md, Ld]);
|
4698
|
+
function Iu({
|
4496
4699
|
swiper: t,
|
4497
4700
|
extendParams: s,
|
4498
4701
|
on: e,
|
@@ -4645,7 +4848,7 @@ function Du({
|
|
4645
4848
|
update: o
|
4646
4849
|
});
|
4647
4850
|
}
|
4648
|
-
function
|
4851
|
+
function zu({
|
4649
4852
|
swiper: t,
|
4650
4853
|
extendParams: s,
|
4651
4854
|
on: e,
|
@@ -4709,7 +4912,7 @@ function ku({
|
|
4709
4912
|
disable: r
|
4710
4913
|
});
|
4711
4914
|
}
|
4712
|
-
function
|
4915
|
+
function _u({
|
4713
4916
|
swiper: t,
|
4714
4917
|
extendParams: s,
|
4715
4918
|
on: e,
|
@@ -4857,7 +5060,7 @@ function ha(t, s, e, n) {
|
|
4857
5060
|
}
|
4858
5061
|
}), e;
|
4859
5062
|
}
|
4860
|
-
function
|
5063
|
+
function Hu({
|
4861
5064
|
swiper: t,
|
4862
5065
|
extendParams: s,
|
4863
5066
|
on: e,
|
@@ -4964,7 +5167,7 @@ function Ou({
|
|
4964
5167
|
function Yt(t = "") {
|
4965
5168
|
return `.${t.trim().replace(/([\.:!\/])/g, "\\$1").replace(/ /g, ".")}`;
|
4966
5169
|
}
|
4967
|
-
function
|
5170
|
+
function Nu({
|
4968
5171
|
swiper: t,
|
4969
5172
|
extendParams: s,
|
4970
5173
|
on: e,
|
@@ -5146,7 +5349,7 @@ function Iu({
|
|
5146
5349
|
destroy: f
|
5147
5350
|
});
|
5148
5351
|
}
|
5149
|
-
function
|
5352
|
+
function qu({
|
5150
5353
|
swiper: t,
|
5151
5354
|
extendParams: s,
|
5152
5355
|
on: e,
|
@@ -5332,7 +5535,7 @@ function zu({
|
|
5332
5535
|
destroy: D
|
5333
5536
|
});
|
5334
5537
|
}
|
5335
|
-
function
|
5538
|
+
function Bu({
|
5336
5539
|
swiper: t,
|
5337
5540
|
extendParams: s,
|
5338
5541
|
on: e
|
@@ -5393,7 +5596,7 @@ function _u({
|
|
5393
5596
|
t.params.parallax.enabled && a(u);
|
5394
5597
|
});
|
5395
5598
|
}
|
5396
|
-
function
|
5599
|
+
function Gu({
|
5397
5600
|
swiper: t,
|
5398
5601
|
extendParams: s,
|
5399
5602
|
on: e,
|
@@ -5504,7 +5707,7 @@ function Hu({
|
|
5504
5707
|
const z = t.zoom;
|
5505
5708
|
if (!l.$imageEl || l.$imageEl.length === 0 || (t.allowClick = !1, !c.isTouched || !l.$slideEl))
|
5506
5709
|
return;
|
5507
|
-
c.isMoved || (c.width = l.$imageEl[0].offsetWidth, c.height = l.$imageEl[0].offsetHeight, c.startX =
|
5710
|
+
c.isMoved || (c.width = l.$imageEl[0].offsetWidth, c.height = l.$imageEl[0].offsetHeight, c.startX = Yi(l.$imageWrapEl[0], "x") || 0, c.startY = Yi(l.$imageWrapEl[0], "y") || 0, l.slideWidth = l.$slideEl[0].offsetWidth, l.slideHeight = l.$slideEl[0].offsetHeight, l.$imageWrapEl.transition(0));
|
5508
5711
|
const A = c.width * z.scale, G = c.height * z.scale;
|
5509
5712
|
if (!(A < l.slideWidth && G < l.slideHeight)) {
|
5510
5713
|
if (c.minX = Math.min(l.slideWidth / 2 - A / 2, 0), c.maxX = -c.minX, c.minY = Math.min(l.slideHeight / 2 - G / 2, 0), c.maxY = -c.minY, c.touchesCurrent.x = x.type === "touchmove" ? x.targetTouches[0].pageX : x.pageX, c.touchesCurrent.y = x.type === "touchmove" ? x.targetTouches[0].pageY : x.pageY, !c.isMoved && !o) {
|
@@ -5630,7 +5833,7 @@ function Hu({
|
|
5630
5833
|
toggle: D
|
5631
5834
|
});
|
5632
5835
|
}
|
5633
|
-
function
|
5836
|
+
function Ru({
|
5634
5837
|
swiper: t,
|
5635
5838
|
extendParams: s,
|
5636
5839
|
on: e,
|
@@ -5776,7 +5979,7 @@ function Nu({
|
|
5776
5979
|
loadInSlide: o
|
5777
5980
|
});
|
5778
5981
|
}
|
5779
|
-
function
|
5982
|
+
function Wu({
|
5780
5983
|
swiper: t,
|
5781
5984
|
extendParams: s,
|
5782
5985
|
on: e
|
@@ -5859,7 +6062,7 @@ function qu({
|
|
5859
6062
|
setTransition: o
|
5860
6063
|
});
|
5861
6064
|
}
|
5862
|
-
function
|
6065
|
+
function ju({
|
5863
6066
|
swiper: t,
|
5864
6067
|
extendParams: s,
|
5865
6068
|
on: e
|
@@ -6005,7 +6208,7 @@ function Bu({
|
|
6005
6208
|
t.params.a11y.enabled && E();
|
6006
6209
|
});
|
6007
6210
|
}
|
6008
|
-
function
|
6211
|
+
function Xu({
|
6009
6212
|
swiper: t,
|
6010
6213
|
extendParams: s,
|
6011
6214
|
on: e
|
@@ -6085,7 +6288,7 @@ function Gu({
|
|
6085
6288
|
n && t.params.cssMode && u(t.params.history.key, t.activeIndex);
|
6086
6289
|
});
|
6087
6290
|
}
|
6088
|
-
function
|
6291
|
+
function Yu({
|
6089
6292
|
swiper: t,
|
6090
6293
|
extendParams: s,
|
6091
6294
|
emit: e,
|
@@ -6144,7 +6347,7 @@ function Ru({
|
|
6144
6347
|
i && t.params.cssMode && r();
|
6145
6348
|
});
|
6146
6349
|
}
|
6147
|
-
function
|
6350
|
+
function Fu({
|
6148
6351
|
swiper: t,
|
6149
6352
|
extendParams: s,
|
6150
6353
|
on: e,
|
@@ -6228,7 +6431,7 @@ function Wu({
|
|
6228
6431
|
stop: u
|
6229
6432
|
});
|
6230
6433
|
}
|
6231
|
-
function
|
6434
|
+
function Vu({
|
6232
6435
|
swiper: t,
|
6233
6436
|
extendParams: s,
|
6234
6437
|
on: e
|
@@ -6330,7 +6533,7 @@ function ju({
|
|
6330
6533
|
update: u
|
6331
6534
|
});
|
6332
6535
|
}
|
6333
|
-
function
|
6536
|
+
function Uu({
|
6334
6537
|
swiper: t,
|
6335
6538
|
extendParams: s,
|
6336
6539
|
emit: e,
|
@@ -6447,7 +6650,7 @@ function Xu({
|
|
6447
6650
|
}
|
6448
6651
|
});
|
6449
6652
|
}
|
6450
|
-
function
|
6653
|
+
function Zu({
|
6451
6654
|
swiper: t,
|
6452
6655
|
extendParams: s
|
6453
6656
|
}) {
|
@@ -6510,7 +6713,7 @@ function Yu({
|
|
6510
6713
|
updateWrapperSize: u
|
6511
6714
|
};
|
6512
6715
|
}
|
6513
|
-
function
|
6716
|
+
function Ju(t) {
|
6514
6717
|
const s = this, {
|
6515
6718
|
$wrapperEl: e,
|
6516
6719
|
params: n
|
@@ -6522,7 +6725,7 @@ function Fu(t) {
|
|
6522
6725
|
e.append(t);
|
6523
6726
|
n.loop && s.loopCreate(), n.observer || s.update();
|
6524
6727
|
}
|
6525
|
-
function
|
6728
|
+
function Ku(t) {
|
6526
6729
|
const s = this, {
|
6527
6730
|
params: e,
|
6528
6731
|
$wrapperEl: n,
|
@@ -6538,7 +6741,7 @@ function Vu(t) {
|
|
6538
6741
|
n.prepend(t);
|
6539
6742
|
e.loop && s.loopCreate(), e.observer || s.update(), s.slideTo(a, 0, !1);
|
6540
6743
|
}
|
6541
|
-
function
|
6744
|
+
function Qu(t, s) {
|
6542
6745
|
const e = this, {
|
6543
6746
|
$wrapperEl: n,
|
6544
6747
|
params: i,
|
@@ -6571,7 +6774,7 @@ function Uu(t, s) {
|
|
6571
6774
|
n.append(d[l]);
|
6572
6775
|
i.loop && e.loopCreate(), i.observer || e.update(), i.loop ? e.slideTo(r + e.loopedSlides, 0, !1) : e.slideTo(r, 0, !1);
|
6573
6776
|
}
|
6574
|
-
function
|
6777
|
+
function tf(t) {
|
6575
6778
|
const s = this, {
|
6576
6779
|
params: e,
|
6577
6780
|
$wrapperEl: n,
|
@@ -6588,21 +6791,21 @@ function Zu(t) {
|
|
6588
6791
|
u = t, s.slides[u] && s.slides.eq(u).remove(), u < o && (o -= 1), o = Math.max(o, 0);
|
6589
6792
|
e.loop && s.loopCreate(), e.observer || s.update(), e.loop ? s.slideTo(o + s.loopedSlides, 0, !1) : s.slideTo(o, 0, !1);
|
6590
6793
|
}
|
6591
|
-
function
|
6794
|
+
function ef() {
|
6592
6795
|
const t = this, s = [];
|
6593
6796
|
for (let e = 0; e < t.slides.length; e += 1)
|
6594
6797
|
s.push(e);
|
6595
6798
|
t.removeSlide(s);
|
6596
6799
|
}
|
6597
|
-
function
|
6800
|
+
function sf({
|
6598
6801
|
swiper: t
|
6599
6802
|
}) {
|
6600
6803
|
Object.assign(t, {
|
6601
|
-
appendSlide:
|
6602
|
-
prependSlide:
|
6603
|
-
addSlide:
|
6604
|
-
removeSlide:
|
6605
|
-
removeAllSlides:
|
6804
|
+
appendSlide: Ju.bind(t),
|
6805
|
+
prependSlide: Ku.bind(t),
|
6806
|
+
addSlide: Qu.bind(t),
|
6807
|
+
removeSlide: tf.bind(t),
|
6808
|
+
removeAllSlides: ef.bind(t)
|
6606
6809
|
});
|
6607
6810
|
}
|
6608
6811
|
function qe(t) {
|
@@ -6672,7 +6875,7 @@ function ci({
|
|
6672
6875
|
});
|
6673
6876
|
}
|
6674
6877
|
}
|
6675
|
-
function
|
6878
|
+
function nf({
|
6676
6879
|
swiper: t,
|
6677
6880
|
extendParams: s,
|
6678
6881
|
on: e
|
@@ -6722,7 +6925,7 @@ function Qu({
|
|
6722
6925
|
})
|
6723
6926
|
});
|
6724
6927
|
}
|
6725
|
-
function
|
6928
|
+
function af({
|
6726
6929
|
swiper: t,
|
6727
6930
|
extendParams: s,
|
6728
6931
|
on: e
|
@@ -6815,7 +7018,7 @@ function ze(t, s, e) {
|
|
6815
7018
|
let a = i.children(`.${n}`);
|
6816
7019
|
return a.length || (a = I(`<div class="swiper-slide-shadow${e ? `-${e}` : ""}"></div>`), i.append(a)), a;
|
6817
7020
|
}
|
6818
|
-
function
|
7021
|
+
function of({
|
6819
7022
|
swiper: t,
|
6820
7023
|
extendParams: s,
|
6821
7024
|
on: e
|
@@ -6880,7 +7083,7 @@ function ef({
|
|
6880
7083
|
})
|
6881
7084
|
});
|
6882
7085
|
}
|
6883
|
-
function
|
7086
|
+
function rf({
|
6884
7087
|
swiper: t,
|
6885
7088
|
extendParams: s,
|
6886
7089
|
on: e
|
@@ -6931,7 +7134,7 @@ function sf({
|
|
6931
7134
|
})
|
6932
7135
|
});
|
6933
7136
|
}
|
6934
|
-
function
|
7137
|
+
function lf({
|
6935
7138
|
swiper: t,
|
6936
7139
|
extendParams: s,
|
6937
7140
|
on: e
|
@@ -7024,7 +7227,7 @@ function nf({
|
|
7024
7227
|
})
|
7025
7228
|
});
|
7026
7229
|
}
|
7027
|
-
function
|
7230
|
+
function cf({
|
7028
7231
|
swiper: t,
|
7029
7232
|
extendParams: s,
|
7030
7233
|
on: e
|
@@ -7094,48 +7297,48 @@ function af({
|
|
7094
7297
|
})
|
7095
7298
|
});
|
7096
7299
|
}
|
7097
|
-
const
|
7098
|
-
$t.use(
|
7300
|
+
const df = [Iu, zu, _u, Hu, Nu, qu, Bu, Gu, Ru, Wu, ju, Xu, Yu, Fu, Vu, Uu, Zu, sf, nf, af, of, rf, lf, cf];
|
7301
|
+
$t.use(df);
|
7099
7302
|
const Rt = (t, s, e) => {
|
7100
7303
|
t && (_e(t) ? t.forEach((n) => n.style[s] = e) : t.style[s] = e);
|
7101
7304
|
};
|
7102
|
-
var
|
7305
|
+
var ln, ur, cn, fr, rs, Fi, dn, pr, ls, Vi, un, hr;
|
7103
7306
|
class Of {
|
7104
7307
|
constructor(s, e = {}) {
|
7105
|
-
N(this,
|
7106
|
-
N(this,
|
7308
|
+
N(this, ln);
|
7309
|
+
N(this, cn);
|
7107
7310
|
// 取得元件上的設定值
|
7108
|
-
N(this,
|
7311
|
+
N(this, rs);
|
7109
7312
|
// 設置設定值的 CSS 樣式
|
7110
|
-
N(this,
|
7111
|
-
N(this,
|
7112
|
-
N(this,
|
7313
|
+
N(this, dn);
|
7314
|
+
N(this, ls);
|
7315
|
+
N(this, un);
|
7113
7316
|
!xe(s) || !mt(s) || (this.__storage__ = {
|
7114
7317
|
el: s,
|
7115
7318
|
options: e
|
7116
|
-
}, O(this,
|
7319
|
+
}, O(this, ln, ur).call(this));
|
7117
7320
|
}
|
7118
7321
|
update() {
|
7119
7322
|
const { elements: s } = this;
|
7120
7323
|
s.forEach((e) => {
|
7121
7324
|
e.querySelectorAll("._article").forEach((n) => {
|
7122
|
-
n.article = {}, n.article.parent = e, n.article.params = O(this,
|
7325
|
+
n.article = {}, n.article.parent = e, n.article.params = O(this, rs, Fi).call(this, n), O(this, ls, Vi).call(this, n);
|
7123
7326
|
});
|
7124
7327
|
});
|
7125
7328
|
}
|
7126
7329
|
}
|
7127
|
-
|
7330
|
+
ln = new WeakSet(), ur = function() {
|
7128
7331
|
const { el: s, options: e } = this.__storage__, { SETTINGS: n } = et.article4;
|
7129
|
-
this.elements = le(s), this.options = Object.assign({}, n, e), O(this,
|
7130
|
-
},
|
7332
|
+
this.elements = le(s), this.options = Object.assign({}, n, e), O(this, cn, fr).call(this);
|
7333
|
+
}, cn = new WeakSet(), fr = function() {
|
7131
7334
|
const { elements: s } = this;
|
7132
7335
|
s.forEach((e) => {
|
7133
7336
|
e.querySelectorAll("._article").forEach((n) => {
|
7134
7337
|
var i, a;
|
7135
|
-
n.article = {}, n.article.parent = e, n.article.params = O(this,
|
7338
|
+
n.article = {}, n.article.parent = e, n.article.params = O(this, rs, Fi).call(this, n), O(a = O(i = O(this, dn, pr).call(this, n), ls, Vi).call(i, n), un, hr).call(a, n);
|
7136
7339
|
});
|
7137
7340
|
});
|
7138
|
-
},
|
7341
|
+
}, rs = new WeakSet(), Fi = function(s) {
|
7139
7342
|
return {
|
7140
7343
|
// 元件本身
|
7141
7344
|
$selector: s,
|
@@ -7167,13 +7370,13 @@ Js = new WeakSet(), tr = function() {
|
|
7167
7370
|
buttonTextColor: s.getAttribute("button-textcolor"),
|
7168
7371
|
descriptionColor: s.getAttribute("description-color")
|
7169
7372
|
};
|
7170
|
-
},
|
7373
|
+
}, dn = new WeakSet(), pr = function(s) {
|
7171
7374
|
const { params: e } = s.article;
|
7172
7375
|
return Rt(e.$h, "color", e.hColor), Rt(e.$subH, "color", e.subHColor), Rt(e.$p, "color", e.pColor), Rt(e.$description, "color", e.descriptionColor), Rt(e.$button, "backgroundColor", e.buttonColor), Rt(e.$button, "color", e.buttonTextColor), e.buttonColorHover && (e.$button.appendChild(document.createElement("span")), Rt(e.$button.querySelector("span"), "backgroundColor", e.buttonColorHover)), Rt(e.$backgroundWrap, "backgroundColor", e.typeFullColor), Rt(e.$contentWrap, "backgroundColor", e.typeFullBoxColor), this;
|
7173
|
-
},
|
7376
|
+
}, ls = new WeakSet(), Vi = function(s) {
|
7174
7377
|
const { params: e } = s.article;
|
7175
|
-
return e.$video.length && new
|
7176
|
-
},
|
7378
|
+
return e.$video.length && new er(e.$video), this;
|
7379
|
+
}, un = new WeakSet(), hr = function(s) {
|
7177
7380
|
const { basic_rwd: e } = this.options, { params: n } = s.article;
|
7178
7381
|
if (!n.$swiper)
|
7179
7382
|
return;
|
@@ -7221,209 +7424,6 @@ Js = new WeakSet(), tr = function() {
|
|
7221
7424
|
const r = new $t(n.$swiper, o);
|
7222
7425
|
return s.article.swiperList = [], s.article.swiperList.push(r), this;
|
7223
7426
|
};
|
7224
|
-
const rf = (t) => {
|
7225
|
-
const { TEMPLATE: s } = et.video4, { childDom: e } = t, n = document.createElement("div");
|
7226
|
-
n.innerHTML = s();
|
7227
|
-
const i = n.querySelector(".player-wrapper");
|
7228
|
-
return [...e].forEach((a) => {
|
7229
|
-
i.append(a);
|
7230
|
-
}), n.children[0];
|
7231
|
-
};
|
7232
|
-
var en, ir, sn, ar, nn, or, an, rr, on, lr, rn, cr, ln, dr;
|
7233
|
-
class lf extends HTMLElement {
|
7234
|
-
constructor() {
|
7235
|
-
super();
|
7236
|
-
N(this, en);
|
7237
|
-
N(this, sn);
|
7238
|
-
N(this, nn);
|
7239
|
-
// youtube iframe
|
7240
|
-
N(this, an);
|
7241
|
-
// vimeo iframe
|
7242
|
-
N(this, on);
|
7243
|
-
// youku iframe
|
7244
|
-
N(this, rn);
|
7245
|
-
N(this, ln);
|
7246
|
-
O(this, en, ir).call(this);
|
7247
|
-
}
|
7248
|
-
play() {
|
7249
|
-
const { videoType: e } = this;
|
7250
|
-
switch (e) {
|
7251
|
-
case "youtubeAPI":
|
7252
|
-
break;
|
7253
|
-
case "youtube":
|
7254
|
-
this.querySelector("iframe").contentWindow.postMessage(JSON.stringify({ event: "command", func: "playVideo" }), "*");
|
7255
|
-
break;
|
7256
|
-
case "youkuAPI":
|
7257
|
-
break;
|
7258
|
-
case "youku":
|
7259
|
-
break;
|
7260
|
-
case "vimeo":
|
7261
|
-
this.querySelector("iframe").contentWindow.postMessage(JSON.stringify({ value: "true", method: "play" }), "*");
|
7262
|
-
break;
|
7263
|
-
}
|
7264
|
-
}
|
7265
|
-
pause() {
|
7266
|
-
const { videoType: e } = this;
|
7267
|
-
switch (e) {
|
7268
|
-
case "youtubeAPI":
|
7269
|
-
break;
|
7270
|
-
case "youtube":
|
7271
|
-
this.querySelector("iframe").contentWindow.postMessage(JSON.stringify({ event: "command", func: "pauseVideo" }), "*");
|
7272
|
-
break;
|
7273
|
-
case "youkuAPI":
|
7274
|
-
break;
|
7275
|
-
case "youku":
|
7276
|
-
break;
|
7277
|
-
case "vimeo":
|
7278
|
-
this.querySelector("iframe").contentWindow.postMessage(JSON.stringify({ value: "true", method: "pause" }), "*");
|
7279
|
-
break;
|
7280
|
-
}
|
7281
|
-
}
|
7282
|
-
}
|
7283
|
-
en = new WeakSet(), ir = function() {
|
7284
|
-
if (!this.getAttribute("video-id")) {
|
7285
|
-
Lt("videoPlayer", "video-render needs a ['video-id'] attribute to creat player.");
|
7286
|
-
return;
|
7287
|
-
}
|
7288
|
-
this.videoId = this.getAttribute("video-id"), this.videoType = this.getAttribute("video-type"), this.autoplay = this.getAttribute("video-autoplay"), O(this, sn, ar).call(this);
|
7289
|
-
}, sn = new WeakSet(), ar = function() {
|
7290
|
-
this.childDom = this.childNodes, this.template = rf(this), this.innerHTML = "", this.append(this.template), O(this, nn, or).call(this);
|
7291
|
-
}, nn = new WeakSet(), or = function() {
|
7292
|
-
const { videoType: e } = this;
|
7293
|
-
let n = "";
|
7294
|
-
switch (e) {
|
7295
|
-
case "youtubeAPI":
|
7296
|
-
break;
|
7297
|
-
case "youtube":
|
7298
|
-
n = O(this, an, rr).call(this);
|
7299
|
-
break;
|
7300
|
-
case "youkuAPI":
|
7301
|
-
break;
|
7302
|
-
case "youku":
|
7303
|
-
n = O(this, rn, cr).call(this);
|
7304
|
-
break;
|
7305
|
-
case "vimeo":
|
7306
|
-
n = O(this, on, lr).call(this);
|
7307
|
-
break;
|
7308
|
-
case "bilibili":
|
7309
|
-
n = O(this, ln, dr).call(this);
|
7310
|
-
break;
|
7311
|
-
}
|
7312
|
-
this.querySelector(".player-wrapper").insertAdjacentHTML(Mt.prepend, n);
|
7313
|
-
}, an = new WeakSet(), rr = function() {
|
7314
|
-
const { videoId: e, autoplay: n } = this;
|
7315
|
-
return `<iframe src="https://www.youtube.com/embed/${e}?rel=0&${n === "on" ? "autoplay=1" : ""}&mute=1&loop=1&enablejsapi=1" frameborder="0" allowfullscreen="0" volumn="0" allow="${n === "on" ? "autoplay;" : ""} encrypted-media; gyroscope; picture-in-picture;"></iframe>`;
|
7316
|
-
}, on = new WeakSet(), lr = function() {
|
7317
|
-
const { videoId: e, autoplay: n, hash: i } = this;
|
7318
|
-
return `<iframe src="https://player.vimeo.com/video/${e}?h=${i}&${n === "on" ? "autoplay=1" : ""}&loop=1&color=ffffff&title=0&byline=0&portrait=0" frameborder="0" allow="${n === "on" ? "autoplay;" : ""} fullscreen; picture-in-picture" allowfullscreen></iframe><script src="https://player.vimeo.com/api/player.js"><\/script>`;
|
7319
|
-
}, rn = new WeakSet(), cr = function() {
|
7320
|
-
const { videoId: e, autoplay: n } = this;
|
7321
|
-
return `<iframe src="https://player.youku.com/embed/${e}?rel=0&${n === "on" ? "autoplay=1" : ""}" frameborder=0 "allowfullscreen"></iframe>`;
|
7322
|
-
}, ln = new WeakSet(), dr = function() {
|
7323
|
-
const { videoId: e, autoplay: n } = this;
|
7324
|
-
return `<iframe src="//player.bilibili.com/player.html?bvid=${e}&page=1&as_wide=1&high_quality=1&danmaku=0" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>`;
|
7325
|
-
};
|
7326
|
-
customElements.get("video-player") || customElements.define("video-player", lf);
|
7327
|
-
const Va = (t) => t.videoId !== "" || typeof t.videoId < "u", cf = (t) => t.$selector.getAttribute("video4-active") === "on", Di = (t) => `<video-player video-id="${t.videoId}" video-type="${t.videoType}" video-autoplay="${t.videoAutoplay}"></video-player>`;
|
7328
|
-
var rs, Fi, cn, ur, dn, fr, ls, Vi, un, pr;
|
7329
|
-
class df {
|
7330
|
-
constructor(s, e = {}) {
|
7331
|
-
N(this, rs);
|
7332
|
-
N(this, cn);
|
7333
|
-
N(this, dn);
|
7334
|
-
N(this, ls);
|
7335
|
-
N(this, un);
|
7336
|
-
if (!xe(s) && !Qn(s) && !_e(s)) {
|
7337
|
-
ba("video4", `找不到該物件 -> ${s}`);
|
7338
|
-
return;
|
7339
|
-
}
|
7340
|
-
this.__storage__ = {
|
7341
|
-
el: s,
|
7342
|
-
options: e
|
7343
|
-
}, O(this, rs, Fi).call(this);
|
7344
|
-
}
|
7345
|
-
update() {
|
7346
|
-
O(this, rs, Fi).call(this);
|
7347
|
-
}
|
7348
|
-
}
|
7349
|
-
rs = new WeakSet(), Fi = function() {
|
7350
|
-
const { el: s, options: e } = this.__storage__, { SETTINGS: n, EVENTS: i } = et.video4;
|
7351
|
-
if (this.elements = le(s), this.options = Object.assign({}, n, e), this.__events__ = Object.assign({}, i), this.options.on)
|
7352
|
-
for (const [a, o] of Object.entries(this.options.on))
|
7353
|
-
this.__events__[a] = [o];
|
7354
|
-
O(this, cn, ur).call(this);
|
7355
|
-
}, cn = new WeakSet(), ur = function() {
|
7356
|
-
const { elements: s, options: e } = this;
|
7357
|
-
s.forEach((n) => {
|
7358
|
-
n.video = {}, n.video.instance = this, n.video.defaultOptions = e, n.video.params = O(this, un, pr).call(this, n), Va(n.video.params) && !cf(n.video.params) && (n.setAttribute("video4-active", "on"), O(this, dn, fr).call(this, n)), Va(n.video.params) || ba("video4", "無法取得影片 ID");
|
7359
|
-
}), this.emit("init");
|
7360
|
-
}, dn = new WeakSet(), fr = function(s) {
|
7361
|
-
const { LAYOUT: e } = et.video4, n = s.video.params, { $selector: i, videoLayoutNo: a, videoId: o, videoType: u, videoMode: r, videoButton: d, videoCover: l } = n;
|
7362
|
-
if (r === "onBox") {
|
7363
|
-
let c = null;
|
7364
|
-
if (l === "on") {
|
7365
|
-
s.classList.add("video4-cover"), i.querySelector("img") || (i.insertAdjacentHTML(Mt.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), Lt("video4", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構,若無結構則自動加入圖片結構"));
|
7366
|
-
const f = i.querySelector("img");
|
7367
|
-
f.insertAdjacentHTML(Mt.after, e[a]);
|
7368
|
-
const m = (f == null ? void 0 : f.getAttribute("src")) || (f == null ? void 0 : f.getAttribute("data-src"));
|
7369
|
-
!m && u == "youtube" ? f.setAttribute("src", `https://img.youtube.com/vi/${o}/0.jpg`) : !m && u == "vimeo" ? f.setAttribute("src", `https://vumbnail.com/${o}_large.jpg`) : Lt("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片");
|
7370
|
-
}
|
7371
|
-
d == "off" ? c = i : (c = i.querySelector(d) ?? i, i.querySelector(d) || Lt("video4", `找不到 videoButton 設定的 element -> '${d}' , 點擊物件轉移至 '${this.__storage__.el}'`)), c.video || (c.video = {}, c.video.params = n), c.video.eventHandler = O(this, ls, Vi), c.addEventListener("click", c.video.eventHandler);
|
7372
|
-
} else if (r === "onPage") {
|
7373
|
-
let c = null;
|
7374
|
-
if (l == "on") {
|
7375
|
-
s.classList.add("video4-cover"), i.querySelector("img") || (i.insertAdjacentHTML(Mt.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), Lt("video", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構"));
|
7376
|
-
const f = i.querySelector("img");
|
7377
|
-
f.insertAdjacentHTML(Mt.after, e[a]);
|
7378
|
-
const m = (f == null ? void 0 : f.getAttribute("src")) || (f == null ? void 0 : f.getAttribute("data-src"));
|
7379
|
-
!m && u == "youtube" ? f.setAttribute("src", `https://img.youtube.com/vi/${o}/0.jpg`) : !m && u == "vimeo" ? f.setAttribute("src", `https://vumbnail.com/${o}_large.jpg`) : m || Lt("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片"), d == "off" ? c = i : (c = i.querySelector(d) ?? i, i.querySelector(d) || Lt("video4", `找不到 videoButton 設定的 element -> '${d}', 點擊物件轉移至 '${this.__storage__.el}'`));
|
7380
|
-
} else {
|
7381
|
-
i.innerHTML = Di(n);
|
7382
|
-
return;
|
7383
|
-
}
|
7384
|
-
c.video || (c.video = {}, c.video.params = n), c.video.eventHandler = O(this, ls, Vi), c.addEventListener("click", c.video.eventHandler);
|
7385
|
-
}
|
7386
|
-
}, ls = new WeakSet(), Vi = function(s) {
|
7387
|
-
const { video: e } = this, { $selector: n, videoMode: i, videoTarget: a, videoTargetRoute: o } = e.params;
|
7388
|
-
if (i == "onBox") {
|
7389
|
-
const u = {
|
7390
|
-
target: a,
|
7391
|
-
route: o,
|
7392
|
-
on: {
|
7393
|
-
complete(r) {
|
7394
|
-
r.querySelector(".modal-content").insertAdjacentHTML("beforeend", Di(e.params));
|
7395
|
-
},
|
7396
|
-
open(r) {
|
7397
|
-
const d = r.querySelectorAll("[data-overlayscrollbars-viewport]");
|
7398
|
-
_g.lazy.update(), _g.scrollLock([...d]);
|
7399
|
-
},
|
7400
|
-
close(r) {
|
7401
|
-
const d = r.querySelectorAll("[data-overlayscrollbars-viewport]");
|
7402
|
-
_g.scrollUnlock([...d]);
|
7403
|
-
},
|
7404
|
-
destroy(r) {
|
7405
|
-
}
|
7406
|
-
}
|
7407
|
-
};
|
7408
|
-
es.open(u);
|
7409
|
-
} else
|
7410
|
-
i == "onPage" && (e.params.videoAutoplay = "on", n.innerHTML = Di(e.params));
|
7411
|
-
}, un = new WeakSet(), pr = function(s) {
|
7412
|
-
const { SETTINGS: e } = et.video4;
|
7413
|
-
return {
|
7414
|
-
$selector: s,
|
7415
|
-
videoId: s.getAttribute("video-id"),
|
7416
|
-
videoType: s.getAttribute("video-type"),
|
7417
|
-
videoAutoplay: s.getAttribute("video-autoplay") || e.videoAutoplay,
|
7418
|
-
videoMode: s.getAttribute("video-mode") || e.videoMode,
|
7419
|
-
videoButton: s.getAttribute("video-button") || e.videoButton,
|
7420
|
-
videoCover: s.getAttribute("video-cover") || e.videoCover,
|
7421
|
-
videoLayoutNo: s.getAttribute("video-layout-no") || e.videoLayoutNo,
|
7422
|
-
videoTarget: s.getAttribute("video-target") || e.videoTarget,
|
7423
|
-
videoTargetRoute: s.getAttribute("video-target-route") || e.videoTargetRoute
|
7424
|
-
};
|
7425
|
-
};
|
7426
|
-
Object.assign(df.prototype, ce);
|
7427
7427
|
const Ua = (t) => {
|
7428
7428
|
if (t == "facebook")
|
7429
7429
|
return "https://www.facebook.com/sharer/sharer.php?u=";
|
@@ -7436,7 +7436,7 @@ const Ua = (t) => {
|
|
7436
7436
|
if (t == "telegram")
|
7437
7437
|
return "https://telegram.me/share/url?url=";
|
7438
7438
|
};
|
7439
|
-
var fn,
|
7439
|
+
var fn, mr, pn, gr, hn, vr;
|
7440
7440
|
class If {
|
7441
7441
|
constructor(s, e = {}) {
|
7442
7442
|
N(this, fn);
|
@@ -7445,20 +7445,20 @@ class If {
|
|
7445
7445
|
this.__storage__ = {
|
7446
7446
|
el: s,
|
7447
7447
|
options: e
|
7448
|
-
}, O(this, fn,
|
7448
|
+
}, O(this, fn, mr).call(this);
|
7449
7449
|
}
|
7450
7450
|
}
|
7451
|
-
fn = new WeakSet(),
|
7451
|
+
fn = new WeakSet(), mr = function() {
|
7452
7452
|
const { el: s, options: e } = this.__storage__, { SETTINGS: n } = et.share4;
|
7453
|
-
!xe(s) || !mt(s) || (this.elements = le(s), this.options = Object.assign({}, n, e), O(this, pn,
|
7454
|
-
}, pn = new WeakSet(),
|
7453
|
+
!xe(s) || !mt(s) || (this.elements = le(s), this.options = Object.assign({}, n, e), O(this, pn, gr).call(this));
|
7454
|
+
}, pn = new WeakSet(), gr = function() {
|
7455
7455
|
const { elements: s, options: e } = this;
|
7456
7456
|
s.forEach((n) => {
|
7457
7457
|
n.querySelectorAll("[share-target]").forEach((i) => {
|
7458
|
-
i.share = {}, i.share.instance = this, i.share.params = e, i.share.eventHandler = O(this, hn,
|
7458
|
+
i.share = {}, i.share.instance = this, i.share.params = e, i.share.eventHandler = O(this, hn, vr), i.addEventListener("click", i.share.eventHandler);
|
7459
7459
|
});
|
7460
7460
|
});
|
7461
|
-
}, hn = new WeakSet(),
|
7461
|
+
}, hn = new WeakSet(), vr = function() {
|
7462
7462
|
const { eventHandler: s, params: e } = this.share, n = this.getAttribute("share-target"), i = {
|
7463
7463
|
source: this.getAttribute("utm-source"),
|
7464
7464
|
medium: this.getAttribute("utm-medium"),
|
@@ -8417,7 +8417,7 @@ const ma = {
|
|
8417
8417
|
const a = document.createElement("li");
|
8418
8418
|
a.textContent = n[0], a.setAttribute("data-option", n[0]), t.querySelector(".dropdown-list").append(a);
|
8419
8419
|
});
|
8420
|
-
},
|
8420
|
+
}, br = () => {
|
8421
8421
|
le('dropdown-el[d4-status="open"]').forEach((s) => {
|
8422
8422
|
s.close();
|
8423
8423
|
});
|
@@ -8431,9 +8431,9 @@ const ma = {
|
|
8431
8431
|
};
|
8432
8432
|
mf();
|
8433
8433
|
document.addEventListener("click", function() {
|
8434
|
-
|
8434
|
+
br();
|
8435
8435
|
});
|
8436
|
-
var mn,
|
8436
|
+
var mn, yr, gn, Tr, vn, Er, bn, Sr;
|
8437
8437
|
class gf extends HTMLElement {
|
8438
8438
|
constructor() {
|
8439
8439
|
super();
|
@@ -8486,11 +8486,11 @@ class gf extends HTMLElement {
|
|
8486
8486
|
}
|
8487
8487
|
connectedCallback() {
|
8488
8488
|
const e = this;
|
8489
|
-
e.initialize || e.classList.contains("d4-initialize") || (e.initialize = !0, O(this, mn,
|
8489
|
+
e.initialize || e.classList.contains("d4-initialize") || (e.initialize = !0, O(this, mn, yr).call(this));
|
8490
8490
|
}
|
8491
8491
|
open() {
|
8492
8492
|
const e = this, n = e.querySelector(".dropdown-scroller").clientHeight, i = e.classList.contains("filter"), a = () => i ? e.querySelector(".filter-bar").clientHeight + n : n;
|
8493
|
-
return
|
8493
|
+
return br(), e.setAttribute("d4-status", "open"), e.setAttribute("d4-default-height", a()), e.style.cssText = `--maxHeight: ${a()}px;`, e.s.dropdownEl.style.cssText = `
|
8494
8494
|
height: ${a()}px;
|
8495
8495
|
z-index: 2;
|
8496
8496
|
`, this;
|
@@ -8512,11 +8512,11 @@ class gf extends HTMLElement {
|
|
8512
8512
|
this.__events__.selectOption();
|
8513
8513
|
}
|
8514
8514
|
}
|
8515
|
-
mn = new WeakSet(),
|
8516
|
-
this.s = {}, this.__events__ = {}, this.hasAttribute("d4-status") || this.setAttribute("d4-status", "close"), this.hasAttribute("d4-value") || this.setAttribute("d4-value", ""), O(this, gn,
|
8517
|
-
}, gn = new WeakSet(),
|
8518
|
-
this.s.childDom = this.childNodes, this.s.template = uf(this), this.innerHTML = "", this.append(this.s.template), O(this, vn,
|
8519
|
-
}, vn = new WeakSet(),
|
8515
|
+
mn = new WeakSet(), yr = function() {
|
8516
|
+
this.s = {}, this.__events__ = {}, this.hasAttribute("d4-status") || this.setAttribute("d4-status", "close"), this.hasAttribute("d4-value") || this.setAttribute("d4-value", ""), O(this, gn, Tr).call(this);
|
8517
|
+
}, gn = new WeakSet(), Tr = function() {
|
8518
|
+
this.s.childDom = this.childNodes, this.s.template = uf(this), this.innerHTML = "", this.append(this.s.template), O(this, vn, Er).call(this);
|
8519
|
+
}, vn = new WeakSet(), Er = function() {
|
8520
8520
|
var i;
|
8521
8521
|
const e = this;
|
8522
8522
|
e.s.allLi = e.querySelectorAll(".dropdown-list li"), e.s.selectDisplayEl = e.querySelector(".select-display"), e.s.dropdownEl = e.querySelector(".dropdown"), e.s.selectType = e.hasAttribute("multiple") ? "multiple" : "single", e.s.cityLang = e.hasAttribute("city-lang") ? e.getAttribute("city-lang") : "zh-tw", pf(e), e.s.subDropdownTotalH = 0;
|
@@ -8561,8 +8561,8 @@ mn = new WeakSet(), br = function() {
|
|
8561
8561
|
};
|
8562
8562
|
break;
|
8563
8563
|
}
|
8564
|
-
Xt(e, e.s.value.index), O(i = e, bn,
|
8565
|
-
}, bn = new WeakSet(),
|
8564
|
+
Xt(e, e.s.value.index), O(i = e, bn, Sr).call(i), e.classList.add("d4-initialize");
|
8565
|
+
}, bn = new WeakSet(), Sr = function() {
|
8566
8566
|
const e = this;
|
8567
8567
|
e.__events__.dropdownToggle = () => {
|
8568
8568
|
e.addEventListener("click", function(n) {
|
@@ -8777,7 +8777,7 @@ function bf(t) {
|
|
8777
8777
|
s && clearTimeout(s), s = setTimeout(t, 200, e);
|
8778
8778
|
};
|
8779
8779
|
}
|
8780
|
-
var yn,
|
8780
|
+
var yn, xr, Tn, $r, En, Cr, Sn, wr;
|
8781
8781
|
class zf extends HTMLElement {
|
8782
8782
|
constructor() {
|
8783
8783
|
super();
|
@@ -8793,7 +8793,7 @@ class zf extends HTMLElement {
|
|
8793
8793
|
attributeChangedCallback(e, n, i) {
|
8794
8794
|
}
|
8795
8795
|
connectedCallback() {
|
8796
|
-
this.initialize || (this.initialize = !0, O(this, yn,
|
8796
|
+
this.initialize || (this.initialize = !0, O(this, yn, xr).call(this));
|
8797
8797
|
}
|
8798
8798
|
play() {
|
8799
8799
|
this.s.animation.play(), this.s.animateEl.classList.add("start"), this.s.options.continual && (this.s.cloneAnimation.play(), this.s.cloneAnimateEl.classList.add("start"));
|
@@ -8802,7 +8802,7 @@ class zf extends HTMLElement {
|
|
8802
8802
|
this.s.animation.pause(), this.s.options.continual && this.s.cloneAnimation.pause();
|
8803
8803
|
}
|
8804
8804
|
}
|
8805
|
-
yn = new WeakSet(),
|
8805
|
+
yn = new WeakSet(), xr = function() {
|
8806
8806
|
const e = {
|
8807
8807
|
direction: this.getAttribute("direction") || et.marquee4.SETTINGS.direction,
|
8808
8808
|
// up / down / left / right
|
@@ -8819,8 +8819,8 @@ yn = new WeakSet(), Sr = function() {
|
|
8819
8819
|
// true / false
|
8820
8820
|
gap: Number(this.getAttribute("gap")) || et.marquee4.SETTINGS.gap
|
8821
8821
|
};
|
8822
|
-
this.s = {}, this.s.options = e, this.s.nowDuration = Za(this), vf(this), O(this, Tn,
|
8823
|
-
}, Tn = new WeakSet(),
|
8822
|
+
this.s = {}, this.s.options = e, this.s.nowDuration = Za(this), vf(this), O(this, Tn, $r).call(this);
|
8823
|
+
}, Tn = new WeakSet(), $r = function() {
|
8824
8824
|
const { direction: e, continual: n, gap: i } = this.s.options;
|
8825
8825
|
switch (e) {
|
8826
8826
|
case "left":
|
@@ -8832,8 +8832,8 @@ yn = new WeakSet(), Sr = function() {
|
|
8832
8832
|
n ? this.style.cssText = `height: ${this.s.animateEl.clientHeight}px;--continual-gap: ${i}px;` : this.style.cssText = `min-height: ${this.s.animateEl.clientHeight}px;--continual-gap: ${i}px;`;
|
8833
8833
|
break;
|
8834
8834
|
}
|
8835
|
-
O(this, En,
|
8836
|
-
}, En = new WeakSet(),
|
8835
|
+
O(this, En, Cr).call(this), O(this, Sn, wr).call(this), n && this.classList.add("continual"), this.classList.add("m4-initialize");
|
8836
|
+
}, En = new WeakSet(), Cr = function() {
|
8837
8837
|
const e = this, { direction: n, behavior: i, duration: a, autoplay: o, pauseOnMouseenter: u, continual: r } = e.s.options;
|
8838
8838
|
let d;
|
8839
8839
|
function l() {
|
@@ -8898,7 +8898,7 @@ yn = new WeakSet(), Sr = function() {
|
|
8898
8898
|
}), e.addEventListener("mouseleave", function() {
|
8899
8899
|
e.s.animation && u && e.s.animation.playState === "paused" && e.play();
|
8900
8900
|
});
|
8901
|
-
}, Sn = new WeakSet(),
|
8901
|
+
}, Sn = new WeakSet(), wr = function() {
|
8902
8902
|
const e = this;
|
8903
8903
|
function n() {
|
8904
8904
|
const i = e.s.animation.startTime, a = e.s.cloneAnimation ? e.s.cloneAnimation.startTime : null;
|
@@ -8935,7 +8935,7 @@ const Bs = function(t) {
|
|
8935
8935
|
}
|
8936
8936
|
t.classList.remove(s);
|
8937
8937
|
};
|
8938
|
-
var xn,
|
8938
|
+
var xn, Mr, $n, Lr, Cn, Ar, cs, Ui, Pe, Ms, wn, Dr;
|
8939
8939
|
class Ja {
|
8940
8940
|
constructor(s) {
|
8941
8941
|
// 初始化
|
@@ -8950,7 +8950,7 @@ class Ja {
|
|
8950
8950
|
N(this, Pe);
|
8951
8951
|
// 選項事件綁定
|
8952
8952
|
N(this, wn);
|
8953
|
-
this.$element = s, this.option = s.s.option.drag, O(this, xn,
|
8953
|
+
this.$element = s, this.option = s.s.option.drag, O(this, xn, Mr).call(this);
|
8954
8954
|
}
|
8955
8955
|
// 更新 active 位置
|
8956
8956
|
update(s) {
|
@@ -8964,7 +8964,7 @@ class Ja {
|
|
8964
8964
|
}
|
8965
8965
|
}
|
8966
8966
|
}
|
8967
|
-
xn = new WeakSet(),
|
8967
|
+
xn = new WeakSet(), Mr = function() {
|
8968
8968
|
var n, i, a, o, u, r;
|
8969
8969
|
const s = this;
|
8970
8970
|
if (!s.$element)
|
@@ -8974,7 +8974,7 @@ xn = new WeakSet(), wr = function() {
|
|
8974
8974
|
var d, l;
|
8975
8975
|
O(d = s, cs, Ui).call(d), O(l = s, Pe, Ms).call(l);
|
8976
8976
|
};
|
8977
|
-
s.$wrapper.removeEventListener("scroll", e), s.$wrapper.addEventListener("scroll", e), window.removeEventListener("resize", Bs(e)), window.addEventListener("resize", Bs(e)), (s.option.draggable || s.$element.s.type == "collapse") && O(n = s, Cn,
|
8977
|
+
s.$wrapper.removeEventListener("scroll", e), s.$wrapper.addEventListener("scroll", e), window.removeEventListener("resize", Bs(e)), window.addEventListener("resize", Bs(e)), (s.option.draggable || s.$element.s.type == "collapse") && O(n = s, Cn, Ar).call(n), s.option.navigation && s.$element.s.type !== "collapse" && (s.$container.insertAdjacentHTML(
|
8978
8978
|
Mt.prepend,
|
8979
8979
|
`<div class="navigation">
|
8980
8980
|
<div class="button prev">
|
@@ -8984,8 +8984,8 @@ xn = new WeakSet(), wr = function() {
|
|
8984
8984
|
<div></div>
|
8985
8985
|
</div>
|
8986
8986
|
</div>`
|
8987
|
-
), s.$button = (i = s.$container) == null ? void 0 : i.querySelectorAll(".button"), O(a = s, $n,
|
8988
|
-
}, $n = new WeakSet(),
|
8987
|
+
), s.$button = (i = s.$container) == null ? void 0 : i.querySelectorAll(".button"), O(a = s, $n, Lr).call(a)), O(o = s, cs, Ui).call(o), O(u = s, Pe, Ms).call(u), O(r = s, wn, Dr).call(r);
|
8988
|
+
}, $n = new WeakSet(), Lr = function() {
|
8989
8989
|
const s = this, { $wrapper: e, $button: n } = s, i = function() {
|
8990
8990
|
const a = this.classList.contains("next"), o = parseInt(e.getBoundingClientRect().width * 0.7);
|
8991
8991
|
e.scrollTo({
|
@@ -8999,7 +8999,7 @@ xn = new WeakSet(), wr = function() {
|
|
8999
8999
|
n.forEach((a) => {
|
9000
9000
|
a.removeEventListener("click", i), a.addEventListener("click", i);
|
9001
9001
|
});
|
9002
|
-
}, Cn = new WeakSet(),
|
9002
|
+
}, Cn = new WeakSet(), Ar = function() {
|
9003
9003
|
const { $wrapper: s } = this;
|
9004
9004
|
let e = !1, n = !1, i = 0, a = 0;
|
9005
9005
|
const o = function(c) {
|
@@ -9054,7 +9054,7 @@ xn = new WeakSet(), wr = function() {
|
|
9054
9054
|
}
|
9055
9055
|
jt(o, "hide");
|
9056
9056
|
}) : jt(e, "hide");
|
9057
|
-
}, wn = new WeakSet(),
|
9057
|
+
}, wn = new WeakSet(), Dr = function() {
|
9058
9058
|
const { $element: s } = this, e = (i) => {
|
9059
9059
|
if (this.option.selected) {
|
9060
9060
|
const a = i.getAttribute("data-option").trim();
|
@@ -9068,7 +9068,7 @@ xn = new WeakSet(), wr = function() {
|
|
9068
9068
|
i.removeEventListener("click", n), i.addEventListener("click", n);
|
9069
9069
|
});
|
9070
9070
|
};
|
9071
|
-
var Mn,
|
9071
|
+
var Mn, kr, Ln, Pr, An, Or, Dn, Ir;
|
9072
9072
|
class yf {
|
9073
9073
|
constructor(s) {
|
9074
9074
|
// 初始化
|
@@ -9079,20 +9079,20 @@ class yf {
|
|
9079
9079
|
N(this, An);
|
9080
9080
|
// 選項事件綁定
|
9081
9081
|
N(this, Dn);
|
9082
|
-
this.$element = s, this.option = s.s.option.collapse, O(this, Mn,
|
9082
|
+
this.$element = s, this.option = s.s.option.collapse, O(this, Mn, kr).call(this);
|
9083
9083
|
}
|
9084
9084
|
}
|
9085
|
-
Mn = new WeakSet(),
|
9086
|
-
this.$element && (this.$container = this.$element.querySelector(".collapse-container"), this.$wrapper = this.$container.querySelector(".wrapper"), O(this, Ln,
|
9087
|
-
}, Ln = new WeakSet(),
|
9085
|
+
Mn = new WeakSet(), kr = function() {
|
9086
|
+
this.$element && (this.$container = this.$element.querySelector(".collapse-container"), this.$wrapper = this.$container.querySelector(".wrapper"), O(this, Ln, Pr).call(this) && O(this, An, Or).call(this), O(this, Dn, Ir).call(this));
|
9087
|
+
}, Ln = new WeakSet(), Pr = function() {
|
9088
9088
|
const s = this.$element.querySelector(".drag-container"), e = s.querySelector(".wrapper");
|
9089
9089
|
return e.scrollWidth - e.clientWidth > 0 ? (s.insertAdjacentHTML(Mt.append, '<div class="open-collapse"></div>'), this.$button = s.querySelector(".open-collapse"), !0) : !1;
|
9090
|
-
}, An = new WeakSet(),
|
9090
|
+
}, An = new WeakSet(), Or = function() {
|
9091
9091
|
const { $element: s, $button: e } = this, n = function() {
|
9092
9092
|
s.classList.contains("expand") ? s.classList.remove("expand") : s.classList.add("expand");
|
9093
9093
|
};
|
9094
9094
|
e.removeEventListener("click", n), e.addEventListener("click", n);
|
9095
|
-
}, Dn = new WeakSet(),
|
9095
|
+
}, Dn = new WeakSet(), Ir = function() {
|
9096
9096
|
const { $element: s } = this, e = (i, a) => {
|
9097
9097
|
if (a && (s != null && s.classList.contains("expand") ? s == null || s.classList.remove("expand") : s == null || s.classList.add("expand")), this.option.selected) {
|
9098
9098
|
const o = i.getAttribute("data-option").trim();
|
@@ -9110,7 +9110,7 @@ const Tf = (t) => {
|
|
9110
9110
|
const { type: s, option: e, originalDomString: n } = t.s, i = document.createElement("div");
|
9111
9111
|
return s == "drag" && (i.innerHTML = et.multipurpose4.TEMPLATE[s]().trim(), i.querySelector(".drag-container .wrapper").insertAdjacentHTML(Mt.append, n)), s == "collapse" && (i.innerHTML = et.multipurpose4.TEMPLATE[s](e == null ? void 0 : e.collapse).trim(), i.querySelector(".drag-container .wrapper").insertAdjacentHTML(Mt.append, n), i.querySelector(".collapse-container .wrapper").insertAdjacentHTML(Mt.append, n)), s == "dropdown" && (i.innerHTML = et.multipurpose4.TEMPLATE[s](e == null ? void 0 : e.dropdown).trim(), i.querySelector("dropdown-el").insertAdjacentHTML(Mt.append, n)), i.children;
|
9112
9112
|
};
|
9113
|
-
var kn,
|
9113
|
+
var kn, zr, Pn, _r, ds, Zi, Oe, Ls;
|
9114
9114
|
class _f extends HTMLElement {
|
9115
9115
|
constructor() {
|
9116
9116
|
super();
|
@@ -9148,13 +9148,13 @@ class _f extends HTMLElement {
|
|
9148
9148
|
}
|
9149
9149
|
}
|
9150
9150
|
connectedCallback() {
|
9151
|
-
this.initialize || this.classList.contains("m4-init") || (this.initialize = !0, O(this, kn,
|
9151
|
+
this.initialize || this.classList.contains("m4-init") || (this.initialize = !0, O(this, kn, zr).call(this));
|
9152
9152
|
}
|
9153
9153
|
update() {
|
9154
9154
|
O(this, ds, Zi).call(this);
|
9155
9155
|
}
|
9156
9156
|
}
|
9157
|
-
kn = new WeakSet(),
|
9157
|
+
kn = new WeakSet(), zr = function() {
|
9158
9158
|
let e = {};
|
9159
9159
|
this.hasAttribute("m4-value") || this.setAttribute("m4-value", ""), this.s.type = this.getAttribute("m4-type") ?? et.multipurpose4.SETTINGS.type, this.hasAttribute("m4-option") && (e = this.getAttribute("m4-option") ? JSON.parse(this.getAttribute("m4-option")) : {}, this.removeAttribute("m4-option"));
|
9160
9160
|
const n = (i) => {
|
@@ -9165,8 +9165,8 @@ kn = new WeakSet(), Ir = function() {
|
|
9165
9165
|
}
|
9166
9166
|
this.update();
|
9167
9167
|
};
|
9168
|
-
window.removeEventListener("resize", Bs(n)), window.addEventListener("resize", Bs(n)), this.s.option = {}, this.s.option.drag = Object.assign({}, et.multipurpose4.SETTINGS.drag, e == null ? void 0 : e.drag), this.s.option.collapse = Object.assign({}, et.multipurpose4.SETTINGS.collapse, e == null ? void 0 : e.collapse), this.s.option.dropdown = Object.assign({}, et.multipurpose4.SETTINGS.dropdown, e == null ? void 0 : e.dropdown), this.s.option.breakpoint = Object.assign({}, et.multipurpose4.SETTINGS.breakpoint, e == null ? void 0 : e.breakpoint), O(this, Pn,
|
9169
|
-
}, Pn = new WeakSet(),
|
9168
|
+
window.removeEventListener("resize", Bs(n)), window.addEventListener("resize", Bs(n)), this.s.option = {}, this.s.option.drag = Object.assign({}, et.multipurpose4.SETTINGS.drag, e == null ? void 0 : e.drag), this.s.option.collapse = Object.assign({}, et.multipurpose4.SETTINGS.collapse, e == null ? void 0 : e.collapse), this.s.option.dropdown = Object.assign({}, et.multipurpose4.SETTINGS.dropdown, e == null ? void 0 : e.dropdown), this.s.option.breakpoint = Object.assign({}, et.multipurpose4.SETTINGS.breakpoint, e == null ? void 0 : e.breakpoint), O(this, Pn, _r).call(this);
|
9169
|
+
}, Pn = new WeakSet(), _r = function() {
|
9170
9170
|
this.classList.add("m4-init"), O(this, ds, Zi).call(this);
|
9171
9171
|
}, ds = new WeakSet(), Zi = function() {
|
9172
9172
|
const e = Object.keys(this.s.option.breakpoint);
|
@@ -9195,7 +9195,7 @@ kn = new WeakSet(), Ir = function() {
|
|
9195
9195
|
}
|
9196
9196
|
(a = this.constructor.drag) == null || a.update(this);
|
9197
9197
|
};
|
9198
|
-
var On,
|
9198
|
+
var On, Hr, In, Nr, us, Ji, ve, Fe, zn, qr, _n, Br, Hn, Gr, Nn, Rr, qn, Wr, Bn, jr, Gn, Xr, Rn, Yr, Wn, Fr, ne, Le, jn, Vr, Xn, Ur, Yn, Zr, Fn, Jr;
|
9199
9199
|
class Ef extends HTMLElement {
|
9200
9200
|
// 定義組件的初始狀態
|
9201
9201
|
constructor(e, n) {
|
@@ -9238,10 +9238,10 @@ class Ef extends HTMLElement {
|
|
9238
9238
|
return ["t4-active"];
|
9239
9239
|
}
|
9240
9240
|
attributeChangedCallback(e, n, i) {
|
9241
|
-
e === "t4-active" && n !== i && O(this, Yn,
|
9241
|
+
e === "t4-active" && n !== i && O(this, Yn, Zr).call(this, i);
|
9242
9242
|
}
|
9243
9243
|
connectedCallback() {
|
9244
|
-
this.classList.contains("t4-initialize") || O(this, On,
|
9244
|
+
this.classList.contains("t4-initialize") || O(this, On, Hr).call(this);
|
9245
9245
|
}
|
9246
9246
|
// ------------- 我是分隔線呦 -------------
|
9247
9247
|
// 頁籤切換
|
@@ -9257,7 +9257,7 @@ class Ef extends HTMLElement {
|
|
9257
9257
|
n.activeTab = i, this.setAttribute("t4-active", i);
|
9258
9258
|
const a = O(this, ve, Fe).call(this, i);
|
9259
9259
|
n.tabPanels.forEach((o, u) => {
|
9260
|
-
u === a ? O(this, Xn,
|
9260
|
+
u === a ? O(this, Xn, Ur).call(this, u) : O(this, jn, Vr).call(this, u);
|
9261
9261
|
});
|
9262
9262
|
}
|
9263
9263
|
// 外部呼叫方法 $0.goNext()
|
@@ -9272,10 +9272,10 @@ class Ef extends HTMLElement {
|
|
9272
9272
|
}
|
9273
9273
|
// 外部呼叫方法 $0.update()
|
9274
9274
|
update() {
|
9275
|
-
this.t.tabs = O(this, us, Ji).call(this),
|
9275
|
+
this.t.tabs = O(this, us, Ji).call(this), Kr(), console.log("tab update!!!!");
|
9276
9276
|
}
|
9277
9277
|
}
|
9278
|
-
On = new WeakSet(),
|
9278
|
+
On = new WeakSet(), Hr = function() {
|
9279
9279
|
const e = this.getAttribute("t4-name"), { SETTINGS: n } = et.tab4;
|
9280
9280
|
document.querySelectorAll(`tab-el[t4-name=${e}]`).length > 1 && console.warn(e, "名字有重複喔!!!"), this.t = {
|
9281
9281
|
tabs: [],
|
@@ -9295,13 +9295,13 @@ On = new WeakSet(), _r = function() {
|
|
9295
9295
|
delay: this.getAttribute("t4-delay") || n.transition.delay
|
9296
9296
|
},
|
9297
9297
|
tabGroup: this.getAttribute("t4-group") || n.tabGroup
|
9298
|
-
}, this.__events__ = {}, this.t.tabs = O(this, us, Ji).call(this), this.t.step = document.querySelector(`[t4-control="${this.t.name}"]${this.t.stepOutput}`), O(this, In,
|
9299
|
-
}, In = new WeakSet(),
|
9300
|
-
if (this.t.activeTab = this.t.defaultPage, this.t.display === "swiper" && O(this, zn,
|
9298
|
+
}, this.__events__ = {}, this.t.tabs = O(this, us, Ji).call(this), this.t.step = document.querySelector(`[t4-control="${this.t.name}"]${this.t.stepOutput}`), O(this, In, Nr).call(this);
|
9299
|
+
}, In = new WeakSet(), Nr = function() {
|
9300
|
+
if (this.t.activeTab = this.t.defaultPage, this.t.display === "swiper" && O(this, zn, qr).call(this), this.t.recordUrl) {
|
9301
9301
|
const n = new URLSearchParams(document.location.search).get(this.t.name), i = document.querySelectorAll(`[t4-name="${this.t.name}"] [t4-id="${n}"]`);
|
9302
9302
|
n && i.length === 1 ? this.t.activeTab = n : console.warn(`沒有${n}這頁喔!!`);
|
9303
9303
|
}
|
9304
|
-
this.setActiveTab(this.t.activeTab), this.classList.add("t4-initialize"), O(this, Fn,
|
9304
|
+
this.setActiveTab(this.t.activeTab), this.classList.add("t4-initialize"), O(this, Fn, Jr).call(this);
|
9305
9305
|
}, us = new WeakSet(), Ji = function() {
|
9306
9306
|
const { t: e } = this, n = Array.from(document.querySelectorAll(`[t4-control="${e.name}"][t4-role="tab"]`));
|
9307
9307
|
return e.type === "normal" && e.tabGroup === "true" && e.tabPanels.length !== n.length && console.warn("按鈕與內容數量不同喔", e.tabPanels.length, n.length), e.tabGroup === "true" ? e.tabPanels.forEach((i, a) => i.setAttribute("t4-id", a)) : e.tabPanels.forEach((i) => {
|
@@ -9312,19 +9312,19 @@ On = new WeakSet(), _r = function() {
|
|
9312
9312
|
i.length > 1 && console.warn("有兩個相同id設定", i);
|
9313
9313
|
const a = i[0];
|
9314
9314
|
return a ? n.tabPanels.indexOf(a) : (console.warn(`找不到t4-id為${e}的頁籤`), 0);
|
9315
|
-
}, zn = new WeakSet(),
|
9315
|
+
}, zn = new WeakSet(), qr = function() {
|
9316
9316
|
const e = document.createElement("div");
|
9317
9317
|
e.classList.add("swiper-container");
|
9318
9318
|
const n = document.createElement("div");
|
9319
9319
|
n.classList.add("swiper-wrapper"), this.t.tabPanels.forEach((i) => {
|
9320
9320
|
n.appendChild(i.cloneNode(!0));
|
9321
|
-
}), this.t.tabPanels = [...n.children], e.appendChild(n), this.innerHTML = "", this.appendChild(e), O(this, _n,
|
9322
|
-
}, _n = new WeakSet(),
|
9321
|
+
}), this.t.tabPanels = [...n.children], e.appendChild(n), this.innerHTML = "", this.appendChild(e), O(this, _n, Br).call(this);
|
9322
|
+
}, _n = new WeakSet(), Br = function() {
|
9323
9323
|
const e = this.querySelector(".swiper-container"), n = this.querySelector(".swiper-wrapper"), i = this.t.tabPanels;
|
9324
9324
|
e.style.overflow = "hidden", n.style.display = "flex";
|
9325
9325
|
const a = i.length * 100 + "%";
|
9326
9326
|
n.style.width = a;
|
9327
|
-
}, Hn = new WeakSet(),
|
9327
|
+
}, Hn = new WeakSet(), Gr = function(e) {
|
9328
9328
|
const { t: n } = this;
|
9329
9329
|
if (n.recordUrl === "true") {
|
9330
9330
|
const i = new URLSearchParams(document.location.search);
|
@@ -9332,28 +9332,28 @@ On = new WeakSet(), _r = function() {
|
|
9332
9332
|
const a = `${window.location.pathname}?${i.toString()}`;
|
9333
9333
|
history.replaceState({ t4Id: e }, "", a);
|
9334
9334
|
}
|
9335
|
-
}, Nn = new WeakSet(),
|
9335
|
+
}, Nn = new WeakSet(), Rr = function() {
|
9336
9336
|
const e = parseInt(this.t.gap, 10), n = window.pageYOffset, a = this.getBoundingClientRect().top + n - e;
|
9337
|
-
O(this, qn,
|
9338
|
-
}, qn = new WeakSet(),
|
9337
|
+
O(this, qn, Wr).call(this, a);
|
9338
|
+
}, qn = new WeakSet(), Wr = function(e) {
|
9339
9339
|
window.scrollTo({
|
9340
9340
|
top: e,
|
9341
9341
|
behavior: "smooth"
|
9342
9342
|
});
|
9343
|
-
}, Bn = new WeakSet(),
|
9343
|
+
}, Bn = new WeakSet(), jr = function(e) {
|
9344
9344
|
let n = parseInt(e, 10) + 1;
|
9345
9345
|
this.t.step.textContent = `${n}`, this.t.step.setAttribute("now-page", n);
|
9346
|
-
}, Gn = new WeakSet(),
|
9346
|
+
}, Gn = new WeakSet(), Xr = function(e) {
|
9347
9347
|
const n = document.querySelectorAll(`[t4-role="next"][t4-control="${this.t.name}"]`), i = this.t.tabPanels.length === 1, a = e === this.t.tabPanels.length - 1;
|
9348
9348
|
n.forEach((o) => {
|
9349
9349
|
i || a ? o.setAttribute("disabled", "") : o.removeAttribute("disabled");
|
9350
9350
|
});
|
9351
|
-
}, Rn = new WeakSet(),
|
9351
|
+
}, Rn = new WeakSet(), Yr = function(e) {
|
9352
9352
|
const n = document.querySelectorAll(`[t4-role="prev"][t4-control="${this.t.name}"]`), i = this.t.tabPanels.length === 1, a = e === 0;
|
9353
9353
|
n.forEach((o) => {
|
9354
9354
|
i || a ? o.setAttribute("disabled", "") : o.removeAttribute("disabled");
|
9355
9355
|
});
|
9356
|
-
}, Wn = new WeakSet(),
|
9356
|
+
}, Wn = new WeakSet(), Fr = function(e, n) {
|
9357
9357
|
this.t.tabGroup === "true" ? this.t.tabs.forEach((i, a) => {
|
9358
9358
|
a == e ? i.setAttribute("aria-selected", !0) : i.setAttribute("aria-selected", !1);
|
9359
9359
|
}) : this.t.tabs.forEach((i, a) => {
|
@@ -9362,25 +9362,25 @@ On = new WeakSet(), _r = function() {
|
|
9362
9362
|
}, ne = new WeakSet(), Le = function(e, n, i) {
|
9363
9363
|
switch (e) {
|
9364
9364
|
case "step":
|
9365
|
-
Qn(this.t.step) && O(this, Bn,
|
9365
|
+
Qn(this.t.step) && O(this, Bn, jr).call(this, n);
|
9366
9366
|
break;
|
9367
9367
|
case "eventAnchor":
|
9368
|
-
this.t.anchor && O(this, Nn,
|
9368
|
+
this.t.anchor && O(this, Nn, Rr).call(this);
|
9369
9369
|
break;
|
9370
9370
|
case "tabState":
|
9371
|
-
this.t.type == "normal" && O(this, Wn,
|
9371
|
+
this.t.type == "normal" && O(this, Wn, Fr).call(this, n, i);
|
9372
9372
|
break;
|
9373
9373
|
case "btnState":
|
9374
|
-
O(this, Gn,
|
9374
|
+
O(this, Gn, Xr).call(this, n), O(this, Rn, Yr).call(this, n);
|
9375
9375
|
break;
|
9376
9376
|
case "tabUrl":
|
9377
|
-
this.t.recordUrl === "true" && O(this, Hn,
|
9377
|
+
this.t.recordUrl === "true" && O(this, Hn, Gr).call(this, n);
|
9378
9378
|
break;
|
9379
9379
|
default:
|
9380
9380
|
console.warn("請增加判斷,謝謝");
|
9381
9381
|
break;
|
9382
9382
|
}
|
9383
|
-
}, jn = new WeakSet(),
|
9383
|
+
}, jn = new WeakSet(), Vr = function(e) {
|
9384
9384
|
const { t: n } = this;
|
9385
9385
|
this.t.transition;
|
9386
9386
|
const i = n.tabPanels[e];
|
@@ -9397,7 +9397,7 @@ On = new WeakSet(), _r = function() {
|
|
9397
9397
|
i.style.display = "none";
|
9398
9398
|
break;
|
9399
9399
|
}
|
9400
|
-
}, Xn = new WeakSet(),
|
9400
|
+
}, Xn = new WeakSet(), Ur = function(e) {
|
9401
9401
|
const { duration: n, timing: i, delay: a } = this.t.transition, o = this.t.tabPanels[e];
|
9402
9402
|
let u;
|
9403
9403
|
switch (o.classList.remove("hide"), o.style.transition = `opacity ${n}ms ${i} ${a}ms`, o.style.display = "block", this.t.display) {
|
@@ -9422,10 +9422,10 @@ On = new WeakSet(), _r = function() {
|
|
9422
9422
|
console.warn(this.t.display, "沒有這個效果請自己想辦法!!!!");
|
9423
9423
|
break;
|
9424
9424
|
}
|
9425
|
-
}, Yn = new WeakSet(),
|
9425
|
+
}, Yn = new WeakSet(), Zr = function(e) {
|
9426
9426
|
const n = O(this, ve, Fe).call(this, e);
|
9427
9427
|
O(this, ne, Le).call(this, "step", n), O(this, ne, Le).call(this, "btnState", n), O(this, ne, Le).call(this, "tabState", n, e), O(this, ne, Le).call(this, "tabUrl", e), this.emit("change");
|
9428
|
-
}, Fn = new WeakSet(),
|
9428
|
+
}, Fn = new WeakSet(), Jr = function() {
|
9429
9429
|
const e = this;
|
9430
9430
|
window.addEventListener(
|
9431
9431
|
"resize",
|
@@ -9440,7 +9440,7 @@ function Sf(t, s = 1e3) {
|
|
9440
9440
|
e && clearTimeout(e), e = setTimeout(t, s, n);
|
9441
9441
|
};
|
9442
9442
|
}
|
9443
|
-
function
|
9443
|
+
function Kr() {
|
9444
9444
|
const t = document.querySelectorAll("[t4-control]");
|
9445
9445
|
document.addEventListener("click", function(s) {
|
9446
9446
|
let e = !1;
|
@@ -9470,7 +9470,7 @@ function Jr() {
|
|
9470
9470
|
}
|
9471
9471
|
});
|
9472
9472
|
}
|
9473
|
-
|
9473
|
+
Kr();
|
9474
9474
|
Object.assign(Ef.prototype, ce);
|
9475
9475
|
const Ka = (t) => {
|
9476
9476
|
const { defaultOptions: s } = t.collapse, { collapseClass: e, target: n, transition: i } = s, a = t.querySelector(n);
|
@@ -9479,7 +9479,7 @@ const Ka = (t) => {
|
|
9479
9479
|
const { defaultOptions: s } = t.collapse, { collapseClass: e, target: n, transition: i } = s, a = t.querySelector(n), o = a.children[0].offsetHeight;
|
9480
9480
|
t.collapse.height = o, t.classList.remove(e), a.style.display = "block", a.style.height = `${o}px`, a.style["transition-property"] = i.property, a.style["transition-duration"] = i.duration, a.style["transition-timing-function"] = i.function, a.style["transition-delay"] = i.delay, a.style.overflow = "hidden";
|
9481
9481
|
};
|
9482
|
-
var fs, Ki, Vn,
|
9482
|
+
var fs, Ki, Vn, Qr, Un, tl, ps, Qi;
|
9483
9483
|
class $f {
|
9484
9484
|
constructor(s, e = {}) {
|
9485
9485
|
N(this, fs);
|
@@ -9500,13 +9500,13 @@ fs = new WeakSet(), Ki = function() {
|
|
9500
9500
|
if (this.elements = le(s), this.options = Object.assign({}, n, e), this.__events__ = Object.assign({}, i), this.options.on)
|
9501
9501
|
for (const [a, o] of Object.entries(this.options.on))
|
9502
9502
|
this.__events__[a] = [o];
|
9503
|
-
O(this, Vn,
|
9504
|
-
}, Vn = new WeakSet(),
|
9503
|
+
O(this, Vn, Qr).call(this);
|
9504
|
+
}, Vn = new WeakSet(), Qr = function() {
|
9505
9505
|
const { elements: s, options: e } = this;
|
9506
9506
|
s.forEach((n) => {
|
9507
|
-
n.collapse = {}, n.collapse.instance = this, n.collapse.defaultOptions = e, O(this, Un,
|
9507
|
+
n.collapse = {}, n.collapse.instance = this, n.collapse.defaultOptions = e, O(this, Un, tl).call(this, n);
|
9508
9508
|
}), this.emit("init");
|
9509
|
-
}, Un = new WeakSet(),
|
9509
|
+
}, Un = new WeakSet(), tl = function(s) {
|
9510
9510
|
const { options: e } = this, { collapseClass: n, block: i, target: a, defaultOpen: o, targetStopPropagation: u, defaultActiveMark: r } = e, d = s, l = d.querySelector(a);
|
9511
9511
|
if (d.collapse.height = l.children[0].offsetHeight, o ? (l.style.height = `${l.children[0].offsetHeight}px`, d.classList.remove(n)) : !d.classList.contains(r) && !d.hasAttribute(r) ? (d.classList.add(n), l.style.height = "0px", l.style.overflow = "hidden") : (l.style.height = `${l.children[0].offsetHeight}px`, d.classList.remove(n)), d.removeEventListener("click", O(this, ps, Qi)), d.addEventListener("click", O(this, ps, Qi)), u) {
|
9512
9512
|
const c = (f) => {
|
@@ -9528,13 +9528,13 @@ function Cf(t, s) {
|
|
9528
9528
|
o.remove();
|
9529
9529
|
}, `${a}`);
|
9530
9530
|
}
|
9531
|
-
function
|
9531
|
+
function el() {
|
9532
9532
|
document.querySelectorAll("ripple-btn").forEach((t) => {
|
9533
9533
|
t.querySelector(".hover-ball"), t.style.setProperty("--r", ""), t.classList.remove("entered");
|
9534
9534
|
});
|
9535
9535
|
}
|
9536
|
-
document.addEventListener("click",
|
9537
|
-
var hs, ta, Zn,
|
9536
|
+
document.addEventListener("click", el);
|
9537
|
+
var hs, ta, Zn, sl, Jn, nl, Kn, il;
|
9538
9538
|
class Hf extends HTMLElement {
|
9539
9539
|
constructor() {
|
9540
9540
|
super();
|
@@ -9567,20 +9567,20 @@ hs = new WeakSet(), ta = function() {
|
|
9567
9567
|
hover: this.getAttribute("r4-hover") ? n(this.getAttribute("r4-hover")) : e.hover,
|
9568
9568
|
click: this.getAttribute("r4-hover-click") ? n(this.getAttribute("r4-hover-click")) : e.click
|
9569
9569
|
};
|
9570
|
-
this.s.options = i, this.s.options.hover && this.classList.add("hover-btn"), O(this, Zn,
|
9571
|
-
}, Zn = new WeakSet(),
|
9572
|
-
O(this, Jn,
|
9573
|
-
}, Jn = new WeakSet(),
|
9570
|
+
this.s.options = i, this.s.options.hover && this.classList.add("hover-btn"), O(this, Zn, sl).call(this);
|
9571
|
+
}, Zn = new WeakSet(), sl = function() {
|
9572
|
+
O(this, Jn, nl).call(this), O(this, Kn, il).call(this), this.classList.add("r4-initialize");
|
9573
|
+
}, Jn = new WeakSet(), nl = function() {
|
9574
9574
|
const e = this, n = document.createElement("i");
|
9575
9575
|
n.classList.add("hover-ball"), n.style.transitionDuration = `${e.s.options.speed}ms`, e.appendChild(n);
|
9576
|
-
}, Kn = new WeakSet(),
|
9576
|
+
}, Kn = new WeakSet(), il = function() {
|
9577
9577
|
const e = this.querySelector("i.hover-ball"), n = this;
|
9578
9578
|
n.addEventListener("click", function(o) {
|
9579
9579
|
o.stopPropagation(), n.s.options.click && Cf(o, n);
|
9580
9580
|
});
|
9581
9581
|
let i = "ontouchstart" in document.documentElement ? "touchstart" : "mouseenter", a = "ontouchend" in document.documentElement ? "touchend" : "mouseleave";
|
9582
9582
|
n.addEventListener(i, function(o) {
|
9583
|
-
if (i === "touchstart" &&
|
9583
|
+
if (i === "touchstart" && el(), n.s.options.hover) {
|
9584
9584
|
const u = Math.round(i === "mouseenter" ? o.clientX - n.getBoundingClientRect().left : o.changedTouches[0].clientX - n.getBoundingClientRect().x), r = Math.round(i === "mouseenter" ? o.clientY - n.getBoundingClientRect().top : o.changedTouches[0].clientY - n.getBoundingClientRect().y), { offsetWidth: d, offsetHeight: l } = n, c = Math.ceil(Math.sqrt(d ** 2 + l ** 2) * 2);
|
9585
9585
|
n.style.setProperty("--r", c), e.style.left = u + "px", e.style.top = r + "px", n.classList.add("entered");
|
9586
9586
|
}
|
@@ -9768,11 +9768,11 @@ class qf {
|
|
9768
9768
|
}
|
9769
9769
|
}
|
9770
9770
|
export {
|
9771
|
-
|
9772
|
-
|
9771
|
+
pl as Anchor4,
|
9772
|
+
Ac as Aost4,
|
9773
9773
|
Of as Article4,
|
9774
9774
|
$f as Collapse4,
|
9775
|
-
|
9775
|
+
cl as Detect4,
|
9776
9776
|
gf as Dropdown4,
|
9777
9777
|
et as FESD_DB,
|
9778
9778
|
qf as ImagePreview,
|
@@ -9783,6 +9783,6 @@ export {
|
|
9783
9783
|
Hf as Ripple4,
|
9784
9784
|
If as Share4,
|
9785
9785
|
Ef as Tab4,
|
9786
|
-
|
9786
|
+
er as Video4
|
9787
9787
|
};
|
9788
9788
|
//# sourceMappingURL=fesd-bundle.js.map
|