(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ [4598], { 39536: function (e, t, i) { "use strict"; var r, n = i(57537).Buffer; t.IX = t.Ez = t.Bd = t.t3 = t.Bh = t.Xg = t.Kw = t.ZL = t.jn = t.Ks = t.bH = t.z7 = t.fO = t.AW = t.n_ = t.eh = t.xn = t.kx = t.Jq = t.TQ = t.KB = t.i8 = t.u8 = void 0; let s = i(47925), a = i(87927), o = (r = i(52776)) && r.__esModule ? r : { default: r }; var l = i(47925); Object.defineProperty(t, "u8", { enumerable: !0, get: function () { return l.u8; }, }), Object.defineProperty(t, "i8", { enumerable: !0, get: function () { return l.s8; }, }), Object.defineProperty(t, "KB", { enumerable: !0, get: function () { return l.u16; }, }), Object.defineProperty(t, "TQ", { enumerable: !0, get: function () { return l.s16; }, }), Object.defineProperty(t, "Jq", { enumerable: !0, get: function () { return l.u32; }, }), Object.defineProperty(t, "kx", { enumerable: !0, get: function () { return l.s32; }, }), Object.defineProperty(t, "xn", { enumerable: !0, get: function () { return l.f32; }, }), Object.defineProperty(t, "eh", { enumerable: !0, get: function () { return l.f64; }, }), Object.defineProperty(t, "n_", { enumerable: !0, get: function () { return l.struct; }, }); class c extends s.Layout { decode(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0, i = new o.default(this.blob.decode(e, t), 10, "le"); return this.signed ? i.fromTwos(8 * this.span).clone() : i; } encode(e, t) { let i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0; return ( this.signed && (e = e.toTwos(8 * this.span)), this.blob.encode(e.toArrayLike(n, "le", this.span), t, i) ); } constructor(e, t, i) { super(e, i), (this.blob = (0, s.blob)(e)), (this.signed = t); } } (t.AW = function (e) { return new c(8, !1, e); }), (t.fO = function (e) { return new c(8, !0, e); }), (t.z7 = function (e) { return new c(16, !1, e); }), (t.bH = function (e) { return new c(16, !0, e); }), (t.Ks = function (e) { return new c(32, !1, e); }), (t.jn = function (e) { return new c(32, !0, e); }); class d extends s.Layout { decode(e, t) { return this.decoder(this.layout.decode(e, t)); } encode(e, t, i) { return this.layout.encode(this.encoder(e), t, i); } getSpan(e, t) { return this.layout.getSpan(e, t); } constructor(e, t, i, r) { super(e.span, r), (this.layout = e), (this.decoder = t), (this.encoder = i); } } t.ZL = function (e) { return new d( (0, s.blob)(32), (e) => new a.PublicKey(e), (e) => e.toBuffer(), e ); }; class u extends s.Layout { encode(e, t) { let i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0; return null == e ? this.discriminator.encode(0, t, i) : (this.discriminator.encode(1, t, i), this.layout.encode(e, t, i + 1) + 1); } decode(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0, i = this.discriminator.decode(e, t); if (0 === i) return null; if (1 === i) return this.layout.decode(e, t + 1); throw Error("Invalid option " + this.property); } getSpan(e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 0, i = this.discriminator.decode(e, t); if (0 === i) return 1; if (1 === i) return this.layout.getSpan(e, t + 1) + 1; throw Error("Invalid option " + this.property); } constructor(e, t) { super(-1, t), (this.layout = e), (this.discriminator = (0, s.u8)()); } } function p(e) { if (0 === e) return !1; if (1 === e) return !0; throw Error("Invalid bool: " + e); } function h(e) { return e ? 1 : 0; } function f(e) { let t = (0, s.u32)("length"); return new d( (0, s.struct)([t, (0, s.blob)((0, s.offset)(t, -t.span), "data")]), (e) => { let { data: t } = e; return t; }, (e) => ({ data: e }), e ); } (t.Kw = function (e, t) { return new u(e, t); }), (t.Xg = function (e) { return new d((0, s.u8)(), p, h, e); }), (t.Bh = function (e, t) { let i = (0, s.u32)("length"); return new d( (0, s.struct)([ i, (0, s.seq)(e, (0, s.offset)(i, -i.span), "values"), ]), (e) => { let { values: t } = e; return t; }, (e) => ({ values: e }), t ); }), (t.t3 = f), (t.Bd = function (e) { return new d( f(), (e) => e.toString("utf-8"), (e) => n.from(e, "utf-8"), e ); }), (t.Ez = function (e, t, i) { let r = (0, s.union)(null != i ? i : (0, s.u8)(), t); return e.forEach((e, t) => r.addVariant(t, e, e.property)), r; }), (t.IX = function (e, t, i) { return new d( (0, s.struct)([(0, s.seq)(e, t, "values")]), (e) => { let { values: t } = e; return t; }, (e) => ({ values: e }), i ); }), s.Layout; }, 14627: function (e, t, i) { "use strict"; i.d(t, { Fl: function () { return g; }, MZ: function () { return u; }, cE: function () { return E; }, td: function () { return p; }, }); var r = Symbol.for("preact-signals"); function n() { if (o > 1) o--; else { for (var e, t = !1; void 0 !== a; ) { var i = a; for (a = void 0, l++; void 0 !== i; ) { var r = i.o; if (((i.o = void 0), (i.f &= -3), !(8 & i.f) && h(i))) try { i.c(); } catch (i) { t || ((e = i), (t = !0)); } i = r; } } if (((l = 0), o--, t)) throw e; } } var s = void 0, a = void 0, o = 0, l = 0, c = 0; function d(e) { if (void 0 !== s) { var t = e.n; if (void 0 === t || t.t !== s) return ( (t = { i: 0, S: e, p: s.s, n: void 0, t: s, e: void 0, x: void 0, r: t, }), void 0 !== s.s && (s.s.n = t), (s.s = t), (e.n = t), 32 & s.f && e.S(t), t ); if (-1 === t.i) return ( (t.i = 0), void 0 !== t.n && ((t.n.p = t.p), void 0 !== t.p && (t.p.n = t.n), (t.p = s.s), (t.n = void 0), (s.s.n = t), (s.s = t)), t ); } } function u(e) { (this.v = e), (this.i = 0), (this.n = void 0), (this.t = void 0); } function p(e) { return new u(e); } function h(e) { for (var t = e.s; void 0 !== t; t = t.n) if (t.S.i !== t.i || !t.S.h() || t.S.i !== t.i) return !0; return !1; } function f(e) { for (var t = e.s; void 0 !== t; t = t.n) { var i = t.S.n; if ( (void 0 !== i && (t.r = i), (t.S.n = t), (t.i = -1), void 0 === t.n) ) { e.s = t; break; } } } function m(e) { for (var t = e.s, i = void 0; void 0 !== t; ) { var r = t.p; -1 === t.i ? (t.S.U(t), void 0 !== r && (r.n = t.n), void 0 !== t.n && (t.n.p = r)) : (i = t), (t.S.n = t.r), void 0 !== t.r && (t.r = void 0), (t = r); } e.s = i; } function v(e) { u.call(this, void 0), (this.x = e), (this.s = void 0), (this.g = c - 1), (this.f = 4); } function g(e) { return new v(e); } function y(e) { var t = e.u; if (((e.u = void 0), "function" == typeof t)) { o++; var i = s; s = void 0; try { t(); } catch (t) { throw ((e.f &= -2), (e.f |= 8), w(e), t); } finally { (s = i), n(); } } } function w(e) { for (var t = e.s; void 0 !== t; t = t.n) t.S.U(t); (e.x = void 0), (e.s = void 0), y(e); } function b(e) { if (s !== this) throw Error("Out-of-order effect"); m(this), (s = e), (this.f &= -2), 8 & this.f && w(this), n(); } function S(e) { (this.x = e), (this.u = void 0), (this.s = void 0), (this.o = void 0), (this.f = 32); } function E(e) { var t = new S(e); try { t.c(); } catch (e) { throw (t.d(), e); } return t.d.bind(t); } (u.prototype.brand = r), (u.prototype.h = function () { return !0; }), (u.prototype.S = function (e) { this.t !== e && void 0 === e.e && ((e.x = this.t), void 0 !== this.t && (this.t.e = e), (this.t = e)); }), (u.prototype.U = function (e) { if (void 0 !== this.t) { var t = e.e, i = e.x; void 0 !== t && ((t.x = i), (e.e = void 0)), void 0 !== i && ((i.e = t), (e.x = void 0)), e === this.t && (this.t = i); } }), (u.prototype.subscribe = function (e) { var t = this; return E(function () { var i = t.value, r = s; s = void 0; try { e(i); } finally { s = r; } }); }), (u.prototype.valueOf = function () { return this.value; }), (u.prototype.toString = function () { return this.value + ""; }), (u.prototype.toJSON = function () { return this.value; }), (u.prototype.peek = function () { var e = s; s = void 0; try { return this.value; } finally { s = e; } }), Object.defineProperty(u.prototype, "value", { get: function () { var e = d(this); return void 0 !== e && (e.i = this.i), this.v; }, set: function (e) { if (e !== this.v) { if (l > 100) throw Error("Cycle detected"); (this.v = e), this.i++, c++, o++; try { for (var t = this.t; void 0 !== t; t = t.x) t.t.N(); } finally { n(); } } }, }), ((v.prototype = new u()).h = function () { if (((this.f &= -3), 1 & this.f)) return !1; if (32 == (36 & this.f) || ((this.f &= -5), this.g === c)) return !0; if (((this.g = c), (this.f |= 1), this.i > 0 && !h(this))) return (this.f &= -2), !0; var e = s; try { f(this), (s = this); var t = this.x(); (16 & this.f || this.v !== t || 0 === this.i) && ((this.v = t), (this.f &= -17), this.i++); } catch (e) { (this.v = e), (this.f |= 16), this.i++; } return (s = e), m(this), (this.f &= -2), !0; }), (v.prototype.S = function (e) { if (void 0 === this.t) { this.f |= 36; for (var t = this.s; void 0 !== t; t = t.n) t.S.S(t); } u.prototype.S.call(this, e); }), (v.prototype.U = function (e) { if ( void 0 !== this.t && (u.prototype.U.call(this, e), void 0 === this.t) ) { this.f &= -33; for (var t = this.s; void 0 !== t; t = t.n) t.S.U(t); } }), (v.prototype.N = function () { if (!(2 & this.f)) { this.f |= 6; for (var e = this.t; void 0 !== e; e = e.x) e.t.N(); } }), Object.defineProperty(v.prototype, "value", { get: function () { if (1 & this.f) throw Error("Cycle detected"); var e = d(this); if ((this.h(), void 0 !== e && (e.i = this.i), 16 & this.f)) throw this.v; return this.v; }, }), (S.prototype.c = function () { var e = this.S(); try { if (8 & this.f || void 0 === this.x) return; var t = this.x(); "function" == typeof t && (this.u = t); } finally { e(); } }), (S.prototype.S = function () { if (1 & this.f) throw Error("Cycle detected"); (this.f |= 1), (this.f &= -9), y(this), f(this), o++; var e = s; return (s = this), b.bind(this, e); }), (S.prototype.N = function () { 2 & this.f || ((this.f |= 2), (this.o = a), (a = this)); }), (S.prototype.d = function () { (this.f |= 8), 1 & this.f || w(this); }); }, 25702: function (e, t, i) { "use strict"; i.d(t, { Fl: function () { return r.Fl; }, td: function () { return r.td; }, }); var r = i(14627); i(75565); }, 75565: function (e, t, i) { "use strict"; i.d(t, { ZH: function () { return v; }, }); var r = i(14627), n = i(37801), s = i(81331); i(60505), i(33035); var a, o = Symbol.for("react.element"), l = function () {}, c = Symbol.dispose || Symbol.for("Symbol.dispose"); function d(e, t) { var i = t.effect.S(); return (a = t), u.bind(t, e, i); } function u(e, t) { t(), (a = e); } var p, h = Promise.prototype.then.bind(Promise.resolve()); function f() { var e; (p = void 0), null == (e = a) || e.f(); } function m(e) { void 0 === e && (e = 0), p || (p = h(f)); var t, i, o, l, u, m, v, g = (0, n.useRef)(); null == g.current && (g.current = ((t = e), (m = 0), (v = (0, r.cE)(function () { o = this; })), (o.c = function () { (m = (m + 1) | 0), u && u(); }), ((i = { u: t, effect: o, subscribe: function (e) { return ( (u = e), function () { (m = (m + 1) | 0), (u = void 0), v(); } ); }, getSnapshot: function () { return m; }, S: function () { if (null != a) { var e = a.u, t = this.u; (0 == e && 0 == t) || (0 == e && 1 == t) ? (a.f(), (l = d(void 0, this))) : (1 == e && 0 == t) || (2 == e && 0 == t) || (l = d(a, this)); } else l = d(void 0, this); }, f: function () { var e = l; (l = void 0), null == e || e(); }, })[c] = function () { this.f(); }), i)); var y = g.current; return ( (0, s.useSyncExternalStore)( y.subscribe, y.getSnapshot, y.getSnapshot ), y.S(), 0 === e && (0, n.useLayoutEffect)(f), y ); } function v(e) { return m(e); } Object.defineProperties(r.MZ.prototype, { $$typeof: { configurable: !0, value: o }, type: { configurable: !0, value: function (e) { var t = e.data, i = m(1); try { return t.value; } finally { i.f(); } }, }, props: { configurable: !0, get: function () { return { data: this }; }, }, ref: { configurable: !0, value: null }, }); }, 47925: function (e, t, i) { "use strict"; var r = i(57537).Buffer; /** * Support for translating between Buffer instances and JavaScript * native types. * * {@link module:Layout~Layout|Layout} is the basis of a class * hierarchy that associates property names with sequences of encoded * bytes. * * Layouts are supported for these scalar (numeric) types: * * {@link module:Layout~UInt|Unsigned integers in little-endian * format} with {@link module:Layout.u8|8-bit}, {@link * module:Layout.u16|16-bit}, {@link module:Layout.u24|24-bit}, * {@link module:Layout.u32|32-bit}, {@link * module:Layout.u40|40-bit}, and {@link module:Layout.u48|48-bit} * representation ranges; * * {@link module:Layout~UIntBE|Unsigned integers in big-endian * format} with {@link module:Layout.u16be|16-bit}, {@link * module:Layout.u24be|24-bit}, {@link module:Layout.u32be|32-bit}, * {@link module:Layout.u40be|40-bit}, and {@link * module:Layout.u48be|48-bit} representation ranges; * * {@link module:Layout~Int|Signed integers in little-endian * format} with {@link module:Layout.s8|8-bit}, {@link * module:Layout.s16|16-bit}, {@link module:Layout.s24|24-bit}, * {@link module:Layout.s32|32-bit}, {@link * module:Layout.s40|40-bit}, and {@link module:Layout.s48|48-bit} * representation ranges; * * {@link module:Layout~IntBE|Signed integers in big-endian format} * with {@link module:Layout.s16be|16-bit}, {@link * module:Layout.s24be|24-bit}, {@link module:Layout.s32be|32-bit}, * {@link module:Layout.s40be|40-bit}, and {@link * module:Layout.s48be|48-bit} representation ranges; * * 64-bit integral values that decode to an exact (if magnitude is * less than 2^53) or nearby integral Number in {@link * module:Layout.nu64|unsigned little-endian}, {@link * module:Layout.nu64be|unsigned big-endian}, {@link * module:Layout.ns64|signed little-endian}, and {@link * module:Layout.ns64be|unsigned big-endian} encodings; * * 32-bit floating point values with {@link * module:Layout.f32|little-endian} and {@link * module:Layout.f32be|big-endian} representations; * * 64-bit floating point values with {@link * module:Layout.f64|little-endian} and {@link * module:Layout.f64be|big-endian} representations; * * {@link module:Layout.const|Constants} that take no space in the * encoded expression. * * and for these aggregate types: * * {@link module:Layout.seq|Sequence}s of instances of a {@link * module:Layout~Layout|Layout}, with JavaScript representation as * an Array and constant or data-dependent {@link * module:Layout~Sequence#count|length}; * * {@link module:Layout.struct|Structure}s that aggregate a * heterogeneous sequence of {@link module:Layout~Layout|Layout} * instances, with JavaScript representation as an Object; * * {@link module:Layout.union|Union}s that support multiple {@link * module:Layout~VariantLayout|variant layouts} over a fixed * (padded) or variable (not padded) span of bytes, using an * unsigned integer at the start of the data or a separate {@link * module:Layout.unionLayoutDiscriminator|layout element} to * determine which layout to use when interpreting the buffer * contents; * * {@link module:Layout.bits|BitStructure}s that contain a sequence * of individual {@link * module:Layout~BitStructure#addField|BitField}s packed into an 8, * 16, 24, or 32-bit unsigned integer starting at the least- or * most-significant bit; * * {@link module:Layout.cstr|C strings} of varying length; * * {@link module:Layout.blob|Blobs} of fixed- or variable-{@link * module:Layout~Blob#length|length} raw data. * * All {@link module:Layout~Layout|Layout} instances are immutable * after construction, to prevent internal state from becoming * inconsistent. * * @local Layout * @local ExternalLayout * @local GreedyCount * @local OffsetLayout * @local UInt * @local UIntBE * @local Int * @local IntBE * @local NearUInt64 * @local NearUInt64BE * @local NearInt64 * @local NearInt64BE * @local Float * @local FloatBE * @local Double * @local DoubleBE * @local Sequence * @local Structure * @local UnionDiscriminator * @local UnionLayoutDiscriminator * @local Union * @local VariantLayout * @local BitStructure * @local BitField * @local Boolean * @local Blob * @local CString * @local Constant * @local bindConstructorLayout * @module Layout * @license MIT * @author Peter A. Bigot * @see {@link https://github.com/pabigot/buffer-layout|buffer-layout on GitHub} */ class n { makeDestinationObject() { return {}; } decode(e, t) { throw Error("Layout is abstract"); } encode(e, t, i) { throw Error("Layout is abstract"); } getSpan(e, t) { if (0 > this.span) throw RangeError("indeterminate span"); return this.span; } replicate(e) { let t = Object.create(this.constructor.prototype); return Object.assign(t, this), (t.property = e), t; } fromArray(e) {} constructor(e, t) { if (!Number.isInteger(e)) throw TypeError("span must be an integer"); (this.span = e), (this.property = t); } } function s(e, t) { return t.property ? e + "[" + t.property + "]" : e; } (t.Layout = n), (t.nameWithProperty = s), (t.bindConstructorLayout = function (e, t) { if ("function" != typeof e) throw TypeError("Class must be constructor"); if (e.hasOwnProperty("layout_")) throw Error("Class is already bound to a layout"); if (!(t && t instanceof n)) throw TypeError("layout must be a Layout"); if (t.hasOwnProperty("boundConstructor_")) throw Error("layout is already bound to a constructor"); (e.layout_ = t), (t.boundConstructor_ = e), (t.makeDestinationObject = () => new e()), Object.defineProperty(e.prototype, "encode", { value: function (e, i) { return t.encode(this, e, i); }, writable: !0, }), Object.defineProperty(e, "decode", { value: function (e, i) { return t.decode(e, i); }, writable: !0, }); }); class a extends n { isCount() { throw Error("ExternalLayout is abstract"); } } class o extends a { isCount() { return !0; } decode(e, t) { return ( void 0 === t && (t = 0), Math.floor((e.length - t) / this.elementSpan) ); } encode(e, t, i) { return 0; } constructor(e, t) { if ((void 0 === e && (e = 1), !Number.isInteger(e) || 0 >= e)) throw TypeError("elementSpan must be a (positive) integer"); super(-1, t), (this.elementSpan = e); } } class l extends a { isCount() { return this.layout instanceof c || this.layout instanceof d; } decode(e, t) { return ( void 0 === t && (t = 0), this.layout.decode(e, t + this.offset) ); } encode(e, t, i) { return ( void 0 === i && (i = 0), this.layout.encode(e, t, i + this.offset) ); } constructor(e, t, i) { if (!(e instanceof n)) throw TypeError("layout must be a Layout"); if (void 0 === t) t = 0; else if (!Number.isInteger(t)) throw TypeError("offset must be integer or undefined"); super(e.span, i || e.property), (this.layout = e), (this.offset = t); } } class c extends n { decode(e, t) { return void 0 === t && (t = 0), e.readUIntLE(t, this.span); } encode(e, t, i) { return ( void 0 === i && (i = 0), t.writeUIntLE(e, i, this.span), this.span ); } constructor(e, t) { if ((super(e, t), 6 < this.span)) throw RangeError("span must not exceed 6 bytes"); } } class d extends n { decode(e, t) { return void 0 === t && (t = 0), e.readUIntBE(t, this.span); } encode(e, t, i) { return ( void 0 === i && (i = 0), t.writeUIntBE(e, i, this.span), this.span ); } constructor(e, t) { if ((super(e, t), 6 < this.span)) throw RangeError("span must not exceed 6 bytes"); } } class u extends n { decode(e, t) { return void 0 === t && (t = 0), e.readIntLE(t, this.span); } encode(e, t, i) { return ( void 0 === i && (i = 0), t.writeIntLE(e, i, this.span), this.span ); } constructor(e, t) { if ((super(e, t), 6 < this.span)) throw RangeError("span must not exceed 6 bytes"); } } class p extends n { decode(e, t) { return void 0 === t && (t = 0), e.readIntBE(t, this.span); } encode(e, t, i) { return ( void 0 === i && (i = 0), t.writeIntBE(e, i, this.span), this.span ); } constructor(e, t) { if ((super(e, t), 6 < this.span)) throw RangeError("span must not exceed 6 bytes"); } } function h(e) { let t = Math.floor(e / 4294967296); return { hi32: t, lo32: e - 4294967296 * t }; } function f(e, t) { return 4294967296 * e + t; } class m extends n { decode(e, t) { void 0 === t && (t = 0); let i = e.readUInt32LE(t); return f(e.readUInt32LE(t + 4), i); } encode(e, t, i) { void 0 === i && (i = 0); let r = h(e); return t.writeUInt32LE(r.lo32, i), t.writeUInt32LE(r.hi32, i + 4), 8; } constructor(e) { super(8, e); } } class v extends n { decode(e, t) { return ( void 0 === t && (t = 0), f(e.readUInt32BE(t), e.readUInt32BE(t + 4)) ); } encode(e, t, i) { void 0 === i && (i = 0); let r = h(e); return t.writeUInt32BE(r.hi32, i), t.writeUInt32BE(r.lo32, i + 4), 8; } constructor(e) { super(8, e); } } class g extends n { decode(e, t) { void 0 === t && (t = 0); let i = e.readUInt32LE(t); return f(e.readInt32LE(t + 4), i); } encode(e, t, i) { void 0 === i && (i = 0); let r = h(e); return t.writeUInt32LE(r.lo32, i), t.writeInt32LE(r.hi32, i + 4), 8; } constructor(e) { super(8, e); } } class y extends n { decode(e, t) { return ( void 0 === t && (t = 0), f(e.readInt32BE(t), e.readUInt32BE(t + 4)) ); } encode(e, t, i) { void 0 === i && (i = 0); let r = h(e); return t.writeInt32BE(r.hi32, i), t.writeUInt32BE(r.lo32, i + 4), 8; } constructor(e) { super(8, e); } } class w extends n { decode(e, t) { return void 0 === t && (t = 0), e.readFloatLE(t); } encode(e, t, i) { return void 0 === i && (i = 0), t.writeFloatLE(e, i), 4; } constructor(e) { super(4, e); } } class b extends n { decode(e, t) { return void 0 === t && (t = 0), e.readFloatBE(t); } encode(e, t, i) { return void 0 === i && (i = 0), t.writeFloatBE(e, i), 4; } constructor(e) { super(4, e); } } class S extends n { decode(e, t) { return void 0 === t && (t = 0), e.readDoubleLE(t); } encode(e, t, i) { return void 0 === i && (i = 0), t.writeDoubleLE(e, i), 8; } constructor(e) { super(8, e); } } class E extends n { decode(e, t) { return void 0 === t && (t = 0), e.readDoubleBE(t); } encode(e, t, i) { return void 0 === i && (i = 0), t.writeDoubleBE(e, i), 8; } constructor(e) { super(8, e); } } class x extends n { getSpan(e, t) { if (0 <= this.span) return this.span; void 0 === t && (t = 0); let i = 0, r = this.count; if ( (r instanceof a && (r = r.decode(e, t)), 0 < this.elementLayout.span) ) i = r * this.elementLayout.span; else { let n = 0; for (; n < r; ) (i += this.elementLayout.getSpan(e, t + i)), ++n; } return i; } decode(e, t) { void 0 === t && (t = 0); let i = [], r = 0, n = this.count; for (n instanceof a && (n = n.decode(e, t)); r < n; ) i.push(this.elementLayout.decode(e, t)), (t += this.elementLayout.getSpan(e, t)), (r += 1); return i; } encode(e, t, i) { void 0 === i && (i = 0); let r = this.elementLayout, n = e.reduce((e, n) => e + r.encode(n, t, i + e), 0); return ( this.count instanceof a && this.count.encode(e.length, t, i), n ); } constructor(e, t, i) { if (!(e instanceof n)) throw TypeError("elementLayout must be a Layout"); if ( !( (t instanceof a && t.isCount()) || (Number.isInteger(t) && 0 <= t) ) ) throw TypeError( "count must be non-negative integer or an unsigned integer ExternalLayout" ); let r = -1; t instanceof a || !(0 < e.span) || (r = t * e.span), super(r, i), (this.elementLayout = e), (this.count = t); } } class T extends n { getSpan(e, t) { if (0 <= this.span) return this.span; void 0 === t && (t = 0); let i = 0; try { i = this.fields.reduce((i, r) => { let n = r.getSpan(e, t); return (t += n), i + n; }, 0); } catch (e) { throw RangeError("indeterminate span"); } return i; } decode(e, t) { void 0 === t && (t = 0); let i = this.makeDestinationObject(); for (let r of this.fields) if ( (void 0 !== r.property && (i[r.property] = r.decode(e, t)), (t += r.getSpan(e, t)), this.decodePrefixes && e.length === t) ) break; return i; } encode(e, t, i) { void 0 === i && (i = 0); let r = i, n = 0, s = 0; for (let r of this.fields) { let a = r.span; if (((s = 0 < a ? a : 0), void 0 !== r.property)) { let n = e[r.property]; void 0 !== n && ((s = r.encode(n, t, i)), 0 > a && (a = r.getSpan(t, i))); } (n = i), (i += a); } return n + s - r; } fromArray(e) { let t = this.makeDestinationObject(); for (let i of this.fields) void 0 !== i.property && 0 < e.length && (t[i.property] = e.shift()); return t; } layoutFor(e) { if ("string" != typeof e) throw TypeError("property must be string"); for (let t of this.fields) if (t.property === e) return t; } offsetOf(e) { if ("string" != typeof e) throw TypeError("property must be string"); let t = 0; for (let i of this.fields) { if (i.property === e) return t; 0 > i.span ? (t = -1) : 0 <= t && (t += i.span); } } constructor(e, t, i) { if ( !(Array.isArray(e) && e.reduce((e, t) => e && t instanceof n, !0)) ) throw TypeError("fields must be array of Layout instances"); for (let r of ("boolean" == typeof t && void 0 === i && ((i = t), (t = void 0)), e)) if (0 > r.span && void 0 === r.property) throw Error( "fields cannot contain unnamed variable-length layout" ); let r = -1; try { r = e.reduce((e, t) => e + t.getSpan(), 0); } catch (e) {} super(r, t), (this.fields = e), (this.decodePrefixes = !!i); } } class C { decode() { throw Error("UnionDiscriminator is abstract"); } encode() { throw Error("UnionDiscriminator is abstract"); } constructor(e) { this.property = e; } } class _ extends C { decode(e, t) { return this.layout.decode(e, t); } encode(e, t, i) { return this.layout.encode(e, t, i); } constructor(e, t) { if (!(e instanceof a && e.isCount())) throw TypeError( "layout must be an unsigned integer ExternalLayout" ); super(t || e.property || "variant"), (this.layout = e); } } class k extends n { getSpan(e, t) { if (0 <= this.span) return this.span; void 0 === t && (t = 0); let i = this.getVariant(e, t); if (!i) throw Error("unable to determine span for unrecognized variant"); return i.getSpan(e, t); } defaultGetSourceVariant(e) { if (e.hasOwnProperty(this.discriminator.property)) { if ( this.defaultLayout && e.hasOwnProperty(this.defaultLayout.property) ) return; let t = this.registry[e[this.discriminator.property]]; if (t && (!t.layout || e.hasOwnProperty(t.property))) return t; } else for (let t in this.registry) { let i = this.registry[t]; if (e.hasOwnProperty(i.property)) return i; } throw Error("unable to infer src variant"); } decode(e, t) { let i; void 0 === t && (t = 0); let r = this.discriminator, n = r.decode(e, t), s = this.registry[n]; if (void 0 === s) { let a = 0; (s = this.defaultLayout), this.usesPrefixDiscriminator && (a = r.layout.span), ((i = this.makeDestinationObject())[r.property] = n), (i[s.property] = this.defaultLayout.decode(e, t + a)); } else i = s.decode(e, t); return i; } encode(e, t, i) { void 0 === i && (i = 0); let r = this.getSourceVariant(e); if (void 0 === r) { let r = this.discriminator, n = this.defaultLayout, s = 0; return ( this.usesPrefixDiscriminator && (s = r.layout.span), r.encode(e[r.property], t, i), s + n.encode(e[n.property], t, i + s) ); } return r.encode(e, t, i); } addVariant(e, t, i) { let r = new L(this, e, t, i); return (this.registry[e] = r), r; } getVariant(e, t) { let i = e; return ( r.isBuffer(e) && (void 0 === t && (t = 0), (i = this.discriminator.decode(e, t))), this.registry[i] ); } constructor(e, t, i) { let r = e instanceof c || e instanceof d; if (r) e = new _(new l(e)); else if (e instanceof a && e.isCount()) e = new _(e); else if (!(e instanceof C)) throw TypeError( "discr must be a UnionDiscriminator or an unsigned integer layout" ); if ((void 0 === t && (t = null), !(null === t || t instanceof n))) throw TypeError("defaultLayout must be null or a Layout"); if (null !== t) { if (0 > t.span) throw Error("defaultLayout must have constant span"); void 0 === t.property && (t = t.replicate("content")); } let s = -1; t && 0 <= (s = t.span) && r && (s += e.layout.span), super(s, i), (this.discriminator = e), (this.usesPrefixDiscriminator = r), (this.defaultLayout = t), (this.registry = {}); let o = this.defaultGetSourceVariant.bind(this); (this.getSourceVariant = function (e) { return o(e); }), (this.configGetSourceVariant = function (e) { o = e.bind(this); }); } } class L extends n { getSpan(e, t) { if (0 <= this.span) return this.span; void 0 === t && (t = 0); let i = 0; return ( this.union.usesPrefixDiscriminator && (i = this.union.discriminator.layout.span), i + this.layout.getSpan(e, t + i) ); } decode(e, t) { let i = this.makeDestinationObject(); if ((void 0 === t && (t = 0), this !== this.union.getVariant(e, t))) throw Error("variant mismatch"); let r = 0; return ( this.union.usesPrefixDiscriminator && (r = this.union.discriminator.layout.span), this.layout ? (i[this.property] = this.layout.decode(e, t + r)) : this.property ? (i[this.property] = !0) : this.union.usesPrefixDiscriminator && (i[this.union.discriminator.property] = this.variant), i ); } encode(e, t, i) { void 0 === i && (i = 0); let r = 0; if ( (this.union.usesPrefixDiscriminator && (r = this.union.discriminator.layout.span), this.layout && !e.hasOwnProperty(this.property)) ) throw TypeError("variant lacks property " + this.property); this.union.discriminator.encode(this.variant, t, i); let n = r; if ( this.layout && (this.layout.encode(e[this.property], t, i + r), (n += this.layout.getSpan(t, i + r)), 0 <= this.union.span && n > this.union.span) ) throw Error("encoded variant overruns containing union"); return n; } fromArray(e) { if (this.layout) return this.layout.fromArray(e); } constructor(e, t, i, r) { if (!(e instanceof k)) throw TypeError("union must be a Union"); if (!Number.isInteger(t) || 0 > t) throw TypeError("variant must be a (non-negative) integer"); if ( ("string" == typeof i && void 0 === r && ((r = i), (i = null)), i) ) { if (!(i instanceof n)) throw TypeError("layout must be a Layout"); if ( null !== e.defaultLayout && 0 <= i.span && i.span > e.defaultLayout.span ) throw Error("variant span exceeds span of containing union"); if ("string" != typeof r) throw TypeError("variant must have a String property"); } let s = e.span; 0 > e.span && 0 <= (s = i ? i.span : 0) && e.usesPrefixDiscriminator && (s += e.discriminator.layout.span), super(s, r), (this.union = e), (this.variant = t), (this.layout = i || null); } } function P(e) { return 0 > e && (e += 4294967296), e; } class M extends n { decode(e, t) { let i = this.makeDestinationObject(); void 0 === t && (t = 0); let r = this.word.decode(e, t); for (let e of (this._packedSetValue(r), this.fields)) void 0 !== e.property && (i[e.property] = e.decode(r)); return i; } encode(e, t, i) { void 0 === i && (i = 0); let r = this.word.decode(t, i); for (let t of (this._packedSetValue(r), this.fields)) if (void 0 !== t.property) { let i = e[t.property]; void 0 !== i && t.encode(i); } return this.word.encode(this._packedGetValue(), t, i); } addField(e, t) { let i = new O(this, e, t); return this.fields.push(i), i; } addBoolean(e) { let t = new I(this, e); return this.fields.push(t), t; } fieldFor(e) { if ("string" != typeof e) throw TypeError("property must be string"); for (let t of this.fields) if (t.property === e) return t; } constructor(e, t, i) { if (!(e instanceof c || e instanceof d)) throw TypeError("word must be a UInt or UIntBE layout"); if ( ("string" == typeof t && void 0 === i && ((i = t), (t = void 0)), 4 < e.span) ) throw RangeError("word cannot exceed 32 bits"); super(e.span, i), (this.word = e), (this.msb = !!t), (this.fields = []); let r = 0; (this._packedSetValue = function (e) { return (r = P(e)), this; }), (this._packedGetValue = function () { return r; }); } } class O { decode() { return ( P(this.container._packedGetValue() & this.wordMask) >>> this.start ); } encode(e) { if (!Number.isInteger(e) || e !== P(e & this.valueMask)) throw TypeError( s("BitField.encode", this) + " value must be integer not exceeding " + this.valueMask ); let t = this.container._packedGetValue(), i = P(e << this.start); this.container._packedSetValue(P(t & ~this.wordMask) | i); } constructor(e, t, i) { if (!(e instanceof M)) throw TypeError("container must be a BitStructure"); if (!Number.isInteger(t) || 0 >= t) throw TypeError("bits must be positive integer"); let r = 8 * e.span, n = e.fields.reduce((e, t) => e + t.bits, 0); if (t + n > r) throw Error( "bits too long for span remainder (" + (r - n) + " of " + r + " remain)" ); (this.container = e), (this.bits = t), (this.valueMask = (1 << t) - 1), 32 === t && (this.valueMask = 4294967295), (this.start = n), this.container.msb && (this.start = r - n - t), (this.wordMask = P(this.valueMask << this.start)), (this.property = i); } } class I extends O { decode(e, t) { return !!O.prototype.decode.call(this, e, t); } encode(e) { return ( "boolean" == typeof e && (e = +e), O.prototype.encode.call(this, e) ); } constructor(e, t) { super(e, 1, t); } } class A extends n { getSpan(e, t) { let i = this.span; return 0 > i && (i = this.length.decode(e, t)), i; } decode(e, t) { void 0 === t && (t = 0); let i = this.span; return 0 > i && (i = this.length.decode(e, t)), e.slice(t, t + i); } encode(e, t, i) { let n = this.length; if ( (this.length instanceof a && (n = e.length), !(r.isBuffer(e) && n === e.length)) ) throw TypeError( s("Blob.encode", this) + " requires (length " + n + ") Buffer as src" ); if (i + n > t.length) throw RangeError("encoding overruns Buffer"); return ( t.write(e.toString("hex"), i, n, "hex"), this.length instanceof a && this.length.encode(n, t, i), n ); } constructor(e, t) { if ( !( (e instanceof a && e.isCount()) || (Number.isInteger(e) && 0 <= e) ) ) throw TypeError( "length must be positive integer or an unsigned integer ExternalLayout" ); let i = -1; e instanceof a || (i = e), super(i, t), (this.length = e); } } class z extends n { getSpan(e, t) { if (!r.isBuffer(e)) throw TypeError("b must be a Buffer"); void 0 === t && (t = 0); let i = t; for (; i < e.length && 0 !== e[i]; ) i += 1; return 1 + i - t; } decode(e, t, i) { void 0 === t && (t = 0); let r = this.getSpan(e, t); return e.slice(t, t + r - 1).toString("utf-8"); } encode(e, t, i) { void 0 === i && (i = 0), "string" != typeof e && (e = e.toString()); let n = new r(e, "utf8"), s = n.length; if (i + s > t.length) throw RangeError("encoding overruns Buffer"); return n.copy(t, i), (t[i + s] = 0), s + 1; } constructor(e) { super(-1, e); } } class D extends n { getSpan(e, t) { if (!r.isBuffer(e)) throw TypeError("b must be a Buffer"); return void 0 === t && (t = 0), e.length - t; } decode(e, t, i) { void 0 === t && (t = 0); let r = this.getSpan(e, t); if (0 <= this.maxSpan && this.maxSpan < r) throw RangeError("text length exceeds maxSpan"); return e.slice(t, t + r).toString("utf-8"); } encode(e, t, i) { void 0 === i && (i = 0), "string" != typeof e && (e = e.toString()); let n = new r(e, "utf8"), s = n.length; if (0 <= this.maxSpan && this.maxSpan < s) throw RangeError("text length exceeds maxSpan"); if (i + s > t.length) throw RangeError("encoding overruns Buffer"); return n.copy(t, i), s; } constructor(e, t) { if ( ("string" == typeof e && void 0 === t && ((t = e), (e = void 0)), void 0 === e) ) e = -1; else if (!Number.isInteger(e)) throw TypeError("maxSpan must be an integer"); super(-1, t), (this.maxSpan = e); } } class B extends n { decode(e, t, i) { return this.value; } encode(e, t, i) { return 0; } constructor(e, t) { super(0, t), (this.value = e); } } (t.ExternalLayout = a), (t.GreedyCount = o), (t.OffsetLayout = l), (t.UInt = c), (t.UIntBE = d), (t.Int = u), (t.IntBE = p), (t.Float = w), (t.FloatBE = b), (t.Double = S), (t.DoubleBE = E), (t.Sequence = x), (t.Structure = T), (t.UnionDiscriminator = C), (t.UnionLayoutDiscriminator = _), (t.Union = k), (t.VariantLayout = L), (t.BitStructure = M), (t.BitField = O), (t.Boolean = I), (t.Blob = A), (t.CString = z), (t.UTF8 = D), (t.Constant = B), (t.greedy = (e, t) => new o(e, t)), (t.offset = (e, t, i) => new l(e, t, i)), (t.u8 = (e) => new c(1, e)), (t.u16 = (e) => new c(2, e)), (t.u24 = (e) => new c(3, e)), (t.u32 = (e) => new c(4, e)), (t.u40 = (e) => new c(5, e)), (t.u48 = (e) => new c(6, e)), (t.nu64 = (e) => new m(e)), (t.u16be = (e) => new d(2, e)), (t.u24be = (e) => new d(3, e)), (t.u32be = (e) => new d(4, e)), (t.u40be = (e) => new d(5, e)), (t.u48be = (e) => new d(6, e)), (t.nu64be = (e) => new v(e)), (t.s8 = (e) => new u(1, e)), (t.s16 = (e) => new u(2, e)), (t.s24 = (e) => new u(3, e)), (t.s32 = (e) => new u(4, e)), (t.s40 = (e) => new u(5, e)), (t.s48 = (e) => new u(6, e)), (t.ns64 = (e) => new g(e)), (t.s16be = (e) => new p(2, e)), (t.s24be = (e) => new p(3, e)), (t.s32be = (e) => new p(4, e)), (t.s40be = (e) => new p(5, e)), (t.s48be = (e) => new p(6, e)), (t.ns64be = (e) => new y(e)), (t.f32 = (e) => new w(e)), (t.f32be = (e) => new b(e)), (t.f64 = (e) => new S(e)), (t.f64be = (e) => new E(e)), (t.struct = (e, t, i) => new T(e, t, i)), (t.bits = (e, t, i) => new M(e, t, i)), (t.seq = (e, t, i) => new x(e, t, i)), (t.union = (e, t, i) => new k(e, t, i)), (t.unionLayoutDiscriminator = (e, t) => new _(e, t)), (t.blob = (e, t) => new A(e, t)), (t.cstr = (e) => new z(e)), (t.utf8 = (e, t) => new D(e, t)), (t.const = (e, t) => new B(e, t)); }, 90222: function (e) { "use strict"; let t = RegExp("[\\p{Lu}]", "u"), i = RegExp("[\\p{Ll}]", "u"), r = RegExp("^[\\p{Lu}](?![\\p{Lu}])", "gu"), n = RegExp("([\\p{Alpha}\\p{N}_]|$)", "u"), s = /[_.\- ]+/, a = RegExp("^" + s.source), o = RegExp(s.source + n.source, "gu"), l = RegExp("\\d+" + n.source, "gu"), c = (e, r, n) => { let s = !1, a = !1, o = !1; for (let l = 0; l < e.length; l++) { let c = e[l]; s && t.test(c) ? ((e = e.slice(0, l) + "-" + e.slice(l)), (s = !1), (o = a), (a = !0), l++) : a && o && i.test(c) ? ((e = e.slice(0, l - 1) + "-" + e.slice(l - 1)), (o = a), (a = !1), (s = !0)) : ((s = r(c) === c && n(c) !== c), (o = a), (a = n(c) === c && r(c) !== c)); } return e; }, d = (e, t) => ((r.lastIndex = 0), e.replace(r, (e) => t(e))), u = (e, t) => ( (o.lastIndex = 0), (l.lastIndex = 0), e.replace(o, (e, i) => t(i)).replace(l, (e) => t(e)) ), p = (e, t) => { if (!("string" == typeof e || Array.isArray(e))) throw TypeError("Expected the input to be `string | string[]`"); if ( ((t = { pascalCase: !1, preserveConsecutiveUppercase: !1, ...t }), 0 === (e = Array.isArray(e) ? e .map((e) => e.trim()) .filter((e) => e.length) .join("-") : e.trim()).length) ) return ""; let i = !1 === t.locale ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(t.locale), r = !1 === t.locale ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(t.locale); return 1 === e.length ? t.pascalCase ? r(e) : i(e) : (e !== i(e) && (e = c(e, i, r)), (e = e.replace(a, "")), (e = t.preserveConsecutiveUppercase ? d(e, i) : i(e)), t.pascalCase && (e = r(e.charAt(0)) + e.slice(1)), u(e, r)); }; (e.exports = p), (e.exports.default = p); }, 50154: function (e, t, i) { "use strict"; var r = i(30590), n = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0, }, s = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0, }, a = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0, }, o = {}; function l(e) { return r.isMemo(e) ? a : o[e.$$typeof] || n; } (o[r.ForwardRef] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0, }), (o[r.Memo] = a); var c = Object.defineProperty, d = Object.getOwnPropertyNames, u = Object.getOwnPropertySymbols, p = Object.getOwnPropertyDescriptor, h = Object.getPrototypeOf, f = Object.prototype; e.exports = function e(t, i, r) { if ("string" != typeof i) { if (f) { var n = h(i); n && n !== f && e(t, n, r); } var a = d(i); u && (a = a.concat(u(i))); for (var o = l(t), m = l(i), v = 0; v < a.length; ++v) { var g = a[v]; if (!s[g] && !(r && r[g]) && !(m && m[g]) && !(o && o[g])) { var y = p(i, g); try { c(t, g, y); } catch (e) {} } } } return t; }; }, 31033: function (e, t, i) { "use strict"; var r = i(31793); function n() {} function s() {} (s.resetWarningCache = n), (e.exports = function () { function e(e, t, i, n, s, a) { if (a !== r) { var o = Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types" ); throw ((o.name = "Invariant Violation"), o); } } function t() { return e; } e.isRequired = e; var i = { array: e, bigint: e, bool: e, func: e, number: e, object: e, string: e, symbol: e, any: e, arrayOf: t, element: e, elementType: e, instanceOf: t, node: e, objectOf: t, oneOf: t, oneOfType: t, shape: t, exact: t, checkPropTypes: s, resetWarningCache: n, }; return (i.PropTypes = i), i; }); }, 53987: function (e, t, i) { "use strict"; e.exports = i(31033)(); }, 31793: function (e) { "use strict"; e.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; }, 69822: function (e, t, i) { "use strict"; i.d(t, { Z: function () { return b; }, }); var r, n, s = i(37801), a = i(53987), o = i.n(a), l = [ "sitekey", "onChange", "theme", "type", "tabindex", "onExpired", "onErrored", "size", "stoken", "grecaptcha", "badge", "hl", "isolated", ]; function c() { return (c = Object.assign ? Object.assign.bind() : function (e) { for (var t = 1; t < arguments.length; t++) { var i = arguments[t]; for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]); } return e; }).apply(this, arguments); } function d(e) { if (void 0 === e) throw ReferenceError( "this hasn't been initialised - super() hasn't been called" ); return e; } function u(e, t) { return (u = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) { return (e.__proto__ = t), e; })(e, t); } var p = (function (e) { function t() { var t; return ( ((t = e.call(this) || this).handleExpired = t.handleExpired.bind( d(t) )), (t.handleErrored = t.handleErrored.bind(d(t))), (t.handleChange = t.handleChange.bind(d(t))), (t.handleRecaptchaRef = t.handleRecaptchaRef.bind(d(t))), t ); } (t.prototype = Object.create(e.prototype)), (t.prototype.constructor = t), u(t, e); var i = t.prototype; return ( (i.getCaptchaFunction = function (e) { return this.props.grecaptcha ? this.props.grecaptcha.enterprise ? this.props.grecaptcha.enterprise[e] : this.props.grecaptcha[e] : null; }), (i.getValue = function () { var e = this.getCaptchaFunction("getResponse"); return e && void 0 !== this._widgetId ? e(this._widgetId) : null; }), (i.getWidgetId = function () { return this.props.grecaptcha && void 0 !== this._widgetId ? this._widgetId : null; }), (i.execute = function () { var e = this.getCaptchaFunction("execute"); if (e && void 0 !== this._widgetId) return e(this._widgetId); this._executeRequested = !0; }), (i.executeAsync = function () { var e = this; return new Promise(function (t, i) { (e.executionResolve = t), (e.executionReject = i), e.execute(); }); }), (i.reset = function () { var e = this.getCaptchaFunction("reset"); e && void 0 !== this._widgetId && e(this._widgetId); }), (i.forceReset = function () { var e = this.getCaptchaFunction("reset"); e && e(); }), (i.handleExpired = function () { this.props.onExpired ? this.props.onExpired() : this.handleChange(null); }), (i.handleErrored = function () { this.props.onErrored && this.props.onErrored(), this.executionReject && (this.executionReject(), delete this.executionResolve, delete this.executionReject); }), (i.handleChange = function (e) { this.props.onChange && this.props.onChange(e), this.executionResolve && (this.executionResolve(e), delete this.executionReject, delete this.executionResolve); }), (i.explicitRender = function () { var e = this.getCaptchaFunction("render"); if (e && void 0 === this._widgetId) { var t = document.createElement("div"); (this._widgetId = e(t, { sitekey: this.props.sitekey, callback: this.handleChange, theme: this.props.theme, type: this.props.type, tabindex: this.props.tabindex, "expired-callback": this.handleExpired, "error-callback": this.handleErrored, size: this.props.size, stoken: this.props.stoken, hl: this.props.hl, badge: this.props.badge, isolated: this.props.isolated, })), this.captcha.appendChild(t); } this._executeRequested && this.props.grecaptcha && void 0 !== this._widgetId && ((this._executeRequested = !1), this.execute()); }), (i.componentDidMount = function () { this.explicitRender(); }), (i.componentDidUpdate = function () { this.explicitRender(); }), (i.handleRecaptchaRef = function (e) { this.captcha = e; }), (i.render = function () { var e = this.props, t = (e.sitekey, e.onChange, e.theme, e.type, e.tabindex, e.onExpired, e.onErrored, e.size, e.stoken, e.grecaptcha, e.badge, e.hl, e.isolated, (function (e, t) { if (null == e) return {}; var i, r, n = {}, s = Object.keys(e); for (r = 0; r < s.length; r++) (i = s[r]), t.indexOf(i) >= 0 || (n[i] = e[i]); return n; })(e, l)); return s.createElement( "div", c({}, t, { ref: this.handleRecaptchaRef }) ); }), t ); })(s.Component); (p.displayName = "ReCAPTCHA"), (p.propTypes = { sitekey: o().string.isRequired, onChange: o().func, grecaptcha: o().object, theme: o().oneOf(["dark", "light"]), type: o().oneOf(["image", "audio"]), tabindex: o().number, onExpired: o().func, onErrored: o().func, size: o().oneOf(["compact", "normal", "invisible"]), stoken: o().string, hl: o().string, badge: o().oneOf(["bottomright", "bottomleft", "inline"]), isolated: o().bool, }), (p.defaultProps = { onChange: function () {}, theme: "light", type: "image", tabindex: 0, size: "normal", badge: "bottomright", }); var h = i(50154), f = i.n(h); function m() { return (m = Object.assign || function (e) { for (var t = 1; t < arguments.length; t++) { var i = arguments[t]; for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]); } return e; }).apply(this, arguments); } var v = {}, g = 0, y = "onloadcallback"; function w() { return window.recaptchaOptions || {}; } var b = ((r = function () { var e = w(), t = e.useRecaptchaNet ? "recaptcha.net" : "www.google.com"; return e.enterprise ? "https://" + t + "/recaptcha/enterprise.js?onload=" + y + "&render=explicit" : "https://" + t + "/recaptcha/api.js?onload=" + y + "&render=explicit"; }), (n = (n = { callbackName: y, globalName: "grecaptcha", attributes: w().nonce ? { nonce: w().nonce } : {}, }) || {}), function (e) { var t = e.displayName || e.name || "Component", i = (function (t) { function i(e, i) { var r; return ( ((r = t.call(this, e, i) || this).state = {}), (r.__scriptURL = ""), r ); } (i.prototype = Object.create(t.prototype)), (i.prototype.constructor = i), (i.__proto__ = t); var a = i.prototype; return ( (a.asyncScriptLoaderGetScriptLoaderID = function () { return ( this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + g++), this.__scriptLoaderID ); }), (a.setupScriptURL = function () { return ( (this.__scriptURL = "function" == typeof r ? r() : r), this.__scriptURL ); }), (a.asyncScriptLoaderHandleLoad = function (e) { var t = this; this.setState(e, function () { return ( t.props.asyncScriptOnLoad && t.props.asyncScriptOnLoad(t.state) ); }); }), (a.asyncScriptLoaderTriggerOnScriptLoaded = function () { var e = v[this.__scriptURL]; if (!e || !e.loaded) throw Error("Script is not loaded."); for (var t in e.observers) e.observers[t](e); delete window[n.callbackName]; }), (a.componentDidMount = function () { var e = this, t = this.setupScriptURL(), i = this.asyncScriptLoaderGetScriptLoaderID(), r = n, s = r.globalName, a = r.callbackName, o = r.scriptId; if ( (s && void 0 !== window[s] && (v[t] = { loaded: !0, observers: {} }), v[t]) ) { var l = v[t]; if (l && (l.loaded || l.errored)) { this.asyncScriptLoaderHandleLoad(l); return; } l.observers[i] = function (t) { return e.asyncScriptLoaderHandleLoad(t); }; return; } var c = {}; (c[i] = function (t) { return e.asyncScriptLoaderHandleLoad(t); }), (v[t] = { loaded: !1, observers: c }); var d = document.createElement("script"); for (var u in ((d.src = t), (d.async = !0), n.attributes)) d.setAttribute(u, n.attributes[u]); o && (d.id = o); var p = function (e) { if (v[t]) { var i = v[t].observers; for (var r in i) e(i[r]) && delete i[r]; } }; a && (window[a] = function () { return e.asyncScriptLoaderTriggerOnScriptLoaded(); }), (d.onload = function () { var e = v[t]; e && ((e.loaded = !0), p(function (t) { return !a && (t(e), !0); })); }), (d.onerror = function () { var e = v[t]; e && ((e.errored = !0), p(function (t) { return t(e), !0; })); }), document.body.appendChild(d); }), (a.componentWillUnmount = function () { var e = this.__scriptURL; if (!0 === n.removeOnUnmount) for ( var t = document.getElementsByTagName("script"), i = 0; i < t.length; i += 1 ) t[i].src.indexOf(e) > -1 && t[i].parentNode && t[i].parentNode.removeChild(t[i]); var r = v[e]; r && (delete r.observers[ this.asyncScriptLoaderGetScriptLoaderID() ], !0 === n.removeOnUnmount && delete v[e]); }), (a.render = function () { var t = n.globalName, i = this.props, r = (i.asyncScriptOnLoad, i.forwardedRef), a = (function (e, t) { if (null == e) return {}; var i, r, n = {}, s = Object.keys(e); for (r = 0; r < s.length; r++) t.indexOf((i = s[r])) >= 0 || (n[i] = e[i]); return n; })(i, ["asyncScriptOnLoad", "forwardedRef"]); return ( t && (a[t] = void 0 !== window[t] ? window[t] : void 0), (a.ref = r), (0, s.createElement)(e, a) ); }), i ); })(s.Component), a = (0, s.forwardRef)(function (e, t) { return (0, s.createElement)(i, m({}, e, { forwardedRef: t })); }); return ( (a.displayName = "AsyncScriptLoader(" + t + ")"), (a.propTypes = { asyncScriptOnLoad: o().func }), f()(a, e) ); })(p); }, 44167: function (e, t) { "use strict"; /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var i = "function" == typeof Symbol && Symbol.for, r = i ? Symbol.for("react.element") : 60103, n = i ? Symbol.for("react.portal") : 60106, s = i ? Symbol.for("react.fragment") : 60107, a = i ? Symbol.for("react.strict_mode") : 60108, o = i ? Symbol.for("react.profiler") : 60114, l = i ? Symbol.for("react.provider") : 60109, c = i ? Symbol.for("react.context") : 60110, d = i ? Symbol.for("react.async_mode") : 60111, u = i ? Symbol.for("react.concurrent_mode") : 60111, p = i ? Symbol.for("react.forward_ref") : 60112, h = i ? Symbol.for("react.suspense") : 60113, f = i ? Symbol.for("react.suspense_list") : 60120, m = i ? Symbol.for("react.memo") : 60115, v = i ? Symbol.for("react.lazy") : 60116, g = i ? Symbol.for("react.block") : 60121, y = i ? Symbol.for("react.fundamental") : 60117, w = i ? Symbol.for("react.responder") : 60118, b = i ? Symbol.for("react.scope") : 60119; function S(e) { if ("object" == typeof e && null !== e) { var t = e.$$typeof; switch (t) { case r: switch ((e = e.type)) { case d: case u: case s: case o: case a: case h: return e; default: switch ((e = e && e.$$typeof)) { case c: case p: case v: case m: case l: return e; default: return t; } } case n: return t; } } } function E(e) { return S(e) === u; } (t.AsyncMode = d), (t.ConcurrentMode = u), (t.ContextConsumer = c), (t.ContextProvider = l), (t.Element = r), (t.ForwardRef = p), (t.Fragment = s), (t.Lazy = v), (t.Memo = m), (t.Portal = n), (t.Profiler = o), (t.StrictMode = a), (t.Suspense = h), (t.isAsyncMode = function (e) { return E(e) || S(e) === d; }), (t.isConcurrentMode = E), (t.isContextConsumer = function (e) { return S(e) === c; }), (t.isContextProvider = function (e) { return S(e) === l; }), (t.isElement = function (e) { return "object" == typeof e && null !== e && e.$$typeof === r; }), (t.isForwardRef = function (e) { return S(e) === p; }), (t.isFragment = function (e) { return S(e) === s; }), (t.isLazy = function (e) { return S(e) === v; }), (t.isMemo = function (e) { return S(e) === m; }), (t.isPortal = function (e) { return S(e) === n; }), (t.isProfiler = function (e) { return S(e) === o; }), (t.isStrictMode = function (e) { return S(e) === a; }), (t.isSuspense = function (e) { return S(e) === h; }), (t.isValidElementType = function (e) { return ( "string" == typeof e || "function" == typeof e || e === s || e === u || e === o || e === a || e === h || e === f || ("object" == typeof e && null !== e && (e.$$typeof === v || e.$$typeof === m || e.$$typeof === l || e.$$typeof === c || e.$$typeof === p || e.$$typeof === y || e.$$typeof === w || e.$$typeof === b || e.$$typeof === g)) ); }), (t.typeOf = S); }, 30590: function (e, t, i) { "use strict"; e.exports = i(44167); }, 11411: function (e, t, i) { "use strict"; /** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var r = i(37801), n = "function" == typeof Object.is ? Object.is : function (e, t) { return ( (e === t && (0 !== e || 1 / e == 1 / t)) || (e != e && t != t) ); }, s = r.useState, a = r.useEffect, o = r.useLayoutEffect, l = r.useDebugValue; function c(e) { var t = e.getSnapshot; e = e.value; try { var i = t(); return !n(e, i); } catch (e) { return !0; } } var d = void 0 === window.document || void 0 === window.document.createElement ? function (e, t) { return t(); } : function (e, t) { var i = t(), r = s({ inst: { value: i, getSnapshot: t } }), n = r[0].inst, d = r[1]; return ( o( function () { (n.value = i), (n.getSnapshot = t), c(n) && d({ inst: n }); }, [e, i, t] ), a( function () { return ( c(n) && d({ inst: n }), e(function () { c(n) && d({ inst: n }); }) ); }, [e] ), l(i), i ); }; t.useSyncExternalStore = void 0 !== r.useSyncExternalStore ? r.useSyncExternalStore : d; }, 81331: function (e, t, i) { "use strict"; e.exports = i(11411); }, 17550: function () {}, 97325: function () {}, 74812: function () {}, 37608: function () {}, 74438: function (e) { e.exports = { style: { fontFamily: "'__jumbotron_a674c3', '__jumbotron_Fallback_a674c3'", }, className: "__className_a674c3", variable: "__variable_a674c3", }; }, 47157: function (e, t, i) { "use strict"; function r(e, t) { let i = (i, r) => { t && console.debug("[ANALYTICS]: track", i, r), e(i, r); }; return { trackHowToBuyClick: function () { i("howtobuy_form_click", {}); }, trackApproveFormClick: function (e) { i("approve_form_click", { ...e }); }, trackBuyFormSuccess: function (e) { i("buy_form_success", { ...e }); }, trackApproveFormRejected: function (e) { i("approve_form_rejected", { ...e }); }, trackBuyFormClick: function (e) { i("buy_form_click", { ...e }); }, trackWalletConnectFormClick: function (e) { i("walletconnect_form_click", { ...e }); }, trackWalletConnectHeadClick: function () { i("walletconnect_head_click", {}); }, trackApproveFormSuccess: function (e) { i("approve_form_success", { ...e }); }, trackSuccessPopup: function (e) { i("success_popup", { ...e }); }, trackSuccessOrder: function (e) { i("success_order", { ...e, usd_amount: e.value, transaction_id: e.transaction_id.toLocaleLowerCase(), address: "_".concat(e.address.toLocaleLowerCase()), }); }, trackSuccessPopupDetailsClick: function (e) { i("success_popup_details_click", { ...e }); }, trackSuccessPopupBuyMoreClick: function (e) { i("success_popup_buymore_click", { ...e }); }, trackSuccessPopupProfileClick: function (e) { i("success_popup_profile_click", { ...e }); }, trackWalletConnectHeadSuccess: function (e) { i("walletconnect_head_success", { walletName: e.walletName, network: e.network, }); }, trackWalletConnectFormSuccess: function (e) { i("walletconnect_form_success", { walletName: e.walletName, network: e.network, }); }, trackTermsDeclined: function (e) { i("terms_popup_decline", { address: "_".concat(e.toLocaleLowerCase()), }); }, trackTermsApproved: function (e) { i("terms_popup_approve", { address: "_".concat(e.toLocaleLowerCase()), }); }, trackWalletFormProfileCreated: function (e) { i("walletconnect_form_profile_success", { walletName: e.walletName, network: e.network, }); }, trackWalletHeadProfileCreated: function (e) { i("walletconnect_head_profile_success", { walletName: e.walletName, network: e.network, }); }, trackWalletConnectHeadAborted: function (e) { i("walletconnect_head_aborted", { walletName: e.message }); }, trackWalletConnectFormAborted: function (e) { i("walletconnect_form_aborted", { walletName: e.message }); }, trackRefferalLinkCopied: function (e, t) { i("ref_link_copied", { refCode: e.toLocaleLowerCase(), address: "_".concat(t.toLocaleLowerCase()), }); }, trackCurrencyClick: function () { i("form_currency_click", {}); }, trackCurrencyChangeFormOpen: function () { i("form_currency_change_open", {}); }, trackCurrencyChangeClick: function (e) { i("form_currency_change_click", { ...e }); }, trackConnectWalletClick: function (e) { i("connect_wallet_click", { ...e }); }, trackWalletConnectFormOpen: function (e) { i("wallet_connect_form_open", { place: e.place }); }, trackWalletConnectClickInfo: function (e) { i("wallet_connect_click_info", { place: e.place }); }, trackWalletConnectWalletFormOpen: function (e) { i("wallet_connect_wallet_form_open", { place: e.place, connect_type: e.connectType, wallet: e.wallet, wallet_detected: e.walletDetected, }); }, trackWalletConnectWalletChoose: function (e) { i("wallet_connect_wallet_choose", { place: e.place, wallet: e.wallet, }); }, trackWalletConnectExpandAllWallets: function (e) { i("wallet_connect_expand_all_wallets", { place: e.place }); }, trackWalletConnectInfoGetWallet: function (e) { i("wallet_connect_info_get_wallet", { place: e.place }); }, trackWalletConnectWalletGetWallet: function (e) { i("wallet_connect_wallet_get_wallet", { place: e.place, wallet: e.wallet, }); }, trackWalletConnectAborted: function (e) { i("wallet_connect_aborted", { place: e.place, wallet: e.wallet }); }, trackNewConnectSuccess: function (e) { i("wallet_new_connect_success", { place: e.place, connect_type: e.connectType, wallet: e.wallet, }); }, trackAuthorizedSuccess: function (e) { i("wallet_authorized_success", { place: e.place, connect_type: e.connectType, wallet: e.wallet, }); }, trackProfileClick: function () { i("profile_click", {}); }, trackMyProfileClickProfile: function () { i("my_profile_click_profile", {}); }, trackMyProfileClickLeaderboard: function () { i("my_profile_click_leaderboard", {}); }, trackMyProfileClickDisconnect: function () { i("my_profile_click_disconnect", {}); }, trackSignOut: function () { i("sign_out", {}); }, trackCardPaymentFlow: function (e) { i("card_payment_flow", { step: e.step }); }, trackCardPaymentFinished: function (e) { i("card_payment_finished", { status: e.status, usd_amount: e.usdAmount, message: e.message, }); }, trackBuyFormDeclineTransaction: function (e) { i("buy_form_decline_transaction", { network: e.network, currency: e.currency, usd_amount: e.amount, }); }, }; } i.d(t, { Z: function () { return r; }, }); }, 89750: function (e, t, i) { "use strict"; i.d(t, { X8: function () { return n.g; }, dy: function () { return a; }, }); var r = i(37801), n = i(48349), s = i(8106); function a(e) { var t, i; let { token: a, stage: o, selectedChain: l, discountPerStage: c, basePrice: d, tokenPrices: u, } = e, [p, h] = (0, r.useState)(""), [f, m] = (0, r.useState)(""), v = "BTC" === a.id || "SOL" === a.id, g = { BTC: "btc", SOL: "sol" }, { data: y } = (0, s.g)(v ? g[a.id] : l.nativeToken, { placeholderData: { ok: !0, data: v ? u.value[g[a.id]] : u.value[l.nativeToken], }, }), w = (function (e, t) { let i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 2, r = ((BigInt(e) * BigInt(10 ** i)) / BigInt(t)).toString(), n = r.length - i; return parseFloat(r.slice(0, n) + "." + r.slice(n)); })( (null == (t = null == y ? void 0 : y.data) ? void 0 : t.latestAnswer) || 1, 10 ** ((null == (i = null == y ? void 0 : y.data) ? void 0 : i.decimals) || 0) ), b = Number(p) * w, S = "native" === a.type ? b : Number(p), E = (e) => { let t = "custom" === a.type ? 2 : Math.min(a.decimals, 7), i = parseFloat( (0, n.a)( Number(o), (e && Number(e)) || 0, ("native" === a.type && w) || 1, c, d ).toFixed(t) ).toString(); h(0 === Number(i) ? "" : i), m(e); }; return ( (0, r.useEffect)(() => { E(f); }, [l, a]), { recalculateFromPay: (e) => { let t = ("native" === a.type && w) || 1, i = parseFloat( Math.floor( (0, n.c)(Number(o), (e && Number(e)) || 0, t, c, d) ).toFixed(0) ).toString(); h(e), m(0 === Number(i) ? "" : i); }, recalculateFromReceive: E, payAmount: p, payAmountUSD: S, receiveAmount: f, tokenPrice: w, } ); } i(35963); }, 92546: function (e, t, i) { "use strict"; function r(e) { return e.toLocaleString("en-US", { minimumFractionDigits: 0, maximumFractionDigits: 0, }); } function n(e) { var t; let i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 2, r = (null == (t = e.toString().split(".")[1]) ? void 0 : t.length) || 0; return e.toLocaleString("en-US", { minimumFractionDigits: 1, maximumFractionDigits: Math.min(r, i) || 1, }); } i.d(t, { $1: function () { return n; }, yI: function () { return r; }, }); }, 43078: function (e, t, i) { "use strict"; i.d(t, { e: function () { return l; }, }); var r = i(76653), n = i(67117), s = i(43757), a = i(40797), o = i(44341); async function l(e, t) { let { chainId: i, timeout: l = 0, ...c } = t, d = e.getClient({ chainId: i }), u = (0, o.s)(d, n.e, "waitForTransactionReceipt"), p = await u({ ...c, timeout: l }); if ("reverted" === p.status) { let e = (0, o.s)(d, s.f, "getTransaction"), t = await e({ hash: p.transactionHash }), i = (0, o.s)(d, a.RE, "call"), n = await i({ ...t, gasPrice: "eip1559" !== t.type ? t.gasPrice : void 0, maxFeePerGas: "eip1559" === t.type ? t.maxFeePerGas : void 0, maxPriorityFeePerGas: "eip1559" === t.type ? t.maxPriorityFeePerGas : void 0, }); throw Error((0, r.rR)("0x".concat(n.substring(138)))); } return { ...p, chainId: d.chain.id }; } }, 36498: function (e, t, i) { "use strict"; i.d(t, { L9: function () { return n; }, }); var r = (e) => { (window.__fathomClientQueue = window.__fathomClientQueue || []), window.__fathomClientQueue.push(e); }, n = (e, t) => { window.fathom ? window.fathom.trackEvent(e, t) : r({ type: "trackEvent", eventName: e, opts: t }); }; }, 55035: function (e, t, i) { "use strict"; i.d(t, { W_: function () { return s; }, tl: function () { return o; }, }), i(80225); var r = i(21846); function n(e, t, i, n) { return ( e.params.createElements && Object.keys(n).forEach((s) => { if (!i[s] && !0 === i.auto) { let a = (0, r.e)(e.el, ".".concat(n[s]))[0]; a || (((a = (0, r.c)("div", n[s])).className = n[s]), e.el.append(a)), (i[s] = a), (t[s] = a); } }), i ); } function s(e) { let { swiper: t, extendParams: i, on: s, emit: a } = e; function o(e) { let i; return e && "string" == typeof e && t.isElement && (i = t.el.querySelector(e) || t.hostEl.querySelector(e)) ? i : (e && ("string" == typeof e && (i = [...document.querySelectorAll(e)]), t.params.uniqueNavElements && "string" == typeof e && i && i.length > 1 && 1 === t.el.querySelectorAll(e).length ? (i = t.el.querySelector(e)) : i && 1 === i.length && (i = i[0])), e && !i) ? e : i; } function l(e, i) { let n = t.params.navigation; (e = (0, r.m)(e)).forEach((e) => { e && (e.classList[i ? "add" : "remove"](...n.disabledClass.split(" ")), "BUTTON" === e.tagName && (e.disabled = i), t.params.watchOverflow && t.enabled && e.classList[t.isLocked ? "add" : "remove"](n.lockClass)); }); } function c() { let { nextEl: e, prevEl: i } = t.navigation; if (t.params.loop) { l(i, !1), l(e, !1); return; } l(i, t.isBeginning && !t.params.rewind), l(e, t.isEnd && !t.params.rewind); } function d(e) { e.preventDefault(), (!t.isBeginning || t.params.loop || t.params.rewind) && (t.slidePrev(), a("navigationPrev")); } function u(e) { e.preventDefault(), (!t.isEnd || t.params.loop || t.params.rewind) && (t.slideNext(), a("navigationNext")); } function p() { let e = t.params.navigation; if ( ((t.params.navigation = n( t, t.originalParams.navigation, t.params.navigation, { nextEl: "swiper-button-next", prevEl: "swiper-button-prev" } )), !(e.nextEl || e.prevEl)) ) return; let i = o(e.nextEl), s = o(e.prevEl); Object.assign(t.navigation, { nextEl: i, prevEl: s }), (i = (0, r.m)(i)), (s = (0, r.m)(s)); let a = (i, r) => { i && i.addEventListener("click", "next" === r ? u : d), !t.enabled && i && i.classList.add(...e.lockClass.split(" ")); }; i.forEach((e) => a(e, "next")), s.forEach((e) => a(e, "prev")); } function h() { let { nextEl: e, prevEl: i } = t.navigation; (e = (0, r.m)(e)), (i = (0, r.m)(i)); let n = (e, i) => { e.removeEventListener("click", "next" === i ? u : d), e.classList.remove( ...t.params.navigation.disabledClass.split(" ") ); }; e.forEach((e) => n(e, "next")), i.forEach((e) => n(e, "prev")); } i({ navigation: { nextEl: null, prevEl: null, hideOnClick: !1, disabledClass: "swiper-button-disabled", hiddenClass: "swiper-button-hidden", lockClass: "swiper-button-lock", navigationDisabledClass: "swiper-navigation-disabled", }, }), (t.navigation = { nextEl: null, prevEl: null }), s("init", () => { !1 === t.params.navigation.enabled ? f() : (p(), c()); }), s("toEdge fromEdge lock unlock", () => { c(); }), s("destroy", () => { h(); }), s("enable disable", () => { let { nextEl: e, prevEl: i } = t.navigation; if (((e = (0, r.m)(e)), (i = (0, r.m)(i)), t.enabled)) { c(); return; } [...e, ...i] .filter((e) => !!e) .forEach((e) => e.classList.add(t.params.navigation.lockClass)); }), s("click", (e, i) => { let { nextEl: n, prevEl: s } = t.navigation; (n = (0, r.m)(n)), (s = (0, r.m)(s)); let o = i.target, l = s.includes(o) || n.includes(o); if (t.isElement && !l) { let e = i.path || (i.composedPath && i.composedPath()); e && (l = e.find((e) => n.includes(e) || s.includes(e))); } if (t.params.navigation.hideOnClick && !l) { let e; if ( t.pagination && t.params.pagination && t.params.pagination.clickable && (t.pagination.el === o || t.pagination.el.contains(o)) ) return; n.length ? (e = n[0].classList.contains(t.params.navigation.hiddenClass)) : s.length && (e = s[0].classList.contains( t.params.navigation.hiddenClass )), !0 === e ? a("navigationShow") : a("navigationHide"), [...n, ...s] .filter((e) => !!e) .forEach((e) => e.classList.toggle(t.params.navigation.hiddenClass) ); } }); let f = () => { t.el.classList.add( ...t.params.navigation.navigationDisabledClass.split(" ") ), h(); }; Object.assign(t.navigation, { enable: () => { t.el.classList.remove( ...t.params.navigation.navigationDisabledClass.split(" ") ), p(), c(); }, disable: f, update: c, init: p, destroy: h, }); } function a(e) { return ( void 0 === e && (e = ""), ".".concat( e .trim() .replace(/([\.:!+\/])/g, "\\$1") .replace(/ /g, ".") ) ); } function o(e) { let t, { swiper: i, extendParams: s, on: o, emit: l } = e, c = "swiper-pagination"; s({ pagination: { el: null, bulletElement: "span", clickable: !1, hideOnClick: !1, renderBullet: null, renderProgressbar: null, renderFraction: null, renderCustom: null, progressbarOpposite: !1, type: "bullets", dynamicBullets: !1, dynamicMainBullets: 1, formatFractionCurrent: (e) => e, formatFractionTotal: (e) => e, bulletClass: "".concat(c, "-bullet"), bulletActiveClass: "".concat(c, "-bullet-active"), modifierClass: "".concat(c, "-"), currentClass: "".concat(c, "-current"), totalClass: "".concat(c, "-total"), hiddenClass: "".concat(c, "-hidden"), progressbarFillClass: "".concat(c, "-progressbar-fill"), progressbarOppositeClass: "".concat(c, "-progressbar-opposite"), clickableClass: "".concat(c, "-clickable"), lockClass: "".concat(c, "-lock"), horizontalClass: "".concat(c, "-horizontal"), verticalClass: "".concat(c, "-vertical"), paginationDisabledClass: "".concat(c, "-disabled"), }, }), (i.pagination = { el: null, bullets: [] }); let d = 0; function u() { return ( !i.params.pagination.el || !i.pagination.el || (Array.isArray(i.pagination.el) && 0 === i.pagination.el.length) ); } function p(e, t) { let { bulletActiveClass: r } = i.params.pagination; e && (e = e[ "".concat("prev" === t ? "previous" : "next", "ElementSibling") ]) && (e.classList.add("".concat(r, "-").concat(t)), (e = e[ "".concat("prev" === t ? "previous" : "next", "ElementSibling") ]) && e.classList.add("".concat(r, "-").concat(t, "-").concat(t))); } function h(e) { let t = e.target.closest(a(i.params.pagination.bulletClass)); if (!t) return; e.preventDefault(); let n = (0, r.h)(t) * i.params.slidesPerGroup; if (i.params.loop) { var s, o, l; if (i.realIndex === n) return; let e = ((s = i.realIndex), (o = n), ((s %= l = i.slides.length), (o %= l) === s + 1) ? "next" : o === s - 1 ? "previous" : void 0); "next" === e ? i.slideNext() : "previous" === e ? i.slidePrev() : i.slideToLoop(n); } else i.slideTo(n); } function f() { let e, n; let s = i.rtl, o = i.params.pagination; if (u()) return; let c = i.pagination.el; c = (0, r.m)(c); let h = i.virtual && i.params.virtual.enabled ? i.virtual.slides.length : i.slides.length, f = i.params.loop ? Math.ceil(h / i.params.slidesPerGroup) : i.snapGrid.length; if ( (i.params.loop ? ((n = i.previousRealIndex || 0), (e = i.params.slidesPerGroup > 1 ? Math.floor(i.realIndex / i.params.slidesPerGroup) : i.realIndex)) : void 0 !== i.snapIndex ? ((e = i.snapIndex), (n = i.previousSnapIndex)) : ((n = i.previousIndex || 0), (e = i.activeIndex || 0)), "bullets" === o.type && i.pagination.bullets && i.pagination.bullets.length > 0) ) { let a, l, u; let h = i.pagination.bullets; if ( (o.dynamicBullets && ((t = (0, r.f)( h[0], i.isHorizontal() ? "width" : "height", !0 )), c.forEach((e) => { e.style[i.isHorizontal() ? "width" : "height"] = "".concat( t * (o.dynamicMainBullets + 4), "px" ); }), o.dynamicMainBullets > 1 && void 0 !== n && ((d += e - (n || 0)) > o.dynamicMainBullets - 1 ? (d = o.dynamicMainBullets - 1) : d < 0 && (d = 0)), (u = ((l = (a = Math.max(e - d, 0)) + (Math.min(h.length, o.dynamicMainBullets) - 1)) + a) / 2)), h.forEach((e) => { let t = [ ...[ "", "-next", "-next-next", "-prev", "-prev-prev", "-main", ].map((e) => "".concat(o.bulletActiveClass).concat(e)), ] .map((e) => "string" == typeof e && e.includes(" ") ? e.split(" ") : e ) .flat(); e.classList.remove(...t); }), c.length > 1) ) h.forEach((t) => { let n = (0, r.h)(t); n === e ? t.classList.add(...o.bulletActiveClass.split(" ")) : i.isElement && t.setAttribute("part", "bullet"), o.dynamicBullets && (n >= a && n <= l && t.classList.add( ..."".concat(o.bulletActiveClass, "-main").split(" ") ), n === a && p(t, "prev"), n === l && p(t, "next")); }); else { let t = h[e]; if ( (t && t.classList.add(...o.bulletActiveClass.split(" ")), i.isElement && h.forEach((t, i) => { t.setAttribute( "part", i === e ? "bullet-active" : "bullet" ); }), o.dynamicBullets) ) { let e = h[a], t = h[l]; for (let e = a; e <= l; e += 1) h[e] && h[e].classList.add( ..."".concat(o.bulletActiveClass, "-main").split(" ") ); p(e, "prev"), p(t, "next"); } } if (o.dynamicBullets) { let e = Math.min(h.length, o.dynamicMainBullets + 4), r = (t * e - t) / 2 - u * t, n = s ? "right" : "left"; h.forEach((e) => { e.style[i.isHorizontal() ? n : "top"] = "".concat(r, "px"); }); } } c.forEach((t, r) => { if ( ("fraction" === o.type && (t.querySelectorAll(a(o.currentClass)).forEach((t) => { t.textContent = o.formatFractionCurrent(e + 1); }), t.querySelectorAll(a(o.totalClass)).forEach((e) => { e.textContent = o.formatFractionTotal(f); })), "progressbar" === o.type) ) { let r; r = o.progressbarOpposite ? i.isHorizontal() ? "vertical" : "horizontal" : i.isHorizontal() ? "horizontal" : "vertical"; let n = (e + 1) / f, s = 1, l = 1; "horizontal" === r ? (s = n) : (l = n), t.querySelectorAll(a(o.progressbarFillClass)).forEach((e) => { (e.style.transform = "translate3d(0,0,0) scaleX(" .concat(s, ") scaleY(") .concat(l, ")")), (e.style.transitionDuration = "".concat( i.params.speed, "ms" )); }); } "custom" === o.type && o.renderCustom ? ((t.innerHTML = o.renderCustom(i, e + 1, f)), 0 === r && l("paginationRender", t)) : (0 === r && l("paginationRender", t), l("paginationUpdate", t)), i.params.watchOverflow && i.enabled && t.classList[i.isLocked ? "add" : "remove"](o.lockClass); }); } function m() { let e = i.params.pagination; if (u()) return; let t = i.virtual && i.params.virtual.enabled ? i.virtual.slides.length : i.grid && i.params.grid.rows > 1 ? i.slides.length / Math.ceil(i.params.grid.rows) : i.slides.length, n = i.pagination.el; n = (0, r.m)(n); let s = ""; if ("bullets" === e.type) { let r = i.params.loop ? Math.ceil(t / i.params.slidesPerGroup) : i.snapGrid.length; i.params.freeMode && i.params.freeMode.enabled && r > t && (r = t); for (let t = 0; t < r; t += 1) e.renderBullet ? (s += e.renderBullet.call(i, t, e.bulletClass)) : (s += "<" .concat(e.bulletElement, " ") .concat(i.isElement ? 'part="bullet"' : "", ' class="') .concat(e.bulletClass, '">")); } "fraction" === e.type && (s = e.renderFraction ? e.renderFraction.call(i, e.currentClass, e.totalClass) : '') + " / " + '')), "progressbar" === e.type && (s = e.renderProgressbar ? e.renderProgressbar.call(i, e.progressbarFillClass) : '')), (i.pagination.bullets = []), n.forEach((t) => { "custom" !== e.type && (t.innerHTML = s || ""), "bullets" === e.type && i.pagination.bullets.push( ...t.querySelectorAll(a(e.bulletClass)) ); }), "custom" !== e.type && l("paginationRender", n[0]); } function v() { let e; i.params.pagination = n( i, i.originalParams.pagination, i.params.pagination, { el: "swiper-pagination" } ); let t = i.params.pagination; t.el && ("string" == typeof t.el && i.isElement && (e = i.el.querySelector(t.el)), e || "string" != typeof t.el || (e = [...document.querySelectorAll(t.el)]), e || (e = t.el), e && 0 !== e.length && (i.params.uniqueNavElements && "string" == typeof t.el && Array.isArray(e) && e.length > 1 && (e = [...i.el.querySelectorAll(t.el)]).length > 1 && (e = e.filter((e) => (0, r.a)(e, ".swiper")[0] === i.el)[0]), Array.isArray(e) && 1 === e.length && (e = e[0]), Object.assign(i.pagination, { el: e }), (e = (0, r.m)(e)).forEach((e) => { "bullets" === t.type && t.clickable && e.classList.add(...(t.clickableClass || "").split(" ")), e.classList.add(t.modifierClass + t.type), e.classList.add( i.isHorizontal() ? t.horizontalClass : t.verticalClass ), "bullets" === t.type && t.dynamicBullets && (e.classList.add( "".concat(t.modifierClass).concat(t.type, "-dynamic") ), (d = 0), t.dynamicMainBullets < 1 && (t.dynamicMainBullets = 1)), "progressbar" === t.type && t.progressbarOpposite && e.classList.add(t.progressbarOppositeClass), t.clickable && e.addEventListener("click", h), i.enabled || e.classList.add(t.lockClass); }))); } function g() { let e = i.params.pagination; if (u()) return; let t = i.pagination.el; t && (t = (0, r.m)(t)).forEach((t) => { t.classList.remove(e.hiddenClass), t.classList.remove(e.modifierClass + e.type), t.classList.remove( i.isHorizontal() ? e.horizontalClass : e.verticalClass ), e.clickable && (t.classList.remove(...(e.clickableClass || "").split(" ")), t.removeEventListener("click", h)); }), i.pagination.bullets && i.pagination.bullets.forEach((t) => t.classList.remove(...e.bulletActiveClass.split(" ")) ); } o("changeDirection", () => { if (!i.pagination || !i.pagination.el) return; let e = i.params.pagination, { el: t } = i.pagination; (t = (0, r.m)(t)).forEach((t) => { t.classList.remove(e.horizontalClass, e.verticalClass), t.classList.add( i.isHorizontal() ? e.horizontalClass : e.verticalClass ); }); }), o("init", () => { !1 === i.params.pagination.enabled ? y() : (v(), m(), f()); }), o("activeIndexChange", () => { void 0 === i.snapIndex && f(); }), o("snapIndexChange", () => { f(); }), o("snapGridLengthChange", () => { m(), f(); }), o("destroy", () => { g(); }), o("enable disable", () => { let { el: e } = i.pagination; e && (e = (0, r.m)(e)).forEach((e) => e.classList[i.enabled ? "remove" : "add"]( i.params.pagination.lockClass ) ); }), o("lock unlock", () => { f(); }), o("click", (e, t) => { let n = t.target, s = (0, r.m)(i.pagination.el); if ( i.params.pagination.el && i.params.pagination.hideOnClick && s && s.length > 0 && !n.classList.contains(i.params.pagination.bulletClass) ) { if ( i.navigation && ((i.navigation.nextEl && n === i.navigation.nextEl) || (i.navigation.prevEl && n === i.navigation.prevEl)) ) return; !0 === s[0].classList.contains(i.params.pagination.hiddenClass) ? l("paginationShow") : l("paginationHide"), s.forEach((e) => e.classList.toggle(i.params.pagination.hiddenClass) ); } }); let y = () => { i.el.classList.add(i.params.pagination.paginationDisabledClass); let { el: e } = i.pagination; e && (e = (0, r.m)(e)).forEach((e) => e.classList.add(i.params.pagination.paginationDisabledClass) ), g(); }; Object.assign(i.pagination, { enable: () => { i.el.classList.remove(i.params.pagination.paginationDisabledClass); let { el: e } = i.pagination; e && (e = (0, r.m)(e)).forEach((e) => e.classList.remove(i.params.pagination.paginationDisabledClass) ), v(), m(), f(); }, disable: y, render: m, update: f, init: v, destroy: g, }); } }, 80225: function (e, t, i) { "use strict"; function r(e) { return ( null !== e && "object" == typeof e && "constructor" in e && e.constructor === Object ); } function n(e, t) { void 0 === e && (e = {}), void 0 === t && (t = {}), Object.keys(t).forEach((i) => { void 0 === e[i] ? (e[i] = t[i]) : r(t[i]) && r(e[i]) && Object.keys(t[i]).length > 0 && n(e[i], t[i]); }); } i.d(t, { a: function () { return l; }, g: function () { return a; }, }); let s = { body: {}, addEventListener() {}, removeEventListener() {}, activeElement: { blur() {}, nodeName: "" }, querySelector: () => null, querySelectorAll: () => [], getElementById: () => null, createEvent: () => ({ initEvent() {} }), createElement: () => ({ children: [], childNodes: [], style: {}, setAttribute() {}, getElementsByTagName: () => [], }), createElementNS: () => ({}), importNode: () => null, location: { hash: "", host: "", hostname: "", href: "", origin: "", pathname: "", protocol: "", search: "", }, }; function a() { let e = "undefined" != typeof document ? document : {}; return n(e, s), e; } let o = { document: s, navigator: { userAgent: "" }, location: { hash: "", host: "", hostname: "", href: "", origin: "", pathname: "", protocol: "", search: "", }, history: { replaceState() {}, pushState() {}, go() {}, back() {} }, CustomEvent: function () { return this; }, addEventListener() {}, removeEventListener() {}, getComputedStyle: () => ({ getPropertyValue: () => "" }), Image() {}, Date() {}, screen: {}, setTimeout() {}, clearTimeout() {}, matchMedia: () => ({}), requestAnimationFrame: (e) => "undefined" == typeof setTimeout ? (e(), null) : setTimeout(e, 0), cancelAnimationFrame(e) { "undefined" != typeof setTimeout && clearTimeout(e); }, }; function l() { let e = window; return n(e, o), e; } }, 21846: function (e, t, i) { "use strict"; i.d(t, { a: function () { return w; }, c: function () { return f; }, d: function () { return a; }, e: function () { return u; }, f: function () { return b; }, h: function () { return y; }, j: function () { return o; }, m: function () { return S; }, n: function () { return s; }, p: function () { return g; }, q: function () { return v; }, r: function () { return m; }, s: function () { return c; }, t: function () { return d; }, u: function () { return h; }, v: function () { return p; }, w: function () { return function e() { let t = Object(arguments.length <= 0 ? void 0 : arguments[0]), i = ["__proto__", "constructor", "prototype"]; for (let r = 1; r < arguments.length; r += 1) { let n = r < 0 || arguments.length <= r ? void 0 : arguments[r]; if ( null != n && (void 0 !== window.HTMLElement ? !(n instanceof HTMLElement) : !n || (1 !== n.nodeType && 11 !== n.nodeType)) ) { let r = Object.keys(Object(n)).filter((e) => 0 > i.indexOf(e)); for (let i = 0, s = r.length; i < s; i += 1) { let s = r[i], a = Object.getOwnPropertyDescriptor(n, s); void 0 !== a && a.enumerable && (l(t[s]) && l(n[s]) ? n[s].__swiper__ ? (t[s] = n[s]) : e(t[s], n[s]) : !l(t[s]) && l(n[s]) ? ((t[s] = {}), n[s].__swiper__ ? (t[s] = n[s]) : e(t[s], n[s])) : (t[s] = n[s])); } } } return t; }; }, x: function () { return n; }, }); var r = i(80225); function n(e) { Object.keys(e).forEach((t) => { try { e[t] = null; } catch (e) {} try { delete e[t]; } catch (e) {} }); } function s(e, t) { return void 0 === t && (t = 0), setTimeout(e, t); } function a() { return Date.now(); } function o(e, t) { let i, n, s; void 0 === t && (t = "x"); let a = (0, r.a)(), o = (function (e) { let t; let i = (0, r.a)(); return ( i.getComputedStyle && (t = i.getComputedStyle(e, null)), !t && e.currentStyle && (t = e.currentStyle), t || (t = e.style), t ); })(e); return ( a.WebKitCSSMatrix ? ((n = o.transform || o.webkitTransform).split(",").length > 6 && (n = n .split(", ") .map((e) => e.replace(",", ".")) .join(", ")), (s = new a.WebKitCSSMatrix("none" === n ? "" : n))) : (i = (s = o.MozTransform || o.OTransform || o.MsTransform || o.msTransform || o.transform || o .getPropertyValue("transform") .replace("translate(", "matrix(1, 0, 0, 1,")) .toString() .split(",")), "x" === t && (n = a.WebKitCSSMatrix ? s.m41 : 16 === i.length ? parseFloat(i[12]) : parseFloat(i[4])), "y" === t && (n = a.WebKitCSSMatrix ? s.m42 : 16 === i.length ? parseFloat(i[13]) : parseFloat(i[5])), n || 0 ); } function l(e) { return ( "object" == typeof e && null !== e && e.constructor && "Object" === Object.prototype.toString.call(e).slice(8, -1) ); } function c(e, t, i) { e.style.setProperty(t, i); } function d(e) { let t, { swiper: i, targetPosition: n, side: s } = e, a = (0, r.a)(), o = -i.translate, l = null, c = i.params.speed; (i.wrapperEl.style.scrollSnapType = "none"), a.cancelAnimationFrame(i.cssModeFrameID); let d = n > o ? "next" : "prev", u = (e, t) => ("next" === d && e >= t) || ("prev" === d && e <= t), p = () => { (t = new Date().getTime()), null === l && (l = t); let e = o + (0.5 - Math.cos(Math.max(Math.min((t - l) / c, 1), 0) * Math.PI) / 2) * (n - o); if ( (u(e, n) && (e = n), i.wrapperEl.scrollTo({ [s]: e }), u(e, n)) ) { (i.wrapperEl.style.overflow = "hidden"), (i.wrapperEl.style.scrollSnapType = ""), setTimeout(() => { (i.wrapperEl.style.overflow = ""), i.wrapperEl.scrollTo({ [s]: e }); }), a.cancelAnimationFrame(i.cssModeFrameID); return; } i.cssModeFrameID = a.requestAnimationFrame(p); }; p(); } function u(e, t) { void 0 === t && (t = ""); let i = [...e.children]; return (e instanceof HTMLSlotElement && i.push(...e.assignedElements()), t) ? i.filter((e) => e.matches(t)) : i; } function p(e, t) { let i = t.contains(e); return !i && t instanceof HTMLSlotElement ? [...t.assignedElements()].includes(e) : i; } function h(e) { try { console.warn(e); return; } catch (e) {} } function f(e, t) { var i; void 0 === t && (t = []); let r = document.createElement(e); return ( r.classList.add( ...(Array.isArray(t) ? t : (void 0 === (i = t) && (i = ""), i .trim() .split(" ") .filter((e) => !!e.trim()))) ), r ); } function m(e, t) { let i = []; for (; e.previousElementSibling; ) { let r = e.previousElementSibling; t ? r.matches(t) && i.push(r) : i.push(r), (e = r); } return i; } function v(e, t) { let i = []; for (; e.nextElementSibling; ) { let r = e.nextElementSibling; t ? r.matches(t) && i.push(r) : i.push(r), (e = r); } return i; } function g(e, t) { return (0, r.a)().getComputedStyle(e, null).getPropertyValue(t); } function y(e) { let t, i = e; if (i) { for (t = 0; null !== (i = i.previousSibling); ) 1 === i.nodeType && (t += 1); return t; } } function w(e, t) { let i = [], r = e.parentElement; for (; r; ) t ? r.matches(t) && i.push(r) : i.push(r), (r = r.parentElement); return i; } function b(e, t, i) { let n = (0, r.a)(); return i ? e["width" === t ? "offsetWidth" : "offsetHeight"] + parseFloat( n .getComputedStyle(e, null) .getPropertyValue( "width" === t ? "margin-right" : "margin-top" ) ) + parseFloat( n .getComputedStyle(e, null) .getPropertyValue( "width" === t ? "margin-left" : "margin-bottom" ) ) : e.offsetWidth; } function S(e) { return (Array.isArray(e) ? e : [e]).filter((e) => !!e); } }, 79547: function (e, t, i) { "use strict"; let r, n, s; i.d(t, { tq: function () { return U; }, o5: function () { return q; }, }); var a = i(37801), o = i(80225), l = i(21846); function c() { return ( r || (r = (function () { let e = (0, o.a)(), t = (0, o.g)(); return { smoothScroll: t.documentElement && t.documentElement.style && "scrollBehavior" in t.documentElement.style, touch: !!( "ontouchstart" in e || (e.DocumentTouch && t instanceof e.DocumentTouch) ), }; })()), r ); } function d(e) { return ( void 0 === e && (e = {}), n || (n = (function (e) { let { userAgent: t } = void 0 === e ? {} : e, i = c(), r = (0, o.a)(), n = r.navigator.platform, s = t || r.navigator.userAgent, a = { ios: !1, android: !1 }, l = r.screen.width, d = r.screen.height, u = s.match(/(Android);?[\s\/]+([\d.]+)?/), p = s.match(/(iPad).*OS\s([\d_]+)/), h = s.match(/(iPod)(.*OS\s([\d_]+))?/), f = !p && s.match(/(iPhone\sOS|iOS)\s([\d_]+)/), m = "MacIntel" === n; return ( !p && m && i.touch && [ "1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810", ].indexOf("".concat(l, "x").concat(d)) >= 0 && ((p = s.match(/(Version)\/([\d.]+)/)) || (p = [0, 1, "13_0_0"]), (m = !1)), u && "Win32" !== n && ((a.os = "android"), (a.android = !0)), (p || f || h) && ((a.os = "ios"), (a.ios = !0)), a ); })(e)), n ); } let u = (e, t, i) => { t && !e.classList.contains(i) ? e.classList.add(i) : !t && e.classList.contains(i) && e.classList.remove(i); }, p = (e, t, i) => { t && !e.classList.contains(i) ? e.classList.add(i) : !t && e.classList.contains(i) && e.classList.remove(i); }, h = (e, t) => { if (!e || e.destroyed || !e.params) return; let i = t.closest( e.isElement ? "swiper-slide" : ".".concat(e.params.slideClass) ); if (i) { let t = i.querySelector(".".concat(e.params.lazyPreloaderClass)); !t && e.isElement && (i.shadowRoot ? (t = i.shadowRoot.querySelector( ".".concat(e.params.lazyPreloaderClass) )) : requestAnimationFrame(() => { i.shadowRoot && (t = i.shadowRoot.querySelector( ".".concat(e.params.lazyPreloaderClass) )) && t.remove(); })), t && t.remove(); } }, f = (e, t) => { if (!e.slides[t]) return; let i = e.slides[t].querySelector('[loading="lazy"]'); i && i.removeAttribute("loading"); }, m = (e) => { if (!e || e.destroyed || !e.params) return; let t = e.params.lazyPreloadPrevNext, i = e.slides.length; if (!i || !t || t < 0) return; t = Math.min(t, i); let r = "auto" === e.params.slidesPerView ? e.slidesPerViewDynamic() : Math.ceil(e.params.slidesPerView), n = e.activeIndex; if (e.params.grid && e.params.grid.rows > 1) { let i = [n - t]; i.push(...Array.from({ length: t }).map((e, t) => n + r + t)), e.slides.forEach((t, r) => { i.includes(t.column) && f(e, r); }); return; } let s = n + r - 1; if (e.params.rewind || e.params.loop) for (let r = n - t; r <= s + t; r += 1) { let t = ((r % i) + i) % i; (t < n || t > s) && f(e, t); } else for ( let r = Math.max(n - t, 0); r <= Math.min(s + t, i - 1); r += 1 ) r !== n && (r > s || r < n) && f(e, r); }; function v(e) { let { swiper: t, runCallbacks: i, direction: r, step: n } = e, { activeIndex: s, previousIndex: a } = t, o = r; if ( (o || (o = s > a ? "next" : s < a ? "prev" : "reset"), t.emit("transition".concat(n)), i && s !== a) ) { if ("reset" === o) { t.emit("slideResetTransition".concat(n)); return; } t.emit("slideChangeTransition".concat(n)), "next" === o ? t.emit("slideNextTransition".concat(n)) : t.emit("slidePrevTransition".concat(n)); } } function g(e, t, i) { let r = (0, o.a)(), { params: n } = e, s = n.edgeSwipeDetection, a = n.edgeSwipeThreshold; return ( !s || (!(i <= a) && !(i >= r.innerWidth - a)) || ("prevent" === s && (t.preventDefault(), !0)) ); } function y(e) { let t = (0, o.g)(), i = e; i.originalEvent && (i = i.originalEvent); let r = this.touchEventsData; if ("pointerdown" === i.type) { if (null !== r.pointerId && r.pointerId !== i.pointerId) return; r.pointerId = i.pointerId; } else "touchstart" === i.type && 1 === i.targetTouches.length && (r.touchId = i.targetTouches[0].identifier); if ("touchstart" === i.type) { g(this, i, i.targetTouches[0].pageX); return; } let { params: n, touches: s, enabled: a } = this; if ( !a || (!n.simulateTouch && "mouse" === i.pointerType) || (this.animating && n.preventInteractionOnTransition) ) return; !this.animating && n.cssMode && n.loop && this.loopFix(); let c = i.target; if ( ("wrapper" === n.touchEventsTarget && !(0, l.v)(c, this.wrapperEl)) || ("which" in i && 3 === i.which) || ("button" in i && i.button > 0) || (r.isTouched && r.isMoved) ) return; let d = !!n.noSwipingClass && "" !== n.noSwipingClass, u = i.composedPath ? i.composedPath() : i.path; d && i.target && i.target.shadowRoot && u && (c = u[0]); let p = n.noSwipingSelector ? n.noSwipingSelector : ".".concat(n.noSwipingClass), h = !!(i.target && i.target.shadowRoot); if ( n.noSwiping && (h ? (function (e, t) { return ( void 0 === t && (t = this), (function t(i) { if (!i || i === (0, o.g)() || i === (0, o.a)()) return null; i.assignedSlot && (i = i.assignedSlot); let r = i.closest(e); return r || i.getRootNode ? r || t(i.getRootNode().host) : null; })(t) ); })(p, c) : c.closest(p)) ) { this.allowClick = !0; return; } if (n.swipeHandler && !c.closest(n.swipeHandler)) return; (s.currentX = i.pageX), (s.currentY = i.pageY); let f = s.currentX, m = s.currentY; if (!g(this, i, f)) return; Object.assign(r, { isTouched: !0, isMoved: !1, allowTouchCallbacks: !0, isScrolling: void 0, startMoving: void 0, }), (s.startX = f), (s.startY = m), (r.touchStartTime = (0, l.d)()), (this.allowClick = !0), this.updateSize(), (this.swipeDirection = void 0), n.threshold > 0 && (r.allowThresholdMove = !1); let v = !0; c.matches(r.focusableElements) && ((v = !1), "SELECT" === c.nodeName && (r.isTouched = !1)), t.activeElement && t.activeElement.matches(r.focusableElements) && t.activeElement !== c && ("mouse" === i.pointerType || ("mouse" !== i.pointerType && !c.matches(r.focusableElements))) && t.activeElement.blur(); let y = v && this.allowTouchMove && n.touchStartPreventDefault; (n.touchStartForcePreventDefault || y) && !c.isContentEditable && i.preventDefault(), n.freeMode && n.freeMode.enabled && this.freeMode && this.animating && !n.cssMode && this.freeMode.onTouchStart(), this.emit("touchStart", i); } function w(e) { let t, i; let r = (0, o.g)(), n = this.touchEventsData, { params: s, touches: a, rtlTranslate: c, enabled: d } = this; if (!d || (!s.simulateTouch && "mouse" === e.pointerType)) return; let u = e; if ( (u.originalEvent && (u = u.originalEvent), "pointermove" === u.type && (null !== n.touchId || u.pointerId !== n.pointerId)) ) return; if ("touchmove" === u.type) { if ( !(t = [...u.changedTouches].filter( (e) => e.identifier === n.touchId )[0]) || t.identifier !== n.touchId ) return; } else t = u; if (!n.isTouched) { n.startMoving && n.isScrolling && this.emit("touchMoveOpposite", u); return; } let p = t.pageX, h = t.pageY; if (u.preventedByNestedSwiper) { (a.startX = p), (a.startY = h); return; } if (!this.allowTouchMove) { u.target.matches(n.focusableElements) || (this.allowClick = !1), n.isTouched && (Object.assign(a, { startX: p, startY: h, currentX: p, currentY: h, }), (n.touchStartTime = (0, l.d)())); return; } if (s.touchReleaseOnEdges && !s.loop) { if (this.isVertical()) { if ( (h < a.startY && this.translate <= this.maxTranslate()) || (h > a.startY && this.translate >= this.minTranslate()) ) { (n.isTouched = !1), (n.isMoved = !1); return; } } else if ( (p < a.startX && this.translate <= this.maxTranslate()) || (p > a.startX && this.translate >= this.minTranslate()) ) return; } if ( (r.activeElement && r.activeElement.matches(n.focusableElements) && r.activeElement !== u.target && "mouse" !== u.pointerType && r.activeElement.blur(), r.activeElement && u.target === r.activeElement && u.target.matches(n.focusableElements)) ) { (n.isMoved = !0), (this.allowClick = !1); return; } n.allowTouchCallbacks && this.emit("touchMove", u), (a.previousX = a.currentX), (a.previousY = a.currentY), (a.currentX = p), (a.currentY = h); let f = a.currentX - a.startX, m = a.currentY - a.startY; if ( this.params.threshold && Math.sqrt(f ** 2 + m ** 2) < this.params.threshold ) return; if (void 0 === n.isScrolling) { let e; (this.isHorizontal() && a.currentY === a.startY) || (this.isVertical() && a.currentX === a.startX) ? (n.isScrolling = !1) : f * f + m * m >= 25 && ((e = (180 * Math.atan2(Math.abs(m), Math.abs(f))) / Math.PI), (n.isScrolling = this.isHorizontal() ? e > s.touchAngle : 90 - e > s.touchAngle)); } if ( (n.isScrolling && this.emit("touchMoveOpposite", u), void 0 === n.startMoving && (a.currentX !== a.startX || a.currentY !== a.startY) && (n.startMoving = !0), n.isScrolling || ("touchmove" === u.type && n.preventTouchMoveFromPointerMove)) ) { n.isTouched = !1; return; } if (!n.startMoving) return; (this.allowClick = !1), !s.cssMode && u.cancelable && u.preventDefault(), s.touchMoveStopPropagation && !s.nested && u.stopPropagation(); let v = this.isHorizontal() ? f : m, g = this.isHorizontal() ? a.currentX - a.previousX : a.currentY - a.previousY; s.oneWayMovement && ((v = Math.abs(v) * (c ? 1 : -1)), (g = Math.abs(g) * (c ? 1 : -1))), (a.diff = v), (v *= s.touchRatio), c && ((v = -v), (g = -g)); let y = this.touchesDirection; (this.swipeDirection = v > 0 ? "prev" : "next"), (this.touchesDirection = g > 0 ? "prev" : "next"); let w = this.params.loop && !s.cssMode, b = ("next" === this.touchesDirection && this.allowSlideNext) || ("prev" === this.touchesDirection && this.allowSlidePrev); if (!n.isMoved) { if ( (w && b && this.loopFix({ direction: this.swipeDirection }), (n.startTranslate = this.getTranslate()), this.setTransition(0), this.animating) ) { let e = new window.CustomEvent("transitionend", { bubbles: !0, cancelable: !0, detail: { bySwiperTouchMove: !0 }, }); this.wrapperEl.dispatchEvent(e); } (n.allowMomentumBounce = !1), s.grabCursor && (!0 === this.allowSlideNext || !0 === this.allowSlidePrev) && this.setGrabCursor(!0), this.emit("sliderFirstMove", u); } if ( (new Date().getTime(), n.isMoved && n.allowThresholdMove && y !== this.touchesDirection && w && b && Math.abs(v) >= 1) ) { Object.assign(a, { startX: p, startY: h, currentX: p, currentY: h, startTranslate: n.currentTranslate, }), (n.loopSwapReset = !0), (n.startTranslate = n.currentTranslate); return; } this.emit("sliderMove", u), (n.isMoved = !0), (n.currentTranslate = v + n.startTranslate); let S = !0, E = s.resistanceRatio; if ( (s.touchReleaseOnEdges && (E = 0), v > 0 ? (w && b && !i && n.allowThresholdMove && n.currentTranslate > (s.centeredSlides ? this.minTranslate() - this.slidesSizesGrid[this.activeIndex + 1] - ("auto" !== s.slidesPerView && this.slides.length - s.slidesPerView >= 2 ? this.slidesSizesGrid[this.activeIndex + 1] + this.params.spaceBetween : 0) - this.params.spaceBetween : this.minTranslate()) && this.loopFix({ direction: "prev", setTranslate: !0, activeSlideIndex: 0, }), n.currentTranslate > this.minTranslate() && ((S = !1), s.resistance && (n.currentTranslate = this.minTranslate() - 1 + (-this.minTranslate() + n.startTranslate + v) ** E))) : v < 0 && (w && b && !i && n.allowThresholdMove && n.currentTranslate < (s.centeredSlides ? this.maxTranslate() + this.slidesSizesGrid[this.slidesSizesGrid.length - 1] + this.params.spaceBetween + ("auto" !== s.slidesPerView && this.slides.length - s.slidesPerView >= 2 ? this.slidesSizesGrid[ this.slidesSizesGrid.length - 1 ] + this.params.spaceBetween : 0) : this.maxTranslate()) && this.loopFix({ direction: "next", setTranslate: !0, activeSlideIndex: this.slides.length - ("auto" === s.slidesPerView ? this.slidesPerViewDynamic() : Math.ceil(parseFloat(s.slidesPerView, 10))), }), n.currentTranslate < this.maxTranslate() && ((S = !1), s.resistance && (n.currentTranslate = this.maxTranslate() + 1 - (this.maxTranslate() - n.startTranslate - v) ** E))), S && (u.preventedByNestedSwiper = !0), !this.allowSlideNext && "next" === this.swipeDirection && n.currentTranslate < n.startTranslate && (n.currentTranslate = n.startTranslate), !this.allowSlidePrev && "prev" === this.swipeDirection && n.currentTranslate > n.startTranslate && (n.currentTranslate = n.startTranslate), this.allowSlidePrev || this.allowSlideNext || (n.currentTranslate = n.startTranslate), s.threshold > 0) ) { if (Math.abs(v) > s.threshold || n.allowThresholdMove) { if (!n.allowThresholdMove) { (n.allowThresholdMove = !0), (a.startX = a.currentX), (a.startY = a.currentY), (n.currentTranslate = n.startTranslate), (a.diff = this.isHorizontal() ? a.currentX - a.startX : a.currentY - a.startY); return; } } else { n.currentTranslate = n.startTranslate; return; } } s.followFinger && !s.cssMode && (((s.freeMode && s.freeMode.enabled && this.freeMode) || s.watchSlidesProgress) && (this.updateActiveIndex(), this.updateSlidesClasses()), s.freeMode && s.freeMode.enabled && this.freeMode && this.freeMode.onTouchMove(), this.updateProgress(n.currentTranslate), this.setTranslate(n.currentTranslate)); } function b(e) { let t, i; let r = this, n = r.touchEventsData, s = e; if ( (s.originalEvent && (s = s.originalEvent), "touchend" === s.type || "touchcancel" === s.type) ) { if ( !(t = [...s.changedTouches].filter( (e) => e.identifier === n.touchId )[0]) || t.identifier !== n.touchId ) return; } else { if (null !== n.touchId || s.pointerId !== n.pointerId) return; t = s; } if ( [ "pointercancel", "pointerout", "pointerleave", "contextmenu", ].includes(s.type) && !( ["pointercancel", "contextmenu"].includes(s.type) && (r.browser.isSafari || r.browser.isWebView) ) ) return; (n.pointerId = null), (n.touchId = null); let { params: a, touches: o, rtlTranslate: c, slidesGrid: d, enabled: u, } = r; if (!u || (!a.simulateTouch && "mouse" === s.pointerType)) return; if ( (n.allowTouchCallbacks && r.emit("touchEnd", s), (n.allowTouchCallbacks = !1), !n.isTouched) ) { n.isMoved && a.grabCursor && r.setGrabCursor(!1), (n.isMoved = !1), (n.startMoving = !1); return; } a.grabCursor && n.isMoved && n.isTouched && (!0 === r.allowSlideNext || !0 === r.allowSlidePrev) && r.setGrabCursor(!1); let p = (0, l.d)(), h = p - n.touchStartTime; if (r.allowClick) { let e = s.path || (s.composedPath && s.composedPath()); r.updateClickedSlide((e && e[0]) || s.target, e), r.emit("tap click", s), h < 300 && p - n.lastClickTime < 300 && r.emit("doubleTap doubleClick", s); } if ( ((n.lastClickTime = (0, l.d)()), (0, l.n)(() => { r.destroyed || (r.allowClick = !0); }), !n.isTouched || !n.isMoved || !r.swipeDirection || (0 === o.diff && !n.loopSwapReset) || (n.currentTranslate === n.startTranslate && !n.loopSwapReset)) ) { (n.isTouched = !1), (n.isMoved = !1), (n.startMoving = !1); return; } if ( ((n.isTouched = !1), (n.isMoved = !1), (n.startMoving = !1), (i = a.followFinger ? c ? r.translate : -r.translate : -n.currentTranslate), a.cssMode) ) return; if (a.freeMode && a.freeMode.enabled) { r.freeMode.onTouchEnd({ currentPos: i }); return; } let f = i >= -r.maxTranslate() && !r.params.loop, m = 0, v = r.slidesSizesGrid[0]; for ( let e = 0; e < d.length; e += e < a.slidesPerGroupSkip ? 1 : a.slidesPerGroup ) { let t = e < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup; void 0 !== d[e + t] ? (f || (i >= d[e] && i < d[e + t])) && ((m = e), (v = d[e + t] - d[e])) : (f || i >= d[e]) && ((m = e), (v = d[d.length - 1] - d[d.length - 2])); } let g = null, y = null; a.rewind && (r.isBeginning ? (y = a.virtual && a.virtual.enabled && r.virtual ? r.virtual.slides.length - 1 : r.slides.length - 1) : r.isEnd && (g = 0)); let w = (i - d[m]) / v, b = m < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup; if (h > a.longSwipesMs) { if (!a.longSwipes) { r.slideTo(r.activeIndex); return; } "next" === r.swipeDirection && (w >= a.longSwipesRatio ? r.slideTo(a.rewind && r.isEnd ? g : m + b) : r.slideTo(m)), "prev" === r.swipeDirection && (w > 1 - a.longSwipesRatio ? r.slideTo(m + b) : null !== y && w < 0 && Math.abs(w) > a.longSwipesRatio ? r.slideTo(y) : r.slideTo(m)); } else { if (!a.shortSwipes) { r.slideTo(r.activeIndex); return; } r.navigation && (s.target === r.navigation.nextEl || s.target === r.navigation.prevEl) ? s.target === r.navigation.nextEl ? r.slideTo(m + b) : r.slideTo(m) : ("next" === r.swipeDirection && r.slideTo(null !== g ? g : m + b), "prev" === r.swipeDirection && r.slideTo(null !== y ? y : m)); } } function S() { let e = this, { params: t, el: i } = e; if (i && 0 === i.offsetWidth) return; t.breakpoints && e.setBreakpoint(); let { allowSlideNext: r, allowSlidePrev: n, snapGrid: s } = e, a = e.virtual && e.params.virtual.enabled; (e.allowSlideNext = !0), (e.allowSlidePrev = !0), e.updateSize(), e.updateSlides(), e.updateSlidesClasses(); let o = a && t.loop; ("auto" !== t.slidesPerView && !(t.slidesPerView > 1)) || !e.isEnd || e.isBeginning || e.params.centeredSlides || o ? e.params.loop && !a ? e.slideToLoop(e.realIndex, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0) : e.slideTo(e.slides.length - 1, 0, !1, !0), e.autoplay && e.autoplay.running && e.autoplay.paused && (clearTimeout(e.autoplay.resizeTimeout), (e.autoplay.resizeTimeout = setTimeout(() => { e.autoplay && e.autoplay.running && e.autoplay.paused && e.autoplay.resume(); }, 500))), (e.allowSlidePrev = n), (e.allowSlideNext = r), e.params.watchOverflow && s !== e.snapGrid && e.checkOverflow(); } function E(e) { this.enabled && !this.allowClick && (this.params.preventClicks && e.preventDefault(), this.params.preventClicksPropagation && this.animating && (e.stopPropagation(), e.stopImmediatePropagation())); } function x() { let { wrapperEl: e, rtlTranslate: t, enabled: i } = this; if (!i) return; (this.previousTranslate = this.translate), this.isHorizontal() ? (this.translate = -e.scrollLeft) : (this.translate = -e.scrollTop), 0 === this.translate && (this.translate = 0), this.updateActiveIndex(), this.updateSlidesClasses(); let r = this.maxTranslate() - this.minTranslate(); (0 === r ? 0 : (this.translate - this.minTranslate()) / r) !== this.progress && this.updateProgress(t ? -this.translate : this.translate), this.emit("setTranslate", this.translate, !1); } function T(e) { h(this, e.target), !this.params.cssMode && ("auto" === this.params.slidesPerView || this.params.autoHeight) && this.update(); } function C() { !this.documentTouchHandlerProceeded && ((this.documentTouchHandlerProceeded = !0), this.params.touchReleaseOnEdges && (this.el.style.touchAction = "auto")); } let _ = (e, t) => { let i = (0, o.g)(), { params: r, el: n, wrapperEl: s, device: a } = e, l = !!r.nested, c = "on" === t ? "addEventListener" : "removeEventListener"; n && "string" != typeof n && (i[c]("touchstart", e.onDocumentTouchStart, { passive: !1, capture: l, }), n[c]("touchstart", e.onTouchStart, { passive: !1 }), n[c]("pointerdown", e.onTouchStart, { passive: !1 }), i[c]("touchmove", e.onTouchMove, { passive: !1, capture: l }), i[c]("pointermove", e.onTouchMove, { passive: !1, capture: l }), i[c]("touchend", e.onTouchEnd, { passive: !0 }), i[c]("pointerup", e.onTouchEnd, { passive: !0 }), i[c]("pointercancel", e.onTouchEnd, { passive: !0 }), i[c]("touchcancel", e.onTouchEnd, { passive: !0 }), i[c]("pointerout", e.onTouchEnd, { passive: !0 }), i[c]("pointerleave", e.onTouchEnd, { passive: !0 }), i[c]("contextmenu", e.onTouchEnd, { passive: !0 }), (r.preventClicks || r.preventClicksPropagation) && n[c]("click", e.onClick, !0), r.cssMode && s[c]("scroll", e.onScroll), r.updateOnWindowResize ? e[t]( a.ios || a.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", S, !0 ) : e[t]("observerUpdate", S, !0), n[c]("load", e.onLoad, { capture: !0 })); }, k = (e, t) => e.grid && t.grid && t.grid.rows > 1; var L = { init: !0, direction: "horizontal", oneWayMovement: !1, swiperElementNodeName: "SWIPER-CONTAINER", touchEventsTarget: "wrapper", initialSlide: 0, speed: 300, cssMode: !1, updateOnWindowResize: !0, resizeObserver: !0, nested: !1, createElements: !1, eventsPrefix: "swiper", enabled: !0, focusableElements: "input, select, option, textarea, button, video, label", width: null, height: null, preventInteractionOnTransition: !1, userAgent: null, url: null, edgeSwipeDetection: !1, edgeSwipeThreshold: 20, autoHeight: !1, setWrapperSize: !1, virtualTranslate: !1, effect: "slide", breakpoints: void 0, breakpointsBase: "window", spaceBetween: 0, slidesPerView: 1, slidesPerGroup: 1, slidesPerGroupSkip: 0, slidesPerGroupAuto: !1, centeredSlides: !1, centeredSlidesBounds: !1, slidesOffsetBefore: 0, slidesOffsetAfter: 0, normalizeSlideIndex: !0, centerInsufficientSlides: !1, watchOverflow: !0, roundLengths: !1, touchRatio: 1, touchAngle: 45, simulateTouch: !0, shortSwipes: !0, longSwipes: !0, longSwipesRatio: 0.5, longSwipesMs: 300, followFinger: !0, allowTouchMove: !0, threshold: 5, touchMoveStopPropagation: !1, touchStartPreventDefault: !0, touchStartForcePreventDefault: !1, touchReleaseOnEdges: !1, uniqueNavElements: !0, resistance: !0, resistanceRatio: 0.85, watchSlidesProgress: !1, grabCursor: !1, preventClicks: !0, preventClicksPropagation: !0, slideToClickedSlide: !1, loop: !1, loopAddBlankSlides: !0, loopAdditionalSlides: 0, loopPreventsSliding: !0, rewind: !1, allowSlidePrev: !0, allowSlideNext: !0, swipeHandler: null, noSwiping: !0, noSwipingClass: "swiper-no-swiping", noSwipingSelector: null, passiveListeners: !0, maxBackfaceHiddenSlides: 10, containerModifierClass: "swiper-", slideClass: "swiper-slide", slideBlankClass: "swiper-slide-blank", slideActiveClass: "swiper-slide-active", slideVisibleClass: "swiper-slide-visible", slideFullyVisibleClass: "swiper-slide-fully-visible", slideNextClass: "swiper-slide-next", slidePrevClass: "swiper-slide-prev", wrapperClass: "swiper-wrapper", lazyPreloaderClass: "swiper-lazy-preloader", lazyPreloadPrevNext: 0, runCallbacksOnInit: !0, _emitClasses: !1, }; let P = { eventsEmitter: { on(e, t, i) { let r = this; if (!r.eventsListeners || r.destroyed || "function" != typeof t) return r; let n = i ? "unshift" : "push"; return ( e.split(" ").forEach((e) => { r.eventsListeners[e] || (r.eventsListeners[e] = []), r.eventsListeners[e][n](t); }), r ); }, once(e, t, i) { let r = this; if (!r.eventsListeners || r.destroyed || "function" != typeof t) return r; function n() { r.off(e, n), n.__emitterProxy && delete n.__emitterProxy; for (var i = arguments.length, s = Array(i), a = 0; a < i; a++) s[a] = arguments[a]; t.apply(r, s); } return (n.__emitterProxy = t), r.on(e, n, i); }, onAny(e, t) { return ( !this.eventsListeners || this.destroyed || "function" != typeof e || (0 > this.eventsAnyListeners.indexOf(e) && this.eventsAnyListeners[t ? "unshift" : "push"](e)), this ); }, offAny(e) { if ( !this.eventsListeners || this.destroyed || !this.eventsAnyListeners ) return this; let t = this.eventsAnyListeners.indexOf(e); return t >= 0 && this.eventsAnyListeners.splice(t, 1), this; }, off(e, t) { let i = this; return ( i.eventsListeners && !i.destroyed && i.eventsListeners && e.split(" ").forEach((e) => { void 0 === t ? (i.eventsListeners[e] = []) : i.eventsListeners[e] && i.eventsListeners[e].forEach((r, n) => { (r === t || (r.__emitterProxy && r.__emitterProxy === t)) && i.eventsListeners[e].splice(n, 1); }); }), i ); }, emit() { let e, t, i; let r = this; if (!r.eventsListeners || r.destroyed || !r.eventsListeners) return r; for (var n = arguments.length, s = Array(n), a = 0; a < n; a++) s[a] = arguments[a]; return ( "string" == typeof s[0] || Array.isArray(s[0]) ? ((e = s[0]), (t = s.slice(1, s.length)), (i = r)) : ((e = s[0].events), (t = s[0].data), (i = s[0].context || r)), t.unshift(i), (Array.isArray(e) ? e : e.split(" ")).forEach((e) => { r.eventsAnyListeners && r.eventsAnyListeners.length && r.eventsAnyListeners.forEach((r) => { r.apply(i, [e, ...t]); }), r.eventsListeners && r.eventsListeners[e] && r.eventsListeners[e].forEach((e) => { e.apply(i, t); }); }), r ); }, }, update: { updateSize: function () { let e, t; let i = this.el; (e = void 0 !== this.params.width && null !== this.params.width ? this.params.width : i.clientWidth), (t = void 0 !== this.params.height && null !== this.params.height ? this.params.height : i.clientHeight), (0 === e && this.isHorizontal()) || (0 === t && this.isVertical()) || ((e = e - parseInt((0, l.p)(i, "padding-left") || 0, 10) - parseInt((0, l.p)(i, "padding-right") || 0, 10)), (t = t - parseInt((0, l.p)(i, "padding-top") || 0, 10) - parseInt((0, l.p)(i, "padding-bottom") || 0, 10)), Number.isNaN(e) && (e = 0), Number.isNaN(t) && (t = 0), Object.assign(this, { width: e, height: t, size: this.isHorizontal() ? e : t, })); }, updateSlides: function () { let e; let t = this; function i(e, i) { return parseFloat( e.getPropertyValue(t.getDirectionLabel(i)) || 0 ); } let r = t.params, { wrapperEl: n, slidesEl: s, size: a, rtlTranslate: o, wrongRTL: c, } = t, d = t.virtual && r.virtual.enabled, u = d ? t.virtual.slides.length : t.slides.length, p = (0, l.e)( s, ".".concat(t.params.slideClass, ", swiper-slide") ), h = d ? t.virtual.slides.length : p.length, f = [], m = [], v = [], g = r.slidesOffsetBefore; "function" == typeof g && (g = r.slidesOffsetBefore.call(t)); let y = r.slidesOffsetAfter; "function" == typeof y && (y = r.slidesOffsetAfter.call(t)); let w = t.snapGrid.length, b = t.slidesGrid.length, S = r.spaceBetween, E = -g, x = 0, T = 0; if (void 0 === a) return; "string" == typeof S && S.indexOf("%") >= 0 ? (S = (parseFloat(S.replace("%", "")) / 100) * a) : "string" == typeof S && (S = parseFloat(S)), (t.virtualSize = -S), p.forEach((e) => { o ? (e.style.marginLeft = "") : (e.style.marginRight = ""), (e.style.marginBottom = ""), (e.style.marginTop = ""); }), r.centeredSlides && r.cssMode && ((0, l.s)(n, "--swiper-centered-offset-before", ""), (0, l.s)(n, "--swiper-centered-offset-after", "")); let C = r.grid && r.grid.rows > 1 && t.grid; C ? t.grid.initSlides(p) : t.grid && t.grid.unsetSlides(); let _ = "auto" === r.slidesPerView && r.breakpoints && Object.keys(r.breakpoints).filter( (e) => void 0 !== r.breakpoints[e].slidesPerView ).length > 0; for (let n = 0; n < h; n += 1) { let s; if ( ((e = 0), p[n] && (s = p[n]), C && t.grid.updateSlide(n, s, p), !p[n] || "none" !== (0, l.p)(s, "display")) ) { if ("auto" === r.slidesPerView) { _ && (p[n].style[t.getDirectionLabel("width")] = ""); let a = getComputedStyle(s), o = s.style.transform, c = s.style.webkitTransform; if ( (o && (s.style.transform = "none"), c && (s.style.webkitTransform = "none"), r.roundLengths) ) e = t.isHorizontal() ? (0, l.f)(s, "width", !0) : (0, l.f)(s, "height", !0); else { let t = i(a, "width"), r = i(a, "padding-left"), n = i(a, "padding-right"), o = i(a, "margin-left"), l = i(a, "margin-right"), c = a.getPropertyValue("box-sizing"); if (c && "border-box" === c) e = t + o + l; else { let { clientWidth: i, offsetWidth: a } = s; e = t + r + n + o + l + (a - i); } } o && (s.style.transform = o), c && (s.style.webkitTransform = c), r.roundLengths && (e = Math.floor(e)); } else (e = (a - (r.slidesPerView - 1) * S) / r.slidesPerView), r.roundLengths && (e = Math.floor(e)), p[n] && (p[n].style[t.getDirectionLabel("width")] = "".concat( e, "px" )); p[n] && (p[n].swiperSlideSize = e), v.push(e), r.centeredSlides ? ((E = E + e / 2 + x / 2 + S), 0 === x && 0 !== n && (E = E - a / 2 - S), 0 === n && (E = E - a / 2 - S), 0.001 > Math.abs(E) && (E = 0), r.roundLengths && (E = Math.floor(E)), T % r.slidesPerGroup == 0 && f.push(E), m.push(E)) : (r.roundLengths && (E = Math.floor(E)), (T - Math.min(t.params.slidesPerGroupSkip, T)) % t.params.slidesPerGroup == 0 && f.push(E), m.push(E), (E = E + e + S)), (t.virtualSize += e + S), (x = e), (T += 1); } } if ( ((t.virtualSize = Math.max(t.virtualSize, a) + y), o && c && ("slide" === r.effect || "coverflow" === r.effect) && (n.style.width = "".concat(t.virtualSize + S, "px")), r.setWrapperSize && (n.style[t.getDirectionLabel("width")] = "".concat( t.virtualSize + S, "px" )), C && t.grid.updateWrapperSize(e, f), !r.centeredSlides) ) { let e = []; for (let i = 0; i < f.length; i += 1) { let n = f[i]; r.roundLengths && (n = Math.floor(n)), f[i] <= t.virtualSize - a && e.push(n); } (f = e), Math.floor(t.virtualSize - a) - Math.floor(f[f.length - 1]) > 1 && f.push(t.virtualSize - a); } if (d && r.loop) { let e = v[0] + S; if (r.slidesPerGroup > 1) { let i = Math.ceil( (t.virtual.slidesBefore + t.virtual.slidesAfter) / r.slidesPerGroup ), n = e * r.slidesPerGroup; for (let e = 0; e < i; e += 1) f.push(f[f.length - 1] + n); } for ( let i = 0; i < t.virtual.slidesBefore + t.virtual.slidesAfter; i += 1 ) 1 === r.slidesPerGroup && f.push(f[f.length - 1] + e), m.push(m[m.length - 1] + e), (t.virtualSize += e); } if ((0 === f.length && (f = [0]), 0 !== S)) { let e = t.isHorizontal() && o ? "marginLeft" : t.getDirectionLabel("marginRight"); p.filter( (e, t) => !r.cssMode || !!r.loop || t !== p.length - 1 ).forEach((t) => { t.style[e] = "".concat(S, "px"); }); } if (r.centeredSlides && r.centeredSlidesBounds) { let e = 0; v.forEach((t) => { e += t + (S || 0); }); let t = (e -= S) > a ? e - a : 0; f = f.map((e) => (e <= 0 ? -g : e > t ? t + y : e)); } if (r.centerInsufficientSlides) { let e = 0; v.forEach((t) => { e += t + (S || 0); }), (e -= S); let t = (r.slidesOffsetBefore || 0) + (r.slidesOffsetAfter || 0); if (e + t < a) { let i = (a - e - t) / 2; f.forEach((e, t) => { f[t] = e - i; }), m.forEach((e, t) => { m[t] = e + i; }); } } if ( (Object.assign(t, { slides: p, snapGrid: f, slidesGrid: m, slidesSizesGrid: v, }), r.centeredSlides && r.cssMode && !r.centeredSlidesBounds) ) { (0, l.s)( n, "--swiper-centered-offset-before", "".concat(-f[0], "px") ), (0, l.s)( n, "--swiper-centered-offset-after", "".concat(t.size / 2 - v[v.length - 1] / 2, "px") ); let e = -t.snapGrid[0], i = -t.slidesGrid[0]; (t.snapGrid = t.snapGrid.map((t) => t + e)), (t.slidesGrid = t.slidesGrid.map((e) => e + i)); } if ( (h !== u && t.emit("slidesLengthChange"), f.length !== w && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), m.length !== b && t.emit("slidesGridLengthChange"), r.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !d && !r.cssMode && ("slide" === r.effect || "fade" === r.effect)) ) { let e = "".concat(r.containerModifierClass, "backface-hidden"), i = t.el.classList.contains(e); h <= r.maxBackfaceHiddenSlides ? i || t.el.classList.add(e) : i && t.el.classList.remove(e); } }, updateAutoHeight: function (e) { let t; let i = this, r = [], n = i.virtual && i.params.virtual.enabled, s = 0; "number" == typeof e ? i.setTransition(e) : !0 === e && i.setTransition(i.params.speed); let a = (e) => n ? i.slides[i.getSlideIndexByData(e)] : i.slides[e]; if ( "auto" !== i.params.slidesPerView && i.params.slidesPerView > 1 ) { if (i.params.centeredSlides) (i.visibleSlides || []).forEach((e) => { r.push(e); }); else for (t = 0; t < Math.ceil(i.params.slidesPerView); t += 1) { let e = i.activeIndex + t; if (e > i.slides.length && !n) break; r.push(a(e)); } } else r.push(a(i.activeIndex)); for (t = 0; t < r.length; t += 1) if (void 0 !== r[t]) { let e = r[t].offsetHeight; s = e > s ? e : s; } (s || 0 === s) && (i.wrapperEl.style.height = "".concat(s, "px")); }, updateSlidesOffset: function () { let e = this.slides, t = this.isElement ? this.isHorizontal() ? this.wrapperEl.offsetLeft : this.wrapperEl.offsetTop : 0; for (let i = 0; i < e.length; i += 1) e[i].swiperSlideOffset = (this.isHorizontal() ? e[i].offsetLeft : e[i].offsetTop) - t - this.cssOverflowAdjustment(); }, updateSlidesProgress: function (e) { void 0 === e && (e = (this && this.translate) || 0); let t = this.params, { slides: i, rtlTranslate: r, snapGrid: n } = this; if (0 === i.length) return; void 0 === i[0].swiperSlideOffset && this.updateSlidesOffset(); let s = -e; r && (s = e), (this.visibleSlidesIndexes = []), (this.visibleSlides = []); let a = t.spaceBetween; "string" == typeof a && a.indexOf("%") >= 0 ? (a = (parseFloat(a.replace("%", "")) / 100) * this.size) : "string" == typeof a && (a = parseFloat(a)); for (let e = 0; e < i.length; e += 1) { let o = i[e], l = o.swiperSlideOffset; t.cssMode && t.centeredSlides && (l -= i[0].swiperSlideOffset); let c = (s + (t.centeredSlides ? this.minTranslate() : 0) - l) / (o.swiperSlideSize + a), d = (s - n[0] + (t.centeredSlides ? this.minTranslate() : 0) - l) / (o.swiperSlideSize + a), p = -(s - l), h = p + this.slidesSizesGrid[e], f = p >= 0 && p <= this.size - this.slidesSizesGrid[e], m = (p >= 0 && p < this.size - 1) || (h > 1 && h <= this.size) || (p <= 0 && h >= this.size); m && (this.visibleSlides.push(o), this.visibleSlidesIndexes.push(e)), u(o, m, t.slideVisibleClass), u(o, f, t.slideFullyVisibleClass), (o.progress = r ? -c : c), (o.originalProgress = r ? -d : d); } }, updateProgress: function (e) { if (void 0 === e) { let t = this.rtlTranslate ? -1 : 1; e = (this && this.translate && this.translate * t) || 0; } let t = this.params, i = this.maxTranslate() - this.minTranslate(), { progress: r, isBeginning: n, isEnd: s, progressLoop: a, } = this, o = n, l = s; if (0 === i) (r = 0), (n = !0), (s = !0); else { r = (e - this.minTranslate()) / i; let t = 1 > Math.abs(e - this.minTranslate()), a = 1 > Math.abs(e - this.maxTranslate()); (n = t || r <= 0), (s = a || r >= 1), t && (r = 0), a && (r = 1); } if (t.loop) { let t = this.getSlideIndexByData(0), i = this.getSlideIndexByData(this.slides.length - 1), r = this.slidesGrid[t], n = this.slidesGrid[i], s = this.slidesGrid[this.slidesGrid.length - 1], o = Math.abs(e); (a = o >= r ? (o - r) / s : (o + s - n) / s) > 1 && (a -= 1); } Object.assign(this, { progress: r, progressLoop: a, isBeginning: n, isEnd: s, }), (t.watchSlidesProgress || (t.centeredSlides && t.autoHeight)) && this.updateSlidesProgress(e), n && !o && this.emit("reachBeginning toEdge"), s && !l && this.emit("reachEnd toEdge"), ((o && !n) || (l && !s)) && this.emit("fromEdge"), this.emit("progress", r); }, updateSlidesClasses: function () { let e, t, i; let { slides: r, params: n, slidesEl: s, activeIndex: a } = this, o = this.virtual && n.virtual.enabled, c = this.grid && n.grid && n.grid.rows > 1, d = (e) => (0, l.e)( s, "." .concat(n.slideClass) .concat(e, ", swiper-slide") .concat(e) )[0]; if (o) { if (n.loop) { let t = a - this.virtual.slidesBefore; t < 0 && (t = this.virtual.slides.length + t), t >= this.virtual.slides.length && (t -= this.virtual.slides.length), (e = d('[data-swiper-slide-index="'.concat(t, '"]'))); } else e = d('[data-swiper-slide-index="'.concat(a, '"]')); } else c ? ((e = r.filter((e) => e.column === a)[0]), (i = r.filter((e) => e.column === a + 1)[0]), (t = r.filter((e) => e.column === a - 1)[0])) : (e = r[a]); e && !c && ((i = (0, l.q)( e, ".".concat(n.slideClass, ", swiper-slide") )[0]), n.loop && !i && (i = r[0]), (t = (0, l.r)( e, ".".concat(n.slideClass, ", swiper-slide") )[0]), n.loop), r.forEach((r) => { p(r, r === e, n.slideActiveClass), p(r, r === i, n.slideNextClass), p(r, r === t, n.slidePrevClass); }), this.emitSlidesClasses(); }, updateActiveIndex: function (e) { let t, i; let r = this, n = r.rtlTranslate ? r.translate : -r.translate, { snapGrid: s, params: a, activeIndex: o, realIndex: l, snapIndex: c, } = r, d = e, u = (e) => { let t = e - r.virtual.slidesBefore; return ( t < 0 && (t = r.virtual.slides.length + t), t >= r.virtual.slides.length && (t -= r.virtual.slides.length), t ); }; if ( (void 0 === d && (d = (function (e) { let t; let { slidesGrid: i, params: r } = e, n = e.rtlTranslate ? e.translate : -e.translate; for (let e = 0; e < i.length; e += 1) void 0 !== i[e + 1] ? n >= i[e] && n < i[e + 1] - (i[e + 1] - i[e]) / 2 ? (t = e) : n >= i[e] && n < i[e + 1] && (t = e + 1) : n >= i[e] && (t = e); return ( r.normalizeSlideIndex && (t < 0 || void 0 === t) && (t = 0), t ); })(r)), s.indexOf(n) >= 0) ) t = s.indexOf(n); else { let e = Math.min(a.slidesPerGroupSkip, d); t = e + Math.floor((d - e) / a.slidesPerGroup); } if ( (t >= s.length && (t = s.length - 1), d === o && !r.params.loop) ) { t !== c && ((r.snapIndex = t), r.emit("snapIndexChange")); return; } if ( d === o && r.params.loop && r.virtual && r.params.virtual.enabled ) { r.realIndex = u(d); return; } let p = r.grid && a.grid && a.grid.rows > 1; if (r.virtual && a.virtual.enabled && a.loop) i = u(d); else if (p) { let e = r.slides.filter((e) => e.column === d)[0], t = parseInt(e.getAttribute("data-swiper-slide-index"), 10); Number.isNaN(t) && (t = Math.max(r.slides.indexOf(e), 0)), (i = Math.floor(t / a.grid.rows)); } else if (r.slides[d]) { let e = r.slides[d].getAttribute("data-swiper-slide-index"); i = e ? parseInt(e, 10) : d; } else i = d; Object.assign(r, { previousSnapIndex: c, snapIndex: t, previousRealIndex: l, realIndex: i, previousIndex: o, activeIndex: d, }), r.initialized && m(r), r.emit("activeIndexChange"), r.emit("snapIndexChange"), (r.initialized || r.params.runCallbacksOnInit) && (l !== i && r.emit("realIndexChange"), r.emit("slideChange")); }, updateClickedSlide: function (e, t) { let i; let r = this.params, n = e.closest(".".concat(r.slideClass, ", swiper-slide")); !n && this.isElement && t && t.length > 1 && t.includes(e) && [...t.slice(t.indexOf(e) + 1, t.length)].forEach((e) => { !n && e.matches && e.matches(".".concat(r.slideClass, ", swiper-slide")) && (n = e); }); let s = !1; if (n) { for (let e = 0; e < this.slides.length; e += 1) if (this.slides[e] === n) { (s = !0), (i = e); break; } } if (n && s) (this.clickedSlide = n), this.virtual && this.params.virtual.enabled ? (this.clickedIndex = parseInt( n.getAttribute("data-swiper-slide-index"), 10 )) : (this.clickedIndex = i); else { (this.clickedSlide = void 0), (this.clickedIndex = void 0); return; } r.slideToClickedSlide && void 0 !== this.clickedIndex && this.clickedIndex !== this.activeIndex && this.slideToClickedSlide(); }, }, translate: { getTranslate: function (e) { void 0 === e && (e = this.isHorizontal() ? "x" : "y"); let { params: t, rtlTranslate: i, translate: r, wrapperEl: n, } = this; if (t.virtualTranslate) return i ? -r : r; if (t.cssMode) return r; let s = (0, l.j)(n, e); return (s += this.cssOverflowAdjustment()), i && (s = -s), s || 0; }, setTranslate: function (e, t) { let { rtlTranslate: i, params: r, wrapperEl: n, progress: s, } = this, a = 0, o = 0; this.isHorizontal() ? (a = i ? -e : e) : (o = e), r.roundLengths && ((a = Math.floor(a)), (o = Math.floor(o))), (this.previousTranslate = this.translate), (this.translate = this.isHorizontal() ? a : o), r.cssMode ? (n[this.isHorizontal() ? "scrollLeft" : "scrollTop"] = this.isHorizontal() ? -a : -o) : r.virtualTranslate || (this.isHorizontal() ? (a -= this.cssOverflowAdjustment()) : (o -= this.cssOverflowAdjustment()), (n.style.transform = "translate3d(" .concat(a, "px, ") .concat(o, "px, ") .concat(0, "px)"))); let l = this.maxTranslate() - this.minTranslate(); (0 === l ? 0 : (e - this.minTranslate()) / l) !== s && this.updateProgress(e), this.emit("setTranslate", this.translate, t); }, minTranslate: function () { return -this.snapGrid[0]; }, maxTranslate: function () { return -this.snapGrid[this.snapGrid.length - 1]; }, translateTo: function (e, t, i, r, n) { let s; void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === i && (i = !0), void 0 === r && (r = !0); let a = this, { params: o, wrapperEl: c } = a; if (a.animating && o.preventInteractionOnTransition) return !1; let d = a.minTranslate(), u = a.maxTranslate(); if ( ((s = r && e > d ? d : r && e < u ? u : e), a.updateProgress(s), o.cssMode) ) { let e = a.isHorizontal(); if (0 === t) c[e ? "scrollLeft" : "scrollTop"] = -s; else { if (!a.support.smoothScroll) return ( (0, l.t)({ swiper: a, targetPosition: -s, side: e ? "left" : "top", }), !0 ); c.scrollTo({ [e ? "left" : "top"]: -s, behavior: "smooth" }); } return !0; } return ( 0 === t ? (a.setTransition(0), a.setTranslate(s), i && (a.emit("beforeTransitionStart", t, n), a.emit("transitionEnd"))) : (a.setTransition(t), a.setTranslate(s), i && (a.emit("beforeTransitionStart", t, n), a.emit("transitionStart")), a.animating || ((a.animating = !0), a.onTranslateToWrapperTransitionEnd || (a.onTranslateToWrapperTransitionEnd = function (e) { a && !a.destroyed && e.target === this && (a.wrapperEl.removeEventListener( "transitionend", a.onTranslateToWrapperTransitionEnd ), (a.onTranslateToWrapperTransitionEnd = null), delete a.onTranslateToWrapperTransitionEnd, (a.animating = !1), i && a.emit("transitionEnd")); }), a.wrapperEl.addEventListener( "transitionend", a.onTranslateToWrapperTransitionEnd ))), !0 ); }, }, transition: { setTransition: function (e, t) { this.params.cssMode || ((this.wrapperEl.style.transitionDuration = "".concat(e, "ms")), (this.wrapperEl.style.transitionDelay = 0 === e ? "0ms" : "")), this.emit("setTransition", e, t); }, transitionStart: function (e, t) { void 0 === e && (e = !0); let { params: i } = this; i.cssMode || (i.autoHeight && this.updateAutoHeight(), v({ swiper: this, runCallbacks: e, direction: t, step: "Start", })); }, transitionEnd: function (e, t) { void 0 === e && (e = !0); let { params: i } = this; (this.animating = !1), i.cssMode || (this.setTransition(0), v({ swiper: this, runCallbacks: e, direction: t, step: "End", })); }, }, slide: { slideTo: function (e, t, i, r, n) { let s; void 0 === e && (e = 0), void 0 === i && (i = !0), "string" == typeof e && (e = parseInt(e, 10)); let a = this, o = e; o < 0 && (o = 0); let { params: c, snapGrid: d, slidesGrid: u, previousIndex: p, activeIndex: h, rtlTranslate: f, wrapperEl: m, enabled: v, } = a; if ( (!v && !r && !n) || a.destroyed || (a.animating && c.preventInteractionOnTransition) ) return !1; void 0 === t && (t = a.params.speed); let g = Math.min(a.params.slidesPerGroupSkip, o), y = g + Math.floor((o - g) / a.params.slidesPerGroup); y >= d.length && (y = d.length - 1); let w = -d[y]; if (c.normalizeSlideIndex) for (let e = 0; e < u.length; e += 1) { let t = -Math.floor(100 * w), i = Math.floor(100 * u[e]), r = Math.floor(100 * u[e + 1]); void 0 !== u[e + 1] ? t >= i && t < r - (r - i) / 2 ? (o = e) : t >= i && t < r && (o = e + 1) : t >= i && (o = e); } if ( a.initialized && o !== h && ((!a.allowSlideNext && (f ? w > a.translate && w > a.minTranslate() : w < a.translate && w < a.minTranslate())) || (!a.allowSlidePrev && w > a.translate && w > a.maxTranslate() && (h || 0) !== o)) ) return !1; o !== (p || 0) && i && a.emit("beforeSlideChangeStart"), a.updateProgress(w), (s = o > h ? "next" : o < h ? "prev" : "reset"); let b = a.virtual && a.params.virtual.enabled; if ( !(b && n) && ((f && -w === a.translate) || (!f && w === a.translate)) ) return ( a.updateActiveIndex(o), c.autoHeight && a.updateAutoHeight(), a.updateSlidesClasses(), "slide" !== c.effect && a.setTranslate(w), "reset" !== s && (a.transitionStart(i, s), a.transitionEnd(i, s)), !1 ); if (c.cssMode) { let e = a.isHorizontal(), i = f ? w : -w; if (0 === t) b && ((a.wrapperEl.style.scrollSnapType = "none"), (a._immediateVirtual = !0)), b && !a._cssModeVirtualInitialSet && a.params.initialSlide > 0 ? ((a._cssModeVirtualInitialSet = !0), requestAnimationFrame(() => { m[e ? "scrollLeft" : "scrollTop"] = i; })) : (m[e ? "scrollLeft" : "scrollTop"] = i), b && requestAnimationFrame(() => { (a.wrapperEl.style.scrollSnapType = ""), (a._immediateVirtual = !1); }); else { if (!a.support.smoothScroll) return ( (0, l.t)({ swiper: a, targetPosition: i, side: e ? "left" : "top", }), !0 ); m.scrollTo({ [e ? "left" : "top"]: i, behavior: "smooth" }); } return !0; } return ( a.setTransition(t), a.setTranslate(w), a.updateActiveIndex(o), a.updateSlidesClasses(), a.emit("beforeTransitionStart", t, r), a.transitionStart(i, s), 0 === t ? a.transitionEnd(i, s) : a.animating || ((a.animating = !0), a.onSlideToWrapperTransitionEnd || (a.onSlideToWrapperTransitionEnd = function (e) { a && !a.destroyed && e.target === this && (a.wrapperEl.removeEventListener( "transitionend", a.onSlideToWrapperTransitionEnd ), (a.onSlideToWrapperTransitionEnd = null), delete a.onSlideToWrapperTransitionEnd, a.transitionEnd(i, s)); }), a.wrapperEl.addEventListener( "transitionend", a.onSlideToWrapperTransitionEnd )), !0 ); }, slideToLoop: function (e, t, i, r) { void 0 === e && (e = 0), void 0 === i && (i = !0), "string" == typeof e && (e = parseInt(e, 10)); let n = this; if (n.destroyed) return; void 0 === t && (t = n.params.speed); let s = n.grid && n.params.grid && n.params.grid.rows > 1, a = e; if (n.params.loop) { if (n.virtual && n.params.virtual.enabled) a += n.virtual.slidesBefore; else { let e; if (s) { let t = a * n.params.grid.rows; e = n.slides.filter( (e) => 1 * e.getAttribute("data-swiper-slide-index") === t )[0].column; } else e = n.getSlideIndexByData(a); let t = s ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, { centeredSlides: i } = n.params, o = n.params.slidesPerView; "auto" === o ? (o = n.slidesPerViewDynamic()) : ((o = Math.ceil(parseFloat(n.params.slidesPerView, 10))), i && o % 2 == 0 && (o += 1)); let l = t - e < o; if ( (i && (l = l || e < Math.ceil(o / 2)), r && i && "auto" !== n.params.slidesPerView && !s && (l = !1), l) ) { let r = i ? e < n.activeIndex ? "prev" : "next" : e - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev"; n.loopFix({ direction: r, slideTo: !0, activeSlideIndex: "next" === r ? e + 1 : e - t + 1, slideRealIndex: "next" === r ? n.realIndex : void 0, }); } if (s) { let e = a * n.params.grid.rows; a = n.slides.filter( (t) => 1 * t.getAttribute("data-swiper-slide-index") === e )[0].column; } else a = n.getSlideIndexByData(a); } } return ( requestAnimationFrame(() => { n.slideTo(a, t, i, r); }), n ); }, slideNext: function (e, t, i) { void 0 === t && (t = !0); let r = this, { enabled: n, params: s, animating: a } = r; if (!n || r.destroyed) return r; void 0 === e && (e = r.params.speed); let o = s.slidesPerGroup; "auto" === s.slidesPerView && 1 === s.slidesPerGroup && s.slidesPerGroupAuto && (o = Math.max(r.slidesPerViewDynamic("current", !0), 1)); let l = r.activeIndex < s.slidesPerGroupSkip ? 1 : o, c = r.virtual && s.virtual.enabled; if (s.loop) { if (a && !c && s.loopPreventsSliding) return !1; if ( (r.loopFix({ direction: "next" }), (r._clientLeft = r.wrapperEl.clientLeft), r.activeIndex === r.slides.length - 1 && s.cssMode) ) return ( requestAnimationFrame(() => { r.slideTo(r.activeIndex + l, e, t, i); }), !0 ); } return s.rewind && r.isEnd ? r.slideTo(0, e, t, i) : r.slideTo(r.activeIndex + l, e, t, i); }, slidePrev: function (e, t, i) { void 0 === t && (t = !0); let r = this, { params: n, snapGrid: s, slidesGrid: a, rtlTranslate: o, enabled: l, animating: c, } = r; if (!l || r.destroyed) return r; void 0 === e && (e = r.params.speed); let d = r.virtual && n.virtual.enabled; if (n.loop) { if (c && !d && n.loopPreventsSliding) return !1; r.loopFix({ direction: "prev" }), (r._clientLeft = r.wrapperEl.clientLeft); } function u(e) { return e < 0 ? -Math.floor(Math.abs(e)) : Math.floor(e); } let p = u(o ? r.translate : -r.translate), h = s.map((e) => u(e)), f = s[h.indexOf(p) - 1]; if (void 0 === f && n.cssMode) { let e; s.forEach((t, i) => { p >= t && (e = i); }), void 0 !== e && (f = s[e > 0 ? e - 1 : e]); } let m = 0; if ( (void 0 !== f && ((m = a.indexOf(f)) < 0 && (m = r.activeIndex - 1), "auto" === n.slidesPerView && 1 === n.slidesPerGroup && n.slidesPerGroupAuto && (m = Math.max( (m = m - r.slidesPerViewDynamic("previous", !0) + 1), 0 ))), n.rewind && r.isBeginning) ) { let n = r.params.virtual && r.params.virtual.enabled && r.virtual ? r.virtual.slides.length - 1 : r.slides.length - 1; return r.slideTo(n, e, t, i); } return n.loop && 0 === r.activeIndex && n.cssMode ? (requestAnimationFrame(() => { r.slideTo(m, e, t, i); }), !0) : r.slideTo(m, e, t, i); }, slideReset: function (e, t, i) { if ((void 0 === t && (t = !0), !this.destroyed)) return ( void 0 === e && (e = this.params.speed), this.slideTo(this.activeIndex, e, t, i) ); }, slideToClosest: function (e, t, i, r) { if ( (void 0 === t && (t = !0), void 0 === r && (r = 0.5), this.destroyed) ) return; void 0 === e && (e = this.params.speed); let n = this.activeIndex, s = Math.min(this.params.slidesPerGroupSkip, n), a = s + Math.floor((n - s) / this.params.slidesPerGroup), o = this.rtlTranslate ? this.translate : -this.translate; if (o >= this.snapGrid[a]) { let e = this.snapGrid[a]; o - e > (this.snapGrid[a + 1] - e) * r && (n += this.params.slidesPerGroup); } else { let e = this.snapGrid[a - 1]; o - e <= (this.snapGrid[a] - e) * r && (n -= this.params.slidesPerGroup); } return ( (n = Math.min( (n = Math.max(n, 0)), this.slidesGrid.length - 1 )), this.slideTo(n, e, t, i) ); }, slideToClickedSlide: function () { let e; let t = this; if (t.destroyed) return; let { params: i, slidesEl: r } = t, n = "auto" === i.slidesPerView ? t.slidesPerViewDynamic() : i.slidesPerView, s = t.clickedIndex, a = t.isElement ? "swiper-slide" : ".".concat(i.slideClass); if (i.loop) { if (t.animating) return; (e = parseInt( t.clickedSlide.getAttribute("data-swiper-slide-index"), 10 )), i.centeredSlides ? s < t.loopedSlides - n / 2 || s > t.slides.length - t.loopedSlides + n / 2 ? (t.loopFix(), (s = t.getSlideIndex( (0, l.e)( r, "" .concat(a, '[data-swiper-slide-index="') .concat(e, '"]') )[0] )), (0, l.n)(() => { t.slideTo(s); })) : t.slideTo(s) : s > t.slides.length - n ? (t.loopFix(), (s = t.getSlideIndex( (0, l.e)( r, "" .concat(a, '[data-swiper-slide-index="') .concat(e, '"]') )[0] )), (0, l.n)(() => { t.slideTo(s); })) : t.slideTo(s); } else t.slideTo(s); }, }, loop: { loopCreate: function (e) { let t = this, { params: i, slidesEl: r } = t; if (!i.loop || (t.virtual && t.params.virtual.enabled)) return; let n = t.grid && i.grid && i.grid.rows > 1, s = i.slidesPerGroup * (n ? i.grid.rows : 1), a = t.slides.length % s != 0, o = n && t.slides.length % i.grid.rows != 0, c = (e) => { for (let r = 0; r < e; r += 1) { let e = t.isElement ? (0, l.c)("swiper-slide", [i.slideBlankClass]) : (0, l.c)("div", [i.slideClass, i.slideBlankClass]); t.slidesEl.append(e); } }; a ? i.loopAddBlankSlides ? (c(s - (t.slides.length % s)), t.recalcSlides(), t.updateSlides()) : (0, l.u)( "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)" ) : o && (i.loopAddBlankSlides ? (c(i.grid.rows - (t.slides.length % i.grid.rows)), t.recalcSlides(), t.updateSlides()) : (0, l.u)( "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)" )), (0, l.e)(r, ".".concat(i.slideClass, ", swiper-slide")).forEach( (e, t) => { e.setAttribute("data-swiper-slide-index", t); } ), t.loopFix({ slideRealIndex: e, direction: i.centeredSlides ? void 0 : "next", }); }, loopFix: function (e) { let { slideRealIndex: t, slideTo: i = !0, direction: r, setTranslate: n, activeSlideIndex: s, byController: a, byMousewheel: o, } = void 0 === e ? {} : e, c = this; if (!c.params.loop) return; c.emit("beforeLoopFix"); let { slides: d, allowSlidePrev: u, allowSlideNext: p, slidesEl: h, params: f, } = c, { centeredSlides: m } = f; if ( ((c.allowSlidePrev = !0), (c.allowSlideNext = !0), c.virtual && f.virtual.enabled) ) { i && (f.centeredSlides || 0 !== c.snapIndex ? f.centeredSlides && c.snapIndex < f.slidesPerView ? c.slideTo( c.virtual.slides.length + c.snapIndex, 0, !1, !0 ) : c.snapIndex === c.snapGrid.length - 1 && c.slideTo(c.virtual.slidesBefore, 0, !1, !0) : c.slideTo(c.virtual.slides.length, 0, !1, !0)), (c.allowSlidePrev = u), (c.allowSlideNext = p), c.emit("loopFix"); return; } let v = f.slidesPerView; "auto" === v ? (v = c.slidesPerViewDynamic()) : ((v = Math.ceil(parseFloat(f.slidesPerView, 10))), m && v % 2 == 0 && (v += 1)); let g = f.slidesPerGroupAuto ? v : f.slidesPerGroup, y = g; y % g != 0 && (y += g - (y % g)), (y += f.loopAdditionalSlides), (c.loopedSlides = y); let w = c.grid && f.grid && f.grid.rows > 1; d.length < v + y ? (0, l.u)( "Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters" ) : w && "row" === f.grid.fill && (0, l.u)( "Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`" ); let b = [], S = [], E = c.activeIndex; void 0 === s ? (s = c.getSlideIndex( d.filter((e) => e.classList.contains(f.slideActiveClass))[0] )) : (E = s); let x = "next" === r || !r, T = "prev" === r || !r, C = 0, _ = 0, k = w ? Math.ceil(d.length / f.grid.rows) : d.length, L = (w ? d[s].column : s) + (m && void 0 === n ? -v / 2 + 0.5 : 0); if (L < y) { C = Math.max(y - L, g); for (let e = 0; e < y - L; e += 1) { let t = e - Math.floor(e / k) * k; if (w) { let e = k - t - 1; for (let t = d.length - 1; t >= 0; t -= 1) d[t].column === e && b.push(t); } else b.push(k - t - 1); } } else if (L + v > k - y) { _ = Math.max(L - (k - 2 * y), g); for (let e = 0; e < _; e += 1) { let t = e - Math.floor(e / k) * k; w ? d.forEach((e, i) => { e.column === t && S.push(i); }) : S.push(t); } } if ( ((c.__preventObserver__ = !0), requestAnimationFrame(() => { c.__preventObserver__ = !1; }), T && b.forEach((e) => { (d[e].swiperLoopMoveDOM = !0), h.prepend(d[e]), (d[e].swiperLoopMoveDOM = !1); }), x && S.forEach((e) => { (d[e].swiperLoopMoveDOM = !0), h.append(d[e]), (d[e].swiperLoopMoveDOM = !1); }), c.recalcSlides(), "auto" === f.slidesPerView ? c.updateSlides() : w && ((b.length > 0 && T) || (S.length > 0 && x)) && c.slides.forEach((e, t) => { c.grid.updateSlide(t, e, c.slides); }), f.watchSlidesProgress && c.updateSlidesOffset(), i) ) { if (b.length > 0 && T) { if (void 0 === t) { let e = c.slidesGrid[E], t = c.slidesGrid[E + C] - e; o ? c.setTranslate(c.translate - t) : (c.slideTo(E + Math.ceil(C), 0, !1, !0), n && ((c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - t), (c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - t))); } else if (n) { let e = w ? b.length / f.grid.rows : b.length; c.slideTo(c.activeIndex + e, 0, !1, !0), (c.touchEventsData.currentTranslate = c.translate); } } else if (S.length > 0 && x) { if (void 0 === t) { let e = c.slidesGrid[E], t = c.slidesGrid[E - _] - e; o ? c.setTranslate(c.translate - t) : (c.slideTo(E - _, 0, !1, !0), n && ((c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - t), (c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - t))); } else { let e = w ? S.length / f.grid.rows : S.length; c.slideTo(c.activeIndex - e, 0, !1, !0); } } } if ( ((c.allowSlidePrev = u), (c.allowSlideNext = p), c.controller && c.controller.control && !a) ) { let e = { slideRealIndex: t, direction: r, setTranslate: n, activeSlideIndex: s, byController: !0, }; Array.isArray(c.controller.control) ? c.controller.control.forEach((t) => { !t.destroyed && t.params.loop && t.loopFix({ ...e, slideTo: t.params.slidesPerView === f.slidesPerView && i, }); }) : c.controller.control instanceof c.constructor && c.controller.control.params.loop && c.controller.control.loopFix({ ...e, slideTo: c.controller.control.params.slidesPerView === f.slidesPerView && i, }); } c.emit("loopFix"); }, loopDestroy: function () { let { params: e, slidesEl: t } = this; if (!e.loop || (this.virtual && this.params.virtual.enabled)) return; this.recalcSlides(); let i = []; this.slides.forEach((e) => { i[ void 0 === e.swiperSlideIndex ? 1 * e.getAttribute("data-swiper-slide-index") : e.swiperSlideIndex ] = e; }), this.slides.forEach((e) => { e.removeAttribute("data-swiper-slide-index"); }), i.forEach((e) => { t.append(e); }), this.recalcSlides(), this.slideTo(this.realIndex, 0); }, }, grabCursor: { setGrabCursor: function (e) { let t = this; if ( !t.params.simulateTouch || (t.params.watchOverflow && t.isLocked) || t.params.cssMode ) return; let i = "container" === t.params.touchEventsTarget ? t.el : t.wrapperEl; t.isElement && (t.__preventObserver__ = !0), (i.style.cursor = "move"), (i.style.cursor = e ? "grabbing" : "grab"), t.isElement && requestAnimationFrame(() => { t.__preventObserver__ = !1; }); }, unsetGrabCursor: function () { let e = this; (e.params.watchOverflow && e.isLocked) || e.params.cssMode || (e.isElement && (e.__preventObserver__ = !0), (e[ "container" === e.params.touchEventsTarget ? "el" : "wrapperEl" ].style.cursor = ""), e.isElement && requestAnimationFrame(() => { e.__preventObserver__ = !1; })); }, }, events: { attachEvents: function () { let { params: e } = this; (this.onTouchStart = y.bind(this)), (this.onTouchMove = w.bind(this)), (this.onTouchEnd = b.bind(this)), (this.onDocumentTouchStart = C.bind(this)), e.cssMode && (this.onScroll = x.bind(this)), (this.onClick = E.bind(this)), (this.onLoad = T.bind(this)), _(this, "on"); }, detachEvents: function () { _(this, "off"); }, }, breakpoints: { setBreakpoint: function () { let e = this, { realIndex: t, initialized: i, params: r, el: n } = e, s = r.breakpoints; if (!s || (s && 0 === Object.keys(s).length)) return; let a = e.getBreakpoint(s, e.params.breakpointsBase, e.el); if (!a || e.currentBreakpoint === a) return; let o = (a in s ? s[a] : void 0) || e.originalParams, c = k(e, r), d = k(e, o), u = e.params.grabCursor, p = o.grabCursor, h = r.enabled; c && !d ? (n.classList.remove( "".concat(r.containerModifierClass, "grid"), "".concat(r.containerModifierClass, "grid-column") ), e.emitContainerClasses()) : !c && d && (n.classList.add("".concat(r.containerModifierClass, "grid")), ((o.grid.fill && "column" === o.grid.fill) || (!o.grid.fill && "column" === r.grid.fill)) && n.classList.add( "".concat(r.containerModifierClass, "grid-column") ), e.emitContainerClasses()), u && !p ? e.unsetGrabCursor() : !u && p && e.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((t) => { if (void 0 === o[t]) return; let i = r[t] && r[t].enabled, n = o[t] && o[t].enabled; i && !n && e[t].disable(), !i && n && e[t].enable(); }); let f = o.direction && o.direction !== r.direction, m = r.loop && (o.slidesPerView !== r.slidesPerView || f), v = r.loop; f && i && e.changeDirection(), (0, l.w)(e.params, o); let g = e.params.enabled, y = e.params.loop; Object.assign(e, { allowTouchMove: e.params.allowTouchMove, allowSlideNext: e.params.allowSlideNext, allowSlidePrev: e.params.allowSlidePrev, }), h && !g ? e.disable() : !h && g && e.enable(), (e.currentBreakpoint = a), e.emit("_beforeBreakpoint", o), i && (m ? (e.loopDestroy(), e.loopCreate(t), e.updateSlides()) : !v && y ? (e.loopCreate(t), e.updateSlides()) : v && !y && e.loopDestroy()), e.emit("breakpoint", o); }, getBreakpoint: function (e, t, i) { if ( (void 0 === t && (t = "window"), !e || ("container" === t && !i)) ) return; let r = !1, n = (0, o.a)(), s = "window" === t ? n.innerHeight : i.clientHeight, a = Object.keys(e).map((e) => "string" == typeof e && 0 === e.indexOf("@") ? { value: s * parseFloat(e.substr(1)), point: e } : { value: e, point: e } ); a.sort((e, t) => parseInt(e.value, 10) - parseInt(t.value, 10)); for (let e = 0; e < a.length; e += 1) { let { point: s, value: o } = a[e]; "window" === t ? n.matchMedia("(min-width: ".concat(o, "px)")).matches && (r = s) : o <= i.clientWidth && (r = s); } return r || "max"; }, }, checkOverflow: { checkOverflow: function () { let { isLocked: e, params: t } = this, { slidesOffsetBefore: i } = t; if (i) { let e = this.slides.length - 1, t = this.slidesGrid[e] + this.slidesSizesGrid[e] + 2 * i; this.isLocked = this.size > t; } else this.isLocked = 1 === this.snapGrid.length; !0 === t.allowSlideNext && (this.allowSlideNext = !this.isLocked), !0 === t.allowSlidePrev && (this.allowSlidePrev = !this.isLocked), e && e !== this.isLocked && (this.isEnd = !1), e !== this.isLocked && this.emit(this.isLocked ? "lock" : "unlock"); }, }, classes: { addClasses: function () { let { classNames: e, params: t, rtl: i, el: r, device: n } = this, s = (function (e, t) { let i = []; return ( e.forEach((e) => { "object" == typeof e ? Object.keys(e).forEach((r) => { e[r] && i.push(t + r); }) : "string" == typeof e && i.push(t + e); }), i ); })( [ "initialized", t.direction, { "free-mode": this.params.freeMode && t.freeMode.enabled }, { autoheight: t.autoHeight }, { rtl: i }, { grid: t.grid && t.grid.rows > 1 }, { "grid-column": t.grid && t.grid.rows > 1 && "column" === t.grid.fill, }, { android: n.android }, { ios: n.ios }, { "css-mode": t.cssMode }, { centered: t.cssMode && t.centeredSlides }, { "watch-progress": t.watchSlidesProgress }, ], t.containerModifierClass ); e.push(...s), r.classList.add(...e), this.emitContainerClasses(); }, removeClasses: function () { let { el: e, classNames: t } = this; e && "string" != typeof e && (e.classList.remove(...t), this.emitContainerClasses()); }, }, }, M = {}; class O { getDirectionLabel(e) { return this.isHorizontal() ? e : { width: "height", "margin-top": "margin-left", "margin-bottom ": "margin-right", "margin-left": "margin-top", "margin-right": "margin-bottom", "padding-left": "padding-top", "padding-right": "padding-bottom", marginRight: "marginBottom", }[e]; } getSlideIndex(e) { let { slidesEl: t, params: i } = this, r = (0, l.e)(t, ".".concat(i.slideClass, ", swiper-slide")), n = (0, l.h)(r[0]); return (0, l.h)(e) - n; } getSlideIndexByData(e) { return this.getSlideIndex( this.slides.filter( (t) => 1 * t.getAttribute("data-swiper-slide-index") === e )[0] ); } recalcSlides() { let { slidesEl: e, params: t } = this; this.slides = (0, l.e)(e, ".".concat(t.slideClass, ", swiper-slide")); } enable() { this.enabled || ((this.enabled = !0), this.params.grabCursor && this.setGrabCursor(), this.emit("enable")); } disable() { this.enabled && ((this.enabled = !1), this.params.grabCursor && this.unsetGrabCursor(), this.emit("disable")); } setProgress(e, t) { e = Math.min(Math.max(e, 0), 1); let i = this.minTranslate(), r = (this.maxTranslate() - i) * e + i; this.translateTo(r, void 0 === t ? 0 : t), this.updateActiveIndex(), this.updateSlidesClasses(); } emitContainerClasses() { let e = this; if (!e.params._emitClasses || !e.el) return; let t = e.el.className .split(" ") .filter( (t) => 0 === t.indexOf("swiper") || 0 === t.indexOf(e.params.containerModifierClass) ); e.emit("_containerClasses", t.join(" ")); } getSlideClasses(e) { let t = this; return t.destroyed ? "" : e.className .split(" ") .filter( (e) => 0 === e.indexOf("swiper-slide") || 0 === e.indexOf(t.params.slideClass) ) .join(" "); } emitSlidesClasses() { let e = this; if (!e.params._emitClasses || !e.el) return; let t = []; e.slides.forEach((i) => { let r = e.getSlideClasses(i); t.push({ slideEl: i, classNames: r }), e.emit("_slideClass", i, r); }), e.emit("_slideClasses", t); } slidesPerViewDynamic(e, t) { void 0 === e && (e = "current"), void 0 === t && (t = !1); let { params: i, slides: r, slidesGrid: n, slidesSizesGrid: s, size: a, activeIndex: o, } = this, l = 1; if ("number" == typeof i.slidesPerView) return i.slidesPerView; if (i.centeredSlides) { let e, t = r[o] ? Math.ceil(r[o].swiperSlideSize) : 0; for (let i = o + 1; i < r.length; i += 1) r[i] && !e && ((t += Math.ceil(r[i].swiperSlideSize)), (l += 1), t > a && (e = !0)); for (let i = o - 1; i >= 0; i -= 1) r[i] && !e && ((t += r[i].swiperSlideSize), (l += 1), t > a && (e = !0)); } else if ("current" === e) for (let e = o + 1; e < r.length; e += 1) (t ? n[e] + s[e] - n[o] < a : n[e] - n[o] < a) && (l += 1); else for (let e = o - 1; e >= 0; e -= 1) n[o] - n[e] < a && (l += 1); return l; } update() { let e; let t = this; if (!t || t.destroyed) return; let { snapGrid: i, params: r } = t; function n() { let e = Math.min( Math.max( t.rtlTranslate ? -1 * t.translate : t.translate, t.maxTranslate() ), t.minTranslate() ); t.setTranslate(e), t.updateActiveIndex(), t.updateSlidesClasses(); } if ( (r.breakpoints && t.setBreakpoint(), [...t.el.querySelectorAll('[loading="lazy"]')].forEach((e) => { e.complete && h(t, e); }), t.updateSize(), t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), r.freeMode && r.freeMode.enabled && !r.cssMode) ) n(), r.autoHeight && t.updateAutoHeight(); else { if ( ("auto" === r.slidesPerView || r.slidesPerView > 1) && t.isEnd && !r.centeredSlides ) { let i = t.virtual && r.virtual.enabled ? t.virtual.slides : t.slides; e = t.slideTo(i.length - 1, 0, !1, !0); } else e = t.slideTo(t.activeIndex, 0, !1, !0); e || n(); } r.watchOverflow && i !== t.snapGrid && t.checkOverflow(), t.emit("update"); } changeDirection(e, t) { void 0 === t && (t = !0); let i = this.params.direction; return ( e || (e = "horizontal" === i ? "vertical" : "horizontal"), e === i || ("horizontal" !== e && "vertical" !== e) || (this.el.classList.remove( "".concat(this.params.containerModifierClass).concat(i) ), this.el.classList.add( "".concat(this.params.containerModifierClass).concat(e) ), this.emitContainerClasses(), (this.params.direction = e), this.slides.forEach((t) => { "vertical" === e ? (t.style.width = "") : (t.style.height = ""); }), this.emit("changeDirection"), t && this.update()), this ); } changeLanguageDirection(e) { (!this.rtl || "rtl" !== e) && (this.rtl || "ltr" !== e) && ((this.rtl = "rtl" === e), (this.rtlTranslate = "horizontal" === this.params.direction && this.rtl), this.rtl ? (this.el.classList.add( "".concat(this.params.containerModifierClass, "rtl") ), (this.el.dir = "rtl")) : (this.el.classList.remove( "".concat(this.params.containerModifierClass, "rtl") ), (this.el.dir = "ltr")), this.update()); } mount(e) { let t = this; if (t.mounted) return !0; let i = e || t.params.el; if (("string" == typeof i && (i = document.querySelector(i)), !i)) return !1; (i.swiper = t), i.parentNode && i.parentNode.host && i.parentNode.host.nodeName === t.params.swiperElementNodeName.toUpperCase() && (t.isElement = !0); let r = () => ".".concat( (t.params.wrapperClass || "").trim().split(" ").join(".") ), n = i && i.shadowRoot && i.shadowRoot.querySelector ? i.shadowRoot.querySelector(r()) : (0, l.e)(i, r())[0]; return ( !n && t.params.createElements && ((n = (0, l.c)("div", t.params.wrapperClass)), i.append(n), (0, l.e)(i, ".".concat(t.params.slideClass)).forEach((e) => { n.append(e); })), Object.assign(t, { el: i, wrapperEl: n, slidesEl: t.isElement && !i.parentNode.host.slideSlots ? i.parentNode.host : n, hostEl: t.isElement ? i.parentNode.host : i, mounted: !0, rtl: "rtl" === i.dir.toLowerCase() || "rtl" === (0, l.p)(i, "direction"), rtlTranslate: "horizontal" === t.params.direction && ("rtl" === i.dir.toLowerCase() || "rtl" === (0, l.p)(i, "direction")), wrongRTL: "-webkit-box" === (0, l.p)(n, "display"), }), !0 ); } init(e) { let t = this; if (t.initialized || !1 === t.mount(e)) return t; t.emit("beforeInit"), t.params.breakpoints && t.setBreakpoint(), t.addClasses(), t.updateSize(), t.updateSlides(), t.params.watchOverflow && t.checkOverflow(), t.params.grabCursor && t.enabled && t.setGrabCursor(), t.params.loop && t.virtual && t.params.virtual.enabled ? t.slideTo( t.params.initialSlide + t.virtual.slidesBefore, 0, t.params.runCallbacksOnInit, !1, !0 ) : t.slideTo( t.params.initialSlide, 0, t.params.runCallbacksOnInit, !1, !0 ), t.params.loop && t.loopCreate(), t.attachEvents(); let i = [...t.el.querySelectorAll('[loading="lazy"]')]; return ( t.isElement && i.push(...t.hostEl.querySelectorAll('[loading="lazy"]')), i.forEach((e) => { e.complete ? h(t, e) : e.addEventListener("load", (e) => { h(t, e.target); }); }), m(t), (t.initialized = !0), m(t), t.emit("init"), t.emit("afterInit"), t ); } destroy(e, t) { void 0 === e && (e = !0), void 0 === t && (t = !0); let i = this, { params: r, el: n, wrapperEl: s, slides: a } = i; return ( void 0 === i.params || i.destroyed || (i.emit("beforeDestroy"), (i.initialized = !1), i.detachEvents(), r.loop && i.loopDestroy(), t && (i.removeClasses(), n && "string" != typeof n && n.removeAttribute("style"), s && s.removeAttribute("style"), a && a.length && a.forEach((e) => { e.classList.remove( r.slideVisibleClass, r.slideFullyVisibleClass, r.slideActiveClass, r.slideNextClass, r.slidePrevClass ), e.removeAttribute("style"), e.removeAttribute("data-swiper-slide-index"); })), i.emit("destroy"), Object.keys(i.eventsListeners).forEach((e) => { i.off(e); }), !1 !== e && (i.el && "string" != typeof i.el && (i.el.swiper = null), (0, l.x)(i)), (i.destroyed = !0)), null ); } static extendDefaults(e) { (0, l.w)(M, e); } static get extendedDefaults() { return M; } static get defaults() { return L; } static installModule(e) { O.prototype.__modules__ || (O.prototype.__modules__ = []); let t = O.prototype.__modules__; "function" == typeof e && 0 > t.indexOf(e) && t.push(e); } static use(e) { return ( Array.isArray(e) ? e.forEach((e) => O.installModule(e)) : O.installModule(e), O ); } constructor() { let e, t; for (var i = arguments.length, r = Array(i), n = 0; n < i; n++) r[n] = arguments[n]; 1 === r.length && r[0].constructor && "Object" === Object.prototype.toString.call(r[0]).slice(8, -1) ? (t = r[0]) : ([e, t] = r), t || (t = {}), (t = (0, l.w)({}, t)), e && !t.el && (t.el = e); let a = (0, o.g)(); if ( t.el && "string" == typeof t.el && a.querySelectorAll(t.el).length > 1 ) { let e = []; return ( a.querySelectorAll(t.el).forEach((i) => { let r = (0, l.w)({}, t, { el: i }); e.push(new O(r)); }), e ); } let u = this; (u.__swiper__ = !0), (u.support = c()), (u.device = d({ userAgent: t.userAgent })), (u.browser = (s || (s = (function () { let e = (0, o.a)(), t = d(), i = !1; function r() { let t = e.navigator.userAgent.toLowerCase(); return ( t.indexOf("safari") >= 0 && 0 > t.indexOf("chrome") && 0 > t.indexOf("android") ); } if (r()) { let t = String(e.navigator.userAgent); if (t.includes("Version/")) { let [e, r] = t .split("Version/")[1] .split(" ")[0] .split(".") .map((e) => Number(e)); i = e < 16 || (16 === e && r < 2); } } let n = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test( e.navigator.userAgent ), s = r(), a = s || (n && t.ios); return { isSafari: i || s, needPerspectiveFix: i, need3dFix: a, isWebView: n, }; })()), s)), (u.eventsListeners = {}), (u.eventsAnyListeners = []), (u.modules = [...u.__modules__]), t.modules && Array.isArray(t.modules) && u.modules.push(...t.modules); let p = {}; u.modules.forEach((e) => { var i; e({ params: t, swiper: u, extendParams: ((i = t), function (e) { void 0 === e && (e = {}); let t = Object.keys(e)[0], r = e[t]; if ( "object" != typeof r || null === r || (!0 === i[t] && (i[t] = { enabled: !0 }), "navigation" === t && i[t] && i[t].enabled && !i[t].prevEl && !i[t].nextEl && (i[t].auto = !0), ["pagination", "scrollbar"].indexOf(t) >= 0 && i[t] && i[t].enabled && !i[t].el && (i[t].auto = !0), !(t in i && "enabled" in r)) ) { (0, l.w)(p, e); return; } "object" != typeof i[t] || "enabled" in i[t] || (i[t].enabled = !0), i[t] || (i[t] = { enabled: !1 }), (0, l.w)(p, e); }), on: u.on.bind(u), once: u.once.bind(u), off: u.off.bind(u), emit: u.emit.bind(u), }); }); let h = (0, l.w)({}, L, p); return ( (u.params = (0, l.w)({}, h, M, t)), (u.originalParams = (0, l.w)({}, u.params)), (u.passedParams = (0, l.w)({}, t)), u.params && u.params.on && Object.keys(u.params.on).forEach((e) => { u.on(e, u.params.on[e]); }), u.params && u.params.onAny && u.onAny(u.params.onAny), Object.assign(u, { enabled: u.params.enabled, el: e, classNames: [], slides: [], slidesGrid: [], snapGrid: [], slidesSizesGrid: [], isHorizontal: () => "horizontal" === u.params.direction, isVertical: () => "vertical" === u.params.direction, activeIndex: 0, realIndex: 0, isBeginning: !0, isEnd: !1, translate: 0, previousTranslate: 0, progress: 0, velocity: 0, animating: !1, cssOverflowAdjustment() { return 8388608 * Math.trunc(this.translate / 8388608); }, allowSlideNext: u.params.allowSlideNext, allowSlidePrev: u.params.allowSlidePrev, touchEventsData: { isTouched: void 0, isMoved: void 0, allowTouchCallbacks: void 0, touchStartTime: void 0, isScrolling: void 0, currentTranslate: void 0, startTranslate: void 0, allowThresholdMove: void 0, focusableElements: u.params.focusableElements, lastClickTime: 0, clickTimeout: void 0, velocities: [], allowMomentumBounce: void 0, startMoving: void 0, pointerId: null, touchId: null, }, allowClick: !0, allowTouchMove: u.params.allowTouchMove, touches: { startX: 0, startY: 0, currentX: 0, currentY: 0, diff: 0, }, imagesToLoad: [], imagesLoaded: 0, }), u.emit("_swiper"), u.params.init && u.init(), u ); } } Object.keys(P).forEach((e) => { Object.keys(P[e]).forEach((t) => { O.prototype[t] = P[e][t]; }); }), O.use([ function (e) { let { swiper: t, on: i, emit: r } = e, n = (0, o.a)(), s = null, a = null, l = () => { t && !t.destroyed && t.initialized && (r("beforeResize"), r("resize")); }, c = () => { t && !t.destroyed && t.initialized && (s = new ResizeObserver((e) => { a = n.requestAnimationFrame(() => { let { width: i, height: r } = t, n = i, s = r; e.forEach((e) => { let { contentBoxSize: i, contentRect: r, target: a, } = e; (a && a !== t.el) || ((n = r ? r.width : (i[0] || i).inlineSize), (s = r ? r.height : (i[0] || i).blockSize)); }), (n !== i || s !== r) && l(); }); })).observe(t.el); }, d = () => { a && n.cancelAnimationFrame(a), s && s.unobserve && t.el && (s.unobserve(t.el), (s = null)); }, u = () => { t && !t.destroyed && t.initialized && r("orientationchange"); }; i("init", () => { if (t.params.resizeObserver && void 0 !== n.ResizeObserver) { c(); return; } n.addEventListener("resize", l), n.addEventListener("orientationchange", u); }), i("destroy", () => { d(), n.removeEventListener("resize", l), n.removeEventListener("orientationchange", u); }); }, function (e) { let { swiper: t, extendParams: i, on: r, emit: n } = e, s = [], a = (0, o.a)(), c = function (e, i) { void 0 === i && (i = {}); let r = new (a.MutationObserver || a.WebkitMutationObserver)( (e) => { if (t.__preventObserver__) return; if (1 === e.length) { n("observerUpdate", e[0]); return; } let i = function () { n("observerUpdate", e[0]); }; a.requestAnimationFrame ? a.requestAnimationFrame(i) : a.setTimeout(i, 0); } ); r.observe(e, { attributes: void 0 === i.attributes || i.attributes, childList: t.isElement || (void 0 === i.childList || i).childList, characterData: void 0 === i.characterData || i.characterData, }), s.push(r); }; i({ observer: !1, observeParents: !1, observeSlideChildren: !1 }), r("init", () => { if (t.params.observer) { if (t.params.observeParents) { let e = (0, l.a)(t.hostEl); for (let t = 0; t < e.length; t += 1) c(e[t]); } c(t.hostEl, { childList: t.params.observeSlideChildren }), c(t.wrapperEl, { attributes: !1 }); } }), r("destroy", () => { s.forEach((e) => { e.disconnect(); }), s.splice(0, s.length); }); }, ]); let I = [ "eventsPrefix", "injectStyles", "injectStylesUrls", "modules", "init", "_direction", "oneWayMovement", "swiperElementNodeName", "touchEventsTarget", "initialSlide", "_speed", "cssMode", "updateOnWindowResize", "resizeObserver", "nested", "focusableElements", "_enabled", "_width", "_height", "preventInteractionOnTransition", "userAgent", "url", "_edgeSwipeDetection", "_edgeSwipeThreshold", "_freeMode", "_autoHeight", "setWrapperSize", "virtualTranslate", "_effect", "breakpoints", "breakpointsBase", "_spaceBetween", "_slidesPerView", "maxBackfaceHiddenSlides", "_grid", "_slidesPerGroup", "_slidesPerGroupSkip", "_slidesPerGroupAuto", "_centeredSlides", "_centeredSlidesBounds", "_slidesOffsetBefore", "_slidesOffsetAfter", "normalizeSlideIndex", "_centerInsufficientSlides", "_watchOverflow", "roundLengths", "touchRatio", "touchAngle", "simulateTouch", "_shortSwipes", "_longSwipes", "longSwipesRatio", "longSwipesMs", "_followFinger", "allowTouchMove", "_threshold", "touchMoveStopPropagation", "touchStartPreventDefault", "touchStartForcePreventDefault", "touchReleaseOnEdges", "uniqueNavElements", "_resistance", "_resistanceRatio", "_watchSlidesProgress", "_grabCursor", "preventClicks", "preventClicksPropagation", "_slideToClickedSlide", "_loop", "loopAdditionalSlides", "loopAddBlankSlides", "loopPreventsSliding", "_rewind", "_allowSlidePrev", "_allowSlideNext", "_swipeHandler", "_noSwiping", "noSwipingClass", "noSwipingSelector", "passiveListeners", "containerModifierClass", "slideClass", "slideActiveClass", "slideVisibleClass", "slideFullyVisibleClass", "slideNextClass", "slidePrevClass", "slideBlankClass", "wrapperClass", "lazyPreloaderClass", "lazyPreloadPrevNext", "runCallbacksOnInit", "observer", "observeParents", "observeSlideChildren", "a11y", "_autoplay", "_controller", "coverflowEffect", "cubeEffect", "fadeEffect", "flipEffect", "creativeEffect", "cardsEffect", "hashNavigation", "history", "keyboard", "mousewheel", "_navigation", "_pagination", "parallax", "_scrollbar", "_thumbs", "virtual", "zoom", "control", ]; function A(e) { return ( "object" == typeof e && null !== e && e.constructor && "Object" === Object.prototype.toString.call(e).slice(8, -1) && !e.__swiper__ ); } function z(e, t) { let i = ["__proto__", "constructor", "prototype"]; Object.keys(t) .filter((e) => 0 > i.indexOf(e)) .forEach((i) => { void 0 === e[i] ? (e[i] = t[i]) : A(t[i]) && A(e[i]) && Object.keys(t[i]).length > 0 ? t[i].__swiper__ ? (e[i] = t[i]) : z(e[i], t[i]) : (e[i] = t[i]); }); } function D(e) { return ( void 0 === e && (e = {}), e.navigation && void 0 === e.navigation.nextEl && void 0 === e.navigation.prevEl ); } function B(e) { return ( void 0 === e && (e = {}), e.pagination && void 0 === e.pagination.el ); } function N(e) { return ( void 0 === e && (e = {}), e.scrollbar && void 0 === e.scrollbar.el ); } function F(e) { void 0 === e && (e = ""); let t = e .split(" ") .map((e) => e.trim()) .filter((e) => !!e), i = []; return ( t.forEach((e) => { 0 > i.indexOf(e) && i.push(e); }), i.join(" ") ); } let R = (e) => { e && !e.destroyed && e.params.virtual && (!e.params.virtual || e.params.virtual.enabled) && (e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), e.parallax && e.params.parallax && e.params.parallax.enabled && e.parallax.setTranslate()); }; function j() { return (j = Object.assign ? Object.assign.bind() : function (e) { for (var t = 1; t < arguments.length; t++) { var i = arguments[t]; for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]); } return e; }).apply(this, arguments); } function G(e) { return ( e.type && e.type.displayName && e.type.displayName.includes("SwiperSlide") ); } function V(e, t) { return (0, a.useLayoutEffect)(e, t); } let H = (0, a.createContext)(null), W = (0, a.createContext)(null), U = (0, a.forwardRef)(function (e, t) { var i; let { className: r, tag: n = "div", wrapperTag: s = "div", children: o, onSwiper: l, ...c } = void 0 === e ? {} : e, d = !1, [u, p] = (0, a.useState)("swiper"), [h, f] = (0, a.useState)(null), [m, v] = (0, a.useState)(!1), g = (0, a.useRef)(!1), y = (0, a.useRef)(null), w = (0, a.useRef)(null), b = (0, a.useRef)(null), S = (0, a.useRef)(null), E = (0, a.useRef)(null), x = (0, a.useRef)(null), T = (0, a.useRef)(null), C = (0, a.useRef)(null), { params: _, passedParams: k, rest: P, events: M, } = (function (e, t) { void 0 === e && (e = {}), void 0 === t && (t = !0); let i = { on: {} }, r = {}, n = {}; z(i, L), (i._emitClasses = !0), (i.init = !1); let s = {}, a = I.map((e) => e.replace(/_/, "")); return ( Object.keys(Object.assign({}, e)).forEach((o) => { void 0 !== e[o] && (a.indexOf(o) >= 0 ? A(e[o]) ? ((i[o] = {}), (n[o] = {}), z(i[o], e[o]), z(n[o], e[o])) : ((i[o] = e[o]), (n[o] = e[o])) : 0 === o.search(/on[A-Z]/) && "function" == typeof e[o] ? t ? (r[ "".concat(o[2].toLowerCase()).concat(o.substr(3)) ] = e[o]) : (i.on[ "".concat(o[2].toLowerCase()).concat(o.substr(3)) ] = e[o]) : (s[o] = e[o])); }), ["navigation", "pagination", "scrollbar"].forEach((e) => { !0 === i[e] && (i[e] = {}), !1 === i[e] && delete i[e]; }), { params: i, passedParams: n, rest: s, events: r } ); })(c), { slides: H, slots: U } = (function (e) { let t = [], i = { "container-start": [], "container-end": [], "wrapper-start": [], "wrapper-end": [], }; return ( a.Children.toArray(e).forEach((e) => { if (G(e)) t.push(e); else if (e.props && e.props.slot && i[e.props.slot]) i[e.props.slot].push(e); else if (e.props && e.props.children) { let r = (function e(t) { let i = []; return ( a.Children.toArray(t).forEach((t) => { G(t) ? i.push(t) : t.props && t.props.children && e(t.props.children).forEach((e) => i.push(e)); }), i ); })(e.props.children); r.length > 0 ? r.forEach((e) => t.push(e)) : i["container-end"].push(e); } else i["container-end"].push(e); }), { slides: t, slots: i } ); })(o), q = () => { v(!m); }; Object.assign(_.on, { _containerClasses(e, t) { p(t); }, }); let X = () => { Object.assign(_.on, M), (d = !0); let e = { ..._ }; if ( (delete e.wrapperClass, (w.current = new O(e)), w.current.virtual && w.current.params.virtual.enabled) ) { w.current.virtual.slides = H; let e = { cache: !1, slides: H, renderExternal: f, renderExternalUpdate: !1, }; z(w.current.params.virtual, e), z(w.current.originalParams.virtual, e); } }; y.current || X(), w.current && w.current.on("_beforeBreakpoint", q); let $ = () => { !d && M && w.current && Object.keys(M).forEach((e) => { w.current.on(e, M[e]); }); }, Y = () => { M && w.current && Object.keys(M).forEach((e) => { w.current.off(e, M[e]); }); }; return ( (0, a.useEffect)(() => () => { w.current && w.current.off("_beforeBreakpoint", q); }), (0, a.useEffect)(() => { !g.current && w.current && (w.current.emitSlidesClasses(), (g.current = !0)); }), V(() => { if ((t && (t.current = y.current), y.current)) return ( w.current.destroyed && X(), (function (e, t) { let { el: i, nextEl: r, prevEl: n, paginationEl: s, scrollbarEl: a, swiper: o, } = e; D(t) && r && n && ((o.params.navigation.nextEl = r), (o.originalParams.navigation.nextEl = r), (o.params.navigation.prevEl = n), (o.originalParams.navigation.prevEl = n)), B(t) && s && ((o.params.pagination.el = s), (o.originalParams.pagination.el = s)), N(t) && a && ((o.params.scrollbar.el = a), (o.originalParams.scrollbar.el = a)), o.init(i); })( { el: y.current, nextEl: E.current, prevEl: x.current, paginationEl: T.current, scrollbarEl: C.current, swiper: w.current, }, _ ), l && !w.current.destroyed && l(w.current), () => { w.current && !w.current.destroyed && w.current.destroy(!0, !1); } ); }, []), V(() => { $(); let e = (function (e, t, i, r, n) { let s = []; if (!t) return s; let a = (e) => { 0 > s.indexOf(e) && s.push(e); }; if (i && r) { let e = r.map(n), t = i.map(n); e.join("") !== t.join("") && a("children"), r.length !== i.length && a("children"); } return ( I.filter((e) => "_" === e[0]) .map((e) => e.replace(/_/, "")) .forEach((i) => { if (i in e && i in t) { if (A(e[i]) && A(t[i])) { let r = Object.keys(e[i]), n = Object.keys(t[i]); r.length !== n.length ? a(i) : (r.forEach((r) => { e[i][r] !== t[i][r] && a(i); }), n.forEach((r) => { e[i][r] !== t[i][r] && a(i); })); } else e[i] !== t[i] && a(i); } }), s ); })(k, b.current, H, S.current, (e) => e.key); return ( (b.current = k), (S.current = H), e.length && w.current && !w.current.destroyed && (function (e) { let t, i, r, n, s, a, o, l, { swiper: c, slides: d, passedParams: u, changedParams: p, nextEl: h, prevEl: f, scrollbarEl: m, paginationEl: v, } = e, g = p.filter( (e) => "children" !== e && "direction" !== e && "wrapperClass" !== e ), { params: y, pagination: w, navigation: b, scrollbar: S, virtual: E, thumbs: x, } = c; p.includes("thumbs") && u.thumbs && u.thumbs.swiper && !u.thumbs.swiper.destroyed && y.thumbs && (!y.thumbs.swiper || y.thumbs.swiper.destroyed) && (t = !0), p.includes("controller") && u.controller && u.controller.control && y.controller && !y.controller.control && (i = !0), p.includes("pagination") && u.pagination && (u.pagination.el || v) && (y.pagination || !1 === y.pagination) && w && !w.el && (r = !0), p.includes("scrollbar") && u.scrollbar && (u.scrollbar.el || m) && (y.scrollbar || !1 === y.scrollbar) && S && !S.el && (n = !0), p.includes("navigation") && u.navigation && (u.navigation.prevEl || f) && (u.navigation.nextEl || h) && (y.navigation || !1 === y.navigation) && b && !b.prevEl && !b.nextEl && (s = !0); let T = (e) => { c[e] && (c[e].destroy(), "navigation" === e ? (c.isElement && (c[e].prevEl.remove(), c[e].nextEl.remove()), (y[e].prevEl = void 0), (y[e].nextEl = void 0), (c[e].prevEl = void 0), (c[e].nextEl = void 0)) : (c.isElement && c[e].el.remove(), (y[e].el = void 0), (c[e].el = void 0))); }; p.includes("loop") && c.isElement && (y.loop && !u.loop ? (a = !0) : !y.loop && u.loop ? (o = !0) : (l = !0)), g.forEach((e) => { if (A(y[e]) && A(u[e])) Object.assign(y[e], u[e]), ("navigation" === e || "pagination" === e || "scrollbar" === e) && "enabled" in u[e] && !u[e].enabled && T(e); else { let t = u[e]; (!0 === t || !1 === t) && ("navigation" === e || "pagination" === e || "scrollbar" === e) ? !1 === t && T(e) : (y[e] = u[e]); } }), g.includes("controller") && !i && c.controller && c.controller.control && y.controller && y.controller.control && (c.controller.control = y.controller.control), p.includes("children") && d && E && y.virtual.enabled ? ((E.slides = d), E.update(!0)) : p.includes("virtual") && E && y.virtual.enabled && (d && (E.slides = d), E.update(!0)), p.includes("children") && d && y.loop && (l = !0), t && x.init() && x.update(!0), i && (c.controller.control = y.controller.control), r && (c.isElement && (!v || "string" == typeof v) && ((v = document.createElement("div")).classList.add( "swiper-pagination" ), v.part.add("pagination"), c.el.appendChild(v)), v && (y.pagination.el = v), w.init(), w.render(), w.update()), n && (c.isElement && (!m || "string" == typeof m) && ((m = document.createElement("div")).classList.add( "swiper-scrollbar" ), m.part.add("scrollbar"), c.el.appendChild(m)), m && (y.scrollbar.el = m), S.init(), S.updateSize(), S.setTranslate()), s && (c.isElement && ((h && "string" != typeof h) || ((h = document.createElement("div")).classList.add( "swiper-button-next" ), (h.innerHTML = c.hostEl.constructor.nextButtonSvg), h.part.add("button-next"), c.el.appendChild(h)), (f && "string" != typeof f) || ((f = document.createElement("div")).classList.add( "swiper-button-prev" ), (f.innerHTML = c.hostEl.constructor.prevButtonSvg), f.part.add("button-prev"), c.el.appendChild(f))), h && (y.navigation.nextEl = h), f && (y.navigation.prevEl = f), b.init(), b.update()), p.includes("allowSlideNext") && (c.allowSlideNext = u.allowSlideNext), p.includes("allowSlidePrev") && (c.allowSlidePrev = u.allowSlidePrev), p.includes("direction") && c.changeDirection(u.direction, !1), (a || l) && c.loopDestroy(), (o || l) && c.loopCreate(), c.update(); })({ swiper: w.current, slides: H, passedParams: k, changedParams: e, nextEl: E.current, prevEl: x.current, scrollbarEl: C.current, paginationEl: T.current, }), () => { Y(); } ); }), V(() => { R(w.current); }, [h]), a.createElement( n, j( { ref: y, className: F("".concat(u).concat(r ? " ".concat(r) : "")), }, P ), a.createElement( W.Provider, { value: w.current }, U["container-start"], a.createElement( s, { className: (void 0 === (i = _.wrapperClass) && (i = ""), i) ? i.includes("swiper-wrapper") ? i : "swiper-wrapper ".concat(i) : "swiper-wrapper", }, U["wrapper-start"], _.virtual ? (function (e, t, i) { if (!i) return null; let r = (e) => { let i = e; return ( e < 0 ? (i = t.length + e) : i >= t.length && (i -= t.length), i ); }, n = e.isHorizontal() ? { [e.rtlTranslate ? "right" : "left"]: "".concat( i.offset, "px" ), } : { top: "".concat(i.offset, "px") }, { from: s, to: o } = i, l = e.params.loop ? -t.length : 0, c = e.params.loop ? 2 * t.length : t.length, d = []; for (let e = l; e < c; e += 1) e >= s && e <= o && d.push(t[r(e)]); return d.map((t, i) => a.cloneElement(t, { swiper: e, style: n, key: t.props.virtualIndex || t.key || "slide-".concat(i), }) ); })(w.current, H, h) : H.map((e, t) => a.cloneElement(e, { swiper: w.current, swiperSlideIndex: t, }) ), U["wrapper-end"] ), D(_) && a.createElement( a.Fragment, null, a.createElement("div", { ref: x, className: "swiper-button-prev", }), a.createElement("div", { ref: E, className: "swiper-button-next", }) ), N(_) && a.createElement("div", { ref: C, className: "swiper-scrollbar", }), B(_) && a.createElement("div", { ref: T, className: "swiper-pagination", }), U["container-end"] ) ) ); }); U.displayName = "Swiper"; let q = (0, a.forwardRef)(function (e, t) { let { tag: i = "div", children: r, className: n = "", swiper: s, zoom: o, lazy: l, virtualIndex: c, swiperSlideIndex: d, ...u } = void 0 === e ? {} : e, p = (0, a.useRef)(null), [h, f] = (0, a.useState)("swiper-slide"), [m, v] = (0, a.useState)(!1); function g(e, t, i) { t === p.current && f(i); } V(() => { if ( (void 0 !== d && (p.current.swiperSlideIndex = d), t && (t.current = p.current), p.current && s) ) { if (s.destroyed) { "swiper-slide" !== h && f("swiper-slide"); return; } return ( s.on("_slideClass", g), () => { s && s.off("_slideClass", g); } ); } }), V(() => { s && p.current && !s.destroyed && f(s.getSlideClasses(p.current)); }, [s]); let y = { isActive: h.indexOf("swiper-slide-active") >= 0, isVisible: h.indexOf("swiper-slide-visible") >= 0, isPrev: h.indexOf("swiper-slide-prev") >= 0, isNext: h.indexOf("swiper-slide-next") >= 0, }, w = () => ("function" == typeof r ? r(y) : r); return a.createElement( i, j( { ref: p, className: F("".concat(h).concat(n ? " ".concat(n) : "")), "data-swiper-slide-index": c, onLoad: () => { v(!0); }, }, u ), o && a.createElement( H.Provider, { value: y }, a.createElement( "div", { className: "swiper-zoom-container", "data-swiper-zoom": "number" == typeof o ? o : void 0, }, w(), l && !m && a.createElement("div", { className: "swiper-lazy-preloader" }) ) ), !o && a.createElement( H.Provider, { value: y }, w(), l && !m && a.createElement("div", { className: "swiper-lazy-preloader" }) ) ); }); q.displayName = "SwiperSlide"; }, 83638: function (e, t, i) { "use strict"; function r(e, t) { if (!e) throw Error("Invariant failed"); } i.d(t, { Z: function () { return r; }, }); }, 44055: function (e, t, i) { "use strict"; function r(e, t) { let [i, r = "0"] = e.split("."), n = i.startsWith("-"); if ((n && (i = i.slice(1)), (r = r.replace(/(0+)$/, "")), 0 === t)) 1 === Math.round(Number(".".concat(r))) && (i = "".concat(BigInt(i) + 1n)), (r = ""); else if (r.length > t) { let [e, n, s] = [r.slice(0, t - 1), r.slice(t - 1, t), r.slice(t)], a = Math.round(Number("".concat(n, ".").concat(s))); (r = a > 9 ? "" .concat(BigInt(e) + BigInt(1), "0") .padStart(e.length + 1, "0") : "".concat(e).concat(a)).length > t && ((r = r.slice(1)), (i = "".concat(BigInt(i) + 1n))), (r = r.slice(0, t)); } else r = r.padEnd(t, "0"); return BigInt( "" .concat(n ? "-" : "") .concat(i) .concat(r) ); } i.d(t, { v: function () { return r; }, }); }, 6566: function (e, t, i) { "use strict"; i.d(t, { A: function () { return l; }, }); var r = i(43078), n = i(5782), s = i(12829), a = i(27395), o = i(90749); function l() { var e, t; let i = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, { hash: l, query: c = {} } = i, d = (0, o.Z)(i), u = (0, a.x)(), p = (function (e) { let t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; return { async queryFn(i) { let { queryKey: n } = i, { hash: s, ...a } = n[1]; if (!s) throw Error("hash is required"); return (0, r.e)(e, { ...a, onReplaced: t.onReplaced, hash: s }); }, queryKey: (function () { let e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, { onReplaced: t, ...i } = e; return ["waitForTransactionReceipt", (0, n.O)(i)]; })(t), }; })(d, { ...i, chainId: null !== (e = i.chainId) && void 0 !== e ? e : u, }), h = !!(l && (null === (t = c.enabled) || void 0 === t || t)); return (0, s.aM)({ ...c, ...p, enabled: h }); } }, }, ]);