ire-preview 3.1.3 → 3.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4033 @@
1
+ function Ue(e) {
2
+ return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
3
+ }
4
+ function Ge(e, t) {
5
+ e === void 0 && (e = {}), t === void 0 && (t = {});
6
+ const s = ["__proto__", "constructor", "prototype"];
7
+ Object.keys(t).filter((i) => s.indexOf(i) < 0).forEach((i) => {
8
+ typeof e[i] > "u" ? e[i] = t[i] : Ue(t[i]) && Ue(e[i]) && Object.keys(t[i]).length > 0 && Ge(e[i], t[i]);
9
+ });
10
+ }
11
+ const ft = {
12
+ body: {},
13
+ addEventListener() {
14
+ },
15
+ removeEventListener() {
16
+ },
17
+ activeElement: {
18
+ blur() {
19
+ },
20
+ nodeName: ""
21
+ },
22
+ querySelector() {
23
+ return null;
24
+ },
25
+ querySelectorAll() {
26
+ return [];
27
+ },
28
+ getElementById() {
29
+ return null;
30
+ },
31
+ createEvent() {
32
+ return {
33
+ initEvent() {
34
+ }
35
+ };
36
+ },
37
+ createElement() {
38
+ return {
39
+ children: [],
40
+ childNodes: [],
41
+ style: {},
42
+ setAttribute() {
43
+ },
44
+ getElementsByTagName() {
45
+ return [];
46
+ }
47
+ };
48
+ },
49
+ createElementNS() {
50
+ return {};
51
+ },
52
+ importNode() {
53
+ return null;
54
+ },
55
+ location: {
56
+ hash: "",
57
+ host: "",
58
+ hostname: "",
59
+ href: "",
60
+ origin: "",
61
+ pathname: "",
62
+ protocol: "",
63
+ search: ""
64
+ }
65
+ };
66
+ function Q() {
67
+ const e = typeof document < "u" ? document : {};
68
+ return Ge(e, ft), e;
69
+ }
70
+ const Wt = {
71
+ document: ft,
72
+ navigator: {
73
+ userAgent: ""
74
+ },
75
+ location: {
76
+ hash: "",
77
+ host: "",
78
+ hostname: "",
79
+ href: "",
80
+ origin: "",
81
+ pathname: "",
82
+ protocol: "",
83
+ search: ""
84
+ },
85
+ history: {
86
+ replaceState() {
87
+ },
88
+ pushState() {
89
+ },
90
+ go() {
91
+ },
92
+ back() {
93
+ }
94
+ },
95
+ CustomEvent: function() {
96
+ return this;
97
+ },
98
+ addEventListener() {
99
+ },
100
+ removeEventListener() {
101
+ },
102
+ getComputedStyle() {
103
+ return {
104
+ getPropertyValue() {
105
+ return "";
106
+ }
107
+ };
108
+ },
109
+ Image() {
110
+ },
111
+ Date() {
112
+ },
113
+ screen: {},
114
+ setTimeout() {
115
+ },
116
+ clearTimeout() {
117
+ },
118
+ matchMedia() {
119
+ return {};
120
+ },
121
+ requestAnimationFrame(e) {
122
+ return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
123
+ },
124
+ cancelAnimationFrame(e) {
125
+ typeof setTimeout > "u" || clearTimeout(e);
126
+ }
127
+ };
128
+ function N() {
129
+ const e = typeof window < "u" ? window : {};
130
+ return Ge(e, Wt), e;
131
+ }
132
+ function Xt(e) {
133
+ return e === void 0 && (e = ""), e.trim().split(" ").filter((t) => !!t.trim());
134
+ }
135
+ function Yt(e) {
136
+ const t = e;
137
+ Object.keys(t).forEach((s) => {
138
+ try {
139
+ t[s] = null;
140
+ } catch {
141
+ }
142
+ try {
143
+ delete t[s];
144
+ } catch {
145
+ }
146
+ });
147
+ }
148
+ function pt(e, t) {
149
+ return t === void 0 && (t = 0), setTimeout(e, t);
150
+ }
151
+ function ue() {
152
+ return Date.now();
153
+ }
154
+ function Jt(e) {
155
+ const t = N();
156
+ let s;
157
+ return t.getComputedStyle && (s = t.getComputedStyle(e, null)), !s && e.currentStyle && (s = e.currentStyle), s || (s = e.style), s;
158
+ }
159
+ function Kt(e, t) {
160
+ t === void 0 && (t = "x");
161
+ const s = N();
162
+ let i, r, n;
163
+ const o = Jt(e);
164
+ return s.WebKitCSSMatrix ? (r = o.transform || o.webkitTransform, r.split(",").length > 6 && (r = r.split(", ").map((a) => a.replace(",", ".")).join(", ")), n = new s.WebKitCSSMatrix(r === "none" ? "" : r)) : (n = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), i = n.toString().split(",")), t === "x" && (s.WebKitCSSMatrix ? r = n.m41 : i.length === 16 ? r = parseFloat(i[12]) : r = parseFloat(i[4])), t === "y" && (s.WebKitCSSMatrix ? r = n.m42 : i.length === 16 ? r = parseFloat(i[13]) : r = parseFloat(i[5])), r || 0;
165
+ }
166
+ function ne(e) {
167
+ return typeof e == "object" && e !== null && e.constructor && Object.prototype.toString.call(e).slice(8, -1) === "Object";
168
+ }
169
+ function Qt(e) {
170
+ return typeof window < "u" && typeof window.HTMLElement < "u" ? e instanceof HTMLElement : e && (e.nodeType === 1 || e.nodeType === 11);
171
+ }
172
+ function G() {
173
+ const e = Object(arguments.length <= 0 ? void 0 : arguments[0]), t = ["__proto__", "constructor", "prototype"];
174
+ for (let s = 1; s < arguments.length; s += 1) {
175
+ const i = s < 0 || arguments.length <= s ? void 0 : arguments[s];
176
+ if (i != null && !Qt(i)) {
177
+ const r = Object.keys(Object(i)).filter((n) => t.indexOf(n) < 0);
178
+ for (let n = 0, o = r.length; n < o; n += 1) {
179
+ const a = r[n], d = Object.getOwnPropertyDescriptor(i, a);
180
+ d !== void 0 && d.enumerable && (ne(e[a]) && ne(i[a]) ? i[a].__swiper__ ? e[a] = i[a] : G(e[a], i[a]) : !ne(e[a]) && ne(i[a]) ? (e[a] = {}, i[a].__swiper__ ? e[a] = i[a] : G(e[a], i[a])) : e[a] = i[a]);
181
+ }
182
+ }
183
+ }
184
+ return e;
185
+ }
186
+ function oe(e, t, s) {
187
+ e.style.setProperty(t, s);
188
+ }
189
+ function ht(e) {
190
+ let {
191
+ swiper: t,
192
+ targetPosition: s,
193
+ side: i
194
+ } = e;
195
+ const r = N(), n = -t.translate;
196
+ let o = null, a;
197
+ const d = t.params.speed;
198
+ t.wrapperEl.style.scrollSnapType = "none", r.cancelAnimationFrame(t.cssModeFrameID);
199
+ const l = s > n ? "next" : "prev", c = (h, m) => l === "next" && h >= m || l === "prev" && h <= m, u = () => {
200
+ a = (/* @__PURE__ */ new Date()).getTime(), o === null && (o = a);
201
+ const h = Math.max(Math.min((a - o) / d, 1), 0), m = 0.5 - Math.cos(h * Math.PI) / 2;
202
+ let f = n + m * (s - n);
203
+ if (c(f, s) && (f = s), t.wrapperEl.scrollTo({
204
+ [i]: f
205
+ }), c(f, s)) {
206
+ t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
207
+ t.wrapperEl.style.overflow = "", t.wrapperEl.scrollTo({
208
+ [i]: f
209
+ });
210
+ }), r.cancelAnimationFrame(t.cssModeFrameID);
211
+ return;
212
+ }
213
+ t.cssModeFrameID = r.requestAnimationFrame(u);
214
+ };
215
+ u();
216
+ }
217
+ function U(e, t) {
218
+ t === void 0 && (t = "");
219
+ const s = N(), i = [...e.children];
220
+ return s.HTMLSlotElement && e instanceof HTMLSlotElement && i.push(...e.assignedElements()), t ? i.filter((r) => r.matches(t)) : i;
221
+ }
222
+ function Zt(e, t) {
223
+ const s = [t];
224
+ for (; s.length > 0; ) {
225
+ const i = s.shift();
226
+ if (e === i)
227
+ return !0;
228
+ s.push(...i.children, ...i.shadowRoot ? i.shadowRoot.children : [], ...i.assignedElements ? i.assignedElements() : []);
229
+ }
230
+ }
231
+ function es(e, t) {
232
+ const s = N();
233
+ let i = t.contains(e);
234
+ return !i && s.HTMLSlotElement && t instanceof HTMLSlotElement && (i = [...t.assignedElements()].includes(e), i || (i = Zt(e, t))), i;
235
+ }
236
+ function fe(e) {
237
+ try {
238
+ console.warn(e);
239
+ return;
240
+ } catch {
241
+ }
242
+ }
243
+ function Ie(e, t) {
244
+ t === void 0 && (t = []);
245
+ const s = document.createElement(e);
246
+ return s.classList.add(...Array.isArray(t) ? t : Xt(t)), s;
247
+ }
248
+ function ts(e, t) {
249
+ const s = [];
250
+ for (; e.previousElementSibling; ) {
251
+ const i = e.previousElementSibling;
252
+ t ? i.matches(t) && s.push(i) : s.push(i), e = i;
253
+ }
254
+ return s;
255
+ }
256
+ function ss(e, t) {
257
+ const s = [];
258
+ for (; e.nextElementSibling; ) {
259
+ const i = e.nextElementSibling;
260
+ t ? i.matches(t) && s.push(i) : s.push(i), e = i;
261
+ }
262
+ return s;
263
+ }
264
+ function X(e, t) {
265
+ return N().getComputedStyle(e, null).getPropertyValue(t);
266
+ }
267
+ function qe(e) {
268
+ let t = e, s;
269
+ if (t) {
270
+ for (s = 0; (t = t.previousSibling) !== null; )
271
+ t.nodeType === 1 && (s += 1);
272
+ return s;
273
+ }
274
+ }
275
+ function is(e, t) {
276
+ const s = [];
277
+ let i = e.parentElement;
278
+ for (; i; )
279
+ s.push(i), i = i.parentElement;
280
+ return s;
281
+ }
282
+ function We(e, t, s) {
283
+ const i = N();
284
+ return e[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(i.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(i.getComputedStyle(e, null).getPropertyValue(t === "width" ? "margin-left" : "margin-bottom"));
285
+ }
286
+ function jr(e) {
287
+ return (Array.isArray(e) ? e : [e]).filter((t) => !!t);
288
+ }
289
+ function $r(e, t) {
290
+ t === void 0 && (t = ""), typeof trustedTypes < "u" ? e.innerHTML = trustedTypes.createPolicy("html", {
291
+ createHTML: (s) => s
292
+ }).createHTML(t) : e.innerHTML = t;
293
+ }
294
+ let be;
295
+ function rs() {
296
+ const e = N(), t = Q();
297
+ return {
298
+ smoothScroll: t.documentElement && t.documentElement.style && "scrollBehavior" in t.documentElement.style,
299
+ touch: !!("ontouchstart" in e || e.DocumentTouch && t instanceof e.DocumentTouch)
300
+ };
301
+ }
302
+ function mt() {
303
+ return be || (be = rs()), be;
304
+ }
305
+ let Ee;
306
+ function ns(e) {
307
+ let {
308
+ userAgent: t
309
+ } = e === void 0 ? {} : e;
310
+ const s = mt(), i = N(), r = i.navigator.platform, n = t || i.navigator.userAgent, o = {
311
+ ios: !1,
312
+ android: !1
313
+ }, a = i.screen.width, d = i.screen.height, l = n.match(/(Android);?[\s\/]+([\d.]+)?/);
314
+ let c = n.match(/(iPad).*OS\s([\d_]+)/);
315
+ const u = n.match(/(iPod)(.*OS\s([\d_]+))?/), h = !c && n.match(/(iPhone\sOS|iOS)\s([\d_]+)/), m = r === "Win32";
316
+ let f = r === "MacIntel";
317
+ const g = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
318
+ return !c && f && s.touch && g.indexOf(`${a}x${d}`) >= 0 && (c = n.match(/(Version)\/([\d.]+)/), c || (c = [0, 1, "13_0_0"]), f = !1), l && !m && (o.os = "android", o.android = !0), (c || h || u) && (o.os = "ios", o.ios = !0), o;
319
+ }
320
+ function gt(e) {
321
+ return e === void 0 && (e = {}), Ee || (Ee = ns(e)), Ee;
322
+ }
323
+ let xe;
324
+ function os() {
325
+ const e = N(), t = gt();
326
+ let s = !1;
327
+ function i() {
328
+ const a = e.navigator.userAgent.toLowerCase();
329
+ return a.indexOf("safari") >= 0 && a.indexOf("chrome") < 0 && a.indexOf("android") < 0;
330
+ }
331
+ if (i()) {
332
+ const a = String(e.navigator.userAgent);
333
+ if (a.includes("Version/")) {
334
+ const [d, l] = a.split("Version/")[1].split(" ")[0].split(".").map((c) => Number(c));
335
+ s = d < 16 || d === 16 && l < 2;
336
+ }
337
+ }
338
+ const r = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent), n = i(), o = n || r && t.ios;
339
+ return {
340
+ isSafari: s || n,
341
+ needPerspectiveFix: s,
342
+ need3dFix: o,
343
+ isWebView: r
344
+ };
345
+ }
346
+ function wt() {
347
+ return xe || (xe = os()), xe;
348
+ }
349
+ function as(e) {
350
+ let {
351
+ swiper: t,
352
+ on: s,
353
+ emit: i
354
+ } = e;
355
+ const r = N();
356
+ let n = null, o = null;
357
+ const a = () => {
358
+ !t || t.destroyed || !t.initialized || (i("beforeResize"), i("resize"));
359
+ }, d = () => {
360
+ !t || t.destroyed || !t.initialized || (n = new ResizeObserver((u) => {
361
+ o = r.requestAnimationFrame(() => {
362
+ const {
363
+ width: h,
364
+ height: m
365
+ } = t;
366
+ let f = h, g = m;
367
+ u.forEach((w) => {
368
+ let {
369
+ contentBoxSize: S,
370
+ contentRect: y,
371
+ target: v
372
+ } = w;
373
+ v && v !== t.el || (f = y ? y.width : (S[0] || S).inlineSize, g = y ? y.height : (S[0] || S).blockSize);
374
+ }), (f !== h || g !== m) && a();
375
+ });
376
+ }), n.observe(t.el));
377
+ }, l = () => {
378
+ o && r.cancelAnimationFrame(o), n && n.unobserve && t.el && (n.unobserve(t.el), n = null);
379
+ }, c = () => {
380
+ !t || t.destroyed || !t.initialized || i("orientationchange");
381
+ };
382
+ s("init", () => {
383
+ if (t.params.resizeObserver && typeof r.ResizeObserver < "u") {
384
+ d();
385
+ return;
386
+ }
387
+ r.addEventListener("resize", a), r.addEventListener("orientationchange", c);
388
+ }), s("destroy", () => {
389
+ l(), r.removeEventListener("resize", a), r.removeEventListener("orientationchange", c);
390
+ });
391
+ }
392
+ function ls(e) {
393
+ let {
394
+ swiper: t,
395
+ extendParams: s,
396
+ on: i,
397
+ emit: r
398
+ } = e;
399
+ const n = [], o = N(), a = function(c, u) {
400
+ u === void 0 && (u = {});
401
+ const h = o.MutationObserver || o.WebkitMutationObserver, m = new h((f) => {
402
+ if (t.__preventObserver__) return;
403
+ if (f.length === 1) {
404
+ r("observerUpdate", f[0]);
405
+ return;
406
+ }
407
+ const g = function() {
408
+ r("observerUpdate", f[0]);
409
+ };
410
+ o.requestAnimationFrame ? o.requestAnimationFrame(g) : o.setTimeout(g, 0);
411
+ });
412
+ m.observe(c, {
413
+ attributes: typeof u.attributes > "u" ? !0 : u.attributes,
414
+ childList: t.isElement || (typeof u.childList > "u" ? !0 : u).childList,
415
+ characterData: typeof u.characterData > "u" ? !0 : u.characterData
416
+ }), n.push(m);
417
+ }, d = () => {
418
+ if (t.params.observer) {
419
+ if (t.params.observeParents) {
420
+ const c = is(t.hostEl);
421
+ for (let u = 0; u < c.length; u += 1)
422
+ a(c[u]);
423
+ }
424
+ a(t.hostEl, {
425
+ childList: t.params.observeSlideChildren
426
+ }), a(t.wrapperEl, {
427
+ attributes: !1
428
+ });
429
+ }
430
+ }, l = () => {
431
+ n.forEach((c) => {
432
+ c.disconnect();
433
+ }), n.splice(0, n.length);
434
+ };
435
+ s({
436
+ observer: !1,
437
+ observeParents: !1,
438
+ observeSlideChildren: !1
439
+ }), i("init", d), i("destroy", l);
440
+ }
441
+ var ds = {
442
+ on(e, t, s) {
443
+ const i = this;
444
+ if (!i.eventsListeners || i.destroyed || typeof t != "function") return i;
445
+ const r = s ? "unshift" : "push";
446
+ return e.split(" ").forEach((n) => {
447
+ i.eventsListeners[n] || (i.eventsListeners[n] = []), i.eventsListeners[n][r](t);
448
+ }), i;
449
+ },
450
+ once(e, t, s) {
451
+ const i = this;
452
+ if (!i.eventsListeners || i.destroyed || typeof t != "function") return i;
453
+ function r() {
454
+ i.off(e, r), r.__emitterProxy && delete r.__emitterProxy;
455
+ for (var n = arguments.length, o = new Array(n), a = 0; a < n; a++)
456
+ o[a] = arguments[a];
457
+ t.apply(i, o);
458
+ }
459
+ return r.__emitterProxy = t, i.on(e, r, s);
460
+ },
461
+ onAny(e, t) {
462
+ const s = this;
463
+ if (!s.eventsListeners || s.destroyed || typeof e != "function") return s;
464
+ const i = t ? "unshift" : "push";
465
+ return s.eventsAnyListeners.indexOf(e) < 0 && s.eventsAnyListeners[i](e), s;
466
+ },
467
+ offAny(e) {
468
+ const t = this;
469
+ if (!t.eventsListeners || t.destroyed || !t.eventsAnyListeners) return t;
470
+ const s = t.eventsAnyListeners.indexOf(e);
471
+ return s >= 0 && t.eventsAnyListeners.splice(s, 1), t;
472
+ },
473
+ off(e, t) {
474
+ const s = this;
475
+ return !s.eventsListeners || s.destroyed || !s.eventsListeners || e.split(" ").forEach((i) => {
476
+ typeof t > "u" ? s.eventsListeners[i] = [] : s.eventsListeners[i] && s.eventsListeners[i].forEach((r, n) => {
477
+ (r === t || r.__emitterProxy && r.__emitterProxy === t) && s.eventsListeners[i].splice(n, 1);
478
+ });
479
+ }), s;
480
+ },
481
+ emit() {
482
+ const e = this;
483
+ if (!e.eventsListeners || e.destroyed || !e.eventsListeners) return e;
484
+ let t, s, i;
485
+ for (var r = arguments.length, n = new Array(r), o = 0; o < r; o++)
486
+ n[o] = arguments[o];
487
+ return typeof n[0] == "string" || Array.isArray(n[0]) ? (t = n[0], s = n.slice(1, n.length), i = e) : (t = n[0].events, s = n[0].data, i = n[0].context || e), s.unshift(i), (Array.isArray(t) ? t : t.split(" ")).forEach((d) => {
488
+ e.eventsAnyListeners && e.eventsAnyListeners.length && e.eventsAnyListeners.forEach((l) => {
489
+ l.apply(i, [d, ...s]);
490
+ }), e.eventsListeners && e.eventsListeners[d] && e.eventsListeners[d].forEach((l) => {
491
+ l.apply(i, s);
492
+ });
493
+ }), e;
494
+ }
495
+ };
496
+ function cs() {
497
+ const e = this;
498
+ let t, s;
499
+ const i = e.el;
500
+ typeof e.params.width < "u" && e.params.width !== null ? t = e.params.width : t = i.clientWidth, typeof e.params.height < "u" && e.params.height !== null ? s = e.params.height : s = i.clientHeight, !(t === 0 && e.isHorizontal() || s === 0 && e.isVertical()) && (t = t - parseInt(X(i, "padding-left") || 0, 10) - parseInt(X(i, "padding-right") || 0, 10), s = s - parseInt(X(i, "padding-top") || 0, 10) - parseInt(X(i, "padding-bottom") || 0, 10), Number.isNaN(t) && (t = 0), Number.isNaN(s) && (s = 0), Object.assign(e, {
501
+ width: t,
502
+ height: s,
503
+ size: e.isHorizontal() ? t : s
504
+ }));
505
+ }
506
+ function us() {
507
+ const e = this;
508
+ function t(b, x) {
509
+ return parseFloat(b.getPropertyValue(e.getDirectionLabel(x)) || 0);
510
+ }
511
+ const s = e.params, {
512
+ wrapperEl: i,
513
+ slidesEl: r,
514
+ size: n,
515
+ rtlTranslate: o,
516
+ wrongRTL: a
517
+ } = e, d = e.virtual && s.virtual.enabled, l = d ? e.virtual.slides.length : e.slides.length, c = U(r, `.${e.params.slideClass}, swiper-slide`), u = d ? e.virtual.slides.length : c.length;
518
+ let h = [];
519
+ const m = [], f = [];
520
+ let g = s.slidesOffsetBefore;
521
+ typeof g == "function" && (g = s.slidesOffsetBefore.call(e));
522
+ let w = s.slidesOffsetAfter;
523
+ typeof w == "function" && (w = s.slidesOffsetAfter.call(e));
524
+ const S = e.snapGrid.length, y = e.slidesGrid.length;
525
+ let v = s.spaceBetween, E = -g, T = 0, M = 0;
526
+ if (typeof n > "u")
527
+ return;
528
+ typeof v == "string" && v.indexOf("%") >= 0 ? v = parseFloat(v.replace("%", "")) / 100 * n : typeof v == "string" && (v = parseFloat(v)), e.virtualSize = -v, c.forEach((b) => {
529
+ o ? b.style.marginLeft = "" : b.style.marginRight = "", b.style.marginBottom = "", b.style.marginTop = "";
530
+ }), s.centeredSlides && s.cssMode && (oe(i, "--swiper-centered-offset-before", ""), oe(i, "--swiper-centered-offset-after", ""));
531
+ const O = s.grid && s.grid.rows > 1 && e.grid;
532
+ O ? e.grid.initSlides(c) : e.grid && e.grid.unsetSlides();
533
+ let C;
534
+ const I = s.slidesPerView === "auto" && s.breakpoints && Object.keys(s.breakpoints).filter((b) => typeof s.breakpoints[b].slidesPerView < "u").length > 0;
535
+ for (let b = 0; b < u; b += 1) {
536
+ C = 0;
537
+ let x;
538
+ if (c[b] && (x = c[b]), O && e.grid.updateSlide(b, x, c), !(c[b] && X(x, "display") === "none")) {
539
+ if (s.slidesPerView === "auto") {
540
+ I && (c[b].style[e.getDirectionLabel("width")] = "");
541
+ const L = getComputedStyle(x), k = x.style.transform, q = x.style.webkitTransform;
542
+ if (k && (x.style.transform = "none"), q && (x.style.webkitTransform = "none"), s.roundLengths)
543
+ C = e.isHorizontal() ? We(x, "width") : We(x, "height");
544
+ else {
545
+ const W = t(L, "width"), A = t(L, "padding-left"), z = t(L, "padding-right"), F = t(L, "margin-left"), $ = t(L, "margin-right"), $e = L.getPropertyValue("box-sizing");
546
+ if ($e && $e === "border-box")
547
+ C = W + F + $;
548
+ else {
549
+ const {
550
+ clientWidth: Ut,
551
+ offsetWidth: qt
552
+ } = x;
553
+ C = W + A + z + F + $ + (qt - Ut);
554
+ }
555
+ }
556
+ k && (x.style.transform = k), q && (x.style.webkitTransform = q), s.roundLengths && (C = Math.floor(C));
557
+ } else
558
+ C = (n - (s.slidesPerView - 1) * v) / s.slidesPerView, s.roundLengths && (C = Math.floor(C)), c[b] && (c[b].style[e.getDirectionLabel("width")] = `${C}px`);
559
+ c[b] && (c[b].swiperSlideSize = C), f.push(C), s.centeredSlides ? (E = E + C / 2 + T / 2 + v, T === 0 && b !== 0 && (E = E - n / 2 - v), b === 0 && (E = E - n / 2 - v), Math.abs(E) < 1 / 1e3 && (E = 0), s.roundLengths && (E = Math.floor(E)), M % s.slidesPerGroup === 0 && h.push(E), m.push(E)) : (s.roundLengths && (E = Math.floor(E)), (M - Math.min(e.params.slidesPerGroupSkip, M)) % e.params.slidesPerGroup === 0 && h.push(E), m.push(E), E = E + C + v), e.virtualSize += C + v, T = C, M += 1;
560
+ }
561
+ }
562
+ if (e.virtualSize = Math.max(e.virtualSize, n) + w, o && a && (s.effect === "slide" || s.effect === "coverflow") && (i.style.width = `${e.virtualSize + v}px`), s.setWrapperSize && (i.style[e.getDirectionLabel("width")] = `${e.virtualSize + v}px`), O && e.grid.updateWrapperSize(C, h), !s.centeredSlides) {
563
+ const b = [];
564
+ for (let x = 0; x < h.length; x += 1) {
565
+ let L = h[x];
566
+ s.roundLengths && (L = Math.floor(L)), h[x] <= e.virtualSize - n && b.push(L);
567
+ }
568
+ h = b, Math.floor(e.virtualSize - n) - Math.floor(h[h.length - 1]) > 1 && h.push(e.virtualSize - n);
569
+ }
570
+ if (d && s.loop) {
571
+ const b = f[0] + v;
572
+ if (s.slidesPerGroup > 1) {
573
+ const x = Math.ceil((e.virtual.slidesBefore + e.virtual.slidesAfter) / s.slidesPerGroup), L = b * s.slidesPerGroup;
574
+ for (let k = 0; k < x; k += 1)
575
+ h.push(h[h.length - 1] + L);
576
+ }
577
+ for (let x = 0; x < e.virtual.slidesBefore + e.virtual.slidesAfter; x += 1)
578
+ s.slidesPerGroup === 1 && h.push(h[h.length - 1] + b), m.push(m[m.length - 1] + b), e.virtualSize += b;
579
+ }
580
+ if (h.length === 0 && (h = [0]), v !== 0) {
581
+ const b = e.isHorizontal() && o ? "marginLeft" : e.getDirectionLabel("marginRight");
582
+ c.filter((x, L) => !s.cssMode || s.loop ? !0 : L !== c.length - 1).forEach((x) => {
583
+ x.style[b] = `${v}px`;
584
+ });
585
+ }
586
+ if (s.centeredSlides && s.centeredSlidesBounds) {
587
+ let b = 0;
588
+ f.forEach((L) => {
589
+ b += L + (v || 0);
590
+ }), b -= v;
591
+ const x = b > n ? b - n : 0;
592
+ h = h.map((L) => L <= 0 ? -g : L > x ? x + w : L);
593
+ }
594
+ if (s.centerInsufficientSlides) {
595
+ let b = 0;
596
+ f.forEach((L) => {
597
+ b += L + (v || 0);
598
+ }), b -= v;
599
+ const x = (s.slidesOffsetBefore || 0) + (s.slidesOffsetAfter || 0);
600
+ if (b + x < n) {
601
+ const L = (n - b - x) / 2;
602
+ h.forEach((k, q) => {
603
+ h[q] = k - L;
604
+ }), m.forEach((k, q) => {
605
+ m[q] = k + L;
606
+ });
607
+ }
608
+ }
609
+ if (Object.assign(e, {
610
+ slides: c,
611
+ snapGrid: h,
612
+ slidesGrid: m,
613
+ slidesSizesGrid: f
614
+ }), s.centeredSlides && s.cssMode && !s.centeredSlidesBounds) {
615
+ oe(i, "--swiper-centered-offset-before", `${-h[0]}px`), oe(i, "--swiper-centered-offset-after", `${e.size / 2 - f[f.length - 1] / 2}px`);
616
+ const b = -e.snapGrid[0], x = -e.slidesGrid[0];
617
+ e.snapGrid = e.snapGrid.map((L) => L + b), e.slidesGrid = e.slidesGrid.map((L) => L + x);
618
+ }
619
+ if (u !== l && e.emit("slidesLengthChange"), h.length !== S && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), m.length !== y && e.emit("slidesGridLengthChange"), s.watchSlidesProgress && e.updateSlidesOffset(), e.emit("slidesUpdated"), !d && !s.cssMode && (s.effect === "slide" || s.effect === "fade")) {
620
+ const b = `${s.containerModifierClass}backface-hidden`, x = e.el.classList.contains(b);
621
+ u <= s.maxBackfaceHiddenSlides ? x || e.el.classList.add(b) : x && e.el.classList.remove(b);
622
+ }
623
+ }
624
+ function fs(e) {
625
+ const t = this, s = [], i = t.virtual && t.params.virtual.enabled;
626
+ let r = 0, n;
627
+ typeof e == "number" ? t.setTransition(e) : e === !0 && t.setTransition(t.params.speed);
628
+ const o = (a) => i ? t.slides[t.getSlideIndexByData(a)] : t.slides[a];
629
+ if (t.params.slidesPerView !== "auto" && t.params.slidesPerView > 1)
630
+ if (t.params.centeredSlides)
631
+ (t.visibleSlides || []).forEach((a) => {
632
+ s.push(a);
633
+ });
634
+ else
635
+ for (n = 0; n < Math.ceil(t.params.slidesPerView); n += 1) {
636
+ const a = t.activeIndex + n;
637
+ if (a > t.slides.length && !i) break;
638
+ s.push(o(a));
639
+ }
640
+ else
641
+ s.push(o(t.activeIndex));
642
+ for (n = 0; n < s.length; n += 1)
643
+ if (typeof s[n] < "u") {
644
+ const a = s[n].offsetHeight;
645
+ r = a > r ? a : r;
646
+ }
647
+ (r || r === 0) && (t.wrapperEl.style.height = `${r}px`);
648
+ }
649
+ function ps() {
650
+ const e = this, t = e.slides, s = e.isElement ? e.isHorizontal() ? e.wrapperEl.offsetLeft : e.wrapperEl.offsetTop : 0;
651
+ for (let i = 0; i < t.length; i += 1)
652
+ t[i].swiperSlideOffset = (e.isHorizontal() ? t[i].offsetLeft : t[i].offsetTop) - s - e.cssOverflowAdjustment();
653
+ }
654
+ const Xe = (e, t, s) => {
655
+ t && !e.classList.contains(s) ? e.classList.add(s) : !t && e.classList.contains(s) && e.classList.remove(s);
656
+ };
657
+ function hs(e) {
658
+ e === void 0 && (e = this && this.translate || 0);
659
+ const t = this, s = t.params, {
660
+ slides: i,
661
+ rtlTranslate: r,
662
+ snapGrid: n
663
+ } = t;
664
+ if (i.length === 0) return;
665
+ typeof i[0].swiperSlideOffset > "u" && t.updateSlidesOffset();
666
+ let o = -e;
667
+ r && (o = e), t.visibleSlidesIndexes = [], t.visibleSlides = [];
668
+ let a = s.spaceBetween;
669
+ typeof a == "string" && a.indexOf("%") >= 0 ? a = parseFloat(a.replace("%", "")) / 100 * t.size : typeof a == "string" && (a = parseFloat(a));
670
+ for (let d = 0; d < i.length; d += 1) {
671
+ const l = i[d];
672
+ let c = l.swiperSlideOffset;
673
+ s.cssMode && s.centeredSlides && (c -= i[0].swiperSlideOffset);
674
+ const u = (o + (s.centeredSlides ? t.minTranslate() : 0) - c) / (l.swiperSlideSize + a), h = (o - n[0] + (s.centeredSlides ? t.minTranslate() : 0) - c) / (l.swiperSlideSize + a), m = -(o - c), f = m + t.slidesSizesGrid[d], g = m >= 0 && m <= t.size - t.slidesSizesGrid[d], w = m >= 0 && m < t.size - 1 || f > 1 && f <= t.size || m <= 0 && f >= t.size;
675
+ w && (t.visibleSlides.push(l), t.visibleSlidesIndexes.push(d)), Xe(l, w, s.slideVisibleClass), Xe(l, g, s.slideFullyVisibleClass), l.progress = r ? -u : u, l.originalProgress = r ? -h : h;
676
+ }
677
+ }
678
+ function ms(e) {
679
+ const t = this;
680
+ if (typeof e > "u") {
681
+ const c = t.rtlTranslate ? -1 : 1;
682
+ e = t && t.translate && t.translate * c || 0;
683
+ }
684
+ const s = t.params, i = t.maxTranslate() - t.minTranslate();
685
+ let {
686
+ progress: r,
687
+ isBeginning: n,
688
+ isEnd: o,
689
+ progressLoop: a
690
+ } = t;
691
+ const d = n, l = o;
692
+ if (i === 0)
693
+ r = 0, n = !0, o = !0;
694
+ else {
695
+ r = (e - t.minTranslate()) / i;
696
+ const c = Math.abs(e - t.minTranslate()) < 1, u = Math.abs(e - t.maxTranslate()) < 1;
697
+ n = c || r <= 0, o = u || r >= 1, c && (r = 0), u && (r = 1);
698
+ }
699
+ if (s.loop) {
700
+ const c = t.getSlideIndexByData(0), u = t.getSlideIndexByData(t.slides.length - 1), h = t.slidesGrid[c], m = t.slidesGrid[u], f = t.slidesGrid[t.slidesGrid.length - 1], g = Math.abs(e);
701
+ g >= h ? a = (g - h) / f : a = (g + f - m) / f, a > 1 && (a -= 1);
702
+ }
703
+ Object.assign(t, {
704
+ progress: r,
705
+ progressLoop: a,
706
+ isBeginning: n,
707
+ isEnd: o
708
+ }), (s.watchSlidesProgress || s.centeredSlides && s.autoHeight) && t.updateSlidesProgress(e), n && !d && t.emit("reachBeginning toEdge"), o && !l && t.emit("reachEnd toEdge"), (d && !n || l && !o) && t.emit("fromEdge"), t.emit("progress", r);
709
+ }
710
+ const Pe = (e, t, s) => {
711
+ t && !e.classList.contains(s) ? e.classList.add(s) : !t && e.classList.contains(s) && e.classList.remove(s);
712
+ };
713
+ function gs() {
714
+ const e = this, {
715
+ slides: t,
716
+ params: s,
717
+ slidesEl: i,
718
+ activeIndex: r
719
+ } = e, n = e.virtual && s.virtual.enabled, o = e.grid && s.grid && s.grid.rows > 1, a = (u) => U(i, `.${s.slideClass}${u}, swiper-slide${u}`)[0];
720
+ let d, l, c;
721
+ if (n)
722
+ if (s.loop) {
723
+ let u = r - e.virtual.slidesBefore;
724
+ u < 0 && (u = e.virtual.slides.length + u), u >= e.virtual.slides.length && (u -= e.virtual.slides.length), d = a(`[data-swiper-slide-index="${u}"]`);
725
+ } else
726
+ d = a(`[data-swiper-slide-index="${r}"]`);
727
+ else
728
+ o ? (d = t.find((u) => u.column === r), c = t.find((u) => u.column === r + 1), l = t.find((u) => u.column === r - 1)) : d = t[r];
729
+ d && (o || (c = ss(d, `.${s.slideClass}, swiper-slide`)[0], s.loop && !c && (c = t[0]), l = ts(d, `.${s.slideClass}, swiper-slide`)[0], s.loop && !l === 0 && (l = t[t.length - 1]))), t.forEach((u) => {
730
+ Pe(u, u === d, s.slideActiveClass), Pe(u, u === c, s.slideNextClass), Pe(u, u === l, s.slidePrevClass);
731
+ }), e.emitSlidesClasses();
732
+ }
733
+ const ae = (e, t) => {
734
+ if (!e || e.destroyed || !e.params) return;
735
+ const s = () => e.isElement ? "swiper-slide" : `.${e.params.slideClass}`, i = t.closest(s());
736
+ if (i) {
737
+ let r = i.querySelector(`.${e.params.lazyPreloaderClass}`);
738
+ !r && e.isElement && (i.shadowRoot ? r = i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
739
+ i.shadowRoot && (r = i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`), r && r.remove());
740
+ })), r && r.remove();
741
+ }
742
+ }, Ce = (e, t) => {
743
+ if (!e.slides[t]) return;
744
+ const s = e.slides[t].querySelector('[loading="lazy"]');
745
+ s && s.removeAttribute("loading");
746
+ }, ke = (e) => {
747
+ if (!e || e.destroyed || !e.params) return;
748
+ let t = e.params.lazyPreloadPrevNext;
749
+ const s = e.slides.length;
750
+ if (!s || !t || t < 0) return;
751
+ t = Math.min(t, s);
752
+ const i = e.params.slidesPerView === "auto" ? e.slidesPerViewDynamic() : Math.ceil(e.params.slidesPerView), r = e.activeIndex;
753
+ if (e.params.grid && e.params.grid.rows > 1) {
754
+ const o = r, a = [o - t];
755
+ a.push(...Array.from({
756
+ length: t
757
+ }).map((d, l) => o + i + l)), e.slides.forEach((d, l) => {
758
+ a.includes(d.column) && Ce(e, l);
759
+ });
760
+ return;
761
+ }
762
+ const n = r + i - 1;
763
+ if (e.params.rewind || e.params.loop)
764
+ for (let o = r - t; o <= n + t; o += 1) {
765
+ const a = (o % s + s) % s;
766
+ (a < r || a > n) && Ce(e, a);
767
+ }
768
+ else
769
+ for (let o = Math.max(r - t, 0); o <= Math.min(n + t, s - 1); o += 1)
770
+ o !== r && (o > n || o < r) && Ce(e, o);
771
+ };
772
+ function ws(e) {
773
+ const {
774
+ slidesGrid: t,
775
+ params: s
776
+ } = e, i = e.rtlTranslate ? e.translate : -e.translate;
777
+ let r;
778
+ for (let n = 0; n < t.length; n += 1)
779
+ typeof t[n + 1] < "u" ? i >= t[n] && i < t[n + 1] - (t[n + 1] - t[n]) / 2 ? r = n : i >= t[n] && i < t[n + 1] && (r = n + 1) : i >= t[n] && (r = n);
780
+ return s.normalizeSlideIndex && (r < 0 || typeof r > "u") && (r = 0), r;
781
+ }
782
+ function Ss(e) {
783
+ const t = this, s = t.rtlTranslate ? t.translate : -t.translate, {
784
+ snapGrid: i,
785
+ params: r,
786
+ activeIndex: n,
787
+ realIndex: o,
788
+ snapIndex: a
789
+ } = t;
790
+ let d = e, l;
791
+ const c = (m) => {
792
+ let f = m - t.virtual.slidesBefore;
793
+ return f < 0 && (f = t.virtual.slides.length + f), f >= t.virtual.slides.length && (f -= t.virtual.slides.length), f;
794
+ };
795
+ if (typeof d > "u" && (d = ws(t)), i.indexOf(s) >= 0)
796
+ l = i.indexOf(s);
797
+ else {
798
+ const m = Math.min(r.slidesPerGroupSkip, d);
799
+ l = m + Math.floor((d - m) / r.slidesPerGroup);
800
+ }
801
+ if (l >= i.length && (l = i.length - 1), d === n && !t.params.loop) {
802
+ l !== a && (t.snapIndex = l, t.emit("snapIndexChange"));
803
+ return;
804
+ }
805
+ if (d === n && t.params.loop && t.virtual && t.params.virtual.enabled) {
806
+ t.realIndex = c(d);
807
+ return;
808
+ }
809
+ const u = t.grid && r.grid && r.grid.rows > 1;
810
+ let h;
811
+ if (t.virtual && r.virtual.enabled && r.loop)
812
+ h = c(d);
813
+ else if (u) {
814
+ const m = t.slides.find((g) => g.column === d);
815
+ let f = parseInt(m.getAttribute("data-swiper-slide-index"), 10);
816
+ Number.isNaN(f) && (f = Math.max(t.slides.indexOf(m), 0)), h = Math.floor(f / r.grid.rows);
817
+ } else if (t.slides[d]) {
818
+ const m = t.slides[d].getAttribute("data-swiper-slide-index");
819
+ m ? h = parseInt(m, 10) : h = d;
820
+ } else
821
+ h = d;
822
+ Object.assign(t, {
823
+ previousSnapIndex: a,
824
+ snapIndex: l,
825
+ previousRealIndex: o,
826
+ realIndex: h,
827
+ previousIndex: n,
828
+ activeIndex: d
829
+ }), t.initialized && ke(t), t.emit("activeIndexChange"), t.emit("snapIndexChange"), (t.initialized || t.params.runCallbacksOnInit) && (o !== h && t.emit("realIndexChange"), t.emit("slideChange"));
830
+ }
831
+ function vs(e, t) {
832
+ const s = this, i = s.params;
833
+ let r = e.closest(`.${i.slideClass}, swiper-slide`);
834
+ !r && s.isElement && t && t.length > 1 && t.includes(e) && [...t.slice(t.indexOf(e) + 1, t.length)].forEach((a) => {
835
+ !r && a.matches && a.matches(`.${i.slideClass}, swiper-slide`) && (r = a);
836
+ });
837
+ let n = !1, o;
838
+ if (r) {
839
+ for (let a = 0; a < s.slides.length; a += 1)
840
+ if (s.slides[a] === r) {
841
+ n = !0, o = a;
842
+ break;
843
+ }
844
+ }
845
+ if (r && n)
846
+ s.clickedSlide = r, s.virtual && s.params.virtual.enabled ? s.clickedIndex = parseInt(r.getAttribute("data-swiper-slide-index"), 10) : s.clickedIndex = o;
847
+ else {
848
+ s.clickedSlide = void 0, s.clickedIndex = void 0;
849
+ return;
850
+ }
851
+ i.slideToClickedSlide && s.clickedIndex !== void 0 && s.clickedIndex !== s.activeIndex && s.slideToClickedSlide();
852
+ }
853
+ var ys = {
854
+ updateSize: cs,
855
+ updateSlides: us,
856
+ updateAutoHeight: fs,
857
+ updateSlidesOffset: ps,
858
+ updateSlidesProgress: hs,
859
+ updateProgress: ms,
860
+ updateSlidesClasses: gs,
861
+ updateActiveIndex: Ss,
862
+ updateClickedSlide: vs
863
+ };
864
+ function Ts(e) {
865
+ e === void 0 && (e = this.isHorizontal() ? "x" : "y");
866
+ const t = this, {
867
+ params: s,
868
+ rtlTranslate: i,
869
+ translate: r,
870
+ wrapperEl: n
871
+ } = t;
872
+ if (s.virtualTranslate)
873
+ return i ? -r : r;
874
+ if (s.cssMode)
875
+ return r;
876
+ let o = Kt(n, e);
877
+ return o += t.cssOverflowAdjustment(), i && (o = -o), o || 0;
878
+ }
879
+ function bs(e, t) {
880
+ const s = this, {
881
+ rtlTranslate: i,
882
+ params: r,
883
+ wrapperEl: n,
884
+ progress: o
885
+ } = s;
886
+ let a = 0, d = 0;
887
+ const l = 0;
888
+ s.isHorizontal() ? a = i ? -e : e : d = e, r.roundLengths && (a = Math.floor(a), d = Math.floor(d)), s.previousTranslate = s.translate, s.translate = s.isHorizontal() ? a : d, r.cssMode ? n[s.isHorizontal() ? "scrollLeft" : "scrollTop"] = s.isHorizontal() ? -a : -d : r.virtualTranslate || (s.isHorizontal() ? a -= s.cssOverflowAdjustment() : d -= s.cssOverflowAdjustment(), n.style.transform = `translate3d(${a}px, ${d}px, ${l}px)`);
889
+ let c;
890
+ const u = s.maxTranslate() - s.minTranslate();
891
+ u === 0 ? c = 0 : c = (e - s.minTranslate()) / u, c !== o && s.updateProgress(e), s.emit("setTranslate", s.translate, t);
892
+ }
893
+ function Es() {
894
+ return -this.snapGrid[0];
895
+ }
896
+ function xs() {
897
+ return -this.snapGrid[this.snapGrid.length - 1];
898
+ }
899
+ function Ps(e, t, s, i, r) {
900
+ e === void 0 && (e = 0), t === void 0 && (t = this.params.speed), s === void 0 && (s = !0), i === void 0 && (i = !0);
901
+ const n = this, {
902
+ params: o,
903
+ wrapperEl: a
904
+ } = n;
905
+ if (n.animating && o.preventInteractionOnTransition)
906
+ return !1;
907
+ const d = n.minTranslate(), l = n.maxTranslate();
908
+ let c;
909
+ if (i && e > d ? c = d : i && e < l ? c = l : c = e, n.updateProgress(c), o.cssMode) {
910
+ const u = n.isHorizontal();
911
+ if (t === 0)
912
+ a[u ? "scrollLeft" : "scrollTop"] = -c;
913
+ else {
914
+ if (!n.support.smoothScroll)
915
+ return ht({
916
+ swiper: n,
917
+ targetPosition: -c,
918
+ side: u ? "left" : "top"
919
+ }), !0;
920
+ a.scrollTo({
921
+ [u ? "left" : "top"]: -c,
922
+ behavior: "smooth"
923
+ });
924
+ }
925
+ return !0;
926
+ }
927
+ return t === 0 ? (n.setTransition(0), n.setTranslate(c), s && (n.emit("beforeTransitionStart", t, r), n.emit("transitionEnd"))) : (n.setTransition(t), n.setTranslate(c), s && (n.emit("beforeTransitionStart", t, r), n.emit("transitionStart")), n.animating || (n.animating = !0, n.onTranslateToWrapperTransitionEnd || (n.onTranslateToWrapperTransitionEnd = function(h) {
928
+ !n || n.destroyed || h.target === this && (n.wrapperEl.removeEventListener("transitionend", n.onTranslateToWrapperTransitionEnd), n.onTranslateToWrapperTransitionEnd = null, delete n.onTranslateToWrapperTransitionEnd, n.animating = !1, s && n.emit("transitionEnd"));
929
+ }), n.wrapperEl.addEventListener("transitionend", n.onTranslateToWrapperTransitionEnd))), !0;
930
+ }
931
+ var Cs = {
932
+ getTranslate: Ts,
933
+ setTranslate: bs,
934
+ minTranslate: Es,
935
+ maxTranslate: xs,
936
+ translateTo: Ps
937
+ };
938
+ function Os(e, t) {
939
+ const s = this;
940
+ s.params.cssMode || (s.wrapperEl.style.transitionDuration = `${e}ms`, s.wrapperEl.style.transitionDelay = e === 0 ? "0ms" : ""), s.emit("setTransition", e, t);
941
+ }
942
+ function St(e) {
943
+ let {
944
+ swiper: t,
945
+ runCallbacks: s,
946
+ direction: i,
947
+ step: r
948
+ } = e;
949
+ const {
950
+ activeIndex: n,
951
+ previousIndex: o
952
+ } = t;
953
+ let a = i;
954
+ a || (n > o ? a = "next" : n < o ? a = "prev" : a = "reset"), t.emit(`transition${r}`), s && a === "reset" ? t.emit(`slideResetTransition${r}`) : s && n !== o && (t.emit(`slideChangeTransition${r}`), a === "next" ? t.emit(`slideNextTransition${r}`) : t.emit(`slidePrevTransition${r}`));
955
+ }
956
+ function Ms(e, t) {
957
+ e === void 0 && (e = !0);
958
+ const s = this, {
959
+ params: i
960
+ } = s;
961
+ i.cssMode || (i.autoHeight && s.updateAutoHeight(), St({
962
+ swiper: s,
963
+ runCallbacks: e,
964
+ direction: t,
965
+ step: "Start"
966
+ }));
967
+ }
968
+ function As(e, t) {
969
+ e === void 0 && (e = !0);
970
+ const s = this, {
971
+ params: i
972
+ } = s;
973
+ s.animating = !1, !i.cssMode && (s.setTransition(0), St({
974
+ swiper: s,
975
+ runCallbacks: e,
976
+ direction: t,
977
+ step: "End"
978
+ }));
979
+ }
980
+ var Ls = {
981
+ setTransition: Os,
982
+ transitionStart: Ms,
983
+ transitionEnd: As
984
+ };
985
+ function Rs(e, t, s, i, r) {
986
+ e === void 0 && (e = 0), s === void 0 && (s = !0), typeof e == "string" && (e = parseInt(e, 10));
987
+ const n = this;
988
+ let o = e;
989
+ o < 0 && (o = 0);
990
+ const {
991
+ params: a,
992
+ snapGrid: d,
993
+ slidesGrid: l,
994
+ previousIndex: c,
995
+ activeIndex: u,
996
+ rtlTranslate: h,
997
+ wrapperEl: m,
998
+ enabled: f
999
+ } = n;
1000
+ if (!f && !i && !r || n.destroyed || n.animating && a.preventInteractionOnTransition)
1001
+ return !1;
1002
+ typeof t > "u" && (t = n.params.speed);
1003
+ const g = Math.min(n.params.slidesPerGroupSkip, o);
1004
+ let w = g + Math.floor((o - g) / n.params.slidesPerGroup);
1005
+ w >= d.length && (w = d.length - 1);
1006
+ const S = -d[w];
1007
+ if (a.normalizeSlideIndex)
1008
+ for (let O = 0; O < l.length; O += 1) {
1009
+ const C = -Math.floor(S * 100), I = Math.floor(l[O] * 100), b = Math.floor(l[O + 1] * 100);
1010
+ typeof l[O + 1] < "u" ? C >= I && C < b - (b - I) / 2 ? o = O : C >= I && C < b && (o = O + 1) : C >= I && (o = O);
1011
+ }
1012
+ if (n.initialized && o !== u && (!n.allowSlideNext && (h ? S > n.translate && S > n.minTranslate() : S < n.translate && S < n.minTranslate()) || !n.allowSlidePrev && S > n.translate && S > n.maxTranslate() && (u || 0) !== o))
1013
+ return !1;
1014
+ o !== (c || 0) && s && n.emit("beforeSlideChangeStart"), n.updateProgress(S);
1015
+ let y;
1016
+ o > u ? y = "next" : o < u ? y = "prev" : y = "reset";
1017
+ const v = n.virtual && n.params.virtual.enabled;
1018
+ if (!(v && r) && (h && -S === n.translate || !h && S === n.translate))
1019
+ return n.updateActiveIndex(o), a.autoHeight && n.updateAutoHeight(), n.updateSlidesClasses(), a.effect !== "slide" && n.setTranslate(S), y !== "reset" && (n.transitionStart(s, y), n.transitionEnd(s, y)), !1;
1020
+ if (a.cssMode) {
1021
+ const O = n.isHorizontal(), C = h ? S : -S;
1022
+ if (t === 0)
1023
+ v && (n.wrapperEl.style.scrollSnapType = "none", n._immediateVirtual = !0), v && !n._cssModeVirtualInitialSet && n.params.initialSlide > 0 ? (n._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1024
+ m[O ? "scrollLeft" : "scrollTop"] = C;
1025
+ })) : m[O ? "scrollLeft" : "scrollTop"] = C, v && requestAnimationFrame(() => {
1026
+ n.wrapperEl.style.scrollSnapType = "", n._immediateVirtual = !1;
1027
+ });
1028
+ else {
1029
+ if (!n.support.smoothScroll)
1030
+ return ht({
1031
+ swiper: n,
1032
+ targetPosition: C,
1033
+ side: O ? "left" : "top"
1034
+ }), !0;
1035
+ m.scrollTo({
1036
+ [O ? "left" : "top"]: C,
1037
+ behavior: "smooth"
1038
+ });
1039
+ }
1040
+ return !0;
1041
+ }
1042
+ const M = wt().isSafari;
1043
+ return v && !r && M && n.isElement && n.virtual.update(!1, !1, o), n.setTransition(t), n.setTranslate(S), n.updateActiveIndex(o), n.updateSlidesClasses(), n.emit("beforeTransitionStart", t, i), n.transitionStart(s, y), t === 0 ? n.transitionEnd(s, y) : n.animating || (n.animating = !0, n.onSlideToWrapperTransitionEnd || (n.onSlideToWrapperTransitionEnd = function(C) {
1044
+ !n || n.destroyed || C.target === this && (n.wrapperEl.removeEventListener("transitionend", n.onSlideToWrapperTransitionEnd), n.onSlideToWrapperTransitionEnd = null, delete n.onSlideToWrapperTransitionEnd, n.transitionEnd(s, y));
1045
+ }), n.wrapperEl.addEventListener("transitionend", n.onSlideToWrapperTransitionEnd)), !0;
1046
+ }
1047
+ function Is(e, t, s, i) {
1048
+ e === void 0 && (e = 0), s === void 0 && (s = !0), typeof e == "string" && (e = parseInt(e, 10));
1049
+ const r = this;
1050
+ if (r.destroyed) return;
1051
+ typeof t > "u" && (t = r.params.speed);
1052
+ const n = r.grid && r.params.grid && r.params.grid.rows > 1;
1053
+ let o = e;
1054
+ if (r.params.loop)
1055
+ if (r.virtual && r.params.virtual.enabled)
1056
+ o = o + r.virtual.slidesBefore;
1057
+ else {
1058
+ let a;
1059
+ if (n) {
1060
+ const h = o * r.params.grid.rows;
1061
+ a = r.slides.find((m) => m.getAttribute("data-swiper-slide-index") * 1 === h).column;
1062
+ } else
1063
+ a = r.getSlideIndexByData(o);
1064
+ const d = n ? Math.ceil(r.slides.length / r.params.grid.rows) : r.slides.length, {
1065
+ centeredSlides: l
1066
+ } = r.params;
1067
+ let c = r.params.slidesPerView;
1068
+ c === "auto" ? c = r.slidesPerViewDynamic() : (c = Math.ceil(parseFloat(r.params.slidesPerView, 10)), l && c % 2 === 0 && (c = c + 1));
1069
+ let u = d - a < c;
1070
+ if (l && (u = u || a < Math.ceil(c / 2)), i && l && r.params.slidesPerView !== "auto" && !n && (u = !1), u) {
1071
+ const h = l ? a < r.activeIndex ? "prev" : "next" : a - r.activeIndex - 1 < r.params.slidesPerView ? "next" : "prev";
1072
+ r.loopFix({
1073
+ direction: h,
1074
+ slideTo: !0,
1075
+ activeSlideIndex: h === "next" ? a + 1 : a - d + 1,
1076
+ slideRealIndex: h === "next" ? r.realIndex : void 0
1077
+ });
1078
+ }
1079
+ if (n) {
1080
+ const h = o * r.params.grid.rows;
1081
+ o = r.slides.find((m) => m.getAttribute("data-swiper-slide-index") * 1 === h).column;
1082
+ } else
1083
+ o = r.getSlideIndexByData(o);
1084
+ }
1085
+ return requestAnimationFrame(() => {
1086
+ r.slideTo(o, t, s, i);
1087
+ }), r;
1088
+ }
1089
+ function ks(e, t, s) {
1090
+ t === void 0 && (t = !0);
1091
+ const i = this, {
1092
+ enabled: r,
1093
+ params: n,
1094
+ animating: o
1095
+ } = i;
1096
+ if (!r || i.destroyed) return i;
1097
+ typeof e > "u" && (e = i.params.speed);
1098
+ let a = n.slidesPerGroup;
1099
+ n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (a = Math.max(i.slidesPerViewDynamic("current", !0), 1));
1100
+ const d = i.activeIndex < n.slidesPerGroupSkip ? 1 : a, l = i.virtual && n.virtual.enabled;
1101
+ if (n.loop) {
1102
+ if (o && !l && n.loopPreventsSliding) return !1;
1103
+ if (i.loopFix({
1104
+ direction: "next"
1105
+ }), i._clientLeft = i.wrapperEl.clientLeft, i.activeIndex === i.slides.length - 1 && n.cssMode)
1106
+ return requestAnimationFrame(() => {
1107
+ i.slideTo(i.activeIndex + d, e, t, s);
1108
+ }), !0;
1109
+ }
1110
+ return n.rewind && i.isEnd ? i.slideTo(0, e, t, s) : i.slideTo(i.activeIndex + d, e, t, s);
1111
+ }
1112
+ function zs(e, t, s) {
1113
+ t === void 0 && (t = !0);
1114
+ const i = this, {
1115
+ params: r,
1116
+ snapGrid: n,
1117
+ slidesGrid: o,
1118
+ rtlTranslate: a,
1119
+ enabled: d,
1120
+ animating: l
1121
+ } = i;
1122
+ if (!d || i.destroyed) return i;
1123
+ typeof e > "u" && (e = i.params.speed);
1124
+ const c = i.virtual && r.virtual.enabled;
1125
+ if (r.loop) {
1126
+ if (l && !c && r.loopPreventsSliding) return !1;
1127
+ i.loopFix({
1128
+ direction: "prev"
1129
+ }), i._clientLeft = i.wrapperEl.clientLeft;
1130
+ }
1131
+ const u = a ? i.translate : -i.translate;
1132
+ function h(y) {
1133
+ return y < 0 ? -Math.floor(Math.abs(y)) : Math.floor(y);
1134
+ }
1135
+ const m = h(u), f = n.map((y) => h(y)), g = r.freeMode && r.freeMode.enabled;
1136
+ let w = n[f.indexOf(m) - 1];
1137
+ if (typeof w > "u" && (r.cssMode || g)) {
1138
+ let y;
1139
+ n.forEach((v, E) => {
1140
+ m >= v && (y = E);
1141
+ }), typeof y < "u" && (w = g ? n[y] : n[y > 0 ? y - 1 : y]);
1142
+ }
1143
+ let S = 0;
1144
+ if (typeof w < "u" && (S = o.indexOf(w), S < 0 && (S = i.activeIndex - 1), r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (S = S - i.slidesPerViewDynamic("previous", !0) + 1, S = Math.max(S, 0))), r.rewind && i.isBeginning) {
1145
+ const y = i.params.virtual && i.params.virtual.enabled && i.virtual ? i.virtual.slides.length - 1 : i.slides.length - 1;
1146
+ return i.slideTo(y, e, t, s);
1147
+ } else if (r.loop && i.activeIndex === 0 && r.cssMode)
1148
+ return requestAnimationFrame(() => {
1149
+ i.slideTo(S, e, t, s);
1150
+ }), !0;
1151
+ return i.slideTo(S, e, t, s);
1152
+ }
1153
+ function Ds(e, t, s) {
1154
+ t === void 0 && (t = !0);
1155
+ const i = this;
1156
+ if (!i.destroyed)
1157
+ return typeof e > "u" && (e = i.params.speed), i.slideTo(i.activeIndex, e, t, s);
1158
+ }
1159
+ function Ns(e, t, s, i) {
1160
+ t === void 0 && (t = !0), i === void 0 && (i = 0.5);
1161
+ const r = this;
1162
+ if (r.destroyed) return;
1163
+ typeof e > "u" && (e = r.params.speed);
1164
+ let n = r.activeIndex;
1165
+ const o = Math.min(r.params.slidesPerGroupSkip, n), a = o + Math.floor((n - o) / r.params.slidesPerGroup), d = r.rtlTranslate ? r.translate : -r.translate;
1166
+ if (d >= r.snapGrid[a]) {
1167
+ const l = r.snapGrid[a], c = r.snapGrid[a + 1];
1168
+ d - l > (c - l) * i && (n += r.params.slidesPerGroup);
1169
+ } else {
1170
+ const l = r.snapGrid[a - 1], c = r.snapGrid[a];
1171
+ d - l <= (c - l) * i && (n -= r.params.slidesPerGroup);
1172
+ }
1173
+ return n = Math.max(n, 0), n = Math.min(n, r.slidesGrid.length - 1), r.slideTo(n, e, t, s);
1174
+ }
1175
+ function Fs() {
1176
+ const e = this;
1177
+ if (e.destroyed) return;
1178
+ const {
1179
+ params: t,
1180
+ slidesEl: s
1181
+ } = e, i = t.slidesPerView === "auto" ? e.slidesPerViewDynamic() : t.slidesPerView;
1182
+ let r = e.getSlideIndexWhenGrid(e.clickedIndex), n;
1183
+ const o = e.isElement ? "swiper-slide" : `.${t.slideClass}`, a = e.grid && e.params.grid && e.params.grid.rows > 1;
1184
+ if (t.loop) {
1185
+ if (e.animating) return;
1186
+ n = parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"), 10), t.centeredSlides ? e.slideToLoop(n) : r > (a ? (e.slides.length - i) / 2 - (e.params.grid.rows - 1) : e.slides.length - i) ? (e.loopFix(), r = e.getSlideIndex(U(s, `${o}[data-swiper-slide-index="${n}"]`)[0]), pt(() => {
1187
+ e.slideTo(r);
1188
+ })) : e.slideTo(r);
1189
+ } else
1190
+ e.slideTo(r);
1191
+ }
1192
+ var _s = {
1193
+ slideTo: Rs,
1194
+ slideToLoop: Is,
1195
+ slideNext: ks,
1196
+ slidePrev: zs,
1197
+ slideReset: Ds,
1198
+ slideToClosest: Ns,
1199
+ slideToClickedSlide: Fs
1200
+ };
1201
+ function Bs(e, t) {
1202
+ const s = this, {
1203
+ params: i,
1204
+ slidesEl: r
1205
+ } = s;
1206
+ if (!i.loop || s.virtual && s.params.virtual.enabled) return;
1207
+ const n = () => {
1208
+ U(r, `.${i.slideClass}, swiper-slide`).forEach((m, f) => {
1209
+ m.setAttribute("data-swiper-slide-index", f);
1210
+ });
1211
+ }, o = () => {
1212
+ const h = U(r, `.${i.slideBlankClass}`);
1213
+ h.forEach((m) => {
1214
+ m.remove();
1215
+ }), h.length > 0 && (s.recalcSlides(), s.updateSlides());
1216
+ }, a = s.grid && i.grid && i.grid.rows > 1;
1217
+ i.loopAddBlankSlides && (i.slidesPerGroup > 1 || a) && o();
1218
+ const d = i.slidesPerGroup * (a ? i.grid.rows : 1), l = s.slides.length % d !== 0, c = a && s.slides.length % i.grid.rows !== 0, u = (h) => {
1219
+ for (let m = 0; m < h; m += 1) {
1220
+ const f = s.isElement ? Ie("swiper-slide", [i.slideBlankClass]) : Ie("div", [i.slideClass, i.slideBlankClass]);
1221
+ s.slidesEl.append(f);
1222
+ }
1223
+ };
1224
+ if (l) {
1225
+ if (i.loopAddBlankSlides) {
1226
+ const h = d - s.slides.length % d;
1227
+ u(h), s.recalcSlides(), s.updateSlides();
1228
+ } else
1229
+ fe("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)");
1230
+ n();
1231
+ } else if (c) {
1232
+ if (i.loopAddBlankSlides) {
1233
+ const h = i.grid.rows - s.slides.length % i.grid.rows;
1234
+ u(h), s.recalcSlides(), s.updateSlides();
1235
+ } else
1236
+ fe("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)");
1237
+ n();
1238
+ } else
1239
+ n();
1240
+ s.loopFix({
1241
+ slideRealIndex: e,
1242
+ direction: i.centeredSlides ? void 0 : "next",
1243
+ initial: t
1244
+ });
1245
+ }
1246
+ function Gs(e) {
1247
+ let {
1248
+ slideRealIndex: t,
1249
+ slideTo: s = !0,
1250
+ direction: i,
1251
+ setTranslate: r,
1252
+ activeSlideIndex: n,
1253
+ initial: o,
1254
+ byController: a,
1255
+ byMousewheel: d
1256
+ } = e === void 0 ? {} : e;
1257
+ const l = this;
1258
+ if (!l.params.loop) return;
1259
+ l.emit("beforeLoopFix");
1260
+ const {
1261
+ slides: c,
1262
+ allowSlidePrev: u,
1263
+ allowSlideNext: h,
1264
+ slidesEl: m,
1265
+ params: f
1266
+ } = l, {
1267
+ centeredSlides: g,
1268
+ initialSlide: w
1269
+ } = f;
1270
+ if (l.allowSlidePrev = !0, l.allowSlideNext = !0, l.virtual && f.virtual.enabled) {
1271
+ s && (!f.centeredSlides && l.snapIndex === 0 ? l.slideTo(l.virtual.slides.length, 0, !1, !0) : f.centeredSlides && l.snapIndex < f.slidesPerView ? l.slideTo(l.virtual.slides.length + l.snapIndex, 0, !1, !0) : l.snapIndex === l.snapGrid.length - 1 && l.slideTo(l.virtual.slidesBefore, 0, !1, !0)), l.allowSlidePrev = u, l.allowSlideNext = h, l.emit("loopFix");
1272
+ return;
1273
+ }
1274
+ let S = f.slidesPerView;
1275
+ S === "auto" ? S = l.slidesPerViewDynamic() : (S = Math.ceil(parseFloat(f.slidesPerView, 10)), g && S % 2 === 0 && (S = S + 1));
1276
+ const y = f.slidesPerGroupAuto ? S : f.slidesPerGroup;
1277
+ let v = g ? Math.max(y, Math.ceil(S / 2)) : y;
1278
+ v % y !== 0 && (v += y - v % y), v += f.loopAdditionalSlides, l.loopedSlides = v;
1279
+ const E = l.grid && f.grid && f.grid.rows > 1;
1280
+ c.length < S + v || l.params.effect === "cards" && c.length < S + v * 2 ? fe("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") : E && f.grid.fill === "row" && fe("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
1281
+ const T = [], M = [], O = E ? Math.ceil(c.length / f.grid.rows) : c.length, C = o && O - w < S && !g;
1282
+ let I = C ? w : l.activeIndex;
1283
+ typeof n > "u" ? n = l.getSlideIndex(c.find((A) => A.classList.contains(f.slideActiveClass))) : I = n;
1284
+ const b = i === "next" || !i, x = i === "prev" || !i;
1285
+ let L = 0, k = 0;
1286
+ const W = (E ? c[n].column : n) + (g && typeof r > "u" ? -S / 2 + 0.5 : 0);
1287
+ if (W < v) {
1288
+ L = Math.max(v - W, y);
1289
+ for (let A = 0; A < v - W; A += 1) {
1290
+ const z = A - Math.floor(A / O) * O;
1291
+ if (E) {
1292
+ const F = O - z - 1;
1293
+ for (let $ = c.length - 1; $ >= 0; $ -= 1)
1294
+ c[$].column === F && T.push($);
1295
+ } else
1296
+ T.push(O - z - 1);
1297
+ }
1298
+ } else if (W + S > O - v) {
1299
+ k = Math.max(W - (O - v * 2), y), C && (k = Math.max(k, S - O + w + 1));
1300
+ for (let A = 0; A < k; A += 1) {
1301
+ const z = A - Math.floor(A / O) * O;
1302
+ E ? c.forEach((F, $) => {
1303
+ F.column === z && M.push($);
1304
+ }) : M.push(z);
1305
+ }
1306
+ }
1307
+ if (l.__preventObserver__ = !0, requestAnimationFrame(() => {
1308
+ l.__preventObserver__ = !1;
1309
+ }), l.params.effect === "cards" && c.length < S + v * 2 && (M.includes(n) && M.splice(M.indexOf(n), 1), T.includes(n) && T.splice(T.indexOf(n), 1)), x && T.forEach((A) => {
1310
+ c[A].swiperLoopMoveDOM = !0, m.prepend(c[A]), c[A].swiperLoopMoveDOM = !1;
1311
+ }), b && M.forEach((A) => {
1312
+ c[A].swiperLoopMoveDOM = !0, m.append(c[A]), c[A].swiperLoopMoveDOM = !1;
1313
+ }), l.recalcSlides(), f.slidesPerView === "auto" ? l.updateSlides() : E && (T.length > 0 && x || M.length > 0 && b) && l.slides.forEach((A, z) => {
1314
+ l.grid.updateSlide(z, A, l.slides);
1315
+ }), f.watchSlidesProgress && l.updateSlidesOffset(), s) {
1316
+ if (T.length > 0 && x) {
1317
+ if (typeof t > "u") {
1318
+ const A = l.slidesGrid[I], F = l.slidesGrid[I + L] - A;
1319
+ d ? l.setTranslate(l.translate - F) : (l.slideTo(I + Math.ceil(L), 0, !1, !0), r && (l.touchEventsData.startTranslate = l.touchEventsData.startTranslate - F, l.touchEventsData.currentTranslate = l.touchEventsData.currentTranslate - F));
1320
+ } else if (r) {
1321
+ const A = E ? T.length / f.grid.rows : T.length;
1322
+ l.slideTo(l.activeIndex + A, 0, !1, !0), l.touchEventsData.currentTranslate = l.translate;
1323
+ }
1324
+ } else if (M.length > 0 && b)
1325
+ if (typeof t > "u") {
1326
+ const A = l.slidesGrid[I], F = l.slidesGrid[I - k] - A;
1327
+ d ? l.setTranslate(l.translate - F) : (l.slideTo(I - k, 0, !1, !0), r && (l.touchEventsData.startTranslate = l.touchEventsData.startTranslate - F, l.touchEventsData.currentTranslate = l.touchEventsData.currentTranslate - F));
1328
+ } else {
1329
+ const A = E ? M.length / f.grid.rows : M.length;
1330
+ l.slideTo(l.activeIndex - A, 0, !1, !0);
1331
+ }
1332
+ }
1333
+ if (l.allowSlidePrev = u, l.allowSlideNext = h, l.controller && l.controller.control && !a) {
1334
+ const A = {
1335
+ slideRealIndex: t,
1336
+ direction: i,
1337
+ setTranslate: r,
1338
+ activeSlideIndex: n,
1339
+ byController: !0
1340
+ };
1341
+ Array.isArray(l.controller.control) ? l.controller.control.forEach((z) => {
1342
+ !z.destroyed && z.params.loop && z.loopFix({
1343
+ ...A,
1344
+ slideTo: z.params.slidesPerView === f.slidesPerView ? s : !1
1345
+ });
1346
+ }) : l.controller.control instanceof l.constructor && l.controller.control.params.loop && l.controller.control.loopFix({
1347
+ ...A,
1348
+ slideTo: l.controller.control.params.slidesPerView === f.slidesPerView ? s : !1
1349
+ });
1350
+ }
1351
+ l.emit("loopFix");
1352
+ }
1353
+ function Vs() {
1354
+ const e = this, {
1355
+ params: t,
1356
+ slidesEl: s
1357
+ } = e;
1358
+ if (!t.loop || !s || e.virtual && e.params.virtual.enabled) return;
1359
+ e.recalcSlides();
1360
+ const i = [];
1361
+ e.slides.forEach((r) => {
1362
+ const n = typeof r.swiperSlideIndex > "u" ? r.getAttribute("data-swiper-slide-index") * 1 : r.swiperSlideIndex;
1363
+ i[n] = r;
1364
+ }), e.slides.forEach((r) => {
1365
+ r.removeAttribute("data-swiper-slide-index");
1366
+ }), i.forEach((r) => {
1367
+ s.append(r);
1368
+ }), e.recalcSlides(), e.slideTo(e.realIndex, 0);
1369
+ }
1370
+ var Hs = {
1371
+ loopCreate: Bs,
1372
+ loopFix: Gs,
1373
+ loopDestroy: Vs
1374
+ };
1375
+ function js(e) {
1376
+ const t = this;
1377
+ if (!t.params.simulateTouch || t.params.watchOverflow && t.isLocked || t.params.cssMode) return;
1378
+ const s = t.params.touchEventsTarget === "container" ? t.el : t.wrapperEl;
1379
+ t.isElement && (t.__preventObserver__ = !0), s.style.cursor = "move", s.style.cursor = e ? "grabbing" : "grab", t.isElement && requestAnimationFrame(() => {
1380
+ t.__preventObserver__ = !1;
1381
+ });
1382
+ }
1383
+ function $s() {
1384
+ const e = this;
1385
+ e.params.watchOverflow && e.isLocked || e.params.cssMode || (e.isElement && (e.__preventObserver__ = !0), e[e.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", e.isElement && requestAnimationFrame(() => {
1386
+ e.__preventObserver__ = !1;
1387
+ }));
1388
+ }
1389
+ var Us = {
1390
+ setGrabCursor: js,
1391
+ unsetGrabCursor: $s
1392
+ };
1393
+ function qs(e, t) {
1394
+ t === void 0 && (t = this);
1395
+ function s(i) {
1396
+ if (!i || i === Q() || i === N()) return null;
1397
+ i.assignedSlot && (i = i.assignedSlot);
1398
+ const r = i.closest(e);
1399
+ return !r && !i.getRootNode ? null : r || s(i.getRootNode().host);
1400
+ }
1401
+ return s(t);
1402
+ }
1403
+ function Ye(e, t, s) {
1404
+ const i = N(), {
1405
+ params: r
1406
+ } = e, n = r.edgeSwipeDetection, o = r.edgeSwipeThreshold;
1407
+ return n && (s <= o || s >= i.innerWidth - o) ? n === "prevent" ? (t.preventDefault(), !0) : !1 : !0;
1408
+ }
1409
+ function Ws(e) {
1410
+ const t = this, s = Q();
1411
+ let i = e;
1412
+ i.originalEvent && (i = i.originalEvent);
1413
+ const r = t.touchEventsData;
1414
+ if (i.type === "pointerdown") {
1415
+ if (r.pointerId !== null && r.pointerId !== i.pointerId)
1416
+ return;
1417
+ r.pointerId = i.pointerId;
1418
+ } else i.type === "touchstart" && i.targetTouches.length === 1 && (r.touchId = i.targetTouches[0].identifier);
1419
+ if (i.type === "touchstart") {
1420
+ Ye(t, i, i.targetTouches[0].pageX);
1421
+ return;
1422
+ }
1423
+ const {
1424
+ params: n,
1425
+ touches: o,
1426
+ enabled: a
1427
+ } = t;
1428
+ if (!a || !n.simulateTouch && i.pointerType === "mouse" || t.animating && n.preventInteractionOnTransition)
1429
+ return;
1430
+ !t.animating && n.cssMode && n.loop && t.loopFix();
1431
+ let d = i.target;
1432
+ if (n.touchEventsTarget === "wrapper" && !es(d, t.wrapperEl) || "which" in i && i.which === 3 || "button" in i && i.button > 0 || r.isTouched && r.isMoved) return;
1433
+ const l = !!n.noSwipingClass && n.noSwipingClass !== "", c = i.composedPath ? i.composedPath() : i.path;
1434
+ l && i.target && i.target.shadowRoot && c && (d = c[0]);
1435
+ const u = n.noSwipingSelector ? n.noSwipingSelector : `.${n.noSwipingClass}`, h = !!(i.target && i.target.shadowRoot);
1436
+ if (n.noSwiping && (h ? qs(u, d) : d.closest(u))) {
1437
+ t.allowClick = !0;
1438
+ return;
1439
+ }
1440
+ if (n.swipeHandler && !d.closest(n.swipeHandler))
1441
+ return;
1442
+ o.currentX = i.pageX, o.currentY = i.pageY;
1443
+ const m = o.currentX, f = o.currentY;
1444
+ if (!Ye(t, i, m))
1445
+ return;
1446
+ Object.assign(r, {
1447
+ isTouched: !0,
1448
+ isMoved: !1,
1449
+ allowTouchCallbacks: !0,
1450
+ isScrolling: void 0,
1451
+ startMoving: void 0
1452
+ }), o.startX = m, o.startY = f, r.touchStartTime = ue(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, n.threshold > 0 && (r.allowThresholdMove = !1);
1453
+ let g = !0;
1454
+ d.matches(r.focusableElements) && (g = !1, d.nodeName === "SELECT" && (r.isTouched = !1)), s.activeElement && s.activeElement.matches(r.focusableElements) && s.activeElement !== d && (i.pointerType === "mouse" || i.pointerType !== "mouse" && !d.matches(r.focusableElements)) && s.activeElement.blur();
1455
+ const w = g && t.allowTouchMove && n.touchStartPreventDefault;
1456
+ (n.touchStartForcePreventDefault || w) && !d.isContentEditable && i.preventDefault(), n.freeMode && n.freeMode.enabled && t.freeMode && t.animating && !n.cssMode && t.freeMode.onTouchStart(), t.emit("touchStart", i);
1457
+ }
1458
+ function Xs(e) {
1459
+ const t = Q(), s = this, i = s.touchEventsData, {
1460
+ params: r,
1461
+ touches: n,
1462
+ rtlTranslate: o,
1463
+ enabled: a
1464
+ } = s;
1465
+ if (!a || !r.simulateTouch && e.pointerType === "mouse") return;
1466
+ let d = e;
1467
+ if (d.originalEvent && (d = d.originalEvent), d.type === "pointermove" && (i.touchId !== null || d.pointerId !== i.pointerId))
1468
+ return;
1469
+ let l;
1470
+ if (d.type === "touchmove") {
1471
+ if (l = [...d.changedTouches].find((T) => T.identifier === i.touchId), !l || l.identifier !== i.touchId) return;
1472
+ } else
1473
+ l = d;
1474
+ if (!i.isTouched) {
1475
+ i.startMoving && i.isScrolling && s.emit("touchMoveOpposite", d);
1476
+ return;
1477
+ }
1478
+ const c = l.pageX, u = l.pageY;
1479
+ if (d.preventedByNestedSwiper) {
1480
+ n.startX = c, n.startY = u;
1481
+ return;
1482
+ }
1483
+ if (!s.allowTouchMove) {
1484
+ d.target.matches(i.focusableElements) || (s.allowClick = !1), i.isTouched && (Object.assign(n, {
1485
+ startX: c,
1486
+ startY: u,
1487
+ currentX: c,
1488
+ currentY: u
1489
+ }), i.touchStartTime = ue());
1490
+ return;
1491
+ }
1492
+ if (r.touchReleaseOnEdges && !r.loop)
1493
+ if (s.isVertical()) {
1494
+ if (u < n.startY && s.translate <= s.maxTranslate() || u > n.startY && s.translate >= s.minTranslate()) {
1495
+ i.isTouched = !1, i.isMoved = !1;
1496
+ return;
1497
+ }
1498
+ } else {
1499
+ if (o && (c > n.startX && -s.translate <= s.maxTranslate() || c < n.startX && -s.translate >= s.minTranslate()))
1500
+ return;
1501
+ if (!o && (c < n.startX && s.translate <= s.maxTranslate() || c > n.startX && s.translate >= s.minTranslate()))
1502
+ return;
1503
+ }
1504
+ if (t.activeElement && t.activeElement.matches(i.focusableElements) && t.activeElement !== d.target && d.pointerType !== "mouse" && t.activeElement.blur(), t.activeElement && d.target === t.activeElement && d.target.matches(i.focusableElements)) {
1505
+ i.isMoved = !0, s.allowClick = !1;
1506
+ return;
1507
+ }
1508
+ i.allowTouchCallbacks && s.emit("touchMove", d), n.previousX = n.currentX, n.previousY = n.currentY, n.currentX = c, n.currentY = u;
1509
+ const h = n.currentX - n.startX, m = n.currentY - n.startY;
1510
+ if (s.params.threshold && Math.sqrt(h ** 2 + m ** 2) < s.params.threshold) return;
1511
+ if (typeof i.isScrolling > "u") {
1512
+ let T;
1513
+ s.isHorizontal() && n.currentY === n.startY || s.isVertical() && n.currentX === n.startX ? i.isScrolling = !1 : h * h + m * m >= 25 && (T = Math.atan2(Math.abs(m), Math.abs(h)) * 180 / Math.PI, i.isScrolling = s.isHorizontal() ? T > r.touchAngle : 90 - T > r.touchAngle);
1514
+ }
1515
+ if (i.isScrolling && s.emit("touchMoveOpposite", d), typeof i.startMoving > "u" && (n.currentX !== n.startX || n.currentY !== n.startY) && (i.startMoving = !0), i.isScrolling || d.type === "touchmove" && i.preventTouchMoveFromPointerMove) {
1516
+ i.isTouched = !1;
1517
+ return;
1518
+ }
1519
+ if (!i.startMoving)
1520
+ return;
1521
+ s.allowClick = !1, !r.cssMode && d.cancelable && d.preventDefault(), r.touchMoveStopPropagation && !r.nested && d.stopPropagation();
1522
+ let f = s.isHorizontal() ? h : m, g = s.isHorizontal() ? n.currentX - n.previousX : n.currentY - n.previousY;
1523
+ r.oneWayMovement && (f = Math.abs(f) * (o ? 1 : -1), g = Math.abs(g) * (o ? 1 : -1)), n.diff = f, f *= r.touchRatio, o && (f = -f, g = -g);
1524
+ const w = s.touchesDirection;
1525
+ s.swipeDirection = f > 0 ? "prev" : "next", s.touchesDirection = g > 0 ? "prev" : "next";
1526
+ const S = s.params.loop && !r.cssMode, y = s.touchesDirection === "next" && s.allowSlideNext || s.touchesDirection === "prev" && s.allowSlidePrev;
1527
+ if (!i.isMoved) {
1528
+ if (S && y && s.loopFix({
1529
+ direction: s.swipeDirection
1530
+ }), i.startTranslate = s.getTranslate(), s.setTransition(0), s.animating) {
1531
+ const T = new window.CustomEvent("transitionend", {
1532
+ bubbles: !0,
1533
+ cancelable: !0,
1534
+ detail: {
1535
+ bySwiperTouchMove: !0
1536
+ }
1537
+ });
1538
+ s.wrapperEl.dispatchEvent(T);
1539
+ }
1540
+ i.allowMomentumBounce = !1, r.grabCursor && (s.allowSlideNext === !0 || s.allowSlidePrev === !0) && s.setGrabCursor(!0), s.emit("sliderFirstMove", d);
1541
+ }
1542
+ if ((/* @__PURE__ */ new Date()).getTime(), r._loopSwapReset !== !1 && i.isMoved && i.allowThresholdMove && w !== s.touchesDirection && S && y && Math.abs(f) >= 1) {
1543
+ Object.assign(n, {
1544
+ startX: c,
1545
+ startY: u,
1546
+ currentX: c,
1547
+ currentY: u,
1548
+ startTranslate: i.currentTranslate
1549
+ }), i.loopSwapReset = !0, i.startTranslate = i.currentTranslate;
1550
+ return;
1551
+ }
1552
+ s.emit("sliderMove", d), i.isMoved = !0, i.currentTranslate = f + i.startTranslate;
1553
+ let v = !0, E = r.resistanceRatio;
1554
+ if (r.touchReleaseOnEdges && (E = 0), f > 0 ? (S && y && i.allowThresholdMove && i.currentTranslate > (r.centeredSlides ? s.minTranslate() - s.slidesSizesGrid[s.activeIndex + 1] - (r.slidesPerView !== "auto" && s.slides.length - r.slidesPerView >= 2 ? s.slidesSizesGrid[s.activeIndex + 1] + s.params.spaceBetween : 0) - s.params.spaceBetween : s.minTranslate()) && s.loopFix({
1555
+ direction: "prev",
1556
+ setTranslate: !0,
1557
+ activeSlideIndex: 0
1558
+ }), i.currentTranslate > s.minTranslate() && (v = !1, r.resistance && (i.currentTranslate = s.minTranslate() - 1 + (-s.minTranslate() + i.startTranslate + f) ** E))) : f < 0 && (S && y && i.allowThresholdMove && i.currentTranslate < (r.centeredSlides ? s.maxTranslate() + s.slidesSizesGrid[s.slidesSizesGrid.length - 1] + s.params.spaceBetween + (r.slidesPerView !== "auto" && s.slides.length - r.slidesPerView >= 2 ? s.slidesSizesGrid[s.slidesSizesGrid.length - 1] + s.params.spaceBetween : 0) : s.maxTranslate()) && s.loopFix({
1559
+ direction: "next",
1560
+ setTranslate: !0,
1561
+ activeSlideIndex: s.slides.length - (r.slidesPerView === "auto" ? s.slidesPerViewDynamic() : Math.ceil(parseFloat(r.slidesPerView, 10)))
1562
+ }), i.currentTranslate < s.maxTranslate() && (v = !1, r.resistance && (i.currentTranslate = s.maxTranslate() + 1 - (s.maxTranslate() - i.startTranslate - f) ** E))), v && (d.preventedByNestedSwiper = !0), !s.allowSlideNext && s.swipeDirection === "next" && i.currentTranslate < i.startTranslate && (i.currentTranslate = i.startTranslate), !s.allowSlidePrev && s.swipeDirection === "prev" && i.currentTranslate > i.startTranslate && (i.currentTranslate = i.startTranslate), !s.allowSlidePrev && !s.allowSlideNext && (i.currentTranslate = i.startTranslate), r.threshold > 0)
1563
+ if (Math.abs(f) > r.threshold || i.allowThresholdMove) {
1564
+ if (!i.allowThresholdMove) {
1565
+ i.allowThresholdMove = !0, n.startX = n.currentX, n.startY = n.currentY, i.currentTranslate = i.startTranslate, n.diff = s.isHorizontal() ? n.currentX - n.startX : n.currentY - n.startY;
1566
+ return;
1567
+ }
1568
+ } else {
1569
+ i.currentTranslate = i.startTranslate;
1570
+ return;
1571
+ }
1572
+ !r.followFinger || r.cssMode || ((r.freeMode && r.freeMode.enabled && s.freeMode || r.watchSlidesProgress) && (s.updateActiveIndex(), s.updateSlidesClasses()), r.freeMode && r.freeMode.enabled && s.freeMode && s.freeMode.onTouchMove(), s.updateProgress(i.currentTranslate), s.setTranslate(i.currentTranslate));
1573
+ }
1574
+ function Ys(e) {
1575
+ const t = this, s = t.touchEventsData;
1576
+ let i = e;
1577
+ i.originalEvent && (i = i.originalEvent);
1578
+ let r;
1579
+ if (i.type === "touchend" || i.type === "touchcancel") {
1580
+ if (r = [...i.changedTouches].find((T) => T.identifier === s.touchId), !r || r.identifier !== s.touchId) return;
1581
+ } else {
1582
+ if (s.touchId !== null || i.pointerId !== s.pointerId) return;
1583
+ r = i;
1584
+ }
1585
+ if (["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(i.type) && !(["pointercancel", "contextmenu"].includes(i.type) && (t.browser.isSafari || t.browser.isWebView)))
1586
+ return;
1587
+ s.pointerId = null, s.touchId = null;
1588
+ const {
1589
+ params: o,
1590
+ touches: a,
1591
+ rtlTranslate: d,
1592
+ slidesGrid: l,
1593
+ enabled: c
1594
+ } = t;
1595
+ if (!c || !o.simulateTouch && i.pointerType === "mouse") return;
1596
+ if (s.allowTouchCallbacks && t.emit("touchEnd", i), s.allowTouchCallbacks = !1, !s.isTouched) {
1597
+ s.isMoved && o.grabCursor && t.setGrabCursor(!1), s.isMoved = !1, s.startMoving = !1;
1598
+ return;
1599
+ }
1600
+ o.grabCursor && s.isMoved && s.isTouched && (t.allowSlideNext === !0 || t.allowSlidePrev === !0) && t.setGrabCursor(!1);
1601
+ const u = ue(), h = u - s.touchStartTime;
1602
+ if (t.allowClick) {
1603
+ const T = i.path || i.composedPath && i.composedPath();
1604
+ t.updateClickedSlide(T && T[0] || i.target, T), t.emit("tap click", i), h < 300 && u - s.lastClickTime < 300 && t.emit("doubleTap doubleClick", i);
1605
+ }
1606
+ if (s.lastClickTime = ue(), pt(() => {
1607
+ t.destroyed || (t.allowClick = !0);
1608
+ }), !s.isTouched || !s.isMoved || !t.swipeDirection || a.diff === 0 && !s.loopSwapReset || s.currentTranslate === s.startTranslate && !s.loopSwapReset) {
1609
+ s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
1610
+ return;
1611
+ }
1612
+ s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
1613
+ let m;
1614
+ if (o.followFinger ? m = d ? t.translate : -t.translate : m = -s.currentTranslate, o.cssMode)
1615
+ return;
1616
+ if (o.freeMode && o.freeMode.enabled) {
1617
+ t.freeMode.onTouchEnd({
1618
+ currentPos: m
1619
+ });
1620
+ return;
1621
+ }
1622
+ const f = m >= -t.maxTranslate() && !t.params.loop;
1623
+ let g = 0, w = t.slidesSizesGrid[0];
1624
+ for (let T = 0; T < l.length; T += T < o.slidesPerGroupSkip ? 1 : o.slidesPerGroup) {
1625
+ const M = T < o.slidesPerGroupSkip - 1 ? 1 : o.slidesPerGroup;
1626
+ typeof l[T + M] < "u" ? (f || m >= l[T] && m < l[T + M]) && (g = T, w = l[T + M] - l[T]) : (f || m >= l[T]) && (g = T, w = l[l.length - 1] - l[l.length - 2]);
1627
+ }
1628
+ let S = null, y = null;
1629
+ o.rewind && (t.isBeginning ? y = o.virtual && o.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (S = 0));
1630
+ const v = (m - l[g]) / w, E = g < o.slidesPerGroupSkip - 1 ? 1 : o.slidesPerGroup;
1631
+ if (h > o.longSwipesMs) {
1632
+ if (!o.longSwipes) {
1633
+ t.slideTo(t.activeIndex);
1634
+ return;
1635
+ }
1636
+ t.swipeDirection === "next" && (v >= o.longSwipesRatio ? t.slideTo(o.rewind && t.isEnd ? S : g + E) : t.slideTo(g)), t.swipeDirection === "prev" && (v > 1 - o.longSwipesRatio ? t.slideTo(g + E) : y !== null && v < 0 && Math.abs(v) > o.longSwipesRatio ? t.slideTo(y) : t.slideTo(g));
1637
+ } else {
1638
+ if (!o.shortSwipes) {
1639
+ t.slideTo(t.activeIndex);
1640
+ return;
1641
+ }
1642
+ t.navigation && (i.target === t.navigation.nextEl || i.target === t.navigation.prevEl) ? i.target === t.navigation.nextEl ? t.slideTo(g + E) : t.slideTo(g) : (t.swipeDirection === "next" && t.slideTo(S !== null ? S : g + E), t.swipeDirection === "prev" && t.slideTo(y !== null ? y : g));
1643
+ }
1644
+ }
1645
+ function Je() {
1646
+ const e = this, {
1647
+ params: t,
1648
+ el: s
1649
+ } = e;
1650
+ if (s && s.offsetWidth === 0) return;
1651
+ t.breakpoints && e.setBreakpoint();
1652
+ const {
1653
+ allowSlideNext: i,
1654
+ allowSlidePrev: r,
1655
+ snapGrid: n
1656
+ } = e, o = e.virtual && e.params.virtual.enabled;
1657
+ e.allowSlideNext = !0, e.allowSlidePrev = !0, e.updateSize(), e.updateSlides(), e.updateSlidesClasses();
1658
+ const a = o && t.loop;
1659
+ (t.slidesPerView === "auto" || t.slidesPerView > 1) && e.isEnd && !e.isBeginning && !e.params.centeredSlides && !a ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.params.loop && !o ? e.slideToLoop(e.realIndex, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0), e.autoplay && e.autoplay.running && e.autoplay.paused && (clearTimeout(e.autoplay.resizeTimeout), e.autoplay.resizeTimeout = setTimeout(() => {
1660
+ e.autoplay && e.autoplay.running && e.autoplay.paused && e.autoplay.resume();
1661
+ }, 500)), e.allowSlidePrev = r, e.allowSlideNext = i, e.params.watchOverflow && n !== e.snapGrid && e.checkOverflow();
1662
+ }
1663
+ function Js(e) {
1664
+ const t = this;
1665
+ t.enabled && (t.allowClick || (t.params.preventClicks && e.preventDefault(), t.params.preventClicksPropagation && t.animating && (e.stopPropagation(), e.stopImmediatePropagation())));
1666
+ }
1667
+ function Ks() {
1668
+ const e = this, {
1669
+ wrapperEl: t,
1670
+ rtlTranslate: s,
1671
+ enabled: i
1672
+ } = e;
1673
+ if (!i) return;
1674
+ e.previousTranslate = e.translate, e.isHorizontal() ? e.translate = -t.scrollLeft : e.translate = -t.scrollTop, e.translate === 0 && (e.translate = 0), e.updateActiveIndex(), e.updateSlidesClasses();
1675
+ let r;
1676
+ const n = e.maxTranslate() - e.minTranslate();
1677
+ n === 0 ? r = 0 : r = (e.translate - e.minTranslate()) / n, r !== e.progress && e.updateProgress(s ? -e.translate : e.translate), e.emit("setTranslate", e.translate, !1);
1678
+ }
1679
+ function Qs(e) {
1680
+ const t = this;
1681
+ ae(t, e.target), !(t.params.cssMode || t.params.slidesPerView !== "auto" && !t.params.autoHeight) && t.update();
1682
+ }
1683
+ function Zs() {
1684
+ const e = this;
1685
+ e.documentTouchHandlerProceeded || (e.documentTouchHandlerProceeded = !0, e.params.touchReleaseOnEdges && (e.el.style.touchAction = "auto"));
1686
+ }
1687
+ const vt = (e, t) => {
1688
+ const s = Q(), {
1689
+ params: i,
1690
+ el: r,
1691
+ wrapperEl: n,
1692
+ device: o
1693
+ } = e, a = !!i.nested, d = t === "on" ? "addEventListener" : "removeEventListener", l = t;
1694
+ !r || typeof r == "string" || (s[d]("touchstart", e.onDocumentTouchStart, {
1695
+ passive: !1,
1696
+ capture: a
1697
+ }), r[d]("touchstart", e.onTouchStart, {
1698
+ passive: !1
1699
+ }), r[d]("pointerdown", e.onTouchStart, {
1700
+ passive: !1
1701
+ }), s[d]("touchmove", e.onTouchMove, {
1702
+ passive: !1,
1703
+ capture: a
1704
+ }), s[d]("pointermove", e.onTouchMove, {
1705
+ passive: !1,
1706
+ capture: a
1707
+ }), s[d]("touchend", e.onTouchEnd, {
1708
+ passive: !0
1709
+ }), s[d]("pointerup", e.onTouchEnd, {
1710
+ passive: !0
1711
+ }), s[d]("pointercancel", e.onTouchEnd, {
1712
+ passive: !0
1713
+ }), s[d]("touchcancel", e.onTouchEnd, {
1714
+ passive: !0
1715
+ }), s[d]("pointerout", e.onTouchEnd, {
1716
+ passive: !0
1717
+ }), s[d]("pointerleave", e.onTouchEnd, {
1718
+ passive: !0
1719
+ }), s[d]("contextmenu", e.onTouchEnd, {
1720
+ passive: !0
1721
+ }), (i.preventClicks || i.preventClicksPropagation) && r[d]("click", e.onClick, !0), i.cssMode && n[d]("scroll", e.onScroll), i.updateOnWindowResize ? e[l](o.ios || o.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", Je, !0) : e[l]("observerUpdate", Je, !0), r[d]("load", e.onLoad, {
1722
+ capture: !0
1723
+ }));
1724
+ };
1725
+ function ei() {
1726
+ const e = this, {
1727
+ params: t
1728
+ } = e;
1729
+ e.onTouchStart = Ws.bind(e), e.onTouchMove = Xs.bind(e), e.onTouchEnd = Ys.bind(e), e.onDocumentTouchStart = Zs.bind(e), t.cssMode && (e.onScroll = Ks.bind(e)), e.onClick = Js.bind(e), e.onLoad = Qs.bind(e), vt(e, "on");
1730
+ }
1731
+ function ti() {
1732
+ vt(this, "off");
1733
+ }
1734
+ var si = {
1735
+ attachEvents: ei,
1736
+ detachEvents: ti
1737
+ };
1738
+ const Ke = (e, t) => e.grid && t.grid && t.grid.rows > 1;
1739
+ function ii() {
1740
+ const e = this, {
1741
+ realIndex: t,
1742
+ initialized: s,
1743
+ params: i,
1744
+ el: r
1745
+ } = e, n = i.breakpoints;
1746
+ if (!n || n && Object.keys(n).length === 0) return;
1747
+ const o = Q(), a = i.breakpointsBase === "window" || !i.breakpointsBase ? i.breakpointsBase : "container", d = ["window", "container"].includes(i.breakpointsBase) || !i.breakpointsBase ? e.el : o.querySelector(i.breakpointsBase), l = e.getBreakpoint(n, a, d);
1748
+ if (!l || e.currentBreakpoint === l) return;
1749
+ const u = (l in n ? n[l] : void 0) || e.originalParams, h = Ke(e, i), m = Ke(e, u), f = e.params.grabCursor, g = u.grabCursor, w = i.enabled;
1750
+ h && !m ? (r.classList.remove(`${i.containerModifierClass}grid`, `${i.containerModifierClass}grid-column`), e.emitContainerClasses()) : !h && m && (r.classList.add(`${i.containerModifierClass}grid`), (u.grid.fill && u.grid.fill === "column" || !u.grid.fill && i.grid.fill === "column") && r.classList.add(`${i.containerModifierClass}grid-column`), e.emitContainerClasses()), f && !g ? e.unsetGrabCursor() : !f && g && e.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((M) => {
1751
+ if (typeof u[M] > "u") return;
1752
+ const O = i[M] && i[M].enabled, C = u[M] && u[M].enabled;
1753
+ O && !C && e[M].disable(), !O && C && e[M].enable();
1754
+ });
1755
+ const S = u.direction && u.direction !== i.direction, y = i.loop && (u.slidesPerView !== i.slidesPerView || S), v = i.loop;
1756
+ S && s && e.changeDirection(), G(e.params, u);
1757
+ const E = e.params.enabled, T = e.params.loop;
1758
+ Object.assign(e, {
1759
+ allowTouchMove: e.params.allowTouchMove,
1760
+ allowSlideNext: e.params.allowSlideNext,
1761
+ allowSlidePrev: e.params.allowSlidePrev
1762
+ }), w && !E ? e.disable() : !w && E && e.enable(), e.currentBreakpoint = l, e.emit("_beforeBreakpoint", u), s && (y ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !v && T ? (e.loopCreate(t), e.updateSlides()) : v && !T && e.loopDestroy()), e.emit("breakpoint", u);
1763
+ }
1764
+ function ri(e, t, s) {
1765
+ if (t === void 0 && (t = "window"), !e || t === "container" && !s) return;
1766
+ let i = !1;
1767
+ const r = N(), n = t === "window" ? r.innerHeight : s.clientHeight, o = Object.keys(e).map((a) => {
1768
+ if (typeof a == "string" && a.indexOf("@") === 0) {
1769
+ const d = parseFloat(a.substr(1));
1770
+ return {
1771
+ value: n * d,
1772
+ point: a
1773
+ };
1774
+ }
1775
+ return {
1776
+ value: a,
1777
+ point: a
1778
+ };
1779
+ });
1780
+ o.sort((a, d) => parseInt(a.value, 10) - parseInt(d.value, 10));
1781
+ for (let a = 0; a < o.length; a += 1) {
1782
+ const {
1783
+ point: d,
1784
+ value: l
1785
+ } = o[a];
1786
+ t === "window" ? r.matchMedia(`(min-width: ${l}px)`).matches && (i = d) : l <= s.clientWidth && (i = d);
1787
+ }
1788
+ return i || "max";
1789
+ }
1790
+ var ni = {
1791
+ setBreakpoint: ii,
1792
+ getBreakpoint: ri
1793
+ };
1794
+ function oi(e, t) {
1795
+ const s = [];
1796
+ return e.forEach((i) => {
1797
+ typeof i == "object" ? Object.keys(i).forEach((r) => {
1798
+ i[r] && s.push(t + r);
1799
+ }) : typeof i == "string" && s.push(t + i);
1800
+ }), s;
1801
+ }
1802
+ function ai() {
1803
+ const e = this, {
1804
+ classNames: t,
1805
+ params: s,
1806
+ rtl: i,
1807
+ el: r,
1808
+ device: n
1809
+ } = e, o = oi(["initialized", s.direction, {
1810
+ "free-mode": e.params.freeMode && s.freeMode.enabled
1811
+ }, {
1812
+ autoheight: s.autoHeight
1813
+ }, {
1814
+ rtl: i
1815
+ }, {
1816
+ grid: s.grid && s.grid.rows > 1
1817
+ }, {
1818
+ "grid-column": s.grid && s.grid.rows > 1 && s.grid.fill === "column"
1819
+ }, {
1820
+ android: n.android
1821
+ }, {
1822
+ ios: n.ios
1823
+ }, {
1824
+ "css-mode": s.cssMode
1825
+ }, {
1826
+ centered: s.cssMode && s.centeredSlides
1827
+ }, {
1828
+ "watch-progress": s.watchSlidesProgress
1829
+ }], s.containerModifierClass);
1830
+ t.push(...o), r.classList.add(...t), e.emitContainerClasses();
1831
+ }
1832
+ function li() {
1833
+ const e = this, {
1834
+ el: t,
1835
+ classNames: s
1836
+ } = e;
1837
+ !t || typeof t == "string" || (t.classList.remove(...s), e.emitContainerClasses());
1838
+ }
1839
+ var di = {
1840
+ addClasses: ai,
1841
+ removeClasses: li
1842
+ };
1843
+ function ci() {
1844
+ const e = this, {
1845
+ isLocked: t,
1846
+ params: s
1847
+ } = e, {
1848
+ slidesOffsetBefore: i
1849
+ } = s;
1850
+ if (i) {
1851
+ const r = e.slides.length - 1, n = e.slidesGrid[r] + e.slidesSizesGrid[r] + i * 2;
1852
+ e.isLocked = e.size > n;
1853
+ } else
1854
+ e.isLocked = e.snapGrid.length === 1;
1855
+ s.allowSlideNext === !0 && (e.allowSlideNext = !e.isLocked), s.allowSlidePrev === !0 && (e.allowSlidePrev = !e.isLocked), t && t !== e.isLocked && (e.isEnd = !1), t !== e.isLocked && e.emit(e.isLocked ? "lock" : "unlock");
1856
+ }
1857
+ var ui = {
1858
+ checkOverflow: ci
1859
+ }, Qe = {
1860
+ init: !0,
1861
+ direction: "horizontal",
1862
+ oneWayMovement: !1,
1863
+ swiperElementNodeName: "SWIPER-CONTAINER",
1864
+ touchEventsTarget: "wrapper",
1865
+ initialSlide: 0,
1866
+ speed: 300,
1867
+ cssMode: !1,
1868
+ updateOnWindowResize: !0,
1869
+ resizeObserver: !0,
1870
+ nested: !1,
1871
+ createElements: !1,
1872
+ eventsPrefix: "swiper",
1873
+ enabled: !0,
1874
+ focusableElements: "input, select, option, textarea, button, video, label",
1875
+ // Overrides
1876
+ width: null,
1877
+ height: null,
1878
+ //
1879
+ preventInteractionOnTransition: !1,
1880
+ // ssr
1881
+ userAgent: null,
1882
+ url: null,
1883
+ // To support iOS's swipe-to-go-back gesture (when being used in-app).
1884
+ edgeSwipeDetection: !1,
1885
+ edgeSwipeThreshold: 20,
1886
+ // Autoheight
1887
+ autoHeight: !1,
1888
+ // Set wrapper width
1889
+ setWrapperSize: !1,
1890
+ // Virtual Translate
1891
+ virtualTranslate: !1,
1892
+ // Effects
1893
+ effect: "slide",
1894
+ // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
1895
+ // Breakpoints
1896
+ breakpoints: void 0,
1897
+ breakpointsBase: "window",
1898
+ // Slides grid
1899
+ spaceBetween: 0,
1900
+ slidesPerView: 1,
1901
+ slidesPerGroup: 1,
1902
+ slidesPerGroupSkip: 0,
1903
+ slidesPerGroupAuto: !1,
1904
+ centeredSlides: !1,
1905
+ centeredSlidesBounds: !1,
1906
+ slidesOffsetBefore: 0,
1907
+ // in px
1908
+ slidesOffsetAfter: 0,
1909
+ // in px
1910
+ normalizeSlideIndex: !0,
1911
+ centerInsufficientSlides: !1,
1912
+ // Disable swiper and hide navigation when container not overflow
1913
+ watchOverflow: !0,
1914
+ // Round length
1915
+ roundLengths: !1,
1916
+ // Touches
1917
+ touchRatio: 1,
1918
+ touchAngle: 45,
1919
+ simulateTouch: !0,
1920
+ shortSwipes: !0,
1921
+ longSwipes: !0,
1922
+ longSwipesRatio: 0.5,
1923
+ longSwipesMs: 300,
1924
+ followFinger: !0,
1925
+ allowTouchMove: !0,
1926
+ threshold: 5,
1927
+ touchMoveStopPropagation: !1,
1928
+ touchStartPreventDefault: !0,
1929
+ touchStartForcePreventDefault: !1,
1930
+ touchReleaseOnEdges: !1,
1931
+ // Unique Navigation Elements
1932
+ uniqueNavElements: !0,
1933
+ // Resistance
1934
+ resistance: !0,
1935
+ resistanceRatio: 0.85,
1936
+ // Progress
1937
+ watchSlidesProgress: !1,
1938
+ // Cursor
1939
+ grabCursor: !1,
1940
+ // Clicks
1941
+ preventClicks: !0,
1942
+ preventClicksPropagation: !0,
1943
+ slideToClickedSlide: !1,
1944
+ // loop
1945
+ loop: !1,
1946
+ loopAddBlankSlides: !0,
1947
+ loopAdditionalSlides: 0,
1948
+ loopPreventsSliding: !0,
1949
+ // rewind
1950
+ rewind: !1,
1951
+ // Swiping/no swiping
1952
+ allowSlidePrev: !0,
1953
+ allowSlideNext: !0,
1954
+ swipeHandler: null,
1955
+ // '.swipe-handler',
1956
+ noSwiping: !0,
1957
+ noSwipingClass: "swiper-no-swiping",
1958
+ noSwipingSelector: null,
1959
+ // Passive Listeners
1960
+ passiveListeners: !0,
1961
+ maxBackfaceHiddenSlides: 10,
1962
+ // NS
1963
+ containerModifierClass: "swiper-",
1964
+ // NEW
1965
+ slideClass: "swiper-slide",
1966
+ slideBlankClass: "swiper-slide-blank",
1967
+ slideActiveClass: "swiper-slide-active",
1968
+ slideVisibleClass: "swiper-slide-visible",
1969
+ slideFullyVisibleClass: "swiper-slide-fully-visible",
1970
+ slideNextClass: "swiper-slide-next",
1971
+ slidePrevClass: "swiper-slide-prev",
1972
+ wrapperClass: "swiper-wrapper",
1973
+ lazyPreloaderClass: "swiper-lazy-preloader",
1974
+ lazyPreloadPrevNext: 0,
1975
+ // Callbacks
1976
+ runCallbacksOnInit: !0,
1977
+ // Internals
1978
+ _emitClasses: !1
1979
+ };
1980
+ function fi(e, t) {
1981
+ return function(i) {
1982
+ i === void 0 && (i = {});
1983
+ const r = Object.keys(i)[0], n = i[r];
1984
+ if (typeof n != "object" || n === null) {
1985
+ G(t, i);
1986
+ return;
1987
+ }
1988
+ if (e[r] === !0 && (e[r] = {
1989
+ enabled: !0
1990
+ }), r === "navigation" && e[r] && e[r].enabled && !e[r].prevEl && !e[r].nextEl && (e[r].auto = !0), ["pagination", "scrollbar"].indexOf(r) >= 0 && e[r] && e[r].enabled && !e[r].el && (e[r].auto = !0), !(r in e && "enabled" in n)) {
1991
+ G(t, i);
1992
+ return;
1993
+ }
1994
+ typeof e[r] == "object" && !("enabled" in e[r]) && (e[r].enabled = !0), e[r] || (e[r] = {
1995
+ enabled: !1
1996
+ }), G(t, i);
1997
+ };
1998
+ }
1999
+ const Oe = {
2000
+ eventsEmitter: ds,
2001
+ update: ys,
2002
+ translate: Cs,
2003
+ transition: Ls,
2004
+ slide: _s,
2005
+ loop: Hs,
2006
+ grabCursor: Us,
2007
+ events: si,
2008
+ breakpoints: ni,
2009
+ checkOverflow: ui,
2010
+ classes: di
2011
+ }, Me = {};
2012
+ class V {
2013
+ constructor() {
2014
+ let t, s;
2015
+ for (var i = arguments.length, r = new Array(i), n = 0; n < i; n++)
2016
+ r[n] = arguments[n];
2017
+ r.length === 1 && r[0].constructor && Object.prototype.toString.call(r[0]).slice(8, -1) === "Object" ? s = r[0] : [t, s] = r, s || (s = {}), s = G({}, s), t && !s.el && (s.el = t);
2018
+ const o = Q();
2019
+ if (s.el && typeof s.el == "string" && o.querySelectorAll(s.el).length > 1) {
2020
+ const c = [];
2021
+ return o.querySelectorAll(s.el).forEach((u) => {
2022
+ const h = G({}, s, {
2023
+ el: u
2024
+ });
2025
+ c.push(new V(h));
2026
+ }), c;
2027
+ }
2028
+ const a = this;
2029
+ a.__swiper__ = !0, a.support = mt(), a.device = gt({
2030
+ userAgent: s.userAgent
2031
+ }), a.browser = wt(), a.eventsListeners = {}, a.eventsAnyListeners = [], a.modules = [...a.__modules__], s.modules && Array.isArray(s.modules) && a.modules.push(...s.modules);
2032
+ const d = {};
2033
+ a.modules.forEach((c) => {
2034
+ c({
2035
+ params: s,
2036
+ swiper: a,
2037
+ extendParams: fi(s, d),
2038
+ on: a.on.bind(a),
2039
+ once: a.once.bind(a),
2040
+ off: a.off.bind(a),
2041
+ emit: a.emit.bind(a)
2042
+ });
2043
+ });
2044
+ const l = G({}, Qe, d);
2045
+ return a.params = G({}, l, Me, s), a.originalParams = G({}, a.params), a.passedParams = G({}, s), a.params && a.params.on && Object.keys(a.params.on).forEach((c) => {
2046
+ a.on(c, a.params.on[c]);
2047
+ }), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
2048
+ enabled: a.params.enabled,
2049
+ el: t,
2050
+ // Classes
2051
+ classNames: [],
2052
+ // Slides
2053
+ slides: [],
2054
+ slidesGrid: [],
2055
+ snapGrid: [],
2056
+ slidesSizesGrid: [],
2057
+ // isDirection
2058
+ isHorizontal() {
2059
+ return a.params.direction === "horizontal";
2060
+ },
2061
+ isVertical() {
2062
+ return a.params.direction === "vertical";
2063
+ },
2064
+ // Indexes
2065
+ activeIndex: 0,
2066
+ realIndex: 0,
2067
+ //
2068
+ isBeginning: !0,
2069
+ isEnd: !1,
2070
+ // Props
2071
+ translate: 0,
2072
+ previousTranslate: 0,
2073
+ progress: 0,
2074
+ velocity: 0,
2075
+ animating: !1,
2076
+ cssOverflowAdjustment() {
2077
+ return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
2078
+ },
2079
+ // Locks
2080
+ allowSlideNext: a.params.allowSlideNext,
2081
+ allowSlidePrev: a.params.allowSlidePrev,
2082
+ // Touch Events
2083
+ touchEventsData: {
2084
+ isTouched: void 0,
2085
+ isMoved: void 0,
2086
+ allowTouchCallbacks: void 0,
2087
+ touchStartTime: void 0,
2088
+ isScrolling: void 0,
2089
+ currentTranslate: void 0,
2090
+ startTranslate: void 0,
2091
+ allowThresholdMove: void 0,
2092
+ // Form elements to match
2093
+ focusableElements: a.params.focusableElements,
2094
+ // Last click time
2095
+ lastClickTime: 0,
2096
+ clickTimeout: void 0,
2097
+ // Velocities
2098
+ velocities: [],
2099
+ allowMomentumBounce: void 0,
2100
+ startMoving: void 0,
2101
+ pointerId: null,
2102
+ touchId: null
2103
+ },
2104
+ // Clicks
2105
+ allowClick: !0,
2106
+ // Touches
2107
+ allowTouchMove: a.params.allowTouchMove,
2108
+ touches: {
2109
+ startX: 0,
2110
+ startY: 0,
2111
+ currentX: 0,
2112
+ currentY: 0,
2113
+ diff: 0
2114
+ },
2115
+ // Images
2116
+ imagesToLoad: [],
2117
+ imagesLoaded: 0
2118
+ }), a.emit("_swiper"), a.params.init && a.init(), a;
2119
+ }
2120
+ getDirectionLabel(t) {
2121
+ return this.isHorizontal() ? t : {
2122
+ width: "height",
2123
+ "margin-top": "margin-left",
2124
+ "margin-bottom ": "margin-right",
2125
+ "margin-left": "margin-top",
2126
+ "margin-right": "margin-bottom",
2127
+ "padding-left": "padding-top",
2128
+ "padding-right": "padding-bottom",
2129
+ marginRight: "marginBottom"
2130
+ }[t];
2131
+ }
2132
+ getSlideIndex(t) {
2133
+ const {
2134
+ slidesEl: s,
2135
+ params: i
2136
+ } = this, r = U(s, `.${i.slideClass}, swiper-slide`), n = qe(r[0]);
2137
+ return qe(t) - n;
2138
+ }
2139
+ getSlideIndexByData(t) {
2140
+ return this.getSlideIndex(this.slides.find((s) => s.getAttribute("data-swiper-slide-index") * 1 === t));
2141
+ }
2142
+ getSlideIndexWhenGrid(t) {
2143
+ return this.grid && this.params.grid && this.params.grid.rows > 1 && (this.params.grid.fill === "column" ? t = Math.floor(t / this.params.grid.rows) : this.params.grid.fill === "row" && (t = t % Math.ceil(this.slides.length / this.params.grid.rows))), t;
2144
+ }
2145
+ recalcSlides() {
2146
+ const t = this, {
2147
+ slidesEl: s,
2148
+ params: i
2149
+ } = t;
2150
+ t.slides = U(s, `.${i.slideClass}, swiper-slide`);
2151
+ }
2152
+ enable() {
2153
+ const t = this;
2154
+ t.enabled || (t.enabled = !0, t.params.grabCursor && t.setGrabCursor(), t.emit("enable"));
2155
+ }
2156
+ disable() {
2157
+ const t = this;
2158
+ t.enabled && (t.enabled = !1, t.params.grabCursor && t.unsetGrabCursor(), t.emit("disable"));
2159
+ }
2160
+ setProgress(t, s) {
2161
+ const i = this;
2162
+ t = Math.min(Math.max(t, 0), 1);
2163
+ const r = i.minTranslate(), o = (i.maxTranslate() - r) * t + r;
2164
+ i.translateTo(o, typeof s > "u" ? 0 : s), i.updateActiveIndex(), i.updateSlidesClasses();
2165
+ }
2166
+ emitContainerClasses() {
2167
+ const t = this;
2168
+ if (!t.params._emitClasses || !t.el) return;
2169
+ const s = t.el.className.split(" ").filter((i) => i.indexOf("swiper") === 0 || i.indexOf(t.params.containerModifierClass) === 0);
2170
+ t.emit("_containerClasses", s.join(" "));
2171
+ }
2172
+ getSlideClasses(t) {
2173
+ const s = this;
2174
+ return s.destroyed ? "" : t.className.split(" ").filter((i) => i.indexOf("swiper-slide") === 0 || i.indexOf(s.params.slideClass) === 0).join(" ");
2175
+ }
2176
+ emitSlidesClasses() {
2177
+ const t = this;
2178
+ if (!t.params._emitClasses || !t.el) return;
2179
+ const s = [];
2180
+ t.slides.forEach((i) => {
2181
+ const r = t.getSlideClasses(i);
2182
+ s.push({
2183
+ slideEl: i,
2184
+ classNames: r
2185
+ }), t.emit("_slideClass", i, r);
2186
+ }), t.emit("_slideClasses", s);
2187
+ }
2188
+ slidesPerViewDynamic(t, s) {
2189
+ t === void 0 && (t = "current"), s === void 0 && (s = !1);
2190
+ const i = this, {
2191
+ params: r,
2192
+ slides: n,
2193
+ slidesGrid: o,
2194
+ slidesSizesGrid: a,
2195
+ size: d,
2196
+ activeIndex: l
2197
+ } = i;
2198
+ let c = 1;
2199
+ if (typeof r.slidesPerView == "number") return r.slidesPerView;
2200
+ if (r.centeredSlides) {
2201
+ let u = n[l] ? Math.ceil(n[l].swiperSlideSize) : 0, h;
2202
+ for (let m = l + 1; m < n.length; m += 1)
2203
+ n[m] && !h && (u += Math.ceil(n[m].swiperSlideSize), c += 1, u > d && (h = !0));
2204
+ for (let m = l - 1; m >= 0; m -= 1)
2205
+ n[m] && !h && (u += n[m].swiperSlideSize, c += 1, u > d && (h = !0));
2206
+ } else if (t === "current")
2207
+ for (let u = l + 1; u < n.length; u += 1)
2208
+ (s ? o[u] + a[u] - o[l] < d : o[u] - o[l] < d) && (c += 1);
2209
+ else
2210
+ for (let u = l - 1; u >= 0; u -= 1)
2211
+ o[l] - o[u] < d && (c += 1);
2212
+ return c;
2213
+ }
2214
+ update() {
2215
+ const t = this;
2216
+ if (!t || t.destroyed) return;
2217
+ const {
2218
+ snapGrid: s,
2219
+ params: i
2220
+ } = t;
2221
+ i.breakpoints && t.setBreakpoint(), [...t.el.querySelectorAll('[loading="lazy"]')].forEach((o) => {
2222
+ o.complete && ae(t, o);
2223
+ }), t.updateSize(), t.updateSlides(), t.updateProgress(), t.updateSlidesClasses();
2224
+ function r() {
2225
+ const o = t.rtlTranslate ? t.translate * -1 : t.translate, a = Math.min(Math.max(o, t.maxTranslate()), t.minTranslate());
2226
+ t.setTranslate(a), t.updateActiveIndex(), t.updateSlidesClasses();
2227
+ }
2228
+ let n;
2229
+ if (i.freeMode && i.freeMode.enabled && !i.cssMode)
2230
+ r(), i.autoHeight && t.updateAutoHeight();
2231
+ else {
2232
+ if ((i.slidesPerView === "auto" || i.slidesPerView > 1) && t.isEnd && !i.centeredSlides) {
2233
+ const o = t.virtual && i.virtual.enabled ? t.virtual.slides : t.slides;
2234
+ n = t.slideTo(o.length - 1, 0, !1, !0);
2235
+ } else
2236
+ n = t.slideTo(t.activeIndex, 0, !1, !0);
2237
+ n || r();
2238
+ }
2239
+ i.watchOverflow && s !== t.snapGrid && t.checkOverflow(), t.emit("update");
2240
+ }
2241
+ changeDirection(t, s) {
2242
+ s === void 0 && (s = !0);
2243
+ const i = this, r = i.params.direction;
2244
+ return t || (t = r === "horizontal" ? "vertical" : "horizontal"), t === r || t !== "horizontal" && t !== "vertical" || (i.el.classList.remove(`${i.params.containerModifierClass}${r}`), i.el.classList.add(`${i.params.containerModifierClass}${t}`), i.emitContainerClasses(), i.params.direction = t, i.slides.forEach((n) => {
2245
+ t === "vertical" ? n.style.width = "" : n.style.height = "";
2246
+ }), i.emit("changeDirection"), s && i.update()), i;
2247
+ }
2248
+ changeLanguageDirection(t) {
2249
+ const s = this;
2250
+ s.rtl && t === "rtl" || !s.rtl && t === "ltr" || (s.rtl = t === "rtl", s.rtlTranslate = s.params.direction === "horizontal" && s.rtl, s.rtl ? (s.el.classList.add(`${s.params.containerModifierClass}rtl`), s.el.dir = "rtl") : (s.el.classList.remove(`${s.params.containerModifierClass}rtl`), s.el.dir = "ltr"), s.update());
2251
+ }
2252
+ mount(t) {
2253
+ const s = this;
2254
+ if (s.mounted) return !0;
2255
+ let i = t || s.params.el;
2256
+ if (typeof i == "string" && (i = document.querySelector(i)), !i)
2257
+ return !1;
2258
+ i.swiper = s, i.parentNode && i.parentNode.host && i.parentNode.host.nodeName === s.params.swiperElementNodeName.toUpperCase() && (s.isElement = !0);
2259
+ const r = () => `.${(s.params.wrapperClass || "").trim().split(" ").join(".")}`;
2260
+ let o = i && i.shadowRoot && i.shadowRoot.querySelector ? i.shadowRoot.querySelector(r()) : U(i, r())[0];
2261
+ return !o && s.params.createElements && (o = Ie("div", s.params.wrapperClass), i.append(o), U(i, `.${s.params.slideClass}`).forEach((a) => {
2262
+ o.append(a);
2263
+ })), Object.assign(s, {
2264
+ el: i,
2265
+ wrapperEl: o,
2266
+ slidesEl: s.isElement && !i.parentNode.host.slideSlots ? i.parentNode.host : o,
2267
+ hostEl: s.isElement ? i.parentNode.host : i,
2268
+ mounted: !0,
2269
+ // RTL
2270
+ rtl: i.dir.toLowerCase() === "rtl" || X(i, "direction") === "rtl",
2271
+ rtlTranslate: s.params.direction === "horizontal" && (i.dir.toLowerCase() === "rtl" || X(i, "direction") === "rtl"),
2272
+ wrongRTL: X(o, "display") === "-webkit-box"
2273
+ }), !0;
2274
+ }
2275
+ init(t) {
2276
+ const s = this;
2277
+ if (s.initialized || s.mount(t) === !1) return s;
2278
+ s.emit("beforeInit"), s.params.breakpoints && s.setBreakpoint(), s.addClasses(), s.updateSize(), s.updateSlides(), s.params.watchOverflow && s.checkOverflow(), s.params.grabCursor && s.enabled && s.setGrabCursor(), s.params.loop && s.virtual && s.params.virtual.enabled ? s.slideTo(s.params.initialSlide + s.virtual.slidesBefore, 0, s.params.runCallbacksOnInit, !1, !0) : s.slideTo(s.params.initialSlide, 0, s.params.runCallbacksOnInit, !1, !0), s.params.loop && s.loopCreate(void 0, !0), s.attachEvents();
2279
+ const r = [...s.el.querySelectorAll('[loading="lazy"]')];
2280
+ return s.isElement && r.push(...s.hostEl.querySelectorAll('[loading="lazy"]')), r.forEach((n) => {
2281
+ n.complete ? ae(s, n) : n.addEventListener("load", (o) => {
2282
+ ae(s, o.target);
2283
+ });
2284
+ }), ke(s), s.initialized = !0, ke(s), s.emit("init"), s.emit("afterInit"), s;
2285
+ }
2286
+ destroy(t, s) {
2287
+ t === void 0 && (t = !0), s === void 0 && (s = !0);
2288
+ const i = this, {
2289
+ params: r,
2290
+ el: n,
2291
+ wrapperEl: o,
2292
+ slides: a
2293
+ } = i;
2294
+ return typeof i.params > "u" || i.destroyed || (i.emit("beforeDestroy"), i.initialized = !1, i.detachEvents(), r.loop && i.loopDestroy(), s && (i.removeClasses(), n && typeof n != "string" && n.removeAttribute("style"), o && o.removeAttribute("style"), a && a.length && a.forEach((d) => {
2295
+ d.classList.remove(r.slideVisibleClass, r.slideFullyVisibleClass, r.slideActiveClass, r.slideNextClass, r.slidePrevClass), d.removeAttribute("style"), d.removeAttribute("data-swiper-slide-index");
2296
+ })), i.emit("destroy"), Object.keys(i.eventsListeners).forEach((d) => {
2297
+ i.off(d);
2298
+ }), t !== !1 && (i.el && typeof i.el != "string" && (i.el.swiper = null), Yt(i)), i.destroyed = !0), null;
2299
+ }
2300
+ static extendDefaults(t) {
2301
+ G(Me, t);
2302
+ }
2303
+ static get extendedDefaults() {
2304
+ return Me;
2305
+ }
2306
+ static get defaults() {
2307
+ return Qe;
2308
+ }
2309
+ static installModule(t) {
2310
+ V.prototype.__modules__ || (V.prototype.__modules__ = []);
2311
+ const s = V.prototype.__modules__;
2312
+ typeof t == "function" && s.indexOf(t) < 0 && s.push(t);
2313
+ }
2314
+ static use(t) {
2315
+ return Array.isArray(t) ? (t.forEach((s) => V.installModule(s)), V) : (V.installModule(t), V);
2316
+ }
2317
+ }
2318
+ Object.keys(Oe).forEach((e) => {
2319
+ Object.keys(Oe[e]).forEach((t) => {
2320
+ V.prototype[t] = Oe[e][t];
2321
+ });
2322
+ });
2323
+ V.use([as, ls]);
2324
+ function yt(e, t) {
2325
+ return function() {
2326
+ return e.apply(t, arguments);
2327
+ };
2328
+ }
2329
+ const { toString: pi } = Object.prototype, { getPrototypeOf: Ve } = Object, { iterator: me, toStringTag: Tt } = Symbol, ge = /* @__PURE__ */ ((e) => (t) => {
2330
+ const s = pi.call(t);
2331
+ return e[s] || (e[s] = s.slice(8, -1).toLowerCase());
2332
+ })(/* @__PURE__ */ Object.create(null)), H = (e) => (e = e.toLowerCase(), (t) => ge(t) === e), we = (e) => (t) => typeof t === e, { isArray: Z } = Array, se = we("undefined");
2333
+ function hi(e) {
2334
+ return e !== null && !se(e) && e.constructor !== null && !se(e.constructor) && _(e.constructor.isBuffer) && e.constructor.isBuffer(e);
2335
+ }
2336
+ const bt = H("ArrayBuffer");
2337
+ function mi(e) {
2338
+ let t;
2339
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && bt(e.buffer), t;
2340
+ }
2341
+ const gi = we("string"), _ = we("function"), Et = we("number"), Se = (e) => e !== null && typeof e == "object", wi = (e) => e === !0 || e === !1, le = (e) => {
2342
+ if (ge(e) !== "object")
2343
+ return !1;
2344
+ const t = Ve(e);
2345
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Tt in e) && !(me in e);
2346
+ }, Si = H("Date"), vi = H("File"), yi = H("Blob"), Ti = H("FileList"), bi = (e) => Se(e) && _(e.pipe), Ei = (e) => {
2347
+ let t;
2348
+ return e && (typeof FormData == "function" && e instanceof FormData || _(e.append) && ((t = ge(e)) === "formdata" || // detect form-data instance
2349
+ t === "object" && _(e.toString) && e.toString() === "[object FormData]"));
2350
+ }, xi = H("URLSearchParams"), [Pi, Ci, Oi, Mi] = ["ReadableStream", "Request", "Response", "Headers"].map(H), Ai = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
2351
+ function ie(e, t, { allOwnKeys: s = !1 } = {}) {
2352
+ if (e === null || typeof e > "u")
2353
+ return;
2354
+ let i, r;
2355
+ if (typeof e != "object" && (e = [e]), Z(e))
2356
+ for (i = 0, r = e.length; i < r; i++)
2357
+ t.call(null, e[i], i, e);
2358
+ else {
2359
+ const n = s ? Object.getOwnPropertyNames(e) : Object.keys(e), o = n.length;
2360
+ let a;
2361
+ for (i = 0; i < o; i++)
2362
+ a = n[i], t.call(null, e[a], a, e);
2363
+ }
2364
+ }
2365
+ function xt(e, t) {
2366
+ t = t.toLowerCase();
2367
+ const s = Object.keys(e);
2368
+ let i = s.length, r;
2369
+ for (; i-- > 0; )
2370
+ if (r = s[i], t === r.toLowerCase())
2371
+ return r;
2372
+ return null;
2373
+ }
2374
+ const Y = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Pt = (e) => !se(e) && e !== Y;
2375
+ function ze() {
2376
+ const { caseless: e } = Pt(this) && this || {}, t = {}, s = (i, r) => {
2377
+ const n = e && xt(t, r) || r;
2378
+ le(t[n]) && le(i) ? t[n] = ze(t[n], i) : le(i) ? t[n] = ze({}, i) : Z(i) ? t[n] = i.slice() : t[n] = i;
2379
+ };
2380
+ for (let i = 0, r = arguments.length; i < r; i++)
2381
+ arguments[i] && ie(arguments[i], s);
2382
+ return t;
2383
+ }
2384
+ const Li = (e, t, s, { allOwnKeys: i } = {}) => (ie(t, (r, n) => {
2385
+ s && _(r) ? e[n] = yt(r, s) : e[n] = r;
2386
+ }, { allOwnKeys: i }), e), Ri = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ii = (e, t, s, i) => {
2387
+ e.prototype = Object.create(t.prototype, i), e.prototype.constructor = e, Object.defineProperty(e, "super", {
2388
+ value: t.prototype
2389
+ }), s && Object.assign(e.prototype, s);
2390
+ }, ki = (e, t, s, i) => {
2391
+ let r, n, o;
2392
+ const a = {};
2393
+ if (t = t || {}, e == null) return t;
2394
+ do {
2395
+ for (r = Object.getOwnPropertyNames(e), n = r.length; n-- > 0; )
2396
+ o = r[n], (!i || i(o, e, t)) && !a[o] && (t[o] = e[o], a[o] = !0);
2397
+ e = s !== !1 && Ve(e);
2398
+ } while (e && (!s || s(e, t)) && e !== Object.prototype);
2399
+ return t;
2400
+ }, zi = (e, t, s) => {
2401
+ e = String(e), (s === void 0 || s > e.length) && (s = e.length), s -= t.length;
2402
+ const i = e.indexOf(t, s);
2403
+ return i !== -1 && i === s;
2404
+ }, Di = (e) => {
2405
+ if (!e) return null;
2406
+ if (Z(e)) return e;
2407
+ let t = e.length;
2408
+ if (!Et(t)) return null;
2409
+ const s = new Array(t);
2410
+ for (; t-- > 0; )
2411
+ s[t] = e[t];
2412
+ return s;
2413
+ }, Ni = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Ve(Uint8Array)), Fi = (e, t) => {
2414
+ const i = (e && e[me]).call(e);
2415
+ let r;
2416
+ for (; (r = i.next()) && !r.done; ) {
2417
+ const n = r.value;
2418
+ t.call(e, n[0], n[1]);
2419
+ }
2420
+ }, _i = (e, t) => {
2421
+ let s;
2422
+ const i = [];
2423
+ for (; (s = e.exec(t)) !== null; )
2424
+ i.push(s);
2425
+ return i;
2426
+ }, Bi = H("HTMLFormElement"), Gi = (e) => e.toLowerCase().replace(
2427
+ /[-_\s]([a-z\d])(\w*)/g,
2428
+ function(s, i, r) {
2429
+ return i.toUpperCase() + r;
2430
+ }
2431
+ ), Ze = (({ hasOwnProperty: e }) => (t, s) => e.call(t, s))(Object.prototype), Vi = H("RegExp"), Ct = (e, t) => {
2432
+ const s = Object.getOwnPropertyDescriptors(e), i = {};
2433
+ ie(s, (r, n) => {
2434
+ let o;
2435
+ (o = t(r, n, e)) !== !1 && (i[n] = o || r);
2436
+ }), Object.defineProperties(e, i);
2437
+ }, Hi = (e) => {
2438
+ Ct(e, (t, s) => {
2439
+ if (_(e) && ["arguments", "caller", "callee"].indexOf(s) !== -1)
2440
+ return !1;
2441
+ const i = e[s];
2442
+ if (_(i)) {
2443
+ if (t.enumerable = !1, "writable" in t) {
2444
+ t.writable = !1;
2445
+ return;
2446
+ }
2447
+ t.set || (t.set = () => {
2448
+ throw Error("Can not rewrite read-only method '" + s + "'");
2449
+ });
2450
+ }
2451
+ });
2452
+ }, ji = (e, t) => {
2453
+ const s = {}, i = (r) => {
2454
+ r.forEach((n) => {
2455
+ s[n] = !0;
2456
+ });
2457
+ };
2458
+ return Z(e) ? i(e) : i(String(e).split(t)), s;
2459
+ }, $i = () => {
2460
+ }, Ui = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
2461
+ function qi(e) {
2462
+ return !!(e && _(e.append) && e[Tt] === "FormData" && e[me]);
2463
+ }
2464
+ const Wi = (e) => {
2465
+ const t = new Array(10), s = (i, r) => {
2466
+ if (Se(i)) {
2467
+ if (t.indexOf(i) >= 0)
2468
+ return;
2469
+ if (!("toJSON" in i)) {
2470
+ t[r] = i;
2471
+ const n = Z(i) ? [] : {};
2472
+ return ie(i, (o, a) => {
2473
+ const d = s(o, r + 1);
2474
+ !se(d) && (n[a] = d);
2475
+ }), t[r] = void 0, n;
2476
+ }
2477
+ }
2478
+ return i;
2479
+ };
2480
+ return s(e, 0);
2481
+ }, Xi = H("AsyncFunction"), Yi = (e) => e && (Se(e) || _(e)) && _(e.then) && _(e.catch), Ot = ((e, t) => e ? setImmediate : t ? ((s, i) => (Y.addEventListener("message", ({ source: r, data: n }) => {
2482
+ r === Y && n === s && i.length && i.shift()();
2483
+ }, !1), (r) => {
2484
+ i.push(r), Y.postMessage(s, "*");
2485
+ }))(`axios@${Math.random()}`, []) : (s) => setTimeout(s))(
2486
+ typeof setImmediate == "function",
2487
+ _(Y.postMessage)
2488
+ ), Ji = typeof queueMicrotask < "u" ? queueMicrotask.bind(Y) : typeof process < "u" && process.nextTick || Ot, Ki = (e) => e != null && _(e[me]), p = {
2489
+ isArray: Z,
2490
+ isArrayBuffer: bt,
2491
+ isBuffer: hi,
2492
+ isFormData: Ei,
2493
+ isArrayBufferView: mi,
2494
+ isString: gi,
2495
+ isNumber: Et,
2496
+ isBoolean: wi,
2497
+ isObject: Se,
2498
+ isPlainObject: le,
2499
+ isReadableStream: Pi,
2500
+ isRequest: Ci,
2501
+ isResponse: Oi,
2502
+ isHeaders: Mi,
2503
+ isUndefined: se,
2504
+ isDate: Si,
2505
+ isFile: vi,
2506
+ isBlob: yi,
2507
+ isRegExp: Vi,
2508
+ isFunction: _,
2509
+ isStream: bi,
2510
+ isURLSearchParams: xi,
2511
+ isTypedArray: Ni,
2512
+ isFileList: Ti,
2513
+ forEach: ie,
2514
+ merge: ze,
2515
+ extend: Li,
2516
+ trim: Ai,
2517
+ stripBOM: Ri,
2518
+ inherits: Ii,
2519
+ toFlatObject: ki,
2520
+ kindOf: ge,
2521
+ kindOfTest: H,
2522
+ endsWith: zi,
2523
+ toArray: Di,
2524
+ forEachEntry: Fi,
2525
+ matchAll: _i,
2526
+ isHTMLForm: Bi,
2527
+ hasOwnProperty: Ze,
2528
+ hasOwnProp: Ze,
2529
+ // an alias to avoid ESLint no-prototype-builtins detection
2530
+ reduceDescriptors: Ct,
2531
+ freezeMethods: Hi,
2532
+ toObjectSet: ji,
2533
+ toCamelCase: Gi,
2534
+ noop: $i,
2535
+ toFiniteNumber: Ui,
2536
+ findKey: xt,
2537
+ global: Y,
2538
+ isContextDefined: Pt,
2539
+ isSpecCompliantForm: qi,
2540
+ toJSONObject: Wi,
2541
+ isAsyncFn: Xi,
2542
+ isThenable: Yi,
2543
+ setImmediate: Ot,
2544
+ asap: Ji,
2545
+ isIterable: Ki
2546
+ };
2547
+ function P(e, t, s, i, r) {
2548
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), s && (this.config = s), i && (this.request = i), r && (this.response = r, this.status = r.status ? r.status : null);
2549
+ }
2550
+ p.inherits(P, Error, {
2551
+ toJSON: function() {
2552
+ return {
2553
+ // Standard
2554
+ message: this.message,
2555
+ name: this.name,
2556
+ // Microsoft
2557
+ description: this.description,
2558
+ number: this.number,
2559
+ // Mozilla
2560
+ fileName: this.fileName,
2561
+ lineNumber: this.lineNumber,
2562
+ columnNumber: this.columnNumber,
2563
+ stack: this.stack,
2564
+ // Axios
2565
+ config: p.toJSONObject(this.config),
2566
+ code: this.code,
2567
+ status: this.status
2568
+ };
2569
+ }
2570
+ });
2571
+ const Mt = P.prototype, At = {};
2572
+ [
2573
+ "ERR_BAD_OPTION_VALUE",
2574
+ "ERR_BAD_OPTION",
2575
+ "ECONNABORTED",
2576
+ "ETIMEDOUT",
2577
+ "ERR_NETWORK",
2578
+ "ERR_FR_TOO_MANY_REDIRECTS",
2579
+ "ERR_DEPRECATED",
2580
+ "ERR_BAD_RESPONSE",
2581
+ "ERR_BAD_REQUEST",
2582
+ "ERR_CANCELED",
2583
+ "ERR_NOT_SUPPORT",
2584
+ "ERR_INVALID_URL"
2585
+ // eslint-disable-next-line func-names
2586
+ ].forEach((e) => {
2587
+ At[e] = { value: e };
2588
+ });
2589
+ Object.defineProperties(P, At);
2590
+ Object.defineProperty(Mt, "isAxiosError", { value: !0 });
2591
+ P.from = (e, t, s, i, r, n) => {
2592
+ const o = Object.create(Mt);
2593
+ return p.toFlatObject(e, o, function(d) {
2594
+ return d !== Error.prototype;
2595
+ }, (a) => a !== "isAxiosError"), P.call(o, e.message, t, s, i, r), o.cause = e, o.name = e.name, n && Object.assign(o, n), o;
2596
+ };
2597
+ const Qi = null;
2598
+ function De(e) {
2599
+ return p.isPlainObject(e) || p.isArray(e);
2600
+ }
2601
+ function Lt(e) {
2602
+ return p.endsWith(e, "[]") ? e.slice(0, -2) : e;
2603
+ }
2604
+ function et(e, t, s) {
2605
+ return e ? e.concat(t).map(function(r, n) {
2606
+ return r = Lt(r), !s && n ? "[" + r + "]" : r;
2607
+ }).join(s ? "." : "") : t;
2608
+ }
2609
+ function Zi(e) {
2610
+ return p.isArray(e) && !e.some(De);
2611
+ }
2612
+ const er = p.toFlatObject(p, {}, null, function(t) {
2613
+ return /^is[A-Z]/.test(t);
2614
+ });
2615
+ function ve(e, t, s) {
2616
+ if (!p.isObject(e))
2617
+ throw new TypeError("target must be an object");
2618
+ t = t || new FormData(), s = p.toFlatObject(s, {
2619
+ metaTokens: !0,
2620
+ dots: !1,
2621
+ indexes: !1
2622
+ }, !1, function(g, w) {
2623
+ return !p.isUndefined(w[g]);
2624
+ });
2625
+ const i = s.metaTokens, r = s.visitor || c, n = s.dots, o = s.indexes, d = (s.Blob || typeof Blob < "u" && Blob) && p.isSpecCompliantForm(t);
2626
+ if (!p.isFunction(r))
2627
+ throw new TypeError("visitor must be a function");
2628
+ function l(f) {
2629
+ if (f === null) return "";
2630
+ if (p.isDate(f))
2631
+ return f.toISOString();
2632
+ if (p.isBoolean(f))
2633
+ return f.toString();
2634
+ if (!d && p.isBlob(f))
2635
+ throw new P("Blob is not supported. Use a Buffer instead.");
2636
+ return p.isArrayBuffer(f) || p.isTypedArray(f) ? d && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
2637
+ }
2638
+ function c(f, g, w) {
2639
+ let S = f;
2640
+ if (f && !w && typeof f == "object") {
2641
+ if (p.endsWith(g, "{}"))
2642
+ g = i ? g : g.slice(0, -2), f = JSON.stringify(f);
2643
+ else if (p.isArray(f) && Zi(f) || (p.isFileList(f) || p.endsWith(g, "[]")) && (S = p.toArray(f)))
2644
+ return g = Lt(g), S.forEach(function(v, E) {
2645
+ !(p.isUndefined(v) || v === null) && t.append(
2646
+ // eslint-disable-next-line no-nested-ternary
2647
+ o === !0 ? et([g], E, n) : o === null ? g : g + "[]",
2648
+ l(v)
2649
+ );
2650
+ }), !1;
2651
+ }
2652
+ return De(f) ? !0 : (t.append(et(w, g, n), l(f)), !1);
2653
+ }
2654
+ const u = [], h = Object.assign(er, {
2655
+ defaultVisitor: c,
2656
+ convertValue: l,
2657
+ isVisitable: De
2658
+ });
2659
+ function m(f, g) {
2660
+ if (!p.isUndefined(f)) {
2661
+ if (u.indexOf(f) !== -1)
2662
+ throw Error("Circular reference detected in " + g.join("."));
2663
+ u.push(f), p.forEach(f, function(S, y) {
2664
+ (!(p.isUndefined(S) || S === null) && r.call(
2665
+ t,
2666
+ S,
2667
+ p.isString(y) ? y.trim() : y,
2668
+ g,
2669
+ h
2670
+ )) === !0 && m(S, g ? g.concat(y) : [y]);
2671
+ }), u.pop();
2672
+ }
2673
+ }
2674
+ if (!p.isObject(e))
2675
+ throw new TypeError("data must be an object");
2676
+ return m(e), t;
2677
+ }
2678
+ function tt(e) {
2679
+ const t = {
2680
+ "!": "%21",
2681
+ "'": "%27",
2682
+ "(": "%28",
2683
+ ")": "%29",
2684
+ "~": "%7E",
2685
+ "%20": "+",
2686
+ "%00": "\0"
2687
+ };
2688
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(i) {
2689
+ return t[i];
2690
+ });
2691
+ }
2692
+ function He(e, t) {
2693
+ this._pairs = [], e && ve(e, this, t);
2694
+ }
2695
+ const Rt = He.prototype;
2696
+ Rt.append = function(t, s) {
2697
+ this._pairs.push([t, s]);
2698
+ };
2699
+ Rt.toString = function(t) {
2700
+ const s = t ? function(i) {
2701
+ return t.call(this, i, tt);
2702
+ } : tt;
2703
+ return this._pairs.map(function(r) {
2704
+ return s(r[0]) + "=" + s(r[1]);
2705
+ }, "").join("&");
2706
+ };
2707
+ function tr(e) {
2708
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
2709
+ }
2710
+ function It(e, t, s) {
2711
+ if (!t)
2712
+ return e;
2713
+ const i = s && s.encode || tr;
2714
+ p.isFunction(s) && (s = {
2715
+ serialize: s
2716
+ });
2717
+ const r = s && s.serialize;
2718
+ let n;
2719
+ if (r ? n = r(t, s) : n = p.isURLSearchParams(t) ? t.toString() : new He(t, s).toString(i), n) {
2720
+ const o = e.indexOf("#");
2721
+ o !== -1 && (e = e.slice(0, o)), e += (e.indexOf("?") === -1 ? "?" : "&") + n;
2722
+ }
2723
+ return e;
2724
+ }
2725
+ class st {
2726
+ constructor() {
2727
+ this.handlers = [];
2728
+ }
2729
+ /**
2730
+ * Add a new interceptor to the stack
2731
+ *
2732
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
2733
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
2734
+ *
2735
+ * @return {Number} An ID used to remove interceptor later
2736
+ */
2737
+ use(t, s, i) {
2738
+ return this.handlers.push({
2739
+ fulfilled: t,
2740
+ rejected: s,
2741
+ synchronous: i ? i.synchronous : !1,
2742
+ runWhen: i ? i.runWhen : null
2743
+ }), this.handlers.length - 1;
2744
+ }
2745
+ /**
2746
+ * Remove an interceptor from the stack
2747
+ *
2748
+ * @param {Number} id The ID that was returned by `use`
2749
+ *
2750
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
2751
+ */
2752
+ eject(t) {
2753
+ this.handlers[t] && (this.handlers[t] = null);
2754
+ }
2755
+ /**
2756
+ * Clear all interceptors from the stack
2757
+ *
2758
+ * @returns {void}
2759
+ */
2760
+ clear() {
2761
+ this.handlers && (this.handlers = []);
2762
+ }
2763
+ /**
2764
+ * Iterate over all the registered interceptors
2765
+ *
2766
+ * This method is particularly useful for skipping over any
2767
+ * interceptors that may have become `null` calling `eject`.
2768
+ *
2769
+ * @param {Function} fn The function to call for each interceptor
2770
+ *
2771
+ * @returns {void}
2772
+ */
2773
+ forEach(t) {
2774
+ p.forEach(this.handlers, function(i) {
2775
+ i !== null && t(i);
2776
+ });
2777
+ }
2778
+ }
2779
+ const kt = {
2780
+ silentJSONParsing: !0,
2781
+ forcedJSONParsing: !0,
2782
+ clarifyTimeoutError: !1
2783
+ }, sr = typeof URLSearchParams < "u" ? URLSearchParams : He, ir = typeof FormData < "u" ? FormData : null, rr = typeof Blob < "u" ? Blob : null, nr = {
2784
+ isBrowser: !0,
2785
+ classes: {
2786
+ URLSearchParams: sr,
2787
+ FormData: ir,
2788
+ Blob: rr
2789
+ },
2790
+ protocols: ["http", "https", "file", "blob", "url", "data"]
2791
+ }, je = typeof window < "u" && typeof document < "u", Ne = typeof navigator == "object" && navigator || void 0, or = je && (!Ne || ["ReactNative", "NativeScript", "NS"].indexOf(Ne.product) < 0), ar = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
2792
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", lr = je && window.location.href || "http://localhost", dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2793
+ __proto__: null,
2794
+ hasBrowserEnv: je,
2795
+ hasStandardBrowserEnv: or,
2796
+ hasStandardBrowserWebWorkerEnv: ar,
2797
+ navigator: Ne,
2798
+ origin: lr
2799
+ }, Symbol.toStringTag, { value: "Module" })), D = {
2800
+ ...dr,
2801
+ ...nr
2802
+ };
2803
+ function cr(e, t) {
2804
+ return ve(e, new D.classes.URLSearchParams(), Object.assign({
2805
+ visitor: function(s, i, r, n) {
2806
+ return D.isNode && p.isBuffer(s) ? (this.append(i, s.toString("base64")), !1) : n.defaultVisitor.apply(this, arguments);
2807
+ }
2808
+ }, t));
2809
+ }
2810
+ function ur(e) {
2811
+ return p.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
2812
+ }
2813
+ function fr(e) {
2814
+ const t = {}, s = Object.keys(e);
2815
+ let i;
2816
+ const r = s.length;
2817
+ let n;
2818
+ for (i = 0; i < r; i++)
2819
+ n = s[i], t[n] = e[n];
2820
+ return t;
2821
+ }
2822
+ function zt(e) {
2823
+ function t(s, i, r, n) {
2824
+ let o = s[n++];
2825
+ if (o === "__proto__") return !0;
2826
+ const a = Number.isFinite(+o), d = n >= s.length;
2827
+ return o = !o && p.isArray(r) ? r.length : o, d ? (p.hasOwnProp(r, o) ? r[o] = [r[o], i] : r[o] = i, !a) : ((!r[o] || !p.isObject(r[o])) && (r[o] = []), t(s, i, r[o], n) && p.isArray(r[o]) && (r[o] = fr(r[o])), !a);
2828
+ }
2829
+ if (p.isFormData(e) && p.isFunction(e.entries)) {
2830
+ const s = {};
2831
+ return p.forEachEntry(e, (i, r) => {
2832
+ t(ur(i), r, s, 0);
2833
+ }), s;
2834
+ }
2835
+ return null;
2836
+ }
2837
+ function pr(e, t, s) {
2838
+ if (p.isString(e))
2839
+ try {
2840
+ return (t || JSON.parse)(e), p.trim(e);
2841
+ } catch (i) {
2842
+ if (i.name !== "SyntaxError")
2843
+ throw i;
2844
+ }
2845
+ return (s || JSON.stringify)(e);
2846
+ }
2847
+ const re = {
2848
+ transitional: kt,
2849
+ adapter: ["xhr", "http", "fetch"],
2850
+ transformRequest: [function(t, s) {
2851
+ const i = s.getContentType() || "", r = i.indexOf("application/json") > -1, n = p.isObject(t);
2852
+ if (n && p.isHTMLForm(t) && (t = new FormData(t)), p.isFormData(t))
2853
+ return r ? JSON.stringify(zt(t)) : t;
2854
+ if (p.isArrayBuffer(t) || p.isBuffer(t) || p.isStream(t) || p.isFile(t) || p.isBlob(t) || p.isReadableStream(t))
2855
+ return t;
2856
+ if (p.isArrayBufferView(t))
2857
+ return t.buffer;
2858
+ if (p.isURLSearchParams(t))
2859
+ return s.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
2860
+ let a;
2861
+ if (n) {
2862
+ if (i.indexOf("application/x-www-form-urlencoded") > -1)
2863
+ return cr(t, this.formSerializer).toString();
2864
+ if ((a = p.isFileList(t)) || i.indexOf("multipart/form-data") > -1) {
2865
+ const d = this.env && this.env.FormData;
2866
+ return ve(
2867
+ a ? { "files[]": t } : t,
2868
+ d && new d(),
2869
+ this.formSerializer
2870
+ );
2871
+ }
2872
+ }
2873
+ return n || r ? (s.setContentType("application/json", !1), pr(t)) : t;
2874
+ }],
2875
+ transformResponse: [function(t) {
2876
+ const s = this.transitional || re.transitional, i = s && s.forcedJSONParsing, r = this.responseType === "json";
2877
+ if (p.isResponse(t) || p.isReadableStream(t))
2878
+ return t;
2879
+ if (t && p.isString(t) && (i && !this.responseType || r)) {
2880
+ const o = !(s && s.silentJSONParsing) && r;
2881
+ try {
2882
+ return JSON.parse(t);
2883
+ } catch (a) {
2884
+ if (o)
2885
+ throw a.name === "SyntaxError" ? P.from(a, P.ERR_BAD_RESPONSE, this, null, this.response) : a;
2886
+ }
2887
+ }
2888
+ return t;
2889
+ }],
2890
+ /**
2891
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
2892
+ * timeout is not created.
2893
+ */
2894
+ timeout: 0,
2895
+ xsrfCookieName: "XSRF-TOKEN",
2896
+ xsrfHeaderName: "X-XSRF-TOKEN",
2897
+ maxContentLength: -1,
2898
+ maxBodyLength: -1,
2899
+ env: {
2900
+ FormData: D.classes.FormData,
2901
+ Blob: D.classes.Blob
2902
+ },
2903
+ validateStatus: function(t) {
2904
+ return t >= 200 && t < 300;
2905
+ },
2906
+ headers: {
2907
+ common: {
2908
+ Accept: "application/json, text/plain, */*",
2909
+ "Content-Type": void 0
2910
+ }
2911
+ }
2912
+ };
2913
+ p.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
2914
+ re.headers[e] = {};
2915
+ });
2916
+ const hr = p.toObjectSet([
2917
+ "age",
2918
+ "authorization",
2919
+ "content-length",
2920
+ "content-type",
2921
+ "etag",
2922
+ "expires",
2923
+ "from",
2924
+ "host",
2925
+ "if-modified-since",
2926
+ "if-unmodified-since",
2927
+ "last-modified",
2928
+ "location",
2929
+ "max-forwards",
2930
+ "proxy-authorization",
2931
+ "referer",
2932
+ "retry-after",
2933
+ "user-agent"
2934
+ ]), mr = (e) => {
2935
+ const t = {};
2936
+ let s, i, r;
2937
+ return e && e.split(`
2938
+ `).forEach(function(o) {
2939
+ r = o.indexOf(":"), s = o.substring(0, r).trim().toLowerCase(), i = o.substring(r + 1).trim(), !(!s || t[s] && hr[s]) && (s === "set-cookie" ? t[s] ? t[s].push(i) : t[s] = [i] : t[s] = t[s] ? t[s] + ", " + i : i);
2940
+ }), t;
2941
+ }, it = Symbol("internals");
2942
+ function te(e) {
2943
+ return e && String(e).trim().toLowerCase();
2944
+ }
2945
+ function de(e) {
2946
+ return e === !1 || e == null ? e : p.isArray(e) ? e.map(de) : String(e);
2947
+ }
2948
+ function gr(e) {
2949
+ const t = /* @__PURE__ */ Object.create(null), s = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
2950
+ let i;
2951
+ for (; i = s.exec(e); )
2952
+ t[i[1]] = i[2];
2953
+ return t;
2954
+ }
2955
+ const wr = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
2956
+ function Ae(e, t, s, i, r) {
2957
+ if (p.isFunction(i))
2958
+ return i.call(this, t, s);
2959
+ if (r && (t = s), !!p.isString(t)) {
2960
+ if (p.isString(i))
2961
+ return t.indexOf(i) !== -1;
2962
+ if (p.isRegExp(i))
2963
+ return i.test(t);
2964
+ }
2965
+ }
2966
+ function Sr(e) {
2967
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, s, i) => s.toUpperCase() + i);
2968
+ }
2969
+ function vr(e, t) {
2970
+ const s = p.toCamelCase(" " + t);
2971
+ ["get", "set", "has"].forEach((i) => {
2972
+ Object.defineProperty(e, i + s, {
2973
+ value: function(r, n, o) {
2974
+ return this[i].call(this, t, r, n, o);
2975
+ },
2976
+ configurable: !0
2977
+ });
2978
+ });
2979
+ }
2980
+ let B = class {
2981
+ constructor(t) {
2982
+ t && this.set(t);
2983
+ }
2984
+ set(t, s, i) {
2985
+ const r = this;
2986
+ function n(a, d, l) {
2987
+ const c = te(d);
2988
+ if (!c)
2989
+ throw new Error("header name must be a non-empty string");
2990
+ const u = p.findKey(r, c);
2991
+ (!u || r[u] === void 0 || l === !0 || l === void 0 && r[u] !== !1) && (r[u || d] = de(a));
2992
+ }
2993
+ const o = (a, d) => p.forEach(a, (l, c) => n(l, c, d));
2994
+ if (p.isPlainObject(t) || t instanceof this.constructor)
2995
+ o(t, s);
2996
+ else if (p.isString(t) && (t = t.trim()) && !wr(t))
2997
+ o(mr(t), s);
2998
+ else if (p.isObject(t) && p.isIterable(t)) {
2999
+ let a = {}, d, l;
3000
+ for (const c of t) {
3001
+ if (!p.isArray(c))
3002
+ throw TypeError("Object iterator must return a key-value pair");
3003
+ a[l = c[0]] = (d = a[l]) ? p.isArray(d) ? [...d, c[1]] : [d, c[1]] : c[1];
3004
+ }
3005
+ o(a, s);
3006
+ } else
3007
+ t != null && n(s, t, i);
3008
+ return this;
3009
+ }
3010
+ get(t, s) {
3011
+ if (t = te(t), t) {
3012
+ const i = p.findKey(this, t);
3013
+ if (i) {
3014
+ const r = this[i];
3015
+ if (!s)
3016
+ return r;
3017
+ if (s === !0)
3018
+ return gr(r);
3019
+ if (p.isFunction(s))
3020
+ return s.call(this, r, i);
3021
+ if (p.isRegExp(s))
3022
+ return s.exec(r);
3023
+ throw new TypeError("parser must be boolean|regexp|function");
3024
+ }
3025
+ }
3026
+ }
3027
+ has(t, s) {
3028
+ if (t = te(t), t) {
3029
+ const i = p.findKey(this, t);
3030
+ return !!(i && this[i] !== void 0 && (!s || Ae(this, this[i], i, s)));
3031
+ }
3032
+ return !1;
3033
+ }
3034
+ delete(t, s) {
3035
+ const i = this;
3036
+ let r = !1;
3037
+ function n(o) {
3038
+ if (o = te(o), o) {
3039
+ const a = p.findKey(i, o);
3040
+ a && (!s || Ae(i, i[a], a, s)) && (delete i[a], r = !0);
3041
+ }
3042
+ }
3043
+ return p.isArray(t) ? t.forEach(n) : n(t), r;
3044
+ }
3045
+ clear(t) {
3046
+ const s = Object.keys(this);
3047
+ let i = s.length, r = !1;
3048
+ for (; i--; ) {
3049
+ const n = s[i];
3050
+ (!t || Ae(this, this[n], n, t, !0)) && (delete this[n], r = !0);
3051
+ }
3052
+ return r;
3053
+ }
3054
+ normalize(t) {
3055
+ const s = this, i = {};
3056
+ return p.forEach(this, (r, n) => {
3057
+ const o = p.findKey(i, n);
3058
+ if (o) {
3059
+ s[o] = de(r), delete s[n];
3060
+ return;
3061
+ }
3062
+ const a = t ? Sr(n) : String(n).trim();
3063
+ a !== n && delete s[n], s[a] = de(r), i[a] = !0;
3064
+ }), this;
3065
+ }
3066
+ concat(...t) {
3067
+ return this.constructor.concat(this, ...t);
3068
+ }
3069
+ toJSON(t) {
3070
+ const s = /* @__PURE__ */ Object.create(null);
3071
+ return p.forEach(this, (i, r) => {
3072
+ i != null && i !== !1 && (s[r] = t && p.isArray(i) ? i.join(", ") : i);
3073
+ }), s;
3074
+ }
3075
+ [Symbol.iterator]() {
3076
+ return Object.entries(this.toJSON())[Symbol.iterator]();
3077
+ }
3078
+ toString() {
3079
+ return Object.entries(this.toJSON()).map(([t, s]) => t + ": " + s).join(`
3080
+ `);
3081
+ }
3082
+ getSetCookie() {
3083
+ return this.get("set-cookie") || [];
3084
+ }
3085
+ get [Symbol.toStringTag]() {
3086
+ return "AxiosHeaders";
3087
+ }
3088
+ static from(t) {
3089
+ return t instanceof this ? t : new this(t);
3090
+ }
3091
+ static concat(t, ...s) {
3092
+ const i = new this(t);
3093
+ return s.forEach((r) => i.set(r)), i;
3094
+ }
3095
+ static accessor(t) {
3096
+ const i = (this[it] = this[it] = {
3097
+ accessors: {}
3098
+ }).accessors, r = this.prototype;
3099
+ function n(o) {
3100
+ const a = te(o);
3101
+ i[a] || (vr(r, o), i[a] = !0);
3102
+ }
3103
+ return p.isArray(t) ? t.forEach(n) : n(t), this;
3104
+ }
3105
+ };
3106
+ B.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
3107
+ p.reduceDescriptors(B.prototype, ({ value: e }, t) => {
3108
+ let s = t[0].toUpperCase() + t.slice(1);
3109
+ return {
3110
+ get: () => e,
3111
+ set(i) {
3112
+ this[s] = i;
3113
+ }
3114
+ };
3115
+ });
3116
+ p.freezeMethods(B);
3117
+ function Le(e, t) {
3118
+ const s = this || re, i = t || s, r = B.from(i.headers);
3119
+ let n = i.data;
3120
+ return p.forEach(e, function(a) {
3121
+ n = a.call(s, n, r.normalize(), t ? t.status : void 0);
3122
+ }), r.normalize(), n;
3123
+ }
3124
+ function Dt(e) {
3125
+ return !!(e && e.__CANCEL__);
3126
+ }
3127
+ function ee(e, t, s) {
3128
+ P.call(this, e ?? "canceled", P.ERR_CANCELED, t, s), this.name = "CanceledError";
3129
+ }
3130
+ p.inherits(ee, P, {
3131
+ __CANCEL__: !0
3132
+ });
3133
+ function Nt(e, t, s) {
3134
+ const i = s.config.validateStatus;
3135
+ !s.status || !i || i(s.status) ? e(s) : t(new P(
3136
+ "Request failed with status code " + s.status,
3137
+ [P.ERR_BAD_REQUEST, P.ERR_BAD_RESPONSE][Math.floor(s.status / 100) - 4],
3138
+ s.config,
3139
+ s.request,
3140
+ s
3141
+ ));
3142
+ }
3143
+ function yr(e) {
3144
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
3145
+ return t && t[1] || "";
3146
+ }
3147
+ function Tr(e, t) {
3148
+ e = e || 10;
3149
+ const s = new Array(e), i = new Array(e);
3150
+ let r = 0, n = 0, o;
3151
+ return t = t !== void 0 ? t : 1e3, function(d) {
3152
+ const l = Date.now(), c = i[n];
3153
+ o || (o = l), s[r] = d, i[r] = l;
3154
+ let u = n, h = 0;
3155
+ for (; u !== r; )
3156
+ h += s[u++], u = u % e;
3157
+ if (r = (r + 1) % e, r === n && (n = (n + 1) % e), l - o < t)
3158
+ return;
3159
+ const m = c && l - c;
3160
+ return m ? Math.round(h * 1e3 / m) : void 0;
3161
+ };
3162
+ }
3163
+ function br(e, t) {
3164
+ let s = 0, i = 1e3 / t, r, n;
3165
+ const o = (l, c = Date.now()) => {
3166
+ s = c, r = null, n && (clearTimeout(n), n = null), e.apply(null, l);
3167
+ };
3168
+ return [(...l) => {
3169
+ const c = Date.now(), u = c - s;
3170
+ u >= i ? o(l, c) : (r = l, n || (n = setTimeout(() => {
3171
+ n = null, o(r);
3172
+ }, i - u)));
3173
+ }, () => r && o(r)];
3174
+ }
3175
+ const pe = (e, t, s = 3) => {
3176
+ let i = 0;
3177
+ const r = Tr(50, 250);
3178
+ return br((n) => {
3179
+ const o = n.loaded, a = n.lengthComputable ? n.total : void 0, d = o - i, l = r(d), c = o <= a;
3180
+ i = o;
3181
+ const u = {
3182
+ loaded: o,
3183
+ total: a,
3184
+ progress: a ? o / a : void 0,
3185
+ bytes: d,
3186
+ rate: l || void 0,
3187
+ estimated: l && a && c ? (a - o) / l : void 0,
3188
+ event: n,
3189
+ lengthComputable: a != null,
3190
+ [t ? "download" : "upload"]: !0
3191
+ };
3192
+ e(u);
3193
+ }, s);
3194
+ }, rt = (e, t) => {
3195
+ const s = e != null;
3196
+ return [(i) => t[0]({
3197
+ lengthComputable: s,
3198
+ total: e,
3199
+ loaded: i
3200
+ }), t[1]];
3201
+ }, nt = (e) => (...t) => p.asap(() => e(...t)), Er = D.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (s) => (s = new URL(s, D.origin), e.protocol === s.protocol && e.host === s.host && (t || e.port === s.port)))(
3202
+ new URL(D.origin),
3203
+ D.navigator && /(msie|trident)/i.test(D.navigator.userAgent)
3204
+ ) : () => !0, xr = D.hasStandardBrowserEnv ? (
3205
+ // Standard browser envs support document.cookie
3206
+ {
3207
+ write(e, t, s, i, r, n) {
3208
+ const o = [e + "=" + encodeURIComponent(t)];
3209
+ p.isNumber(s) && o.push("expires=" + new Date(s).toGMTString()), p.isString(i) && o.push("path=" + i), p.isString(r) && o.push("domain=" + r), n === !0 && o.push("secure"), document.cookie = o.join("; ");
3210
+ },
3211
+ read(e) {
3212
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
3213
+ return t ? decodeURIComponent(t[3]) : null;
3214
+ },
3215
+ remove(e) {
3216
+ this.write(e, "", Date.now() - 864e5);
3217
+ }
3218
+ }
3219
+ ) : (
3220
+ // Non-standard browser env (web workers, react-native) lack needed support.
3221
+ {
3222
+ write() {
3223
+ },
3224
+ read() {
3225
+ return null;
3226
+ },
3227
+ remove() {
3228
+ }
3229
+ }
3230
+ );
3231
+ function Pr(e) {
3232
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
3233
+ }
3234
+ function Cr(e, t) {
3235
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
3236
+ }
3237
+ function Ft(e, t, s) {
3238
+ let i = !Pr(t);
3239
+ return e && (i || s == !1) ? Cr(e, t) : t;
3240
+ }
3241
+ const ot = (e) => e instanceof B ? { ...e } : e;
3242
+ function K(e, t) {
3243
+ t = t || {};
3244
+ const s = {};
3245
+ function i(l, c, u, h) {
3246
+ return p.isPlainObject(l) && p.isPlainObject(c) ? p.merge.call({ caseless: h }, l, c) : p.isPlainObject(c) ? p.merge({}, c) : p.isArray(c) ? c.slice() : c;
3247
+ }
3248
+ function r(l, c, u, h) {
3249
+ if (p.isUndefined(c)) {
3250
+ if (!p.isUndefined(l))
3251
+ return i(void 0, l, u, h);
3252
+ } else return i(l, c, u, h);
3253
+ }
3254
+ function n(l, c) {
3255
+ if (!p.isUndefined(c))
3256
+ return i(void 0, c);
3257
+ }
3258
+ function o(l, c) {
3259
+ if (p.isUndefined(c)) {
3260
+ if (!p.isUndefined(l))
3261
+ return i(void 0, l);
3262
+ } else return i(void 0, c);
3263
+ }
3264
+ function a(l, c, u) {
3265
+ if (u in t)
3266
+ return i(l, c);
3267
+ if (u in e)
3268
+ return i(void 0, l);
3269
+ }
3270
+ const d = {
3271
+ url: n,
3272
+ method: n,
3273
+ data: n,
3274
+ baseURL: o,
3275
+ transformRequest: o,
3276
+ transformResponse: o,
3277
+ paramsSerializer: o,
3278
+ timeout: o,
3279
+ timeoutMessage: o,
3280
+ withCredentials: o,
3281
+ withXSRFToken: o,
3282
+ adapter: o,
3283
+ responseType: o,
3284
+ xsrfCookieName: o,
3285
+ xsrfHeaderName: o,
3286
+ onUploadProgress: o,
3287
+ onDownloadProgress: o,
3288
+ decompress: o,
3289
+ maxContentLength: o,
3290
+ maxBodyLength: o,
3291
+ beforeRedirect: o,
3292
+ transport: o,
3293
+ httpAgent: o,
3294
+ httpsAgent: o,
3295
+ cancelToken: o,
3296
+ socketPath: o,
3297
+ responseEncoding: o,
3298
+ validateStatus: a,
3299
+ headers: (l, c, u) => r(ot(l), ot(c), u, !0)
3300
+ };
3301
+ return p.forEach(Object.keys(Object.assign({}, e, t)), function(c) {
3302
+ const u = d[c] || r, h = u(e[c], t[c], c);
3303
+ p.isUndefined(h) && u !== a || (s[c] = h);
3304
+ }), s;
3305
+ }
3306
+ const _t = (e) => {
3307
+ const t = K({}, e);
3308
+ let { data: s, withXSRFToken: i, xsrfHeaderName: r, xsrfCookieName: n, headers: o, auth: a } = t;
3309
+ t.headers = o = B.from(o), t.url = It(Ft(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && o.set(
3310
+ "Authorization",
3311
+ "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
3312
+ );
3313
+ let d;
3314
+ if (p.isFormData(s)) {
3315
+ if (D.hasStandardBrowserEnv || D.hasStandardBrowserWebWorkerEnv)
3316
+ o.setContentType(void 0);
3317
+ else if ((d = o.getContentType()) !== !1) {
3318
+ const [l, ...c] = d ? d.split(";").map((u) => u.trim()).filter(Boolean) : [];
3319
+ o.setContentType([l || "multipart/form-data", ...c].join("; "));
3320
+ }
3321
+ }
3322
+ if (D.hasStandardBrowserEnv && (i && p.isFunction(i) && (i = i(t)), i || i !== !1 && Er(t.url))) {
3323
+ const l = r && n && xr.read(n);
3324
+ l && o.set(r, l);
3325
+ }
3326
+ return t;
3327
+ }, Or = typeof XMLHttpRequest < "u", Mr = Or && function(e) {
3328
+ return new Promise(function(s, i) {
3329
+ const r = _t(e);
3330
+ let n = r.data;
3331
+ const o = B.from(r.headers).normalize();
3332
+ let { responseType: a, onUploadProgress: d, onDownloadProgress: l } = r, c, u, h, m, f;
3333
+ function g() {
3334
+ m && m(), f && f(), r.cancelToken && r.cancelToken.unsubscribe(c), r.signal && r.signal.removeEventListener("abort", c);
3335
+ }
3336
+ let w = new XMLHttpRequest();
3337
+ w.open(r.method.toUpperCase(), r.url, !0), w.timeout = r.timeout;
3338
+ function S() {
3339
+ if (!w)
3340
+ return;
3341
+ const v = B.from(
3342
+ "getAllResponseHeaders" in w && w.getAllResponseHeaders()
3343
+ ), T = {
3344
+ data: !a || a === "text" || a === "json" ? w.responseText : w.response,
3345
+ status: w.status,
3346
+ statusText: w.statusText,
3347
+ headers: v,
3348
+ config: e,
3349
+ request: w
3350
+ };
3351
+ Nt(function(O) {
3352
+ s(O), g();
3353
+ }, function(O) {
3354
+ i(O), g();
3355
+ }, T), w = null;
3356
+ }
3357
+ "onloadend" in w ? w.onloadend = S : w.onreadystatechange = function() {
3358
+ !w || w.readyState !== 4 || w.status === 0 && !(w.responseURL && w.responseURL.indexOf("file:") === 0) || setTimeout(S);
3359
+ }, w.onabort = function() {
3360
+ w && (i(new P("Request aborted", P.ECONNABORTED, e, w)), w = null);
3361
+ }, w.onerror = function() {
3362
+ i(new P("Network Error", P.ERR_NETWORK, e, w)), w = null;
3363
+ }, w.ontimeout = function() {
3364
+ let E = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
3365
+ const T = r.transitional || kt;
3366
+ r.timeoutErrorMessage && (E = r.timeoutErrorMessage), i(new P(
3367
+ E,
3368
+ T.clarifyTimeoutError ? P.ETIMEDOUT : P.ECONNABORTED,
3369
+ e,
3370
+ w
3371
+ )), w = null;
3372
+ }, n === void 0 && o.setContentType(null), "setRequestHeader" in w && p.forEach(o.toJSON(), function(E, T) {
3373
+ w.setRequestHeader(T, E);
3374
+ }), p.isUndefined(r.withCredentials) || (w.withCredentials = !!r.withCredentials), a && a !== "json" && (w.responseType = r.responseType), l && ([h, f] = pe(l, !0), w.addEventListener("progress", h)), d && w.upload && ([u, m] = pe(d), w.upload.addEventListener("progress", u), w.upload.addEventListener("loadend", m)), (r.cancelToken || r.signal) && (c = (v) => {
3375
+ w && (i(!v || v.type ? new ee(null, e, w) : v), w.abort(), w = null);
3376
+ }, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
3377
+ const y = yr(r.url);
3378
+ if (y && D.protocols.indexOf(y) === -1) {
3379
+ i(new P("Unsupported protocol " + y + ":", P.ERR_BAD_REQUEST, e));
3380
+ return;
3381
+ }
3382
+ w.send(n || null);
3383
+ });
3384
+ }, Ar = (e, t) => {
3385
+ const { length: s } = e = e ? e.filter(Boolean) : [];
3386
+ if (t || s) {
3387
+ let i = new AbortController(), r;
3388
+ const n = function(l) {
3389
+ if (!r) {
3390
+ r = !0, a();
3391
+ const c = l instanceof Error ? l : this.reason;
3392
+ i.abort(c instanceof P ? c : new ee(c instanceof Error ? c.message : c));
3393
+ }
3394
+ };
3395
+ let o = t && setTimeout(() => {
3396
+ o = null, n(new P(`timeout ${t} of ms exceeded`, P.ETIMEDOUT));
3397
+ }, t);
3398
+ const a = () => {
3399
+ e && (o && clearTimeout(o), o = null, e.forEach((l) => {
3400
+ l.unsubscribe ? l.unsubscribe(n) : l.removeEventListener("abort", n);
3401
+ }), e = null);
3402
+ };
3403
+ e.forEach((l) => l.addEventListener("abort", n));
3404
+ const { signal: d } = i;
3405
+ return d.unsubscribe = () => p.asap(a), d;
3406
+ }
3407
+ }, Lr = function* (e, t) {
3408
+ let s = e.byteLength;
3409
+ if (s < t) {
3410
+ yield e;
3411
+ return;
3412
+ }
3413
+ let i = 0, r;
3414
+ for (; i < s; )
3415
+ r = i + t, yield e.slice(i, r), i = r;
3416
+ }, Rr = async function* (e, t) {
3417
+ for await (const s of Ir(e))
3418
+ yield* Lr(s, t);
3419
+ }, Ir = async function* (e) {
3420
+ if (e[Symbol.asyncIterator]) {
3421
+ yield* e;
3422
+ return;
3423
+ }
3424
+ const t = e.getReader();
3425
+ try {
3426
+ for (; ; ) {
3427
+ const { done: s, value: i } = await t.read();
3428
+ if (s)
3429
+ break;
3430
+ yield i;
3431
+ }
3432
+ } finally {
3433
+ await t.cancel();
3434
+ }
3435
+ }, at = (e, t, s, i) => {
3436
+ const r = Rr(e, t);
3437
+ let n = 0, o, a = (d) => {
3438
+ o || (o = !0, i && i(d));
3439
+ };
3440
+ return new ReadableStream({
3441
+ async pull(d) {
3442
+ try {
3443
+ const { done: l, value: c } = await r.next();
3444
+ if (l) {
3445
+ a(), d.close();
3446
+ return;
3447
+ }
3448
+ let u = c.byteLength;
3449
+ if (s) {
3450
+ let h = n += u;
3451
+ s(h);
3452
+ }
3453
+ d.enqueue(new Uint8Array(c));
3454
+ } catch (l) {
3455
+ throw a(l), l;
3456
+ }
3457
+ },
3458
+ cancel(d) {
3459
+ return a(d), r.return();
3460
+ }
3461
+ }, {
3462
+ highWaterMark: 2
3463
+ });
3464
+ }, ye = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Bt = ye && typeof ReadableStream == "function", kr = ye && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), Gt = (e, ...t) => {
3465
+ try {
3466
+ return !!e(...t);
3467
+ } catch {
3468
+ return !1;
3469
+ }
3470
+ }, zr = Bt && Gt(() => {
3471
+ let e = !1;
3472
+ const t = new Request(D.origin, {
3473
+ body: new ReadableStream(),
3474
+ method: "POST",
3475
+ get duplex() {
3476
+ return e = !0, "half";
3477
+ }
3478
+ }).headers.has("Content-Type");
3479
+ return e && !t;
3480
+ }), lt = 64 * 1024, Fe = Bt && Gt(() => p.isReadableStream(new Response("").body)), he = {
3481
+ stream: Fe && ((e) => e.body)
3482
+ };
3483
+ ye && ((e) => {
3484
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
3485
+ !he[t] && (he[t] = p.isFunction(e[t]) ? (s) => s[t]() : (s, i) => {
3486
+ throw new P(`Response type '${t}' is not supported`, P.ERR_NOT_SUPPORT, i);
3487
+ });
3488
+ });
3489
+ })(new Response());
3490
+ const Dr = async (e) => {
3491
+ if (e == null)
3492
+ return 0;
3493
+ if (p.isBlob(e))
3494
+ return e.size;
3495
+ if (p.isSpecCompliantForm(e))
3496
+ return (await new Request(D.origin, {
3497
+ method: "POST",
3498
+ body: e
3499
+ }).arrayBuffer()).byteLength;
3500
+ if (p.isArrayBufferView(e) || p.isArrayBuffer(e))
3501
+ return e.byteLength;
3502
+ if (p.isURLSearchParams(e) && (e = e + ""), p.isString(e))
3503
+ return (await kr(e)).byteLength;
3504
+ }, Nr = async (e, t) => {
3505
+ const s = p.toFiniteNumber(e.getContentLength());
3506
+ return s ?? Dr(t);
3507
+ }, Fr = ye && (async (e) => {
3508
+ let {
3509
+ url: t,
3510
+ method: s,
3511
+ data: i,
3512
+ signal: r,
3513
+ cancelToken: n,
3514
+ timeout: o,
3515
+ onDownloadProgress: a,
3516
+ onUploadProgress: d,
3517
+ responseType: l,
3518
+ headers: c,
3519
+ withCredentials: u = "same-origin",
3520
+ fetchOptions: h
3521
+ } = _t(e);
3522
+ l = l ? (l + "").toLowerCase() : "text";
3523
+ let m = Ar([r, n && n.toAbortSignal()], o), f;
3524
+ const g = m && m.unsubscribe && (() => {
3525
+ m.unsubscribe();
3526
+ });
3527
+ let w;
3528
+ try {
3529
+ if (d && zr && s !== "get" && s !== "head" && (w = await Nr(c, i)) !== 0) {
3530
+ let T = new Request(t, {
3531
+ method: "POST",
3532
+ body: i,
3533
+ duplex: "half"
3534
+ }), M;
3535
+ if (p.isFormData(i) && (M = T.headers.get("content-type")) && c.setContentType(M), T.body) {
3536
+ const [O, C] = rt(
3537
+ w,
3538
+ pe(nt(d))
3539
+ );
3540
+ i = at(T.body, lt, O, C);
3541
+ }
3542
+ }
3543
+ p.isString(u) || (u = u ? "include" : "omit");
3544
+ const S = "credentials" in Request.prototype;
3545
+ f = new Request(t, {
3546
+ ...h,
3547
+ signal: m,
3548
+ method: s.toUpperCase(),
3549
+ headers: c.normalize().toJSON(),
3550
+ body: i,
3551
+ duplex: "half",
3552
+ credentials: S ? u : void 0
3553
+ });
3554
+ let y = await fetch(f, h);
3555
+ const v = Fe && (l === "stream" || l === "response");
3556
+ if (Fe && (a || v && g)) {
3557
+ const T = {};
3558
+ ["status", "statusText", "headers"].forEach((I) => {
3559
+ T[I] = y[I];
3560
+ });
3561
+ const M = p.toFiniteNumber(y.headers.get("content-length")), [O, C] = a && rt(
3562
+ M,
3563
+ pe(nt(a), !0)
3564
+ ) || [];
3565
+ y = new Response(
3566
+ at(y.body, lt, O, () => {
3567
+ C && C(), g && g();
3568
+ }),
3569
+ T
3570
+ );
3571
+ }
3572
+ l = l || "text";
3573
+ let E = await he[p.findKey(he, l) || "text"](y, e);
3574
+ return !v && g && g(), await new Promise((T, M) => {
3575
+ Nt(T, M, {
3576
+ data: E,
3577
+ headers: B.from(y.headers),
3578
+ status: y.status,
3579
+ statusText: y.statusText,
3580
+ config: e,
3581
+ request: f
3582
+ });
3583
+ });
3584
+ } catch (S) {
3585
+ throw g && g(), S && S.name === "TypeError" && /Load failed|fetch/i.test(S.message) ? Object.assign(
3586
+ new P("Network Error", P.ERR_NETWORK, e, f),
3587
+ {
3588
+ cause: S.cause || S
3589
+ }
3590
+ ) : P.from(S, S && S.code, e, f);
3591
+ }
3592
+ }), _e = {
3593
+ http: Qi,
3594
+ xhr: Mr,
3595
+ fetch: Fr
3596
+ };
3597
+ p.forEach(_e, (e, t) => {
3598
+ if (e) {
3599
+ try {
3600
+ Object.defineProperty(e, "name", { value: t });
3601
+ } catch {
3602
+ }
3603
+ Object.defineProperty(e, "adapterName", { value: t });
3604
+ }
3605
+ });
3606
+ const dt = (e) => `- ${e}`, _r = (e) => p.isFunction(e) || e === null || e === !1, Vt = {
3607
+ getAdapter: (e) => {
3608
+ e = p.isArray(e) ? e : [e];
3609
+ const { length: t } = e;
3610
+ let s, i;
3611
+ const r = {};
3612
+ for (let n = 0; n < t; n++) {
3613
+ s = e[n];
3614
+ let o;
3615
+ if (i = s, !_r(s) && (i = _e[(o = String(s)).toLowerCase()], i === void 0))
3616
+ throw new P(`Unknown adapter '${o}'`);
3617
+ if (i)
3618
+ break;
3619
+ r[o || "#" + n] = i;
3620
+ }
3621
+ if (!i) {
3622
+ const n = Object.entries(r).map(
3623
+ ([a, d]) => `adapter ${a} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
3624
+ );
3625
+ let o = t ? n.length > 1 ? `since :
3626
+ ` + n.map(dt).join(`
3627
+ `) : " " + dt(n[0]) : "as no adapter specified";
3628
+ throw new P(
3629
+ "There is no suitable adapter to dispatch the request " + o,
3630
+ "ERR_NOT_SUPPORT"
3631
+ );
3632
+ }
3633
+ return i;
3634
+ },
3635
+ adapters: _e
3636
+ };
3637
+ function Re(e) {
3638
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
3639
+ throw new ee(null, e);
3640
+ }
3641
+ function ct(e) {
3642
+ return Re(e), e.headers = B.from(e.headers), e.data = Le.call(
3643
+ e,
3644
+ e.transformRequest
3645
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Vt.getAdapter(e.adapter || re.adapter)(e).then(function(i) {
3646
+ return Re(e), i.data = Le.call(
3647
+ e,
3648
+ e.transformResponse,
3649
+ i
3650
+ ), i.headers = B.from(i.headers), i;
3651
+ }, function(i) {
3652
+ return Dt(i) || (Re(e), i && i.response && (i.response.data = Le.call(
3653
+ e,
3654
+ e.transformResponse,
3655
+ i.response
3656
+ ), i.response.headers = B.from(i.response.headers))), Promise.reject(i);
3657
+ });
3658
+ }
3659
+ const Ht = "1.10.0", Te = {};
3660
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
3661
+ Te[e] = function(i) {
3662
+ return typeof i === e || "a" + (t < 1 ? "n " : " ") + e;
3663
+ };
3664
+ });
3665
+ const ut = {};
3666
+ Te.transitional = function(t, s, i) {
3667
+ function r(n, o) {
3668
+ return "[Axios v" + Ht + "] Transitional option '" + n + "'" + o + (i ? ". " + i : "");
3669
+ }
3670
+ return (n, o, a) => {
3671
+ if (t === !1)
3672
+ throw new P(
3673
+ r(o, " has been removed" + (s ? " in " + s : "")),
3674
+ P.ERR_DEPRECATED
3675
+ );
3676
+ return s && !ut[o] && (ut[o] = !0, console.warn(
3677
+ r(
3678
+ o,
3679
+ " has been deprecated since v" + s + " and will be removed in the near future"
3680
+ )
3681
+ )), t ? t(n, o, a) : !0;
3682
+ };
3683
+ };
3684
+ Te.spelling = function(t) {
3685
+ return (s, i) => (console.warn(`${i} is likely a misspelling of ${t}`), !0);
3686
+ };
3687
+ function Br(e, t, s) {
3688
+ if (typeof e != "object")
3689
+ throw new P("options must be an object", P.ERR_BAD_OPTION_VALUE);
3690
+ const i = Object.keys(e);
3691
+ let r = i.length;
3692
+ for (; r-- > 0; ) {
3693
+ const n = i[r], o = t[n];
3694
+ if (o) {
3695
+ const a = e[n], d = a === void 0 || o(a, n, e);
3696
+ if (d !== !0)
3697
+ throw new P("option " + n + " must be " + d, P.ERR_BAD_OPTION_VALUE);
3698
+ continue;
3699
+ }
3700
+ if (s !== !0)
3701
+ throw new P("Unknown option " + n, P.ERR_BAD_OPTION);
3702
+ }
3703
+ }
3704
+ const ce = {
3705
+ assertOptions: Br,
3706
+ validators: Te
3707
+ }, j = ce.validators;
3708
+ let J = class {
3709
+ constructor(t) {
3710
+ this.defaults = t || {}, this.interceptors = {
3711
+ request: new st(),
3712
+ response: new st()
3713
+ };
3714
+ }
3715
+ /**
3716
+ * Dispatch a request
3717
+ *
3718
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
3719
+ * @param {?Object} config
3720
+ *
3721
+ * @returns {Promise} The Promise to be fulfilled
3722
+ */
3723
+ async request(t, s) {
3724
+ try {
3725
+ return await this._request(t, s);
3726
+ } catch (i) {
3727
+ if (i instanceof Error) {
3728
+ let r = {};
3729
+ Error.captureStackTrace ? Error.captureStackTrace(r) : r = new Error();
3730
+ const n = r.stack ? r.stack.replace(/^.+\n/, "") : "";
3731
+ try {
3732
+ i.stack ? n && !String(i.stack).endsWith(n.replace(/^.+\n.+\n/, "")) && (i.stack += `
3733
+ ` + n) : i.stack = n;
3734
+ } catch {
3735
+ }
3736
+ }
3737
+ throw i;
3738
+ }
3739
+ }
3740
+ _request(t, s) {
3741
+ typeof t == "string" ? (s = s || {}, s.url = t) : s = t || {}, s = K(this.defaults, s);
3742
+ const { transitional: i, paramsSerializer: r, headers: n } = s;
3743
+ i !== void 0 && ce.assertOptions(i, {
3744
+ silentJSONParsing: j.transitional(j.boolean),
3745
+ forcedJSONParsing: j.transitional(j.boolean),
3746
+ clarifyTimeoutError: j.transitional(j.boolean)
3747
+ }, !1), r != null && (p.isFunction(r) ? s.paramsSerializer = {
3748
+ serialize: r
3749
+ } : ce.assertOptions(r, {
3750
+ encode: j.function,
3751
+ serialize: j.function
3752
+ }, !0)), s.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? s.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : s.allowAbsoluteUrls = !0), ce.assertOptions(s, {
3753
+ baseUrl: j.spelling("baseURL"),
3754
+ withXsrfToken: j.spelling("withXSRFToken")
3755
+ }, !0), s.method = (s.method || this.defaults.method || "get").toLowerCase();
3756
+ let o = n && p.merge(
3757
+ n.common,
3758
+ n[s.method]
3759
+ );
3760
+ n && p.forEach(
3761
+ ["delete", "get", "head", "post", "put", "patch", "common"],
3762
+ (f) => {
3763
+ delete n[f];
3764
+ }
3765
+ ), s.headers = B.concat(o, n);
3766
+ const a = [];
3767
+ let d = !0;
3768
+ this.interceptors.request.forEach(function(g) {
3769
+ typeof g.runWhen == "function" && g.runWhen(s) === !1 || (d = d && g.synchronous, a.unshift(g.fulfilled, g.rejected));
3770
+ });
3771
+ const l = [];
3772
+ this.interceptors.response.forEach(function(g) {
3773
+ l.push(g.fulfilled, g.rejected);
3774
+ });
3775
+ let c, u = 0, h;
3776
+ if (!d) {
3777
+ const f = [ct.bind(this), void 0];
3778
+ for (f.unshift.apply(f, a), f.push.apply(f, l), h = f.length, c = Promise.resolve(s); u < h; )
3779
+ c = c.then(f[u++], f[u++]);
3780
+ return c;
3781
+ }
3782
+ h = a.length;
3783
+ let m = s;
3784
+ for (u = 0; u < h; ) {
3785
+ const f = a[u++], g = a[u++];
3786
+ try {
3787
+ m = f(m);
3788
+ } catch (w) {
3789
+ g.call(this, w);
3790
+ break;
3791
+ }
3792
+ }
3793
+ try {
3794
+ c = ct.call(this, m);
3795
+ } catch (f) {
3796
+ return Promise.reject(f);
3797
+ }
3798
+ for (u = 0, h = l.length; u < h; )
3799
+ c = c.then(l[u++], l[u++]);
3800
+ return c;
3801
+ }
3802
+ getUri(t) {
3803
+ t = K(this.defaults, t);
3804
+ const s = Ft(t.baseURL, t.url, t.allowAbsoluteUrls);
3805
+ return It(s, t.params, t.paramsSerializer);
3806
+ }
3807
+ };
3808
+ p.forEach(["delete", "get", "head", "options"], function(t) {
3809
+ J.prototype[t] = function(s, i) {
3810
+ return this.request(K(i || {}, {
3811
+ method: t,
3812
+ url: s,
3813
+ data: (i || {}).data
3814
+ }));
3815
+ };
3816
+ });
3817
+ p.forEach(["post", "put", "patch"], function(t) {
3818
+ function s(i) {
3819
+ return function(n, o, a) {
3820
+ return this.request(K(a || {}, {
3821
+ method: t,
3822
+ headers: i ? {
3823
+ "Content-Type": "multipart/form-data"
3824
+ } : {},
3825
+ url: n,
3826
+ data: o
3827
+ }));
3828
+ };
3829
+ }
3830
+ J.prototype[t] = s(), J.prototype[t + "Form"] = s(!0);
3831
+ });
3832
+ let Gr = class jt {
3833
+ constructor(t) {
3834
+ if (typeof t != "function")
3835
+ throw new TypeError("executor must be a function.");
3836
+ let s;
3837
+ this.promise = new Promise(function(n) {
3838
+ s = n;
3839
+ });
3840
+ const i = this;
3841
+ this.promise.then((r) => {
3842
+ if (!i._listeners) return;
3843
+ let n = i._listeners.length;
3844
+ for (; n-- > 0; )
3845
+ i._listeners[n](r);
3846
+ i._listeners = null;
3847
+ }), this.promise.then = (r) => {
3848
+ let n;
3849
+ const o = new Promise((a) => {
3850
+ i.subscribe(a), n = a;
3851
+ }).then(r);
3852
+ return o.cancel = function() {
3853
+ i.unsubscribe(n);
3854
+ }, o;
3855
+ }, t(function(n, o, a) {
3856
+ i.reason || (i.reason = new ee(n, o, a), s(i.reason));
3857
+ });
3858
+ }
3859
+ /**
3860
+ * Throws a `CanceledError` if cancellation has been requested.
3861
+ */
3862
+ throwIfRequested() {
3863
+ if (this.reason)
3864
+ throw this.reason;
3865
+ }
3866
+ /**
3867
+ * Subscribe to the cancel signal
3868
+ */
3869
+ subscribe(t) {
3870
+ if (this.reason) {
3871
+ t(this.reason);
3872
+ return;
3873
+ }
3874
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
3875
+ }
3876
+ /**
3877
+ * Unsubscribe from the cancel signal
3878
+ */
3879
+ unsubscribe(t) {
3880
+ if (!this._listeners)
3881
+ return;
3882
+ const s = this._listeners.indexOf(t);
3883
+ s !== -1 && this._listeners.splice(s, 1);
3884
+ }
3885
+ toAbortSignal() {
3886
+ const t = new AbortController(), s = (i) => {
3887
+ t.abort(i);
3888
+ };
3889
+ return this.subscribe(s), t.signal.unsubscribe = () => this.unsubscribe(s), t.signal;
3890
+ }
3891
+ /**
3892
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
3893
+ * cancels the `CancelToken`.
3894
+ */
3895
+ static source() {
3896
+ let t;
3897
+ return {
3898
+ token: new jt(function(r) {
3899
+ t = r;
3900
+ }),
3901
+ cancel: t
3902
+ };
3903
+ }
3904
+ };
3905
+ function Vr(e) {
3906
+ return function(s) {
3907
+ return e.apply(null, s);
3908
+ };
3909
+ }
3910
+ function Hr(e) {
3911
+ return p.isObject(e) && e.isAxiosError === !0;
3912
+ }
3913
+ const Be = {
3914
+ Continue: 100,
3915
+ SwitchingProtocols: 101,
3916
+ Processing: 102,
3917
+ EarlyHints: 103,
3918
+ Ok: 200,
3919
+ Created: 201,
3920
+ Accepted: 202,
3921
+ NonAuthoritativeInformation: 203,
3922
+ NoContent: 204,
3923
+ ResetContent: 205,
3924
+ PartialContent: 206,
3925
+ MultiStatus: 207,
3926
+ AlreadyReported: 208,
3927
+ ImUsed: 226,
3928
+ MultipleChoices: 300,
3929
+ MovedPermanently: 301,
3930
+ Found: 302,
3931
+ SeeOther: 303,
3932
+ NotModified: 304,
3933
+ UseProxy: 305,
3934
+ Unused: 306,
3935
+ TemporaryRedirect: 307,
3936
+ PermanentRedirect: 308,
3937
+ BadRequest: 400,
3938
+ Unauthorized: 401,
3939
+ PaymentRequired: 402,
3940
+ Forbidden: 403,
3941
+ NotFound: 404,
3942
+ MethodNotAllowed: 405,
3943
+ NotAcceptable: 406,
3944
+ ProxyAuthenticationRequired: 407,
3945
+ RequestTimeout: 408,
3946
+ Conflict: 409,
3947
+ Gone: 410,
3948
+ LengthRequired: 411,
3949
+ PreconditionFailed: 412,
3950
+ PayloadTooLarge: 413,
3951
+ UriTooLong: 414,
3952
+ UnsupportedMediaType: 415,
3953
+ RangeNotSatisfiable: 416,
3954
+ ExpectationFailed: 417,
3955
+ ImATeapot: 418,
3956
+ MisdirectedRequest: 421,
3957
+ UnprocessableEntity: 422,
3958
+ Locked: 423,
3959
+ FailedDependency: 424,
3960
+ TooEarly: 425,
3961
+ UpgradeRequired: 426,
3962
+ PreconditionRequired: 428,
3963
+ TooManyRequests: 429,
3964
+ RequestHeaderFieldsTooLarge: 431,
3965
+ UnavailableForLegalReasons: 451,
3966
+ InternalServerError: 500,
3967
+ NotImplemented: 501,
3968
+ BadGateway: 502,
3969
+ ServiceUnavailable: 503,
3970
+ GatewayTimeout: 504,
3971
+ HttpVersionNotSupported: 505,
3972
+ VariantAlsoNegotiates: 506,
3973
+ InsufficientStorage: 507,
3974
+ LoopDetected: 508,
3975
+ NotExtended: 510,
3976
+ NetworkAuthenticationRequired: 511
3977
+ };
3978
+ Object.entries(Be).forEach(([e, t]) => {
3979
+ Be[t] = e;
3980
+ });
3981
+ function $t(e) {
3982
+ const t = new J(e), s = yt(J.prototype.request, t);
3983
+ return p.extend(s, J.prototype, t, { allOwnKeys: !0 }), p.extend(s, t, null, { allOwnKeys: !0 }), s.create = function(r) {
3984
+ return $t(K(e, r));
3985
+ }, s;
3986
+ }
3987
+ const R = $t(re);
3988
+ R.Axios = J;
3989
+ R.CanceledError = ee;
3990
+ R.CancelToken = Gr;
3991
+ R.isCancel = Dt;
3992
+ R.VERSION = Ht;
3993
+ R.toFormData = ve;
3994
+ R.AxiosError = P;
3995
+ R.Cancel = R.CanceledError;
3996
+ R.all = function(t) {
3997
+ return Promise.all(t);
3998
+ };
3999
+ R.spread = Vr;
4000
+ R.isAxiosError = Hr;
4001
+ R.mergeConfig = K;
4002
+ R.AxiosHeaders = B;
4003
+ R.formToJSON = (e) => zt(p.isHTMLForm(e) ? new FormData(e) : e);
4004
+ R.getAdapter = Vt.getAdapter;
4005
+ R.HttpStatusCode = Be;
4006
+ R.default = R;
4007
+ const {
4008
+ Axios: Wr,
4009
+ AxiosError: Xr,
4010
+ CanceledError: Yr,
4011
+ isCancel: Jr,
4012
+ CancelToken: Kr,
4013
+ VERSION: Qr,
4014
+ all: Zr,
4015
+ Cancel: en,
4016
+ isAxiosError: tn,
4017
+ spread: sn,
4018
+ toFormData: rn,
4019
+ AxiosHeaders: nn,
4020
+ HttpStatusCode: on,
4021
+ formToJSON: an,
4022
+ getAdapter: ln,
4023
+ mergeConfig: dn
4024
+ } = R;
4025
+ export {
4026
+ V as S,
4027
+ R as a,
4028
+ Ie as c,
4029
+ Qe as d,
4030
+ U as e,
4031
+ jr as m,
4032
+ $r as s
4033
+ };