@xwadex/fesd 0.0.14-re.82 → 0.0.14-re.84

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.
@@ -2,14 +2,14 @@ var fs = (n, i, t) => {
2
2
  if (!i.has(n))
3
3
  throw TypeError("Cannot " + t);
4
4
  };
5
- var p = (n, i, t) => {
5
+ var h = (n, i, t) => {
6
6
  if (i.has(n))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  i instanceof WeakSet ? i.add(n) : i.set(n, t);
9
9
  };
10
10
  var d = (n, i, t) => (fs(n, i, "access private method"), t);
11
11
  import { OverlayScrollbars as Me } from "overlayscrollbars";
12
- import f from "jquery";
12
+ import v from "jquery";
13
13
  import "./vendor-bundle.js";
14
14
  import "validator";
15
15
  import "flatpickr";
@@ -27,7 +27,7 @@ const Y = {
27
27
  videoTarget: "video-template",
28
28
  videoTargetRoute: "https://cdn.wdd.idv.tw/fesd/video4_lightbox.html",
29
29
  videoVimeoHash: null,
30
- videoHighQuality: !1,
30
+ videoHighQuality: "off",
31
31
  videoStartTime: 0
32
32
  },
33
33
  ATTRS: {
@@ -365,7 +365,7 @@ const Y = {
365
365
  return -t * ((n = n / e - 1) * n * n * n - 1) + i;
366
366
  }
367
367
  }, we = (n, i) => {
368
- const { target: t, container: e, spacer: s, speed: o, gap: a, easing: r, direction: l } = n, c = l === "horizontal", u = c ? "scrollLeft" : "scrollTop", h = c ? "left" : "top", m = c ? "width" : "height", g = w(e) ? A(e) : document.scrollingElement, v = g[u], b = w(t) ? A(t).getBoundingClientRect()[h] : 0 - v, y = w(s) ? A(s).getBoundingClientRect()[m] : 0, H = b - a - y, G = 15;
368
+ const { target: t, container: e, spacer: s, speed: o, gap: a, easing: r, direction: l } = n, c = l === "horizontal", u = c ? "scrollLeft" : "scrollTop", p = c ? "left" : "top", m = c ? "width" : "height", g = w(e) ? A(e) : document.scrollingElement, f = g[u], b = w(t) ? A(t).getBoundingClientRect()[p] : 0 - f, y = w(s) ? A(s).getBoundingClientRect()[m] : 0, H = b - a - y, G = 15;
369
369
  let S = 0;
370
370
  if (H === 0)
371
371
  return;
@@ -376,7 +376,7 @@ const Y = {
376
376
  X("beforeScroll");
377
377
  const Pe = () => {
378
378
  S += G;
379
- const R = Ls[r](S, v, H, o);
379
+ const R = Ls[r](S, f, H, o);
380
380
  g[u] = R, S < o && requestAnimationFrame(Pe), S >= o && X("afterScroll");
381
381
  };
382
382
  requestAnimationFrame(Pe);
@@ -384,9 +384,9 @@ const Y = {
384
384
  var J, Ee, pt, Ve, mt, Ke;
385
385
  class Qe {
386
386
  constructor(i, t = {}) {
387
- p(this, J);
388
- p(this, pt);
389
- p(this, mt);
387
+ h(this, J);
388
+ h(this, pt);
389
+ h(this, mt);
390
390
  this.__storage__ = {
391
391
  el: i,
392
392
  options: t
@@ -463,11 +463,11 @@ var gt, ei, ft, ii, vt, si, bt, ni, yt, oi;
463
463
  class ti extends HTMLElement {
464
464
  constructor() {
465
465
  super();
466
- p(this, gt);
467
- p(this, ft);
468
- p(this, vt);
469
- p(this, bt);
470
- p(this, yt);
466
+ h(this, gt);
467
+ h(this, ft);
468
+ h(this, vt);
469
+ h(this, bt);
470
+ h(this, yt);
471
471
  this.initialize = !1;
472
472
  }
473
473
  static get observedAttributes() {
@@ -506,7 +506,7 @@ gt = new WeakSet(), ei = function() {
506
506
  overflowBehavior: {
507
507
  x: "hidden"
508
508
  }
509
- }), d(this, bt, ni).call(this);
509
+ }), window.modalScroll = this.__scroller__, d(this, bt, ni).call(this);
510
510
  }, bt = new WeakSet(), ni = function() {
511
511
  var a, r, l;
512
512
  const t = this, { ATTRS: e } = I, { close: s, destroy: o } = e;
@@ -598,8 +598,8 @@ const { MODALS: Ie } = window, ai = (n, i, ...t) => {
598
598
  [...c].forEach((m) => {
599
599
  u.append(m);
600
600
  });
601
- const h = Ie[t] || A(n.target);
602
- r("complete", h), li(n, i);
601
+ const p = Ie[t] || A(n.target);
602
+ r("complete", p), li(n, i);
603
603
  }).catch((l) => {
604
604
  r("error", l);
605
605
  });
@@ -607,9 +607,9 @@ const { MODALS: Ie } = window, ai = (n, i, ...t) => {
607
607
  var Z, Ae, wt, ci, Tt, di;
608
608
  const P = class P {
609
609
  constructor(i, t = {}) {
610
- p(this, Z);
611
- p(this, wt);
612
- p(this, Tt);
610
+ h(this, Z);
611
+ h(this, wt);
612
+ h(this, Tt);
613
613
  this.__storage__ = {
614
614
  el: i,
615
615
  options: t
@@ -674,13 +674,13 @@ customElements.define("modern-modal", ti);
674
674
  const _s = (n, i) => {
675
675
  const t = n === window ? n.innerHeight : n.getBoundingClientRect().height, e = n === window ? 0 : n.getBoundingClientRect().top;
676
676
  i.forEach((s) => {
677
- const { class: o, delay: a, start: r, end: l, repeat: c, instance: u } = s.aost, { top: h, bottom: m } = s.getBoundingClientRect(), g = t * (r / 100), v = t * (l / 100);
678
- if (h - e <= g && m - e >= v && s.offsetParent)
677
+ const { class: o, delay: a, start: r, end: l, repeat: c, instance: u } = s.aost, { top: p, bottom: m } = s.getBoundingClientRect(), g = t * (r / 100), f = t * (l / 100);
678
+ if (p - e <= g && m - e >= f && s.offsetParent)
679
679
  setTimeout(() => {
680
680
  s.classList.add(o);
681
681
  }, a);
682
682
  else {
683
- const y = s.classList.contains(o) && c === "down" && h - e >= g || c === "up" && m - e <= v || c === !0;
683
+ const y = s.classList.contains(o) && c === "down" && p - e >= g || c === "up" && m - e <= f || c === !0;
684
684
  setTimeout(() => {
685
685
  y && s.classList.remove(o);
686
686
  }, a);
@@ -690,8 +690,8 @@ const _s = (n, i) => {
690
690
  var Q, Le, Et, hi;
691
691
  class ui {
692
692
  constructor(i, t = {}) {
693
- p(this, Q);
694
- p(this, Et);
693
+ h(this, Q);
694
+ h(this, Et);
695
695
  this.__storage__ = {
696
696
  el: i,
697
697
  options: t
@@ -746,20 +746,20 @@ var At, pi, Lt, mi, St, gi, Dt, fi, _t, vi, kt, bi, $t, yi, xt, wi, Ct, Ti;
746
746
  class xs extends HTMLElement {
747
747
  constructor() {
748
748
  super();
749
- p(this, At);
750
- p(this, Lt);
751
- p(this, St);
749
+ h(this, At);
750
+ h(this, Lt);
751
+ h(this, St);
752
752
  // youtube iframe
753
- p(this, Dt);
753
+ h(this, Dt);
754
754
  // vimeo iframe
755
- p(this, _t);
755
+ h(this, _t);
756
756
  // youku iframe
757
- p(this, kt);
758
- p(this, $t);
757
+ h(this, kt);
758
+ h(this, $t);
759
759
  // 2025.02.11 新增 ig
760
- p(this, xt);
760
+ h(this, xt);
761
761
  // 2025.02.11 新增 tiktok
762
- p(this, Ct);
762
+ h(this, Ct);
763
763
  d(this, At, pi).call(this);
764
764
  }
765
765
  play() {
@@ -847,7 +847,7 @@ At = new WeakSet(), pi = function() {
847
847
  return `<iframe src="//player.bilibili.com/player.html?bvid=${t}&page=1&as_wide=1&high_quality=1&danmaku=0" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>`;
848
848
  }, xt = new WeakSet(), wi = function() {
849
849
  const { videoId: t, autoplay: e } = this;
850
- return `<iframe class="instagram-media instagram-media-rendered" id="instagram-embed-0" src="https://www.instagram.com/p/${t}/embed/" allowtransparency="true" allowfullscreen="true" frameborder="0" height="100%" data-instgrm-payload-id="instagram-media-payload-0" scrolling="no"></iframe>`;
850
+ return `<iframe class="instagram-media instagram-media-rendered" id="instagram-embed-0" src="https://www.instagram.com/p/${t}/embed/" width="num-w" height=" num-h" scrolling="auto" frameborder="0" data-instgrm-payload-id="instagram-media-payload-0"></iframe>`;
851
851
  }, Ct = new WeakSet(), Ti = function() {
852
852
  const { videoId: t, autoplay: e } = this;
853
853
  return `<iframe name="__tt_embed__v79271677875424740" sandbox="allow-popups allow-popups-to-escape-sandbox allow-scripts allow-top-navigation allow-same-origin" src="https://www.tiktok.com/player/v1/${t}?&${e === "on" ? "autoplay=1" : ""}"></iframe>`;
@@ -859,18 +859,18 @@ function Ei(n) {
859
859
  const i = [];
860
860
  n && n.forEach((t) => {
861
861
  t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
862
- }), f("html").addClass("scrollLock"), vs(i);
862
+ }), v("html").addClass("scrollLock"), vs(i);
863
863
  }
864
864
  function Ai(n) {
865
865
  const i = [];
866
866
  n && n.forEach((t) => {
867
867
  t instanceof HTMLElement ? i.push(t) : typeof t == "string" && i.push(...document.querySelectorAll(`${t}`));
868
- }), f("html").removeClass("scrollLock"), bs(i);
868
+ }), v("html").removeClass("scrollLock"), bs(i);
869
869
  }
870
870
  async function fn(n = 0) {
871
- if (f(".loading-wrapper").length)
871
+ if (v(".loading-wrapper").length)
872
872
  return;
873
- f("body").append(`
873
+ v("body").append(`
874
874
  <div class="loading-wrapper">
875
875
  <div class="icon-box">
876
876
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"><path d="M10 50A40 40 0 0 0 90 50A40 42 0 0 1 10 50" fill="#ffffff" stroke="none">
@@ -880,13 +880,13 @@ async function fn(n = 0) {
880
880
  </svg>
881
881
  </div>
882
882
  </div>
883
- `), f(".loading-wrapper").delay(n).fadeIn(300).promise().done(function() {
883
+ `), v(".loading-wrapper").delay(n).fadeIn(300).promise().done(function() {
884
884
  Ei();
885
885
  });
886
886
  }
887
887
  function vn() {
888
- f(".loading-wrapper").fadeOut(300).promise().done(function() {
889
- f(".loading-wrapper").remove(), Ai();
888
+ v(".loading-wrapper").fadeOut(300).promise().done(function() {
889
+ v(".loading-wrapper").remove(), Ai();
890
890
  });
891
891
  }
892
892
  function bn(n, i) {
@@ -899,7 +899,7 @@ function Cs() {
899
899
  }
900
900
  function yn(n, i = () => {
901
901
  }) {
902
- f(`[data-tab-content=${n}]`).fadeIn(function() {
902
+ v(`[data-tab-content=${n}]`).fadeIn(function() {
903
903
  typeof i == "function" && i();
904
904
  }).siblings("[data-tab-content]").hide(), Cs();
905
905
  }
@@ -940,13 +940,13 @@ function En() {
940
940
  };
941
941
  }
942
942
  function An(n, i) {
943
- f(n).on("click", function() {
944
- f(this).toggleClass(i);
943
+ v(n).on("click", function() {
944
+ v(this).toggleClass(i);
945
945
  });
946
946
  }
947
947
  function Ln(n, i) {
948
- f(n).on("click", function() {
949
- f(n).not(this).removeClass(i), f(this).addClass(i);
948
+ v(n).on("click", function() {
949
+ v(n).not(this).removeClass(i), v(this).addClass(i);
950
950
  });
951
951
  }
952
952
  function Hs(n, i = 250) {
@@ -968,12 +968,12 @@ function Sn(n, i = 250) {
968
968
  };
969
969
  }
970
970
  function Dn() {
971
- window._g.interval = [], f(".countdown").each((i, t) => {
972
- const e = Number(f(t).attr("data-seconds")) + 1;
971
+ window._g.interval = [], v(".countdown").each((i, t) => {
972
+ const e = Number(v(t).attr("data-seconds")) + 1;
973
973
  let s = Math.floor(e / 60) + ":" + e % 60;
974
974
  window._g.interval[i] = setInterval(function() {
975
975
  var o = s.split(":"), a = parseInt(o[0], 10), r = parseInt(o[1], 10);
976
- --r, a = r < 0 ? --a : a, a = a < 10 ? a = "0" + a : a, a == 0 && r == 0 && clearInterval(window._g.interval[i]), r = r < 0 ? 59 : r, r = r < 10 ? "0" + r : r, f(t).html(a + ":" + r), s = a + ":" + r;
976
+ --r, a = r < 0 ? --a : a, a = a < 10 ? a = "0" + a : a, a == 0 && r == 0 && clearInterval(window._g.interval[i]), r = r < 0 ? 59 : r, r = r < 10 ? "0" + r : r, v(t).html(a + ":" + r), s = a + ":" + r;
977
977
  }, 1e3);
978
978
  });
979
979
  }
@@ -992,13 +992,13 @@ function kn() {
992
992
  n(), window.addEventListener("resize", Hs(n));
993
993
  }
994
994
  function $n(n, i, t, e, s) {
995
- const o = this, r = f(n).html().split("<br>");
995
+ const o = this, r = v(n).html().split("<br>");
996
996
  let l = "", c = 0;
997
- r.forEach((u, h) => {
998
- h !== 0 && (l += "<br>"), u.split("").forEach((g, v) => {
999
- i ? (v === 0 && (l += '<span class="letter-wrap" style="display: inline-block">'), g === " " ? l += '</span> <span class="letter-wrap" style="display: inline-block">' : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${g}</span>`, c++), v === u.length - 1 && (l += "</span>")) : g === " " ? l += " " : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${g}</span>`, c++);
997
+ r.forEach((u, p) => {
998
+ p !== 0 && (l += "<br>"), u.split("").forEach((g, f) => {
999
+ i ? (f === 0 && (l += '<span class="letter-wrap" style="display: inline-block">'), g === " " ? l += '</span> <span class="letter-wrap" style="display: inline-block">' : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${g}</span>`, c++), f === u.length - 1 && (l += "</span>")) : g === " " ? l += " " : (l += `<span class="letter"${s || t ? ` style="${s ? `transition: ${o.formatFloat(Math.random(), 2) * s}s;` : ""}${t ? t === "random" ? `transition-delay: ${o.formatFloat(Math.random(), 2)}s;` : `transition-delay: ${t + c * e}s;` : ""}"` : ""}>${g}</span>`, c++);
1000
1000
  });
1001
- }), f(n).html(l);
1001
+ }), v(n).html(l);
1002
1002
  }
1003
1003
  function xn(n, i) {
1004
1004
  const t = Math.pow(10, i);
@@ -1021,7 +1021,7 @@ function Cn(n) {
1021
1021
  }
1022
1022
  function Hn(n, i) {
1023
1023
  const t = n.$el, e = n.params.grid.rows, s = i || n.params.slidesPerView * e;
1024
- (n.loopedSlides ? n.slides.length - n.loopedSlides * 2 : n.slides.length) <= s ? (t.addClass("swiper-no-swiping"), f(n.params.navigation.nextEl).hide(), f(n.params.navigation.prevEl).hide(), f(n.params.pagination.el).hide(), n.params.autoplay.enabled = !1, n.autoplay.stop()) : (t.removeClass("swiper-no-swiping"), f(n.params.navigation.nextEl).show(), f(n.params.navigation.prevEl).show(), f(n.params.pagination.el).show(), n.params.autoplay.enabled && n.autoplay.start());
1024
+ (n.loopedSlides ? n.slides.length - n.loopedSlides * 2 : n.slides.length) <= s ? (t.addClass("swiper-no-swiping"), v(n.params.navigation.nextEl).hide(), v(n.params.navigation.prevEl).hide(), v(n.params.pagination.el).hide(), n.params.autoplay.enabled = !1, n.autoplay.stop()) : (t.removeClass("swiper-no-swiping"), v(n.params.navigation.nextEl).show(), v(n.params.navigation.prevEl).show(), v(n.params.pagination.el).show(), n.params.autoplay.enabled && n.autoplay.start());
1025
1025
  }
1026
1026
  function Mn(n) {
1027
1027
  n.el.querySelectorAll("img.detect-shade").forEach((i) => {
@@ -1031,36 +1031,36 @@ function Mn(n) {
1031
1031
  });
1032
1032
  }
1033
1033
  function qn(n) {
1034
- const i = n.el, t = f(i).find(".swiper-slide-active"), e = f(t).find("video").get(0), s = f(i).find(".swiper-slide video");
1035
- n.autoplay.stop(), f(e).off("ended"), e ? (s.each((o, a) => {
1034
+ const i = n.el, t = v(i).find(".swiper-slide-active"), e = v(t).find("video").get(0), s = v(i).find(".swiper-slide video");
1035
+ n.autoplay.stop(), v(e).off("ended"), e ? (s.each((o, a) => {
1036
1036
  a.currentTime = 0;
1037
- }), f(e).on("ended", function() {
1037
+ }), v(e).on("ended", function() {
1038
1038
  n.slideNext();
1039
1039
  }), e.play()) : n.params.autoplay.enabled && n.autoplay.start();
1040
1040
  }
1041
1041
  function In() {
1042
- f(".number-grow").each(function(n, i) {
1043
- const t = f(i), o = t.attr("data-num").replace(/(\d)(?=(?:\d{3})+$)/g, "$1,").split(""), a = () => {
1042
+ v(".number-grow").each(function(n, i) {
1043
+ const t = v(i), o = t.attr("data-num").replace(/(\d)(?=(?:\d{3})+$)/g, "$1,").split(""), a = () => {
1044
1044
  let r = "";
1045
1045
  for (var l = 0; l <= 9; l++)
1046
1046
  r += String(l) + "<br>";
1047
1047
  return r;
1048
1048
  };
1049
- f(o).each(function(r, l) {
1049
+ v(o).each(function(r, l) {
1050
1050
  const c = () => l !== "," ? `<div class="num" data-final-num="${l}"><div><br>${a()}<br>${a()}</div></div>` : `<div class="comma">${l}</div>`;
1051
1051
  t.append(c);
1052
1052
  });
1053
1053
  });
1054
1054
  }
1055
1055
  function On() {
1056
- f(".letter-grow").each(function(n, i) {
1057
- const t = f(i), s = t.attr("data-letter").split(""), o = () => {
1056
+ v(".letter-grow").each(function(n, i) {
1057
+ const t = v(i), s = t.attr("data-letter").split(""), o = () => {
1058
1058
  let a = "";
1059
1059
  for (let r = 65; r <= 90; r++)
1060
1060
  a += String.fromCharCode(r) + "<br>";
1061
1061
  return a;
1062
1062
  };
1063
- f(s).each(function(a, r) {
1063
+ v(s).each(function(a, r) {
1064
1064
  const l = `<div class="letter" data-final-letter="${r}"><div><br>${o()}<br>${o()}</div></div>`;
1065
1065
  t.append(l);
1066
1066
  });
@@ -1084,11 +1084,11 @@ const We = (n) => n.videoId !== "" || typeof n.videoId < "u", Ms = (n) => n.$sel
1084
1084
  var V, Se, Ht, Li, Mt, Si, K, De, qt, Di;
1085
1085
  class qs {
1086
1086
  constructor(i, t = {}) {
1087
- p(this, V);
1088
- p(this, Ht);
1089
- p(this, Mt);
1090
- p(this, K);
1091
- p(this, qt);
1087
+ h(this, V);
1088
+ h(this, Ht);
1089
+ h(this, Mt);
1090
+ h(this, K);
1091
+ h(this, qt);
1092
1092
  if (!at(i) && !ye(i) && !rt(i)) {
1093
1093
  je("video4", `找不到該物件 -> ${i}`);
1094
1094
  return;
@@ -1114,15 +1114,15 @@ V = new WeakSet(), Se = function() {
1114
1114
  e.video = {}, e.video.instance = this, e.video.defaultOptions = t, e.video.params = d(this, qt, Di).call(this, e), e.video.methods = {}, e.video.methods.update = this.update, e.setAttribute(this.active, ""), We(e.video.params) && !Ms(e.video.params) && (e.setAttribute("video4-active", "on"), d(this, Mt, Si).call(this, e)), We(e.video.params) || je("video4", "無法取得影片 ID");
1115
1115
  }), this.emit("init");
1116
1116
  }, Mt = new WeakSet(), Si = function(i) {
1117
- const { LAYOUT: t } = Y, e = i.video.params, { $selector: s, videoLayoutNo: o, videoId: a, videoType: r, videoMode: l, videoButton: c, videoCover: u, videoHighQualityPic: h } = e;
1117
+ const { LAYOUT: t } = Y, e = i.video.params, { $selector: s, videoLayoutNo: o, videoId: a, videoType: r, videoMode: l, videoButton: c, videoCover: u, videoHighQualityPic: p } = e;
1118
1118
  if (l === "onBox") {
1119
1119
  let m = null;
1120
1120
  if (u === "on") {
1121
1121
  i.classList.add("video4-cover"), s.querySelector("img") || (s.insertAdjacentHTML(E.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), T("video4", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構,若無結構則自動加入圖片結構"));
1122
1122
  const g = s.querySelector("img");
1123
1123
  g.insertAdjacentHTML(E.after, t[o]);
1124
- const v = (g == null ? void 0 : g.getAttribute("src")) || (g == null ? void 0 : g.getAttribute("data-src"));
1125
- !v && r == "youtube" ? h ? g.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : g.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !v && r == "vimeo" ? g.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !v && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
1124
+ const f = (g == null ? void 0 : g.getAttribute("src")) || (g == null ? void 0 : g.getAttribute("data-src"));
1125
+ !f && r == "youtube" ? p == "on" ? g.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : g.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !f && r == "vimeo" ? g.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !f && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
1126
1126
  const y = b.thumbnail_url;
1127
1127
  g.setAttribute("src", `${y}`);
1128
1128
  }).catch(function(b) {
@@ -1136,13 +1136,13 @@ V = new WeakSet(), Se = function() {
1136
1136
  i.classList.add("video4-cover"), s.querySelector("img") || (s.insertAdjacentHTML(E.prepend, '<picture><source srcset="" type="image/webp"><source srcset="" type="image/jpeg"><img src="" alt></picture>'), T("video", "若啟用 [videoCover] 且選擇 onBox 模式必須於 video-target 內放置 img 結構"));
1137
1137
  const g = s.querySelector("img");
1138
1138
  g.insertAdjacentHTML(E.after, t[o]);
1139
- const v = (g == null ? void 0 : g.getAttribute("src")) || (g == null ? void 0 : g.getAttribute("data-src"));
1140
- !v && r == "youtube" ? h ? g.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : g.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !v && r == "vimeo" ? g.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !v && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
1139
+ const f = (g == null ? void 0 : g.getAttribute("src")) || (g == null ? void 0 : g.getAttribute("data-src"));
1140
+ !f && r == "youtube" ? p == "on" ? g.setAttribute("src", `http://img.youtube.com/vi/${a}/maxresdefault.jpg `) : g.setAttribute("src", `https://img.youtube.com/vi/${a}/0.jpg`) : !f && r == "vimeo" ? g.setAttribute("src", `https://vumbnail.com/${a}_large.jpg`) : !f && r == "tiktok" ? fetch(`https://www.tiktok.com/oembed?url=https://www.tiktok.com/@/video/${a}`, { method: "GET", redirect: "follow" }).then((b) => b.json()).then((b) => {
1141
1141
  const y = b.thumbnail_url;
1142
1142
  g.setAttribute("src", `${y}`);
1143
1143
  }).catch(function(b) {
1144
1144
  console.log("error");
1145
- }) : v || T("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片"), c == "off" ? m = s : (m = s.querySelector(c) ?? s, s.querySelector(c) || T("video4", `找不到 videoButton 設定的 element -> '${c}', 點擊物件轉移至 '${this.__storage__.el}'`));
1145
+ }) : f || T("video4", "僅 youtube & vimeo 提供,無圖片時放置預設封面畫面,其他影片平台請自行上傳封面照片"), c == "off" ? m = s : (m = s.querySelector(c) ?? s, s.querySelector(c) || T("video4", `找不到 videoButton 設定的 element -> '${c}', 點擊物件轉移至 '${this.__storage__.el}'`));
1146
1146
  } else {
1147
1147
  s.innerHTML = Te(e);
1148
1148
  return;
@@ -1150,29 +1150,38 @@ V = new WeakSet(), Se = function() {
1150
1150
  m.video || (m.video = {}, m.video.params = e), m.video.eventHandler = d(this, K, De), m.addEventListener("click", m.video.eventHandler);
1151
1151
  }
1152
1152
  }, K = new WeakSet(), De = function(i) {
1153
- const { video: t, emit: e } = this, { $selector: s, videoMode: o, videoTarget: a, videoTargetRoute: r, videoType: l } = t.params, c = new Fe({ callback_loaded: (u) => {
1153
+ const { video: t, emit: e } = this, { $selector: s, videoMode: o, videoTarget: a, videoTargetRoute: r, videoType: l, videoIgHtml: c } = t.params, u = new Fe({ callback_loaded: (p) => {
1154
1154
  } });
1155
1155
  if (o == "onBox") {
1156
- const u = {
1156
+ const p = {
1157
1157
  target: a,
1158
1158
  route: r,
1159
1159
  on: {
1160
- complete(h) {
1161
- h.querySelector(".modal-content").insertAdjacentHTML("beforeend", Te(t.params)), h.querySelector(".modal-content").setAttribute("video-typeStyle", `${l}`);
1160
+ complete(m) {
1161
+ if (l == "instagram") {
1162
+ const g = (f) => `${c}`;
1163
+ if (m.querySelector(".modal-content").insertAdjacentHTML("beforeend", g(t.params)), m.querySelector(".modal-content").setAttribute("video-typeStyle", `${l}`), window.instgrm)
1164
+ window.instgrm.Embeds.process();
1165
+ else {
1166
+ const f = document.createElement("script");
1167
+ f.src = "https://www.instagram.com/embed.js", f.async = !0, document.body.appendChild(f);
1168
+ }
1169
+ } else
1170
+ m.querySelector(".modal-content").insertAdjacentHTML("beforeend", Te(t.params)), m.querySelector(".modal-content").setAttribute("video-typeStyle", `${l}`);
1162
1171
  },
1163
- open(h) {
1164
- const m = h.querySelectorAll("[data-overlayscrollbars-viewport]");
1165
- c.update(), Ei([...m]);
1172
+ open(m) {
1173
+ const g = m.querySelectorAll("[data-overlayscrollbars-viewport]");
1174
+ u.update(), window.modalScroll.update(), Ei([...g]);
1166
1175
  },
1167
- close(h) {
1168
- const m = h.querySelectorAll("[data-overlayscrollbars-viewport]");
1169
- Ai([...m]);
1176
+ close(m) {
1177
+ const g = m.querySelectorAll("[data-overlayscrollbars-viewport]");
1178
+ Ai([...g]);
1170
1179
  },
1171
- destroy(h) {
1180
+ destroy(m) {
1172
1181
  }
1173
1182
  }
1174
1183
  };
1175
- U.open(u);
1184
+ U.open(p);
1176
1185
  } else
1177
1186
  o == "onPage" && (t.params.videoAutoplay = "on", s.innerHTML = Te(t.params));
1178
1187
  }, qt = new WeakSet(), Di = function(i) {
@@ -1189,7 +1198,8 @@ V = new WeakSet(), Se = function() {
1189
1198
  videoTarget: i.getAttribute("video-target") || t.videoTarget,
1190
1199
  videoTargetRoute: i.getAttribute("video-target-route") || t.videoTargetRoute,
1191
1200
  videoStartTime: i.getAttribute("video-starttime") || t.videoStartTime,
1192
- videoHighQualityPic: i.getAttribute("video-highquality") || t.videoHighQuality
1201
+ videoHighQualityPic: i.getAttribute("video-highquality") || t.videoHighQuality,
1202
+ videoIgHtml: i.getAttribute("video-ig") || t.videoIgHtml
1193
1203
  };
1194
1204
  };
1195
1205
  Object.assign(qs.prototype, O);
@@ -2033,8 +2043,8 @@ const Oe = {
2033
2043
  );
2034
2044
  const l = e.querySelector(".dropdown-list");
2035
2045
  return [...t].forEach((c) => {
2036
- c.tagName === "LI" && (c.classList.contains("has-sublayer") ? [...c.querySelectorAll("li")].forEach((h) => {
2037
- (!h.hasAttribute("data-option") || h.getAttribute("data-option").trim() === "") && h.setAttribute("data-option", h.textContent.trim());
2046
+ c.tagName === "LI" && (c.classList.contains("has-sublayer") ? [...c.querySelectorAll("li")].forEach((p) => {
2047
+ (!p.hasAttribute("data-option") || p.getAttribute("data-option").trim() === "") && p.setAttribute("data-option", p.textContent.trim());
2038
2048
  }) : (!c.hasAttribute("data-option") || c.getAttribute("data-option").trim() === "") && c.setAttribute("data-option", c.textContent.trim())), l.append(c);
2039
2049
  }), e.children[0];
2040
2050
  }, Os = (n) => {
@@ -2128,10 +2138,10 @@ var It, $i, Ot, xi, Pt, Ci, Nt, Hi;
2128
2138
  class ki extends HTMLElement {
2129
2139
  constructor() {
2130
2140
  super();
2131
- p(this, It);
2132
- p(this, Ot);
2133
- p(this, Pt);
2134
- p(this, Nt);
2141
+ h(this, It);
2142
+ h(this, Ot);
2143
+ h(this, Pt);
2144
+ h(this, Nt);
2135
2145
  this.initialize = !1;
2136
2146
  }
2137
2147
  static get observedAttributes() {
@@ -2157,8 +2167,8 @@ class ki extends HTMLElement {
2157
2167
  case "multiple":
2158
2168
  const l = [];
2159
2169
  o.querySelector(".dropdown-list li").classList.remove("active"), s.split(",").forEach((u) => {
2160
- const h = o.querySelector(`.dropdown-list li[data-option="${u}"]`);
2161
- w(h) && (h.classList.add("active"), l.push(h));
2170
+ const p = o.querySelector(`.dropdown-list li[data-option="${u}"]`);
2171
+ w(p) && (p.classList.add("active"), l.push(p));
2162
2172
  });
2163
2173
  const c = l.map((u) => [...o.s.allLi].indexOf(u));
2164
2174
  x(o, c);
@@ -2276,7 +2286,7 @@ It = new WeakSet(), $i = function() {
2276
2286
  if (t.__scroller__) {
2277
2287
  const { viewport: c } = t.__scroller__.elements();
2278
2288
  if (w(t.s.activeLi)) {
2279
- const u = t.s.activeLi.clientHeight / 2, h = t.s.activeLi.offsetTop, m = h - r.clientHeight / 2 + u > 0 ? h - r.clientHeight / 2 + u : 0;
2289
+ const u = t.s.activeLi.clientHeight / 2, p = t.s.activeLi.offsetTop, m = p - r.clientHeight / 2 + u > 0 ? p - r.clientHeight / 2 + u : 0;
2280
2290
  c.scrollTo({
2281
2291
  top: m,
2282
2292
  behavior: "smooth"
@@ -2310,25 +2320,25 @@ It = new WeakSet(), $i = function() {
2310
2320
  e.s.allLi = e.querySelectorAll(".dropdown-list li"), e.s.allLi.forEach((l) => {
2311
2321
  l.addEventListener("click", function(c) {
2312
2322
  var g;
2313
- const u = this, h = [...e.s.allLi].indexOf(u), m = parseInt(e.getAttribute("d4-default-height"));
2323
+ const u = this, p = [...e.s.allLi].indexOf(u), m = parseInt(e.getAttribute("d4-default-height"));
2314
2324
  if (u.classList.contains("has-sublayer")) {
2315
2325
  c.stopPropagation();
2316
- const v = u.querySelector(".sub-dropdown"), b = v.querySelector(".sub-dropdown-list"), y = parseInt(getComputedStyle(b).marginTop) + parseInt(getComputedStyle(b).marginBottom);
2317
- v.style.cssText = `--height: ${b.offsetHeight + y}px`;
2318
- const H = parseInt(v.style.cssText.replace("--height:", "").trim()), G = parseInt(getComputedStyle(a).maxHeight), S = () => {
2326
+ const f = u.querySelector(".sub-dropdown"), b = f.querySelector(".sub-dropdown-list"), y = parseInt(getComputedStyle(b).marginTop) + parseInt(getComputedStyle(b).marginBottom);
2327
+ f.style.cssText = `--height: ${b.offsetHeight + y}px`;
2328
+ const H = parseInt(f.style.cssText.replace("--height:", "").trim()), G = parseInt(getComputedStyle(a).maxHeight), S = () => {
2319
2329
  s = m + e.s.subDropdownTotalH, o = s > G ? G : s, e.style.cssText = `--maxHeight: ${o}px;`, e.s.dropdownEl.style.height = `${o}px`;
2320
2330
  };
2321
2331
  u.classList.contains("open") ? (u.classList.remove("open"), e.s.subDropdownTotalH -= H, S()) : (u.classList.add("open"), e.s.subDropdownTotalH += H, S());
2322
2332
  const X = () => {
2323
- e.__scroller__.update(!0), v.removeEventListener("transitionend", X);
2333
+ e.__scroller__.update(!0), f.removeEventListener("transitionend", X);
2324
2334
  };
2325
- v.addEventListener("transitionend", X);
2335
+ f.addEventListener("transitionend", X);
2326
2336
  } else
2327
2337
  switch (Os(e), e.s.selectType) {
2328
2338
  case "single":
2329
2339
  if (e.setAttribute("d4-value", u.getAttribute("data-option")), r) {
2330
- const v = e.s.cityLang, b = l.textContent.trim(), y = document.getElementById(e.getAttribute("dist-select"));
2331
- y && (y.querySelector(".dropdown-list").textContent = "", x(y, -1), Oe[v][b].forEach((H, G) => {
2340
+ const f = e.s.cityLang, b = l.textContent.trim(), y = document.getElementById(e.getAttribute("dist-select"));
2341
+ y && (y.querySelector(".dropdown-list").textContent = "", x(y, -1), Oe[f][b].forEach((H, G) => {
2332
2342
  const S = document.createElement("li");
2333
2343
  S.textContent = H[0], S.setAttribute("data-option", H[0]), y.querySelector(".dropdown-list").append(S);
2334
2344
  }), e.__events__.selectOption(y));
@@ -2336,7 +2346,7 @@ It = new WeakSet(), $i = function() {
2336
2346
  (g = u.parentNode.closest("li")) != null && g.classList.contains("has-sublayer") && (c.stopPropagation(), e.close());
2337
2347
  break;
2338
2348
  case "multiple":
2339
- c.stopPropagation(), u.classList.toggle("active"), x(e, h);
2349
+ c.stopPropagation(), u.classList.toggle("active"), x(e, p);
2340
2350
  break;
2341
2351
  }
2342
2352
  });
@@ -2473,10 +2483,10 @@ var jt, Mi, zt, qi, Wt, Ii, Bt, Oi;
2473
2483
  class Bs extends HTMLElement {
2474
2484
  constructor() {
2475
2485
  super();
2476
- p(this, jt);
2477
- p(this, zt);
2478
- p(this, Wt);
2479
- p(this, Bt);
2486
+ h(this, jt);
2487
+ h(this, zt);
2488
+ h(this, Wt);
2489
+ h(this, Bt);
2480
2490
  this.initialize = !1;
2481
2491
  }
2482
2492
  static get observedAttributes() {
@@ -2542,23 +2552,23 @@ jt = new WeakSet(), Mi = function() {
2542
2552
  break;
2543
2553
  case "alternate":
2544
2554
  let g = function() {
2545
- let v = [];
2555
+ let f = [];
2546
2556
  switch (e) {
2547
2557
  case "top":
2548
- h = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(t.s.nowDuration / (h * 2)) * t.s.animateEl.scrollHeight, v = [{ transform: `translate3d(0,${t.clientHeight}px,0)` }, { transform: `translate3d(0,calc(${t.clientHeight}px - 100%),0)` }];
2558
+ p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollHeight, f = [{ transform: `translate3d(0,${t.clientHeight}px,0)` }, { transform: `translate3d(0,calc(${t.clientHeight}px - 100%),0)` }];
2549
2559
  break;
2550
2560
  case "right":
2551
- h = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(t.s.nowDuration / (h * 2)) * t.s.animateEl.scrollWidth, v = [{ transform: "translate3d(-100%,0,0)" }, { transform: "translate3d(0,0,0)" }];
2561
+ p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(t.s.nowDuration / (p * 2)) * t.s.animateEl.scrollWidth, f = [{ transform: "translate3d(-100%,0,0)" }, { transform: "translate3d(0,0,0)" }];
2552
2562
  break;
2553
2563
  case "bottom":
2554
- h = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(o / (h * 2)) * t.s.animateEl.scrollHeight, v = [{ transform: "translate3d(0,-100%,0)" }, { transform: "translate3d(0,0,0)" }];
2564
+ p = Math.abs(t.s.animateEl.scrollHeight - t.clientHeight), m = parseInt(o / (p * 2)) * t.s.animateEl.scrollHeight, f = [{ transform: "translate3d(0,-100%,0)" }, { transform: "translate3d(0,0,0)" }];
2555
2565
  break;
2556
2566
  case "left":
2557
- h = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(o / (h * 2)) * t.s.animateEl.scrollWidth, v = [{ transform: `translate3d(${t.clientWidth}px,0,0)` }, { transform: `translate3d(calc(-100% + ${t.clientWidth}px),0,0)` }];
2567
+ p = Math.abs(t.s.animateEl.scrollWidth - t.clientWidth), m = parseInt(o / (p * 2)) * t.s.animateEl.scrollWidth, f = [{ transform: `translate3d(${t.clientWidth}px,0,0)` }, { transform: `translate3d(calc(-100% + ${t.clientWidth}px),0,0)` }];
2558
2568
  break;
2559
2569
  }
2560
- return v;
2561
- }, h, m;
2570
+ return f;
2571
+ }, p, m;
2562
2572
  (t.clientHeight > t.s.animateEl.scrollHeight || e === "left" || e === "right") && (t.s.animateEl.style.transform = `${g()[0].transform}`, t.s.animateEl.animate(g(), {
2563
2573
  duration: m,
2564
2574
  fill: "forwards"
@@ -2632,17 +2642,17 @@ var Gt, Pi, Xt, Ni, Rt, ji, tt, _e, W, dt, Ft, zi;
2632
2642
  class Ge {
2633
2643
  constructor(i) {
2634
2644
  // 初始化
2635
- p(this, Gt);
2645
+ h(this, Gt);
2636
2646
  // 左右箭頭事件綁定
2637
- p(this, Xt);
2647
+ h(this, Xt);
2638
2648
  // 左右拖拉事件綁定
2639
- p(this, Rt);
2649
+ h(this, Rt);
2640
2650
  // 卷軸位置判斷
2641
- p(this, tt);
2651
+ h(this, tt);
2642
2652
  // 隱藏按鈕判斷
2643
- p(this, W);
2653
+ h(this, W);
2644
2654
  // 選項事件綁定
2645
- p(this, Ft);
2655
+ h(this, Ft);
2646
2656
  this.$element = i, this.option = i.s.option.drag, d(this, Gt, Pi).call(this);
2647
2657
  }
2648
2658
  // 更新 active 位置
@@ -2695,32 +2705,32 @@ Gt = new WeakSet(), Pi = function() {
2695
2705
  }, Rt = new WeakSet(), ji = function() {
2696
2706
  const { $wrapper: i } = this;
2697
2707
  let t = !1, e = !1, s = 0, o = 0;
2698
- const a = function(h) {
2699
- h.preventDefault(), e = !1, t = !0, s = h.pageX - i.offsetLeft, o = i.scrollLeft;
2708
+ const a = function(p) {
2709
+ p.preventDefault(), e = !1, t = !0, s = p.pageX - i.offsetLeft, o = i.scrollLeft;
2700
2710
  };
2701
2711
  i.removeEventListener("mousedown", a), i.addEventListener("mousedown", a);
2702
2712
  const r = function() {
2703
2713
  e = !1, t = !1;
2704
2714
  };
2705
2715
  i.removeEventListener("mouseleave", r), i.addEventListener("mouseleave", r);
2706
- const l = function(h) {
2707
- h.preventDefault(), t = !1;
2716
+ const l = function(p) {
2717
+ p.preventDefault(), t = !1;
2708
2718
  };
2709
2719
  i.removeEventListener("mouseup", l), i.addEventListener("mouseup", l);
2710
- const c = function(h) {
2711
- if (h.preventDefault(), e = !0, !t)
2720
+ const c = function(p) {
2721
+ if (p.preventDefault(), e = !0, !t)
2712
2722
  return;
2713
- const g = h.pageX - i.offsetLeft - s;
2723
+ const g = p.pageX - i.offsetLeft - s;
2714
2724
  i.scrollTo({
2715
2725
  left: o - g
2716
2726
  });
2717
2727
  };
2718
2728
  i.removeEventListener("mousemove", c), i.addEventListener("mousemove", c);
2719
- const u = function(h) {
2720
- e && (h.preventDefault(), h.stopPropagation());
2729
+ const u = function(p) {
2730
+ e && (p.preventDefault(), p.stopPropagation());
2721
2731
  };
2722
- i.querySelectorAll("a").forEach((h) => {
2723
- h.removeEventListener("click", u), h.addEventListener("click", u);
2732
+ i.querySelectorAll("a").forEach((p) => {
2733
+ p.removeEventListener("click", u), p.addEventListener("click", u);
2724
2734
  });
2725
2735
  }, tt = new WeakSet(), _e = function() {
2726
2736
  const { $container: i, $wrapper: t } = this, e = t.scrollWidth - t.clientWidth, s = t.scrollLeft;
@@ -2765,13 +2775,13 @@ var Yt, Wi, Ut, Bi, Jt, Gi, Zt, Xi;
2765
2775
  class Gs {
2766
2776
  constructor(i) {
2767
2777
  // 初始化
2768
- p(this, Yt);
2778
+ h(this, Yt);
2769
2779
  // 隱藏按鈕判斷
2770
- p(this, Ut);
2780
+ h(this, Ut);
2771
2781
  // 展開箭頭事件綁定
2772
- p(this, Jt);
2782
+ h(this, Jt);
2773
2783
  // 選項事件綁定
2774
- p(this, Zt);
2784
+ h(this, Zt);
2775
2785
  this.$element = i, this.option = i.s.option.collapse, d(this, Yt, Wi).call(this);
2776
2786
  }
2777
2787
  }
@@ -2807,12 +2817,12 @@ var Qt, Ri, Vt, Fi, et, ke, B, ut;
2807
2817
  class Rs extends HTMLElement {
2808
2818
  constructor() {
2809
2819
  super();
2810
- p(this, Qt);
2811
- p(this, Vt);
2820
+ h(this, Qt);
2821
+ h(this, Vt);
2812
2822
  // 斷點設定
2813
- p(this, et);
2823
+ h(this, et);
2814
2824
  // check type
2815
- p(this, B);
2825
+ h(this, B);
2816
2826
  this.initialize = !1, this.__events__ = {}, this.s = {}, this.s.originalDomString = this.innerHTML.trim().replace(/\n/g, ""), this.previousWidth = window.innerWidth;
2817
2827
  }
2818
2828
  static get observedAttributes() {
@@ -2898,38 +2908,38 @@ class Yi extends HTMLElement {
2898
2908
  // 定義組件的初始狀態
2899
2909
  constructor(t, e) {
2900
2910
  super();
2901
- p(this, Kt);
2902
- p(this, te);
2911
+ h(this, Kt);
2912
+ h(this, te);
2903
2913
  // 第一關 判斷數量以及id設定
2904
- p(this, it);
2914
+ h(this, it);
2905
2915
  // 第二關 id命名提醒
2906
- p(this, N);
2907
- p(this, ee);
2908
- p(this, ie);
2909
- p(this, se);
2916
+ h(this, N);
2917
+ h(this, ee);
2918
+ h(this, ie);
2919
+ h(this, se);
2910
2920
  // 執行函式
2911
2921
  // 移動至指定位置
2912
- p(this, ne);
2922
+ h(this, ne);
2913
2923
  // 移動
2914
- p(this, oe);
2924
+ h(this, oe);
2915
2925
  // 步驟狀態
2916
- p(this, ae);
2926
+ h(this, ae);
2917
2927
  // next 按鈕狀態
2918
- p(this, re);
2928
+ h(this, re);
2919
2929
  // prev 按鈕狀態
2920
- p(this, le);
2930
+ h(this, le);
2921
2931
  // 頁籤狀態
2922
- p(this, ce);
2932
+ h(this, ce);
2923
2933
  // 第三關各種元件判斷 及 執行
2924
- p(this, q);
2934
+ h(this, q);
2925
2935
  // 消失動畫
2926
- p(this, de);
2936
+ h(this, de);
2927
2937
  // 出現動畫
2928
- p(this, ue);
2938
+ h(this, ue);
2929
2939
  // 狀態
2930
- p(this, he);
2940
+ h(this, he);
2931
2941
  // resize
2932
- p(this, pe);
2942
+ h(this, pe);
2933
2943
  }
2934
2944
  // 當組件的屬性被更改時會被呼叫
2935
2945
  static get observedAttributes() {
@@ -3082,7 +3092,7 @@ Kt = new WeakSet(), Ui = function() {
3082
3092
  const { t: e } = this;
3083
3093
  this.t.transition;
3084
3094
  const s = e.tabPanels[t];
3085
- switch (s.classList.add("hide"), e.display) {
3095
+ switch (s.classList.remove("show"), s.classList.add("hide"), e.display) {
3086
3096
  case "fade":
3087
3097
  s.style.cssText = "display: none; opacity: 0;";
3088
3098
  break;
@@ -3098,7 +3108,7 @@ Kt = new WeakSet(), Ui = function() {
3098
3108
  }, ue = new WeakSet(), as = function(t) {
3099
3109
  const { duration: e, timing: s, delay: o } = this.t.transition, a = this.t.tabPanels[t];
3100
3110
  let r;
3101
- switch (a.classList.remove("hide"), a.style.transition = `opacity ${e}ms ${s} ${o}ms`, a.style.display = "block", this.t.display) {
3111
+ switch (a.classList.add("show"), a.classList.remove("hide"), a.style.transition = `opacity ${e}ms ${s} ${o}ms`, a.style.display = "block", this.t.display) {
3102
3112
  case "fade":
3103
3113
  a.style.opacity = "0", r = setTimeout(() => {
3104
3114
  clearTimeout(r), a.style.opacity = "1";
@@ -3113,8 +3123,8 @@ Kt = new WeakSet(), Ui = function() {
3113
3123
  break;
3114
3124
  case "swiper":
3115
3125
  a.style.opacity = "1";
3116
- const c = this.querySelector(".swiper-wrapper"), u = this.t.tabPanels[0].offsetWidth, h = -t * u;
3117
- c.style.transition = `transform ${e}ms ${s} ${o}ms`, c.style.transform = `translateX(${h}px)`;
3126
+ const c = this.querySelector(".swiper-wrapper"), u = this.t.tabPanels[0].offsetWidth, p = -t * u;
3127
+ c.style.transition = `transform ${e}ms ${s} ${o}ms`, c.style.transform = `translateX(${p}px)`;
3118
3128
  break;
3119
3129
  default:
3120
3130
  console.warn(this.t.display, "沒有這個效果請自己想辦法!!!!");
@@ -3181,10 +3191,10 @@ const Xe = (n) => {
3181
3191
  var st, xe, me, ds, ge, us, nt, Ce;
3182
3192
  class Us {
3183
3193
  constructor(i, t = {}) {
3184
- p(this, st);
3185
- p(this, me);
3186
- p(this, ge);
3187
- p(this, nt);
3194
+ h(this, st);
3195
+ h(this, me);
3196
+ h(this, ge);
3197
+ h(this, nt);
3188
3198
  !at(i) && !ye(i) && !rt(i) && !w(i) || (this.__storage__ = {
3189
3199
  el: i,
3190
3200
  options: t
@@ -3208,10 +3218,10 @@ st = new WeakSet(), xe = function() {
3208
3218
  }, ge = new WeakSet(), us = function(i) {
3209
3219
  const { options: t } = this, { collapseClass: e, block: s, target: o, defaultOpen: a, targetStopPropagation: r, defaultActiveMark: l } = t, c = i, u = c.querySelector(o);
3210
3220
  if (c.collapse.height = u.children[0].offsetHeight, a ? (u.style.height = `${u.children[0].offsetHeight}px`, c.classList.remove(e)) : !c.classList.contains(l) && !c.hasAttribute(l) ? (c.classList.add(e), u.style.height = "0px", u.style.overflow = "hidden") : (u.style.height = `${u.children[0].offsetHeight}px`, c.classList.remove(e)), c.removeEventListener("click", d(this, nt, Ce)), c.addEventListener("click", d(this, nt, Ce)), r) {
3211
- const h = (m) => {
3221
+ const p = (m) => {
3212
3222
  m.stopPropagation();
3213
3223
  };
3214
- u.removeEventListener("click", h), u.addEventListener("click", h);
3224
+ u.removeEventListener("click", p), u.addEventListener("click", p);
3215
3225
  }
3216
3226
  }, nt = new WeakSet(), Ce = function() {
3217
3227
  const { instance: i, defaultOptions: t } = this.collapse, { collapseClass: e, block: s, target: o, single: a } = t, r = this;
@@ -3237,10 +3247,10 @@ var ot, He, fe, ps, ve, ms, be, gs;
3237
3247
  class Zs extends HTMLElement {
3238
3248
  constructor() {
3239
3249
  super();
3240
- p(this, ot);
3241
- p(this, fe);
3242
- p(this, ve);
3243
- p(this, be);
3250
+ h(this, ot);
3251
+ h(this, fe);
3252
+ h(this, ve);
3253
+ h(this, be);
3244
3254
  this.initialize = !1;
3245
3255
  }
3246
3256
  connectedCallback() {
@@ -3280,8 +3290,8 @@ ot = new WeakSet(), He = function() {
3280
3290
  let s = "ontouchstart" in document.documentElement ? "touchstart" : "mouseenter", o = "ontouchend" in document.documentElement ? "touchend" : "mouseleave";
3281
3291
  e.addEventListener(s, function(a) {
3282
3292
  if (s === "touchstart" && hs(), e.s.options.hover) {
3283
- const r = Math.round(s === "mouseenter" ? a.clientX - e.getBoundingClientRect().left : a.changedTouches[0].clientX - e.getBoundingClientRect().x), l = Math.round(s === "mouseenter" ? a.clientY - e.getBoundingClientRect().top : a.changedTouches[0].clientY - e.getBoundingClientRect().y), { offsetWidth: c, offsetHeight: u } = e, h = Math.ceil(Math.sqrt(c ** 2 + u ** 2) * 2);
3284
- e.style.setProperty("--r", h), t.style.left = r + "px", t.style.top = l + "px", e.classList.add("entered");
3293
+ const r = Math.round(s === "mouseenter" ? a.clientX - e.getBoundingClientRect().left : a.changedTouches[0].clientX - e.getBoundingClientRect().x), l = Math.round(s === "mouseenter" ? a.clientY - e.getBoundingClientRect().top : a.changedTouches[0].clientY - e.getBoundingClientRect().y), { offsetWidth: c, offsetHeight: u } = e, p = Math.ceil(Math.sqrt(c ** 2 + u ** 2) * 2);
3294
+ e.style.setProperty("--r", p), t.style.left = r + "px", t.style.top = l + "px", e.classList.add("entered");
3285
3295
  }
3286
3296
  }), e.addEventListener(o, function(a) {
3287
3297
  if (o !== "touchend" && e.s.options.hover) {
@@ -3297,13 +3307,13 @@ class Qs {
3297
3307
  }
3298
3308
  init() {
3299
3309
  const i = document.querySelectorAll("*:not([video-id]) > img"), t = (o, a) => {
3300
- const r = document.createElement("div"), l = document.createElement("span"), c = document.createElement("span"), u = Math.sqrt(o ** 2 + a ** 2), h = Math.asin(a / u) * 180 / Math.PI;
3310
+ const r = document.createElement("div"), l = document.createElement("span"), c = document.createElement("span"), u = Math.sqrt(o ** 2 + a ** 2), p = Math.asin(a / u) * 180 / Math.PI;
3301
3311
  return r.className = "no-image", l.className = "slash1", l.style.cssText = `
3302
3312
  width: ${u}px;
3303
- transform: rotate(${h}deg);
3313
+ transform: rotate(${p}deg);
3304
3314
  `, c.className = "slash2", c.style.cssText = `
3305
3315
  width: ${u}px;
3306
- transform: rotate(${-h}deg);
3316
+ transform: rotate(${-p}deg);
3307
3317
  `, r.appendChild(l), r.appendChild(c), r;
3308
3318
  }, e = document.querySelectorAll(".error-image");
3309
3319
  for (let o = 0; o < e.length; o++)
@@ -3356,9 +3366,9 @@ function Vs(n, i, t, e) {
3356
3366
  const l = t.name.substring(t.name.lastIndexOf(".")).replace("."), c = t.name.replace(`.${l}`, "");
3357
3367
  e.originalCanvas.toBlob(
3358
3368
  function(u) {
3359
- const h = new File([u], `${c}`, { type: t.type });
3369
+ const p = new File([u], `${c}`, { type: t.type });
3360
3370
  uploadImage[`${a}`][r] = {
3361
- file: h,
3371
+ file: p,
3362
3372
  info: e
3363
3373
  }, s.on.changeAfter && typeof s.on.changeAfter == "function" && s.on.changeAfter(n, e);
3364
3374
  },
@@ -3373,17 +3383,17 @@ function Vs(n, i, t, e) {
3373
3383
  }
3374
3384
  function Ks(n, i, t, e) {
3375
3385
  const s = document.createElement("canvas"), o = s.getContext("2d"), a = i.width, l = i.height / a * 100, c = e / t * 100;
3376
- let u = 0, h = 0;
3386
+ let u = 0, p = 0;
3377
3387
  switch (s.width = t, s.height = e, n.previewSize) {
3378
3388
  case "contain":
3379
- l < c ? (u = s.width, h = t * l / 100) : l > c ? (u = e / l * 100, h = s.height) : (u = s.width, h = s.height);
3389
+ l < c ? (u = s.width, p = t * l / 100) : l > c ? (u = e / l * 100, p = s.height) : (u = s.width, p = s.height);
3380
3390
  break;
3381
3391
  case "cover":
3382
- l < c ? (u = e / l * 100, h = s.height) : l > c ? (u = s.width, h = t * l / 100) : l === c && (u = s.width, h = s.height);
3392
+ l < c ? (u = e / l * 100, p = s.height) : l > c ? (u = s.width, p = t * l / 100) : l === c && (u = s.width, p = s.height);
3383
3393
  break;
3384
3394
  }
3385
- const m = (s.width - u) * 0.5, g = (s.height - h) * 0.5;
3386
- return o.drawImage(i, m, g, u, h), s;
3395
+ const m = (s.width - u) * 0.5, g = (s.height - p) * 0.5;
3396
+ return o.drawImage(i, m, g, u, p), s;
3387
3397
  }
3388
3398
  function tn(n, i) {
3389
3399
  return new Promise((t, e) => {