@bikematrix/web-components
Version:
A library of Bike Matrix web components
1,399 lines • 2.24 MB
JavaScript
var Ua, ge, Fh, Nh, Gn, Pp, Rh, Hu, Gh, Wa = {}, Qh = [], Z5 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, As = Array.isArray;
function en(n, e) {
for (var t in e)
n[t] = e[t];
return n;
}
function qh(n) {
var e = n.parentNode;
e && e.removeChild(n);
}
function te(n, e, t) {
var r, i, o, l = {};
for (o in e)
o == "key" ? r = e[o] : o == "ref" ? i = e[o] : l[o] = e[o];
if (arguments.length > 2 && (l.children = arguments.length > 3 ? Ua.call(arguments, 2) : t), typeof n == "function" && n.defaultProps != null)
for (o in n.defaultProps)
l[o] === void 0 && (l[o] = n.defaultProps[o]);
return Ea(n, l, r, i, null);
}
function Ea(n, e, t, r, i) {
var o = { type: n, props: e, key: t, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: i ?? ++Fh, __i: -1, __u: 0 };
return i == null && ge.vnode != null && ge.vnode(o), o;
}
function Y5() {
return { current: null };
}
function ie(n) {
return n.children;
}
function wr(n, e) {
this.props = n, this.context = e;
}
function Bi(n, e) {
if (e == null)
return n.__ ? Bi(n.__, n.__i + 1) : null;
for (var t; e < n.__k.length; e++)
if ((t = n.__k[e]) != null && t.__e != null)
return t.__e;
return typeof n.type == "function" ? Bi(n) : null;
}
function Vh(n) {
var e, t;
if ((n = n.__) != null && n.__c != null) {
for (n.__e = n.__c.base = null, e = 0; e < n.__k.length; e++)
if ((t = n.__k[e]) != null && t.__e != null) {
n.__e = n.__c.base = t.__e;
break;
}
return Vh(n);
}
}
function Au(n) {
(!n.__d && (n.__d = !0) && Gn.push(n) && !is.__r++ || Pp !== ge.debounceRendering) && ((Pp = ge.debounceRendering) || Rh)(is);
}
function is() {
var n, e, t, r, i, o, l, u, c;
for (Gn.sort(Hu); n = Gn.shift(); )
n.__d && (e = Gn.length, r = void 0, o = (i = (t = n).__v).__e, u = [], c = [], (l = t.__P) && ((r = en({}, i)).__v = i.__v + 1, ge.vnode && ge.vnode(r), oc(l, r, i, t.__n, l.ownerSVGElement !== void 0, 32 & i.__u ? [o] : null, u, o ?? Bi(i), !!(32 & i.__u), c), r.__v = i.__v, r.__.__k[r.__i] = r, Kh(u, r, c), r.__e != o && Vh(r)), Gn.length > e && Gn.sort(Hu));
is.__r = 0;
}
function Jh(n, e, t, r, i, o, l, u, c, f, p) {
var h, b, m, P, x, H = r && r.__k || Qh, C = e.length;
for (t.__d = c, F5(t, e, H), c = t.__d, h = 0; h < C; h++)
(m = t.__k[h]) != null && typeof m != "boolean" && typeof m != "function" && (b = m.__i === -1 ? Wa : H[m.__i] || Wa, m.__i = h, oc(n, m, b, i, o, l, u, c, f, p), P = m.__e, m.ref && b.ref != m.ref && (b.ref && sc(b.ref, null, m), p.push(m.ref, m.__c || P, m)), x == null && P != null && (x = P), 65536 & m.__u || b.__k === m.__k ? c = Uh(m, c, n) : typeof m.type == "function" && m.__d !== void 0 ? c = m.__d : P && (c = P.nextSibling), m.__d = void 0, m.__u &= -196609);
t.__d = c, t.__e = x;
}
function F5(n, e, t) {
var r, i, o, l, u, c = e.length, f = t.length, p = f, h = 0;
for (n.__k = [], r = 0; r < c; r++)
l = r + h, (i = n.__k[r] = (i = e[r]) == null || typeof i == "boolean" || typeof i == "function" ? null : typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? Ea(null, i, null, null, null) : As(i) ? Ea(ie, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? Ea(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i) != null ? (i.__ = n, i.__b = n.__b + 1, u = N5(i, t, l, p), i.__i = u, o = null, u !== -1 && (p--, (o = t[u]) && (o.__u |= 131072)), o == null || o.__v === null ? (u == -1 && h--, typeof i.type != "function" && (i.__u |= 65536)) : u !== l && (u === l + 1 ? h++ : u > l ? p > c - l ? h += u - l : h-- : u < l ? u == l - 1 && (h = u - l) : h = 0, u !== r + h && (i.__u |= 65536))) : (o = t[l]) && o.key == null && o.__e && !(131072 & o.__u) && (o.__e == n.__d && (n.__d = Bi(o)), Du(o, o, !1), t[l] = null, p--);
if (p)
for (r = 0; r < f; r++)
(o = t[r]) != null && !(131072 & o.__u) && (o.__e == n.__d && (n.__d = Bi(o)), Du(o, o));
}
function Uh(n, e, t) {
var r, i;
if (typeof n.type == "function") {
for (r = n.__k, i = 0; r && i < r.length; i++)
r[i] && (r[i].__ = n, e = Uh(r[i], e, t));
return e;
}
n.__e != e && (t.insertBefore(n.__e, e || null), e = n.__e);
do
e = e && e.nextSibling;
while (e != null && e.nodeType === 8);
return e;
}
function tn(n, e) {
return e = e || [], n == null || typeof n == "boolean" || (As(n) ? n.some(function(t) {
tn(t, e);
}) : e.push(n)), e;
}
function N5(n, e, t, r) {
var i = n.key, o = n.type, l = t - 1, u = t + 1, c = e[t];
if (c === null || c && i == c.key && o === c.type && !(131072 & c.__u))
return t;
if (r > (c != null && !(131072 & c.__u) ? 1 : 0))
for (; l >= 0 || u < e.length; ) {
if (l >= 0) {
if ((c = e[l]) && !(131072 & c.__u) && i == c.key && o === c.type)
return l;
l--;
}
if (u < e.length) {
if ((c = e[u]) && !(131072 & c.__u) && i == c.key && o === c.type)
return u;
u++;
}
}
return -1;
}
function kp(n, e, t) {
e[0] === "-" ? n.setProperty(e, t ?? "") : n[e] = t == null ? "" : typeof t != "number" || Z5.test(e) ? t : t + "px";
}
function Ro(n, e, t, r, i) {
var o;
e:
if (e === "style")
if (typeof t == "string")
n.style.cssText = t;
else {
if (typeof r == "string" && (n.style.cssText = r = ""), r)
for (e in r)
t && e in t || kp(n.style, e, "");
if (t)
for (e in t)
r && t[e] === r[e] || kp(n.style, e, t[e]);
}
else if (e[0] === "o" && e[1] === "n")
o = e !== (e = e.replace(/(PointerCapture)$|Capture$/i, "$1")), e = e.toLowerCase() in n ? e.toLowerCase().slice(2) : e.slice(2), n.l || (n.l = {}), n.l[e + o] = t, t ? r ? t.u = r.u : (t.u = Date.now(), n.addEventListener(e, o ? Cp : zp, o)) : n.removeEventListener(e, o ? Cp : zp, o);
else {
if (i)
e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
else if (e !== "width" && e !== "height" && e !== "href" && e !== "list" && e !== "form" && e !== "tabIndex" && e !== "download" && e !== "rowSpan" && e !== "colSpan" && e !== "role" && e in n)
try {
n[e] = t ?? "";
break e;
} catch {
}
typeof t == "function" || (t == null || t === !1 && e[4] !== "-" ? n.removeAttribute(e) : n.setAttribute(e, t));
}
}
function zp(n) {
if (this.l) {
var e = this.l[n.type + !1];
if (n.t) {
if (n.t <= e.u)
return;
} else
n.t = Date.now();
return e(ge.event ? ge.event(n) : n);
}
}
function Cp(n) {
if (this.l)
return this.l[n.type + !0](ge.event ? ge.event(n) : n);
}
function oc(n, e, t, r, i, o, l, u, c, f) {
var p, h, b, m, P, x, H, C, w, k, D, O, j, L, T, X = e.type;
if (e.constructor !== void 0)
return null;
128 & t.__u && (c = !!(32 & t.__u), o = [u = e.__e = t.__e]), (p = ge.__b) && p(e);
e:
if (typeof X == "function")
try {
if (C = e.props, w = (p = X.contextType) && r[p.__c], k = p ? w ? w.props.value : p.__ : r, t.__c ? H = (h = e.__c = t.__c).__ = h.__E : ("prototype" in X && X.prototype.render ? e.__c = h = new X(C, k) : (e.__c = h = new wr(C, k), h.constructor = X, h.render = G5), w && w.sub(h), h.props = C, h.state || (h.state = {}), h.context = k, h.__n = r, b = h.__d = !0, h.__h = [], h._sb = []), h.__s == null && (h.__s = h.state), X.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = en({}, h.__s)), en(h.__s, X.getDerivedStateFromProps(C, h.__s))), m = h.props, P = h.state, h.__v = e, b)
X.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), h.componentDidMount != null && h.__h.push(h.componentDidMount);
else {
if (X.getDerivedStateFromProps == null && C !== m && h.componentWillReceiveProps != null && h.componentWillReceiveProps(C, k), !h.__e && (h.shouldComponentUpdate != null && h.shouldComponentUpdate(C, h.__s, k) === !1 || e.__v === t.__v)) {
for (e.__v !== t.__v && (h.props = C, h.state = h.__s, h.__d = !1), e.__e = t.__e, e.__k = t.__k, e.__k.forEach(function(M) {
M && (M.__ = e);
}), D = 0; D < h._sb.length; D++)
h.__h.push(h._sb[D]);
h._sb = [], h.__h.length && l.push(h);
break e;
}
h.componentWillUpdate != null && h.componentWillUpdate(C, h.__s, k), h.componentDidUpdate != null && h.__h.push(function() {
h.componentDidUpdate(m, P, x);
});
}
if (h.context = k, h.props = C, h.__P = n, h.__e = !1, O = ge.__r, j = 0, "prototype" in X && X.prototype.render) {
for (h.state = h.__s, h.__d = !1, O && O(e), p = h.render(h.props, h.state, h.context), L = 0; L < h._sb.length; L++)
h.__h.push(h._sb[L]);
h._sb = [];
} else
do
h.__d = !1, O && O(e), p = h.render(h.props, h.state, h.context), h.state = h.__s;
while (h.__d && ++j < 25);
h.state = h.__s, h.getChildContext != null && (r = en(en({}, r), h.getChildContext())), b || h.getSnapshotBeforeUpdate == null || (x = h.getSnapshotBeforeUpdate(m, P)), Jh(n, As(T = p != null && p.type === ie && p.key == null ? p.props.children : p) ? T : [T], e, t, r, i, o, l, u, c, f), h.base = e.__e, e.__u &= -161, h.__h.length && l.push(h), H && (h.__E = h.__ = null);
} catch (M) {
e.__v = null, c || o != null ? (e.__e = u, e.__u |= c ? 160 : 32, o[o.indexOf(u)] = null) : (e.__e = t.__e, e.__k = t.__k), ge.__e(M, e, t);
}
else
o == null && e.__v === t.__v ? (e.__k = t.__k, e.__e = t.__e) : e.__e = R5(t.__e, e, t, r, i, o, l, c, f);
(p = ge.diffed) && p(e);
}
function Kh(n, e, t) {
e.__d = void 0;
for (var r = 0; r < t.length; r++)
sc(t[r], t[++r], t[++r]);
ge.__c && ge.__c(e, n), n.some(function(i) {
try {
n = i.__h, i.__h = [], n.some(function(o) {
o.call(i);
});
} catch (o) {
ge.__e(o, i.__v);
}
});
}
function R5(n, e, t, r, i, o, l, u, c) {
var f, p, h, b, m, P, x, H = t.props, C = e.props, w = e.type;
if (w === "svg" && (i = !0), o != null) {
for (f = 0; f < o.length; f++)
if ((m = o[f]) && "setAttribute" in m == !!w && (w ? m.localName === w : m.nodeType === 3)) {
n = m, o[f] = null;
break;
}
}
if (n == null) {
if (w === null)
return document.createTextNode(C);
n = i ? document.createElementNS("http://www.w3.org/2000/svg", w) : document.createElement(w, C.is && C), o = null, u = !1;
}
if (w === null)
H === C || u && n.data === C || (n.data = C);
else {
if (o = o && Ua.call(n.childNodes), H = t.props || Wa, !u && o != null)
for (H = {}, f = 0; f < n.attributes.length; f++)
H[(m = n.attributes[f]).name] = m.value;
for (f in H)
m = H[f], f == "children" || (f == "dangerouslySetInnerHTML" ? h = m : f === "key" || f in C || Ro(n, f, null, m, i));
for (f in C)
m = C[f], f == "children" ? b = m : f == "dangerouslySetInnerHTML" ? p = m : f == "value" ? P = m : f == "checked" ? x = m : f === "key" || u && typeof m != "function" || H[f] === m || Ro(n, f, m, H[f], i);
if (p)
u || h && (p.__html === h.__html || p.__html === n.innerHTML) || (n.innerHTML = p.__html), e.__k = [];
else if (h && (n.innerHTML = ""), Jh(n, As(b) ? b : [b], e, t, r, i && w !== "foreignObject", o, l, o ? o[0] : t.__k && Bi(t, 0), u, c), o != null)
for (f = o.length; f--; )
o[f] != null && qh(o[f]);
u || (f = "value", P !== void 0 && (P !== n[f] || w === "progress" && !P || w === "option" && P !== H[f]) && Ro(n, f, P, H[f], !1), f = "checked", x !== void 0 && x !== n[f] && Ro(n, f, x, H[f], !1));
}
return n;
}
function sc(n, e, t) {
try {
typeof n == "function" ? n(e) : n.current = e;
} catch (r) {
ge.__e(r, t);
}
}
function Du(n, e, t) {
var r, i;
if (ge.unmount && ge.unmount(n), (r = n.ref) && (r.current && r.current !== n.__e || sc(r, null, e)), (r = n.__c) != null) {
if (r.componentWillUnmount)
try {
r.componentWillUnmount();
} catch (o) {
ge.__e(o, e);
}
r.base = r.__P = null, n.__c = void 0;
}
if (r = n.__k)
for (i = 0; i < r.length; i++)
r[i] && Du(r[i], e, t || typeof n.type != "function");
t || n.__e == null || qh(n.__e), n.__ = n.__e = n.__d = void 0;
}
function G5(n, e, t) {
return this.constructor(n, t);
}
function An(n, e, t) {
var r, i, o, l;
ge.__ && ge.__(n, e), i = (r = typeof t == "function") ? null : t && t.__k || e.__k, o = [], l = [], oc(e, n = (!r && t || e).__k = te(ie, null, [n]), i || Wa, Wa, e.ownerSVGElement !== void 0, !r && t ? [t] : i ? null : e.firstChild ? Ua.call(e.childNodes) : null, o, !r && t ? t : i ? i.__e : e.firstChild, r, l), Kh(o, n, l);
}
function lc(n, e) {
An(n, e, lc);
}
function uc(n, e, t) {
var r, i, o, l, u = en({}, n.props);
for (o in n.type && n.type.defaultProps && (l = n.type.defaultProps), e)
o == "key" ? r = e[o] : o == "ref" ? i = e[o] : u[o] = e[o] === void 0 && l !== void 0 ? l[o] : e[o];
return arguments.length > 2 && (u.children = arguments.length > 3 ? Ua.call(arguments, 2) : t), Ea(n.type, u, r || n.key, i || n.ref, null);
}
function Ka(n, e) {
var t = { __c: e = "__cC" + Gh++, __: n, Consumer: function(r, i) {
return r.children(i);
}, Provider: function(r) {
var i, o;
return this.getChildContext || (i = [], (o = {})[e] = this, this.getChildContext = function() {
return o;
}, this.shouldComponentUpdate = function(l) {
this.props.value !== l.value && i.some(function(u) {
u.__e = !0, Au(u);
});
}, this.sub = function(l) {
i.push(l);
var u = l.componentWillUnmount;
l.componentWillUnmount = function() {
i.splice(i.indexOf(l), 1), u && u.call(l);
};
}), r.children;
} };
return t.Provider.__ = t.Consumer.contextType = t;
}
Ua = Qh.slice, ge = { __e: function(n, e, t, r) {
for (var i, o, l; e = e.__; )
if ((i = e.__c) && !i.__)
try {
if ((o = i.constructor) && o.getDerivedStateFromError != null && (i.setState(o.getDerivedStateFromError(n)), l = i.__d), i.componentDidCatch != null && (i.componentDidCatch(n, r || {}), l = i.__d), l)
return i.__E = i;
} catch (u) {
n = u;
}
throw n;
} }, Fh = 0, Nh = function(n) {
return n != null && n.constructor == null;
}, wr.prototype.setState = function(n, e) {
var t;
t = this.__s != null && this.__s !== this.state ? this.__s : this.__s = en({}, this.state), typeof n == "function" && (n = n(en({}, t), this.props)), n && en(t, n), n != null && this.__v && (e && this._sb.push(e), Au(this));
}, wr.prototype.forceUpdate = function(n) {
this.__v && (this.__e = !0, n && this.__h.push(n), Au(this));
}, wr.prototype.render = ie, Gn = [], Rh = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Hu = function(n, e) {
return n.__v.__b - e.__v.__b;
}, is.__r = 0, Gh = 0;
function cc() {
return (cc = Object.assign ? Object.assign.bind() : function(n) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e];
for (var r in t)
Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
}
return n;
}).apply(this, arguments);
}
var Q5 = ["context", "children"];
function q5(n) {
this.getChildContext = function() {
return n.context;
};
var e = n.children, t = function(r, i) {
if (r == null)
return {};
var o, l, u = {}, c = Object.keys(r);
for (l = 0; l < c.length; l++)
i.indexOf(o = c[l]) >= 0 || (u[o] = r[o]);
return u;
}(n, Q5);
return uc(e, t);
}
function V5() {
var n = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
this.dispatchEvent(n), this._vdom = te(q5, cc({}, this._props, { context: n.detail.context }), function e(t, r) {
if (t.nodeType === 3)
return t.data;
if (t.nodeType !== 1)
return null;
var i = [], o = {}, l = 0, u = t.attributes, c = t.childNodes;
for (l = u.length; l--; )
u[l].name !== "slot" && (o[u[l].name] = u[l].value, o[_h(u[l].name)] = u[l].value);
for (l = c.length; l--; ) {
var f = e(c[l], null), p = c[l].slot;
p ? o[p] = te(Hp, { name: p }, f) : i[l] = f;
}
var h = r ? te(Hp, null, i) : i;
return te(r || t.nodeName.toLowerCase(), o, h);
}(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? lc : An)(this._vdom, this._root);
}
function _h(n) {
return n.replace(/-(\w)/g, function(e, t) {
return t ? t.toUpperCase() : "";
});
}
function J5(n, e, t) {
if (this._vdom) {
var r = {};
r[n] = t = t ?? void 0, r[_h(n)] = t, this._vdom = uc(this._vdom, r), An(this._vdom, this._root);
}
}
function U5() {
An(this._vdom = null, this._root);
}
function Hp(n, e) {
var t = this;
return te("slot", cc({}, n, { ref: function(r) {
r ? (t.ref = r, t._listener || (t._listener = function(i) {
i.stopPropagation(), i.detail.context = e;
}, r.addEventListener("_preact", t._listener))) : t.ref.removeEventListener("_preact", t._listener);
} }));
}
function K5(n, e, t, r) {
function i() {
var o = Reflect.construct(HTMLElement, [], i);
return o._vdomComponent = n, o._root = r && r.shadow ? o.attachShadow({ mode: r.mode || "open" }) : o, o;
}
return (i.prototype = Object.create(HTMLElement.prototype)).constructor = i, i.prototype.connectedCallback = V5, i.prototype.attributeChangedCallback = J5, i.prototype.disconnectedCallback = U5, t = t || n.observedAttributes || Object.keys(n.propTypes || {}), i.observedAttributes = t, t.forEach(function(o) {
Object.defineProperty(i.prototype, o, { get: function() {
return this._vdom.props[o];
}, set: function(l) {
this._vdom ? this.attributeChangedCallback(o, null, l) : (this._props || (this._props = {}), this._props[o] = l, this.connectedCallback());
var u = typeof l;
l != null && u !== "string" && u !== "boolean" && u !== "number" || this.setAttribute(o, l);
} });
}), customElements.define(e || n.tagName || n.displayName || n.name, i);
}
var Dn, Fe, nu, Ap, ji = 0, $h = [], Ko = [], qe = ge, Dp = qe.__b, Op = qe.__r, Xp = qe.diffed, Ep = qe.__c, Lp = qe.unmount, Bp = qe.__;
function Gi(n, e) {
qe.__h && qe.__h(Fe, n, ji || e), ji = 0;
var t = Fe.__H || (Fe.__H = { __: [], __h: [] });
return n >= t.__.length && t.__.push({ __V: Ko }), t.__[n];
}
function $(n) {
return ji = 1, e2(r2, n);
}
function e2(n, e, t) {
var r = Gi(Dn++, 2);
if (r.t = n, !r.__c && (r.__ = [t ? t(e) : r2(void 0, e), function(u) {
var c = r.__N ? r.__N[0] : r.__[0], f = r.t(c, u);
c !== f && (r.__N = [f, r.__[1]], r.__c.setState({}));
}], r.__c = Fe, !Fe.u)) {
var i = function(u, c, f) {
if (!r.__c.__H)
return !0;
var p = r.__c.__H.__.filter(function(b) {
return !!b.__c;
});
if (p.every(function(b) {
return !b.__N;
}))
return !o || o.call(this, u, c, f);
var h = !1;
return p.forEach(function(b) {
if (b.__N) {
var m = b.__[0];
b.__ = b.__N, b.__N = void 0, m !== b.__[0] && (h = !0);
}
}), !(!h && r.__c.props === u) && (!o || o.call(this, u, c, f));
};
Fe.u = !0;
var o = Fe.shouldComponentUpdate, l = Fe.componentWillUpdate;
Fe.componentWillUpdate = function(u, c, f) {
if (this.__e) {
var p = o;
o = void 0, i(u, c, f), o = p;
}
l && l.call(this, u, c, f);
}, Fe.shouldComponentUpdate = i;
}
return r.__N || r.__;
}
function le(n, e) {
var t = Gi(Dn++, 3);
!qe.__s && fc(t.__H, e) && (t.__ = n, t.i = e, Fe.__H.__h.push(t));
}
function Qi(n, e) {
var t = Gi(Dn++, 4);
!qe.__s && fc(t.__H, e) && (t.__ = n, t.i = e, Fe.__h.push(t));
}
function ye(n) {
return ji = 5, Br(function() {
return { current: n };
}, []);
}
function _5(n, e, t) {
ji = 6, Qi(function() {
return typeof n == "function" ? (n(e()), function() {
return n(null);
}) : n ? (n.current = e(), function() {
return n.current = null;
}) : void 0;
}, t == null ? t : t.concat(n));
}
function Br(n, e) {
var t = Gi(Dn++, 7);
return fc(t.__H, e) ? (t.__V = n(), t.i = e, t.__h = n, t.__V) : t.__;
}
function t2(n, e) {
return ji = 8, Br(function() {
return n;
}, e);
}
function dc(n) {
var e = Fe.context[n.__c], t = Gi(Dn++, 9);
return t.c = n, e ? (t.__ == null && (t.__ = !0, e.sub(Fe)), e.props.value) : n.__;
}
function $5(n, e) {
qe.useDebugValue && qe.useDebugValue(e ? e(n) : n);
}
function e8() {
var n = Gi(Dn++, 11);
if (!n.__) {
for (var e = Fe.__v; e !== null && !e.__m && e.__ !== null; )
e = e.__;
var t = e.__m || (e.__m = [0, 0]);
n.__ = "P" + t[0] + "-" + t[1]++;
}
return n.__;
}
function t8() {
for (var n; n = $h.shift(); )
if (n.__P && n.__H)
try {
n.__H.__h.forEach(_o), n.__H.__h.forEach(Ou), n.__H.__h = [];
} catch (e) {
n.__H.__h = [], qe.__e(e, n.__v);
}
}
qe.__b = function(n) {
Fe = null, Dp && Dp(n);
}, qe.__ = function(n, e) {
n && e.__k && e.__k.__m && (n.__m = e.__k.__m), Bp && Bp(n, e);
}, qe.__r = function(n) {
Op && Op(n), Dn = 0;
var e = (Fe = n.__c).__H;
e && (nu === Fe ? (e.__h = [], Fe.__h = [], e.__.forEach(function(t) {
t.__N && (t.__ = t.__N), t.__V = Ko, t.__N = t.i = void 0;
})) : (e.__h.forEach(_o), e.__h.forEach(Ou), e.__h = [], Dn = 0)), nu = Fe;
}, qe.diffed = function(n) {
Xp && Xp(n);
var e = n.__c;
e && e.__H && (e.__H.__h.length && ($h.push(e) !== 1 && Ap === qe.requestAnimationFrame || ((Ap = qe.requestAnimationFrame) || r8)(t8)), e.__H.__.forEach(function(t) {
t.i && (t.__H = t.i), t.__V !== Ko && (t.__ = t.__V), t.i = void 0, t.__V = Ko;
})), nu = Fe = null;
}, qe.__c = function(n, e) {
e.some(function(t) {
try {
t.__h.forEach(_o), t.__h = t.__h.filter(function(r) {
return !r.__ || Ou(r);
});
} catch (r) {
e.some(function(i) {
i.__h && (i.__h = []);
}), e = [], qe.__e(r, t.__v);
}
}), Ep && Ep(n, e);
}, qe.unmount = function(n) {
Lp && Lp(n);
var e, t = n.__c;
t && t.__H && (t.__H.__.forEach(function(r) {
try {
_o(r);
} catch (i) {
e = i;
}
}), t.__H = void 0, e && qe.__e(e, t.__v));
};
var jp = typeof requestAnimationFrame == "function";
function r8(n) {
var e, t = function() {
clearTimeout(r), jp && cancelAnimationFrame(e), setTimeout(n);
}, r = setTimeout(t, 100);
jp && (e = requestAnimationFrame(t));
}
function _o(n) {
var e = Fe, t = n.__c;
typeof t == "function" && (n.__c = void 0, t()), Fe = e;
}
function Ou(n) {
var e = Fe;
n.__c = n.__(), Fe = e;
}
function fc(n, e) {
return !n || n.length !== e.length || e.some(function(t, r) {
return t !== n[r];
});
}
function r2(n, e) {
return typeof e == "function" ? e(n) : e;
}
function n2(n, e) {
for (var t in e)
n[t] = e[t];
return n;
}
function Xu(n, e) {
for (var t in n)
if (t !== "__source" && !(t in e))
return !0;
for (var r in e)
if (r !== "__source" && n[r] !== e[r])
return !0;
return !1;
}
function Eu(n, e) {
this.props = n, this.context = e;
}
function n8(n, e) {
function t(i) {
var o = this.props.ref, l = o == i.ref;
return !l && o && (o.call ? o(null) : o.current = null), e ? !e(this.props, i) || !l : Xu(this.props, i);
}
function r(i) {
return this.shouldComponentUpdate = t, te(n, i);
}
return r.displayName = "Memo(" + (n.displayName || n.name) + ")", r.prototype.isReactComponent = !0, r.__f = !0, r;
}
(Eu.prototype = new wr()).isPureReactComponent = !0, Eu.prototype.shouldComponentUpdate = function(n, e) {
return Xu(this.props, n) || Xu(this.state, e);
};
var Tp = ge.__b;
ge.__b = function(n) {
n.type && n.type.__f && n.ref && (n.props.ref = n.ref, n.ref = null), Tp && Tp(n);
};
var i8 = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
function pc(n) {
function e(t) {
var r = n2({}, t);
return delete r.ref, n(r, t.ref || null);
}
return e.$$typeof = i8, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (n.displayName || n.name) + ")", e;
}
var Ip = function(n, e) {
return n == null ? null : tn(tn(n).map(e));
}, a8 = { map: Ip, forEach: Ip, count: function(n) {
return n ? tn(n).length : 0;
}, only: function(n) {
var e = tn(n);
if (e.length !== 1)
throw "Children.only";
return e[0];
}, toArray: tn }, o8 = ge.__e;
ge.__e = function(n, e, t, r) {
if (n.then) {
for (var i, o = e; o = o.__; )
if ((i = o.__c) && i.__c)
return e.__e == null && (e.__e = t.__e, e.__k = t.__k), i.__c(n, e);
}
o8(n, e, t, r);
};
var Sp = ge.unmount;
function i2(n, e, t) {
return n && (n.__c && n.__c.__H && (n.__c.__H.__.forEach(function(r) {
typeof r.__c == "function" && r.__c();
}), n.__c.__H = null), (n = n2({}, n)).__c != null && (n.__c.__P === t && (n.__c.__P = e), n.__c = null), n.__k = n.__k && n.__k.map(function(r) {
return i2(r, e, t);
})), n;
}
function a2(n, e, t) {
return n && t && (n.__v = null, n.__k = n.__k && n.__k.map(function(r) {
return a2(r, e, t);
}), n.__c && n.__c.__P === e && (n.__e && t.appendChild(n.__e), n.__c.__e = !0, n.__c.__P = t)), n;
}
function $o() {
this.__u = 0, this.t = null, this.__b = null;
}
function o2(n) {
var e = n.__.__c;
return e && e.__a && e.__a(n);
}
function s8(n) {
var e, t, r;
function i(o) {
if (e || (e = n()).then(function(l) {
t = l.default || l;
}, function(l) {
r = l;
}), r)
throw r;
if (!t)
throw e;
return te(t, o);
}
return i.displayName = "Lazy", i.__f = !0, i;
}
function Ha() {
this.u = null, this.o = null;
}
ge.unmount = function(n) {
var e = n.__c;
e && e.__R && e.__R(), e && 32 & n.__u && (n.type = null), Sp && Sp(n);
}, ($o.prototype = new wr()).__c = function(n, e) {
var t = e.__c, r = this;
r.t == null && (r.t = []), r.t.push(t);
var i = o2(r.__v), o = !1, l = function() {
o || (o = !0, t.__R = null, i ? i(u) : u());
};
t.__R = l;
var u = function() {
if (!--r.__u) {
if (r.state.__a) {
var c = r.state.__a;
r.__v.__k[0] = a2(c, c.__c.__P, c.__c.__O);
}
var f;
for (r.setState({ __a: r.__b = null }); f = r.t.pop(); )
f.forceUpdate();
}
};
r.__u++ || 32 & e.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), n.then(l, l);
}, $o.prototype.componentWillUnmount = function() {
this.t = [];
}, $o.prototype.render = function(n, e) {
if (this.__b) {
if (this.__v.__k) {
var t = document.createElement("div"), r = this.__v.__k[0].__c;
this.__v.__k[0] = i2(this.__b, t, r.__O = r.__P);
}
this.__b = null;
}
var i = e.__a && te(ie, null, n.fallback);
return i && (i.__u &= -33), [te(ie, null, e.__a ? null : n.children), i];
};
var Mp = function(n, e, t) {
if (++t[1] === t[0] && n.o.delete(e), n.props.revealOrder && (n.props.revealOrder[0] !== "t" || !n.o.size))
for (t = n.u; t; ) {
for (; t.length > 3; )
t.pop()();
if (t[1] < t[0])
break;
n.u = t = t[2];
}
};
function l8(n) {
return this.getChildContext = function() {
return n.context;
}, n.children;
}
function u8(n) {
var e = this, t = n.i;
e.componentWillUnmount = function() {
An(null, e.l), e.l = null, e.i = null;
}, e.i && e.i !== t && e.componentWillUnmount(), e.l || (e.i = t, e.l = { nodeType: 1, parentNode: t, childNodes: [], appendChild: function(r) {
this.childNodes.push(r), e.i.appendChild(r);
}, insertBefore: function(r, i) {
this.childNodes.push(r), e.i.appendChild(r);
}, removeChild: function(r) {
this.childNodes.splice(this.childNodes.indexOf(r) >>> 1, 1), e.i.removeChild(r);
} }), An(te(l8, { context: e.context }, n.__v), e.l);
}
function c8(n, e) {
var t = te(u8, { __v: n, i: e });
return t.containerInfo = e, t;
}
(Ha.prototype = new wr()).__a = function(n) {
var e = this, t = o2(e.__v), r = e.o.get(n);
return r[0]++, function(i) {
var o = function() {
e.props.revealOrder ? (r.push(i), Mp(e, n, r)) : i();
};
t ? t(o) : o();
};
}, Ha.prototype.render = function(n) {
this.u = null, this.o = /* @__PURE__ */ new Map();
var e = tn(n.children);
n.revealOrder && n.revealOrder[0] === "b" && e.reverse();
for (var t = e.length; t--; )
this.o.set(e[t], this.u = [1, 0, this.u]);
return n.children;
}, Ha.prototype.componentDidUpdate = Ha.prototype.componentDidMount = function() {
var n = this;
this.o.forEach(function(e, t) {
Mp(n, t, e);
});
};
var s2 = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, d8 = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, f8 = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, p8 = /[A-Z0-9]/g, h8 = typeof document < "u", v8 = function(n) {
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n);
};
function g8(n, e, t) {
return e.__k == null && (e.textContent = ""), An(n, e), typeof t == "function" && t(), n ? n.__c : null;
}
function b8(n, e, t) {
return lc(n, e), typeof t == "function" && t(), n ? n.__c : null;
}
wr.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(n) {
Object.defineProperty(wr.prototype, n, { configurable: !0, get: function() {
return this["UNSAFE_" + n];
}, set: function(e) {
Object.defineProperty(this, n, { configurable: !0, writable: !0, value: e });
} });
});
var Wp = ge.event;
function m8() {
}
function y8() {
return this.cancelBubble;
}
function w8() {
return this.defaultPrevented;
}
ge.event = function(n) {
return Wp && (n = Wp(n)), n.persist = m8, n.isPropagationStopped = y8, n.isDefaultPrevented = w8, n.nativeEvent = n;
};
var hc, x8 = { enumerable: !1, configurable: !0, get: function() {
return this.class;
} }, Zp = ge.vnode;
ge.vnode = function(n) {
typeof n.type == "string" && function(e) {
var t = e.props, r = e.type, i = {};
for (var o in t) {
var l = t[o];
if (!(o === "value" && "defaultValue" in t && l == null || h8 && o === "children" && r === "noscript" || o === "class" || o === "className")) {
var u = o.toLowerCase();
o === "defaultValue" && "value" in t && t.value == null ? o = "value" : o === "download" && l === !0 ? l = "" : u === "translate" && l === "no" ? l = !1 : u === "ondoubleclick" ? o = "ondblclick" : u !== "onchange" || r !== "input" && r !== "textarea" || v8(t.type) ? u === "onfocus" ? o = "onfocusin" : u === "onblur" ? o = "onfocusout" : f8.test(o) ? o = u : r.indexOf("-") === -1 && d8.test(o) ? o = o.replace(p8, "-$&").toLowerCase() : l === null && (l = void 0) : u = o = "oninput", u === "oninput" && i[o = u] && (o = "oninputCapture"), i[o] = l;
}
}
r == "select" && i.multiple && Array.isArray(i.value) && (i.value = tn(t.children).forEach(function(c) {
c.props.selected = i.value.indexOf(c.props.value) != -1;
})), r == "select" && i.defaultValue != null && (i.value = tn(t.children).forEach(function(c) {
c.props.selected = i.multiple ? i.defaultValue.indexOf(c.props.value) != -1 : i.defaultValue == c.props.value;
})), t.class && !t.className ? (i.class = t.class, Object.defineProperty(i, "className", x8)) : (t.className && !t.class || t.class && t.className) && (i.class = i.className = t.className), e.props = i;
}(n), n.$$typeof = s2, Zp && Zp(n);
};
var Yp = ge.__r;
ge.__r = function(n) {
Yp && Yp(n), hc = n.__c;
};
var Fp = ge.diffed;
ge.diffed = function(n) {
Fp && Fp(n);
var e = n.props, t = n.__e;
t != null && n.type === "textarea" && "value" in e && e.value !== t.value && (t.value = e.value == null ? "" : e.value), hc = null;
};
var P8 = { ReactCurrentDispatcher: { current: { readContext: function(n) {
return hc.__n[n.__c].props.value;
} } } };
function k8(n) {
return te.bind(null, n);
}
function Ds(n) {
return !!n && n.$$typeof === s2;
}
function z8(n) {
return Ds(n) && n.type === ie;
}
function C8(n) {
return Ds(n) ? uc.apply(null, arguments) : n;
}
function H8(n) {
return !!n.__k && (An(null, n), !0);
}
function A8(n) {
return n && (n.base || n.nodeType === 1 && n) || null;
}
var D8 = function(n, e) {
return n(e);
}, O8 = function(n, e) {
return n(e);
}, X8 = ie;
function l2(n) {
n();
}
function E8(n) {
return n;
}
function L8() {
return [!1, l2];
}
var B8 = Qi, j8 = Ds;
function T8(n, e) {
var t = e(), r = $({ h: { __: t, v: e } }), i = r[0].h, o = r[1];
return Qi(function() {
i.__ = t, i.v = e, iu(i) && o({ h: i });
}, [n, t, e]), le(function() {
return iu(i) && o({ h: i }), n(function() {
iu(i) && o({ h: i });
});
}, [n]), t;
}
function iu(n) {
var e, t, r = n.v, i = n.__;
try {
var o = r();
return !((e = i) === (t = o) && (e !== 0 || 1 / e == 1 / t) || e != e && t != t);
} catch {
return !0;
}
}
var st = { useState: $, useId: e8, useReducer: e2, useEffect: le, useLayoutEffect: Qi, useInsertionEffect: B8, useTransition: L8, useDeferredValue: E8, useSyncExternalStore: T8, startTransition: l2, useRef: ye, useImperativeHandle: _5, useMemo: Br, useCallback: t2, useContext: dc, useDebugValue: $5, version: "17.0.2", Children: a8, render: g8, hydrate: b8, unmountComponentAtNode: H8, createPortal: c8, createElement: te, createContext: Ka, createFactory: k8, cloneElement: C8, createRef: Y5, Fragment: ie, isValidElement: Ds, isElement: j8, isFragment: z8, findDOMNode: A8, Component: wr, PureComponent: Eu, memo: n8, forwardRef: pc, flushSync: O8, unstable_batchedUpdates: D8, StrictMode: X8, Suspense: $o, SuspenseList: Ha, lazy: s8, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: P8 }, yn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function I8(n) {
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
}
const S8 = (...n) => {
console != null && console.warn && (Jn(n[0]) && (n[0] = `react-i18next:: ${n[0]}`), console.warn(...n));
}, Np = {}, Lu = (...n) => {
Jn(n[0]) && Np[n[0]] || (Jn(n[0]) && (Np[n[0]] = /* @__PURE__ */ new Date()), S8(...n));
}, u2 = (n, e) => () => {
if (n.isInitialized)
e();
else {
const t = () => {
setTimeout(() => {
n.off("initialized", t);
}, 0), e();
};
n.on("initialized", t);
}
}, Rp = (n, e, t) => {
n.loadNamespaces(e, u2(n, t));
}, Gp = (n, e, t, r) => {
Jn(t) && (t = [t]), t.forEach((i) => {
n.options.ns.indexOf(i) < 0 && n.options.ns.push(i);
}), n.loadLanguages(e, u2(n, r));
}, M8 = (n, e, t = {}) => !e.languages || !e.languages.length ? (Lu("i18n.languages were undefined or empty", e.languages), !0) : e.hasLoadedNamespace(n, {
lng: t.lng,
precheck: (r, i) => {
var o;
if (((o = t.bindI18n) == null ? void 0 : o.indexOf("languageChanging")) > -1 && r.services.backendConnector.backend && r.isLanguageChangingTo && !i(r.isLanguageChangingTo, n))
return !1;
}
}), Jn = (n) => typeof n == "string", W8 = (n) => typeof n == "object" && n !== null, Z8 = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Y8 = {
"&": "&",
"&": "&",
"<": "<",
"<": "<",
">": ">",
">": ">",
"'": "'",
"'": "'",
""": '"',
""": '"',
" ": " ",
" ": " ",
"©": "©",
"©": "©",
"®": "®",
"®": "®",
"…": "…",
"…": "…",
"/": "/",
"/": "/"
}, F8 = (n) => Y8[n], N8 = (n) => n.replace(Z8, F8);
let Bu = {
bindI18n: "languageChanged",
bindI18nStore: "",
transEmptyNodeValue: "",
transSupportBasicHtmlNodes: !0,
transWrapTextNodes: "",
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
useSuspense: !0,
unescape: N8
};
const R8 = (n = {}) => {
Bu = {
...Bu,
...n
};
}, G8 = () => Bu;
let c2;
const Q8 = (n) => {
c2 = n;
}, Ti = () => c2, q8 = {
type: "3rdParty",
init(n) {
R8(n.options.react), Q8(n);
}
}, V8 = Ka();
class J8 {
constructor() {
this.usedNamespaces = {};
}
addUsedNamespaces(e) {
e.forEach((t) => {
this.usedNamespaces[t] || (this.usedNamespaces[t] = !0);
});
}
getUsedNamespaces() {
return Object.keys(this.usedNamespaces);
}
}
const U8 = (n, e) => {
const t = ye();
return le(() => {
t.current = e ? t.current : n;
}, [n, e]), t.current;
}, d2 = (n, e, t, r) => n.getFixedT(e, t, r), K8 = (n, e, t, r) => t2(d2(n, e, t, r), [n, e, t, r]), Se = (n, e = {}) => {
var D, O, j, L;
const {
i18n: t
} = e, {
i18n: r,
defaultNS: i
} = dc(V8) || {}, o = t || r || Ti();
if (o && !o.reportNamespaces && (o.reportNamespaces = new J8()), !o) {
Lu("You will need to pass in an i18next instance by using initReactI18next");
const T = (M, W) => Jn(W) ? W : W8(W) && Jn(W.defaultValue) ? W.defaultValue : Array.isArray(M) ? M[M.length - 1] : M, X = [T, {}, !1];
return X.t = T, X.i18n = {}, X.ready = !1, X;
}
(D = o.options.react) != null && D.wait && Lu("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
const l = {
...G8(),
...o.options.react,
...e
}, {
useSuspense: u,
keyPrefix: c
} = l;
let f = n || i || ((O = o.options) == null ? void 0 : O.defaultNS);
f = Jn(f) ? [f] : f || ["translation"], (L = (j = o.reportNamespaces).addUsedNamespaces) == null || L.call(j, f);
const p = (o.isInitialized || o.initializedStoreOnce) && f.every((T) => M8(T, o, l)), h = K8(o, e.lng || null, l.nsMode === "fallback" ? f : f[0], c), b = () => h, m = () => d2(o, e.lng || null, l.nsMode === "fallback" ? f : f[0], c), [P, x] = $(b);
let H = f.join();
e.lng && (H = `${e.lng}${H}`);
const C = U8(H), w = ye(!0);
le(() => {
const {
bindI18n: T,
bindI18nStore: X
} = l;
w.current = !0, !p && !u && (e.lng ? Gp(o, e.lng, f, () => {
w.current && x(m);
}) : Rp(o, f, () => {
w.current && x(m);
})), p && C && C !== H && w.current && x(m);
const M = () => {
w.current && x(m);
};
return T && (o == null || o.on(T, M)), X && (o == null || o.store.on(X, M)), () => {
w.current = !1, o && (T == null || T.split(" ").forEach((W) => o.off(W, M))), X && o && X.split(" ").forEach((W) => o.store.off(W, M));
};
}, [o, H]), le(() => {
w.current && p && x(b);
}, [o, c, p]);
const k = [P, o, p];
if (k.t = P, k.i18n = o, k.ready = p, p || !p && !u)
return k;
throw new Promise((T) => {
e.lng ? Gp(o, e.lng, f, () => T()) : Rp(o, f, () => T());
});
};
var _8 = Symbol.for("preact-signals");
function Os() {
if (zn > 1)
zn--;
else {
for (var n, e = !1; La !== void 0; ) {
var t = La;
for (La = void 0, ju++; t !== void 0; ) {
var r = t.o;
if (t.o = void 0, t.f &= -3, !(8 & t.f) && p2(t))
try {
t.c();
} catch (i) {
e || (n = i, e = !0);
}
t = r;
}
}
if (ju = 0, zn--, e)
throw n;
}
}
function $8(n) {
if (zn > 0)
return n();
zn++;
try {
return n();
} finally {
Os();
}
}
var Te = void 0, La = void 0, zn = 0, ju = 0, as = 0;
function f2(n) {
if (Te !== void 0) {
var e = n.n;
if (e === void 0 || e.t !== Te)
return e = { i: 0, S: n, p: Te.s, n: void 0, t: Te, e: void 0, x: void 0, r: e }, Te.s !== void 0 && (Te.s.n = e), Te.s = e, n.n = e, 32 & Te.f && n.S(e), e;
if (e.i === -1)
return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = Te.s, e.n = void 0, Te.s.n = e, Te.s = e), e;
}
}
function pt(n) {
this.v = n, this.i = 0, this.n = void 0, this.t = void 0;
}
pt.prototype.brand = _8;
pt.prototype.h = function() {
return !0;
};
pt.prototype.S = function(n) {
this.t !== n && n.e === void 0 && (n.x = this.t, this.t !== void 0 && (this.t.e = n), this.t = n);
};
pt.prototype.U = function(n) {
if (this.t !== void 0) {
var e = n.e, t = n.x;
e !== void 0 && (e.x = t, n.e = void 0), t !== void 0 && (t.e = e, n.x = void 0), n === this.t && (this.t = t);
}
};
pt.prototype.subscribe = function(n) {
var e = this;
return gc(function() {
var t = e.value, r = Te;
Te = void 0;
try {
n(t);
} finally {
Te = r;
}
});
};
pt.prototype.valueOf = function() {
return this.value;
};
pt.prototype.toString = function() {
return this.value + "";
};
pt.prototype.toJSON = function() {
return this.value;
};
pt.prototype.peek = function() {
var n = Te;
Te = void 0;
try {
return this.value;
} finally {
Te = n;
}
};
Object.defineProperty(pt.prototype, "value", { get: function() {
var n = f2(this);
return n !== void 0 && (n.i = this.i), this.v;
}, set: function(n) {
if (n !== this.v) {
if (ju > 100)
throw new Error("Cycle detected");
this.v = n, this.i++, as++, zn++;
try {
for (var e = this.t; e !== void 0; e = e.x)
e.t.N();
} finally {
Os();
}
}
} });
function Mt(n) {
return new pt(n);
}
function p2(n) {
for (var e = n.s; e !== void 0; e = e.n)
if (e.S.i !== e.i || !e.S.h() || e.S.i !== e.i)
return !0;
return !1;
}
function h2(n) {
for (var e = n.s; e !== void 0; e = e.n) {
var t = e.S.n;
if (t !== void 0 && (e.r = t), e.S.n = e, e.i = -1, e.n === void 0) {
n.s = e;
break;
}
}
}
function v2(n) {
for (var e = n.s, t = void 0; e !== void 0; ) {
var r = e.p;
e.i === -1 ? (e.S.U(e), r !== void 0 && (r.n = e.n), e.n !== void 0 && (e.n.p = r)) : t = e, e.S.n = e.r, e.r !== void 0 && (e.r = void 0), e = r;
}
n.s = t;
}
function qi(n) {
pt.call(this, void 0), this.x = n, this.s = void 0, this.g = as - 1, this.f = 4;
}
(qi.prototype = new pt()).h = function() {
if (this.f &= -3, 1 & this.f)
return !1;
if ((36 & this.f) == 32 || (this.f &= -5, this.g === as))
return !0;
if (this.g = as, this.f |= 1, this.i > 0 && !p2(this))
return this.f &= -2, !0;
var n = Te;
try {
h2(this), Te = this;
var e = this.x();
(16 & this.f || this.v !== e || this.i === 0) && (this.v = e, this.f &= -17, this.i++);
} catch (t) {
this.v = t, this.f |= 16, this.i++;
}
return Te = n, v2(this), this.f &= -2, !0;
};
qi.prototype.S = function(n) {
if (this.t === void 0) {
this.f |= 36;
for (var e = this.s; e !== void 0; e = e.n)
e.S.S(e);
}
pt.prototype.S.call(this, n);
};
qi.prototype.U = function(n) {
if (this.t !== void 0 && (pt.prototype.U.call(this, n), this.t === void 0)) {
this.f &= -33;
for (var e = this.s; e !== void 0; e = e.n)
e.S.U(e);
}
};
qi.prototype.N = function() {
if (!(2 & this.f)) {
this.f |= 6;
for (var n = this.t; n !== void 0; n = n.x)
n.t.N();
}
};
Object.defineProperty(qi.prototype, "value", { get: function() {
if (1 & this.f)
throw new Error("Cycle detected");
var n = f2(this);
if (this.h(), n !== void 0 && (n.i = this.i), 16 & this.f)
throw this.v;
return this.v;
} });
function e7(n) {
return new qi(n);
}
function g2(n) {
var e = n.u;
if (n.u = void 0, typeof e == "function") {
zn++;
var t = Te;
Te = void 0;
try {
e();
} catch (r) {
throw n.f &= -2, n.f |= 8, vc(n), r;
} finally {
Te = t, Os();
}
}
}
function vc(n) {
for (var e = n.s; e !== void 0; e = e.n)
e.S.U(e);
n.x = void 0, n.s = void 0, g2(n);
}
function t7(n) {
if (Te !== this)
throw new Error("Out-of-order effect");
v2(this), Te = n, this.f &= -2, 8 & this.f && vc(this), Os();
}
function _a(n) {
this.x = n, this.u = void 0, this.s = void 0, this.o = void 0, this.f = 32;
}
_a.prototype.c = function() {
var n = this.S();
try {
if (8 & this.f || this.x === void 0)
return;
var e = this.x();
typeof e == "function" && (this.u = e);
} finally {
n();
}
};
_a.prototype.S = function() {
if (1 & this.f)
throw new Error("Cycle detected");
this.f |= 1, this.f &= -9, g2(this), h2(this), zn++;
var n = Te;
return Te = this, t7.bind(this, n);
};
_a.prototype.N = function() {
2 & this.f || (this.f |= 2, this.o = La, La = this);
};
_a.prototype.d = function() {
this.f |= 8, 1 & this.f || vc(this);
};
function gc(n) {
var e = new _a(n);
try {
e.c();
} catch (t) {
throw e.d(), t;
}
return e.d.bind(e);
}
var au;
function Vi(n, e) {
ge[n] = e.bind(null, ge[n] || function() {
});
}
function os(n) {
au && au(), au = n && n.S();
}
function b2(n) {
var e = this, t = n.data, r = n7(t);
r.value = t;
var i = Br(function() {
for (var o = e.__v; o = o.__; )
if (o.__c) {
o.__c.__$f |= 4;
break;
}
return e.__$u.c = function() {
var l, u = e.__$u.S(), c = i.value;
u(), Nh(c) || ((l = e.base) == null ? void 0 : l.nodeType) !== 3 ? (e.__$f |= 1, e.setState({})) : e.base.data = c;
}, e7(function() {
var l = r.value.value;
return l === 0 ? 0 : l === !0 ? "" : l || "";
});
}, []);
return i.value;
}
b2.displayName = "_st";
Object.defineProperties(pt.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: b2 }, props: { configurable: !0, get: function() {
return { data: this };
} }, __b: { configurable: !0, value: 1 } });
Vi("__b", function(n, e) {
if (typeof e.type == "string") {
var t, r = e.props;
for (var i in r)
if (i !== "children") {
var o = r[i];
o instanceof pt && (t || (e.__np = t = {}), t[i] = o, r[i] = o.peek());
}
}
n(e);
});
Vi("__r", function(n, e) {
os();
var t, r = e.__c;
r && (r.__$f &= -2, (t = r.__$u) === void 0 && (r.__$u = t = function(i) {
var o;
return gc(function() {
o = this;
}), o.c = function() {
r.__$f |= 1, r.setState({});
}, o;
}())), os(t), n(e);
});
Vi("__e", function(n, e, t, r) {
os(), n(e, t, r);
});
Vi("diffed", function(n, e) {
os();
var t;
if (typeof e.type == "string" && (t = e.__e)) {
var r = e.__np, i = e.props;
if (r) {
var o = t.U;
if (o)
for (var l in o) {
var u = o[l];
u !== void 0 && !(l in r) && (u.d(), o[l] = void 0);
}
else
t.U = o = {};
for (var c in r) {
var f = o[c], p = r[c];
f === void 0 ? (f = r7(t, c, p, i), o[c] = f) : f.o(p, i);
}
}
}
n(e);
});
function r7(n, e, t, r) {
var i = e in n && n.ownerSVGElement === void 0, o = Mt(t);
return { o: function(l, u) {
o.value = l, r = u;
}, d: gc(function() {
var l = o.value.value;
r[e] !== l && (r[e] = l, i ? n[e] = l : l ? n.setAttribute(e, l) : n.removeAttribute(e));
}) };
}
Vi("unmount", function(n, e) {
if (typeof e.type == "string") {
var t = e.__e;
if (t) {
var r = t.U;
if (r) {
t.U = void 0;
for (var i in r) {
var o = r[i];
o && o.d();
}
}
}
} else {
var l = e.__c;
if (l) {
var u = l.__$u;
u && (l.__$u = void 0, u.d());
}
}
n(e);
});
Vi("__h", function(n, e, t, r) {
(r < 3 || r === 9) && (e.__$f |= 2), n(e, t, r);
});
wr.prototype.shouldComponentUpdate = function(n, e) {
var t = this.__$u;
if (!(t && t.s !== void 0 || 4 & this.__$f) || 3 & this.__$f)
return !0;
for (var r in e)
return !0;
for (var i in n)
if (i !== "__source" && n[i] !== this.props[i])
return !0;
for (var o in this.props)
if (!(o in n))
return !0;
return !1;
};
function n7(n) {
return Br(function() {
return Mt(n);
}, []);
}
const Tu = Mt(!1), Ae = Mt(null), Ai = Mt([]), Ut = Mt(!1), Di = Mt([]), dr = Mt(!1), Xs = Mt(null), bt = Mt(null), ss = Mt(!1), Es = Mt(!0), i7 = () => {
$8(() => {
Ae.value = null, Ai.value = [], Ut.value = !1, Di.value = [], dr.value = !1, Xs.value = null, bt.value = null, ss.value = !1, Es.value = !0;
});
}, bc = "bm_currentBike", a7 = "v2", o7 = "https://cdn.bikematrix.io", Qp = {
// Shopify specific
isShopify: !1,
s