@colabcommerce/elements 0.0.1 → 0.0.3

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/Retailer.js CHANGED
@@ -1,68 +1,68 @@
1
- import { jsx as b, jsxs as A, Fragment as vt } from "react/jsx-runtime";
2
- import k, { createContext as Ne, useState as W, useEffect as ie, useContext as wt, forwardRef as Xe, useRef as X, useLayoutEffect as St } from "react";
3
- import { u as bt, f as yt, a as ne, b as xt, c as z, d as $e, B as Be, R as U, C as j, e as Tt, A as Et, g as Ct, M as Pt, i as Ge, I as Mt, h as It } from "./globals-D3YPIcjZ.js";
4
- import { C as _e } from "./Container-BPKk2w_q.js";
5
- import { M as Lt } from "./index-Ot1CirR6.js";
6
- const Ye = Ne(), _t = ({ id: t, lng: e, children: i }) => {
7
- const [s, r] = W(e), [n, l] = W(!1);
8
- ie(() => {
9
- e && r(e);
1
+ import { jsx as v, jsxs as N, Fragment as Ze } from "react/jsx-runtime";
2
+ import k, { createContext as Be, useState as X, useEffect as re, useContext as xt, forwardRef as Qe, useRef as U, useLayoutEffect as Tt } from "react";
3
+ import { u as Et, f as Ct, a as se, b as Pt, c as L, d as Ve, B as Ae, R as Z, C as q, e as Mt, g as It, h as pe, i as Lt, F as D, j as _t, A as Ot, k as Nt, M as zt, l as Re, I as At, m as $t } from "./globals-C3lGVSJ0.js";
4
+ import { C as $e } from "./Container-7bFgo-eP.js";
5
+ import { M as me } from "./Modal-BqRDRCTs.js";
6
+ const Je = Be(), kt = ({ id: t, lng: e, children: i }) => {
7
+ const [s, n] = X(e), [r, l] = X(!1);
8
+ re(() => {
9
+ e && n(e);
10
10
  }, [e]);
11
- const { data: a, error: o, isLoading: d, mutate: c } = bt(() => {
11
+ const { data: a, error: o, isLoading: c, mutate: d } = Et(() => {
12
12
  if (t)
13
13
  return [`https://api.colabcommerce.com/widget_api/company_retailer_locations/${t}`, { "X-Cc-Id": t }];
14
14
  throw new Error("No id provided");
15
- }, yt);
16
- ie(() => {
17
- if (a && !d) {
15
+ }, Ct);
16
+ re(() => {
17
+ if (a && !c) {
18
18
  window.document.title = `Palliser Home Furniture ${a.company_retailer_location.address.city}`;
19
19
  const h = document.querySelector('meta[name="description"]');
20
20
  h && h.setAttribute("content", `Find all our high quality home furniture at our reseller ${a.company_retailer_location.retailer_name} in ${a.company_retailer_location.address.city}, sofas, chairs, and all our best home theatre seating furniture`);
21
21
  }
22
- }, [a, d]);
22
+ }, [a, c]);
23
23
  const p = {
24
24
  retailer: (a == null ? void 0 : a.company_retailer_location) || {},
25
25
  error: o,
26
- isLoading: d,
27
- mutate: c,
26
+ isLoading: c,
27
+ mutate: d,
28
28
  locale: s,
29
- messageModalOpen: n,
29
+ messageModalOpen: r,
30
30
  setMessageModalOpen: l
31
31
  };
32
- return /* @__PURE__ */ b(Ye.Provider, { value: p, children: i });
33
- }, J = () => {
34
- const t = wt(Ye);
32
+ return /* @__PURE__ */ v(Je.Provider, { value: p, children: i });
33
+ }, te = () => {
34
+ const t = xt(Je);
35
35
  if (!t)
36
36
  throw new Error("useRetailer must be used within a RetailerProvider");
37
37
  return t;
38
- }, Ot = k.createContext({}), Ue = !0;
39
- function zt({ baseColor: t, highlightColor: e, width: i, height: s, borderRadius: r, circle: n, direction: l, duration: a, enableAnimation: o = Ue, customHighlightBackground: d }) {
40
- const c = {};
41
- return l === "rtl" && (c["--animation-direction"] = "reverse"), typeof a == "number" && (c["--animation-duration"] = `${a}s`), o || (c["--pseudo-element-display"] = "none"), (typeof i == "string" || typeof i == "number") && (c.width = i), (typeof s == "string" || typeof s == "number") && (c.height = s), (typeof r == "string" || typeof r == "number") && (c.borderRadius = r), n && (c.borderRadius = "50%"), typeof t < "u" && (c["--base-color"] = t), typeof e < "u" && (c["--highlight-color"] = e), typeof d == "string" && (c["--custom-highlight-background"] = d), c;
42
- }
43
- function oe({ count: t = 1, wrapper: e, className: i, containerClassName: s, containerTestId: r, circle: n = !1, style: l, ...a }) {
44
- var o, d, c;
45
- const p = k.useContext(Ot), h = { ...a };
46
- for (const [f, w] of Object.entries(a))
47
- typeof w > "u" && delete h[f];
48
- const v = {
38
+ }, Gt = k.createContext({}), et = !0;
39
+ function Dt({ baseColor: t, highlightColor: e, width: i, height: s, borderRadius: n, circle: r, direction: l, duration: a, enableAnimation: o = et, customHighlightBackground: c }) {
40
+ const d = {};
41
+ return l === "rtl" && (d["--animation-direction"] = "reverse"), typeof a == "number" && (d["--animation-duration"] = `${a}s`), o || (d["--pseudo-element-display"] = "none"), (typeof i == "string" || typeof i == "number") && (d.width = i), (typeof s == "string" || typeof s == "number") && (d.height = s), (typeof n == "string" || typeof n == "number") && (d.borderRadius = n), r && (d.borderRadius = "50%"), typeof t < "u" && (d["--base-color"] = t), typeof e < "u" && (d["--highlight-color"] = e), typeof c == "string" && (d["--custom-highlight-background"] = c), d;
42
+ }
43
+ function ce({ count: t = 1, wrapper: e, className: i, containerClassName: s, containerTestId: n, circle: r = !1, style: l, ...a }) {
44
+ var o, c, d;
45
+ const p = k.useContext(Gt), h = { ...a };
46
+ for (const [f, S] of Object.entries(a))
47
+ typeof S > "u" && delete h[f];
48
+ const w = {
49
49
  ...p,
50
50
  ...h,
51
- circle: n
51
+ circle: r
52
52
  }, m = {
53
53
  ...l,
54
- ...zt(v)
54
+ ...Dt(w)
55
55
  };
56
- let S = "react-loading-skeleton";
57
- i && (S += ` ${i}`);
58
- const x = (o = v.inline) !== null && o !== void 0 ? o : !1, g = [], u = Math.ceil(t);
56
+ let b = "react-loading-skeleton";
57
+ i && (b += ` ${i}`);
58
+ const x = (o = w.inline) !== null && o !== void 0 ? o : !1, g = [], u = Math.ceil(t);
59
59
  for (let f = 0; f < u; f++) {
60
- let w = m;
60
+ let S = m;
61
61
  if (u > t && f === u - 1) {
62
- const P = (d = w.width) !== null && d !== void 0 ? d : "100%", I = t % 1, M = typeof P == "number" ? P * I : `calc(${P} * ${I})`;
63
- w = { ...w, width: M };
62
+ const P = (c = S.width) !== null && c !== void 0 ? c : "100%", I = t % 1, M = typeof P == "number" ? P * I : `calc(${P} * ${I})`;
63
+ S = { ...S, width: M };
64
64
  }
65
- const y = k.createElement("span", { className: S, style: w, key: f }, "‌");
65
+ const y = k.createElement("span", { className: b, style: S, key: f }, "‌");
66
66
  x ? g.push(y) : g.push(k.createElement(
67
67
  k.Fragment,
68
68
  { key: f },
@@ -70,73 +70,73 @@ function oe({ count: t = 1, wrapper: e, className: i, containerClassName: s, con
70
70
  k.createElement("br", null)
71
71
  ));
72
72
  }
73
- return k.createElement("span", { className: s, "data-testid": r, "aria-live": "polite", "aria-busy": (c = v.enableAnimation) !== null && c !== void 0 ? c : Ue }, e ? g.map((f, w) => k.createElement(e, { key: w }, f)) : g);
74
- }
75
- const At = "hooFS", Nt = "dxXZo", $t = "d-rRo", kt = "TnhjQ", Dt = "cn0rU", Bt = "-sN-9", Gt = "F3XjX", Vt = "aQW1o", Ht = "QVB1F", Ft = "xH9dq", Rt = "QbyPq", H = {
76
- wrapper: At,
77
- title: Nt,
78
- hours: $t,
79
- open: kt,
80
- closed: Dt,
81
- soon: Bt,
82
- currentHours: Gt,
83
- subHoursWrapper: Vt,
84
- subHours: Ht,
85
- today: Ft,
86
- shown: Rt
87
- }, jt = ({ i: t, hour: e }) => {
88
- const { t: i, locale: s } = ne("default"), r = /* @__PURE__ */ new Date();
89
- r.setUTCHours(e.open_at_hour - e.utc_offset_minute / 60, e.open_at_minute, 0, 0);
90
- const n = /* @__PURE__ */ new Date();
91
- n.setUTCHours(e.close_at_hour - e.utc_offset_minute / 60, e.close_at_minute, 0, 0);
92
- const l = r.getUTCMinutes() === 0 ? new Intl.DateTimeFormat(s, { hour: "numeric" }) : new Intl.DateTimeFormat(s, { hour: "numeric", minute: "2-digit" }), a = n.getUTCMinutes() === 0 ? new Intl.DateTimeFormat(s, { hour: "numeric" }) : new Intl.DateTimeFormat(s, { hour: "numeric", minute: "2-digit" }), d = (/* @__PURE__ */ new Date()).getDay(), c = e.day === d;
93
- return /* @__PURE__ */ A("div", { className: [H.subHours, c ? H.today : ""].join(" "), children: [
94
- /* @__PURE__ */ b("div", { children: i(`store.days.${e.day}`) }),
95
- /* @__PURE__ */ A("div", { children: [
96
- l.format(r),
73
+ return k.createElement("span", { className: s, "data-testid": n, "aria-live": "polite", "aria-busy": (d = w.enableAnimation) !== null && d !== void 0 ? d : et }, e ? g.map((f, S) => k.createElement(e, { key: S }, f)) : g);
74
+ }
75
+ const Bt = "hooFS", Vt = "dxXZo", Ft = "d-rRo", Ht = "TnhjQ", Rt = "cn0rU", jt = "-sN-9", Wt = "F3XjX", qt = "aQW1o", Xt = "QVB1F", Yt = "xH9dq", Ut = "QbyPq", H = {
76
+ wrapper: Bt,
77
+ title: Vt,
78
+ hours: Ft,
79
+ open: Ht,
80
+ closed: Rt,
81
+ soon: jt,
82
+ currentHours: Wt,
83
+ subHoursWrapper: qt,
84
+ subHours: Xt,
85
+ today: Yt,
86
+ shown: Ut
87
+ }, Kt = ({ i: t, hour: e }) => {
88
+ const { t: i, locale: s } = se("default"), n = /* @__PURE__ */ new Date();
89
+ n.setUTCHours(e.open_at_hour - e.utc_offset_minute / 60, e.open_at_minute, 0, 0);
90
+ const r = /* @__PURE__ */ new Date();
91
+ r.setUTCHours(e.close_at_hour - e.utc_offset_minute / 60, e.close_at_minute, 0, 0);
92
+ const l = n.getUTCMinutes() === 0 ? new Intl.DateTimeFormat(s, { hour: "numeric" }) : new Intl.DateTimeFormat(s, { hour: "numeric", minute: "2-digit" }), a = r.getUTCMinutes() === 0 ? new Intl.DateTimeFormat(s, { hour: "numeric" }) : new Intl.DateTimeFormat(s, { hour: "numeric", minute: "2-digit" }), c = (/* @__PURE__ */ new Date()).getDay(), d = e.day === c;
93
+ return /* @__PURE__ */ N("div", { className: [H.subHours, d ? H.today : ""].join(" "), children: [
94
+ /* @__PURE__ */ v("div", { children: i(`store.days.${e.day}`) }),
95
+ /* @__PURE__ */ N("div", { children: [
96
+ l.format(n),
97
97
  " - ",
98
- a.format(n)
98
+ a.format(r)
99
99
  ] })
100
100
  ] }, e.day);
101
- }, Wt = ({ hours: t, defaultOpen: e = !1 }) => {
102
- const { t: i } = ne(), { isOpen: s, openingSoon: r, closingSoon: n, openAt: l, closeAt: a, openFormatter: o, closeAtFormatter: d } = xt(t), [c, p] = W(e), v = (/* @__PURE__ */ new Date()).getDay();
103
- if (!(t == null ? void 0 : t.find((f) => f.day === v))) return null;
104
- const S = s, x = t.sort((f, w) => f.day - w.day);
101
+ }, Zt = ({ hours: t, defaultOpen: e = !1 }) => {
102
+ const { t: i } = se(), { isOpen: s, openingSoon: n, closingSoon: r, openAt: l, closeAt: a, openFormatter: o, closeAtFormatter: c } = Pt(t), [d, p] = X(e), w = (/* @__PURE__ */ new Date()).getDay();
103
+ if (!(t == null ? void 0 : t.find((f) => f.day === w))) return null;
104
+ const b = s, x = t.sort((f, S) => f.day - S.day);
105
105
  let g = null, u = null;
106
- return S ? n ? (u = z(H.hours, H.soon), g = /* @__PURE__ */ b("span", { children: i("store.closingSoon") })) : (u = z(H.hours, H.open), g = /* @__PURE__ */ b("span", { children: i("store.openNow") })) : r ? (u = z(H.hours, H.soon), g = /* @__PURE__ */ b("span", { children: i("store.openingSoon") })) : (u = z(H.hours, H.closed), g = /* @__PURE__ */ b("span", { children: i("store.closedNow") })), /* @__PURE__ */ A("div", { className: c ? z(H.wrapper, H.shown) : z(H.wrapper), children: [
107
- /* @__PURE__ */ A("div", { className: z(H.title), children: [
108
- /* @__PURE__ */ A("span", { className: u, children: [
109
- /* @__PURE__ */ b("i", { className: "lpe-icons", children: "clock" }),
106
+ return b ? r ? (u = L(H.hours, H.soon), g = /* @__PURE__ */ v("span", { children: i("store.closingSoon") })) : (u = L(H.hours, H.open), g = /* @__PURE__ */ v("span", { children: i("store.openNow") })) : n ? (u = L(H.hours, H.soon), g = /* @__PURE__ */ v("span", { children: i("store.openingSoon") })) : (u = L(H.hours, H.closed), g = /* @__PURE__ */ v("span", { children: i("store.closedNow") })), /* @__PURE__ */ N("div", { className: d ? L(H.wrapper, H.shown) : L(H.wrapper), children: [
107
+ /* @__PURE__ */ N("div", { className: L(H.title), children: [
108
+ /* @__PURE__ */ N("span", { className: u, children: [
109
+ /* @__PURE__ */ v("i", { className: "lpe-icons", children: "clock" }),
110
110
  g
111
111
  ] }),
112
- /* @__PURE__ */ A("span", { className: z(H.currentHours), children: [
112
+ /* @__PURE__ */ N("span", { className: L(H.currentHours), children: [
113
113
  o.format(l),
114
114
  " - ",
115
- d.format(a)
115
+ c.format(a)
116
116
  ] })
117
117
  ] }),
118
- /* @__PURE__ */ b("div", { children: /* @__PURE__ */ b("div", { className: z(H.subHoursWrapper), children: x.map((f, w) => /* @__PURE__ */ b(jt, { i: w, hour: f }, f.day)) }) })
118
+ /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v("div", { className: L(H.subHoursWrapper), children: x.map((f, S) => /* @__PURE__ */ v(Kt, { i: S, hour: f }, f.day)) }) })
119
119
  ] });
120
- }, qt = "h6I4-", Xt = "_4UN4N", Yt = "QcO6J", Ut = "B5SGn", Kt = "CdDBV", Zt = "pY8Z2", te = {
121
- wrapper: qt,
122
- title: Xt,
123
- hoursTitle: Yt,
124
- address: Ut,
125
- phoneLink: Kt,
126
- directionsLink: Zt
127
- }, Qt = () => {
128
- const { retailer: t, isLoading: e } = J(), {
120
+ }, Qt = "h6I4-", Jt = "_4UN4N", ei = "QcO6J", ti = "B5SGn", ii = "CdDBV", si = "pY8Z2", ne = {
121
+ wrapper: Qt,
122
+ title: Jt,
123
+ hoursTitle: ei,
124
+ address: ti,
125
+ phoneLink: ii,
126
+ directionsLink: si
127
+ }, ni = () => {
128
+ const { retailer: t, isLoading: e } = te(), {
129
129
  retailer_name: i,
130
130
  address: s,
131
- place_id: r,
132
- retailer_location_hours: n
131
+ place_id: n,
132
+ retailer_location_hours: r
133
133
  } = t, l = t == null ? void 0 : t.phone_number;
134
- return /* @__PURE__ */ A("div", { className: z(te.wrapper), children: [
135
- /* @__PURE__ */ b("h1", { className: z(te.title), children: i }),
136
- /* @__PURE__ */ A("div", { className: z(te.address), children: [
137
- /* @__PURE__ */ b("div", { children: s == null ? void 0 : s.street_line_one }),
138
- (s == null ? void 0 : s.street_line_two) && /* @__PURE__ */ b("div", { children: s.street_line_two }),
139
- /* @__PURE__ */ A("div", { children: [
134
+ return /* @__PURE__ */ N("div", { className: L(ne.wrapper), children: [
135
+ /* @__PURE__ */ v("h1", { className: L(ne.title), children: i }),
136
+ /* @__PURE__ */ N("div", { className: L(ne.address), children: [
137
+ /* @__PURE__ */ v("div", { children: s == null ? void 0 : s.street_line_one }),
138
+ (s == null ? void 0 : s.street_line_two) && /* @__PURE__ */ v("div", { children: s.street_line_two }),
139
+ /* @__PURE__ */ N("div", { children: [
140
140
  s == null ? void 0 : s.city,
141
141
  ", ",
142
142
  s == null ? void 0 : s.province,
@@ -144,56 +144,56 @@ const At = "hooFS", Nt = "dxXZo", $t = "d-rRo", kt = "TnhjQ", Dt = "cn0rU", Bt =
144
144
  s == null ? void 0 : s.postal_code
145
145
  ] })
146
146
  ] }),
147
- /* @__PURE__ */ A("div", { children: [
148
- /* @__PURE__ */ b("a", { href: `https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(s == null ? void 0 : s.string)}`, target: "_blank", rel: "noopener noreferrer", className: z(te.directionsLink), children: "Get Directions" }),
149
- /* @__PURE__ */ b("a", { href: `tel:${l == null ? void 0 : l.phone_number}`, className: z(te.phoneLink), children: l == null ? void 0 : l.formatted })
147
+ /* @__PURE__ */ N("div", { children: [
148
+ /* @__PURE__ */ v("a", { href: `https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(s == null ? void 0 : s.string)}`, target: "_blank", rel: "noopener noreferrer", className: L(ne.directionsLink), children: "Get Directions" }),
149
+ /* @__PURE__ */ v("a", { href: `tel:${l == null ? void 0 : l.phone_number}`, className: L(ne.phoneLink), children: l == null ? void 0 : l.formatted })
150
150
  ] }),
151
- /* @__PURE__ */ b("div", { className: z(te.hoursTitle), children: "Store Hours" }),
152
- /* @__PURE__ */ b("div", { className: te.hours, children: /* @__PURE__ */ b(Wt, { hours: n, defaultOpen: !0 }) })
151
+ /* @__PURE__ */ v("div", { className: L(ne.hoursTitle), children: "Store Hours" }),
152
+ /* @__PURE__ */ v("div", { className: ne.hours, children: /* @__PURE__ */ v(Zt, { hours: r, defaultOpen: !0 }) })
153
153
  ] });
154
- }, ae = (t, e = !1) => t ? e ? t.replace(/\s+/g, "-").toLowerCase().replace(/[^a-z0-9-]/g, "") : t.replace(/\s+/g, "+").replace(/[^a-zA-Z0-9+]/g, "") : "", Jt = "YF6kz", ei = "ALvOL", Ve = {
155
- breadcrumbs: Jt,
156
- breadcrumb: ei
157
- }, ti = () => {
158
- var l, a, o, d, c, p;
159
- const { retailer: t, locale: e, isLoading: i } = J(), { t: s } = ne("default"), r = s(`retailer.breadcrumbs.country.${(l = t == null ? void 0 : t.address) == null ? void 0 : l.country}`), n = [
154
+ }, oe = (t, e = !1) => t ? e ? t.replace(/\s+/g, "-").toLowerCase().replace(/[^a-z0-9-]/g, "") : t.replace(/\s+/g, "+").replace(/[^a-zA-Z0-9+]/g, "") : "", ri = "YF6kz", ai = "ALvOL", je = {
155
+ breadcrumbs: ri,
156
+ breadcrumb: ai
157
+ }, li = () => {
158
+ var l, a, o, c, d, p;
159
+ const { retailer: t, locale: e, isLoading: i } = te(), { t: s } = se("default"), n = s(`retailer.breadcrumbs.country.${(l = t == null ? void 0 : t.address) == null ? void 0 : l.country}`), r = [
160
160
  {
161
- name: i ? /* @__PURE__ */ b(oe, { width: 50 }) : s("retailer.breadcrumbs.home"),
161
+ name: i ? /* @__PURE__ */ v(ce, { width: 50 }) : s("retailer.breadcrumbs.home"),
162
162
  href: "/retailers"
163
163
  },
164
164
  {
165
- name: i ? /* @__PURE__ */ b(oe, { width: 50 }) : r,
166
- href: `/retailers/l/${ae(r)}`
165
+ name: i ? /* @__PURE__ */ v(ce, { width: 50 }) : n,
166
+ href: `/retailers/l/${oe(n)}`
167
167
  },
168
168
  {
169
- name: i ? /* @__PURE__ */ b(oe, { width: 50 }) : (a = t == null ? void 0 : t.address) == null ? void 0 : a.province,
170
- href: `/retailers/l/${ae(r)}/${ae((o = t == null ? void 0 : t.address) == null ? void 0 : o.province)}`
169
+ name: i ? /* @__PURE__ */ v(ce, { width: 50 }) : (a = t == null ? void 0 : t.address) == null ? void 0 : a.province,
170
+ href: `/retailers/l/${oe(n)}/${oe((o = t == null ? void 0 : t.address) == null ? void 0 : o.province)}`
171
171
  },
172
172
  {
173
- name: i ? /* @__PURE__ */ b(oe, { width: 50 }) : (d = t == null ? void 0 : t.address) == null ? void 0 : d.city,
174
- href: `/retailers/l/${ae(r)}/${ae((c = t == null ? void 0 : t.address) == null ? void 0 : c.province)}/${ae((p = t == null ? void 0 : t.address) == null ? void 0 : p.city)}`
173
+ name: i ? /* @__PURE__ */ v(ce, { width: 50 }) : (c = t == null ? void 0 : t.address) == null ? void 0 : c.city,
174
+ href: `/retailers/l/${oe(n)}/${oe((d = t == null ? void 0 : t.address) == null ? void 0 : d.province)}/${oe((p = t == null ? void 0 : t.address) == null ? void 0 : p.city)}`
175
175
  },
176
176
  {
177
- name: i ? /* @__PURE__ */ b(oe, { width: 50 }) : t == null ? void 0 : t.retailer_name,
177
+ name: i ? /* @__PURE__ */ v(ce, { width: 50 }) : t == null ? void 0 : t.retailer_name,
178
178
  href: `/retailer/${t == null ? void 0 : t.id}`
179
179
  }
180
180
  ];
181
- return /* @__PURE__ */ b("nav", { children: /* @__PURE__ */ b("ol", { className: z(Ve.breadcrumbs), children: n.map((h, v) => /* @__PURE__ */ A("li", { className: z(Ve.breadcrumb), children: [
182
- /* @__PURE__ */ b("a", { href: h.href, children: h.name }),
183
- v < n.length - 1 && " > "
184
- ] }, v)) }) });
181
+ return /* @__PURE__ */ v("nav", { children: /* @__PURE__ */ v("ol", { className: L(je.breadcrumbs), children: r.map((h, w) => /* @__PURE__ */ N("li", { className: L(je.breadcrumb), children: [
182
+ /* @__PURE__ */ v("a", { href: h.href, children: h.name }),
183
+ w < r.length - 1 && " > "
184
+ ] }, w)) }) });
185
185
  };
186
- function He(t) {
186
+ function We(t) {
187
187
  return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
188
188
  }
189
- function ke(t, e) {
189
+ function Fe(t, e) {
190
190
  t === void 0 && (t = {}), e === void 0 && (e = {});
191
191
  const i = ["__proto__", "constructor", "prototype"];
192
192
  Object.keys(e).filter((s) => i.indexOf(s) < 0).forEach((s) => {
193
- typeof t[s] > "u" ? t[s] = e[s] : He(e[s]) && He(t[s]) && Object.keys(e[s]).length > 0 && ke(t[s], e[s]);
193
+ typeof t[s] > "u" ? t[s] = e[s] : We(e[s]) && We(t[s]) && Object.keys(e[s]).length > 0 && Fe(t[s], e[s]);
194
194
  });
195
195
  }
196
- const Ke = {
196
+ const tt = {
197
197
  body: {},
198
198
  addEventListener() {
199
199
  },
@@ -248,12 +248,12 @@ const Ke = {
248
248
  search: ""
249
249
  }
250
250
  };
251
- function re() {
251
+ function le() {
252
252
  const t = typeof document < "u" ? document : {};
253
- return ke(t, Ke), t;
253
+ return Fe(t, tt), t;
254
254
  }
255
- const ii = {
256
- document: Ke,
255
+ const oi = {
256
+ document: tt,
257
257
  navigator: {
258
258
  userAgent: ""
259
259
  },
@@ -310,14 +310,14 @@ const ii = {
310
310
  typeof setTimeout > "u" || clearTimeout(t);
311
311
  }
312
312
  };
313
- function F() {
313
+ function j() {
314
314
  const t = typeof window < "u" ? window : {};
315
- return ke(t, ii), t;
315
+ return Fe(t, oi), t;
316
316
  }
317
- function si(t) {
317
+ function di(t) {
318
318
  return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
319
319
  }
320
- function ni(t) {
320
+ function ci(t) {
321
321
  const e = t;
322
322
  Object.keys(e).forEach((i) => {
323
323
  try {
@@ -330,81 +330,81 @@ function ni(t) {
330
330
  }
331
331
  });
332
332
  }
333
- function Ze(t, e) {
333
+ function it(t, e) {
334
334
  return e === void 0 && (e = 0), setTimeout(t, e);
335
335
  }
336
- function he() {
336
+ function Se() {
337
337
  return Date.now();
338
338
  }
339
- function ri(t) {
340
- const e = F();
339
+ function ui(t) {
340
+ const e = j();
341
341
  let i;
342
342
  return e.getComputedStyle && (i = e.getComputedStyle(t, null)), !i && t.currentStyle && (i = t.currentStyle), i || (i = t.style), i;
343
343
  }
344
- function ai(t, e) {
344
+ function fi(t, e) {
345
345
  e === void 0 && (e = "x");
346
- const i = F();
347
- let s, r, n;
348
- const l = ri(t);
349
- return i.WebKitCSSMatrix ? (r = l.transform || l.webkitTransform, r.split(",").length > 6 && (r = r.split(", ").map((a) => a.replace(",", ".")).join(", ")), n = new i.WebKitCSSMatrix(r === "none" ? "" : r)) : (n = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), s = n.toString().split(",")), e === "x" && (i.WebKitCSSMatrix ? r = n.m41 : s.length === 16 ? r = parseFloat(s[12]) : r = parseFloat(s[4])), e === "y" && (i.WebKitCSSMatrix ? r = n.m42 : s.length === 16 ? r = parseFloat(s[13]) : r = parseFloat(s[5])), r || 0;
346
+ const i = j();
347
+ let s, n, r;
348
+ const l = ui(t);
349
+ return i.WebKitCSSMatrix ? (n = l.transform || l.webkitTransform, n.split(",").length > 6 && (n = n.split(", ").map((a) => a.replace(",", ".")).join(", ")), r = new i.WebKitCSSMatrix(n === "none" ? "" : n)) : (r = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), s = r.toString().split(",")), e === "x" && (i.WebKitCSSMatrix ? n = r.m41 : s.length === 16 ? n = parseFloat(s[12]) : n = parseFloat(s[4])), e === "y" && (i.WebKitCSSMatrix ? n = r.m42 : s.length === 16 ? n = parseFloat(s[13]) : n = parseFloat(s[5])), n || 0;
350
350
  }
351
- function ue(t) {
351
+ function he(t) {
352
352
  return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
353
353
  }
354
- function li(t) {
354
+ function pi(t) {
355
355
  return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
356
356
  }
357
- function R() {
357
+ function W() {
358
358
  const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
359
359
  for (let i = 1; i < arguments.length; i += 1) {
360
360
  const s = i < 0 || arguments.length <= i ? void 0 : arguments[i];
361
- if (s != null && !li(s)) {
362
- const r = Object.keys(Object(s)).filter((n) => e.indexOf(n) < 0);
363
- for (let n = 0, l = r.length; n < l; n += 1) {
364
- const a = r[n], o = Object.getOwnPropertyDescriptor(s, a);
365
- o !== void 0 && o.enumerable && (ue(t[a]) && ue(s[a]) ? s[a].__swiper__ ? t[a] = s[a] : R(t[a], s[a]) : !ue(t[a]) && ue(s[a]) ? (t[a] = {}, s[a].__swiper__ ? t[a] = s[a] : R(t[a], s[a])) : t[a] = s[a]);
361
+ if (s != null && !pi(s)) {
362
+ const n = Object.keys(Object(s)).filter((r) => e.indexOf(r) < 0);
363
+ for (let r = 0, l = n.length; r < l; r += 1) {
364
+ const a = n[r], o = Object.getOwnPropertyDescriptor(s, a);
365
+ o !== void 0 && o.enumerable && (he(t[a]) && he(s[a]) ? s[a].__swiper__ ? t[a] = s[a] : W(t[a], s[a]) : !he(t[a]) && he(s[a]) ? (t[a] = {}, s[a].__swiper__ ? t[a] = s[a] : W(t[a], s[a])) : t[a] = s[a]);
366
366
  }
367
367
  }
368
368
  }
369
369
  return t;
370
370
  }
371
- function fe(t, e, i) {
371
+ function ge(t, e, i) {
372
372
  t.style.setProperty(e, i);
373
373
  }
374
- function Qe(t) {
374
+ function st(t) {
375
375
  let {
376
376
  swiper: e,
377
377
  targetPosition: i,
378
378
  side: s
379
379
  } = t;
380
- const r = F(), n = -e.translate;
380
+ const n = j(), r = -e.translate;
381
381
  let l = null, a;
382
382
  const o = e.params.speed;
383
- e.wrapperEl.style.scrollSnapType = "none", r.cancelAnimationFrame(e.cssModeFrameID);
384
- const d = i > n ? "next" : "prev", c = (h, v) => d === "next" && h >= v || d === "prev" && h <= v, p = () => {
383
+ e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
384
+ const c = i > r ? "next" : "prev", d = (h, w) => c === "next" && h >= w || c === "prev" && h <= w, p = () => {
385
385
  a = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = a);
386
- const h = Math.max(Math.min((a - l) / o, 1), 0), v = 0.5 - Math.cos(h * Math.PI) / 2;
387
- let m = n + v * (i - n);
388
- if (c(m, i) && (m = i), e.wrapperEl.scrollTo({
386
+ const h = Math.max(Math.min((a - l) / o, 1), 0), w = 0.5 - Math.cos(h * Math.PI) / 2;
387
+ let m = r + w * (i - r);
388
+ if (d(m, i) && (m = i), e.wrapperEl.scrollTo({
389
389
  [s]: m
390
- }), c(m, i)) {
390
+ }), d(m, i)) {
391
391
  e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
392
392
  e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
393
393
  [s]: m
394
394
  });
395
- }), r.cancelAnimationFrame(e.cssModeFrameID);
395
+ }), n.cancelAnimationFrame(e.cssModeFrameID);
396
396
  return;
397
397
  }
398
- e.cssModeFrameID = r.requestAnimationFrame(p);
398
+ e.cssModeFrameID = n.requestAnimationFrame(p);
399
399
  };
400
400
  p();
401
401
  }
402
- function K(t, e) {
402
+ function Q(t, e) {
403
403
  e === void 0 && (e = "");
404
- const i = F(), s = [...t.children];
405
- return i.HTMLSlotElement && t instanceof HTMLSlotElement && s.push(...t.assignedElements()), e ? s.filter((r) => r.matches(e)) : s;
404
+ const i = j(), s = [...t.children];
405
+ return i.HTMLSlotElement && t instanceof HTMLSlotElement && s.push(...t.assignedElements()), e ? s.filter((n) => n.matches(e)) : s;
406
406
  }
407
- function oi(t, e) {
407
+ function mi(t, e) {
408
408
  const i = [e];
409
409
  for (; i.length > 0; ) {
410
410
  const s = i.shift();
@@ -413,24 +413,24 @@ function oi(t, e) {
413
413
  i.push(...s.children, ...s.shadowRoot ? s.shadowRoot.children : [], ...s.assignedElements ? s.assignedElements() : []);
414
414
  }
415
415
  }
416
- function di(t, e) {
417
- const i = F();
416
+ function hi(t, e) {
417
+ const i = j();
418
418
  let s = e.contains(t);
419
- return !s && i.HTMLSlotElement && e instanceof HTMLSlotElement && (s = [...e.assignedElements()].includes(t), s || (s = oi(t, e))), s;
419
+ return !s && i.HTMLSlotElement && e instanceof HTMLSlotElement && (s = [...e.assignedElements()].includes(t), s || (s = mi(t, e))), s;
420
420
  }
421
- function ge(t) {
421
+ function be(t) {
422
422
  try {
423
423
  console.warn(t);
424
424
  return;
425
425
  } catch {
426
426
  }
427
427
  }
428
- function ve(t, e) {
428
+ function ye(t, e) {
429
429
  e === void 0 && (e = []);
430
430
  const i = document.createElement(t);
431
- return i.classList.add(...Array.isArray(e) ? e : si(e)), i;
431
+ return i.classList.add(...Array.isArray(e) ? e : di(e)), i;
432
432
  }
433
- function ci(t, e) {
433
+ function gi(t, e) {
434
434
  const i = [];
435
435
  for (; t.previousElementSibling; ) {
436
436
  const s = t.previousElementSibling;
@@ -438,7 +438,7 @@ function ci(t, e) {
438
438
  }
439
439
  return i;
440
440
  }
441
- function ui(t, e) {
441
+ function vi(t, e) {
442
442
  const i = [];
443
443
  for (; t.nextElementSibling; ) {
444
444
  const s = t.nextElementSibling;
@@ -446,10 +446,10 @@ function ui(t, e) {
446
446
  }
447
447
  return i;
448
448
  }
449
- function ee(t, e) {
450
- return F().getComputedStyle(t, null).getPropertyValue(e);
449
+ function ie(t, e) {
450
+ return j().getComputedStyle(t, null).getPropertyValue(e);
451
451
  }
452
- function we(t) {
452
+ function xe(t) {
453
453
  let e = t, i;
454
454
  if (e) {
455
455
  for (i = 0; (e = e.previousSibling) !== null; )
@@ -457,57 +457,57 @@ function we(t) {
457
457
  return i;
458
458
  }
459
459
  }
460
- function Je(t, e) {
460
+ function nt(t, e) {
461
461
  const i = [];
462
462
  let s = t.parentElement;
463
463
  for (; s; )
464
464
  e ? s.matches(e) && i.push(s) : i.push(s), s = s.parentElement;
465
465
  return i;
466
466
  }
467
- function Oe(t, e, i) {
468
- const s = F();
467
+ function ke(t, e, i) {
468
+ const s = j();
469
469
  return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(s.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
470
470
  }
471
- function G(t) {
471
+ function V(t) {
472
472
  return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
473
473
  }
474
- function Se(t, e) {
474
+ function Te(t, e) {
475
475
  e === void 0 && (e = ""), typeof trustedTypes < "u" ? t.innerHTML = trustedTypes.createPolicy("html", {
476
476
  createHTML: (i) => i
477
477
  }).createHTML(e) : t.innerHTML = e;
478
478
  }
479
- let ye;
480
- function fi() {
481
- const t = F(), e = re();
479
+ let Ce;
480
+ function wi() {
481
+ const t = j(), e = le();
482
482
  return {
483
483
  smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
484
484
  touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
485
485
  };
486
486
  }
487
- function et() {
488
- return ye || (ye = fi()), ye;
487
+ function rt() {
488
+ return Ce || (Ce = wi()), Ce;
489
489
  }
490
- let xe;
491
- function pi(t) {
490
+ let Pe;
491
+ function Si(t) {
492
492
  let {
493
493
  userAgent: e
494
494
  } = t === void 0 ? {} : t;
495
- const i = et(), s = F(), r = s.navigator.platform, n = e || s.navigator.userAgent, l = {
495
+ const i = rt(), s = j(), n = s.navigator.platform, r = e || s.navigator.userAgent, l = {
496
496
  ios: !1,
497
497
  android: !1
498
- }, a = s.screen.width, o = s.screen.height, d = n.match(/(Android);?[\s\/]+([\d.]+)?/);
499
- let c = n.match(/(iPad).*OS\s([\d_]+)/);
500
- const p = n.match(/(iPod)(.*OS\s([\d_]+))?/), h = !c && n.match(/(iPhone\sOS|iOS)\s([\d_]+)/), v = r === "Win32";
501
- let m = r === "MacIntel";
502
- const S = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
503
- return !c && m && i.touch && S.indexOf(`${a}x${o}`) >= 0 && (c = n.match(/(Version)\/([\d.]+)/), c || (c = [0, 1, "13_0_0"]), m = !1), d && !v && (l.os = "android", l.android = !0), (c || h || p) && (l.os = "ios", l.ios = !0), l;
504
- }
505
- function tt(t) {
506
- return t === void 0 && (t = {}), xe || (xe = pi(t)), xe;
507
- }
508
- let Te;
509
- function mi() {
510
- const t = F(), e = tt();
498
+ }, a = s.screen.width, o = s.screen.height, c = r.match(/(Android);?[\s\/]+([\d.]+)?/);
499
+ let d = r.match(/(iPad).*OS\s([\d_]+)/);
500
+ const p = r.match(/(iPod)(.*OS\s([\d_]+))?/), h = !d && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), w = n === "Win32";
501
+ let m = n === "MacIntel";
502
+ const b = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
503
+ return !d && m && i.touch && b.indexOf(`${a}x${o}`) >= 0 && (d = r.match(/(Version)\/([\d.]+)/), d || (d = [0, 1, "13_0_0"]), m = !1), c && !w && (l.os = "android", l.android = !0), (d || h || p) && (l.os = "ios", l.ios = !0), l;
504
+ }
505
+ function at(t) {
506
+ return t === void 0 && (t = {}), Pe || (Pe = Si(t)), Pe;
507
+ }
508
+ let Me;
509
+ function bi() {
510
+ const t = j(), e = at();
511
511
  let i = !1;
512
512
  function s() {
513
513
  const a = t.navigator.userAgent.toLowerCase();
@@ -516,95 +516,95 @@ function mi() {
516
516
  if (s()) {
517
517
  const a = String(t.navigator.userAgent);
518
518
  if (a.includes("Version/")) {
519
- const [o, d] = a.split("Version/")[1].split(" ")[0].split(".").map((c) => Number(c));
520
- i = o < 16 || o === 16 && d < 2;
519
+ const [o, c] = a.split("Version/")[1].split(" ")[0].split(".").map((d) => Number(d));
520
+ i = o < 16 || o === 16 && c < 2;
521
521
  }
522
522
  }
523
- const r = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent), n = s(), l = n || r && e.ios;
523
+ const n = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent), r = s(), l = r || n && e.ios;
524
524
  return {
525
- isSafari: i || n,
525
+ isSafari: i || r,
526
526
  needPerspectiveFix: i,
527
527
  need3dFix: l,
528
- isWebView: r
528
+ isWebView: n
529
529
  };
530
530
  }
531
- function it() {
532
- return Te || (Te = mi()), Te;
531
+ function lt() {
532
+ return Me || (Me = bi()), Me;
533
533
  }
534
- function hi(t) {
534
+ function yi(t) {
535
535
  let {
536
536
  swiper: e,
537
537
  on: i,
538
538
  emit: s
539
539
  } = t;
540
- const r = F();
541
- let n = null, l = null;
540
+ const n = j();
541
+ let r = null, l = null;
542
542
  const a = () => {
543
543
  !e || e.destroyed || !e.initialized || (s("beforeResize"), s("resize"));
544
544
  }, o = () => {
545
- !e || e.destroyed || !e.initialized || (n = new ResizeObserver((p) => {
546
- l = r.requestAnimationFrame(() => {
545
+ !e || e.destroyed || !e.initialized || (r = new ResizeObserver((p) => {
546
+ l = n.requestAnimationFrame(() => {
547
547
  const {
548
548
  width: h,
549
- height: v
549
+ height: w
550
550
  } = e;
551
- let m = h, S = v;
551
+ let m = h, b = w;
552
552
  p.forEach((x) => {
553
553
  let {
554
554
  contentBoxSize: g,
555
555
  contentRect: u,
556
556
  target: f
557
557
  } = x;
558
- f && f !== e.el || (m = u ? u.width : (g[0] || g).inlineSize, S = u ? u.height : (g[0] || g).blockSize);
559
- }), (m !== h || S !== v) && a();
558
+ f && f !== e.el || (m = u ? u.width : (g[0] || g).inlineSize, b = u ? u.height : (g[0] || g).blockSize);
559
+ }), (m !== h || b !== w) && a();
560
560
  });
561
- }), n.observe(e.el));
562
- }, d = () => {
563
- l && r.cancelAnimationFrame(l), n && n.unobserve && e.el && (n.unobserve(e.el), n = null);
561
+ }), r.observe(e.el));
564
562
  }, c = () => {
563
+ l && n.cancelAnimationFrame(l), r && r.unobserve && e.el && (r.unobserve(e.el), r = null);
564
+ }, d = () => {
565
565
  !e || e.destroyed || !e.initialized || s("orientationchange");
566
566
  };
567
567
  i("init", () => {
568
- if (e.params.resizeObserver && typeof r.ResizeObserver < "u") {
568
+ if (e.params.resizeObserver && typeof n.ResizeObserver < "u") {
569
569
  o();
570
570
  return;
571
571
  }
572
- r.addEventListener("resize", a), r.addEventListener("orientationchange", c);
572
+ n.addEventListener("resize", a), n.addEventListener("orientationchange", d);
573
573
  }), i("destroy", () => {
574
- d(), r.removeEventListener("resize", a), r.removeEventListener("orientationchange", c);
574
+ c(), n.removeEventListener("resize", a), n.removeEventListener("orientationchange", d);
575
575
  });
576
576
  }
577
- function gi(t) {
577
+ function xi(t) {
578
578
  let {
579
579
  swiper: e,
580
580
  extendParams: i,
581
581
  on: s,
582
- emit: r
582
+ emit: n
583
583
  } = t;
584
- const n = [], l = F(), a = function(c, p) {
584
+ const r = [], l = j(), a = function(d, p) {
585
585
  p === void 0 && (p = {});
586
- const h = l.MutationObserver || l.WebkitMutationObserver, v = new h((m) => {
586
+ const h = l.MutationObserver || l.WebkitMutationObserver, w = new h((m) => {
587
587
  if (e.__preventObserver__) return;
588
588
  if (m.length === 1) {
589
- r("observerUpdate", m[0]);
589
+ n("observerUpdate", m[0]);
590
590
  return;
591
591
  }
592
- const S = function() {
593
- r("observerUpdate", m[0]);
592
+ const b = function() {
593
+ n("observerUpdate", m[0]);
594
594
  };
595
- l.requestAnimationFrame ? l.requestAnimationFrame(S) : l.setTimeout(S, 0);
595
+ l.requestAnimationFrame ? l.requestAnimationFrame(b) : l.setTimeout(b, 0);
596
596
  });
597
- v.observe(c, {
597
+ w.observe(d, {
598
598
  attributes: typeof p.attributes > "u" ? !0 : p.attributes,
599
599
  childList: e.isElement || (typeof p.childList > "u" ? !0 : p).childList,
600
600
  characterData: typeof p.characterData > "u" ? !0 : p.characterData
601
- }), n.push(v);
601
+ }), r.push(w);
602
602
  }, o = () => {
603
603
  if (e.params.observer) {
604
604
  if (e.params.observeParents) {
605
- const c = Je(e.hostEl);
606
- for (let p = 0; p < c.length; p += 1)
607
- a(c[p]);
605
+ const d = nt(e.hostEl);
606
+ for (let p = 0; p < d.length; p += 1)
607
+ a(d[p]);
608
608
  }
609
609
  a(e.hostEl, {
610
610
  childList: e.params.observeSlideChildren
@@ -612,36 +612,36 @@ function gi(t) {
612
612
  attributes: !1
613
613
  });
614
614
  }
615
- }, d = () => {
616
- n.forEach((c) => {
617
- c.disconnect();
618
- }), n.splice(0, n.length);
615
+ }, c = () => {
616
+ r.forEach((d) => {
617
+ d.disconnect();
618
+ }), r.splice(0, r.length);
619
619
  };
620
620
  i({
621
621
  observer: !1,
622
622
  observeParents: !1,
623
623
  observeSlideChildren: !1
624
- }), s("init", o), s("destroy", d);
624
+ }), s("init", o), s("destroy", c);
625
625
  }
626
- var vi = {
626
+ var Ti = {
627
627
  on(t, e, i) {
628
628
  const s = this;
629
629
  if (!s.eventsListeners || s.destroyed || typeof e != "function") return s;
630
- const r = i ? "unshift" : "push";
631
- return t.split(" ").forEach((n) => {
632
- s.eventsListeners[n] || (s.eventsListeners[n] = []), s.eventsListeners[n][r](e);
630
+ const n = i ? "unshift" : "push";
631
+ return t.split(" ").forEach((r) => {
632
+ s.eventsListeners[r] || (s.eventsListeners[r] = []), s.eventsListeners[r][n](e);
633
633
  }), s;
634
634
  },
635
635
  once(t, e, i) {
636
636
  const s = this;
637
637
  if (!s.eventsListeners || s.destroyed || typeof e != "function") return s;
638
- function r() {
639
- s.off(t, r), r.__emitterProxy && delete r.__emitterProxy;
640
- for (var n = arguments.length, l = new Array(n), a = 0; a < n; a++)
638
+ function n() {
639
+ s.off(t, n), n.__emitterProxy && delete n.__emitterProxy;
640
+ for (var r = arguments.length, l = new Array(r), a = 0; a < r; a++)
641
641
  l[a] = arguments[a];
642
642
  e.apply(s, l);
643
643
  }
644
- return r.__emitterProxy = e, s.on(t, r, i);
644
+ return n.__emitterProxy = e, s.on(t, n, i);
645
645
  },
646
646
  onAny(t, e) {
647
647
  const i = this;
@@ -658,8 +658,8 @@ var vi = {
658
658
  off(t, e) {
659
659
  const i = this;
660
660
  return !i.eventsListeners || i.destroyed || !i.eventsListeners || t.split(" ").forEach((s) => {
661
- typeof e > "u" ? i.eventsListeners[s] = [] : i.eventsListeners[s] && i.eventsListeners[s].forEach((r, n) => {
662
- (r === e || r.__emitterProxy && r.__emitterProxy === e) && i.eventsListeners[s].splice(n, 1);
661
+ typeof e > "u" ? i.eventsListeners[s] = [] : i.eventsListeners[s] && i.eventsListeners[s].forEach((n, r) => {
662
+ (n === e || n.__emitterProxy && n.__emitterProxy === e) && i.eventsListeners[s].splice(r, 1);
663
663
  });
664
664
  }), i;
665
665
  },
@@ -667,148 +667,148 @@ var vi = {
667
667
  const t = this;
668
668
  if (!t.eventsListeners || t.destroyed || !t.eventsListeners) return t;
669
669
  let e, i, s;
670
- for (var r = arguments.length, n = new Array(r), l = 0; l < r; l++)
671
- n[l] = arguments[l];
672
- return typeof n[0] == "string" || Array.isArray(n[0]) ? (e = n[0], i = n.slice(1, n.length), s = t) : (e = n[0].events, i = n[0].data, s = n[0].context || t), i.unshift(s), (Array.isArray(e) ? e : e.split(" ")).forEach((o) => {
673
- t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((d) => {
674
- d.apply(s, [o, ...i]);
675
- }), t.eventsListeners && t.eventsListeners[o] && t.eventsListeners[o].forEach((d) => {
676
- d.apply(s, i);
670
+ for (var n = arguments.length, r = new Array(n), l = 0; l < n; l++)
671
+ r[l] = arguments[l];
672
+ return typeof r[0] == "string" || Array.isArray(r[0]) ? (e = r[0], i = r.slice(1, r.length), s = t) : (e = r[0].events, i = r[0].data, s = r[0].context || t), i.unshift(s), (Array.isArray(e) ? e : e.split(" ")).forEach((o) => {
673
+ t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((c) => {
674
+ c.apply(s, [o, ...i]);
675
+ }), t.eventsListeners && t.eventsListeners[o] && t.eventsListeners[o].forEach((c) => {
676
+ c.apply(s, i);
677
677
  });
678
678
  }), t;
679
679
  }
680
680
  };
681
- function wi() {
681
+ function Ei() {
682
682
  const t = this;
683
683
  let e, i;
684
684
  const s = t.el;
685
- typeof t.params.width < "u" && t.params.width !== null ? e = t.params.width : e = s.clientWidth, typeof t.params.height < "u" && t.params.height !== null ? i = t.params.height : i = s.clientHeight, !(e === 0 && t.isHorizontal() || i === 0 && t.isVertical()) && (e = e - parseInt(ee(s, "padding-left") || 0, 10) - parseInt(ee(s, "padding-right") || 0, 10), i = i - parseInt(ee(s, "padding-top") || 0, 10) - parseInt(ee(s, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(i) && (i = 0), Object.assign(t, {
685
+ typeof t.params.width < "u" && t.params.width !== null ? e = t.params.width : e = s.clientWidth, typeof t.params.height < "u" && t.params.height !== null ? i = t.params.height : i = s.clientHeight, !(e === 0 && t.isHorizontal() || i === 0 && t.isVertical()) && (e = e - parseInt(ie(s, "padding-left") || 0, 10) - parseInt(ie(s, "padding-right") || 0, 10), i = i - parseInt(ie(s, "padding-top") || 0, 10) - parseInt(ie(s, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(i) && (i = 0), Object.assign(t, {
686
686
  width: e,
687
687
  height: i,
688
688
  size: t.isHorizontal() ? e : i
689
689
  }));
690
690
  }
691
- function Si() {
691
+ function Ci() {
692
692
  const t = this;
693
693
  function e(E, C) {
694
694
  return parseFloat(E.getPropertyValue(t.getDirectionLabel(C)) || 0);
695
695
  }
696
696
  const i = t.params, {
697
697
  wrapperEl: s,
698
- slidesEl: r,
699
- size: n,
698
+ slidesEl: n,
699
+ size: r,
700
700
  rtlTranslate: l,
701
701
  wrongRTL: a
702
- } = t, o = t.virtual && i.virtual.enabled, d = o ? t.virtual.slides.length : t.slides.length, c = K(r, `.${t.params.slideClass}, swiper-slide`), p = o ? t.virtual.slides.length : c.length;
702
+ } = t, o = t.virtual && i.virtual.enabled, c = o ? t.virtual.slides.length : t.slides.length, d = Q(n, `.${t.params.slideClass}, swiper-slide`), p = o ? t.virtual.slides.length : d.length;
703
703
  let h = [];
704
- const v = [], m = [];
705
- let S = i.slidesOffsetBefore;
706
- typeof S == "function" && (S = i.slidesOffsetBefore.call(t));
704
+ const w = [], m = [];
705
+ let b = i.slidesOffsetBefore;
706
+ typeof b == "function" && (b = i.slidesOffsetBefore.call(t));
707
707
  let x = i.slidesOffsetAfter;
708
708
  typeof x == "function" && (x = i.slidesOffsetAfter.call(t));
709
709
  const g = t.snapGrid.length, u = t.slidesGrid.length;
710
- let f = i.spaceBetween, w = -S, y = 0, P = 0;
711
- if (typeof n > "u")
710
+ let f = i.spaceBetween, S = -b, y = 0, P = 0;
711
+ if (typeof r > "u")
712
712
  return;
713
- typeof f == "string" && f.indexOf("%") >= 0 ? f = parseFloat(f.replace("%", "")) / 100 * n : typeof f == "string" && (f = parseFloat(f)), t.virtualSize = -f, c.forEach((E) => {
713
+ typeof f == "string" && f.indexOf("%") >= 0 ? f = parseFloat(f.replace("%", "")) / 100 * r : typeof f == "string" && (f = parseFloat(f)), t.virtualSize = -f, d.forEach((E) => {
714
714
  l ? E.style.marginLeft = "" : E.style.marginRight = "", E.style.marginBottom = "", E.style.marginTop = "";
715
- }), i.centeredSlides && i.cssMode && (fe(s, "--swiper-centered-offset-before", ""), fe(s, "--swiper-centered-offset-after", ""));
715
+ }), i.centeredSlides && i.cssMode && (ge(s, "--swiper-centered-offset-before", ""), ge(s, "--swiper-centered-offset-after", ""));
716
716
  const I = i.grid && i.grid.rows > 1 && t.grid;
717
- I ? t.grid.initSlides(c) : t.grid && t.grid.unsetSlides();
717
+ I ? t.grid.initSlides(d) : t.grid && t.grid.unsetSlides();
718
718
  let M;
719
719
  const T = i.slidesPerView === "auto" && i.breakpoints && Object.keys(i.breakpoints).filter((E) => typeof i.breakpoints[E].slidesPerView < "u").length > 0;
720
720
  for (let E = 0; E < p; E += 1) {
721
721
  M = 0;
722
722
  let C;
723
- if (c[E] && (C = c[E]), I && t.grid.updateSlide(E, C, c), !(c[E] && ee(C, "display") === "none")) {
723
+ if (d[E] && (C = d[E]), I && t.grid.updateSlide(E, C, d), !(d[E] && ie(C, "display") === "none")) {
724
724
  if (i.slidesPerView === "auto") {
725
- T && (c[E].style[t.getDirectionLabel("width")] = "");
726
- const L = getComputedStyle(C), O = C.style.transform, N = C.style.webkitTransform;
727
- if (O && (C.style.transform = "none"), N && (C.style.webkitTransform = "none"), i.roundLengths)
728
- M = t.isHorizontal() ? Oe(C, "width") : Oe(C, "height");
725
+ T && (d[E].style[t.getDirectionLabel("width")] = "");
726
+ const _ = getComputedStyle(C), z = C.style.transform, A = C.style.webkitTransform;
727
+ if (z && (C.style.transform = "none"), A && (C.style.webkitTransform = "none"), i.roundLengths)
728
+ M = t.isHorizontal() ? ke(C, "width") : ke(C, "height");
729
729
  else {
730
- const $ = e(L, "width"), _ = e(L, "padding-left"), B = e(L, "padding-right"), V = e(L, "margin-left"), D = e(L, "margin-right"), q = L.getPropertyValue("box-sizing");
731
- if (q && q === "border-box")
732
- M = $ + V + D;
730
+ const $ = e(_, "width"), O = e(_, "padding-left"), B = e(_, "padding-right"), F = e(_, "margin-left"), G = e(_, "margin-right"), Y = _.getPropertyValue("box-sizing");
731
+ if (Y && Y === "border-box")
732
+ M = $ + F + G;
733
733
  else {
734
734
  const {
735
- clientWidth: ht,
736
- offsetWidth: gt
735
+ clientWidth: bt,
736
+ offsetWidth: yt
737
737
  } = C;
738
- M = $ + _ + B + V + D + (gt - ht);
738
+ M = $ + O + B + F + G + (yt - bt);
739
739
  }
740
740
  }
741
- O && (C.style.transform = O), N && (C.style.webkitTransform = N), i.roundLengths && (M = Math.floor(M));
741
+ z && (C.style.transform = z), A && (C.style.webkitTransform = A), i.roundLengths && (M = Math.floor(M));
742
742
  } else
743
- M = (n - (i.slidesPerView - 1) * f) / i.slidesPerView, i.roundLengths && (M = Math.floor(M)), c[E] && (c[E].style[t.getDirectionLabel("width")] = `${M}px`);
744
- c[E] && (c[E].swiperSlideSize = M), m.push(M), i.centeredSlides ? (w = w + M / 2 + y / 2 + f, y === 0 && E !== 0 && (w = w - n / 2 - f), E === 0 && (w = w - n / 2 - f), Math.abs(w) < 1 / 1e3 && (w = 0), i.roundLengths && (w = Math.floor(w)), P % i.slidesPerGroup === 0 && h.push(w), v.push(w)) : (i.roundLengths && (w = Math.floor(w)), (P - Math.min(t.params.slidesPerGroupSkip, P)) % t.params.slidesPerGroup === 0 && h.push(w), v.push(w), w = w + M + f), t.virtualSize += M + f, y = M, P += 1;
743
+ M = (r - (i.slidesPerView - 1) * f) / i.slidesPerView, i.roundLengths && (M = Math.floor(M)), d[E] && (d[E].style[t.getDirectionLabel("width")] = `${M}px`);
744
+ d[E] && (d[E].swiperSlideSize = M), m.push(M), i.centeredSlides ? (S = S + M / 2 + y / 2 + f, y === 0 && E !== 0 && (S = S - r / 2 - f), E === 0 && (S = S - r / 2 - f), Math.abs(S) < 1 / 1e3 && (S = 0), i.roundLengths && (S = Math.floor(S)), P % i.slidesPerGroup === 0 && h.push(S), w.push(S)) : (i.roundLengths && (S = Math.floor(S)), (P - Math.min(t.params.slidesPerGroupSkip, P)) % t.params.slidesPerGroup === 0 && h.push(S), w.push(S), S = S + M + f), t.virtualSize += M + f, y = M, P += 1;
745
745
  }
746
746
  }
747
- if (t.virtualSize = Math.max(t.virtualSize, n) + x, l && a && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + f}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + f}px`), I && t.grid.updateWrapperSize(M, h), !i.centeredSlides) {
747
+ if (t.virtualSize = Math.max(t.virtualSize, r) + x, l && a && (i.effect === "slide" || i.effect === "coverflow") && (s.style.width = `${t.virtualSize + f}px`), i.setWrapperSize && (s.style[t.getDirectionLabel("width")] = `${t.virtualSize + f}px`), I && t.grid.updateWrapperSize(M, h), !i.centeredSlides) {
748
748
  const E = [];
749
749
  for (let C = 0; C < h.length; C += 1) {
750
- let L = h[C];
751
- i.roundLengths && (L = Math.floor(L)), h[C] <= t.virtualSize - n && E.push(L);
750
+ let _ = h[C];
751
+ i.roundLengths && (_ = Math.floor(_)), h[C] <= t.virtualSize - r && E.push(_);
752
752
  }
753
- h = E, Math.floor(t.virtualSize - n) - Math.floor(h[h.length - 1]) > 1 && h.push(t.virtualSize - n);
753
+ h = E, Math.floor(t.virtualSize - r) - Math.floor(h[h.length - 1]) > 1 && h.push(t.virtualSize - r);
754
754
  }
755
755
  if (o && i.loop) {
756
756
  const E = m[0] + f;
757
757
  if (i.slidesPerGroup > 1) {
758
- const C = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup), L = E * i.slidesPerGroup;
759
- for (let O = 0; O < C; O += 1)
760
- h.push(h[h.length - 1] + L);
758
+ const C = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / i.slidesPerGroup), _ = E * i.slidesPerGroup;
759
+ for (let z = 0; z < C; z += 1)
760
+ h.push(h[h.length - 1] + _);
761
761
  }
762
762
  for (let C = 0; C < t.virtual.slidesBefore + t.virtual.slidesAfter; C += 1)
763
- i.slidesPerGroup === 1 && h.push(h[h.length - 1] + E), v.push(v[v.length - 1] + E), t.virtualSize += E;
763
+ i.slidesPerGroup === 1 && h.push(h[h.length - 1] + E), w.push(w[w.length - 1] + E), t.virtualSize += E;
764
764
  }
765
765
  if (h.length === 0 && (h = [0]), f !== 0) {
766
766
  const E = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
767
- c.filter((C, L) => !i.cssMode || i.loop ? !0 : L !== c.length - 1).forEach((C) => {
767
+ d.filter((C, _) => !i.cssMode || i.loop ? !0 : _ !== d.length - 1).forEach((C) => {
768
768
  C.style[E] = `${f}px`;
769
769
  });
770
770
  }
771
771
  if (i.centeredSlides && i.centeredSlidesBounds) {
772
772
  let E = 0;
773
- m.forEach((L) => {
774
- E += L + (f || 0);
773
+ m.forEach((_) => {
774
+ E += _ + (f || 0);
775
775
  }), E -= f;
776
- const C = E > n ? E - n : 0;
777
- h = h.map((L) => L <= 0 ? -S : L > C ? C + x : L);
776
+ const C = E > r ? E - r : 0;
777
+ h = h.map((_) => _ <= 0 ? -b : _ > C ? C + x : _);
778
778
  }
779
779
  if (i.centerInsufficientSlides) {
780
780
  let E = 0;
781
- m.forEach((L) => {
782
- E += L + (f || 0);
781
+ m.forEach((_) => {
782
+ E += _ + (f || 0);
783
783
  }), E -= f;
784
784
  const C = (i.slidesOffsetBefore || 0) + (i.slidesOffsetAfter || 0);
785
- if (E + C < n) {
786
- const L = (n - E - C) / 2;
787
- h.forEach((O, N) => {
788
- h[N] = O - L;
789
- }), v.forEach((O, N) => {
790
- v[N] = O + L;
785
+ if (E + C < r) {
786
+ const _ = (r - E - C) / 2;
787
+ h.forEach((z, A) => {
788
+ h[A] = z - _;
789
+ }), w.forEach((z, A) => {
790
+ w[A] = z + _;
791
791
  });
792
792
  }
793
793
  }
794
794
  if (Object.assign(t, {
795
- slides: c,
795
+ slides: d,
796
796
  snapGrid: h,
797
- slidesGrid: v,
797
+ slidesGrid: w,
798
798
  slidesSizesGrid: m
799
799
  }), i.centeredSlides && i.cssMode && !i.centeredSlidesBounds) {
800
- fe(s, "--swiper-centered-offset-before", `${-h[0]}px`), fe(s, "--swiper-centered-offset-after", `${t.size / 2 - m[m.length - 1] / 2}px`);
800
+ ge(s, "--swiper-centered-offset-before", `${-h[0]}px`), ge(s, "--swiper-centered-offset-after", `${t.size / 2 - m[m.length - 1] / 2}px`);
801
801
  const E = -t.snapGrid[0], C = -t.slidesGrid[0];
802
- t.snapGrid = t.snapGrid.map((L) => L + E), t.slidesGrid = t.slidesGrid.map((L) => L + C);
802
+ t.snapGrid = t.snapGrid.map((_) => _ + E), t.slidesGrid = t.slidesGrid.map((_) => _ + C);
803
803
  }
804
- if (p !== d && t.emit("slidesLengthChange"), h.length !== g && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), v.length !== u && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
804
+ if (p !== c && t.emit("slidesLengthChange"), h.length !== g && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), w.length !== u && t.emit("slidesGridLengthChange"), i.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !i.cssMode && (i.effect === "slide" || i.effect === "fade")) {
805
805
  const E = `${i.containerModifierClass}backface-hidden`, C = t.el.classList.contains(E);
806
806
  p <= i.maxBackfaceHiddenSlides ? C || t.el.classList.add(E) : C && t.el.classList.remove(E);
807
807
  }
808
808
  }
809
- function bi(t) {
809
+ function Pi(t) {
810
810
  const e = this, i = [], s = e.virtual && e.params.virtual.enabled;
811
- let r = 0, n;
811
+ let n = 0, r;
812
812
  typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
813
813
  const l = (a) => s ? e.slides[e.getSlideIndexByData(a)] : e.slides[a];
814
814
  if (e.params.slidesPerView !== "auto" && e.params.slidesPerView > 1)
@@ -817,498 +817,498 @@ function bi(t) {
817
817
  i.push(a);
818
818
  });
819
819
  else
820
- for (n = 0; n < Math.ceil(e.params.slidesPerView); n += 1) {
821
- const a = e.activeIndex + n;
820
+ for (r = 0; r < Math.ceil(e.params.slidesPerView); r += 1) {
821
+ const a = e.activeIndex + r;
822
822
  if (a > e.slides.length && !s) break;
823
823
  i.push(l(a));
824
824
  }
825
825
  else
826
826
  i.push(l(e.activeIndex));
827
- for (n = 0; n < i.length; n += 1)
828
- if (typeof i[n] < "u") {
829
- const a = i[n].offsetHeight;
830
- r = a > r ? a : r;
827
+ for (r = 0; r < i.length; r += 1)
828
+ if (typeof i[r] < "u") {
829
+ const a = i[r].offsetHeight;
830
+ n = a > n ? a : n;
831
831
  }
832
- (r || r === 0) && (e.wrapperEl.style.height = `${r}px`);
832
+ (n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
833
833
  }
834
- function yi() {
834
+ function Mi() {
835
835
  const t = this, e = t.slides, i = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
836
836
  for (let s = 0; s < e.length; s += 1)
837
837
  e[s].swiperSlideOffset = (t.isHorizontal() ? e[s].offsetLeft : e[s].offsetTop) - i - t.cssOverflowAdjustment();
838
838
  }
839
- const Fe = (t, e, i) => {
839
+ const qe = (t, e, i) => {
840
840
  e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
841
841
  };
842
- function xi(t) {
842
+ function Ii(t) {
843
843
  t === void 0 && (t = this && this.translate || 0);
844
844
  const e = this, i = e.params, {
845
845
  slides: s,
846
- rtlTranslate: r,
847
- snapGrid: n
846
+ rtlTranslate: n,
847
+ snapGrid: r
848
848
  } = e;
849
849
  if (s.length === 0) return;
850
850
  typeof s[0].swiperSlideOffset > "u" && e.updateSlidesOffset();
851
851
  let l = -t;
852
- r && (l = t), e.visibleSlidesIndexes = [], e.visibleSlides = [];
852
+ n && (l = t), e.visibleSlidesIndexes = [], e.visibleSlides = [];
853
853
  let a = i.spaceBetween;
854
854
  typeof a == "string" && a.indexOf("%") >= 0 ? a = parseFloat(a.replace("%", "")) / 100 * e.size : typeof a == "string" && (a = parseFloat(a));
855
855
  for (let o = 0; o < s.length; o += 1) {
856
- const d = s[o];
857
- let c = d.swiperSlideOffset;
858
- i.cssMode && i.centeredSlides && (c -= s[0].swiperSlideOffset);
859
- const p = (l + (i.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + a), h = (l - n[0] + (i.centeredSlides ? e.minTranslate() : 0) - c) / (d.swiperSlideSize + a), v = -(l - c), m = v + e.slidesSizesGrid[o], S = v >= 0 && v <= e.size - e.slidesSizesGrid[o], x = v >= 0 && v < e.size - 1 || m > 1 && m <= e.size || v <= 0 && m >= e.size;
860
- x && (e.visibleSlides.push(d), e.visibleSlidesIndexes.push(o)), Fe(d, x, i.slideVisibleClass), Fe(d, S, i.slideFullyVisibleClass), d.progress = r ? -p : p, d.originalProgress = r ? -h : h;
856
+ const c = s[o];
857
+ let d = c.swiperSlideOffset;
858
+ i.cssMode && i.centeredSlides && (d -= s[0].swiperSlideOffset);
859
+ const p = (l + (i.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), h = (l - r[0] + (i.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), w = -(l - d), m = w + e.slidesSizesGrid[o], b = w >= 0 && w <= e.size - e.slidesSizesGrid[o], x = w >= 0 && w < e.size - 1 || m > 1 && m <= e.size || w <= 0 && m >= e.size;
860
+ x && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(o)), qe(c, x, i.slideVisibleClass), qe(c, b, i.slideFullyVisibleClass), c.progress = n ? -p : p, c.originalProgress = n ? -h : h;
861
861
  }
862
862
  }
863
- function Ti(t) {
863
+ function Li(t) {
864
864
  const e = this;
865
865
  if (typeof t > "u") {
866
- const c = e.rtlTranslate ? -1 : 1;
867
- t = e && e.translate && e.translate * c || 0;
866
+ const d = e.rtlTranslate ? -1 : 1;
867
+ t = e && e.translate && e.translate * d || 0;
868
868
  }
869
869
  const i = e.params, s = e.maxTranslate() - e.minTranslate();
870
870
  let {
871
- progress: r,
872
- isBeginning: n,
871
+ progress: n,
872
+ isBeginning: r,
873
873
  isEnd: l,
874
874
  progressLoop: a
875
875
  } = e;
876
- const o = n, d = l;
876
+ const o = r, c = l;
877
877
  if (s === 0)
878
- r = 0, n = !0, l = !0;
878
+ n = 0, r = !0, l = !0;
879
879
  else {
880
- r = (t - e.minTranslate()) / s;
881
- const c = Math.abs(t - e.minTranslate()) < 1, p = Math.abs(t - e.maxTranslate()) < 1;
882
- n = c || r <= 0, l = p || r >= 1, c && (r = 0), p && (r = 1);
880
+ n = (t - e.minTranslate()) / s;
881
+ const d = Math.abs(t - e.minTranslate()) < 1, p = Math.abs(t - e.maxTranslate()) < 1;
882
+ r = d || n <= 0, l = p || n >= 1, d && (n = 0), p && (n = 1);
883
883
  }
884
884
  if (i.loop) {
885
- const c = e.getSlideIndexByData(0), p = e.getSlideIndexByData(e.slides.length - 1), h = e.slidesGrid[c], v = e.slidesGrid[p], m = e.slidesGrid[e.slidesGrid.length - 1], S = Math.abs(t);
886
- S >= h ? a = (S - h) / m : a = (S + m - v) / m, a > 1 && (a -= 1);
885
+ const d = e.getSlideIndexByData(0), p = e.getSlideIndexByData(e.slides.length - 1), h = e.slidesGrid[d], w = e.slidesGrid[p], m = e.slidesGrid[e.slidesGrid.length - 1], b = Math.abs(t);
886
+ b >= h ? a = (b - h) / m : a = (b + m - w) / m, a > 1 && (a -= 1);
887
887
  }
888
888
  Object.assign(e, {
889
- progress: r,
889
+ progress: n,
890
890
  progressLoop: a,
891
- isBeginning: n,
891
+ isBeginning: r,
892
892
  isEnd: l
893
- }), (i.watchSlidesProgress || i.centeredSlides && i.autoHeight) && e.updateSlidesProgress(t), n && !o && e.emit("reachBeginning toEdge"), l && !d && e.emit("reachEnd toEdge"), (o && !n || d && !l) && e.emit("fromEdge"), e.emit("progress", r);
893
+ }), (i.watchSlidesProgress || i.centeredSlides && i.autoHeight) && e.updateSlidesProgress(t), r && !o && e.emit("reachBeginning toEdge"), l && !c && e.emit("reachEnd toEdge"), (o && !r || c && !l) && e.emit("fromEdge"), e.emit("progress", n);
894
894
  }
895
- const Ee = (t, e, i) => {
895
+ const Ie = (t, e, i) => {
896
896
  e && !t.classList.contains(i) ? t.classList.add(i) : !e && t.classList.contains(i) && t.classList.remove(i);
897
897
  };
898
- function Ei() {
898
+ function _i() {
899
899
  const t = this, {
900
900
  slides: e,
901
901
  params: i,
902
902
  slidesEl: s,
903
- activeIndex: r
904
- } = t, n = t.virtual && i.virtual.enabled, l = t.grid && i.grid && i.grid.rows > 1, a = (p) => K(s, `.${i.slideClass}${p}, swiper-slide${p}`)[0];
905
- let o, d, c;
906
- if (n)
903
+ activeIndex: n
904
+ } = t, r = t.virtual && i.virtual.enabled, l = t.grid && i.grid && i.grid.rows > 1, a = (p) => Q(s, `.${i.slideClass}${p}, swiper-slide${p}`)[0];
905
+ let o, c, d;
906
+ if (r)
907
907
  if (i.loop) {
908
- let p = r - t.virtual.slidesBefore;
908
+ let p = n - t.virtual.slidesBefore;
909
909
  p < 0 && (p = t.virtual.slides.length + p), p >= t.virtual.slides.length && (p -= t.virtual.slides.length), o = a(`[data-swiper-slide-index="${p}"]`);
910
910
  } else
911
- o = a(`[data-swiper-slide-index="${r}"]`);
911
+ o = a(`[data-swiper-slide-index="${n}"]`);
912
912
  else
913
- l ? (o = e.find((p) => p.column === r), c = e.find((p) => p.column === r + 1), d = e.find((p) => p.column === r - 1)) : o = e[r];
914
- o && (l || (c = ui(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !c && (c = e[0]), d = ci(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !d === 0 && (d = e[e.length - 1]))), e.forEach((p) => {
915
- Ee(p, p === o, i.slideActiveClass), Ee(p, p === c, i.slideNextClass), Ee(p, p === d, i.slidePrevClass);
913
+ l ? (o = e.find((p) => p.column === n), d = e.find((p) => p.column === n + 1), c = e.find((p) => p.column === n - 1)) : o = e[n];
914
+ o && (l || (d = vi(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !d && (d = e[0]), c = gi(o, `.${i.slideClass}, swiper-slide`)[0], i.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((p) => {
915
+ Ie(p, p === o, i.slideActiveClass), Ie(p, p === d, i.slideNextClass), Ie(p, p === c, i.slidePrevClass);
916
916
  }), t.emitSlidesClasses();
917
917
  }
918
- const me = (t, e) => {
918
+ const we = (t, e) => {
919
919
  if (!t || t.destroyed || !t.params) return;
920
920
  const i = () => t.isElement ? "swiper-slide" : `.${t.params.slideClass}`, s = e.closest(i());
921
921
  if (s) {
922
- let r = s.querySelector(`.${t.params.lazyPreloaderClass}`);
923
- !r && t.isElement && (s.shadowRoot ? r = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
924
- s.shadowRoot && (r = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`), r && r.remove());
925
- })), r && r.remove();
922
+ let n = s.querySelector(`.${t.params.lazyPreloaderClass}`);
923
+ !n && t.isElement && (s.shadowRoot ? n = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
924
+ s.shadowRoot && (n = s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`), n && n.remove());
925
+ })), n && n.remove();
926
926
  }
927
- }, Ce = (t, e) => {
927
+ }, Le = (t, e) => {
928
928
  if (!t.slides[e]) return;
929
929
  const i = t.slides[e].querySelector('[loading="lazy"]');
930
930
  i && i.removeAttribute("loading");
931
- }, ze = (t) => {
931
+ }, Ge = (t) => {
932
932
  if (!t || t.destroyed || !t.params) return;
933
933
  let e = t.params.lazyPreloadPrevNext;
934
934
  const i = t.slides.length;
935
935
  if (!i || !e || e < 0) return;
936
936
  e = Math.min(e, i);
937
- const s = t.params.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(t.params.slidesPerView), r = t.activeIndex;
937
+ const s = t.params.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(t.params.slidesPerView), n = t.activeIndex;
938
938
  if (t.params.grid && t.params.grid.rows > 1) {
939
- const l = r, a = [l - e];
939
+ const l = n, a = [l - e];
940
940
  a.push(...Array.from({
941
941
  length: e
942
- }).map((o, d) => l + s + d)), t.slides.forEach((o, d) => {
943
- a.includes(o.column) && Ce(t, d);
942
+ }).map((o, c) => l + s + c)), t.slides.forEach((o, c) => {
943
+ a.includes(o.column) && Le(t, c);
944
944
  });
945
945
  return;
946
946
  }
947
- const n = r + s - 1;
947
+ const r = n + s - 1;
948
948
  if (t.params.rewind || t.params.loop)
949
- for (let l = r - e; l <= n + e; l += 1) {
949
+ for (let l = n - e; l <= r + e; l += 1) {
950
950
  const a = (l % i + i) % i;
951
- (a < r || a > n) && Ce(t, a);
951
+ (a < n || a > r) && Le(t, a);
952
952
  }
953
953
  else
954
- for (let l = Math.max(r - e, 0); l <= Math.min(n + e, i - 1); l += 1)
955
- l !== r && (l > n || l < r) && Ce(t, l);
954
+ for (let l = Math.max(n - e, 0); l <= Math.min(r + e, i - 1); l += 1)
955
+ l !== n && (l > r || l < n) && Le(t, l);
956
956
  };
957
- function Ci(t) {
957
+ function Oi(t) {
958
958
  const {
959
959
  slidesGrid: e,
960
960
  params: i
961
961
  } = t, s = t.rtlTranslate ? t.translate : -t.translate;
962
- let r;
963
- for (let n = 0; n < e.length; n += 1)
964
- typeof e[n + 1] < "u" ? s >= e[n] && s < e[n + 1] - (e[n + 1] - e[n]) / 2 ? r = n : s >= e[n] && s < e[n + 1] && (r = n + 1) : s >= e[n] && (r = n);
965
- return i.normalizeSlideIndex && (r < 0 || typeof r > "u") && (r = 0), r;
962
+ let n;
963
+ for (let r = 0; r < e.length; r += 1)
964
+ typeof e[r + 1] < "u" ? s >= e[r] && s < e[r + 1] - (e[r + 1] - e[r]) / 2 ? n = r : s >= e[r] && s < e[r + 1] && (n = r + 1) : s >= e[r] && (n = r);
965
+ return i.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
966
966
  }
967
- function Pi(t) {
967
+ function Ni(t) {
968
968
  const e = this, i = e.rtlTranslate ? e.translate : -e.translate, {
969
969
  snapGrid: s,
970
- params: r,
971
- activeIndex: n,
970
+ params: n,
971
+ activeIndex: r,
972
972
  realIndex: l,
973
973
  snapIndex: a
974
974
  } = e;
975
- let o = t, d;
976
- const c = (v) => {
977
- let m = v - e.virtual.slidesBefore;
975
+ let o = t, c;
976
+ const d = (w) => {
977
+ let m = w - e.virtual.slidesBefore;
978
978
  return m < 0 && (m = e.virtual.slides.length + m), m >= e.virtual.slides.length && (m -= e.virtual.slides.length), m;
979
979
  };
980
- if (typeof o > "u" && (o = Ci(e)), s.indexOf(i) >= 0)
981
- d = s.indexOf(i);
980
+ if (typeof o > "u" && (o = Oi(e)), s.indexOf(i) >= 0)
981
+ c = s.indexOf(i);
982
982
  else {
983
- const v = Math.min(r.slidesPerGroupSkip, o);
984
- d = v + Math.floor((o - v) / r.slidesPerGroup);
983
+ const w = Math.min(n.slidesPerGroupSkip, o);
984
+ c = w + Math.floor((o - w) / n.slidesPerGroup);
985
985
  }
986
- if (d >= s.length && (d = s.length - 1), o === n && !e.params.loop) {
987
- d !== a && (e.snapIndex = d, e.emit("snapIndexChange"));
986
+ if (c >= s.length && (c = s.length - 1), o === r && !e.params.loop) {
987
+ c !== a && (e.snapIndex = c, e.emit("snapIndexChange"));
988
988
  return;
989
989
  }
990
- if (o === n && e.params.loop && e.virtual && e.params.virtual.enabled) {
991
- e.realIndex = c(o);
990
+ if (o === r && e.params.loop && e.virtual && e.params.virtual.enabled) {
991
+ e.realIndex = d(o);
992
992
  return;
993
993
  }
994
- const p = e.grid && r.grid && r.grid.rows > 1;
994
+ const p = e.grid && n.grid && n.grid.rows > 1;
995
995
  let h;
996
- if (e.virtual && r.virtual.enabled && r.loop)
997
- h = c(o);
996
+ if (e.virtual && n.virtual.enabled && n.loop)
997
+ h = d(o);
998
998
  else if (p) {
999
- const v = e.slides.find((S) => S.column === o);
1000
- let m = parseInt(v.getAttribute("data-swiper-slide-index"), 10);
1001
- Number.isNaN(m) && (m = Math.max(e.slides.indexOf(v), 0)), h = Math.floor(m / r.grid.rows);
999
+ const w = e.slides.find((b) => b.column === o);
1000
+ let m = parseInt(w.getAttribute("data-swiper-slide-index"), 10);
1001
+ Number.isNaN(m) && (m = Math.max(e.slides.indexOf(w), 0)), h = Math.floor(m / n.grid.rows);
1002
1002
  } else if (e.slides[o]) {
1003
- const v = e.slides[o].getAttribute("data-swiper-slide-index");
1004
- v ? h = parseInt(v, 10) : h = o;
1003
+ const w = e.slides[o].getAttribute("data-swiper-slide-index");
1004
+ w ? h = parseInt(w, 10) : h = o;
1005
1005
  } else
1006
1006
  h = o;
1007
1007
  Object.assign(e, {
1008
1008
  previousSnapIndex: a,
1009
- snapIndex: d,
1009
+ snapIndex: c,
1010
1010
  previousRealIndex: l,
1011
1011
  realIndex: h,
1012
- previousIndex: n,
1012
+ previousIndex: r,
1013
1013
  activeIndex: o
1014
- }), e.initialized && ze(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== h && e.emit("realIndexChange"), e.emit("slideChange"));
1014
+ }), e.initialized && Ge(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== h && e.emit("realIndexChange"), e.emit("slideChange"));
1015
1015
  }
1016
- function Mi(t, e) {
1016
+ function zi(t, e) {
1017
1017
  const i = this, s = i.params;
1018
- let r = t.closest(`.${s.slideClass}, swiper-slide`);
1019
- !r && i.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((a) => {
1020
- !r && a.matches && a.matches(`.${s.slideClass}, swiper-slide`) && (r = a);
1018
+ let n = t.closest(`.${s.slideClass}, swiper-slide`);
1019
+ !n && i.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((a) => {
1020
+ !n && a.matches && a.matches(`.${s.slideClass}, swiper-slide`) && (n = a);
1021
1021
  });
1022
- let n = !1, l;
1023
- if (r) {
1022
+ let r = !1, l;
1023
+ if (n) {
1024
1024
  for (let a = 0; a < i.slides.length; a += 1)
1025
- if (i.slides[a] === r) {
1026
- n = !0, l = a;
1025
+ if (i.slides[a] === n) {
1026
+ r = !0, l = a;
1027
1027
  break;
1028
1028
  }
1029
1029
  }
1030
- if (r && n)
1031
- i.clickedSlide = r, i.virtual && i.params.virtual.enabled ? i.clickedIndex = parseInt(r.getAttribute("data-swiper-slide-index"), 10) : i.clickedIndex = l;
1030
+ if (n && r)
1031
+ i.clickedSlide = n, i.virtual && i.params.virtual.enabled ? i.clickedIndex = parseInt(n.getAttribute("data-swiper-slide-index"), 10) : i.clickedIndex = l;
1032
1032
  else {
1033
1033
  i.clickedSlide = void 0, i.clickedIndex = void 0;
1034
1034
  return;
1035
1035
  }
1036
1036
  s.slideToClickedSlide && i.clickedIndex !== void 0 && i.clickedIndex !== i.activeIndex && i.slideToClickedSlide();
1037
1037
  }
1038
- var Ii = {
1039
- updateSize: wi,
1040
- updateSlides: Si,
1041
- updateAutoHeight: bi,
1042
- updateSlidesOffset: yi,
1043
- updateSlidesProgress: xi,
1044
- updateProgress: Ti,
1045
- updateSlidesClasses: Ei,
1046
- updateActiveIndex: Pi,
1047
- updateClickedSlide: Mi
1038
+ var Ai = {
1039
+ updateSize: Ei,
1040
+ updateSlides: Ci,
1041
+ updateAutoHeight: Pi,
1042
+ updateSlidesOffset: Mi,
1043
+ updateSlidesProgress: Ii,
1044
+ updateProgress: Li,
1045
+ updateSlidesClasses: _i,
1046
+ updateActiveIndex: Ni,
1047
+ updateClickedSlide: zi
1048
1048
  };
1049
- function Li(t) {
1049
+ function $i(t) {
1050
1050
  t === void 0 && (t = this.isHorizontal() ? "x" : "y");
1051
1051
  const e = this, {
1052
1052
  params: i,
1053
1053
  rtlTranslate: s,
1054
- translate: r,
1055
- wrapperEl: n
1054
+ translate: n,
1055
+ wrapperEl: r
1056
1056
  } = e;
1057
1057
  if (i.virtualTranslate)
1058
- return s ? -r : r;
1058
+ return s ? -n : n;
1059
1059
  if (i.cssMode)
1060
- return r;
1061
- let l = ai(n, t);
1060
+ return n;
1061
+ let l = fi(r, t);
1062
1062
  return l += e.cssOverflowAdjustment(), s && (l = -l), l || 0;
1063
1063
  }
1064
- function _i(t, e) {
1064
+ function ki(t, e) {
1065
1065
  const i = this, {
1066
1066
  rtlTranslate: s,
1067
- params: r,
1068
- wrapperEl: n,
1067
+ params: n,
1068
+ wrapperEl: r,
1069
1069
  progress: l
1070
1070
  } = i;
1071
1071
  let a = 0, o = 0;
1072
- const d = 0;
1073
- i.isHorizontal() ? a = s ? -t : t : o = t, r.roundLengths && (a = Math.floor(a), o = Math.floor(o)), i.previousTranslate = i.translate, i.translate = i.isHorizontal() ? a : o, r.cssMode ? n[i.isHorizontal() ? "scrollLeft" : "scrollTop"] = i.isHorizontal() ? -a : -o : r.virtualTranslate || (i.isHorizontal() ? a -= i.cssOverflowAdjustment() : o -= i.cssOverflowAdjustment(), n.style.transform = `translate3d(${a}px, ${o}px, ${d}px)`);
1074
- let c;
1072
+ const c = 0;
1073
+ i.isHorizontal() ? a = s ? -t : t : o = t, n.roundLengths && (a = Math.floor(a), o = Math.floor(o)), i.previousTranslate = i.translate, i.translate = i.isHorizontal() ? a : o, n.cssMode ? r[i.isHorizontal() ? "scrollLeft" : "scrollTop"] = i.isHorizontal() ? -a : -o : n.virtualTranslate || (i.isHorizontal() ? a -= i.cssOverflowAdjustment() : o -= i.cssOverflowAdjustment(), r.style.transform = `translate3d(${a}px, ${o}px, ${c}px)`);
1074
+ let d;
1075
1075
  const p = i.maxTranslate() - i.minTranslate();
1076
- p === 0 ? c = 0 : c = (t - i.minTranslate()) / p, c !== l && i.updateProgress(t), i.emit("setTranslate", i.translate, e);
1076
+ p === 0 ? d = 0 : d = (t - i.minTranslate()) / p, d !== l && i.updateProgress(t), i.emit("setTranslate", i.translate, e);
1077
1077
  }
1078
- function Oi() {
1078
+ function Gi() {
1079
1079
  return -this.snapGrid[0];
1080
1080
  }
1081
- function zi() {
1081
+ function Di() {
1082
1082
  return -this.snapGrid[this.snapGrid.length - 1];
1083
1083
  }
1084
- function Ai(t, e, i, s, r) {
1084
+ function Bi(t, e, i, s, n) {
1085
1085
  t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), i === void 0 && (i = !0), s === void 0 && (s = !0);
1086
- const n = this, {
1086
+ const r = this, {
1087
1087
  params: l,
1088
1088
  wrapperEl: a
1089
- } = n;
1090
- if (n.animating && l.preventInteractionOnTransition)
1089
+ } = r;
1090
+ if (r.animating && l.preventInteractionOnTransition)
1091
1091
  return !1;
1092
- const o = n.minTranslate(), d = n.maxTranslate();
1093
- let c;
1094
- if (s && t > o ? c = o : s && t < d ? c = d : c = t, n.updateProgress(c), l.cssMode) {
1095
- const p = n.isHorizontal();
1092
+ const o = r.minTranslate(), c = r.maxTranslate();
1093
+ let d;
1094
+ if (s && t > o ? d = o : s && t < c ? d = c : d = t, r.updateProgress(d), l.cssMode) {
1095
+ const p = r.isHorizontal();
1096
1096
  if (e === 0)
1097
- a[p ? "scrollLeft" : "scrollTop"] = -c;
1097
+ a[p ? "scrollLeft" : "scrollTop"] = -d;
1098
1098
  else {
1099
- if (!n.support.smoothScroll)
1100
- return Qe({
1101
- swiper: n,
1102
- targetPosition: -c,
1099
+ if (!r.support.smoothScroll)
1100
+ return st({
1101
+ swiper: r,
1102
+ targetPosition: -d,
1103
1103
  side: p ? "left" : "top"
1104
1104
  }), !0;
1105
1105
  a.scrollTo({
1106
- [p ? "left" : "top"]: -c,
1106
+ [p ? "left" : "top"]: -d,
1107
1107
  behavior: "smooth"
1108
1108
  });
1109
1109
  }
1110
1110
  return !0;
1111
1111
  }
1112
- return e === 0 ? (n.setTransition(0), n.setTranslate(c), i && (n.emit("beforeTransitionStart", e, r), n.emit("transitionEnd"))) : (n.setTransition(e), n.setTranslate(c), i && (n.emit("beforeTransitionStart", e, r), n.emit("transitionStart")), n.animating || (n.animating = !0, n.onTranslateToWrapperTransitionEnd || (n.onTranslateToWrapperTransitionEnd = function(h) {
1113
- !n || n.destroyed || h.target === this && (n.wrapperEl.removeEventListener("transitionend", n.onTranslateToWrapperTransitionEnd), n.onTranslateToWrapperTransitionEnd = null, delete n.onTranslateToWrapperTransitionEnd, n.animating = !1, i && n.emit("transitionEnd"));
1114
- }), n.wrapperEl.addEventListener("transitionend", n.onTranslateToWrapperTransitionEnd))), !0;
1112
+ return e === 0 ? (r.setTransition(0), r.setTranslate(d), i && (r.emit("beforeTransitionStart", e, n), r.emit("transitionEnd"))) : (r.setTransition(e), r.setTranslate(d), i && (r.emit("beforeTransitionStart", e, n), r.emit("transitionStart")), r.animating || (r.animating = !0, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function(h) {
1113
+ !r || r.destroyed || h.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, r.animating = !1, i && r.emit("transitionEnd"));
1114
+ }), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), !0;
1115
1115
  }
1116
- var Ni = {
1117
- getTranslate: Li,
1118
- setTranslate: _i,
1119
- minTranslate: Oi,
1120
- maxTranslate: zi,
1121
- translateTo: Ai
1116
+ var Vi = {
1117
+ getTranslate: $i,
1118
+ setTranslate: ki,
1119
+ minTranslate: Gi,
1120
+ maxTranslate: Di,
1121
+ translateTo: Bi
1122
1122
  };
1123
- function $i(t, e) {
1123
+ function Fi(t, e) {
1124
1124
  const i = this;
1125
1125
  i.params.cssMode || (i.wrapperEl.style.transitionDuration = `${t}ms`, i.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), i.emit("setTransition", t, e);
1126
1126
  }
1127
- function st(t) {
1127
+ function ot(t) {
1128
1128
  let {
1129
1129
  swiper: e,
1130
1130
  runCallbacks: i,
1131
1131
  direction: s,
1132
- step: r
1132
+ step: n
1133
1133
  } = t;
1134
1134
  const {
1135
- activeIndex: n,
1135
+ activeIndex: r,
1136
1136
  previousIndex: l
1137
1137
  } = e;
1138
1138
  let a = s;
1139
- a || (n > l ? a = "next" : n < l ? a = "prev" : a = "reset"), e.emit(`transition${r}`), i && a === "reset" ? e.emit(`slideResetTransition${r}`) : i && n !== l && (e.emit(`slideChangeTransition${r}`), a === "next" ? e.emit(`slideNextTransition${r}`) : e.emit(`slidePrevTransition${r}`));
1139
+ a || (r > l ? a = "next" : r < l ? a = "prev" : a = "reset"), e.emit(`transition${n}`), i && a === "reset" ? e.emit(`slideResetTransition${n}`) : i && r !== l && (e.emit(`slideChangeTransition${n}`), a === "next" ? e.emit(`slideNextTransition${n}`) : e.emit(`slidePrevTransition${n}`));
1140
1140
  }
1141
- function ki(t, e) {
1141
+ function Hi(t, e) {
1142
1142
  t === void 0 && (t = !0);
1143
1143
  const i = this, {
1144
1144
  params: s
1145
1145
  } = i;
1146
- s.cssMode || (s.autoHeight && i.updateAutoHeight(), st({
1146
+ s.cssMode || (s.autoHeight && i.updateAutoHeight(), ot({
1147
1147
  swiper: i,
1148
1148
  runCallbacks: t,
1149
1149
  direction: e,
1150
1150
  step: "Start"
1151
1151
  }));
1152
1152
  }
1153
- function Di(t, e) {
1153
+ function Ri(t, e) {
1154
1154
  t === void 0 && (t = !0);
1155
1155
  const i = this, {
1156
1156
  params: s
1157
1157
  } = i;
1158
- i.animating = !1, !s.cssMode && (i.setTransition(0), st({
1158
+ i.animating = !1, !s.cssMode && (i.setTransition(0), ot({
1159
1159
  swiper: i,
1160
1160
  runCallbacks: t,
1161
1161
  direction: e,
1162
1162
  step: "End"
1163
1163
  }));
1164
1164
  }
1165
- var Bi = {
1166
- setTransition: $i,
1167
- transitionStart: ki,
1168
- transitionEnd: Di
1165
+ var ji = {
1166
+ setTransition: Fi,
1167
+ transitionStart: Hi,
1168
+ transitionEnd: Ri
1169
1169
  };
1170
- function Gi(t, e, i, s, r) {
1170
+ function Wi(t, e, i, s, n) {
1171
1171
  t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
1172
- const n = this;
1172
+ const r = this;
1173
1173
  let l = t;
1174
1174
  l < 0 && (l = 0);
1175
1175
  const {
1176
1176
  params: a,
1177
1177
  snapGrid: o,
1178
- slidesGrid: d,
1179
- previousIndex: c,
1178
+ slidesGrid: c,
1179
+ previousIndex: d,
1180
1180
  activeIndex: p,
1181
1181
  rtlTranslate: h,
1182
- wrapperEl: v,
1182
+ wrapperEl: w,
1183
1183
  enabled: m
1184
- } = n;
1185
- if (!m && !s && !r || n.destroyed || n.animating && a.preventInteractionOnTransition)
1184
+ } = r;
1185
+ if (!m && !s && !n || r.destroyed || r.animating && a.preventInteractionOnTransition)
1186
1186
  return !1;
1187
- typeof e > "u" && (e = n.params.speed);
1188
- const S = Math.min(n.params.slidesPerGroupSkip, l);
1189
- let x = S + Math.floor((l - S) / n.params.slidesPerGroup);
1187
+ typeof e > "u" && (e = r.params.speed);
1188
+ const b = Math.min(r.params.slidesPerGroupSkip, l);
1189
+ let x = b + Math.floor((l - b) / r.params.slidesPerGroup);
1190
1190
  x >= o.length && (x = o.length - 1);
1191
1191
  const g = -o[x];
1192
1192
  if (a.normalizeSlideIndex)
1193
- for (let I = 0; I < d.length; I += 1) {
1194
- const M = -Math.floor(g * 100), T = Math.floor(d[I] * 100), E = Math.floor(d[I + 1] * 100);
1195
- typeof d[I + 1] < "u" ? M >= T && M < E - (E - T) / 2 ? l = I : M >= T && M < E && (l = I + 1) : M >= T && (l = I);
1193
+ for (let I = 0; I < c.length; I += 1) {
1194
+ const M = -Math.floor(g * 100), T = Math.floor(c[I] * 100), E = Math.floor(c[I + 1] * 100);
1195
+ typeof c[I + 1] < "u" ? M >= T && M < E - (E - T) / 2 ? l = I : M >= T && M < E && (l = I + 1) : M >= T && (l = I);
1196
1196
  }
1197
- if (n.initialized && l !== p && (!n.allowSlideNext && (h ? g > n.translate && g > n.minTranslate() : g < n.translate && g < n.minTranslate()) || !n.allowSlidePrev && g > n.translate && g > n.maxTranslate() && (p || 0) !== l))
1197
+ if (r.initialized && l !== p && (!r.allowSlideNext && (h ? g > r.translate && g > r.minTranslate() : g < r.translate && g < r.minTranslate()) || !r.allowSlidePrev && g > r.translate && g > r.maxTranslate() && (p || 0) !== l))
1198
1198
  return !1;
1199
- l !== (c || 0) && i && n.emit("beforeSlideChangeStart"), n.updateProgress(g);
1199
+ l !== (d || 0) && i && r.emit("beforeSlideChangeStart"), r.updateProgress(g);
1200
1200
  let u;
1201
1201
  l > p ? u = "next" : l < p ? u = "prev" : u = "reset";
1202
- const f = n.virtual && n.params.virtual.enabled;
1203
- if (!(f && r) && (h && -g === n.translate || !h && g === n.translate))
1204
- return n.updateActiveIndex(l), a.autoHeight && n.updateAutoHeight(), n.updateSlidesClasses(), a.effect !== "slide" && n.setTranslate(g), u !== "reset" && (n.transitionStart(i, u), n.transitionEnd(i, u)), !1;
1202
+ const f = r.virtual && r.params.virtual.enabled;
1203
+ if (!(f && n) && (h && -g === r.translate || !h && g === r.translate))
1204
+ return r.updateActiveIndex(l), a.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), a.effect !== "slide" && r.setTranslate(g), u !== "reset" && (r.transitionStart(i, u), r.transitionEnd(i, u)), !1;
1205
1205
  if (a.cssMode) {
1206
- const I = n.isHorizontal(), M = h ? g : -g;
1206
+ const I = r.isHorizontal(), M = h ? g : -g;
1207
1207
  if (e === 0)
1208
- f && (n.wrapperEl.style.scrollSnapType = "none", n._immediateVirtual = !0), f && !n._cssModeVirtualInitialSet && n.params.initialSlide > 0 ? (n._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1209
- v[I ? "scrollLeft" : "scrollTop"] = M;
1210
- })) : v[I ? "scrollLeft" : "scrollTop"] = M, f && requestAnimationFrame(() => {
1211
- n.wrapperEl.style.scrollSnapType = "", n._immediateVirtual = !1;
1208
+ f && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), f && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1209
+ w[I ? "scrollLeft" : "scrollTop"] = M;
1210
+ })) : w[I ? "scrollLeft" : "scrollTop"] = M, f && requestAnimationFrame(() => {
1211
+ r.wrapperEl.style.scrollSnapType = "", r._immediateVirtual = !1;
1212
1212
  });
1213
1213
  else {
1214
- if (!n.support.smoothScroll)
1215
- return Qe({
1216
- swiper: n,
1214
+ if (!r.support.smoothScroll)
1215
+ return st({
1216
+ swiper: r,
1217
1217
  targetPosition: M,
1218
1218
  side: I ? "left" : "top"
1219
1219
  }), !0;
1220
- v.scrollTo({
1220
+ w.scrollTo({
1221
1221
  [I ? "left" : "top"]: M,
1222
1222
  behavior: "smooth"
1223
1223
  });
1224
1224
  }
1225
1225
  return !0;
1226
1226
  }
1227
- const P = it().isSafari;
1228
- return f && !r && P && n.isElement && n.virtual.update(!1, !1, l), n.setTransition(e), n.setTranslate(g), n.updateActiveIndex(l), n.updateSlidesClasses(), n.emit("beforeTransitionStart", e, s), n.transitionStart(i, u), e === 0 ? n.transitionEnd(i, u) : n.animating || (n.animating = !0, n.onSlideToWrapperTransitionEnd || (n.onSlideToWrapperTransitionEnd = function(M) {
1229
- !n || n.destroyed || M.target === this && (n.wrapperEl.removeEventListener("transitionend", n.onSlideToWrapperTransitionEnd), n.onSlideToWrapperTransitionEnd = null, delete n.onSlideToWrapperTransitionEnd, n.transitionEnd(i, u));
1230
- }), n.wrapperEl.addEventListener("transitionend", n.onSlideToWrapperTransitionEnd)), !0;
1227
+ const P = lt().isSafari;
1228
+ return f && !n && P && r.isElement && r.virtual.update(!1, !1, l), r.setTransition(e), r.setTranslate(g), r.updateActiveIndex(l), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, s), r.transitionStart(i, u), e === 0 ? r.transitionEnd(i, u) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(M) {
1229
+ !r || r.destroyed || M.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, u));
1230
+ }), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
1231
1231
  }
1232
- function Vi(t, e, i, s) {
1232
+ function qi(t, e, i, s) {
1233
1233
  t === void 0 && (t = 0), i === void 0 && (i = !0), typeof t == "string" && (t = parseInt(t, 10));
1234
- const r = this;
1235
- if (r.destroyed) return;
1236
- typeof e > "u" && (e = r.params.speed);
1237
- const n = r.grid && r.params.grid && r.params.grid.rows > 1;
1234
+ const n = this;
1235
+ if (n.destroyed) return;
1236
+ typeof e > "u" && (e = n.params.speed);
1237
+ const r = n.grid && n.params.grid && n.params.grid.rows > 1;
1238
1238
  let l = t;
1239
- if (r.params.loop)
1240
- if (r.virtual && r.params.virtual.enabled)
1241
- l = l + r.virtual.slidesBefore;
1239
+ if (n.params.loop)
1240
+ if (n.virtual && n.params.virtual.enabled)
1241
+ l = l + n.virtual.slidesBefore;
1242
1242
  else {
1243
1243
  let a;
1244
- if (n) {
1245
- const h = l * r.params.grid.rows;
1246
- a = r.slides.find((v) => v.getAttribute("data-swiper-slide-index") * 1 === h).column;
1244
+ if (r) {
1245
+ const h = l * n.params.grid.rows;
1246
+ a = n.slides.find((w) => w.getAttribute("data-swiper-slide-index") * 1 === h).column;
1247
1247
  } else
1248
- a = r.getSlideIndexByData(l);
1249
- const o = n ? Math.ceil(r.slides.length / r.params.grid.rows) : r.slides.length, {
1250
- centeredSlides: d
1251
- } = r.params;
1252
- let c = r.params.slidesPerView;
1253
- c === "auto" ? c = r.slidesPerViewDynamic() : (c = Math.ceil(parseFloat(r.params.slidesPerView, 10)), d && c % 2 === 0 && (c = c + 1));
1254
- let p = o - a < c;
1255
- if (d && (p = p || a < Math.ceil(c / 2)), s && d && r.params.slidesPerView !== "auto" && !n && (p = !1), p) {
1256
- const h = d ? a < r.activeIndex ? "prev" : "next" : a - r.activeIndex - 1 < r.params.slidesPerView ? "next" : "prev";
1257
- r.loopFix({
1248
+ a = n.getSlideIndexByData(l);
1249
+ const o = r ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
1250
+ centeredSlides: c
1251
+ } = n.params;
1252
+ let d = n.params.slidesPerView;
1253
+ d === "auto" ? d = n.slidesPerViewDynamic() : (d = Math.ceil(parseFloat(n.params.slidesPerView, 10)), c && d % 2 === 0 && (d = d + 1));
1254
+ let p = o - a < d;
1255
+ if (c && (p = p || a < Math.ceil(d / 2)), s && c && n.params.slidesPerView !== "auto" && !r && (p = !1), p) {
1256
+ const h = c ? a < n.activeIndex ? "prev" : "next" : a - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
1257
+ n.loopFix({
1258
1258
  direction: h,
1259
1259
  slideTo: !0,
1260
1260
  activeSlideIndex: h === "next" ? a + 1 : a - o + 1,
1261
- slideRealIndex: h === "next" ? r.realIndex : void 0
1261
+ slideRealIndex: h === "next" ? n.realIndex : void 0
1262
1262
  });
1263
1263
  }
1264
- if (n) {
1265
- const h = l * r.params.grid.rows;
1266
- l = r.slides.find((v) => v.getAttribute("data-swiper-slide-index") * 1 === h).column;
1264
+ if (r) {
1265
+ const h = l * n.params.grid.rows;
1266
+ l = n.slides.find((w) => w.getAttribute("data-swiper-slide-index") * 1 === h).column;
1267
1267
  } else
1268
- l = r.getSlideIndexByData(l);
1268
+ l = n.getSlideIndexByData(l);
1269
1269
  }
1270
1270
  return requestAnimationFrame(() => {
1271
- r.slideTo(l, e, i, s);
1272
- }), r;
1271
+ n.slideTo(l, e, i, s);
1272
+ }), n;
1273
1273
  }
1274
- function Hi(t, e, i) {
1274
+ function Xi(t, e, i) {
1275
1275
  e === void 0 && (e = !0);
1276
1276
  const s = this, {
1277
- enabled: r,
1278
- params: n,
1277
+ enabled: n,
1278
+ params: r,
1279
1279
  animating: l
1280
1280
  } = s;
1281
- if (!r || s.destroyed) return s;
1281
+ if (!n || s.destroyed) return s;
1282
1282
  typeof t > "u" && (t = s.params.speed);
1283
- let a = n.slidesPerGroup;
1284
- n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (a = Math.max(s.slidesPerViewDynamic("current", !0), 1));
1285
- const o = s.activeIndex < n.slidesPerGroupSkip ? 1 : a, d = s.virtual && n.virtual.enabled;
1286
- if (n.loop) {
1287
- if (l && !d && n.loopPreventsSliding) return !1;
1283
+ let a = r.slidesPerGroup;
1284
+ r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (a = Math.max(s.slidesPerViewDynamic("current", !0), 1));
1285
+ const o = s.activeIndex < r.slidesPerGroupSkip ? 1 : a, c = s.virtual && r.virtual.enabled;
1286
+ if (r.loop) {
1287
+ if (l && !c && r.loopPreventsSliding) return !1;
1288
1288
  if (s.loopFix({
1289
1289
  direction: "next"
1290
- }), s._clientLeft = s.wrapperEl.clientLeft, s.activeIndex === s.slides.length - 1 && n.cssMode)
1290
+ }), s._clientLeft = s.wrapperEl.clientLeft, s.activeIndex === s.slides.length - 1 && r.cssMode)
1291
1291
  return requestAnimationFrame(() => {
1292
1292
  s.slideTo(s.activeIndex + o, t, e, i);
1293
1293
  }), !0;
1294
1294
  }
1295
- return n.rewind && s.isEnd ? s.slideTo(0, t, e, i) : s.slideTo(s.activeIndex + o, t, e, i);
1295
+ return r.rewind && s.isEnd ? s.slideTo(0, t, e, i) : s.slideTo(s.activeIndex + o, t, e, i);
1296
1296
  }
1297
- function Fi(t, e, i) {
1297
+ function Yi(t, e, i) {
1298
1298
  e === void 0 && (e = !0);
1299
1299
  const s = this, {
1300
- params: r,
1301
- snapGrid: n,
1300
+ params: n,
1301
+ snapGrid: r,
1302
1302
  slidesGrid: l,
1303
1303
  rtlTranslate: a,
1304
1304
  enabled: o,
1305
- animating: d
1305
+ animating: c
1306
1306
  } = s;
1307
1307
  if (!o || s.destroyed) return s;
1308
1308
  typeof t > "u" && (t = s.params.speed);
1309
- const c = s.virtual && r.virtual.enabled;
1310
- if (r.loop) {
1311
- if (d && !c && r.loopPreventsSliding) return !1;
1309
+ const d = s.virtual && n.virtual.enabled;
1310
+ if (n.loop) {
1311
+ if (c && !d && n.loopPreventsSliding) return !1;
1312
1312
  s.loopFix({
1313
1313
  direction: "prev"
1314
1314
  }), s._clientLeft = s.wrapperEl.clientLeft;
@@ -1317,225 +1317,225 @@ function Fi(t, e, i) {
1317
1317
  function h(u) {
1318
1318
  return u < 0 ? -Math.floor(Math.abs(u)) : Math.floor(u);
1319
1319
  }
1320
- const v = h(p), m = n.map((u) => h(u)), S = r.freeMode && r.freeMode.enabled;
1321
- let x = n[m.indexOf(v) - 1];
1322
- if (typeof x > "u" && (r.cssMode || S)) {
1320
+ const w = h(p), m = r.map((u) => h(u)), b = n.freeMode && n.freeMode.enabled;
1321
+ let x = r[m.indexOf(w) - 1];
1322
+ if (typeof x > "u" && (n.cssMode || b)) {
1323
1323
  let u;
1324
- n.forEach((f, w) => {
1325
- v >= f && (u = w);
1326
- }), typeof u < "u" && (x = S ? n[u] : n[u > 0 ? u - 1 : u]);
1324
+ r.forEach((f, S) => {
1325
+ w >= f && (u = S);
1326
+ }), typeof u < "u" && (x = b ? r[u] : r[u > 0 ? u - 1 : u]);
1327
1327
  }
1328
1328
  let g = 0;
1329
- if (typeof x < "u" && (g = l.indexOf(x), g < 0 && (g = s.activeIndex - 1), r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (g = g - s.slidesPerViewDynamic("previous", !0) + 1, g = Math.max(g, 0))), r.rewind && s.isBeginning) {
1329
+ if (typeof x < "u" && (g = l.indexOf(x), g < 0 && (g = s.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (g = g - s.slidesPerViewDynamic("previous", !0) + 1, g = Math.max(g, 0))), n.rewind && s.isBeginning) {
1330
1330
  const u = s.params.virtual && s.params.virtual.enabled && s.virtual ? s.virtual.slides.length - 1 : s.slides.length - 1;
1331
1331
  return s.slideTo(u, t, e, i);
1332
- } else if (r.loop && s.activeIndex === 0 && r.cssMode)
1332
+ } else if (n.loop && s.activeIndex === 0 && n.cssMode)
1333
1333
  return requestAnimationFrame(() => {
1334
1334
  s.slideTo(g, t, e, i);
1335
1335
  }), !0;
1336
1336
  return s.slideTo(g, t, e, i);
1337
1337
  }
1338
- function Ri(t, e, i) {
1338
+ function Ui(t, e, i) {
1339
1339
  e === void 0 && (e = !0);
1340
1340
  const s = this;
1341
1341
  if (!s.destroyed)
1342
1342
  return typeof t > "u" && (t = s.params.speed), s.slideTo(s.activeIndex, t, e, i);
1343
1343
  }
1344
- function ji(t, e, i, s) {
1344
+ function Ki(t, e, i, s) {
1345
1345
  e === void 0 && (e = !0), s === void 0 && (s = 0.5);
1346
- const r = this;
1347
- if (r.destroyed) return;
1348
- typeof t > "u" && (t = r.params.speed);
1349
- let n = r.activeIndex;
1350
- const l = Math.min(r.params.slidesPerGroupSkip, n), a = l + Math.floor((n - l) / r.params.slidesPerGroup), o = r.rtlTranslate ? r.translate : -r.translate;
1351
- if (o >= r.snapGrid[a]) {
1352
- const d = r.snapGrid[a], c = r.snapGrid[a + 1];
1353
- o - d > (c - d) * s && (n += r.params.slidesPerGroup);
1346
+ const n = this;
1347
+ if (n.destroyed) return;
1348
+ typeof t > "u" && (t = n.params.speed);
1349
+ let r = n.activeIndex;
1350
+ const l = Math.min(n.params.slidesPerGroupSkip, r), a = l + Math.floor((r - l) / n.params.slidesPerGroup), o = n.rtlTranslate ? n.translate : -n.translate;
1351
+ if (o >= n.snapGrid[a]) {
1352
+ const c = n.snapGrid[a], d = n.snapGrid[a + 1];
1353
+ o - c > (d - c) * s && (r += n.params.slidesPerGroup);
1354
1354
  } else {
1355
- const d = r.snapGrid[a - 1], c = r.snapGrid[a];
1356
- o - d <= (c - d) * s && (n -= r.params.slidesPerGroup);
1355
+ const c = n.snapGrid[a - 1], d = n.snapGrid[a];
1356
+ o - c <= (d - c) * s && (r -= n.params.slidesPerGroup);
1357
1357
  }
1358
- return n = Math.max(n, 0), n = Math.min(n, r.slidesGrid.length - 1), r.slideTo(n, t, e, i);
1358
+ return r = Math.max(r, 0), r = Math.min(r, n.slidesGrid.length - 1), n.slideTo(r, t, e, i);
1359
1359
  }
1360
- function Wi() {
1360
+ function Zi() {
1361
1361
  const t = this;
1362
1362
  if (t.destroyed) return;
1363
1363
  const {
1364
1364
  params: e,
1365
1365
  slidesEl: i
1366
1366
  } = t, s = e.slidesPerView === "auto" ? t.slidesPerViewDynamic() : e.slidesPerView;
1367
- let r = t.getSlideIndexWhenGrid(t.clickedIndex), n;
1367
+ let n = t.getSlideIndexWhenGrid(t.clickedIndex), r;
1368
1368
  const l = t.isElement ? "swiper-slide" : `.${e.slideClass}`, a = t.grid && t.params.grid && t.params.grid.rows > 1;
1369
1369
  if (e.loop) {
1370
1370
  if (t.animating) return;
1371
- n = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(n) : r > (a ? (t.slides.length - s) / 2 - (t.params.grid.rows - 1) : t.slides.length - s) ? (t.loopFix(), r = t.getSlideIndex(K(i, `${l}[data-swiper-slide-index="${n}"]`)[0]), Ze(() => {
1372
- t.slideTo(r);
1373
- })) : t.slideTo(r);
1371
+ r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(r) : n > (a ? (t.slides.length - s) / 2 - (t.params.grid.rows - 1) : t.slides.length - s) ? (t.loopFix(), n = t.getSlideIndex(Q(i, `${l}[data-swiper-slide-index="${r}"]`)[0]), it(() => {
1372
+ t.slideTo(n);
1373
+ })) : t.slideTo(n);
1374
1374
  } else
1375
- t.slideTo(r);
1376
- }
1377
- var qi = {
1378
- slideTo: Gi,
1379
- slideToLoop: Vi,
1380
- slideNext: Hi,
1381
- slidePrev: Fi,
1382
- slideReset: Ri,
1383
- slideToClosest: ji,
1384
- slideToClickedSlide: Wi
1375
+ t.slideTo(n);
1376
+ }
1377
+ var Qi = {
1378
+ slideTo: Wi,
1379
+ slideToLoop: qi,
1380
+ slideNext: Xi,
1381
+ slidePrev: Yi,
1382
+ slideReset: Ui,
1383
+ slideToClosest: Ki,
1384
+ slideToClickedSlide: Zi
1385
1385
  };
1386
- function Xi(t, e) {
1386
+ function Ji(t, e) {
1387
1387
  const i = this, {
1388
1388
  params: s,
1389
- slidesEl: r
1389
+ slidesEl: n
1390
1390
  } = i;
1391
1391
  if (!s.loop || i.virtual && i.params.virtual.enabled) return;
1392
- const n = () => {
1393
- K(r, `.${s.slideClass}, swiper-slide`).forEach((v, m) => {
1394
- v.setAttribute("data-swiper-slide-index", m);
1392
+ const r = () => {
1393
+ Q(n, `.${s.slideClass}, swiper-slide`).forEach((w, m) => {
1394
+ w.setAttribute("data-swiper-slide-index", m);
1395
1395
  });
1396
1396
  }, l = () => {
1397
- const h = K(r, `.${s.slideBlankClass}`);
1398
- h.forEach((v) => {
1399
- v.remove();
1397
+ const h = Q(n, `.${s.slideBlankClass}`);
1398
+ h.forEach((w) => {
1399
+ w.remove();
1400
1400
  }), h.length > 0 && (i.recalcSlides(), i.updateSlides());
1401
1401
  }, a = i.grid && s.grid && s.grid.rows > 1;
1402
1402
  s.loopAddBlankSlides && (s.slidesPerGroup > 1 || a) && l();
1403
- const o = s.slidesPerGroup * (a ? s.grid.rows : 1), d = i.slides.length % o !== 0, c = a && i.slides.length % s.grid.rows !== 0, p = (h) => {
1404
- for (let v = 0; v < h; v += 1) {
1405
- const m = i.isElement ? ve("swiper-slide", [s.slideBlankClass]) : ve("div", [s.slideClass, s.slideBlankClass]);
1403
+ const o = s.slidesPerGroup * (a ? s.grid.rows : 1), c = i.slides.length % o !== 0, d = a && i.slides.length % s.grid.rows !== 0, p = (h) => {
1404
+ for (let w = 0; w < h; w += 1) {
1405
+ const m = i.isElement ? ye("swiper-slide", [s.slideBlankClass]) : ye("div", [s.slideClass, s.slideBlankClass]);
1406
1406
  i.slidesEl.append(m);
1407
1407
  }
1408
1408
  };
1409
- if (d) {
1409
+ if (c) {
1410
1410
  if (s.loopAddBlankSlides) {
1411
1411
  const h = o - i.slides.length % o;
1412
1412
  p(h), i.recalcSlides(), i.updateSlides();
1413
1413
  } else
1414
- ge("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
1415
- n();
1416
- } else if (c) {
1414
+ be("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
1415
+ r();
1416
+ } else if (d) {
1417
1417
  if (s.loopAddBlankSlides) {
1418
1418
  const h = s.grid.rows - i.slides.length % s.grid.rows;
1419
1419
  p(h), i.recalcSlides(), i.updateSlides();
1420
1420
  } else
1421
- ge("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
1422
- n();
1421
+ be("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
1422
+ r();
1423
1423
  } else
1424
- n();
1424
+ r();
1425
1425
  i.loopFix({
1426
1426
  slideRealIndex: t,
1427
1427
  direction: s.centeredSlides ? void 0 : "next",
1428
1428
  initial: e
1429
1429
  });
1430
1430
  }
1431
- function Yi(t) {
1431
+ function es(t) {
1432
1432
  let {
1433
1433
  slideRealIndex: e,
1434
1434
  slideTo: i = !0,
1435
1435
  direction: s,
1436
- setTranslate: r,
1437
- activeSlideIndex: n,
1436
+ setTranslate: n,
1437
+ activeSlideIndex: r,
1438
1438
  initial: l,
1439
1439
  byController: a,
1440
1440
  byMousewheel: o
1441
1441
  } = t === void 0 ? {} : t;
1442
- const d = this;
1443
- if (!d.params.loop) return;
1444
- d.emit("beforeLoopFix");
1442
+ const c = this;
1443
+ if (!c.params.loop) return;
1444
+ c.emit("beforeLoopFix");
1445
1445
  const {
1446
- slides: c,
1446
+ slides: d,
1447
1447
  allowSlidePrev: p,
1448
1448
  allowSlideNext: h,
1449
- slidesEl: v,
1449
+ slidesEl: w,
1450
1450
  params: m
1451
- } = d, {
1452
- centeredSlides: S,
1451
+ } = c, {
1452
+ centeredSlides: b,
1453
1453
  initialSlide: x
1454
1454
  } = m;
1455
- if (d.allowSlidePrev = !0, d.allowSlideNext = !0, d.virtual && m.virtual.enabled) {
1456
- i && (!m.centeredSlides && d.snapIndex === 0 ? d.slideTo(d.virtual.slides.length, 0, !1, !0) : m.centeredSlides && d.snapIndex < m.slidesPerView ? d.slideTo(d.virtual.slides.length + d.snapIndex, 0, !1, !0) : d.snapIndex === d.snapGrid.length - 1 && d.slideTo(d.virtual.slidesBefore, 0, !1, !0)), d.allowSlidePrev = p, d.allowSlideNext = h, d.emit("loopFix");
1455
+ if (c.allowSlidePrev = !0, c.allowSlideNext = !0, c.virtual && m.virtual.enabled) {
1456
+ i && (!m.centeredSlides && c.snapIndex === 0 ? c.slideTo(c.virtual.slides.length, 0, !1, !0) : m.centeredSlides && c.snapIndex < m.slidesPerView ? c.slideTo(c.virtual.slides.length + c.snapIndex, 0, !1, !0) : c.snapIndex === c.snapGrid.length - 1 && c.slideTo(c.virtual.slidesBefore, 0, !1, !0)), c.allowSlidePrev = p, c.allowSlideNext = h, c.emit("loopFix");
1457
1457
  return;
1458
1458
  }
1459
1459
  let g = m.slidesPerView;
1460
- g === "auto" ? g = d.slidesPerViewDynamic() : (g = Math.ceil(parseFloat(m.slidesPerView, 10)), S && g % 2 === 0 && (g = g + 1));
1460
+ g === "auto" ? g = c.slidesPerViewDynamic() : (g = Math.ceil(parseFloat(m.slidesPerView, 10)), b && g % 2 === 0 && (g = g + 1));
1461
1461
  const u = m.slidesPerGroupAuto ? g : m.slidesPerGroup;
1462
- let f = S ? Math.max(u, Math.ceil(g / 2)) : u;
1463
- f % u !== 0 && (f += u - f % u), f += m.loopAdditionalSlides, d.loopedSlides = f;
1464
- const w = d.grid && m.grid && m.grid.rows > 1;
1465
- c.length < g + f || d.params.effect === "cards" && c.length < g + f * 2 ? ge("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : w && m.grid.fill === "row" && ge("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
1466
- const y = [], P = [], I = w ? Math.ceil(c.length / m.grid.rows) : c.length, M = l && I - x < g && !S;
1467
- let T = M ? x : d.activeIndex;
1468
- typeof n > "u" ? n = d.getSlideIndex(c.find((_) => _.classList.contains(m.slideActiveClass))) : T = n;
1462
+ let f = b ? Math.max(u, Math.ceil(g / 2)) : u;
1463
+ f % u !== 0 && (f += u - f % u), f += m.loopAdditionalSlides, c.loopedSlides = f;
1464
+ const S = c.grid && m.grid && m.grid.rows > 1;
1465
+ d.length < g + f || c.params.effect === "cards" && d.length < g + f * 2 ? be("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : S && m.grid.fill === "row" && be("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
1466
+ const y = [], P = [], I = S ? Math.ceil(d.length / m.grid.rows) : d.length, M = l && I - x < g && !b;
1467
+ let T = M ? x : c.activeIndex;
1468
+ typeof r > "u" ? r = c.getSlideIndex(d.find((O) => O.classList.contains(m.slideActiveClass))) : T = r;
1469
1469
  const E = s === "next" || !s, C = s === "prev" || !s;
1470
- let L = 0, O = 0;
1471
- const $ = (w ? c[n].column : n) + (S && typeof r > "u" ? -g / 2 + 0.5 : 0);
1470
+ let _ = 0, z = 0;
1471
+ const $ = (S ? d[r].column : r) + (b && typeof n > "u" ? -g / 2 + 0.5 : 0);
1472
1472
  if ($ < f) {
1473
- L = Math.max(f - $, u);
1474
- for (let _ = 0; _ < f - $; _ += 1) {
1475
- const B = _ - Math.floor(_ / I) * I;
1476
- if (w) {
1477
- const V = I - B - 1;
1478
- for (let D = c.length - 1; D >= 0; D -= 1)
1479
- c[D].column === V && y.push(D);
1473
+ _ = Math.max(f - $, u);
1474
+ for (let O = 0; O < f - $; O += 1) {
1475
+ const B = O - Math.floor(O / I) * I;
1476
+ if (S) {
1477
+ const F = I - B - 1;
1478
+ for (let G = d.length - 1; G >= 0; G -= 1)
1479
+ d[G].column === F && y.push(G);
1480
1480
  } else
1481
1481
  y.push(I - B - 1);
1482
1482
  }
1483
1483
  } else if ($ + g > I - f) {
1484
- O = Math.max($ - (I - f * 2), u), M && (O = Math.max(O, g - I + x + 1));
1485
- for (let _ = 0; _ < O; _ += 1) {
1486
- const B = _ - Math.floor(_ / I) * I;
1487
- w ? c.forEach((V, D) => {
1488
- V.column === B && P.push(D);
1484
+ z = Math.max($ - (I - f * 2), u), M && (z = Math.max(z, g - I + x + 1));
1485
+ for (let O = 0; O < z; O += 1) {
1486
+ const B = O - Math.floor(O / I) * I;
1487
+ S ? d.forEach((F, G) => {
1488
+ F.column === B && P.push(G);
1489
1489
  }) : P.push(B);
1490
1490
  }
1491
1491
  }
1492
- if (d.__preventObserver__ = !0, requestAnimationFrame(() => {
1493
- d.__preventObserver__ = !1;
1494
- }), d.params.effect === "cards" && c.length < g + f * 2 && (P.includes(n) && P.splice(P.indexOf(n), 1), y.includes(n) && y.splice(y.indexOf(n), 1)), C && y.forEach((_) => {
1495
- c[_].swiperLoopMoveDOM = !0, v.prepend(c[_]), c[_].swiperLoopMoveDOM = !1;
1496
- }), E && P.forEach((_) => {
1497
- c[_].swiperLoopMoveDOM = !0, v.append(c[_]), c[_].swiperLoopMoveDOM = !1;
1498
- }), d.recalcSlides(), m.slidesPerView === "auto" ? d.updateSlides() : w && (y.length > 0 && C || P.length > 0 && E) && d.slides.forEach((_, B) => {
1499
- d.grid.updateSlide(B, _, d.slides);
1500
- }), m.watchSlidesProgress && d.updateSlidesOffset(), i) {
1492
+ if (c.__preventObserver__ = !0, requestAnimationFrame(() => {
1493
+ c.__preventObserver__ = !1;
1494
+ }), c.params.effect === "cards" && d.length < g + f * 2 && (P.includes(r) && P.splice(P.indexOf(r), 1), y.includes(r) && y.splice(y.indexOf(r), 1)), C && y.forEach((O) => {
1495
+ d[O].swiperLoopMoveDOM = !0, w.prepend(d[O]), d[O].swiperLoopMoveDOM = !1;
1496
+ }), E && P.forEach((O) => {
1497
+ d[O].swiperLoopMoveDOM = !0, w.append(d[O]), d[O].swiperLoopMoveDOM = !1;
1498
+ }), c.recalcSlides(), m.slidesPerView === "auto" ? c.updateSlides() : S && (y.length > 0 && C || P.length > 0 && E) && c.slides.forEach((O, B) => {
1499
+ c.grid.updateSlide(B, O, c.slides);
1500
+ }), m.watchSlidesProgress && c.updateSlidesOffset(), i) {
1501
1501
  if (y.length > 0 && C) {
1502
1502
  if (typeof e > "u") {
1503
- const _ = d.slidesGrid[T], V = d.slidesGrid[T + L] - _;
1504
- o ? d.setTranslate(d.translate - V) : (d.slideTo(T + Math.ceil(L), 0, !1, !0), r && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - V, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - V));
1505
- } else if (r) {
1506
- const _ = w ? y.length / m.grid.rows : y.length;
1507
- d.slideTo(d.activeIndex + _, 0, !1, !0), d.touchEventsData.currentTranslate = d.translate;
1503
+ const O = c.slidesGrid[T], F = c.slidesGrid[T + _] - O;
1504
+ o ? c.setTranslate(c.translate - F) : (c.slideTo(T + Math.ceil(_), 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - F, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - F));
1505
+ } else if (n) {
1506
+ const O = S ? y.length / m.grid.rows : y.length;
1507
+ c.slideTo(c.activeIndex + O, 0, !1, !0), c.touchEventsData.currentTranslate = c.translate;
1508
1508
  }
1509
1509
  } else if (P.length > 0 && E)
1510
1510
  if (typeof e > "u") {
1511
- const _ = d.slidesGrid[T], V = d.slidesGrid[T - O] - _;
1512
- o ? d.setTranslate(d.translate - V) : (d.slideTo(T - O, 0, !1, !0), r && (d.touchEventsData.startTranslate = d.touchEventsData.startTranslate - V, d.touchEventsData.currentTranslate = d.touchEventsData.currentTranslate - V));
1511
+ const O = c.slidesGrid[T], F = c.slidesGrid[T - z] - O;
1512
+ o ? c.setTranslate(c.translate - F) : (c.slideTo(T - z, 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - F, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - F));
1513
1513
  } else {
1514
- const _ = w ? P.length / m.grid.rows : P.length;
1515
- d.slideTo(d.activeIndex - _, 0, !1, !0);
1514
+ const O = S ? P.length / m.grid.rows : P.length;
1515
+ c.slideTo(c.activeIndex - O, 0, !1, !0);
1516
1516
  }
1517
1517
  }
1518
- if (d.allowSlidePrev = p, d.allowSlideNext = h, d.controller && d.controller.control && !a) {
1519
- const _ = {
1518
+ if (c.allowSlidePrev = p, c.allowSlideNext = h, c.controller && c.controller.control && !a) {
1519
+ const O = {
1520
1520
  slideRealIndex: e,
1521
1521
  direction: s,
1522
- setTranslate: r,
1523
- activeSlideIndex: n,
1522
+ setTranslate: n,
1523
+ activeSlideIndex: r,
1524
1524
  byController: !0
1525
1525
  };
1526
- Array.isArray(d.controller.control) ? d.controller.control.forEach((B) => {
1526
+ Array.isArray(c.controller.control) ? c.controller.control.forEach((B) => {
1527
1527
  !B.destroyed && B.params.loop && B.loopFix({
1528
- ..._,
1528
+ ...O,
1529
1529
  slideTo: B.params.slidesPerView === m.slidesPerView ? i : !1
1530
1530
  });
1531
- }) : d.controller.control instanceof d.constructor && d.controller.control.params.loop && d.controller.control.loopFix({
1532
- ..._,
1533
- slideTo: d.controller.control.params.slidesPerView === m.slidesPerView ? i : !1
1531
+ }) : c.controller.control instanceof c.constructor && c.controller.control.params.loop && c.controller.control.loopFix({
1532
+ ...O,
1533
+ slideTo: c.controller.control.params.slidesPerView === m.slidesPerView ? i : !1
1534
1534
  });
1535
1535
  }
1536
- d.emit("loopFix");
1536
+ c.emit("loopFix");
1537
1537
  }
1538
- function Ui() {
1538
+ function ts() {
1539
1539
  const t = this, {
1540
1540
  params: e,
1541
1541
  slidesEl: i
@@ -1543,21 +1543,21 @@ function Ui() {
1543
1543
  if (!e.loop || !i || t.virtual && t.params.virtual.enabled) return;
1544
1544
  t.recalcSlides();
1545
1545
  const s = [];
1546
- t.slides.forEach((r) => {
1547
- const n = typeof r.swiperSlideIndex > "u" ? r.getAttribute("data-swiper-slide-index") * 1 : r.swiperSlideIndex;
1548
- s[n] = r;
1549
- }), t.slides.forEach((r) => {
1550
- r.removeAttribute("data-swiper-slide-index");
1551
- }), s.forEach((r) => {
1552
- i.append(r);
1546
+ t.slides.forEach((n) => {
1547
+ const r = typeof n.swiperSlideIndex > "u" ? n.getAttribute("data-swiper-slide-index") * 1 : n.swiperSlideIndex;
1548
+ s[r] = n;
1549
+ }), t.slides.forEach((n) => {
1550
+ n.removeAttribute("data-swiper-slide-index");
1551
+ }), s.forEach((n) => {
1552
+ i.append(n);
1553
1553
  }), t.recalcSlides(), t.slideTo(t.realIndex, 0);
1554
1554
  }
1555
- var Ki = {
1556
- loopCreate: Xi,
1557
- loopFix: Yi,
1558
- loopDestroy: Ui
1555
+ var is = {
1556
+ loopCreate: Ji,
1557
+ loopFix: es,
1558
+ loopDestroy: ts
1559
1559
  };
1560
- function Zi(t) {
1560
+ function ss(t) {
1561
1561
  const e = this;
1562
1562
  if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
1563
1563
  const i = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
@@ -1565,150 +1565,150 @@ function Zi(t) {
1565
1565
  e.__preventObserver__ = !1;
1566
1566
  });
1567
1567
  }
1568
- function Qi() {
1568
+ function ns() {
1569
1569
  const t = this;
1570
1570
  t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = !0), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
1571
1571
  t.__preventObserver__ = !1;
1572
1572
  }));
1573
1573
  }
1574
- var Ji = {
1575
- setGrabCursor: Zi,
1576
- unsetGrabCursor: Qi
1574
+ var rs = {
1575
+ setGrabCursor: ss,
1576
+ unsetGrabCursor: ns
1577
1577
  };
1578
- function es(t, e) {
1578
+ function as(t, e) {
1579
1579
  e === void 0 && (e = this);
1580
1580
  function i(s) {
1581
- if (!s || s === re() || s === F()) return null;
1581
+ if (!s || s === le() || s === j()) return null;
1582
1582
  s.assignedSlot && (s = s.assignedSlot);
1583
- const r = s.closest(t);
1584
- return !r && !s.getRootNode ? null : r || i(s.getRootNode().host);
1583
+ const n = s.closest(t);
1584
+ return !n && !s.getRootNode ? null : n || i(s.getRootNode().host);
1585
1585
  }
1586
1586
  return i(e);
1587
1587
  }
1588
- function Re(t, e, i) {
1589
- const s = F(), {
1590
- params: r
1591
- } = t, n = r.edgeSwipeDetection, l = r.edgeSwipeThreshold;
1592
- return n && (i <= l || i >= s.innerWidth - l) ? n === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
1588
+ function Xe(t, e, i) {
1589
+ const s = j(), {
1590
+ params: n
1591
+ } = t, r = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
1592
+ return r && (i <= l || i >= s.innerWidth - l) ? r === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
1593
1593
  }
1594
- function ts(t) {
1595
- const e = this, i = re();
1594
+ function ls(t) {
1595
+ const e = this, i = le();
1596
1596
  let s = t;
1597
1597
  s.originalEvent && (s = s.originalEvent);
1598
- const r = e.touchEventsData;
1598
+ const n = e.touchEventsData;
1599
1599
  if (s.type === "pointerdown") {
1600
- if (r.pointerId !== null && r.pointerId !== s.pointerId)
1600
+ if (n.pointerId !== null && n.pointerId !== s.pointerId)
1601
1601
  return;
1602
- r.pointerId = s.pointerId;
1603
- } else s.type === "touchstart" && s.targetTouches.length === 1 && (r.touchId = s.targetTouches[0].identifier);
1602
+ n.pointerId = s.pointerId;
1603
+ } else s.type === "touchstart" && s.targetTouches.length === 1 && (n.touchId = s.targetTouches[0].identifier);
1604
1604
  if (s.type === "touchstart") {
1605
- Re(e, s, s.targetTouches[0].pageX);
1605
+ Xe(e, s, s.targetTouches[0].pageX);
1606
1606
  return;
1607
1607
  }
1608
1608
  const {
1609
- params: n,
1609
+ params: r,
1610
1610
  touches: l,
1611
1611
  enabled: a
1612
1612
  } = e;
1613
- if (!a || !n.simulateTouch && s.pointerType === "mouse" || e.animating && n.preventInteractionOnTransition)
1613
+ if (!a || !r.simulateTouch && s.pointerType === "mouse" || e.animating && r.preventInteractionOnTransition)
1614
1614
  return;
1615
- !e.animating && n.cssMode && n.loop && e.loopFix();
1615
+ !e.animating && r.cssMode && r.loop && e.loopFix();
1616
1616
  let o = s.target;
1617
- if (n.touchEventsTarget === "wrapper" && !di(o, e.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || r.isTouched && r.isMoved) return;
1618
- const d = !!n.noSwipingClass && n.noSwipingClass !== "", c = s.composedPath ? s.composedPath() : s.path;
1619
- d && s.target && s.target.shadowRoot && c && (o = c[0]);
1620
- const p = n.noSwipingSelector ? n.noSwipingSelector : `.${n.noSwipingClass}`, h = !!(s.target && s.target.shadowRoot);
1621
- if (n.noSwiping && (h ? es(p, o) : o.closest(p))) {
1617
+ if (r.touchEventsTarget === "wrapper" && !hi(o, e.wrapperEl) || "which" in s && s.which === 3 || "button" in s && s.button > 0 || n.isTouched && n.isMoved) return;
1618
+ const c = !!r.noSwipingClass && r.noSwipingClass !== "", d = s.composedPath ? s.composedPath() : s.path;
1619
+ c && s.target && s.target.shadowRoot && d && (o = d[0]);
1620
+ const p = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, h = !!(s.target && s.target.shadowRoot);
1621
+ if (r.noSwiping && (h ? as(p, o) : o.closest(p))) {
1622
1622
  e.allowClick = !0;
1623
1623
  return;
1624
1624
  }
1625
- if (n.swipeHandler && !o.closest(n.swipeHandler))
1625
+ if (r.swipeHandler && !o.closest(r.swipeHandler))
1626
1626
  return;
1627
1627
  l.currentX = s.pageX, l.currentY = s.pageY;
1628
- const v = l.currentX, m = l.currentY;
1629
- if (!Re(e, s, v))
1628
+ const w = l.currentX, m = l.currentY;
1629
+ if (!Xe(e, s, w))
1630
1630
  return;
1631
- Object.assign(r, {
1631
+ Object.assign(n, {
1632
1632
  isTouched: !0,
1633
1633
  isMoved: !1,
1634
1634
  allowTouchCallbacks: !0,
1635
1635
  isScrolling: void 0,
1636
1636
  startMoving: void 0
1637
- }), l.startX = v, l.startY = m, r.touchStartTime = he(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, n.threshold > 0 && (r.allowThresholdMove = !1);
1638
- let S = !0;
1639
- o.matches(r.focusableElements) && (S = !1, o.nodeName === "SELECT" && (r.isTouched = !1)), i.activeElement && i.activeElement.matches(r.focusableElements) && i.activeElement !== o && (s.pointerType === "mouse" || s.pointerType !== "mouse" && !o.matches(r.focusableElements)) && i.activeElement.blur();
1640
- const x = S && e.allowTouchMove && n.touchStartPreventDefault;
1641
- (n.touchStartForcePreventDefault || x) && !o.isContentEditable && s.preventDefault(), n.freeMode && n.freeMode.enabled && e.freeMode && e.animating && !n.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", s);
1642
- }
1643
- function is(t) {
1644
- const e = re(), i = this, s = i.touchEventsData, {
1645
- params: r,
1646
- touches: n,
1637
+ }), l.startX = w, l.startY = m, n.touchStartTime = Se(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (n.allowThresholdMove = !1);
1638
+ let b = !0;
1639
+ o.matches(n.focusableElements) && (b = !1, o.nodeName === "SELECT" && (n.isTouched = !1)), i.activeElement && i.activeElement.matches(n.focusableElements) && i.activeElement !== o && (s.pointerType === "mouse" || s.pointerType !== "mouse" && !o.matches(n.focusableElements)) && i.activeElement.blur();
1640
+ const x = b && e.allowTouchMove && r.touchStartPreventDefault;
1641
+ (r.touchStartForcePreventDefault || x) && !o.isContentEditable && s.preventDefault(), r.freeMode && r.freeMode.enabled && e.freeMode && e.animating && !r.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", s);
1642
+ }
1643
+ function os(t) {
1644
+ const e = le(), i = this, s = i.touchEventsData, {
1645
+ params: n,
1646
+ touches: r,
1647
1647
  rtlTranslate: l,
1648
1648
  enabled: a
1649
1649
  } = i;
1650
- if (!a || !r.simulateTouch && t.pointerType === "mouse") return;
1650
+ if (!a || !n.simulateTouch && t.pointerType === "mouse") return;
1651
1651
  let o = t;
1652
1652
  if (o.originalEvent && (o = o.originalEvent), o.type === "pointermove" && (s.touchId !== null || o.pointerId !== s.pointerId))
1653
1653
  return;
1654
- let d;
1654
+ let c;
1655
1655
  if (o.type === "touchmove") {
1656
- if (d = [...o.changedTouches].find((y) => y.identifier === s.touchId), !d || d.identifier !== s.touchId) return;
1656
+ if (c = [...o.changedTouches].find((y) => y.identifier === s.touchId), !c || c.identifier !== s.touchId) return;
1657
1657
  } else
1658
- d = o;
1658
+ c = o;
1659
1659
  if (!s.isTouched) {
1660
1660
  s.startMoving && s.isScrolling && i.emit("touchMoveOpposite", o);
1661
1661
  return;
1662
1662
  }
1663
- const c = d.pageX, p = d.pageY;
1663
+ const d = c.pageX, p = c.pageY;
1664
1664
  if (o.preventedByNestedSwiper) {
1665
- n.startX = c, n.startY = p;
1665
+ r.startX = d, r.startY = p;
1666
1666
  return;
1667
1667
  }
1668
1668
  if (!i.allowTouchMove) {
1669
- o.target.matches(s.focusableElements) || (i.allowClick = !1), s.isTouched && (Object.assign(n, {
1670
- startX: c,
1669
+ o.target.matches(s.focusableElements) || (i.allowClick = !1), s.isTouched && (Object.assign(r, {
1670
+ startX: d,
1671
1671
  startY: p,
1672
- currentX: c,
1672
+ currentX: d,
1673
1673
  currentY: p
1674
- }), s.touchStartTime = he());
1674
+ }), s.touchStartTime = Se());
1675
1675
  return;
1676
1676
  }
1677
- if (r.touchReleaseOnEdges && !r.loop)
1677
+ if (n.touchReleaseOnEdges && !n.loop)
1678
1678
  if (i.isVertical()) {
1679
- if (p < n.startY && i.translate <= i.maxTranslate() || p > n.startY && i.translate >= i.minTranslate()) {
1679
+ if (p < r.startY && i.translate <= i.maxTranslate() || p > r.startY && i.translate >= i.minTranslate()) {
1680
1680
  s.isTouched = !1, s.isMoved = !1;
1681
1681
  return;
1682
1682
  }
1683
1683
  } else {
1684
- if (l && (c > n.startX && -i.translate <= i.maxTranslate() || c < n.startX && -i.translate >= i.minTranslate()))
1684
+ if (l && (d > r.startX && -i.translate <= i.maxTranslate() || d < r.startX && -i.translate >= i.minTranslate()))
1685
1685
  return;
1686
- if (!l && (c < n.startX && i.translate <= i.maxTranslate() || c > n.startX && i.translate >= i.minTranslate()))
1686
+ if (!l && (d < r.startX && i.translate <= i.maxTranslate() || d > r.startX && i.translate >= i.minTranslate()))
1687
1687
  return;
1688
1688
  }
1689
1689
  if (e.activeElement && e.activeElement.matches(s.focusableElements) && e.activeElement !== o.target && o.pointerType !== "mouse" && e.activeElement.blur(), e.activeElement && o.target === e.activeElement && o.target.matches(s.focusableElements)) {
1690
1690
  s.isMoved = !0, i.allowClick = !1;
1691
1691
  return;
1692
1692
  }
1693
- s.allowTouchCallbacks && i.emit("touchMove", o), n.previousX = n.currentX, n.previousY = n.currentY, n.currentX = c, n.currentY = p;
1694
- const h = n.currentX - n.startX, v = n.currentY - n.startY;
1695
- if (i.params.threshold && Math.sqrt(h ** 2 + v ** 2) < i.params.threshold) return;
1693
+ s.allowTouchCallbacks && i.emit("touchMove", o), r.previousX = r.currentX, r.previousY = r.currentY, r.currentX = d, r.currentY = p;
1694
+ const h = r.currentX - r.startX, w = r.currentY - r.startY;
1695
+ if (i.params.threshold && Math.sqrt(h ** 2 + w ** 2) < i.params.threshold) return;
1696
1696
  if (typeof s.isScrolling > "u") {
1697
1697
  let y;
1698
- i.isHorizontal() && n.currentY === n.startY || i.isVertical() && n.currentX === n.startX ? s.isScrolling = !1 : h * h + v * v >= 25 && (y = Math.atan2(Math.abs(v), Math.abs(h)) * 180 / Math.PI, s.isScrolling = i.isHorizontal() ? y > r.touchAngle : 90 - y > r.touchAngle);
1698
+ i.isHorizontal() && r.currentY === r.startY || i.isVertical() && r.currentX === r.startX ? s.isScrolling = !1 : h * h + w * w >= 25 && (y = Math.atan2(Math.abs(w), Math.abs(h)) * 180 / Math.PI, s.isScrolling = i.isHorizontal() ? y > n.touchAngle : 90 - y > n.touchAngle);
1699
1699
  }
1700
- if (s.isScrolling && i.emit("touchMoveOpposite", o), typeof s.startMoving > "u" && (n.currentX !== n.startX || n.currentY !== n.startY) && (s.startMoving = !0), s.isScrolling || o.type === "touchmove" && s.preventTouchMoveFromPointerMove) {
1700
+ if (s.isScrolling && i.emit("touchMoveOpposite", o), typeof s.startMoving > "u" && (r.currentX !== r.startX || r.currentY !== r.startY) && (s.startMoving = !0), s.isScrolling || o.type === "touchmove" && s.preventTouchMoveFromPointerMove) {
1701
1701
  s.isTouched = !1;
1702
1702
  return;
1703
1703
  }
1704
1704
  if (!s.startMoving)
1705
1705
  return;
1706
- i.allowClick = !1, !r.cssMode && o.cancelable && o.preventDefault(), r.touchMoveStopPropagation && !r.nested && o.stopPropagation();
1707
- let m = i.isHorizontal() ? h : v, S = i.isHorizontal() ? n.currentX - n.previousX : n.currentY - n.previousY;
1708
- r.oneWayMovement && (m = Math.abs(m) * (l ? 1 : -1), S = Math.abs(S) * (l ? 1 : -1)), n.diff = m, m *= r.touchRatio, l && (m = -m, S = -S);
1706
+ i.allowClick = !1, !n.cssMode && o.cancelable && o.preventDefault(), n.touchMoveStopPropagation && !n.nested && o.stopPropagation();
1707
+ let m = i.isHorizontal() ? h : w, b = i.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
1708
+ n.oneWayMovement && (m = Math.abs(m) * (l ? 1 : -1), b = Math.abs(b) * (l ? 1 : -1)), r.diff = m, m *= n.touchRatio, l && (m = -m, b = -b);
1709
1709
  const x = i.touchesDirection;
1710
- i.swipeDirection = m > 0 ? "prev" : "next", i.touchesDirection = S > 0 ? "prev" : "next";
1711
- const g = i.params.loop && !r.cssMode, u = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
1710
+ i.swipeDirection = m > 0 ? "prev" : "next", i.touchesDirection = b > 0 ? "prev" : "next";
1711
+ const g = i.params.loop && !n.cssMode, u = i.touchesDirection === "next" && i.allowSlideNext || i.touchesDirection === "prev" && i.allowSlidePrev;
1712
1712
  if (!s.isMoved) {
1713
1713
  if (g && u && i.loopFix({
1714
1714
  direction: i.swipeDirection
@@ -1722,50 +1722,50 @@ function is(t) {
1722
1722
  });
1723
1723
  i.wrapperEl.dispatchEvent(y);
1724
1724
  }
1725
- s.allowMomentumBounce = !1, r.grabCursor && (i.allowSlideNext === !0 || i.allowSlidePrev === !0) && i.setGrabCursor(!0), i.emit("sliderFirstMove", o);
1725
+ s.allowMomentumBounce = !1, n.grabCursor && (i.allowSlideNext === !0 || i.allowSlidePrev === !0) && i.setGrabCursor(!0), i.emit("sliderFirstMove", o);
1726
1726
  }
1727
- if ((/* @__PURE__ */ new Date()).getTime(), r._loopSwapReset !== !1 && s.isMoved && s.allowThresholdMove && x !== i.touchesDirection && g && u && Math.abs(m) >= 1) {
1728
- Object.assign(n, {
1729
- startX: c,
1727
+ if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && s.isMoved && s.allowThresholdMove && x !== i.touchesDirection && g && u && Math.abs(m) >= 1) {
1728
+ Object.assign(r, {
1729
+ startX: d,
1730
1730
  startY: p,
1731
- currentX: c,
1731
+ currentX: d,
1732
1732
  currentY: p,
1733
1733
  startTranslate: s.currentTranslate
1734
1734
  }), s.loopSwapReset = !0, s.startTranslate = s.currentTranslate;
1735
1735
  return;
1736
1736
  }
1737
1737
  i.emit("sliderMove", o), s.isMoved = !0, s.currentTranslate = m + s.startTranslate;
1738
- let f = !0, w = r.resistanceRatio;
1739
- if (r.touchReleaseOnEdges && (w = 0), m > 0 ? (g && u && s.allowThresholdMove && s.currentTranslate > (r.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] - (r.slidesPerView !== "auto" && i.slides.length - r.slidesPerView >= 2 ? i.slidesSizesGrid[i.activeIndex + 1] + i.params.spaceBetween : 0) - i.params.spaceBetween : i.minTranslate()) && i.loopFix({
1738
+ let f = !0, S = n.resistanceRatio;
1739
+ if (n.touchReleaseOnEdges && (S = 0), m > 0 ? (g && u && s.allowThresholdMove && s.currentTranslate > (n.centeredSlides ? i.minTranslate() - i.slidesSizesGrid[i.activeIndex + 1] - (n.slidesPerView !== "auto" && i.slides.length - n.slidesPerView >= 2 ? i.slidesSizesGrid[i.activeIndex + 1] + i.params.spaceBetween : 0) - i.params.spaceBetween : i.minTranslate()) && i.loopFix({
1740
1740
  direction: "prev",
1741
1741
  setTranslate: !0,
1742
1742
  activeSlideIndex: 0
1743
- }), s.currentTranslate > i.minTranslate() && (f = !1, r.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + m) ** w))) : m < 0 && (g && u && s.allowThresholdMove && s.currentTranslate < (r.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween + (r.slidesPerView !== "auto" && i.slides.length - r.slidesPerView >= 2 ? i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween : 0) : i.maxTranslate()) && i.loopFix({
1743
+ }), s.currentTranslate > i.minTranslate() && (f = !1, n.resistance && (s.currentTranslate = i.minTranslate() - 1 + (-i.minTranslate() + s.startTranslate + m) ** S))) : m < 0 && (g && u && s.allowThresholdMove && s.currentTranslate < (n.centeredSlides ? i.maxTranslate() + i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween + (n.slidesPerView !== "auto" && i.slides.length - n.slidesPerView >= 2 ? i.slidesSizesGrid[i.slidesSizesGrid.length - 1] + i.params.spaceBetween : 0) : i.maxTranslate()) && i.loopFix({
1744
1744
  direction: "next",
1745
1745
  setTranslate: !0,
1746
- activeSlideIndex: i.slides.length - (r.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(r.slidesPerView, 10)))
1747
- }), s.currentTranslate < i.maxTranslate() && (f = !1, r.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - m) ** w))), f && (o.preventedByNestedSwiper = !0), !i.allowSlideNext && i.swipeDirection === "next" && s.currentTranslate < s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && i.swipeDirection === "prev" && s.currentTranslate > s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && !i.allowSlideNext && (s.currentTranslate = s.startTranslate), r.threshold > 0)
1748
- if (Math.abs(m) > r.threshold || s.allowThresholdMove) {
1746
+ activeSlideIndex: i.slides.length - (n.slidesPerView === "auto" ? i.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
1747
+ }), s.currentTranslate < i.maxTranslate() && (f = !1, n.resistance && (s.currentTranslate = i.maxTranslate() + 1 - (i.maxTranslate() - s.startTranslate - m) ** S))), f && (o.preventedByNestedSwiper = !0), !i.allowSlideNext && i.swipeDirection === "next" && s.currentTranslate < s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && i.swipeDirection === "prev" && s.currentTranslate > s.startTranslate && (s.currentTranslate = s.startTranslate), !i.allowSlidePrev && !i.allowSlideNext && (s.currentTranslate = s.startTranslate), n.threshold > 0)
1748
+ if (Math.abs(m) > n.threshold || s.allowThresholdMove) {
1749
1749
  if (!s.allowThresholdMove) {
1750
- s.allowThresholdMove = !0, n.startX = n.currentX, n.startY = n.currentY, s.currentTranslate = s.startTranslate, n.diff = i.isHorizontal() ? n.currentX - n.startX : n.currentY - n.startY;
1750
+ s.allowThresholdMove = !0, r.startX = r.currentX, r.startY = r.currentY, s.currentTranslate = s.startTranslate, r.diff = i.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY;
1751
1751
  return;
1752
1752
  }
1753
1753
  } else {
1754
1754
  s.currentTranslate = s.startTranslate;
1755
1755
  return;
1756
1756
  }
1757
- !r.followFinger || r.cssMode || ((r.freeMode && r.freeMode.enabled && i.freeMode || r.watchSlidesProgress) && (i.updateActiveIndex(), i.updateSlidesClasses()), r.freeMode && r.freeMode.enabled && i.freeMode && i.freeMode.onTouchMove(), i.updateProgress(s.currentTranslate), i.setTranslate(s.currentTranslate));
1757
+ !n.followFinger || n.cssMode || ((n.freeMode && n.freeMode.enabled && i.freeMode || n.watchSlidesProgress) && (i.updateActiveIndex(), i.updateSlidesClasses()), n.freeMode && n.freeMode.enabled && i.freeMode && i.freeMode.onTouchMove(), i.updateProgress(s.currentTranslate), i.setTranslate(s.currentTranslate));
1758
1758
  }
1759
- function ss(t) {
1759
+ function ds(t) {
1760
1760
  const e = this, i = e.touchEventsData;
1761
1761
  let s = t;
1762
1762
  s.originalEvent && (s = s.originalEvent);
1763
- let r;
1763
+ let n;
1764
1764
  if (s.type === "touchend" || s.type === "touchcancel") {
1765
- if (r = [...s.changedTouches].find((y) => y.identifier === i.touchId), !r || r.identifier !== i.touchId) return;
1765
+ if (n = [...s.changedTouches].find((y) => y.identifier === i.touchId), !n || n.identifier !== i.touchId) return;
1766
1766
  } else {
1767
1767
  if (i.touchId !== null || s.pointerId !== i.pointerId) return;
1768
- r = s;
1768
+ n = s;
1769
1769
  }
1770
1770
  if (["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(s.type) && !(["pointercancel", "contextmenu"].includes(s.type) && (e.browser.isSafari || e.browser.isWebView)))
1771
1771
  return;
@@ -1774,60 +1774,60 @@ function ss(t) {
1774
1774
  params: l,
1775
1775
  touches: a,
1776
1776
  rtlTranslate: o,
1777
- slidesGrid: d,
1778
- enabled: c
1777
+ slidesGrid: c,
1778
+ enabled: d
1779
1779
  } = e;
1780
- if (!c || !l.simulateTouch && s.pointerType === "mouse") return;
1780
+ if (!d || !l.simulateTouch && s.pointerType === "mouse") return;
1781
1781
  if (i.allowTouchCallbacks && e.emit("touchEnd", s), i.allowTouchCallbacks = !1, !i.isTouched) {
1782
1782
  i.isMoved && l.grabCursor && e.setGrabCursor(!1), i.isMoved = !1, i.startMoving = !1;
1783
1783
  return;
1784
1784
  }
1785
1785
  l.grabCursor && i.isMoved && i.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
1786
- const p = he(), h = p - i.touchStartTime;
1786
+ const p = Se(), h = p - i.touchStartTime;
1787
1787
  if (e.allowClick) {
1788
1788
  const y = s.path || s.composedPath && s.composedPath();
1789
1789
  e.updateClickedSlide(y && y[0] || s.target, y), e.emit("tap click", s), h < 300 && p - i.lastClickTime < 300 && e.emit("doubleTap doubleClick", s);
1790
1790
  }
1791
- if (i.lastClickTime = he(), Ze(() => {
1791
+ if (i.lastClickTime = Se(), it(() => {
1792
1792
  e.destroyed || (e.allowClick = !0);
1793
1793
  }), !i.isTouched || !i.isMoved || !e.swipeDirection || a.diff === 0 && !i.loopSwapReset || i.currentTranslate === i.startTranslate && !i.loopSwapReset) {
1794
1794
  i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
1795
1795
  return;
1796
1796
  }
1797
1797
  i.isTouched = !1, i.isMoved = !1, i.startMoving = !1;
1798
- let v;
1799
- if (l.followFinger ? v = o ? e.translate : -e.translate : v = -i.currentTranslate, l.cssMode)
1798
+ let w;
1799
+ if (l.followFinger ? w = o ? e.translate : -e.translate : w = -i.currentTranslate, l.cssMode)
1800
1800
  return;
1801
1801
  if (l.freeMode && l.freeMode.enabled) {
1802
1802
  e.freeMode.onTouchEnd({
1803
- currentPos: v
1803
+ currentPos: w
1804
1804
  });
1805
1805
  return;
1806
1806
  }
1807
- const m = v >= -e.maxTranslate() && !e.params.loop;
1808
- let S = 0, x = e.slidesSizesGrid[0];
1809
- for (let y = 0; y < d.length; y += y < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
1807
+ const m = w >= -e.maxTranslate() && !e.params.loop;
1808
+ let b = 0, x = e.slidesSizesGrid[0];
1809
+ for (let y = 0; y < c.length; y += y < l.slidesPerGroupSkip ? 1 : l.slidesPerGroup) {
1810
1810
  const P = y < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1811
- typeof d[y + P] < "u" ? (m || v >= d[y] && v < d[y + P]) && (S = y, x = d[y + P] - d[y]) : (m || v >= d[y]) && (S = y, x = d[d.length - 1] - d[d.length - 2]);
1811
+ typeof c[y + P] < "u" ? (m || w >= c[y] && w < c[y + P]) && (b = y, x = c[y + P] - c[y]) : (m || w >= c[y]) && (b = y, x = c[c.length - 1] - c[c.length - 2]);
1812
1812
  }
1813
1813
  let g = null, u = null;
1814
1814
  l.rewind && (e.isBeginning ? u = l.virtual && l.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (g = 0));
1815
- const f = (v - d[S]) / x, w = S < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1815
+ const f = (w - c[b]) / x, S = b < l.slidesPerGroupSkip - 1 ? 1 : l.slidesPerGroup;
1816
1816
  if (h > l.longSwipesMs) {
1817
1817
  if (!l.longSwipes) {
1818
1818
  e.slideTo(e.activeIndex);
1819
1819
  return;
1820
1820
  }
1821
- e.swipeDirection === "next" && (f >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? g : S + w) : e.slideTo(S)), e.swipeDirection === "prev" && (f > 1 - l.longSwipesRatio ? e.slideTo(S + w) : u !== null && f < 0 && Math.abs(f) > l.longSwipesRatio ? e.slideTo(u) : e.slideTo(S));
1821
+ e.swipeDirection === "next" && (f >= l.longSwipesRatio ? e.slideTo(l.rewind && e.isEnd ? g : b + S) : e.slideTo(b)), e.swipeDirection === "prev" && (f > 1 - l.longSwipesRatio ? e.slideTo(b + S) : u !== null && f < 0 && Math.abs(f) > l.longSwipesRatio ? e.slideTo(u) : e.slideTo(b));
1822
1822
  } else {
1823
1823
  if (!l.shortSwipes) {
1824
1824
  e.slideTo(e.activeIndex);
1825
1825
  return;
1826
1826
  }
1827
- e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(S + w) : e.slideTo(S) : (e.swipeDirection === "next" && e.slideTo(g !== null ? g : S + w), e.swipeDirection === "prev" && e.slideTo(u !== null ? u : S));
1827
+ e.navigation && (s.target === e.navigation.nextEl || s.target === e.navigation.prevEl) ? s.target === e.navigation.nextEl ? e.slideTo(b + S) : e.slideTo(b) : (e.swipeDirection === "next" && e.slideTo(g !== null ? g : b + S), e.swipeDirection === "prev" && e.slideTo(u !== null ? u : b));
1828
1828
  }
1829
1829
  }
1830
- function je() {
1830
+ function Ye() {
1831
1831
  const t = this, {
1832
1832
  params: e,
1833
1833
  el: i
@@ -1836,20 +1836,20 @@ function je() {
1836
1836
  e.breakpoints && t.setBreakpoint();
1837
1837
  const {
1838
1838
  allowSlideNext: s,
1839
- allowSlidePrev: r,
1840
- snapGrid: n
1839
+ allowSlidePrev: n,
1840
+ snapGrid: r
1841
1841
  } = t, l = t.virtual && t.params.virtual.enabled;
1842
1842
  t.allowSlideNext = !0, t.allowSlidePrev = !0, t.updateSize(), t.updateSlides(), t.updateSlidesClasses();
1843
1843
  const a = l && e.loop;
1844
1844
  (e.slidesPerView === "auto" || e.slidesPerView > 1) && t.isEnd && !t.isBeginning && !t.params.centeredSlides && !a ? t.slideTo(t.slides.length - 1, 0, !1, !0) : t.params.loop && !l ? t.slideToLoop(t.realIndex, 0, !1, !0) : t.slideTo(t.activeIndex, 0, !1, !0), t.autoplay && t.autoplay.running && t.autoplay.paused && (clearTimeout(t.autoplay.resizeTimeout), t.autoplay.resizeTimeout = setTimeout(() => {
1845
1845
  t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
1846
- }, 500)), t.allowSlidePrev = r, t.allowSlideNext = s, t.params.watchOverflow && n !== t.snapGrid && t.checkOverflow();
1846
+ }, 500)), t.allowSlidePrev = n, t.allowSlideNext = s, t.params.watchOverflow && r !== t.snapGrid && t.checkOverflow();
1847
1847
  }
1848
- function ns(t) {
1848
+ function cs(t) {
1849
1849
  const e = this;
1850
1850
  e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
1851
1851
  }
1852
- function rs() {
1852
+ function us() {
1853
1853
  const t = this, {
1854
1854
  wrapperEl: e,
1855
1855
  rtlTranslate: i,
@@ -1857,31 +1857,31 @@ function rs() {
1857
1857
  } = t;
1858
1858
  if (!s) return;
1859
1859
  t.previousTranslate = t.translate, t.isHorizontal() ? t.translate = -e.scrollLeft : t.translate = -e.scrollTop, t.translate === 0 && (t.translate = 0), t.updateActiveIndex(), t.updateSlidesClasses();
1860
- let r;
1861
- const n = t.maxTranslate() - t.minTranslate();
1862
- n === 0 ? r = 0 : r = (t.translate - t.minTranslate()) / n, r !== t.progress && t.updateProgress(i ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
1860
+ let n;
1861
+ const r = t.maxTranslate() - t.minTranslate();
1862
+ r === 0 ? n = 0 : n = (t.translate - t.minTranslate()) / r, n !== t.progress && t.updateProgress(i ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
1863
1863
  }
1864
- function as(t) {
1864
+ function fs(t) {
1865
1865
  const e = this;
1866
- me(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
1866
+ we(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
1867
1867
  }
1868
- function ls() {
1868
+ function ps() {
1869
1869
  const t = this;
1870
1870
  t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
1871
1871
  }
1872
- const nt = (t, e) => {
1873
- const i = re(), {
1872
+ const dt = (t, e) => {
1873
+ const i = le(), {
1874
1874
  params: s,
1875
- el: r,
1876
- wrapperEl: n,
1875
+ el: n,
1876
+ wrapperEl: r,
1877
1877
  device: l
1878
- } = t, a = !!s.nested, o = e === "on" ? "addEventListener" : "removeEventListener", d = e;
1879
- !r || typeof r == "string" || (i[o]("touchstart", t.onDocumentTouchStart, {
1878
+ } = t, a = !!s.nested, o = e === "on" ? "addEventListener" : "removeEventListener", c = e;
1879
+ !n || typeof n == "string" || (i[o]("touchstart", t.onDocumentTouchStart, {
1880
1880
  passive: !1,
1881
1881
  capture: a
1882
- }), r[o]("touchstart", t.onTouchStart, {
1882
+ }), n[o]("touchstart", t.onTouchStart, {
1883
1883
  passive: !1
1884
- }), r[o]("pointerdown", t.onTouchStart, {
1884
+ }), n[o]("pointerdown", t.onTouchStart, {
1885
1885
  passive: !1
1886
1886
  }), i[o]("touchmove", t.onTouchMove, {
1887
1887
  passive: !1,
@@ -1903,57 +1903,57 @@ const nt = (t, e) => {
1903
1903
  passive: !0
1904
1904
  }), i[o]("contextmenu", t.onTouchEnd, {
1905
1905
  passive: !0
1906
- }), (s.preventClicks || s.preventClicksPropagation) && r[o]("click", t.onClick, !0), s.cssMode && n[o]("scroll", t.onScroll), s.updateOnWindowResize ? t[d](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", je, !0) : t[d]("observerUpdate", je, !0), r[o]("load", t.onLoad, {
1906
+ }), (s.preventClicks || s.preventClicksPropagation) && n[o]("click", t.onClick, !0), s.cssMode && r[o]("scroll", t.onScroll), s.updateOnWindowResize ? t[c](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", Ye, !0) : t[c]("observerUpdate", Ye, !0), n[o]("load", t.onLoad, {
1907
1907
  capture: !0
1908
1908
  }));
1909
1909
  };
1910
- function os() {
1910
+ function ms() {
1911
1911
  const t = this, {
1912
1912
  params: e
1913
1913
  } = t;
1914
- t.onTouchStart = ts.bind(t), t.onTouchMove = is.bind(t), t.onTouchEnd = ss.bind(t), t.onDocumentTouchStart = ls.bind(t), e.cssMode && (t.onScroll = rs.bind(t)), t.onClick = ns.bind(t), t.onLoad = as.bind(t), nt(t, "on");
1914
+ t.onTouchStart = ls.bind(t), t.onTouchMove = os.bind(t), t.onTouchEnd = ds.bind(t), t.onDocumentTouchStart = ps.bind(t), e.cssMode && (t.onScroll = us.bind(t)), t.onClick = cs.bind(t), t.onLoad = fs.bind(t), dt(t, "on");
1915
1915
  }
1916
- function ds() {
1917
- nt(this, "off");
1916
+ function hs() {
1917
+ dt(this, "off");
1918
1918
  }
1919
- var cs = {
1920
- attachEvents: os,
1921
- detachEvents: ds
1919
+ var gs = {
1920
+ attachEvents: ms,
1921
+ detachEvents: hs
1922
1922
  };
1923
- const We = (t, e) => t.grid && e.grid && e.grid.rows > 1;
1924
- function us() {
1923
+ const Ue = (t, e) => t.grid && e.grid && e.grid.rows > 1;
1924
+ function vs() {
1925
1925
  const t = this, {
1926
1926
  realIndex: e,
1927
1927
  initialized: i,
1928
1928
  params: s,
1929
- el: r
1930
- } = t, n = s.breakpoints;
1931
- if (!n || n && Object.keys(n).length === 0) return;
1932
- const l = re(), a = s.breakpointsBase === "window" || !s.breakpointsBase ? s.breakpointsBase : "container", o = ["window", "container"].includes(s.breakpointsBase) || !s.breakpointsBase ? t.el : l.querySelector(s.breakpointsBase), d = t.getBreakpoint(n, a, o);
1933
- if (!d || t.currentBreakpoint === d) return;
1934
- const p = (d in n ? n[d] : void 0) || t.originalParams, h = We(t, s), v = We(t, p), m = t.params.grabCursor, S = p.grabCursor, x = s.enabled;
1935
- h && !v ? (r.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !h && v && (r.classList.add(`${s.containerModifierClass}grid`), (p.grid.fill && p.grid.fill === "column" || !p.grid.fill && s.grid.fill === "column") && r.classList.add(`${s.containerModifierClass}grid-column`), t.emitContainerClasses()), m && !S ? t.unsetGrabCursor() : !m && S && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((P) => {
1929
+ el: n
1930
+ } = t, r = s.breakpoints;
1931
+ if (!r || r && Object.keys(r).length === 0) return;
1932
+ const l = le(), a = s.breakpointsBase === "window" || !s.breakpointsBase ? s.breakpointsBase : "container", o = ["window", "container"].includes(s.breakpointsBase) || !s.breakpointsBase ? t.el : l.querySelector(s.breakpointsBase), c = t.getBreakpoint(r, a, o);
1933
+ if (!c || t.currentBreakpoint === c) return;
1934
+ const p = (c in r ? r[c] : void 0) || t.originalParams, h = Ue(t, s), w = Ue(t, p), m = t.params.grabCursor, b = p.grabCursor, x = s.enabled;
1935
+ h && !w ? (n.classList.remove(`${s.containerModifierClass}grid`, `${s.containerModifierClass}grid-column`), t.emitContainerClasses()) : !h && w && (n.classList.add(`${s.containerModifierClass}grid`), (p.grid.fill && p.grid.fill === "column" || !p.grid.fill && s.grid.fill === "column") && n.classList.add(`${s.containerModifierClass}grid-column`), t.emitContainerClasses()), m && !b ? t.unsetGrabCursor() : !m && b && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((P) => {
1936
1936
  if (typeof p[P] > "u") return;
1937
1937
  const I = s[P] && s[P].enabled, M = p[P] && p[P].enabled;
1938
1938
  I && !M && t[P].disable(), !I && M && t[P].enable();
1939
1939
  });
1940
1940
  const g = p.direction && p.direction !== s.direction, u = s.loop && (p.slidesPerView !== s.slidesPerView || g), f = s.loop;
1941
- g && i && t.changeDirection(), R(t.params, p);
1942
- const w = t.params.enabled, y = t.params.loop;
1941
+ g && i && t.changeDirection(), W(t.params, p);
1942
+ const S = t.params.enabled, y = t.params.loop;
1943
1943
  Object.assign(t, {
1944
1944
  allowTouchMove: t.params.allowTouchMove,
1945
1945
  allowSlideNext: t.params.allowSlideNext,
1946
1946
  allowSlidePrev: t.params.allowSlidePrev
1947
- }), x && !w ? t.disable() : !x && w && t.enable(), t.currentBreakpoint = d, t.emit("_beforeBreakpoint", p), i && (u ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !f && y ? (t.loopCreate(e), t.updateSlides()) : f && !y && t.loopDestroy()), t.emit("breakpoint", p);
1947
+ }), x && !S ? t.disable() : !x && S && t.enable(), t.currentBreakpoint = c, t.emit("_beforeBreakpoint", p), i && (u ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !f && y ? (t.loopCreate(e), t.updateSlides()) : f && !y && t.loopDestroy()), t.emit("breakpoint", p);
1948
1948
  }
1949
- function fs(t, e, i) {
1949
+ function ws(t, e, i) {
1950
1950
  if (e === void 0 && (e = "window"), !t || e === "container" && !i) return;
1951
1951
  let s = !1;
1952
- const r = F(), n = e === "window" ? r.innerHeight : i.clientHeight, l = Object.keys(t).map((a) => {
1952
+ const n = j(), r = e === "window" ? n.innerHeight : i.clientHeight, l = Object.keys(t).map((a) => {
1953
1953
  if (typeof a == "string" && a.indexOf("@") === 0) {
1954
1954
  const o = parseFloat(a.substr(1));
1955
1955
  return {
1956
- value: n * o,
1956
+ value: r * o,
1957
1957
  point: a
1958
1958
  };
1959
1959
  }
@@ -1966,32 +1966,32 @@ function fs(t, e, i) {
1966
1966
  for (let a = 0; a < l.length; a += 1) {
1967
1967
  const {
1968
1968
  point: o,
1969
- value: d
1969
+ value: c
1970
1970
  } = l[a];
1971
- e === "window" ? r.matchMedia(`(min-width: ${d}px)`).matches && (s = o) : d <= i.clientWidth && (s = o);
1971
+ e === "window" ? n.matchMedia(`(min-width: ${c}px)`).matches && (s = o) : c <= i.clientWidth && (s = o);
1972
1972
  }
1973
1973
  return s || "max";
1974
1974
  }
1975
- var ps = {
1976
- setBreakpoint: us,
1977
- getBreakpoint: fs
1975
+ var Ss = {
1976
+ setBreakpoint: vs,
1977
+ getBreakpoint: ws
1978
1978
  };
1979
- function ms(t, e) {
1979
+ function bs(t, e) {
1980
1980
  const i = [];
1981
1981
  return t.forEach((s) => {
1982
- typeof s == "object" ? Object.keys(s).forEach((r) => {
1983
- s[r] && i.push(e + r);
1982
+ typeof s == "object" ? Object.keys(s).forEach((n) => {
1983
+ s[n] && i.push(e + n);
1984
1984
  }) : typeof s == "string" && i.push(e + s);
1985
1985
  }), i;
1986
1986
  }
1987
- function hs() {
1987
+ function ys() {
1988
1988
  const t = this, {
1989
1989
  classNames: e,
1990
1990
  params: i,
1991
1991
  rtl: s,
1992
- el: r,
1993
- device: n
1994
- } = t, l = ms(["initialized", i.direction, {
1992
+ el: n,
1993
+ device: r
1994
+ } = t, l = bs(["initialized", i.direction, {
1995
1995
  "free-mode": t.params.freeMode && i.freeMode.enabled
1996
1996
  }, {
1997
1997
  autoheight: i.autoHeight
@@ -2002,9 +2002,9 @@ function hs() {
2002
2002
  }, {
2003
2003
  "grid-column": i.grid && i.grid.rows > 1 && i.grid.fill === "column"
2004
2004
  }, {
2005
- android: n.android
2005
+ android: r.android
2006
2006
  }, {
2007
- ios: n.ios
2007
+ ios: r.ios
2008
2008
  }, {
2009
2009
  "css-mode": i.cssMode
2010
2010
  }, {
@@ -2012,20 +2012,20 @@ function hs() {
2012
2012
  }, {
2013
2013
  "watch-progress": i.watchSlidesProgress
2014
2014
  }], i.containerModifierClass);
2015
- e.push(...l), r.classList.add(...e), t.emitContainerClasses();
2015
+ e.push(...l), n.classList.add(...e), t.emitContainerClasses();
2016
2016
  }
2017
- function gs() {
2017
+ function xs() {
2018
2018
  const t = this, {
2019
2019
  el: e,
2020
2020
  classNames: i
2021
2021
  } = t;
2022
2022
  !e || typeof e == "string" || (e.classList.remove(...i), t.emitContainerClasses());
2023
2023
  }
2024
- var vs = {
2025
- addClasses: hs,
2026
- removeClasses: gs
2024
+ var Ts = {
2025
+ addClasses: ys,
2026
+ removeClasses: xs
2027
2027
  };
2028
- function ws() {
2028
+ function Es() {
2029
2029
  const t = this, {
2030
2030
  isLocked: e,
2031
2031
  params: i
@@ -2033,15 +2033,15 @@ function ws() {
2033
2033
  slidesOffsetBefore: s
2034
2034
  } = i;
2035
2035
  if (s) {
2036
- const r = t.slides.length - 1, n = t.slidesGrid[r] + t.slidesSizesGrid[r] + s * 2;
2037
- t.isLocked = t.size > n;
2036
+ const n = t.slides.length - 1, r = t.slidesGrid[n] + t.slidesSizesGrid[n] + s * 2;
2037
+ t.isLocked = t.size > r;
2038
2038
  } else
2039
2039
  t.isLocked = t.snapGrid.length === 1;
2040
2040
  i.allowSlideNext === !0 && (t.allowSlideNext = !t.isLocked), i.allowSlidePrev === !0 && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = !1), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
2041
2041
  }
2042
- var Ss = {
2043
- checkOverflow: ws
2044
- }, Ae = {
2042
+ var Cs = {
2043
+ checkOverflow: Es
2044
+ }, De = {
2045
2045
  init: !0,
2046
2046
  direction: "horizontal",
2047
2047
  oneWayMovement: !1,
@@ -2162,73 +2162,73 @@ var Ss = {
2162
2162
  // Internals
2163
2163
  _emitClasses: !1
2164
2164
  };
2165
- function bs(t, e) {
2165
+ function Ps(t, e) {
2166
2166
  return function(s) {
2167
2167
  s === void 0 && (s = {});
2168
- const r = Object.keys(s)[0], n = s[r];
2169
- if (typeof n != "object" || n === null) {
2170
- R(e, s);
2168
+ const n = Object.keys(s)[0], r = s[n];
2169
+ if (typeof r != "object" || r === null) {
2170
+ W(e, s);
2171
2171
  return;
2172
2172
  }
2173
- if (t[r] === !0 && (t[r] = {
2173
+ if (t[n] === !0 && (t[n] = {
2174
2174
  enabled: !0
2175
- }), r === "navigation" && t[r] && t[r].enabled && !t[r].prevEl && !t[r].nextEl && (t[r].auto = !0), ["pagination", "scrollbar"].indexOf(r) >= 0 && t[r] && t[r].enabled && !t[r].el && (t[r].auto = !0), !(r in t && "enabled" in n)) {
2176
- R(e, s);
2175
+ }), n === "navigation" && t[n] && t[n].enabled && !t[n].prevEl && !t[n].nextEl && (t[n].auto = !0), ["pagination", "scrollbar"].indexOf(n) >= 0 && t[n] && t[n].enabled && !t[n].el && (t[n].auto = !0), !(n in t && "enabled" in r)) {
2176
+ W(e, s);
2177
2177
  return;
2178
2178
  }
2179
- typeof t[r] == "object" && !("enabled" in t[r]) && (t[r].enabled = !0), t[r] || (t[r] = {
2179
+ typeof t[n] == "object" && !("enabled" in t[n]) && (t[n].enabled = !0), t[n] || (t[n] = {
2180
2180
  enabled: !1
2181
- }), R(e, s);
2181
+ }), W(e, s);
2182
2182
  };
2183
2183
  }
2184
- const Pe = {
2185
- eventsEmitter: vi,
2186
- update: Ii,
2187
- translate: Ni,
2188
- transition: Bi,
2189
- slide: qi,
2190
- loop: Ki,
2191
- grabCursor: Ji,
2192
- events: cs,
2193
- breakpoints: ps,
2194
- checkOverflow: Ss,
2195
- classes: vs
2196
- }, Me = {};
2197
- let De = class Q {
2184
+ const _e = {
2185
+ eventsEmitter: Ti,
2186
+ update: Ai,
2187
+ translate: Vi,
2188
+ transition: ji,
2189
+ slide: Qi,
2190
+ loop: is,
2191
+ grabCursor: rs,
2192
+ events: gs,
2193
+ breakpoints: Ss,
2194
+ checkOverflow: Cs,
2195
+ classes: Ts
2196
+ }, Oe = {};
2197
+ let He = class ee {
2198
2198
  constructor() {
2199
2199
  let e, i;
2200
- for (var s = arguments.length, r = new Array(s), n = 0; n < s; n++)
2201
- r[n] = arguments[n];
2202
- r.length === 1 && r[0].constructor && Object.prototype.toString.call(r[0]).slice(8, -1) === "Object" ? i = r[0] : [e, i] = r, i || (i = {}), i = R({}, i), e && !i.el && (i.el = e);
2203
- const l = re();
2200
+ for (var s = arguments.length, n = new Array(s), r = 0; r < s; r++)
2201
+ n[r] = arguments[r];
2202
+ n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? i = n[0] : [e, i] = n, i || (i = {}), i = W({}, i), e && !i.el && (i.el = e);
2203
+ const l = le();
2204
2204
  if (i.el && typeof i.el == "string" && l.querySelectorAll(i.el).length > 1) {
2205
- const c = [];
2205
+ const d = [];
2206
2206
  return l.querySelectorAll(i.el).forEach((p) => {
2207
- const h = R({}, i, {
2207
+ const h = W({}, i, {
2208
2208
  el: p
2209
2209
  });
2210
- c.push(new Q(h));
2211
- }), c;
2210
+ d.push(new ee(h));
2211
+ }), d;
2212
2212
  }
2213
2213
  const a = this;
2214
- a.__swiper__ = !0, a.support = et(), a.device = tt({
2214
+ a.__swiper__ = !0, a.support = rt(), a.device = at({
2215
2215
  userAgent: i.userAgent
2216
- }), a.browser = it(), a.eventsListeners = {}, a.eventsAnyListeners = [], a.modules = [...a.__modules__], i.modules && Array.isArray(i.modules) && a.modules.push(...i.modules);
2216
+ }), a.browser = lt(), a.eventsListeners = {}, a.eventsAnyListeners = [], a.modules = [...a.__modules__], i.modules && Array.isArray(i.modules) && a.modules.push(...i.modules);
2217
2217
  const o = {};
2218
- a.modules.forEach((c) => {
2219
- c({
2218
+ a.modules.forEach((d) => {
2219
+ d({
2220
2220
  params: i,
2221
2221
  swiper: a,
2222
- extendParams: bs(i, o),
2222
+ extendParams: Ps(i, o),
2223
2223
  on: a.on.bind(a),
2224
2224
  once: a.once.bind(a),
2225
2225
  off: a.off.bind(a),
2226
2226
  emit: a.emit.bind(a)
2227
2227
  });
2228
2228
  });
2229
- const d = R({}, Ae, o);
2230
- return a.params = R({}, d, Me, i), a.originalParams = R({}, a.params), a.passedParams = R({}, i), a.params && a.params.on && Object.keys(a.params.on).forEach((c) => {
2231
- a.on(c, a.params.on[c]);
2229
+ const c = W({}, De, o);
2230
+ return a.params = W({}, c, Oe, i), a.originalParams = W({}, a.params), a.passedParams = W({}, i), a.params && a.params.on && Object.keys(a.params.on).forEach((d) => {
2231
+ a.on(d, a.params.on[d]);
2232
2232
  }), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
2233
2233
  enabled: a.params.enabled,
2234
2234
  el: e,
@@ -2318,8 +2318,8 @@ let De = class Q {
2318
2318
  const {
2319
2319
  slidesEl: i,
2320
2320
  params: s
2321
- } = this, r = K(i, `.${s.slideClass}, swiper-slide`), n = we(r[0]);
2322
- return we(e) - n;
2321
+ } = this, n = Q(i, `.${s.slideClass}, swiper-slide`), r = xe(n[0]);
2322
+ return xe(e) - r;
2323
2323
  }
2324
2324
  getSlideIndexByData(e) {
2325
2325
  return this.getSlideIndex(this.slides.find((i) => i.getAttribute("data-swiper-slide-index") * 1 === e));
@@ -2332,7 +2332,7 @@ let De = class Q {
2332
2332
  slidesEl: i,
2333
2333
  params: s
2334
2334
  } = e;
2335
- e.slides = K(i, `.${s.slideClass}, swiper-slide`);
2335
+ e.slides = Q(i, `.${s.slideClass}, swiper-slide`);
2336
2336
  }
2337
2337
  enable() {
2338
2338
  const e = this;
@@ -2345,7 +2345,7 @@ let De = class Q {
2345
2345
  setProgress(e, i) {
2346
2346
  const s = this;
2347
2347
  e = Math.min(Math.max(e, 0), 1);
2348
- const r = s.minTranslate(), l = (s.maxTranslate() - r) * e + r;
2348
+ const n = s.minTranslate(), l = (s.maxTranslate() - n) * e + n;
2349
2349
  s.translateTo(l, typeof i > "u" ? 0 : i), s.updateActiveIndex(), s.updateSlidesClasses();
2350
2350
  }
2351
2351
  emitContainerClasses() {
@@ -2363,38 +2363,38 @@ let De = class Q {
2363
2363
  if (!e.params._emitClasses || !e.el) return;
2364
2364
  const i = [];
2365
2365
  e.slides.forEach((s) => {
2366
- const r = e.getSlideClasses(s);
2366
+ const n = e.getSlideClasses(s);
2367
2367
  i.push({
2368
2368
  slideEl: s,
2369
- classNames: r
2370
- }), e.emit("_slideClass", s, r);
2369
+ classNames: n
2370
+ }), e.emit("_slideClass", s, n);
2371
2371
  }), e.emit("_slideClasses", i);
2372
2372
  }
2373
2373
  slidesPerViewDynamic(e, i) {
2374
2374
  e === void 0 && (e = "current"), i === void 0 && (i = !1);
2375
2375
  const s = this, {
2376
- params: r,
2377
- slides: n,
2376
+ params: n,
2377
+ slides: r,
2378
2378
  slidesGrid: l,
2379
2379
  slidesSizesGrid: a,
2380
2380
  size: o,
2381
- activeIndex: d
2381
+ activeIndex: c
2382
2382
  } = s;
2383
- let c = 1;
2384
- if (typeof r.slidesPerView == "number") return r.slidesPerView;
2385
- if (r.centeredSlides) {
2386
- let p = n[d] ? Math.ceil(n[d].swiperSlideSize) : 0, h;
2387
- for (let v = d + 1; v < n.length; v += 1)
2388
- n[v] && !h && (p += Math.ceil(n[v].swiperSlideSize), c += 1, p > o && (h = !0));
2389
- for (let v = d - 1; v >= 0; v -= 1)
2390
- n[v] && !h && (p += n[v].swiperSlideSize, c += 1, p > o && (h = !0));
2383
+ let d = 1;
2384
+ if (typeof n.slidesPerView == "number") return n.slidesPerView;
2385
+ if (n.centeredSlides) {
2386
+ let p = r[c] ? Math.ceil(r[c].swiperSlideSize) : 0, h;
2387
+ for (let w = c + 1; w < r.length; w += 1)
2388
+ r[w] && !h && (p += Math.ceil(r[w].swiperSlideSize), d += 1, p > o && (h = !0));
2389
+ for (let w = c - 1; w >= 0; w -= 1)
2390
+ r[w] && !h && (p += r[w].swiperSlideSize, d += 1, p > o && (h = !0));
2391
2391
  } else if (e === "current")
2392
- for (let p = d + 1; p < n.length; p += 1)
2393
- (i ? l[p] + a[p] - l[d] < o : l[p] - l[d] < o) && (c += 1);
2392
+ for (let p = c + 1; p < r.length; p += 1)
2393
+ (i ? l[p] + a[p] - l[c] < o : l[p] - l[c] < o) && (d += 1);
2394
2394
  else
2395
- for (let p = d - 1; p >= 0; p -= 1)
2396
- l[d] - l[p] < o && (c += 1);
2397
- return c;
2395
+ for (let p = c - 1; p >= 0; p -= 1)
2396
+ l[c] - l[p] < o && (d += 1);
2397
+ return d;
2398
2398
  }
2399
2399
  update() {
2400
2400
  const e = this;
@@ -2404,30 +2404,30 @@ let De = class Q {
2404
2404
  params: s
2405
2405
  } = e;
2406
2406
  s.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((l) => {
2407
- l.complete && me(e, l);
2407
+ l.complete && we(e, l);
2408
2408
  }), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
2409
- function r() {
2409
+ function n() {
2410
2410
  const l = e.rtlTranslate ? e.translate * -1 : e.translate, a = Math.min(Math.max(l, e.maxTranslate()), e.minTranslate());
2411
2411
  e.setTranslate(a), e.updateActiveIndex(), e.updateSlidesClasses();
2412
2412
  }
2413
- let n;
2413
+ let r;
2414
2414
  if (s.freeMode && s.freeMode.enabled && !s.cssMode)
2415
- r(), s.autoHeight && e.updateAutoHeight();
2415
+ n(), s.autoHeight && e.updateAutoHeight();
2416
2416
  else {
2417
2417
  if ((s.slidesPerView === "auto" || s.slidesPerView > 1) && e.isEnd && !s.centeredSlides) {
2418
2418
  const l = e.virtual && s.virtual.enabled ? e.virtual.slides : e.slides;
2419
- n = e.slideTo(l.length - 1, 0, !1, !0);
2419
+ r = e.slideTo(l.length - 1, 0, !1, !0);
2420
2420
  } else
2421
- n = e.slideTo(e.activeIndex, 0, !1, !0);
2422
- n || r();
2421
+ r = e.slideTo(e.activeIndex, 0, !1, !0);
2422
+ r || n();
2423
2423
  }
2424
2424
  s.watchOverflow && i !== e.snapGrid && e.checkOverflow(), e.emit("update");
2425
2425
  }
2426
2426
  changeDirection(e, i) {
2427
2427
  i === void 0 && (i = !0);
2428
- const s = this, r = s.params.direction;
2429
- return e || (e = r === "horizontal" ? "vertical" : "horizontal"), e === r || e !== "horizontal" && e !== "vertical" || (s.el.classList.remove(`${s.params.containerModifierClass}${r}`), s.el.classList.add(`${s.params.containerModifierClass}${e}`), s.emitContainerClasses(), s.params.direction = e, s.slides.forEach((n) => {
2430
- e === "vertical" ? n.style.width = "" : n.style.height = "";
2428
+ const s = this, n = s.params.direction;
2429
+ return e || (e = n === "horizontal" ? "vertical" : "horizontal"), e === n || e !== "horizontal" && e !== "vertical" || (s.el.classList.remove(`${s.params.containerModifierClass}${n}`), s.el.classList.add(`${s.params.containerModifierClass}${e}`), s.emitContainerClasses(), s.params.direction = e, s.slides.forEach((r) => {
2430
+ e === "vertical" ? r.style.width = "" : r.style.height = "";
2431
2431
  }), s.emit("changeDirection"), i && s.update()), s;
2432
2432
  }
2433
2433
  changeLanguageDirection(e) {
@@ -2441,9 +2441,9 @@ let De = class Q {
2441
2441
  if (typeof s == "string" && (s = document.querySelector(s)), !s)
2442
2442
  return !1;
2443
2443
  s.swiper = i, s.parentNode && s.parentNode.host && s.parentNode.host.nodeName === i.params.swiperElementNodeName.toUpperCase() && (i.isElement = !0);
2444
- const r = () => `.${(i.params.wrapperClass || "").trim().split(" ").join(".")}`;
2445
- let l = s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(r()) : K(s, r())[0];
2446
- return !l && i.params.createElements && (l = ve("div", i.params.wrapperClass), s.append(l), K(s, `.${i.params.slideClass}`).forEach((a) => {
2444
+ const n = () => `.${(i.params.wrapperClass || "").trim().split(" ").join(".")}`;
2445
+ let l = s && s.shadowRoot && s.shadowRoot.querySelector ? s.shadowRoot.querySelector(n()) : Q(s, n())[0];
2446
+ return !l && i.params.createElements && (l = ye("div", i.params.wrapperClass), s.append(l), Q(s, `.${i.params.slideClass}`).forEach((a) => {
2447
2447
  l.append(a);
2448
2448
  })), Object.assign(i, {
2449
2449
  el: s,
@@ -2452,61 +2452,61 @@ let De = class Q {
2452
2452
  hostEl: i.isElement ? s.parentNode.host : s,
2453
2453
  mounted: !0,
2454
2454
  // RTL
2455
- rtl: s.dir.toLowerCase() === "rtl" || ee(s, "direction") === "rtl",
2456
- rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || ee(s, "direction") === "rtl"),
2457
- wrongRTL: ee(l, "display") === "-webkit-box"
2455
+ rtl: s.dir.toLowerCase() === "rtl" || ie(s, "direction") === "rtl",
2456
+ rtlTranslate: i.params.direction === "horizontal" && (s.dir.toLowerCase() === "rtl" || ie(s, "direction") === "rtl"),
2457
+ wrongRTL: ie(l, "display") === "-webkit-box"
2458
2458
  }), !0;
2459
2459
  }
2460
2460
  init(e) {
2461
2461
  const i = this;
2462
2462
  if (i.initialized || i.mount(e) === !1) return i;
2463
2463
  i.emit("beforeInit"), i.params.breakpoints && i.setBreakpoint(), i.addClasses(), i.updateSize(), i.updateSlides(), i.params.watchOverflow && i.checkOverflow(), i.params.grabCursor && i.enabled && i.setGrabCursor(), i.params.loop && i.virtual && i.params.virtual.enabled ? i.slideTo(i.params.initialSlide + i.virtual.slidesBefore, 0, i.params.runCallbacksOnInit, !1, !0) : i.slideTo(i.params.initialSlide, 0, i.params.runCallbacksOnInit, !1, !0), i.params.loop && i.loopCreate(void 0, !0), i.attachEvents();
2464
- const r = [...i.el.querySelectorAll('[loading="lazy"]')];
2465
- return i.isElement && r.push(...i.hostEl.querySelectorAll('[loading="lazy"]')), r.forEach((n) => {
2466
- n.complete ? me(i, n) : n.addEventListener("load", (l) => {
2467
- me(i, l.target);
2464
+ const n = [...i.el.querySelectorAll('[loading="lazy"]')];
2465
+ return i.isElement && n.push(...i.hostEl.querySelectorAll('[loading="lazy"]')), n.forEach((r) => {
2466
+ r.complete ? we(i, r) : r.addEventListener("load", (l) => {
2467
+ we(i, l.target);
2468
2468
  });
2469
- }), ze(i), i.initialized = !0, ze(i), i.emit("init"), i.emit("afterInit"), i;
2469
+ }), Ge(i), i.initialized = !0, Ge(i), i.emit("init"), i.emit("afterInit"), i;
2470
2470
  }
2471
2471
  destroy(e, i) {
2472
2472
  e === void 0 && (e = !0), i === void 0 && (i = !0);
2473
2473
  const s = this, {
2474
- params: r,
2475
- el: n,
2474
+ params: n,
2475
+ el: r,
2476
2476
  wrapperEl: l,
2477
2477
  slides: a
2478
2478
  } = s;
2479
- return typeof s.params > "u" || s.destroyed || (s.emit("beforeDestroy"), s.initialized = !1, s.detachEvents(), r.loop && s.loopDestroy(), i && (s.removeClasses(), n && typeof n != "string" && n.removeAttribute("style"), l && l.removeAttribute("style"), a && a.length && a.forEach((o) => {
2480
- o.classList.remove(r.slideVisibleClass, r.slideFullyVisibleClass, r.slideActiveClass, r.slideNextClass, r.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
2479
+ return typeof s.params > "u" || s.destroyed || (s.emit("beforeDestroy"), s.initialized = !1, s.detachEvents(), n.loop && s.loopDestroy(), i && (s.removeClasses(), r && typeof r != "string" && r.removeAttribute("style"), l && l.removeAttribute("style"), a && a.length && a.forEach((o) => {
2480
+ o.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
2481
2481
  })), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((o) => {
2482
2482
  s.off(o);
2483
- }), e !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null), ni(s)), s.destroyed = !0), null;
2483
+ }), e !== !1 && (s.el && typeof s.el != "string" && (s.el.swiper = null), ci(s)), s.destroyed = !0), null;
2484
2484
  }
2485
2485
  static extendDefaults(e) {
2486
- R(Me, e);
2486
+ W(Oe, e);
2487
2487
  }
2488
2488
  static get extendedDefaults() {
2489
- return Me;
2489
+ return Oe;
2490
2490
  }
2491
2491
  static get defaults() {
2492
- return Ae;
2492
+ return De;
2493
2493
  }
2494
2494
  static installModule(e) {
2495
- Q.prototype.__modules__ || (Q.prototype.__modules__ = []);
2496
- const i = Q.prototype.__modules__;
2495
+ ee.prototype.__modules__ || (ee.prototype.__modules__ = []);
2496
+ const i = ee.prototype.__modules__;
2497
2497
  typeof e == "function" && i.indexOf(e) < 0 && i.push(e);
2498
2498
  }
2499
2499
  static use(e) {
2500
- return Array.isArray(e) ? (e.forEach((i) => Q.installModule(i)), Q) : (Q.installModule(e), Q);
2500
+ return Array.isArray(e) ? (e.forEach((i) => ee.installModule(i)), ee) : (ee.installModule(e), ee);
2501
2501
  }
2502
2502
  };
2503
- Object.keys(Pe).forEach((t) => {
2504
- Object.keys(Pe[t]).forEach((e) => {
2505
- De.prototype[e] = Pe[t][e];
2503
+ Object.keys(_e).forEach((t) => {
2504
+ Object.keys(_e[t]).forEach((e) => {
2505
+ He.prototype[e] = _e[t][e];
2506
2506
  });
2507
2507
  });
2508
- De.use([hi, gi]);
2509
- const rt = [
2508
+ He.use([yi, xi]);
2509
+ const ct = [
2510
2510
  "eventsPrefix",
2511
2511
  "injectStyles",
2512
2512
  "injectStylesUrls",
@@ -2625,141 +2625,141 @@ const rt = [
2625
2625
  "zoom",
2626
2626
  "control"
2627
2627
  ];
2628
- function se(t) {
2628
+ function ae(t) {
2629
2629
  return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
2630
2630
  }
2631
- function le(t, e) {
2631
+ function de(t, e) {
2632
2632
  const i = ["__proto__", "constructor", "prototype"];
2633
2633
  Object.keys(e).filter((s) => i.indexOf(s) < 0).forEach((s) => {
2634
- typeof t[s] > "u" ? t[s] = e[s] : se(e[s]) && se(t[s]) && Object.keys(e[s]).length > 0 ? e[s].__swiper__ ? t[s] = e[s] : le(t[s], e[s]) : t[s] = e[s];
2634
+ typeof t[s] > "u" ? t[s] = e[s] : ae(e[s]) && ae(t[s]) && Object.keys(e[s]).length > 0 ? e[s].__swiper__ ? t[s] = e[s] : de(t[s], e[s]) : t[s] = e[s];
2635
2635
  });
2636
2636
  }
2637
- function at(t) {
2637
+ function ut(t) {
2638
2638
  return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
2639
2639
  }
2640
- function lt(t) {
2640
+ function ft(t) {
2641
2641
  return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
2642
2642
  }
2643
- function ot(t) {
2643
+ function pt(t) {
2644
2644
  return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
2645
2645
  }
2646
- function dt(t) {
2646
+ function mt(t) {
2647
2647
  t === void 0 && (t = "");
2648
2648
  const e = t.split(" ").map((s) => s.trim()).filter((s) => !!s), i = [];
2649
2649
  return e.forEach((s) => {
2650
2650
  i.indexOf(s) < 0 && i.push(s);
2651
2651
  }), i.join(" ");
2652
2652
  }
2653
- function ys(t) {
2653
+ function Ms(t) {
2654
2654
  return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
2655
2655
  }
2656
- function xs(t) {
2656
+ function Is(t) {
2657
2657
  let {
2658
2658
  swiper: e,
2659
2659
  slides: i,
2660
2660
  passedParams: s,
2661
- changedParams: r,
2662
- nextEl: n,
2661
+ changedParams: n,
2662
+ nextEl: r,
2663
2663
  prevEl: l,
2664
2664
  scrollbarEl: a,
2665
2665
  paginationEl: o
2666
2666
  } = t;
2667
- const d = r.filter((T) => T !== "children" && T !== "direction" && T !== "wrapperClass"), {
2668
- params: c,
2667
+ const c = n.filter((T) => T !== "children" && T !== "direction" && T !== "wrapperClass"), {
2668
+ params: d,
2669
2669
  pagination: p,
2670
2670
  navigation: h,
2671
- scrollbar: v,
2671
+ scrollbar: w,
2672
2672
  virtual: m,
2673
- thumbs: S
2673
+ thumbs: b
2674
2674
  } = e;
2675
- let x, g, u, f, w, y, P, I;
2676
- r.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && c.thumbs && (!c.thumbs.swiper || c.thumbs.swiper.destroyed) && (x = !0), r.includes("controller") && s.controller && s.controller.control && c.controller && !c.controller.control && (g = !0), r.includes("pagination") && s.pagination && (s.pagination.el || o) && (c.pagination || c.pagination === !1) && p && !p.el && (u = !0), r.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || a) && (c.scrollbar || c.scrollbar === !1) && v && !v.el && (f = !0), r.includes("navigation") && s.navigation && (s.navigation.prevEl || l) && (s.navigation.nextEl || n) && (c.navigation || c.navigation === !1) && h && !h.prevEl && !h.nextEl && (w = !0);
2675
+ let x, g, u, f, S, y, P, I;
2676
+ n.includes("thumbs") && s.thumbs && s.thumbs.swiper && !s.thumbs.swiper.destroyed && d.thumbs && (!d.thumbs.swiper || d.thumbs.swiper.destroyed) && (x = !0), n.includes("controller") && s.controller && s.controller.control && d.controller && !d.controller.control && (g = !0), n.includes("pagination") && s.pagination && (s.pagination.el || o) && (d.pagination || d.pagination === !1) && p && !p.el && (u = !0), n.includes("scrollbar") && s.scrollbar && (s.scrollbar.el || a) && (d.scrollbar || d.scrollbar === !1) && w && !w.el && (f = !0), n.includes("navigation") && s.navigation && (s.navigation.prevEl || l) && (s.navigation.nextEl || r) && (d.navigation || d.navigation === !1) && h && !h.prevEl && !h.nextEl && (S = !0);
2677
2677
  const M = (T) => {
2678
- e[T] && (e[T].destroy(), T === "navigation" ? (e.isElement && (e[T].prevEl.remove(), e[T].nextEl.remove()), c[T].prevEl = void 0, c[T].nextEl = void 0, e[T].prevEl = void 0, e[T].nextEl = void 0) : (e.isElement && e[T].el.remove(), c[T].el = void 0, e[T].el = void 0));
2678
+ e[T] && (e[T].destroy(), T === "navigation" ? (e.isElement && (e[T].prevEl.remove(), e[T].nextEl.remove()), d[T].prevEl = void 0, d[T].nextEl = void 0, e[T].prevEl = void 0, e[T].nextEl = void 0) : (e.isElement && e[T].el.remove(), d[T].el = void 0, e[T].el = void 0));
2679
2679
  };
2680
- r.includes("loop") && e.isElement && (c.loop && !s.loop ? y = !0 : !c.loop && s.loop ? P = !0 : I = !0), d.forEach((T) => {
2681
- if (se(c[T]) && se(s[T]))
2682
- Object.assign(c[T], s[T]), (T === "navigation" || T === "pagination" || T === "scrollbar") && "enabled" in s[T] && !s[T].enabled && M(T);
2680
+ n.includes("loop") && e.isElement && (d.loop && !s.loop ? y = !0 : !d.loop && s.loop ? P = !0 : I = !0), c.forEach((T) => {
2681
+ if (ae(d[T]) && ae(s[T]))
2682
+ Object.assign(d[T], s[T]), (T === "navigation" || T === "pagination" || T === "scrollbar") && "enabled" in s[T] && !s[T].enabled && M(T);
2683
2683
  else {
2684
2684
  const E = s[T];
2685
- (E === !0 || E === !1) && (T === "navigation" || T === "pagination" || T === "scrollbar") ? E === !1 && M(T) : c[T] = s[T];
2685
+ (E === !0 || E === !1) && (T === "navigation" || T === "pagination" || T === "scrollbar") ? E === !1 && M(T) : d[T] = s[T];
2686
2686
  }
2687
- }), d.includes("controller") && !g && e.controller && e.controller.control && c.controller && c.controller.control && (e.controller.control = c.controller.control), r.includes("children") && i && m && c.virtual.enabled ? (m.slides = i, m.update(!0)) : r.includes("virtual") && m && c.virtual.enabled && (i && (m.slides = i), m.update(!0)), r.includes("children") && i && c.loop && (I = !0), x && S.init() && S.update(!0), g && (e.controller.control = c.controller.control), u && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (c.pagination.el = o), p.init(), p.render(), p.update()), f && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), e.el.appendChild(a)), a && (c.scrollbar.el = a), v.init(), v.updateSize(), v.setTranslate()), w && (e.isElement && ((!n || typeof n == "string") && (n = document.createElement("div"), n.classList.add("swiper-button-next"), Se(n, e.hostEl.constructor.nextButtonSvg), n.part.add("button-next"), e.el.appendChild(n)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), Se(l, e.hostEl.constructor.prevButtonSvg), l.part.add("button-prev"), e.el.appendChild(l))), n && (c.navigation.nextEl = n), l && (c.navigation.prevEl = l), h.init(), h.update()), r.includes("allowSlideNext") && (e.allowSlideNext = s.allowSlideNext), r.includes("allowSlidePrev") && (e.allowSlidePrev = s.allowSlidePrev), r.includes("direction") && e.changeDirection(s.direction, !1), (y || I) && e.loopDestroy(), (P || I) && e.loopCreate(), e.update();
2687
+ }), c.includes("controller") && !g && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && i && m && d.virtual.enabled ? (m.slides = i, m.update(!0)) : n.includes("virtual") && m && d.virtual.enabled && (i && (m.slides = i), m.update(!0)), n.includes("children") && i && d.loop && (I = !0), x && b.init() && b.update(!0), g && (e.controller.control = d.controller.control), u && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (d.pagination.el = o), p.init(), p.render(), p.update()), f && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), e.el.appendChild(a)), a && (d.scrollbar.el = a), w.init(), w.updateSize(), w.setTranslate()), S && (e.isElement && ((!r || typeof r == "string") && (r = document.createElement("div"), r.classList.add("swiper-button-next"), Te(r, e.hostEl.constructor.nextButtonSvg), r.part.add("button-next"), e.el.appendChild(r)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), Te(l, e.hostEl.constructor.prevButtonSvg), l.part.add("button-prev"), e.el.appendChild(l))), r && (d.navigation.nextEl = r), l && (d.navigation.prevEl = l), h.init(), h.update()), n.includes("allowSlideNext") && (e.allowSlideNext = s.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = s.allowSlidePrev), n.includes("direction") && e.changeDirection(s.direction, !1), (y || I) && e.loopDestroy(), (P || I) && e.loopCreate(), e.update();
2688
2688
  }
2689
- function Ts(t, e) {
2689
+ function Ls(t, e) {
2690
2690
  t === void 0 && (t = {}), e === void 0 && (e = !0);
2691
2691
  const i = {
2692
2692
  on: {}
2693
- }, s = {}, r = {};
2694
- le(i, Ae), i._emitClasses = !0, i.init = !1;
2695
- const n = {}, l = rt.map((o) => o.replace(/_/, "")), a = Object.assign({}, t);
2693
+ }, s = {}, n = {};
2694
+ de(i, De), i._emitClasses = !0, i.init = !1;
2695
+ const r = {}, l = ct.map((o) => o.replace(/_/, "")), a = Object.assign({}, t);
2696
2696
  return Object.keys(a).forEach((o) => {
2697
- typeof t[o] > "u" || (l.indexOf(o) >= 0 ? se(t[o]) ? (i[o] = {}, r[o] = {}, le(i[o], t[o]), le(r[o], t[o])) : (i[o] = t[o], r[o] = t[o]) : o.search(/on[A-Z]/) === 0 && typeof t[o] == "function" ? e ? s[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : i.on[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : n[o] = t[o]);
2697
+ typeof t[o] > "u" || (l.indexOf(o) >= 0 ? ae(t[o]) ? (i[o] = {}, n[o] = {}, de(i[o], t[o]), de(n[o], t[o])) : (i[o] = t[o], n[o] = t[o]) : o.search(/on[A-Z]/) === 0 && typeof t[o] == "function" ? e ? s[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : i.on[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : r[o] = t[o]);
2698
2698
  }), ["navigation", "pagination", "scrollbar"].forEach((o) => {
2699
2699
  i[o] === !0 && (i[o] = {}), i[o] === !1 && delete i[o];
2700
2700
  }), {
2701
2701
  params: i,
2702
- passedParams: r,
2703
- rest: n,
2702
+ passedParams: n,
2703
+ rest: r,
2704
2704
  events: s
2705
2705
  };
2706
2706
  }
2707
- function Es(t, e) {
2707
+ function _s(t, e) {
2708
2708
  let {
2709
2709
  el: i,
2710
2710
  nextEl: s,
2711
- prevEl: r,
2712
- paginationEl: n,
2711
+ prevEl: n,
2712
+ paginationEl: r,
2713
2713
  scrollbarEl: l,
2714
2714
  swiper: a
2715
2715
  } = t;
2716
- at(e) && s && r && (a.params.navigation.nextEl = s, a.originalParams.navigation.nextEl = s, a.params.navigation.prevEl = r, a.originalParams.navigation.prevEl = r), lt(e) && n && (a.params.pagination.el = n, a.originalParams.pagination.el = n), ot(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(i);
2716
+ ut(e) && s && n && (a.params.navigation.nextEl = s, a.originalParams.navigation.nextEl = s, a.params.navigation.prevEl = n, a.originalParams.navigation.prevEl = n), ft(e) && r && (a.params.pagination.el = r, a.originalParams.pagination.el = r), pt(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(i);
2717
2717
  }
2718
- function Cs(t, e, i, s, r) {
2719
- const n = [];
2720
- if (!e) return n;
2718
+ function Os(t, e, i, s, n) {
2719
+ const r = [];
2720
+ if (!e) return r;
2721
2721
  const l = (o) => {
2722
- n.indexOf(o) < 0 && n.push(o);
2722
+ r.indexOf(o) < 0 && r.push(o);
2723
2723
  };
2724
2724
  if (i && s) {
2725
- const o = s.map(r), d = i.map(r);
2726
- o.join("") !== d.join("") && l("children"), s.length !== i.length && l("children");
2725
+ const o = s.map(n), c = i.map(n);
2726
+ o.join("") !== c.join("") && l("children"), s.length !== i.length && l("children");
2727
2727
  }
2728
- return rt.filter((o) => o[0] === "_").map((o) => o.replace(/_/, "")).forEach((o) => {
2728
+ return ct.filter((o) => o[0] === "_").map((o) => o.replace(/_/, "")).forEach((o) => {
2729
2729
  if (o in t && o in e)
2730
- if (se(t[o]) && se(e[o])) {
2731
- const d = Object.keys(t[o]), c = Object.keys(e[o]);
2732
- d.length !== c.length ? l(o) : (d.forEach((p) => {
2730
+ if (ae(t[o]) && ae(e[o])) {
2731
+ const c = Object.keys(t[o]), d = Object.keys(e[o]);
2732
+ c.length !== d.length ? l(o) : (c.forEach((p) => {
2733
2733
  t[o][p] !== e[o][p] && l(o);
2734
- }), c.forEach((p) => {
2734
+ }), d.forEach((p) => {
2735
2735
  t[o][p] !== e[o][p] && l(o);
2736
2736
  }));
2737
2737
  } else t[o] !== e[o] && l(o);
2738
- }), n;
2738
+ }), r;
2739
2739
  }
2740
- const Ps = (t) => {
2740
+ const Ns = (t) => {
2741
2741
  !t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.emit("_virtualUpdated"), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
2742
2742
  };
2743
- function be() {
2744
- return be = Object.assign ? Object.assign.bind() : function(t) {
2743
+ function Ee() {
2744
+ return Ee = Object.assign ? Object.assign.bind() : function(t) {
2745
2745
  for (var e = 1; e < arguments.length; e++) {
2746
2746
  var i = arguments[e];
2747
2747
  for (var s in i)
2748
2748
  Object.prototype.hasOwnProperty.call(i, s) && (t[s] = i[s]);
2749
2749
  }
2750
2750
  return t;
2751
- }, be.apply(this, arguments);
2751
+ }, Ee.apply(this, arguments);
2752
2752
  }
2753
- function ct(t) {
2753
+ function ht(t) {
2754
2754
  return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
2755
2755
  }
2756
- function ut(t) {
2756
+ function gt(t) {
2757
2757
  const e = [];
2758
2758
  return k.Children.toArray(t).forEach((i) => {
2759
- ct(i) ? e.push(i) : i.props && i.props.children && ut(i.props.children).forEach((s) => e.push(s));
2759
+ ht(i) ? e.push(i) : i.props && i.props.children && gt(i.props.children).forEach((s) => e.push(s));
2760
2760
  }), e;
2761
2761
  }
2762
- function Ms(t) {
2762
+ function zs(t) {
2763
2763
  const e = [], i = {
2764
2764
  "container-start": [],
2765
2765
  "container-end": [],
@@ -2767,13 +2767,13 @@ function Ms(t) {
2767
2767
  "wrapper-end": []
2768
2768
  };
2769
2769
  return k.Children.toArray(t).forEach((s) => {
2770
- if (ct(s))
2770
+ if (ht(s))
2771
2771
  e.push(s);
2772
2772
  else if (s.props && s.props.slot && i[s.props.slot])
2773
2773
  i[s.props.slot].push(s);
2774
2774
  else if (s.props && s.props.children) {
2775
- const r = ut(s.props.children);
2776
- r.length > 0 ? r.forEach((n) => e.push(n)) : i["container-end"].push(s);
2775
+ const n = gt(s.props.children);
2776
+ n.length > 0 ? n.forEach((r) => e.push(r)) : i["container-end"].push(s);
2777
2777
  } else
2778
2778
  i["container-end"].push(s);
2779
2779
  }), {
@@ -2781,90 +2781,90 @@ function Ms(t) {
2781
2781
  slots: i
2782
2782
  };
2783
2783
  }
2784
- function Is(t, e, i) {
2784
+ function As(t, e, i) {
2785
2785
  if (!i) return null;
2786
- const s = (c) => {
2787
- let p = c;
2788
- return c < 0 ? p = e.length + c : p >= e.length && (p = p - e.length), p;
2789
- }, r = t.isHorizontal() ? {
2786
+ const s = (d) => {
2787
+ let p = d;
2788
+ return d < 0 ? p = e.length + d : p >= e.length && (p = p - e.length), p;
2789
+ }, n = t.isHorizontal() ? {
2790
2790
  [t.rtlTranslate ? "right" : "left"]: `${i.offset}px`
2791
2791
  } : {
2792
2792
  top: `${i.offset}px`
2793
2793
  }, {
2794
- from: n,
2794
+ from: r,
2795
2795
  to: l
2796
- } = i, a = t.params.loop ? -e.length : 0, o = t.params.loop ? e.length * 2 : e.length, d = [];
2797
- for (let c = a; c < o; c += 1)
2798
- c >= n && c <= l && d.push(e[s(c)]);
2799
- return d.map((c, p) => /* @__PURE__ */ k.cloneElement(c, {
2796
+ } = i, a = t.params.loop ? -e.length : 0, o = t.params.loop ? e.length * 2 : e.length, c = [];
2797
+ for (let d = a; d < o; d += 1)
2798
+ d >= r && d <= l && c.push(e[s(d)]);
2799
+ return c.map((d, p) => /* @__PURE__ */ k.cloneElement(d, {
2800
2800
  swiper: t,
2801
- style: r,
2802
- key: c.props.virtualIndex || c.key || `slide-${p}`
2801
+ style: n,
2802
+ key: d.props.virtualIndex || d.key || `slide-${p}`
2803
2803
  }));
2804
2804
  }
2805
- function ce(t, e) {
2806
- return typeof window > "u" ? ie(t, e) : St(t, e);
2805
+ function fe(t, e) {
2806
+ return typeof window > "u" ? re(t, e) : Tt(t, e);
2807
2807
  }
2808
- const qe = /* @__PURE__ */ Ne(null), Ls = /* @__PURE__ */ Ne(null), ft = /* @__PURE__ */ Xe(function(t, e) {
2808
+ const Ke = /* @__PURE__ */ Be(null), $s = /* @__PURE__ */ Be(null), vt = /* @__PURE__ */ Qe(function(t, e) {
2809
2809
  let {
2810
2810
  className: i,
2811
2811
  tag: s = "div",
2812
- wrapperTag: r = "div",
2813
- children: n,
2812
+ wrapperTag: n = "div",
2813
+ children: r,
2814
2814
  onSwiper: l,
2815
2815
  ...a
2816
2816
  } = t === void 0 ? {} : t, o = !1;
2817
- const [d, c] = W("swiper"), [p, h] = W(null), [v, m] = W(!1), S = X(!1), x = X(null), g = X(null), u = X(null), f = X(null), w = X(null), y = X(null), P = X(null), I = X(null), {
2817
+ const [c, d] = X("swiper"), [p, h] = X(null), [w, m] = X(!1), b = U(!1), x = U(null), g = U(null), u = U(null), f = U(null), S = U(null), y = U(null), P = U(null), I = U(null), {
2818
2818
  params: M,
2819
2819
  passedParams: T,
2820
2820
  rest: E,
2821
2821
  events: C
2822
- } = Ts(a), {
2823
- slides: L,
2824
- slots: O
2825
- } = Ms(n), N = () => {
2826
- m(!v);
2822
+ } = Ls(a), {
2823
+ slides: _,
2824
+ slots: z
2825
+ } = zs(r), A = () => {
2826
+ m(!w);
2827
2827
  };
2828
2828
  Object.assign(M.on, {
2829
- _containerClasses(D, q) {
2830
- c(q);
2829
+ _containerClasses(G, Y) {
2830
+ d(Y);
2831
2831
  }
2832
2832
  });
2833
2833
  const $ = () => {
2834
2834
  Object.assign(M.on, C), o = !0;
2835
- const D = {
2835
+ const G = {
2836
2836
  ...M
2837
2837
  };
2838
- if (delete D.wrapperClass, g.current = new De(D), g.current.virtual && g.current.params.virtual.enabled) {
2839
- g.current.virtual.slides = L;
2840
- const q = {
2838
+ if (delete G.wrapperClass, g.current = new He(G), g.current.virtual && g.current.params.virtual.enabled) {
2839
+ g.current.virtual.slides = _;
2840
+ const Y = {
2841
2841
  cache: !1,
2842
- slides: L,
2842
+ slides: _,
2843
2843
  renderExternal: h,
2844
2844
  renderExternalUpdate: !1
2845
2845
  };
2846
- le(g.current.params.virtual, q), le(g.current.originalParams.virtual, q);
2846
+ de(g.current.params.virtual, Y), de(g.current.originalParams.virtual, Y);
2847
2847
  }
2848
2848
  };
2849
- x.current || $(), g.current && g.current.on("_beforeBreakpoint", N);
2850
- const _ = () => {
2851
- o || !C || !g.current || Object.keys(C).forEach((D) => {
2852
- g.current.on(D, C[D]);
2849
+ x.current || $(), g.current && g.current.on("_beforeBreakpoint", A);
2850
+ const O = () => {
2851
+ o || !C || !g.current || Object.keys(C).forEach((G) => {
2852
+ g.current.on(G, C[G]);
2853
2853
  });
2854
2854
  }, B = () => {
2855
- !C || !g.current || Object.keys(C).forEach((D) => {
2856
- g.current.off(D, C[D]);
2855
+ !C || !g.current || Object.keys(C).forEach((G) => {
2856
+ g.current.off(G, C[G]);
2857
2857
  });
2858
2858
  };
2859
- ie(() => () => {
2860
- g.current && g.current.off("_beforeBreakpoint", N);
2861
- }), ie(() => {
2862
- !S.current && g.current && (g.current.emitSlidesClasses(), S.current = !0);
2863
- }), ce(() => {
2859
+ re(() => () => {
2860
+ g.current && g.current.off("_beforeBreakpoint", A);
2861
+ }), re(() => {
2862
+ !b.current && g.current && (g.current.emitSlidesClasses(), b.current = !0);
2863
+ }), fe(() => {
2864
2864
  if (e && (e.current = x.current), !!x.current)
2865
- return g.current.destroyed && $(), Es({
2865
+ return g.current.destroyed && $(), _s({
2866
2866
  el: x.current,
2867
- nextEl: w.current,
2867
+ nextEl: S.current,
2868
2868
  prevEl: y.current,
2869
2869
  paginationEl: P.current,
2870
2870
  scrollbarEl: I.current,
@@ -2872,122 +2872,122 @@ const qe = /* @__PURE__ */ Ne(null), Ls = /* @__PURE__ */ Ne(null), ft = /* @__P
2872
2872
  }, M), l && !g.current.destroyed && l(g.current), () => {
2873
2873
  g.current && !g.current.destroyed && g.current.destroy(!0, !1);
2874
2874
  };
2875
- }, []), ce(() => {
2876
- _();
2877
- const D = Cs(T, u.current, L, f.current, (q) => q.key);
2878
- return u.current = T, f.current = L, D.length && g.current && !g.current.destroyed && xs({
2875
+ }, []), fe(() => {
2876
+ O();
2877
+ const G = Os(T, u.current, _, f.current, (Y) => Y.key);
2878
+ return u.current = T, f.current = _, G.length && g.current && !g.current.destroyed && Is({
2879
2879
  swiper: g.current,
2880
- slides: L,
2880
+ slides: _,
2881
2881
  passedParams: T,
2882
- changedParams: D,
2883
- nextEl: w.current,
2882
+ changedParams: G,
2883
+ nextEl: S.current,
2884
2884
  prevEl: y.current,
2885
2885
  scrollbarEl: I.current,
2886
2886
  paginationEl: P.current
2887
2887
  }), () => {
2888
2888
  B();
2889
2889
  };
2890
- }), ce(() => {
2891
- Ps(g.current);
2890
+ }), fe(() => {
2891
+ Ns(g.current);
2892
2892
  }, [p]);
2893
- function V() {
2894
- return M.virtual ? Is(g.current, L, p) : L.map((D, q) => /* @__PURE__ */ k.cloneElement(D, {
2893
+ function F() {
2894
+ return M.virtual ? As(g.current, _, p) : _.map((G, Y) => /* @__PURE__ */ k.cloneElement(G, {
2895
2895
  swiper: g.current,
2896
- swiperSlideIndex: q
2896
+ swiperSlideIndex: Y
2897
2897
  }));
2898
2898
  }
2899
- return /* @__PURE__ */ k.createElement(s, be({
2899
+ return /* @__PURE__ */ k.createElement(s, Ee({
2900
2900
  ref: x,
2901
- className: dt(`${d}${i ? ` ${i}` : ""}`)
2902
- }, E), /* @__PURE__ */ k.createElement(Ls.Provider, {
2901
+ className: mt(`${c}${i ? ` ${i}` : ""}`)
2902
+ }, E), /* @__PURE__ */ k.createElement($s.Provider, {
2903
2903
  value: g.current
2904
- }, O["container-start"], /* @__PURE__ */ k.createElement(r, {
2905
- className: ys(M.wrapperClass)
2906
- }, O["wrapper-start"], V(), O["wrapper-end"]), at(M) && /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("div", {
2904
+ }, z["container-start"], /* @__PURE__ */ k.createElement(n, {
2905
+ className: Ms(M.wrapperClass)
2906
+ }, z["wrapper-start"], F(), z["wrapper-end"]), ut(M) && /* @__PURE__ */ k.createElement(k.Fragment, null, /* @__PURE__ */ k.createElement("div", {
2907
2907
  ref: y,
2908
2908
  className: "swiper-button-prev"
2909
2909
  }), /* @__PURE__ */ k.createElement("div", {
2910
- ref: w,
2910
+ ref: S,
2911
2911
  className: "swiper-button-next"
2912
- })), ot(M) && /* @__PURE__ */ k.createElement("div", {
2912
+ })), pt(M) && /* @__PURE__ */ k.createElement("div", {
2913
2913
  ref: I,
2914
2914
  className: "swiper-scrollbar"
2915
- }), lt(M) && /* @__PURE__ */ k.createElement("div", {
2915
+ }), ft(M) && /* @__PURE__ */ k.createElement("div", {
2916
2916
  ref: P,
2917
2917
  className: "swiper-pagination"
2918
- }), O["container-end"]));
2918
+ }), z["container-end"]));
2919
2919
  });
2920
- ft.displayName = "Swiper";
2921
- const pt = /* @__PURE__ */ Xe(function(t, e) {
2920
+ vt.displayName = "Swiper";
2921
+ const wt = /* @__PURE__ */ Qe(function(t, e) {
2922
2922
  let {
2923
2923
  tag: i = "div",
2924
2924
  children: s,
2925
- className: r = "",
2926
- swiper: n,
2925
+ className: n = "",
2926
+ swiper: r,
2927
2927
  zoom: l,
2928
2928
  lazy: a,
2929
2929
  virtualIndex: o,
2930
- swiperSlideIndex: d,
2931
- ...c
2930
+ swiperSlideIndex: c,
2931
+ ...d
2932
2932
  } = t === void 0 ? {} : t;
2933
- const p = X(null), [h, v] = W("swiper-slide"), [m, S] = W(!1);
2934
- function x(w, y, P) {
2935
- y === p.current && v(P);
2936
- }
2937
- ce(() => {
2938
- if (typeof d < "u" && (p.current.swiperSlideIndex = d), e && (e.current = p.current), !(!p.current || !n)) {
2939
- if (n.destroyed) {
2940
- h !== "swiper-slide" && v("swiper-slide");
2933
+ const p = U(null), [h, w] = X("swiper-slide"), [m, b] = X(!1);
2934
+ function x(S, y, P) {
2935
+ y === p.current && w(P);
2936
+ }
2937
+ fe(() => {
2938
+ if (typeof c < "u" && (p.current.swiperSlideIndex = c), e && (e.current = p.current), !(!p.current || !r)) {
2939
+ if (r.destroyed) {
2940
+ h !== "swiper-slide" && w("swiper-slide");
2941
2941
  return;
2942
2942
  }
2943
- return n.on("_slideClass", x), () => {
2944
- n && n.off("_slideClass", x);
2943
+ return r.on("_slideClass", x), () => {
2944
+ r && r.off("_slideClass", x);
2945
2945
  };
2946
2946
  }
2947
- }), ce(() => {
2948
- n && p.current && !n.destroyed && v(n.getSlideClasses(p.current));
2949
- }, [n]);
2947
+ }), fe(() => {
2948
+ r && p.current && !r.destroyed && w(r.getSlideClasses(p.current));
2949
+ }, [r]);
2950
2950
  const g = {
2951
2951
  isActive: h.indexOf("swiper-slide-active") >= 0,
2952
2952
  isVisible: h.indexOf("swiper-slide-visible") >= 0,
2953
2953
  isPrev: h.indexOf("swiper-slide-prev") >= 0,
2954
2954
  isNext: h.indexOf("swiper-slide-next") >= 0
2955
2955
  }, u = () => typeof s == "function" ? s(g) : s, f = () => {
2956
- S(!0);
2956
+ b(!0);
2957
2957
  };
2958
- return /* @__PURE__ */ k.createElement(i, be({
2958
+ return /* @__PURE__ */ k.createElement(i, Ee({
2959
2959
  ref: p,
2960
- className: dt(`${h}${r ? ` ${r}` : ""}`),
2960
+ className: mt(`${h}${n ? ` ${n}` : ""}`),
2961
2961
  "data-swiper-slide-index": o,
2962
2962
  onLoad: f
2963
- }, c), l && /* @__PURE__ */ k.createElement(qe.Provider, {
2963
+ }, d), l && /* @__PURE__ */ k.createElement(Ke.Provider, {
2964
2964
  value: g
2965
2965
  }, /* @__PURE__ */ k.createElement("div", {
2966
2966
  className: "swiper-zoom-container",
2967
2967
  "data-swiper-zoom": typeof l == "number" ? l : void 0
2968
2968
  }, u(), a && !m && /* @__PURE__ */ k.createElement("div", {
2969
2969
  className: "swiper-lazy-preloader"
2970
- }))), !l && /* @__PURE__ */ k.createElement(qe.Provider, {
2970
+ }))), !l && /* @__PURE__ */ k.createElement(Ke.Provider, {
2971
2971
  value: g
2972
2972
  }, u(), a && !m && /* @__PURE__ */ k.createElement("div", {
2973
2973
  className: "swiper-lazy-preloader"
2974
2974
  })));
2975
2975
  });
2976
- pt.displayName = "SwiperSlide";
2977
- function mt(t, e, i, s) {
2978
- return t.params.createElements && Object.keys(s).forEach((r) => {
2979
- if (!i[r] && i.auto === !0) {
2980
- let n = K(t.el, `.${s[r]}`)[0];
2981
- n || (n = ve("div", s[r]), n.className = s[r], t.el.append(n)), i[r] = n, e[r] = n;
2976
+ wt.displayName = "SwiperSlide";
2977
+ function St(t, e, i, s) {
2978
+ return t.params.createElements && Object.keys(s).forEach((n) => {
2979
+ if (!i[n] && i.auto === !0) {
2980
+ let r = Q(t.el, `.${s[n]}`)[0];
2981
+ r || (r = ye("div", s[n]), r.className = s[n], t.el.append(r)), i[n] = r, e[n] = r;
2982
2982
  }
2983
2983
  }), i;
2984
2984
  }
2985
- function _s(t) {
2985
+ function ks(t) {
2986
2986
  let {
2987
2987
  swiper: e,
2988
2988
  extendParams: i,
2989
2989
  on: s,
2990
- emit: r
2990
+ emit: n
2991
2991
  } = t;
2992
2992
  i({
2993
2993
  navigation: {
@@ -3003,62 +3003,62 @@ function _s(t) {
3003
3003
  nextEl: null,
3004
3004
  prevEl: null
3005
3005
  };
3006
- function n(m) {
3007
- let S;
3008
- return m && typeof m == "string" && e.isElement && (S = e.el.querySelector(m) || e.hostEl.querySelector(m), S) ? S : (m && (typeof m == "string" && (S = [...document.querySelectorAll(m)]), e.params.uniqueNavElements && typeof m == "string" && S && S.length > 1 && e.el.querySelectorAll(m).length === 1 ? S = e.el.querySelector(m) : S && S.length === 1 && (S = S[0])), m && !S ? m : S);
3006
+ function r(m) {
3007
+ let b;
3008
+ return m && typeof m == "string" && e.isElement && (b = e.el.querySelector(m) || e.hostEl.querySelector(m), b) ? b : (m && (typeof m == "string" && (b = [...document.querySelectorAll(m)]), e.params.uniqueNavElements && typeof m == "string" && b && b.length > 1 && e.el.querySelectorAll(m).length === 1 ? b = e.el.querySelector(m) : b && b.length === 1 && (b = b[0])), m && !b ? m : b);
3009
3009
  }
3010
- function l(m, S) {
3010
+ function l(m, b) {
3011
3011
  const x = e.params.navigation;
3012
- m = G(m), m.forEach((g) => {
3013
- g && (g.classList[S ? "add" : "remove"](...x.disabledClass.split(" ")), g.tagName === "BUTTON" && (g.disabled = S), e.params.watchOverflow && e.enabled && g.classList[e.isLocked ? "add" : "remove"](x.lockClass));
3012
+ m = V(m), m.forEach((g) => {
3013
+ g && (g.classList[b ? "add" : "remove"](...x.disabledClass.split(" ")), g.tagName === "BUTTON" && (g.disabled = b), e.params.watchOverflow && e.enabled && g.classList[e.isLocked ? "add" : "remove"](x.lockClass));
3014
3014
  });
3015
3015
  }
3016
3016
  function a() {
3017
3017
  const {
3018
3018
  nextEl: m,
3019
- prevEl: S
3019
+ prevEl: b
3020
3020
  } = e.navigation;
3021
3021
  if (e.params.loop) {
3022
- l(S, !1), l(m, !1);
3022
+ l(b, !1), l(m, !1);
3023
3023
  return;
3024
3024
  }
3025
- l(S, e.isBeginning && !e.params.rewind), l(m, e.isEnd && !e.params.rewind);
3025
+ l(b, e.isBeginning && !e.params.rewind), l(m, e.isEnd && !e.params.rewind);
3026
3026
  }
3027
3027
  function o(m) {
3028
- m.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), r("navigationPrev"));
3028
+ m.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), n("navigationPrev"));
3029
3029
  }
3030
- function d(m) {
3031
- m.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), r("navigationNext"));
3030
+ function c(m) {
3031
+ m.preventDefault(), !(e.isEnd && !e.params.loop && !e.params.rewind) && (e.slideNext(), n("navigationNext"));
3032
3032
  }
3033
- function c() {
3033
+ function d() {
3034
3034
  const m = e.params.navigation;
3035
- if (e.params.navigation = mt(e, e.originalParams.navigation, e.params.navigation, {
3035
+ if (e.params.navigation = St(e, e.originalParams.navigation, e.params.navigation, {
3036
3036
  nextEl: "swiper-button-next",
3037
3037
  prevEl: "swiper-button-prev"
3038
3038
  }), !(m.nextEl || m.prevEl)) return;
3039
- let S = n(m.nextEl), x = n(m.prevEl);
3039
+ let b = r(m.nextEl), x = r(m.prevEl);
3040
3040
  Object.assign(e.navigation, {
3041
- nextEl: S,
3041
+ nextEl: b,
3042
3042
  prevEl: x
3043
- }), S = G(S), x = G(x);
3043
+ }), b = V(b), x = V(x);
3044
3044
  const g = (u, f) => {
3045
- u && u.addEventListener("click", f === "next" ? d : o), !e.enabled && u && u.classList.add(...m.lockClass.split(" "));
3045
+ u && u.addEventListener("click", f === "next" ? c : o), !e.enabled && u && u.classList.add(...m.lockClass.split(" "));
3046
3046
  };
3047
- S.forEach((u) => g(u, "next")), x.forEach((u) => g(u, "prev"));
3047
+ b.forEach((u) => g(u, "next")), x.forEach((u) => g(u, "prev"));
3048
3048
  }
3049
3049
  function p() {
3050
3050
  let {
3051
3051
  nextEl: m,
3052
- prevEl: S
3052
+ prevEl: b
3053
3053
  } = e.navigation;
3054
- m = G(m), S = G(S);
3054
+ m = V(m), b = V(b);
3055
3055
  const x = (g, u) => {
3056
- g.removeEventListener("click", u === "next" ? d : o), g.classList.remove(...e.params.navigation.disabledClass.split(" "));
3056
+ g.removeEventListener("click", u === "next" ? c : o), g.classList.remove(...e.params.navigation.disabledClass.split(" "));
3057
3057
  };
3058
- m.forEach((g) => x(g, "next")), S.forEach((g) => x(g, "prev"));
3058
+ m.forEach((g) => x(g, "next")), b.forEach((g) => x(g, "prev"));
3059
3059
  }
3060
3060
  s("init", () => {
3061
- e.params.navigation.enabled === !1 ? v() : (c(), a());
3061
+ e.params.navigation.enabled === !1 ? w() : (d(), a());
3062
3062
  }), s("toEdge fromEdge lock unlock", () => {
3063
3063
  a();
3064
3064
  }), s("destroy", () => {
@@ -3066,55 +3066,55 @@ function _s(t) {
3066
3066
  }), s("enable disable", () => {
3067
3067
  let {
3068
3068
  nextEl: m,
3069
- prevEl: S
3069
+ prevEl: b
3070
3070
  } = e.navigation;
3071
- if (m = G(m), S = G(S), e.enabled) {
3071
+ if (m = V(m), b = V(b), e.enabled) {
3072
3072
  a();
3073
3073
  return;
3074
3074
  }
3075
- [...m, ...S].filter((x) => !!x).forEach((x) => x.classList.add(e.params.navigation.lockClass));
3076
- }), s("click", (m, S) => {
3075
+ [...m, ...b].filter((x) => !!x).forEach((x) => x.classList.add(e.params.navigation.lockClass));
3076
+ }), s("click", (m, b) => {
3077
3077
  let {
3078
3078
  nextEl: x,
3079
3079
  prevEl: g
3080
3080
  } = e.navigation;
3081
- x = G(x), g = G(g);
3082
- const u = S.target;
3081
+ x = V(x), g = V(g);
3082
+ const u = b.target;
3083
3083
  let f = g.includes(u) || x.includes(u);
3084
3084
  if (e.isElement && !f) {
3085
- const w = S.path || S.composedPath && S.composedPath();
3086
- w && (f = w.find((y) => x.includes(y) || g.includes(y)));
3085
+ const S = b.path || b.composedPath && b.composedPath();
3086
+ S && (f = S.find((y) => x.includes(y) || g.includes(y)));
3087
3087
  }
3088
3088
  if (e.params.navigation.hideOnClick && !f) {
3089
3089
  if (e.pagination && e.params.pagination && e.params.pagination.clickable && (e.pagination.el === u || e.pagination.el.contains(u))) return;
3090
- let w;
3091
- x.length ? w = x[0].classList.contains(e.params.navigation.hiddenClass) : g.length && (w = g[0].classList.contains(e.params.navigation.hiddenClass)), r(w === !0 ? "navigationShow" : "navigationHide"), [...x, ...g].filter((y) => !!y).forEach((y) => y.classList.toggle(e.params.navigation.hiddenClass));
3090
+ let S;
3091
+ x.length ? S = x[0].classList.contains(e.params.navigation.hiddenClass) : g.length && (S = g[0].classList.contains(e.params.navigation.hiddenClass)), n(S === !0 ? "navigationShow" : "navigationHide"), [...x, ...g].filter((y) => !!y).forEach((y) => y.classList.toggle(e.params.navigation.hiddenClass));
3092
3092
  }
3093
3093
  });
3094
3094
  const h = () => {
3095
- e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), c(), a();
3096
- }, v = () => {
3095
+ e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), d(), a();
3096
+ }, w = () => {
3097
3097
  e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), p();
3098
3098
  };
3099
3099
  Object.assign(e.navigation, {
3100
3100
  enable: h,
3101
- disable: v,
3101
+ disable: w,
3102
3102
  update: a,
3103
- init: c,
3103
+ init: d,
3104
3104
  destroy: p
3105
3105
  });
3106
3106
  }
3107
- function de(t) {
3107
+ function ue(t) {
3108
3108
  return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/()[\]])/g, "\\$1").replace(/ /g, ".")}`;
3109
3109
  }
3110
- function Os(t) {
3110
+ function Gs(t) {
3111
3111
  let {
3112
3112
  swiper: e,
3113
3113
  extendParams: i,
3114
3114
  on: s,
3115
- emit: r
3115
+ emit: n
3116
3116
  } = t;
3117
- const n = "swiper-pagination";
3117
+ const r = "swiper-pagination";
3118
3118
  i({
3119
3119
  pagination: {
3120
3120
  el: null,
@@ -3132,19 +3132,19 @@ function Os(t) {
3132
3132
  dynamicMainBullets: 1,
3133
3133
  formatFractionCurrent: (u) => u,
3134
3134
  formatFractionTotal: (u) => u,
3135
- bulletClass: `${n}-bullet`,
3136
- bulletActiveClass: `${n}-bullet-active`,
3137
- modifierClass: `${n}-`,
3138
- currentClass: `${n}-current`,
3139
- totalClass: `${n}-total`,
3140
- hiddenClass: `${n}-hidden`,
3141
- progressbarFillClass: `${n}-progressbar-fill`,
3142
- progressbarOppositeClass: `${n}-progressbar-opposite`,
3143
- clickableClass: `${n}-clickable`,
3144
- lockClass: `${n}-lock`,
3145
- horizontalClass: `${n}-horizontal`,
3146
- verticalClass: `${n}-vertical`,
3147
- paginationDisabledClass: `${n}-disabled`
3135
+ bulletClass: `${r}-bullet`,
3136
+ bulletActiveClass: `${r}-bullet-active`,
3137
+ modifierClass: `${r}-`,
3138
+ currentClass: `${r}-current`,
3139
+ totalClass: `${r}-total`,
3140
+ hiddenClass: `${r}-hidden`,
3141
+ progressbarFillClass: `${r}-progressbar-fill`,
3142
+ progressbarOppositeClass: `${r}-progressbar-opposite`,
3143
+ clickableClass: `${r}-clickable`,
3144
+ lockClass: `${r}-lock`,
3145
+ horizontalClass: `${r}-horizontal`,
3146
+ verticalClass: `${r}-vertical`,
3147
+ paginationDisabledClass: `${r}-disabled`
3148
3148
  }
3149
3149
  }), e.pagination = {
3150
3150
  el: null,
@@ -3154,92 +3154,92 @@ function Os(t) {
3154
3154
  function o() {
3155
3155
  return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
3156
3156
  }
3157
- function d(u, f) {
3157
+ function c(u, f) {
3158
3158
  const {
3159
- bulletActiveClass: w
3159
+ bulletActiveClass: S
3160
3160
  } = e.params.pagination;
3161
- u && (u = u[`${f === "prev" ? "previous" : "next"}ElementSibling`], u && (u.classList.add(`${w}-${f}`), u = u[`${f === "prev" ? "previous" : "next"}ElementSibling`], u && u.classList.add(`${w}-${f}-${f}`)));
3161
+ u && (u = u[`${f === "prev" ? "previous" : "next"}ElementSibling`], u && (u.classList.add(`${S}-${f}`), u = u[`${f === "prev" ? "previous" : "next"}ElementSibling`], u && u.classList.add(`${S}-${f}-${f}`)));
3162
3162
  }
3163
- function c(u, f, w) {
3164
- if (u = u % w, f = f % w, f === u + 1)
3163
+ function d(u, f, S) {
3164
+ if (u = u % S, f = f % S, f === u + 1)
3165
3165
  return "next";
3166
3166
  if (f === u - 1)
3167
3167
  return "previous";
3168
3168
  }
3169
3169
  function p(u) {
3170
- const f = u.target.closest(de(e.params.pagination.bulletClass));
3170
+ const f = u.target.closest(ue(e.params.pagination.bulletClass));
3171
3171
  if (!f)
3172
3172
  return;
3173
3173
  u.preventDefault();
3174
- const w = we(f) * e.params.slidesPerGroup;
3174
+ const S = xe(f) * e.params.slidesPerGroup;
3175
3175
  if (e.params.loop) {
3176
- if (e.realIndex === w) return;
3177
- const y = c(e.realIndex, w, e.slides.length);
3178
- y === "next" ? e.slideNext() : y === "previous" ? e.slidePrev() : e.slideToLoop(w);
3176
+ if (e.realIndex === S) return;
3177
+ const y = d(e.realIndex, S, e.slides.length);
3178
+ y === "next" ? e.slideNext() : y === "previous" ? e.slidePrev() : e.slideToLoop(S);
3179
3179
  } else
3180
- e.slideTo(w);
3180
+ e.slideTo(S);
3181
3181
  }
3182
3182
  function h() {
3183
3183
  const u = e.rtl, f = e.params.pagination;
3184
3184
  if (o()) return;
3185
- let w = e.pagination.el;
3186
- w = G(w);
3185
+ let S = e.pagination.el;
3186
+ S = V(S);
3187
3187
  let y, P;
3188
3188
  const I = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, M = e.params.loop ? Math.ceil(I / e.params.slidesPerGroup) : e.snapGrid.length;
3189
3189
  if (e.params.loop ? (P = e.previousRealIndex || 0, y = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (y = e.snapIndex, P = e.previousSnapIndex) : (P = e.previousIndex || 0, y = e.activeIndex || 0), f.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
3190
3190
  const T = e.pagination.bullets;
3191
- let E, C, L;
3192
- if (f.dynamicBullets && (l = Oe(T[0], e.isHorizontal() ? "width" : "height"), w.forEach((O) => {
3193
- O.style[e.isHorizontal() ? "width" : "height"] = `${l * (f.dynamicMainBullets + 4)}px`;
3194
- }), f.dynamicMainBullets > 1 && P !== void 0 && (a += y - (P || 0), a > f.dynamicMainBullets - 1 ? a = f.dynamicMainBullets - 1 : a < 0 && (a = 0)), E = Math.max(y - a, 0), C = E + (Math.min(T.length, f.dynamicMainBullets) - 1), L = (C + E) / 2), T.forEach((O) => {
3195
- const N = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map(($) => `${f.bulletActiveClass}${$}`)].map(($) => typeof $ == "string" && $.includes(" ") ? $.split(" ") : $).flat();
3196
- O.classList.remove(...N);
3197
- }), w.length > 1)
3198
- T.forEach((O) => {
3199
- const N = we(O);
3200
- N === y ? O.classList.add(...f.bulletActiveClass.split(" ")) : e.isElement && O.setAttribute("part", "bullet"), f.dynamicBullets && (N >= E && N <= C && O.classList.add(...`${f.bulletActiveClass}-main`.split(" ")), N === E && d(O, "prev"), N === C && d(O, "next"));
3191
+ let E, C, _;
3192
+ if (f.dynamicBullets && (l = ke(T[0], e.isHorizontal() ? "width" : "height"), S.forEach((z) => {
3193
+ z.style[e.isHorizontal() ? "width" : "height"] = `${l * (f.dynamicMainBullets + 4)}px`;
3194
+ }), f.dynamicMainBullets > 1 && P !== void 0 && (a += y - (P || 0), a > f.dynamicMainBullets - 1 ? a = f.dynamicMainBullets - 1 : a < 0 && (a = 0)), E = Math.max(y - a, 0), C = E + (Math.min(T.length, f.dynamicMainBullets) - 1), _ = (C + E) / 2), T.forEach((z) => {
3195
+ const A = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map(($) => `${f.bulletActiveClass}${$}`)].map(($) => typeof $ == "string" && $.includes(" ") ? $.split(" ") : $).flat();
3196
+ z.classList.remove(...A);
3197
+ }), S.length > 1)
3198
+ T.forEach((z) => {
3199
+ const A = xe(z);
3200
+ A === y ? z.classList.add(...f.bulletActiveClass.split(" ")) : e.isElement && z.setAttribute("part", "bullet"), f.dynamicBullets && (A >= E && A <= C && z.classList.add(...`${f.bulletActiveClass}-main`.split(" ")), A === E && c(z, "prev"), A === C && c(z, "next"));
3201
3201
  });
3202
3202
  else {
3203
- const O = T[y];
3204
- if (O && O.classList.add(...f.bulletActiveClass.split(" ")), e.isElement && T.forEach((N, $) => {
3205
- N.setAttribute("part", $ === y ? "bullet-active" : "bullet");
3203
+ const z = T[y];
3204
+ if (z && z.classList.add(...f.bulletActiveClass.split(" ")), e.isElement && T.forEach((A, $) => {
3205
+ A.setAttribute("part", $ === y ? "bullet-active" : "bullet");
3206
3206
  }), f.dynamicBullets) {
3207
- const N = T[E], $ = T[C];
3208
- for (let _ = E; _ <= C; _ += 1)
3209
- T[_] && T[_].classList.add(...`${f.bulletActiveClass}-main`.split(" "));
3210
- d(N, "prev"), d($, "next");
3207
+ const A = T[E], $ = T[C];
3208
+ for (let O = E; O <= C; O += 1)
3209
+ T[O] && T[O].classList.add(...`${f.bulletActiveClass}-main`.split(" "));
3210
+ c(A, "prev"), c($, "next");
3211
3211
  }
3212
3212
  }
3213
3213
  if (f.dynamicBullets) {
3214
- const O = Math.min(T.length, f.dynamicMainBullets + 4), N = (l * O - l) / 2 - L * l, $ = u ? "right" : "left";
3215
- T.forEach((_) => {
3216
- _.style[e.isHorizontal() ? $ : "top"] = `${N}px`;
3214
+ const z = Math.min(T.length, f.dynamicMainBullets + 4), A = (l * z - l) / 2 - _ * l, $ = u ? "right" : "left";
3215
+ T.forEach((O) => {
3216
+ O.style[e.isHorizontal() ? $ : "top"] = `${A}px`;
3217
3217
  });
3218
3218
  }
3219
3219
  }
3220
- w.forEach((T, E) => {
3221
- if (f.type === "fraction" && (T.querySelectorAll(de(f.currentClass)).forEach((C) => {
3220
+ S.forEach((T, E) => {
3221
+ if (f.type === "fraction" && (T.querySelectorAll(ue(f.currentClass)).forEach((C) => {
3222
3222
  C.textContent = f.formatFractionCurrent(y + 1);
3223
- }), T.querySelectorAll(de(f.totalClass)).forEach((C) => {
3223
+ }), T.querySelectorAll(ue(f.totalClass)).forEach((C) => {
3224
3224
  C.textContent = f.formatFractionTotal(M);
3225
3225
  })), f.type === "progressbar") {
3226
3226
  let C;
3227
3227
  f.progressbarOpposite ? C = e.isHorizontal() ? "vertical" : "horizontal" : C = e.isHorizontal() ? "horizontal" : "vertical";
3228
- const L = (y + 1) / M;
3229
- let O = 1, N = 1;
3230
- C === "horizontal" ? O = L : N = L, T.querySelectorAll(de(f.progressbarFillClass)).forEach(($) => {
3231
- $.style.transform = `translate3d(0,0,0) scaleX(${O}) scaleY(${N})`, $.style.transitionDuration = `${e.params.speed}ms`;
3228
+ const _ = (y + 1) / M;
3229
+ let z = 1, A = 1;
3230
+ C === "horizontal" ? z = _ : A = _, T.querySelectorAll(ue(f.progressbarFillClass)).forEach(($) => {
3231
+ $.style.transform = `translate3d(0,0,0) scaleX(${z}) scaleY(${A})`, $.style.transitionDuration = `${e.params.speed}ms`;
3232
3232
  });
3233
3233
  }
3234
- f.type === "custom" && f.renderCustom ? (Se(T, f.renderCustom(e, y + 1, M)), E === 0 && r("paginationRender", T)) : (E === 0 && r("paginationRender", T), r("paginationUpdate", T)), e.params.watchOverflow && e.enabled && T.classList[e.isLocked ? "add" : "remove"](f.lockClass);
3234
+ f.type === "custom" && f.renderCustom ? (Te(T, f.renderCustom(e, y + 1, M)), E === 0 && n("paginationRender", T)) : (E === 0 && n("paginationRender", T), n("paginationUpdate", T)), e.params.watchOverflow && e.enabled && T.classList[e.isLocked ? "add" : "remove"](f.lockClass);
3235
3235
  });
3236
3236
  }
3237
- function v() {
3237
+ function w() {
3238
3238
  const u = e.params.pagination;
3239
3239
  if (o()) return;
3240
3240
  const f = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
3241
- let w = e.pagination.el;
3242
- w = G(w);
3241
+ let S = e.pagination.el;
3242
+ S = V(S);
3243
3243
  let y = "";
3244
3244
  if (u.type === "bullets") {
3245
3245
  let P = e.params.loop ? Math.ceil(f / e.params.slidesPerGroup) : e.snapGrid.length;
@@ -3247,30 +3247,30 @@ function Os(t) {
3247
3247
  for (let I = 0; I < P; I += 1)
3248
3248
  u.renderBullet ? y += u.renderBullet.call(e, I, u.bulletClass) : y += `<${u.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${u.bulletClass}"></${u.bulletElement}>`;
3249
3249
  }
3250
- u.type === "fraction" && (u.renderFraction ? y = u.renderFraction.call(e, u.currentClass, u.totalClass) : y = `<span class="${u.currentClass}"></span> / <span class="${u.totalClass}"></span>`), u.type === "progressbar" && (u.renderProgressbar ? y = u.renderProgressbar.call(e, u.progressbarFillClass) : y = `<span class="${u.progressbarFillClass}"></span>`), e.pagination.bullets = [], w.forEach((P) => {
3251
- u.type !== "custom" && Se(P, y || ""), u.type === "bullets" && e.pagination.bullets.push(...P.querySelectorAll(de(u.bulletClass)));
3252
- }), u.type !== "custom" && r("paginationRender", w[0]);
3250
+ u.type === "fraction" && (u.renderFraction ? y = u.renderFraction.call(e, u.currentClass, u.totalClass) : y = `<span class="${u.currentClass}"></span> / <span class="${u.totalClass}"></span>`), u.type === "progressbar" && (u.renderProgressbar ? y = u.renderProgressbar.call(e, u.progressbarFillClass) : y = `<span class="${u.progressbarFillClass}"></span>`), e.pagination.bullets = [], S.forEach((P) => {
3251
+ u.type !== "custom" && Te(P, y || ""), u.type === "bullets" && e.pagination.bullets.push(...P.querySelectorAll(ue(u.bulletClass)));
3252
+ }), u.type !== "custom" && n("paginationRender", S[0]);
3253
3253
  }
3254
3254
  function m() {
3255
- e.params.pagination = mt(e, e.originalParams.pagination, e.params.pagination, {
3255
+ e.params.pagination = St(e, e.originalParams.pagination, e.params.pagination, {
3256
3256
  el: "swiper-pagination"
3257
3257
  });
3258
3258
  const u = e.params.pagination;
3259
3259
  if (!u.el) return;
3260
3260
  let f;
3261
- typeof u.el == "string" && e.isElement && (f = e.el.querySelector(u.el)), !f && typeof u.el == "string" && (f = [...document.querySelectorAll(u.el)]), f || (f = u.el), !(!f || f.length === 0) && (e.params.uniqueNavElements && typeof u.el == "string" && Array.isArray(f) && f.length > 1 && (f = [...e.el.querySelectorAll(u.el)], f.length > 1 && (f = f.find((w) => Je(w, ".swiper")[0] === e.el))), Array.isArray(f) && f.length === 1 && (f = f[0]), Object.assign(e.pagination, {
3261
+ typeof u.el == "string" && e.isElement && (f = e.el.querySelector(u.el)), !f && typeof u.el == "string" && (f = [...document.querySelectorAll(u.el)]), f || (f = u.el), !(!f || f.length === 0) && (e.params.uniqueNavElements && typeof u.el == "string" && Array.isArray(f) && f.length > 1 && (f = [...e.el.querySelectorAll(u.el)], f.length > 1 && (f = f.find((S) => nt(S, ".swiper")[0] === e.el))), Array.isArray(f) && f.length === 1 && (f = f[0]), Object.assign(e.pagination, {
3262
3262
  el: f
3263
- }), f = G(f), f.forEach((w) => {
3264
- u.type === "bullets" && u.clickable && w.classList.add(...(u.clickableClass || "").split(" ")), w.classList.add(u.modifierClass + u.type), w.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.type === "bullets" && u.dynamicBullets && (w.classList.add(`${u.modifierClass}${u.type}-dynamic`), a = 0, u.dynamicMainBullets < 1 && (u.dynamicMainBullets = 1)), u.type === "progressbar" && u.progressbarOpposite && w.classList.add(u.progressbarOppositeClass), u.clickable && w.addEventListener("click", p), e.enabled || w.classList.add(u.lockClass);
3263
+ }), f = V(f), f.forEach((S) => {
3264
+ u.type === "bullets" && u.clickable && S.classList.add(...(u.clickableClass || "").split(" ")), S.classList.add(u.modifierClass + u.type), S.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.type === "bullets" && u.dynamicBullets && (S.classList.add(`${u.modifierClass}${u.type}-dynamic`), a = 0, u.dynamicMainBullets < 1 && (u.dynamicMainBullets = 1)), u.type === "progressbar" && u.progressbarOpposite && S.classList.add(u.progressbarOppositeClass), u.clickable && S.addEventListener("click", p), e.enabled || S.classList.add(u.lockClass);
3265
3265
  }));
3266
3266
  }
3267
- function S() {
3267
+ function b() {
3268
3268
  const u = e.params.pagination;
3269
3269
  if (o()) return;
3270
3270
  let f = e.pagination.el;
3271
- f && (f = G(f), f.forEach((w) => {
3272
- w.classList.remove(u.hiddenClass), w.classList.remove(u.modifierClass + u.type), w.classList.remove(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.clickable && (w.classList.remove(...(u.clickableClass || "").split(" ")), w.removeEventListener("click", p));
3273
- })), e.pagination.bullets && e.pagination.bullets.forEach((w) => w.classList.remove(...u.bulletActiveClass.split(" ")));
3271
+ f && (f = V(f), f.forEach((S) => {
3272
+ S.classList.remove(u.hiddenClass), S.classList.remove(u.modifierClass + u.type), S.classList.remove(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.clickable && (S.classList.remove(...(u.clickableClass || "").split(" ")), S.removeEventListener("click", p));
3273
+ })), e.pagination.bullets && e.pagination.bullets.forEach((S) => S.classList.remove(...u.bulletActiveClass.split(" ")));
3274
3274
  }
3275
3275
  s("changeDirection", () => {
3276
3276
  if (!e.pagination || !e.pagination.el) return;
@@ -3278,32 +3278,32 @@ function Os(t) {
3278
3278
  let {
3279
3279
  el: f
3280
3280
  } = e.pagination;
3281
- f = G(f), f.forEach((w) => {
3282
- w.classList.remove(u.horizontalClass, u.verticalClass), w.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass);
3281
+ f = V(f), f.forEach((S) => {
3282
+ S.classList.remove(u.horizontalClass, u.verticalClass), S.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass);
3283
3283
  });
3284
3284
  }), s("init", () => {
3285
- e.params.pagination.enabled === !1 ? g() : (m(), v(), h());
3285
+ e.params.pagination.enabled === !1 ? g() : (m(), w(), h());
3286
3286
  }), s("activeIndexChange", () => {
3287
3287
  typeof e.snapIndex > "u" && h();
3288
3288
  }), s("snapIndexChange", () => {
3289
3289
  h();
3290
3290
  }), s("snapGridLengthChange", () => {
3291
- v(), h();
3291
+ w(), h();
3292
3292
  }), s("destroy", () => {
3293
- S();
3293
+ b();
3294
3294
  }), s("enable disable", () => {
3295
3295
  let {
3296
3296
  el: u
3297
3297
  } = e.pagination;
3298
- u && (u = G(u), u.forEach((f) => f.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
3298
+ u && (u = V(u), u.forEach((f) => f.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
3299
3299
  }), s("lock unlock", () => {
3300
3300
  h();
3301
3301
  }), s("click", (u, f) => {
3302
- const w = f.target, y = G(e.pagination.el);
3303
- if (e.params.pagination.el && e.params.pagination.hideOnClick && y && y.length > 0 && !w.classList.contains(e.params.pagination.bulletClass)) {
3304
- if (e.navigation && (e.navigation.nextEl && w === e.navigation.nextEl || e.navigation.prevEl && w === e.navigation.prevEl)) return;
3302
+ const S = f.target, y = V(e.pagination.el);
3303
+ if (e.params.pagination.el && e.params.pagination.hideOnClick && y && y.length > 0 && !S.classList.contains(e.params.pagination.bulletClass)) {
3304
+ if (e.navigation && (e.navigation.nextEl && S === e.navigation.nextEl || e.navigation.prevEl && S === e.navigation.prevEl)) return;
3305
3305
  const P = y[0].classList.contains(e.params.pagination.hiddenClass);
3306
- r(P === !0 ? "paginationShow" : "paginationHide"), y.forEach((I) => I.classList.toggle(e.params.pagination.hiddenClass));
3306
+ n(P === !0 ? "paginationShow" : "paginationHide"), y.forEach((I) => I.classList.toggle(e.params.pagination.hiddenClass));
3307
3307
  }
3308
3308
  });
3309
3309
  const x = () => {
@@ -3311,21 +3311,21 @@ function Os(t) {
3311
3311
  let {
3312
3312
  el: u
3313
3313
  } = e.pagination;
3314
- u && (u = G(u), u.forEach((f) => f.classList.remove(e.params.pagination.paginationDisabledClass))), m(), v(), h();
3314
+ u && (u = V(u), u.forEach((f) => f.classList.remove(e.params.pagination.paginationDisabledClass))), m(), w(), h();
3315
3315
  }, g = () => {
3316
3316
  e.el.classList.add(e.params.pagination.paginationDisabledClass);
3317
3317
  let {
3318
3318
  el: u
3319
3319
  } = e.pagination;
3320
- u && (u = G(u), u.forEach((f) => f.classList.add(e.params.pagination.paginationDisabledClass))), S();
3320
+ u && (u = V(u), u.forEach((f) => f.classList.add(e.params.pagination.paginationDisabledClass))), b();
3321
3321
  };
3322
3322
  Object.assign(e.pagination, {
3323
3323
  enable: x,
3324
3324
  disable: g,
3325
- render: v,
3325
+ render: w,
3326
3326
  update: h,
3327
3327
  init: m,
3328
- destroy: S
3328
+ destroy: b
3329
3329
  });
3330
3330
  }
3331
3331
  /**
@@ -3334,71 +3334,71 @@ function Os(t) {
3334
3334
  * This source code is licensed under the ISC license.
3335
3335
  * See the LICENSE file in the root directory of this source tree.
3336
3336
  */
3337
- const zs = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], pe = $e("circle", zs);
3337
+ const Ds = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]], ve = Ve("circle", Ds);
3338
3338
  /**
3339
3339
  * @license lucide-react v0.542.0 - ISC
3340
3340
  *
3341
3341
  * This source code is licensed under the ISC license.
3342
3342
  * See the LICENSE file in the root directory of this source tree.
3343
3343
  */
3344
- const As = [
3344
+ const Bs = [
3345
3345
  ["path", { d: "M18 8L22 12L18 16", key: "1r0oui" }],
3346
3346
  ["path", { d: "M2 12H22", key: "1m8cig" }]
3347
- ], Ns = $e("move-right", As);
3347
+ ], Vs = Ve("move-right", Bs);
3348
3348
  /**
3349
3349
  * @license lucide-react v0.542.0 - ISC
3350
3350
  *
3351
3351
  * This source code is licensed under the ISC license.
3352
3352
  * See the LICENSE file in the root directory of this source tree.
3353
3353
  */
3354
- const $s = [
3354
+ const Fs = [
3355
3355
  ["path", { d: "M6 8L2 12L6 16", key: "kyvwex" }],
3356
3356
  ["path", { d: "M2 12H22", key: "1m8cig" }]
3357
- ], ks = $e("move-left", $s), Ds = "cZbkJ", Bs = "Wvq7U", Gs = "T2vT8", Vs = "khI-G", Hs = "TiSFA", Fs = "eLmVC", Rs = "q28da", Y = {
3358
- wrapper: Ds,
3359
- title: Bs,
3360
- image: Gs,
3361
- productName: Vs,
3362
- productCategory: Hs,
3363
- navButton: Fs,
3364
- pagination: Rs
3365
- }, js = () => {
3366
- var v, m, S;
3367
- const { retailer: t, isLoading: e, locale: i } = J(), { t: s } = ne("default"), [r, n] = W(null), [l, a] = W(0), o = X(null), d = () => {
3368
- r && r.slideNext();
3369
- }, c = () => {
3370
- r && r.slidePrev();
3357
+ ], Hs = Ve("move-left", Fs), Rs = "cZbkJ", js = "Wvq7U", Ws = "T2vT8", qs = "khI-G", Xs = "TiSFA", Ys = "eLmVC", Us = "q28da", K = {
3358
+ wrapper: Rs,
3359
+ title: js,
3360
+ image: Ws,
3361
+ productName: qs,
3362
+ productCategory: Xs,
3363
+ navButton: Ys,
3364
+ pagination: Us
3365
+ }, Ks = () => {
3366
+ var w, m, b;
3367
+ const { retailer: t, isLoading: e, locale: i } = te(), { t: s } = se("default"), [n, r] = X(null), [l, a] = X(0), o = U(null), c = () => {
3368
+ n && n.slideNext();
3369
+ }, d = () => {
3370
+ n && n.slidePrev();
3371
3371
  };
3372
- if (!e && !((v = t == null ? void 0 : t.retailer_location_products) != null && v.length))
3372
+ if (!e && !((w = t == null ? void 0 : t.retailer_location_products) != null && w.length))
3373
3373
  return null;
3374
3374
  const p = (m = t == null ? void 0 : t.retailer_location_products) == null ? void 0 : m.map((x, g) => {
3375
3375
  var f;
3376
3376
  const u = ((f = x.images) == null ? void 0 : f[0]) || `https://placehold.co/684x507?text=${x.name}`;
3377
- return /* @__PURE__ */ b(pt, { className: z(Y.slide), children: /* @__PURE__ */ b("div", { children: /* @__PURE__ */ A("a", { href: (x == null ? void 0 : x.url) || "#", className: "d-inline-block text-decoration-none", children: [
3378
- /* @__PURE__ */ b(
3377
+ return /* @__PURE__ */ v(wt, { className: L(K.slide), children: /* @__PURE__ */ v("div", { children: /* @__PURE__ */ N("a", { href: (x == null ? void 0 : x.url) || "#", className: "d-inline-block text-decoration-none", children: [
3378
+ /* @__PURE__ */ v(
3379
3379
  "img",
3380
3380
  {
3381
- className: z(Y.image),
3381
+ className: L(K.image),
3382
3382
  src: u,
3383
3383
  alt: x.name
3384
3384
  }
3385
3385
  ),
3386
- /* @__PURE__ */ b("h3", { className: z(Y.productName), children: x.name }),
3387
- /* @__PURE__ */ b("p", { className: Y.productCategory, children: x.category })
3386
+ /* @__PURE__ */ v("h3", { className: L(K.productName), children: x.name }),
3387
+ /* @__PURE__ */ v("p", { className: K.productCategory, children: x.category })
3388
3388
  ] }) }) }, g);
3389
3389
  }), h = l === 0;
3390
- return console.log("currentIndex", l, h), /* @__PURE__ */ A("section", { className: Y.wrapper, children: [
3391
- /* @__PURE__ */ b("h2", { className: z(Y.title), children: s("retailer.product_feed.title") }),
3392
- /* @__PURE__ */ b("div", { children: /* @__PURE__ */ b(
3393
- ft,
3390
+ return console.log("currentIndex", l, h), /* @__PURE__ */ N("section", { className: K.wrapper, children: [
3391
+ /* @__PURE__ */ v("h2", { className: L(K.title), children: s("retailer.product_feed.title") }),
3392
+ /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(
3393
+ vt,
3394
3394
  {
3395
- className: z(Y.swiper),
3395
+ className: L(K.swiper),
3396
3396
  slidesPerView: 1,
3397
3397
  spaceBetween: 16,
3398
3398
  autoHeight: !0,
3399
- onSwiper: n,
3399
+ onSwiper: r,
3400
3400
  onSlideChange: (x) => a(x.activeIndex),
3401
- modules: [Os, _s],
3401
+ modules: [Gs, ks],
3402
3402
  pagination: {
3403
3403
  dynamicBullets: !0,
3404
3404
  el: o.current,
@@ -3424,145 +3424,214 @@ const $s = [
3424
3424
  children: p
3425
3425
  }
3426
3426
  ) }),
3427
- /* @__PURE__ */ A("div", { className: "d-flex align-items-center justify-content-center mt-4", children: [
3428
- /* @__PURE__ */ b(Be, { variant: "light", className: Y.navButton, onClick: c, disabled: h, children: /* @__PURE__ */ b(ks, {}) }),
3429
- /* @__PURE__ */ b("div", { ref: o, className: `custom-pagination ${Y.pagination}` }),
3430
- /* @__PURE__ */ b(Be, { variant: "light", className: Y.navButton, onClick: d, disabled: r && l === ((S = t == null ? void 0 : t.retailer_location_products) == null ? void 0 : S.length) - r.params.slidesPerView, children: /* @__PURE__ */ b(Ns, {}) })
3427
+ /* @__PURE__ */ N("div", { className: "d-flex align-items-center justify-content-center mt-4", children: [
3428
+ /* @__PURE__ */ v(Ae, { variant: "light", className: K.navButton, onClick: d, disabled: h, children: /* @__PURE__ */ v(Hs, {}) }),
3429
+ /* @__PURE__ */ v("div", { ref: o, className: `custom-pagination ${K.pagination}` }),
3430
+ /* @__PURE__ */ v(Ae, { variant: "light", className: K.navButton, onClick: c, disabled: n && l === ((b = t == null ? void 0 : t.retailer_location_products) == null ? void 0 : b.length) - n.params.slidesPerView, children: /* @__PURE__ */ v(Vs, {}) })
3431
3431
  ] })
3432
3432
  ] });
3433
- }, Ws = "cRGD-", qs = "JZbFO", Xs = "q7sBX", Ys = "e0Iyb", Us = "M-2w0", Ks = "_04I0I", Z = {
3434
- wrapper: Ws,
3435
- h2: qs,
3436
- h3: Xs,
3437
- text: Ys,
3438
- image: Us,
3439
- link: Ks
3440
- }, Zs = () => {
3441
- const { locale: t } = J(), { t: e } = ne("default");
3442
- return /* @__PURE__ */ b("div", { className: z(Z.wrapper), children: /* @__PURE__ */ A(_e, { children: [
3443
- /* @__PURE__ */ b(U, { children: /* @__PURE__ */ A(j, { className: "text-center", children: [
3444
- /* @__PURE__ */ b("h2", { className: z(Z.h2), children: e("retailer.get_inspired.title") }),
3445
- /* @__PURE__ */ b("p", { className: z(Z.text), children: e("retailer.get_inspired.text") })
3433
+ }, Zs = "cRGD-", Qs = "JZbFO", Js = "q7sBX", en = "e0Iyb", tn = "M-2w0", sn = "_04I0I", J = {
3434
+ wrapper: Zs,
3435
+ h2: Qs,
3436
+ h3: Js,
3437
+ text: en,
3438
+ image: tn,
3439
+ link: sn
3440
+ }, nn = () => {
3441
+ const { locale: t } = te(), { t: e } = se("default");
3442
+ return /* @__PURE__ */ v("div", { className: L(J.wrapper), children: /* @__PURE__ */ N($e, { children: [
3443
+ /* @__PURE__ */ v(Z, { children: /* @__PURE__ */ N(q, { className: "text-center", children: [
3444
+ /* @__PURE__ */ v("h2", { className: L(J.h2), children: e("retailer.get_inspired.title") }),
3445
+ /* @__PURE__ */ v("p", { className: L(J.text), children: e("retailer.get_inspired.text") })
3446
3446
  ] }) }),
3447
- /* @__PURE__ */ A(U, { children: [
3448
- /* @__PURE__ */ A(j, { xs: 12, md: 6, children: [
3449
- /* @__PURE__ */ b("span", { className: z(Z.image), children: /* @__PURE__ */ b("img", { src: "https://ik.imagekit.io/ccimg/palliser/Palliser-store-details-quiz.jpg?updatedAt=1759260509721", alt: "", className: "img-fluid w-100" }) }),
3450
- /* @__PURE__ */ b("h3", { className: z(Z.h3), children: e("retailer.get_inspired.find_your_style.title") }),
3451
- /* @__PURE__ */ b("p", { className: "fs-6", children: e("retailer.get_inspired.find_your_style.text") }),
3452
- /* @__PURE__ */ A("a", { href: "https://www.palliser.com/style-finder", className: z(Z.link), children: [
3447
+ /* @__PURE__ */ N(Z, { children: [
3448
+ /* @__PURE__ */ N(q, { xs: 12, md: 6, children: [
3449
+ /* @__PURE__ */ v("span", { className: L(J.image), children: /* @__PURE__ */ v("img", { src: "https://ik.imagekit.io/ccimg/palliser/Palliser-store-details-quiz.jpg?updatedAt=1759260509721", alt: "", className: "img-fluid w-100" }) }),
3450
+ /* @__PURE__ */ v("h3", { className: L(J.h3), children: e("retailer.get_inspired.find_your_style.title") }),
3451
+ /* @__PURE__ */ v("p", { className: "fs-6", children: e("retailer.get_inspired.find_your_style.text") }),
3452
+ /* @__PURE__ */ N("a", { href: "https://www.palliser.com/style-finder", className: L(J.link), children: [
3453
3453
  e("retailer.get_inspired.find_your_style.cta"),
3454
3454
  " >"
3455
3455
  ] })
3456
3456
  ] }),
3457
- /* @__PURE__ */ A(j, { xs: 12, md: 6, children: [
3458
- /* @__PURE__ */ b("span", { className: z(Z.image), children: /* @__PURE__ */ b("img", { src: "https://ik.imagekit.io/ccimg/palliser/Palliser-store-details-requestswatch.jpg?updatedAt=1759260516937", alt: "", className: "img-fluid w-100" }) }),
3459
- /* @__PURE__ */ b("h3", { className: z(Z.h3), children: e("retailer.get_inspired.request_a_swatch.title") }),
3460
- /* @__PURE__ */ b("p", { className: "fs-6", children: e("retailer.get_inspired.request_a_swatch.text") }),
3461
- /* @__PURE__ */ b("a", { href: "https://www.palliser.com/request-swatches", className: z(Z.link), children: e("retailer.get_inspired.request_a_swatch.cta") })
3457
+ /* @__PURE__ */ N(q, { xs: 12, md: 6, children: [
3458
+ /* @__PURE__ */ v("span", { className: L(J.image), children: /* @__PURE__ */ v("img", { src: "https://ik.imagekit.io/ccimg/palliser/Palliser-store-details-requestswatch.jpg?updatedAt=1759260516937", alt: "", className: "img-fluid w-100" }) }),
3459
+ /* @__PURE__ */ v("h3", { className: L(J.h3), children: e("retailer.get_inspired.request_a_swatch.title") }),
3460
+ /* @__PURE__ */ v("p", { className: "fs-6", children: e("retailer.get_inspired.request_a_swatch.text") }),
3461
+ /* @__PURE__ */ v("a", { href: "https://www.palliser.com/request-swatches", className: L(J.link), children: e("retailer.get_inspired.request_a_swatch.cta") })
3462
3462
  ] })
3463
3463
  ] })
3464
3464
  ] }) });
3465
- }, Qs = "pLXZH", Js = "EJh7m", Ie = {
3466
- bg: Qs,
3467
- content: Js
3468
- }, en = () => {
3465
+ }, rn = "pLXZH", an = "EJh7m", Ne = {
3466
+ bg: rn,
3467
+ content: an
3468
+ }, ln = () => {
3469
3469
  var i, s;
3470
- const { retailer: t } = J(), { t: e } = ne("default");
3471
- return /* @__PURE__ */ b("div", { className: Ie.container, children: /* @__PURE__ */ A("div", { className: Ie.bg, children: [
3472
- /* @__PURE__ */ b("img", { src: "//cdn.sofasandsectionals.com/cc/retailer-main.jpg", alt: "Discover the Palliser Difference" }),
3473
- /* @__PURE__ */ b(U, { className: "mx-4", children: /* @__PURE__ */ b(j, { xs: 12, sm: 12, md: 12, lg: { span: 6, offset: 1 }, xl: { span: 4, offset: 1 }, children: /* @__PURE__ */ A("div", { className: Ie.content, children: [
3474
- /* @__PURE__ */ b("h2", { children: e("discover_palliser.title", { retailerCity: (i = t == null ? void 0 : t.address) == null ? void 0 : i.city, retailerName: t.retailer_name }) }),
3475
- /* @__PURE__ */ b("p", { className: "fs-6", children: e("discover_palliser.description", { retailerCity: (s = t == null ? void 0 : t.address) == null ? void 0 : s.city, retailerName: t.retailer_name }) })
3470
+ const { retailer: t } = te(), { t: e } = se("default");
3471
+ return /* @__PURE__ */ v("div", { className: Ne.container, children: /* @__PURE__ */ N("div", { className: Ne.bg, children: [
3472
+ /* @__PURE__ */ v("img", { src: "//cdn.sofasandsectionals.com/cc/retailer-main.jpg", alt: "Discover the Palliser Difference" }),
3473
+ /* @__PURE__ */ v(Z, { className: "mx-4", children: /* @__PURE__ */ v(q, { xs: 12, sm: 12, md: 12, lg: { span: 6, offset: 1 }, xl: { span: 4, offset: 1 }, children: /* @__PURE__ */ N("div", { className: Ne.content, children: [
3474
+ /* @__PURE__ */ v("h2", { children: e("discover_palliser.title", { retailerCity: (i = t == null ? void 0 : t.address) == null ? void 0 : i.city, retailerName: t.retailer_name }) }),
3475
+ /* @__PURE__ */ v("p", { className: "fs-6", children: e("discover_palliser.description", { retailerCity: (s = t == null ? void 0 : t.address) == null ? void 0 : s.city, retailerName: t.retailer_name }) })
3476
3476
  ] }) }) })
3477
3477
  ] }) });
3478
- }, tn = () => {
3479
- const { messageModalOpen: t, setMessageModalOpen: e, retailer: i, locale: s } = J();
3480
- return /* @__PURE__ */ b(Lt, { messageModalOpen: t, setMessageModalOpen: e, selectedLocation: i, locale: s });
3481
- }, sn = () => {
3482
- var s, r;
3483
- const { retailer: t } = J(), e = Tt(), i = (t == null ? void 0 : t.store_type) === "Palliser Studio" ? e.studioSelected : e.standardSelected;
3484
- return /* @__PURE__ */ b(
3485
- Et,
3478
+ }, on = "qhCFp", dn = "b5DbC", cn = "As4TB", un = "_7Sbgn", fn = "rNiD8", pn = "WvNbK", R = {
3479
+ title: on,
3480
+ formGroup: dn,
3481
+ optIn: cn,
3482
+ submit: un,
3483
+ error: fn,
3484
+ success: pn
3485
+ }, mn = ({ messageModalOpen: t, setMessageModalOpen: e, selectedLocation: i, locale: s }) => {
3486
+ const { t: n } = se("default"), [r, l] = X(!1), a = /^((\\+[1-9]{1,4}[ \\-]*)|(\\([0-9]{2,3}\\)[ \\-]*)|([0-9]{2,4})[ \\-]*)*?[0-9]{3,4}?[ \\-]*[0-9]{3,4}?$/, o = Mt({
3487
+ name: pe().required(n("message.validation.name")),
3488
+ email: pe().email(n("message.validation.email")).required(n("message.validation.email")),
3489
+ phone: pe().matches(a, "Phone number is not valid"),
3490
+ message: pe().required(n("message.validation.message")),
3491
+ optIn: It().oneOf([!0], n("message.validation.optIn"))
3492
+ }), d = Lt({
3493
+ initialValues: {
3494
+ name: "",
3495
+ email: "",
3496
+ phone: "",
3497
+ message: "",
3498
+ optIn: !1
3499
+ },
3500
+ validationSchema: o,
3501
+ onSubmit: async (w) => {
3502
+ await new Promise((m) => setTimeout(m, 1e3)), l(!0);
3503
+ }
3504
+ }), p = () => {
3505
+ e(!1), l(!1), d.resetForm();
3506
+ }, h = document.querySelector(".cc") || null;
3507
+ return /* @__PURE__ */ N(me, { container: h, show: t, onHide: p, children: [
3508
+ /* @__PURE__ */ v(me.Header, { closeButton: !0, children: /* @__PURE__ */ N(me.Title, { className: L(R.title), children: [
3509
+ n("message.title"),
3510
+ " ",
3511
+ i == null ? void 0 : i.retailer_name
3512
+ ] }) }),
3513
+ /* @__PURE__ */ v(me.Body, { children: /* @__PURE__ */ N(D, { onSubmit: d.handleSubmit, children: [
3514
+ /* @__PURE__ */ N(D.Group, { className: L(R.formGroup), children: [
3515
+ /* @__PURE__ */ v(D.Label, { children: n("message.name") }),
3516
+ /* @__PURE__ */ v(D.Control, { type: "text", name: "name", value: d.values.name, onChange: d.handleChange }),
3517
+ d.errors.name && d.touched.name && /* @__PURE__ */ v(D.Text, { className: L(R.error), children: d.errors.name })
3518
+ ] }),
3519
+ /* @__PURE__ */ N(D.Group, { className: L(R.formGroup), children: [
3520
+ /* @__PURE__ */ v(D.Label, { children: n("message.email") }),
3521
+ /* @__PURE__ */ v(D.Control, { type: "email", name: "email", value: d.values.email, onChange: d.handleChange }),
3522
+ d.errors.email && /* @__PURE__ */ v(D.Text, { className: L(R.error), children: d.errors.email })
3523
+ ] }),
3524
+ /* @__PURE__ */ N(D.Group, { className: L(R.formGroup), children: [
3525
+ /* @__PURE__ */ v(D.Label, { children: n("message.phone") }),
3526
+ /* @__PURE__ */ v(D.Control, { type: "tel", name: "phone", value: d.values.phone, onChange: d.handleChange }),
3527
+ d.errors.phone && /* @__PURE__ */ v(D.Text, { className: L(R.error), children: d.errors.phone })
3528
+ ] }),
3529
+ /* @__PURE__ */ N(D.Group, { className: L(R.formGroup), children: [
3530
+ /* @__PURE__ */ v(D.Label, { children: n("message.message") }),
3531
+ /* @__PURE__ */ v(D.Control, { as: "textarea", name: "message", value: d.values.message, onChange: d.handleChange }),
3532
+ d.errors.message && /* @__PURE__ */ v(D.Text, { className: L(R.error), children: d.errors.message })
3533
+ ] }),
3534
+ /* @__PURE__ */ N(D.Group, { className: L(R.formGroup, R.optIn), children: [
3535
+ /* @__PURE__ */ v(D.Check, { type: "checkbox", name: "optIn", label: n("message.optIn"), checked: d.values.optIn, onChange: d.handleChange }),
3536
+ d.errors.optIn && /* @__PURE__ */ v(D.Text, { className: L(R.error), children: d.errors.optIn })
3537
+ ] }),
3538
+ /* @__PURE__ */ N(Ae, { className: L(R.submit), type: "submit", disabled: d.isSubmitting || r, children: [
3539
+ !r && /* @__PURE__ */ v(Ze, { children: d.isSubmitting ? n("message.sending") : n("message.send") }),
3540
+ r && n("message.sent"),
3541
+ d.isSubmitting && /* @__PURE__ */ v("img", { src: "https://images.sofasandsectionals.com/cc/pal-loader.svg", alt: "Loading", width: 20, height: 20 })
3542
+ ] }),
3543
+ /* @__PURE__ */ v(D.Text, { className: L(R.success), children: r && n("message.success") }),
3544
+ /* @__PURE__ */ v(D.Text, { className: L(R.error), children: d.errors.general })
3545
+ ] }) })
3546
+ ] });
3547
+ }, hn = () => {
3548
+ const { messageModalOpen: t, setMessageModalOpen: e, retailer: i, locale: s } = te();
3549
+ return /* @__PURE__ */ v(mn, { messageModalOpen: t, setMessageModalOpen: e, selectedLocation: i, locale: s });
3550
+ }, gn = () => {
3551
+ var s, n;
3552
+ const { retailer: t } = te(), e = _t(), i = (t == null ? void 0 : t.store_type) === "Palliser Studio" ? e.studioSelected : e.standardSelected;
3553
+ return /* @__PURE__ */ v(
3554
+ Ot,
3486
3555
  {
3487
- position: { lat: ((s = t == null ? void 0 : t.address) == null ? void 0 : s.latitude) * 1, lng: ((r = t == null ? void 0 : t.address) == null ? void 0 : r.longitude) * 1 },
3488
- children: /* @__PURE__ */ b("img", { src: i, style: { width: 30 } })
3556
+ position: { lat: ((s = t == null ? void 0 : t.address) == null ? void 0 : s.latitude) * 1, lng: ((n = t == null ? void 0 : t.address) == null ? void 0 : n.longitude) * 1 },
3557
+ children: /* @__PURE__ */ v("img", { src: i, style: { width: 30 } })
3489
3558
  }
3490
3559
  );
3491
- }, nn = {}, rn = () => {
3492
- var l, a, o, d;
3493
- const { retailer: t } = J(), e = Ct(), [i, s] = W(null), [r, n] = W(10);
3494
- return ie(() => {
3560
+ }, vn = {}, wn = () => {
3561
+ var l, a, o, c;
3562
+ const { retailer: t } = te(), e = Nt(), [i, s] = X(null), [n, r] = X(10);
3563
+ return re(() => {
3495
3564
  e && s(e);
3496
- }, [e, s]), !((l = t == null ? void 0 : t.address) != null && l.latitude) || !((a = t == null ? void 0 : t.address) != null && a.longitude) ? null : /* @__PURE__ */ b(vt, { children: /* @__PURE__ */ b(
3497
- Pt,
3565
+ }, [e, s]), !((l = t == null ? void 0 : t.address) != null && l.latitude) || !((a = t == null ? void 0 : t.address) != null && a.longitude) ? null : /* @__PURE__ */ v(Ze, { children: /* @__PURE__ */ v(
3566
+ zt,
3498
3567
  {
3499
- className: z(nn.map),
3500
- zoom: r,
3568
+ className: L(vn.map),
3569
+ zoom: n,
3501
3570
  center: {
3502
3571
  lat: ((o = t == null ? void 0 : t.address) == null ? void 0 : o.latitude) * 1,
3503
- lng: ((d = t == null ? void 0 : t.address) == null ? void 0 : d.longitude) * 1
3572
+ lng: ((c = t == null ? void 0 : t.address) == null ? void 0 : c.longitude) * 1
3504
3573
  },
3505
3574
  mapId: "fb10c7a27b297863",
3506
3575
  gestureHandling: "greedy",
3507
3576
  zoomControl: !0,
3508
3577
  disableDefaultUI: !0,
3509
- children: /* @__PURE__ */ b(sn, { location: t }, t.id)
3578
+ children: /* @__PURE__ */ v(gn, { location: t }, t.id)
3510
3579
  }
3511
3580
  ) });
3512
- }, an = "bWrTW", ln = "HkXfs", Le = {
3513
- video: an,
3514
- studioInformation: ln
3515
- }, on = () => {
3581
+ }, Sn = "bWrTW", bn = "HkXfs", ze = {
3582
+ video: Sn,
3583
+ studioInformation: bn
3584
+ }, yn = () => {
3516
3585
  var s;
3517
- const { t } = ne("default"), { retailer: e } = J();
3518
- return ((s = e == null ? void 0 : e.store_type) == null ? void 0 : s.toLowerCase().includes("studio")) ? /* @__PURE__ */ A(U, { className: `mb-5 ${Le.studioInformation}`, children: [
3519
- /* @__PURE__ */ b(j, { xs: 12, md: 12, lg: 6, className: "mb-3", children: /* @__PURE__ */ b("div", { className: "d-flex align-items-center h-100", children: /* @__PURE__ */ b("video", { className: Le.video, autoPlay: !0, muted: !0, loop: !0, playsInline: !0, children: /* @__PURE__ */ b("source", { src: "//cdn.sofasandsectionals.com/cc/studio.mp4", type: "video/mp4" }) }) }) }),
3520
- /* @__PURE__ */ b(j, { xs: 12, md: 12, lg: 6, className: "mb-3 d-flex align-items-center", children: /* @__PURE__ */ b("div", { children: /* @__PURE__ */ b("div", { children: /* @__PURE__ */ b(U, { children: /* @__PURE__ */ b(j, { className: "text-center", children: /* @__PURE__ */ A("div", { className: z(Le.services), children: [
3521
- /* @__PURE__ */ b("h3", { className: "text-start mb-3 fw-bold", children: t("studio_information.title") }),
3522
- /* @__PURE__ */ A("div", { className: "text-start", children: [
3523
- /* @__PURE__ */ A("div", { className: "mb-3 d-flex align-items-start", children: [
3524
- /* @__PURE__ */ b("div", { className: "me-2 mt-2", children: /* @__PURE__ */ b(pe, { size: 6, fill: !0 }) }),
3525
- /* @__PURE__ */ b("div", { className: "fs-6", dangerouslySetInnerHTML: { __html: t("studio_information.bullet_one") } })
3586
+ const { t } = se("default"), { retailer: e } = te();
3587
+ return ((s = e == null ? void 0 : e.store_type) == null ? void 0 : s.toLowerCase().includes("studio")) ? /* @__PURE__ */ N(Z, { className: `mb-5 ${ze.studioInformation}`, children: [
3588
+ /* @__PURE__ */ v(q, { xs: 12, md: 12, lg: 6, className: "mb-3", children: /* @__PURE__ */ v("div", { className: "d-flex align-items-center h-100", children: /* @__PURE__ */ v("video", { className: ze.video, autoPlay: !0, muted: !0, loop: !0, playsInline: !0, children: /* @__PURE__ */ v("source", { src: "//cdn.sofasandsectionals.com/cc/studio.mp4", type: "video/mp4" }) }) }) }),
3589
+ /* @__PURE__ */ v(q, { xs: 12, md: 12, lg: 6, className: "mb-3 d-flex align-items-center", children: /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(Z, { children: /* @__PURE__ */ v(q, { className: "text-center", children: /* @__PURE__ */ N("div", { className: L(ze.services), children: [
3590
+ /* @__PURE__ */ v("h3", { className: "text-start mb-3 fw-bold", children: t("studio_information.title") }),
3591
+ /* @__PURE__ */ N("div", { className: "text-start", children: [
3592
+ /* @__PURE__ */ N("div", { className: "mb-3 d-flex align-items-start", children: [
3593
+ /* @__PURE__ */ v("div", { className: "me-2 mt-2", children: /* @__PURE__ */ v(ve, { size: 6, fill: !0 }) }),
3594
+ /* @__PURE__ */ v("div", { className: "fs-6", dangerouslySetInnerHTML: { __html: t("studio_information.bullet_one") } })
3526
3595
  ] }),
3527
- /* @__PURE__ */ A("div", { className: "mb-3 d-flex align-items-start", children: [
3528
- /* @__PURE__ */ b("div", { className: "me-2 mt-2", children: /* @__PURE__ */ b(pe, { size: 6, fill: !0 }) }),
3529
- /* @__PURE__ */ b("div", { className: "fs-6", dangerouslySetInnerHTML: { __html: t("studio_information.bullet_two") } })
3596
+ /* @__PURE__ */ N("div", { className: "mb-3 d-flex align-items-start", children: [
3597
+ /* @__PURE__ */ v("div", { className: "me-2 mt-2", children: /* @__PURE__ */ v(ve, { size: 6, fill: !0 }) }),
3598
+ /* @__PURE__ */ v("div", { className: "fs-6", dangerouslySetInnerHTML: { __html: t("studio_information.bullet_two") } })
3530
3599
  ] }),
3531
- /* @__PURE__ */ A("div", { className: "mb-3 d-flex align-items-start", children: [
3532
- /* @__PURE__ */ b("div", { className: "me-2 mt-2", children: /* @__PURE__ */ b(pe, { size: 6, fill: !0 }) }),
3533
- /* @__PURE__ */ b("div", { className: "fs-6", dangerouslySetInnerHTML: { __html: t("studio_information.bullet_three") } })
3600
+ /* @__PURE__ */ N("div", { className: "mb-3 d-flex align-items-start", children: [
3601
+ /* @__PURE__ */ v("div", { className: "me-2 mt-2", children: /* @__PURE__ */ v(ve, { size: 6, fill: !0 }) }),
3602
+ /* @__PURE__ */ v("div", { className: "fs-6", dangerouslySetInnerHTML: { __html: t("studio_information.bullet_three") } })
3534
3603
  ] }),
3535
- /* @__PURE__ */ A("div", { className: "mb-3 d-flex align-items-start", children: [
3536
- /* @__PURE__ */ b("div", { className: "me-2 mt-2", children: /* @__PURE__ */ b(pe, { size: 6, fill: !0 }) }),
3537
- /* @__PURE__ */ b("div", { className: "fs-6", dangerouslySetInnerHTML: { __html: t("studio_information.bullet_four") } })
3604
+ /* @__PURE__ */ N("div", { className: "mb-3 d-flex align-items-start", children: [
3605
+ /* @__PURE__ */ v("div", { className: "me-2 mt-2", children: /* @__PURE__ */ v(ve, { size: 6, fill: !0 }) }),
3606
+ /* @__PURE__ */ v("div", { className: "fs-6", dangerouslySetInnerHTML: { __html: t("studio_information.bullet_four") } })
3538
3607
  ] })
3539
3608
  ] })
3540
3609
  ] }) }) }) }) }) })
3541
3610
  ] }) : null;
3542
- }, dn = "yhT6j", cn = {
3543
- backToRetailers: dn
3611
+ }, xn = "yhT6j", Tn = {
3612
+ backToRetailers: xn
3544
3613
  };
3545
- function gn({ id: t, locale: e }) {
3546
- return ie(() => {
3547
- Ge.changeLanguage(e);
3548
- }, [e]), /* @__PURE__ */ b(Mt, { i18n: Ge, children: /* @__PURE__ */ b(It, { apiKey: "AIzaSyAnJmWEU1r63DiRWHkjczxzHyIEq3dhj4M", libraries: ["places"], children: /* @__PURE__ */ b(_t, { id: t, children: /* @__PURE__ */ A("div", { className: "cc-scope", children: [
3549
- /* @__PURE__ */ A(_e, { fluid: !0, className: "px-5", children: [
3550
- /* @__PURE__ */ b(U, { children: /* @__PURE__ */ b(j, { children: /* @__PURE__ */ b(ti, {}) }) }),
3551
- /* @__PURE__ */ A(U, { className: "mb-5", children: [
3552
- /* @__PURE__ */ b(j, { md: { span: 6 }, lg: { span: 4 }, children: /* @__PURE__ */ b(Qt, {}) }),
3553
- /* @__PURE__ */ b(j, { children: /* @__PURE__ */ b(rn, {}) })
3614
+ function Ln({ id: t, locale: e }) {
3615
+ return re(() => {
3616
+ Re.changeLanguage(e);
3617
+ }, [e]), /* @__PURE__ */ v(At, { i18n: Re, children: /* @__PURE__ */ v($t, { apiKey: "AIzaSyAnJmWEU1r63DiRWHkjczxzHyIEq3dhj4M", libraries: ["places"], children: /* @__PURE__ */ v(kt, { id: t, children: /* @__PURE__ */ N("div", { className: "cc-scope", children: [
3618
+ /* @__PURE__ */ N($e, { fluid: !0, className: "px-5", children: [
3619
+ /* @__PURE__ */ v(Z, { children: /* @__PURE__ */ v(q, { children: /* @__PURE__ */ v(li, {}) }) }),
3620
+ /* @__PURE__ */ N(Z, { className: "mb-5", children: [
3621
+ /* @__PURE__ */ v(q, { md: { span: 6 }, lg: { span: 4 }, children: /* @__PURE__ */ v(ni, {}) }),
3622
+ /* @__PURE__ */ v(q, { children: /* @__PURE__ */ v(wn, {}) })
3554
3623
  ] }),
3555
- /* @__PURE__ */ b(U, { className: "mb-5", children: /* @__PURE__ */ b(j, { children: /* @__PURE__ */ b("div", { className: "py-3", children: /* @__PURE__ */ b(js, {}) }) }) }),
3556
- /* @__PURE__ */ b(on, {})
3624
+ /* @__PURE__ */ v(Z, { className: "mb-5", children: /* @__PURE__ */ v(q, { children: /* @__PURE__ */ v("div", { className: "py-3", children: /* @__PURE__ */ v(Ks, {}) }) }) }),
3625
+ /* @__PURE__ */ v(yn, {})
3557
3626
  ] }),
3558
- /* @__PURE__ */ b("div", { className: "mb-5", children: /* @__PURE__ */ b(en, {}) }),
3559
- /* @__PURE__ */ A(_e, { children: [
3560
- /* @__PURE__ */ b(U, { children: /* @__PURE__ */ b(j, { children: /* @__PURE__ */ b(Zs, {}) }) }),
3561
- /* @__PURE__ */ b(U, { children: /* @__PURE__ */ b(j, { children: /* @__PURE__ */ b("div", { className: "py-5 text-center fs-6", children: /* @__PURE__ */ b("a", { href: "/retailers", className: z(cn.backToRetailers), children: "Back to Store Locator" }) }) }) })
3627
+ /* @__PURE__ */ v("div", { className: "mb-5", children: /* @__PURE__ */ v(ln, {}) }),
3628
+ /* @__PURE__ */ N($e, { children: [
3629
+ /* @__PURE__ */ v(Z, { children: /* @__PURE__ */ v(q, { children: /* @__PURE__ */ v(nn, {}) }) }),
3630
+ /* @__PURE__ */ v(Z, { children: /* @__PURE__ */ v(q, { children: /* @__PURE__ */ v("div", { className: "py-5 text-center fs-6", children: /* @__PURE__ */ v("a", { href: "/retailers", className: L(Tn.backToRetailers), children: "Back to Store Locator" }) }) }) })
3562
3631
  ] }),
3563
- /* @__PURE__ */ b(tn, {})
3632
+ /* @__PURE__ */ v(hn, {})
3564
3633
  ] }) }) }) });
3565
3634
  }
3566
3635
  export {
3567
- gn as default
3636
+ Ln as default
3568
3637
  };