@bikematrix/web-components 1.3.12 → 1.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(ft,G){typeof exports=="object"&&typeof module<"u"?module.exports=G():typeof define=="function"&&define.amd?define(G):(ft=typeof globalThis<"u"?globalThis:ft||self,ft.BikeMatrix=G())})(this,function(){"use strict";var ft,G,co,po,Yt,fo,ho,_n,go,Hr={},mo=[],ac=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Di=Array.isArray;function ht(i,e){for(var t in e)i[t]=e[t];return i}function bo(i){var e=i.parentNode;e&&e.removeChild(i)}function z(i,e,t){var r,n,s,o={};for(s in e)s=="key"?r=e[s]:s=="ref"?n=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?ft.call(arguments,2):t),typeof i=="function"&&i.defaultProps!=null)for(s in i.defaultProps)o[s]===void 0&&(o[s]=i.defaultProps[s]);return Gr(i,o,r,n,null)}function Gr(i,e,t,r,n){var s={type:i,props:e,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:n??++co,__i:-1,__u:0};return n==null&&G.vnode!=null&&G.vnode(s),s}function lc(){return{current:null}}function $(i){return i.children}function Xe(i,e){this.props=i,this.context=e}function cr(i,e){if(e==null)return i.__?cr(i.__,i.__i+1):null;for(var t;e<i.__k.length;e++)if((t=i.__k[e])!=null&&t.__e!=null)return t.__e;return typeof i.type=="function"?cr(i):null}function vo(i){var e,t;if((i=i.__)!=null&&i.__c!=null){for(i.__e=i.__c.base=null,e=0;e<i.__k.length;e++)if((t=i.__k[e])!=null&&t.__e!=null){i.__e=i.__c.base=t.__e;break}return vo(i)}}function yn(i){(!i.__d&&(i.__d=!0)&&Yt.push(i)&&!Ai.__r++||fo!==G.debounceRendering)&&((fo=G.debounceRendering)||ho)(Ai)}function Ai(){var i,e,t,r,n,s,o,a,l;for(Yt.sort(_n);i=Yt.shift();)i.__d&&(e=Yt.length,r=void 0,s=(n=(t=i).__v).__e,a=[],l=[],(o=t.__P)&&((r=ht({},n)).__v=n.__v+1,G.vnode&&G.vnode(r),Cn(o,r,n,t.__n,o.ownerSVGElement!==void 0,32&n.__u?[s]:null,a,s??cr(n),!!(32&n.__u),l),r.__v=n.__v,r.__.__k[r.__i]=r,ko(a,r,l),r.__e!=s&&vo(r)),Yt.length>e&&Yt.sort(_n));Ai.__r=0}function wo(i,e,t,r,n,s,o,a,l,u,c){var d,h,f,m,b,w=r&&r.__k||mo,v=e.length;for(t.__d=l,uc(t,e,w),l=t.__d,d=0;d<v;d++)(f=t.__k[d])!=null&&typeof f!="boolean"&&typeof f!="function"&&(h=f.__i===-1?Hr:w[f.__i]||Hr,f.__i=d,Cn(i,f,h,n,s,o,a,l,u,c),m=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&kn(h.ref,null,f),c.push(f.ref,f.__c||m,f)),b==null&&m!=null&&(b=m),65536&f.__u||h.__k===f.__k?l=xo(f,l,i):typeof f.type=="function"&&f.__d!==void 0?l=f.__d:m&&(l=m.nextSibling),f.__d=void 0,f.__u&=-196609);t.__d=l,t.__e=b}function uc(i,e,t){var r,n,s,o,a,l=e.length,u=t.length,c=u,d=0;for(i.__k=[],r=0;r<l;r++)o=r+d,(n=i.__k[r]=(n=e[r])==null||typeof n=="boolean"||typeof n=="function"?null:typeof n=="string"||typeof n=="number"||typeof n=="bigint"||n.constructor==String?Gr(null,n,null,null,null):Di(n)?Gr($,{children:n},null,null,null):n.constructor===void 0&&n.__b>0?Gr(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n)!=null?(n.__=i,n.__b=i.__b+1,a=cc(n,t,o,c),n.__i=a,s=null,a!==-1&&(c--,(s=t[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&d--,typeof n.type!="function"&&(n.__u|=65536)):a!==o&&(a===o+1?d++:a>o?c>l-o?d+=a-o:d--:a<o?a==o-1&&(d=a-o):d=0,a!==r+d&&(n.__u|=65536))):(s=t[o])&&s.key==null&&s.__e&&!(131072&s.__u)&&(s.__e==i.__d&&(i.__d=cr(s)),Dn(s,s,!1),t[o]=null,c--);if(c)for(r=0;r<u;r++)(s=t[r])!=null&&!(131072&s.__u)&&(s.__e==i.__d&&(i.__d=cr(s)),Dn(s,s))}function xo(i,e,t){var r,n;if(typeof i.type=="function"){for(r=i.__k,n=0;r&&n<r.length;n++)r[n]&&(r[n].__=i,e=xo(r[n],e,t));return e}i.__e!=e&&(t.insertBefore(i.__e,e||null),e=i.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function gt(i,e){return e=e||[],i==null||typeof i=="boolean"||(Di(i)?i.some(function(t){gt(t,e)}):e.push(i)),e}function cc(i,e,t,r){var n=i.key,s=i.type,o=t-1,a=t+1,l=e[t];if(l===null||l&&n==l.key&&s===l.type&&!(131072&l.__u))return t;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;o>=0||a<e.length;){if(o>=0){if((l=e[o])&&!(131072&l.__u)&&n==l.key&&s===l.type)return o;o--}if(a<e.length){if((l=e[a])&&!(131072&l.__u)&&n==l.key&&s===l.type)return a;a++}}return-1}function _o(i,e,t){e[0]==="-"?i.setProperty(e,t??""):i[e]=t==null?"":typeof t!="number"||ac.test(e)?t:t+"px"}function Si(i,e,t,r,n){var s;e:if(e==="style")if(typeof t=="string")i.style.cssText=t;else{if(typeof r=="string"&&(i.style.cssText=r=""),r)for(e in r)t&&e in t||_o(i.style,e,"");if(t)for(e in t)r&&t[e]===r[e]||_o(i.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in i?e.toLowerCase().slice(2):e.slice(2),i.l||(i.l={}),i.l[e+s]=t,t?r?t.u=r.u:(t.u=Date.now(),i.addEventListener(e,s?Co:yo,s)):i.removeEventListener(e,s?Co:yo,s);else{if(n)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 i)try{i[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!=="-"?i.removeAttribute(e):i.setAttribute(e,t))}}function yo(i){if(this.l){var e=this.l[i.type+!1];if(i.t){if(i.t<=e.u)return}else i.t=Date.now();return e(G.event?G.event(i):i)}}function Co(i){if(this.l)return this.l[i.type+!0](G.event?G.event(i):i)}function Cn(i,e,t,r,n,s,o,a,l,u){var c,d,h,f,m,b,w,v,g,x,_,y,k,A,C,D=e.type;if(e.constructor!==void 0)return null;128&t.__u&&(l=!!(32&t.__u),s=[a=e.__e=t.__e]),(c=G.__b)&&c(e);e:if(typeof D=="function")try{if(v=e.props,g=(c=D.contextType)&&r[c.__c],x=c?g?g.props.value:c.__:r,t.__c?w=(d=e.__c=t.__c).__=d.__E:("prototype"in D&&D.prototype.render?e.__c=d=new D(v,x):(e.__c=d=new Xe(v,x),d.constructor=D,d.render=pc),g&&g.sub(d),d.props=v,d.state||(d.state={}),d.context=x,d.__n=r,h=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),D.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=ht({},d.__s)),ht(d.__s,D.getDerivedStateFromProps(v,d.__s))),f=d.props,m=d.state,d.__v=e,h)D.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(D.getDerivedStateFromProps==null&&v!==f&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(v,x),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(v,d.__s,x)===!1||e.__v===t.__v)){for(e.__v!==t.__v&&(d.props=v,d.state=d.__s,d.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(S){S&&(S.__=e)}),_=0;_<d._sb.length;_++)d.__h.push(d._sb[_]);d._sb=[],d.__h.length&&o.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(v,d.__s,x),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(f,m,b)})}if(d.context=x,d.props=v,d.__P=i,d.__e=!1,y=G.__r,k=0,"prototype"in D&&D.prototype.render){for(d.state=d.__s,d.__d=!1,y&&y(e),c=d.render(d.props,d.state,d.context),A=0;A<d._sb.length;A++)d.__h.push(d._sb[A]);d._sb=[]}else do d.__d=!1,y&&y(e),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++k<25);d.state=d.__s,d.getChildContext!=null&&(r=ht(ht({},r),d.getChildContext())),h||d.getSnapshotBeforeUpdate==null||(b=d.getSnapshotBeforeUpdate(f,m)),wo(i,Di(C=c!=null&&c.type===$&&c.key==null?c.props.children:c)?C:[C],e,t,r,n,s,o,a,l,u),d.base=e.__e,e.__u&=-161,d.__h.length&&o.push(d),w&&(d.__E=d.__=null)}catch(S){e.__v=null,l||s!=null?(e.__e=a,e.__u|=l?160:32,s[s.indexOf(a)]=null):(e.__e=t.__e,e.__k=t.__k),G.__e(S,e,t)}else s==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=dc(t.__e,e,t,r,n,s,o,l,u);(c=G.diffed)&&c(e)}function ko(i,e,t){e.__d=void 0;for(var r=0;r<t.length;r++)kn(t[r],t[++r],t[++r]);G.__c&&G.__c(e,i),i.some(function(n){try{i=n.__h,n.__h=[],i.some(function(s){s.call(n)})}catch(s){G.__e(s,n.__v)}})}function dc(i,e,t,r,n,s,o,a,l){var u,c,d,h,f,m,b,w=t.props,v=e.props,g=e.type;if(g==="svg"&&(n=!0),s!=null){for(u=0;u<s.length;u++)if((f=s[u])&&"setAttribute"in f==!!g&&(g?f.localName===g:f.nodeType===3)){i=f,s[u]=null;break}}if(i==null){if(g===null)return document.createTextNode(v);i=n?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,v.is&&v),s=null,a=!1}if(g===null)w===v||a&&i.data===v||(i.data=v);else{if(s=s&&ft.call(i.childNodes),w=t.props||Hr,!a&&s!=null)for(w={},u=0;u<i.attributes.length;u++)w[(f=i.attributes[u]).name]=f.value;for(u in w)f=w[u],u=="children"||(u=="dangerouslySetInnerHTML"?d=f:u==="key"||u in v||Si(i,u,null,f,n));for(u in v)f=v[u],u=="children"?h=f:u=="dangerouslySetInnerHTML"?c=f:u=="value"?m=f:u=="checked"?b=f:u==="key"||a&&typeof f!="function"||w[u]===f||Si(i,u,f,w[u],n);if(c)a||d&&(c.__html===d.__html||c.__html===i.innerHTML)||(i.innerHTML=c.__html),e.__k=[];else if(d&&(i.innerHTML=""),wo(i,Di(h)?h:[h],e,t,r,n&&g!=="foreignObject",s,o,s?s[0]:t.__k&&cr(t,0),a,l),s!=null)for(u=s.length;u--;)s[u]!=null&&bo(s[u]);a||(u="value",m!==void 0&&(m!==i[u]||g==="progress"&&!m||g==="option"&&m!==w[u])&&Si(i,u,m,w[u],!1),u="checked",b!==void 0&&b!==i[u]&&Si(i,u,b,w[u],!1))}return i}function kn(i,e,t){try{typeof i=="function"?i(e):i.current=e}catch(r){G.__e(r,t)}}function Dn(i,e,t){var r,n;if(G.unmount&&G.unmount(i),(r=i.ref)&&(r.current&&r.current!==i.__e||kn(r,null,e)),(r=i.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){G.__e(s,e)}r.base=r.__P=null,i.__c=void 0}if(r=i.__k)for(n=0;n<r.length;n++)r[n]&&Dn(r[n],e,t||typeof i.type!="function");t||i.__e==null||bo(i.__e),i.__=i.__e=i.__d=void 0}function pc(i,e,t){return this.constructor(i,t)}function Lt(i,e,t){var r,n,s,o;G.__&&G.__(i,e),n=(r=typeof t=="function")?null:t&&t.__k||e.__k,s=[],o=[],Cn(e,i=(!r&&t||e).__k=z($,null,[i]),n||Hr,Hr,e.ownerSVGElement!==void 0,!r&&t?[t]:n?null:e.firstChild?ft.call(e.childNodes):null,s,!r&&t?t:n?n.__e:e.firstChild,r,o),ko(s,i,o)}function An(i,e){Lt(i,e,An)}function Sn(i,e,t){var r,n,s,o,a=ht({},i.props);for(s in i.type&&i.type.defaultProps&&(o=i.type.defaultProps),e)s=="key"?r=e[s]:s=="ref"?n=e[s]:a[s]=e[s]===void 0&&o!==void 0?o[s]:e[s];return arguments.length>2&&(a.children=arguments.length>3?ft.call(arguments,2):t),Gr(i.type,a,r||i.key,n||i.ref,null)}function Wr(i,e){var t={__c:e="__cC"+go++,__:i,Consumer:function(r,n){return r.children(n)},Provider:function(r){var n,s;return this.getChildContext||(n=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&n.some(function(a){a.__e=!0,yn(a)})},this.sub=function(o){n.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){n.splice(n.indexOf(o),1),a&&a.call(o)}}),r.children}};return t.Provider.__=t.Consumer.contextType=t}ft=mo.slice,G={__e:function(i,e,t,r){for(var n,s,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((s=n.constructor)&&s.getDerivedStateFromError!=null&&(n.setState(s.getDerivedStateFromError(i)),o=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(i,r||{}),o=n.__d),o)return n.__E=n}catch(a){i=a}throw i}},co=0,po=function(i){return i!=null&&i.constructor==null},Xe.prototype.setState=function(i,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ht({},this.state),typeof i=="function"&&(i=i(ht({},t),this.props)),i&&ht(t,i),i!=null&&this.__v&&(e&&this._sb.push(e),yn(this))},Xe.prototype.forceUpdate=function(i){this.__v&&(this.__e=!0,i&&this.__h.push(i),yn(this))},Xe.prototype.render=$,Yt=[],ho=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_n=function(i,e){return i.__v.__b-e.__v.__b},Ai.__r=0,go=0;function En(){return(En=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i}).apply(this,arguments)}var fc=["context","children"];function hc(i){this.getChildContext=function(){return i.context};var e=i.children,t=function(r,n){if(r==null)return{};var s,o,a={},l=Object.keys(r);for(o=0;o<l.length;o++)n.indexOf(s=l[o])>=0||(a[s]=r[s]);return a}(i,fc);return Sn(e,t)}function gc(){var i=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(i),this._vdom=z(hc,En({},this._props,{context:i.detail.context}),function e(t,r){if(t.nodeType===3)return t.data;if(t.nodeType!==1)return null;var n=[],s={},o=0,a=t.attributes,l=t.childNodes;for(o=a.length;o--;)a[o].name!=="slot"&&(s[a[o].name]=a[o].value,s[Do(a[o].name)]=a[o].value);for(o=l.length;o--;){var u=e(l[o],null),c=l[o].slot;c?s[c]=z(Ao,{name:c},u):n[o]=u}var d=r?z(Ao,null,n):n;return z(r||t.nodeName.toLowerCase(),s,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?An:Lt)(this._vdom,this._root)}function Do(i){return i.replace(/-(\w)/g,function(e,t){return t?t.toUpperCase():""})}function mc(i,e,t){if(this._vdom){var r={};r[i]=t=t??void 0,r[Do(i)]=t,this._vdom=Sn(this._vdom,r),Lt(this._vdom,this._root)}}function bc(){Lt(this._vdom=null,this._root)}function Ao(i,e){var t=this;return z("slot",En({},i,{ref:function(r){r?(t.ref=r,t._listener||(t._listener=function(n){n.stopPropagation(),n.detail.context=e},r.addEventListener("_preact",t._listener))):t.ref.removeEventListener("_preact",t._listener)}}))}function vc(i,e,t,r){function n(){var s=Reflect.construct(HTMLElement,[],n);return s._vdomComponent=i,s._root=r&&r.shadow?s.attachShadow({mode:r.mode||"open"}):s,s}return(n.prototype=Object.create(HTMLElement.prototype)).constructor=n,n.prototype.connectedCallback=gc,n.prototype.attributeChangedCallback=mc,n.prototype.disconnectedCallback=bc,t=t||i.observedAttributes||Object.keys(i.propTypes||{}),n.observedAttributes=t,t.forEach(function(s){Object.defineProperty(n.prototype,s,{get:function(){return this._vdom.props[s]},set:function(o){this._vdom?this.attributeChangedCallback(s,null,o):(this._props||(this._props={}),this._props[s]=o,this.connectedCallback());var a=typeof o;o!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(s,o)}})}),customElements.define(e||i.tagName||i.displayName||i.name,n)}var Tt,se,Bn,So,dr=0,Eo=[],Ei=[],ue=G,Bo=ue.__b,Lo=ue.__r,To=ue.diffed,Fo=ue.__c,No=ue.unmount,Mo=ue.__;function pr(i,e){ue.__h&&ue.__h(se,i,dr||e),dr=0;var t=se.__H||(se.__H={__:[],__h:[]});return i>=t.__.length&&t.__.push({__V:Ei}),t.__[i]}function O(i){return dr=1,Po(Ro,i)}function Po(i,e,t){var r=pr(Tt++,2);if(r.t=i,!r.__c&&(r.__=[t?t(e):Ro(void 0,e),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=se,!se.u)){var n=function(a,l,u){if(!r.__c.__H)return!0;var c=r.__c.__H.__.filter(function(h){return!!h.__c});if(c.every(function(h){return!h.__N}))return!s||s.call(this,a,l,u);var d=!1;return c.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(d=!0)}}),!(!d&&r.__c.props===a)&&(!s||s.call(this,a,l,u))};se.u=!0;var s=se.shouldComponentUpdate,o=se.componentWillUpdate;se.componentWillUpdate=function(a,l,u){if(this.__e){var c=s;s=void 0,n(a,l,u),s=c}o&&o.call(this,a,l,u)},se.shouldComponentUpdate=n}return r.__N||r.__}function U(i,e){var t=pr(Tt++,3);!ue.__s&&Tn(t.__H,e)&&(t.__=i,t.i=e,se.__H.__h.push(t))}function fr(i,e){var t=pr(Tt++,4);!ue.__s&&Tn(t.__H,e)&&(t.__=i,t.i=e,se.__h.push(t))}function Y(i){return dr=5,it(function(){return{current:i}},[])}function wc(i,e,t){dr=6,fr(function(){return typeof i=="function"?(i(e()),function(){return i(null)}):i?(i.current=e(),function(){return i.current=null}):void 0},t==null?t:t.concat(i))}function it(i,e){var t=pr(Tt++,7);return Tn(t.__H,e)?(t.__V=i(),t.i=e,t.__h=i,t.__V):t.__}function Oo(i,e){return dr=8,it(function(){return i},e)}function Bi(i){var e=se.context[i.__c],t=pr(Tt++,9);return t.c=i,e?(t.__==null&&(t.__=!0,e.sub(se)),e.props.value):i.__}function xc(i,e){ue.useDebugValue&&ue.useDebugValue(e?e(i):i)}function _c(){var i=pr(Tt++,11);if(!i.__){for(var e=se.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var t=e.__m||(e.__m=[0,0]);i.__="P"+t[0]+"-"+t[1]++}return i.__}function yc(){for(var i;i=Eo.shift();)if(i.__P&&i.__H)try{i.__H.__h.forEach(Li),i.__H.__h.forEach(Ln),i.__H.__h=[]}catch(e){i.__H.__h=[],ue.__e(e,i.__v)}}ue.__b=function(i){se=null,Bo&&Bo(i)},ue.__=function(i,e){i&&e.__k&&e.__k.__m&&(i.__m=e.__k.__m),Mo&&Mo(i,e)},ue.__r=function(i){Lo&&Lo(i),Tt=0;var e=(se=i.__c).__H;e&&(Bn===se?(e.__h=[],se.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=Ei,t.__N=t.i=void 0})):(e.__h.forEach(Li),e.__h.forEach(Ln),e.__h=[],Tt=0)),Bn=se},ue.diffed=function(i){To&&To(i);var e=i.__c;e&&e.__H&&(e.__H.__h.length&&(Eo.push(e)!==1&&So===ue.requestAnimationFrame||((So=ue.requestAnimationFrame)||Cc)(yc)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==Ei&&(t.__=t.__V),t.i=void 0,t.__V=Ei})),Bn=se=null},ue.__c=function(i,e){e.some(function(t){try{t.__h.forEach(Li),t.__h=t.__h.filter(function(r){return!r.__||Ln(r)})}catch(r){e.some(function(n){n.__h&&(n.__h=[])}),e=[],ue.__e(r,t.__v)}}),Fo&&Fo(i,e)},ue.unmount=function(i){No&&No(i);var e,t=i.__c;t&&t.__H&&(t.__H.__.forEach(function(r){try{Li(r)}catch(n){e=n}}),t.__H=void 0,e&&ue.__e(e,t.__v))};var Io=typeof requestAnimationFrame=="function";function Cc(i){var e,t=function(){clearTimeout(r),Io&&cancelAnimationFrame(e),setTimeout(i)},r=setTimeout(t,100);Io&&(e=requestAnimationFrame(t))}function Li(i){var e=se,t=i.__c;typeof t=="function"&&(i.__c=void 0,t()),se=e}function Ln(i){var e=se;i.__c=i.__(),se=e}function Tn(i,e){return!i||i.length!==e.length||e.some(function(t,r){return t!==i[r]})}function Ro(i,e){return typeof e=="function"?e(i):e}function zo(i,e){for(var t in e)i[t]=e[t];return i}function Fn(i,e){for(var t in i)if(t!=="__source"&&!(t in e))return!0;for(var r in e)if(r!=="__source"&&i[r]!==e[r])return!0;return!1}function Nn(i,e){this.props=i,this.context=e}function kc(i,e){function t(n){var s=this.props.ref,o=s==n.ref;return!o&&s&&(s.call?s(null):s.current=null),e?!e(this.props,n)||!o:Fn(this.props,n)}function r(n){return this.shouldComponentUpdate=t,z(i,n)}return r.displayName="Memo("+(i.displayName||i.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Nn.prototype=new Xe).isPureReactComponent=!0,Nn.prototype.shouldComponentUpdate=function(i,e){return Fn(this.props,i)||Fn(this.state,e)};var qo=G.__b;G.__b=function(i){i.type&&i.type.__f&&i.ref&&(i.props.ref=i.ref,i.ref=null),qo&&qo(i)};var Dc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Mn(i){function e(t){var r=zo({},t);return delete r.ref,i(r,t.ref||null)}return e.$$typeof=Dc,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(i.displayName||i.name)+")",e}var $o=function(i,e){return i==null?null:gt(gt(i).map(e))},Vo={map:$o,forEach:$o,count:function(i){return i?gt(i).length:0},only:function(i){var e=gt(i);if(e.length!==1)throw"Children.only";return e[0]},toArray:gt},Ac=G.__e;G.__e=function(i,e,t,r){if(i.then){for(var n,s=e;s=s.__;)if((n=s.__c)&&n.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),n.__c(i,e)}Ac(i,e,t,r)};var jo=G.unmount;function Uo(i,e,t){return i&&(i.__c&&i.__c.__H&&(i.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),i.__c.__H=null),(i=zo({},i)).__c!=null&&(i.__c.__P===t&&(i.__c.__P=e),i.__c=null),i.__k=i.__k&&i.__k.map(function(r){return Uo(r,e,t)})),i}function Ho(i,e,t){return i&&t&&(i.__v=null,i.__k=i.__k&&i.__k.map(function(r){return Ho(r,e,t)}),i.__c&&i.__c.__P===e&&(i.__e&&t.appendChild(i.__e),i.__c.__e=!0,i.__c.__P=t)),i}function Ti(){this.__u=0,this.t=null,this.__b=null}function Go(i){var e=i.__.__c;return e&&e.__a&&e.__a(i)}function Sc(i){var e,t,r;function n(s){if(e||(e=i()).then(function(o){t=o.default||o},function(o){r=o}),r)throw r;if(!t)throw e;return z(t,s)}return n.displayName="Lazy",n.__f=!0,n}function Yr(){this.u=null,this.o=null}G.unmount=function(i){var e=i.__c;e&&e.__R&&e.__R(),e&&32&i.__u&&(i.type=null),jo&&jo(i)},(Ti.prototype=new Xe).__c=function(i,e){var t=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(t);var n=Go(r.__v),s=!1,o=function(){s||(s=!0,t.__R=null,n?n(a):a())};t.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Ho(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),i.then(o,o)},Ti.prototype.componentWillUnmount=function(){this.t=[]},Ti.prototype.render=function(i,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Uo(this.__b,t,r.__O=r.__P)}this.__b=null}var n=e.__a&&z($,null,i.fallback);return n&&(n.__u&=-33),[z($,null,e.__a?null:i.children),n]};var Wo=function(i,e,t){if(++t[1]===t[0]&&i.o.delete(e),i.props.revealOrder&&(i.props.revealOrder[0]!=="t"||!i.o.size))for(t=i.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;i.u=t=t[2]}};function Ec(i){return this.getChildContext=function(){return i.context},i.children}function Bc(i){var e=this,t=i.i;e.componentWillUnmount=function(){Lt(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,n){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),Lt(z(Ec,{context:e.context},i.__v),e.l)}function Lc(i,e){var t=z(Bc,{__v:i,i:e});return t.containerInfo=e,t}(Yr.prototype=new Xe).__a=function(i){var e=this,t=Go(e.__v),r=e.o.get(i);return r[0]++,function(n){var s=function(){e.props.revealOrder?(r.push(n),Wo(e,i,r)):n()};t?t(s):s()}},Yr.prototype.render=function(i){this.u=null,this.o=new Map;var e=gt(i.children);i.revealOrder&&i.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return i.children},Yr.prototype.componentDidUpdate=Yr.prototype.componentDidMount=function(){var i=this;this.o.forEach(function(e,t){Wo(i,t,e)})};var Yo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Tc=/^(?: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]/,Fc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Nc=/[A-Z0-9]/g,Mc=typeof document<"u",Pc=function(i){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(i)};function Oc(i,e,t){return e.__k==null&&(e.textContent=""),Lt(i,e),typeof t=="function"&&t(),i?i.__c:null}function Ic(i,e,t){return An(i,e),typeof t=="function"&&t(),i?i.__c:null}Xe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(i){Object.defineProperty(Xe.prototype,i,{configurable:!0,get:function(){return this["UNSAFE_"+i]},set:function(e){Object.defineProperty(this,i,{configurable:!0,writable:!0,value:e})}})});var Ko=G.event;function Rc(){}function zc(){return this.cancelBubble}function qc(){return this.defaultPrevented}G.event=function(i){return Ko&&(i=Ko(i)),i.persist=Rc,i.isPropagationStopped=zc,i.isDefaultPrevented=qc,i.nativeEvent=i};var Pn,$c={enumerable:!1,configurable:!0,get:function(){return this.class}},Zo=G.vnode;G.vnode=function(i){typeof i.type=="string"&&function(e){var t=e.props,r=e.type,n={};for(var s in t){var o=t[s];if(!(s==="value"&&"defaultValue"in t&&o==null||Mc&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var a=s.toLowerCase();s==="defaultValue"&&"value"in t&&t.value==null?s="value":s==="download"&&o===!0?o="":a==="translate"&&o==="no"?o=!1:a==="ondoubleclick"?s="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||Pc(t.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":Fc.test(s)?s=a:r.indexOf("-")===-1&&Tc.test(s)?s=s.replace(Nc,"-$&").toLowerCase():o===null&&(o=void 0):a=s="oninput",a==="oninput"&&n[s=a]&&(s="oninputCapture"),n[s]=o}}r=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=gt(t.children).forEach(function(l){l.props.selected=n.value.indexOf(l.props.value)!=-1})),r=="select"&&n.defaultValue!=null&&(n.value=gt(t.children).forEach(function(l){l.props.selected=n.multiple?n.defaultValue.indexOf(l.props.value)!=-1:n.defaultValue==l.props.value})),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,"className",$c)):(t.className&&!t.class||t.class&&t.className)&&(n.class=n.className=t.className),e.props=n}(i),i.$$typeof=Yo,Zo&&Zo(i)};var Xo=G.__r;G.__r=function(i){Xo&&Xo(i),Pn=i.__c};var Jo=G.diffed;G.diffed=function(i){Jo&&Jo(i);var e=i.props,t=i.__e;t!=null&&i.type==="textarea"&&"value"in e&&e.value!==t.value&&(t.value=e.value==null?"":e.value),Pn=null};var Vc={ReactCurrentDispatcher:{current:{readContext:function(i){return Pn.__n[i.__c].props.value}}}};function jc(i){return z.bind(null,i)}function Ft(i){return!!i&&i.$$typeof===Yo}function Uc(i){return Ft(i)&&i.type===$}function Qo(i){return Ft(i)?Sn.apply(null,arguments):i}function Hc(i){return!!i.__k&&(Lt(null,i),!0)}function Gc(i){return i&&(i.base||i.nodeType===1&&i)||null}var Wc=function(i,e){return i(e)},Yc=function(i,e){return i(e)},Kc=$;function ea(i){i()}function Zc(i){return i}function Xc(){return[!1,ea]}var Jc=fr,Qc=Ft;function ed(i,e){var t=e(),r=O({h:{__:t,v:e}}),n=r[0].h,s=r[1];return fr(function(){n.__=t,n.v=e,On(n)&&s({h:n})},[i,t,e]),U(function(){return On(n)&&s({h:n}),i(function(){On(n)&&s({h:n})})},[i]),t}function On(i){var e,t,r=i.v,n=i.__;try{var s=r();return!((e=n)===(t=s)&&(e!==0||1/e==1/t)||e!=e&&t!=t)}catch{return!0}}var ve={useState:O,useId:_c,useReducer:Po,useEffect:U,useLayoutEffect:fr,useInsertionEffect:Jc,useTransition:Xc,useDeferredValue:Zc,useSyncExternalStore:ed,startTransition:ea,useRef:Y,useImperativeHandle:wc,useMemo:it,useCallback:Oo,useContext:Bi,useDebugValue:xc,version:"17.0.2",Children:Vo,render:Oc,hydrate:Ic,unmountComponentAtNode:Hc,createPortal:Lc,createElement:z,createContext:Wr,createFactory:jc,cloneElement:Qo,createRef:lc,Fragment:$,isValidElement:Ft,isElement:Qc,isFragment:Uc,findDOMNode:Gc,Component:Xe,PureComponent:Nn,memo:kc,forwardRef:Mn,flushSync:Yc,unstable_batchedUpdates:Wc,StrictMode:Kc,Suspense:Ti,SuspenseList:Yr,lazy:Sc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Vc},In=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ta(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var td={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const rd=ta(td);var id=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function ra(i){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=i.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(e.name=t[1],(rd[t[1]]||i.charAt(i.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var r=i.indexOf("-->");return{type:"comment",comment:r!==-1?i.slice(4,r):""}}for(var n=new RegExp(id),s=null;(s=n.exec(i))!==null;)if(s[0].trim())if(s[1]){var o=s[1].trim(),a=[o,""];o.indexOf("=")>-1&&(a=o.split("=")),e.attrs[a[0]]=a[1],n.lastIndex--}else s[2]&&(e.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return e}var nd=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,sd=/^\s*$/,od=Object.create(null);function ia(i,e){switch(e.type){case"text":return i+e.content;case"tag":return i+="<"+e.name+(e.attrs?function(t){var r=[];for(var n in t)r.push(n+'="'+t[n]+'"');return r.length?" "+r.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?i:i+e.children.reduce(ia,"")+"</"+e.name+">";case"comment":return i+"<!--"+e.comment+"-->"}}var ad={parse:function(i,e){e||(e={}),e.components||(e.components=od);var t,r=[],n=[],s=-1,o=!1;if(i.indexOf("<")!==0){var a=i.indexOf("<");r.push({type:"text",content:a===-1?i:i.substring(0,a)})}return i.replace(nd,function(l,u){if(o){if(l!=="</"+t.name+">")return;o=!1}var c,d=l.charAt(1)!=="/",h=l.startsWith("<!--"),f=u+l.length,m=i.charAt(f);if(h){var b=ra(l);return s<0?(r.push(b),r):((c=n[s]).children.push(b),r)}if(d&&(s++,(t=ra(l)).type==="tag"&&e.components[t.name]&&(t.type="component",o=!0),t.voidElement||o||!m||m==="<"||t.children.push({type:"text",content:i.slice(f,i.indexOf("<",f))}),s===0&&r.push(t),(c=n[s-1])&&c.children.push(t),n[s]=t),(!d||t.voidElement)&&(s>-1&&(t.voidElement||t.name===l.slice(2,-1))&&(s--,t=s===-1?r:n[s]),!o&&m!=="<"&&m)){c=s===-1?r:n[s].children;var w=i.indexOf("<",f),v=i.slice(f,w===-1?void 0:w);sd.test(v)&&(v=" "),(w>-1&&s+c.length>=0||v!==" ")&&c.push({type:"text",content:v})}}),r},stringify:function(i){return i.reduce(function(e,t){return e+ia("",t)},"")}};const Fi=(...i)=>{console!=null&&console.warn&&(Ge(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),console.warn(...i))},na={},Ni=(...i)=>{Ge(i[0])&&na[i[0]]||(Ge(i[0])&&(na[i[0]]=new Date),Fi(...i))},sa=(i,e)=>()=>{if(i.isInitialized)e();else{const t=()=>{setTimeout(()=>{i.off("initialized",t)},0),e()};i.on("initialized",t)}},oa=(i,e,t)=>{i.loadNamespaces(e,sa(i,t))},aa=(i,e,t,r)=>{Ge(t)&&(t=[t]),t.forEach(n=>{i.options.ns.indexOf(n)<0&&i.options.ns.push(n)}),i.loadLanguages(e,sa(i,r))},ld=(i,e,t={})=>!e.languages||!e.languages.length?(Ni("i18n.languages were undefined or empty",e.languages),!0):e.hasLoadedNamespace(i,{lng:t.lng,precheck:(r,n)=>{var s;if(((s=t.bindI18n)==null?void 0:s.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!n(r.isLanguageChangingTo,i))return!1}}),Ge=i=>typeof i=="string",hr=i=>typeof i=="object"&&i!==null,ud=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,cd={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},dd=i=>cd[i];let Rn={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:i=>i.replace(ud,dd)};const pd=(i={})=>{Rn={...Rn,...i}},la=()=>Rn;let ua;const fd=i=>{ua=i},Nt=()=>ua,zn=(i,e)=>{var r;if(!i)return!1;const t=((r=i.props)==null?void 0:r.children)??i.children;return e?t.length>0:!!t},qn=i=>{var t,r;if(!i)return[];const e=((t=i.props)==null?void 0:t.children)??i.children;return(r=i.props)!=null&&r.i18nIsDynamicList?gr(e):e},hd=i=>Array.isArray(i)&&i.every(Ft),gr=i=>Array.isArray(i)?i:[i],gd=(i,e)=>{const t={...e};return t.props=Object.assign(i.props,e.props),t},ca=(i,e)=>{if(!i)return"";let t="";const r=gr(i),n=e!=null&&e.transSupportBasicHtmlNodes?e.transKeepBasicHtmlNodesFor??[]:[];return r.forEach((s,o)=>{if(Ge(s))t+=`${s}`;else if(Ft(s)){const{props:a,type:l}=s,u=Object.keys(a).length,c=n.indexOf(l)>-1,d=a.children;if(!d&&c&&!u)t+=`<${l}/>`;else if(!d&&(!c||u)||a.i18nIsDynamicList)t+=`<${o}></${o}>`;else if(c&&u===1&&Ge(d))t+=`<${l}>${d}</${l}>`;else{const h=ca(d,e);t+=`<${o}>${h}</${o}>`}}else if(s===null)Fi("Trans: the passed in value is invalid - seems you passed in a null child.");else if(hr(s)){const{format:a,...l}=s,u=Object.keys(l);if(u.length===1){const c=a?`${u[0]}, ${a}`:u[0];t+=`{{${c}}}`}else Fi("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",s)}else Fi("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",s)}),t},md=(i,e,t,r,n,s)=>{if(e==="")return[];const o=r.transKeepBasicHtmlNodesFor||[],a=e&&new RegExp(o.map(w=>`<${w}`).join("|")).test(e);if(!i&&!a&&!s)return[e];const l={},u=w=>{gr(w).forEach(g=>{Ge(g)||(zn(g)?u(qn(g)):hr(g)&&!Ft(g)&&Object.assign(l,g))})};u(i);const c=ad.parse(`<0>${e}</0>`),d={...l,...n},h=(w,v,g)=>{var y;const x=qn(w),_=m(x,v.children,g);return hd(x)&&_.length===0||(y=w.props)!=null&&y.i18nIsDynamicList?x:_},f=(w,v,g,x,_)=>{w.dummy?(w.children=v,g.push(Qo(w,{key:x},_?void 0:v))):g.push(...Vo.map([w],y=>{const k={...y.props};return delete k.i18nIsDynamicList,z(y.type,{...k,key:x,ref:y.ref},_?null:v)}))},m=(w,v,g)=>{const x=gr(w);return gr(v).reduce((y,k,A)=>{var D,S;const C=((S=(D=k.children)==null?void 0:D[0])==null?void 0:S.content)&&t.services.interpolator.interpolate(k.children[0].content,d,t.language);if(k.type==="tag"){let T=x[parseInt(k.name,10)];g.length===1&&!T&&(T=g[0][k.name]),T||(T={});const L=Object.keys(k.attrs).length!==0?gd({props:k.attrs},T):T,F=Ft(L),M=F&&zn(k,!0)&&!k.voidElement,N=a&&hr(L)&&L.dummy&&!F,q=hr(i)&&Object.hasOwnProperty.call(i,k.name);if(Ge(L)){const P=t.services.interpolator.interpolate(L,d,t.language);y.push(P)}else if(zn(L)||M){const P=h(L,k,g);f(L,P,y,A)}else if(N){const P=m(x,k.children,g);f(L,P,y,A)}else if(Number.isNaN(parseFloat(k.name)))if(q){const P=h(L,k,g);f(L,P,y,A,k.voidElement)}else if(r.transSupportBasicHtmlNodes&&o.indexOf(k.name)>-1)if(k.voidElement)y.push(z(k.name,{key:`${k.name}-${A}`}));else{const P=m(x,k.children,g);y.push(z(k.name,{key:`${k.name}-${A}`},P))}else if(k.voidElement)y.push(`<${k.name} />`);else{const P=m(x,k.children,g);y.push(`<${k.name}>${P}</${k.name}>`)}else if(hr(L)&&!F){const P=k.children[0]?C:null;P&&y.push(P)}else f(L,C,y,A,k.children.length!==1||!C)}else if(k.type==="text"){const T=r.transWrapTextNodes,L=s?r.unescape(t.services.interpolator.interpolate(k.content,d,t.language)):t.services.interpolator.interpolate(k.content,d,t.language);T?y.push(z(T,{key:`${k.name}-${A}`},L)):y.push(L)}return y},[])},b=m([{dummy:!0,children:i||[]}],c,gr(i||[]));return qn(b[0])};function bd({children:i,count:e,parent:t,i18nKey:r,context:n,tOptions:s={},values:o,defaults:a,components:l,ns:u,i18n:c,t:d,shouldUnescape:h,...f}){var T,L,F,M,N,q;const m=c||Nt();if(!m)return Ni("You will need to pass in an i18next instance by using i18nextReactModule"),i;const b=d||m.t.bind(m)||(P=>P),w={...la(),...(T=m.options)==null?void 0:T.react};let v=u||b.ns||((L=m.options)==null?void 0:L.defaultNS);v=Ge(v)?[v]:v||["translation"];const g=ca(i,w),x=a||g||w.transEmptyNodeValue||r,{hashTransKey:_}=w,y=r||(_?_(g||x):g||x);(M=(F=m.options)==null?void 0:F.interpolation)!=null&&M.defaultVariables&&(o=o&&Object.keys(o).length>0?{...o,...m.options.interpolation.defaultVariables}:{...m.options.interpolation.defaultVariables});const k=o||e!==void 0&&!((q=(N=m.options)==null?void 0:N.interpolation)!=null&&q.alwaysFormat)||!i?s.interpolation:{interpolation:{...s.interpolation,prefix:"#$?",suffix:"?$#"}},A={...s,context:n||s.context,count:e,...o,...k,defaultValue:x,ns:v},C=y?b(y,A):x;l&&Object.keys(l).forEach(P=>{const E=l[P];if(typeof E.type=="function"||!E.props||!E.props.children||C.indexOf(`${P}/>`)<0&&C.indexOf(`${P} />`)<0)return;function B(){return z($,null,E)}l[P]=z(B)});const D=md(l||i,C,m,w,A,h),S=t??w.defaultTransParent;return S?z(S,f,D):D}const vd={type:"3rdParty",init(i){pd(i.options.react),fd(i)}},da=Wr();class wd{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function pa({children:i,count:e,parent:t,i18nKey:r,context:n,tOptions:s={},values:o,defaults:a,components:l,ns:u,i18n:c,t:d,shouldUnescape:h,...f}){var g;const{i18n:m,defaultNS:b}=Bi(da)||{},w=c||m||Nt(),v=d||(w==null?void 0:w.t.bind(w));return bd({children:i,count:e,parent:t,i18nKey:r,context:n,tOptions:s,values:o,defaults:a,components:l,ns:u||(v==null?void 0:v.ns)||b||((g=w==null?void 0:w.options)==null?void 0:g.defaultNS),i18n:w,t:d,shouldUnescape:h,...f})}const xd=(i,e)=>{const t=Y();return U(()=>{t.current=e?t.current:i},[i,e]),t.current},fa=(i,e,t,r)=>i.getFixedT(e,t,r),_d=(i,e,t,r)=>Oo(fa(i,e,t,r),[i,e,t,r]),ee=(i,e={})=>{var _,y,k,A;const{i18n:t}=e,{i18n:r,defaultNS:n}=Bi(da)||{},s=t||r||Nt();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new wd),!s){Ni("You will need to pass in an i18next instance by using initReactI18next");const C=(S,T)=>Ge(T)?T:hr(T)&&Ge(T.defaultValue)?T.defaultValue:Array.isArray(S)?S[S.length-1]:S,D=[C,{},!1];return D.t=C,D.i18n={},D.ready=!1,D}(_=s.options.react)!=null&&_.wait&&Ni("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...la(),...s.options.react,...e},{useSuspense:a,keyPrefix:l}=o;let u=i||n||((y=s.options)==null?void 0:y.defaultNS);u=Ge(u)?[u]:u||["translation"],(A=(k=s.reportNamespaces).addUsedNamespaces)==null||A.call(k,u);const c=(s.isInitialized||s.initializedStoreOnce)&&u.every(C=>ld(C,s,o)),d=_d(s,e.lng||null,o.nsMode==="fallback"?u:u[0],l),h=()=>d,f=()=>fa(s,e.lng||null,o.nsMode==="fallback"?u:u[0],l),[m,b]=O(h);let w=u.join();e.lng&&(w=`${e.lng}${w}`);const v=xd(w),g=Y(!0);U(()=>{const{bindI18n:C,bindI18nStore:D}=o;g.current=!0,!c&&!a&&(e.lng?aa(s,e.lng,u,()=>{g.current&&b(f)}):oa(s,u,()=>{g.current&&b(f)})),c&&v&&v!==w&&g.current&&b(f);const S=()=>{g.current&&b(f)};return C&&(s==null||s.on(C,S)),D&&(s==null||s.store.on(D,S)),()=>{g.current=!1,s&&(C==null||C.split(" ").forEach(T=>s.off(T,S))),D&&s&&D.split(" ").forEach(T=>s.store.off(T,S))}},[s,w]),U(()=>{g.current&&c&&b(h)},[s,l,c]);const x=[m,s,c];if(x.t=m,x.i18n=s,x.ready=c,c||!c&&!a)return x;throw new Promise(C=>{e.lng?aa(s,e.lng,u,()=>C()):oa(s,u,()=>C())})};var yd=Symbol.for("preact-signals");function Mi(){if(Mt>1)Mt--;else{for(var i,e=!1;Kr!==void 0;){var t=Kr;for(Kr=void 0,$n++;t!==void 0;){var r=t.o;if(t.o=void 0,t.f&=-3,!(8&t.f)&&ga(t))try{t.c()}catch(n){e||(i=n,e=!0)}t=r}}if($n=0,Mt--,e)throw i}}function Cd(i){if(Mt>0)return i();Mt++;try{return i()}finally{Mi()}}var re=void 0,Kr=void 0,Mt=0,$n=0,Pi=0;function ha(i){if(re!==void 0){var e=i.n;if(e===void 0||e.t!==re)return e={i:0,S:i,p:re.s,n:void 0,t:re,e:void 0,x:void 0,r:e},re.s!==void 0&&(re.s.n=e),re.s=e,i.n=e,32&re.f&&i.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=re.s,e.n=void 0,re.s.n=e,re.s=e),e}}function _e(i){this.v=i,this.i=0,this.n=void 0,this.t=void 0}_e.prototype.brand=yd,_e.prototype.h=function(){return!0},_e.prototype.S=function(i){this.t!==i&&i.e===void 0&&(i.x=this.t,this.t!==void 0&&(this.t.e=i),this.t=i)},_e.prototype.U=function(i){if(this.t!==void 0){var e=i.e,t=i.x;e!==void 0&&(e.x=t,i.e=void 0),t!==void 0&&(t.e=e,i.x=void 0),i===this.t&&(this.t=t)}},_e.prototype.subscribe=function(i){var e=this;return jn(function(){var t=e.value,r=re;re=void 0;try{i(t)}finally{re=r}})},_e.prototype.valueOf=function(){return this.value},_e.prototype.toString=function(){return this.value+""},_e.prototype.toJSON=function(){return this.value},_e.prototype.peek=function(){var i=re;re=void 0;try{return this.value}finally{re=i}},Object.defineProperty(_e.prototype,"value",{get:function(){var i=ha(this);return i!==void 0&&(i.i=this.i),this.v},set:function(i){if(i!==this.v){if($n>100)throw new Error("Cycle detected");this.v=i,this.i++,Pi++,Mt++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Mi()}}}});function Ce(i){return new _e(i)}function ga(i){for(var e=i.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 ma(i){for(var e=i.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){i.s=e;break}}}function ba(i){for(var e=i.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}i.s=t}function mr(i){_e.call(this,void 0),this.x=i,this.s=void 0,this.g=Pi-1,this.f=4}(mr.prototype=new _e).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Pi))return!0;if(this.g=Pi,this.f|=1,this.i>0&&!ga(this))return this.f&=-2,!0;var i=re;try{ma(this),re=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 re=i,ba(this),this.f&=-2,!0},mr.prototype.S=function(i){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}_e.prototype.S.call(this,i)},mr.prototype.U=function(i){if(this.t!==void 0&&(_e.prototype.U.call(this,i),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}},mr.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var i=this.t;i!==void 0;i=i.x)i.t.N()}},Object.defineProperty(mr.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var i=ha(this);if(this.h(),i!==void 0&&(i.i=this.i),16&this.f)throw this.v;return this.v}});function kd(i){return new mr(i)}function va(i){var e=i.u;if(i.u=void 0,typeof e=="function"){Mt++;var t=re;re=void 0;try{e()}catch(r){throw i.f&=-2,i.f|=8,Vn(i),r}finally{re=t,Mi()}}}function Vn(i){for(var e=i.s;e!==void 0;e=e.n)e.S.U(e);i.x=void 0,i.s=void 0,va(i)}function Dd(i){if(re!==this)throw new Error("Out-of-order effect");ba(this),re=i,this.f&=-2,8&this.f&&Vn(this),Mi()}function Zr(i){this.x=i,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Zr.prototype.c=function(){var i=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{i()}},Zr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,va(this),ma(this),Mt++;var i=re;return re=this,Dd.bind(this,i)},Zr.prototype.N=function(){2&this.f||(this.f|=2,this.o=Kr,Kr=this)},Zr.prototype.d=function(){this.f|=8,1&this.f||Vn(this)};function jn(i){var e=new Zr(i);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}var Un;function br(i,e){G[i]=e.bind(null,G[i]||function(){})}function Oi(i){Un&&Un(),Un=i&&i.S()}function wa(i){var e=this,t=i.data,r=Sd(t);r.value=t;var n=it(function(){for(var s=e.__v;s=s.__;)if(s.__c){s.__c.__$f|=4;break}return e.__$u.c=function(){var o,a=e.__$u.S(),l=n.value;a(),po(l)||((o=e.base)==null?void 0:o.nodeType)!==3?(e.__$f|=1,e.setState({})):e.base.data=l},kd(function(){var o=r.value.value;return o===0?0:o===!0?"":o||""})},[]);return n.value}wa.displayName="_st",Object.defineProperties(_e.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:wa},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),br("__b",function(i,e){if(typeof e.type=="string"){var t,r=e.props;for(var n in r)if(n!=="children"){var s=r[n];s instanceof _e&&(t||(e.__np=t={}),t[n]=s,r[n]=s.peek())}}i(e)}),br("__r",function(i,e){Oi();var t,r=e.__c;r&&(r.__$f&=-2,(t=r.__$u)===void 0&&(r.__$u=t=function(n){var s;return jn(function(){s=this}),s.c=function(){r.__$f|=1,r.setState({})},s}())),Oi(t),i(e)}),br("__e",function(i,e,t,r){Oi(),i(e,t,r)}),br("diffed",function(i,e){Oi();var t;if(typeof e.type=="string"&&(t=e.__e)){var r=e.__np,n=e.props;if(r){var s=t.U;if(s)for(var o in s){var a=s[o];a!==void 0&&!(o in r)&&(a.d(),s[o]=void 0)}else t.U=s={};for(var l in r){var u=s[l],c=r[l];u===void 0?(u=Ad(t,l,c,n),s[l]=u):u.o(c,n)}}}i(e)});function Ad(i,e,t,r){var n=e in i&&i.ownerSVGElement===void 0,s=Ce(t);return{o:function(o,a){s.value=o,r=a},d:jn(function(){var o=s.value.value;r[e]!==o&&(r[e]=o,n?i[e]=o:o?i.setAttribute(e,o):i.removeAttribute(e))})}}br("unmount",function(i,e){if(typeof e.type=="string"){var t=e.__e;if(t){var r=t.U;if(r){t.U=void 0;for(var n in r){var s=r[n];s&&s.d()}}}}else{var o=e.__c;if(o){var a=o.__$u;a&&(o.__$u=void 0,a.d())}}i(e)}),br("__h",function(i,e,t,r){(r<3||r===9)&&(e.__$f|=2),i(e,t,r)}),Xe.prototype.shouldComponentUpdate=function(i,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 n in i)if(n!=="__source"&&i[n]!==this.props[n])return!0;for(var s in this.props)if(!(s in i))return!0;return!1};function Sd(i){return it(function(){return Ce(i)},[])}const Hn=Ce(!1),Z=Ce(null),vr=Ce([]),wr=Ce(!1),Ee=Ce(!1),xr=Ce([]),Je=Ce(!1),Ii=Ce(null),ke=Ce(null),Ri=Ce(!1),zi=Ce(!0),mt=Ce(!1),Ed=()=>{Cd(()=>{Z.value=null,vr.value=[],wr.value=!1,Ee.value=!1,xr.value=[],Je.value=!1,Ii.value=null,ke.value=null,Ri.value=!1,zi.value=!0,mt.value=!1})},Gn="bm_currentBike",Bd="v2",Ld="https://cdn.bikematrix.io",Td="1.0.2",xa={isShopify:!1,skuField:"sku",apiUrl:"https://api.bikematrix.io/proxy/v3/",apiKey:"",apiToken:"",currentCollectionHandle:"",categories:[],collections:[],pageType:"index",showHomePageCollection:!1,showSearchPageCollection:!1,designMode:!1,bikeSelectorBrands:"",productsCollections:{},isHomePage:!1,isSearchPage:!1,products:{},collectionUrl:"",compatiblityListCurrentPage:0,showCompatibleList:!0,delayCompatibleListInitialization:!1,sku:"",productCollections:[],logLevel:"none",virtualWorkshop:!0,internalLink:"",showBrowseCategoryButtons:!0,browseCompatibilityUrl:""},Be=function(i){return new URL(i,Ld).toString()};function _a(i){var e,t,r="";if(typeof i=="string"||typeof i=="number")r+=i;else if(typeof i=="object")if(Array.isArray(i)){var n=i.length;for(e=0;e<n;e++)i[e]&&(t=_a(i[e]))&&(r&&(r+=" "),r+=t)}else for(t in i)i[t]&&(r&&(r+=" "),r+=t);return r}function Fd(){for(var i,e,t=0,r="",n=arguments.length;t<n;t++)(i=arguments[t])&&(e=_a(i))&&(r&&(r+=" "),r+=e);return r}const Wn="-";function Nd(i){const e=Pd(i),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=i;function n(o){const a=o.split(Wn);return a[0]===""&&a.length!==1&&a.shift(),ya(a,e)||Md(o)}function s(o,a){const l=t[o]||[];return a&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:n,getConflictingClassGroupIds:s}}function ya(i,e){var o;if(i.length===0)return e.classGroupId;const t=i[0],r=e.nextPart.get(t),n=r?ya(i.slice(1),r):void 0;if(n)return n;if(e.validators.length===0)return;const s=i.join(Wn);return(o=e.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId}const Ca=/^\[(.+)\]$/;function Md(i){if(Ca.test(i)){const e=Ca.exec(i)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}}function Pd(i){const{theme:e,prefix:t}=i,r={nextPart:new Map,validators:[]};return Id(Object.entries(i.classGroups),t).forEach(([s,o])=>{Yn(o,r,s,e)}),r}function Yn(i,e,t,r){i.forEach(n=>{if(typeof n=="string"){const s=n===""?e:ka(e,n);s.classGroupId=t;return}if(typeof n=="function"){if(Od(n)){Yn(n(r),e,t,r);return}e.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([s,o])=>{Yn(o,ka(e,s),t,r)})})}function ka(i,e){let t=i;return e.split(Wn).forEach(r=>{t.nextPart.has(r)||t.nextPart.set(r,{nextPart:new Map,validators:[]}),t=t.nextPart.get(r)}),t}function Od(i){return i.isThemeGetter}function Id(i,e){return e?i.map(([t,r])=>{const n=r.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[e+o,a])):s);return[t,n]}):i}function Rd(i){if(i<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,r=new Map;function n(s,o){t.set(s,o),e++,e>i&&(e=0,r=t,t=new Map)}return{get(s){let o=t.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return n(s,o),o},set(s,o){t.has(s)?t.set(s,o):n(s,o)}}}const Da="!";function zd(i){const e=i.separator,t=e.length===1,r=e[0],n=e.length;return function(o){const a=[];let l=0,u=0,c;for(let b=0;b<o.length;b++){let w=o[b];if(l===0){if(w===r&&(t||o.slice(b,b+n)===e)){a.push(o.slice(u,b)),u=b+n;continue}if(w==="/"){c=b;continue}}w==="["?l++:w==="]"&&l--}const d=a.length===0?o:o.substring(u),h=d.startsWith(Da),f=h?d.substring(1):d,m=c&&c>u?c-u:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:m}}}function qd(i){if(i.length<=1)return i;const e=[];let t=[];return i.forEach(r=>{r[0]==="["?(e.push(...t.sort(),r),t=[]):t.push(r)}),e.push(...t.sort()),e}function $d(i){return{cache:Rd(i.cacheSize),splitModifiers:zd(i),...Nd(i)}}const Vd=/\s+/;function jd(i,e){const{splitModifiers:t,getClassGroupId:r,getConflictingClassGroupIds:n}=e,s=new Set;return i.trim().split(Vd).map(o=>{const{modifiers:a,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=t(o);let d=r(c?u.substring(0,c):u),h=!!c;if(!d){if(!c)return{isTailwindClass:!1,originalClassName:o};if(d=r(u),!d)return{isTailwindClass:!1,originalClassName:o};h=!1}const f=qd(a).join(":");return{isTailwindClass:!0,modifierId:l?f+Da:f,classGroupId:d,originalClassName:o,hasPostfixModifier:h}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:u}=o,c=a+l;return s.has(c)?!1:(s.add(c),n(l,u).forEach(d=>s.add(a+d)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function Ud(){let i=0,e,t,r="";for(;i<arguments.length;)(e=arguments[i++])&&(t=Aa(e))&&(r&&(r+=" "),r+=t);return r}function Aa(i){if(typeof i=="string")return i;let e,t="";for(let r=0;r<i.length;r++)i[r]&&(e=Aa(i[r]))&&(t&&(t+=" "),t+=e);return t}function Hd(i,...e){let t,r,n,s=o;function o(l){const u=e.reduce((c,d)=>d(c),i());return t=$d(u),r=t.cache.get,n=t.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=jd(l,t);return n(l,c),c}return function(){return s(Ud.apply(null,arguments))}}function oe(i){const e=t=>t[i]||[];return e.isThemeGetter=!0,e}const Sa=/^\[(?:([a-z-]+):)?(.+)\]$/i,Gd=/^\d+\/\d+$/,Wd=new Set(["px","full","screen"]),Yd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Zd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Xd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function bt(i){return Kt(i)||Wd.has(i)||Gd.test(i)}function Pt(i){return _r(i,"length",op)}function Kt(i){return!!i&&!Number.isNaN(Number(i))}function qi(i){return _r(i,"number",Kt)}function Xr(i){return!!i&&Number.isInteger(Number(i))}function Qd(i){return i.endsWith("%")&&Kt(i.slice(0,-1))}function K(i){return Sa.test(i)}function Ot(i){return Yd.test(i)}const ep=new Set(["length","size","percentage"]);function tp(i){return _r(i,ep,Ea)}function rp(i){return _r(i,"position",Ea)}const ip=new Set(["image","url"]);function np(i){return _r(i,ip,lp)}function sp(i){return _r(i,"",ap)}function Jr(){return!0}function _r(i,e,t){const r=Sa.exec(i);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):t(r[2]):!1}function op(i){return Kd.test(i)&&!Zd.test(i)}function Ea(){return!1}function ap(i){return Xd.test(i)}function lp(i){return Jd.test(i)}function up(){const i=oe("colors"),e=oe("spacing"),t=oe("blur"),r=oe("brightness"),n=oe("borderColor"),s=oe("borderRadius"),o=oe("borderSpacing"),a=oe("borderWidth"),l=oe("contrast"),u=oe("grayscale"),c=oe("hueRotate"),d=oe("invert"),h=oe("gap"),f=oe("gradientColorStops"),m=oe("gradientColorStopPositions"),b=oe("inset"),w=oe("margin"),v=oe("opacity"),g=oe("padding"),x=oe("saturate"),_=oe("scale"),y=oe("sepia"),k=oe("skew"),A=oe("space"),C=oe("translate"),D=()=>["auto","contain","none"],S=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",K,e],L=()=>[K,e],F=()=>["",bt,Pt],M=()=>["auto",Kt,K],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],P=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],E=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",K],R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Kt,qi],j=()=>[Kt,K];return{cacheSize:500,separator:":",theme:{colors:[Jr],spacing:[bt,Pt],blur:["none","",Ot,K],brightness:V(),borderColor:[i],borderRadius:["none","","full",Ot,K],borderSpacing:L(),borderWidth:F(),contrast:V(),grayscale:B(),hueRotate:j(),invert:B(),gap:L(),gradientColorStops:[i],gradientColorStopPositions:[Qd,Pt],inset:T(),margin:T(),opacity:V(),padding:L(),saturate:V(),scale:V(),sepia:B(),skew:j(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",K]}],container:["container"],columns:[{columns:[Ot]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...N(),K]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Xr,K]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",K]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",Xr,K]}],"grid-cols":[{"grid-cols":[Jr]}],"col-start-end":[{col:["auto",{span:["full",Xr,K]},K]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Jr]}],"row-start-end":[{row:["auto",{span:[Xr,K]},K]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",K]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",K]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",K,e]}],"min-w":[{"min-w":[K,e,"min","max","fit"]}],"max-w":[{"max-w":[K,e,"none","full","min","max","fit","prose",{screen:[Ot]},Ot]}],h:[{h:[K,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[K,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[K,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[K,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Ot,Pt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qi]}],"font-family":[{font:[Jr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",K]}],"line-clamp":[{"line-clamp":["none",Kt,qi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",bt,K]}],"list-image":[{"list-image":["none",K]}],"list-style-type":[{list:["none","disc","decimal",K]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",bt,Pt]}],"underline-offset":[{"underline-offset":["auto",bt,K]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),rp]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",tp]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},np]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:q()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[bt,K]}],"outline-w":[{outline:[bt,Pt]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[bt,Pt]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",Ot,sp]}],"shadow-color":[{shadow:[Jr]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":P()}],"bg-blend":[{"bg-blend":P()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ot,K]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",K]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",K]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",K]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Xr,K]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",K]}],accent:[{accent:["auto",i]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",K]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",K]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[bt,Pt,qi]}],stroke:[{stroke:[i,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const cp=Hd(up);function X(...i){return cp(Fd(i))}const dp=crypto.randomUUID();function pp(){const i="bm_window_id";let e=sessionStorage.getItem(i);return e||(e=crypto.randomUUID(),sessionStorage.setItem(i,e)),e}const fp={shopify:{bikeBrands:"bike/brands",bikeModels:"bike/models",framesSeries:"bike/frameSeries",bikeSpecs:"bike/bikeSpecBikes",bikeSpecYears:"bike/bikeSpecYears",bikeSpecSizes:"bike/bikeSpecSizes",bikeBrandProductCategories:"bike/bikeBrandProductCategories",checkSku:"compatibility/checkSku",checkSkus:"compatibility/checkSkus",checkSkusWithResults:"compatibility/checkSkusWithResults",bikeBom:"workshop/bikeBom",customBike:"workshop/addCustomBike",addComponent:"workshop/addComponent",findProducts:"workshop/findProducts",removeComponent:"workshop/removeComponent",revertComponent:"workshop/revertComponent",saveCustomBike:"workshop/saveCustomBike",updateCustomBike:"workshop/updateCustomBike",updateCustomBikeName:"workshop/updateCustomBikeName",raceControl:"raceControl"},bikematrix:{bikeBrands:"GetBikeBrands",bikeModels:"GetBikeModels",framesSeries:"GetBikeFrameSeries",bikeSpecs:"GetBikeSpecBikes",bikeSpecYears:"GetBikeSpecYears",bikeSpecSizes:"GetBikeSpecSizes",bikeBrandProductCategories:"GetBikeBrandProductCategories",checkSku:"Compatibility_CheckSku",checkSkus:"Compatibility_CheckSkus",checkSkusWithResults:"Compatibility_CheckSkusWithResults",bikeBom:"GetBikeBillOfMaterials",customBike:"AddCustomBike",addComponent:"AddComponent",findProducts:"FindProducts",removeComponent:"RemoveComponent",revertComponent:"RevertComponent",saveCustomBike:"SaveCustomBike",updateCustomBike:"UpdateCustomBike",updateCustomBikeName:"UpdateCustomBikeName",raceControl:"RaceControl"}};class De{constructor(e,t,r,n){this._apiUrl=n?window.location.origin+"/apps/proxy/api/":e,this._apiKey=t??"",this._apiToken=r??"",this._apiType=n?"shopify":"bikematrix",this._requestCorrelationId=pp(),this._requestDiagnosticCounter=0}getDiagnosticHeaderValue(){const e="bm_request_diagnostic_counter",t=parseInt(sessionStorage.getItem(e)||"",10),r=Number.isFinite(t)?t:0;this._requestDiagnosticCounter=r+1,sessionStorage.setItem(e,this._requestDiagnosticCounter.toString());const n=parseInt(this._requestCorrelationId.replace(/-/g,"").slice(0,8)||"0",16);return(this._requestDiagnosticCounter^n).toString(36)}getEndpoint(e){return fp[this._apiType][e]}async getBikeBrands(){const e=this.getEndpoint("bikeBrands"),t=await this.makeRequest(e);return t.success?{success:t.success,data:t.data}:{success:t.success,error:"error_generic GetBikeBrands",logError:t.error}}async getBikeModels(e){if(!e)return{success:!1,error:"error_generic"};const t=this.getEndpoint("bikeModels"),r=await this.makeRequest(t,{params:{bikeBrandId:e}});return r.success?{data:r.data,success:r.success}:{success:r.success,error:"error_generic GetBikeModels",logError:r.error}}async getBikeFrameSeries(e){if(!e)return{error:"error_generic",success:!1};const t=this.getEndpoint("framesSeries"),r=await this.makeRequest(t,{params:{bikeModelId:e}});return r.success?{data:r.data,success:r.success}:{success:r.success,error:"error_generic GetBikeFrameSeries",logError:r.error}}async getBikeSpecs(e){if(!e)return{success:!1,error:"error_generic GetBikeSpecs"};const t=this.getEndpoint("bikeSpecs"),r=await this.makeRequest(t,{params:{bikeModelSpecId:e}});return r.success?{data:r.data,success:r.success}:{success:r.success,error:"error_generic GetBikeSpecs",logError:r.error}}async getYears(e){if(!e)return{error:"error_generic GetBikeYears",success:!1};const t=this.getEndpoint("bikeSpecYears"),r=await this.makeRequest(t,{params:{bikeModelSpecId:e}});return r.success?{data:r.data,success:r.success}:{error:"error_generic GetBikeYears",success:!1,logError:r.success}}async getFrameSizes(e,t,r){if(!e||!t)return{success:!1,error:"error_generic GetFrameSizes"};const n=this.getEndpoint("bikeSpecSizes"),s=await this.makeRequest(n,{params:{bikeModelSpecId:e,bikeSpec:t,year:r}});return s.success?{data:s.data,success:s.success}:{success:s.success,error:"error_generic GetFrameSizes",logError:s.error}}async getBikes(e,t,r){if(e&&(t||r)){const n=this.getEndpoint("bikeSpecs"),s=await this.makeRequest(n,{params:{bikeModelSpecId:e,bikeSpec:t,year:r}});return s.success?{data:s.data,success:s.success}:{success:s.success,error:"error_generic GetBikes",logError:s.error}}else return{success:!1,error:"error_generic GetBikes"}}async getBrandProductCategories(e){if(e){const t=this.getEndpoint("bikeBrandProductCategories"),r=await this.makeRequest(t,{params:{bikeBrandId:e}});return r.success?{data:r.data,success:!0}:(console.error(r.error),{success:!1,error:"error_generic GetBrandProductCategories",logError:r.error})}else return{success:!1,error:"error_generic GetBrandProductCategories"}}async checkSkuCompatibility(e,t,r,n,s){if(e&&t){const o=this.getEndpoint("checkSku")+`/${e}/${t}/${r}`,a={"bm-caller":n};s&&(a["bm-collection-handle"]=s);const l=await this.makeRequest(o,{headers:a});return l.success?{success:l.success,data:l.data}:{success:l.success,error:"error_generic CheckSkuCompatibility",logError:l.error}}else return{success:!1,error:"error_generic CheckSkuCompatibility"}}async checkSkusCompatibility(e,t,r,n,s){if(e&&t){const o=this.getEndpoint("checkSkus")+`/${e}/${t}/${r}`,a={"bm-caller":n};s&&(a["bm-collection-handle"]=s);const l=await this.makeRequest(o,{headers:a});return l.success?{data:l.data,success:l.success,logError:l.error}:{success:l.success,error:"error_generic CheckSkusCompatibility",logError:l.error}}else return{success:!1,error:"error_generic CheckSkusCompatibility"}}async checkSkusCompatibilityWithResults(e,t,r,n,s,o={}){if(e&&t){const a=this.getEndpoint("checkSkusWithResults")+`/${e}/${r}`,l={"Content-Type":"application/json","bm-caller":n};s&&(l["bm-collection-handle"]=s);const u=await this.makeRequest(a,{body:JSON.stringify(t),method:"POST",headers:l,...o});return u.success?{data:u.data,success:u.success}:{success:u.success,error:"error_compatiblelist",logError:u.error}}else return{success:!1,error:"error_compatiblelist"}}async getActiveSubscription(e){if(this._apiType!=="shopify"){e({activeSubscription:!0});return}var t="activeSubscription";const r=await this.makeRequest(t);if(!r.success){console.log(`getActiveSubscription Error: ${r.error}`);return}e(r.data)}async getBikeBom(e){if(!e)return{success:!1,error:"error_generic getBikeBom"};const t=this.getEndpoint("bikeBom"),r=await this.makeRequest(t,{params:{bikeKey:e}});return r.success?{data:r.data,success:r.success}:{success:r.success,error:"error_get_bike_bom",logError:r.error}}async addCustomBike(e){if(!e)return{success:!1,error:"error_generic addCustomBike"};const t=this.getEndpoint("customBike"),r=await this.makeRequest(t,{method:"POST",headers:{"Content-Type":"application/json"},params:{bikeKey:e}});return r.success?{data:r.data,success:r.success}:{success:r.success,error:"error_add_custom_bike",logError:r.error}}async findProducts(e,t){if(!e)return{success:!1,error:"error_generic findProducts"};const r=this.getEndpoint("findProducts"),n=await this.makeRequest(r,{params:{search:e,productCategoryId:t,recordCount:500}});return n.success?{data:n.data,success:n.success}:{success:n.success,error:"error_find_products",logError:n.error}}async addComponent(e,t,r,n){if(!e||!t||!r||!n)return{success:!1,error:"error_generic addComponent"};const s=this.getEndpoint("addComponent"),o=await this.makeRequest(s,{method:"POST",headers:{"Content-Type":"application/json"},params:{bikeKey:e,productCategoryId:t,productId:r,bikeFieldName:n}});return o.success?{data:o.data,success:o.success}:{success:o.success,error:"error_add_component",logError:o.error}}async removeComponent(e,t,r){if(!e||!t||!r)return{success:!1,error:"error_generic removeComponent"};const n=this.getEndpoint("removeComponent"),s=await this.makeRequest(n,{method:"POST",headers:{"Content-Type":"application/json"},params:{bikeKey:e,productCategoryId:t,bikeFieldName:r}});return s.success?{data:s.data,success:s.success}:{success:s.success,error:"error_remove_component",logError:s.error}}async revertComponent(e,t,r){if(!e||!t||!r)return{success:!1,error:"error_generic revertComponent"};const n=this.getEndpoint("revertComponent"),s=await this.makeRequest(n,{method:"POST",headers:{"Content-Type":"application/json"},params:{bikeKey:e,productCategoryId:t,bikeFieldName:r}});return s.success?{data:s.data,success:s.success}:{success:s.success,error:"error_revert_component",logError:s.error}}async saveCustomBike(e,t){if(!e||!t)return{success:!1,error:"error_generic saveCustomBike"};const r=this.getEndpoint("saveCustomBike"),n=await this.makeRequest(r,{method:"POST",headers:{"Content-Type":"application/json"},params:{bikeKey:e,email:t}});return n.success?{data:n.data,success:n.success}:{success:n.success,error:"error_save_custom_bike",logError:n.error}}async updateCustomBike(e,t){if(!e||!t)return{success:!1,error:"error_generic saveCustomBike"};const r=this.getEndpoint("updateCustomBike"),n=await this.makeRequest(r,{method:"POST",headers:{"Content-Type":"application/json"},params:{bikeKey:e,productCategoryId:t}});return n.success?{data:n.data,success:n.success}:{success:n.success,error:"error_update_custom_bike"}}async updateCustomBikeName(e,t){if(!e||!t)return{success:!1,error:"error_generic updateCustomBikeName"};const r=this.getEndpoint("updateCustomBikeName"),n=await this.makeRequest(r,{method:"POST",headers:{"Content-Type":"application/json"},params:{bikeKey:e,name:t}});return n.success?{data:n.data,success:n.success}:{success:n.success,error:"error_update_custom_bike_name",logError:n.error}}async raceControl(e,t){if(!e)return{success:!1,error:"error_generic raceControl"};const r=this.getEndpoint("raceControl"),n=await this.makeRequest(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),params:{id:e}});return n.success?{data:n.data,success:n.success}:{success:n.success,error:"error_generic raceControl",logError:n.error}}async makeRequest(e,t={}){const r=new URL(e,this._apiUrl),n={"Cache-Control":"no-cache",...this._apiKey&&{"bm-subscription-key":this._apiKey},...this._apiToken&&{"bm-app-token":this._apiToken},"bm-sdk-version":"1.3.12","bm-url":window.location.href,"bm-page-load-correlation-id":dp,"bm-window-correlation-id":this._requestCorrelationId,"x-diagnostic-r":this.getDiagnosticHeaderValue()};typeof t.params=="object"&&(Object.keys(t.params).forEach(o=>{t.params[o]&&r.searchParams.set(o,t.params[o])}),delete t.params);let s;try{const o={...n,...t.headers||{}},a={...t,headers:o};t.signal&&(a.signal=t.signal);const l=await fetch(r==null?void 0:r.href,a),u=await l.json().catch(()=>{throw new Error("Request failed: "+(l.statusText||"Status"+l.status))});u.status===400||u.statusCode===404?s={success:!1,data:u}:s={success:!0,data:u}}catch(o){s={success:!1,error:o.message}}return s}}async function Ba(i,e){var f;const{categories:t,collections:r,apiUrl:n,apiKey:s,apiToken:o,isShopify:a,logLevel:l}=window.BikeMatrix.getConfig(),u=JSON.parse(sessionStorage.getItem("bm_categories")||"null"),c=JSON.parse(localStorage.getItem(Gn)||"null"),d=new De(n,s,o,a);let h=[];if(l==="verbose"&&console.log("useCompatibleCollections sessionCollections",u),!u||!(u!=null&&u.collections)||!(u!=null&&u.collections.length)||(u==null?void 0:u.key)!==(c==null?void 0:c.key)||(u==null?void 0:u.language)!==e){l==="verbose"&&console.log("useCompatibleCollections fetching new collections");const m=await d.getBrandProductCategories(i);if(l==="verbose"&&console.log("useCompatibleCollections bikeBrandProductCategories",m),!m.success)return console.log(m),l==="verbose"&&console.error(m.error),h={error:m.error},h;if(l==="verbose"&&(console.log("useCompatibleCollections categories",t),console.log("useCompatibleCollections collections",r)),((f=m.data)==null?void 0:f.length)>0){let b=t.filter(w=>{var v;return!!w.collection&&((v=m==null?void 0:m.data)==null?void 0:v.some(g=>g.product_Category.toLowerCase()===w.title.toLowerCase()))});l==="verbose"&&console.log("useCompatibleCollections availableCategories",b),h=b.map(w=>w.collection.split(",").map(g=>g.trim().toLowerCase()).map(g=>r.find(x=>x.title.toLowerCase()===g)).filter(g=>g!==void 0).map(g=>({title:g.title,text_id:w.text_id,handle:g.handle,url:g.url}))).flat(),l==="verbose"&&console.log("useCompatibleCollections compatibleCollections",h),h=h==null?void 0:h.filter((w,v,g)=>v===g.findIndex(x=>x.title===w.title&&x.text_id===w.text_id&&x.handle===w.handle&&x.url===w.url))}sessionStorage.setItem("bm_categories",JSON.stringify({key:c==null?void 0:c.key,collections:h,language:e})),l==="verbose"&&console.log("useCompatibleCollections fetched collections",h)}else l==="verbose"&&console.log("useCompatibleCollections using session collections"),h=u.collections;return h}const W=i=>typeof i=="string",Qr=()=>{let i,e;const t=new Promise((r,n)=>{i=r,e=n});return t.resolve=i,t.reject=e,t},La=i=>i==null?"":String(i),hp=(i,e,t)=>{i.forEach(r=>{e[r]&&(t[r]=e[r])})},gp=/###/g,Ta=i=>i&&i.includes("###")?i.replace(gp,"."):i,Fa=i=>!i||W(i),ei=(i,e,t)=>{const r=W(e)?e.split("."):e;let n=0;for(;n<r.length-1;){if(Fa(i))return{};const s=Ta(r[n]);!i[s]&&t&&(i[s]=new t),Object.prototype.hasOwnProperty.call(i,s)?i=i[s]:i={},++n}return Fa(i)?{}:{obj:i,k:Ta(r[n])}},Na=(i,e,t)=>{const{obj:r,k:n}=ei(i,e,Object);if(r!==void 0||e.length===1){r[n]=t;return}let s=e[e.length-1],o=e.slice(0,e.length-1),a=ei(i,o,Object);for(;a.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),a=ei(i,o,Object),a!=null&&a.obj&&typeof a.obj[`${a.k}.${s}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=t},mp=(i,e,t,r)=>{const{obj:n,k:s}=ei(i,e,Object);n[s]=n[s]||[],n[s].push(t)},$i=(i,e)=>{const{obj:t,k:r}=ei(i,e);if(t&&Object.prototype.hasOwnProperty.call(t,r))return t[r]},bp=(i,e,t)=>{const r=$i(i,t);return r!==void 0?r:$i(e,t)},Ma=(i,e,t)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in i?W(i[r])||i[r]instanceof String||W(e[r])||e[r]instanceof String?t&&(i[r]=e[r]):Ma(i[r],e[r],t):i[r]=e[r]);return i},vt=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),vp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},wp=i=>W(i)?i.replace(/[&<>"'\/]/g,e=>vp[e]):i;class xp{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const _p=[" ",",","?","!",";"],yp=new xp(20),Cp=(i,e,t)=>{e=e||"",t=t||"";const r=_p.filter(o=>!e.includes(o)&&!t.includes(o));if(r.length===0)return!0;const n=yp.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!n.test(i);if(!s){const o=i.indexOf(t);o>0&&!n.test(i.substring(0,o))&&(s=!0)}return s},Kn=(i,e,t=".")=>{if(!i)return;if(i[e])return Object.prototype.hasOwnProperty.call(i,e)?i[e]:void 0;const r=e.split(t);let n=i;for(let s=0;s<r.length;){if(!n||typeof n!="object")return;let o,a="";for(let l=s;l<r.length;++l)if(l!==s&&(a+=t),a+=r[l],o=n[a],o!==void 0){if(["string","number","boolean"].includes(typeof o)&&l<r.length-1)continue;s+=l-s+1;break}n=o}return n},ti=i=>i==null?void 0:i.replace(/_/g,"-"),kp={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,e){var t,r;(r=(t=console==null?void 0:console[i])==null?void 0:t.apply)==null||r.call(t,console,e)}};class Vi{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||kp,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:(e=e.map(s=>W(s)?s.replace(/[\r\n\x00-\x1F\x7F]/g," "):s),W(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Vi(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Vi(this.logger,e)}}var nt=new Vi;class ji{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const n=this.observers[r].get(t)||0;this.observers[r].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){const r=(...n)=>{t(...n),this.off(e,r)};return this.on(e,r),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([n,s])=>{for(let o=0;o<s;o++)n(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,s])=>{for(let o=0;o<s;o++)n(e,...t)})}}class Pa extends ji{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r,n={}){var u,c;const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.includes(".")?a=e.split("."):(a=[e,t],r&&(Array.isArray(r)?a.push(...r):W(r)&&s?a.push(...r.split(s)):a.push(r)));const l=$i(this.data,a);return!l&&!t&&!r&&e.includes(".")&&(e=a[0],t=a[1],r=a.slice(2).join(".")),l||!o||!W(r)?l:Kn((c=(u=this.data)==null?void 0:u[e])==null?void 0:c[t],r,s)}addResource(e,t,r,n,s={silent:!1}){const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let a=[e,t];r&&(a=a.concat(o?r.split(o):r)),e.includes(".")&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),Na(this.data,a,n),s.silent||this.emit("added",e,t,r,n)}addResources(e,t,r,n={silent:!1}){for(const s in r)(W(r[s])||Array.isArray(r[s]))&&this.addResource(e,t,s,r[s],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,s,o={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(a=e.split("."),n=r,r=t,t=a[1]),this.addNamespaces(t);let l=$i(this.data,a)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?Ma(l,r,s):l={...l,...r},Na(this.data,a,l),o.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(n=>t[n]&&Object.keys(t[n]).length>0)}toJSON(){return this.data}}var Oa={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,e,t,r,n){return i.forEach(s=>{var o;e=((o=this.processors[s])==null?void 0:o.process(e,t,r,n))??e}),e}};const Ia=Symbol("i18next/PATH_KEY");function Dp(){const i=[],e=Object.create(null);let t;return e.get=(r,n)=>{var s;return(s=t==null?void 0:t.revoke)==null||s.call(t),n===Ia?i:(i.push(n),t=Proxy.revocable(r,e),t.proxy)},Proxy.revocable(Object.create(null),e).proxy}function yr(i,e){const{[Ia]:t}=i(Dp()),r=(e==null?void 0:e.keySeparator)??".",n=(e==null?void 0:e.nsSeparator)??":";if(t.length>1&&n){const s=e==null?void 0:e.ns,o=Array.isArray(s)?s:null;if(o&&o.length>1&&o.slice(1).includes(t[0]))return`${t[0]}${n}${t.slice(1).join(r)}`}return t.join(r)}const Zn=i=>!W(i)&&typeof i!="boolean"&&typeof i!="number";class Ui extends ji{constructor(e,t={}){super(),hp(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=nt.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const r={...t};if(e==null)return!1;const n=this.resolve(e,r);if((n==null?void 0:n.res)===void 0)return!1;const s=Zn(n.res);return!(r.returnObjects===!1&&s)}extractFromKey(e,t){let r=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let s=t.ns||this.options.defaultNS||[];const o=r&&e.includes(r),a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Cp(e,r,n);if(o&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:W(s)?[s]:s};const u=e.split(r);(r!==n||r===n&&this.options.ns.includes(u[0]))&&(s=u.shift()),e=u.join(n)}return{key:e,namespaces:W(s)?[s]:s}}translate(e,t,r){let n=typeof t=="object"?{...t}:t;if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";typeof e=="function"&&(e=yr(e,{...this.options,...n})),Array.isArray(e)||(e=[String(e)]),e=e.map(F=>typeof F=="function"?yr(F,{...this.options,...n}):String(F));const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(e[e.length-1],n),u=l[l.length-1];let c=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const d=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((d==null?void 0:d.toLowerCase())==="cimode")return h?s?{res:`${u}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${c}${a}`:s?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:a;const f=this.resolve(e,n);let m=f==null?void 0:f.res;const b=(f==null?void 0:f.usedKey)||a,w=(f==null?void 0:f.exactUsedKey)||a,v=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,_=n.count!==void 0&&!W(n.count),y=Ui.hasDefaultValue(n),k=_?this.pluralResolver.getSuffix(d,n.count,n):"",A=n.ordinal&&_?this.pluralResolver.getSuffix(d,n.count,{ordinal:!1}):"",C=_&&!n.ordinal&&n.count===0,D=C&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${k}`]||n[`defaultValue${A}`]||n.defaultValue;let S=m;x&&!m&&y&&(S=D);const T=Zn(S),L=Object.prototype.toString.apply(S);if(x&&S&&T&&!v.includes(L)&&!(W(g)&&Array.isArray(S))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,S,{...n,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return s?(f.res=F,f.usedParams=this.getUsedParamsDetails(n),f):F}if(o){const F=Array.isArray(S),M=F?[]:{},N=F?w:b;for(const q in S)if(Object.prototype.hasOwnProperty.call(S,q)){const P=`${N}${o}${q}`;y&&!m?M[q]=this.translate(P,{...n,defaultValue:Zn(D)?D[q]:void 0,joinArrays:!1,ns:l}):M[q]=this.translate(P,{...n,joinArrays:!1,ns:l}),M[q]===P&&(M[q]=S[q])}m=M}}else if(x&&W(g)&&Array.isArray(m))m=m.join(g),m&&(m=this.extendTranslation(m,e,n,r));else{let F=!1,M=!1;!this.isValidLookup(m)&&y&&(F=!0,m=D),this.isValidLookup(m)||(M=!0,m=a);const q=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&M?void 0:m,P=y&&D!==m&&this.options.updateMissing;if(M||F||P){if(this.logger.log(P?"updateKey":"missingKey",d,u,a,P?D:m),o){const V=this.resolve(a,{...n,keySeparator:!1});V&&V.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let E=[];const B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&B&&B[0])for(let V=0;V<B.length;V++)E.push(B[V]);else this.options.saveMissingTo==="all"?E=this.languageUtils.toResolveHierarchy(n.lng||this.language):E.push(n.lng||this.language);const R=(V,j,H)=>{var pe;const ae=y&&H!==m?H:q;this.options.missingKeyHandler?this.options.missingKeyHandler(V,u,j,ae,P,n):(pe=this.backendConnector)!=null&&pe.saveMissing&&this.backendConnector.saveMissing(V,u,j,ae,P,n),this.emit("missingKey",V,u,j,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?E.forEach(V=>{const j=this.pluralResolver.getSuffixes(V,n);C&&n[`defaultValue${this.options.pluralSeparator}zero`]&&!j.includes(`${this.options.pluralSeparator}zero`)&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(H=>{R([V],a+H,n[`defaultValue${H}`]||D)})}):R(E,a,D))}m=this.extendTranslation(m,e,n,f,r),M&&m===a&&this.options.appendNamespaceToMissingKey&&(m=`${u}${c}${a}`),(M||F)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${a}`:a,F?m:void 0,n))}return s?(f.res=m,f.usedParams=this.getUsedParamsDetails(n),f):m}extendTranslation(e,t,r,n,s){var l,u;if((l=this.i18nFormat)!=null&&l.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=W(e)&&(((u=r==null?void 0:r.interpolation)==null?void 0:u.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(c){const f=e.match(this.interpolator.nestingRegexp);d=f&&f.length}let h=r.replace&&!W(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,r.lng||this.language||n.usedLng,r),c){const f=e.match(this.interpolator.nestingRegexp),m=f&&f.length;d<m&&(r.nest=!1)}!r.lng&&n&&n.res&&(r.lng=this.language||n.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,(...f)=>(s==null?void 0:s[0])===f[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`),null):this.translate(...f,t),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,a=W(o)?[o]:o;return e!=null&&(a!=null&&a.length)&&r.applyPostProcessor!==!1&&(e=Oa.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,n,s,o,a;return W(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(l=>typeof l=="function"?yr(l,{...this.options,...t}):l)),e.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,t),c=u.key;n=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const h=t.count!==void 0&&!W(t.count),f=h&&!t.ordinal&&t.count===0,m=t.context!==void 0&&(W(t.context)||typeof t.context=="number")&&t.context!=="",b=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);d.forEach(w=>{var v,g;this.isValidLookup(r)||(a=w,!this.checkedLoadedFor[`${b[0]}-${w}`]&&((v=this.utils)!=null&&v.hasLoadedNamespace)&&!((g=this.utils)!=null&&g.hasLoadedNamespace(a))&&(this.checkedLoadedFor[`${b[0]}-${w}`]=!0,this.logger.warn(`key "${n}" for languages "${b.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(x=>{var k;if(this.isValidLookup(r))return;o=x;const _=[c];if((k=this.i18nFormat)!=null&&k.addLookupKeys)this.i18nFormat.addLookupKeys(_,c,x,w,t);else{let A;h&&(A=this.pluralResolver.getSuffix(x,t.count,t));const C=`${this.options.pluralSeparator}zero`,D=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(t.ordinal&&A.startsWith(D)&&_.push(c+A.replace(D,this.options.pluralSeparator)),_.push(c+A),f&&_.push(c+C)),m){const S=`${c}${this.options.contextSeparator||"_"}${t.context}`;_.push(S),h&&(t.ordinal&&A.startsWith(D)&&_.push(S+A.replace(D,this.options.pluralSeparator)),_.push(S+A),f&&_.push(S+C))}}let y;for(;y=_.pop();)this.isValidLookup(r)||(s=y,r=this.getResource(x,w,y,t))}))})}),{res:r,usedKey:n,exactUsedKey:s,usedLng:o,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,r,n={}){var s;return(s=this.i18nFormat)!=null&&s.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!W(e.replace);let n=r?e.replace:e;if(r&&typeof e.count<"u"&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!r){n={...n};for(const s of t)delete n[s]}return n}static hasDefaultValue(e){const t="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r.startsWith(t)&&e[r]!==void 0)return!0;return!1}}class Ra{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nt.create("languageUtils")}getScriptPartFromCode(e){if(e=ti(e),!e||!e.includes("-"))return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=ti(e),!e||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(W(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(r=>{if(t)return;const n=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(r=>{if(t)return;const n=this.getScriptPartFromCode(r);if(this.isSupportedCode(n))return t=n;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(o=>o===s?!0:!o.includes("-")&&!s.includes("-")?!1:!!(o.includes("-")&&!s.includes("-")&&o.slice(0,o.indexOf("-"))===s||o.startsWith(s)&&s.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),W(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),n=[],s=o=>{o&&(this.isSupportedCode(o)?n.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return W(e)&&(e.includes("-")||e.includes("_"))?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):W(e)&&s(this.formatLanguageCode(e)),r.forEach(o=>{n.includes(o)||s(this.formatLanguageCode(o))}),n}}const za={zero:0,one:1,two:2,few:3,many:4,other:5},qa={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ap{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=nt.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const r=ti(e==="dev"?"en":e),n=t.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:n});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let o;try{o=new Intl.PluralRules(r,{type:n})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),qa;if(!e.match(/-|_/))return qa;const l=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(l,t)}return this.pluralRulesCache[s]=o,o}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(n=>`${t}${n}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?r.resolvedOptions().pluralCategories.sort((n,s)=>za[n]-za[s]).map(n=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(e,t,r={}){const n=this.getRule(e,r);return n?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}const $a=(i,e,t,r=".",n=!0)=>{let s=bp(i,e,t);return!s&&n&&W(t)&&(s=Kn(i,t,r),s===void 0&&(s=Kn(e,t,r))),s},Xn=i=>i.replace(/\$/g,"$$$$");class Va{constructor(e={}){var t;this.logger=nt.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(r=>r),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:s,prefixEscaped:o,suffix:a,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:h,nestingPrefixEscaped:f,nestingSuffix:m,nestingSuffixEscaped:b,nestingOptionsSeparator:w,maxReplaces:v,alwaysFormat:g}=e.interpolation;this.escape=t!==void 0?t:wp,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=s?vt(s):o||"{{",this.suffix=a?vt(a):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d?vt(d):"-",this.unescapeSuffix=this.unescapePrefix?"":c?vt(c):"",this.nestingPrefix=h?vt(h):f||vt("$t("),this.nestingSuffix=m?vt(m):b||vt(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=v||1e3,this.alwaysFormat=g!==void 0?g:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,r)=>(t==null?void 0:t.source)===r?(t.lastIndex=0,t):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,r,n){var f;let s,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=m=>{if(!m.includes(this.formatSeparator)){const g=$a(t,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,r,{...n,...t,interpolationkey:m}):g}const b=m.split(this.formatSeparator),w=b.shift().trim(),v=b.join(this.formatSeparator).trim();return this.format($a(t,l,w,this.options.keySeparator,this.options.ignoreJSONStructure),v,r,{...n,...t,interpolationkey:w})};this.resetRegExp(),!this.escapeValue&&typeof e=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const c=(n==null?void 0:n.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=((f=n==null?void 0:n.interpolation)==null?void 0:f.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Xn(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Xn(this.escape(m)):Xn(m)}].forEach(m=>{for(a=0;s=m.regex.exec(e);){const b=s[1].trim();if(o=u(b),o===void 0)if(typeof c=="function"){const v=c(e,s,n);o=W(v)?v:""}else if(n&&Object.prototype.hasOwnProperty.call(n,b))o="";else if(d){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${e}`),o="";else!W(o)&&!this.useRawValueToEscape&&(o=La(o));const w=m.safeValue(o);if(e=e.replace(s[0],w),d?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=s[0].length):m.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t,r={}){let n,s,o;const a=(l,u)=>{const c=this.nestingOptionsSeparator;if(!l.includes(c))return l;const d=l.split(new RegExp(`${vt(c)}[ ]*{`));let h=`{${d[1]}`;l=d[0],h=this.interpolate(h,o);const f=h.match(/'/g),m=h.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!m||((m==null?void 0:m.length)??0)%2!==0)&&(h=h.replace(/'/g,'"'));try{o=JSON.parse(h),u&&(o={...u,...o})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,b),`${l}${c}${h}`}return o.defaultValue&&o.defaultValue.includes(this.prefix)&&delete o.defaultValue,l};for(;n=this.nestingRegexp.exec(e);){let l=[];o={...r},o=o.replace&&!W(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const u=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(u!==-1&&(l=n[1].slice(u).split(this.formatSeparator).map(c=>c.trim()).filter(Boolean),n[1]=n[1].slice(0,u)),s=t(a.call(this,n[1].trim(),o),o),s&&n[0]===e&&!W(s))return s;W(s)||(s=La(s)),s||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),s=""),l.length&&(s=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:n[1].trim()}),s.trim())),e=e.replace(n[0],s),this.regexp.lastIndex=0}return e}}const Sp=i=>{let e=i.toLowerCase().trim();const t={};if(i.includes("(")){const r=i.split("(");e=r[0].toLowerCase().trim();const n=r[1].slice(0,-1);e==="currency"&&!n.includes(":")?t.currency||(t.currency=n.trim()):e==="relativetime"&&!n.includes(":")?t.range||(t.range=n.trim()):n.split(";").forEach(o=>{if(o){const[a,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();t[c]||(t[c]=u),u==="false"&&(t[c]=!1),u==="true"&&(t[c]=!0),isNaN(u)||(t[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},ja=i=>{const e={};return(t,r,n)=>{let s=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(s={...s,[n.interpolationkey]:void 0});const o=r+JSON.stringify(s);let a=e[o];return a||(a=i(ti(r),n),e[o]=a),a(t)}},Ep=i=>(e,t,r)=>i(ti(t),r)(e);class Bp{constructor(e={}){this.logger=nt.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const r=t.cacheInBuiltFormats?ja:Ep;this.formats={number:r((n,s)=>{const o=new Intl.NumberFormat(n,{...s});return a=>o.format(a)}),currency:r((n,s)=>{const o=new Intl.NumberFormat(n,{...s,style:"currency"});return a=>o.format(a)}),datetime:r((n,s)=>{const o=new Intl.DateTimeFormat(n,{...s});return a=>o.format(a)}),relativetime:r((n,s)=>{const o=new Intl.RelativeTimeFormat(n,{...s});return a=>o.format(a,s.range||"day")}),list:r((n,s)=>{const o=new Intl.ListFormat(n,{...s});return a=>o.format(a)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ja(t)}format(e,t,r,n={}){if(!t||e==null)return e;const s=t.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&!s[0].includes(")")&&s.find(a=>a.includes(")"))){const a=s.findIndex(l=>l.includes(")"));s[0]=[s[0],...s.splice(1,a)].join(this.formatSeparator)}return s.reduce((a,l)=>{var d;const{formatName:u,formatOptions:c}=Sp(l);if(this.formats[u]){let h=a;try{const f=((d=n==null?void 0:n.formatParams)==null?void 0:d[n.interpolationkey])||{},m=f.locale||f.lng||n.locale||n.lng||r;h=this.formats[u](a,m,{...c,...n,...f})}catch(f){this.logger.warn(f)}return h}else this.logger.warn(`there was no format function for ${u}`);return a},e)}}const Lp=(i,e)=>{i.pending[e]!==void 0&&(delete i.pending[e],i.pendingCount--)};class Tp extends ji{constructor(e,t,r,n={}){var s,o;super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=nt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],(o=(s=this.backend)==null?void 0:s.init)==null||o.call(s,r,n.backend,n)}queueLoad(e,t,r,n){const s={},o={},a={},l={};return e.forEach(u=>{let c=!0;t.forEach(d=>{const h=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?o[h]===void 0&&(o[h]=!0):(this.state[h]=1,c=!1,o[h]===void 0&&(o[h]=!0),s[h]===void 0&&(s[h]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,r){const n=e.split("|"),s=n[0],o=n[1];t&&this.emit("failedLoading",s,o,t),!t&&r&&this.store.addResourceBundle(s,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const a={};this.queue.forEach(l=>{mp(l.loaded,[s],o),Lp(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,t,r,n=0,s=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:s,callback:o});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&n<this.maxRetries){setTimeout(()=>{this.read(e,t,r,n+1,s*2,o)},s);return}o(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(e,t);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(e,t,a)}prepareLoading(e,t,r={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();W(e)&&(e=this.languageUtils.toResolveHierarchy(e)),W(t)&&(t=[t]);const s=this.queueLoad(e,t,r,n);if(!s.toLoad.length)return s.pending.length||n(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){const r=e.split("|"),n=r[0],s=r[1];this.read(n,s,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${t}loading namespace ${s} for language ${n} failed`,o),!o&&a&&this.logger.log(`${t}loaded namespace ${s} for language ${n}`,a),this.loaded(e,o,a)})}saveMissing(e,t,r,n,s,o={},a=()=>{}){var l,u,c,d,h;if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((d=(c=this.services)==null?void 0:c.utils)!=null&&d.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((h=this.backend)!=null&&h.create){const f={...o,isUpdate:s},m=this.backend.create.bind(this.backend);if(m.length<6)try{let b;m.length===5?b=m(e,t,r,n,f):b=m(e,t,r,n),b&&typeof b.then=="function"?b.then(w=>a(null,w)).catch(a):a(null,b)}catch(b){a(b)}else m(e,t,r,n,a,f)}!e||!e[0]||this.store.addResource(e[0],t,r,n)}}}const Jn=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:i=>{let e={};if(typeof i[1]=="object"&&(e=i[1]),W(i[1])&&(e.defaultValue=i[1]),W(i[2])&&(e.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const t=i[3]||i[2];Object.keys(t).forEach(r=>{e[r]=t[r]})}return e},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Ua=i=>(W(i.ns)&&(i.ns=[i.ns]),W(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),W(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),i.supportedLngs&&!i.supportedLngs.includes("cimode")&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),i),Hi=()=>{},Fp=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(t=>{typeof i[t]=="function"&&(i[t]=i[t].bind(i))})};class ri extends ji{constructor(e={},t){if(super(),this.options=Ua(e),this.services={},this.logger=nt,this.modules={external:[]},Fp(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e=="function"&&(t=e,e={}),e.defaultNS==null&&e.ns&&(W(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const r=Jn();this.options={...r,...this.options,...Ua(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const n=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?nt.init(n(this.modules.logger),this.options):nt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=Bp;const c=new Ra(this.options);this.store=new Pa(this.options.resources,this.options);const d=this.services;d.logger=nt,d.resourceStore=this.store,d.languageUtils=c,d.pluralResolver=new Ap(c,{prepend:this.options.pluralSeparator}),u&&(d.formatter=n(u),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Va(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Tp(n(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(h,...f)=>{this.emit(h,...f)}),this.modules.languageDetector&&(d.languageDetector=n(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=n(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Ui(this.services,this.options),this.translator.on("*",(h,...f)=>{this.emit(h,...f)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Hi),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...c)=>this.store[u](...c)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...c)=>(this.store[u](...c),this)});const a=Qr(),l=()=>{const u=(c,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(d),t(c,d)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),a}loadResources(e,t=Hi){var s,o;let r=t;const n=W(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if((n==null?void 0:n.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(d=>{d!=="cimode"&&(a.includes(d)||a.push(d))})};n?l(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>l(c)),(o=(s=this.options.preload)==null?void 0:s.forEach)==null||o.call(s,u=>l(u)),this.services.backendConnector.load(a,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(e,t,r){const n=Qr();return typeof e=="function"&&(r=e,e=void 0),typeof t=="function"&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=Hi),this.services.backendConnector.reload(e,t,s=>{n.resolve(),r(s)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Oa.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!["cimode","dev"].includes(e)){for(let t=0;t<this.languages.length;t++){const r=this.languages[t];if(!["cimode","dev"].includes(r)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const r=Qr();this.emit("languageChanging",e);const n=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},s=(a,l)=>{l?this.isLanguageChangingTo===e&&(n(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),t&&t(a,(...u)=>this.t(...u))},o=a=>{var c,d;!e&&!a&&this.services.languageDetector&&(a=[]);const l=W(a)?a:a&&a[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(W(a)?[a]:a);u&&(this.language||n(u),this.translator.language||this.translator.changeLanguage(u),(d=(c=this.services.languageDetector)==null?void 0:c.cacheUserLanguage)==null||d.call(c,u)),this.loadResources(u,h=>{s(h,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,r){const n=(s,o,...a)=>{let l;typeof o!="object"?l=this.options.overloadTranslationOptionHandler([s,o].concat(a)):l={...o},l.lng=l.lng||n.lng,l.lngs=l.lngs||n.lngs,l.ns=l.ns||n.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||n.keyPrefix);const u={...this.options,...l};typeof l.keyPrefix=="function"&&(l.keyPrefix=yr(l.keyPrefix,u));const c=this.options.keySeparator||".";let d;return l.keyPrefix&&Array.isArray(s)?d=s.map(h=>(typeof h=="function"&&(h=yr(h,u)),`${l.keyPrefix}${c}${h}`)):(typeof s=="function"&&(s=yr(s,u)),d=l.keyPrefix?`${l.keyPrefix}${c}${s}`:s),this.t(d,l)};return W(e)?n.lng=e:n.lngs=e,n.ns=t,n.keyPrefix=r,n}t(...e){var t;return(t=this.translator)==null?void 0:t.translate(...e)}exists(...e){var t;return(t=this.translator)==null?void 0:t.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===0||u===2};if(t.precheck){const a=t.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!n||o(s,e)))}loadNamespaces(e,t){const r=Qr();return this.options.ns?(W(e)&&(e=[e]),e.forEach(n=>{this.options.ns.includes(n)||this.options.ns.push(n)}),this.loadResources(n=>{r.resolve(),t&&t(n)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=Qr();W(e)&&(e=[e]);const n=this.options.preload||[],s=e.filter(o=>!n.includes(o)&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=n.concat(s),this.loadResources(o=>{r.resolve(),t&&t(o)}),r):(t&&t(),Promise.resolve())}dir(e){var n,s;if(e||(e=this.resolvedLanguage||(((n=this.languages)==null?void 0:n.length)>0?this.languages[0]:this.language)),!e)return"rtl";try{const o=new Intl.Locale(e);if(o&&o.getTextInfo){const a=o.getTextInfo();if(a&&a.direction)return a.direction}}catch{}const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((s=this.services)==null?void 0:s.languageUtils)||new Ra(Jn());return e.toLowerCase().indexOf("-latn")>1?"ltr":t.includes(r.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const r=new ri(e,t);return r.createInstance=ri.createInstance,r}cloneInstance(e={},t=Hi){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},s=new ri(n);if((e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(a=>{s[a]=this[a]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const a=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((c,d)=>(c[d]={...l[u][d]},c),l[u]),l),{});s.store=new Pa(a,n),s.services.resourceStore=s.store}if(e.interpolation){const l={...Jn().interpolation,...this.options.interpolation,...e.interpolation},u={...n,interpolation:l};s.services.interpolator=new Va(u)}return s.translator=new Ui(s.services,n),s.translator.on("*",(a,...l)=>{s.emit(a,...l)}),s.init(n,t),s.translator.options=n,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const he=ri.createInstance();he.createInstance,he.dir,he.init,he.loadResources,he.reloadResources,he.use,he.changeLanguage,he.getFixedT,he.t,he.exists,he.setDefaultNamespace,he.hasLoadedNamespace,he.loadNamespaces,he.loadLanguages;const{slice:Np,forEach:Mp}=[];function Pp(i){return Mp.call(Np.call(arguments,1),e=>{if(e)for(const t in e)i[t]===void 0&&(i[t]=e[t])}),i}function Op(i){return typeof i!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(t=>t.test(i))}const Ha=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Ip=function(i,e){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},n=encodeURIComponent(e);let s=`${i}=${n}`;if(r.maxAge>0){const o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(o)}`}if(r.domain){if(!Ha.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!Ha.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return s},Ga={create(i,e,t,r){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};t&&(n.expires=new Date,n.expires.setTime(n.expires.getTime()+t*60*1e3)),r&&(n.domain=r),document.cookie=Ip(i,encodeURIComponent(e),n)},read(i){const e=`${i}=`,t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r];for(;n.charAt(0)===" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return n.substring(e.length,n.length)}return null},remove(i){this.create(i,"",-1)}};var Rp={name:"cookie",lookup(i){let{lookupCookie:e}=i;if(e&&typeof document<"u")return Ga.read(e)||void 0},cacheUserLanguage(i,e){let{lookupCookie:t,cookieMinutes:r,cookieDomain:n,cookieOptions:s}=e;t&&typeof document<"u"&&Ga.create(t,i,r,n,s)}},zp={name:"querystring",lookup(i){var r;let{lookupQuerystring:e}=i,t;if(typeof window<"u"){let{search:n}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));const o=n.substring(1).split("&");for(let a=0;a<o.length;a++){const l=o[a].indexOf("=");l>0&&o[a].substring(0,l)===e&&(t=o[a].substring(l+1))}}return t}};let Cr=null;const Wa=()=>{if(Cr!==null)return Cr;try{if(Cr=typeof window<"u"&&window.localStorage!==null,!Cr)return!1;const i="i18next.translate.boo";window.localStorage.setItem(i,"foo"),window.localStorage.removeItem(i)}catch{Cr=!1}return Cr};var qp={name:"localStorage",lookup(i){let{lookupLocalStorage:e}=i;if(e&&Wa())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(i,e){let{lookupLocalStorage:t}=e;t&&Wa()&&window.localStorage.setItem(t,i)}};let kr=null;const Ya=()=>{if(kr!==null)return kr;try{if(kr=typeof window<"u"&&window.sessionStorage!==null,!kr)return!1;const i="i18next.translate.boo";window.sessionStorage.setItem(i,"foo"),window.sessionStorage.removeItem(i)}catch{kr=!1}return kr};var $p={name:"sessionStorage",lookup(i){let{lookupSessionStorage:e}=i;if(e&&Ya())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(i,e){let{lookupSessionStorage:t}=e;t&&Ya()&&window.sessionStorage.setItem(t,i)}},Vp={name:"navigator",lookup(i){const e=[];if(typeof navigator<"u"){const{languages:t,userLanguage:r,language:n}=navigator;if(t)for(let s=0;s<t.length;s++)e.push(t[s]);r&&e.push(r),n&&e.push(n)}return e.length>0?e:void 0}},jp={name:"htmlTag",lookup(i){let{htmlTag:e}=i,t;const r=e||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(t=r.getAttribute("lang")),t}},Up={name:"path",lookup(i){var n;let{lookupFromPathIndex:e}=i;if(typeof window>"u")return;const t=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(t)?(n=t[typeof e=="number"?e:0])==null?void 0:n.replace("/",""):void 0}},Hp={name:"subdomain",lookup(i){var n,s;let{lookupFromSubdomainIndex:e}=i;const t=typeof e=="number"?e+1:1,r=typeof window<"u"&&((s=(n=window.location)==null?void 0:n.hostname)==null?void 0:s.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[t]}};let Ka=!1;try{document.cookie,Ka=!0}catch{}const Za=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Ka||Za.splice(1,1);const Gp=()=>({order:Za,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:i=>i});class Xa{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=Pp(t,this.options||{},Gp()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=n=>n.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Rp),this.addDetector(zp),this.addDetector(qp),this.addDetector($p),this.addDetector(Vp),this.addDetector(jp),this.addDetector(Up),this.addDetector(Hp)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,t=[];return e.forEach(r=>{if(this.detectors[r]){let n=this.detectors[r].lookup(this.options);n&&typeof n=="string"&&(n=[n]),n&&(t=t.concat(n))}}),t=t.filter(r=>r!=null&&!Op(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(e,this.options)}))}}Xa.type="languageDetector";const Wp=Be(`bm_translation_${Td}.json`),Yp=async()=>{const i=await fetch(Wp,{mode:"cors",credentials:"omit"});if(!i.ok)throw new Error(`Failed to fetch translations: ${i.status}`);const e=await i.json(),t=Object.fromEntries(Object.entries(e).map(([r,n])=>[r,n]));return await he.use(Xa).use(vd).init({debug:!1,resources:t,supportedLngs:["en","en-GB","en-US","de","fr","es","it","nl","fi","pl"],fallbackLng:"en-GB",ns:["translation"],defaultNS:"translation",detection:{order:["htmlTag","querystring","cookie","localStorage","sessionStorage","navigator","path","subdomain"]},nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1}}),he},Ja=class ki{constructor(){this.initialized=!1,this.compatibleListInitialized=!1,this.currentBike=null,this.activeSubscription=null,this.components=[],this.config=xa}async initialize(e){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: initialize() called"),this.components=[],this.initialized&&this.cleanup(),e&&(this.config={...this.config,...e}),this.initializeConfig(),this.service=new De(this.config.apiUrl,this.config.apiKey,this.config.apiToken,this.config.isShopify),this.initializeActiveSubscription(),localStorage.bm_currentBike&&(this.currentBike=JSON.parse(localStorage.bm_currentBike)),await Yp(),(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log(`Core: Resolved Language: ${he.resolvedLanguage}`),this.setupEventListeners(),this.registerComponents(),this.initialized=!0,Hn.value=!0;const t=new Event("BM:Initialized");document.dispatchEvent(t),(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&(console.log("Core: BikeMatrix WebComponent Version: 1.3.12"),console.log("Core: BikeMatrixCore initialized"))}static getInstance(){return ki.instance||(ki.instance=new ki),ki.instance}registerComponents(){const e=["bikematrix-bikeselector","bikematrix-productresult","bikematrix-collectionresult","bikematrix-compatibilitylabel","bikematrix-compatiblelist","bikematrix-bikeselectorbanner","bikematrix-variantselector"];this.components=[],e.forEach(t=>{const r=document.getElementsByTagName(t);Array.from(r).forEach(n=>{this.components.push(n)})}),(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log(`Core: Registered ${this.components.length} components`)}resetComponents(){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: resetComponents() called"),this.components.forEach(e=>{var t;try{const r=e.cloneNode(!1);e.querySelectorAll("template").forEach(s=>{r.appendChild(s.cloneNode(!0))}),(t=e.parentNode)==null||t.replaceChild(r,e)}catch{console.error("Core: Error resetting component",e)}})}isInitialized(){return this.initialized}updateConfig(e){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: updateConfig() called"),this.config={...this.config,...e},this.reload(!1)}cleanup(){this.removeEventListeners(),Ed()}async destroy(){this.cleanup(),this.service=null,this.currentBike=null,this.activeSubscription=null,this.config={...xa},this.initialized=!1,Hn.value=!1,this.resetComponents()}updateCompatibleList(e=!0){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: updateCompatibleList showCompatibleList: ",e),this.config.showCompatibleList=e,this.initializeConfig(),e&&(Ee.value=!0,this.RefreshCompatibleSkus(!0)),this.compatibleListInitialized=!0}refresh(){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: refresh() called"),this.ChangeBike()}reset(){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: reset() called"),this.destroy(),this.initialize()}reload(e=!0){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: reload() called. shouldReloadConfig: ",e),e&&this.initializeConfig(),this.refresh(),this.registerComponents(),this.resetComponents()}initializeConfig(){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: initializeConfig called");const e=document.querySelectorAll('script[type="application/json"][data-bikematrix-config]'),t=JSON.parse(sessionStorage.getItem("bm_diagnostics"));e.forEach(r=>{if(r!=null&&r.textContent)try{this.config={...this.config,...JSON.parse(r.textContent)}}catch{console.error("Core: Invalid BikeMatrix configuration"),console.log("Core: configScript ",r.textContent)}}),this.config.showCompatibleList&&!this.config.delayCompatibleListInitialization?this.compatibleListInitialized=!0:this.config.showCompatibleList&&this.config.delayCompatibleListInitialization&&!this.compatibleListInitialized&&(Ee.value=!0),t!=null&&t.includes("verbose")?this.config.logLevel="verbose":t!=null&&t.includes("core")&&(this.config.logLevel="core"),t!=null&&t.includes("virtualWorkshop")&&(this.config.virtualWorkshop=!0),t!=null&&t.includes("subscribtion")&&(this.activeSubscription=!0),t!=null&&t.includes("all")&&(this.config.logLevel="verbose",this.config.virtualWorkshop=!0,this.activeSubscription=!0),this.config.logLevel==="verbose"&&console.log("initializeConfig ",JSON.stringify(this.config,null,2))}initializeActiveSubscription(){const e=sessionStorage.getItem("bm_activeSubscription");if((this.config.logLevel==="verbose"||this.config.logLevel==="core")&&(console.log("Core: Not Shopify: ",!this.config.isShopify),console.log("Core: Session Active Subscription: ",e),console.log("Core: Design Mode: ",this.config.designMode)),!this.config.isShopify){this.activeSubscription=!0;return}this.activeSubscription=this.config.designMode||e==="true",e||this.service.getActiveSubscription(this.updateActiveSubscription.bind(this))}setupEventListeners(){document.addEventListener("BikeMatrix:RefreshCompatibleSkus",e=>{this.RefreshCompatibleSkus().then(()=>{document.dispatchEvent(new Event("RefreshCompatibility",{bubbles:!0,composed:!0}))})}),document.addEventListener("on:facet-filters:updated",this.handleRefreshCompatibleSkus.bind(this)),document.addEventListener("BikeChanging",this.handleBikeChanging.bind(this))}removeEventListeners(){document.removeEventListener("BikeMatrix:RefreshCompatibleSkus",this.handleRefreshCompatibleSkus),document.removeEventListener("on:facet-filters:updated",this.handleRefreshCompatibleSkus),document.removeEventListener("BikeChanging",this.handleBikeChanging)}async handleRefreshCompatibleSkus(e){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: Listener RefreshCompatibleSkus ..."),this.RefreshCompatibleSkus().then(()=>{document.dispatchEvent(new Event("RefreshCompatibility",{bubbles:!0,composed:!0}))})}async handleBikeChanging(e){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: Listener BikeChanging (pre) ..."),this.ChangeBike()}getConfig(){return this.config}getActiveSubscription(){return this.activeSubscription}getCurrentBike(){return this.currentBike}updateSku(e){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: updateSku() called with sku: ",e);const t=document.querySelector("bikematrix-productresult[data-sku]"),r=document.querySelector("bikematrix-variantselector[data-sku]");t&&t.setAttribute("data-sku",e),r&&r.setAttribute("data-sku",e),this.config.sku=e}ResetSelectedBikeIndicator(){var e,t;(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: ResetSelectedBikeIndicator() Method Called"),this.currentBike===null?(e=window.bm_selectBikeButton)==null||e.classList.remove("show-selected"):(t=window.bm_selectBikeButton)==null||t.classList.add("show-selected")}ChangeBike(){if((this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: ChangeBike() Method Called"),wr.value===!0||Je.value===!0){console.log("Core: ChangeBike loading, return");return}wr.value=!0,Ee.value=!0,Je.value=!0,vr.value=[],xr.value=[],(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: ChangeBike updateBikeSignal..."),this.updateBikeSignal().then(()=>{this.config.logLevel==="verbose"?console.log("Core: Bike Signal Updated: ",JSON.stringify(Z.value,null,2)):this.config.logLevel==="core"&&console.log("Core: Bike Signal Updated"),this.ResetSelectedBikeIndicator(),this.RefreshCompatibleSkus().then(()=>{document.dispatchEvent(new Event("RefreshCompatibility",{bubbles:!0,composed:!0})),document.dispatchEvent(new Event("BikeChanged",{bubbles:!0,composed:!0}))})})}async RefreshCompatibleSkus(e=!1){var r,n;const t=`${(r=Z.value)==null?void 0:r.key}:${this.config.currentCollectionHandle}:${Bd}`;switch((this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: RefreshCompatibleSkus() called. Current Collection Bike Key: ",t),this.config.pageType){case"collection":const s=!!Z.value&&!Z.value.compatibleCollections.error&&((n=Z.value.compatibleCollections)==null?void 0:n.some(a=>a.handle===this.config.currentCollectionHandle)),o=this.config.showCompatibleList&&(this.compatibleListInitialized||e);(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: RefreshCompatibleSkus. hasCompatibleCollection: ",s," showCompatibleList: ",this.config.showCompatibleList," compatibleListInitialized: ",this.compatibleListInitialized," CompatibleListLoadingSignal: ",Ee.value," onlyCompatibleList: ",e," delayCompatibleListInitialization: ",this.config.delayCompatibleListInitialization," shouldRefreshCompatibleListSkus: ",o),s&&(e||await this.RefreshCollectionPageSkus(t),o&&((this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: RefreshCompatibleSkus refreshing compatible list skus for collection page..."),await this.RefreshCollectionListSkus(t))),wr.value=!1,Je.value=!1,o&&(Ee.value=!1);break;case"search":case"index":wr.value=!1,Ee.value=!1,(this.config.pageType==="index"&&this.config.showHomePageCollection||this.config.pageType==="search"&&this.config.showSearchPageCollection)&&await this.RefreshCollectionPageSkus(t),Je.value=!1;break;default:wr.value=!1,Ee.value=!1,Je.value=!1;break}}async RefreshCollectionPageSkus(e){var o,a;let t=document.getElementsByTagName("bikematrix-collectionresult"),n=Array.from(t).map(l=>{const u=this.config.skuField==="barcode"?l.getAttribute("data-product-barcodes"):this.config.skuField==="metafield"?l.getAttribute("data-product-metafields"):l.getAttribute("data-product-skus")||"";return u==null?void 0:u.split(",").filter(c=>!!c)}).flat();this.config.logLevel==="verbose"&&console.log("Refresh Collection Page SKUs. SKUs: ",JSON.stringify(n),null,2);var s=((o=Nt())==null?void 0:o.language)||"en-GB";if(n&&n.length>0){const l=await this.service.checkSkusCompatibilityWithResults((a=Z.value)==null?void 0:a.key,n,s,"CollectionResult",this.config.currentCollectionHandle);l.success?xr.value=l.data:(Ri.value=!0,this.config.logLevel==="verbose"&&console.log("Compatible List Error: ",l.logError))}else xr.value=[]}async RefreshCollectionListSkus(e){var n,s;var t=JSON.parse(sessionStorage.getItem(e));if(t)this.config.logLevel==="verbose"&&console.log("Refresh Collection SKUs from Session: ",JSON.stringify(t),null,2),vr.value=t;else{const o=Object.values(this.config.products||{}).map(c=>c.skus).flat();this.config.logLevel==="verbose"&&console.log("Refresh Collection SKUs from API. SKUs: ",JSON.stringify(o),null,2);var r=((n=Nt())==null?void 0:n.language)||"en-GB";const a=new AbortController,l=a.signal,u=()=>a.abort();window.addEventListener("beforeunload",u);try{if(!((s=Z.value)!=null&&s.key))throw new Error("BikeSignal key is undefined");const c=await this.service.checkSkusCompatibilityWithResults(Z.value.key,o,r,"CompatibleList",this.config.currentCollectionHandle,{signal:l});if(this.config.logLevel==="verbose"&&console.log("Refresh Collection SKUs from API. SKUs: ",JSON.stringify(c)),l.aborted){this.config.logLevel==="verbose"&&console.log("function RefreshCompatibleSkus() operation aborted");return}c.success?(sessionStorage.setItem(e,JSON.stringify(c.data)),vr.value=c.data):(Ri.value=!0,this.config.logLevel==="verbose"&&console.log("Compatible List Error: ",c.logError))}catch(c){c.name==="AbortError"?console.log("function RefreshCompatibleSkus() fetch aborted"):console.error("function RefreshCompatibleSkus() fetch error",c)}finally{window.removeEventListener("beforeunload",u)}}}updateActiveSubscription(e){this.config.logLevel==="verbose"&&console.log("updateActiveSubscription data: ",e);const t=!!(e!=null&&e.activeSubscription);sessionStorage.setItem("bm_activeSubscription",JSON.stringify(t)),this.activeSubscription=t}async updateBikeSignal(){const e=he.resolvedLanguage||he.language||"en-GB";(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: updateBikeSignal() called");const t=localStorage.getItem(Gn)||"null",r=JSON.parse(t);if(this.currentBike=r,r==null){Z.value=null;return}const n=await Ba(r==null?void 0:r.brandId,e);!Array.isArray(n)&&n.error?(r.compatibleCollections=[],Z.value=r):(r.compatibleCollections=n,Z.value=r),this.config.logLevel==="verbose"?console.log("Core: Bike Changed: ",JSON.stringify(Z.value,null,2)):this.config.logLevel==="core"&&console.log("Core: Bike Changed")}};Ja.instance=null;let Kp=Ja;const ii=i=>z("svg",{width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},z("path",{d:"M1.53553 8.60658L5.07107 5.07104M5.07107 5.07104L8.6066 1.53551M5.07107 5.07104L8.6066 8.60658M5.07107 5.07104L1.53553 1.53551",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),Zp=`:host .overlay{opacity:0;visibility:hidden}@media (min-width: 640px){:host .modal{opacity:0;transform:scale(.9);visibility:hidden}}@media not all and (min-width: 640px){:host .modal{transform:translateY(100%);visibility:hidden}}
1
+ (function(ft,G){typeof exports=="object"&&typeof module<"u"?module.exports=G():typeof define=="function"&&define.amd?define(G):(ft=typeof globalThis<"u"?globalThis:ft||self,ft.BikeMatrix=G())})(this,function(){"use strict";var ft,G,co,po,Yt,fo,ho,_n,go,Hr={},mo=[],ac=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Di=Array.isArray;function ht(i,e){for(var t in e)i[t]=e[t];return i}function bo(i){var e=i.parentNode;e&&e.removeChild(i)}function z(i,e,t){var r,n,s,o={};for(s in e)s=="key"?r=e[s]:s=="ref"?n=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?ft.call(arguments,2):t),typeof i=="function"&&i.defaultProps!=null)for(s in i.defaultProps)o[s]===void 0&&(o[s]=i.defaultProps[s]);return Gr(i,o,r,n,null)}function Gr(i,e,t,r,n){var s={type:i,props:e,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:n??++co,__i:-1,__u:0};return n==null&&G.vnode!=null&&G.vnode(s),s}function lc(){return{current:null}}function $(i){return i.children}function Xe(i,e){this.props=i,this.context=e}function cr(i,e){if(e==null)return i.__?cr(i.__,i.__i+1):null;for(var t;e<i.__k.length;e++)if((t=i.__k[e])!=null&&t.__e!=null)return t.__e;return typeof i.type=="function"?cr(i):null}function vo(i){var e,t;if((i=i.__)!=null&&i.__c!=null){for(i.__e=i.__c.base=null,e=0;e<i.__k.length;e++)if((t=i.__k[e])!=null&&t.__e!=null){i.__e=i.__c.base=t.__e;break}return vo(i)}}function yn(i){(!i.__d&&(i.__d=!0)&&Yt.push(i)&&!Ai.__r++||fo!==G.debounceRendering)&&((fo=G.debounceRendering)||ho)(Ai)}function Ai(){var i,e,t,r,n,s,o,a,l;for(Yt.sort(_n);i=Yt.shift();)i.__d&&(e=Yt.length,r=void 0,s=(n=(t=i).__v).__e,a=[],l=[],(o=t.__P)&&((r=ht({},n)).__v=n.__v+1,G.vnode&&G.vnode(r),Cn(o,r,n,t.__n,o.ownerSVGElement!==void 0,32&n.__u?[s]:null,a,s??cr(n),!!(32&n.__u),l),r.__v=n.__v,r.__.__k[r.__i]=r,ko(a,r,l),r.__e!=s&&vo(r)),Yt.length>e&&Yt.sort(_n));Ai.__r=0}function wo(i,e,t,r,n,s,o,a,l,u,c){var d,h,f,m,b,w=r&&r.__k||mo,v=e.length;for(t.__d=l,uc(t,e,w),l=t.__d,d=0;d<v;d++)(f=t.__k[d])!=null&&typeof f!="boolean"&&typeof f!="function"&&(h=f.__i===-1?Hr:w[f.__i]||Hr,f.__i=d,Cn(i,f,h,n,s,o,a,l,u,c),m=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&kn(h.ref,null,f),c.push(f.ref,f.__c||m,f)),b==null&&m!=null&&(b=m),65536&f.__u||h.__k===f.__k?l=xo(f,l,i):typeof f.type=="function"&&f.__d!==void 0?l=f.__d:m&&(l=m.nextSibling),f.__d=void 0,f.__u&=-196609);t.__d=l,t.__e=b}function uc(i,e,t){var r,n,s,o,a,l=e.length,u=t.length,c=u,d=0;for(i.__k=[],r=0;r<l;r++)o=r+d,(n=i.__k[r]=(n=e[r])==null||typeof n=="boolean"||typeof n=="function"?null:typeof n=="string"||typeof n=="number"||typeof n=="bigint"||n.constructor==String?Gr(null,n,null,null,null):Di(n)?Gr($,{children:n},null,null,null):n.constructor===void 0&&n.__b>0?Gr(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n)!=null?(n.__=i,n.__b=i.__b+1,a=cc(n,t,o,c),n.__i=a,s=null,a!==-1&&(c--,(s=t[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&d--,typeof n.type!="function"&&(n.__u|=65536)):a!==o&&(a===o+1?d++:a>o?c>l-o?d+=a-o:d--:a<o?a==o-1&&(d=a-o):d=0,a!==r+d&&(n.__u|=65536))):(s=t[o])&&s.key==null&&s.__e&&!(131072&s.__u)&&(s.__e==i.__d&&(i.__d=cr(s)),Dn(s,s,!1),t[o]=null,c--);if(c)for(r=0;r<u;r++)(s=t[r])!=null&&!(131072&s.__u)&&(s.__e==i.__d&&(i.__d=cr(s)),Dn(s,s))}function xo(i,e,t){var r,n;if(typeof i.type=="function"){for(r=i.__k,n=0;r&&n<r.length;n++)r[n]&&(r[n].__=i,e=xo(r[n],e,t));return e}i.__e!=e&&(t.insertBefore(i.__e,e||null),e=i.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function gt(i,e){return e=e||[],i==null||typeof i=="boolean"||(Di(i)?i.some(function(t){gt(t,e)}):e.push(i)),e}function cc(i,e,t,r){var n=i.key,s=i.type,o=t-1,a=t+1,l=e[t];if(l===null||l&&n==l.key&&s===l.type&&!(131072&l.__u))return t;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;o>=0||a<e.length;){if(o>=0){if((l=e[o])&&!(131072&l.__u)&&n==l.key&&s===l.type)return o;o--}if(a<e.length){if((l=e[a])&&!(131072&l.__u)&&n==l.key&&s===l.type)return a;a++}}return-1}function _o(i,e,t){e[0]==="-"?i.setProperty(e,t??""):i[e]=t==null?"":typeof t!="number"||ac.test(e)?t:t+"px"}function Si(i,e,t,r,n){var s;e:if(e==="style")if(typeof t=="string")i.style.cssText=t;else{if(typeof r=="string"&&(i.style.cssText=r=""),r)for(e in r)t&&e in t||_o(i.style,e,"");if(t)for(e in t)r&&t[e]===r[e]||_o(i.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in i?e.toLowerCase().slice(2):e.slice(2),i.l||(i.l={}),i.l[e+s]=t,t?r?t.u=r.u:(t.u=Date.now(),i.addEventListener(e,s?Co:yo,s)):i.removeEventListener(e,s?Co:yo,s);else{if(n)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 i)try{i[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!=="-"?i.removeAttribute(e):i.setAttribute(e,t))}}function yo(i){if(this.l){var e=this.l[i.type+!1];if(i.t){if(i.t<=e.u)return}else i.t=Date.now();return e(G.event?G.event(i):i)}}function Co(i){if(this.l)return this.l[i.type+!0](G.event?G.event(i):i)}function Cn(i,e,t,r,n,s,o,a,l,u){var c,d,h,f,m,b,w,v,g,x,_,y,k,A,C,D=e.type;if(e.constructor!==void 0)return null;128&t.__u&&(l=!!(32&t.__u),s=[a=e.__e=t.__e]),(c=G.__b)&&c(e);e:if(typeof D=="function")try{if(v=e.props,g=(c=D.contextType)&&r[c.__c],x=c?g?g.props.value:c.__:r,t.__c?w=(d=e.__c=t.__c).__=d.__E:("prototype"in D&&D.prototype.render?e.__c=d=new D(v,x):(e.__c=d=new Xe(v,x),d.constructor=D,d.render=pc),g&&g.sub(d),d.props=v,d.state||(d.state={}),d.context=x,d.__n=r,h=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),D.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=ht({},d.__s)),ht(d.__s,D.getDerivedStateFromProps(v,d.__s))),f=d.props,m=d.state,d.__v=e,h)D.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(D.getDerivedStateFromProps==null&&v!==f&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(v,x),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(v,d.__s,x)===!1||e.__v===t.__v)){for(e.__v!==t.__v&&(d.props=v,d.state=d.__s,d.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(S){S&&(S.__=e)}),_=0;_<d._sb.length;_++)d.__h.push(d._sb[_]);d._sb=[],d.__h.length&&o.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(v,d.__s,x),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(f,m,b)})}if(d.context=x,d.props=v,d.__P=i,d.__e=!1,y=G.__r,k=0,"prototype"in D&&D.prototype.render){for(d.state=d.__s,d.__d=!1,y&&y(e),c=d.render(d.props,d.state,d.context),A=0;A<d._sb.length;A++)d.__h.push(d._sb[A]);d._sb=[]}else do d.__d=!1,y&&y(e),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++k<25);d.state=d.__s,d.getChildContext!=null&&(r=ht(ht({},r),d.getChildContext())),h||d.getSnapshotBeforeUpdate==null||(b=d.getSnapshotBeforeUpdate(f,m)),wo(i,Di(C=c!=null&&c.type===$&&c.key==null?c.props.children:c)?C:[C],e,t,r,n,s,o,a,l,u),d.base=e.__e,e.__u&=-161,d.__h.length&&o.push(d),w&&(d.__E=d.__=null)}catch(S){e.__v=null,l||s!=null?(e.__e=a,e.__u|=l?160:32,s[s.indexOf(a)]=null):(e.__e=t.__e,e.__k=t.__k),G.__e(S,e,t)}else s==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=dc(t.__e,e,t,r,n,s,o,l,u);(c=G.diffed)&&c(e)}function ko(i,e,t){e.__d=void 0;for(var r=0;r<t.length;r++)kn(t[r],t[++r],t[++r]);G.__c&&G.__c(e,i),i.some(function(n){try{i=n.__h,n.__h=[],i.some(function(s){s.call(n)})}catch(s){G.__e(s,n.__v)}})}function dc(i,e,t,r,n,s,o,a,l){var u,c,d,h,f,m,b,w=t.props,v=e.props,g=e.type;if(g==="svg"&&(n=!0),s!=null){for(u=0;u<s.length;u++)if((f=s[u])&&"setAttribute"in f==!!g&&(g?f.localName===g:f.nodeType===3)){i=f,s[u]=null;break}}if(i==null){if(g===null)return document.createTextNode(v);i=n?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,v.is&&v),s=null,a=!1}if(g===null)w===v||a&&i.data===v||(i.data=v);else{if(s=s&&ft.call(i.childNodes),w=t.props||Hr,!a&&s!=null)for(w={},u=0;u<i.attributes.length;u++)w[(f=i.attributes[u]).name]=f.value;for(u in w)f=w[u],u=="children"||(u=="dangerouslySetInnerHTML"?d=f:u==="key"||u in v||Si(i,u,null,f,n));for(u in v)f=v[u],u=="children"?h=f:u=="dangerouslySetInnerHTML"?c=f:u=="value"?m=f:u=="checked"?b=f:u==="key"||a&&typeof f!="function"||w[u]===f||Si(i,u,f,w[u],n);if(c)a||d&&(c.__html===d.__html||c.__html===i.innerHTML)||(i.innerHTML=c.__html),e.__k=[];else if(d&&(i.innerHTML=""),wo(i,Di(h)?h:[h],e,t,r,n&&g!=="foreignObject",s,o,s?s[0]:t.__k&&cr(t,0),a,l),s!=null)for(u=s.length;u--;)s[u]!=null&&bo(s[u]);a||(u="value",m!==void 0&&(m!==i[u]||g==="progress"&&!m||g==="option"&&m!==w[u])&&Si(i,u,m,w[u],!1),u="checked",b!==void 0&&b!==i[u]&&Si(i,u,b,w[u],!1))}return i}function kn(i,e,t){try{typeof i=="function"?i(e):i.current=e}catch(r){G.__e(r,t)}}function Dn(i,e,t){var r,n;if(G.unmount&&G.unmount(i),(r=i.ref)&&(r.current&&r.current!==i.__e||kn(r,null,e)),(r=i.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){G.__e(s,e)}r.base=r.__P=null,i.__c=void 0}if(r=i.__k)for(n=0;n<r.length;n++)r[n]&&Dn(r[n],e,t||typeof i.type!="function");t||i.__e==null||bo(i.__e),i.__=i.__e=i.__d=void 0}function pc(i,e,t){return this.constructor(i,t)}function Lt(i,e,t){var r,n,s,o;G.__&&G.__(i,e),n=(r=typeof t=="function")?null:t&&t.__k||e.__k,s=[],o=[],Cn(e,i=(!r&&t||e).__k=z($,null,[i]),n||Hr,Hr,e.ownerSVGElement!==void 0,!r&&t?[t]:n?null:e.firstChild?ft.call(e.childNodes):null,s,!r&&t?t:n?n.__e:e.firstChild,r,o),ko(s,i,o)}function An(i,e){Lt(i,e,An)}function Sn(i,e,t){var r,n,s,o,a=ht({},i.props);for(s in i.type&&i.type.defaultProps&&(o=i.type.defaultProps),e)s=="key"?r=e[s]:s=="ref"?n=e[s]:a[s]=e[s]===void 0&&o!==void 0?o[s]:e[s];return arguments.length>2&&(a.children=arguments.length>3?ft.call(arguments,2):t),Gr(i.type,a,r||i.key,n||i.ref,null)}function Wr(i,e){var t={__c:e="__cC"+go++,__:i,Consumer:function(r,n){return r.children(n)},Provider:function(r){var n,s;return this.getChildContext||(n=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&n.some(function(a){a.__e=!0,yn(a)})},this.sub=function(o){n.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){n.splice(n.indexOf(o),1),a&&a.call(o)}}),r.children}};return t.Provider.__=t.Consumer.contextType=t}ft=mo.slice,G={__e:function(i,e,t,r){for(var n,s,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((s=n.constructor)&&s.getDerivedStateFromError!=null&&(n.setState(s.getDerivedStateFromError(i)),o=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(i,r||{}),o=n.__d),o)return n.__E=n}catch(a){i=a}throw i}},co=0,po=function(i){return i!=null&&i.constructor==null},Xe.prototype.setState=function(i,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ht({},this.state),typeof i=="function"&&(i=i(ht({},t),this.props)),i&&ht(t,i),i!=null&&this.__v&&(e&&this._sb.push(e),yn(this))},Xe.prototype.forceUpdate=function(i){this.__v&&(this.__e=!0,i&&this.__h.push(i),yn(this))},Xe.prototype.render=$,Yt=[],ho=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_n=function(i,e){return i.__v.__b-e.__v.__b},Ai.__r=0,go=0;function En(){return(En=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i}).apply(this,arguments)}var fc=["context","children"];function hc(i){this.getChildContext=function(){return i.context};var e=i.children,t=function(r,n){if(r==null)return{};var s,o,a={},l=Object.keys(r);for(o=0;o<l.length;o++)n.indexOf(s=l[o])>=0||(a[s]=r[s]);return a}(i,fc);return Sn(e,t)}function gc(){var i=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(i),this._vdom=z(hc,En({},this._props,{context:i.detail.context}),function e(t,r){if(t.nodeType===3)return t.data;if(t.nodeType!==1)return null;var n=[],s={},o=0,a=t.attributes,l=t.childNodes;for(o=a.length;o--;)a[o].name!=="slot"&&(s[a[o].name]=a[o].value,s[Do(a[o].name)]=a[o].value);for(o=l.length;o--;){var u=e(l[o],null),c=l[o].slot;c?s[c]=z(Ao,{name:c},u):n[o]=u}var d=r?z(Ao,null,n):n;return z(r||t.nodeName.toLowerCase(),s,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?An:Lt)(this._vdom,this._root)}function Do(i){return i.replace(/-(\w)/g,function(e,t){return t?t.toUpperCase():""})}function mc(i,e,t){if(this._vdom){var r={};r[i]=t=t??void 0,r[Do(i)]=t,this._vdom=Sn(this._vdom,r),Lt(this._vdom,this._root)}}function bc(){Lt(this._vdom=null,this._root)}function Ao(i,e){var t=this;return z("slot",En({},i,{ref:function(r){r?(t.ref=r,t._listener||(t._listener=function(n){n.stopPropagation(),n.detail.context=e},r.addEventListener("_preact",t._listener))):t.ref.removeEventListener("_preact",t._listener)}}))}function vc(i,e,t,r){function n(){var s=Reflect.construct(HTMLElement,[],n);return s._vdomComponent=i,s._root=r&&r.shadow?s.attachShadow({mode:r.mode||"open"}):s,s}return(n.prototype=Object.create(HTMLElement.prototype)).constructor=n,n.prototype.connectedCallback=gc,n.prototype.attributeChangedCallback=mc,n.prototype.disconnectedCallback=bc,t=t||i.observedAttributes||Object.keys(i.propTypes||{}),n.observedAttributes=t,t.forEach(function(s){Object.defineProperty(n.prototype,s,{get:function(){return this._vdom.props[s]},set:function(o){this._vdom?this.attributeChangedCallback(s,null,o):(this._props||(this._props={}),this._props[s]=o,this.connectedCallback());var a=typeof o;o!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(s,o)}})}),customElements.define(e||i.tagName||i.displayName||i.name,n)}var Tt,se,Bn,So,dr=0,Eo=[],Ei=[],ue=G,Bo=ue.__b,Lo=ue.__r,To=ue.diffed,Fo=ue.__c,No=ue.unmount,Mo=ue.__;function pr(i,e){ue.__h&&ue.__h(se,i,dr||e),dr=0;var t=se.__H||(se.__H={__:[],__h:[]});return i>=t.__.length&&t.__.push({__V:Ei}),t.__[i]}function O(i){return dr=1,Po(Ro,i)}function Po(i,e,t){var r=pr(Tt++,2);if(r.t=i,!r.__c&&(r.__=[t?t(e):Ro(void 0,e),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=se,!se.u)){var n=function(a,l,u){if(!r.__c.__H)return!0;var c=r.__c.__H.__.filter(function(h){return!!h.__c});if(c.every(function(h){return!h.__N}))return!s||s.call(this,a,l,u);var d=!1;return c.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(d=!0)}}),!(!d&&r.__c.props===a)&&(!s||s.call(this,a,l,u))};se.u=!0;var s=se.shouldComponentUpdate,o=se.componentWillUpdate;se.componentWillUpdate=function(a,l,u){if(this.__e){var c=s;s=void 0,n(a,l,u),s=c}o&&o.call(this,a,l,u)},se.shouldComponentUpdate=n}return r.__N||r.__}function U(i,e){var t=pr(Tt++,3);!ue.__s&&Tn(t.__H,e)&&(t.__=i,t.i=e,se.__H.__h.push(t))}function fr(i,e){var t=pr(Tt++,4);!ue.__s&&Tn(t.__H,e)&&(t.__=i,t.i=e,se.__h.push(t))}function Y(i){return dr=5,it(function(){return{current:i}},[])}function wc(i,e,t){dr=6,fr(function(){return typeof i=="function"?(i(e()),function(){return i(null)}):i?(i.current=e(),function(){return i.current=null}):void 0},t==null?t:t.concat(i))}function it(i,e){var t=pr(Tt++,7);return Tn(t.__H,e)?(t.__V=i(),t.i=e,t.__h=i,t.__V):t.__}function Oo(i,e){return dr=8,it(function(){return i},e)}function Bi(i){var e=se.context[i.__c],t=pr(Tt++,9);return t.c=i,e?(t.__==null&&(t.__=!0,e.sub(se)),e.props.value):i.__}function xc(i,e){ue.useDebugValue&&ue.useDebugValue(e?e(i):i)}function _c(){var i=pr(Tt++,11);if(!i.__){for(var e=se.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var t=e.__m||(e.__m=[0,0]);i.__="P"+t[0]+"-"+t[1]++}return i.__}function yc(){for(var i;i=Eo.shift();)if(i.__P&&i.__H)try{i.__H.__h.forEach(Li),i.__H.__h.forEach(Ln),i.__H.__h=[]}catch(e){i.__H.__h=[],ue.__e(e,i.__v)}}ue.__b=function(i){se=null,Bo&&Bo(i)},ue.__=function(i,e){i&&e.__k&&e.__k.__m&&(i.__m=e.__k.__m),Mo&&Mo(i,e)},ue.__r=function(i){Lo&&Lo(i),Tt=0;var e=(se=i.__c).__H;e&&(Bn===se?(e.__h=[],se.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=Ei,t.__N=t.i=void 0})):(e.__h.forEach(Li),e.__h.forEach(Ln),e.__h=[],Tt=0)),Bn=se},ue.diffed=function(i){To&&To(i);var e=i.__c;e&&e.__H&&(e.__H.__h.length&&(Eo.push(e)!==1&&So===ue.requestAnimationFrame||((So=ue.requestAnimationFrame)||Cc)(yc)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==Ei&&(t.__=t.__V),t.i=void 0,t.__V=Ei})),Bn=se=null},ue.__c=function(i,e){e.some(function(t){try{t.__h.forEach(Li),t.__h=t.__h.filter(function(r){return!r.__||Ln(r)})}catch(r){e.some(function(n){n.__h&&(n.__h=[])}),e=[],ue.__e(r,t.__v)}}),Fo&&Fo(i,e)},ue.unmount=function(i){No&&No(i);var e,t=i.__c;t&&t.__H&&(t.__H.__.forEach(function(r){try{Li(r)}catch(n){e=n}}),t.__H=void 0,e&&ue.__e(e,t.__v))};var Io=typeof requestAnimationFrame=="function";function Cc(i){var e,t=function(){clearTimeout(r),Io&&cancelAnimationFrame(e),setTimeout(i)},r=setTimeout(t,100);Io&&(e=requestAnimationFrame(t))}function Li(i){var e=se,t=i.__c;typeof t=="function"&&(i.__c=void 0,t()),se=e}function Ln(i){var e=se;i.__c=i.__(),se=e}function Tn(i,e){return!i||i.length!==e.length||e.some(function(t,r){return t!==i[r]})}function Ro(i,e){return typeof e=="function"?e(i):e}function zo(i,e){for(var t in e)i[t]=e[t];return i}function Fn(i,e){for(var t in i)if(t!=="__source"&&!(t in e))return!0;for(var r in e)if(r!=="__source"&&i[r]!==e[r])return!0;return!1}function Nn(i,e){this.props=i,this.context=e}function kc(i,e){function t(n){var s=this.props.ref,o=s==n.ref;return!o&&s&&(s.call?s(null):s.current=null),e?!e(this.props,n)||!o:Fn(this.props,n)}function r(n){return this.shouldComponentUpdate=t,z(i,n)}return r.displayName="Memo("+(i.displayName||i.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Nn.prototype=new Xe).isPureReactComponent=!0,Nn.prototype.shouldComponentUpdate=function(i,e){return Fn(this.props,i)||Fn(this.state,e)};var qo=G.__b;G.__b=function(i){i.type&&i.type.__f&&i.ref&&(i.props.ref=i.ref,i.ref=null),qo&&qo(i)};var Dc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Mn(i){function e(t){var r=zo({},t);return delete r.ref,i(r,t.ref||null)}return e.$$typeof=Dc,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(i.displayName||i.name)+")",e}var $o=function(i,e){return i==null?null:gt(gt(i).map(e))},Vo={map:$o,forEach:$o,count:function(i){return i?gt(i).length:0},only:function(i){var e=gt(i);if(e.length!==1)throw"Children.only";return e[0]},toArray:gt},Ac=G.__e;G.__e=function(i,e,t,r){if(i.then){for(var n,s=e;s=s.__;)if((n=s.__c)&&n.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),n.__c(i,e)}Ac(i,e,t,r)};var jo=G.unmount;function Uo(i,e,t){return i&&(i.__c&&i.__c.__H&&(i.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),i.__c.__H=null),(i=zo({},i)).__c!=null&&(i.__c.__P===t&&(i.__c.__P=e),i.__c=null),i.__k=i.__k&&i.__k.map(function(r){return Uo(r,e,t)})),i}function Ho(i,e,t){return i&&t&&(i.__v=null,i.__k=i.__k&&i.__k.map(function(r){return Ho(r,e,t)}),i.__c&&i.__c.__P===e&&(i.__e&&t.appendChild(i.__e),i.__c.__e=!0,i.__c.__P=t)),i}function Ti(){this.__u=0,this.t=null,this.__b=null}function Go(i){var e=i.__.__c;return e&&e.__a&&e.__a(i)}function Sc(i){var e,t,r;function n(s){if(e||(e=i()).then(function(o){t=o.default||o},function(o){r=o}),r)throw r;if(!t)throw e;return z(t,s)}return n.displayName="Lazy",n.__f=!0,n}function Yr(){this.u=null,this.o=null}G.unmount=function(i){var e=i.__c;e&&e.__R&&e.__R(),e&&32&i.__u&&(i.type=null),jo&&jo(i)},(Ti.prototype=new Xe).__c=function(i,e){var t=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(t);var n=Go(r.__v),s=!1,o=function(){s||(s=!0,t.__R=null,n?n(a):a())};t.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Ho(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),i.then(o,o)},Ti.prototype.componentWillUnmount=function(){this.t=[]},Ti.prototype.render=function(i,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Uo(this.__b,t,r.__O=r.__P)}this.__b=null}var n=e.__a&&z($,null,i.fallback);return n&&(n.__u&=-33),[z($,null,e.__a?null:i.children),n]};var Wo=function(i,e,t){if(++t[1]===t[0]&&i.o.delete(e),i.props.revealOrder&&(i.props.revealOrder[0]!=="t"||!i.o.size))for(t=i.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;i.u=t=t[2]}};function Ec(i){return this.getChildContext=function(){return i.context},i.children}function Bc(i){var e=this,t=i.i;e.componentWillUnmount=function(){Lt(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,n){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),Lt(z(Ec,{context:e.context},i.__v),e.l)}function Lc(i,e){var t=z(Bc,{__v:i,i:e});return t.containerInfo=e,t}(Yr.prototype=new Xe).__a=function(i){var e=this,t=Go(e.__v),r=e.o.get(i);return r[0]++,function(n){var s=function(){e.props.revealOrder?(r.push(n),Wo(e,i,r)):n()};t?t(s):s()}},Yr.prototype.render=function(i){this.u=null,this.o=new Map;var e=gt(i.children);i.revealOrder&&i.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return i.children},Yr.prototype.componentDidUpdate=Yr.prototype.componentDidMount=function(){var i=this;this.o.forEach(function(e,t){Wo(i,t,e)})};var Yo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Tc=/^(?: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]/,Fc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Nc=/[A-Z0-9]/g,Mc=typeof document<"u",Pc=function(i){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(i)};function Oc(i,e,t){return e.__k==null&&(e.textContent=""),Lt(i,e),typeof t=="function"&&t(),i?i.__c:null}function Ic(i,e,t){return An(i,e),typeof t=="function"&&t(),i?i.__c:null}Xe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(i){Object.defineProperty(Xe.prototype,i,{configurable:!0,get:function(){return this["UNSAFE_"+i]},set:function(e){Object.defineProperty(this,i,{configurable:!0,writable:!0,value:e})}})});var Ko=G.event;function Rc(){}function zc(){return this.cancelBubble}function qc(){return this.defaultPrevented}G.event=function(i){return Ko&&(i=Ko(i)),i.persist=Rc,i.isPropagationStopped=zc,i.isDefaultPrevented=qc,i.nativeEvent=i};var Pn,$c={enumerable:!1,configurable:!0,get:function(){return this.class}},Zo=G.vnode;G.vnode=function(i){typeof i.type=="string"&&function(e){var t=e.props,r=e.type,n={};for(var s in t){var o=t[s];if(!(s==="value"&&"defaultValue"in t&&o==null||Mc&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var a=s.toLowerCase();s==="defaultValue"&&"value"in t&&t.value==null?s="value":s==="download"&&o===!0?o="":a==="translate"&&o==="no"?o=!1:a==="ondoubleclick"?s="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||Pc(t.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":Fc.test(s)?s=a:r.indexOf("-")===-1&&Tc.test(s)?s=s.replace(Nc,"-$&").toLowerCase():o===null&&(o=void 0):a=s="oninput",a==="oninput"&&n[s=a]&&(s="oninputCapture"),n[s]=o}}r=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=gt(t.children).forEach(function(l){l.props.selected=n.value.indexOf(l.props.value)!=-1})),r=="select"&&n.defaultValue!=null&&(n.value=gt(t.children).forEach(function(l){l.props.selected=n.multiple?n.defaultValue.indexOf(l.props.value)!=-1:n.defaultValue==l.props.value})),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,"className",$c)):(t.className&&!t.class||t.class&&t.className)&&(n.class=n.className=t.className),e.props=n}(i),i.$$typeof=Yo,Zo&&Zo(i)};var Xo=G.__r;G.__r=function(i){Xo&&Xo(i),Pn=i.__c};var Jo=G.diffed;G.diffed=function(i){Jo&&Jo(i);var e=i.props,t=i.__e;t!=null&&i.type==="textarea"&&"value"in e&&e.value!==t.value&&(t.value=e.value==null?"":e.value),Pn=null};var Vc={ReactCurrentDispatcher:{current:{readContext:function(i){return Pn.__n[i.__c].props.value}}}};function jc(i){return z.bind(null,i)}function Ft(i){return!!i&&i.$$typeof===Yo}function Uc(i){return Ft(i)&&i.type===$}function Qo(i){return Ft(i)?Sn.apply(null,arguments):i}function Hc(i){return!!i.__k&&(Lt(null,i),!0)}function Gc(i){return i&&(i.base||i.nodeType===1&&i)||null}var Wc=function(i,e){return i(e)},Yc=function(i,e){return i(e)},Kc=$;function ea(i){i()}function Zc(i){return i}function Xc(){return[!1,ea]}var Jc=fr,Qc=Ft;function ed(i,e){var t=e(),r=O({h:{__:t,v:e}}),n=r[0].h,s=r[1];return fr(function(){n.__=t,n.v=e,On(n)&&s({h:n})},[i,t,e]),U(function(){return On(n)&&s({h:n}),i(function(){On(n)&&s({h:n})})},[i]),t}function On(i){var e,t,r=i.v,n=i.__;try{var s=r();return!((e=n)===(t=s)&&(e!==0||1/e==1/t)||e!=e&&t!=t)}catch{return!0}}var ve={useState:O,useId:_c,useReducer:Po,useEffect:U,useLayoutEffect:fr,useInsertionEffect:Jc,useTransition:Xc,useDeferredValue:Zc,useSyncExternalStore:ed,startTransition:ea,useRef:Y,useImperativeHandle:wc,useMemo:it,useCallback:Oo,useContext:Bi,useDebugValue:xc,version:"17.0.2",Children:Vo,render:Oc,hydrate:Ic,unmountComponentAtNode:Hc,createPortal:Lc,createElement:z,createContext:Wr,createFactory:jc,cloneElement:Qo,createRef:lc,Fragment:$,isValidElement:Ft,isElement:Qc,isFragment:Uc,findDOMNode:Gc,Component:Xe,PureComponent:Nn,memo:kc,forwardRef:Mn,flushSync:Yc,unstable_batchedUpdates:Wc,StrictMode:Kc,Suspense:Ti,SuspenseList:Yr,lazy:Sc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Vc},In=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ta(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var td={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const rd=ta(td);var id=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function ra(i){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=i.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(e.name=t[1],(rd[t[1]]||i.charAt(i.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var r=i.indexOf("-->");return{type:"comment",comment:r!==-1?i.slice(4,r):""}}for(var n=new RegExp(id),s=null;(s=n.exec(i))!==null;)if(s[0].trim())if(s[1]){var o=s[1].trim(),a=[o,""];o.indexOf("=")>-1&&(a=o.split("=")),e.attrs[a[0]]=a[1],n.lastIndex--}else s[2]&&(e.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return e}var nd=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,sd=/^\s*$/,od=Object.create(null);function ia(i,e){switch(e.type){case"text":return i+e.content;case"tag":return i+="<"+e.name+(e.attrs?function(t){var r=[];for(var n in t)r.push(n+'="'+t[n]+'"');return r.length?" "+r.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?i:i+e.children.reduce(ia,"")+"</"+e.name+">";case"comment":return i+"<!--"+e.comment+"-->"}}var ad={parse:function(i,e){e||(e={}),e.components||(e.components=od);var t,r=[],n=[],s=-1,o=!1;if(i.indexOf("<")!==0){var a=i.indexOf("<");r.push({type:"text",content:a===-1?i:i.substring(0,a)})}return i.replace(nd,function(l,u){if(o){if(l!=="</"+t.name+">")return;o=!1}var c,d=l.charAt(1)!=="/",h=l.startsWith("<!--"),f=u+l.length,m=i.charAt(f);if(h){var b=ra(l);return s<0?(r.push(b),r):((c=n[s]).children.push(b),r)}if(d&&(s++,(t=ra(l)).type==="tag"&&e.components[t.name]&&(t.type="component",o=!0),t.voidElement||o||!m||m==="<"||t.children.push({type:"text",content:i.slice(f,i.indexOf("<",f))}),s===0&&r.push(t),(c=n[s-1])&&c.children.push(t),n[s]=t),(!d||t.voidElement)&&(s>-1&&(t.voidElement||t.name===l.slice(2,-1))&&(s--,t=s===-1?r:n[s]),!o&&m!=="<"&&m)){c=s===-1?r:n[s].children;var w=i.indexOf("<",f),v=i.slice(f,w===-1?void 0:w);sd.test(v)&&(v=" "),(w>-1&&s+c.length>=0||v!==" ")&&c.push({type:"text",content:v})}}),r},stringify:function(i){return i.reduce(function(e,t){return e+ia("",t)},"")}};const Fi=(...i)=>{console!=null&&console.warn&&(Ge(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),console.warn(...i))},na={},Ni=(...i)=>{Ge(i[0])&&na[i[0]]||(Ge(i[0])&&(na[i[0]]=new Date),Fi(...i))},sa=(i,e)=>()=>{if(i.isInitialized)e();else{const t=()=>{setTimeout(()=>{i.off("initialized",t)},0),e()};i.on("initialized",t)}},oa=(i,e,t)=>{i.loadNamespaces(e,sa(i,t))},aa=(i,e,t,r)=>{Ge(t)&&(t=[t]),t.forEach(n=>{i.options.ns.indexOf(n)<0&&i.options.ns.push(n)}),i.loadLanguages(e,sa(i,r))},ld=(i,e,t={})=>!e.languages||!e.languages.length?(Ni("i18n.languages were undefined or empty",e.languages),!0):e.hasLoadedNamespace(i,{lng:t.lng,precheck:(r,n)=>{var s;if(((s=t.bindI18n)==null?void 0:s.indexOf("languageChanging"))>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!n(r.isLanguageChangingTo,i))return!1}}),Ge=i=>typeof i=="string",hr=i=>typeof i=="object"&&i!==null,ud=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,cd={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},dd=i=>cd[i];let Rn={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:i=>i.replace(ud,dd)};const pd=(i={})=>{Rn={...Rn,...i}},la=()=>Rn;let ua;const fd=i=>{ua=i},Nt=()=>ua,zn=(i,e)=>{var r;if(!i)return!1;const t=((r=i.props)==null?void 0:r.children)??i.children;return e?t.length>0:!!t},qn=i=>{var t,r;if(!i)return[];const e=((t=i.props)==null?void 0:t.children)??i.children;return(r=i.props)!=null&&r.i18nIsDynamicList?gr(e):e},hd=i=>Array.isArray(i)&&i.every(Ft),gr=i=>Array.isArray(i)?i:[i],gd=(i,e)=>{const t={...e};return t.props=Object.assign(i.props,e.props),t},ca=(i,e)=>{if(!i)return"";let t="";const r=gr(i),n=e!=null&&e.transSupportBasicHtmlNodes?e.transKeepBasicHtmlNodesFor??[]:[];return r.forEach((s,o)=>{if(Ge(s))t+=`${s}`;else if(Ft(s)){const{props:a,type:l}=s,u=Object.keys(a).length,c=n.indexOf(l)>-1,d=a.children;if(!d&&c&&!u)t+=`<${l}/>`;else if(!d&&(!c||u)||a.i18nIsDynamicList)t+=`<${o}></${o}>`;else if(c&&u===1&&Ge(d))t+=`<${l}>${d}</${l}>`;else{const h=ca(d,e);t+=`<${o}>${h}</${o}>`}}else if(s===null)Fi("Trans: the passed in value is invalid - seems you passed in a null child.");else if(hr(s)){const{format:a,...l}=s,u=Object.keys(l);if(u.length===1){const c=a?`${u[0]}, ${a}`:u[0];t+=`{{${c}}}`}else Fi("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",s)}else Fi("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",s)}),t},md=(i,e,t,r,n,s)=>{if(e==="")return[];const o=r.transKeepBasicHtmlNodesFor||[],a=e&&new RegExp(o.map(w=>`<${w}`).join("|")).test(e);if(!i&&!a&&!s)return[e];const l={},u=w=>{gr(w).forEach(g=>{Ge(g)||(zn(g)?u(qn(g)):hr(g)&&!Ft(g)&&Object.assign(l,g))})};u(i);const c=ad.parse(`<0>${e}</0>`),d={...l,...n},h=(w,v,g)=>{var y;const x=qn(w),_=m(x,v.children,g);return hd(x)&&_.length===0||(y=w.props)!=null&&y.i18nIsDynamicList?x:_},f=(w,v,g,x,_)=>{w.dummy?(w.children=v,g.push(Qo(w,{key:x},_?void 0:v))):g.push(...Vo.map([w],y=>{const k={...y.props};return delete k.i18nIsDynamicList,z(y.type,{...k,key:x,ref:y.ref},_?null:v)}))},m=(w,v,g)=>{const x=gr(w);return gr(v).reduce((y,k,A)=>{var D,S;const C=((S=(D=k.children)==null?void 0:D[0])==null?void 0:S.content)&&t.services.interpolator.interpolate(k.children[0].content,d,t.language);if(k.type==="tag"){let T=x[parseInt(k.name,10)];g.length===1&&!T&&(T=g[0][k.name]),T||(T={});const L=Object.keys(k.attrs).length!==0?gd({props:k.attrs},T):T,F=Ft(L),M=F&&zn(k,!0)&&!k.voidElement,N=a&&hr(L)&&L.dummy&&!F,q=hr(i)&&Object.hasOwnProperty.call(i,k.name);if(Ge(L)){const P=t.services.interpolator.interpolate(L,d,t.language);y.push(P)}else if(zn(L)||M){const P=h(L,k,g);f(L,P,y,A)}else if(N){const P=m(x,k.children,g);f(L,P,y,A)}else if(Number.isNaN(parseFloat(k.name)))if(q){const P=h(L,k,g);f(L,P,y,A,k.voidElement)}else if(r.transSupportBasicHtmlNodes&&o.indexOf(k.name)>-1)if(k.voidElement)y.push(z(k.name,{key:`${k.name}-${A}`}));else{const P=m(x,k.children,g);y.push(z(k.name,{key:`${k.name}-${A}`},P))}else if(k.voidElement)y.push(`<${k.name} />`);else{const P=m(x,k.children,g);y.push(`<${k.name}>${P}</${k.name}>`)}else if(hr(L)&&!F){const P=k.children[0]?C:null;P&&y.push(P)}else f(L,C,y,A,k.children.length!==1||!C)}else if(k.type==="text"){const T=r.transWrapTextNodes,L=s?r.unescape(t.services.interpolator.interpolate(k.content,d,t.language)):t.services.interpolator.interpolate(k.content,d,t.language);T?y.push(z(T,{key:`${k.name}-${A}`},L)):y.push(L)}return y},[])},b=m([{dummy:!0,children:i||[]}],c,gr(i||[]));return qn(b[0])};function bd({children:i,count:e,parent:t,i18nKey:r,context:n,tOptions:s={},values:o,defaults:a,components:l,ns:u,i18n:c,t:d,shouldUnescape:h,...f}){var T,L,F,M,N,q;const m=c||Nt();if(!m)return Ni("You will need to pass in an i18next instance by using i18nextReactModule"),i;const b=d||m.t.bind(m)||(P=>P),w={...la(),...(T=m.options)==null?void 0:T.react};let v=u||b.ns||((L=m.options)==null?void 0:L.defaultNS);v=Ge(v)?[v]:v||["translation"];const g=ca(i,w),x=a||g||w.transEmptyNodeValue||r,{hashTransKey:_}=w,y=r||(_?_(g||x):g||x);(M=(F=m.options)==null?void 0:F.interpolation)!=null&&M.defaultVariables&&(o=o&&Object.keys(o).length>0?{...o,...m.options.interpolation.defaultVariables}:{...m.options.interpolation.defaultVariables});const k=o||e!==void 0&&!((q=(N=m.options)==null?void 0:N.interpolation)!=null&&q.alwaysFormat)||!i?s.interpolation:{interpolation:{...s.interpolation,prefix:"#$?",suffix:"?$#"}},A={...s,context:n||s.context,count:e,...o,...k,defaultValue:x,ns:v},C=y?b(y,A):x;l&&Object.keys(l).forEach(P=>{const E=l[P];if(typeof E.type=="function"||!E.props||!E.props.children||C.indexOf(`${P}/>`)<0&&C.indexOf(`${P} />`)<0)return;function B(){return z($,null,E)}l[P]=z(B)});const D=md(l||i,C,m,w,A,h),S=t??w.defaultTransParent;return S?z(S,f,D):D}const vd={type:"3rdParty",init(i){pd(i.options.react),fd(i)}},da=Wr();class wd{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function pa({children:i,count:e,parent:t,i18nKey:r,context:n,tOptions:s={},values:o,defaults:a,components:l,ns:u,i18n:c,t:d,shouldUnescape:h,...f}){var g;const{i18n:m,defaultNS:b}=Bi(da)||{},w=c||m||Nt(),v=d||(w==null?void 0:w.t.bind(w));return bd({children:i,count:e,parent:t,i18nKey:r,context:n,tOptions:s,values:o,defaults:a,components:l,ns:u||(v==null?void 0:v.ns)||b||((g=w==null?void 0:w.options)==null?void 0:g.defaultNS),i18n:w,t:d,shouldUnescape:h,...f})}const xd=(i,e)=>{const t=Y();return U(()=>{t.current=e?t.current:i},[i,e]),t.current},fa=(i,e,t,r)=>i.getFixedT(e,t,r),_d=(i,e,t,r)=>Oo(fa(i,e,t,r),[i,e,t,r]),ee=(i,e={})=>{var _,y,k,A;const{i18n:t}=e,{i18n:r,defaultNS:n}=Bi(da)||{},s=t||r||Nt();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new wd),!s){Ni("You will need to pass in an i18next instance by using initReactI18next");const C=(S,T)=>Ge(T)?T:hr(T)&&Ge(T.defaultValue)?T.defaultValue:Array.isArray(S)?S[S.length-1]:S,D=[C,{},!1];return D.t=C,D.i18n={},D.ready=!1,D}(_=s.options.react)!=null&&_.wait&&Ni("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...la(),...s.options.react,...e},{useSuspense:a,keyPrefix:l}=o;let u=i||n||((y=s.options)==null?void 0:y.defaultNS);u=Ge(u)?[u]:u||["translation"],(A=(k=s.reportNamespaces).addUsedNamespaces)==null||A.call(k,u);const c=(s.isInitialized||s.initializedStoreOnce)&&u.every(C=>ld(C,s,o)),d=_d(s,e.lng||null,o.nsMode==="fallback"?u:u[0],l),h=()=>d,f=()=>fa(s,e.lng||null,o.nsMode==="fallback"?u:u[0],l),[m,b]=O(h);let w=u.join();e.lng&&(w=`${e.lng}${w}`);const v=xd(w),g=Y(!0);U(()=>{const{bindI18n:C,bindI18nStore:D}=o;g.current=!0,!c&&!a&&(e.lng?aa(s,e.lng,u,()=>{g.current&&b(f)}):oa(s,u,()=>{g.current&&b(f)})),c&&v&&v!==w&&g.current&&b(f);const S=()=>{g.current&&b(f)};return C&&(s==null||s.on(C,S)),D&&(s==null||s.store.on(D,S)),()=>{g.current=!1,s&&(C==null||C.split(" ").forEach(T=>s.off(T,S))),D&&s&&D.split(" ").forEach(T=>s.store.off(T,S))}},[s,w]),U(()=>{g.current&&c&&b(h)},[s,l,c]);const x=[m,s,c];if(x.t=m,x.i18n=s,x.ready=c,c||!c&&!a)return x;throw new Promise(C=>{e.lng?aa(s,e.lng,u,()=>C()):oa(s,u,()=>C())})};var yd=Symbol.for("preact-signals");function Mi(){if(Mt>1)Mt--;else{for(var i,e=!1;Kr!==void 0;){var t=Kr;for(Kr=void 0,$n++;t!==void 0;){var r=t.o;if(t.o=void 0,t.f&=-3,!(8&t.f)&&ga(t))try{t.c()}catch(n){e||(i=n,e=!0)}t=r}}if($n=0,Mt--,e)throw i}}function Cd(i){if(Mt>0)return i();Mt++;try{return i()}finally{Mi()}}var re=void 0,Kr=void 0,Mt=0,$n=0,Pi=0;function ha(i){if(re!==void 0){var e=i.n;if(e===void 0||e.t!==re)return e={i:0,S:i,p:re.s,n:void 0,t:re,e:void 0,x:void 0,r:e},re.s!==void 0&&(re.s.n=e),re.s=e,i.n=e,32&re.f&&i.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=re.s,e.n=void 0,re.s.n=e,re.s=e),e}}function _e(i){this.v=i,this.i=0,this.n=void 0,this.t=void 0}_e.prototype.brand=yd,_e.prototype.h=function(){return!0},_e.prototype.S=function(i){this.t!==i&&i.e===void 0&&(i.x=this.t,this.t!==void 0&&(this.t.e=i),this.t=i)},_e.prototype.U=function(i){if(this.t!==void 0){var e=i.e,t=i.x;e!==void 0&&(e.x=t,i.e=void 0),t!==void 0&&(t.e=e,i.x=void 0),i===this.t&&(this.t=t)}},_e.prototype.subscribe=function(i){var e=this;return jn(function(){var t=e.value,r=re;re=void 0;try{i(t)}finally{re=r}})},_e.prototype.valueOf=function(){return this.value},_e.prototype.toString=function(){return this.value+""},_e.prototype.toJSON=function(){return this.value},_e.prototype.peek=function(){var i=re;re=void 0;try{return this.value}finally{re=i}},Object.defineProperty(_e.prototype,"value",{get:function(){var i=ha(this);return i!==void 0&&(i.i=this.i),this.v},set:function(i){if(i!==this.v){if($n>100)throw new Error("Cycle detected");this.v=i,this.i++,Pi++,Mt++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Mi()}}}});function Ce(i){return new _e(i)}function ga(i){for(var e=i.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 ma(i){for(var e=i.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){i.s=e;break}}}function ba(i){for(var e=i.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}i.s=t}function mr(i){_e.call(this,void 0),this.x=i,this.s=void 0,this.g=Pi-1,this.f=4}(mr.prototype=new _e).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Pi))return!0;if(this.g=Pi,this.f|=1,this.i>0&&!ga(this))return this.f&=-2,!0;var i=re;try{ma(this),re=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 re=i,ba(this),this.f&=-2,!0},mr.prototype.S=function(i){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}_e.prototype.S.call(this,i)},mr.prototype.U=function(i){if(this.t!==void 0&&(_e.prototype.U.call(this,i),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}},mr.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var i=this.t;i!==void 0;i=i.x)i.t.N()}},Object.defineProperty(mr.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var i=ha(this);if(this.h(),i!==void 0&&(i.i=this.i),16&this.f)throw this.v;return this.v}});function kd(i){return new mr(i)}function va(i){var e=i.u;if(i.u=void 0,typeof e=="function"){Mt++;var t=re;re=void 0;try{e()}catch(r){throw i.f&=-2,i.f|=8,Vn(i),r}finally{re=t,Mi()}}}function Vn(i){for(var e=i.s;e!==void 0;e=e.n)e.S.U(e);i.x=void 0,i.s=void 0,va(i)}function Dd(i){if(re!==this)throw new Error("Out-of-order effect");ba(this),re=i,this.f&=-2,8&this.f&&Vn(this),Mi()}function Zr(i){this.x=i,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Zr.prototype.c=function(){var i=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{i()}},Zr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,va(this),ma(this),Mt++;var i=re;return re=this,Dd.bind(this,i)},Zr.prototype.N=function(){2&this.f||(this.f|=2,this.o=Kr,Kr=this)},Zr.prototype.d=function(){this.f|=8,1&this.f||Vn(this)};function jn(i){var e=new Zr(i);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}var Un;function br(i,e){G[i]=e.bind(null,G[i]||function(){})}function Oi(i){Un&&Un(),Un=i&&i.S()}function wa(i){var e=this,t=i.data,r=Sd(t);r.value=t;var n=it(function(){for(var s=e.__v;s=s.__;)if(s.__c){s.__c.__$f|=4;break}return e.__$u.c=function(){var o,a=e.__$u.S(),l=n.value;a(),po(l)||((o=e.base)==null?void 0:o.nodeType)!==3?(e.__$f|=1,e.setState({})):e.base.data=l},kd(function(){var o=r.value.value;return o===0?0:o===!0?"":o||""})},[]);return n.value}wa.displayName="_st",Object.defineProperties(_e.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:wa},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),br("__b",function(i,e){if(typeof e.type=="string"){var t,r=e.props;for(var n in r)if(n!=="children"){var s=r[n];s instanceof _e&&(t||(e.__np=t={}),t[n]=s,r[n]=s.peek())}}i(e)}),br("__r",function(i,e){Oi();var t,r=e.__c;r&&(r.__$f&=-2,(t=r.__$u)===void 0&&(r.__$u=t=function(n){var s;return jn(function(){s=this}),s.c=function(){r.__$f|=1,r.setState({})},s}())),Oi(t),i(e)}),br("__e",function(i,e,t,r){Oi(),i(e,t,r)}),br("diffed",function(i,e){Oi();var t;if(typeof e.type=="string"&&(t=e.__e)){var r=e.__np,n=e.props;if(r){var s=t.U;if(s)for(var o in s){var a=s[o];a!==void 0&&!(o in r)&&(a.d(),s[o]=void 0)}else t.U=s={};for(var l in r){var u=s[l],c=r[l];u===void 0?(u=Ad(t,l,c,n),s[l]=u):u.o(c,n)}}}i(e)});function Ad(i,e,t,r){var n=e in i&&i.ownerSVGElement===void 0,s=Ce(t);return{o:function(o,a){s.value=o,r=a},d:jn(function(){var o=s.value.value;r[e]!==o&&(r[e]=o,n?i[e]=o:o?i.setAttribute(e,o):i.removeAttribute(e))})}}br("unmount",function(i,e){if(typeof e.type=="string"){var t=e.__e;if(t){var r=t.U;if(r){t.U=void 0;for(var n in r){var s=r[n];s&&s.d()}}}}else{var o=e.__c;if(o){var a=o.__$u;a&&(o.__$u=void 0,a.d())}}i(e)}),br("__h",function(i,e,t,r){(r<3||r===9)&&(e.__$f|=2),i(e,t,r)}),Xe.prototype.shouldComponentUpdate=function(i,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 n in i)if(n!=="__source"&&i[n]!==this.props[n])return!0;for(var s in this.props)if(!(s in i))return!0;return!1};function Sd(i){return it(function(){return Ce(i)},[])}const Hn=Ce(!1),K=Ce(null),vr=Ce([]),wr=Ce(!1),Ee=Ce(!1),xr=Ce([]),Je=Ce(!1),Ii=Ce(null),ke=Ce(null),Ri=Ce(!1),zi=Ce(!0),mt=Ce(!1),Ed=()=>{Cd(()=>{K.value=null,vr.value=[],wr.value=!1,Ee.value=!1,xr.value=[],Je.value=!1,Ii.value=null,ke.value=null,Ri.value=!1,zi.value=!0,mt.value=!1})},Gn="bm_currentBike",Bd="v2",Ld="https://cdn.bikematrix.io",Td="1.0.2",xa={isShopify:!1,skuField:"sku",apiUrl:"https://api.bikematrix.io/proxy/v3/",apiKey:"",apiToken:"",currentCollectionHandle:"",categories:[],collections:[],pageType:"index",showHomePageCollection:!1,showSearchPageCollection:!1,designMode:!1,bikeSelectorBrands:"",productsCollections:{},isHomePage:!1,isSearchPage:!1,products:{},collectionUrl:"",compatiblityListCurrentPage:0,showCompatibleList:!0,delayCompatibleListInitialization:!1,sku:"",productCollections:[],logLevel:"none",virtualWorkshop:!0,internalLink:"",showBrowseCategoryButtons:!0,browseCompatibilityUrl:""},Be=function(i){return new URL(i,Ld).toString()};function _a(i){var e,t,r="";if(typeof i=="string"||typeof i=="number")r+=i;else if(typeof i=="object")if(Array.isArray(i)){var n=i.length;for(e=0;e<n;e++)i[e]&&(t=_a(i[e]))&&(r&&(r+=" "),r+=t)}else for(t in i)i[t]&&(r&&(r+=" "),r+=t);return r}function Fd(){for(var i,e,t=0,r="",n=arguments.length;t<n;t++)(i=arguments[t])&&(e=_a(i))&&(r&&(r+=" "),r+=e);return r}const Wn="-";function Nd(i){const e=Pd(i),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=i;function n(o){const a=o.split(Wn);return a[0]===""&&a.length!==1&&a.shift(),ya(a,e)||Md(o)}function s(o,a){const l=t[o]||[];return a&&r[o]?[...l,...r[o]]:l}return{getClassGroupId:n,getConflictingClassGroupIds:s}}function ya(i,e){var o;if(i.length===0)return e.classGroupId;const t=i[0],r=e.nextPart.get(t),n=r?ya(i.slice(1),r):void 0;if(n)return n;if(e.validators.length===0)return;const s=i.join(Wn);return(o=e.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId}const Ca=/^\[(.+)\]$/;function Md(i){if(Ca.test(i)){const e=Ca.exec(i)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}}function Pd(i){const{theme:e,prefix:t}=i,r={nextPart:new Map,validators:[]};return Id(Object.entries(i.classGroups),t).forEach(([s,o])=>{Yn(o,r,s,e)}),r}function Yn(i,e,t,r){i.forEach(n=>{if(typeof n=="string"){const s=n===""?e:ka(e,n);s.classGroupId=t;return}if(typeof n=="function"){if(Od(n)){Yn(n(r),e,t,r);return}e.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([s,o])=>{Yn(o,ka(e,s),t,r)})})}function ka(i,e){let t=i;return e.split(Wn).forEach(r=>{t.nextPart.has(r)||t.nextPart.set(r,{nextPart:new Map,validators:[]}),t=t.nextPart.get(r)}),t}function Od(i){return i.isThemeGetter}function Id(i,e){return e?i.map(([t,r])=>{const n=r.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[e+o,a])):s);return[t,n]}):i}function Rd(i){if(i<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,r=new Map;function n(s,o){t.set(s,o),e++,e>i&&(e=0,r=t,t=new Map)}return{get(s){let o=t.get(s);if(o!==void 0)return o;if((o=r.get(s))!==void 0)return n(s,o),o},set(s,o){t.has(s)?t.set(s,o):n(s,o)}}}const Da="!";function zd(i){const e=i.separator,t=e.length===1,r=e[0],n=e.length;return function(o){const a=[];let l=0,u=0,c;for(let b=0;b<o.length;b++){let w=o[b];if(l===0){if(w===r&&(t||o.slice(b,b+n)===e)){a.push(o.slice(u,b)),u=b+n;continue}if(w==="/"){c=b;continue}}w==="["?l++:w==="]"&&l--}const d=a.length===0?o:o.substring(u),h=d.startsWith(Da),f=h?d.substring(1):d,m=c&&c>u?c-u:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:m}}}function qd(i){if(i.length<=1)return i;const e=[];let t=[];return i.forEach(r=>{r[0]==="["?(e.push(...t.sort(),r),t=[]):t.push(r)}),e.push(...t.sort()),e}function $d(i){return{cache:Rd(i.cacheSize),splitModifiers:zd(i),...Nd(i)}}const Vd=/\s+/;function jd(i,e){const{splitModifiers:t,getClassGroupId:r,getConflictingClassGroupIds:n}=e,s=new Set;return i.trim().split(Vd).map(o=>{const{modifiers:a,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=t(o);let d=r(c?u.substring(0,c):u),h=!!c;if(!d){if(!c)return{isTailwindClass:!1,originalClassName:o};if(d=r(u),!d)return{isTailwindClass:!1,originalClassName:o};h=!1}const f=qd(a).join(":");return{isTailwindClass:!0,modifierId:l?f+Da:f,classGroupId:d,originalClassName:o,hasPostfixModifier:h}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:u}=o,c=a+l;return s.has(c)?!1:(s.add(c),n(l,u).forEach(d=>s.add(a+d)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function Ud(){let i=0,e,t,r="";for(;i<arguments.length;)(e=arguments[i++])&&(t=Aa(e))&&(r&&(r+=" "),r+=t);return r}function Aa(i){if(typeof i=="string")return i;let e,t="";for(let r=0;r<i.length;r++)i[r]&&(e=Aa(i[r]))&&(t&&(t+=" "),t+=e);return t}function Hd(i,...e){let t,r,n,s=o;function o(l){const u=e.reduce((c,d)=>d(c),i());return t=$d(u),r=t.cache.get,n=t.cache.set,s=a,a(l)}function a(l){const u=r(l);if(u)return u;const c=jd(l,t);return n(l,c),c}return function(){return s(Ud.apply(null,arguments))}}function oe(i){const e=t=>t[i]||[];return e.isThemeGetter=!0,e}const Sa=/^\[(?:([a-z-]+):)?(.+)\]$/i,Gd=/^\d+\/\d+$/,Wd=new Set(["px","full","screen"]),Yd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Zd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Xd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function bt(i){return Kt(i)||Wd.has(i)||Gd.test(i)}function Pt(i){return _r(i,"length",op)}function Kt(i){return!!i&&!Number.isNaN(Number(i))}function qi(i){return _r(i,"number",Kt)}function Xr(i){return!!i&&Number.isInteger(Number(i))}function Qd(i){return i.endsWith("%")&&Kt(i.slice(0,-1))}function Z(i){return Sa.test(i)}function Ot(i){return Yd.test(i)}const ep=new Set(["length","size","percentage"]);function tp(i){return _r(i,ep,Ea)}function rp(i){return _r(i,"position",Ea)}const ip=new Set(["image","url"]);function np(i){return _r(i,ip,lp)}function sp(i){return _r(i,"",ap)}function Jr(){return!0}function _r(i,e,t){const r=Sa.exec(i);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):t(r[2]):!1}function op(i){return Kd.test(i)&&!Zd.test(i)}function Ea(){return!1}function ap(i){return Xd.test(i)}function lp(i){return Jd.test(i)}function up(){const i=oe("colors"),e=oe("spacing"),t=oe("blur"),r=oe("brightness"),n=oe("borderColor"),s=oe("borderRadius"),o=oe("borderSpacing"),a=oe("borderWidth"),l=oe("contrast"),u=oe("grayscale"),c=oe("hueRotate"),d=oe("invert"),h=oe("gap"),f=oe("gradientColorStops"),m=oe("gradientColorStopPositions"),b=oe("inset"),w=oe("margin"),v=oe("opacity"),g=oe("padding"),x=oe("saturate"),_=oe("scale"),y=oe("sepia"),k=oe("skew"),A=oe("space"),C=oe("translate"),D=()=>["auto","contain","none"],S=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto",Z,e],L=()=>[Z,e],F=()=>["",bt,Pt],M=()=>["auto",Kt,Z],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],P=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],E=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",Z],R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>[Kt,qi],j=()=>[Kt,Z];return{cacheSize:500,separator:":",theme:{colors:[Jr],spacing:[bt,Pt],blur:["none","",Ot,Z],brightness:V(),borderColor:[i],borderRadius:["none","","full",Ot,Z],borderSpacing:L(),borderWidth:F(),contrast:V(),grayscale:B(),hueRotate:j(),invert:B(),gap:L(),gradientColorStops:[i],gradientColorStopPositions:[Qd,Pt],inset:T(),margin:T(),opacity:V(),padding:L(),saturate:V(),scale:V(),sepia:B(),skew:j(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",Z]}],container:["container"],columns:[{columns:[Ot]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...N(),Z]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[b]}],"inset-x":[{"inset-x":[b]}],"inset-y":[{"inset-y":[b]}],start:[{start:[b]}],end:[{end:[b]}],top:[{top:[b]}],right:[{right:[b]}],bottom:[{bottom:[b]}],left:[{left:[b]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Xr,Z]}],basis:[{basis:T()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Z]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",Xr,Z]}],"grid-cols":[{"grid-cols":[Jr]}],"col-start-end":[{col:["auto",{span:["full",Xr,Z]},Z]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[Jr]}],"row-start-end":[{row:["auto",{span:[Xr,Z]},Z]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Z]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...E()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...E(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...E(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Z,e]}],"min-w":[{"min-w":[Z,e,"min","max","fit"]}],"max-w":[{"max-w":[Z,e,"none","full","min","max","fit","prose",{screen:[Ot]},Ot]}],h:[{h:[Z,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Z,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Z,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Z,e,"auto","min","max","fit"]}],"font-size":[{text:["base",Ot,Pt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qi]}],"font-family":[{font:[Jr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],"line-clamp":[{"line-clamp":["none",Kt,qi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",bt,Z]}],"list-image":[{"list-image":["none",Z]}],"list-style-type":[{list:["none","disc","decimal",Z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",bt,Pt]}],"underline-offset":[{"underline-offset":["auto",bt,Z]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),rp]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",tp]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},np]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:q()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[bt,Z]}],"outline-w":[{outline:[bt,Pt]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[bt,Pt]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",Ot,sp]}],"shadow-color":[{shadow:[Jr]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":P()}],"bg-blend":[{"bg-blend":P()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ot,Z]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Z]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",Z]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",Z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Xr,Z]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Z]}],accent:[{accent:["auto",i]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Z]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Z]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[bt,Pt,qi]}],stroke:[{stroke:[i,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const cp=Hd(up);function X(...i){return cp(Fd(i))}const dp=crypto.randomUUID();function pp(){const i="bm_window_id";let e=sessionStorage.getItem(i);return e||(e=crypto.randomUUID(),sessionStorage.setItem(i,e)),e}const fp={shopify:{bikeBrands:"bike/brands",bikeModels:"bike/models",framesSeries:"bike/frameSeries",bikeSpecs:"bike/bikeSpecBikes",bikeSpecYears:"bike/bikeSpecYears",bikeSpecSizes:"bike/bikeSpecSizes",bikeBrandProductCategories:"bike/bikeBrandProductCategories",checkSku:"compatibility/checkSku",checkSkus:"compatibility/checkSkus",checkSkusWithResults:"compatibility/checkSkusWithResults",bikeBom:"workshop/bikeBom",customBike:"workshop/addCustomBike",addComponent:"workshop/addComponent",findProducts:"workshop/findProducts",removeComponent:"workshop/removeComponent",revertComponent:"workshop/revertComponent",saveCustomBike:"workshop/saveCustomBike",updateCustomBike:"workshop/updateCustomBike",updateCustomBikeName:"workshop/updateCustomBikeName",raceControl:"raceControl"},bikematrix:{bikeBrands:"GetBikeBrands",bikeModels:"GetBikeModels",framesSeries:"GetBikeFrameSeries",bikeSpecs:"GetBikeSpecBikes",bikeSpecYears:"GetBikeSpecYears",bikeSpecSizes:"GetBikeSpecSizes",bikeBrandProductCategories:"GetBikeBrandProductCategories",checkSku:"Compatibility_CheckSku",checkSkus:"Compatibility_CheckSkus",checkSkusWithResults:"Compatibility_CheckSkusWithResults",bikeBom:"GetBikeBillOfMaterials",customBike:"AddCustomBike",addComponent:"AddComponent",findProducts:"FindProducts",removeComponent:"RemoveComponent",revertComponent:"RevertComponent",saveCustomBike:"SaveCustomBike",updateCustomBike:"UpdateCustomBike",updateCustomBikeName:"UpdateCustomBikeName",raceControl:"RaceControl"}};class De{constructor(e,t,r,n){this._apiUrl=n?window.location.origin+"/apps/proxy/api/":e,this._apiKey=t??"",this._apiToken=r??"",this._apiType=n?"shopify":"bikematrix",this._requestCorrelationId=pp(),this._requestDiagnosticCounter=0}getDiagnosticHeaderValue(){const e="bm_request_diagnostic_counter",t=parseInt(sessionStorage.getItem(e)||"",10),r=Number.isFinite(t)?t:0;this._requestDiagnosticCounter=r+1,sessionStorage.setItem(e,this._requestDiagnosticCounter.toString());const n=parseInt(this._requestCorrelationId.replace(/-/g,"").slice(0,8)||"0",16);return(this._requestDiagnosticCounter^n).toString(36)}getEndpoint(e){return fp[this._apiType][e]}async getBikeBrands(){const e=this.getEndpoint("bikeBrands"),t=await this.makeRequest(e);return t.success?{success:t.success,data:t.data}:{success:t.success,error:"error_generic GetBikeBrands",logError:t.error}}async getBikeModels(e){if(!e)return{success:!1,error:"error_generic"};const t=this.getEndpoint("bikeModels"),r=await this.makeRequest(t,{params:{bikeBrandId:e}});return r.success?{data:r.data,success:r.success}:{success:r.success,error:"error_generic GetBikeModels",logError:r.error}}async getBikeFrameSeries(e){if(!e)return{error:"error_generic",success:!1};const t=this.getEndpoint("framesSeries"),r=await this.makeRequest(t,{params:{bikeModelId:e}});return r.success?{data:r.data,success:r.success}:{success:r.success,error:"error_generic GetBikeFrameSeries",logError:r.error}}async getBikeSpecs(e){if(!e)return{success:!1,error:"error_generic GetBikeSpecs"};const t=this.getEndpoint("bikeSpecs"),r=await this.makeRequest(t,{params:{bikeModelSpecId:e}});return r.success?{data:r.data,success:r.success}:{success:r.success,error:"error_generic GetBikeSpecs",logError:r.error}}async getYears(e){if(!e)return{error:"error_generic GetBikeYears",success:!1};const t=this.getEndpoint("bikeSpecYears"),r=await this.makeRequest(t,{params:{bikeModelSpecId:e}});return r.success?{data:r.data,success:r.success}:{error:"error_generic GetBikeYears",success:!1,logError:r.success}}async getFrameSizes(e,t,r){if(!e||!t)return{success:!1,error:"error_generic GetFrameSizes"};const n=this.getEndpoint("bikeSpecSizes"),s=await this.makeRequest(n,{params:{bikeModelSpecId:e,bikeSpec:t,year:r}});return s.success?{data:s.data,success:s.success}:{success:s.success,error:"error_generic GetFrameSizes",logError:s.error}}async getBikes(e,t,r){if(e&&(t||r)){const n=this.getEndpoint("bikeSpecs"),s=await this.makeRequest(n,{params:{bikeModelSpecId:e,bikeSpec:t,year:r}});return s.success?{data:s.data,success:s.success}:{success:s.success,error:"error_generic GetBikes",logError:s.error}}else return{success:!1,error:"error_generic GetBikes"}}async getBrandProductCategories(e){if(e){const t=this.getEndpoint("bikeBrandProductCategories"),r=await this.makeRequest(t,{params:{bikeBrandId:e}});return r.success?{data:r.data,success:!0}:(console.error(r.error),{success:!1,error:"error_generic GetBrandProductCategories",logError:r.error})}else return{success:!1,error:"error_generic GetBrandProductCategories"}}async checkSkuCompatibility(e,t,r,n,s){if(e&&t){const o=this.getEndpoint("checkSku")+`/${e}/${t}/${r}`,a={"bm-caller":n};s&&(a["bm-collection-handle"]=s);const l=await this.makeRequest(o,{headers:a});return l.success?{success:l.success,data:l.data}:{success:l.success,error:"error_generic CheckSkuCompatibility",logError:l.error}}else return{success:!1,error:"error_generic CheckSkuCompatibility"}}async checkSkusCompatibility(e,t,r,n,s){if(e&&t){const o=this.getEndpoint("checkSkus")+`/${e}/${t}/${r}`,a={"bm-caller":n};s&&(a["bm-collection-handle"]=s);const l=await this.makeRequest(o,{headers:a});return l.success?{data:l.data,success:l.success,logError:l.error}:{success:l.success,error:"error_generic CheckSkusCompatibility",logError:l.error}}else return{success:!1,error:"error_generic CheckSkusCompatibility"}}async checkSkusCompatibilityWithResults(e,t,r,n,s,o={}){if(e&&t){const a=this.getEndpoint("checkSkusWithResults")+`/${e}/${r}`,l={"Content-Type":"application/json","bm-caller":n};s&&(l["bm-collection-handle"]=s);const u=await this.makeRequest(a,{body:JSON.stringify(t),method:"POST",headers:l,...o});return u.success?{data:u.data,success:u.success}:{success:u.success,error:"error_compatiblelist",logError:u.error}}else return{success:!1,error:"error_compatiblelist"}}async getActiveSubscription(e){if(this._apiType!=="shopify"){e({activeSubscription:!0});return}var t="activeSubscription";const r=await this.makeRequest(t);if(!r.success){console.log(`getActiveSubscription Error: ${r.error}`);return}e(r.data)}async getBikeBom(e){if(!e)return{success:!1,error:"error_generic getBikeBom"};const t=this.getEndpoint("bikeBom"),r=await this.makeRequest(t,{params:{bikeKey:e}});return r.success?{data:r.data,success:r.success}:{success:r.success,error:"error_get_bike_bom",logError:r.error}}async addCustomBike(e){if(!e)return{success:!1,error:"error_generic addCustomBike"};const t=this.getEndpoint("customBike"),r=await this.makeRequest(t,{method:"POST",headers:{"Content-Type":"application/json"},params:{bikeKey:e}});return r.success?{data:r.data,success:r.success}:{success:r.success,error:"error_add_custom_bike",logError:r.error}}async findProducts(e,t){if(!e)return{success:!1,error:"error_generic findProducts"};const r=this.getEndpoint("findProducts"),n=await this.makeRequest(r,{params:{search:e,productCategoryId:t,recordCount:500}});return n.success?{data:n.data,success:n.success}:{success:n.success,error:"error_find_products",logError:n.error}}async addComponent(e,t,r,n){if(!e||!t||!r||!n)return{success:!1,error:"error_generic addComponent"};const s=this.getEndpoint("addComponent"),o=await this.makeRequest(s,{method:"POST",headers:{"Content-Type":"application/json"},params:{bikeKey:e,productCategoryId:t,productId:r,bikeFieldName:n}});return o.success?{data:o.data,success:o.success}:{success:o.success,error:"error_add_component",logError:o.error}}async removeComponent(e,t,r){if(!e||!t||!r)return{success:!1,error:"error_generic removeComponent"};const n=this.getEndpoint("removeComponent"),s=await this.makeRequest(n,{method:"POST",headers:{"Content-Type":"application/json"},params:{bikeKey:e,productCategoryId:t,bikeFieldName:r}});return s.success?{data:s.data,success:s.success}:{success:s.success,error:"error_remove_component",logError:s.error}}async revertComponent(e,t,r){if(!e||!t||!r)return{success:!1,error:"error_generic revertComponent"};const n=this.getEndpoint("revertComponent"),s=await this.makeRequest(n,{method:"POST",headers:{"Content-Type":"application/json"},params:{bikeKey:e,productCategoryId:t,bikeFieldName:r}});return s.success?{data:s.data,success:s.success}:{success:s.success,error:"error_revert_component",logError:s.error}}async saveCustomBike(e,t){if(!e||!t)return{success:!1,error:"error_generic saveCustomBike"};const r=this.getEndpoint("saveCustomBike"),n=await this.makeRequest(r,{method:"POST",headers:{"Content-Type":"application/json"},params:{bikeKey:e,email:t}});return n.success?{data:n.data,success:n.success}:{success:n.success,error:"error_save_custom_bike",logError:n.error}}async updateCustomBike(e,t){if(!e||!t)return{success:!1,error:"error_generic saveCustomBike"};const r=this.getEndpoint("updateCustomBike"),n=await this.makeRequest(r,{method:"POST",headers:{"Content-Type":"application/json"},params:{bikeKey:e,productCategoryId:t}});return n.success?{data:n.data,success:n.success}:{success:n.success,error:"error_update_custom_bike"}}async updateCustomBikeName(e,t){if(!e||!t)return{success:!1,error:"error_generic updateCustomBikeName"};const r=this.getEndpoint("updateCustomBikeName"),n=await this.makeRequest(r,{method:"POST",headers:{"Content-Type":"application/json"},params:{bikeKey:e,name:t}});return n.success?{data:n.data,success:n.success}:{success:n.success,error:"error_update_custom_bike_name",logError:n.error}}async raceControl(e,t){if(!e)return{success:!1,error:"error_generic raceControl"};const r=this.getEndpoint("raceControl"),n=await this.makeRequest(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t),params:{id:e}});return n.success?{data:n.data,success:n.success}:{success:n.success,error:"error_generic raceControl",logError:n.error}}async makeRequest(e,t={}){const r=new URL(e,this._apiUrl),n={"Cache-Control":"no-cache",...this._apiKey&&{"bm-subscription-key":this._apiKey},...this._apiToken&&{"bm-app-token":this._apiToken},"bm-sdk-version":"1.3.13","bm-url":window.location.href,"bm-page-load-correlation-id":dp,"bm-window-correlation-id":this._requestCorrelationId,"x-diagnostic-r":this.getDiagnosticHeaderValue()};typeof t.params=="object"&&(Object.keys(t.params).forEach(o=>{t.params[o]&&r.searchParams.set(o,t.params[o])}),delete t.params);let s;try{const o={...n,...t.headers||{}},a={...t,headers:o};t.signal&&(a.signal=t.signal);const l=await fetch(r==null?void 0:r.href,a),u=await l.json().catch(()=>{throw new Error("Request failed: "+(l.statusText||"Status"+l.status))});u.status===400||u.statusCode===404?s={success:!1,data:u}:s={success:!0,data:u}}catch(o){s={success:!1,error:o.message}}return s}}async function Ba(i,e){var f;const{categories:t,collections:r,apiUrl:n,apiKey:s,apiToken:o,isShopify:a,logLevel:l}=window.BikeMatrix.getConfig(),u=JSON.parse(sessionStorage.getItem("bm_categories")||"null"),c=JSON.parse(localStorage.getItem(Gn)||"null"),d=new De(n,s,o,a);let h=[];if(l==="verbose"&&console.log("useCompatibleCollections sessionCollections",u),!u||!(u!=null&&u.collections)||!(u!=null&&u.collections.length)||(u==null?void 0:u.key)!==(c==null?void 0:c.key)||(u==null?void 0:u.language)!==e){l==="verbose"&&console.log("useCompatibleCollections fetching new collections");const m=await d.getBrandProductCategories(i);if(l==="verbose"&&console.log("useCompatibleCollections bikeBrandProductCategories",m),!m.success)return console.log(m),l==="verbose"&&console.error(m.error),h={error:m.error},h;if(l==="verbose"&&(console.log("useCompatibleCollections categories",t),console.log("useCompatibleCollections collections",r)),((f=m.data)==null?void 0:f.length)>0){let b=t.filter(w=>{var v;return!!w.collection&&((v=m==null?void 0:m.data)==null?void 0:v.some(g=>g.product_Category.toLowerCase()===w.title.toLowerCase()))});l==="verbose"&&console.log("useCompatibleCollections availableCategories",b),h=b.map(w=>w.collection.split(",").map(g=>g.trim().toLowerCase()).map(g=>r.find(x=>x.title.toLowerCase()===g)).filter(g=>g!==void 0).map(g=>({title:g.title,text_id:w.text_id,handle:g.handle,url:g.url}))).flat(),l==="verbose"&&console.log("useCompatibleCollections compatibleCollections",h),h=h==null?void 0:h.filter((w,v,g)=>v===g.findIndex(x=>x.title===w.title&&x.text_id===w.text_id&&x.handle===w.handle&&x.url===w.url))}sessionStorage.setItem("bm_categories",JSON.stringify({key:c==null?void 0:c.key,collections:h,language:e})),l==="verbose"&&console.log("useCompatibleCollections fetched collections",h)}else l==="verbose"&&console.log("useCompatibleCollections using session collections"),h=u.collections;return h}const W=i=>typeof i=="string",Qr=()=>{let i,e;const t=new Promise((r,n)=>{i=r,e=n});return t.resolve=i,t.reject=e,t},La=i=>i==null?"":String(i),hp=(i,e,t)=>{i.forEach(r=>{e[r]&&(t[r]=e[r])})},gp=/###/g,Ta=i=>i&&i.includes("###")?i.replace(gp,"."):i,Fa=i=>!i||W(i),ei=(i,e,t)=>{const r=W(e)?e.split("."):e;let n=0;for(;n<r.length-1;){if(Fa(i))return{};const s=Ta(r[n]);!i[s]&&t&&(i[s]=new t),Object.prototype.hasOwnProperty.call(i,s)?i=i[s]:i={},++n}return Fa(i)?{}:{obj:i,k:Ta(r[n])}},Na=(i,e,t)=>{const{obj:r,k:n}=ei(i,e,Object);if(r!==void 0||e.length===1){r[n]=t;return}let s=e[e.length-1],o=e.slice(0,e.length-1),a=ei(i,o,Object);for(;a.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),a=ei(i,o,Object),a!=null&&a.obj&&typeof a.obj[`${a.k}.${s}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=t},mp=(i,e,t,r)=>{const{obj:n,k:s}=ei(i,e,Object);n[s]=n[s]||[],n[s].push(t)},$i=(i,e)=>{const{obj:t,k:r}=ei(i,e);if(t&&Object.prototype.hasOwnProperty.call(t,r))return t[r]},bp=(i,e,t)=>{const r=$i(i,t);return r!==void 0?r:$i(e,t)},Ma=(i,e,t)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in i?W(i[r])||i[r]instanceof String||W(e[r])||e[r]instanceof String?t&&(i[r]=e[r]):Ma(i[r],e[r],t):i[r]=e[r]);return i},vt=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),vp={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},wp=i=>W(i)?i.replace(/[&<>"'\/]/g,e=>vp[e]):i;class xp{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const _p=[" ",",","?","!",";"],yp=new xp(20),Cp=(i,e,t)=>{e=e||"",t=t||"";const r=_p.filter(o=>!e.includes(o)&&!t.includes(o));if(r.length===0)return!0;const n=yp.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!n.test(i);if(!s){const o=i.indexOf(t);o>0&&!n.test(i.substring(0,o))&&(s=!0)}return s},Kn=(i,e,t=".")=>{if(!i)return;if(i[e])return Object.prototype.hasOwnProperty.call(i,e)?i[e]:void 0;const r=e.split(t);let n=i;for(let s=0;s<r.length;){if(!n||typeof n!="object")return;let o,a="";for(let l=s;l<r.length;++l)if(l!==s&&(a+=t),a+=r[l],o=n[a],o!==void 0){if(["string","number","boolean"].includes(typeof o)&&l<r.length-1)continue;s+=l-s+1;break}n=o}return n},ti=i=>i==null?void 0:i.replace(/_/g,"-"),kp={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,e){var t,r;(r=(t=console==null?void 0:console[i])==null?void 0:t.apply)==null||r.call(t,console,e)}};class Vi{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||kp,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:(e=e.map(s=>W(s)?s.replace(/[\r\n\x00-\x1F\x7F]/g," "):s),W(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Vi(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Vi(this.logger,e)}}var nt=new Vi;class ji{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const n=this.observers[r].get(t)||0;this.observers[r].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){const r=(...n)=>{t(...n),this.off(e,r)};return this.on(e,r),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([n,s])=>{for(let o=0;o<s;o++)n(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,s])=>{for(let o=0;o<s;o++)n(e,...t)})}}class Pa extends ji{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r,n={}){var u,c;const s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,o=n.ignoreJSONStructure!==void 0?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.includes(".")?a=e.split("."):(a=[e,t],r&&(Array.isArray(r)?a.push(...r):W(r)&&s?a.push(...r.split(s)):a.push(r)));const l=$i(this.data,a);return!l&&!t&&!r&&e.includes(".")&&(e=a[0],t=a[1],r=a.slice(2).join(".")),l||!o||!W(r)?l:Kn((c=(u=this.data)==null?void 0:u[e])==null?void 0:c[t],r,s)}addResource(e,t,r,n,s={silent:!1}){const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let a=[e,t];r&&(a=a.concat(o?r.split(o):r)),e.includes(".")&&(a=e.split("."),n=t,t=a[1]),this.addNamespaces(t),Na(this.data,a,n),s.silent||this.emit("added",e,t,r,n)}addResources(e,t,r,n={silent:!1}){for(const s in r)(W(r[s])||Array.isArray(r[s]))&&this.addResource(e,t,s,r[s],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,s,o={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(a=e.split("."),n=r,r=t,t=a[1]),this.addNamespaces(t);let l=$i(this.data,a)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?Ma(l,r,s):l={...l,...r},Na(this.data,a,l),o.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(n=>t[n]&&Object.keys(t[n]).length>0)}toJSON(){return this.data}}var Oa={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,e,t,r,n){return i.forEach(s=>{var o;e=((o=this.processors[s])==null?void 0:o.process(e,t,r,n))??e}),e}};const Ia=Symbol("i18next/PATH_KEY");function Dp(){const i=[],e=Object.create(null);let t;return e.get=(r,n)=>{var s;return(s=t==null?void 0:t.revoke)==null||s.call(t),n===Ia?i:(i.push(n),t=Proxy.revocable(r,e),t.proxy)},Proxy.revocable(Object.create(null),e).proxy}function yr(i,e){const{[Ia]:t}=i(Dp()),r=(e==null?void 0:e.keySeparator)??".",n=(e==null?void 0:e.nsSeparator)??":";if(t.length>1&&n){const s=e==null?void 0:e.ns,o=Array.isArray(s)?s:null;if(o&&o.length>1&&o.slice(1).includes(t[0]))return`${t[0]}${n}${t.slice(1).join(r)}`}return t.join(r)}const Zn=i=>!W(i)&&typeof i!="boolean"&&typeof i!="number";class Ui extends ji{constructor(e,t={}){super(),hp(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=nt.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const r={...t};if(e==null)return!1;const n=this.resolve(e,r);if((n==null?void 0:n.res)===void 0)return!1;const s=Zn(n.res);return!(r.returnObjects===!1&&s)}extractFromKey(e,t){let r=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const n=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let s=t.ns||this.options.defaultNS||[];const o=r&&e.includes(r),a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Cp(e,r,n);if(o&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:W(s)?[s]:s};const u=e.split(r);(r!==n||r===n&&this.options.ns.includes(u[0]))&&(s=u.shift()),e=u.join(n)}return{key:e,namespaces:W(s)?[s]:s}}translate(e,t,r){let n=typeof t=="object"?{...t}:t;if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";typeof e=="function"&&(e=yr(e,{...this.options,...n})),Array.isArray(e)||(e=[String(e)]),e=e.map(F=>typeof F=="function"?yr(F,{...this.options,...n}):String(F));const s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(e[e.length-1],n),u=l[l.length-1];let c=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const d=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((d==null?void 0:d.toLowerCase())==="cimode")return h?s?{res:`${u}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${c}${a}`:s?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:a;const f=this.resolve(e,n);let m=f==null?void 0:f.res;const b=(f==null?void 0:f.usedKey)||a,w=(f==null?void 0:f.exactUsedKey)||a,v=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,_=n.count!==void 0&&!W(n.count),y=Ui.hasDefaultValue(n),k=_?this.pluralResolver.getSuffix(d,n.count,n):"",A=n.ordinal&&_?this.pluralResolver.getSuffix(d,n.count,{ordinal:!1}):"",C=_&&!n.ordinal&&n.count===0,D=C&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${k}`]||n[`defaultValue${A}`]||n.defaultValue;let S=m;x&&!m&&y&&(S=D);const T=Zn(S),L=Object.prototype.toString.apply(S);if(x&&S&&T&&!v.includes(L)&&!(W(g)&&Array.isArray(S))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,S,{...n,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return s?(f.res=F,f.usedParams=this.getUsedParamsDetails(n),f):F}if(o){const F=Array.isArray(S),M=F?[]:{},N=F?w:b;for(const q in S)if(Object.prototype.hasOwnProperty.call(S,q)){const P=`${N}${o}${q}`;y&&!m?M[q]=this.translate(P,{...n,defaultValue:Zn(D)?D[q]:void 0,joinArrays:!1,ns:l}):M[q]=this.translate(P,{...n,joinArrays:!1,ns:l}),M[q]===P&&(M[q]=S[q])}m=M}}else if(x&&W(g)&&Array.isArray(m))m=m.join(g),m&&(m=this.extendTranslation(m,e,n,r));else{let F=!1,M=!1;!this.isValidLookup(m)&&y&&(F=!0,m=D),this.isValidLookup(m)||(M=!0,m=a);const q=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&M?void 0:m,P=y&&D!==m&&this.options.updateMissing;if(M||F||P){if(this.logger.log(P?"updateKey":"missingKey",d,u,a,P?D:m),o){const V=this.resolve(a,{...n,keySeparator:!1});V&&V.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let E=[];const B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&B&&B[0])for(let V=0;V<B.length;V++)E.push(B[V]);else this.options.saveMissingTo==="all"?E=this.languageUtils.toResolveHierarchy(n.lng||this.language):E.push(n.lng||this.language);const R=(V,j,H)=>{var pe;const ae=y&&H!==m?H:q;this.options.missingKeyHandler?this.options.missingKeyHandler(V,u,j,ae,P,n):(pe=this.backendConnector)!=null&&pe.saveMissing&&this.backendConnector.saveMissing(V,u,j,ae,P,n),this.emit("missingKey",V,u,j,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?E.forEach(V=>{const j=this.pluralResolver.getSuffixes(V,n);C&&n[`defaultValue${this.options.pluralSeparator}zero`]&&!j.includes(`${this.options.pluralSeparator}zero`)&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(H=>{R([V],a+H,n[`defaultValue${H}`]||D)})}):R(E,a,D))}m=this.extendTranslation(m,e,n,f,r),M&&m===a&&this.options.appendNamespaceToMissingKey&&(m=`${u}${c}${a}`),(M||F)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${a}`:a,F?m:void 0,n))}return s?(f.res=m,f.usedParams=this.getUsedParamsDetails(n),f):m}extendTranslation(e,t,r,n,s){var l,u;if((l=this.i18nFormat)!=null&&l.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const c=W(e)&&(((u=r==null?void 0:r.interpolation)==null?void 0:u.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(c){const f=e.match(this.interpolator.nestingRegexp);d=f&&f.length}let h=r.replace&&!W(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,r.lng||this.language||n.usedLng,r),c){const f=e.match(this.interpolator.nestingRegexp),m=f&&f.length;d<m&&(r.nest=!1)}!r.lng&&n&&n.res&&(r.lng=this.language||n.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,(...f)=>(s==null?void 0:s[0])===f[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`),null):this.translate(...f,t),r)),r.interpolation&&this.interpolator.reset()}const o=r.postProcess||this.options.postProcess,a=W(o)?[o]:o;return e!=null&&(a!=null&&a.length)&&r.applyPostProcessor!==!1&&(e=Oa.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e,t={}){let r,n,s,o,a;return W(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(l=>typeof l=="function"?yr(l,{...this.options,...t}):l)),e.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,t),c=u.key;n=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const h=t.count!==void 0&&!W(t.count),f=h&&!t.ordinal&&t.count===0,m=t.context!==void 0&&(W(t.context)||typeof t.context=="number")&&t.context!=="",b=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);d.forEach(w=>{var v,g;this.isValidLookup(r)||(a=w,!this.checkedLoadedFor[`${b[0]}-${w}`]&&((v=this.utils)!=null&&v.hasLoadedNamespace)&&!((g=this.utils)!=null&&g.hasLoadedNamespace(a))&&(this.checkedLoadedFor[`${b[0]}-${w}`]=!0,this.logger.warn(`key "${n}" for languages "${b.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(x=>{var k;if(this.isValidLookup(r))return;o=x;const _=[c];if((k=this.i18nFormat)!=null&&k.addLookupKeys)this.i18nFormat.addLookupKeys(_,c,x,w,t);else{let A;h&&(A=this.pluralResolver.getSuffix(x,t.count,t));const C=`${this.options.pluralSeparator}zero`,D=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(t.ordinal&&A.startsWith(D)&&_.push(c+A.replace(D,this.options.pluralSeparator)),_.push(c+A),f&&_.push(c+C)),m){const S=`${c}${this.options.contextSeparator||"_"}${t.context}`;_.push(S),h&&(t.ordinal&&A.startsWith(D)&&_.push(S+A.replace(D,this.options.pluralSeparator)),_.push(S+A),f&&_.push(S+C))}}let y;for(;y=_.pop();)this.isValidLookup(r)||(s=y,r=this.getResource(x,w,y,t))}))})}),{res:r,usedKey:n,exactUsedKey:s,usedLng:o,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,r,n={}){var s;return(s=this.i18nFormat)!=null&&s.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!W(e.replace);let n=r?e.replace:e;if(r&&typeof e.count<"u"&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!r){n={...n};for(const s of t)delete n[s]}return n}static hasDefaultValue(e){const t="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&r.startsWith(t)&&e[r]!==void 0)return!0;return!1}}class Ra{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nt.create("languageUtils")}getScriptPartFromCode(e){if(e=ti(e),!e||!e.includes("-"))return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=ti(e),!e||!e.includes("-"))return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(W(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(r=>{if(t)return;const n=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(r=>{if(t)return;const n=this.getScriptPartFromCode(r);if(this.isSupportedCode(n))return t=n;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return t=s;t=this.options.supportedLngs.find(o=>o===s?!0:!o.includes("-")&&!s.includes("-")?!1:!!(o.includes("-")&&!s.includes("-")&&o.slice(0,o.indexOf("-"))===s||o.startsWith(s)&&s.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),W(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),n=[],s=o=>{o&&(this.isSupportedCode(o)?n.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return W(e)&&(e.includes("-")||e.includes("_"))?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):W(e)&&s(this.formatLanguageCode(e)),r.forEach(o=>{n.includes(o)||s(this.formatLanguageCode(o))}),n}}const za={zero:0,one:1,two:2,few:3,many:4,other:5},qa={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ap{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=nt.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const r=ti(e==="dev"?"en":e),n=t.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:n});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let o;try{o=new Intl.PluralRules(r,{type:n})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),qa;if(!e.match(/-|_/))return qa;const l=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(l,t)}return this.pluralRulesCache[s]=o,o}needsPlural(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(n=>`${t}${n}`)}getSuffixes(e,t={}){let r=this.getRule(e,t);return r||(r=this.getRule("dev",t)),r?r.resolvedOptions().pluralCategories.sort((n,s)=>za[n]-za[s]).map(n=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${n}`):[]}getSuffix(e,t,r={}){const n=this.getRule(e,r);return n?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,r))}}const $a=(i,e,t,r=".",n=!0)=>{let s=bp(i,e,t);return!s&&n&&W(t)&&(s=Kn(i,t,r),s===void 0&&(s=Kn(e,t,r))),s},Xn=i=>i.replace(/\$/g,"$$$$");class Va{constructor(e={}){var t;this.logger=nt.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||(r=>r),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:s,prefixEscaped:o,suffix:a,suffixEscaped:l,formatSeparator:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:h,nestingPrefixEscaped:f,nestingSuffix:m,nestingSuffixEscaped:b,nestingOptionsSeparator:w,maxReplaces:v,alwaysFormat:g}=e.interpolation;this.escape=t!==void 0?t:wp,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=n!==void 0?n:!1,this.prefix=s?vt(s):o||"{{",this.suffix=a?vt(a):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d?vt(d):"-",this.unescapeSuffix=this.unescapePrefix?"":c?vt(c):"",this.nestingPrefix=h?vt(h):f||vt("$t("),this.nestingSuffix=m?vt(m):b||vt(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=v||1e3,this.alwaysFormat=g!==void 0?g:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,r)=>(t==null?void 0:t.source)===r?(t.lastIndex=0,t):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,r,n){var f;let s,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=m=>{if(!m.includes(this.formatSeparator)){const g=$a(t,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,r,{...n,...t,interpolationkey:m}):g}const b=m.split(this.formatSeparator),w=b.shift().trim(),v=b.join(this.formatSeparator).trim();return this.format($a(t,l,w,this.options.keySeparator,this.options.ignoreJSONStructure),v,r,{...n,...t,interpolationkey:w})};this.resetRegExp(),!this.escapeValue&&typeof e=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const c=(n==null?void 0:n.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=((f=n==null?void 0:n.interpolation)==null?void 0:f.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>Xn(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?Xn(this.escape(m)):Xn(m)}].forEach(m=>{for(a=0;s=m.regex.exec(e);){const b=s[1].trim();if(o=u(b),o===void 0)if(typeof c=="function"){const v=c(e,s,n);o=W(v)?v:""}else if(n&&Object.prototype.hasOwnProperty.call(n,b))o="";else if(d){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${e}`),o="";else!W(o)&&!this.useRawValueToEscape&&(o=La(o));const w=m.safeValue(o);if(e=e.replace(s[0],w),d?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=s[0].length):m.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t,r={}){let n,s,o;const a=(l,u)=>{const c=this.nestingOptionsSeparator;if(!l.includes(c))return l;const d=l.split(new RegExp(`${vt(c)}[ ]*{`));let h=`{${d[1]}`;l=d[0],h=this.interpolate(h,o);const f=h.match(/'/g),m=h.match(/"/g);(((f==null?void 0:f.length)??0)%2===0&&!m||((m==null?void 0:m.length)??0)%2!==0)&&(h=h.replace(/'/g,'"'));try{o=JSON.parse(h),u&&(o={...u,...o})}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,b),`${l}${c}${h}`}return o.defaultValue&&o.defaultValue.includes(this.prefix)&&delete o.defaultValue,l};for(;n=this.nestingRegexp.exec(e);){let l=[];o={...r},o=o.replace&&!W(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;const u=/{.*}/.test(n[1])?n[1].lastIndexOf("}")+1:n[1].indexOf(this.formatSeparator);if(u!==-1&&(l=n[1].slice(u).split(this.formatSeparator).map(c=>c.trim()).filter(Boolean),n[1]=n[1].slice(0,u)),s=t(a.call(this,n[1].trim(),o),o),s&&n[0]===e&&!W(s))return s;W(s)||(s=La(s)),s||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),s=""),l.length&&(s=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:n[1].trim()}),s.trim())),e=e.replace(n[0],s),this.regexp.lastIndex=0}return e}}const Sp=i=>{let e=i.toLowerCase().trim();const t={};if(i.includes("(")){const r=i.split("(");e=r[0].toLowerCase().trim();const n=r[1].slice(0,-1);e==="currency"&&!n.includes(":")?t.currency||(t.currency=n.trim()):e==="relativetime"&&!n.includes(":")?t.range||(t.range=n.trim()):n.split(";").forEach(o=>{if(o){const[a,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();t[c]||(t[c]=u),u==="false"&&(t[c]=!1),u==="true"&&(t[c]=!0),isNaN(u)||(t[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:t}},ja=i=>{const e={};return(t,r,n)=>{let s=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(s={...s,[n.interpolationkey]:void 0});const o=r+JSON.stringify(s);let a=e[o];return a||(a=i(ti(r),n),e[o]=a),a(t)}},Ep=i=>(e,t,r)=>i(ti(t),r)(e);class Bp{constructor(e={}){this.logger=nt.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const r=t.cacheInBuiltFormats?ja:Ep;this.formats={number:r((n,s)=>{const o=new Intl.NumberFormat(n,{...s});return a=>o.format(a)}),currency:r((n,s)=>{const o=new Intl.NumberFormat(n,{...s,style:"currency"});return a=>o.format(a)}),datetime:r((n,s)=>{const o=new Intl.DateTimeFormat(n,{...s});return a=>o.format(a)}),relativetime:r((n,s)=>{const o=new Intl.RelativeTimeFormat(n,{...s});return a=>o.format(a,s.range||"day")}),list:r((n,s)=>{const o=new Intl.ListFormat(n,{...s});return a=>o.format(a)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=ja(t)}format(e,t,r,n={}){if(!t||e==null)return e;const s=t.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&!s[0].includes(")")&&s.find(a=>a.includes(")"))){const a=s.findIndex(l=>l.includes(")"));s[0]=[s[0],...s.splice(1,a)].join(this.formatSeparator)}return s.reduce((a,l)=>{var d;const{formatName:u,formatOptions:c}=Sp(l);if(this.formats[u]){let h=a;try{const f=((d=n==null?void 0:n.formatParams)==null?void 0:d[n.interpolationkey])||{},m=f.locale||f.lng||n.locale||n.lng||r;h=this.formats[u](a,m,{...c,...n,...f})}catch(f){this.logger.warn(f)}return h}else this.logger.warn(`there was no format function for ${u}`);return a},e)}}const Lp=(i,e)=>{i.pending[e]!==void 0&&(delete i.pending[e],i.pendingCount--)};class Tp extends ji{constructor(e,t,r,n={}){var s,o;super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=nt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],(o=(s=this.backend)==null?void 0:s.init)==null||o.call(s,r,n.backend,n)}queueLoad(e,t,r,n){const s={},o={},a={},l={};return e.forEach(u=>{let c=!0;t.forEach(d=>{const h=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?o[h]===void 0&&(o[h]=!0):(this.state[h]=1,c=!1,o[h]===void 0&&(o[h]=!0),s[h]===void 0&&(s[h]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,t,r){const n=e.split("|"),s=n[0],o=n[1];t&&this.emit("failedLoading",s,o,t),!t&&r&&this.store.addResourceBundle(s,o,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const a={};this.queue.forEach(l=>{mp(l.loaded,[s],o),Lp(l,e),t&&l.errors.push(t),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,t,r,n=0,s=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:s,callback:o});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&n<this.maxRetries){setTimeout(()=>{this.read(e,t,r,n+1,s*2,o)},s);return}o(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(e,t);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(e,t,a)}prepareLoading(e,t,r={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();W(e)&&(e=this.languageUtils.toResolveHierarchy(e)),W(t)&&(t=[t]);const s=this.queueLoad(e,t,r,n);if(!s.toLoad.length)return s.pending.length||n(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e,t=""){const r=e.split("|"),n=r[0],s=r[1];this.read(n,s,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${t}loading namespace ${s} for language ${n} failed`,o),!o&&a&&this.logger.log(`${t}loaded namespace ${s} for language ${n}`,a),this.loaded(e,o,a)})}saveMissing(e,t,r,n,s,o={},a=()=>{}){var l,u,c,d,h;if((u=(l=this.services)==null?void 0:l.utils)!=null&&u.hasLoadedNamespace&&!((d=(c=this.services)==null?void 0:c.utils)!=null&&d.hasLoadedNamespace(t))){this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((h=this.backend)!=null&&h.create){const f={...o,isUpdate:s},m=this.backend.create.bind(this.backend);if(m.length<6)try{let b;m.length===5?b=m(e,t,r,n,f):b=m(e,t,r,n),b&&typeof b.then=="function"?b.then(w=>a(null,w)).catch(a):a(null,b)}catch(b){a(b)}else m(e,t,r,n,a,f)}!e||!e[0]||this.store.addResource(e[0],t,r,n)}}}const Jn=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:i=>{let e={};if(typeof i[1]=="object"&&(e=i[1]),W(i[1])&&(e.defaultValue=i[1]),W(i[2])&&(e.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const t=i[3]||i[2];Object.keys(t).forEach(r=>{e[r]=t[r]})}return e},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Ua=i=>(W(i.ns)&&(i.ns=[i.ns]),W(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),W(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),i.supportedLngs&&!i.supportedLngs.includes("cimode")&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),i),Hi=()=>{},Fp=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(t=>{typeof i[t]=="function"&&(i[t]=i[t].bind(i))})};class ri extends ji{constructor(e={},t){if(super(),this.options=Ua(e),this.services={},this.logger=nt,this.modules={external:[]},Fp(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e=="function"&&(t=e,e={}),e.defaultNS==null&&e.ns&&(W(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));const r=Jn();this.options={...r,...this.options,...Ua(e)},this.options.interpolation={...r.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const n=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?nt.init(n(this.modules.logger),this.options):nt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=Bp;const c=new Ra(this.options);this.store=new Pa(this.options.resources,this.options);const d=this.services;d.logger=nt,d.resourceStore=this.store,d.languageUtils=c,d.pluralResolver=new Ap(c,{prepend:this.options.pluralSeparator}),u&&(d.formatter=n(u),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Va(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new Tp(n(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(h,...f)=>{this.emit(h,...f)}),this.modules.languageDetector&&(d.languageDetector=n(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=n(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new Ui(this.services,this.options),this.translator.on("*",(h,...f)=>{this.emit(h,...f)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Hi),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...c)=>this.store[u](...c)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...c)=>(this.store[u](...c),this)});const a=Qr(),l=()=>{const u=(c,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(d),t(c,d)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),a}loadResources(e,t=Hi){var s,o;let r=t;const n=W(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if((n==null?void 0:n.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const a=[],l=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(d=>{d!=="cimode"&&(a.includes(d)||a.push(d))})};n?l(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>l(c)),(o=(s=this.options.preload)==null?void 0:s.forEach)==null||o.call(s,u=>l(u)),this.services.backendConnector.load(a,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(e,t,r){const n=Qr();return typeof e=="function"&&(r=e,e=void 0),typeof t=="function"&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=Hi),this.services.backendConnector.reload(e,t,s=>{n.resolve(),r(s)}),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&Oa.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!["cimode","dev"].includes(e)){for(let t=0;t<this.languages.length;t++){const r=this.languages[t];if(!["cimode","dev"].includes(r)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const r=Qr();this.emit("languageChanging",e);const n=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},s=(a,l)=>{l?this.isLanguageChangingTo===e&&(n(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...u)=>this.t(...u)),t&&t(a,(...u)=>this.t(...u))},o=a=>{var c,d;!e&&!a&&this.services.languageDetector&&(a=[]);const l=W(a)?a:a&&a[0],u=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(W(a)?[a]:a);u&&(this.language||n(u),this.translator.language||this.translator.changeLanguage(u),(d=(c=this.services.languageDetector)==null?void 0:c.cacheUserLanguage)==null||d.call(c,u)),this.loadResources(u,h=>{s(h,u)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,r){const n=(s,o,...a)=>{let l;typeof o!="object"?l=this.options.overloadTranslationOptionHandler([s,o].concat(a)):l={...o},l.lng=l.lng||n.lng,l.lngs=l.lngs||n.lngs,l.ns=l.ns||n.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||r||n.keyPrefix);const u={...this.options,...l};typeof l.keyPrefix=="function"&&(l.keyPrefix=yr(l.keyPrefix,u));const c=this.options.keySeparator||".";let d;return l.keyPrefix&&Array.isArray(s)?d=s.map(h=>(typeof h=="function"&&(h=yr(h,u)),`${l.keyPrefix}${c}${h}`)):(typeof s=="function"&&(s=yr(s,u)),d=l.keyPrefix?`${l.keyPrefix}${c}${s}`:s),this.t(d,l)};return W(e)?n.lng=e:n.lngs=e,n.ns=t,n.keyPrefix=r,n}t(...e){var t;return(t=this.translator)==null?void 0:t.translate(...e)}exists(...e){var t;return(t=this.translator)==null?void 0:t.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],n=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===0||u===2};if(t.precheck){const a=t.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,e)&&(!n||o(s,e)))}loadNamespaces(e,t){const r=Qr();return this.options.ns?(W(e)&&(e=[e]),e.forEach(n=>{this.options.ns.includes(n)||this.options.ns.push(n)}),this.loadResources(n=>{r.resolve(),t&&t(n)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=Qr();W(e)&&(e=[e]);const n=this.options.preload||[],s=e.filter(o=>!n.includes(o)&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=n.concat(s),this.loadResources(o=>{r.resolve(),t&&t(o)}),r):(t&&t(),Promise.resolve())}dir(e){var n,s;if(e||(e=this.resolvedLanguage||(((n=this.languages)==null?void 0:n.length)>0?this.languages[0]:this.language)),!e)return"rtl";try{const o=new Intl.Locale(e);if(o&&o.getTextInfo){const a=o.getTextInfo();if(a&&a.direction)return a.direction}}catch{}const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((s=this.services)==null?void 0:s.languageUtils)||new Ra(Jn());return e.toLowerCase().indexOf("-latn")>1?"ltr":t.includes(r.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){const r=new ri(e,t);return r.createInstance=ri.createInstance,r}cloneInstance(e={},t=Hi){const r=e.forkResourceStore;r&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},s=new ri(n);if((e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(a=>{s[a]=this[a]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const a=Object.keys(this.store.data).reduce((l,u)=>(l[u]={...this.store.data[u]},l[u]=Object.keys(l[u]).reduce((c,d)=>(c[d]={...l[u][d]},c),l[u]),l),{});s.store=new Pa(a,n),s.services.resourceStore=s.store}if(e.interpolation){const l={...Jn().interpolation,...this.options.interpolation,...e.interpolation},u={...n,interpolation:l};s.services.interpolator=new Va(u)}return s.translator=new Ui(s.services,n),s.translator.on("*",(a,...l)=>{s.emit(a,...l)}),s.init(n,t),s.translator.options=n,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const he=ri.createInstance();he.createInstance,he.dir,he.init,he.loadResources,he.reloadResources,he.use,he.changeLanguage,he.getFixedT,he.t,he.exists,he.setDefaultNamespace,he.hasLoadedNamespace,he.loadNamespaces,he.loadLanguages;const{slice:Np,forEach:Mp}=[];function Pp(i){return Mp.call(Np.call(arguments,1),e=>{if(e)for(const t in e)i[t]===void 0&&(i[t]=e[t])}),i}function Op(i){return typeof i!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(t=>t.test(i))}const Ha=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Ip=function(i,e){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},n=encodeURIComponent(e);let s=`${i}=${n}`;if(r.maxAge>0){const o=r.maxAge-0;if(Number.isNaN(o))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(o)}`}if(r.domain){if(!Ha.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!Ha.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return s},Ga={create(i,e,t,r){let n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};t&&(n.expires=new Date,n.expires.setTime(n.expires.getTime()+t*60*1e3)),r&&(n.domain=r),document.cookie=Ip(i,encodeURIComponent(e),n)},read(i){const e=`${i}=`,t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r];for(;n.charAt(0)===" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return n.substring(e.length,n.length)}return null},remove(i){this.create(i,"",-1)}};var Rp={name:"cookie",lookup(i){let{lookupCookie:e}=i;if(e&&typeof document<"u")return Ga.read(e)||void 0},cacheUserLanguage(i,e){let{lookupCookie:t,cookieMinutes:r,cookieDomain:n,cookieOptions:s}=e;t&&typeof document<"u"&&Ga.create(t,i,r,n,s)}},zp={name:"querystring",lookup(i){var r;let{lookupQuerystring:e}=i,t;if(typeof window<"u"){let{search:n}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));const o=n.substring(1).split("&");for(let a=0;a<o.length;a++){const l=o[a].indexOf("=");l>0&&o[a].substring(0,l)===e&&(t=o[a].substring(l+1))}}return t}};let Cr=null;const Wa=()=>{if(Cr!==null)return Cr;try{if(Cr=typeof window<"u"&&window.localStorage!==null,!Cr)return!1;const i="i18next.translate.boo";window.localStorage.setItem(i,"foo"),window.localStorage.removeItem(i)}catch{Cr=!1}return Cr};var qp={name:"localStorage",lookup(i){let{lookupLocalStorage:e}=i;if(e&&Wa())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(i,e){let{lookupLocalStorage:t}=e;t&&Wa()&&window.localStorage.setItem(t,i)}};let kr=null;const Ya=()=>{if(kr!==null)return kr;try{if(kr=typeof window<"u"&&window.sessionStorage!==null,!kr)return!1;const i="i18next.translate.boo";window.sessionStorage.setItem(i,"foo"),window.sessionStorage.removeItem(i)}catch{kr=!1}return kr};var $p={name:"sessionStorage",lookup(i){let{lookupSessionStorage:e}=i;if(e&&Ya())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(i,e){let{lookupSessionStorage:t}=e;t&&Ya()&&window.sessionStorage.setItem(t,i)}},Vp={name:"navigator",lookup(i){const e=[];if(typeof navigator<"u"){const{languages:t,userLanguage:r,language:n}=navigator;if(t)for(let s=0;s<t.length;s++)e.push(t[s]);r&&e.push(r),n&&e.push(n)}return e.length>0?e:void 0}},jp={name:"htmlTag",lookup(i){let{htmlTag:e}=i,t;const r=e||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(t=r.getAttribute("lang")),t}},Up={name:"path",lookup(i){var n;let{lookupFromPathIndex:e}=i;if(typeof window>"u")return;const t=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(t)?(n=t[typeof e=="number"?e:0])==null?void 0:n.replace("/",""):void 0}},Hp={name:"subdomain",lookup(i){var n,s;let{lookupFromSubdomainIndex:e}=i;const t=typeof e=="number"?e+1:1,r=typeof window<"u"&&((s=(n=window.location)==null?void 0:n.hostname)==null?void 0:s.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[t]}};let Ka=!1;try{document.cookie,Ka=!0}catch{}const Za=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Ka||Za.splice(1,1);const Gp=()=>({order:Za,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:i=>i});class Xa{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=Pp(t,this.options||{},Gp()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=n=>n.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Rp),this.addDetector(zp),this.addDetector(qp),this.addDetector($p),this.addDetector(Vp),this.addDetector(jp),this.addDetector(Up),this.addDetector(Hp)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,t=[];return e.forEach(r=>{if(this.detectors[r]){let n=this.detectors[r].lookup(this.options);n&&typeof n=="string"&&(n=[n]),n&&(t=t.concat(n))}}),t=t.filter(r=>r!=null&&!Op(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(e,this.options)}))}}Xa.type="languageDetector";const Wp=Be(`bm_translation_${Td}.json`),Yp=async()=>{const i=await fetch(Wp,{mode:"cors",credentials:"omit"});if(!i.ok)throw new Error(`Failed to fetch translations: ${i.status}`);const e=await i.json(),t=Object.fromEntries(Object.entries(e).map(([r,n])=>[r,n]));return await he.use(Xa).use(vd).init({debug:!1,resources:t,supportedLngs:["en","en-GB","en-US","de","fr","es","it","nl","fi","pl"],fallbackLng:"en-GB",ns:["translation"],defaultNS:"translation",detection:{order:["htmlTag","querystring","cookie","localStorage","sessionStorage","navigator","path","subdomain"]},nonExplicitSupportedLngs:!0,interpolation:{escapeValue:!1}}),he},Ja=class ki{constructor(){this.initialized=!1,this.compatibleListInitialized=!1,this.currentBike=null,this.activeSubscription=null,this.components=[],this.config=xa}async initialize(e){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: initialize() called"),this.components=[],this.initialized&&this.cleanup(),e&&(this.config={...this.config,...e}),this.initializeConfig(),this.service=new De(this.config.apiUrl,this.config.apiKey,this.config.apiToken,this.config.isShopify),this.initializeActiveSubscription(),localStorage.bm_currentBike&&(this.currentBike=JSON.parse(localStorage.bm_currentBike)),await Yp(),(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log(`Core: Resolved Language: ${he.resolvedLanguage}`),this.setupEventListeners(),this.registerComponents(),this.initialized=!0,Hn.value=!0;const t=new Event("BM:Initialized");document.dispatchEvent(t),(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&(console.log("Core: BikeMatrix WebComponent Version: 1.3.13"),console.log("Core: BikeMatrixCore initialized"))}static getInstance(){return ki.instance||(ki.instance=new ki),ki.instance}registerComponents(){const e=["bikematrix-bikeselector","bikematrix-productresult","bikematrix-collectionresult","bikematrix-compatibilitylabel","bikematrix-compatiblelist","bikematrix-bikeselectorbanner","bikematrix-variantselector"];this.components=[],e.forEach(t=>{const r=document.getElementsByTagName(t);Array.from(r).forEach(n=>{this.components.push(n)})}),(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log(`Core: Registered ${this.components.length} components`)}resetComponents(){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: resetComponents() called"),this.components.forEach(e=>{var t;try{const r=e.cloneNode(!1);e.querySelectorAll("template").forEach(s=>{r.appendChild(s.cloneNode(!0))}),(t=e.parentNode)==null||t.replaceChild(r,e)}catch{console.error("Core: Error resetting component",e)}})}isInitialized(){return this.initialized}updateConfig(e){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: updateConfig() called"),this.config={...this.config,...e},this.reload(!1)}cleanup(){this.removeEventListeners(),Ed()}async destroy(){this.cleanup(),this.service=null,this.currentBike=null,this.activeSubscription=null,this.config={...xa},this.initialized=!1,Hn.value=!1,this.resetComponents()}updateCompatibleList(e=!0){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: updateCompatibleList showCompatibleList: ",e),this.config.showCompatibleList=e,this.initializeConfig(),e&&(Ee.value=!0,this.RefreshCompatibleSkus(!0)),this.compatibleListInitialized=!0}refresh(){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: refresh() called"),this.ChangeBike()}reset(){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: reset() called"),this.destroy(),this.initialize()}reload(e=!0){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: reload() called. shouldReloadConfig: ",e),e&&this.initializeConfig(),this.refresh(),this.registerComponents(),this.resetComponents()}initializeConfig(){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: initializeConfig called");const e=document.querySelectorAll('script[type="application/json"][data-bikematrix-config]'),t=JSON.parse(sessionStorage.getItem("bm_diagnostics"));e.forEach(r=>{if(r!=null&&r.textContent)try{this.config={...this.config,...JSON.parse(r.textContent)}}catch{console.error("Core: Invalid BikeMatrix configuration"),console.log("Core: configScript ",r.textContent)}}),this.config.showCompatibleList&&!this.config.delayCompatibleListInitialization?this.compatibleListInitialized=!0:this.config.showCompatibleList&&this.config.delayCompatibleListInitialization&&!this.compatibleListInitialized&&(Ee.value=!0),t!=null&&t.includes("verbose")?this.config.logLevel="verbose":t!=null&&t.includes("core")&&(this.config.logLevel="core"),t!=null&&t.includes("virtualWorkshop")&&(this.config.virtualWorkshop=!0),t!=null&&t.includes("subscribtion")&&(this.activeSubscription=!0),t!=null&&t.includes("all")&&(this.config.logLevel="verbose",this.config.virtualWorkshop=!0,this.activeSubscription=!0),this.config.logLevel==="verbose"&&console.log("initializeConfig ",JSON.stringify(this.config,null,2))}initializeActiveSubscription(){const e=sessionStorage.getItem("bm_activeSubscription");if((this.config.logLevel==="verbose"||this.config.logLevel==="core")&&(console.log("Core: Not Shopify: ",!this.config.isShopify),console.log("Core: Session Active Subscription: ",e),console.log("Core: Design Mode: ",this.config.designMode)),!this.config.isShopify){this.activeSubscription=!0;return}this.activeSubscription=this.config.designMode||e==="true",e||this.service.getActiveSubscription(this.updateActiveSubscription.bind(this))}setupEventListeners(){document.addEventListener("BikeMatrix:RefreshCompatibleSkus",e=>{this.RefreshCompatibleSkus().then(()=>{document.dispatchEvent(new Event("RefreshCompatibility",{bubbles:!0,composed:!0}))})}),document.addEventListener("on:facet-filters:updated",this.handleRefreshCompatibleSkus.bind(this)),document.addEventListener("BikeChanging",this.handleBikeChanging.bind(this))}removeEventListeners(){document.removeEventListener("BikeMatrix:RefreshCompatibleSkus",this.handleRefreshCompatibleSkus),document.removeEventListener("on:facet-filters:updated",this.handleRefreshCompatibleSkus),document.removeEventListener("BikeChanging",this.handleBikeChanging)}async handleRefreshCompatibleSkus(e){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: Listener RefreshCompatibleSkus ..."),this.RefreshCompatibleSkus().then(()=>{document.dispatchEvent(new Event("RefreshCompatibility",{bubbles:!0,composed:!0}))})}async handleBikeChanging(e){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: Listener BikeChanging (pre) ..."),this.ChangeBike()}getConfig(){return this.config}getActiveSubscription(){return this.activeSubscription}getCurrentBike(){return this.currentBike}updateSku(e){(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: updateSku() called with sku: ",e);const t=document.querySelector("bikematrix-productresult[data-sku]"),r=document.querySelector("bikematrix-variantselector[data-sku]");t&&t.setAttribute("data-sku",e),r&&r.setAttribute("data-sku",e),this.config.sku=e}ResetSelectedBikeIndicator(){var e,t;(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: ResetSelectedBikeIndicator() Method Called"),this.currentBike===null?(e=window.bm_selectBikeButton)==null||e.classList.remove("show-selected"):(t=window.bm_selectBikeButton)==null||t.classList.add("show-selected")}ChangeBike(){if((this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: ChangeBike() Method Called"),wr.value===!0||Je.value===!0){console.log("Core: ChangeBike loading, return");return}wr.value=!0,Ee.value=!0,Je.value=!0,vr.value=[],xr.value=[],(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: ChangeBike updateBikeSignal..."),this.updateBikeSignal().then(()=>{this.config.logLevel==="verbose"?console.log("Core: Bike Signal Updated: ",JSON.stringify(K.value,null,2)):this.config.logLevel==="core"&&console.log("Core: Bike Signal Updated"),this.ResetSelectedBikeIndicator(),this.RefreshCompatibleSkus().then(()=>{document.dispatchEvent(new Event("RefreshCompatibility",{bubbles:!0,composed:!0})),document.dispatchEvent(new Event("BikeChanged",{bubbles:!0,composed:!0}))})})}async RefreshCompatibleSkus(e=!1){var r,n;const t=`${(r=K.value)==null?void 0:r.key}:${this.config.currentCollectionHandle}:${Bd}`;switch((this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: RefreshCompatibleSkus() called. Current Collection Bike Key: ",t),this.config.pageType){case"collection":const s=!!K.value&&!K.value.compatibleCollections.error&&((n=K.value.compatibleCollections)==null?void 0:n.some(a=>a.handle===this.config.currentCollectionHandle)),o=this.config.showCompatibleList&&(this.compatibleListInitialized||e);(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: RefreshCompatibleSkus. hasCompatibleCollection: ",s," showCompatibleList: ",this.config.showCompatibleList," compatibleListInitialized: ",this.compatibleListInitialized," CompatibleListLoadingSignal: ",Ee.value," onlyCompatibleList: ",e," delayCompatibleListInitialization: ",this.config.delayCompatibleListInitialization," shouldRefreshCompatibleListSkus: ",o),s&&(e||await this.RefreshCollectionPageSkus(t),o&&((this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: RefreshCompatibleSkus refreshing compatible list skus for collection page..."),await this.RefreshCollectionListSkus(t))),wr.value=!1,Je.value=!1,o&&(Ee.value=!1);break;case"search":case"index":wr.value=!1,Ee.value=!1,(this.config.pageType==="index"&&this.config.showHomePageCollection||this.config.pageType==="search"&&this.config.showSearchPageCollection)&&await this.RefreshCollectionPageSkus(t),Je.value=!1;break;default:wr.value=!1,Ee.value=!1,Je.value=!1;break}}async RefreshCollectionPageSkus(e){var o,a;let t=document.getElementsByTagName("bikematrix-collectionresult"),n=Array.from(t).map(l=>{const u=this.config.skuField==="barcode"?l.getAttribute("data-product-barcodes"):this.config.skuField==="metafield"?l.getAttribute("data-product-metafields"):l.getAttribute("data-product-skus")||"";return u==null?void 0:u.split(",").filter(c=>!!c)}).flat();this.config.logLevel==="verbose"&&console.log("Refresh Collection Page SKUs. SKUs: ",JSON.stringify(n),null,2);var s=((o=Nt())==null?void 0:o.language)||"en-GB";if(n&&n.length>0){const l=await this.service.checkSkusCompatibilityWithResults((a=K.value)==null?void 0:a.key,n,s,"CollectionResult",this.config.currentCollectionHandle);l.success?xr.value=l.data:(Ri.value=!0,this.config.logLevel==="verbose"&&console.log("Compatible List Error: ",l.logError))}else xr.value=[]}async RefreshCollectionListSkus(e){var n,s;var t=JSON.parse(sessionStorage.getItem(e));if(t)this.config.logLevel==="verbose"&&console.log("Refresh Collection SKUs from Session: ",JSON.stringify(t),null,2),vr.value=t;else{const o=Object.values(this.config.products||{}).map(c=>c.skus).flat();this.config.logLevel==="verbose"&&console.log("Refresh Collection SKUs from API. SKUs: ",JSON.stringify(o),null,2);var r=((n=Nt())==null?void 0:n.language)||"en-GB";const a=new AbortController,l=a.signal,u=()=>a.abort();window.addEventListener("beforeunload",u);try{if(!((s=K.value)!=null&&s.key))throw new Error("BikeSignal key is undefined");const c=await this.service.checkSkusCompatibilityWithResults(K.value.key,o,r,"CompatibleList",this.config.currentCollectionHandle,{signal:l});if(this.config.logLevel==="verbose"&&console.log("Refresh Collection SKUs from API. SKUs: ",JSON.stringify(c)),l.aborted){this.config.logLevel==="verbose"&&console.log("function RefreshCompatibleSkus() operation aborted");return}c.success?(sessionStorage.setItem(e,JSON.stringify(c.data)),vr.value=c.data):(Ri.value=!0,this.config.logLevel==="verbose"&&console.log("Compatible List Error: ",c.logError))}catch(c){c.name==="AbortError"?console.log("function RefreshCompatibleSkus() fetch aborted"):console.error("function RefreshCompatibleSkus() fetch error",c)}finally{window.removeEventListener("beforeunload",u)}}}updateActiveSubscription(e){this.config.logLevel==="verbose"&&console.log("updateActiveSubscription data: ",e);const t=!!(e!=null&&e.activeSubscription);sessionStorage.setItem("bm_activeSubscription",JSON.stringify(t)),this.activeSubscription=t}async updateBikeSignal(){const e=he.resolvedLanguage||he.language||"en-GB";(this.config.logLevel==="verbose"||this.config.logLevel==="core")&&console.log("Core: updateBikeSignal() called");const t=localStorage.getItem(Gn)||"null",r=JSON.parse(t);if(this.currentBike=r,r==null){K.value=null;return}const n=await Ba(r==null?void 0:r.brandId,e);!Array.isArray(n)&&n.error?(r.compatibleCollections=[],K.value=r):(r.compatibleCollections=n,K.value=r),this.config.logLevel==="verbose"?console.log("Core: Bike Changed: ",JSON.stringify(K.value,null,2)):this.config.logLevel==="core"&&console.log("Core: Bike Changed")}};Ja.instance=null;let Kp=Ja;const ii=i=>z("svg",{width:10,height:10,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},z("path",{d:"M1.53553 8.60658L5.07107 5.07104M5.07107 5.07104L8.6066 1.53551M5.07107 5.07104L8.6066 8.60658M5.07107 5.07104L1.53553 1.53551",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),Zp=`:host .overlay{opacity:0;visibility:hidden}@media (min-width: 640px){:host .modal{opacity:0;transform:scale(.9);visibility:hidden}}@media not all and (min-width: 640px){:host .modal{transform:translateY(100%);visibility:hidden}}
2
2
  `;function wt(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function Qa(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,i.__proto__=e}/*!
3
3
  * GSAP 3.12.7
4
4
  * https://gsap.com
@@ -30,7 +30,7 @@
30
30
  * Subject to the terms at https://gsap.com/standard-license or for
31
31
  * Club GSAP members, the agreement issued with that membership.
32
32
  * @author: Jack Doyle, jack@greensock.com
33
- */let _u=typeof document<"u"?fr:U,yu=i=>i&&!Array.isArray(i)&&typeof i=="object",an=[],If={},Cu=Q;const Vs=(i,e=an)=>{let t=If;yu(i)?(t=i,i=null,e="dependencies"in t?t.dependencies:an):yu(e)&&(t=e,e="dependencies"in t?t.dependencies:an),i&&typeof i!="function"&&console.warn("First parameter must be a function or config object");const{scope:r,revertOnUpdate:n}=t,s=Y(!1),o=Y(Cu.context(()=>{},r)),a=Y(u=>o.current.add(null,u)),l=e&&e.length&&!n;return l&&_u(()=>(s.current=!0,()=>o.current.revert()),an),_u(()=>{if(i&&o.current.add(i,r),!l||!s.current)return()=>o.current.revert()},e),{context:o.current,contextSafe:a.current}};Vs.register=i=>{Cu=i},Vs.headless=!0;const Rf=()=>{const[i,e]=O(window.innerWidth),[t,r]=O(window.innerHeight);return U(()=>{const n=()=>{e(window.innerWidth),r(window.innerHeight)};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),{width:i,height:t}},zf=({unsavedParts:i,revertPart:e,readOnly:t})=>{const{t:r}=ee(),n=Y(null),s=Y(),o=Y(null),a=Y({}),[l,u]=O(i),c=Y(null),{height:d,width:h}=Rf(),{contextSafe:f}=Vs(()=>{s.current=Q.timeline({paused:!0}),s.current.to(n.current,{border:"1px solid #d1d5db",height:"auto",maxHeight:"150px",overflowY:"auto",width:h>=640?"500px":"366px"}).to(o.current,{opacity:1},"-=.25").reverse(),l.length>0?Q.to(c.current,{opacity:1}):Q.to(c.current,{opacity:0})},{scope:c,dependencies:[l]}),m=f(()=>{s.current&&s.current.reversed(!s.current.reversed())}),b=(w,v,g)=>{u(l.filter(x=>x.part!==v)),Q.to(a.current[w],{opacity:0,height:0,onComplete:()=>e(v,g)})};return U(()=>{u(i)},[i]),p($,{children:[p("style",{type:"text/css",children:Pf}),p("div",{className:"unsaved-changes_wrapper",ref:c,onClick:m,children:[p("div",{className:"title-section",children:[p(At,{text:r("virtualworkshop_unsaved_changes"),small:!0,bold:!0,nowrap:!0,flexend:!0}),p("div",{className:"circle",children:l.length})]}),p("div",{className:"unsaved-content",ref:n,children:[p("div",{className:"close-button",children:p(Of,{})}),p("div",{className:"animation-wrapper",ref:o,children:l.length>0&&l.map((w,v)=>{var g,x;return p("div",{className:"unsaved-part-wrapper",ref:_=>{a.current[w.type+v]=_},children:[p(At,{text:(g=w.type)==null?void 0:g.replace(/_/g," "),small:!0,left:!0,bold:!0,capitalize:!0}),p("div",{className:"unsaved-part",children:[p(At,{text:(x=w.part)!=null&&x.name?w.part.name:r("virtualworkshop_removed"),small:!0,left:!0}),p("div",{className:"revert-button",onClick:()=>b(w.type+v,w.part,w.type),children:r("virtualworkshop_revert_btn")})]})]},w.type+v)})})]})]})]})},js=()=>{JSON.parse(sessionStorage.getItem("bm_categories")).collections.map(e=>{sessionStorage.removeItem(`${Z.value.key}:${e.handle}:v2`)})},Us={frame:"Frame_ID",headset:"Headset_ID",fork:"Fork_ID",stem:"Stem_ID",handlebar:"Handlebar_ID",chainguide:"Chainguide_ID",bottom_Bracket:"Bottom_Bracket_ID",crankset:"Crankset_ID",largest_Chainring:"Largest_Chainring_ID",second_Largest_Chainring:"Second_Largest_Chainring_ID",third_Largest_Chainring:"Third_Largest_Chainring_ID",chainring_Spider:"Chainring_Spider_ID",chain:"Chain_ID",cassette:"Cassette_ID",rear_Derailleur:"Rear_Derailleur_ID",front_Derailleur:"Front_Derailleur_ID",shifter_RH:"Shifter_RH_ID",shifter_LH:"Shifter_LH_ID",shift_Brake_Combo_RH:"Shift_Brake_Combo_RH_ID",shift_Brake_Combo_LH:"Shift_Brake_Combo_LH_ID",brake_Lever_RH:"Brake_Lever_RH_ID",brake_Lever_LH:"Brake_Lever_LH_ID",shifter_Adapter_RH:"Shifter_Adapter_RH_ID",shifter_Adapter_LH:"Shifter_Adapter_LH_ID",brake_Caliper_Front:"Brake_Caliper_Front_ID",brake_Caliper_Rear:"Brake_Caliper_Rear_ID",brake_Pads_Front:"Brake_Pads_Front_ID",brake_Pads_Rear:"Brake_Pads_Rear_ID",brake_Rotor_Front:"Brake_Rotor_Front_ID",brake_Rotor_Rear:"Brake_Rotor_Rear_ID",brake_Adapter_Front:"Brake_Adapter_Front_ID",brake_Adapter_Rear:"Brake_Adapter_Rear_ID",front_Wheel:"Front_Wheel_ID",front_Axle:"Front_Axle_ID",rear_Wheel:"Rear_Wheel_ID",rear_Axle:"Rear_Axle_ID",seat_Post:"Seat_Post_ID",seat_Post_Clamp:"Seat_Post_Clamp_ID",dropper_Lever:"Dropper_Lever_ID",lockout_Lever:"Lockout_Lever_ID",rear_Shock:"Rear_Shock_ID",tyre_Front:"Tyre_Front_ID",tyre_Rear:"Tyre_Rear_ID",grips:"Grips_ID",pedals:"Pedals_ID"},qf=`.type,.part{font-size:16px}.wrapper{display:flex;flex-direction:column;gap:.25rem}.part-wrapper{display:flex;justify-content:space-between;align-items:flex-start;padding:10px;transition:all ease-in-out .5s}.can-hover{cursor:pointer}.can-hover:hover{background-color:#d9d9d966;border-radius:12px}.type-wrapper{display:flex}.svg-wrapper{min-width:20px}.updating-spinner{position:absolute;top:2.5rem;right:1rem}
33
+ */let _u=typeof document<"u"?fr:U,yu=i=>i&&!Array.isArray(i)&&typeof i=="object",an=[],If={},Cu=Q;const Vs=(i,e=an)=>{let t=If;yu(i)?(t=i,i=null,e="dependencies"in t?t.dependencies:an):yu(e)&&(t=e,e="dependencies"in t?t.dependencies:an),i&&typeof i!="function"&&console.warn("First parameter must be a function or config object");const{scope:r,revertOnUpdate:n}=t,s=Y(!1),o=Y(Cu.context(()=>{},r)),a=Y(u=>o.current.add(null,u)),l=e&&e.length&&!n;return l&&_u(()=>(s.current=!0,()=>o.current.revert()),an),_u(()=>{if(i&&o.current.add(i,r),!l||!s.current)return()=>o.current.revert()},e),{context:o.current,contextSafe:a.current}};Vs.register=i=>{Cu=i},Vs.headless=!0;const Rf=()=>{const[i,e]=O(window.innerWidth),[t,r]=O(window.innerHeight);return U(()=>{const n=()=>{e(window.innerWidth),r(window.innerHeight)};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),{width:i,height:t}},zf=({unsavedParts:i,revertPart:e,readOnly:t})=>{const{t:r}=ee(),n=Y(null),s=Y(),o=Y(null),a=Y({}),[l,u]=O(i),c=Y(null),{height:d,width:h}=Rf(),{contextSafe:f}=Vs(()=>{s.current=Q.timeline({paused:!0}),s.current.to(n.current,{border:"1px solid #d1d5db",height:"auto",maxHeight:"150px",overflowY:"auto",width:h>=640?"500px":"366px"}).to(o.current,{opacity:1},"-=.25").reverse(),l.length>0?Q.to(c.current,{opacity:1}):Q.to(c.current,{opacity:0})},{scope:c,dependencies:[l]}),m=f(()=>{s.current&&s.current.reversed(!s.current.reversed())}),b=(w,v,g)=>{u(l.filter(x=>x.part!==v)),Q.to(a.current[w],{opacity:0,height:0,onComplete:()=>e(v,g)})};return U(()=>{u(i)},[i]),p($,{children:[p("style",{type:"text/css",children:Pf}),p("div",{className:"unsaved-changes_wrapper",ref:c,onClick:m,children:[p("div",{className:"title-section",children:[p(At,{text:r("virtualworkshop_unsaved_changes"),small:!0,bold:!0,nowrap:!0,flexend:!0}),p("div",{className:"circle",children:l.length})]}),p("div",{className:"unsaved-content",ref:n,children:[p("div",{className:"close-button",children:p(Of,{})}),p("div",{className:"animation-wrapper",ref:o,children:l.length>0&&l.map((w,v)=>{var g,x;return p("div",{className:"unsaved-part-wrapper",ref:_=>{a.current[w.type+v]=_},children:[p(At,{text:(g=w.type)==null?void 0:g.replace(/_/g," "),small:!0,left:!0,bold:!0,capitalize:!0}),p("div",{className:"unsaved-part",children:[p(At,{text:(x=w.part)!=null&&x.name?w.part.name:r("virtualworkshop_removed"),small:!0,left:!0}),p("div",{className:"revert-button",onClick:()=>b(w.type+v,w.part,w.type),children:r("virtualworkshop_revert_btn")})]})]},w.type+v)})})]})]})]})},js=()=>{JSON.parse(sessionStorage.getItem("bm_categories")).collections.map(e=>{sessionStorage.removeItem(`${K.value.key}:${e.handle}:v2`)})},Us={frame:"Frame_ID",headset:"Headset_ID",fork:"Fork_ID",stem:"Stem_ID",handlebar:"Handlebar_ID",chainguide:"Chainguide_ID",bottom_Bracket:"Bottom_Bracket_ID",crankset:"Crankset_ID",largest_Chainring:"Largest_Chainring_ID",second_Largest_Chainring:"Second_Largest_Chainring_ID",third_Largest_Chainring:"Third_Largest_Chainring_ID",chainring_Spider:"Chainring_Spider_ID",chain:"Chain_ID",cassette:"Cassette_ID",rear_Derailleur:"Rear_Derailleur_ID",front_Derailleur:"Front_Derailleur_ID",shifter_RH:"Shifter_RH_ID",shifter_LH:"Shifter_LH_ID",shift_Brake_Combo_RH:"Shift_Brake_Combo_RH_ID",shift_Brake_Combo_LH:"Shift_Brake_Combo_LH_ID",brake_Lever_RH:"Brake_Lever_RH_ID",brake_Lever_LH:"Brake_Lever_LH_ID",shifter_Adapter_RH:"Shifter_Adapter_RH_ID",shifter_Adapter_LH:"Shifter_Adapter_LH_ID",brake_Caliper_Front:"Brake_Caliper_Front_ID",brake_Caliper_Rear:"Brake_Caliper_Rear_ID",brake_Pads_Front:"Brake_Pads_Front_ID",brake_Pads_Rear:"Brake_Pads_Rear_ID",brake_Rotor_Front:"Brake_Rotor_Front_ID",brake_Rotor_Rear:"Brake_Rotor_Rear_ID",brake_Adapter_Front:"Brake_Adapter_Front_ID",brake_Adapter_Rear:"Brake_Adapter_Rear_ID",front_Wheel:"Front_Wheel_ID",front_Axle:"Front_Axle_ID",rear_Wheel:"Rear_Wheel_ID",rear_Axle:"Rear_Axle_ID",seat_Post:"Seat_Post_ID",seat_Post_Clamp:"Seat_Post_Clamp_ID",dropper_Lever:"Dropper_Lever_ID",lockout_Lever:"Lockout_Lever_ID",rear_Shock:"Rear_Shock_ID",tyre_Front:"Tyre_Front_ID",tyre_Rear:"Tyre_Rear_ID",grips:"Grips_ID",pedals:"Pedals_ID"},qf=`.type,.part{font-size:16px}.wrapper{display:flex;flex-direction:column;gap:.25rem}.part-wrapper{display:flex;justify-content:space-between;align-items:flex-start;padding:10px;transition:all ease-in-out .5s}.can-hover{cursor:pointer}.can-hover:hover{background-color:#d9d9d966;border-radius:12px}.type-wrapper{display:flex}.svg-wrapper{min-width:20px}.updating-spinner{position:absolute;top:2.5rem;right:1rem}
34
34
  `,$f=i=>z("svg",{width:20,height:20,viewBox:"0 0 31 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},z("path",{d:"M15.5 31C24.0605 31 31 24.0604 31 15.5C31 6.93958 24.0605 0 15.5 0C6.93945 0 0 6.93958 0 15.5C0 18.6947 0.966309 21.6637 2.62305 24.1305L8.62451 18.4889C8.74268 18.3724 8.86279 18.2644 8.98389 18.1625C7.87256 15.2234 8.50049 11.7754 10.8701 9.41406C12.6006 7.68994 14.9941 6.82117 17.4365 7.03076C17.5571 7.04114 17.6699 7.08105 17.7671 7.14429C17.8936 7.22681 17.9932 7.349 18.0474 7.49646C18.1226 7.70227 18.0977 7.92786 17.9868 8.11011C17.9575 8.15796 17.9224 8.20288 17.8813 8.24365L13.8589 12.2506L15.271 16.6925L19.7295 18.099L23.7515 14.0924C23.9482 13.8969 24.2407 13.8322 24.502 13.9272C24.7627 14.0217 24.9453 14.2588 24.9692 14.5348C25.1797 16.9679 24.3071 19.3524 22.5771 21.0768C20.2051 23.4396 16.7417 24.0634 13.7905 22.9541C13.6904 23.0771 13.5845 23.197 13.4697 23.3115L8.0708 29.1067C10.2769 30.3137 12.8081 31 15.5 31Z",fill:"#10B981"})),Vf=`.accordian-wrapper{border-radius:12px;overflow:hidden;height:54px;border:1px solid #d1d5db;position:relative}.header-content{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:16px 24px 16px 16px}.category{font-size:16px}.chevron-wrapper{transform:rotate(90deg)}.content{display:flex;flex-direction:column;gap:.25rem;opacity:0;padding:16px 24px 16px 16px}
35
35
  `,ku=({title:i,children:e})=>{const[t,r]=O(!1),n=Y(null),s=Y(null),o=Y(null),a=Y();return U(()=>{a.current=Q.timeline({paused:!0});const l=Q.context(()=>{a.current.to(n.current,{height:"auto",duration:.75}).to(o.current,{rotate:270},"=").to(s.current,{opacity:1},"-=.5").reverse()});return()=>{l.revert()}},[]),U(()=>{a.current.reversed(!t)},[t,r]),p($,{children:[p("style",{type:"text/css",children:Vf}),p("div",{className:"accordian-wrapper",ref:n,children:[p("div",{className:"header-content",onClick:()=>r(!t),children:[p("h4",{className:"category font-semibold",children:i}),p("div",{className:"chevron-wrapper",ref:o,children:p(Qe,{})})]}),p("div",{className:"content",ref:s,children:e})]})]})},Du={bike:"category_bike",frame:"category_frame",headset:"category_headset",fork:"category_fork",stem:"category_stem",handlebar:"category_handlebar",chainguide:"category_chainguide",bottom_Bracket:"category_bottombracket",crankset:"category_crankset",largest_Chainring:"category_largestchainring",second_Largest_Chainring:"category_secondlargestchainring",third_Largest_Chainring:"category_thirdlargestchainring",chainring_Spider:"category_chainringspider",chain:"category_chain",cassette:"category_cassette",rear_Derailleur:"category_rearderailleur",front_Derailleur:"category_frontderailleur",shifter_RH:"category_shifterrh",shifter_LH:"category_shifterlh",shift_Brake_Combo_RH:"category_shifterbrakecomborh",shift_Brake_Combo_LH:"category_shifterbrakecombolh",brake_Lever_RH:"category_brakeleverrh",brake_Lever_LH:"category_brakeleverlh",shifter_Adapter_RH:"category_shifteradapterrh",shifter_Adapter_LH:"category_shifteradapterlh",brake_Caliper_Front:"category_brakecaliperfront",brake_Caliper_Rear:"category_brakecaliperrear",brake_Adapter_Front:"category_brakeadapterfront",brake_Adapter_Rear:"category_brakeadapterrear",brake_Pads_Front:"category_brakepadsfront",brake_Pads_Rear:"category_brakepadsrear",brake_Rotor_Front:"category_brakerotorfront",brake_Rotor_Rear:"category_brakerotorrear",front_Wheel:"category_frontwheel",rear_Wheel:"category_rearwheel",front_Axle:"category_frontaxle",rear_Axle:"category_rearaxle",seatpost:"category_seatpost",dropper_Lever:"category_dropperlever",rear_Shock:"category_rearshock",tyre_Front:"category_tyrefront",tyre_Rear:"category_tyrerear",grips:"category_grips",pedals:"category_pedals",saddle:"category_saddle","Frame & Fork":"category_framefork",Drivetrain:"category_drivetrain",Brakes:"category_brakes",Cockpit:"category_cockpit","Wheels & Tyres":"category_wheelstyres"},jf=({bom:i,category:e,readOnly:t,loading:r})=>{const{t:n}=ee(),s=(o,a,l)=>{Ii.value={part:o,category:a,type:l},o.id?te("/part"):te("/update")};return p(ku,{title:n(Du[e]),children:[p("style",{type:"text/css",children:qf}),r&&i&&p("div",{className:"updating-spinner",children:p(Dt,{colour:"#000",isLoading:!0})}),i?Object.keys(i||{}).map((o,a)=>{if(e.toLocaleLowerCase()===o.replace(/_/g," ").toLocaleLowerCase())return Object.keys(i[o]||{}).map(l=>{const u=i[o][l];return p("div",{className:"wrapper",children:[p("div",{className:"type-wrapper",children:p("h4",{className:"type font-semibold capitalize",children:n(Du[l])})}),p("div",{className:`part-wrapper ${u!=null&&u.swap&&!t?"can-hover":""}`,onClick:()=>{u!=null&&u.swap&&!t&&s(u,o==null?void 0:o.replace(/_/g," "),l==null?void 0:l.replace(/_/g," "))},children:[p("p",{className:"part",children:u!=null&&u.name?u.name:"—"}),(u==null?void 0:u.swap)&&!t&&p("div",{className:"svg-wrapper",children:p($f,{})})]},u==null?void 0:u.id)]},l)})}):p(Dt,{colour:"#000",isLoading:!0})]})},Au=({categorisedBOM:i,bikeSave:e,refreshBomb:t,readOnly:r,loading:n,bomError:s})=>{const{t:o}=ee(),l=window.BikeMatrix.getConfig(),[u,c]=O([]),{currentBike:d,setCurrentBike:h}=Ie(),f=new De(l.apiUrl,l.apiKey,l.apiToken,l.isShopify),[m,b]=O(""),w=ke.value,v=["Frame & Fork","Drivetrain","Brakes","Cockpit","Wheels & Tyres"],g=async(_,y)=>{js();const k=await f.revertComponent(d.key,_.product_category_id,Us[y.split(" ").join("_")]);if(k.success)t(),h({...d});else{b(k.error),l.logLevel==="verbose"&&console.error(k.logError);return}},x=()=>{let _=[];w&&Object.keys(i).forEach(y=>{typeof i[y]=="object"&&i[y]!==null&&Object.keys(i[y]).forEach(k=>{i[y][k].unsaved_changes&&_.push({type:k,part:i[y][k]})})}),c(_)};return U(()=>{x()},[w,i]),p($,{children:[p("style",{type:"text/css",children:Mf}),p("div",{class:"bom-table_unsaved-changes mt-8",children:[p(At,{subheader:!0,text:o("virtualworkshop_build_text")}),!r&&p("div",{className:"unsaved-changes",children:p(zf,{readOnly:r,unsavedParts:u,revertPart:(_,y)=>g(_,y)})}),!i&&r&&p(Dt,{isLoading:!0,colour:"#000"}),(s||m)&&p(tt,{messages:s||m})]}),p("div",{className:"bom-table",children:v.map((_,y)=>p(jf,{category:_,bom:i,readOnly:r,loading:n},_+y))})]})},Uf=`:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-horizontal>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}.swiper-css-mode.swiper-vertical>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.onboarding-wrapper{position:absolute;height:100%;width:100%;top:0;left:0}.onboarding-background{position:absolute;z-index:200;width:calc(100% + 16px);height:100%;background-color:#0003;top:0;left:-8px;border-radius:12px}@media screen and (max-width: 639px){.onboarding-background{background-color:#000000b3}}.onboarding-modal{background-color:#fff;border-radius:8px;width:90%;height:-moz-fit-content;height:fit-content;z-index:201;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);overflow:hidden}.heading{max-width:60%;text-align:center;margin-left:auto;margin-right:auto}.back-button{z-index:1;cursor:pointer;display:flex;justify-content:center;align-items:center;border-radius:12px;border:1px solid #d4d4d4;position:absolute;top:30px;left:30px;width:40px;height:40px;padding-right:2px}.back-button svg{transform:rotate(180deg);color:#6b7280}.button-wrapper{padding:30px}.swiper-pagination-bullet{width:7px;height:7px;opacity:1;background:rgba(0,0,0,.2)}.swiper-pagination-bullet-active{background:#000}.swiper-pagination-bullets.swiper-pagination-horizontal{--swiper-pagination-bottom: -2.5rem}.swiper{overflow:visible}
36
36
  `,Hf="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAzMSAzMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1LjUgMzFDMjQuMDYwNSAzMSAzMSAyNC4wNjA0IDMxIDE1LjVDMzEgNi45Mzk1OCAyNC4wNjA1IDAgMTUuNSAwQzYuOTM5NDUgMCAwIDYuOTM5NTggMCAxNS41QzAgMTguNjk0NyAwLjk2NjMwOSAyMS42NjM3IDIuNjIzMDUgMjQuMTMwNUw4LjYyNDUxIDE4LjQ4ODlDOC43NDI2OCAxOC4zNzI0IDguODYyNzkgMTguMjY0NCA4Ljk4Mzg5IDE4LjE2MjVDNy44NzI1NiAxNS4yMjM0IDguNTAwNDkgMTEuNzc1NCAxMC44NzAxIDkuNDE0MDZDMTIuNjAwNiA3LjY4OTk0IDE0Ljk5NDEgNi44MjExNyAxNy40MzY1IDcuMDMwNzZDMTcuNTU3MSA3LjA0MTE0IDE3LjY2OTkgNy4wODEwNSAxNy43NjcxIDcuMTQ0MjlDMTcuODkzNiA3LjIyNjgxIDE3Ljk5MzIgNy4zNDkgMTguMDQ3NCA3LjQ5NjQ2QzE4LjEyMjYgNy43MDIyNyAxOC4wOTc3IDcuOTI3ODYgMTcuOTg2OCA4LjExMDExQzE3Ljk1NzUgOC4xNTc5NiAxNy45MjI0IDguMjAyODggMTcuODgxMyA4LjI0MzY1TDEzLjg1ODkgMTIuMjUwNkwxNS4yNzEgMTYuNjkyNUwxOS43Mjk1IDE4LjA5OUwyMy43NTE1IDE0LjA5MjRDMjMuOTQ4MiAxMy44OTY5IDI0LjI0MDcgMTMuODMyMiAyNC41MDIgMTMuOTI3MkMyNC43NjI3IDE0LjAyMTcgMjQuOTQ1MyAxNC4yNTg4IDI0Ljk2OTIgMTQuNTM0OEMyNS4xNzk3IDE2Ljk2NzkgMjQuMzA3MSAxOS4zNTI0IDIyLjU3NzEgMjEuMDc2OEMyMC4yMDUxIDIzLjQzOTYgMTYuNzQxNyAyNC4wNjM0IDEzLjc5MDUgMjIuOTU0MUMxMy42OTA0IDIzLjA3NzEgMTMuNTg0NSAyMy4xOTcgMTMuNDY5NyAyMy4zMTE1TDguMDcwOCAyOS4xMDY3QzEwLjI3NjkgMzAuMzEzNyAxMi44MDgxIDMxIDE1LjUgMzFaIiBmaWxsPSIjMTBCOTgxIi8+Cjwvc3ZnPgo=",Su=[{number:1,title:"virtualworkshop_title",content:"onboarding_vw_description",image:Be("onboarding-vw/build.png"),svg:""},{number:2,title:"onboarding_open_bike_build",content:"onboarding_open_bike_build_description",image:Be("onboarding-vw/build.png"),svg:""},{number:3,title:"onboarding_green_spanner",content:"onboarding_green_spanner_description",image:Be("onboarding-vw/green-spanner.png"),svg:Hf},{number:4,title:"onboarding_replacement",content:"onboarding_replacement_description",image:Be("onboarding-vw/compatible.png"),svg:""},{number:5,title:"onboarding_linked_components",content:"onboarding_linked_components_description",image:Be("onboarding-vw/not-compatible.png"),svg:""},{number:6,title:"onboarding_preview",content:"onboarding_preview_description",image:Be("onboarding-vw/unsaved-changes.png"),svg:""},{number:7,title:"onboarding_settings",content:"onboarding_settings_description",image:Be("onboarding-vw/settings.png"),svg:""}],Gf=`.card-wrapper{width:100%;display:flex;flex-direction:column}.card-image-wrapper{border:1px solid #d4d4d4;border-radius:8px;overflow:hidden;width:100%;margin-bottom:1rem}.card-image-wrapper img{width:100%;height:auto}.card-content{color:#000;font-size:16px}
@@ -41,8 +41,8 @@
41
41
  `,ec=i=>z("svg",{width:8,height:14,viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i},z("path",{d:"M2.80272 10.0382V9.95794C2.81179 9.1058 2.90249 8.42766 3.07483 7.92352C3.24717 7.41938 3.49206 7.01115 3.80952 6.69885C4.12698 6.38655 4.50794 6.09879 4.95238 5.83556C5.21995 5.67495 5.46032 5.48534 5.67347 5.26673C5.88662 5.04366 6.05442 4.78713 6.17687 4.49713C6.30385 4.20714 6.36735 3.88591 6.36735 3.53346C6.36735 3.09624 6.26304 2.71702 6.05442 2.39579C5.8458 2.07457 5.56689 1.82696 5.21769 1.65296C4.86848 1.47897 4.48073 1.39197 4.05442 1.39197C3.68254 1.39197 3.32426 1.46781 2.97959 1.6195C2.63492 1.77119 2.34694 2.00988 2.11565 2.33556C1.88435 2.66125 1.75057 3.08732 1.71429 3.61377H0C0.0362812 2.85532 0.235828 2.20618 0.598639 1.66635C0.965986 1.12651 1.44898 0.71383 2.04762 0.428298C2.65079 0.142766 3.31973 0 4.05442 0C4.85261 0 5.54649 0.15615 6.13605 0.468451C6.73016 0.780752 7.18821 1.20905 7.5102 1.75335C7.83673 2.29764 8 2.91778 8 3.61377C8 4.10453 7.9229 4.54844 7.76871 4.94551C7.61905 5.34257 7.40136 5.69726 7.11565 6.00956C6.83447 6.32186 6.49433 6.59847 6.09524 6.83939C5.69615 7.08477 5.37642 7.34353 5.13605 7.61568C4.89569 7.88336 4.72109 8.20236 4.61224 8.57266C4.5034 8.94296 4.44444 9.40472 4.43537 9.95794V10.0382H2.80272ZM3.67347 14C3.33787 14 3.04989 13.8818 2.80952 13.6453C2.56916 13.4089 2.44898 13.1256 2.44898 12.7954C2.44898 12.4653 2.56916 12.182 2.80952 11.9455C3.04989 11.7091 3.33787 11.5908 3.67347 11.5908C4.00907 11.5908 4.29705 11.7091 4.53741 11.9455C4.77778 12.182 4.89796 12.4653 4.89796 12.7954C4.89796 13.014 4.84127 13.2148 4.72789 13.3977C4.61905 13.5806 4.47166 13.7279 4.28571 13.8394C4.10431 13.9465 3.90023 14 3.67347 14Z",fill:"white"})),z1=({onClick:i})=>p($,{children:[p("style",{type:"text/css",children:R1}),p("div",{className:"question-button",onClick:i,children:p(ec,{})})]});function q1(){const i=ke.value,t=window.BikeMatrix.getConfig(),{currentBike:r,saveBike:n}=Ie(),[s,o]=O(i==null?void 0:i.owner_Email_Address),[a,l]=O(!1),[u,c]=O(null),[d,h]=O(null),[f,m]=O(r.name),[b,w]=O(null),[v,g]=O(null),[x,_]=O(null),y=new De(t.apiUrl,t.apiKey,t.apiToken,t.isShopify),{t:k}=ee(),A=async(D,S)=>{if(S==="name"){m(D),w(!0),g(null),_(null);const T=await y.updateCustomBikeName(r.key,D);n({...r,name:D}),w(!1),T.success?g(!0):(_(T.error),t.logLevel==="verbose"&&console.error(T.logError))}if(S==="email"){o(D),l(!0),c(null),h(null);const T=await y.saveCustomBike(r.key,D);l(!1),T.success?c(!0):(c(!1),h(T.error),t.logLevel==="verbose"&&console.error(T.logError))}},C=D=>{navigator.share({title:k("virtualworkshop_settings_id"),text:D,url:window.location.href}).then(()=>console.log("Successful share! 🎉")).catch(S=>console.error(S))};return i?p($,{children:[p(z1,{onClick:()=>te("/quick-guide")}),p("div",{className:"mb-4",children:r?p(et,{bike:r,selected:!0,simple:!0}):p(zr,{})}),p("div",{className:"flex flex-col gap-4",children:[p(Ju,{value:f,onSave:D=>A(D,"name"),loading:b,label:k("virtualworkshop_settings_bike_name"),success:v,error:x}),(i==null?void 0:i.owner_Email_Address)&&p(Ju,{value:s,onSave:D=>A(D,"email"),loading:a,label:k("virtualworkshop_settings_email"),success:u,error:d}),p(Qu,{label:k("virtualworkshop_settings_id"),text:r.key,onCopy:D=>navigator.clipboard.writeText(D)}),p(Qu,{label:k("virtualworkshop_settings_share_id"),text:r.shareId,onShare:D=>C(D),onCopy:D=>navigator.clipboard.writeText(D)})]}),p(Ct,{})]}):p($,{})}function $1(){const e=window.BikeMatrix.getConfig();U(()=>{dt.value.back="/"},[]);const t=new De(e.apiUrl,e.apiKey,e.apiToken,e.isShopify),{currentBike:r}=Ie(),[n,s]=O(null),[o,a]=O(""),l=async()=>{const u=await t.getBikeBom(r.key);if(!u.success)a(u.error),e.logLevel==="verbose"&&console.error(u.logError);else{const c=Rr(u.data);s(c),ke.value=c}};return U(()=>{l()},[]),p($,{children:[p("div",{className:"mb-4",children:[n?p(et,{bike:n,readOnly:!0,shared:!0}):p(zr,{}),p("div",{class:"mt-4 mb-8",children:p(Au,{categorisedBOM:n,readOnly:!0})})]}),o,p(Ct,{})]})}const V1=`.onboarding-content-wrapper{display:flex;flex-direction:column;gap:1rem;padding-left:1rem;padding-right:1rem}@media screen and (max-width: 639px){.onboarding-content-wrapper{padding:0}}
42
42
  `,j1=`.accordian-wrapper{border-radius:12px;overflow:hidden;height:54px;border:1px solid #d1d5db}.header-content{display:flex;align-items:center;justify-content:space-between;cursor:pointer;padding:16px 24px 16px 16px}.category{font-size:16px}.chevron-wrapper{transform:rotate(90deg)}.content{display:flex;flex-direction:column;gap:.25rem;opacity:0;padding:16px 24px 16px 16px}.card-image-wrapper{border:1px solid #d4d4d4;border-radius:8px;overflow:hidden;width:100%;margin-bottom:1rem}.card-image-wrapper img{width:100%;height:auto}.card-content{color:#000;font-size:16px}
43
43
  `,U1=({title:i,content:e,src:t,svg:r})=>p(ku,{title:i,children:[p("style",{type:"text/css",children:j1}),p("div",{className:"card-image-wrapper",children:p("img",{src:t})}),p("div",{className:"card-content",children:e})]}),H1=()=>{const{t:i}=ee();return p($,{children:[p("style",{type:"text/css",children:V1}),p("div",{className:"onboarding",children:p("div",{className:"onboarding-content-wrapper",children:Su.map((e,t)=>p(U1,{title:e.number+". "+i(`${e.title}`),src:e.image,svg:e.svg,content:i(`${e.content}`)},t))})})]})};function G1(){return p("div",{className:"quick-guide-page",children:[p(H1,{}),p(Ct,{})]})}const oo=Ce("/"),te=i=>{const e=oo.peek();oo.value=i,tc({previous:e,path:i})},ao=[{title:"bikeselector_home_title",component:_f,path:"/"},{title:"bikeselector_addbike_title",component:Df,path:"/add"},{title:"bikeselector_search_title",component:Af,path:"/search"},{title:"bikeselector_size_title",component:Sf,path:"/size"},{title:"bikeselector_confirm_title",component:Bf,path:"/confirm"},{title:"bikeselector_browse_title",component:Lf,path:"/browse"},{title:"virtualworkshop_title",component:Tf,path:"/workshop"},{title:"virtualworkshop_title",component:D1,path:"/bom"},{title:"virtualworkshop_title",component:A1,path:"/part"},{title:"virtualworkshop_title",component:T1,path:"/update"},{title:"virtualworkshop_title",component:q1,path:"/settings"},{title:"virtualworkshop_bom_title",component:$1,path:"/read-only"},{title:"Virtual Workshop — Quick Guide",component:G1,path:"/quick-guide"}],lo=ao.map(i=>i.path),tc=i=>{let e;const t=lo.indexOf(i.path),r=ao[t],n=lo.slice(1,5).indexOf(r.path);t&&(e=lo[t-1]),i.previous==="/"&&i.path==="/browse"&&(e="/"),i.previous==="/"&&i.path==="/workshop"&&(e="/"),i.path==="/settings"&&(e="/bom"),i.path==="/quick-guide"&&(e="/settings"),dt.value={title:r.title,step:n>-1?n:void 0,back:e}};function W1(){const e=it(()=>ao.reduce((t,r)=>(t[r.path]=r.component,t),{}),[])[oo.value];return U(()=>{tc({path:"/"})},[]),p(e,{})}const uo=`@import"https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-right-2{right:-8px}.-top-2{top:-8px}.bottom-0{bottom:0}.bottom-10{bottom:40px}.bottom-14{bottom:56px}.bottom-4{bottom:16px}.bottom-6{bottom:24px}.bottom-\\[128px\\]{bottom:128px}.bottom-\\[72px\\]{bottom:72px}.left-0{left:0}.left-1\\/2{left:50%}.left-4{left:16px}.right-0{right:0}.right-3{right:12px}.right-4{right:16px}.right-5{right:20px}.top-0{top:0}.top-1\\/2{top:50%}.top-4{top:16px}.-z-10{z-index:-10}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-\\[2147483645\\]{z-index:2147483645}.z-\\[2147483646\\]{z-index:2147483646}.\\!my-0{margin-top:0!important;margin-bottom:0!important}.-mx-8{margin-left:-32px;margin-right:-32px}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-1{margin-top:4px;margin-bottom:4px}.my-5{margin-top:20px;margin-bottom:20px}.my-6{margin-top:24px;margin-bottom:24px}.my-\\[2px\\]{margin-top:2px;margin-bottom:2px}.my-px{margin-top:1px;margin-bottom:1px}.\\!ml-0{margin-left:0!important}.\\!ml-auto{margin-left:auto!important}.-mb-3{margin-bottom:-12px}.-mt-2{margin-top:-8px}.-mt-5{margin-top:-20px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.mb-8{margin-bottom:32px}.ml-2{margin-left:8px}.ml-\\[105px\\]{margin-left:105px}.ml-auto{margin-left:auto}.mr-\\[6px\\]{margin-right:6px}.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}.mt-auto{margin-top:auto}.box-border{box-sizing:border-box}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-0{height:0px}.h-10{height:40px}.h-2{height:8px}.h-20{height:80px}.h-3{height:12px}.h-32{height:128px}.h-4{height:16px}.h-40{height:160px}.h-5{height:20px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-9{height:36px}.h-\\[10px\\]{height:10px}.h-\\[18px\\]{height:18px}.h-\\[1px\\]{height:1px}.h-\\[26px\\]{height:26px}.h-\\[6px\\]{height:6px}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-36{max-height:144px}.max-h-full{max-height:100%}.max-h-screen{max-height:100vh}.w-1\\/2{width:50%}.w-10{width:40px}.w-2{width:8px}.w-3{width:12px}.w-4{width:16px}.w-5{width:20px}.w-6{width:24px}.w-7{width:28px}.w-8{width:32px}.w-9{width:36px}.w-\\[100px\\]{width:100px}.w-\\[25px\\]{width:25px}.w-\\[37\\.5px\\]{width:37.5px}.w-\\[48px\\]{width:48px}.w-\\[93px\\]{width:93px}.w-\\[calc\\(100\\%_\\+_64px\\)\\]{width:calc(100% + 64px)}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-\\[220px\\]{max-width:220px}.max-w-full{max-width:100%}.max-w-lg{max-width:512px}.max-w-sm{max-width:384px}.flex-none{flex:none}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/4{--tw-translate-x: -25%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-\\[20\\%\\]{--tw-translate-x: -20%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-px{--tw-translate-x: -1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/3{--tw-translate-y: -33.333333%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\/3{--tw-translate-x: 33.333333%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-px{--tw-translate-x: 1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-180{--tw-rotate: -180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-125{--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.snap-mandatory{--tw-scroll-snap-strictness: mandatory}.snap-center{scroll-snap-align:center}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(8px * var(--tw-space-x-reverse));margin-left:calc(8px * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(8px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(8px * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(12px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(12px * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(16px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(16px * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(20px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(20px * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-nowrap{text-wrap:nowrap}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-xl{border-radius:12px}.rounded-b-lg{border-bottom-right-radius:8px;border-bottom-left-radius:8px}.rounded-t-3xl{border-top-left-radius:24px;border-top-right-radius:24px}.rounded-t-xl{border-top-left-radius:12px;border-top-right-radius:12px}.border{border-width:1px}.border-b-0{border-bottom-width:0px}.border-amber-500{--tw-border-opacity: 1;border-color:rgb(245 158 11 / var(--tw-border-opacity))}.border-emerald-500{--tw-border-opacity: 1;border-color:rgb(16 185 129 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-950{--tw-border-opacity: 1;border-color:rgb(3 7 18 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity))}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-black\\/40{background-color:#0006}.bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400\\/50{background-color:#9ca3af80}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-950{--tw-bg-opacity: 1;background-color:rgb(3 7 18 / var(--tw-bg-opacity))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\\/75{background-color:#ffffffbf}.p-0{padding:0}.p-2{padding:8px}.p-3{padding:12px}.p-4{padding:16px}.px-4{padding-left:16px;padding-right:16px}.px-8{padding-left:32px;padding-right:32px}.py-1{padding-top:4px;padding-bottom:4px}.py-2{padding-top:8px;padding-bottom:8px}.py-3{padding-top:12px;padding-bottom:12px}.py-4{padding-top:16px;padding-bottom:16px}.py-\\[6px\\]{padding-top:6px;padding-bottom:6px}.\\!pr-8{padding-right:32px!important}.pl-1{padding-left:4px}.pl-3{padding-left:12px}.pr-3{padding-right:12px}.pr-5{padding-right:20px}.pr-6{padding-right:24px}.pt-4{padding-top:16px}.text-center{text-align:center}.text-start{text-align:start}.font-nunito{font-family:Nunito,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-base{font-size:16px;line-height:24px}.text-lg{font-size:18px;line-height:28px}.text-sm{font-size:14px;line-height:20px}.text-xl{font-size:20px;line-height:28px}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-\\[18px\\]{line-height:18px}.leading-\\[22px\\]{line-height:22px}.leading-tight{line-height:1.25}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity))}.text-amber-950{--tw-text-opacity: 1;color:rgb(69 26 3 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity))}.text-emerald-950{--tw-text-opacity: 1;color:rgb(2 44 34 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-950{--tw-text-opacity: 1;color:rgb(3 7 18 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-950{--tw-text-opacity: 1;color:rgb(69 10 10 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-30{opacity:.3}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0px_-2px_10px_0px_rgba\\(0\\,0\\,0\\,0\\.04\\)\\,0px_0px_0px_1px_rgba\\(0\\,0\\,0\\,0\\.06\\)\\]{--tw-shadow: 0px -2px 10px 0px rgba(0,0,0,.04),0px 0px 0px 1px rgba(0,0,0,.06);--tw-shadow-colored: 0px -2px 10px 0px var(--tw-shadow-color), 0px 0px 0px 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.no-scrollbar::-webkit-scrollbar{display:none}.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.bike-matrix-container{width:100%}@media (min-width: 640px){.bike-matrix-container{max-width:640px}}@media (min-width: 768px){.bike-matrix-container{max-width:768px}}@media (min-width: 1024px){.bike-matrix-container{max-width:1024px}}@media (min-width: 1280px){.bike-matrix-container{max-width:1280px}}@media (min-width: 1536px){.bike-matrix-container{max-width:1536px}}:root,:host{all:initial!important;font-size:16px!important;width:100%}input,select,button{outline:2px solid transparent;outline-offset:2px}h1,h2,h3,h4,h5,h6,label,button{margin-top:0;margin-bottom:0;font-family:Nunito,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}h1,h2,h3,h4,h5,h6{font-weight:700;--tw-text-opacity: 1;color:rgb(3 7 18 / var(--tw-text-opacity))}h1,h2,h3,h4,h5,h6,label,button,p,a,div{font-family:Nunito,sans-serif}select{appearance:none;-webkit-appearance:none;-moz-appearance:none;text-indent:1px;text-overflow:""}select::-ms-expand{display:none}.loader{border-radius:100%;border-top:4px solid rgba(3,7,18,.2);border-right:4px solid rgba(3,7,18,.2);border-bottom:4px solid rgba(3,7,18,.2);border-left:4px solid rgb(3,7,18)}*::-webkit-scrollbar{height:12px;width:12px}*::-webkit-scrollbar-track{border-radius:12px;margin-block:8px;--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}*::-webkit-scrollbar-track:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}*::-webkit-scrollbar-track:active{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}*::-webkit-scrollbar-thumb{border-radius:8px;--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}*::-webkit-scrollbar-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}@media not all and (min-width: 640px){*::-webkit-scrollbar{display:none}.modal-content{-ms-overflow-style:none;scrollbar-width:none}}@media only screen and (max-width: 450px){.compatibility-label-container .status{padding:7px 2px}}.bike_matrix-checkbox{height:14px;width:14px}input[type=checkbox]{margin-top:3px}input[type=checkbox]:checked{accent-color:#000}.placeholder\\:text-gray-700::-moz-placeholder{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.placeholder\\:text-gray-700::placeholder{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:-inset-x-px:after{content:var(--tw-content);left:-1px;right:-1px}.after\\:-top-6:after{content:var(--tw-content);top:-24px}.after\\:bottom-0:after{content:var(--tw-content);bottom:0}.after\\:bg-gradient-to-t:after{content:var(--tw-content);background-image:linear-gradient(to top,var(--tw-gradient-stops))}.after\\:from-white:after{content:var(--tw-content);--tw-gradient-from: #fff var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.after\\:to-transparent:after{content:var(--tw-content);--tw-gradient-to: transparent var(--tw-gradient-to-position)}.disabled\\:border-gray-200:disabled{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.group:disabled .group-disabled\\:border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.group:disabled .group-disabled\\:bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.group:disabled .group-disabled\\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.peer:disabled~.peer-disabled\\:text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}@media not all and (min-width: 640px){.max-sm\\:absolute{position:absolute}.max-sm\\:inset-0{top:0;right:0;bottom:0;left:0}.max-sm\\:h-\\[89vh\\]{height:89vh}.max-sm\\:max-h-\\[96\\%\\]{max-height:96%}.max-sm\\:flex-1{flex:1 1 0%}.max-sm\\:flex-none{flex:none}.max-sm\\:grow{flex-grow:1}}@media (max-width: 426px){.max-\\[426px\\]\\:w-\\[21px\\]{width:21px}.max-\\[426px\\]\\:w-\\[38px\\]{width:38px}.max-\\[426px\\]\\:text-xs{font-size:12px;line-height:16px}}@media (min-width: 640px){.sm\\:mt-8{margin-top:32px}.sm\\:hidden{display:none}.sm\\:h-full{height:100%}.sm\\:max-h-\\[90\\%\\]{max-height:90%}.sm\\:max-w-\\[640px\\]{max-width:640px}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:justify-center{justify-content:center}.sm\\:rounded-xl{border-radius:12px}.sm\\:px-2{padding-left:8px;padding-right:8px}.sm\\:px-6{padding-left:24px;padding-right:24px}}.\\[\\&\\>path\\]\\:stroke-\\[2px\\]>path{stroke-width:2px}.\\[\\&\\>span\\]\\:font-normal>span{font-weight:400}.\\[\\&\\>span\\]\\:text-gray-500>span{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}
44
- `;function Y1(){return U(()=>{const i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap",document.head.appendChild(i)},[]),p($,{children:[p("style",{type:"text/css",children:uo}),p(ff,{children:[p("div",{onClick:Ir,style:{right:"-36px",top:"-24px"},class:"w-7 h-7 z-10 flex items-center justify-center absolute bg-white text-gray-800 rounded-full cursor-pointer",children:p(ii,{class:"h-3 w-3"})}),p(wf,{children:p(Ef,{children:p(W1,{})})})]})]})}const K1=i=>z("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:500,zoomAndPan:"magnify",viewBox:"0 0 375 374.999991",height:500,preserveAspectRatio:"xMidYMid meet",...i},z("path",{fill:"#000000",d:"M 151.4375 131.65625 L 210.511719 259.050781 C 210.511719 252.984375 210.105469 242.875 210.105469 230.335938 L 197.160156 117.5 C 168.835938 117.90625 151.4375 131.65625 151.4375 131.65625 Z M 225.484375 117.097656 C 218.605469 116.691406 212.128906 116.691406 206.464844 117.097656 L 212.941406 181.804688 C 214.960938 160.773438 219.007812 138.125 225.484375 117.097656 Z M 80.222656 227.101562 C 90.746094 230.335938 101.265625 233.976562 113 238.425781 C 113 238.425781 146.988281 255.816406 173.285156 266.734375 L 104.097656 179.78125 C 93.980469 194.746094 86.292969 211.328125 80.222656 227.101562 Z M 35.714844 287.363281 C 37.738281 276.441406 40.167969 265.117188 43.808594 254.601562 C 34.90625 252.984375 26.003906 251.773438 17.507812 250.960938 C 21.957031 263.90625 28.433594 276.039062 35.714844 287.363281 Z M 195.945312 276.039062 C 195.945312 276.039062 204.441406 278.867188 208.488281 274.417969 L 142.535156 138.125 C 131.207031 146.621094 121.089844 156.324219 112.1875 167.648438 L 191.898438 274.417969 C 193.519531 275.230469 194.730469 275.632812 195.945312 276.039062 Z M 365.480469 146.214844 C 359.816406 122.351562 349.296875 100.109375 335.539062 81.101562 C 343.632812 101.726562 352.128906 124.375 358.199219 140.148438 C 360.625 141.765625 363.457031 144.191406 365.480469 146.214844 Z M 356.175781 170.886719 C 339.179688 157.539062 322.996094 147.023438 307.214844 138.933594 L 244.90625 157.539062 L 232.363281 189.085938 C 230.339844 208.902344 228.71875 233.976562 230.339844 254.601562 C 230.339844 254.601562 233.980469 294.640625 219.414062 299.496094 C 219.414062 299.496094 203.632812 314.863281 163.574219 295.855469 C 163.574219 295.855469 121.898438 274.015625 70.109375 260.265625 C 62.015625 291 59.992188 314.457031 59.992188 316.480469 C 92.363281 349.644531 138.085938 369.867188 188.257812 369.867188 C 288.605469 369.867188 370.335938 288.171875 370.335938 187.871094 C 370.335938 185.847656 370.335938 183.828125 370.335938 181.804688 C 363.054688 183.019531 356.175781 170.886719 356.175781 170.886719 Z M 233.980469 95.257812 C 237.621094 86.761719 242.476562 78.675781 247.332031 71.394531 C 247.332031 71.394531 261.089844 49.960938 281.726562 31.761719 C 254.617188 15.582031 222.246094 5.875 188.257812 5.875 C 87.507812 5.875 6.179688 87.570312 6.179688 187.871094 C 6.179688 197.578125 6.988281 206.476562 8.203125 215.371094 C 22.363281 215.777344 38.144531 217.394531 55.542969 220.628906 C 66.0625 195.152344 75.773438 177.761719 75.773438 177.761719 C 75.773438 177.761719 124.328125 87.976562 233.980469 95.257812 Z M 236.8125 147.429688 L 240.453125 146.214844 L 250.972656 120.332031 C 248.546875 119.925781 246.925781 119.523438 244.5 119.117188 C 241.261719 127.609375 238.429688 137.316406 236.8125 147.429688 Z M 259.066406 121.949219 L 250.164062 143.789062 L 292.648438 132.867188 C 281.320312 128.015625 269.992188 124.375 259.066406 121.949219 Z M 272.015625 76.25 C 266.347656 82.71875 260.683594 90 255.425781 98.085938 C 275.65625 101.726562 293.054688 106.582031 308.027344 112.242188 Z M 340.800781 128.015625 L 314.902344 57.238281 C 311.261719 53.601562 307.621094 50.363281 303.980469 47.128906 C 295.886719 52.792969 287.390625 59.667969 278.894531 68.160156 L 323.804688 119.117188 C 330.28125 122.351562 336.347656 125.589844 340.800781 128.015625 Z M 340.800781 128.015625 ",fillOpacity:1,fillRule:"nonzero"}));function Z1({"data-sku":i,"data-padding-top":e,"data-padding-bottom":t}){var _,y;const r=window.BikeMatrix,n=r.getConfig(),[s,o]=O({}),[a,l]=O(!1),[u,c]=O({compatible:"",warning:""}),{t:d}=ee(),[h,f]=O(!1),m=i||n.sku,[b,w]=O(null);if(i==="*")return n.logLevel==="verbose"&&console.log("Early return as prouduct is blacklisted"),p($,{});if(((_=n.productCollections)==null?void 0:_.length)===0||!n.productCollections||!n.productCollections.some(k=>{var A;return(A=Z.value)==null?void 0:A.compatibleCollections.some(C=>C.handle===k)}))return n.logLevel==="verbose"&&console.log("No product collection available"),p($,{});n.internalLink&&w(n.internalLink);const v=it(()=>Je.value||h,[Je.value,h]),g=!!r.getActiveSubscription(),x=async()=>{var A,C,D,S,T,L,F;if(f(!0),c({compatible:"",warning:""}),l(!1),n.logLevel==="verbose"&&(console.log("ProductResult updateCompatibility config: "+JSON.stringify(n)),console.log("ProductResult updateCompatibility BikeSignal.value: "+JSON.stringify(Z.value))),Z.value){for(let M=0;M<n.productCollections.length;M++)if(!((C=(A=Z.value)==null?void 0:A.compatibleCollections)!=null&&C.error)&&((S=(D=Z.value)==null?void 0:D.compatibleCollections)!=null&&S.find(N=>N.handle===n.productCollections[M]))){l(!0);break}}else for(let M=0;M<n.productCollections.length;M++)if((T=n==null?void 0:n.collections)!=null&&T.map(N=>N.handle).includes(n==null?void 0:n.productCollections[M])){l(!0);break}if(Z.value){if(m==""){o({type:"unavailable",...Ci.unavailable}),f(!1);return}var k=((L=Nt())==null?void 0:L.language)||"en-GB";const N=await new De(n.apiUrl,n.apiKey,n.apiToken,n.isShopify).checkSkuCompatibility((F=Z.value)==null?void 0:F.key,m,k,"ProductResult",n.currentCollectionHandle);if(f(!1),!N.success){n.logLevel==="verbose"&&console.error(N.logError),o({type:"unavailable",...Ci.unavailable});return}const q=(N==null?void 0:N.data.compatible)===null?"unavailable":N.data.warning?"warning":N!=null&&N.data.compatible?"compatible":"incompatible";c({warning:N.data.warningMessage,compatible:N.data.compatibilityMessage}),o({type:q,...Ci[q]})}else f(!1),o({type:"check",...Ci.check})};return U(()=>{x()},[Z.value,m]),U(()=>(document.addEventListener("RefreshCompatibility",x),()=>{document.removeEventListener("RefreshCompatibility",x)}),[]),!g||!v&&!(s!=null&&s.type)||!a?p($,{}):p($,{children:[p("style",{type:"text/css",children:uo}),p("div",{class:"flex flex-col relative w-full mx-auto",style:{marginTop:`${e}px`,marginBottom:`${t}px`},children:[p("div",{onClick:k=>{k.preventDefault(),document.dispatchEvent(new Event("BmToggleModal",{bubbles:!0,composed:!0}))},class:X("rounded-lg relative z-20 border overflow-hidden w-full flex cursor-pointer",v?"bg-gray-100 border-gray-300 text-gray-950":{unavailable:"bg-gray-50 border-gray-950 text-gray-950",check:"bg-gray-50 border-gray-950 text-gray-950",compatible:"bg-emerald-50 border-emerald-500 text-emerald-950",incompatible:"bg-red-50 border-red-500 text-red-950",warning:"bg-amber-50 border-amber-500 text-amber-950"}[s.type]),children:v?p("span",{class:"loader self-center animate-spin justify-self-center justify-center w-9 my-5 mx-auto h-9",style:{borderWidth:"6px"}}):p($,{children:[p("div",{class:"relative z-10 h-auto items-center justify-center flex",children:[p(no,{class:X("self-start h-full w-[93px]",{unavailable:"text-gray-950",check:"text-gray-950",compatible:"text-emerald-500",incompatible:"text-red-500",warning:"text-amber-500"}[s.type])}),p(io,{class:"h-[26px] absolute -translate-x-1/4"})]}),p("div",{class:"flex flex-col pl-3 pr-6 py-[6px] min-w-0",children:[p("p",{class:"text-lg font-semibold",children:d(s==null?void 0:s.heading_code)}),p("p",{class:"flex w-full text-sm leading-[22px] font-normal",children:p("span",{class:"truncate",children:s!=null&&s.details_code?d(s==null?void 0:s.details_code):(y=Z.value)==null?void 0:y.name})})]})]})}),p("div",{class:"z-10 bg-gray-100 w-full -mt-2 pt-4 flex border justify-between flex-wrap gap-1 border-gray-300 rounded-b-lg p-3 py-2",children:[s.type!=="incompatible"&&p("div",{class:"space-y-2 my-[2px]",children:[!!(u!=null&&u.compatible)&&p("p",{class:"text-sm flex",children:[p(Vr,{class:"mr-[6px] flex-none my-px h-4 w-4 text-emerald-500"})," ",u.compatible]}),!!u.warning&&p("p",{class:"text-sm flex",children:[p(jr,{class:"mr-[6px] flex-none my-px h-4 w-4 text-amber-500"})," ",u.warning]})]}),p("a",{class:"flex text-xs self-end font-semibold items-center underline ml-auto",href:b||"https://bikematrix.io/landed-it",target:"_blank",children:[d("bikematrix_poweredby")," ",p(K1,{class:"w-5 h-5 ml-2"})]})]}),!v&&p(s.icon,{class:"absolute top-0 z-30 right-0 w-6 translate-x-1/3 -translate-y-1/3"})]})]})}const X1=`.wrapper{position:relative}.bm_collection_result{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.4rem;position:relative;margin-left:auto;margin-right:auto;font-size:14px;text-align:left;height:100%;line-height:1.3em}.bm_collection_result_iconLabel{display:inline-block;position:relative}.bm_collection_result_link{text-align:right;font-weight:500;font-size:.6em;margin-top:1px;text-decoration:underline;color:#000}.bm_collection_result_link:visited{color:#000}.bm_collection_result p{display:inline;padding:1px;margin:0;color:#000}.bm_collection_result_icon{padding:0 .1rem 0 0;position:absolute;left:-24px;top:-.25rem}.bm-hidden{display:none}.lds-ring{display:inline-block;position:relative;width:24px;height:24px}.lds-ring div{box-sizing:border-box;display:block;position:absolute;width:19px;height:19px;margin:2px;border:2px solid #c4cdd5;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#c4cdd5 transparent transparent transparent}.lds-ring div:nth-child(1){animation-delay:-.45s}.lds-ring div:nth-child(2){animation-delay:-.3s}.lds-ring div:nth-child(3){animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
45
- `,rc={unavailable:{icon:so,heading:"",code:""},compatible:{icon:Vr,heading:"Compatible",code:"compatible"},warning:{icon:jr,heading:"Compatible",code:"compatible"},incompatible:{icon:mn,heading:"Not Compatible",code:"not_compatible"}};function ic({"data-type":i}){var r;const e=rc[i],{t}=ee();return e?p($,{children:[p("style",{type:"text/css",children:uo}),p("div",{class:"flex z-0 flex-col relative w-full mx-auto compatibility-label-container max-w-[220px]",children:[p("div",{class:X("rounded-lg relative z-20 border overflow-hidden w-full flex",{unavailable:"bg-gray-50 border-gray-950 text-gray-950",compatible:"bg-emerald-50 border-emerald-500 text-emerald-950",incompatible:"bg-red-50 border-red-500 text-red-950",warning:"bg-amber-50 border-amber-500 text-amber-950"}[i]),children:[p("div",{class:"relative z-10 h-auto items-center justify-center flex",children:[p(no,{class:X("self-start h-full w-[48px] max-[426px]:w-[38px]",{unavailable:"text-gray-950",compatible:"text-emerald-500",incompatible:"text-red-500",warning:"text-amber-500"}[i])}),p(io,{class:"h-[18px] max-[426px]:w-[21px] w-[25px] absolute -translate-x-[20%]"})]}),p("div",{class:"status flex flex-col p-2 pl-1 w-full",children:p("p",{class:"max-[426px]:text-xs text-sm font-semibold p-0 leading-[18px] text-center",children:t((r=rc[i])==null?void 0:r.code)})})]}),p(e.icon,{class:"absolute top-0 z-30 right-0 w-4 h-4 translate-x-1/3 -translate-y-1/3"})]})]}):p($,{})}const Ur={unavailable:{heading:""},compatible:{heading:"Compatible"},incompatible:{heading:"Not Compatible"},warning:{heading:"Compatible - Check Notes"}};let Ze={type:"unavailable",heading:""};const J1=async(i,e,t,r)=>{var l;if(!t||!((l=xr.value)!=null&&l.length)){Ze={type:"unavailable",...Ur.unavailable};return}let n=[];for(const u of t.split(",").filter(c=>!!c)){const c=xr.value.find(d=>d.sku===u.trim());n.push(c)}const s=n.some(u=>(u==null?void 0:u.compatible)===!0&&!(u!=null&&u.warning)),o=n.some(u=>(u==null?void 0:u.compatible)===!0&&(u==null?void 0:u.warning)),a=n.some(u=>(u==null?void 0:u.compatible)===!1);s?Ze={type:"compatible",...Ur.compatible}:o?Ze={type:"warning",...Ur.warning}:a?Ze={type:"incompatible",...Ur.incompatible}:Ze={type:"unavailable",...Ur.unavailable},r==="verbose"&&console.log("checkCollectionResult prodcutId: "+e+" bikeKey: "+i+" sku: "+t+" status: "+Ze.type)},Q1=function(i,e,t,r,n,s,o){var l;const a=window.BikeMatrix.getConfig();if(i||e){if((i&&t||e&&r)&&a.productsCollections[s]){for(let u=0;u<a.productsCollections[s].length;u++)if(a.collections.map(c=>c.handle).includes(a.productsCollections[s][u]))return!0}}else return n?!1:!!Z.value&&!Z.value.compatibleCollections.error&&((l=Z.value.compatibleCollections)==null?void 0:l.find(c=>c.handle===o));return!1};function e0({"data-product-id":i,"data-product-skus":e,"data-product-barcodes":t,"data-product-metafields":r}){const n=window.BikeMatrix,s=n.getConfig(),[o,a]=O(!1),l=!!n.getActiveSubscription();Ze={type:"unavailable",...Ur.unavailable};const{currentCollectionHandle:u,isHomePage:c,isSearchPage:d,showSearchPageCollection:h,showHomePageCollection:f,logLevel:m,skuField:b}=s,w=!!s.pageType&&s.pageType==="product",v=b==="barcode"?t:b==="metafield"?r:e||"";return m==="verbose"&&(console.log("CollectionResult currentCollectionHandle: ",u),console.log("CollectionResult skuField: ",b),console.log("CollectionResult productId: ",i),console.log("CollectionResult skusToCheck: ",v),console.log("CollectionResult BikeSignal.value: "+JSON.stringify(Z.value))),Je.value?a(!0):Z.value&&Q1(c,d,f,h,w,i,u)?J1(Z.value.key,i,v,s.logLevel).then(()=>{a(!0)}):a(!1),m==="verbose"&&console.log("CollectionResult status: ",Ze),p($,{children:l&&o&&p($,{children:[p("style",{type:"text/css",children:X1}),p("div",{class:"bm_collection_result bm-wrapper",children:[p("div",{class:"lds-ring",id:"bm-loading-spinner",style:Je.value?"":"display: none",children:[p("div",{}),p("div",{}),p("div",{}),p("div",{})]}),!Je.value&&(Ze==null?void 0:Ze.type)!=="unavailable"&&p(ic,{"data-type":Ze.type})]})]})})}const t0=`.lds-ring{display:inline-block;position:relative;width:24px;height:24px}.lds-ring div{box-sizing:border-box;display:block;position:absolute;width:19px;height:19px;margin:2px;border:2px solid #c4cdd5;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#c4cdd5 transparent transparent transparent}.lds-ring div:nth-child(1){animation-delay:-.45s}.lds-ring div:nth-child(2){animation-delay:-.3s}.lds-ring div:nth-child(3){animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.bm-compatible-products-wrapper{display:block;width:100%;border-top:.5px solid lightgrey;border-bottom:.5px solid lightgrey;margin-top:10px}.bm-compatible-products-title>div{color:rgb(var(--text-color));font-family:var(--body-font-family);font-size:calc(var(--body-font-size) * .1rem);font-style:var(--body-font-style);font-weight:var(--body-font-weight);line-height:1.5;outline:none;text-decoration:none;display:flex;align-items:center;justify-content:space-between;padding:8px 0}.bm-compatible-products-title>div>span{font-weight:700}.bm-compatible-products-title svg{height:24px;width:24px;transition:transform .3s linear}.bm-compatible-products-title div.active svg{transform:rotate(180deg)}.bm-compatible-products-list{width:100%;max-width:100%;display:none;overflow:hidden}.bm-compatible-products-list ul{display:grid;gap:20px;grid-template-columns:repeat(4,minmax(0,1fr));padding:0;list-style:none}@media only screen and (max-width: 1000px){.bm-compatible-products-list ul{grid-template-columns:repeat(3,minmax(0,1fr))}}@media only screen and (max-width: 600px){.bm-compatible-products-list ul{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}}.bm-compatible-products-list ul li{width:100%;display:flex}.bm-compatible-product-wrapper{display:block;width:100%;border:1px solid lightgrey;padding:5px;display:flex;flex-flow:column;flex:1}.bm-compatible-product-image{display:block;width:100%;max-width:100%;line-height:1;padding-top:100%;position:relative;margin-bottom:5px;overflow:hidden}.bm-compatible-product-image a,.bm-compatible-product-image a:hover,.bm-compatible-product-image a:focus{display:block;width:100%;max-width:100%;outline:none;text-decoration:none;width:auto;height:auto;line-height:1;border:none;border-radius:0}.bm-compatible-product-image img{display:inline-block;vertical-align:top;width:100%;max-width:100%;height:auto;line-height:1;position:absolute;left:0;right:0;bottom:0;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center;top:50%;transform:translateY(-50%)}.bm-compatible-product-title{text-align:center;margin:0 0 1em;display:flex;flex-flow:column;flex:1}.bm-compatible-product-title a,.bm-compatible-product-title a:hover,.bm-compatible-product-title a:focus{color:rgb(var(--text-color));font-family:var(--body-font-family);font-size:calc(var(--body-font-size) * .1rem);font-style:var(--body-font-style);font-weight:var(--body-font-weight);line-height:1.5;outline:none;text-decoration:none}.bm-compatible-product-price{text-align:center;margin:0 0 1em}.bm-compatible-product-price p{font-family:var(--body-font-family);font-size:calc(var(--body-font-size) * .1rem);font-style:var(--body-font-style);font-weight:var(--body-font-weight);line-height:1.5;color:rgb(var(--text-color));padding:0;margin:0}.bm-compatible-product-price p strong{font-size:1.2em}.bm-compatible-product-compatibility{text-align:center;margin:0 .25em 1em}@media only screen and (max-width: 450px){.bm-compatible-product-compatibility{margin:0 0 1em}}.bm_result_link{justify-content:center;text-align:right;text-decoration:underline;font-size:12px;padding:10px 0}.bm_result_link a{text-align:right;font-weight:700;margin-top:10px;color:#000}
44
+ `;function Y1(){return U(()=>{const i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap",document.head.appendChild(i)},[]),p($,{children:[p("style",{type:"text/css",children:uo}),p(ff,{children:[p("div",{onClick:Ir,style:{right:"-36px",top:"-24px"},class:"w-7 h-7 z-10 flex items-center justify-center absolute bg-white text-gray-800 rounded-full cursor-pointer",children:p(ii,{class:"h-3 w-3"})}),p(wf,{children:p(Ef,{children:p(W1,{})})})]})]})}const K1=i=>z("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:500,zoomAndPan:"magnify",viewBox:"0 0 375 374.999991",height:500,preserveAspectRatio:"xMidYMid meet",...i},z("path",{fill:"#000000",d:"M 151.4375 131.65625 L 210.511719 259.050781 C 210.511719 252.984375 210.105469 242.875 210.105469 230.335938 L 197.160156 117.5 C 168.835938 117.90625 151.4375 131.65625 151.4375 131.65625 Z M 225.484375 117.097656 C 218.605469 116.691406 212.128906 116.691406 206.464844 117.097656 L 212.941406 181.804688 C 214.960938 160.773438 219.007812 138.125 225.484375 117.097656 Z M 80.222656 227.101562 C 90.746094 230.335938 101.265625 233.976562 113 238.425781 C 113 238.425781 146.988281 255.816406 173.285156 266.734375 L 104.097656 179.78125 C 93.980469 194.746094 86.292969 211.328125 80.222656 227.101562 Z M 35.714844 287.363281 C 37.738281 276.441406 40.167969 265.117188 43.808594 254.601562 C 34.90625 252.984375 26.003906 251.773438 17.507812 250.960938 C 21.957031 263.90625 28.433594 276.039062 35.714844 287.363281 Z M 195.945312 276.039062 C 195.945312 276.039062 204.441406 278.867188 208.488281 274.417969 L 142.535156 138.125 C 131.207031 146.621094 121.089844 156.324219 112.1875 167.648438 L 191.898438 274.417969 C 193.519531 275.230469 194.730469 275.632812 195.945312 276.039062 Z M 365.480469 146.214844 C 359.816406 122.351562 349.296875 100.109375 335.539062 81.101562 C 343.632812 101.726562 352.128906 124.375 358.199219 140.148438 C 360.625 141.765625 363.457031 144.191406 365.480469 146.214844 Z M 356.175781 170.886719 C 339.179688 157.539062 322.996094 147.023438 307.214844 138.933594 L 244.90625 157.539062 L 232.363281 189.085938 C 230.339844 208.902344 228.71875 233.976562 230.339844 254.601562 C 230.339844 254.601562 233.980469 294.640625 219.414062 299.496094 C 219.414062 299.496094 203.632812 314.863281 163.574219 295.855469 C 163.574219 295.855469 121.898438 274.015625 70.109375 260.265625 C 62.015625 291 59.992188 314.457031 59.992188 316.480469 C 92.363281 349.644531 138.085938 369.867188 188.257812 369.867188 C 288.605469 369.867188 370.335938 288.171875 370.335938 187.871094 C 370.335938 185.847656 370.335938 183.828125 370.335938 181.804688 C 363.054688 183.019531 356.175781 170.886719 356.175781 170.886719 Z M 233.980469 95.257812 C 237.621094 86.761719 242.476562 78.675781 247.332031 71.394531 C 247.332031 71.394531 261.089844 49.960938 281.726562 31.761719 C 254.617188 15.582031 222.246094 5.875 188.257812 5.875 C 87.507812 5.875 6.179688 87.570312 6.179688 187.871094 C 6.179688 197.578125 6.988281 206.476562 8.203125 215.371094 C 22.363281 215.777344 38.144531 217.394531 55.542969 220.628906 C 66.0625 195.152344 75.773438 177.761719 75.773438 177.761719 C 75.773438 177.761719 124.328125 87.976562 233.980469 95.257812 Z M 236.8125 147.429688 L 240.453125 146.214844 L 250.972656 120.332031 C 248.546875 119.925781 246.925781 119.523438 244.5 119.117188 C 241.261719 127.609375 238.429688 137.316406 236.8125 147.429688 Z M 259.066406 121.949219 L 250.164062 143.789062 L 292.648438 132.867188 C 281.320312 128.015625 269.992188 124.375 259.066406 121.949219 Z M 272.015625 76.25 C 266.347656 82.71875 260.683594 90 255.425781 98.085938 C 275.65625 101.726562 293.054688 106.582031 308.027344 112.242188 Z M 340.800781 128.015625 L 314.902344 57.238281 C 311.261719 53.601562 307.621094 50.363281 303.980469 47.128906 C 295.886719 52.792969 287.390625 59.667969 278.894531 68.160156 L 323.804688 119.117188 C 330.28125 122.351562 336.347656 125.589844 340.800781 128.015625 Z M 340.800781 128.015625 ",fillOpacity:1,fillRule:"nonzero"}));function Z1({"data-sku":i,"data-padding-top":e,"data-padding-bottom":t}){var _,y;const r=window.BikeMatrix,n=r.getConfig(),[s,o]=O({}),[a,l]=O(!1),[u,c]=O({compatible:"",warning:""}),{t:d}=ee(),[h,f]=O(!1),m=i||n.sku,[b,w]=O(null);if(i==="*")return n.logLevel==="verbose"&&console.log("Early return as prouduct is blacklisted"),p($,{});if(((_=n.productCollections)==null?void 0:_.length)===0||!n.productCollections||K.value&&!n.productCollections.some(k=>{var A;return(A=K.value)==null?void 0:A.compatibleCollections.some(C=>C.handle===k)}))return n.logLevel==="verbose"&&console.log("No product collection available"),p($,{});n.internalLink&&w(n.internalLink);const v=it(()=>Je.value||h,[Je.value,h]),g=!!r.getActiveSubscription(),x=async()=>{var A,C,D,S,T,L,F;if(f(!0),c({compatible:"",warning:""}),l(!1),n.logLevel==="verbose"&&(console.log("ProductResult updateCompatibility config: "+JSON.stringify(n)),console.log("ProductResult updateCompatibility BikeSignal.value: "+JSON.stringify(K.value))),K.value){for(let M=0;M<n.productCollections.length;M++)if(!((C=(A=K.value)==null?void 0:A.compatibleCollections)!=null&&C.error)&&((S=(D=K.value)==null?void 0:D.compatibleCollections)!=null&&S.find(N=>N.handle===n.productCollections[M]))){l(!0);break}}else for(let M=0;M<n.productCollections.length;M++)if((T=n==null?void 0:n.collections)!=null&&T.map(N=>N.handle).includes(n==null?void 0:n.productCollections[M])){l(!0);break}if(K.value){if(m==""){o({type:"unavailable",...Ci.unavailable}),f(!1);return}var k=((L=Nt())==null?void 0:L.language)||"en-GB";const N=await new De(n.apiUrl,n.apiKey,n.apiToken,n.isShopify).checkSkuCompatibility((F=K.value)==null?void 0:F.key,m,k,"ProductResult",n.currentCollectionHandle);if(f(!1),!N.success){n.logLevel==="verbose"&&console.error(N.logError),o({type:"unavailable",...Ci.unavailable});return}const q=(N==null?void 0:N.data.compatible)===null?"unavailable":N.data.warning?"warning":N!=null&&N.data.compatible?"compatible":"incompatible";c({warning:N.data.warningMessage,compatible:N.data.compatibilityMessage}),o({type:q,...Ci[q]})}else f(!1),o({type:"check",...Ci.check})};return U(()=>{x()},[K.value,m]),U(()=>(document.addEventListener("RefreshCompatibility",x),()=>{document.removeEventListener("RefreshCompatibility",x)}),[]),!g||!v&&!(s!=null&&s.type)||!a?p($,{}):p($,{children:[p("style",{type:"text/css",children:uo}),p("div",{class:"flex flex-col relative w-full mx-auto",style:{marginTop:`${e}px`,marginBottom:`${t}px`},children:[p("div",{onClick:k=>{k.preventDefault(),document.dispatchEvent(new Event("BmToggleModal",{bubbles:!0,composed:!0}))},class:X("rounded-lg relative z-20 border overflow-hidden w-full flex cursor-pointer",v?"bg-gray-100 border-gray-300 text-gray-950":{unavailable:"bg-gray-50 border-gray-950 text-gray-950",check:"bg-gray-50 border-gray-950 text-gray-950",compatible:"bg-emerald-50 border-emerald-500 text-emerald-950",incompatible:"bg-red-50 border-red-500 text-red-950",warning:"bg-amber-50 border-amber-500 text-amber-950"}[s.type]),children:v?p("span",{class:"loader self-center animate-spin justify-self-center justify-center w-9 my-5 mx-auto h-9",style:{borderWidth:"6px"}}):p($,{children:[p("div",{class:"relative z-10 h-auto items-center justify-center flex",children:[p(no,{class:X("self-start h-full w-[93px]",{unavailable:"text-gray-950",check:"text-gray-950",compatible:"text-emerald-500",incompatible:"text-red-500",warning:"text-amber-500"}[s.type])}),p(io,{class:"h-[26px] absolute -translate-x-1/4"})]}),p("div",{class:"flex flex-col pl-3 pr-6 py-[6px] min-w-0",children:[p("p",{class:"text-lg font-semibold",children:d(s==null?void 0:s.heading_code)}),p("p",{class:"flex w-full text-sm leading-[22px] font-normal",children:p("span",{class:"truncate",children:s!=null&&s.details_code?d(s==null?void 0:s.details_code):(y=K.value)==null?void 0:y.name})})]})]})}),p("div",{class:"z-10 bg-gray-100 w-full -mt-2 pt-4 flex border justify-between flex-wrap gap-1 border-gray-300 rounded-b-lg p-3 py-2",children:[s.type!=="incompatible"&&p("div",{class:"space-y-2 my-[2px]",children:[!!(u!=null&&u.compatible)&&p("p",{class:"text-sm flex",children:[p(Vr,{class:"mr-[6px] flex-none my-px h-4 w-4 text-emerald-500"})," ",u.compatible]}),!!u.warning&&p("p",{class:"text-sm flex",children:[p(jr,{class:"mr-[6px] flex-none my-px h-4 w-4 text-amber-500"})," ",u.warning]})]}),p("a",{class:"flex text-xs self-end font-semibold items-center underline ml-auto",href:b||"https://bikematrix.io/landed-it",target:"_blank",children:[d("bikematrix_poweredby")," ",p(K1,{class:"w-5 h-5 ml-2"})]})]}),!v&&p(s.icon,{class:"absolute top-0 z-30 right-0 w-6 translate-x-1/3 -translate-y-1/3"})]})]})}const X1=`.wrapper{position:relative}.bm_collection_result{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.4rem;position:relative;margin-left:auto;margin-right:auto;font-size:14px;text-align:left;height:100%;line-height:1.3em}.bm_collection_result_iconLabel{display:inline-block;position:relative}.bm_collection_result_link{text-align:right;font-weight:500;font-size:.6em;margin-top:1px;text-decoration:underline;color:#000}.bm_collection_result_link:visited{color:#000}.bm_collection_result p{display:inline;padding:1px;margin:0;color:#000}.bm_collection_result_icon{padding:0 .1rem 0 0;position:absolute;left:-24px;top:-.25rem}.bm-hidden{display:none}.lds-ring{display:inline-block;position:relative;width:24px;height:24px}.lds-ring div{box-sizing:border-box;display:block;position:absolute;width:19px;height:19px;margin:2px;border:2px solid #c4cdd5;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#c4cdd5 transparent transparent transparent}.lds-ring div:nth-child(1){animation-delay:-.45s}.lds-ring div:nth-child(2){animation-delay:-.3s}.lds-ring div:nth-child(3){animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
45
+ `,rc={unavailable:{icon:so,heading:"",code:""},compatible:{icon:Vr,heading:"Compatible",code:"compatible"},warning:{icon:jr,heading:"Compatible",code:"compatible"},incompatible:{icon:mn,heading:"Not Compatible",code:"not_compatible"}};function ic({"data-type":i}){var r;const e=rc[i],{t}=ee();return e?p($,{children:[p("style",{type:"text/css",children:uo}),p("div",{class:"flex z-0 flex-col relative w-full mx-auto compatibility-label-container max-w-[220px]",children:[p("div",{class:X("rounded-lg relative z-20 border overflow-hidden w-full flex",{unavailable:"bg-gray-50 border-gray-950 text-gray-950",compatible:"bg-emerald-50 border-emerald-500 text-emerald-950",incompatible:"bg-red-50 border-red-500 text-red-950",warning:"bg-amber-50 border-amber-500 text-amber-950"}[i]),children:[p("div",{class:"relative z-10 h-auto items-center justify-center flex",children:[p(no,{class:X("self-start h-full w-[48px] max-[426px]:w-[38px]",{unavailable:"text-gray-950",compatible:"text-emerald-500",incompatible:"text-red-500",warning:"text-amber-500"}[i])}),p(io,{class:"h-[18px] max-[426px]:w-[21px] w-[25px] absolute -translate-x-[20%]"})]}),p("div",{class:"status flex flex-col p-2 pl-1 w-full",children:p("p",{class:"max-[426px]:text-xs text-sm font-semibold p-0 leading-[18px] text-center",children:t((r=rc[i])==null?void 0:r.code)})})]}),p(e.icon,{class:"absolute top-0 z-30 right-0 w-4 h-4 translate-x-1/3 -translate-y-1/3"})]})]}):p($,{})}const Ur={unavailable:{heading:""},compatible:{heading:"Compatible"},incompatible:{heading:"Not Compatible"},warning:{heading:"Compatible - Check Notes"}};let Ze={type:"unavailable",heading:""};const J1=async(i,e,t,r)=>{var l;if(!t||!((l=xr.value)!=null&&l.length)){Ze={type:"unavailable",...Ur.unavailable};return}let n=[];for(const u of t.split(",").filter(c=>!!c)){const c=xr.value.find(d=>d.sku===u.trim());n.push(c)}const s=n.some(u=>(u==null?void 0:u.compatible)===!0&&!(u!=null&&u.warning)),o=n.some(u=>(u==null?void 0:u.compatible)===!0&&(u==null?void 0:u.warning)),a=n.some(u=>(u==null?void 0:u.compatible)===!1);s?Ze={type:"compatible",...Ur.compatible}:o?Ze={type:"warning",...Ur.warning}:a?Ze={type:"incompatible",...Ur.incompatible}:Ze={type:"unavailable",...Ur.unavailable},r==="verbose"&&console.log("checkCollectionResult prodcutId: "+e+" bikeKey: "+i+" sku: "+t+" status: "+Ze.type)},Q1=function(i,e,t,r,n,s,o){var l;const a=window.BikeMatrix.getConfig();if(i||e){if((i&&t||e&&r)&&a.productsCollections[s]){for(let u=0;u<a.productsCollections[s].length;u++)if(a.collections.map(c=>c.handle).includes(a.productsCollections[s][u]))return!0}}else return n?!1:!!K.value&&!K.value.compatibleCollections.error&&((l=K.value.compatibleCollections)==null?void 0:l.find(c=>c.handle===o));return!1};function e0({"data-product-id":i,"data-product-skus":e,"data-product-barcodes":t,"data-product-metafields":r}){const n=window.BikeMatrix,s=n.getConfig(),[o,a]=O(!1),l=!!n.getActiveSubscription();Ze={type:"unavailable",...Ur.unavailable};const{currentCollectionHandle:u,isHomePage:c,isSearchPage:d,showSearchPageCollection:h,showHomePageCollection:f,logLevel:m,skuField:b}=s,w=!!s.pageType&&s.pageType==="product",v=b==="barcode"?t:b==="metafield"?r:e||"";return m==="verbose"&&(console.log("CollectionResult currentCollectionHandle: ",u),console.log("CollectionResult skuField: ",b),console.log("CollectionResult productId: ",i),console.log("CollectionResult skusToCheck: ",v),console.log("CollectionResult BikeSignal.value: "+JSON.stringify(K.value))),Je.value?a(!0):K.value&&Q1(c,d,f,h,w,i,u)?J1(K.value.key,i,v,s.logLevel).then(()=>{a(!0)}):a(!1),m==="verbose"&&console.log("CollectionResult status: ",Ze),p($,{children:l&&o&&p($,{children:[p("style",{type:"text/css",children:X1}),p("div",{class:"bm_collection_result bm-wrapper",children:[p("div",{class:"lds-ring",id:"bm-loading-spinner",style:Je.value?"":"display: none",children:[p("div",{}),p("div",{}),p("div",{}),p("div",{})]}),!Je.value&&(Ze==null?void 0:Ze.type)!=="unavailable"&&p(ic,{"data-type":Ze.type})]})]})})}const t0=`.lds-ring{display:inline-block;position:relative;width:24px;height:24px}.lds-ring div{box-sizing:border-box;display:block;position:absolute;width:19px;height:19px;margin:2px;border:2px solid #c4cdd5;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#c4cdd5 transparent transparent transparent}.lds-ring div:nth-child(1){animation-delay:-.45s}.lds-ring div:nth-child(2){animation-delay:-.3s}.lds-ring div:nth-child(3){animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.bm-compatible-products-wrapper{display:block;width:100%;border-top:.5px solid lightgrey;border-bottom:.5px solid lightgrey;margin-top:10px}.bm-compatible-products-title>div{color:rgb(var(--text-color));font-family:var(--body-font-family);font-size:calc(var(--body-font-size) * .1rem);font-style:var(--body-font-style);font-weight:var(--body-font-weight);line-height:1.5;outline:none;text-decoration:none;display:flex;align-items:center;justify-content:space-between;padding:8px 0}.bm-compatible-products-title>div>span{font-weight:700}.bm-compatible-products-title svg{height:24px;width:24px;transition:transform .3s linear}.bm-compatible-products-title div.active svg{transform:rotate(180deg)}.bm-compatible-products-list{width:100%;max-width:100%;display:none;overflow:hidden}.bm-compatible-products-list ul{display:grid;gap:20px;grid-template-columns:repeat(4,minmax(0,1fr));padding:0;list-style:none}@media only screen and (max-width: 1000px){.bm-compatible-products-list ul{grid-template-columns:repeat(3,minmax(0,1fr))}}@media only screen and (max-width: 600px){.bm-compatible-products-list ul{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}}.bm-compatible-products-list ul li{width:100%;display:flex}.bm-compatible-product-wrapper{display:block;width:100%;border:1px solid lightgrey;padding:5px;display:flex;flex-flow:column;flex:1}.bm-compatible-product-image{display:block;width:100%;max-width:100%;line-height:1;padding-top:100%;position:relative;margin-bottom:5px;overflow:hidden}.bm-compatible-product-image a,.bm-compatible-product-image a:hover,.bm-compatible-product-image a:focus{display:block;width:100%;max-width:100%;outline:none;text-decoration:none;width:auto;height:auto;line-height:1;border:none;border-radius:0}.bm-compatible-product-image img{display:inline-block;vertical-align:top;width:100%;max-width:100%;height:auto;line-height:1;position:absolute;left:0;right:0;bottom:0;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center;top:50%;transform:translateY(-50%)}.bm-compatible-product-title{text-align:center;margin:0 0 1em;display:flex;flex-flow:column;flex:1}.bm-compatible-product-title a,.bm-compatible-product-title a:hover,.bm-compatible-product-title a:focus{color:rgb(var(--text-color));font-family:var(--body-font-family);font-size:calc(var(--body-font-size) * .1rem);font-style:var(--body-font-style);font-weight:var(--body-font-weight);line-height:1.5;outline:none;text-decoration:none}.bm-compatible-product-price{text-align:center;margin:0 0 1em}.bm-compatible-product-price p{font-family:var(--body-font-family);font-size:calc(var(--body-font-size) * .1rem);font-style:var(--body-font-style);font-weight:var(--body-font-weight);line-height:1.5;color:rgb(var(--text-color));padding:0;margin:0}.bm-compatible-product-price p strong{font-size:1.2em}.bm-compatible-product-compatibility{text-align:center;margin:0 .25em 1em}@media only screen and (max-width: 450px){.bm-compatible-product-compatibility{margin:0 0 1em}}.bm_result_link{justify-content:center;text-align:right;text-decoration:underline;font-size:12px;padding:10px 0}.bm_result_link a{text-align:right;font-weight:700;margin-top:10px;color:#000}
46
46
  `;var bn={exports:{}};/*! https://mths.be/he v1.2.0 by @mathias | MIT license */bn.exports,function(i,e){(function(t){var r=e,n=i&&i.exports==r&&i,s=typeof In=="object"&&In;(s.global===s||s.window===s)&&(t=s);var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,a=/[\x01-\x7F]/g,l=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,u=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,c={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot"," ":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf",ℬ:"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf",ℭ:"Cfr","𝒞":"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH","ⅇ":"ee",ℯ:"escr","𝔢":"efr","𝕖":"eopf",ℰ:"Escr","𝔈":"Efr","𝔼":"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf",ℱ:"Fscr",ff:"fflig",ffi:"ffilig",ffl:"ffllig",fi:"filig",fj:"fjlig",fl:"fllig",ƒ:"fnof",ℊ:"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil","𝔥":"hfr",ℎ:"planckh","𝒽":"hscr","𝕙":"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf",ĵ:"jcirc",Ĵ:"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr",ķ:"kcedil",Ķ:"Kcedil","𝔩":"lfr","𝓁":"lscr",ℓ:"ell","𝕝":"lopf",ℒ:"Lscr","𝔏":"Lfr","𝕃":"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf",ℳ:"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr",ℕ:"Nopf","𝒩":"Nscr","𝔑":"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG","𝕠":"oopf","𝔬":"ofr",ℴ:"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf",ℙ:"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr",ℚ:"Qopf",ĸ:"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr",ŵ:"wcirc",Ŵ:"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf",ℨ:"Zfr",ℤ:"Zopf","𝒵":"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ʼn:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi","ϵ":"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},d=/["&'<>`]/g,h={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},f=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,m=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,b=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,w={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
47
47
  `,nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},v={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},g={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},x=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],_=String.fromCharCode,y={},k=y.hasOwnProperty,A=function(B,R){return k.call(B,R)},C=function(B,R){for(var V=-1,j=B.length;++V<j;)if(B[V]==R)return!0;return!1},D=function(B,R){if(!B)return R;var V={},j;for(j in R)V[j]=A(B,j)?B[j]:R[j];return V},S=function(B,R){var V="";return B>=55296&&B<=57343||B>1114111?(R&&F("character reference outside the permissible Unicode range"),"�"):A(g,B)?(R&&F("disallowed character reference"),g[B]):(R&&C(x,B)&&F("disallowed character reference"),B>65535&&(B-=65536,V+=_(B>>>10&1023|55296),B=56320|B&1023),V+=_(B),V)},T=function(B){return"&#x"+B.toString(16).toUpperCase()+";"},L=function(B){return"&#"+B+";"},F=function(B){throw Error("Parse error: "+B)},M=function(B,R){R=D(R,M.options);var V=R.strict;V&&m.test(B)&&F("forbidden code point");var j=R.encodeEverything,H=R.useNamedReferences,ae=R.allowUnsafeSymbols,pe=R.decimal?L:T,Et=function(we){return pe(we.charCodeAt(0))};return j?(B=B.replace(a,function(we){return H&&A(c,we)?"&"+c[we]+";":Et(we)}),H&&(B=B.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),H&&(B=B.replace(u,function(we){return"&"+c[we]+";"}))):H?(ae||(B=B.replace(d,function(we){return"&"+c[we]+";"})),B=B.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;"),B=B.replace(u,function(we){return"&"+c[we]+";"})):ae||(B=B.replace(d,Et)),B.replace(o,function(we){var ur=we.charCodeAt(0),Wt=we.charCodeAt(1),rt=(ur-55296)*1024+Wt-56320+65536;return pe(rt)}).replace(l,Et)};M.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var N=function(B,R){R=D(R,N.options);var V=R.strict;return V&&f.test(B)&&F("malformed character reference"),B.replace(b,function(j,H,ae,pe,Et,we,ur,Wt,rt){var Re,vn,sc,oc,wn,xn;return H?(wn=H,w[wn]):ae?(wn=ae,xn=pe,xn&&R.isAttributeValue?(V&&xn=="="&&F("`&` did not start a character reference"),j):(V&&F("named character reference was not terminated by a semicolon"),v[wn]+(xn||""))):Et?(sc=Et,vn=we,V&&!vn&&F("character reference was not terminated by a semicolon"),Re=parseInt(sc,10),S(Re,V)):ur?(oc=ur,vn=Wt,V&&!vn&&F("character reference was not terminated by a semicolon"),Re=parseInt(oc,16),S(Re,V)):(V&&F("named character reference was not terminated by a semicolon"),j)})};N.options={isAttributeValue:!1,strict:!1};var q=function(B){return B.replace(d,function(R){return h[R]})},P={version:"1.2.0",encode:M,decode:N,escape:q,unescape:N};if(r&&!r.nodeType)if(n)n.exports=P;else for(var E in P)A(P,E)&&(r[E]=P[E]);else t.he=P})(In)}(bn,bn.exports);var r0=bn.exports;const i0=ta(r0),lr={unknown:{details:"",details_code:""},unavailable:{details:"Compatibility for this product category for your selected bike brand is coming soon!",details_code:"compatiblelist_unavailable"},selectbike:{details:"No bike selected. Click here to add your ride to check for compatible parts",details_code:"compatiblelist_nobikeselected"},pageone:{details:"All products compatible with your bike can be seen <a>here</a>.",details_code:"compatiblelist_pageone"},noresults:{details:"No compatible products found",details_code:"compatiblelist_noresults"},compatibleresults:{details:"",details_code:""},error:{details:"Something went wrong. Sorry! Refresh and try again.",details_code:"compatiblelist_error"}},n0=i=>{const e=i?[...new Set(i.split(","))]:[],r=window.BikeMatrix.getConfig(),n=[];return Object.entries(r.products).reduce((o,[a,l])=>(!n.includes(a)&&l.skus.some(u=>!!u&&e.includes(u==null?void 0:u.trim()))&&(o.push(l),n.push(a)),o),[]).sort((o,a)=>o["bm-sort"]-a["bm-sort"])},s0=i=>{if(!(i!=null&&i.length))return[];const e=i.filter(t=>t.compatible).map(t=>t.sku).join(",");return n0(e)},o0=(i,e)=>Ee.value?{type:"unknown",...lr.unknown}:i>1?{type:"pageone",...lr.pageone}:(e==null?void 0:e.length)>0?{type:"compatibleresults",...lr.compatibleresults}:Ri.value?{type:"error",...lr.error}:{type:"noresults",...lr.noresults},a0=()=>`
48
48
  <div class="bm-compatible-product-wrapper">
@@ -66,10 +66,10 @@
66
66
  <bikematrix-compatibilitylabel data-type="compatible"></bikematrix-compatibilitylabel>
67
67
  </div>
68
68
  </div>
69
- `;function l0({"data-title":i,"data-current-count":e,"data-total-count":t}){var C;const r=Y(null),n=window.BikeMatrix,s=n.getConfig(),[o,a]=O(!1),[l,u]=O(!0),[c,d]=O({type:"unknown",details:"",details_code:""}),[h,f]=O([]),{t:m}=ee(),[b,w]=O(""),v=!!n.getActiveSubscription(),g=s.currentCollectionHandle||"",x=s.collectionUrl||"",_=s.compatiblityListCurrentPage||0,y=!!s.showCompatibleList||!1,k=s.logLevel||"none",A=D=>{var M,N;if(!(r!=null&&r.current))return null;const S=(N=(M=r==null?void 0:r.current)==null?void 0:M.parentElement)==null?void 0:N.querySelector('template[slot="product-card"]');k==="verbose"&&console.log("CompatibleList Product Card Template: ",S);const F=(S?S.innerHTML:a0()).replace(s.isShopify?/\@\@#if\s+(\w+)\@\@(.*?)\@\@\/if\@\@/gs:/\{\{#if\s+(\w+)\}\}(.*?)\{\{\/if\}\}/gs,(q,P,E)=>D[P]?E:"").replace(s.isShopify?/\@\@\s*(\w+)\s*\@\@/g:/\{\{\s*(\w+)\s*\}\}/g,(q,P)=>{if(P==="compatibility")return'<bikematrix-compatibilitylabel data-type="compatible"></bikematrix-compatibilitylabel>';const E=D[P];return P==="productTitle"?i0.decode(E):E||""});return k==="verbose"&&console.log("CompatibleList Product Card: ",F),p("li",{dangerouslySetInnerHTML:{__html:F}},D.productId)};return U(()=>{var F,M,N;const D=s.collections.map(q=>q.handle)||[];if(!y||!D.includes(g)){d({type:"unknown",...lr.unknown}),a(!1);return}if(!Z.value){d({type:"selectbike",...lr.selectbike}),a(!Ee.value);return}let S=!0;if((F=Z.value)!=null&&F.compatibleCollections.error||(S=(N=(M=Z.value)==null?void 0:M.compatibleCollections)==null?void 0:N.find(q=>q.handle===g)),!S){a(!1);return}const T=s0(vr.value).map(A);f(T);const L=o0(_,T);d(L),a(!0)},[g,Z.value,vr.value,Ee.value,_]),U(()=>{e===void 0||t===void 0||(parseInt(e)>parseInt(t)||parseInt(e)===parseInt(t)?w(m("compatiblelist_waitstate_compatibility",{y:t})):w(m("compatiblelist_waitstate_count",{x:e,y:t})))},[e,t]),p($,{children:v&&o&&p("div",{ref:r,children:[p("style",{type:"text/css",children:t0}),p("div",{class:"bike-matrix-container",children:p("div",{class:"bm-compatible-products-wrapper",children:[p("div",{class:"bm-compatible-products-title",children:p("div",{id:"bm_customAccordion",class:l&&"active",onClick:()=>u(!l),children:[p("span",{children:i||m("compatiblelist_header")}),p("svg",{width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",role:"presentation",class:"icon",children:p("path",{d:"M20 8.5 12.5 16 5 8.5",stroke:"currentColor","stroke-width":"1.5",fill:"none"})})]})}),p("div",{class:"bm-compatible-products-list",id:"bm_compatibleProductsListPanel",style:l?"display: block":"display: none",children:[p("div",{style:{display:Ee.value?"flex":"none",gap:"1rem"},children:[p("div",{class:"lds-ring",id:"bm-loading-spinner",style:Ee.value?"":"display: none",children:[p("div",{}),p("div",{}),p("div",{}),p("div",{})]}),!!b&&b]}),!Ee.value&&{error:p("p",{children:m(c==null?void 0:c.details_code)}),unknown:p("p",{class:"bm-compatible-products-message"}),unavailable:p("p",{class:"bm-compatible-products-message",children:m(c==null?void 0:c.details_code)}),selectbike:p("div",{onClick:D=>{D.preventDefault(),document.dispatchEvent(new Event("BmToggleModal",{bubbles:!0,composed:!0}))},style:"cursor: pointer;",children:p("p",{class:"bm-compatible-products-message",children:m(c==null?void 0:c.details_code)})}),pageone:p("p",{class:"bm-compatible-products-message",children:p("div",{dangerouslySetInnerHTML:{__html:(C=m(c==null?void 0:c.details_code))==null?void 0:C.replace("<a>","<a href='"+x+"'>")}})}),noresults:p("p",{class:"bm-compatible-products-message",children:m(c==null?void 0:c.details_code)}),compatibleresults:p($,{})}[c==null?void 0:c.type],p("ul",{id:"bm_compatibleProductsList",children:!Ee.value&&(c==null?void 0:c.type)==="compatibleresults"&&h}),p("div",{class:"bm_result_link",children:p("a",{rel:"noreferrer",href:"http://www.bikematrix.io/landed-it",target:"_blank",class:"link",children:m("bikematrix_poweredby")})})]})]})})]})})}const u0=`.bike-selector-banner_wrapper{position:relative;height:40px}.bike-selector-banner{width:100%;height:40px;position:absolute;top:0;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-bottom:2rem}.floating{border-radius:12px;box-shadow:0 4px 4px #0000001f}.bike-selector-banner_title{color:#fff;text-transform:uppercase;padding-top:2px;font:var(--heading-font-family);font-style:var(--heading-font-style);font-weight:var(--heading-font-weight);font-size:18px}@media (width <= 991px){.bike-selector-banner_title{display:none}}.bike-selector-banner_title_mobile{display:none;text-transform:uppercase;font:var(--heading-font-family);font-style:var(--heading-font-style);font-weight:var(--heading-font-weight);font-size:18px;color:#fff;padding-top:2px}@media (width <= 991px){.bike-selector-banner_title_mobile{display:block}}.bike-selector-banner_svg{height:19px}.bike-selector-banner_icon-wrapper{display:flex;align-items:center;justify-content:center;height:100%;position:relative}.bike-selector-banner_tick{width:12px;height:12px;position:absolute;right:6px;top:5px}
69
+ `;function l0({"data-title":i,"data-current-count":e,"data-total-count":t}){var C;const r=Y(null),n=window.BikeMatrix,s=n.getConfig(),[o,a]=O(!1),[l,u]=O(!0),[c,d]=O({type:"unknown",details:"",details_code:""}),[h,f]=O([]),{t:m}=ee(),[b,w]=O(""),v=!!n.getActiveSubscription(),g=s.currentCollectionHandle||"",x=s.collectionUrl||"",_=s.compatiblityListCurrentPage||0,y=!!s.showCompatibleList||!1,k=s.logLevel||"none",A=D=>{var M,N;if(!(r!=null&&r.current))return null;const S=(N=(M=r==null?void 0:r.current)==null?void 0:M.parentElement)==null?void 0:N.querySelector('template[slot="product-card"]');k==="verbose"&&console.log("CompatibleList Product Card Template: ",S);const F=(S?S.innerHTML:a0()).replace(s.isShopify?/\@\@#if\s+(\w+)\@\@(.*?)\@\@\/if\@\@/gs:/\{\{#if\s+(\w+)\}\}(.*?)\{\{\/if\}\}/gs,(q,P,E)=>D[P]?E:"").replace(s.isShopify?/\@\@\s*(\w+)\s*\@\@/g:/\{\{\s*(\w+)\s*\}\}/g,(q,P)=>{if(P==="compatibility")return'<bikematrix-compatibilitylabel data-type="compatible"></bikematrix-compatibilitylabel>';const E=D[P];return P==="productTitle"?i0.decode(E):E||""});return k==="verbose"&&console.log("CompatibleList Product Card: ",F),p("li",{dangerouslySetInnerHTML:{__html:F}},D.productId)};return U(()=>{var F,M,N;const D=s.collections.map(q=>q.handle)||[];if(!y||!D.includes(g)){d({type:"unknown",...lr.unknown}),a(!1);return}if(!K.value){d({type:"selectbike",...lr.selectbike}),a(!Ee.value);return}let S=!0;if((F=K.value)!=null&&F.compatibleCollections.error||(S=(N=(M=K.value)==null?void 0:M.compatibleCollections)==null?void 0:N.find(q=>q.handle===g)),!S){a(!1);return}const T=s0(vr.value).map(A);f(T);const L=o0(_,T);d(L),a(!0)},[g,K.value,vr.value,Ee.value,_]),U(()=>{e===void 0||t===void 0||(parseInt(e)>parseInt(t)||parseInt(e)===parseInt(t)?w(m("compatiblelist_waitstate_compatibility",{y:t})):w(m("compatiblelist_waitstate_count",{x:e,y:t})))},[e,t]),p($,{children:v&&o&&p("div",{ref:r,children:[p("style",{type:"text/css",children:t0}),p("div",{class:"bike-matrix-container",children:p("div",{class:"bm-compatible-products-wrapper",children:[p("div",{class:"bm-compatible-products-title",children:p("div",{id:"bm_customAccordion",class:l&&"active",onClick:()=>u(!l),children:[p("span",{children:i||m("compatiblelist_header")}),p("svg",{width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",role:"presentation",class:"icon",children:p("path",{d:"M20 8.5 12.5 16 5 8.5",stroke:"currentColor","stroke-width":"1.5",fill:"none"})})]})}),p("div",{class:"bm-compatible-products-list",id:"bm_compatibleProductsListPanel",style:l?"display: block":"display: none",children:[p("div",{style:{display:Ee.value?"flex":"none",gap:"1rem"},children:[p("div",{class:"lds-ring",id:"bm-loading-spinner",style:Ee.value?"":"display: none",children:[p("div",{}),p("div",{}),p("div",{}),p("div",{})]}),!!b&&b]}),!Ee.value&&{error:p("p",{children:m(c==null?void 0:c.details_code)}),unknown:p("p",{class:"bm-compatible-products-message"}),unavailable:p("p",{class:"bm-compatible-products-message",children:m(c==null?void 0:c.details_code)}),selectbike:p("div",{onClick:D=>{D.preventDefault(),document.dispatchEvent(new Event("BmToggleModal",{bubbles:!0,composed:!0}))},style:"cursor: pointer;",children:p("p",{class:"bm-compatible-products-message",children:m(c==null?void 0:c.details_code)})}),pageone:p("p",{class:"bm-compatible-products-message",children:p("div",{dangerouslySetInnerHTML:{__html:(C=m(c==null?void 0:c.details_code))==null?void 0:C.replace("<a>","<a href='"+x+"'>")}})}),noresults:p("p",{class:"bm-compatible-products-message",children:m(c==null?void 0:c.details_code)}),compatibleresults:p($,{})}[c==null?void 0:c.type],p("ul",{id:"bm_compatibleProductsList",children:!Ee.value&&(c==null?void 0:c.type)==="compatibleresults"&&h}),p("div",{class:"bm_result_link",children:p("a",{rel:"noreferrer",href:"http://www.bikematrix.io/landed-it",target:"_blank",class:"link",children:m("bikematrix_poweredby")})})]})]})})]})})}const u0=`.bike-selector-banner_wrapper{position:relative;height:40px}.bike-selector-banner{width:100%;height:40px;position:absolute;top:0;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-bottom:2rem}.floating{border-radius:12px;box-shadow:0 4px 4px #0000001f}.bike-selector-banner_title{color:#fff;text-transform:uppercase;padding-top:2px;font:var(--heading-font-family);font-style:var(--heading-font-style);font-weight:var(--heading-font-weight);font-size:18px}@media (width <= 991px){.bike-selector-banner_title{display:none}}.bike-selector-banner_title_mobile{display:none;text-transform:uppercase;font:var(--heading-font-family);font-style:var(--heading-font-style);font-weight:var(--heading-font-weight);font-size:18px;color:#fff;padding-top:2px}@media (width <= 991px){.bike-selector-banner_title_mobile{display:block}}.bike-selector-banner_svg{height:19px}.bike-selector-banner_icon-wrapper{display:flex;align-items:center;justify-content:center;height:100%;position:relative}.bike-selector-banner_tick{width:12px;height:12px;position:absolute;right:6px;top:5px}
70
70
  `,c0=`.bm-button{cursor:pointer;border:none;font-weight:600}.bm-header-btn{display:inline-block;font-weight:200;background-color:#000;color:#fff;border-radius:5px;text-align:center;font-size:.75em;cursor:pointer}.bm-icon{display:inline-block;padding:6px;font-weight:200;border:none;text-align:center;font-size:.75em;background-color:transparent;height:44px;width:44px}.bm-icon svg{width:32px;height:32px}@media screen and (max-width: 991px){.bm-icon{padding:10px}.bm-icon svg{width:24px;height:24px}}.bm-bike-select-icon.show-selected,.bm-bike-select-icon.show-selected-banner{position:relative}.bm-bike-select-icon.show-selected:after{content:"";width:12px;height:12px;top:2px;right:2px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' width='512' height='512' x='0' y='0' viewBox='0 0 191.667 191.667' style='enable-background:new 0 0 512 512' xml:space='preserve' class=''%3E%3Cg%3E%3Cpath d='M95.833 0C42.991 0 0 42.99 0 95.833s42.991 95.834 95.833 95.834 95.833-42.991 95.833-95.834S148.676 0 95.833 0zm55.029 79.646-60.207 60.207a13.463 13.463 0 0 1-9.583 3.969c-3.62 0-7.023-1.409-9.583-3.969l-30.685-30.685a13.464 13.464 0 0 1-3.97-9.583c0-3.621 1.41-7.024 3.97-9.584a13.46 13.46 0 0 1 9.583-3.97c3.62 0 7.024 1.41 9.583 3.971l21.101 21.1 50.623-50.623a13.463 13.463 0 0 1 9.583-3.969c3.62 0 7.023 1.409 9.583 3.969 5.286 5.286 5.286 13.883.002 19.167z' fill='%2300ab04' opacity='1' data-original='%23000000' class=''%3E%3C/path%3E%3C/g%3E%3C/svg%3E");position:absolute;background-size:contain}.bm-bike-select-icon.show-selected-banner:after{content:"";width:12px;height:12px;top:6px;right:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' width='512' height='512' x='0' y='0' viewBox='0 0 191.667 191.667' style='enable-background:new 0 0 512 512' xml:space='preserve' class=''%3E%3Cg%3E%3Cpath d='M95.833 0C42.991 0 0 42.99 0 95.833s42.991 95.834 95.833 95.834 95.833-42.991 95.833-95.834S148.676 0 95.833 0zm55.029 79.646-60.207 60.207a13.463 13.463 0 0 1-9.583 3.969c-3.62 0-7.023-1.409-9.583-3.969l-30.685-30.685a13.464 13.464 0 0 1-3.97-9.583c0-3.621 1.41-7.024 3.97-9.584a13.46 13.46 0 0 1 9.583-3.97c3.62 0 7.024 1.41 9.583 3.971l21.101 21.1 50.623-50.623a13.463 13.463 0 0 1 9.583-3.969c3.62 0 7.023 1.409 9.583 3.969 5.286 5.286 5.286 13.883.002 19.167z' fill='%2300ab04' opacity='1' data-original='%23000000' class=''%3E%3C/path%3E%3C/g%3E%3C/svg%3E");position:absolute;background-size:contain}
71
- `;function nc({"data-color":i,banner:e}){const t=Z.value;return window.BikeMatrix.getConfig(),p($,{children:[p("style",{type:"text/css",children:c0}),p("div",{className:"bm-bikon-wrapper",children:p("button",{className:`p-2 !ml-auto header__icon bm-header-btn bm-icon bm-bike-select-icon ${t&&!e?"show-selected":t&&e?"show-selected-banner":""}`,style:{color:i},onClick:e?()=>{}:()=>Ir(),"aria-label":"Bike Matrix Bike Selector",children:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",className:"w-full h-full",children:p("path",{fill:"currentColor",fillRule:"evenodd",d:"m35.745 12.17l-4.925 1.48l3.28 8.578a8 8 0 1 1-1.868.715l-1.648-4.31l-5.682 11.802A1 1 0 0 1 24 31h-4.062A8.001 8.001 0 0 1 4 30a8 8 0 0 1 15.938-1h2.5l-4.88-13.664A.998.998 0 0 1 17.5 15H16a1 1 0 1 1 0-2h4.5a1 1 0 1 1 0 2h-.938l1.842 5.157l8.127-4.277l-.965-2.523a1 1 0 0 1 .647-1.315l5.957-1.787l.575 1.915Zm-13.662 9.89l1.972 5.52l4.23-8.784l-6.202 3.264Zm12.983 8.297l-2.113-5.527a6 6 0 1 0 1.868-.715l2.113 5.528a1 1 0 0 1-1.868.714ZM17.917 29H12a1 1 0 1 0 0 2h5.917A6.002 6.002 0 0 1 6 30a6 6 0 0 1 11.917-1Z",clipRule:"evenodd"})})})})]})}function d0({"data-title":i,"data-mobile-title":e,"data-color":t,"data-full-width":r,"data-font-color":n,"data-show":s}){const o=Z.value,{t:a}=ee();if(typeof s>"u"||s!=="true"&&s!=="")return p($,{});const l=n==="black"?"#000":n==="white"?"#fff":n;return p($,{children:[p("style",{type:"text/css",children:u0}),p("div",{onClick:()=>{Ir()},class:"bike-selector-banner_wrapper",children:p("div",{class:`bike-selector-banner ${r==="false"?"floating":""}`,style:{backgroundColor:t??"#000",maxWidth:r??null},children:p($,{children:[p("h2",{class:"bike-selector-banner_title",style:{color:l},children:o?o.brand+" "+o.frameSeries:i||a("bikeselectorbanner_title")}),p("h2",{class:"bike-selector-banner_title_mobile",style:{color:l},children:o?o.brand:e||a("bikeselectorbanner_mobiletitle")}),p(nc,{"data-color":l,banner:!0})]})})})]})}const p0=`.variant-selector-wrapper{display:flex;flex-direction:column;border-radius:8px;gap:.25rem}.title{font-size:16px;line-height:20px;font-weight:600;padding-bottom:.25rem;color:#000;display:flex;align-items:center;justify-content:space-between;gap:1rem;font-family:nunito}.indicator-wrapper{display:grid;grid-template-columns:repeat(2,minmax(10px,1fr));row-gap:1rem;-moz-column-gap:1rem;column-gap:1rem;grid-auto-columns:auto}@media screen and (max-width: 991px){.indicator-wrapper{grid-template-columns:minmax(10px,1fr)}}.full-width{grid-template-columns:minmax(10px,1fr)}.loading-wrapper{background-color:#f3f4f6;border:1px solid rgb(209 213 219);min-height:45px;border-radius:8px;display:flex;justify-content:center;align-items:center}
71
+ `;function nc({"data-color":i,banner:e}){const t=K.value;return window.BikeMatrix.getConfig(),p($,{children:[p("style",{type:"text/css",children:c0}),p("div",{className:"bm-bikon-wrapper",children:p("button",{className:`p-2 !ml-auto header__icon bm-header-btn bm-icon bm-bike-select-icon ${t&&!e?"show-selected":t&&e?"show-selected-banner":""}`,style:{color:i},onClick:e?()=>{}:()=>Ir(),"aria-label":"Bike Matrix Bike Selector",children:p("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",className:"w-full h-full",children:p("path",{fill:"currentColor",fillRule:"evenodd",d:"m35.745 12.17l-4.925 1.48l3.28 8.578a8 8 0 1 1-1.868.715l-1.648-4.31l-5.682 11.802A1 1 0 0 1 24 31h-4.062A8.001 8.001 0 0 1 4 30a8 8 0 0 1 15.938-1h2.5l-4.88-13.664A.998.998 0 0 1 17.5 15H16a1 1 0 1 1 0-2h4.5a1 1 0 1 1 0 2h-.938l1.842 5.157l8.127-4.277l-.965-2.523a1 1 0 0 1 .647-1.315l5.957-1.787l.575 1.915Zm-13.662 9.89l1.972 5.52l4.23-8.784l-6.202 3.264Zm12.983 8.297l-2.113-5.527a6 6 0 1 0 1.868-.715l2.113 5.528a1 1 0 0 1-1.868.714ZM17.917 29H12a1 1 0 1 0 0 2h5.917A6.002 6.002 0 0 1 6 30a6 6 0 0 1 11.917-1Z",clipRule:"evenodd"})})})})]})}function d0({"data-title":i,"data-mobile-title":e,"data-color":t,"data-full-width":r,"data-font-color":n,"data-show":s}){const o=K.value,{t:a}=ee();if(typeof s>"u"||s!=="true"&&s!=="")return p($,{});const l=n==="black"?"#000":n==="white"?"#fff":n;return p($,{children:[p("style",{type:"text/css",children:u0}),p("div",{onClick:()=>{Ir()},class:"bike-selector-banner_wrapper",children:p("div",{class:`bike-selector-banner ${r==="false"?"floating":""}`,style:{backgroundColor:t??"#000",maxWidth:r??null},children:p($,{children:[p("h2",{class:"bike-selector-banner_title",style:{color:l},children:o?o.brand+" "+o.frameSeries:i||a("bikeselectorbanner_title")}),p("h2",{class:"bike-selector-banner_title_mobile",style:{color:l},children:o?o.brand:e||a("bikeselectorbanner_mobiletitle")}),p(nc,{"data-color":l,banner:!0})]})})})]})}const p0=`.variant-selector-wrapper{display:flex;flex-direction:column;border-radius:8px;gap:.25rem}.title{font-size:16px;line-height:20px;font-weight:600;padding-bottom:.25rem;color:#000;display:flex;align-items:center;justify-content:space-between;gap:1rem;font-family:nunito}.indicator-wrapper{display:grid;grid-template-columns:repeat(2,minmax(10px,1fr));row-gap:1rem;-moz-column-gap:1rem;column-gap:1rem;grid-auto-columns:auto}@media screen and (max-width: 991px){.indicator-wrapper{grid-template-columns:minmax(10px,1fr)}}.full-width{grid-template-columns:minmax(10px,1fr)}.loading-wrapper{background-color:#f3f4f6;border:1px solid rgb(209 213 219);min-height:45px;border-radius:8px;display:flex;justify-content:center;align-items:center}
72
72
  `,f0=`.alt-indicator{border-radius:8px;border:1px solid #000;background-color:#fff;color:#000;font-weight:600;font-size:14px;display:flex;justify-content:space-between;align-items:center;gap:5px;padding:10px;text-decoration:none;transition:all ease-in-out .2s;font-family:nunito}.alt-indicator:hover{transform:scale(1.01)}.alt-is-active{box-shadow:0 3px 7px #00000040;font-weight:700}.variant-title{text-wrap:nowrap;text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}
73
73
  `,h0=({item:i,clickable:e,currentVariant:t})=>{const[r,n]=O(!1);U(()=>{t===i.id?n(!0):n(!1)},[t]);const s=o=>{const a=new URL(window.location.href);return a.searchParams.set("variant",o),a.toString()};return p($,{children:[p("style",{type:"text/css",children:f0}),p("div",{className:"alt-indicator-wrapper",children:e&&p("a",{href:s(i.id),className:`alt-indicator ${r?"alt-is-active":""}`,style:{borderWidth:r?"2px":"1px"},children:p("div",{className:"variant-title",children:i.title})})})]})},g0=`.question-button{cursor:pointer;display:flex;align-items:center;position:relative;background-color:#000;justify-content:center;height:24px;width:24px;border-radius:100%}.question-popup{position:absolute;border-radius:8px;background-color:#000;top:0;right:0;height:0;width:0;overflow:hidden;opacity:0;z-index:1}.question-popup .information{padding:12px;color:#fff;width:200px;font-size:12px}
74
74
  `,m0=({showall:i,clickable:e})=>{const t=Y(null),[r,n]=O(!1),{t:s}=ee(),o=()=>{r?r&&Q.to(t.current,{width:0,height:0,opacity:0,onComplete:()=>n(!1)}):Q.to(t.current,{height:"auto",width:"auto",opacity:1,onComplete:()=>n(!0)})};return p($,{children:[p("style",{type:"text/css",children:g0}),p("div",{className:"question-button",onClick:o,children:[p(ec,{height:12}),p("div",{className:"question-popup",ref:t,children:p("div",{className:"information",children:[!i&&s("variantselector_help_text")," ",i&&s("variantselector_help_text_showall")," ",e&&s("variantselector_help_text_clickable")]})})]})]})},b0=`.indicator{border-radius:8px;border:1px solid #10b981;background-color:#ecfdf5;color:#022c22;font-weight:600;font-size:14px;display:flex;justify-content:space-between;align-items:center;gap:5px;padding:10px;text-decoration:none;transition:all ease-in-out .2s;font-family:nunito}.indicator:hover{transform:scale(1.01)}.is-active{box-shadow:0 3px 7px #00000040;font-weight:700;border-width:2px}.non-clickable-indicator{display:flex;justify-content:space-between;align-items:center;border-radius:8px;padding:10px;font-weight:600;font-size:14px}.icon-wrapper{min-height:24px;min-width:24px;display:flex;align-items:center}.variant-title{text-wrap:nowrap;text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}
75
- `,v0=({item:i,clickable:e,currentVariant:t,override:r})=>{const[n,s]=O(!1);U(()=>{t===i.id?s(!0):s(!1)},[t]);const o=a=>{const l=new URL(window.location.href);return l.searchParams.set("variant",a),l.toString()};return p($,{children:[p("style",{type:"text/css",children:b0}),(e||r)&&p("a",{href:o(i.id),className:`indicator ${n?"is-active":""}`,style:!i.warning&&i.compatible?{backgroundColor:"#ECFDF5",borderColor:"#10B981",borderStyle:"solid",color:"#022c22",borderWidth:n?"2px":"1px"}:i.warning&&i.compatible?{backgroundColor:"#FEFBEC",borderColor:"#FBA157",borderStyle:"solid",color:"#451a03",borderWidth:n?"2px":"1px"}:i.compatible===!1?{backgroundColor:"#FCF3F2",borderColor:"#EF4444",borderStyle:"solid",color:"#450a0a",borderWidth:n?"2px":"1px"}:{backgroundColor:"#fff",borderColor:"#000",borderStyle:"solid",color:"#000",borderWidth:n?"2px":"1px"},children:[p("div",{className:"variant-title",children:i.title}),p("div",{className:"icon-wrapper",children:i.warning&&i.compatible?p(jr,{height:23,width:23}):!i.warning&&i.compatible?p(Vr,{height:23,width:23,fill:"#10b981"}):i.compatible===!1?p(mn,{height:23,width:23,fill:"#10b981"}):p($,{})})]}),!e&&!r&&p("div",{className:`non-clickable-indicator ${n?"is-active":""}`,style:!i.warning&&i.compatible?{borderColor:"#10B981",borderStyle:"solid",color:"#022c22",borderWidth:n?"2px":"1px"}:i.warning&&i.compatible?{borderColor:"#FBA157",borderStyle:"solid",color:"#451a03",borderWidth:n?"2px":"1px"}:i.compatible===!1?{borderColor:"#EF4444",borderStyle:"solid",color:"#450a0a",borderWidth:n?"2px":"1px"}:{backgroundColor:"#fff",borderColor:"#000",borderStyle:"solid",color:"#000",borderWidth:n?"2px":"1px"},children:[p("div",{className:"variant-title",children:i.title}),p("div",{className:"icon-wrapper",children:i.warning&&i.compatible?p(jr,{height:23,width:23}):!i.warning&&i.compatible?p(Vr,{height:23,width:23,fill:"#10b981"}):i.compatible===!1?p(mn,{height:23,width:23,fill:"#10b981"}):p($,{})})]})]})},w0=({data:i,currentVariant:e,title:t,clickable:r,showall:n,override:s,fullWidth:o,sku:a,error:l})=>{const[u,c]=O({type:"loading",display:!0}),[d,h]=O([]),[f,m]=O([]),w=window.BikeMatrix.getConfig(),{t:v}=ee(),g=()=>{var k,A,C;c({type:"loading",display:!0});let _=[];i.map(D=>{D.compatible&&_.push(D)}),h(_);let y=[];(A=(k=Z.value)==null?void 0:k.compatibleCollections)!=null&&A.error||(C=Z.value)==null||C.compatibleCollections.map(D=>{w.productCollections.includes(D.handle)&&y.push(D.handle)}),m(y)},x=()=>{c({type:"loading",display:!0}),!f.length&&!d.length&&!s&&c({type:"noInformation",display:!1}),!f.length&&!d.length&&s&&c({type:"generic",display:!0}),f.length&&!d.length&&s&&c({type:"compatible",display:!0}),f.length&&!d.length&&!s&&c({type:"noCompatible",display:!0}),f.length&&d.length&&c({type:"compatible",display:!0})};return U(()=>{g()},[Z.value,i,a]),U(()=>{x()},[Z.value,i,a,f,d]),p($,{children:[p("style",{type:"text/css",children:p0}),u.display&&p("div",{className:"variant-selector-wrapper",children:p("div",{className:"title",children:[t,p(m0,{clickable:r,showall:n})]})}),l&&p(tt,{messages:l,left:!0,margin:10}),u.type==="loading"&&u.display?p("div",{className:`indicator-wrapper ${o||s?"full-width":""}`,children:[p("div",{className:"loading-wrapper",children:p(Dt,{isLoading:!0,colour:"#d1d5db"})}),p("div",{className:"loading-wrapper",children:p(Dt,{isLoading:!0,colour:"#d1d5db"})})]}):u.type==="generic"&&u.display?p("div",{className:"indicator-wrapper",children:i.map((_,y)=>p(h0,{item:_,clickable:!0,currentVariant:e},y))}):u.type==="noCompatible"&&u.display?p("div",{className:"indicator-wrapper full-width",children:p("div",{className:"loading-wrapper",children:v("variantselector_no_compatible")})}):u.type==="compatible"&&u.display?p("div",{className:`indicator-wrapper ${o||s?"full-width":""}`,children:i.map((_,y)=>{if(!(!_.compatible&&!s&&!n))return p(v0,{item:_,clickable:r,currentVariant:e,override:s},y)})}):u.type==="noInformation"&&u.display?p("div",{className:"indicator-wrapper full-width",children:p("div",{className:"loading-wrapper",children:v("variantselector_no_compatible_information")})}):p($,{})]})},x0=({"data-variants":i,"data-delimiter":e,"data-showall":t,"data-clickable":r,"data-query-param":n,"data-full-width":s,"data-title":o,"data-no-variants":a,"data-show":l,"data-route-variant":u,"data-padding-top":c,"data-padding-bottom":d,"data-override":h,"data-sku":f})=>{var L;const m=Z.value,w=window.BikeMatrix.getConfig(),[v,g]=O([]),[x,_]=O(null);let y=((L=Nt())==null?void 0:L.language)||"en-GB";const k=new De(w.apiUrl,w.apiKey,w.apiToken,w.isShopify),A=f||w.sku,[C,D]=O(""),{t:S}=ee(),T=async()=>{const F=i.split("~");let M=[],N=[];if(F.map(q=>{let P=q.split(e||"|");M.push(P[0].length>2?P[0]:P[2]),N.push({title:P[1],id:P[2],sku:P[0].length>2?P[0]:P[2],index:parseInt(P[3])})}),m){D("");const q=await k.checkSkusCompatibilityWithResults(m.key,M,y,"VariantSelector",w.currentCollectionHandle);if(!q.success){D(q.error),w.logLevel==="verbose"&&console.error(q.logError);return}let P=[];q.data.map(E=>{N.map(B=>{E.sku===B.sku&&P.push({bikeKey:E.bikeKey,sku:E.sku,compatible:E.compatible,compatibilityMessage:E.compatibilityMessage,warning:E.warning,warningMessage:E.warningMessage,compatibilityLogGuid:E.compatibilityLogGuid,title:B.title,id:B.id,index:B.index})})}),g(P.sort((E,B)=>E.index-B.index))}else{let q=[];N.map(P=>{q.push({sku:P.sku,title:P.title,id:P.id,index:P.index})}),g(q.sort((P,E)=>P.index-E.index))}};return U(()=>{T()},[m,A]),U(()=>{const M=new URLSearchParams(window.location.search).get("variant");if(v&&u==="true"&&!M){for(let N=0;N<v.length;N++)if(v[N].compatible){const q=new URL(window.location.href);q.searchParams.set("variant",v[N].id),window.location.href=q.toString();break}}M?_(M):v.length&&_(v[0].id)},[v]),p("div",{style:{paddingTop:`${c}px`,paddingBottom:`${d}px`},children:a!=="true"&&p(w0,{data:v,currentVariant:x,showall:t==="true",override:h==="true",clickable:r==="true",fullWidth:s==="true"||h==="true",title:o||S("variantselector_title"),sku:A,error:C})})},_0=typeof window<"u";function Gt(i,e,t=[],r=null){vc(s=>Hn.value?p(i,{...s}):p($,{}),e,t,r)}function y0(){Gt(Y1,"bikematrix-bikeselector",[],{shadow:!0}),Gt(Z1,"bikematrix-productresult",["data-sku"],{shadow:!0}),Gt(e0,"bikematrix-collectionresult",["data-product-id","data-product-skus","data-padding-top","data-padding-bottom"],{shadow:!0}),Gt(ic,"bikematrix-compatibilitylabel",["data-type"],{shadow:!0}),Gt(l0,"bikematrix-compatiblelist",["data-title","data-current-count","data-total-count"]),Gt(d0,"bikematrix-bikeselectorbanner",["data-title","data-mobile-title","data-color","data-full-width","data-font-color","data-show"],{shadow:!0}),Gt(nc,"bikematrix-bikon",["data-color"],{shadow:!0}),Gt(x0,"bikematrix-variantselector",["data-title","data-variants","data-delimiter","data-showall","data-clickable","data-query-param","data-full-width","data-show","data-route-variant","data-padding-top","data-padding-bottom","data-override","data-sku"],{shadow:!0})}function C0(){if(!_0)return null;const i=Kp.getInstance(),e={isInitialized:()=>i.isInitialized(),init:t=>i.initialize(t),refresh:()=>i.refresh(),destroy:()=>i.destroy(),reload:(t=!0)=>i.reload(t),reset:()=>i.reset(),getConfig:()=>i.getConfig(),getCurrentBike:()=>i.getCurrentBike(),getActiveSubscription:()=>i.getActiveSubscription(),updateConfig:t=>i.updateConfig(t),updateSku:t=>i.updateSku(t),updateCompatibleList:()=>i.updateCompatibleList()};return typeof process<"u"&&process.env.NODE_ENV==="development"&&(e.core=i),window.BikeMatrix=e,y0(),document.currentScript&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>e.init()):e.init()),e}return C0()});
75
+ `,v0=({item:i,clickable:e,currentVariant:t,override:r})=>{const[n,s]=O(!1);U(()=>{t===i.id?s(!0):s(!1)},[t]);const o=a=>{const l=new URL(window.location.href);return l.searchParams.set("variant",a),l.toString()};return p($,{children:[p("style",{type:"text/css",children:b0}),(e||r)&&p("a",{href:o(i.id),className:`indicator ${n?"is-active":""}`,style:!i.warning&&i.compatible?{backgroundColor:"#ECFDF5",borderColor:"#10B981",borderStyle:"solid",color:"#022c22",borderWidth:n?"2px":"1px"}:i.warning&&i.compatible?{backgroundColor:"#FEFBEC",borderColor:"#FBA157",borderStyle:"solid",color:"#451a03",borderWidth:n?"2px":"1px"}:i.compatible===!1?{backgroundColor:"#FCF3F2",borderColor:"#EF4444",borderStyle:"solid",color:"#450a0a",borderWidth:n?"2px":"1px"}:{backgroundColor:"#fff",borderColor:"#000",borderStyle:"solid",color:"#000",borderWidth:n?"2px":"1px"},children:[p("div",{className:"variant-title",children:i.title}),p("div",{className:"icon-wrapper",children:i.warning&&i.compatible?p(jr,{height:23,width:23}):!i.warning&&i.compatible?p(Vr,{height:23,width:23,fill:"#10b981"}):i.compatible===!1?p(mn,{height:23,width:23,fill:"#10b981"}):p($,{})})]}),!e&&!r&&p("div",{className:`non-clickable-indicator ${n?"is-active":""}`,style:!i.warning&&i.compatible?{borderColor:"#10B981",borderStyle:"solid",color:"#022c22",borderWidth:n?"2px":"1px"}:i.warning&&i.compatible?{borderColor:"#FBA157",borderStyle:"solid",color:"#451a03",borderWidth:n?"2px":"1px"}:i.compatible===!1?{borderColor:"#EF4444",borderStyle:"solid",color:"#450a0a",borderWidth:n?"2px":"1px"}:{backgroundColor:"#fff",borderColor:"#000",borderStyle:"solid",color:"#000",borderWidth:n?"2px":"1px"},children:[p("div",{className:"variant-title",children:i.title}),p("div",{className:"icon-wrapper",children:i.warning&&i.compatible?p(jr,{height:23,width:23}):!i.warning&&i.compatible?p(Vr,{height:23,width:23,fill:"#10b981"}):i.compatible===!1?p(mn,{height:23,width:23,fill:"#10b981"}):p($,{})})]})]})},w0=({data:i,currentVariant:e,title:t,clickable:r,showall:n,override:s,fullWidth:o,sku:a,error:l})=>{const[u,c]=O({type:"loading",display:!0}),[d,h]=O([]),[f,m]=O([]),w=window.BikeMatrix.getConfig(),{t:v}=ee(),g=()=>{var k,A,C;c({type:"loading",display:!0});let _=[];i.map(D=>{D.compatible&&_.push(D)}),h(_);let y=[];(A=(k=K.value)==null?void 0:k.compatibleCollections)!=null&&A.error||(C=K.value)==null||C.compatibleCollections.map(D=>{w.productCollections.includes(D.handle)&&y.push(D.handle)}),m(y)},x=()=>{c({type:"loading",display:!0}),!f.length&&!d.length&&!s&&c({type:"noInformation",display:!1}),!f.length&&!d.length&&s&&c({type:"generic",display:!0}),f.length&&!d.length&&s&&c({type:"compatible",display:!0}),f.length&&!d.length&&!s&&c({type:"noCompatible",display:!0}),f.length&&d.length&&c({type:"compatible",display:!0})};return U(()=>{g()},[K.value,i,a]),U(()=>{x()},[K.value,i,a,f,d]),p($,{children:[p("style",{type:"text/css",children:p0}),u.display&&p("div",{className:"variant-selector-wrapper",children:p("div",{className:"title",children:[t,p(m0,{clickable:r,showall:n})]})}),l&&p(tt,{messages:l,left:!0,margin:10}),u.type==="loading"&&u.display?p("div",{className:`indicator-wrapper ${o||s?"full-width":""}`,children:[p("div",{className:"loading-wrapper",children:p(Dt,{isLoading:!0,colour:"#d1d5db"})}),p("div",{className:"loading-wrapper",children:p(Dt,{isLoading:!0,colour:"#d1d5db"})})]}):u.type==="generic"&&u.display?p("div",{className:"indicator-wrapper",children:i.map((_,y)=>p(h0,{item:_,clickable:!0,currentVariant:e},y))}):u.type==="noCompatible"&&u.display?p("div",{className:"indicator-wrapper full-width",children:p("div",{className:"loading-wrapper",children:v("variantselector_no_compatible")})}):u.type==="compatible"&&u.display?p("div",{className:`indicator-wrapper ${o||s?"full-width":""}`,children:i.map((_,y)=>{if(!(!_.compatible&&!s&&!n))return p(v0,{item:_,clickable:r,currentVariant:e,override:s},y)})}):u.type==="noInformation"&&u.display?p("div",{className:"indicator-wrapper full-width",children:p("div",{className:"loading-wrapper",children:v("variantselector_no_compatible_information")})}):p($,{})]})},x0=({"data-variants":i,"data-delimiter":e,"data-showall":t,"data-clickable":r,"data-query-param":n,"data-full-width":s,"data-title":o,"data-no-variants":a,"data-show":l,"data-route-variant":u,"data-padding-top":c,"data-padding-bottom":d,"data-override":h,"data-sku":f})=>{var L;const m=K.value,w=window.BikeMatrix.getConfig(),[v,g]=O([]),[x,_]=O(null);let y=((L=Nt())==null?void 0:L.language)||"en-GB";const k=new De(w.apiUrl,w.apiKey,w.apiToken,w.isShopify),A=f||w.sku,[C,D]=O(""),{t:S}=ee(),T=async()=>{const F=i.split("~");let M=[],N=[];if(F.map(q=>{let P=q.split(e||"|");M.push(P[0].length>2?P[0]:P[2]),N.push({title:P[1],id:P[2],sku:P[0].length>2?P[0]:P[2],index:parseInt(P[3])})}),m){D("");const q=await k.checkSkusCompatibilityWithResults(m.key,M,y,"VariantSelector",w.currentCollectionHandle);if(!q.success){D(q.error),w.logLevel==="verbose"&&console.error(q.logError);return}let P=[];q.data.map(E=>{N.map(B=>{E.sku===B.sku&&P.push({bikeKey:E.bikeKey,sku:E.sku,compatible:E.compatible,compatibilityMessage:E.compatibilityMessage,warning:E.warning,warningMessage:E.warningMessage,compatibilityLogGuid:E.compatibilityLogGuid,title:B.title,id:B.id,index:B.index})})}),g(P.sort((E,B)=>E.index-B.index))}else{let q=[];N.map(P=>{q.push({sku:P.sku,title:P.title,id:P.id,index:P.index})}),g(q.sort((P,E)=>P.index-E.index))}};return U(()=>{T()},[m,A]),U(()=>{const M=new URLSearchParams(window.location.search).get("variant");if(v&&u==="true"&&!M){for(let N=0;N<v.length;N++)if(v[N].compatible){const q=new URL(window.location.href);q.searchParams.set("variant",v[N].id),window.location.href=q.toString();break}}M?_(M):v.length&&_(v[0].id)},[v]),p("div",{style:{paddingTop:`${c}px`,paddingBottom:`${d}px`},children:a!=="true"&&p(w0,{data:v,currentVariant:x,showall:t==="true",override:h==="true",clickable:r==="true",fullWidth:s==="true"||h==="true",title:o||S("variantselector_title"),sku:A,error:C})})},_0=typeof window<"u";function Gt(i,e,t=[],r=null){vc(s=>Hn.value?p(i,{...s}):p($,{}),e,t,r)}function y0(){Gt(Y1,"bikematrix-bikeselector",[],{shadow:!0}),Gt(Z1,"bikematrix-productresult",["data-sku"],{shadow:!0}),Gt(e0,"bikematrix-collectionresult",["data-product-id","data-product-skus","data-padding-top","data-padding-bottom"],{shadow:!0}),Gt(ic,"bikematrix-compatibilitylabel",["data-type"],{shadow:!0}),Gt(l0,"bikematrix-compatiblelist",["data-title","data-current-count","data-total-count"]),Gt(d0,"bikematrix-bikeselectorbanner",["data-title","data-mobile-title","data-color","data-full-width","data-font-color","data-show"],{shadow:!0}),Gt(nc,"bikematrix-bikon",["data-color"],{shadow:!0}),Gt(x0,"bikematrix-variantselector",["data-title","data-variants","data-delimiter","data-showall","data-clickable","data-query-param","data-full-width","data-show","data-route-variant","data-padding-top","data-padding-bottom","data-override","data-sku"],{shadow:!0})}function C0(){if(!_0)return null;const i=Kp.getInstance(),e={isInitialized:()=>i.isInitialized(),init:t=>i.initialize(t),refresh:()=>i.refresh(),destroy:()=>i.destroy(),reload:(t=!0)=>i.reload(t),reset:()=>i.reset(),getConfig:()=>i.getConfig(),getCurrentBike:()=>i.getCurrentBike(),getActiveSubscription:()=>i.getActiveSubscription(),updateConfig:t=>i.updateConfig(t),updateSku:t=>i.updateSku(t),updateCompatibleList:()=>i.updateCompatibleList()};return typeof process<"u"&&process.env.NODE_ENV==="development"&&(e.core=i),window.BikeMatrix=e,y0(),document.currentScript&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>e.init()):e.init()),e}return C0()});